DDD and GDB rereads ~/.cshrc


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users DDD and GDB rereads ~/.cshrc
# 1  
Old 10-23-2011
DDD and GDB rereads ~/.cshrc

Who know why GDB reads my ~/.cshrc again when I type "run" command?
Same happends when run DDD debugger (it runs GDB inside)
I need the program to inherit the environment from the current shell.
How to disable this behavior?
I use GNU gdb (GDB) Red Hat Enterprise Linux (7.0.1-32.el5_6.2)
# 2  
Old 10-24-2011
What exactly are you trying to run, in what manner?

How do you know it reads your cshrc?
# 3  
Old 10-25-2011
GDB runs the application using the shell indicated by your SHELL environment variable if it exists (or /bin/sh if not). If your SHELL variable names a shell that runs an initialization file, such as `.cshrc' for CSH, or `.bashrc' for BASH, any variables you set in that file may affect your application.
# 4  
Old 10-31-2011
Great! it is $SHELL == /bin/csh
'unsetenv SHELL' solved the problem. thanks
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Programming

64 bit code debugging using gdb and ddd

Hello I have built our application on AIX 7.1 as a 64 bit application. My queries are as follows: Can a 32bit gdb (v7.6) and ddd (data display debugger - v3.3.12), debug a 64bit executable ? If I have a small 64bit a.exe executable that seems to work. If I have a more complicated executable... (4 Replies)
Discussion started by: biju64
4 Replies

2. UNIX for Dummies Questions & Answers

DDD is waiting for GDB to get Ready

Hello, I'm attempting to use the DDD program. After launching it from the shell I try to set a breakpoint on a source code file and when I click run it hangs and says Waiting until GDB gets ready. I cannot do anything inside the program except quit (and even that takes a while). Can someone tell... (3 Replies)
Discussion started by: lamentofking
3 Replies

3. Programming

[SOLVED] DDD Newbie Setup Issue

(Ubuntu 11.04) I've just installed the debugger DDD, and I'm literally testing a 'hello world' program, but whilst breakpoints are being hit, the (next to) execute line is not highlighted, and when I click 'Next' the code runs to the end? (7 Replies)
Discussion started by: silas2
7 Replies

4. Programming

ddd/gdb debugger problem

I hope this is the right thread - not sure if it belongs in the Linux forum. Anyway, I'm having an issue with ddd and gdb. When using ddd to run gdb, there are extra parameters being appended, and my program is picking them up. I'm running on Ubuntu 11.04... Here's my command line entry - ... (1 Reply)
Discussion started by: jalburger
1 Replies

5. Shell Programming and Scripting

Problem with my .cshrc

Hello everyone, I write a ~/.cshrc for set class path to run my java application. The file is listed below. setenv YFILTER_HOME ~/yfilter-2.0 setenv PATH "$YFILTER_HOME/bin:$PATH" setenv CLASSPATH... (1 Reply)
Discussion started by: perl0101
1 Replies

6. Programming

Debugging 64bit code with gdb and ddd in AIX

I'm trying to use the GDB debugger and DDD to debug 64bit code. It seems that the AIX toolkit gdb version 6.0 works with 64bit code. But the ddd tool when running gdb gives the following errors : Starting program: <my binary> <my params> warning: "": not in executable format: There is an input... (2 Replies)
Discussion started by: bean66
2 Replies

7. UNIX for Advanced & Expert Users

How to clear a cluttered DDD console window ?

During debugging, usually after printing the backtrace, I find that the console window looks cluttered. How would I clear the console window, to have a fresh start ??? Note: By DDD, I mean the Data Display Debugger, which is a graphical front end for GDB (0 Replies)
Discussion started by: RipClaw
0 Replies

8. Linux

Where to set program arguments in DDD debugger?

In DDD debugger, where to set the the arguments for main program? For example: ./myExe "argv1" "argv2" -> where to set "argv1" & "argv2" ? Thanks! (2 Replies)
Discussion started by: princelinux
2 Replies

9. Programming

DDD making problem

Hi Everybody, I am trying to make the ddd-3.3.9 debugger. I installed all dependencies. this is what i get: # make Making all in themes make: Entering directory `/space/atoulan/ddd-3.3.9/themes' make: Nothing to be done for `all'. make: Leaving directory... (0 Replies)
Discussion started by: azazel11998
0 Replies

10. Shell Programming and Scripting

cshrc

where are my .cshrc files ? (4 Replies)
Discussion started by: cubicle^dweller
4 Replies
Login or Register to Ask a Question