mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
Merge branch 'bugfix/coredump_memregion_size' into 'master'
coredump: Fixes size of memory region used by espcoredump.py See merge request espressif/esp-idf!8975
This commit is contained in:
commit
b73a38da9e
@ -889,7 +889,7 @@ class ESPCoreDumpLoader(ESPCoreDumpVersion):
|
|||||||
core_off += self.ESP_COREDUMP_MEM_SEG_HDR_SZ
|
core_off += self.ESP_COREDUMP_MEM_SEG_HDR_SZ
|
||||||
mem_start,mem_sz = struct.unpack_from(self.ESP_COREDUMP_MEM_SEG_HDR_FMT, data)
|
mem_start,mem_sz = struct.unpack_from(self.ESP_COREDUMP_MEM_SEG_HDR_FMT, data)
|
||||||
logging.debug("Read memory segment %d bytes @ 0x%x" % (mem_sz, mem_start))
|
logging.debug("Read memory segment %d bytes @ 0x%x" % (mem_sz, mem_start))
|
||||||
data = self.read_data(core_off, stack_len_aligned)
|
data = self.read_data(core_off, mem_sz)
|
||||||
core_elf.add_program_segment(mem_start, data, ESPCoreDumpElfFile.PT_LOAD, ESPCoreDumpSegment.PF_R | ESPCoreDumpSegment.PF_W)
|
core_elf.add_program_segment(mem_start, data, ESPCoreDumpElfFile.PT_LOAD, ESPCoreDumpSegment.PF_R | ESPCoreDumpSegment.PF_W)
|
||||||
core_off += mem_sz
|
core_off += mem_sz
|
||||||
# add notes
|
# add notes
|
||||||
|
Loading…
Reference in New Issue
Block a user