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

Don't print mutiline struct function arguments on stack when set pretty print on #65

Closed
cirosantilli opened this Issue Jun 17, 2017 · 2 comments

Comments

Projects
None yet
2 participants
@cirosantilli

cirosantilli commented Jun 17, 2017

I want to add to my init:

set print pretty on

to nicely view structs with:

p mystruct

but also use compact:

dashboard stack -style limit 5

The problem is that function arguments are also being expanded on the stack, which easily takes up the whole screen if the struct is large e.g.:

[0] from 0x00005555557ae1d0 in edu_mmio_read+0 at /home/ciro/bak/git/linux-kernel-module-cheat/buildroot/output/build/host-qemu-2.7.0/hw/misc/edu.c:176                         
arg opaque = 0x555557fe8370, addr = 0, size = 4                                                                                      
[1] from 0x00005555557834ae in memory_region_read_accessor+62 at /home/ciro/bak/git/linux-kernel-module-cheat/buildroot/output/build/host-qemu-2.7.0/memory.c:434               
arg mr = 0x555557fe8c00, addr = 0, value = 0x7fffe775b3c0, size = 4, shift = 0, mask = 4294967295, attrs = {                                                                    
  unspecified = 0,                                                                                                                                                              
  secure = 0,                                                                                                                                                                   
  user = 0,                                                                                                                                                                     
  requester_id = 0                                
}                                                                  
[2] from 0x00005555557814fd in access_with_adjusted_size+173 at /home/ciro/bak/git/linux-kernel-module-cheat/buildroot/output/build/host-qemu-2.7.0/memory.c:591                
arg addr = 0, value = 0x7fffe775b3c0, size = 4, access_size_min = <optimized out>, access_size_max = <optimized out>, access = 0x555555783470 <memory_region_read_accessor>, mr
= 0x555557fe8c00, attrs = {                                                                                                 
  unspecified = 0,                                                                  
  secure = 0,                                                                                                                                                                   
  user = 0,                                                                                                                          
  requester_id = 0                                                                                                                                                              
}                                                                          
[3] from 0x0000555555785260 in memory_region_dispatch_read1 at /home/ciro/bak/git/linux-kernel-module-cheat/buildroot/output/build/host-qemu-2.7.0/memory.c:1193
arg attrs = <optimized out>, size = 4, pval = 0x7fffe775b3c0, addr = 0, mr = 0x555557fe8c00
[4] from 0x0000555555785260 in memory_region_dispatch_read+208 at /home/ciro/bak/git/linux-kernel-module-cheat/buildroot/output/build/host-qemu-2.7.0/memory.c:1212             
arg mr = 0x555557fe8c00, addr = 0, pval = 0x7fffe775b3c0, size = 4, attrs = {                                                                                                   
  unspecified = 0,                                
  secure = 0,                                                                 
  user = 0,                                              
  requester_id = 0                               
}  

59bbf40

@cirosantilli cirosantilli changed the title from Don't print mutiline struct function arguments on stack when pretty print is on to Don't print mutiline struct function arguments on stack when set pretty print on Jun 17, 2017

@cyrus-and cyrus-and closed this in dba1d99 Jun 19, 2017

@cyrus-and

This comment has been minimized.

Owner

cyrus-and commented Jun 19, 2017

Thanks, this is a good idea!

@cirosantilli

This comment has been minimized.

cirosantilli commented Jun 19, 2017

HE IS A MACHINE!!!! 😄

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