diff options
| author | Stefan Monnier | 2002-06-22 21:09:55 +0000 |
|---|---|---|
| committer | Stefan Monnier | 2002-06-22 21:09:55 +0000 |
| commit | f352c8262335581ee9941515ba05d0aac54a1f8c (patch) | |
| tree | 221c1ad8e10f67fdee4a843a594ff89206a6c731 /src | |
| parent | 6cfbaf462f82911f6c9cdd19d458483b6211da9d (diff) | |
| download | emacs-f352c8262335581ee9941515ba05d0aac54a1f8c.tar.gz emacs-f352c8262335581ee9941515ba05d0aac54a1f8c.zip | |
(xprintsym): Use the new `xname' field.
(xsymbol): Use it.
Diffstat (limited to 'src')
| -rw-r--r-- | src/.gdbinit | 7 | ||||
| -rw-r--r-- | src/ChangeLog | 9 |
2 files changed, 10 insertions, 6 deletions
diff --git a/src/.gdbinit b/src/.gdbinit index 5f8768a8c92..705a6e836a7 100644 --- a/src/.gdbinit +++ b/src/.gdbinit | |||
| @@ -159,9 +159,7 @@ end | |||
| 159 | 159 | ||
| 160 | define xsymbol | 160 | define xsymbol |
| 161 | print (struct Lisp_Symbol *) ((((int) $) & $valmask) | gdb_data_seg_bits) | 161 | print (struct Lisp_Symbol *) ((((int) $) & $valmask) | gdb_data_seg_bits) |
| 162 | set $xsymbol_name = ((struct Lisp_String *)(($->xname & $valmask) | gdb_data_seg_bits)) | 162 | xprintsym $ |
| 163 | output ($xsymbol_name->data[0])@($xsymbol_name->size_byte < 0 ? $xsymbol_name->size : $xsymbol_name->size_byte) | ||
| 164 | echo \n | ||
| 165 | end | 163 | end |
| 166 | document xsymbol | 164 | document xsymbol |
| 167 | Print the name and address of the symbol $. | 165 | Print the name and address of the symbol $. |
| @@ -326,7 +324,8 @@ end | |||
| 326 | 324 | ||
| 327 | define xprintsym | 325 | define xprintsym |
| 328 | set $sym = (struct Lisp_Symbol *) ((((int) $arg0) & $valmask) | gdb_data_seg_bits) | 326 | set $sym = (struct Lisp_Symbol *) ((((int) $arg0) & $valmask) | gdb_data_seg_bits) |
| 329 | output (char*)$sym->name->data | 327 | set $sym_name = ((struct Lisp_String *)(($sym->xname & $valmask) | gdb_data_seg_bits)) |
| 328 | output ($sym_name->data[0])@($sym_name->size_byte < 0 ? $sym_name->size : $sym_name->size_byte) | ||
| 330 | echo \n | 329 | echo \n |
| 331 | end | 330 | end |
| 332 | document xprintsym | 331 | document xprintsym |
diff --git a/src/ChangeLog b/src/ChangeLog index 7651e9701f0..fb7c42a4d32 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2002-06-22 Stefan Monnier <monnier@cs.yale.edu> | ||
| 2 | |||
| 3 | * .gdbinit (xprintsym): Use the new `xname' field. | ||
| 4 | (xsymbol): Use it. | ||
| 5 | |||
| 1 | 2002-06-22 Jason Rumney <jasonr@gnu.org> | 6 | 2002-06-22 Jason Rumney <jasonr@gnu.org> |
| 2 | 7 | ||
| 3 | * w32fns.c (file_dialog_callback): New function. | 8 | * w32fns.c (file_dialog_callback): New function. |
| @@ -16,7 +21,7 @@ | |||
| 16 | (do_window_update): Call XClearWindow before calling expose_frame. | 21 | (do_window_update): Call XClearWindow before calling expose_frame. |
| 17 | (make_mac_frame): Don't set FRAME_BACKGROUND_PIXEL and | 22 | (make_mac_frame): Don't set FRAME_BACKGROUND_PIXEL and |
| 18 | FRAME_FOREGROUND_PIXEL of frame. | 23 | FRAME_FOREGROUND_PIXEL of frame. |
| 19 | 24 | ||
| 20 | * macterm.c (XTread_socket): If Vmac_command_key_is_meta is nil, | 25 | * macterm.c (XTread_socket): If Vmac_command_key_is_meta is nil, |
| 21 | test Mac command key as <ALT> key. | 26 | test Mac command key as <ALT> key. |
| 22 | 27 | ||
| @@ -30,7 +35,7 @@ | |||
| 30 | Remove function_key_possible and key_translation_possible, replaced | 35 | Remove function_key_possible and key_translation_possible, replaced |
| 31 | by checking `keytran_start < t'. | 36 | by checking `keytran_start < t'. |
| 32 | 37 | ||
| 33 | * .gdbinit (xsymbol): Use the name `xname' field. | 38 | * .gdbinit (xsymbol): Use the new `xname' field. |
| 34 | 39 | ||
| 35 | 2002-06-17 Andrew Choi <akochoi@shaw.ca> | 40 | 2002-06-17 Andrew Choi <akochoi@shaw.ca> |
| 36 | 41 | ||