Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Nick Roberts <nickrob@snap.net.nz>
To: Vladimir Prus <ghost@cs.msu.su>
Cc: gdb-patches@sources.redhat.com
Subject: Re: [PATCH, gdb6.8] -break-list doesn't list multiple breakpoints
Date: Thu, 03 Apr 2008 11:28:00 -0000	[thread overview]
Message-ID: <18420.47850.169206.141581@kahikatea.snap.net.nz> (raw)
In-Reply-To: <ft29r8$k84$1@ger.gmane.org>

 > > If set individually, the multiple breakpoint locations can be used with
 > > deleted, ignore, condition and commands.  
 > 
 > To set individual breakpoint on constructor instances, for example,
 > you need to set breakpoint at address.
 > 
 > > Why would this not true when the 
 > > location is part of a multiple breakpoint?  Is it just due to the
 > > implementation or a fundamental limitation?
 > 
 > That's the design of multiple-location breakpoints. You specify the line
 > or function on which such a breakpoint should be set. GDB that arranges
 > for the list of locations to automatically include all relevant addresses,
 > including when shared libraries are loaded and unloaded. Note that while
 > there's mechanism to enable and disable individual locations, it's a bit
 > heuristic, so the enable/disable state might not be carried over when
 > new shared libraries are loaded.
 > 
 > Allowing the user to manipulate individual locations will interfere with
 > this automatic updating of location list. 

I'm not familar with the need to load and unload shared libraries, Gdb just
loads them automatically for me.

 >                                           Furthermore, what is the use case?
 > For constructors, one is not likely to ever want to do anything with
 > individual locations. For inlined functions, I don't know why you would
 > specifically treat one inlined instance, but if you wish, you can always
 > create a more specific breakpoint, like on address, and do anything.
 > 
 > Of course, we can provide a command that creates individual breakpoints on
 > each address matching a specification, and does not do any auto-update of
 > those breakpoints. If you think such a behaviour will be useful, can you
 > explain why, and then work on implementing it?

I can imagine it might be useful to control the breakpoint locations
individually but, in practice I've never needed multiple breakpoints yet.
However, if it's not useful then it's probably unlikely that anyone would
try to do it in a frontend as you suggested earlier:


     Yes, but those are not a breakpoints, do it will do a disservice to the
     existing frontends. In particular, might find it very interesting
     experience to edit condition of one breakpoint, and having conditions on
     other breakpoints change. Likewise, changing any properly of location will
     not work.


-- 
Nick                                           http://www.inet.net.nz/~nickrob


  reply	other threads:[~2008-04-03 11:10 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-04-02 17:16 Bogdan Slusarczyk
2008-04-03  5:42 ` Nick Roberts
2008-04-03  6:44   ` Vladimir Prus
2008-04-03  9:21     ` Nick Roberts
2008-04-03 10:00       ` Vladimir Prus
2008-04-03 10:45         ` Nick Roberts
2008-04-03 10:49           ` Vladimir Prus
2008-04-03 11:28             ` Nick Roberts [this message]
2008-04-03 11:39               ` Vladimir Prus
2008-04-03 11:52               ` Bogdan Slusarczyk
2008-04-03 12:12                 ` Vladimir Prus
2008-04-03 12:48                   ` Bogdan Slusarczyk
2008-04-14 18:22 ` Daniel Jacobowitz
2008-04-15  8:35   ` Vladimir Prus
2008-04-15 20:13   ` Bogdan Slusarczyk

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=18420.47850.169206.141581@kahikatea.snap.net.nz \
    --to=nickrob@snap.net.nz \
    --cc=gdb-patches@sources.redhat.com \
    --cc=ghost@cs.msu.su \
    /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