From owner-cvs-src-old@FreeBSD.ORG Mon Nov 22 14:42:46 2010 Return-Path: Delivered-To: cvs-src-old@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 88A7A106564A for ; Mon, 22 Nov 2010 14:42:46 +0000 (UTC) (envelope-from attilio@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 584F18FC21 for ; Mon, 22 Nov 2010 14:42:46 +0000 (UTC) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.4/8.14.4) with ESMTP id oAMEgkPC043331 for ; Mon, 22 Nov 2010 14:42:46 GMT (envelope-from attilio@repoman.freebsd.org) Received: (from svn2cvs@localhost) by repoman.freebsd.org (8.14.4/8.14.4/Submit) id oAMEgkiM043330 for cvs-src-old@freebsd.org; Mon, 22 Nov 2010 14:42:46 GMT (envelope-from attilio@repoman.freebsd.org) Message-Id: <201011221442.oAMEgkiM043330@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: svn2cvs set sender to attilio@repoman.freebsd.org using -f From: Attilio Rao Date: Mon, 22 Nov 2010 14:42:13 +0000 (UTC) To: cvs-src-old@freebsd.org X-FreeBSD-CVS-Branch: HEAD 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 ... X-BeenThere: cvs-src-old@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: **OBSOLETE** CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 22 Nov 2010 14:42:46 -0000 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