Commit 662e202
committed
feat: add line filtering to decompile for context management
Add start_line, end_line, and max_lines parameters to decompile
functions, allowing AI models to retrieve only specific portions
of decompiled code for better context management.
Parameters:
- start_line: Start at this line number (1-indexed)
- end_line: End at this line number (inclusive)
- max_lines: Maximum lines to return (overrides end_line)
Response includes filter metadata with total_lines when filtering
is applied, helping models understand what portion they're viewing.
Examples:
- Get first 20 lines: max_lines=20
- Get lines 10-30: start_line=10, end_line=30
- Get 15 lines from line 25: start_line=25, max_lines=151 parent 60124d2 commit 662e202
File tree
2 files changed
+85
-15
lines changed- src/main/java/eu/starsong/ghidra/endpoints
2 files changed
+85
-15
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1351 | 1351 | | |
1352 | 1352 | | |
1353 | 1353 | | |
1354 | | - | |
| 1354 | + | |
1355 | 1355 | | |
| 1356 | + | |
1356 | 1357 | | |
1357 | | - | |
1358 | | - | |
| 1358 | + | |
| 1359 | + | |
1359 | 1360 | | |
1360 | 1361 | | |
1361 | 1362 | | |
1362 | 1363 | | |
1363 | 1364 | | |
| 1365 | + | |
| 1366 | + | |
| 1367 | + | |
1364 | 1368 | | |
1365 | | - | |
| 1369 | + | |
1366 | 1370 | | |
1367 | | - | |
| 1371 | + | |
| 1372 | + | |
| 1373 | + | |
| 1374 | + | |
| 1375 | + | |
| 1376 | + | |
| 1377 | + | |
| 1378 | + | |
| 1379 | + | |
| 1380 | + | |
| 1381 | + | |
| 1382 | + | |
1368 | 1383 | | |
1369 | 1384 | | |
1370 | 1385 | | |
| |||
1375 | 1390 | | |
1376 | 1391 | | |
1377 | 1392 | | |
1378 | | - | |
| 1393 | + | |
1379 | 1394 | | |
1380 | | - | |
| 1395 | + | |
1381 | 1396 | | |
1382 | 1397 | | |
1383 | 1398 | | |
1384 | 1399 | | |
1385 | | - | |
| 1400 | + | |
| 1401 | + | |
| 1402 | + | |
| 1403 | + | |
| 1404 | + | |
| 1405 | + | |
| 1406 | + | |
| 1407 | + | |
| 1408 | + | |
1386 | 1409 | | |
1387 | 1410 | | |
1388 | 1411 | | |
1389 | 1412 | | |
1390 | | - | |
| 1413 | + | |
1391 | 1414 | | |
1392 | 1415 | | |
1393 | | - | |
| 1416 | + | |
1394 | 1417 | | |
1395 | 1418 | | |
1396 | 1419 | | |
| |||
Lines changed: 52 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1090 | 1090 | | |
1091 | 1091 | | |
1092 | 1092 | | |
1093 | | - | |
| 1093 | + | |
| 1094 | + | |
| 1095 | + | |
| 1096 | + | |
| 1097 | + | |
| 1098 | + | |
1094 | 1099 | | |
1095 | 1100 | | |
1096 | | - | |
| 1101 | + | |
| 1102 | + | |
| 1103 | + | |
| 1104 | + | |
| 1105 | + | |
| 1106 | + | |
| 1107 | + | |
| 1108 | + | |
| 1109 | + | |
| 1110 | + | |
| 1111 | + | |
| 1112 | + | |
| 1113 | + | |
| 1114 | + | |
| 1115 | + | |
| 1116 | + | |
| 1117 | + | |
| 1118 | + | |
| 1119 | + | |
| 1120 | + | |
| 1121 | + | |
| 1122 | + | |
| 1123 | + | |
| 1124 | + | |
| 1125 | + | |
| 1126 | + | |
| 1127 | + | |
| 1128 | + | |
| 1129 | + | |
| 1130 | + | |
| 1131 | + | |
| 1132 | + | |
| 1133 | + | |
1097 | 1134 | | |
1098 | 1135 | | |
1099 | 1136 | | |
1100 | 1137 | | |
1101 | | - | |
| 1138 | + | |
1102 | 1139 | | |
1103 | 1140 | | |
1104 | 1141 | | |
1105 | | - | |
1106 | | - | |
| 1142 | + | |
| 1143 | + | |
| 1144 | + | |
| 1145 | + | |
| 1146 | + | |
| 1147 | + | |
| 1148 | + | |
| 1149 | + | |
| 1150 | + | |
| 1151 | + | |
| 1152 | + | |
| 1153 | + | |
1107 | 1154 | | |
1108 | 1155 | | |
1109 | 1156 | | |
| |||
0 commit comments