Can I Debug Release Code?

  Рет қаралды 13,757

Jacob Sorber

Jacob Sorber

Күн бұрын

Пікірлер: 16
@cipherxen2
@cipherxen2 3 жыл бұрын
I really like the strip command. Using it for years now.
@RmFrZQ
@RmFrZQ 3 жыл бұрын
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.
@farazfazli
@farazfazli 5 жыл бұрын
Helpful video, thanks for sharing this neat trick!
@kushagrakumar9576
@kushagrakumar9576 5 жыл бұрын
Great content 👍 Thanks Jacob
@SimonJentzschX7
@SimonJentzschX7 5 жыл бұрын
Thanks, a lot of good ideas!
@kapilverma2668
@kapilverma2668 3 жыл бұрын
Is it possible to access callstack inside any function? Or can we know caller of a function?
@qwertyqwerty-jp8pr
@qwertyqwerty-jp8pr 3 жыл бұрын
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
@LindenAshbyMK
@LindenAshbyMK 3 жыл бұрын
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 ?
@JacobSorber
@JacobSorber 3 жыл бұрын
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.
@LindenAshbyMK
@LindenAshbyMK 3 жыл бұрын
@@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 ?
@skenzou4819
@skenzou4819 5 жыл бұрын
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
@JacobSorber
@JacobSorber 5 жыл бұрын
I'll add it to the list and see what I can do.
@skenzou4819
@skenzou4819 5 жыл бұрын
@@JacobSorber thanks jacob !
@shivam4428
@shivam4428 4 жыл бұрын
How can we debug a string. basically checking strings just like we check Integer value
@JacobSorber
@JacobSorber 4 жыл бұрын
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.
@shivam4428
@shivam4428 4 жыл бұрын
@@JacobSorber okay .thank you
Debugging with Macros (-g3,-ggdb)
3:15
Jacob Sorber
Рет қаралды 4,5 М.
Reviewing your Code: Refactoring
16:21
Jacob Sorber
Рет қаралды 31 М.
Thank you Santa
00:13
Nadir Show
Рет қаралды 46 МЛН
Sigma Kid Mistake #funny #sigma
00:17
CRAZY GREAPA
Рет қаралды 8 МЛН
How do I access a single bit?
11:07
Jacob Sorber
Рет қаралды 22 М.
How to make memory read-only in your C programs.
12:57
Jacob Sorber
Рет қаралды 20 М.
How to Intercept and Modify Library Calls with Shims.
10:14
Jacob Sorber
Рет қаралды 19 М.
How to Check Your Pointers at Runtime
14:12
Jacob Sorber
Рет қаралды 31 М.
Debugging with Core Dumps
9:16
Jacob Sorber
Рет қаралды 66 М.
Header Issues: Guards, Name Mangling, and extern "C"
8:32
Jacob Sorber
Рет қаралды 79 М.
How to Inspect Compiled Binaries (binutils, objdump)
7:53
Jacob Sorber
Рет қаралды 43 М.
Is the C programming language still worth learning?
9:27
Jacob Sorber
Рет қаралды 109 М.
How to write your own code libraries in C.
9:57
Jacob Sorber
Рет қаралды 145 М.
Dealing with Endianness Issues in your Programs
6:14
Jacob Sorber
Рет қаралды 27 М.
Thank you Santa
00:13
Nadir Show
Рет қаралды 46 МЛН