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