Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: ligang@sunnorth.com.cn
To: gdb@sourceware.org
Subject: register type as signed or unsigned?
Date: Tue, 10 Oct 2006 08:37:00 -0000	[thread overview]
Message-ID: <OF038E4AEA.A0A9C5E8-ON48257203.002DDCAC-48257203.002F6D81@sunnorth.com.cn> (raw)

hello all,

I am porting GDB to a new target.
I am not aware of the meaning of register type.
You can do as follows:
set_gdbarch_register_type (gdbarch, builtin_type_int32);
or
set_gdbarch_register_type (gdbarch, builtin_type_uint32);

What is the real difference between the two situation?
Why should GDB specify the register type as signed or unsigned?
Dose it mean the former must use regcache_cooked_read_signed() and the 
latter must use
regcache_cooked_read_unsigned()?

Best regards
                     Ligang


             reply	other threads:[~2006-10-10  8:37 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-10-10  8:37 ligang [this message]
2006-10-10 12:50 ` Daniel Jacobowitz
2006-10-11  0:35   ` ligang
2006-10-11  0:48     ` Jan Kratochvil
2006-10-11  1:11       ` Paul Koning
2006-10-11  2:06       ` Daniel Jacobowitz
2006-10-11  7:00       ` Mark Kettenis

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=OF038E4AEA.A0A9C5E8-ON48257203.002DDCAC-48257203.002F6D81@sunnorth.com.cn \
    --to=ligang@sunnorth.com.cn \
    --cc=gdb@sourceware.org \
    /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