diff options
author | Daniel Jacobowitz <drow@false.org> | 2007-07-03 17:19:38 +0000 |
---|---|---|
committer | Daniel Jacobowitz <drow@false.org> | 2007-07-03 17:19:38 +0000 |
commit | 917c78f96218e5c9b76ce2de83579e6508ddd29c (patch) | |
tree | 5d781e981e4a74dc0f40520eeb581f574f6fc6e5 /sim | |
parent | a25694b439415951f25d38a0c867fc4a48bdab52 (diff) | |
download | gdb-917c78f96218e5c9b76ce2de83579e6508ddd29c.zip gdb-917c78f96218e5c9b76ce2de83579e6508ddd29c.tar.gz gdb-917c78f96218e5c9b76ce2de83579e6508ddd29c.tar.bz2 |
2007-07-03 Yoshinori Sato <ysato@users.sourceforge.jp>
* compile.c (sim_resume): Fix the last byte of ARGV for
SYS_CMDLINE.
Diffstat (limited to 'sim')
-rw-r--r-- | sim/h8300/ChangeLog | 5 | ||||
-rw-r--r-- | sim/h8300/compile.c | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/sim/h8300/ChangeLog b/sim/h8300/ChangeLog index f0d4601..43ab42d 100644 --- a/sim/h8300/ChangeLog +++ b/sim/h8300/ChangeLog @@ -1,3 +1,8 @@ +2007-07-03 Yoshinori Sato <ysato@users.sourceforge.jp> + + * compile.c (sim_resume): Fix the last byte of ARGV for + SYS_CMDLINE. + 2006-12-21 Hans-Peter Nilsson <hp@axis.com> * acconfig.h: Remove. diff --git a/sim/h8300/compile.c b/sim/h8300/compile.c index 0d30757..34cb057 100644 --- a/sim/h8300/compile.c +++ b/sim/h8300/compile.c @@ -2810,7 +2810,7 @@ sim_resume (SIM_DESC sd, int step, int siggnal) ind_arg_len = 0; /* The size of the commandline argument. */ - ind_arg_len = strlen (h8_get_cmdline_arg (sd, i) + 1); + ind_arg_len = strlen (h8_get_cmdline_arg (sd, i)) + 1; /* The total size of the command line string. */ size_cmdline += ind_arg_len; |