compile with debugger help

Technical discussion for those interested in Supermodel development and Model 3 reverse engineering. Prospective contributors welcome.
Forum rules
Keep it classy!

  • No ROM requests or links.
  • Do not ask to be a play tester.
  • Do not ask about release dates.
  • No drama!

compile with debugger help

Postby solitarius576 » Sat Aug 13, 2022 8:57 am

mingw32-make ENABLE_DEBUGGER=1 -f Makefiles/Makefile.Win32
I use the above command, is it correct?
I get the following error

Code: Select all
Generating dependencies: Src/OSD/SDL/Main.cpp -> obj64/Main.d
Compiling              : Src/OSD/SDL/Main.cpp -> obj64/Main.o
Src/OSD/SDL/Main.cpp:877:106: error: 'IScripting' has not been declared
  877 | int Supermodel(const Game &game, ROMSet *rom_set, IEmulator *Model3, CInputs *Inputs, COutputs *Outputs, IScripting* scripting, std::shared_ptr<Debugger::CDebugger> Debugger)
      |                                                                                                          ^~~~~~~~~~
Src/OSD/SDL/Main.cpp: In function 'int SDL_main(int, char**)':
Src/OSD/SDL/Main.cpp:1997:66: error: cannot convert 'std::shared_ptr<Debugger::CSupermodelDebugger>' to 'int*'
 1997 |   exitCode = Supermodel(game, &rom_set, Model3, Inputs, Outputs, Debugger);
      |                                                                  ^~~~~~~~
      |                                                                  |
      |                                                                  std::shared_ptr<Debugger::CSupermodelDebugger>
Src/OSD/SDL/Main.cpp:877:118: note:   initializing argument 6 of 'int Supermodel(const Game&, ROMSet*, IEmulator*, CInputs*, COutputs*, int*, std::shared_ptr<Debugger::CDebugger>)'
  877 | int Supermodel(const Game &game, ROMSet *rom_set, IEmulator *Model3, CInputs *Inputs, COutputs *Outputs, IScripting* scripting, std::shared_ptr<Debugger::CDebugger> Debugger)
      |                                                                                                          ~~~~~~~~~~~~^~~~~~~~~
mingw32-make: *** [Makefiles/Rules.inc:280: obj64/Main.o] Error 1


mingw32-make -f Makefiles/Makefile.Win32
this builds without errors, but off course no debugger
solitarius576
 
Posts: 39
Joined: Thu Oct 20, 2016 10:33 pm

Re: compile with debugger help

Postby rokfpoewrkcpoqwkcp » Sat Aug 13, 2022 3:27 pm

Ian fixed this in the Sourceforge repo but it missed the move to GitHub.

Here's the commit...
https://sourceforge.net/p/model3emu/code/888/

He just removed the scripting parameter. I think it' s a remnant of one of njz3's branches.
rokfpoewrkcpoqwkcp
 
Posts: 119
Joined: Mon Nov 18, 2019 3:40 pm

Re: compile with debugger help

Postby Bart » Sat Aug 13, 2022 10:15 pm

Submit a PR on GitHub. Now's your chance to go down in history as part of Supermodel's commit log :D
User avatar
Bart
Site Admin
 
Posts: 3086
Joined: Thu Sep 01, 2011 2:13 pm
Location: Reno, Nevada

Re: compile with debugger help

Postby solitarius576 » Sat Aug 13, 2022 11:53 pm

thx
it compiles now, after making the modification
solitarius576
 
Posts: 39
Joined: Thu Oct 20, 2016 10:33 pm

Re: compile with debugger help

Postby rokfpoewrkcpoqwkcp » Sun Aug 14, 2022 2:21 am

Bart wrote:Submit a PR on GitHub. Now's your chance to go down in history as part of Supermodel's commit log :D

Will do.

Funny thing is, I was going to submit my commit "Align ROM names with MAME" immediately, just so I would be first. Then I came to my senses and waited for some body else to go first, as a change to just the Games.xml would trigger an unnecessary rebuild. I think the push got it's own build in the end anyway, but never mind :D
rokfpoewrkcpoqwkcp
 
Posts: 119
Joined: Mon Nov 18, 2019 3:40 pm


Return to The Dark Room

Who is online

Users browsing this forum: No registered users and 1 guest