I really like the strip command. Using it for years now.
@RmFrZQ3 жыл бұрын
I think you forgot to mention on how to use external debugging symbols, if they are available. They could be available for some libraries and calls used in the program, and they should make assembly debugging more sane and productive.
@farazfazli5 жыл бұрын
Helpful video, thanks for sharing this neat trick!
@kushagrakumar95765 жыл бұрын
Great content 👍 Thanks Jacob
@SimonJentzschX75 жыл бұрын
Thanks, a lot of good ideas!
@kapilverma26683 жыл бұрын
Is it possible to access callstack inside any function? Or can we know caller of a function?
@qwertyqwerty-jp8pr3 жыл бұрын
during program execution, yes. the caller return address is pushed onto the stack so just check the stack memory to see where the function is called
@LindenAshbyMK3 жыл бұрын
What toolset would you suggest to an experienced developer, who 's willing to make a transition into low-level coding, so that the given toolset would have a high demand on a job market ?
@JacobSorber3 жыл бұрын
I would need more details on where you are (what experience you have) and where you are trying to get. Are you trying to get into embedded systems stuff? OS-level work on laptop/desktop/server-class machines? Phones? Those decisions constrain the set of tools a bit. If you're not sure, I would just stick with gcc or clang (and their associated tools) and try to learn as much about how the underlying software layers work. My experience has been that most of the different tools operate similarly.
@LindenAshbyMK3 жыл бұрын
@@JacobSorber My main goal is to get away from web development. Most of my experience is java backend, some j2me, a tiny bit of javascript, but since I was a student, I was always curious about x86 assembly and machine codes. I don't mind get into Windows or Linux desktop apps, maybe some system programming for PC, drivers. Some kind of position to work with full blown OS, I guess, as opposed to exotic world of microcontrollers etc. For example, is it better to invest my time into WinDbg or GDB ?
@skenzou48195 жыл бұрын
Hey could you make a video on multi pipe commands in C ? for example if you have "command1 | command2 | command3 | ...." , how to handle all those fd's the right way with dup/dup2/pipe/close/execve/fork
@JacobSorber5 жыл бұрын
I'll add it to the list and see what I can do.
@skenzou48195 жыл бұрын
@@JacobSorber thanks jacob !
@shivam44284 жыл бұрын
How can we debug a string. basically checking strings just like we check Integer value
@JacobSorber4 жыл бұрын
The print command in gdb works with strings (char *), too. If you're having issues with string corruption and things not being properly null-terminated, check out my video on examining memory in gdb.