-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #50 from Dirack/feature/issue/49
Feature/issue/49
- Loading branch information
Showing
4 changed files
with
70 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,30 @@ | ||
# Debug directory for vfsa debug sessions with GDB | ||
|
||
- GDB debug session: Run 'make' or 'make vfsa.x' to generate the executable vfsa.x | ||
This directory is a framework for debugging sessions with GNU debugger (GDB) and | ||
VFSA programs. The programs versions are compiled for gdb and arguments are loaded | ||
using gdb scripts. In the directory 'test\_data\_cube', dummy data is build to be | ||
offered as input in debugging sessions. | ||
|
||
Above, the debugging options: | ||
|
||
- GDB debug session: Run 'make' or 'make vfsa.x' or 'make nhcrssurf.x' | ||
to generate the executable vfsa.x or 'nhcrssurf.x' | ||
to be used in debugging with GNU Debugger (GDB). The 'gdb\_scripts/gdb\_script' | ||
file can be used to load all arguments needed to run the program in GDB. Use | ||
'source gdb\_scripts/gdb\_script' in GDB shell. | ||
|
||
- GDB test: Run 'make gdbtest' to run tests in GDB shell. | ||
- GDB test: Run 'make gdbtest' to run 'vfsa.x' tests in GDB shell. | ||
|
||
## Usage examples | ||
|
||
To run 'vfsa.x' with a gdb script called 'gdb\_script' use: | ||
|
||
``` | ||
gdb --command=gdb_scripts/gdb_script ./vfsa.x | ||
``` | ||
|
||
To run 'nhcrssurf.x' with a gdb script called 'gdb\_script\_nhcrssurf' use: | ||
|
||
``` | ||
gdb --command=gdb_scripts/gdb_script_nhcrssurf ./nhcrssurf.x | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# gdb_script (GDB Script) | ||
# | ||
# Purpose: Load test parameters in GDB. Use the command | ||
# 'source gdb_script' inside gdb shell to load args. | ||
# | ||
# Site: https://www.geofisicando.com | ||
# | ||
# Programmer: Rodolfo A C Neves (Dirack) 25/02/2024 | ||
# | ||
# Email: rodolfo_profissional@hotmail.com | ||
# | ||
# License: GPL-3.0 <https://www.gnu.org/licenses/gpl-3.0.txt>. | ||
|
||
cd test_data_cube/ | ||
set args <dataCube.rsf param=crsParameters.rsf m0=5 v0=1.5 t0=1.1 verb=y > teste.rsf | ||
show args |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters