aboutsummaryrefslogtreecommitdiff
path: root/gdb/frv-tdep.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/frv-tdep.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/frv-tdep.c')
-rw-r--r--gdb/frv-tdep.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/gdb/frv-tdep.c b/gdb/frv-tdep.c
index 20b4427..e597037 100644
--- a/gdb/frv-tdep.c
+++ b/gdb/frv-tdep.c
@@ -1079,6 +1079,13 @@ find_func_descr (struct gdbarch *gdbarch, CORE_ADDR entry_point)
{
CORE_ADDR descr;
char valbuf[4];
+ CORE_ADDR start_addr;
+
+ /* If we can't find the function in the symbol table, then we assume
+ that the function address is already in descriptor form. */
+ if (!find_pc_partial_function (entry_point, NULL, &start_addr, NULL)
+ || entry_point != start_addr)
+ return entry_point;
descr = frv_fdpic_find_canonical_descriptor (entry_point);