chiark
/
gitweb
/
~ian
/
hippotat.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
00192d6
)
wip debug
author
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Sat, 1 Apr 2017 12:24:04 +0000
(13:24 +0100)
committer
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Sat, 1 Apr 2017 12:24:04 +0000
(13:24 +0100)
w3mstracetodump
patch
|
blob
|
history
diff --git
a/w3mstracetodump
b/w3mstracetodump
index fdf28eb22cd9e643e038c8807e373b6934d28f73..907af4f4f605eeb37450ce291fc8da8047ddc504 100755
(executable)
--- a/
w3mstracetodump
+++ b/
w3mstracetodump
@@
-2,8
+2,11
@@
# strace -s70000 -ot w3m ./form.html
-next unless s{^write\(7, "}{};
-next unless m/^POST|GET/..0;
+next unless
+ (m/^connect\((\d+),.*AF_INET/ and $fd = $1) ..
+ m/^close\($fd\)/;
+
+next unless s{^write\($fd, "}{};
s{", \d+\)\s+= \d+\n}{};
s{\\r}{\r}g;
s{\\n}{\n}g;