From b6fbdd1dbd3fc51820618ba044e81eaac6205f19 Mon Sep 17 00:00:00 2001 From: Joel Brobecker Date: Wed, 13 Aug 2003 17:09:09 +0000 Subject: [PATCH] * hppa-tdep.c (hppa_gdbarch_init): Set the addr_bits_remove gdbarch method to clear the 2 low bits of text addresses. --- gdb/ChangeLog | 5 +++++ gdb/hppa-tdep.c | 1 + 2 files changed, 6 insertions(+) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index a68614f..5474300 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2003-08-13 J. Brobecker + + * hppa-tdep.c (hppa_gdbarch_init): Set the addr_bits_remove + gdbarch method to clear the 2 low bits of text addresses. + 2003-08-12 Andrew Cagney * Makefile.in (dsrec.o): Update dependencies. diff --git a/gdb/hppa-tdep.c b/gdb/hppa-tdep.c index fed6cb1..fb40481 100644 --- a/gdb/hppa-tdep.c +++ b/gdb/hppa-tdep.c @@ -5046,6 +5046,7 @@ hppa_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches) set_gdbarch_deprecated_call_dummy_length (gdbarch, INSTRUCTION_SIZE * 28); /* set_gdbarch_deprecated_fix_call_dummy (gdbarch, hppa_fix_call_dummy); */ set_gdbarch_deprecated_push_arguments (gdbarch, hppa_push_arguments); + set_gdbarch_addr_bits_remove (gdbarch, hppa_smash_text_address); set_gdbarch_smash_text_address (gdbarch, hppa_smash_text_address); set_gdbarch_believe_pcc_promotion (gdbarch, 1); set_gdbarch_read_pc (gdbarch, hppa_target_read_pc); -- 2.7.4