@@ -19,31 +19,33 @@ def test_core_file(self):
19
19
core_file = os .path .join (current_dir , "linux-x86_64.core" )
20
20
21
21
self .create_debug_adapter ()
22
- self .attach (exe_file , coreFile = core_file )
22
+
23
+ source_map = [["/home/labath/test" , current_dir ]]
24
+ self .attach (exe_file , coreFile = core_file , sourceMap = source_map )
23
25
24
26
expected_frames = [
25
27
{
26
28
"column" : 0 ,
27
29
"id" : 524288 ,
28
30
"line" : 4 ,
29
31
"name" : "bar" ,
30
- "source" : {"name" : "main.c" , "path" : "/home/labath/test/ main.c" },
32
+ "source" : {"name" : "main.c" , "path" : os . path . join ( current_dir , " main.c") },
31
33
"instructionPointerReference" : "0x40011C" ,
32
34
},
33
35
{
34
36
"column" : 0 ,
35
37
"id" : 524289 ,
36
38
"line" : 10 ,
37
39
"name" : "foo" ,
38
- "source" : {"name" : "main.c" , "path" : "/home/labath/test/ main.c" },
40
+ "source" : {"name" : "main.c" , "path" : os . path . join ( current_dir , " main.c") },
39
41
"instructionPointerReference" : "0x400142" ,
40
42
},
41
43
{
42
44
"column" : 0 ,
43
45
"id" : 524290 ,
44
46
"line" : 16 ,
45
47
"name" : "_start" ,
46
- "source" : {"name" : "main.c" , "path" : "/home/labath/test/ main.c" },
48
+ "source" : {"name" : "main.c" , "path" : os . path . join ( current_dir , " main.c") },
47
49
"instructionPointerReference" : "0x40015F" ,
48
50
},
49
51
]
0 commit comments