[RFA/ARM] Framificate the ARM port [3/3]

Andrew Cagney ac131313@redhat.com
Tue Jul 1 18:27:00 GMT 2003


> Index: gdb/varobj.c
> ===================================================================
> --- gdb.orig/varobj.c	2003-06-30 18:28:07.000000000 -0400
> +++ gdb/varobj.c	2003-06-30 18:28:57.000000000 -0400
> @@ -412,7 +412,7 @@ find_frame_addr_in_frame_chain (CORE_ADD
>        frame = get_prev_frame (frame);
>        if (frame == NULL)
>  	return NULL;
> -      if (get_frame_base (frame) == frame_addr)
> +      if (get_frame_base_address (frame) == frame_addr)
>  	return frame;
>      }

Just in case you're wondering.

This would break any architecture that didn't have an FP called "fp". 
This is because, "$fp" defaults to get_frame_base() ... :-(

Andrew




More information about the Gdb-patches mailing list