c - Instruct GDB 6.5 to use source embedded in object file -


I am trying to create GNU gdb 6.5-14

The main reason is that I develop an embedded platform and I cross the compilation, which means that all the sources are in my computer.

P>

I read about the -ggdb3 flag, which contains many additional information including source code, so I started compiling it with that flag.

A do objdump -s src / lib / libfoo.so actually prints all source code with mixed code with source code, so I guess That it actually includes that information.

The only thing is that GDB does not print it, as long as one works out from a NFS mount version of my workspace that has a source.

Do anyone know how I can direct GDB to view the object file for code instead of relying on external files

Your guess is that -ggdb3 is completely incorrect; The object is not in the source file. You can prove that by running 'strings -a libfoo.so'

Your best bet is how do you use remote debugging - then you GDB from host (which has access to all sources); With an added advantage, you need very little memory on target. See gdbserver in "info gdb"


Comments

Popular posts from this blog

asp.net - Javascript/DOM Why is does my form not support submit()? -

sockets - Delphi: TTcpServer, connection reset when reading -

javascript - Classic ASP "ExecuteGlobal" statement acting differently on two servers -