Break on IDATA

Hej

I am using uVision 2.37 with C51 version 7.05C.

I would like to set a break point in a stack overflow. Can anyone tell me how to set a break point on write access to I:0x7f

Thank you

Parents
  • Dennis;
    I am running V7.06 but I feel the BS will be the same. In the command line enter:
    BS I:0x7F, 1
    The command is not case sensitive.
    Or you can enter the BreakSet dialog from
    Debug -> Breakpoints. In the expression window enter I:0x7F. In the count window enter 1. In the Access window select Write, Size 1 and Bytes. Click the Define button and the expression will show in the Current Breakpoints window as follows:
    (C Mark) (A write I:0x7F len=1), 'i:0x7f'. This same definition will appear with the definition from the command line. Don't expect to see the Red Flag indicating a breakpoint. That only shows on an execute breakpoint. Bradford

Reply
  • Dennis;
    I am running V7.06 but I feel the BS will be the same. In the command line enter:
    BS I:0x7F, 1
    The command is not case sensitive.
    Or you can enter the BreakSet dialog from
    Debug -> Breakpoints. In the expression window enter I:0x7F. In the count window enter 1. In the Access window select Write, Size 1 and Bytes. Click the Define button and the expression will show in the Current Breakpoints window as follows:
    (C Mark) (A write I:0x7F len=1), 'i:0x7f'. This same definition will appear with the definition from the command line. Don't expect to see the Red Flag indicating a breakpoint. That only shows on an execute breakpoint. Bradford

Children
More questions in this forum