Commit b20fcd5709c99524f3ec38483a70cf44eb6e2906
receivedSun, 27. Nov 2022, 18:52:35 (by user sx)
Sun, 27 Nov 2022 17:52:35 +0000 (18:52 +0100)
authorManfred Steiner <sx@htl-kaindorf.at>
Sun, 27 Nov 2022 17:51:54 +0000 (18:51 +0100)
committerManfred Steiner <sx@htl-kaindorf.at>
Sun, 27 Nov 2022 17:51:54 +0000 (18:51 +0100)
simavr/sim/sim_gdb.c

index cd2196ea5c7f673438df47014a46c6ff3de3c2cd..3989fc61a4fb8793361a79cba350cd57d92d3296 100644 (file)
@@ -659,7 +659,7 @@ gdb_handle_command(
                        uint8_t * src = NULL;
                        /* GDB seems to also use 0x1800000 for sram ?!?! */
                        addr &= 0xffffff;
-                       if (addr < avr->flashend) {
+                       if (addr <= avr->flashend) {
                                src = avr->flash + addr;
                        } else if (addr >= 0x800000 && (addr - 0x800000) <= avr->ramend) {
                                src = avr->data + addr - 0x800000;