From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm1-x32e.google.com (mail-wm1-x32e.google.com [IPv6:2a00:1450:4864:20::32e]) by sourceware.org (Postfix) with ESMTPS id 6BE993857342 for ; Thu, 14 Apr 2022 15:45:27 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 6BE993857342 Received: by mail-wm1-x32e.google.com with SMTP id m15-20020a7bca4f000000b0038fdc1394b1so2714920wml.2 for ; Thu, 14 Apr 2022 08:45:27 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:message-id:subject:mime-version; bh=QB+LIbJHGxDmIZDclqWDadeMLbmyhoP8QAyXgNG+IvU=; b=Tch4c7P1rtNAm1lnAHVg91lZQ2e98vR2wNkbUI/JVW/Oo8yjUSQYf/EtRpUyLL8UPk jPzWr9asXFVA4lVLEiZjkyxsyGaho69prrvbO/pS6ib+wl75NCxp8ZyIEafCNCsQKKNQ d58aOiLGLmd+xlGm1kPTxhjBPOyA+gtHRb3MXzlDs0N9GTJOBiMd43AV4MwfP93MgHca JahiG8HKiTvbAVx2ZZ5l0q/WcFr1hZWRd5bElNPwGcdtKAb1hR6stEYLaRc1lojx3Q4J 1h+qdkSgziWaVf+1KT5PL0dDDhWHhekr8cyF2P/3mYfNxIbpyZExfDZmiJzD6lIbvvvY 4jNQ== X-Gm-Message-State: AOAM532Evwxu+PDP9SWCQnw0D4VXPB8nzIFI+eKU/RhffeG6kOcjL4SZ A2KtU0Zbt6svpZ2vb6jL259h6Zfup3I= X-Google-Smtp-Source: ABdhPJz8jpnWHHJA4mERnPuNsG76pf0Mpc8AGNNvfjqHzsWfkLCuBNE+9zHmxyVKxrwaTqWusFwZrA== X-Received: by 2002:a1c:545a:0:b0:38e:b1d6:9184 with SMTP id p26-20020a1c545a000000b0038eb1d69184mr3726755wmi.32.1649951126121; Thu, 14 Apr 2022 08:45:26 -0700 (PDT) Received: from cheofusi ([154.72.161.203]) by smtp.gmail.com with ESMTPSA id p14-20020a05600c1d8e00b0038ecb2d2feasm2443759wms.4.2022.04.14.08.45.24 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 14 Apr 2022 08:45:25 -0700 (PDT) Date: Thu, 14 Apr 2022 16:45:20 +0100 From: jack droptop To: "=?utf-8?Q?gdb=40sourceware.org?=" Message-ID: <1BBBBD4E-CD85-494B-9B36-C731CC75510F@getmailspring.com> Subject: Reloading an executable when it changes. X-Mailer: Mailspring MIME-Version: 1.0 X-Spam-Status: No, score=2.8 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, HTML_MESSAGE, RCVD_IN_BARRACUDACENTRAL, RCVD_IN_DNSWL_NONE, RCVD_IN_SORBS_WEB, SPF_HELO_NONE, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.4 X-Spam-Level: ** X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: gdb@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 14 Apr 2022 15:45:29 -0000 Hi everyone, I've got a setup with gdb running on host machine, an arm board running gdbserver, and a serial line connecting the two. I'm able to remote debug over the serial line. My goal after compiling and deploying a program (over uMTP) to the board , is to have gdbserver in conjunction with the gdb client, automatically relaunch the debug session if the executable of current program being traced just changed. For now I use the file + run combo in the client console. Is this something gdb can do? Or am I being to wishful.. Sincerely, Brandon