From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22958 invoked by alias); 28 Dec 2011 00:23:58 -0000 Received: (qmail 22943 invoked by uid 22791); 28 Dec 2011 00:23:56 -0000 X-SWARE-Spam-Status: No, hits=-3.0 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,RCVD_IN_DNSWL_LOW,RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mail-gy0-f201.google.com (HELO mail-gy0-f201.google.com) (209.85.160.201) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 28 Dec 2011 00:23:44 +0000 Received: by ghbg20 with SMTP id g20so876832ghb.0 for ; Tue, 27 Dec 2011 16:23:43 -0800 (PST) Received: by 10.101.217.17 with SMTP id u17mr16409668anq.3.1325031823373; Tue, 27 Dec 2011 16:23:43 -0800 (PST) Received: by 10.101.217.17 with SMTP id u17mr16409659anq.3.1325031823258; Tue, 27 Dec 2011 16:23:43 -0800 (PST) Received: from wpzn4.hot.corp.google.com (216-239-44-65.google.com [216.239.44.65]) by gmr-mx.google.com with ESMTPS id w48si9728068yhk.4.2011.12.27.16.23.43 (version=TLSv1/SSLv3 cipher=AES128-SHA); Tue, 27 Dec 2011 16:23:43 -0800 (PST) Received: from ruffy.mtv.corp.google.com (ruffy.mtv.corp.google.com [172.18.110.50]) by wpzn4.hot.corp.google.com (Postfix) with ESMTP id 2AEC51E004D; Tue, 27 Dec 2011 16:23:43 -0800 (PST) Received: by ruffy.mtv.corp.google.com (Postfix, from userid 67641) id D4E232461C9; Tue, 27 Dec 2011 16:23:42 -0800 (PST) To: gdb-patches@sourceware.org, binutils@sourceware.org Subject: [RFC] Add support for .debug_gdb_scripts to mach-o. Message-Id: <20111228002342.D4E232461C9@ruffy.mtv.corp.google.com> Date: Wed, 28 Dec 2011 00:35:00 -0000 From: dje@google.com (Doug Evans) X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2011-12/txt/msg00856.txt.bz2 Hi. I have no means of testing this. And it's not clear that adding .debug_gdb_scripts to dwarf_section_names_xlat is reasonable. Can anyone using mach-o test this, or suggest a better fix? There is a testcase for .debug_gdb_scripts in gdb/testsuite/gdb.python/py-section-script.exp but I'm not sure it'll work as is on mach-o. TIA 2011-12-27 Doug Evans * mach-o.c (dwarf_section_names_xlat): Add .debug_gdb_scripts. Index: mach-o.c =================================================================== RCS file: /cvs/src/src/bfd/mach-o.c,v retrieving revision 1.81 diff -u -p -r1.81 mach-o.c --- mach-o.c 19 Dec 2011 15:42:36 -0000 1.81 +++ mach-o.c 28 Dec 2011 00:15:14 -0000 @@ -195,6 +195,9 @@ static const mach_o_section_name_xlat dw { ".debug_macro", "__debug_macro", SEC_DEBUGGING, BFD_MACH_O_S_REGULAR, BFD_MACH_O_S_ATTR_DEBUG, 0}, + { ".debug_gdb_scripts", "__debug_gdb_scr", + SEC_DEBUGGING, BFD_MACH_O_S_REGULAR, + BFD_MACH_O_S_ATTR_DEBUG, 0}, { NULL, NULL, 0, 0, 0, 0} };