Hello Josef,

In my snapgear tree, about the same as uClinux tree, there are two previous
gdbserver attempts. One is user/gdbserver and the other user/gdb.
Didn't get any of those working so therefore the birth of a third one.

Yes, the Makefile should be feed with values from the uClinux build env.
I use the concept of gluemakefiles (you all be pretty tired of me debating
about those soon :)
Therefore, create a directory user/gdb_gdbserver and put the Makefile therein. Extract gdb-6.6 in here and apply at least the makefile patch, probably also the
gdbserver patch as we are on same arch.
You also need to hook this directory into uClinux via editing config/config.in
and user/Makefile.




Wolf, Josef wrote:
Hello,

gdbserver should be configured with --host only (it is to be hosted on

target) gdb and gdbserver are actually tied to eachother, as well as toolchain and userland build on target. It therefore makes sense to
build them as a userland app.

Ah, that explains why it is not bundled with the arm-elf toolchain.

Attached is a makefile in order to get a gdb 6.6 tarball from GNU to
build
correctly on a ARM/XScale target, ixp465. Also the two patches are
needed.

Thanks for the quick help, Per!  I'm going to try it.

Do I need to replace uClinux's version of gdb/gdbserver or should I
build
it completely outside the uClinux directory?  Shouldn't the uClinux
makefiles pass CC/CFLAGS/LDFLAGS/... somehow to your makefile?

BTW: Vanilla gdb comes bundeled with dbserver.  Why (in the uClinux
     distribution) is there an additional copy of the gdbserver directly
     un user/gdbserver?  This copy seems to be modified from the one
that
     lives in user/gdb/gdbserver.
_______________________________________________
uClinux-dev mailing list
[email protected]
http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
This message was resent by [email protected]
To unsubscribe see:
http://mailman.uclinux.org/mailman/options/uclinux-dev


_______________________________________________
uClinux-dev mailing list
[email protected]
http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
This message was resent by [email protected]
To unsubscribe see:
http://mailman.uclinux.org/mailman/options/uclinux-dev

Reply via email to