This is the mail archive of the binutils@sourceware.org mailing list for the binutils 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] |
OSE is a target that requires relocating the main executable (qOffsets, etc.). We also need to relocate the main executable when reading OSE core dumps. This patch adds a gdbarch hook, and adds an implementation to the OSE core backend in gdb. The previous patch exported the raw OSE signal that contains the necessary info in a ".section-info" bfd pseudo section. The GDB side parses the OSE signal to extract the section info. The BFD bits that add the pseudo-section should be a part of this patch, but I didn't feel that working on the patch split was worth it.
Thanks, Hui
2013-03-08 Pedro Alves <pedro@codesourcery.com> Luis Machado <lgustavo@codesourcery.com>
* corelow.c (core_open): Call gdbarch_core_relocate. * exec.c (relocate_with_load_map): New. * exec.h (load_map_info): New. (relocate_with_load_map): New extern. * gdbarch.sh (core_relocate): New. * gdbarch.h, gdbarch.c: Regenerate. * target.h (target_object): Add TARGET_OBJECT_LOAD_MAP.
OSE need to do relocation before inspecting the core file or debug with the remote stub. This patch is make GDB support relocation.
This patch add new interface core_relocate to gdbarch, because the core file of OSE need relocation. This interface can handle it. Add TARGET_OBJECT_LOAD_MAP make GDB can get load map from target. Add a new function relocate_with_load_map to do relocation from the map that load from target.
Thanks, Hui
2013-03-05 Luis Machado <lgustavo@codesourcery.com>
* corelow.c (core_open): Call gdbarch_core_relocate. * exec.c (relocate_with_load_map): New. * exec.h (load_map_info): New. (relocate_with_load_map): New extern. * gdbarch.sh (core_relocate): New. * gdbarch.h, gdbarch.c: Regenerate. * target.h (target_object): Add TARGET_OBJECT_LOAD_MAP.
Attachment:
ose_load_map.txt
Description: Text document
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |