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: Save the length of inserted breakpoints


> Date: Fri, 3 Mar 2006 17:10:03 -0500
> From: Daniel Jacobowitz <drow@false.org>
> 
> For the record, it is not a target with peculiarities.  It's an
> architecture with a feature

I don't see the difference.  One man's feature is another's
peculiarity.

> There's a division in GDB between the target, which is a method of
> communication et cetera ("how"), and the architecture, which describes
> "what" is being debugged.

Btw, is this division described anywhere?

> The architecture says "the breakpoint at 0x8000 should be 2 bytes
> long".  The target sets the breakpoint.  The target goes to remove the
> breakpoint, and needs to know how long it was when it was set.

If the issue at hand is just between the architecture and the target,
then why you had to touch breakpoint.[ch] in your patch?  AFAIK,
breakpoint.c belongs to the higher-level GDB layer, above both the
target and the architecture, isn't that so?


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