summaryrefslogtreecommitdiff
path: root/sim/h8300
diff options
context:
space:
mode:
authorDaniel Jacobowitz <dan@debian.org>2007-07-03 17:19:38 +0000
committerDaniel Jacobowitz <dan@debian.org>2007-07-03 17:19:38 +0000
commit1b75918eb87e1e24053585f0120e2f2e43d79f0f (patch)
tree6c90e2b337aa8f00882c93506c73d8ec0df5fa83 /sim/h8300
parentf933bf7a06219c044dbc920d66a4d68146ad6f10 (diff)
downloadgdb-1b75918eb87e1e24053585f0120e2f2e43d79f0f.tar.gz
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/h8300')
-rw-r--r--sim/h8300/ChangeLog5
-rw-r--r--sim/h8300/compile.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/sim/h8300/ChangeLog b/sim/h8300/ChangeLog
index f0d46016a55..43ab42d24c6 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 0d307577ae3..34cb057db3f 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;