[Subject Prev][Subject Next][Thread Prev][Thread Next][Subject Index][Thread Index]
Re: gdb, gcc, a.out
I tried on IRIX6.5.
I created simple file. which prints a string.
compiled and run in dbx and stop on main.
then changed string and compiled , it gave no error.
In dbx , i continued - it gave messgae source file t.c modification
time more correct then ... and output was new one.
It changed the exe loaded..
VenkataNaga Ponnapalli wrote:
> Hi All,
> I have a file x.c after compling it with gcc and running gdb
> a.out, I set a break point and made the a.out to wait. Now, I made same
> copy of x.c and tried to compile it. On Sun OS,
> it is compiling with no errors and on HP-UX it's giving an error , unable
> to create a.out as the text portion(of the executable) is busy.
> Now I would like to know how linux behaves, and I feel HP-UX is correct,
> as the text portion of an application program is shared by many instances
> and only the data portion changes(like vi etc).