This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [patch] Implement $_version; for auto-load commands in ~/.gdbinit


>>>>> "Jan" == Jan Kratochvil <jan.kratochvil@redhat.com> writes:

Jan> One solution would be some new mode where errors are only printed
Jan> and script execution does not stop there.

I think that would be preferable.  It is better to test features rather
than versions.

It is trivial to write an 'ignore-errors' in python, or C for that matter.
Or you could resurrect the old try-catch patch for the CLI that is
languishing in bugzilla.

Jan> I have implemented a way to explicitly check for GDB version instead.

The problem I see is that distros often ship new features but can't
assign a meaningful new version number.

Tom


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]