This is the mail archive of the gdb-prs@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

gdb/67: C++ function call with reference parameter fails



>Number:         67
>Category:       gdb
>Synopsis:       C++ function call with reference parameter fails
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Jun 28 18:38:01 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:     chastain@redhat.com
>Release:        GNU gdb 2001-06-24-cvs (MI_OUT)
>Organization:
>Environment:
native Red Hat Linux 7
gcc gcc-3_0-branch cvs 2001-06-23
>Description:
gdb.log excerpt:

(gdb) PASS: gdb.c++/classes.exp: inherited class param->x
call class_param.Aref_a (g_A)

Program received signal SIGSEGV, Segmentation fault.
0x0804de99 in ClassParam::Aref_a(A&) (this=0x4000185c, a=@0x1) at /horton/chastain/fsf/2001-06-23/source/gdb/testsuite/gdb.c++/misc.cc:434
434       int Aref_a (A &a) { return a.a; }
The program being debugged was signaled while in a function called from GDB.
GDB remains in the frame where the signal was received.
To change this behavior use "set unwindonsignal on"
Evaluation of the expression containing the function (ClassParam::Aref_a(A&)) will be abandoned.
(gdb) FAIL: gdb.c++/classes.exp: base class (&param)->a
>How-To-Repeat:
build cvs gdb on native red hat linux 7
use gcc 3.0 as the compiler to run the test suite
run test script gdb.c++/classes.exp
>Fix:
No idea.

>Release-Note:
>Audit-Trail:
>Unformatted:


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]