Implement pahole-like 'ptype /o' option
[deliverable/binutils-gdb.git] / gdb / testsuite / gdb.base / signals.c
index 280e6e7c5d8f099ce8ddaf1cf3f7273187f1a470..756606880fa5157e1165d90c25658b72ce9d2f20 100644 (file)
@@ -1,17 +1,13 @@
 /* Test GDB dealing with stuff like stepping into sigtramp.  */
 
 #include <signal.h>
+#include <unistd.h>
 
-#ifdef __sh__
-#define signal(a,b)    /* Signals not supported on this target - make them go away */
-#define alarm(a)       /* Ditto for alarm() */
-#endif
 
 static int count = 0;
 
 static void
-handler (sig)
-     int sig;
+handler (int sig)
 {
   signal (sig, handler);
   ++count;
@@ -32,10 +28,6 @@ func2 ()
 int
 main ()
 {
-#ifdef usestubs
-  set_debug_traps();
-  breakpoint();
-#endif
 #ifdef SIGALRM
   signal (SIGALRM, handler);
 #endif
This page took 0.024965 seconds and 4 git commands to generate.