Message-ID: From: "Andris Pavenis" To: Robert Hoehne , djgpp-workers AT delorie DOT com Date: Tue, 11 May 1999 15:21:55 +0300 MIME-Version: 1.0 Content-type: Multipart/Mixed; boundary=Message-Boundary-1147 Subject: Re: gdb 4.18 for DJGPP (alpha) In-reply-to: <3737E4BB.98DFC34A@gmx.net> X-mailer: Pegasus Mail for Win32 (v3.11) Reply-To: djgpp-workers AT delorie DOT com X-Mailing-List: djgpp-workers AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk --Message-Boundary-1147 Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT Content-description: Mail message body On 11 May 99, at 10:05, Robert Hoehne wrote: > Hi all workers, > > after a very long time it is now ready. I uploaded > to DJ's site the ported gdb 4.18 archives and he placed > them in v2gnu/alphas. > > Please get them and test it. Especially to build the > binaries from the sources and of course also the precompiled > binaries. > > If there will be no big problems, I'll upload in the > next weeks the final archives. > Here are some patches for gdb-4.18 sources for DJGPP: - moved definitions and initialization of gdb_stdout and gdb_stderr and some other global variables from main.c to top.c. Some time ago it was discussed in one of gdb mailing lists - changed go32-nat.c not to kill program after exception (eg. SIGINT) - go32_ops make global as at least rhide-1.4.7 uses it After that with some hacking built rhide-1.4.7 and seems it works Andris --Message-Boundary-1147 Content-type: text/plain; charset=US-ASCII Content-disposition: inline Content-description: Attachment information. The following section of this message contains a file attachment prepared for transmission using the Internet MIME message format. If you are using Pegasus Mail, or any another MIME-compliant system, you should be able to save it or view it from within your mailer. If you cannot, please ask your system administrator for assistance. ---- File information ----------- File: gdb-4.18-990511.diff Date: 11 May 1999, 15:16 Size: 4220 bytes. Type: Text --Message-Boundary-1147 Content-type: Application/Octet-stream; name="gdb-4.18-990511.diff"; type=Text Content-disposition: attachment; filename="gdb-4.18-990511.diff" *** gdb/top.c~1 Fri Jan 29 09:46:02 1999 --- gdb/top.c Tue May 11 14:31:54 1999 *************** *** 269,274 **** --- 269,286 ---- struct cmd_list_element *showchecklist; + /* Whether this is the command line version or not */ + int tui_version = 0; + + /* Whether xdb commands will be handled */ + int xdb_commands = 0; + + /* Whether dbx commands will be handled */ + int dbx_commands = 0; + + GDB_FILE *gdb_stdout; + GDB_FILE *gdb_stderr; + /* stdio stream that command input is being read from. Set to stdin normally. Set by source_command to the file we are sourcing. Set to NULL if we are executing a user-defined command or interacting via a GUI. */ *************** *** 648,653 **** --- 660,681 ---- gdb_init (argv0) char *argv0; { + int gdb_file_size; + + gdb_file_size = sizeof(GDB_FILE); + + gdb_stdout = (GDB_FILE *)xmalloc (gdb_file_size); + gdb_stdout->ts_streamtype = afile; + gdb_stdout->ts_filestream = stdout; + gdb_stdout->ts_strbuf = NULL; + gdb_stdout->ts_buflen = 0; + + gdb_stderr = (GDB_FILE *)xmalloc (gdb_file_size); + gdb_stderr->ts_streamtype = afile; + gdb_stderr->ts_filestream = stderr; + gdb_stderr->ts_strbuf = NULL; + gdb_stderr->ts_buflen = 0; + if (pre_init_ui_hook) pre_init_ui_hook (); *** gdb/main.c~1 Wed Apr 7 20:59:22 1999 --- gdb/main.c Tue May 11 14:38:32 1999 *************** *** 55,70 **** int display_space; /* Whether this is the command line version or not */ ! int tui_version = 0; /* Whether xdb commands will be handled */ ! int xdb_commands = 0; /* Whether dbx commands will be handled */ ! int dbx_commands = 0; ! GDB_FILE *gdb_stdout; ! GDB_FILE *gdb_stderr; /* Whether to enable writing into executable and core files */ extern int write_files; --- 55,70 ---- int display_space; /* Whether this is the command line version or not */ ! extern int tui_version; /* Whether xdb commands will be handled */ ! extern int xdb_commands; /* Whether dbx commands will be handled */ ! extern int dbx_commands; ! extern GDB_FILE *gdb_stdout; ! extern GDB_FILE *gdb_stderr; /* Whether to enable writing into executable and core files */ extern int write_files; *************** *** 124,131 **** long time_at_startup = get_run_time (); - int gdb_file_size; - START_PROGRESS (argv[0], 0); #ifdef MPW --- 124,129 ---- *************** *** 161,180 **** getcwd (gdb_dirbuf, sizeof (gdb_dirbuf)); current_directory = gdb_dirbuf; - - gdb_file_size = sizeof(GDB_FILE); - - gdb_stdout = (GDB_FILE *)xmalloc (gdb_file_size); - gdb_stdout->ts_streamtype = afile; - gdb_stdout->ts_filestream = stdout; - gdb_stdout->ts_strbuf = NULL; - gdb_stdout->ts_buflen = 0; - - gdb_stderr = (GDB_FILE *)xmalloc (gdb_file_size); - gdb_stderr->ts_streamtype = afile; - gdb_stderr->ts_filestream = stderr; - gdb_stderr->ts_strbuf = NULL; - gdb_stderr->ts_buflen = 0; /* Parse arguments and options. */ { --- 159,164 ---- *** gdb/go32-nat.c~1 Wed May 5 23:06:38 1999 --- gdb/go32-nat.c Tue May 11 15:06:36 1999 *************** *** 165,171 **** static int go32_insert_nonaligned_watchpoint (int pid, CORE_ADDR waddr, CORE_ADDR addr, int len, int rw); ! static struct target_ops go32_ops; static void print_387_status (unsigned short status, struct env387 *ep) --- 165,171 ---- static int go32_insert_nonaligned_watchpoint (int pid, CORE_ADDR waddr, CORE_ADDR addr, int len, int rw); ! struct target_ops go32_ops; static void print_387_status (unsigned short status, struct env387 *ep) *************** *** 371,379 **** --- 371,384 ---- { if (a_tss.tss_irqn == sig_map[i].go32_sig) { + #if __DJGPP_MINOR__ < 3 if ((status->value.sig = sig_map[i].gdb_sig) != TARGET_SIGNAL_TRAP) status->kind = TARGET_WAITKIND_SIGNALLED; + #else + status->value.sig = sig_map[i].gdb_sig; + status->kind = TARGET_WAITKIND_STOPPED; + #endif break; } } --Message-Boundary-1147--