I think Pelle is aware of this problem.
It's a debug info problem in v9, not quite a debugger problem ?
Pelles C debug format for version 9 is available, so it's possible to check it.
EDIT: a test case:void foo1(int id) {}
void foo2(int id) {}
void foo3(int id) {}
int foo(int id, int msg)
{
switch (id) {
case 0:
switch (msg)
{
foo1(id);
break;
case 2:
foo2(id);
break;
case 3:
foo3(id);
break;
default: break;
}
case 1:
foo1(id);
break;
case 2:
foo2(id);
break;
case 3:
foo3(id);
break;
default: return 0;
}
return id;
}
void __cdecl mainCRTStartup(void)
{
foo(0, 0);
foo(1, 1);
foo(2, 2);
foo(3, 3);
}
EDIT 2019-08-16: PrjObjDbgLines_WS_a1.zip show coff line numbers in object file.
EDIT: more info10: {
[0000004A] 83F802 cmp eax,2
[0000004D] 740E je 0000005D
[0000004F] 83F803 cmp eax,3
[00000052] 7510 jne 00000064
11: foo1(id);
12: break;
13: case 2:
14: foo2(id);
15: break;
16: case 3:
17: foo3(id);
[00000054] 53 push ebx
[00000055] E8C6FFFFFF call 00000020
[0000005A] 59 pop ecx
[0000005B] EB07 jmp 00000064
[0000005D] 53 push ebx
[0000005E] E8ADFFFFFF call 00000010
[00000063] 59 pop ecx
18: break;
19: default: break;
20: }
21: case 1:
22: foo1(id);
[00000064] 53 push ebx
podump 1 sect # (0-C4)
11 number of lines:
lineno offset
1 0
2 10
3 20
5 30
7 3A
A 4A
11 54
16 64
19 6D
1C 76
1E 7F
20 83
23 90
25 93
26 9F
27 AB
28 B7