solib-darwin.c: handle PIE when attaching processes.
authorJoel Brobecker <brobecker@gnat.com>
Tue, 18 Dec 2012 06:19:54 +0000 (06:19 +0000)
committerJoel Brobecker <brobecker@gnat.com>
Tue, 18 Dec 2012 06:19:54 +0000 (06:19 +0000)
commit4141a416ddb921e600cf6d28b805f854ef3b60e9
tree5cb6c7680fd1a540782a97a22b23c5e8c1deea8f
parentc0fc7f8be2d688e3d533e0470c58cc52fa21ef7e
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.
gdb/ChangeLog
gdb/objfiles.c
gdb/objfiles.h
gdb/solib-darwin.c