[Bug gdb/33136] New: [native-gdbserver] FAIL: gdb.trace/unavailable-dwarf-piece.exp: tracing bar: p/d x
simark at simark dot ca
sourceware-bugzilla@sourceware.org
Tue Jul 8 15:11:38 GMT 2025
https://sourceware.org/bugzilla/show_bug.cgi?id=33136
Bug ID: 33136
Summary: [native-gdbserver] FAIL:
gdb.trace/unavailable-dwarf-piece.exp: tracing bar:
p/d x
Product: gdb
Version: HEAD
Status: NEW
Severity: normal
Priority: P2
Component: gdb
Assignee: unassigned at sourceware dot org
Reporter: simark at simark dot ca
Target Milestone: ---
Commit 420d030e88 ("Handle field with dynamic bit offset") regressed this test.
To make it easier to debug (without having to use tracing and gdbserver), we
can do:
diff --git a/gdb/testsuite/gdb.trace/unavailable-dwarf-piece.exp
b/gdb/testsuite/gdb.trace/unavailable-dwarf-piece.exp
index 98207f01316a..70d434d0c42b 100644
--- a/gdb/testsuite/gdb.trace/unavailable-dwarf-piece.exp
+++ b/gdb/testsuite/gdb.trace/unavailable-dwarf-piece.exp
@@ -228,7 +228,6 @@ Dwarf::assemble $asm_file {
DW_OP_lit0
DW_OP_stack_value
DW_OP_piece 1
- DW_OP_reg0
DW_OP_bit_piece 1 0
DW_OP_lit0
DW_OP_stack_value
I then run:
$ ./gdb -q -nx --data-directory=data-directory
testsuite/outputs/gdb.trace/unavailable-dwarf-piece/unavailable-dwarf-piece -ex
"b bar_start_lbl" -ex r -ex "p/x x" -batch
Before the commit:
$1 = {a = 0x0, b = <optimized out>, c = 0x0, d = 0x0, e = 0x0, f = 0x0, g =
0x0, h = 0x0, i = 0x0, j = 0x0}
After the commit:
$1 = {a = 0x0, b = <optimized out>, c = <optimized out>, d = <optimized out>, e
= <optimized out>, f = <optimized out>, g = <optimized out>, h = <optimized
out>, i = <optimized out>, j = 0x0}
I haven't found the root cause yet.
--
You are receiving this mail because:
You are on the CC list for the bug.
More information about the Gdb-prs
mailing list