Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Mark Kettenis <mark.kettenis@xs4all.nl>
To: ktietz70@googlemail.com
Cc: eliz@gnu.org, brobecker@adacore.com, gdb-patches@sourceware.org
Subject: Re: [patch gdb]: Fix some DOS-path related issues in gdb
Date: Wed, 23 Mar 2011 12:44:00 -0000	[thread overview]
Message-ID: <201103231109.p2NB970m008027@glazunov.sibelius.xs4all.nl> (raw)
In-Reply-To: <AANLkTimbAO3DwL76PGV9AOyOSCPAapcf5=n+a_iBXHEv@mail.gmail.com>	(message from Kai Tietz on Wed, 23 Mar 2011 11:39:33 +0100)

> Date: Wed, 23 Mar 2011 11:39:33 +0100
> From: Kai Tietz <ktietz70@googlemail.com>
> 
> 2011/3/3 Eli Zaretskii <eliz@gnu.org>:
> >> Date: Thu, 3 Mar 2011 18:58:32 +0400
> >> From: Joel Brobecker <brobecker@adacore.com>
> >> Cc: Kai Tietz <ktietz70@googlemail.com>, gdb-patches@sourceware.org
> >>
> >> > I didn't know that the Windows 64bit target can use ELF debug info.
> >> > Can it? =A0With what toolchains?
> >> >
> >> > As for mdebugread.c, I always thought it was MIPS specific. =A0What
> >> > other platforms use it?
> >>
> >> These would still be pertinent in the case of cross debugging, no?
> >> If the files were cross-compiled on Windows, the debug info would
> >> contain file paths that follow the Windows convention...
> >
> > Is that use-case even practical? =A0Who would develop on Windows if they
> > have Linux or Irix?
> >
> > Anyway, if others don't mind to have DOS-ism in mdebugread.c and
> > elfread.c, I don't object.
> >
> 
> Hello,
> 
> I have updated patch against current trunk. Additionally I replaced
> the strrchr-patterns by lbasename. As now some time has pasted, I
> would like to kindly ask, if this patch is ok, or if there are still
> objections?

You continue to make it hard for me to review your diffs by sending
them as base64-encoded MIME attachments.  But the solib-som.c bit
should be dropped.  It's a HP-UX native-only bit.

> 2011-03-23  Kai Tietz
> 
> 	* breakpoint.c (clear_command): Use filename_cmp
> 	instead of strcmp for comparision.
> 	* buildsym.c (watch_main_source_file_lossage): Likewise.
> 	(patch_subfile_names): Use IS_DIR_SEPARATOR instead of
> 	checking just for slash.
> 	* dbxread.c (read_dbx_symtab): Use lbasename instead of
> 	strrchr and filename_cmp instead of strcmp for filenames.
> 	(add_old_header_file): Use filename_cmp
> 	instead of strcmp for comparision.
> 	* exec.c (exec_set_section_address): Likewise.
> 	* macrotab.c (macro_lookup_inclusion): Likewise.
> 	(macro_lookup_inclusion): Likewise.
> 	* elfread.c (_initialize_elfread): Likewise.
> 	(elfstab_offset_sections): Likewise.
> 	(elfstab_offset_sections): Use lbasename instead of
> 	strrchr.
> 	* mdebugread.c (parse_partial_symbols): Likewise.
> 	(arse_partial_symbols): Use filename_(n)cmp instead of
> 	str(n)cmp for comparision.
> 	* minsyms.c (lookup_minimal_symbol): Likewise.
> 	* psymtab.c (read_psymtabs_with_filename): Likewise.
> 	* solib-som.c (match_main): Likewise.
> 	* solib.c (solib_read_symbols): Likewise.
> 	(reload_shared_libraries_1): Likewise.
> 	* symmisc.c (maintenance_print_symbols): Likewise.
> 	* symfile.c (separate_debug_file_exists): Likewise.
> 	(reread_symbols): Likewise.
> 	(find_separate_debug_file_by_debuglink): Likewise.
> 	* remote-fileio.c (remote_fileio_func_rename): Likewise.
> 	* source.c (add_path): Likewise.
> 	* symtab.c (filename_seen): Likewise.
> 	(file_matches): Likewise.
> 	(print_symbol_info): Likewise.
> 	(maybe_add_partial_symtab_filename): Likewise.
> 	(make_source_files_completion_list): Likewise.
> 	* xml-support.c (fetch_xml_builtin): Likewise.
> 	* xml-syscall.c (init_sysinfo): Likewise.
> 	* dwarf2read.c (find_file_and_directory): Use IS_ABSOLUTE_PATH.
> 	* windows-nat.c (_initialize_check_for_gdb_ini): Use
> 	IS_DIR_SEPARATOR for checking for trailing path separator.
> 
> Regards,
> Kai
> 
> --90e6ba5bb9ddf94d87049f23f904
> Content-Type: text/plain; charset=US-ASCII; name="gdb_filename.txt"
> Content-Disposition: attachment; filename="gdb_filename.txt"
> Content-Transfer-Encoding: base64
> X-Attachment-Id: f_glm4fqsk0
> 
> SW5kZXg6IGdkYi9icmVha3BvaW50LmMKPT09PT09PT09PT09PT09PT09PT09
> PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
> PQotLS0gZ2RiLm9yaWcvYnJlYWtwb2ludC5jCTIwMTEtMDMtMjMgMTA6MzE6
> NTkuNjM1MTU5MzAwICswMTAwCisrKyBnZGIvYnJlYWtwb2ludC5jCTIwMTEt
> MDMtMjMgMTA6NTY6MTcuMDE0NzIzMDAwICswMTAwCkBAIC0zOSw2ICszOSw3


  reply	other threads:[~2011-03-23 11:09 UTC|newest]

