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 gdb/20877] New: Stepping with next command prints out random characters


https://sourceware.org/bugzilla/show_bug.cgi?id=20877

            Bug ID: 20877
           Summary: Stepping with next command prints out random
                    characters
           Product: gdb
           Version: 7.7
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: gdb
          Assignee: unassigned at sourceware dot org
          Reporter: applepiefish at g dot ucla.edu
  Target Milestone: ---

This bug happens when I try to go to the next instruction of my program.

I first set a breakpoint in one of my cc file.

Then I try to go to the next line by using next command.

Below is a snippet of the process:


```
(gdb) run < t.sql
Starting program: /media/sf_vm-shared/CS143-Lab2/bruinbase < t.sql
Traceback (most recent call last):
  File
"/usr/share/gdb/auto-load/usr/lib/i386-linux-gnu/libstdc++.so.6.0.19-gdb.py",
line 63, in <module>
    from libstdcxx.v6.printers import register_libstdcxx_printers
ImportError: No module named 'libstdcxx'

Breakpoint 1, SqlEngine::select (attr=4, table=..., cond=...) at
SqlEngine.cc:52
52          if ((rc = rf.open(table + ".tbl", 'r')) < 0) {
(gdb) n
58      ile
(gdb) n
60       on
```


The actual list of the instructions are the following:
52    if ((rc = rf.open(table + ".tbl", 'r')) < 0) {
53      fprintf(stderr, "Error: table %s does not exist\n", table.c_str());
54      return rc;
55    }
56
57    // attempt to open the corresponding index file
58    BTreeIndex b;
59    IndexCursor c; // need this for b.locate later on
60    if ( b.open(table + ".idx", 'r') == 0) {

My program is compiled like the following:
g++ -ggdb -o

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