[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#23424: 25.0.93; error in process sentinel with Melpa added to packag

From: Eli Zaretskii
Subject: bug#23424: 25.0.93; error in process sentinel with Melpa added to package-archives
Date: Tue, 03 May 2016 18:12:24 +0300

> From: Kaushal Modi <address@hidden>
> Date: Mon, 02 May 2016 22:05:50 +0000
> Cc: address@hidden
> I have a followup gdb 101 question:
> I thought I would improve the debug capability by adding the flags 
> "--enable-checking='yes,glyphs'
> --enable-check-lisp-object-type" to ./configure as per etc/DEBUG. I did not 
> have those 2 flags earlier. But after
> rebuilding using the suggested options, the conditional breakpoints do not 
> work. I also noticed that earlier "p
> error_symbol" gave something like,
> $1 = 41328
> Now it gives something like,
> $1 = {
> i = 41328
> }

The --enable-check-lisp-object-type changes the representation of Lisp
objects, so that they are no longer represented by C integers.
Instead, they are represented by a structure with a single integer
member.  From src/lisp.h:


  typedef struct { EMACS_INT i; } Lisp_Object;

  typedef EMACS_INT Lisp_Object;


So instead of

  (gdb) condition 3 error_symbol != 41328

you should say something like

  (gdb) condition 3 error_symbol.i != 41328

> Also, when earlier I saw:
> Breakpoint 3, Fsignal (error_symbol=19056, data=16197139) at eval.c:1471
> , now I see instead:
> Breakpoint 3, Fsignal (error_symbol=..., data=...) at eval.c:1471
> (those numbers for error_symbol and data are literally replaced with "...")

By default, GDB doesn't display non-scalar arguments to functions when
it shows stack frames.  It displays ellipses for any non-scalar
argument.  You can change that with

  (gdb) set print frame-arguments all

Or just type

  (gdb) p error_symbol

etc. for any argument whose value you want to see; the ellipsis only
affects the values of arguments in frame display.

As yet another alternative, you can ask GDB to do that automatically
when it stops at a breakpoint:

  (gdb) commands 3
   > p error_symbol
   > xsymbol
   > end

And that concludes your lesson #2.  Reading the relevant sections of
the GDB manual is optional; suggested reading:

  (info "(gdb) Print Settings")
  (info "(gdb) Break Commands")

reply via email to

[Prev in Thread] Current Thread [Next in Thread]