-t4 no longer gives sub-level output #183

Closed
coke opened this Issue Oct 24, 2011 · 2 comments

Projects

None yet

3 participants

@coke
Contributor
coke commented Oct 24, 2011

Using 3e1bbd4, I am seeing the following output:

Given foo.pir:

.sub main :main
  test()
.end

.sub test
  say "in test"
.end
parrot -t1 foo.pir 2> t1.out
parrot -t4 foo.pir 2> t4.out

I would expect the -t4 output to be showing me the sub level traces, not the individual code. Instead, I get very similar (but not identical) output.

t1.out:

014a get_params PC2 (1), P4                                        PC2=FixedIntegerArray=PMC(0x8fac06c) P4=PMCNULL
014d set P5, PC8                                        P5=PMCNULL PC8=Sub=PMC(0x8fac24c pc:0)
0150 set P6, PC14                                        P6=PMCNULL PC14=Sub=PMC(0x8fac440 pc:533)
0153 new P3, "ExceptionHandler"                                        P3=PMCNULL 
0156 set_label P3, 30                                        P3=ExceptionHandler=PMC(0x8ffc4a8) 
0159 push_eh P3                                        P3=ExceptionHandler=PMC(0x8ffc4a8)
015b set_args PC2 (1), P4                                        PC2=FixedIntegerArray=PMC(0x8fac06c) P4=ResizableStringArray=PMC(0x8fabf54)
015e invokecc P5                                        P5=Sub=PMC(0x8fac24c pc:0)
0000 get_params PC2 (1), P4                                        PC2=FixedIntegerArray=PMC(0x8fac06c) P4=PMCNULL
0003 set P5, PC15                                        P5=PMCNULL PC15=Sub=PMC(0x8fac490 pc:722)
0006 set P6, PC20                                        P6=PMCNULL PC20=Sub=PMC(0x8fb5818 pc:780)
0009 set P7, PC23                                        P7=PMCNULL PC23=Sub=PMC(0x8fb5908 pc:798)
000c set P8, PC12                                        P8=PMCNULL PC12=Sub=PMC(0x8fac38c pc:470)
000f set P9, PC21                                        P9=PMCNULL PC21=Sub=PMC(0x8fb5868 pc:787)
0012 set P10, PC10                                        P10=PMCNULL PC10=Sub=PMC(0x8fac2ec pc:388)
0015 null S0                                        S0=""
0017 shift S0, P4                                        S0="" P4=ResizableStringArray=PMC(0x8fabf54)
001a null S1                                        S1=""
001c null I0                                        I0=0
001e null S2                                        S2=""
0020 null P0                                        P0=PMCNULL
0022 null S3                                        S3=""
0024 null I1                                        I1=0
0026 elements I2, P4                                        I2=0 P4=ResizableStringArray=PMC(0x8fabf54)
0029 le I2, 0, 106                                        I2=1  
002d set S4, P4[0]                                        S4="" P4=ResizableStringArray=PMC(0x8fabf54) 
0031 set S6, S4                                        S6="" S4="foo.pir"
0034 set S7, "-o"                                        S7="" 
0037 eq S6, S7, 41                                        S6="foo.pir" S7="-o" 
003b set S7, "-c"                                        S7="-o" 
003e eq S6, S7, 42                                        S6="foo.pir" S7="-c" 
0042 set S7, "-r"                                        S7="-c" 
0045 eq S6, S7, 43                                        S6="foo.pir" S7="-r" 
0049 set S7, "-E"                                        S7="-r" 
004c eq S6, S7, 44                                        S6="foo.pir" S7="-E" 
0050 set S7, "-V"                                        S7="-E" 
0053 eq S6, S7, 45                                        S6="foo.pir" S7="-V" 
0057 set S7, "-h"                                        S7="-V" 
005a eq S6, S7, 44                                        S6="foo.pir" S7="-h" 
005e branch 46
008c set S1, S4                                        S1="" S4="foo.pir"
008f branch 4
0093 isnull I2, S1                                        I2=1 S1="foo.pir"
0096 if I2, 7                                        I2=0 
0099 iseq I2, S1, ""                                        I2=0 S1="foo.pir" 
009d unless I2, 10                                        I2=0 
00a7 ne I1, 1, 18                                        I1=0  
00b9 if I0, 28                                        I0=0 
00bc set_args PC1 (1), S1                                        PC1=FixedIntegerArray=PMC(0x8fac01c) S1="foo.pir"
00bf invokecc P8                                        P8=Sub=PMC(0x8fac38c pc:470)
01d6 get_params PC1 (1), S1                                        PC1=FixedIntegerArray=PMC(0x8fac01c) S1=""
01d9 length I1, S1                                        I1=0 S1="foo.pir"
01dc sub I0, I1, 4                                        I0=0 I1=7 
01e0 lt I0, 0, 10                                        I0=3  
01e4 substr S0, S1, I0                                        S0="" S1="foo.pir" I0=3
01e8 branch 5
01ed ne S0, ".pir", 8                                        S0=".pir"  
01f1 set_returns PC11 (1), 2
01f4 returncc
00c1 get_results PC2 (1), P2                                        PC2=FixedIntegerArray=PMC(0x8fac06c) P2=PMCNULL
00c4 set I0, P2                                        I0=0 P2=Integer=PMC(0x8ffc520: 2)
00c7 if I0, 14                                        I0=2 
00d5 ne I1, 2, 54                                        I1=0  
010b unless_null P0, 12                                        P0=PMCNULL 
010e set_args PC4 (2), S1, I0                                        PC4=FixedIntegerArray=PMC(0x8fac10c) S1="foo.pir" I0=2
0112 invokecc P10                                        P10=Sub=PMC(0x8fac2ec pc:388)
0184 get_params PC4 (2), S0, I0                                        PC4=FixedIntegerArray=PMC(0x8fac10c) S0="" I0=0
0188 set I1, I0                                        I1=0 I0=2
018b set I2, 2                                        I2=0 
018e eq I1, I2, 20                                        I1=2 I2=2 
01a2 compreg P0, "PIR"                                        P0=PMCNULL 
01a5 set_args PC5 (2), P0, S0                                        PC5=FixedIntegerArray=PMC(0x8fac15c) P0=IMCCompiler=PMC(0x8fabf18) S0="foo.pir"
01a9 callmethodcc P0, "compile_file"                                        P0=IMCCompiler=PMC(0x8fabf18) 
01ac get_results PC2 (1), P1                                        PC2=FixedIntegerArray=PMC(0x8fac06c) P1=PMCNULL
01af set_returns PC2 (1), P1                                        PC2=FixedIntegerArray=PMC(0x8fac06c) P1=PackfileView=PMC(0x8ffc598)
01b2 returncc
0114 get_results PC2 (1), P0                                        PC2=FixedIntegerArray=PMC(0x8fac06c) P0=PMCNULL
0117 if_null S2, 14                                        S2="" 
0125 set_args PC3 (2), P0, "init"                                        PC3=FixedIntegerArray=PMC(0x8fac0bc) P0=PackfileView=PMC(0x8ffc598) 
0129 callmethodcc P0, "subs_by_tag"                                        P0=PackfileView=PMC(0x8ffc598) 
012c get_results PC2 (1), P2                                        PC2=FixedIntegerArray=PMC(0x8fac06c) P2=Integer=PMC(0x8ffc520: 2)
012f if_null P2, 23                                        P2=ResizablePMCArray=PMC(0x8ffc6c4) 
0132 iter P3, P2                                        P3=PMCNULL P2=ResizablePMCArray=PMC(0x8ffc6c4)
0135 set P3, 0                                        P3=ArrayIterator=PMC(0x8ffc6ec) 
0138 unless P3, 14                                        P3=ArrayIterator=PMC(0x8ffc6ec) 
0146 set_returns PC2 (1), P0                                        PC2=FixedIntegerArray=PMC(0x8fac06c) P0=PackfileView=PMC(0x8ffc598)
0149 returncc
0160 get_results PC2 (1), P0                                        PC2=FixedIntegerArray=PMC(0x8fac06c) P0=PMCNULL
0163 set_args PC2 (1), P0                                        PC2=FixedIntegerArray=PMC(0x8fac06c) P0=PackfileView=PMC(0x8ffc598)
0166 callmethodcc P0, "main_sub"                                        P0=PackfileView=PMC(0x8ffc598) 
0169 get_results PC2 (1), P1                                        PC2=FixedIntegerArray=PMC(0x8fac06c) P1=PMCNULL
016c set_args PC2 (1), P4                                        PC2=FixedIntegerArray=PMC(0x8fac06c) P4=ResizableStringArray=PMC(0x8fabf54)
016f tailcall P1                                        P1=Sub=PMC(0x8ffc5c0 pc:0)
0000 set_args PC0
0002 set P0, PC2                                        P0=PMCNULL PC2=Sub=PMC(0x8ffc624 pc:12)
0005 invokecc P0                                        P0=Sub=PMC(0x8ffc624 pc:12)
000c say "in test"
000e set_returns PC0
0010 returncc
0007 get_results PC0
0009 set_returns PC0
000b returncc
FileHandle objects (like stdout and stderr)are about to be closed, so clearing trace flags.

