Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Joel Brobecker <brobecker@adacore.com>
To: Nick Roberts <nickrob@snap.net.nz>
Cc: gdb-patches@sourceware.org
Subject: Re: Regression in exec.c (print_section_info) ?
Date: Tue, 29 Apr 2008 07:01:00 -0000	[thread overview]
Message-ID: <20080429030510.GA28505@adacore.com> (raw)
In-Reply-To: <18453.10856.678467.961230@kahikatea.snap.net.nz>

[-- Attachment #1: Type: text/plain, Size: 885 bytes --]

> This works for me, e.g. with "info target" but perhaps there is a bigger
> picture and this line was removed for another reason.

I reviewed the history of the change, and I think it was an oversight.
The change that removed the newline was meant to get rid of some uses
of current_gdbarch, no more.

Could you test the attached? I think it's generally better for
internationalization to have one string rather than put together several
string blocks. I doubt it would make much difference in this case, but
might as well.

I would also like to see a new test if we don't already have one to
prevent this type of regression in the future. Please confirm that
you did run the patch against the testcase on at least one architecture.

One last thing: You also forgot to provide a ChangeLog entry. But *thank
you* for sending a unified diff - I just can't read context diffs!

-- 
Joel

[-- Attachment #2: exec.c.diff --]
[-- Type: text/plain, Size: 809 bytes --]

Index: exec.c
===================================================================
RCS file: /cvs/src/src/gdb/exec.c,v
retrieving revision 1.73
diff -u -p -r1.73 exec.c
--- exec.c	19 Apr 2008 02:07:19 -0000	1.73
+++ exec.c	29 Apr 2008 03:00:23 -0000
@@ -543,10 +543,8 @@ print_section_info (struct target_ops *t
   wrap_here ("        ");
   printf_filtered (_("file type %s.\n"), bfd_get_target (abfd));
   if (abfd == exec_bfd)
-    {
-      printf_filtered (_("\tEntry point: "));
-      fputs_filtered (paddress (bfd_get_start_address (abfd)), gdb_stdout);
-    }
+    printf_filtered (_("\tEntry point: %s\n"),
+                     paddress (bfd_get_start_address (abfd)))
   for (p = t->to_sections; p < t->to_sections_end; p++)
     {
       printf_filtered ("\t%s", hex_string_custom (p->addr, wid));

  reply	other threads:[~2008-04-29  3:05 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-04-28  8:38 Nick Roberts
2008-04-29  7:01 ` Joel Brobecker [this message]
2008-04-29 14:29   ` Nick Roberts
2008-05-01 18:07     ` Joel Brobecker
2008-05-02  1:05       ` Nick Roberts
2008-05-02  5:19         ` Joel Brobecker
2008-05-02 22:29         ` Michael Snyder
2008-05-04  8:34           ` Nick Roberts

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=20080429030510.GA28505@adacore.com \
    --to=brobecker@adacore.com \
    --cc=gdb-patches@sourceware.org \
    --cc=nickrob@snap.net.nz \
    /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