This is the mail archive of the gdb@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: help with loading core files


On Thu, Jul 22, 2010 at 7:55 PM, Mathew Yeates <mat.yeates@gmail.com> wrote:
> How do people deal with running to a breakpoint that takes 10 minutes
> to get to? It would be great if I could run to the breakpoint once,
> save some info, and in the future just return to the breakpoint and
> keep running from there.

I usually write a mock called by a automated unit test and run it
in gdb with full debug log messages enabled.
If the first run does not reveal enough information (e.g. uhh,
what was in variable x at this and that point?), it is a good
opportunity to improve the log messages.
When using an appropriate mock, it can be simple to call the
problematic function again, even from gdb (e.g. `print myFunc()').

oki,

Steffen


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]