mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-11-21 01:12:32 +08:00
2012-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
* observer.sh: Conditionally declare `args', thus cleaning up unused instances of this variable.
This commit is contained in:
parent
838a716d66
commit
7fc7e0c328
@ -1,3 +1,8 @@
|
||||
2012-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
|
||||
|
||||
* observer.sh: Conditionally declare `args', thus cleaning up
|
||||
unused instances of this variable.
|
||||
|
||||
2012-04-24 Yao Qi <yao@codesourcery.com>
|
||||
|
||||
Revert this patch to allow breakpoint always-inserted
|
||||
|
@ -136,8 +136,17 @@ static void
|
||||
observer_${event}_notification_stub (const void *data, const void *args_data)
|
||||
{
|
||||
observer_${event}_ftype *notify = (observer_${event}_ftype *) data;
|
||||
EOF
|
||||
|
||||
notify_args=`echo ${actual} | sed -e 's/\([a-z0-9_][a-z0-9_]*\)/args->\1/g'`
|
||||
|
||||
if test ! -z "${notify_args}"; then
|
||||
cat<<EOF >>${otmp}
|
||||
const struct ${event}_args *args = args_data;
|
||||
notify (`echo ${actual} | sed -e 's/\([a-z0-9_][a-z0-9_]*\)/args->\1/g'`);
|
||||
EOF
|
||||
fi
|
||||
cat <<EOF >>${otmp}
|
||||
notify (${notify_args});
|
||||
}
|
||||
|
||||
struct observer *
|
||||
|
Loading…
Reference in New Issue
Block a user