This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[OB PATCH] xcoffread.c (process_linenos): Delete unnecessary code.
- From: Doug Evans <xdje42 at gmail dot com>
- To: gdb-patches at sourceware dot org
- Date: Sun, 02 Nov 2014 20:23:58 -0800
- Subject: [OB PATCH] xcoffread.c (process_linenos): Delete unnecessary code.
- Authentication-results: sourceware.org; auth=none
Hi.
Committed as obvious.
There's no point in zeroing out a local variable right before
the function returns.
Build-tested on amd64-linux with --enable-targets=all.
2014-11-02 Doug Evans <xdje42@gmail.com>
* xcoffread.c (process_linenos): Delete unnecessary zeroing of
main_subfile before returning.
diff --git a/gdb/xcoffread.c b/gdb/xcoffread.c
index 90cc32f..7594feb 100644
--- a/gdb/xcoffread.c
+++ b/gdb/xcoffread.c
@@ -809,9 +809,6 @@ return_after_cleanup:
/* We don't want to keep alloc/free'ing the global include file table. */
inclIndx = 0;
-
- /* Start with a fresh subfile structure for the next file. */
- memset (&main_subfile, '\0', sizeof (struct subfile));
}
static void