Berkeley CSUA MOTD:Entry 37861
Berkeley CSUA MOTD
 
WIKI | FAQ | Tech FAQ
http://csua.com/feed/
2025/05/25 [General] UID:1000 Activity:popular
5/25    

2005/5/27-6/2 [Computer/SW/Compilers] UID:37861 Activity:nil
5/27    GDB quetion.  On Linux, When I use gdb to attach to a process that has
        many modules, does gdb automatically load all the symbol files for all
        the modules?  I'm trying to figure out why gdb itself is using so much
        memory (100MB+) on my system.  Thanks.
        \_ why shouldn't it?  100MB sounds pretty standard for projects these days.
        \_ why shouldn't it?  100MB sounds pretty standard for projects these
           days.
           days.  -- OP
           \_ Well, it's an embedded system with only 128MB of RAM.
           \_ Well, it's an embedded system with only 128MB of RAM.  -- OP
              \_ thank god for virtual memory then
                 \_ The problem is that it swaps too much which slows down my
                    threads and screws up the timing.  So it's hard to debug
                    problems that occurs only under certain timing condition.
                    --- OP
                    \_ You might want to look into remote debugging using gdb.
                       See the gdbserver and gdbreplay tools. -gm
                       \_ Will do.  Thanks!