Changeset e07fe0c in mainline for arch/mips32/src/exception.c


Ignore:
Timestamp:
2005-12-12T17:23:09Z (19 years ago)
Author:
Ondrej Palkovsky <ondrap@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
fbe058f
Parents:
ebbdb8f
Message:

added support for breakpoints to mips32

File:
1 edited

Legend:

Unmodified
Added
Removed
  • arch/mips32/src/exception.c

    rebbdb8f re07fe0c  
    3838#include <print.h>
    3939#include <interrupt.h>
     40#include <func.h>
     41#include <console/kconsole.h>
    4042
    4143static char * exctable[] = {
     
    8688{
    8789        struct exception_regdump *pstate = (struct exception_regdump *)data;
     90        char *symbol = get_symtab_entry(pstate->epc);
     91
     92#ifdef CONFIG_DEBUG     
     93        printf("***Breakpoint %p in %s.\n", pstate->epc, symbol);
     94        printf("***Type 'exit' to exit kconsole.\n");
     95        /* Umm..we should rather set some 'debugstate' here */
     96        haltstate = 1;
     97        kconsole("debug");
     98        haltstate = 0;
     99#endif
     100
    88101        /* it is necessary to not re-execute BREAK instruction after
    89102           returning from Exception handler
Note: See TracChangeset for help on using the changeset viewer.