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