FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Ubuntu > Kubuntu Development

 
 
LinkBack Thread Tools
 
Old 12-06-2010, 09:30 PM
Matthew Huck
 
Default Qt debug libraries

Hi,
Â* I’m trying to debug into the Qt libraries for our application, however I need to use “qmake-qt4 –query “ from the /usr/debug folder (we’re using FindQt4.cmake), but qmake-qt4 is not executable, and if it is ‘chmod +x’ it complains about not being able to execute binary file.
Â*
This is running on a 32bit VM, running maverick,
Â*
matthew@matthew-VirtualBox:/usr/lib/debug/usr/bin$ file qmake-qt4
qmake-qt4: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.15, not stripped
matthew@matthew-VirtualBox:/usr/lib/debug/usr/bin$ ldd qmake-qt4
Â*Â*Â*Â* statically linked
matthew@matthew-VirtualBox:/usr/lib/debug/usr/bin$ readelf -h qmake-qt4
ELF Header:
Â* Magic:Â*Â* 7f 45 4c 46 01 01 01 00 00 00 00 00 00 00 00 00
Â*Â*Class:Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â* Â*Â*Â*Â*Â*Â*Â*Â* ELF32
Â* Data:Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â *Â*Â*Â*Â*Â*Â* 2's complement, little endian
Â* Version:Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â* Â*Â*Â*Â*Â* 1 (current)
Â* OS/ABI:Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â* Â*Â*Â*Â* UNIX - System V
Â* ABI Version:Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â* Â* 0
Â* Type:Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â *Â*Â*Â*Â*Â*Â* EXEC (Executable file)
Â* Machine:Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â* Â*Â*Â*Â*Â* Intel 80386
Â* Version:Â*Â*Â* Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*0x1
Â* Entry point address:Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â* 0x8049e70
Â* Start of program headers:Â*Â*Â*Â*Â*Â*Â*Â*Â* 52 (bytes into file)
Â* Start of section headers:Â*Â*Â*Â*Â*Â*Â*Â*Â* 744 (bytes into file)
Â* Flags:Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â* Â*Â*Â*Â*Â*Â* 0x0
Â* Size of this header:Â* Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*52 (bytes)
Â* Size of program headers:Â*Â*Â*Â*Â*Â*Â*Â*Â*Â* 32 (bytes)
Â* Number of program headers:Â*Â*Â*Â*Â*Â*Â*Â* 9
Â* Size of section headers:Â*Â*Â*Â*Â*Â*Â*Â*Â*Â* 40 (bytes)
Â* Number of section headers:Â*Â*Â*Â*Â*Â*Â*Â* 31
Â* Section header string table index: 28
matthew@matthew-VirtualBox:/usr/lib/debug/usr/bin$ uname -a
Linux matthew-VirtualBox 2.6.35-22-generic #33-Ubuntu SMP Sun Sep 19 20:34:50 UTC 2010 i686 GNU/Linux
Â*
What do I need to do to use the debug libraries?
Â*
Thanks in advance.
Â*
Matthew
Â*
Â*
--
kubuntu-devel mailing list
kubuntu-devel@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/kubuntu-devel
 
Old 12-06-2010, 10:26 PM
Jonathan Riddell
 
Default Qt debug libraries

On Tue, Dec 07, 2010 at 11:30:57AM +1300, Matthew Huck wrote:
> I'm trying to debug into the Qt libraries for our application,
> however I need to use "qmake-qt4 -query " from the /usr/debug folder

Why do you need to use qmake from /usr/debug? The
/usr/lib/debug/usr/bin/qmake-qt4 file is the debugging symbols from
/usr/bin/qmake-qt4

To debug use of Qt4 libraries you just need the debugger (usually gdb)
to know to load the symbols from /usr/lib/debug/ which gdb will do
automatically.

Jonathan

--
kubuntu-devel mailing list
kubuntu-devel@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/kubuntu-devel
 

Thread Tools




All times are GMT. The time now is 11:30 PM.

VBulletin, Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2007 - 2008, www.linux-archive.org