diff options
| author | Johnny Chen <johnny.chen@apple.com> | 2011-08-11 00:49:03 +0000 |
|---|---|---|
| committer | Johnny Chen <johnny.chen@apple.com> | 2011-08-11 00:49:03 +0000 |
| commit | 9c1b703ac45a04633ef612eb346b99120964ee53 (patch) | |
| tree | 33be02ea7014be7e8ad1383890fc0b3d9d617e7b /lldb/test/python_api | |
| parent | 3c24a17c7cc51bce90993a783019c5899c205bc4 (diff) | |
| download | bcm5719-llvm-9c1b703ac45a04633ef612eb346b99120964ee53.tar.gz bcm5719-llvm-9c1b703ac45a04633ef612eb346b99120964ee53.zip | |
Change the SBValue.linked_list_iter() to treat the value object as a homogeneous linked list data structure
where an empty linked list is represented as a value object with a NULL value, instead of a special value
object which 'points' to NULL.
Also modifies the test case to comply.
rdar://problem/9933692
llvm-svn: 137289
Diffstat (limited to 'lldb/test/python_api')
| -rw-r--r-- | lldb/test/python_api/value/linked_list/main.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lldb/test/python_api/value/linked_list/main.cpp b/lldb/test/python_api/value/linked_list/main.cpp index db0e249cc91..de812178fdd 100644 --- a/lldb/test/python_api/value/linked_list/main.cpp +++ b/lldb/test/python_api/value/linked_list/main.cpp @@ -21,14 +21,14 @@ public: int main (int argc, char const *argv[]) { - Task *task_head = new Task(-1, NULL); + Task *task_head = NULL; Task *task1 = new Task(1, NULL); Task *task2 = new Task(2, NULL); Task *task3 = new Task(3, NULL); // Orphaned. Task *task4 = new Task(4, NULL); Task *task5 = new Task(5, NULL); - task_head->next = task1; + task_head = task1; task1->next = task2; task2->next = task4; task4->next = task5; @@ -43,7 +43,7 @@ int main (int argc, char const *argv[]) printf("We have a total number of %d tasks\n", total); // This corresponds to an empty task list. - Task *empty_task_head = new Task(-1, NULL); + Task *empty_task_head = NULL; return 0; // Break at this line } |

