summaryrefslogtreecommitdiff
path: root/libbacktrace/internal.h
diff options
context:
space:
mode:
authorian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>2014-03-07 05:07:56 +0000
committerian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>2014-03-07 05:07:56 +0000
commit1329f16062bf0a3ba0d9db621073a8431256ed2a (patch)
treee0c8c1eba373485f6f43bbc665aa196c676034bd /libbacktrace/internal.h
parent0c739e52f1e4a38b11e19b97c2bb7ef5cf1e9230 (diff)
downloadgcc-1329f16062bf0a3ba0d9db621073a8431256ed2a.tar.gz
* sort.c: New file.
* stest.c: New file. * internal.h (backtrace_qsort): Declare. * dwarf.c (read_abbrevs): Call backtrace_qsort instead of qsort. (read_line_info, read_function_entry): Likewise. (read_function_info, build_dwarf_data): Likewise. * elf.c (elf_initialize_syminfo): Likewise. * Makefile.am (libbacktrace_la_SOURCES): Add sort.c. (stest_SOURCES, stest_LDADD): Define. (check_PROGRAMS): Add stest. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@208392 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libbacktrace/internal.h')
-rw-r--r--libbacktrace/internal.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/libbacktrace/internal.h b/libbacktrace/internal.h
index dd109db24ae..1ae43177f38 100644
--- a/libbacktrace/internal.h
+++ b/libbacktrace/internal.h
@@ -196,6 +196,11 @@ extern int backtrace_close (int descriptor,
backtrace_error_callback error_callback,
void *data);
+/* Sort without using memory. */
+
+extern void backtrace_qsort (void *base, size_t count, size_t size,
+ int (*compar) (const void *, const void *));
+
/* Allocate memory. This is like malloc. */
extern void *backtrace_alloc (struct backtrace_state *state, size_t size,