Re: Two observations using GDB 13 snapshot

Eli Zaretskii via Gdb-patches
2022-12-29T15:18:50Z

[-- Attachment #1: Type: text/plain, Size: 930 bytes --]

> From: Tom Tromey <tom@tromey.com>
> Cc: Tom Tromey <tom@tromey.com>, 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.

[-- Attachment #2: gdb_read_symbols.prof.xz --]
[-- Type: application/octet-stream, Size: 88016 bytes --]