public inbox for gdb@sourceware.org
 help / color / mirror / Atom feed
* Compilation of GDB6.3 [NEDD HELP]
@ 2005-11-01  3:11 Peter Choi
  2005-11-03 21:26 ` Daniel Jacobowitz
  0 siblings, 1 reply; 7+ messages in thread
From: Peter Choi @ 2005-11-01  3:11 UTC (permalink / raw)
  To: gdb

Hi,

  I compile GDB6.3 from source code. But using this
resultant gdb, 

1. It succeed to load the elf file, but it fail to
execute the elf file. It reported "Don't know thow to
run. Try "help target" ".

2.  Beside, when it loadde my test file (which is a
multihtread program), it does not show up the expected
message "... Using host libthread_db library
"/lib/tls/libthread_db.so.1" " (which I got from older
pre-compiled gdb debugger).

  Please advise what option can  I get wrong in my
compilation of GDB6.3???? Did I need to specify any
special option during compilation????

  Thank you for your attention.

Regards.
Peter Choi



	
		
__________________________________ 
Yahoo! Mail - PC Magazine Editors' Choice 2005 
http://mail.yahoo.com

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Compilation of GDB6.3 [NEDD HELP]
  2005-11-01  3:11 Compilation of GDB6.3 [NEDD HELP] Peter Choi
@ 2005-11-03 21:26 ` Daniel Jacobowitz
  2005-11-04  1:35   ` Peter Choi
  0 siblings, 1 reply; 7+ messages in thread
From: Daniel Jacobowitz @ 2005-11-03 21:26 UTC (permalink / raw)
  To: Peter Choi; +Cc: gdb

On Mon, Oct 31, 2005 at 07:11:24PM -0800, Peter Choi wrote:
> Hi,
> 
>   I compile GDB6.3 from source code. But using this

On what target?  Using what configure command?

There's not enough information to help you, sorry.

-- 
Daniel Jacobowitz
CodeSourcery, LLC

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Compilation of GDB6.3 [NEDD HELP]
  2005-11-03 21:26 ` Daniel Jacobowitz
@ 2005-11-04  1:35   ` Peter Choi
  2005-11-04  3:19     ` Daniel Jacobowitz
  2005-11-04  9:06     ` Mark Kettenis
  0 siblings, 2 replies; 7+ messages in thread
From: Peter Choi @ 2005-11-04  1:35 UTC (permalink / raw)
  To: Daniel Jacobowitz; +Cc: gdb

Hi,

  I compiled GDB6.3 on i386-linux as follow:
  From the source code directory (named gdb-6.3),  
  cd ..
  mkdir build-gdb
  cd build-gdb 
  ../gdb-6.3/configure --target=i386-linux
--prefix=/home/pchoi/work/tools
  make
  make install

  Then I compile GDBserver on i386-linux as follow:
  From the source code directory (named gdb-6.3),  
  cd ..
  mkdir build-gdbserver
  cd build-gdbserver 
  ../gdb-6.3/gdb/gdbserver/configure
--target=i386-linux --prefix=/home/pchoi/work/tools
  make
  make install
  

  Please advise whether it is correct to compile with
multithread remote debugging support???

  Thank you for your attention.

Regards.
Peter Choi


--- Daniel Jacobowitz <drow@false.org> wrote:

> On Mon, Oct 31, 2005 at 07:11:24PM -0800, Peter Choi
> wrote:
> > Hi,
> > 
> >   I compile GDB6.3 from source code. But using
> this
> 
> On what target?  Using what configure command?
> 
> There's not enough information to help you, sorry.
> 
> -- 
> Daniel Jacobowitz
> CodeSourcery, LLC
> 



	
		
__________________________________ 
Yahoo! Mail - PC Magazine Editors' Choice 2005 
http://mail.yahoo.com

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Compilation of GDB6.3 [NEDD HELP]
  2005-11-04  1:35   ` Peter Choi
