summaryrefslogtreecommitdiffhomepage
path: root/ir/be/bedwarf.h
diff options
context:
space:
mode:
authorMatthias Braun <matthias.braun@kit.edu>2012-04-25 22:52:07 +0200
committerMatthias Braun <matthias.braun@kit.edu>2012-04-25 23:08:30 +0200
commit5f6c325fb0ecef208f510046e0ade03a645b3540 (patch)
tree470d5bda6cff391e08cc646f7bc6e3b3925d081b /ir/be/bedwarf.h
parent440587fd69a480aa3f08a02b0cdf39cb9d5ac634 (diff)
bedbgout, stabs: remove obsolete debug modules
Remove the stabs debugoutput code and with it all the complexity of a modular debug output system. The only remaining debug output module is dwarf.
Diffstat (limited to 'ir/be/bedwarf.h')
-rw-r--r--ir/be/bedwarf.h55
1 files changed, 55 insertions, 0 deletions
diff --git a/ir/be/bedwarf.h b/ir/be/bedwarf.h
new file mode 100644
index 0000000..a795f60
--- /dev/null
+++ b/ir/be/bedwarf.h
@@ -0,0 +1,55 @@
+/*
+ * 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 Dwarf debug output support.
+ * @author Matthias Braun
+ */
+#ifndef FIRM_BE_BEDWARF_H
+#define FIRM_BE_BEDWARF_H
+
+#include "beabi.h"
+
+/** initialize and open debug handle */
+void be_dwarf_open(void);
+
+/** close a debug handler. */
+void be_dwarf_close(void);
+
+/** start a compilation unit */
+void be_dwarf_unit_begin(const char *filename);
+
+/** end compilation unit */
+void be_dwarf_unit_end(void);
+
+/** debug for a method begin */
+void be_dwarf_method_begin(const ir_entity *ent);
+
+/** debug for a method end */
+void be_dwarf_method_end(void);
+
+/** dump a variable in the global type */
+void be_dwarf_variable(const ir_entity *ent);
+
+/** Set "location" in the sourcefile corresponding to the following
+ * assembly instructions */
+void be_dwarf_location(dbg_info *dbgi);
+
+#endif