ReactOS Fundraising Campaign 2012
 
€ 4,410 / € 30,000

Information | Donate

Home | Info | Community | Development | myReactOS | Contact Us

  1. Home
  2. Community
  3. Development
  4. myReactOS
  5. Fundraiser 2012

  1. Main Page
  2. Alphabetical List
  3. Data Structures
  4. Directories
  5. File List
  6. Data Fields
  7. Globals
  8. Related Pages

ReactOS Development > Doxygen

stabs.c File Reference
#include "config.h"
#include "wine/port.h"
#include <sys/types.h>
#include <fcntl.h>
#include <limits.h>
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include <assert.h>
#include <stdarg.h>
#include "windef.h"
#include "winbase.h"
#include "winnls.h"
#include "dbghelp_private.h"
#include "wine/debug.h"

Go to the source code of this file.

Data Structures

struct  stab_nlist
struct  include_def
struct  ParseTypedefData
struct  ParseTypedefData::PTS_Error
struct  pts_range_value
struct  pending_loc_var
struct  pending_line
struct  pending_object
struct  pending_list

Defines

#define strtoull   _strtoui64
#define N_STAB   0xe0
#define N_TYPE   0x1e
#define N_EXT   0x01
#define N_UNDF   0x00
#define N_ABS   0x02
#define N_GSYM   0x20
#define N_FUN   0x24
#define N_STSYM   0x26
#define N_LCSYM   0x28
#define N_MAIN   0x2a
#define N_ROSYM   0x2c
#define N_BNSYM   0x2e
#define N_OPT   0x3c
#define N_RSYM   0x40
#define N_SLINE   0x44
#define N_ENSYM   0x4e
#define N_SO   0x64
#define N_OSO   0x66
#define N_LSYM   0x80
#define N_BINCL   0x82
#define N_SOL   0x84
#define N_PSYM   0xa0
#define N_EINCL   0xa2
#define N_LBRAC   0xc0
#define N_EXCL   0xc2
#define N_RBRAC   0xe0
#define MAX_INCLUDES   5120
#define PTS_DEBUG
#define PTS_ABORTIF(ptd, t)   do { if (t) { stabs_pts_push((ptd), __LINE__); return -1;} } while (0)

Enumerations

enum  pending_obj_kind { PENDING_VAR, PENDING_LINE }

Functions

 WINE_DEFAULT_DEBUG_CHANNEL (dbghelp_stabs)
static void stab_strcpy (char *dest, int sz, const char *source)
static int stabs_new_include (const char *file, unsigned long val)
static int stabs_find_include (const char *file, unsigned long val)
static int stabs_add_include (int idx)
static void stabs_reset_includes (void)
static void stabs_free_includes (void)
static struct symt ** stabs_find_ref (long filenr, long subnr)
static struct symt ** stabs_read_type_enum (const char **x)
static void stabs_pts_push (struct ParseTypedefData *ptd, unsigned line)
static int stabs_get_basic (struct ParseTypedefData *ptd, unsigned basic, struct symt **symt)
static int stabs_pts_read_type_def (struct ParseTypedefData *ptd, const char *typename, struct symt **dt)
static int stabs_pts_read_id (struct ParseTypedefData *ptd)
static int stabs_pts_read_number (struct ParseTypedefData *ptd, long *v)
static int stabs_pts_read_type_reference (struct ParseTypedefData *ptd, long *filenr, long *subnr)
static int stabs_pts_read_range_value (struct ParseTypedefData *ptd, struct pts_range_value *prv)
static int stabs_pts_read_range (struct ParseTypedefData *ptd, const char *typename, struct symt **dt)
static int stabs_pts_read_method_info (struct ParseTypedefData *ptd)
static int stabs_pts_read_aggregate (struct ParseTypedefData *ptd, struct symt_udt *sdt)
static int stabs_pts_read_enum (struct ParseTypedefData *ptd, struct symt_enum *edt)
static int stabs_pts_read_array (struct ParseTypedefData *ptd, struct symt **adt)
static int stabs_parse_typedef (struct module *module, const char *ptr, const char *typename)
static struct symtstabs_parse_type (const char *stab)
static void pending_make_room (struct pending_list *pending)
static void pending_add_var (struct pending_list *pending, const char *name, enum DataKind dt, const struct location *loc)
static void pending_add_line (struct pending_list *pending, int source_idx, int line_num, unsigned long offset, unsigned long load_offset)
static void pending_flush (struct pending_list *pending, struct module *module, struct symt_function *func, struct symt_block *block)
static void stabs_finalize_function (struct module *module, struct symt_function *func, unsigned long size)
static void stabbuf_append (char **buf, unsigned *buf_size, const char *str)
BOOL stabs_parse (struct module *module, unsigned long load_offset, const void *pv_stab_ptr, int stablen, const char *strs, int strtablen, stabs_def_cb callback, void *user)

Variables

static include_definclude_defs = NULL
static int num_include_def = 0
static int num_alloc_include_def = 0
static int cu_include_stack [MAX_INCLUDES]
static int cu_include_stk_idx = 0
static struct symt ** cu_vector = NULL
static int cu_nrofentries = 0
static struct symt_basicstabs_basic [36]

Generated on Thu May 24 2012 05:08:25 for ReactOS by doxygen 1.7.6.1

ReactOS is a registered trademark or a trademark of ReactOS Foundation in the United States and other countries.