[PATCH v2 1/2] testsuite, gdb: recognize DW_OP_fbreg in lib/dwarf.exp
Andrew Burgess
andrew.burgess@embecosm.com
Wed Apr 14 09:50:10 GMT 2021
* Tankut Baris Aktemur via Gdb-patches <gdb-patches@sourceware.org> [2021-04-14 10:14:30 +0200]:
> gdb/testsuite/ChangeLog:
> 2021-04-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
>
> * lib/dwarf.exp (_location): Recognize DW_OP_fbreg as an op.
LGTM.
Thanks,
Andrew
> ---
> gdb/testsuite/lib/dwarf.exp | 5 +++++
> 1 file changed, 5 insertions(+)
>
> diff --git a/gdb/testsuite/lib/dwarf.exp b/gdb/testsuite/lib/dwarf.exp
> index f6a35749cab..e4dc284f4ee 100644
> --- a/gdb/testsuite/lib/dwarf.exp
> +++ b/gdb/testsuite/lib/dwarf.exp
> @@ -1211,6 +1211,11 @@ namespace eval Dwarf {
> _op .sleb128 $argvec(offset)
> }
>
> + DW_OP_fbreg {
> + _get_args $line $opcode offset
> + _op .sleb128 $argvec(offset)
> + }
> +
> default {
> if {[llength $line] > 1} {
> error "Unimplemented: operands in location for $opcode"
> --
> 2.17.1
>
More information about the Gdb-patches
mailing list