Changeset 25d7709 in mainline for arch/mips32/src/debugger.c


Ignore:
Timestamp:
2006-03-13T20:08:16Z (19 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
631ca4d
Parents:
45d6add
Message:

Nicer ia32 interrupt handlers and structures holding interrupted context data.
Unify the name holding interrupted context data on all architectures to be istate.

File:
1 edited

Legend:

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

    r45d6add r25d7709  
    180180        } else { /* We are add extended */
    181181                cur->flags = BKPOINT_FUNCCALL;
    182                 cur->bkfunc =   (void (*)(void *, struct exception_regdump *)) argv[1].intval;
     182                cur->bkfunc =   (void (*)(void *, istate_t *)) argv[1].intval;
    183183        }
    184184        if (is_jump(cur->instruction))
     
    290290 * next instruction.
    291291 */
    292 void debugger_bpoint(struct exception_regdump *pstate)
     292void debugger_bpoint(istate_t *istate)
    293293{
    294294        bpinfo_t *cur = NULL;
    295         __address fireaddr = pstate->epc;
     295        __address fireaddr = istate->epc;
    296296        int i;
    297297
     
    330330                if (!(cur->flags & BKPOINT_FUNCCALL))
    331331                        printf("***Breakpoint %d: 0x%p in %s.\n", i,
    332                                fireaddr, get_symtab_entry(pstate->epc));
     332                               fireaddr, get_symtab_entry(istate->epc));
    333333
    334334                /* Return first instruction back */
     
    345345                       get_symtab_entry(fireaddr));
    346346                /* Move on to next instruction */
    347                 pstate->epc += 4;
     347                istate->epc += 4;
    348348        }
    349349        if (cur)
     
    352352                /* Allow zero bkfunc, just for counting */
    353353                if (cur->bkfunc)
    354                         cur->bkfunc(cur, pstate);
     354                        cur->bkfunc(cur, istate);
    355355        } else {
    356356                printf("***Type 'exit' to exit kconsole.\n");
Note: See TracChangeset for help on using the changeset viewer.