include stdarg.h via va_arg

Self explanatory I guess... Fixes the Linux build for me.

Thanks,
Dragos

lldb_fix_va_arg.patch (327 Bytes)

Forgot to put in the compile error msg:
/w/llvm/tools/lldb/source/Host/common/Host.cpp:235:1: error: prototype
for ‘void lldb_private::Host::SystemLog(lldb_private::Host::SystemLogType,
const char*, __va_list_tag*)’ does not match any in class
‘lldb_private::Host’
/w/llvm/tools/lldb/source/Host/common/../../../include/lldb/Host/Host.h:130:5:
error: candidates are: static void
lldb_private::Host::SystemLog(lldb_private::Host::SystemLogType, const
char*, int)
/w/llvm/tools/lldb/source/Host/common/../../../include/lldb/Host/Host.h:127:5:
error: static void
lldb_private::Host::SystemLog(lldb_private::Host::SystemLogType, const
char*, ...)

Thanks,
Dragos

Odd...I'm not seeing this error with a clean Linux build on my system. I'm using clang 2.9 to compile everything. What compiler/version are you using?

Mark

I'm on Ubuntu 11.10 and 10.11 :slight_smile: with gcc 4.4 & 4.6. Clang is up to
the latest (lldb) rev. One thing though is that both were incremental
builds. That could be an issue.

Thanks,
Dragos

I had to make this change to. Sorry I forgot to submit a patch for it.

-Dawn