title: GDB show current compiled binary file for function address on call stack
body: <p>In visual studio you can see where the function is located, i.e. within which compiled binary file. For example:
  <a href="https://i.stack.imgur.com/2d9LL.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/2d9LL.png" alt="enter image description here" /></a></p>
  <p>Is there a command for GDB?</p>
  <hr />
  <p>Several versions of one symbol can be loaded twice in case you load a dll. And it is <em>essential</em> to know whether the code is being executed within the .exe or one of loaded .dll libs. Visual Studio debugger shows this info like on the screenshot provided (though it is for C#, I just copied it from the web site).</p>
  <p>When I used Visual Studio, I was able to spot some cases, when the code expected to be executed within a .dll was executed within .exe. Of course this was due to a mistake in linking command. But this kind of mistakes may be hard to spot, and seeing the current binary file of execution helps a lot.</p>