On Thu, Mar 24, 2011 at 6:11 PM, Ulrich Weigand <ulrich.weig...@de.ibm.com> wrote: > Dave Martin <dave.mar...@linaro.org> wrote: >> On Thu, Mar 24, 2011 at 4:40 PM, Ulrich Weigand > <ulrich.weig...@de.ibm.com> wrote: >> > I would prefer to keep the contents of NT_VFPREGSET identical to the >> > contents of the PTRACE_GETVPFREGS/PTRACE_SETVPFREGS buffer: >> > >> > - This would allow implementation via the new generic user_regset_view >> > mechanism (which the ARM kernel doesn't use yet, but probably should) >> > >> > - In any case, GDB likes to have the same set of information available >> > when debugging core files and native targets >> > >> > So if there is indeed additional information that would be interesting, >> > I'd argue this should be presented as a *new* core file note, *and* as >> > a new set of PTRACE_... APIs. (But for GDB's purpose NT_AUXV right >> > now is sufficent. Everything else could be displayed to the user if >> > of interest.) >> >> OK, that sounds reasonable. >> >> If I'm reading the kernel code correctly, the size of the data >> returned by PTRACE_GETVFPREGS is already dependent on the number of >> registers (D16/D32) implemented by the hardware, and this is >> determinable from the auxv contents; so I guess we don't have a new >> problem to solve here. >> >> The other info can always be added in a later pass, if it looks like >> it would be useful... > > OK, agreed. > > So to summarize: the kernel will write additional note sections as if > generated via user_regset_view, containing the PTRACE_GETVFPREGS data. > > Note name: "LINUX"
Why "LINUX" and not "CORE"? I don't understand the distinction... are the "CORE" notes common to all platforms / all ELF implementations? > Note type: t.b.d. [*] > > [*] Looking at elf.h a logical name/value might be: > > #define NT_ARM_VFP 0x400 /* ARM VFP/NEON registers */ > > > GDB support along those lines ought to be straightforward. It's been suggested that the new note should include a version/flags field alongside the ptrace-like register dump, so that if the format turns out to be inadequate / broken, it can be extended in a compatible way. However, nothing else in the coredump or the ptrace interface seems to have such versioning implementation. Ptrace gets extended by adding more and more ptrace call types instead. Adding version fields, while sensible, seems inconsistent with the current implementation. What's your view on adding a flags field to the VFP state dump? Cheers ---Dave _______________________________________________ linaro-dev mailing list linaro-dev@lists.linaro.org http://lists.linaro.org/mailman/listinfo/linaro-dev