7

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

1 Answer 1

7

break filename:function - mp3.c:audio_call_back

BTW, aren't you forgetting a return type?

Sign up to request clarification or add additional context in comments.

2 Comments

the function signatures are the same.
@shri: So? You specify the file, and you're still forgetting a return type.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.