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

msc.c File Reference
#include "config.h"
#include "wine/port.h"
#include <assert.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stdarg.h>
#include "windef.h"
#include "winbase.h"
#include "winternl.h"
#include "wine/exception.h"
#include "wine/debug.h"
#include "dbghelp_private.h"
#include "wine/mscvpdb.h"

Go to the source code of this file.

Data Structures

struct  pdb_stream_name
struct  pdb_file_info
struct  pdb_module_info
struct  cv_defined_module
struct  codeview_type_parse
struct  pevaluator
struct  zvalue

Defines

#define NONAMELESSUNION
#define MAX_PATHNAME_LEN   1024
#define CV_MAX_MODULES   32
#define MAX_BUILTIN_TYPES   0x06FF
#define FIRST_DEFINABLE_TYPE   0x1000
#define CV_MAX_MODULES   32
#define PEV_MAX_LEN   32
#define PEV_ERROR(pev, msg)   snprintf((pev)->error, sizeof((pev)->error), "%s", (msg)),FALSE
#define PEV_ERROR1(pev, msg, pmt)   snprintf((pev)->error, sizeof((pev)->error), (msg), (pmt)),FALSE
#define MAKESIG(a, b, c, d)   ((a) | ((b) << 8) | ((c) << 16) | ((d) << 24))
#define CODEVIEW_NB09_SIG   MAKESIG('N','B','0','9')
#define CODEVIEW_NB10_SIG   MAKESIG('N','B','1','0')
#define CODEVIEW_NB11_SIG   MAKESIG('N','B','1','1')
#define CODEVIEW_RSDS_SIG   MAKESIG('R','S','D','S')

Functions

 WINE_DEFAULT_DEBUG_CHANNEL (dbghelp_msc)
