Open GoogleCodeExporter opened 9 years ago
This is the output for a simple hello world.
How can I have just "hello, world" printed in my console?
=thread-group-added,id="i1"
~"GNU gdb (GDB) 7.4\n"
~"Copyright (C) 2012 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 \"i686-pc-mingw32\".\nFor bug reporting
instructions, please see:\n"
~"<http://www.gnu.org/software/gdb/bugs/>...\n"
~"Reading symbols from N:\\workspace\\ProvaGo2\\bin\\main.exe..."
~"done.\n"
(gdb)
0^done,bkpt={number="1",type="breakpoint",disp="keep",enabled="y",addr="0x004010
19",func="main.main",file="N:/workspace/ProvaGo2/src/main.go",fullname="N:\\work
space\\ProvaGo2\\src\\main.go",line="6",times="0",original-location="N:\\workspa
ce\\ProvaGo2\\src\\main.go:6"}
(gdb)
&"run\n"
~"Starting program: N:\\workspace\\ProvaGo2\\bin\\main.exe \n"
=thread-group-started,id="i1",pid="2072"
=thread-created,id="1",group-id="i1"
~"[New Thread 2072.0xdb8]\n"
^running
*running,thread-id="all"
(gdb)
=library-loaded,id="C:\\WINDOWS\\system32\\ntdll.dll",target-name="C:\\WINDOWS\\
system32\\ntdll.dll",host-name="C:\\WINDOWS\\system32\\ntdll.dll",symbols-loaded
="0",thread-group="i1"
=library-loaded,id="C:\\WINDOWS\\system32\\kernel32.dll",target-name="C:\\WINDOW
S\\system32\\kernel32.dll",host-name="C:\\WINDOWS\\system32\\kernel32.dll",symbo
ls-loaded="0",thread-group="i1"
=library-loaded,id="C:\\WINDOWS\\system32\\winmm.dll",target-name="C:\\WINDOWS\\
system32\\winmm.dll",host-name="C:\\WINDOWS\\system32\\winmm.dll",symbols-loaded
="0",thread-group="i1"
=library-loaded,id="C:\\WINDOWS\\system32\\advapi32.dll",target-name="C:\\WINDOW
S\\system32\\advapi32.dll",host-name="C:\\WINDOWS\\system32\\advapi32.dll",symbo
ls-loaded="0",thread-group="i1"
=library-loaded,id="C:\\WINDOWS\\system32\\rpcrt4.dll",target-name="C:\\WINDOWS\
\system32\\rpcrt4.dll",host-name="C:\\WINDOWS\\system32\\rpcrt4.dll",symbols-loa
ded="0",thread-group="i1"
=library-loaded,id="C:\\WINDOWS\\system32\\secur32.dll",target-name="C:\\WINDOWS
\\system32\\secur32.dll",host-name="C:\\WINDOWS\\system32\\secur32.dll",symbols-
loaded="0",thread-group="i1"
=library-loaded,id="C:\\WINDOWS\\system32\\gdi32.dll",target-name="C:\\WINDOWS\\
system32\\gdi32.dll",host-name="C:\\WINDOWS\\system32\\gdi32.dll",symbols-loaded
="0",thread-group="i1"
=library-loaded,id="C:\\WINDOWS\\system32\\user32.dll",target-name="C:\\WINDOWS\
\system32\\user32.dll",host-name="C:\\WINDOWS\\system32\\user32.dll",symbols-loa
ded="0",thread-group="i1"
=library-loaded,id="C:\\WINDOWS\\system32\\shimeng.dll",target-name="C:\\WINDOWS
\\system32\\shimeng.dll",host-name="C:\\WINDOWS\\system32\\shimeng.dll",symbols-
loaded="0",thread-group="i1"
=library-loaded,id="C:\\WINDOWS\\system32\\imm32.dll",target-name="C:\\WINDOWS\\
system32\\imm32.dll",host-name="C:\\WINDOWS\\system32\\imm32.dll",symbols-loaded
="0",thread-group="i1"
=library-unloaded,id="C:\\WINDOWS\\system32\\shimeng.dll",target-name="C:\\WINDO
WS\\system32\\shimeng.dll",host-name="C:\\WINDOWS\\system32\\shimeng.dll",thread
-group="i1"
=thread-created,id="2",group-id="i1"
~"[New Thread 2072.0xda0]\n"
*running,thread-id="all"
=library-loaded,id="C:\\WINDOWS\\system32\\shell32.dll",target-name="C:\\WINDOWS
\\system32\\shell32.dll",host-name="C:\\WINDOWS\\system32\\shell32.dll",symbols-
loaded="0",thread-group="i1"
=library-loaded,id="C:\\WINDOWS\\system32\\msvcrt.dll",target-name="C:\\WINDOWS\
\system32\\msvcrt.dll",host-name="C:\\WINDOWS\\system32\\msvcrt.dll",symbols-loa
ded="0",thread-group="i1"
=library-loaded,id="C:\\WINDOWS\\system32\\shlwapi.dll",target-name="C:\\WINDOWS
\\system32\\shlwapi.dll",host-name="C:\\WINDOWS\\system32\\shlwapi.dll",symbols-
loaded="0",thread-group="i1"
=library-loaded,id="C:\\WINDOWS\\WinSxS\\x86_Microsoft.Windows.Common-Controls_6
595b64144ccf1df_6.0.2600.6028_x-ww_61e65202\\comctl32.dll",target-name="C:\\WIND
OWS\\WinSxS\\x86_Microsoft.Windows.Common-Controls_6595b64144ccf1df_6.0.2600.602
8_x-ww_61e65202\\comctl32.dll",host-name="C:\\WINDOWS\\WinSxS\\x86_Microsoft.Win
dows.Common-Controls_6595b64144ccf1df_6.0.2600.6028_x-ww_61e65202\\comctl32.dll"
,symbols-loaded="0",thread-group="i1"
=library-loaded,id="C:\\WINDOWS\\system32\\comctl32.dll",target-name="C:\\WINDOW
S\\system32\\comctl32.dll",host-name="C:\\WINDOWS\\system32\\comctl32.dll",symbo
ls-loaded="0",thread-group="i1"
=breakpoint-modified,bkpt={number="1",type="breakpoint",disp="keep",enabled="y",
addr="0x00401019",func="main.main",file="N:/workspace/ProvaGo2/src/main.go",full
name="N:\\\\workspace\\\\ProvaGo2\\\\src\\\\main.go",line="6",times="1",original
-location="N:\\\\workspace\\\\ProvaGo2\\\\src\\\\main.go:6"}
~"\nBreakpoint "
~"1, main.main () at N:/workspace/ProvaGo2/src/main.go:6\n"
~"6\t fmt.Printf(\"hello, world\\n\")\n"
*stopped,reason="breakpoint-hit",disp="keep",bkptno="1",frame={addr="0x00401019"
,func="main.main",args=[],file="N:/workspace/ProvaGo2/src/main.go",fullname="N:\
\workspace\\ProvaGo2\\src\\main.go",line="6"},thread-id="1",stopped-threads="all
"
(gdb)
1^done,stack=[frame={level="0",addr="0x00401019",func="main.main",file="N:/works
pace/ProvaGo2/src/main.go",fullname="N:\\workspace\\ProvaGo2\\src\\main.go",line
="6"},frame={level="1",addr="0x0040bdea",func="runtime.main",file="C:/Users/ADMI
NI~1/AppData/Local/Temp/2/bindist721200707/go/src/pkg/runtime/proc.c",line="244"
},frame={level="2",addr="0x0040be82",func="schedunlock",file="C:/Users/ADMINI~1/
AppData/Local/Temp/2/bindist721200707/go/src/pkg/runtime/proc.c",line="267"},fra
me={level="3",addr="0x00000000",func="??"}]
(gdb)
2^done,stack-args=[frame={level="0",args=[]}]
(gdb)
^done
(gdb)
3^done,locals=[]
(gdb)
&"continue\n"
~"Continuing.\n"
^running
*running,thread-id="1"
(gdb)
*running,thread-id="all"
hello, world
=thread-exited,id="2",group-id="i1"
~"[Inferior 1 (process 2072) exited normally]\n"
=thread-exited,id="1",group-id="i1"
=thread-group-exited,id="i1",exit-code="0"
*stopped
(gdb)
&"quit\n"
Original comment by neclep...@gmail.com
on 11 Jun 2013 at 10:12
Original issue reported on code.google.com by
m...@danyo.ca
on 29 Jan 2013 at 2:57