platform options not visible in CommandObjectTarget

Both CommandObjectPlatform/Target have a member m_platform_options

/usr/local/google/home/vharron/ll/svn/lldb/source/Commands/CommandObjectPlatform.cpp:276
OptionGroupPlatform m_platform_options;

/usr/local/google/home/vharron/ll/svn/lldb/source/Commands/CommandObjectTarget.cpp:440
OptionGroupPlatform m_platform_options;

When I

(lldb) platform select remote-gdb-server

it gets stored in CommandObjectPlatform::m_platform_options

But in

/usr/local/google/home/vharron/ll/svn/lldb/source/Commands/CommandObjectTarget.cpp:341
Error error (debugger.GetTargetList().CreateTarget (debugger,
// remote_file ? remote_file : file_spec,
file_path,
arch_cstr,
get_dependent_files,
&m_platform_options,
target_sp));

CommandObjectTarget::m_platform_options is passed to create target, which doesn’t have any target selected. Any suggestions? Are there any examples of options being shared between CommandObjects?

Thanks,

Vince

Clarification for last email:

But in

But When I
(lldb) file ~/ll/cross/lldb/test/functionalities/register/a.out

This appears to affect remote-macosx the same way.

Nevermind, I think I’ve figured this out.

http://reviews.llvm.org/D7049