diff options
author | Andrew Cagney <cagney@redhat.com> | 2003-07-27 17:27:17 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 2003-07-27 17:27:17 +0000 |
commit | a2bc0697931899a0117e8198ff8e5283a454ef52 (patch) | |
tree | b54fc6f6cff387a7b808f12fcd1f93c7ed2a2935 | |
parent | b9f0ef15102d1baafa7d3c133ae9179b281515de (diff) | |
download | gdb-a2bc0697931899a0117e8198ff8e5283a454ef52.tar.gz |
2003-07-27 Andrew Cagney <cagney@redhat.com>
* config/pa/tm-hppa.h (init_frame_pc_default): Declare.
* infcall.c (legacy_push_dummy_code) [GDB_TARGET_IS_HPPA]: Update
REAL_PC and not the pointer.
* hppa-hpux-tdep.c: Include frame.h
-rw-r--r-- | gdb/ChangeLog | 7 | ||||
-rw-r--r-- | gdb/config/pa/tm-hppa.h | 3 | ||||
-rw-r--r-- | gdb/hppa-hpux-tdep.c | 1 | ||||
-rw-r--r-- | gdb/infcall.c | 4 |
4 files changed, 13 insertions, 2 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index a6651010457..00479e903c5 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,12 @@ 2003-07-27 Andrew Cagney <cagney@redhat.com> + * config/pa/tm-hppa.h (init_frame_pc_default): Declare. + * infcall.c (legacy_push_dummy_code) [GDB_TARGET_IS_HPPA]: Update + REAL_PC and not the pointer. + * hppa-hpux-tdep.c: Include frame.h + +2003-07-27 Andrew Cagney <cagney@redhat.com> + * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Set to GDB_MULTI_ACH_PARTIAL. diff --git a/gdb/config/pa/tm-hppa.h b/gdb/config/pa/tm-hppa.h index 3d0d3f16588..7729518cc6e 100644 --- a/gdb/config/pa/tm-hppa.h +++ b/gdb/config/pa/tm-hppa.h @@ -35,6 +35,9 @@ #define DEPRECATED_USE_GENERIC_DUMMY_FRAMES 0 #define CALL_DUMMY_LOCATION ON_STACK #define DEPRECATED_PC_IN_CALL_DUMMY(pc, sp, frame_address) deprecated_pc_in_call_dummy_on_stack (pc, sp, frame_address) +/* Hack, get around problem with including "arch-utils.h". */ +struct frame_info; +extern CORE_ADDR init_frame_pc_default (int fromleaf, struct frame_info *prev); #define DEPRECATED_INIT_FRAME_PC(l,f) (init_frame_pc_default (l, f)) /* Forward declarations of some types we use in prototypes */ diff --git a/gdb/hppa-hpux-tdep.c b/gdb/hppa-hpux-tdep.c index 0fb7c8f879d..5d26c7c5442 100644 --- a/gdb/hppa-hpux-tdep.c +++ b/gdb/hppa-hpux-tdep.c @@ -23,6 +23,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #include "gdbcore.h" #include "osabi.h" #include "gdb_string.h" +#include "frame.h" /* Forward declarations. */ extern void _initialize_hppa_hpux_tdep (void); diff --git a/gdb/infcall.c b/gdb/infcall.c index 123fba067cf..477fc0f44d6 100644 --- a/gdb/infcall.c +++ b/gdb/infcall.c @@ -274,8 +274,8 @@ legacy_push_dummy_code (struct gdbarch *gdbarch, with the values. Instead a DEPRECATED_FIX_CALL_DUMMY replacement (PUSH_DUMMY_BREAKPOINT?) should just do everything. */ #ifdef GDB_TARGET_IS_HPPA - real_pc = DEPRECATED_FIX_CALL_DUMMY (dummy1, start_sp, funaddr, nargs, args, - value_type, using_gcc); + (*real_pc) = DEPRECATED_FIX_CALL_DUMMY (dummy1, start_sp, funaddr, nargs, + args, value_type, using_gcc); #else if (DEPRECATED_FIX_CALL_DUMMY_P ()) { |