forked from OSchip/llvm-project
[sanitizer] rename __sanitizer_symbolize_data to __sanitizer_symbolize_global (to avoid conflict with another definition)
llvm-svn: 281902
This commit is contained in:
parent
f135f0ec1d
commit
f0ca160ea2
|
@ -124,8 +124,8 @@ extern "C" {
|
|||
void __sanitizer_symbolize_pc(void *pc, const char *fmt, char *out_buf,
|
||||
size_t out_buf_size);
|
||||
// Same as __sanitizer_symbolize_pc, but for data section (i.e. globals).
|
||||
void __sanitizer_symbolize_data(void *data_ptr, const char *fmt,
|
||||
char *out_buf, size_t out_buf_size);
|
||||
void __sanitizer_symbolize_global(void *data_ptr, const char *fmt,
|
||||
char *out_buf, size_t out_buf_size);
|
||||
|
||||
// Sets the callback to be called right before death on error.
|
||||
// Passing 0 will unset the callback.
|
||||
|
|
|
@ -335,7 +335,7 @@ INTERFACE_FUNCTION(__sanitizer_get_unmapped_bytes)
|
|||
INTERFACE_FUNCTION(__sanitizer_maybe_open_cov_file)
|
||||
INTERFACE_FUNCTION(__sanitizer_print_stack_trace)
|
||||
INTERFACE_FUNCTION(__sanitizer_symbolize_pc)
|
||||
INTERFACE_FUNCTION(__sanitizer_symbolize_data)
|
||||
INTERFACE_FUNCTION(__sanitizer_symbolize_global)
|
||||
INTERFACE_FUNCTION(__sanitizer_ptr_cmp)
|
||||
INTERFACE_FUNCTION(__sanitizer_ptr_sub)
|
||||
INTERFACE_FUNCTION(__sanitizer_report_error_summary)
|
||||
|
|
|
@ -106,8 +106,8 @@ void __sanitizer_symbolize_pc(uptr pc, const char *fmt, char *out_buf,
|
|||
}
|
||||
|
||||
SANITIZER_INTERFACE_ATTRIBUTE
|
||||
void __sanitizer_symbolize_data(uptr data_addr, const char *fmt, char *out_buf,
|
||||
uptr out_buf_size) {
|
||||
void __sanitizer_symbolize_global(uptr data_addr, const char *fmt,
|
||||
char *out_buf, uptr out_buf_size) {
|
||||
if (!out_buf_size) return;
|
||||
out_buf[0] = 0;
|
||||
DataInfo DI;
|
||||
|
|
|
@ -28,7 +28,7 @@ void SymbolizeCaller() {
|
|||
|
||||
void SymbolizeData() {
|
||||
char data[100];
|
||||
__sanitizer_symbolize_data(&GLOBAL_VAR_ABC, "%g %s:%l", data, sizeof(data));
|
||||
__sanitizer_symbolize_global(&GLOBAL_VAR_ABC, "%g %s:%l", data, sizeof(data));
|
||||
printf("GLOBAL: %s\n", data);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue