Contents


On-line Guides
All Guides
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems

How To Guides
Xen Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Problem Solutions

 

 

5.6 Continuing execution

The command finish continues execution up to the end of the current function, displaying the return value:

(gdb) finish
Run till exit from #0  0x08048400 in foo (p=0x40013f98) 
at null.c:15
0x080483d9 in main () at null.c:7
7         return foo (p);
Value returned is $13 = 255

To continue execution until the program exits (or hits the next breakpoint) use the command continue,

(gdb) continue
Continuing.
Program exited with code 0377.

Note that the exit code is shown in octal (0377 base 8 = 255 in base 10).


 
 
  Published under the terms of the GNU General Public License Design by Interspire