static void dump (const void *ptr, unsigned len)
static void codeview_init_basic_types (struct module *module)
static int leaf_as_variant (VARIANT *v, const unsigned short int *leaf)
static int numeric_leaf (int *value, const unsigned short int *leaf)
static const charterminate_string (const struct p_string *p_name)
static struct symtcodeview_get_type (unsigned int typeno, BOOL quiet)
static const voidcodeview_jump_to_type (const struct codeview_type_parse *ctp, DWORD idx)
static int codeview_add_type (unsigned int typeno, struct symt *dt)
static void codeview_clear_type_table (void)
static struct symtcodeview_parse_one_type (struct codeview_type_parse *ctp, unsigned curr_type, const union codeview_type *type, BOOL details)
static voidcodeview_cast_symt (struct symt *symt, enum SymTagEnum tag)
static struct symtcodeview_fetch_type (struct codeview_type_parse *ctp, unsigned typeno, BOOL details)
static struct symtcodeview_add_type_pointer (struct codeview_type_parse *ctp, struct symt *existing, unsigned int pointee_type)
static struct symtcodeview_add_type_array (struct codeview_type_parse *ctp, const char *name, unsigned int elemtype, unsigned int indextype, unsigned int arr_len)
static int codeview_add_type_enum_field_list (struct module *module, struct symt_enum *symt, const union codeview_reftype *ref_type)
static void codeview_add_udt_element (struct codeview_type_parse *ctp, struct symt_udt *symt, const char *name, int value, unsigned type)
static int codeview_add_type_struct_field_list (struct codeview_type_parse *ctp, struct symt_udt *symt, unsigned fieldlistno)
static struct symtcodeview_add_type_enum (struct codeview_type_parse *ctp, struct symt *existing, const char *name, unsigned fieldlistno, unsigned basetype)
static struct symtcodeview_add_type_struct (struct codeview_type_parse *ctp, struct symt *existing, const char *name, int structlen, enum UdtKind kind, unsigned property)
static struct symtcodeview_new_func_signature (struct codeview_type_parse *ctp, struct symt *existing, enum CV_call_e call_conv)
static void codeview_add_func_signature_args (struct codeview_type_parse *ctp, struct symt_function_signature *sym, unsigned ret_type, unsigned args_list)
static int codeview_parse_type_table (struct codeview_type_parse *ctp)
static unsigned long codeview_get_address (const struct msc_debug_info *msc_dbg, unsigned seg, unsigned offset)
static void codeview_snarf_linetab (const struct msc_debug_info *msc_dbg, const BYTE *linetab, int size, BOOL pascal_str)
static void codeview_snarf_linetab2 (const struct msc_debug_info *msc_dbg, const BYTE *linetab, DWORD size, const char *strimage, DWORD strsize)
static unsigned int codeview_map_offset (const struct msc_debug_info *msc_dbg, unsigned int offset)
static void codeview_add_variable (const struct msc_debug_info *msc_dbg, struct symt_compiland *compiland, const char *name, unsigned segment, unsigned offset, unsigned symtype, BOOL is_local, BOOL in_tls, BOOL force)
static int codeview_snarf (const struct msc_debug_info *msc_dbg, const BYTE *root, int offset, int size, BOOL do_globals)
static int codeview_snarf_public (const struct msc_debug_info *msc_dbg, const BYTE *root, int offset, int size)
static voidpdb_jg_read (const struct PDB_JG_HEADER *pdb, const WORD *block_list, int size)
static voidpdb_ds_read (const struct PDB_DS_HEADER *pdb, const DWORD *block_list, int size)
static voidpdb_read_jg_file (const struct PDB_JG_HEADER *pdb, const struct PDB_JG_TOC *toc, DWORD file_nr)
static voidpdb_read_ds_file (const struct PDB_DS_HEADER *pdb, const struct PDB_DS_TOC *toc, DWORD file_nr)
static voidpdb_read_file (const struct pdb_file_info *pdb_file, DWORD file_nr)
static unsigned pdb_get_file_size (const struct pdb_file_info *pdb_file, DWORD file_nr)
static void pdb_free (void *buffer)
static void pdb_free_file (struct pdb_file_info *pdb_file)
static BOOL pdb_load_stream_name_table (struct pdb_file_info *pdb_file, const char *str, unsigned cb)
static unsigned pdb_get_stream_by_name (const struct pdb_file_info *pdb_file, const char *name)
static voidpdb_read_strings (const struct pdb_file_info *pdb_file)
static void pdb_module_remove (struct process *pcsn, struct module_format *modfmt)
static void pdb_convert_types_header (PDB_TYPES *types, const BYTE *image)
static void pdb_convert_symbols_header (PDB_SYMBOLS *symbols, int *header_size, const BYTE *image)
static void pdb_convert_symbol_file (const PDB_SYMBOLS *symbols, PDB_SYMBOL_FILE_EX *sfile, unsigned *size, const void *image)
static HANDLE map_pdb_file (const struct process *pcs, const struct pdb_lookup *lookup, struct module *module)
static void pdb_process_types (const struct msc_debug_info *msc_dbg, const struct pdb_file_info *pdb_file)
static BOOL pdb_init (const struct pdb_lookup *pdb_lookup, struct pdb_file_info *pdb_file, const char *image, unsigned *matched)
static BOOL pdb_process_internal (const struct process *pcs, const struct msc_debug_info *msc_dbg, const struct pdb_lookup *pdb_lookup, struct pdb_module_info *pdb_module_info, unsigned module_index)
static void pdb_process_symbol_imports (const struct process *pcs, const struct msc_debug_info *msc_dbg, const PDB_SYMBOLS *symbols, const void *symbols_image, const char *image, const struct pdb_lookup *pdb_lookup, struct pdb_module_info *pdb_module_info, unsigned module_index)
static BOOL pdb_process_file (const struct process *pcs, const struct msc_debug_info *msc_dbg, struct pdb_lookup *pdb_lookup)
BOOL pdb_fetch_file_info (const struct pdb_lookup *pdb_lookup, unsigned *matched)
static BOOL pev_get_val (struct pevaluator *pev, const char *str, DWORD_PTR *val)
static BOOL pev_push (struct pevaluator *pev, const char *elt)
static BOOL pev_pop (struct pevaluator *pev, char *elt)
static BOOL pev_pop_val (struct pevaluator *pev, DWORD_PTR *val)
static BOOL pev_set_value (struct pevaluator *pev, const char *name, DWORD_PTR val)
static BOOL pev_binop (struct pevaluator *pev, char op)
static BOOL pev_deref (struct pevaluator *pev)
static BOOL pev_assign (struct pevaluator *pev)
static void pev_init (struct pevaluator *pev, struct cpu_stack_walk *csw, PDB_FPO_DATA *fpoext, struct pdb_cmd_pair *cpair)
static BOOL pev_free (struct pevaluator *pev, struct pdb_cmd_pair *cpair)
static BOOL pdb_parse_cmd_string (struct cpu_stack_walk *csw, PDB_FPO_DATA *fpoext, const char *cmd, struct pdb_cmd_pair *cpair)
BOOL pdb_virtual_unwind (struct cpu_stack_walk *csw, DWORD_PTR ip, CONTEXT *context, struct pdb_cmd_pair *cpair)
static BOOL codeview_process_info (const struct process *pcs, const struct msc_debug_info *msc_dbg)
BOOL pe_load_debug_directory (const struct process *pcs, struct module *module, const BYTE *mapping, const IMAGE_SECTION_HEADER *sectp, DWORD nsect, const IMAGE_DEBUG_DIRECTORY *dbg, int nDbg)

Variables

static struct symtcv_basic_types [MAX_BUILTIN_TYPES]
static struct cv_defined_module cv_zmodules [CV_MAX_MODULES]
static struct cv_defined_modulecv_current_module
static const char PDB_JG_IDENT [] = "Microsoft C/C++ program database 2.00\r\n\032JG\0"
static const char PDB_DS_IDENT [] = "Microsoft C/C++ MSF 7.00\r\n\032DS\0"

Generated on Mon May 28 2012 05:08:49 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.