diff options
author | Ed Maste <emaste@freebsd.org> | 2014-03-07 19:02:20 +0000 |
---|---|---|
committer | Ed Maste <emaste@freebsd.org> | 2014-03-07 19:02:20 +0000 |
commit | 49f359aea4b1d625946ca21c4a4cee8d8272dbc1 (patch) | |
tree | ce0fa9f789adf6cb9fc2608372eb6d621c0bf98f /clang/lib/Frontend/CreateInvocationFromCommandLine.cpp | |
parent | d9e9c72732c04f93f37c91bed6d50fecef2a19ee (diff) | |
download | llvm-49f359aea4b1d625946ca21c4a4cee8d8272dbc1.zip llvm-49f359aea4b1d625946ca21c4a4cee8d8272dbc1.tar.gz llvm-49f359aea4b1d625946ca21c4a4cee8d8272dbc1.tar.bz2 |
Fix malloc thread step-out test on FreeBSD
After hitting the malloc() breakpoint on FreeBSD our top frame is actually
an inlined function malloc_init.
* frame #0: 0x0000000800dcba19 libc.so.7`malloc [inlined] malloc_init at malloc.c:5397
frame #1: 0x0000000800dcba19 libc.so.7`malloc(size=1024) + 9 at malloc.c:5949
frame #2: 0x00000000004006e5 test_step_out_of_malloc_into_function_b_with_dwarf`b(val=1) + 37 at main2.cpp:29
Add a heuristic to keep stepping out until we come to a non-malloc caller,
before checking if it is our desired caller from the test code.
llvm.org/pr17944
llvm-svn: 203268
Diffstat (limited to 'clang/lib/Frontend/CreateInvocationFromCommandLine.cpp')
0 files changed, 0 insertions, 0 deletions