+2019-05-14  Tom Tromey  <tromey@adacore.com>
+
+       * solib.c (info_sharedlibrary_command): Style the file name.
+
 2019-05-14  Alan Hayward  <alan.hayward@arm.com>
 
        * aarch64-tdep.c (aarch64_vnh_type): Add half view.
 
        else
          uiout->field_string ("syms-read", so->symbols_loaded ? "Yes" : "No");
 
-       uiout->field_string ("name", so->so_name);
+       uiout->field_string ("name", so->so_name, ui_out_style_kind::FILE);
 
        uiout->text ("\n");
       }
 
+2019-05-14  Tom Tromey  <tromey@adacore.com>
+
+       * gdb.base/info-shared.exp (check_info_shared): Add "info shared"
+       styling test.
+
 2019-05-14  Tom de Vries  <tdevries@suse.de>
 
        * gdb.dwarf2/dw2-skip-prologue.S (.debug_loc): Fix base address
 
 # Run to the last stop and check that both libraries are gone.
 gdb_continue_to_breakpoint "library unload #2" "\\.?stop .*"
 check_info_shared "info sharedlibrary #8" 0 0
+
+with_test_prefix styled {
+    save_vars { env(TERM) } {
+       # We need an ANSI-capable terminal to get the output.
+       setenv TERM ansi
+
+       clean_restart $testfile
+
+       gdb_test_no_output "set style enabled off"
+       if {![runto_main]} {
+           return 0
+       }
+       gdb_breakpoint "stop"
+       gdb_continue_to_breakpoint "library load #1" "\\.?stop .*"
+
+       # Simple test for "info sharedlibrary" styling.  Look for styled
+       # addresses and file name.
+       set addr "\033\\\[34m${hex}\033\\\[m"
+       set sofile "\033\\\[32m\[^\033\]+\033\\\[m"
+       gdb_test_no_output "set style enabled on"
+       gdb_test "info sharedlibrary" \
+           "$addr\[ \t\]+$addr.*$sofile\r\n.*"
+    }
+}