* gdb-events.sh: Deal with event notifications with no
authorKeith Seitz <keiths@redhat.com>
Fri, 10 Aug 2001 16:05:30 +0000 (16:05 +0000)
committerKeith Seitz <keiths@redhat.com>
Fri, 10 Aug 2001 16:05:30 +0000 (16:05 +0000)
arguments.

gdb/ChangeLog
gdb/gdb-events.sh

index 5e6b10bf538599bd4d3630969eb8c9c75c575ec2..74cad45128394391a049ec48201efe9624774fbe 100644 (file)
@@ -1,3 +1,8 @@
+2001-08-10  Keith Seitz  <keiths@redhat.com>
+
+       * gdb-events.sh: Deal with event notifications with no
+       arguments.
+
 2001-08-10  Orjan Friberg  <orjanf@axis.com>
 
        * remote.c (read_frame): Correct off-by-one error in condition.
index d4713eccb5b6bde911f017287876558e5494ae95..6c576f813c1b46e4695f6958ec0016841aad4ffc 100755 (executable)
@@ -419,11 +419,14 @@ function_list | while eval read $read
 do
   case "${class}" in
     "f" )
-      echo "struct ${function}"
-      echo "  {"
-      echo "    `echo ${formal} | tr '[,]' '[;]'`;"
-      echo "  };"
-      echo ""
+      if test ${actual}
+      then
+        echo "struct ${function}"
+        echo "  {"
+        echo "    `echo ${formal} | tr '[,]' '[;]'`;"
+        echo "  };"
+        echo ""
+      fi
       ;;
   esac
 done
@@ -441,7 +444,10 @@ function_list | while eval read $read
 do
   case "${class}" in
     "f" )
-      echo "        struct ${function} ${function};"
+      if test ${actual}
+      then
+        echo "        struct ${function} ${function};"
+      fi
       ;;
   esac
 done
@@ -517,15 +523,20 @@ do
   case "${class}" in
     "f" )
       echo "        case ${function}:"
-      echo "          vector->${function}"
-      sep="            ("
-      ass=""
-      for arg in `echo ${actual} | tr '[,]' '[:]' | tr -d '[ ]'`; do
-        ass="${ass}${sep}event->data.${function}.${arg}"
-       sep=",
-             "
-      done
-      echo "${ass});"
+      if test ${actual}
+      then
+        echo "          vector->${function}"
+        sep="            ("
+        ass=""
+        for arg in `echo ${actual} | tr '[,]' '[:]' | tr -d '[ ]'`; do
+          ass="${ass}${sep}event->data.${function}.${arg}"
+         sep=",
+               "
+        done
+        echo "${ass});"
+      else
+        echo "          vector->${function} ();"
+      fi
       echo "          break;"
       ;;
   esac
This page took 0.03011 seconds and 4 git commands to generate.