1 May 2003 04:13
Re: breakpoints in constructors
Daniel Berlin <dberlin <at> dberlin.org>
2003-05-01 02:13:28 GMT
2003-05-01 02:13:28 GMT
On Wednesday, April 30, 2003, at 10:43 AM, Michael Elizabeth Chastain wrote: > Hi Daniel, > >> It's not required multi-object-code, it's only required that it does >> the right thing when called with a certain name (not the same at all, >> since one can just make up the symbols for the constructors that >> start >> at the right points in the "one object code constructor" function, >> without even having to make stub functions with gotos in them. Just >> multiple symbol names and one object code). > > I see what you mean. The ABI requirements are that there be two or > three > labels, and that the labels have different semantics. It was just an > assumption on my part that C++ compilers always emit distinct, > single-entry-point functions. It was just a "it's simple to implement this way, we'll optimize it later" thing, i think. You know, of the "why not keep the ABI implementation simple before we make it buggy" thought? :P > >> One way is to make one "visible" breakpoint and 2 "hidden" >> breakpoints. >> This is a bit ugly, unless you special case the breakpoint printouts >> so >> that it says the one "visible" breakpoint is at pc x, y, z, rather(Continue reading)
]
Pproviding both AT_ENTRY_POINT and ON_STACK is _far_ more effort than
providing the ability to override what gdb uses for CALL_DUMMY_ADDRESS.
Perhaps what I should have done is just hardwire it to 42. 1/2
RSS Feed