lldb::ProcessSP proc = thread.GetProcess( );
// push host data onto target
- for ( int i = 0; i < args.size( ); i++ )
+ for ( size_t i = 0; i < args.size( ); i++ )
{
const ABI::CallArgument &arg = args[i];
// skip over target values
#if HEX_ABI_DEBUG
// print the original stack pointer
- printf( "sp : %04x \n", sp );
+ printf( "sp : %04lx \n", sp );
#endif
// make sure number of parameters matches prototype
// pass arguments that are passed via registers
for ( int i = 0; i < nRegArgs; i++ )
{
- // get this parameter type
- llvm::Type *argType = prototype.getFunctionParamType( i );
// get the parameter as a u32
uint32_t param = (uint32_t)args[i].value;
// write argument into register
sp -= 4;
// arguments that are passed on the stack
- for ( int i = nRegArgs, offs=0; i < args.size( ); i++ )
+ for ( size_t i = nRegArgs, offs=0; i < args.size( ); i++ )
{
// get the parameter as a u32
uint32_t param = (uint32_t)args[i].value;
uint32_t data = 0;
lldb::addr_t addr = sp + i * 4;
proc->ReadMemory( addr, (void*)&data, sizeof( data ), error );
- printf( "\n0x%04x 0x%08x ", addr, data );
+ printf( "\n0x%04lx 0x%08x ", addr, data );
if ( i == 0 ) printf( "<<-- sp" );
}
printf( "\n" );
return true;
}
-static bool
-ReadIntegerArgument ( Scalar &scalar,
- unsigned int bit_width,
- bool is_signed,
- Thread &thread,
- uint32_t *argument_register_ids,
- unsigned int ¤t_argument_register,
- addr_t ¤t_stack_argument)
-{
- return false;
-}
-
bool
ABISysV_hexagon::GetArgumentValues ( Thread &thread, ValueList &values ) const
{
ConstString("")
);
return vObjSP;
-}
\ No newline at end of file
+}
lldb_private::Symtab *symtab = exe->GetSymtab( );
assert( symtab != nullptr );
- int nSyms = symtab->GetNumSymbols( );
-
- for ( int i = 0; i < symtab->GetNumSymbols( ); i++ )
+ for ( size_t i = 0; i < symtab->GetNumSymbols( ); i++ )
{
const Symbol* sym = symtab->SymbolAtIndex( i );
assert( sym != nullptr );
dyld_instance->m_rendezvous.SetRendezvousAddress( structAddr );
if ( log )
- log->Printf( "Found _rtld_debug structure @ 0x%08x", structAddr );
+ log->Printf( "Found _rtld_debug structure @ 0x%08lx", structAddr );
}
else
{