diff options
author | Ulrich Drepper <drepper@gmail.com> | 2011-05-16 00:22:16 -0400 |
---|---|---|
committer | Ulrich Drepper <drepper@gmail.com> | 2011-05-16 00:22:16 -0400 |
commit | 6ce7537960cf42a0a6b0fc70957d5ce2ba9838de (patch) | |
tree | aa7ed57f753690503cce773a59096cd5e08017f0 | |
parent | 94b7cc3711b0b74c1d3ae18b9a2e019e51a8e0bf (diff) | |
download | glibc-6ce7537960cf42a0a6b0fc70957d5ce2ba9838de.tar.gz glibc-6ce7537960cf42a0a6b0fc70957d5ce2ba9838de.tar.xz glibc-6ce7537960cf42a0a6b0fc70957d5ce2ba9838de.zip |
Remove USE_MTRACE_FILE support from mtrace
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | malloc/mtrace.c | 19 |
2 files changed, 7 insertions, 17 deletions
diff --git a/ChangeLog b/ChangeLog index 1cb8f4fc2c..cd89f3f7e4 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2011-05-16 Ulrich Drepper <drepper@gmail.com> + + * malloc/mtrace.c: Remove support for USE_MTRACE_FILE. It is not + used and couldn't be at all thread-safe. + 2011-05-15 Ulrich Drepper <drepper@gmail.com> * libio/freopen.c (freopen): Don't close old file descriptor diff --git a/malloc/mtrace.c b/malloc/mtrace.c index fafa52e916..51be396aaa 100644 --- a/malloc/mtrace.c +++ b/malloc/mtrace.c @@ -1,5 +1,5 @@ /* More debugging hooks for `malloc'. - Copyright (C) 1991-1994,1996-2004, 2008 Free Software Foundation, Inc. + Copyright (C) 1991-1994,1996-2004, 2008, 2011 Free Software Foundation, Inc. This file is part of the GNU C Library. Written April 2, 1991 by John Gilmore of Cygnus Support. Based on mcheck.c by Mike Haertel. @@ -57,13 +57,6 @@ __libc_lock_define_initialized (static, lock); /* Address to breakpoint on accesses to... */ __ptr_t mallwatch; -#ifdef USE_MTRACE_FILE -/* File name and line number information, for callers that had - the foresight to call through a macro. */ -char *_mtrace_file; -int _mtrace_line; -#endif - /* Old hook values. */ static void (*tr_old_free_hook) (__ptr_t ptr, const __ptr_t); static __ptr_t (*tr_old_malloc_hook) (__malloc_size_t size, const __ptr_t); @@ -92,15 +85,7 @@ internal_function tr_where (caller) const __ptr_t caller; { -#ifdef USE_MTRACE_FILE - if (_mtrace_file) - { - fprintf (mallstream, "@ %s:%d ", _mtrace_file, _mtrace_line); - _mtrace_file = NULL; - } - else -#endif - if (caller != NULL) + if (caller != NULL) { #ifdef HAVE_ELF Dl_info info; |