t4.out:

014a get_params PC2 (1), P4                                        PC2=FixedIntegerArray=PMC(0x880d06c) P4=PMCNULL
014d set P5, PC8                                        P5=PMCNULL PC8=Sub=PMC(0x880d24c pc:0)
0150 set P6, PC14                                        P6=PMCNULL PC14=Sub=PMC(0x880d440 pc:533)
0153 new P3, "ExceptionHandler"                                        P3=PMCNULL 
0156 set_label P3, 30                                        P3=ExceptionHandler=PMC(0x885d4a8) 
0159 push_eh P3                                        P3=ExceptionHandler=PMC(0x885d4a8)
015b set_args PC2 (1), P4                                        PC2=FixedIntegerArray=PMC(0x880d06c) P4=ResizableStringArray=PMC(0x880cf54)
015e invokecc P5                                        P5=Sub=PMC(0x880d24c pc:0)
0000 get_params PC2 (1), P4                                        PC2=FixedIntegerArray=PMC(0x880d06c) P4=PMCNULL
0003 set P5, PC15                                        P5=PMCNULL PC15=Sub=PMC(0x880d490 pc:722)
0006 set P6, PC20                                        P6=PMCNULL PC20=Sub=PMC(0x8816818 pc:780)
0009 set P7, PC23                                        P7=PMCNULL PC23=Sub=PMC(0x8816908 pc:798)
000c set P8, PC12                                        P8=PMCNULL PC12=Sub=PMC(0x880d38c pc:470)
000f set P9, PC21                                        P9=PMCNULL PC21=Sub=PMC(0x8816868 pc:787)
0012 set P10, PC10                                        P10=PMCNULL PC10=Sub=PMC(0x880d2ec pc:388)
0015 null S0                                        S0=""
0017 shift S0, P4                                        S0="" P4=ResizableStringArray=PMC(0x880cf54)
001a null S1                                        S1=""
001c null I0                                        I0=0
001e null S2                                        S2=""
0020 null P0                                        P0=PMCNULL
0022 null S3                                        S3=""
0024 null I1                                        I1=0
0026 elements I2, P4                                        I2=0 P4=ResizableStringArray=PMC(0x880cf54)
0029 le I2, 0, 106                                        I2=1  
002d set S4, P4[0]                                        S4="" P4=ResizableStringArray=PMC(0x880cf54) 
0031 set S6, S4                                        S6="" S4="foo.pir"
0034 set S7, "-o"                                        S7="" 
0037 eq S6, S7, 41                                        S6="foo.pir" S7="-o" 
003b set S7, "-c"                                        S7="-o" 
003e eq S6, S7, 42                                        S6="foo.pir" S7="-c" 
0042 set S7, "-r"                                        S7="-c" 
0045 eq S6, S7, 43                                        S6="foo.pir" S7="-r" 
0049 set S7, "-E"                                        S7="-r" 
004c eq S6, S7, 44                                        S6="foo.pir" S7="-E" 
0050 set S7, "-V"                                        S7="-E" 
0053 eq S6, S7, 45                                        S6="foo.pir" S7="-V" 
0057 set S7, "-h"                                        S7="-V" 
005a eq S6, S7, 44                                        S6="foo.pir" S7="-h" 
005e branch 46
008c set S1, S4                                        S1="" S4="foo.pir"
008f branch 4
0093 isnull I2, S1                                        I2=1 S1="foo.pir"
0096 if I2, 7                                        I2=0 
0099 iseq I2, S1, ""                                        I2=0 S1="foo.pir" 
009d unless I2, 10                                        I2=0 
00a7 ne I1, 1, 18                                        I1=0  
00b9 if I0, 28                                        I0=0 
00bc set_args PC1 (1), S1                                        PC1=FixedIntegerArray=PMC(0x880d01c) S1="foo.pir"
00bf invokecc P8                                        P8=Sub=PMC(0x880d38c pc:470)
01d6 get_params PC1 (1), S1                                        PC1=FixedIntegerArray=PMC(0x880d01c) S1=""
01d9 length I1, S1                                        I1=0 S1="foo.pir"
01dc sub I0, I1, 4                                        I0=0 I1=7 
01e0 lt I0, 0, 10                                        I0=3  
01e4 substr S0, S1, I0                                        S0="" S1="foo.pir" I0=3
01e8 branch 5
01ed ne S0, ".pir", 8                                        S0=".pir"  
01f1 set_returns PC11 (1), 2
01f4 returncc
00c1 get_results PC2 (1), P2                                        PC2=FixedIntegerArray=PMC(0x880d06c) P2=PMCNULL
00c4 set I0, P2                                        I0=0 P2=Integer=PMC(0x885d520: 2)
00c7 if I0, 14                                        I0=2 
00d5 ne I1, 2, 54                                        I1=0  
010b unless_null P0, 12                                        P0=PMCNULL 
010e set_args PC4 (2), S1, I0                                        PC4=FixedIntegerArray=PMC(0x880d10c) S1="foo.pir" I0=2
0112 invokecc P10                                        P10=Sub=PMC(0x880d2ec pc:388)
0184 get_params PC4 (2), S0, I0                                        PC4=FixedIntegerArray=PMC(0x880d10c) S0="" I0=0
0188 set I1, I0                                        I1=0 I0=2
018b set I2, 2                                        I2=0 
018e eq I1, I2, 20                                        I1=2 I2=2 
01a2 compreg P0, "PIR"                                        P0=PMCNULL 
01a5 set_args PC5 (2), P0, S0                                        PC5=FixedIntegerArray=PMC(0x880d15c) P0=IMCCompiler=PMC(0x880cf18) S0="foo.pir"
01a9 callmethodcc P0, "compile_file"                                        P0=IMCCompiler=PMC(0x880cf18) 
01ac get_results PC2 (1), P1                                        PC2=FixedIntegerArray=PMC(0x880d06c) P1=PMCNULL
01af set_returns PC2 (1), P1                                        PC2=FixedIntegerArray=PMC(0x880d06c) P1=PackfileView=PMC(0x885d598)
01b2 returncc
0114 get_results PC2 (1), P0                                        PC2=FixedIntegerArray=PMC(0x880d06c) P0=PMCNULL
0117 if_null S2, 14                                        S2="" 
0125 set_args PC3 (2), P0, "init"                                        PC3=FixedIntegerArray=PMC(0x880d0bc) P0=PackfileView=PMC(0x885d598) 
0129 callmethodcc P0, "subs_by_tag"                                        P0=PackfileView=PMC(0x885d598) 
012c get_results PC2 (1), P2                                        PC2=FixedIntegerArray=PMC(0x880d06c) P2=Integer=PMC(0x885d520: 2)
012f if_null P2, 23                                        P2=ResizablePMCArray=PMC(0x885d6c4) 
0132 iter P3, P2                                        P3=PMCNULL P2=ResizablePMCArray=PMC(0x885d6c4)
0135 set P3, 0                                        P3=ArrayIterator=PMC(0x885d6ec) 
0138 unless P3, 14                                        P3=ArrayIterator=PMC(0x885d6ec) 
0146 set_returns PC2 (1), P0                                        PC2=FixedIntegerArray=PMC(0x880d06c) P0=PackfileView=PMC(0x885d598)
0149 returncc
0160 get_results PC2 (1), P0                                        PC2=FixedIntegerArray=PMC(0x880d06c) P0=PMCNULL
0163 set_args PC2 (1), P0                                        PC2=FixedIntegerArray=PMC(0x880d06c) P0=PackfileView=PMC(0x885d598)
0166 callmethodcc P0, "main_sub"                                        P0=PackfileView=PMC(0x885d598) 
0169 get_results PC2 (1), P1                                        PC2=FixedIntegerArray=PMC(0x880d06c) P1=PMCNULL
016c set_args PC2 (1), P4                                        PC2=FixedIntegerArray=PMC(0x880d06c) P4=ResizableStringArray=PMC(0x880cf54)
016f tailcall P1                                        P1=Sub=PMC(0x885d5c0 pc:0)
0000 set_args PC0
0002 set P0, PC2                                        P0=PMCNULL PC2=Sub=PMC(0x885d624 pc:12)
0005 invokecc P0                                        P0=Sub=PMC(0x885d624 pc:12)
000c say "in test"
000e set_returns PC0
0010 returncc
0007 get_results PC0
0009 set_returns PC0
000b returncc
FileHandle objects (like stdout and stderr)are about to be closed, so clearing trace flags.

