From: Shuguang Sun <shuguang79@qq.com>
To: Eli Zaretskii <eliz@gnu.org>
Cc: help-gnu-emacs@gnu.org
Subject: Re: How to debug/gdb emacs/runemacs in windows?
Date: Fri, 24 May 2019 09:26:35 +0800 [thread overview]
Message-ID: <31460.9890965343$1558661721@news.gmane.org> (raw)
In-Reply-To: <834l5l6yxv.fsf@gnu.org> (Eli Zaretskii's message of "Thu, 23 May 2019 17:13:48 +0300")
Eli Zaretskii <eliz@gnu.org> writes:
>> From: Shuguang Sun <shuguang79@qq.com>
>> Date: Thu, 23 May 2019 16:15:56 +0800
>>
>> (gdb) run --dump-file "c:/Users/username/HOME/.emacs.d/var/dumps/semacs.pdmp" --force-dump
>> Starting program: C:\Users\username\emacs\bin\emacs.exe --dump-file
>> "c:/Users/username/HOME/.emacs.d/var/dumps/semacs.pdmp" --force-dump
>
> What is the --force-dump option? I don't think we have it in Emacs.
>
The --force-dump option is speficed in my dot emacs. It helps to skip
requiring some libraries or evaluating some piece of code in case of
dumpted emacs which has been evaluted during dumping, but not in normal
emacs.
--8<---------------cut here---------------start------------->8---
(defun --my-parse-command-line (args)
"Handle specific command line arguments."
(let ((i 0) new-args)
(while (< i (length args))
(let ((arg (nth i args))
(next-arg-digit
(when (< (1+ i) (length args))
(string-to-number (nth (1+ i) args)))))
(when (or (null next-arg-digit) (= 0 next-arg-digit))
(setq next-arg-digit nil))
(pcase arg
("--force-dump"
(setq --is-not-dumped nil))
(_ (push arg new-args))))
(setq i (1+ i)))
(nreverse new-args)))
(setq command-line-args (--my-parse-command-line command-line-args))
--8<---------------cut here---------------end--------------->8---
>>
>> How could I find more information?
>
>
> One thing to try is to load the src/.gdbinit file from the Emacs
> distribution before you issue the "run" command, it might help you by
> stopping Emacs earlier, before it does something that destroys the
> stack. If that doesn't work, put a breakpoint inside some function
> that recentf-edit-list calls, like Fformat perhaps, invoke
> recentf-edit-list, then step through the code until you see where it
> crashes.
>
> (The above is based on incomplete information, because you didn't
> explain how recentf-edit-list is called, and what exactly is in your
> private pdumper file.)
>
>
Thanks for your patient and helpful reply. I'll try it later.
--
Best Regards
Shuguang Sun
next prev parent reply other threads:[~2019-05-24 1:26 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-05-23 8:15 How to debug/gdb emacs/runemacs in windows? Shuguang Sun
2019-05-23 14:13 ` Eli Zaretskii
2019-05-24 1:26 ` Shuguang Sun [this message]
2019-05-24 4:43 ` Shuguang Sun
2019-05-27 9:37 ` Shuguang Sun
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='31460.9890965343$1558661721@news.gmane.org' \
--to=shuguang79@qq.com \
--cc=eliz@gnu.org \
--cc=help-gnu-emacs@gnu.org \
/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.