* 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
* Re: constructor breakpoints
2008-03-28 15:41 constructor breakpoints Doug Evans
@ 2008-03-30 21:26 ` Daniel Jacobowitz
0 siblings, 0 replies; 2+ messages in thread
From: Daniel Jacobowitz @ 2008-03-30 21:26 UTC (permalink / raw)
To: Doug Evans; +Cc: gdb
On Thu, Mar 27, 2008 at 05:04:57PM -0700, Doug Evans wrote:
> 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?
Not that I know of. Hey, at least we fixed the _other_ breakpoints in
constructors bug.
> 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.]
I like that last one - I always have - but I'm a little worried about
how much work it would be in practice; neither stabs nor dwarf symbol
info is really laid out quite right for it.
--
Daniel Jacobowitz
CodeSourcery
^ 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