On 06/21/2011 06:42 PM, Yao Qi wrote: > - 2 Start gdb, and reload these dump files. Compare results in dump > files are same as them in memory. In session 2, memory contents are looked for by symbols names. However, the address of the same symbol may be on different addresses in session 1 and session 2, so many tests will fail. This patch is to fix these fails in this way. In gdb session 1, when dump file is being produced, get the address of struct and array, along with their type. In gdb session 2, when dump file is loaded, look for memory contents via address we recorded in session 1. IMO, the intention of tests in this gdb session is to test that "gdb is able to load these dump files, and read the correct memory contents from them", so it doesn't matter too much that gdb get them via name or address. I think the semantics of this part of tests is not changed. -- Yao (齐尧)