public inbox for gdb-prs@sourceware.org help / color / mirror / Atom feed
From: "nickrob at snap dot net dot nz" <sourceware-bugzilla@sourceware.org> To: gdb-prs@sourceware.org Subject: [Bug mi/9752] MI -data-evaluate-expression prints optimized-out variable value as 0x0 Date: Mon, 19 Jan 2009 20:29:00 -0000 [thread overview] Message-ID: <20090119202950.6653.qmail@sourceware.org> (raw) In-Reply-To: <20090116210457.9752.rschooler@tilera.com> ------- Additional Comments From nickrob at snap dot net dot nz 2009-01-19 20:29 ------- Subject: RE: MI -data-evaluate-expression prints optimized-out variable value as 0x0 Richard Schooler writes: > Yes and no. Your source base seems to have changed from the 6.8 we > started with. I've started with gdb in current CVS. > My diff is: > > ==== //tilera/main/tools/gnu/gdb/mi/mi-main.c#3 - > /u/rschooler/p4/tools/gnu/gdb/mi/mi-main.c ==== > @@ -670,9 +670,7 @@ > val = evaluate_expression (expr); > > /* Print the result of the expression evaluation. */ > - val_print (value_type (val), value_contents (val), > - value_embedded_offset (val), VALUE_ADDRESS (val), > - stb->stream, 0, 0, 0, 0); > + common_val_print (val, stb->stream, 0, 0, 0, 0); > > ui_out_field_stream (uiout, "value", stb); > ui_out_stream_delete (stb); > > This worked for me. Should I go with this change now, or wait for some > more official patch, with regression testing, etc.? Well, there probably won't be a backport to 6.8, so if that's what you're using, you need to make your own patch. For my patch to get into GDB for the next release (7.0), it needs to be approved by the MI or a global maintainer. -- http://sourceware.org/bugzilla/show_bug.cgi?id=9752 ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
next prev parent reply other threads:[~2009-01-19 20:29 UTC|newest] Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top 2009-01-16 21:04 [Bug mi/9752] New: " rschooler at tilera dot com 2009-01-16 22:17 ` [Bug mi/9752] " nickrob at snap dot net dot nz 2009-01-19 18:40 ` rschooler at tilera dot com 2009-01-19 20:29 ` nickrob at snap dot net dot nz [this message] 2009-04-12 16:54 ` tromey at redhat dot com 2009-04-13 2:23 ` nickrob at snap dot net dot nz 2009-04-13 21:58 ` tromey at redhat dot com 2009-04-14 6:50 ` nickrob at snap dot net dot nz 2009-04-14 16:20 ` tromey at redhat dot com 2009-04-15 6:54 ` nickrob at snap dot net dot nz [not found] <bug-9752-4717@http.sourceware.org/bugzilla/> 2010-10-15 1:53 ` tromey at redhat dot com
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20090119202950.6653.qmail@sourceware.org \ --to=sourceware-bugzilla@sourceware.org \ --cc=gdb-prs@sourceware.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).