aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@polymtl.ca>2021-05-26 23:26:21 -0400
committerSimon Marchi <simon.marchi@polymtl.ca>2021-05-26 23:27:00 -0400
commit749369c430d88c4abc9acde5cfc7b5218651de10 (patch)
tree7c9cc5cd10b47876aecb072a3a5fe9e1866a0b51 /gdb
parent6643bb0010d9b3a2a222713420a70eb4da3e42cd (diff)
downloadbinutils-749369c430d88c4abc9acde5cfc7b5218651de10.zip
binutils-749369c430d88c4abc9acde5cfc7b5218651de10.tar.gz
binutils-749369c430d88c4abc9acde5cfc7b5218651de10.tar.bz2
gdb: change dwarf_die_debug to bool
gdb/ChangeLog: * dwarf2/read.c (dwarf_die_debug): Change type to bool. (_initialize_dwarf2_read): Update. Change-Id: I6d9e2fe4b662409a540acb2c0b82c7d5314d541b
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog5
-rw-r--r--gdb/dwarf2/read.c14
2 files changed, 12 insertions, 7 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 39f444e..3649117 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,8 @@
+2021-05-26 Simon Marchi <simon.marchi@polymtl.ca>
+
+ * dwarf2/read.c (dwarf_die_debug): Change type to bool.
+ (_initialize_dwarf2_read): Update.
+
2021-05-26 Simon Marchi <simon.marchi@efficios.com>
* regcache.c (reg_buffer::reg_buffer): Default-initialize
diff --git a/gdb/dwarf2/read.c b/gdb/dwarf2/read.c
index d3b5b89..b40d3a7 100644
--- a/gdb/dwarf2/read.c
+++ b/gdb/dwarf2/read.c
@@ -107,8 +107,8 @@ static unsigned int dwarf_read_debug = 0;
debug_prefixed_printf_cond (dwarf_read_debug >= 2, "dwarf-read", fmt, \
##__VA_ARGS__)
-/* When non-zero, dump DIEs after they are read in. */
-static unsigned int dwarf_die_debug = 0;
+/* When true, dump DIEs after they are read in. */
+static bool dwarf_die_debug = false;
/* When non-zero, dump line number entries as they are read in. */
unsigned int dwarf_line_debug = 0;
@@ -24735,14 +24735,14 @@ information. A value greater than 1 provides more verbose information."),
NULL,
&setdebuglist, &showdebuglist);
- add_setshow_zuinteger_cmd ("dwarf-die", no_class, &dwarf_die_debug, _("\
+ add_setshow_boolean_cmd ("dwarf-die", no_class, &dwarf_die_debug, _("\
Set debugging of the DWARF DIE reader."), _("\
Show debugging of the DWARF DIE reader."), _("\
-When enabled (non-zero), DIEs are dumped after they are read in.\n\
+When enabled, DIEs are dumped after they are read in.\n\
The value is the maximum depth to print."),
- NULL,
- NULL,
- &setdebuglist, &showdebuglist);
+ NULL,
+ NULL,
+ &setdebuglist, &showdebuglist);
add_setshow_zuinteger_cmd ("dwarf-line", no_class, &dwarf_line_debug, _("\
Set debugging of the dwarf line reader."), _("\