diff options
author | Jerome Guitton <guitton@adacore.com> | 2007-09-04 09:45:06 +0000 |
---|---|---|
committer | Jerome Guitton <guitton@adacore.com> | 2007-09-04 09:45:06 +0000 |
commit | 0ad36c846abc2790c1cde2cd6d69831b413be2cf (patch) | |
tree | b27c61f07b109d7aa856937682bc0e41875e57c9 /sim/ppc/emul_bugapi.c | |
parent | 7bc3e93c1b29c13c6e04dd57e50c77028dc61817 (diff) | |
download | gdb-0ad36c846abc2790c1cde2cd6d69831b413be2cf.zip gdb-0ad36c846abc2790c1cde2cd6d69831b413be2cf.tar.gz gdb-0ad36c846abc2790c1cde2cd6d69831b413be2cf.tar.bz2 |
* sim/ppc/emul_bugapi.c (emul_bugapi_create): quote the file
name property before parsing it.
Diffstat (limited to 'sim/ppc/emul_bugapi.c')
-rw-r--r-- | sim/ppc/emul_bugapi.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/sim/ppc/emul_bugapi.c b/sim/ppc/emul_bugapi.c index 97028bf..9e09d24 100644 --- a/sim/ppc/emul_bugapi.c +++ b/sim/ppc/emul_bugapi.c @@ -203,6 +203,7 @@ emul_bugapi_create(device *root, { device *node; os_emul_data *bugapi; + char *filename; /* check it really is for us */ if (name != NULL @@ -301,8 +302,12 @@ emul_bugapi_create(device *root, : "ppc-xcoff")); if (image != NULL) - tree_parse(root, "/openprom/init/load-binary/file-name \"%s", - bfd_get_filename(image)); + { + filename = tree_quote_property (bfd_get_filename(image)); + tree_parse(root, "/openprom/init/load-binary/file-name %s", + filename); + free (filename); + } return bugapi; } |