binutils-gdb/gdb/doc
Tom Tromey d7d9f01ea1 gdb
PR gdb/855:
	* NEWS: Add entry for macro commands.
	* Makefile.in (macrocmd.o): Add gdb_string.h.
	* macroscope.h (user_macro_scope): Declare.
	(default_macro_scope): Update documentation.
	(macro_user_macros): Declare.
	* c-lang.c (c_preprocess_and_parse): Always attempt macro lookup.
	Use user_macro_scope.
	(null_macro_lookup): Remove.
	* macrotab.h (macro_callback_fn): Declare.
	(macro_for_each): Likewise.
	(macro_allow_redefinitions): Likewise.
	* macrotab.c (foreach_macro): New function
	(macro_for_each): Likewise.
	(struct macro_table) <redef_ok>: New field.
	(macro_allow_redefinitions): New function.
	(new_macro_table): Update.
	(macro_define_function): Likewise.
	(macro_define_object): Likewise.
	* macroscope.c (user_macro_scope): New function.
	(default_macro_scope): Use it.
	(macro_user_macros): New global.
	(standard_macro_lookup): Look in macro_user_macros.
	(_initialize_macroscope): New function.
	* macroexp.h (macro_is_whitespace, macro_is_digit,
	macro_is_identifier_nondigit): Declare.
	* macroexp.c (macro_is_whitespace): Rename.  No longer static.
	(macro_is_digit): Likewise.
	(macro_is_identifier_nondigit): Likewise.
	(get_identifier): Update.
	(get_pp_number): Likewise.
	(get_token): Likewise.
	* macrocmd.c (skip_ws): New function.
	(extract_identifier): Likewise.
	(free_macro_definition_ptr): Likewise.
	(user_macros): Remove.
	(macro_define_command): Implement.
	(_initialize_macrocmd): Update.
	(macro_undef_command): Implement.
	(print_one_macro): New function.
	(macro_list_command): Implement.
gdb/doc
	* gdb.texinfo (Macros): Update.  Use @code rather than @command.
gdb/testsuite
	* gdb.base/macscp.exp: Add macro tests.
2008-07-18 20:55:33 +00:00
..
a4rc.sed
agentexpr.texi * agentexpr.texi: Fix typos. 2007-01-20 16:51:56 +00:00
all-cfg.texi * all-cfg.texi (GDBTUI): New. 2007-05-14 17:53:07 +00:00
annotate.texinfo (Multi-threaded Apps): Add entry for thread-changed annotation. 2008-06-06 00:35:16 +00:00
ChangeLog gdb 2008-07-18 20:55:33 +00:00
configure 2008-06-05 Vladimir Prus <vladimir@codesourcery.com> 2008-06-05 22:36:57 +00:00
configure.ac 2008-06-05 Vladimir Prus <vladimir@codesourcery.com> 2008-06-05 22:36:57 +00:00
fdl.texi * stabs.texinfo: 2005-12-23 19:26:17 +00:00
gdb.texinfo gdb 2008-07-18 20:55:33 +00:00
gdbint.texinfo * gdbarch.sh: Delete dwarf_reg_to_regnum. 2008-05-16 00:27:24 +00:00
gpl.texi * stabs.texinfo: 2005-12-23 19:26:17 +00:00
lpsrc.sed
LRS
Makefile.in 2008-06-05 Vladimir Prus <vladimir@codesourcery.com> 2008-06-05 22:36:57 +00:00
observer.texi Implement *running. 2008-06-10 10:23:54 +00:00
psrc.sed
refcard.tex Add "make pdf" and "make install-pdf", from Brooks Moses 2007-03-27 18:09:36 +00:00
stabs.texinfo * agentexpr.texi: Fix typos. 2007-01-20 16:51:56 +00:00