dbgbreak.h
来自「开放源码的编译器open watcom 1.6.0版的源代码」· C头文件 代码 · 共 96 行
H
96 行
/****************************************************************************
*
* Open Watcom Project
*
* Portions Copyright (c) 1983-2002 Sybase, Inc. All Rights Reserved.
*
* ========================================================================
*
* This file contains Original Code and/or Modifications of Original
* Code as defined in and that are subject to the Sybase Open Watcom
* Public License version 1.0 (the 'License'). You may not use this file
* except in compliance with the License. BY USING THIS FILE YOU AGREE TO
* ALL TERMS AND CONDITIONS OF THE LICENSE. A copy of the License is
* provided with the Original Code and Modifications, and is also
* available at www.sybase.com/developer/opensource.
*
* The Original Code and all software distributed under the License are
* distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
* EXPRESS OR IMPLIED, AND SYBASE AND ALL CONTRIBUTORS HEREBY DISCLAIM
* ALL SUCH WARRANTIES, INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR
* NON-INFRINGEMENT. Please see the License for the specific language
* governing rights and limitations under the License.
*
* ========================================================================
*
* Description: WHEN YOU FIGURE OUT WHAT THIS FILE DOES, PLEASE
* DESCRIBE IT HERE!
*
****************************************************************************/
#include "dbgitem.h"
#include "madtypes.h"
/*
Some trickyness here. The symbol brk is defined as a function in the
QNX version of stdlib, but it's a type in the debugger. Sigh.
*/
#ifdef __UNIX__
#define brk break_point
#endif
typedef struct
{
unsigned active : 1;
unsigned resume : 1;
unsigned silent : 1;
unsigned hit : 1;
unsigned in_place : 1;
unsigned has_value : 1;
unsigned has_address : 1;
unsigned unmapped : 1;
unsigned cmds_pushed : 1;
unsigned expr_true : 1;
unsigned expr_error : 1;
unsigned cmd_error : 1;
unsigned source_open : 1;
unsigned activate_on_remap : 1;
unsigned autodestruct : 1;
unsigned use_countdown : 1;
unsigned use_cmds : 1;
unsigned use_condition : 1;
} brk_status;
#define NullStatus( b ) memset( &((b)->status), 0, sizeof( (b)->status ) )
typedef struct brk {
mappable_addr loc;
item_mach item; /* opcode in break points */
mad_type_handle th; /* how to format data item */
mad_handle mad; /* MAD to use when formatting */
unsigned_8 __unused_size;
cmd_list *cmds;
int index;
long total_hits;
long countdown;
struct brk *next;
char *condition;
char *error;
char *source_line;
union {
brk_status b;
} status;
long initial_countdown;
char *image_name;
char *mod_name;
char *sym_name;
long cue_diff;
long addr_diff;
} brk;
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?