How can I break all the functions matching the pattern?

I am trying to break all the functions of pthread, but it looks like gdb does not support wildcard here:

(gdb) b pthread_*
Function "pthread_*" not defined.

Any ideas?

+4
source share
1 answer

Use rbreak ^pthread_

From GDB: setting breakpoints :

rbreak regex

Set breakpoints for all functions matching the regex regular expression.

     

, , grep. , , , , , foo * , fo, os. . * , , , foo, ^ foo.

+7

Source: https://habr.com/ru/post/1547439/


All Articles