foss-for-synopsys-dwc-arc-processors / binutils-gdb

A mirror of the upstream binutils-gdb repository for ARC specific work
GNU General Public License v2.0
13 stars 10 forks source link

[GDB] arc-elf32-gdb should also parse coredumps #36

Open shahab-vahedi opened 4 years ago

shahab-vahedi commented 4 years ago

At the moment, only arc-linux-gdb targets are able to parse coredumps. Apparently, there are other usecases as well. Therefore, this feature must be brought to baremetal targets too.

shahab-vahedi commented 4 years ago

I have looked into the code of other targets in GDB and they all seem to have implemented the

*_core_read_descriptions *_iterate_over_reg_sections

hooks in *-linux-tdep.c file as well. Some did the same in *bsd-tdep.c too, but nothing in *-tdep.c. This is a bit puzzling, since I expect them to fail the same way that arc-elf-gdb did on those coredumps. I have asked a question in the original issue and waiting for an answer.