all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Steve Revilak <steve@srevilak.net>
To: Nick Roberts <nickrob@snap.net.nz>
Cc: emacs-pretest-bug@gnu.org
Subject: bug#5404: 23.1.91; Nextstep port: M-x gdb hangs in tab completion of symbols
Date: Mon, 18 Jan 2010 19:26:05 -0500	[thread overview]
Message-ID: <20100119002604.GC744@srevilak.net> (raw)
In-Reply-To: <19284.58646.218954.708076@totara.tehura.co.nz>


[-- Attachment #1.1: Type: text/plain, Size: 1077 bytes --]

>> (gdb) complete b add_
>> b add_fdes
>> b add_one
>> b add_profil
>> (gdb)

>You could do M-x gdb-enable-debug, then 
>
>(gdb) b b add_<TAB>
>
>in the Gud buffer.
>
>Then inspect gdb-debug-log (C-h v) to see if "complete b add_" gets sent to Gdb.

Neat trick. :)


>I suspect it does and this relates to Apple Gdb and the previous problem with ^M
>characters.

Here's what I tried.

   1. emacs -Q -nw foo.c
   2. M-x gdb RET foo RET
   3. M-x gdb-enable-debug
   4. "b add_<TAB>"  [hangs]
   5. C-g twice (stops hanging)
   6. C-h v gdb-debug-log RET

I'll attach the contents of the *Help* buffer as gdb-debug-log.txt.

The last cons in gdb-debug-log.txt is (send-item ... "complete b
add_\n").  The second and third cons's above (send-item) seem to
contain the completion output.


>You could also download and compile FSF Gdb on Mac (I can't remember if you
>already have) and try that.

I haven't had a chance to build an fsf gdb yet, but I'm downloading
gdb-7.0.1 now.  I'll try gdb 7.0.1 and let you know how it goes.

Steve

[-- Attachment #1.2: gdb-debug-log.txt --]
[-- Type: text/plain, Size: 1017 bytes --]

gdb-debug-log is a variable defined in `gdb-ui.el'.
Its value is shown below.

Documentation:
List of commands sent to and replies received from GDB.
Most recent commands are listed first.  This list stores only the last
`gdb-debug-log-max' values.  This variable is used to debug GDB-UI.

Value: 
((recv . "\r\n\x1a\x1apre-prompt\r\n(gdb) \r\n\x1a\x1aprompt\r\n")
 (recv . "No breakpoints or watchpoints.\r\n")
 (recv . "\r\n\x1a\x1apost-prompt\r\n")
 (send-item "server info breakpoints\n" gdb-info-breakpoints-handler)
 (recv . "\r\n\x1a\x1apre-prompt\r\n(gdb) \r\n\x1a\x1aprompt\r\n")
 (recv . "&\"\\n\\032\\032error-begin\\n\"\r\n~\"\\n\\032\\032error\\n\"\r\n^error,msg=\"No registers.\"\r\n(gdb) \r\n")
 (recv . "\r\n\x1a\x1apost-prompt\r\n")
 (send-item "server interpreter mi -stack-info-frame\n" gdb-frame-handler-1)
 (recv . "\r\n\x1a\x1apre-prompt\r\n(gdb) \r\n\x1a\x1aprompt\r\n")
 (recv . "b add_one\r\nb add_profil\r\n")
 (recv . "b add_fdes\r\n")
 (recv . "\r\n\x1a\x1apost-prompt\r\n")
 (send-item .
	    #("complete b add_\n" 9 15
	      (fontified t))))

[-- Attachment #2: Type: application/pgp-signature, Size: 195 bytes --]

  reply	other threads:[~2010-01-19  0:26 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-01-17 14:25 bug#5404: 23.1.91; Nextstep port: M-x gdb hangs in tab completion of symbols Steve Revilak
2010-01-17 22:05 ` Nick Roberts
2010-01-18 15:50   ` Steve Revilak
2010-01-18 22:47     ` Nick Roberts
2010-01-19  0:26       ` Steve Revilak [this message]
2010-01-19  9:52         ` Nick Roberts
2010-01-20  3:25           ` Steve Revilak
2010-01-25  3:16           ` Steve Revilak
2010-01-19  1:52       ` Steve Revilak
2010-01-19  2:32         ` Nick Roberts
2011-01-16 20:40 ` bug#5404: FIXED: " Steve Revilak
2011-01-16 20:42   ` Steve Revilak

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=20100119002604.GC744@srevilak.net \
    --to=steve@srevilak.net \
    --cc=emacs-pretest-bug@gnu.org \
    --cc=nickrob@snap.net.nz \
    /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.