[binutils-gdb] testsuite, gdb: recognize DW_OP_fbreg in lib/dwarf.exp

Tankut Baris Aktemur aktemur@sourceware.org
Wed Apr 14 10:50:42 GMT 2021


https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=ac4d323ea04501ad1c4eba77635b3f122c90ef85

commit ac4d323ea04501ad1c4eba77635b3f122c90ef85
Author: Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
Date:   Wed Apr 14 10:02:34 2021 +0200

    testsuite, gdb: recognize DW_OP_fbreg in lib/dwarf.exp
    
    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.

Diff:
---
 gdb/testsuite/ChangeLog     | 4 ++++
 gdb/testsuite/lib/dwarf.exp | 5 +++++
 2 files changed, 9 insertions(+)

diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog
index b8c84aaa57f..a7fadbdabde 100644
--- a/gdb/testsuite/ChangeLog
+++ b/gdb/testsuite/ChangeLog
@@ -1,3 +1,7 @@
+2021-04-14  Tankut Baris Aktemur  <tankut.baris.aktemur@intel.com>
+
+	* lib/dwarf.exp (_location): Recognize DW_OP_fbreg as an op.
+
 2021-04-12  Will Schmidt  <will_schmidt@vnet.ibm.com>
 
 	* gdb.arch/powerpc-vsx-regs.exp: Initialize vs* doublewords.
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"


More information about the Gdb-cvs mailing list