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] Fix build failure in darwin-nat.c


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

commit 0fc7642151cc5e62f05ac8ea91fe4d5b44bee11a
Author: Simon Marchi <simon.marchi@polymtl.ca>
Date:   Mon Nov 20 23:29:10 2017 -0500

    Fix build failure in darwin-nat.c
    
    Fix:
    
    /Users/simark/src/binutils-gdb/gdb/darwin-nat.c:2404:3: error: no matching function for call to 'add_setshow_boolean_cmd'
      add_setshow_boolean_cmd ("mach-exceptions", class_support,
      ^~~~~~~~~~~~~~~~~~~~~~~
    
    gdb/ChangeLog:
    
    	* darwin-nat.c (set_enable_mach_exceptions): Constify parameter.

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

diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index d3b7b42..88c7603 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,7 @@
+2017-11-20  Simon Marchi  <simon.marchi@polymtl.ca>
+
+	* darwin-nat.c (set_enable_mach_exceptions): Constify parameter.
+
 2017-11-21  Pedro Alves  <palves@redhat.com>
 
 	* dwarf2read.c (mapped_index::find_name_components_bounds)
diff --git a/gdb/darwin-nat.c b/gdb/darwin-nat.c
index e57bcf9..6e420c4 100644
--- a/gdb/darwin-nat.c
+++ b/gdb/darwin-nat.c
@@ -2229,7 +2229,7 @@ darwin_xfer_partial (struct target_ops *ops,
 }
 
 static void
-set_enable_mach_exceptions (char *args, int from_tty,
+set_enable_mach_exceptions (const char *args, int from_tty,
 			    struct cmd_list_element *c)
 {
   if (!ptid_equal (inferior_ptid, null_ptid))


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