> From: Tom Tromey > Cc: Tom Tromey , gdb-patches@sourceware.org, > luis.machado@arm.com > Date: Wed, 28 Dec 2022 15:47:09 -0700 > > Eli> OK. Should it be enough to just recompile in the gdb directory with > > Eli> make CXXFLAGS=-pg > > Eli> or do I have to reconfigure with --enable-profiling? > > I think rebuilding should be sufficient but it's been a long time since > I did this, so I'm not totally sure. I've rebuilt with -pg in the following directories: . libiberty . bfd . opcodes . libctf . gdbsupport . gdb The profile produced by gprof is attached. The time information looks very inaccurate, almost bogus, to me (since GDB ran for more than 2 minutes, I expected to see gdb_main show 130 as the value of cumulative seconds, but the profile shows only 2.21?). But nevertheless I hope the data will be useful. Let me know if I can provide more information.