aboutsummaryrefslogtreecommitdiff
path: root/gdb/darwin-nat-info.c
diff options
context:
space:
mode:
authorPedro Alves <palves@redhat.com>2018-09-30 17:12:00 +0100
committerPedro Alves <palves@redhat.com>2018-09-30 17:17:52 +0100
commitdd2037827180f69e7e312a2080affcbb03c98d70 (patch)
tree2a1c5e13edfc4b2cea9e7cb4b318866fb7cb99d9 /gdb/darwin-nat-info.c
parent105cd1d7a6a7e6c5dce2e2eb32cdbfacc221a5d0 (diff)
downloadgdb-dd2037827180f69e7e312a2080affcbb03c98d70.zip
gdb-dd2037827180f69e7e312a2080affcbb03c98d70.tar.gz
gdb-dd2037827180f69e7e312a2080affcbb03c98d70.tar.bz2
Darwin: Remove unused variables [-Werror=unused-variable]
Building GDB with --host=x86_64-apple-darwin15 using G++ 5.3.0 runs into a number of -Werror=unused-variable warnings/errors: ../../src/gdb/i386-darwin-nat.c: In function 'void i386_darwin_dr_set(int, CORE_ADDR)': ../../src/gdb/i386-darwin-nat.c:283:7: error: unused variable 'current_pid' [-Werror=unused-variable] int current_pid; ^ [etc, etc.] This commit fixes all such warnings. gdb/ChangeLog: 2018-09-30 Pedro Alves <palves@redhat.com> * darwin-nat-info.c (darwin_debug_regions_recurse) (info_mach_exceptions_command): Remove unused local variables. * darwin-nat.c (darwin_decode_notify_message) (darwin_nat_target::resume, darwin_nat_target::mourn_inferior) (darwin_stop_inferior, darwin_setup_exceptions) (darwin_nat_target::kill, darwin_attach_pid, darwin_ptrace_him) (darwin_nat_target::attach, darwin_nat_target::detach) (darwin_read_write_inferior, darwin_read_dyld_info): Remove unused local variables. * i386-darwin-nat.c (i386_darwin_dr_set): Remove unused local variables.
Diffstat (limited to 'gdb/darwin-nat-info.c')
-rw-r--r--gdb/darwin-nat-info.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/gdb/darwin-nat-info.c b/gdb/darwin-nat-info.c
index f3c8de2..8c814a9 100644
--- a/gdb/darwin-nat-info.c
+++ b/gdb/darwin-nat-info.c
@@ -607,14 +607,12 @@ darwin_debug_regions (task_t task, mach_vm_address_t address, int max)
static void
darwin_debug_regions_recurse (task_t task)
{
- mach_vm_address_t r_addr;
mach_vm_address_t r_start;
mach_vm_size_t r_size;
natural_t r_depth;
mach_msg_type_number_t r_info_size;
vm_region_submap_short_info_data_64_t r_info;
kern_return_t kret;
- int ret;
struct ui_out *uiout = current_uiout;
ui_out_emit_table table_emitter (uiout, 9, -1, "regions");
@@ -792,8 +790,6 @@ disp_exception (const darwin_exception_info *info)
static void
info_mach_exceptions_command (const char *args, int from_tty)
{
- int i;
- task_t task;
kern_return_t kret;
darwin_exception_info info;