mirror of
				https://github.com/ruby/ruby.git
				synced 2022-11-09 12:17:21 -05:00 
			
		
		
		
	* vm_dump.c (rb_print_backtrace): current implementation
uses dladdr to get the path of objects. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45489 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
		
							parent
							
								
									6648136779
								
							
						
					
					
						commit
						6ba2c24cc4
					
				
					 2 changed files with 6 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -1,3 +1,8 @@
 | 
			
		|||
Tue Apr  1 07:27:15 2014  NARUSE, Yui  <naruse@ruby-lang.org>
 | 
			
		||||
 | 
			
		||||
	* vm_dump.c (rb_print_backtrace): current implementation
 | 
			
		||||
	  uses dladdr to get the path of objects.
 | 
			
		||||
 | 
			
		||||
Mon Mar 31 23:57:45 2014  Nobuyoshi Nakada  <nobu@ruby-lang.org>
 | 
			
		||||
 | 
			
		||||
	* ext/readline/extconf.rb: fix typo, `$defs` not `$DEFS`.
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -683,7 +683,7 @@ rb_print_backtrace(void)
 | 
			
		|||
#define MAX_NATIVE_TRACE 1024
 | 
			
		||||
    static void *trace[MAX_NATIVE_TRACE];
 | 
			
		||||
    int n = backtrace(trace, MAX_NATIVE_TRACE);
 | 
			
		||||
#ifdef USE_ELF
 | 
			
		||||
#if defined(USE_ELF) && defined(HAVE_DLADDR)
 | 
			
		||||
    rb_dump_backtrace_with_lines(n, trace);
 | 
			
		||||
#else
 | 
			
		||||
    char **syms = backtrace_symbols(trace, n);
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue