This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug gdb/15871] Unavailable entry value is not shown correctly
- From: "qiyao at gcc dot gnu.org" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: Wed, 21 Aug 2013 12:27:58 +0000
- Subject: [Bug gdb/15871] Unavailable entry value is not shown correctly
- Auto-submitted: auto-generated
- References: <bug-15871-4717 at http dot sourceware dot org/bugzilla/>
http://sourceware.org/bugzilla/show_bug.cgi?id=15871
--- Comment #6 from Yao Qi <qiyao at gcc dot gnu.org> ---
(In reply to Jan Kratochvil from comment #4)
> With 7.6.50.20130821-cvs 33c592e735c7e79c7f4425a22df8389f129d7495 on Fedora
> 20pre x86_64 I get:
>
> Running ./entry-values.exp ...
> ERROR: tcl error sourcing ./entry-values.exp.
> ERROR: Unimplemented: operands in location for DW_OP_deref_size
> while executing
> "error "Unimplemented: operands in location for $opcode""
> (procedure "_location" line 63)
> invoked from within
> "_location $value"
> (procedure "_handle_DW_FORM" line 82)
> invoked from within
> "_handle_DW_FORM $attr_form $attr_value"
> (procedure "_handle_DW_TAG" line 29)
> invoked from within
> "_handle_DW_TAG DW_TAG_GNU_call_site_parameter $attrs $children"
> (procedure "GNU_call_site_parameter" line 1)
> invoked from within
> "GNU_call_site_parameter {
> {location {DW_OP_reg0} SPECIAL_expr}
> {GNU_call_site_value {
> addr global1
> deref_size 4
> } SPECIAL_expr}..."
> ("uplevel" body line 5)
> invoked from within
> [...]
>
> Is it for some older GDB? I have not investigated it more.
Oh, this patch is also needed...
diff --git a/gdb/testsuite/lib/dwarf.exp b/gdb/testsuite/lib/dwarf.exp
index 5b19bb8..99f4b06 100644
--- a/gdb/testsuite/lib/dwarf.exp
+++ b/gdb/testsuite/lib/dwarf.exp
@@ -667,6 +667,14 @@ namespace eval Dwarf {
_op .sleb128 [lindex $line 2]
}
+ DW_OP_deref_size {
+ if {[llength $line] != 2} {
+ error "usage: DW_OP_deref_size SIZE"
+ }
+
+ _op .byte [lindex $line 1]
+ }
+
default {
if {[llength $line] > 1} {
error "Unimplemented: operands in location for $opcode"
--
1.7.7.6
--
You are receiving this mail because:
You are on the CC list for the bug.