* NEWS: Note addition of macro support.
This commit is contained in:
parent
e2e0bcd116
commit
e0e9281e47
2 changed files with 24 additions and 0 deletions
|
@ -1,5 +1,7 @@
|
||||||
2002-05-17 Jim Blandy <jimb@redhat.com>
|
2002-05-17 Jim Blandy <jimb@redhat.com>
|
||||||
|
|
||||||
|
* NEWS: Note addition of macro support.
|
||||||
|
|
||||||
Expand preprocessor macros in C expressions.
|
Expand preprocessor macros in C expressions.
|
||||||
* c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
|
* c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
|
||||||
(scan_macro_expansion, scanning_macro_expansion,
|
(scan_macro_expansion, scanning_macro_expansion,
|
||||||
|
|
22
gdb/NEWS
22
gdb/NEWS
|
@ -3,6 +3,28 @@
|
||||||
|
|
||||||
*** Changes since GDB 5.2:
|
*** Changes since GDB 5.2:
|
||||||
|
|
||||||
|
* GDB now supports C/C++ preprocessor macros.
|
||||||
|
|
||||||
|
GDB now expands preprocessor macro invocations in C/C++ expressions,
|
||||||
|
and provides various commands for showing macro definitions and how
|
||||||
|
they expand.
|
||||||
|
|
||||||
|
Most compilers don't include information about macros in the debugging
|
||||||
|
information by default. In GCC 3.1, for example, you need to compile
|
||||||
|
your program with the options `-gdwarf-2 -g3'. If the macro
|
||||||
|
information is present in the executable, GDB will read it.
|
||||||
|
|
||||||
|
Here are the new commands for working with macros:
|
||||||
|
|
||||||
|
** macro expand EXPRESSION
|
||||||
|
|
||||||
|
Expand any macro invocations in expression, and show the result.
|
||||||
|
|
||||||
|
** show macro MACRO-NAME
|
||||||
|
|
||||||
|
Show the definition of the macro named MACRO-NAME, and where it was
|
||||||
|
defined.
|
||||||
|
|
||||||
* Multi-arched targets.
|
* Multi-arched targets.
|
||||||
|
|
||||||
NEC V850 v850-*-*
|
NEC V850 v850-*-*
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue