* gdbserver + libiberty?
@ 2008-01-15 17:26 Doug Evans
2008-01-15 18:08 ` Jim Blandy
0 siblings, 1 reply; 9+ messages in thread
From: Doug Evans @ 2008-01-15 17:26 UTC (permalink / raw)
To: gdb
Hi. Is there any reason to not link gdbserver with libiberty?
I'm working on a patch where that would be useful.
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: gdbserver + libiberty?
2008-01-15 17:26 gdbserver + libiberty? Doug Evans
@ 2008-01-15 18:08 ` Jim Blandy
2008-01-15 18:42 ` Doug Evans
0 siblings, 1 reply; 9+ messages in thread
From: Jim Blandy @ 2008-01-15 18:08 UTC (permalink / raw)
To: Doug Evans; +Cc: gdb
dje at google.com (Doug Evans) writes:
> Hi. Is there any reason to not link gdbserver with libiberty?
> I'm working on a patch where that would be useful.
gdbserver would need to be linked with a libiberty compiled for the
target, obviously.
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: gdbserver + libiberty?
2008-01-15 18:08 ` Jim Blandy
@ 2008-01-15 18:42 ` Doug Evans
2008-01-15 19:45 ` Paul Koning
2008-01-15 20:24 ` Daniel Jacobowitz
0 siblings, 2 replies; 9+ messages in thread
From: Doug Evans @ 2008-01-15 18:42 UTC (permalink / raw)
To: Jim Blandy; +Cc: gdb
On Jan 15, 2008 10:07 AM, Jim Blandy <jimb@codesourcery.com> wrote:
>
> dje at google.com (Doug Evans) writes:
> > Hi. Is there any reason to not link gdbserver with libiberty?
> > I'm working on a patch where that would be useful.
>
> gdbserver would need to be linked with a libiberty compiled for the
> target, obviously.
This part I'm not clear on. I found this in gdb/configure.ac:
# We only build gdbserver automatically in a native configuration.
if test "$gdb_native" = "yes"; then
AC_MSG_CHECKING(whether gdbserver is supported on this host)
if test "x$build_gdbserver" = xyes; then
AC_MSG_RESULT(yes)
AC_CONFIG_SUBDIRS(gdbserver)
else
AC_MSG_RESULT(no)
fi
fi
I couldn't find any docs on building gdbserver for cross targets (i.e
--host != --target), got any pointers? It's only useful for targets
that otherwise can be build natively (AIUIp. Would gdbserver ever be
built with CC_FOR_TARGET whereas gdb got built with CC? I can't find
any code to handle this in gdb or the top level configury. And if not
would gdbserver ever need a different libiberty than the one gdb is
linked with?
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: gdbserver + libiberty?
2008-01-15 18:42 ` Doug Evans
@ 2008-01-15 19:45 ` Paul Koning
2008-01-15 20:24 ` Daniel Jacobowitz
1 sibling, 0 replies; 9+ messages in thread
From: Paul Koning @ 2008-01-15 19:45 UTC (permalink / raw)
To: dje; +Cc: jimb, gdb
>>>>> "Doug" == Doug Evans <dje@google.com> writes:
Doug> # We only build gdbserver automatically in a native
Doug> configuration. ...
Doug> I couldn't find any docs on building gdbserver for cross
Doug> targets (i.e --host != --target), got any pointers?
Even if the scripts don't currently do that (or not by default), it
would be good not to add additional reasons for it to be hard. I've
certainly done cross-builds of gdbserver, and they work fine.
paul
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: gdbserver + libiberty?
2008-01-15 18:42 ` Doug Evans
2008-01-15 19:45 ` Paul Koning
@ 2008-01-15 20:24 ` Daniel Jacobowitz
2008-01-16 21:42 ` Jim Blandy
1 sibling, 1 reply; 9+ messages in thread
From: Daniel Jacobowitz @ 2008-01-15 20:24 UTC (permalink / raw)
To: Doug Evans; +Cc: Jim Blandy, gdb
On Tue, Jan 15, 2008 at 10:41:37AM -0800, Doug Evans wrote:
> I couldn't find any docs on building gdbserver for cross targets (i.e
> --host != --target), got any pointers? It's only useful for targets
> that otherwise can be build natively (AIUIp. Would gdbserver ever be
> built with CC_FOR_TARGET whereas gdb got built with CC? I can't find
> any code to handle this in gdb or the top level configury. And if not
> would gdbserver ever need a different libiberty than the one gdb is
> linked with?
You can build gdbserver by running src/gdb/gdbserver/configure and make;
the top level scripts are not involved at all, so you don't get a
libiberty. We need to not break that. If you need libiberty for a
good reason, then we can talk about how to build it.
--
Daniel Jacobowitz
CodeSourcery
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: gdbserver + libiberty?
2008-01-15 20:24 ` Daniel Jacobowitz
@ 2008-01-16 21:42 ` Jim Blandy
2008-01-16 22:15 ` Daniel Jacobowitz
0 siblings, 1 reply; 9+ messages in thread
From: Jim Blandy @ 2008-01-16 21:42 UTC (permalink / raw)
To: Doug Evans; +Cc: gdb
Daniel Jacobowitz <drow at false.org> writes:
> On Tue, Jan 15, 2008 at 10:41:37AM -0800, Doug Evans wrote:
>> I couldn't find any docs on building gdbserver for cross targets (i.e
>> --host != --target), got any pointers? It's only useful for targets
>> that otherwise can be build natively (AIUIp. Would gdbserver ever be
>> built with CC_FOR_TARGET whereas gdb got built with CC? I can't find
>> any code to handle this in gdb or the top level configury. And if not
>> would gdbserver ever need a different libiberty than the one gdb is
>> linked with?
>
> You can build gdbserver by running src/gdb/gdbserver/configure and make;
> the top level scripts are not involved at all, so you don't get a
> libiberty. We need to not break that.
This is arcane magic; could we document it somewhere? gdb.texinfo's
Appendix B describes "Installing GDB". gdb/README also documents
configuration options, and has a section on gdbserver.
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: gdbserver + libiberty?
2008-01-16 21:42 ` Jim Blandy
@ 2008-01-16 22:15 ` Daniel Jacobowitz
2008-01-16 22:56 ` Jim Blandy
0 siblings, 1 reply; 9+ messages in thread
From: Daniel Jacobowitz @ 2008-01-16 22:15 UTC (permalink / raw)
To: Jim Blandy; +Cc: Doug Evans, gdb
On Wed, Jan 16, 2008 at 01:41:43PM -0800, Jim Blandy wrote:
> This is arcane magic; could we document it somewhere? gdb.texinfo's
> Appendix B describes "Installing GDB". gdb/README also documents
> configuration options, and has a section on gdbserver.
It's in gdbserver/README currently.
--
Daniel Jacobowitz
CodeSourcery
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: gdbserver + libiberty?
2008-01-16 22:15 ` Daniel Jacobowitz
@ 2008-01-16 22:56 ` Jim Blandy
2008-01-17 14:37 ` Daniel Jacobowitz
0 siblings, 1 reply; 9+ messages in thread
From: Jim Blandy @ 2008-01-16 22:56 UTC (permalink / raw)
To: Doug Evans; +Cc: gdb
Daniel Jacobowitz <drow at false.org> writes:
> On Wed, Jan 16, 2008 at 01:41:43PM -0800, Jim Blandy wrote:
>> This is arcane magic; could we document it somewhere? gdb.texinfo's
>> Appendix B describes "Installing GDB". gdb/README also documents
>> configuration options, and has a section on gdbserver.
>
> It's in gdbserver/README currently.
That says:
... building gdbserver automatically as part of building a whole
tree of tools does not currently work if cross-compilation is
involved (we don't get the right CC in the Makefile, to start
with)).
If this were made to work right, would that make it easier to use a
target libiberty?
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: gdbserver + libiberty?
2008-01-16 22:56 ` Jim Blandy
@ 2008-01-17 14:37 ` Daniel Jacobowitz
0 siblings, 0 replies; 9+ messages in thread
From: Daniel Jacobowitz @ 2008-01-17 14:37 UTC (permalink / raw)
To: Jim Blandy; +Cc: Doug Evans, gdb
On Wed, Jan 16, 2008 at 02:56:24PM -0800, Jim Blandy wrote:
>
> Daniel Jacobowitz <drow at false.org> writes:
> > On Wed, Jan 16, 2008 at 01:41:43PM -0800, Jim Blandy wrote:
> >> This is arcane magic; could we document it somewhere? gdb.texinfo's
> >> Appendix B describes "Installing GDB". gdb/README also documents
> >> configuration options, and has a section on gdbserver.
> >
> > It's in gdbserver/README currently.
>
> That says:
>
> ... building gdbserver automatically as part of building a whole
> tree of tools does not currently work if cross-compilation is
> involved (we don't get the right CC in the Makefile, to start
> with)).
>
> If this were made to work right, would that make it easier to use a
> target libiberty?
I think we could do it by moving gdbserver to the top level, but I
don't much want to do that while src still uses CVS.
--
Daniel Jacobowitz
CodeSourcery
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2008-01-17 14:37 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-01-15 17:26 gdbserver + libiberty? Doug Evans
2008-01-15 18:08 ` Jim Blandy
2008-01-15 18:42 ` Doug Evans
2008-01-15 19:45 ` Paul Koning
2008-01-15 20:24 ` Daniel Jacobowitz
2008-01-16 21:42 ` Jim Blandy
2008-01-16 22:15 ` Daniel Jacobowitz
2008-01-16 22:56 ` Jim Blandy
2008-01-17 14:37 ` Daniel Jacobowitz
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox