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]

pushed: [head+branch] Remove // comment in gdb/iq2000-tdep.c


Hello,

As discussed previously with Jan, this patch removes a command using
the "//" syntax, which some C compilers may not accept.  Since the
code has been commented out since at least 2005, I just deleted it.

gdb/ChangeLog:

	PR build/18033:
	* iq2000-tdep.c (iq2000_frame_cache): Delete C++-style comment.

Pushed to master + branch.

---
 gdb/ChangeLog     | 5 +++++
 gdb/iq2000-tdep.c | 2 --
 2 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 73d6ea9..c3d47f9 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,8 @@
+2015-02-26  Joel Brobecker  <brobecker@adacore.com>
+
+	PR build/18033:
+	* iq2000-tdep.c (iq2000_frame_cache): Delete C++-style comment.
+
 2015-02-23  Pedro Alves  <palves@redhat.com>
 
 	* remote.c (skip_to_semicolon): New function.
diff --git a/gdb/iq2000-tdep.c b/gdb/iq2000-tdep.c
index 081801c..f979591 100644
--- a/gdb/iq2000-tdep.c
+++ b/gdb/iq2000-tdep.c
@@ -379,8 +379,6 @@ iq2000_frame_cache (struct frame_info *this_frame, void **this_cache)
   *this_cache = cache;
 
   cache->base = get_frame_register_unsigned (this_frame, E_FP_REGNUM);
-  //if (cache->base == 0)
-    //return cache;
 
   current_pc = get_frame_pc (this_frame);
   find_pc_partial_function (current_pc, NULL, &cache->pc, NULL);
-- 
1.9.1


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