help with loading core files

Michael Snyder msnyder@vmware.com
Thu Jul 22 17:26:00 GMT 2010


Mathew Yeates wrote:
> I'm not sure about your first question.
> 1) I run my program in the debugger and go to a particular line
> 2) I generate a core file with generate-core-file
> 3) I exit gdb
> 4) I run gdb myexecutable mycorefile

Oh, ok, then signal 5 is the correct signal.

> Shouldn't I be able to continue my program from here? Instead, I get
> "Program terminated with signal 5, Trace/breakpoint trap"
> And I can't continue because I get
> "The program is not being run."

No, you can't resume running from a corefile.

>  x86_64 x86_64 x86_64 GNU/Linux
> 
> 
> On Thu, Jul 22, 2010 at 10:07 AM, Michael Snyder <msnyder@vmware.com> wrote:
>> Mathew Yeates wrote:
>>> Hi
>>> I posted something about this earlier and I now have time to try and
>>> figure this out.
>>> When I run gdb myexe mycore
>>> I get
>>> Program terminated with signal 5, Trace/breakpoint trap.
>>>
>>> This is gdb-7.2.50.20100713.
>>>
>>> Any ideas for me to try? I'm no gdb guru but maybe I can generate info
>>> usable  to someone.
>>>
>>> Mathew
>> What signal do you believe your corefile should be reporting?
>>
>> What host and operating system are you running on?
>>



More information about the Gdb mailing list