]> git.eshelyaron.com Git - emacs.git/commitdiff
* eval.c (backtrace_function, backtrace_args): Now EXTERNALLY_VISIBLE.
authorPaul Eggert <eggert@cs.ucla.edu>
Thu, 11 Jul 2013 07:17:23 +0000 (00:17 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Thu, 11 Jul 2013 07:17:23 +0000 (00:17 -0700)
This is for .gdbinit xbacktrace.

src/ChangeLog
src/eval.c

index cd109c17f181314c139fec332f3466260ac1ef8c..7b54b6195a972cae12488ecc54baa05c0c1926eb 100644 (file)
@@ -1,5 +1,8 @@
 2013-07-11  Paul Eggert  <eggert@cs.ucla.edu>
 
+       * eval.c (backtrace_function, backtrace_args): Now EXTERNALLY_VISIBLE.
+       This is for .gdbinit xbacktrace.
+
        * sysdep.c, term.c, termcap.c, terminal.c: Integer-related minor fixes.
        * sysdep.c (emacs_get_tty): Return void, since nobody uses the value.
        (emacs_set_tty): Now static.
index d3545add21dc706966f7874d316a3374fd44248d..31a774b9d27f1b37fe59e089184ecc1450eb83a1 100644 (file)
@@ -114,6 +114,13 @@ Lisp_Object Vsignaling_function;
    frame is half-initialized.  */
 Lisp_Object inhibit_lisp_code;
 
+/* These would ordinarily be static, but they need to be visible to GDB.  */
+bool backtrace_p (union specbinding *) EXTERNALLY_VISIBLE;
+Lisp_Object *backtrace_args (union specbinding *) EXTERNALLY_VISIBLE;
+Lisp_Object backtrace_function (union specbinding *) EXTERNALLY_VISIBLE;
+union specbinding *backtrace_next (union specbinding *) EXTERNALLY_VISIBLE;
+union specbinding *backtrace_top (void) EXTERNALLY_VISIBLE;
+
 static Lisp_Object funcall_lambda (Lisp_Object, ptrdiff_t, Lisp_Object *);
 static Lisp_Object apply_lambda (Lisp_Object fun, Lisp_Object args);
 
@@ -152,7 +159,7 @@ specpdl_func (union specbinding *pdl)
   return pdl->unwind.func;
 }
 
-static Lisp_Object
+Lisp_Object
 backtrace_function (union specbinding *pdl)
 {
   eassert (pdl->kind == SPECPDL_BACKTRACE);
@@ -166,7 +173,7 @@ backtrace_nargs (union specbinding *pdl)
   return pdl->bt.nargs;
 }
 
-static Lisp_Object *
+Lisp_Object *
 backtrace_args (union specbinding *pdl)
 {
   eassert (pdl->kind == SPECPDL_BACKTRACE);
@@ -205,10 +212,6 @@ set_backtrace_debug_on_exit (union specbinding *pdl, bool doe)
 
 /* Helper functions to scan the backtrace.  */
 
-bool backtrace_p (union specbinding *) EXTERNALLY_VISIBLE;
-union specbinding *backtrace_top (void) EXTERNALLY_VISIBLE;
-union specbinding *backtrace_next (union specbinding *pdl) EXTERNALLY_VISIBLE;
-
 bool
 backtrace_p (union specbinding *pdl)
 { return pdl >= specpdl; }