Changeset 23d22eb in mainline for arch/amd64/src/debugger.c


Ignore:
Timestamp:
2006-03-17T11:55:43Z (19 years ago)
Author:
Ondrej Palkovsky <ondrap@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
bd72b475
Parents:
4e49572
Message:

Ported AMD64 debugger to ia32 and enabled AS watchpoint to ia32 as well.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • arch/amd64/src/debugger.c

    r4e49572 r23d22eb  
    192192}
    193193
     194#ifdef amd64
     195# define getip(x)  ((x)->rip)
     196#else
     197# define getip(x)  ((x)->eip)
     198#endif
     199
    194200static void handle_exception(int slot, istate_t *istate)
    195201{
     
    208214                }
    209215        }
    210         printf("Reached breakpoint %d:%P(%s)\n", slot, istate->rip,
    211                get_symtab_entry(istate->rip));
     216        printf("Reached breakpoint %d:%P(%s)\n", slot, getip(istate),
     217               get_symtab_entry(getip(istate)));
    212218        printf("***Type 'exit' to exit kconsole.\n");
    213219        atomic_set(&haltstate,1);
     
    222228       
    223229        /* Set RF to restart the instruction  */
     230#ifdef amd64       
    224231        istate->rflags |= RFLAGS_RF;
     232#else
     233        istate->eflags |= EFLAGS_RF;
     234#endif
    225235
    226236        dr6 = read_dr6();
Note: See TracChangeset for help on using the changeset viewer.