mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-29 02:20:51 +00:00
btrace: reword error messages
Reword some btrace error messages to align with the format discussed in https://sourceware.org/ml/gdb-patches/2018-02/msg00135.html. gdb/ * remote.c (remote_btrace_maybe_reopen): Change error message. * btrace.c (btrace_enable): Likewise. (parse_xml_btrace): Likewise. (parse_xml_btrace_conf): Likewise. testsuite/ * lib/gdb.exp (skip_btrace_pt_tests): Update expected error message. Fix test name.
This commit is contained in:
@@ -1579,7 +1579,7 @@ btrace_enable (struct thread_info *tp, const struct btrace_config *conf)
|
||||
|
||||
#if !defined (HAVE_LIBIPT)
|
||||
if (conf->format == BTRACE_FORMAT_PT)
|
||||
error (_("GDB does not support Intel Processor Trace."));
|
||||
error (_("Intel Processor Trace support was disabled at compile time."));
|
||||
#endif /* !defined (HAVE_LIBIPT) */
|
||||
|
||||
DEBUG ("enable thread %s (%s)", print_thread_id (tp),
|
||||
@@ -2218,7 +2218,8 @@ parse_xml_btrace (struct btrace_data *btrace, const char *buffer)
|
||||
|
||||
#else /* !defined (HAVE_LIBEXPAT) */
|
||||
|
||||
error (_("Cannot process branch trace. XML parsing is not supported."));
|
||||
error (_("Cannot process branch trace. XML support was disabled at "
|
||||
"compile time."));
|
||||
|
||||
#endif /* !defined (HAVE_LIBEXPAT) */
|
||||
}
|
||||
@@ -2312,7 +2313,8 @@ parse_xml_btrace_conf (struct btrace_config *conf, const char *xml)
|
||||
|
||||
#else /* !defined (HAVE_LIBEXPAT) */
|
||||
|
||||
error (_("XML parsing is not supported."));
|
||||
error (_("Cannot process the branch trace configuration. XML support "
|
||||
"was disabled at compile time."));
|
||||
|
||||
#endif /* !defined (HAVE_LIBEXPAT) */
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user