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: [RFA] Resubmit process record and replay, 4/10


Pedro Alves wrote:
A Thursday 20 November 2008 01:46:05, Michael Snyder escreveu:
Seems like a couple of people had some doubts about this
particular part of the implementation.

Does anyone have any alternative suggestions?


Sounds like a deficiency of the target interface, as most target_ops functions don't take a "this" pointer and do the "beneath" lookup themselves.

Would doing something like this work here? :

  for (t = current_target.beneath; t != NULL; t = t->beneath)
    if (t->to_xfer_partial != NULL)
	{
	  t->to_xfer_partial (...);
	  return;
	}

  etc., that is don't stop looking at the immediate
  target beneath, but look until you find one that suits instead.

I'd prefer that the core side isn't special cased for
the record target.  If need be, we can add, change or adapt
the target interfaces.


I think that you're right that the "target beneath" functionality is incomplete as it is.


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