This is the mail archive of the gdb-patches@sourceware.org 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]

[patch] PR 12999 info macros command.


this patch adds 2 commands,
info macros LINESPEC
info definitions MACRO

the PR only asks for the former, but the latter seemed possibly useful.
if you don't want it, i'll at least try and make it implementable with
python (when i finish that.)
not sure if 'info macros' is prudent with the kfail (at the end of the tests).


2011-07-18  Matt Rice  <ratmice@gmail.com>

        PR macros/12999
        * gdb.texinfo (Macros): Add info definitions and info macros commands.

2011-07-18  Matt Rice  <ratmice@gmail.com>

        PR macros/12999
        * gdb.base/info-macros.c: New test sources.
        * gdb.base/info-macros.exp: New tests.

2011-07-18  Matt Rice  <ratmice@gmail.com>

        PR macros/12999
        * macrotab.h (macro_callback_fn): Add new arguments to callback.
        * macrotab.c (foreach_macro): Ditto.
        (foreach_macro_in_scope): Ditto.
        * macrocmd.c (print_macro_callback): New function.
        (info_macro_command): Move some code to print_macro_definition.
        (print_macro_definition): New function.
        (print_one_macro): Add new arguments to callback.
        (info_definitions_command): New function.
        (info_macros_command): Ditto.
        (_initialize_macrocmd): Add info macros and info definitions commands.
        * symtab.c (add_macro_name): Add new arguments to callback.

Attachment: foo.diff
Description: Binary data


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]