pdb or gdb....

Hi,

I don’t know where the problem comes from, gdb or pdb (I’m not really
friend with gdb) but if I have at the beginning of main() a function of
mine (tipically options(argc, argv)), pdb don’t stop before to call it
but after.
If now I put a printf(), for example, just before my function’s call,
pdb stop BEFORE calling printf().

This problem exists in fact since the beginning.

Alain.

pdb is gone. It should never have been let out. Sorry about that.

However, it sounds like you are trying to debug code that has been
optmised - the optimiser rearranges lines, so gdb gets very confused.

Alain Bonnefoy <alain.bonnefoy@icbt.com> wrote:

Hi,

I don’t know where the problem comes from, gdb or pdb (I’m not really
friend with gdb) but if I have at the beginning of main() a function of
mine (tipically options(argc, argv)), pdb don’t stop before to call it
but after.
If now I put a printf(), for example, just before my function’s call,
pdb stop BEFORE calling printf().

This problem exists in fact since the beginning.

Alain.


cburgess@qnx.com

Colin Burgess wrote:

pdb is gone.

What do you think about ‘to let it go’ to the open source community
?

Armin

Armin Steinhoff <A-Steinhoff@web_.de> wrote:


Colin Burgess wrote:

pdb is gone.

What do you think about ‘to let it go’ to the open source community
?

Hmmm, maybe I will do that. I expect it will take about 2-3 years.


cburgess@qnx.com

Colin Burgess wrote:

Armin Steinhoff <A-Steinhoff@web_.de> wrote:

Colin Burgess wrote:

pdb is gone.

What do you think about ‘to let it go’ to the open source community
?

Hmmm, maybe I will do that. I expect it will take about 2-3 years.

Hmm… don’t hurry up :wink:
ever heard of the most often quoted sentence from Michael Gorbatchow?

The big problem with pdb is that we can debug nothing if we use getch
function in our application. Pdb don’t stop at the breakpoint !!!.



Colin Burgess a écrit dans le message <9716js$5sq$3@nntp.qnx.com>…

pdb is gone. It should never have been let out. Sorry about that.

However, it sounds like you are trying to debug code that has been
optmised - the optimiser rearranges lines, so gdb gets very confused.

Alain Bonnefoy <> alain.bonnefoy@icbt.com> > wrote:
Hi,

I don’t know where the problem comes from, gdb or pdb (I’m not really
friend with gdb) but if I have at the beginning of main() a function of
mine (tipically options(argc, argv)), pdb don’t stop before to call it
but after.
If now I put a printf(), for example, just before my function’s call,
pdb stop BEFORE calling printf().

This problem exists in fact since the beginning.

Alain.

\

cburgess@qnx.com

Colin Burgess a écrit :

pdb is gone. It should never have been let out. Sorry about that.

It should never have been let out? And what should we have done until now?
(gloups not sure about the conjugation!)


cburgess@qnx.com

Gasp!!!

Maybe we talk about that in the advocacy newsgroup!

Alain.