You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I don't know why, maybe its something dumb and I misunderstand things, but I cant compile any asm source code file. I run and asm program just does nothing and call_assembly function just returns 0. No Errors or segfaults ever printed, even checked in gdb. I assume its suppose to generate .cor file in the same directory but there is nothing, and nothing in Players folder too. If I modify the .s file and write some syntax errors on purpose in there same thing, asm program gives nothing (looks like it does not even parse the file). The game itself runs fantastically from the example files that are compiled already.
here is the output.
root@kali:~/Desktop/Corewar# gdb --args ./asm ./bigzork.s
GNU gdb (Debian 8.2.1-2) 8.2.1
Copyright (C) 2018 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from ./asm...(no debugging symbols found)...done.
(gdb) start
Temporary breakpoint 1 at 0x1675
Starting program: /root/Desktop/Corewar/asm ./bigzork.s
Temporary breakpoint 1, 0x0000555555555675 in main ()
(gdb) next
Single stepping until exit from function main,
which has no line number information.
File |./bigzork.s| 0
__libc_start_main (main=0x555555555671 <main>, argc=2, argv=0x7fffffffe1a8, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7fffffffe198) at ../csu/libc-start.c:342
342 ../csu/libc-start.c: No such file or directory.
(gdb)
[Inferior 1 (process 12290) exited with code 01]
(gdb)
The program is not being run.
(gdb) q
root@kali:~/Desktop/Corewar# ./asm ./zork.s
File |./zork.s| 0
root@kali:~/Desktop/Corewar# ls
asm asm_dir author bigzork.s corewar images libft LICENSE.txt Makefile Players README.md VM zork.s
root@kali:~/Desktop/Corewar#
Help pls!
The text was updated successfully, but these errors were encountered:
I don't know why, maybe its something dumb and I misunderstand things, but I cant compile any asm source code file. I run and asm program just does nothing and call_assembly function just returns 0. No Errors or segfaults ever printed, even checked in gdb. I assume its suppose to generate .cor file in the same directory but there is nothing, and nothing in Players folder too. If I modify the .s file and write some syntax errors on purpose in there same thing, asm program gives nothing (looks like it does not even parse the file). The game itself runs fantastically from the example files that are compiled already.
here is the output.
Help pls!
The text was updated successfully, but these errors were encountered: