* OpenOffice.org and gdb
@ 2004-07-20 10:35 Caolan McNamara
2004-07-20 19:41 ` Dave Korn
0 siblings, 1 reply; 2+ messages in thread
From: Caolan McNamara @ 2004-07-20 10:35 UTC (permalink / raw)
To: gdb
There are a few little glitches with gdb that make trying to debug
OpenOffice quite difficult, I've put together a little set of testcases
at http://people.redhat.com/caolanm/mygdbproblems.tar.gz The exact gdb
version is 6.1post-1.20040607.8rh from fc3 development but I've
struggled with similiar ones in other cvs varients and older releases
for some time.
1. make gdbtestc
Deferred breakpoints that get resolved in dlopened modules only work the
first cycle of debugging, subsequent runs attempt to reset them often
break ?
2. make gdbtestc++
The known issues of gdb/1091 & gdb/1193. Not being able to set
breakpoints in constructors :-(
3. make gdbtest2c++
Deferred breakpoints don't allow deferring on an unseen c++ member
function ?, but do allow breaking on an unseen line i.e. c++test2cmdsA
works, while c++test2cmdsB doesn't
4. make gdbtest3c++
A debug build of OOo is extremely large, the default is to build it
without debugging symbols and then only build the parts being debugged
with symbols enabled. The component model should boils down to
effectively this test, with the problem that deferred breakpoints
apparently can't be set from non debug code ? though the lib being
loaded will have the desired symbols.
I can work around 4 for my own needs by building the bit of OOo that
contains main with debugging enabled, and I can work around 3 by
restricting myself to line numbers, but 1 and 2 are a real curse.
Are there any other known workarounds that I can employ, or is there
simply a better compile flag incantation I should use :-) I guess
I should just log bugs against them.
C.
-
Caolan McNamara | caolan@skynet.ie
http://www.skynet.ie/~caolan | +353 86 8161184
I have a wonderful proof of that theorem, but this line is too small to show it
^ permalink raw reply [flat|nested] 2+ messages in thread
* RE: OpenOffice.org and gdb
2004-07-20 10:35 OpenOffice.org and gdb Caolan McNamara
@ 2004-07-20 19:41 ` Dave Korn
0 siblings, 0 replies; 2+ messages in thread
From: Dave Korn @ 2004-07-20 19:41 UTC (permalink / raw)
To: 'Caolan McNamara', gdb
> -----Original Message-----
> From: gdb-owner On Behalf Of Caolan McNamara
> Sent: 20 July 2004 11:27
> 2. make gdbtestc++
>
> The known issues of gdb/1091 & gdb/1193. Not being able to set
> breakpoints in constructors :-(
> I can work around 4 for my own needs by building the bit of OOo that
> contains main with debugging enabled, and I can work around 3 by
> restricting myself to line numbers, but 1 and 2 are a real curse.
>
> Are there any other known workarounds that I can employ, or is there
> simply a better compile flag incantation I should use :-) I guess
> I should just log bugs against them.
For issue 2, see this thread from earlier this week:
http://sources.redhat.com/ml/gdb/2004-07/msg00161.html
Subject: "How to setup a breakpoint on constructor"
In the archives, the thread is broken (someone's mailer doesn't handle the
references header properly I guess); you'll need to look at the index at
http://sources.redhat.com/ml/gdb/2004-07/
for all the posts with the same subject, and in particular you might want to
have a go with the patch from
http://sources.redhat.com/ml/gdb/2004-07/msg00163.html
cheers,
DaveK
--
Can't think of a witty .sigline today....
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2004-07-20 10:35 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-07-20 10:35 OpenOffice.org and gdb Caolan McNamara
2004-07-20 19:41 ` Dave Korn
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox