Changeset 35625 in vbox for trunk/include/VBox
- Timestamp:
- Jan 19, 2011 11:17:34 AM (14 years ago)
- svn:sync-xref-src-repo-rev:
- 69526
- Location:
- trunk/include/VBox
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/VBox/dbg.h
r35346 r35625 101 101 /** Flat HC pointer. */ 102 102 DBGCVAR_TYPE_HC_FLAT, 103 /** Segmented HC pointer. */ 103 /** Segmented HC pointer. 104 * @todo drop this */ 104 105 DBGCVAR_TYPE_HC_FAR, 105 106 /** Physical HC pointer. */ … … 109 110 /** Number. */ 110 111 DBGCVAR_TYPE_NUMBER, 111 /** Symbol. */ 112 /** Symbol. 113 * @todo drop this */ 112 114 DBGCVAR_TYPE_SYMBOL, 113 115 /** Special type used when querying symbols. */ … … 285 287 286 288 /** 287 * Macro for initializing a DBGC variable with a number 289 * Macro for initializing a DBGC variable with a number. 288 290 */ 289 291 #define DBGCVAR_INIT_NUMBER(pVar, Value) \ … … 293 295 (pVar)->u.u64Number = (Value); \ 294 296 } while (0) 297 298 /** 299 * Macro for initializing a DBGC variable with a string. 300 */ 301 #define DBGCVAR_INIT_STRING(pVar, a_pszString) \ 302 do { \ 303 DBGCVAR_INIT(pVar); \ 304 (pVar)->enmType = DBGCVAR_TYPE_STRING; \ 305 (pVar)->enmRangeType = DBGCVAR_RANGE_BYTES; \ 306 (pVar)->u.pszString = (a_pszString); \ 307 (pVar)->u64Range = strlen(a_pszString); \ 308 } while (0) 309 295 310 296 311 … … 494 509 495 510 /** 511 * Converts a DBGC variable to a 64-bit number. 512 * 513 * @returns VBox status code. 514 * @param pCmdHlp Pointer to the command callback structure. 515 * @param pVar The variable to convert. 516 * @param pu64Number Where to store the number. 517 */ 518 DECLCALLBACKMEMBER(int, pfnVarToNumber)(PDBGCCMDHLP pCmdHlp, PCDBGCVAR pVar, uint64_t *pu64Number); 519 520 /** 496 521 * Converts a DBGC variable to a boolean. 497 522 * … … 517 542 518 543 /** 544 * Converts a variable to one with the specified type. 545 * 546 * This preserves the range. 547 * 548 * @returns VBox status code. 549 * @param pCmdHlp Pointer to the command callback structure. 550 * @param pVar The variable to convert. 551 * @param enmToType The target type. 552 * @param fConvSyms If @c true, then attempt to resolve symbols. 553 * @param pResult The output variable. Can be the same as @a pVar. 554 */ 555 DECLCALLBACKMEMBER(int, pfnVarConvert)(PDBGCCMDHLP pCmdHlp, PCDBGCVAR pVar, DBGCVARTYPE enmToType, bool fConvSyms, 556 PDBGCVAR pResult); 557 558 /** 519 559 * Gets a DBGF output helper that directs the output to the debugger 520 560 * console. … … 643 683 644 684 /** 685 * @copydoc DBGCCMDHLP::pfnVarToNumber 686 */ 687 DECLINLINE(int) DBGCCmdHlpVarToNumber(PDBGCCMDHLP pCmdHlp, PCDBGCVAR pVar, uint64_t *pu64Number) 688 { 689 return pCmdHlp->pfnVarToNumber(pCmdHlp, pVar, pu64Number); 690 } 691 692 /** 693 * @copydoc DBGCCMDHLP::pfnVarToBool 694 */ 695 DECLINLINE(int) DBGCCmdHlpVarToBool(PDBGCCMDHLP pCmdHlp, PCDBGCVAR pVar, bool *pf) 696 { 697 return pCmdHlp->pfnVarToBool(pCmdHlp, pVar, pf); 698 } 699 700 /** 645 701 * @copydoc DBGCCMDHLP::pfnVarGetRange 646 702 */ … … 648 704 { 649 705 return pCmdHlp->pfnVarGetRange(pCmdHlp, pVar, cbElement, cbDefault, pcbRange); 706 } 707 708 /** 709 * @copydoc DBGCCMDHLP::pfnVarConvert 710 */ 711 DECLINLINE(int) DBGCCmdHlpConvert(PDBGCCMDHLP pCmdHlp, PCDBGCVAR pVar, DBGCVARTYPE enmToType, bool fConvSyms, PDBGCVAR pResult) 712 { 713 return pCmdHlp->pfnVarConvert(pCmdHlp, pVar, enmToType, fConvSyms, pResult); 650 714 } 651 715 -
trunk/include/VBox/vmm/dbgf.h
r35606 r35625 1462 1462 VMMR3DECL(int) DBGFR3RegNmQueryAll( PVM pVM, PDBGFREGENTRYNM paRegs, size_t cRegs); 1463 1463 1464 VMMR3DECL(int) DBGFR3RegNmSet( PVM pVM, VMCPUID idDefCpu, const char *pszReg, PCDBGFREGVAL pValue, DBGFREGVALTYPE enmType); 1464 1465 VMMR3DECL(int) DBGFR3RegNmSetU8( PVM pVM, VMCPUID idDefCpu, const char *pszReg, uint8_t u8); 1465 1466 VMMR3DECL(int) DBGFR3RegNmSetU16( PVM pVM, VMCPUID idDefCpu, const char *pszReg, uint16_t u16);
Note:
See TracChangeset
for help on using the changeset viewer.