X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fbe%2Fbe_dbgout.h;h=6d13844e75b3ac8f047de1a2f368d0be6025614c;hb=6f068af98daa4725d60e5d23a8f98ec2841cfa44;hp=82f948bd02b3d904ae503998b5b34502ba124128;hpb=1fa6131fa3e4b3593019b001976af0f3cc529ac5;p=libfirm diff --git a/ir/be/be_dbgout.h b/ir/be/be_dbgout.h index 82f948bd0..6d13844e7 100644 --- a/ir/be/be_dbgout.h +++ b/ir/be/be_dbgout.h @@ -1,70 +1,58 @@ -#ifndef __BE_DBGOUT_H__ -#define __BE_DBGOUT_H__ -/** - * Debug output support. +/* + * Copyright (C) 1995-2008 University of Karlsruhe. All right reserved. + * + * This file is part of libFirm. + * + * This file may be distributed and/or modified under the terms of the + * GNU General Public License version 2 as published by the Free Software + * Foundation and appearing in the file LICENSE.GPL included in the + * packaging of this file. * - * @author Michael Beck - * @date 11.9.2006 - * @cvsid $Id$ + * Licensees holding valid libFirm Professional Edition licenses may use + * this file in accordance with the libFirm Commercial License. + * Agreement provided with the Software. + * + * This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE + * WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE. */ -#include "obst.h" - -typedef struct dbg_handle dbg_handle; /** - * Debug operations. + * @file + * @brief Debug output support. + * @author Michael Beck + * @date 11.9.2006 + * @version $Id$ */ -typedef struct debug_ops { - /** close the stabs handler. */ - void (*close)(dbg_handle *handle); - - /** start a new source object (compilation unit) */ - void (*so)(dbg_handle *handle, const char *filename); - - /** Main Program */ - void (*main_program)(dbg_handle *handle); - - /** dumps the stabs for a function */ - void (*method)(dbg_handle *handle, entity *ent); - - /** dumps a line number */ - void (*line)(dbg_handle *handle, unsigned lineno, const char *address); - - /** dump types */ - void (*types)(dbg_handle *handle); - - /** dump a global */ - void (*global)(dbg_handle *h, struct obstack *obst, entity *ent); +#ifndef FIRM_BE_BE_DBGOUT_H +#define FIRM_BE_BE_DBGOUT_H -} debug_ops; +#include "beabi.h" -/** The base class of all debug implementations. */ -struct dbg_handle { - const debug_ops *ops; -}; +/* initialize and open debug handle */ +void be_dbg_open(void); /** close a debug handler. */ -void be_dbg_close(dbg_handle *handle); +void be_dbg_close(void); -/** start a new source object (compilation unit) */ -void be_dbg_so(dbg_handle *handle, const char *filename); +/** start a compilation unit */ +void be_dbg_unit_begin(const char *filename); -/** Main program */ -void be_dbg_main_program(dbg_handle *handle); +/** end compilation unit */ +void be_dbg_unit_end(void); -/** debug for a function */ -void be_dbg_method(dbg_handle *handle, entity *ent); +/** debug for a method begin */ +void be_dbg_method_begin(const ir_entity *ent); -/** debug for line number */ -void be_dbg_line(dbg_handle *handle, unsigned lineno, const char *address); +/** debug for a method end */ +void be_dbg_method_end(void); /** dump types */ -void be_dbg_types(dbg_handle *handle); +void be_dbg_types(void); -/** dump a global */ -void be_dbg_global(dbg_handle *handle, struct obstack *obst, entity *ent); +/** dump a variable in the global type */ +void be_dbg_variable(const ir_entity *ent); -/** Opens a stabs handler. */ -dbg_handle *be_stabs_open(FILE *out); +void be_dbg_set_dbg_info(dbg_info *dbgi); -#endif /* __BE_DBGOUT_H__ */ +#endif