Index: lldb/examples/python/crashlog.py =================================================================== --- lldb/examples/python/crashlog.py +++ lldb/examples/python/crashlog.py @@ -519,17 +519,23 @@ self.crashlog.threads.append(thread) idx += 1 - def parse_thread_registers(self, json_thread_state): + def parse_thread_registers(self, json_thread_state, prefix=None): registers = dict() for key, state in json_thread_state.items(): if key == "rosetta": - registers.update(self.parse_thread_registers(state)) - continue + registers.update(self.parse_thread_registers(state)) + continue + if key == "x": + registers.update(self.parse_thread_registers({ str(idx) : reg + for idx,reg in + enumerate(state)}, + prefix=key)) + continue try: - value = int(state['value']) - registers[key] = value + value = int(state['value']) + registers["{}{}".format(prefix,key)] = value except (KeyError, ValueError, TypeError): - pass + pass return registers def parse_errors(self, json_data):