diff options
author | Steve Chamberlain <sac@cygnus> | 1996-01-04 04:21:57 +0000 |
---|---|---|
committer | Steve Chamberlain <sac@cygnus> | 1996-01-04 04:21:57 +0000 |
commit | e02a2ad9d420fe35fa2f93ec5869a81a7b5a1e5f (patch) | |
tree | 57a1365b227db50b619b12b97839e8d38b9bceaa /gdb/infcmd.c | |
parent | 9e64063e1c12ed957738547502e18b9da7a1748e (diff) | |
download | gdb-e02a2ad9d420fe35fa2f93ec5869a81a7b5a1e5f.zip gdb-e02a2ad9d420fe35fa2f93ec5869a81a7b5a1e5f.tar.gz gdb-e02a2ad9d420fe35fa2f93ec5869a81a7b5a1e5f.tar.bz2 |
* symtab.h (namespace enum): becomes typedef to avoid namespace
collision in C++.
* infcmd.c (path_command): Use empty string if PATH name not set.
* i386-tdep.c (skip_trampoline_code): New function.
* srec.c: Renamed dsrec.c to avoid filename collision.
* Makefile.in: Cope with renaming.
Update copyrights to 1996.
Diffstat (limited to 'gdb/infcmd.c')
-rw-r--r-- | gdb/infcmd.c | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/gdb/infcmd.c b/gdb/infcmd.c index d78b106..9e677ae 100644 --- a/gdb/infcmd.c +++ b/gdb/infcmd.c @@ -1,5 +1,5 @@ /* Memory-access and commands for "inferior" process, for GDB. - Copyright 1986, 1987, 1988, 1989, 1991, 1992, 1995 Free Software Foundation, Inc. + Copyright 1986, 1987, 1988, 1989, 1991, 1992, 1995, 1996 Free Software Foundation, Inc. This file is part of GDB. @@ -731,7 +731,7 @@ finish_command (arg, from_tty) val = value_being_returned (value_type, stop_registers, using_struct_return (value_of_variable (function, NULL), funcaddr, - value_type, + check_typedef (value_type), BLOCK_GCC_COMPILED (SYMBOL_BLOCK_VALUE (function)))); printf_filtered ("Value returned is $%d = ", record_latest_value (val)); @@ -922,9 +922,13 @@ path_command (dirname, from_tty) int from_tty; { char *exec_path; - + char *env; dont_repeat (); - exec_path = strsave (get_in_environ (inferior_environ, path_var_name)); + env = get_in_environ (inferior_environ, path_var_name); + /* Can be null if path is not set */ + if (!env) + env = ""; + exec_path = strsave (env); mod_path (dirname, &exec_path); set_in_environ (inferior_environ, path_var_name, exec_path); free (exec_path); @@ -1056,6 +1060,8 @@ registers_info (addr_exp, fpregs) if (!target_has_registers) error ("The program has no registers now."); + if (selected_frame == NULL) + error ("No selected frame."); if (!addr_exp) { @@ -1126,6 +1132,8 @@ attach_command (args, from_tty) char *args; int from_tty; { + extern int auto_solib_add_at_startup; + dont_repeat (); /* Not for the faint of heart */ if (target_has_execution) |