[PATCH] Fix gdb.dwarf2/dwz.exp for thumb mode

Andreas Schwab schwab@linux-m68k.org
Sun Sep 14 11:31:00 GMT 2014


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."



More information about the Gdb-patches mailing list