mirror of
https://github.com/Ed94/raddebugger.git
synced 2026-07-31 11:20:03 +00:00
fix __va_args__ nonsense in rdi_from_dwarf; fix incorrect mask check in linux os_file_open
This commit is contained in:
@@ -267,7 +267,7 @@ os_file_open(OS_AccessFlags flags, String8 path)
|
||||
Temp scratch = scratch_begin(0, 0);
|
||||
String8 path_copy = push_str8_copy(scratch.arena, path);
|
||||
int lnx_flags = 0;
|
||||
if(flags & (OS_AccessFlag_Read|OS_AccessFlag_Write))
|
||||
if(flags & OS_AccessFlag_Read && flags & OS_AccessFlag_Write)
|
||||
{
|
||||
lnx_flags = O_RDWR;
|
||||
}
|
||||
|
||||
@@ -430,9 +430,9 @@ entry_point(CmdLine *cmd_line)
|
||||
// track parse success
|
||||
B32 successful_parse = 1;
|
||||
|
||||
#define PARSE_CHECK_ERROR(p,fmt,...) do{ if ((p) == 0){ \
|
||||
#define PARSE_CHECK_ERROR(p, fmt, ...) do{ if ((p) == 0){ \
|
||||
successful_parse = 0; \
|
||||
fprintf(stdout, "error(parsing): " fmt "\n", __VA_ARGS__); \
|
||||
fprintf(stdout, "error(parsing): " fmt "\n",##__VA_ARGS__); \
|
||||
} }while(0)
|
||||
|
||||
// parse elf
|
||||
|
||||
Reference in New Issue
Block a user