diff options
author | Simon Marchi <simon.marchi@polymtl.ca> | 2023-02-08 15:36:23 -0500 |
---|---|---|
committer | Simon Marchi <simon.marchi@polymtl.ca> | 2023-02-08 15:46:02 -0500 |
commit | c583a2520616c2736cffc389c89a48b159366e6c (patch) | |
tree | b4925f26506fcee96c16119431c01760f05db95d /gdb/filesystem.c | |
parent | ca7f92c2f15b86b09c4a8ad14806bef666308d31 (diff) | |
download | binutils-gdb-users/simark/clang-format.tar.gz |
Run clang-format.shusers/simark/clang-format
Change-Id: Ia948cc26d534b0dd02702244d52434b1a2093968
Diffstat (limited to 'gdb/filesystem.c')
-rw-r--r-- | gdb/filesystem.c | 37 |
1 files changed, 16 insertions, 21 deletions
diff --git a/gdb/filesystem.c b/gdb/filesystem.c index 27a806e1ba0..dae74a7212b 100644 --- a/gdb/filesystem.c +++ b/gdb/filesystem.c @@ -25,13 +25,9 @@ const char file_system_kind_auto[] = "auto"; const char file_system_kind_unix[] = "unix"; const char file_system_kind_dos_based[] = "dos-based"; -const char *const target_file_system_kinds[] = -{ - file_system_kind_auto, - file_system_kind_unix, - file_system_kind_dos_based, - NULL -}; +const char *const target_file_system_kinds[] + = { file_system_kind_auto, file_system_kind_unix, file_system_kind_dos_based, + NULL }; const char *target_file_system_kind = file_system_kind_auto; const char * @@ -58,35 +54,34 @@ target_lbasename (const char *kind, const char *name) } static void -show_target_file_system_kind_command (struct ui_file *file, - int from_tty, +show_target_file_system_kind_command (struct ui_file *file, int from_tty, struct cmd_list_element *c, const char *value) { if (target_file_system_kind == file_system_kind_auto) - gdb_printf (file, _("\ + gdb_printf (file, _ ("\ The assumed file system kind for target reported file names \ is \"%s\" (currently \"%s\").\n"), - value, - effective_target_file_system_kind ()); + value, effective_target_file_system_kind ()); else - gdb_printf (file, _("\ + gdb_printf (file, _ ("\ The assumed file system kind for target reported file names \ is \"%s\".\n"), value); } void _initialize_filesystem (); + void _initialize_filesystem () { - add_setshow_enum_cmd ("target-file-system-kind", - class_files, - target_file_system_kinds, - &target_file_system_kind, _("\ -Set assumed file system kind for target reported file names."), _("\ + add_setshow_enum_cmd ("target-file-system-kind", class_files, + target_file_system_kinds, &target_file_system_kind, + _ ("\ +Set assumed file system kind for target reported file names."), + _ ("\ Show assumed file system kind for target reported file names."), - _("\ + _ ("\ If `unix', target file names (e.g., loaded shared library file names)\n\ starting the forward slash (`/') character are considered absolute,\n\ and the directory separator character is the forward slash (`/'). If\n\ @@ -96,6 +91,6 @@ backslash (`\\') is also considered a directory separator. Set to\n\ `auto' (which is the default), to let GDB decide, based on its\n\ knowledge of the target operating system."), NULL, /* setfunc */ - show_target_file_system_kind_command, - &setlist, &showlist); + show_target_file_system_kind_command, &setlist, + &showlist); } |