C:\MinGWStudio\Help\Hello\Debug>gdb
GNU gdb 20040521
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 "i686-pc-mingw32".
(gdb) file Hello.exe
Reading symbols from C:\MinGWStudio\Help\Hello\Debug/Hello.exe...done.
(gdb) run
Starting program: C:\MinGWStudio\Help\Hello\Debug/Hello.exe
4276803
Program exited normally.
(gdb) list
1 #include <iostream>
2
3 using namespace std;
4 int main()
5 {
6 cout<<'ABC'<<endl;
7 return 0;
8 }(gdb) list
Line number 9 out of range; hello.cpp has 8 lines.
(gdb) break 6
Breakpoint 1 at 0x4013ba: file hello.cpp, line 6.
(gdb) run
Starting program: C:\MinGWStudio\Help\Hello\Debug/Hello.exe
Breakpoint 1, main () at hello.cpp:6
6 cout<<'ABC'<<endl;
(gdb) disassemble 6
No function contains specified address.