LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Blogs
User Name
Password

Notices


Old

Setting watchpoint for watching writes on a variable in C++ - GDB

Posted 01-16-2012 at 06:14 AM by TheIndependentAquarius
Updated 01-18-2012 at 09:48 AM by TheIndependentAquarius

Watchpoint basics:
  • Watchpoints are set on the variables, not on the functions or on the lines of code.
  • When the watched variables are read or written, the watchpoint gets triggered and the program's execution stops.

Watchpoints on non-global variables:
  • To set a watchpoint on a non-global variable, we must first set a breakpoint that will stop the program in the scope of the variable to be watched.
  • The watchpoint can be set after the program stops at the above set breakpoint.
  • To
...
Senior Member
Posted in GNU GDB
Views 6737 Comments 0 TheIndependentAquarius is offline
Old

See source code intermixed with assembly

Posted 01-16-2012 at 03:25 AM by hydraMax (Bits and Pixels)

Maybe everybody else already knows this, but I thought it was pretty neat anyway:

If you compile some C code with -g option (to include debugging symbols), you can then use objdump on the binary, with the -S switch, to get source code intermixed with assembly. For example, here is a snippet from one of my binaries:

Code:
int main() {
  401163:       55                      push   %rbp
  401164:       48 89 e5                mov    %rsp,%rbp
  401167:
...
Member
Posted in Uncategorized
Views 818 Comments 0 hydraMax is offline
Old

Stragest BugZ Part 2

Posted 01-15-2012 at 10:57 PM by rainbowsally
Updated 01-16-2012 at 12:48 AM by rainbowsally (code error)

[Edited: Corrected md5sum generator, Jan 15, 2012.]

Before I forget, I want to jot some notes on the screwiest bugs I've seen.

Kubuntu next.

I initially got the Live CD, version 11.10, but I have dialup. After playing with it a while I got 12.4 on the DVD and currently my Kubuntu is on mothballs but I do want to jot down a few things I noticed.

First of all, Kubuntu is so biased toward those with a high speed internet connection that I...
Member
Posted in Uncategorized
Views 449 Comments 0 rainbowsally is offline
Old

Slackware-13.37-Hacks-TrueCrypt

Posted 01-15-2012 at 07:40 PM by arniekat

You need to compile and install in the following order from SlackBuilds:

cryptoki-2.20
wxGTK-2.8.12
truecrypt-7.1

CREATING AN ENCRYPTED FILE-BASED CONTAINER

At the TrueCrypt dialog box, select "Create Volume".
Select "Create an encrypted file container" and click Next.
Select "Standard TrueCrypt Volume" and click Next.
At the Volume Location dialog box, click Select File.
Navigate...
LQ Newbie
Posted in Uncategorized
Views 875 Comments 0 arniekat is offline
Old

It's alive.

Posted 01-15-2012 at 11:54 AM by peonuser

Replaced several apps on the web server. Sugarcrm is gone now. But by and large the server is running again. Still have to finish setting up the email server.

Solved my problem with qb64. Now I can run so much old software on linux! Compiled my old database program.

Found source code for a neat little web server (nweb) at IBM that serves static files. Compiled it and works great on linux. Perfect for our robotics project.

Time to watch football...
Member
Posted in Uncategorized
Views 413 Comments 0 peonuser is offline

  



All times are GMT -5. The time now is 01:34 AM.

Main Menu
Advertisement
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration