8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-23 07:23:04 +01:00

Integrate fb_event_print into the VC6 build. Time will say if it's useful or not.

This commit is contained in:
robocop 2006-04-30 06:43:59 +00:00
parent a9e71e43dd
commit cf537a437a
2 changed files with 20 additions and 4 deletions

View File

@ -174,6 +174,21 @@ Package=<4>
###############################################################################
Project: "fb_event_print"=.\fb_event_print.dsp - Package Owner=<4>
Package=<5>
{{{
}}}
Package=<4>
{{{
Begin Project Dependency
Project_Dep_Name common
End Project Dependency
}}}
###############################################################################
Project: "fb_inet_server"=.\fb_inet_server.dsp - Package Owner=<4>
Package=<5>

View File

@ -27,6 +27,7 @@
#include "../jrd/event.h"
#include "../jrd/event_proto.h"
#include "../jrd/gds_proto.h"
#include "../common/utils_proto.h"
#define isc_print_status gds__print_status
@ -63,12 +64,12 @@ int main(int argc, char *argv[])
return 1;
}
if ((argc == 2) && (strncmp(argv[1], "-d", 2) == 0))
event_table_dump();
if ((argc == 2) && fb_utils::strnicmp(argv[1], "-dump", MAX(strlen(argv[1]), 2)) == 0)
event_table_dump();
else if (argc == 1)
event_list();
else
fprintf(stderr, "usage: eventprint [-dump]\n");
fprintf(stderr, "usage: fb_event_print [-dump]\n");
return 0;
}
@ -215,7 +216,7 @@ static void event_table_dump(void)
case type_reqb:
{
printf("evh_req* (%ld)\n", block->hdr_length);
printf("REQUEST BLOCK (%ld)\n", block->hdr_length);
evt_req* request = (evt_req*) block;
printf("\tProcess: %ld, interests: %ld, ast: %lx, arg: %lx\n",
request->req_process, request->req_interests,