bug#5404: 23.1.91; Nextstep port: M-x gdb hangs in tab completion of symbols

Steve Revilak <[email protected]> Mon, 18 Jan 2010 19:26:05 -0500
Newsgroups gmane.emacs.bugs,gmane.emacs.pretest.bugs
Message-ID <[email protected]>
--Lb0e7rgc7IsuDeGj
Content-Type: multipart/mixed; boundary="cQXOx3fnlpmgJsTP"
Content-Disposition: inline


--cQXOx3fnlpmgJsTP
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

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

>You could do M-x gdb-enable-debug, then=20
>
>(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 t=
o Gdb.

Neat trick. :)


>I suspect it does and this relates to Apple Gdb and the previous problem w=
ith ^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

--cQXOx3fnlpmgJsTP
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="gdb-debug-log.txt"
Content-Transfer-Encoding: quoted-printable

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:=20
((recv . "=0D\n=1A=1Apre-prompt=0D\n(gdb) =0D\n=1A=1Aprompt=0D\n")
 (recv . "No breakpoints or watchpoints.=0D\n")
 (recv . "=0D\n=1A=1Apost-prompt=0D\n")
 (send-item "server info breakpoints\n" gdb-info-breakpoints-handler)
 (recv . "=0D\n=1A=1Apre-prompt=0D\n(gdb) =0D\n=1A=1Aprompt=0D\n")
 (recv . "&\"\\n\\032\\032error-begin\\n\"=0D\n~\"\\n\\032\\032error\\n\"=
=0D\n^error,msg=3D\"No registers.\"=0D\n(gdb) =0D\n")
 (recv . "=0D\n=1A=1Apost-prompt=0D\n")
 (send-item "server interpreter mi -stack-info-frame\n" gdb-frame-handler-1)
 (recv . "=0D\n=1A=1Apre-prompt=0D\n(gdb) =0D\n=1A=1Aprompt=0D\n")
 (recv . "b add_one=0D\nb add_profil=0D\n")
 (recv . "b add_fdes=0D\n")
 (recv . "=0D\n=1A=1Apost-prompt=0D\n")
 (send-item .
	    #("complete b add_\n" 9 15
	      (fontified t))))

--cQXOx3fnlpmgJsTP--

--Lb0e7rgc7IsuDeGj
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.11 (Darwin)

iEYEARECAAYFAktU/BwACgkQX7YJI4BuyDQcRQCcD3ARb6RUHVqHh7lWS59fbJNf
pKwAn2mL/vZFEWFjFGXuHK3n4K+mQnXS
=Rbcs
-----END PGP SIGNATURE-----

--Lb0e7rgc7IsuDeGj--