dbx

start gdb using a pid

In general i see the process's pid which is running in the background and start dbx on that process using the command dbx -a <pid> similarly how could i do it using gdb? ...

Core file Issue

Any idea about the core file debugged by dbx debugger. I am not getting why this core file is generated. Please help me on this For information about new features see `help changes' To remove this message, put `dbxenv suppress_startup_message 7.6' in your .dbxrc Reading mhost.new core file header read successfully Reading ld.so.1 Readin...

process identification

Let's say i have 15 processes/daemons running in the background. let's say one of the process has dumped the core. how could i identify which process has dumped the core. i am using hpux! ...

debugging C++ when compared to debugging C

HI, I am normally a C programmer. I do regularly debug C programs on unix environment using tools like gdb,dbx. i have never done debugging of big applications of C++. Is that much different from how we debug in C. theoretically i am quite good in C++ but have never got a chance to debug C++ programs. I am also not sure about what kind ...

How do you print C dynamic array contents from dbx?

How do you print C dynamic array contents from dbx? i tried print aj[2..10:1] but it didnt work ...

redirecting output of 'where' in dbx

I'm trying to get the call stacks leading to a function, func, each time it gets invoked in my executable, and I don't mind if the way to get this is slow or inefficient, so long as it's automated (because 'func' gets hit thousands of times). I have access to dbx, so I thought I could do something like this: (dbx) { when in func { wher...

Detect memory leaks in dbx with new and delete operators

Hello. I'm very interested in using Sun Studio to detect memory leaks in C++ applications with dbx debugger but I think this debugger only shows memory leaks produced by malloc/realloc and free; I'm not sure about this but I've tried with a C++ program and I've obtained no memory leaks. In this case, I'd try Valgrind. If I've done someth...

C/C++ Question about trace-programming techniques.

I have the following question and from a systems perspective want to know how to achieve this easily and efficiently. Given a task 'abc' that has been built with debug information and a global variable "TRACE" that is normally set to 0, I would like to print out to file 'log' the address of each function that is called between the time ...

Memory leak problem with DBExpress

Hi, I've a weird problem with my application, its memory usage goes up a few hundred megabytes at once every now and then and eventually the application freezes. The application is written with Delphi, it uses database, COM (for OPC) and TCP/IP. With FastMM I've got following the screen shot of memory usage. I'm not completely sure ho...