hurd: fix gnu_debug_flag type
authorSamuel Thibault <samuel.thibault@ens-lyon.org>
Sat, 30 May 2020 18:35:59 +0000 (18:35 +0000)
committerSamuel Thibault <samuel.thibault@ens-lyon.org>
Sat, 30 May 2020 18:40:25 +0000 (18:40 +0000)
Fixes

../../gdb/gnu-nat.c:96:6: error: conflicting declaration ‘bool gnu_debug_flag’
   96 | bool gnu_debug_flag = false;
../../gdb/gnu-nat.c: In function ‘void _initialize_gnu_nat()’:
../../gdb/gnu-nat.c:3511:7: error: cannot

gdb/ChangeLog:

* gnu-nat.h (gnu_debug_flag): Set type to bool.

gdb/ChangeLog
gdb/gnu-nat.h

index ac44bebebca903d06ed6963a9868ca63a51eb135..e6f5b3522a85b031b497b3c8211eacafb68bafc5 100644 (file)
@@ -1,3 +1,7 @@
+2020-05-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
+
+       * gnu-nat.h (gnu_debug_flag): Set type to bool.
+
 2020-05-30  Jonny Grant  <jg@jguk.org>
 
        * configure.ac (ACX_BUGURL): change bug URL to https.
index 77c57817b2b966e771ef2b2f7142e7cc0c01d08f..766f716587e234fb8bef76d313c1898d5f35ef15 100644 (file)
@@ -111,7 +111,7 @@ extern char *proc_string (struct proc *proc);
              __proc_pid (__proc), __proc->tid, \
              host_address_to_string (__proc) , ##args); } while (0)
 
-extern int gnu_debug_flag;
+extern bool gnu_debug_flag;
 
 #define debug(msg, args...) \
  do { if (gnu_debug_flag) \
This page took 0.02761 seconds and 4 git commands to generate.