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/21866] New: Stepi does not make progress with memory error


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

            Bug ID: 21866
           Summary: Stepi does not make progress with memory error
           Product: gdb
           Version: 8.0.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: gdb
          Assignee: unassigned at sourceware dot org
          Reporter: benno.fuenfstueck at gmail dot com
  Target Milestone: ---

On certain programs, GDB's `stepi` command does not work anymore (neither do
`break` or any of the examine commands). Only `continue` works in this
situation):

0x080485ee in main ()
(gdb) display/i $pc
1: x/i $pc
=> 0x80485ee <main+51>: mov    DWORD PTR ds:0x804a020,0x2
(gdb) si
Cannot access memory at address 0xdeadbeeb
(gdb) si
Cannot access memory at address 0xdeadbeeb
(gdb) bt
Python Exception <class 'gdb.MemoryError'> Cannot access memory at address
0xdeadbeeb: 
#0  0x080485ee in main ()
Cannot access memory at address 0xdeadbeeb
(gdb) p/x $pc
$1 = 0x80485ee
(gdb) si
Cannot access memory at address 0xdeadbeeb
(gdb) p/x $pc
$2 = 0x80485ee
(gdb) 

Program to reproduce:
https://gist.github.com/bennofs/84b5007fe807d59bbadc13c0b6ae2849

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