diff options
Diffstat (limited to 'lib/debugger/src')
| -rw-r--r-- | lib/debugger/src/Makefile | 2 | ||||
| -rw-r--r-- | lib/debugger/src/dbg_icmd.erl | 6 | ||||
| -rw-r--r-- | lib/debugger/src/dbg_ieval.erl | 12 | ||||
| -rw-r--r-- | lib/debugger/src/dbg_wx_mon.erl | 2 | ||||
| -rw-r--r-- | lib/debugger/src/dbg_wx_settings.erl | 10 | ||||
| -rw-r--r-- | lib/debugger/src/i.erl | 4 | ||||
| -rw-r--r-- | lib/debugger/src/int.erl | 5 | 
7 files changed, 9 insertions, 32 deletions
| diff --git a/lib/debugger/src/Makefile b/lib/debugger/src/Makefile index 90189dd297..d61519f1ad 100644 --- a/lib/debugger/src/Makefile +++ b/lib/debugger/src/Makefile @@ -63,7 +63,7 @@ MODULES= \  HRL_FILES= -INTERNAL_HRL_FILES= dbg_ieval.hrl +INTERNAL_HRL_FILES= dbg_ieval.hrl dbg_wx_filedialog_win.hrl  ERL_FILES= $(MODULES:%=%.erl) diff --git a/lib/debugger/src/dbg_icmd.erl b/lib/debugger/src/dbg_icmd.erl index b1bf4ebecc..ce12c1beb3 100644 --- a/lib/debugger/src/dbg_icmd.erl +++ b/lib/debugger/src/dbg_icmd.erl @@ -1,7 +1,7 @@  %%  %% %CopyrightBegin%  %%  -%% Copyright Ericsson AB 1998-2013. All Rights Reserved. +%% Copyright Ericsson AB 1998-2014. All Rights Reserved.  %%   %% The contents of this file are subject to the Erlang Public License,  %% Version 1.1, (the "License"); you may not use this file except in @@ -49,10 +49,6 @@  %% specifies if the process should break.  %%-------------------------------------------------------------------- -%% Common Test adaptation -cmd({call_remote,0,ct_line,line,_As}, Bs, _Ieval) ->  -    Bs; -  cmd(Expr, Bs, Ieval) ->      cmd(Expr, Bs, get(next_break), Ieval). diff --git a/lib/debugger/src/dbg_ieval.erl b/lib/debugger/src/dbg_ieval.erl index 77297de0f3..96f9f91808 100644 --- a/lib/debugger/src/dbg_ieval.erl +++ b/lib/debugger/src/dbg_ieval.erl @@ -1,7 +1,7 @@  %%  %% %CopyrightBegin%  %%  -%% Copyright Ericsson AB 1998-2013. All Rights Reserved. +%% Copyright Ericsson AB 1998-2014. All Rights Reserved.  %%   %% The contents of this file are subject to the Erlang Public License,  %% Version 1.1, (the "License"); you may not use this file except in @@ -457,11 +457,6 @@ do_eval_function(Mod, Fun, As0, Bs0, _, Ieval0) when is_function(Fun);  	    exception(error, Reason, Bs0, Ieval0)      end; -%% Common Test adaptation -do_eval_function(ct_line, line, As, Bs, extern, #ieval{level=Le}=Ieval) -> -    debugged_cmd({apply,ct_line,line,As}, Bs, Ieval#ieval{level=Le+1}), -    {value, ignore, Bs}; -  do_eval_function(Mod, Name, As0, Bs0, Called, Ieval0) ->      #ieval{level=Le,line=Li,top=Top} = Ieval0,      trace(call, {Called, {Le,Li,Mod,Name,As0}}), @@ -896,11 +891,6 @@ expr({make_ext_fun,Line,MFA0}, Bs0, Ieval0) ->  	    exception(error, badarg, Bs, Ieval, true)      end; -%% Common test adaptation -expr({call_remote,0,ct_line,line,As0,Lc}, Bs0, Ieval0) -> -    {As,_Bs} = eval_list(As0, Bs0, Ieval0), -    eval_function(ct_line, line, As, Bs0, extern, Ieval0, Lc); -  %% Local function call  expr({local_call,Line,F,As0,Lc}, Bs0, #ieval{module=M} = Ieval0) ->      Ieval = Ieval0#ieval{line=Line}, diff --git a/lib/debugger/src/dbg_wx_mon.erl b/lib/debugger/src/dbg_wx_mon.erl index 4ab03985d3..aed86f5232 100644 --- a/lib/debugger/src/dbg_wx_mon.erl +++ b/lib/debugger/src/dbg_wx_mon.erl @@ -414,7 +414,7 @@ gui_cmd({'Trace Window', TraceWin}, State) ->      State2 = State#state{tracewin=TraceWin},      case State#state.attach of  	false -> ignore; -	{Flags, {dbg_ui_trace, start, StartFlags}} -> +	{Flags, {dbg_wx_trace, start, StartFlags}} ->  	    case trace_function(State2) of  		{_, _, StartFlags} -> ignore;  		NewFunction -> % {_, _, NewStartFlags} diff --git a/lib/debugger/src/dbg_wx_settings.erl b/lib/debugger/src/dbg_wx_settings.erl index 20aac74c3d..2c332c0a54 100644 --- a/lib/debugger/src/dbg_wx_settings.erl +++ b/lib/debugger/src/dbg_wx_settings.erl @@ -65,14 +65,8 @@ open_win(Win, Pos, SFile, Str, What) ->                                  {style,What}]),      case wxFileDialog:showModal(FD) of          ?wxID_OK -> -            case wxFileDialog:getPaths(FD) of -                [NewFile] -> -                    wxFileDialog:destroy(FD), -                    {ok, NewFile}; -                _ -> -                    wxFileDialog:destroy(FD), -                    cancel -            end; +            NewFile = wxFileDialog:getPath(FD), +	    {ok, NewFile};          _ ->              wxFileDialog:destroy(FD),              cancel diff --git a/lib/debugger/src/i.erl b/lib/debugger/src/i.erl index 5805501524..0afb998097 100644 --- a/lib/debugger/src/i.erl +++ b/lib/debugger/src/i.erl @@ -250,7 +250,7 @@ ist(Flag) ->  %% -------------------------------------------  iaa(Flag) -> -    iaa(Flag,{dbg_ui_trace,start,[]}). +    iaa(Flag,{dbg_wx_trace,start,[]}).  %% -------------------------------------------  %% Set the automatic attachment flag. @@ -271,7 +271,7 @@ iaa(Flag,Fnk) ->  %% -------------------------------------------  ia(Pid) -> -    ia(Pid,{dbg_ui_trace,start}). +    ia(Pid,{dbg_wx_trace,start}).  %% -------------------------------------------  %% Attach to process. diff --git a/lib/debugger/src/int.erl b/lib/debugger/src/int.erl index 2755db64b8..908390ce50 100644 --- a/lib/debugger/src/int.erl +++ b/lib/debugger/src/int.erl @@ -1,7 +1,7 @@  %%  %% %CopyrightBegin%  %%  -%% Copyright Ericsson AB 1998-2013. All Rights Reserved. +%% Copyright Ericsson AB 1998-2014. All Rights Reserved.  %%   %% The contents of this file are subject to the Erlang Public License,  %% Version 1.1, (the "License"); you may not use this file except in @@ -265,9 +265,6 @@ first_lines(Clauses) ->  first_line({clause,_L,_Vars,_,Exprs}) ->      first_line(Exprs); -%% Common Test adaptation -first_line([{call_remote,0,ct_line,line,_As}|Exprs]) -> -    first_line(Exprs);  first_line([Expr|_Exprs]) -> % Expr = {Op, Line, ..varying no of args..}      element(2, Expr). | 
