diff options
author | Mark Mitchell <mark@codesourcery.com> | 2006-02-02 06:45:49 +0000 |
---|---|---|
committer | Mark Mitchell <mark@codesourcery.com> | 2006-02-02 06:45:49 +0000 |
commit | 59f6d9d6f82ccc6c306740f7eedb613fe0f281a3 (patch) | |
tree | 60db3cf8130901a9842110d26c450e43813e1bf3 /sim/ppc/emul_netbsd.c | |
parent | e26af52fd134ceb47298a102d3a0d6ab46e7d69a (diff) | |
download | ppe42-binutils-59f6d9d6f82ccc6c306740f7eedb613fe0f281a3.tar.gz ppe42-binutils-59f6d9d6f82ccc6c306740f7eedb613fe0f281a3.zip |
* emul_netbsd.c (emul_netbsd_create): Quote file-name property.
* emul_unix.c (emul_unix_create): Likewise.
* tree.c (libiberty.h): Include it.
(tree_quote_property): New function.
* tree.h (tree_quote_property): Declare.
Diffstat (limited to 'sim/ppc/emul_netbsd.c')
-rw-r--r-- | sim/ppc/emul_netbsd.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sim/ppc/emul_netbsd.c b/sim/ppc/emul_netbsd.c index 0069064d33..f81c9cb250 100644 --- a/sim/ppc/emul_netbsd.c +++ b/sim/ppc/emul_netbsd.c @@ -1383,6 +1383,7 @@ emul_netbsd_create(device *root, int elf_binary; os_emul_data *bsd_data; device *vm; + char *filename; /* check that this emulation is really for us */ if (name != NULL && strcmp(name, "netbsd") != 0) @@ -1417,8 +1418,10 @@ emul_netbsd_create(device *root, (unsigned long)(top_of_stack - stack_size)); tree_parse(vm, "./nr-bytes 0x%x", stack_size); + filename = tree_quote_property (bfd_get_filename(image)); tree_parse(root, "/openprom/vm/map-binary/file-name %s", - bfd_get_filename(image)); + filename); + free (filename); /* finish the init */ tree_parse(root, "/openprom/init/register/pc 0x%lx", |