From: Joel Brobecker <brobecker@gnat.com>
To: gdb-patches@sources.redhat.com
Subject: [commit/multiarch/hppa] push_dummy_frame method taken care of
Date: Wed, 19 Mar 2003 20:19:00 -0000 [thread overview]
Message-ID: <20030319201912.GD16507@gnat.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 723 bytes --]
Hello,
boring stuff, I just committed the following patch, using the multiarch
pass. Next is the fix_call_dummy method. After that, unless my notes are
incomplete, we should be able to go to multiarch partial for hppa
(hppa64 will come after).
2003-03-19 J. Brobecker <brobecker@gnat.com>
Continuing work to convert the hppa targets to multiarch partial.
* hppa-tdep.c (hppa_gdbarch_init): Set the push_dummy_frame gdbarch
method, now that hppa_push_dummy_frame has a conformant prototype.
* config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Wrap macro
inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
for the switch to multiarch partial.
--
Joel
[-- Attachment #2: hpux.diff --]
[-- Type: text/plain, Size: 2311 bytes --]
Index: hppa-tdep.c
===================================================================
RCS file: /cvs/src/src/gdb/hppa-tdep.c,v
retrieving revision 1.58
diff -c -3 -p -r1.58 hppa-tdep.c
*** hppa-tdep.c 18 Mar 2003 18:57:47 -0000 1.58
--- hppa-tdep.c 19 Mar 2003 20:02:57 -0000
*************** hppa_gdbarch_init (struct gdbarch_info i
*** 5000,5006 ****
set_gdbarch_frame_locals_address (gdbarch, hppa_frame_locals_address);
set_gdbarch_frame_num_args (gdbarch, hppa_frame_num_args);
set_gdbarch_frame_args_skip (gdbarch, 0);
! /* set_gdbarch_deprecated_push_dummy_frame (gdbarch, hppa_push_dummy_frame); */
set_gdbarch_deprecated_pop_frame (gdbarch, hppa_pop_frame);
set_gdbarch_call_dummy_length (gdbarch, INSTRUCTION_SIZE * 28);
set_gdbarch_call_dummy_start_offset (gdbarch, 0);
--- 5000,5006 ----
set_gdbarch_frame_locals_address (gdbarch, hppa_frame_locals_address);
set_gdbarch_frame_num_args (gdbarch, hppa_frame_num_args);
set_gdbarch_frame_args_skip (gdbarch, 0);
! set_gdbarch_deprecated_push_dummy_frame (gdbarch, hppa_push_dummy_frame);
set_gdbarch_deprecated_pop_frame (gdbarch, hppa_pop_frame);
set_gdbarch_call_dummy_length (gdbarch, INSTRUCTION_SIZE * 28);
set_gdbarch_call_dummy_start_offset (gdbarch, 0);
Index: config/pa/tm-hppa.h
===================================================================
RCS file: /cvs/src/src/gdb/config/pa/tm-hppa.h,v
retrieving revision 1.37
diff -c -3 -p -r1.37 tm-hppa.h
*** config/pa/tm-hppa.h 18 Mar 2003 18:57:48 -0000 1.37
--- config/pa/tm-hppa.h 19 Mar 2003 20:02:57 -0000
*************** extern void hppa_frame_find_saved_regs (
*** 450,459 ****
/* Things needed for making the inferior call functions. */
! /* Push an empty stack frame, to record the current PC, etc. */
!
#define DEPRECATED_PUSH_DUMMY_FRAME hppa_push_dummy_frame ()
extern void hppa_push_dummy_frame (void);
/* Discard from the stack the innermost frame,
restoring all saved registers. */
--- 450,459 ----
/* Things needed for making the inferior call functions. */
! #if !GDB_MULTI_ARCH
#define DEPRECATED_PUSH_DUMMY_FRAME hppa_push_dummy_frame ()
extern void hppa_push_dummy_frame (void);
+ #endif
/* Discard from the stack the innermost frame,
restoring all saved registers. */
next reply other threads:[~2003-03-19 20:19 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-03-19 20:19 Joel Brobecker [this message]
2003-03-19 20:43 ` Andrew Cagney
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20030319201912.GD16507@gnat.com \
--to=brobecker@gnat.com \
--cc=gdb-patches@sources.redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox