================ @@ -0,0 +1,90 @@ +import type { CellComponent, ColumnDefinition } from "tabulator-tables"; +import type { DAPSymbolType } from ".." + +function get_tabulator_hexa_formatter(padding: number): (cell: CellComponent) => string { + return (cell: CellComponent) => { + const val = cell.getValue(); + if (val === undefined || val === null) { + return ""; + } + + return val !== undefined ? "0x" + val.toString(16).toLowerCase().padStart(padding, "0") : ""; + }; +} + +const SYMBOL_TABLE_COLUMNS: ColumnDefinition[] = [ + { title: "User ID", field: "userId", sorter: "number", widthGrow: 0.8 }, + { + title: "Name", + field: "name", + sorter: "string", + widthGrow: 3, + minWidth: 200, + tooltip : (_event: MouseEvent, cell: CellComponent) => { + const rowData = cell.getRow().getData(); + return rowData.name; + } + }, + { + title: "DSX", ---------------- ashgti wrote:
I feel like DSX isn't a very obvious name, I wasn't sure what this column was in the video reference. Maybe we could have a slightly more descriptive title? Or call this like `Symbol Attributes` or something? Not sure how to keep this compact while still being descriptive. https://github.com/llvm/llvm-project/pull/153836 _______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits