public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug tui/10829] New: Confusing results printed when a subexpression is optimized out
@ 2009-10-22 14:52 ajax at redhat dot com
2009-10-22 15:54 ` [Bug tui/10829] " jan dot kratochvil at redhat dot com
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: ajax at redhat dot com @ 2009-10-22 14:52 UTC (permalink / raw)
To: gdb-prs
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1158 bytes --]
In the X server during request processing, where "stuff" is a struct xReq * with
a member named class:
(gdb) print stuff
$3 = <value optimized out>
(gdb) print stuff->class
Cannot access memory at address 0x16
The naïve conclusion for the user is that "stuff" somehow became NULL, which is
not in fact true; its value is merely being flattened to zero before computing
the offset of the "class" member. The second print statement should be more
along the lines of "Cannot evaluate subexpression foo".
gdb version:
% rpm -q gdb
gdb-6.8.91.20090921-1.fc12.i686
--
Summary: Confusing results printed when a subexpression is
optimized out
Product: gdb
Version: unknown
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: tui
AssignedTo: unassigned at sourceware dot org
ReportedBy: ajax at redhat dot com
CC: gdb-prs at sourceware dot org
http://sourceware.org/bugzilla/show_bug.cgi?id=10829
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug tui/10829] Confusing results printed when a subexpression is optimized out
2009-10-22 14:52 [Bug tui/10829] New: Confusing results printed when a subexpression is optimized out ajax at redhat dot com
@ 2009-10-22 15:54 ` jan dot kratochvil at redhat dot com
2010-01-07 19:08 ` ajax at redhat dot com
2010-04-18 1:12 ` [Bug gdb/10829] " pedro at codesourcery dot com
2 siblings, 0 replies; 4+ messages in thread
From: jan dot kratochvil at redhat dot com @ 2009-10-22 15:54 UTC (permalink / raw)
To: gdb-prs
--
What |Removed |Added
----------------------------------------------------------------------------
CC| |jan dot kratochvil at redhat
| |dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=10829
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug tui/10829] Confusing results printed when a subexpression is optimized out
2009-10-22 14:52 [Bug tui/10829] New: Confusing results printed when a subexpression is optimized out ajax at redhat dot com
2009-10-22 15:54 ` [Bug tui/10829] " jan dot kratochvil at redhat dot com
@ 2010-01-07 19:08 ` ajax at redhat dot com
2010-04-18 1:12 ` [Bug gdb/10829] " pedro at codesourcery dot com
2 siblings, 0 replies; 4+ messages in thread
From: ajax at redhat dot com @ 2010-01-07 19:08 UTC (permalink / raw)
To: gdb-prs
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed| |1
http://sourceware.org/bugzilla/show_bug.cgi?id=10829
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug gdb/10829] Confusing results printed when a subexpression is optimized out
2009-10-22 14:52 [Bug tui/10829] New: Confusing results printed when a subexpression is optimized out ajax at redhat dot com
2009-10-22 15:54 ` [Bug tui/10829] " jan dot kratochvil at redhat dot com
2010-01-07 19:08 ` ajax at redhat dot com
@ 2010-04-18 1:12 ` pedro at codesourcery dot com
2 siblings, 0 replies; 4+ messages in thread
From: pedro at codesourcery dot com @ 2010-04-18 1:12 UTC (permalink / raw)
To: gdb-prs
--
What |Removed |Added
----------------------------------------------------------------------------
Component|tui |gdb
http://sourceware.org/bugzilla/show_bug.cgi?id=10829
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2010-04-18 1:12 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-10-22 14:52 [Bug tui/10829] New: Confusing results printed when a subexpression is optimized out ajax at redhat dot com
2009-10-22 15:54 ` [Bug tui/10829] " jan dot kratochvil at redhat dot com
2010-01-07 19:08 ` ajax at redhat dot com
2010-04-18 1:12 ` [Bug gdb/10829] " pedro at codesourcery dot com
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).