This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Mixing custom debug information with that of as --gen-debug
- From: Mitar <mmitar at gmail dot com>
- To: gdb at sourceware dot org
- Date: Wed, 27 Jan 2010 22:12:48 +0100
- Subject: Mixing custom debug information with that of as --gen-debug
Hi!
I would like to make an assembler file with my compiler where I would
define (DWARF) debug information for high level types, function
arguments and global variables while retaining symbol and line debug
information from "as --gen-debug". I have tried to do this by adding
my own DWARF information into the assembler file but if I add compile
unit information and assemble it with "--gen-debug", after I run such
program in GDB and try to set a break, GDB crashes with segfault. So I
think that there is a bug in GDB (6.8-debian) and that I also do
something wrong. Any suggestions how could I accomplish this?
Mitar