diff on the 2:

1,3c1,3
< 014a get_params PC2 (1), P4                                        PC2=FixedIntegerArray=PMC(0x8fac06c) P4=PMCNULL
< 014d set P5, PC8                                        P5=PMCNULL PC8=Sub=PMC(0x8fac24c pc:0)
< 0150 set P6, PC14                                        P6=PMCNULL PC14=Sub=PMC(0x8fac440 pc:533)

---
> 014a get_params PC2 (1), P4                                        PC2=FixedIntegerArray=PMC(0x880d06c) P4=PMCNULL
> 014d set P5, PC8                                        P5=PMCNULL PC8=Sub=PMC(0x880d24c pc:0)
> 0150 set P6, PC14                                        P6=PMCNULL PC14=Sub=PMC(0x880d440 pc:533)
5,15c5,15
< 0156 set_label P3, 30                                        P3=ExceptionHandler=PMC(0x8ffc4a8) 
< 0159 push_eh P3                                        P3=ExceptionHandler=PMC(0x8ffc4a8)
< 015b set_args PC2 (1), P4                                        PC2=FixedIntegerArray=PMC(0x8fac06c) P4=ResizableStringArray=PMC(0x8fabf54)
< 015e invokecc P5                                        P5=Sub=PMC(0x8fac24c pc:0)
< 0000 get_params PC2 (1), P4                                        PC2=FixedIntegerArray=PMC(0x8fac06c) P4=PMCNULL
< 0003 set P5, PC15                                        P5=PMCNULL PC15=Sub=PMC(0x8fac490 pc:722)
< 0006 set P6, PC20                                        P6=PMCNULL PC20=Sub=PMC(0x8fb5818 pc:780)
< 0009 set P7, PC23                                        P7=PMCNULL PC23=Sub=PMC(0x8fb5908 pc:798)
< 000c set P8, PC12                                        P8=PMCNULL PC12=Sub=PMC(0x8fac38c pc:470)
< 000f set P9, PC21                                        P9=PMCNULL PC21=Sub=PMC(0x8fb5868 pc:787)
< 0012 set P10, PC10                                        P10=PMCNULL PC10=Sub=PMC(0x8fac2ec pc:388)

