2 * Copyright 2010, Axel Dörfler, axeld@pinc-software.de.
3 * Distributed under the terms of the MIT License.
7 #include <DesktopLink.h>
8 #include <ServerProtocol.h>
14 extern const char* __progname
;
18 send_debug_message(team_id team
, int32 code
)
20 BPrivate::DesktopLink link
;
22 status_t status
= link
.InitCheck();
26 // prepare the message
27 status
= link
.StartMessage(code
);
31 status
= link
.Attach(team
);
43 fprintf(stderr
, "usage: %s -[ab] <team-id> [...]\n", __progname
);
49 main(int argc
, char** argv
)
54 bool dumpAllocator
= false;
55 bool dumpBitmaps
= false;
58 while (argv
[i
][0] == '-') {
59 const char* arg
= &argv
[i
][1];
63 else if (arg
[0] == 'b')
73 for (int32 i
= 1; i
< argc
; i
++) {
74 team_id team
= atoi(argv
[i
]);
79 send_debug_message(team
, AS_DUMP_ALLOCATOR
);
81 send_debug_message(team
, AS_DUMP_BITMAPS
);