This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
[patch] remove #include "disasm.h" from printcmd.c
- From: David Carlton <carlton at math dot stanford dot edu>
- To: gdb-patches at sources dot redhat dot com
- Cc: Fernando Nasser <fnasser at redhat dot com>
- Date: 15 Nov 2002 10:53:43 -0800
- Subject: [patch] remove #include "disasm.h" from printcmd.c
I just happened to notice that printcmd.c included disasm.h whereas
Makefile.in didn't list it in the dependencies. Digging further, it
seems that the parts of printcmd.c that depend on disasm.h have
recently been removed. So I resolved the inconsistency by deleting
the include.
The patch is below; it seems obvious, so I'll apply it as soon as I'm
done recompiling GDB to make sure I didn't miss anything.
David Carlton
carlton@math.stanford.edu
2002-11-15 David Carlton <carlton@math.stanford.edu>
* printcmd.c: Remove #include "disasm.h".
Index: printcmd.c
===================================================================
RCS file: /cvs/src/src/gdb/printcmd.c,v
retrieving revision 1.48
diff -u -p -r1.48 printcmd.c
--- printcmd.c 8 Nov 2002 03:21:33 -0000 1.48
+++ printcmd.c 15 Nov 2002 18:44:34 -0000
@@ -41,7 +41,6 @@
#include "completer.h" /* for completion functions */
#include "ui-out.h"
#include "gdb_assert.h"
-#include "disasm.h"
extern int asm_demangle; /* Whether to demangle syms in asm printouts */
extern int addressprint; /* Whether to print hex addresses in HLL " */