≡ Menu

C Programming

There are three types of cryptography techniques : Secret key Cryptography Public key cryptography Hash Functions We discussed about the above techniques earlier in the Cryptography basics article. One simple and basic method to encrypt a message is using Caesar’s cipher. It is a very simple form of encryption, where we take letters one by [...]

{ 20 comments }

How to Debug Programs on Remote Server using GDBServer Example

Remote debugging is the process of debugging a program running on a different system (called target) from a different system (called host). To start remote debugging, a debugger running on host machine connects to a program which is running on the target via network. The debugger in the host can then control the execution of [...]

{ 6 comments }

PAL stands for Physics Abstraction Layer. Physics engine is a programming library that can model most of the essential factors (e.g. gravity, collision) of the physical world. With the help of physics engines, we can enhance the reality of computer games or make an accurate emulation of physics experiment. There are many different physics engine [...]

{ 3 comments }

Few GDB Commands – Debug Core, Disassemble, Load Shared Library

GDB is an essential tool for programmers to debug their code. This article explains how you can use gdb to debug a program with the core file, how to display assembly language instructions of your program, and how to load shared library programs for debugging. Debug a Program with Core File A core file or [...]

{ 5 comments }

GDB Breakpoints and Watchpoints using awatch rwatch Examples

In this tutorial we’ll cover couple of advanced GDB functions including conditional breakpoints, and watchpoints. We’ve also used a simple C program as an example to explain these GDB debugger concepts. GDB Conditional Breakpoints A breakpoint, brakes everytime your program reaches a specific place. You can also specify a condition for breakpoints. A condition is [...]

{ 8 comments }

How to Use GDB Backtrace to Debug Strack Frame using C Example Code

GDB is an essential tool for programmers to debug their code. Breakpoints are the way to tell GDB to stop or pause the program execution at certain line, or function, or address. Once the program is stopped you can examine and change the variable values, continue the program execution from that breakpoint, etc. Similar to [...]

{ 3 comments }

Gdb is an essential tool to debug C programs. Breakpoints are the way to tell GDB to stop or pause the program execution at certain line, or function, or address. Once the program is stopped you can examine and change the variable values, continue the program execution from that breakpoint, etc. If you are new [...]

{ 1 comment }

Top 10 Mistakes Not to Make in a Programming Interview

If you are a programmer, you already know that when you apply for a programming job, the interview process is little different than any other technical job interviews. In this article we will discuss 10 mistakes that you should avoid in a programming interview. 1. No Practice for Writing Code on Paper or Whiteboard This [...]

{ 12 comments }