2003-02-06 13:30:17 +08:00
|
|
|
/* MI Internal Functions for GDB, the GNU debugger.
|
|
|
|
|
2012-01-04 16:17:56 +08:00
|
|
|
Copyright (C) 2003, 2007-2012 Free Software Foundation, Inc.
|
2003-02-06 13:30:17 +08:00
|
|
|
|
|
|
|
This file is part of GDB.
|
|
|
|
|
|
|
|
This program is free software; you can redistribute it and/or modify
|
|
|
|
it under the terms of the GNU General Public License as published by
|
2007-08-24 02:08:50 +08:00
|
|
|
the Free Software Foundation; either version 3 of the License, or
|
2003-02-06 13:30:17 +08:00
|
|
|
(at your option) any later version.
|
|
|
|
|
|
|
|
This program is distributed in the hope that it will be useful,
|
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
GNU General Public License for more details.
|
|
|
|
|
|
|
|
You should have received a copy of the GNU General Public License
|
2007-08-24 02:08:50 +08:00
|
|
|
along with this program. If not, see <http://www.gnu.org/licenses/>. */
|
2003-02-06 13:30:17 +08:00
|
|
|
|
|
|
|
#ifndef MI_MAIN_H
|
|
|
|
#define MI_MAIN_H
|
|
|
|
|
|
|
|
extern void mi_load_progress (const char *section_name,
|
|
|
|
unsigned long sent_so_far,
|
|
|
|
unsigned long total_section,
|
|
|
|
unsigned long total_sent,
|
|
|
|
unsigned long grand_total);
|
2008-06-25 22:32:34 +08:00
|
|
|
|
2009-03-17 13:18:45 +08:00
|
|
|
extern void mi_print_timing_maybe (void);
|
|
|
|
|
2008-06-25 22:32:34 +08:00
|
|
|
extern char *current_token;
|
|
|
|
|
|
|
|
extern int running_result_record_printed;
|
2009-03-23 02:06:07 +08:00
|
|
|
extern int mi_proceeded;
|
MI breakpoint notifications.
* annotate.c (breakpoint_changed): Adjust parameter type.
* breakpoint.c (set_breakpoint_condition): Adjust to change
in breakpoint_modified type.
(breakpoint_set_commands): Likewise.
(do_map_commands_command): Likewise.
(bpstat_check_breakpoint_conditions): Notify that breakpoint has
changed after bumping hit count.
(bpstat_stop_status): Likewise.
(print_one_breakpoint_location): Don't wrap in tuple here.
(print_one_breakpoint): Always print individual locations.
For locations, use unnamed tuple.
(disable_breakpoints_in_unloaded_shlib): Notify that breakpoint
has changed.
(create_catchpoint, create_syscall_event_catchpoint): Call
breakpoint_created obsever.
(mention): Don't call breakpoint_created observer.
(create_breakpoint_sal): Call breakpoint_created observer.
(create_breakpoint, watch_command_1): Likewise.
(create_ada_exception_breakpoint): Likewise.
(delete_breakpoint): Call breakpoint_deleted breakpoint.
(locations_are_equal): New.
(update_breakpoint_locations): If locations were changed, notify.
(set_ignore_count, disable_breakpoint, do_enable_breakpoint):
Call breakpoint_modified observer.
* mi/mi-cmd-break.c (breakpoint_notify): Adjust.
(mi_cmd_break_insert): Don't set observers for modify and delete.
* mi/mi-interp.c (mi_suppress_breakpoint_notifications): New.
(mi_breakpoint_created, mi_breakpoint_deleted)
(mi_breakpoint_modified): New.
(mi_interpreter_init): Hook the above.
* mi/mi-main.c (mi_cmd_execute): Disable breakpoint notifications
while -break-* commands are executing.
* mi/mi-main.h (mi_suppress_breakpoint_notifications): New.
* mi/mi-out.c (struct ui_out_data): New field original_buffer.
(mi_redirect): New.
(mi_ui_out_impl): Hook in mi_redirect.
(mi_field_skip): True to the name, skip the field, don't output
a field with an empty value.
* python/py-breakpoint.c (gdbpy_breakpoint_created)
(gdbpy_breakpoint_deleted): Adjust.
* tui/tui-hooks.c (tui_event_create_breakpoint)
(tui_event_delete_breakpoint, tui_event_modify_breakpoint): Adjust.
2011-04-27 18:17:39 +08:00
|
|
|
extern int mi_suppress_breakpoint_notifications;
|
2008-06-25 22:32:34 +08:00
|
|
|
|
2003-02-06 13:30:17 +08:00
|
|
|
#endif
|
|
|
|
|