Date: Mon, 22 Nov 2010 14:42:13 +0000 (UTC) From: Attilio Rao <attilio@FreeBSD.org> To: cvs-src-old@freebsd.org Subject: cvs commit: src/contrib/binutils/bfd elf-bfd.h elf.c src/contrib/binutils/binutils readelf.c src/contrib/binutils/include/elf common.h src/contrib/file readelf.h src/contrib/gdb/gdb fbsd-proc.c src/gnu/usr.bin/gdb/libgdb fbsd-threads.c ... Message-ID: <201011221442.oAMEgkiM043330@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
attilio 2010-11-22 14:42:13 UTC FreeBSD src repository Modified files: contrib/binutils/bfd elf-bfd.h elf.c contrib/binutils/binutils readelf.c contrib/binutils/include/elf common.h contrib/file readelf.h contrib/gdb/gdb fbsd-proc.c gnu/usr.bin/gdb/libgdb fbsd-threads.c sys/compat/freebsd32 freebsd32.h sys/kern imgact_elf.c sys_process.c sys/sys elf_common.h procfs.h ptrace.h usr.bin/gcore elfcore.c Log: SVN rev 215679 on 2010-11-22 14:42:13Z by attilio Add the ability for GDB to printout the thread name along with other thread specific informations. In order to do that, and in order to avoid KBI breakage with existing infrastructure the following semantic is implemented: - For live programs, a new member to the PT_LWPINFO is added (pl_tdname) - For cores, a new ELF note is added (NT_THRMISC) that can be used for storing thread specific, miscellaneous, informations. Right now it is just popluated with a thread name. GDB, then, retrieves the correct informations from the corefile via the BFD interface, as it groks the ELF notes and create appropriate pseudo-sections. Sponsored by: Sandvine Incorporated Tested by: gianni Discussed with: dim, kan, kib MFC after: 2 weeks Revision Changes Path 1.2 +1239 -476 src/contrib/binutils/bfd/elf-bfd.h 1.20 +38 -0 src/contrib/binutils/bfd/elf.c 1.2 +6189 -2898 src/contrib/binutils/binutils/readelf.c 1.2 +511 -93 src/contrib/binutils/include/elf/common.h 1.3 +1 -0 src/contrib/file/readelf.h 1.2 +5 -0 src/contrib/gdb/gdb/fbsd-proc.c 1.20 +44 -3 src/gnu/usr.bin/gdb/libgdb/fbsd-threads.c 1.15 +5 -0 src/sys/compat/freebsd32/freebsd32.h 1.211 +10 -0 src/sys/kern/imgact_elf.c 1.171 +3 -0 src/sys/kern/sys_process.c 1.36 +1 -0 src/sys/sys/elf_common.h 1.8 +7 -0 src/sys/sys/procfs.h 1.34 +2 -0 src/sys/sys/ptrace.h 1.24 +11 -0 src/usr.bin/gcore/elfcore.c
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201011221442.oAMEgkiM043330>