Tracing instruction in lldb debugger.Just a python-script for lldb.

Overview

lldb-trace

Tracing instruction in lldb debugger. just a python-script for lldb.

How to use it?
  1. Break at an address where you want to begin tracing.

  1. Import lldb python script.

  1. Set an address where you want to end tracing.

  1. Use 'trace' command,and redirect log to file.

trace -e 0x111111 -l all -t ~/tracelog.txt -d ~/debuglog.txt

参考:https://github.com/gm281/lldb-trace

You might also like...
Little helper to run Steam apps under Proton with a GDB debugger

protongdb A small little helper for running games with Proton and debugging with GDB Requirements At least Python 3.5 protontricks pip package and its

Full featured multi arch/os debugger built on top of PyQt5 and frida

Full featured multi arch/os debugger built on top of PyQt5 and frida

Arghonaut is an interactive interpreter, visualizer, and debugger for Argh! and Aargh!

Arghonaut Arghonaut is an interactive interpreter, visualizer, and debugger for Argh! and Aargh!, which are Befunge-like esoteric programming language

A simple rubber duck debugger

Rubber Duck Debugger I found myself many times asking a question on StackOverflow or to one of my colleagues just for finding the solution simply by d

Hdbg - Historical Debugger
Hdbg - Historical Debugger

hdbg - Historical Debugger This is in no way a finished product. Do not use this

Trashdbg - TrashDBG the world's worse debugger
Trashdbg - TrashDBG the world's worse debugger

The world's worse debugger Over the course of multiple OALABS Twitch streams we

The official code of LM-Debugger, an interactive tool for inspection and intervention in transformer-based language models.
The official code of LM-Debugger, an interactive tool for inspection and intervention in transformer-based language models.

LM-Debugger is an open-source interactive tool for inspection and intervention in transformer-based language models. This repository includes the code

Trace any Python program, anywhere!

lptrace lptrace is strace for Python programs. It lets you see in real-time what functions a Python program is running. It's particularly useful to de

Debugging manhole for python applications.

Overview docs tests package Manhole is in-process service that will accept unix domain socket connections and present the stacktraces for all threads

Comments
  • 'err : ALSR is None'

    'err : ALSR is None'

    TypeError: unsupported operand type(s) for -: 'int' and 'NoneType' File "/Users/incollagepro/lldb-trace/lldbTrace.py", line 409, in print_tracing_progress file_addr = mem_addr - ASLR

    还有589 也是NoneType 需要加上 str(sym_name) self.append_msg = sym_name + self.append_msg

    opened by idewindy 2
  • 遇到了一个报错

    遇到了一个报错

    error: libarclite_iphoneos.a(arclite.o) failed to load objfile for /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/arc/libarclite_iphoneos.a │ PLEASE submit a bug report to https://bugs.llvm.org/ and include the crash backtrace. │ Stack dump: │ 0. Program arguments: /Applications/Xcode.app/Contents/Developer/usr/bin/lldb 是什么原因呢?

    opened by ChandHsu 0
  • bug we need set ASLR to number, not str

    bug we need set ASLR to number, not str

    def init_ASLR(debugger:lldb.SBDebugger):
    global ASLR interpreter:lldb.SBCommandInterpreter = debugger.GetCommandInterpreter() returnObject = lldb.SBCommandReturnObject() interpreter.HandleCommand('image list -o', returnObject) output = returnObject.GetOutput() match = re.match(r'.+(0x[0-9a-fA-F]+)', output) if match: ASLRHexStr:str = match.group(1) ASLR = int(ASLRHexStr,16) print('ALSR : {}'.format(ASLRHexStr)) return ASLRHexStr else: ASLR = '' ====> set 0 print('err : ALSR is None') return None

    opened by TinyNiko 0
  • 通过.plt段调用函数时好像有问题

    通过.plt段调用函数时好像有问题

    Dingtalk_20210916170524 Dingtalk_20210916170540 如图所示,在.plt里的get_state函数的ldr pc指令之后应该是跳到.text段的get_state函数里才对。但是trace.log文件里缺没有.text段的内容。 Dingtalk_20210916170745

    我看debug.log文件里有这样的内容: Dingtalk_20210916171424

    查看代码,它好像是认为.text段已经超出get_state()符号范围了,就没有记录了 Dingtalk_20210916171629

    有办法把.text段里get_state()真正的内容记录到trace.log里吗?

    opened by yinXlms 0
Owner
null
pdb++, a drop-in replacement for pdb (the Python debugger)

pdb++, a drop-in replacement for pdb What is it? This module is an extension of the pdb module of the standard library. It is meant to be fully compat

null 1k Dec 24, 2022
Full-screen console debugger for Python

PuDB: a console-based visual debugger for Python Its goal is to provide all the niceties of modern GUI-based debuggers in a more lightweight and keybo

Andreas Klöckner 2.6k Jan 1, 2023
Debugger capable of attaching to and injecting code into python processes.

DISCLAIMER: This is not an official google project, this is just something I wrote while at Google. Pyringe What this is Pyringe is a python debugger

Google 1.6k Dec 15, 2022
pdb++, a drop-in replacement for pdb (the Python debugger)

pdb++, a drop-in replacement for pdb What is it? This module is an extension of the pdb module of the standard library. It is meant to be fully compat

null 1k Jan 2, 2023
Graphical Python debugger which lets you easily view the values of all evaluated expressions

birdseye birdseye is a Python debugger which records the values of expressions in a function call and lets you easily view them after the function exi

Alex Hall 1.5k Dec 24, 2022
Voltron is an extensible debugger UI toolkit written in Python.

Voltron is an extensible debugger UI toolkit written in Python. It aims to improve the user experience of various debuggers (LLDB, GDB, VDB an

snare 5.9k Dec 30, 2022
NoPdb: Non-interactive Python Debugger

NoPdb: Non-interactive Python Debugger Installation: pip install nopdb Docs: https://nopdb.readthedocs.io/ NoPdb is a programmatic (non-interactive) d

Ondřej Cífka 67 Oct 15, 2022
Visual Interaction with Code - A portable visual debugger for python

VIC Visual Interaction with Code A simple tool for debugging and interacting with running python code. This tool is designed to make it easy to inspec

Nathan Blank 1 Nov 16, 2021
An improbable web debugger through WebSockets

wdb - Web Debugger Description wdb is a full featured web debugger based on a client-server architecture. The wdb server which is responsible of manag

Kozea 1.6k Dec 9, 2022
PINCE is a front-end/reverse engineering tool for the GNU Project Debugger (GDB), focused on games.

PINCE is a front-end/reverse engineering tool for the GNU Project Debugger (GDB), focused on games. However, it can be used for any reverse-engi

Korcan Karaokçu 1.5k Jan 1, 2023