As I understand it, for each function symbol in the program there is a corresponding range of memory in the address space. The call assembly instruction pushes ip and some other info on the stack and jumps to the beginning of that range.
I need to get that range while debugging with GDB. I can easily get a name of a function corresponding to a given address or line using info symbol. I need the opposite: symbol -> address range. In fact, I can even use TUI mode, scroll assembly code down to the end of the function and look at the "<symbol_name>+<offset>" annotation near the last instruction but that's definitely not the right way to do it (it's even worse because I'm using GDB/MI).
How can I match a symbol to its memory range using GDB?