Re: GDB BoF notes - GNU Cauldron 2023

Tom Tromey <[email protected]>
Newsgroups gmane.comp.gdb.devel
Message-ID <[email protected]>
>>>>> "Pedro" == Pedro Alves <[email protected]> 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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.