This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug gdb/20038] New: list command displays wrong source at startup
- From: "ddumont at securestate dot com" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: Tue, 03 May 2016 13:34:11 +0000
- Subject: [Bug gdb/20038] New: list command displays wrong source at startup
- Auto-submitted: auto-generated
https://sourceware.org/bugzilla/show_bug.cgi?id=20038
Bug ID: 20038
Summary: list command displays wrong source at startup
Product: gdb
Version: 7.10.1
Status: NEW
Severity: normal
Priority: P2
Component: gdb
Assignee: unassigned at sourceware dot org
Reporter: ddumont at securestate dot com
Target Milestone: ---
Created attachment 9231
--> https://sourceware.org/bugzilla/attachment.cgi?id=9231&action=edit
This is the gdb session
Edited source to remove some lines (to read STDIN to pause the program);
compiled, ran gdb <file>, list 110,140 (the section where the lines are I just
removed) and the source shown still has the lines.
Edited file again just to bump make. make again, gdb <file>, Same display.
Edited file again without a make, and gdb did NOT report source file more
recent.
The thing is, there is NO source code on the system anymore that contains those
lines. Everything is in one directory, the CWD from where I am running gdb.
Is the source code being cached somewhere?
Lines 135, 136 in the attached session are not in the source code file.
--
You are receiving this mail because:
You are on the CC list for the bug.