-
Notifications
You must be signed in to change notification settings - Fork 117
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MacOS arguments passed to app #649
Comments
The 'open' command seems to be somewhat borked in Catalina at least. while using the application directly is fine: To me, this says that Stella is correctly processing the commandline (the second case), but that |
Would be handy to see what exactly Stella is "seeing" when arguments are passed this way. I don't really have the nous how to check this, though. |
Also, that trailing "/" in the first example... seems a bit odd. |
Here is my functional solution - this is what my makefile has to get everything working on MacOS...
First, kill previous stella instance, if any This seems to be working for me. Sharing in case others have the same problem. |
I find it strange, that Stella seems to load the .lst and .sym files but somehow fails when parsing them. |
Yes I agree and noticed that too. That's why I'd love to see the command line arguments that Stella is getting. What is causing it to "mangle" the disassembly to 5000? |
I think somehow the parsing of the files fails, not the parsing of the command line. |
It's easy enough to see the args that Stella gets. In |
I added the following code below the line in the last message:
When I run Stella with
So that shows the 'help' commandline argument is being received by Stella, and set to '1'. When I run with |
To be clear, you're saying stella doesn't run at all when you do this?
|
I added your code and tested. No output. |
A bit of a clue that something is happening, albeit strange. This will not open stella...
This will open stella...
Again, no output though. |
... and now after rebuilding with XCODE and with the diagnostic code you posted -- even though I am not getting any output to the terminal window, it is all working properly. That is,
is now working once again. Symbols are OK. Everything is OK. |
The issue is not the Line 62 in 79a1235
If Stella is called from the command line or by simply opening it, we pass If a file is opened from the GUI (or with I think we should revise this at some point, but to do this properly, we first need to do research on the way MacOS handles this process on different OS versions. In the meantime, if you want to call Stella from the command line, I think the best way is to call the binary in the bundle directly ( |
This is a bit bizarre, and probably an error on my part.
So I'm using MacOS and I wanted to pass arguments to stella.app via command line instantiation. So here's what I had...
This was working (or appeared to be) for quite some time (weeks).
But recently I found the stella debugger was failing in that it could not associate labels with addresses. In the screenshot you see that I've done a reset, but instead of showing F000 as the reset address (in the disassembly) it starts at 5000. And of course none of the labels are there.
No idea where that 5000 came from.
In any case, if I change the run command to this...
... then it all works just as expected. Reset address disassembly F000, and the symbols are present. I expect, as I said, I'm the cause of this but thought it worth reporting. I'm attaching the relevant binary/symbol files in case needed.
BD.zip
Summary: with the "arguments" added to the open command for Stella, disassembly fails with incorrect PC address shown.
The text was updated successfully, but these errors were encountered: