Spacc BBS Spacc BBS
    • Categorie
    • Recenti
    • Tag
    • Popolare
    • Mondo
    • Utenti
    • Gruppi
    • Registrati
    • Accedi
    La nuova BBS è in fase Alpha. I post precedenti al 22 luglio 2024 potrebbero non essere trasferibili, ma rimarranno disponibili per la lettura su /old/.

    I'm reading gdb manual for the first time after using it blind for ages.

    Pianificato Fissato Bloccato Spostato Uncategorized
    3 Post 2 Autori 4 Visualizzazioni
    Caricamento altri post
    • Da Vecchi a Nuovi
    • Da Nuovi a Vecchi
    • Più Voti
    Rispondi
    • Topic risposta
    Effettua l'accesso per rispondere
    Questa discussione è stata eliminata. Solo gli utenti con diritti di gestione possono vederla.
    • snowycoder@a.junimo.partyS Questo utente è esterno a questo forum
      snowycoder@a.junimo.party
      ultima modifica di

      I'm reading gdb manual for the first time after using it blind for ages.

      I could've always had access to reverse execution and bookmarks? What?
      Why didn't I read this before, I want my hours debugging and restarting weird programs back.

      steffo@a.junimo.partyS 1 Risposta Ultima Risposta Rispondi Cita 0
      • steffo@a.junimo.partyS Questo utente è esterno a questo forum
        steffo@a.junimo.party @snowycoder@a.junimo.party
        ultima modifica di

        @snowycoder wait, does reverse execution mean what i think it means?

        undo a line of code being executed... somehow?

        snowycoder@a.junimo.partyS 1 Risposta Ultima Risposta Rispondi Cita 0
        • snowycoder@a.junimo.partyS Questo utente è esterno a questo forum
          snowycoder@a.junimo.party @steffo@a.junimo.party
          ultima modifica di

          @steffo yess!
          You just do a reverse next and you can inspect the state of the system before that instruction was executed. It's the holy grail of debugging.

          Some emulators might have these commands built-in, but for x86-64 it seems to magically records the changes to the registers and the memory, and when you undo an instruction it enters replay mode.

          It should be just like "ohh, my program is trying to fetch code ad 0x0000, press undo, ah here was the jump"

          1 Risposta Ultima Risposta Rispondi Cita 0
          • Primo post
            Ultimo post