LLVM Bugzilla is read-only and represents the historical archive of all LLVM issues filled before November 26, 2021. Use github to submit LLVM bugs

Bug 16697 - Expression evaluation fails on FreeBSD
Summary: Expression evaluation fails on FreeBSD
Status: RESOLVED FIXED
Alias: None
Product: lldb
Classification: Unclassified
Component: All Bugs (show other bugs)
Version: unspecified
Hardware: PC FreeBSD
: P normal
Assignee: LLDB commit list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-07-24 15:05 PDT by emaste
Modified: 2013-08-30 09:04 PDT (History)
1 user (show)

See Also:
Fixed By Commit(s):


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description emaste 2013-07-24 15:05:53 PDT
E.g. 

% LLDB=../../../build/bin/lldb-3.4                                                
% python dotest.py -t -v --executable $LLDB -p TestPublicAPIHeaders -f SBDirCheckerCase.test_sb_api_directory                                       


runCmd: expression -- (int)strlen("hello")
runCmd failed!
error: Expression can't be run, because there is no JIT compiled function

Related issue on Linux pr14437
Comment 1 Ashok Thirumurthi 2013-08-14 18:54:06 PDT
Is strlen a GNU indirect function?  If so, do function calls that do not involve trampolines execute correctly in expressions?
Comment 2 emaste 2013-08-30 08:31:01 PDT
This was caused by FreeBSD #defining USE_STANDARD_JIT, now removed in r189611.

(lldb) expr (int)strlen("hello")
(int) $0 = 5

Although the test infrastructure has been modified and the test now reports "This test is only for LLDB.framework built 64-bit and !lldb.test_remote"
Comment 3 emaste 2013-08-30 09:04:13 PDT
Fixed by r189611