@@ -1414,35 +1414,6 @@ class Process : public std::enable_shared_from_this<Process>,
1414
1414
// / this process.
1415
1415
virtual bool WarnBeforeDetach () const { return true ; }
1416
1416
1417
- // / Actually do the reading of memory from a process.
1418
- // /
1419
- // / Subclasses must override this function and can return fewer bytes than
1420
- // / requested when memory requests are too large. This class will break up
1421
- // / the memory requests and keep advancing the arguments along as needed.
1422
- // /
1423
- // / \param[in] vm_addr
1424
- // / A virtual load address that indicates where to start reading
1425
- // / memory from.
1426
- // /
1427
- // / \param[in] size
1428
- // / The number of bytes to read.
1429
- // /
1430
- // / \param[out] buf
1431
- // / A byte buffer that is at least \a size bytes long that
1432
- // / will receive the memory bytes.
1433
- // /
1434
- // / \param[out] error
1435
- // / An error that indicates the success or failure of this
1436
- // / operation. If error indicates success (error.Success()),
1437
- // / then the value returned can be trusted, otherwise zero
1438
- // / will be returned.
1439
- // /
1440
- // / \return
1441
- // / The number of bytes that were actually read into \a buf.
1442
- // / Zero is returned in the case of an error.
1443
- virtual size_t DoReadMemory (lldb::addr_t vm_addr, void *buf, size_t size,
1444
- Status &error) = 0;
1445
-
1446
1417
// / Read of memory from a process.
1447
1418
// /
1448
1419
// / This function will read memory from the current process's address space
@@ -2570,6 +2541,35 @@ void PruneThreadPlans();
2570
2541
bool trap_exceptions = false );
2571
2542
2572
2543
protected:
2544
+ // / Actually do the reading of memory from a process.
2545
+ // /
2546
+ // / Subclasses must override this function and can return fewer bytes than
2547
+ // / requested when memory requests are too large. This class will break up
2548
+ // / the memory requests and keep advancing the arguments along as needed.
2549
+ // /
2550
+ // / \param[in] vm_addr
2551
+ // / A virtual load address that indicates where to start reading
2552
+ // / memory from.
2553
+ // /
2554
+ // / \param[in] size
2555
+ // / The number of bytes to read.
2556
+ // /
2557
+ // / \param[out] buf
2558
+ // / A byte buffer that is at least \a size bytes long that
2559
+ // / will receive the memory bytes.
2560
+ // /
2561
+ // / \param[out] error
2562
+ // / An error that indicates the success or failure of this
2563
+ // / operation. If error indicates success (error.Success()),
2564
+ // / then the value returned can be trusted, otherwise zero
2565
+ // / will be returned.
2566
+ // /
2567
+ // / \return
2568
+ // / The number of bytes that were actually read into \a buf.
2569
+ // / Zero is returned in the case of an error.
2570
+ virtual size_t DoReadMemory (lldb::addr_t vm_addr, void *buf, size_t size,
2571
+ Status &error) = 0;
2572
+
2573
2573
void SetState (lldb::EventSP &event_sp);
2574
2574
2575
2575
lldb::StateType GetPrivateState ();
0 commit comments