unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Emacs 24.3 gdb mode doesn't work on OSX 10.7.5
@ 2013-05-10  1:36 Steven Wu
  2013-05-10  6:43 ` Eli Zaretskii
  0 siblings, 1 reply; 9+ messages in thread
From: Steven Wu @ 2013-05-10  1:36 UTC (permalink / raw)
  To: emacs-devel

hi,

I am having trouble to get Emacs gdb working correctly. When I do m-x gdb with argument --annonate=1 -i mi, I got this
==
Current directory is /Users/wus/src/vocoder/
GNU gdb 6.3.50-20050815 (Apple version gdb-1752) (Sat Jan 28 03:02:46 UTC 2012)
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "x86_64-apple-darwin"...
                                                     (gdb) 
help
List of classes of commands:

aliases -- Aliases of other commands
breakpoints -- Making program stop at certain points
data -- Examining data
files -- Specifying and examining files
internals -- Maintenance commands
obscure -- Obscure features
running -- Running the program
stack -- Examining the stack
status -- Status inquiries
support -- Support facilities
tracepoints -- Tracing of program execution without stopping the program
user-defined -- User-defined commands

Type "help" followed by a class name for a list of commands in that class.
Type "help" followed by command name for full documentation.
Command name abbreviations are allowed if unambiguous.
                                                                                                                    (gdb) 
time={wallclock="0.00022",user="0.00015",system="0.00008",start="1368149240.480793",end="1368149240.481009"}
==

See the (gdb) prompt is in the middle, and also, when  gdb-many-windows is set to t, I cannot get the Primary Source buffer to show program execution progress, and the other buffers, like the stack frame, register buffers etc show nothing. Gdb works with gud-gdb, does anyone know what the problem is?

Thanks

steve


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

* Re: Emacs 24.3 gdb mode doesn't work on OSX 10.7.5
  2013-05-10  1:36 Emacs 24.3 gdb mode doesn't work on OSX 10.7.5 Steven Wu
@ 2013-05-10  6:43 ` Eli Zaretskii
  2013-05-10  7:16   ` Steven Wu
  0 siblings, 1 reply; 9+ messages in thread
From: Eli Zaretskii @ 2013-05-10  6:43 UTC (permalink / raw)
  To: Steven Wu; +Cc: emacs-devel

> From: Steven Wu <wus@qwest.net>
> Date: Thu, 9 May 2013 18:36:51 -0700
> 
> I am having trouble to get Emacs gdb working correctly. When I do m-x gdb with argument --annonate=1 -i mi, I got this

Why did you use --annonate=1?  That's not the default.  Do the
problems disappear when you don't use that option?



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

* Re: Emacs 24.3 gdb mode doesn't work on OSX 10.7.5
  2013-05-10  6:43 ` Eli Zaretskii
@ 2013-05-10  7:16   ` Steven Wu
  2013-05-10  8:05     ` Eli Zaretskii
  0 siblings, 1 reply; 9+ messages in thread
From: Steven Wu @ 2013-05-10  7:16 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: emacs-devel

They do.  I tried --annotate=3 -i mi, and I had
==
Current directory is /Users/wus/src/vocoder/
Error: you did not specify -i=mi on GDB's command line!
~"GNU gdb 6.3.50-20050815 (Apple version gdb-1752) (Sat Jan 28 03:02:46 UTC 2012)\n"
~"Copyright 2004 Free Software Foundation, Inc.\n"
~"GDB is free software, covered by the GNU General Public License, and you are\nwelcome to change it and/or distribute copies of it under certain conditions.\nType \"show copying\" to see the conditions.\nThere is absolutely no warranty for GDB.  Type \"show warranty\" for details.\n"
~"This GDB was configured as \"x86_64-apple-darwin\"..."
~"\n\032\032frames-invalid\n"
~"\n\032\032breakpoints-invalid\n"
~"\n\032\032frames-invalid\n"
~"\n"
(gdb) 
1^done,time={wallclock="0.00043",user="0.00000",system="0.00043",start="1368169896.484846",end="1368169896.485277"}
(gdb) 
2^done,time={wallclock="0.00394",user="0.00007",system="0.00387",start="1368169896.485313",end="1368169896.489254"}
(gdb) 
&"\n\032\032error-begin\n"
~"\n\032\032error\n"
3^error,msg="No symbol \"non\" in current context."
(gdb) 
&"\n\032\032error-begin\n"
~"\n\032\032error\n"
11^error,msg="No registers."

Breakpoint 1 at 0x1000018bf: file main.cc, line 44.
^done,MI_HOOK_RESULT={HOOK_TYPE="breakpoint_create",bkpt={number="1",type="breakpoint",disp="keep",enabled="y",addr="0x00000001000018bf",func="sampleIO(int, int, melp_param*)",file="main.cc",line="44",shlib="/Users/wus/src/vocoder/hmsmelpe",times="0"}},time={wallclock="0.86889",user="0.00264",system="0.02251",start="1368169946.472118",end="1368169947.341012"}
(gdb) run testin.pcm testout.pcm

Starting program: /Users/wus/src/vocoder/hmsmelpe testin.pcm testout.pcm
=rerun
^done,time={wallclock="0.00192",user="0.00010",system="0.00181",start="1368169968.235716",end="1368169968.237637"}
(gdb) 
==

I got the same thing, all other buffers did not have any activity. The only difference is the gud buffer had strange outputs.

I am not quit sure what the problem is.
On May 9, 2013, at 11:43 PM, Eli Zaretskii wrote:

>> From: Steven Wu <wus@qwest.net>
>> Date: Thu, 9 May 2013 18:36:51 -0700
>> 
>> I am having trouble to get Emacs gdb working correctly. When I do m-x gdb with argument --annonate=1 -i mi, I got this
> 
> Why did you use --annonate=1?  That's not the default.  Do the
> problems disappear when you don't use that option?




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

* Re: Emacs 24.3 gdb mode doesn't work on OSX 10.7.5
  2013-05-10  7:16   ` Steven Wu
@ 2013-05-10  8:05     ` Eli Zaretskii
  2013-05-10  8:12       ` Steven Wu
       [not found]       ` <DE6C35E9-C6A3-48FE-893D-E0ECFBB94604@qwest.net>
  0 siblings, 2 replies; 9+ messages in thread
From: Eli Zaretskii @ 2013-05-10  8:05 UTC (permalink / raw)
  To: Steven Wu; +Cc: emacs-devel

> From: Steven Wu <wus@qwest.net>
> Date: Fri, 10 May 2013 00:16:42 -0700
> Cc: emacs-devel@gnu.org
> 
> They do.  I tried --annotate=3 -i mi, and I had

Please try without --annotate= at all, and see if the problem
persists.



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

* Re: Emacs 24.3 gdb mode doesn't work on OSX 10.7.5
  2013-05-10  8:05     ` Eli Zaretskii
@ 2013-05-10  8:12       ` Steven Wu
       [not found]       ` <DE6C35E9-C6A3-48FE-893D-E0ECFBB94604@qwest.net>
  1 sibling, 0 replies; 9+ messages in thread
From: Steven Wu @ 2013-05-10  8:12 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: emacs-devel

Almost the same as --annotate=1, but less verbose, and the rest of the buffers behaved the same way.

steve

On May 10, 2013, at 1:05 AM, Eli Zaretskii wrote:

>> From: Steven Wu <wus@qwest.net>
>> Date: Fri, 10 May 2013 00:16:42 -0700
>> Cc: emacs-devel@gnu.org
>> 
>> They do.  I tried --annotate=3 -i mi, and I had
> 
> Please try without --annotate= at all, and see if the problem
> persists.




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

* Re: Emacs 24.3 gdb mode doesn't work on OSX 10.7.5
       [not found]       ` <DE6C35E9-C6A3-48FE-893D-E0ECFBB94604@qwest.net>
@ 2013-05-10  8:44         ` Eli Zaretskii
  2013-05-10 10:00           ` Steven Wu
  0 siblings, 1 reply; 9+ messages in thread
