Problems with the dbx debugger


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Problems with the dbx debugger
# 1  
Old 03-22-2011
Problems with the dbx debugger

hey everyone,
i'm having a little problem with my dbx debugger.
the problem is that when i try to print a struct it print it as a struct from another type. i even tried casting the struct to its type and it still print it as the other type..
anyone had that problem and solved it? or maybe have any idea what could cause that problem?

thanks ahead,
Doron
# 2  
Old 03-22-2011
Try gdb? I db very rarely, mostly for core stack trace, preferring lots of logging, debug flag controlled logging, error checking and truss/tusc/strace.
# 3  
Old 03-23-2011
i didnt try gdb.. and i use log prints most of the time, but the problem i had seems really strange to me, and debugger would be halping me so i thougt maybe someone know what could cause it...
thanks anyway
# 4  
Old 03-24-2011
Sorry I have no exact answer, just a few ways forward if no expert steps forth (Each reply moves you to the top of some lists!).
  1. truss/tusc/strace can be turned on to various levels of detail, like in Solaris truss -u '*' shows all lib calls.
  2. gdb is free of onerous licenses, and if it does not work, you can ask or there is source to unscrew mysteries or fix it yourself. I used to run a frequent cron on production to find all core, use file to identify them, locate the executable, use gdb to get a stack trace, mail that to me, and move the core to /tmp, compressed, for future reference or eventual purge (not necessarily in that order, but all good steps -- email has core original and final file names). It is amazing what your code can be up to, behind your back, on a server!
# 5  
Old 03-24-2011
Quote:
Originally Posted by sabres207
or maybe have any idea what could cause that problem?
I'm afraid not unless this happen to be a well known bug.
Otherwise, that would be hard without knowing what OS you run, what dbx version you use, what programming language was used, what compiler was used to build the code, what code was referencing the structure, and even with all of that information, a reproducible case would likely be required to identify the source cause ...
 
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Solaris

Problems in reading CORE DUMP file with dbx

I am new to UNIX. My Application is using c (.so files) and Java code. My application crashes and CORE DUMP file is generated ,which is huge. Now I want to view the CORE DUMP file to debug the application using dbx without starting process again. By only using the CORE DUMP file and dbx ,can i... (1 Reply)
Discussion started by: satde
1 Replies

2. Programming

Alternative debugger to GNU insight debugger

GNU insight debugger is not available now a days and it is required to debug/inspect assembly code as written in the book Assembly Language Programming step by step in Linux so my question is; is there any alternative to insight that I can use instead of insight in which I can get the same... (5 Replies)
Discussion started by: vectrum
5 Replies

3. Programming

Dbx Debugger

I have tried lots of stuff but i can't get it working, i have also found a Thread in this Forum about it but it didn't describe how the program has to be run ect. My issue is that i want to run a program with multiple arguments eg. ./myprog arg1 arg2 arg3 arg4 arg5 with dbx, but i cant get... (8 Replies)
Discussion started by: alcatros
8 Replies

4. Shell Programming and Scripting

How to use dbx on AIX?

Hi, I ahd created my executable file from makefile on AIX. Now I want to debug my code using dbx. I typed: dbx help It goes into (dbx) prompt But afte that i do not know what to do to put breakpoints in my program and how to run step by step. Help me out ASAP. Thanks in... (0 Replies)
Discussion started by: Poonamol
0 Replies

5. UNIX for Advanced & Expert Users

need help on dbx commands?

Hi .. I have a core_dump in the server... AIX 5.3 . It was created by on proc executable called "ProcessIse" . from the log report i found the source file name "ProcessIseInterface.C" which created the core file. the core file name is : "core" under /iprs/bin directory. can you help me... (1 Reply)
Discussion started by: vparunkumar
1 Replies

6. Programming

No dbx installed

I have a problem whith dbx: there is no dbx installed!!! Could someone tell me where do i get dbx program and how to install it? Thanks. (1 Reply)
Discussion started by: calloc
1 Replies

7. Programming

dbx debugger + argv[argc]

Is it possible to use the dbx debugger with the CL options for the executable ? Say you have created a executable called myfunc which can take string arguments at run-time. You run it like this ./myfunc Hello World where Hello and World are the string arguments My question is whether... (1 Reply)
Discussion started by: JamesGoh
1 Replies

8. Solaris

Help required on DBX

Hi All, I've been using Linux for past 2yrs for professional dev. Im well-off with gnu gdb. I am a C++ developer. Now that i use solaris, I need help on DBX. Regards, Sumanth (1 Reply)
Discussion started by: Sumanth
1 Replies

9. Programming

GDB or DBX??

Which is better?? I have always been a gdb fan.. But ppl say dbx is beter better for debugging the core.. Do all GDB lovers agree to it??? :cool: (1 Reply)
Discussion started by: jyotipg
1 Replies
Login or Register to Ask a Question