---
> 0156 set_label P3, 30                                        P3=ExceptionHandler=PMC(0x885d4a8) 
> 0159 push_eh P3                                        P3=ExceptionHandler=PMC(0x885d4a8)
> 015b set_args PC2 (1), P4                                        PC2=FixedIntegerArray=PMC(0x880d06c) P4=ResizableStringArray=PMC(0x880cf54)
> 015e invokecc P5                                        P5=Sub=PMC(0x880d24c pc:0)
> 0000 get_params PC2 (1), P4                                        PC2=FixedIntegerArray=PMC(0x880d06c) P4=PMCNULL
> 0003 set P5, PC15                                        P5=PMCNULL PC15=Sub=PMC(0x880d490 pc:722)
> 0006 set P6, PC20                                        P6=PMCNULL PC20=Sub=PMC(0x8816818 pc:780)
> 0009 set P7, PC23                                        P7=PMCNULL PC23=Sub=PMC(0x8816908 pc:798)
> 000c set P8, PC12                                        P8=PMCNULL PC12=Sub=PMC(0x880d38c pc:470)
> 000f set P9, PC21                                        P9=PMCNULL PC21=Sub=PMC(0x8816868 pc:787)
> 0012 set P10, PC10                                        P10=PMCNULL PC10=Sub=PMC(0x880d2ec pc:388)
17c17
< 0017 shift S0, P4                                        S0="" P4=ResizableStringArray=PMC(0x8fabf54)

