From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20044 invoked by alias); 19 Jul 2012 08:12:06 -0000 Received: (qmail 19898 invoked by uid 22791); 19 Jul 2012 08:12:05 -0000 X-SWARE-Spam-Status: No, hits=-2.1 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE X-Spam-Check-By: sourceware.org Received: from mail-out.m-online.net (HELO mail-out.m-online.net) (212.18.0.9) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 19 Jul 2012 08:11:48 +0000 Received: from frontend1.mail.m-online.net (unknown [192.168.8.180]) by mail-out.m-online.net (Postfix) with ESMTP id 3Wd7Js5d9Sz4KK2t; Thu, 19 Jul 2012 10:13:17 +0200 (CEST) Received: from igel.home (ppp-88-217-104-196.dynamic.mnet-online.de [88.217.104.196]) by mail.mnet-online.de (Postfix) with ESMTPA id 3Wd7H704J5zbby6; Thu, 19 Jul 2012 10:11:46 +0200 (CEST) Received: by igel.home (Postfix, from userid 501) id AEF23CA2A4; Thu, 19 Jul 2012 10:11:46 +0200 (CEST) From: Andreas Schwab To: dje@google.com (Doug Evans) Cc: gdb-patches@sourceware.org Subject: Re: [commit] Fix rereading of DWO DIEs References: <20120701021809.14F031E124A@ruffy2.mtv.corp.google.com> X-Yow: I'm wearing PAMPERS!! Date: Thu, 19 Jul 2012 08:12:00 -0000 In-Reply-To: <20120701021809.14F031E124A@ruffy2.mtv.corp.google.com> (Doug Evans's message of "Sat, 30 Jun 2012 19:18:09 -0700 (PDT)") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain 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: 2012-07/txt/msg00324.txt.bz2 dje@google.com (Doug Evans) writes: > Index: testsuite/gdb.dwarf2/fission-reread.S > =================================================================== > RCS file: testsuite/gdb.dwarf2/fission-reread.S > diff -N testsuite/gdb.dwarf2/fission-reread.S > --- /dev/null 1 Jan 1970 00:00:00 -0000 > +++ testsuite/gdb.dwarf2/fission-reread.S 1 Jul 2012 01:52:47 -0000 > @@ -0,0 +1,459 @@ > +/* Copyright 2012 Free Software Foundation, Inc. > + > + This program is free software; you can redistribute it and/or modify > + it under the terms of the GNU General Public License as published by > + the Free Software Foundation; either version 3 of the License, or > + (at your option) any later version. > + > + This program is distributed in the hope that it will be useful, > + but WITHOUT ANY WARRANTY; without even the implied warranty of > + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the > + GNU General Public License for more details. > + > + You should have received a copy of the GNU General Public License > + along with this program. If not, see . */ > + > +/* Testcase to exercise the code path in bug 13961 for Fission. > + http://gcc.gnu.org/wiki/DebugFission > + > + Compiled from: > + > + class foo > + { > + public: > + int bar; > + }; > + > + foo baz; > + > + int > + main () > + { > + return 0; > + } > + > + And then manually edited to insert the necessary DW_AT_specification > + entries to trigger the desired code path. > + There's no real need to make this architecture-specific, so it has been > + further hand-edited to support that. > +*/ > + > + .file "fission-reread.cc" > + > + .globl baz > + .bss Executing on host: gcc -c -o /home/abuild/rpmbuild/BUILD/gdb-7.4.91/gdb/testsuite/gdb.dwarf2/fission-reread0.o ./gdb.dwarf2/fission-reread.S (timeout = 300) spawn gcc -c -o /home/abuild/rpmbuild/BUILD/gdb-7.4.91/gdb/testsuite/gdb.dwarf2/fission-reread0.o ./gdb.dwarf2/fission-reread.S fission-reread.cc: Assembler messages: fission-reread.cc:44: Error: unknown pseudo-op: `.bss' compiler exited with status 1 output is: fission-reread.cc: Assembler messages: fission-reread.cc:44: Error: unknown pseudo-op: `.bss' gdb compile failed, fission-reread.cc: Assembler messages: fission-reread.cc:44: Error: unknown pseudo-op: `.bss' UNTESTED: gdb.dwarf2/fission-reread.exp: fission-reread.exp Andreas. -- Andreas Schwab, schwab@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."