aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@gnu.org>2004-12-19 22:09:26 +0000
committerMark Kettenis <kettenis@gnu.org>2004-12-19 22:09:26 +0000
commit81092a3ee147bdfa8dfa78681f145de8da25b2fa (patch)
treeebb29af9a131a08e5ea4d1433fe6fe3cc5f8d88d /gdb
parent38ca4e0c24a0e3d7b70b141c913d7e2998eb28e4 (diff)
downloadgdb-81092a3ee147bdfa8dfa78681f145de8da25b2fa.zip
gdb-81092a3ee147bdfa8dfa78681f145de8da25b2fa.tar.gz
gdb-81092a3ee147bdfa8dfa78681f145de8da25b2fa.tar.bz2
* 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.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog4
-rw-r--r--gdb/hppa-hpux-tdep.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 5a1bcb5..cbab622 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -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)
diff --git a/gdb/hppa-hpux-tdep.c b/gdb/hppa-hpux-tdep.c
index e624cc8..f426c17 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)