mirror of
https://github.com/Ed94/raddebugger.git
synced 2026-08-05 21:38:40 +00:00
do not consume passthrough --s in command line parser
This commit is contained in:
@@ -92,6 +92,7 @@ cmd_line_from_string_list(Arena *arena, String8List command_line)
|
|||||||
|
|
||||||
// NOTE(rjf): Parse command line.
|
// NOTE(rjf): Parse command line.
|
||||||
B32 after_passthrough_option = 0;
|
B32 after_passthrough_option = 0;
|
||||||
|
B32 first_passthrough = 1;
|
||||||
for(String8Node *node = command_line.first->next, *next = 0; node != 0; node = next)
|
for(String8Node *node = command_line.first->next, *next = 0; node != 0; node = next)
|
||||||
{
|
{
|
||||||
next = node->next;
|
next = node->next;
|
||||||
@@ -175,10 +176,11 @@ cmd_line_from_string_list(Arena *arena, String8List command_line)
|
|||||||
|
|
||||||
// NOTE(rjf): Default path, treat as a passthrough config option to be
|
// NOTE(rjf): Default path, treat as a passthrough config option to be
|
||||||
// handled by tool-specific code.
|
// handled by tool-specific code.
|
||||||
else if(!str8_match(node->string, str8_lit("--"), 0))
|
else if(!str8_match(node->string, str8_lit("--"), 0) || !first_passthrough)
|
||||||
{
|
{
|
||||||
str8_list_push(arena, &parsed.inputs, node->string);
|
str8_list_push(arena, &parsed.inputs, node->string);
|
||||||
after_passthrough_option = 1;
|
after_passthrough_option = 1;
|
||||||
|
first_passthrough = 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -37,7 +37,6 @@
|
|||||||
////////////////////////////////
|
////////////////////////////////
|
||||||
//~ rjf: Hot, High Priority Tasks (Complete Unusability, Crashes, Fire-Worthy)
|
//~ rjf: Hot, High Priority Tasks (Complete Unusability, Crashes, Fire-Worthy)
|
||||||
//
|
//
|
||||||
// [ ] raddbg jai.exe my_file.jai -- foobar -> raddbg consumes `--` incorrectly
|
|
||||||
// [ ] PDB files distributed with the build are not found by DbgHelp!!!
|
// [ ] PDB files distributed with the build are not found by DbgHelp!!!
|
||||||
// [ ] Jai compiler debugging crash
|
// [ ] Jai compiler debugging crash
|
||||||
//
|
//
|
||||||
@@ -376,6 +375,7 @@
|
|||||||
// [x] robustify dbgi layer to renames (cache should not be based only on
|
// [x] robustify dbgi layer to renames (cache should not be based only on
|
||||||
// path - must invalidate naturally when new filetime occurs)
|
// path - must invalidate naturally when new filetime occurs)
|
||||||
// [x] rdi file regeneration too strict
|
// [x] rdi file regeneration too strict
|
||||||
|
// [x] raddbg jai.exe my_file.jai -- foobar -> raddbg consumes `--` incorrectly
|
||||||
|
|
||||||
#ifndef RADDBG_H
|
#ifndef RADDBG_H
|
||||||
#define RADDBG_H
|
#define RADDBG_H
|
||||||
|
|||||||
Reference in New Issue
Block a user