Programming :: Debugging Multithreaded Application?

Aug 23, 2010

i need to debug a application which is using many threads. i am using eclipse with GDB debugger but it is not possible to debug it since it has a lot of different threads and i can not not debug it as wre debug in case of single thread(main) . So i would like to know, is there a way to debug such an application, if there is some tutorial that would be nice to know.

View 8 Replies


ADVERTISEMENT

Programming :: Working With C++ And Autotools - Debugging Application ?

Mar 22, 2010

I have started to work with c++ and autotools.

I mainly maintain an application and a shared library as a hobby.

Nothing professional yet, because I want to understand the best practice strongly recommended by advanced professional programmers.

I check out my sources into $HOME/repository and svn creates:

Where I get c++ sources/headers + configure.ac and Makefile.am

Now I need to understand what is considered as a good practice for debugging application, either A), B) or something else.

A) install application and its dependency with:

or

B)

And then I debug the application in the place it was built. [$HOME/repository/app/src/]

View 2 Replies View Related

Programming :: Effective Debugging Or Improving Ones Debugging Skills ?

May 21, 2009

Does anyone know how can one improve his debugging skills or how can one narrow down the problem and try to get to the solution ASAP.Or rather how once should approach a problem.I know this is a bit vague question but I want to know how you people approach?

View 3 Replies View Related

General :: Multithreaded Application / CPU And Memory Usage

Feb 14, 2009

We run Jboss app server that of course is all multithreaded under one JVM. I have couple of question regarding monitoring on per thread basis:

1. Is there a way to see which thread is bound to which CPU core?
2. Is there a way to see the CPU, Memory usage per thread? Something like prstat on Sun box which is real time and gives detailed information about threads per CPU

View 6 Replies View Related

Programming :: Multithreaded App Using Pth Does Not Work?

Mar 4, 2010

I threw this togher based on the examples but the thread does not seem to run:

Code:
#include <stdio.h>
#include <pth.h>

[code]...

View 3 Replies View Related

Programming :: MultiThreaded Program In C++?

Oct 23, 2010

I have a program called "Device Manager" to manange usb tokens for sending and recieving
multiple data to/from them using shared memory method.Here is a piece of "Device Manager" code:

Code:
int main()
{

[code]...

View 3 Replies View Related

Programming :: Multithreaded Reading And Writing Of A Shared Integer?

Nov 4, 2010

It it safe to read a shared integer while another thread is writing to it on a multicore system?

View 3 Replies View Related

Programming :: GDB (No Debugging Symbols Found)

Oct 19, 2010

I'm running gdb across a network using gdb server. I've got it up and running. However I can't see any source or variables for my code (in ddd /gdb). At start up gdb says (no debugging symbols found). I've got a g in my make file,
CPFLAGS = -Wall -Os -g -pedantic

I've tried loading symbols in using "symbol-file testarm", this sort of works in that I can view symbols but not names, e.g. if I ask dd to show x y and z, rather than
x = 10
y = 20
x = 30

It says:
display
10/20/30

Also ddd does not show anything in the source window, is there a way I can get it to show this? I think it's because I've started ddd with ddd arm-linux-gdb, as I'm calling a crosscompiler gdb. So can I tell ddd to point to the correct folders? What commands I need to set in gdb/ddd to view variable names (it's hard to keep track when it bunches them all together) and how to view my source code.

View 2 Replies View Related

Programming :: Switch Between Processes When Debugging With Gdb?

Feb 11, 2011

How to switch between processes when debugging with gdb?

View 2 Replies View Related

Programming :: Debugging GTK + Programs Hangs The System?

Oct 28, 2010

A thread-aware version of gdb receives a system notification when a thread starts in the app it is debugging. GTK+ has hidden threads associated with loading icons into menus. So trying to debug a GTK+ program, even one that is apparently single-threaded, can produce a deadlock between gdb, the app and XWindows. The app (actually GdkPixbufLoader) grabs the focus, the mouse and the keyboard and then starts a thread when a menu is opened. If gdb has trouble with threads, it leaves the app blocked but still holding the mouse, et. al. Then you can't talk to gdb or any other GUI interface. To make gdb happy, all GTK+ apps need to be linked with -pthread, if you have the source. If not, gdb cannot be used. In order to break the deadlock, you need a non-GUI shell. If your /etc/inittab starts agetty, mingetty, or the like, and you can get to it with <CRTL><ALT><F3...F6>, you can do a kill -KILL <pid> on the offending app, recover and then go back to XWindows with <CTRL><ALT> <F1/F2>. Otherwise it's reboot time.

