LinuxPPC-Dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
* gdbserver problem on powerpc.
@ 2005-04-26 13:05 Surendra Yadav
  2005-04-26 13:31 ` Jaap-Jan Boor
  2005-04-26 14:38 ` Wolfgang Denk
  0 siblings, 2 replies; 3+ messages in thread
From: Surendra Yadav @ 2005-04-26 13:05 UTC (permalink / raw)
  To: linuxppc-dev

Hi,

I downloaded gdb-6.0 and cross compiled gdbserver for powerpc platform.

When gdbserver I tried to run gdbserver it gives "No such file or
directory".
But I can see this file is present in the bin directory. Even I tried
precompiled binary from ELDK but that also does not work and gives the same
message. Can any one suggest what is the wrong?

I gave the command #gdbserver 192.168.10.243:2345 hello .

Alternatively I tried following command from the bin directory. hello
program is also in the bin the dir. But it won't work.

#./gdbserver 192.168.10.243:2345 ./hello

Regards,
Surendra

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

* Re: gdbserver problem on powerpc.
  2005-04-26 13:05 gdbserver problem on powerpc Surendra Yadav
@ 2005-04-26 13:31 ` Jaap-Jan Boor
  2005-04-26 14:38 ` Wolfgang Denk
  1 sibling, 0 replies; 3+ messages in thread
From: Jaap-Jan Boor @ 2005-04-26 13:31 UTC (permalink / raw)
  To: surendra.yadav; +Cc: linuxppc-dev

Hi surendra,

You might miss one or all libraries on your target? what is:

ldd gdbserver

saying when you try this on your target?

Jaap-Jan

On 26-apr-05, at 15:05, Surendra Yadav wrote:

> Hi,
>
> I downloaded gdb-6.0 and cross compiled gdbserver for powerpc platform.
>
> When gdbserver I tried to run gdbserver it gives "No such file or
> directory".
> But I can see this file is present in the bin directory. Even I tried
> precompiled binary from ELDK but that also does not work and gives the 
> same
> message. Can any one suggest what is the wrong?
>
> I gave the command #gdbserver 192.168.10.243:2345 hello .
>
> Alternatively I tried following command from the bin directory. hello
> program is also in the bin the dir. But it won't work.
>
> #./gdbserver 192.168.10.243:2345 ./hello
>
> Regards,
> Surendra
>
> _______________________________________________
> Linuxppc-dev mailing list
> Linuxppc-dev@ozlabs.org
> https://ozlabs.org/mailman/listinfo/linuxppc-dev

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

* Re: gdbserver problem on powerpc.
  2005-04-26 13:05 gdbserver problem on powerpc Surendra Yadav
  2005-04-26 13:31 ` Jaap-Jan Boor
@ 2005-04-26 14:38 ` Wolfgang Denk
  1 sibling, 0 replies; 3+ messages in thread
From: Wolfgang Denk @ 2005-04-26 14:38 UTC (permalink / raw)
  To: surendra.yadav; +Cc: linuxppc-dev

In message <BPEMKMADCCCPHPEDDKOOCEDLCEAA.surendra.yadav@softdel.com> you wrote:
> 
> I downloaded gdb-6.0 and cross compiled gdbserver for powerpc platform.
> 
> When gdbserver I tried to run gdbserver it gives "No such file or
> directory".

Did you link gdbserver statically, or are you using shared libraries?
Is any other application using the same  libraries  working  on  your
target?

> But I can see this file is present in the bin directory. Even I tried
> precompiled binary from ELDK but that also does not work and gives the same
> message. Can any one suggest what is the wrong?

The ELDK's gdbserver is dynamically linked:

-> ppc_8xx-ldd /opt/eldk/ppc_8xx/usr/bin/gdbserver
        libthread_db.so.1 => /opt/eldk-3.1/ppc_8xx/lib/libthread_db.so.1
	libc.so.6 => /opt/eldk-3.1/ppc_8xx/lib/libc.so.6
	ld.so.1 => /opt/eldk-3.1/ppc_8xx/lib/ld.so.1

Make sure to include the required libraries and /lib/ld.so.1 in  your
target filesystem.


Best regards,

Wolfgang Denk

-- 
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd@denx.de
CONSUMER NOTICE:  Because  of  the  "Uncertainty  Principle,"  It  Is
Impossible  for  the  Consumer  to  Find  Out  at  the Same Time Both
Precisely Where This Product Is and How Fast It Is Moving.

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

end of thread, other threads:[~2005-04-26 14:39 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-04-26 13:05 gdbserver problem on powerpc Surendra Yadav
2005-04-26 13:31 ` Jaap-Jan Boor
2005-04-26 14:38 ` Wolfgang Denk

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox