diff options
author | Ian Lance Taylor <iant@google.com> | 2012-10-26 20:08:29 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@gcc.gnu.org> | 2012-10-26 20:08:29 +0000 |
commit | 73f4149137364da5b6d1238720b7fc21226b5b27 (patch) | |
tree | 19f70c7335db3f471b050d0ffdf8011662c823c7 /libbacktrace/internal.h | |
parent | 9430b7bad813a444e6a7e35d6b5f92d2b99f40cf (diff) | |
download | gcc-73f4149137364da5b6d1238720b7fc21226b5b27.zip gcc-73f4149137364da5b6d1238720b7fc21226b5b27.tar.gz gcc-73f4149137364da5b6d1238720b7fc21226b5b27.tar.bz2 |
re PR other/55087 (bogus "linux-vdso.so.1: No such file or directory" caused by libbacktrace)
PR other/55087
* posix.c (backtrace_open): Add does_not_exist parameter.
* elf.c (phdr_callback): Do not warn if shared library could not
be opened.
* fileline.c (fileline_initialize): Update calls to
backtrace_open.
* internal.h (backtrace_open): Update declaration.
From-SVN: r192861
Diffstat (limited to 'libbacktrace/internal.h')
-rw-r--r-- | libbacktrace/internal.h | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/libbacktrace/internal.h b/libbacktrace/internal.h index b1afca0..5e0dba4 100644 --- a/libbacktrace/internal.h +++ b/libbacktrace/internal.h @@ -109,10 +109,16 @@ struct backtrace_state struct backtrace_freelist_struct *freelist; }; -/* Open a file for reading. Returns -1 on error. */ +/* Open a file for reading. Returns -1 on error. If DOES_NOT_EXIST + is not NULL, *DOES_NOT_EXIST will be set to 0 normally and set to 1 + if the file does not exist. If the file does not exist and + DOES_NOT_EXIST is not NULL, the function will return -1 and will + not call ERROR_CALLBACK. On other errors, or if DOES_NOT_EXIST is + NULL, the function will call ERROR_CALLBACK before returning. */ extern int backtrace_open (const char *filename, backtrace_error_callback error_callback, - void *data); + void *data, + int *does_not_exist); /* A view of the contents of a file. This supports mmap when available. A view will remain in memory even after backtrace_close |