Patchwork [FYI] Remove two unused items from windows-nat.c

login
register
mail settings
Submitter Tom Tromey
Date Oct. 8, 2019, 5:23 p.m.
Message ID <20191008172320.5595-1-tromey@adacore.com>
Download mbox | patch
Permalink /patch/34880/
State New
Headers show

Comments

Tom Tromey - Oct. 8, 2019, 5:23 p.m.
windows_thread_info_struct::sf is unused, as is
struct safe_symbol_file_add_args in windows-nat.c.
This patch removes them both.  Tested by grep and
rebuilding.

gdb/ChangeLog
2019-10-08  Tom Tromey  <tromey@adacore.com>

	* windows-nat.c (struct windows_thread_info_struct) <sf>: Remove.
	(struct safe_symbol_file_add_args): Remove.
---
 gdb/ChangeLog     |  5 +++++
 gdb/windows-nat.c | 14 --------------
 2 files changed, 5 insertions(+), 14 deletions(-)

Patch

diff --git a/gdb/windows-nat.c b/gdb/windows-nat.c
index d73e68a4a6d..607b2e8cb97 100644
--- a/gdb/windows-nat.c
+++ b/gdb/windows-nat.c
@@ -224,7 +224,6 @@  typedef struct windows_thread_info_struct
     int suspended;
     int reload_context;
     CONTEXT context;
-    STACKFRAME sf;
   }
 windows_thread_info;
 
@@ -676,19 +675,6 @@  windows_nat_target::store_registers (struct regcache *regcache, int r)
     windows_store_one_register (regcache, th, r);
 }
 
-/* Encapsulate the information required in a call to
-   symbol_file_add_args.  */
-struct safe_symbol_file_add_args
-{
-  char *name;
-  int from_tty;
-  section_addr_info *addrs;
-  int mainline;
-  int flags;
-  struct ui_file *err, *out;
-  struct objfile *ret;
-};
-
 /* Maintain a linked list of "so" information.  */
 struct lm_info_windows : public lm_info_base
 {