This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH] Fix gdb.dwarf2/dwz.exp for thumb mode
- From: Andreas Schwab <schwab at linux-m68k dot org>
- To: Yao Qi <yao at codesourcery dot com>
- Cc: gdb-patches at sourceware dot org
- Date: Sun, 14 Sep 2014 13:31:33 +0200
- Subject: Re: [PATCH] Fix gdb.dwarf2/dwz.exp for thumb mode
- Authentication-results: sourceware.org; auth=none
Yao Qi <yao@codesourcery.com> writes:
> @@ -59,9 +60,17 @@ gdb_test_multiple $test $test {
> }
> }
>
> -if { $main_length == "" } {
> +set main_label_offset ""
> +set test "p main_label"
> +gdb_test_multiple $test $test {
> + -re ".* = {.*} $hex <main\\+($decimal)>.*\r\n$gdb_prompt $" {
> + set main_label_offset $expect_out(1,string)
> + }
> +}
This will also fail to match if assembler labels are prefixed.
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."