mirror of
https://github.com/reactos/reactos.git
synced 2024-07-12 07:35:10 +00:00
Debug DbgBreakPoint and drop to GDB on program trap.
svn path=/trunk/; revision=29672
This commit is contained in:
parent
d8772de615
commit
293cc2c20b
|
@ -514,7 +514,7 @@ BOOLEAN PpcDiskNormalizeSystemPath(char *SystemPath, unsigned Size) {
|
|||
}
|
||||
|
||||
extern int _bss;
|
||||
typedef unsigned int uint32_t;
|
||||
//typedef unsigned int uint32_t;
|
||||
|
||||
void PpcDefaultMachVtbl()
|
||||
{
|
||||
|
@ -661,5 +661,5 @@ void ChainLoadBiosBootSectorCode() {
|
|||
}
|
||||
|
||||
void DbgBreakPoint() {
|
||||
ofw_exit();
|
||||
__asm__("twi 31,0,0");
|
||||
}
|
||||
|
|
|
@ -249,9 +249,6 @@ void PacketFinish()
|
|||
|
||||
PacketSent = 0;
|
||||
|
||||
do {
|
||||
if (!count)
|
||||
{
|
||||
SerialWrite('$');
|
||||
for (i = 0; i < DataOutAddr; i++)
|
||||
{
|
||||
|
@ -260,31 +257,16 @@ void PacketFinish()
|
|||
SerialWrite('#');
|
||||
SerialWrite(hex[(DataOutCsum >> 4) & 15]);
|
||||
SerialWrite(hex[DataOutCsum & 15]);
|
||||
}
|
||||
while(count-- != 0)
|
||||
|
||||
while(!chr(serport) && ((ch = SerialRead()) != '+') && (ch != '$'));
|
||||
if (ch == '$')
|
||||
{
|
||||
if (chr(serport))
|
||||
{
|
||||
ch = SerialRead();
|
||||
break;
|
||||
ParseState = 0;
|
||||
DataInAddr = 0;
|
||||
ComputedCsum = 0;
|
||||
}
|
||||
}
|
||||
|
||||
switch (ch)
|
||||
{
|
||||
default:
|
||||
break;
|
||||
|
||||
case '-':
|
||||
count = 0;
|
||||
break;
|
||||
|
||||
case '+':
|
||||
PacketSent = 1;
|
||||
break;
|
||||
}
|
||||
} while(PacketSent != 1);
|
||||
}
|
||||
|
||||
void PacketWriteString(char *str)
|
||||
{
|
||||
|
@ -481,7 +463,6 @@ int TakeException(int n, ppc_trap_frame_t *tf)
|
|||
{
|
||||
Signal = n;
|
||||
RegisterSaveArea = tf;
|
||||
if (SendSignal)
|
||||
PacketWriteSignal(Signal);
|
||||
SendSignal = 0;
|
||||
Continue = 0;
|
||||
|
|
|
@ -304,6 +304,9 @@ void initme()
|
|||
/* Serial Interrupt */
|
||||
callback[5] = SerialInterrupt;
|
||||
|
||||
/* Program Exception */
|
||||
callback[6] = TakeException;
|
||||
|
||||
/* Floating point exception */
|
||||
callback[8] = fpenable;
|
||||
|
||||
|
|
Loading…
Reference in a new issue