This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug gdb/20877] New: Stepping with next command prints out random characters
- From: "applepiefish at g dot ucla.edu" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: Sun, 27 Nov 2016 19:11:01 +0000
- Subject: [Bug gdb/20877] New: Stepping with next command prints out random characters
- Auto-submitted: auto-generated
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.