Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Kevin Buettner <kevinb@redhat.com>
To: gdb-patches@sources.redhat.com
Subject: Re: [patch] Fixed occasional failure to load a custom shared  library
Date: Tue, 27 Jun 2006 01:01:00 -0000	[thread overview]
Message-ID: <20060626180051.0adcce23@ironwood.lan> (raw)
In-Reply-To: <20060622114016.GA21094@host0.dyn.jankratochvil.net>

On Thu, 22 Jun 2006 13:40:16 +0200
Jan Kratochvil <lace@jankratochvil.net> wrote:

Index: solib.c
===================================================================
RCS file: /cvs/src/src/gdb/solib.c,v
retrieving revision 1.84
diff -u -p -r1.84 solib.c
--- solib.c	25 Feb 2006 04:36:39 -0000	1.84
+++ solib.c	22 Jun 2006 11:24:40 -0000
@@ -146,13 +146,17 @@ solib_open (char *in_pathname, char **fo
   int found_file = -1;
   char *temp_pathname = NULL;
   char *p = in_pathname;
+  int solib_absolute_prefix_is_empty;
+
+  solib_absolute_prefix_is_empty = (!solib_absolute_prefix
+                                    || !*solib_absolute_prefix);

I'd prefer to see this written as follows:

+  solib_absolute_prefix_is_empty = (solib_absolute_prefix == NULL
+                                    || *solib_absolute_prefix == 0);

The rest of your patch looks reasonable.  (You forgot to include a
ChangeLog entry though...)

Are you able to commit this yourself or do you need someone to commit
it for you?

Thanks for the patch!

Kevin


  reply	other threads:[~2006-06-27  1:01 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-06-22 11:40 Jan Kratochvil
2006-06-27  1:01 ` Kevin Buettner [this message]
2006-06-27  2:08   ` Jan Kratochvil
2006-07-21 18:38   ` Jan Kratochvil
2006-10-09 20:17     ` Daniel Jacobowitz
2006-10-09 22:51       ` Jan Kratochvil
2006-10-10  0:00         ` Daniel Jacobowitz

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=20060626180051.0adcce23@ironwood.lan \
    --to=kevinb@redhat.com \
    --cc=gdb-patches@sources.redhat.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