3

I'm having a huge C code base to browse and understand. I'm doing it using cscope on vim.

But I'm almost clueless when it comes to function pointers as to where they are pointing to. Is there a easy way to find out what callbacks are registered?

Can we find it out using cscope itself ?

  • Do you need this for debugging purposes or as part of the application? For debugging purposes, I usually just compare the function pointer address with some map file manually. Some good debuggers might assist with the actual function name but that's kind of rare. – Lundin Mar 30 '17 at 07:34
  • 1
    I need this to add code. – Somesaint Gupta Mar 31 '17 at 07:03

1 Answers1

-1

gd go local declaration and gD go to global declaration. If you want to see the declaration in a new window try: Ctrl-w gD for example.

SergioAraujo
  • 11,069
  • 3
  • 50
  • 40