Skip to content

Commit 2d3f413

Browse files
userland: build with debug symbols
Signed-off-by: Andy-Python-Programmer <[email protected]>
1 parent dd10c95 commit 2d3f413

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

userland/Cargo.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,5 @@
11
[workspace]
22
members = ["aero_shell", "aero_ipc", "init", "system_server", "utest"]
3+
4+
[profile.release]
5+
debug = true

userland/init/src/main.rs

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,14 @@ fn fork_and_exec(path: &str, argv: &[&str], envv: &[&str]) -> Result<usize, Aero
3131
}
3232

3333
fn main() -> Result<(), AeroSyscallError> {
34+
sys_open("/dev/tty", OpenFlags::O_RDONLY)?;
35+
sys_open("/dev/tty", OpenFlags::O_WRONLY)?;
36+
sys_open("/dev/tty", OpenFlags::O_WRONLY)?;
37+
3438
// TODO: make this test case succeed!
35-
//
3639
// let _1 = Box::new(0);
3740
// let pid = sys_fork()?;
38-
//
41+
3942
// if pid == 0 {
4043
// let _2 = Box::new(0);
4144
// println!("from child: {}", _2);
@@ -45,10 +48,6 @@ fn main() -> Result<(), AeroSyscallError> {
4548
// println!("from parent: {}", _2);
4649
// }
4750

48-
sys_open("/dev/tty", OpenFlags::O_RDONLY)?;
49-
sys_open("/dev/tty", OpenFlags::O_WRONLY)?;
50-
sys_open("/dev/tty", OpenFlags::O_WRONLY)?;
51-
5251
fork_and_exec("/bin/system_server", &[], &[])?;
5352
fork_and_exec("/bin/aero_shell", &[], &[])?;
5453

0 commit comments

Comments
 (0)