Bug 1277448 patch 3 - Print the function name in NS_DebugBreak assertion messages. r?froydnj draft
authorL. David Baron <dbaron@dbaron.org>
Tue, 21 Jun 2016 17:18:32 -0700
changeset 380427 3132b707a44c217da4ca9b30acd1d43a748118c6
parent 380426 4145f083f15c70e1a29f7b02107429645fa137e3
child 380428 12e1987b6d819550d04811d3053f953676eb2e29
child 380461 71ff681d258edaf6feba2f8947f474195b21144c
push id21224
push userdbaron@mozilla.com
push dateWed, 22 Jun 2016 00:18:41 +0000
reviewersfroydnj
bugs1277448
milestone50.0a1
Bug 1277448 patch 3 - Print the function name in NS_DebugBreak assertion messages. r?froydnj MozReview-Commit-ID: 1MYTgEiKAlM
xpcom/base/nsDebugImpl.cpp
--- a/xpcom/base/nsDebugImpl.cpp
+++ b/xpcom/base/nsDebugImpl.cpp
@@ -348,16 +348,19 @@ NS_DebugBreak(uint32_t aSeverity, const 
     PrintToBuffer("%s: ", aStr);
   }
   if (aExpr) {
     PrintToBuffer("'%s', ", aExpr);
   }
   if (aFile) {
     PrintToBuffer("file %s, ", aFile);
   }
+  if (aFunction) {
+    PrintToBuffer("function %s, ", aFunction);
+  }
   if (aLine != -1) {
     PrintToBuffer("line %d", aLine);
   }
 
 #  undef PrintToBuffer
 
   // errors on platforms without a debugdlg ring a bell on stderr
 #if !defined(XP_WIN)