This is the mail archive of the gdb-prs@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug gdb/19271] New: mmap support for gdb


https://sourceware.org/bugzilla/show_bug.cgi?id=19271

            Bug ID: 19271
           Summary: mmap support for gdb
           Product: gdb
           Version: 7.10
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: gdb
          Assignee: unassigned at sourceware dot org
          Reporter: smallayy at in dot ibm.com
  Target Milestone: ---

Created attachment 8798
  --> https://sourceware.org/bugzilla/attachment.cgi?id=8798&action=edit
patch for mmap in gdb

When accessing the memory region set up by the mmap() call in the process that
crashed will result in an out-of-bounds error inside a gdb.
The actual contiguous memory contents are located within the core file in a
different segment. 
Use of this new 'mmapfile' command to re-map the memory contents to the
specific address in memory where they were located when the process was
running.
This ensures that dereferencing pointers while examining the core file returns
the correct memory contents.

Attached document covers the testing with new mmap command and the patch for
mmap implementation.

I have tested this implementation in AIX for xcoff object & in X86 for
elf64-x86-64.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]