navit
0.5.3-trunk
|
#include <stdarg.h>
#include <string.h>
Go to the source code of this file.
Macros | |
#define | dbg_str2(x) #x |
#define | dbg_str1(x) dbg_str2(x) |
#define | dbg_module dbg_str1(MODULE) |
#define | dbg(level, ...) { if (max_debug_level >= level) debug_printf(level,dbg_module,strlen(dbg_module),__PRETTY_FUNCTION__, strlen(__PRETTY_FUNCTION__),1,__VA_ARGS__); } |
#define | dbg_assert(expr) ((expr) ? (void) 0 : debug_assert_fail(dbg_module,strlen(dbg_module),__PRETTY_FUNCTION__, strlen(__PRETTY_FUNCTION__),__FILE__,__LINE__,dbg_str1(expr))) |
#define | DEBUG_MODULE_GLOBAL "global" |
#define | g_free_func g_free |
#define | dbg_guard(x) x |
Enumerations | |
enum | dbg_level { lvl_unset =-1, lvl_error, lvl_warning, lvl_info, lvl_debug } |
Functions | |
void | debug_init (const char *program_name) |
void | debug_level_set (const char *name, dbg_level level) |
struct debug * | debug_new (struct attr *parent, struct attr **attrs) |
dbg_level | debug_level_get (const char *name) |
void | debug_vprintf (dbg_level level, const char *module, const int mlen, const char *function, const int flen, int prefix, const char *fmt, va_list ap) |
Write a log message. More... | |
void | debug_printf (dbg_level level, const char *module, const int mlen, const char *function, const int flen, int prefix, const char *fmt,...) |
void | debug_assert_fail (const char *module, const int mlen, const char *function, const int flen, const char *file, int line, const char *expr) |
void | debug_destroy (void) |
void | debug_set_logfile (const char *path) |
void | debug_dump_mallocs (void) |
void * | debug_malloc (const char *where, int line, const char *func, int size) |
void * | debug_malloc0 (const char *where, int line, const char *func, int size) |
char * | debug_strdup (const char *where, int line, const char *func, const char *ptr) |
char * | debug_guard (const char *where, int line, const char *func, char *str) |
void | debug_free (const char *where, int line, const char *func, void *ptr) |
void | debug_free_func (void *ptr) |
void | debug_finished (void) |
void * | debug_realloc (const char *where, int line, const char *func, void *ptr, int size) |
void | debug_set_global_level (dbg_level level, int override_old_value) |
Variables | |
dbg_level | max_debug_level |
#define dbg | ( | level, | |
... | |||
) | { if (max_debug_level >= level) debug_printf(level,dbg_module,strlen(dbg_module),__PRETTY_FUNCTION__, strlen(__PRETTY_FUNCTION__),1,__VA_ARGS__); } |
Referenced by Qt5EspeakAudioOut::addSamples(), adjust_delta(), android_find_class_global(), android_find_method(), android_find_static_method(), android_search_end(), android_search_idle(), attr_data_size(), attr_from_line(), attr_generic_add_attr(), attr_generic_set_attr(), attr_new_from_text(), attr_resolve(), attr_search(), background_gc(), bind_late(), binfile_attr_get(), binfile_attr_set(), binfile_coord_set(), binfile_extract(), binfile_item_dup(), binfile_read_cd(), binfile_read_content(), binfile_read_eoc(), binfile_read_eoc64(), binfile_search_cd(), binmap_search_get_item(), binmap_search_new(), Backend::block_draw(), block_get_byindex(), block_next(), block_next_lin(), bookmarks_load_hash(), bookmarks_move_down(), bookmarks_move_root(), bookmarks_store_bookmarks_to_file(), build_match(), button_destination_clicked(), button_map_clicked(), button_visit_clicked(), cache_dump(), cache_entry_destroy(), cache_entry_dump(), cache_insert(), cache_list_dump(), cache_lookup(), cache_new(), cache_remove(), cache_remove_lru(), cache_replace(), cache_stats(), cache_trim(), calculate_dest_distance(), callback_call(), ch_generate_ddsg(), ch_generate_sgr(), changed(), command_call_function(), command_evaluate(), command_evaluate_single(), command_evaluate_to_attr(), command_get_attr(), command_new(), command_object_get_attr(), command_register_callbacks(), command_saved_attr_new(), command_saved_callbacks_changed(), command_saved_evaluate(), command_saved_evaluate_idle(), compare_name_systematic(), config_load(), config_new(), config_py(), config_terminate(), configure(), convert_to_attrs(), coord_parse(), coord_rect_overlap(), create_destination_window(), create_memory_dc(), CreateGraphicsWindows(), csv_coord_set(), csv_type_set(), cursor_action(), cursor_new(), dbus_cmd_send_signal(), dbus_dump_iter(), debug_dump_mallocs(), debug_malloc(), decode_attr_from_iter(), decode_attr_type_from_iter(), delete(), destination_address(), displayitem_draw(), displaylist_update_hash(), do_draw(), do_poll(), RenderArea::do_resize(), download(), download_cd(), download_directory_do(), download_download(), download_eoc(), download_finish(), download_planet_size(), download_request(), draw_aligned_osd_text(), draw_drag(), draw_image(), draw_image_warp(), draw_lines(), draw_middle(), draw_mode(), draw_polygon(), draw_rectangle(), draw_shape(), draw_text(), dump(), end_element(), ErrorExit(), espeak_new(), espeak_say(), eval_conditional(), eval_postfix(), eval_value(), QNavitWidget::event(), RenderArea::event(), event_android_add_idle(), event_android_add_watch(), event_android_call_callback(), event_android_main_loop_quit(), event_android_main_loop_run(), event_android_new(), event_android_remove_idle(), event_android_remove_watch(), event_cocoa_add_idle(), event_cocoa_add_timeout(), event_cocoa_main_loop_run(), event_cocoa_new(), event_null_add_idle(), event_null_add_timeout(), event_null_add_watch(), event_null_call_callback(), event_null_main_loop_quit(), event_null_main_loop_run(), event_null_remove_idle(), event_null_remove_timeout(), event_null_remove_watch(), event_opengl_add_idle(), event_opengl_add_timeout(), event_opengl_add_watch(), event_opengl_call_callback(), event_opengl_main_loop_quit(), event_opengl_main_loop_run(), event_opengl_remove_idle(), event_opengl_remove_timeout(), event_opengl_remove_watch(), event_qt5_add_idle(), event_qt5_add_timeout(), event_qt5_add_watch(), event_qt5_call_callback(), event_qt5_main_loop_quit(), event_qt5_main_loop_run(), event_qt5_remove_idle(), event_qt5_remove_timeout(), event_qt5_remove_watch(), event_request_system(), event_sdl_add_idle(), event_sdl_add_timeout(), event_sdl_add_watch(), event_sdl_call_callback(), event_sdl_remove_idle(), event_sdl_remove_timeout(), event_sdl_remove_watch(), event_sdl_watch_startthread(), event_sdl_watch_stopthread(), event_sdl_watch_thread(), event_win32_add_timeout(), event_win32_add_watch(), event_win32_main_loop_quit(), event_win32_main_loop_run(), event_win32_remove_timeout(), event_win32_remove_watch(), face_requester(), file_create(), file_data_flush(), file_data_read_compressed(), file_data_read_special(), file_init(), file_mkdir(), file_process_headers(), file_version(), file_wordexp_new(), filter(), find_class_global(), find_method(), find_next(), find_static_method(), follow_vehicle_action(), font_freetype_font_new(), font_new(), gc_set_background(), gc_set_dashes(), gc_set_foreground(), gc_set_linewidth(), generate_navitintrospectxml(), QNavitQuick::geometryChanged(), Backend::get_bookmarks(), get_data(), get_data_window(), get_int_bool(), get_line(), Backend::get_pois(), get_text_bbox(), Backend::get_vehicles(), NGQProxyNavit::getAttrList(), NGQProxyBookmarks::getBookmarks(), NGQProxyRoute::getDestinations(), geticon(), NGQPoint::getPOI(), Backend::getSearchResults(), graphics_android_cmd_menu(), graphics_android_cmd_runMenuItem(), graphics_android_disable_suspend(), graphics_android_init(), graphics_android_new(), graphics_cocoa_new(), graphics_destroy(), graphics_draw_itemgra(), graphics_draw_polyline_clipped(), graphics_gtk_drawing_area_disable_suspend(), graphics_icon_path(), graphics_image_new_scaled_rotated(), graphics_load_mapset(), graphics_new(), graphics_null_new(), graphics_opengl_egl_new(), graphics_opengl_x11_new(), graphics_opengl_x11_watch(), graphics_qt5_new(), graphics_qt_qpainter_new(), graphics_sdl_idle(), graphics_sdl_new(), graphics_set_attr(), graphics_show_native_keyboard(), gui_add_bookmark(), gui_gtk_toggle_init(), gui_gtk_vehicles_update(), gui_internal_add_vehicle_profile(), gui_internal_apply_config(), gui_internal_box_pack(), gui_internal_button(), gui_internal_cmd2_network_info(), gui_internal_cmd2_pois(), gui_internal_cmd2_position(), gui_internal_cmd2_route_height_profile(), gui_internal_cmd2_set(), gui_internal_cmd_add_bookmark_do(), gui_internal_cmd_add_bookmark_folder_do(), gui_internal_cmd_bookmarks(), gui_internal_cmd_debug(), gui_internal_cmd_enter_coord_clicked(), gui_internal_cmd_enter_coord_do(), gui_internal_cmd_escape(), gui_internal_cmd_img(), gui_internal_cmd_map_download(), gui_internal_cmd_map_download_do(), gui_internal_cmd_menu(), gui_internal_cmd_pois(), gui_internal_cmd_position_do(), gui_internal_cmd_rename_bookmark_clicked(), gui_internal_cmd_set_active_profile(), gui_internal_cmd_set_destination(), gui_internal_cmd_view_attributes(), gui_internal_cmd_view_in_browser(), gui_internal_cmd_write(), gui_internal_coordinate_parse(), gui_internal_find_next_possible_key(), gui_internal_gesture_do(), gui_internal_gesture_get_vector(), gui_internal_gesture_ring_add(), gui_internal_get_match_quality(), gui_internal_highlight_do(), gui_internal_html_load_href(), gui_internal_html_parse_text(), gui_internal_html_submit(), gui_internal_html_text(), gui_internal_keyboard_hide_native(), gui_internal_keyboard_show_native(), gui_internal_keyboard_topbox_resize(), gui_internal_keynav_find_closest(), gui_internal_keynav_highlight_next(), gui_internal_keypress_do(), gui_internal_menu(), gui_internal_menu_menu_resize(), gui_internal_menu_resize(), gui_internal_onclick(), gui_internal_poi_icon(), gui_internal_prepare_search_results_map(), gui_internal_resize(), gui_internal_search_changed(), gui_internal_search_cmp(), gui_internal_search_house_number_in_street(), gui_internal_search_idle(), gui_internal_search_list_set_default_country(), gui_internal_search_street_in_town(), gui_internal_search_town_in_country(), gui_internal_set(), gui_internal_set_attr(), gui_internal_set_click_coord(), gui_internal_set_graphics(), gui_internal_set_refresh_callback(), gui_internal_top_bar(), gui_internal_top_bar_resize(), gui_internal_widget_transfer_content(), gui_qml_button(), gui_qml_keypress(), gui_qml_set_attr(), gui_qml_set_graphics(), gui_qt5_qml_button(), gui_qt5_qml_get_attr(), gui_qt5_qml_motion(), gui_qt5_qml_new(), gui_qt5_qml_resize(), gui_qt5_qml_set_attr(), gui_qt5_qml_set_graphics(), gui_set_graphics(), HandleKeyChar(), HandleKeyDown(), Qt5EspeakAudioOut::handleStateChanged(), hide_native_keyboard(), housenumber_attr_get(), housenumber_search_get_item(), housenumber_search_setup(), image_create(), image_new(), image_new_helper(), image_new_scaled(), NavitViewController::init_withFrame:, initBth(), initDevice(), initialise(), intersect(), intersection(), introspect_path(), is_same_street2(), is_turn_allowed(), is_visible_line(), iso8601_to_time(), item_hash_insert(), item_hash_remove(), itemgra_add_attr(), j1850_idle(), j1850_init_serial_port(), Java_org_navitproject_navit_Navit_NavitDestroy(), Java_org_navitproject_navit_Navit_NavitMain(), Java_org_navitproject_navit_NavitAddressSearchActivity_CallbackCancelAddressSearch(), Java_org_navitproject_navit_NavitAddressSearchActivity_CallbackStartAddressSearch(), Java_org_navitproject_navit_NavitGraphics_ButtonCallback(), Java_org_navitproject_navit_NavitGraphics_CallbackMessageChannel(), Java_org_navitproject_navit_NavitGraphics_GetAllCountries(), Java_org_navitproject_navit_NavitGraphics_GetDefaultCountry(), Java_org_navitproject_navit_NavitGraphics_KeypressCallback(), Java_org_navitproject_navit_NavitGraphics_MotionCallback(), Java_org_navitproject_navit_NavitGraphics_PaddingChangedCallback(), Java_org_navitproject_navit_NavitGraphics_SizeChangedCallback(), Java_org_navitproject_navit_NavitIdle_IdleCallback(), Java_org_navitproject_navit_NavitSensors_SensorCallback(), Java_org_navitproject_navit_NavitTimeout_TimeoutCallback(), Java_org_navitproject_navit_NavitWatch_WatchCallback(), keypress(), keypress_callback(), QNavitQuick::keyPressEvent(), QNavitWidget::keyPressEvent(), RenderArea::keyPressEvent(), QNavitQuick::keyReleaseEvent(), latin1_tolower_ascii(), layer_new(), layer_set_attr_do(), layout_new(), line_intersection(), linguistics_casefold(), linguistics_expand_special(), load_buffer(), log_destroy(), log_new(), log_timer(), log_write(), main(), main_real(), main_setup_environment(), maneuver_required2(), map_binfile_download_range(), map_binfile_download_size(), map_binfile_handle_redirect(), map_binfile_open(), map_binfile_zip_setup(), map_convert_string_tmp(), map_csv_debug_dump_hash_item(), map_destroy_binfile(), map_destroy_csv(), map_destroy_shapefile(), map_dump_file(), map_filter_rect_get_item_byid(), map_filter_search_destroy(), map_filter_search_get_item(), map_filter_search_new(), map_new(), map_new_binfile(), map_new_csv(), map_new_mg(), map_new_shapefile(), map_new_textfile(), map_parse_country_binfile(), map_parse_submap(), map_rect_destroy_binfile(), map_rect_get_item_mg(), map_rect_get_item_shapefile(), map_rect_get_item_textfile(), map_rect_new_binfile(), map_rect_new_binfile_int(), map_rect_new_csv(), map_rect_new_shapefile(), map_rect_new_textfile(), map_route_occluded_attr_get(), map_route_occluded_attr_rewind(), map_route_occluded_check_buildings(), map_route_occluded_coord_get(), map_route_occluded_coord_rewind(), map_route_occluded_get_item(), map_route_occluded_new(), map_route_occluded_rect_new(), map_search_destroy_mg(), map_search_get_item_mg(), map_search_mg_convert_special(), map_search_new(), map_search_new_mg(), map_search_setup(), maps_new(), mapset_search_new(), mkgmtime(), mlPDL_ServiceCall(), mlPDL_ServiceCall_callback(), mlPDL_ServiceCallWithCallback(), mlPDL_ServiceCallWithCallback_callback(), QNavitQuick::mouseEvent(), QNavitQuick::mouseMoveEvent(), QNavitQuick::mousePressEvent(), QNavitQuick::mouseReleaseEvent(), multiline_label_draw(), navigation_analyze_roundabout(), navigation_call_callbacks(), navigation_destroy_itms_cmds(), navigation_get_announce_level(), navigation_get_attr(), navigation_itm_new(), navigation_itm_update(), navigation_itm_ways_update(), navigation_map_get_item(), navigation_set_announce(), navigation_update(), navigation_update_idle(), navigation_way_get_max_delta(), navigation_way_init(), navit_button(), navit_cmd_map_add_curr_pos(), navit_cmd_map_item_set_attr(), navit_cmd_set_attr_var(), navit_cmd_spawn(), navit_cmd_switch_layout_day_night(), navit_destroy(), navit_get_attr(), navit_get_attr_py(), navit_get_cursor_pnt(), navit_get_mapset(), navit_get_user_data_directory(), navit_handle_button(), navit_handler_func(), navit_init(), navit_layout_switch(), navit_mark_navigation_stopped(), navit_new(), navit_object_add_attr(), navit_object_ref(), navit_object_set_attr(), navit_object_unref(), navit_py(), navit_py_ref(), navit_say(), navit_set_attr_do(), navit_set_destination(), navit_set_gui(), navit_speak(), navit_update_current_layout(), navit_utf8_strcasecmp(), navit_window_roadbook_destroy(), navit_window_roadbook_update(), navit_zoom_to_rect(), navit_zoom_to_route(), NGQProxySearch::NGQProxySearch(), notify_textchange(), object_new(), orient_north_action(), osd_auxmap_draw(), osd_button_draw(), osd_button_init(), osd_button_new(), osd_button_set_attr(), osd_evaluate_command(), osd_gps_status_draw(), osd_image_init(), osd_image_new(), osd_j1850_new(), osd_marker_draw(), osd_nav_next_turn_draw(), osd_nav_toggle_announcer_draw(), osd_navigation_status_draw_do(), osd_navigation_status_init(), osd_new(), osd_rocket_init(), osd_set_keypress(), osd_set_std_config(), osd_set_std_graphic(), osd_std_calculate_sizes(), osd_std_config(), osd_std_keypress(), osd_std_reconfigure(), osd_text_draw(), osso_cb_hw_state_idle(), osso_display_on(), osso_navit(), overlay_disable(), overlay_new(), overlay_resize(), padding_callback(), QNavitQuick::paint(), QNavitWidget::paintEvent(), paintOverlays(), parse_dbg_level(), parse_for_systematic_comparison(), pcoord_py(), pedestrian_draw_arrows(), pedestrian_log(), pedestrian_navit(), pedestrian_navit_init(), pedestrian_read_tilt(), pedestrian_rocket_idle(), pedestrian_setup_tilt(), pedestrian_write_tilt(), plugin_get_category(), plugin_init(), plugin_load(), plugin_new(), plugins_init(), pngdecode(), point_get_from_message(), poly_get(), pop_tile(), popup(), popup_item_dump(), popup_printf_cb(), popup_set_position(), popup_show_item(), popup_traffic_distortion(), popup_traffic_distortion_blocked(), QNavitGeoReceiver::positionUpdated(), profile_option_new(), progress_memory(), progress_time(), projection_from_name(), push_zipfile_tile(), push_zipfile_tile_do(), qt5_espeak_destroy(), qt5_espeak_init_audio(), qt5_espeak_init_espeak(), qt5_espeak_init_language(), qt5_espeak_new(), qt5_espeak_say(), qt5_espeak_SynthCallback(), qt5_navit_timer::qt5_navit_timer(), Qt5EspeakAudioOut::Qt5EspeakAudioOut(), qt_qpainter_draw(), quadtree_add(), quadtree_item_next(), quadtree_node_drop_garbage(), quadtree_query(), register_destination_window(), request_navit_quit(), request_navit_resize(), request_navit_route_export_geojson(), request_navit_route_export_gpx(), request_navit_set_destination(), request_navit_traffic_export_gpx(), request_navit_traffic_inject(), request_navit_zoom(), request_navit_zoom_to_route(), request_set_add_remove_attr(), resize_callback(), resize_ft_buffer(), QNavitWidget::resizeEvent(), resolve_object(), result_op(), result_set(), Qt5EspeakAudioOut::resume(), rm_coord_get(), rm_rect_new(), road_angle(), round_distance_reduced(), route_find_nearest_street(), route_get_attr(), route_get_traffic_distortion(), route_graph_add_turn_restriction(), route_graph_build(), route_graph_build_done(), route_graph_clone_segment(), route_graph_process_restriction_point(), route_graph_process_restriction_segment(), route_graph_process_restrictions(), route_path_add_item_from_graph(), route_path_add_line(), route_path_new(), route_path_update_done(), route_path_update_flags(), route_rect(), route_remove_attr(), route_set_attr(), route_set_position_flags(), route_set_position_from_tracking(), route_value_seg(), row_activated(), rp_attr_get(), rp_rect_new(), run_timer(), QNavitGeoReceiver::satellitesInUseUpdated(), QNavitGeoReceiver::satellitesInViewUpdated(), save_map_csv(), script_destroy(), script_new(), script_run(), script_set_attr_int(), sdl_timer_callback(), search_by_address_attr(), search_house_number_coordinate(), search_house_number_interpolation_split(), search_list_get_result(), search_list_level(), search_list_search(), search_list_town_new(), search_next_house_number_curr_interpol_with_ends(), search_phrase_used(), search_postal_merge(), Backend::searchValidateResult(), select_announced_destinations(), select_row(), selection_contains(), send_and_read(), set_activity(), set_attr(), set_attr_do(), Backend::setActivePoiAsDestination(), NGQProxy::setAttr(), QNavitQuick::setGraphicContext(), NGQProxyBookmarks::setPoint(), Backend::setSearchContext(), setup_pos(), shm_next(), show_maneuver(), show_native_keyboard(), Backend::showMenu(), sig_alrm_do(), spawn_process(), spawn_process_check_status(), speech_android_init(), speech_android_new(), speech_android_say(), speech_cmdline_search(), speech_iphone_new(), speech_iphone_say(), speech_message_dispatcher(), speech_message_handler(), speech_new(), speech_say(), speechd_new(), speechd_say(), split_string_to_list(), square_shape_str(), start_element(), start_search(), startThread(), street_attr_get(), street_coord_get(), street_get(), street_get_coord(), street_name_attr_get(), street_name_coord_get(), street_name_get_byid(), street_name_numbers_next(), street_search_compare(), street_search_compare_do(), street_search_get_item_street_name(), tessBeginCB(), tessEndCB(), tessVertexCB(), textfile_attr_get(), textfile_coord_get(), tile_collector_process_tile(), tm_dump_item_to_textfile(), tm_rect_new(), tm_type_set(), town_attr_get(), town_search_compare(), town_search_get_item(), tracking_action(), tracking_doupdate_lines(), tracking_flush(), tracking_get_attr(), tracking_map_get_item(), tracking_map_item_coord_get(), tracking_update(), tracking_value(), traffic_dummy_new(), traffic_dump_messages_to_xml(), traffic_event_is_valid(), traffic_get_messages_from_xml_file(), traffic_get_messages_from_xml_string(), traffic_init(), traffic_location_get_matching_points(), traffic_message_add_segments(), traffic_message_dump_to_stderr(), traffic_message_is_valid(), traffic_new(), traffic_null_new(), traffic_point_match_segment_attributes(), traffic_process_messages_int(), traffic_route_append(), traffic_route_flood_graph(), traffic_route_prepend(), traffic_set_shared(), traffic_traff_android_init(), traffic_traff_android_new(), traffic_traff_android_on_feed_received(), traffic_xml_end(), traffic_xml_start(), traffic_xml_text(), transform(), transform_distance(), transform_get_order(), transform_get_selection(), transform_project(), transform_project_onto_view_plane(), transform_reverse_near_far(), transform_rotate(), transform_set_hog(), transform_set_roll(), transform_setup_matrix(), transform_setup_source_rect(), transform_z_clip(), tree_search_enter(), tree_search_h(), tree_search_hv(), tree_search_next(), tree_search_next_lin(), tree_search_v(), update_transformation(), Backend::updateSearch(), vehicle_android_destroy(), vehicle_android_init(), vehicle_android_new_android(), vehicle_android_position_attr_get(), vehicle_android_position_callback(), vehicle_demo_new(), vehicle_demo_set_attr_do(), vehicle_demo_timer(), vehicle_destroy(), vehicle_draw(), vehicle_draw_do(), vehicle_file_close(), vehicle_file_disable_watch(), vehicle_file_enable_watch(), vehicle_file_enable_watch_timer(), vehicle_file_io(), vehicle_file_new_file(), vehicle_file_open(), vehicle_file_parse(), vehicle_file_position_attr_get(), vehicle_gpsd_callback(), vehicle_gpsd_close(), vehicle_gpsd_dbus_open(), vehicle_gpsd_dbus_set_attr_do(), vehicle_gpsd_io(), vehicle_gpsd_new_gpsd(), vehicle_gpsd_open(), vehicle_gpsd_try_open(), vehicle_gypsy_new_gypsy(), vehicle_gypsy_try_open(), vehicle_iphone_new(), vehicle_iphone_update(), vehicle_log_binfile(), vehicle_maemo_callback(), vehicle_maemo_error(), vehicle_maemo_new_maemo(), vehicle_maemo_open(), vehicle_maemo_position_attr_get(), vehicle_new(), vehicle_null_destroy(), vehicle_null_new_null(), vehicle_null_position_attr_get(), vehicle_qt5_destroy(), vehicle_qt5_new_qt5(), vehicle_qt5_position_attr_get(), vehicle_set_default_name(), vehicle_webos_bt_close(), vehicle_webos_bt_gap_callback(), vehicle_webos_bt_open(), vehicle_webos_callback(), vehicle_webos_gps_update(), vehicle_webos_init_bt_gps(), vehicle_webos_init_pdl_locationtracking_callback(), vehicle_webos_open(), vehicle_webos_parse_nmea(), vehicle_webos_position_attr_get(), vehicle_webos_set_attr_do(), vehicle_webos_spp_handle_open(), vehicle_webos_spp_handle_read(), vehicle_webos_spp_notify(), vehicle_webos_timeout_callback(), vehicle_wince_available_ports(), vehicle_wince_close(), vehicle_wince_disable_watch(), vehicle_wince_enable_watch(), vehicle_wince_io(), vehicle_wince_new(), vehicle_wince_open(), vehicle_wince_parse(), vehicle_wince_position_attr_get(), vehicleprofile_apply_attrs(), vehicleprofile_apply_roadprofile(), vehicleprofile_debug_roadprofile(), vehicleprofile_set_attr_do(), vehicleprofile_update(), VSI_SHP_Error(), qt5_navit_timer::watchEvent(), RenderArea::watchEvent(), QNavitWidget::wheelEvent(), QNavitQuick::wheelEvent(), win32_cmd_send_signal(), win32_main_navit(), win32_wm_copydata(), wince_reader_thread(), window_layout(), WndProc(), write_aux_tiles(), write_changes_do(), write_former_destinations(), write_to_serial_port(), xinclude(), xml_parse_file(), xml_parse_text(), xmlconfig_announce(), xpointer_xpointer_match(), zip_write_index(), and zipfile_to_tile().
#define dbg_assert | ( | expr | ) | ((expr) ? (void) 0 : debug_assert_fail(dbg_module,strlen(dbg_module),__PRETTY_FUNCTION__, strlen(__PRETTY_FUNCTION__),__FILE__,__LINE__,dbg_str1(expr))) |
Referenced by attr_strings_save(), block_next(), block_rect_same(), callback_call(), cd_to_cpu(), ch_generate_ddsg(), ch_process_node(), ch_setup(), coord_rect_contains(), coord_rect_new(), coord_rect_overlap(), debug_vprintf(), draw_shape(), eoc_to_cpu(), event_sdl_watch_startthread(), file_create(), file_mmap(), graphics_sdl_new(), gui_internal_search_idle(), gui_internal_table_render(), item_bin_sort_file(), item_bin_write(), lfh_to_cpu(), load_buffer(), map_binfile_zip_setup(), map_rect_get_item(), map_rect_get_item_byid(), map_route_occluded_coord_get(), map_selection_contains_rect(), osm_add_node(), osm_end_node(), osm_end_way(), osm_update_attr_present(), popup_show_item(), process_house_number_interpolations_setup(), process_slice(), push_tile(), read_item(), route_graph_add_segment(), route_graph_add_street(), save_buffer(), shapefile_coord_get(), street_get_bytes(), tempfile_rename(), traffic_location_populate_route_graph(), win32_cb_graphics_ready(), write_item(), write_item_way_subsection(), write_item_way_subsection_index(), and write_zipmember().
#define dbg_guard | ( | x | ) | x |
#define dbg_module dbg_str1(MODULE) |
#define dbg_str1 | ( | x | ) | dbg_str2(x) |
#define dbg_str2 | ( | x | ) | #x |
#define DEBUG_MODULE_GLOBAL "global" |
Referenced by debug_level_set().
#define g_free_func g_free |
Referenced by gui_internal_cmd_position_do(), and gui_internal_keyboard_key().
enum dbg_level |
Navit, a modular navigation system. Copyright (C) 2005-2008 Navit Team
This program is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License version 2 as published by the Free Software Foundation.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details.
You should have received a copy of the GNU Library General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.Possible debug levels (inspired by SLF4J).
void debug_assert_fail | ( | const char * | module, |
const int | mlen, | ||
const char * | function, | ||
const int | flen, | ||
const char * | file, | ||
int | line, | ||
const char * | expr | ||
) |
References debug_printf(), and lvl_error.
void debug_destroy | ( | void | ) |
References debug_fp.
Referenced by debug_finished(), and debug_set_logfile().
void debug_dump_mallocs | ( | void | ) |
References dbg, lvl_debug, malloc_heads, mallocs, malloc_head::next, malloc_head::return_address, malloc_head::size, and malloc_head::where.
Referenced by debug_finished().
void debug_finished | ( | void | ) |
References debug_destroy(), debug_dump_mallocs(), debug_hash, and gdb_program.
Referenced by main_real().
void debug_free | ( | const char * | where, |
int | line, | ||
const char * | func, | ||
void * | ptr | ||
) |
References debug_malloc_size, malloc_head::magic, malloc_tail::magic, malloc_heads, mallocs, malloc_head::next, malloc_head::prev, malloc_head::size, and malloc_head::where.
Referenced by debug_free_func(), and debug_realloc().
void debug_free_func | ( | void * | ptr | ) |
References debug_free().
char* debug_guard | ( | const char * | where, |
int | line, | ||
const char * | func, | ||
char * | str | ||
) |
References debug_strdup().
void debug_init | ( | const char * | program_name | ) |
References debug_fp, debug_hash, gdb_program, and sigsegv().
Referenced by main_real().
dbg_level debug_level_get | ( | const char * | name | ) |
References debug_hash, and DEFAULT_DEBUG_LEVEL.
Referenced by debug_vprintf(), and map_rect_new_csv().
void debug_level_set | ( | const char * | name, |
dbg_level | level | ||
) |
References debug_hash, DEBUG_MODULE_GLOBAL, debug_set_global_level(), debug_update_level(), segv_level, sigsegv(), and timestamp_prefix.
Referenced by debug_new().
void* debug_malloc | ( | const char * | where, |
int | line, | ||
const char * | func, | ||
int | size | ||
) |
References __builtin_return_address, dbg, debug_malloc_size, debug_malloc_size_m, lvl_debug, malloc_head::magic, malloc_tail::magic, malloc_heads, mallocs, malloc_head::next, malloc_head::prev, malloc_head::return_address, malloc_head::size, and malloc_head::where.
Referenced by debug_malloc0(), debug_realloc(), and debug_strdup().
void* debug_malloc0 | ( | const char * | where, |
int | line, | ||
const char * | func, | ||
int | size | ||
) |
References debug_malloc().
References attr_search(), debug, debug_level_set(), dummy, lvl_unset, name, p, parse_dbg_level(), attr::str, and attr::u.
void debug_printf | ( | dbg_level | level, |
const char * | module, | ||
const int | mlen, | ||
const char * | function, | ||
const int | flen, | ||
int | prefix, | ||
const char * | fmt, | ||
... | |||
) |
References debug_vprintf().
Referenced by debug_assert_fail(), and profile_timer().
void* debug_realloc | ( | const char * | where, |
int | line, | ||
const char * | func, | ||
void * | ptr, | ||
int | size | ||
) |
References debug_free(), and debug_malloc().
void debug_set_global_level | ( | dbg_level | level, |
int | override_old_value | ||
) |
References global_debug_level, GLOBAL_DEBUG_LEVEL_UNSET, and max_debug_level.
Referenced by debug_level_set(), and main_real().
void debug_set_logfile | ( | const char * | path | ) |
References debug_destroy(), and debug_fp.
Referenced by main_real().
char* debug_strdup | ( | const char * | where, |
int | line, | ||
const char * | func, | ||
const char * | ptr | ||
) |
References debug_malloc(), and malloc_head::size.
Referenced by debug_guard().
void debug_vprintf | ( | dbg_level | level, |
const char * | module, | ||
const int | mlen, | ||
const char * | function, | ||
const int | flen, | ||
int | prefix, | ||
const char * | fmt, | ||
va_list | ap | ||
) |
Write a log message.
level | The level of the message. The message will only be written if level is higher than the minimum (global, per module or per function) |
module | The name of the module that is initiating the log message |
mlen | The length of string module |
function | The name of the function that is initiating the log message |
flen | The length of string function |
prefix | Force prepending the message with context information (a timestamp, if timestamp_prefix is set), and the module and function name |
fmt | The format string that specifies how subsequent arguments are output |
ap | A list of arguments to use for substitution in the format string |
References dbg_assert, dbg_level_to_string(), debug_fp, debug_level_get(), debug_timestamp(), global_debug_level, and timestamp_prefix.
Referenced by debug_printf(), logfn(), and profile_timer().
dbg_level max_debug_level |
Referenced by debug_set_global_level(), and debug_update_level().