Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Jimi Xenidis <jimix@watson.ibm.com>
To: Kevin Buettner <kevinb@redhat.com>
Cc: Daniel Jacobowitz <drow@mvista.com>,
	gdb-patches@sources.redhat.com,
	Andrew Cagney <ac131313@redhat.com>
Subject: PATCH: Re: AHAH! Re: Patch to eliminate SOFTWARE_SINGLE_STEP
Date: Tue, 09 Sep 2003 22:01:00 -0000	[thread overview]
Message-ID: <16222.19873.6535.22360@kitch0.watson.ibm.com> (raw)
In-Reply-To: <1030909175522.ZM21202@localhost.localdomain>

>>>>> "KB" == Kevin Buettner <kevinb@redhat.com> writes:

 KB> For the time being, you can just use ``from_xcoff_exec'' for the
 KB> test.  Please add a comment which indicates that the test ought
 KB> to be eventually changed to use GDB_OSABI_AIX when it becomes
 KB> available.  (Actually, once things are properly split apart, the
 KB> test goes away.)

You wish is my command and thanks for the help.
-JX


diff -Naur -X Xdiff src/gdb/ChangeLog mygdb/gdb/ChangeLog
--- src/gdb/ChangeLog	Tue Sep  9 17:33:08 2003
+++ mygdb/gdb/ChangeLog	Tue Sep  9 17:03:52 2003
@@ -1,3 +1,14 @@
+2003-09-09  Jimi Xenidis  <jimix@watson.ibm.com>
+
+	* config/powerpc/tm-ppc-eabi.h:  no longer require custion #define of
+	SOFTWARE_SINGLE_STEP
+	* config/rs6000/tm-rs6000.h: no longer require custion #define of
+	SOFTWARE_SINGLE_STEP
+	* config/powerpc/tm-linux.h: no longer require custion #define of
+	SOFTWARE_SINGLE_STEP
+	* rs6000-tdep.c (rs6000_gdbarch_init): Set up software_single_step
+	while initing gdbarch
+
 2003-09-09  Ian Lance Taylor  <ian@wasabisystems.com>
 
 	* MAINTAINERS: Update my e-mail address.
diff -Naur -X Xdiff src/gdb/config/powerpc/tm-linux.h mygdb/gdb/config/powerpc/tm-linux.h
--- src/gdb/config/powerpc/tm-linux.h	Mon Sep  8 10:06:36 2003
+++ mygdb/gdb/config/powerpc/tm-linux.h	Mon Sep  8 10:03:28 2003
@@ -31,12 +31,6 @@
 #undef IN_SOLIB_CALL_TRAMPOLINE
 #undef SKIP_TRAMPOLINE_CODE
 
-/* We can single step on linux */
-#undef  SOFTWARE_SINGLE_STEP
-#define SOFTWARE_SINGLE_STEP(p,q) internal_error (__FILE__, __LINE__, "Will never execute!")
-#undef  SOFTWARE_SINGLE_STEP_P
-#define SOFTWARE_SINGLE_STEP_P() 0
-
 /* Make sure nexti gets the help it needs for debugging assembly code
    without symbols */
 
diff -Naur -X Xdiff src/gdb/config/powerpc/tm-ppc-eabi.h mygdb/gdb/config/powerpc/tm-ppc-eabi.h
--- src/gdb/config/powerpc/tm-ppc-eabi.h	Fri Apr 12 15:48:37 2002
+++ mygdb/gdb/config/powerpc/tm-ppc-eabi.h	Tue Sep  9 10:54:48 2003
@@ -24,9 +24,6 @@
 
 /* Use generic RS6000 definitions. */
 #include "rs6000/tm-rs6000.h"
-/* except we want to allow single stepping */
-#undef SOFTWARE_SINGLE_STEP_P
-#define SOFTWARE_SINGLE_STEP_P() 0
 
 #undef PROCESS_LINENUMBER_HOOK
 
diff -Naur -X Xdiff src/gdb/config/rs6000/tm-rs6000.h mygdb/gdb/config/rs6000/tm-rs6000.h
--- src/gdb/config/rs6000/tm-rs6000.h	Mon Sep  8 10:06:36 2003
+++ mygdb/gdb/config/rs6000/tm-rs6000.h	Mon Sep  8 10:05:43 2003
@@ -90,12 +90,6 @@
 extern CORE_ADDR init_frame_pc_noop (int fromleaf, struct frame_info *prev);
 #define DEPRECATED_INIT_FRAME_PC(fromleaf, prev) (init_frame_pc_noop (fromleaf, prev))
 
