public inbox for insight@sourceware.org
 help / color / mirror / Atom feed
* question about breakpoints
@ 2000-12-04 13:01 Tom Tromey
  2000-12-04 13:49 ` Fernando Nasser
  2000-12-04 15:43 ` Fernando Nasser
  0 siblings, 2 replies; 12+ messages in thread
From: Tom Tromey @ 2000-12-04 13:01 UTC (permalink / raw)
  To: Insight List

Today I've done a bit of work on making my session saving code also
save breakpoints and watchpoints.

I'd really like to access the `exp_string' and `addr_string' fields of
gdb's `struct breakpoint'.  Currently the Tcl interface gives me no
way to do that.

What is the preferred fix here?  One idea would be to introduce a new
Tcl command, like `gdb_get_breakpoint_info_x" (x == "extended", a
MS-esque naming choice).  Another idea might be to update
gdb_get_breakpoint_info (and all callers -- you can see why I might be
reluctant to do this).

Maybe there is another choice I'm missing?


I'm a bit concerned about the ad hoc nature of the gdb-specific Tcl
commands implemented in C.  There are a lot of these, but we need
more, and there doesn't seem to be any coherent guidelines governing
how they should act.  It leaves me questioning the long-term viability
of this approach.

I know the long term plan is to use MI and have gdbtk be a separate
process.  That's fine.  But even then we need some API to gdb.
Changing APIs during this transition is going to be very hard if there
is a lot of ad hoc code to update, especially when you consider that
this will have to be done on top of solving the other problems
inherent in the two-process approach.

Tom

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2000-12-05 12:17 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-12-04 13:01 question about breakpoints Tom Tromey
2000-12-04 13:49 ` Fernando Nasser
2000-12-04 14:51   ` Tom Tromey
2000-12-04 15:43 ` Fernando Nasser
2000-12-04 16:17   ` Tom Tromey
2000-12-05  5:54     ` Keith Seitz
2000-12-05  7:06       ` Fernando Nasser
2000-12-05  9:43         ` Tom Tromey
2000-12-05 10:06           ` Fernando Nasser
2000-12-05 12:17             ` Tom Tromey
2000-12-05  9:31       ` Tom Tromey
2000-12-05  9:40         ` Fernando Nasser

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).