This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB 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]

Re: [commit] Fix rereading of DWO DIEs


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 <http://www.gnu.org/licenses/>.  */
> +
> +/* 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."


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]