aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorFred Fish <fnf@specifix.com>2001-10-30 17:34:30 +0000
committerFred Fish <fnf@specifix.com>2001-10-30 17:34:30 +0000
commitc3c057c81fd0696a860eaa35f5e765d62478e797 (patch)
treee25a3e18511a43853e267bbd71adb11ec66c1f6a /gdb
parent3c3bdf30e42268e6193693acd1dc66d2d1792536 (diff)
downloadgdb-c3c057c81fd0696a860eaa35f5e765d62478e797.zip
gdb-c3c057c81fd0696a860eaa35f5e765d62478e797.tar.gz
gdb-c3c057c81fd0696a860eaa35f5e765d62478e797.tar.bz2
2001-10-30 Fred Fish <fnf@redhat.com>
* somsolib.c (som_solib_add): A megabyte is 1024*1024 bytes. * pa64solib.c (add_to_solist): Ditto. * win32-nat.c (_initialize_inftarg): Remove unnecessary initialization of auto_solib_add, it defaults to 1.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog7
-rw-r--r--gdb/pa64solib.c2
-rw-r--r--gdb/somsolib.c2
-rw-r--r--gdb/win32-nat.c1
-rw-r--r--gdb/windows-nat.c1
5 files changed, 9 insertions, 4 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index cdbd531..869fc70 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,10 @@
+2001-10-30 Fred Fish <fnf@redhat.com>
+
+ * somsolib.c (som_solib_add): A megabyte is 1024*1024 bytes.
+ * pa64solib.c (add_to_solist): Ditto.
+ * win32-nat.c (_initialize_inftarg): Remove unnecessary
+ initialization of auto_solib_add, it defaults to 1.
+
2001-10-27 Fred Fish <fnf@redhat.com>
* symfile.c (auto_solib_add): Update comment to note that
diff --git a/gdb/pa64solib.c b/gdb/pa64solib.c
index e39d9e3..441095e 100644
--- a/gdb/pa64solib.c
+++ b/gdb/pa64solib.c
@@ -1168,7 +1168,7 @@ add_to_solist (boolean from_tty, char *dll_path,
!from_tty
&& auto_solib_add
&& ( (st_size + pa64_solib_total_st_size)
- > (auto_solib_limit * (LONGEST)1000000));
+ > (auto_solib_limit * (LONGEST) (1024 * 1024)));
if (pa64_solib_st_size_threshhold_exceeded)
{
pa64_solib_add_solib_objfile (new_so, dll_path, from_tty, 1);
diff --git a/gdb/somsolib.c b/gdb/somsolib.c
index f9807ab..5f2b2cb 100644
--- a/gdb/somsolib.c
+++ b/gdb/somsolib.c
@@ -778,7 +778,7 @@ som_solib_add (char *arg_string, int from_tty, struct target_ops *target)
som_solib_st_size_threshold_exceeded =
!from_tty &&
auto_solib_add &&
- ((st_size + som_solib_total_st_size) > (auto_solib_limit * (LONGEST) 1000000));
+ ((st_size + som_solib_total_st_size) > (auto_solib_limit * (LONGEST) (1024 * 1024)));
if (som_solib_st_size_threshold_exceeded)
{
diff --git a/gdb/win32-nat.c b/gdb/win32-nat.c
index 0e2fb5d..884f2b4 100644
--- a/gdb/win32-nat.c
+++ b/gdb/win32-nat.c
@@ -1453,7 +1453,6 @@ _initialize_inftarg (void)
"Load dll library symbols from FILE.");
c->completer = filename_completer;
- auto_solib_add = 1;
add_com_alias ("sharedlibrary", "dll-symbols", class_alias, 1);
add_show_from_set (add_set_cmd ("new-console", class_support, var_boolean,
diff --git a/gdb/windows-nat.c b/gdb/windows-nat.c
index 0e2fb5d..884f2b4 100644
--- a/gdb/windows-nat.c
+++ b/gdb/windows-nat.c
@@ -1453,7 +1453,6 @@ _initialize_inftarg (void)
"Load dll library symbols from FILE.");
c->completer = filename_completer;
- auto_solib_add = 1;
add_com_alias ("sharedlibrary", "dll-symbols", class_alias, 1);
add_show_from_set (add_set_cmd ("new-console", class_support, var_boolean,