[PATCH 1/2] Test case for entry values.

Yao Qi yao@codesourcery.com
Sat Aug 31 00:22:00 GMT 2013


On 08/30/2013 11:29 PM, Vidya Praveen wrote:
> +if [string equal $bar_call_foo ""] {
> +    fail "Find the call or branch instruction offset in bar"
> +    # The following test makes no sense if the offset is unknown.  We need
> +    # to update the pattern above to match call or branch instruction for
> +    # the target architecture.
> +    return -1
> +}
>
> This test fails for ARM targets as they generate 'bl'.

As the comment said, the pattern can be updated to match instruction
'bl'.  I don't know branch instructions of all architectures, but
people familiar with one arch probably can add its branch instruction
into the pattern without much effort.

-- 
Yao (齐尧)



More information about the Gdb-patches mailing list