gdb - break in static functions
I have two static functions with same name in two different files.
radio.c ------- static audio_call_back(...) { // code to execute when audio from ra开发者_StackOverflowdio is acquired } mp3.c ----- static audio_call_back(...) { // code to execute when audio from mp3 player is acquired }
They are executed by function pointer method.
With gdb, how can I have a break point in "audio_call_back" of mp3 file. By default if I run
(gdb) break audio_call_back
a break point is set up in radio.c file. How can I set break point in "audio_call_back" present in file mp3.c
break filename:function - mp3.c:audio_call_back
BTW, aren't you forgetting a return type?
精彩评论