---
> 0017 shift S0, P4                                        S0="" P4=ResizableStringArray=PMC(0x880cf54)
24c24
< 0026 elements I2, P4                                        I2=0 P4=ResizableStringArray=PMC(0x8fabf54)

---
> 0026 elements I2, P4                                        I2=0 P4=ResizableStringArray=PMC(0x880cf54)
26c26
< 002d set S4, P4[0]                                        S4="" P4=ResizableStringArray=PMC(0x8fabf54) 

---
> 002d set S4, P4[0]                                        S4="" P4=ResizableStringArray=PMC(0x880cf54) 
49,51c49,51
< 00bc set_args PC1 (1), S1                                        PC1=FixedIntegerArray=PMC(0x8fac01c) S1="foo.pir"
< 00bf invokecc P8                                        P8=Sub=PMC(0x8fac38c pc:470)
< 01d6 get_params PC1 (1), S1                                        PC1=FixedIntegerArray=PMC(0x8fac01c) S1=""

---
> 00bc set_args PC1 (1), S1                                        PC1=FixedIntegerArray=PMC(0x880d01c) S1="foo.pir"
> 00bf invokecc P8                                        P8=Sub=PMC(0x880d38c pc:470)
> 01d6 get_params PC1 (1), S1                                        PC1=FixedIntegerArray=PMC(0x880d01c) S1=""
60,61c60,61
< 00c1 get_results PC2 (1), P2                                        PC2=FixedIntegerArray=PMC(0x8fac06c) P2=PMCNULL
< 00c4 set I0, P2                                        I0=0 P2=Integer=PMC(0x8ffc520: 2)

