From: Dmitry Gutov <dgutov@yandex.ru>
To: martin rudalics <rudalics@gmx.at>, 22012@debbugs.gnu.org
Subject: bug#22012: 25.1.50; gdb broken by (json-string-format "doesn't start with `\"'!")
Date: Thu, 26 Nov 2015 16:26:31 +0200 [thread overview]
Message-ID: <56571697.50702@yandex.ru> (raw)
In-Reply-To: <565709C9.8080306@gmx.at>
On 11/26/2015 03:31 PM, martin rudalics wrote:
> How would I know what what ‘json-read-string’ tries to read at that
> moment? Am I supposed to instrument it?
Why not? Alternatively...
> Maybe
>
> (unless (char-equal (json-peek) ?\")
> (signal 'json-string-format (list "doesn't start with `\"'!")))
...you can add a (debug) call before (signal ...). And when the debugger
hits, press `e' and evaluate (buffer-string) and (point).
Seeing the value of buffer-string might be sufficient if json-read is
being called in a wrong buffer.
> should report the current buffer and its value of point.
I wouldn't mind if it did. Though that would need to be done in all such
places.
But for the purposes of debugging, you can modify just that function's
definition to report what's required.
> Anyway, if I understand the backtrace correctly, the current buffer
> should have been "*breakpoints of emacs.exe*".
I'm not sure what that implies. Does it have JSON content?
next prev parent reply other threads:[~2015-11-26 14:26 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-11-25 17:49 bug#22012: 25.1.50; gdb broken by (json-string-format "doesn't start with `\"'!") martin rudalics
2015-11-26 2:34 ` Dmitry Gutov
2015-11-26 8:24 ` martin rudalics
2015-11-26 10:51 ` Dmitry Gutov
2015-11-26 13:31 ` martin rudalics
2015-11-26 14:26 ` Dmitry Gutov [this message]
2015-11-26 16:58 ` martin rudalics
2015-11-26 17:36 ` Dmitry Gutov
2015-11-26 17:58 ` Eli Zaretskii
2015-11-26 16:00 ` Eli Zaretskii
2015-11-28 14:13 ` martin rudalics
2015-11-28 14:34 ` Eli Zaretskii
2015-11-28 15:48 ` martin rudalics
2015-11-28 16:32 ` Eli Zaretskii
2015-11-30 13:40 ` martin rudalics
2015-11-30 15:56 ` Eli Zaretskii
2015-11-26 15:49 ` Eli Zaretskii
2015-11-26 16:58 ` martin rudalics
2015-11-26 17:14 ` Eli Zaretskii
2018-02-13 10:22 ` martin rudalics
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=56571697.50702@yandex.ru \
--to=dgutov@yandex.ru \
--cc=22012@debbugs.gnu.org \
--cc=rudalics@gmx.at \
/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.