This is the mail archive of the gdb-patches@sources.redhat.com 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: Next over function and breakpoint setting


Daniel Jacobowitz wrote:


"The next line of code" is a very iffy concept. GDB doesn't analyze a line to figure out what it does, or where it might transfer control to... while possible, that would be a very different approach to debugging. So the only way we have to implement next is to step and see where we end up - and if we don't like it, go until we're somewhere else.


I guess I wasn't really asking a question - I was just confused by the way it was implemented since it wasn't what I had expected. Anyhow, thanks for clearing that up.

BTW, have a look at the step out of range code. The theory is that the target be presented with a range of addresses and it run until it leave that range (as is the case with a step or next).


The implementation breaks the theory -- the code didn't consider threads and multi-threaded interactions. As far as I'm concerned, to fix the theory we need to disentangle threads.

Andrew



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