Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
3176a27e
Commit
3176a27e
authored
Oct 24, 2000
by
Gerd Moellmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(xbacktrace): Handle case that $bt->function isn't
a symbol.
parent
2bd8a1db
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
2 deletions
+14
-2
src/.gdbinit
src/.gdbinit
+14
-2
No files found.
src/.gdbinit
View file @
3176a27e
...
...
@@ -315,14 +315,26 @@ end
define xbacktrace
set $bt = backtrace_list
while $bt
xprintsym *$bt->function
set $type = (enum Lisp_Type) ((*$bt->function >> gdb_valbits) & 0x7)
if $type == Lisp_Symbol
xprintsym *$bt->function
else
printf "0x%x ", *$bt->function
if $type == Lisp_Vectorlike
set $size = ((struct Lisp_Vector *) ((*$bt->function & $valmask) | gdb_data_seg_bits))->size
output (enum pvec_type) (($size & PVEC_FLAG) ? $size & PVEC_TYPE_MASK : 0)
else
printf "Lisp type %d", $type
end
echo \n
end
set $bt = $bt->next
end
end
document xbacktrace
Print a backtrace of Lisp function calls from backtrace_list.
Set a breakpoint at Fsignal and call this to see from where
an error was signal
l
ed.
an error was signaled.
end
define xreload
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment