Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Mark Kettenis <mark.kettenis@xs4all.nl>
To: lgustavo@codesourcery.com
Cc: gdb@sourceware.org
Subject: Re: Assuming types for PC
Date: Mon, 10 Jun 2013 14:31:00 -0000	[thread overview]
Message-ID: <201306101431.r5AEVAfb007850@glazunov.sibelius.xs4all.nl> (raw)
In-Reply-To: <51B5E06A.8020807@codesourcery.com> (message from Luis Machado on	Mon, 10 Jun 2013 16:19:22 +0200)

> Date: Mon, 10 Jun 2013 16:19:22 +0200
> From: Luis Machado <lgustavo@codesourcery.com>
> 
> Hi,
> 
> I see gdb.base/ptype.exp assuming PC needs to be of type void (*)().
> 
>    # Test ptype of user register
>    gdb_test "ptype \$pc" "void \\(\\*\\)\\(\\)" "ptype \$pc"
> 
> Is there any reason we should assume that? Some targets use "long long" 
> or "int32_t" for PC.

I consider that to be a bug.  Fixing that bug turned out to be
somewhat difficult on some architectures that have a 32-bit/64-bit
identity crisis; see the x32 discussions from last year.

> If PC should not have a fixed type, i think it would be best to remove 
> this check.

Please don't.


  reply	other threads:[~2013-06-10 14:31 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-06-10 14:19 Luis Machado
2013-06-10 14:31 ` Mark Kettenis [this message]
2013-06-10 14:34   ` Luis Machado
2013-06-10 14:45     ` Joel Brobecker
2013-06-10 14:49       ` Luis Machado
2013-06-10 14:56         ` Joel Brobecker
2013-06-10 15:04     ` Mark Kettenis
2013-06-10 15:18       ` Luis Machado
2013-06-10 18:04       ` Maciej W. Rozycki
2013-06-10 18:44         ` Mark Kettenis
2013-06-11  9:21           ` Pedro Alves
2013-06-11 10:09             ` Pedro Alves

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=201306101431.r5AEVAfb007850@glazunov.sibelius.xs4all.nl \
    --to=mark.kettenis@xs4all.nl \
    --cc=gdb@sourceware.org \
    --cc=lgustavo@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