This is the mail archive of the gdb-prs@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug corefiles/14383] Corefile support for arm-elf-none targets


http://sourceware.org/bugzilla/show_bug.cgi?id=14383

--- Comment #5 from Fredrik Hederstierna <fredrik.hederstierna@securitas-direct.com> 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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]