debugsrv/runmodedebug/rmdriver/src/d_rmd_breakpoints.cpp
changeset 56 aa2539c91954
parent 42 0ff24a8f6ca2
equal deleted inserted replaced
54:a151135b0cf9 56:aa2539c91954
     1 // Copyright (c) 2004-2010 Nokia Corporation and/or its subsidiary(-ies).
     1 // Copyright (c) 2004-2010 Nokia Corporation and/or its subsidiary(-ies).
     2 // All rights reserved.
     2 // All rights reserved.
     3 // This component and the accompanying materials are made available
     3 // This component and the accompanying materials are made available
     4 // under the terms of the License "Eclipse Public License v1.0"
     4 // under the terms of "Eclipse Public License v1.0"
     5 // which accompanies this distribution, and is available
     5 // which accompanies this distribution, and is available
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
     7 //
     7 //
     8 // Initial Contributors:
     8 // Initial Contributors:
     9 // Nokia Corporation - initial contribution.
     9 // Nokia Corporation - initial contribution.
    37 #include "debug_utils.h"
    37 #include "debug_utils.h"
    38 #include "debug_logging.h"
    38 #include "debug_logging.h"
    39 
    39 
    40 using namespace Debug;
    40 using namespace Debug;
    41 
    41 
    42 /* @internalTechnology
    42 /**
    43  *
    43  *
    44  * Checks whether aAddress is correctly aligned for placing a breakpoint of
    44  * Checks whether aAddress is correctly aligned for placing a breakpoint of
    45  * cpu architecture aMode.
    45  * cpu architecture aMode.
    46  *
    46  *
    47  * @param aAddress - Virtual memory address to check
    47  * @param aAddress - Virtual memory address to check
    87 
    87 
    88 	// Must be OK
    88 	// Must be OK
    89 	return ETrue;
    89 	return ETrue;
    90 	};
    90 	};
    91 
    91 
    92 /* @internalTechnology
    92 /**
    93  *
    93  *
    94  * Returns the size of a breakpoint of architecture aMode in bytes
    94  * Returns the size of a breakpoint of architecture aMode in bytes
    95  * 
    95  * 
    96  * @param aMode - The architure of the breakpoint
    96  * @param aMode - The architure of the breakpoint
    97  * @return The size of the breakpoints in bytes. 0 if un-recognised architecture.
    97  * @return The size of the breakpoints in bytes. 0 if un-recognised architecture.
   119 				return 0;
   119 				return 0;
   120 			}
   120 			}
   121 		}
   121 		}
   122 	};
   122 	};
   123 
   123 
   124 /* @internalTechnology
   124 /**
   125  *
   125  *
   126  * Checks whether two TBreakEntrys overlap
   126  * Checks whether two TBreakEntrys overlap
   127  *
   127  *
   128  * @param aFirst - A TBreakEntry with valid iAddress and iMode fields.
   128  * @param aFirst - A TBreakEntry with valid iAddress and iMode fields.
   129  * @param aSecond  - A TBreakEntry with valid iAddress and iMode fields.
   129  * @param aSecond  - A TBreakEntry with valid iAddress and iMode fields.
   161 
   161 
   162 	// The breakpoints overlap
   162 	// The breakpoints overlap
   163 	return ETrue;
   163 	return ETrue;
   164 	}
   164 	}
   165 
   165 
   166 /* @internalTechnology
   166 /**
   167  * 
   167  * 
   168  * Returns the breakpoint bitpattern to use for each architecture type
   168  * Returns the breakpoint bitpattern to use for each architecture type
   169  *
   169  *
   170  * @param aMode - the cpu architecture type
   170  * @param aMode - the cpu architecture type
   171  * @return The bit-pattern to use for the specified architecture, or 0 if unsupported.
   171  * @return The bit-pattern to use for the specified architecture, or 0 if unsupported.