LoginSignup
0
0

gdbを便利に使うためのtips

Last updated at Posted at 2023-10-17

gdb -pをsudoなしで実行する

Intel VTune Profiler の使い方 でやってた奴だけど、

echo 0 > /proc/sys/kernel/yama/ptrace_scope

でok。CRubyのmakeの RUBY_ON_BUG="gdb -p" で使える

layout asmで表示アドレスを移動する

disas [address],[address]

e.g.

disas 0x562ace7b322a,0x562ace7b322a
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0