From: Simon Marchi Sent: Tuesday, October 20, 2020 2:39 PM To: Fredrik Hederstierna ; Paul Mathieu Cc: gdb-patches@sourceware.org ; Luis Machado ; Alan Hayward Subject: Re: [PATCH] gdb: add support for handling core dumps on arm-none-eabi   On 2020-10-20 7:41 a.m., Fredrik Hederstierna wrote: > Hi all, > > I rebased and update my patch and it not run against GDB 10 / git-master, available at > > https://urldefense.com/v3/__https://sourceware.org/bugzilla/show_bug.cgi?id=14383__;!!BFCLnRDDbM3FOmw!sFHQSRGODtw_TucPLlwMNAMob6sJKx4DCgz3ryd9VjcmJNdXXPz78keCE4GRXIlJ9HDNheH5$ > > I debugged my remote arm-none bare-metal Cortex-M4 target app over openocd/JTAG, > and generate core-file: > (gdb) gcore bare_metal.core > > Then later off-line on my host PC, I successfully debugged it with register, call-stack etc: > $ arm-none-eabi-gdb my_bare_metal_app.elf bare_metal.core > > So this patch 'works', but I'm not sure if this is the correct direction to go, > but could be a start. > Besides this, next step could be to do this 'core-generator' tool that could be used for embedded targets, running on host PC. > > Please check the patch out, it builds fine with GDB-10/master on my machine. > Any comments are appreciated! > > Thanks, BR Fredrik > Can you please send it on this list using git-send-email?  We don't do > patch review on bugzilla (and it's not really practical). > > You can send it as a reply to your message (so it's threaded correctly) > by mentioning the Message-Id of your message: > >   git send-email --in-reply-to AM6PR10MB21504CBD56291D9C255739E1EF1F0@AM6PR10MB2150.EURPRD10.PROD.OUTLOOK.COM > > Simon Sorry my crappy corporate Outlook SMTP doesnt support me sending through git, and I had problems to using eg Google gmail, I try to attach the patch here and in the meantime try to solve this in a better way, sorry for the inconvenience. Kindly, Fredrik