From 08ecd8f3d858acd15a276e80e3de5f5a95996709 Mon Sep 17 00:00:00 2001 From: Jim Kingdon Date: Mon, 26 Jul 1993 19:19:39 +0000 Subject: * hppa-tdep.c (pc_in_linker_stub): Return 0 if can't read memory. --- gdb/hppa-tdep.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'gdb/hppa-tdep.c') diff --git a/gdb/hppa-tdep.c b/gdb/hppa-tdep.c index 885f6db..5b11159 100644 --- a/gdb/hppa-tdep.c +++ b/gdb/hppa-tdep.c @@ -306,6 +306,11 @@ pc_in_linker_stub (pc) { int found_magic_instruction = 0; int i; + char buf[4]; + + /* If unable to read memory, assume pc is not in a linker stub. */ + if (target_read_memory (pc, buf, 4) != 0) + return 0; /* We are looking for something like -- cgit v1.1