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][python] Add breakpoint support.


>>>>> "Joel" == Joel Brobecker <brobecker@adacore.com> writes:

Joel> I almost did implement things that way, and it's certainly better
Joel> than nothing. Maybe I'm letting best be the enemy of good, but there
Joel> are issues with a pure CLI script approach that a user cannot control.
Joel> For instance, what if one of the breakpoints now fails? A CLI script
Joel> would abort early, leaving some of the breakpoints not restored.
Joel> If some of the breakpoints were in DSOs that only get loaded at runtime,
Joel> should they be created as pending? I can't remember what the default
Joel> is when from_tty is not set...  I like the python approach because it
Joel> allows us to provide a more configurable approach than a pure CLI script
Joel> would give us.

FWIW the existing "save breakpoints" command just writes out a script
that can be "source"d.  We just punted on all those problems --
definitely not ideal.

Tom


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