aboutsummaryrefslogtreecommitdiff
path: root/gdb/solib.c
diff options
context:
space:
mode:
authorFred Fish <fnf@specifix.com>1991-12-23 03:43:48 +0000
committerFred Fish <fnf@specifix.com>1991-12-23 03:43:48 +0000
commit431df2ebacd5349884e9cb4b116bc193f59717a6 (patch)
treed6c75b2903de9c3db4923808d9b3cc408f75bd7c /gdb/solib.c
parenta9b0d1aece41530dd33bde4280441c3101bd5f03 (diff)
downloadgdb-431df2ebacd5349884e9cb4b116bc193f59717a6.zip
gdb-431df2ebacd5349884e9cb4b116bc193f59717a6.tar.gz
gdb-431df2ebacd5349884e9cb4b116bc193f59717a6.tar.bz2
* solib.c (locate_base): Fix uninitialized variable that was
causing return of random value to callee. * config/mh-amix, config/mh-i386v4: Change to find alloca by compiling and linking alloca.c, even when it is not strictly required. Also arrange to link with -ltermlib rather than -ltermcap. * Makefile.in: Move TERMCAP definition to prior to inclusion of host makefile fragments so it can be overridden.
Diffstat (limited to 'gdb/solib.c')
-rw-r--r--gdb/solib.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/solib.c b/gdb/solib.c
index b1c78a4..1c6717b 100644
--- a/gdb/solib.c
+++ b/gdb/solib.c
@@ -301,7 +301,7 @@ FIXME
static CORE_ADDR
locate_base ()
{
- CORE_ADDR address;
+ CORE_ADDR address = 0;
#ifdef sun