This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH-ppc 2/5] Add VSX support for core-files
- From: "Ulrich Weigand" <uweigand at de dot ibm dot com>
- To: luisgpm at linux dot vnet dot ibm dot com
- Cc: gdb-patches at sourceware dot org
- Date: Thu, 21 Aug 2008 21:52:47 +0200 (CEST)
- Subject: Re: [PATCH-ppc 2/5] Add VSX support for core-files
Luis Machado wrote:
> > { ".reg", 268 },
> > { ".reg2", 264 },
> > { ".reg-ppc-vmx", 544 },
> > + { ".reg-ppc-vsx", 256 },
> > { NULL, 0}
This patch seems to cause a testsuite regression: generate-core-file
will now *always* add a VSX section, even if the current target does
not actually support VSX registers. Therefore, on reading the core
file back in, the output of "info all-registers" is different than
before.
I think you should install different versions of ppc_linux_regset_sections
depending on the target properties (which you can inspect via
tdesc_find_feature (info.target_desc, ...) in ppc_linux_init_abi.
Bye,
Ulrich
--
Dr. Ulrich Weigand
GNU Toolchain for Linux on System z and Cell BE
Ulrich.Weigand@de.ibm.com