File tree Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -29,14 +29,24 @@ let create_frame_reader path =
29
29
Arch_bfd. sexp_of_bfd_architecture reader#get_arch |>
30
30
Sexp. to_string |>
31
31
String. substr_replace_all ~pattern: " Bfd_arch_" ~with_: " " |>
32
- Arch. of_string
32
+ Arch. of_string |>
33
+ Option. map ~f: (function
34
+ | `x86 when
35
+ reader#get_machine = (Int64. of_int Arch_bfd. mach_x86_64) -> `x86_64
36
+ | a -> a)
37
+
33
38
34
39
method meta =
35
40
let set : 'a. 'a tag -> 'a option -> Dict.t -> Dict.t = fun tag value dict ->
36
41
Option. value_map value
37
42
~f: (fun value -> Dict. set dict tag value) ~default: dict in
38
43
let open Meta in
39
- set tracer self#tracer_meta Dict. empty |>
44
+ let meta = if reader#get_trace_version = 1L
45
+ then Dict. empty
46
+ else match reader#get_frame with
47
+ | `meta_frame f -> Frame_events. of_meta_frame f
48
+ | _ -> Dict. empty in
49
+ set tracer self#tracer_meta meta |>
40
50
set arch self#arch_meta
41
51
42
52
method next () =
You can’t perform that action at this time.
0 commit comments