This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: (PPC64) 64 bit GDB unable to set br in 32bit app
Andrew,
You'll need a very recent GDB (which contains fixes for the can't insert
breakpoint problem you noticed) a long with these fixes:
http://sources.redhat.com/ml/gdb-patches/2004-03/msg00177.html
http://sources.redhat.com/ml/gdb-patches/2004-03/msg00176.html
which make GDB's handling of register sets more robust.
Are these patches valid for gdb 6.1 as well?? or does gdb6.1 take care of
these problems? I tried these patches on a 6.1 tree and seems like I am
missing something... I get an ppc-linux-tdep.c:1046: error:
`ppc32_linux_gregset' undeclared (first use in this function)
They are mainline patches that may get backported to 6.1. I'm wondering
if the patches applied cleanly as they appear to contain:
+static struct regset ppc32_linux_gregset = {
+ NULL, ppc32_linux_supply_gregset
+};
...
+ppc_linux_regset_from_core_section (struct gdbarch *core_arch,
+ const char *sect_name, size_t sect_size)
...
+ if (tdep->wordsize == 4)
+ return &ppc32_linux_gregset;
Andrew