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 corefiles/18227] New: can't modify memory in core file, even with --write


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

            Bug ID: 18227
           Summary: can't modify memory in core file, even with --write
           Product: gdb
           Version: HEAD
            Status: NEW
          Severity: normal
          Priority: P2
         Component: corefiles
          Assignee: unassigned at sourceware dot org
          Reporter: xdje42 at gmail dot com

bash$ gdb segv.x64 core.12925
(gdb) set {int} $rsp = 1
Cannot access memory at address 0x7fffd66f9cd0

So far so good.

bash$ gdb --write segv.x64 core.12925
(gdb) p {int} $rsp
$1 = 0
(gdb) set {int} $rsp = 1
(gdb) p {int} $rsp
$2 = 0
(gdb)

Oops.
[If there's still a reason to reject the write
gdb should at least not be silent about it.]

-- 
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]