mirror of
https://github.com/tobast/libunwind-eh_elf.git
synced 2025-02-16 18:21:41 +01:00
Fixup long lines.
This commit is contained in:
parent
eac65dc9b8
commit
5eba0f816d
1 changed files with 17 additions and 11 deletions
28
src/os-qnx.c
28
src/os-qnx.c
|
@ -65,19 +65,25 @@ tdep_get_elf_image (struct elf_image *ei, pid_t pid, unw_word_t ip,
|
||||||
cbi.offset = 0;
|
cbi.offset = 0;
|
||||||
cbi.path = NULL;
|
cbi.path = NULL;
|
||||||
|
|
||||||
/* QNX's support for accessing symbol maps is severely broken. There is a devctl() call that
|
/* QNX's support for accessing symbol maps is severely broken. There is
|
||||||
can be made on a proc node (DCMD_PROC_MAPDEBUG) which returns information similar to Linux's
|
a devctl() call that can be made on a proc node (DCMD_PROC_MAPDEBUG)
|
||||||
/proc/<pid>/maps node, however the filename that is returned by this call is not an absolute
|
which returns information similar to Linux's /proc/<pid>/maps
|
||||||
path, and there is no foolproof way to map the filename back to the file that it came from.
|
node, however the filename that is returned by this call is not an
|
||||||
|
absolute path, and there is no foolproof way to map the filename
|
||||||
|
back to the file that it came from.
|
||||||
|
|
||||||
Therefore, the normal approach for implementing this function, which works equally well for
|
Therefore, the normal approach for implementing this function,
|
||||||
both local and remote unwinding, will not work here. The only type of image lookup which
|
which works equally well for both local and remote unwinding,
|
||||||
works reliably is locally, using dl_iterate_phdr(). However, the only time that this function
|
will not work here. The only type of image lookup which works
|
||||||
is required to look up a remote image is for ptrace support, which doesn't work on QNX anyway.
|
reliably is locally, using dl_iterate_phdr(). However, the only
|
||||||
Local unwinding, which is the main case that makes use of this function, will work fine with
|
time that this function is required to look up a remote image is for
|
||||||
dl_iterate_phdr(). Therefore, in lieu of any better platform support for remote image lookup,
|
ptrace support, which doesn't work on QNX anyway. Local unwinding,
|
||||||
this function has just been implemented in terms of dl_iterate_phdr().
|
which is the main case that makes use of this function, will work
|
||||||
|
fine with dl_iterate_phdr(). Therefore, in lieu of any better
|
||||||
|
platform support for remote image lookup, this function has just
|
||||||
|
been implemented in terms of dl_iterate_phdr().
|
||||||
*/
|
*/
|
||||||
|
|
||||||
if (pid != getpid())
|
if (pid != getpid())
|
||||||
{
|
{
|
||||||
/* Return an error if an attempt is made to perform remote image lookup */
|
/* Return an error if an attempt is made to perform remote image lookup */
|
||||||
|
|
Loading…
Add table
Reference in a new issue