File tree 1 file changed +12
-2
lines changed
lldb/tools/debugserver/source/MacOSX
1 file changed +12
-2
lines changed Original file line number Diff line number Diff line change 631
631
if (ReadMemory (load_cmds_p, sizeof (struct uuid_command ), &uuidcmd) == sizeof (struct uuid_command ))
632
632
uuid_copy (inf.uuid , uuidcmd.uuid );
633
633
}
634
- if (lc.cmd == LC_VERSION_MIN_IPHONEOS || lc.cmd == LC_VERSION_MIN_MACOSX
635
- || lc.cmd == LC_VERSION_MIN_WATCHOS || lc.cmd == LC_VERSION_MIN_TVOS)
634
+ bool lc_cmd_known = lc.cmd == LC_VERSION_MIN_IPHONEOS || lc.cmd == LC_VERSION_MIN_MACOSX;
635
+ #if defined(LC_VERSION_MIN_TVOS)
636
+ lc_cmd_known |= lc.cmd == LC_VERSION_MIN_TVOS;
637
+ #endif
638
+ #if defined(LC_VERSION_MIN_WATCHOS)
639
+ lc_cmd_known |= lc.cmd == LC_VERSION_MIN_WATCHOS;
640
+ #endif
641
+ if (lc_cmd_known)
636
642
{
637
643
struct version_min_command vers_cmd;
638
644
if (ReadMemory (load_cmds_p, sizeof (struct version_min_command ), &vers_cmd) != sizeof (struct version_min_command ))
647
653
case LC_VERSION_MIN_MACOSX:
648
654
inf.min_version_os_name = " macosx" ;
649
655
break ;
656
+ #if defined(LC_VERSION_MIN_TVOS)
650
657
case LC_VERSION_MIN_TVOS:
651
658
inf.min_version_os_name = " tvos" ;
652
659
break ;
660
+ #endif
661
+ #if defined(LC_VERSION_MIN_WATCHOS)
653
662
case LC_VERSION_MIN_WATCHOS:
654
663
inf.min_version_os_name = " watchos" ;
655
664
break ;
665
+ #endif
656
666
default :
657
667
return false ;
658
668
}
You can’t perform that action at this time.
0 commit comments