diff options
author | Keith Seitz <keiths@redhat.com> | 2001-08-10 16:05:30 +0000 |
---|---|---|
committer | Keith Seitz <keiths@redhat.com> | 2001-08-10 16:05:30 +0000 |
commit | 91c946f074e6fce2e7e67be53165f7abc5a2eacb (patch) | |
tree | 1931553d03ea39b2ef0fc5dc7a8cf19e64de498b /gdb/gdb-events.sh | |
parent | b975330d30c0872c215d4ed141c0eab35720cd63 (diff) | |
download | gdb-91c946f074e6fce2e7e67be53165f7abc5a2eacb.tar.gz |
* gdb-events.sh: Deal with event notifications with no
arguments.
Diffstat (limited to 'gdb/gdb-events.sh')
-rwxr-xr-x | gdb/gdb-events.sh | 41 |
1 files changed, 26 insertions, 15 deletions
diff --git a/gdb/gdb-events.sh b/gdb/gdb-events.sh index d4713eccb5b..6c576f813c1 100755 --- a/gdb/gdb-events.sh +++ b/gdb/gdb-events.sh @@ -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 |