Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Joel Brobecker <brobecker@adacore.com>
To: Tom Tromey <tromey@redhat.com>
Cc: Jerome Guitton <guitton@adacore.com>,
	Jan Kratochvil <jan.kratochvil@redhat.com>,
	gdb-patches@sourceware.org
Subject: Re: RFA: implement ambiguous linespec proposal
Date: Wed, 09 Nov 2011 17:56:00 -0000	[thread overview]
Message-ID: <20111109175623.GP14508@adacore.com> (raw)
In-Reply-To: <m3r51hfcfx.fsf@fleche.redhat.com>

> Joel> [1]: We tried contributing it, but it was too hacky to really be part
> Joel>      of the FSF sources. The main complaint at the time was the fact
> Joel>      that it introduced a canonical form that was specific to Ada. I was
> Joel>      planning on looking at generalizing it to all languages, but never
> Joel>      got around to doing it.
> 
> Do you have a URL?  This would be a good time to resurrect it.

Sure, although I don't know if you really need to re-read the messages
or not. I think you already know quite a bit about it, and I can tell
you the rest...

    http://www.sourceware.org/ml/gdb-patches/2008-01/msg00008.html

Another message regarding the subject, this time involving Pascal:

    http://www.sourceware.org/ml/gdb-patches/2008-09/msg00379.html

> I would like to take a look... I don't know Ada, though, so I'm going to
> guess that I probably won't be able to fix it up.

And I don't really expect you to. Either I fix it up with you, or
maybe you provide a hook somewhere that I can then implement, etc.

> In terms of the proposed patch, the key question is whether rewriting
> is needed for Ada, and if so, whether it can be done uniquely.

It is needed, and that's what we do at AdaCore. That's the new
canonical form that I was mentioning in the previous messages.
I don't think it is 100% unique, but it's pretty close, and I think
it's the best we can do (we've never heard reports of problems
with that form in the 10+ years we've been using it).

The canonical form for Ada is: FILE:FUNCTION_NAME:LINE_NO. Once
written in that form, the linespec parser should always re-evaluate
it into one single logical breakpoint (with potentially multiple
locations).

The question is, can we use that same form for everyone? I thought
you were going to do unconditional rewriting of the location string,
but now I'm not so sure anymore...

-- 
Joel


  reply	other threads:[~2011-11-09 17:56 UTC|newest]

Thread overview: 42+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-10-28 17:34 Tom Tromey
2011-10-28 20:52 ` Matt Rice
2011-11-01 20:38   ` Tom Tromey
2011-10-28 22:41 ` Jan Kratochvil
2011-11-01 20:58   ` Tom Tromey
2011-11-03 20:49     ` Tom Tromey
2011-11-04  7:46       ` Jan Kratochvil
2011-11-08 16:36         ` Tom Tromey
2011-11-09 16:05           ` Joel Brobecker
2011-11-09 17:12             ` Tom Tromey
2011-11-09 17:56               ` Joel Brobecker [this message]
2011-11-09 18:19                 ` Tom Tromey
2011-11-09 19:00                   ` Joel Brobecker
2011-11-14 21:04                     ` Tom Tromey
2011-11-14 21:32                       ` Jerome Guitton
2011-11-09 18:37           ` Tom Tromey
2011-11-14 21:11             ` Tom Tromey
2011-11-15 16:30               ` Tom Tromey
2011-11-15 16:59                 ` Pierre Muller
2011-11-16  0:09                 ` Jan Kratochvil
2011-11-16  1:58                   ` Joel Brobecker
2011-11-16 14:46                   ` Tom Tromey
2011-11-18 14:10                     ` Tom Tromey
2011-11-16 21:23                 ` Stan Shebs
2011-11-16  2:28               ` Yao Qi
2011-11-16  3:20                 ` Doug Evans
2011-11-16 14:46                 ` Tom Tromey
2011-11-16 16:06                   ` Tom Tromey
2011-11-16  4:57               ` Doug Evans
2011-11-16  5:22                 ` Doug Evans
2011-11-16 14:54                   ` Tom Tromey
2011-11-16 16:32                     ` Doug Evans
2011-11-16 16:39                       ` Tom Tromey
2011-11-16 14:49                 ` Tom Tromey
2011-11-16  8:15               ` Yao Qi
2011-11-16 16:17                 ` Tom Tromey
2011-11-16 15:43               ` Yao Qi
2011-11-16 16:11                 ` Tom Tromey
2011-11-16 16:44                   ` Tom Tromey
2011-11-17  3:49                     ` Yao Qi
2011-11-21 21:50                       ` Tom Tromey
2011-11-23 21:33               ` Tom Tromey

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=20111109175623.GP14508@adacore.com \
    --to=brobecker@adacore.com \
    --cc=gdb-patches@sourceware.org \
    --cc=guitton@adacore.com \
    --cc=jan.kratochvil@redhat.com \
    --cc=tromey@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