public inbox for gdb@sourceware.org
 help / color / mirror / Atom feed
From: Andrew Cagney <ac131313@redhat.com>
To: "D.Venkatasubramanian, Noida" <dvenkat@noida.hcltech.com>
Cc: gdb@sources.redhat.com
Subject: Re: Variables in gdbarch
Date: Wed, 27 Aug 2003 04:08:00 -0000	[thread overview]
Message-ID: <3F4C2EA2.3000704@redhat.com> (raw)
In-Reply-To: <E04CF3F88ACBD5119EFE00508BBB21210B69EA22@exch-01.noida.hcltech.com>

> Hi All,
> 
> I was trying to port GDB to a new target, and it seems,
> almost entirely all the work would be filling up the
> gdbarch structure for the new target.

Careful, the trick is figuring out the few architecture methods that are 
needed.

> I was trying to understand all the variables and
> function pointers in the structure. I started with the
> variables, unfortunately, the Internals Document does
> not seem to explain all those variables and function
> pointers and their significance.
> 
> I did figure out significance of many of the variables,
> but I am stuck up with some. Probably, some of you could
> go through the list and help me understand them. And we
> could build this list and add that to the documentation
> so that others do not have to duplicate my efforts when
> porting for some new targets.
> 
> These are some of the ones, I haven't figured out still:

If the method is deprecated, don't touch it.  Look through 
http://sources.redhat.com/gdb/current/ari/ for additional methods that 
are also going to be deprecated.  Also, only worry about methods that 
can be set with set_gdbarch_...() functions.

> 6.		  nr_data	 unsigned
> 26.		  npc_regnum	 int
> 31.		deprecated_use_generic_dummy_frames	 int
> 33.		 call_dummy_location	 int
> 34.		deprecated_call_dummy_start_offset	 CORE_ADDR
> 35.		deprecated_call_dummy_breakpoint_offset	 CORE_ADDR
> 36.		deprecated_call_dummy_length	 int
> 37.		deprecated_call_dummy_words	 LONGEST *
> 38.		deprecated_sizeof_call_dummy_words	 int
> 39.		deprecated_call_dummy_stack_adjust	 int
> 41.		Believe_pcc_promotion	 int
> 42.		Believe_pcc_promotion_type	 int
> 51.		Cannot_step_breakpoint	 int
> 52.		have_nonsteppable_watchpoint	 int
> 
> Also, are the significances of those I gathered correct?
> I would move on to the function pointers once this is
> finished and wrapped up.
> 
> Any help would be highly appreciated. :-)

I don't think any of the above are needed.

Andrew


      reply	other threads:[~2003-08-27  4:08 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-08-21 14:08 D.Venkatasubramanian, Noida
2003-08-27  4:08 ` Andrew Cagney [this message]

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=3F4C2EA2.3000704@redhat.com \
    --to=ac131313@redhat.com \
    --cc=dvenkat@noida.hcltech.com \
    --cc=gdb@sources.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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).