This is the mail archive of the gdb-patches@sourceware.org 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: [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


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