Don't include buildsym-legacy.h in windows-nat.c

Message ID 20191002192454.23510-1-tromey@adacore.com
State New, archived
Headers

Commit Message

Tom Tromey Oct. 2, 2019, 7:24 p.m. UTC
  I noticed that windows-nat.c includes buildsym-legacy.h -- but there's
no reason to do so, as windows-nat.c doesn't create any symbols.

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

	* windows-nat.c: Don't include buildsym-legacy.h.
---
 gdb/ChangeLog     | 4 ++++
 gdb/windows-nat.c | 1 -
 2 files changed, 4 insertions(+), 1 deletion(-)
  

Comments

Tom Tromey Oct. 8, 2019, 5:17 p.m. UTC | #1
>>>>> "Tom" == Tom Tromey <tromey@adacore.com> writes:

Tom> I noticed that windows-nat.c includes buildsym-legacy.h -- but there's
Tom> no reason to do so, as windows-nat.c doesn't create any symbols.

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

Tom> 	* windows-nat.c: Don't include buildsym-legacy.h.

I'm checking this in.

Tom
  

Patch

diff --git a/gdb/windows-nat.c b/gdb/windows-nat.c
index 26030e0a928..d73e68a4a6d 100644
--- a/gdb/windows-nat.c
+++ b/gdb/windows-nat.c
@@ -44,7 +44,6 @@ 
 #endif
 #include <algorithm>
 
-#include "buildsym-legacy.h"
 #include "filenames.h"
 #include "symfile.h"
 #include "objfiles.h"