From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pj1-x102d.google.com (mail-pj1-x102d.google.com [IPv6:2607:f8b0:4864:20::102d]) by sourceware.org (Postfix) with ESMTPS id B95423858D32 for ; Thu, 26 Oct 2023 23:49:02 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org B95423858D32 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=linaro.org ARC-Filter: OpenARC Filter v1.0.0 sourceware.org B95423858D32 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2607:f8b0:4864:20::102d ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1698364144; cv=none; b=YQhYbxLFsa5iMk1FieH8BLVB79b0S5KAda5nWFWXrK30xEBc30gLgPUHnj5SaXO/JtsLQZikQLD3fCj5IsYes2UMKwvV+PMiMLq7fJXdncaXugz8QxCQzTBzMe4tPBY7Dru+aT21lctvqAjCAZPr00MkhRIVCU4WpBaKC8ViNYE= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1698364144; c=relaxed/simple; bh=WmJLG1JV7gO2WZbYabdfgv8a7BmVilbvQ5ak7KNl0KE=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=X46K++ggxLzJSR1MilNi9g+cH61IEIoXRrjzfPTWrwfTp+IucugbRADS/W3tiwnjiIzppDVklbW4dZfgsauJ7FTP/s8uJR+wBIp5w6+Af2oHs3qdX44C3pAwz+bZb4zzF4fFZBdfEkgym2W7+341jzQ0ZTeNMvWW9B4xi02+Jmk= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-pj1-x102d.google.com with SMTP id 98e67ed59e1d1-27e1eea2f0dso1166942a91.1 for ; Thu, 26 Oct 2023 16:49:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1698364142; x=1698968942; darn=sourceware.org; h=content-transfer-encoding:mime-version:message-id:date:in-reply-to :subject:cc:to:from:user-agent:references:from:to:cc:subject:date :message-id:reply-to; bh=PmixMeQETOxowMLHhuUtSswQiBLQiMXiN1UsFgMpN00=; b=J9TsIuZgZ601aIyCKA6vXdK4dWLJ0iADLHigI+R353kzz3neuV+2WUxElQUayP/LhS ViDYf4VNGxl+B1nieL8SQfERkr5UL2zM3NjC6vfupDsMWoXZZ7piZLk7ayMaKjbPvcLN S2TYhu9UoVQSpEwUf2yBBYY0iPD+hl+fbsL2D1d0V96NQ6AxpHCyM7p7/SGy/ySLOUZF 3WnOwnJceyiOacwZdrQM6CAmhT17SVtheChzkKjAHyNpryL+GQYwtMJYBv1vrqq0wKyG CeHQnoudfkBdf+wxOV24dzBoQ2Avk9fwRUIx4ptAVoGjJaRsz4Le+cOa2dzYaF6u0R5u pF4A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698364142; x=1698968942; h=content-transfer-encoding:mime-version:message-id:date:in-reply-to :subject:cc:to:from:user-agent:references:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=PmixMeQETOxowMLHhuUtSswQiBLQiMXiN1UsFgMpN00=; b=NoL2OOOk01xxui7j0+280OQHQTNFrJq152bc5uqe+cJvuDRnlnxzDj2KXyvequaALQ xw0DFuYL7Mj6Z4Y/0VqU1BtngxxkMgxkxmAw2X9eYlNDksj0S6Yc5BIynuqrySMvwgLd zAmYOikVNjsLElxfgdMserWAlxaZK2ocjzF27z72c2VlUj67Fa92ihQCtASjpQmVe6IO enweqU8fLVl6bIxYxo8w7GcyR8psl29xsVN7nYaJJCUF+KrE5Oyxh6b5GrCssmpI7zeo n4JUgU4Vnm7sBbfkWqtyGLPe6Dq0tAyBxv8G1WwRkm/H++5xEo4KJFMeVa0hrtRnSM9w CJGQ== X-Gm-Message-State: AOJu0Yxv5lubzsH+GYrfX8SPqClPimXG0YR3WijLvFbIVquMXoSOB/5L PgM+K7GcxBsKxzkIGYgnrQIzmH9lj1MMzUWyTCU= X-Google-Smtp-Source: AGHT+IGT+qSfBRq9pFDo7Wn0UVoTabvYfal+2rv17kUIRNEs37b7Ka5ReKO9dS53cBtCDJlIcPGM5w== X-Received: by 2002:a17:90a:b012:b0:27d:9b6:ec1e with SMTP id x18-20020a17090ab01200b0027d09b6ec1emr901735pjq.27.1698364141659; Thu, 26 Oct 2023 16:49:01 -0700 (PDT) Received: from localhost ([2804:14d:7e39:8470:bc3a:99e3:6ac:f545]) by smtp.gmail.com with ESMTPSA id ei12-20020a17090ae54c00b00279163e52bbsm112529pjb.17.2023.10.26.16.49.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Oct 2023 16:49:01 -0700 (PDT) References: <20231004183102.61669-1-thiago.bauermann@linaro.org> <831qe964lt.fsf@gnu.org> <87y1ggll4e.fsf@linaro.org> <83cyxq29wf.fsf@gnu.org> <838r7ph9xr.fsf@gnu.org> User-agent: mu4e 1.10.7; emacs 29.1 From: Thiago Jung Bauermann To: Eli Zaretskii Cc: gdb-patches@sourceware.org, tom@tromey.com Subject: Re: [PATCH v2] gdb/configure.ac: Add option --with-additional-debug-dirs In-reply-to: <838r7ph9xr.fsf@gnu.org> Date: Thu, 26 Oct 2023 20:48:58 -0300 Message-ID: <87sf5xrllh.fsf@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-5.2 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: Hello Eli, Eli Zaretskii writes: >> Date: Sat, 07 Oct 2023 10:01:52 +0300 >> From: Eli Zaretskii >> Cc: gdb-patches@sourceware.org, tom@tromey.com >> X-Spam-Status: No, score=3D0.6 required=3D5.0 tests=3DBAYES_00, DKIMWL_W= L_HIGH, >> DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, SPF_HELO_PASS, S= PF_PASS, >> TXREP autolearn=3Dham autolearn_force=3Dno version=3D3.4.6 >>=20 >> > From: Thiago Jung Bauermann >> > Cc: gdb-patches@sourceware.org, tom@tromey.com >> > Date: Thu, 05 Oct 2023 20:12:17 -0300 >> >=20 >> > As a workaround, I was able to get away with some escaping: >> >=20 >> > $ ~/src/binutils-gdb/configure \ >> > --disable-{binutils,ld,gold,gas,sim,gprof,gprofng} \ >> > --with-auto-load-dir=3D'foo\\\;bar\\\;baz' && make >> > =E2=8B=AE >> > checking for default auto-load directory... foo\\\;bar\\\;baz >> > checking for default auto-load safe-path... foo\\\;bar\\\;baz >> > =E2=8B=AE >> > $ grep AUTO_LOAD gdb/config.h >> > #define AUTO_LOAD_DIR "foo;bar;baz" >> > #define AUTO_LOAD_SAFE_PATH "foo;bar;baz" >>=20 >> Thanks, will use these in my next build, and see if it works for me as >> well. > > FTR: just tried this with the gdb-14.0.91 pretest, and it works just > fine. Thank you very much for helping me avoid this annoying problem > (it previously required me to build GDB twice). Excellent! I poked at it some more today and I noticed two things: 1. We provide the definition of AC_DEFINE_DIR ourselves in gdb/acinclude.m4, so what I said earlier about the fix having to be in Autoconf was wrong. Too bad, it's always a relief when the blame lies somewhere else. :-) 2. We can do the escape trick above automatically in gdb/configure.ac. So I just sent a patch to do that: https://inbox.sourceware.org/gdb-patches/20231026234013.937210-1-thiago.bau= ermann@linaro.org/ > I've updated the Bugzilla bug with this information. Thanks. I will also update the bugzilla with my findings. --=20 Thiago