Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* constructor breakpoints
@ 2008-03-28 15:41 Doug Evans
  2008-03-30 21:26 ` Daniel Jacobowitz
  0 siblings, 1 reply; 2+ messages in thread
From: Doug Evans @ 2008-03-28 15:41 UTC (permalink / raw)
  To: gdb

Having recently tripped over this (not being able to set breakpoints
on constructors), and having read as much of the sordid history of
this as I can find, I wonder what the current thinking is on how to
fix this.  Has there been any progress?

bash$ ./gdb -nx testsuite/gdb.cp/overload
(gdb) b foo::foo
[0] cancel
[1] all
?HERE
?HERE
?HERE
>

The ?HERE's are because symbol lookup finds the class, not the
constructor.  Being able to specifically ask for the constructor seems
like a reasonable way to go.  This could be done by encoding the
request in the name (looking up c::c), or specifying the class of
object to lookup (e.g. LOC_BLOCK), or rearranging the symbol table
such that one can lookup the class, and then from that lookup (or
iterate) over members that match certain parameters.  [I'm just
throwing out a range of possibilities.]


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-03-28  2:51 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-03-28 15:41 constructor breakpoints Doug Evans
2008-03-30 21:26 ` Daniel Jacobowitz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox