diff options
| author | Jung-uk Kim <jkim@FreeBSD.org> | 2010-12-09 20:04:14 +0000 | 
|---|---|---|
| committer | Jung-uk Kim <jkim@FreeBSD.org> | 2010-12-09 20:04:14 +0000 | 
| commit | 0f70714e43f23ff5f3e72fa406814e26bdad006a (patch) | |
| tree | c88f8fbca7e5c63afb07147d504c55311683cb5d /debugger/dbexec.c | |
| parent | 11641cd290cbb4765d39dadd5a4eee278b8769ee (diff) | |
Diffstat (limited to 'debugger/dbexec.c')
| -rw-r--r-- | debugger/dbexec.c | 22 | 
1 files changed, 19 insertions, 3 deletions
diff --git a/debugger/dbexec.c b/debugger/dbexec.c index 56e7de72d356..db2f69b83769 100644 --- a/debugger/dbexec.c +++ b/debugger/dbexec.c @@ -180,6 +180,9 @@ AcpiDbExecuteMethod (      ACPI_DEVICE_INFO        *ObjInfo; +    ACPI_FUNCTION_TRACE (DbExecuteMethod); + +      if (AcpiGbl_DbOutputToFile && !AcpiDbgLevel)      {          AcpiOsPrintf ("Warning: debug output is not enabled!\n"); @@ -190,7 +193,7 @@ AcpiDbExecuteMethod (      Status = AcpiGetHandle (NULL, Info->Pathname, &Handle);      if (ACPI_FAILURE (Status))      { -        return (Status); +        return_ACPI_STATUS (Status);      }      /* Get the object info for number of method parameters */ @@ -198,7 +201,7 @@ AcpiDbExecuteMethod (      Status = AcpiGetObjectInfo (Handle, &ObjInfo);      if (ACPI_FAILURE (Status))      { -        return (Status); +        return_ACPI_STATUS (Status);      }      ParamObjects.Pointer = NULL; @@ -269,7 +272,20 @@ AcpiDbExecuteMethod (      AcpiGbl_CmSingleStep = FALSE;      AcpiGbl_MethodExecuting = FALSE; -    return (Status); +    if (ACPI_FAILURE (Status)) +    { +        ACPI_EXCEPTION ((AE_INFO, Status, +        "while executing %s from debugger", Info->Pathname)); + +        if (Status == AE_BUFFER_OVERFLOW) +        { +            ACPI_ERROR ((AE_INFO, +            "Possible overflow of internal debugger buffer (size 0x%X needed 0x%X)", +                ACPI_DEBUG_BUFFER_SIZE, (UINT32) ReturnObj->Length)); +        } +    } + +    return_ACPI_STATUS (Status);  }  | 
