File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -17,16 +17,16 @@ def json_lookup_function(val):
17
17
if m := ns_pattern .fullmatch (str (val .type .strip_typedefs ().name )):
18
18
name = m .group ('name' )
19
19
if name and name .startswith ('basic_json<' ) and name .endswith ('>' ):
20
- m = ns_pattern .fullmatch (str (val ['m_type' ]))
20
+ m = ns_pattern .fullmatch (str (val ["m_data" ][ 'm_type' ]))
21
21
t = m .group ('name' )
22
22
if t and t .startswith ('detail::value_t::' ):
23
23
try :
24
- union_val = val ['m_value' ][t .removeprefix ('detail::value_t::' )]
24
+ union_val = val ["m_data" ][ 'm_value' ][t .removeprefix ('detail::value_t::' )]
25
25
if union_val .type .code == gdb .TYPE_CODE_PTR :
26
26
return gdb .default_visualizer (union_val .dereference ())
27
27
else :
28
28
return JsonValuePrinter (union_val )
29
29
except Exception :
30
- return JsonValuePrinter (val ['m_type' ])
30
+ return JsonValuePrinter (val ["m_data" ][ 'm_type' ])
31
31
32
32
gdb .pretty_printers .append (json_lookup_function )
You can’t perform that action at this time.
0 commit comments