Skip to content

Commit ad45f5d

Browse files
author
Mikhail Zakharov
committed
[lldb] Give a new dump command a clearer name
1 parent d5a8a89 commit ad45f5d

File tree

2 files changed

+19
-18
lines changed

2 files changed

+19
-18
lines changed

lldb/source/Commands/CommandObjectProcess.cpp

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1827,16 +1827,17 @@ class CommandObjectMultiwordProcessTrace : public CommandObjectMultiword {
18271827
~CommandObjectMultiwordProcessTrace() override = default;
18281828
};
18291829

1830-
// CommandObjectProcessDumpModId
1831-
class CommandObjectProcessDumpModId : public CommandObjectParsed {
1830+
// CommandObjectProcessDumpModificationId
1831+
class CommandObjectProcessDumpModificationId : public CommandObjectParsed {
18321832
public:
1833-
CommandObjectProcessDumpModId(CommandInterpreter &interpreter)
1834-
: CommandObjectParsed(interpreter, "process dump-mod-id",
1833+
CommandObjectProcessDumpModificationId(CommandInterpreter &interpreter)
1834+
: CommandObjectParsed(interpreter, "process dump-modification-id",
18351835
"Dump the state of the ProcessModID. Intended to "
18361836
"be used for debugging LLDB itself.",
1837-
"process dump-mod-id", eCommandRequiresProcess) {}
1837+
"process dump-modification-id",
1838+
eCommandRequiresProcess) {}
18381839

1839-
~CommandObjectProcessDumpModId() override = default;
1840+
~CommandObjectProcessDumpModificationId() override = default;
18401841

18411842
protected:
18421843
void DoExecute(Args &command, CommandReturnObject &result) override {
@@ -1893,8 +1894,8 @@ CommandObjectMultiwordProcess::CommandObjectMultiwordProcess(
18931894
"trace",
18941895
CommandObjectSP(new CommandObjectMultiwordProcessTrace(interpreter)));
18951896
LoadSubCommand(
1896-
"dump-mod-id",
1897-
CommandObjectSP(new CommandObjectProcessDumpModId(interpreter)));
1897+
"dump-modification-id",
1898+
CommandObjectSP(new CommandObjectProcessDumpModificationId(interpreter)));
18981899
}
18991900

19001901
CommandObjectMultiwordProcess::~CommandObjectMultiwordProcess() = default;

lldb/test/Shell/Expr/TestProcessModIdOnExpr.cpp renamed to lldb/test/Shell/Expr/TestProcessModificationIdOnExpr.cpp

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,15 @@
77
// RUN: %lldb %t \
88
// RUN: -o "settings set target.process.track-memory-cache-changes false" \
99
// RUN: -o "run" \
10-
// RUN: -o "process dump-mod-id" \
10+
// RUN: -o "process dump-modification-id" \
1111
// RUN: -o "expr x.i != 42" \
12-
// RUN: -o "process dump-mod-id" \
12+
// RUN: -o "process dump-modification-id" \
1313
// RUN: -o "expr x.get()" \
14-
// RUN: -o "process dump-mod-id" \
14+
// RUN: -o "process dump-modification-id" \
1515
// RUN: -o "expr x.i = 10" \
16-
// RUN: -o "process dump-mod-id" \
16+
// RUN: -o "process dump-modification-id" \
1717
// RUN: -o "continue" \
18-
// RUN: -o "process dump-mod-id" \
18+
// RUN: -o "process dump-modification-id" \
1919
// RUN: -o "exit" | FileCheck %s -dump-input=fail
2020

2121
class X {
@@ -34,34 +34,34 @@ int main() {
3434
return 0;
3535
}
3636

37-
// CHECK-LABEL: process dump-mod-id
37+
// CHECK-LABEL: process dump-modification-id
3838
// CHECK: m_stop_id: 2
3939
// CHECK: m_memory_id: 0
4040

4141
// CHECK-LABEL: expr x.i != 42
4242
// IDs are not changed when executing simple expressions
4343

44-
// CHECK-LABEL: process dump-mod-id
44+
// CHECK-LABEL: process dump-modification-id
4545
// CHECK: m_stop_id: 2
4646
// CHECK: m_memory_id: 0
4747

4848
// CHECK-LABEL: expr x.get()
4949
// Expression causes ID to be bumped because LLDB has to execute function
5050

51-
// CHECK-LABEL: process dump-mod-id
51+
// CHECK-LABEL: process dump-modification-id
5252
// CHECK: m_stop_id: 3
5353
// CHECK: m_memory_id: 1
5454

5555
// CHECK-LABEL: expr x.i = 10
5656
// Expression causes MemoryID to be bumped because LLDB writes to non-cache memory
5757

58-
// CHECK-LABEL: process dump-mod-id
58+
// CHECK-LABEL: process dump-modification-id
5959
// CHECK: m_stop_id: 3
6060
// CHECK: m_memory_id: 2
6161

6262
// CHECK-LABEL: continue
6363
// Continue causes StopID to be bumped because process is resumed
6464

65-
// CHECK-LABEL: process dump-mod-id
65+
// CHECK-LABEL: process dump-modification-id
6666
// CHECK: m_stop_id: 4
6767
// CHECK: m_memory_id: 2

0 commit comments

Comments
 (0)