breakpoint inside MACRO doesn't work

Alireza Haghdoost haghdoost at gmail.com
Fri Dec 9 22:21:35 GMT 2011


Hi Mahmood

You can convert all your C files to pre-processing files with gcc -E
command. In the pre-processing files you don't have any macro. In other
word, gcc -E command replace all macros with standard C codes.
For example if you want to insert a breakpoint in a.c file, you need to do
this:
1. generate pre-process file with $gcc -E a.c > new_a.c
2. Replace new_a.c with a.c
3. open new_a.c and insert breakpoint at what ever you like
4. start debug

hope it helps
Alireza

On Sun, Dec 4, 2011 at 14:03, Mahmood Naderan <mahmood.nt at gmail.com> wrote:

> Hi,
> There is MACRO defined function like this:
>
> #define BUILD_CACHE(TAGS, tags)                         \
>    do {                                                \
>   ....
>
> It seems that it is not possible to set a breakpoint inside macro. Is
> there any solution for that?
> --
> // Naderan *Mahmood;
>
> _______________________________________________
> kdevelop mailing list
> kdevelop at kdevelop.org
> https://barney.cs.uni-potsdam.de/mailman/listinfo/kdevelop
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kdevelop/attachments/20111209/ab0d42cf/attachment-0001.html>


More information about the KDevelop mailing list