changeset 21623:555b6c78d677

Fix regression preventing "dbstop <line>" in debug mode (bug #47621) * debug.cc (parse_dbfunction_params): Get cannonical name for function instead of file name.
author Lachlan Andrew <lachlanbis@gmail.com>
date Thu, 14 Apr 2016 10:27:07 +1000
parents fed1111e1899
children cf227735d5fd
files libinterp/corefcn/debug.cc
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/libinterp/corefcn/debug.cc	Sun Apr 10 19:49:50 2016 +1000
+++ b/libinterp/corefcn/debug.cc	Thu Apr 14 10:27:07 2016 +1000
@@ -290,8 +290,7 @@
               {
                 // It was a line number. Get function name from debugger.
                 if (Vdebugging)
-                  //symbol_name = get_user_code ()->name ();
-                  symbol_name = get_user_code ()->fcn_file_name ();
+                  symbol_name = get_user_code ()->profiler_name ();
                 else
                   error ("%s: function name must come before line number "
                          "and 'if'", who);