chiark / gitweb /
preload-hacks: Some patches to make it work.
[termux-packages] / packages / gdb / gdb-solib.c.patch
1 diff -u -r ../gdb-7.10.1/gdb/solib.c ./gdb/solib.c
2 --- ../gdb-7.10.1/gdb/solib.c   2015-12-05 10:16:45.000000000 -0500
3 +++ ./gdb/solib.c       2016-02-07 17:29:11.431584611 -0500
4 @@ -1703,6 +1703,16 @@
5    add_alias_cmd ("solib-absolute-prefix", "sysroot", class_support, 0,
6                  &showlist);
7  
8 +#ifdef __ANDROID__
9 +  /* Termux modification to find system shared libraries. */
10 +  solib_search_path =
11 +# ifdef __LP64__
12 +    "/system/lib64:/system/vendor/lib64";
13 +# else
14 +    "/system/lib:/system/vendor/lib";
15 +# endif
16 +#endif
17 +
18    add_setshow_optional_filename_cmd ("solib-search-path", class_support,
19                                      &solib_search_path, _("\
20  Set the search path for loading non-absolute shared library symbol files."),