|
Go into the debug settings, uncheck "suppress jit optimization on module load", debug a release build. Or you can throw an exception near the code you want to see (throw it conditionally in a way that you know is true but the compiler won't know, to stop it optimizing stuff out), let the program die and attach debugger when prompted.
E: you can open the disassembly window anyway, but if you don't do those things then you get the deliberately deoptimized debug version, which is not representative of the program the way it will really be executed.
honey the codewitch wrote: Some methods can be resolved using a jump because all they do is forward calls to another method.
This can happen a lot in OOP when you have base classes calling derived classes through virtual functions. I don't really get what you have in mind here, otherwise I would try it myself.
modified 14-Dec-19 9:32am.
|
|
|
|
|
abstract class Foo {
public abstract Bark();
}
abstract class Bar : Foo {
}
class Dog : Bar {
}
I just realized something.
The only way to make what I happened happen is to do in such a way that it won't matter anyway.
Basically the vtbl slots will already be filled with the forwarded pointer. My bad.
So never mind. I'll leave my message up in shame
When I was growin' up, I was the smartest kid I knew. Maybe that was just because I didn't know that many kids. All I know is now I feel the opposite.
|
|
|
|
|
Sounds like you're mixing up inheritance with representation.
But I'm probably wrong though, from what you've posted so far, you're better than me.
|
|
|
|
|
I was having an off moment. Wasn't thinking about the vtbl holes being filled for some reason.
it's been too long since I've written COM classes in C++. That keeps my vtbl knowledge fresh (i never use ATL because it's clunky)
When I was growin' up, I was the smartest kid I knew. Maybe that was just because I didn't know that many kids. All I know is now I feel the opposite.
|
|
|
|
|
|
|
That was not a bright bird. You do not mess with the octopus.
When I was growin' up, I was the smartest kid I knew. Maybe that was just because I didn't know that many kids. All I know is now I feel the opposite.
|
|
|
|
|
you can't be bad and bright at the same time
|
|
|
|
|
I like the way the sub title says the octopus was released and the guy is trying to shake it off the boat hook - who released who.
Never underestimate the power of human stupidity -
RAH
I'm old. I know stuff - JSOP
|
|
|
|
|
just finished a binge watch of mr. mercedes season 3. Good, easy, plausible.
- yeah season 2 was a bit implausible, but s3 barely brings that up, all of 2 brief mentions
but best part is it ended, no loose strings, everything closed,and no new plot teasers...
It actually ended! Refreshing. No waiting for more.
so used to there being some new twist revealed [right at the end], unfinished / branch [sub] plot, or sometimes straight-up in-your-face hints pointing to [the producers milking] a new season
only to have the executives claim 'not enough audience' (reality not enough $).
otoh also fair to add a lot of the MM cast were pretty old of a more senior persuasion; nothing kills a series faster then a lead actor kicking the bucket mid stream - maybe a risk management call?
<< Signature removed due to multiple copyright violations >>
|
|
|
|
|
You would not say that if you knew Mr Mercedes. No doubt he will have another 1000 changes to everything I delivered him today. For the rest of the year he is out of luck. I still had a few free days left. See you in january.
I have lived with several Zen masters - all of them were cats.
His last invention was an evil Lasagna. It didn't kill anyone, and it actually tasted pretty good.
|
|
|
|
|
Now I'm a little scared. Because code that I knew was broken is working but when I "fixed" it the whole thing falls on its face.
The problem is, given a bit of code, find all variables declared within the scope of that code.
Prior, i was just getting all the variables in the routine. I knew it was wrong, but i hadn't worked out the problem yet.
Now I have, so I went back to update the code. As soon as I put it in Slang's patcher stops finding some of my variables!
So I test the variable tracer some more. It works as good as I could have hoped.
Which means somewhere, something else doesn't. And I barely know where to begin to look because of how this works.
Worse, currently my repro requires running a very particular bit of slang code as part of my lexer generator - "Rolex"'s operation, which means i had to pull that out and duplicate it in a scratch binary to debug, but it's still not very narrowed down. I can't quite find the bit where i need to test in the debugger.
The trouble is visitors are nasty when things go wrong. The visitor works right, it's the code that's firing on visit that's bad somewhere, and that happens inside a visit so the call stack is a nightmare.
And it's friday the 13th. Just my day. Maybe I should stay off the computer.
Building stuff like this is rough.
When I was growin' up, I was the smartest kid I knew. Maybe that was just because I didn't know that many kids. All I know is now I feel the opposite.
|
|
|
|
|
Are you using this forum as your rubber duck?
|
|
|
|
|
One quack for yes, two quacks for no.
- I would love to change the world, but they won’t give me the source code.
|
|
|
|
|
|
Is Yogi's picnic basket loaded for bear?
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
With the ranger options available, I'd say you made a Boo Boo with that post.
Ravings en masse^ |
---|
"The difference between genius and stupidity is that genius has its limits." - Albert Einstein | "If you are searching for perfection in others, then you seek disappointment. If you seek perfection in yourself, then you will find failure." - Balboos HaGadol Mar 2010 |
|
|
|
|
|
think you made a boo boo: it's called a "pickinic basket."
<< Signature removed due to multiple copyright violations >>
|
|
|
|
|
Shouldn't that be 'loaded for Berra'? Though I'm not sure as I'm feeling just av er age today.
"the debugger doesn't tell me anything because this code compiles just fine" - random QA comment
"Facebook is where you tell lies to your friends. Twitter is where you tell the truth to strangers." - chriselst
"I don't drink any more... then again, I don't drink any less." - Mike Mullikins uncle
|
|
|
|
|
He's making a database.
He's sorting it twice.
SELECT * FROM contacts WHERE behavior = 'nice'
SQL Clause is coming to town!
Sorting twice, SELECT *, seems Santa is getting coal this year!
|
|
|
|
|
I have proof that Santa works for the NSA:
Quote: He sees you when you're sleeping
He knows when you're awake
He knows if you've been bad or good
So be good for goodness sake
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
|
you forgot 'helping himself to your cookies'
so he also knows where you've been and regularly go to
<< Signature removed due to multiple copyright violations >>
|
|
|
|
|
These days he just checks what Alexa and its ilk have collected.
|
|
|
|
|
OriginalGriff wrote: I have proof that Santa works for the NSA
One of the few instances where marketing might be actually useful.
If the NSA just presented themselves slightly differently, they wouldn't be seen as this ominous presence.
"We're your free backup and storage solution!"
|
|
|
|