Dbx Debugger


 
Thread Tools Search this Thread
Top Forums Programming Dbx Debugger
# 1  
Old 08-31-2010
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 it working...


This was the Thread i mentioned:
dbx debugger + argv[argc]

Can somebody give me an example ?

Thanks would be awesome,

Alcatros
# 2  
Old 08-31-2010
Just use the run command followed by the arguments you want to pass.
# 3  
Old 08-31-2010
I have tried going into dbx

dbx

then i enter

run programname argument

it says: cannot read run programname argument

Any Ideas?
# 4  
Old 08-31-2010
Sure. "run" expects the program's arguments but not the program name itself which should be passed to the dbx command.
This User Gave Thanks to jlliagre For This Post:
# 5  
Old 08-31-2010
Thank you very much! i executed "dbx programname" after this "run arg1 arg2" and it actually runs, i tried to put in a breakpoint beforehand why doesn't it stop & why do i see the program output instead of the "debugger"? The only way i can go into it properly is Ctrl+C. Thanks for the response already!
# 6  
Old 08-31-2010
Please post you whole dbx session output (enclosed with code tags).
# 7  
Old 08-31-2010
[alcatros@system_one] dbx MyProgram
Type 'help' for help.
reading symbolic information ...
(dbx) file myprog.cpp
(dbx) stop at 52
[1] stop at "myprog.cpp":52
(dbx) run 0 ARG

Thats what i enter and then the programs runs but i cant debug it ...
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. 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

2. UNIX for Dummies Questions & Answers

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... (4 Replies)
Discussion started by: sabres207
4 Replies

3. 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

4. AIX

Using dbx on AIX

Hi, We are porting a virtual machine application which emits native PowerPC instructions. The instructions are written to the data segment and are then executed, similar to the JIT / hot spot technology used in the Java VM. The problem is that the AIX debugger (dbx) will not show me stack... (3 Replies)
Discussion started by: nrgiii
3 Replies

5. Programming

dbx issue

hi i have executable(eg test) of my application that has the following syntax to run test -Ddatabase_name Inputfile Now i want to debug it using dbx so i do dbx test (dbx) stop at /abc/test/test.c:90 stop at /abc/test/test.c:90 ^ syntax error the... (0 Replies)
Discussion started by: mad_man12
0 Replies

6. 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

7. 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

8. 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

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