lldbinit icon indicating copy to clipboard operation
lldbinit copied to clipboard

disassemble error

Open arkdnz opened this issue 1 year ago • 1 comments

When start debugging,there through out an error

(lldbinit) Traceback (most recent call last):
  File "/home/rooter/lldbinit.py", line 5573, in HandleHookStopOnTarget
    disassemble(get_current_pc(), CONFIG_DISASSEMBLY_LINE_COUNT)
  File "/home/rooter/lldbinit.py", line 4163, in disassemble
    mod_uuid = str(mem_inst.addr.module.uuid)
                   ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/rooter/Desktop/kernel_dddd/ndk/android-ndk-r27c-linux/android-ndk-r27c/toolchains/llvm/prebuilt/linux-x86_64/lib/python3.11/site-packages/lldb/__init__.py", line 8011, in get_uuid
    return uuid.UUID (self.GetUUIDString())
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/rooter/Desktop/kernel_dddd/ndk/android-ndk-r27c-linux/android-ndk-r27c/toolchains/llvm/prebuilt/linux-x86_64/python3/lib/python3.11/uuid.py", line 178, in __init__
    raise ValueError('badly formed hexadecimal UUID string')
ValueError: badly formed hexadecimal UUID string

~~how to fix it~~

has found the problem,my pc has two lldb process, and i just kill them then it running

arkdnz avatar Jan 03 '25 06:01 arkdnz

I have replaced the uuid property with a method and that might fix any issues because I already had problems with other properties between different lldb versions. Will post updated version soon.

gdbinit avatar Jan 10 '25 19:01 gdbinit