* corelow.c (add_to_thread_list): Make sure reg_sect is non-null
before de-referencing it. Prevents deref of NULL pointer if core file lacks .reg section. * defs.h: Rename floatformat_{to from}_long_double to floatformat_{to from}_doublest. Get rid of FLOATFORMAT_{TO FROM}... macros. * findvar.c (extract_floating store_floating): Change all refs to FLOATFORMAT_{FROM TO}... to floatformat_{from to}_doublest. * utils.c: Change floatformat_{to from}_long_double to floatformat_{to from}_doublest cuz the new routines will use whatever size (double or long double) is appropriate. * config/i960/tm-i960.h (REGISTER_CONVERT_TO_VIRTUAL REGISTER_CONVERT_TO_RAW): Change FLOATFORMAT... macros to floatformat... routine calls.
This commit is contained in:
parent
603fdf1679
commit
8eff3c7fe6
3 changed files with 21 additions and 3 deletions
|
@ -133,7 +133,8 @@ add_to_thread_list (abfd, asect, reg_sect_arg)
|
|||
|
||||
/* Warning, Will Robinson, looking at BFD private data! */
|
||||
|
||||
if (asect->filepos == reg_sect->filepos) /* Did we find .reg? */
|
||||
if (reg_sect != NULL
|
||||
&& asect->filepos == reg_sect->filepos) /* Did we find .reg? */
|
||||
inferior_pid = thread_id; /* Yes, make it current */
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue