summaryrefslogtreecommitdiff
path: root/gdb/observer.sh
diff options
context:
space:
mode:
authorJoel Brobecker <brobecker@gnat.com>2004-04-17 04:45:32 +0000
committerJoel Brobecker <brobecker@gnat.com>2004-04-17 04:45:32 +0000
commit20ecbe497e0cd0f22762251cdbb4c2beb11dce24 (patch)
tree33aca7cecdf00815ba783cccfccfc887cabd8d2c /gdb/observer.sh
parentf556b5443c864bad6b9682258c7aaec908444ebc (diff)
downloadgdb-20ecbe497e0cd0f22762251cdbb4c2beb11dce24.tar.gz
* observer.sh: Move comments in sed command to first column.
Diffstat (limited to 'gdb/observer.sh')
-rwxr-xr-xgdb/observer.sh16
1 files changed, 8 insertions, 8 deletions
diff --git a/gdb/observer.sh b/gdb/observer.sh
index c67346fed3c..c5d37799d61 100755
--- a/gdb/observer.sh
+++ b/gdb/observer.sh
@@ -62,22 +62,22 @@ esac
IFS=:
sed -n '
/@deftypefun void/{
- # Save original line for later processing into the actual parameter
+# Save original line for later processing into the actual parameter
h
- # Convert from: @deftypefun void EVENT (TYPE @var{PARAM},...)
- # to event and formals: EVENT:TYPE PARAM, ...:
+# Convert from: @deftypefun void EVENT (TYPE @var{PARAM},...)
+# to event and formals: EVENT:TYPE PARAM, ...:
s/^.* void \([a-z_][a-z_]*\) (\(.*\))$/\1:\2/
s/@var{//g
s/}//g
- # Switch to held
+# Switch to held
x
- # Convert from: @deftypefun void FUNC (TYPE @var{PARAM},...)
- # to actuals: PARAM, ...
+# Convert from: @deftypefun void FUNC (TYPE @var{PARAM},...)
+# to actuals: PARAM, ...
s/^[^{]*[{]*//
s/[}]*[^}]*$//
s/}[^{]*{/, /g
- # Combine held (EVENT:TYPE PARAM, ...:) and pattern (PARAM, ...) into
- # FUNC:TYPE PARAM, ...:PARAM, ...
+# Combine held (EVENT:TYPE PARAM, ...:) and pattern (PARAM, ...) into
+# FUNC:TYPE PARAM, ...:PARAM, ...
H
x
s/\n/:/g