2007-11-15 Markus Deuling <deuling@de.ibm.com>
[deliverable/binutils-gdb.git] / gdb / m68klinux-tdep.c
index 574139625c29484b3aaeca5338106e66a56e16e6..8270c5b4987815e0d2c2c4360b8730ebd7ae674d 100644 (file)
@@ -7,7 +7,7 @@
 
    This program is free software; you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
-   the Free Software Foundation; either version 2 of the License, or
+   the Free Software Foundation; either version 3 of the License, or
    (at your option) any later version.
 
    This program is distributed in the hope that it will be useful,
@@ -16,9 +16,7 @@
    GNU General Public License for more details.
 
    You should have received a copy of the GNU General Public License
-   along with this program; if not, write to the Free Software
-   Foundation, Inc., 51 Franklin Street, Fifth Floor,
-   Boston, MA 02110-1301, USA.  */
+   along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 
 #include "defs.h"
 #include "gdbcore.h"
@@ -215,8 +213,8 @@ static int target_is_uclinux;
 static void
 m68k_linux_inferior_created (struct target_ops *objfile, int from_tty)
 {
-  /* Record that we will need to re-evaluate whether we are running on
-     a uClinux or normal Linux target (see m68k_linux_get_sigtramp_info).  */
+  /* Record that we will need to re-evaluate whether we are running on a
+     uClinux or normal GNU/Linux target (see m68k_linux_get_sigtramp_info).  */
   target_is_uclinux = -1;
 }
 
@@ -229,7 +227,7 @@ m68k_linux_get_sigtramp_info (struct frame_info *next_frame)
 
   if (target_is_uclinux == -1)
     {
-      /* Determine whether we are running on a uClinux or normal Linux
+      /* Determine whether we are running on a uClinux or normal GNU/Linux
          target so we can use the correct sigcontext layouts.  */
     
       CORE_ADDR dummy;
@@ -262,7 +260,7 @@ m68k_linux_sigtramp_frame_cache (struct frame_info *next_frame,
 {
   struct frame_id this_id;
   struct trad_frame_cache *cache;
-  struct gdbarch_tdep *tdep = gdbarch_tdep (current_gdbarch);
+  struct gdbarch_tdep *tdep = gdbarch_tdep (get_frame_arch (next_frame));
   struct m68k_linux_sigtramp_info info;
   char buf[4];
   int i;
This page took 0.023915 seconds and 4 git commands to generate.