We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
0x
-trigger addr:
1 parent 44599da commit d390f25Copy full SHA for d390f25
core/elf.ml
@@ -218,7 +218,11 @@ let find_selection t name : Selection.t option =
218
in
219
let find_addr_selection name =
220
Option.bind
221
- (Option.try_with (fun () -> Int.Hex.of_string name))
+ (Option.try_with (fun () ->
222
+ let name =
223
+ if String.is_prefix ~prefix:"0x" name then String.drop_prefix name 2 else name
224
+ in
225
+ Int.Hex.of_string name))
226
~f:(fun address -> Some (Selection.Address { address; name }))
227
228
let find_symbol_selection name =
0 commit comments