From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stan Shebs To: gdb@cygnus.com Subject: Re: Any way to avoid inserting & removing breakpoints? Date: Thu, 17 Dec 1998 17:39:00 -0000 Message-id: References: <199812150126.RAA24778.cygnus.gdb@jtc.redbacknetworks.com> X-SW-Source: 1998/msg00197.html jtc@RedBackNetworks.com (J.T. Conklin) writes: > I finished my breakpoint extensions prototype, and discovered that GDB > inserts all enabled breakpoints when program execution is resumed, and > removes them when it regains control. Yes, this is a "feature". It's pretty well wired into GDB. It might be possible to make insert_breakpoints() and remove_breakpoints() do some sort of caching-like thing, but I'm not sure that all target memory reads know about substituting original code, so you might get punished when you're doing disassembly or prologue analysis. Stan