From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-4323.proton.ch (mail-4323.proton.ch [185.70.43.23]) by sourceware.org (Postfix) with ESMTPS id 3C35E3858D28 for ; Fri, 25 Feb 2022 23:24:32 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 3C35E3858D28 Date: Fri, 25 Feb 2022 23:24:25 +0000 To: "Schneider, Maximilian" , "gdb@sourceware.org" From: Jan Vrany Reply-To: Jan Vrany Subject: Re: openocd+gdb combo Message-ID: <94769b26f03223bf419d31bc9f9218971d5874ca.camel@vrany.io> In-Reply-To: <16d3c834b8c2567162e6326bf7bc6a4aa908d8e1.camel@vrany.io> References: <16d3c834b8c2567162e6326bf7bc6a4aa908d8e1.camel@vrany.io> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-3.1 required=5.0 tests=BAYES_00, 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: Fri, 25 Feb 2022 23:24:35 -0000 On Wed, 2022-02-23 at 21:16 +0000, Jan Vrany via Gdb wrote: > 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= python script for a piece of memory connected to one of the many chips we = use. > > I can now use openocd to connect and subsequently gdb with the aforemen= tioned loader and script to read/write/erase ! > > > > However It is still a pain to have to start an openocd session before b= eing able to launch the gdb command. > > > > Is there a known way to package openocd and gdb together so that I can = get convenient calling conventions like bellow? > > ./read_the_thing > memory_dump.bin > > > > How would you recommend creating portable installations of gdb so that = they can be shipped quickly to the unfortunate windows users? > > I can imagine writing an extra tool that manages the sequencing of open= ocd+gdb but I would need executables I can run without installation to make= it 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. You may find the script here: https://github.com/janvrany/binutils-gdb-devs= cripts HTH, Jan > > Jan > > > Best Regards, > > Maximilian Schneider > >