More make_cleanups/catch_errors warning fixes.
[binutils-gdb.git] / gdb / ChangeLog
1 Tue Jan 19 18:07:11 1999 Andrew Cagney <cagney@b1.cygnus.com>
2
3 * corelow.c (solib_add_stub): Ditto.
4 (core_file_to_sym_file): Cast make_cleanup parameter.
5
6 * solib.c (symbol_add_stub, solib_map_sections): Change argument
7 to PTR insted of a char*. Matches catch_errors interface.
8
9 Mon Jan 18 14:01:24 1999 Andrew Cagney <cagney@b1.cygnus.com>
10
11 * remote-array.c (array_open): Don't use fprintf_filtered to send
12 data to the log file.
13
14 * remote-array.c (handle_load_dll): Change argument type to PTR so
15 that it is compatible with catch_errors.
16 * ocd.c (ocd_start_remote): Ditto.
17 * remote-sds.c (sds_start_remote): Ditto.
18
19 * win32-nat.c (win32_child_thread_alive): Namespace proof
20 child_thread_alive.
21 (init_child_ops): Update.
22
23 Mon Jan 18 12:03:47 1999 Andrew Cagney <cagney@b1.cygnus.com>
24
25 * remote-rdi.c (arm_rdi_open): Set gdb_hostif.hostosarg and
26 gdb_hostif.dbgarg to NULL instead of stdout.
27 (voiddummy, myprint, mywritec): Use gdb_stdout instead of stdout.
28
29 Mon Jan 18 16:40:50 1999 Stan Shebs <shebs@andros.cygnus.com>
30
31 * ser-ocd.c (ocd_open): Handle Unix case gracefully.
32
33 * target.c (dummy_target): Don't initialize statically.
34 (init_dummy_target): New function, fills in dummy_target.
35 (initialize_targets): Use it.
36 * hpux-thread.c (hpux_thread_ops): Don't initialize statically.
37 (init_hpux_thread_ops): New function, fills in hpux_thread_ops.
38 (_initialize_hpux_thread): Use it.
39 * m3-nat.c (m3_ops): Don't initialize statically.
40 (init_m3_ops): New function, fills in m3_ops.
41 (_initialize_m3): Use it.
42
43 1999-01-18 Fernando Nasser <fnasser@totem.to.cygnus.com>
44
45 * sol-thread.c: delete compile time initialization of target_ops
46 (_initialize_sol_thread): initialize target_ops at run time.
47 * hpux-thread.c: added target_ops entry.
48 * m3-nat.c: ditto.
49
50 Mon Jan 18 15:19:13 1999 David Taylor <taylor@texas.cygnus.com>
51
52 * procfs.c (procfs_ops): delete compile time initialization.
53 (_initialize_procfs): initialize procfs_ops at run time.
54
55 Mon Jan 18 12:51:44 1999 Christopher Faylor <cgf@cygnus.com>
56
57 * configure.in: Ensure that -luser32 is always linked in
58 for cygwin build.
59 * configure: Regenerated.
60
61 Mon Jan 18 08:38:05 1999 Mark Alexander <marka@cygnus.com>
62
63 * values.c (value_virtual_fn_field): Clear the pointed-to
64 offset when casting to the base class.
65
66 Mon Jan 18 10:30:51 1999 David Taylor <taylor@texas.cygnus.com>
67
68 * remote-udi.c (init_udi_ops): change non-existant udi_run_ops to
69 udi_ops; delete NULL initializers.
70
71 Mon Jan 18 12:03:47 1999 Andrew Cagney <cagney@b1.cygnus.com>
72
73 * serial.c (serial_close): gdb_fclose tages gdb_file** arg, not
74 gdb_file*.
75
76 * f-valprint.c, target.c, gdbarch.c: Pass gdb_stderr not stderr.
77
78 Mon Jan 18 10:46:12 1999 Andrew Cagney <cagney@b1.cygnus.com>
79
80 * stack.c (print_frame_info_base): Don't cast call to
81 catch_errors.
82 (print_args_stub): Change char* arg to PTR.
83 * symmisc.c (print_symbol): Ditto.
84 * top.c (quit_cover): Ditto.
85 * remote.c (remote_open_1, remote_start_remote): Ditto.
86 * infrun.c (normal_stop, hook_stop_stub, restore_selected_frame):
87 Ditto.
88
89 * stack.c (backtrace_command): Cast first arg of make_cleanup to
90 make_cleanup_func.
91 * remote.c (remote_kill): Cast putpkt arg to catch_errors_ftype.
92
93 Mon Jan 18 08:47:02 1999 Andrew Cagney <cagney@b1.cygnus.com>
94
95 * defs.h (catch_errors_ftype): Define.
96 (catch_errors): Replace char* arg with PTR arg.
97 * top.c (catch_errors): Update
98
99 * breakpoint.c (bpstat_stop_status, bpstat_stop_status,
100 delete_breakpoint, breakpoint_re_set): Delete all casts in call to
101 catch_errors.
102 (breakpoint_cond_eval, watchpoint_check,
103 cover_target_enable_exception_callback, breakpoint_re_set_one):
104 Arg is PTR not char*.
105
106 * breakpoint.c (cover_target_enable_exception_callback): Change
107 type to int. Check for cast values of 0 and -1. Return a result!
108 (insert_breakpoints): Move declaration of SAL and ARGS to where
109 they are used.
110
111 1999-01-16 Fernando Nasser <fnasser@totem.to.cygnus.com>
112
113 * remote.c (remote_query): new function - creates proper interface
114 to the remote protocol "q" command.
115
116 Fri Jan 15 17:11:48 EST 1999 Zdenek Radouch (radouch@cygnus.com)
117
118 * config/fr30/tm-fr30.h: Changed ABI to match GCC change
119 (always use pointer for structs passed by value).
120
121 1999-01-15 Fernando Nasser <fnasser@totem.to.cygnus.com>
122
123 * target.h: added entry for target queries (to_query)
124 target.c: ditto.
125
126 Thu Jan 14 18:29:17 1999 David Taylor <taylor@texas.cygnus.com>
127
128 start-sanitize-carp start-sanitize-vr4xxx
129 * mips-tdep.c (mips_gdbarch_init): fix stream arg in
130 fprintf_unfiltered calls.
131 end-sanitize-carp end-sanitize-vr4xxx
132 * remote-mm.c (mm_wait): fix stream arg to gdb_flush.
133 * remote-udi.c (udi_wait): fix stream arg to fwrite.
134 * symmisc.c (maintenance_check_symtabs): fix stream argument to
135 print_address_numeric.
136
137 Wed Jan 13 19:33:16 1999 David Taylor <taylor@texas.cygnus.com>
138
139 * breakpoint.c (insert_breakpoints): insert cast to eliminate
140 warning.
141
142 Wed Jan 13 14:59:02 1999 Michael Snyder <msnyder@cleaver.cygnus.com>
143
144 * infrun.c (set/show scheduler-locking) New command. Set a
145 mode bit that will control how GDB attempts to control thread
146 scheduling for step, continue, etc. (resume): make use of
147 the schedule-locking mode.
148 * target.h (struct target_ops): new field to_has_thread_control.
149 * sol-thread.c: initialize target_ops to_has_thread_control.
150 * procfs.c: ditto.
151 * target.c: ditto.
152 * m3-nat.c: ditto.
153 * remote.c: ditto.
154 * hpux-thread.c: ditto.
155 * thread.c: cull duplicate prototypes. Move prototypes to top.
156 * serial.c: indentation cleanup.
157 * breakpoint.c: add casts to eliminate compiler warnings.
158
159 Tue Jan 12 17:00:00 1999 Edith Epstein <eepstein@sophia.cygnus.com>
160
161 * inftarg.c (child_create_inferior): fixed HPUXHPPA specific
162 call to fork_inferior. The shell param is now NULL.
163
164 1999-01-12 Jason Molenda (jsm@bugshack.cygnus.com)
165
166 * monitor.c (init_base_monitor_ops): Whitespace cleanup.
167 (_initialize_remote_monitors): Same.
168
169 1999-01-12 Jason Molenda (jsm@bugshack.cygnus.com)
170
171 * monitor.c (init_monitor_ops): Initialize the monitor_ops
172 structure if it hasn't already been done.
173
174 Tue Jan 12 14:50:10 1999 Stan Shebs <shebs@andros.cygnus.com>
175
176 * inftarg.c (child_ops): Don't initialize statically.
177 (init_child_ops): New function, fills in child_ops.
178 (_initialize_inftarg): Use it.
179 (child_post_attach): Declare extern.
180 (child_wait): Fix ambiguous parens.
181 (child_attach_to_process): Remove unused local wstatus.
182 (child_insert_fork_catchpoint, child_remove_fork_catchpoint,
183 child_insert_vfork_catchpoint, child_remove_vfork_catchpoint,
184 child_has_forked, child_insert_exec_catchpoint,
185 child_remove_exec_catchpoint): Return a value.
186
187 Mon Jan 11 16:43:44 1999 Michael Snyder <msnyder@cleaver.cygnus.com>
188
189 * remote.c (remote_wait): Add inferior_pid to thread list only
190 if it is not already there.
191
192 1999-01-11 Jason Molenda (jsm@bugshack.cygnus.com)
193
194 * scm-tags.h: Update FSF's address on copyright notice.
195 * ser-e7kpc.c: Same.
196 * gnu-nat.h: Same.
197
198 Mon Jan 11 13:45:57 1999 Stu Grossman <grossman@babylon-5.cygnus.com>
199
200 * dwarf2read.c (dump_die): Change stderr to gdb_stderr.
201 * expprint.c (print_subexp): fprintf => fprintf_unfiltered.
202 * jv-typeprint.c (java_type_print_base): fputs => fputs_filtered.
203 * stack.c (struct function_bounds): Remove superfluous `typedef'.
204 * symfile.c (list_overlays_command): stdout => gdb_stdout.
205 * symmisc.c (maintenance_check_symtabs): stdout => gdb_stdout.
206 * utils.c (print_spaces): Make more efficient.
207
208 Mon Jan 11 13:55:51 1999 David Taylor <taylor@texas.cygnus.com>
209
210 * utils (print_spaces): fix arg to strcat; fix formatting.
211
212 Fri Jan 8 11:57:24 1999 Stan Shebs <shebs@andros.cygnus.com>
213
214 * exec.c (exec_ops): Don't initialize statically.
215 (init_exec_ops): New function, fills in exec_ops.
216 (_initialize_exec): Use it.
217
218 Thu Jan 7 17:50:15 EST 1999 Zdenek Radouch (radouch@cygnus.com)
219
220 Beta FR30 port.
221 * fr30-tdep.c
222 * config/fr30/tm-fr30.h
223
224 Wed Jan 6 12:28:35 1999 David Taylor <taylor@texas.cygnus.com>
225
226 * configure.in: Add an --enable-tui argument. Construct
227 tui/Makefile from tui/Makefile.in. Use AM_PROG_CC_STDC. If we
228 have the GUI, then we need this to process libgui.h.
229 (ENABLE_CFLAGS): define and export BUILD_TUI.
230 (AC_CHECK_HEADERS): Add check for term.h.
231
232 * configure.host (hppa-*-hpux10.20, hppa-*-hpux11.0*): New configs.
233
234 * config.in, configure : regenerated.
235
236 * Makefile.in: Allow the TUI code to be conditionally enabled.
237 (TUI_LIBRARY): New variable, value are set by the configuration
238 script. Set to the empty string when the TUI isn't enabled.
239 (gdb$(GDBEXT)): Use those, instead of referring to all-tui and
240 tui/libtui.a directly.
241 (BUILD_TUI): build the tui -- only when configured with
242 --enable-tui.
243 (YLWRAP): use ylwrap to avoid problems on systems w/o bison.
244 (gdb$(EXEEXT)): make it dependent on BUILD_TUI.
245 (all-tui): remove dependency from phony target.
246 (c-exp.tab.c): use ylwrap instead of bison.
247 (jv-exp.tab.c): ditto.
248 (f-exp.tab.c): ditto.
249 (m2-exp.tab.c): ditto.
250 (ALLDEPFILES): add somread.c, hp-psymtab-read.c, hp-symtab-read.c.
251 (SFILES): remove the above files
252 (COMMON_OBS): remove somread.o
253 (SFILES): Add the tui files to this, so they get included in etags
254 tables.
255 (gdb$(EXEEXT)): Add all-tui to the list of dependencies, and add
256 tui/libtui.a to the link list.
257 (all-tui): New rule, which does a recursive make in the tui
258 subdir.
259 (tui/libtui.a): When recursing, pass down ${FLAGS_TO_PASS}. And
260 don't echo the make command. This is closer to what the other
261 recursions do.
262 (HFILES_NO_SRCDIR): add hpread.h
263 (COMMON_OBS): add hp-psymtab-read.o, hp-symtab-read.o
264 (SFILES): add hp-psymtab-read.c, hp-symtab-read.c add rules for
265 the new files. Remove hpread.c, hpread.o
266 (gdb$(EXEEXT)): Depend on the actual tui library, not on a
267 fictitious target. Since the fictitious target never existed,
268 make would always relink.
269 (tui/libtui.a): Always recurse to make sure the library is up to
270 date.
271
272 Wed Jan 6 12:05:12 1999 Stan Shebs <shebs@andros.cygnus.com>
273
274 * remote.c: Pacify --enable-build-warnings, reformat code
275 to conform to standards, fix spelling errors.
276 (ishex, stubhex, record_currthread, etc): Declare.
277 (ishex, stubhex): Declare char arg as int.
278 (pack_string): Comment out, never used but possibly useful.
279 (threadref_to_int, remote_get_threadinfo, etc): Make static.
280
281 Wed Jan 6 11:43:32 1999 David Taylor <taylor@texas.cygnus.com>
282
283 The following changes were made by Elena Zannoni
284 <ezannoni@cygnus.com> and Edith Epstein <eepstein@cygnus.com> as
285 part of a project to merge in changes made by HP.
286
287 * c-exp.y: use external flag hp_som_som_object_present to decide
288 whether code was compiled by HP's compilers. Add two new C++
289 tokens for true and false.
290 (yylex): check for template name is done differently for the
291 HP/aCC compiler case. Change some of the template processing code
292 for handling HP aCC templates. Handle true and false tokens.
293
294 Tue Jan 5 11:13:36 1999 Michael Snyder <msnyder@cleaver.cygnus.com>
295
296 * remote.c (record_curthread): Must not modify inferior_pid when
297 called from wait_for_inferior. Instead, if a new thread-id is
298 detected, call add_thread.
299 (MAGIC_NULL_PID): new macro, use instead of the magic number
300 "42000".
301 (remote_find_new_threads): if inferior_pid is unknown, get and use
302 the current thread id.
303 (remote_start_remote): on connecting, attempt to get the current
304 thread id for inferior_pid.
305 (remote_resume): If pid == -1, then resume any-thread (not the
306 current thread specifically). Also some cosmetic fixups.
307
308 * thread.c (info_threads_command): don't initialize current_pid
309 until after call to FIND_NEW_THREADS (which may change inferior_pid).
310 Also some cosmetic fixups.
311 * infrun.c: cosmetic fixups and casts to avoid warnings.
312 * infcmd.c: cosmetic fixups, mainly long lines.
313
314 Tue Jan 5 11:55:57 1999 David Taylor <taylor@texas.cygnus.com>
315
316 * target.c (noprocess): terminate sentence with a period.
317 * breakpoint.c (catch_command_1): ditto.
318
319 * c-valprint.c (c_value_print): remove hack^2 from HP; it causes
320 testsuite losses with no real gain.
321
322 * inferior.h (START_INFERIOR_TRAPS_EXPECTED): restore, but only
323 if tm-*.h hasn't overridden default value.
324
325 1999-01-04 Jason Molenda (jsm@bugshack.cygnus.com)
326
327 * configure.in: Fix whitespace indentation for --help.
328 * configure: Regenerated.
329
330 1999-01-04 Manuel Bouyer <bouyer@antioche.lip6.fr>
331
332 * main.c: Add --write command line option, document -w.
333 * gdb.1: Document --write.
334
335 1999-01-04 Jason Molenda (jsm@bugshack.cygnus.com)
336
337 * configure.in: Require autoconf 2.12.1 or higher.
338 * doc/configure.in: Ditto.
339 * nlm/configure.in: Ditto.
340 * rdi-share/configure.in: Ditto.
341 * testsuite/configure.in: Ditto.
342 * doc/Makefile.in: Don't hardcode $(SHELL).
343 * nlm/Makefile.in: Ditto.
344 * rdi-share/Makefile.in: Ditto.
345 * testsuite/Makefile.in: Ditto.
346
347 Mon Jan 4 12:53:03 1999 Stan Shebs <shebs@andros.cygnus.com>
348
349 * remote-vx.c (init_vx_ops, init_vx_run_ops): Remove unneeded
350 inits of new fields, including ref to bogus field.
351 (vx_ops, vx_run_ops): Make static.
352
353 Mon Jan 4 15:05:29 1999 David Taylor <taylor@texas.cygnus.com>
354
355 * inferior.h (START_INFERIOR_TRAPS_EXPECTED): delete,
356 already defined in tm.h.
357
358 * inftarg.c: change <sys/unistd.h> to <unistd.h> and
359 conditionalize its inclusion.
360 * infttrace.c: ditto.
361
362 For older changes see ChangeLog-98
363 \f
364 Local Variables:
365 mode: change-log
366 left-margin: 8
367 fill-column: 74
368 version-control: never
369 End: