This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
RE: [PATCH] Change gdbserver to use existing gnulib and libiberty
- From: Tamar Christina <Tamar dot Christina at arm dot com>
- To: Simon Marchi <simark at simark dot ca>, Tom Tromey <tom at tromey dot com>, "gdb-patches at sourceware dot org" <gdb-patches at sourceware dot org>
- Cc: nd <nd at arm dot com>
- Date: Wed, 26 Feb 2020 21:50:07 +0000
- Subject: RE: [PATCH] Change gdbserver to use existing gnulib and libiberty
- Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=arm.com; dmarc=pass action=none header.from=arm.com; dkim=pass header.d=arm.com; arc=none
- Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=E7vry2R0Kf3m9BuCcDLy2zicR8sIGAz5+EfNJ5FnuDo=; b=WNunRz1wgJg87TcANGMCrHEVOArj5cswCh/pT5/vOr32XYP43QZT52SYsrpkpw5fZKA7LPhMxgF/tORSEyV91Npk0F+W8myaFG/CiUR/YvvlqBWW0/r6CJ8Vaq1evve8NAEILWz/ejgO4bcqOr3AX0TiXMWdMcazf7EM6s9BuL9a1Qh/0XSfRkahAyuMYXQX1BslxyigPcjAtBGduH4iobEKH1zwT61k+i6Wb8r1hP5RMlKKHT9ZwjQM2Z2KJyLJkRGvhiedx+rhfIPCRl5xJPB9gNuqjGuybSpCHdCn6Vwv9XDFtcAfM46DVE+e0KQU/T4IXgFxk3XIZ/8dyR80bg==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=KzOYVyf6oe/rWfVtpVputy0HVWdLfbosbTGDj5CUVPHI4xYCyRL16IbclbE7bYlZ36cq+xQsaUexOhp+56G/SaXITqaTRwIltkdzg4qq1VKJxFttLKryhDg6J/sleKq28FWwV6Au2MpfcmbyCOE0NSJWH5QvFOndgOb2PxExOGgtBNokGlu5Y6Hvv5G+RVj8O7TH1lugdk1FgBzX1aituzC0BirM0puNnwWQGP4MVNoez9v3oTeZXXKG12MOTDijWNQHh6ptlptHnz7fPv2YeYT0FDm3Yi2FyLz/QU/j6ndqNvPtOgLS/0XB5MUqQKo6UzBFWXlNBRxmtBXNSWEJVQ==
- Original-authentication-results: spf=none (sender IP is ) smtp.mailfrom=Tamar dot Christina at arm dot com;
- References: <20200207225313.31092-1-tom@tromey.com> <PR2PR08MB4747C57E200D279F1E1E1F99FFEC0@PR2PR08MB4747.eurprd08.prod.outlook.com> <5f45f667-f425-d4e3-d0fd-3ed18c1dc590@simark.ca>
Hi Simon,
Thanks, I'm giving this a try now.
Cheers,
Tamar
> -----Original Message-----
> From: Simon Marchi <simark@simark.ca>
> Sent: Monday, February 24, 2020 7:46 PM
> To: Tamar Christina <Tamar.Christina@arm.com>; Tom Tromey
> <tom@tromey.com>; gdb-patches@sourceware.org
> Cc: nd <nd@arm.com>
> Subject: Re: [PATCH] Change gdbserver to use existing gnulib and libiberty
>
> On 2020-02-24 9:16 a.m., Tamar Christina wrote:
> > Hi Tom,
> >
> > We're having trouble building cross toolchains after this change.
> >
> > Before this we were able to build gdb running on HOST but build gdbserver
> running on TARGET.
> >
> > After this change we can no longer do this since you can't link objects from
> different architectures.
> >
> > Is this not a supported workflow anymore? Any suggestions how to do this
> after these changes?
> >
> > Thanks,
> > Tamar
>
> Hi Tamar,
>
> When you were building gdb running on HOST and gdbserver running on
> TARGET, I presume you were running two configure scripts, like this?
>
> $ .../binutils-gdb/configure --host=x86-foo --target=arm-bar
>
> and in another directory
>
> $ .../binutils-gdb/gdb/gdbserver/configure --host=arm-bar
>
> Now, gdbserver being a proper top-level project (just like gdb and binutils
> are), you can do:
>
> $ .../binutils-gdb/configure --host=x86-foo --target=arm-bar
>
> ... to configure GDB, and:
>
> $ .../binutils-gdb/configure --target=arm-bar
>
> ... to configure GDBserver.
>
> In fact, these commands set up build directories to build the entire binutils-
> gdb repository. You could either pass a bunch of --disable-* options to
> configure in order to disable the projects you don't want to build, or build
> using "make all-gdb" / "make all-gdbserver" to only build gdb or gdbserver
> respectively.
>
> Hope that helps.
>
> Simon