バブルソート(http://ow.ly/3xSFu5)のコードをlldbで実行したところ、
以下のような出力になりました。
下記の最後の4行の表示だと、
ソースコード上のどの行を指しているのか、ひと目でわかりません。
この表示を変えることは可能でしょうか?
/Users/localhost% gcc -g bubblesort.c /Users/localhost% lldb a.out (lldb) target create "a.out" Current executable set to 'a.out' (x86_64). (lldb) b main Breakpoint 1: where = a.out'main, address = 0x0000000100000d34 (lldb) r Process 18477 launched: '/Users/localmost/a.out' (x86_64) Process 18477 stopped * thread #1: tid = 0x27d2e3, 0x0000000100000d34 a.out`main, queue = 'com.apple.main-thread', stop reason = breakpoint 1.1 frame #0: 0x0000000100000d34 a.out`main a.out`main: -> 0x100000d34 <+0>: pushq %rbp 0x100000d35 <+1>: movq %rsp, %rbp 0x100000d38 <+4>: subq $0x20, %rsp 0x100000d3c <+8>: movl %edi, -0x14(%rbp)
回答2件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2015/05/18 00:26
2015/05/18 00:31