【问题标题】:FreeBSD: lldb does crash even in hello.cFreeBSD:即使在 hello.c 中,lldb 也会崩溃
【发布时间】:2015-12-21 17:10:32
【问题描述】:

在 FreeBSD 上,我开始使用 LLDB,但一开始它就崩溃了。

user@host ~/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
user@host ~/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。在那里,一切正常。

我做错了什么?

提前致谢,

伯特伦

【问题讨论】:

    标签: freebsd lldb


    【解决方案1】:

    LLDB 目前不支持 FreeBSD/i386 主机。从端口使用最近的 gdb 或切换到 amd64。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-06-21
      • 1970-01-01
      • 1970-01-01
      • 2016-01-07
      • 2018-08-30
      相关资源
      最近更新 更多