@ 2005-11-04  3:19     ` Daniel Jacobowitz
  2005-11-04  3:40       ` Peter Choi
  2005-11-04  9:06     ` Mark Kettenis
  1 sibling, 1 reply; 7+ messages in thread
From: Daniel Jacobowitz @ 2005-11-04  3:19 UTC (permalink / raw)
  To: Peter Choi; +Cc: gdb

On Thu, Nov 03, 2005 at 05:35:31PM -0800, Peter Choi wrote:
> Hi,
> 
>   I compiled GDB6.3 on i386-linux as follow:
>   From the source code directory (named gdb-6.3),  
>   cd ..
>   mkdir build-gdb
>   cd build-gdb 
>   ../gdb-6.3/configure --target=i386-linux
> --prefix=/home/pchoi/work/tools
>   make
>   make install
> 
>   Then I compile GDBserver on i386-linux as follow:
>   From the source code directory (named gdb-6.3),  
>   cd ..
>   mkdir build-gdbserver
>   cd build-gdbserver 
>   ../gdb-6.3/gdb/gdbserver/configure
> --target=i386-linux --prefix=/home/pchoi/work/tools
>   make
>   make install
>   
> 
>   Please advise whether it is correct to compile with
> multithread remote debugging support???

Did gdbserver get linked to libthread_db?  Check the build log.

-- 
Daniel Jacobowitz
CodeSourcery, LLC

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Compilation of GDB6.3 [NEDD HELP]
  2005-11-04  3:19     ` Daniel Jacobowitz
@ 2005-11-04  3:40       ` Peter Choi
  2005-11-04  3:51         ` Daniel Jacobowitz
  0 siblings, 1 reply; 7+ messages in thread
From: Peter Choi @ 2005-11-04  3:40 UTC (permalink / raw)
  To: Daniel Jacobowitz; +Cc: gdb

Hi,

  I can't locate any build.log log file, but when I
check my "config.log", I found there was a error
message saying :

configure:1510: checking for libthread_db
configure:1531: gcc -o conftest -g -O2   conftest.c 
-lthread_db 1>&5
configure:1596: gcc -o conftest -g -O2   -rdynamic
conftest.c  -lthread_db 1>&5
/usr/lib/gcc-lib/i386-redhat-linux/3.3.2/../../../libthread_db.so:
undefined reference to `ps_pdwrite'
/usr/lib/gcc-lib/i386-redhat-linux/3.3.2/../../../libthread_db.so:
undefined reference to `ps_pglobal_lookup'
/usr/lib/gcc-lib/i386-redhat-linux/3.3.2/../../../libthread_db.so:
undefined reference to `ps_lsetfpregs'
/usr/lib/gcc-lib/i386-redhat-linux/3.3.2/../../../libthread_db.so:
undefined reference to `ps_getpid'
/usr/lib/gcc-lib/i386-redhat-linux/3.3.2/../../../libthread_db.so:
undefined reference to `ps_lsetregs'
/usr/lib/gcc-lib/i386-redhat-linux/3.3.2/../../../libthread_db.so:
undefined reference to `ps_pdread'
/usr/lib/gcc-lib/i386-redhat-linux/3.3.2/../../../libthread_db.so:
undefined reference to `ps_lgetfpregs'
/usr/lib/gcc-lib/i386-redhat-linux/3.3.2/../../../libthread_db.so:
undefined reference to `ps_lgetregs'
collect2: ld returned 1 exit status
configure: failed program was:
#line 1589 "configure"
#include "confdefs.h"

int main() {

; return 0; }


  I wonder what cause this problem with my
"libthread_db" library???? Where should those variable
"ps_XXXX" reside???

  Please advise.

Regards.
Peter Choi


--- Daniel Jacobowitz <drow@false.org> wrote:

> On Thu, Nov 03, 2005 at 05:35:31PM -0800, Peter Choi
> wrote:
> > Hi,
> > 
> >   I compiled GDB6.3 on i386-linux as follow:
> >   From the source code directory (named gdb-6.3), 
> 
> >   cd ..
> >   mkdir build-gdb
> >   cd build-gdb 
> >   ../gdb-6.3/configure --target=i386-linux
> > --prefix=/home/pchoi/work/tools
> >   make
> >   make install
> > 
> >   Then I compile GDBserver on i386-linux as
> follow:
> >   From the source code directory (named gdb-6.3), 
> 
> >   cd ..
> >   mkdir build-gdbserver
> >   cd build-gdbserver 
> >   ../gdb-6.3/gdb/gdbserver/configure
> > --target=i386-linux
> --prefix=/home/pchoi/work/tools
> >   make
> >   make install
> >   
> > 
> >   Please advise whether it is correct to compile
> with
> > multithread remote debugging support???
> 
> Did gdbserver get linked to libthread_db?  Check the
> build log.
> 
> -- 
> Daniel Jacobowitz
> CodeSourcery, LLC
> 



	
		
