forked from OSchip/llvm-project
parent
dd39395f83
commit
d0b87d81a1
|
@ -1455,7 +1455,7 @@ ClangExpressionDeclMap::DoMaterialize
|
|||
if (log)
|
||||
log->PutCString("Not bothering to allocate a struct because no arguments are needed");
|
||||
|
||||
m_material_vars->m_allocated_area = NULL;
|
||||
m_material_vars->m_allocated_area = 0UL;
|
||||
|
||||
return true;
|
||||
}
|
||||
|
|
|
@ -462,7 +462,7 @@ ClangFunction::ExecuteFunction(ExecutionContext &exe_ctx, Stream &errors, bool s
|
|||
{
|
||||
const bool try_all_threads = false;
|
||||
const bool discard_on_error = true;
|
||||
return ExecuteFunction (exe_ctx, NULL, errors, stop_others, NULL, try_all_threads, discard_on_error, results);
|
||||
return ExecuteFunction (exe_ctx, NULL, errors, stop_others, 0UL, try_all_threads, discard_on_error, results);
|
||||
}
|
||||
|
||||
ExecutionResults
|
||||
|
|
|
@ -178,7 +178,7 @@ GetFreeBSDProcessArgs (const ProcessInstanceInfoMatch *match_info_ptr,
|
|||
ProcessInstanceInfo &process_info)
|
||||
{
|
||||
if (process_info.ProcessIDIsValid()) {
|
||||
int mib[4] = { CTL_KERN, KERN_PROC, KERN_PROC_ARGS, process_info.GetProcessID() };
|
||||
int mib[4] = { CTL_KERN, KERN_PROC, KERN_PROC_ARGS, (int)process_info.GetProcessID() };
|
||||
|
||||
char arg_data[8192];
|
||||
size_t arg_data_size = sizeof(arg_data);
|
||||
|
@ -243,7 +243,7 @@ GetFreeBSDProcessUserAndGroup(ProcessInstanceInfo &process_info)
|
|||
if (process_info.ProcessIDIsValid())
|
||||
{
|
||||
int mib[4] = { CTL_KERN, KERN_PROC, KERN_PROC_PID,
|
||||
process_info.GetProcessID() };
|
||||
(int)process_info.GetProcessID() };
|
||||
proc_kinfo_size = sizeof(struct kinfo_proc);
|
||||
|
||||
if (::sysctl (mib, 4, &proc_kinfo, &proc_kinfo_size, NULL, 0) == 0)
|
||||
|
@ -301,7 +301,7 @@ Host::GetAuxvData(lldb_private::Process *process)
|
|||
pid.piod_addr = &ps_strings;
|
||||
pid.piod_offs = ps_strings_addr;
|
||||
pid.piod_len = sizeof(ps_strings);
|
||||
if (::ptrace(PT_IO, process->GetID(), (caddr_t)&pid, NULL)) {
|
||||
if (::ptrace(PT_IO, process->GetID(), (caddr_t)&pid, 0)) {
|
||||
perror("failed to fetch ps_strings");
|
||||
buf_ap.release();
|
||||
goto done;
|
||||
|
@ -312,7 +312,7 @@ Host::GetAuxvData(lldb_private::Process *process)
|
|||
pid.piod_addr = aux_info;
|
||||
pid.piod_offs = auxv_addr;
|
||||
pid.piod_len = sizeof(aux_info);
|
||||
if (::ptrace(PT_IO, process->GetID(), (caddr_t)&pid, NULL)) {
|
||||
if (::ptrace(PT_IO, process->GetID(), (caddr_t)&pid, 0)) {
|
||||
perror("failed to fetch aux_info");
|
||||
buf_ap.release();
|
||||
goto done;
|
||||
|
|
|
@ -75,36 +75,36 @@ typedef struct
|
|||
|
||||
static OptionDefinition g_options[] =
|
||||
{
|
||||
{ LLDB_OPT_SET_1, true , "help" , 'h', no_argument , NULL, eArgTypeNone,
|
||||
{ LLDB_OPT_SET_1, true , "help" , 'h', no_argument , 0, eArgTypeNone,
|
||||
"Prints out the usage information for the LLDB debugger." },
|
||||
{ LLDB_OPT_SET_2, true , "version" , 'v', no_argument , NULL, eArgTypeNone,
|
||||
{ LLDB_OPT_SET_2, true , "version" , 'v', no_argument , 0, eArgTypeNone,
|
||||
"Prints out the current version number of the LLDB debugger." },
|
||||
{ LLDB_OPT_SET_3, true , "arch" , 'a', required_argument, NULL, eArgTypeArchitecture,
|
||||
{ LLDB_OPT_SET_3, true , "arch" , 'a', required_argument, 0, eArgTypeArchitecture,
|
||||
"Tells the debugger to use the specified architecture when starting and running the program. <architecture> must "
|
||||
"be one of the architectures for which the program was compiled." },
|
||||
{ LLDB_OPT_SET_3, true , "file" , 'f', required_argument, NULL, eArgTypeFilename,
|
||||
{ LLDB_OPT_SET_3, true , "file" , 'f', required_argument, 0, eArgTypeFilename,
|
||||
"Tells the debugger to use the file <filename> as the program to be debugged." },
|
||||
{ LLDB_OPT_SET_3, false, "core" , 'c', required_argument, NULL, eArgTypePath,
|
||||
{ LLDB_OPT_SET_3, false, "core" , 'c', required_argument, 0, eArgTypePath,
|
||||
"Tells the debugger to use the fullpath to <path> as the core file." },
|
||||
{ LLDB_OPT_SET_4, true , "attach-name" , 'n', required_argument, NULL, eArgTypeProcessName,
|
||||
{ LLDB_OPT_SET_4, true , "attach-name" , 'n', required_argument, 0, eArgTypeProcessName,
|
||||
"Tells the debugger to attach to a process with the given name." },
|
||||
{ LLDB_OPT_SET_4, true , "wait-for" , 'w', no_argument , NULL, eArgTypeNone,
|
||||
{ LLDB_OPT_SET_4, true , "wait-for" , 'w', no_argument , 0, eArgTypeNone,
|
||||
"Tells the debugger to wait for a process with the given pid or name to launch before attaching." },
|
||||
{ LLDB_OPT_SET_5, true , "attach-pid" , 'p', required_argument, NULL, eArgTypePid,
|
||||
{ LLDB_OPT_SET_5, true , "attach-pid" , 'p', required_argument, 0, eArgTypePid,
|
||||
"Tells the debugger to attach to a process with the given pid." },
|
||||
{ LLDB_3_TO_5, false, "script-language", 'l', required_argument, NULL, eArgTypeScriptLang,
|
||||
{ LLDB_3_TO_5, false, "script-language", 'l', required_argument, 0, eArgTypeScriptLang,
|
||||
"Tells the debugger to use the specified scripting language for user-defined scripts, rather than the default. "
|
||||
"Valid scripting languages that can be specified include Python, Perl, Ruby and Tcl. Currently only the Python "
|
||||
"extensions have been implemented." },
|
||||
{ LLDB_3_TO_5, false, "debug" , 'd', no_argument , NULL, eArgTypeNone,
|
||||
{ LLDB_3_TO_5, false, "debug" , 'd', no_argument , 0, eArgTypeNone,
|
||||
"Tells the debugger to print out extra information for debugging itself." },
|
||||
{ LLDB_3_TO_5, false, "source" , 's', required_argument, NULL, eArgTypeFilename,
|
||||
{ LLDB_3_TO_5, false, "source" , 's', required_argument, 0, eArgTypeFilename,
|
||||
"Tells the debugger to read in and execute the file <file>, which should contain lldb commands." },
|
||||
{ LLDB_3_TO_5, false, "editor" , 'e', no_argument , NULL, eArgTypeNone,
|
||||
{ LLDB_3_TO_5, false, "editor" , 'e', no_argument , 0, eArgTypeNone,
|
||||
"Tells the debugger to open source files using the host's \"external editor\" mechanism." },
|
||||
{ LLDB_3_TO_5, false, "no-lldbinit" , 'x', no_argument , NULL, eArgTypeNone,
|
||||
{ LLDB_3_TO_5, false, "no-lldbinit" , 'x', no_argument , 0, eArgTypeNone,
|
||||
"Do not automatically parse any '.lldbinit' files." },
|
||||
{ 0, false, NULL , 0 , 0 , NULL, eArgTypeNone, NULL }
|
||||
{ 0, false, NULL , 0 , 0 , 0, eArgTypeNone, NULL }
|
||||
};
|
||||
|
||||
static const uint32_t last_option_set_with_args = 2;
|
||||
|
|
Loading…
Reference in New Issue