This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [patch] Limit DW_AT_comp_dir workaround only for gcc<=4.2
- From: Tom Tromey <tromey at redhat dot com>
- To: Jan Kratochvil <jan dot kratochvil at redhat dot com>
- Cc: gdb-patches at sourceware dot org
- Date: Wed, 05 Dec 2012 14:24:09 -0700
- Subject: Re: [patch] Limit DW_AT_comp_dir workaround only for gcc<=4.2
- References: <20121130173946.GA12865@host2.jankratochvil.net>
>>>>> "Jan" == Jan Kratochvil <jan.kratochvil@redhat.com> writes:
Jan> 2012-11-30 Jan Kratochvil <jan.kratochvil@redhat.com>
Jan> * dwarf2read.c (struct dwarf2_cu): New field producer_is_gcc_lt_4_3.
Jan> Update the comment for checked_producer.
Jan> (check_producer): New forward declaration.
Jan> (producer_is_gcc_lt_4_3): New function.
Jan> (find_file_and_directory): Simulate *COMP_DIR only for gcc < 4.3.
Jan> (check_producer): Initialize also PRODUCER_IS_GCC_LT_4_3.
Jan> gdb/testsuite/
Jan> 2012-11-30 Jan Kratochvil <jan.kratochvil@redhat.com>
Jan> * gdb.dwarf2/dw2-compdir-oldgcc.S: New file.
Jan> * gdb.dwarf2/dw2-compdir-oldgcc.exp: New file.
Looks good to me.
Tom