Thread overview: 37+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <AANLkTi=QoOiBg3XmMv+hRNe8DkT2YiVGZ=7NhaQwzCey@mail.gmail.com>
2011-03-03 12:10 ` Kai Tietz
2011-03-03 13:24   ` Eli Zaretskii
2011-03-03 13:48     ` Kai Tietz
2011-03-03 14:00       ` Eli Zaretskii
2011-03-03 14:58         ` Joel Brobecker
2011-03-03 15:25           ` Kai Tietz
2011-03-03 15:32           ` Pedro Alves
2011-03-03 15:41             ` Kai Tietz
2011-03-03 16:09               ` Pedro Alves
2011-03-03 16:19                 ` Kai Tietz
2011-03-03 16:42                   ` Pedro Alves
2011-03-03 17:32                     ` Kai Tietz
2011-03-04  7:23                       ` Vladimir Simonov
2011-03-04  8:23                         ` Joel Brobecker
2011-03-07 19:28             ` Jan Kratochvil
2011-03-07 19:28               ` Pedro Alves
2011-03-07 19:34                 ` Jan Kratochvil
2011-03-03 18:09           ` Eli Zaretskii
2011-03-04  5:12             ` Joel Brobecker
2011-03-04 13:05               ` André Pönitz
2011-03-04  9:48             ` Kai Tietz
2011-03-04 10:37               ` Mark Kettenis
2011-03-05  9:13                 ` Kai Tietz
2011-03-05 11:38                   ` Vladimir Simonov
2011-03-05 12:45                     ` Kai Tietz
2011-03-23 11:16             ` Kai Tietz
2011-03-23 12:44               ` Mark Kettenis [this message]
2011-03-23 14:07                 ` Kai Tietz
2011-03-23 14:16               ` Pedro Alves
2011-03-23 14:18                 ` Kai Tietz
2011-03-23 14:29                   ` Pierre Muller
     [not found]                   ` <-544184502231544940@unknownmsgid>
2011-03-23 14:44                     ` Kai Tietz
2011-03-23 15:29                   ` Pedro Alves
2011-03-23 15:29                     ` Kai Tietz
2011-03-23 18:24                     ` Eli Zaretskii
2011-03-23 21:11                       ` Kai Tietz
2011-03-03 17:02         ` Mark Kettenis

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=201103231109.p2NB970m008027@glazunov.sibelius.xs4all.nl \
    --to=mark.kettenis@xs4all.nl \
    --cc=brobecker@adacore.com \
    --cc=eliz@gnu.org \
    --cc=gdb-patches@sourceware.org \
    --cc=ktietz70@googlemail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox