This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH][commit/obvious] Fix argument type on gdbsim_detach prototype.
- From: Joel Brobecker <brobecker at adacore dot com>
- To: Edjunior Barbosa Machado <emachado at linux dot vnet dot ibm dot com>
- Cc: gdb-patches at sourceware dot org
- Date: Mon, 11 Nov 2013 18:18:29 +0400
- Subject: Re: [PATCH][commit/obvious] Fix argument type on gdbsim_detach prototype.
- Authentication-results: sourceware.org; auth=none
- References: <1384175693-18100-1-git-send-email-emachado at linux dot vnet dot ibm dot com>
> 2013-11-11 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
>
> * remote-sim.c (gdbsim_detach): Fix prototype.
Thanks!
I just noticed that one line then became too long. So I pushed
a checkin of my own as well...
> -static void gdbsim_detach (struct target_ops *ops, char *args, int from_tty);
> +static void gdbsim_detach (struct target_ops *ops, const char *args, int from_tty);
gdb/ChangeLog:
* remote-sim.c (gdbsim_detach): Break declaration into
shorter lines. No code change.
--
Joel
>From 8ca5801b3a05240125a79cd5ba090c98dcc584f8 Mon Sep 17 00:00:00 2001
From: Joel Brobecker <brobecker@adacore.com>
Date: Mon, 11 Nov 2013 18:13:40 +0400
Subject: [PATCH] Minor reformatting in remote-sim.c (gdbsim_detach
declaration).
gdb/ChangeLog:
* remote-sim.c (gdbsim_detach): Break declaration into
shorter lines. No code change.
---
gdb/ChangeLog | 5 +++++
gdb/remote-sim.c | 3 ++-
2 files changed, 7 insertions(+), 1 deletion(-)
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 5a0d355..a47c14e 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,8 @@
+2013-11-11 Joel Brobecker <brobecker@adacore.com>
+
+ * remote-sim.c (gdbsim_detach): Break declaration into
+ shorter lines. No code change.
+
2013-11-11 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
* remote-sim.c (gdbsim_detach): Fix prototype.
diff --git a/gdb/remote-sim.c b/gdb/remote-sim.c
index f7be6fa..6bf18ab 100644
--- a/gdb/remote-sim.c
+++ b/gdb/remote-sim.c
@@ -78,7 +78,8 @@ static void gdbsim_open (char *args, int from_tty);
static void gdbsim_close (void);
-static void gdbsim_detach (struct target_ops *ops, const char *args, int from_tty);
+static void gdbsim_detach (struct target_ops *ops, const char *args,
+ int from_tty);
static void gdbsim_prepare_to_store (struct regcache *regcache);
--
1.8.1.2