Re: [PATCH v2] scripts/gdb: fix list_for_each

2021-01-05 Thread Jan Kiszka
On 05.01.21 17:51, George Prekas wrote: > On 9/24/2020 9:20 AM, George Prekas wrote: >> If the list is uninitialized (next pointer is NULL), list_for_each gets >> stuck in an infinite loop. Print a message and treat list as empty. >> >> Signed-off-by: George Prekas >> --- >>  scripts/gdb/linux/lis

Re: [PATCH v2] scripts/gdb: fix list_for_each

2021-01-05 Thread George Prekas
On 9/24/2020 9:20 AM, George Prekas wrote: If the list is uninitialized (next pointer is NULL), list_for_each gets stuck in an infinite loop. Print a message and treat list as empty. Signed-off-by: George Prekas ---  scripts/gdb/linux/lists.py | 5 +  1 file changed, 5 insertions(+) diff --

[PATCH v2] scripts/gdb: fix list_for_each

2020-09-24 Thread George Prekas
If the list is uninitialized (next pointer is NULL), list_for_each gets stuck in an infinite loop. Print a message and treat list as empty. Signed-off-by: George Prekas ---  scripts/gdb/linux/lists.py | 5 +  1 file changed, 5 insertions(+) diff --git a/scripts/gdb/linux/lists.py b/scripts/g