From: Eli Zaretskii <eliz@gnu.org>
To: Kaushal Modi <kaushal.modi@gmail.com>
Cc: 23424@debbugs.gnu.org
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 [thread overview]
Message-ID: <83futzkwfb.fsf@gnu.org> (raw)
In-Reply-To: <CAFyQvY3WfB6=ejZ3GVxa+6tpfs0HE53gZtAK46Ot2t8yw2RP-g@mail.gmail.com> (message from Kaushal Modi on Mon, 02 May 2016 22:05:50 +0000)
> From: Kaushal Modi <kaushal.modi@gmail.com>
> Date: Mon, 02 May 2016 22:05:50 +0000
> Cc: 23424@debbugs.gnu.org
>
> 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:
#ifdef CHECK_LISP_OBJECT_TYPE
typedef struct { EMACS_INT i; } Lisp_Object;
[...]
#else /* CHECK_LISP_OBJECT_TYPE */
[...]
typedef EMACS_INT Lisp_Object;
#endif
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")
prev parent reply other threads:[~2016-05-03 15:12 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-05-02 15:19 bug#23424: 25.0.93; error in process sentinel with Melpa added to package-archives Kaushal Modi
2016-05-02 15:49 ` Eli Zaretskii
2016-05-02 15:54 ` Robert Pluim
2016-05-02 16:23 ` Eli Zaretskii
2016-05-02 16:22 ` Kaushal Modi
2016-05-02 16:41 ` Kaushal Modi
2016-05-02 16:54 ` Kaushal Modi
2016-05-02 16:58 ` Eli Zaretskii
2016-05-02 17:22 ` Kaushal Modi
2016-05-02 20:19 ` Eli Zaretskii
2016-05-02 20:51 ` Kaushal Modi
2016-05-02 22:05 ` Kaushal Modi
2016-05-02 23:18 ` Kaushal Modi
2016-05-03 14:59 ` Eli Zaretskii
2016-05-03 15:12 ` Eli Zaretskii [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=83futzkwfb.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=23424@debbugs.gnu.org \
--cc=kaushal.modi@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.