This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH] gdb: sim: automatically pass down sysroot
- From: Tristan Gingold <gingold at adacore dot com>
- To: Mike Frysinger <vapier at gentoo dot org>
- Cc: Joel Brobecker <brobecker at adacore dot com>, gdb-patches at sourceware dot org, toolchain-devel at blackfin dot uclinux dot org
- Date: Thu, 9 Jun 2011 09:29:08 +0200
- Subject: Re: [PATCH] gdb: sim: automatically pass down sysroot
- References: <1306440200-25087-1-git-send-email-vapier@gentoo.org> <20110608164939.GA14178@adacore.com> <201106090107.44953.vapier@gentoo.org>
On Jun 9, 2011, at 7:07 AM, Mike Frysinger wrote:
> here's the fix for erc32. ok to commit ?
Is it correct ? IIRC sizeof ("xxx") == strlen ("xxx") + 1.
> (style is god awful, but seems the whole erc32 code base is buggered and i'm
> not about to try and fix that)
> -mike
>
> --- sim/erc32/interf.c 1 Jun 2011 17:35:02 -0000 1.10
> +++ sim/erc32/interf.c 9 Jun 2011 05:03:32 -0000
> @@ -234,6 +234,9 @@ sim_open (kind, callback, abfd, argv)
> if ((stat + 1) < argc) {
> freq = strtol(argv[++stat], (char **)NULL, 0);
> }
> + } else
> + if (strncmp(argv[stat], "--sysroot=", sizeof("--sysroot=")) == 0) {
> + /* Ignore until we start to support this. */
> } else {
> (*sim_callback->printf_filtered) (sim_callback,
> "unknown option %s\n",