* gdb-events.sh: Deal with event notifications with no

arguments.
This commit is contained in:
Keith Seitz 2001-08-10 16:05:30 +00:00
parent 0218d1e4c2
commit fd969be2aa
2 changed files with 31 additions and 15 deletions

View 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> 2001-08-10 Orjan Friberg <orjanf@axis.com>
* remote.c (read_frame): Correct off-by-one error in condition. * remote.c (read_frame): Correct off-by-one error in condition.

View file

@ -419,11 +419,14 @@ function_list | while eval read $read
do do
case "${class}" in case "${class}" in
"f" ) "f" )
echo "struct ${function}" if test ${actual}
echo " {" then
echo " `echo ${formal} | tr '[,]' '[;]'`;" echo "struct ${function}"
echo " };" echo " {"
echo "" echo " `echo ${formal} | tr '[,]' '[;]'`;"
echo " };"
echo ""
fi
;; ;;
esac esac
done done
@ -441,7 +444,10 @@ function_list | while eval read $read
do do
case "${class}" in case "${class}" in
"f" ) "f" )
echo " struct ${function} ${function};" if test ${actual}
then
echo " struct ${function} ${function};"
fi
;; ;;
esac esac
done done
@ -517,15 +523,20 @@ do
case "${class}" in case "${class}" in
"f" ) "f" )
echo " case ${function}:" echo " case ${function}:"
echo " vector->${function}" if test ${actual}
sep=" (" then
ass="" echo " vector->${function}"
for arg in `echo ${actual} | tr '[,]' '[:]' | tr -d '[ ]'`; do sep=" ("
ass="${ass}${sep}event->data.${function}.${arg}" ass=""
sep=", for arg in `echo ${actual} | tr '[,]' '[:]' | tr -d '[ ]'`; do
" ass="${ass}${sep}event->data.${function}.${arg}"
done sep=",
echo "${ass});" "
done
echo "${ass});"
else
echo " vector->${function} ();"
fi
echo " break;" echo " break;"
;; ;;
esac esac