__________________________________ 
Yahoo! Mail - PC Magazine Editors' Choice 2005 
http://mail.yahoo.com

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Compilation of GDB6.3 [NEDD HELP]
  2005-11-04  3:40       ` Peter Choi
@ 2005-11-04  3:51         ` Daniel Jacobowitz
  0 siblings, 0 replies; 7+ messages in thread
From: Daniel Jacobowitz @ 2005-11-04  3:51 UTC (permalink / raw)
  To: Peter Choi; +Cc: gdb

On Thu, Nov 03, 2005 at 07:40:35PM -0800, Peter Choi wrote:
> Hi,
> 
>   I can't locate any build.log log file, but when I
> check my "config.log", I found there was a error
> message saying :
> 
> configure:1510: checking for libthread_db
> configure:1531: gcc -o conftest -g -O2   conftest.c 
> -lthread_db 1>&5
> configure:1596: gcc -o conftest -g -O2   -rdynamic
> conftest.c  -lthread_db 1>&5
> /usr/lib/gcc-lib/i386-redhat-linux/3.3.2/../../../libthread_db.so:
> undefined reference to `ps_pdwrite'
> /usr/lib/gcc-lib/i386-redhat-linux/3.3.2/../../../libthread_db.so:
> undefined reference to `ps_pglobal_lookup'
> /usr/lib/gcc-lib/i386-redhat-linux/3.3.2/../../../libthread_db.so:
> undefined reference to `ps_lsetfpregs'
> /usr/lib/gcc-lib/i386-redhat-linux/3.3.2/../../../libthread_db.so:
> undefined reference to `ps_getpid'
> /usr/lib/gcc-lib/i386-redhat-linux/3.3.2/../../../libthread_db.so:
> undefined reference to `ps_lsetregs'
> /usr/lib/gcc-lib/i386-redhat-linux/3.3.2/../../../libthread_db.so:
> undefined reference to `ps_pdread'
> /usr/lib/gcc-lib/i386-redhat-linux/3.3.2/../../../libthread_db.so:
> undefined reference to `ps_lgetfpregs'
> /usr/lib/gcc-lib/i386-redhat-linux/3.3.2/../../../libthread_db.so:
> undefined reference to `ps_lgetregs'
> collect2: ld returned 1 exit status
> configure: failed program was:
> #line 1589 "configure"
> #include "confdefs.h"
> 
> int main() {
> 
> ; return 0; }

Find out where that test came from.  Your configure script is
hopelessly broken; it should be compiling a test file including the
definitions.

-- 
Daniel Jacobowitz
CodeSourcery, LLC

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Compilation of GDB6.3 [NEDD HELP]
  2005-11-04  1:35   ` Peter Choi
  2005-11-04  3:19     ` Daniel Jacobowitz
@ 2005-11-04  9:06     ` Mark Kettenis
  1 sibling, 0 replies; 7+ messages in thread
From: Mark Kettenis @ 2005-11-04  9:06 UTC (permalink / raw)
  To: peter_tkchoi; +Cc: drow, gdb

> Date: Thu, 3 Nov 2005 17:35:31 -0800 (PST)
> From: Peter Choi <peter_tkchoi@yahoo.com>
> 
> Hi,
> 
>   I compiled GDB6.3 on i386-linux as follow:
>   From the source code directory (named gdb-6.3),  
>   cd ..
>   mkdir build-gdb
>   cd build-gdb 
>   ../gdb-6.3/configure --target=i386-linux
> --prefix=/home/pchoi/work/tools
>   make
>   make install

Why are you specifying --target=i386-linux if you're trying to build a
native gdb?

Mark

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2005-11-04  9:06 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-11-01  3:11 Compilation of GDB6.3 [NEDD HELP] Peter Choi
2005-11-03 21:26 ` Daniel Jacobowitz
2005-11-04  1:35   ` Peter Choi
2005-11-04  3:19     ` Daniel Jacobowitz
2005-11-04  3:40       ` Peter Choi
2005-11-04  3:51         ` Daniel Jacobowitz
2005-11-04  9:06     ` Mark Kettenis

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).