2003-07-27 Andrew Cagney <cagney@redhat.com>
authorAndrew Cagney <cagney@redhat.com>
Sun, 27 Jul 2003 17:27:17 +0000 (17:27 +0000)
committerAndrew Cagney <cagney@redhat.com>
Sun, 27 Jul 2003 17:27:17 +0000 (17:27 +0000)
* 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

gdb/ChangeLog
gdb/config/pa/tm-hppa.h
gdb/hppa-hpux-tdep.c
gdb/infcall.c

index a66510104579eb2633f899b69c5104815bd834ef..00479e903c59a8ddf43e23c17ada01319ac02f7e 100644 (file)
@@ -1,3 +1,10 @@
+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
index 3d0d3f165884d974d9266ade067ab34e77f48767..7729518cc6e23e8f5852f96c7f4f4f16877f70cc 100644 (file)
@@ -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 */
index 0fb7c8f879d307bb5785dce3e00e580c5a0c8554..5d26c7c5442b570f562bf21f508266774f7b7243 100644 (file)
@@ -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);
index 123fba067cf5974d20ccde0ca29564d2797dd8e9..477fc0f44d6658e8c0d807800678723abc1c0da4 100644 (file)
@@ -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 ())
     {