@@ -485,14 +485,14 @@ inline bool LocalAddressSpace::findFunctionName(pint_t addr, char *buf,
485
485
486
486
#ifdef UNW_REMOTE
487
487
488
- // / OtherAddressSpace is used as a template parameter to UnwindCursor when
488
+ // / RemoteAddressSpace is used as a template parameter to UnwindCursor when
489
489
// / unwinding a thread in the another process. The other process can be a
490
490
// / different endianness and a different pointer size which is handled by
491
491
// / the P template parameter.
492
492
template <typename P>
493
- class OtherAddressSpace {
493
+ class RemoteAddressSpace {
494
494
public:
495
- OtherAddressSpace (task_t task) : fTask (task) {}
495
+ RemoteAddressSpace (task_t task) : fTask (task) {}
496
496
497
497
typedef typename P::uint_t pint_t ;
498
498
@@ -515,29 +515,29 @@ class OtherAddressSpace {
515
515
task_t fTask ;
516
516
};
517
517
518
- template <typename P> uint8_t OtherAddressSpace <P>::get8(pint_t addr) {
518
+ template <typename P> uint8_t RemoteAddressSpace <P>::get8(pint_t addr) {
519
519
return *((uint8_t *)localCopy (addr));
520
520
}
521
521
522
- template <typename P> uint16_t OtherAddressSpace <P>::get16(pint_t addr) {
522
+ template <typename P> uint16_t RemoteAddressSpace <P>::get16(pint_t addr) {
523
523
return P::E::get16 (*(uint16_t *)localCopy (addr));
524
524
}
525
525
526
- template <typename P> uint32_t OtherAddressSpace <P>::get32(pint_t addr) {
526
+ template <typename P> uint32_t RemoteAddressSpace <P>::get32(pint_t addr) {
527
527
return P::E::get32 (*(uint32_t *)localCopy (addr));
528
528
}
529
529
530
- template <typename P> uint64_t OtherAddressSpace <P>::get64(pint_t addr) {
530
+ template <typename P> uint64_t RemoteAddressSpace <P>::get64(pint_t addr) {
531
531
return P::E::get64 (*(uint64_t *)localCopy (addr));
532
532
}
533
533
534
534
template <typename P>
535
- typename P::uint_t OtherAddressSpace <P>::getP(pint_t addr) {
535
+ typename P::uint_t RemoteAddressSpace <P>::getP(pint_t addr) {
536
536
return P::getP (*(uint64_t *)localCopy (addr));
537
537
}
538
538
539
539
template <typename P>
540
- uint64_t OtherAddressSpace <P>::getULEB128(pint_t &addr, pint_t end) {
540
+ uint64_t RemoteAddressSpace <P>::getULEB128(pint_t &addr, pint_t end) {
541
541
uintptr_t size = (end - addr);
542
542
LocalAddressSpace::pint_t laddr = (LocalAddressSpace::pint_t ) localCopy (addr);
543
543
LocalAddressSpace::pint_t sladdr = laddr;
@@ -547,7 +547,7 @@ uint64_t OtherAddressSpace<P>::getULEB128(pint_t &addr, pint_t end) {
547
547
}
548
548
549
549
template <typename P>
550
- int64_t OtherAddressSpace <P>::getSLEB128(pint_t &addr, pint_t end) {
550
+ int64_t RemoteAddressSpace <P>::getSLEB128(pint_t &addr, pint_t end) {
551
551
uintptr_t size = (end - addr);
552
552
LocalAddressSpace::pint_t laddr = (LocalAddressSpace::pint_t ) localCopy (addr);
553
553
LocalAddressSpace::pint_t sladdr = laddr;
@@ -556,13 +556,14 @@ int64_t OtherAddressSpace<P>::getSLEB128(pint_t &addr, pint_t end) {
556
556
return result;
557
557
}
558
558
559
- template <typename P> void *OtherAddressSpace <P>::localCopy(pint_t addr) {
559
+ template <typename P> void *RemoteAddressSpace <P>::localCopy(pint_t addr) {
560
560
// FIX ME
561
561
}
562
562
563
563
template <typename P>
564
- bool OtherAddressSpace<P>::findFunctionName(pint_t addr, char *buf,
565
- size_t bufLen, unw_word_t *offset) {
564
+ bool RemoteAddressSpace<P>::findFunctionName(pint_t addr, char *buf,
565
+ size_t bufLen,
566
+ unw_word_t *offset) {
566
567
// FIX ME
567
568
}
568
569
@@ -578,23 +579,23 @@ struct unw_addr_space {
578
579
// / a 32-bit intel process.
579
580
struct unw_addr_space_i386 : public unw_addr_space {
580
581
unw_addr_space_i386 (task_t task) : oas(task) {}
581
- OtherAddressSpace <Pointer32<LittleEndian> > oas;
582
+ RemoteAddressSpace <Pointer32<LittleEndian>> oas;
582
583
};
583
584
584
585
// / unw_addr_space_x86_64 is the concrete instance that a unw_addr_space_t
585
586
// / points to when examining
586
587
// / a 64-bit intel process.
587
588
struct unw_addr_space_x86_64 : public unw_addr_space {
588
589
unw_addr_space_x86_64 (task_t task) : oas(task) {}
589
- OtherAddressSpace <Pointer64<LittleEndian> > oas;
590
+ RemoteAddressSpace <Pointer64<LittleEndian>> oas;
590
591
};
591
592
592
593
// / unw_addr_space_ppc is the concrete instance that a unw_addr_space_t points
593
594
// / to when examining
594
595
// / a 32-bit PowerPC process.
595
596
struct unw_addr_space_ppc : public unw_addr_space {
596
597
unw_addr_space_ppc (task_t task) : oas(task) {}
597
- OtherAddressSpace <Pointer32<BigEndian> > oas;
598
+ RemoteAddressSpace <Pointer32<BigEndian>> oas;
598
599
};
599
600
600
601
#endif // UNW_REMOTE
0 commit comments