aboutsummaryrefslogtreecommitdiff
path: root/gdb/arm-tdep.c
diff options
context:
space:
mode:
authorDoug Evans <dje@google.com>2010-03-04 16:39:57 +0000
committerDoug Evans <dje@google.com>2010-03-04 16:39:57 +0000
commitfc36e83962e41fd70cdee43dd9ce16167cc77338 (patch)
treec976cb730f35f56447a977a9091a60b6d32ec488 /gdb/arm-tdep.c
parentc7437ca6e4ecefbaa0a0ebef0e68f09f8f19c449 (diff)
downloadgdb-fc36e83962e41fd70cdee43dd9ce16167cc77338.zip
gdb-fc36e83962e41fd70cdee43dd9ce16167cc77338.tar.gz
gdb-fc36e83962e41fd70cdee43dd9ce16167cc77338.tar.bz2
* arm-tdep.c (arm_stub_unwind_sniffer): Add comment.
Diffstat (limited to 'gdb/arm-tdep.c')
-rw-r--r--gdb/arm-tdep.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gdb/arm-tdep.c b/gdb/arm-tdep.c
index 80be2cc..353bc48 100644
--- a/gdb/arm-tdep.c
+++ b/gdb/arm-tdep.c
@@ -1236,6 +1236,8 @@ arm_stub_unwind_sniffer (const struct frame_unwind *self,
addr_in_block = get_frame_address_in_block (this_frame);
if (in_plt_section (addr_in_block, NULL)
+ /* We also use the stub winder if the target memory is unreadable
+ to avoid having the prologue unwinder trying to read it. */
|| target_read_memory (get_frame_pc (this_frame), dummy, 4) != 0)
return 1;