gdb: rename lin-lwp to linux-nat in set/show debug

Rename 'set debug lin-lwp' to 'set debug linux-nat' and 'show debug
lin-lwp' to 'show debug linux-nat'.

I've updated the documentation and help text to match, as well as
making it clear that the debug that is coming out relates to all
aspects of Linux native inferior support, not just the LWP aspect of
it.

The boundary between general "native" target debug, and the lwp
specific part of that debug was always a little blurry, but the actual
debug variable inside GDB is debug_linux_nat, and the print routine
linux_nat_debug_printf, is used throughout the linux-nat.c file, not
just for lwp related debug, so the new name seems to make more sense.
This commit is contained in:
Andrew Burgess
2021-12-22 15:33:38 +00:00
parent a8bc481f35
commit 8864ef428d
4 changed files with 22 additions and 10 deletions

View File

@@ -195,13 +195,13 @@ enum tribool have_ptrace_getregset = TRIBOOL_UNKNOWN;
static bool debug_linux_nat;
/* Implement 'show debug lin-lwp'. */
/* Implement 'show debug linux-nat'. */
static void
show_debug_linux_nat (struct ui_file *file, int from_tty,
struct cmd_list_element *c, const char *value)
{
fprintf_filtered (file, _("Debugging of GNU/Linux lwp module is %s.\n"),
fprintf_filtered (file, _("Debugging of GNU/Linux native targets is %s.\n"),
value);
}
@@ -4529,7 +4529,7 @@ void _initialize_linux_nat ();
void
_initialize_linux_nat ()
{
add_setshow_boolean_cmd ("lin-lwp", class_maintenance,
add_setshow_boolean_cmd ("linux-nat", class_maintenance,
&debug_linux_nat, _("\
Set debugging of GNU/Linux native target."), _(" \
Show debugging of GNU/Linux native target."), _(" \