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]
Other format: [Raw text]

gdb/320: gdb can't handle complex variables in C++



>Number:         320
>Category:       gdb
>Synopsis:       gdb can't handle complex variables in C++
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Jan 30 09:08:01 PST 2002
>Closed-Date:
>Last-Modified:
>Originator:     kilgore@bnl.gov
>Release:        5.1.1
>Organization:
>Environment:

>Description:
gdb cannot show complex variables.  Using gcc-3.0.3
Defining:
{
  complex<double> Li2x;
   ....
  return Li2x;
}

If I try 
$ p Li2x

I get:
$1 = {_M_value = Invalid C/C++ type code 20 in symbol table.

This is not a new problem.  gdb has been unable to handle complex variables for a long time.
>How-To-Repeat:

>Fix:

>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]