This is the mail archive of the gdb-prs@sources.redhat.com 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]

symtab/1279: gdb doesn't lookup file/line information for global variables


>Number:         1279
>Category:       symtab
>Synopsis:       gdb doesn't lookup file/line information for global variables
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Sat Jul 12 22:18:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator:     Mike Simons
>Release:        all
>Organization:
>Environment:
i386/i686 Linux using gcc 2.95, 3.0.4, 3.3.
I've tried gdb version 5.1 (from redhat), 2002-04-01-cvs (from debian/stable), and a cvs snapshot build of gdb from
last week.
>Description:
Please see the gcc bug item:

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11508

  The printelf -wi output seems to indicate gcc is writing
the correct information into the binary.

  I _think_ this is different from 456... and 770.
>How-To-Repeat:
gcc -g test.c -o test1

gdb -q test1
===
(gdb) set listsize 3
(gdb) l foo
8
9       int foo;
10
(gdb) l bar
2       #include "test.h"
3       #if zap
4       /* this */
(gdb) l func
5       int func(void)
6       {
7         return 23;
===
>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:


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