Giter Site home page Giter Site logo

42-libasm's Introduction

libasm

Tips

gcc -S -masm=intel tmp.c でIntel記法のアセンブリを出力できる

LLDB

# r8 register が指すメモリアドレスのデータを見る
(lldb)$ memory read '$r8'
# [$rbp - 8] が指すメモリアドレスのデータを見る
(lldb)$ memory read '*(char **)($rbp - 0x8)'
# int(4 bytes)のデータを見る
(lldb)$ memory read --size 4 --format x --count 1 '($rbp - 0x4)'

# 現在停止中の行から2行前、10行後を表示するように設定変更
# https://stackoverflow.com/questions/52274360/how-to-list-more-lines-of-code-code-in-lldb
(lldb)$ settings set stop-line-count-before 2
(lldb)$ settings set stop-line-count-after 10

Objdump

# disassemble with intel syntax
$ objdump -D -x86-asm-syntax=intel a.out

References

42-libasm's People

Contributors

junnetworks avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.