chromium/third_party/nasm/output/outdbg.c

/* ----------------------------------------------------------------------- *
 *
 *   Copyright 1996-2018 The NASM Authors - All Rights Reserved
 *   See the file AUTHORS included with the NASM distribution for
 *   the specific copyright holders.
 *
 *   Redistribution and use in source and binary forms, with or without
 *   modification, are permitted provided that the following
 *   conditions are met:
 *
 *   * Redistributions of source code must retain the above copyright
 *     notice, this list of conditions and the following disclaimer.
 *   * Redistributions in binary form must reproduce the above
 *     copyright notice, this list of conditions and the following
 *     disclaimer in the documentation and/or other materials provided
 *     with the distribution.
 *
 *     THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND
 *     CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES,
 *     INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
 *     MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
 *     DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
 *     CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
 *     SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
 *     NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
 *     LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
 *     HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
 *     CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
 *     OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
 *     EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 *
 * ----------------------------------------------------------------------- */

/*
 * outdbg.c	output routines for the Netwide Assembler to produce
 *		a debugging trace
 */

#include "compiler.h"

#include "nctype.h"
#include <errno.h>

#include "nasm.h"
#include "nasmlib.h"
#include "outform.h"
#include "outlib.h"
#include "insns.h"

#ifdef OF_DBG

struct Section {} *dbgsect;

static unsigned long dbg_max_data_dump =;
static bool section_labels =;
static bool subsections_via_symbols =;
static int32_t init_seg;

const struct ofmt of_dbg;
static void dbg_init(void)
{}

static void dbg_reset(void)
{}

static void dbg_cleanup(void)
{}

static int32_t dbg_add_section(char *name, int *bits, const char *whatwecallit)
{}

static int32_t dbg_section_names(char *name, int *bits)
{}

static int32_t dbg_herelabel(const char *name, enum label_type type,
                             int32_t oldseg, int32_t *subsection,
                             bool *copyoffset)
{}

static void dbg_deflabel(char *name, int32_t segment, int64_t offset,
                         int is_global, char *special)
{}

static const char *out_type(enum out_type type)
{}

static const char *out_sign(enum out_sign sign)
{}

static void dbg_out(const struct out_data *data)
{}

static void dbg_legacy_out(int32_t segto, const void *data,
                           enum out_type type, uint64_t size,
                           int32_t segment, int32_t wrt)
{}

static void dbg_sectalign(int32_t seg, unsigned int value)
{}

static enum directive_result
dbg_directive(enum directive directive, char *value)
{}

static enum directive_result
dbg_pragma(const struct pragma *pragma);

static const struct pragma_facility dbg_pragma_list[] =;

static enum directive_result
dbg_pragma(const struct pragma *pragma)
{}

static const char * const types[] =;
static void dbgdbg_init(void)
{}
static void dbgdbg_cleanup(void)
{}

static void dbgdbg_linnum(const char *lnfname, int32_t lineno, int32_t segto)
{}
static void dbgdbg_deflabel(char *name, int32_t segment,
                            int64_t offset, int is_global, char *special)
{}
static void dbgdbg_define(const char *type, const char *params)
{}
static void dbgdbg_output(int output_type, void *param)
{}
static void dbgdbg_typevalue(int32_t type)
{}

static const struct pragma_facility dbgdbg_pragma_list[] =;

static const struct dfmt debug_debug_form =;

static const struct dfmt * const debug_debug_arr[3] =;

extern macros_t dbg_stdmac[];

const struct ofmt of_dbg =;

#endif                          /* OF_DBG */