This is the mail archive of the gcc-prs@gcc.gnu.org mailing list for the GCC project.


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

debug/3267: C++ debugging information refers to incorrect line



>Number:         3267
>Category:       debug
>Synopsis:       C++ debugging information refers to incorrect line
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Jun 19 11:56:00 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:     dje@watson.ibm.com
>Release:        gcc 3.0 release
>Organization:
>Environment:
powerpc-ibm-aix4.3.3.0
>Description:
G++ refers to incorrect source line numbers in header files

>How-To-Repeat:
libstdc++-v3/libsupc++/eh_personality.cc
__gxx_personality_v0 (PERSONALITY_FUNCTION) begins with:

__cxx_exception *xh = __get_exception_header_from_ue (ue_header);

The function __get_exception_header_from_ue() is defined in
unwind-cxx.h at line 156.

eh_personality.s debugging information states:

LCFI..32:
.bi "/usr/gnu/src/gcc-3.0/libstdc++-v3/libsupc++/unwind-cxx.h"
.line 19
addi 28,7,-48
.ei "/usr/gnu/src/gcc-3.0/libstdc++-v3/libsupc++/unwind-cxx.h"
.line 1
stw 0,8(1)
.line 18
addi 0,7,24
.line 1

Line 19 of unwind-cxx.h is
// Boston, MA 02111-1307, USA.

which is exactly the line displayed when stepping through
that part of the function in a debugger, but not the correct
line 156.
>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]