From: Daniel Jacobowitz <drow@mvista.com>
To: Elena Zannoni <ezannoni@redhat.com>
Cc: Michael Snyder <msnyder@redhat.com>, gdb-patches@sources.redhat.com
Subject: Re: [RFA] Fix mi-break.exp: 'b "basics.c":16'
Date: Fri, 10 May 2002 12:50:00 -0000 [thread overview]
Message-ID: <20020510195051.GA3923@nevyn.them.org> (raw)
In-Reply-To: <15579.1733.506502.884427@localhost.redhat.com>
On Thu, May 09, 2002 at 07:31:17PM -0400, Elena Zannoni wrote:
> Daniel Jacobowitz writes:
> > On Thu, May 09, 2002 at 03:40:42PM -0700, Michael Snyder wrote:
> > > Daniel Jacobowitz wrote:
> > > >
> > > > [I dislike decode_line_1. But that seems to be the general consensus...]
> > > >
> > > > There was a logic error in the code to handle "file":line. Several,
> > > > actually. I suspect that it once worked and had bitrotten as the behavior
> > > > of the function changed. For instance, at the beginning of the function:
> > > >
> > > > if (p[0] == '"')
> > > > {
> > > > is_quote_enclosed = 1;
> > > > (*argptr)++;
> > > > p++;
> > > > }
> > > >
> > > > Then below it checked 'is_quote_enclosed && (**argptr) == '"').
> > >
> > > [line break inserted]
> > >
> > > > That'll only be true given a literal '"":<line>', which was not
> > > > the intent of the test.
> > >
> > > I don't understand this statement. Between the two bits of text
> > > you've named, both p and *argptr are changed. Seems to me, there
> > > could be any number of characters between the two quotes.
> >
> > This is the part that took me the longest to work out in the first
> > place, I think. `p' being changed doesn't matter here; it should end
> > up point at (before?) the colon.
> >
> > The first if statement is at line 630. The second is at 929. Between
> > the two, *argptr is only changed if we found a C++ class. It might be
> > changed on "interestingly" named files, also, but if so it's purely a
> > bug in the twistiness of linespec. At line 633 it points to the
> > _second_ character (right after the first quote), so if **argptr ==
> > '"', that means the second quote is right after the first.
>
> As usual, I had to go and see when/why the test started failing,
> and it was because a patch from March 2001, which was fixing
> a core dump on the following:
>
> (gdb) break "foo"
>
> I have verified that your patch doesn't reintroduce the core dump.
> I guess we can check that in.
OK, committed.
> Hey, any chance you can add a break "foo" in some testfile somewhere?
> Probably break.exp?
Just posted one.
>
> Elena
>
>
> >
> > >
> > >
> > > > This patch updates the behavior, should change nothing else, and causes no
> > > > regressions. OK to check in?
> > > >
> > > > --
> > > > Daniel Jacobowitz Carnegie Mellon University
> > > > MontaVista Software Debian GNU/Linux Developer
> > > >
> > > > 2002-04-02 Daniel Jacobowitz <drow@mvista.com>
> > > >
> > > > * linespec.c (decode_line_1): Check for a double quote after
> > > > a filename correctly.
--
Daniel Jacobowitz Carnegie Mellon University
MontaVista Software Debian GNU/Linux Developer
next prev parent reply other threads:[~2002-05-10 19:50 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-04-02 16:29 Daniel Jacobowitz
2002-05-09 15:31 ` Daniel Jacobowitz
2002-05-09 15:35 ` Elena Zannoni
2002-05-09 15:53 ` Michael Snyder
2002-05-09 16:05 ` Daniel Jacobowitz
2002-05-09 16:32 ` Elena Zannoni
2002-05-10 12:50 ` Daniel Jacobowitz [this message]
2002-04-03 7:58 Michael Elizabeth Chastain
2002-04-03 8:20 ` Daniel Jacobowitz
2002-04-03 8:39 Michael Elizabeth Chastain
2002-04-03 9:39 Michael Elizabeth Chastain
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=20020510195051.GA3923@nevyn.them.org \
--to=drow@mvista.com \
--cc=ezannoni@redhat.com \
--cc=gdb-patches@sources.redhat.com \
--cc=msnyder@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