-/* RS6000/AIX does not support PT_STEP.  Has to be simulated.  */
-
-#define SOFTWARE_SINGLE_STEP_P() 1
-extern void rs6000_software_single_step (enum target_signal, int);
-#define SOFTWARE_SINGLE_STEP(sig,bp_p) rs6000_software_single_step (sig, bp_p)
-
 /* Notice when a new child process is started. */
 
 #define TARGET_CREATE_INFERIOR_HOOK rs6000_create_inferior
diff -Naur -X Xdiff src/gdb/rs6000-tdep.c mygdb/gdb/rs6000-tdep.c
--- src/gdb/rs6000-tdep.c	Tue Sep  9 17:33:09 2003
+++ mygdb/gdb/rs6000-tdep.c	Tue Sep  9 17:08:02 2003
@@ -3013,6 +3013,16 @@
   /* Hook in ABI-specific overrides, if they have been registered.  */
   gdbarch_init_osabi (info, gdbarch);
 
+  if (from_xcoff_exec)
+    {
+      /* Note: jimix/2003-06-09: This test should really check for
+	 GDB_OSABI_AIX then that is defined and becomes
+	 available. (Actually, once things are properly split apart,
+	 the test goes away.) */
+       /* RS6000/AIX does not support PT_STEP.  Has to be simulated.  */
+       set_gdbarch_software_single_step (gdbarch, rs6000_software_single_step);
+    }
+
   return gdbarch;
 }
 


  reply	other threads:[~2003-09-09 22:01 UTC|newest]

Thread overview: 35+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-08-12 22:31 Powerpc and software single step Jimi Xenidis
2003-08-19 17:55 ` Kevin Buettner
2003-08-19 19:05   ` Jimi Xenidis
2003-08-19 19:13   ` Daniel Jacobowitz
2003-08-19 22:32     ` Jimi Xenidis
2003-08-20  2:30       ` Daniel Jacobowitz
2003-08-20  2:57         ` Jimi Xenidis
2003-08-20  3:09           ` Daniel Jacobowitz
2003-08-20  3:21             ` Jimi Xenidis
2003-08-20 13:07               ` Daniel Jacobowitz
2003-08-20 13:54                 ` Jimi Xenidis
2003-08-20 15:51             ` Andrew Cagney
2003-08-20 16:02               ` Jimi Xenidis
2003-08-21  3:48                 ` Andrew Cagney
2003-08-22 13:17                   ` Jimi Xenidis
2003-08-22 15:54                     ` Andrew Cagney
2003-08-22 17:32                       ` Jimi Xenidis
2003-08-22 18:20                         ` Andrew Cagney
2003-09-08 18:58                           ` Patch to eliminate SOFTWARE_SINGLE_STEP from ppc Was: " Jimi Xenidis
2003-09-08 19:00                             ` Daniel Jacobowitz
2003-09-08 20:17                               ` Jimi Xenidis
2003-09-08 20:20                                 ` Daniel Jacobowitz
2003-09-08 21:22                                   ` Jimi Xenidis
2003-09-08 22:01                                     ` Kevin Buettner
2003-09-09 10:30                                       ` Jimi Xenidis
2003-09-09 15:30                                       ` AHAH! " Jimi Xenidis
2003-09-09 16:15                                         ` Kevin Buettner
2003-09-09 17:01                                           ` Jimi Xenidis
2003-09-09 17:55                                             ` Kevin Buettner
2003-09-09 22:01                                               ` Jimi Xenidis [this message]
2003-09-10  1:24                                                 ` PATCH: Re: AHAH! Re: Patch to eliminate SOFTWARE_SINGLE_STEP Kevin Buettner
2003-10-10  2:40                                                   ` Andrew Cagney
2003-08-20  2:30     ` Powerpc and software single step Andrew Cagney
2003-08-20  2:33       ` Daniel Jacobowitz
2003-08-21 14:01         ` Andrew Cagney

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=16222.19873.6535.22360@kitch0.watson.ibm.com \
    --to=jimix@watson.ibm.com \
    --cc=ac131313@redhat.com \
    --cc=drow@mvista.com \
    --cc=gdb-patches@sources.redhat.com \
    --cc=kevinb@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox