This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug symtab/15118] list foo.h:lineno doesn't work
- From: "delcypher at gmail dot com" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: Wed, 30 Oct 2013 15:02:50 +0000
- Subject: [Bug symtab/15118] list foo.h:lineno doesn't work
- Auto-submitted: auto-generated
- References: <bug-15118-4717 at http dot sourceware dot org/bugzilla/>
https://sourceware.org/bugzilla/show_bug.cgi?id=15118
--- Comment #1 from delcypher at gmail dot com ---
I observed this problem myself today.
I'm using
* gcc 4.8.2
* gdb 7.6.1
On Arch Linux (Linux 3.11.6-1 X86_64)
The issue happens with some header files in a project I'm working on but not on
others which is strange.
For example if I do
$ gdb klee
(gdb) start
(gdb) list Expr.h:1
file: "/home/dsl11/dev/klee/klee/bin-dbg-llvm29/../src/include/klee/Expr.h",
line number: 1
file: "/home/dsl11/dev/klee/klee/bin-dbg-llvm29/../src/include/klee/Expr.h",
line number: 1
file: "/home/dsl11/dev/klee/klee/bin-dbg-llvm29/../src/include/klee/Expr.h",
line number: 1
but if I try
(gdb) list Common.h:1
1 //===-- Common.h ------------------------------------------------*- C++
-*-===//
2 //
3 // The KLEE Symbolic Virtual Machine
4 //
5 // This file is distributed under the University of Illinois Open
Source
6 // License. See LICENSE.TXT for details.
7 //
8
//===----------------------------------------------------------------------===//
9
10 /*
If I run
(gdb) info sources
I see that both Expr.h and Common.h are in the list of files under "Source
files for which symbols have been read in:"
I cannot reproduce the issue on a simple "Hello World" example. Doing "list
stdio.h:10" succeeds
Any ideas what's going wrong?
--
You are receiving this mail because:
You are on the CC list for the bug.