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 07:36 AM.

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