solib-darwin.c: handle PIE when attaching processes.
gdb/ChangeLog: * solib-darwin.c (darwin_current_sos): Fix indentation. (darwin_read_exec_load_addr): New function. (darwin_solib_create_inferior_hook): Rebase executable. * objfiles.c (objfile_rebase1, objfile_rebase): New functions. * objfiles.h (objfile_rebase1, objfile_rebase): Add prototypes.
This commit is contained in:
parent
c0fc7f8be2
commit
4141a416dd
4 changed files with 128 additions and 2 deletions
|
@ -471,6 +471,7 @@ extern struct cleanup *make_cleanup_free_objfile (struct objfile *);
|
|||
extern void free_all_objfiles (void);
|
||||
|
||||
extern void objfile_relocate (struct objfile *, struct section_offsets *);
|
||||
extern void objfile_rebase (struct objfile *, CORE_ADDR);
|
||||
|
||||
extern int objfile_has_partial_symbols (struct objfile *objfile);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue