* hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence): Check
authorMark Kettenis <kettenis@gnu.org>
Sun, 19 Dec 2004 22:09:26 +0000 (22:09 +0000)
committerMark Kettenis <kettenis@gnu.org>
Sun, 19 Dec 2004 22:09:26 +0000 (22:09 +0000)
whether the name returned by find_pc_partial_function is a null
pointer, not whether it is an empty string.

gdb/ChangeLog
gdb/hppa-hpux-tdep.c

index 5a1bcb55740cdafbb089db5c9e00ac5e850b7583..cbab622280c659dd8f54c9438347f11c68b08046 100644 (file)
@@ -1,5 +1,9 @@
 2004-12-19  Mark Kettenis  <kettenis@gnu.org>
 
+       * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence): Check
+       whether the name returned by find_pc_partial_function is a null
+       pointer, not whether it is an empty string.
+
        * hppa-tdep.h (hppa_regnum): Add HPPA_DP_REGNUM, HPPA_RET0_REGNUM,
        HPPA_RET1_REGNUM and HPPA64_FP4_REGNUM.
        * hppa-tdep.c (hppa64_integral_or_pointer_p)
index e624cc8f7a846d3e8be4fad776057237212172c2..f426c178b82aa601c83b8083974317ff6766a706 100644 (file)
@@ -1466,7 +1466,7 @@ hppa64_hpux_search_dummy_call_sequence (struct gdbarch *gdbarch, CORE_ADDR pc,
       find_pc_partial_function (SYMBOL_VALUE_ADDRESS (msym), &name,
                                &begin, &end);
 
-      if (*name == 0 || begin == 0 || end == 0)
+      if (name == NULL || begin == 0 || end == 0)
         continue;
 
       if (target_read_memory (end - sizeof (insns), (char *)insns, sizeof (insns)) == 0)