Skip to content

Instantly share code, notes, and snippets.

@aarzilli
Created March 5, 2016 11:10
Show Gist options
  • Save aarzilli/8a78798bb359d2aa5c08 to your computer and use it in GitHub Desktop.
Save aarzilli/8a78798bb359d2aa5c08 to your computer and use it in GitHub Desktop.
$ ~/n/go/src/github.com/derekparker/delve/dlv debug -- ciao.txt
Type 'help' for list of commands.
(dlv) vars strconv
strconv.ErrRange = error nil
strconv.ErrSyntax = error nil
strconv.float32info = struct strconv.floatInfo {mantbits: 23, expbits: 8, bias: -127}
strconv.float64info = strconv.floatInfo {mantbits: 52, expbits: 11, bias: -1023}
strconv.initdone· = 0
strconv.isGraphic = []uint16 len: 16, cap: 16, [160,5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8239,8287,12288]
strconv.isNotPrint16 = []uint16 len: 136, cap: 136, [173,907,909,930,1328,1376,1416,1424,1757,2111,2436,2473,2481,2526,2564,2601,2609,2612,2615,2621,2653,2692,2702,2706,2729,2737,2740,2758,2762,2820,2857,2865,2868,2910,2948,2961,2971,2973,3017,3076,3085,3089,3113,3141,3145,3159,3200,3204,3213,3217,3241,3252,3269,3273,3295,3312,3332,3341,3345,3397,3401,3460,3506,3516,...+72 more]
strconv.isNotPrint32 = []uint16 len: 73, cap: 73, [12,39,59,62,926,2057,2102,2134,2291,2564,2580,2584,4285,4405,4576,4626,4743,4745,4750,4766,4868,4905,4913,4916,9327,27231,27482,27490,54357,54429,54445,54458,54460,54468,54534,54549,54557,54586,54591,54597,54609,55968,60932,60960,60963,60968,60979,60984,60986,61000,61002,61004,61008,61011,61016,61018,61020,61022,61024,61027,61035,61043,61048,61053,...+9 more]
strconv.isPrint16 = []uint16 len: 470, cap: 470, [32,126,161,887,890,895,900,1366,1369,1418,1421,1479,1488,1514,1520,1524,1542,1563,1566,1805,1808,1866,1869,1969,1984,2042,2048,2093,2096,2139,2142,2142,2208,2228,2275,2444,2447,2448,2451,2482,2486,2489,2492,2500,2503,2504,2507,2510,2519,2519,2524,2531,2534,2555,2561,2570,2575,2576,2579,2617,2620,2626,2631,2632,...+406 more]
strconv.isPrint32 = []uint32 len: 342, cap: 342, [65536,65613,65616,65629,65664,65786,65792,65794,65799,65843,65847,65932,65936,65947,65952,65952,66000,66045,66176,66204,66208,66256,66272,66299,66304,66339,66352,66378,66384,66426,66432,66499,66504,66517,66560,66717,66720,66729,66816,66855,66864,66915,66927,66927,67072,67382,67392,67413,67424,67431,67584,67589,67592,67640,67644,67644,67647,67742,67751,67759,67808,67829,67835,67867,...+278 more]
strconv.leftcheats = []strconv.leftCheat len: 61, cap: 61, [{delta: 0, cutoff: ""},{delta: 1, cutoff: "5"},{delta: 1, cutoff: "25"},{delta: 1, cutoff: "125"},{delta: 2, cutoff: "625"},{delta: 2, cutoff: "3125"},{delta: 2, cutoff: "15625"},{delta: 3, cutoff: "78125"},{delta: 3, cutoff: "390625"},{delta: 3, cutoff: "1953125"},{delta: 4, cutoff: "9765625"},{delta: 4, cutoff: "48828125"},{delta: 4, cutoff: "244140625"},{delta: 4, cutoff: "1220703125"},{delta: 5, cutoff: "6103515625"},{delta: 5, cutoff: "30517578125"},{delta: 5, cutoff: "152587890625"},{delta: 6, cutoff: "762939453125"},{delta: 6, cutoff: "3814697265625"},{delta: 6, cutoff: "19073486328125"},{delta: 7, cutoff: "95367431640625"},{delta: 7, cutoff: "476837158203125"},{delta: 7, cutoff: "2384185791015625"},{delta: 7, cutoff: "11920928955078125"},{delta: 8, cutoff: "59604644775390625"},{delta: 8, cutoff: "298023223876953125"},{delta: 8, cutoff: "1490116119384765625"},{delta: 9, cutoff: "7450580596923828125"},{delta: 9, cutoff: "37252902984619140625"},{delta: 9, cutoff: "186264514923095703125"},{delta: 10, cutoff: "931322574615478515625"},{delta: 10, cutoff: "4656612873077392578125"},{delta: 10, cutoff: "23283064365386962890625"},{delta: 10, cutoff: "116415321826934814453125"},{delta: 11, cutoff: "582076609134674072265625"},{delta: 11, cutoff: "2910383045673370361328125"},{delta: 11, cutoff: "14551915228366851806640625"},{delta: 12, cutoff: "72759576141834259033203125"},{delta: 12, cutoff: "363797880709171295166015625"},{delta: 12, cutoff: "1818989403545856475830078125"},{delta: 13, cutoff: "9094947017729282379150390625"},{delta: 13, cutoff: "45474735088646411895751953125"},{delta: 13, cutoff: "227373675443232059478759765625"},{delta: 13, cutoff: "1136868377216160297393798828125"},{delta: 14, cutoff: "5684341886080801486968994140625"},{delta: 14, cutoff: "28421709430404007434844970703125"},{delta: 14, cutoff: "142108547152020037174224853515625"},{delta: 15, cutoff: "710542735760100185871124267578125"},{delta: 15, cutoff: "3552713678800500929355621337890625"},{delta: 15, cutoff: "17763568394002504646778106689453125"},{delta: 16, cutoff: "88817841970012523233890533447265625"},{delta: 16, cutoff: "444089209850062616169452667236328125"},{delta: 16, cutoff: "2220446049250313080847263336181640625"},{delta: 16, cutoff: "11102230246251565404236316680908203125"},{delta: 17, cutoff: "55511151231257827021181583404541015625"},{delta: 17, cutoff: "277555756156289135105907917022705078125"},{delta: 17, cutoff: "1387778780781445675529539585113525390625"},{delta: 18, cutoff: "6938893903907228377647697925567626953125"},{delta: 18, cutoff: "34694469519536141888238489627838134765625"},{delta: 18, cutoff: "173472347597680709441192448139190673828125"},{delta: 19, cutoff: "867361737988403547205962240695953369140625"}]
strconv.optimize = true
strconv.powersOfTen = [87]strconv.extFloat [{mant: 18054884314459144840, exp: -1220, neg: false},{mant: 13451937075301367670, exp: -1193, neg: false},{mant: 10022474136428063862, exp: -1166, neg: false},{mant: 14934650266808366570, exp: -1140, neg: false},{mant: 11127181549972568877, exp: -1113, neg: false},{mant: 16580792590934885855, exp: -1087, neg: false},{mant: 12353653155963782858, exp: -1060, neg: false},{mant: 18408377700990114895, exp: -1034, neg: false},{mant: 13715310171984221708, exp: -1007, neg: false},{mant: 10218702384817765436, exp: -980, neg: false},{mant: 15227053142812498563, exp: -954, neg: false},{mant: 11345038669416679861, exp: -927, neg: false},{mant: 16905424996341287883, exp: -901, neg: false},{mant: 12595523146049147757, exp: -874, neg: false},{mant: 9384396036005875287, exp: -847, neg: false},{mant: 13983839803942852151, exp: -821, neg: false},{mant: 10418772551374772303, exp: -794, neg: false},{mant: 15525180923007089351, exp: -768, neg: false},{mant: 11567161174868858868, exp: -741, neg: false},{mant: 17236413322193710309, exp: -715, neg: false},{mant: 12842128665889583758, exp: -688, neg: false},{mant: 9568131466127621947, exp: -661, neg: false},{mant: 14257626930069360058, exp: -635, neg: false},{mant: 10622759856335341974, exp: -608, neg: false},{mant: 15829145694278690180, exp: -582, neg: false},{mant: 11793632577567316726, exp: -555, neg: false},{mant: 17573882009934360870, exp: -529, neg: false},{mant: 13093562431584567480, exp: -502, neg: false},{mant: 9755464219737475723, exp: -475, neg: false},{mant: 14536774485912137811, exp: -449, neg: false},{mant: 10830740992659433045, exp: -422, neg: false},{mant: 16139061738043178685, exp: -396, neg: false},{mant: 12024538023802026127, exp: -369, neg: false},{mant: 17917957937422433684, exp: -343, neg: false},{mant: 13349918974505688015, exp: -316, neg: false},{mant: 9946464728195732843, exp: -289, neg: false},{mant: 14821387422376473014, exp: -263, neg: false},{mant: 11042794154864902060, exp: -236, neg: false},{mant: 16455045573212060422, exp: -210, neg: false},{mant: 12259964326927110867, exp: -183, neg: false},{mant: 18268770466636286478, exp: -157, neg: false},{mant: 13611294676837538539, exp: -130, neg: false},{mant: 10141204801825835212, exp: -103, neg: false},{mant: 15111572745182864684, exp: -77, neg: false},{mant: 11258999068426240000, exp: -50, neg: false},{mant: 16777216000000000000, exp: -24, neg: false},{mant: 12500000000000000000, exp: 3, neg: false},{mant: 9313225746154785156, exp: 30, neg: false},{mant: 13877787807814456755, exp: 56, neg: false},{mant: 10339757656912845936, exp: 83, neg: false},{mant: 15407439555097886824, exp: 109, neg: false},{mant: 11479437019748901445, exp: 136, neg: false},{mant: 17105694144590052135, exp: 162, neg: false},{mant: 12744735289059618216, exp: 189, neg: false},{mant: 9495567745759798747, exp: 216, neg: false},{mant: 14149498560666738074, exp: 242, neg: false},{mant: 10542197943230523224, exp: 269, neg: false},{mant: 15709099088952724970, exp: 295, neg: false},{mant: 11704190886730495818, exp: 322, neg: false},{mant: 17440603504673385349, exp: 348, neg: false},{mant: 12994262207056124023, exp: 375, neg: false},{mant: 9681479787123295682, exp: 402, neg: false},{mant: 14426529090290212157, exp: 428, neg: false},{mant: 10748601772107342003, exp: 455, neg: false},...+23 more]
strconv.powtab = []int len: 9, cap: 9, [1,3,6,9,13,16,19,23,26]
strconv.shifts = [37]uint [0,0,1,0,2,0,0,0,3,0,0,0,0,0,0,0,4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,5,0,0,0,0]
strconv.smallPowersOfTen = [8]struct strconv.extFloat [{mant: 9223372036854775808, exp: -63, neg: false},{mant: 11529215046068469760, exp: -60, neg: false},{mant: 14411518807585587200, exp: -57, neg: false},{mant: 18014398509481984000, exp: -54, neg: false},{mant: 11258999068426240000, exp: -50, neg: false},{mant: 14073748835532800000, exp: -47, neg: false},{mant: 17592186044416000000, exp: -44, neg: false},{mant: 10995116277760000000, exp: -40, neg: false}]
strconv.statictmp_0731 = [9]int [1,3,6,9,13,16,19,23,26]
strconv.statictmp_0734 = [61]struct strconv.leftCheat [{delta: 0, cutoff: ""},{delta: 1, cutoff: "5"},{delta: 1, cutoff: "25"},{delta: 1, cutoff: "125"},{delta: 2, cutoff: "625"},{delta: 2, cutoff: "3125"},{delta: 2, cutoff: "15625"},{delta: 3, cutoff: "78125"},{delta: 3, cutoff: "390625"},{delta: 3, cutoff: "1953125"},{delta: 4, cutoff: "9765625"},{delta: 4, cutoff: "48828125"},{delta: 4, cutoff: "244140625"},{delta: 4, cutoff: "1220703125"},{delta: 5, cutoff: "6103515625"},{delta: 5, cutoff: "30517578125"},{delta: 5, cutoff: "152587890625"},{delta: 6, cutoff: "762939453125"},{delta: 6, cutoff: "3814697265625"},{delta: 6, cutoff: "19073486328125"},{delta: 7, cutoff: "95367431640625"},{delta: 7, cutoff: "476837158203125"},{delta: 7, cutoff: "2384185791015625"},{delta: 7, cutoff: "11920928955078125"},{delta: 8, cutoff: "59604644775390625"},{delta: 8, cutoff: "298023223876953125"},{delta: 8, cutoff: "1490116119384765625"},{delta: 9, cutoff: "7450580596923828125"},{delta: 9, cutoff: "37252902984619140625"},{delta: 9, cutoff: "186264514923095703125"},{delta: 10, cutoff: "931322574615478515625"},{delta: 10, cutoff: "4656612873077392578125"},{delta: 10, cutoff: "23283064365386962890625"},{delta: 10, cutoff: "116415321826934814453125"},{delta: 11, cutoff: "582076609134674072265625"},{delta: 11, cutoff: "2910383045673370361328125"},{delta: 11, cutoff: "14551915228366851806640625"},{delta: 12, cutoff: "72759576141834259033203125"},{delta: 12, cutoff: "363797880709171295166015625"},{delta: 12, cutoff: "1818989403545856475830078125"},{delta: 13, cutoff: "9094947017729282379150390625"},{delta: 13, cutoff: "45474735088646411895751953125"},{delta: 13, cutoff: "227373675443232059478759765625"},{delta: 13, cutoff: "1136868377216160297393798828125"},{delta: 14, cutoff: "5684341886080801486968994140625"},{delta: 14, cutoff: "28421709430404007434844970703125"},{delta: 14, cutoff: "142108547152020037174224853515625"},{delta: 15, cutoff: "710542735760100185871124267578125"},{delta: 15, cutoff: "3552713678800500929355621337890625"},{delta: 15, cutoff: "17763568394002504646778106689453125"},{delta: 16, cutoff: "88817841970012523233890533447265625"},{delta: 16, cutoff: "444089209850062616169452667236328125"},{delta: 16, cutoff: "2220446049250313080847263336181640625"},{delta: 16, cutoff: "11102230246251565404236316680908203125"},{delta: 17, cutoff: "55511151231257827021181583404541015625"},{delta: 17, cutoff: "277555756156289135105907917022705078125"},{delta: 17, cutoff: "1387778780781445675529539585113525390625"},{delta: 18, cutoff: "6938893903907228377647697925567626953125"},{delta: 18, cutoff: "34694469519536141888238489627838134765625"},{delta: 18, cutoff: "173472347597680709441192448139190673828125"},{delta: 19, cutoff: "867361737988403547205962240695953369140625"}]
strconv.statictmp_0735 = [470]uint16 [32,126,161,887,890,895,900,1366,1369,1418,1421,1479,1488,1514,1520,1524,1542,1563,1566,1805,1808,1866,1869,1969,1984,2042,2048,2093,2096,2139,2142,2142,2208,2228,2275,2444,2447,2448,2451,2482,2486,2489,2492,2500,2503,2504,2507,2510,2519,2519,2524,2531,2534,2555,2561,2570,2575,2576,2579,2617,2620,2626,2631,2632,...+406 more]
strconv.statictmp_0736 = [136]uint16 [173,907,909,930,1328,1376,1416,1424,1757,2111,2436,2473,2481,2526,2564,2601,2609,2612,2615,2621,2653,2692,2702,2706,2729,2737,2740,2758,2762,2820,2857,2865,2868,2910,2948,2961,2971,2973,3017,3076,3085,3089,3113,3141,3145,3159,3200,3204,3213,3217,3241,3252,3269,3273,3295,3312,3332,3341,3345,3397,3401,3460,3506,3516,...+72 more]
strconv.statictmp_0737 = [342]uint32 [65536,65613,65616,65629,65664,65786,65792,65794,65799,65843,65847,65932,65936,65947,65952,65952,66000,66045,66176,66204,66208,66256,66272,66299,66304,66339,66352,66378,66384,66426,66432,66499,66504,66517,66560,66717,66720,66729,66816,66855,66864,66915,66927,66927,67072,67382,67392,67413,67424,67431,67584,67589,67592,67640,67644,67644,67647,67742,67751,67759,67808,67829,67835,67867,...+278 more]
strconv.statictmp_0738 = [73]uint16 [12,39,59,62,926,2057,2102,2134,2291,2564,2580,2584,4285,4405,4576,4626,4743,4745,4750,4766,4868,4905,4913,4916,9327,27231,27482,27490,54357,54429,54445,54458,54460,54468,54534,54549,54557,54586,54591,54597,54609,55968,60932,60960,60963,60968,60979,60984,60986,61000,61002,61004,61008,61011,61016,61018,61020,61022,61024,61027,61035,61043,61048,61053,...+9 more]
strconv.statictmp_0739 = [16]uint16 [160,5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8239,8287,12288]
strconv.uint64pow10 = [20]uint64 [1,10,100,1000,10000,100000,1000000,10000000,100000000,1000000000,10000000000,100000000000,1000000000000,10000000000000,100000000000000,1000000000000000,10000000000000000,100000000000000000,1000000000000000000,10000000000000000000]
(dlv) trace printLine
Tracepoint 1 set at 0x4010fb for main.printLine() ./main.go:16
(dlv) c
> main.printLine(0, []uint8 len: 16, cap: 16, [99,105,97,111,10,0,0,0,0,0,0,0,0,0,0,0], 1, io.Writer(*struct bufio.Writer) *{err: error nil, buf: []uint8 len: 4096, cap: 4096, [0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,...+4032 more], n: 0, wr: io.Writer(*struct os.File) *{*os.file: *(*struct os.file)(0xc82000a660)}}, 5) ./main.go:16 (hits goroutine(1):1 total:1) (PC: 0x4010fb)
䷀ ䷘䷺䷯ ䷘䷅䷇ ䷀䷄䷀ |ciao. |
Process 24607 has exited with status 0
(dlv) q
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment