* somsolib.c (som_solib_create_inferior_hook): Don't
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 Mon Jul 29 18:12:27 1996 Jeffrey A Law (law@cygnus.com)
2
3 * somsolib.c (som_solib_create_inferior_hook): Don't
4 warn if __d_pid can't be found.
5
6 Sun Jul 28 10:46:39 1996 Fred Fish <fnf@cygnus.com>
7
8 * config/mips/tm-mips.h (struct frame_info): Forward decl.
9 (struct type): Ditto.
10 (struct value): Ditto.
11
12 * config/mips/tm-mips.h (sigtramp_address): Move extern decl
13 from mips-tdep.c to here.
14 (sigtramp_end): Ditto.
15 (fixup_sigtramp): Ditto.
16
17 * config/mips/tm-mips.h (init_extra_frame_info): Add prototype.
18 (mips_frame_chain): Ditto.
19 (mips_step_skips_delay): Ditto.
20 (mips_frame_saved_pc): Ditto.
21 (mips_find_saved_regs): Ditto.
22 (mips_frame_num_args): Ditto.
23 (mips_pop_frame): Ditto.
24 (mips_extract_return_value): Ditto.
25 (mips_store_return_value): Ditto.
26 (mips_push_dummy_frame): Ditto.
27 (mips_push_arguments): Ditto.
28 (mips_do_registers_info): Ditto.
29 (ecoff_relocate_efi): Ditto.
30 (ecoff_relocate_efi): Ditto.
31 * irix4-nat.c (fetch_core_registers): Add prototype.
32 * mips-tdep.c (read_next_frame_reg): Add prototype
33 (heuristic_proc_start): Ditto.
34 (heuristic_proc_desc): Ditto.
35 (mips_print_register): Ditto.
36 * config/mips/nm-irix5.h (procfs_set_watchpoint): Add prototype.
37 (procfs_stopped_by_watchpoint): Ditto.
38 * config/mips/nm-irix4.h (procfs_set_watchpoint): Add prototype.
39 (procfs_stopped_by_watchpoint): Ditto.
40 * config/alpha/tm-alpha.h (ecoff_relocate_efi): Add prototype.
41 (struct symbol): Add forward decl for prototype.
42
43 * breakpoint.c (internal_breakpoint_number): Only needed if
44 GET_LONGJMP_TARGET or SOLIB_ADD is defined.
45
46 * objfiles.c (ecoff_relocate_efi): Remove prototype.
47
48 Sat Jul 27 17:47:35 1996 Fred Fish <fnf@cygnus.com>
49
50 * configure.in: Add test for "long long" support.
51 * configure: Regenerate with autoconf.
52 * acconfig.h: Add CC_HAS_LONG_LONG
53 * config.in: Regenerate with autoheader.
54 * config/mips/tm-mips64.h (FORCE_LONG_LONG): Remove
55 * config/sparc/tm-sp64.h (CC_HAS_LONG_LONG): Remove.
56 * config/mips/tm-vr4300el.h (CC_HAS_LONG_LONG): Remove.
57 * config/mips/tm-vr4300.h (CC_HAS_LONG_LONG): Remove.
58 * config/mips/xm-irix5.h (CC_HAS_LONG_LONG): Remove
59 (PRINTF_HAS_LONG_LONG): Remove.
60 (FORCE_LONG_LONG): Remove.
61 * config/powerpc/xm-aix.h (UINT_MAX): Undef and use gdb's version.
62 * config/convex/xm-convex.h (CC_HAS_LONG_LONG): Remove
63 (PRINTF_HAS_LONG_LONG): Remove.
64 * config/xm-nbsd.h (CC_HAS_LONG_LONG): Remove.
65 (PRINTF_HAS_LONG_LONG): Remove.
66 * config/pa/tm-hppa.h (GET_FIELD): Put parens around
67 subtraction inside shift. Put parens around subtraction
68 in operand of bitwise and.
69 (struct frame_info): Forward declare
70 if __STDC__ defined.
71 (frame_saved_regs): Ditto.
72 (struct value): Ditto.
73 (struct type): Ditto.
74 (struct inferior_status): Ditto.
75 (init_extra_frame_info): Add prototype.
76 (skip_prologue): Ditto.
77 (frameless_function_invocation): Ditto.
78 (frame_chain): Ditto.
79 (frame_chain_valid): Ditto.
80 (saved_pc_after_call): Ditto.
81 (hppa_fix_call_dummy): Ditto.
82 (hppa_push_arguments): Ditto.
83 (pa_do_registers_info): Ditto.
84 (in_solib_call_trampoline): Ditto.
85 (in_solib_return_trampoline): Ditto.
86 (push_dummy_frame): Ditto.
87 * convex-tdep.c (decout): Use print_longest rather than
88 fprintf_filtered.
89 * defs.h: Remove use of FORCE_LONG_LONG and __GNUC__ to set
90 CC_HAS_LONG_LONG.
91 (INT_MIN): Fix so it works correctly when assigned to a long long.
92 * valprint.c (longest_to_int): Rewrite to remove dependence
93 on INT_MIN and INT_MAX.
94 (print_longest): Rewrite the code that falls back to synthesized
95 hex output when LONGEST value is not representable as in a long and
96 printf doesn't support printing long longs.
97 * ch-valprint.c (chill_val_print): Cast 2nd arg of
98 chill_print_type_scalar to LONGEST.
99 chill_print_type_scalar): Make static and add prototype.
100 * hppa-tdep.c (get_field): Ifdef out unused function.
101 (set_field): Ditto.
102 (extract_3): Ditto.
103 (extract_5_store): Ditto.
104 (extract_11): Ditto.
105 (extract_12): Ditto.
106 (deposit_17): Ditto.
107 (extract_14): Convert to static and add prototype.
108 (deposit_14): Ditto.
109 (extract_21): Ditto.
110 (deposit_21): Ditto.
111 (extract_17): Ditto.
112 (extract_5r_store): Ditto.
113 (extract_5R_store): Ditto.
114 (extract_5_load): Ditto.
115 (find_proc_framesize): Ditto.
116 (find_dummy_frame_regs): Ditto.
117 (sign_extend): Ditto.
118 (find_unwind_entry): Add prototype.
119 (find_return_regnum): Ditto.
120 (unwind_command): Ditto.
121 (find_dummy_frame_regs): Add parens around subtraction in operand
122 of bitwise-and.
123 (skip_prologue): Add parens around operands of logical-and inside
124 operand of logical-or.
125 (sign_extend): Add parens around operands of subtraction inside
126 operand of shift.
127 (low_sign_extend): Ditto.
128 * top.c (filename_completer): Convert old style decl of
129 filename_completion_function into prototype.
130 * f-lang.c (patch_common_entries): Ifdef out unused function.
131 * stabsread.c (read_cfront_baseclasses): Remove unused local
132 variable "msg_noterm".
133 (resolve_cfront_continuation): Remove unused local variable "fip".
134 (read_type): Remove unused variable xtypenums.
135 (read_cfront_static_fields): Remove unused variable "i".
136 (read_cfront_static_fields): Remove unused variable "nfields".
137 (read_cfront_member_functions): Add missing comment terminator.
138 (read_cfront_static_fields): Return 1 rather than random value.
139 (read_cfront_baseclasses): Ditto.
140 (read_cfront_baseclasses): Ditto.
141 (read_cfront_baseclasses): Ditto.
142 * somsolib.c (som_solib_create_inferior_hook): Remove unused
143 variable "u".
144 (som_solib_create_inferior_hook): Remove unused variable
145 shadow_contents.
146 (language.h): Add for needed prototypes.
147 (som_solib_sharedlibrary_command): Add prototype.
148 * hpread.c: (hpread_read_array_type): Add prototype.
149 * somread.c (hpread_build_pysmtabs): Add prototype.
150 (hpread_symfile_finish): Ditto.
151 (hpread_symfile_init): Ditto.
152 * hppah-nat.c (fetch_register): Convert old style decl
153 to prototype.
154 (gdbcore.h): Include for needed prototypes.
155 (fetch_register): Remove unused variable "mess".
156 * remote-pa.c (get_offsets): Ifdef out unused function.
157 (remote_start_remote): Remove unused variable "timeout".
158 (boot_board): Add prototype.
159 (reaad_frame): Add prototype.
160 (getpkt): Remove unused variable "bp".
161 (remote_kill): Add prototype.
162 (remote_mourn): Add prototype.
163 (remote_insert_breakpoint): Add prototype.
164 (remote_remove_breakpoint): Add prototype.
165 * valops.c (value_push): Only use if PUSH_ARGUMENTS is not defined.
166 * infcmd.c (do_registers_info): Only need prototype if
167 DO_REGISTERS_INFO is not defined.
168 (breakpoint_auto_delete_contents): Only need if
169 CALL_DUMMY_BREAKPOINT_OFFSET is defined.
170
171 Sat Jul 27 08:49:49 1996 Fred Fish <fnf@cygnus.com>
172
173 * xcoffread.c (xcoff_end_psymtab): Add textlow_not_set parameter.
174 (END_PSYMTAB): Ditto.
175 (scan_xcoff_symtab): Call xcoff_end_psymtab with textlow_not_set.
176
177 Fri Jul 26 14:07:37 1996 Ian Lance Taylor <ian@cygnus.com>
178
179 * printcmd.c (_initialize_printcmd): Initialize
180 tm_print_insn_info.flavour.
181 * gdbtk.c (gdb_disassemble): Initialize di.flavour.
182
183 Thu Jul 25 19:41:31 1996 Fred Fish <fnf@cygnus.com>
184
185 * Makefile.in (scm-valprint.o): Depends upon gdbcore_h.
186 (arm-tdep.o): Ditto.
187 (dcache.o): Ditto.
188 (i386ly-tdep.o): Ditto.
189 (i960-tdep.o): Ditto.
190 (m68k-tdep.o): Ditto.
191 (nindy-tdep.o): Ditto.
192 (scm-lang.o): Ditto.
193 (w65-tdep.o): Ditto.
194 (z8k-tdep.o): Ditto.
195 (m68k-tdep.o): Depends upon value_h and gdb_string.h
196 (m2-valprint.o): Depends upon m2-lang.h.
197 (sparc-tdep.o): Depends upon gdb_string.h
198 (valprint.o): Depends upon valprint.h
199
200 * remote-e7000.c (notice_quit): Remove prototype.
201 * top.c (initialize_targets): Remove prototype, now in target.h.
202 * stabsread.c (resolve_cfront_continuation): Remove prototype.
203 * dbxread.c (resolve_cfront_continuation): Remove prototype.
204 * symfile.h (set_demangling_style): Remove prototype.
205 * config/tm-sysv4.h (in_plt_section): Remove prototype, in objfiles.h.
206 * config/sparc/tm-sparc.h (single_step): Remove extern decl, now in
207 target.h.
208 * config/arc/tm-arc.h (one_stepped, single_step): Remove extern decls,
209 now in target.h.
210 * ser-unix.c (hardwire_restore): Remove obsolete prototype.
211 * sparc-tdep.c (single_step): Remove forward decl of isbranch.
212 * scm-lang.c (find_function_in_inferior): Remove prototype.
213 (value_allocate_space_in_inferior): Ditto.
214 * infrun.c (write_pc_pid): Remove prototype, now in inferior.h.
215 * defs.h (strchr): Remove declarations, they are declared in
216 gdb_string.h also.
217 (strrchr): Ditto.
218 (strstr): Ditto.
219 (strtok): Ditto.
220 (strerror): Ditto.
221 * f-valprint.c (f77_print_array_1): Remove extra arg that was being
222 passed to f77_print_array_1.
223 * gdbtk.c (register_changed_p): Remove unused local variable "buf".
224 * gdbtypes.c (add_name): Remove unused variables lenstrlen and lenstr.
225 * scm-exp.c (scm_istr2int): Remove unused variable "j".
226 (scm_parse): Remove unused variable "str".
227 * hp300ux-nat.c (store_inferior_register): Remove unused variable
228 "buf".
229 (store_inferior_registers): Remove unnecessary decl "registers".
230 * m68k-tdep.c (m68k_pop_frame): Remove unused variable "fi".
231 * scm-lang.c (scm_get_field): Remove unused variable "val".
232 (scm_lookup_name): Remove unused variable "symval".
233 * objfiles.c (map_to_file): Remove unused local variable "tempfd".
234 * procfs.c (do_attach, do_detach): Remove unused variable "result".
235 (last_resume_pid): Remove unused static variable.
236 * alpha-tdep.c (alpha_linux_sigtramp_offset): Remove unused variable
237 "res".
238 * objfiles.c (map_to_address): Remove unused function.
239 * f-valprint.c (print_max): Remove extraneous extern decl,
240 in valprint.h.
241 (calc_f77_array_dims): Remove extraneous prototype, in f-lang.h.
242 * ch-exp.c (write_lower_upper_value): Remove prototype for
243 type_lower_upper.
244
245 * gdbtypes.c (cfront_mangle_name): #ifdef out unused function.
246 * ch-exp.c (parse_mode_call): Ditto.
247 * f-valprint.c (there_is_a_visible_common_named): Ditto.
248 * f-lang.c (clear_function_list): Ditto.
249 (get_bf_for_fcn): Ditto.
250 (clear_bf_list): Ditto.
251 (add_common_block): Ditto.
252 (patch_all_commons_by_name): Ditto.
253 (find_first_common_named): Ditto.
254 (add_common_entry): Ditto.
255 (allocate_saved_function_node): Ditto.
256 (allocate_saved_bf_node): Ditto.
257 (allocate_common_entry_node): Ditto.
258 (allocate_saved_f77_common_node): Ditto.
259
260 * arm-tdep.c (gdbcore.h): Include for necessary prototypes.
261 * dcache.c (gdbcore.h): Ditto.
262 * i386ly-tdep.c (gdbcore.h): Ditto.
263 * i960-tdep.c (gdbcore.h): Ditto.
264 * m2-valprint.c (m2-lang.h): Ditto.
265 * m68k-tdep.c (gdbcore.h): Ditto.
266 (value.h): Ditto.
267 (gdb_string.h): Ditto.
268 * nindy-tdep.c (gdbcore.h): Ditto.
269 * scm-lang.c (gdbcore.h): Ditto.
270 * scm-valprint.c (gdbcore.h): Ditto.
271 * w65-tdep.c (gdbcore.h): Ditto.
272 * z8k-tdep.c (gdbcore.h): Ditto.
273 * sparc-tdep.c (gdb_string.h): Include.
274 * valprint.c (valprint.h): Include.
275
276 * config/xm-lynx.h: Remove part of comment about INT_MIN
277 redefined warnings from defs.h, since INT_MIN define in
278 defs.h is now protected by #ifndef INT_MIN.
279 * config/i386/xm-i386bsd.h: Ditto.
280 * config/m68k/xm-hp300bsd.h: Ditto.
281 * config/m68k/xm-news.h: Ditto.
282
283 * config/pa/xm-hppah.h (INT_MIN): Remove bogus INT_MIN
284 definition as 0x80000000. The macro in defs.h is better.
285 * config/i386/xm-i386m3.h (INT_MIN): Ditto.
286 * config/i386/xm-i386mach.h (INT_MIN): Ditto.
287 * config/ns32k/xm-ns32km3.h (INT_MIN): Ditto.
288 * config/pa/xm-hppab.h: Ditto.
289
290 * core-aout.c (fetch_core_registers): Add prototype.
291 * hp300ux-nat.c (fetch_inferior_register): Ditto.
292 (store_inferior_register_1): Ditto.
293 (store_inferior_register): Ditto.
294 * config/m68k/tm-m68k.h (find_saved_regs): Ditto.
295 *scm-valprint.c (c_val_print): Ditto.
296 * procfs.c (add_fd): Ditto.
297 (remove_fd): Ditto.
298 (wait_fd): Ditto.
299 (sigcodename): Ditto.
300 (sigcodedesc): Ditto.
301 (procfs_kill_inferior): Ditto.
302 (procfs_xfer_memory): Ditto.
303 (procfs_store_registers): Ditto.
304 (create_procinfo): Ditto.
305 (procfs_init_inferior): Ditto.
306 (proc_set_exec_trap): Ditto.
307 (procfs_attach): Ditto.
308 (procfs_detach): Ditto.
309 (procfs_prepare_to_store): Ditto.
310 (procfs_files_info): Ditto.
311 (procfs_open): Ditto.
312 (procfs_wait): Ditto.
313 (procfs_fetch_registers): Ditto.
314 (procfs_mourn_inferior): Ditto.
315 (procfs_can_run): Ditto.
316 (procfs_thread_alive): Ditto.
317 (procfs_stop): Ditto.
318 * alpha-nat.c (fetch_core_registers): Ditto.
319 * config/alpha/tm-alpha.h (alpha_osf_skip_sigtramp_frame): Ditto.
320 * objfiles.c (ecoff_relocate_efi): Ditto.
321 * inflow.c (pass_signal): Ditto.
322 (handle_sigio): Ditto.
323 * annotate.c (breakpoint_changed): Ditto.
324 * callback.c (wrap): Ditto.
325 (fdbad): Ditto.
326 (fdmap): Ditto.
327 * utils.c (malloc_botch): Ditto.
328 (fputs_maybe_filtered): Ditto.
329 (vfprintf_maybe_filtered): Ditto.
330 * defs.h (notice_quit): Ditto.
331 * defs.h (xmalloc, xrealloc): Ditto.
332 * top.c (stop_sig): Ditto.
333 (init_signals): Ditto.
334 (user_defined_command): Ditto.
335 (source_cleanup_lines): Ditto.
336 (dont_repeat_command): Ditto.
337 (serial_log_command): Ditto.
338 (disconnect): Ditto.
339 * target.h (initialize_targets): Ditto.
340 * os9kread.c (read_minimal_symbols): Ditto.
341 * mdebugread.c (mdebug_psymtab_to_symtab): Ditto.
342 (fdr_name): Ditto.
343 (push_parse_stack): Ditto.
344 (pop_parse_stack): Ditto.
345 (is_pending_symbol): Ditto.
346 (add_pending): Ditto.
347 * serial.c (serial_logchar): Ditto.
348 (serial_interface_lookup): Ditto.
349 * serial.h (serial_log_command): Ditto.
350 * f-valprint.c (info_common_command): Ditto.
351 * gdbtypes.h (print_type_scalar): Ditto.
352 * scm-valprint.c (scm_scmlist_print): Ditto.
353 (scm_ipruk): Ditto.
354 * scm-lang.c (scm_printstr): Ditto.
355 (in_eval_c): Ditto.
356 (evaluate_subexp_scm): Ditto.
357 * scm-exp.c (scm_read_token): Ditto.
358 (scm_skip_ws): Ditto.
359 (scm_lreadparen): Ditto.
360 * m2-lang.c (emit_char): Ditto.
361 (m2_printchar): Ditto.
362 (m2_printstr): Ditto.
363 (m2_create_fundamental_type): Ditto.
364 * f-lang.c (emit_char): Ditto.
365 (f_printchar): Ditto.
366 (f_printstr): Ditto.
367 (f_create_fundamental_type): Ditto.
368 * ch-lang.c (chill_printchar): Ditto.
369 (chill_printstr): Ditto.
370 (chill_create_fundamental_type): Ditto.
371 (value_chill_length): Ditto.
372 (value_chill_card): Ditto.
373 (value_chill_max_min): Ditto.
374 (evaluate_subexp_chill): Ditto.
375 * ch-exp.c (PEEK_TOKEN): Ditto.
376 (peek_token_): Ditto.
377 (forward_token_): Ditto.
378 (parse_case_label): Ditto.
379 (parse_opt_untyped_expr): Ditto.
380 (parse_unary_call): Ditto.
381 (parse_call): Ditto.
382 (parse_named_record_element): Ditto.
383 (parse_tuple_element): Ditto.
384 (parse_opt_element_list): Ditto.
385 (parse_tuple): Ditto.
386 (parse_primval): Ditto.
387 (parse_operand6): Ditto.
388 (parse_operand5): Ditto.
389 (parse_operand4): Ditto.
390 (parse_operand3): Ditto.
391 (parse_operand2): Ditto.
392 (parse_operand1): Ditto.
393 (parse_operand0): Ditto.
394 (parse_expr): Ditto.
395 (parse_then_alternative): Ditto.
396 (parse_else_alternative): Ditto.
397 (parse_if_expression): Ditto.
398 (parse_untyped_expr): Ditto.
399 (growbuf_by_size): Ditto.
400 (match_simple_name_string): Ditto.
401 (decode_integer_value): Ditto.
402 (decode_integer_literal): Ditto.
403 (match_float_literal): Ditto.
404 (match_float_literal): Ditto.
405 (match_string_literal): Ditto.
406 (match_character_literal): Ditto.
407 (match_integer_literal): Ditto.
408 (match_bitstring_literal): Ditto.
409 (write_lower_upper_value): Ditto.
410 * ch-lang.h (type_lower_upper): Ditto.
411 * c-lang.c (emit_char): Ditto.
412 * dwarfread.c (free_utypes): Ditto.
413 * stabsread.h (resolve_cfront_continuation): Ditto.
414 * stabsread.c (get_substring): Ditto.
415 (read_one_struct_field): Ditto.
416 * stabsread.h (process_later): Ditto.
417 * demangle.c (set_demangling_command): Ditto.
418 * defs.h (set_demangling_style): Ditto.
419 * maint.c (maintenance_info_command): Ditto.
420 (print_section_table): Ditto.
421 (maintenance_info_sections): Ditto.
422 (maintenance_print_command): Ditto.
423 * symtab.h (maintenance_print_statistics): Ditto.
424 * objfiles.h (in_plt_section): Ditto.
425 * objfiles.c (add_to_objfile_sections): Ditto.
426 * bcache.c (hash): Ditto.
427 (lookup_cache): Ditto.
428 * exec.c (bfdsec_to_vmap): Ditto.
429 (ignore): Ditto.
430 * f-exp.y (growbuf_by_size, match_string_literal): Ditto.
431 * language.c (unk_lang_printchar): Ditto.
432 (unk_lang_printstr): Ditto.
433 (unk_lang_create_fundamental_type): Ditto.
434 (unk_lang_print_type): Ditto.
435 (unk_lang_val_print): Ditto.
436 (unk_lang_value_print): Ditto.
437 * target.c (update_current_target): Ditto.
438 (debug_to_open): Ditto.
439 (debug_to_close): Ditto.
440 (debug_to_attach): Ditto.
441 (debug_to_detach): Ditto.
442 (debug_to_resume): Ditto.
443 (debug_to_wait): Ditto.
444 (debug_to_fetch_registers): Ditto.
445 (debug_to_store_registers): Ditto.
446 (debug_to_prepare_to_store): Ditto.
447 (debug_to_xfer_memory): Ditto.
448 (debug_to_files_info): Ditto.
449 (debug_to_insert_breakpoint): Ditto.
450 (debug_to_remove_breakpoint): Ditto.
451 (debug_to_terminal_init): Ditto.
452 (debug_to_terminal_inferior): Ditto.
453 (debug_to_terminal_ours_for_output): Ditto.
454 (debug_to_terminal_ours): Ditto.
455 (debug_to_terminal_info): Ditto.
456 (debug_to_kill): Ditto.
457 (debug_to_load): Ditto.
458 (debug_to_lookup_symbol): Ditto.
459 (debug_to_create_inferior): Ditto.
460 (debug_to_mourn_inferior): Ditto.
461 (debug_to_can_run): Ditto.
462 (debug_to_notice_signals): Ditto.
463 (debug_to_thread_alive): Ditto.
464 (debug_to_stop): Ditto.
465 * gdbtk.c (null_routine): Ditto.
466 (gdbtk_flush): Ditto.
467 (gdbtk_fputs): Ditto.
468 (gdbtk_query): Ditto.
469 (gdbtk_readline): Ditto.
470 (gdbtk_readline_end): Ditto.
471 (gdb_get_breakpoint_list): Ditto.
472 (gdb_get_breakpoint_info): Ditto.
473 (breakpoint_notify): Ditto.
474 (gdbtk_create_breakpoint): Ditto.
475 (gdbtk_delete_breakpoint): Ditto.
476 (gdbtk_modify_breakpoint): Ditto.
477 (gdb_loc): Ditto.
478 (gdb_eval): Ditto.
479 (gdb_sourcelines): Ditto.
480 (map_arg_registers): Ditto.
481 (get_register_name): Ditto.
482 (gdb_regnames): Ditto.
483 (get_register): Ditto.
484 (gdb_fetch_registers): Ditto.
485 (register_changed_p): Ditto.
486 (gdb_changed_register_list): Ditto.
487 (gdb_cmd): Ditto.
488 (call_wrapper): Ditto.
489 (gdb_listfiles): Ditto.
490 (gdb_stop): Ditto.
491 (gdbtk_dis_asm_read_memory): Ditto.
492 (compare_lines): Ditto.
493 (gdb_disassemble): Ditto.
494 (tk_command): Ditto.
495 (cleanup_init): Ditto.
496 (gdbtk_interactive): Ditto.
497 (x_event): Ditto.
498 (gdbtk_wait): Ditto.
499 (gdbtk_call_command): Ditto.
500 (tk_command_loop): Ditto.
501 (gdbtk_init): Ditto.
502 * breakpoint.h (set_breakpoint_sal): Ditto.
503 * remote-utils.c (usage): Ditto.
504 * remote.c (set_thread): Ditto.
505 (remote_thread_alive): Ditto.
506 (get_offsets): Ditto.
507 (read_frame): Ditto.
508 (remote_insert_breakpoint): Ditto.
509 (remote_remove_breakpoint): Ditto.
510 * sparc-nat.c (fetch_core_registers): Ditto.
511 * corelow.c (add_to_thread_list): Ditto.
512 (ignore): Ditto.
513 * inftarg.c (proc_wait): Ditto.
514 * infptrace.c (udot_info): Ditto.
515 (fetch_register): Ditto.
516 * ser-unix.c (hardwire_noflush_set_tty_state): Ditto.
517 (hardwire_print_tty_state): Ditto.
518 (hardwire_flush_output): Ditto.
519 (hardwire_flush_input): Ditto.
520 (hardwire_send_break): Ditto.
521 (hardwire_setstopbits): Ditto.
522 * ser-tcp.c (tcp_return_0): Ditto.
523 (tcp_noflush_set_tty_state): Ditto.
524 (tcp_print_tty_state): Ditto.
525 * solib.c (match_main): Ditto.
526 * gdbtypes.c (print_bit_vector): Ditto.
527 (print_arg_types): Ditto.
528 (dump_fn_fieldlists): Ditto.
529 (print_cplus_stuff): Ditto.
530 * symfile.h (entry_point_address): Ditto.
531 * symfile.c (decrement_reading_symtab): Ditto.
532 * valops.c (value_arg_coerce): Ditto.
533 * value.h (find_function_in_inferior): Ditto.
534 (value_allocate_space_in_inferior): Ditto.
535 * values.c (vb_match): Ditto.
536 * thread.c (info_thread_command): Ditto.
537 (restore_current_thread): Ditto.
538 (thread_apply_all_command): Ditto.
539 (thread_apply_command): Ditto.
540 * inferior.h (write_pc_pid): Ditto.
541 * infrun.c (delete_breakpoint_current_contents): Ditto.
542 * breakpoint.c (print_it_normal): Ditto.
543 (watchpoint_check): Ditto.
544 (print_it_done): Ditto.
545 (print_it_noop): Ditto.
546 (maintenance_info_breakpoints): Ditto.
547 (create_longjmp_breakpoint): Ditto.
548 (hbreak_command): Ditto.
549 (thbreak_command): Ditto.
550 (watch_commnd_1): Ditto.
551 (rwatch_command): Ditto.
552 (awatch_command): Ditto.
553 (do_enable_breakpoint): Ditto.
554 * ch-valprint.c (chill_val_print_array_elements): Ditto.
555 * eval.c (evaluate_subexp): Ditto.
556 (get_label): Ditto.
557 (evaluate_struct_tuple): Ditto.
558 * eval.c (init_array_element): Ditto.
559
560 * alpha-tdep.c (push_sigtramp_desc): Add prototype and make static.
561 * breakpoint.c (hw_breakpoint_used_count): Ditto.
562 (hw_watchpoint_used_count): Ditto.
563 * findvar.c (write_register_gen): Ditto.
564 (read_register_pid): Ditto.
565 * symtab.c (cplusplus_hint): Ditto.
566 * infcmd.c (breakpoint_auto_delete_contents): Ditto.
567 * ch-valprint.c (chill_print_type_scalar): Ditto.
568 * gdbtypes.c (add_name): Ditto.
569 (add_mangled_type): Ditto.
570 (cfront_mangle_name): Ditto.
571 * sparc-tdep.c (isbranch): Ditto.
572 * inftarg.c (child_stop): Ditto.
573 * win32-nat.c (child_stop): Ditto.
574 * mac-nat.c (child_stop): Ditto.
575 * remote-utils.c (sr_com): Ditto.
576 * dbxread.c (process_now): Ditto.
577 * ch-exp.c (require): Ditto.
578 (check_token): Ditto.
579 (expect): Ditto.
580 (parse_mode_call): Ditto.
581 (parse_mode_or_normal_call): Ditto.
582 * scm-lang.c (scm_lookup_name): Ditto
583 * f-lang.c (allocate_saved_bf_node): Ditto.
584 (allocate_saved_function_node): Ditto.
585 (allocate_saved_f77_common_node): Ditto.
586 (allocate_common_entry_node): Ditto.
587 (add_common_block): Ditto.
588 (add_common_entry): Ditto.
589 (find_first_common_named): Ditto.
590 (patch_common_entries): Ditto.
591 (patch_all_commons_by_name): Ditto.
592 (clear_bf_list): Ditto.
593 (get_bf_for_fcn): Ditto.
594 (clear_function_list): Ditto.
595 * scm-exp.c (scm_istr2int): Ditto.
596 (scm_istring2number): Ditto.
597 * scm-valprint.c (scm_inferior_print): Ditto.
598 * f-typeprint.c (print_equivalent_f77_float_type): Ditto.
599 * f-valprint.c (f77_get_dynamic_length_of_aggregate): Ditto.
600 (f77_create_arrayprint_offset_tbl): Ditto.
601 (f77_print_array_1): Ditto.
602 (f77_print_array): Ditto.
603 (list_all_visible_commons): Ditto.
604 (there_is_a_visible_common_named): Ditto.
605 * mdebugread.c (ecoff_relocate_efi): Ditto.
606 * callback.c (os_close): Ditto.
607 (os_get_errno): Ditto.
608 (os_isatty): Ditto.
609 (os_lseek): Ditto.
610 (os_open): Ditto.
611 (os_read): Ditto.
612 (os_read_stdin): Ditto.
613 (os_write): Ditto.
614 (os_write_stdout): Ditto.
615 (os_rename): Ditto.
616 (os_system): Ditto.
617 (os_time): Ditto.
618 (os_unlink): Ditto.
619 (os_shutdown): Ditto.
620 (os_init): Ditto.
621 (os_printf_filtered): Ditto.
622
623 * scm-lang.h (scm_parse): Change old style decl to prototype.
624 * config/alpha/tm-alphalinux.h (alpha_linux_sigtramp_offset): Ditto.
625 * top.c (init_proc): Ditto.
626 (query_hook): Ditto.
627 (error_hook): Ditto.
628 * f-lang.c (c_value_print): Ditto.
629 * ch-exp.c (parse_expression): Ditto.
630 (parse_primval): Ditto.
631 (parse_untyped_expr): Ditto.
632 (parse_opt_untyped_expr): Ditto.
633 (ch_lex): Ditto.
634 * config/sparc/tm-sparc.h (sparc_init_extra_frame_info): Ditto.
635 (sparc_frame_saved_pc): Ditto.
636 (sparc_push_dummy_frame): Ditto.
637 (sparc_pop_frame): Ditto.
638 * defs.h (fclose): Ditto.
639 (atof): Ditto.
640 (error_hook): Ditto.
641
642 * arc-tdep.c (single_step): Change arg to type "enum target_signal".
643 * rs6000-tdep.c (single_step): Ditto.
644 * sparc-tdep.c (single_step): Ditto.
645
646 * breakpoint.c (cleanup_executing_breakpoints): Change unused arg type
647 to PTR which is what make_cleanup expects.
648 * utils.c (null_cleanup): Change arg type to PTR.
649 * defs.h (null_cleanup): Change prototype to match actual function.
650 * config/sparc/tm-sparc.h (struct frame_info): Move forward decl.
651 * ch-valprint.c (chill_val_print): Cast 2nd arg of
652 chill_print_type_scalar to LONGEST.
653 * infrun.c (wait_for_inferior): Have empty switch case for
654 BPSTAT_WHAT_CHECK_SHLIBS when SOLIB_ADD is not defined.
655 (stop_on_solib_events): Only needed if SOLIB_ADD is defined.
656 * infcmd.c (attach_command): Only need auto_solib_add if SOLIB_ADD
657 is defined.
658 * symfile.c (generic_load): Scan long int using a long int spec,
659 not an int spec.
660 * infptrace.c (udot_info): Only need local variables if KERNEL_U_SIZE
661 is defined.
662 (fetch_register): Only need function if FETCH_INFERIOR_REGISTERS is
663 not defined.
664 * inflow.c (handle_sigio): Only need prototype when the actual
665 function is compiled in.
666 * valprint.c (longest_to_int): Expand error message to be
667 separate messages for args larger than largest signed int
668 and args smaller than smallest signed int.
669 * valprint.c (print_longest): Fix problems with support for case
670 where compiler supports type "long long" but the runtime doesn't
671 support printing them with "%ll".
672 * scm-valprint.c (scm_scmlist_print, scm_scmval_print): Change
673 return types to void since we don't actually return anything
674 meaningful and callees ignore the values anyway.
675 * procfs.c (modify_inherit_on_fork_flag): Enclose pr_flags in PIOCSET
676 ifdef.
677 (modify_run_on_last_close_flag): Ditto.
678 (wait_fd): Enclose local variables "num_fds" and "i" LOSING_POLL
679 ifdef
680 * alpha-tdep.c (push_sigtramp_desc): Return proc_desc rather than
681 random value.
682 * infrun.c (wait_for_inferior): Ensure random_signal is not used
683 uninitialized.
684 * valops.c (call_function_by_hand): Ensure struct_addr is not used
685 uninitialized.
686 * breakpoint.c (watch_command_1): Ensure prev_frame is not used
687 uninitialized.
688 * utils.c (vfprintf_maybe_filtered): Change second arg from "char *"
689 to "const char *".
690 * gdbtk.c (gdb_fetch_registers): Cast fourth arg to map_arg_registers
691 to proper pointer type, from int.
692 (gdbtk_query): Change first arg to "const char *" from "char *".
693 * infptrace.c (udot_info): Add two dummy args so that the type is
694 correct for passing to add_info.
695 * f-lang.c (saved_fcn): Move decl to head of file so it can be used
696 in prototypes.
697 (saved_bf_symnum): Ditto.
698 (SAVED_FUNCTION): Ditto.
699 (SAVED_FUNCTION_PTR): Ditto.
700 (SAVED_BF): Ditto.
701 (SAVED_BF_PTR): Ditto.
702 * ch-exp.c (parse_named_record_element): Build error message in
703 temporary buffer before passing it to expect, rather than passing
704 wrong number of args to expect.
705 * demangle.c (set_demangling_style): Call set_demangling_command with
706 correct number of arguments.
707 * inferior.h (terminal_init_inferior_with_pgrp): Change arg type to
708 int to match actual function.
709 (os_isatty): Call fdmap with right number of arguments, was missing
710 the host_callback* arg.
711 * target.c (cleanup_target): Prototype all functions casts.
712 * target.h (one_stepped, single_step): Declare here and convert
713 single_step to prototype.
714 * infrun.c (one_stepped, single_step): Don't declare externs
715 here, they have moved to target.h.
716 * eval.c (init_array_element): Declare previously undeclared
717 last two args as LONGEST.
718 * dcache.c (dcache_xfer_memory): Change xfunc decls to prototype form.
719
720 Thu Jul 25 16:11:54 1996 Doug Evans <dje@canuck.cygnus.com>
721
722 * dsrec.c (load_srec): Protect ANSI style function parms with PARAMS.
723
724 Mon Jul 22 18:13:27 1996 Stu Grossman (grossman@critters.cygnus.com)
725
726 * Makefile.in (os9kread.o): Remove dependency on partial-stab.h.
727 * dbxread.c (read_dbx_symtab end_psymtab), partial-stab.h: Don't
728 use partial_symtab->textlow==0 as a flag, as 0 is a legitimate
729 text address. Use a seperate flag (textlow_not_set) instead.
730 This makes stabs in ELF .o files work a lot better.
731 * mdebugread.c xcoffread.c: Define textlow_not_set for
732 partial-stab.h.
733 * stabsread.h (end_psymtab): Add textlow_not_set arg to prototype.
734
735 Sat Jul 20 17:46:40 1996 Fred Fish <fnf@cygnus.com>
736
737 * gdbtk.tcl (files_command): Reorder the binding tags for
738 the listbox widget to avoid referencing the listbox after
739 the containing widget has been destroyed by the action of
740 a previous binding.
741
742 Sat Jul 20 10:41:06 1996 Fred Fish <fnf@cygnus.com>
743
744 * dwarf2read.c (struct filenames): Change internal "struct file"
745 to "struct fileinfo" to avoid conflict with "struct file" in
746 <sys/file.h> on HPUX and Solaris.
747
748 Sat Jul 20 10:09:28 1996 Fred Fish <fnf@cygnus.com>
749
750 * gdbtk.tcl (delete_expr): Unset corresponding element of
751 expr_update_list when destroying an expression.
752 (create_expr_window): Initialize expr_num, delete_expr_num,
753 and expr_update_list here when each new expression window
754 is created, rather than once at startup.
755
756 Fri Jul 19 14:05:57 1996 Stan Shebs <shebs@andros.cygnus.com>
757
758 * dwarf2read.c: New file, DWARF 2 reader originally contributed by
759 Brent Benson, with additions by Gary Funck and Jerry Kreuscher.
760 * Makefile.in (COMMON_OBS): Add dwarf2read.o.
761 (SFILES): Add dwarf2read.c.
762 (dwarf2read.o): Add build rule.
763 * symfile.h (dwarf2_has_info, dwarf2_build_psymtabs): Declare
764 exported functions.
765 * elfread.c (elf_symfile_read): Call them.
766 (elf_symtab_read) [HARRIS_TARGET]: Skip some special symbols.
767
768 Thu Jul 18 01:22:01 1996 Geoffrey Noer <noer@cygnus.com>
769
770 * symfile.c (symfile_bfd_open):
771 * exec.c (exec_file_command): for __GO32__ and __WIN32__ systems,
772 free the user from having to type the .exe extension.
773
774 Wed Jul 17 06:54:50 1996 Mark Alexander <marka@cygnus.com>
775
776 * mon960-rom.c: Shorten the mon960_inits string to a single
777 carriage return; this prevents a hang on connecting immediately
778 after powerup, when MON960 is attempting autobaud detection.
779
780 Tue Jul 16 23:47:04 1996 Mark Alexander <marka@cygnus.com>
781
782 * a29k-tdep.c (get_saved_register): Allow PC to be modified
783 when innermost frame is selected, but not in outer frames.
784
785 Tue Jul 16 23:37:25 1996 Stu Grossman (grossman@critters.cygnus.com)
786
787 * command.c (do_setshow_command): Don't segfault when showing
788 var_string and var_string_noescape vars that are NULL.
789
790 Mon Jul 15 16:55:48 1996 Doug Evans <dje@canuck.cygnus.com>
791
792 * win32-nat.c (handle_load_dll): dos_path_to_unix_path renamed to
793 cygwin32_conv_to_posix_path.
794 (child_create_inferior): unix_path_to_dos_path renamed to
795 cygwin32_conv_to_win32_path. Rewrite code to translate PATH.
796
797 Mon Jul 15 16:44:05 1996 Stu Grossman (grossman@critters.cygnus.com)
798
799 * defs.h printcmd.c: Create global disassemble_info structure
800 tm_print_insn_info.
801 * gdbtk.c (gdb_disassemble): Setup di.mach from
802 tm_print_insn_info.mach, and set endian from TARGET_BYTE_ORDER.
803 * i386-tdep.c (set_assembly_language_command): set
804 tm_print_insn_info.mach to the appropriate value for 386 or 8086
805 disassembly.
806 * printcmd.c (print_insn): Move init of disassembler_info to
807 _initialize_printcmd. Set endian for disassembler here.
808 * sparc-tdep.c: Set tm_print_insn_info.mach as appropriate to
809 select sparc/sparclite.
810 * config/sparc/{tm-sparc.h tm-sparclite.h}: Get rid of
811 TM_PRINT_INSN. Set TM_PRINT_INSN_MACH to
812 bfd_mach_sparc/bfd_mach_sparc_sparclite.
813
814 Fri Jul 12 19:04:32 1996 Fred Fish <fnf@cygnus.com>
815
816 * hpread.c (hpread_lookup_type): Use xmmalloc/xmrealloc rather
817 than xmalloc/xrealloc.
818
819 Fri Jul 12 17:59:47 1996 Fred Fish <fnf@ninemoons.com>
820
821 * objfiles.c (map_to_file): Error return from mmalloc_findbase is
822 a NULL pointer, not a -1.
823
824 Fri Jul 12 10:16:24 1996 Stu Grossman (grossman@critters.cygnus.com)
825
826 * i386-tdep.c (set_assembly_language_command): New routine to
827 select between i386 and i8086 instruction sets for disassembly.
828 New command `set assembly-language {i386 i8086}'.
829
830 Thu Jul 11 21:13:21 1996 Mark Alexander <marka@cygnus.com>
831
832 * monitor.c (monitor_write_memory, monitor_read_memory_single):
833 Disable use of "long long" memory read/write commands; can't
834 use them because we hold the values to read/write in an int
835 variable, and because strtoul fails on values that exceed the
836 size of a long. This fixes breakpoint problems on MON960.
837
838 Thu Jul 11 11:39:31 1996 Fred Fish <fnf@cygnus.com>
839
840 * config/m68k/xm-hp300hpux.h (HAVE_MMAP): Remove definition.
841 * config/pa/xm-hppah.h (HAVE_MMAP): Ditto.
842
843 Wed Jul 10 16:54:41 1996 Fred Fish <fnf@cygnus.com>
844
845 * Makefile.in (MMALLOC_CFLAGS): Eliminate intermediate MMALLOC_DISABLE
846 and MMALLOC_CHECK macros, and add comment indicating how host dependent
847 makefile fragment should modify MMALLOC_CFLAGS to not use mmalloc, or
848 to use it but to not do heap corruption checking.
849 * gdbserver/Makefile.in: Ditto.
850 * utils.c (init_malloc): Replace warning() use with direct call of
851 fprintf_unfiltered, since current_target has not yet been set and thus
852 we cannot use warning(). If we try to use mmcheck and it fails,
853 suggest that this configuration needs NO_MMCHECK or MMCHECK_FORCE
854 defined. Other small mmalloc related cleanups.
855 * config/sparc/sun4os4.mh (MMALLOC_CFLAGS): Define MMCHECK_FORCE to 1.
856 * config/alpha/alpha-osf2.mh (MMALLOC_CFLAGS): Set to -DNO_MMCHECK.
857
858 * config/sparc/xm-sun4os4.h (MMAP_BASE_ADDRESS, MMAP_INCREMENT):
859 * config/i386/xm-i386v4.h (MMAP_BASE_ADDRESS, MMAP_INCREMENT):
860 * config/i386/xm-linux.h (MMAP_BASE_ADDRESS, MMAP_INCREMENT):
861 * config/m68k/xm-hp300hpux.h (MMAP_BASE_ADDRESS, MMAP_INCREMENT):
862 * config/m68k/xm-m68kv4.h (MMAP_BASE_ADDRESS, MMAP_INCREMENT);
863 * config/m68k/xm-sun3os4.h (MMAP_BASE_ADDRESS, MMAP_INCREMENT):
864 * config/pa/xm-hppah.h (MMAP_BASE_ADDRESS, MMAP_INCREMENT):
865 * config/sparc/xm-sun4sol2.h (MMAP_BASE_ADDRESS, MMAP_INCREMENT):
866 Remove obsolete defines.
867
868 * config/alpha/alpha-linux.mh (MMALLOC_DISABLE):
869 * config/alpha/alpha-osf1.mh (MMALLOC_DISABLE):
870 * config/rs6000/rs6000.mh (MMALLOC_DISABLE):
871 * config/rs6000/aix4.mh (MMALLOC_DISABLE):
872 * config/powerpc/aix4.mh (MMALLOC_DISABLE):
873 * config/powerpc/aix.mh (MMALLOC_DISABLE):
874 * config/ns32k/ns32km3.mh (MMALLOC_DISABLE):
875 * config/mips/mipsm3.mh (MMALLOC_DISABLE):
876 * config/mips/decstation.mh (MMALLOC_DISABLE):
877 * config/m88k/cxux.mh (MMALLOC_DISABLE):
878 * config/i386/i386mk.mh (MMALLOC_DISABLE):
879 * config/i386/i386m3.mh (MMALLOC_DISABLE):
880 * config/i386/i386gnu.mh (MMALLOC_DISABLE):
881 Use MMALLOC_CFLAGS instead.
882
883 Tue Jul 9 22:41:12 1996 Jeffrey A Law (law@cygnus.com)
884
885 * h8300-tdep.c: Remove some outdated comments.
886 (h8300_skip_prologue): Rework to be more correct for the H8/300H.
887 Handle stm.l insns for the H8/S.
888 (examine_prologue): Likewise.
889
890 Tue Jul 9 16:48:55 1996 Raymond Jou <rjou@mexican.cygnus.com>
891
892 * ser-mac.c (mac_close): Change a typo SetSetBuf to SerSetBuf.
893
894 Mon Jul 08 08:50:39 1996 Mark Alexander <marka@cygnus.com>
895
896 * mon960-rom.c (mon960_open): Add floating point detection to
897 prevent hang on non-FPU processors (PR 9775).
898 (mon960_cmds): Swap setmem.cmdw and setmem.cmdl to fix problem
899 setting breakpoints and improve loading speed.
900
901 Sun Jul 7 14:57:34 1996 Fred Fish <fnf@cygnus.com>
902
903 * coffread.c (record_minimal_symbol): Don't presave name string
904 on symbol_obstack before passing to prim_record_minimal_symbol.
905 It now handles saving the string itself.
906 * dbxread.c (read_dbx_dynamic_symtab): Ditto.
907 * mipsread.c (read_alphacoff_dynamic_symtab): Ditto.
908 * os9kread.c (record_minimal_symbol): Ditto.
909 * solib.c (solib_add_common_symbols): Ditto.
910
911 * coffread.c (coff_symtab_read): Don't presave name string on
912 symbol_obstack before passing to prim_record_minimal_symbol_and_info.
913 It now handles saving the string itself.
914 * dbxread.c (record_minimal_symbol): Ditto.
915 * elfread.c (record_minimal_symbol_and_info): Ditto.
916
917 * dstread.c (record_minimal_symbol): Remove static function that just
918 called prim_record_minimal_symbol with the same args (after change to
919 prim_record_minimal_symbol to do it's own name string saves).
920 * nlmread.c (record_minimal_symbol): Ditto.
921 * somread.c (record_minimal_symbol): Ditto.
922
923 * hpread.c (hpread_read_enum_type): Save symbol name on symbol obstack.
924 (hpread_read_function_type): Ditto.
925 (hpread_process_one_debug_symbol): Ditto.
926 * mdebugread.c (parse_symbol): Ditto.
927 (new_symbol): Ditto.
928 * minsyms.c (prim_record_minimal_symbol_and_info): Ditto.
929
930 * coffread.c (process_coff_symbol): Use obsavestring to save
931 SYMBOL_NAME, rather than obstack_copy0.
932 * dstread.c (create_new_symbol): Ditto
933 * symfile.c (obconcat): Ditto.
934 * stabsread.c (patch_block_stabs): Ditto.
935 * xcoffread.c (SYMNAME_ALLOC): Ditto.
936
937 * symfile.c (obsavestring): Update comments
938 * solib.c (solib_add_common_symbols): Remove local var origname.
939
940 Wed Jul 3 15:56:08 1996 Stu Grossman (grossman@critters.cygnus.com)
941
942 * configure: Re-build with autoconf-2.10.
943
944 * sparcl-tdep.c (_initialize_sparc_tdep) config/sparc/tm-sparc.h,
945 config/sparc/tm-sparclite.h: Initialize tm_print_insn from
946 TM_PRINT_INSN, which comes from the tm file.
947
948 Tue Jul 02 21:41:20 1996 Mark Alexander <marka@cygnus.com>
949
950 * coffread.c, dbxread.c, elfread.c, mipsread.c, nlmread.c,
951 os9kread.c: Replace identical sym_offsets functions with
952 default_symfile_offsets.
953 * somread.c (som_symfile_offsets): Use new SIZEOF_SECTION_OFFSETS
954 macro to allocate section_offsets.
955 * symfile.c (default_symfile_offsets): New function.
956 * symfile.h: Declare default_symfile_offsets.
957 * symtab.h: Define SIZEOF_SECTION_OFFSETS macro to
958 simplify allocation of section_offsets.
959
960 Tue Jun 11 12:02:55 1996 Stu Grossman (grossman@critters.cygnus.com)
961
962 * Makefile.in (INTERNAL_LDFLAGS): Add in flags from configure.
963 * configure configure.in: Only make sol-thread.o for native.
964 Also, switch to dlopened libthread_db.so.1.
965 * sol-thread.c: Switch to using dlopen to get the thread_db
966 library.
967
968 Thu Jun 13 16:53:25 1996 Stu Grossman (grossman@critters.cygnus.com)
969
970 * configure, configure.in: Change test for libthread_db to only
971 work for configs where build/host/target are the same.
972
973 Tue Jul 2 15:04:20 1996 Michael Meissner <meissner@tiktok.cygnus.com>
974
975 * config/powerpc/{linux.mh,xm-linux.h}: New files, for Linux on
976 PowerPC.
977
978 * configure.in (powerpc-*-linux): Add Linux, System V, and ELF
979 support.
980 * configure: Regenerate.
981
982 Mon Jul 1 13:00:43 1996 Stan Shebs <shebs@andros.cygnus.com>
983
984 From Raymond Jou <rjou@mexican.cygnus.com>:
985 * mpw-make.sed: Add lines to whack out autoconf hook
986 @CONFIG_LDFLAGS@.
987
988 Mon Jul 01 11:07:15 1996 Mark Alexander <marka@cygnus.com>
989
990 * remote-e7000.c (e7000_stop): New function.
991
992 Fri Jun 28 06:34:19 1996 Dawn Perchik <dawn@cygnus.com>
993
994 * configure, configure.in: Add target sparclet.
995 * monitor.h, monitor.c: Added monitor flags MO_NO_ECHO_ON_SETMEM
996 (don't expect echo on setmem command), MO_RUN_FIRST_TIME (if
997 command to start process running on target is different from one
998 to continue execution), MO_HEX_PREFIX (if addresses from monitor
999 have a "0x" prefix).
1000 * monitor.c, parse.c, sparc-tdep.c: Don't require strings in the
1001 registers array. This is to allow NULLs to be place holders in
1002 the tm-*.h file so that only minor changes are needed when a new
1003 processor is introduced (eg, one without floating point).
1004 * sparc-tdep.c: Conditionally remove dependancies on floating
1005 point.
1006 * sparclet-rom.c, config/sparc/sparclet.mt,
1007 config/sparc/tm-sparclet.h: New files for target sparclet.
1008 * symfile.c (load_command): Add option for 2nd parameter; a load
1009 offset added to the vma of each section.
1010
1011 Fri Jun 28 05:39:19 1996 Dawn Perchik <dawn@cygnus.com>
1012
1013 * main.c (main): Add option "l" for setting remote_timeout.
1014
1015 Fri Jun 28 05:25:18 1996 Dawn Perchik <dawn@cygnus.com>
1016
1017 * remote-e7000.c, remote.c, target.h, top.c: Add set option
1018 "remote_timeout" for setting remote_timeout. Add set option
1019 "use_hard_breakpoints" for setting hardware .vs. memory
1020 breakpoints.
1021
1022 Fri Jun 28 04:32:18 1996 Dawn Perchik <dawn@cygnus.com>
1023
1024 * remote-e7000.c (e7000_parse_device): New function.
1025 Add option "tcp_remote" to target command if using
1026 tcp to connect to a remote host which is then connected
1027 via serial port to the e7000 (for exampole, a port master).
1028 (e7000_open): Change to call e7000_parse_device.
1029
1030 Fri Jun 28 03:47:17 1996 Dawn Perchik <dawn@cygnus.com>
1031
1032 * monitor.c (monitor_debug): Fix remotedebug buffering.
1033
1034 Thu Jun 27 18:24:17 1996 Stan Shebs <shebs@andros.cygnus.com>
1035
1036 * config/i386/cygwin32.mh, config/powerpc/cygwin32.mh
1037 (NATDEPFILES): Add a space.
1038
1039 Wed Jun 26 06:05:39 1996 Wilfried Moser (Alcatel) <moser@rtl.cygnus.com>
1040
1041 * gdbtypes.c (create_array_type): If TYPE_LENGTH (result_type)
1042 is zero, set TYPE_FLAG_TARGET_STUB to force reevaluation of the type.
1043
1044 * ch-exp.c (calculate_array_length): Function removed.
1045
1046 Tue Jun 25 17:41:06 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
1047
1048 * remote-e7000.c (e7000_read_inferior_memory_large): New function.
1049 (e7000_xfer_inferior_memory): Call it.
1050
1051 Tue Jun 25 23:14:07 1996 Jason Molenda (crash@godzilla.cygnus.co.jp)
1052
1053 * gdb/gdbserver/Makefile.in (docdir): Removed.
1054
1055 Tue Jun 25 22:05:38 1996 Jason Molenda (crash@godzilla.cygnus.co.jp)
1056
1057 * Makefile.in (bindir, libdir, datadir, mandir, infodir, includedir):
1058 Use autoconf set values.
1059 (docdir): Removed.
1060 * configure.in (AC_PREREQ): autoconf 2.5 or higher.
1061 * nlm/Makefile.in (bindir, libdir, datadir, mandir, infodir,
1062 includedir): Use autoconf set values.
1063 (docdir): Removed.
1064 * nlm/configure.in (AC_PREREQ): autoconf 2.5 or higher.
1065 * nlm/configure: Rebuilt.
1066 * gdb/gdbserver/Makefile.in (datadir): Set to $(prefix)/share.
1067
1068 Mon Jun 24 09:56:14 1996 Angela Marie Thomas (angela@cygnus.com)
1069
1070 * stabsread.c (read_cfront_member_functions): add type
1071
1072 Sun Jun 23 23:40:48 1996 Doug Evans <dje@canuck.cygnus.com>
1073
1074 * win32-nat.c: #include <unistd.h>.
1075 (unix_paths_to_dos_paths, dos_paths_to_unix_paths): Delete.
1076 (child_create_inferior): Convert only env var PATH to win32 style.
1077 (set_pathstyle_dos): Delete.
1078 (_initialize_inftarg): Delete dos-path-style command.
1079
1080 start-sanitize-gdbtk
1081 Fri Jun 21 11:04:47 1996 Fred Fish <fnf@cygnus.com>
1082
1083 * gdbtk.tcl (create_register_windows): Include missing '$'s.
1084 Add global declarations for various reg_format_* variables.
1085 * gdbtk.tcl (populate_register_window): Make initial window one
1086 line taller to account for new column header line.
1087
1088 Fri Jun 21 09:46:47 1996 Fred Fish <fnf@cygnus.com>
1089
1090 * gdbtk.c (get_register): Support for printing raw formats.
1091 * gdbtk.tcl: Add hint for using debug_interface.
1092 (center_window, add_breakpoint_frame, delete_breakpoint_frame):
1093 Enclose arg in braces for consistency.
1094 (create_registers_window, populate_reg_window, update_registers):
1095 Major rewrite to support displaying multiple formats in the register
1096 window.
1097 (init_reg_info): New function.
1098 (recompute_reg_display_list): Reset reg_display_list, start
1099 register display lines at line 2.
1100
1101 end-sanitize-gdbtk
1102 Thu Jun 20 13:42:23 1996 Doug Evans <dje@canuck.cygnus.com>
1103
1104 * configure.in: Revise sol-thread.o test.
1105 * configure: Regenerated.
1106
1107 * source.c (find_source_lines): Reassign size to result of read.
1108
1109 start-sanitize-gdbtk
1110 Thu Jun 20 08:18:59 1996 Fred Fish <fnf@cygnus.com>
1111
1112 * gdbtk.tcl (gdbtk_tcl_readline_begin): Handle backspace to
1113 avoid backing up over prompt. At every input, make sure insert
1114 point is at least after command start, handle control-u to delete
1115 current input line.
1116 (tclsh): Handle backspace to avoid backing up over prompt. Handle
1117 control-u to delete current input line.
1118
1119 Wed Jun 19 17:23:38 1996 Geoffrey Noer <noer@cygnus.com>
1120
1121 * configure.in: disable gdbtk for *cygwin32* hosted compiles
1122 * configure: regenerated with autoconf 2.8
1123
1124 end-sanitize-gdbtk
1125 Tue Jun 18 16:25:54 1996 Jeffrey A. Law <law@rtl.cygnus.com>
1126
1127 * h8300-dep.c (gdb_print_insn_h8300): Handle the H8/S.
1128 (h8300_command): Likewise.
1129 (set_machine): Likewise.
1130 (set_machine_hook): Likewise.
1131 (_initialize_h8300m): Likewise.
1132
1133 * config/h8300/tm-h8300.h (h8300smode): Declare.
1134
1135 Sun Jun 16 15:21:51 1996 Jeffrey A. Law <law@rtl.cygnus.com>
1136
1137 * somsolib.c (som_solib_create_inferior_hook): Handle tracking
1138 of shl_load calls for hpux10.
1139
1140 Thu Jun 13 11:16:10 1996 Tom Tromey <tromey@thepub.cygnus.com>
1141
1142 * config.in: Regenerated.
1143 * acconfig.h (HAVE_THREAD_DB_LIB): Added entry.
1144
1145 * configure: Regenerated.
1146 * aclocal.m4 (CY_AC_PATH_TCLH, CY_AC_PATH_TKH): Use odd names to
1147 avoid name clashes with SunOS headers.
1148
1149 Tue Jun 11 19:52:50 1996 Fred Fish <fnf@cygnus.com>
1150
1151 From Michael Snyder <Michael_Snyder@next.com>:
1152 * bcache.c (print_bcache_statistics): Avoid divide-by-zero
1153 exception if one or more objfile has no symbols, such as when
1154 a dynamic library has been stripped.
1155
1156 Tue Jun 11 12:02:55 1996 Stu Grossman (grossman@critters.cygnus.com)
1157
1158 * Makefile.in (INTERNAL_LDFLAGS): Add in flags from configure.
1159 * configure configure.in: Only make sol-thread.o for native.
1160 Also, switch to dlopened libthread_db.so.1.
1161 * sol-thread.c: Switch to using dlopen to get the thread_db
1162 library.
1163
1164 Mon Jun 10 14:17:19 1996 Fred Fish <fnf@cygnus.com>
1165
1166 * config/sparc/{xm-sun4sol2.h,xm-sun4os4.h} (MMAP_BASE_ADDRESS):
1167 Change from 0xE0000000 to 0xC0000000.
1168
1169 Thu Jun 6 17:10:32 1996 Michael Meissner <meissner@tiktok.cygnus.com>
1170
1171 * config/powerpc/xm-solaris.h: Initial version of support for
1172 Solaris on PowerPC.
1173
1174 Wed Jun 5 01:52:57 1996 James G. Smith <jsmith@cygnus.co.uk>
1175
1176 * configure.in (configdirs): Force 4100 builds to use 4300 GDB
1177 target.
1178 * configure: Rebuild.
1179
1180 * config/mips/vr4300el.mt (SIM_OBS): Include simulator in
1181 little-endian builds.
1182
1183 Mon Jun 3 11:48:29 1996 Jeffrey A Law (law@cygnus.com)
1184
1185 * inftarg.c (child_thread_alive): Protect declaration with
1186 #ifndef CHILD_THREAD_ALIVE.
1187
1188 * source.c (find_source_lines): Check the time on the symtab's bfd if
1189 it exists, else check the time on the exec_bfd.
1190
1191 Thu May 30 09:43:17 1996 Mark Alexander <marka@cygnus.com>
1192
1193 * dsrec.c (make_srec): Fix calculation of address size
1194 to allow addresses less than 0x100.
1195
1196 Thu May 30 04:24:09 1996 Wilfried Moser (Alcatel) <moser@rtl.cygnus.com>
1197
1198 * ch-exp.c (ch_lex): In case of LOC_TYPEDEF call calculate_array_length.
1199
1200 Tue May 28 16:15:47 1996 Geoffrey Noer <noer@cygnus.com>
1201
1202 * remote-mips.c: cannot use EINVAL for breakpoint test since
1203 its value varies for different hosts (e.g. go32's is 19, while
1204 sunos is 22). Changed to hardcoded 22 since that is what the
1205 mips boards return.
1206
1207 Tue May 28 11:14:58 1996 Tom Tromey <tromey@creche.cygnus.com>
1208
1209 * configure: Regenerated.
1210 * aclocal.m4 (CY_AC_PATH_TCLH): Don't use AC_TRY_RUN.
1211 (CY_AC_PATH_TKH): Don't use AC_TRY_RUN.
1212
1213 Sun May 26 16:56:35 1996 Miles Bader <miles@gnu.ai.mit.edu>
1214
1215 * solib.c (solib_absolute_prefix, solib_search_path): New variables.
1216 (_initialize_solib): Add set/show commands for those variables.
1217 (solib_map_sections): Implement searching using them.
1218
1219 Sun May 26 14:14:49 1996 Fred Fish <fnf@cygnus.com>
1220
1221 Changes from: David Mosberger-Tang <davidm@azstarnet.com>
1222
1223 * NEWS: Add Alpha Linux as a new native configuration.
1224
1225 * mdebugread.c (parse_symbol): When we find a malloc() symbol with
1226 return type VOID, assume no debugging info is available for that
1227 object file and patch the return value into VOID *. Otherwise,
1228 operations requiring an implicit call to malloc() will fail.
1229
1230 * infrun.c (wait_for_inferior): The criterion to detect entering a
1231 sigtramp handler is now: (a) the current pc is inside a sigtramp
1232 handler, (b) the previous pc is not in a sigtramp handler, and (c)
1233 the current stack pointer is "inner" than the old one. Condition
1234 (c) is new to avoid mistaking a return from a signal handler into
1235 sigtramp as a new sigtramp invocation.
1236
1237 * dcache.c (struct dcache_block): Declare addr as CORE_ADDR. An
1238 int may not be big enough to hold an address.
1239 (dcache_hit): Ditto.
1240 (dcache_peek_byte): Fix indentation.
1241
1242 * configure.in (alpha-*-linux*): Add target.
1243 * configure: Rebuild
1244
1245 * config/alpha/tm-alpha.h (PROC_DESC_IS_DYN_SIGTRAMP): New macro.
1246 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
1247 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
1248 (SIGCONTEXT_ADDR): Ditto.
1249 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
1250
1251 * config/alpha/alpha-linux.mh: New file.
1252 * config/alpha/alpha-linux.mt: Ditto.
1253 * config/alpha/nm-linux.h: Ditto.
1254 * config/alpha/tm-alphalinux.h: Ditto.
1255 * config/alpha/xm-alphalinux.h: Ditto.
1256 * config/alpha/xm-alphaosf.h: Renamed from xm-alpha.h.
1257 * config/alpha/alpha-osf1.mh (XM_FILE): Change from xm-alpha.h to
1258 xm-alphaosf.h.
1259 * config/alpha/alpha-osf2.mh: Ditto.
1260
1261 * blockframe.c (find_pc_partial_function): Pass PC to
1262 SIGTRAMP_START and SIGTRAMP_END macros for the benefit of systems
1263 that detect sigtramp code via designated code sequences (as is the
1264 case for Linux/Alpha, for example).
1265
1266 * config/i386/tm-i386bsd.h: Change SIGTRAMP_START and SIGTRAMP_END
1267 to ignore new PC argument.
1268 * config/m68k/tm-hp300bsd.h: Ditto.
1269 * config/vax/tm-vax.h: Ditto.
1270
1271 * alpha-tdep.c (alpha_linux_sigtramp_offset): New function.
1272 (alpha_osf_skip_sigtramp_frame): Ditto.
1273 (push_sigtramp_desc): Ditto.
1274 (alpha_find_saved_regs): Use SIGCONTEXT_ADDR macro to extract
1275 sigcontext address from frame.
1276 (alpha_saved_pc_after_call): When in sigtramp, use
1277 alpha_frame_saved_pc() instead of read-register().
1278 (after_prologue): When inside a dynamically generated sigtramp
1279 function, there is no prologue, so return address of first
1280 instruction.
1281 (alpha_in_prologue): Fix typo in comment.
1282 (find_proc_desc): Use macro DYNAMIC_SIGTRAMP_OFFSET to determine
1283 whether we're inside a dynamicaly generated sigtramp function. If
1284 so, create and push and appropriate procedure descriptor.
1285 (alpha_frame_chain): Use macro FRAME_PAST_SIGTRAMP_FRAME to obtain
1286 the frame past a sigtramp frame (if the current frame is indeed a
1287 sigtramp function).
1288 (init_extra_frame_info): Don't read next frame register off of
1289 stack-pointer when inside a dynamiccaly generated sigtramp.
1290 (alpha_pop_frame): Also unlink and destroy procedure descriptors
1291 created for dynamically generated sigtramp functions.
1292
1293 * alpha-nat.c: When compiling under Linux, include <asm/reg.h> and
1294 <alpha/ptrace.h> instead of <machine/reg.h>
1295
1296 Tue Jul 2 13:58:10 1996 Miles Bader <miles@gnu.ai.mit.edu>
1297
1298 * gnu-nat.c (inf_validate_task_sc):
1299 Give terminal to gdb while asking question.
1300 (inf_resume): Don't validate the task suspend-count while execing.
1301
1302 Thu Jun 13 11:04:52 1996 Miles Bader <miles@gnu.ai.mit.edu>
1303
1304 * gnu-nat.c (inf_validate_task_sc): Query user before clearing any
1305 additional suspend count.
1306 (S_proc_wait_reply, gnu_attach): Don't call inf_validate_task_sc.
1307 (inf_resume): Call inf_validate_task_sc here.
1308 (gnu_resume): Call inf_update_procs to ensure noticing new threads.
1309
1310 Fri Jun 7 17:00:43 1996 Miles Bader <miles@gnu.ai.mit.edu>
1311
1312 * gnu-nat.c (gnu_create_inferior: attach_to_child): Return PID.
1313
1314 Thu May 23 15:13:56 1996 Jeffrey A Law (law@cygnus.com)
1315
1316 * h8300-tdep.c (IS_PUSH): Refine.
1317 (IS_MOVE_FP, IS_MOV_SP_FP): Accept H8/300H varaints.
1318 (IS_SUB4_SP, IS_SUBL_SP): New macros.
1319 (h8300_skip_prologue): Handle H8/300H prologue code sequences.
1320 (examine_prologue): Handle addresses from 0x010000 to 0xffffff
1321 when in H8/300H mode. Get the return pointer's address correctly
1322 for the H8/300H. Handle H8/300H prolouge code sequences.
1323
1324 * symfile.c (generic_load): Print the starting address
1325 of the file just loaded.
1326
1327 Thu May 23 12:09:52 1996 Stan Shebs <shebs@andros.cygnus.com>
1328
1329 * mpw-make.sed: Edit @THREAD_DB_OBS@ out of makefile.
1330
1331 Tue May 21 11:53:56 1996 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
1332
1333 * breakpoint.c (bpstat_do_actions): Avoid endless recursion
1334 if a `source' command is contained in bs->commands.
1335
1336 * infrun.c (wait_for_inferior): Update step_frame_address when
1337 stepping into a new line.
1338
1339 From schwab@issan.informatik.uni-dortmund.de (Andreas Schwab):
1340 * breakpoint.c (breakpoint_1): Add shlib_disabled case to
1341 bpenables array.
1342
1343 Mon May 20 22:52:00 1996 Mark Alexander <marka@cygnus.com>
1344
1345 * dsrec.c (load_srec): Add WAITACK parameter, for machines
1346 like EST visionICE that send back an ACK after each S-record.
1347 * monitor.c (monitor_wait_srec_ack): New function.
1348 (monitor_load): Pass monitor_wait_srec_ack to load_srec
1349 if the monitor's MO_SREC_ACK flag is set.
1350 * monitor.h: Define MO_SREC_ACK flag.
1351 * remote-est.c (est_cmds): Add MO_SREC_ACK flag.
1352 * sh3-rom.c (sh3_load): Accomodate change in load_srec prototype.
1353 * srec.h: Add WAITACK parameter to load_srec prototype.
1354
1355 Sun May 19 21:22:00 1996 Rob Savoye <rob@chinadoll>
1356
1357 * config/sparc/sparclite.mt: Add the sparc simulator.
1358
1359 Sun May 19 16:49:37 1996 Fred Fish <fnf@cygnus.com>
1360
1361 * defs.h (read_command_lines, query_hook): Update prototypes.
1362 (readline_begin_hook, readline_hook, readline_end_hook): Declare.
1363 * breakpoint.c (commands_command): Build message in temporary buffer
1364 and pass that, as well as tty control flag, to read_command_lines.
1365 * top.c (readline_begin_hook, readline_hook, readline_end_hook):
1366 Define here.
1367 (command_loop): Check for non-NULL instream before looping.
1368 (command_line_input): Use readline_hook when appropriate, to get
1369 user input from a GUI window.
1370 (read_next_line): Also build prompt if getting user input from a GUI.
1371 (recurse_read_control_structure): Fix typo in comment.
1372 (read_command_lines): Use passed in prompt and tty flag to decide how
1373 to build message. Use readline_begin_hook when appropriate, to set
1374 up a GUI interaction window. Just return head, whether NULL or not,
1375 after using readline_end_hook to complete GUI interaction.
1376 (define_command, document_command): Build message in a temporary
1377 buffer and pass it to read_command_lines, along with tty flag.
1378
1379 start-sanitize-gdbtk
1380 * gdbtk.c (gdbtk_readline_begin, gdbtk_readline, gdbtk_readline_end):
1381 New functions.
1382 (tk_command_loop): Set instream to NULL to enable Tk user interaction.
1383 (gdbtk_init): Set readline_begin_hook, readline_hook,
1384 and readline_end_hook.
1385 * gdbtk.tcl (gdbtk_tcl_readline_begin, gdbtk_tcl_readline,
1386 gdbtk_tcl_readline_end): New functions.
1387 (tclsh): Pack scroll bar on right side of window, not left.
1388 end-sanitize-gdbtk
1389
1390 Sat May 18 02:43:58 1996 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
1391
1392 * blockframe.c (frameless_look_for_prologue):
1393 Add FUNCTION_START_OFFSET only if func_start is non-zero.
1394 * minsyms.c (lookup_minimal_symbol_by_pc): Return NULL if
1395 pc is not in a known section.
1396 * stack.c (print_frame_info): Remove check for fi->pc in known
1397 section, now handled by lookup_minimal_symbol_by_pc.
1398
1399 start-sanitize-gdbtk
1400 Fri May 17 13:54:34 1996 Fred Fish <fnf@cygnus.com>
1401
1402 * gdbtk.tcl (create_command_window): Change a misspelled "get"
1403 to the intended "cget".
1404 (delete_line): Fix so it deletes the current line at the
1405 insertion cursor.
1406 end-sanitize-gdbtk
1407
1408 Fri May 17 13:31:04 1996 Stan Shebs <shebs@andros.cygnus.com>
1409
1410 * sh-stub.c: New file, was config/sh/stub.c.
1411
1412 start-sanitize-gdbtk
1413 Thu May 16 19:20:29 1996 Fred Fish <fnf@fishfood.ninemoons.com>
1414
1415 * gdbtk.tcl (gdb_prompt): Set this early on.
1416 (create_command_window): Use gdb_prompt rather than "(gdb) ".
1417 (gdbtk_tcl_preloop): Proc executed just prior to Tk main loop.
1418 (tclsh): If an evaluation window already exists, just bring it
1419 to the front instead of trying to create another.
1420 * gdbtk.c (tk_command_loop): New function.
1421 (gdbtk_init): Call tk_command_loop rather than Tk_MainLoop.
1422
1423 Thu May 16 16:16:35 1996 Fred Fish <fnf@cygnus.com>
1424
1425 * gdbtk.tcl (evaluate_tcl_command, tclsh): New functions that
1426 implement a tcl evaluation window for gdbtk maintainers to use.
1427
1428 Thu May 16 11:42:58 1996 Tom Tromey <tromey@creche.cygnus.com>
1429
1430 * gdbtk.tcl (files_command): Correctly insert list of files into
1431 listbox widget.
1432
1433 * gdbtk.tcl (files_command): listbox command no longer accepts
1434 -geometry.
1435
1436 Wed May 15 16:04:09 1996 Stan Shebs <shebs@andros.cygnus.com>
1437
1438 * gdbtk.tcl (create_command_window): If command window's buffer
1439 is disabled, don't execute any of the key bindings.
1440 end-sanitize-gdbtk
1441
1442 Wed May 15 08:25:12 1996 Jeffrey A Law (law@cygnus.com)
1443
1444 * top.c (read_next_line): Fix thinkos. From Donn Seeley.
1445
1446 * coffread.c (coff_symtab_read): Handle C_LABEL symbols like
1447 C_STAT symbols.
1448 * h8300-tdep.c (h8300_pop_frame): Reset $sp and $pc correctly.
1449 Flush cached frames just before exiting.
1450 * remote-sim.c (gdbsim_resume): Complain if the program isn't
1451 being run.
1452 * config/h8300/tm-h8300.h (BELIEVE_PCC_PROMOTION): Define.
1453
1454 Tue May 14 18:05:16 1996 Stu Grossman (grossman@critters.cygnus.com)
1455
1456 * procfs.c (procfs_thread_alive procfs_stop): Make static.
1457 (procfs_pid_to_str): New routine to print out thread id's in an
1458 intelligible manner.
1459 * sol-thread.c (sol_thread_fetch_registers): Re-order manner in
1460 which supply_register is called to fix bug with writing
1461 individual regs.
1462 * config/sparc/tm-sun4sol2.h: Define default for
1463 target_pid_to_str in case host lacks libthread_db.
1464
1465 Mon May 13 23:53:30 1996 Stu Grossman (grossman@critters.cygnus.com)
1466
1467 * Makefile.in config.in configure configure.in
1468 config/sparc/nm-sun4sol2.h config/sparc/sun4sol2.mh
1469 config/sparc/tm-sun4sol2.h: Use autoconf to config Solaris thread
1470 and pthread support, since pre-2.5 systems don't come with
1471 libthread_db.so.1.
1472
1473 * procfs.c (info_proc): Use int instead of id_t. Old versions of
1474 Irix don't seem to define this.
1475
1476 start-sanitize-gdbtk
1477 Mon May 13 13:43:25 1996 Fred Fish <fnf@cygnus.com>
1478
1479 * gdbtk.c (tk_command): Catch case where no argument is given
1480 since this will cause the tcl interpreter to dump core.
1481 end-sanitize-gdbtk
1482
1483 Mon May 13 17:40:58 1996 Jeffrey A Law (law@cygnus.com)
1484
1485 * top.c (execute_control_command, case while_control): Allow
1486 a while command to be interrupted.
1487
1488 Mon May 13 16:17:36 1996 Stu Grossman (grossman@critters.cygnus.com)
1489
1490 * sol-thread.c: More cleanup, add comments.
1491 (sol_thread_resume): Prevent people from trying to step
1492 inactive threads.
1493 (sol_thread_wait sol_thread_fetch_registers
1494 sol_thread_store_registers): Remove unnecessary check for
1495 sol_thread_active. These routines won't get called unless threads
1496 are active.
1497
1498 Mon May 13 11:29:37 1996 Stan Shebs <shebs@andros.cygnus.com>
1499
1500 SH3-E support from Allan Tajii <atajii@hmsi.com>:
1501 * sh-tdep.c (sh_reg_names, sh3_reg_names): Add empty names for
1502 float registers.
1503 (sh3e_reg_names): New register name array.
1504 (sh_processor_type_table): Add sh3e processor type.
1505 * config/sh/tm-sh.h (REGISTER_VIRTUAL_TYPE): Fix test.
1506 (REGISTER_NAMES, NUM_REGS, NUM_REALREGS, etc): Adjust for
1507 full set of registers.
1508 * remote-e7000.c (want_sh3, want_sh3_nopc): New globals.
1509 (e7000_fetch_registers, e7000_wait): Use them.
1510 * sh3-rom.c (sh3_regnames): Add float registers.
1511 (sh3e_cmds, sh3e_ops): New globals.
1512 (sh3e_open): New function.
1513 (_initialize_sh3_rom): Rename from _initialize_sh3, set up
1514 sh3e target vector.
1515
1516 Fri May 10 15:53:38 1996 Stu Grossman (grossman@lisa.cygnus.com)
1517
1518 * sol-thread.c: Cleanup. gcc -Wall fixes. Add prototypes.
1519 Print out messages instead of codes for thread_db errors. Make
1520 access macros for thread and lwp manipulation. Make cleanups to
1521 fixup inferior_pid in case of errors.
1522
1523 Thu May 9 19:06:02 1996 Fred Fish <fnf@cygnus.com>
1524
1525 * aclocal.m4: Remove unused definition of AC_C_CROSS.
1526 * configure.in: Add powerpcle-*-solaris* host and target config
1527 so April 30th change does not get lost next time configure is
1528 rebuilt.
1529
1530 Thu May 9 14:13:08 1996 Stu Grossman (grossman@critters.cygnus.com)
1531
1532 * Makefile.in, breakpoint.c, corelow.c, fork-child.c, inflow.c,
1533 infrun.c, mac-nat.c, procfs.c, remote.c, sol-thread.c, thread.c,
1534 win32-nat.c, config/nm-lynx.h: Rename thread.h to gdbthread.h to
1535 avoid conflict with Solaris /usr/include/thread.h.
1536
1537 Thu May 9 12:33:32 1996 Rob Savoye <rob@chinadoll.cygnus.com>
1538
1539 * abug-rom.c: Config file for the older style ABug monitor that
1540 runs on the mvme13x boards.
1541 * config/m68k/monitor.mt: Add abug support for m68k cross
1542 debugging.
1543
1544 Wed May 8 20:33:24 1996 Fred Fish <fnf@cygnus.com>
1545
1546 * infcmd.c (do_registers_info): Always print the raw floating
1547 point value's bytes in big endian order, so the the leftmost bit
1548 is the most significant.
1549 * breakpoint.c (clear_momentary_breakpoints): Remove dead code
1550 that is referenced nowhere else.
1551 (set_breakpoint): Ditto.
1552 (do_enable_breakpoint): Created from enable_once_breakpoint
1553 with a couple of changes.
1554 (enable_breakpoint): Call do_enable_breakpoint with an appropriate
1555 bpdisp enum value to set disposition of breakpoint.
1556 (enable_once_breakpoint): Ditto.
1557 (enable_delete_breakpoint): Ditto.
1558 * breakpoint.h (clear_momentary_breakpoints): Remove prototype.
1559 * symtab.c (find_pc_line): Improve comments.
1560 start-sanitize-gdbtk
1561 * gdbtk.c: Fix a couple of misspellings.
1562 end-sanitize-gdbtk
1563 * xcoffread.c: Ditto.
1564
1565 Tue May 7 18:37:06 1996 Stan Shebs <shebs@andros.cygnus.com>
1566
1567 * target.c (debug_to_xfer_memory): Insert line breaks when
1568 dumping the memory block.
1569
1570 Mon May 6 13:52:52 1996 Stu Grossman (grossman@critters.cygnus.com)
1571
1572 * fork-child.c (fork_inferior), inferior.h: init_trace_fun now
1573 returns a possibly modified pid.
1574 * inftarg.c (ptrace_him): Now returns pid;
1575 * m3-nat.c (m3_trace_him): Now returns pid;
1576 * infcmd.c (run_command): Minor cleanup.
1577 * infrun.c (wait_for_inferior): Add another check for one_stepped
1578 near where we read the pc to avoid erroneously setting
1579 random_signal for multi-threaded support.
1580 * procfs.c: Add support for Solaris LWPs. Remove def of
1581 LOSING_POLL. Many cleanups... Several workarounds for Solaris
1582 lossage. System call entry and exit are now handled by
1583 dynamically registered handlers.
1584 * (syscallname): Don't barf when handed an unknown syscall
1585 number.
1586 * (info_proc_syscalls): Ditto.
1587 * sol-thread.c: New file. Implements Solaris thread support.
1588 * symfile.c (symbol_file_add): Add call to target_new_objfile to
1589 notify target-dependent code about new symbol tables.
1590 * (clear_symtab_users): Call target_new_objfile to notify it of
1591 the removal of all symbol tables.
1592 * target.c (push_target): Make sure that to_close is non-zero
1593 before calling it.
1594 * target.h (target_new_objfile): Provide default.
1595 * config/alpha/nm-osf2.h: Define LOSING_POLL because this version
1596 of OSF can't hack using poll with /proc.
1597 * config/sparc/nm-sun4sol2.h (target_new_objfile): Define to be
1598 sol-thread-new-objfile.
1599 * config/sparc/sun4sol2.mh: Add sol-thread.o to NATDEFFILES, and
1600 add libthread_db.so.1 to NAT_CLIBS.
1601 * config/sparc/tm-sun4sol2.h: Define PIDGET, TIDGET, and
1602 target_pid_to_str.
1603
1604 Sat May 4 02:13:34 1996 N Srin Kumar <nsrin@wipinfo.soft.net>
1605
1606 * procfs.c (remove_fd): Fix copy of fds to fill hole left after
1607 removal of the requested fd.
1608
1609 Mon May 6 07:52:48 1996 Michael Meissner <meissner@tiktok.cygnus.com>
1610
1611 * rs6000-tdep.c (_initialize_rs6000_tdep): Don't do XCOFF specific
1612 hooks under ELF.
1613
1614 * config/powerpc/tm-ppc-eabi.h: Define ELF_OBJECT_FORMAT.
1615
1616 start-sanitize-gdbtk
1617 Thu May 2 19:17:49 1996 Stan Shebs <shebs@andros.cygnus.com>
1618
1619 * gdbtk.tcl (debug_interface): New global, use to aid debugging.
1620 (insert_breakpoint_tag, delete_breakpoint_tag): Fix range.
1621 (file_popup_menu): Delete, never used.
1622 (listing_window_popup): Rename from listing_window_button_1,
1623 remove breakpoint toggling code.
1624 (toggle_breakpoint): New procedure.
1625 (create_file_win): Bind popup menu to button 2, toggle breakpoints
1626 with button 1 in breakpoint area, add display of tagged areas if
1627 debugging on.
1628 end-sanitize-gdbtk
1629
1630 Thu May 2 12:46:14 1996 Jeffrey A Law (law@cygnus.com)
1631
1632 From Peter Schauer:
1633 * breakpoint.h (enum bpdisp): Add del_at_next_stop.
1634 * breakpoint.c (insert_breakpoints, watchpoint_check,
1635 bpstat_stop_status): Avoid bad references to memory freed via
1636 delete_breakpoint on watchpoints going out of scope.
1637 Do not delete these watchpoints, disable them and change their
1638 disposition to del_at_next_stop instead.
1639 (breakpoint_auto_delete): Delete all breakpoints whose disposition
1640 is del_at_next_stop.
1641 (breakpoint_init_inferior): Use switch to avoid reference to
1642 already deleted breakpoint.
1643
1644 Wed May 1 17:29:18 1996 Fred Fish <fnf@cygnus.com>
1645
1646 * Makefile.in (rs6000-nat.o): Depend on xcoffsolib.h.
1647 * config/rs6000/rs6000.mh (NATDEPFILES): Move xcoffread.o ...
1648 * config/rs6000/rs6000.mt (TDEPFILES): ... to here.
1649 * xcoffsolib.c (xcoff_relocate_symtab_hook): Define and initialize.
1650 (solib_info): Call xcoff_relocate_symtab via the hook.
1651 (sharedlibrary_command): Ditto.
1652 * xcoffread.c: Remove all FAKING_RS6000 comments and defines.
1653 (xcoff_add_toc_to_loadinfo_hook): Define and initialize here.
1654 (xcoff_init_loadinfo_hook): Define and initialize here.
1655 (scan_xcoff_symtab): Call xcoff_add_toc_to_loadinfo via the hook.
1656 (xcoff_initial_scan): Call xcoff_init_loadinfo via the hook.
1657 * xcoffsolib.h (xcoff_relocate_symtab_hook): Declare extern func.
1658 * rs6000-tdep.c (_initialize_rs6000_tdep): Add initializations
1659 of xcoff_add_toc_to_loadinfo_hook and xcoff_init_loadinfo_hook.
1660 * rs6000-nat.c (_initialize_core_rs6000): Add initialization
1661 of xcoff_relocate_symtab_hook.
1662
1663 Tue Apr 30 13:22:02 1996 Michael Meissner <meissner@tiktok.cygnus.com>
1664
1665 * configure (powerpcle-*-solaris*): Add Solaris support.
1666
1667 * config/powerpc/{solaris.m[ht],tm-solaris.h}: New files for
1668 Solaris support.
1669
1670 Mon Apr 29 16:17:31 1996 Dawn Perchik <dawn@cygnus.com>
1671
1672 * c-valprint.c (c_val_print): Fix printing for arrays defined
1673 with 0 length.
1674
1675 Sun Apr 28 15:08:05 1996 Stan Shebs <shebs@andros.cygnus.com>
1676
1677 Support for bi-endian remote breakpoints.
1678 * remote.c (big_break_insn, little_break_insn): New globals.
1679 (break_insn): Remove.
1680 (remote_insert_breakpoint, remote_remove_breakpoint): Use own
1681 code if REMOTE_BREAKPOINT defined, otherwise call memory
1682 breakpoint functions.
1683 * config/sh/tm-sh.h (REMOTE_BREAKPOINT): Remove.
1684 (BIG_REMOTE_BREAKPOINT, LITTLE_REMOTE_BREAKPOINT): Define.
1685
1686 * mon960-rom.c (mon960_cmds): Remove forward decl.
1687 (mon960_load): Use current_monitor instead of mon960_cmds.
1688 (mon960_regnames): Remove backslashes from line ends.
1689 (_initialize_mon960): Fix documentation string.
1690
1691 Sun Apr 28 12:10:35 1996 Fred Fish <fnf@cygnus.com>
1692
1693 * symfile.h (psymbol_allocation_list): Expand comments which
1694 describe the psymbol allocation list and how each field is
1695 used.
1696
1697 Sun Apr 28 03:44:30 1996 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
1698
1699 * breakpoint.c (delete_breakpoint): Fix bpt->val, bpt->exp
1700 storage leaks.
1701 (breakpoint_re_set_one): Fix b->exp, b->val, b->cond storage leaks.
1702
1703 * infcmd.c (run_command), solib.c (locate_base): Check for
1704 target_has_execution in addition to inferior_pid, a core file
1705 from a threaded program is yielding a non-zero inferior_pid.
1706
1707 * sparc-tdep.c (get_saved_register): Handle window registers
1708 in a dummy frame correctly.
1709
1710 Sat Apr 27 20:38:32 1996 Fred Fish <fnf@cygnus.com>
1711
1712 * Makefile.in (CLIBS): Move $(MMALLOC) past all other libs,
1713 so that anything that wants an allocation function not yet pulled
1714 in, will get it from mmalloc rather than a system library.
1715 * Makefile.in (INSTALLED_LIBS): Reorder to match order of CLIBS,
1716 to avoid surprising results when used.
1717
1718 Sat Apr 27 00:12:05 1996 Dawn Perchik (dawn@cygnus.com)
1719
1720 * stabsread.c: Changes and bug fixes for cfront support.
1721 Fix bug for class data members.
1722 Fix parsing bug when no base classes exist.
1723 Fix memory bug - allocate space for cplusplus specific info.
1724 Add support for static data.
1725 Add prototypes for static functions.
1726 Enhance comments to show what each function expects to parse.
1727 Cleanup code.
1728 * stabsread.c(resolve_cont),dbxread.c(resolve_cont): Rename
1729 function to resolve_cfront_continuation.
1730
1731 Fri Apr 26 23:58:26 1996 Jeffrey A Law (law@cygnus.com)
1732
1733 * infrun.c (wait_for_inferior): Call registers_changed when
1734 restarting the inferior to get over a nullified instruction.
1735
1736 Tue Apr 24 12:12:55 1996 Dawn Perchik (dawn@cygnus.com)
1737
1738 * dbxread.c,stabsread.c,gdbtypes.c,partial-stab.h,valops.c:
1739 Add new support for parsing cfront stabs.
1740
1741 Wed Apr 24 00:32:55 1996 Jeffrey A Law (law@cygnus.com)
1742
1743 * infrun.c (wait_for_inferior): Move "have_waited" label
1744 outside of #ifdef conditionals. Don't trash the wait status
1745 if we get a signal and the current instruction is nullified.
1746
1747 Mon Apr 22 20:17:01 1996 Fred Fish <fnf@cygnus.com>
1748
1749 * Makefile.in (VERSION): Bump version number to 4.16.1.
1750 * NEWS: Update for 4.16 release.
1751
1752 Mon Apr 22 16:32:29 1996 Stan Shebs <shebs@andros.cygnus.com>
1753
1754 * monitor.h: Clean up comment formatting.
1755 (current_monitor): Remove decl.
1756 (LOADTYPES, LOADPROTOS, INIT_CMD, etc): Remove definitions.
1757 (push_monitor, SREC_SIZE): Remove.
1758 * monitor.c: Expand old macro into current_monitor derefs
1759 everywhere.
1760 * remote-os9k.c (current_monitor): Remove definition.
1761
1762 Mon Apr 22 14:54:45 1996 Mark Alexander <marka@superball.cygnus.com>
1763
1764 * corefile.c (specify_exec_file_hook): Allow arbitrary number of
1765 hooks.
1766 (call_extra_exec_file_hooks): New function.
1767 * h8300-tdep.c: Lint; add .h files to provide missing declarations,
1768 remove unused variables.
1769 (set_machine_hook): New function.
1770 (_initialize_h8300m): Initialize it.
1771
1772 Fri Apr 19 15:03:49 1996 Ian Lance Taylor <ian@cygnus.com>
1773
1774 * remote-mips.c (encoding): Don't specify size, to avoid bug in
1775 SunOS native compiler.
1776
1777 Thu Apr 18 18:46:57 1996 Stan Shebs <shebs@andros.cygnus.com>
1778
1779 * monitor.c: Use int rather than LONGEST for values, since
1780 the formatting strings are not prepared to accept long longs.
1781
1782 Wed Apr 17 20:17:27 1996 Doug Evans <dje@canuck.cygnus.com>
1783
1784 * arm-tdep.c (initialize_arm_tdep): Make apcs32 a `zinteger'.
1785
1786 Tue Apr 16 17:38:23 1996 Stu Grossman (grossman@critters.cygnus.com)
1787
1788 * corelow.c (add_to_thread_list): Make sure reg_sect is non-null
1789 before de-referencing it. Prevents deref of NULL pointer if core
1790 file lacks .reg section.
1791 * defs.h: Rename floatformat_{to from}_long_double to
1792 floatformat_{to from}_doublest. Get rid of FLOATFORMAT_{TO
1793 FROM}... macros.
1794 * findvar.c (extract_floating store_floating): Change all refs to
1795 FLOATFORMAT_{FROM TO}... to floatformat_{from to}_doublest.
1796 * utils.c: Change floatformat_{to from}_long_double to
1797 floatformat_{to from}_doublest cuz the new routines will use
1798 whatever size (double or long double) is appropriate.
1799 * config/i960/tm-i960.h (REGISTER_CONVERT_TO_VIRTUAL
1800 REGISTER_CONVERT_TO_RAW): Change FLOATFORMAT... macros to
1801 floatformat... routine calls.
1802
1803 Mon Apr 15 16:34:11 1996 Per Bothner <bothner@kalessin.cygnus.com>
1804
1805 * stabsread.c (read_type): Move handling of '@' from type
1806 number handling to handling of types proper (as emitted by gcc!).
1807 For typedefs, allocate the typedef type before reading its
1808 definition, to properly handling recursive types.
1809
1810 Mon Apr 15 11:19:26 1996 Jeffrey A Law (law@cygnus.com)
1811
1812 * ch-exp.c (calculate_array_length): Fix prototype.
1813
1814 Sat Apr 13 14:21:16 1996 Stu Grossman (grossman@critters.cygnus.com)
1815
1816 * remote-nindy.c (nindy_open): Acquire more target state so that
1817 user can attach to a previously running program.
1818 * (nindy_fetch_registers nindy_store_registers): Get rid of fp
1819 conversion code. That's all handled in {extract store}_floating
1820 now.
1821 * utils.c (floatformat_to_double): Don't bias exponent when
1822 handling zero's, denorms or NaNs.
1823 * config/i960/tm-i960.h (REGISTER_CONVERT_TO_VIRTUAL
1824 REGISTER_CONVERT_TO_RAW): Change to using DOUBLST and
1825 FLOATFORMAT_TO/FROM_DOUBLEST macros.
1826 * config/i960/tm-nindy960.h: Undefine
1827 REGISTER_CONVERT_TO_VIRTUAL, REGISTER_CONVERT_TO_RAW, and
1828 REGISTER_CONVERTIBLE. These are no longer necessary now that all
1829 the magic happens in extract/store_floating.
1830
1831 Sat Apr 13 02:58:02 1996 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
1832
1833 * eval.c (evaluate_subexp_standard): Report error when attempting to
1834 evaluate subscripts for types which cannot be subscripted.
1835
1836 * valarith.c (value_x_binop, value_x_unop): Add noside parameter.
1837 Return a zero value with the return type of the member function
1838 if noside is EVAL_AVOID_SIDE_EFFECTS instead of calling the member
1839 function.
1840 * values.h (value_x_binop, value_x_unop): Update prototypes
1841 accordingly.
1842 * eval.c (evaluate_subexp_standard): Update all callers of
1843 value_x_binop, value_x_unop accordingly.
1844
1845 * valarith.c (value_neg, value_complement): Perform ANSI C/C++
1846 integral promotion on operands.
1847
1848 Fri Apr 12 13:19:27 1996 Fred Fish <fnf@cygnus.com>
1849
1850 * README: Update for 4.16 release.
1851 * configure.in (AC_CHECK_FUNCS): Also check for sbrk.
1852 * configure: Regenerate with autoconf.
1853 * config.in: Regenerate with autoheader.
1854 * main.c (main): Only use sbrk() when HAVE_SBRK is defined.
1855 * top.c (command_loop): Ditto.
1856
1857 Fri Apr 12 09:45:29 1996 Stu Grossman (grossman@critters.cygnus.com)
1858
1859 * defs.h: Define TARGET_{FLOAT DOUBLE LONG_DOUBLE}_FORMAT
1860 defaults for bi-endian targets. Replace function pointers for
1861 floatformat routines with macros. No need for these to be runtime
1862 selectable.
1863 * findvar.c: Get rid of floatformat function pointers. Use
1864 macros in extract_floating and store_floating.
1865 * remote-nindy.c (nindy_fetch_registers nindy_store_registers):
1866 Use floatformat macros.
1867
1868 Thu Apr 11 21:28:02 1996 Fred Fish <fnf@cygnus.com>
1869
1870 From: Miles Bader <miles@gnu.ai.mit.edu>
1871 * configure.in (AC_CHECK_HEADERS): check for endian.h.
1872 Use AC_CHECK_TOOL to find AR & RANLIB. Add AC_PROG_AWK.
1873 Add host & target cases for i[345]86-*-gnu*.
1874 * config.in: Regenerate with autoheader.
1875 * configure: Regenerate with autoconf.
1876 * Makefile.in (AR, AWK): Set from corresponding autoconf substs.
1877 (init.c): Don't scan mig-generated files.
1878 * defs.h (endian.h): Include if HAVE_ENDIAN_H defined.
1879 * config/nm-m3.h (ATTACH_NO_WAIT): Define.
1880 * infcmd.c (attach_command): Use "#ifndef ATTACH_NO_WAIT"
1881 rather than "#ifndef MACH".
1882
1883 Thu Apr 11 18:49:42 1996 Stan Shebs <shebs@andros.cygnus.com>
1884
1885 * remote.c (remotewritesize): New GDB variable, controls size
1886 of memory packets sent to the target.
1887
1888 Thu Apr 11 13:47:52 1996 Stu Grossman (grossman@critters.cygnus.com)
1889
1890 * dcache.c: Add prototypes. Make many functions static.
1891 * (dcache_peek dcache_fetch dcache_poke): Make dcache_fetch and
1892 dcache_poke call dcache_xfer_memory directly in order to fix
1893 problems with turning off dcache. dcache_peek is now unnecessary,
1894 so it goes away.
1895
1896 * defs.h: Define new macros HOST_{FLOAT DOUBLE LONG_DOUBLE}_FORMAT
1897 and TARGET_{FLOAT DOUBLE LONG_DOUBLE}_FORMAT to specify a pointer
1898 to a struct floatformat. This allows for better handling of
1899 targets whose floating point formats differ from the host by more
1900 than just byte order.
1901 * (floatformat_to_long_double floatformat_from_long_double):
1902 Prototypes for new functions in utils.c.
1903 * (floatformat_to_doublest floatformat_from_doublest): Prototypes
1904 for pointers to floating point conversion functions. The actual
1905 function uses either double or long double if the host supports it.
1906 * findvar.c (floatformat_to_doublest floatformat_from_doublest):
1907 Initialize to point at correct function depending on HAVE_LONG_DOUBLE.
1908 * (extract_floating store_floating): Rewrite. Now, if host fp
1909 format is the same as the target, we just do a copy. Otherwise,
1910 we call floatformat_{to from}_doublest.
1911 * remote-nindy.c (nindy_xfer_inferior_memory): Change param
1912 `write' to `should_write'.
1913 * utils.c (floatformat_to_long_double
1914 floatformat_from_long_double): New routines that implement long
1915 double versions of functions in libiberty/floatformat.c.
1916 * config/i960/tm-i960.h (TARGET_LONG_DOUBLE_FORMAT): Define this for
1917 i960 extended real (80 bit) numbers.
1918 * nindy-share/nindy.c (ninMemGet ninMemPut): Return number of bytes
1919 actually read or written.
1920
1921 Wed Apr 10 02:56:06 1996 Wilfried Moser (Alcatel) <moser@rtl.cygnus.com>
1922
1923 * ch-valprint.c (chill_val_print): Remove call to calculate_array_length.
1924 (calculate_array_length): Move function from here ...
1925
1926 * ch-exp.c (calculate_array_length): ... to here.
1927 (parse_primval): If we have a symbol with an array type
1928 and the length is 0, call calculate_array_length.
1929
1930 Tue Apr 9 01:23:05 1996 Wilfried Moser (Alcatel) <moser@rtl.cygnus.com>
1931
1932 * eval.c (evaluate_subexp_standard): In case of TYPE_CODE_SET:
1933 Add some checks for powerset compatibility.
1934
1935 * valops.c (value_slice): Use lowbound instead of lowerbound for
1936 call to slice_range_type to get correct bounds.
1937
1938 Mon Apr 8 12:53:56 1996 Fred Fish <fnf@cygnus.com>
1939
1940 * Makefile.in (scm-exp.o, scm-lang.o, scm-valprint.o): Add targets and
1941 dependencies.
1942 * scm-lang.c (gdb_string.h): Include.
1943 * objfiles.c (add_to_objfile_sections): Cast second arg of obstack_grow
1944 call to correct type (char *).
1945 * cp-valprint.c (cp_print_static_field): Ditto.
1946 * somsolib.c (som_solib_create_inferior_hook): Add a declaration
1947 for external find_unwind_entry function (from hppa-tdep.c).
1948 * remote-pa.c (remote_write_bytes, remote_read_bytes): Change
1949 type of second arg to "char *" to be type compatible with
1950 dcache.
1951 (remote_wait): Cast second arg to strtol to correct type.
1952 * hppa-tdep.c (compare_unwind_entries): Change argument types to
1953 "const void *" to be type compatible with qsort, and then
1954 assign to local args prior to use.
1955
1956 Mon Apr 8 15:35:52 1996 Jeffrey A Law (law@cygnus.com)
1957
1958 * infptrace.c (kill_inferior): Remove call to "kill"; update
1959 comments.
1960
1961 Mon Apr 8 14:05:07 1996 Geoffrey Noer <noer@cygnus.com>
1962
1963 * remote-e7000.c: don't append :23 to target port if __WIN32__
1964 is defined (it's WinGDB).
1965
1966 Sun Apr 7 22:34:29 1996 Fred Fish <fnf@cygnus.com>
1967
1968 From: Miles Bader <miles@gnu.ai.mit.edu>
1969 * gnu-nat.c, gnu-nat.h, msg.defs, exc_request.defs, i386gnu-nat.c,
1970 msg_reply.defs, notify.defs, process_reply.defs, reply_mig_hack.awk,
1971 config/nm-gnu.h, config/i386/{i386gnu.mh, i386gnu.mt, nm-gnu.h,
1972 m-i386gnu.h, xm-i386gnu.h}: New files for GNU hurd.
1973
1974 Sun Apr 7 13:32:41 1996 Fred Fish <fnf@cygnus.com>
1975
1976 * configure.in (case host): Add i386sco5 host.
1977 * configure: Regenerate.
1978
1979 From: Robert Lipe <robertl@dgii.com>
1980 Add support for SCO OpenServer 5 (a.k.a. 3.2v5*) This
1981 target is an SVR3.2 with COFF, ELF, and shared libes, but
1982 no /proc.
1983 * config/i386/i386sco5.mh: New file.
1984 * config/i386/nm-i386sco5.h: New file.
1985
1986 Sat Apr 6 08:55:22 1996 Fred Fish <fnf@cygnus.com>
1987
1988 * bcache.c (bcache): When size of chunk to cache is exactly equal to
1989 BCACHE_MAXLENGTH, stash chunk as unique copy.
1990
1991 Sat Apr 6 00:46:26 1996 Fred Fish <fnf@cygnus.com>
1992
1993 * symfile.c (INLINE_ADD_PSYMBOL): Remove ifdef.
1994 (add_psymbol_to_list): Add an arg for passing CORE_ADDR values and
1995 use it, rather than calling add_psymbol_addr_to_list.
1996 (add_psymbol_addr_to_list): Delete.
1997 (add_psymbol_to_list): Make psymbol static to avoid random data in
1998 gaps due to alignment of structure members.
1999 * symfile.h (INLINE_ADD_PSYMBOL, ADD_PSYMBOL_TO_LIST,
2000 ADD_PSYMBOL_ADDR_TO_LIST): Remove. Real world tests show no
2001 performance improvements by inlining via complicated macros and
2002 they just make gdb larger and harder to maintain.
2003 * dwarfread.c (add_enum_psymbol): Replace ADD_PSYMBOL_TO_LIST
2004 and/or ADD_PSYMBOL_ADDR_TO_LIST macro(s) with call to
2005 add_psymbol_to_list with appropriate long or CORE_ADDR args.
2006 (add_partial_symbol): Ditto.
2007 * partial-stab.h: Ditto.
2008 * os9kread.c (read_os9k_psymtab): Ditto
2009 * mdebugread.c (parse_partial_symbols): Ditto.
2010 (handle_psymbol_enumerators): Ditto.
2011 (demangle.h): Include.
2012 * hpread.c (hpread_build_psymtabs): Ditto.
2013 (hpread_build_psymtabs): Ditto.
2014 (demangle.h): Include
2015
2016 start-sanitize-gdbtk
2017 Fri Apr 5 13:44:40 1996 Stan Shebs <shebs@andros.cygnus.com>
2018
2019 * gdbtk.c (running_now): New global variable.
2020 (gdb_cmd): Test it before executing any command.
2021 (gdbtk_call_command): Set it when inferior is running.
2022 * gdbtk.tcl (gdbtk_tcl_busy, gdbtk_tcl_idle): Enable and
2023 disable interaction with command window's text appropriately.
2024
2025 Fri Apr 5 13:25:42 1996 Michael Meissner <meissner@tiktok.cygnus.com>
2026
2027 * gdbtk.c (SIOCSPGRP, linux): If on Linux, undef SIOCSPGRP, since
2028 some versions of the kernel don't support it.
2029 end-sanitize-gdbtk
2030
2031 Thu Apr 4 20:16:55 1996 Fred Fish <fnf@cygnus.com>
2032
2033 * configure.in: Check for setpgid function.
2034 * config.in: Regenerate with autoheader.
2035 * configure: Regenerate with autoconf.
2036 * inflow.c (_initialize_inflow): Only try to use _SC_JOB_CONTROL
2037 if it is actually defined.
2038 (gdb_setpgid): Use HAVE_SETPGID.
2039 * ch-exp.c: Change include of <string.h> to "gdb_string.h".
2040 * c-exp.y, f-exp.y, m2-exp.y: Ditto.
2041 * c-exp.y, serial.c: Include <ctype.h>.
2042 * config/m68k/nm-news.h: Add typedef for pid_t which is
2043 apparently missing from <sys/types.h>. Enclose entire
2044 file in NM_NEWS_H ifndef and define when included.
2045 * config/mips/nm-news-mips.h: Ditto.
2046 * config/m68k/tm-m68k.h (REGISTER_CONVERT_TO_VIRTUAL,
2047 REGISTER_CONVERT_TO_RAW): Change name of temporary variable.
2048
2049 Thu Apr 4 19:04:18 1996 Stan Shebs <shebs@andros.cygnus.com>
2050
2051 * arm-xdep.c: Move native-specific code to here from arm-tdep.c.
2052 * arm-tdep.c (arm_apcs_32): New global.
2053 (arm_addr_bits_remove, arm_saved_pc_after_call,
2054 arm_push_dummy_frame, arm_pop_frame): New functions.
2055 (arm_skip_prologue): Updated version from Richard Earnshaw.
2056 (_initialize_arm_tdep): Add set/show "apcs32".
2057 * config/arm/tm-arm.h (ADDR_BITS_REMOVE): Call
2058 arm_addr_bits_remove.
2059 (SAVED_PC_AFTER_CALL): Call arm_saved_pc_after_call.
2060 (frame_find_saved_regs): Declare properly.
2061 (PUSH_DUMMY_FRAME): Call arm_push_dummy_frame.
2062 (POP_FRAME): Call arm_pop_frame, use ADDR_BITS_REMOVE instead of
2063 explicit mask.
2064 * config/arm/nm-arm.h: New file.
2065 * config/arm/xm-arm.h (KERNEL_U_ADDR, FETCH_INFERIOR_REGISTERS):
2066 Move definitions to nm-arm.h.
2067 * config/arm/arm.mh (NAT_FILE): Define.
2068
2069 * symfile.c (generic_load): Initialize data_count properly.
2070
2071 Thu Apr 4 17:17:53 1996 Fred Fish <fnf@cygnus.com>
2072
2073 * symmisc.c (print_objfile_statistics): Print memory used by
2074 psymbol cache obstack.
2075
2076 Thu Apr 4 15:43:07 1996 Stan Shebs <shebs@andros.cygnus.com>
2077
2078 * symfile.c (report_transfer_performance): New function.
2079 (generic_load): Call it to report transfer rate.
2080 * remote-e7000.c (e7000_load): Ditto.
2081
2082 Mon Apr 1 16:31:00 1996 Stan Shebs <shebs@andros.cygnus.com>
2083
2084 * mpw-make.sed: Change references to config.h to be in objdir,
2085 edit out rules to rebuild config.h.
2086
2087 Mon Apr 1 08:32:23 1996 Fred Fish <fnf@cygnus.com>
2088
2089 * hppa-tdep.c (hppa_pop_frame): Call clear_proceed_status before
2090 proceeding.
2091
2092 Sun Mar 31 16:15:43 1996 Fred Fish <fnf@cygnus.com>
2093
2094 * hppah-nat.c (store_inferior_registers, store_inferior_registers,
2095 fetch_register, child_xfer_memory): Use call_ptrace function supplied
2096 by infptrace.c rather than calling ptrace directly.
2097
2098 Sun Mar 31 15:39:00 1996 Stan Shebs <shebs@andros.cygnus.com>
2099
2100 * mon960-rom.c: Cleanups and elimination of unused code,
2101 clarify documentation string.
2102 (mon960_serial, mon960_ttyname): Remove.
2103 * config/i960/tm-mon960.h (ADDITIONAL_OPTIONS,
2104 ADDITIONAL_OPTION_CASES, ADDITIONAL_OPTION_HELP): Remove.
2105
2106 Sat Mar 30 11:00:22 1996 Fred Fish <fnf@cygnus.com>
2107
2108 * configure.in: Check whether printf family supports printing
2109 long doubles or not and define PRINTF_HAS_LONG_DOUBLE if so.
2110 * acconfig.h: Provide default undef for PRINTF_HAS_LONG_DOUBLE.
2111 * configure: Regenerate.
2112 * valprint.c (print_floating): Use PRINTF_HAS_LONG_DOUBLE.
2113 * c-exp.y (parse_number): Use PRINTF_HAS_LONG_DOUBLE.
2114 * configure.in: Fix have_gregset and have_fpregset autoconf
2115 variable names so that they match the pattern required to
2116 cache them.
2117
2118 Fri Mar 29 21:39:56 1996 Fred Fish <fnf@cygnus.com>
2119
2120 * core-aout.c (fetch_core_registers): Cast core_reg_size to int
2121 before testing against reg_ptr.
2122 * eval.c (evaluate_subexp_standard): Cast type of
2123 TYPE_FN_FIELD_VOFFSET to int.
2124 * findvar.c (extract_signed_integer, extract_unsigned_integer,
2125 extract_long_unsigned_integer): Cast type of sizeof to int.
2126 * values.c (unpack_field_as_long, modify_field): Ditto.
2127 * valops.c (value_assign, call_function_by_hand): Ditto.
2128 * infcmd.c (do_registers_info): Ditto.
2129 * ser-tcp.c (tcp_open): Ditto.
2130 * remote.c (putpkt): Ditto.
2131 * dcache.c (dcache_peek): Ditto.
2132 * dcache.c (dcache_poke): Ditto.
2133 * m2-exp.y (yylex): Ditto.
2134 * gnu-regex.c (re_match_2): Ditto.
2135 * f-lang.c (ADD_BF_SYMNUM, saved_bf_list_end, tmp_bf_ptr): Ifdef
2136 out unused macro definition and variables.
2137 * inftarg.c (proc_wait): Move from main.c to here, and make static.
2138 * valprint.c (val_print_string): Change bufsize from int to unsigned.
2139 * main.c (wait.h): Include.
2140 * top.c (command_line_input): Remove unused variable "c".
2141 * f-typeprint.c (f_type_print_varspec_prefix): Add missing enum
2142 value TYPE_CODE_TYPEDEF to switch statement.
2143 (f_type_print_varspec_suffix): Add missing enum value
2144 TYPE_CODE_TYPEDEF to switch statement.
2145 * ch-exp.c (parse_primval): Add remaining enumeration values to
2146 switch statement, with no specific action.
2147 (ch_lex): Add LOC_UNRESOLVED in switch statement.
2148 (pushback_token): Ifdef out, since code using it is ifdef'd out.
2149 * stabsread.c (cleanup_undefined_types): Remove unused label
2150 "badtype".
2151 * objfiles.h (print_symbol_bcache_statistics): Add prototype.
2152 * maint.c (objfiles.h): Include.
2153 (maintenance_print_statistics): Remove unused variable "temp".
2154 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Remove
2155 unused variable "found_file_symbol".
2156 * m2-exp.y (yylex): Add LOC_UNRESOLVED case to switch.
2157 * language.c (lang_bool_type): Use existing function local type
2158 variable rather than create block local variables.
2159 * solib.c (disable_break): Enclose in ifndef SVR4_SHARED_LIBS.
2160 * infptrace.c (wait.h, command.h): Include.
2161 * ser-tcp.c (gdb_string.h): Include
2162 * i386-tdep.c (codestream_seek): Change "place" to CORE_ADDR.
2163 (i386_get_frame_setup): Change "pc" from int to CORE_ADDR.
2164 * command.c (complete_on_enum): Make assignment used as truth value
2165 explictly check against NULL.
2166 (wait.h): Include.
2167 * infrun.c (wait_for_inferior): Ifdef out prologue_pc since code
2168 that uses it is ifdef'd out.
2169 * parser-defs.h: Add prototype for write_dollar_variable.
2170 * infrun.c: Add prototype for write_pc_pid.
2171 * breakpoint.h: Add prototype for re_enable_breakpoints_in_shlibs.
2172 * symmisc.c (bcache.h): Include.
2173 * bcache.h: Add prototype for print_bcache_statistics.
2174 * symfile.c: Include <time.h>.
2175 * printcmd.c (print_scalar_formatted): Change len to unsigned int.
2176 * valarith.c (value_equal): Cast result of TYPE_LENGTH to int.
2177 * valarith.c (value_binop): Change result_len, promoted_len1,
2178 and promoted_len2 to unsigned int.
2179 * valarith.c (value_subscripted_rvalue): Change elt_offs and
2180 elt_size to unsigned int.
2181 * valops.c (value_array): Change typelength to unsigned int.
2182 (destructor_name_p): Change len to unsigned int.
2183 * scm-lang.h (scm_parse): Add prototype for scm_unpack.
2184 * symfile.c (decrement_reading_symtab): Change return type to void.
2185 * valarith.c (value_subscript): Remove unused variable "word".
2186 (value_subscript): Remove unused variable "tint".
2187 * valops.c (auto_abandon): Ifdef out, since code using it is also
2188 ifdef'd out.
2189 * eval.c (init_array_element): Remove unused variable "val".
2190 * Makefile.in (values.o): Depends on scm-lang.h.
2191 (command.o): Depends upon wait_h.
2192 (ser-tcp.o): Depends upon gdb_string.h.
2193 (infptrace.o): Depends upon wait_h and command_h.
2194 (maint.o): Depends on objfiles.h and symfile.h.
2195 * values.c (allocate_repeat_value): Remove unused variable
2196 "element_type".
2197 (scm-lang.h): Include.
2198 * breakpoint.c (create_longjmp_breakpoint): Enclose in
2199 GET_LONGJMP_TARGET define, unused otherwise.
2200 * config/i386/nm-linux.h: Add prototypes for i386_insert_watchpoint,
2201 i386_remove_watchpoint and i386_stopped_by_watchpoint.
2202
2203 Thu Mar 28 12:53:19 1996 Doug Evans <dje@canuck.cygnus.com>
2204
2205 * configure.in (sparc64-*-solaris2*): Delete.
2206 Stick with sparc-*-solaris2*.
2207 * configure: Regenerated.
2208
2209 Thu Mar 28 06:51:26 1996 Fred Fish <fnf@cygnus.com>
2210
2211 * valops.c (value_assign): Make copy of internal variable value
2212 before returning it as a new value, since it is owned by the
2213 internal variable and will be freed along with it.
2214
2215 Wed Mar 27 08:36:17 1996 Jeffrey A Law (law@cygnus.com)
2216
2217 * From Peter Schauer.
2218 * breakpoint.c (breakpoint_re_set_one): Keep temporary
2219 breakpoints bp_until, bp_finish, bp_watchpoint_cope, bp_call_dummy
2220 and bp_step_resume in case breakpoint_re_set_one is called due
2221 to a step over a dlopen call.
2222 * infrun.c (wait_for_inferior): Always remove breakpoints from
2223 inferior in BPSTAT_WHAT_CHECK_SHLIBS case.
2224
2225 Tue Mar 26 13:15:32 1996 Fred Fish <fnf@cygnus.com>
2226
2227 * config/mips/tm-mips.h (COERCE_FLOAT_TO_DOUBLE): Only prefer
2228 non-prototyped case over prototyped case for C.
2229 * config/pa/tm-hppa.h (COERCE_FLOAT_TO_DOUBLE): Ditto.
2230
2231 Sat Mar 23 17:24:28 1996 Fred Fish <fnf@cygnus.com>
2232
2233 * os9kread.c (os9k_process_one_symbol): Note nonportable
2234 assumption that an int can hold a char *.
2235
2236 * bcache.h (struct hashlink): Wrap data[] inside union with
2237 double to force longest alignment.
2238 (BCACHE_DATA): New macro to access data[].
2239 (BCACHE_ALIGNMENT): New macro to get offset to data[].
2240 * bcache.c (lookup_cache, bcache): Use BCACHE_DATA to get
2241 address of cached data. Use BCACHE_ALIGNMENT to compute
2242 amount of space to allocate for each hashlink struct.
2243
2244 Sat Mar 23 12:14:02 1996 Fred Fish <fnf@cygnus.com>
2245
2246 * ch-lang.c (evaluate_subexp_chill): Fix typo.
2247
2248 Thu Mar 21 08:27:19 1996 Fred Fish <fnf@cygnus.com>
2249
2250 * Makefile.in (VERSION): Bump version to 4.15.3
2251
2252 Thu Mar 21 10:56:41 1996 Ian Lance Taylor <ian@cygnus.com>
2253
2254 * config.in: Rename from config.h.in.
2255 * configure.in: Call AC_CONFIG_HEADER with config.h:config.in.
2256 Change CONFIG_HEADERS test in AC_OUTPUT accordingly.
2257 * configure: Rebuild.
2258 * Makefile.in (stamp-h): Depend upon config.in, not config.h.in.
2259 Set CONFIG_HEADERS to config.h:config.in.
2260
2261 Tue Mar 19 12:47:51 1996 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
2262
2263 * partial-stab.h (case N_ENDM): Finish current partial symbol
2264 table for Solaris 2 cc.
2265
2266 Tue Mar 19 10:39:15 1996 Jeffrey A Law (law@cygnus.com)
2267
2268 * rs6000-nat.c (exec_one_dummy_insn): Don't clobber the
2269 PC in the registers array. From Peter Schauer.
2270
2271 Mon Mar 18 13:47:09 1996 Fred Fish <fnf@cygnus.com>
2272
2273 * symfile.c (reread_symbols): Reinitialize bcache struct
2274 members to zero using memset. Also use memset to reinit
2275 global_psymbols and static_psymbols, rather than explicitly
2276 resetting each structure member.
2277
2278 Sat Mar 16 19:47:36 1996 Fred Fish <fnf@cygnus.com>
2279
2280 * configure.in: Add fragment to create stamp-h.
2281
2282 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
2283 * configure.in (AC_CHECK_HEADERS): Check for link.h.
2284 * configure: Regenerate with autoconf.
2285 * config.h.in: Regenerate with autoheader.
2286 * config/i386/nm-linux.h: Include solib.h only if HAVE_LINK_H
2287 is defined.
2288 * solib.c: Exclude most of the code if HAVE_LINK_H is not defined.
2289 * config/i386/linux.mh: Reinstate XM_CLIBS, it is needed for
2290 older a.out based systems.
2291
2292 Sat Mar 16 16:45:43 1996 Fred Fish <fnf@cygnus.com>
2293
2294 * config.h.in: New file.
2295 * acconfig.h: New file, for autoheader.
2296 * configure.in (AC_CONFIG_HEADER): Add, generate config.h.
2297 * configure: Regenerate.
2298 * Makefile.in (defs_h): Add config.h
2299 (distclean): Remove config.h and stamp-h during distclean.
2300 (config.h, stamp-h): New targets to remake config.h when necessary.
2301 * defs.h (config.h): Include before any other includes or defines.
2302 * i386-tdep.c (gdb_string.h): Move include after include of defs.h.
2303 * i386v4-nat.c (defs.h): Include before testing HAVE_SYS_PROCFS_H.
2304
2305 Sat Mar 16 14:55:27 1996 Fred Fish <fnf@cygnus.com>
2306
2307 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
2308 * Makefile.in (INSTALLED_LIBS): Make sure that @LIBS@ will not
2309 result in an empty line, to work around a bug in native Ultrix 4.4
2310 and OSF/1-3.2C make.
2311
2312 Sat Mar 16 13:33:17 1996 Fred Fish <fnf@cygnus.com>
2313
2314 * configure.in: Add gdbserver to configdirs under linux.
2315 * configure: Regenerate.
2316
2317 Fri Mar 15 12:06:58 1996 J.T. Conklin <jtc@rtl.cygnus.com>
2318
2319 * config/i386/nm-nbsd.h (FLOAT_INFO): Comment out.
2320 * config/i386/tm-nbsd.h (NUM_REGS): Define.
2321
2322 Thu Mar 14 10:31:18 1996 Jeffrey A Law (law@cygnus.com)
2323
2324 * solib.c (solib_break_names): Add _r_debug_state for
2325 vanilla SVR4 implementations. From Peter Schauer.
2326
2327 Mon Mar 11 14:24:57 1996 Dawn Perchik <dawn@critters.cygnus.com>
2328
2329 * mon960-rom.c: New file; support mon960 rom monitor on i960.
2330 * monitor.c (monitor_debug): Change remotedebug to buffer strings.
2331 * monitor.c (monitor_open): Add test for flag MO_NO_ECHO_ON_OPEN before
2332 epecting prompt and echo during open.
2333 * monitor.c (monitor_stop): Add test for flag MO_SEND_BREAK_ON_OPEN to
2334 determine if break should be sent as stop command.
2335 * monitor.h: Add flags MO_NO_ECHO_ON_OPEN and MO_SEND_BREAK_ON_OPEN.
2336 * i960-tdep.c (mon960_frame_chain_valid): New function for getting
2337 stack frame on mon960.
2338 * Makefile.in: Add mon960 files.
2339 * configure.in: Changed i960-*-coff* and i960-*-elf* to target mon960;
2340 added i960-nindy-coff* and i960-nindy-elf* for target nindy.
2341 * configure: Regenerated.
2342 * config/i960/mon960.mt, config/i960/tm-mon960.h: New files;
2343 support mon960 rom monitor on i960.
2344
2345 Mon Mar 11 11:02:47 1996 Steve Chamberlain <sac@slash.cygnus.com>
2346
2347 With Michael Snyder:
2348 * i386-tdep.c (skip_trampoline_code): Fix strncmp length.
2349 * win32-nat.c (CHECK, DEBUG*, debug_*): New.
2350 (handle_load_dll): Don't reload symbols.
2351 (handle_exception): Use the DEBUG_* names.
2352 (child_wait): Add DEBUG_* code.
2353 (_initialize_inftarg): Add new commands to set debug_ names.
2354
2355 Mon Mar 11 09:19:58 1996 Jeffrey A Law (law@cygnus.com)
2356
2357 * From Peter Schauer:
2358 * breakpoint.c (insert_breakpoints): Use ALL_BREAKPOINTS_SAFE.
2359 (bpstat_stop_status): Likewise.
2360 (remove_solib_event_breakpoints): Likewise.
2361 (clear_momentary_breakpoints): Likewise.
2362 (re_enable_breakpoints_in_shlibs): Don't reenable a breakpoint
2363 if we still can't read the memory for that breakpoint.
2364 (mention): Add bp_shlib_event case to keep gcc quiet.
2365
2366 Fri Mar 8 12:08:12 1996 Jeffrey A Law (law@cygnus.com)
2367
2368 * breakpoint.h (enum enable): New enum shlib_disabled for
2369 shared library breakpoints that have been temporarily disabled.
2370 * breakpoint.c: Handle temporarily disabled shared library
2371 breakpoints like disabled breakpoints in most places.
2372 (insert_breakpoints): Use shlib_disabled to indicate
2373 that an unsettable breakpoint is only temporarily disabled.
2374 (re_enable_breakpoints_in_shlibs): New function.
2375 * corelow.c (solib_add_stub): After adding shared libraries,
2376 try to reenable any temporarily disabled breakpoints.
2377 * infcmd.c (attach_command): Likewise.
2378 * infrun.c (wait_for_inferior): Likewise.
2379
2380 Fri Mar 8 11:41:25 1996 Ian Lance Taylor <ian@cygnus.com>
2381
2382 * defs.h (extract_long_unsigned_integer): Declare.
2383 * findvar.c (extract_long_unsigned_integer): New function.
2384 * printcmd.c (print_scalar_formatted): Use it.
2385 * valprint.c (val_print_type_code_int): Likewise.
2386
2387 Thu Mar 7 17:40:50 1996 Stan Shebs <shebs@andros.cygnus.com>
2388
2389 * infcmd.c (do_registers_info): Ignore anonymous registers.
2390 * sh-tdep.c (set processor): New command to set specific
2391 processor type.
2392 (sh_reg_names, sh3_reg_names): Arrays of register names for
2393 SH and SH3 processors.
2394 (sh_set_processor_type): New function.
2395 * sh3-rom.c (sh3_open): Call it.
2396 (sh3_regname): Add names of all the bank registers.
2397 (sh3_supply_register): Clean up formatting.
2398 * config/sh/tm-sh.h (NUM_REGS, NUM_REALREGS): Increase to include
2399 bank registers.
2400 (REGISTER_NAMES): Add names of bank registers.
2401 (FP15_REGNUM): Define.
2402 (REGISTER_VIRTUAL_TYPE): Use it.
2403 * monitor.c: Clean up some comments.
2404
2405 Thu Mar 7 12:09:51 1996 J.T. Conklin <jtc@rtl.cygnus.com>
2406
2407 * i386b-nat.c: Revert part of Mar 5 change. FreeBSD collapsed the
2408 s* and t* symbols too.
2409
2410 Thu Mar 7 15:18:51 1996 James G. Smith <jsmith@cygnus.co.uk>
2411
2412 * symfile.c (generic_load): Avoid division by zero.
2413
2414 Wed Mar 6 17:57:59 1996 Jeffrey A Law (law@cygnus.com)
2415
2416 * breakpoint.c (bfd_lookup_symbol): Provide for all SVR4 systems,
2417 not just those with HANDLE_SVR4_EXEC_EMULATORS.
2418
2419 From Peter Schauer:
2420 * breakpoint.c (internal_breakpoint_number): Move to file scope.
2421 (create_solib_event_breakpoint): Use an internal breakpoint number.
2422
2423 Wed Mar 6 00:32:44 1996 Wilfried Moser (Alcatel) <moser@rtl.cygnus.com>
2424
2425 * valarith.c (value_in): Change builtin_type_chill_bool to
2426 LA_BOOL_TYPE.
2427
2428 Tue Mar 5 23:48:36 1996 Wilfried Moser (Alcatel) <moser@rtl.cygnus.com>
2429
2430 * ch-exp.c (parse_primval): Handle CARD, MAX, MIN.
2431 (match_string_literal): Handle control sequence.
2432 (match_character_literal): Deto.
2433
2434 * ch-lang.c (chill_printchar): Change formating of nonprintable
2435 characters from C'xx' to ^(num).
2436 (chill_printstr): Deto.
2437 (value_chill_card, value_chill_max_min): New functions to process
2438 Chill's CARD, MAX, MIN.
2439 (evaluate_subexp_chill): Process UNOP_CARD, UNOP_CHMAX, UNOP_CHMIN.
2440
2441 * expression.h (exp_opcode): Add UNOP_CARD, UNOP_CHMAX, UNOP_CHMIN
2442 for Chill's CARD, MAX, MIN.
2443
2444 * valarith.c (value_in): Add processing of TYPE_CODE_RANGE
2445 and change return type from builtin_type_int to
2446 builtin_type_chill_bool.
2447
2448 Tue Mar 5 18:54:04 1996 Stan Shebs <shebs@andros.cygnus.com>
2449
2450 * config/nm-nbsd.h (link_object, lo_name, etc): Move to here
2451 from config/nm-nbsd.h.
2452 * config/sparc/nm-nbsd.h (regs, fp_status, etc): Move to here
2453 from config/sparc/tm-nbsd.h.
2454
2455 * config/m68k/nm-hp300hpux.h (FIVE_ARG_PTRACE): Define here
2456 instead of in config/m68k/xm-hp300hpux.h.
2457
2458 Tue Mar 5 12:05:35 1996 J.T. Conklin <jtc@rtl.cygnus.com>
2459
2460 * i386b-nat.c, m68knbsd-nat.c (fetch_core_registers): Provide
2461 implementation for NetBSD systems.
2462
2463 Mon Mar 4 23:44:16 1996 Per Bothner <bothner@kalessin.cygnus.com>
2464
2465 * valarith.c (binop_user_defined_p): Return 0 for BINOP_CONCAT.
2466 (value_concat): Handle varying strings (add COERCE_VARYING_ARRAY).
2467
2468 * ch-lang.c (evaluate_subexp_chill case MULTI_SUBSCRIPT): Error
2469 if "function" is pointer to non-function.
2470
2471 Mon Mar 4 17:47:03 1996 Stan Shebs <shebs@andros.cygnus.com>
2472
2473 * top.c (print_gdb_version): Update copyright year.
2474
2475 Mon Mar 4 14:44:54 1996 Jeffrey A Law (law@cygnus.com)
2476
2477 From Peter Schauer:
2478 * infrun.c (wait_for_inferior): Remove breakpoints and
2479 switch terminal settings before calling SOLIB_ADD.
2480 * solib.c (enable_break, SVR4 variant): Don't map in symbols
2481 for the dynamic linker, the namespace pollution causes real
2482 problems.
2483
2484 Sun Mar 3 17:18:57 1996 James G. Smith <jsmith@cygnus.co.uk>
2485
2486 * remote-mips.c (common_breakpoint): Explicitly terminate the
2487 returned buffer.
2488
2489 Wed Feb 28 22:32:18 1996 Stan Shebs <shebs@andros.cygnus.com>
2490
2491 From Wilfried Moser <wilfried.moser@aut.alcatel.at>:
2492 * remote.c (remote_detach): Send a command 'D' to the target
2493 when detaching, update the function's comments.
2494
2495 Thu Jun 6 16:11:38 1996 Miles Bader <miles@gnu.ai.mit.edu>
2496
2497 * gnu-nat.c (thread_cmd_list): New declaration.
2498 (parse_int_arg): New function.
2499
2500 Wed Jun 5 17:28:04 1996 Miles Bader <miles@gnu.ai.mit.edu>
2501
2502 * gnu-nat.h (struct proc): Add DETACH_SC field.
2503 * gnu-nat.c (make_proc): Set DETACH_SC.
2504 (struct inf): Add DETACH_SC & DEFAULT_THREAD_DETACH_SC fields.
2505 (make_inf): Set DETACH_SC & DEFAULT_THREAD_DETACH_SC fields.
2506 (add_thread_commands): Add set/show for detach-suspend-count.
2507 Add takeover-suspend-count cmd.
2508 (inf_detach): Set suspend counts to the detach SC, not 0.
2509 (set_thread_detach_sc_cmd, show_thread_detach_sc_cmd,
2510 set_task_detach_sc_cmd, show_task_detach_sc_cmd,
2511 set_thread_default_thread_detach_sc_cmd,
2512 show_thread_default_thread_detach_sc_cmd): New functions.
2513 (show_task_cmd): Also show detach-suspend-count values.
2514 (thread_takeover_sc_cmd): New function.
2515
2516 Fri May 31 16:49:24 1996 Miles Bader <miles@gnu.ai.mit.edu>
2517
2518 * gnu-nat.c (show_thread_run_cmd): Actually print state.
2519
2520 Thu May 30 10:47:56 1996 Miles Bader <miles@gnu.ai.mit.edu>
2521
2522 * gnu-nat.c (inf_signal): Make unforwardable exceptions an error.
2523
2524 Tue May 28 17:06:36 1996 Miles Bader <miles@gnu.ai.mit.edu>
2525
2526 * gnu-nat.c (inf_validate_stopped): proc_getprocinfo takes a
2527 pointer to the flags now, not the flags themselves.
2528
2529 Mon May 27 13:31:17 1996 Miles Bader <miles@gnu.ai.mit.edu>
2530
2531 * gnu-nat.c (gnu_wait): Print debugging msgs for pending execs.
2532 (gnu_create_inferior): Check return from ptrace.
2533
2534 Sun May 26 16:56:35 1996 Miles Bader <miles@gnu.ai.mit.edu>
2535
2536 * gnu-nat.h (struct proc): Add DEAD field.
2537 * gnu-nat.c (make_proc): Initialize DEAD.
2538 (inf_set_traced, inf_validate_task_sc, inf_validate_procs: Frob it.
2539 (gnu_wait): Only abort for 0 threads if the task isn't dead.
2540
2541 Sat May 25 17:06:05 1996 Miles Bader <miles@gnu.ai.mit.edu>
2542
2543 * gnu-nat.c (inf_signal): Pass SIGCODE when posting a signal.
2544
2545 Wed May 22 18:44:28 1996 Miles Bader <miles@gnu.ai.mit.edu>
2546
2547 * gnu-nat.c (S_proc_wait_reply): Add SIGCODE argument.
2548 (inf_set_traced): Only give no-signal-thread error message if
2549 turning *on* tracing.
2550
2551 Wed May 15 13:03:16 1996 Miles Bader <miles@gnu.ai.mit.edu>
2552
2553 * gnu-nat.c (inf_validate_procs): If INF has no threads, always
2554 set inf->threads_up_to_date to 0.
2555 (inf_signal): Pass in new SIGCODE argument to msg_sig_post_untraced.
2556 (gnu_wait): Pass in new TIMEOUT arg to interrupt_operation.
2557 (proc_update_sc): Cast thread state arg to thread_set_state.
2558 (proc_get_state): Cast thread state arg to thread_get_state.
2559 (inf_validate_task_sc): Cast task_basic_info arg to task_info.
2560 * i386gnu-nat.c (gnu_fetch_registers, gnu_store_registers): Call
2561 inf_update_procs before we lookup the thread.
2562 * config/i386/i386gnu.mh (MH_CFLAGS): New variable.
2563
2564 Tue May 7 17:52:33 1996 Miles Bader <miles@gnu.ai.mit.edu>
2565
2566 * gnu-nat.c (gnu_kill_inferior): Use inf_set_task to clear the task.
2567
2568 Mon May 6 19:06:49 1996 Miles Bader <miles@gnu.ai.mit.edu>
2569
2570 * gnu-nat.c (inf_set_traced): Use msg_set_init_int with
2571 INIT_TRACEMASK instead of setting the exec flags.
2572
2573 Fri May 3 19:10:57 1996 Miles Bader <miles@gnu.ai.mit.edu>
2574
2575 * gnu-nat.c (inf_validate_procs): Don't clear INF->task if we find
2576 the task's died, so others have a chance at it.
2577 (gnu_resume): When single-stepping a single thread, given an error
2578 if there is no such thread. When single-stepping one but running
2579 the others, just given a warning and still run all the threads.
2580 (gnu_wait): If there seem to be no threads, look harder, and
2581 signal an error if there really aren't any.
2582 (gnu_attach): Reset thread numbering to 0.
2583
2584 * i386gnu-nat.c (gnu_fetch_registers, gnu_store_registers): Give
2585 thread name in warning messages.
2586
2587 * gnu-nat.c (active_inf): New function.
2588 (show_sig_thread_cmd, show_stopped_cmd): Use it.
2589 (info_port_rights, info_send_rights_cmd, info_port_sets_cmd,
2590 info_recv_rights_cmd, info_port_rights_cmd, info_port_rights_cmd):
2591 New functions.
2592 (add_task_commands): Add new port-right info commands.
2593
2594 Fri Apr 26 20:42:16 1996 Miles Bader <miles@gnu.ai.mit.edu>
2595
2596 * gnu-nat.c (gnu_wait): Instead of _hurd_intr_rpc_mach_msg, just
2597 use mach_msg with MACH_RCV_INTERRUPT.
2598 (set_noninvasive_cmd): New function.
2599 (add_task_commands): Add command entry for `set noninvasive'.
2600
2601 Mon Mar 4 14:12:02 1996 Miles Bader <miles@gnu.ai.mit.edu>
2602
2603 * gnu-nat.c (gnu_read_inferior): Use hurd_safe_memmove, not safe_bcopy.
2604 (safe_bcopy): Function removed.
2605
2606 Mon Dec 4 14:18:26 1995 Miles Bader <miles@gnu.ai.mit.edu>
2607
2608 * gnu-nat.c (proc_update_sc): Assert only threads can have state.
2609 (make_proc): Initialize state_valid & state_changed fields.
2610
2611 Tue Nov 28 17:51:21 1995 Miles Bader <miles@gnu.ai.mit.edu>
2612
2613 * reply_mig_hack.awk: New file.
2614
2615 Tue Nov 14 14:31:03 1995 Miles Bader <miles@gnu.ai.mit.edu>
2616
2617 * breakpoint.c (breakpoint_1): Print breakpoint thread field.
2618
2619 * lynx-nat.c (child_wait): Return TARGET_WAITKIND_SPURIOUS for new
2620 threads.
2621
2622 Mon Nov 13 18:30:53 1995 Miles Bader <miles@gnu.ai.mit.edu>
2623
2624 * target.c (debug_to_check_threads): New function.
2625
2626 * inflow.c (terminal_init_inferior_with_pgrp): New function.
2627 (terminal_init_inferior): Call terminal_init_inferior_with_pgrp.
2628 * inferior.h (terminal_init_inferior_with_pgrp): New declaration,
2629 but only if PROCESS_GROUP_TYPE is defined.
2630
2631 Mon Nov 6 16:42:09 1995 Miles Bader <miles@gnu.ai.mit.edu>
2632
2633 * target.c (debug_to_thread_alive): Pass through the return value.
2634
2635 Thu Nov 2 18:05:00 1995 Miles Bader <miles@gnu.ai.mit.edu>
2636
2637 * target.c (signals, target_signal_from_host, target_signal_to_host):
2638 Add mach exceptions.
2639 * target.h (enum target_signal): Add mach exceptions.
2640
2641 Mon Oct 30 16:41:04 1995 Miles Bader <miles@gnu.ai.mit.edu>
2642
2643 * gnu-nat.c: New file: gnu native backend.
2644 * i386gnu-nat.c: New file: i386-specific part of gnu native backend.
2645 * gnu-nat.h: New file.
2646 * config/nm-gnu.h: New file.
2647 * config/tm-i386gnu.h: New file.
2648 * config/xm-i386gnu.h: New file.
2649 * config/i386/i386gnu.mh: New file.
2650 * config/i386/i386gnu.mt: New file.
2651
2652 Wed Feb 28 15:50:12 1996 Fred Fish <fnf@cygnus.com>
2653
2654 * Makefile.in (VERSION): Bump version to 4.15.2 to establish
2655 baseline for gdb 4.16 rerelease testing.
2656
2657 Wed Feb 28 13:32:05 1996 Jeffrey A Law (law@cygnus.com)
2658
2659 * somsolib.c (som_solib_create_inferior_hook): Before returning
2660 call clear_symtab_users.
2661
2662 Tue Feb 27 00:04:46 1996 Stu Grossman (grossman@critters.cygnus.com)
2663
2664 * remote-e7000.c (e7000_open): Delete all breakpoints when
2665 connecting to e7000. Change connect message to allow use of
2666 monitor.exp in test suite.
2667 * (e7000_load): Print transfer rate of download.
2668 * symfile.c (generic_load): Print transfer rate of download.
2669
2670 Sun Feb 25 13:58:33 1996 Stan Shebs <shebs@andros.cygnus.com>
2671
2672 * configure.in (mips*-*-vxworks*): New config.
2673 * configure: Regenerated.
2674
2675 * config/mips/vxmips.mt, config/mips/tm-vxmips.h: New files.
2676 * remote-vxmips.c (vx_convert_to_virtual, vx_convert_from_virtual):
2677 Remove, never used.
2678
2679 Sat Feb 24 12:30:28 1996 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
2680
2681 * partial-stab.h (case N_FUN): Function symbols generated
2682 by SPARCworks cc have a meaningless zero value, do not update
2683 pst->textlow if the function symbol value is zero.
2684
2685 * stabsread.c (define_symbol): Initialize SYMBOL_TYPE field
2686 for function prototype declaration symbols.
2687
2688 Fri Feb 23 22:33:04 1996 Stu Grossman (grossman@critters.cygnus.com)
2689
2690 * remote-e7000.c (e7000_load): New routine to download via the
2691 network.
2692 * (e7000_wait): Don't backup PC when we hit a breakpoint.
2693 Apparantly new sh2 pods get this right...
2694 * (e7000_ops): Add call to e7000_load.
2695
2696 Thu Feb 22 00:52:42 1996 J.T. Conklin <jtc@rtl.cygnus.com>
2697
2698 * config/m68k/{nbsd.mh,nbsd.mt,nm-nbsd.h,tm-nbsd.h,xm-nbsd.h},
2699 m68knbsd-nat.c: New files, support for NetBSD/m68k.
2700
2701 * configure.in (m68k-*-netbsd*): New config.
2702 * configure: Regenerated.
2703
2704 Wed Feb 21 19:00:21 1996 Fred Fish <fnf@cygnus.com>
2705
2706 * standalone.c (open, _initialize_standalone): Fix obvious typos
2707 reported by Martin Pool <martin@citr.uq.oz.au>.
2708
2709 Wed Feb 21 14:24:04 1996 Jeffrey A Law (law@cygnus.com)
2710
2711 * solib.c (solib_create_inferior_hook): Fix thinko.
2712
2713 Tue Feb 20 23:59:19 1996 Jeffrey A Law (law@cygnus.com)
2714
2715 * solib.c (solib_break_names): Define for Solaris and Linux.
2716 (enable_break): For SVR4 systems, first try to use the debugger
2717 interfaces in the dynamic linker to track shared library events
2718 as they happen, then fall back to BKPT_AT_SYMBOL code. Convert
2719 BKPT_AT_SYMBOL code to use shared library event breakpoints.
2720 (solib_create_inferior_hook): Simplify BKPT_AT_SYMBOL code,
2721 it no longer needs to restart/wait on the inferior.
2722 * symfile.c (find_lowest_section): No longer static.
2723 * symfile.h (find_lowest_section): Corresponding changes.
2724
2725 Tue Feb 20 18:54:08 1996 Fred Fish <fnf@cygnus.com>
2726
2727 * valops.c (COERCE_FLOAT_TO_DOUBLE): Define default value.
2728 (value_arg_coerce): Use COERCE_FLOAT_TO_DOUBLE.
2729 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Define to 1.
2730 * config/mips/tm-mips.h: Ditto.
2731 * config/pa/tm-hppa.h: Ditto.
2732 * config/rs6000/tm-rs6000.h: Ditto.
2733 * config/sparc/tm-sparc.h: Ditto.
2734
2735 Tue Feb 20 17:32:05 1996 J.T. Conklin <jtc@rtl.cygnus.com>
2736
2737 * config/{i386,ns32k}/nbsd.mh (NATDEPFILES): Remove core-aout.o.
2738
2739 * config/nm-nbsd.h (FETCH_INFERIOR_REGISTERS): Defined.
2740 * config/xm-nbsd.h (CC_HAS_LONG_LONG, PRINTF_HAS_LONG_LONG):
2741 #ifdef'd out definitions --- Causes serious gdb failures on
2742 the i386. Need to investigate further before enabling.
2743
2744 * i386b-nat.c (fetch_inferior_registers, store_inferior_registers,
2745 fetch_core_registers): New functions. These functions are defined
2746 if FETCH_INFERIOR_REGISTERS is set. Registers are fetched/stored
2747 with ptrace PT_GETREGS/PT_SETREGS.
2748
2749 Tue Feb 20 16:55:06 1996 Stu Grossman (grossman@critters.cygnus.com)
2750
2751 * findvar.c (extract_floating store_floating): Replace `long
2752 double' with `DOUBLEST'.
2753
2754 Mon Feb 19 15:25:51 1996 J.T. Conklin <jtc@rtl.cygnus.com>
2755
2756 * config/xm-nbsd.h (CC_HAS_LONG_LONG, PRINTF_HAS_LONG_LONG):
2757 Define.
2758
2759 Mon Feb 19 10:32:05 1996 Jeffrey A Law (law@cygnus.com)
2760
2761 * symtab.h (looup_minimal_symbol_solib_trampoline): Declare.
2762
2763 * breakpoint.h (remove_solib_event_breakpoints): Declare.
2764 * breakpoint.c (remove_solib_event_breakpoints): New function.
2765 * somsolib.c (solib_create_inferior_hook): Remove all solib event
2766 breakpoints before inserting any new ones. Use a solib event
2767 breakpoint for the breakpoint at "_start".
2768 Remove extraneous "\n" from calls to warning.
2769
2770 * breakpoint.c (breakpoint_1): Add missing "sigtramp" to bptypes
2771 name array.
2772
2773 Mon Feb 19 01:09:32 1996 Doug Evans <dje@cygnus.com>
2774
2775 * dwarfread.c (add_partial_symbol): Use ADD_PSYMBOL_ADDR_TO_LIST
2776 for CORE_ADDR values.
2777 (new_symbol): Use SYMBOL_VALUE_ADDRESS for CORE_ADDR values.
2778 * symfile.h (add_psymbol_{,addr}to_list): Add prototypes.
2779
2780 Sun Feb 18 14:37:13 1996 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
2781
2782 * mipsread.c (mipscoff_symfile_read): Unconditionally add
2783 alpha coff dynamic symbols for all symbol files. Makes skipping
2784 over the trampoline code work when stepping from a function in a
2785 shared library into a function in a different shared library.
2786
2787 Sun Feb 18 09:27:10 1996 Stu Grossman (grossman@cygnus.com)
2788
2789 * config/sparc/tm-sparc.h: Define PS_FLAG_CARRY. Define
2790 RETURN_VALUE_ON_STACK to return long doubles on the stack.
2791
2792 Sat Feb 17 16:33:11 1996 Fred Fish <fnf@cygnus.com>
2793
2794 * Makefile.in (ch-exp.o): Add dependencies.
2795 (various): Add gdb_string.h to dependencies that need it.
2796
2797 Sat Feb 17 08:57:50 1996 Fred Fish <fnf@cygnus.com>
2798
2799 * symmisc.c (print_symbol_bcache_statistics): Update description for
2800 printing byte cache statistics.
2801
2802 Thu Feb 16 16:02:03 1996 Stu Grossman (grossman@cygnus.com)
2803
2804 * Add native support for long double data type.
2805 * c-exp.y (%union): Change dval to typed_val_float. Use DOUBLEST
2806 to store actual data. Change types of INT and FLOAT tokens to
2807 typed_val_int and typed_val_float respectively. Create new token
2808 DOUBLE_KEYWORD to specify the string `double'. Make production
2809 for FLOAT use type determined by parse_number. Add production for
2810 "long double" data type.
2811 * (parse_number): Use sscanf to parse numbers as float, double or
2812 long double depending upon the type of typed_val_float.dval. Also
2813 allow user to specify `f' or `l' suffix to explicitly specify
2814 float or long double constants. Change typed_val to
2815 typed_val_int.
2816 * (yylex): Change typed_val to typed_val_int. Also, scan for
2817 "double" keyword.
2818 * coffread.c (decode_base_type): Add support for T_LNGDBL basic
2819 type.
2820 * configure, configure.in: Add check for long double support in
2821 the host compiler.
2822 * defs.h: Define DOUBLEST appropriatly depending on whether
2823 HAVE_LONG_DOUBLE (from autoconf) is defined. Also, fix prototypes
2824 for functions that handle this type.
2825 * expression.h (union exp_element): doubleconst is now type
2826 DOUBLEST.
2827 * m2-exp.y f-exp.y (%union): dval becomes type DOUBLEST.
2828 * findvar.c (extract_floating): Make return value be DOUBLEST.
2829 Also, add support for numbers with size of long double.
2830 * (store_floating): Arg `val' is now type DOUBLEST. Handle all
2831 floating types.
2832 * parser-defs.h parse.c (write_exp_elt_dblcst): Arg expelt is now
2833 DOUBLEST.
2834 * valarith.c (value_binop): Change temp variables v1, v2 and v to
2835 type DOUBLEST. Coerce type of result to long double if either op
2836 was of that type.
2837 * valops.c (value_arg_coerce): If argument type is bigger than
2838 double, coerce to long double.
2839 * (call_function_by_hand): If REG_STRUCT_HAS_ADDR is defined, and
2840 arg type is float and > 8 bytes, then use pointer-to-object
2841 calling conventions.
2842 * valprint.c (print_floating): Arg doub is now type DOUBLEST.
2843 Use appropriate format and precision to print out floating point
2844 values.
2845 * value.h: Fixup prototypes for value_as_double,
2846 value_from_double, and unpack_double to use DOUBLEST.
2847 * values.c (record_latest_value): Remove check for invalid
2848 floats. Allow history to store them so that people may examine
2849 them in hex if they want.
2850 * (value_as_double unpack_double): Change return value to DOUBLEST.
2851 * (value_from_double): Arg `num' is now DOUBLEST.
2852 * (using_struct_return): Use RETURN_VALUE_ON_STACK macro (target
2853 specific) to expect certain types to always be returned on the stack.
2854
2855 Fri Feb 16 14:00:54 1996 Fred Fish <fnf@cygnus.com>
2856
2857 * bcache.c, bcache.h: New files to implement a byte cache.
2858 * Makefile.in (SFILES): Add bcache.c.
2859 (symtab_h): Add bcache.h.
2860 (HFILES_NO_SRCDIR): add bcache.h
2861 (COMMON_OBJS): Add bcache.o
2862 (bcache.o): New target.
2863 * dbxread.c (start_psymtab): Make global_syms & static_syms
2864 type "partial_symbol **".
2865 * hpread.c (hpread_start_symtab): Ditto.
2866 * os9kread.c (os9k_start_psymtab): Ditto.
2867 * stabsread.h (start_psymtab): Ditto.
2868 * {symfile.c, symfile.h} (start_psymtab_common): Ditto.
2869 * maint.c (maintenance_print_statistics): Call
2870 print_symbol_bcache_statistics.
2871 * objfiles.c (allocate_objfile): Initialize psymbol bcache malloc
2872 and free pointers.
2873 * solib.c (allocate_rt_common_objfile): Ditto.
2874 * symfile.c (reread_symbols): Ditto.
2875 (free_objfile): Free psymbol bcache when objfile is freed.
2876 (objfile_relocate): Use new indirect psymbol pointers.
2877 * objfiles.h (struct objfile): Add psymbol cache.
2878 * symfile.c (compare_psymbols): Now passed pointers to pointers to
2879 psymbols.
2880 (reread_symbols): Free psymbol bcache when freeing other objfile
2881 resources.
2882 (add_psymbol_to_list, add_psymbol_addr_to_list): Initialize new
2883 psymbol using the psymbol bcache.
2884 (init_psymbol_list): Psymbol lists now contain pointers rather than
2885 the actual psymbols.
2886 * symfile.h (psymbol_allocation_list): Psymbol lists now dynamically
2887 grown arrays of pointers.
2888 (ADD_PSYMBOL_VT_TO_LIST): Initialize new symbol using the psymbol
2889 bcache.
2890 * symmisc.c (print_partial_symbols): Now takes pointer to pointer
2891 to partial symbol.
2892 (print_symbol_bcache_statistics): New function to print per objfile
2893 bcache statistics.
2894 (print_partial_symbol, print_partial_symbols,
2895 maintenance_check_symtabs, extend_psymbol_list):
2896 Account for change to pointer to pointer to partial symbol.
2897 * symtab.c (find_pc_psymbol, lookup_partial_symbol, decode_line_2,
2898 make_symbol_completion_list):
2899 Account for change to pointer to pointer to partial symbol.
2900 * symtab.h (bcache.h): Include.
2901 * xcoffread.c (xcoff_start_psymtab): Make global_syms & static_syms
2902 type "partial_symbol **".
2903
2904 Fri Feb 16 10:02:34 1996 Fred Fish <fnf@cygnus.com>
2905
2906 * dwarfread.c (free_utypes): New function.
2907 (read_file_scope): Call free_utypes as cleanup, rather than just
2908 freeing the utypes pointer.
2909
2910 Thu Feb 15 21:40:52 1996 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
2911
2912 * demangle.c (is_cplus_marker): New function, checks if a
2913 character is one of the commonly used C++ marker characters.
2914 * defs.h (is_cplus_marker): Add prototype.
2915 * c-typeprint.c (c_type_print_base), ch-lang.c (chill_demangle),
2916 cp-valprint.c (cp_print_class_method), mdebugread.c (parse_symbol),
2917 stabsread.c (define_symbol, read_member_functions, read_struct_fields),
2918 symtab.h (OPNAME_PREFIX_P, VTBL_PREFIX_P, DESTRUCTOR_PREFIX_P),
2919 values.c (vb_match): Use is_cplus_marker instead of comparison
2920 with CPLUS_MARKER.
2921
2922 Thu Feb 15 18:08:13 1996 Fred Fish <fnf@cygnus.com>
2923
2924 * symfile.h (INLINE_ADD_PSYMBOL): Default this to 0 and possibly
2925 delete entirely someday.
2926
2927 Thu Feb 15 15:25:34 1996 Stan Shebs <shebs@andros.cygnus.com>
2928
2929 * mpw-make.sed: Edit out makefile rebuild rule.
2930 (host_alias, target_alias): Comment out instead of deleting.
2931 (@LIBS@): Edit out references.
2932
2933 Tue Feb 13 22:56:46 1996 Fred Fish <fnf@cygnus.com>
2934
2935 * symfile.c (add_psymbol_to_list, add_psymbol_addr_to_list):
2936 Use n_psyms in OBJSTAT, not psyms.
2937
2938 Mon Feb 12 15:59:31 1996 Doug Evans <dje@charmed.cygnus.com>
2939
2940 * configure.in (sparclet-*-aout*): New config.
2941 * configure: Regenerated.
2942
2943 Mon Feb 12 14:17:52 1996 Fred Fish <fnf@cygnus.com>
2944
2945 * somsolib.c (som_solib_add): Use xmalloc rather than bare
2946 unchecked call to malloc.
2947 * remote-mips.c (pmon_load_fast): ditto.
2948 * remote-mm.c (mm_open): ditto.
2949 * hpread.c (hpread_lookup_type): ditto.
2950 * remote-adapt.c (adapt_open): ditto.
2951
2952 Mon Feb 12 13:11:32 1996 Fred Fish <fnf@cygnus.com>
2953
2954 * f-lang.c (allocate_saved_bf_node, allocate_saved_function_node,
2955 allocate_saved_f77_common_node, allocate_common_entry_node,
2956 add_common_block): Use xmalloc rather than malloc, some of which
2957 were unchecked.
2958 * gnu-regex.c: At same point as other gdb specific changes
2959 #undef malloc and then #define it to xmalloc.
2960 * ch-exp.c (growbuf_by_size): Use xmalloc/xrealloc rather than
2961 bare unchecked calls to malloc/realloc.
2962 * stabsread.c (dbx_lookup_type): Use xmalloc rather than bare
2963 unchecked call to malloc.
2964
2965 Wed Feb 7 11:31:26 1996 Stu Grossman (grossman@cygnus.com)
2966
2967 * symtab.c (gdb_mangle_name): Change opname var to be const to
2968 match return val of cplus_mangle_name.
2969 * i960-tdep.c: Change arg types of next_insn to match callers.
2970
2971 Wed Feb 7 07:34:24 1996 Fred Fish <fnf@cygnus.com>
2972
2973 * config/i386/linux.mh (XM_CLIBS, GDBSERVER_LIBS): Remove. These
2974 apparently aren't needed in any reasonably recent version of
2975 linux.
2976
2977 Tue Feb 6 21:37:03 1996 Per Bothner <bothner@kalessin.cygnus.com>
2978
2979 * stabsread.c (read_range_type): If !self-subrange and language
2980 is Chill, assume a true range. If a true_range is a sub_subrange,
2981 use builtin_type_int for index_type.
2982
2983 Tue Feb 6 18:38:51 1996 J.T. Conklin <jtc@slave.cygnus.com>
2984
2985 * nindy-share/nindy.c (say): Use stdarg.h macros when compiling
2986 with an ANSI compiler.
2987
2988 start-sanitize-gdbtk
2989 Tue Feb 6 16:31:25 1996 Tom Tromey <tromey@creche.cygnus.com>
2990
2991 * gdbtk.tcl (create_file_win): Eliminate text widget B1 binding so
2992 double-clicking will work again.
2993 (create_asm_win): Put "break" at end of all B1 bindings.
2994 (create_file_win): Lower "sel" tag, don't raise it.
2995 (ensure_line_visible): New proc.
2996 (update_listing, update_assembly): Use it.
2997 (create_copyright_window): Destroy window on Leave event.
2998 (create_command_window): Put "break" at end of all B2 bindings.
2999
3000 end-sanitize-gdbtk
3001 Mon Feb 5 18:24:28 1996 Steve Chamberlain <sac@slash.cygnus.com>
3002
3003 From Michael_Snyder@NeXT.COM (Michael Snyder):
3004 * valops.c (value_arg_coerce): Coerce float to double, unless the
3005 function prototype specifies float.
3006
3007 Mon Feb 5 09:51:55 1996 Tom Tromey <tromey@creche.cygnus.com>
3008
3009 * language.c (set_language_command): Use languages table when
3010 printing available languages.
3011
3012 Sat Feb 3 12:22:05 1996 Fred Fish <fnf@cygnus.com>
3013
3014 Fix problems reported by Hans Verkuil (hans@wyst.hobby.nl):
3015 * command.c (add_cmd): Add missing initialization for enums member.
3016 Reorder members to match structure declaration to make it easier to
3017 tell when one is missing.
3018 * exec.c (exec_file_command): Fix problem where filename in malloc'd
3019 memory is referenced after being freed.
3020
3021 Sat Feb 3 03:26:21 1996 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
3022
3023 * dwarfread.c (read_func_scope): Avoid GDB core dumps if
3024 AT_name tag is missing.
3025
3026 * procfs.c (procfs_stopped_by_watchpoint): Fix logic when
3027 FLTWATCH and FLTKWATCH are defined.
3028
3029 * remote.c (remote_read_bytes): Advance memaddr for transfers,
3030 return number of bytes transferred for partial reads.
3031
3032 * top.c (init_signals): Reset SIGTRAP to SIG_DFL.
3033
3034 Fri Feb 2 13:40:50 1996 Steve Chamberlain <sac@slash.cygnus.com>
3035
3036 * win32-nat.c (mappings): Add ppc registers.
3037 (child_resume): Turn off step for ppc.
3038
3039 Thu Feb 1 10:29:31 1996 Steve Chamberlain <sac@slash.cygnus.com>
3040
3041 * config/powerpc/(cygwin32.mh, cygwin32.mt, tm-cygwin32.h,
3042 xm-cygwin32.h): New.
3043 * config/i386/(*win32*): Becomes *cygwin32*.
3044 * configure.in (i[3456]86-*-win32*): Becomes i[3456]86-*-cygwin32.
3045 (powerpcle-*-cygwin32): New.
3046 * configure: Regenerate.
3047 * win32-nat.c (child_create_inferior): Call CreateProcess
3048 with the right program arg.
3049
3050 Thu Feb 1 11:01:10 1996 Jeffrey A Law (law@cygnus.com)
3051
3052 * config/pa/tm-hppa.h (SOFT_FLOAT): Provide a default definition.
3053
3054 Wed Jan 31 19:01:28 1996 Fred Fish <fnf@cygnus.com>
3055
3056 * serial.c: Change fputc/fputs/fprintf to _unfiltered forms.
3057
3058 Wed Jan 31 18:36:27 1996 Stan Shebs <shebs@andros.cygnus.com>
3059
3060 * config/sparc/xm-sun4os4.h (HAVE_TERMIOS): Remove.
3061
3062 * config/sparc/xm-sparc.h (HAVE_WAIT_STRUCT): Remove, never used.
3063
3064 * config/i386/nm-i386mach.h (CHILD_PREPARE_TO_STORE): Move to
3065 here from config/i386/xm-i386mach.h, fix name.
3066 * config/i386/nm-sun386.h: Ditto, from config/i386/xm-sun386.h.
3067 * config/i386/nm-ptx4.h (CHILD_PREPARE_TO_STORE): Move to
3068 here from config/i386/xm-ptx4.h.
3069 * config/i386/nm-ptx4.h: Ditto, from config/i386/xm-ptx.h.
3070 * config/i386/nm-symmetry.h: Ditto, from config/i386/xm-symmetry.h.
3071 * config/m68k/nm-sun3.h: Ditto, from config/m68k/xm-sun3.h.
3072 * config/sparc/nm-nbsd.h: Ditto, from config/sparc/xm-nbsd.h.
3073 * config/sparc/nm-sun4os4: Ditto, from config/sparc/xm-sparc.h.
3074
3075 * config/sparc/nm-sun4sol2.h: New file, renamed from nm-sysv4.h.
3076 (PRSVADDR_BROKEN): Move here from xm-sun4sol2.h.
3077 * config/sparc/sun4sol2.mh (NAT_FILE): Update.
3078
3079 Wed Jan 31 17:20:26 1996 Jeffrey A Law (law@cygnus.com)
3080
3081 * config/pa/tm-hppa.h (EXTRACT_RETURN_VALUE): Handle software
3082 floating point correctly.
3083 (STORE_RETURN_VALUE): Likewise.
3084 * config/pa/tm-pro.h (SOFT_FLOAT): define.
3085
3086 Wed Jan 31 13:34:52 1996 Fred Fish <fnf@cygnus.com>
3087
3088 * config/i386/xm-linux.h (MMAP_BASE_ADDRESS, MMAP_INCREMENT):
3089 Define to what should be reasonable values. However, apparently
3090 a bug in linux mmap prevents mapped symbol tables from working.
3091
3092 Tue Jan 30 18:26:19 1996 Fred Fish <fnf@cygnus.com>
3093
3094 * defs.h (errno.h>: Move #include closer to head of file to solve
3095 obscure problem with systems that declare perror with const arg, in
3096 both errno.h and stdio.h, and const is defined away by intervening
3097 local include.
3098
3099 Tue Jan 30 15:41:10 1996 Fred Fish <fnf@cygnus.com>
3100
3101 From Jon Reeves <reeves@zk3.dec.com>:
3102 * i386-stub.c (getpacket): Change fprintf stream from "gdb" to stderr.
3103 (mem_fault_routine): Fix misplaced volatile type qualifier in decl.
3104
3105 Mon Jan 29 19:05:58 1996 Fred Fish <fnf@cygnus.com>
3106
3107 * Makefile.in (diststuff): Make all-doc; diststuff target does not
3108 exist in doc/Makefile.in.
3109
3110 Mon Jan 29 18:44:57 1996 Stan Shebs <shebs@andros.cygnus.com>
3111
3112 * config/m88k/xm-cxux.h (BP_HIT_COUNT): Remove, never used.
3113
3114 Mon Jan 29 00:10:35 1996 Wilfried Moser (Alcatel) <moser@rtl.cygnus.com>
3115
3116 * ch-valprint.c (calculate_array_length): New function to
3117 determine the length of an array type.
3118 (chill_val_print (case TYPE_CODE_ARRAY)): If the length of an
3119 array type is zero, call calculate_array_length.
3120
3121 * gdbtypes.c (get_discrete_bounds (case TYPE_CODE_ENUM)): The
3122 values may not be sorted. Scan all entries and set the real lower
3123 and upper bound.
3124
3125 Sun Jan 28 15:50:42 1996 Fred Fish <fnf@cygnus.com>
3126
3127 * config/xm-linux.h: Move include of solib.h and #define of
3128 SVR4_SHARED_LIBS from here ...
3129 * config/nm-linux.h: ...to here.
3130
3131 Sat Jan 27 10:34:05 1996 Fred Fish <fnf@cygnus.com>
3132
3133 * configure.in (AC_CHECK_HEADERS): Check for sys/procfs.h.
3134 Also check for gregset_t and fpregset_t types.
3135 * configure: Regenerate.
3136 * core-regset.c (sys/procfs.h): Only include if HAVE_SYS_PROCFS_H
3137 is defined.
3138 (fetch_core_registers): Turn into stub unless both HAVE_GREGSET_T
3139 and HAVE_FPREGSET_T are defined. These changes allow systems
3140 like linux that are migrating to /proc support to use a single
3141 configuration for both new and old versions.
3142
3143 * config/i386/linux.mt: Note that this is now for both a.out and
3144 ELF systems.
3145 * config/i386/linux.mh (NATDEPFILES): Add solib.o, core-regset.o,
3146 i386v4-nat.o
3147 * config/i386/tm-linux.h (tm-sysv4.h): Include.
3148 * config/i386/xm-linux.h (solib.h): Include
3149 (SVR4_SHARED_LIBS): Define.
3150 * i386v4-nat.c: Only compile if HAVE_SYS_PROCFS_H is defined.
3151 (supply_gregset, fill_gregset): Compile if HAVE_GREGSET_T defined.
3152 (supply_fpregset, fill_fpregset): Compile if HAVE_FPREGSET_T
3153 defined.
3154
3155 Fri Jan 26 13:48:14 1996 Stan Shebs <shebs@andros.cygnus.com>
3156
3157 * config/sparc/xm-sparc.h (NEW_SUN_CORE): Remove, never used.
3158 * config/i386/xm-sun386.h: Ditto.
3159 * config/m68k/xm-sun2.h, config/m68k/xm-sun3.h: Ditto.
3160
3161 Thu Jan 25 16:05:53 1996 Tom Tromey <tromey@creche.cygnus.com>
3162
3163 * Makefile.in (INSTALLED_LIBS, CLIBS): Include @LIBS@.
3164
3165 Thu Jan 25 09:22:15 1996 Steve Chamberlain <sac@slash.cygnus.com>
3166
3167 From Greg McGary <gkm@gnu.ai.mit.edu>:
3168 * dcache.c (dcache_peek, dcache_poke): Advance addr for
3169 multi-byte I/O.
3170
3171 Thu Jan 25 13:08:51 1996 Doug Evans (dje@cygnus.com)
3172
3173 * infrun.c (normal_stop): Fix test for shared library event.
3174
3175 Thu Jan 25 03:26:38 1996 Doug Evans <dje@charmed.cygnus.com>
3176
3177 * configure.in (sparc64-*-*): Add default host configuration.
3178 start-sanitize-gdbtk
3179 (sparc64-*-solaris2* host): Link statically if GCC used.
3180 end-sanitize-gdbtk
3181 (sparc64-*-solaris2*): Add target configuration.
3182 * configure: Regenerated.
3183 * sparc/sp64sol2.mt: New file.
3184
3185 Wed Jan 24 22:31:37 1996 Doug Evans <dje@charmed.cygnus.com>
3186
3187 * Makefile.in (RUNTEST): srcdir renamed to rootsrc.
3188
3189 Wed Jan 24 15:42:24 1996 Tom Tromey <tromey@creche.cygnus.com>
3190
3191 * Makefile.in (lint): Close backquotes.
3192
3193 start-sanitize-gdbtk
3194 Wed Jan 24 15:28:41 1996 Tom Tromey <tromey@creche.cygnus.com>
3195
3196 * gdbtk.tcl, gdbtk.c: Updated copyrights.
3197
3198 * configure.in: Look for -ldl or -ldld when using Tcl 7.5 or
3199 greater.
3200 * configure: Rebuilt.
3201
3202 end-sanitize-gdbtk
3203 Wed Jan 24 13:19:10 1996 Fred Fish <fnf@cygnus.com>
3204
3205 * NEWS: Make note of new record and replay feature for
3206 remote debug sessions.
3207 * serial.c (gdbcmd.h): Include.
3208 (serial_logfile, serial_logfp, serial_reading, serial_writing):
3209 Define here, for remote debug session logging.
3210 (serial_log_command, serial_logchar, serial_write, serial_readchar):
3211 New functions for remote debug session logging.
3212 (serial_open): Open remote debug session log file when needed.
3213 (serial_close): Close remote debug session log file when needed.
3214 (_initialize_serial): Add set/show commands for name of remote
3215 debug session log file.
3216 * serial.h (serial_readchar): Declare
3217 (SERIAL_READCHAR): Call serial_readchar().
3218 (SERIAL_WRITE): Call serial_write().
3219 (serial_close): Declare as extern.
3220 (serial_logfile, serial_logfp): Declare.
3221 * top.c (execute_command): Declare serial_logfp. Log user command
3222 in remote debug session log if log file is open.
3223 * remote-array.c (array_wait): #ifdef out echo to gdb_stdout.
3224 (array_read_inferior_memory): Rewrite to fix memory overwrite bug.
3225 * remote-array.c (SREC_SIZE): Remove, duplicates define in
3226 monitor.h.
3227 * remote-array.c (hexchars, hex2mem): Remove, unused.
3228 * gdbserver/low-linux.c (store_inferior_registers): Remove
3229 unnecessary extern declaration of registers[].
3230 * gdbserver/Makefile.in (all): Add gdbreplay.
3231 * gdbserver/gdbreplay.c: New file.
3232 * gdbserver/README: Give example of recording a remote
3233 debug session with gdb and then replaying it with gdbreplay.
3234
3235 Tue Jan 23 18:02:35 1996 Per Bothner <bothner@kalessin.cygnus.com>
3236
3237 * stabsread.c (rs6000_builtin_type): Make bool type unsigned.
3238 (read_one_struct_field): Support boolean bitfields.
3239 * c-valprint.c (c_val_print): Print booleans properly.
3240
3241 Tue Jan 23 18:54:09 1996 Stan Shebs <shebs@andros.cygnus.com>
3242
3243 * remote-vxsparc.c (vx_convert_to_virtual, vx_convert_from_virtual):
3244 Remove, never used.
3245 * config/sparc/vxsparc.mt (TDEPFILES): Add remote-vxsparc.o.
3246
3247 Tue Jan 23 14:36:05 1996 Per Bothner <bothner@kalessin.cygnus.com>
3248
3249 * ch-exp.c (parse_tuple): Error if invalid mode.
3250
3251 * value.h (COERCE_ARRAY): Don't coerce enums.
3252 (COERCE_ENUM): Don't COERCE_REF.
3253 (COERCE_NUMBER): New macro (same as COERCE_ARRAY then COERCE_ENUM).
3254 * valops.c (value_assign): Only do COERCE_ARRAY if internalvar (let
3255 value_cast handle it otherwise); do *not* COERCE_ENUM either way.
3256 * valarith.c: Use COERCE_NUMBER instead od COEREC_ARRAY.
3257 Add COERCE_REF before COERCE_ENUM.
3258 * values.c (value_as_long): Simplify.
3259
3260 * valops.c (value_array): Create internalvar if !c_style_arrays.
3261
3262 * language.c (lang_bool_type): Add Fortran support.
3263 * eval.c (OP_BOOL): Use LA_BOOL_TYPE.
3264
3265 Tue Jan 23 13:08:26 1996 Jeffrey A Law (law@cygnus.com)
3266
3267 * symfile.c (auto_solib_add): Renamed from auto_solib_add_at_startup.
3268 All references changed.
3269 * breakpoint.c (bpstat_what): Add shlib_event to the class types.
3270 Update state table. Reformat so that it's still readable.
3271 When we hit the shlib_event breakpoint, set the calss of shlib_event.
3272 (breakpoint_1): Add "shlib events" as a breakpoint type.
3273 Print the shlib_event breakpoint like other breakpoints.
3274 (create_solib_event_breakpoint): New function.
3275 (breakpoint_re_set_one): Handle solib_event breakpoints.
3276 * breakpoint.h (enum bytype): Add bp_shlib_event breakpoint type.
3277 (enum bpstat_what_main_action): Add BPSTAT_WHAT_CHECK_SHLIBS
3278 action.
3279 (create_solib_event_breakpoint): Declare.
3280 * infrun.c (wait_for_inferior): Handle CHECK_SHLIBS bpstat.
3281 (normal_stop): Inform the user when the inferior stoped due
3282 to a shared library event.
3283 (_initialize_infrun): Add new set/show variable "stop-on-solib-events"
3284 to control whether or not gdb continues the inferior or stops it when
3285 a shared library event occurs.
3286 * minsyms.c (lookup_minimal_symbol_solib_trampoline): New function.
3287 * somsolib.c (TODO list): Update.
3288 (som_solib_create_inferior_hook): Arrange for gdb to be notified
3289 when significant shared library events occur.
3290 * hppa-tdep.c (find_unwind_entry): No longer static.
3291
3292 Tue Jan 23 09:00:48 1996 Doug Evans <dje@charmed.cygnus.com>
3293
3294 * printcmd.c (print_insn): Pass fprintf_unfiltered to
3295 INIT_DISASSEMBLE_INFO.
3296 start-sanitize-gdbtk
3297 * gdbtk.c (gdb_disassemble): Likewise.
3298 end-sanitize-gdbtk
3299
3300 Mon Jan 22 16:59:40 1996 Stan Shebs <shebs@andros.cygnus.com>
3301
3302 * remote.c (remotebreak): New GDB variable.
3303 (remote_break): New global.
3304 (remote_interrupt): Send a break instead of ^C if remote_break.
3305 * NEWS: Describe the new variable.
3306
3307 Mon Jan 22 16:24:11 1996 Doug Evans <dje@charmed.cygnus.com>
3308
3309 * sparc-tdep.c (_initialize_sparc_tdep): Always use print_insn_sparc.
3310
3311 Fri Jan 19 07:19:38 1996 Fred Fish <fnf@cygnus.com>
3312
3313 * hp300ux-nat.c (getpagesize): Remove unused function
3314 fetch_core_registers.
3315 (hp300ux_core_fns): Remove, is unused.
3316 (_initialize_core_hp300ux): Remove, is unused.
3317 (gdbcore.h): Remove #include, no longer needed.
3318
3319 Fri Jan 19 00:59:53 1996 Jeffrey A Law (law@cygnus.com)
3320
3321 * rs6000-nat.c (exec_one_dummy_insn): Rework to avoid
3322 ptrace bug in aix4.1.3 on the rs6000.
3323
3324 Wed Jan 17 13:22:27 1996 Stan Shebs <shebs@andros.cygnus.com>
3325
3326 * remote-hms.c (hms_ops): Add value for to_thread_alive.
3327 * remote-nindy.c (nindy_ops): Ditto.
3328 * remote-udi.c (udi_ops): Ditto.
3329
3330 Tue Jan 16 18:00:35 1996 James G. Smith <jsmith@cygnus.co.uk>
3331
3332 * remote-mips.c (pmon_opn, pmon_wait, pmon_makeb64, pmon_zeroset,
3333 pmon_checkset, pmon_make_fastrec, pmon_check_ack,
3334 pmon_load_fast): New functions. Support for the PMON monitor world.
3335 (common_open): New function to merge support for different monitors.
3336 (mips_open): Use common_open().
3337 (mips_send_command): New function.
3338 (mips_send_packet): Scan out-of-sequence packets.
3339 (mips_enter_debug, mips_exit_debug): New functions.
3340 (pmon_ops): New target definition structure.
3341
3342 Tue Jan 16 11:22:58 1996 Stu Grossman (grossman@cygnus.com)
3343
3344 * Makefile.in (CLIBS): Add LIBS to allow libraries to be
3345 specified on the make command line (via make LIBS=xxx).
3346 start-sanitize-gm
3347 * configure.in (enable-gm): magic.o -> gmagic.o.
3348 end-sanitize-gm
3349
3350 start-sanitize-gdbtk
3351 Mon Jan 15 09:58:41 1996 Tom Tromey <tromey@creche.cygnus.com>
3352
3353 * gdbtk.tcl (create_expr_window): Many changes to update GUI.
3354 (add_expr): Changes from create_expr_window.
3355 (create_command_window): Set focus.
3356 (delete_expr): Rewrote.
3357 (expr_update_button): New proc.
3358 (add_expr): Put bindings on FocusIn, FocusOut.
3359 Don't allow .file_popup to be torn off.
3360 end-sanitize-gdbtk
3361
3362 Fri Jan 12 21:41:58 1996 Jeffrey A Law (law@cygnus.com)
3363
3364 * symtab.c (find_pc_symtab): Don't lose if OBJF_REORDERED
3365 is set but there are no psymtabs.
3366
3367 Fri Jan 12 15:56:12 1996 Steve Chamberlain <sac@slash.cygnus.com>
3368
3369 * dsrec.c (load_srec): Remove unused variable.
3370 * monitor.c (monitor_expect): Don't expect a ^C to echo.
3371 * serial.c (serial_open): Add parallel interface.
3372 * sh3-rom.c (parallel, parallel_in_use): New.
3373 (sh3_load): If parallel_in_use, download though the
3374 parallel port.
3375 (sh3_open): Open parallel port if specified.
3376 (sh3_close): New function.
3377 (_inititalize_sh3): Add sh3_close hook and documentation.
3378 * monitor.c (monitor_close): Export.
3379 * monitor.h (monitor_close): Add prototype.
3380
3381 Fri Jan 12 13:11:42 1996 Stan Shebs <shebs@andros.cygnus.com>
3382
3383 From Wilfried Moser <wilfried.moser@aut.alcatel.at>:
3384 * remote.c (remotetimeout): New GDB variable, use to set the
3385 remote timeout for reading.
3386
3387 start-sanitize-gdbtk
3388 Fri Jan 12 09:36:17 1996 Tom Tromey <tromey@creche.cygnus.com>
3389
3390 * gdbtk.tcl (gdbtk_tcl_query): Swap Yes and No buttons.
3391 (update_listing): Use lassign. Use "see" to scroll. Don't need
3392 screen_top, screen_bot, screen_height.
3393 (update_assembly): Use "see" to scroll.
3394 (textscrollproc): Removed.
3395 (create_file_win): Don't use textscrollproc.
3396 (asmscrollproc): Removed.
3397 (create_asm_window): Don't use asmscrollproc.
3398 (create_asm_win): Ditto.
3399 (screen_height, screen_top, screen_bot): Removed.
3400 (run_editor): New proc.
3401 (build_framework): Use it.
3402 (create_file_win, create_source_window): Don't use textscrollproc.
3403 (create_breakpoints_window): Set -xscrollcommand on canvas.
3404 (not_implemented_yet): Default button is 0.
3405 (delete_char): Don't use tk_textBackspace.
3406 (create_command_window): Allow Tk bindings to fire after deleting
3407 character.
3408 (create_command_window): Make Delete delete left, not right.
3409 end-sanitize-gdbtk
3410
3411 Fri Jan 12 07:14:27 1996 Fred Fish <fnf@cygnus.com>
3412
3413 * lynx-nat.c, irix4-nat.c, sparc-nat.c: Include gdbcore.h
3414 to get "struct core_fns" defined.
3415 * Makefile.in (lynx-nat.o, irix4-nat.o, sparc-nat.o):
3416 Are dependent upon gdbcore_h.
3417
3418 Thu Jan 11 23:13:24 1996 Per Bothner <bothner@cygnus.com>
3419
3420 * symfile.c (decrement_reading_symtab): New function.
3421 * symfile.c, symtab.h (currently_reading_symtab): New variable.
3422 * symfile.c (psymtab_to_symtab): Adjust currently_reading_symtab.
3423 * gdbtypes.c (check_typedef): Don't call lookup_symbol if
3424 currently_reading_symtab (since that could infinitely recurse).
3425
3426 Thu Jan 11 17:21:25 1996 Per Bothner <bothner@kalessin.cygnus.com>
3427
3428 * stabsread.c (read_struct_type): Trivial simplification.
3429
3430 * stabsread.c (define-symbol): Use invisible references
3431 for TYPE_CODE_SET and TYPE_CODE_BITSTRING too.
3432 * valops.c (call_function_by_hand): Likewise.
3433 * eval.c (evaluate_subexp_standard): When known, use the formal
3434 parameter type as the expected type when evaluating arg expressions.
3435 * ch-lang.c (evaluate_subexp_chill): Likewise (for MULTI_SUBSCRIPT).
3436
3437 start-sanitize-gdbtk
3438 Thu Jan 11 10:08:14 1996 Tom Tromey <tromey@creche.cygnus.com>
3439
3440 * main.c (main): Disable window interface if --help or --version
3441 specified.
3442
3443 * gdbtk.tcl (FSBox): Don't use tk_listboxSingleSelect.
3444
3445 Changes in sync with expect:
3446 * configure.in (ENABLE_GDBTK): Use CY_AC_PATH_TCL and
3447 CY_AC_PATH_TK.
3448 * aclocal.m4: Replaced with version from expect.
3449 * configure: Regenerated.
3450 end-sanitize-gdbtk
3451
3452 Wed Jan 10 16:08:49 1996 Brendan Kehoe <brendan@lisa.cygnus.com>
3453
3454 * configure.in, configure: Recognize rs6000-*-aix4*.
3455 * config/powerpc/xm-aix.h: Reduce to include "xm-aix4.h".
3456 * config/rs6000/aix4.mh (XM_FILE): Point to xm-aix4.h.
3457 * config/rs6000/xm-aix4.h: New file.
3458 * config/xm-aix4.h: New file.
3459
3460 Wed Jan 10 11:25:37 1996 Fred Fish <fnf@cygnus.com>
3461
3462 From Wilfried Moser <wilfried.moser@aut.alcatel.at>:
3463 * gdbserver/low-linux.c: New file.
3464 * remote.c (remote_read_bytes): Fix aborts on larger packets.
3465
3466 * config/i386/linux.mh (GDBSERVER_DEPFILES, GDBSERVER_LIBS):
3467 Define.
3468 * stabsread.c (define_symbol): If register value is too large,
3469 tell what it is and what max is.
3470
3471 start-sanitize-gdbtk
3472 Wed Jan 10 09:07:22 1996 Tom Tromey <tromey@creche.cygnus.com>
3473
3474 * gdbtk.tcl (gdbtk_tcl_fputs, gdbtk_tcl_fputs_error,
3475 gdbtk_tcl_flush): Use "see", not "yview".
3476 (gdbtk_tcl_query): Use questhead bitmap.
3477 various: Always wrap condition of 'if' in {...}.
3478 (add_breakpoint_frame): Set -value on radiobuttons.
3479 (lassign): New proc.
3480 (add_breakpoint_frame): Use lassign, not series of assignments.
3481 (decr): Made faster.
3482 (interactive_cmd): Use "see", not "yview".
3483 (not_implemented_yet): Use warning bitmap.
3484 (update_expr): Don't allow $expr to be evalled by Tcl.
3485 (create_expr_window): Don't use "focus".
3486 (delete_char, delete_line): Define globally.
3487 (delete_line, delete_char, create_command_window, update_autocmd,
3488 build_framework, create_asm_win, create_file_win): Use "see", not
3489 "yview".
3490 (create_copyright_window, center_window, bind_widget_after_class):
3491 New procs.
3492 (FSBox,create_command_window, create_autocmd_window): Binding
3493 changes for Tk4.
3494 (textscrollproc): Define globally.
3495 (build_framework): tk_menuBar no longer needed. Keys Prior, Next,
3496 Home, End, Up, and Down are all defined by Tk.
3497 (apply_filespec): Use error bitmap in dialog.
3498 (files_command): Don't use tk_listboxSingleSelect.
3499 (files_command): Don't use "uniq" to remove duplicates from a
3500 list.
3501 (update_assembly): Use lassign.
3502 (create_asm_win): Removed redundant bindings.
3503 (listing_window_button_1, file_popup_menu): Use tk_popup.
3504 (ButtonRelease-1 binding): Just remove tag from window; rest
3505 handled by Tk.
3506
3507 * gdbtk.c (gdbtk_query): Use Tcl_Merge to provide quoting.
3508 (call_wrapper): Use Tcl_Eval, not Tcl_VarEval.
3509 (gdbtk_call_command): Ditto.
3510 end-sanitize-gdbtk
3511
3512 Tue Jan 9 09:33:53 1996 Jeffrey A Law (law@cygnus.com)
3513
3514 * hpread.c (hpread_build_psymtabs): Finish Jan 4th
3515 enum namespace -> enum_namespace change.
3516
3517 Tue Jan 9 04:44:47 1996 Wilfried Moser (Alcatel) <moser@rtl.cygnus.com>
3518
3519 * ch-exp.c (parse_primval): In case ARRAY, add missing
3520 FORWARD_TOKEN ().
3521
3522 Mon Jan 8 13:29:34 1996 Stan Shebs <shebs@andros.cygnus.com>
3523
3524 * remote-mips.c (mips_receive_header): Recognize \012 instead
3525 of \n, but write \n when program sends a \012.
3526 * ser-mac.c (mac_input_buffer): Increase size of buffer.
3527
3528 Mon Jan 8 12:00:40 1996 Jeffrey A Law (law@cygnus.com)
3529
3530 * infptrace.c (initialize_infptrace): Move function out of
3531 #ifdef conditional; put code within the function inside an
3532 #ifdef conditional.
3533
3534 * buildsym.c (end_symtab): Remove sort_pending and sort_linevec
3535 arguments. Sorting is now dependent on OBJF_REORDERED. All
3536 callers/references changed.
3537 * dbxread.c (read_ofile_symtab): Correctly determine value for
3538 last_source_start_addr for reordered executables.
3539 (process_one_symbol): Handle N_FUN with no name as an end of
3540 function marker.
3541 * partial-stab.h (case N_FN, N_TEXT): Don't assume CUR_SYMBOL_VALUE
3542 is the high text address for a psymtab.
3543 (case N_SO): Likewise.
3544 (case N_FUN): Handle N_FUN with no name as an end of function
3545 marker.
3546 * minsyms.c (lookup_minimal_symbol_by_pc): Examine all symbols
3547 at the same address rather than a random subset of them.
3548 * coffread.c (coff_symfile_init): Set OBJF_REORDERED.
3549 * elfread.c (elf_symfile_init): Similarly.
3550 * somread.c (som_symfile_init): Similarly.
3551 * xcoffread.c (xcoff_symfile_init): Similarly.
3552
3553 Fri Jan 5 17:46:01 1996 Stu Grossman (grossman@cygnus.com)
3554
3555 * stack.c (print_stack_frame print_frame_info) symmisc.c
3556 (dump_symtab): Change RETURN_MASK_ERROR to RETURN_MASK_ALL so
3557 that catch_errors doesn't get blindsided by QUIT and lose the
3558 cleanup chain. This fixes a problem where ^C while in a
3559 user-defined command sometimes leaves instream NULL and causes a
3560 segfault in command_loop.
3561
3562 Fri Jan 5 13:59:16 1996 Brendan Kehoe <brendan@lisa.cygnus.com>
3563
3564 * configure.in, configure: Add `-ldl -lw' for Solaris linking.
3565
3566 Fri Jan 5 12:02:00 1996 Steve Chamberlain <sac@slash.cygnus.com>
3567
3568 * config/sh/sh.mt, config/powerpc/*.mt, config/pa/hppapro.mt,
3569 config/m68k/monitor.mt, config/h8500/h8500.mt, config/h8300/h8300.mt:
3570 srec.o renamed to dsrec.o.
3571
3572 Thu Jan 4 16:04:54 1996 Stu Grossman (grossman@cygnus.com)
3573
3574 * breakpoint.c (remove_breakpoint): Change error to warning so
3575 that hardware watchpoint removal problems won't leave breakpoint
3576 traps in the target.
3577 start-sanitize-gdbtk
3578 * configure configure.in: Make --enable-gdbtk be the default.
3579 end-sanitize-gdbtk
3580 * remote-e7000.c (e7000_insert_breakpoint,
3581 e7000_remove_breakpoint): Use e7000 based breakpoints, not memory
3582 breakpoints.
3583 * (e7000_wait): Adjust PC back by two when we see a breakpoint to
3584 compensate for e7000 maladjustment.
3585 * sparcl-tdep.c (sparclite_check_watch_resources): Fix logic bug
3586 which prevented hardware watchpoints from working.
3587
3588 Thu Jan 4 10:44:17 1996 Fred Fish <fnf@cygnus.com>
3589
3590 * infptrace.c (udot_info): New function.
3591 (PT_*): Define each individually if that one is not defined.
3592 * rs6000-nat.c (kernel_u_size): New function
3593 Include <sys/user.h> for "struct user"
3594 * alpha-nat.c (kernel_u_size): New function.
3595 Include <sys/user.h> for "struct user"
3596 * sparc-nat.c (kernel_u_size): New function.
3597 Include <sys/user.h> for "struct user"
3598 * i386b-nat.c (kernel_u_size): New function.
3599 * i386v-nat.c (kernel_u_size): New function.
3600 * config/i386/nm-fbsd.h (KERNEL_U_SIZE): Define.
3601 (kernel_u_size): Declare.
3602 * config/i386/nm-linux.h (KERNEL_U_SIZE): Define.
3603 (kernel_u_size): Declare.
3604 * config/sparc/nm-sun4os4.h (KERNEL_U_SIZE): Define.
3605 (kernel_u_size): Declare.
3606 * config/alpha/nm-osf2.h (KERNEL_U_SIZE): Define.
3607 (kernel_u_size): Declare.
3608 * config/rs6000/nm-rs6000.h (KERNEL_U_SIZE): Define.
3609 (kernel_u_size): Declare.
3610
3611 Thu Jan 4 11:00:01 1996 steve chamberlain <sac@slash.cygnus.com>
3612
3613 * mdebugread.c (mylookup_symbol): enum namespace becomes
3614 enum_namespace type.
3615 * symfile.c (add_psymbol_to_list)
3616 (add_psymbol_addr_to_list): Ditto.
3617 * symtab.c (lookup_partial_symbol): Ditto.
3618 (lookup_symbol): Ditto.
3619 (lookup_block_symbol): Ditto.
3620 * win32-nat.c (handle_load_dll): Use incoming dll base.
3621 (child_wait): Catch DLL load errors.
3622 (create_child_inferior): Translated between paths correctly.
3623
3624 Wed Jan 3 23:13:53 1996 Fred Fish <fnf@cygnus.com>
3625
3626 * i386v4-nat.c (supply_gregset, fill_gregset): Subtract NUM_FREGS
3627 from NUM_REGS to get number of general registers that we care about.
3628 * config/i386/tm-i386.h (REGISTER_BYTES): Define in terms
3629 of number of general regs and number of floating point regs.
3630
3631 Wed Jan 3 19:49:54 1996 steve chamberlain <sac@slash.cygnus.com>
3632
3633 * config/i386/tm-win32.h (IN_SOLIB_CALL_TRAMPOLINE): New.
3634 (SKIP_TRAMPOLINE_CODE): New.
3635 * config/i386/xm-win32.h (CANT_FORK): Deleted.
3636 (SLASH*) Changed to use unix style slash.
3637 * symtab.h (namespace enum): becomes typedef to avoid namespace
3638 collision in C++.
3639 * infcmd.c (path_command): Use empty string if PATH name not set.
3640 * i386-tdep.c (skip_trampoline_code): New function.
3641 * srec.c: Renamed dsrec.c to avoid filename collision.
3642 * Makefile.in: Cope with renaming.
3643
3644 Wed Jan 3 13:09:04 1996 Fred Fish <fnf@cygnus.com>
3645
3646 * symmisc.c (print_objfile_statistics): Print memory use statistics
3647 for objfile psymbol, symbol, and type obstacks.
3648
3649 Tue Jan 2 13:41:14 1996 Stan Shebs <shebs@andros.cygnus.com>
3650
3651 * config/mips/nm-irix5.h: Restore.
3652 (TARGET_HAS_HARDWARE_WATCHPOINTS, etc): Define as for Irix 4;
3653 from Lee Iverson <leei@ai.sri.com>.
3654 * config/mips/irix5.mh (NAT_FILE): Use nm-irix5.h.
3655 * config/mips/irix[345].mh (MUNCH_DEFINE): Remove.
3656
3657 For older changes see ChangeLog-95
3658 \f
3659 Local Variables:
3660 mode: indented-text
3661 left-margin: 8
3662 fill-column: 74
3663 version-control: never
3664 End:
This page took 0.146887 seconds and 5 git commands to generate.