To whom it may concern,
I compiled my C++ sources w/ qcc -g to prepare them for debugging. I started
ddd to find a bug and wondered that ddd can’t display data members of base
classes.
So after reading a while in www.gnu.org , I found that gdb likes the
compiler switch -Wc,-gstabs+ most when debugging C++ programs.
Now ddd/gdb are usable, even though using ddd is like fighting a dragon. I
liked the plainness of Watcom’s wd.
Is using -Wc-gstabs+ something that everybody knows anyway?
Shouldn’t qcc handle this?
Greetings
Peter
“Peter Stockigt” <stoeckigt.p@stn-atlas.de> wrote:
To whom it may concern,
I compiled my C++ sources w/ qcc -g to prepare them for debugging. I started
ddd to find a bug and wondered that ddd can’t display data members of base
classes.
So after reading a while in > www.gnu.org > , I found that gdb likes the
compiler switch -Wc,-gstabs+ most when debugging C++ programs.
Now ddd/gdb are usable, even though using ddd is like fighting a dragon. I
liked the plainness of Watcom’s wd.
Is using -Wc-gstabs+ something that everybody knows anyway?
Shouldn’t qcc handle this?
The ‘-g’ command line option to gcc and qcc uses whatever the default is.
QNX6’s default -g has been dwarf2. It is changing to stabs+ for the
reasons you mention, and should be available in the next release.
Thanks.
GP
Greetings
Peter
Hello,
I found exactly the same problem as you concerning C++ debugging
I am using debugger throught eclipse IDE.
I found the -gstabs+ switch but a big problem still remains
(Also I applied the last path for QNX Momentic 6.2.0a)
I cannot get the value for the pointer ‘this’ when stepping inside a
member function, have you the same problem ?
Also the -Wc switch is refused by QCC ?
Best Regard,
Alain
“Peter Stöckigt” <stoeckigt.p@stn-atlas.de> a écrit dans le message news:
am9dna$6n6$1@inn.qnx.com…
To whom it may concern,
I compiled my C++ sources w/ qcc -g to prepare them for debugging. I
started
ddd to find a bug and wondered that ddd can’t display data members of base
classes.
So after reading a while in > www.gnu.org > , I found that gdb likes the
compiler switch -Wc,-gstabs+ most when debugging C++ programs.
Now ddd/gdb are usable, even though using ddd is like fighting a dragon. I
liked the plainness of Watcom’s wd.
Is using -Wc-gstabs+ something that everybody knows anyway?
Shouldn’t qcc handle this?
Greetings
Peter
Hello,
I am not sure what debugger the IDE uses, but using ddd/gdb I can display
local variables (Menu-Display-Display Local Variables, Alt+L) to show the
this-pointer (or *this).
And using “qcc -Wc,-gstabs+ …” works as expected.
Best regards
Peter
“Secmat NT” <nospam-secmat@secmat.com> schrieb im Newsbeitrag
news:amckv8$gso$1@inn.qnx.com…
Hello,
I found exactly the same problem as you concerning C++ debugging
I am using debugger throught eclipse IDE.
I found the -gstabs+ switch but a big problem still remains
(Also I applied the last path for QNX Momentic 6.2.0a)
I cannot get the value for the pointer ‘this’ when stepping inside a
member function, have you the same problem ?
Also the -Wc switch is refused by QCC ?
Best Regard,
Alain
“Peter Stöckigt” <> stoeckigt.p@stn-atlas.de> > a écrit dans le message news:
am9dna$6n6$> 1@inn.qnx.com> …
To whom it may concern,
I compiled my C++ sources w/ qcc -g to prepare them for debugging. I
started
ddd to find a bug and wondered that ddd can’t display data members of
base
classes.
So after reading a while in > www.gnu.org > , I found that gdb likes the
compiler switch -Wc,-gstabs+ most when debugging C++ programs.
Now ddd/gdb are usable, even though using ddd is like fighting a dragon.
I
liked the plainness of Watcom’s wd.
Is using -Wc-gstabs+ something that everybody knows anyway?
Shouldn’t qcc handle this?
Greetings
Peter
\