This is the mail archive of the
gdb-prs@sources.redhat.com
mailing list for the GDB project.
gdb/380: Regression: "No line number for main." and many other functions
- From: mec at shout dot net
- To: gdb-gnats at sources dot redhat dot com
- Date: 24 Feb 2002 07:10:25 -0000
- Subject: gdb/380: Regression: "No line number for main." and many other functions
- Reply-to: mec at shout dot net
>Number: 380
>Category: gdb
>Synopsis: Regression: "No line number for main." and many other functions
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sat Feb 23 23:18:01 PST 2002
>Closed-Date:
>Last-Modified:
>Originator: mec@shout.net
>Release: gdb HEAD%20020222
>Organization:
>Environment:
[target=native, host=i686-pc-linux-gnu%rh-7.2, gdb=HEAD%20020222, gcc=2.95.3, glibc=vendor, goption=-gstabs+]
>Description:
This is a regression bug versus gdb HEAD%20020216.
gdb loses line numbers in some places, printing the message "No line number for main." and many other functions. This causes FAILs in:
gdb.base/list.exp: list function in source file 1
gdb.base/list.exp: list list0.c:main
gdb.base/list.exp: list list0.c:unused
gdb.base/list.exp: list list1.c:unused
gdb.base/list.pex: list long_line
gdb.base/reread.exp: breakpoint foo in first file
gdb.c++/overload.exp: list overloaded function with no args
gdb.c++/overload.exp: list overloaded function with int arg
gdb.c++/overload.exp: list overloaded function with function ptr args
gdb.c++/overload.exp: list overloaded function with function ptr args - quotes around argument
This bug is sensitive to gcc version and goption.
Here is an excerpt from gdb.log:
(gdb) PASS: gdb.base/list.exp: list filename:number (4 tests)
list main^M
No line number known for main.^M
(gdb) FAIL: gdb.base/list.exp: list function in source file 1
>How-To-Repeat:
Check out cvs gdb HEAD (that is, mainline) dated 2002-02-22.
Use the configuration above.
Run test script gdb.base/list.exp.
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted: