aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNick Roberts2003-05-03 22:20:57 +0000
committerNick Roberts2003-05-03 22:20:57 +0000
commitd408a783f8f456e305e2cde47a90f74147d286ce (patch)
treecae03b825e5cf41a1d76c0b6defd64788bec1d03
parent93e36c9cbf7cd56281c4e61edca8fa6c16126d6f (diff)
downloademacs-d408a783f8f456e305e2cde47a90f74147d286ce.tar.gz
emacs-d408a783f8f456e305e2cde47a90f74147d286ce.zip
(breakpoint-enabled-icon, breakpoint-disabled-icon):
Include bitmap data for monochrome display. (breakpoint-enabled-pbm-data, breakpoint-disabled-pbm-data): New constants.
-rw-r--r--lisp/gdb-ui.el98
1 files changed, 66 insertions, 32 deletions
diff --git a/lisp/gdb-ui.el b/lisp/gdb-ui.el
index 325b90bc44c..79e185fe7a5 100644
--- a/lisp/gdb-ui.el
+++ b/lisp/gdb-ui.el
@@ -1262,8 +1262,72 @@ output from the current command if that happens to be appropriate."
1262 gdb-info-breakpoints-custom) 1262 gdb-info-breakpoints-custom)
1263 1263
1264(defvar gdb-cdir nil "Compilation directory.") 1264(defvar gdb-cdir nil "Compilation directory.")
1265(defvar breakpoint-enabled-icon) 1265
1266(defvar breakpoint-disabled-icon) 1266(defconst breakpoint-xpm-data "/* XPM */
1267static char *magick[] = {
1268/* columns rows colors chars-per-pixel */
1269\"12 12 2 1\",
1270\" c red\",
1271\"+ c None\",
1272/* pixels */
1273\"++++++++++++\",
1274\"+++ +++\",
1275\"++ ++\",
1276\"+ +\",
1277\"+ +\",
1278\"+ +\",
1279\"+ +\",
1280\"+ +\",
1281\"+ +\",
1282\"++ ++\",
1283\"+++ +++\",
1284\"++++++++++++\"
1285};"
1286 "XPM data used for breakpoint icon.")
1287
1288(defconst breakpoint-enabled-pbm-data
1289"P1
129012 12\",
12910 0 0 0 0 0 0 0 0 0 0 0
12920 0 0 1 1 1 1 1 1 0 0 0
12930 0 1 1 1 1 1 1 1 1 0 0
12940 1 1 1 1 1 1 1 1 1 1 0
12950 1 1 1 1 1 1 1 1 1 1 0
12960 1 1 1 1 1 1 1 1 1 1 0
12970 1 1 1 1 1 1 1 1 1 1 0
12980 1 1 1 1 1 1 1 1 1 1 0
12990 1 1 1 1 1 1 1 1 1 1 0
13000 0 1 1 1 1 1 1 1 1 0 0
13010 0 0 1 1 1 1 1 1 0 0 0
13020 0 0 0 0 0 0 0 0 0 0 0"
1303 "PBM data used for enabled breakpoint icon.")
1304
1305(defconst breakpoint-disabled-pbm-data
1306"P1
130712 12\",
13080 0 0 0 0 0 0 0 0 0 0 0
13090 0 0 1 0 1 0 1 0 0 0 0
13100 0 1 0 1 0 1 0 1 0 0 0
13110 1 0 1 0 1 0 1 0 1 0 0
13120 0 1 0 1 0 1 0 1 0 1 0
13130 1 0 1 0 1 0 1 0 1 0 0
13140 0 1 0 1 0 1 0 1 0 1 0
13150 1 0 1 0 1 0 1 0 1 0 0
13160 0 1 0 1 0 1 0 1 0 1 0
13170 0 0 1 0 1 0 1 0 1 0 0
13180 0 0 0 1 0 1 0 1 0 0 0
13190 0 0 0 0 0 0 0 0 0 0 0"
1320 "PBM data used for disabled breakpoint icon.")
1321
1322(defvar breakpoint-enabled-icon
1323 (find-image `((:type xpm :data ,breakpoint-xpm-data)
1324 (:type pbm :data ,breakpoint-enabled-pbm-data)))
1325 "Icon for enabled breakpoint in display margin")
1326
1327(defvar breakpoint-disabled-icon
1328 (find-image `((:type xpm :data ,breakpoint-xpm-data :conversion disabled)
1329 (:type pbm :data ,breakpoint-disabled-pbm-data)))
1330 "Icon for disabled breakpoint in display margin")
1267 1331
1268;;-put breakpoint icons in relevant margins (even those set in the GUD buffer) 1332;;-put breakpoint icons in relevant margins (even those set in the GUD buffer)
1269(defun gdb-info-breakpoints-custom () 1333(defun gdb-info-breakpoints-custom ()
@@ -1910,36 +1974,6 @@ This arrangement depends on the value of `gdb-many-windows'."
1910 (gud-find-file gdb-main-file))) 1974 (gud-find-file gdb-main-file)))
1911 (other-window 1))) 1975 (other-window 1)))
1912 1976
1913(defconst breakpoint-xpm-data "/* XPM */
1914static char *magick[] = {
1915/* columns rows colors chars-per-pixel */
1916\"12 12 2 1\",
1917\" c red\",
1918\"+ c None\",
1919/* pixels */
1920\"+++++ +++++\",
1921\"+++ +++\",
1922\"++ ++\",
1923\"+ +\",
1924\"+ +\",
1925\" \",
1926\" \",
1927\"+ +\",
1928\"+ +\",
1929\"++ ++\",
1930\"+++ +++\",
1931\"+++++ +++++\"
1932};"
1933 "XPM file used for breakpoint icon.")
1934
1935(defvar breakpoint-enabled-icon
1936 (find-image `((:type xpm :data ,breakpoint-xpm-data)))
1937 "Icon for enabled breakpoint in display margin")
1938(defvar breakpoint-disabled-icon
1939 (find-image `((:type xpm :data ,breakpoint-xpm-data
1940 :conversion laplace)))
1941 "Icon for disabled breakpoint in display margin")
1942
1943(defun gdb-reset () 1977(defun gdb-reset ()
1944 "Exit a debugging session cleanly by killing the gdb buffers and resetting 1978 "Exit a debugging session cleanly by killing the gdb buffers and resetting
1945 the source buffers." 1979 the source buffers."