This is the mail archive of the gdb-prs@sourceware.org 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]

[Bug c++/13522] New: codedump, value_get_print_value invalue_get_print_value.c


http://sourceware.org/bugzilla/show_bug.cgi?id=13522

             Bug #: 13522
           Summary: codedump, value_get_print_value in
                    value_get_print_value.c
           Product: gdb
           Version: 7.3
            Status: NEW
          Severity: critical
          Priority: P2
         Component: c++
        AssignedTo: unassigned@sourceware.org
        ReportedBy: zhangzhiqiang@21cn.com
    Classification: Unclassified


#include <iostream>
#include <string>

using namespace std;

class Emp
{
public:
    int id;
    string name;
    string addr;
};

int main(int argc, char *argv[])
{
    int i=0;  // <= breakpoint in here
    Emp emp;

    .....
}

//gdb7.3.1
gdb -i=mi2 test
-enable-pretty-printing
b main
r
n
-var-create - * emp
-var-list-children 1 var1
-var-list-children 1 var1.public

codedump ... 

value_get_print_value(...)
{
  ....

  if (thevalue)  // line 2641
    LA_PRINT_STRING (stb, type, thevalue, len, encoding, 0, &opts);
  else if (string_print) //<<jump here,but type is 0x0, so ... 
    val_print_string (type, encoding, str_addr, len, stb, &opts);
  else
    common_val_print (value, stb, 0, &opts, current_language);

 ...
}

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


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