Re: How to debug ogle?
H}kan Hjort <[email protected]>
| Newsgroups | gmane.comp.video.ogle.user |
|---|---|
| Message-ID | <[email protected]> |
Wed Feb 11 2004, Toralf Lund wrote: > I'm trying to run ogle through the debugger, or possibly attach to the > process after starting it the usual way, in order to find out why it > hangs when playing one of my films... I have > Earlier we added some functionallity to do this. A normal compile (just './configure --prefix=... && make install') should do. As long as you don't use install-strip ;-) The if you, for example, want to debug the nav code start ogle as ./prefix/bin/ogle --debug-nav This should start a new xterm with a gdb session in which the nav process is running. Kinda neat. > $ file /usr/lib/ogle/ogle_nav > /usr/lib/ogle/ogle_nav: ELF 32-bit LSB executable, Intel 80386, version > 1 (SYSV), for GNU/Linux 2.2.5, dynamically linked (uses shared libs), > not stripped > > - notice the "not stripped" (yeah, I've *installed* an unstripped > version to debug. Looks ok. You shouln't have to do anything special though. > I thought it would be easier that way as I wasn't sure > if the scripts would pick up the right versions when running from the > source dir.) No it's not possible to run from the source dir. > - and as far as I can tell, everything is compiled with > '-g', but I still get: > It should be, unless you overide the CFLAGS. > $ gdb /usr/lib/ogle/ogle_nav > GNU gdb Red Hat Linux (5.3post-0.20021129.18rh) > [ ... ] > (no debugging symbols found)... > > What am I missing? > Just tested on my FedoraCore1 with 'GNU gdb Red Hat Linux (5.3.90-0.20030710.41rh)'. That seems to work, so I'd guess that you'll have to upgade gdb, bintools and/or gcc. Regards /Håkan