473,387 Members | 1,650 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Is there a way with Linux x86 to report a way the current stack trace for a thread?

Is there a way with Linux x86 to report a way the current stack trace
for a thread during runtime without a debugger? (I couldn't find
anything searching Google.)

For Windows this is possible. Here's an example of an application that
uses Window's stack tracing abilities:

http://www.codeproject.com/tools/visualleakdetector.asp

Many thanks!

- Kevin

Oct 20 '05 #1
4 1569
kevin.h...@motioneng.com wrote:
Is there a way with Linux x86 to report a way the current stack trace
for a thread during runtime without a debugger? (I couldn't find
anything searching Google.)

For Windows this is possible. Here's an example of an application that
uses Window's stack tracing abilities:

http://www.codeproject.com/tools/visualleakdetector.asp

Many thanks!

- Kevin


This is off topic in this newsgroup, which is concerned with standard
C++ language issues. Try in a Linux programming forum. See this FAQ for
some specific suggestions:

http://www.parashift.com/c++-faq-lit...t.html#faq-5.9

Cheers! --M

Oct 20 '05 #2
ke********@motioneng.com wrote:
Is there a way with Linux x86 to report a way the current stack trace
for a thread during runtime without a debugger? (I couldn't find
anything searching Google.)

For Windows this is possible. Here's an example of an application that
uses Window's stack tracing abilities:

http://www.codeproject.com/tools/visualleakdetector.asp

Many thanks!

- Kevin


I was able to write one in SCO ODT 2. Look at ptrace(2) or whatever the
equivalent in Linux is.

However, as mlimber pointed out, this is OT. Try gnu.g++.help
Oct 20 '05 #3
ke********@motioneng.com wrote:
Is there a way with Linux x86 to [...]


You seem lost. You need 'comp.os.linux.development.*' hierarchy.
'comp.lang.c++' is about C++ _language_. When you have a C++ language
question, please come back and ask it.

V
Oct 20 '05 #4

ke********@motioneng.com wrote:
Is there a way with Linux x86 to report a way the current stack trace
for a thread during runtime without a debugger? (I couldn't find
anything searching Google.)


You should ask in linux newsgroup then.
For a gcc there is void* __builtin_return_address(unsigned level);
and void* __builtin_frame_address(unsigned level);
with level 0 returning current function and frame address respectively.

Greetings, Bane.

Oct 20 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Adi | last post by:
A java program we have written crashes with IBM JDK 1.3.1 on linux. It works fine on other platforms(Solaris,HPUx). It gets a SIGSERV Signal 11 and crashes just after few minutes after starting up....
3
by: Russ | last post by:
I have a page that uses crystal reports to generate reports from a SQl server database. As of a week ago everything was working fine, but now I am all of the sudden getting errors. To the best of...
2
by: Simon Abolnar | last post by:
I would like to ask, is it a way to deploy ASP.NET app with Crystal Report without using setup. I have problem with my VS.NET (Unrecoverable Build Error). I copied dll files to bin folder, but...
2
by: jyothi rajanna | last post by:
Hi, We are trying to deploy an application that uses crystal.net(version 9.1) as a reporting tool. We created the Websetup.exe file using the MergeModule and ran the same in the production...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.