aboutsummaryrefslogtreecommitdiff
path: root/gdb/main.c
diff options
context:
space:
mode:
authorKung Hsu <kung@cygnus>1994-03-01 23:13:56 +0000
committerKung Hsu <kung@cygnus>1994-03-01 23:13:56 +0000
commit1340861c99fc5ca7f4acacbdaa449f1d4c57eb80 (patch)
tree81dddce5ec765062988b2b06eec7dbca18a2e91c /gdb/main.c
parentbb37e7161e6c7f271f56d8b920cb3a0ad06116de (diff)
downloadgdb-1340861c99fc5ca7f4acacbdaa449f1d4c57eb80.zip
gdb-1340861c99fc5ca7f4acacbdaa449f1d4c57eb80.tar.gz
gdb-1340861c99fc5ca7f4acacbdaa449f1d4c57eb80.tar.bz2
Modified Files:
ChangeLog objfiles.c objfiles.h symfile.c target.c main.c Makefile.in configure.in Added Files: os9kread.c os9kstab.c remote-os9k.c * os9kread.c: New file to read os9000 style symbo table. * os9kstab.c: new file to read os9000 style stabs. * remote-os9k.c: remote protocol talking to os9000 rombug monitor. * objfiles.c (find_pc_objfile): new function to search objfile from pc. * objfiles.c (objfile_relocate_data): new function to relocate data symbols in symbol table. * objfiles.h: Add two aux fields in struct objfile to handle multiple symbol table files situation like in os9000. * symfile.c: Change so 'symbol-file' command can handle multiple files. Also call target_link() to get relocation infos. * target.c (target_link): new function to get relocation info when a symbol file is requested to load. * main.c (quit_command): take out 'inferior_pid != 0' condition, because in cross mode there's no inferior pid, bit they need to be detached. Makefile.in: add os9kread.c os9kstab.c and .o's. configure.in: add i386os9k target. config/i386/i386os9k.mt: new add. config/i386/tm-i386os9k.h: new add.
Diffstat (limited to 'gdb/main.c')
-rw-r--r--gdb/main.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/gdb/main.c b/gdb/main.c
index 2cdabaf..13154e1 100644
--- a/gdb/main.c
+++ b/gdb/main.c
@@ -2222,7 +2222,10 @@ quit_command (args, from_tty)
char *args;
int from_tty;
{
- if (inferior_pid != 0 && target_has_execution)
+ /* kung: inferior_pid may not exist in cross mode debugging,
+ I commented it out temporarily, if it does not cause other problem,
+ we should take it out permenantly. */
+ if (/*inferior_pid != 0 &&*/ target_has_execution)
{
if (attach_flag)
{
@@ -2239,9 +2242,13 @@ quit_command (args, from_tty)
error ("Not confirmed.");
}
}
+ /* UDI wants this, to kill the TIP. */
+ target_close (1);
+
/* Save the history information if it is appropriate to do so. */
if (write_history_p && history_filename)
write_history (history_filename);
+
exit (0);
}