comparison src/.gdbinit @ 89483:2f877ed80fa6

*** empty log message ***
author Kenichi Handa <handa@m17n.org>
date Mon, 08 Sep 2003 12:53:41 +0000
parents 375f2633d815 e5d55ed9b335
children 68c22ea6027c
comparison
equal deleted inserted replaced
88123:375f2633d815 89483:2f877ed80fa6
1 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 2000, 2001 1 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 2000, 2001, 2003
2 # Free Software Foundation, Inc. 2 # Free Software Foundation, Inc.
3 # 3 #
4 # This file is part of GNU Emacs. 4 # This file is part of GNU Emacs.
5 # 5 #
6 # GNU Emacs is free software; you can redistribute it and/or modify 6 # GNU Emacs is free software; you can redistribute it and/or modify
235 Print the address of the subr which the Lisp_Object $ points to. 235 Print the address of the subr which the Lisp_Object $ points to.
236 end 236 end
237 237
238 define xchartable 238 define xchartable
239 print (struct Lisp_Char_Table *) (($ & $valmask) | gdb_data_seg_bits) 239 print (struct Lisp_Char_Table *) (($ & $valmask) | gdb_data_seg_bits)
240 printf " %d extra slots", ($->size & 0x1ff) - 68
241 echo \n
240 printf "Purpose: " 242 printf "Purpose: "
241 output (char*)&((struct Lisp_Symbol *) ((((int) $->purpose) & $valmask) | gdb_data_seg_bits))->name->data 243 xprintsym $->purpose
242 printf " %d extra slots", ($->size & 0x1ff) - 388
243 echo \n
244 end 244 end
245 document xchartable 245 document xchartable
246 Print the address of the char-table $, and its purpose. 246 Print the address of the char-table $, and its purpose.
247 This command assumes that $ is an Emacs Lisp char-table value. 247 This command assumes that $ is an Emacs Lisp char-table value.
248 end 248 end
328 output ($sym_name->data[0])@($sym_name->size_byte < 0 ? $sym_name->size : $sym_name->size_byte) 328 output ($sym_name->data[0])@($sym_name->size_byte < 0 ? $sym_name->size : $sym_name->size_byte)
329 echo \n 329 echo \n
330 end 330 end
331 document xprintsym 331 document xprintsym
332 Print argument as a symbol. 332 Print argument as a symbol.
333 end
334
335 define xcoding
336 set $tmp = (struct Lisp_Hash_Table *) ((Vcoding_system_hash_table & $valmask) | gdb_data_seg_bits)
337 set $tmp = (struct Lisp_Vector *) (($tmp->key_and_value & $valmask) | gdb_data_seg_bits)
338 set $name = $tmp->contents[$arg0 * 2]
339 print $name
340 pr
341 print $tmp->contents[$arg0 * 2 + 1]
342 pr
343 end
344 document xcoding
345 Print the name and attributes of coding system that has ID (argument).
346 end
347
348 define xcharset
349 set $tmp = (struct Lisp_Hash_Table *) ((Vcharset_hash_table & $valmask) | gdb_data_seg_bits)
350 set $tmp = (struct Lisp_Vector *) (($tmp->key_and_value & $valmask) | gdb_data_seg_bits)
351 p $tmp->contents[$arg0->hash_index * 2]
352 pr
353 end
354 document xcharset
355 Print the name of charset that has ID (argument).
333 end 356 end
334 357
335 define xbacktrace 358 define xbacktrace
336 set $bt = backtrace_list 359 set $bt = backtrace_list
337 while $bt 360 while $bt