Show full named struct values?

2017-09-13 Thread Felipe Gasper
Hello, Right now the ā€œ-vā€ flag changes the output format away from the named parsed and toward a byte dump: root@felipe64 10:23:07 ~/temp/strace-4.19 > ./strace perl -e1 2>&1 | grep ioctl | grep -v Inappropriate ioctl(0, TCGETS, {B38400 opost isig icanon echo ...}) = 0 root@felipe64 1

[PATCH 3/3] term: improve decoding of termios and termio structures

2017-09-13 Thread Eugene Syromyatnikov
--- term.c | 145 ++--- xlat/term_cflags.in| 9 +++ xlat/term_cflags_csize.in | 4 ++ xlat/term_iflags.in| 15 + xlat/term_lflags.in| 17 ++ xlat/term_oflags.in| 15 + xlat/term_oflags_b

Re: Show full named struct values?

2017-09-13 Thread Eugene Syromyatnikov
Hello. Current support of term ioctls is in pretty abandoned state. However, does this patch set work for you? Eugene Syromyatnikov (3): xlat/gen.sh: add some rudimentary support for comments use print_quoted_string in decode_termio term: improve decoding of termios and termio structures

[PATCH 1/3] xlat/gen.sh: add some rudimentary support for comments

2017-09-13 Thread Eugene Syromyatnikov
--- xlat/gen.sh | 6 ++ 1 file changed, 6 insertions(+) diff --git a/xlat/gen.sh b/xlat/gen.sh index 06c1b17..9efa0ab 100755 --- a/xlat/gen.sh +++ b/xlat/gen.sh @@ -135,6 +135,9 @@ gen_header() # 1st pass: output directives. while read line; do LC_COLLATE=C +

[PATCH 2/3] use print_quoted_string in decode_termio

2017-09-13 Thread Eugene Syromyatnikov
--- term.c | 8 +++- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/term.c b/term.c index 9368e5f..28f562f 100644 --- a/term.c +++ b/term.c @@ -73,7 +73,6 @@ static void decode_termio(struct tcb *const tcp, const kernel_ulong_t addr) { struct termio tio; - int i;

Re: Show full named struct values?

2017-09-13 Thread Felipe Gasper
Hello Eugene, Thank you for your prompt response! This would be very helpful, yes. :) -Felipe > On Sep 13, 2017, at 3:57 PM, Eugene Syromyatnikov wrote: > > Hello. > > Current support of term ioctls is in pretty abandoned state. > > However, does this patch set work for you? > > Eug