Linux Programming: Building and Debugging by Silviu Sosiade

Linux Programming: Building and Debugging by Silviu Sosiade

Author:Silviu Sosiade [Sosiade, Silviu]
Language: eng
Format: epub, azw3
Published: 2016-04-01T22:00:00+00:00


Once the program is loaded I can run the executable using command “r” (or “run”)

(gdb) run

Starting program: /home/ssosiade/tmp_books/gdb/fibonacci

Number of terms:

2

0

1

b) Option 2: Run “gdb” first and then load and execute the program from the debugger command line:

$ gdb

GNU gdb (GDB) Red Hat Enterprise Linux (7.2-64.el6_5.2)

Copyright (C) 2010 Free Software Foundation, Inc.

License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>

This is free software: you are free to change and redistribute it.

There is NO WARRANTY, to the extent permitted by law. Type "show copying"

and "show warranty" for details.

This GDB was configured as "x86_64-redhat-linux-gnu".

For bug reporting instructions, please see:

<http://www.gnu.org/software/gdb/bugs/>.

(gdb) exec-file ./fibonacci

(gdb) r

Starting program: /books/gdb/fibonacci

Number of terms:



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.