Sponsored Content
Top Forums Programming AIX dbx - attaching to a process that is crashing Post 302497525 by ctote on Thursday 17th of February 2011 12:30:28 PM
Old 02-17-2011
Interesting question - didn't think about that. I'll check now. Thanks

---------- Post updated at 12:30 PM ---------- Previous update was at 12:27 PM ----------

For what it's worth, when I do: stop at "file.cpp":line#, I don't get any messages like 'not compiled with -g'.
 

10 More Discussions You Might Find Interesting

1. Programming

AIX DBX Error

I am trying to debug a program, which had generated a core dump. When I issue 'where' command, it list me filename along with line number, which in case is not at all there in the .c file. Example: (dbx) where func1(var1= (...), var2 = 86, var3 = 0,var4 = 0) , line 87 in "prog.f" main(),... (1 Reply)
Discussion started by: S.P.Prasad
1 Replies

2. Programming

memory functions crashing in AIX

Hi All, I'm facing the following issue with my shared libraries in 64 bit AIX. Memory related calls such as memset, memcpy, malloc etc are failing miserably. there is something wrong with stack/memory which i can't guess. i've used the following flags to build my libraray: ld -G... (0 Replies)
Discussion started by: abhinav05252
0 Replies

3. AIX

need help on dbx commands? AIX

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

4. AIX

Process crashing on AIX due to memory Leak

Hi All, I have a process running on my AIX 5.3 server box. The process runs fine for 5-6days but then crashes. The log file shows malloc failure and the svmon (Virtual memory size), ps -lef (SZ value) are also gradually increasing. But unfortunately MALLOCDEBUG and any other memory debugging... (3 Replies)
Discussion started by: SBatra
3 Replies

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

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

7. AIX

Attaching HDS External storage to AIX Servers

Hi guys, I am newbie to AIX. We are planning to attach external HDS array to AIX servers where VCS in installed. Anyone know step by step procedure for attaching and detaching HDS array?. If yes, please post reply for the same. Thanks in advance guys. (5 Replies)
Discussion started by: prtaix
5 Replies

8. Programming

dbx - attach to process, break when crash

Hey everyone, I have a process that is crashing, and I'd like to have some way to see where it crashes. Is this possible? (2 Replies)
Discussion started by: ctote
2 Replies

9. Programming

Cannot get dbx to work correctly with a running process

Hi everyone, I've been struggling with this for a few weeks now. I'm trying to debug a running process with dbx on an AIX box. The command I'm using is 'dbx -a <pid> core' There is a function I can perform in my application that crashes this process, but it does not show up as crashed in... (0 Replies)
Discussion started by: ctote
0 Replies

10. AIX

AIX: two strange process

I check for top 10 cpu consumer ps auxww |head -10 USER PID %CPU %MEM SZ RSS TTY STAT STIME TIME COMMAND root 131076 23,6 0,0 448 448 - A 16:00:59 50:21 wait root 983070 21,9 0,0 448 448 - A 16:00:59 46:43 waitI try to kill them sudo... (0 Replies)
Discussion started by: Linusolaradm1
0 Replies
LLDB(1) 						    BSD General Commands Manual 						   LLDB(1)

NAME
lldb -- The debugger SYNOPSIS
lldb [-hvdexw] [-a arch] [-l script-language] [-s lldb-commands] [-n process-name] [-p pid] [[--] <PROGRAM-ARG1> <PROGRAM-ARG2> ...] DESCRIPTION
lldb is the command line interface for the LLDB debugger library. lldb can debug C, C++, Objective-C, and Objective-C++ programs. The following options are available: -h, --help Prints out the usage information for the lldb debugger. The --help text may be more up-to-date and authoritative than the command line options described in this man page. -v, --version Prints out the version number of the lldb debugger. -a, --arch arch Specifies which architecture lldb will use when launching the specified program (assuming the provided executable is built for multi- ple architectures.) -f, --file filename Specifies the executable file that will be launching / attaching to. -n, --attach-name process-name Specifies the name of a currently-running process to attach to. (or the name of a process to wait for if -w is used.) -w, --wait-for When used in concert with -n process-name-E, indicates that lldb should wait for a new process of that name to be started -- and attach to it as early in the process-launch as possible. -p, --attach-pid pid Specifies a currently running process that lldb should attach to. -l, --script-language language Tells the debugger to use the specified scripting language for user-defined scripts, rather than the default. Valid scripting lan- guages that can be specified include Python, Perl, Ruby and Tcl. Currently only the Python extensions have been implemented. -d, --debug Tells the debugger to print out extra information for debugging itself. -s, --source filename Tells lldb to read in and execute the file "filename", which should contain lldb commands. -e, --editor Instructs lldb to open source files using the host's "external editor" mechanism. -x, --no-lldbinit Do not automatically parse any '.lldbinit' files. (If you don't provide -f then the first argument will be the file to be debugged so 'lldb -- <filename> [<ARG1> [<ARG2>]]' also works. Remember to end the options with "--" if any of your arguments have a "-" in them.) USING LLDB
In lldb there is a help command which can be used to find descriptions and examples of all lldb commands. To get help on "breakpoint set" you would type "help breakpoint set". There is also an apropos command which will search the help text of all commands for a given term -- this is useful for locating a command by topic. For instance, "apropos breakpoint" will list any command that has the word breakpoint in its help text. FILES
lldb will read settings/aliases/commands from three files at startup, if they exist. First, it will read a ~/.lldbinit-debugger command file. If you are using the lldb command line interface, this is ~/.lldbinit-lldb. If you are using lldb inside a GUI debugger like Xcode this will be ~/.lldbinit-Xcode. This is a useful place to put settings that you want to apply only when a given lldb command interpreter is used. Second, ~/.lldbinit is read. Third, an .lldbinit file in the current working directory (where lldb is started) will be read. SEE ALSO
The LLDB project page http://lldb.llvm.org/ has many different resources for lldb users -- the gdb/lldb command equivalence page http://lldb.llvm.org/lldb-gdb.html can be especially helpful for users coming from gdb. BUGS
To report bugs, please visit http://llvm.org/bugs/ AUTHOR
Maintained by the LLDB Team, http://lldb.llvm.org/ Darwin 7 June, 2012 Darwin
All times are GMT -4. The time now is 02:56 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy