-trace-define-variable and -trace-list-variables.
authorVladimir Prus <vladimir@codesourcery.com>
Tue, 23 Mar 2010 21:50:11 +0000 (21:50 +0000)
committerVladimir Prus <vladimir@codesourcery.com>
Tue, 23 Mar 2010 21:50:11 +0000 (21:50 +0000)
commit40e1c229a2dd402eb050b1025c4b1b7667a7e83e
treee8fa1df36bc7f26c586864858edfca5915448df9
parent9b4c786c6c9f2599873343b935a46a446ba1c029
    -trace-define-variable and -trace-list-variables.

     * tracepoint.c (create_trace_state_variable): Make
     private copy of name, as opposed to assuming the
     pointer lives forever.
     (tvariables_info_1): New.
     (tvariables_info): Use the above.
     * tracepoint.h (create_trace_state_variable, tvariables_info_1):
     Declare.
     * mi/mi-cmds.c (mi_cmds): Register -trace-define-variable
     and -trace-list-variables.
     * mi/mi-cmds.h (mi_cmd_trace_define_variable)
     (mi_cmd_trace_list_variables): New.
     * mi/mi-main.c (mi_cmd_trace_define_variable)
     (mi_cmd_trace_list_variables): New.
gdb/ChangeLog
gdb/mi/mi-cmds.c
gdb/mi/mi-cmds.h
gdb/mi/mi-main.c
gdb/tracepoint.c
gdb/tracepoint.h