[cfe-dev] Initial tokens
Chris Lattner
clattner at apple.com
Thu Oct 22 11:21:55 PDT 2009
On Oct 22, 2009, at 11:25 AM, david raila wrote:
>
> If I parse an empty file with a few breakpoints set to watch what's
> going on
> I see that there must be something predefined to give 25 calls to
> ConsumeToken for
> example. What are they and where are these pushed in?
I don't understand your debug dump, but it is probably the predefines
buffer. You can see it when you use -E. It is where things like -
include and -D options get dropped into.
-Chris
> Thanks,
> dkr
>
>
> (gdb) inf br
> Num Type Disp Enb Address What
> 1 breakpoint keep y 0x00000000008e4d67 in
> clang::Parser::ParseDeclarator(clang::Declarator&) at ParseDecl.cpp:
> 2087
> breakpoint already hit 6 times
> 2 breakpoint keep y 0x00000000008df779 in
> clang::Parser::ParseDeclarationAfterDeclarator(clang::Declarator&,
> clang::Parser::ParsedTemplateInfo const&) at ParseDecl.cpp:402
> breakpoint already hit 2 times
> 3 breakpoint keep y 0x00000000008dc169 in
> clang::Parser::ConsumeToken() at
> /home/raila/dpc++/clang/llvm/tools/clang/lib/Parse/../../include/
> clang/Parse/Parser.h:212
> breakpoint already hit 25 times
>
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev
More information about the cfe-dev
mailing list