This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: [RFC] if (INNER_THAN (read_sp(), step_sp - 16))
- To: Andrew Cagney <ac131313 at cygnus dot com>
- Subject: Re: [RFC] if (INNER_THAN (read_sp(), step_sp - 16))
- From: Michael Snyder <msnyder at cygnus dot com>
- Date: Fri, 15 Jun 2001 18:09:59 -0700
- CC: "Peter.Schauer" <Peter dot Schauer at Regent dot E-Technik dot TU-Muenchen dot DE>, gdb-patches at sources dot redhat dot com
- Organization: Red Hat
- References: <3B2A97C7.52A839FD@cygnus.com> <3B2A9EC8.7020106@cygnus.com>
Andrew Cagney wrote:
>
> > But I have no idea how to detect the situation that you are
> > trying to test for. So I'd like to toss it back to you.
> > Can you find a better way to test for this? Maybe with
> > (ugh) another state variable?
> >
> > And if not, can you put those two lines into an ifdef,
> > so they won't affect targets for which they're not intended?
>
> Well it can't be a (ugh) #ifdef :-)
Not even to temporarily circumvent a known bug?
I understand your objection (multi-arch, if not general
distaste), but there are lots of ifdefs in infrun.c already...
FYI, I was thinking along the lines of
(currently_stepping (ecs)
#ifdef TM_i386SOL2_H
&& !(step_range_end
&& INNER_THAN (read_sp (), (step_sp - 16)))
#endif
));
which would preserve the behavior on x86 solaris, while
protecting the rest of the world until Peter can come up
with a better implementation.
Michael