From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp-out2.suse.de (smtp-out2.suse.de [IPv6:2a07:de40:b251:101:10:150:64:2]) by sourceware.org (Postfix) with ESMTPS id 0A1A0384CB94 for ; Mon, 27 May 2024 14:18:12 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 0A1A0384CB94 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=suse.de Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=suse.de ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 0A1A0384CB94 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2a07:de40:b251:101:10:150:64:2 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1716819498; cv=none; b=WahJUJmHDopleWEL7a+9/dhDPtMp3aTnBCl8zPU0tiGIDzReYqN+pA1hop3j4UadAzMqUIvFrups2cr5qY8ojMBmY8VyL1g8BD+Rs55P8xrWFwmV2uVf7t55ykMBL0h2+KflAmfcV1muevzwZ8xlMA/IvX3aIZYrh+TT7//YbBc= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1716819498; c=relaxed/simple; bh=TcYkC2+3OvUVf4Kl0vFn7q3Xo2HgQDpqnENivCgeZX8=; h=DKIM-Signature:DKIM-Signature:DKIM-Signature:DKIM-Signature:From: To:Subject:Date:Message-Id:MIME-Version; b=Kn8yFKQrdI59mg/Uj/00zm4wdjxz0I8WjLo3gSRMyHTwN16vSrLZXNJTf/OoWunSOrRnRiUDxRIMifrqo5JKDIo5YM/tATNCDEcRITHMSSfJwKNqHJYpwSgqKH+JOnL+pkuY63uHJz3qNBI0sin02GS61a71bSAcCb50W3Y/+Sk= ARC-Authentication-Results: i=1; server2.sourceware.org Received: from imap1.dmz-prg2.suse.org (unknown [10.150.64.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id C04E31FDC2 for ; Mon, 27 May 2024 14:18:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1716819490; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=OXvadULaT7bXK/U7HZPi04Q2NEAsKJQPuqsRyTrRiwQ=; b=v3re3+EhN9v/EMF/fwv4r6eD+mqD5vSynukM2Gmf2GoK47GpbkKzOiFSzBCHc4FKTd1u4O EMa8uko0YpDXMgHfhrpwz3BUfTJIMs/e4o5PrqgtoIY7qPKgdjkkBaxCSxwaTGAhlEWc6z y2vTjn91ABckke9ykxtG9FkCFENRHo8= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1716819490; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=OXvadULaT7bXK/U7HZPi04Q2NEAsKJQPuqsRyTrRiwQ=; b=lR1upPvZ6YjjHGBjiViml3dCd/KlHI0vqTpGwDaEav0ZR+rnBj9Y74AyGlF05L2TW6OGfO m5ctFNSp+iNoPACQ== Authentication-Results: smtp-out2.suse.de; none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1716819490; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=OXvadULaT7bXK/U7HZPi04Q2NEAsKJQPuqsRyTrRiwQ=; b=v3re3+EhN9v/EMF/fwv4r6eD+mqD5vSynukM2Gmf2GoK47GpbkKzOiFSzBCHc4FKTd1u4O EMa8uko0YpDXMgHfhrpwz3BUfTJIMs/e4o5PrqgtoIY7qPKgdjkkBaxCSxwaTGAhlEWc6z y2vTjn91ABckke9ykxtG9FkCFENRHo8= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1716819490; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=OXvadULaT7bXK/U7HZPi04Q2NEAsKJQPuqsRyTrRiwQ=; b=lR1upPvZ6YjjHGBjiViml3dCd/KlHI0vqTpGwDaEav0ZR+rnBj9Y74AyGlF05L2TW6OGfO m5ctFNSp+iNoPACQ== Received: from imap1.dmz-prg2.suse.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by imap1.dmz-prg2.suse.org (Postfix) with ESMTPS id A8D8D13A56 for ; Mon, 27 May 2024 14:18:10 +0000 (UTC) Received: from dovecot-director2.suse.de ([2a07:de40:b281:106:10:150:64:167]) by imap1.dmz-prg2.suse.org with ESMTPSA id JM3lJyKWVGbITwAAD6G6ig (envelope-from ) for ; Mon, 27 May 2024 14:18:10 +0000 From: Tom de Vries To: gdb-patches@sourceware.org Subject: [PATCH 1/3] [gdb/testsuite] Mention DEBUGINFOD_VERBOSE in gdb.debuginfod test-cases Date: Mon, 27 May 2024 16:18:06 +0200 Message-Id: <20240527141808.31563-1-tdevries@suse.de> X-Mailer: git-send-email 2.35.3 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Level: X-Spamd-Result: default: False [-2.80 / 50.00]; BAYES_HAM(-3.00)[100.00%]; MID_CONTAINS_FROM(1.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; R_MISSING_CHARSET(0.50)[]; NEURAL_HAM_SHORT(-0.20)[-1.000]; MIME_GOOD(-0.10)[text/plain]; TO_DN_NONE(0.00)[]; FUZZY_BLOCKED(0.00)[rspamd.com]; DKIM_SIGNED(0.00)[suse.de:s=susede2_rsa,suse.de:s=susede2_ed25519]; ARC_NA(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; TO_MATCH_ENVRCPT_ALL(0.00)[]; RCVD_COUNT_TWO(0.00)[2]; FROM_HAS_DN(0.00)[]; RCVD_TLS_ALL(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[gdb-patches@sourceware.org]; FROM_EQ_ENVFROM(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; MIME_TRACE(0.00)[0:+]; DBL_BLOCKED_OPENRESOLVER(0.00)[imap1.dmz-prg2.suse.org:helo] X-Spam-Score: -2.80 X-Spam-Status: No, score=-10.1 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,GIT_PATCH_0,KAM_BADIPHTTP,KAM_SHORT,NUMERIC_HTTP_ADDR,SPF_HELO_NONE,SPF_PASS,TXREP,T_SCC_BODY_TEXT_LINE,WEIRD_PORT 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: In proc start_debuginfod we start debuginfod with a fair amount of verbosity: ... spawn debuginfod -vvvv -d $db -p $port -F $debugdir ... which gives a lot of information on startup, but none or not much after that. There's another way to increase verbosity of debuginfod: through the environment variable DEBUGINFOD_VERBOSE, which gives us the following additional information (edited for readability): ... (gdb) file fetch_src_and_symbols^M Reading symbols from fetch_src_and_symbols...^M +debuginfod_find_debuginfo $hex^M +server urls "http://127.0.0.1:8000"^M +checking build-id^M +checking cache dir $client_cache^M +using timeout 10^M +init server 0 http://127.0.0.1:8000^M +url 0 http://127.0.0.1:8000/buildid/$hex/debuginfo^M +query 1 urls in parallel^M Downloading separate debug info for $fetch_src_and_symbols...^M +server response No error^M +got file from server^M +found $client_cache/$hex/debuginfo (fd=18)^M Reading symbols from $client_cache/$hex/debuginfo...^M (gdb) ... IMO this is too verbose to enable by default, but it's good to at least mention the option explicitly in the test-cases. Tested by enabling it in the 3 gdb.debuginfod test-cases. This generates 2 FAILs, but I don't think it's worthwhile to address these. Tested on x86_64-linux. --- gdb/testsuite/gdb.debuginfod/build-id-no-debug-warning.exp | 3 +++ gdb/testsuite/gdb.debuginfod/crc_mismatch.exp | 3 +++ gdb/testsuite/gdb.debuginfod/fetch_src_and_symbols.exp | 3 +++ 3 files changed, 9 insertions(+) diff --git a/gdb/testsuite/gdb.debuginfod/build-id-no-debug-warning.exp b/gdb/testsuite/gdb.debuginfod/build-id-no-debug-warning.exp index b86622543ef..25d800a378b 100644 --- a/gdb/testsuite/gdb.debuginfod/build-id-no-debug-warning.exp +++ b/gdb/testsuite/gdb.debuginfod/build-id-no-debug-warning.exp @@ -127,6 +127,9 @@ prepare_for_debuginfod cache db proc_with_prefix local_debuginfod { } { global db debuginfod_debugdir cache build_id_debug_file + # Uncomment to increase verbosity of debuginfod when handling query. + #setenv DEBUGINFOD_VERBOSE 1 + set url [start_debuginfod $db $debuginfod_debugdir] if {$url eq ""} { unresolved "failed to start debuginfod server" diff --git a/gdb/testsuite/gdb.debuginfod/crc_mismatch.exp b/gdb/testsuite/gdb.debuginfod/crc_mismatch.exp index 017ef132573..27069b580dc 100644 --- a/gdb/testsuite/gdb.debuginfod/crc_mismatch.exp +++ b/gdb/testsuite/gdb.debuginfod/crc_mismatch.exp @@ -99,6 +99,9 @@ proc_with_prefix local_debuginfod { } { global binfile db debugdir cache set escapedobjdirsubdir [string_to_regexp [standard_output_file {}]] + # Uncomment to increase verbosity of debuginfod when handling query. + #setenv DEBUGINFOD_VERBOSE 1 + set url [start_debuginfod $db $debugdir] if {$url eq ""} { unresolved "failed to start debuginfod server" diff --git a/gdb/testsuite/gdb.debuginfod/fetch_src_and_symbols.exp b/gdb/testsuite/gdb.debuginfod/fetch_src_and_symbols.exp index 401af0df0d2..0fb752ff6bd 100644 --- a/gdb/testsuite/gdb.debuginfod/fetch_src_and_symbols.exp +++ b/gdb/testsuite/gdb.debuginfod/fetch_src_and_symbols.exp @@ -209,6 +209,9 @@ proc disable_delete_breakpoints {} { proc_with_prefix local_url { } { global binfile outputdir debugdir db + # Uncomment to increase verbosity of debuginfod when handling query. + #setenv DEBUGINFOD_VERBOSE 1 + set url [start_debuginfod $db $debugdir] if { $url == "" } { unresolved "failed to start debuginfod server" base-commit: 4250085217f2011335257fd3291cb50c939e9746 -- 2.35.3