Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: paawan oza <paawan1982@yahoo.com>
To: Tom Tromey <tromey@redhat.com>
Cc: "Petr Hluzín" <petr.hluzin@gmail.com>,
	gdb@sourceware.org, gdb-patches@sourceware.org
Subject: Re: [PATCH] arm reversible : <phase_2_complete>
Date: Sat, 30 Apr 2011 16:16:00 -0000	[thread overview]
Message-ID: <924576.78639.qm@web112515.mail.gq1.yahoo.com> (raw)
In-Reply-To: <m3aafaf9rs.fsf@fleche.redhat.com>

Hi Tom,

So you are suggesting;

GET_REG_VAL (reg_cache, ARM_PC_REGNUM, &u_buf.buf[0]);
if (target is big endian)
  {
        convert_big_to_little (u_buf.s_word)
  }


something like above ?
right ?

and while replaying do I need to convert it to big endian ?
somethig like that ?

Regards,
Oza.


----- Original Message ----
From: Tom Tromey <tromey@redhat.com>
To: paawan oza <paawan1982@yahoo.com>
Cc: Petr Hluzín <petr.hluzin@gmail.com>; gdb@sourceware.org; 
gdb-patches@sourceware.org
Sent: Fri, April 29, 2011 1:06:39 AM
Subject: Re: [PATCH] arm reversible : <phase_2_complete>

>>>>> "Oza" == paawan oza <paawan1982@yahoo.com> writes:

Oza> but whole operation happens on target memory, so 
Oza> after 
Oza> GET_REG_VAL (reg_cache, ARM_PC_REGNUM, &u_buf.buf[0]);

Oza> we get scalar u_buf.s_word again in big-endian.

Oza> +      start_address = u_buf.s_word -  \
Oza> +                   (4 * (bit (thumb_insn_r->arm_insn, 8) + 
register_count)) ;

Oza> and above math is again in target memory in big endian machine and
Oza> record is saved to target memory.

Oza> I think it never gets fetched to host for any reason, Am I thinking
Oza> correct?

No, sorry.  Any code in gdb is by running on the host system.

So, GET_REG_VAL fetches the raw register -- from the target to the host.
`u_buf.s_word' is a scalar value in gdb, i.e., on the host.

Tom


  reply	other threads:[~2011-04-30 16:16 UTC|newest]

Thread overview: 32+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-03-03  4:08 [PATCH] arm reversible : progress <patch_1_phase_2> paawan oza
2011-03-03 18:32 ` Tom Tromey
2011-03-03 18:37   ` Michael Snyder
2011-03-03 18:59     ` Pedro Alves
2011-03-04  3:32   ` paawan oza
2011-03-04  3:56     ` paawan oza
2011-03-04 19:31     ` Tom Tromey
2011-03-04 20:09       ` Michael Snyder
2011-03-04 20:11         ` Tom Tromey
2011-04-10  9:41   ` [PATCH] arm reversible : progress <phase_2_complete> paawan oza
2011-04-11  3:05     ` Yao Qi
2011-04-11  4:52       ` paawan oza
2011-04-12 10:58         ` Yao Qi
2011-04-16 21:03       ` paawan oza
2011-04-20 19:16         ` [PATCH] arm reversible : <phase_2_complete> paawan oza
2011-04-21 20:55           ` Petr Hluzín
2011-04-22  5:49             ` paawan oza
2011-04-22  5:55               ` oza Pawandeep
2011-04-25 14:03               ` paawan oza
2011-05-01  1:20                 ` Petr Hluzín
2011-05-02 14:47                   ` Tom Tromey
2011-05-04 21:33                     ` Petr Hluzín
2011-05-05 15:29                       ` Tom Tromey
2011-05-07 13:50                   ` paawan oza
2011-05-07 13:56                   ` paawan oza
     [not found]               ` <172713.29831.qm__351.089161313389$1303740245$gmane$org@web112503.mail.gq1.yahoo.com>
2011-04-25 19:57                 ` Tom Tromey
2011-04-28 18:26                   ` paawan oza
2011-04-28 19:00                     ` Tom Tromey
2011-04-28 19:22                       ` paawan oza
     [not found]                       ` <727567.12089.qm__13056.408687453$1304018591$gmane$org@web112511.mail.gq1.yahoo.com>
2011-04-28 19:36                         ` Tom Tromey
2011-04-30 16:16                           ` paawan oza [this message]
2011-05-02 13:28                             ` 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=924576.78639.qm@web112515.mail.gq1.yahoo.com \
    --to=paawan1982@yahoo.com \
    --cc=gdb-patches@sourceware.org \
    --cc=gdb@sourceware.org \
    --cc=petr.hluzin@gmail.com \
    --cc=tromey@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