Show complete arguments in strace even in curly brackets

前端 未结 4 1483
说谎
说谎 2021-02-02 10:18

I know the -s option should display longer arguments, but it doesn\'t work always (probably because of those curly brackets meaning array or nested arguments?).

4条回答
  •  后悔当初
    2021-02-02 11:07

    There is such option in the strace parameters - you should use -v command line switch. Furthermore, due to the opensource nature of this great utility, you can disable abbreviation totally by patching the defs.h header in the strace sources:

    < #define abbrev(tcp)   ((tcp)->qual_flg & QUAL_ABBREV)
    ---
    > #define abbrev(tcp)   0
    

    I've patched that way strace-4.9 from my local gentoo /usr/portage/distfiles/ software sources storage. It doesn't require to download latest strace sources from sourceforge.

提交回复
热议问题