From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mark Salter To: kevinb@cygnus.com Cc: davidwilliams@ozemail.com.au, gdb@sourceware.cygnus.com Subject: Re: Breakpoints Date: Wed, 22 Dec 1999 07:09:00 -0000 Message-id: <199912221509.KAA07326@msalter2.cygnus.com> References: <01BF4C88.F6D54B20.davidwilliams@ozemail.com.au> <991222035342.ZM17881@ocotillo.lan> X-SW-Source: 1999-q4/msg00541.html >>>>> Kevin Buettner writes: > On Dec 22, 2:29pm, David Williams wrote: >> Does GDB ever need to set more than one breakpoint when stepping through >> source code? I have not (as yet) seen this type of behaviour. > Can the target do a singlestep in hardware or do you have to do > software emulation? If the latter, when you're stepping by machine > instruction, you'd need two breakpoints on a conditional branch; > one for the branch target, the other for the instruction after the > branch. Even in the latter case, the stub can evaluate the condition of the branch to see which way its going to go. --Mark