* gdbtk.c (gdb_disassemble): Rework disassemble_info initialization.
This commit is contained in:
parent
01d1f728cd
commit
fc941258cc
|
@ -1,3 +1,7 @@
|
|||
Tue Jan 23 09:00:48 1996 Doug Evans <dje@charmed.cygnus.com>
|
||||
|
||||
* gdbtk.c (gdb_disassemble): Rework disassemble_info initialization.
|
||||
|
||||
Mon Jan 22 16:59:40 1996 Stan Shebs <shebs@andros.cygnus.com>
|
||||
|
||||
* remote.c (remotebreak): New GDB variable.
|
||||
|
|
21
gdb/gdbtk.c
21
gdb/gdbtk.c
|
@ -789,16 +789,17 @@ gdb_disassemble (clientData, interp, argc, argv)
|
|||
{
|
||||
CORE_ADDR pc, low, high;
|
||||
int mixed_source_and_assembly;
|
||||
static disassemble_info di = {
|
||||
(fprintf_ftype) fprintf_unfiltered, /* fprintf_func */
|
||||
gdb_stdout, /* stream */
|
||||
NULL, /* application_data */
|
||||
0, /* flags */
|
||||
NULL, /* private_data */
|
||||
NULL, /* read_memory_func */
|
||||
dis_asm_memory_error, /* memory_error_func */
|
||||
dis_asm_print_address /* print_address_func */
|
||||
};
|
||||
static disassemble_info di;
|
||||
static int di_initialized;
|
||||
|
||||
if (! di_initialized)
|
||||
{
|
||||
INIT_DISASSEMBLE_INFO (di, gdb_stdout);
|
||||
di.fprintf_func = (fprintf_ftype) fprintf_unfiltered;
|
||||
di.memory_error_func = dis_asm_memory_error;
|
||||
di.print_address_func = dis_asm_print_address;
|
||||
di_initialized = 1;
|
||||
}
|
||||
|
||||
if (argc != 3 && argc != 4)
|
||||
error ("wrong # args");
|
||||
|
|
Loading…
Reference in New Issue