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/1136: Debugging with macro.


>Number:         1136
>Category:       breakpoints
>Synopsis:       Debugging with macro.
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    unassigned
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Tue Mar 11 10:38:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator:     sana at stl dot sarov dot ru
>Release:        unknown-1.0
>Organization:
>Environment:
GDB 5.3
>Description:
Regression test is 

       #define f() x
        #define g   y
        #define h(a,b) a##b
        int main() {
            int xy = 7;
            return xy;
        }

GDB's ouput is:

This GDB was configured as "i686-pc-linux-gnu"...
(gdb) b 12
Breakpoint 1 at 0x8048ac4: file macro_07.c, line 12.
(gdb) r
Starting program: /home1/sana/trackers/macro/test/macro_07.exe 

Breakpoint 1, main () at macro_07.c:12
12         return xy;
(gdb) p h(x,y)
Stringification is not implemented yet.
(gdb) p h(xy,)
Stringification is not implemented yet.
(gdb) 

It i sexamples of "ANSI token pasting". There are no "stringification" operator in sight.
It looks like that it is GBD's bug.
>How-To-Repeat:

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