public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: debug/5778: File for instruction incorrect when using #include
@ 2002-02-26 17:35 rodrigc
  0 siblings, 0 replies; 3+ messages in thread
From: rodrigc @ 2002-02-26 17:35 UTC (permalink / raw)
  To: fmoraes, gcc-bugs, gcc-prs, nobody

Synopsis: File for instruction incorrect when using #include

State-Changed-From-To: open->feedback
State-Changed-By: rodrigc
State-Changed-When: Tue Feb 26 17:27:59 2002
State-Changed-Why:
    You did not provide a testcase as mentioned in
    http://gcc.gnu.org/bugs.html
    
    Also, gcc 2.96 is not a version supported by the GCC project.
    You should report bugs about this version of gcc
    to Red Hat: http://bugzilla.redhat.com/bugzilla
    
    Do you have a reproduceable test case?

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=5778


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: debug/5778: File for instruction incorrect when using #include
@ 2002-02-26 18:12 rodrigc
  0 siblings, 0 replies; 3+ messages in thread
From: rodrigc @ 2002-02-26 18:12 UTC (permalink / raw)
  To: fmoraes, gcc-bugs, gcc-prs, nobody

Synopsis: File for instruction incorrect when using #include

State-Changed-From-To: feedback->closed
State-Changed-By: rodrigc
State-Changed-When: Tue Feb 26 18:07:13 2002
State-Changed-Why:
    id main(int argc, char **argv)
    {
    int a=0;
    int b=3;
    #include "demo.cpp"
    }
     
    demo.cpp:
    /*
    Useless comments to eat lines
     
     
     
     
     
     
    */
    // dummy instructions just to show problem
    if(b > a)
    b++;
    if(b > 5)
    a=3;
    
    
    
    Cannot reproduce problem with above testcase using
    gcc 3.0.4.  Consult Red Hat for further issues regarding
    gcc 2.96.

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=5778


^ permalink raw reply	[flat|nested] 3+ messages in thread

* debug/5778: File for instruction incorrect when using #include
@ 2002-02-25 11:36 fmoraes
  0 siblings, 0 replies; 3+ messages in thread
From: fmoraes @ 2002-02-25 11:36 UTC (permalink / raw)
  To: gcc-gnats


>Number:         5778
>Category:       debug
>Synopsis:       File for instruction incorrect when using #include
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Feb 25 10:36:00 PST 2002
>Closed-Date:
>Last-Modified:
>Originator:     Francisco Moraes
>Release:        gcc version 2.96 20000731 (Red Hat Linux 7.1 2.96-85)
>Organization:
>Environment:
RedHat 7.0 with GDB 5.1.1
>Description:
Using included files for function, GCC seems to generate incorrect file information for the addresses coming from the included file. GDB doesn't seem to be at fault as a cross-compiled GCC/GDB (ARM ELF32/DWARF) seems to work fine.

The problem is either at GCC generated debug information or GDB reading the debug information.
>How-To-Repeat:
Unzip and compile:
gcc -g -o test test.cpp

Debug using GDB, break at main, and step a couple of lines. This is the output from GDB:

GNU gdb 5.1.1
Copyright 2002 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i686-pc-linux-gnu"...
(gdb) break main
Breakpoint 1 at 0x8048436: file test.cpp, line 3.
(gdb) run
Starting program: /root/test

Breakpoint 1, main (argc=1, argv=0xbffffc94) at test.cpp:3
3       #include "demo.cpp"
(gdb) n
4       }
(gdb) n
Line number 5 out of range; test.cpp has 4 lines.
(gdb)
>Fix:
Correct the line generation table.
>Release-Note:
>Audit-Trail:
>Unformatted:


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2002-02-27  2:07 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-02-26 17:35 debug/5778: File for instruction incorrect when using #include rodrigc
  -- strict thread matches above, loose matches on Subject: below --
2002-02-26 18:12 rodrigc
2002-02-25 11:36 fmoraes

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).