forked from OSchip/llvm-project
Another patch from Jean-Daniel. Thanks.
Error in dbg server -> MachProcess::SetProcessID() and misc changes to make clang++ happy. llvm-svn: 114962
This commit is contained in:
parent
01d20a76fe
commit
c0cd18d1f7
|
@ -130,7 +130,7 @@ MachProcess::SetProcessID(pid_t pid)
|
|||
Clear();
|
||||
// Set the current PID appropriately
|
||||
if (pid == 0)
|
||||
m_pid == ::getpid ();
|
||||
m_pid = ::getpid ();
|
||||
else
|
||||
m_pid = pid;
|
||||
return m_pid; // Return actualy PID in case a zero pid was passed in
|
||||
|
|
|
@ -38,8 +38,8 @@ public:
|
|||
static const DNBRegisterSetInfo *
|
||||
GetRegisterSetInfo(nub_size_t *num_reg_sets);
|
||||
|
||||
virtual bool GetRegisterValue(int set, int reg, DNBRegisterValue *reg);
|
||||
virtual bool SetRegisterValue(int set, int reg, const DNBRegisterValue *reg);
|
||||
virtual bool GetRegisterValue(int set, int reg, DNBRegisterValue *value);
|
||||
virtual bool SetRegisterValue(int set, int reg, const DNBRegisterValue *value);
|
||||
virtual nub_size_t GetRegisterContext (void *buf, nub_size_t buf_len);
|
||||
virtual nub_size_t SetRegisterContext (const void *buf, nub_size_t buf_len);
|
||||
virtual kern_return_t GetRegisterState (int set, bool force);
|
||||
|
|
|
@ -38,8 +38,8 @@ public:
|
|||
static const DNBRegisterSetInfo *
|
||||
GetRegisterSetInfo(nub_size_t *num_reg_sets);
|
||||
|
||||
virtual bool GetRegisterValue(int set, int reg, DNBRegisterValue *reg);
|
||||
virtual bool SetRegisterValue(int set, int reg, const DNBRegisterValue *reg);
|
||||
virtual bool GetRegisterValue(int set, int reg, DNBRegisterValue *value);
|
||||
virtual bool SetRegisterValue(int set, int reg, const DNBRegisterValue *value);
|
||||
virtual nub_size_t GetRegisterContext (void *buf, nub_size_t buf_len);
|
||||
virtual nub_size_t SetRegisterContext (const void *buf, nub_size_t buf_len);
|
||||
|
||||
|
|
|
@ -26,7 +26,7 @@ public:
|
|||
invalid_pid = -1
|
||||
};
|
||||
|
||||
typedef enum Error
|
||||
enum Error
|
||||
{
|
||||
success = 0,
|
||||
err_posix_openpt_failed = -2,
|
||||
|
|
|
@ -239,7 +239,7 @@ protected:
|
|||
|
||||
// gdb can send multiple Z/z packets for the same address and
|
||||
// these calls must be ref counted.
|
||||
typedef struct Breakpoint
|
||||
struct Breakpoint
|
||||
{
|
||||
Breakpoint(nub_break_t breakID) :
|
||||
m_breakID(breakID),
|
||||
|
|
Loading…
Reference in New Issue