---
> 00c1 get_results PC2 (1), P2                                        PC2=FixedIntegerArray=PMC(0x880d06c) P2=PMCNULL
> 00c4 set I0, P2                                        I0=0 P2=Integer=PMC(0x885d520: 2)
65,67c65,67
< 010e set_args PC4 (2), S1, I0                                        PC4=FixedIntegerArray=PMC(0x8fac10c) S1="foo.pir" I0=2
< 0112 invokecc P10                                        P10=Sub=PMC(0x8fac2ec pc:388)
< 0184 get_params PC4 (2), S0, I0                                        PC4=FixedIntegerArray=PMC(0x8fac10c) S0="" I0=0

---
> 010e set_args PC4 (2), S1, I0                                        PC4=FixedIntegerArray=PMC(0x880d10c) S1="foo.pir" I0=2
> 0112 invokecc P10                                        P10=Sub=PMC(0x880d2ec pc:388)
> 0184 get_params PC4 (2), S0, I0                                        PC4=FixedIntegerArray=PMC(0x880d10c) S0="" I0=0
72,75c72,75
< 01a5 set_args PC5 (2), P0, S0                                        PC5=FixedIntegerArray=PMC(0x8fac15c) P0=IMCCompiler=PMC(0x8fabf18) S0="foo.pir"
< 01a9 callmethodcc P0, "compile_file"                                        P0=IMCCompiler=PMC(0x8fabf18) 
< 01ac get_results PC2 (1), P1                                        PC2=FixedIntegerArray=PMC(0x8fac06c) P1=PMCNULL
< 01af set_returns PC2 (1), P1                                        PC2=FixedIntegerArray=PMC(0x8fac06c) P1=PackfileView=PMC(0x8ffc598)

---
> 01a5 set_args PC5 (2), P0, S0                                        PC5=FixedIntegerArray=PMC(0x880d15c) P0=IMCCompiler=PMC(0x880cf18) S0="foo.pir"
> 01a9 callmethodcc P0, "compile_file"                                        P0=IMCCompiler=PMC(0x880cf18) 
> 01ac get_results PC2 (1), P1                                        PC2=FixedIntegerArray=PMC(0x880d06c) P1=PMCNULL
> 01af set_returns PC2 (1), P1                                        PC2=FixedIntegerArray=PMC(0x880d06c) P1=PackfileView=PMC(0x885d598)
77c77
< 0114 get_results PC2 (1), P0                                        PC2=FixedIntegerArray=PMC(0x8fac06c) P0=PMCNULL

---
> 0114 get_results PC2 (1), P0                                        PC2=FixedIntegerArray=PMC(0x880d06c) P0=PMCNULL
79,86c79,86
< 0125 set_args PC3 (2), P0, "init"                                        PC3=FixedIntegerArray=PMC(0x8fac0bc) P0=PackfileView=PMC(0x8ffc598) 
< 0129 callmethodcc P0, "subs_by_tag"                                        P0=PackfileView=PMC(0x8ffc598) 
< 012c get_results PC2 (1), P2                                        PC2=FixedIntegerArray=PMC(0x8fac06c) P2=Integer=PMC(0x8ffc520: 2)
< 012f if_null P2, 23                                        P2=ResizablePMCArray=PMC(0x8ffc6c4) 
< 0132 iter P3, P2                                        P3=PMCNULL P2=ResizablePMCArray=PMC(0x8ffc6c4)
< 0135 set P3, 0                                        P3=ArrayIterator=PMC(0x8ffc6ec) 
< 0138 unless P3, 14                                        P3=ArrayIterator=PMC(0x8ffc6ec) 
< 0146 set_returns PC2 (1), P0                                        PC2=FixedIntegerArray=PMC(0x8fac06c) P0=PackfileView=PMC(0x8ffc598)

