Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Cyrille Comar <comar@adacore.com>
To: Paul Hilfinger <hilfingr@gnat.com>
Cc: gdb@sourceware.org
Subject: : Re: [RFC] multiple breakpoints from FILE:LINE
Date: Sun, 15 Jan 2006 01:51:00 -0000	[thread overview]
Message-ID: <43C9AAA8.2030605@adacore.com> (raw)

 >> Those menus have got to go.  They're (a) confusing to users (in my
 >> opinion, no real data), and (b) extremely awkward for graphical
 >> frontends.

 > Interesting.  As I said, in Ada, the multi-line feature is much more
 > important than in C.  AdaCore's version has been around for years, and
 > has simply created multiple breakpoints (controlled by menu, as for
 > overloading).  We haven't gotten loud calls for doing things
 > differently (well, point (b) has caused internal gripes), but perhaps
 > I should do some polling for soft grumbling from users.

Ok, here is some soft grumblings from a long-standing internal user of 
the AdaCore version: grumble grumble...
;-)

I agree with Daniel's (a) & (b). I have never grumbled before on this 
topic because I did not have anything constructive to contribute. This 
thread gave me an idea. Here it is:

I believe it would be worthwhile to have 2 different break commands:
     - break
     - break-multiple (or whatever other more appropriate name)

break-multiple would have the semantics advocated by Daniel (break 
automatically on all relevant locations)

break, instead of presenting a menu, would issue an error of the kind:

(gdb) break FILENAME:LINENUM
multiple choices for this breakpoint, please use any of the following:
break-multiple FILENAME:LINENUM
break FILENAME:instance1.function:LINENUM
break FILENAME:instance2.function:LINENUM
break FILENAME:instance3.function:LINENUM


That solves 4 issues:
   - an experienced user can do exactly what she wants
   - a less experienced user can copy/paste the appropriate choice from 
the error message
   - there is no more awkward interactive menu in text mode
   - a graphical interface can easily parse the error output and do 
whatever deemed appropriate in the interface (presenting a menu for 
instance)


             reply	other threads:[~2006-01-15  1:51 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-01-15  1:51 Cyrille Comar [this message]
2006-01-15 16:33 ` Paul Koning
2006-01-15 16:45   ` Daniel Jacobowitz
2006-01-15 17:41     ` Robert Dewar
2006-01-15 22:23       ` Paul Koning
2006-01-16 13:43     ` Cyrille Comar
2006-01-16 13:47       ` Daniel Jacobowitz
2006-01-16 14:16         ` Cyrille Comar
2006-01-16 15:31       ` Paul Koning
2006-01-15 17:38   ` Robert Dewar
2006-01-16  6:58     ` Jim Blandy
2006-01-16 10:03       ` Robert Dewar
2006-01-16 10:04       ` Robert Dewar
2006-01-15 22:23 ` Paul Hilfinger

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=43C9AAA8.2030605@adacore.com \
    --to=comar@adacore.com \
    --cc=gdb@sourceware.org \
    --cc=hilfingr@gnat.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