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:
Johnny Chen 2010-09-28 16:34:56 +00:00
parent 01d20a76fe
commit c0cd18d1f7
5 changed files with 7 additions and 7 deletions

View File

@ -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

View File

@ -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);

View File

@ -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);

View File

@ -26,7 +26,7 @@ public:
invalid_pid = -1
};
typedef enum Error
enum Error
{
success = 0,
err_posix_openpt_failed = -2,

View File

@ -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),