]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
Fix build failure in darwin-nat.c
authorSimon Marchi <simon.marchi@polymtl.ca>
Tue, 21 Nov 2017 04:29:10 +0000 (23:29 -0500)
committerSimon Marchi <simon.marchi@polymtl.ca>
Tue, 21 Nov 2017 04:29:10 +0000 (23:29 -0500)
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.

gdb/ChangeLog
gdb/darwin-nat.c

index d3b7b42257f9047101ac79ac6e2fd2ea7deca453..88c760313a525a47719f7187ba5ce9ab750685a2 100644 (file)
@@ -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)
index e57bcf9e814f108b81e2230443c31f3cefdb1455..6e420c42555e5d5b30212f0aa4404cc956aed34a 100644 (file)
@@ -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))