-
Notifications
You must be signed in to change notification settings - Fork 14.8k
Open
Labels
bugzillaIssues migrated from bugzillaIssues migrated from bugzillagood first issuehttps://github.com/llvm/llvm-project/contributehttps://github.com/llvm/llvm-project/contributelldbwrong-debug
Description
Bugzilla Link | 39798 |
Version | 7.0 |
OS | All |
Attachments | testcase |
Reporter | LLVM Bugzilla Contributor |
Extended Description
(lldb) b main
Breakpoint 1: where = a.out`main + 4 at a-prepro.c:2303:5, address = 0x0000000100000b44
(lldb) r
Process 81971 launched: '/Users/davide/work/llvm-project-20170507/build-rel/bin/a.out' (x86_64)
a.out was compiled with optimization - stepping may behave oddly; variables may not be available.
Process 81971 stopped
- thread #1, queue = 'com.apple.main-thread', stop reason = breakpoint 1.1
frame #0: 0x0000000100000b44 a.out`main(argc=1, argv=0x00007ffeefbffaf0) at a-prepro.c:2303:5 [opt]
2300 int print_hash_value = 0;
2301 if (argc == 2 && strcmp(argv[1], "1") == 0) print_hash_value = 1;
2302 platform_main_begin();
-> 2303 func_1();
2304 for (i = 0; i < 8; i++)
2305 {
2306 csmith_sink_ = g_8[i];
(lldb) frame var g_88
(S0 [5]) g_88 = <DW_OP_piece for offset 4 but top of stack is of size 108>
(lldb) p g_88
error: Couldn't materialize: couldn't get the value of variable g_88: DW_OP_piece for offset 4 but top of stack is of size 108
error: errored out in DoExecute, couldn't PrepareToExecuteJITExpression
$ ./clang a-prepro.c -g -O1 -Wno-everything
Metadata
Metadata
Assignees
Labels
bugzillaIssues migrated from bugzillaIssues migrated from bugzillagood first issuehttps://github.com/llvm/llvm-project/contributehttps://github.com/llvm/llvm-project/contributelldbwrong-debug