annotate src/dbxrc @ 210:49f55ca3ba57

Added tag r20-4b3 for changeset 41ff10fd062f
author cvs
date Mon, 13 Aug 2007 10:05:01 +0200
parents ac2d302a0011
children c5d627a313b1
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
2
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents:
diff changeset
1 # -*- ksh -*-
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents:
diff changeset
2 # You can use this file to debug XEmacs using Sun WorkShop's dbx.
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents:
diff changeset
3 # Add the contents of this file to $HOME/.dbxrc or
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents:
diff changeset
4 # Source the contents of this file with something like:
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents:
diff changeset
5 # test -r ./dbxrc && . ./dbxrc
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents:
diff changeset
6
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents:
diff changeset
7 ignore POLL
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents:
diff changeset
8 ignore IO
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents:
diff changeset
9
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents:
diff changeset
10 function lbt {
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents:
diff changeset
11 call Fbacktrace (Qexternal_debugging_output, Qt)
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents:
diff changeset
12 }
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents:
diff changeset
13
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents:
diff changeset
14 function dp {
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents:
diff changeset
15 call debug_print ($1);
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents:
diff changeset
16 }
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents:
diff changeset
17
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents:
diff changeset
18 function xptr {
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents:
diff changeset
19 print ("$1"<<4) & 0xFFFFFFF)
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents:
diff changeset
20 }
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents:
diff changeset
21
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents:
diff changeset
22 function xint {
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents:
diff changeset
23 print ((int)($1 << 4))>>4;
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents:
diff changeset
24 }
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents:
diff changeset
25
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents:
diff changeset
26 #function xstring {
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents:
diff changeset
27 # print *(struct Lisp_String *) ($1 & 0xFFFFFFF);
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents:
diff changeset
28 # #print ((struct Lisp_String *) ($1 & 0xFFFFFFF))->_data;
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents:
diff changeset
29 #}
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents:
diff changeset
30
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents:
diff changeset
31 function xlisp {
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents:
diff changeset
32 print $1 ($2 & 0xFFFFFFF);
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents:
diff changeset
33 #print ((struct Lisp_String *) ($1 & 0xFFFFFFF))->_data;
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents:
diff changeset
34 }
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents:
diff changeset
35
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents:
diff changeset
36 function defxlisp {
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents:
diff changeset
37 eval "function $1 { print $2 (\$1 & 0xFFFFFFF) ; }"
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents:
diff changeset
38 }
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents:
diff changeset
39
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents:
diff changeset
40 function defxstruct {
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents:
diff changeset
41 defxlisp "$1" "*(struct $2 *)"
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents:
diff changeset
42 }
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents:
diff changeset
43
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents:
diff changeset
44 defxstruct xstring 'Lisp_String'
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents:
diff changeset
45 defxstruct xlstream 'lstream'
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents:
diff changeset
46 defxstruct xsubr 'Lisp_Subr'
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents:
diff changeset
47 defxstruct xbitvec 'Lisp_Bit_Vector'
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents:
diff changeset
48 defxstruct xbuffer 'buffer'
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents:
diff changeset
49 defxstruct xbytecode 'Lisp_Bytecode'
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents:
diff changeset
50 defxstruct xcharset 'Lisp_Charset'
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents:
diff changeset
51 defxstruct xchartab 'Lisp_Char_Table'
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents:
diff changeset
52 defxstruct xchartabentry 'Lisp_Char_Table_Entry'
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents:
diff changeset
53 defxstruct xcodesys 'Lisp_Coding_System'
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents:
diff changeset
54 defxstruct xcolorinst 'Lisp_Color_Instance'
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents:
diff changeset
55 defxstruct xcons 'Lisp_Cons'
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents:
diff changeset
56 defxstruct xdevice 'device'
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents:
diff changeset
57 defxstruct xevent 'Lisp_Event'
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents:
diff changeset
58 defxstruct xextent 'extent'
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents:
diff changeset
59 defxstruct xextentaux 'extent_auxilliary'
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents:
diff changeset
60 defxstruct xfloat 'Lisp_Float'
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents:
diff changeset
61 defxstruct xfontinst 'Lisp_Font_Instance'
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents:
diff changeset
62 defxstruct xframe 'frame'
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents:
diff changeset
63 defxstruct xglyph 'Lisp_Glyph'
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents:
diff changeset
64 defxstruct xhashtable 'hashtable_struct'
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents:
diff changeset
65 defxstruct ximageinst 'Lisp_Image_Instance'
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents:
diff changeset
66 defxstruct xkeymap 'keymap'
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents:
diff changeset
67 defxstruct xmarker 'Lisp_Marker'
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents:
diff changeset
68 defxstruct xmenubardata 'menubar_data'
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents:
diff changeset
69 defxstruct xopaque 'Lisp_Opaque'
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents:
diff changeset
70 defxstruct xprocess 'Lisp_Process'
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents:
diff changeset
71 defxstruct xrangetab 'Lisp_Range_Table'
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents:
diff changeset
72 defxstruct xspec 'Lisp_Specifier'
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents:
diff changeset
73 defxstruct xsubwindow 'Lisp_Subwindow'
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents:
diff changeset
74 defxstruct xsymbol 'Lisp_Symbol'
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents:
diff changeset
75 defxstruct xtoolbarbutton 'toolbar_button'
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents:
diff changeset
76 defxstruct xtoolbardata 'toolbar_data'
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents:
diff changeset
77 defxstruct xtooltalkmess 'Lisp_Tooltalk_Message'
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents:
diff changeset
78 defxstruct xtooltalkpatt 'Lisp_Tooltalk_Pattern'
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents:
diff changeset
79 defxstruct xvector 'Lisp_Vector'
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents:
diff changeset
80 defxstruct xwindow 'window'
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents:
diff changeset
81 defxstruct xwindowconfig 'window_config'
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents:
diff changeset
82
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents:
diff changeset
83 function pproc {
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents:
diff changeset
84 print *(`process.c`struct Lisp_Process*)$1 ;
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents:
diff changeset
85 dp "(`process.c`struct Lisp_Process*)$1->name" ;
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents:
diff changeset
86 dp "(`process.c`struct Lisp_Process*)$1->command" ;
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents:
diff changeset
87 }
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents:
diff changeset
88
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents:
diff changeset
89 function xtype {
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents:
diff changeset
90 print (enum Lisp_Type) (($1 >> 28) & 7)
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents:
diff changeset
91 }
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents:
diff changeset
92
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents:
diff changeset
93 dbxenv suppress_startup_message 4.0
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents:
diff changeset
94
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents:
diff changeset
95 function dp_args {
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents:
diff changeset
96 dp "*(((Lisp_Object*)($1))+0)"
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents:
diff changeset
97 dp "*(((Lisp_Object*)($1))+1)"
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents:
diff changeset
98 }
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents:
diff changeset
99
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents:
diff changeset
100 function dp_core {
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents:
diff changeset
101 print ((struct x_frame *)(((struct frame*)(Fselected_frame(Qnil)&0x00FFFFFF))->frame_data))->widget->core
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents:
diff changeset
102 }
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents:
diff changeset
103
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents:
diff changeset
104 # Barf!
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents:
diff changeset
105 function print_shell {
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents:
diff changeset
106 print *(`frame-x.c`TopLevelShellRec*) (((struct `frame-x.c`x_frame*) (((struct `frame-x.c`frame*) (Fselected_frame(Qnil)&0x00FFFFFF))->frame_data))->widget)
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents:
diff changeset
107 }