This is the mail archive of the gdb-prs@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]

[Bug corefiles/19834] crash or "Assertion `core_vec' failed" if core arch is i386 while executable x64


https://sourceware.org/bugzilla/show_bug.cgi?id=19834

--- Comment #2 from Ivan Pozdeev <vano at mail dot mipt.ru> ---
A core file is a faithful representation of the executable - its state at the
moment of crash. How can its architecture possibly be different?
All in all, for all purposes, this looks like a sure tell that the core doesn't
match the file so there's no use in going on anyway - the results would be
meaningless.

I considered core_file_matches_executable_p() and rejected it because its
failure only results in a (not seriously sounding) warning while this is a
critical error. If the subroutine can call error() or something itself without
breaking the design, I have no objections.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

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