gdb: incorrect exit code

40 views Asked by At

when inserting this code's executable:

section .data
.section .text
.globl _start
_start:
   movl $1,%eax
   mov $27,%ebx
   int $0x80

To gdb and running it - it outputs: [Inferior 1 (process 13321) exited with code 033]

But that's of course not the right status code, but 27... also when running the executable (outside of gdb) and then echo $? it says 27 too. Do you have any idea why it's acting like that?

0

There are 0 answers