aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>1992-10-05 21:03:18 +0000
committerIan Lance Taylor <ian@airs.com>1992-10-05 21:03:18 +0000
commit5d5a9c3ccb574948b6a142abb326aa1ed1dd2cd5 (patch)
tree7d66d0d63222bc3ab651857e5124f0d0e125e7a6
parent919128647165bdfa46272f6c03b0d260802912e7 (diff)
downloadgdb-5d5a9c3ccb574948b6a142abb326aa1ed1dd2cd5.zip
gdb-5d5a9c3ccb574948b6a142abb326aa1ed1dd2cd5.tar.gz
gdb-5d5a9c3ccb574948b6a142abb326aa1ed1dd2cd5.tar.bz2
Mon Oct 5 09:46:44 1992 Ian Lance Taylor (ian@cygnus.com)
* remote-udi.c (udi_create_inferior): run with no arguments should not pass the program name as an argument, since the UDI code already handles that. (udi_load): get the symbols from prog_name, not arg_string (the load command should really use arg_string as the program name, not prog_name, but at least the run command works now).
-rw-r--r--gdb/ChangeLog9
-rw-r--r--gdb/remote-udi.c9
2 files changed, 12 insertions, 6 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 5de3b8c..704d10b 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,6 +1,13 @@
Mon Oct 5 09:46:44 1992 Ian Lance Taylor (ian@cygnus.com)
- * munch: HP9000/300 nm puts an etra space between T and symbol
+ * remote-udi.c (udi_create_inferior): run with no arguments should
+ not pass the program name as an argument, since the UDI code
+ already handles that.
+ (udi_load): get the symbols from prog_name, not arg_string (the
+ load command should really use arg_string as the program name, not
+ prog_name, but at least the run command works now).
+
+ * munch: HP9000/300 nm puts an extra space between T and symbol
name.
* config/irix4.mh: added -lsun to XM_CLIBS to get RPC functions
diff --git a/gdb/remote-udi.c b/gdb/remote-udi.c
index 3f6dc78..cf577d6 100644
--- a/gdb/remote-udi.c
+++ b/gdb/remote-udi.c
@@ -180,8 +180,7 @@ udi_create_inferior (execfile, args, env)
* no file to download
*/
#else
- if(*args == '\0') args = prog_name;
- udi_load(args, 0);
+ udi_load(args, 0);
#endif /* !ULTRA3 */
init_wait_for_inferior ();
@@ -966,8 +965,8 @@ int from_tty;
#if defined(KERNEL_DEBUGGING) && defined(ULTRA3)
printf("The kernel had better be loaded already! Loading not done.\n");
#else
- if (arg_string == 0)
- error ("The load command takes a file name");
+ if (prog_name == 0)
+ error ("No program name");
arg_string = tilde_expand (arg_string);
sprintf(cmd_line,"y %s %s", prog_name, arg_string);
@@ -993,7 +992,7 @@ int from_tty;
if(yank_cmd(token, token_count))
error("Failure when tring to load program");
immediate_quit--;
- symbol_file_add (arg_string, from_tty, 0, 0, 0, 0);/*DEBUG need to add text_addr */
+ symbol_file_add (prog_name, from_tty, 0, 0, 0, 0);/*DEBUG need to add text_addr */
#endif
}