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]

gdb/380: Regression: "No line number for main." and many other functions



>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:


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