This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug gdb/12122] 'argc' bad value
- From: "ppluzhnikov at google dot com" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: Sun, 22 Jan 2012 03:39:06 +0000
- Subject: [Bug gdb/12122] 'argc' bad value
- Auto-submitted: auto-generated
- References: <bug-12122-4717@http.sourceware.org/bugzilla/>
http://sourceware.org/bugzilla/show_bug.cgi?id=12122
Paul Pluzhnikov <ppluzhnikov at google dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |WAITING
CC| |ppluzhnikov at google dot
| |com
--- Comment #2 from Paul Pluzhnikov <ppluzhnikov at google dot com> 2012-01-22 03:39:06 UTC ---
How was ../cc/ispp.cpp compiled?
Chances are, it was built with -O2 and -g.
When debugging optimized code, you unfortunately must know what you are doing.
In particular, I expect that "argc" will become good after you execute a couple
of "stepi" instructions (or just "next"), and GDB steps past the function
prologue.
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.