~ubuntu-branches/ubuntu/trusty/llvm-toolchain-snapshot/trusty-201310232150

« back to all changes in this revision

Viewing changes to lldb/source/Plugins/Process/FreeBSD/ProcessMonitor.cpp

  • Committer: Package Import Robot
  • Author(s): Sylvestre Ledru
  • Date: 2013-05-27 15:01:57 UTC
  • mfrom: (0.10.1) (0.9.1) (0.8.1) (0.7.1) (0.6.1) (0.5.2)
  • Revision ID: package-import@ubuntu.com-20130527150157-tdkrsjpuvht7v0qx
Tags: 1:3.4~svn182733-1~exp1
* New snapshot release (3.4 release)
* Add a symlink of libLLVM-3.4.so.1 to usr/lib/llvm-3.4/lib/libLLVM-3.4.so
    to fix make the llvm-config-3.4 --libdir work (Closes: #708677)
  * Various packages rename to allow co installations:
    * libclang1 => libclang1-3.4
    * libclang1-dbg => libclang1-3.4-dbg
    * libclang-dev => libclang-3.4-dev
    * libclang-common-dev => libclang-common-3.4-dev

Show diffs side-by-side

added added

removed removed

Lines of Context:
117
117
// Wrapper for ptrace when logging is not required.
118
118
// Sets errno to 0 prior to calling ptrace.
119
119
extern long
120
 
PtraceWrapper(__ptrace_request req, lldb::pid_t pid, void *addr, int data)
 
120
PtraceWrapper(int req, lldb::pid_t pid, void *addr, int data)
121
121
{
122
122
    long result = 0;
123
123
    errno = 0;
124
 
    result = ptrace(req, pid, addr, data);
 
124
    result = ptrace(req, pid, (caddr_t)addr, data);
125
125
    return result;
126
126
}
127
127
 
980
980
        goto FINISH;
981
981
 
982
982
    // Update the process thread list with this new thread.
983
 
    inferior.reset(new POSIXThread(processSP, pid));
 
983
    inferior.reset(new POSIXThread(*processSP, pid));
984
984
    process.GetThreadList().AddThread(inferior);
985
985
 
986
986
    // Let our process instance know the thread has stopped.
1066
1066
    }
1067
1067
 
1068
1068
    // Update the process thread list with the attached thread.
1069
 
    inferior.reset(new POSIXThread(processSP, pid));
 
1069
    inferior.reset(new POSIXThread(*processSP, pid));
1070
1070
    tl.AddThread(inferior);
1071
1071
 
1072
1072
    // Let our process instance know the thread has stopped.
1437
1437
}
1438
1438
 
1439
1439
bool
1440
 
ProcessMonitor::ReadRegisterValue(lldb::tid_t tid, unsigned offset,
 
1440
ProcessMonitor::ReadRegisterValue(lldb::tid_t tid, unsigned offset, const char* reg_name,
1441
1441
                                  unsigned size, RegisterValue &value)
1442
1442
{
1443
1443
    bool result;
1448
1448
 
1449
1449
bool
1450
1450
ProcessMonitor::WriteRegisterValue(lldb::tid_t tid, unsigned offset,
1451
 
                                   const RegisterValue &value)
 
1451
                                   const char* reg_name, const RegisterValue &value)
1452
1452
{
1453
1453
    bool result;
1454
1454
    WriteRegOperation op(offset, value, result);
1457
1457
}
1458
1458
 
1459
1459
bool
 
1460
ProcessMonitor::ReadRegisterSet(lldb::tid_t tid, void *buf, size_t buf_size, unsigned int regset)
 
1461
{
 
1462
    return false;
 
1463
}
 
1464
 
 
1465
bool
 
1466
ProcessMonitor::WriteRegisterSet(lldb::tid_t tid, void *buf, size_t buf_size, unsigned int regset)
 
1467
{
 
1468
    return false;
 
1469
}
 
1470
 
 
1471
 
 
1472
bool
1460
1473
ProcessMonitor::ReadGPR(lldb::tid_t tid, void *buf, size_t buf_size)
1461
1474
{
1462
1475
    bool result;