Date: Fri, 04 Jan 2013 14:28:35 +0100 From: Martin Laabs <mailinglists@martinlaabs.de> To: freebsd-emulation@freebsd.org Subject: Debugging a linux application and library in freebsd Message-ID: <50E6D903.7080306@martinlaabs.de>
next in thread | raw e-mail | index | archive | help
Hi, I'm currently searching a bug in the linuxulator concerning a libc function. Therefore it would be very helpful using gdb to trace the program not only instruction for instruction but also with the source code and full symbols. Building the linux binary that reproduce the bug is done in a VM running an somewhat old debian. Building it with debugging symbols is also no problem. I could also imagine to build the libc with debugging symbols (if not available in some binary packages) Would you suggest to do this with a cross compiler under the linuxulator enviroment or in the debian VM? But anyway - the native gdb does not support linux binaries very well. So did anyone tried to run a linux gdb inside the linuxulator enviroment to trace the bug down into the library? Obviously the linux gdb does not know anything about the linux-call translation but this should be transparent to it. Thank you, Martin Laabs
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?50E6D903.7080306>