mirror of
https://github.com/darlinghq/darling-gdb.git
synced 2024-11-25 05:00:01 +00:00
* gdb-events.sh: Deal with event notifications with no
arguments.
This commit is contained in:
parent
0218d1e4c2
commit
fd969be2aa
@ -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.
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user