GNU bug report logs -
#22012
25.1.50; gdb broken by (json-string-format "doesn't start with `\"'!")
Previous Next
Reported by: martin rudalics <rudalics <at> gmx.at>
Date: Wed, 25 Nov 2015 17:50:02 UTC
Severity: normal
Found in version 25.1.50
Done: martin rudalics <rudalics <at> gmx.at>
Bug is archived. No further changes may be made.
Full log
Message #20 received at 22012 <at> debbugs.gnu.org (full text, mbox):
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?
This bug report was last modified 7 years and 105 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.