diff options
author | Fred Fish <fnf@specifix.com> | 1995-11-19 07:16:03 +0000 |
---|---|---|
committer | Fred Fish <fnf@specifix.com> | 1995-11-19 07:16:03 +0000 |
commit | d0e0eca26eaf62461d6fcdec1f4ef8c2e482ba49 (patch) | |
tree | bdb62f55363804690256459cf997b7fafc9c82cc /gdb/solib.h | |
parent | 90a7abbca34a2c0b8500bcde40489a2981e62dca (diff) | |
download | gdb-d0e0eca26eaf62461d6fcdec1f4ef8c2e482ba49.zip gdb-d0e0eca26eaf62461d6fcdec1f4ef8c2e482ba49.tar.gz gdb-d0e0eca26eaf62461d6fcdec1f4ef8c2e482ba49.tar.bz2 |
* solib.c (solib_address): Return the name of the containing solib.
* solib.h (PC_SOLIB): New macro; define using solib_address.
* stack.c (print_frame_info) [PC_SOLIB]: If no function name, try
PC_SOLIB on the PC value.
Diffstat (limited to 'gdb/solib.h')
-rw-r--r-- | gdb/solib.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/gdb/solib.h b/gdb/solib.h index 8987112..959e59e 100644 --- a/gdb/solib.h +++ b/gdb/solib.h @@ -50,7 +50,11 @@ solib_create_inferior_hook PARAMS((void)); /* solib.c */ /* If we can't set a breakpoint, and it's in a shared library, just disable it. */ -#define DISABLE_UNSETTABLE_BREAK(addr) solib_address(addr) +#define DISABLE_UNSETTABLE_BREAK(addr) (solib_address(addr) != NULL) -extern int +extern char * solib_address PARAMS ((CORE_ADDR)); /* solib.c */ + +/* If ADDR lies in a shared library, return its name. */ + +#define PC_SOLIB(addr) solib_address (addr) |