all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* gdb-mode hangs in OS X
@ 2005-09-19  2:48 Michael Lee
  0 siblings, 0 replies; 11+ messages in thread
From: Michael Lee @ 2005-09-19  2:48 UTC (permalink / raw)


I'm having an issue under OS X and emacs version 22.0.50.1 where 
entering any command at all in gdb-mode after getting into it with M-x 
gdb causes the buffer to "hang" (it just sits there without producing 
any output or accepting input) --- I can get back to a gdb prompt with 
C-c C-c, but can't even type quit to exit gdb.

The symptoms are similar to those exhibited by shell mode without (setq 
process-connection-type t).

Any ideas?

Thanks,

Michael

^ permalink raw reply	[flat|nested] 11+ messages in thread
* gdb-mode hangs in OS X
@ 2005-09-20  4:53 Nick Roberts
  0 siblings, 0 replies; 11+ messages in thread
From: Nick Roberts @ 2005-09-20  4:53 UTC (permalink / raw)
  Cc: help-gnu-emacs


> I'm having an issue under OS X and emacs version 22.0.50.1 where entering any
> command at all in gdb-mode after getting into it with M-x gdb causes the
> buffer to "hang" (it just sits there without producing any output or accepting
> input) --- I can get back to a gdb prompt with C-c C-c, but can't even type
> quit to exit gdb.

> The symptoms are similar to those exhibited by shell mode without (setq
> process-connection-type t).

What version of OS X and GDB are you using?

Set gdb-enable-debug-log to t, do M-x gdb, and please post the resulting value
of gdb-debug-log to emacs-pretest-bug@gnu.org (this is the right mailing list
for Emacs in CVS, currently 22.0.50).

Nick

^ permalink raw reply	[flat|nested] 11+ messages in thread
[parent not found: <mailman.7627.1127192335.20277.help-gnu-emacs@gnu.org>]
* Re: gdb-mode hangs in OS X
@ 2005-09-22 10:32 Nick Roberts
  0 siblings, 0 replies; 11+ messages in thread
From: Nick Roberts @ 2005-09-22 10:32 UTC (permalink / raw)
  Cc: help-gnu-emacs



> The variable wasn't recognized when using M-x set-variable, and so I
> set it manually with a setq.  

gdb-enable-debug-log should be autoloaded so you should see it even if you
haven't loaded the file. Are you really using 22.0.50?  Is it Carbon Emacs
from the CVS repository at savannah or a derived version like Aqua Emacs?

After you typ M-x gdb does Emacs prompt with:

Run gdb (like this): gdb --annotate=3 `yourprog'?

> I couldn't find a gdb-debug-log after
> doing M-x gdb subsequently, though --- am I doing something wrong?
> Sorry for not following instructions and posting to emacs-pretest-bug
> just yet; I wanted to make sure I got the output right first.

Something doesn't add up but there's no harm in posting to emacs-pretest-bug
even if you are doing something wrong.  Its a forum for such matters not
an IQ contest.

> I'm running OS X 10.4.2, and gdb 6.1-20040303 (Apple version gdb-413).

I've had reports for 10.2 and 10.3 where, I think, M-x gdb works now.  Apple
have their own version of GDB so they might have removed the underlying
annotations in 10.4 (Tiger?) that are needed for GDB to work in Emacs. You
could look at the output of "gdb --annotate=3 yourprog" from the command line
ans see if it marks up the output with frames-invalid, pre-prompt, prompt etc.

Without access to OS X 10.4 (or even a Mac!), I can't really help you.
If you want to dig deeper please report any progress you make to
emacs-devel.

Nick

^ permalink raw reply	[flat|nested] 11+ messages in thread
* Re: gdb-mode hangs in OS X
@ 2005-09-22 14:33 Nick Roberts
  0 siblings, 0 replies; 11+ messages in thread
From: Nick Roberts @ 2005-09-22 14:33 UTC (permalink / raw)
  Cc: help-gnu-emacs



> The variable wasn't recognized when using M-x set-variable, and so I
> set it manually with a setq.  

gdb-enable-debug-log should be autoloaded so you should see it even if you
haven't loaded the file. Are you really using 22.0.50?  Is it Carbon Emacs
from the CVS repository at savannah or a derived version like Aqua Emacs?

After you typ M-x gdb does Emacs prompt with:

Run gdb (like this): gdb --annotate=3 `yourprog'?

> I couldn't find a gdb-debug-log after
> doing M-x gdb subsequently, though --- am I doing something wrong?
> Sorry for not following instructions and posting to emacs-pretest-bug
> just yet; I wanted to make sure I got the output right first.

Something doesn't add up but there's no harm in posting to emacs-pretest-bug
even if you are doing something wrong.  Its a forum for such matters not
an IQ contest.

> I'm running OS X 10.4.2, and gdb 6.1-20040303 (Apple version gdb-413).

I've had reports for 10.2 and 10.3 where, I think, M-x gdb works now.  Apple
have their own version of GDB so they might have removed the underlying
annotations in 10.4 (Tiger?) that are needed for GDB to work in Emacs. You
could look at the output of "gdb --annotate=3 yourprog" from the command line
ans see if it marks up the output with frames-invalid, pre-prompt, prompt etc.

Without access to OS X 10.4 (or even a Mac!), I can't really help you.
If you want to dig deeper please report any progress you make to
emacs-devel.

Nick

^ permalink raw reply	[flat|nested] 11+ messages in thread
[parent not found: <mailman.8053.1127399790.20277.help-gnu-emacs@gnu.org>]
* Re: gdb-mode hangs in OS X
@ 2005-09-22 22:03 Nick Roberts
  0 siblings, 0 replies; 11+ messages in thread
From: Nick Roberts @ 2005-09-22 22:03 UTC (permalink / raw)
  Cc: help-gnu-emacs


> Then, on a hunch, I turned off viper mode (I forgot to mention I was
> using it), and everything started working just fine!  Is this a known
> issue with viper?  (Note: using C-z to enter emacs mode temporarily
> didn't fix the problem, nor did M-x viper-go-away --- I had to actually
> disable it and restart emacs)

I wasn't aware of it but I've never used viper-mode.  At first sight, I would
think it shouldn't interfere.  If you had used M-x report-emacs-bug it might
have shown that you had turned viper-mode on.  I suggest again that you send
your report to emacs-pretest-bug@gnu.org where someone might, possibly Michael
Kifer, author of Viper, might recognise the problem.

Nick

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2005-09-24 16:32 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-09-19  2:48 gdb-mode hangs in OS X Michael Lee
  -- strict thread matches above, loose matches on Subject: below --
2005-09-20  4:53 Nick Roberts
     [not found] <mailman.7627.1127192335.20277.help-gnu-emacs@gnu.org>
2005-09-20 23:37 ` Michael Lee
2005-09-22 10:32 Nick Roberts
2005-09-22 14:33 Nick Roberts
     [not found] <mailman.8053.1127399790.20277.help-gnu-emacs@gnu.org>
2005-09-22 21:14 ` Michael Lee
2005-09-22 23:04   ` Edward O'Connor
2005-09-23 21:48     ` Edward O'Connor
     [not found]   ` <mailman.8149.1127430626.20277.help-gnu-emacs@gnu.org>
2005-09-23  6:02     ` Michael Lee
2005-09-24 16:32       ` Stefan Monnier
2005-09-22 22:03 Nick Roberts

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.