This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc 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] |
http://sourceware.org/bugzilla/show_bug.cgi?id=14890 Bug #: 14890 Summary: Make NT_PRFPREG canonical. Product: glibc Version: 2.17 Status: NEW Severity: normal Priority: P2 Component: libc AssignedTo: unassigned@sourceware.org ReportedBy: carlos_odonell@mentor.com CC: drepper.fsp@gmail.com Classification: Unclassified Created attachment 6761 --> http://sourceware.org/bugzilla/attachment.cgi?id=6761 Define NT_PRFPREG, leaving NT_FPREGSET as a legacy alias. The Linux kernel header linux/elf.h defines NT_PRFPREG with a value of 2. This is the same as the userspace NT_FPREGSET which also has a value of 2. For all intents and purposes the two macros mean the same thing but have different macro names. For example: x86 uses the note value to write out the core file... linux/arch/x86/kernel/ptrace.c ~~~ ... [REGSET_FP] = { .core_note_type = NT_PRFPREG, .n = sizeof(struct user_i387_struct) / sizeof(long), .size = sizeof(long), .align = sizeof(long), .active = xfpregs_active, .get = xfpregs_get, .set = xfpregs_set }, ... ~~~ ... and the target independent portions of gdb process it into a section for the debugger to inspect. gdb/bfd/elf.c ~~~ ... case NT_FPREGSET: /* FIXME: rename to NT_PRFPREG */ return elfcore_grok_prfpreg (abfd, note); ... ~~~ Note: gdb actually has it's own copies of the NT_* values in include/elf/common.h. The following patch adds an alias to the user distributed header file elf.h. Similar changes have been sent to the binutils list here: http://sourceware.org/ml/binutils/2012-11/msg00417.html -- Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |