@@ -346,7 +346,7 @@ void NotifyGdb::MethodCompiled(MethodDesc* MethodDescPtr)
346
346
347
347
/* Patch section offsets & sizes */
348
348
long offset = sizeof (Elf_Ehdr);
349
- Elf_Shdr* pShdr = reinterpret_cast <Elf_Shdr*>(sectHeaders.MemPtr .Extract ());
349
+ Elf_Shdr* pShdr = reinterpret_cast <Elf_Shdr*>(sectHeaders.MemPtr .GetValue ());
350
350
++pShdr; // .text
351
351
pShdr->sh_addr = pCode;
352
352
pShdr->sh_size = codeSize;
@@ -384,7 +384,7 @@ void NotifyGdb::MethodCompiled(MethodDesc* MethodDescPtr)
384
384
{
385
385
return ;
386
386
}
387
- Elf_Ehdr* header = reinterpret_cast <Elf_Ehdr*>(elfHeader.MemPtr .Extract ());
387
+ Elf_Ehdr* header = reinterpret_cast <Elf_Ehdr*>(elfHeader.MemPtr .GetValue ());
388
388
#ifdef _TARGET_ARM_
389
389
header->e_flags = EF_ARM_EABI_VER5;
390
390
#ifdef ARM_SOFTFP
@@ -516,7 +516,7 @@ bool NotifyGdb::BuildLineTable(MemBuf& buf, PCODE startAddr, SymbolsInfo* lines,
516
516
}
517
517
518
518
/* Fill the line info header */
519
- DwarfLineNumHeader* header = reinterpret_cast <DwarfLineNumHeader*>(buf.MemPtr .Extract ());
519
+ DwarfLineNumHeader* header = reinterpret_cast <DwarfLineNumHeader*>(buf.MemPtr .GetValue ());
520
520
memcpy (buf.MemPtr , &LineNumHeader, sizeof (DwarfLineNumHeader));
521
521
header->m_length = buf.MemSize - sizeof (uint32_t );
522
522
header->m_hdr_length = sizeof (DwarfLineNumHeader) + 1 + fileTable.MemSize - 2 * sizeof (uint32_t ) - sizeof (uint16_t );
@@ -535,7 +535,7 @@ bool NotifyGdb::BuildFileTable(MemBuf& buf, SymbolsInfo* lines, unsigned nlines)
535
535
const char ** files = nullptr ;
536
536
unsigned nfiles = 0 ;
537
537
538
- /* Extract file names and replace them with indices in file table */
538
+ /* GetValue file names and replace them with indices in file table */
539
539
files = new (nothrow) const char *[nlines];
540
540
if (files == nullptr )
541
541
return false ;
@@ -753,7 +753,7 @@ bool NotifyGdb::BuildDebugInfo(MemBuf& buf)
753
753
return false ;
754
754
755
755
/* Compile uint header */
756
- DwarfCompUnit* cu = reinterpret_cast <DwarfCompUnit*>(buf.MemPtr .Extract ());
756
+ DwarfCompUnit* cu = reinterpret_cast <DwarfCompUnit*>(buf.MemPtr .GetValue ());
757
757
cu->m_length = buf.MemSize - sizeof (uint32_t );
758
758
cu->m_version = 4 ;
759
759
cu->m_abbrev_offset = 0 ;
@@ -783,7 +783,7 @@ bool NotifyGdb::BuildDebugPub(MemBuf& buf, const char* name, uint32_t size, uint
783
783
if (buf.MemPtr == nullptr )
784
784
return false ;
785
785
786
- DwarfPubHeader* header = reinterpret_cast <DwarfPubHeader*>(buf.MemPtr .Extract ());
786
+ DwarfPubHeader* header = reinterpret_cast <DwarfPubHeader*>(buf.MemPtr .GetValue ());
787
787
header->m_length = length - sizeof (uint32_t );
788
788
header->m_version = 2 ;
789
789
header->m_debug_info_off = 0 ;
0 commit comments