Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Tom Tromey <tromey@redhat.com>
To: Yao Qi <yao@codesourcery.com>
Cc: <gdb-patches@sourceware.org>
Subject: Re: [RFC] auto-generate most target debug methods
Date: Fri, 20 Jun 2014 14:04:00 -0000	[thread overview]
Message-ID: <87oaxnad9k.fsf@fleche.redhat.com> (raw)
In-Reply-To: <53A3E9A8.4080305@codesourcery.com> (Yao Qi's message of "Fri, 20	Jun 2014 15:58:32 +0800")

>>>>> "Yao" == Yao Qi <yao@codesourcery.com> writes:

Yao> This function should be renamed to target_debug_print_signal, for
Yao> example, and typedef unsigned char * signal, if I understand your
Yao> script correctly.

Yeah, that would be cleaner.  I'll fix it up.

>> +   A few methods are still handled explicitly in target.c:
>> +   target_fetch_registers target_store_registers target_xfer_partial

Yao> This isn't valid to me.  I do see debug_fetch_registers,
Yao> debug_store_registers and debug_xfer_partial are generated.

The comment is a bit off.

target_store_registers still has some targetdebug code to call
debug_print_register, which can't really be handled using the type-based
method.

to_xfer_partial has a debug method generated but due to the way
target_xfer_partial is written, the debug method is never actually
called.  Note that a similar issue exists in the current code with
debug_to_open -- I think it can't ever be called because the target's
to_open is passed directly to add_cmd.

Tom


  reply	other threads:[~2014-06-20 14:04 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-06-19 20:04 Tom Tromey
2014-06-20  8:00 ` Yao Qi
2014-06-20 14:04   ` Tom Tromey [this message]
2014-07-15 11:17 ` Pedro Alves
2014-07-15 15:20   ` Tom Tromey
2014-07-16 15:46   ` Tom Tromey
2014-07-17 14:50     ` Pedro Alves
2014-07-17 16:12       ` Tom Tromey
2014-07-17 16:35         ` Pedro Alves
2014-07-17 16:41           ` Tom Tromey
2014-07-17 16:52             ` Pedro Alves
2014-07-17 16:49       ` Tom Tromey
2014-07-17 16:51         ` Pedro Alves
2014-07-24 13:59         ` Tom Tromey

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=87oaxnad9k.fsf@fleche.redhat.com \
    --to=tromey@redhat.com \
    --cc=gdb-patches@sourceware.org \
    --cc=yao@codesourcery.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