@@ -566,13 +566,11 @@ class CommandObjectBreakpointSet : public CommandObjectParsed {
566
566
if (num_files == 0 ) {
567
567
if (!GetDefaultFile (target, file, result)) {
568
568
result.AppendError (" No file supplied and no default file available." );
569
- result.SetStatus (eReturnStatusFailed);
570
569
return false ;
571
570
}
572
571
} else if (num_files > 1 ) {
573
572
result.AppendError (" Only one file at a time is allowed for file and "
574
573
" line breakpoints." );
575
- result.SetStatus (eReturnStatusFailed);
576
574
return false ;
577
575
} else
578
576
file = m_options.m_filenames .GetFileSpecAtIndex (0 );
@@ -604,7 +602,6 @@ class CommandObjectBreakpointSet : public CommandObjectParsed {
604
602
} else {
605
603
result.AppendError (" Only one shared library can be specified for "
606
604
" address breakpoints." );
607
- result.SetStatus (eReturnStatusFailed);
608
605
return false ;
609
606
}
610
607
break ;
@@ -639,7 +636,6 @@ class CommandObjectBreakpointSet : public CommandObjectParsed {
639
636
result.AppendWarning (
640
637
" Function name regex does not accept glob patterns." );
641
638
}
642
- result.SetStatus (eReturnStatusFailed);
643
639
return false ;
644
640
}
645
641
@@ -657,7 +653,6 @@ class CommandObjectBreakpointSet : public CommandObjectParsed {
657
653
if (!GetDefaultFile (target, file, result)) {
658
654
result.AppendError (
659
655
" No files provided and could not find default file." );
660
- result.SetStatus (eReturnStatusFailed);
661
656
return false ;
662
657
} else {
663
658
m_options.m_filenames .Append (file);
@@ -669,7 +664,6 @@ class CommandObjectBreakpointSet : public CommandObjectParsed {
669
664
result.AppendErrorWithFormat (
670
665
" Source text regular expression could not be compiled: \" %s\" " ,
671
666
llvm::toString (std::move (err)).c_str ());
672
- result.SetStatus (eReturnStatusFailed);
673
667
return false ;
674
668
}
675
669
bp_sp = target.CreateSourceRegexBreakpoint (
@@ -688,7 +682,6 @@ class CommandObjectBreakpointSet : public CommandObjectParsed {
688
682
" Error setting extra exception arguments: %s" ,
689
683
precond_error.AsCString ());
690
684
target.RemoveBreakpointByID (bp_sp->GetID ());
691
- result.SetStatus (eReturnStatusFailed);
692
685
return false ;
693
686
}
694
687
} break ;
@@ -703,7 +696,6 @@ class CommandObjectBreakpointSet : public CommandObjectParsed {
703
696
result.AppendErrorWithFormat (
704
697
" Error setting extra exception arguments: %s" , error.AsCString ());
705
698
target.RemoveBreakpointByID (bp_sp->GetID ());
706
- result.SetStatus (eReturnStatusFailed);
707
699
return false ;
708
700
}
709
701
} break ;
@@ -723,7 +715,6 @@ class CommandObjectBreakpointSet : public CommandObjectParsed {
723
715
result.AppendErrorWithFormat (" Invalid breakpoint name: %s" ,
724
716
name.c_str ());
725
717
target.RemoveBreakpointByID (bp_sp->GetID ());
726
- result.SetStatus (eReturnStatusFailed);
727
718
return false ;
728
719
}
729
720
}
@@ -750,7 +741,6 @@ class CommandObjectBreakpointSet : public CommandObjectParsed {
750
741
result.SetStatus (eReturnStatusSuccessFinishResult);
751
742
} else if (!bp_sp) {
752
743
result.AppendError (" Breakpoint creation failed: No breakpoint created." );
753
- result.SetStatus (eReturnStatusFailed);
754
744
}
755
745
756
746
return result.Succeeded ();
@@ -767,12 +757,10 @@ class CommandObjectBreakpointSet : public CommandObjectParsed {
767
757
if (cur_frame == nullptr ) {
768
758
result.AppendError (
769
759
" No selected frame to use to find the default file." );
770
- result.SetStatus (eReturnStatusFailed);
771
760
return false ;
772
761
} else if (!cur_frame->HasDebugInformation ()) {
773
762
result.AppendError (" Cannot use the selected frame to find the default "
774
763
" file, it has no debug info." );
775
- result.SetStatus (eReturnStatusFailed);
776
764
return false ;
777
765
} else {
778
766
const SymbolContext &sc =
@@ -782,7 +770,6 @@ class CommandObjectBreakpointSet : public CommandObjectParsed {
782
770
} else {
783
771
result.AppendError (" Can't find the file for the selected frame to "
784
772
" use as the default file." );
785
- result.SetStatus (eReturnStatusFailed);
786
773
return false ;
787
774
}
788
775
}
@@ -923,7 +910,6 @@ class CommandObjectBreakpointEnable : public CommandObjectParsed {
923
910
924
911
if (num_breakpoints == 0 ) {
925
912
result.AppendError (" No breakpoints exist to be enabled." );
926
- result.SetStatus (eReturnStatusFailed);
927
913
return false ;
928
914
}
929
915
@@ -1037,7 +1023,6 @@ the second re-enables the first location.");
1037
1023
1038
1024
if (num_breakpoints == 0 ) {
1039
1025
result.AppendError (" No breakpoints exist to be disabled." );
1040
- result.SetStatus (eReturnStatusFailed);
1041
1026
return false ;
1042
1027
}
1043
1028
@@ -1223,7 +1208,6 @@ class CommandObjectBreakpointList : public CommandObjectParsed {
1223
1208
result.SetStatus (eReturnStatusSuccessFinishNoResult);
1224
1209
} else {
1225
1210
result.AppendError (" Invalid breakpoint ID." );
1226
- result.SetStatus (eReturnStatusFailed);
1227
1211
}
1228
1212
}
1229
1213
@@ -1321,7 +1305,6 @@ class CommandObjectBreakpointClear : public CommandObjectParsed {
1321
1305
// Early return if there's no breakpoint at all.
1322
1306
if (num_breakpoints == 0 ) {
1323
1307
result.AppendError (" Breakpoint clear: No breakpoint cleared." );
1324
- result.SetStatus (eReturnStatusFailed);
1325
1308
return result.Succeeded ();
1326
1309
}
1327
1310
@@ -1368,7 +1351,6 @@ class CommandObjectBreakpointClear : public CommandObjectParsed {
1368
1351
result.SetStatus (eReturnStatusSuccessFinishNoResult);
1369
1352
} else {
1370
1353
result.AppendError (" Breakpoint clear: No breakpoint cleared." );
1371
- result.SetStatus (eReturnStatusFailed);
1372
1354
}
1373
1355
1374
1356
return result.Succeeded ();
@@ -1473,7 +1455,6 @@ class CommandObjectBreakpointDelete : public CommandObjectParsed {
1473
1455
1474
1456
if (num_breakpoints == 0 ) {
1475
1457
result.AppendError (" No breakpoints exist to be deleted." );
1476
- result.SetStatus (eReturnStatusFailed);
1477
1458
return false ;
1478
1459
}
1479
1460
@@ -1512,7 +1493,6 @@ class CommandObjectBreakpointDelete : public CommandObjectParsed {
1512
1493
}
1513
1494
if (valid_bp_ids.GetSize () == 0 ) {
1514
1495
result.AppendError (" No disabled breakpoints." );
1515
- result.SetStatus (eReturnStatusFailed);
1516
1496
return false ;
1517
1497
}
1518
1498
} else {
@@ -1726,7 +1706,6 @@ class CommandObjectBreakpointNameConfigure : public CommandObjectParsed {
1726
1706
const size_t argc = command.GetArgumentCount ();
1727
1707
if (argc == 0 ) {
1728
1708
result.AppendError (" No names provided." );
1729
- result.SetStatus (eReturnStatusFailed);
1730
1709
return false ;
1731
1710
}
1732
1711
@@ -1741,7 +1720,6 @@ class CommandObjectBreakpointNameConfigure : public CommandObjectParsed {
1741
1720
if (!BreakpointID::StringIsBreakpointName (entry.ref (), error)) {
1742
1721
result.AppendErrorWithFormat (" Invalid breakpoint name: %s - %s" ,
1743
1722
entry.c_str (), error.AsCString ());
1744
- result.SetStatus (eReturnStatusFailed);
1745
1723
return false ;
1746
1724
}
1747
1725
}
@@ -1754,7 +1732,6 @@ class CommandObjectBreakpointNameConfigure : public CommandObjectParsed {
1754
1732
if (!bp_sp) {
1755
1733
result.AppendErrorWithFormatv (" Could not find specified breakpoint {0}" ,
1756
1734
bp_id);
1757
- result.SetStatus (eReturnStatusFailed);
1758
1735
return false ;
1759
1736
}
1760
1737
}
@@ -1836,7 +1813,6 @@ class CommandObjectBreakpointNameAdd : public CommandObjectParsed {
1836
1813
size_t num_breakpoints = breakpoints.GetSize ();
1837
1814
if (num_breakpoints == 0 ) {
1838
1815
result.SetError (" No breakpoints, cannot add names." );
1839
- result.SetStatus (eReturnStatusFailed);
1840
1816
return false ;
1841
1817
}
1842
1818
@@ -1849,7 +1825,6 @@ class CommandObjectBreakpointNameAdd : public CommandObjectParsed {
1849
1825
if (result.Succeeded ()) {
1850
1826
if (valid_bp_ids.GetSize () == 0 ) {
1851
1827
result.SetError (" No breakpoints specified, cannot add names." );
1852
- result.SetStatus (eReturnStatusFailed);
1853
1828
return false ;
1854
1829
}
1855
1830
size_t num_valid_ids = valid_bp_ids.GetSize ();
@@ -1923,7 +1898,6 @@ class CommandObjectBreakpointNameDelete : public CommandObjectParsed {
1923
1898
size_t num_breakpoints = breakpoints.GetSize ();
1924
1899
if (num_breakpoints == 0 ) {
1925
1900
result.SetError (" No breakpoints, cannot delete names." );
1926
- result.SetStatus (eReturnStatusFailed);
1927
1901
return false ;
1928
1902
}
1929
1903
@@ -1936,7 +1910,6 @@ class CommandObjectBreakpointNameDelete : public CommandObjectParsed {
1936
1910
if (result.Succeeded ()) {
1937
1911
if (valid_bp_ids.GetSize () == 0 ) {
1938
1912
result.SetError (" No breakpoints specified, cannot delete names." );
1939
- result.SetStatus (eReturnStatusFailed);
1940
1913
return false ;
1941
1914
}
1942
1915
ConstString bp_name (m_name_options.m_name .GetCurrentValue ());
@@ -2212,7 +2185,6 @@ class CommandObjectBreakpointRead : public CommandObjectParsed {
2212
2185
2213
2186
if (!error.Success ()) {
2214
2187
result.AppendError (error.AsCString ());
2215
- result.SetStatus (eReturnStatusFailed);
2216
2188
return false ;
2217
2189
}
2218
2190
@@ -2341,7 +2313,6 @@ class CommandObjectBreakpointWrite : public CommandObjectParsed {
2341
2313
if (!error.Success ()) {
2342
2314
result.AppendErrorWithFormat (" error serializing breakpoints: %s." ,
2343
2315
error.AsCString ());
2344
- result.SetStatus (eReturnStatusFailed);
2345
2316
}
2346
2317
return result.Succeeded ();
2347
2318
}
@@ -2434,7 +2405,6 @@ void CommandObjectMultiwordBreakpoint::VerifyIDs(
2434
2405
} else {
2435
2406
result.AppendError (
2436
2407
" No breakpoint specified and no last created breakpoint." );
2437
- result.SetStatus (eReturnStatusFailed);
2438
2408
}
2439
2409
return ;
2440
2410
}
@@ -2476,14 +2446,12 @@ void CommandObjectMultiwordBreakpoint::VerifyIDs(
2476
2446
result.AppendErrorWithFormat (
2477
2447
" '%s' is not a currently valid breakpoint/location id.\n " ,
2478
2448
id_str.GetData ());
2479
- result.SetStatus (eReturnStatusFailed);
2480
2449
}
2481
2450
} else {
2482
2451
i = valid_ids->GetSize () + 1 ;
2483
2452
result.AppendErrorWithFormat (
2484
2453
" '%d' is not a currently valid breakpoint ID.\n " ,
2485
2454
cur_bp_id.GetBreakpointID ());
2486
- result.SetStatus (eReturnStatusFailed);
2487
2455
}
2488
2456
}
2489
2457
}
0 commit comments