17 lines
402 B
Diff
17 lines
402 B
Diff
|
--- gdb/ppc-linux-tdep.c
|
||
|
+++ gdb/ppc-linux-tdep.c
|
||
|
@@ -757,7 +757,12 @@
|
||
|
|
||
|
/* Check if ADDR points to a function descriptor. */
|
||
|
if (s && strcmp (s->the_bfd_section->name, ".opd") == 0)
|
||
|
- return get_target_memory_unsigned (targ, addr, 8);
|
||
|
+ {
|
||
|
+ gdb_byte buf[8];
|
||
|
+
|
||
|
+ if (target_read_memory (addr, buf, 8) == 0)
|
||
|
+ return extract_unsigned_integer (buf, 8);
|
||
|
+ }
|
||
|
|
||
|
return addr;
|
||
|
}
|