This is the mail archive of the gdb-patches@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] |
It sounds like you missed the documentation of c-macro-expand, which says:
c-macro-expand is an interactive autoloaded Lisp function in `cmacexp'. (c-macro-expand START END SUBST)
Expand C macros in the region, using the C preprocessor. Normally display output in temp buffer, but prefix arg means replace the region with it.
Note the last sentence: it means that "C-u M-x c-macro-expand RET" will replace the marked region with the results of the expansion.
PS: Steps will likely be:
- change streq[n] to sane equivalents
- re-indent rougly half of GDB
the output of cpp is messy, I'm going to need to re-indent it, which means I'm going to need to re-indent befor the event
- this to-be-determined step
For reindenting, just mark the region and then type "C-M-\".
#define A(B,C) ((B) + (C)) A(b,c)
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |