From: Daniel Jacobowitz <drow@mvista.com>
To: Andrew Cagney <ac131313@redhat.com>
Cc: gdb-patches@sources.redhat.com
Subject: Re: [unwind-20030108-branch] Add sentinel-frame + misc
Date: Sat, 11 Jan 2003 18:34:00 -0000 [thread overview]
Message-ID: <20030111183437.GB1930@nevyn.them.org> (raw)
In-Reply-To: <3E205F17.3060906@redhat.com>
On Sat, Jan 11, 2003 at 01:14:47PM -0500, Andrew Cagney wrote:
> >@@ -555,8 +522,14 @@
> >> If the value isn't here AND a value is needed, try the next inner
> >> most frame. */
> >>
> >>+struct frame_unwind_cache
> >>+{
> >>+ void *regs[1];
> >>+};
> >>+
> >
> >
> >I know it makes some type-checking simpler, but naming all your private
> >types
> >the same thing is a real nuisance when using this lame "GDB" thing on
> >the code afterwards. Must we?
>
> Looks like more bugs in gdb :-(
It's hardly a bug; more of a deep interface shortcoming. Consider:
File A declares a type 'struct foo'.
File B declares a type 'struct foo'.
Header C forward declares 'struct foo;' and 'struct foo *get_foo ()'.
File D includes Header C and uses 'get_foo'.
I'm sitting in File D, and I want to look in the debugger at this
opaque unwind cache. There's no possible way to associate it with
either struct foo.
That's why I think the construct should be avoided; if one of them is
A_foo and the other is B_foo, and we do a bit of casting, then at least
I can dump the one I want.
--
Daniel Jacobowitz
MontaVista Software Debian GNU/Linux Developer
next prev parent reply other threads:[~2003-01-11 18:34 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-01-10 2:17 Andrew Cagney
2003-01-10 6:45 ` Andrew Cagney
2003-01-10 21:33 ` Daniel Jacobowitz
2003-01-11 18:14 ` Andrew Cagney
2003-01-11 18:34 ` Daniel Jacobowitz [this message]
2003-01-11 20:42 ` Andrew Cagney
2003-01-11 20:54 ` Daniel Jacobowitz
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=20030111183437.GB1930@nevyn.them.org \
--to=drow@mvista.com \
--cc=ac131313@redhat.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