From: Daniel Jacobowitz <drow@false.org>
To: Michael Snyder <msnyder@sonic.net>
Cc: gdb-patches@sourceware.org, Mark Kettenis <mark.kettenis@xs4all.nl>
Subject: Re: [PATCH] symfile.c, find_separate_debug_file
Date: Fri, 03 Aug 2007 11:40:00 -0000 [thread overview]
Message-ID: <20070803114033.GA16806@caradoc.them.org> (raw)
In-Reply-To: <000b01c7d59d$608d4040$677ba8c0@sonic.net> <006901c7d587$db360400$677ba8c0@sonic.net>
On Thu, Aug 02, 2007 at 09:36:27PM -0700, Michael Snyder wrote:
> The existing code doesn't use it. If you want me to undertake to
> revise the code to use DIR_SEPARATOR, I'll be glad to do it.
for (i = strlen(dir) - 1; i >= 0; i--)
{
if (IS_DIR_SEPARATOR (dir[i]))
break;
}
gdb_assert (i >= 0 && IS_DIR_SEPARATOR (dir[i]));
...
if (canon_name
&& strncmp (canon_name, gdb_sysroot, strlen (gdb_sysroot)) == 0
&& IS_DIR_SEPARATOR (canon_name[strlen (gdb_sysroot)]))
Adding "/" to strings is fine; it's when looking at passed in strings
that you have to check directory separators more carefully.
On Fri, Aug 03, 2007 at 12:10:30AM -0700, Michael Snyder wrote:
> Well I don't know -- they seemed to hurt when I tried it,
> and getting rid of them certainly seemed to help.
>
> If I type /usr/lib//tmp/foo, isn't that equivalent, at least
> in some contexts, to typing /tmp/foo?
To my knowledge this is true only in Emacs, not in any normal
operating system's file access routines. GDB does not run on top of
Emacs...
Maybe you could describe how it seemed to hurt.
--
Daniel Jacobowitz
CodeSourcery
next prev parent reply other threads:[~2007-08-03 11:40 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-08-03 1:14 msnyder
2007-08-03 1:30 ` Daniel Jacobowitz
2007-08-03 4:41 ` Michael Snyder
2007-08-03 11:40 ` Daniel Jacobowitz [this message]
2007-08-03 14:47 ` Michael Snyder
2007-08-03 15:00 ` Daniel Jacobowitz
2007-08-03 15:09 ` Michael Snyder
2007-08-03 15:19 ` Daniel Jacobowitz
2007-08-03 15:49 ` Andreas Schwab
2007-08-03 12:31 ` Eli Zaretskii
2007-08-03 14:43 ` Michael Snyder
2007-08-03 14:51 ` Daniel Jacobowitz
2007-08-03 17:12 ` Eli Zaretskii
2007-08-03 17:26 ` Michael Snyder
2007-08-03 5:54 ` Mark Kettenis
2007-08-03 7:15 ` Michael Snyder
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=20070803114033.GA16806@caradoc.them.org \
--to=drow@false.org \
--cc=gdb-patches@sourceware.org \
--cc=mark.kettenis@xs4all.nl \
--cc=msnyder@sonic.net \
/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