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 rfc] Per-frame frame-base
Date: Tue, 01 Apr 2003 19:25:00 -0000	[thread overview]
Message-ID: <3E89E7B4.3060906@redhat.com> (raw)
In-Reply-To: <3E820F82.6050803@redhat.com>

[-- Attachment #1: Type: text/plain, Size: 1593 bytes --]

I've checked this in, and then quickly followed it by the attached.  I 
forgot to update that comment :-(

Andrew


2003-04-01  Andrew Cagney  <cagney@redhat.com>

         Add frame debug info addresses:
         * frame-base.c: New file.
         * frame-base.h: New file.
         * frame.h (struct frame_base): Add opaque declaration.
         (get_frame_base): Update comment.
         (get_frame_base_address): Declare.
         (get_frame_locals_address): Declare.
         (get_frame_args_address): Declare.
         (struct frame_info): Add "base" and "base_cache".  Update
         comments on the unwinder.
         * frame.c: Include "frame-base.h".
         (get_frame_locals_address): New function.
         (get_frame_base_address): New function.
         (get_frame_args_address): New function.
         * findvar.c (read_var_value): Use get_frame_locals_address and
         get_frame_args_address.
         * stack.c (frame_info): Use get_frame_locals_address and
         get_frame_args_address.
         (FRAME_ARGS_ADDRESS_CORRECT): Delete conditionally defined macro,
         moved to "frame-base.c".
         * printcmd.c (print_frame_nameless_args): Ditto.
         * symtab.h (address_class): Update comments.
         * dwarf2loc.c (dwarf_expr_frame_base): Add note about
         get_frame_base_address.
         * dwarf2expr.c (execute_stack_op): Ditto.
         * Makefile.in (frame_base_h): Define.
         (frame.o): Update dependencies.
         (frame-base.o): Add dependencies.
         (SFILES): Add frame-base.c.
         (COMMON_OBS): Add frame-base.o.


[-- Attachment #2: diffs --]
[-- Type: text/plain, Size: 1730 bytes --]

2003-04-01  Andrew Cagney  <cagney@redhat.com>

	* frame.h (get_frame_locals_address, get_frame_args_address):
	Refer to the base address, instead of the address of the first
	local or parameter.
	
Index: frame.h
===================================================================
RCS file: /cvs/src/src/gdb/frame.h,v
retrieving revision 1.79
diff -u -r1.79 frame.h
--- frame.h	1 Apr 2003 19:11:01 -0000	1.79
+++ frame.h	1 Apr 2003 19:15:22 -0000
@@ -202,17 +202,17 @@
    meaningful to the frame's high-level debug info.  */
 extern CORE_ADDR get_frame_base_address (struct frame_info *);
 
-/* Assuming that a frame is `normal', return the address of the first
-   local variable, or 0 if the information isn't available.  NOTE:
+/* Assuming that a frame is `normal', return the base-address of the
+   local variables, or 0 if the information isn't available.  NOTE:
    This address is really only meaningful to the frame's high-level
    debug info.  Typically, the argument and locals share a single
    base-address.  */
 extern CORE_ADDR get_frame_locals_address (struct frame_info *);
 
-/* Assuming that a frame is `normal', return the address of the first
-   parameter, or 0 if that information isn't available.  NOTE: This
-   address is really only meaningful to the frame's high-level debug
-   info.  Typically, the argument and locals share a single
+/* Assuming that a frame is `normal', return the base-address of the
+   parameter list, or 0 if that information isn't available.  NOTE:
+   This address is really only meaningful to the frame's high-level
+   debug info.  Typically, the argument and locals share a single
    base-address.  */
 extern CORE_ADDR get_frame_args_address (struct frame_info *);
 

      parent reply	other threads:[~2003-04-01 19:25 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-03-26 20:37 Andrew Cagney
2003-03-26 21:00 ` Daniel Jacobowitz
2003-03-26 21:51   ` Andrew Cagney
2003-03-26 21:58     ` Daniel Jacobowitz
2003-03-26 22:18       ` Andrew Cagney
2003-03-26 22:22         ` Daniel Jacobowitz
2003-04-01 19:25 ` 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=3E89E7B4.3060906@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