Skip to content

Commit 8e7dd93

Browse files
committed
Add comment with symtab_command decl to clarify reads
1 parent 5761360 commit 8e7dd93

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

lldb/source/Plugins/ObjectFile/Mach-O/ObjectFileMachO.cpp

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2276,6 +2276,14 @@ void ObjectFileMachO::ParseSymtab(Symtab &symtab) {
22762276
// Watch for the symbol table load command
22772277
switch (lc.cmd) {
22782278
case LC_SYMTAB:
2279+
// struct symtab_command {
2280+
// uint32_t cmd; /* LC_SYMTAB */
2281+
// uint32_t cmdsize; /* sizeof(struct symtab_command) */
2282+
// uint32_t symoff; /* symbol table offset */
2283+
// uint32_t nsyms; /* number of symbol table entries */
2284+
// uint32_t stroff; /* string table offset */
2285+
// uint32_t strsize; /* string table size in bytes */
2286+
// };
22792287
symtab_load_command.cmd = lc.cmd;
22802288
symtab_load_command.cmdsize = lc.cmdsize;
22812289
symtab_load_command.symoff = m_data.GetU32(&offset);

0 commit comments

Comments
 (0)