aboutsummaryrefslogtreecommitdiff
path: root/gdb/irix5-nat.c
diff options
context:
space:
mode:
authorPeter Schauer <Peter.Schauer@mytum.de>1995-11-19 13:31:52 +0000
committerPeter Schauer <Peter.Schauer@mytum.de>1995-11-19 13:31:52 +0000
commitf2ebb24d9466aec07c94e3fd4a8d3fa4711c09e7 (patch)
tree16c44e0034f83f57f4bb74d451dd57fb78d7bfc0 /gdb/irix5-nat.c
parent50f694435f9a0104e593264bb04738d53b0a3be1 (diff)
downloadgdb-f2ebb24d9466aec07c94e3fd4a8d3fa4711c09e7.zip
gdb-f2ebb24d9466aec07c94e3fd4a8d3fa4711c09e7.tar.gz
gdb-f2ebb24d9466aec07c94e3fd4a8d3fa4711c09e7.tar.bz2
* irix5-nat.c, osfsolib.c (solib_address): Return the name of the
containing solib.
Diffstat (limited to 'gdb/irix5-nat.c')
-rw-r--r--gdb/irix5-nat.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/gdb/irix5-nat.c b/gdb/irix5-nat.c
index 26027f4..72ce305 100644
--- a/gdb/irix5-nat.c
+++ b/gdb/irix5-nat.c
@@ -761,7 +761,7 @@ GLOBAL FUNCTION
SYNOPSIS
- int solib_address (CORE_ADDR address)
+ char *solib_address (CORE_ADDR address)
DESCRIPTION
@@ -777,7 +777,7 @@ DESCRIPTION
mapped in.
*/
-int
+char *
solib_address (address)
CORE_ADDR address;
{
@@ -789,9 +789,7 @@ solib_address (address)
{
if ((address >= (CORE_ADDR) LM_ADDR (so)) &&
(address < (CORE_ADDR) so -> lmend))
- {
- return (1);
- }
+ return (so->lm.o_path);
}
}
return (0);