cs01 / cs01/gdbgui

long list of arguments where the ordering matters

Open
#301 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
10.4k
Forks
521
PR merge metrics
No merged PRs in 30d

Description

**Describe the bug**
The ordering of --gdb-args="..." and --args ... can be problematic

**To Reproduce**
consider the following bash script:
program=path to the bin file
prefixedDirs="-d dir1_path -d dir2_path"
arguments="$prefixedDirs --args $program -a 1 -b 2 -c 3"
gdb --tui $arguments # this works fine
gdbgui --gdb-args="${arguments}" # error: gdbgui is not able to identify correctly the bin file
gdbgui ${program} --gdb-args="${prefixedDirs}" --args -a 1 -b 2 -c 3 # error: the ordering of the gdb arguments is incorrect
gdbgui ${program} --args -a 1 -b 2 -c 3 --gdb-args="${prefixedDirs}" # error: not permitted by gdbgui, as explained by gdbgui --info
# How can I pass arguments to gdbgui in order to obtain a call to gdb with the correct arguments ordering?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.