This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
RFA: mention macro support in NEWS
- From: Jim Blandy <jimb at redhat dot com>
- To: gdb-patches at sources dot redhat dot com
- Date: Thu, 16 May 2002 16:11:32 -0500 (EST)
- Subject: RFA: mention macro support in NEWS
This would be committed once the final patch goes in.
2002-05-16 Jim Blandy <jimb@redhat.com>
* NEWS: Note addition of macro support.
Index: gdb/NEWS
===================================================================
RCS file: /cvs/src/src/gdb/NEWS,v
retrieving revision 1.68
diff -c -r1.68 NEWS
*** gdb/NEWS 9 May 2002 23:38:20 -0000 1.68
--- gdb/NEWS 16 May 2002 21:09:05 -0000
***************
*** 3,8 ****
--- 3,30 ----
*** 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.
+
* New targets.
Atmel AVR avr*-*-*