Main Page | Class Hierarchy | Class List | File List | Class Members | File Members

htdebug.h File Reference

#include <stdio.h>
#include "global.h"

Go to the source code of this file.

Defines

#define HTDEBUG
#define HT_ERROR(a...)   ht_error(__FILE__, __LINE__, a)
#define HT_WARN(a...)   ht_warn(__FILE__, __LINE__, a)
#define HT_TRACE(a...)   ht_trace(__FILE__, __LINE__, a)
#define assert(a)   if (!(a)) ht_assert_failed(__FILE__, __LINE__, (#a));

Typedefs

typedef qword timepoint
typedef int timer_handle

Functions

void ht_assert_failed (char *file, int line, char *assertion)
void ht_error (char *file, int line, char *format,...)
void ht_trace (char *file, int line, char *format,...)
void ht_warn (char *file, int line, char *format,...)
timer_handle new_timer ()
void start_timer (timer_handle handle)
void stop_timer (timer_handle handle)
void delete_timer (timer_handle handle)
dword get_timer_sec (timer_handle handle)
dword get_timer_msec (timer_handle handle)
dword get_timer_tick (timer_handle h)


Define Documentation

#define assert  )     if (!(a)) ht_assert_failed(__FILE__, __LINE__, (#a));
 

Definition at line 60 of file htdebug.h.

Referenced by __lzo_align_gap(), MachoAnalyser::beginAnalysis(), AnalyX86Disassembler::branchAddr(), XBEAnalyser::bufPtr(), PEFAnalyser::bufPtr(), PEAnalyser::bufPtr(), NEAnalyser::bufPtr(), MachoAnalyser::bufPtr(), LEAnalyser::bufPtr(), FLTAnalyser::bufPtr(), ElfAnalyser::bufPtr(), CoffAnalyser::bufPtr(), ClassAnalyser::bufPtr(), AddressX86_1616::compareDelinear(), AddressX86_1632::compareDelinear(), AddressX86Flat32::compareDelinear(), AddressFlat64::compareDelinear(), AddressFlat32::compareDelinear(), Object::compareTo(), AddressX86_1616::compareTo(), AddressX86_1632::compareTo(), AddressX86Flat32::compareTo(), AddressFlat64::compareTo(), AddressFlat32::compareTo(), Analyser::continueAnalysis(), ht_ltextfile::convert_ofs2line(), create_host_int(), create_host_struct(), MachoAnalyser::createAddress(), MachoAnalyser::createAddress32(), Analyser::dataAccess(), DO_COMPRESS(), DO_DECOMPRESS(), do_idle(), AnalyserHTOutput::endLine(), ht_compressed_stream::flush_uncompressed(), generate_html_output(), AnalyserOutput::generateAddr(), AnalyserOutput::getAddr(), ht_object_stream_memmap::getIntHex(), ht_object_stream_bin::getIntHex(), ht_object_stream_memmap::getQWordHex(), ht_object_stream_bin::getQWordHex(), AnalyX86Disassembler::getSegment(), ht_listbox::gotoItemByEntry(), htpefimports_init(), ht_tree::init(), AnalyserInformation::init(), ht_compressed_stream::init(), ht_text_editor_undo::insert_undo(), label_type(), label_type_short(), LE_get_seg_addr(), LE_get_seg_ofs(), LE_get_seg_psize(), LE_get_seg_vsize(), ht_stree::load(), main(), output_map_file(), AnalyserOutput::prevLine(), ht_object_stream_memmap::putIntHex(), ht_object_stream_bin::putIntHex(), ht_object_stream_inter::putObject(), ht_object_stream_memmap::putQWordHex(), ht_object_stream_bin::putQWordHex(), re_compile_fastmap(), ht_reloc_file::read(), ht_uformat_viewer::render_tagstring(), ht_ltextfile::reread(), ht_mem_file::resizebuf(), ht_analy_sub::search(), ht_dtree::set_compare_keys(), Alphadis::strf(), tag_get_len(), tag_get_offset(), tag_is_editable(), ht_uformat_viewer::vsearch(), ht_reloc_file::write(), xref_type(), and xref_type_short().

#define HT_ERROR a...   )     ht_error(__FILE__, __LINE__, a)
 

Definition at line 50 of file htdebug.h.

Referenced by ht_uformat_viewer::draw(), ht_sorted_list::find(), ht_object_stream_memmap::recordEnd(), statictag_to_tag(), and ht_format_viewer::vselect_get().

#define HT_TRACE a...   )     ht_trace(__FILE__, __LINE__, a)
 

Definition at line 54 of file htdebug.h.

#define HT_WARN a...   )     ht_warn(__FILE__, __LINE__, a)
 

Definition at line 51 of file htdebug.h.

#define HTDEBUG
 

Definition at line 29 of file htdebug.h.


Typedef Documentation

typedef qword timepoint
 

Definition at line 37 of file htdebug.h.

typedef int timer_handle
 

Definition at line 39 of file htdebug.h.

Referenced by delete_timer(), ht_text_viewer::draw(), get_timer_msec(), get_timer_sec(), get_timer_tick(), new_timer(), start_timer(), and stop_timer().


Function Documentation

void delete_timer timer_handle  handle  ) 
 

Definition at line 181 of file htdebug.cc.

References timer_handle.

Referenced by ht_app::done(), and ht_text_viewer::draw().

dword get_timer_msec timer_handle  handle  ) 
 

Definition at line 190 of file htdebug.cc.

References dword, and timer_handle.

Referenced by ht_app::draw().

dword get_timer_sec timer_handle  handle  ) 
 

Definition at line 185 of file htdebug.cc.

References dword, and timer_handle.

dword get_timer_tick timer_handle  h  ) 
 

Definition at line 195 of file htdebug.cc.

References dword, and timer_handle.

Referenced by ht_text_viewer::draw().

void ht_assert_failed char *  file,
int  line,
char *  assertion
 

Definition at line 32 of file htdebug.cc.

References file.

void ht_error char *  file,
int  line,
char *  format,
... 
 

Definition at line 44 of file htdebug.cc.

References file.

void ht_trace char *  file,
int  line,
char *  format,
... 
 

Definition at line 55 of file htdebug.cc.

References file.

void ht_warn char *  file,
int  line,
char *  format,
... 
 

Definition at line 66 of file htdebug.cc.

References file.

timer_handle new_timer  ) 
 

Definition at line 168 of file htdebug.cc.

References timer_handle.

Referenced by ht_text_viewer::draw(), and ht_app::init().

void start_timer timer_handle  handle  ) 
 

Definition at line 173 of file htdebug.cc.

References timer_handle.

Referenced by ht_text_viewer::draw(), and ht_app::handlemsg().

void stop_timer timer_handle  handle  ) 
 

Definition at line 177 of file htdebug.cc.

References timer_handle.

Referenced by ht_text_viewer::draw(), and ht_app::handlemsg().


Generated on Fri May 7 21:15:48 2004 by doxygen 1.3.5