This is the mail archive of the gdb-patches@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]

Re: [PATCH][commit/obvious] Fix argument type on gdbsim_detach prototype.


> 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


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