This is the mail archive of the gdb@sources.redhat.com 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: core file not loaded


>> gdb-6.1.1 on cygwin, target=PPC
>
>More specific - what target triplet?

Sorry, --host=i686-pc-cygwin --target=powerpc-eabi

>> I tried to read a core dump file of our embedded target, but gdb gives
>> me an error:
>> 
>> (gdb) core N:/Temp/SAMCLASS/MemDmp00.bin
>> GDB can't read core files on this machine.
>> (gdb) core
>> GDB can't read core files on this machine.
>> 
>> I looked for the error message in the sources and found this:
>> 
>> /* Find a single core_stratum target in the list of targets and return it.
>>    If for some reason there is more than one, return NULL.  */
>> 
>> But I couldn't see what's wrong. What is needed to work with a core file?
>
>The target needs to tell GDB how to load core files.  This is a highly
>OS-specific operation.

My understanding was, that I could take a memory snapshot of the
target (in this case about 4MB) and feed this to gdb so gdb will use
this file for read accesses instead of reading a physical target (in
addition to the symbolfile). Is this wrong? Or is this not a core file?

Thanks

bye  Fabi



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