summaryrefslogtreecommitdiff
path: root/src/.gdbinit
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2018-08-12 11:46:07 -0700
committerPaul Eggert <eggert@cs.ucla.edu>2018-08-12 11:46:26 -0700
commitf99ee7378f8529e748f894859f305d4cca2483e4 (patch)
tree59b92b038be1155ea150533d39fcee735d0fe3ca /src/.gdbinit
parentd966f8d29110f74d84187e013ca8c7e7411951aa (diff)
downloademacs-f99ee7378f8529e748f894859f305d4cca2483e4.tar.gz
emacs-f99ee7378f8529e748f894859f305d4cca2483e4.tar.bz2
emacs-f99ee7378f8529e748f894859f305d4cca2483e4.zip
Adjust .gdbinit to removal of misc objects
* src/.gdbinit (xtype, xpr): Adjust. (xmisctype, xmiscfree): Remove.
Diffstat (limited to 'src/.gdbinit')
-rw-r--r--src/.gdbinit46
1 files changed, 9 insertions, 37 deletions
diff --git a/src/.gdbinit b/src/.gdbinit
index 3cebdff5e7b..ae6f13a103b 100644
--- a/src/.gdbinit
+++ b/src/.gdbinit
@@ -649,17 +649,13 @@ define xtype
xgettype $
output $type
echo \n
- if $type == Lisp_Misc
- xmisctype
- else
- if $type == Lisp_Vectorlike
- xvectype
- end
+ if $type == Lisp_Vectorlike
+ xvectype
end
end
document xtype
Print the type of $, assuming it is an Emacs Lisp value.
-If the first type printed is Lisp_Vector or Lisp_Misc,
+If the first type printed is Lisp_Vectorlike,
a second line gives the more precise type.
end
@@ -711,15 +707,6 @@ Print the size of $
This command assumes that $ is a Lisp_Object.
end
-define xmisctype
- xgetptr $
- output (enum Lisp_Misc_Type) (((struct Lisp_Free *) $ptr)->type)
- echo \n
-end
-document xmisctype
-Assume that $ is some misc type and print its specific type.
-end
-
define xint
xgetint $
print $int
@@ -754,15 +741,6 @@ Print $ as a overlay pointer.
This command assumes that $ is an Emacs Lisp overlay value.
end
-define xmiscfree
- xgetptr $
- print (struct Lisp_Free *) $ptr
-end
-document xmiscfree
-Print $ as a misc free-cell pointer.
-This command assumes that $ is an Emacs Lisp Misc value.
-end
-
define xsymbol
set $sym = $
xgetsym $sym
@@ -1015,18 +993,6 @@ define xpr
if $type == Lisp_Float
xfloat
end
- if $type == Lisp_Misc
- set $misc = (enum Lisp_Misc_Type) (((struct Lisp_Free *) $ptr)->type)
- if $misc == Lisp_Misc_Free
- xmiscfree
- end
- if $misc == Lisp_Misc_Marker
- xmarker
- end
- if $misc == Lisp_Misc_Overlay
- xoverlay
- end
- end
if $type == Lisp_Vectorlike
set $size = ((struct Lisp_Vector *) $ptr)->header.size
if ($size & PSEUDOVECTOR_FLAG)
@@ -1034,6 +1000,12 @@ define xpr
if $vec == PVEC_NORMAL_VECTOR
xvector
end
+ if $vec == PVEC_MARKER
+ xmarker
+ end
+ if $vec == PVEC_OVERLAY
+ xoverlay
+ end
if $vec == PVEC_PROCESS
xprocess
end