[lldb-dev] platform options not visible in CommandObjectTarget

Vince Harron vharron at google.com
Fri Jan 16 23:48:55 PST 2015


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



-- 

Vince Harron | Technical Lead Manager | vharron at google.com | 858-442-0868
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/lldb-dev/attachments/20150116/4108f39a/attachment.html>


More information about the lldb-dev mailing list