---
> 0125 set_args PC3 (2), P0, "init"                                        PC3=FixedIntegerArray=PMC(0x880d0bc) P0=PackfileView=PMC(0x885d598) 
> 0129 callmethodcc P0, "subs_by_tag"                                        P0=PackfileView=PMC(0x885d598) 
> 012c get_results PC2 (1), P2                                        PC2=FixedIntegerArray=PMC(0x880d06c) P2=Integer=PMC(0x885d520: 2)
> 012f if_null P2, 23                                        P2=ResizablePMCArray=PMC(0x885d6c4) 
> 0132 iter P3, P2                                        P3=PMCNULL P2=ResizablePMCArray=PMC(0x885d6c4)
> 0135 set P3, 0                                        P3=ArrayIterator=PMC(0x885d6ec) 
> 0138 unless P3, 14                                        P3=ArrayIterator=PMC(0x885d6ec) 
> 0146 set_returns PC2 (1), P0                                        PC2=FixedIntegerArray=PMC(0x880d06c) P0=PackfileView=PMC(0x885d598)
88,93c88,93
< 0160 get_results PC2 (1), P0                                        PC2=FixedIntegerArray=PMC(0x8fac06c) P0=PMCNULL
< 0163 set_args PC2 (1), P0                                        PC2=FixedIntegerArray=PMC(0x8fac06c) P0=PackfileView=PMC(0x8ffc598)
< 0166 callmethodcc P0, "main_sub"                                        P0=PackfileView=PMC(0x8ffc598) 
< 0169 get_results PC2 (1), P1                                        PC2=FixedIntegerArray=PMC(0x8fac06c) P1=PMCNULL
< 016c set_args PC2 (1), P4                                        PC2=FixedIntegerArray=PMC(0x8fac06c) P4=ResizableStringArray=PMC(0x8fabf54)
< 016f tailcall P1                                        P1=Sub=PMC(0x8ffc5c0 pc:0)

---
> 0160 get_results PC2 (1), P0                                        PC2=FixedIntegerArray=PMC(0x880d06c) P0=PMCNULL
> 0163 set_args PC2 (1), P0                                        PC2=FixedIntegerArray=PMC(0x880d06c) P0=PackfileView=PMC(0x885d598)
> 0166 callmethodcc P0, "main_sub"                                        P0=PackfileView=PMC(0x885d598) 
> 0169 get_results PC2 (1), P1                                        PC2=FixedIntegerArray=PMC(0x880d06c) P1=PMCNULL
> 016c set_args PC2 (1), P4                                        PC2=FixedIntegerArray=PMC(0x880d06c) P4=ResizableStringArray=PMC(0x880cf54)
> 016f tailcall P1                                        P1=Sub=PMC(0x885d5c0 pc:0)
95,96c95,96
< 0002 set P0, PC2                                        P0=PMCNULL PC2=Sub=PMC(0x8ffc624 pc:12)
< 0005 invokecc P0                                        P0=Sub=PMC(0x8ffc624 pc:12)

---
> 0002 set P0, PC2                                        P0=PMCNULL PC2=Sub=PMC(0x885d624 pc:12)
> 0005 invokecc P0                                        P0=Sub=PMC(0x885d624 pc:12)

It looks like the -t4 output is identical to the -t1 output, modulo memory addresses, when it used to just show something closer to enter/leave, which is what I'd still expect given the CL help.

$ parrot --help-debug | tail -4
--trace -t [Flags] ...
0001 opcodes
0002 find_method
0004 function calls

@leto
Member
leto commented Nov 1, 2011

Can we get a simple test for this, so we can bisect it and see when this happened?

@rurban
Member
rurban commented Jan 18, 2015

There was a wrong boolean test. This is fixed for some time already.

@rurban rurban closed this Jan 18, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment