mugad / liteide

Automatically exported from code.google.com/p/liteide
0 stars 0 forks source link

GDB does not work on mac osx 10.8 #64

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. install liteide app from sourceforge
2. install gdb via macports (ggdb) : /opt/local/bin/ggdb
3. set liteide settings in order to point to local install of go and gdb
4. try to run a program: the program runs
5. try to debug a Go program
What is the expected output? What do you see instead?
I expect the debugger to fire up and allow me to single step through the program

Instead the console of LiteIde shows:

=thread-group-added,id="i1"
~"GNU gdb (GDB) 7.6\n"
~"Copyright (C) 2013 Free Software Foundation, Inc.\n"
~"License GPLv3+: GNU GPL version 3 or later 
<http://gnu.org/licenses/gpl.html>\nThis is free software: you are free to 
change and redistribute it.\nThere is NO WARRANTY, to the extent permitted by 
law.  Type \"show copying\"\nand \"show warranty\" for details.\n"
~"This GDB was configured as \"x86_64-apple-darwin12.3.0\".\nFor bug reporting 
instructions, please see:\n"
~"<http://www.gnu.org/software/gdb/bugs/>...\n"
~"Reading symbols from /Users/mgf64mba/mgf64mba..."
~"done.\n"
(gdb) 
&"set unwindonsignal on\n"
=cmd-param-changed,param="unwindonsignal",value="on"
10000001^done
(gdb) 
&"set overload-resolution off\n"
=cmd-param-changed,param="overload-resolution",value="off"
10000002^done
(gdb) 
&"handle SIGSEGV nopass stop print\n"
~"Signal        Stop\tPrint\tPass to program\tDescription\n"
~"SIGSEGV       Yes\tYes\tNo\t\tSegmentation fault\n"
10000003^done
(gdb) 
&"set breakpoint pending on\n"
=cmd-param-changed,param="breakpoint pending",value="on"
10000004^done
(gdb) 
&"set width 0\n"
=cmd-param-changed,param="width",value="4294967295"
10000005^done
(gdb) 
&"set height 0\n"
10000006^done
(gdb) 
&"set auto-solib-add on\n"
10000007^done
(gdb) 
10000008^done,source-path="/usr/local/go/src/pkg/runtime:$cdir:$cwd"
(gdb) 
&"set substitute-path /go/src/pkg/runtime /usr/local/go/src/pkg/runtime\n"
10000009^done
(gdb) 
10000010^done,bkpt={number="1",type="breakpoint",disp="keep",enabled="y",addr="0
x0000000000002000",func="main.main",file="/Users/mgf64mba/test.go",fullname="/Us
ers/mgf64mba/test.go",line="12",thread-groups=["i1"],times="0",original-location
="main.main"}
(gdb) 
=thread-group-started,id="i1",pid="17423"
=thread-created,id="1",group-id="i1"
10000011^error,msg="Unable to find Mach task port for process-id 17423: 
(os/kern) failure (0x5).\n (please check gdb is codesigned - see taskgated(8))"
(gdb)

What version of the product are you using? On what operating system?
Latest available Go, Latest available Liteide, Mac OsX 10.8.5

Please provide any additional information below.

Original issue reported on code.google.com by mgf64...@gmail.com on 7 May 2014 at 8:40

GoogleCodeExporter commented 8 years ago
It doesn't work on windows either.

Original comment by b...@heptec.com on 24 Jul 2014 at 7:56

GoogleCodeExporter commented 8 years ago
i have the same problem 

Original comment by shenyan...@gmail.com on 10 Mar 2015 at 4:58