This is the mail archive of the
insight@sources.redhat.com
mailing list for the Insight project.
[RFA] mixed mode source highlighting
- To: insight at sources dot redhat dot com
- Subject: [RFA] mixed mode source highlighting
- From: Martin Hunt <hunt at redhat dot com>
- Date: Fri, 09 Feb 2001 12:55:32 -0800
- Organization: Red Hat
Here's a simple fix for something that broke a long time ago. You may
have noticed that there is a color preference for "Mixed Source". That
is to allow source lines to be a different color than assembly lines in
a mixed display. The attached patch restores this feature.
2001-02-09 Martin Hunt <hunt@redhat.com>
* generic/gdbtk-cmds.c (gdb_load_disassembly): In mixed
mode, source lines should be tagged with source_tag2.
Index: gdbtk/generic/gdbtk-cmds.c
===================================================================
RCS file: /cvs/src/src/gdb/gdbtk/generic/gdbtk-cmds.c,v
retrieving revision 1.20
diff -p -r1.20 gdbtk-cmds.c
*** gdbtk-cmds.c 2001/02/07 01:11:18 1.20
--- gdbtk-cmds.c 2001/02/09 20:48:37
***************
*** 1,5 ****
! /* Tcl/Tk command definitions for gdbtk.
! Copyright 1994, 1995, 1996, 1997, 1998, 1999
Free Software Foundation, Inc.
Written by Stu Grossman <grossman@cygnus.com> of Cygnus Support.
--- 1,5 ----
! /* Tcl/Tk command definitions for Insight.
! Copyright 1994, 1995, 1996, 1997, 1998, 1999, 2001
Free Software Foundation, Inc.
Written by Stu Grossman <grossman@cygnus.com> of Cygnus Support.
*************** gdb_load_disassembly (clientData, interp
*** 2605,2611 ****
/* client_data.source_argv[3] = line_number; */
client_data.source_argv[4] = "";
/* client_data.source_argv[5] = line; */
! client_data.source_argv[6] = "source_tag";
}
ret_val = gdb_disassemble_driver (low, high, mixed_source_and_assembly,
--- 2605,2611 ----
/* client_data.source_argv[3] = line_number; */
client_data.source_argv[4] = "";
/* client_data.source_argv[5] = line; */
! client_data.source_argv[6] = "source_tag2";
}
ret_val = gdb_disassemble_driver (low, high, mixed_source_and_assembly,