From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-4317.proton.ch (mail-4317.proton.ch [185.70.43.17]) by sourceware.org (Postfix) with ESMTPS id D62D53858D28 for ; Wed, 23 Feb 2022 21:17:05 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org D62D53858D28 Date: Wed, 23 Feb 2022 21:16:49 +0000 To: "Schneider, Maximilian" , "gdb@sourceware.org" From: Jan Vrany Reply-To: Jan Vrany Subject: Re: openocd+gdb combo Message-ID: <16d3c834b8c2567162e6326bf7bc6a4aa908d8e1.camel@vrany.io> In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-2.2 required=5.0 tests=BAYES_05, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, RCVD_IN_MSPIKE_H5, RCVD_IN_MSPIKE_WL, SPF_HELO_NONE, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org 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: Wed, 23 Feb 2022 21:17:08 -0000 On Wed, 2022-02-23 at 16:11 +0000, Schneider, Maximilian via Gdb wrote: > Hello, > > I have written a relatively complex but very useful external loader+gdb p= ython script for a piece of memory connected to one of the many chips we us= e. > I can now use openocd to connect and subsequently gdb with the aforementi= oned loader and script to read/write/erase ! > > However It is still a pain to have to start an openocd session before bei= ng able to launch the gdb command. > > Is there a known way to package openocd and gdb together so that I can ge= t convenient calling conventions like bellow? > ./read_the_thing > memory_dump.bin > > How would you recommend creating portable installations of gdb so that th= ey can be shipped quickly to the unfortunate windows users? > I can imagine writing an extra tool that manages the sequencing of openoc= d+gdb but I would need executables I can run without installation to make i= t palatable for my colleagues. > I was facing similar problem a year ago. Took me a bit to figure out how to make a .zip you can download, unpack wherever you want=C2=A0 and use, including working python. If you think it would help, I can try to extract the build script=C2=A0 from my CI=C2=A0and share some time later this or next week. Jan > Best Regards, > Maximilian Schneider