I have two static functions with same name in two different files.
radio.c
-------
static audio_call_back(...)
{
// code to execute when audio from radio 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?
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With