Update contrib.
1 // Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies).
2 // All rights reserved.
3 // This component and the accompanying materials are made available
4 // under the terms of the License "Eclipse Public License v1.0"
5 // which accompanies this distribution, and is available
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
8 // Initial Contributors:
9 // Nokia Corporation - initial contribution.
14 // e32test\debug\t_codemodifier.cia
15 // See e32test\debug\t_codemodifier.cpp for details
22 const TUint32 KArmBreakPoint = 0xE7F123F4;
26 asm(".word %a0" : : "i" ((TInt)KArmBreakPoint)); \
27 asm(".word %a0" : : "i" ((TInt)KArmBreakPoint)); \
28 asm(".word %a0" : : "i" ((TInt)KArmBreakPoint)); \
29 asm(".word %a0" : : "i" ((TInt)KArmBreakPoint)); \
55 __NAKED__ void CodeArea()
57 //These 1025 breakpoints will go accross page boundaries.
58 asm(".word %a0" : : "i" ((TInt)KArmBreakPoint)); \
64 The function will run in the server and is coded to cause panic.
65 However, it will be altered remotely by the client before it runs.
67 __NAKED__ void TestFunc()
69 asm(".word %a0" : : "i" ((TInt)KArmBreakPoint)); //This would panic but it will be replaced by NOP