4.104.115
Last change
on this file since 2bac2a70 was
e85eb70,
checked in by Chris Johns <chrisj@…>, on 12/22/07 at 08:28:57
|
2007-12-14 Chris Johns <chrisj@…>
- gdb-init: Make the first hb temporary.
- network/network.c: Add support for reading the MAC address from
the FEC if set by the boot monitor. dBug does not do this unless
the network is used which is a shame.
|
-
Property mode set to
100644
|
File size:
1.2 KB
|
Line | |
---|
1 | # |
---|
2 | # Connect to the target. |
---|
3 | # |
---|
4 | target remote | m68k-bdm-gdbserver pipe /dev/bdmcf0 |
---|
5 | |
---|
6 | # |
---|
7 | # The console loop in the Axman dbug monitor. Found by trial and error |
---|
8 | # with the debugger. |
---|
9 | # |
---|
10 | thb *0xffe254c0 |
---|
11 | |
---|
12 | # |
---|
13 | # Show the exception stack frame. |
---|
14 | # |
---|
15 | define show-exception-sframe |
---|
16 | set $frsr = *(unsigned short *)((unsigned long)$sp + 2) |
---|
17 | set $frpc = *(unsigned long *)((unsigned long)$sp + 4) |
---|
18 | set $frfvo = *(unsigned short *)((unsigned long)$sp + 0) |
---|
19 | set $frcode = $frfvo >> 12 |
---|
20 | set $frvect = ($frfvo & 0xFFF) >> 2 |
---|
21 | set $frstatus = ((($frfvo >> 10) & 3) << 2) | ($frfvo & 3) |
---|
22 | printf "EXCEPTION -- SR:0x%X PC:0x%X FRAME:0x%x VECTOR:%d STATUS:%d\n", $frsr, $frpc, $frcode, $frvect, $frstatus |
---|
23 | if $frstatus == 4 |
---|
24 | printf " Fault Type: Error on instruction fetch" |
---|
25 | end |
---|
26 | if $frstatus == 8 |
---|
27 | printf " Fault Type: Error on operand write" |
---|
28 | end |
---|
29 | if $frstatus == 12 |
---|
30 | printf " Fault Type: Error on operand read" |
---|
31 | end |
---|
32 | if $frstatus == 9 |
---|
33 | printf " Fault Type: Attempted write to write-protected space" |
---|
34 | end |
---|
35 | end |
---|
36 | |
---|
37 | # |
---|
38 | # Run to initialise the RAM. The target will stop when the |
---|
39 | # breakpoint is hit. Load the program. |
---|
40 | # |
---|
41 | c |
---|
42 | load |
---|
43 | |
---|
44 | # |
---|
45 | # Break on an exception. |
---|
46 | # |
---|
47 | b _uhoh |
---|
48 | |
---|
49 | # |
---|
50 | # Travel to main then stop. |
---|
51 | # |
---|
52 | tb main |
---|
53 | c |
---|
54 | |
---|
Note: See
TracBrowser
for help on using the repository browser.