Debugging a single package - what do I need to do?

I want to debug tcpdump on a device. I have the SDK and the imagebuilder tarballs.

What is the bare minimum I need to do for the following:

  • build tcpdump for the device with debugging symbols
  • build a cross gdb for my x64 host

It looks like the SDK package lacks the option to build a host gdb. and got me most of the way, the sdk doesn't seem to use the make install step, and I don't have a way to build a gdb for the host yet.