mirror of
https://github.com/reactos/wine.git
synced 2024-11-26 21:20:25 +00:00
2197901989
Sun Mar 2 14:57:37 1997 Alexandre Julliard <julliard@lrc.epfl.ch> * [*/*] Completed transition to new Win32 types. * [tools/build.c] Changed CallTo16_regs to take a CONTEXT argument. * [memory/virtual.c] Rewrote Virtual* functions. Implemented CreateFileMapping and OpenFileMapping. Broke MapViewOfFile ;-) * [win32/k32obj.c] Implemented named objects. Sun Mar 2 00:33:21 1997 Mikolaj Zalewski <zmikolaj@free.polbox.pl> * [misc/ole2nls.c] [resources/sysres_Pl.c] Added Polish language support. Sat Mar 1 13:31:25 1997 David Faure <david.faure@ifhamy.insa-lyon.fr> * [windows/keyboard.c] Wrote VkKeyScan and tested with Winword. Works ok except for dead chars. Fri Feb 28 09:34:03 1997 John Harvey <john@division.co.uk> * [graphics/win16drv/font.c] [graphics/win16drv/init.c] [graphics/win16drv/obects.c] Added start of SelectObject call for printer driver. Write should now run with the printer driver enabled. Wed Feb 26 20:03:32 1997 Marcus Meissner <msmeissn@cip.informatik.uni-erlangen.de> * [debugger/*.c] Re-added a disassembly command (list serves another functionality now). * [loader/pe_resource.c] Added # support. * [misc/ole2nls.c] GetStringType* added. * [objects/color.c] VGA16 fixes. * [windows/class.c] Look for global widget classes too in GetClassInfo32. * [windows/sysmetrics.c] [include/windows.h] Added Win32 sysmetrics. Sat Feb 22 23:56:29 1997 Jukka Iivonen <iivonen@cc.helsinki.fi> * [documentation/languages] The fourth case updated. * [if1632/ntdll.spec] Added some is* and to* functions. Sat Feb 22 23:05:47 1997 Morten Welinder <terra@diku.dk> * [configure.in] Add tests for wait4 and waitpid. * [loader/signal.c] Clean up OS-dependent code. I hope I got it right, :-) * [tools/wineconf] Recognise vfat file systems. Ignore floppy drives specified in /etc/fstab. * [files/*] Fix function names in error messages. Sat Feb 22 06:15:13 1997 Pablo Saratxaga <srtxg@chanae.stben.be> * [windows/keyboard.c] [windows/message.c] Support for more latin alphabet dead keys for iso-8859-{1,2,3,4,9} characters sets. Fri Feb 21 20:37:50 1997 Huw D M Davies <h.davies1@physics.oxford.ac.uk> * [controls/edit.c] Fix incorrect arg order in LOCAL_Alloc() call. Fri Feb 21 18:19:17 1997 Andrew Taylor <andrew@riscan.com> * [multimedia/mmsystem.c] [multimedia/mcistring.c] Fixed bug related to device IDs returned by multimedia system. Implemented mciGetDeviceID. Sat Feb 15 00:58:19 1997 Jimen Ching <jching@aloha.com> * [debugger/dbg.y] Do not dereference invalid expressions.
148 lines
2.7 KiB
C
148 lines
2.7 KiB
C
/*
|
|
* File display.c - display handling for Wine internal debugger.
|
|
*
|
|
* Copyright (C) 1997, Eric Youngdale.
|
|
*
|
|
*/
|
|
|
|
#include <stdlib.h>
|
|
#include <stdio.h>
|
|
#include <string.h>
|
|
#include <limits.h>
|
|
#include <sys/types.h>
|
|
#include <neexe.h>
|
|
#include "module.h"
|
|
#include "selectors.h"
|
|
#include "debugger.h"
|
|
#include "xmalloc.h"
|
|
|
|
#include <stdarg.h>
|
|
|
|
#define MAX_DISPLAY 25
|
|
|
|
struct display
|
|
{
|
|
struct expr * exp;
|
|
int count;
|
|
char format;
|
|
};
|
|
|
|
static struct display displaypoints[MAX_DISPLAY];
|
|
|
|
int
|
|
DEBUG_AddDisplay(struct expr * exp, int count, char format)
|
|
{
|
|
int i;
|
|
|
|
/*
|
|
* First find a slot where we can store this display.
|
|
*/
|
|
for(i=0; i < MAX_DISPLAY; i++ )
|
|
{
|
|
if( displaypoints[i].exp == NULL )
|
|
{
|
|
displaypoints[i].exp = DEBUG_CloneExpr(exp);
|
|
displaypoints[i].count = count;
|
|
displaypoints[i].format = format;
|
|
break;
|
|
}
|
|
}
|
|
|
|
return TRUE;
|
|
}
|
|
|
|
int
|
|
DEBUG_InfoDisplay()
|
|
{
|
|
int i;
|
|
|
|
/*
|
|
* First find a slot where we can store this display.
|
|
*/
|
|
for(i=0; i < MAX_DISPLAY; i++ )
|
|
{
|
|
if( displaypoints[i].exp != NULL )
|
|
{
|
|
fprintf(stderr, "%d : ", i+1);
|
|
DEBUG_DisplayExpr(displaypoints[i].exp);
|
|
fprintf(stderr, "\n");
|
|
}
|
|
}
|
|
|
|
return TRUE;
|
|
}
|
|
|
|
int
|
|
DEBUG_DoDisplay()
|
|
{
|
|
DBG_ADDR addr;
|
|
int i;
|
|
|
|
/*
|
|
* First find a slot where we can store this display.
|
|
*/
|
|
for(i=0; i < MAX_DISPLAY; i++ )
|
|
{
|
|
if( displaypoints[i].exp != NULL )
|
|
{
|
|
addr = DEBUG_EvalExpr(displaypoints[i].exp);
|
|
if( addr.type == NULL )
|
|
{
|
|
fprintf(stderr, "Unable to evaluate expression ");
|
|
DEBUG_DisplayExpr(displaypoints[i].exp);
|
|
fprintf(stderr, "\nDisabling...\n");
|
|
DEBUG_DelDisplay(i);
|
|
}
|
|
else
|
|
{
|
|
fprintf(stderr, "%d : ", i + 1);
|
|
DEBUG_DisplayExpr(displaypoints[i].exp);
|
|
fprintf(stderr, " = ");
|
|
if( displaypoints[i].format == 'i' )
|
|
{
|
|
DEBUG_ExamineMemory( &addr,
|
|
displaypoints[i].count,
|
|
displaypoints[i].format);
|
|
}
|
|
else
|
|
{
|
|
DEBUG_Print( &addr,
|
|
displaypoints[i].count,
|
|
displaypoints[i].format, 0);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
return TRUE;
|
|
}
|
|
|
|
int
|
|
DEBUG_DelDisplay(int displaynum)
|
|
{
|
|
int i;
|
|
|
|
if( displaynum >= MAX_DISPLAY || displaynum == 0 || displaynum < -1 )
|
|
{
|
|
fprintf(stderr, "Invalid display number\n");
|
|
return TRUE;
|
|
}
|
|
if( displaynum == -1 )
|
|
{
|
|
for(i=0; i < MAX_DISPLAY; i++ )
|
|
{
|
|
if( displaypoints[i].exp != NULL )
|
|
{
|
|
DEBUG_FreeExpr(displaypoints[i].exp);
|
|
displaypoints[i].exp = NULL;
|
|
}
|
|
}
|
|
}
|
|
else if( displaypoints[displaynum - 1].exp != NULL )
|
|
{
|
|
DEBUG_FreeExpr(displaypoints[displaynum - 1].exp);
|
|
displaypoints[displaynum - 1].exp = NULL;
|
|
}
|
|
return TRUE;
|
|
}
|