gdb/compile/compile-object-load.h - gdb

Data types defined

Macros defined

Source code

  1. /* Header file to load module for 'compile' command.
  2.    Copyright (C) 2014-2015 Free Software Foundation, Inc.

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

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

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

  13. #ifndef GDB_COMPILE_OBJECT_LOAD_H
  14. #define GDB_COMPILE_OBJECT_LOAD_H

  15. struct compile_module
  16. {
  17.   /* objfile for the compiled module.  */
  18.   struct objfile *objfile;

  19.   /* .c file OBJFILE was built from.  It needs to be xfree-d.  */
  20.   char *source_file;

  21.   /* Inferior function address.  */
  22.   CORE_ADDR func_addr;

  23.   /* Inferior registers address or NULL if the inferior function does not
  24.      require any.  */
  25.   CORE_ADDR regs_addr;
  26. };

  27. extern struct compile_module *compile_object_load (const char *object_file,
  28.                                                    const char *source_file);

  29. #endif /* GDB_COMPILE_OBJECT_LOAD_H */