Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upEnsure "--args" is last argument of gdb command #296
Conversation
|
Thanks, looks good to me. I fixed the missing import that caused the build to fail, but otherwise am leaving unchanged. |
|
I did some testing and found it didn't work if Test plan for my changes: Run the following and after each, confirm "Load Binary" still works (if the mi2 interpreter flag isn't passed to gdb, this isn't apparent until the binary is loaded).
Can anyone confirm this fixes their issues? cc @zhidvegi, @sammcdsam fixes #272 |
To debug an application+command line arguments "--args" is used as last command line argument of gdbgui. Everything after "--args" must be passed then to gdb also as LAST command line argument. This was not the case, but it is now ensured. By default gdb is now used in any case with "--args".
|
I'll leave this open a couple more days if anyone wants to test it before I merge it to master. |
* Ensure "--args" is last argument of gdb command To debug an application+command line arguments "--args" is used as last command line argument of gdbgui. Everything after "--args" must be passed then to gdb also as LAST command line argument. This was not the case, but it is now ensured. By default gdb is now used in any case with "--args". * fix formatting * only pass args when they are present * add unit tests * add additional test case Co-authored-by: Chad Smith <chad@grassfedcode.com>
* Ensure "--args" is last argument of gdb command To debug an application+command line arguments "--args" is used as last command line argument of gdbgui. Everything after "--args" must be passed then to gdb also as LAST command line argument. This was not the case, but it is now ensured. By default gdb is now used in any case with "--args". * fix formatting * only pass args when they are present * add unit tests * add additional test case Co-authored-by: Chad Smith <chad@grassfedcode.com>
* Ensure "--args" is last argument of gdb command To debug an application+command line arguments "--args" is used as last command line argument of gdbgui. Everything after "--args" must be passed then to gdb also as LAST command line argument. This was not the case, but it is now ensured. By default gdb is now used in any case with "--args". * fix formatting * only pass args when they are present * add unit tests * add additional test case Co-authored-by: Chad Smith <chad@grassfedcode.com>

Formed in 2009, the Archive Team (not to be confused with the archive.org Archive-It Team) is a rogue archivist collective dedicated to saving copies of rapidly dying or deleted websites for the sake of history and digital heritage. The group is 100% composed of volunteers and interested parties, and has expanded into a large amount of related projects for saving online and digital history.

jhgoebbert commentedOct 5, 2019
To debug an application+command line arguments "--args" is used as last command line argument of gdbgui. Everything after "--args" must be passed then to gdb also as LAST command line argument.
This was not the case, but it is now ensured. By default gdb is now used in any case with "--args".