This is the mail archive of the gdb-cvs@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[binutils-gdb] Make extern declaration of dwarf_always_disassemble correct


https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=a3d181d2e784d57ea04728ac2f8f747fa798e78a

commit a3d181d2e784d57ea04728ac2f8f747fa798e78a
Author: Christian Biesinger <cbiesinger@google.com>
Date:   Wed Sep 18 13:50:42 2019 +0900

    Make extern declaration of dwarf_always_disassemble correct
    
    This was an oversight in 491144b5e21bbfd41969c175aebb663976f59058;
    dwarf2loc.c has an extern definition for dwarf_always_disassemble
    that I missed. This patch updates it from int to bool to match
    the definition in dwarf2read.c.
    
    gdb/ChangeLog:
    
    2019-09-18  Christian Biesinger  <cbiesinger@google.com>
    
    	* dwarf2loc.c: Change extern declaration of dwarf_always_disassemble
    	to bool to match definition in dwarf2read.c.

Diff:
---
 gdb/ChangeLog   | 5 +++++
 gdb/dwarf2loc.c | 2 +-
 2 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 8cb5bfe..39fcac7 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,8 @@
+2019-09-18  Christian Biesinger  <cbiesinger@google.com>
+
+	* dwarf2loc.c: Change extern declaration of dwarf_always_disassemble
+	to bool to match definition in dwarf2read.c.
+
 2019-09-17  Christian Biesinger  <cbiesinger@google.com>
 
 	* ada-lang.c (ada_ignore_descriptive_types_p): Change to bool.
diff --git a/gdb/dwarf2loc.c b/gdb/dwarf2loc.c
index 63643cb..29fccae 100644
--- a/gdb/dwarf2loc.c
+++ b/gdb/dwarf2loc.c
@@ -46,7 +46,7 @@
 #include "gdbsupport/underlying.h"
 #include "gdbsupport/byte-vector.h"
 
-extern int dwarf_always_disassemble;
+extern bool dwarf_always_disassemble;
 
 static struct value *dwarf2_evaluate_loc_desc_full (struct type *type,
 						    struct frame_info *frame,


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]