GDB BoF notes - GNU Cauldron 2023

Sam James sam@gentoo.org
Fri Sep 29 04:48:33 GMT 2023


Tom Tromey <tom@tromey.com> writes:

>>>>>> "Pedro" == Pedro Alves <pedro@palves.net> writes:
>
> Pedro> - Revisiting defaults
>
> Pedro>   - Can we turn history saving on by default?  Maybe default to
> Pedro>     history on home dir by default, too (~/.gdb_history).  That would
> Pedro>     align us with bash.
>
> Maybe some XDG directory?
>
> Anyway +1 for this from me.

Yes, please. I like Guinevere's idea of possibly allowing to separate
per session but I don't personally see it as a blocker (it's never
bothered me much).

>
> Pedro>   - Can we disable pagination by default?  Surprisingly, no one in the
> Pedro>     room expressed that they like pagination on.
>
> I leave it on but I can't say I really like it.  Mostly I suppose it's a
> distraction and I just haven't bothered changing it.
>
> Pedro>       "(gdb) pipe GDB_COMMAND | less"
>
> I wonder if "with pagination on" works too.
>
> Anyway +1 on this too.
>
>
> Some other defaults to consider:
>
> set print object on
> set breakpoint pending on
> set print pretty on
>
> The last one is iffy I guess, maybe people like the compact output.  The
> first two I think I've had to tell many people about over the years.

I've had to start putting a lot of these on our wiki because it's so
hard to find them / realise they're super useful.

>
> Tom



More information about the Gdb mailing list