From: Pedro Alves <pedro@codesourcery.com>
To: Hui Zhu <teawater@gmail.com>
Cc: "gdb-patches@sourceware.org" <gdb-patches@sourceware.org>,
Marc Khouzam <marc.khouzam@ericsson.com>,
Michael Snyder <msnyder@vmware.com>,
Thiago Jung Bauermann <bauerman@br.ibm.com>,
Eli Zaretskii <eliz@gnu.org>,
paawan1982@yahoo.com
Subject: Re: [RFA] Submit process record and replay fourth time, 4/8
Date: Mon, 27 Apr 2009 22:20:00 -0000 [thread overview]
Message-ID: <200904272320.13698.pedro@codesourcery.com> (raw)
In-Reply-To: <daef60380904220206j407f21dcl670b4ad5e43ebea1@mail.gmail.com>
Hi Hui,
Let's just fix a few small issues, and then put this in.
(There are more issues here to solve here --- e.g., IIRC, Marc reported
success in using precord against gdbserver (that was only made possible
due to the fact that we managed to remove everything there used to
be in linux-nat.c in previous versions and move those things to record.c),
but, it will only work when debugging from a x86-linux host,
cross debugging will not work correctly. But, this is a minor thing
to handle at this point.)
On Wednesday 22 April 2009 10:06:42, Hui Zhu wrote:
> + if (record_debug)
> + fprintf_unfiltered (gdb_stdlog,
> + "Process record: error reading "
> + "memory at addr = 0x%s len = %d.\n",
> + paddr_nz (tmpu32), sizeof (a));
> + return -1;
Printing `sizeof(foo)' with a %d formatter will fail to compile due
to a warning on 64-bit hosts, yet you've added linux-record.o to
the x86_64-*-linux* configuration. Please fix that before checking in.
You have more instances of this in the patch.
On Wednesday 22 April 2009 10:06:42, Hui Zhu wrote:
> + Copyright (C) 2008 Free Software Foundation, Inc.
2009.
+typedef struct linux_record_tdep_s
+{
...
+ } linux_record_tdep_t;
As in other parts of the series, this 'typedef struct foo_s foo_t'
doesn't fit GDB's style. Just make this 'struct linux_record_tdep'
instead.
This patch is approved with the above fixes, and a changelog entry.
--
Pedro Alves
next prev parent reply other threads:[~2009-04-27 22:20 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-03-21 16:02 Hui Zhu
2009-03-25 7:22 ` Hui Zhu
2009-04-15 17:03 ` Hui Zhu
2009-04-22 9:07 ` Hui Zhu
2009-04-27 22:20 ` Pedro Alves [this message]
2009-04-28 9:59 ` Hui Zhu
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=200904272320.13698.pedro@codesourcery.com \
--to=pedro@codesourcery.com \
--cc=bauerman@br.ibm.com \
--cc=eliz@gnu.org \
--cc=gdb-patches@sourceware.org \
--cc=marc.khouzam@ericsson.com \
--cc=msnyder@vmware.com \
--cc=paawan1982@yahoo.com \
--cc=teawater@gmail.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