gdb/infcall.h - gdb

Data types defined

Macros defined

Source code

  1. /* Perform an inferior function call, for GDB, the GNU debugger.

  2.    Copyright (C) 2003-2015 Free Software Foundation, Inc.

  3.    This file is part of GDB.

  4.    This program is free software; you can redistribute it and/or modify
  5.    it under the terms of the GNU General Public License as published by
  6.    the Free Software Foundation; either version 3 of the License, or
  7.    (at your option) any later version.

  8.    This program is distributed in the hope that it will be useful,
  9.    but WITHOUT ANY WARRANTY; without even the implied warranty of
  10.    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  11.    GNU General Public License for more details.

  12.    You should have received a copy of the GNU General Public License
  13.    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */

  14. #ifndef INFCALL_H
  15. #define INFCALL_H

  16. struct value;
  17. struct type;

  18. extern CORE_ADDR find_function_addr (struct value *function,
  19.                                      struct type **retval_type);

  20. /* Perform a function call in the inferior.

  21.    ARGS is a vector of values of arguments (NARGS of them).  FUNCTION
  22.    is a value, the function to be called.  Returns a value
  23.    representing what the function returned.  May fail to return, if a
  24.    breakpoint or signal is hit during the execution of the function.

  25.    ARGS is modified to contain coerced values.  */

  26. extern struct value *call_function_by_hand (struct value *function, int nargs,
  27.                                             struct value **args);

  28. /* Similar to call_function_by_hand and additional call
  29.    register_dummy_frame_dtor with DUMMY_DTOR and DUMMY_DTOR_DATA for the
  30.    created inferior call dummy frame.  */

  31. typedef void (call_function_by_hand_dummy_dtor_ftype) (void *data);
  32. extern struct value *
  33.   call_function_by_hand_dummy (struct value *function, int nargs,
  34.                                struct value **args,
  35.                              call_function_by_hand_dummy_dtor_ftype *dummy_dtor,
  36.                                void *dummy_dtor_data);

  37. #endif