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

errno definition in return register output #2151

Open
chrf01 opened this issue May 6, 2024 · 0 comments
Open

errno definition in return register output #2151

chrf01 opened this issue May 6, 2024 · 0 comments

Comments

@chrf01
Copy link
Contributor

chrf01 commented May 6, 2024

It would be nice if the register output of the return address register would display errno definitions (if the value is negative):

current output:

*RAX  0xfffffffffffffff7
 RBX  0x7fffffffde88 —▸ 0x7fffffffe1da ◂— '/home/user/Downloads/demo'
*RCX  0x7ffff7fbc017 ◂— 0
 RDX  0
 RDI  0x7fffffffdc98 ◂— '/bin//sh'
 RSI  0
 R8   0x7ffff7e03b20 (main_arena+96) —▸ 0x55555555a3b0 ◂— 0
 R9   0x410
 R10  0x7ffff7c0abe8 ◂— 0x11002200006cb5
*R11  0x346
 R12  1
 R13  0
 R14  0x555555557dc8 (__do_global_dtors_aux_fini_array_entry) —▸ 0x555555555170 (__do_global_dtors_aux) ◂— endbr64 
 R15  0x7ffff7ffd000 (_rtld_global) —▸ 0x7ffff7ffe2e0 —▸ 0x555555554000 ◂— 0x10102464c457f
 RBP  0x7fffffffdd60 —▸ 0x7fffffffde00 —▸ 0x7fffffffde60 ◂— 0
 RSP  0x7fffffffdc98 ◂— '/bin//sh'
*RIP  0x7ffff7fbc017 ◂— 0

what i expect:

*RAX  0xfffffffffffffff7 <EBADF: fd is not a valid file descriptor> 
 RBX  0x7fffffffde88 —▸ 0x7fffffffe1da ◂— '/home/user/Downloads/demo'
*RCX  0x7ffff7fbc017 ◂— 0
 RDX  0
 RDI  0x7fffffffdc98 ◂— '/bin//sh'
 RSI  0
 R8   0x7ffff7e03b20 (main_arena+96) —▸ 0x55555555a3b0 ◂— 0
 R9   0x410
 R10  0x7ffff7c0abe8 ◂— 0x11002200006cb5
*R11  0x346
 R12  1
 R13  0
 R14  0x555555557dc8 (__do_global_dtors_aux_fini_array_entry) —▸ 0x555555555170 (__do_global_dtors_aux) ◂— endbr64 
 R15  0x7ffff7ffd000 (_rtld_global) —▸ 0x7ffff7ffe2e0 —▸ 0x555555554000 ◂— 0x10102464c457f
 RBP  0x7fffffffdd60 —▸ 0x7fffffffde00 —▸ 0x7fffffffde60 ◂— 0
 RSP  0x7fffffffdc98 ◂— '/bin//sh'
*RIP  0x7ffff7fbc017 ◂— 0

I think <EBADF> should be enough, but having an additional short description would be nice.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

2 participants