Ignore:
Timestamp:
Feb 4, 2006, 7:08:23 PM (20 years ago)
Author:
bird
Message:

#38: Added DosSysCtl prototype and use it on panic to check for debugger.

Location:
branches/libc-0.6/src/emx
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/libc-0.6/src/emx/ChangeLog.LIBC

    r2518 r2519  
    99        o #25: Ensure correct address length returns from recvmsg and recvfrom.
    1010    - libc:
     11        o #38: Added DosSysCtl prototype and use it on panic to check for debugger.
    1112        o #33: Fixed a return path in __libc_back_signalWait which didn't reacquire the semaphore.
    1213        o #32: Fixed incorrect readdir_r return code when out of files.
  • branches/libc-0.6/src/emx/include/os2emx.h

    r2273 r2519  
    1346713467
    1346813468
     13469#ifdef INCL_DOSUNDOCUEMENTED
     13470
     13471/** Check if the current process is being debugged.
     13472 * No parameter. Returns TRUE or FALSE. */
     13473#define DOSSYSCTL_AM_I_DEBUGGED 2
     13474
     13475/**
     13476 * System Control Function.
     13477 *
     13478 * @returns Depends on function.
     13479 * @param   ulFunction      Which function to execute.
     13480 *                          Any of the DOSSYSCTL_* #defines.
     13481 */
     13482APIRET APIENTRY DosSysCtl(ULONG ulFunction, PVOID pvParameter);
     13483
     13484#endif /* INCL_DOSUNDOCUEMENTED */
     13485
     13486
    1346913487#ifdef INCL_EXAPIS
    1347013488
  • branches/libc-0.6/src/emx/src/lib/sys/b_panic.c

    r2321 r2519  
    44 * LIBC SYS Backend - panic.
    55 *
    6  * Copyright (c) 2005 knut st. osmundsen <bird@anduin.net>
     6 * Copyright (c) 2005-2006 knut st. osmundsen <bird@anduin.net>
    77 *
    88 *
     
    3030*   Header Files                                                               *
    3131*******************************************************************************/
     32#define __LIBC_LOG_GROUP __LIBC_LOG_GRP_NOGROUP
    3233#define INCL_BASE
    3334#define INCL_ERRORS
    3435#define INCL_FSMACROS
     36#define INCL_DOSUNDOCUEMENTED
    3537#define _GNU_SOURCE
    3638#include <string.h>
    3739#include <InnotekLIBC/backend.h>
    3840#include <InnotekLIBC/sharedpm.h>
    39 #define __LIBC_LOG_GROUP __LIBC_LOG_GRP_NOGROUP
    4041#include <InnotekLIBC/logstrict.h>
    4142#include <os2emx.h>
     
    185186    BOOL fQuiet = FALSE;
    186187    BOOL fVerbose = TRUE;
    187     BOOL fBreakpoint = FALSE;
     188    BOOL fBreakpoint = DosSysCtl(DOSSYSCTL_AM_I_DEBUGGED, NULL) == TRUE;
    188189    BOOL fDumpProcess = TRUE;
    189190    const char *pszPanicCfg = NULL;
Note: See TracChangeset for help on using the changeset viewer.