Changeset 73508 in vbox for trunk/src/VBox
- Timestamp:
- Aug 5, 2018 2:11:15 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Disassembler/DisasmReg.cpp
r69111 r73508 340 340 DISDECL(int) DISFetchReg8(PCCPUMCTXCORE pCtx, unsigned reg8, uint8_t *pVal) 341 341 { 342 AssertReturn (reg8 < RT_ELEMENTS(g_aReg8Index), VERR_INVALID_PARAMETER);342 AssertReturnStmt(reg8 < RT_ELEMENTS(g_aReg8Index), *pVal, VERR_INVALID_PARAMETER); 343 343 344 344 *pVal = DIS_READ_REG8(pCtx, reg8); … … 352 352 DISDECL(int) DISFetchReg16(PCCPUMCTXCORE pCtx, unsigned reg16, uint16_t *pVal) 353 353 { 354 AssertReturn (reg16 < RT_ELEMENTS(g_aReg16Index), VERR_INVALID_PARAMETER);354 AssertReturnStmt(reg16 < RT_ELEMENTS(g_aReg16Index), *pVal = 0, VERR_INVALID_PARAMETER); 355 355 356 356 *pVal = DIS_READ_REG16(pCtx, reg16); … … 364 364 DISDECL(int) DISFetchReg32(PCCPUMCTXCORE pCtx, unsigned reg32, uint32_t *pVal) 365 365 { 366 AssertReturn (reg32 < RT_ELEMENTS(g_aReg32Index), VERR_INVALID_PARAMETER);366 AssertReturnStmt(reg32 < RT_ELEMENTS(g_aReg32Index), *pVal = 0, VERR_INVALID_PARAMETER); 367 367 368 368 *pVal = DIS_READ_REG32(pCtx, reg32); … … 376 376 DISDECL(int) DISFetchReg64(PCCPUMCTXCORE pCtx, unsigned reg64, uint64_t *pVal) 377 377 { 378 AssertReturn (reg64 < RT_ELEMENTS(g_aReg64Index), VERR_INVALID_PARAMETER);378 AssertReturnStmt(reg64 < RT_ELEMENTS(g_aReg64Index), *pVal = 0, VERR_INVALID_PARAMETER); 379 379 380 380 *pVal = DIS_READ_REG64(pCtx, reg64); … … 388 388 DISDECL(int) DISPtrReg8(PCPUMCTXCORE pCtx, unsigned reg8, uint8_t **ppReg) 389 389 { 390 AssertReturn (reg8 < RT_ELEMENTS(g_aReg8Index), VERR_INVALID_PARAMETER);390 AssertReturnStmt(reg8 < RT_ELEMENTS(g_aReg8Index), *ppReg = NULL, VERR_INVALID_PARAMETER); 391 391 392 392 *ppReg = DIS_PTR_REG8(pCtx, reg8); … … 400 400 DISDECL(int) DISPtrReg16(PCPUMCTXCORE pCtx, unsigned reg16, uint16_t **ppReg) 401 401 { 402 AssertReturn (reg16 < RT_ELEMENTS(g_aReg16Index), VERR_INVALID_PARAMETER);402 AssertReturnStmt(reg16 < RT_ELEMENTS(g_aReg16Index), *ppReg = NULL, VERR_INVALID_PARAMETER); 403 403 404 404 *ppReg = DIS_PTR_REG16(pCtx, reg16); … … 408 408 /** 409 409 * Returns the pointer to the specified 32 bits general purpose register 410 *411 410 */ 412 411 DISDECL(int) DISPtrReg32(PCPUMCTXCORE pCtx, unsigned reg32, uint32_t **ppReg) 413 412 { 414 AssertReturn (reg32 < RT_ELEMENTS(g_aReg32Index), VERR_INVALID_PARAMETER);413 AssertReturnStmt(reg32 < RT_ELEMENTS(g_aReg32Index), *ppReg = NULL, VERR_INVALID_PARAMETER); 415 414 416 415 *ppReg = DIS_PTR_REG32(pCtx, reg32); … … 420 419 /** 421 420 * Returns the pointer to the specified 64 bits general purpose register 422 *423 421 */ 424 422 DISDECL(int) DISPtrReg64(PCPUMCTXCORE pCtx, unsigned reg64, uint64_t **ppReg) 425 423 { 426 AssertReturn (reg64 < RT_ELEMENTS(g_aReg64Index), VERR_INVALID_PARAMETER);424 AssertReturnStmt(reg64 < RT_ELEMENTS(g_aReg64Index), *ppReg = NULL, VERR_INVALID_PARAMETER); 427 425 428 426 *ppReg = DIS_PTR_REG64(pCtx, reg64); … … 432 430 /** 433 431 * Returns the value of the specified segment register 434 *435 432 */ 436 433 DISDECL(int) DISFetchRegSeg(PCCPUMCTXCORE pCtx, DISSELREG sel, RTSEL *pVal)
Note:
See TracChangeset
for help on using the changeset viewer.