Skip to content

Commit 1ff3d1b

Browse files
authored
[Bugfix:Autograding] add dwarf 4 option to drmemory (#39)
with g++11 it is necessary to compile with dwarf4 to get line numbers from DrMemory "command" : "clang++ -g -gdwarf-4 -Wall -o a.out *.cpp", // NOTE: Compiling with the -gdwarf-4 option is required with g++ 11+ // so that DrMemory can print source code line numbers with. // See also: // DynamoRIO/drmemory#2485 Also, in PR Submitty/Submitty#9793 the category for a system call previously in the unknown category is updated so that the configuration runs without the system call failure. --------- Co-authored-by: Barb Cutler <Barb Cutler>
1 parent ee27014 commit 1ff3d1b

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

examples/08_memory_debugging/config/config.json

+11-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,17 @@
1111
{
1212
"type" : "Compilation",
1313
"title" : "C++ - Compilation (for Dr Memory)",
14-
"command" : "clang++ -g -Wall -o a.out *.cpp",
14+
15+
// ORIGINAL
16+
//"command" : "clang++ -g -Wall -o a.out *.cpp",
17+
18+
// TEMPORARY WORKAROUND
19+
"command" : "clang++ -g -gdwarf-4 -Wall -o a.out *.cpp",
20+
// NOTE: Compiling with the -gdwarf-4 option is required with g++ 11+
21+
// so that DrMemory can print source code line numbers with.
22+
// See also:
23+
// https://github.com/DynamoRIO/drmemory/issues/2485
24+
1525
"executable_name" : "a.out",
1626
"points" : 2
1727
},

examples/18_postgres_database/config/config.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,4 +50,4 @@
5050
]
5151
}
5252
]
53-
}
53+
}

0 commit comments

Comments
 (0)