I have a problem debugging a C ++ application using a remote GDB session, which is a large code base, and therefore it contains (when compiled with the -O2, '-g', '-DNDEBUG' flags) a large file with debugging information ( 1.1 GB).
Unfortunately, I cannot just use partial symbol tables during debugging, since the debugger skips part of the application all the time, and I cannot set breakpoints there and see the code during debugging.
As a solution to this problem, I execute the following command after connecting to the target:
symbol-file -readnow [path-to-file-with-debugging-info]
This extends the full character tables. But in this case, GDB just runs out of memory striking 13 GB or more RAM (so far I only have 16 GB available on my machine). This issue has already been identified in the GDB Wiki and is known.
My question is how to work with GDB in this case, when I need full character tables, but GDB requires a huge amount of memory to expand it?
Thanks in advance!
source share