Red Hat Bugzilla – Bug 232568
can't set breakpoints on lines in other than first template instance
Last modified: 2007-11-16 20:14:55 EST
It is impossible to set breakpoints on lines in the 2-n
instances of templates. The 'rbreak template<.*>::function'
approach only goes so far. At one time it was possible to set a
breakpoint on a line in a template function once the initial
'rbreak' was hit and the context was current, but this doesn't
work as of 'gdb-220.127.116.11-1.132.EL4'. Tried vanilla 'gdb' 6.6
with same result.
'gdb' site bug report on this seems to be years old and have
received no attention whatsoever:
This problem is truly maddening! Makes 'gdb' useless! Have to
do most debugging on Solaris and Windows because of it.
Confirming it is a known bug.
There is even now syntax to specify the instance without changing the context.
Changing the context usually works but it did not work for me even on RawHide
during a test now.
I am sorry that I have to advice you to submit your request through your RHEL
customer support contract for better support priority.
What is the explicit syntax? Which version(s) of 'gdb' have it?
I am very sorry as it was typo "even now syntax" -> "even no syntax".
Development Management has reviewed and declined this request. You may appeal
this decision by reopening this request.
It seems like a serious bug. Why not keep it open, even though
it requires a fix from upstream. Does RH not have some
influence with upstream developers?
BTW found that the Intel compiler 'idb' and 'idbe' debuggers
will set a breakpoint for every template instance. Mentioning
this for anyone else that might find this bug report. ICC/IDB
is available for free for non-commercial use.
Upstream already tracks this Bug as you mentioned in Comment 0.
Red Hat management decided this Bug is not important enough on the priority
lists as Red Hat pushes its analysis tool frysk (package "frysk") instead:
Unfortunately frysk is still not enterprise ready but any feedback or even
contributions are appreciated.
Frysk is available on RHEL 4 as a technology preview; it continues to be
updated. All the tools necessary to build frysk are also made available.
In RHEL 5.0, frysk's basic utilities - fstack, ftrace et.al. - are supported
while the gnome and command-line interfaces remain tech-preview.
Sorry but I don't need Xen just yet and have a lot of work
that's more important than playing with RHEL 5, so I'm sticking
with versoin 4. Need to debug today, not tomorrow, so I think
'idb' will do just fine. I prefer command-line debugging
I see that RH Bugzilla is morphing into a sales channel of late.
Won't bother posting any more bugs here. Don't have big company
idiot indemnification and idiot support requirements, so we use
free free software here, as opposed to the expensive free
software that RH sells. From what I've seen, paying for support
doesn't get you much.