This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: [RFA/RFC] Tweak for a gdb.mi test.
- From: Daniel Jacobowitz <drow at mvista dot com>
- To: Michael Snyder <msnyder at cygnus dot com>
- Cc: gdb-patches at sources dot redhat dot com
- Date: Tue, 7 May 2002 21:30:41 -0400
- Subject: Re: [RFA/RFC] Tweak for a gdb.mi test.
- References: <200205080109.g4819B821604@reddwarf.sfbay.redhat.com>
On Tue, May 07, 2002 at 06:09:11PM -0700, Michael Snyder wrote:
>
> I'm gonna ask for a second pair of eyes, since I don't know MI
> very well.
>
> What this is -- the test is examining the stack, but it is
> assuming that main is the last frame. My change allows for
> one extra frame below main (eg. for '_start').
>
> OK to check in?
Before you check this in, I would prefer to have a policy decision
in place about whether we should show that frame or not. The relevant
macro is FRAME_CHAIN_VALID; I believe we should universally (or almost
universally) change this to stop at main. I think that's
func_frame_chain_valid but don't trust my memory.
Some ports (HP/UX comes to mind) do wacky things in this macro/method.
I'm not sure what they accomplish or whether they are really necessary.
Most default to either file_ or func_, and we should standardize that
unless there is a good reason not to.
--
Daniel Jacobowitz Carnegie Mellon University
MontaVista Software Debian GNU/Linux Developer