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]

breakpoints/1053: GDB 5.3 (macro supporting) predefined macro symbols


>Number:         1053
>Category:       breakpoints
>Synopsis:       GDB 5.3 (macro supporting) predefined macro symbols
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Feb 12 08:38:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator:     sana@stl.sarov.ru
>Release:        unknown-1.0
>Organization:
>Environment:
32-bit && 64-bit Linux, GDB 5.3
>Description:
GDB 5.3 supports work with section .debug_macinfo.
During testing it has been found out that GDB 5.3 has problem with printing of predefined macro symbols.
It is not able to recognize debug information for them at all.

tets.c:

main()
{
int i = 10;
return;
}

GDB's output for this test is:

(gdb) b main
Breakpoint 1 at 0x8048abd: file test1.c, line 3.
(gdb) r
Starting program: /home1/sana/macro/tr/a.out 

Breakpoint 1, main () at test1.c:3
3       int i = 10;
(gdb) macro expand __ELF__
expands to: __ELF__
(gdb) macro expand __gnu_linux__
expands to: __gnu_linux__
(gdb) p __ELF__
No symbol "__ELF__" in current context.
(gdb) p __gnu_linux__
No symbol "__gnu_linux__" in current context.
(gdb) 


Section .debug_macinfo (readelf's dump):

Contents of the .debug_macinfo section:

DW_MACINFO_define - lineno : 0 macro : __SIGNED_CHARS__ 1
DW_MACINFO_define - lineno : 0 macro : __DATE__ "Feb 12 2003"
DW_MACINFO_define - lineno : 0 macro : __TIME__ "10:08:02"
DW_MACINFO_define - lineno : 0 macro : __STDC__ 1
DW_MACINFO_define - lineno : 0 macro : __STDC_VERSION__ 199901L
DW_MACINFO_define - lineno : 0 macro : __STDC_HOSTED__ 1
DW_MACINFO_define - lineno : 0 macro : __EDG__ 1
DW_MACINFO_define - lineno : 0 macro : __EDG_VERSION__ 300
DW_MACINFO_define - lineno : 0 macro : __VERSION__ "Intel(R) C++ gcc 3.0 mode"
DW_MACINFO_define - lineno : 0 macro : __HONOR_STD 1
DW_MACINFO_define - lineno : 0 macro : __ICC 800
DW_MACINFO_define - lineno : 0 macro : __INTEL_COMPILER 800
DW_MACINFO_define - lineno : 0 macro : _M_IX86 700
DW_MACINFO_define - lineno : 0 macro : __ELF__ 1
DW_MACINFO_define - lineno : 0 macro : __PTRDIFF_TYPE__ int
DW_MACINFO_define - lineno : 0 macro : __SIZE_TYPE__ unsigned
DW_MACINFO_define - lineno : 0 macro : __WCHAR_TYPE__ long int
DW_MACINFO_define - lineno : 0 macro : __WINT_TYPE__ unsigned int
DW_MACINFO_define - lineno : 0 macro : __QMSPP_ 1
DW_MACINFO_define - lineno : 0 macro : __extension__ 
DW_MACINFO_define - lineno : 0 macro : __GXX_ABI_VERSION 102
DW_MACINFO_define - lineno : 0 macro : __USER_LABEL_PREFIX__ 
DW_MACINFO_define - lineno : 0 macro : __unix__ 1
DW_MACINFO_define - lineno : 0 macro : __unix 1
DW_MACINFO_define - lineno : 0 macro : __linux__ 1
DW_MACINFO_define - lineno : 0 macro : __linux 1
DW_MACINFO_define - lineno : 0 macro : __gnu_linux__ 1
DW_MACINFO_define - lineno : 0 macro : unix 1
DW_MACINFO_define - lineno : 0 macro : linux 1
DW_MACINFO_define - lineno : 0 macro : __i386 1
DW_MACINFO_define - lineno : 0 macro : __i386__ 1
DW_MACINFO_define - lineno : 0 macro : i386 1
DW_MACINFO_start_file - lineno: 0 filenum: 1

>How-To-Repeat:
Unfortunately current Intel compiler does not generate debug information for macros. But this feature will be included in compiler 8.0.
>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]