forked from mirrors/gecko-dev
		
	Bug 1206766 - Show meaningful module offsets in stack traces even when no symbol found. r=spohl
This commit is contained in:
		
							parent
							
								
									ff0f1ae867
								
							
						
					
					
						commit
						1273371c40
					
				
					 1 changed files with 3 additions and 0 deletions
				
			
		|  | @ -240,6 +240,9 @@ nsCocoaDebugUtils::GetAddressStringInt(void* aAddress, CSTypeRef aOwner) | ||||||
|       addressName = CSSymbolGetName(symbol); |       addressName = CSSymbolGetName(symbol); | ||||||
|       CSRange range = CSSymbolGetRange(symbol); |       CSRange range = CSSymbolGetRange(symbol); | ||||||
|       addressOffset = (unsigned long long) aAddress - range.location; |       addressOffset = (unsigned long long) aAddress - range.location; | ||||||
|  |     } else { | ||||||
|  |       addressOffset = (unsigned long long) | ||||||
|  |         aAddress - CSSymbolOwnerGetBaseAddress(owner); | ||||||
|     } |     } | ||||||
|   } |   } | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
		Loading…
	
		Reference in a new issue
	
	 Steven Michaud
						Steven Michaud