summaryrefslogtreecommitdiff
path: root/lib/debugger
diff options
context:
space:
mode:
authorKian-Meng, Ang <kianmeng@cpan.org>2021-12-08 06:24:57 +0800
committerKian-Meng, Ang <kianmeng@cpan.org>2021-12-10 06:49:43 +0800
commitfa3370b7e24fa7afc955ae1b22efd97205957fad (patch)
tree101bb57824b13543ff2e23f661149059b3e9ed07 /lib/debugger
parent44cc09b08b2d358ea055826c3323680a314e732c (diff)
downloaderlang-fa3370b7e24fa7afc955ae1b22efd97205957fad.tar.gz
Fix typos in lib/debugger
Co-authored-by: Björn Gustavsson <bgustavsson@gmail.com>
Diffstat (limited to 'lib/debugger')
-rw-r--r--lib/debugger/doc/src/notes.xml2
-rw-r--r--lib/debugger/src/dbg_ieval.erl6
-rw-r--r--lib/debugger/src/dbg_iload.erl2
-rw-r--r--lib/debugger/src/dbg_wx_break_win.erl4
-rw-r--r--lib/debugger/src/i.erl2
-rw-r--r--lib/debugger/test/bs_match_int_SUITE.erl2
-rw-r--r--lib/debugger/test/dbg_ui_SUITE.erl6
-rw-r--r--lib/debugger/test/dbg_ui_SUITE_data/manual_data/src/lists1.erl4
-rw-r--r--lib/debugger/test/exception_SUITE.erl2
-rw-r--r--lib/debugger/test/guard_SUITE.erl4
-rw-r--r--lib/debugger/test/int_SUITE_data/lists1.erl4
-rw-r--r--lib/debugger/test/int_SUITE_data/my_lists.erl16
-rw-r--r--lib/debugger/test/int_eval_SUITE.erl2
-rw-r--r--lib/debugger/test/int_eval_SUITE_data/my_int_eval_module.erl2
-rw-r--r--lib/debugger/test/trycatch_SUITE.erl2
15 files changed, 30 insertions, 30 deletions
diff --git a/lib/debugger/doc/src/notes.xml b/lib/debugger/doc/src/notes.xml
index a9d196dd1e..5e24034d02 100644
--- a/lib/debugger/doc/src/notes.xml
+++ b/lib/debugger/doc/src/notes.xml
@@ -254,7 +254,7 @@
<list>
<item>
<p>
- Update build scripts to not make assumtions about where
+ Update build scripts to not make assumptions about where
env, cp and perl are located.</p>
<p>
Own Id: OTP-13800</p>
diff --git a/lib/debugger/src/dbg_ieval.erl b/lib/debugger/src/dbg_ieval.erl
index 3185b1e9e3..7e24d7e420 100644
--- a/lib/debugger/src/dbg_ieval.erl
+++ b/lib/debugger/src/dbg_ieval.erl
@@ -84,7 +84,7 @@ exit_info(Int, AttPid, OrigPid, Reason, ExitInfo) ->
%%--------------------------------------------------------------------
%% eval_expr(Expr, Bs, Ieval) -> {value, Value, Bs}
%%
-%% Evalute a shell expression in the real process.
+%% Evaluate a shell expression in the real process.
%% Called (dbg_icmd) in response to a user request.
%%--------------------------------------------------------------------
eval_expr(Expr0, Bs, Ieval) ->
@@ -266,7 +266,7 @@ meta_loop(Debugged, Bs, #ieval{level=Le} = Ieval) ->
end,
do_exception(Class, Reason, MakeStk, Bs, Ieval);
- %% Error must have occured within a re-entry to
+ %% Error must have occurred within a re-entry to
%% interpreted code, simply raise the exception
_ ->
erlang:Class(Reason)
@@ -669,7 +669,7 @@ expr({map,Line,E0,Fs0}, Bs0, Ieval0) ->
%% Record update
expr({record_update,Line,Es},Bs,#ieval{level=Le}=Ieval0) ->
- %% Incr Level, we don't need to step (next) trough temp
+ %% Incr Level, we don't need to step (next) through temp
%% variables creation and matching
Ieval = Ieval0#ieval{top=false, line=Line, level=Le+1},
Seq = fun(E, {_, _, Bs1}) -> expr(E, Bs1, Ieval) end,
diff --git a/lib/debugger/src/dbg_iload.erl b/lib/debugger/src/dbg_iload.erl
index e7b74370fc..c865e05ef6 100644
--- a/lib/debugger/src/dbg_iload.erl
+++ b/lib/debugger/src/dbg_iload.erl
@@ -900,7 +900,7 @@ record_pattern(_, _, _, _, _, Acc) -> lists:reverse(Acc).
%% The debugger converts both strings "abc" and lists [67, 68, 69]
%% into {value, Line, [67, 68, 69]}, making it impossible to later
-%% distingish one or the other inside binaries when evaluating. To
+%% distinguish one or the other inside binaries when evaluating. To
%% avoid <<[67, 68, 69]>> from evaluating, we convert strings into
%% chars to avoid the ambiguity.
bin_expand_strings(Es) ->
diff --git a/lib/debugger/src/dbg_wx_break_win.erl b/lib/debugger/src/dbg_wx_break_win.erl
index 10e9272254..3f7b985791 100644
--- a/lib/debugger/src/dbg_wx_break_win.erl
+++ b/lib/debugger/src/dbg_wx_break_win.erl
@@ -214,9 +214,9 @@ handle_event(#wx{id=?wxID_OK},#winInfo{win=Win,text=Text, entries=Es, trigger=Tr
%% Non function box
Mod = wxComboBox:getValue(Text),
Data = check_input(Es),
- Trigged = get_trigger(Trigger),
+ Triggered = get_trigger(Trigger),
wxDialog:destroy(Win),
- {break, [[list_to_atom(Mod)|Data]], Trigged};
+ {break, [[list_to_atom(Mod)|Data]], Triggered};
handle_event(_WxEvent, _WinInfo) ->
%% io:format("Ev: ~p ~n", [_WxEvent]),
diff --git a/lib/debugger/src/i.erl b/lib/debugger/src/i.erl
index 853fa529a0..6269f51944 100644
--- a/lib/debugger/src/i.erl
+++ b/lib/debugger/src/i.erl
@@ -276,7 +276,7 @@ ia(Pid) ->
%% -------------------------------------------
%% Attach to process.
-%% X,Y,Z is combind to a process identity.
+%% X,Y,Z is combined to a process identity.
%% -------------------------------------------
ia(X,Y,Z) ->
diff --git a/lib/debugger/test/bs_match_int_SUITE.erl b/lib/debugger/test/bs_match_int_SUITE.erl
index 8ff5fe260e..dc58a7d5a6 100644
--- a/lib/debugger/test/bs_match_int_SUITE.erl
+++ b/lib/debugger/test/bs_match_int_SUITE.erl
@@ -263,7 +263,7 @@ match_huge_int(Config) when is_list(Config) ->
8 ->
%% An attempt will be made to allocate heap space for
%% the bignum (which will probably fail); only if the
- %% allocation succeds will the matching fail because
+ %% allocation succeeds will the matching fail because
%% the binary is too small.
ok
end,
diff --git a/lib/debugger/test/dbg_ui_SUITE.erl b/lib/debugger/test/dbg_ui_SUITE.erl
index 32577d48cd..75f97785c9 100644
--- a/lib/debugger/test/dbg_ui_SUITE.erl
+++ b/lib/debugger/test/dbg_ui_SUITE.erl
@@ -205,13 +205,13 @@ Interpret one module").
?MAN_CASE(finish3, "Finish the current function body",
- "Call the fucntion test:test1() from the shell. Press Finish to evaluate the remaining lines in the function. The result printed in the shell should be: {\"peter\",[1,2,4,a,b,c],\"olin\"}").
+ "Call the function test:test1() from the shell. Press Finish to evaluate the remaining lines in the function. The result printed in the shell should be: {\"peter\",[1,2,4,a,b,c],\"olin\"}").
?MAN_CASE(killinit3,"Set up for killing and clearing processes",
"Call test:test2() from the shell. Set a break point at the last line of test:test2. Click Continue. This should open three new attach windows. One for each spawn called in test:test2/0. ").
?MAN_CASE(killone3, "Kill a process and clear it",
- "In one of the newly openend Attach windows: select Process->Kill. A message should appear above the Code Area in the Attach window. Use Windows->Monitor to verify that the Monitor window also shows that the process has been killed. In the Monitor window: select Edit->Clear. This should do two things: 1) close/remove the window of the killed process. 2) Remove the entry of the killed process from the monitor window.").
+ "In one of the newly opened Attach windows: select Process->Kill. A message should appear above the Code Area in the Attach window. Use Windows->Monitor to verify that the Monitor window also shows that the process has been killed. In the Monitor window: select Edit->Clear. This should do two things: 1) close/remove the window of the killed process. 2) Remove the entry of the killed process from the monitor window.").
?MAN_CASE(killall3,"KIll all processes, and clear them",
"In the Monitor window: Select Edit->Kill All. Verify that all processes have been killed (in their respective windows and in the monitor window). Windows will be raised as their processes die. Next select, Edit->Clear. All attach windows should now be closed. Their entris should also disappear from the monitor window. The shell should have reported: ** exited: killed **").
@@ -250,7 +250,7 @@ Interpret one module").
%% SET 6 (Distribution)
?MAN_CASE(distsetup6,"Set up distribution",
- "Start two erlang systems [foo,bar] (with option -sname), make them aware of eachother using net_adm:ping/1. Start the debugger on foo. Interpret the modules [test, lists1, ordsets1]. Set attach on First call. ").
+ "Start two erlang systems [foo,bar] (with option -sname), make them aware of each other using net_adm:ping/1. Start the debugger on foo. Interpret the modules [test, lists1, ordsets1]. Set attach on First call. ").
diff --git a/lib/debugger/test/dbg_ui_SUITE_data/manual_data/src/lists1.erl b/lib/debugger/test/dbg_ui_SUITE_data/manual_data/src/lists1.erl
index 32aabfcbb9..599577dbfc 100644
--- a/lib/debugger/test/dbg_ui_SUITE_data/manual_data/src/lists1.erl
+++ b/lib/debugger/test/dbg_ui_SUITE_data/manual_data/src/lists1.erl
@@ -156,7 +156,7 @@ sublist([H|T], L) when L > 0 ->
sublist(List, L) -> [].
%% delete(Item, List) -> List'
-%% Delete the first occurance of Item from the list L.
+%% Delete the first occurrence of Item from the list L.
delete(Item, [Item|Rest]) -> Rest;
delete(Item, [H|Rest]) ->
@@ -221,7 +221,7 @@ flatten([], [H|Cont], Tail) ->
flatten([], [], Tail) ->
Tail.
-%% flat_length(List) (undocumented can be rmove later)
+%% flat_length(List) (undocumented can be removed later)
%% Calculate the length of a list of lists.
flat_length(List) -> flatlength(List).
diff --git a/lib/debugger/test/exception_SUITE.erl b/lib/debugger/test/exception_SUITE.erl
index 506d4d0366..5bbebbcc79 100644
--- a/lib/debugger/test/exception_SUITE.erl
+++ b/lib/debugger/test/exception_SUITE.erl
@@ -179,7 +179,7 @@ pending({Code,[{?MODULE,Func,Arity,_}|_]}, Func, Args, Code)
pending(Reason, _Function, _Args, _Code) ->
ct:fail({bad_exit_reason,Reason}).
-%% Test that doing arithmetics on [] gives a badarith EXIT and not a crash.
+%% Test that doing arithmetic on [] gives a badarith EXIT and not a crash.
nil_arith(Config) when is_list(Config) ->
ba_plus_minus_times([], []),
diff --git a/lib/debugger/test/guard_SUITE.erl b/lib/debugger/test/guard_SUITE.erl
index 02a1bbd66b..7fd3781764 100644
--- a/lib/debugger/test/guard_SUITE.erl
+++ b/lib/debugger/test/guard_SUITE.erl
@@ -203,7 +203,7 @@ guard_bifs(Config) when list(Config) ->
Big = -237849247829874297658726487367328971246284736473821617265433,
Float = 387924.874,
- %% Succeding use of guard bifs.
+ %% Succeeding use of guard bifs.
try_gbif('abs/1', Big, -Big),
try_gbif('float/1', Big, float(Big)),
@@ -1436,7 +1436,7 @@ traverse_dcd(Config) when is_list(Config) ->
%% The function starts out with 3 arguments in {x,0}, {x,1}, {x,2}.
%% The outer match of a two tuple will places the first element in {x,3} and
%% second in {x,4}. The guard for the first clause must make ensure that all of those
-%% registers are restored befor entering the second clause.
+%% registers are restored before entering the second clause.
%%
%% (From mnesia_checkpoint.erl, modified.)
diff --git a/lib/debugger/test/int_SUITE_data/lists1.erl b/lib/debugger/test/int_SUITE_data/lists1.erl
index 32aabfcbb9..599577dbfc 100644
--- a/lib/debugger/test/int_SUITE_data/lists1.erl
+++ b/lib/debugger/test/int_SUITE_data/lists1.erl
@@ -156,7 +156,7 @@ sublist([H|T], L) when L > 0 ->
sublist(List, L) -> [].
%% delete(Item, List) -> List'
-%% Delete the first occurance of Item from the list L.
+%% Delete the first occurrence of Item from the list L.
delete(Item, [Item|Rest]) -> Rest;
delete(Item, [H|Rest]) ->
@@ -221,7 +221,7 @@ flatten([], [H|Cont], Tail) ->
flatten([], [], Tail) ->
Tail.
-%% flat_length(List) (undocumented can be rmove later)
+%% flat_length(List) (undocumented can be removed later)
%% Calculate the length of a list of lists.
flat_length(List) -> flatlength(List).
diff --git a/lib/debugger/test/int_SUITE_data/my_lists.erl b/lib/debugger/test/int_SUITE_data/my_lists.erl
index dade8e824c..0d391de5e2 100644
--- a/lib/debugger/test/int_SUITE_data/my_lists.erl
+++ b/lib/debugger/test/int_SUITE_data/my_lists.erl
@@ -157,7 +157,7 @@ sublist([H|T], L) when L > 0 ->
sublist(List, L) -> [].
%% delete(Item, List) -> List'
-%% Delete the first occurance of Item from the list L.
+%% Delete the first occurrence of Item from the list L.
delete(Item, [Item|Rest]) -> Rest;
delete(Item, [H|Rest]) ->
@@ -222,7 +222,7 @@ flatten([], [H|Cont], Tail) ->
flatten([], [], Tail) ->
Tail.
-%% flat_length(List) (undocumented can be rmove later)
+%% flat_length(List) (undocumented can be removed later)
%% Calculate the length of a list of lists.
flat_length(List) -> flatlength(List).
@@ -618,7 +618,7 @@ sublist_1([H|T], L) when L > 0 ->
sublist_1(List, L) -> [].
%% delete(Item, List) -> List'
-%% Delete the first occurance of Item from the list L.
+%% Delete the first occurrence of Item from the list L.
delete_1(Item, [Item|Rest]) -> Rest;
delete_1(Item, [H|Rest]) ->
@@ -683,7 +683,7 @@ flatten_1([], [H|Cont], Tail) ->
flatten_1([], [], Tail) ->
Tail.
-%% flat_length(List) (undocumented can be rmove later)
+%% flat_length(List) (undocumented can be removed later)
%% Calculate the length of a list of lists.
flat_length_1(List) -> flatlength_1(List).
@@ -1082,7 +1082,7 @@ sublist_2([H|T], L) when L > 0 ->
sublist_2(List, L) -> [].
%% delete_2(Item, List) -> List'
-%% Delete the first occurance of Item from the list L.
+%% Delete the first occurrence of Item from the list L.
delete_2(Item, [Item|Rest]) -> Rest;
delete_2(Item, [H|Rest]) ->
@@ -1147,7 +1147,7 @@ flatten_2([], [H|Cont], Tail) ->
flatten_2([], [], Tail) ->
Tail.
-%% flat_length_2(List) _2(undocumented can be rmove later)
+%% flat_length_2(List) _2(undocumented can be removed later)
%% Calculate the length of a list of lists.
flat_length_2(List) -> flatlength_2(List).
@@ -1544,7 +1544,7 @@ sublist_3([H|T], L) when L > 0 ->
sublist_3(List, L) -> [].
%% delete_3(Item, List) -> List'
-%% Delete the first occurance of Item from the list L.
+%% Delete the first occurrence of Item from the list L.
delete_3(Item, [Item|Rest]) -> Rest;
delete_3(Item, [H|Rest]) ->
@@ -1609,7 +1609,7 @@ flatten_3([], [H|Cont], Tail) ->
flatten_3([], [], Tail) ->
Tail.
-%% flat_length_3(List) _3(undocumented can be rmove later)
+%% flat_length_3(List) _3(undocumented can be removed later)
%% Calculate the length of a list of lists.
flat_length_3(List) -> flatlength_3(List).
diff --git a/lib/debugger/test/int_eval_SUITE.erl b/lib/debugger/test/int_eval_SUITE.erl
index 456110a399..a59d679cbc 100644
--- a/lib/debugger/test/int_eval_SUITE.erl
+++ b/lib/debugger/test/int_eval_SUITE.erl
@@ -89,7 +89,7 @@ bifs_outside_erlang(Config) when is_list(Config) ->
ok = spawn_eval(Fun),
ok.
-%% Try evalutate spawn_link/3.
+%% Try evaluating spawn_link/3.
spawning(Config) when is_list(Config) ->
ok = spawn_eval(fun() -> ?IM:spawn_test() end).
diff --git a/lib/debugger/test/int_eval_SUITE_data/my_int_eval_module.erl b/lib/debugger/test/int_eval_SUITE_data/my_int_eval_module.erl
index ebb039adc7..12b476888b 100644
--- a/lib/debugger/test/int_eval_SUITE_data/my_int_eval_module.erl
+++ b/lib/debugger/test/int_eval_SUITE_data/my_int_eval_module.erl
@@ -118,7 +118,7 @@ external_call_test(Data) ->
{yes,Data} = i_am_exported(Data),
{yes,Data} = ?MODULE:i_am_exported(Data),
- %% Excercise the function cache in the interpreter.
+ %% Exercise the function cache in the interpreter.
{ok,Data,[a,b]} = not_exported(Data, [a,b]),
{yes,Data} = i_am_exported(Data),
diff --git a/lib/debugger/test/trycatch_SUITE.erl b/lib/debugger/test/trycatch_SUITE.erl
index 2857cac9a3..924811fad1 100644
--- a/lib/debugger/test/trycatch_SUITE.erl
+++ b/lib/debugger/test/trycatch_SUITE.erl
@@ -120,7 +120,7 @@ basic(Conf) when is_list(Conf) ->
%% Try/of
ok = try V of
{a,variable} -> ok
- catch nisse -> erro
+ catch nisse -> error
end,
ok.