aboutsummaryrefslogtreecommitdiff
path: root/gdb/tui/tui-hooks.c
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@polymtl.ca>2023-02-08 15:36:23 -0500
committerSimon Marchi <simon.marchi@polymtl.ca>2023-02-08 15:46:02 -0500
commitc583a2520616c2736cffc389c89a48b159366e6c (patch)
treeb4925f26506fcee96c16119431c01760f05db95d /gdb/tui/tui-hooks.c
parentca7f92c2f15b86b09c4a8ad14806bef666308d31 (diff)
downloadbinutils-users/simark/clang-format.zip
binutils-users/simark/clang-format.tar.gz
binutils-users/simark/clang-format.tar.bz2
Run clang-format.shusers/simark/clang-format
Change-Id: Ia948cc26d534b0dd02702244d52434b1a2093968
Diffstat (limited to 'gdb/tui/tui-hooks.c')
-rw-r--r--gdb/tui/tui-hooks.c22
1 files changed, 9 insertions, 13 deletions
diff --git a/gdb/tui/tui-hooks.c b/gdb/tui/tui-hooks.c
index d67c3d7..f66f81d 100644
--- a/gdb/tui/tui-hooks.c
+++ b/gdb/tui/tui-hooks.c
@@ -50,7 +50,7 @@
#include "gdb_curses.h"
static void
-tui_new_objfile_hook (struct objfile* objfile)
+tui_new_objfile_hook (struct objfile *objfile)
{
if (tui_active)
tui_display_main ();
@@ -158,10 +158,8 @@ tui_refresh_frame_and_register_information ()
from print_frame_info. */
static void
-tui_dummy_print_frame_info_listing_hook (struct symtab *s,
- int line,
- int stopline,
- int noerror)
+tui_dummy_print_frame_info_listing_hook (struct symtab *s, int line,
+ int stopline, int noerror)
{
}
@@ -238,14 +236,11 @@ tui_attach_detach_observers (bool attach)
tui_event_delete_breakpoint, attach);
attach_or_detach (gdb::observers::breakpoint_modified,
tui_event_modify_breakpoint, attach);
- attach_or_detach (gdb::observers::inferior_exit,
- tui_inferior_exit, attach);
- attach_or_detach (gdb::observers::before_prompt,
- tui_before_prompt, attach);
- attach_or_detach (gdb::observers::normal_stop,
- tui_normal_stop, attach);
- attach_or_detach (gdb::observers::register_changed,
- tui_register_changed, attach);
+ attach_or_detach (gdb::observers::inferior_exit, tui_inferior_exit, attach);
+ attach_or_detach (gdb::observers::before_prompt, tui_before_prompt, attach);
+ attach_or_detach (gdb::observers::normal_stop, tui_normal_stop, attach);
+ attach_or_detach (gdb::observers::register_changed, tui_register_changed,
+ attach);
attach_or_detach (gdb::observers::user_selected_context_changed,
tui_context_changed, attach);
attach_or_detach (gdb::observers::current_source_symtab_and_line_changed,
@@ -278,6 +273,7 @@ tui_remove_hooks (void)
}
void _initialize_tui_hooks ();
+
void
_initialize_tui_hooks ()
{