mirror of
https://github.com/morluto/rea.git
synced 2026-11-05 06:15:59 +00:00
11 lines
438 B
TypeScript
11 lines
438 B
TypeScript
/** Snapshot ordered MI records and retain their raw stream encodings. */
|
|
export const snapshotGdbCommandRecords = (records: readonly string[]) => {
|
|
const snapshot = [...records];
|
|
return {
|
|
records: snapshot,
|
|
console: snapshot.filter((line) => line.startsWith("~")).join("\n"),
|
|
target: snapshot.filter((line) => line.startsWith("@")).join("\n"),
|
|
log: snapshot.filter((line) => line.startsWith("&")).join("\n"),
|
|
};
|
|
};
|