This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Summary: | No source code shown when attaching to process on OS X with lldb-mi | ||
---|---|---|---|
Product: | cnd | Reporter: | PerMildner |
Component: | Debugger | Assignee: | henk89 |
Status: | RESOLVED INCOMPLETE | ||
Severity: | normal | ||
Priority: | P3 | ||
Version: | 8.1 | ||
Hardware: | PC | ||
OS: | Mac OS X | ||
Issue Type: | DEFECT | Exception Reporter: | |
Attachments: | GDB log |
Description
PerMildner
2015-05-02 16:14:01 UTC
Please provide me with a gdb log. Its location is shown in the first line in the debugger console. Created attachment 154656 [details]
GDB log
I have updated to Xcode 6.4 since the original bug report:
bash-3.2$ cc --version
Apple LLVM version 6.1.0 (clang-602.0.53) (based on LLVM 3.6.0svn)
Target: x86_64-apple-darwin14.4.0
Thread model: posix
bash-3.2$ cc -g -Wall -Werror test.c -o test
bash-3.2$ ./test
Tick 1
It looks like there is no symbolic info in the binary being debugged or maybe there is an incompatibility issue. Are you able to debug in the command line mode? BTW, disassembly should work in the next nightly build. Source debugging works from the command line, both with lldb and with gdb: bash-3.2$ LLDB_DEBUGSERVER_PATH=~/bin/llvm-git/bin/debugserver ~/bin/llvm-git/bin/lldb -- ./test (lldb) target create "./test" Current executable set to './test' (x86_64). (lldb) run Process 69493 launched: './test' (x86_64) Tick 1 Tick 2 Tick 3 C-c C-cProcess 69493 stopped ... (lldb) up ... (lldb) ... (lldb) frame #3: 0x0000000100000f40 test`main(argc=1, argv=0x00007fff5fbff8d0) + 112 at test.c:10 7 while (tick++ < 10000) { 8 fprintf(stderr, "Tick %d\n", tick); 9 fflush(stderr); -> 10 sleep(1); 11 } 12 return 0; 13 } (lldb) Have you tried the latest build yet? |