This is the mail archive of the gdb@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[patch gdb]: Fix some DOS-path related issues in gdb


Hello,

This patch fixes some issues related to DOS file-system filenames and
paths. I am not sure, if I
hit all places, nevertheless I am sure I hit most.
This patch uses the libiberty functions & macros about
directory-separator checks, absolute-path checks,
and the filename-comparision functions.

ChangeLog gdb/

2011-03-03 ?Kai Tietz

? ? ? ?* breakpoint.c (clear_command): Use filename_(n)cmp
? ? ? ?for source-file comparision.
? ? ? ?* bsd-kvm.c (bsd_kvm_open): Use IS_ABSOLUTE_PATH check
? ? ? ?for filename.
? ? ? ?(bsd_kvm_files_info): Use filename_cmp for core-file
? ? ? ?comparision.
? ? ? ?* buildsym.c (patch_subfile_names): Use IS_DIR_SEPRARATOR
? ? ? ?for trailing directory-separator check.
? ? ? ?(watch_main_source_file): Use filename_cmp for mainbase
? ? ? ?comparision.
? ? ? ?* dbxread.c (add_old_header_file): Use filename_cmp for file-name
? ? ? ?comparision.
? ? ? ?(read_dbx_symtab): Handle DOS path-separators. And use filename_cmp
? ? ? ?for filename comparision.
? ? ? ?* elfread.c (find_separate_debug_file_by_buildid): Use
? ? ? ?filename_cmp for object-filename comparision.
? ? ? ?(elfstab_offset_sections): Handle DOS path-separators. And use
? ? ? ?filename_cmp for filename comparision.
? ? ? ?* exec.c (exec_set_section_address): Use filename_cmp
? ? ? ?for file-name comparision.
? ? ? ?* macrotab.c (macro_lookup_inclusion): Likewise.
? ? ? ?* mdebugread.c (pase_partial_symbols): Handle DOS
? ? ? ?path-separators. And use filename_cmp for file-name comparision.
? ? ? ?* minsyms.c (lookup_minimal_symbol): Likewise.
? ? ? ?* nto-procfs.c (procfs_open): Likewise.
? ? ? ?* psymtab.c (read_psymtabs_with_filename): Use filename_cmp
? ? ? ?for file-name comparision.
? ? ? ?* remote-fileio.c (remote_fileio_extract_ptr_w_len): Handle
? ? ? ?DOS path-separators.
? ? ? ?(remote_fileio_func_rename): Use IS_DIR_SEPARATOR and filename_ncmp
? ? ? ?for path comparision.
? ? ? ?* rs6000-nat.c (add_vmap): Use filename_cmp for file-name comparision.
? ? ? ?* solib-som.c (match_main): Likewise.
? ? ? ?* solib.c (solib_read_symbols): Likewise.
? ? ? ?(reload_shared_libraries_1): Likewise.
? ? ? ?* source.c (add_path): Use filename_ncmp for path comparision.
? ? ? ?* symfile.c (separate_debug_file_exists): Use filename_(n)cmp for
? ? ? ?filename comparision.
? ? ? ?(separate_debug_file_exists): Likewise.
? ? ? ?(find_separate_debug_file_by_debuglink): Likewise.
? ? ? ?(reread_symbols): Likewise.
? ? ? ?* symmisc.c (maintenance_print_symbols): Likewise.
? ? ? ?* symtab.c (filename_seen): Likewise.
? ? ? ?(file_matches): Likewise.
? ? ? ?(print_symbol_info): Likewise.
? ? ? ?(not_interesting_fname): Likewise.
? ? ? ?(maybe_add_partial_symtab_filename): Likewise.
? ? ? ?(make_source_files_completion_list): Likewise.
? ? ? ?* xcoffread.c (process_linenos): Likewise.
? ? ? ?(scan_xcoff_symtab): Likewise.
? ? ? ?* xml-support.c (fetch_xml_builtin): Likewise.
? ? ? ?* xml-syscall.c (init_sysinfo): Likewise.
? ? ? ?* coffread.c (coff_getfilename): Handle DOS path-separators.
? ? ? ?* dwarf2read.c (find_file_and_directory): Handle DOS absolute
? ? ? ?paths.
? ? ? ?* fbsd-nat.c (fbsd_make_corefile_notes): Handle DOS path-separators.
? ? ? ?* linux-fork.c (info_checkpoints_command): Likewise.
? ? ? ?* linux-nat.c (linux_nat_make_corefile_notes): Likewise.
? ? ? ?* linux-thread-db.c (try_thread_db_load): Likewise.
? ? ? ?* nto-tdep.c (nto_find_and_open_solib): Likewise.
? ? ? ?* windows-nat.c (_initialize_check_for_gdb_ini): Use
? ? ? ?IS_DIR_SEPARATOR for path-separator check.

Patch was tested for x86_64-w64-mingw32, i686-pc-cygwin, and
x86_64-pc-linux-gnu. Ok for apply?

Regards,
Kai



-- 
|? (\_/) This is Bunny. Copy and paste
| (='.'=) Bunny into your signature to help
| (")_(") him gain world domination

Attachment: gdb_filename.txt
Description: Text document


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]