X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fdebug%2Fdebugger.h;h=b1310a1eb915f61c5049206756ca5d9c74b4d522;hb=04321ea9f9ac1185bd7092813c34683aa15cd05f;hp=55ceb2e55f16f1cbb600c3eabb7878cc6c7edc2b;hpb=863d31d7a5c8210432fef88b30fc3e8353131538;p=libfirm diff --git a/ir/debug/debugger.h b/ir/debug/debugger.h index 55ceb2e55..b1310a1eb 100644 --- a/ir/debug/debugger.h +++ b/ir/debug/debugger.h @@ -1,16 +1,33 @@ /* - * Project: libFIRM - * File name: ir/debug/debugger.h - * Purpose: Helper function for integerated debug support - * Author: Michael Beck - * Modified by: - * Created: 2005 - * CVS-ID: $Id$ - * Copyright: (c) 2001-2005 Universität Karlsruhe - * Licence: This file protected by GPL - GNU GENERAL PUBLIC LICENSE. - */ -#ifndef __DEBUGGER_H__ -#define __DEBUGGER_H__ + * 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. + * + * 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. + */ + +/** + * @file + * @brief Helper function for integrated debug support + * @author Michael Beck + * @date 2005 + * @version $Id$ + */ +#ifndef FIRM_DEBUG_DEBUGGER_H +#define FIRM_DEBUG_DEBUGGER_H + +#include "firm_types.h" /** Break into the debugger. */ void firm_debug_break(void); @@ -27,4 +44,43 @@ void firm_break(const char *cmd); /** Creates the debugger tables. */ void firm_init_debugger(void); -#endif /* __DEBUGGER_H__ */ +/** + * @defgroup external_debug helper functions for debuggers + * + * @{ + */ + +/** + * Returns non-zero, if the debug extension is active + */ +int firm_debug_active(void); + +/** + * Return the content of the debug text buffer. + * + * To be called from the debugger. + */ +const char *firm_debug_text(void); + +/** + * A gdb helper function to print tarvals. + */ +const char *gdb_tarval_helper(void *tv_object); + +/** + * A gdb helper to print all (new-style-) out edges of a node + */ +const char *gdb_out_edge_helper(const ir_node *node); + +/** + * High level function to use from debugger interface + * + * See show_commands() for supported commands. + */ +void firm_debug(const char *cmd); + +/** + * @} + */ + +#endif