aboutsummaryrefslogtreecommitdiff
path: root/gdb/solib-frv.c
diff options
context:
space:
mode:
authorKevin Buettner <kevinb@redhat.com>2005-04-29 21:48:28 +0000
committerKevin Buettner <kevinb@redhat.com>2005-04-29 21:48:28 +0000
commit35e08e031b7aa2ed269990e91ba9df85bdb3e865 (patch)
tree6458fc224c2a9cbf61aed9cb768499bc3fbb1a18 /gdb/solib-frv.c
parent5ea106f753c6d77047396b9650ca0105e5643fda (diff)
downloadgdb-35e08e031b7aa2ed269990e91ba9df85bdb3e865.zip
gdb-35e08e031b7aa2ed269990e91ba9df85bdb3e865.tar.gz
gdb-35e08e031b7aa2ed269990e91ba9df85bdb3e865.tar.bz2
Fix bugs related to inferior function calls on FRV using the FDPIC ABI.
Diffstat (limited to 'gdb/solib-frv.c')
-rw-r--r--gdb/solib-frv.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/gdb/solib-frv.c b/gdb/solib-frv.c
index ecc791a..4647b95 100644
--- a/gdb/solib-frv.c
+++ b/gdb/solib-frv.c
@@ -1109,6 +1109,10 @@ find_canonical_descriptor_in_load_object
if (abfd == 0)
return 0;
+ /* Nothing to do if no link map. */
+ if (lm == 0)
+ return 0;
+
/* We want to scan the dynamic relocs for R_FRV_FUNCDESC relocations.
(More about this later.) But in order to fetch the relocs, we
need to first fetch the dynamic symbols. These symbols need to