I have two static functions with the 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 performed by the function pointer method.
With gdb, how can I get a breakpoint in the "audio_call_back" mp3 file. By default, if I run
(gdb) break audio_call_back
a breakpoint is set in the radio.c file. How to set breakpoint in "audio_call_back" in mp3.c file
source
share