3 * remote-udi.c (udi_wait): Make type, instead of name, of first
8 * ser-mac.c: Make obsolete.
9 * Makefile.in (ser-mac.o): Ditto.
13 * go32-nat.c (go32_get_windows_version, print_mem, go32_sysinfo)
14 (read_memory_region, get_descriptor, display_descriptor)
15 (go32_sldt, go32_sgdt, go32_sidt): New functions.
16 (top-level): Include ctype.h, utsname.h, dos.h, and go32.h. Ifdef
17 away `disable' from dos.h, since breakpoint.h defines an enum
18 member of the same name, and GCC 2.7.2 barfs.
19 (_initialize_go32_nat): Provide new commands dos-sysinfo, dos-ldt,
20 dos-gdt, and dos-idt, all of them in the "info" class
24 * procfs.c (create_procinfo): Allocate space for saved_entryset
26 (destroy_one_procinfo): Free space allocated to saved_entryset
35 * symtab.c (main_name): New function.
36 (set_main_name): New function.
41 * dbxread.c (process_one_symbol): Handle the N_MAIN stab by
43 * blockframe.c (inside_main_func): Use main_name instead of
45 * symtab.c (find_main_psymtab): Ditto.
46 * source.c (select_source_symtab): Ditto.
47 * nlmread.c (nlm_symfile_read): Ditto.
48 * rs6000-tdep.c (skip_prologue): Ditto.
52 * TODO: Convert most items into PRs.
56 * lin-lwp.c (status_to_str): New function.
57 (lin_lwp_wait): Use it to print debug messages where appropriate.
61 * i387-tdep.c (print_i387_value): Fix pointer glitch.
65 * lin-lwp.c (count_events_callback): Fix formatting. Turn check
66 commented with "paranoia" into gdb_assert.
67 (select_event_lwp_callback): Likewise.
68 (cancel_breakpoints_callback): Bail out early if LP is the event
69 LWP. Add comment about backup up breakpoints. Fix formatting and
71 (select_event_lwp): Make solely repsonsible for switching event
72 LWP. Fix formatting and remove bogus "ERROR" debug message.
73 Don't backup breakpoints from here.
74 (lin_lwp_wait): Don't touch LP->status, let select_event_lwp
75 handle that. Only call select_event_lwp if we're not waiting for
76 a specific LWP, i.e. when PID == -1. Backup breakpoints from here.
80 * procfs.c (procfs_resume): Silence noisy warning.
84 * lin-lwp.c: Prevent thread starvation by using a monte carlo
85 method to choose which of several event threads to handle next.
87 (stop_wait_callback): Defer pushback of breakpoint events until
88 later; add SIGTRAP events to the queue of unhandled events.
89 Keep calling waitpid until SIGSTOP retrieved. If more than one
90 non-SIGSTOP event is retrieved, push them back onto the process
92 (count_events_callback, select_singlestep_lwp_callback,
93 select_event_lwp_callback, cancel_breakpoints_callback,
94 select_event_lwp): New functions. Implement monte carlo method
95 for selecting which of several SIGTRAP threads to handle next.
96 Push back the breakpoint event for all threads other than the
98 (lin_lwp_wait): Call select_event_lwp to decide which of several
99 sigtrapped lwps to handle next.
100 (resume_callback): Disable code that attempts to handle
101 step_resume breakpoints. Let core gdb handle this.
105 * gdbtypes.h (builtin_type_void_func_ptr): New builtin type.
106 * gdbtypes.c (builtin_type_void_func_ptr): Define the variable.
107 (build_gdbtypes): Initialize it.
108 (_initialize_gdbtypes): Swap it.
112 * mips-tdep.c (mips32_op): Correct offset.
113 (itype_op): Likewise.
114 (itype_rs): Fix formatting.
115 (itype_immediate): Fix formatting.
116 (jtype_op): Correct offset.
117 (jtype_target): Fix formatting.
118 (rtype_op): Correct offset.
119 (rtype_rs): Fix formatting.
120 (rtype_rt): Likewise.
121 (rtype_rd): Likewise.
122 (rtype_shamt): Likewise.
123 (rtype_funct): Likewise.
125 (mips32_next_pc): Fix formatting and comments. Recognize
126 coprocessor 1 branches. Check the correct field for BLT family
127 branches. Use itype_rt instead of itype_rs for the second register
128 of a BNE or BNEL branch. Move (unreachable) default case.
132 * ui-out.h (struct ui_out_impl): Add field is_mi_like_p.
133 (ui_out_is_mi_like_p): Declare.
134 * ui-out.c (ui_out_is_mi_like_p): Define.
135 (default_ui_out_impl): Initialize is_mi_like_p to zero.
136 * cli-out.c (cli_ui_out_impl): Ditto.
137 * breakpoint.c (print_it_typical): Use ui_out_is_mi_like_p.
138 (watchpoint_check, print_one_breakpoint, mention): Ditto.
139 * infrun.c (print_stop_reason, normal_stop): Ditto.
143 * mips-tdep.c (mips_software_single_step): New function.
144 * config/mips/tm-mips.h: Add prototype for
145 mips_software_single_step.
149 * ppc-linux-nat.c (supply_gregset): Use elf_greg_t instead
151 (fill_gregset): Likewise.
155 * objfiles.c (open_mapped_file): Use lbasename instead of
160 * d10v-tdep.c (d10v_frame_chain, d10v_frame_init_saved_regs,
161 show_regs, d10v_read_pc, d10v_write_pc, d10v_read_sp,
162 d10v_write_sp, d10v_write_fp, d10v_read_fp,
163 d10v_push_return_address): Call the functions d10v_make_daddr,
164 d10v_make_iaddr, d10v_convert_iaddr_to_raw, and
165 d10v_convert_daddr_to_raw, not the global macros D10V_MAKE_DADDR,
166 D10V_MAKE_IADDR, D10V_CONVERT_IADDR_TO_RAW, and
167 D10V_CONVERT_DADDR_TO_RAW.
169 * dwarf2read (dwarf2_build_psymtabs_hard): Doc fix.
173 * config/i386/xm-go32.h (HOST_I386): Removed.
174 * config/i386/xm-linux.h (HOST_I386): Removed.
178 * i387-tdep.c (print_i387_value): Add extra space after final full
183 * TODO (5.1): Update. Doco changes committed.
187 * config/arm/tm-arm.h: Include "floatformat.h".
191 * i387-tdep.c: Include "gdb_assert.h".
192 (print_i387_value): Use extract_floating to extract the FP value
193 from a zero padded local buffer.
197 * TODO: Delete all thread items. The thread code was overhauled.
201 * memattr.c (create_mem_region): Move n to next memory region,
202 to avoid infinite loop.
204 * memattr.h: Add copyright statement.
209 * dwarf2read.c (struct partial_die_info): New member: has_pc_info.
210 (read_partial_die): Delete fourth argument; we return this info in
211 the struct partial_die_info object itself now.
212 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Use the
213 has_pc_info field of the partial die struct, rather than passing a
214 variable by reference to read_partial_die.
216 * dwarf2read.c (dwarf2_build_psymtabs_hard): Remove extraneous
217 code in loop condition.
221 * thread_db (find_new_threads_callback, thread_db_thread_alive,
222 attach_thread): Update comments.
226 * thread-db.c (attach_thread): Check for TD_THR_ZOMBIE in addition
227 to TD_THR_UNKNOWN when looking for defunct zombie threads.
228 (thread_db_thread_alive): Ditto.
229 (find_new_threads_callback): Ditto.
233 * MAINTAINERS: Add myself to the write-after-approval list.
237 * solib-svr4.c: Include "elf/mips.h".
238 (elf_locate_base): Make DT_MIPS_RLD_MAP block unconditional.
242 * dwarf2read.c (read_comp_unit, sibling_die, dump_die,
243 dump_die_list, store_in_ref_table, follow_die_ref): Make these
244 static; they're private functions.
248 * coffread.c (coff_symfile_read): Parse DWARF2 info if present.
252 * TODO: Add import of readline 4.2 as a gdb 5.2 task.
256 * config/djgpp/fnchange.lst: Sort.
260 * config/djgpp/fnchange.lst: Rename mi0-var-block.exp,
261 mi0-var-cmd.exp, mi0-var-child.exp and mi0-var-display.exp.
265 * MAINTAINERS: Add myself to the write-after-approval list.
269 * remote-array.c (SWAP_TARGET_AND_HOST): Delete macro.
270 (get_hex_word): Don't use HOST_BYTE_ORDER.
271 (array_fetch_registers): Add variable ``reg''. Use
272 store_unsigned_integer to byte-swap the register. Delete unused
277 * MAINTAINERS: Add Per Bothner to Java maintainers.
281 * rdi-share/unixcomm.c (SERIAL_PREFIX): Always provide a default.
282 * rdi-share/hostchan.h (__unix): Hack, provide a default value.
283 * rdi-share/host.h (__unix): Hack, define when __NetBSD__.
285 * MAINTAINERS: Update. arm-elf builds.
289 * d10v-tdep.c (d10v_ts2_dmap_register): Doc fix.
291 * d10v-tdep.c (d10v_frame_chain_valid, d10v_use_struct_convention,
292 d10v_breakpoint_from_pc, d10v_register_byte,
293 d10v_register_raw_size, d10v_register_virtual_size,
294 d10v_register_virtual_type, d10v_register_convertible,
295 d10v_register_convert_to_virtual, d10v_register_convert_to_raw,
296 d10v_make_daddr, d10v_make_iaddr, d10v_daddr_p, d10v_iaddr_p,
297 d10v_convert_iaddr_to_raw, d10v_convert_daddr_to_raw,
298 d10v_store_struct_return, d10v_store_return_value,
299 d10v_extract_struct_value_address, d10v_frame_saved_pc,
300 d10v_saved_pc_after_call, d10v_pop_frame, d10v_skip_prologue,
301 d10v_frame_chain, d10v_frame_init_saved_regs,
302 d10v_init_extra_frame_info, d10v_read_pc, d10v_write_pc,
303 d10v_read_sp, d10v_write_sp, d10v_write_fp, d10v_read_fp,
304 d10v_push_return_address, d10v_push_arguments,
305 d10v_extract_return_value): Make these functions static.
309 From Fernando Nasser:
310 * infrun.c (handle_inferior_event): Handle "nexti" inside function
315 * infrun.c (handle_inferior_event): Replace prev_pc test in all
316 calls to bpstat_stop_status (removed in 1999-09-24). This test
317 helps distinguish stepping over a breakpoint trap from stepping
318 thru a jump to the instruction after a breakpoint trap.
319 (handle_inferior_event): Don't bother writing the PC if
320 DECR_PC_AFTER_BREAK is zero (optimization).
321 * breakpoint.c (bpstat_stop_status): Add comment explaining the
322 purpose and usage of the "not_a_breakpoint" argument in computing
323 the breakpoint address.
328 * monitor.c (setmem_resp_delim_pattern): New regexp pattern.
329 (setreg_resp_delim_pattern): Likewise.
330 (setmem_resp_delim_fastmap): New buffer.
331 (setreg_resp_delim_fastmap): Likewise.
332 (monitor_open): Initialize above regexp if they are defined.
333 (monitor_write_memory): Use regexp to check the result of write.
334 (monitor_store_register): Likewise to check result of register set.
339 * coff-solib.c: Include symfile.h and objfiles.h to make
344 * configure.in (--enable-gdbmi): Enable by default.
345 * configure: Regenerate.
351 * solib-osf.c (osf_in_dynsym_resolve_code): Add a comment
352 explaining the consequences of always returning zero. No code
358 * defs.h (enum target_signal): Add TARGET_SIGNAL_REALTIME_65
359 to TARGET_SIGNAL_REALTIME_127.
360 * target.c (struct signals): Add SIG63 to SIG127.
361 (target_signal_from_host): Handle up to 127 signals.
362 (do_target_signal_to_host): Likewise.
366 * remote-sds.c (sds_start_remote): Change type of ``c'' to int
367 from possibly unsigned char.
371 * ser-ocd.c: Delete file.
372 * Makefile.in (ALLDEPFILES): Remove ser-ocd.c
373 (ser-ocd.o): Delete target.
379 * MAINTAINERS (Write After Approval): Sort.
380 (Past Maintainers): Daniel Berlin stepped down as C++ maintainer.
384 * breakpoint.c (breakpoint_1): Always output the breakpoint
385 headings. Leave it to ui-out to decide which
389 * stack.c (print_frame): For ui_out, output a list of arguments.
393 * MAINTAINERS (paper trail): Update.
397 * infrun.c: Eliminate the "thread_step_needed" state variable,
398 and replace it with a relatively simple test in resume.
399 (resume): Replace thread_step_needed logic with a test for
400 stepping, breakpoint_here_p and breakpoints_inserted.
401 Move CANNOT_STEP_BREAKPOINT logic to after thread_step logic.
402 (proceed): Discard thread_step_needed logic.
403 (wait_for_inferior, fetch_inferior_event, handle_inferior_event):
404 Discard thread_step_needed logic.
408 * remote-rdi.c (arm_rdi_wait): Fix return type in prototype.
409 * rdi-share/host.h: Add missing parenthesis in conditional.
413 * configure.in: include nlist.h when checking for member som_addr
415 * configure: regenerate.
419 * cli-out.c (cli_out_new): Initialize new structure member
424 * ui-out.h (ui_out_table_header): Add parameter ``col_name''.
425 (table_header_ftype): Ditto.
426 * cli-out.c (cli_table_header): Update.
427 * ui-out.c (ui_out_table_header): Update.
428 (uo_table_header): Update.
429 (default_table_header): Update.
430 (append_header_to_list): Update.
431 (struct ui_out_header): Add field ``col_name''.
432 (append_header_to_list): Use xstrdup. Initialize col_name.
433 * breakpoint.c (breakpoint_1): Pass COL_NAME to
438 * cli-out.c: Include "gdb_assert.h'.
439 (struct ui_out_data): Add field ``suppress_output.
440 (cli_table_begin): When NR_ROWS is zero, suppress_output.
441 (cli_table_end): Clear suppress_output.
442 (cli_table_body): Check suppress_output.
443 (cli_table_header, cli_begin): Ditto.
444 (cli_end, cli_field_int, cli_field_skip): Ditto.
445 (cli_field_string, cli_field_fmt, cli_spaces): Ditto.
446 (cli_text, cli_message, cli_wrap_hint): Ditto.
447 * breakpoint.c (breakpoint_1): Close the ui_out table before
448 printing the breakpoint not found message.
452 * ui-out.c (ui_out_table_begin): Add parameter ``nr_rows''.
453 (default_table_begin): Ditto.
454 (uo_table_begin): Ditto.
455 * cli-out.c (cli_table_begin): Ditto.
456 * ui-out.h (ui_out_table_begin): Update
457 (table_begin_ftype): Update.
458 * breakpoint.c (breakpoint_1): Pass nr_printable_breakpoints to
463 * breakpoint.c (breakpoint_1): Restructure. Compute the
464 nr_printable_breakpoints. Move the header output to before the
465 main print breakpoints loop.
466 (user_settable_breakpoint): New function.
470 * infrun.c, breakpoint.c: Use strncmp as the "mi" test. Allow,
471 "mi", "mi0" and "mi1".
475 * gdbarch.sh: Generate an error when conflicting macro
476 definitions. Generate an error when both pure multi-arch and
478 * gdbarch.h, gdbarch.c: Regenerate.
479 * defs.h (GDB_MULTI_ARCH_TM): Rewrite definition.
483 * config/sparc/tm-sun4sol2.h (GDB_MULTI_ARCH): Down grade to
484 GDB_MULTI_ARCH_PARTIAL from two.
489 * cli/cli-script.c (free_command_lines): Reset list pointer.
493 * arch-utils.c (init_frame_pc_default): New function
494 * arch-utils.h (init_frame_pc_default): Declare.
495 * gdbarch.sh (INIT_FRAME_PC): Default to init_frame_pc_default and
496 not init_frame_pc_noop.
497 * gdbarch.h, gdbarch.c: Re-generate.
498 * blockframe.c (INIT_FRAME_PC): Delete macro definition.
499 * mips-tdep.c (mips_gdbarch_init): Set init_frame_pc to
504 * gdbarch.c: Regenerate. Out-of-sync with gdbarch.sh.
508 * gdbarch.sh (CANNOT_FETCH_REGISTER): Multi-arch.
509 (CANNOT_STORE_REGISTER): Ditto.
510 * infptrace.c (CANNOT_FETCH_REGISTER): Delete definition.
511 (CANNOT_STORE_REGISTER): Ditto.
512 * regcache.c (CANNOT_STORE_REGISTER): Ditto.
513 * lynx-nat.c (CANNOT_STORE_REGISTER): Ditto.
514 * arch-utils.h (cannot_register_not): Define.
515 * arch-utils.c (cannot_register_not): Declare.
519 * gdbarch.sh: Clarify pre/post default
520 (INIT_FRAME_PC_FIRST, INIT_FRAME_PC): Multiarch.
521 * blockframe.c (get_prev_frame): Remove #ifdef from around
522 INIT_FRAME_PC_FIRST call.
523 * arch-utils.c (init_frame_pc_noop): Define.
524 * arch-utils.h (init_frame_pc_noop): Declare.
525 * config/mips/tm-mips.h (INIT_FRAME_PC_FIRST): Delete.
526 (INIT_FRAME_PC, mips_init_frame_pc_first): Ditto.
527 * mips-tdep.c (mips_init_frame_pc_first): Make static.
528 (mips_gdbarch_init): Initialize init_frame_pc_first.
529 (mips_dump_tdep): Update.
533 * infrun.c (context_switch): New function. Abstract the operation
534 of saving and restoring infrun's state when switching threads.
535 (handle_inferior_event): Normalize the handling of the 'thread hop'
536 event (when the wrong thread hits a thread-specific breakpoint,
537 and we need to solo-step that thread past the breakpoint).
538 Call keep_going, instead of target_resume. Handle the subsequent
539 singlestep-trap as a normal event instead of just resuming.
543 * arch-utils.c (core_addr_identity): New function. Rename
544 default_convert_from_func_ptr_addr.
545 * gdbarch.sh (CONVERT_FROM_FUNC_PTR_ADDR): Update.
546 (ADDR_BITS_REMOVE): Define. Default to core_addr_identity.
547 * defs.h (ADDR_BITS_REMOVE): Delete macro definition.
548 * config/mips/tm-mips.h (ADDR_BITS_REMOVE): Delete definition.
549 * mips-tdep.c (mips_addr_bits_remove): Make static.
550 (mips_gdbarch_init): Initialize addr_bits_remove.
555 * configure.tgt: Add S/390 31 & 64 bit target configuration.
556 * configure.host: Ditto for host.
560 * gdbarch.sh (EXTRACT_STRUCT_VALUE_ADDRESS_P): Delete definition.
561 (EXTRACT_STRUCT_VALUE_ADDRESS): Change to a function with
563 * gdbarch.h, gdbarch.c: Regenerate.
564 * values.c (value_being_returned): Change the reference to
565 EXTRACT_STRUCT_VALUE_ADDRESS_P to a function call.
569 * MAINTAINERS: Add Paul Hilfinger and Joel Brobecker to the
570 Write After Approval list.
574 * remote.c (show_remote_protocol_qSymbol_packet_cmd,
575 set_remote_protocol_qSymbol_packet_cmd): New functions.
576 (init_all_packet_configs, show_remote_cmd): Add qSymbol packet.
577 (remote_check_symbols): New function. Implement qSymbol packet,
578 allowing target to request symbol lookup service from gdb.
579 (remote_open_1, remote_async_open_1): Call remote_check_symbols,
580 allowing symbol lookup from exec_bfd on connection to target.
581 (remote_new_objfile): New function. Catch new objfile notifications
582 from shared library module, and call remote_check_symbols.
583 (_initialize_remote): Hook remote_new_objfile into the shared
584 library notification chain. Add "set remote symbol-lookup" command.
588 * tracepoint.c (trace_command): We now have tracepoint
589 events. Get rid of those ugly hooks.
590 (tracepoint_operation): Likewise.
591 (trace_pass_command): Likewise.
595 * gdbthread.h (struct thread_info): Add new fields:
596 current_line, current_symtab, step_sp, for saved infrun state.
597 * thread.c (save_infrun_state, load_infrun_state): Save and
598 restore current_line, current_symtab, and step_sp.
599 (add_thread): Rather than adding assignments to initialize
600 the new fields, just use memset (tp, 0, sizeof (*tp).
601 This way future new fields will not be overlooked.
602 * infrun.c (handle_inferior_event): Save and restore save_sp,
603 current_line, and current_symtab when switching threads.
607 * MAINTAINERS: Add Andrew Cagney as co-maintainer of
612 * symtab.c (lookup_symtab_1): Replace basename with lbasename.
613 (lookup_partial_symtab, file_matches): Ditto.
614 (make_source_files_completion_list): Ditto.
615 (make_file_symbol_completion_list): Ditto. Make local char*
616 variable ``tail'' constant.
617 (make_source_files_completion_list): Ditto with ``base_name''.
618 * source.c (open_source_file): Use lbasename. Make ``p'' const
623 * config/i386/xm-go32.h (SLASH_P, ROOTED_P, SLASH_CHAR)
624 (SLASH_STRING): Remove unised definitions.
625 * config/i386/xm-cygwin.h: Likewise.
629 * ui-out.c (ui_out_list_begin): Add parameter ``id''.
630 (make_cleanup_ui_out_list_begin_end): Ditto. Open the list.
631 * ui-out.h: Update declarations.
635 * source.c (openp): Make parameters ``path'' and ``string''
637 (openp): Use alloca to safely duplicate ``string''. Make local
638 variables ``p'' and ``p1'' constant. Delete char* casts.
641 * symtab.c (lookup_symtab_1): Make parameter ``name'' constant.
642 (lookup_symtab, lookup_partial_symtab): Ditto.
643 * symtab.h (lookup_symtab, lookup_partial_symtab): Update.
647 * ui-out.h (ui_out_table_begin): Make char* parameters constant.
648 (ui_out_table_header, ui_out_field_int): Ditto.
649 (ui_out_field_core_addr, ui_out_field_string): Ditto.
650 (ui_out_field_stream, ui_out_field_fmt): Ditto.
651 (ui_out_field_skip, ui_out_text, ui_out_message): Ditto.
652 * ui-out.c (ui_out_table_begin, ui_out_table_header): Update.
653 (ui_out_field_core_addr, ui_out_field_stream): Update.
654 (ui_out_field_string, ui_out_field_fmt): Update.
655 (ui_out_text, ui_out_message): Update.
656 (append_header_to_list): Make char* parameters constant.
657 (uo_table_header, uo_table_begin): Ditto.
658 (uo_field_int, uo_field_skip): Ditto.
659 (uo_field_string, uo_field_fmt): Ditto.
660 (uo_text, uo_message): Ditto.
664 * completer.c (gdb_completer_loc_break_characters): New variable.
665 (line_completion_function): If we are completing on locations,
666 back up the start of word pointer past all characters which can
667 appear in a location spec.
668 (location_completer): New function.
670 * completer.h: Add prototype for location_completer.
672 * symtab.c (make_source_files_completion_list)
673 (add_filename_to_list, not_interesting_fname): New functions.
674 (filename_seen): New function, body extracted from
675 output_source_filename.
676 (output_source_filename): Call filename_seen to check if the file
678 (make_symbol_completion_list): If TEXT includes a
679 double-quoted string, return an empty list, not NULL.
680 (make_file_symbol_completion_list): New function, similar to
681 make_symbol_completion_list but with an additional argument
684 * symtab.h (make_file_symbol_completion_list)
685 (make_source_files_completion_list): Add prototypes.
687 * breakpoint.c (_initialize_breakpoint): Make location_completer
688 be the completion function for all commands which set breakpoints
690 (top-level): #include "completer.h".
692 * tracepoint.c (_initialize_tracepoint): Make location_completer
693 be the completion function for the "trace" command.
694 (top-level): #include "completer.h".
696 * printcmd.c (_initialize_printcmd): Make location_completer be
697 the completion function for the "print", "inspect", "call", and
698 "disassemble" commands.
699 (top-level): #include "completer.h".
701 * infcmd.c (_initialize_infcmd): Make location_completer be the
702 completion function for the "go", "jump", and "until" commands.
703 (top-level): #include "completer.h".
707 * gnu-regex.c: Eliminate obsolete check for _MSC_VER.
708 * utils.c (notice_quit): Remove dummy function only used for _MSC_VER.
709 * values.c (unpack_double): Remove obsolete check for _MSC_VER.
713 * ser-e7kpc.c: Ditto. Define WIN32_LEAN_AND_MEAN under _WIN32, for
715 (get_ds_base): Remove _MSC_VER version of this function.
716 * nindy-share/ttyflush.c: Ditto.
717 * rdi-share/host.h: Ditto.
718 * ser-go32.c (dos_readchar): Remove call to obsolete function.
719 * remote-sim.c (gdb_os_poll_quit): Ditto.
720 * remote-e7000.c (expect): Remove obsolete #if 0'ed code.
722 * main.c (captured_main): Eliminate special Cygwin checks.
723 * ser-tcp.c: Remove unneeded __CYGWIN__ guard against system include.
727 * Makefile.in (gdbcmd_h): Add ui_out_h.
728 (breakpoint.o, infcmd.o, main.o, printcmd.o, stack.o): Ditto.
729 (thread.o, top.o): Ditto.
731 * ui-out.h (table_begin_ftype): Make string parameters constant.
732 (table_header_ftype): Ditto.
733 (field_int_ftype): Ditto.
734 (field_skip_ftype): Ditto.
735 (field_string_ftype): Ditto.
736 (field_fmt_ftype): Ditto.
738 (message_ftype): Ditto.
739 * cli-out.c (cli_table_begin): Ditto.
740 (cli_table_header): Ditto.
741 (cli_field_int): Ditto.
742 (cli_field_skip): Ditto.
743 (cli_field_string): Ditto.
744 (cli_field_fmt): Ditto.
746 (cli_message): Ditto.
747 (out_field_fmt): Ditto.
748 * ui-out.c (default_table_begin): Ditto.
749 (default_table_header): Ditto.
750 (default_field_int): Ditto.
751 (default_field_skip): Ditto.
752 (default_field_string): Ditto.
753 (default_field_fmt): Ditto.
754 (default_text): Ditto.
755 (default_message): Ditto.
759 * breakpoint.c (delete_breakpoint): Pass mark_inserted to
760 remove_breakpoint, so that the subsequent test for
761 bpt->inserted will succeed, and duplicates will be fixed up.
765 * dwarf2read.c (set_cu_language): Handle DW_LANG_Java.
769 * tracepoint.c (tracepoint_opertation): Add ui event
771 (trace_pass_command): Ditto.
775 * MAINTAINERS (Write After Approval): Note the entry criteria.
776 (HP/PA): Jeff Law stepped down
780 * gdbarch.sh: Make sure that '[' doesn't interpret interesting
781 variable values as operators.
785 * gdb-events.sh: Fix quote escaping which was obsoleted
790 * gdb-events.sh: Make if statements and tests
791 a little more portable.
792 Don't use shell's echo command to put strings containing
793 escaped characeters into a file -- different flavors of /bin/sh
794 require differnt levels of escaping. Use cat <<EOF instead.
795 Our internal field separator is a colon. Change all
796 commands which assume it is a space.
800 * lin-lwp.c (struct lwp_info): Add member `resumed'.
801 (iterate_over_lwps): Make sure we can handle CALLBACK deleting the
803 (lin_lwp_attach): Mark LWP as resumed to make sure the fake
805 (resume_clear_callback): New function.
806 (resume_set_callback): New function.
807 (lin_lwp_resume): Mark all LWP's that we're going to resume as
808 resumed, and unmark all others.
809 (status_callback): Only report a pending wait status if we pretend
810 that LP has been resumed.
811 (resumed_callback): New function.
812 (lin_lwp_wait): Add assertions to check that LWP's are properly
813 marked as resumed. Partially revert 2001-05-25 patch by Michael
814 Snyder: do not resume all threads. Add comment explaining the
815 problems associated with this bit of code.
819 * MAINTAINTERS: Syd Polk is stepping down from
820 maintaining libgui. I am replacing him.
824 * config/mips/tm-irix6.h: New file.
826 * config/mips/irix6.mh: New file.
828 * config/mips/irix6.mt: New file.
830 * config/mips/xm-irix6.h: New file.
832 * config/mips/nm-irix6.h: New file.
834 * mips-tdep.c (mips_gdbarch_init) <MIPS_ABI_N32>: Set up the
835 disassembler info in tm_print_insn_info as appropriate for the N32
836 ABI. Force N32 ABI to be the default if the CPU is R8000 or
839 * configure.tgt (mips*-sgi-irix6*): Map to irix6.
841 * configure.host (mips*-sgi-irix6*): Ditto.
845 * gnu-v3-abi.c: Include "gdb_assert.h".
846 (build_gdb_vtable_type): Replace abort() with gdb_assert().
850 * cp-abi.h: Rearrange code to put documentation comments above the
851 functions we export. The actual function table itself simply
852 refers to those functions. Minor doc fixes.
854 * gdbarch.sh: Changes to effect the following:
855 * gdbarch.c (initialize_non_multiarch): New function.
856 * gdbarch.h (initialize_non_multiarch): New declaration.
857 * arch-utils.c (initialize_current_architecture): For
858 non-multiarch configurations, call initialize_non_multiarch.
862 * symfile.c (compare_psymbols): Replace PTR with void*. Delete
864 (compare_symbols): Ditto.
868 * arch-utils.c (generic_prepare_to_proceed): Allow for having
869 stopped due to a Ctrl-C as well as breakpoints.
871 * hppa-tdep.c (hppa_prepare_to_proceed): Add FIXME as this may not
872 support thread switches after Ctrl-C.
873 * lin-lwp.c (lin_lwp_prepare_to_proceed): Ditto.
874 * linux-thread.c (linuxthreads_prepare_to_proceed): Ditto.
875 * m3-nat.c (mach3_prepare_to_proceed): Ditto.
879 * gdbarch.sh, gdbarch.c: Revert change of 2001-06-01; all
880 per-architecture data should be registered at initialization time,
881 before any gdbarch objects get used, so the generality is
886 * gdb-events.sh (function_list): Add tracepoint_create,
887 tracepoint_delete, and tracepoint_modify events.
888 * gdb-events.c: Regenerated.
889 * gdb-events.h: Regenerated.
893 * gdb-events.sh: Update copyrights.
894 Change free to xfree.
895 * gdb-events.c: Regenerated.
896 * gdb-events.h: Regenerated.
900 * source.c (mod_path, openp): Use #ifdef HAVE_DOS_BASED_FILE_SYSTEM
901 instead of #if HAVE_DOS_BASED_FILE_SYSTEM.
902 * completer.c: Ditto.
903 * cli/cli-cmds.c (cd_command): Ditto.
907 * mips-tdep.c (show_mipsfpu_command): Remove unused variable msg.
908 (mips_set_processor_type_command): Remove unused variable j.
909 (mips_breakpoint_from_pc): Declare breakpoint instruction
910 sequences as unsigned char, to avoid compiler warnings.
912 * source.c (mod_path, openp): Use HAVE_DOS_BASED_FILE_SYSTEM
913 instead of system-specific define's like _WIN32 and __MSDOS__.
914 Use IS_DIR_SEPARATOR and IS_ABSOLUTE_PATH instead of SLASH_P and
916 (top-level): #include "filenames.h".
918 * solib.c (solib_open): Use IS_DIR_SEPARATOR and IS_ABSOLUTE_PATH
919 instead of SLASH_CHAR, ROOTED_P and SLASH_P.
920 (top-level): #include "filenames.h".
922 * defs.h (SLASH_P, SLASH_CHAR, ROOTED_P): Remove definitions.
923 (SLASH_STRING): Define only for _WIN32.
925 * completer.c: Use HAVE_DOS_BASED_FILE_SYSTEM instead of
928 * cli/cli-cmds.c (cd_command): Use IS_DIR_SEPARATOR and
929 IS_ABSOLUTE_PATH instead of SLASH_P and ROOTED_P. Replace
930 system-specific ifdefs with HAVE_DOS_BASED_FILE_SYSTEM.
931 (top-level): #include "filenames.h".
933 * go32-nat.c (go32_wait): Change the return value to ptid_t.
935 * config/djgpp/fnchange.lst: Add two new files in the
936 gdb/testsuite/gdb.c++/ directory to the remapped names.
938 * config/djgpp/djconfig.sh (lt_cv_sys_max_cmd_len): Set to 12KB.
942 Expand the gdbarch per-architecture data vector as needed, rather
943 than requiring that all per-architecture data be registered before
944 the first gdbarch object is allocated.
945 * gdbarch.sh: Changes to effect the following:
946 * gdbarch.c (alloc_gdbarch_data, init_gdbarch_data): Delete
947 declarations and definitions.
948 (check_gdbarch_data): New function, and declaration.
949 (gdbarch_alloc): Don't call alloc_gdbarch_data; leaving the fields
951 (free_gdbarch_data): Tolerate a null data pointer. Free only
952 those data items gdbarch->data actually has allocated.
953 (set_gdbarch_data, gdbarch_data): Call check_gdbarch_data.
954 (gdbarch_update_p): No need to call init_gdbarch_data.
958 * ia64-tdep.c (is_float_or_hfa_type_recurse): Call check_typedef()
959 on types that we wish to recurse on.
960 (slot_alignment_is_next_even): New function.
961 (ia64_push_arguments): Call slot_alignment_is_next_even() to
962 examine the type in order to decide if it's necessary to skip
967 * thread.c (delete_step_resume_breakpoint): New function.
968 Maintain internal consistency of the thread list while deleting
969 a step_resume_breakpoint.
970 * gdbthread.h (delete_step_resume_breakpoint): Export.
971 * breakpoint.c (bpstat_find_step_resume_breakpoint):
972 Make thread-aware: don't return a step_resume_breakpoint
973 for the wrong thread.
974 * infrun.c (wait_for_inferior): Call delete_step_resume_breakpoint
975 instead of delete_breakpoint_current_contents.
976 (fetch_inferior_event): Ditto.
977 (handle_inferior_event): Call delete_step_resume_breakpoint
978 instead of delete_breakpoint.
979 * infrun.c (handle_inferior_event): After singlestepping over a
980 thread-specific breakpoint, use currently_stepping() to decide
981 whether to step or continue.
985 * gnu-v3-abi.c (gnu_v3_abi_ops, vtable_type_gdbarch_data): Make
986 these static --- there's no reason other files should use these.
988 * partial-stab.h (case N_FUN: case 'f':, case N_FUN: case 'F':)
991 * partial-stab.h: New complaint: function_outside_compilation_unit.
992 (case N_FUN: case 'f':, case N_FUN: case 'F':): If pst is zero,
993 complain, and don't try to set pst's start address.
997 * ia64-linux-tdep.c (IA64_LINUX_SIGCONTEXT_OFFSET): Revise to
998 match the location at which the kernel is placing the sigcontext
1001 * ia64-tdep.c (max_skip_non_prologue_insns): New static global.
1002 (refine_prologue_limit): New function.
1003 (examine_prologue): Further limit number of instructions
1004 scanned by calling refine_prologue_limit(). Revise way in
1005 which the end of prologue address is computed for frameless
1010 * partial-stab.h: Revert previous patch.
1014 * partial-stab.h: Consistently guard against pst being NULL.
1018 * symfile.c (compare_psymbols, compare_symbols): Declare using
1019 PTR, as in the definition.
1020 * minsyms.c (compare_minimal_symbols): Likewise.
1021 * coffread.c (find_targ_sec): Likewise.
1022 * elfread.c (free_elfinfo, elf_locate_sections): Likewise.
1023 * mipsread.c (alphacoff_locate_sections): Likewise.
1024 * mdebugread.c (compare_blocks): Likewise.
1028 * solib.c (update_solib_list): Move target_resize_to_sections()
1029 into solib_map_sections() loop.
1030 (info_sharedlibrary_command): Try bfd_arch_bits_per_address() if
1031 bfd_get_arch_size() fails.
1035 * Makefile.in (osfsolib.c, osfsolib.o): Rename to solib-osf.c and
1037 * config/alpha/alpha-osf1.mh (NATDEPFILES): Replace osfsolib.o
1038 with solib-osf.o and solib.o.
1039 * config/alpha/alpha-osf2.mh: Likewise.
1040 * config/alpha/alpha-osf3.mh: Likewise.
1041 * solib-osf.c: New file, renamed and largely rewritten from
1046 * lin-lwp.c (lin_lwp_attach_lwp): Call stop_wait_callback,
1047 to consume the SIGSTOP generated by PTRACE_ATTACH.
1048 (stop_wait_callback): If a SIGTRAP or a SIGINT event is consumed,
1049 try again to get the SIGSTOP event.
1050 (lin_lwp_wait): Resume all threads when ignoring a signal.
1051 This will insure that newly attached threads get resumed.
1052 * lin-lwp.c (stop_wait_callback): Discard redundant SIGINT events.
1053 * remote.c (remote_write_bytes): Update 'p' packet pointer.
1057 * gnu-v2-abi.c (gnuv2_virtual_fn_field): There's no need to clear
1058 VALUE_POINTED_TO_OFFSET here; if value_cast doesn't return a
1059 useful value, then we should fix that instead.
1063 * solist.h (struct so_list): Document the requirement that
1064 current_sos initialize some fields to 0.
1068 * gnu-nat.c: Include <ctype.h>.
1069 (gnu_pid_to_exec_file): Add PID parameter.
1070 (set_sig_thread_cmd): Use PIDGET on return value from
1072 (proc_string): Use MERGEPID to construct argument to
1077 * breakpoint.c (breakpoint_address_is_meaningful): New function.
1078 (check_duplicates): Don't compare non-meaningful addresses.
1082 * thread-db.c: Allow for defunct zombie threads.
1083 (attach_thread): Do not attempt to attach zombie thread.
1084 (thread_db_thread_alive): Return false for defunct zombie thread.
1085 (find_new_threads_callback): Don't add defunct zombie thread to list.
1089 Add support for the GNU V3 C++ ABI.
1090 (Includes changes by Dan Berlin.)
1092 * gnu-v3-abi.c: New file.
1093 * minsyms.c: #include "value.h" and "cp-abi.h".
1094 (install_minimal_symbols): Check the minimal symbol table for
1095 symbols that look mangled in the V3 style, and select the V3 ABI
1097 * Makefile.in (SFILES): Add gnu-v3-abi.c.
1098 (COMMON_OBS): Add gnu-v3-abi.o.
1099 (gnu-v3-abi.o): Add new rule.
1100 (minsyms.o): Depend on $(cp_abi_h) and $(value_h).
1104 * values.c (value_primitive_field): If we're extracting a base
1105 class, then the type of the result should be the base class being
1106 extracted, not the type of which it is a base class.
1108 * value.h (struct value): Doc fix, and rearrange members to place
1109 them near their explanations.
1113 * remote.c (remote_async_wait): Added new variable fieldsize.
1114 Add fieldsize (return value of hex2bin) to string pointer p.
1118 * m68hc11-tdep.c (m68hc11_pop_frame): Fix stack pointer computation.
1119 (m68hc11_analyze_instruction): Update the pc correctly.
1120 (m68hc11_guess_from_prologue): Take into account the stack correction
1121 for the saving address.
1125 Changes by Jim Ingham:
1127 * values.c (value_change_enclosing_type): New function. If the
1128 new enclosing type is larger than the old one, we need to allocate
1130 * value.h: Add value_change_enclosing_type prototype.
1131 * valops.c (value_cast): Use it.
1132 (value_assign): Use it.
1133 (value_addr): Use it.
1134 (value_ind): Use it.
1135 (value_full_object): Use it.
1139 * values.c (value_static_field): Handle static fields that have a
1144 * blockframe.c (create_new_frame): Zero all the fields via memset,
1145 rather than zeroing them one by one.
1149 * top.c (user_args): Remove unused declaration.
1153 * infcmd.c (do_registers_info): Move alloca outside of loop.
1157 * remote.c (remote_wait): Added new variable fieldsize.
1158 Add fieldsize (return value of hex2bin) to string pointer p.
1162 * sparc-tdep.c (sparc_gdbarch_init): Get the architecture from
1167 * lin-lwp.c (detach_callback, lin_lwp_wait, lin_lwp_pid_to_str):
1168 Adjust format strings for printing LWPs to account for the fact
1169 that the type returned by GET_LWP() is now a long instead of an
1174 * inferior.h (null_ptid, minus_one_ptid): New variable declarations.
1175 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp)
1176 (ptid_get_tid, ptid_equal): New function declarations.
1177 * infrun.c (null_ptid, minus_one_ptid): New variables.
1178 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp)
1179 (ptid_get_tid, ptid_equal): New functions.
1180 (_initialize_infrun): Initialize null_ptid, minus_one_ptid,
1181 inferior_ptid, and target_last_wait_ptid.
1183 * defs.h (ptid_t): Redefine to be a struct rather than an int.
1184 (pid_to_ptid, null_ptid, ptid_equal): Delete these macros.
1185 (PIDGET, TIDGET, MERGEPID): Redefine these macros using the
1186 new ptid accessors and constructor.
1188 * config/i386/tm-i386v42mp.h (PIDGET, TIDGET, LIDGET, MERGEPID,
1189 MKLID, MKTID, ISTID): Provide new definitions for these macros.
1190 The old macros are retained, but disabled via #if 0 in order
1191 to aid in future restructuring. See FIXME.
1193 * arm-linux-nat.c (PIDGET, TIDGET): Delete macro definitions.
1194 * i386-linux-nat.c (PIDGET, TIDGET): Likewise.
1195 * infptrace.c (PIDGET, TIDGET): Likewise.
1196 * lin-lwp.c (PIDGET0, PIDGET, TIDGET, MERGEPID): Likewise.
1197 * lin-thread.c (PIDGET0, PIDGET, TIDGET, MERGEPID): Likewise.
1198 * proc-service.c (MERGEPID): Likewise.
1199 * procfs.c (PIDGET, TIDGET, MERGEPID): Likewise.
1200 * thread-db.c (PIDGET0, PIDGET, TIDGET, MERGEPID): Likewise.
1201 * config/nm-linux.h (PIDGET0, PIDGET, TIDGET, MERGEPID): Likewise.
1202 * config/i386/tm-i386sol2.h (PIDGET0, PIDGET, TIDGET, MERGEPID):
1204 * config/sparc/tm-sun4sol2.h (PIDGET0, PIDGET, TIDGET, MERGEPID):
1207 * lin-lwp.c (THREAD_FLAG): Delete macro definition.
1208 (GET_LWP): Redefine in terms of ptid_get_lwp().
1209 (GET_PID): Redefine in terms of ptid_get_pid().
1210 (is_lwp): Redefine without the need for THREAD_FLAG.
1211 (BUILD_LWP): Redefine in terms of ptid_build().
1212 * lin-thread.c (THREAD_FLAG): Delete macro definition.
1213 (GET_LWP): Redefine in terms of ptid_get_lwp().
1214 (GET_PID): Redefine in terms of ptid_get_pid().
1215 (GET_THREAD): Redefine in terms of ptid_get_tid().
1216 (BUILD_THREAD, BUILD_LWP): Redefine in terms of ptid_build().
1217 (is_lwp, is_thread): Redefine.
1218 (linux_child_wait, check_all_signal_numbers)
1219 (linuxthreads_discard_global_state, attach_thread): Declare these
1220 functions to squash warnings about missing declarations.
1221 * sol-thread.c (THREAD_FLAG): Delete macro definition.
1222 (GET_PID): Redefine in terms of ptid_get_pid().
1223 (GET_LWP): Redefine in terms of ptid_get_lwp().
1224 (GET_THREAD): Redefine in terms of ptid_get_tid().
1225 (BUILD_THREAD, BUILD_LWP): Redefine in terms of ptid_build().
1226 (is_lwp, is_thread): Redefine.
1227 * thread-db.c (THREAD_FLAG): Delete macro definition.
1228 (GET_PID): Redefine in terms of ptid_get_pid().
1229 (GET_LWP): Redefine in terms of ptid_get_lwp().
1230 (GET_THREAD): Redefine in terms of ptid_get_tid().
1231 (BUILD_THREAD, BUILD_LWP): Redefine in terms of ptid_build().
1232 (is_lwp, is_thread): Redefine.
1234 * corelow.c (add_to_thread_list, get_core_register_section):
1235 Eliminate hacks needed to prevent regressions when inferior_ptid
1236 wasn't wide enough to hold the core file thread id in the pid
1237 component of inferior_ptid.
1241 * remote.c (hex2bin): Make first argument const.
1242 Require explicit count, don't accept null-terminated str.
1243 (remote_resume, remote_async_resume): White space fix-up.
1244 (remote_write_bytes): Set nr_bytes to return value of bin2hex.
1248 * symtab.c (lookup_symtab_1): Use lbasename (NAME) instead of
1249 basename (NAME). The FreeBSD basename returns a pointer to a
1250 static buffer, even if it's simply returning a string identical to
1252 (lookup_partial_symtab): Likewise.
1256 * solib.c, solib.h: Add comment for function no_shared_libraries.
1260 * solib.h (no_shared_libraries): Make declaration match definition
1265 * remote.c (remote_write_bytes): Set nr_bytes before returning it.
1266 * solib.h (no_shared_libraries): Declare.
1270 * gdbarch.sh (struct gdbarch_info): Delete field bfd_architecture.
1271 (gdbarch_update_p): Rewrite logic filling in INFO struct. Use
1272 user specified values when available.
1273 * rs6000-tdep.c (rs6000_gdbarch_init): Update. Get the
1274 architecture from info.bfd_arch_info.
1275 * gdbarch.c, gdbarch.h: Regenerate.
1279 * remote-e7000.c (e7000_open): Check for bad baud rate.
1280 * remote-st.c (st2000_open): Ditto.
1284 * thread.c (do_captured_list_thread_ids): Use ui_out_tuple_begin
1285 and ui_out_tuple_end instead of ui_out_list_begin and
1288 * Makefile.in (gnu-v2-abi.o): Add $(demangle_h) to list of
1289 dependencies. Reorder dependencies to match #includes in file,
1290 for easier verification.
1294 * breakpoint.c: Replace ui_out_list_begin, ui_out_list_end and
1295 make_cleanup_ui_out_list_end with ui_out_tuple_begin,
1296 ui_out_tuple_end and make_cleanup_ui_out_tuple_begin_end.
1297 * cli/cli-setshow.c: Ditto.
1298 * printcmd.c: Ditto.
1301 * ui-out.h (enum ui_out_type): Fix tipo - tupple -> tuple.
1302 * ui-out.c (ui_out_list_begin): Delete ``lstid'' parameter.
1303 (ui_out_tuple_begin): New function.
1304 (ui_out_tuple_end): New function.
1305 (ui_out_tuple_begin_end): New function.
1306 (make_cleanup_ui_out_list_begin_end): Replace
1307 make_cleanup_ui_out_list_end function.
1308 * ui-out.h (ui_out_list_begin): Update declaration.
1309 (make_cleanup_ui_out_list_begin_end): Replace
1310 make_cleanup_ui_out_list_end declaration.
1311 (ui_out_tuple_begin, ui_out_tuple_end): Declare.
1312 (ui_out_tuple_begin_end): Declare.
1316 * gnu-v2-abi.c: Don't #include "gdb_regex.h". We don't use it.
1321 * config/pa/tm-hppa.h: Remove trigraph.
1322 * hp-symtab-read.c (hpread_type_translate): Provide return value.
1323 (hpread_read_struct_type): Remove trigraph. Add parameter in
1325 (hpread_read_array_type): Provide return value.
1326 (hpread_type_lookup): Avoid ambiguous `else'. Provide return
1328 * hppa-tdep.c (initialize_hp_cxx_exception_support): Remove
1333 * mips-tdep.c (mips_store_return_value,
1334 mips_extract_return_value): Pass arguments to
1335 return_value_location in the proper order.
1339 * Makefile.in (VERSION): Delete. Moved to file ``version.in''.
1340 (version.c): Depends on file ``version.in''. Extract version
1341 number from ``version.in'' file.
1342 (clean mostlyclean): Update.
1343 * version.in: New file.
1348 * breakpoint.c (set_raw_breakpoint): Add new parameter
1349 representing the breakpoint's type. Adjust all callers.
1350 (create_longjmp_breakpoint, create_temp_exception_breakpoint)
1351 (create_thread_event_breakpoint): Don't test for zero return
1352 value from set_raw_breakpoint(). It can never be zero.
1353 (create_exception_catchpoint, watch_command_1): Move logic
1354 which calculates the breakpoint type prior to the call to
1355 set_raw_breakpoint().
1359 * ser-unix.c (rate_to_code): Issue warning if baud rate is invalid.
1360 (hardwire_setbaudrate): Set errno to EINVAL and return with error
1361 if the conversion of the baud rate to code fails.
1365 * ui-out.h (make_cleanup_ui_out_begin_end): Declare.
1366 * ui-out.c (struct ui_out_end_cleanup_data): Define.
1367 (do_cleanup_end): New function. Replace do_list_end.
1368 (make_cleanup_ui_out_end): New function.
1369 (make_cleanup_ui_out_begin_end): New function.
1370 (make_cleanup_ui_out_list_end): Use make_cleanup_ui_out_end.
1374 * MAINTAINERS: Declare xcoffread.c open to all maintainers,
1379 * proc-api.c (ioctl_with_trace): Fix uninitialized variable.
1383 * MAINTAINERS: Add testsuite subdirectory co-maintainers.
1387 * Makefile.in (mi-main.o): Compile with -Werror.
1391 * remote.c (remote_open_1): Call no_shared_libraries, so that
1392 symbols for shared libraries can be reloaded per session.
1393 (remote_async_open_1): Ditto.
1394 * remote.c (bin2hex, hex2bin): New functions. Factor out these
1395 two conversions which are coded for repeatedly in this module.
1396 (remote_threads_extra_info, remote_wait, remote_async_wait,
1397 store_register_using_P, remote_store_registers, remote_write_bytes,
1398 remote_read_bytes, remote_rcmd): Use bin2hex and hex2bin instead
1399 of coding the conversions inline.
1400 (fromhex): Not exported, change from extern to static.
1404 * arch-utils.c (initialize_current_architecture): Delete obsolete
1405 ``info architecture'' command.
1406 (info_architecture): Delete function.
1410 * TODO (5.1, 5.2): Update.
1414 * MAINTAINERS: Jim Ingham is no longer maintaining Arm related
1419 * Makefile.in (SUBDIR_GDBTK_OBS): Add gdbtk-bp.o, gdbtk-register.o
1421 (SUBDIR_GDBTK_SRCS): Ditto for the sources.
1422 (gdbtk-bp.o): New rule.
1423 (gdbtk-register.o): New rule.
1424 (gdbtk-stack.o): New rule.
1425 (gdbtk-cmds.o): Update dependencies.
1427 (gdbtk-hooks.o): Ditto.
1428 (gdbtk-varobj.o): Ditto.
1432 * varobj.c (c_number_of_children): Fix memory leak. Delete unwanted old
1433 variables, not just unregister them.
1437 * varobj.c (c_number_of_children): Check for target type of void*,
1438 not the target type name. Allow dereferencing char*.
1442 * symfile.c (symbol_file_add_main_1): New static function.
1443 Passes the flags arguments to symbol_file_add() and takes care
1444 of any necessary reinitializations.
1445 (symbol_file_command): Call symbol_file_add_main_1() instead of
1447 (symbol_file_add_main): Ditto.
1451 * lin-lwp.c (lin_lwp_pid_to_str): Revert inadvertent format
1452 string change in 2001-05-03 changes.
1453 (lin_lwp_wait): Revert GET_LWP coercion introduced in 2001-05-03
1458 * lin-lwp.c (lin_lwp_attach): Use PIDGET() to fetch the pid
1459 component from inferior_ptid.
1460 (lin_lwp_detach): Use pid_to_ptid() to convert from a pid to a
1465 * sh3-rom.c (_initialize_sh3_rom): Get rid of specific _WINDOWS
1466 conditional for help with connections through parallel ports,
1467 given that the actual code for downloading through a parallel port
1468 is not conditionalized.
1470 * sh-tdep.c: Remove WIN32_WCE conditional. The wince sh target is
1471 unmaintaned, and probably on its way to obsolescence.
1475 * i386-tdep.c (i386_frame_saved_pc): New function.
1476 * config/i386/tm-i386.h (FRAME_SAVED_PC): Redefine in terms of
1477 i386_frame_saved_pc.
1478 (i386_frame_saved_pc): New prototype.
1480 * i386-tdep.c (i386_register_virtual_type): New function.
1481 (i386_register_convertible): New function.
1482 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE): Redefine in terms
1483 of i386_register_virtual_type.
1484 (REGISTER_CONVERTIBLE): Redefine in terms of
1485 i386_register_convertible.
1486 (i386_register_virtual_type, i386_register_convertible): New
1491 * Makefile.in (mn10300-tdep.o): New rule.
1493 * Makefile.in (gdb_string_h): Define. Use it throughout.
1494 Some rules were already using this, even though it isn't defined.
1496 * Makefile.in (obstack_h, target_h): Define; these are already
1497 used elsewhere, but have been expanding to the empty string.
1498 (memattr_h): Define; needed by target_h.
1500 * mn10300-tdep.c (mn10300_extract_return_value): Mark this as
1501 static. (This was accidentally omitted from the earlier patch.)
1503 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): New function.
1504 (mn10300_gdbarch_init): Register it as the architecture's
1505 dwarf2_reg_to_regnum method.
1507 Correct and expand handling of `movm' instruction, and register
1509 * config/mn10300/tm-mn10300.h (D0_REGNUM, A0_REGNUM, MDRQ_REGNUM,
1510 MCRH_REGNUM, MCRL_REGNUM, MCVF_REGNUM): New definitions.
1511 (enum movm_register_bits): New enum.
1512 * mn10300-tdep.c (set_movm_offsets): Use symbolic names for the
1513 bits, not hex literals. Handle the `other', `exreg0', and
1514 `exother' bits. Correct handling of `exreg1': it saves r4, r5,
1515 r6, and r7, not r2, r3, r4, and r5.
1516 (saved_regs_size): New function.
1517 (mn10300_frame_chain, mn10300_frame_saved_pc): Use it, instead
1518 of computing the same thing inline, incorrectly.
1520 * mn10300-tdep.c (mn10300_gdbarch_init): We do have a
1521 dummy_breakpoint_offset; it's zero.
1523 * mn10300-tdep.c (mn10300_pop_frame): Split the mn10300-specific
1524 stuff out into mn10300_pop_frame_regular, and use
1525 generic_pop_current_frame. This lets us share code, and also
1526 makes this function's prototype match that expected by gdbarch.
1527 Make this function static.
1528 (mn10300_pop_frame_regular): New function.
1529 (mn10300_gdbarch_init): Register mn10300_pop_frame as the
1530 gdbarch's pop_frame method.
1531 * config/mn10300/tm-mn10300.h (POP_FRAME): Delete definition.
1532 (mn10300_pop_frame): Delete declaration.
1534 * mn10300-tdep.c (mn10300_saved_pc_after_call,
1535 mn10300_extract_return_value,
1536 mn10300_extract_struct_value_address, mn10300_store_return_value,
1537 mn10300_use_struct_convention, mn10300_breakpoint_from_pc,
1538 mn10300_frame_chain, mn10300_skip_prologue,
1539 mn10300_push_arguments, mn10300_push_return_address,
1540 mn10300_store_struct_return, mn10300_frame_saved_pc,
1541 mn10300_init_extra_frame_info, mn10300_frame_init_saved_regs):
1542 Make these functions static; they should only be visible to the
1543 outside world as gdbarch methods.
1545 * config/mn10300/tm-mn10300.h (mn10300_find_callers_reg): Delete
1548 * mn10300-tdep.c (mn10300_gdbarch_init): Put the gdbarch methods
1549 in some rational order.
1551 * mn10300-tdep.c (mn10300_gdbarch_init): Rather than using
1552 generic_pc_in_call_dummy, use pc_in_call_dummy_at_entry_point.
1554 Use gdbarch for most target parameters for the MN10300, rather
1555 than the tm-*.h file.
1556 * config/mn10300/tm-mn10300.h (MAX_REGISTER_VIRTUAL_SIZE,
1557 REGISTER_BYTES, FP_REGNUM, BREAKPOINT_FROM_PC,
1558 FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK, INNER_THAN,
1559 SAVED_PC_AFTER_CALL, INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS,
1560 FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC,
1561 EXTRACT_RETURN_VALUE, EXTRACT_STRUCT_VALUE_ADDRESS,
1562 STORE_RETURN_VALUE, STORE_STRUCT_RETURN, SKIP_PROLOGUE,
1563 FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS,
1564 FRAME_NUM_ARGS, POP_FRAME, USE_GENERIC_DUMMY_FRAMES, CALL_DUMMY,
1565 CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
1566 CALL_DUMMY_LOCATION, FIX_CALL_DUMMY, CALL_DUMMY_ADDRESS,
1567 TARGET_READ_FP, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
1568 SAVE_DUMMY_FRAME_TOS, PUSH_ARGUMENTS, PC_IN_CALL_DUMMY,
1569 REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER):
1570 Delete definitions. We register gdbarch methods for these now.
1571 (struct frame_info, struct type, struct value): Delete forward
1572 declarations of these types; they're no longer necessary, since we
1573 don't have function declarations here any more.
1574 * mn10300-tdep.c: #include "arch-utils.h", to get declarations for
1575 some default gdbarch methods.
1576 (mn10300_store_struct_return): Return void, as expected by
1578 (mn10300_init_extra_frame_info): Take initial `fromleaf' argument,
1579 as expected by gdbarch.
1580 (mn10300_frame_init_saved_regs): Provide dummy definition for
1581 this, as required by gdbarch.
1582 (mn10300_gdbarch_init): Add mn10300_call_dummy_words, as expected
1583 by gdbarch. Register gdbarch methods or values for all the stuff
1584 removed from tm-10300.h, listed above.
1588 * cli-out.c (cli_begin, cli_end): Replace cli_list_begin and
1590 (cli_ui_out_impl): Update.
1592 * ui-out.c (default_begin, default_end): Replace
1593 default_list_begin and default_list_end.
1594 (default_ui_out_impl): Update.
1595 (uo_begin, uo_end): Replace ou_list_begin and uo_list_end.
1596 (ui_out_begin, ui_out_end): Replace ui_out_list_begin and
1598 (ui_out_list_begin, ui_out_list_end): New. Compatibility
1600 (struct ui_out_level): Add field type.
1601 (push_level, pop_level): Update. Add type parameter.
1603 * ui-out.h (enum ui_out_type): Declare.
1604 (ui_out_begin, ui_out_end): Declare.
1605 (ui_out_begin_ftype, ui_out_end_ftype): Replace list_begin_ftype
1607 (struct ui_out_impl): Update.
1611 * ui-out.h (list_begin_ftype, list_end_ftype): Rename argument
1612 ``list_flag'' to ``depth''.
1613 * ui-out.c (default_list_begin, default_list_end): Update.
1614 (uo_list_begin, uo_list_end): Update.
1615 (MAX_UI_OUT_LEVELS): Define.
1616 (struct ui_out_level): Define.
1617 (top-level): Include "gdb_assert.h".
1618 (struct ui_out): Add fields ``level'' and ``levels''. Delete
1619 fields ``list_flag'' and ``field_count''.
1620 (ui_out_new): Update.
1621 (verify_field_proper_position): Update.
1622 (current_level, push_level, pop_level): New functions.
1623 (ui_out_list_begin): Use push_level.
1624 (ui_out_list_end): Use pop_level.
1625 (ui_out_field_int): Use current_level.
1626 (ui_out_field_skip): Ditto.
1627 (ui_out_field_fmt): Ditto.
1631 * language.c (longest_local_hex_string_custom): Strlen test is
1632 inverted -- reverse the sense of the test.
1636 * config/i386/tm-i386v.h (struct frame_info, struct
1637 frame_saved_regs): Remove declarations.
1638 (i386_frame_num_args): Remove prototype.
1642 * MAINTAINERS: I'm no longer actively maintaining the mn10300
1647 * main.c (captured_main): Delete #ifndef _WIN32 conditional for
1652 * inferior.h (save_inferior_ptid): Declare.
1653 * infrun.c (save_inferior_ptid, restore_inferior_ptid): Define.
1655 * hpux-thread.c (save_inferior_ptid, restore_inferior_ptid):
1656 Delete these functions.
1657 * lin-lwp.c (save_inferior_ptid, restore_inferior_ptid): Likewise.
1658 * lin-thread.c (save_inferior_ptid, restore_inferior_ptid): Likewise.
1659 * linux-thread.c (save_inferior_ptid, restore_inferior_ptid):
1661 * proc-service.c (save_inferior_ptid, restore_inferior_ptid):
1663 * sol-thread.c (save_inferior_ptid, restore_inferior_ptid): Likewise.
1664 * thread-db.c (save_inferior_ptid, restore_inferior_ptid): Likewise.
1666 * somsolib.c (reset_inferior_ptid): Delete.
1667 (som_solib_remove_inferior_hook): Use save_inferior_ptid() to
1668 build the cleanup struct.
1670 * breakpoint.c (reattach_breakpoints, detach_breakpoints): Use
1671 a cleanup to save/restore inferior_ptid.
1675 Implement attach/detach for multi-threaded programs on Linux.
1676 * thread-db.c (keep_thread_db): Adjust comment.
1677 (deactivate_target): Removed.
1678 (thread_db_new_objfile): Don't call deactivate_target. Implement
1679 guts of deactivate_target inline instead.
1680 (attach_thread): Call ATTACH_LWP unconditionally if defined.
1681 (thread_db_attach): New function.
1682 (thread_db_detach): Don't call deactivate_target. Do necessary
1683 cleanup inline instead. Set inferior_ptid to LWP corresponding to
1684 the current user-level thread.
1685 (thread_db_kill): Set inferior_ptid to LWP corresponding to the
1686 current user-level thread.
1687 (thread_db_create_inferior): Deactivate target vector if
1688 KEEP_THREAD_DB is zero.
1689 (thread_db_mourn_inferior): Don't call deactivate_target. Do
1690 necessary cleanup inline instead.
1691 (init_thread_db_ops): Initialize to_attach field to
1693 * lin-lwp.c (lin_lwp_mourn_inferior): Remove prototype.
1694 (stop_wait_callback): Add prototype.
1695 (init_lwp_list): Add comment about when to re-initialize the LWP
1697 (lin_lwp_attach_lwp): Only call ptrace for cloned processes.
1698 Avoid adding publicates to the LWP list. Only mark an LWP as
1699 signalled if it doesn't correspond to a cloned process.
1700 (lin_lwp_attach): Add initial process to the LWP list. Make sure
1701 it's stopped and fake a SIGSTOP.
1702 (detach_callback): New function.
1703 (lin_lwp_detach): Implement.
1704 (lin_lwp_create_inferior): Don't re-initialize LWP list here.
1705 Call child_ops.to_create_inferior directly instead of via
1706 target_beneath local.
1707 (lin_lwp_mourn_inferior): Call child_ops.to_mourn_inferior
1708 directly instead of via target_beneath local.
1712 * symtab.c (lookup_symtab_1, lookup_partial_symtab): Use basename
1713 instead of non-portable search for `/'. Use FILENAME_CMP instead
1714 of STREQ, to account for case-insensitive filesystems.
1715 (top-level): #include "filenames.h".
1719 * breakpoint.c (check_duplicates): Use the breakpoint's type, not
1720 its address, to decide whether it's a watchpoint or not. Zero
1721 is a valid code address.
1722 (update_breakpoints_after_exec): Admonishing comments.
1723 * breakpoint.h (struct breakpoint): Doc fixes.
1725 * breakpoint.c (check_duplicates): Take a breakpoint object as an
1726 argument, rather than an address and section. All callers changed.
1730 * defs.h (ptid_t): New typedef.
1731 (pid_to_ptid, null_ptid, minus_one_ptid, ptid_equal): New macros.
1733 * a68v-nat.c, alphabsd-nat.c, arch-utils.c, arm-linux-nat.c,
1734 blockframe.c, breakpoint.c, breakpoint.h,
1735 config/i386/nm-i386sol2.h, config/i386/tm-i386sco5.h,
1736 config/ia64/nm-linux.h, config/m68k/nm-hp300bsd.h,
1737 config/mips/nm-irix4.h, config/mips/nm-irix5.h,
1738 config/pa/nm-hppah.h, config/pa/tm-hppa.h,
1739 config/rs6000/nm-rs6000.h, config/sparc/nm-sun4sol2.h,
1740 corelow.c, cxux-nat.c, d10v-tdep.c, dink32-rom.c,
1741 dve3900-rom.c, fork-child.c, frame.c, gnu-nat.c, go32-nat.c,
1742 hp300ux-nat.c, hppa-tdep.c, hppab-nat.c, hppah-nat.c,
1743 hpux-thread.c, i386-linux-nat.c, i386aix-nat.c, i386b-nat.c,
1744 i386bsd-nat.c, i386gnu-nat.c, i386mach-nat.c, i386nbsd-nat.c,
1745 infcmd.c, inferior.h, inflow.c, infptrace.c, infrun.c,
1746 inftarg.c, infttrace.c, lin-lwp.c, lin-thread.c,
1747 linux-thread.c, lynx-nat.c, m3-nat.c, m32r-rom.c,
1748 m68knbsd-nat.c, m88k-nat.c, mac-nat.c, mips-nat.c,
1749 mon960-rom.c, monitor.c, ns32knbsd-nat.c, ocd.c, ppc-bdm.c,
1750 ppcnbsd-nat.c, proc-service.c, procfs.c, ptx4-nat.c,
1751 regcache.c, remote-adapt.c, remote-array.c, remote-bug.c,
1752 remote-e7000.c, remote-es.c, remote-mips.c, remote-mm.c,
1753 remote-nindy.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
1754 remote-sds.c, remote-sim.c, remote-st.c, remote-udi.c,
1755 remote-vx.c, remote.c, rs6000-nat.c, sol-thread.c,
1756 solib-aix5.c, solib-svr4.c, somsolib.c, sparc-nat.c,
1757 standalone.c, sun3-nat.c, sun386-nat.c, symm-nat.c, target.c,
1758 target.h, thread-db.c, thread.c, top.c, ultra3-nat.c,
1759 uw-thread.c, v850ice.c, win32-nat.c, wince.c, xcoffsolib.c
1760 (inferior_pid): Rename to inferior_ptid everywhere - even in
1761 comments and obsolete ports. In cases where this variable
1762 really is supposed to be used as a process id, use PIDGET() to
1763 extract the process id component from inferior_ptid. The
1764 other cases, either involving other variables whose types had
1765 to be changed or functions whose signatures had to changed
1766 are listed separately below.
1768 * arm-linux-nat.c (get_thread_id): Change type of argument
1769 representing a combined process/thread id from ``int'' to
1770 ``ptid_t''. Also change parameter name to ptid.
1771 * breakpoint.h, breakpoint.c (breakpoint_thread_match): Likewise.
1772 * corelow.c (core_file_thread_alive): Likewise.
1773 * d10v-tdep.c (d10v_read_pc, d10v_write_pc): Likewise.
1774 * defs.h (*target_wait_hook): Likewise.
1775 * gdbthread.h (thread_info, delete_thread, pid_to_thread_id)
1776 (find_thread_pid, save_infrun_state, load_infrun_state): Likewise.
1777 * gnu-nat.c (gnu_thread_alive, gnu_pid_to_str, gnu_wait)
1778 (gnu_resume): Likewise.
1779 * go32-nat.c (go32_wait, go32_resume): Likewise.
1780 * h8500-tdep.c (h8500_read_pc, h8500_write_pc): Likewise.
1781 * hppa-tdep.c (target_read_pc, target_write_pc): Likewise.
1782 * hppah-nat.c (child_pid_to_str, hppa_tid_to_str,
1783 (hppa_pid_or_tid_to_str, child_post_startup_inferior)
1784 (child_thread_alive): Likewise.
1785 * hpux-thread.c (hpux_thread_notice_signals, hpux_thread_alive)
1786 (hpux_pid_to_str, hpux_thread_wait, hpux_thread_resume): Likewise.
1787 * i386-linux-nat.c (child_resume): Likewise.
1788 * ia64-linux-nat.c (enable_watchpoints_in_psr, fetch_debug_register)
1789 (store_debug_register, fetch_debug_register_pair)
1790 (store_debug_register_pair, ia64_linux_insert_watchpoint)
1791 (ia64_linux_remove_watchpoint, ia64_linux_stopped_by_watchpoint):
1793 * ia64-tdep.c (ia64_read_pc, ia64_write_pc): Likewise.
1794 * inferior.h (read_pc_pid, generic_target_read_pc, write_pc_pid)
1795 (generic_target_write_pc, ptrace_wait, child_resume)
1796 (get_last_target_status): Likewise.
1797 * infptrace.c (ptrace_wait, child_resume): Likewise.
1798 * inftarg.c (child_wait, child_post_wait, child_thread_live)
1799 (child_pid_to_str): Likewise.
1800 * infttrace.c (ptrace_wait, child_thread_alive, child_resume)
1801 (hppa_pid_or_tid_to_str, child_post_startup_inferior): Likewise.
1802 * lin-lwp.c (add_lwp, delete_lwp, find_lwp_pid, lin_lwp_attach_lwp)
1803 (lin_lwp_resume, lin_lwp_wait, lin_lwp_thread_alive)
1804 (lin_lwp_pid_to_str): Likewise.
1805 * lin-thread.c (thread_db_alive, thread_db_pid_to_str)
1806 (thread_db_resume, thread_db_wait): Likewise.
1807 * linux-thread.c (linuxthreads_thread_alive, linuxthreads_pid_to_str)
1808 (linuxthreads_resume, linuxthreads_wait): Likewise.
1809 * lynx-nat.c (child_wait, child_thread_alive, child_resume)
1810 (child_pid_to_str): Likewise.
1811 * m3-nat.c (mach_really_wait, m3_resume): Likewise.
1812 * mac-nat.c (child_wait, child_resume): Likewise.
1813 * mips-tdep.c (mips_read_pc): Likewise.
1814 * monitor.c (monitor_wait, monitor_resume): Likewise.
1815 * ocd.c, ocd.h (ocd_thread_alive, ocd_resume): Likewise.
1816 * ppc-bdm.c (bdm_ppc_wait): Likewise.
1817 * procfs.c (do_attach, procfs_wait, procfs_resume)
1818 (procfs_notice_signals, procfs_thread_alive, procfs_pid_to_str)
1819 (procfs_set_watchpoint, procfs_stopped_by_watchpoint)
1820 (procfs_find_LDT_entry): Likewise.
1821 * regcache.c (read_register_pid, read_signed_register_pid)
1822 (write_register_pid, generic_target_read_pc, read_pc_pid)
1823 (generic_target_write_pc, write_pc_pid): Likewise.
1824 * regcache.h (read_register_pid, read_signed_register_pid)
1825 (write_register_pid): Likewise.
1826 * remote-adapt.c (adapt_wait, adapt_resume): Likewise.
1827 * remote-array.c (array_wait, array_resume): Likewise.
1828 * remote-bug.c (bug_wait, bug_resume): Likewise.
1829 * remote-e7000.c (e7000_wait, e7000_resume): Likewise.
1830 * remote-eb.c (eb_wait, eb_resume): Likewise.
1831 * remote-es.c (es1800_wait, es1800_resume): Likewise.
1832 * remote-mips.c (mips_wait, mips_resume): Likewise.
1833 * remote-mm.c (mm_wait, mm_resume): Likewise.
1834 * remote-nindy.c (nindy_wait, nindy_resume): Likewise.
1835 * remote-os9k.c (rombug_wait, rombug_resume): Likewise.
1836 * remote-rdi.c (arm_rdi_wait, arm_rdi_resume): Likewise.
1837 * remote-rdp.c (remote_rdp_resume, remote_rdp_wait): Likewise.
1838 * remote-sds.c (sds_wait, sds_resume): Likewise.
1839 * remote-sim.c (gdbsim_wait, gdbsim_resume): Likewise.
1840 * remote-st.c (st2000_wait, st2000_resume): Likewise.
1841 * remote-udi.c (udi_wait, udi_resume): Likewise.
1842 * remote-vx.c (vx_wait, vx_resume): Likewise.
1843 * remote.c (remote_current_thread, remote_resume, remote_wait)
1844 (remote_async_resume, remote_async_wait, remote_cisco_wait)
1845 (remote_thread_alive): Likewise.
1846 * sol-thread.c (thread_to_lwp, lwp_to_thread, sol_thread_resume)
1847 (sol_thread_wait, sol_thread_notice_signals, sol_thread_alive)
1848 (solaris_pid_to_str): Likewise.
1849 * symm-nat.c (child_wait, child_resume): Likewise.
1850 * target.c (debug_to_resume, debug_to_wait, debug_to_post_wait)
1851 (debug_to_notice_signals, debug_to_thread_alive)
1852 (normal_target_post_startup_inferior, normal_pid_to_str)
1853 (debug_to_post_startup_inferior): Likewise.
1854 * target.h (to_resume, to_wait, to_post_wait)
1855 (to_post_startup_inferior, to_notice_signals, to_thread_alive)
1856 (to_pid_to_str [all in struct target_ops]): Likewise.
1857 (child_post_wait, child_thread_alive, normal_pid_to_str): Likewise.
1858 * thread-db.c (thread_from_lwp, lwp_from_thread, thread_db_wait)
1859 (attach_thread, detach_thread, thread_db_resume, check_event)
1860 (thread_db_post_startup_inferior, thread_db_thread_alive)
1861 (thread_db_pid_to_str): Likewise.
1862 * thread.c (add_thread, delete_thread, find_thread_pid)
1863 (pid_to_thread_id, in_thread_list, load_infrun_state)
1864 (save_infrun_state, switch_to_thread, restore_current_thread)
1865 (make_cleanup_restore_current_thread): Likewise.
1866 * top.c (target_wait_hook): Likewise.
1867 * uw-thread.c (dbgpid, thr_to_lwp, lwp_to_thr, add_thread_uw)
1868 (uw_thread_resume, libtrhead_stub, uw_thread_wait, uw_thread_alive)
1869 (uw_thread_pid_to_str): Likewise.
1870 * v850ice.c (v850ice_wait, v850ice_resume): Likewise.
1871 * win32-nat.c (child_wait, child_resume, win32_child_thread_alive)
1872 (cywin_pid_to_str): Likewise.
1873 * wince.c (child_wait, child_resume, win32_child_thread_alive):
1875 * config/nm-linux.h (linuxthreads_pid_to_str): Likewise.
1876 * config/nm-lynx.h (child_wait, lynx_pid_to_str): Likewise.
1877 * config/alpha/nm-linux.h (lin_lwp_attach_lwp): Likewise.
1878 * config/arm/nm-linux.h (lin_lwp_attach_lwp): Likewise.
1879 * config/h8500/tm-h8500.h (h8500_read_pc, h8500_write_pc): Likewise.
1880 * config/i386/nm-i386sol2.h (procfs_stopped_by_watchpoint)
1881 (procfs_set_watchpoint): Likewise.
1882 * config/i386/nm-linux.h (lin_lwp_attach_lwp): Likewise.
1883 * config/i386/nm-ptx4.h (child_wait): Likewise.
1884 * config/i386/nm-symmetry.h (child_wait): Likewise.
1885 * config/i386/tm-cygwin.h (cygwin_pid_to_str): Likewise.
1886 * config/ia64/nm-linux.h (ia64_linux_stopped_by_watchpoint)
1887 (ia64_linux_insert_watchpoint, ia64_linux_remove_watchpoint)
1888 (lin_lwp_attach_lwp): Likewise.
1889 * config/mips/nm-irix4.h, config/mips/nm-irix5.h
1890 (procfs_stopped_by_watchpoint, procfs_set_watchpoint): Likewise.
1891 * config/pa/nm-hppah.h (child_pid_to_str, hppa_tid_to_str)
1892 (hppa_pid_or_tid_to_str): Likewise.
1893 * config/pa/tm-hppa.h (target_read_pc, target_write_pc): Likewise.
1894 * config/powerpc/nm-linux.h (lin_lwp_attach_lwp): Likewise.
1895 * config/sparc/nm-sun4sol2.h (procfs_stopped_by_watchpoint)
1896 (procfs_set_watchpoint): Likewise.
1898 * gdbthread.h (thread_id_to_pid): Change return type which
1899 represents a combined process/thread id from ``int'' to
1901 * gnu-nat.c (gnu_wait): Likewise.
1902 * go32-nat.c (go32_wait): Likewise.
1903 * hpux-thread.c (hpux_thread_wait): Likewise.
1904 * inferior.h (procfs_first_available): Likewise.
1905 * inftarg.c (child_wait): Likewise.
1906 * infttrace.c (ptrace_wait): Likewise.
1907 * lin-lwp.c (lin_lwp_wait): Likewise.
1908 * lin-thread.c (thread_db_wait): Likewise.
1909 * linux-thread.c (linuxthreads_wait): Likewise.
1910 * lynx-nat.c (child_wait): Likewise.
1911 * m3-nat.c (mach_really_wait): Likewise.
1912 * mac-nat.c (child_wait): Likewise.
1913 * monitor.c (monitor_wait): Likewise.
1914 * ppc-bdm.c (bdm_ppc_wait): Likewise.
1915 * procfs.c (do_attach, procfs_wait, procfs_first_available): Likewise.
1916 * remote-adapt.c (adapt_wait): Likewise.
1917 * remote-array.c (array_wait): Likewise.
1918 * remote-bug.c (bug_wait): Likewise.
1919 * remote-e7000.c (e7000_wait): Likewise.
1920 * remote-eb.c (eb_wait): Likewise.
1921 * remote-es.c (es1800_wait): Likewise.
1922 * remote-mips.c (mips_wait): Likewise.
1923 * remote-mm.c (mm_wait): Likewise.
1924 * remote-nindy.c (nindy_wait): Likewise.
1925 * remote-os9k (rombug_wait): Likewise.
1926 * remote-rdi.c (arm_rdi_wait): Likewise.
1927 * remote-rdp.c (remote_rdp_wait): Likewise.
1928 * remote-sds.c (sds_wait): Likewise.
1929 * remote-sim.c (gdbsim_wait): Likewise.
1930 * remote-st.c (st2000_wait): Likewise.
1931 * remote-udi.c (udi_wait): Likewise.
1932 * remote-vx.c (vx_wait): Likewise.
1933 * remote.c (remote_wait, remote_async_wait, remote_current_thread)
1934 (remote_cisco_wait): Likewise.
1935 * sol-thread.c (thread_to_lwp, lwp_to_thread, sol_thread_wait):
1937 * symm-nat.c (child_wait): Likewise.
1938 * target.c (debug_to_wait): Likewise.
1939 * target.h (to_wait [in struct target_ops]): Likewise.
1940 * thread.c (thread_id_to_pid): Likewise.
1941 * thread-db.c (thread_from_lwp, lwp_from_thread, thread_db_wait):
1943 * top.c (*target_wait_hook): Likewise.
1944 * uw-thread.c (lwp_to_thr, uw_thread_wait): Likewise.
1945 * v850ice.c (v850ice_wait): Likewise.
1946 * win32-nat.c (child_wait): Likewise.
1947 * wince.c (child_wait): Likewise.
1948 * config/nm-lynx.h (child_wait): Likewise.
1949 * config/i386/nm-ptx4.h (child_wait): Likewise.
1950 * config/i386/nm-symmetry.h (child_wait): Likewise.
1952 * arch-utils.c (generic_prepare_to_proceed): Rename wait_pid
1953 to wait_ptid and change its type from ``int'' to ``ptid_t''.
1954 * breakpoint.c (reattach_breakpoints, detach_breakpoints): Likewise,
1955 but rename saved_inferior_pid to saved_inferior_ptid.
1956 * d10v-tdep.c (d10v_read_pc, d10_write_pc): Likewise, but rename
1957 save_pid to save_ptid.
1958 * gdbthread.h (struct thread_info): Likewise, but rename pid to ptid.
1959 * hppah-nat.c (child_pid_to_exec): Likewise, but rename
1960 saved_inferior_pid to saved_inferior_ptid.
1961 * hpux-thread.c (main_ptid): Likewise, but rename from main_pid.
1962 * infrun.c (previous_inferior_pid [static global]): Likewise,
1963 but rename to previous_inferior_ptid.
1964 (resume): Likewise, but rename resume_pid to resume_ptid.
1965 (struct execution_control_state): Likewise, but rename
1966 pid to ptid, saved_inferior_pid to saved_inferior_ptid,
1967 and waiton_pid to waiton_ptid.
1968 (target_last_wait_pid): Likewise, but rename to
1969 target_last_wait_ptid.
1970 * infttrace.c (saved_real_pid): Likewise, but rename to
1972 (child_pid_to_exec_file): Likewise, but rename saved_inferior_pid
1973 to saved_inferior_ptid.
1974 * lin-lwp.c (struct lwp_info): Likewise, but rename pid to ptid.
1975 (trap_ptid): Likewise, but renamed from trap_pid.
1976 * lin-thread.c (handle_new_thread): Likewise, but rename gdb_pid
1978 * linux-thread.c (detach_thread): Likewise, but rename pid to ptid.
1979 (thread_db_wait): Likewise, but rename ret_pid to retptid.
1980 * procfs.c (procfs_wait): Likewise, for retval whose name
1981 doesn't change. Also, ``temp'' becomes two separate variables,
1982 one named temp_tid (an int) and the other temp_ptid.
1983 (procfs_notice_thread): Likewise (type change) for gdb_threadid
1984 whose name does not change.
1985 * regcache.c (registers_ptid): Likewise, but renamed from
1987 (read_register_pid, read_signed_register_pid, write_register_pid):
1988 Likewise, but rename save_pid to save_ptid.
1989 (read_pc_pid, write_pc_pid): Likewise, but rename saved_inferior_pid
1990 to saved_inferior_ptid.
1991 * remote.c (remote_newthread_step): Likewise, but rename pid to ptid.
1992 * sol-thread.c (struct ps_prochandle): Likewise.
1993 (sol_thread_resume): Likewise, for save_pid which becomes save_ptid.
1994 (sol_thread_wait): Likewise, for rtnval whose name does not
1995 change, and for save_pid which becomes save_ptid.
1996 (solaris_pid_to_str): Likewise for lwp whose name does not change.
1997 (sol_find_new_threads_callback): Likewise, for pid which becomes
1999 * target.h (target_resume, target_wait, target_post_wait)
2000 (target_post_startup_inferior, target_notice_signals)
2001 (target_thread_alive): Likewise.
2002 * thread.c (info_threads_command): Likewise, but rename
2003 current_pid to current_ptid.
2004 (struct current_thread_cleanup): Likewise, but rename field
2005 inferior_pid to inferior_ptid.
2006 * thread-db.c (find_new_threads_callback): Likewise, but rename
2008 * uw-thread.c (thr_to_lwp): Likewise for lid whose name does not
2010 (lwp_to_tr): Likewise fo tid whose name remains unchanged.
2011 (thr_infpid, lwp_infpid, notice_thread, libthread_stub): Likewise,
2012 but rename pid to ptid.
2013 * config/alpha/nm-linux.h (ATTACH_LWP): Likewise.
2014 * config/arm/nm-linux.h (ATTACH_LWP): Likewise.
2015 * config/i386/nm-linux.h (ATTACH_LWP): Likewise.
2016 * config/ia64/nm-linux.h (ATTACH_LWP): Likewise.
2017 * config/pa/nm-hppah.h (target_tid_to_str): Likewise.
2018 * config/powerpc/nm-linux.h (ATTACH_LWP): Likewise.
2020 * arch-utils.c (generic_prepare_to_proceed): Test for the
2021 "zero" ptid by using ptid_equal() to test to see if variable
2022 in question is the same as null_ptid. This replaces a direct
2024 * cxux-nat.c (add_shared_symbol_files): Likewise.
2025 * i386aix-nat.c, i386b-nat.c (i386_float_info): Likewise.
2026 * infcmd.c (run_command): Likewise.
2027 * inflow.c (kill_command): Likewise.
2028 * infttrace.c (call_ttrace): Likewise.
2029 * lin-lwp.c (lin_lwp_prepare_to_proceed): Likewise.
2030 * lin-thread.c (thread_db_kill): Likewise.
2031 * procfs.c (procfs_kill_inferior, procfs_mourn_inferior): Likewise.
2032 * remote-es.c (es1800_kill): Likewise.
2033 * sol-thread.c (sol_thread_create_inferior): Likewise.
2034 * solib.c (locate_base): Likewise.
2035 * target.c (nosupport_runtime): Likewise.
2036 * thread-db.c (thread_db_wait): Likewise.
2037 * top.c (quit_confirm, quit_force): Likewise.
2038 * uw-thread (lwp_infpid, uw_thread_resume): Likewise.
2040 * infrun.c (handle_inferior_event, stop_stepping, normal_stop):
2041 Use ptid_equal to compare value of process/thread ids instead of
2042 ``=='' and ``!='' operators.
2043 lin-lwp.c (delete_lwp, lin_lwp_prepare_to_proceed)
2044 (stop_wait_callback, lin_lwp_wait): Likewise.
2045 * procfs.c (procfs_wait): Likewise.
2046 * regcache.c (read_register_bytes, read_register_gen)
2047 (write_register_gen, read_register, read_register_pid)
2048 (read_signed_register, read_signed_register_pid, write_register)
2049 (write_register_pid, supply_register): Likewise.
2050 * remote-vx.c (vx_resume): Likewise.
2051 * sol-thread.c (sol_thread_wait): Likewise.
2052 * symm-nat.c (kill_inferior): Likewise.
2053 * thread.c (delete_thread, find_thread_pid, pid_to_thread_id)
2054 (in_thread_list, info_threads_command, switch_to_thread)
2055 (restore_current_thread): Likewise.
2056 * uw-thread (libtread_stub): Likewise.
2058 * arm-linux-nat.c (GET_THREAD_ID): Change PID to PTID.
2060 * corelow.c (add_to_thread_list): Convert argument in add_thread()
2062 * gnu-nat.c (inf_validate_procs): Likewise.
2063 * linux-thread.c (stop_thread, update_stop_threads): Likewise.
2064 * remote.c (record_currthread, remote_threads_info): Likewise.
2065 * win32-nat.c (child_add_thread): Likewise.
2067 * hpux-thread.c (save_inferior_pid, restore_inferior_pid): Rename,
2068 respectively, to save_inferior_ptid() and restore_inferior_ptid().
2069 Adjust implementations to operate on ``ptid_t'' instead of ``int''.
2070 * lin-lwp.c (save_inferior_pid, restore_inferior_pid): Likewise.
2071 * lin-thread.c (save_inferior_pid, restore_inferior_pid): Likewise.
2072 * linux-thread.c (save_inferior_pid, restore_inferior_pid): Likewise.
2073 * proc-service.c (save_inferior_pid, restore_inferior_pid): Likewise.
2074 * sol-thread.c (save_inferior_pid, restore_inferior_pid): Likewise.
2075 * thread-db.c (save_inferior_pid, restore_inferior_pid): Likewise.
2077 * infrun.c (RESUME_ALL): New macro representing the -1 ptid
2078 to be passed to target_resume() when all threads should resume.
2079 (resume): Set resume_ptid to RESUME_ALL rather than -1.
2080 (handle_inferior_event): Invoke target_resume() with RESUME_ALL
2082 * irix5-nat.c (solib_create_inferior_hook): Convert -1 to
2083 a ptid_t in target_resume() call.
2084 * osfsolib.c (solib_create_inferior_hook): Likewise.
2085 * solib-svr4.c (solib_create_inferior_hook): Likewise.
2087 * lin-lwp.c (PIDGET, PIDGET0): Rename original PIDGET macro to
2088 PIDGET0. Define new PIDGET macro which uses PIDGET0, the only
2089 difference being that the 0xffff pattern will be interpreted
2091 * lin-thread.c (PIDGET, PIDGET0): Likewise.
2092 * thread-db.c (PIDGET, PIDGET0): Likewise.
2093 * config/nm-linux.h (PIDGET, PIDGET0): Likewise.
2094 * config/i386/tm-i386sol2.h (PIDGET, PIDGET0): Likewise.
2095 * config/i386/tm-i386v42mp.h (PIDGET, PIDGET0): Likewise.
2096 * config/sparc/tm-sun4sol2.h (PIDGET, PIDGET0): Likewise.
2098 * m3-nat.c (init_m3_ops): Fix typo; initialize to_wait field to
2099 mach_really_wait rather than mach_really__wait.
2100 * lin-thread.c (check_for_thread_event): Fix warning; make function
2101 actually return a value.
2103 * gdbarch.sh (TARGET_READ_PC, TARGET_WRITE_PC): Change type of
2104 ``pid'' arguments from ``int'' to ``ptid_t''. Also renamed
2106 * gdbarch.h, gdbarch.c: Regenerated.
2110 * rdi-share/devsw.c: Include <time.h> for struct tm
2114 * config/djgpp/fnchange.lst: Add mappings for the new
2115 opcodes/openrisc-* files.
2119 * lin-lwp.c: Change printf to fprintf_unfiltered.
2120 * Makefile.in: Add rules for thread-db.o, lin-lwp.o, proc-service.o.
2124 * config/rs6000/tm-rs6000.h (IN_SOLIB_RETURN_TRAMPOLINE): Define.
2125 (rs6000_in_solib_return_trampoline): Declare.
2126 * rs6000-tdep.c (rs6000_in_solib_return_trampoline): New
2128 (rs6000_skip_trampoline_code): Skip bigtoc fixup code.
2129 * xcoffread.c (read_xcoff_symtab): Perform the ISFCN function
2130 check after the CSECT check rather than before it. Allocate
2131 separate symtabs for CSECTs whose names begin with '@'.
2132 (scan_xcoff_symtab): Don't ignore symbols beginning with '@'.
2133 Activate the misc_func_recorded mechanism for whose names begin
2138 * ppcnbsd-nat.c (fetch_inferior_registers)
2139 (store_inferior_registers, fetch_core_registers): Changed to use
2140 fpreg[] instead of r_regs[] to access floating point registers.
2144 * sh-tdep.c: Get rid of the function prototypes.
2145 (sh_sh4_build_float_register_type): Move earlier in file.
2146 (fv_reg_base_num): Ditto.
2147 (dr_reg_base_num): Ditto.
2151 * thread-db.c: Revert 2001-04-26 change for debugging output.
2153 * lin-lwp.c: Add set/show debug lin-lwp command. Use this
2154 command to turn extra debugging output on / off.
2158 * buildsym.c (start_subfile): Use FILENAME_CMP instead of STREQ.
2159 (top-level): #include filenames.h.
2161 * dwarf2read.c (dwarf2_start_subfile): Use IS_ABSOLUTE_PATH and
2162 FILENAME_CMP, to DTRT on non-Posix platforms.
2163 (top-level): #include filenames.h.
2168 * gdbtypes.c (check_stub_method): Always initialize ``p''.
2172 * configure.host: Delete romp host.
2177 * TODO: Updates to 5.1. No more targets to obsolete.
2181 (Changes from Kevin Buettner, with minor update by Don Howard.)
2183 * i387-nat.c (i387_supply_fxsave, i387_fill_fxsave, i387_tag): Fix
2184 typos in which hexadecimal constants were really intended to be
2186 (i387_tag): Swap logic regarding zero vs non-zero exponents.
2187 * MAINTAINERS (Misc): Added myself to the write-after-approval
2192 (Changes from Daniel Berlin, with revisions by Jim Blandy.)
2194 Abstract out operations specific to particular C++ ABI's, and
2195 invoke them through a function table. This removes the C++ ABI
2196 dependencies scattered throughout the code, and allows us to
2197 cleanly add support for new C++ ABI's.
2198 * cp-abi.h, cp-abi.h, gnu-v2-abi.c, hpacc-abi.c: New files.
2199 * c-typeprint.c, c-valprint.c, dbxread.c, eval.c, gdbtypes.c,
2200 jv-typeprint.c, linespec.c, symtab.c, typeprint.c, valops.c:
2201 #include "cp-abi.h". These files all use functions now declared
2203 * symtab.h (OPNAME_PREFIX_P, VTBL_PREFIX_P, DESTRUCTOR_PREFIX_P):
2204 Deleted. These services are now provided by functions declared in
2206 * value.h (value_rtti_type, value_virtual_fn_field): Same.
2207 * values.c (value_virtual_fn_field): Same, for this definition.
2208 * valops.c (value_rtti_type): Same.
2209 * c-typeprint.c (c_type_print_base): Use the functions from
2210 "cp-abi.h", instead of the old macros, or hard-coded ABI-specific
2212 * dbxread.c (record_minimal_symbol): Same.
2213 * gdbtypes.c (get_destructor_fn_field, virtual_base_index,
2214 virtual_base_index_skip_primaries): Same.
2215 * jv-typeprint.c (java_type_print_base): Same.
2216 * linespec.c (find_methods, decode_line_1): Same.
2217 * symtab.c (gdb_mangle_name): Same.
2218 * Makefile.in (SFILES): Add the new .c files mentioned above.
2219 (cp_abi_h): New variable.
2220 (COMMON_OBS): Add gnu-v2-abi.o, hpacc-abi.o, and cp-abi.o.
2221 (cp-abi.o, gnu-v2-abi.o, hpacc-abi.o): New targets.
2222 (c-typeprint.o, c-valprint.o, dbxread.o, eval.o, gdbtypes.o,
2223 jv-typeprint.o, symtab.o, linespec.o, typeprint.o, valops.o): Add
2224 dependency on $(cp_abi_h).
2228 * thread-db.c (_initialize_thread_db): Add set/show command
2229 "debug-linux-threads" for debugging output.
2230 * lin-lwp.c (various): Use global "debug_linux_threads to
2231 turn on extra debugging output.
2232 * lin-lwp.c: Minor cleanups in comments.
2233 * target.c (normal_pid_to_str): Get rid of an ancient hack.
2234 * remote.c (remote_pid_to_str): New function for remote target.
2238 * c-typeprint.c (c_type_print_cv_qualifier): Don't print `const'
2239 qualifier on C++ references; all references are innately const.
2243 * event-top.h: Fix formatting.
2247 * source.c (openp): Obsolete #ifdef MPW code.
2248 (open_source_file): Ditto.
2249 * event-top.c (display_gdb_prompt): Ditto.
2250 * utils.c (query): Ditto.
2251 (init_page_info): Ditto.
2252 (init_page_info): Delete #ifndef MPW.
2253 * top.c (gdb_readline): Ditto.
2254 * mac-xdep.c: Obsolete.
2255 * mac-gdb.r: Obsolete.
2256 * config/powerpc/xm-mpw.h: Obsolete.
2257 * config/xm-mpw.h: Obsolete.
2258 * mpw-make.sed: Obsolete.
2259 * mpw-config.in: Obsolete.
2265 * i386-tdep.c (i386_frameless_function_invocation): New function.
2266 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION): Redefine
2267 in terms of i386_frameless_function_invocation. Adjust comment.
2268 (i386_frameless_function_invocation): New prototype.
2272 * top.c (gdb_init): Don't call cli_out_new() to
2273 create global uiout if init_ui_hook is set. uiout will
2274 have to be initialized there.
2278 * arch-utils.c: Include "regcache.h".
2282 * i386-tdep.c (i386_saved_pc_after_call): New function.
2283 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Redefine in terms
2284 of i386_saved_pc_after_call.
2285 (i386_saved_pc_after_call): New prototype.
2289 * i386-nat.c: Fix typo in comment.
2290 * solib.c (no_shared_libraries): New function. Discard all symbols
2291 from shared libraries.
2292 (_initialize_solib): Add command "nosharedlibrary" as complement
2293 to the command "sharedlibrary". Unloads symbols for all solibs.
2297 * configure.host (m68030-sony-*, m68*-isi-*, m68*-sony-*):
2298 * configure.tgt (m68*-rom68k-*, m68*-*bug-*, m68*-monitor-*)
2299 (m68*-est-*, m68*-sony-*, m68*-isi-*):
2300 * Makefile.in (xm-news1000.h, tm-news.h, xm-news.h): Obsolete..
2301 * config/m68k/xm-news.h: Obsolete.
2302 * config/m68k/tm-news.h:
2303 * config/m68k/xm-news1000.h: Obsolete.
2304 * config/m68k/news.mh: Obsolete.
2305 * config/m68k/news.mt: Obsolete.
2306 * config/m68k/nm-news.h: Obsolete.
2307 * config/m68k/news1000.mh: Obsolete.
2308 * news-xdep.c: Obsolete.
2309 * Makefile.in (isi-xdep.o): Obsolete.
2310 (ALLDEPFILES): Delete isi-xdep.c.
2311 (tm-isi.h): Obsolete.
2312 * m68k-tdep.c (altos_skip_prologue): Update comments.
2313 (isi_skip_prologue): Obsolete.
2314 * isi-xdep.c: Obsolete.
2315 * config/m68k/xm-isi.h: Obsolete.
2316 * config/m68k/isi.mh: Obsolete.
2317 * config/m68k/tm-isi.h: Obsolete.
2318 * config/m68k/isi.mt: Obsolete.
2325 * remote.c (remote_open_1): On opening the remote target, activate
2326 the solib_create_inferior_hook, so that it can detect when the
2327 target loads shared libraries.
2328 (remote_async_open_1): Ditto.
2332 * breakpoint.c (print_one_breakpoint): Handle 64-bit addresses.
2333 * tracepoint.c (tracepoints_info): Handle 64-bit addresses.
2334 * testsuite/gdb.trace/deltrace.exp: Allow for 64-bit addresses.
2335 * testsuite/gdb.trace/infotrace.exp: Ditto.
2336 * testsuite/gdb.trace/passcount.exp: Ditto.
2337 * testsuite/gdb.trace/while-stepping.exp: Ditto.
2341 * thread-db.c (check_thread_signals): When looping over all
2342 signals, ignore signal zero.
2343 (disable_thread_signals): Ditto.
2347 * thread.c (do_captured_thread_select): Allow the argument to the
2348 thread command to be an expression rather than a literal integer.
2352 * i386-linux-tdep.c (i386_linux_saved_pc_after_call): Use
2353 read_memory_unsigned_integer instead of read_memory_integer.
2357 * solib-aix5.c (map_index_vs_section_name_okay): New function.
2358 (aix5_relocate_main_executable): Don't use file offsets for
2359 determining corresponding sections and map file entries. Call
2360 map_index_vs_section_name_okay() to do this instead.
2364 * procfs.c (open_with_retry): New function.
2365 (open_procinfo_files, load_syscalls, proc_iterate_over_mappings)
2366 (proc_get_LDT_entry): Call open_with_retry() instead of open().
2370 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Adjust
2371 comparison against TRAP_HWBKPT constant yet again to account
2372 for the various values used by different kernel versions.
2376 * demangle.c (_initialize_demangler): Use xcalloc on the
2377 demangling_style_names, and make it a null terminated array of
2378 names, to avoid a crash.
2382 * i386-tdep.c (i386_frame_chain): New function.
2383 * config/i386/tm-i386.h (FRAME_CHAIN): Redefine in terms of
2385 (i386_frame_chain): New prototype.
2389 * target.h (target_ops): Removed to_core_file_to_sym_file vector
2391 * corelow.c (core_ops): Updated for above change.
2392 * gnu-nat.c (core_ops): Likewise.
2393 * inftarg.c (child_ops): Likewise.
2394 * monitor.c (monitor_ops): Likewise.
2395 * ppc-bdm.c (bdm_ppc_ops): Likewise.
2396 * remote-adapt.c (adapt_ops): Likewise.
2397 * remote-bug.c (bug_ops): Likewise.
2398 * remote-e7000.c (e7000_ops): Likewise.
2399 * remote-eb.c (eb_ops): Likewise.
2400 * remote-es.c (es1800_ops, es1800_child_ops): Likewise.
2401 * remote-mm.c (mm_ops): Likewise.
2402 * remote-nindy.c (nindy_ops): Likewise.
2403 * remote-nrom.c (nrom_ops): Likewise.
2404 * remote-os9k.c (rombug_ops): Likewise.
2405 * remote-rdp.c (remote_rdp_ops): Likewise.
2406 * remote-sim.c (gdbsim_ops): Likewise.
2407 * remote-st.c (st2000_ops): Likewise.
2408 * v850ice.c (v850ice_ops): Likewise.
2409 * target.c (cleanup_target): Likewise
2410 (update_current_target): Likewise.
2411 (setup_target_debug): Likewise
2412 (debug_to_core_file_to_sym_file): Removed.
2414 * corefile.c (core_file_command) [HPUXHPPA]: Removed code that
2415 sets symbol file from information obtained from the core file.
2416 * corelow.c (core_file_to_sym_file): Removed.
2421 Fixed Insight on Solaris. It was not possible to debug a process
2422 because of EINTR "errors".
2423 * procfs.c: (procfs_wait): if proc_wait_for_stop() fails
2424 with EINTR, retry the call.
2428 * solib-aix5.c (enum maptype): Delete.
2429 (struct lm_info): Add new member ``nmappings''. Make ``mapping''
2430 member a pointer instead of a statically sized array.
2431 (build_so_list_from_mapfile): Dynamically allocate ``mapping''
2433 (aix5_relocate_main_executable, aix5_relocate_section_addresses,
2434 aix5_find_global_pointer): Search for correct mapping to use
2435 based on file offset instead of knowledge of whether the section
2436 is read-only or read/write.
2437 (aix5_find_gate_addresses): Use the first mapping instead of
2438 the (now defunct) MT_READONLY mapping.
2442 * xcoffread.c (scan_xcoff_symtab): Ignore symbols beginning with
2447 * config/i386/fbsd.mh (NATDEPFILES): Add i386-nat.o.
2451 Obsolete i[3456]86-*-sunos* (aka Sun386) host and target.
2452 * config/i386/sun386.mh: Obsolete.
2453 * config/i386/sun386.mt: Obsolete.
2454 * config/i386/xm-sun386.h: Obsolete.
2455 * config/i386/tm-sun386.h: Obsolete.
2456 * config/i386/nm-sun386.h: Obsolete.
2457 * Makefile.in (ALLDEPFILES): Delete sun386-nat.c.
2458 (sun386-nat.o): Target is obsolete.
2459 * sun386-nat.c: Obsolete.
2460 * configure.tgt (i[3456]86-*-sunos*): Obsolete.
2461 * configure.host (i[3456]86-*-sunos*): Obsolete.
2467 * maint.c: Fix typo in comment.
2471 * MAINTAINERS: Swap with Syd Polk as a gdbtk maintainer.
2475 * fork-child.c (fork_inferior, clone_and_follow_inferior):
2476 Document fact that apparent call to vfork() might actually be
2477 a call to fork() instead.
2478 * ser-pipe.c (pipe_open): Likewise.
2482 * printcmd.c (print_frame_args): Use a cleanup to invoke
2483 ui_out_list_end() so that the list count nesting flag will
2484 be decremented properly when an error occurs.
2485 * stack.c (print_frame): Likewise.
2489 * dcache.c (dcache_write_line): Fixed bugs where cache line was
2490 not written to target correctly.
2492 * gdbserver/low-hppabsd.c (read_inferior_memory): Add explicit
2494 * gdbserver/low-nbsd.c: Likewise.
2495 * gdbserver/low-sparc.c: Likewise.
2496 * gdbserver/low-sun3.c: Likewise.
2500 * config/rs6000/nm-rs6000.h (PTRACE_ATTACH): Don't define.
2501 (PTRACE_DETACH): Don't define.
2505 * arch-utils.c (default_prepare_to_proceed)
2506 (generic_prepare_to_proceed): Added new functions.
2507 * arch-utils.h: New function declarations for
2508 default_prepare_to_proceed() and generic_prepare_to_proceed().
2509 * gdbarch.sh: Added PREPARE_TO_PROCEED.
2510 * gdbarch.c: Regenerated.
2511 * gdbarch.h: Regenerated.
2512 * inferior.h: Added get_last_target_status() declaration.
2513 * infrun.c (get_last_target_status): Added new function.
2514 (handle_inferior_event): Saves last pid and waitstatus, which will
2515 get returned by get_last_target_status().
2517 * hppa-tdep.c (prepare_to_proceed): Added comment stating that
2518 prepare_to_proceed() is potentially redundant since
2519 default_prepare_to_proceed() has been added.
2520 * linux-thread.c (prepare_to_proceed): Ditto.
2521 * lin-lwp.c (prepare_to_proceed): Ditto.
2522 * m3-nat.c (prepare_to_proceed): Ditto.
2526 Obsolete powerpcle-*-cygwin* and powerpcle-*-solaris* platforms
2527 and powerpc-*-netware* target.
2528 * configure.host (powerpcle-*-cygwin*, powerpcle-*-solaris*):
2530 * configure.tgt (powerpc-*-netware*, powerpcle-*-cygwin*)
2531 (powerpcle-*-solaris*): Obsolete.
2532 * config/powerpc/tm-cygwin.h: Obsolete.
2533 * config/powerpc/cygwin.mt: Obsolete.
2534 * config/powerpc/xm-cygwin.h: Obsolete.
2535 * config/powerpc/cygwin.mh: Obsolete.
2536 * config/powerpc/nm-solaris.h: Obsolete.
2537 * config/powerpc/xm-solaris.h: Obsolete.
2538 * config/powerpc/tm-solaris.h: Obsolete.
2539 * config/powerpc/solaris.mt: Obsolete.
2540 * config/powerpc/tm-ppc-nw.h: Obsolete.
2541 * config/powerpc/ppc-nw.mt: Obsolete.
2547 * buildsym.c (record_line): Turn off unused addr bits.
2552 * inferior.h: Fix declarations of get_inferior_args and
2553 set_inferior_args, which were missing the trailing 's'.
2557 * monitor.c (monitor_supply_register): Only report an error if we
2558 don't get a valid value.
2562 * README: Don't mention gdba.el.
2567 * top.c (init_main): set prompt if annotation_level>1,
2568 this is necessary when annotation_level is set to 2 via
2569 --annotate=2 command line option.
2573 Obsolete a29k-*-* host and a29k-*-sym1* and a29k-*-kern* targets.
2574 * configure.tgt (a29k-*-sym1*, a29k-*-kern*): Obsolete.
2575 * configure.host (a29k-*-*): Obsolete.
2576 * Makefile.in (ALLDEPFILES): Remove ultra3-nat.c and
2578 (ultra3-nat.o, ultra3-xdep.o): Obsolete.
2579 * config/a29k/tm-ultra3.h: Obsolete.
2580 * config/a29k/ultra3.mt: Obsolete.
2581 * config/a29k/ultra3.mh: Obsolete.
2582 * config/a29k/nm-ultra3.h: Obsolete.
2583 * config/a29k/xm-ultra3.h: Obsolete.
2584 * ultra3-xdep.c: Obsolete.
2585 * ultra3-nat.c: Obsolete.
2586 * config/a29k/a29k-kern.mt: Obsolete.
2592 * main.c: Remove windows.h use.
2593 (gdbtk_test): Use PATH_MAX for home var calculation.
2594 * remote-e7000.c (e7000_parse_device): Accomodate Cygwin as well as
2595 Win32 in colon test.
2596 * ser-tcp.c: Use modern __CYGWIN__ conditional.
2597 * source.c (mod_path): Add __CYGWIN__ conditional to WIN32 test.
2599 * symfile.c (symfile_bfd_open): Ditto.
2603 * main.c (captured_main): For GDBtk, don't use tui_fileopen().
2604 Handle all stream setup in gdbtk_init
2608 * i386-tdep.c (i386_extract_return_value): Don't return the return
2609 value of a void function.
2610 (i386_store_return_value): Likewise.
2614 Obsolete w65-*-* target.
2615 * configure.tgt (w65-*-*): Obsolete.
2616 * config/w65/w65.mt: Obsolete.
2617 * config/w65/tm-w65.h: Obsolete.
2618 * w65-tdep.c: Obsolete.
2619 * NEWS: Update. Fix TiC80 description.
2624 Obsolete tic80-*-* target.
2625 * configure.tgt (tic80-*-*): Obsolete.
2626 * config/tic80/tic80.mt: Obsolete.
2627 * config/tic80/tm-tic80.h: Obsolete.
2628 * tic80-tdep.c: Obsolete.
2634 * remote-mips.c (S_IROTH): Moved definition from here.
2635 * gdb_stat.h (S_IROTH): to here.
2637 * remote.c (remote_protocol_e, remote_protocol_E): Define.
2638 (set_remote_protocol_e_packet_cmd)
2639 (set_remote_protocol_E_packet_cmd)
2640 (show_remote_protocol_e_packet_command)
2641 (show_remote_protocol_E_packet_command): New functions.
2642 (init_all_packet_configs): Initialize remote_protocol_e and
2644 (remote_resume, remote_async_resume): Support e/E command
2646 (show_remote_cmd): Show state of remote_protocol_e and
2648 (_initialize_remote): Add "set remote step-over-range-packet"
2649 and "set remote step-over-range-w-signal-packet" to CLI.
2653 Obsolete ns32k-*-mach3*, ns32k-umax-*, ns32k-utek-sysv* and
2655 * Makefile.in (ALLDEPFILES): Delete umax-xdep.c and ns32km3-nat.c.
2656 (umax-xdep.o, ns32km3-nat.o): Obsolete.
2657 * configure.tgt (ns32k-*-mach3*, ns32k-utek-sysv*, ns32k-utek-*):
2659 * configure.host (ns32k-*-mach3*, ns32k-umax-*, ns32k-utek-sysv*):
2661 * config/ns32k/merlin.mh: Obsolete.
2662 * config/ns32k/merlin.mt: Obsolete.
2663 * config/ns32k/xm-merlin.h: Obsolete.
2664 * config/ns32k/tm-merlin.h: Obsolete.
2665 * config/ns32k/nm-umax.h: Obsolete.
2666 * config/ns32k/umax.mh: Obsolete.
2667 * config/ns32k/umax.mt: Obsolete.
2668 * config/ns32k/xm-umax.h: Obsolete.
2669 * umax-xdep.c: Obsolete.
2670 * config/ns32k/ns32km3.mh: Obsolete.
2671 * config/ns32k/ns32km3.mt: Obsolete.
2672 * config/ns32k/tm-ns32km3.h: Obsolete.
2673 * config/ns32k/xm-ns32km3.h: Obsolete.
2674 * ns32km3-nat.c: Obsolete.
2675 * ns32k-tdep.c (merlin_skip_prologue): Obsolete.
2676 (merlin_frame_num_args): Ditto.
2682 * config/djgpp/fnchange.lst: Tweak due to
2683 expect/example/chesslib.c.
2687 * m88k-tdep.c (examine_prologue): Change type of ``insn'' from
2688 unsigned int to unsigned long. Also, fix format string.
2689 (pop_frame): Fix PC_IN_CALL_DUMMY() call so that it doesn't
2690 use an undeclared variable. Also, delete declaration and
2691 initialization of ``fp'' because it is otherwise unused.
2692 * remote-bug.c (sleep): Delete declaration.
2693 (bug_store_register, bug_write_memory, bug_read_memory)
2694 (bug_insert_breakpoint, bug_remove_breakpoint): Fix sprintf()
2695 format statements and cast certain sprintf() arguments to
2697 (bug_load): Likewise for call to printf_filtered().
2698 * config/m88k/tm-m88k.h (FIX_CALL_DUMMY): Eliminate
2699 assignment to ``pc''. The necessary assignment is done in
2700 hand_function_call() after the invocation of FIX_CALL_DUMMY().
2704 * symtab.c (completion_list_add_name): Remove duplicate string checks,
2705 readline already does this, and it's much faster at it, too.
2709 * go32-nat.c: Minor tweaks, to pacify the ari script.
2713 * i386-tdep.c (i386_extract_struct_value_address): New function.
2714 * config/i386/tm-i386.h (EXTRACT_STRUCT_VALUE_ADDRESS): Redefine
2715 in terms of i386_extract_struct_value_address.
2716 (i386_extract_struct_value_address): New prototype.
2718 * i386-linux-nat.c (i386_linux_dr_get): Change type of return
2719 value to `unsigned long'. Change type of `value' to `unsigned
2721 (i386_linux_dr_set): Change type of second argument to `unsigned
2723 (i386_linux_dr_set_control): Change type of first argument to
2725 (i386_linux_dr_get_status): Change type of return value to
2727 * config/i386/nm-linux.h (i386_linux_dr_set_control,
2728 i386_linux_dr_get_status): Adjust prototypes accordingly.
2732 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Change
2733 TRAP_HWBKPT constant to match that in the kernel headers for
2738 * i386bsd-nat.c: Include "gdb_assert.h".
2739 [HAVE_PT_GETDBREGS] (DBREG_DRX): Define if not
2741 [HAVE_PT_GETDBREGS] (i386bsd_dr_set, i386bsd_dr_set_control,
2742 i386bsd_dr_set_addr, i386bsd_dr_reset_addr,
2743 i386bsd_dr_get_status): New functions.
2744 * config/i386/nm-fbsd.h [HAVE_PT_GETDBREGS]
2745 (I386_USE_GENERIC_WATCHPOINTS): Define.
2746 Include "i386/nm-i386.h".
2747 (I386_DR_LOW_SET_CONTROL, I386_DR_LOW_SET_ADDR,
2748 I386_DR_LOW_RESET_ADDR, I386_DR_LOW_GET_STATUS): New macros.
2749 (i386bsd_dr_set_control, i386bsd_dr_set_addr,
2750 i386bsd_dr_reset_addr, i386bsd_dr_get_status): New prototypes.
2751 * acconfig.h (HAVE_PT_GETDBREGS): New configure macro.
2752 * configure.in: Cleanup a few comments. Check for PT_GETDBREGS
2754 * config.in, configure: Regenerate.
2756 * i386-nat.c (i386_insert_aligned_watchpoint): Set address
2757 register before enabling it by setting the control register.
2758 (i386_remove_aligned_watchpoint): Reset address register after
2759 disabling it by setting the control register.
2761 * i386-tdep.c (i386_extract_return_value): If the type of the
2762 return value is TYPE_STRUCT and the number of fields is one, call
2763 ourselves with TYPE set tp the type of the first field.
2764 (i386_store_return_value): Likewise.
2765 This fixes a problem with returning structs consisting of a single
2766 `float' or `double' on *BSD.
2770 * lin-lwp.c (lin_lwp_resume): Don't mark LWP as not stopped until
2771 we're absolutely sure we're going to resume it.
2773 * thread-db.c (check_event): Don't report an error if we encounter
2774 a thread creation event for a thread that's already in the thread
2775 list, since that may legitemately happen. Instead only call
2776 attach_thread if it's not already in the thread list.
2780 * config/pa/xm-hppah.h (malloc): Really delete declaration
2781 (MALLOC_INCOMPATIBLE): Really delete macro.
2782 * cli/cli-cmds.c (apropos_command): Use xcalloc.
2786 * configure.in (build_warnings): Add -Wuninitialized.
2787 * configure: Regenerate.
2789 * v850-tdep.c (v850_scan_prologue): Initialize ``insn2''.
2790 * sparc-tdep.c (sparc64_push_arguments): Add default case to
2792 * sh-tdep.c (sh_do_fp_register): Replace ``?:'' printf format
2793 expression with if statement.
2794 * mn10200-tdep.c (mn10200_analyze_prologue): Initialize
2796 * mips-tdep.c (show_mipsfpu_command): Add default case to switch.
2797 (mips_dump_tdep): Fix setting of ef_mips_arch.
2798 * mcore-tdep.c (mcore_analyze_prologue): Initialize ``fp_regnum''.
2799 * dsrec.c (make_srec): Always initialize ``binbuf''.
2800 * monitor.c (monitor_read_memory_single): Do not pass an
2801 uninitialized buffer to monitor_error. Make ``i'' more local.
2805 * MAINTAINERS: Change ns32k target to ,-Werror.
2807 * ns32k-tdep.c: Include "gdbcore.h"
2808 (flip_bytes): Change first argument to void*. Add forward
2810 (sign_extend): Add declaration.
2811 (merlin_frame_num_args): Add final else clause to if-else chain.
2812 (umax_frame_num_args): Ditto.
2813 * config/ns32k/tm-umax.h (ns32k_localcount): Declare.
2814 (flip_bytes): Ditto.
2818 * i386-linux-tdep.c (FRAMELESS_SIGNAL): Moved here from
2819 config/i386/nm-linux.h (including comment).
2820 (i386_linux_frame_chain): New function implementing guts of the
2821 former FRAME_CHAIN macro, but using read_memory_unsigned_integer
2822 instead of read_memory_integer.
2823 (i386_linux_frame_saved_pc): Removed doc pointing to
2824 i386/tm-linux.h for an explanation of FRAMELESS_SIGNAL since that
2825 now lives in this file.
2826 * config/i386/tm-linux.h (FRAMELESS_SIGNAL): Moved to
2827 i386-linux-tdep.c (including comment).
2828 (FRAME_CHAIN): Redefined in terms of i386_linux_frame_chain.
2829 (i386_linux_frame_chain): New prototype.
2831 * gdbserver/low-linux.c [I386_GNULINUX_TARGET]: Cleanup code and
2833 (NUM_FREGS): Redefine to 0.
2834 (NUM_REGS): Redefine as NUM_GREGS.
2835 (i386_register_byte, i386_register_raw_size): Update from
2836 i386-tdep.c. Add comment about their origin.
2837 (regmap, register_u_addr): Take these from i386-linux-nat.c.
2838 (i386_register_u_addr): Removed.
2840 * i386-linux-nat.c (i386_linux_dr_get): Return 0 if ptrace call
2841 fails instead of calling perror_with_name. This should fix
2842 debugging remote i386 targets with a native Linux/x86 GDB. Add
2843 FIXME for this hack.
2847 * arch-utils.c (#include "gdbthread.h"): Removed.
2848 (#include "symfile.h"): Removed.
2849 (XMALLOC): Removed unused macro.
2850 * breakpoint.c (tbreak_command): Removed local declaration.
2851 (awatch_command, do_enable_breakpoint, set_breakpoint_count):
2852 Remove duplicate declarations.
2853 (bpstat_should_step, bpstat_have_active_hw_watchpoints)
2854 (remove_solib_event_breakpoints): Fix indentation botch.
2855 * c-typeprint.c (#include "command.h"): Removed.
2856 (#include "gdbcmd.h"): Removed.
2857 * ch-exp.c (ch_terminal_match_float_literal, parse_expr)
2858 (parse_primval, parse_untyped_expr, parse_opt_untyped_expr):
2859 Removed duplicate declarations.
2860 * ch-typeprint.c (#include "command.h"): Removed.
2861 (#include "gdbcmd.h"): Removed.
2862 * corefile.c (#include "frame.h"): Removed
2863 (#include "symfile.h"): Removed.
2864 (#include "language.h"): Removed.
2865 * dbxread.c (#include "command.h"): Removed.
2866 * environ.c (#include "gdbcore.h"): Removed.
2867 * event-loop.c (#include "top.h"): Removed.
2868 * f-typeprint.c (#include "command.h"): Removed.
2869 (#include "gdbcmd.h"): Removed.
2870 (#include "language.h"): Removed.
2871 (#include "typeprint.h"): Removed.
2872 (#include "frame.h"): Removed.
2873 * gdbtypes.h (print_type_scalar): Removed declaration.
2874 * infcmd.c (#include "completer.h"): Removed.
2875 * language.c (#include "frame.h"): Removed.
2876 * m2-typeprint.c (#include "command.h"): Removed.
2877 (#include "gdbcmd.h"): Removed.
2878 (#include "language.h"): Removed.
2879 * m2-valprint.c (#include "valprint.h"): Removed.
2880 * p-typeprint.c (#include "command.h"): Removed.
2881 (#include "gdbcmd.h"): Removed.
2882 * p-valprint.c (#include "typeprint.h"): Removed.
2883 * parse.c (#include "linespec.h"): Removed.
2884 * regcache.c (#include "frame.h"): Removed.
2885 * remote.c (#include "frame.h"): Removed.
2886 (getpkt_sane): Make static.
2887 * source.c (#include "completer.h"): Removed.
2888 * stack.c (#include "symfile.h"): Removed.
2889 (#include "objfiles.h"): Removed.
2890 * symfile.c (#include "completer.h"): Removed.
2891 * tracepoint.c (#include "completer.h"): Removed.
2892 * values.c (#include "frame.h"): Removed.
2893 * varobj.c (#include "valprint.h"): Removed.
2894 * wrapper.c (#include "frame.h"): Removed.
2896 * memattr.c (create_mem_region): Removed unused variable.
2897 * remote-nrom.c: Removed spurious semicolon after init_nrom_ops.
2901 * remote-rdp.c (rdp_set_command_line): Add missing double quote.
2905 * solib-aix5.c (build_so_lib_from_mapfile): Use xfree() instead
2910 * TODO (Cleanups): Remove the item about converting docs to GFDL.
2914 * ia64-tdep.c (slotN_contents, replace_slotN_contents): Change
2915 type of ``bundle'' from unsigned char * to char *.
2916 (ia64_get_saved_register): Use alloca() to allocate register
2919 * solib-aix5.c (build_so_lib_from_mapfile): Fix xasprintf() usage.
2923 * proc-utils.h (procfs_ctl_t): New typedef.
2924 * proc-api.c (write_with_trace): Change type of ``opcode'' from
2925 long to procfs_ctl_t. Don't assume that the target has defined
2926 BREAKPOINT. Handle case in which PCRESET is the same as PCUNSET.
2927 * proc-events.c (sys/syscall.h, sys/fault.h): Include conditionally.
2928 * procfs.c (sys/fault.h, sys/syscall.h): Include conditionally.
2929 (gdb_sigset_t, gdb_sigaction_t, gdb_siginfo_t, gdb_premptysysset)
2930 (gdb_praddsysset, gdb_prdelsysset, gdb_pr_issyssetmember):
2931 Conditionally define as appropriate for AIX/non-AIX systems. Use
2932 these defines/typedefs as appropriate elsewhere in file.
2933 (struct procinfo): Change type of saved_sigset and saved_sighold
2934 from sigset_t to gdb_sigset_t. Make saved_exitset and
2935 saved_entryset pointer variables. Add two new fields, num_syscalls
2937 (DYNAMIC_SYSCALLS): Define when HAVE_PRSYSENT_T is defined.
2938 (sysset_t_size, sysset_t_alloc): New functions.
2939 (load_syscalls, free_syscalls, find_syscall): New functions for
2940 platforms which define DYNAMIC_SYSCALLS.
2941 (create_procinfo): Call load_syscalls.
2942 (destroy_one_procinfo): Call free_syscalls.
2943 (GDBRESET): Don't define twice.
2944 (proc_modify_flag): Change type of operation code array `arg'
2945 from long to procfs_ctl_t.
2946 (proc_stop_process, proc_wait_for_stop, proc_run_process)
2947 (proc_set_traced_signals, proc_set_traced_faults)
2948 (proc_set_traced_sysentry, proc_set_traced_sysexit)
2949 (proc_set_held_signals, proc_clear_current_fault)
2950 (proc_set_current_signal, proc_clear_current_signal, proc_set_gregs)
2951 (proc_set_fpregs, proc_kill, proc_set_watchpoint): Likewise for `cmd'.
2952 (proc_set_traced_sysentry): Dynamically allocate variable sized
2953 struct gdb_proc_ctl_pcsentry. Also, free it at function exit.
2954 (proc_set_traced_sysexit): Dynamically allocate variable
2955 sized struct gdb_proc_ctl_pcsexit. Also, free it at
2957 (proc_get_traced_sysentry, proc_get_traced_sysexit): Add new code
2958 for reading the sysset_t struct on AIX5.
2959 (procfs_debug_inferior): Don't assume that SYS_exit will be
2960 defined. Add new code for finding certain syscalls on AIX5.
2961 (syscall_is_lwp_exit, syscall_is_exit, syscall_is_exec)
2962 (syscall_is_lwp_create): New functions.
2963 (procfs_wait): Restructured code which checks for certain
2964 system calls to use the new syscall_is_... functions.
2965 (procfs_notice_signals): Account for the fact that saved_entryset
2966 and saved_exitset in struct procinfo are now pointers.
2970 * symtab.c (find_pc_sect_line): Revise method used for finding
2975 * i386-linux-tdep.c (i386_linux_sigtramp_saved_pc,
2976 i386_linux_sigtramp_saved_sp): Make static.
2977 (i386_linux_frame_saved_pc): New function based on the old
2978 FRAME_SAVED_PC macro, but use read_memory_unsigned_integer instead
2979 of read_memory_integer.
2980 * config/i386/tm-linux.h (sigtramp_saved_pc): Remove definition.
2981 (i386_linux_sigtramp_saved_pc): Remove prototype.
2982 (FRAME_SAVED_PC): Redefine in terms of i386_linux_frame_saved_pc.
2983 (i386_linux_frame_saved_pc): New prototype.
2987 * MAINTAINERS: Document m88k as a ``Known problem in 5.1''.
2988 * TODO (GDB 5.1 - Cleanups): Update.
2992 * fork-child.c (clone_and_follow_inferior): Delete #ifdef
2997 * config/i386/tm-symmetry.h (PUSH_ARGUMENTS): #undef.
2999 * i386-tdep.c (i386_push_arguments, i386_store_struct_return): New
3001 * config/i386/tm-i386.h (PUSH_ARGUMENTS): New macro.
3002 (STORE_STRUCT_RETURN): Redefine in terms of
3003 i386_store_struct_return.
3004 (i386_push_arguments, i386_store_struct_return): New prototypes.
3005 * config/i386/tm-i386v.h (STORE_STRUCT_RETURN): Remove. It's
3006 definition was identical to the definition in "i386/tm-i386.h" so
3007 the new definition should suffice too.
3011 * event-loop.c (toplevel) [!HAVE_POLL] [NO_FD_SET]: Remove unused
3012 definitions for SELECT, NBBY, FD_SETSIZE, NFDBITS, and MASK_SIZE.
3014 * config/djgpp/djconfig.sh: Add copyright notice.
3016 * ser-go32.c (rawclock): Remove prototype; include time.h instead.
3017 (ISR, dos_hookirq, isr_t): Convert K&R definition to ANSI C.
3018 (top level) <string.h>: Include gdb_string.h instead.
3019 (dos_noop, dos_raw, dos_noflush_set_tty_state)
3020 (dos_print_tty_state, dos_info): Remove ATTRIBUTE_UNUSED.
3022 * go32-nat.c (go32_create_inferior): Move the declaration of
3023 `environ' to here from the top level.
3024 (top level) <_initialize_go32_nat>: Remove redundant prototype.
3025 <gdb_string.h>: Include it instead of string.h.
3026 (store_register): Call register_buffer instead of accessing
3027 registers[] directly.
3028 (redir_cmdline_delete, redir_cmdline_parse, redir_to_debugger)
3029 (redir_to_debugger, redir_debug_init) [__DJGPP_MINOR__ < 3]: Put
3030 the function names at the start of the line.
3031 (go32_set_dr): Throw internal_error if the argument is not a valid
3032 debug register number.
3033 (go32_open, go32_close, go32_attach, go32_detach, go32_resume)
3034 (go32_wait, go32_xfer_memory, go32_files_info)
3035 (go32_terminal_info): Remove ATTRIBUTE_UNUSED.
3039 * mips-tdep.c (mips_gdbarch_init): Tweak indentation.
3045 * coffread.c: Include "gdb_assert.h".
3046 (coff_symtab_read): Cast the integer s_sclass to a long before
3047 casting it to a pointer.
3053 * coffread.c (coff_symtab_read): Initialize
3054 ``fcn_first_line_addr''. Check that the ``.bf'' always preceeds
3056 * dbxread.c (find_text_range): Initialize ``start'' and ``end''.
3060 * config/sparc/tm-sp64.h (GDB_MULTI_ARCH): Down grade to
3061 GDB_MULTI_ARCH_PARTIAL from two. SOFTWARE_SINGLE_STEP is not
3064 * gdbarch.sh (SOFTWARE_SINGLE_STEP): Add.
3065 * gdbarch.h, gdbarch.c: Re-generate.
3067 * target.h (SOFTWARE_SINGLE_STEP_P)
3068 (SOFTWARE_SINGLE_STEP): Delete macro definitions.
3072 * gdbarch.sh (gdbarch_register_read, gdbarch_register_write): Add.
3073 * gdbarch.h, gdbarch.c: Regenerate.
3075 * regcache.h (regcache_read, regcache_write): Declare.
3076 (registers, register_valid, register_buffer): Add note that these
3077 interfaces are deprecated.
3079 * regcache.c: Include "gdb_assert.h".
3080 (legacy_write_register_gen): Rename write_register_gen.
3081 (legacy_read_register_gen): Rename read_register_gen.
3082 (regcache_read, regcache_write): New function.
3083 (read_register_gen, write_register_gen): New function.
3084 (write_register): Simplify. Use write_register_gen.
3085 (read_register): Ditto using read_register_gen.
3086 (read_signed_register): Ditto.
3087 (read_register_bytes): Ditto!!!!
3088 (supply_register): Add note that CLEANUP_REGISTER_VALUE is being
3089 replaced by gdbarch_register_read.
3091 * TODO (GDB 5.2 - Cleanups): Add list of gdbarch methods to
3096 Fix from Dan Berlin:
3098 * stabsread.c (read_cpp_abbrev): Properly construct the names of
3099 virtual function table pointer fields.
3103 * defs.h (xfree, mcalloc, mmalloc, mrealloc, mfree, xmmalloc,
3104 xmrealloc): Move existing declarations to the one place and
3105 re-order to be consistent.
3106 (xmcalloc, xmfree): Declare.
3107 (xmmalloc, xmrealoc): Assume ISO-C - use size_t and void* in
3110 * utils.c (size_t): Delete #ifdef defining size_t.
3111 (mmalloc, mrealloc, mcalloc, mfree): Re-order.
3112 (mmalloc, mrealloc, mcalloc): Document as only calls in GDB
3113 corresponding malloc, realloc, calloc.
3114 (mfree): Call free directly.
3115 (xmmalloc, xmrealloc): Clean up. Assume ISO-C.
3116 (xmcalloc, xmfree): New functions. Copy old xcalloc and xfree
3117 function bodies to here.
3118 (xcalloc, xfree): Call xmcalloc and xmfree respectfully.
3122 * fork-child.c (fork_inferior): Make ``argv'', ``exec_file'' and
3123 ``shell_file'' static locals.
3125 * jv-lang.c (java_link_class_type): Initialize ``field'' and
3128 * jv-valprint.c (java_value_print): Initialize ``next_element''.
3132 * config/i386/nm-i386.h: Fix formatting and change reference to
3133 i386-tdep.c to i386-nat.c.
3137 * configure.in: Corrected spelling errors.
3138 * configure: Regenerated.
3142 * TODO (GDB 5.1 - Cleanups): Add more targets to obsolete.
3146 * Makefile.in (NTSSTART): Delete.
3148 (kdb): Delete target.
3149 * kdb-start.c, stuff.c: Mark as obsolete.
3154 * config/pa/xm-hppah.h (HPPA_COMPILER_BUG): Delete. GDB only
3155 compiles using an ISO-C compiler.
3156 (MALLOC_INCOMPATIBLE): Ditto.
3157 * linespec.c (decode_line_1): Delete hack to work around
3162 * exec.c (xfer_memory): Always initialize section.
3163 * infrun.c (normal_stop): Always initialize source_flag.
3167 * TODO (Remote Protocol Support): Review. Add notes about ``!'',
3168 non-use of a continue address and typical use of ``q'' packet.
3172 Make DJGPP use the new unified support for hardware
3173 breakpoints and watchpoints on x86 targets:
3175 * config/i386/nm-go32.h <top level>: Don't include nm-i386v.h,
3176 include nm-i386.h instead.
3177 (TARGET_HAS_HARDWARE_WATCHPOINTS, HAVE_CONTINUABLE_WATCHPOINT)
3178 (TARGET_CAN_USE_HARDWARE_WATCHPOINT, STOPPED_BY_WATCHPOINT)
3179 (TARGET_REGION_OK_FOR_HW_WATCHPOINT, DECR_PC_AFTER_HW_BREAK)
3180 (target_stopped_data_address, target_insert_watchpoint)
3181 (target_remove_watchpoint, target_insert_hw_breakpoint)
3182 (target_remove_hw_breakpoint): Don't define.
3183 (I386_USE_GENERIC_WATCHPOINTS, I386_DR_LOW_SET_CONTROL)
3184 (I386_DR_LOW_SET_ADDR, I386_DR_LOW_RESET_ADDR)
3185 (I386_DR_LOW_GET_STATUS): Define to call appropriate go32_*
3186 functions from go32-nat.c.
3188 * config/i386/go32.mh (NATDEPFILES): Add i386-nat.o.
3190 * go32-nat.c <top level>: Remove prototypes for watchpoint-
3191 related functions. Remove definitions of watchpoint-related
3193 (go32_mourn_inferior): Call i386_cleanup_dregs instead of the
3194 private cleanup_dregs function.
3195 (cleanup_dregs, go32_insert_watchpoint)
3196 (go32_insert_aligned_watchpoint, go32_handle_nonaligned_watchpoint)
3197 (go32_remove_watchpoint, go32_remove_aligned_watchpoint)
3198 (go32_region_ok_for_watchpoint, go32_stopped_by_watchpoint)
3199 (go32_remove_hw_breakpoint, go32_insert_hw_breakpoint): Remove.
3200 (go32_set_dr, go32_set_dr7, go32_get_dr6): New functions.
3204 * ia64-tdep.c (fetch_instruction): Warn about slot numbers greater
3205 than two instead of generating an error.
3209 * cp-valprint.c: Reformat to bring into line with GNU coding
3214 Make Linux use the new unified support for hardware breakpoints
3215 and watchpoints on x86 targets.
3216 * i386-linux-nat.c: Doc fixes. Include "gdb_assert.h".
3217 [HAVE_SYS_DEBUGREG_H]: Include <sys/debugreg.h>.
3218 (DR_FIRSTADDR, DR_LASTADDR, DR_STATUS, DR_CONTROL): Define to
3219 appropriate value if not already defined.
3220 (register_u_addr): New function.
3221 (kernel_u_size): New function.
3222 (i386_linux_dr_get, i386_linux_dr_set): New functions.
3223 (i386_linux_dr_set_control, i386_linux_dr_set_addr,
3224 i386_linux_reset_addr, i386_linux_dr_get_status): New functions.
3225 * config/i386/nm-linux.h: Don't include "nm-i386v.h".
3226 (I386_USE_GENERIC_WATCHPOINTS): Define and include "nm-i386.h".
3227 (TARGET_HAS_HARDWARE_WATCHPOINTS,
3228 TARGET_CAN_USE_HARDWARE_WATCHPOINTS, HAVE_CONTINUABLE_WATCHPOINT,
3229 STOPPED_BY_WATCHPOINT, target_insert_watchpoint,
3230 target_remove_watchpoint): Remove macros.
3231 (i386_stopped_by_watchpoint, i386_insert_watchpoint,
3232 i386_remove_watchpoint): Remove prototypes.
3233 (register_u_addr): New prototype.
3234 (REGISTER_U_ADDR): Define in terms of register_u_addr.
3235 (i386_linux_dr_set_control, i386_linux_dr_set_addr,
3236 i386_linux_reset_addr, i386_linux_dr_get_status): New prototypes.
3237 (I386_DR_LOW_SET_CONTROL, I386_DR_LOW_SET_ADDR,
3238 I386_DR_LOW_RESET_ADDR, I386_DR_LOW_GET_STATUS): New macros.
3239 * config/i386/linux.mh (NATDEPFILES): Replace i386v-nat.o with
3244 Fix from Dan Berlin:
3246 * linespec.c (find_methods): Whitespace differences aren't
3247 significant in *un*mangled method names. Use strcmp_iw to compare
3252 * gdbarch.sh: Allow a non- multi-arch target to override a
3254 * gdbarch.h: Regenerate.
3258 * gdbarch.sh: Avoid use of ``!''.
3262 * target.h (enum target_signal): Move definition from here.
3263 * defs.h (enum target_signal): To here.
3265 * config/arc/tm-arc.h (arc_software_single_step): Change type of
3266 first parameter to enum target_signal.
3267 * config/rs6000/tm-rs6000.h (rs6000_software_single_step): Ditto.
3268 * config/sparc/tm-sparc.h (sparc_software_single_step): Ditto.
3269 * rs6000-tdep.c (rs6000_software_single_step): Update.
3273 * frame.h (SIZEOF_FRAME_SAVED_REGS): Report an error if macro
3277 * stabsread.c (define_symbol): A parameter ('R'), a local ('r'),
3278 or a reference ('a') can be in a pseudo register.
3279 * infcmd.c (do_registers_info): Must take into account the pseudo
3280 registers to print their value.
3281 (registers_info): Likewise.
3282 * stack.c (frame_info): Likewise.
3283 * frame.h (SIZEOF_FRAME_SAVED_REGS): Save the pseudo registers.
3287 Unified support for hardware breakpoints and watchpoints on
3290 * config/i386/nm-i386.h: New file.
3292 * config/i386/nm-i386.h: (i386_cleanup_dregs)
3293 (i386_insert_watchpoint, i386_remove_watchpoint)
3294 (i386_region_ok_for_watchpoint, i386_stopped_by_hwbp)
3295 (i386_stopped_data_address, i386_insert_hw_breakpoint)
3296 (i386_remove_hw_breakpoint): Declare prototypes.
3297 [I386_USE_GENERIC_WATCHPOINTS] (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
3298 Define if not already defined.
3299 (TARGET_REGION_OK_FOR_HW_WATCHPOINT, HAVE_CONTINUABLE_WATCHPOINT)
3300 (STOPPED_BY_WATCHPOINT, target_stopped_data_address)
3301 (target_insert_watchpoint, target_remove_watchpoint)
3302 (target_insert_hw_breakpoint, target_remove_hw_breakpoint): Define
3303 to call the appropriate i386_* functions.
3305 * i386-nat.c: New file.
3307 * i386-nat.c (I386_DR_CONTROL_MASK, I386_DR_LOCAL_ENABLE)
3308 (I386_DR_GLOBAL_ENABLE, I386_DR_DISABLE, I386_DR_SET_RW_LEN)
3309 (I386_DR_GET_RW_LEN, I386_DR_WATCH_HIT): New macros.
3310 (dr_mirror, dr_status_mirror, dr_control_mirror, dr_ref_count)
3311 (maint_show_dr): New variables.
3312 (i386_cleanup_dregs, i386_show_dr, i386_length_and_rw_bits)
3313 (i386_insert_aligned_watchpoint, i386_remove_aligned_watchpoint)
3314 (i386_handle_nonaligned_watchpoint, i386_insert_watchpoint)
3315 (i386_remove_watchpoint, i386_region_ok_for_watchpoint)
3316 (i386_stopped_data_address, i386_stopped_by_hwbp)
3317 (i386_insert_hw_breakpoint, i386_remove_hw_breakpoint): New
3319 (_initialize_i386_nat): New function.
3320 [I386_USE_GENERIC_WATCHPOINTS]: Add new maint command
3321 `show-debug-regs', sets maint_show_dr to non-zero value and
3322 activates debugging print-outs in functions which insert, remove,
3323 and test watchpoints and hardware breakpoints.
3325 * Makefile.in (i386-nat.o): New target.
3326 (ALLDEPFILES): Add i386-nat.o.
3330 * i386-tdep.c: Add back _initialize_i386_tdep prototype with
3331 appropriate comment.
3335 * config/alpha/alpha-linux.mh (NATDEPFILES): Use proc-service.o,
3336 thread-db.o, and lin-lwp.o for thread support instead of
3337 linux-thread.o and lin-thread.o.
3338 * config/alpha/nm-linux.h (PREPARE_TO_PROCEED, GET_THREAD_SIGNALS)
3339 (ATTACH_LWP): Define to use the following lin-lwp.c functions...
3340 (lin_lwp_prepare_to_proceed, lin_thread_get_thread_signals)
3341 (lin_lwp_attach_lwp): Declare.
3345 Fix from Dan Berlin:
3347 * Makefile.in: Clean up dependencies on ../include/demangle.h.
3348 (demangle_h): New variable.
3349 (jv-typeprint.o, jv-valprint.o, linespec.o): Use it.
3353 * target.h (SOFTWARE_SINGLE_STEP_P): Add empty parameter list.
3354 * breakpoint.c (bpstat_stop_status): Update.
3355 * infrun.c (handle_inferior_event): Ditto.
3356 * mips-tdep.c (mips_dump_tdep): Ditto.
3357 * infrun.c (resume): Ditto.
3358 * infptrace.c (child_resume): Ditto.
3359 * config/mips/tm-wince.h (SOFTWARE_SINGLE_STEP_P): Ditto.
3360 * config/sh/tm-wince.h (SOFTWARE_SINGLE_STEP_P): Ditto.
3361 * config/sparc/tm-sparc.h (SOFTWARE_SINGLE_STEP_P): Ditto.
3362 * config/powerpc/tm-linux.h (SOFTWARE_SINGLE_STEP_P): Ditto.
3363 * config/arm/tm-wince.h (SOFTWARE_SINGLE_STEP_P): Ditto.
3364 * config/arc/tm-arc.h (SOFTWARE_SINGLE_STEP_P): Ditto.
3365 * config/powerpc/tm-ppc-eabi.h (SOFTWARE_SINGLE_STEP_P): Ditto.
3369 * config/powerpc/tm-linux.h (SOFTWARE_SINGLE_STEP): Replace abort
3370 with internal_error.
3374 Fix from Dan Berlin:
3376 * linespec.c (find_methods): Just call CHECK_TYPEDEF on t, rather
3377 than asking for sym_class's type; that's circuitous. Remove
3378 sym_class, since the last use of it is gone.
3382 * breakpoint.c (print_it_typical) <bp_access_watchpoint> [UI_OUT]:
3383 Correct the order of calls to ui_out_field_string and
3384 ui_out_list_begin when bs->old_val is NULL.
3388 * configure.in (AC_CHECK_HEADERS): Check for existence of nlist.h.
3389 * configure: Regenerate.
3390 * config.in: Regenerate.
3391 * solib-legacy.c (nlist.h): Include if HAVE_NLIST_H is defined.
3395 * config/i386/i386v42mp.mh (NATDEPFILES): List all files on
3396 same line to avoid problems with Unixware 7's make when building
3401 * defs.h (malloc): Move declaration from here.
3402 * utils.c (malloc): To here.
3403 * config/pa/xm-hppah.h (malloc): Delete declaration.
3405 * gnu-nat.c (make_proc): Use xmalloc instead of malloc.
3406 * hp-psymtab-read.c (hpread_call_pxdb): Ditto.
3407 (hpread_quick_traverse): Ditto.
3408 * infttrace.c (create_thread_info): Ditto.
3409 (kill_inferior): Ditto.
3410 * gnu-nat.c (make_inf): Ditto, and don't check return value.
3411 * procfs.c (proc_update_threads): Ditto.
3412 * valprint.c (print_decimal_chars): Ditto.
3413 * gdbtypes.c (cfront_mangle_name): Use xasprintf instead of
3415 * remote-rdp.c (rdp_set_command_line): Ditto.
3419 * defs.h (realloc): Move declaration from here.
3420 * utils.c (realloc): To here.
3421 * config/pa/xm-hppah.h (realloc): Delete declaration.
3422 * lin-thread.c (insert_thread): Use xrealloc instead of realloc.
3423 * symfile.c (add_filename_language): Ditto.
3424 * event-loop.c (create_file_handler): Ditto.
3428 * defs.h (free): Move declaration from here.
3429 * utils.c (free): To here.
3430 (xfree): Document as the only call to free().
3431 * config/pa/xm-hppah.h (free): Delete declaration.
3435 * config/ia64/linux.mh (NATDEPFILES): Add proc-service.o to
3440 * eval.c (evaluate_subexp): Remove #ifdef __STDC__ and ``inline''.
3441 * config/mips/xm-mips.h (offsetof): Define when !GNUC not !STDC.
3442 * cli/cli-cmds.c (init_cli_cmds): Remove #ifdef __STDC__
3446 * TODO: List known problems with TUI.
3450 * MAINTAINERS: Jimmy Guo stepped down as a maintiner (TUI,
3455 * remote.c (remote_cisco_section_offsets): Do not cast result from
3456 bfd_get_section_name.
3457 (compare_sections_command): Ditto.
3458 (remote_cisco_section_offsets): Make ``p'' a const pointer.
3459 (compare_sections_command): Ditto for ``sectname''.
3464 * valops.c (hand_function_call): Simplify computation of the
3465 address of the pushed argument.
3469 * p-exp.y (parse_number): Avoid shift overflow when ``long''.
3470 Code copied from c-exp.y.
3474 * acconfig.h (HAVE_STRUCT_LINK_MAP_WITH_L_MEMBERS)
3475 (HAVE_STRUCT_LINK_MAP_WITH_LM_MEMBERS)
3476 (HAVE_STRUCT_SO_MAP_WITH_SOM_MEMBERS): New configure macros.
3477 * configure.in (HAVE_STRUCT_LINK_MAP32): Move this test out
3478 of the Solaris procfs testing section. Instead, group with...
3479 (HAVE_STRUCT_LINK_MAP_WITH_L_MEMBERS)
3480 (HAVE_STRUCT_LINK_MAP_WITH_LM_MEMBERS)
3481 (HAVE_STRUCT_SO_MAP_WITH_SOM_MEMBERS): New <link.h> tests.
3482 * configure: Regenerate.
3483 * config.in: Regenerate.
3485 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets): Use
3486 new configure macros to choose which (if any) code to
3487 compile in. Added code to explicitly handle *BSD systems;
3488 these systems were previously handled only through macro
3489 redefinition. Also, due to the way the autoconf tests are set
3490 up, this function will no longer return a non-zero value when
3491 GDB is configured as a cross debugger. I.e, cross debuggers
3492 will no longer be able to "accidentally" get the host system's
3497 * config/i386/nbsd.mh (NATDEPFILES): List all files on the same
3498 line to avoid build problem on NetBSD 1.4.
3502 * win32-nat.c (child_attach): check args for NULL before passing
3503 to strtoul. This fixes PR gdb/43.
3507 * i387-nat.h: Doc Fix.
3509 * i386-tdep.c: Fix formatting.
3510 (i386_get_frame_setup, i386_follow_jump, codestream_read,
3511 codestream_seek, codestream_fill, skip_trampoline_code,
3512 gdb_print_insn_i386, _initialize_i386_tdep): Remove redundant
3517 * config/i386/tm-linux.h (TARGET_ANALYZE_FLOATING): Remove. It's
3518 no longer used. Also remove associated FIXME.
3522 * gdbarch.sh: Add classes ``m'' and ``M'' for pure multi-arch. Do
3523 not generate macro wrappers for multi-arch functions or
3525 (class_is_info_p, class_is_predicate_p): Update.
3526 (class_is_function_p, class_is_variable_p): Ditto.
3527 (class_is_multiarch_p): New class function.
3531 * config/h8300/tm-h8300.h (FRAME_ARGS_ADDRESS): Changed to use
3532 h8300_frame_args_address from frame_args_address.
3533 (FRAME_LOCALS_ADDRESS): Changed to use h8300_frame_locals_address
3534 from frame_locals_address.
3535 (PRINT_REGISTER_HOOK): Changed to use h8300_print_register_hook
3536 from print_register_hook.
3537 (h8300_frame_args_address): Declare.
3538 (h8300_frame_find_saved_regs): Declare.
3539 (h8300_frame_locals_address): Declare.
3540 (h8300_frame_saved_pc): Declare.
3541 (h8300_pop_frame): Declare.
3542 (h8300_print_register_hook): Declare.
3543 * h8300-tdep.c (h8300_frame_find_saved_regs): Removed declaration.
3544 (h8300_frame_args_address): Renamed from frame_args_address.
3545 (h8300_frame_locals_address): Renamed from frame_locals_address.
3546 (h8300_pop_frame): Renamed from pop_frame.
3547 (h8300_print_register_hook): Renamed from print_register_hook.
3551 * solib-svr4.c (bfd_lookup_symbol): Change type of
3552 ``storage_needed'' from unsigned int to long in order to
3553 match return type of bfd_get_symtab_upper_bound() and
3554 bfd_get_dynamic_symtab_upper_bound().
3555 * solib-aix5.c (bfd_lookup_symbol): Likewise. Also, eliminate
3556 REASONABLE_LIMIT hack which had been added to work around this
3561 * solib-aix5.c (bfd_lookup_symbol, build_so_list_from_mapfile)
3562 (aix5_relocate_main_executable, aix5_clear_solib): Replace calls
3563 to free() with calls to xfree().
3564 (bfd_lookup_symbol): Eliminate use of PTR.
3565 (build_so_list_from_mapfile): Use xasprintf() instead of sprintf().
3569 * linespec.c (decode_line_1): Remove trailing quote
3570 when parsing double quotes.
3574 * uw-thread.c (read_thr_debug, read_map, read_lwp, thread_iter)
3575 (libthread_stub, libthread_init): Pass NULL for the mem_attrib
3576 argument in the to_xfer_memory calls.
3580 * MAINTAINERS: Fix typo - w65 not w64. Still doesn't build.
3581 * TODO (GDB 5.1 - Cleanups): Add status of targets being obsoleted.
3585 * wince.c (child_xfer_memory): Add attrib parameter.
3586 * symm-nat.c (child_xfer_memory): Ditto.
3587 * mac-nat.c (child_xfer_memory): Ditto.
3588 * infttrace.c (child_xfer_memory): Ditto.
3589 * procfs.c (procfs_xfer_memory): Ditto.
3590 * lin-thread.c (thread_db_xfer_memory): Ditto.
3591 * gnu-nat.c (gnu_xfer_memory): Ditto.
3595 * NEWS: Mention that Harris/CXUX m88k is obsolete.
3599 * config/mips/tm-mips.h: Include "regcache.h" for macros refering
3600 to regcache functions.
3601 * config/m68k/tm-m68k.h: Ditto.
3602 * config/i386/tm-i386v.h: Ditto.
3603 * config/mcore/tm-mcore.h: Ditto.
3604 * config/m88k/tm-m88k.h: Ditto.
3605 * config/m68k/tm-news.h: Ditto.
3606 * config/m68k/tm-linux.h: Ditto.
3607 * config/m68k/tm-delta68.h: Ditto.
3608 * config/m68k/nm-sun3.h: Ditto.
3609 * config/m32r/tm-m32r.h: Ditto.
3610 * config/i386/tm-symmetry.h: Ditto.
3611 * config/i386/tm-sun386.h: Ditto.
3612 * config/i386/tm-i386.h: Ditto.
3613 * config/i386/nm-symmetry.h: Ditto.
3614 * config/i386/nm-sun386.h: Ditto.
3615 * config/i386/nm-ptx4.h: Ditto.
3616 * config/i386/nm-i386mach.h: Ditto.
3617 * config/h8500/tm-h8500.h: Ditto.
3618 * config/h8300/tm-h8300.h: Ditto.
3619 * config/fr30/tm-fr30.h: Ditto.
3620 * config/d30v/tm-d30v.h: Ditto.
3621 * config/arm/tm-arm.h: Ditto.
3622 * config/arc/tm-arc.h: Ditto.
3623 * config/alpha/tm-alpha.h: Ditto.
3624 * config/a29k/tm-vx29k.h: Ditto.
3625 * config/a29k/tm-a29k.h: Ditto.
3626 * config/w65/tm-w65.h: Ditto.
3627 * config/vax/tm-vax.h: Ditto.
3628 * config/v850/tm-v850.h: Ditto.
3629 * config/tic80/tm-tic80.h: Ditto.
3630 * config/sparc/tm-sparclite.h: Ditto.
3631 * config/sparc/tm-sparclet.h: Ditto.
3632 * config/sparc/tm-sparc.h: Ditto.
3633 * config/sparc/nm-sun4sol2.h: Ditto.
3634 * config/sparc/nm-sun4os4.h: Ditto.
3635 * config/sparc/nm-nbsd.h: Ditto.
3636 * config/powerpc/nm-solaris.h: Ditto.
3637 * config/pa/tm-hppao.h: Ditto.
3638 * config/pa/tm-hppa.h: Ditto.
3639 * config/pa/nm-hppab.h: Ditto.
3640 * config/ns32k/tm-umax.h: Ditto.
3641 * config/ns32k/tm-merlin.h: Ditto.
3642 * config/nm-m3.h: Ditto.
3643 * config/nm-gnu.h: Ditto.
3647 * MAINTAINERS: Update list of targets. Mark arm-* and v850-elf as
3648 broken. Mark sh-*, ia64-linux and ns32k-netbsd as buildable.
3649 Specify an m88k target. Include sample GAWK script to generate
3650 target list. Delete non-existant romp target.
3651 * TODO (GDB 5.1 - Cleanups): Update.
3655 * linespec.c (decode_line_1): Skip argptr over a leading
3656 double quote. Prevents alloc of 0 bytes and memcpy of -1 bytes.
3660 * config/djgpp/fnchange.lst (ia64-aix-nat.c): Add entry.
3664 * ui-out.h: Remove #if __STDC__, assume an ISO-C compiler.
3667 * printcmd.c (printf_command): Ditto.
3668 * ch-exp.c (match_integer_literal): Ditto.
3669 * scm-tags.h: Ditto.
3670 * ser-go32.c: Ditto.
3671 * hppa-tdep.c (unwind_command): Ditto.
3672 * defs.h (volatile): Delete macro definition. Assume __STDC__.
3673 * remote-adapt.c (volatile): Ditto.
3674 * remote-eb.c (volatile): Ditto.
3675 * remote-mm.c (volatile): Ditto.
3676 * defs.h (alloca): Assume __STDC__, declare returning void *.
3680 * inferior.h (ARCH_NUM_REGS): Delete definition.
3681 * stack.c (frame_info): Use NUM_REGS, not ARCH_NUM_REGS.
3682 * regcache.c (registers_changed): Ditto.
3683 (registers_fetched): Ditto.
3684 * infptrace.c (fetch_inferior_registers): Ditto.
3685 (store_inferior_registers): Ditto.
3686 * infcmd.c (do_registers_info): Ditto.
3687 (registers_info): Ditto.
3688 * i386-linux-nat.c (old_fetch_inferior_registers): Ditto.
3689 (old_store_inferior_registers): Ditto.
3690 * gdbserver/low-linux.c (register_addr): Ditto.
3691 * gdbserver/low-hppabsd.c (register_addr): Ditto.
3692 * core-aout.c: Don't include "inferior.h".
3693 (fetch_core_registers): Use NUM_REGS not ARCH_NUM_REGS.
3694 (register_addr): Ditto.
3699 * cli/cli-script.c (define_command): Fix setting of post hooks.
3703 * i386-linux-tdep.c: Fix formatting and clarify comments.
3704 (i386_linux_svr4_fetch_link_map_offsets): Use NULL instead of 0
3709 * gnu-nat.c: Include "gdb_assert.h" instead of <assert.h>.
3710 (proc_update_sc): Use gdb_assert instead of assert.
3711 (proc_abort): Ditto.
3712 (inf_set_step_thread): Ditto.
3714 (S_exception_raise_request): Ditto.
3715 (gnu_terminal_init_inferior): Ditto.
3719 * Makefile.in (solib-svr4.o): Depend on solib-svr4.c, not solib.c.
3720 (solib-legacy.o): New makefile target.
3721 * solib-legacy.c: New file.
3722 * solib-svr4.h (SVR4_FETCH_LINK_MAP_OFFSETS): Delete.
3723 (default_svr4_fetch_link_map_offsets): Delete.
3724 (set_solib_svr4_fetch_link_map_offsets): Declare.
3725 (legacy_svr4_fetch_link_map_offsets_hook): Declare.
3726 * solib-svr4.c (elf/common.h): Include.
3727 (link.h): Only include for SunOS shared library support.
3728 (_SYSCALL32): Don't define.
3729 (SVR4_FETCH_LINK_MAP_OFFSETS): Define.
3730 (default_svr4_fetch_link_map_offsets): Made static; added forward
3732 (fetch_link_map_offsets): New static global.
3733 (legacy_svr4_fetch_link_map_offsets_hook): New global variable.
3734 (default_svr4_fetch_link_map_offsets): Rewritten. The guts
3735 of what used to be in this function now reside in
3736 legacy_svr4_fetch_link_map_offsets() in solib-legacy.c.
3737 (open_symbol_file_object): Fix declaration in SunOS section
3739 (set_solib_svr4_fetch_link_map_offsets): New extern function.
3740 (init_fetch_link_map_offsets): New static function.
3741 (_initialize_svr4_solib): Put static global fetch_link_map_offsets
3742 under multiarch control.
3744 * config/alpha/alpha-linux.mt (TDEPFILES): Add solib-legacy.o to
3746 * config/alpha/fbsd.mh (NATDEPFILES): Likewise.
3747 * config/arm/linux.mt (TDEPFILES): Likewise.
3748 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
3749 * config/i386/i386dgux.mh (NATDEPFILES): Likewise.
3750 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
3751 * config/i386/i386sco5.mh (NATDEPFILES): Likewise.
3752 * config/i386/i386sol2.mt (TDEPFILES): Likewise.
3753 * config/i386/i386v4.mh (NATDEPFILES): Likewise.
3754 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
3755 * config/i386/linux.mt (TDEPFILES): Likewise.
3756 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
3757 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
3758 * config/i386/ncr3000.mt (TDEPFILES): Likewise.
3759 * config/i386/ptx4.mh (XDEPFILES): Likewise.
3760 * config/i386/sun386.mt (TDEPFILES): Likewise.
3761 * config/ia64/linux.mt (TDEPFILES): Likewise.
3762 * config/m68k/linux.mt (TDEPFILES): Likewise.
3763 * config/m68k/m68kv4.mh (NATDEPFILES): Likewise.
3764 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
3765 * config/m68k/sun2os4.mt (TDEPFILES): Likewise.
3766 * config/m68k/sun3os4.mt (TDEPFILES): Likewise.
3767 * config/m88k/delta88v4.mh (NATDEPFILES): Likewise.
3768 * config/mips/mipsv4.mh (NATDEPFILES): Likewise.
3769 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
3770 * config/powerpc/linux.mt (TDEPFILES): Likewise.
3771 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
3772 * config/powerpc/solaris.mh (NATDEPFILES): Likewise.
3773 * config/sh/linux.mt (TDEPFILES): Likewise.
3774 * config/sparc/linux.mt (TDEPFILES): Likewise.
3775 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
3776 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
3777 * config/sparc/sp64linux.mt (TDEPFILES): Likewise.
3778 * config/sparc/sun4os4.mt (TDEPFILES): Likewise.
3779 * config/sparc/sun4sol2.mh (NATDEPFILES): Likewise.
3783 * utils.c (xmrealloc, xcalloc): Return NULL for zero-sized requests.
3787 * MAINTAINERS (Write After Approval): Update Philip Blundell.
3791 * MAINTAINERS: Add myself to write after approval list.
3795 * i387-tdep.c (print_i387_status_word): Fix printing of Stack
3796 fault flag. It is bit 6 of the x87 FPU status word, not bit 7.
3800 * configure.host (m88*-harris-cxux*): Mark as obsolete.
3801 * configure.tgt: Ditto.
3802 * config/m88k/xm-cxux.h: Ditto.
3803 * config/m88k/tm-cxux.h: Ditto.
3804 * config/m88k/nm-cxux.h: Ditto.
3805 * config/m88k/cxux.mt: Ditto.
3806 * config/m88k/cxux.mh: Ditto.
3810 * Makefile.in: Delete rules for obsolete files.
3814 * stack.c (parse_frame_specification): For one argument case,
3815 handle the situation where the argument is an integer, not an
3816 address -- arguably the most common case. This matters on
3817 targets where pointers and addresses are different.
3821 * TODO: Revise 5.1 list. Delete PARAMS task. Add coding standard
3822 review. Clarify GNU/LINUX/sparc. Move other tasks to 5.2 or
3827 * TODO (GDB 5.1 Known Problems): Document problem of building GDB
3828 with SID on Solaris 8.
3832 * defs.h: Provide prototypes for floatformat_is_negative,
3833 floatformat_is_nan and floatformat_mantissa.
3834 * utils.c: Include "gdb_assert.h".
3835 (floatformat_is_negative): New function.
3836 (floatformat_is_nan): New function.
3837 (floatformat_mantissa): New function.
3838 * valprint.c: Include "floatformat.h".
3839 (print_floating): Get rid of the Linux-specific
3840 TARGET_ANALYZE_FLOATING macro and rewrite NaN detection with the
3841 help these new functions. Print NaN's in a format conforming to
3846 * top.c (init_main): Make `set history file name' complete on file
3851 * Makefile.in (LINTFLAGS): Update to contain all of the macros
3852 which define include paths used when compiling.
3854 * util.c (savestring, msavestring): Change type of length argument.
3855 * defs.h (savestring, msavestring): Update to match.
3857 * symtab.h (decode_line_1): Removed declaration.
3859 * symfile.c (#include <assert.h>): Removed.
3861 * arch-utils.c (#include <ctype.h>): Removed.
3862 * c-typeprint.c: Likewise.
3863 * dbxread.c: Likewise.
3864 * gdbtypes.c: Likewise.
3865 * target.c: Likewise.
3866 * os9kread.c: Likewise.
3868 * c-valprint.c (#include "demangle.h"): Removed.
3869 * ch-typeprint.c: Likewise.
3871 * f-typeprint.c: Likewise.
3872 * f-valprint.c: Likewise.
3873 * m2-typeprint.c: Likewise.
3874 * typeprint.c: Likewise.
3875 * p-typeprint.c: Likewise.
3876 * valarith.c: Likewise.
3877 * valprint.c: Likewise.
3879 * m2-typeprint.c (#include "gdb_string.h"): Removed.
3880 * nlmread.c: Likewise.
3882 * mdebugread.c (#include "gdb-stabs.h"): Removed.
3883 * minsyms.c: Likewise.
3884 * mipsread.c: Likewise.
3885 * nlmread.c: Likewise.
3887 * m2-typeprint.c (#include "obstack.h"): Removed.
3888 * m2-valprint.c: Likewise.
3890 * event-loop.c (#include <setjmp.h>): Removed.
3894 * MAINTAINERS: Remove self from specific maintenance domains
3895 (macos, gdbserver, documentation, testsuite).
3899 * 29k-share/udi/udip2soc.c, Makefile.in, a29k-tdep.c,
3900 a68v-nat.c, abug-rom.c, aclocal.m4, alpha-nat.c, alpha-tdep.c,
3901 annotate.c, annotate.h, arc-tdep.c, arch-utils.c,
3902 arch-utils.h, arm-tdep.c, ax-gdb.c, ax-gdb.h, ax-general.c,
3903 ax.h, bcache.c, bcache.h, blockframe.c, breakpoint.c,
3904 breakpoint.h, buildsym.c, buildsym.h, c-exp.y, c-lang.c,
3905 c-lang.h, c-typeprint.c, c-valprint.c, call-cmds.h, ch-exp.c,
3906 ch-lang.c, ch-lang.h, ch-typeprint.c, ch-valprint.c,
3907 cli/cli-cmds.h, cli/cli-decode.c, cli/cli-decode.h,
3908 cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.h,
3909 cli/cli-utils.h, cli-out.c, cli-out.h, coff-solib.c,
3910 coff-solib.h, coffread.c, command.h, complaints.c,
3911 complaints.h, completer.c, completer.h,
3912 config/a29k/nm-ultra3.h, config/a29k/tm-a29k.h,
3913 config/a29k/tm-ultra3.h, config/a29k/tm-vx29k.h,
3914 config/a29k/xm-ultra3.h, config/alpha/nm-fbsd.h,
3915 config/alpha/nm-linux.h, config/alpha/nm-osf.h,
3916 config/alpha/nm-osf2.h, config/alpha/nm-osf3.h,
3917 config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h,
3918 config/alpha/xm-alphalinux.h, config/alpha/xm-alphaosf.h,
3919 config/alpha/xm-fbsd.h, config/arc/tm-arc.h,
3920 config/arm/nm-linux.h, config/arm/tm-arm.h,
3921 config/arm/tm-embed.h, config/d10v/tm-d10v.h,
3922 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
3923 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
3924 config/i386/nm-fbsd.h, config/i386/nm-gnu.h,
3925 config/i386/nm-i386bsd.h, config/i386/nm-i386mach.h,
3926 config/i386/nm-i386sco.h, config/i386/nm-i386sol2.h,
3927 config/i386/nm-i386v.h, config/i386/nm-i386v4.h,
3928 config/i386/nm-i386v42mp.h, config/i386/nm-linux.h,
3929 config/i386/nm-nbsd.h, config/i386/nm-nbsdelf.h,
3930 config/i386/nm-ptx4.h, config/i386/nm-sun386.h,
3931 config/i386/nm-symmetry.h, config/i386/tm-cygwin.h,
3932 config/i386/tm-fbsd.h, config/i386/tm-i386.h,
3933 config/i386/tm-i386aix.h, config/i386/tm-i386bsd.h,
3934 config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h,
3935 config/i386/tm-i386m3.h, config/i386/tm-i386mk.h,
3936 config/i386/tm-i386nw.h, config/i386/tm-i386os9k.h,
3937 config/i386/tm-i386sco5.h, config/i386/tm-i386sol2.h,
3938 config/i386/tm-i386v.h, config/i386/tm-i386v4.h,
3939 config/i386/tm-i386v42mp.h, config/i386/tm-linux.h,
3940 config/i386/tm-nbsd.h, config/i386/tm-ptx.h,
3941 config/i386/tm-ptx4.h, config/i386/tm-sun386.h,
3942 config/i386/tm-symmetry.h, config/i386/tm-vxworks.h,
3943 config/i386/xm-fbsd.h, config/i386/xm-i386bsd.h,
3944 config/i386/xm-i386gnu.h, config/i386/xm-i386m3.h,
3945 config/i386/xm-i386mach.h, config/i386/xm-i386mk.h,
3946 config/i386/xm-i386sco.h, config/i386/xm-i386v4.h,
3947 config/i386/xm-linux.h, config/i386/xm-nbsd.h,
3948 config/i386/xm-ptx.h, config/i386/xm-ptx4.h,
3949 config/i386/xm-sun386.h, config/i386/xm-symmetry.h,
3950 config/i960/tm-i960.h, config/i960/tm-mon960.h,
3951 config/i960/tm-nindy960.h, config/i960/tm-vx960.h,
3952 config/ia64/nm-aix.h, config/ia64/nm-linux.h,
3953 config/ia64/tm-aix.h, config/ia64/tm-ia64.h,
3954 config/ia64/tm-linux.h, config/ia64/xm-aix.h,
3955 config/ia64/xm-linux.h, config/m68k/nm-apollo68b.h,
3956 config/m68k/nm-delta68.h, config/m68k/nm-dpx2.h,
3957 config/m68k/nm-hp300bsd.h, config/m68k/nm-hp300hpux.h,
3958 config/m68k/nm-linux.h, config/m68k/nm-sun3.h,
3959 config/m68k/tm-apollo68b.h, config/m68k/tm-cisco.h,
3960 config/m68k/tm-dpx2.h, config/m68k/tm-es1800.h,
3961 config/m68k/tm-hp300bsd.h, config/m68k/tm-hp300hpux.h,
3962 config/m68k/tm-isi.h, config/m68k/tm-linux.h,
3963 config/m68k/tm-m68k.h, config/m68k/tm-m68kv4.h,
3964 config/m68k/tm-mac.h, config/m68k/tm-monitor.h,
3965 config/m68k/tm-nbsd.h, config/m68k/tm-news.h,
3966 config/m68k/tm-os68k.h, config/m68k/tm-sun3.h,
3967 config/m68k/tm-vx68.h, config/m68k/xm-3b1.h,
3968 config/m68k/xm-apollo68b.h, config/m68k/xm-dpx2.h,
3969 config/m68k/xm-hp300bsd.h, config/m68k/xm-hp300hpux.h,
3970 config/m68k/xm-linux.h, config/m68k/xm-m68kv4.h,
3971 config/m68k/xm-mpw.h, config/m68k/xm-news.h,
3972 config/m68k/xm-sun2.h, config/m68k/xm-sun3.h,
3973 config/m68k/xm-sun3os4.h, config/m88k/nm-delta88v4.h,
3974 config/m88k/tm-delta88.h, config/m88k/tm-delta88v4.h,
3975 config/m88k/tm-m88k.h, config/m88k/xm-cxux.h,
3976 config/m88k/xm-delta88.h, config/m88k/xm-delta88v4.h,
3977 config/m88k/xm-dgux.h, config/mcore/tm-mcore.h,
3978 config/mips/nm-irix3.h, config/mips/nm-irix4.h,
3979 config/mips/nm-irix5.h, config/mips/nm-mips.h,
3980 config/mips/nm-news-mips.h, config/mips/tm-bigmips.h,
3981 config/mips/tm-embed.h, config/mips/tm-embed64.h,
3982 config/mips/tm-embedl.h, config/mips/tm-embedl64.h,
3983 config/mips/tm-irix3.h, config/mips/tm-irix5.h,
3984 config/mips/tm-mips.h, config/mips/tm-mips64.h,
3985 config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h,
3986 config/mips/tm-tx39.h, config/mips/tm-tx39l.h,
3987 config/mips/tm-vr4100.h, config/mips/tm-vr4300.h,
3988 config/mips/tm-vr4300el.h, config/mips/tm-vr4xxx.h,
3989 config/mips/tm-vr4xxxel.h, config/mips/tm-vr5000.h,
3990 config/mips/tm-vr5000el.h, config/mips/xm-irix3.h,
3991 config/mips/xm-irix4.h, config/mips/xm-irix5.h,
3992 config/mips/xm-mips.h, config/mips/xm-mipsm3.h,
3993 config/mips/xm-mipsv4.h, config/mips/xm-news-mips.h,
3994 config/mips/xm-riscos.h, config/mn10200/tm-mn10200.h,
3995 config/mn10300/tm-mn10300.h, config/nm-gnu.h,
3996 config/nm-linux.h, config/nm-lynx.h, config/nm-m3.h,
3997 config/nm-sysv4.h, config/none/nm-none.h,
3998 config/none/tm-none.h, config/none/xm-none.h,
3999 config/ns32k/nm-nbsd.h, config/ns32k/nm-umax.h,
4000 config/ns32k/tm-merlin.h, config/ns32k/tm-nbsd.h,
4001 config/ns32k/tm-ns32km3.h, config/ns32k/tm-umax.h,
4002 config/ns32k/xm-merlin.h, config/ns32k/xm-ns32km3.h,
4003 config/pa/nm-hppab.h, config/pa/nm-hppah.h,
4004 config/pa/nm-hppao.h, config/pa/tm-hppa.h,
4005 config/pa/tm-hppa64.h, config/pa/tm-hppah.h,
4006 config/pa/xm-hppab.h, config/pa/xm-hppah.h,
4007 config/powerpc/nm-aix.h, config/powerpc/nm-linux.h,
4008 config/powerpc/nm-macos.h, config/powerpc/nm-nbsd.h,
4009 config/powerpc/tm-cygwin.h, config/powerpc/tm-linux.h,
4010 config/powerpc/tm-macos.h, config/powerpc/tm-ppc-aix.h,
4011 config/powerpc/tm-ppc-eabi.h, config/powerpc/tm-ppc-nw.h,
4012 config/powerpc/tm-ppcle-eabi.h, config/powerpc/tm-solaris.h,
4013 config/powerpc/xm-aix.h, config/powerpc/xm-linux.h,
4014 config/powerpc/xm-mpw.h, config/rs6000/nm-rs6000.h,
4015 config/rs6000/tm-rs6000.h, config/rs6000/tm-rs6000ly.h,
4016 config/rs6000/xm-aix4.h, config/rs6000/xm-rs6000.h,
4017 config/sh/tm-linux.h, config/sh/tm-sh.h, config/sh/tm-wince.h,
4018 config/sparc/nm-linux.h, config/sparc/nm-nbsd.h,
4019 config/sparc/nm-nbsdelf.h, config/sparc/nm-sparclynx.h,
4020 config/sparc/nm-sun4os4.h, config/sparc/nm-sun4sol2.h,
4021 config/sparc/tm-linux.h, config/sparc/tm-sp64.h,
4022 config/sparc/tm-sp64sim.h, config/sparc/tm-sparc.h,
4023 config/sparc/tm-sparclet.h, config/sparc/tm-sparclite.h,
4024 config/sparc/tm-sparclynx.h, config/sparc/tm-spc-em.h,
4025 config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h,
4026 config/sparc/xm-sun4os4.h, config/sparc/xm-sun4sol2.h,
4027 config/tic80/tm-tic80.h, config/tm-linux.h, config/tm-lynx.h,
4028 config/tm-sysv4.h, config/v850/tm-v850.h, config/vax/tm-vax.h,
4029 config/w65/tm-w65.h, config/xm-aix4.h, config/xm-lynx.h,
4030 config/xm-mpw.h, config/xm-nbsd.h, config/xm-sysv4.h,
4031 config/z8k/tm-z8k.h, configure.in, core-aout.c, core-regset.c,
4032 core-sol2.c, corefile.c, corelow.c, cp-valprint.c,
4033 cpu32bug-rom.c, cxux-nat.c, d10v-tdep.c, d30v-tdep.c,
4034 dbug-rom.c, dbxread.c, dcache.c, dcache.h, defs.h,
4035 delta68-nat.c, demangle.c, dink32-rom.c, dpx2-nat.c, dsrec.c,
4036 dstread.c, dve3900-rom.c, dwarf2read.c, dwarfread.c,
4037 elfread.c, environ.c, environ.h, eval.c, event-loop.c,
4038 event-loop.h, event-top.c, exec.c, expprint.c, f-exp.y,
4039 f-lang.c, f-lang.h, f-typeprint.c, f-valprint.c, findvar.c,
4040 fork-child.c, fr30-tdep.c, frame.c, frame.h, gdb-events.c,
4041 gdb-events.h, gdb-events.sh, gdb-stabs.h, gdb.1, gdb_string.h,
4042 gdb_thread_db.h, gdbcmd.h, gdbcore.h, gdbserver/Makefile.in,
4043 gdbserver/gdbreplay.c, gdbserver/gdbserver.1,
4044 gdbserver/low-hppabsd.c, gdbserver/low-linux.c,
4045 gdbserver/low-lynx.c, gdbserver/low-nbsd.c,
4046 gdbserver/low-sim.c, gdbserver/low-sparc.c,
4047 gdbserver/low-sun3.c, gdbserver/remote-utils.c,
4048 gdbserver/server.c, gdbserver/server.h, gdbserver/utils.c,
4049 gdbthread.h, gdbtypes.c, gdbtypes.h, gnu-nat.c, gnu-nat.h,
4050 gnu-regex.c, gnu-regex.h, h8300-tdep.c, h8500-tdep.c,
4051 hp-psymtab-read.c, hp-symtab-read.c, hp300ux-nat.c,
4052 hppa-tdep.c, hppab-nat.c, hppah-nat.c, hppam3-nat.c, hpread.c,
4053 hpread.h, hpux-thread.c, i386-tdep.c, i386aix-nat.c,
4054 i386b-nat.c, i386gnu-nat.c, i386ly-tdep.c, i386m3-nat.c,
4055 i386mach-nat.c, i386nbsd-nat.c, i386nbsd-tdep.c, i386v-nat.c,
4056 i386v4-nat.c, i387-tdep.c, i960-tdep.c, infcmd.c, inferior.h,
4057 inflow.c, infptrace.c, infrun.c, inftarg.c, infttrace.c,
4058 irix4-nat.c, irix5-nat.c, isi-xdep.c, jv-exp.y, jv-lang.c,
4059 jv-lang.h, jv-typeprint.c, jv-valprint.c, kdb-start.c,
4060 kod-cisco.c, kod.c, language.c, language.h, lin-thread.c,
4061 linespec.c, linespec.h, linux-thread.c, lynx-nat.c, m2-exp.y,
4062 m2-lang.c, m2-lang.h, m2-typeprint.c, m2-valprint.c, m3-nat.c,
4063 m32r-rom.c, m32r-tdep.c, m68k-tdep.c, m68klinux-nat.c,
4064 m68knbsd-nat.c, m88k-nat.c, m88k-tdep.c, mac-nat.c,
4065 mac-xdep.c, main.c, maint.c, mcore-rom.c, mcore-tdep.c,
4066 mdebugread.c, mem-break.c, minimon.h, minsyms.c, mips-nat.c,
4067 mips-tdep.c, mipsm3-nat.c, mipsread.c, mipsv4-nat.c,
4068 mn10200-tdep.c, mn10300-tdep.c, mon960-rom.c, monitor.c,
4069 monitor.h, news-xdep.c, nindy-share/env.h, nindy-tdep.c,
4070 nlm/Makefile.in, nlmread.c, ns32k-tdep.c, ns32km3-nat.c,
4071 ns32knbsd-nat.c, objfiles.c, objfiles.h, ocd.c, ocd.h,
4072 op50-rom.c, os9kread.c, osfsolib.c, p-exp.y, pa64solib.c,
4073 pa64solib.h, parse.c, parser-defs.h, partial-stab.h,
4074 ppc-bdm.c, ppc-linux-nat.c, ppc-linux-tdep.c, ppcbug-rom.c,
4075 ppcnbsd-nat.c, printcmd.c, proc-api.c, proc-events.c,
4076 proc-flags.c, proc-utils.h, proc-why.c, procfs.c, ptx4-nat.c,
4077 rdi-share/Makefile.in, rdi-share/aclocal.m4, regcache.c,
4078 regcache.h, remote-adapt.c, remote-array.c, remote-bug.c,
4079 remote-e7000.c, remote-eb.c, remote-es.c, remote-est.c,
4080 remote-hms.c, remote-mips.c, remote-mm.c, remote-nindy.c,
4081 remote-nrom.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
4082 remote-sds.c, remote-sim.c, remote-st.c, remote-udi.c,
4083 remote-utils.c, remote-utils.h, remote-vx.c, remote.c,
4084 remote.h, reply_mig_hack.awk, rom68k-rom.c, rs6000-nat.c,
4085 rs6000-tdep.c, scm-exp.c, scm-lang.c, scm-lang.h, scm-tags.h,
4086 scm-valprint.c, ser-e7kpc.c, ser-mac.c, ser-ocd.c, ser-pipe.c,
4087 ser-tcp.c, ser-unix.c, serial.c, serial.h, sh-tdep.c,
4088 sh3-rom.c, sol-thread.c, solib-aix5.c, solib-svr4.c, solib.c,
4089 solib.h, solist.h, somread.c, somsolib.c, somsolib.h,
4090 source.c, sparc-nat.c, sparc-tdep.c, sparcl-tdep.c,
4091 sparclet-rom.c, srec.h, stabsread.c, stabsread.h, stack.c,
4092 standalone.c, stop-gdb.c, stuff.c, sun3-nat.c, sun386-nat.c,
4093 symfile.c, symfile.h, symm-nat.c, symm-tdep.c, symmisc.c,
4094 symtab.c, symtab.h, target.c, target.h, terminal.h, thread.c,
4095 tic80-tdep.c, top.c, top.h, tracepoint.c, tracepoint.h,
4096 typeprint.c, ui-file.c, ui-file.h, ui-out.h, ultra3-nat.c,
4097 ultra3-xdep.c, umax-xdep.c, utils.c, v850-tdep.c, v850ice.c,
4098 valarith.c, valops.c, valprint.c, value.h, values.c, varobj.h,
4099 vax-tdep.c, version.h, vx-share/vxWorks.h, vx-share/xdr_ld.c,
4100 vx-share/xdr_ptrace.c, vx-share/xdr_ptrace.h,
4101 vx-share/xdr_rdb.c, w65-tdep.c, w89k-rom.c, win32-nat.c,
4102 wrapper.c, wrapper.h, xcoffread.c, xcoffsolib.c, xcoffsolib.h,
4103 xmodem.c, xmodem.h, z8k-tdep.c: Update/correct copyright
4108 * acconfig.h (HAVE_PRSYSENT_T, HAVE_PR_SIGSET_T,
4109 HAVE_PR_SIGACTION64_T, HAVE_PR_SIGINFO64_T): New configure
4111 * configure.in (prsysent_t, pr_sigset_t, pr_sigaction64_t,
4112 pr_siginfo64_t): Test for these typedefs in <sys/procfs.h>.
4113 (sys/fault.h, sys/select.h): Test for presence of these
4115 (ia64-*-aix*): Define NEW_PROC_API for this host.
4116 * configure: Regenerate.
4117 * config.in: Regenerate.
4119 * configure.host (ia64-*-aix*): New host.
4120 * configure.tgt (ia64-*-aix*): New target.
4124 * TODO (GDB 5.1 Known Problems): Document z8k as broken.
4128 * wince.c: Change realloc to xrealloc throughout.
4129 (handle_load_dll): Use void * rather than PTR in argument.
4133 * ocd.h (ocd_xfer_memory): Add ``attrib'' parameter.
4134 * ocd.c (ocd_xfer_memory): Ditto.
4135 * ser-ocd.c (ocd_setstopbits): New function. Add to ocd_ops.
4136 * MAINTAINERS: Document powerpc-eabi and powerpcle-eabi as
4137 buildable with ,-Werror.
4139 * Makefile.in (symfile_h): Define.
4140 (mcore-tdep.o): Add $(symfile_h), $(gdbcore_h) and $(inferior_h).
4141 * mcore-tdep.c: Include "symfile.h", "gdbcore.h" and "inferior.h".
4142 * MAINTAINERS: Document mcore-elf and mcore-pe as buildable with
4145 * dsrec.c (make_srec): Fix internal_error fmt arg.
4146 * MAINTAINERS: Document i960-coff as buildable with ,-Werror.
4150 * solib-aix5.c (aix5_relocate_main_executable): Don't use ANOFFSET
4155 * MAINTAINERS (paper trail): Update.
4157 * CONTRIBUTE: Update note on ``Fix PR gdb/4706'' convention.
4162 * mn10200-tdep.c (mn10200_frame_chain): Pass 0 for ``pc''
4163 parameter to mn10200_analyze_prologue.
4165 * config/mn10200/tm-mn10200.h: Include "regcache.h".
4166 * MAINTAINERS: Document that mn10200-elf target is buildable.
4170 * config/ia64/xm-aix.h (GDB_GREGSET_T, GDB_FPREGSET_T): Move defines
4172 * config/ia64/nm-aix.h (GDB_GREGSET_T, GDB_FPREGSET_T): ...to here.
4173 (MONTEREY): Don't define.
4178 * config/mn10300/tm-mn10300.h (E0_REGNUM): Correct to 15.
4182 * sparc-nat.c (sparc-nat.c): Don't include self.
4186 * defs.h (__CYGWIN__): Moved conditional which defines __CYGWIN__
4187 if __CYGWIN32__ is set from here.
4188 * config/i386/xm-cygwin.h: To here.
4189 * config/powerpc/xm-cygwin.h: To here.
4191 * i386-stub.c (handle_exception): Use 'T' response packet.
4195 * m32r-tdep.c: Fix cut and paste error in comment.
4199 * symtab.c (print_msymbol_info): Print addresses by portable method
4200 longest_local_hex_string_custom. Allow for 64-bit addresses.
4204 * gdbtypes.h (builtin_type_f_integer): Removed duplicate declaration.
4205 (MAX_OF_TYPE): Wrap macro definition in parenthesis.
4206 (MIN_OF_TYPE): Likewise.
4208 * memattr.h (mem_access_mode): Removed extraneous trailing comma.
4212 * Makefile.in (os9kread.o): Do not compile with WERROR_CFLAGS.
4213 * os9kread.c (os9k_process_one_symbol): Add assert to detect
4214 ``loses if sizeof (char *) > sizeof (int)''.
4218 * gdb_assert.h: Document pragmatics behind gdb_assert's case.
4222 * Makefile.in (gdbtk-cmds.o): Add $(regcache_h) to dependency
4228 * Makefile.in (regcache_h): Define. Add $(regcache_h) to
4233 * printcmd.c (print_address_numeric): Update comments to refer
4234 to sizeof addr, not sizeof pointer.
4235 (x_command): Remove needless whitespace (shorten long line).
4237 * breakpoint.c (print_one_breakpoint): Formatting clean-up.
4238 (read_memory_nobpt): Ditto.
4239 (ep_is_catchpoint): Ditto.
4240 (ep_is_shlib_catchpoint): Ditto.
4241 (ep_is_exception_catchpoint): Ditto.
4242 (describe_other_breakpoints): Ditto.
4246 * regcache.h (register_valid): Fix comment documenting valid
4251 From Steven Johnson:
4252 * regcache.h: New file.
4254 * value.h (read_register_bytes, read_register_gen)
4255 (write_register_gen, write_register_bytes)
4256 (read_register, read_register_pid)
4257 (read_signed_register, read_signed_register_pid)
4258 (write_register, write_register_pid)
4259 (register_cached, set_register_cached)
4260 (register_changed, register_buffer)
4261 (registers_changed, supply_register): Move declaration from here.
4262 * regcache.h: To here.
4263 * gdbcore.h (registers_fetched): Ditto.
4264 * inferior.h (registers, registers_valid): Ditto.
4266 * regcache.c (generic_target_read_pc, read_pc_pid, read_pc,
4267 generic_target_write_pc, write_pc_pid, write_pc,
4268 generic_target_read_sp, read_sp, generic_target_write_sp,
4269 write_sp, generic_target_read_fp, read_fp,
4270 generic_target_write_fp, write_fp): Add note that these functions
4271 will be moved from this file.
4273 * a29k-tdep.c: Include "regcache.h".
4274 * a68v-nat.c: Ditto.
4275 * abug-rom.c: Ditto.
4276 * alpha-nat.c: Ditto.
4277 * alpha-tdep.c: Ditto.
4278 * alphabsd-nat.c: Ditto.
4279 * arc-tdep.c: Ditto.
4280 * arm-linux-nat.c: Ditto.
4281 * arm-linux-tdep.c: Ditto.
4282 * arm-tdep.c: Ditto.
4283 * blockframe.c: Ditto.
4284 * core-aout.c: Ditto.
4285 * core-sol2.c: Ditto.
4287 * cpu32bug-rom.c: Ditto.
4288 * cxux-nat.c: Ditto.
4289 * d10v-tdep.c: Ditto.
4290 * d30v-tdep.c: Ditto.
4291 * dbug-rom.c: Ditto.
4292 * dink32-rom.c: Ditto.
4293 * dve3900-rom.c: Ditto.
4295 * fr30-tdep.c: Ditto.
4297 * go32-nat.c: Ditto.
4298 * h8300-tdep.c: Ditto.
4299 * h8500-tdep.c: Ditto.
4300 * hp300ux-nat.c: Ditto.
4301 * hppa-tdep.c: Ditto.
4302 * hppab-nat.c: Ditto.
4303 * hppah-nat.c: Ditto.
4304 * hppam3-nat.c: Ditto.
4305 * hpux-thread.c: Ditto.
4306 * i386-linux-nat.c: Ditto.
4307 * i386-linux-tdep.c: Ditto.
4308 * i386-tdep.c: Ditto.
4309 * i386aix-nat.c: Ditto.
4310 * i386b-nat.c: Ditto.
4311 * i386bsd-nat.c: Ditto.
4312 * i386gnu-nat.c: Ditto.
4313 * i386ly-tdep.c: Ditto.
4314 * i386m3-nat.c: Ditto.
4315 * i386mach-nat.c: Ditto.
4316 * i386nbsd-nat.c: Ditto.
4317 * i386v4-nat.c: Ditto.
4318 * i387-nat.c: Ditto.
4319 * i387-tdep.c: Ditto.
4320 * i960-tdep.c: Ditto.
4321 * ia64-aix-nat.c: Ditto.
4322 * ia64-linux-nat.c: Ditto.
4323 * ia64-tdep.c: Ditto.
4324 * infptrace.c: Ditto.
4326 * irix4-nat.c: Ditto.
4327 * irix5-nat.c: Ditto.
4329 * lin-thread.c: Ditto.
4330 * lynx-nat.c: Ditto.
4332 * m32r-rom.c: Ditto.
4333 * m32r-tdep.c: Ditto.
4334 * m68hc11-tdep.c: Ditto.
4335 * m68k-tdep.c: Ditto.
4336 * m68klinux-nat.c: Ditto.
4337 * m68knbsd-nat.c: Ditto.
4338 * m68knbsd-tdep.c: Ditto.
4339 * m88k-nat.c: Ditto.
4340 * m88k-tdep.c: Ditto.
4342 * mcore-rom.c: Ditto.
4343 * mcore-tdep.c: Ditto.
4344 * mi/mi-main.c: Ditto.
4345 * mips-nat.c: Ditto.
4346 * mips-tdep.c: Ditto.
4347 * mipsm3-nat.c: Ditto.
4348 * mipsv4-nat.c: Ditto.
4349 * mn10200-tdep.c: Ditto.
4350 * mn10300-tdep.c: Ditto.
4352 * ns32km3-nat.c: Ditto.
4353 * ns32knbsd-nat.c: Ditto.
4355 * pa64solib.c: Ditto.
4357 * ppc-linux-nat.c: Ditto.
4358 * ppc-linux-tdep.c: Ditto.
4359 * ppcbug-rom.c: Ditto.
4360 * ppcnbsd-nat.c: Ditto.
4361 * ptx4-nat.c: Ditto.
4362 * regcache.c: Ditto.
4363 * remote-adapt.c: Ditto.
4364 * remote-array.c: Ditto.
4365 * remote-bug.c: Ditto.
4366 * remote-e7000.c: Ditto.
4367 * remote-eb.c: Ditto.
4368 * remote-es.c: Ditto.
4369 * remote-est.c: Ditto.
4370 * remote-hms.c: Ditto.
4371 * remote-mips.c: Ditto.
4372 * remote-mm.c: Ditto.
4373 * remote-nindy.c: Ditto.
4374 * remote-os9k.c: Ditto.
4375 * remote-rdi.c: Ditto.
4376 * remote-rdp.c: Ditto.
4377 * remote-sds.c: Ditto.
4378 * remote-sim.c: Ditto.
4379 * remote-st.c: Ditto.
4380 * remote-udi.c: Ditto.
4381 * remote-utils.c: Ditto.
4382 * remote-vx.c: Ditto.
4383 * remote-vx29k.c: Ditto.
4384 * remote-vx68.c: Ditto.
4385 * remote-vx960.c: Ditto.
4386 * remote-vxmips.c: Ditto.
4387 * remote-vxsparc.c: Ditto.
4389 * rom68k-rom.c: Ditto.
4390 * rs6000-nat.c: Ditto.
4391 * rs6000-tdep.c: Ditto.
4394 * sol-thread.c: Ditto.
4395 * solib-svr4.c: Ditto.
4396 * somsolib.c: Ditto.
4397 * sparc-nat.c: Ditto.
4398 * sparc-tdep.c: Ditto.
4399 * sparcl-tdep.c: Ditto.
4400 * sparclet-rom.c: Ditto.
4401 * sun3-nat.c: Ditto.
4402 * sun386-nat.c: Ditto.
4403 * symm-nat.c: Ditto.
4405 * thread-db.c: Ditto.
4407 * tic80-tdep.c: Ditto.
4408 * tracepoint.c: Ditto.
4409 * ultra3-nat.c: Ditto.
4410 * umax-xdep.c: Ditto.
4411 * uw-thread.c: Ditto.
4412 * v850-tdep.c: Ditto.
4415 * w65-tdep.c: Ditto.
4416 * w89k-rom.c: Ditto.
4417 * win32-nat.c: Ditto.
4419 * z8k-tdep.c: Ditto.
4423 * MAINTAINERS: Add Matt Hiller to Write After Approval list.
4427 * mn10300-tdep.c (mn10300_stab_reg_to_regnum): New function.
4428 (mn10300_gdbarch_init): Set appropriate elements of gdbarch to
4429 mn10300_stab_reg_to_regnum.
4433 * symtab.c (search_symbols): Fix off by one error in test for
4438 * config/sparc/sp64linux.mt: New file.
4439 * configure.tgt: Recognize sparc64-*-linux* as a sp64linux target.
4440 * configure.host: Recognize sparc64-*-linux* as a linux host.
4443 * config/sparc/tm-sp64linux.h: New file.
4447 * buildsym.c (push_subfile, pop_subfile): Replace call to abort()
4448 with call to internal_error().
4449 * dbxread.c (process_one_symbol): Likewise.
4450 * exec.c (build_section_table, xfer_memory): Likewise.
4451 * h8500-tdep.c (h8500_register_size, h8500_register_virtual_type):
4453 * hpread.c (hpread_type_translate, hpread_read_array_type)
4454 (hpread_type_lookup): Likewise.
4455 * i386-tdep.c (gdb_print_insn_i386): Likewise.
4456 * i960-tdep.c (mem): Likewise
4457 * inflow.c (set_sigio_trap, clear_sigio_trap): Likewise.
4458 * infptrace.c (child_resume): Likewise.
4459 * infttrace.c (_initialize_infttrace): Likewise.
4460 * language.c (binop_result_type, add_language): Likewise.
4461 * lynx-nat.c (store_inferior_registers): Likewise.
4462 * m3-nat.c (port_chain_insert, m3_trace_me): Likewise.
4463 * mdebugread.c (parse_partial_symbols): Likewise.
4464 * monitor.c (monitor_printf_noecho, monitor_printf)
4465 (monitor_dump_regs): Likewise.
4466 * ocd.c (stu_put_packet): Likewise.
4467 * printcmd.c (decode_format, print_scalar_formatted): Likewise.
4468 * remote-bug.c (bug_open): Likewise.
4469 * remote-e7000.c (fetch_regs_from_dump, e7000_wait): Likewise.
4470 * remote-es.c (es1800_read_bytes): Likewise.
4471 * remote-mips.c (common_breakpoint): Likewise.
4472 * remote-rdp.c (send_rdp): Likewise.
4473 * remote-sds.c (putmessage): Likewise.
4474 * sparc-nat.c (fetch_inferior_registers, store_inferior_registers):
4476 * sparcl-tdep.c (sparclite_download): Likewise.
4477 * symtab.c (lookup_partial_symbol): Likewise.
4478 * target.c (push_target, pop_target, initialize_targets): Likewise.
4479 * utils.c (internal_verror, malloc_botch, wrap_here, decimal2str):
4481 * valprint.c (print_decimal, print_longest, print_longest)
4482 (strcat_longest): Likewise.
4483 * w65-tdep.c (init_frame_pc, w65_push_dummy_frame): Likewise.
4484 * xmodem.c (xmodem_send_packet): Likewise.
4485 * z8k-tdep.c (init_frame_pc, z8k_push_dummy_frame): Likewise.
4486 * config/h8500/tm-h8500.h (STORE_STRUCT_RETURN): Likewise.
4487 * config/mn10200/tm-mn10200.h (EXTRACT_RETURN_VALUE)
4488 (STORE_RETURN_VALUE): Likewise.
4489 * config/ns32k/nm-umax.h (REGISTER_U_ADDR): Likewise.
4490 * config/ns32k/xm-merlin.h (REGISTER_U_ADDR): Likewise.
4491 * config/z8k/tm-z8k.h (STORE_STRUCT_RETURN, STORE_RETURN_VALUE):
4496 * CONTRIBUTE: Document how to cite a problem report.
4497 * TODO: Note need to replace CONTRIBUTE with generated file.
4499 * CONTRIBUTE: Mention that patches do not need to include the
4500 generated files gdbarch.h and gdbarch.c.
4504 * value.h (get_saved_register): Move from here.
4509 * solib.h (in_svr4_dynsym_resolve_code): Delete declaration.
4510 (in_solib_dynsym_resolve_code): Add declaration.
4511 (IN_SOLIB_DYNSYM_RESOLVE_CODE): Changed define to invoke
4512 in_solib_dynsym_resolve_code() rather than
4513 in_svr4_dynsym_resolve_code(). Also, removed the ifdefs
4514 which caused this macro to only be defined when
4515 SVR4_SHARED_LIBS is defined.
4516 * solib.c (in_solib_dynsym_resolve_code): New function.
4517 * solist.h (struct target_so_ops): Add new member
4518 in_dynsym_resolve_code.
4519 * solib-aix5.c (aix5_in_dynsym_resolve_code): Renamed from
4520 in_svr4_dynsym_resolve_code. Also, made static.
4521 (_initialize_aix5_solib): Initialize in_dynsym_resolve_code
4522 member in aix5_so_ops.
4523 * solib-svr4.c (svr4_in_dynsym_resolve_code): Renamed from
4524 in_svr4_dynsym_resolve_code. Also, added second version
4525 of this function which will be used when SVR4_SHARED_LIBS
4527 (_initialize_svr4_solib): Initialize in_dynsym_resolve_code
4528 member in svr4_so_ops.
4530 * ia64-aix-nat.c, ia64-aix-tdep.c, config/ia64/aix.mh,
4531 config/ia64/aix.mt, config/ia64/nm-aix.h, config/ia64/tm-aix.h,
4532 config/ia64/xm-aix.h: New files.
4533 * ia64-tdep.c (_initialize_ia64_tdep): Remove declaration.
4534 (ia64_aix_sigcontext_register_address): New declaration.
4535 (ia64_gdbarch_init): Provide for initialization of
4536 sigcontext_register_address member of struct tdep when
4537 on target is detected to be running AIX.
4538 * config/ia64/linux.mt (TDEPFILES): Add ia64-aix-tdep.o to
4543 * ia64-tdep.c (ia64_frameless_function_invocation): Implement.
4544 * config/ia64/linux.mh (NATDEPFILES): Use thread-db.o and lin-lwp.o
4545 for thread support instead of linux-thread.o and lin-thread.o.
4546 * config/ia64/nm-linux.h (PREPARE_TO_PROCEED, GET_THREAD_SIGNALS,
4547 ATTACH_LWP): Define to use the following lin-lwp.c functions...
4548 (lin_lwp_prepare_to_proceed, lin_thread_get_thread_signals,
4549 lin_lwp_attach_lwp): Declare.
4553 * mips-tdep.c (do_fp_register_row, do_fp_register_row): Fix printf
4558 * solib-aix5.c (solib-svr4.h): Remove include.
4559 (solib_break_names): Delete names which aren't actually
4561 (bkpt_names): Remove.
4562 (aix5_relocate_main_executable, bfd_lookup_symbol): Replace calls
4563 to STREQ() with equivalent calls to strcmp().
4564 (in_svr4_dynsym_resolve_code, enable_break, bfd_lookup_symbol,
4565 aix5_solib_create_inferior_hook): Revise comments.
4566 (enable_break): Remove old ``bkpt_names'' code.
4570 * Makefile.in (SFILES): Add frame.c .
4571 (COMMON_OBS): Add frame.o .
4572 (frame.o): New target.
4574 * frame.c (find_saved_register):
4575 (default_get_saved_register):
4576 (get_saved_register):
4577 (read_relative_register_raw_bytes_for_frame):
4578 (read_relative_register_raw_bytes): Moved to here.
4579 * regcache.c: From here.
4583 * solib-aix5.c: New file.
4587 * solib.c (info_sharedlibrary_command): Don't assume pointers
4588 are the same size of long, call longest_local_hex_string_custom().
4590 * solib-svr4.c (LM_ADDR): LM_ADDR is a signed offset, so
4591 extract_signed_integer() should be called instead of
4596 * MAINTAINERS: Add Martin Hunt to Write After Approval list.
4601 * mips-tdep.c (mips_register_raw_size): If FP_REGISTER_DOUBLE,
4602 then floating point registers are 8 bytes.
4606 * parse.c (write_exp_msymbol): Make the type CORE_ADDR, to
4607 accomodate 64-bit addresses.
4612 * symtab.c (lookup_symbol_aux): Call lookup_symbol_aux, not
4613 lookup_symbol, when trying to find a symbol with a mangled name,
4614 to avoid infinite recursion.
4618 * TODO (5.2): Mention G++ 3.0 ABI. General cleanups.
4622 * arm-tdep.c (check_prologue_cache): Fix off by 1 error.
4623 (save_prologue_cache): Ditto.
4628 * partial-stab.h (switch): Check that pst is not null
4629 before dereferencing it.
4634 * symfile.c (add_symbol_file_command): Always initialize
4635 my_cleanup using a NULL cleanup.
4639 * demangle.c (demangling_style_names): New variable.
4640 (_initialize_demangler): Fill demangling_style_names with the
4641 names of known demangling styles from libiberty_demanglers[]. Use
4642 add_set_enum_cmd instead of add_set_cmd, to get completion on
4643 demangling style names.
4645 * proc-api.c (_initialize_proc_api): Make `procfs-file' use
4646 file-name completion.
4648 * remote-rdi.c (_initialize_remote_rdi): Ditto for `rdilogfile'.
4650 * solib.c (_initialize_solib): Ditto for `solib-search-path' and
4651 `solib-absolute-prefix'.
4653 * tracepoint.c (_initialize_tracepoint): Ditto for
4656 * win32-nat.c (_initialize_inftarg): Ditto for `dll-symbols'.
4658 * cli/cli-cmds.c (init_cli_cmds): Make `shell' and `make' use
4659 file-name completion.
4661 * infcmd.c (_initialize_infcmd): Make the following commands use
4662 the file-name completer: `tty', `args', `path', `paths', and
4667 * go32-nat.c: Include i387-nat.h.
4668 (fetch_register): New function, uses some of the guts of
4669 go32_fetch_registers and calls i387_supply_register.
4670 (go32_fetch_registers): Most of the code moved into
4671 fetch_register. Use i387_supply_fsave.
4672 (store_register): Use i387_fill_fsave instead of custom code.
4673 (go32_store_registers): Use i387_fill_fsave.
4675 * Makefile.in (go32-nat.o): Depend on i387-nat.h.
4677 * config/i386/go32.mh (NATDEPFILES): Add i387-nat.o.
4679 * completer.c (gdb_completer_file_name_break_characters): Remove
4680 slash from file-name break characters.
4681 [__MSDOS__]: Special definition for DOS/Windows file names.
4682 (line_completion_function): When completing on file names, bump
4683 `p' to the first file-name constituent character of `word', before
4684 invoking the completer.
4688 * i387-nat.c: Include "i387-nat.h". Use regnum instead of regno
4689 consistently for parameter names. Fix comments accordingly.
4690 (i387_supply_register): New function.
4691 (i387_supply_fsave): Implement using i387_supply_register.
4692 * i387-nat.h: Use regnum instead of regno consistently for
4693 parameter names. Fix comments accordingly.
4694 (i387_supply_register): New prototype.
4698 * remote.c (build_remote_gdbarch_data): Use new TARGET_ADDR_BIT
4699 instead of TARGET_PTR_BIT (to support Harvard architectures).
4704 * hpux-thread.c (hpux_thread_xfer_memory): Add mem_attrib
4705 argument to parameter list and to call in order to conform to
4706 to_xfer_memory field of struct target_ops.
4710 * somsolib.c (som_solib_add_solib_objfile): Do not use
4711 section relocation feature of syms_from_objfile. Do my own
4712 section relocation, offsetting each section of the som by
4713 either text_addr - text_link_addr or data_start.
4717 * TODO (5.1): Move ``Hardware watchpint problems'' out of 5.1.
4721 * MAINTAINERS (paper trail): Update.
4725 * target.h (target_fetch_registers): Fix comment.
4729 * f-exp.y: Include <ctype.h>.
4730 (parse_number): Ensure that ``i'' is always initialized.
4734 * MAINTAINERS: Add myself to paper trail section.
4738 * configure.in (AC_CHECK_HEADERS): Add sys/file.h.
4739 * configure, config.in: Regenerate.
4740 * corelow.c: Include <sys/file.h> if present.
4744 * inflow.c (terminal_ours_1): Initialize ``osigtou''. Only
4745 declare when have SIGTTOU.
4749 * config/djgpp/fnchange.lst: Add entries for gdb/gdbtk/*/ChangeLog-*.
4753 * MAINTAINERS: Update my email address.
4757 * NEWS: Document that "info symbol" works with COFF debug info and
4760 * minsyms.c (lookup_minimal_symbol_by_pc_section): Don't skip
4761 symbols whose SYMBOL_BFD_SECTION is NULL.
4765 Get rid of AIX specific PC_LOAD_SEGMENT, replace with PC_SOLIB.
4766 * xcoffsolib.c (xcoff_solib_address): Renamed from
4767 pc_load_segment_name. Return NULL if address is not in a shared
4768 library. Cleanup shared library name construction, using xasprintf.
4769 Format shared library member names consistent with format in exec.c.
4770 (solib_info): Format shared library member names consistent with
4772 * config/rs6000/nm-rs6000.h: Replace PC_LOAD_SEGMENT with PC_SOLIB,
4773 using xcoff_solib_address for PC_SOLIB definition.
4774 * stack.c (print_frame): Remove PC_LOAD_SEGMENT code, no longer
4779 * mipsread.c (read_alphacoff_dynamic_symtab): Replace alloca calls
4780 with xmalloc calls and cleanups.
4784 * rs6000-nat.c (child_xfer_memory): Add missing parameter
4785 'struct mem_attrib *' required by 2001-01-23 change.
4789 Updates to "make TAGS":
4790 * Makefile.in (ALLDEPFILES): Remove altos-xdep.c arm-convert.s
4791 arm-xdep.c convex-tdep.c convex-xdep.c pyr-tdep.c pyr-xdep.c
4793 (TAGFILES_NO_SRCDIR): Add $(SUBDIR_CLI_SRCS).
4797 * config/djgpp/fnchange.lst: Remove extraneous "too many dots".
4802 * defs.h (continuation): Remove unused global variable.
4806 * configure.tgt: Remove references to convex, pyramid, altos and
4808 * configure.host: Ditto.
4809 * MAINTAINERS: Ditto.
4812 * tahoe-tdep.c: Delete obsolete file.
4813 * pyr-xdep.c: Ditto.
4814 * pyr-tdep.c: Ditto.
4815 * convex-tdep.c: Ditto.
4816 * convex-xdep.c: Ditto.
4817 * config/tahoe/xm-tahoe.h: Ditto.
4818 * config/tahoe/tm-tahoe.h: Ditto.
4819 * config/tahoe/tahoe.mt: Ditto.
4820 * config/tahoe/tahoe.mh: Ditto.
4821 * config/pyr/xm-pyr.h: Ditto.
4822 * config/pyr/tm-pyr.h: Ditto.
4823 * config/pyr/pyramid.mt: Ditto.
4824 * config/pyr/pyramid.mh: Ditto.
4825 * config/m68k/xm-altos.h: Ditto.
4826 * config/m68k/tm-altos.h: Ditto.
4827 * config/m68k/altos.mt: Ditto.
4828 * config/m68k/altos.mh: Ditto.
4829 * config/convex/xm-convex.h: Ditto.
4830 * config/convex/tm-convex.h: Ditto.
4831 * config/convex/convex.mt: Ditto.
4832 * config/convex/convex.mh: Ditto.
4833 * config/convex/Convex.notes: Ditto.
4834 * config/arm/xm-arm.h: Ditto.
4835 * config/arm/nm-arm.h: Ditto.
4836 * config/arm/arm.mt: Ditto.
4837 * config/arm/arm.mh: Ditto.
4838 * arm-convert.s: Ditto.
4839 * arm-xdep.c: Ditto.
4840 * altos-xdep.c: Ditto.
4844 * defs.h (internal_error, internal_verror): Add __FILE__ and
4846 * utils.c (internal_error, internal_verror): Update.
4848 * v850-tdep.c: Update calls to internal_error.
4854 * symm-nat.c: Ditto.
4855 * sparc-tdep.c: Ditto.
4858 * rs6000-tdep.c: Ditto.
4859 * rs6000-nat.c: Ditto.
4861 * remote-vx.c: Ditto.
4862 * remote-sim.c: Ditto.
4863 * remote-mips.c: Ditto.
4864 * regcache.c: Ditto.
4865 * objfiles.h: Ditto.
4866 * objfiles.c: Ditto.
4867 * mn10300-tdep.c: Ditto.
4868 * mips-tdep.c: Ditto.
4870 * m68k-tdep.c: Ditto.
4872 * language.c: Ditto.
4873 * infptrace.c: Ditto.
4874 * inferior.h: Ditto.
4876 * ia64-tdep.c: Ditto.
4877 * i386-tdep.c: Ditto.
4878 * i386-linux-nat.c: Ditto.
4879 * hppah-nat.c: Ditto.
4880 * go32-nat.c: Ditto.
4884 * event-loop.c: Ditto.
4885 * dwarf2read.c: Ditto.
4887 * d30v-tdep.c: Ditto.
4888 * d10v-tdep.c: Ditto.
4889 * cli/cli-setshow.c: Ditto.
4890 * cli/cli-script.c: Ditto.
4892 * breakpoint.c: Ditto.
4894 * arch-utils.c: Ditto.
4895 * a29k-tdep.c: Ditto.
4896 * gdb_assert.h: Ditto.
4897 * gdbarch.sh: Ditto.
4898 * gdbarch.h, gdbarch.c: Re-generate.
4903 * event-top.h [!STOP_SIGNAL]: #include <signal.h>.
4907 * remote-sim.c (dump_mem): Cleanup printf format argument.
4908 * MAINTAINERS: Update, mn10300-elf now builds.
4912 * event-top.c: Remove duplicate #include <signal.h>.
4916 * sol-thread.c (restore_inferior_pid): Save the PID in a freshly
4918 (save_inferior_pid): Restore the PID from that tempoary
4919 buffer. Delete the buffer.
4920 * utils.c (make_cleanup_close, do_close_cleanup): Ditto for FD.
4924 * MAINTAINERS: Add ``The Obvious Fix Rule''.
4928 * MAINTAINERS: Add Michael Snyder to Solaris/SPARC list.
4932 * gdbarch.sh: Include "gdb_assert.h".
4933 (struct gdbarch): Change ``nr_data'' to unsigned.
4934 (alloc_gdbarch_data, free_gdbarch_data): New functions.
4935 (gdbarch_free): Free the data-pointer vector. Use xfree to delete
4936 architecture vector.
4937 (struct gdbarch_data, struct gdbarch_data_registration): Move init
4938 method to gdbarch_data. Add free method, make index unsigned.
4939 (struct gdbarch_data_registry): Make nr unsigned.
4940 (register_gdbarch_data): Add free parameter. Store in
4942 (init_gdbarch_data): Use set_gdbarch_data.
4943 (set_gdbarch_data): New function.
4945 * gdbarch.h, gdbarch.c: Re-generate.
4949 * ser-unix.c (hardware_print_tty_state) [HAVE_SGTTY]: Call
4950 fprintf_filtered with correct arguments.
4955 * findvar.c: Buffers of size MAX_REGISTER_RAW_SIZE or REGISTER_BYTES
4956 must be allocated dynamically, since these are no longer constants.
4958 * regcache.c: Ditto.
4960 * sol-thread.c: Ditto.
4962 * config/sparc/sun4sol2.mh (MH_CFLAGS): Add -I/usr/include/v9, as a
4963 work-around for a missing Sun header file in solaris for sparc64.
4967 * config/arm/linux.mh (NATDEPFILES): Add proc-service.o,
4968 thread-db.o, lin-lwp.o; remove lin-thread.o, linux-thread.o.
4969 * config/arm/nm-linux.h (PREPARE_TO_PROCEED, ATTACH_LWP,
4970 GET_THREAD_SIGNALS): Define.
4971 * arm-linux-nat.c (fill_gregset): Correct type of argument.
4972 (supply_gregset): Likewise.
4973 (fill_fpregset): Likewise.
4974 (supply_fpregset): Likewise.
4978 * valops.c (value_cast): If casting a scalar to a pointer, do not
4979 issue a message about truncation unless it exceeds the length of
4980 an address, not the length of a pointer. This is because what the
4981 user gives us is an address, not a pointer, and we will ultimately
4982 convert it (via ADDRESS_TO_POINTER) to a pointer, not truncate it
4983 to a pointer. This allows things like "print *(int *)0x01000234"
4984 to work without generating a misleading message on a target having
4985 two byte pointers and four byte addresses.
4989 * win32-nat.c: Change PTR to void * throughout.
4993 * signals.h: Removed.
4994 * event-top.c (#include <signal.h>): Changed from signals.h.
4995 * inflow.c: Likewise.
4996 * mac-xdep.c: Likewise.
4997 * ser-pipe.c: Likewise.
4998 * ser-tcp.c: Likewise.
4999 * standalone.c: Likewise.
5001 * utils.c: Likewise.
5002 * Makefile.in: Removed signals.h from dependencies.
5007 * inferior.h (step_over_calls_kind): Remove trailing comma from
5009 (step_over_calls): Declare as extern rather than global.
5013 * sh-tdep.c: Update copyright.
5014 (sh_extract_return_value): Rewrite.
5015 (sh3e_sh4_extract_return_value): New function.
5016 (sh_gdbarch_init): Initialize gdbarch_extract-return_value to new
5017 version of the function for sh3e and sh4 CPUs.
5021 * hppah-nat.c (child_xfer_memory): Add parameter 'struct mem_attrib *'
5022 to conform with interface change.
5026 * config/djgpp/fnchange.lst: Tweak to make consistent with the
5029 * config/djgpp/djconfig.sh: Use explicit absolute file name when
5032 * ser-go32.c (dos_write) [UART_FIFO_WORKS]: Use outportsb only if
5033 UART_FIFO_WORKS is defined. Otherwise use outportb.
5036 * go32-nat.c (go32_xfer_memory): Make the argument list consistent
5037 with target.h's `to_xfer_memory' member.
5041 * ppc-bdm.c (#include <signal.h>): Removed.
5042 * remote-array.c: Likewise.
5043 * remote-bug.c: Likewise.
5044 * remote-e7000.c: Likewise.
5045 * remote-mips.c: Likewise.
5046 * remote-os9k.c: Likewise.
5047 * remote-st.c: Likewise.
5048 * remote-udi.c: Likewise.
5049 * remote-vx29k.c: Likewise.
5050 * remote-vx68.c: Likewise.
5051 * remote-vx960.c: Likewise.
5052 * remote-vxmips.c: Likewise.
5053 * remote-vxsparc.c: Likewise.
5057 * remote-utils.h (sr_set_device): Changed free() to xfree() where
5058 appropriate. Also changed Copyright to include 2001.
5059 * symtab.h (obstack_chunk_free, SYMBOL_INIT_DEMANGLED_NAME): Likewise.
5060 * value.h (value_free): Likewise.
5061 * gdbarch.sh (gdbarch_free): Likewise.
5062 * gdbarch.c, gdbarch.h: Regenerated.
5066 * cli/cli-cmds.c (apropos_command): Changed occurance of free() to
5067 xfree(). Also changed Copyright to include 2001.
5071 * monitor.c (#include "gdb_wait.h"): Removed.
5073 * ppc-bdm.c: Likewise.
5074 * remote-adapt.c: Likewise.
5075 * remote-array.c: Likewise.
5076 * remote-bug.c: Likewise.
5077 * remote-e7000.c: Likewise.
5078 * remote-eb.c: Likewise.
5079 * remote-es.c: Likewise.
5080 * remote-mips.c: Likewise.
5081 * remote-mm.c: Likewise.
5082 * remote-nindy.c: Likewise.
5083 * remote-os9k.c: Likewise.
5084 * remote-rdi.c: Likewise.
5085 * remote-rdp.c: Likewise.
5086 * remote-sds.c: Likewise.
5087 * remote-sim.c: Likewise.
5088 * remote-st.c: Likewise.
5089 * remote-udi.c: Likewise.
5090 * remote-vx.c: Likewise.
5091 * remote-vx29k.c: Likewise.
5092 * remote-vx68.c: Likewise.
5093 * remote-vx960.c: Likewise.
5094 * remote-vxmips.c: Likewise.
5095 * remote-vxsparc.c: Likewise.
5096 * remote.c: Likewise.
5097 * ser-pipe.c: Likewise.
5098 * ser-unix.c: Likewise.
5099 * Makefile.in: Updated dependencies.
5103 * event-loop.c: Change inclusion of string.h to gdb_string.h and
5104 updated the copyright notice.
5105 * ser-pipe.c: Ditto.
5106 * mi/mi-cmds.c: Ditto.
5107 * mi/mi-console.c: Ditto.
5108 * mi/mi-getopt.c: Ditto.
5109 * mi/mi-parse.c: Ditto.
5113 * MAINTAINERS: Add David Smith to Write After Approval list.
5117 * cli/cli-utils.c (putchar_filtered): Move function from here.
5118 * utils.c (putchar_filtered): To here.
5119 * cli/cli-utils.h (putchar_filtered): Move declaration from here.
5120 * defs.h (putchar_filtered): To here.
5124 * configure.in (AC_CHECK_FUNCS): Replace vfork test with
5125 AC_FUNC_VFORK macro.
5126 * config.in, configure: Re-generate.
5128 * gdb_vfork.h: New file.
5129 * ser-pipe.c (pipe_open): Update. Include "gdb_vfork.h".
5130 * fork-child.c (fork_inferior): Ditto.
5134 * defs.h (strsave): Delete declaration.
5135 * utils.c (strsave): Delete definition.
5136 * TODO (strsave): Update
5138 * mac-xdep.c (tilde_expand): Replace strsave with xstrdup.
5139 * sparcl-tdep.c (sparclite_open): Ditto.
5140 * mips-tdep.c (mips_set_processor_type_command): Ditto.
5141 (_initialize_mips_tdep): Ditto.
5142 * solib.c (solib_open): Ditto.
5143 * symfile.c (add_filename_language): Ditto.
5144 (set_ext_lang_command): Ditto.
5145 * source.c (init_source_path): Ditto.
5147 * sh3-rom.c (sh3_open): Ditto.
5149 * serial.c (serial_open): Ditto.
5150 * remote-mips.c (common_open): Ditto.
5151 * monitor.c (monitor_open): Ditto.
5152 * m32r-rom.c (m32r_upload_command): Ditto.
5153 * infcmd.c (path_command): Ditto.
5154 * f-exp.y (parse_number): Ditto.
5155 * breakpoint.c (create_longjmp_breakpoint): Ditto.
5156 (create_thread_event_breakpoint): Ditto.
5157 * arc-tdep.c (arc_set_cpu_type_command): Ditto.
5158 (_initialize_arc_tdep): Ditto.
5160 Tue Jan 30 15:14:26 2001 Andrew Cagney <cagney@skil>
5162 * cli/cli-script.c (define_command): Check for a bad hook value in
5167 * configure/sh/embed.mt: New file.
5168 * configure/sh/linux.mt: New file.
5169 * configure/sh/sh.mt: Removed.
5170 * configure.tgt (sh-*-hms,sh-*-coff*,sh-*-elf*,sh-*-linux): New targets.
5175 * symtab.c (block_lookup_symbol): Use 'namespace' parameter in
5176 symbol comparisons in binary search.
5180 * win32-nat.c (child_xfer_memory): Add missing argument required by
5185 * ui-out.c (do_list_end): New function.
5186 (make_cleanup_ui_out_list_end): New function.
5187 * ui-out.h: Provide prototype for make_cleanup_ui_out_list_end.
5188 * stack.c (print_frame) [UI_OUT]: Call
5189 make_cleanup_ui_out_list_end to make sure we mark the end of the
5190 list if we do a non-local exit. At the end of the function,
5191 instead of calling ui_out_list_end directly, let do_cleanups
5196 Fix double parsing of filenames passed as command line arguments
5197 to GDB (causes weird handling of escape characters).
5198 Also, remove dependencies on the CLI from libgdb.
5199 * call-cmds.h: Remove declaration of exec_file_command().
5200 * gdbcore.h: Remove declaration of exec_file_command().
5201 Add declarations for exec_open() and exec_file_clear().
5202 * symfile.h: Add declarations for symbol_file_add_main() and
5203 symbol_file_clear().
5204 * exec.c (exec_open): New function. Implements to_open for exec
5206 (exec_file_clear): New function. Makes GDB forget about a previously
5207 specified executable file.
5208 (exec_file_attach): Move parsing of arguments from here ...
5209 (exec_file_command): ... to here.
5210 (init_exec_ops): Use exec_open(), not exec_file_command() to
5211 implement to_open for exec targets.
5212 * symfile.c (symbol_file_add_main): New function. Call symbol_file_add()
5213 with default values. Used when the file name has already been parsed.
5214 (symbol_file_clear): New function. Makes GDB forget about previously
5216 (symbol_file_command): Call the above function instead of inline code.
5217 * main.c: Include "symfile.h" and "gdbcore.h" instead of the deprecated
5219 (captured_main): Call exec_file_attach() and symbol_file_add_main()
5220 instead of exec_file_command() and symbol_file_command().
5221 (captured_main): Add comment.
5222 * corefile.c: Include "symfile.h".
5223 (core_file_command): Call symbol_file_add_main() instead of
5224 symbol_file_command().
5225 (reopen_exec_file): Call exec_open() instead of exec_file_command().
5226 * infcmd.c: Include "symfile.h".
5227 (attach_command): Call symbol_file_add_main() instead of
5228 symbol_file_command().
5229 * infrun.c: Remove comment about the inclusion of "symfile.h",
5230 not any longer appropriate.
5231 (follow_exec): Call symbol_file_add_main() instead of
5232 symbol_file_command().
5233 * remote-es.c: Include "symfile.h".
5234 (es1800_load): Call symbol_file_add_main() instead of
5235 symbol_file_command().
5236 * remote-vx.c: Remove comment about the inclusion of "symfile.h",
5237 not any longer appropriate.
5238 (vx-wait): Call symbol_file_add_main() instead of
5239 symbol_file_command().
5240 * solib-svr4.c (open_symbol_file_object): Call symbol_file_add_main()
5241 instead of symbol_file_command().
5242 * v850ice.c (ice_file): Call exec_open(), exec_file_attach() and
5243 symbol_file_add_main() instead of exec_file_command() and
5244 symbol_file_command().
5245 * Makefile.in: Update dependencies.
5249 * remote-udi.c (udi_open): Change strdup to xstrdup.
5250 * thread.c (thread_apply_all_command): Change strdup to xstrdup.
5251 Update copyright message.
5252 * varobj.c (delete_variable_1): Likewise.
5254 * gdb_string.h: Remove declaration of strdup. Update copyright
5256 * config/xm-mpw.h: Likewise.
5257 * config/i386/xm-i386mach.h: Likewise.
5258 * config/m68k/xm-apollo68b.h: Likewise.
5259 * config/m68k/xm-hp300bsd.h: Likewise.
5260 * config/rs6000/xm-rs6000.h: Likewise.
5261 * config/vax/xm-vaxult.h: Remove declaration of strdup.
5262 * config/vax/xm-vaxult2.h: Likewise.
5266 * MAINTAINERS: Add Jeff Holcomb to Write After Approval list.
5270 * target.c (target_xfer_memory_partial): Return -1 on failure due
5271 to invalid access mode attribute.
5275 * win32-nat.c (_initialize_core_win32): Prototype correctly.
5279 * config/alpha/tm-fbsd.h: Update copyright.
5280 (USE_STRUCT_CONVENTION): Define in terms of
5281 alphabsd_use_struct_convention.
5282 * config/alpha/fbsd.mt (TDEPFILES): Add alphafbsd-tdep.c.
5283 * alphafbsd-tdep.c: New file.
5287 * top.c (print_gdb_version): Update Copyright year.
5291 * dcache.c (dcache_write_line): Fix typo.
5293 * memattr.c (delete_mem_region): Replace free() with xfree().
5294 (mem_number): Add explicit type.
5296 * sol-thread.c (sol_thread_xfer_memory): Add attrib argument.
5297 (rw_common): Likewise.
5301 * infcmd.c (get_inferior_args, set_inferior_args): Accessor functions
5302 for the inferior program arguments.
5303 (run_command, run_no_args_command, init_infcmd)): Use accessor
5304 functions to set the inferior program arguments.
5305 * inferior.h: Add definitions to the accessor functions above.
5309 * dwarf2read.c (read_tag_const_type, read_tag_volatile_type):
5310 Implement these correctly, using make_cv_type.
5314 * exec.c (xfer_memory): Add attrib argument.
5315 * infptrace.c (child_xfer_memory): Likewise.
5316 * lin-lwp.c (lin_lwp_xfer_memory): Likewise.
5317 * monitor.c (monitor_xfer_memory): Likewise.
5318 * remote-adapt.c (adapt_xfer_inferior_memory): Likewise.
5319 * remote-array.c (array_xfer_memory): Likewise.
5320 * remote-bug.c (bug_xfer_memory): Likewise.
5321 * remote-e7000.c (e7000_xfer_inferior_memory): Likewise.
5322 * remote-eb.c (eb_xfer_inferior_memory): Likewise.
5323 * remote-es.c (es1800_xfer_inferior_memory): Likewise.
5324 * remote-mips.c (mips_xfer_memory): Likewise.
5325 * remote-mm.c (mm_xfer_inferior_memory): Likewise.
5326 * remote-nindy.c (nindy_xfer_inferior_memory): Likewise.
5327 * remote-os9k.c (rombug_xfer_inferior_memory): Likewise.
5328 * remote-rdi.c (arm_rdi_xfer_memory): Likewise.
5329 * remote-rdp.c (remote_rdp_xfer_inferior_memory): Likewise.
5330 * remote-sds.c (sds_xfer_memory): Likewise.
5331 * remote-sim.c (gdbsim_xfer_inferior_memory): Likewise.
5332 * remote-st.c (st2000_xfer_inferior_memory): Likewise.
5333 * remote-udi.c (udi_xfer_inferior_memory): Likewise.
5334 * remote-vx.c (vx_xfer_memory): Likewise.
5335 * remote.c (remote_xfer_memory): Likewise.
5336 * target.c (debug_to_xfer_memory, do_xfer_memory): Likewise.
5337 * target.h (child_xfer_memory, do_xfer_memory, xfer_memory): Likewise.
5338 * thread-db.c (thread_db_xfer_memory): Likewise.
5340 * target.h (#include "memattr.h"): Added.
5341 (target_ops.to_xfer_memory): Add attrib argument.
5343 * wince.c (_initialize_inftarg): Removed call to set_dcache_state.
5344 * dcache.h (set_dcache_state): Removed declaration.
5345 * dcache.c (set_dcache_state): Removed definition
5347 * dcache.c: Update module comment, as dcache is now enabled and
5348 disabled with memory region attributes instead of by the global
5349 variable "remotecache". Add comment describing the interaction
5350 between dcache and memory region attributes.
5351 (dcache_xfer_memory): Add comment describing benefits of moving
5352 cache writeback to a higher level.
5353 (dcache_struct): Removed cache_has_stuff field. This was used to
5354 record whether the cache had been accessed in order to invalidate
5355 it when it was disabled. However, this is not needed because the
5356 cache is write through and the code that enables, disables, and
5357 deletes memory regions invalidate the cache. Add comment which
5358 suggests that we could be more selective and only invalidate those
5359 cache lines containing data from those memory regions.
5360 (dcache_invalidate): Updated.
5361 (dcache_xfer_memory): Updated.
5363 (dcache_alloc): Don't abort() if dcache_enabled_p is clear.
5364 (dcache_xfer_memory): Removed code that called do_xfer_memory() to
5365 perform a uncached transfer if dcache_enabled_p was clear. This
5366 function is now only called if caching is enabled for the memory
5368 (dcache_info): Always print cache info.
5370 * target.c (do_xfer_memory): Add attrib argument.
5371 (target_xfer_memory, target_xfer_memory_partial): Break transfer
5372 into chunks defined by memory regions, pass region attributes to
5374 * dcache.c (dcache_read_line, dcache_write_line): Likewise.
5376 * Makefile.in (SFILES): Add memattr.c.
5377 (COMMON_OBS): Add memattr.o.
5378 (dcache.o): Add target.h to dependencies.
5379 * memattr.c: New file.
5380 * memattr.h: Likewise.
5382 * config/m32r/m32r.mt (GDBSERVER_LIBS): Added ../../intl/libintl.a.
5383 * config/mips/vr5000.mt (GDBSERVER_LIBS): Likewise.
5384 * config/tic80/tic80.mt (GDBSERVER_LIBS): Likewise.
5385 * gdbserver/low-sim.c (#include "defs.h"): Removed.
5386 (mygeneric_load): Rename from generic_load.
5388 * gdbserver/low-hppabsd.c (#include "server.h"): Added.
5389 (#include "defs.h"): Removed.
5390 (inferior_pid, perror_with_name): Remove declarations.
5391 * gdbserver/low-linux.c: Likewise.
5392 * gdbserver/low-nbsd.c: Likewise.
5393 * gdbserver/low-sparc.c: Likewise.
5394 * gdbserver/low-sun3.c: Likewise.
5396 * i386-stub.c: Re-indent.
5397 * m68k-stub.c: Re-indent.
5401 * gdbarch.sh (PARM_BOUNDARY): Define.
5402 * gdbarch.c: Regenerate.
5403 * gdbarch.h: Regenerate.
5407 * ns32k-tdep.c: #include "frame.h"
5408 * config/ns32k/tm-umax.h (FRAME_FIND_SAVED_REGS): Restore. It
5409 appears to have been inadvertantly removed sometime in May 1999.
5411 * Revert 2000-11-09 changes where shared library objects were
5412 moved from NATDEPFILES to TDEPFILES on NetBSD targets. While
5413 we'd like to be able to debug dynamically linked executables,
5414 this makes it impossible to build a cross debugger on a many
5417 * config/i386/nbsd.mt: Remove solib.o, solib-svr4.o from TDEPFILES.
5418 * config/i386/nbsdelf.mt: Likewise.
5419 * config/m68k/nbsd.mt: Likewise.
5420 * config/ns32k/nbsd.mt: Likewise.
5421 * config/powerpc/nbsd.mt: Likewise.
5422 * config/sparc/nbsd.mt: Likewise.
5423 * config/sparc/nbsdelf.mt: Likewise.
5424 * config/i386/nbsd.mh: Add solib.o, solib-svr4.o to NATDEPFILES.
5425 * config/i386/nbsdelf.mh: Likewise.
5426 * config/m68k/nbsd.mh: Likewise.
5427 * config/ns32k/nbsd.mh: Likewise.
5428 * config/powerpc/nbsd.mh: Likewise.
5429 * config/sparc/nbsd.mh: Likewise.
5433 * dbxread.c (read_ofile_symtab): Stay with AUTO_DEMANGLING for G++.
5434 (process_one_symbol): Likewise.
5435 * dwarfread.c (handle_producer): Likewise.
5439 * configure.in (build_warnings): Disable -Wuninitialized until GDB
5440 compiles with -Wuninitialized,-Werror.
5441 * configure: Regenerate.
5443 * MAINTAINERS: Add list of buildable targets.
5447 * defs.h (STRCMP): Delete macro.
5449 * objfiles.c (objfile_relocate): Replace STRCMP with call to
5451 * symtab.c (lookup_partial_symbol, lookup_block_symbol): Ditto.
5452 * symfile.c (compare_symbols): Ditto.
5453 * standalone.c (open): Ditto.
5454 * remote-es.c (verify_break): Ditto.
5455 * cli/cli-decode.c (add_cmd, add_show_from_set): Ditto.
5457 * symfile.c (compare_psymbols): Delete comment refering to STRCMP.
5461 * varobj.c (FREEIF): Delete macro.
5462 (varobj_set_value, free_variable): Replace FREEIF with ``xfree''
5467 * arc-tdep.c (arc_cpu_type_table): Add new arc core numbers.
5468 (arc_print_insn): No bfd available, so pass NULL to
5469 arc_get_disassembler.
5473 * symtab.c (lookup_symbol_aux): Call lookup_symbol_aux to lookup
5474 a mangled symbol rather than recursing into lookup_symbol, since
5475 this will just re-unmangle the name & call lookup_symbol_aux -
5476 leading to an infinite recursion.
5480 * infcmd.c (print_return_value): Restore another space lost by
5481 switch to UIOUT. ``$NN='' should be ``$NN =''.
5485 * target.h (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT)
5486 * breakpoint.c (TARGET_REGION_OK_FOR_HW_WATCHPOINT): Wrap macro
5487 definition in parenthesis.
5492 * remote.c (remote_remove_hw_breakpoint): Add 'len' field to Z
5494 (remote_insert_hw_breakpoint): Ditto.
5498 * config/m68k/tm-nbsd.h (USE_STRUCT_CONVENTION): Define.
5499 (BPT_VECTOR, REMOTE_BPT_VECTOR): Change to 0xf.
5500 * config/m68k/nbsd.mt (TDEPFILES): Add m68knbsd-tdep.o.
5501 * m68knbsd-tdep.c: New file.
5503 * i386nbsd-tdep.c: Remove #if 0'd out #includes.
5505 * m68knbsd-nat.c: #include gdbcore.h.
5509 * MAINTAINERS: Add J.T. Conklin to Blanket Write Privs.
5513 * procfs.c (procfs_stopped_by_watchpoint): Don't die if process
5514 goes away -- just return false (ie. not stopped by watchpoint).
5515 * source.c (openp): Fix typo in comment.
5519 * blockframe.c (generic_get_saved_register): Spelling fix.
5520 * frame.h (FRAME_FP): Spelling fix.
5524 * infcmd.c (print_return_value): Restore space lost by switch to
5525 UIOUT. ``$NN='' should be ``$NN =''.
5529 * regcache.c (set_register_cached, register_buffer,
5530 real_register, pseudo_register fetch_register, store_register):
5532 (register_changed, read_relative_register_raw_bytes_for_frame,
5533 registers_changed, registers_fetched, read_register_bytes,
5534 read_register_gen, write_register_gen, read_register,
5535 read_signed_register, write_register, supply_register): Replace
5536 register_valid[] with register_cached() and
5537 set_register_cached().
5538 (read_register_bytes, read_register_gen, write_register_gen,
5539 read_register, read_signed_register, write_register,
5540 supply_register): Replace registers[] with register_buffer().
5541 (read_register_bytes, read_register_gen, read_register,
5542 read_signed_register): Call fetch_register().
5543 (write_register_gen, write_register): Call real_register() and
5545 (write_register_bytes): Call store_register().
5546 * value.h (set_register_cached, register_buffer): Prototype.
5547 * remote.c (remote_fetch_registers): Allocate regs[] with a
5548 run-time size. Replace register_valid[] with
5549 set_register_cached().
5550 (store_register_using_P, remote_store_registers): Replace
5551 registers[] with register_buffer().
5555 * regcache.c: Change "write-back" comment to "write-through".
5556 Change "regno" to "regnum".
5557 (read_register, read_signed_register): Remove "raw" from return
5559 (supply_register): Spelling fix.
5560 * value.h: Change "regno" to "regnum".
5564 * Makefile.in (install-gdbtk): Add .itcl files to the list of files
5569 * mips-tdep.c (mips_coerce_float_to_double): Fix typo in comment.
5573 * valops.c (VALUE_SUBSTRING_START): Delete.
5577 * Makefile.in (SUBDIR_CLI_OBS): Add cli/cli-utils.o.
5578 (SUBDIR_CLI_SRCS): Add cli/cli-utils.c.
5579 (cli_utils_h): New variable.
5580 (cli/cli-utils.o): New rule.
5581 * cli/cli-utils.c: New file.
5582 * cli/cli-utils.h: New file.
5586 * config/i386/tm-i386.h (REGISTER_CONVERT_TO_VIRTUAL,
5587 REGISTER_CONVERT_TO_RAW): Delete trailing semicolon.
5591 * alphabsd-nat.c, i386-linux-nat.c, i386bsd-nat.c: Fix typo in
5596 * sh-tdep.c (sh_default_store_return_value): Allow for small return type.
5597 (sh3e_sh4_store_return_value): Call sh_default_store_return_value for
5599 * sparc-tdep.c (sparc_frame_chain): Fix typo in comment.
5600 Update copyright notice.
5602 For older changes see ChangeLog-2000
5608 version-control: never