Re: emacs M-x gdb and mach --debug

2016-04-08 Thread Kyle Machulis
In the interest of expanding this beyond just the -i=mi stuff, I've created a metabug for making mach and emacs play nicer together: https://bugzilla.mozilla.org/show_bug.cgi?id=1263253 If you've got any wants for things emacs could do but doesn't that would make life developing gecko/ff/sm/etc e

Re: emacs M-x gdb and mach --debug

2016-04-08 Thread Andreas Farre
Even better! On Fri, Apr 8, 2016 at 2:49 PM, Steve Fink wrote: > On 04/08/2016 09:13 AM, Andreas Farre wrote: > >> Looking for someone emacs savvy to help me with running mach --debug as a >> command for M-x gdb. Currently there is an issue with mach logging a bit >> to >> much which screws up t

Re: emacs M-x gdb and mach --debug

2016-04-08 Thread Steve Fink
On 04/08/2016 09:13 AM, Andreas Farre wrote: Looking for someone emacs savvy to help me with running mach --debug as a command for M-x gdb. Currently there is an issue with mach logging a bit to much which screws up the GDB/MI communication with emacs. Has anyone already some solution for this? O

Re: emacs M-x gdb and mach --debug

2016-04-08 Thread Andreas Farre
I've been experimenting with a patch in mach that adds a quiet flag that sets the verbosity level to WARNING. After that I can start with M-x gdb, and then substituting the gdb command with: $HOME/src/gecko/mach --log-file /dev/null run -q --debug --debugparams="-i=mi -fullname" and it works. On

Re: emacs M-x gdb and mach --debug

2016-04-08 Thread Jim Blandy
I don't know of a good way to make mach stop chatting in the middle of GDB's serious conversation with Emacs. It sure would be nice to fix this. Note that Emacs sets the "EMACS" environment variable to "t" in the GDB subprocess. Perhaps mach could use this as a way to automatically behave correctl

Re: emacs M-x gdb and mach --debug

2016-04-08 Thread Kyle Machulis
https://bugzilla.mozilla.org/show_bug.cgi?id=1254313 I've had this filed for a while now, just need to do something about it. :/ On Fri, Apr 8, 2016 at 9:13 AM, Andreas Farre wrote: > Looking for someone emacs savvy to help me with running mach --debug as a > command for M-x gdb. Currently ther

emacs M-x gdb and mach --debug

2016-04-08 Thread Andreas Farre
Looking for someone emacs savvy to help me with running mach --debug as a command for M-x gdb. Currently there is an issue with mach logging a bit to much which screws up the GDB/MI communication with emacs. Has anyone already some solution for this? Otherwise I got it working by adding a quiet fla