From: Daniel Jacobowitz <drow@mvista.com>
To: gdb-patches@sources.redhat.com
Subject: Re: [PATCH/RFC] Per-architecture DWARF CFI register state initialization hooks
Date: Sat, 07 Feb 2004 23:03:00 -0000 [thread overview]
Message-ID: <20040207230330.GA6717@nevyn.them.org> (raw)
In-Reply-To: <200402072237.i17Mbqae011375@elgar.kettenis.dyndns.org>
On Sat, Feb 07, 2004 at 11:37:52PM +0100, Mark Kettenis wrote:
> Here's my proposal for the per-architecture DWARF CFI register state
> initialization hooks needed for S/390, and others. This is a RFC,
> since I'm not entirely confident whether my approach is acceptable. I
> chose to implement this using per-architecture data instead of adding
> a function to the architecture vector. I think it is cleaner since it
> keeps things localized and modular, and the architecture vector is big
> enough as it stands. However you folks might think otherwise.
Hmm, I do. You're adding a per-architecture data item which is a
function pointer, and what amounts to the rest of what gdbarch.sh would
generate (wrapper functions, default initialization. I'd rather you
just used gdbarch.sh.
> Ulrich, this should privide the hooks you need. For S/390 you should
> provide a function with the following signature:
>
> void
> s390_dwarf2_frame_init_reg (struct gdbarch *gdbarch, int regnum,
> struct gdbarch dwarf2_frame_state_reg *reg);
>
> and initialize REG according to your needs for the REGNUMs you care
> about. Note that REGNUM is the GDB register number.
>
> Comments?
I've no objection. I would have done something like:
void
gdbarch_dwarf2_frame_init_reg (struct gdbarch *gdbarch,
struct dwarf3_frame_state_reg *reg);
dwarf2_frame_default_init_reg (reg);
gdbarch_dwarf2_frame_init_reg (gdbarch, reg);
but this is just as good, and we're not _that_ pinched for startup
time.
--
Daniel Jacobowitz
MontaVista Software Debian GNU/Linux Developer
next prev parent reply other threads:[~2004-02-07 23:03 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-02-07 22:38 Mark Kettenis
2004-02-07 23:03 ` Daniel Jacobowitz [this message]
2004-02-07 23:48 ` Andrew Cagney
2004-02-15 15:31 ` Mark Kettenis
2004-02-15 16:04 ` Andrew Cagney
2004-02-15 18:09 ` Daniel Jacobowitz
2004-02-15 19:49 ` Andrew Cagney
2004-02-15 20:37 ` Daniel Jacobowitz
2004-02-15 21:37 ` Andrew Cagney
2004-02-15 22:54 ` Daniel Jacobowitz
2004-02-15 21:31 ` Mark Kettenis
2004-02-08 1:01 ` Ulrich Weigand
2004-02-16 1:28 Ulrich Weigand
2004-02-16 1:56 ` Daniel Jacobowitz
2004-02-16 13:01 ` Ulrich Weigand
2004-02-16 19:47 ` Daniel Jacobowitz
2004-02-16 20:50 ` Andrew Cagney
2004-02-16 20:55 ` Andrew Cagney
2004-02-18 16:59 ` Mark Kettenis
2004-02-18 18:40 ` 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=20040207230330.GA6717@nevyn.them.org \
--to=drow@mvista.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