Re: GDB BoF notes - GNU Cauldron 2023

Tom Tromey
2023-09-28T20:45:08Z

>>>>> "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.

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.

Tom