From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm1-x330.google.com (mail-wm1-x330.google.com [IPv6:2a00:1450:4864:20::330]) by sourceware.org (Postfix) with ESMTPS id 891AD385C8B0 for ; Sun, 10 Sep 2023 19:32:28 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 891AD385C8B0 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-wm1-x330.google.com with SMTP id 5b1f17b1804b1-401c90ed2ecso40308965e9.0 for ; Sun, 10 Sep 2023 12:32:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1694374347; x=1694979147; darn=sourceware.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=Los4aQB5VjwMO4xpZpbajwgc2xu+1bkjNKUhH2jG3OE=; b=j3K31qC/k5FWdr6xPBzbnSkXB6mgEDXnVmfkT904YtalZq3ghls3x8T34/0TKGqYLf BkHOvEa4jzrFSBjMTl+8jm8Lar5ohMIntC3mclFIPJrAGjUH1y1NOgVwogfmcvlAqHL4 5mFSgyhiYUg5AKxS8Wp+7ATz9fLOxgBZBHiDtDD5a7ncOxCXFzdLOvrSwFy8aDVAjPJH /ZZE/mHH0zO9vW+jgI4Koqo5LEhawLJH/5mQVVqXjNRg0GIrQd/YAnCbNQZIx5f77cza HMrGAcFP01YXNIxzpEbkMxZtX+52TErCzbPCgNGYd1eU9YBg4wwY7VcbVrASuc6e62sd Fw/g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1694374347; x=1694979147; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Los4aQB5VjwMO4xpZpbajwgc2xu+1bkjNKUhH2jG3OE=; b=g+Vek6tTGc8CqgV3oa5xFvfE0/B0haVgJevBmsmY6itVeQsgteocEwlvdc8TiJqRAc wQFXyQOGfvcIE+xdDBSO+LBEIzvDMcwyJI4Ei8svursgpOEOjKLKsT1DnC7NAHgpscAn /PPxnygaMEwNmgOpHcAFaX6WNHjARbdCndZhCHeNklmZxwrM11E6q9DTxDuBUKK0TBVk hgWdIzGdJe84/fb+aKLmcwZEn8WHDBRfIhFJocQvbGqtbdxxXnsaSxIdpiQpm0/WmOhh Rnwzn8q10VwwNc1B9Q0S/J+NYCbyG3wJNRNS4oflrd/vgwUwd0g5h4XzNSdJPd6f2Ztv O44Q== X-Gm-Message-State: AOJu0YynrNdAd0yiSfozb1Sw2A536pWXlmrTqutwrM9C5rCSgvNnO2r4 70wwKvs9rf1XIS5pKTXrIem/Y3VW2dhallMmHbs= X-Google-Smtp-Source: AGHT+IFWAZCGsYMnnU5FJ0nmYre8N2JUjyEMQH7S6RlrNB5X0m1uMiAR0UEnyQxQMAUHaZoLjn08oXXqzlfXmTxkiww= X-Received: by 2002:adf:f988:0:b0:317:71bb:7ccd with SMTP id f8-20020adff988000000b0031771bb7ccdmr5659961wrr.52.1694374346991; Sun, 10 Sep 2023 12:32:26 -0700 (PDT) MIME-Version: 1.0 References: <769819467.544767.1694359900221.ref@mail.yahoo.com> <769819467.544767.1694359900221@mail.yahoo.com> In-Reply-To: From: Stefan Puiu Date: Sun, 10 Sep 2023 22:32:15 +0300 Message-ID: Subject: Re: How do I run a program step by step? To: Nemo Nusquam Cc: gdb@sourceware.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-0.7 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,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: Hi, On Sun, Sep 10, 2023 at 9:09=E2=80=AFPM Nemo Nusquam via Gdb wrote: > > On 2023-09-10 11:31, Jason Long via Gdb wrote: > > Hello,How to run an .exe file step by step and see what happens at each= step of execution? For example, what files the program creates or deletes = and... > > Any idea welcomed. > > Thank you. > The official documentation is here: > https://sourceware.org/gdb/current/onlinedocs/gdb.html/ The sample session in the gdb manual (https://sourceware.org/gdb/current/onlinedocs/gdb.html/Sample-Session.html= #Sample-Session) is a good introduction, I think. It shows the basic commands and walks you through a debugging session where you run some code, print variables etc. Stefan. > > If that is too advanced or succinct for you, searching for "gdb > tutorials" will reward you with dozens of tutorials. > > N.