mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-11-21 01:12:32 +08:00
* solib-frv.c (lm_base): Bail out if the main executable has
not been relocated.
This commit is contained in:
parent
6afb1f322b
commit
89a7ee67c5
@ -1,3 +1,8 @@
|
||||
2007-04-27 Kevin Buettner <kevinb@redhat.com>
|
||||
|
||||
* solib-frv.c (lm_base): Bail out if the main executable has
|
||||
not been relocated.
|
||||
|
||||
2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
|
||||
|
||||
* alpha-linux-tdep.c (alpha_linux_supply_fpregset): Correct location
|
||||
|
@ -361,6 +361,14 @@ lm_base (void)
|
||||
CORE_ADDR addr;
|
||||
gdb_byte buf[FRV_PTR_SIZE];
|
||||
|
||||
/* One of our assumptions is that the main executable has been relocated.
|
||||
Bail out if this has not happened. (Note that post_create_inferior()
|
||||
in infcmd.c will call solib_add prior to solib_create_inferior_hook().
|
||||
If we allow this to happen, lm_base_cache will be initialized with
|
||||
a bogus value. */
|
||||
if (main_executable_lm_info == 0)
|
||||
return 0;
|
||||
|
||||
/* If we already have a cached value, return it. */
|
||||
if (lm_base_cache)
|
||||
return lm_base_cache;
|
||||
|
Loading…
Reference in New Issue
Block a user