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