|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Get inside! Sample the range of functionality easily built with JMSL Library for Time Series Data Analysis, Heat Maps, Portfolio Optimization, Monte Carlo Simulation, Stock Price Charting and more. Download Now! |
|
#1
|
|||
|
|||
|
How to trace without binary and with core file.
Hello all,
I have been given just the core file ( without the binary ). Is there a way to backtrace the core file without the binary? If so, how can I achieve that ? Is that possible with gdb ? If not, is there any other tool for debugging such files ? Thanks in advance, Murugesan |
|
#2
|
|||
|
|||
|
I'm sorry, what do you mean "core file"? I've personally never heard the term before. I would guess you were speaking of a source file, but since you are using a debugger, I'd guess you are a programmer, who would know what a source file is....
-Steven __________________ CHISWICK! FRESH HORSES!! –King Richard, Black Adder |
|
#3
|
|||
|
|||
|
core file in the previous message I refered to as the file that will be created when there is a segmentation fault.
For example main() { int *p=(int*)0x16253; printf("%d",*p); } This will produce the core file after execution. FYI I am using HPUX. and for tracing the core dump, I used to use # gdb a.out core which on executing backtrace command will give me the coredump trace. |
|
#4
|
|||
|
|||
|
on HPUX
Code:
gdb -c core will let you look at the core file. But it can't do much with the symbols, and if Code:
ulimit -c unlimited And if it segfaulted because of buffer overrun re-writing RET on the stack you are kinda out of luck. |
|
#5
|
||||
|
||||
|
Quote:
__________________
~~ Peter ~~ ( My Blog: It's exactly like normal nerdiness, but completely different. ) :: ( Supporter of the EFF & FSF ) :: ( I'm a GNU/Linux addict and Free Software Advocate. ) :: ( How to Ask Questions the Smart Way ) :: ( The Fedora Project, sponsored by Red Hat ) :: ( GNOME: The Free Software Desktop Project ) :: ( GnuPG Public Key ) |
|
#6
|
|||
|
|||
|
Thanks php4geek for getting me right here.
jim, I got it. Thanks. |
|
#7
|
|||
|
|||
|
Hey, thanks for the lesson, murugesan n jim. I've experienced seg faults before, but never bothered checking out the core file. (always just deleted it.) That was cool.
-Steven __________________ You ride a horse rather less well than another horse would. –Edmund Black Adder |
![]() |
| Viewing: Dev Shed Forums > Operating Systems > UNIX Help > How to trace without binary and with core file. |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|