From a77fb3fe1f4745a1b7e80632c6bbd8bac8ec399f Mon Sep 17 00:00:00 2001 From: kettenis Date: Sun, 19 Dec 2004 22:09:22 +0000 Subject: [PATCH] * 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. --- gdb/ChangeLog | 4 ++++ gdb/hppa-hpux-tdep.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 5a1bcb5574..cbab622280 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,9 @@ 2004-12-19 Mark Kettenis + * 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) diff --git a/gdb/hppa-hpux-tdep.c b/gdb/hppa-hpux-tdep.c index e624cc8f7a..f426c178b8 100644 --- a/gdb/hppa-hpux-tdep.c +++ b/gdb/hppa-hpux-tdep.c @@ -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) -- 2.11.0