09-30-2010 10:30 AM
Another question related to mainline (2.3.35) Microblaze+MMU linux
implementation: from my previous 'strace' post, I found
that 'strace' was segfaulting. I enabled core file generation
(ulimit -c 1000000), and strace generated a core file.
I copied that back to my build platform and tried to use
the gdb included in the tool chain to examine the core
file. I saw this message at startup:
warning: "./core": no core file handler recognizes format, using default
and I saw this message several times:
Can't fetch registers from this type of core file
Again, I used the Xilinx toolchain referenced here:
Does anyone know if this toolchain should be able
to support debugging using core files?
Just to be clear, this is the GDB I was running:
(gdb) show version
GNU gdb 22.214.171.12460626-cvs
Copyright (C) 2006 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "--host=i386-build_redhat-linux-gnu --target=microblaze-unknown-linux-gnu".
09-30-2010 10:56 AM
I think that GDB does need changes to support core files. I'll look to see if I can find anymore data.
My apologies, but I'm not in control of the tool situation.
10-07-2010 01:43 PM
Do you have any more information on this?
I just built GDB-7.2 for Microblaze, and it still does not recognize
a core file for Microblaze. Are there more patches needed, or
is this just not supported yet?
10-08-2010 11:21 AM
No, I didn't build gdbserver. I saw your other post (which is what caused me
to check out gdb-7.2 in the first place!), and I verified that there are indeed
no low-level files for Microblaze in gdbserver (as you saw).
03-14-2011 09:48 AM
I have compiled GDB and GDB server which will run natively on the microblaze, please see the instructions at:
This will work for GDB 7.2. Please note that some kernel patches are needed to get "ptrace" to work. I am at the moment working on getting these into the mainline linux kernel.
I hope that helps!