This is the mail archive of the gdb@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: multiple runs with sim target


> this can be attributed to the "load" loading up the ELF contents into the 
> relevant memory regions, but "run" only executes it.  so if the program 
> modifies memory (such as .data), things dont get reloaded and behavior is not 
> so nice.

I think that this is expected.  We have the same sort of issue
on VxWorks as well, where the data segment is initialized at
load time.

> based on the code, i guess this is expected behavior.  the trouble
> comes in with the gdb testsuites that explicitly try and verify that
> this works.  such as gdb.base/a2-run.exp.

IMO, that's a problem with the testcase. I think it should reload
for the platforms that need it.

-- 
Joel


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]