diff options
-rw-r--r-- | gdb/ChangeLog | 2 | ||||
-rw-r--r-- | gdb/hppa-tdep.c | 5 |
2 files changed, 7 insertions, 0 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index b70af32..be08287 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,7 @@ Mon Jul 26 13:17:36 1993 Jim Kingdon (kingdon@lioth.cygnus.com) + * hppa-tdep.c (pc_in_linker_stub): Return 0 if can't read memory. + * stabsread.c (rs6000_builtin_type): Make `logical' be TYPE_CODE_BOOL. Sun Jul 25 23:41:48 1993 Jim Kingdon (kingdon@lioth.cygnus.com) 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 |