linker: allow debugging of constructors
This patch allows the debugging of constructors in shared libraries and executables. It does so by ensuring that the corresponding binary is visible to gdb before running the constructors. Change-Id: I0a3df726a04ad109944c834dcbba672b85d3991e
This commit is contained in:
parent
c57fd96381
commit
e5ea45547e
@ -2039,8 +2039,8 @@ static int link_image(soinfo *si, unsigned wr_offset)
|
||||
*/
|
||||
if (program_is_setuid)
|
||||
nullify_closed_stdio ();
|
||||
call_constructors(si);
|
||||
notify_gdb_of_load(si);
|
||||
call_constructors(si);
|
||||
return 0;
|
||||
|
||||
fail:
|
||||
|
Loading…
Reference in New Issue
Block a user