]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
gdb: remove stale comment in value_assign
authorSimon Marchi <simon.marchi@efficios.com>
Mon, 18 Dec 2023 20:02:46 +0000 (15:02 -0500)
committerSimon Marchi <simon.marchi@efficios.com>
Tue, 19 Dec 2023 16:11:34 +0000 (11:11 -0500)
This comment is no longer relevant, put_frame_register_bytes now accepts
the "next frame".

Change-Id: I077933a03f8bdb886f8ba10a98d1202a38bce0a9
Approved-By: Tom Tromey <tom@tromey.com>
gdb/valops.c

index 21b010684af1c08bb37ee2034ec500c7bff98c41..049314cf7db5d6679bd6e3ddbfa595971321f49a 100644 (file)
@@ -1193,13 +1193,6 @@ value_assign (struct value *toval, struct value *fromval)
 
     case lval_register:
       {
-       /* Figure out which frame this register value is in.  The value
-          holds the frame_id for the next frame, that is the frame this
-          register value was unwound from.
-
-          Below we will call put_frame_register_bytes which requires that
-          we pass it the actual frame in which the register value is
-          valid, i.e. not the next frame.  */
        frame_info_ptr next_frame = frame_find_by_id (VALUE_NEXT_FRAME_ID (toval));
 
        int value_reg = VALUE_REGNUM (toval);