gdb
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gdb] Re: Gdb's unexpected behaviour.


From: Ben Elliston
Subject: [Gdb] Re: Gdb's unexpected behaviour.
Date: 05 Nov 2002 00:18:32 +1100
User-agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Cuyahoga Valley)

>>>>> "Vyacheslav" == Vyacheslav Zakharin <address@hidden> writes:

  Vyacheslav> what's going on with my gdb? When launched in emacs it's
  Vyacheslav> going mad.

  Vyacheslav> When I start debugging foo(), pointer "=>" move:
  Vyacheslav> (1)->(2)->(3)->(2)->(1)->(3)->...

  Vyacheslav> What's the reason?

Your program has no doubt been compiled with optimisations and GDB is
just showing you were the pc is at each step.  Try compiling with no
optimisations and your program will step as you expect.

Ben






reply via email to

[Prev in Thread] Current Thread [Next in Thread]