From f2ebb24d9466aec07c94e3fd4a8d3fa4711c09e7 Mon Sep 17 00:00:00 2001 From: Peter Schauer Date: Sun, 19 Nov 1995 13:31:52 +0000 Subject: * irix5-nat.c, osfsolib.c (solib_address): Return the name of the containing solib. --- gdb/osfsolib.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'gdb/osfsolib.c') diff --git a/gdb/osfsolib.c b/gdb/osfsolib.c index cdc2de9..b97e683 100644 --- a/gdb/osfsolib.c +++ b/gdb/osfsolib.c @@ -770,7 +770,7 @@ GLOBAL FUNCTION SYNOPSIS - int solib_address (CORE_ADDR address) + char *solib_address (CORE_ADDR address) DESCRIPTION @@ -786,7 +786,7 @@ DESCRIPTION mapped in. */ -int +char * solib_address (address) CORE_ADDR address; { @@ -798,9 +798,7 @@ solib_address (address) { if ((address >= (CORE_ADDR) so -> textsection -> addr) && (address < (CORE_ADDR) so -> textsection -> endaddr)) - { - return (1); - } + return (so->so_name); } } return (0); -- cgit v1.1