View 3 Replies View Related

Programming :: Debugging Kernel Binaries And Modules

Jun 13, 2011

I need to debug "ls". I downloaded coreutils and compiled them in debug mode."ls" uses readdir() kernel API to fetch files/directories from a file system. readdir() fetch data from any file system (suppose FAT or ext3).I have debug version of FAT/ext3 and installed, I also have debug version of coreutils (ls) as well.Now I want to debug from "ls" to "FAT/ext3 readdir()".How to do that?

View 6 Replies View Related

Programming :: Debugging Nasm Source Code ?

Dec 5, 2010

I found on the Internet a rough suggestion to debug code which says to add a line:

An example shows this lists the lines of source that do work.

I do not know where these lines are supposed to go and whether the "notdeadyet" should be a call to a subroutine or what. I only found that "%define" is used to link to external files, so I am confused because what I tried did not work.

(I am unable to use (and learn) any debugging tool for another few weeks and I'd like to progress on this If I can.)

View 2 Replies View Related

Programming :: Debugging QT Project Through GDB In Command Line?

Jan 31, 2011

First step will obviously be to compile the QT project with -g option, but how to do that through command line?

View 6 Replies View Related

Programming :: Gdb Debugging Exec From Child Process?

Jul 14, 2011

Im using gdb for debugging my application.. I was able to debug child process(when fork comes) .. and in child process we have an exec call to .... So the problem is, when the control come to exec , the exec process is executing at a time... I could not debug the exec. process... error is stack curruption due to same frame So, is there any way to debug the exec process

View 1 Replies View Related

Programming :: Make File Debugging Racking?

Feb 24, 2010

I have an environment where i have recursive make files (that is one main and in each directory of a project a file.mk with rules for that directory).Since i'm not the one who wrote it i'm not familiar with it. I would like to explore when i run certain targets how the rules work, which files cause dependency rules to work and why. Also i would like to know ALL the targets that are available to me. i couldn't find any way to 'debug' makefiles or to put it in such debug mode that i see all the information i need when i run a certain target.

View 4 Replies View Related

Programming :: Debugging Shell Script With A Variable Expansion?

Jan 20, 2011

What I am trying to accomplish is a way to read only the lines that have been added to the file mylog0 since the last time the script looped (5 seconds). I am open to new suggestions too, I have been stuck on this little script for a few hours already.

Code: #!/bin/bash
i=0
firstline=0

[code]...

View 2 Replies View Related

Programming :: No Debugging Symbols Found (not The Simple Case)?

Jan 6, 2011

I wasn't sure where to put this so if I need to move it just let me know.I have a strange problem that I cannot figure out. When I use gdb to debug our rpm-installed program, it says (no debugging symbols found) when it loads. Thing is, when I use nm on the program it can print the symbols, and even stranger is if I use gdb on the program before it is packed up by rpmbuild it loads the debug symbols just fine.Our program is built via the standard make using:GS=-g -Wall-pedantic and as I mentioned I can debug the resulting program. After the build, I package it up using:

cmd="rpmbuild -v -bb ptsnmp.spec --define "ver ${cmvc_release}" --define "rel ${cmvc_level}" --define "_topdir $rpmdir""When this package is installed via rpm, the binary on the machine shows all the debug info via nm, file shows it is not stripped:pt_snmp: ELF 64-bit LSB executable, AMD x86-64, version 1 (SYSV), for GNU/Linux 2.6.9, dynamically linked (uses shared libs), for GNU/Linux 2.6.9, not strippedyet when I try to debug it I get the no debugging symbols found.This is really taxing my brain and I am sure I am just missing something

View 4 Replies View Related

Programming :: Debugging A Simple Server Supporting Multiple Clients

Sep 24, 2009

I don't have any problem when I'm communicating with one client. The problem starts when I connect another client.The server eventually ignores the older clients and responds only to the latest one.The working mechanism is simple: Accept connections and print messages received from multiple clients.

View 4 Replies View Related

General :: Profile A Multithreaded Program Using Gprof?

Jan 7, 2010

How to profile a multithreaded program using gprof?

View 1 Replies View Related

Software :: Limiting CPU Usage Of A Multithreaded Process?

Oct 12, 2010

I have a multi-threaded process running and I have to limit the cpu time used by each of the threads. If 1 of the threads uses the whole of configured CPU time, the other thread should sleep and not consume CPU time in that cycle. 1 thread has higher preference over the other. How can i implement it my CPP code?

View 1 Replies View Related

Fedora :: Application For Programming AVR?

Sep 29, 2010

I want to ask whether there is an application to program the AVR on Linux. if there is what the name of his application? and where I can get it

besides, I also want to install the supporting applications to make PCBs, in windows I used mangunakan Altium.

if for linux what is the name of his application?

View 1 Replies View Related

Debian Programming :: Packaging A Qt Application?

Jan 3, 2009

I'm trying to package a Qt application using debuild. However, I can't figure out how to make qmake generate a correct Makefile.

The main problem is that the binary doesn't get put into ./usr/bin inside the .deb.

So dh_shlibdeps always fails and I get the following:

Code: Select alldpkg-gencontrol: warning: unknown substitution variable ${shlibs:Depends}
dpkg-gencontrol: warning: unknown substitution variable ${misc:Depends}

The resulting debian package then has an empty "depends" field and no binary.

I used the Qt Hello World example application to start.

I changed debian/rules (generated by dh_make) so that it runs qmake as follows:

Code: Select all#!/usr/bin/make -f
# -*- makefile -*-
# Sample debian/rules that uses debhelper.
# This file was originally written by Joey Hess and Craig Small.
# As a special exception, when this file is copied by dh-make into a
# dh-make output file, you may use that output file without restriction.
# This special exception was added by Craig Small in version 0.37 of dh-make.
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1

[code]....

View 6 Replies View Related

Programming :: Launch Application With RS-232 Message?

May 13, 2010

am using a PC104 with Linux and i need to control it with a controller that is connected via RS-232 or USB port. I need to launch one or more application some specific message come through RS-232 port. Is that doable? If yes how? I am beginner with C++ on Linux so i don't really know specif libraries. If possible i would like to use pure C and not C++.

View 4 Replies View Related

Programming :: Add Graphic To Console Application?

Aug 1, 2010

I want to write an application with an interface similar to those used in non-GUI linux installation programs. It is not really a pseudo-graphic. Does anybody knows an appropriate library?

View 2 Replies View Related

Programming :: Compiling The Library + Application?

Nov 28, 2010

I'm trying to learn how to cross-compile libraries (static and shared) and executables for the Blackfin + uClinux environment.At this point, I can successfully compile a stand-alone "Hello, world" but fail when trying to add a (static) library to the mix.Here's the source code I wrote:

Code:

#========== bar.h
void mytestfunc(void);
#========== bar.c
#include <stdio.h>

[code]...

Googling for this returns talks about "name mangling", but I don't know if this is what it is, and how to change the source/command to solve it.

View 1 Replies View Related

Programming :: Application Requires Later Glibc

May 10, 2011

My users need to run an application which was build with newer GLIBC_2.11, while my system only gets GLIBC_2.4. It shows error "cannot find libc.so.6 GLIBC_2.11" whenever I run it. I cannot upgrade the system, so I have tried building Glibc 2.11 (for example:/opt/glibc-2.11) to another directory, but when I point LD_LIBRARY_PATH to /opt/glibc-2.11, I cannot run any commands because of error invalid LFS ABI. I also tried using LD_PRELOAD, but it does not work. Please help me, how can I fix this problem.

View 3 Replies View Related

Programming :: C# ; Can't Stop Application Properly?

Jun 8, 2011

I'm developping a C# app in Windows using VS2010. It has one form and communicates as a client with a server.A receive thread displays incoming data while buttons and a timer send data. All workingThe form has a button that calls the below method to disconnect from the server.

Code:
public bool disconnect()
{

[code]...

View 2 Replies View Related

Programming :: Get Application Under Mouse Cursor?

Jan 2, 2010

Is there a somewhat straightforward way to get the name or pid of the application that is under the mouse's cursor? What I'm trying to do: This is just a "what if" at this point, I would like to run some script that would obtain the name/pid of any application that the mouse cursor is on, and use xte to assign different functions to different mouse buttons. For instance, assign a given button the Forward or Back function when the cursor is on a browser, but assign a scroll-left or scroll-right to the same button when it's on a spreadsheet. Is there any way to accomplish this, say, in a script that I could run at startup as a background process?

View 4 Replies View Related

Programming :: Link A C Application Using Glib 2.0?

Mar 29, 2009

I never had to use anything more than -l , -lm , -c ,-o.It was only through dev documentation that I came across glib. Now I want to to compile and link a program with glib.

View 5 Replies View Related

Programming :: Get The Log (syslog) Messages Through Application?

Mar 30, 2009

I want read the log messages to my 'c' application , i am using the fedora core 8 operating system , how to read the system log messages(syslog) through my application.

View 3 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved