core local memory support for core files

Mike Stump mikestump@comcast.net
Fri Oct 7 01:49:00 GMT 2016


This patch adds core local memory for core files.

It follows the /%d convention that is used by .reg for multi-core support.  Personally, I'm using .sdata/%d, but, since we only look for /%d, one is free to use .data/%d, .sdata/%d and so on.

Ok?

If people like it, can someone apply it for me, my gdb tree is just read-only.

$  mach-objdump -a -x /tmp/dump 

/tmp/dump:     file format mach-core
/tmp/dump
architecture: mach, flags 0x00000000:

start address 0x0000000000000000

Sections:
Idx Name          Size      VMA               LMA               File off  Algn
  0 .reg/25449    0
                  CONTENTS
  1 .sdata/25449  0
                  CONTENTS, ALLOC, LOAD
  2 .reg/485223   0
                  CONTENTS
  3 .sdata/485223 0
                  CONTENTS, ALLOC, LOAD
SYMBOL TABLE:
no symbols




2016-10-06  Mike Stump  <mikestump@comcast.net>

	* exec.c (section_table_xfer_memory_partial): Add core local memory.

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: gdb-2.diffs.txt
URL: <http://sourceware.org/pipermail/gdb-patches/attachments/20161007/fab9793a/attachment.txt>


More information about the Gdb-patches mailing list