aboutsummaryrefslogtreecommitdiff
path: root/gdb/stack.c
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2019-09-17 19:11:55 -0600
committerTom Tromey <tom@tromey.com>2019-10-01 15:12:40 -0600
commit9d636d67e0ddf223c6e9127dc058afdb48a7012f (patch)
tree16222a0b42498846d8468ac19c08d48d5e3a179a /gdb/stack.c
parent7f6aba03b929d3d893378760eeeca431005fc5cd (diff)
downloadfsf-binutils-gdb-9d636d67e0ddf223c6e9127dc058afdb48a7012f.zip
fsf-binutils-gdb-9d636d67e0ddf223c6e9127dc058afdb48a7012f.tar.gz
fsf-binutils-gdb-9d636d67e0ddf223c6e9127dc058afdb48a7012f.tar.bz2
Use styled_string in more places
This adds more uses of styled_string, changing gdb to style some output that was previously left unstyled. gdb/ChangeLog 2019-10-01 Tom Tromey <tom@tromey.com> * stack.c (print_frame, info_frame_command_core): Use styled_string. * linux-thread-db.c (try_thread_db_load_1) (try_thread_db_load_from_pdir_1): Use styled_string. * auto-load.c (file_is_auto_load_safe, execute_script_contents) (auto_load_section_scripts, info_auto_load_local_gdbinit) (maybe_print_unsupported_script_warning) (maybe_print_script_not_found_warning): Use styled_string. * ada-lang.c (user_select_syms): Use styled_string.
Diffstat (limited to 'gdb/stack.c')
-rw-r--r--gdb/stack.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/gdb/stack.c b/gdb/stack.c
index cb07e28..c7c67fc 100644
--- a/gdb/stack.c
+++ b/gdb/stack.c
@@ -1393,7 +1393,7 @@ print_frame (const frame_print_options &fp_opts,
annotate_frame_where ();
uiout->wrap_hint (" ");
uiout->text (" from ");
- uiout->field_string ("from", lib);
+ uiout->field_string ("from", lib, file_name_style.style ());
}
}
if (uiout->is_mi_like_p ())
@@ -1524,8 +1524,11 @@ info_frame_command_core (struct frame_info *fi, bool selected_frame_p)
}
wrap_here (" ");
if (sal.symtab)
- printf_filtered (" (%s:%d)", symtab_to_filename_for_display (sal.symtab),
- sal.line);
+ printf_filtered
+ (" (%ps:%d)",
+ styled_string (file_name_style.style (),
+ symtab_to_filename_for_display (sal.symtab)),
+ sal.line);
puts_filtered ("; ");
wrap_here (" ");
printf_filtered ("saved %s = ", pc_regname);