Ignore:
Timestamp:
Dec 18, 2011, 10:28:22 PM (14 years ago)
Author:
dmik
Message:

Merge branch gcc-kmk to trunk.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk

    • Property svn:ignore
      •  

        old new  
        1 bin
        2 Makefile.inc
         1env.cmd
         2LocalConfig.kmk
    • Property svn:mergeinfo set to
      /branches/gcc-kmkmergedeligible
  • trunk/src/kernel32/exceptstackdump.cpp

    r21611 r21916  
    1414#define INCL_MISC
    1515#define INCL_BASE
    16 #include <os2.h>                     //No wrappers needed
     16#include <os2wrap.h>    //Odin32 OS/2 api wrappers
    1717#include <stdio.h>
    1818#include <string.h>
     
    3030#include "dbglocal.h"
    3131
    32 int SYSTEM EXPORT WriteLogNoEOL(char *tekst, ...);
     32int SYSTEM EXPORT WriteLogNoEOL(const char *tekst, ...);
    3333
    3434#define FIX64KLIMIT
     
    160160                            Buffer[SymDef32.cbSymName] = 0x00;
    161161//                          dprintf(("%s\n", Buffer));
    162 #ifdef RAS
     162#if defined(RAS) || defined(__GNUC__)
    163163                            strncpy(Info, Buffer, cbInfo);
    164164                            strncat(Info, "\n", cbInfo);
     
    183183                    {
    184184                        // symbol found
    185 #ifdef RAS
     185#if defined(RAS) || defined(__GNUC__)
    186186                        snprintf(Info, cbInfo, "between %s + 0x%X", Buffer, TrapOffset - LastVal);
    187187#else
     
    197197                    {
    198198                        // symbol found, as above
    199 #ifdef RAS
     199#if defined(RAS) || defined(__GNUC__)
    200200                        snprintf(&Info[strlen(Info)], cbInfo - strlen(Info),  " and %s - 0x%X\n", Buffer, LastVal - TrapOffset);
    201201#else
     
    223223                            Buffer[SymDef16.cbSymName] = 0x00;
    224224//                            dprintf(("%s\n", Buffer));
    225 #ifdef RAS
     225#if defined(RAS) || defined(__GNUC__)
    226226                            strncpy(Info, Buffer, cbInfo);
    227227                            strncat(Info, "\n", cbInfo);
     
    245245                    if (SymDef16.wSymVal > TrapOffset)
    246246                    {
    247 #ifdef RAS
     247#if defined(RAS) || defined(__GNUC__)
    248248                        snprintf(Info, cbInfo, "between %s + 0x%X", Buffer, TrapOffset - LastVal);
    249249#else
     
    257257                    if (SymDef16.wSymVal > TrapOffset)
    258258                    {
    259 #ifdef RAS
     259#if defined(RAS) || defined(__GNUC__)
    260260                        snprintf(&Info[strlen(Info)], cbInfo - strlen(Info),  " and %s - 0x%X\n", Buffer, LastVal - TrapOffset);
    261261#else
Note: See TracChangeset for help on using the changeset viewer.