名前: kuroky 日時: 2005-11-10 23:57:45 IPアドレス: 220.208.112.*
>>39217 せっかく gdb にかけているので,もう少しデバッガの出力を見ると,以下のようになって いました. (gdb) frame 0 #0 0x7c941231 in ntdll!DbgUiConnectToDbg () from /cygdrive/c/WINDOWS/system32/ntdll.dll (gdb) list 4063 */ 4064 #define COMMANDLINE_OVERRIDE_HACK 1 4065 4066 #if COMMANDLINE_OVERRIDE_HACK 4067 int argc_bak; 4068 char **argv_bak; 4069 #endif 4070 4071 info.file_idx = 0; 4072 info.page_arg = NULL; (gdb) frame 1 #1 0x7c9907a8 in ntdll!KiIntSystemCall () from /cygdrive/c/WINDOWS/system32/ntdll.dll (gdb) list 4073 4074 /* BEGIN_TIMER_LOOP; */ 4075 4076 init_globals(); 4077 4078 /* 4079 * Step 1: Process command-line options and resources. 4080 */ 4081 4082 globals.program_name = xstrdup(argv[0]); (gdb) frame 8 #8 0x7c94ee18 in strchr () from /cygdrive/c/WINDOWS/system32/ntdll.dll (gdb) list 4043 ************************************************************ 4044 ************************************************************ 4045 main routine 4046 ************************************************************ 4047 ************************************************************ 4048 */ 4049 4050 int 4051 main(int argc, char **argv) 4052 { (gdb) frame 9 #9 0x7c9907c8 in ntdll!KiIntSystemCall () from /cygdrive/c/WINDOWS/system32/ntdll.dll (gdb) list 4053 int i; 4054 static struct filehist_info info; 4055 const char *file_name = NULL; 4056 const char *file_name2 = NULL; 4057 4058 /* Hack to have command-line options override ~/.xdvirc stuff: 4059 * Parse and merge them again from argv_bak, a copy of the command ine options, 4060 * via XrmParseCommand(). I think the only alternative would be to erge in all 4061 * resources manually instead of using XtInitialize(), similar to at's done in gv, 4062 * but that looks like too much trouble.
この書き込みへの返事: