gdb
[Top][All Lists]
Advanced

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

Possible to record program execution


From: ppmoore
Subject: Possible to record program execution
Date: Fri, 15 Oct 2010 06:28:45 -0700 (PDT)

Hello,

I'm trying to track down a strange bug that has all of us stumped. 

I set a breakpoint at a point in the code, and start the program.
The breakpoint is reached and the program stops.
When I try step over the breakpoint to the next line of code, GDB
immediately indicates that the program executed normally, the intervening
lines of code are not executed.

To track it down, I would like to do record lines of code executed. 
Something like the following:
- set the breakpoint as mentioned above, and start the program
- the breakpoint is reached
- set a breakpoint at exit(), and then somehow record all lines of code
executed up to the point where the program exits
- when the exit() breakpoint is reached, examine the recorded trace of the
program execution, line by line. AFAIK, the trace command can't do this.

Is this possible?

Many thanks,
Paul
-- 
View this message in context: 
http://old.nabble.com/Possible-to-record-program-execution-tp29971548p29971548.html
Sent from the Gnu - gdb - General mailing list archive at Nabble.com.




reply via email to

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