From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7754 invoked by alias); 5 Nov 2012 10:03:46 -0000 Received: (qmail 7734 invoked by uid 48); 5 Nov 2012 10:03:45 -0000 From: "fredrik.hederstierna@securitas-direct.com" To: gdb-prs@sourceware.org Subject: [Bug corefiles/14383] Corefile support for arm-elf-none targets Date: Mon, 05 Nov 2012 10:03:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: corefiles X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: fredrik.hederstierna@securitas-direct.com X-Bugzilla-Status: NEW X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 Mailing-List: contact gdb-prs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-prs-owner@sourceware.org X-SW-Source: 2012-q4/txt/msg00182.txt.bz2 http://sourceware.org/bugzilla/show_bug.cgi?id=14383 --- Comment #5 from Fredrik Hederstierna 2012-11-05 10:03:45 UTC --- I added a solution where Linux core file support was duplicated, separated, and modified to make an independent arm none/bare metal core file feature in GDB. It also works with remote targets, using 'gcore' or 'generate-core-file' command to generate code while debugging. Though in this case all RAM must be setup in sections for linker script. I had to add 'dummy sections' for slack RAM like stacks and other non-linktime defined RAM, example from linker script (0x1000 is max RAM size): .slack_ram (NOLOAD) : { . += (0x1000 - SIZEOF(.data) - SIZEOF(.bss)); } > RAM I will also add simple core file generator code to be able to eg. write all RAM to flash bank while crashing/asserting, to be able at a later stage send core-file-template to PC and at a later stage use a tool to generate a 'real' core. This tool might be put on a separate server. /Fredrik -- Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.