mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-08-06 06:45:56 +08:00
* objfiles.c (map_to_file): Error return from mmalloc_findbase is
a NULL pointer, not a -1. Fix oops from a previous checkin.
This commit is contained in:
@ -898,7 +898,7 @@ map_to_file (fd)
|
||||
{
|
||||
/* This is a freshly created mapping file. */
|
||||
mapto = (CORE_ADDR) mmalloc_findbase (20 * 1024 * 1024);
|
||||
if (mapto != -1)
|
||||
if (mapto != NULL)
|
||||
{
|
||||
/* To avoid reusing the freshly created mapping file, at the
|
||||
address selected by mmap, we must truncate it before trying
|
||||
|
Reference in New Issue
Block a user