This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [rfa:sparc] Remove write_fp() from sparc-tdep.c


On Apr 5,  5:04pm, Andrew Cagney wrote:

>    if (strcmp (target_shortname, "sim") != 0)
>      {
> -      write_fp (old_sp);
> -
> +      if (gdbarch_tdep (current_gdbarch)->intreg_size == 8)

How about

	 if (GDB_TARGET_IS_SPARC64)

instead?  (That matches the existing convention in the rest of the
file better.)

Aside from that, I think your change is fine.  Something to consider
though is whether the entire

    if (strcmp (target_shortname, "sim") != 0)
      {
        ...
      }

could simply go away.  I.e, let the "sim" case just use the non-sim
code.

Kevin


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]