PR macros/13205:
authorTom Tromey <tromey@redhat.com>
Wed, 16 May 2012 20:31:10 +0000 (20:31 +0000)
committerTom Tromey <tromey@redhat.com>
Wed, 16 May 2012 20:31:10 +0000 (20:31 +0000)
commitabc9d0dc6edeeabbd65fedb43cf840875156da91
tree6af9437622479beefdff726b65ee0880edb7d549
parent7537bd464b5c7aaa08b67e53f38403551ef5605d
PR macros/13205:
* macrotab.h: (macro_define_special): Declare.
(enum macro_special_kind): New.
(struct macro_definition) <argc, replacement>: Update comments.
* macrotab.c (new_macro_definition): Unconditionally set 'argc'.
(macro_define_object_internal): New function.
(macro_define_object): Use it.
(macro_define_special): New function.
(fixup_definition): New function.
(macro_lookup_definition, foreach_macro_in_scope)
(foreach_macro): Use fixup_definition.
* macroexp.h (macro_stringify): Declare.
* macroexp.c (free_buffer_return_text): New function.
(stringify): Constify "arg".
(macro_stringify): New function.
* dwarf2read.c (macro_start_file): Call macro_define_special.
testsuite
* gdb.base/macscp1.c (macscp_expr): Add comment.
* gdb.base/macscp.exp: Test __FILE__ and __LINE__.
gdb/ChangeLog
gdb/dwarf2read.c
gdb/macroexp.c
gdb/macroexp.h
gdb/macrotab.c
gdb/macrotab.h
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.base/macscp.exp
gdb/testsuite/gdb.base/macscp1.c