Author: martin
Date: 2005-10-11 09:33:39 -0400 (Tue, 11 Oct 2005)
New Revision: 51568
Removed:
trunk/debugger/arch/Architecture_PowerPC.cs
Modified:
trunk/debugger/ChangeLog
Log:
2005-10-11 Martin Baulig <[EMAIL PROTECTED]>
* arch/Architecture_PowerPC.cs: Removed.
Modified: trunk/debugger/ChangeLog
===================================================================
--- trunk/debugger/ChangeLog 2005-10-11 13:23:37 UTC (rev 51567)
+++ trunk/debugger/ChangeLog 2005-10-11 13:33:39 UTC (rev 51568)
@@ -1,5 +1,9 @@
2005-10-11 Martin Baulig <[EMAIL PROTECTED]>
+ * arch/Architecture_PowerPC.cs: Removed.
+
+2005-10-11 Martin Baulig <[EMAIL PROTECTED]>
+
* arch/*.cs: Removed the `Mono.Debugger.Architecture' namespace;
use `Mono.Debugger.Backends' instead.
Deleted: trunk/debugger/arch/Architecture_PowerPC.cs
===================================================================
--- trunk/debugger/arch/Architecture_PowerPC.cs 2005-10-11 13:23:37 UTC (rev
51567)
+++ trunk/debugger/arch/Architecture_PowerPC.cs 2005-10-11 13:33:39 UTC (rev
51568)
@@ -1,229 +0,0 @@
-using System;
-using System.Collections;
-using Mono.Debugger.Backends;
-
-namespace Mono.Debugger
-{
- // Keep in sync with DebuggerPowerPCRegisters in
backends/server/powerpc-arch.h.
- internal enum PowerPCRegister
- {
- R0 = 0,
- R1,
- R2,
- R3,
- R4,
- R5,
- R6,
- R7,
- R8,
- R9,
- R10,
- R11,
- R12,
- R13,
- R14,
- R15,
- R16,
- R17,
- R18,
- R19,
- R20,
- R21,
- R22,
- R23,
- R24,
- R25,
- R26,
- R27,
- R28,
- R29,
- R30,
- R31,
-
- PC,
- PS,
- CR,
- LR,
- CTR,
- XER,
- MQ,
- VRSAVE,
-
- COUNT
- }
-
- // <summary>
- // Architecture-dependent stuff for the powerpc
- // </summary>
- internal class Architecture_PowerPC : IArchitecture
- {
- public bool IsRetInstruction (ITargetMemoryAccess memory,
TargetAddress address)
- {
- return false;
- }
-
- public TargetAddress GetCallTarget (ITargetMemoryAccess target,
- TargetAddress address, out
int insn_size)
- {
- insn_size = 0;
- return TargetAddress.Null;
- }
-
- public TargetAddress GetJumpTarget (ITargetMemoryAccess target,
- TargetAddress address, out
int insn_size)
- {
- insn_size = 0;
- return TargetAddress.Null;
- }
-
- public TargetAddress GetTrampoline (ITargetMemoryAccess target,
- TargetAddress location,
- TargetAddress
trampoline_address)
- {
- throw new NotImplementedException ();
- }
-
- int[] all_regs = { (int) PowerPCRegister.R0,
- (int) PowerPCRegister.R1,
- (int) PowerPCRegister.R2,
- (int) PowerPCRegister.R3,
- (int) PowerPCRegister.R4,
- (int) PowerPCRegister.R5,
- (int) PowerPCRegister.R6,
- (int) PowerPCRegister.R7,
- (int) PowerPCRegister.R8,
- (int) PowerPCRegister.R9,
- (int) PowerPCRegister.R10,
- (int) PowerPCRegister.R11,
- (int) PowerPCRegister.R12,
- (int) PowerPCRegister.R13,
- (int) PowerPCRegister.R14,
- (int) PowerPCRegister.R15,
- (int) PowerPCRegister.R16,
- (int) PowerPCRegister.R17,
- (int) PowerPCRegister.R18,
- (int) PowerPCRegister.R19,
- (int) PowerPCRegister.R20,
- (int) PowerPCRegister.R21,
- (int) PowerPCRegister.R22,
- (int) PowerPCRegister.R23,
- (int) PowerPCRegister.R24,
- (int) PowerPCRegister.R25,
- (int) PowerPCRegister.R26,
- (int) PowerPCRegister.R27,
- (int) PowerPCRegister.R28,
- (int) PowerPCRegister.R29,
- (int) PowerPCRegister.R30,
- (int) PowerPCRegister.R31,
-
- (int) PowerPCRegister.PC,
- (int) PowerPCRegister.PS,
- (int) PowerPCRegister.CR,
- (int) PowerPCRegister.LR,
- (int) PowerPCRegister.CTR,
- (int) PowerPCRegister.XER,
- (int) PowerPCRegister.MQ,
- (int) PowerPCRegister.VRSAVE
- };
-
- int[] register_map = { (int) PowerPCRegister.R0,
- (int) PowerPCRegister.R1,
- (int) PowerPCRegister.R1,
- (int) PowerPCRegister.R2,
- (int) PowerPCRegister.R3,
- (int) PowerPCRegister.R4,
- (int) PowerPCRegister.R5,
- (int) PowerPCRegister.R6,
- (int) PowerPCRegister.R7,
- (int) PowerPCRegister.R8,
- (int) PowerPCRegister.R9
- };
-
- string[] registers = { "r0", "r1", "r2", "r3", "r4", "r5",
"r6", "r7",
- "r8", "r9", "r10", "r11", "r12", "r13",
"r14",
- "r15", "r16", "r17", "r18", "r19",
"r20", "r21",
- "r22", "r23", "r24", "r25", "r26",
"r27", "r28",
- "r29", "r30", "r31", "pc", "ps", "cr",
"lr", "ctr",
- "xer", "mq", "vrsave" };
-
- int[] reg_sizes = { 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4,
- 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4,
- 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4 };
-
- public string[] RegisterNames {
- get {
- return registers;
- }
- }
-
- public int[] RegisterIndices {
- get {
- return all_regs;
- }
- }
-
- public int[] AllRegisterIndices {
- get {
- return all_regs;
- }
- }
-
- public int[] RegisterSizes {
- get {
- return reg_sizes;
- }
- }
-
- public int[] RegisterMap {
- get {
- return register_map;
- }
- }
-
- public int[] DwarfFrameRegisterMap {
- get {
- throw new NotImplementedException ();
- }
- }
-
- public int CountRegisters {
- get {
- return (int) PowerPCRegister.COUNT;
- }
- }
-
- public string PrintRegister (Register register)
- {
- return String.Format ("{0:x}", register.Value);
- }
-
- public string PrintRegisters (StackFrame frame)
- {
- return null;
- }
-
- public int MaxPrologueSize {
- get { return 50; }
- }
-
- public SimpleStackFrame UnwindStack (ITargetMemoryAccess memory,
- SimpleStackFrame frame,
Symbol name,
- byte[] code)
- {
- throw new NotImplementedException ();
- }
-
-
- public SimpleStackFrame UnwindStack (ITargetMemoryAccess memory,
- TargetAddress stack,
TargetAddress frame)
- {
- throw new NotImplementedException ();
- }
-
- public SimpleStackFrame TrySpecialUnwind (ITargetMemoryAccess
memory,
- SimpleStackFrame
frame)
- {
- return null;
- }
- }
-}
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches