2015-12-21 110 views
1

我開始使用LLDB,但它在一開始就崩潰了。FreeBSD:lldb確實崩潰,即使在hello.c上FreeBSD上的

[email protected] ~/sandbox % rake hello 
cc -I/usr/local/include -g -O0 -o hello.o -c hello.c 
cc -Wl,-L/usr/local/lib -o hello hello.o 
[email protected] ~/sandbox % lldb 
(lldb) target create hello 
Current executable set to 'hello' (i386). 
(lldb) source list 
8 { 
9  printf("Hello, world!\n"); 
10  return 0; 
11 } 
12 
(lldb) breakpoint set -f hello.c -l 9 
Breakpoint 1: where = hello`main + 31 at hello.c:9, address = 0x080485af 
(lldb) process launch 
Process 2409 launching 
Process 2409 stopped 
(lldb) Process 2409 launched: '/usr/home/user/sandbox/hello' (i386) 
Process 2409 stopped 
* thread #1: tid = 100224, 0x0818188f, stop reason = hardware error 
    frame #0: 0x0818188f 
-> 0x818188f: addb %al, (%eax) 
    0x8181891: addb %al, (%eax) 
    0x8181893: addb %al, (%eax) 
    0x8181895: addb %al, (%eax) 
(lldb) 

這三臺機器是一樣的。

我也在Linux上試過Gdb。在那裏,一切正常。

我做錯了什麼?

由於提前,

伯特倫

回答

0

LLDB不支持的FreeBSD/i386的主機了。從端口使用最新的gdb或切換到amd64。