~ubuntu-branches/debian/squeeze/erlang/squeeze

« back to all changes in this revision

Viewing changes to lib/debugger/src/dbg_idb.erl

  • Committer: Bazaar Package Importer
  • Author(s): Erlang Packagers, Sergei Golovan
  • Date: 2006-12-03 17:07:44 UTC
  • mfrom: (2.1.11 feisty)
  • Revision ID: james.westby@ubuntu.com-20061203170744-rghjwupacqlzs6kv
Tags: 1:11.b.2-4
[ Sergei Golovan ]
Fixed erlang-base and erlang-base-hipe prerm scripts.

Show diffs side-by-side

added added

removed removed

Lines of Context:
27
27
insert(DbRef, Key, Value) ->
28
28
    case DbRef of
29
29
        {Node, ModDb} ->
30
 
            rpc:call(Node, ets, insert, [ModDb, {Key, Value}]);
 
30
            rpc:block_call(Node, ets, insert, [ModDb, {Key, Value}]);
31
31
        ModDb ->
32
32
            ets:insert(ModDb, {Key, Value})
33
33
    end.
35
35
lookup(DbRef, Key) ->
36
36
    Res = case DbRef of
37
37
              {Node, ModDb} ->
38
 
                  rpc:call(Node, ets, lookup, [ModDb, Key]);
 
38
                  rpc:block_call(Node, ets, lookup, [ModDb, Key]);
39
39
              ModDb ->
40
40
                  ets:lookup(ModDb, Key)
41
41
          end,
47
47
match_object(DbRef, Key) ->
48
48
    case DbRef of
49
49
        {Node, ModDb} ->
50
 
            rpc:call(Node, ets, match_object, [ModDb, Key]);
 
50
            rpc:block_call(Node, ets, match_object, [ModDb, Key]);
51
51
        ModDb ->
52
52
            ets:match_object(ModDb, Key)
53
53
    end.