aboutsummaryrefslogtreecommitdiff
path: root/gdb/disasm.h
diff options
context:
space:
mode:
authorFernando Nasser <fnasser@redhat.com>2002-09-30 15:57:26 +0000
committerFernando Nasser <fnasser@redhat.com>2002-09-30 15:57:26 +0000
commit92df71f044d9a17e6244ee33370f53638c818b9c (patch)
tree9f31db3c28a52acb565a1113a66464a1f055f31b /gdb/disasm.h
parent701b80cd6647fd2a325b037cb572e6226905c92d (diff)
downloadgdb-92df71f044d9a17e6244ee33370f53638c818b9c.zip
gdb-92df71f044d9a17e6244ee33370f53638c818b9c.tar.gz
gdb-92df71f044d9a17e6244ee33370f53638c818b9c.tar.bz2
* disasm.c: New file.
* disasm.h: New file. * mi/mi-cmd-disas.c (gdb_dis_asm_read_memory): Moved to disasm.c. (compare_lines): Ditto. (dump_insns): Ditto. (do_mixed_source_and_assembly): Moved to disasm.c. Added uiout argument. (do_assembly_only): Ditto. (do_disassembly): Renamed to gdb_disassembly and moved to disasm.c. Sdded uiout argument. * Makefile.in: Add new files. Reorder SFILES list. Update dependencies. Include libgdb.a later in the insight executable.
Diffstat (limited to 'gdb/disasm.h')
-rw-r--r--gdb/disasm.h29
1 files changed, 29 insertions, 0 deletions
diff --git a/gdb/disasm.h b/gdb/disasm.h
new file mode 100644
index 0000000..beaaf4a
--- /dev/null
+++ b/gdb/disasm.h
@@ -0,0 +1,29 @@
+/* Disassemble support for GDB.
+ Copyright 2002 Free Software Foundation, Inc.
+
+ This file is part of GDB.
+
+ This program is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 2 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program; if not, write to the Free Software
+ Foundation, Inc., 59 Temple Place - Suite 330,
+ Boston, MA 02111-1307, USA. */
+
+#ifndef DISASM_H
+#define DISASM_H
+
+extern void gdb_disassembly (struct ui_out *uiout,
+ char *file_string,
+ int line_num,
+ int mixed_source_and_assembly,
+ int how_many, CORE_ADDR low, CORE_ADDR high);
+#endif