From: Jose E. Marchesi Date: Fri, 14 Feb 2014 10:29:11 +0000 (-0800) Subject: Fix offsets to access fpregset_t in sparc64-linux targets. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c2853f3d99797a321c37948297441ca6021f719a;p=binutils-gdb.git Fix offsets to access fpregset_t in sparc64-linux targets. The %fsr register is not being properly accessed from gdb in sparc64. This is because sparc64_supply_fpregset and sparc64_collect_fpregset are using the offsets from the sparc32_bsd_fpregset constant instead of sparc64_bsd_fpregset. This patch fixes this by registering the proper offsets for sparc64-linux targets. 2014-02-14 Jose E. Marchesi * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register the proper offsets to access fpregset_t. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 4762690baa4..7611dbb68f5 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2014-02-14 Jose E. Marchesi + + * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register + the proper offsets to access fpregset_t. + 2014-02-13 Sanimir Agovic * cris-tdep.c (cris_supply_gregset): Remove zerobuf. diff --git a/gdb/sparc64-linux-nat.c b/gdb/sparc64-linux-nat.c index a18da3aa3bc..80411dc1775 100644 --- a/gdb/sparc64-linux-nat.c +++ b/gdb/sparc64-linux-nat.c @@ -80,6 +80,8 @@ _initialize_sparc64_linux_nat (void) /* Fill in the generic GNU/Linux methods. */ t = linux_target (); + sparc_fpregset = &sparc64_bsd_fpregset; + /* Add our register access methods. */ t->to_fetch_registers = sparc_fetch_inferior_registers; t->to_store_registers = sparc_store_inferior_registers;