* 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.
This commit is contained in:
Fred Fish
1995-11-19 07:16:03 +00:00
parent 90a7abbca3
commit d0e0eca26e
3 changed files with 64 additions and 5 deletions

View File

@ -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)