Skip to content
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

Replay osx support #115

Merged
merged 3 commits into from
Nov 7, 2024
Merged

Replay osx support #115

merged 3 commits into from
Nov 7, 2024

Conversation

joshuacolvin0
Copy link
Member

If using MacOS, cargo stylus replay needs to use rust_lldb instead of rust_gdb

@joshuacolvin0 joshuacolvin0 changed the base branch from main to develop November 4, 2024 02:16
@joshuacolvin0 joshuacolvin0 marked this pull request as draft November 4, 2024 02:25
@joshuacolvin0 joshuacolvin0 marked this pull request as ready for review November 4, 2024 19:01
Copy link
Contributor

@gligneul gligneul left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

Tested on macos and it works

(lldb) br set -f lib.rs -l 50
Breakpoint 2: where = libstylus_hello_world.dylib`stylus_hello_world::Counter::set_number::hff6961d5fa7cb04d + 24 at lib.rs:50:9, address = 0x0000000101a17a6c
(lldb) c
Process 62424 resuming
Process 62424 stopped
* thread #1, name = 'main', queue = 'com.apple.main-thread', stop reason = breakpoint 2.1
    frame #0: 0x0000000101a17a6c libstylus_hello_world.dylib`stylus_hello_world::Counter::set_number::hff6961d5fa7cb04d(self=0x000000016fdf6c00, new_number=Uint<256, 4> @ 0x000000016fdf6f70) at lib.rs:50:9
   47
   48  	    /// Sets a number in storage to a user-specified value.
   49  	    pub fn set_number(&mut self, new_number: U256) {
-> 50  	        self.number.set(new_number);
   51  	    }
   52
   53  	    /// Sets a number in storage to a user-specified value.
(lldb) p new_number
(ruint::Uint<256, 4>) {
  limbs = {
    [0] = 10
    [1] = 0
    [2] = 0
    [3] = 0
  }
}

@joshuacolvin0 joshuacolvin0 merged commit c16aa16 into develop Nov 7, 2024
7 checks passed
@joshuacolvin0 joshuacolvin0 deleted the replay-osx-support branch November 7, 2024 18:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants