Solaris Core dump analysis
I use pstack to analyze core dump files in Solaris How else can I analyze the core dump from solaris? What commands can be used to do this? What other information will be available from the dump? ...
I use pstack to analyze core dump files in Solaris How else can I analyze the core dump from solaris? What commands can be used to do this? What other information will be available from the dump? ...
I do TDD on a daily basis for my C++ development on Solaris10. It has greatly reduced the time I have to spend using my debugger but sometime this is the only option. DBX is pretty powerful but not that user friendly. Note that I'm talking about console DBX not the SunStudio GUI for DBX). What are the best productivity tips you can giv...
When I am single stepping through one thread of a multi threaded program, the debugger gets interrupted with: 0x(some hex ref) : tdb_event_death : ret dbx: thread has exited -- next aborted My guess is a thread somewhere in the program I am debugging has stopped, but it's not the one I'm debugging so I can't see why I have to res...
I have an iterator to a map element, and I would like gdb to show me the values of the "first" and "second" elements of that iterator. For example: std::map<int,double> aMap; ...fill map... std::map<int,double>::const_iterator p = aMap.begin(); I can use p.first and p.second in the code, but can't see them in gdb. For what it's worth,...
I have a TSqlDataSet which has a blob field, I need to get the data of this blob field in the BeforeUpdateRecord event of the provider and execute an update command, I've tried this: Cmd := TSQLQuery.Create(nil); try Cmd.SQLConnection := SQLConnection; Cmd.CommandText := 'UPDATE MYTABLE SET IMAGE = :PIMAGE WHERE ID = :PID'; Cmd.Pa...
A co-worker has a C program that fails in a predictable manner because of some corrupted memory. He'd like to use dbx to monitor the memory location once it's allocated in order to pinpoint the code that causes the corruption. Is this possible? If so what is the syntax to produce a breakpoint at the moment of corruption? If not, what...
Looks like the TSQLConnection only connects to existing databases, and I could not find another component that allows me to send commands to the database server. I'm using Delphi 2009 with Firebird and MSSQL. One idea that came was to connect to a system database (master or tempdb in MSSQL for example) and then send create commands to ...
Is there something wrong with this code? Sometimes I get an unhandled "Invalid transaction object" exception in it: procedure BlaBla; var TD: TDBXTransaction; begin TD := SQLConnection.BeginTransaction; try SQLConnection.ExecuteDirect('some sql command'); SQLConnection.ExecuteDirect('some sql command'); SQLConnection.C...
I am using the Linux version of dbxtool to debug a 64-bit programme called frankie: file ../support/frankie ../support/frankie: ELF 64-bit LSB executable, AMD x86-64, version 1 (SYSV), for GNU/Linux 2.6.4, dynamically linked (uses shared libs), for GNU/Linux 2.6.4, not stripped When I attempt to load the executable within dbxtool, I g...
Which is better (and for what reasons) to use to connect to MS SQL, Oracle or Firebird from a Delphi Win32 application -- ADO or DBX (Database Express)? Both allow you to connect to the major databases. I like the way ADO does it all with a connection string change and the fact that ADO and the drivers are included with Windows so noth...
hi, i am using AIX OS.here i am facing a problem that when ever the process crashes there is no stack written in the log.it just gives an information of signal1/10/4 has occured. but no stack is shown. since the code is an optimized code i am even not able to debud using dbx.gdb is not installed. could you please suggest how to see the ...
Hi All, Can you post your most tricky and useful commands while you run a debugger like gdb or dbx. ...
Hi I have written a code based upon a requirement. (field1_6)*(field2_30)*(field3_16)*(field4_16)*(field5_1)*(field6_6)*(field7_2)*(field8_1)*..... this is one bucket(8 fields) of data. we will receive 20 buckets at a time means totally 160 fields. i need to take the values of field3,field7 & fields8 based upon predefined condition. i...
What is the best and easiest method to debug optimized code on Unix which is written in C? Sometimes we also don't have the code for building an unoptimized library. ...
This might be genuine question but i am asking here since i was out of any clue when i was asked this question in an interview. how could we debug a thread which was created by another thread? let's say there is a main process and it calles the function pthread_create to create a thread process which is not joinable and that means both ...
Now that I have decided upon Firebird, with the help of StackOverflow :), which driver do you recommend? Delphi's DBX Another vendor's DBX Some native driver Thanks. ...
Hi, I'm strugling with error message "Incorrect values within SQLDA structure" when I'm trying to update blob field within Firebird 2.1 database from Delphi 2009 DBX application. However I get the error message when I'm trying to execute TSQLQuery with following SQL: "update MYTABLE set FIELD1= :data where id = :id" The relevant delp...
I generally use dbx for debugging C code. How do we log the complete session of the dbx from the point I started to the point I fired the quit command in dbx? ...
I made a small app that connects to a mysql db using dbx. It works ok with my local mysql server, but it's supposed to work with a remote server. Connecting to the remote server takes a few seconds, which freezes the app. So my question is, how can I put the connection code in a different thread? I'll have to pass that connection to t...
im using pathmap , to map the source and objects , compiled with -g -xs but still dbx can't find the source files what else can it be ? ...