summaryrefslogtreecommitdiff
path: root/gdb/arc-linux-nat.c
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@polymtl.ca>2021-01-13 14:32:23 -0500
committerSimon Marchi <simon.marchi@polymtl.ca>2021-01-13 14:32:23 -0500
commitfb0f5031bbbe2bed505fe413e178e05807e8db19 (patch)
treeb6b80d3d9ea2fbd85ea6084722615b57015fa2d8 /gdb/arc-linux-nat.c
parent506195754c948948a4940928969ffb07584ae845 (diff)
downloadbinutils-gdb-fb0f5031bbbe2bed505fe413e178e05807e8db19.tar.gz
gdb: turn arc_debug into a bool
Shahab suggested we get rid of the verbosity level for the ARC debug logging [1]. This patch does that, before doing any other change. gdb/ChangeLog: * arc-tdep.h (arc_debug): Change type to bool. * arc-tdep.c (arc_debug): Change type to bool. (arc_analyze_prologue): Adjust. (_initialize_arc_tdep): Use add_setshow_boolean_cmd. * arc-linux-nat.c (ps_get_thread_area): Adjust. [1] https://sourceware.org/pipermail/gdb-patches/2021-January/175075.html Change-Id: I16688bd42ed8978ae1acf57012c8d41a943044a5
Diffstat (limited to 'gdb/arc-linux-nat.c')
-rw-r--r--gdb/arc-linux-nat.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/arc-linux-nat.c b/gdb/arc-linux-nat.c
index db5d44312a6..b03363a4865 100644
--- a/gdb/arc-linux-nat.c
+++ b/gdb/arc-linux-nat.c
@@ -295,7 +295,7 @@ ps_err_e
ps_get_thread_area (struct ps_prochandle *ph, lwpid_t lwpid, int idx,
void **base)
{
- if (arc_debug >= 2)
+ if (arc_debug)
debug_printf ("arc-linux-nat: ps_get_thread_area called");
if (ptrace (PTRACE_GET_THREAD_AREA, lwpid, NULL, base) != 0)