From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id UoGZDh2cvGYO2AYAWB0awg (envelope-from ) for ; Wed, 14 Aug 2024 07:59:25 -0400 Authentication-Results: simark.ca; dkim=pass (1024-bit key; secure) header.d=sourceware.org header.i=@sourceware.org header.a=rsa-sha256 header.s=default header.b=J5Oz8HTy; dkim-atps=neutral Received: by simark.ca (Postfix, from userid 112) id 2844E1E0D0; Wed, 14 Aug 2024 07:59:25 -0400 (EDT) Received: from server2.sourceware.org (server2.sourceware.org [8.43.85.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPS id 0DC871E08C for ; Wed, 14 Aug 2024 07:59:23 -0400 (EDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 75A063858403 for ; Wed, 14 Aug 2024 11:59:22 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 75A063858403 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1723636762; bh=zSS2EigybPpoisq6p36z09K6TVtKBC0XPbdQp0V2WcE=; h=Date:Subject:To:References:In-Reply-To:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To: From; b=J5Oz8HTyQYoVGk8nWLtb1tzcYuEZNaGMewLBDgJTAgSzm1J8YPhfn4Y3mqZ88mLat wuFOzTI0c5P7Hdx6BZ8IlIWFoaDRTKSChI7Gp9Jt4JrHA6PBa2YaQIDTBU/LVfWMRY 7euBY96iTqXwBAyw1GzSNyBfpCDy4Fk+MNbUWDJU= Received: from eggs.gnu.org (eggs.gnu.org [IPv6:2001:470:142:3::10]) by sourceware.org (Postfix) with ESMTPS id 9C0DE3858D34 for ; Wed, 14 Aug 2024 11:46:34 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 9C0DE3858D34 ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 9C0DE3858D34 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1723635996; cv=none; b=xfz0me2ZJeeXh7oNcgrAwX3/Ytvcsp2AzPptNwm6j6nQgFvOI/dGaTPXi4YZijKQTIZmNmuczbajH9dJeoWCXtZUpNKBnIoAyXIMahenNvtSLmlkv+vkyWpu3znNlE6VfKcDMWFlBu7nN1dSDCUSewYgQdK4baSu0eBdVVrbIlM= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1723635996; c=relaxed/simple; bh=Xa7FmK9dIatH2OTV7IbX85K7qirajkbEM3r3NKvB0S8=; h=DKIM-Signature:Message-ID:Date:MIME-Version:Subject:To:From; b=NG5GGDyF650OJIAvny9ZhKBTLvLsdixY65/8i29jFUvzF2Meh854bppzLqysZASDJOxRw1hKVb43bE0gBscqkbc1oVDGj+i7jnROhIVwl4l2k6Tj3M7jnORIl5lsyZUpQTzJ86o2QT9vBCkueilgegcZxKKO080LYM0nFaD68bI= ARC-Authentication-Results: i=1; server2.sourceware.org Received: from us-smtp-delivery-124.mimecast.com ([170.10.129.124]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1seCSW-0001XG-SK for bug-gdb@gnu.org; Wed, 14 Aug 2024 07:46:34 -0400 Received: from mail-qk1-f198.google.com (mail-qk1-f198.google.com [209.85.222.198]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-177-lh4DN_L-OGGEe3Q6CdhKkw-1; Wed, 14 Aug 2024 07:46:29 -0400 X-MC-Unique: lh4DN_L-OGGEe3Q6CdhKkw-1 Received: by mail-qk1-f198.google.com with SMTP id af79cd13be357-7a1de8a2adbso760568285a.1 for ; Wed, 14 Aug 2024 04:46:29 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1723635988; x=1724240788; h=content-transfer-encoding:in-reply-to:from:content-language :references:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=zSS2EigybPpoisq6p36z09K6TVtKBC0XPbdQp0V2WcE=; b=ERrXUiGX8l5E+ci07g+4fXlfKfFUWN8IKGgjKH25Cy5IaVpjKaE+Wl1PweivnpvMTF zmF48Y1epG27lYdU1JYyGyW4+Qgrds3XVzguoByjLGitRg3UrTgeY2Hk4xA9eunLxz2c haRflkGg8qkjSMFPx1h+zvJ8dcg4Dkdz4ZRtdoqxjHiM+JcSGOvdhz5dS+5pJfDEGoHn HM+o3vp9ccWIVvozCWYGkczcmn4y+F8zaCrKLNBVm1ubtSxmgOcQG5tgpCsLxy4ou6lu UJYYbf+8tMzP+8xNcP72eP7/EMqznAojNNkYi/untwZLiK9x9lqTHpl3l4A7Wf+C+CHg 34eA== X-Forwarded-Encrypted: i=1; AJvYcCUjVz2cAfQAuJpUG1AU9btRQm3Kxuq2SzszkO+R6W5MSPItz35QDjJJiU3oQ9/uhUqZxgzyWUAMbuMA1v5D45Y= X-Gm-Message-State: AOJu0YwhJBIR5U+RMvx9Y+cwfg013leKKr01UogO1o96S9H7X4YZ6ZKS +NdBcQKM2xO37aGvFOk0gAPyjRKGRjDN8tRtGKIIvWH98hTk9Ptjaw3iQr710qZUPOAP/K8fU0r XAZqvsSq0KG9x7otl/vRJEuPG0jJIHFdSSWrfzxaBosu1 X-Received: by 2002:a05:620a:29c3:b0:7a2:e53:3f67 with SMTP id af79cd13be357-7a4ee32e7f3mr333777985a.19.1723635988663; Wed, 14 Aug 2024 04:46:28 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFzP8MX0QCS7XL+IebT0MczDHhTkMUNPHgT09sTIZe6JLDPW0o8fCbh5e9520mwABsVic042A== X-Received: by 2002:a05:620a:29c3:b0:7a2:e53:3f67 with SMTP id af79cd13be357-7a4ee32e7f3mr333775885a.19.1723635988324; Wed, 14 Aug 2024 04:46:28 -0700 (PDT) Received: from ?IPV6:2804:14d:8084:92c5::1001? ([2804:14d:8084:92c5::1001]) by smtp.gmail.com with ESMTPSA id af79cd13be357-7a4c7e118efsm418824185a.130.2024.08.14.04.46.27 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 14 Aug 2024 04:46:27 -0700 (PDT) Message-ID: Date: Wed, 14 Aug 2024 08:46:25 -0300 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: gdb reports Single stepping until exit from function _start, which has no line number information. To: Patrick Clot , bug-gdb@gnu.org References: In-Reply-To: X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Language: en-US Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=170.10.129.124; envelope-from=blarsen@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: -21 X-Spam_score: -2.2 X-Spam_bar: -- X-Spam_report: (-2.2 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.135, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Status: No, score=-5.4 required=5.0 tests=BAYES_00, DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, SPF_HELO_PASS, SPF_NONE, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-Mailman-Approved-At: Wed, 14 Aug 2024 11:58:46 +0000 X-BeenThere: gdb@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Gdb mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Guinevere Larsen via Gdb Reply-To: Guinevere Larsen Errors-To: gdb-bounces~public-inbox=simark.ca@sourceware.org Sender: "Gdb" On 8/13/24 7:07 PM, Patrick Clot via Gdb wrote: > Attached is a debug file that has the version numbers > of the software I am using and the gdb session. _start is not a function defined by your program, but one from your system's libc. If you want to step through that function, you'llĀ  need libc debug information. You seem to be using Ubuntu 22.04, I'm not sure if it has debuginfod servers, but if it does, you could enable debuginfod to download relevant debug information to step through _start, otherwise you'll want to download the ubuntu package for your libc's debuginfo. The reason this is expected behavior is that "next" and "step" need debug information to work. They want to move the inferior to the next source code line, which may mean any number of actual assembly instructions. GDB needs line table information to cross reference the current instruction with the current line, and then find all the instructions related to the current line, so we are able to move through all of them and stop when we reach the next line. If you have no way of getting debug information for your libc, you may want to use "stepi" (meaning step instruction) to move one assembly instruction at a time. -- Cheers, Guinevere Larsen She/Her/Hers > > Thanks in advance, > Patrick Clot