From: Eli Zaretskii @ 2013-05-10  8:44 UTC (permalink / raw)
  To: Steven Wu; +Cc: emacs-devel

> From: Steven Wu <wus@qwest.net>
> Date: Fri, 10 May 2013 01:13:42 -0700
> 
> I am not sure if that is a gdb problem or, emacs problem. It seems like -i mi takes no effect.

If -i mi has no effect when you invoke GDB from the shell prompt, then
it's definitely not an Emacs problem.



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

* Re: Emacs 24.3 gdb mode doesn't work on OSX 10.7.5
  2013-05-10  8:44         ` Eli Zaretskii
@ 2013-05-10 10:00           ` Steven Wu
  2013-05-10 12:59             ` Eli Zaretskii
  0 siblings, 1 reply; 9+ messages in thread
From: Steven Wu @ 2013-05-10 10:00 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: emacs-devel

Well, when I invoked gdb -i mi … from shell, it kind of worked like regular gdb except it printed out ~ at the beginning of lines, and echoed commands out. I assumed that was correct behavior for gdb -i mi, right?

steve
On May 10, 2013, at 1:44 AM, Eli Zaretskii wrote:

>> From: Steven Wu <wus@qwest.net>
>> Date: Fri, 10 May 2013 01:13:42 -0700
>> 
>> I am not sure if that is a gdb problem or, emacs problem. It seems like -i mi takes no effect.
> 
> If -i mi has no effect when you invoke GDB from the shell prompt, then
> it's definitely not an Emacs problem.




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

* Re: Emacs 24.3 gdb mode doesn't work on OSX 10.7.5
  2013-05-10 10:00           ` Steven Wu
@ 2013-05-10 12:59             ` Eli Zaretskii
  2013-05-10 14:50               ` Andreas Schwab
  0 siblings, 1 reply; 9+ messages in thread
From: Eli Zaretskii @ 2013-05-10 12:59 UTC (permalink / raw)
  To: Steven Wu; +Cc: emacs-devel

> From: Steven Wu <wus@qwest.net>
> Date: Fri, 10 May 2013 03:00:25 -0700
> Cc: emacs-devel@gnu.org
> 
> Well, when I invoked gdb -i mi … from shell, it kind of worked like regular gdb except it printed out ~ at the beginning of lines, and echoed commands out. I assumed that was correct behavior for gdb -i mi, right?

GDB/MI prints ~, but it also changes the output format.




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

* Re: Emacs 24.3 gdb mode doesn't work on OSX 10.7.5
  2013-05-10 12:59             ` Eli Zaretskii
@ 2013-05-10 14:50               ` Andreas Schwab
  0 siblings, 0 replies; 9+ messages in thread
From: Andreas Schwab @ 2013-05-10 14:50 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: Steven Wu, emacs-devel

Eli Zaretskii <eliz@gnu.org> writes:

>> From: Steven Wu <wus@qwest.net>
>> Date: Fri, 10 May 2013 03:00:25 -0700
>> Cc: emacs-devel@gnu.org
>> 
>> Well, when I invoked gdb -i mi … from shell, it kind of worked like regular gdb except it printed out ~ at the beginning of lines, and echoed commands out. I assumed that was correct behavior for gdb -i mi, right?
>
> GDB/MI prints ~, but it also changes the output format.

But gdb--check-interpreter only looks at the first character.

Andreas.

-- 
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."



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

end of thread, other threads:[~2013-05-10 14:50 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-05-10  1:36 Emacs 24.3 gdb mode doesn't work on OSX 10.7.5 Steven Wu
2013-05-10  6:43 ` Eli Zaretskii
2013-05-10  7:16   ` Steven Wu
2013-05-10  8:05     ` Eli Zaretskii
2013-05-10  8:12       ` Steven Wu
     [not found]       ` <DE6C35E9-C6A3-48FE-893D-E0ECFBB94604@qwest.net>
2013-05-10  8:44         ` Eli Zaretskii
2013-05-10 10:00           ` Steven Wu
2013-05-10 12:59             ` Eli Zaretskii
2013-05-10 14:50               ` Andreas Schwab

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).