This is the mail archive of the
gdb-prs@sources.redhat.com
mailing list for the GDB project.
c++/1210: Printing fails/aborts for some attributes (Cannot access memory at address)
- From: milan dot schulte at offis dot de
- To: gdb-gnats at sources dot redhat dot com
- Date: 14 May 2003 14:12:44 -0000
- Subject: c++/1210: Printing fails/aborts for some attributes (Cannot access memory at address)
- Reply-to: milan dot schulte at offis dot de
>Number: 1210
>Category: c++
>Synopsis: Printing fails/aborts for some attributes (Cannot access memory at address)
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Wed May 14 14:18:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator: milan.schulte@offis.de
>Release: unknown-1.0
>Organization:
>Environment:
>Description:
Using GDB 5.3 from console of DDD 3.3.1 to print the content of an object aborts at some attribute:
(gdb) print (*this)
$15 = (ControlEndCon [incomplete object]) {
<ControlNode> = {
<GraphNode> = {
<Node> = {
<Element> = {
<Base> = {
_vptr.Base = 0x85c5038
}, <No data fields>},
members of Node:
myLocalSet = {Cannot access memory at address 0xfffffff4
(gdb)
The attribute myLocalSet is *not* a pointer. Printing the attribute with the following command works:
(gdb) print (*this).myLocalSet
$17 = (StorageUnitSet) {
<Element> = {
<Base> = {
_vptr.Base = 0x859b9d0
}, <No data fields>},
<ComparableList<StorageUnit*>> = {
<List<StorageUnit*>> = {
<BasicType> = {
_vptr.BasicType = 0x859b9d0
},
members of List<StorageUnit*>:
mySize = 0,
myIteratorCount = 0,
myHead = 0x0,
myTail = 0x0
}, <No data fields>}, <No data fields>}
(gdb)
I'm using g++ (GCC) 3.3 and binutils 2.13.90.0.18 (i486-suse-linux) using BFD version 2.13.90.0.18
The above works with the same source code using GCC 2.95.2, binutils 2.9.5, GDB 5.1.1, DDD 3.3.1.
Any hints appreciated!
>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted: