From: Jason Rumney <jasonr@gnu.org>
To: 3021@emacsbugs.donarmstrong.com
Subject: bug#3021: 23.0.92; MEM FULL on Windows after some VC operations
Date: Mon, 06 Jul 2009 00:02:07 +0800 [thread overview]
Message-ID: <4A50CE7F.8030905@gnu.org> (raw)
In-Reply-To: <87skhbe7zi.fsf@marauder.physik.uni-ulm.de>
Reiner Steib wrote:
> - What do I need to install to debug a MinGW/MSYS build (Jason's
> build) on MS Vista?
>
gdb (from www.mingw.org)
> - To put a breakpoint, of course I need to install the Emacs sources.
> How do I have to combine the source (emacs-*.tar.gz) and the binary
> (windows/emacs-*-bin-i386.zip) correctly?
>
Unzipping into the same directory should work - any files contained in
both are identical, so no harm will come from replacing, or conversely
from keeping the old ones.
> - Jason suggested: "find the location where that message is emitted,
> and put a breakpoint there"...
>
> Can someone assist me with this? I'm not familiar with Emacs' C
> code. From rgrep on 'MEM.FULL\|memory_full' it's not obvious for me
> which would be the right function.
>
So put a breakpoint on all locations that rgrep shows that message occuring.
To run gdb, follow the directions in etc/DEBUG and nt/INSTALL, notably:
Start Emacs from the src directory as: gdb ../bin/emacs.exe
This helps gdb find the source files, and also it will automatically
include the extra functions in src/.gdbinit for inspecting lisp
structures and other Emacs specific things.
To set a break point in gdb, type one of the following:
break functionname
break filename:linenum
to run emacs until a breakpoint is hit, type
run
this is the point to pass arguments to Emacs (not when starting gdb, or
they will be interpreted as gdb arguments). So to run without init files
run -Q
You can also run gdb from inside Emacs, in which case setting
breakpoints is easier - go to the line where you want the breakpoint in
the source file's buffer, and press C-x SPC. But I have found gdb to be
unstable within Emacs under Windows, YMMV.
next prev parent reply other threads:[~2009-07-05 16:02 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-04-16 19:29 bug#3021: 23.0.92; MEM FULL on Windows after some VC operations Reiner Steib
2009-04-16 21:35 ` Eli Zaretskii
2009-04-20 20:07 ` Reiner Steib
2009-04-21 4:23 ` Jason Rumney
2009-07-05 10:31 ` Reiner Steib
2009-07-05 16:02 ` Jason Rumney [this message]
2009-07-11 11:57 ` Reiner Steib
2009-07-11 11:52 ` Reiner Steib
2009-07-15 18:49 ` Reiner Steib
2009-07-15 18:55 ` Processed (with 2 errors): " Emacs bug Tracking System
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=4A50CE7F.8030905@gnu.org \
--to=jasonr@gnu.org \
--cc=3021@emacsbugs.donarmstrong.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.