gdb break when program opens specific file

后端 未结 3 1769
天命终不由人
天命终不由人 2020-12-16 11:50

Back story: While running a program under strace I notice that \'/dev/urandom\' is being open\'ed. I would like to know where this call is coming

3条回答
  •  春和景丽
    2020-12-16 12:05

    Like Andre Puel said:

    break open if strcmp($rdi,"/dev/urandom") == 0

    Might do the job.

提交回复
热议问题