* hppa-tdep.c (pc_in_linker_stub): Return 0 if can't read memory.
authorJim Kingdon <jkingdon@engr.sgi.com>
Mon, 26 Jul 1993 19:19:39 +0000 (19:19 +0000)
committerJim Kingdon <jkingdon@engr.sgi.com>
Mon, 26 Jul 1993 19:19:39 +0000 (19:19 +0000)
gdb/ChangeLog
gdb/hppa-tdep.c

index b70af32438052f187dfb0fbd0b15069a1a3c5a7f..be08287626b48fbb949ddd13685a0b9e45a34e10 100644 (file)
@@ -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)
index 885f6db56d89bcf166a97e631937000ac8957dd0..5b11159af4b65c43e7013f24763397f38bbe123d 100644 (file)
@@ -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
 
This page took 0.029306 seconds and 4 git commands to generate.