⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 c_when

📁 MIPS处理器的bootloader,龙芯就是用的修改过的PMON2
💻
字号:
The when CommandwhenThe when command sets complex breakpoints FormatThe format for the when command is: when condition action where: condition  Specifies the conditions under which the 		     breakpoint will occur.	action     Specifies the action to be taken when the 		     breakpoint occurs.Functional DescriptionThe when command provides a very flexible way to set breakpoints and to specify the action thatshould be taken when they are encountered.Each when command takes two arguments, a condition, and anaction.  The condition can be something as simple as @pc==main (whenthe program counter is equal to value of the symbol main), or it can bea complex expression that might include specifying the contents ofmemory locations.Actions can be any Monitor command string.But it can also include the pseudo command stop. For example, thecommand, "when @pc==main stop" specifies that when theprogram counter has the value of the symbol main, execution shouldstop. Conditional expressions can be combined in any arbitrarymanner to provide extremely complex breakpoint conditions. Forexample,	PMON when @pc==main2&(^tcbchn==task1||^tcbchn==task2) stopwhich will stop execution when the pc is equal to main2, andeither tcbchn is equal to task1 or task2. In the preceeding examples we have chosen to stop execution whenthe condition is met. However, it is possible to specify a listof commands. For example,	PMON when @pc==sort "r;d -w dat3 1"	specifes that when the pc is equal to 'sort', the commands	'r' and 'd -w dat3 1' will be executed. The ';' is used to	separate commands, and the double quotes are necessary because	the argument contains spaces.  The Monitor is responsible for deciding whento use hardware breakpoint registers (if present). In general, the Monitor uses software breakpoints unless thereis a specific reason that a hardware breakpoint is required.If you issue a command that requires a hardware breakpoint register.But that the Monitor finds that there is notone available. The Monitor will automaticallyuse trace mode when you issue the c command to continue execution.Because trace mode is not real-time, the Monitor will warn you at the time that you setthe breakpoint that this will require non real-time execution.Examples  

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -