Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Andrew Cagney <ac131313@redhat.com>
To: Andrew Cagney <ac131313@redhat.com>
Cc: gdb-patches@sources.redhat.com
Subject: Re: [patch wip] Delete get_saved_register()
Date: Thu, 13 Mar 2003 00:05:00 -0000	[thread overview]
Message-ID: <3E6FCB46.2090407@redhat.com> (raw)
In-Reply-To: <3E6F82D1.8050805@redhat.com>

> Hello,
> 
> The attached deletes the function get_saved_register().  It's been superseeded by frame_register() et.al.
> 
> Right now, this patch causes a (major) regression.  The sequence:
> 
>     $ gdb program
>     (gdb) print $pc
> 
> gets an internal error.  An examination of a backtrace reveals that the code was using `deprecated_selected_frame' and that was NULL.  Before committing the attached, I'm going to have to relace a few `deprecated_selected_frame's with `get_selected_frame()' (the latter throws an error if there really is no frame).
> 
> So at this stage, this patch is largely a heads up.  Once I've eliminated all the regressions, I'll commit the attached.

FYI, I've fixed the failures.  I'll commit in a few days.

Andrew


> 
> 2003-03-12  Andrew Cagney  <cagney@redhat.com>
> 
> 	* frame.c (get_saved_register): Delete function.
> 	* xstormy16-tdep.c: Update comment.
> 	* regcache.h: Update comments.
> 	* sparc-tdep.c (sparc_init_extra_frame_info): Instead of
> 	get_saved_register and extract_address, use
> 	frame_read_unsigned_register.
> 	(sparc_frame_saved_pc): Ditto.
> 	(sparc_get_saved_register): Instead of get_saved_register, use
> 	frame_register.
> 	(sparc_pop_frame): Ditto.
> 	* frame.h (get_saved_register): Delete declaration.
> 	* findvar.c: Update comments.
> 	(value_of_register): Call frame_register instead of
> 	get_saved_register.
> 	(value_from_register): Ditto.
> 	* config/sparc/tm-sparc.h: Update comment.
> 	* breakpoint.c: Update comment.
> 
> Index: doc/ChangeLog
> 2003-03-12  Andrew Cagney  <cagney@redhat.com>
> 
> 	* gdbint.texinfo (Target Architecture Definition): Delete
> 	references to get_saved_register.
> 



  reply	other threads:[~2003-03-13  0:05 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-03-12 18:56 Andrew Cagney
2003-03-13  0:05 ` Andrew Cagney [this message]
2003-03-14 17:08   ` Andrew Cagney

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=3E6FCB46.2090407@redhat.com \
    --to=ac131313@redhat.com \
    --cc=gdb-patches@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