3 * cli/cli-setshow.c: #include <readline/tilde.h> after defs.h.
4 * cli/cli-cmds.c: Ditto.
8 * gdbarch.sh (gdbarch_dump): Print NAME_OF_MALLOC using %s. Wrap
9 function address in <>.
10 * gdbarch.c: Re-generate.
14 * p-exp.y: Rename TRUE and FALSE to TRUEKEYWORD and FALSEKEYWORD.
18 * linespec.c (symtab_from_filename): New function.
19 (decode_line_1): Move code into symtab_from_filename.
23 * lin-lwp.c (strsignal): Make extern declaration match that of glibc.
27 * f-valprint.c (info_common_command): Use get_frame_pc.
28 * std-regs.c (value_of_builtin_frame_pc_reg): Ditto.
29 * ax-gdb.c (agent_command): Ditto.
30 * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
31 (rs6000_pop_frame): Ditto.
32 (rs6000_frameless_function_invocation): Ditto.
33 (rs6000_frame_saved_pc, frame_get_saved_regs): Ditto.
34 (frame_initial_stack_address, rs6000_frame_chain): Ditto.
35 * macroscope.c (default_macro_scope): Ditto.
36 * stack.c (print_frame_info_base): Ditto.
37 (print_frame, frame_info, print_frame_label_vars): Ditto.
38 (return_command, func_command, get_frame_language): Ditto.
39 * infcmd.c (finish_command): Ditto.
40 * dummy-frame.c (cached_find_dummy_frame): Ditto.
41 * breakpoint.c (deprecated_frame_in_dummy): Ditto.
42 (break_at_finish_at_depth_command_1): Ditto.
43 (break_at_finish_command_1): Ditto.
44 (until_break_command, get_catch_sals): Ditto.
45 * blockframe.c (func_frame_chain_valid): Ditto.
46 (frameless_look_for_prologue): Ditto.
47 (frame_address_in_block, generic_func_frame_chain_valid): Ditto.
51 * config/rs6000/tm-rs6000.h (init_frame_pc_noop): Add declaration.
52 * dwarf2cfi.c (cfi_init_frame_pc): Cast the PC to a pointer.
56 * gdbarch.sh (INIT_FRAME_PC_FIRST, INIT_FRAME_PC_DEFAULT): Convert
58 * gdbarch.h, gdbarch.c: Re-generate.
59 * frame.c (get_prev_frame): Explictly assign prev's pc with value
60 returned by INIT_FRAME_PC_FIRST and INIT_EXTRA_FRAME_INFO.
62 * arch-utils.h (init_frame_pc_default, init_frame_pc_noop): Change
63 declaration to a function returning a CORE_ADDR.
64 * x86-64-tdep.h (x86_64_init_frame_pc): Ditto.
65 * arch-utils.c (init_frame_pc_noop): Return the PC value.
66 (init_frame_pc_default): Ditto.
67 * x86-64-linux-tdep.c (x86_64_init_frame_pc): Ditto.
68 * s390-tdep.c (s390_init_frame_pc_first): Ditto.
69 * mips-tdep.c (mips_init_frame_pc_first): Ditto.
70 * dwarf2cfi.h (cfi_init_frame_pc): Ditto.
71 * dwarf2cfi.c (cfi_init_frame_pc): Ditto.
72 * alpha-tdep.c (alpha_init_frame_pc_first): Ditto.
74 * i386-interix-tdep.c (i386_interix_init_abi): Set init_frame_pc
75 to init_frame_pc_noop.
76 (i386_interix_init_frame_pc): Delete function.
77 * z8k-tdep.c (init_frame_pc): Delete function.
78 * config/z8k/tm-z8k.h (INIT_FRAME_PC): Define as init_frame_pc_noop.
79 (INIT_FRAME_PC_FIRST): Ditto.
80 * config/mn10200/tm-mn10200.h (INIT_FRAME_PC): Ditto.
81 (INIT_FRAME_PC_FIRST): Ditto.
82 * config/sparc/tm-sparc.h (INIT_FRAME_PC): Ditto.
83 * config/rs6000/tm-rs6000.h (INIT_FRAME_PC): Redefine as
85 (INIT_FRAME_PC_FIRST): Convert to an expression.
86 * config/sparc/tm-sparc.h (INIT_FRAME_PC_FIRST): Ditto.
90 * blockframe.c: Use get_frame_base instead of directly accessing
91 the `struct frame_info' member frame.
92 * f-valprint.c, std-regs.c, rs6000-tdep.c: Ditto.
93 * stack.c, dummy-frame.c, breakpoint.c: Ditto.
97 * Makefile.in (readline_h): Define.
98 (completer.o): Depend on readline_h.
100 (event-top.o): Ditto.
107 (tracepoint.o): Ditto.
110 (tui-hooks.o): Ditto.
115 More cleanup from import of readline 4.3.
116 * completer.h (complete_line, readline_line_completion_function):
118 (line_completion_function): Removed, not used outside of completer.c.
119 * completer.c (readline_line_completion_function,
120 complete_function, line_completion_function): Use const for first
122 (line_completion_function): Make static.
123 (filename_completer): filename_completion_function is now called
124 rl_filename_completion_function
125 * corelow.c: Include <readline/readline.h>.
131 * top.c (init_main): No need to coerce
132 readline_line_completion_function anymore.
133 * cli/cli-dump.c: Include <readline/readline.h>.
137 * stack.c (frame_info): Use get_prev_frame.
138 * blockframe.c (frame_address_in_block): Ditto.
139 * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
140 (rs6000_frameless_function_invocation): Ditto.
141 (rs6000_frame_saved_pc): Ditto.
142 (rs6000_frame_chain): Ditto.
143 * arch-utils.c (init_frame_pc_default): Ditto.
147 * config/mn10200/tm-mn10200.h (DEPRECATED_PC_IN_CALL_DUMMY):
148 Delete redundant definition.
152 Import of readline 4.3:
153 * cli/cli-cmds.c: Include readline/tilde.h.
154 * cli/cli-setshow.c: Ditto.
155 * defs.h: Don't declare tilde_expand anymore, since readline
160 * Makefile.in (thread-db.o): Add explicit rule to ignore the use of
161 -Werror on this file.
165 * gdbarch.sh (TARGET_FLOAT_FORMAT): Use the macro when printing
167 (TARGET_DOUBLE_FORMAT, TARGET_LONG_DOUBLE_FORMAT): Ditto.
168 * gdbarch.c: Regenerate.
172 * gdbarch.sh (DEPRECATED_INIT_FRAME_PC_FIRST): Rename
173 INIT_FRAME_PC_FIRST. Change to a function with predicate. Do not
174 provide a default value.
175 * gdbarch.h, gdbarch.c: Regenerate.
176 * frame.c (get_prev_frame): Update. Check
177 DEPRECATED_INIT_FRAME_PC_FIRST_P.
178 * s390-tdep.c (s390_gdbarch_init): Update.
179 * mips-tdep.c (mips_gdbarch_init): Update.
180 * config/sparc/tm-sparc.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
181 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
182 * alpha-tdep.c (alpha_gdbarch_init): Update.
186 * ia64-linux-nat.c: Include gdb_string.h.
187 * alpha-nat.c: Ditto.
188 * ppc-linux-nat.c: Ditto.
189 * Makefile.in (ia64-linux-nat.o, alpha-nat.o, ppc-linux-nat.o):
194 * gdbthread.h: Include "frame.h".
195 (struct thread_info): Replace step_frame_address with
197 * inferior.h: Include "frame.h".
198 (step_frame_id): Replace external variable step_frame_address.
199 * gdbthread.h (save_infrun_state): Replace step_frame_address
200 parameter with step_frame_id parameter.
201 (load_infrun_state): Ditto.
202 * Makefile.in (gdbthread_h, inferior_h): Add $(frame_h).
203 * infcmd.c (step_frame_id, step_1, step_once): Update.
204 * thread.c (load_infrun_state, save_infrun_state): Update.
205 * infrun.c (clear_proceed_status, save_inferior_status): Update.
206 (handle_inferior_event, step_over_function): Update.
207 (normal_stop, context_switch, restore_inferior_status): Update.
208 (struct inferior_status): Replace step_frame_address with
213 * dwarf2read.c (dwarf2_add_field): Treat a field that is a
214 DW_TAG_member as well as a declaration as being a C++ static data
216 (read_structure_scope): Combine tests for DW_TAG_member and
221 * linespec.c (decode_compound): New function.
222 (decode_line_1): Move code into decode_compound.
226 * symtab.c (lookup_symbol_aux_local): Add 'static_block'
228 (lookup_symbol_aux): Do the 'field_of_this' check before checking
229 the static block. See PR gdb/804.
233 * symtab.c (lookup_symbol_aux_block): New function.
234 (lookup_symbol_aux_local): Move code into lookup_symbol_aux_block.
238 * gdbarch.sh: Dump the predicate function and macro values.
239 (read): Print error on standard error.
240 * gdbarch.c: Regenerate.
244 * Makefile.in (mips_tdep_h): Define.
245 (mips-tdep.o): Add mips_tdep_h to dependency list.
246 * mips-tdep.h: New file.
247 * mips-tdep.c (mips-tdep.h): Include.
248 (enum mips_abi): Move to mips-tdep.h.
249 (mips_abi): New function.
253 * Makefile.in (f-exp.tab.c): Don't depend on c-exp.tab.c.
257 * symtab.c (lookup_symbol_aux): Move minsym code into a separate
259 (lookup_symbol_aux_minsyms): New function.
263 * pa64solib.c: s/boolean/int/. Fixes a build failure on hppa64-hpux.
267 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Renamed from IN_SIGTRAMP,
268 which is an obsolete macro name.
272 * doublest.c (convert_floatformat_to_doublest): Cast exp_bias to int.
273 * config/alpha/alpha-linux.mh (MH_CFLAGS): Add -mieee.
277 * breakpoint.c (create_thread_event_breakpoint): Use xasprintf.
278 (create_breakpoints): Make sure the addr_string field is not
283 * sparc-nat.c (fetch_inferior_registers)
284 (store_inferior_registers): Add comment on problem of LWP vs
288 * lin-lwp.c (lin_lwp_fetch_registers): Remove.
289 (lin_lwp_store_registers): Remove.
290 (init_lin_lwp_ops): Use fetch_inferior_registers
291 and store_inferior_registers directly.
292 * sparc-nat.c (fetch_inferior_registers): Honor LWP ID.
293 (store_inferior_registers): Likewise.
298 * frame.h (get_frame_id): Convert to a function.
299 (null_frame_id, frame_id_p): Declare.
300 (frame_id_eq, frame_id_inner): Declare.
301 (frame_id_build): New function.
302 * frame.c (get_frame_id): Update. Use null_frame_id.
303 (frame_find_by_id): Rewrite using frame_id_p, frame_id_eq and
305 (null_frame_id, frame_id_p): Define.
306 (frame_id_eq, frame_id_inner): Define.
307 (frame_id_build): New function.
308 * varobj.c (varobj_create): Update.
309 (varobj_update): Update.
310 * valops.c (value_assign): Update.
311 (new_root_variable): Update.
312 * infrun.c (save_inferior_status): Update.
313 * breakpoint.c (watch_command_1): Update.
317 * config/pa/tm-hppah.h (SNAP1): Remove unused macro.
322 * NEWS: Mention Daniel Jacobowitz's multi-threaded shared library
325 * PROBLEMS: Mention PR gdb/725.
329 * infcmd.c (construct_inferior_arguments): Handle empty arguments.
334 * objc-lang.c (objc_printstr): Add width arg to match
336 (compare_selectors): Add 'const' to arg types.
337 (compare_classes): Likewise.
338 (find_imps): Cast msym pointer to avoid compiler warning.
339 (print_object_command): Validate the address before
340 passing it to the print routine.
341 (find_objc_msgcall_submethod): Change function argument to
343 * objc-lang.h: Add 'extern' to all function declarations.
344 (value_nsstring): Add declaration.
348 * somsolib.c (dld_cache): Replace boolean by int for field is_valid.
349 Fixes a build failure on HP/UX.
351 * hpread.c (told_objfile): Replace boolean type by int. Fixes a build
353 (hpread_has_name): Advance declaration to avoid a compilation warning.
354 (pst_syms_count): Add missing variable type. By change, the compiler
355 was defaulting to int, which seems a good choice. Fixes a compilation
357 (pst_syms_size): Likewise.
361 * hppa-tdep.c: Add #include "osabi.h" (for hppa_gdbarch_init).
362 (hppa_gdbarch_init): Detect osabi from objfile. Will be needed
363 later to set the proper gdbarch methods depending on the osabi.
364 * Makefile.in (hppa-tdep.o): Add dependency on osabi.h.
368 * osabi.h (gdb_osabi): Add two new enum values for HPUX ELF and SOM.
369 * osabi.c (gdb_osabi_name): Add strings images for the two new
371 (generic_elf_osabi_sniffer): Handle HPUX objfiles.
375 * MAINTAINERS (Java): Global maintainers are responible for Java.
376 (Past Maintainers): Mention both Anthony Green and Per Bothner as
377 part Java maintainers.
381 * xcoffread.c (read_symbol_lineno): Replace boolean by int.
382 Fixes a compilation failure on AiX.
386 * config/powerpc/aix432.mh (NATDEPFILES): Add a comment explaining
387 why aix-thread.o is not listed.
391 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Rename
392 PC_IN_CALL_DUMMY. Change to predicate. Always allow call.
393 * gdbarch.h, gdbarch.c: Re-generate.
394 * config/sparc/tm-sparc.h, config/sparc/tm-sp64.h: Update.
395 * config/mn10200/tm-mn10200.h, config/h8500/tm-h8500.h: Update.
396 * config/pa/tm-hppa.h, frame.h: Update.
397 * x86-64-tdep.c, vax-tdep.c, sparc-tdep.c: Update.
398 * s390-tdep.c, ns32k-tdep.c, mn10300-tdep.c: Update.
399 * m68k-tdep.c, i386-tdep.c, frv-tdep.c: Update.
400 * cris-tdep.c, alpha-tdep.c: Update.
401 * frame.c (set_unwind_by_pc, create_new_frame): Use either
402 DEPRECATED_PC_IN_CALL_DUMMY or pc_in_dummy_frame.
403 (get_prev_frame): Ditto.
407 * exec.c (xfer_memory): Replace boolean with int.
408 * p-exp.y: Use 0 instead of false.
409 * corelow.c (gdb_check_format): Change return type to int from
411 * utils.c: Don't include <curses.h> or <term.h> first.
415 * m68hc11-tdep.c (m68hc11_register_raw_size): Remove.
416 (m68hc11_register_byte): Remove.
417 (m68hc11_gdbarch_init): Don't set the above.
421 * remote-mips.c (mips_initialize): Force a selected frame rebuild
422 by calling get_selected_frame.
423 * ocd.c (ocd_start_remote): Use get_selected frame instead of
424 set_current_frame, create_new_frame, select_frame and
426 * remote-e7000.c (e7000_start_remote): Ditto.
427 * remote-mips.c (common_open): Ditto
428 * remote-rdp.c (remote_rdp_open): Ditto.
432 * m68k-tdep.c (m68k_frame_chain, m68k_frame_saved_pc)
433 (altos_skip_prologue, delta68_frame_saved_pc, isi_frame_num_args)
434 (delta68_frame_num_args, news_frame_num_args, m68k_skip_prologue)
435 (m68k_frame_init_saved_regs, m68k_saved_pc_after_call): Use
436 read_memory_unsigned_integer instead of read_memory_integer when
437 dealing with addresses and instruction opcodes.
438 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc)
439 (m68k_linux_frame_saved_pc): Likewise.
443 * stack.c (selected_frame, select_frame): Move from here ...
444 * frame.c (selected_frame, select_frame): ... to here. Include
446 * Makefile.in (frame.o): Update dependencies.
447 * frame.c (get_selected_frame): New function.
448 * frame.h (get_selected_frame): Declare.
449 (deprecated_selected_frame): Rename selected_frame.
450 * ada-lang.c, ada-tasks.c, breakpoint.c, corelow.c: Update.
451 * eval.c, f-valprint.c, findvar.c, frame.c, frame.h: Update.
452 * h8300-tdep.c, h8500-tdep.c, hppa-tdep.c, infcmd.c: Update.
453 * inflow.c, infrun.c, macroscope.c, mips-tdep.c: Update.
454 * mn10300-tdep.c, ocd.c, regcache.h, remote-e7000.c: Update.
455 * remote-mips.c, remote-rdp.c, sh-tdep.c, sparc-tdep.c: Update.
456 * stack.c, thread.c, tracepoint.c, valops.c, varobj.c: Update.
457 * z8k-tdep.c, cli/cli-cmds.c: Update.
461 * frame.h (get_selected_block): Add comments.
465 * frame.c (pc_notcurrent): New function.
466 (find_frame_sal): New function.
467 * frame.h (find_frame_sal): Declare.
468 (struct symtab_and_line): Add opaque declaration.
469 * stack.c (print_frame_info_base): Use find_frame_sal instead of
472 * ada-lang.c (find_printable_frame): Ditto.
476 * configure.in: Check that the pthdebug library is recent enough
477 before enabling thread support on native AiX.
478 * configure: Regenerate.
480 * config/powerpc/aix432.mh (NATDEPFILES): Remove aix-thread.o
481 from the list of object files as it is now appended by configure
482 if thread support is enabled.
483 (NAT_CLIBS): Removed as -lpthdebug is also appended by configure
484 if thread support is enabled.
488 * stack.c (get_selected_block): In-line get_current_block.
489 * frame.h (get_current_block): Delete declaration.
490 * blockframe.c (get_current_block): Delete function.
494 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Rename
495 USE_GENERIC_DUMMY_FRAMES.
496 * gdbarch.h, gdbarch.c: Regenerate.
497 * valops.c, frame.c: Update.
498 * config/z8k/tm-z8k.h, config/mn10200/tm-mn10200.h: Update.
499 * config/m32r/tm-m32r.h, config/h8500/tm-h8500.h: Update.
500 * config/pa/tm-hppa.h, blockframe.c: Update.
501 * vax-tdep.c, sparc-tdep.c, ns32k-tdep.c: Ditto.
502 * m68k-tdep.c, alpha-tdep.c: Ditto.
504 * arm-tdep.c: Eliminate USE_GENERIC_DUMMY_FRAMES as always 1.
505 * mips-tdep.c: Ditto.
509 * gdbarch.sh (CALL_DUMMY_LOCATION): Default to AT_ENTRY_POINT.
510 (USE_GENERIC_DUMMY_FRAMES): Default to true.
511 (PC_IN_CALL_DUMMY): Default to generic_pc_in_call_dummy.
512 * gdbarch.c, gdbarch.h: Re-generate.
513 * inferior.h (USE_GENERIC_DUMMY_FRAMES): Delete macro definition.
514 (CALL_DUMMY_LOCATION): Delete macro definition.
515 (PC_IN_CALL_DUMMY): Delete macro definitions.
517 * arm-tdep.c (arm_gdbarch_init): Do not set pc_in_call_dummy,
518 default is already generic_pc_in_call_dummy.
519 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
520 * v850-tdep.c (v850_gdbarch_init): Ditto.
521 * sh-tdep.c (sh_gdbarch_init): Ditto.
522 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
523 * mips-tdep.c (mips_gdbarch_init): Ditto.
524 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
525 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
526 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
527 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
528 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
529 * avr-tdep.c (avr_gdbarch_init): Ditto.
531 * arm-tdep.c (arm_gdbarch_init): Do not set
532 use_generic_dummy_frames, default is already 1.
533 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
534 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
535 * v850-tdep.c (v850_gdbarch_init): Ditto.
536 * sh-tdep.c (sh_gdbarch_init): Ditto.
537 * s390-tdep.c (s390_gdbarch_init): Ditto.
538 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
539 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
540 * mips-tdep.c (mips_gdbarch_init): Ditto.
541 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
542 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
543 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
544 * i386-tdep.c (i386_gdbarch_init): Ditto.
545 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
546 * frv-tdep.c (frv_gdbarch_init): Ditto.
547 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
548 * cris-tdep.c (cris_gdbarch_init): Ditto.
549 * avr-tdep.c (avr_gdbarch_init): Ditto.
551 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
552 call_dummy_location, default is already AT_ENTRY_POINT.
553 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
554 * v850-tdep.c (v850_gdbarch_init): Ditto.
555 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
556 * sh-tdep.c (sh_gdbarch_init): Ditto.
557 * s390-tdep.c (s390_gdbarch_init): Ditto.
558 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
559 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
560 * mips-tdep.c (mips_gdbarch_init): Ditto.
561 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
562 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
563 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
564 * i386-tdep.c (i386_gdbarch_init): Ditto.
565 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
566 * frv-tdep.c (frv_gdbarch_init): Ditto.
567 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
568 * cris-tdep.c (cris_gdbarch_init): Ditto.
569 * avr-tdep.c (avr_gdbarch_init): Ditto.
570 * arm-tdep.c (arm_gdbarch_init): Ditto.
571 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
575 * frame.h: Update comments on set_current_frame, create_new_frame,
576 flush_cached_frames, reinit_frame_cache, select_frame and
581 * config/z8k/tm-z8k.h (PC_IN_CALL_DUMMY): Update definition to use
582 deprecated pc_in_call_dummy function.
583 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Ditto.
584 * config/sparc/tm-sp64.h (PC_IN_CALL_DUMMY): Ditto.
585 * config/pa/tm-hppa.h (PC_IN_CALL_DUMMY): Ditto.
586 * config/mn10200/tm-mn10200.h (PC_IN_CALL_DUMMY): Ditto.
587 * config/h8500/tm-h8500.h (PC_IN_CALL_DUMMY): Ditto.
591 * Makefile.in: Remove Tix dependencies.
592 * acinclude.m4: Ditto.
594 * configure.in: Ditto.
595 * configure: Regenerated.
599 * gdbarch.sh (TARGET_FLOAT_FORMAT): Print the float format name.
600 (TARGET_DOUBLE_FORMAT, TARGET_LONG_DOUBLE_FORMAT): Ditto.
601 * gdbarch.c: Re-generate.
605 * config/h8500/tm-h8500.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
606 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
607 (PC_IN_CALL_DUMMY): Define as pc_in_call_dummy_on_stack.
608 * config/mn10200/tm-mn10200.h (PC_IN_CALL_DUMMY): Define as
609 pc_in_call_dummy_at_entry_point.
610 * config/pa/tm-hppa.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
611 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
612 (PC_IN_CALL_DUMMY): Define as pc_in_call_dummy_on_stack.
613 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Delete undefine.
614 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Define as
615 pc_in_call_dummy_on_stack.
616 * config/sparc/tm-sp64.h (PC_IN_CALL_DUMMY): Redefine as
617 pc_in_call_dummy_at_entry_point and pc_in_call_dummy_on_stack.
618 * config/z8k/tm-z8k.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
619 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
620 (PC_IN_CALL_DUMMY): Defile as pc_in_call_dummy_on_stack.
624 * inferior.h (deprecated_pc_in_call_dummy_before_text_end): Rename
625 pc_in_call_dummy_before_text_end
626 (deprecated_pc_in_call_dummy_after_text_end): Rename
627 pc_in_call_dummy_after_text_end.
628 (deprecated_pc_in_call_dummy_on_stack): Rename
629 pc_in_call_dummy_on_stack.
630 (deprecated_pc_in_call_dummy_at_entry_point): Rename
631 pc_in_call_dummy_at_entry_point.
632 * m68k-tdep.c (m68k_gdbarch_init): Update.
633 * s390-tdep.c (s390_gdbarch_init): Update.
634 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
635 * vax-tdep.c (vax_gdbarch_init): Update.
636 * sparc-tdep.c (sparc_gdbarch_init): Update.
637 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
638 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
639 * i386-tdep.c (i386_gdbarch_init): Update.
640 * frv-tdep.c (frv_gdbarch_init): Update.
641 * cris-tdep.c (cris_gdbarch_init): Update.
642 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Update.
643 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
644 (deprecated_pc_in_call_dummy_after_text_end)
645 (deprecated_pc_in_call_dummy_on_stack)
646 (deprecated_pc_in_call_dummy_at_entry_point): Update.
647 * alpha-tdep.c (alpha_gdbarch_init): Update.
651 * acconfig.h (HAVE_PREAD64): Add.
652 * configure.in: Check for pread64.
653 * config.in: Regenerated.
654 * configure: Regenerated.
655 * lin-lwp.c (lin_lwp_xfer_memory): Call linux_proc_xfer_memory.
656 * linux-proc.c (linux_proc_xfer_memory): New function.
657 * config/nm-linux.h (linux_proc_xfer_memory): Add prototype.
661 * dwarf2read.c (scan_partial_symbols): Descend into namespace
666 * MAINTAINERS: Mark h8500 as broken. Breakage occured Fri Nov 5
671 * symfile.c (init_objfile_sect_indices): New function.
672 (default_symfile_offsets): Move the section-index-initializing
673 stuff into init_objfile_sect_indices, and call that.
675 * symtab.h (SIZEOF_N_SECTION_OFFSETS): New macro.
676 (SIZEOF_SECTION_OFFSETS): Use SIZEOF_N_SECTION_OFFSETS.
678 * symfile.c (syms_from_objfile): Adjust indentation.
680 * symfile.c (symbol_file_add): Flush gdb_stdout even if from_tty
681 || info_verbose isn't true.
685 * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Change
686 default to get_frame_base.
687 * gdbarch.h, gdbarch.c: Regenerate.
688 * arch-utils.c (default_frame_address): Delete function.
689 * arch-utils.h (default_frame_address): Delete declaration
693 * varobj.c (find_frame_addr_in_frame_chain):
694 Use get_frame_base instead of FRAME_FP,
699 * frame.h (FRAME_FP): Delete macro.
700 (get_frame_base): New function declaration.
701 * frame.c (get_frame_base): New function.
702 (get_frame_id): Use ->frame.
703 (frame_find_by_id): Rewrite to use get_frame_id.
704 * blockframe.c: Use get_frame_base instead of FRAME_FP.
705 * cris-tdep.c, d10v-tdep.c, findvar.c, h8500-tdep.c: Ditto.
706 * hppa-tdep.c, i386-tdep.c, infcmd.c, infrun.c: Ditto.
707 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
708 * mn10200-tdep.c, mn10300-tdep.c, rs6000-tdep.c: Ditto.
709 * sh-tdep.c, sparc-tdep.c, stack.c, tracepoint.c: Ditto.
710 * v850-tdep.c, valops.c, z8k-tdep.c: Ditto.
714 * arm-tdep.c (arm_gdbarch_init): Do not set get_saved_register.
718 * frame.c (set_unwind_by_pc): Revert change below, use
720 (get_prev_frame): Ditto.
724 * dummy-frame.c (pc_in_dummy_frame): New function.
725 (generic_pc_in_call_dummy): Call pc_in_dummy_frame.
726 (find_dummy_frame): Update comment.
727 (generic_pop_current_frame): Use get_frame_type.
728 * dummy-frame.h (pc_in_dummy_frame): Declare.
729 * frame.c (set_unwind_by_pc): Use pc_in_dummy_frame.
730 (create_new_frame): Use pc_in_dummy_frame.
731 (get_prev_frame): Use pc_in_dummy_frame.
732 (frame_saved_regs_register_unwind): Use get_prev_frame.
733 (deprecated_generic_get_saved_register): Use get_prev_frame.
737 * blockframe.c (find_frame_addr_in_frame_chain): Move function
739 * varobj.c (find_frame_addr_in_frame_chain): ... to here.
740 (varobj_create): Note that frame ID should be used.
741 * frame.h (find_frame_addr_in_frame_chain): Delete declaration.
745 * breakpoint.c: Include "gdb_assert.h".
746 (deprecated_frame_in_dummy): Assert that generic dummy frames are
748 * Makefile.in (breakpoint.o): Update dependencies.
749 * ada-lang.c (find_printable_frame): Use get_frame_type instead of
750 deprecated_frame_in_dummy.
751 * stack.c (print_frame_info_base): Ditto.
753 (print_frame_info_base): Ditto. Delete dead code.
757 * Makefile.in (m68k_tdep_h): Define.
758 (abug-rom.o, cpu32bug-rom.o, dbug-rom.o, m68k-tdep.o, m68klinux-nat.o)
759 (remote-est.o, rom68k-rom.o): Add $(m68k_tdep_h).
760 * m68k-tdep.c: Move register number enum ...
761 * m68k-tdep.h: ... to this new file and rename the constants from
762 E_* to M68K_*. All uses changed.
763 * config/m68k/tm-m68k.h (D0_REGNUM, A0_REGNUM): Remove definitions.
764 * abug-rom.c: Include "m68k-tdep.h". Use
765 M68K_D0_REGNUM/M68K_A0_REGNUM instead of D0_REGNUM/A0_REGNUM.
766 * cpu32bug-rom.c: Likewise.
767 * dbug-rom.c: Likewise.
768 * m68k-tdep.c: Likewise.
769 * m68klinux-nat.c: Likewise.
770 * remote-est.c: Likewise.
771 * rom68k-rom.c: Likewise.
772 * config/m68k/tm-linux.h: Likewise.
776 * arm-tdep.c (arm_gdbarch_init): Remove old style non-generic
777 dummy frame initialization code.
778 * mips-tdep.c (mips_gdbarch_init): Ditto.
782 * win32-nat.c (child_attach): Reset saw_create counter or subsequent
787 * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Default
788 to default_frame_address.
789 * gdbarch.h, gdbarch.c: Re-generate.
791 * d10v-tdep.c (d10v_gdbarch_init): Do not set frame_args_address
792 or frame_locals_address to default_frame_address.
793 * m68k-tdep.c (m68k_gdbarch_init): Update.
794 * i386-tdep.c (i386_gdbarch_init): Update.
795 * frv-tdep.c (frv_gdbarch_init): Update.
796 * sh-tdep.c (sh_gdbarch_init): Update.
797 * v850-tdep.c (v850_gdbarch_init): Update.
798 * sparc-tdep.c (sparc_gdbarch_init): Update.
799 * mips-tdep.c (mips_gdbarch_init): Update.
800 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
801 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
802 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
804 * cris-tdep.c (cris_frame_args_address): Delete function.
805 (cris_frame_locals_address): Delete function.
806 (cris_gdbarch_init): Do not set frame_args_address or
807 frame_locals_address.
811 * thread-db.c (thread_db_load): Tell the user what's going on
812 if dlopen fails on libthread_db.
816 * m68k-tdep.c (m68k_register_virtual_type): Use architecture
817 invariant return values.
821 * valops.c (value_slice): Move declaration of `offset' to avoid
826 * win32-nat.c (psapi_get_dll_name): Fix a compiler warning.
827 (struct so_stuff): Add end_addr field.
828 (register_loaded_dll): Calculate and store end address of loaded dll.
829 (solib_address): New function.
830 (child_solib_loaded_library_pathname): Pass carefully constructed
831 section info to safe_symbol_file_add rather than ignoring it.
832 (get_child_debug_event): Call re_enable_breakpoints_in_shlibs when a
834 (do_initial_child_stuff): Call disable_breakpoints_in_shlibs.
835 (child_create_inferior): Fix a compiler warning.
836 * config/i386/tm-cygwin.h (PC_SOLIB): Define new macro.
837 (solib_address): Declare new function.
841 * m68k-tdep.c (m68k_register_virtual_type): Return int for SR, FPC
846 * maint.c (_initialize_maint_cmds): Fix typo. From
851 * mips-tdep.c (mips_dump_tdep): Delete references to
852 GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
853 * config/mips/tm-mips.h (GDB_TARGET_MASK_DISAS_PC): Delete macro.
854 (GDB_TARGET_UNMASK_DISAS_PC): Delete macro.
855 * printcmd.c (build_address_symbolic): Delete calls to
856 GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
857 (address_info): Ditto.
863 * completer.c (skip_quoted_chars): Renamed from skip_chars. Add
864 the ability to explicitly specify the quote characters and word
865 break characters; if NULL is specified for either, use the old
866 behavior of using the characters used by the completer.
867 (skip_chars): New function. Convenience wrapper around
868 skip_quoted_chars to provide the original skip_chars behavior.
869 * completer.h (skip_quoted_chars): Add prototype.
873 Problems reported by Paul Eggert.
874 * gdbarch.sh: Use `sort -k 3`. Fix PR gdb/527.
878 * m68klinux-nat.c (IS_SIGTRAMP, IS_RT_SIGTRAMP)
879 (m68k_linux_in_sigtramp, SIGCONTEXT_PC_OFFSET)
880 (UCONTEXT_PC_OFFSET, m68k_linux_sigtramp_saved_pc)
881 (m68k_linux_frame_saved_pc): Move to ...
882 * m68klinux-tdep.c: ... here. New file.
883 * Makefile.in (m68klinux-tdep.o): Add dependencies.
884 * config/m68k/linux.mt (TDEPFILES): Add m68klinux-tdep.o.
888 * objc-exp.y: Revert to old skip_quoted usage.
892 * Makefile.in (SFILES): Add objc-exp.y objc-lang.c.
893 (objc_lang_h): Define.
894 (YYFILES): Add objc-exp.tab.c.
895 (local-maintainer-clean): Remove objc-exp.tab.c.
896 (objc-exp.tab.c, objc-exp.tab.o, objc-lang.o): New target.
900 * p-exp.y (typecast rule): Add automatic dereference of
901 pascal classes if needed.
902 (THIS): Set current_type.
903 Automatically dereference pascal classes.
904 (typebase rule): Add ^typebase recognition.
908 * expprint.c (print_subexp): Handle OP_OBJC_NSSTRING,
909 OP_OBJC_MSGCALL, and OP_OBJC_SELF.
910 (op_name): Handle OP_OBJC_SELF.
911 * Makefile.in (expprint.o): Add additional depends.
915 * expression.h: Rename ObjC ops to OP_OBJC_MSGCALL,
916 OP_OBJC_SELECTOR, OP_OBJC_NSSTRING, and OP_OBJC_SELF.
917 * parse.c (length_of_subexp, prefixify_subexp): Likewise.
918 * objc-exp.y: Likewise.
922 * gdb/parser-defs.h: (struct objc_class_str): New structure
923 for parsing ObjC classes.
927 * stack.c (frame_relative_level): Copy function from here ...
928 * frame.c (frame_relative_level): ...to here.
932 * frame.h (enum frame_type): Define.
933 (get_frame_type): Declare.
934 (struct frame_info): Add field `type'. Delete field
935 signal_handler_caller.
936 (deprecated_set_frame_signal_handler_caller): Declare.
937 * frame.c (get_frame_type): New function.
938 (deprecated_set_frame_type): New function.
939 (create_new_frame): Set the frame's type.
940 (get_prev_frame): Similar.
941 * sparc-tdep.c: Use get_frame_type instead of signal_handler_caller.
942 * s390-tdep.c: Ditto.
943 * m68klinux-nat.c: Ditto.
944 * ns32k-tdep.c: Ditto.
945 * x86-64-linux-tdep.c: Ditto.
947 * rs6000-tdep.c: Ditto.
948 * ppc-linux-tdep.c: Ditto.
949 * i386-interix-tdep.c: Ditto.
950 * mips-tdep.c: Ditto.
951 * m68k-tdep.c: Ditto.
952 * hppa-tdep.c: Ditto.
953 * ia64-tdep.c: Ditto.
954 * cris-tdep.c: Ditto.
956 * alpha-tdep.c: Ditto.
957 * i386-tdep.c: Ditto.
960 * blockframe.c: Update.
961 * i386-interix-tdep.c (i386_interix_back_one_frame): Use
962 deprecated_set_frame_type instead of signal_handler_caller.
963 * ppc-linux-tdep.c (ppc_linux_init_extra_frame_info): Ditto.
964 * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
965 * breakpoint.h: Delete FIXME suggesting get_frame_type.
969 * Makefile.in (buildsym.o): Add dependency for gdb_assert.h.
973 * buildsym.c (pop_context): Add comment.
977 * buildsym.h (pop_context): Convert to function, defined in
979 * buildsym.c: Include gdb_assert.h.
980 (pop_context): Implement as C function. Add check for stack
982 * dbxread.c (process_one_symbol): Complain and stop processing
983 that symbol if we are already at the top of the context stack for
984 a function-end N_FUN (this would imply an umatched RBRAC). Ditto
985 when processing N_RBRAC.
989 * config/pa/nm-hppah.h (CHILD_POST_FOLLOW_INFERIOR_BY_CLONE): Don't
991 (struct target_waitstatus): Add opaque definition.
992 * corelow.c (init_core_ops): Don't set to_clone_and_follow_inferior.
993 * exec.c (init_exec_ops): Likewise.
994 * fork-child.c (clone_and_follow_inferior): Remove.
995 * hppah-nat.c (child_post_follow_inferior_by_clone): Remove.
996 * inferior.h (clone_and_follow_inferior): Remove prototype.
997 * infrun.c (follow_fork_mode_both): Remove.
998 (follow_fork_mode_kind_names): Remove commented out "both".
999 (follow_inferior_fork): Remove follow_fork_mode_both support.
1000 * inftarg.c (child_clone_and_follow_inferior): Remove.
1001 (child_post_follow_inferior_by_clone): Remove.
1002 (init_child_ops): Don't set to_clone_and_follow_inferior
1003 or to_post_follow_inferior_by_clone.
1004 * target.c (default_clone_and_follow_inferior): Remove.
1005 (cleanup_target): Don't set to_clone_and_follow_inferior
1006 or to_post_follow_inferior_by_clone.
1007 (find_default_clone_and_follow_inferior): Remove.
1008 (init_dummy_target): Don't set to_clone_and_follow_inferior.
1009 (debug_to_clone_and_follow_inferior): Remove.
1010 (debug_to_post_follow_inferior_by_clone): Remove.
1011 (setup_target_debug): Don't set to_clone_and_follow_inferior
1012 or to_post_follow_inferior_by_clone.
1013 * target.h (struct target_ops): Remove to_clone_and_follow_inferior
1014 and to_post_follow_inferior_by_clone.
1015 (child_clone_and_follow_inferior): Remove prototype.
1016 (child_post_follow_inferior_by_clone): Remove prototype.
1017 (target_clone_and_follow_inferior): Remove macro.
1018 (target_post_follow_inferior_by_clone): Remove macro.
1019 (find_default_clone_and_follow_inferior): Remove prototype.
1023 * breakpoint.c (bpstat_stop_status): Call inferior_has_forked,
1024 inferior_has_vforked, and inferior_has_execd instead of
1025 target_has_forked, target_has_vforked, and target_has_execd.
1026 * config/pa/nm-hppah.h (CHILD_HAS_FORKED, CHILD_HAS_VFORKED)
1027 (CHILD_HAS_EXECD, CHILD_HAS_SYSCALL_EVENT): Don't define.
1028 (CHILD_WAIT): Define.
1029 (child_wait): Add prototype.
1030 * hppah-nat.c (hpux_has_forked): Rename from child_has_forked.
1032 (hpux_has_vforked): Likewise, from child_has_vforked.
1033 (hpux_has_execd): Likewise, from child_has_execd.
1034 (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
1035 (not_same_real_pid, child_wait): New, copied from inftarg.c.
1036 Call hpux_has_forked, hpux_has_vforked, hpux_has_execd,
1037 and hpux_has_syscall_event instead of the target hooks.
1038 * infrun.c (inferior_has_forked, inferior_has_vforked)
1039 (inferior_has_execd): New functions.
1040 * inftarg.c (not_same_real_pid): Remove.
1041 (child_wait): Remove references to not_same_real_pid,
1042 target_has_forked, target_has_vforked, target_has_execd,
1043 and target_has_syscall_event.
1044 (child_has_forked, child_has_vforked, child_has_execd)
1045 (child_has_syscall_event): Remove.
1046 (init_child_ops): Remove references to child_has_forked,
1047 child_has_vforked, child_has_execd, and child_has_syscall_event.
1048 * infttrace.c (hpux_has_forked): Rename from child_has_forked.
1049 (hpux_has_vforked): Likewise, from child_has_vforked.
1050 (hpux_has_execd): Likewise, from child_has_execd.
1051 (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
1052 * target.c (cleanup_target): Remove references to
1053 to_has_forked, to_has_vforked, to_has_execd, and
1054 to_has_syscall_event.
1055 (update_current_target): Likewise.
1056 (setup_target_debug): Likewise.
1057 (debug_to_has_forked): Remove.
1058 (debug_to_has_vforked): Remove.
1059 (debug_to_has_execd): Remove.
1060 (debug_to_has_syscall_event): Remove.
1061 * target.h (struct target_ops): Remove to_has_forked.
1062 to_has_vforked, to_has_execd, and to_has_syscall_event.
1063 (child_has_forked, child_has_vforked, child_has_execd)
1064 (child_has_syscall_event): Remove prototypes.
1065 (inferior_has_forked, inferior_has_vforked, inferior_has_execd): Add
1067 (target_has_forked, target_has_vforked, target_has_execd)
1068 (target_has_syscall_event): Remove macros.
1072 * hppah-nat.c (child_can_follow_vfork_prior_to_exec): Remove.
1073 * inftarg.c (child_can_follow_vfork_prior_to_exec): Remove.
1074 (init_child_ops): Don't initialize to_can_follow_vfork_prior_to_exec.
1075 * infttrace.c (child_can_follow_vfork_prior_to_exec): Remove.
1076 * target.c (cleanup_target): Remove reference to
1077 to_can_follow_vfork_prior_to_exec.
1078 (update_current_target): Likewise.
1079 (debug_to_can_follow_vfork_prior_to_exec): Remove.
1080 (setup_target_debug): Remove reference to
1081 to_can_follow_vfork_prior_to_exec.
1082 * target.h (struct target_ops): Remove
1083 to_can_follow_vfork_prior_to_exec.
1084 (child_can_follow_vfork_prior_to_exec): Remove prototype.
1085 (target_can_follow_vfork_prior_to_exec): Remove definition.
1086 * config/pa/nm-hppah.h (CHILD_CAN_FOLLOW_VFORK_PRIOR_TO_EXEC): Don't
1088 * infrun.c (follow_vfork_when_exec): Remove.
1089 (follow_inferior_fork): Remove references to follow_vfork_when_exec.
1090 (follow_exec): Likewise.
1091 (handle_inferior_event): Likewise.
1092 (keep_going): Likewise.
1096 * frame.c (generic_unwind_get_saved_register): Make static.
1097 * frame.h (generic_unwind_get_saved_register): Delete declaration.
1098 * avr-tdep.c (avr_gdbarch_init): Do not set get_saved_register,
1099 defaults to generic_unwind_get_saved_register.
1100 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1101 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1102 * frv-tdep.c (frv_gdbarch_init): Ditto.
1103 * i386-tdep.c (i386_gdbarch_init): Ditto.
1104 * s390-tdep.c (s390_gdbarch_init): Ditto.
1105 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1106 * v850-tdep.c (v850_gdbarch_init): Ditto.
1107 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1108 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1109 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Delete macro.
1113 * x86-64-linux-nat.c (i386_sse_regnum_p): New function. Copy from
1118 * frame.h (sigtramp_saved_pc): Delete declaration.
1119 * blockframe.c (sigtramp_saved_pc): Delete function.
1120 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): New function.
1121 (ns32k_frame_saved_pc): Call ns32k_sigtramp_saved_pc.
1122 * vax-tdep.c (vax_sigtramp_saved_pc): New function.
1123 (vax_frame_saved_pc): Call vax_sigtramp_saved_pc.
1127 * frame.c (frame_pc_unwind): New function.
1128 (frame_saved_regs_pc_unwind): New function.
1129 (frame_register_unwind): Pass unwind_cache instead of
1130 register_unwind_cache.
1131 (set_unwind_by_pc): Add unwind_pc parameter, set.
1132 (create_new_frame): Pass frame->pc_unwind to set_unwind_by_pc.
1133 (get_prev_frame): Ditto.
1134 * frame.h (frame_pc_unwind_ftype): Declare.
1135 (struct frame_info): Add pc_unwind, pc_unwind_cache_p and
1136 pc_unwind_cache. Rename register_unwind_cache to unwind_cache.
1137 (frame_pc_unwind): Declare.
1138 * dummy-frame.c (dummy_frame_pc_unwind): New function.
1139 (struct dummy_frame): Add comment mentioning that values are for
1141 * dummy-frame.h (dummy_frame_pc_unwind): Declare.
1142 * blockframe.c (file_frame_chain_valid): Use frame_pc_unwind.
1143 (generic_file_frame_chain_valid): Ditto.
1144 * stack.c (frame_info): Ditto.
1148 * linespec.c (locate_first_half): New function.
1149 (decode_line_1): Move code into locate_first_half.
1153 * complaints.h: Add comment explaining how to eliminate a
1154 deprecated_complain call.
1155 * complaints.h: Fix spelling errors.
1159 * printcmd.c: Remove #include "disasm.h".
1163 * frame.h: Move the most relevant interface functions to the start
1168 * regcache.h (deprecated_registers): Rename registers.
1169 * a68v-nat.c, alpha-nat.c, arch-utils.c, core-sol2.c: Update.
1170 * hp300ux-nat.c, hppab-nat.c, hppah-nat.c: Update.
1171 * hppam3-nat.c, hpux-thread.c, i386gnu-nat.c: Update.
1172 * ia64-aix-nat.c, ia64-linux-nat.c, ia64-tdep.c: Update.
1173 * irix4-nat.c, irix5-nat.c, lynx-nat.c, m68k-tdep.c: Update.
1174 * m68knbsd-nat.c, mips-linux-tdep.c, mipsm3-nat.c: Update.
1175 * mipsv4-nat.c, ns32knbsd-nat.c, ppc-bdm.c: Update.
1176 * ppc-sysv-tdep.c, ptx4-nat.c, regcache.c, remote-es.c: Update.
1177 * remote-sds.c, remote-vx68.c, remote-vxmips.c: Update.
1178 * remote-vxsparc.c, rs6000-tdep.c, sol-thread.c: Update.
1179 * sparc-nat.c, sparc-tdep.c, sun3-nat.c, symm-nat.c: Update.
1180 * v850ice.c: Update.
1184 * utils.c (gdb_realpath): Add comment mentioning realpath with a
1189 * regcache.h (deprecated_read_register_bytes): Rename
1190 read_register_bytes.
1191 (deprecated_write_register_bytes): Rename write_register_bytes.
1192 * alpha-tdep.c, arm-tdep.c, cris-tdep.c, d10v-tdep.c: Update.
1193 * dwarf2cfi.c, frv-tdep.c, hppa-tdep.c, ia64-tdep.c: Update.
1194 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Update.
1195 * ns32k-tdep.c, regcache.c, remote-sds.c, remote-vx.c: Update.
1196 * remote.c, rs6000-tdep.c, s390-tdep.c, sh-tdep.c: Update.
1197 * sparc-tdep.c, v850-tdep.c, vax-tdep.c, x86-64-tdep.c: Update.
1198 * xstormy16-tdep.c, z8k-tdep.c, config/nm-gnu.h: Update.
1199 * config/nm-m3.h, config/h8500/tm-h8500.h: Update.
1200 * config/i386/nm-ptx4.h, config/i386/nm-symmetry.h: Update.
1201 * config/m32r/tm-m32r.h, config/m68k/nm-sun3.h: Update.
1202 * config/m68k/tm-delta68.h, config/m68k/tm-linux.h: Update.
1203 * config/mn10200/tm-mn10200.h, config/pa/tm-hppa64.h: Update.
1204 * config/sparc/nm-nbsd.h, config/sparc/nm-sun4os4.h: Update.
1205 * config/sparc/nm-sun4sol2.h, config/sparc/tm-sparclet.h: Update.
1209 * findvar.c (read_var_value): Doc fix.
1213 * regcache.c (struct regcache): Replace passthough_p with
1215 (regcache_xmalloc): Initialize readonly_p.
1216 (build_regcache): Initialize readonly_p.
1217 (regcache_save): New function.
1218 (regcache_restore): New function.
1219 (regcache_cpy): Re-implement using regcache_save and
1221 (regcache_raw_read): Update.
1222 (regcache_cooked_read): When a read-only cache, checked for cached
1223 pseudo register values.
1224 (regcache_raw_write): Assert that the cache is not read-only.
1225 Remove code handling a non-passthrough cache.
1226 * regcache.h (regcache_save): Declare.
1227 (regcache_restore): Declare.
1231 * regcache.c (struct regcache_descr): Add fields
1232 sizeof_cooked_registers and sizeof_cooked_register_valid_p.
1233 (init_legacy_regcache_descr): Compute the size of a cooked
1234 register cache and then assign that to sizeof_raw_registers. Set
1235 sizeof_raw_register_valid_p to sizeof_cooked_register_valid_p
1236 (init_legacy_regcache_descr): Ditto.
1240 * regcache.c (register_buffer): Move to near start of file, update
1242 (regcache_raw_read): Use.
1243 (regcache_raw_write): Use.
1244 (struct regcache): Rename raw_registers to registers and
1245 raw_register_valid_p to register_valid_p.
1246 (regcache_xmalloc): Update.
1247 (regcache_xfree): Update.
1248 (register_buffer): Update.
1249 (regcache_cpy): Update.
1250 (regcache_cpy_no_passthrough): Update.
1251 (regcache_valid_p): Update.
1252 (deprecated_grub_regcache_for_registers): Update.
1253 (deprecated_grub_regcache_for_register_valid): Update.
1254 (set_register_cached): Update.
1255 (regcache_raw_write): Update.
1259 * p-exp.y (name_not_typename): Use copy_name to
1260 set current_type variable for fields of THIS.
1264 * gnu-nat.c (init_gnu_ops): Remove NULL initializations.
1265 * monitor.c (init_base_monitor_ops): Likewise.
1266 * ppc-bdm.c (init_bdm_ppc_ops): Likewise.
1267 * remote-array.c (init_array_ops): Likewise.
1268 * remote-e7000.c (init_e7000_ops): Likewise.
1269 * remote-es.c (init_es1800_ops): Likewise.
1270 (init_es1800_child_ops): Likewise.
1271 * remote-rdp.c (init_remote_rdp_ops): Likewise.
1272 * remote-sim.c (init_gdbsim_ops): Likewise.
1273 * remote-st.c (init_st2000_ops): Likewise.
1274 * sol-thread.c (init_sol_core_ops): Likewise.
1275 (init_sol_thread_ops): Likewise.
1276 * v850ice.c (init_850ice_ops): Likewise.
1277 * win32-nat.c (init_child_ops): Likewise.
1278 * wince.c (init_child_ops): Likewise.
1282 * utils.c (gdb_realpath): Make rp a constant pointer.
1286 * utils.c (gdb_realpath): Rewrite. Try, in order: realpath() with
1287 a constant buffer; cannonicalize_file_name(); realpath() with a
1288 pathconf() defined buffer, xstrdup().
1292 * config/djgpp/fnchange.lst: Fix typo, hang1.c to hang1.C; hang2.c
1293 to hang2.C; hang3.c to hang3.C.
1297 * findvar.c (read_var_value): Reenable TLS code.
1302 * gdb_thread_db.h (enum): Add TD_NOTALLOC.
1303 * target.c (update_current_target): Add
1304 to_get_thread_local_address.
1305 * target.h (to_get_thread_local_address): Export.
1306 (target_get_thread_local_address): Define.
1307 (target_get_thread_local_address_p): Define.
1308 * thread-db.c: Include solib-svr4.h.
1309 (td_thr_tls_get_addr_p): Define.
1310 (thread_db_load): Get a pointer to td_thr_tls_get_addr.
1311 (thread_db_get_thread_local_address): New function.
1312 (init_thread_db_ops): Initialize to_get_thread_local_address.
1313 * configure.in: Add test for TD_NOTALLOC in thread_db.h.
1314 * configure: Regenerate.
1315 * config.in: Regenerate.
1319 * linespec.c (set_flags): New function.
1320 (decode_line_1): Move code into set_flags.
1324 * linespec.c (decode_line_1): Move chunks of code to separate
1326 (initialize_defaults): New function.
1327 (decode_indirect): New function.
1331 * blockframe.c (sigtramp_saved_pc): Fix tipo. void_func_ptr
1332 instead of void_code_ptr.
1333 (sigtramp_saved_pc): Ditto.
1335 * x86-64-tdep.c (i386_fp_regnum_p): Copy i386-tdep.c's
1340 * gdbtypes.h (struct main_type): Move artificial flag out of
1341 loc. New member of ``struct field'' named static_kind. Reduce
1342 overloaded meaning of bitsize.
1343 (FIELD_ARTIFICIAL, SET_FIELD_PHYSNAME, SET_FIELD_PHYSADDR)
1344 (TYPE_FIELD_STATIC, TYPE_FIELD_STATIC_HAS_ADDR): Likewise.
1345 (FIELD_STATIC_KIND, TYPE_FIELD_STATIC_KIND): New macros.
1347 * ada-lang.c (fill_in_ada_prototype): Initialize static_kind for
1349 (template_to_fixed_record_type, template_to_static_fixed_type)
1350 (to_record_with_fixed_variant_part): Likewise.
1351 * coffread.c (coff_read_struct_type, coff_read_enum_type): Likewise.
1352 * dwarf2read.c (dwarf2_add_field, read_enumeration): Likewise.
1353 * dwarfread.c (struct_type, enum_type): Likewise.
1354 * hpread.c (hpread_read_enum_type)
1355 (hpread_read_function_type, hpread_read_doc_function_type)
1356 (hpread_read_struct_type): Likewise.
1357 * mdebugread.c (parse_symbol): Likewise.
1361 * breakpoint.h (deprecated_frame_in_dummy): Rename frame_in_dummy.
1362 * stack.c (print_frame_info_base): Update.
1363 (print_frame_info_base, frame_info): Update.
1364 * sparc-tdep.c (sparc_init_extra_frame_info): Update.
1365 (sparc_frame_saved_pc): Update.
1366 * ada-lang.c (find_printable_frame): Update.
1367 * breakpoint.c (deprecated_frame_in_dummy): Update.
1371 * i386-linux-nat.c (ORIG_EAX): Define to -1 if not already
1373 (regmap): Extend to cover all registers.
1374 (PT_READ_U, PT_WRITE_U, PTRACE_XFER_TYPE,
1375 OLD_CANNOT_FETCH_REGISTERS, OLD_CANNOT_STORE_REGISTERS): Remove
1377 (fetch_register, sore_register): Simplify.
1378 (old_fetch_inferior_registers, old_store_inferior_registers):
1380 (cannot_fetch_register, cannot_store_register): Change
1381 implementation to use regmap array to decide which registers
1382 cannot be fetched/stored. This removes $orig_eax from the
1383 registers that cannot be fetched/stored.
1384 (fetch_inferior_registers): Call fetch_register directly instead
1385 of calling old_fetch_inferior_registers.
1386 (store_inferior_registers): Call store_register directly instead
1387 of calling old_store_inferior_registers.
1388 (i386_linux_dr_get): Replace PT_READ_U with PTRACE_PEEKUSER.
1389 (i386_linux_dr_set): Replace PT_WRITE_U with PTRACE_POKEUSER.
1390 * config/i386/nm-linux.h (U_REGS_OFFSET): Remove definition.
1394 * i387-tdep.c (i387_supply_register): When called with NULL as a
1395 buffer, mark the register as not provided (to mirror the behavior
1396 of supply_register).
1397 (i387_supply_fxsave): Ditto.
1398 (i387_supply_fsave): Ditto (inherits the behavior from
1399 i387_supply_register).
1403 * blockframe.c (sigtramp_saved_pc): Use
1404 builtin_type_void_code_ptr, not builtin_type_void_data_ptr (we are
1405 extracting the PC). Use TYPE_LENGTH (builtin_type_void_code_ptr)
1406 instead of (TARGET_PTR_BIT / TARGET_CHAR_BIT).
1410 * frame.c (get_prev_frame): Test prev_p to identify a previously
1411 unwound frame. Initialize prev_p.
1412 * frame.h (struct frame_info): Add field prev_p. Expand prev/next
1417 * frame.c (get_prev_frame): Cleanups. Eliminate redundant tests
1418 for a NULL NEXT_FRAME. Simplify fromleaf initialization. Add
1419 more comments. Zap dead code.
1423 * infcmd.c (print_vector_info, print_float_info): Move code that
1424 checks whether the target has any registers and whether there is a
1425 selected frame up, such that it is also used if a target provides
1426 multi-arch definitions of these functions.
1430 * Makefile.in (DESTDIR): Define.
1431 (install-only, install-gdbtk, uninstall-gdbtk): Add $(DESTDIR)
1434 * config/djgpp/fnchange.lst: 8.3 proof i386obsd-nat.c and
1435 i386obsd-tdep.c. Rename to "gdb.cxx", paths containing "gdb.c++".
1439 * i386-linux-tdep.c: Include "reggroups.h".
1440 (i386_linux_register_reggroup_p): New function.
1441 (i386_linux_init_abi): Set register_reggroup_p to
1442 i386_linux_register_reggroup_p.
1443 * i386-tdep.h (i386_register_reggroup_p): Declare.
1444 * i386-tdep.c: Include "reggroups.h".
1445 (i386_init_reggroups): New function.
1446 (i386_add_reggroups): New function.
1447 (i386_register_reggroup_p): New function.
1448 (i386_sse_reggroup, i386_mmx_reggroup): New variables.
1449 (_initialize_i386_tdep): Call i386_init_reggroups.
1450 (i386_gdbarch_init): Set register_reggroup_p and add in the i386
1455 * infptrace.c (child_xfer_memory): Make use of the new PT_IO
1456 request that's available in *BSD.
1458 * i386-tdep.h (IS_FPU_CTRL_REGNUM): Remove.
1460 * i387-tdep.c (i387_fill_fxsave): Use FOOFF_REGNUM instead of
1465 * frame.c (set_unwind_by_pc): Use dummy_frame_register_unwind.
1466 * dummy-frame.c (find_dummy_frame): Rename
1467 generic_find_dummy_frame, make static. Return the dummy frame
1468 instead of the regcache.
1469 (generic_find_dummy_frame): Re-implement using find_dummy_frame,
1470 (cached_find_dummy_frame): New function. Use find_dummy_frame.
1471 (dummy_frame_register_unwind): Rename
1472 generic_call_dummy_register_unwind. Use cached_find_dummy_frame.
1473 * dummy-frame.h (dummy_frame_register_unwind): Rename
1474 generic_call_dummy_register_unwind.
1478 * config/i386/tm-i386v42mp.h: Remove file. Move its contents,
1479 except the inclusion of "i386/tm-i386.h", to...
1480 * config/i386/nm-i386v42mp.h: ...here.
1481 * config/i386/i386v42mp.mt (TM_FILE): Set to tm-i386.h.
1485 * Makefile.in (frame.o): Update dependencies.
1486 * blockframe.c (current_frame, frame_obstack_alloc)
1487 (frame_saved_regs_zalloc, get_current_frame)
1488 (set_current_frame, create_new_frame)
1489 (set_unwind_by_pc, get_next_frame)
1490 (flush_cached_frames, reinit_frame_cache)
1491 (frame_saved_regs_register_unwind)
1492 (deprecated_generic_get_saved_register)
1493 (get_prev_frame, get_frame_pc, get_frame_saved_regs)
1494 (_initialize_blockframe): Move frame code from here...
1495 * frame.c: ...to here. Include "gdb_obstack.h", "gdbcore.h",
1496 "annotate.h" and "dummy-frame.h".
1497 (_initialize_frame): New function.
1501 * dwarf2read.c (read_func_scope): Restore list_in_scope properly
1502 when we finish a function a context.
1503 * buildsym.h (outermost_context_p): New macro.
1504 (Bug analyzed by David Edelsohn.)
1508 * blockframe.c: Include "dummy-frame.h".
1509 (struct dummy_frame, dummy_frame_stack)
1510 (generic_find_dummy_frame, deprecated_generic_find_dummy_frame)
1511 (generic_pc_in_call_dummy, deprecated_read_register_dummy)
1512 (generic_push_dummy_frame, generic_save_dummy_frame_tos)
1513 (generic_save_call_dummy_addr, generic_pop_current_frame)
1514 (generic_pop_dummy_frame, generic_fix_call_dummy)
1515 (generic_fix_call_dummy, generic_call_dummy_register_unwind): Move
1516 dummy frame code from here...
1517 * dummy-frame.c: ...to here. New file.
1518 * dummy-frame.h: New file.
1519 (generic_call_dummy_register_unwind): Declare.
1520 (generic_find_dummy_frame): Declare.
1521 * Makefile.in (SFILES): Add dummy-frame.c.
1522 (dummy-frame.o): Specify dependencies.
1523 (dummy_frame_h): Define.
1524 (COMMON_OBS): Add dummy-frame.o.
1525 (blockframe.o): Update dependencies.
1529 * dwarf2read.c (read_func_scope): Restore local_symbols and
1530 param_symbols after we finish the function context. (Based on a
1531 patch from David Edelsohn.)
1535 * linespec.c (symbol_found): New function.
1536 (minsym_found): New function.
1537 (decode_line_1): Separate out some code into separate functions.
1541 * i386-tdep.c (i386_frameless_signal_p): Make non static for
1542 the benefit of the interix target.
1543 * i386-tdep.h (i386_frameless_signal_p): Declare.
1547 * i386-tdep.h (i386_linux_orig_eax_regnum_p): Delete stray
1548 declaration that snuck in from change below.
1552 * i386-tdep.c (i386_mmx_regnum_p): Rename mmx_regnum_p. Update
1554 (i386_fp_regnum_p): New function. Use instead of FP_REGNUM_P.
1555 (i386_fpc_regnum_p): New function. Use instead of FPC_REGNUM_P.
1556 (i386_sse_regnum_p): New function. Use instead of SSE_REGNUM_P.
1557 (i386_mxcsr_regnum_p): new function. Use instead of
1559 * i386-tdep.h (SSE_REGNUM_P): Delete macro.
1560 (i386_sse_regnum_p): Declare.
1561 (i386_mxcsr_regnum_p): Declare.
1562 (FP_REGNUM_P, FPC_REGNUM_P): Delete macros.
1563 (i386_fp_regnum_p, i386_fpc_regnum_p): Declare.
1564 (IS_FP_REGNUM): Update definition.
1565 (IS_FPU_CTRL_REGNUM): Update definition..
1566 (IS_SSE_REGNUM): Update definition..
1567 * i386v-nat.c (register_u_addr): Update.
1568 * go32-nat.c (fetch_register): Update.
1569 (store_register): Update.
1573 Preparation work to convert the hppa targets to multiarch partial.
1575 * hppa-tdep.c: Add new functions replacing macro bodies from
1576 config/pa/tm-hppa.h. These function will be used to initialize
1577 the gdbarch structure. Import some comments from tm-hppa.h,
1578 and place them where appropriate, to avoid loosing them when
1579 we cleanup this file.
1580 (hppa_reg_struct_has_addr): New function.
1581 (hppa_inner_than): New function.
1582 (hppa_stack_align): New function.
1583 (hppa_pc_requires_run_before_use): New function.
1584 (hppa_instruction_nullified): New function.
1585 (hppa_register_byte): New function.
1586 (hppa_register_virtual_type): New function.
1587 (hppa_store_struct_return): New function.
1588 (hppa_cannot_store_register): New function.
1589 (hppa_frame_args_address): New function.
1590 (hppa_frame_locals_address): New function.
1591 (hppa_smash_text_address): New function.
1592 (hppa_coerce_float_to_double): New function. Requires the inclusion
1595 * Makefile.in (hppa-tdep.o): Add dependency on language.h.
1597 * tm-hppa.h (REG_STRUCT_HAS_ADDR): Change the definition of this
1598 gdbarch-eligible macro to a call to the new associated function
1599 created in hppa-tdep.c.
1600 (INNER_THAN): Likewise.
1601 (STACK_ALIGN): Likewise.
1602 (PC_REQUIRES_RUN_BEFORE_USE): Likewise.
1603 (INSTRUCTION_NULLIFIED): Likewise.
1604 (REGISTER_BYTE): Likewise.
1605 (REGISTER_VIRTUAL_TYPE): Likewise.
1606 (STORE_STRUCT_RETURN): Likewise.
1607 (CANNOT_STORE_REGISTER): Likewise.
1608 (FRAME_ARGS_ADDRESS): Likewise.
1609 (FRAME_LOCALS_ADDRESS): Likewise.
1610 (SMASH_TEXT_ADDRESS): Likewise.
1611 (COERCE_FLOAT_TO_DOUBLE): Likewise.
1612 (ABOUT_TO_RETURN): Delete, as no longer used.
1616 * printcmd.c (disassemble_command): Remove obsolete function.
1617 (_initialize_printcmd): Do not create disassemble command here.
1618 * cli/cli-cmds.c (disassemble_command): New function. Implements
1619 disassemble command.
1620 (init_cli_cmds): Create disassemble command here instead.
1624 * MAINTAINERS: Add Daniel Jacobowitz to global maintainers list.
1628 * regcache.h (regcache_cooked_read_using_offset_hack)
1629 (regcache_cooked_write_using_offset_hack): Delete declarations.
1630 (register_changed): Delete declaration.
1631 * regcache.c (regcache_cooked_read_using_offset_hack)
1632 (regcache_cooked_write_using_offset_hack): Delete functions.
1633 (cooked_xfer_using_offset_hack): Delete function.
1634 (register_changed): Delete function.
1638 * macroscope.c: #include "complaints.h".
1639 (sal_macro_scope): Cope with filenames that appear in the symtabs,
1640 but not in the macro table.
1641 * Makefile.in (macroscope.o): Record dependency.
1645 * PROBLEMS: Document gdb/816 (unable to read core file on alpha-osf).
1649 * regcache.c (deprecated_registers_fetched): Update.
1650 * regcache.h (deprecated_registers_fetched): Rename
1652 * remote-vxsparc.c (vx_read_register): Update.
1653 * remote-vxmips.c (vx_read_register): Update.
1654 * remote-vx68.c (vx_read_register): Update.
1655 * irix5-nat.c (fetch_core_registers): Update.
1656 * mipsm3-nat.c (fetch_inferior_registers): Update.
1657 * sun3-nat.c (fetch_inferior_registers): Update.
1658 * symm-nat.c (fetch_inferior_registers): Update.
1659 * ns32knbsd-nat.c (fetch_inferior_registers): Update.
1660 (fetch_core_registers): Update.
1661 (fetch_kcore_registers): Update.
1662 * mips-nat.c (fetch_inferior_registers): Update.
1663 * corelow.c (get_core_registers): Update.
1664 * a68v-nat.c (fetch_inferior_registers): Update.
1668 Put in place the framework necessary for multiarching the hppa targets.
1669 * hppa-tdep.c (hppa_gdbarch_init): New function.
1670 (hppa_dump_tdep): New function.
1671 (_initialize_hppa_tdep): Register the hppa gdbarch init function and
1672 tdep structure dumper.
1673 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): New macro, defined to 0
1674 until the multi-arching conversion has partially been completed.
1678 * valops.c (value_assign): Merge lval_register case into
1679 lval_reg_frame_relative. Use frame_register and
1680 regcache_cooked_write instead of get_saved_register and
1681 write_register_bytes. After flushing the register cache, try to
1682 re-select the selected frame.
1686 * regcache.h (deprecated_register_valid): Rename register_valid.
1687 * regcache.c: Update.
1688 * ia64-aix-nat.c: Update.
1689 * i386gnu-nat.c: Update.
1690 * alpha-nat.c: Update.
1691 * sparc-nat.c: Update.
1692 * lynx-nat.c: Update.
1693 * remote-mips.c: Update.
1697 * hppa-tdep.c (_initialize_hppa_tdep): Move function body
1698 to end of file, to be more consistent with the pratice followed
1703 * infcmd.c: Include "reggroups.h" and <ctype.h>.
1704 (print_float_info): Print registers in float_reggroup.
1705 (print_vector_info): Print registers in vector_reggroup.
1706 (default_print_registers_info): When all, print registers in
1707 all_reggroup. Otherwize, print registers in general_reggroup.
1708 (registers_info): Rewrite. Add support for register groups.
1713 * symtab.c (methods_info): Delete. It has been ifdeffed out for
1715 (symtab_symbol_info): Remove eons old ifdeffed out code.
1716 (_initialize_symtab): Remove prehistoric disabled 'info methods'
1721 * c-exp.y: Add missing semi-colons.
1722 * f-exp.y: Add missing semi-colons.
1723 * m2-exp.y: Add missing semi-colons.
1724 * p-exp.y: Add missing semi-colons.
1725 Add empty action to start rule to avoid a type clash error when
1726 building with bison >= 1.50.
1730 * macrotab.h (struct macro_source_file): Doc fix.
1734 * varobj.c (child_exists, cplus_number_of_children): Change
1735 STREQ macro references to strcmp.
1736 (cplus_name_of_child): Change code to handle the fact that
1737 fields are not necessarily contiguous with regards to their
1738 access control. This is a fix for PR gdb/792.
1742 * gdbarch.sh (GET_SAVED_REGISTER): Change to a predicate function.
1743 * gdbarch.h, gdbarch.c: Regnerate.
1744 * frame.h (frame_register): Declare.
1745 * frame.c (frame_register): New function.
1746 (get_saved_register): Test GET_SAVED_REGISTER_P before calling
1747 GET_SAVED_REGISTER, otherwize call
1748 generic_unwind_get_saved_register.
1749 (frame_register_read): Use frame_register instead of
1755 * event-top.c (gdb_disable_readline): New function.
1756 (_initialize_event_loop): Move comment.
1760 * event-loop.c (start_event_loop): Add comment.
1765 * infcmd.c (default_print_registers_info): Do not call
1766 PRINT_REGISTER_HOOK.
1770 * sparc-tdep.c (sparc_print_register_hook): Make static.
1771 (sparc_print_registers_info): New function.
1772 (sparc_do_registers_info): New function.
1773 (sparclet_print_registers_info): New function.
1774 (sparclet_do_registers_info): New function.
1775 (do_sparc_print_registers_info): New function.
1776 (sparc_print_registers): New static function, clone of infcmd.c's
1777 default_print_registers_info.
1778 * config/sparc/tm-sparclet.h (PRINT_REGISTER_HOOK): Delete macro.
1779 (sparclet_do_registers_info): Declare.
1780 (DEPRECATED_DO_REGISTERS_INFO): Re-define.
1781 * config/sparc/tm-sparc.h (DEPRECATED_DO_REGISTERS_INFO):
1783 (sparc_do_registers_info): Declare.
1784 (PRINT_REGISTER_HOOK): Delete macro.
1785 (sparc_print_register_hook): Delete declaration.
1789 * symtab.c (lookup_symbol_aux): Move chunks of code into separate
1791 (lookup_symbol_aux_local): New function.
1792 (lookup_symbol_aux_symtabs): New function.
1793 (lookup_symbol_aux_psymtabs): New function.
1797 * symtab.c (lookup_symbol_aux): In minsym sections, don't use the
1798 previous values of 'objfile' and 'block'.
1802 * values.c (value_change_enclosing_type): Set
1803 enclosing_type field correctly also for the case where
1804 more memory needs to be allocated.
1808 * i387-tdep.c (i387_print_float_info): Call fputs_filtered instead
1811 * i387-tdep.c (i387_print_float_info): Replace calls to
1812 register_read and deprecated_read_register_gen with calls to
1813 frame_register_read, and make the necessary adjustments to the
1818 * gdbarch.sh (register_reggroup_p): Allow default value.
1819 * gdbarch.h, gdbarch.c: Regenerate.
1823 * regcache.h: Add coment indicating replacements for deprecated
1828 * reggroups.h, reggroups.c: New files.
1829 * regcache.c: Include "reggroups.h".
1830 (enum regcache_dump_what): Add `regcache_dump_groups'.
1831 (regcache_dump): Contract size of the "Type" column. When
1832 specified, dump the register's groups.
1833 (maintenance_print_register_groups): New function.
1834 (_initialize_regcache): Add command `maint print register-groups'.
1835 * Makefile.in (COMMON_OBS): Add reggroups.o
1836 (SFILES): Add reggroups.c.
1837 (reggroups_h): Define.
1838 (regcache.o, gdbarch.o): Update dependencies.
1839 (reggroups.o): Specify dependencies.
1840 * gdbarch.sh (register_reggroup_p): Add pure multi-arch method.
1841 Add opaque declaration for `struct reggroup' in generated .h file.
1842 Include "reggroups.h" in generated .c file.
1843 gdbarch.h, gdbarch.c: Re-generate.
1847 * regcache.h (deprecated_read_register_gen): Rename
1849 (deprecated_write_register_gen): Rename write_register_gen.
1850 * i387-tdep.c: Update.
1851 * x86-64-linux-nat.c: Update
1853 * thread-db.c: Update.
1854 * win32-nat.c: Update.
1855 * mips-tdep.c: Update.
1856 * d10v-tdep.c: Update.
1857 * cris-tdep.c: Update.
1858 * remote-sim.c: Update.
1859 * remote-rdi.c: Update.
1860 * remote-rdp.c: Update.
1863 * blockframe.c: Update.
1864 * x86-64-tdep.c: Update.
1865 * xstormy16-tdep.c: Update.
1866 * sh-tdep.c: Update.
1867 * s390-tdep.c: Update.
1868 * rs6000-tdep.c: Update.
1869 * sparc-tdep.c: Update.
1870 * i386-tdep.c: Update.
1871 * dwarf2cfi.c: Update.
1872 * regcache.c: Update.
1876 New interix-specific files:
1877 * config/i386/nm-interix.h: New file.
1878 * config/i386/interix.mh: New file.
1879 * config/i386/interix.mt: New file.
1880 * i386-interix-nat.c: New file.
1881 * i386-interix-tdep.c: New file.
1885 * frame.h (deprecated_generic_get_saved_register): Rename
1886 generic_get_saved_register.
1887 * blockframe.c (deprecated_generic_get_saved_register): Update.
1888 * xstormy16-tdep.c (xstormy16_get_saved_register): Update.
1889 (xstormy16_frame_saved_register): Update.
1890 * sh-tdep.c (sh_gdbarch_init): Update.
1891 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1892 * ia64-tdep.c (ia64_get_saved_register): Update.
1893 * cris-tdep.c (cris_gdbarch_init): Update.
1894 * config/m32r/tm-m32r.h (GET_SAVED_REGISTER): Update.
1895 * arm-tdep.c (arm_gdbarch_init): Update.
1899 * lin-lwp.c (lin_lwp_resume): Remove resume_all test for !step.
1903 * i386-linux-tdep.c (i386_linux_pc_in_sigtramp): Check for
1904 trampolines in sigaction.
1908 * h8300-tdep.c: Include "gdb_assert.h".
1909 (h8300_print_register): Add gdbarch, file and frame parameters.
1910 Use frame_read_unsigned_register to read the register's value.
1911 Use fprintf_filtered to display output.
1912 (h8300_print_registers_info): Replace h8300_do_registers_info.
1913 (h8300_gdbarch_init): Set print_registers_info.
1917 * frame.c (frame_read_unsigned_register): New function.
1918 (frame_read_signed_register): New function.
1919 * frame.h (frame_read_unsigned_register): Declare.
1920 (frame_read_signed_register): Declare.
1924 * h8500-tdep.c (h8500_print_registers_info): New static function,
1925 clone of infcmd.c's default_print_registers_info.
1926 (h8500_do_registers_info): New funtion.
1927 (h8500_print_register_hook): Rename print_register_hook, make
1930 * config/h8500/tm-h8500.h: Update copyright.
1931 (DEPRECATED_DO_REGISTERS_INFO): Define.
1932 (h8500_do_registers_info: Declare.
1933 (PRINT_REGISTER_HOOK): Delete macro.
1934 (print_register_hook): Delete function.
1938 * z8k-tdep.c (z8k_print_register_hook): Make static.
1939 (z8k_print_registers_info): New static function, clone of
1940 infcmd.c's default_print_registers_info.
1941 (z8k_do_registers_info): New function. Wrap
1942 z8k_print_registers_info.
1943 * config/z8k/tm-z8k.h: Update copyright.
1944 (PRINT_REGISTER_HOOK): Delete macro.
1945 (z8k_print_register_hook): Delete declaration.
1946 (DEPRECATED_DO_REGISTERS_INFO): Define.
1947 (z8k_do_registers_info): Declare.
1951 * hppa-tdep.c (find_function_in_inferior): Remove this extern,
1952 as this is already provided by value.h, and was actually causing
1953 a compilation error because of a conflict in parameter type
1954 declaration due to a missing const keyword.
1955 (low_text_segment_addres): Fix a compilation warning.
1959 * mips-linux-nat.c (mips_linux_cannot_fetch_register): Don't fetch
1960 registers without a name.
1961 (mips_linux_cannot_store_register): Don't store registers without
1966 * symtab.c (find_addr_symbol): Delete. (It was already commented
1968 * symtab.h: Delete prototype for find_addr_symbol.
1972 * gdbarch.sh (DEPRECATED_DO_REGISTERS_INFO): Rename
1974 gdbarch.h, gdbarch.c: Re-generate.
1975 * infcmd.c (default_print_registers_info): Update reference.
1976 * mips-tdep.c (mips_gdbarch_init): Set deprecated_do_registers_info.
1977 (mips_dump_tdep): Do not print DO_REGISTERS_INFO.
1978 * sh-tdep.c (sh_gdbarch_init): Ditto.
1979 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1980 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1984 * x86-64-tdep.c (x86_64_init_abi): Set init_extra_frame_info to
1985 cfi_init_extra_frame_info.
1986 * x86-64-tdep.h (x86_64_init_extra_frame_info): Remove prototype.
1987 * x86-64-linux-tdep.c (x86_64_init_extra_frame_info): Remove function.
1989 * x86-64-tdep.c (x86_64_init_abi): Add calls to override the i386
1990 target where necessary. Add more comments and remove the ones
1991 that don't provide any useful information.
1993 * i386-tdep.c (i386_frame_saved_pc): Replace call to
1994 deprecated_read_register_dummy with
1995 frame_unwind_unsigned_register.
1997 * i386-tdep.c (i386_extract_struct_value_address): Use
1998 regcache_raw_read_unsigned instead of
1999 regcache_cooked_read_unsigned since we know that the register
2000 we're reading isn't a pseudo register. Rename variable 'val' into
2001 the more descriptive 'addr'.
2003 * x86-64-tdep.c: Fix some formatting problems, mostly in comments.
2004 (x86_64_push_return_address): Add comment.
2005 (x86_64_pop_frame): Make static.
2006 (examine_argument): Clarify comment.
2007 (x86_64_skip_prologue): Make prolog_expact variable static.
2009 * dwarf2cfi.c: Fix some formatting problems.
2010 (context_cpy, read_encoded_pointer): Clarify comments.
2012 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Constify.
2013 (x86_64_init_abi): Move set_gdbarch_* calls that overlap with the
2014 i386 target back into x86_64_gdbarch_init. Add some comments and
2015 remove meaningless ones.
2019 * complaints.h (struct deprecated_complaint): Rename `struct
2021 * complaints.c (complain): Update.
2022 * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Delete
2023 incorrect comment indicating that "symfile.h" was being included
2024 for the `struct complaint' definition.
2025 * remote-vx.c: Update.
2026 * objc-lang.c: Update.
2027 * xcoffread.c: Update.
2029 * mdebugread.c: Update.
2030 * stabsread.c: Update.
2031 * dwarf2read.c: Update.
2032 * dwarfread.c: Update.
2033 * elfread.c: Update.
2034 * coffread.c: Update.
2035 * stabsread.h: Update.
2036 * dbxread.c: Update.
2037 * buildsym.c: Update.
2038 * gdbtypes.c: Update.
2039 * macrotab.c: Update.
2043 * x86-64-tdep.c (x86_64_gdbarch_init): Make a bit more similar to
2044 the version in i386-tdep.c. Move set_gdbarch_* calls out into...
2045 (x86_64_init_abi): ...new function.
2047 * Makefile.in (i386v-nat.o): Add $(i386_tdep_h).
2048 * i386v-nat.c: Include "i386-tdep.h".
2052 * gdbtypes.c (address_space_name_to_int): Update.
2053 (address_space_int_to_name): Update.
2054 * gdbarch.sh (address_class_type_flags_to_name): Change to a pure
2055 multi-arch predicate.
2056 (address_class_name_to_type_flags): Ditto.
2057 * gdbarch.h, gdbarch.c: Re-generate.
2059 * MAINTAINERS: Check all warnings when h8300hms and alpha-elf.
2063 * utils.c (string_to_core_addr): Revert patch from 11 Oct.
2067 * symtab.h (INIT_SAL): Delete macro.
2069 * symtab.c (init_sal): New function.
2071 * ada-lang.c (ada_finish_decode_line_1): Change INIT_SAL macro
2072 to init_sal function call.
2073 (find_sal_from_funcs_and_line): Ditto.
2074 (all_sals_for_line): Ditto.
2075 * breakpoint.c (create_internal_breakpoint): Ditto.
2076 (create_fork_vfork_event_catchpoint): Ditto.
2077 (create_exec_event_catchpoint): Ditto.
2078 (parse_breakpoint_sals): Ditto.
2079 (watch_command_1): Ditto.
2080 (handle_gnu_4_16_catch_command): Ditto.
2081 (clear_command): Ditto.
2082 * hppa-tdep.c (child_enable_exception_callback): Ditto.
2083 * infcmd.c (run_stack_dummy): Ditto.
2084 * infrun.c (process_event_stop_test): Ditto.
2085 (check_sigtramp2): Ditto.
2086 (step_over_function): Ditto.
2087 * linespec.c (decode_line_2): Ditto.
2088 (decode_line_1): Ditto.
2089 * source.c (line_info): Ditto.
2090 * symtab.c (find_pc_sect_line): Ditto.
2094 * dwarf2cfi.c (struct context)
2095 (struct context_reg): Moved to dwarf2cfi.h
2096 (context_alloc, frame_state_alloc, context_cpy):
2097 Made extern instead of static, removed prototypes.
2098 * dwarf2cfi.h (struct context)
2099 (struct context_reg): New, moved from dwarf2cfi.c
2100 (context_alloc, frame_state_alloc, context_cpy):
2102 * x86-64-linux-tdep.c (x86_64_linux_sigtramp_saved_pc):
2103 Changed from static to extern.
2104 (LINUX_SIGINFO_SIZE, LINUX_SIGCONTEXT_PC_OFFSET)
2105 (LINUX_SIGCONTEXT_FP_OFFSET)
2106 (LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Adjusted.
2107 (x86_64_linux_in_sigtramp, x86_64_linux_frame_chain)
2108 (x86_64_init_frame_pc, x86_64_init_extra_frame_info): New.
2109 * x86-64-tdep.c (x86_64_gdbarch_init): Several
2110 set_gdbarch_*() calls now use x86-64 specific functions
2111 instead of DWARF2 CFI ones.
2112 * x86-64-tdep.h (x86_64_linux_in_sigtramp)
2113 (x86_64_linux_frame_chain, x86_64_init_frame_pc)
2114 (x86_64_init_extra_frame_info): New prototypes.
2118 * linespec.c: #include "parser-defs.h".
2119 Delete prototype for find_template_name_end.
2120 * Makefile.in (linespec.o): Depend on $(parser_defs_h).
2124 * NEWS: add recent mi fixes.
2125 * varobj.c (struct varobj): Add new "updated" flag.
2126 (new_variable): Default "updated" flag to 0.
2127 (varobj_set_value): Set "updated" flag to 1 if value
2129 (varobj_update): Check varobj "updated" flag before
2130 comparing old and refreshed values. Fix for
2135 * parse.c (parse_exp_1): Use BLOCK_START.
2136 * x86-64-tdep.c (x86_64_skip_prologue): Use BLOCK_END,
2138 * objc-lang.c (find_methods): Use BLOCK_START, BLOCK_END.
2142 * symtab.c: Delete cplusplus_hint.
2143 Delete prototype for find_template_name_end.
2147 * symtab.h: Update comment.
2151 * printcmd.c (address_info): Restore quotes in output.
2152 * valops.c (value_of_local): Restore quotes in error message.
2156 * symtab.c (symbol_demangled_name): New function.
2157 * symtab.h (SYMBOL_DEMANGLED_NAME): Simplify macro, by
2158 turning most of it into a function.
2159 (symbol_demangled_name): Export.
2163 * valops.c (value_of_local): Restore quotes in error message.
2167 * symtab.c (symbol_init_language_specific): New function.
2168 * symtab.h (SYMBOL_INIT_LANGUAGE_SPECIFIC): Simplify macro, by
2169 turning most of it into a function.
2170 (symbol_init_language_specific): Export.
2174 * dwarf2read.c (dwarf_tag_name): Add DWARF 3 names.
2175 (dwarf_attr_name): Ditto.
2176 (dwarf_type_encoding_name): Ditto.
2177 (scan_partial_symbols): Descend into DW_TAG_namespace entries.
2178 (process_die): Handle DW_TAG_namespace,
2179 DW_TAG_imported_declaration, DW_TAG_imported_module.
2180 (read_namespace): New function.
2184 * configure.in: Define NEW_PROC_API on Interix too.
2185 * configure: Regenerate.
2189 * configure: Regenerate using the proper version of autoconf.
2193 * findvar.c (read_var_value): Temporarily disable TLS code, until
2194 complete TLS support is added.
2199 * symtab.h (address_class): Re-add LOC_THREAD_LOCAL_STATIC
2200 for thread local storage locations.
2201 (struct symbol): Add objfile field.
2202 (SYMBOL_OBJFILE): Define.
2203 * dwarf2read.c (is_thread_local): New static variable.
2204 (new_symbol): If variable is in thread local fill in address class
2205 and objfile appropriately.
2206 (decode_locdesc): Recognize and handle DW_OP_GNU_push_tls_address
2208 * printcmd.c (address_info): Print the information for thread
2209 local storage variable.
2210 * findvar.c (read_var_value): In case of thread local variable,
2211 defer to the target vector code to compute address.
2215 * solib-svr4.c (svr4_fetch_objfile_link_map): New function.
2216 * solib-svr4.h (svr4_fetch_objfile_link_map): Export.
2220 * symtab.h (address_class): Rename
2221 LOC_THREAD_LOCAL_STATIC to LOC_HP_THREAD_LOCAL_STATIC.
2222 * hpread.c (hpread_process_one_debug_symbol): Ditto.
2223 * printcmd.c (address_info): Ditto.
2224 * findvar.c (symbol_read_needs_frame, read_var_value): Ditto.
2228 * i386bsd-nat.c (i386bsd_dr_set, i386bsd_dr_get_status): Use
2229 DBREG_DRX macro to acces debug registers.
2231 * Makefile.in (i386obsd-tdep.o): New target.
2233 * solib-sunos.c: Include "bcache.h" and "regcache.h".
2234 * Makefile.in (solib-sunos.o): Add $(bcache_h) and $(regcache_h).
2236 * configure.tgt (i[3456]86-*-openbsd*): Set gdb_target to obds.
2237 * config/i386/obsd.mt: New file.
2238 * i386bsd-nat.c (_initialize_i386bsd_nat): Introduce
2239 i386obsd_sc_pc_offset and i386obsd_sc_sp_offset;
2240 * i386obsd-nat.c (_initialize_i386obsd_nat): Set
2241 i386obsd_sigtramp_start and i386obsd_sigtramp_end instead of
2242 i386nbsd_sigtramp_start and i386nbsd_sigtramp_end.
2243 * i386obsd-tdep.c: New file.
2247 * objc-exp.y (name_not_typename): Fix invalid comment.
2251 * solib-sunos.c (allocate_rt_common_objfile): Use bcache_xmalloc
2252 to allocate partial syms and macro byte caches.
2256 * symtab.h: Delete 'struct source' and 'struct sourcevector'.
2260 * stabsread.c (find_name_end): New function.
2261 (define_symbol): Use it.
2265 * config/alpha/nm-fbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
2266 * config/alpha/nm-linux.h (CANNOT_STEP_BREAKPOINT): Define to 1.
2267 * config/alpha/nm-nbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
2268 * config/alpha/nm-osf.h (CANNOT_STEP_BREAKPOINT): Define to 1.
2272 * symfile.h: Add opaque declaration for struct obstack.
2273 Declare obsavestring to take a const char *.
2274 * symfile.c (obsavestring): Make first argument a const char *.
2278 * breakpoint.c (parse_breakpoint_sals): Ignore ObjC method
2279 names when matching breakpoints in current file.
2283 * dwarf2read.c (dwarf2_invalid_pointer_size): New complaint.
2284 (read_tag_pointer_type): Add address class support.
2285 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS)
2286 (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME, ADDRESS_CLASS_NAME_TO_TYPE_FLAGS):
2288 * gdbarch.h, gdbarch.c: Regenerate.
2289 * gdbtypes.c (address_space_name_to_int, address_space_int_to_name)
2290 (make_type_with_address_space, recursive_type_dump): Add address
2292 * gdbtypes.h (TYPE_FLAG_ADDRESS_CLASS_1, TYPE_FLAG_ADDRESS_CLASS_2)
2293 (TYPE_FLAG_ADDRESS_CLASS_ALL, TYPE_ADDRESS_CLASS_1)
2294 (TYPE_ADDRESS_CLASS_2, TYPE_ADDRESS_CLASS_ALL): New defines
2298 * stabsread.c (read_tilde_fields): Use name[sizeof(vptr_name)-2]
2299 to get the last character of a char[] buffer, not
2300 name[sizeof(vptr_name)-1].
2304 * symtab.h: New objc_specific struct.
2305 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Handle ObjC.
2306 (SYMBOL_DEMANGLED_NAME): Likewise.
2310 * symfile.c (init_filename_language_table): Add ObjC file extension.
2314 * utils.c (puts_filtered_tabular): New function.
2315 (fprintf_symbol_filtered): Get ObjC demangled name.
2316 * defs.h (puts_filtered_tabular): Declared.
2320 * c-lang.h (c_type_print_varspec_prefix): Delete.
2321 * c-typeprint.c (c_type_print_varspec_prefix): Make static. Add
2322 ``need_post_space'' parameter. Adjust all callers.
2326 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Define to 1.
2327 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
2328 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
2329 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
2333 * source.c (print_source_lines): Update comments.
2337 * valops.c (value_of_local): New function.
2338 (value_of_this): Use it.
2339 * value.h (value_of_local): Declared.
2343 * parse.c: (length_of_subexp, prefixify_subexp): Handle
2344 OP_MSGCALL, OP_SELECTOR, OP_NSSTRING, and OP_SELF.
2348 * language.c (binop_result_type): Add language_objc to case.
2349 (integral_type): Likewise.
2350 (character_type): Likewise.
2351 (string_type): Likewise.
2352 (boolean_type): Likewise.
2353 (structured_type): Likewise.
2354 (binop_type_check): Likewise.
2358 * printcmd.c (address_info): Print 'self' for ObjC.
2362 * expression.h: New ops OP_NSSTRING, OP_SELECTOR, OP_MSGCALL, and
2367 * language.h (CAST_IS_CONVERSION): Add language_objc.
2371 * defs.h (enum language): Add language_objc.
2375 * corefile.c (read_memory_typed_address): New function.
2376 * gdbcore.h (read_memory_typed_address): Add prototype.
2377 * blockframe.c (sigtramp_saved_pc): Use read_memory_typed_address
2378 to read a value destined for a CORE_ADDR, not read_memory_integer.
2379 * f-valprint.c (f77_get_dynamic_upperbound): Ditto.
2380 (f77_get_dynamic_lowerbound): Ditto.
2384 * utils.c (string_to_core_addr): After turning string into
2385 a number, convert to a CORE_ADDR using INTEGER_TO_ADDRESS
2386 which will do necessary sign-extension, etc.
2390 * c-exp.y (THIS): Delete token and grammar rule.
2391 (yylex): Don't return THIS.
2392 * cp-valprint.c (vtbl_ptr_name_old): Delete.
2393 (cp_is_vtbl_ptr_type): Don't check vtbl_ptr_name_old.
2394 * demangle.c (cplus_markers): Update comment. Put '$'
2395 first. Remove CPLUS_MARKER.
2396 (_initialize_demangler): Don't call set_cplus_marker_for_demangling.
2397 * jv-exp.y (THIS): Delete token and grammar rule.
2398 (yylex): Don't return THIS.
2399 * mips-tdep.c (mips_dump_tdep): Don't dump CPLUS_MARKER.
2400 * objc-exp.y (THIS): Delete token and grammar rule.
2401 (yylex): Don't return THIS.
2402 * p-exp.y (yylex): Remove reference to CPLUS_MARKER.
2403 * stabsread.c (vptr_name, vb_name): Replace CPLUS_MARKER with '$'.
2404 (read_member_functions): Likewise for opname.
2405 (read_tilde_fields): Use is_cplus_marker.
2407 * defs.h (CPLUS_MARKER): Don't define.
2408 * config/tm-sysv4.h (CPLUS_MARKER): Likewise.
2409 * config/i386/xm-i386sco.h (CPLUS_MARKER): Likewise.
2410 * config/mips/tm-irix3.h (CPLUS_MARKER): Likewise.
2411 * config/mips/tm-irix6.h (CPLUS_MARKER): Likewise.
2412 * config/rs6000/tm-rs6000.h (CPLUS_MARKER): Likewise.
2414 * config/i386/tm-i386v4.h: Delete file.
2415 * config/djgpp/fnchange.lst: Delete tm-i386v4.h.
2416 * config/i386/tm-i386sol2.h: Include "i386/tm-i386.h" instead.
2417 * config/i386/tm-i386v42mp.h: Include "i386/tm-i386.h" instead.
2418 * config/i386/tm-ptx.h: Include "i386/tm-i386.h" instead.
2419 * config/i386/i386gnu.mt (TM_FILE): Use tm-i386.h.
2420 * config/i386/i386sco5.mt (TM_FILE): Likewise.
2421 * config/i386/i386v4.mt (TM_FILE): Likewise.
2422 * config/i386/ncr3000.mt (TM_FILE): Likewise.
2426 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C,
2427 accidentially not commited 2002-10-09
2428 * gdbarch.h, gdbarch.c: Re-generate.
2432 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C.
2433 * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Add.
2434 * gdbarch.h, gdbarch.c: Re-generate.
2440 Move the Dwarf 2 abbrev table to a per-compilation-unit structure,
2441 so we can work on more than one compilation unit at a time. This
2442 helps prepare GDB to handle inter-CU die references.
2443 * dwarf2read.c (ABBREV_HASH_SIZE): moved definition forward in
2444 the code to be defined before struct comp_unit_head.
2445 (comp_unit_head): Added new members - offset, cu_head,
2446 begin_die, next and dwarf2_abbrevs.
2447 (dwarf2_abbrevs): Removed single static var; now member of
2448 struct comp_unit_head.
2449 dwarf2_build_psymtabs_hard): Complete new struct comp_unit_head
2451 (psymtab_to_symtab_1): Changed to work with the new
2452 struct comp_unit_head.
2453 (dwarf2_read_abbrevs): Now accepts a cu_header parameter and
2454 constructs the dwarf2_abbrevs[] inside the cu_header.
2455 (dwarf2_empty_abbrev_table): Now expects a ptr to a
2456 dwarf2_abbrev table to clean up.
2457 (dwarf2_lookup_abbrev): Now accepts a cu_header parameter and
2458 handling of dwarf2_abbrevs inside the cu_header.
2459 (read_partial_die): Now supports the call to the new
2460 dwarf2_lookup_abbrev.
2461 (read_full_die): Now supports the call to the new
2462 dwarf2_lookup_abbrev.
2466 * Makefile.in (install-gdbtk): Add missing continuation backslash to
2467 insure that shell variables, such as "transformed_name" are propagated
2468 to later shell statements in rule.
2472 * config/i386/nm-i386sco.h: Add protection against
2473 multiple-inclusion. Include "i386/nm-i386v.h".
2474 (REGISTER_U_ADDR): Remove define.
2475 (i386_register_u_addr): Remove prototype.
2479 * m32r-stub.c (handle_exception): Make sure exception is "trap"
2480 before treating it as a single-step event.
2484 * objc-lang.c: ARI fixes. Change string.h to gdb_string.h.
2485 (objc_demangle): Remove assignment in if statements, Replace
2487 (add_msglist): Likewise.
2488 (end_msglist): Likewise.
2489 (complare_selectors): Likewise.
2490 (selectors_info): Likewise.
2491 (compare_classes): Likewise.
2492 (classes_info): Likewise.
2493 (print_object_command): Likewise.
2494 (find_objc_msgcall_submethod): Replace PTR with void *.
2495 * objc-lang.h: Remove check for __STDC__.
2499 * ui-out.h (ui_out_field_fmt_int): New prototype.
2500 * ui-out.c (ui_out_field_fmt_int): New function allowing specification
2501 of field width and alignment.
2502 * stack.c (print_frame_info_base): When printing frame level, use
2503 ui_out_field_fmt_int with a width of 2 and left alignment. Fix for
2508 * MAINTAINERS: Add self to Write After Approval list.
2512 * infcmd.c (interrupt_target_command_wrapper): Delete.
2513 (interrupt_target_command): Make non static.
2514 (nofp_registers_info): Make static.
2515 * stack.c (return_command_wrapper): Delete.
2516 (return_command): Make non static.
2520 * event-top.c (gdb_setup_readline): New function. Code moved from
2521 _initialize_event_loop().
2522 (_initialize_event_loop): Call gdb_setup_readline().
2526 * infrun.c (resume): Convert #ifdef CANNOT_STEP_BREAKPOINT into C.
2527 * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Add.
2528 * gdbarch.h, gdbarch.c: Re-generate.
2533 * gdbtypes.c (fill_in_vptr_fieldno): Call check_typedef
2535 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Check return value
2536 of fill_in_vptr_fieldno.
2540 * inferior.h (registers_info, stepi_command, nexti_command,
2541 continue_command, interrupt_target_command): Export from infcmd.c.
2542 * frame.h (args_info, selected_frame_level_changed_hook,
2543 return_command): Export from stack.c.
2544 * v850ice.c (stepi_command, nexti_command, continue_command): use
2545 prototypes from inferior.h.
2546 * tracepoint.c (registers_info, args_info, locals_info): Use
2547 prototypes from frame.h and inferior.h.
2548 * Makefile.in (mi-main.o): Add dependency on frame.h.
2552 * rs6000-tdep.c (rs6000_store_struct_return): Store struct_return
2553 value in register 3 adjusted by ppc_gp0_regnum.
2555 * rs6000-tdep.c (skip_prologue): Bias alloca_reg by ppc_gp0_regnum.
2559 * MAINTAINERS: Add myself to the Write After Approval list.
2563 * mips-tdep.c (mips_find_abi_section): .mdebug.abi64 is the name
2564 of the section for the N64 ABI, fixed.
2566 * config/mips/tm-irix6.h: Include solib.h.
2570 * dwarf2read.c (dwarf_stack_op_name): Recognize more dwarf3 and
2575 * NEWS: Mention that MI syntax, selected by "mi" changed to "mi2"
2576 and that "mi0" syntax has been removed.
2580 * Makefile.in (ppc-sysv-tdep.o): Depend on gdb_string_h.
2581 * ppc-sysv-tdep.c: #include "gdb_string.h".
2582 * remote-sds.c (getmessage): Add semicolon after 'retry' label to
2587 * rs6000-tdep.c (rs6000_gdbarch_init): For powerpc:7400, fix
2588 "vrsave"'s register number.
2592 * mips-tdep.c (mips_frame_saved_pc): When a generic dummy frame,
2593 use frame_unwind_signed_register to obtain the PC.
2594 (mips_frame_chain): Handle a generic dummy frame.
2595 (mips_init_extra_frame_info): When a generic dummy frame, don't
2596 re-compute the frame base.
2597 (mips_pop_frame): Handle generic dummy frames.
2598 (mips_gdbarch_init): When generic dummy frames, set
2599 use_generic_dummy_frames, push_dummy_frame to
2600 generic_push_dummy_frame, pc_in_call_dummy to
2601 generic_pc_in_call_dummy, and save_dummy_frame_top_of_stack to
2602 generic_save_dummy_frame_tos.
2606 * blockframe.c (generic_find_dummy_frame): Rewrite. Only test
2607 against TOP when TOP was explictly set.
2608 (generic_push_dummy_frame): Set TOP to zero.
2612 * event-loop.c (start_event_loop): Rename variable 'result' to
2613 'gdb_result', to avoid conflicts with upcoming intepreters changes.
2617 * gdb-events.sh (selected_thread_changed): New event.
2618 * gdb-events.c: Regenerated.
2619 * gdb-events.h: Regenerated.
2623 * MAINTAINERS: Add self to Write After Approval list.
2627 * disasm.c: New file.
2628 * disasm.h: New file.
2629 * mi/mi-cmd-disas.c (gdb_dis_asm_read_memory): Moved to disasm.c.
2630 (compare_lines): Ditto.
2631 (dump_insns): Ditto.
2632 (do_mixed_source_and_assembly): Moved to disasm.c. Added uiout
2634 (do_assembly_only): Ditto.
2635 (do_disassembly): Renamed to gdb_disassembly and moved to
2636 disasm.c. Sdded uiout argument.
2637 * Makefile.in: Add new files. Reorder SFILES list. Update
2638 dependencies. Include libgdb.a later in the insight executable.
2642 * config/djgpp/fnchange.lst: Rename bfd/elf64-alpha.c and
2643 bfd/elf64-alpha-fbsd.c.
2647 * config/djgpp/fnchange.lst: Rename i386gnu-nat.c and
2652 * gnu-nat.h (debug): Use __FILE__ and __LINE__ instead of
2654 * gnu-nat.c (do_mach_notify_no_senders): Replace __FUNCTION__ with
2656 (do_mach_notify_port_deleted, do_mach_notify_msg_accepted): Ditto.
2657 (do_mach_notify_port_destroyed, do_mach_notify_send_once): Ditto.
2658 (S_proc_setmsgport_reply, S_proc_getmsgport_reply): Ditto.
2659 (S_msg_sig_post_reply): Ditto.
2663 * sh-tdep.c (sh_use_struct_convention): Use definition according
2665 (sh_push_arguments): Store in register with correct endianess.
2666 (sh_default_store_return_value): Ditto.
2667 (sh_gdbarch_init): Set sizeof long double to 8.
2671 * defs.h: Move inclusion of "ansidecl.h" before "gdb_locale.h".
2672 Fix some whitespace problems.
2676 * Makefile.in (cris-tdep.o): Depend on gdb_string_h.
2677 (mcore-tdep.o): Ditto.
2678 (ns32k-tdep.o): Ditto.
2679 (ns32knbsd-tdep.o): Ditto.
2681 (vax-tdep.o): Ditto.
2682 * cris-tdep.c: #include "gdb_string.h"
2683 * mcore-tdep.c: Ditto.
2684 * ns32k-tdep.c: Ditto.
2685 * ns32knbsd-tdep.c: Ditto.
2687 * vax-tdep.c: Ditto.
2691 * config/djgpp/fnchange.lst: Add entries for
2692 gdb/testsuite/gdb.c++/m-static files.
2696 * MAINTAINERS: Add myself to the Write After Approval list.
2700 * mips-tdep.c (find_proc_desc): Initialize startaddr.
2705 * rs6000-tdep.c (rs6000_frame_chain): Don't chain past the dummy
2710 * rs6000-tdep.c (rs6000_extract_struct_value_address): Return 0.
2711 (rs6000_struct_return_address): Delete variable.
2712 (rs6000_store_struct_return): Update.
2713 (rs6000_gdbarch_init): Set extract_struct_value_address instead of
2714 deprecated_extract_struct_value_address.
2715 (rs6000_frame_align): New function.
2716 (rs6000_gdbarch_init): Set frame_align.
2721 * Makefile.in (gdbtk-main.o): New target.
2722 (gdb.o): New target.
2724 (main.o): Update dependencies.
2725 (gdb$(EXEEXT)): Add gdb.o.
2726 (SUBDIR_GDBTK_SRCS): Add gdbtk-main.c.
2727 (SUBDIR_GDBTK_ALL, SUBDIR_GDBTK_UNINSTALL): Set.
2728 (SUBDIR_GDBTK_CLEAN): Set.
2729 (install-gdbtk): Install the insight binary.
2730 (uninstall-gdbtk): New target.
2731 (all-gdbtk, clean-gdbtk): New rule.
2732 * top.c (use_windows): Default to zero.
2733 * main.c: Include "main.h".
2735 (struct captured_main_args): Delete.
2736 (gdb_main): New function.
2742 * frame.c: Include "gdb_string.h" and "builtin-regs.h".
2743 (frame_map_regnum_to_name): New function.
2744 (frame_map_name_to_regnum): New function.
2745 * frame.h (frame_map_name_to_regnum): Declare.
2746 (frame_map_regnum_to_name): Declare.
2747 * builtin-regs.c (builtin_reg_map_regnum_to_name): New function.
2748 * builtin-regs.h (builtin_reg_map_regnum_to_name): Declare.
2749 * parse.c: Do not include "builtin-regs.h".
2750 (target_map_name_to_register): Delete function.
2751 (write_dollar_variable): Use frame_map_name_to_regnum.
2752 * parser-defs.h (target_map_name_to_register): Delete declaration.
2753 * expprint.c: Include "frame.h".
2754 (print_subexp): Use frame_map_regnum_to_name.
2755 * eval.c (evaluate_subexp_standard): Use frame_map_regnum_to_name.
2756 * infcmd.c (registers_info): Use frame_map_name_to_regnum.
2760 * rs6000-tdep.c (rs6000_frame_saved_pc): If the link register
2761 wasn't saved, and the next innermost frame is a dummy, return the
2762 dummy frame's link register.
2766 Fix from Paul Breed:
2767 * main.c (captured_main): Add a `break' after the case for 'b'.
2771 * varobj.c (c_type_of_child): Use get_target_type instead
2772 of TYPE_TARGET_TYPE.
2776 * source.c (get_current_or_default_source_symtab_and_line): Remove
2778 (set_default_source_symtab_and_line): New function. Attempts to
2779 determine a source file to list lines from if one is not currently
2781 (get_current_source_symtab_and_line): Initialize sal.pc and
2783 (set_current_source_symtab_and_line): Mark argument as const.
2784 * source.h: Update declarations and comments.
2785 * linespec.c (decode_line_1): Replace call to removed routine above.
2786 * stack.c (print_frame_info_base): Ditto.
2787 * cli/cli-cmds.c (edit_command): Ditto.
2788 (list_command): Ditto.
2792 * source.c (get_current_or_default_source_symtab_and_line): Initialize
2793 sal.pc and sal.end fields.
2794 (get_current_or_default_source_symtab_and_line): Ditto.
2795 * breakpoint.c (parse_breakpoint_sals): Use correct accessor function
2796 so we do not cause a new source symtab to be searched for (reverting an
2797 unintentional change from the 2002-09-20 patch).
2798 * scm-lang.c (scm_unpac): Ditto.
2802 * complaints.c (symfile_explanations): Remove new-line from
2803 ``isolated_message''.
2804 (vcomplaint): When ISOLATED_MESSAGE, force a line break.
2805 (clear_complaints): When a SUBSEQUENT_MESSAGE, force a line break.
2809 * NEWS: Announce that V850EA ISA is no longer supported.
2810 * v850-tdep.c: Remove reference to bfd_mach_v850ea.
2814 * Makefile.in (c-lang.o): Correct dependencies.
2815 (utils.o): Gather dependencies.
2817 * c-lang.c: #include "gdb_string.h"
2822 * cli/cli-cmds.c (list_command): New function. Implements the new
2824 (_init_cli_cmds): Add new command definition.
2825 * gdb.1: Document edit command.
2826 * doc/gdb.texinfo: Document edit command.
2830 * source.c: Make global variables current_source_symtab and
2831 current_source_line static.
2832 (list_command): Moved to cli/cli-cmds.c.
2833 (ambiguous_line_spec): Moved to cli/cli-cmds.c.
2834 (get_first_line_listed): New accessor function.
2835 (get_lines_to_list): New accessor function.
2836 (get_current_source_symtab_and_line): New function. Retrieves the
2837 position in the source code that we consider current.
2838 (get_current_or_default_source_symtab_and_line): New function.
2839 Like the above but attempts to determine a default position if one
2840 is not currently defined.
2841 (set_current_source_symtab_and_line): New function. Sets the source
2842 code position considered current and returns the previously set one.
2843 (clear_current_source_symtab_and_line): Reset stored information about
2844 a current source line.
2845 (_initialize_source): Remove registration for the "list" command and
2847 * source.h: Add declarations for the new functions above.
2848 * symtab.h: Remove declarations for the global variables mentioned
2850 * breakpoint.c (parse_breakpoint_sals): Use accessor functions to
2851 obtain current source line.
2852 * linespec.c (decode_line_1): Ditto.
2853 * macroscope.c (default_macro_scope): Ditto.
2854 * scm-lang.c (scm_unpac): Ditto.
2855 * stack.c (print_frame_info_base): Ditto.
2856 * symfile.c (clear_symtab_users): Ditto.
2857 * symtab.c (decode_line_spec): Ditto.
2858 * cli/cli-cmds.c (list_command): Moved here from source.c.
2859 (ambiguous_line_spec): Moved here from source.c.
2860 (_init_cli_cmds): Add definition for "list" and its alias.
2861 * Makefile.in: Update dependencies.
2865 * h8300-tdep.c (h8300_examine_prologue): Match saved regs location
2866 with what gcc thinks is correct.
2870 * h8300-tdep.c (h8300_examine_prologue): Fix loop for saved regs in
2871 multiple register push instruction.
2875 Add support for distinct host and target character sets.
2876 * charset.c, charset.h: New files.
2877 * c-exp.y: #include "charset.h".
2878 (yylex): Convert character and string literals to the target
2879 character set, before returning them as the semantic value of the
2881 * c-lang.c: #include "charset.h".
2882 (c_emit_char): Use charset-specific methods to recognize
2883 characters with backslash escape forms, to decide which characters
2884 to print literally and which to print using numeric escape
2885 sequences, and to convert target characters to host characters
2887 * utils.c: #include "charset.h".
2888 (no_control_char_error): New function.
2889 (parse_escape): Use charset-specific methods to recognize
2890 backslash escapes, parse `control character' notation, and convert
2891 characters from the host character set to the target character set.
2892 * configure.in: Set the default host character set.
2893 Check where to find iconv, and what its argument types might be.
2894 * acinclude.m4 (AM_ICONV): New macro, borrowed from GCC.
2895 * Makefile.in (SFILES): List charset.c.
2896 (COMMON_OBS): List charset.o.
2897 (charset.o): New rule.
2898 (charset_h): New header dependency variable.
2899 (c-lang.o, utils.o, c-exp.tab.o): Note dependency on $(charset_h).
2900 (LIBICONV): New variable, set by configure.
2901 (CLIBS): Include $(LIBICONV) here.
2902 * aclocal.m4, config.in, configure: Regenerated.
2906 * ada-exp.y: Add missing semicolons to end rules. Fixes a
2911 * gdb_mbuild.sh: New file.
2915 * objc-exp.y, objc-lang.h, objc-lang.c: Fix copyright notice.
2919 * breakpoint.c, c-exp.y, defs.h, elfread.c, expression.h,
2920 jv-exp.y, language.c, language.h, p-exp.y, parse.c, parser-defs.h,
2921 printcmd.c, source.c, stabsread.c, symfile.c, symtab.h, utils.c,
2922 valops.c, value.h: Revert previous change.
2926 Preliminary support for Objective-C:
2927 * defs.h (language_objc): New enum value.
2928 (puts_filtered_tabular): Declaration only, exported from utils.c.
2929 (skip_quoted): Delete, declared in completer.h.
2930 * c-exp.y: Include completer.h.
2933 * expression.h (OP_MSGCALL, OP_SELECTOR, OP_SELF, OP_NSSTRING):
2934 New operator enum values.
2935 * language.h (CAST_IS_CONVERSION): Test for language_objc.
2936 * language.c (binop_result_type): Handle language_objc case.
2937 (integral_type, character_type, string_type, boolean_type,
2938 structured_type, binop_type_check): Ditto.
2939 * symtab.h (SYMBOL_OBJC_DEMANGLED_NAME): Define.
2940 (struct objc_specific): Add to general_symbol_info.
2941 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Add objc initialization.
2942 (SYMBOL_DEMANGLED_NAME): Handle objc case.
2943 * parser-defs.h (struct objc_class_str): New struct type.
2944 (start_msglist, end_msglist, add_msglist): Declaration only,
2945 exported from objc-lang.c.
2946 * value.h (value_of_local, value_nsstring,
2947 call_function_by_hand_expecting_type): Exported from valops.c.
2948 * valops.c (find_function_addr): Export.
2949 (call_function_by_hand_expecting_type): New function.
2950 (value_of_local): New function.
2951 * symfile.c (init_filename_language_table): Add ".m" extension
2953 * utils.c (puts_filtered_tabular): New function.
2954 (fprintf_symbol_filtered): Add objc demangling support (disabled).
2955 (set/show demangle): Extend help-string to refer to ObjC.
2956 * elfread.c (elf_symtab_read): Skip Objective-C special symbols.
2957 * stabsread.c (symbol_reference_defined): Objective-C symbols
2958 may contain colons: make allowances when scanning stabs strings
2960 (objc_find_colon): New function.
2961 * printcmd.c (address_info): If language == objc then print
2962 "self" instead of "this".
2963 * parse.c (length_of_subexp): Handle new operators OP_MSGCALL,
2964 OP_NSSTRING, and OP_SELF.
2965 (prefixify_subexp): Ditto.
2966 * source.c (print_source_lines): Mention objc in comment.
2967 * breakpoint.c (parse_breakpoint_sals): Recognize Objective-C
2972 * complaints.h: Update copyright.
2973 (struct complaints): Declare.
2974 (struct complaint): Make `message' constant.
2975 (internal_complaint): Declare.
2976 (complaint): Declare.
2977 (complaint_root): Delete declaration.
2978 (symfile_complaints): Delete declaration.
2979 (struct complaints): Add opaque declaration.
2980 (clear_complaints): Add a complaints parameter.
2981 * complaints.c: Update copyright.
2982 (enum complaint_series): Define.
2983 (complaint_root): Delete.
2984 (struct complaints): Define.
2985 (complaint_sentinel, symfile_complaint_book): New variables.
2986 (symfile_explanations, symfile_complaints): New variables.
2988 (get_complaints): New function.
2989 (vcomplaint): New function.
2990 (complaint): New function.
2991 (internal_complaint): New function.
2992 (complain): Call vcomplain with symfile_complaint.
2993 (clear_complaints): Rewrite.
2994 (_initialize_complaints): Use add_setshow_command.
2995 * Makefile.in (complaints.o): Update dependencies.
2996 * symfile.c (syms_from_objfile): Add symfile_complaints parameter
2997 to call to clear_complaints.
2998 (new_symfile_objfile, reread_symbols): Ditto.
2999 (oldsyms_complaint): Delete.
3000 (empty_symtab_complaint, unknown_option_complaint): Delete.
3001 (free_named_symtabs): Use complaint instead of complain.
3005 Contributed by Apple Computer, Inc. Merged with current sources
3008 * objc-lang.c: First clean-up round: comments, indentation.
3009 * objc-lang.h: Ditto.
3010 * objc-lang.y: Ditto.
3014 * maint.c (maintenance_internal_error): Print the parameter as the
3016 (maintenance_internal_warning): New function.
3017 (_initialize_maint_cmds): Add command `maint internal-warning'.
3019 * defs.h (internal_warning, internal_vwarning): Declare.
3020 * utils.c (struct internal_problem): Define.
3021 (internal_vproblem): New function.
3022 (internal_warning): New function.
3023 (internal_vwarning): New function.
3024 (internal_warning_problem, internal_error_problem): New variables.
3025 (internal_verror): Just call internal_vproblem.
3029 * objc-lang.c: New file, support for Objective-C.
3030 Preliminary check-in, not yet integrated into gdb.
3031 * objc-lang.h: New file.
3032 * objc-exp.y: New file.
3036 * infrun.c (signal_stop_update): Convert definition to ISO C.
3037 (signal_print_update): Ditto.
3038 (signal_pass_update): Ditto.
3039 * inflow.c (terminal_save_ours): Ditto.
3041 * h8300-tdep.c (h8300_gdbarch_init): Use C instead of C++
3044 * config/djgpp/fnchange.lst: Handle name clashes between
3045 bfd/coff-tic30.c, bfd/coff-tic4x.c, bfd/coff-tic54x.c and
3048 * i386-linux-tdep.h: Fix tipo.
3052 * MAINTAINERS: Add myself to the Write After Approval list.
3056 * dbxread.c, mdebugread.c: Revert my change of 2001-10-23. Moving
3057 texthigh and textlow to reader-specific structs caused
3058 objfile_relocate to miss them. This is fixable, but the work that
3059 the change was supposed to prepare GDB for never got done anyway.
3063 * MAINTAINERS: Alphabetize Write After Approval list.
3068 * values.c (value_static_field): Call read_var_value.
3072 * valops.c (hand_function_call): Align the initial stack pointer
3073 and STRUCT_ADDR using frame_align. When STRUCT_RETURN and
3074 FRAME_ALIGN_P, use STRUCT_ADDR to obtain the called function's
3076 * mips-tdep.c (mips_frame_align): New function.
3077 (mips_gdbarch_init): Set frame_align.
3078 * gdbarch.sh (FRAME_ALIGN): New method.
3079 * gdbarch.h, gdbarch.c: Re-generate.
3083 * x86-64-linux-nat.c (x86_64_regmap): Added CS and SS
3088 * NEWS: Mention that MIPS $fp behavior changed.
3089 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register): Delete
3090 reference to FP_REGNUM.
3091 (mipsnbsd_cannot_store_register): Ditto.
3092 * mips-linux-nat.c: Update copyright.
3093 (mips_linux_cannot_fetch_register): Delete reference to FP_REGNUM.
3094 (mips_linux_cannot_store_register): Ditto.
3095 * mips-linux-tdep.c (supply_gregset): Ditto. Update copyright.
3096 * config/mips/tm-mips.h: Update copyright.
3097 (FP_REGNUM): Delete macro.
3098 (MIPS_REGISTER_NAMES): Replace "fp" with "".
3099 * config/mips/tm-irix6.h (FP_REGNUM): Delete macro.
3100 * mips-tdep.c (mips_gdbarch_init): Set read_fp to mips_read_sp.
3101 (mips_r3041_reg_names, mips_r3051_reg_names)
3102 (mips_r3081_reg_names): Replace "fp" with "".
3107 * gdb/avr-tdep.c(avr_scan_prologue): Fix bad call to
3108 generic_read_register_dummy() (PR gdb/703).
3109 (avr_push_return_address): #if 0 out unused vars.
3110 (avr_gdbarch_init): Enable use of avr_push_return_address().
3114 * m32r-stub.c (restore_and_return): Postpone restoring of PSW.
3115 RTE will take care of it.
3119 * arch-utils.c (legacy_virtual_frame_pointer): If FP_REGNUM is
3120 invalid, return SP_REGNUM.
3124 * mips-tdep.c (mips_pop_frame): Read saved values of floating
3125 point registers without sign extension.
3129 * blockframe.c (deprecated_read_register_dummy): Rename
3130 generic_read_register_dummy.
3131 * frame.c (frame_unwind_signed_register): New function.
3132 (frame_unwind_unsigned_register): New function.
3133 * frame.h (frame_unwind_signed_register): Declare.
3134 (frame_unwind_unsigned_register): Declare.
3135 (deprecated_read_register_dummy): Rename
3136 generic_read_register_dummy.
3138 * h8300-tdep.c (h8300_frame_chain): Update.
3139 (h8300_frame_saved_pc): Update.
3140 * xstormy16-tdep.c (xstormy16_frame_saved_pc): Update.
3141 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
3142 * s390-tdep.c (s390_frame_saved_pc_nofix): Update.
3143 (s390_frame_chain): Update.
3144 * v850-tdep.c (v850_find_callers_reg): Update.
3145 (v850_frame_saved_pc): Update.
3146 * m32r-tdep.c (m32r_init_extra_frame_info): Update.
3147 (m32r_find_callers_reg): Update.
3148 (m32r_frame_saved_pc): Update.
3149 * sh-tdep.c (sh_find_callers_reg): Update.
3150 (sh64_get_saved_pr): Update.
3151 (sh_init_extra_frame_info): Update.
3152 (sh_init_extra_frame_info): Update.
3153 (sh64_init_extra_frame_info): Update.
3154 (sh64_init_extra_frame_info): Update.
3155 * mcore-tdep.c (mcore_find_callers_reg): Update.
3156 (mcore_frame_saved_pc): Update.
3157 (mcore_init_extra_frame_info): Update.
3158 * i386-tdep.c (i386_frame_saved_pc): Update.
3159 * ia64-tdep.c (ia64_frame_saved_pc): Update.
3160 (ia64_init_extra_frame_info): Update.
3161 (ia64_init_extra_frame_info): Update.
3162 * d10v-tdep.c (d10v_frame_saved_pc): Update.
3163 * cris-tdep.c (cris_init_extra_frame_info): Update.
3164 * avr-tdep.c (avr_frame_chain): Update.
3165 (avr_init_extra_frame_info): Update.
3166 (avr_frame_saved_pc): Update.
3167 * arm-tdep.c (arm_find_callers_reg): Update.
3168 (arm_init_extra_frame_info): Update.
3169 (arm_frame_saved_pc): Update.
3173 * c-lang.c (c_emit_char): Don't treat \0 specially unless quoter
3178 * MAINTAINERS: Remove "non multi-arched" text from h8300.
3179 * h8300-tdep.c (h8300_next_prologue_insn) Renamed from
3181 (h8300_examine_prologue): Call h8300_next_prologue_insn instead of
3186 * osfsolib.c: Remove file, replaced by solib-osf.c.
3187 * Makefile.in: Remove compilation rules for osfsolib.c.
3191 * cp-valprint.c (cp_print_class_method): Correct args to
3192 check_stub_method_group.
3196 * h8300-tdep.c: Multiarch. Drop `set machine' command in favor of
3197 `set architecture'. Unify naming convention of functions.
3198 (h8300_skip_prologue): Improve prologue analysis.
3199 (h8300_push_arguments): Rewritten to more closely match GCC's
3200 bizarre argument-passing behavior, along with the comment describing
3202 * remote-hms.c (hms_regnames): Don't use NUM_REGS in definition.
3203 * config/h8300/tm-h8300.h: Multiarch. Just keep stuff needed by
3204 sim, remote-e7000.c, remote-hms.c and remote.c
3208 * i386-tdep.c (gdb_print_insn_i386): Removed.
3209 (i386_print_insn): New function.
3210 (i386_gdbarch_init): Set print_insn to i386_print_insns.
3211 (_initialize_i386_tdep): Don't initialize tm_print_insn and
3216 * gdbtypes.c (check_stub_method_group): Initialize found_stub to
3221 * arch-utils.c (legacy_pc_in_sigtramp): Move preprocessor expression
3222 for IN_SIGTRAMP to here. Use IN_SIGTRAMP only if it's defined.
3223 Guard usage of SIGTRAMP_START() by using SIGTRAMP_START_P.
3227 * win32-nat.c (child_create_inferior): Honor 'tty' command.
3231 * gdbtypes.c (check_stub_method): Make static.
3232 (check_stub_method_group): New function.
3233 * gdbtypes.h: Update prototypes.
3234 * cp-support.c: New file.
3235 * cp-support.h: New file.
3237 * stabsread.c: Include "cp-abi.h" and "cp-support.h".
3238 (update_method_name_from_physname): New function.
3239 (read_member_functions): Correct method names for operators
3240 and v3 constructors/destructors. Separate v2 constructors and
3242 * Makefile.in (stabsread.o): Update dependencies.
3243 (SFILES): Add cp-support.c.
3244 (COMMON_OBS): Add cp-support.o.
3245 (cp_support_h, cp-support.o): Add.
3247 * cp-valprint.c (cp_print_class_method): Call
3248 check_stub_method_group instead of check_stub_method. Remove
3250 * p-valprint.c (pascal_object_print_class_method): Likewise.
3251 * valops.c (search_struct_method): Likewise.
3252 (find_method_list, value_struct_elt_for_reference): Likewise.
3256 * gdbarch.sh (SIGTRAMP_END): Change to a predicate function.
3257 * gdbarch.h, gdbarch.c: Regenerate.
3261 * frame.c (find_saved_register): Delete function.
3262 * frame.h (find_saved_register): Delete declaration.
3267 * mips-tdep.c (read_next_frame_reg): Re-hack using
3268 frame_register_unwind.
3272 * mips-tdep.c (mips_get_saved_register): Re-hack using
3273 frame_register_unwind.
3277 * gdbarch.sh (NAME_OF_MALLOC): New variable in the architecture
3278 vector. Will be useful for Interix.
3279 * gdbarch.h, gdbarch.c: Regenerate.
3281 * valops.c (value_allocate_space_in_inferior): Replace hard-coded
3282 name of the malloc function by NAME_OF_MALLOC.
3286 * value.h (find_function_in_inferior): Add const keyword to
3287 one of the parameters. Allows us to invoke this function with
3289 * valops.c (find_function_in_inferior): Likewise.
3293 * exec.c (xfer_memory): Fix compilation warning with old versions
3295 * tracepoint.c (trace_find_tracepoint_command): Likewise.
3299 * symtab.h: Run through gdb_indent.h.
3300 Add 2002 to Copyright year list.
3304 * x86-64-tdep.c (_initialize_x86_64_tdep): Don't use hard-coded
3306 * MAINTAINERS: Add myself to write after approval list.
3310 * osabi.c (gdb_osabi_name): Add entry for GDB_OSABI_INTERIX.
3314 * osabi.h (gdb_osabi): Add new GDB_OSABI_INTERIX enum value for
3319 * procfs.c (do_detach): Clear current signal, not just fault.
3320 Corrects problem with breakpoint trap signal leaking to detached
3325 * buildsym.c (finish_block): Protect against null pointer.
3329 * infcmd.c (default_print_registers_info): Send all output to
3330 ``file'' instead of ``gdb_stdout''.
3334 * mips-tdep.c (mips_extract_struct_value_address): Make val a
3335 LONGEST, and use signed register read (addresses are sign-
3340 * event-loop.c (gdb_do_one_event): Make public.
3341 * event-loop.h (gdb_do_one_event): Declare.
3345 * infttrace.c (child_resume): Simplify and rework to avoid
3350 * printcmd.c (print_scalar_formatted): "len" is the number of
3351 target bytes, NOT the number of target bits.
3356 * top.c (init_main): Set rl_terminal_name.
3360 * ada-lang.c (ada_array_bound, ada_type_match,
3361 _initialize_ada_language): Fix K&R definitions.
3362 * ada-tasks.c (get_current_task): Fix K&R definitions.
3363 * ada-valprint.c (adjust_type_signedness): Fix K&R definitions.
3367 * MAINTAINERS: Remove CE from list of maintainership responsibilities.
3372 * i386-tdep.c (i386_register_virtual_type,
3373 i386_register_convertible, i386_register_convert_to_virtual,
3374 i386_register_comvert_to_raw): Use FP_REGNUM_P and SSE_REGNUM_P
3375 instead of IS_FP_REGNUM and IS_SSE_REGNUM.
3376 (i386_gdbarch_init): Fix comment. Add comments on calls that set
3377 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum.
3378 Don't set push_arguments twice.
3380 * i386bsd-tdep.c (i386bsd_init_abi): Set sigtramp_start and
3381 sigtramp_end to i386bsd_sigtramp_start and i386bsd_sigtramp_end.
3382 * i386nbsd-tdep.c (i386nbsd_init_abi): Set sigtramp_start and
3383 sigtramp_end to NULL.
3384 * config/i386/tm-fbsd.h (SIGTRAMP_START, SIGTRAMP_END): Remove
3386 (i386bsd_sigtramp_start, i386_sigtramp_end): Remove prototypes.
3388 * i386nbsd-tdep.c (i386nbsd_pc_in_sigtramp): Remove spurious
3391 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): New methods.
3392 * gdbarch.h, gdbarch.c: Re-generate.
3393 * blockframe.c (find_pc_sect_partial_function): Convert to use
3394 SIGTRAMP_START_P predicate.
3398 * arm-tdep.c (arm_init_extra_frame_info): Distinguish between
3399 generic_dummy_frame method and old method. Also distinguish
3400 between ARM_FP_REGNUM and THUMB_FP_REGNUM.
3401 (arm_extract_return_value): Use new regcache method.
3403 * mips-tdep.c (mips_n32n64_push_arguments): Remove alignment
3404 adjustment that doesn't conform to the ABI.
3405 (mips_extract_struct_value_address): Retrieve V0_REGNUM from
3406 saved regcache, not from current regcache.
3410 * NEWS: Update for 5.3. Add new section ``Changes since 5.3''.
3415 * arm-tdep.c (arm_addr_bits_remove): Don't check for Thumb mode
3416 if arm_apcs_32 is false.
3420 GDB 5.3 branch created.
3424 * gdb/avr-tdep.c (avr_gdbarch_init): Use
3425 generic_unwind_get_saved_register.
3429 * dwarf2read.c (dwarf2_add_member_fn): Add the 'type'
3430 argument (PR gdb/653). Update call to smash_to_method_type.
3431 (read_structure_scope): Update call to dwarf2_add_member_fn.
3435 * x86-64-linux-tdep.c: Include gdb_string.h
3436 * x86-64-linux-nat.c: Ditto.
3440 * ada-exp.y (yyname, yyrule): Remap global variables that appear
3441 when YYDEBUG is set to 1.
3442 * c-exp.y: Likewise.
3443 * f-exp.y: Likewise.
3444 * jv-exp.y: Likewise.
3445 * m2-exp.y: Likewise.
3446 * p-exp.y: Likewise.
3450 * Makefile.in (i386nbsd-tdep.o): Add $(solib_svr4_h) to
3452 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Set
3453 solib_svr4_fetch_link_map_offsets to
3454 nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
3455 * config/i386/nbsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
3456 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
3457 * config/i386/nbsdelf.mh (NATDEPFILES): Remove solib.o,
3458 solib-svr4.o, and solib-legacy.o.
3459 * config/i386/tm-nbsd.h: Include solib.h.
3463 * configure.tgt (i[3456]86-*-netbsdelf*): Merge with...
3464 (i[3456]86-*-netbsd*): ...this. Set gdb_target to nbsd.
3465 (i[3456]86-*-openbsd*): Make this a separate entry. Add a
3466 comment noting that this needs its own target configuration.
3467 * config/i386/nbsd.mt: New file.
3468 * config/i386/nbsdaout.mt: Remove.
3469 * config/i386/nbsdelf.mt: Ditto.
3470 * config/i386/tm-nbsdaout.h: Ditto.
3474 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): New function.
3475 (i386nbsd_pc_in_sigtramp): Rewrite to use i386nbsd_sigtramp_offset.
3476 (i386nbsd_init_abi): Don't initialize tdep->sigtramp_start or
3478 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end): Remove.
3479 * config/i386/tm-nbsd.h (SIGTRAMP_START, SIGTRAMP_END)
3480 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove.
3484 * Makefile.in (i386nbsd-tdep.o): Add $(arch_utils_h),
3485 $(i386_tdep_h), and $(nbsd_tdep_h) to dependency list.
3486 * i386-tdep.h (i386bsd_init_abi): New prototype.
3487 * i386bsd-tdep.c (i386bsd_init_abi): Remove "static" from
3488 function declaration.
3489 (_initialize_i386bsd_tdep): Don't register OS ABI handlers
3490 for NetBSD-a.out or NetBSD-ELF.
3491 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end)
3492 (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset)
3493 (i386nbsd_init_abi, i386nbsdelf_init_abi): Move to...
3494 * i386nbsd-tdep.c: ...here. Include arch-utils.h, i386-tdep.h,
3496 (i386nbsd_pc_in_sigtramp): New function.
3497 (i386nbsd_init_abi): Set gdbarch_pc_in_sigtramp to
3498 i386nbsd_pc_in_sigtramp.
3499 (_initialize_i386nbsd_tdep): Register i386nbsd_init_abi
3500 and i386nbsdelf_init_abi OS ABI handlers.
3501 * config/i386/nbsdaout.mt (TDEPFILES): Add nbsd-tdep.o.
3502 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
3506 * i386-linux-nat.c (dummy_sse_values): Only try to fill in the SSE
3507 registers if the target really has them.
3511 * Makefile.in (mipsnbsd-tdep.o): Use $(nbsd_tdep_h) rather
3516 * Makefile.in (alphanbsd-tdep.o): Add $(frame_h) to dependency
3518 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr)
3519 (alphanbsd_skip_sigtramp_frame): New functions.
3520 (alphanbsd_init_abi): Set tdep->skip_sigtramp_frame to
3521 alphanbsd_skip_sigtramp_frame. Set tdep->sigcontext_addr
3522 to alphanbsd_sigcontext_addr.
3526 * Makefile.in (mipsnbsd-tdep.o): Add nbsd-tdep.h to dependency
3528 (nbsd-tdep.o): Add $(gdb_string_h) to dependency list.
3529 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): Use
3530 nbsd_pc_in_sigtramp.
3531 * mipsnbsd-tdep.c: Include nbsd-tdep.h.
3532 (mipsnbsd_pc_in_sigtramp): Use nbsd_pc_in_sigtramp.
3533 * nbsd-tdep.c: Include gdb_string.h.
3534 (nbsd_pc_in_sigtramp): New function.
3535 * nbsd-tdep.h (nbsd_pc_in_sigtramp): New prototype.
3536 * ppcnbsd-tdep.c (ppcnbsd_pc_in_sigtramp): New function.
3537 (ppcnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
3538 ppcnbsd_pc_in_sigtramp.
3539 * shnbsd-tdep.c (shnbsd_pc_in_sigtramp): New function.
3540 (shnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
3541 shnbsd_pc_in_sigtramp.
3542 * sparcnbsd-tdep.c (sparcnbsd_init_abi_elf): Set
3543 gdbarch_pc_in_sigtramp to nbsd_pc_in_sigtramp.
3544 * config/mips/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
3548 * breakpoint.c (breakpoint_init_inferior): Reset the val field of
3549 watchpoints to NULL.
3550 (insert_breakpoints): set val field of watchpoints if NULL.
3555 * symtab.c (lookup_symbol_aux): In the cases where we find a
3556 minimal symbol of an appropriate name and use its address to
3557 select a symtab to read and search, use `name' (as passed to us)
3558 as the demangled name when searching the symtab's global and
3559 static blocks, not the minsym's name.
3563 * stack.c (print_frame_info_base): Always set current_source_symtab
3564 and current_source_line.
3568 * proc-api.c (rw_table): Fix typo in #ifdef PCSHOLD (missing S).
3572 * stack.c (select_frame): Add FIXME concerning selected-frame
3574 (select_frame_command): Send selected-frame-level-changed
3575 event notification, but only if the level actually changed.
3576 (up_silently_base): Add selected-frame-level-changed event
3578 (down_silently_base): Likewise.
3582 * Makefile.in: Update dependencies for all gdb/*.c files.
3586 * Makefile.in (osabi.o, i387-tdep.o, i386-linux-nat.o, lin-lwp.o,
3587 ax-gdb.o, signals.o, jv-valprint.o, c-valprint.o, cp-abi.o):
3588 Update dependencies.
3589 * i387-tdep.c: Include gdb_string.h.
3590 * osabi.c: Likewise.
3591 * i386-linux-nat.c: Likewise.
3592 * lin-lwp.c: Likewise.
3593 * ax-gdb.c: Likewise.
3594 * signals/signals.c: Likewise.
3595 * jv-valprint.c: Likewise.
3596 * p-lang.c: Likewise.
3597 * c-valprint.c: Likewise.
3598 * cp-abi.c: Likewise.
3602 * cli/cli-script.h (copy_command_lines): Export.
3603 * breakpoint.c: Include cli/cli-script.h.
3604 * Makefile.in (breakpoint.o): Update dependencies.
3608 * breakpoint.c (insert_breakpoints): Protect all references
3609 to 'process_warning'. Shorten long lines.
3613 * cli/cli-script.c (copy_command_lines): New function.
3614 * defs.h (copy_command_lines): Export.
3615 * testsuite/gdb.base/commands.exp: New tests for commands
3616 attached to a temporary breakpoint, and for commands that
3617 delete the breakpoint they are attached to.
3621 * breakpoint.c (bpstat_stop_status): Instead of copying the
3622 pointer to the breakpoint commands struct, make a new copy
3623 of the struct and point to that.
3624 (bpstat_clear): Free the commands struct.
3625 (bpstat_clear_actions): Free the commands struct.
3626 (bpstat_do_actions): Free the command actions. Also execute
3627 the local cleanups, instead of deleting them.
3628 (delete_breakpoint): Leave the commands field of the bpstat
3629 chain alone -- it will be freed later.
3633 * rs6000-tdep.c (altivec_register_p): Restore function inadvertently
3634 deleted in 2002-08-20 commit. This function is still used by
3639 * gdb-events.sh: Add selected-frame-level-changed event.
3640 * gdb-events.c: Regenerated.
3641 * gdb-events.h: Regenerated.
3646 * inflow.c (terminal_save_ours): New function to save terminal
3648 * inferior.h (terminal_save_ours): Declare.
3649 * target.c (debug_to_terminal_save_ours): New function.
3650 (cleanup_target): Defaults to_terminal_save_ours.
3651 (update_current_target): Inherit to_terminal_save_ours.
3652 (setup_target_debug): Set to_terminal_save_ours.
3653 * target.h (target_terminal_save_ours): New to save terminal settings.
3654 (target_ops): New member to_terminal_save_ours.
3655 * gnu-nat.c (init_gnu_ops): Set to_terminal_save_ours.
3656 * hpux-thread.c (init_hpux_thread_ops): Likewise.
3657 * inftarg.c (init_child_ops): Likewise.
3658 * m3-nat.c (init_m3_ops): Likewise.
3659 * procfs.c (init_procfs_ops): Likewise.
3660 * wince.c (init_child_ops): Likewise.
3661 * win32-nat.c (init_child_ops): Likewise.
3662 * sol-thread.c (init_sol_thread_ops): Likewise.
3666 * i386-tdep.c (i386_store_return_value): Undeprecate. Convert to
3667 use regcache_* functions.
3668 (i386_gdbarch_init): Set store_return_value instead of
3669 deprecated_store_return_value.
3671 * regcache.c (regcache_raw_write_signed,
3672 regcache_raw_write_unsigned): New functions.
3673 * regcache.h (regcache_raw_write_signed,
3674 regcache_raw_write_unsigned): New prototypes.
3678 * Makefile.in (c-exp.tab.o, jv-exp.tab.o, f-exp.tab.o)
3679 (m2-exp.tab.o, p-exp.tab.o, ada-exp.tab.o): Move to before the
3680 source file dependencies. Cleanup corresponding generator rules.
3684 * regcache.h (register_offset_hack): Declare.
3685 (regcache_cooked_read_using_offset_hack): Declare.
3686 (regcache_cooked_write_using_offset_hack): Declare.
3688 * regcache.c (register_offset_hack): New function.
3689 (regcache_cooked_read_using_offset_hack): New function.
3690 (regcache_cooked_write_using_offset_hack): New function.
3691 (regcache_dump): Check that the registers, according to their
3692 offset, are packed hard against each other.
3693 (cooked_xfer_using_offset_hack): New function.
3697 * regcache.c (struct regcache_descr): Add field register_type.
3698 (init_legacy_regcache_descr): Pass a pre-allocated regcache_descr
3700 (init_regcache_descr): Initialize register_type. Pass the descr
3701 to init_legacy_regcache_descr. Use register_type instead of
3702 REGISTER_VIRTUAL_TYPE.
3703 (register_type): New function.
3704 (regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type.
3705 * regcache.h (register_type): Declare.
3709 * rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return
3710 instead of deprecated_store_return_value. Fix fallout from
3715 * regcache.c (max_register_size): New function.
3716 (init_legacy_regcache_descr): Ensure that max_register_size is
3717 large enough for REGISTER_VIRTUAL_SIZE.
3718 * regcache.h (max_register_size): Declare.
3722 * rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
3724 (e500_extract_return_value): Change type of valbuf pointer to
3729 * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
3732 * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
3733 PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
3734 long long) to prevent compiler warning on 64-bit systems.
3738 * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
3739 (DEPRECATED_STORE_RETURN_VALUE): New method.
3740 (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
3741 * gdbarch.h, gdbarch.c: Re-generate.
3743 * values.c (set_return_value): Pass current_regcache to
3745 * arch-utils.h (legacy_store_return_value): Declare.
3746 * arch-utils.c (legacy_store_return_value): New function.
3747 (legacy_extract_return_value): Update parameters.
3749 * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
3751 * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3752 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3753 * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3754 * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3755 * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3756 * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3757 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3758 * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3759 * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3760 * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3762 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3763 * i386-tdep.c (i386_extract_return_value): Update.
3764 * arch-utils.c (legacy_extract_return_value): Update.
3765 * frv-tdep.c (frv_gdbarch_init): Update.
3766 * cris-tdep.c (cris_gdbarch_init): Update.
3767 * d10v-tdep.c (d10v_gdbarch_init): Update.
3768 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3769 * m68k-tdep.c (m68k_gdbarch_init): Update.
3770 * mcore-tdep.c (mcore_gdbarch_init): Update.
3771 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3772 * s390-tdep.c (s390_gdbarch_init): Update.
3773 * sparc-tdep.c (sparc_gdbarch_init): Update.
3774 * sh-tdep.c (sh_gdbarch_init): Update.
3775 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
3776 * v850-tdep.c (v850_gdbarch_init): Update.
3777 * avr-tdep.c (avr_gdbarch_init): Update.
3778 * ia64-tdep.c (ia64_gdbarch_init): Update.
3779 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
3780 * vax-tdep.c (vax_gdbarch_init): Update.
3781 * alpha-tdep.c (alpha_gdbarch_init): Update.
3782 * arm-tdep.c (arm_gdbarch_init): Update.
3783 * mips-tdep.c (mips_gdbarch_init): Update.
3784 * i386-tdep.c (i386_gdbarch_init): Update.
3788 * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
3789 bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
3793 * PROBLEMS: Refer to GDB 5.3 instead of 5.2. Mention FreeBSD
3798 * infrun.c (handle_inferior_event): Move a comment outside of a
3799 function call, in order to avoid indent reformatting this part
3800 of the code in an unreadable way.
3804 * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
3805 when breakpoints fail. Move general breakpoint error messages to
3807 * breakpoint.c (insert_breakpoints): Change warnings when
3808 breakpoints are nto inserted to specify the type. Remove call to
3809 memory_error when hardware breakpoints can't be inserted. Remove
3810 multiple calls to warning so all messages are sent to the user at
3812 (delete_breakpoints): Make insert error messsages more explicit.
3816 * ChangeLog: Move gdbserver entries after GDB 5.2 to
3817 gdbserver/ChangeLog.
3821 * i386-tdep.c: Include "objfiles.h".
3822 (i386_svr4_init_abi): Set in_solib_call_trampoline and
3823 skip_trampoline_code.
3824 * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
3825 (CPLUS_MARKER): Define to '.'.
3827 * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
3829 (linux_corefile_thread_callback): Increase args->num_notes.
3830 (linux_make_note_section): Initialize thread_args.num_notes, and
3831 use it to determine whether notes for any threads were created.
3835 * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
3836 corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
3838 (write_with_trace): Conditionalize out the switch branch handling
3839 PCSHOLD if the corresponding macro is not defined. Likewise for
3840 PRSABORT and PRSTOP.
3841 This change will be needed by the Interix port.
3845 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): use
3846 write_register wherever possible instead of manipulating the
3847 register bytes directly.
3848 Assign VALUE_CONTENTS to a variable and use that.
3849 The GPR numbers are now dependent on the architecture.
3853 * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
3855 (skip_prologue): Add support for BookE/e500 instructions.
3856 (e500_extract_return_value): New function.
3857 (frame_get_saved_regs): Add support for saving ev registers and
3859 (e500_store_return_value): New function.
3860 (rs6000_gdbarch_init): Move up default intializations of
3861 deprecated_extract_return_value and store_return_value. Overwrite
3862 init of store_return_value with e500 specific version.
3863 Set extract_return_value for e500.
3867 * blockframe.c (generic_call_dummy_register_unwind): Use
3868 regcache_cooked_read to catch cases in which the variable is
3869 stored in a pseudo register.
3873 * NEWS: Mention that the i960 has been made obsolete.
3874 * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
3876 (remote-nrom.o): Obsolete target.
3877 (remote-nindy.o, i960-tdep.o): Ditto.
3878 * remote-nrom.c: Make file obsolete.
3879 * remote-nindy.c, remote-vx960.c: Ditto.
3880 * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
3881 * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
3882 * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
3883 * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
3884 * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
3885 i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
3886 i960-*-vxworks* obsolete.
3887 * MAINTAINERS: Note that the i960 is obsolete.
3891 * aix-thread.c (aix_thread_detach): Disable thread debugging on
3892 detach to allow reinitialization.
3896 * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
3901 * coffread.c (coff_symfile_read): Don't try to read the line
3902 number table from disk if the image file doesn't have a symbol
3903 table; we'll never actually look at the info anyway, and Windows
3904 ships DLL's with bogus file offsets for the line number data.
3908 * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
3913 * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
3914 (MSYMBOL_SIZE): Replace macro with function.
3915 (DEFAULT_MIPS_TYPE): Delete unused macro.
3916 * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
3917 * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
3921 * valops.c (value_cast): Simplify and correct logic for doing a
3922 static cast from a pointer to a base class to a pointer to a
3927 * infcmd.c (default_print_registers_info): Replace
3929 (registers_info): Use gdbarch_print_registers_info instead of
3931 * inferior.h (default_print_registers_info): Replace
3933 * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
3934 (DO_REGISTERS_INFO): Change to a predicate function.
3935 * gdbarch.h, gdbarch.c: Regenerate.
3939 * gdb-events.sh: Add target-changed event.
3940 * gdb-events.c: Regenerated.
3941 * gdb-events.c: Regenerated.
3942 * valops.c (value_assign): Add target-changed event notification
3943 to inlval_register, lval_memory, and lval_reg_frame_relative.
3947 * NEWS: Add an entry regarding the improvement of the next/step
3948 operation on Alpha Tru64 multi-processor machines.
3952 * Makefile.in: Update dependencies for mi/ cli/ and tui/
3954 * Makefile.in: Update all _h macro definitions.
3955 * Makefile.in (install-gdbtk): Move to install section.
3956 (rdi-share/libangsd.a): Move to end of file.
3960 * frame.c (frame_register_unwind): When a register, set addrp to
3961 the register's byte.
3965 * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
3966 used locally, so move them from the target machine header to here.
3967 (mips_set_processor_type, mips_register_name, mips32_next_pc,
3968 mips16_next_pc, cached_proc_desc, mips_set_processor_type):
3970 * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
3974 * NEWS: Mention that the Apollo line was made obsolete.
3975 * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
3976 m68*-hp-hpux* obsolete.
3977 * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
3978 m68*-hp-bsd* and m68*-hp-hpux* obsolete.
3979 * buildsym.c (make_blockvector): Make static.
3980 * buildsym.h (make_blockvector): Make extern declaration obsolete.
3981 * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
3982 (ALLDEPFILES): Remove dstread.c.
3983 (dstread.o): Obsolete make rule.
3984 * dstread.c: Makefile obsolete.
3986 * config/m68k/hp300hpux.mt: Ditto.
3987 * config/m68k/hp300hpux.mh: Ditto.
3988 * config/m68k/hp300bsd.mt: Ditto.
3989 * config/m68k/hp300bsd.mh: Ditto.
3990 * config/m68k/apollo68b.mt: Ditto.
3991 * config/m68k/apollo68v.mh: Ditto.
3992 * config/m68k/apollo68b.mh: Ditto.
3996 * mips-tdep.c (mips_in_return_stub): Make static.
3997 (mips_gdbarch_init): Set in_solib_return_trampoline.
3998 * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
4002 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
4003 * gdbarch.c, gdbarch.h: Regenerate.
4004 * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
4006 * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
4010 * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
4011 (mips_gdbarch_init): Set skip_trampoline_code,
4012 in_solib_call_trampoline.
4013 * config/mips/tm-mips.h (REGISTER_NAME): Delete.
4014 (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
4018 * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
4020 * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
4021 vector type for ev registers.
4022 (e500_pseudo_register_read): New function.
4023 (e500_pseudo_register_write): New function.
4024 (e500_dwarf2_reg_to_regnum): New function.
4025 (PPC_UISA_NOFP_SPRS): New macro.
4026 (PPC_EV_REGS): New macro.
4027 (PPC_GPRS_PSEUDO_REGS): New macro.
4028 (registers_e500): New register set for e500.
4029 (variants): Add e500 variant.
4030 (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
4031 before setting architectural dependent variations. Initialize ev
4032 registers numbers. Add case for e500 architecture. Set the
4033 number of pseudo registers.
4037 * rs6000-tdep.c: Clean up comments.
4041 * h8300-tdep.c: Re-indent file.
4045 * Makefile.in (LDFLAGS): Allow the configure script to establish a
4050 * breakpoints.c (watch_command_1): Use internal breakpoint
4051 when setting a watchpoint_scope breakpoint.
4055 * gdbtypes.c (build_builtin_type_vec64): Add name to type.
4056 (build_builtin_type_vec64i): Ditto.
4057 (build_builtin_type_vec128): Ditto.
4058 (build_builtin_type_vec128i): Ditto.
4062 * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
4063 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
4064 (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
4065 POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
4066 (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
4067 CALL_DUMMY_ADDRESS): Delete.
4068 * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
4069 mips_msymbol_is_special, mips_fix_call_dummy): New functions.
4070 (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame,
4071 push_dummy_frame, fix_call_dummy, init_extra_frame_info,
4072 push_return_address.
4073 (mips_register_raw_size, mips_eabi_use_struct_convention,
4074 mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
4075 mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
4076 mips_init_extra_frame_info, mips_eabi_push_arguments,
4077 mips_n32n64_push_arguments, mips_push_return_address,
4078 mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
4079 mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
4083 * mips-tdep.c (mips_frame_num_args): New function.
4084 (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
4085 frame_saved_pc, frame_args_address, frame_locals_address,
4086 frame_num_args, and frame_args_skip.
4087 * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
4088 FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS,
4089 FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
4090 * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
4094 * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
4095 (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
4096 * mips-tdep.c (mips_store_struct_return): New function.
4097 (mips_extract_struct_value_address): New function.
4098 (mips_gdbarch_init): Set store_struct_return and
4099 extract_struct_value_address.
4103 * dwarf2read.c (dwarf2_build_psymtabs): Check that
4104 dwarf_line_offset is nonzero before creating dwarf_line_buffer.
4105 (read_file_scope): Check that line_header is nonzero before
4106 decoding macro information.
4110 * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
4111 flag the general-purpose registers as floating-point on targets
4112 that don't support the floating-point registers.
4116 * rs6000-tdep.c (altivec_register_p): Delete.
4117 (rs6000_do_altivec_registers): Delete.
4118 (rs6000_altivec_registers_info): Delete.
4119 (rs6000_do_registers_info): Delete.
4120 (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
4121 (rs6000_gdbarch_init): Remove setting of do_registers_info.
4125 * infcmd.c (do_registers_info): Print vector registers in hex
4127 (print_vector_info): Check that printing registers
4129 (print_float_info): Ditto.
4133 * mips-tdep.c (mips_gdbarch_init): Update.
4134 (mips_o32_extract_return_value): Rewrite.
4135 (mips_o32_store_return_value): Rewrite.
4136 (mips_o32_xfer_return_value): New function.
4137 (mips_xfer_register): Tweak debug print message. Allow for
4138 buf_offset when dumping the value transfered.
4142 * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
4143 * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
4144 * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
4145 * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
4146 * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
4150 * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
4154 * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
4156 (P): New macro to define a register as a pseudo register.
4157 (R, R4, R8, R16, FR32, R64, R0): Updated.
4158 (struct variant): Add new fields for number of pseudo registers
4159 and number of total registers.
4160 (tot_num_registers): New macro replacing....
4161 (num_registers): ...deleted macro.
4162 (num_registers): New function.
4163 (num_pseudo_registers): New function.
4164 (variants): Update all variants to intialize new fields correctly.
4165 Postpone initialization of number of pseudo regs and real regs.
4166 (init_variants): New function.
4167 (rs6000_gdbarch_init): Initialize variants. Update calculation of
4172 * valops.c (search_struct_field): Change error message to treat
4173 return value of 0 from value_static_field as meaning that field is
4175 (value_struct_elt_for_reference): Ditto.
4176 * values.c (value_static_field): Treat an unresolved location the
4177 same as a nonexistent symbol. Fix PR gdb/635.
4178 * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
4179 enclosed. Fix PR gdb/574.
4180 * MAINTAINERS: Add self to Write After Approval list.
4184 * mips-tdep.c (mips_xfer_register): New function.
4185 (mips_n32n64_extract_return_value): Rewrite.
4186 (mips_gdbarch_init): For N32 and N64, set extract_return_value
4187 instead of deprecated_extract_return_value.
4191 * rs6000-tdep.c (TDEP): Delete macro.
4192 (branch_dest): Replace use of TDEP macro with its body.
4193 (rs6000_pop_frame): Ditto.
4194 (rs6000_push_arguments): Ditto.
4195 (rs6000_skip_trampoline_code): Ditto.
4196 (rs6000_frame_saved_pc): Ditto.
4197 (rs6000_frame_chain): Ditto.
4198 (rs6000_register_name): Ditto.
4199 (rs6000_register_byte): Ditto.
4200 (rs6000_register_raw_size): Ditto.
4201 (rs6000_register_virtual_type): Ditto.
4202 (rs6000_register_convertible): Ditto.
4203 (rs6000_convert_from_func_ptr_addr): Ditto.
4207 * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
4209 (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
4210 MIPS_LINUX_JB_ELEMENT_SIZE.
4211 * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
4212 for MAX_REGISTER_RAW_SIZE arrays.
4213 (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
4214 MIPS_LINUX_JB_ELEMENT_SIZE.
4218 * i387-tdep.c (i387_print_float_info): Fix typo in comment.
4222 * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
4223 ada-valprint.c ada-tasks.c.
4224 (YYFILES): Add ada-exp.y.
4225 (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
4226 (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
4227 (ada-exp.tab.o): New target.
4231 * regcache.c (regcache_xfer_part): New function.
4232 (regcache_raw_read_part): New function.
4233 (regcache_raw_write_part): New function.
4234 (regcache_cooked_read_part): New function.
4235 (regcache_cooked_write_part): New function.
4236 * regcache.h (regcache_raw_read_part): Declare.
4237 (regcache_raw_write_part): Declare.
4238 (regcache_cooked_read_part): Declare.
4239 (regcache_cooked_write_part): Declare.
4243 * remote.c (remote_open_1): Add async_p.
4244 (remote_async_open_1): Delete.
4245 (open_remote_target): Delete.
4246 (remote_open, extended_remote_open): Update calls to remote_open_1.
4247 (remote_async_open, extended_remote_async_open): Call
4248 remote_open_1 instead of remote_async_open_1.
4252 * blockframe.c: Fix a few coding standard violations.
4256 * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
4258 * config/i386/tm-i386sco5.h: ... here. File removed.
4259 * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
4261 * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
4262 * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
4263 (TM_FILE): Set to tm-i386.h.
4264 * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
4265 * config/i386/tm-i386v.h: Remove file.
4266 * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
4267 instead of "i386/tm-i386v.h".
4268 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
4269 * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
4271 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
4272 * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
4277 * config/i386/nm-i386v.h: Add protection against
4279 (i386_register_u_addr): Remove prototype.
4280 (register_u_addr): New prototype.
4281 (REGISTER_U_ADDR): Redefine accordingly.
4282 * i386v-nat.c: Improve several comments.
4283 (i386_register_u_addr): Change signature and rename to
4284 register_u_addr. Use FP_REGNUM_P. Rewrite slightly to get rid of
4289 * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
4290 (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
4291 * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
4292 deprecated_extract_return_value.
4293 (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
4294 rename mips_o32o64_push_arguments.
4295 (mips_gdbarch_init): Update.
4296 (mips_extract_return_value): Delete.
4297 (mips_o32_extract_return_value): Clone mips_extract_return_value.
4298 (mips_o64_extract_return_value): Clone mips_extract_return_value.
4299 (mips_eabi_extract_return_value): Clone mips_extract_return_value.
4300 (mips_n32n64_extract_return_value): Clone
4301 mips_extract_return_value.
4302 (mips_store_return_value): Delete.
4303 (mips_o32_store_return_value): Clone mips_store_return_value.
4304 (mips_o64_store_return_value): Clone mips_store_return_value.
4305 (mips_eabi_store_return_value): Clone mips_store_return_value.
4306 (mips_n32n64_store_return_value): Clone mips_store_return_value.
4310 * ada-lang.c: Use gdb_string.h instead of <string.h>.
4311 * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
4315 * ada-lang.c: Run through gdb_indent.sh.
4316 * ada-lang.h: Run through gdb_indent.sh.
4317 * ada-tasks.c: Run through gdb_indent.sh.
4318 * ada-typeprint.c: Run through gdb_indent.sh.
4319 * ada-valprint.c: Run through gdb_indent.sh.
4323 * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
4328 * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
4330 * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
4331 * i386b-nat.c [FLOAT_INFO]: Remove dead code.
4333 * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
4334 write_register_gen instead of write_register_bytes.
4336 * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
4337 i[3456]-*-osf1mk* configurations have been made obsolete.
4338 * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
4339 i[3456]86-*-osf1mk* hosts obsolete.
4340 * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
4342 * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
4343 config/i386/xm-i386mach.h, config/i386/i386m3.mh,
4344 config/i386/i386m3.mt, config/i386/nm-m3.h,
4345 config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
4346 config/i386/i386mk.mh, config/i386/i386mk.mt,
4347 config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
4349 * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
4350 * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
4351 (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
4355 * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
4356 (hppa_value_returned_from_stack): Declare.
4357 (hppa_extract_return_value): Declare.
4358 * config/pa/hppa.mt: New file.
4359 * configure.tgt: Recognize hppa*-*-*.
4360 * MAINTAINERS: Change HPPA target to hppa-elf. Still broken.
4364 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
4369 * top.c (gdb_rl_operate_and_get_next): Make sure
4370 operate-and-get-next functions correctly even when the history
4371 list is completely filled.
4375 * MAINTAINERS (Target Instruction Set Architectures): Rename
4376 Target/Architectures. Replace vax-dec-vms5.5 with vax-netbsd.
4377 Replace s390-linux with s390-linux-gnu. Remove i386-aout,
4378 mcore-pe, mips64-elf, sparc64-elf. Remove i586-pc-msdosdjgpp,
4379 already listed under Host/Native.
4381 * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
4382 i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*. Add
4387 * config/ia64/ia64.mt: New file.
4388 * config/alpha/alpha.mt: New file.
4389 * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
4390 ia64-linux-gnu. Mention that ia64-elf is broken.
4391 * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
4395 * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
4396 generic_func_frame_valid instead of func_frame_valid.
4400 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
4401 procfs appears to be broken when debugging on multi-processor
4402 machines. So enable software single stepping in order to avoid
4403 using the procfs interface to do next/step operations, using
4404 internal breakpoints instead.
4406 * infrun.c (handle_inferior_event): Readjust the stop_pc by
4407 DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
4408 make this pc address equal to the value it would have if the
4409 system stepping capability was used. Also set a new flag used
4410 to ensure that we don't readjust the PC one more time later.
4412 * breakpoint.c (bpstat_stop_status): Do not adjust the PC
4413 address by DECR_PC_AFTER_BREAK when software single step is
4414 in use for this architecture, as this has already been taken
4415 care of in handle_inferior_event().
4419 * infrun.c (handle_inferior_event): Minor reformatting, to make
4420 a rather long condition expression easier to read.
4424 * Makefile.in (gdbtk.o): Move to end of file.
4425 (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
4426 (gdbtk-hooks.o, gdbtk-register.o): Ditto.
4427 (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
4428 (gdbtk-wrapper.o, gdbres.o): Ditto.
4432 * Makefile.in (copying.o): Separate out compile rule.
4433 (hpux-thread.o, procfs.o, signals.o): Ditto.
4434 (v850ice.o, z8k-tdep.o): Ditto.
4435 (tui-file.o): Move to TUI section.
4436 (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
4437 (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
4441 * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
4442 skip_trampoline_code, for better namespace-proofing.
4444 * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
4448 * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
4452 * infrun.c (handle_inferior_event): When receiving a SIGTRAP
4453 signal, check whether we hit a breakpoint before checking for a
4454 single step breakpoint. Otherwise, GDB fails to notice that a
4455 breakpoint has been hit when stepping onto a breakpoint.
4459 * gdb-events.sh (clear_gdb_event_hooks): New function.
4460 * gdb-events.c: Regenerate.
4461 * gdb-events.h: Regenerate.
4465 * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
4466 not_a_sw_breakpoint.
4467 * breakpoint.h (bpstat_stop_status): Add parameter names.
4471 * remote.c (remote_insert_hw_breakpoint)
4472 (remote_remove_hw_breakpoint): Fix calculation of length field
4477 * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
4478 (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
4479 (supply_fpregset): Ditto.
4481 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL,
4482 REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE,
4483 MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
4484 (TARGET_READ_SP): Delete.
4485 (DO_REGISTERS_INFO): Delete.
4486 (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
4488 (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
4489 from macros to functions.
4491 * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
4492 (mips_register_convertible, mips_register_convert_to_virtual,
4493 mips_register_convert_to_raw): Make static.
4494 (mips_read_sp): New function.
4495 (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
4496 (mips_do_registers_info): Make static.
4497 (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
4498 (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
4499 (mips_register_convert_from_type, mips_register_convert_to_type):
4501 (mips_gdbarch_init): Set up function_start_offset,
4502 register_virtual_size, pc_in_sigtramp.
4506 * infcmd.c (vector_info): New function.
4507 (_initialize_infcmd): Add command "info vector".
4508 (print_vector_info): New function.
4510 * gdbarch.sh (PRINT_VECTOR_INFO): New method
4511 * gdbarch.h, gdbarch.c: Regenerate.
4515 * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
4516 ``print_all''. Only print vector registers when ``print_all''.
4520 * i387-tdep.h (i387_print_float_info): Add `args' parameter.
4521 * i387-tdep.c (i387_print_float_info): Add `args' parameter.
4523 * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
4524 Add `args' parameter.
4525 * gdbarch.h, gdbarch.c: Regenerate.
4527 * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
4529 * infcmd.c (float_info): Call print_float_info.
4530 (print_float_info): New function. By default, print the
4531 floating-point registers.
4533 * arch-utils.h (default_print_float_info): Delete declaration.
4534 * arch-utils.c (default_print_float_info): Delete function.
4538 * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
4541 * i387-tdep.c (i387_print_float_info): Add comment about ignoring
4544 * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
4545 * configure.host: Make i[3456]86-*-aix host obsolete.
4546 * configure.tgt: Make i[3456]86-*-aix target obsolete.
4547 * config/i386/i386aix.mh, config/i386/i386aix.mt,
4548 config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
4549 config/i386/xm-i386aix.h: Make files obsolete.
4550 * i386aix-nat.c: Make file obsolete.
4551 * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
4552 (i386aix-nat.o): Make target obsolete.
4554 * config/i386/nm-gnu.h: Removed.
4555 * config/i386/nm-i386gnu.h: New file.
4556 (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
4557 THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
4559 * config/i386/tm-i386gnu.h: ... here. Removed.
4560 * config/i386/xm-i386gnu.h: Removed.
4561 * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
4562 (NAT_FILE): Set to nm-i386gnu.h.
4563 * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
4564 * i386-tdep.c: New file.
4565 * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
4566 (i386gnu-tdep.o): Specify dependencies.
4570 * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
4571 "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
4572 Adjust a few comments to reflect reality a bit closer.
4573 (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
4574 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
4575 HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
4576 target_insert_watchpoint, target_remove_watchpoint):
4578 * config/i386/nm-i386sco5.h: ... here.
4579 (kernel_u_size): Add prototype. Improve a few comments and add
4580 protection against multiple inclusion.
4582 * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
4585 * uw-thread.c (SP_ARG0): Define if not already defined.
4586 * config/i386/tm-i386.h (SO_ARG0): Remove define.
4588 * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
4590 * config/i386/tm-i386.h: Don't include "regcache.h".
4592 * i387-tdep.h (i387_print_float_info): New prototype.
4593 * i387-tdep.c (print_i387_value, print_i387_ext,
4594 print_i387_status_word, print_i387_control_word): Add `struct
4595 ui_file *' argument and use it for output.
4596 (i387_print_float_info): Renamed from i387_float_info. Add
4597 `struct gdbarch *' and `struct ui_file *' arguments and use the
4599 * i386-tdep.c: Include "i387-tdep.h".
4600 (i386_gdbarch_init): Set print_float_info.
4601 * config/i386/tm-i386.h (i387_float_info): Remove prototype.
4602 (FLOAT_INFO): Remove define.
4606 * mips-tdep.c (mips_push_arguments): Rename to
4607 mips_eabi_push_arguments, and tune for EABI.
4608 (MIPS_REGS_HAVE_HOME_P): Delete.
4609 (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
4610 (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
4611 Delete references to mips_regs_have_home_p.
4615 * Makefile.in (install-gdbtk): Create insight plugin directory.
4616 Install plugins.tcl file.
4620 * configure.in: Move SUBDIRS to near top of the file so that
4621 --enable options may add things to it.
4622 If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
4623 * configure: Regenerate.
4627 * mips-tdep.c (mips_o32o64_push_arguments): New function,
4628 cloned from mips_push_arguments, tuned for o32/o64 ABI.
4629 (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
4633 * vax-tdep.c (vax_get_saved_register): Delete function.
4634 (vax_gdbarch_init): Update.
4635 * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
4636 (ns32k_gdbarch_init): Update.
4637 * alpha-tdep.c (alpha_get_saved_register): Delete function.
4638 (alpha_gdbarch_init): Update.
4642 * regcache.c (init_regcache_descr): Overallocate the
4643 raw_register_valid_p array including space for NUM_PSEUDO_REGS.
4644 (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
4646 (set_register_cached): Add range checking assertions. Use
4651 * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
4652 numbers for MMX registers.
4656 * i386-tdep.c (i386_gdbarch_init): Use
4657 generic_unwind_get_saved_register.
4661 * procfs.c (procfs_can_use_hw_breakpoint): New function.
4662 (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
4664 * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
4665 Delete. Add comment regarding this now-deleted target method.
4669 * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
4670 (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
4671 (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
4672 real PC and the page number (if it's within the memory bank window).
4673 (m68hc11_pseudo_register_write): Likewise when saving.
4674 (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
4675 (m68hc11_register_virtual_type): Return uint32 for virtual pc.
4676 (m68hc11_register_raw_size): And use 32-bit for it.
4677 (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
4678 16K memory bank is used by the prog; also use the virtual pc.
4682 * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
4683 (m68hc11_gdbarch_init): Install it in gdbarch.
4684 (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
4685 (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
4686 (MSYMBOL_SIZE): New for documentation.
4687 (insn_return_kind): Enum to specify how a function returns.
4688 (frame_extra_info): Cleanup and record the return mode.
4689 (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page
4690 register in address computation.
4691 (m68hc11_get_return_insn): New to obtain the return instruction used
4693 (m68hc11_frame_init_saved_regs): Take into account the return
4694 instruction used by the function for far and interrupt functions.
4695 (m68hc11_init_extra_frame_info): Take into account page register.
4696 (m68hc11_frame_args_address): Adjust according to the return mode.
4697 (show_regs): Print page register only when it's used.
4701 * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
4702 (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
4703 (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
4705 (m68hc11_register_raw_size): Likewise.
4709 * i386-tdep.c (i386_register_name): Handle mmx registers.
4710 (mmx_regnum_p): New function.
4711 (i386_mmx_names): New array.
4712 (mmx_num_regs): New variable.
4713 (i386_pseudo_register_read): New function.
4714 (i386_pseudo_register_write): New function.
4715 (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
4717 * regcache.c (regcache_raw_read_unsigned): New function.
4718 (regcache_raw_read_signed): New function.
4719 * regcache.h (regcache_raw_read_unsigned): Declare.
4720 (regcache_raw_read_signed): Declare.
4724 * regcache.c (regcache_raw_read_as_address): Delete function.
4725 (regcache_cooked_read_signed): New function.
4726 (regcache_cooked_read_unsigned): New function.
4727 * regcache.h (regcache_cooked_read_signed): Declare.
4728 (regcache_cooked_read_unsigned): Declare.
4729 (regcache_raw_read_as_address): Delete declaration.
4731 * blockframe.c (generic_read_register_dummy): Use
4732 regcache_cooked_read_unsigned.
4733 * i386-tdep.c (i386_extract_struct_value_address): Use
4734 regcache_cooked_read_unsigned.
4738 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
4739 double sizes according to ELF ABI flags.
4740 (gdbarch_tdep): Record elf_flags.
4744 * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
4745 (m6812_prolog): They can appear in 68HC12 function prologue.
4746 (m68hc11_frame_chain): Cleanup.
4750 * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
4752 * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
4753 (i386_linux_register_raw_size): Delete function.
4754 (i386_linux_init_abi): Update.
4755 * i386-tdep.c (i386_register_raw_size): Delete function.
4756 (i386_register_byte): Delete function.
4757 (i386_gdbarch_init): Update.
4758 (i386_register_size): Delete array.
4759 (i386_register_offset): Delete array.
4761 * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
4762 (REGISTER_RAW_SIZE): Delete macro.
4763 * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
4764 (REGISTER_BYTE): Delete macro.
4768 * ada-lang.c (ada_lookup_partial_symbol)
4769 (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
4770 prototype names so that grep ^func works properly.
4772 * ada-lang.c (ada_array_element_type)
4773 (ada_lookup_partial_symbol): Fix typos in parameter list.
4775 * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
4776 Fix prototype names so that grep ^func works properly.
4782 * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
4783 (build_builtin_type_vec128i): Set the vector bit.
4784 * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
4785 * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
4786 (build_builtin_type_vec64): New function.
4787 (build_builtin_type_vec64i): New function.
4788 (build_gdbtypes): Initialize builtin_type_vec64 and
4789 builtin_type_vec64i.
4793 * regcache.c (regcache_dump): Compare the register offset
4795 * arch-utils.c (generic_register_byte): New function.
4796 * arch-utils.h (generic_register_byte): Declare.
4797 * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
4798 * gdbarch.h, gdbarch.c: Regenerate.
4802 * regcache.c: Include "gdbcmd.h"
4803 (_initialize_regcache): Add commands "maintenance print
4804 registers", "maintenance print raw-registers" and "maintenance
4805 print cooked-registers".
4806 (enum regcache_dump_what): Define.
4807 (dump_endian_bytes): New function.
4808 (regcache_dump): New function.
4809 (regcache_print): New function.
4810 (maintenance_print_registers): New function.
4811 (maintenance_print_raw_registers): New function.
4812 (maintenance_print_cooked_registers): New function.
4813 * Makefile.in (regcache.o): Update dependencies.
4817 * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
4818 (mips_push_arguments): Correct some comments. Use paddr_nz
4819 for printing addresses in debug output. Replace static
4820 allocation using MAX_REGISTER_RAW_SIZE with alloca.
4821 (mips_n32n64_push_arguments): New function, cloned from
4822 mips_push_arguments and tuned for the n32/n64 ABI.
4823 (mips_push_register): Buffer needs dynamic allocation.
4824 (mips_print_register): Ditto.
4825 (do_gp_register_row): Ditto.
4826 (mips_store_return_value): Ditto.
4827 (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
4831 * memattr.c (mem_info_command): Print special case of upper bound
4832 as max CORE_ADDR + 1.
4836 * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only
4837 returns structs by ref if they're too big to fit in two registers.
4841 * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
4843 (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
4844 mips_find_saved_regs().
4845 (mips_pop_frame): Likewise.
4849 * blockframe.c (frame_saved_regs_register_unwind): Revise
4850 PC_IN_CALL_DUMMY assertion to only apply when generic dummy
4855 * remote.c: (remote_wait, remote_async_wait): Add check for awatch
4856 T-packets; the 'a' is not taken as a register number.
4857 (remote_check_watch_resources, remote_stopped_by_watchpoint)
4858 (remote_stopped_data_address): New functions; add to target
4860 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
4861 prototypes to match other implementations of this
4862 function. replace integer argument with pointer -- the length
4863 field in the Z-packet is the length of what is pointed to or 1 if
4864 pointer is null. Add to target vector.
4865 (remote_insert_watchpoint, remote_remove_watchpoint): Add to
4869 * remote.c (remote_wait): Add support to extract optional
4870 watchpoint information from T-packet. Ignore unrecognized
4871 optional info in T-packet.
4872 (remote_async_wait): Ditto.
4876 * cli/cli-dump.c: Change fopen modes to use binary open modes
4877 as defined in include/fopen-bin.h throughout.
4881 * mips-tdep.c: Minor whitespace and indentation clean-ups.
4885 * doublest.c (store_floating): Avoid floatformat_from_doublest()
4886 assertion failure by returning early after a warning.
4890 * mips-tdep.c (mips_find_saved_regs): Make static.
4891 (mips_frame_init_saved_regs): New function.
4892 (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
4893 * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
4894 (mips_find_saved_regs): Delete declaration.
4898 * remote.c (remote_wait, remote_async_wait): Change
4899 thread_num from int to ULONGEST.
4900 (unpack_varlen_hex): Change result parameter from
4901 int * to ULONGEST *.
4905 * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
4906 powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
4908 * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
4912 * gcore.c (override_derive_stack_segment): Delete variable.
4913 (preempt_derive_stack_segment): Delete function.
4914 (derive_stack_segment): Delete function.
4915 (default_derive_stack_segment): Renamed to derive_stack_segment.
4916 (override_derive_heap_segment): Delete variable.
4917 (preempt_derive_heap_segment): Delete function.
4918 (derive_heap_segment): Delete function.
4919 (default_derive_heap_segment): Rename to derive_heap_segment.
4923 * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
4924 * mips-tdep.c (mips_EABI_use_struct_convention,
4925 mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
4926 New functions. (mips_use_struct_convention): Delete.
4927 (mips_gdbarch_init): set use_gdbarch_convention.
4931 * mips-tdep.c: gdbarch-ify reg_struct_has_addr.
4932 (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr,
4933 mips_o32_reg_struct_has_addr): New functions.
4934 (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
4938 * regcache.c (pseudo_register): Delete function.
4939 (fetch_register): Delete function.
4940 (store_register): Delete function.
4941 (regcache_raw_read, legacy_read_register_gen): Use
4942 target_fetch_registers instead of fetch_register.
4943 (legacy_write_register_gen, regcache_raw_write): Use
4944 target_store_register instead of store_register.
4945 (write_register_bytes): Ditto.
4947 * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
4948 (STORE_PSEUDO_REGISTER): Delete.
4949 * gdbarch.h, gdbarch.c: Regenerate.
4953 * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
4954 write dump file binary.
4958 * mips-tdep.c (mips_find_saved_regs): Adjust stack according
4959 to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64. Enhance comment.
4960 (mips_gdbarch_init): Set N32 target to be mips64.
4964 * frame.c (find_saved_register): Break out of loop once saved
4965 register address is found. Don't mention sparc in loop comment
4970 * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
4971 mips_default_saved_regsize to 8.
4975 * gcore.c: Do not include <sys/procfs.h>.
4976 * Makefile.in (gcore.o): Update dependencies.
4980 * configure.tgt: Make arc-*-* obsolete.
4981 * NEWS: Mention that arc-*-* has been identifed as obsolete.
4982 * MAINTAINERS: Make arc-elf obsolete.
4983 * arc-tdep.c: Make file obsolete.
4984 * config/arc/arc.mt: Ditto.
4985 * config/arc/tm-arc.h: Ditto.
4989 * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
4993 * mcore-tdep.c (mcore_gdbarch_init): Use
4994 generic_unwind_get_saved_register instead of
4995 generic_get_saved_register.
4996 * v850-tdep.c (v850_gdbarch_init): Ditto.
4997 * frv-tdep.c (frv_gdbarch_init): Ditto.
4998 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
4999 * s390-tdep.c (s390_gdbarch_init): Ditto.
5000 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
5001 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
5002 * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
5006 * objfiles.h: Add missing #include "symfile.h"
5008 * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
5013 * hpread.c (hpread_read_struct_type): Deleted superfluous setting
5018 * NEWS: Cleanup and nitpick.
5022 * NEWS: Cleanup. Use *-linux*-gnu*. Only use `*' for headings.
5026 * Makefile.in (gdbtk-bp.o): Update dependencies.
5027 (gdbtk-register.o): Ditto.
5028 (gdbtk-varobj.o): Ditto.
5032 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
5033 m68hc11_fetch_pseudo_register.
5034 (m68hc11_pseudo_register_write): Replace
5035 m68hc11_store_pseudo_register.
5036 (m68hc11_gdbarch_init): Update.
5040 * gdbarch.sh: Include "gdb_string.h".
5041 * gdbarch.c: Regenerate.
5043 * regcache.c: Include "gdb_string.h".
5044 * ax-general.c: Ditto.
5046 * std-regs.c: Ditto.
5047 * fbsd-proc.c: Ditto.
5050 * Makefile.in (regcache.o): Update dependencies.
5051 (thread.o, gdbarch.o): Ditto.
5052 (ax-general.o, gdbarch.o): Ditto.
5053 (varobj.o, std-regs.o): Ditto.
5054 (fbsd-proc.o): Specify dependencies.
5058 * regcache.c (regcache_cooked_read): Rename rawnum parameter to
5060 (regcache_cooked_write): Ditto.
5064 * regcache.c (regcache_cooked_read): New function.
5065 (regcache_cooked_write): New function.
5066 (read_register_gen): Rewrite using regcache_cooked_read.
5067 (write_register_gen): Rewrite using regcache_cooked_write.
5069 * regcache.h (regcache_cooked_read, regcache_cooked_write):
5074 * gdbarch.sh (pseudo_register_read, pseudo_register_write):
5075 Replace the architecture methods register_read and register_write.
5076 * gdbarch.h, gdbarch.c: Regenerate.
5077 * regcache.c (init_regcache_descr): Update.
5078 (read_register_gen): Update.
5079 (write_register_gen): Update.
5080 (supply_register): Update comment.
5082 * sh-tdep.c (sh_gdbarch_init): Update.
5083 (sh_pseudo_register_read, sh64_pseudo_register_read): Add
5084 `regcache' and `gdbarch' parameters. Make `buffer' a void
5085 pointer. Update code.
5086 (sh_pseudo_register_write, sh64_pseudo_register_write): Add
5087 `regcache' and `gdbarch' parameters. Make `buffer' a constant
5088 void pointer. Update code.
5089 (sh64_register_write): Delete.
5090 (sh4_register_read): Delete.
5091 (sh64_register_read): Delete.
5092 (sh4_register_write): Delete.
5093 (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
5094 void pointer, `to' parameter a void pointer.
5095 (sh_sh64_register_convert_to_raw): Ditto.
5099 * mips-tdep.c (mips_register_virtual_type): Use architecture
5100 invariant return values.
5104 * linux-proc.c: Include "gdb_string.h".
5105 * Makefile.in (linux-proc.o): Update dependency list.
5109 * mips-tdep.c (mips_gdbarch_init): Add comments. Fix typo in
5114 * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
5115 to_insert_watchpoint, to_remove_watchpoint,
5116 to_stopped_by_watchpoint, to_stopped_data_address,
5117 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
5118 target vecctor. Define their corresponding macros so they call
5121 * target.c: Add default and debug versions of for
5122 to_insert_hw_breakpoint, to_remove_hw_breakpoint,
5123 to_insert_watchpoint, to_remove_watchpoint,
5124 to_stopped_by_watchpoint, to_stopped_data_address,
5125 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
5129 * mips-tdep.c (mips_register_virtual_type): New function.
5130 (mips_gdbarch_init): Register mips_register_virtual_type()
5131 with gdbarch machinery.
5132 * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
5133 this file instead of tm-bigmips.h.
5134 (MIPS_REGSIZE): Delete this macro.
5135 (REGISTER_VIRTUAL_TYPE): Delete macro. Undef macro so that
5136 multiarch version in mips-tdep.c will be found.
5140 * NEWS: Menion that CHILL has been made obsolete.
5142 * gdbtypes.c (chill_varying_type): Make chill references obsolete.
5143 * stabsread.c (read_range_type): Ditto.
5144 * gdbtypes.h: Ditto.
5145 * language.c (binop_type_check): Ditto.
5146 (binop_result_type): Ditto.
5147 (integral_type): Ditto.
5148 (character_type): Ditto.
5149 (string_type): Ditto.
5150 (boolean_type): Ditto.
5151 (structured_type): Ditto.
5152 (lang_bool_type): Ditto.
5153 (binop_type_check): Ditto.
5154 * language.h (_LANG_chill): Ditto.
5155 * dwarfread.c (set_cu_language): Ditto.
5156 * dwarfread.c (CHILL_PRODUCER): Ditto.
5157 * dwarfread.c (handle_producer): Ditto.
5158 * expression.h (enum exp_opcode): Ditto.
5159 * eval.c: Ditto for comments.
5160 * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
5161 * expprint.c (print_subexp): Ditto.
5162 (print_subexp): Ditto.
5163 * valops.c (value_cast): Ditto.
5164 (search_struct_field): Ditto.
5165 * value.h (COERCE_VARYING_ARRAY): Ditto.
5166 * symfile.c (init_filename_language_table): Ditto.
5167 (add_psymbol_with_dem_name_to_list): Ditto.
5168 * valarith.c (value_binop): Ditto.
5170 * valops.c (value_slice): Ditto.
5171 * symtab.h (union language_specific): Ditto.
5172 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
5173 (SYMBOL_DEMANGLED_NAME): Ditto.
5174 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
5175 * defs.h (enum language): Ditto.
5176 * symtab.c (got_symtab): Ditto.
5177 * utils.c (fprintf_symbol_filtered): Ditto.
5179 * ch-typeprint.c: Make file obsolete.
5180 * ch-valprint.c: Make file obsolete.
5181 * ch-lang.h: Make file obsolete.
5182 * ch-exp.c: Make file obsolete.
5183 * ch-lang.c: Make file obsolete.
5185 * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
5187 (TARGET_FLAGS_TO_PASS): Ditto.
5188 (CHILLFLAGS): Obsolete.
5190 (CHILL_FOR_TARGET): Obsolete.
5191 (CHILL_LIB): Obsolete.
5192 (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
5194 (HFILES_NO_SRCDIR): Remove ch-lang.h.
5195 (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
5197 (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
5202 * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
5203 This does not change anything at the moment, but will be helpful
5204 later when full Ada support is integrated.
5208 * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
5213 * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
5214 and save it in a local variable. Use variable in later test.
5218 * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
5219 test. (Thanks to Daniel Jacobowitz.)
5223 * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
5224 (mips_abi_strings): Add "n64".
5225 (mips_gdbarch_init): Add test for n64 abi. Add MIPS_ABI_N64 case.
5229 * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
5230 (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
5234 * utils.c (host_pointer_to_address, address_to_host_pointer):
5235 Use gdb_assert() instead of explicit call to internal_error().
5239 * Makefile.in (rs6000-nat.o): Update dependencies.
5241 From Nicholas Duffek:
5242 * Makefile.in (ALLDEPFILES): Add aix-thread.c.
5243 (aix-thread.o): New rule.
5244 * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
5245 * config/powerpc/aix432.mh: New file.
5249 * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
5250 (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
5251 (fetch_core_registers, ppc_linux_supply_gregset)
5252 (ppc_linux_supply_fpregset): New functions.
5253 (ppc_linux_regset_core_fns): New.
5254 (_initialize_ppc_linux_tdep): Call add_core_fns.
5255 * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
5256 and ppc_linux_supply_gregset.
5257 * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
5258 (supply_fpregset): Call ppc_linux_supply_fpregset.
5259 * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
5261 * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
5265 * symtab.c (lookup_symbol): Demangle before lowercasing.
5269 * symtab.h: Replace #include "gdb_obstack.h" with opaque
5271 * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
5272 * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
5273 * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
5274 * arch-utils.c, cli/cli-setshow.c: Unconditionally include
5276 * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
5277 (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
5278 (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
5279 (avr-tdep.o, mon960-rom.o): Ditto.
5280 (aout_stabs_gnu_h): Define.
5281 (symtab_h): Remove $(gdb_obstack_h).
5286 * gdbinit.in: Move the `dir' commands that add GDB's own source
5287 directory to the search path to the end, so that the `gdb' source
5288 directory will be searched first.
5292 * gdb_obstack.h: New file.
5293 * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
5294 (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
5295 * objfiles.h: Include "gdb_obstack.h".
5296 * Makefile.in (gdb_obstack_h): Define.
5297 (symtab_h): Add $(gdb_obstack_h).
5298 (objfiles_h): Add $(gdb_obstack_h).
5300 * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
5301 * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
5302 * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
5303 * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
5304 * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
5305 * p-valprint.c, symmisc.c, typeprint.c: Ditto.
5306 * symfile.c, coffread.c, c-typeprint.c: Ditto.
5307 * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
5309 * Makefile.in (bcache.o): Update dependencies.
5310 (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
5311 (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
5312 (dbxread.o, dstread.o, f-typeprint.o): Ditto.
5313 (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
5314 (stabsread.o, symfile.o, symmisc.o): Ditto.
5315 (symtab.o, typeprint.o, macroexp.o): Ditto.
5316 (macrotab.o, mdebugread.o): Ditto.
5317 (f_lang_h, coff_sym_h, coff_symconst_h): Define.
5318 (coff_ecoff_h, aout_aout64_h): Define.
5319 (aout_stabs_gnu_h, libaout_h): Define.
5323 * regcache.c (struct regcache_descr): Rename nr_registers to
5324 nr_cooked_registers. Revise comments describing the structure
5326 (init_regcache_descr): Update.
5327 (init_legacy_regcache_descr): Update.
5328 (read_register_gen, write_register_gen): When a cooked register in
5329 the raw register range, directly access the value from the raw
5334 * z8k-tdep.c: Do not include "obstack.h".
5335 * h8300-tdep.c, h8500-tdep.c: Ditto.
5336 * m68hc11-tdep.c, sh-tdep.c: Ditto.
5337 * valprint.c, v850-tdep.c: Ditto.
5338 * d10v-tdep.c, mn10300-tdep.c: Ditto.
5339 * mn10200-tdep.c: Ditto.
5341 * Makefile.in (z8k-tdep.o): Update dependencies.
5342 (m68hc11-tdep.o, valprint.o): Ditto.
5343 (v850-tdep.o, d10v-tdep.o): Ditto.
5344 (mn10300-tdep.o, sparc-tdep.o): Ditto.
5345 (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
5346 (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
5347 (sh_opc_h, gdb_sim_sh_h): Define.
5348 (elf_sh_h, elf_bfd_h): Define.
5349 (opcode_m68hc11_h): Define.
5350 (OPCODES_SRC, OPCODES_DIR): define.
5351 (OPCODES): Use $(OPCODES_DIR).
5352 (gdb_sim_d10v_h): Rename sim_d10v_h.
5353 (gdb_sim_arm_h): Rename sim_arm_h.
5357 * utils.c (host_pointer_to_address, address_to_host_pointer):
5358 Change internal_error() message to indicate function responsible
5363 * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
5364 calls to local_hex_string_custom().
5368 * irix5-nat.c: Move IRIX shared library support from here...
5369 * solib-irix.c: ...to here. Revised substantially to work with
5370 generic solib framework.
5372 * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
5373 * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
5374 * mips-irix-tdep.c: New file.
5376 * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
5377 (mips-irix-tdep.o, solib-irix.o): New rules.
5378 * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
5380 * config/mips/irix6.mt (TDEPFILES): Likewise.
5381 * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
5385 * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
5386 disabled (via ``#if 0'') includes.
5390 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
5391 (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
5392 (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
5393 Add support for the fpscr register.
5394 * rs6000-nat.c (regmap, fetch_inferior_registers)
5395 (store_inferior_registers, fetch_core_registers): Likewise.
5399 * rs6000-nat.c (language.h): Include.
5400 (special_regs): Delete this array.
5401 (regmap): New function.
5402 (fetch_register, store_register): Use regmap() to map gdb
5403 register numbers to ptrace register numbers. Also, use
5404 outputs from regmap() to make decisions regarding type of
5405 ptrace() call to make. In particular, don't compare against
5406 FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
5407 (fetch_inferior_registers, store_inferior_registers): Where
5408 possible, obtain register numbers from tdep struct. Don't
5409 refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
5410 * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
5411 (LAST_UISA_SP_REGNUM): Delete.
5415 * rs6000-nat.c (ppc-tdep.h): Include.
5416 (fetch_registers, store_register, fetch_core_registers): Don't
5417 access registers[] directly. Instead, use supply_register() or
5418 regcache_collect() as appropriate.
5419 (find_toc_address): Format hex address with local_hex_string().
5423 * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
5428 * jv-exp.y: Marked all strings with _().
5429 (ClassInstanceCreationExpression, ArrayCreationExpression): Use
5431 (MethodInvocation, CastExpression, parse_number, yyerror,
5432 java_type_from_name, push_expression_name, yylex): Typo fixes.
5436 * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
5437 (tee_file_flush, tee_file_write, tee_file_fputs)
5438 (tee_file_isatty): New.
5439 * ui-file.h (tee_file_new): Add prototype.
5443 * ada-lang.c: Change k&r style function definitions to prototyped
5445 * ada-typeprint.c: Change k&r style function definitions to prototyped
5447 * ada-valprint.c: Change k&r style function definitions to prototyped
5452 * README: Remove reference to remote-bug.
5453 * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
5455 (m88k-nat.o): Delete rule.
5456 (m88k-tdep.o): Delete rule.
5457 (remote-bug.o): Delete rule.
5458 * MAINTAINERS: Mark as obsolete.
5459 * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
5460 * m88k-tdep.c: Make file obsolete.
5461 * config/m88k/m88k.mh: Ditto.
5462 * config/m88k/delta88v4.mh: Ditto.
5463 * config/m88k/delta88v4.mt: Ditto.
5464 * config/m88k/delta88.mt: Ditto.
5465 * config/m88k/delta88.mh: Ditto.
5466 * remote-bug.c: Ditto.
5467 * config/m88k/tm-delta88.h: Ditto.
5468 * config/m88k/nm-delta88v4.h: Ditto.
5469 * config/m88k/xm-delta88.h: Ditto.
5470 * config/m88k/xm-dgux.h: Ditto.
5471 * config/m88k/tm-m88k.h: Ditto.
5472 * config/m88k/nm-m88k.h: Ditto.
5473 * config/m88k/tm-delta88v4.h: Ditto.
5474 * m88k-nat.c: Ditto.
5475 * cxux-nat.c: Ditto.
5476 * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
5477 and m88*-*-* obsolete.
5478 * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
5483 * findvar.c (extract_unsigned_integer): Make `addr' parameter
5484 constant. Same for local pointer variables.
5485 (extract_signed_integer): Ditto.
5486 * defs.h (extract_unsigned_integer): Update.
5487 (extract_signed_integer): Update.
5491 * regcache.c (regcache_raw_write): Change buf parameter to a
5492 constant void pointer.
5493 (regcache_raw_read): Change buf parameter to a void pointer.
5494 (legacy_write_register_gen): Change myaddr parameter a constant
5496 (supply_register): Change val parameter to a const void pointer.
5497 * regcache.h (regcache_raw_write): Update declaration.
5498 (regcache_raw_read): Update declaration.
5499 (supply_register): Update declaration.
5503 * defs.h (gdb_readline_wrapper): Declare.
5504 * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
5505 * tracepoint.c (read_actions): Use gdb_readline_wrapper.
5506 * top.c (gdb_readline_wrapper): New function.
5507 (command_line_input): Use it.
5511 * regcache.h (regcache_raw_read, regcache_raw_write): Replace
5512 regcache_read and regcache_write.
5513 (regcache_raw_read_as_address): Replace regcache_read_as_address.
5514 * regcache.c: Update.
5515 * sh-tdep.c (sh64_push_arguments): Update comment.
5516 (sh_pseudo_register_read): Update.
5517 (sh_pseudo_register_write): Update.
5518 (sh4_register_read): Update.
5519 (sh4_register_write): Update.
5520 (sh64_pseudo_register_read): Update.
5521 (sh64_pseudo_register_write): Update.
5522 (sh64_register_read): Update.
5523 (sh64_register_write): Update.
5524 * i386-tdep.c (i386_extract_return_value): Update.
5525 (i386_extract_struct_value_address): Update.
5526 (i386_extract_return_value): Update.
5527 * blockframe.c (generic_read_register_dummy): Update.
5528 (generic_call_dummy_register_unwind): Update
5529 * infrun.c (write_inferior_status_register): Update.
5533 * parser-defs.h (expression_context_pc): Make this extern.
5534 (Thanks to Michael Snyder.)
5538 GDB 5.2.1 released from 5.2 branch.
5539 * NEWS: Mention changes in 5.2.1 including addition of AVR target.
5540 * README: Update to mention 5.2.1.
5544 * remote.c (remote_read_bytes): Fix check for error.
5548 * aix-thread.c (language.h): Include.
5549 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
5550 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
5551 Print newlines at end of debug messages.
5552 (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
5553 (pdc_write_data): Use local_hex_string() instead of %llx formats.
5557 * aix-thread.c (ppc-tdep.h): Include.
5558 (special_register_p): New function.
5559 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
5560 (store_regs_user_thread): Use register number information from
5561 gdbarch_tdep struct instead of hardcoded offsets relative to
5562 FIRST_UISA_SP_REGNUM.
5563 (fetch_regs_kernel_thread, store_regs_kernel_thread): Call
5564 special_register_p() instead of using FPLAST_REGNUM and
5565 LAST_UISA_SP_REGNUM as lower and upper bounds on the special
5566 register numbers. Also, don't assume that LAST_UISA_SP_REGNUM
5567 will be MQ's register number.
5571 * aix-thread.c (ops): Rename to aix_thread_ops.
5572 (base_ops): Rename to base_target.
5573 (ops_attach): Rename to aix_thread_attach.
5574 (ops_detach): Rename to aix_thread_detach.
5575 (ops_resume): Rename to aix_thread_detach.
5576 (ops_wait): Rename to aix_thread_wait.
5577 (ops_kill): Rename to aix_thread_kill.
5578 (init_ops): Rename to init_aix_thread_ops.
5579 (ops_fetch_register): Rename to aix_thread_fetch_register.
5580 (ops_store_register): Rename to aix_thread_store_register.
5581 (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
5582 (ops_thread_alive): Rename to aix_thread_thread_alive.
5583 (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
5584 (ops_pid_to_str): Rename to aix_thread_pid_to_str.
5585 (ops_xfer_memory): Rename to aix_thread_xfer_memory.
5586 (fetch_regs_lib): Rename to fetch_regs_user_thread.
5587 (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
5588 (store_regs_lib): Rename to store_regs_user_thread.
5589 (store_regs_kern): Rename to store_regs_kernel_thread.
5593 * aix-thread.c (ops_prepare_to_store): Eliminate.
5594 (init_ops): Don't initialize ops.prepare_to_store.
5595 (store_regs_kern): Pre-fetch register buffers from child,
5596 because some registers may not be in the cache. Copy
5597 regs from register cache only if they are cached.
5598 (store_regs_lib): Copy regs from register cache only
5600 (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
5601 fill_gprs64): Ditto.
5605 * aix-thread.c (gdb_assert.h): Include.
5606 (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
5607 register sizes (from register cache) match size of buffer holding
5609 (fill_sprs32): Change parameter types to match those in the ptrace()
5611 (store_regs_lib): Likewise, but for 32-bit temporary variables.
5612 (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
5616 * aix-thread.c (supply_sprs64): Cosmetic change.
5617 (supply_sprs32): Cosmetic change.
5618 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
5619 (fill_sprs64): Use regcache_collect instead of read_register.
5620 (store_regs_lib): Use regcache_collect instead of
5621 read_register. Use fill_sprs32 instead of fill_sprs64,
5622 if debugging a 32-bit architecture.
5623 (store_regs_kern): Use fill_gprs64 etc. to pull the values
5624 out of the register cache, instead of passing a pointer into
5625 the register cache directly to ptrace. Use regcache_collect
5626 insteaad of read_register.
5627 (ops_prepare_to_store): Use target_read_registers instead
5628 of read_register_bytes.
5632 * MAINTAINERS: Add self under write after approval.
5636 * ada-tasks.c: Change k&r style function definitions to prototyped
5641 * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
5642 * x86-64-tdep.c: Include "objfiles.h".
5643 (x86_64_gdbarch_init): Set in_solib_call_trampoline to
5648 * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
5649 (update_context): Initialise cfa variable.
5653 * aix-thread.c: Shorten some long lines.
5654 Bring comments into line with code spec.
5658 * infrun.c: Re-indent using gdb_indent.sh.
5662 * infrun.c (handle_inferior_event): Remove unneeded extra brace.
5663 Leave the indentation temporarily untouched, to minimize the diffs.
5667 * stabsread.c: Make os9k sections of the code obsolete,
5669 * stabsread.h: Make os9k sections of the code obsolete.
5673 * linux-low.c (regsets_store_inferior_registers): Add free()
5674 at the end of a loop to prevent memory leak.
5675 * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
5676 (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
5677 * config/sparc/tm-sp64linux.h: Make the rest of #endif
5679 * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
5683 * macrocmd.c (info_macro_command): Remove newline from error
5688 * sh-tdep.c (sh_dsp_register_sim_regno): New function.
5689 (sh_gdbarch_init): Use it for sh-dsp.
5693 * dwarf2read.c (read_initial_length): Handle older, non-standard,
5694 64-bit DWARF2 format.
5698 * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
5699 <sys/proc.h> when not available.
5703 * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
5704 * stabsread.c: Make os9k sections of the code obsolete.
5705 * configure.tgt: Make i[3456]86-*-os9k target obsolete.
5706 * config/i386/i386os9k.mt: Make file obsolete.
5707 * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
5708 (COMMON_OBS): Remove os9kread.o
5709 (SFILES): Remove os9kread.c.
5710 (os9kread.o, remote-os9k.o): Make target obsolete.
5711 * remote-os9k.c: Make file obsolete.
5712 * os9kread.c: Make file obsolete.
5717 * NEWS: Mention that the FR30 has been made obsolete.
5718 * fr30-tdep.c: Make file obsolete.
5719 * config/fr30/tm-fr30.h: Ditto.
5720 * config/fr30/fr30.mt: Ditto.
5721 * configure.tgt: Make fr30-*-elf obsolete.
5722 * MAINTAINERS: Make fr30-elf obsolete.
5726 * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
5727 found is not inside a section.
5731 * aix-thread.c (ptrace_check): Use safe_strerror() instead of
5733 (pdc_realloc): Use xrealloc() instead of realloc().
5737 * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
5738 (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
5739 (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
5744 * aix-thread.c (ptrace_check): Eliminate goto.
5745 (sync_threadlists): Eliminate gotos. Also, fix array overrun
5750 * aix-thread.c (gdbcmd.h): Include.
5751 (DEBUG, DBG, DBG2, dbg): Eliminate.
5752 (debug_aix_thread): New static global.
5753 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
5754 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
5755 (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
5756 invocations to DBG and DBG2 macros to test against
5757 ``debug_aix_thread'' and call fprintf_unfiltered().
5758 (_initialize_aix_thread): Add new command "set debug aix-thread".
5763 * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
5764 instead of supply_register.
5768 * dwarf2cfi.c: Include "gdb_assert.h".
5769 (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
5771 (update_context): Do not use __func__. Add missing ``break''.
5772 (update_context): Do not use __func__.
5776 * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
5777 and its setting. Set gdbarch instruction printing functions
5778 directly. For non-rs6000 case use new function
5779 gdb_print_insn_powerpc.
5780 (gdb_print_insn_powerpc): New function.
5784 * NEWS: Mention that the d30v has been marked obsolete.
5785 * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
5786 * configure.tgt: Mark d30v-*-* as obsolete.
5787 * d30v-tdep.c: Mark file as obsolete.
5788 * config/d30v/d30v.mt: Ditto.
5789 * config/d30v/tm-d30v.h: Ditto.
5793 * ada-tasks.c (add_task_entry): replace calls to
5794 malloc() with xmalloc
5795 * ada-tasks.c (init_task_list): replace calls to free with xfree()
5797 * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
5798 ada_finish_decode_line_1, all_sals_for_line
5799 ada_breakpoint_rewrite): replace calls to free() with xfree()
5803 From Nicholas Duffek (with minor changes by Martin Hunt,
5804 Louis Hamilton, and Kevin Buettner):
5805 * aix-thread.c: New file.
5809 * dwarf2read.c (dwarf2_invalid_attrib_class): New
5810 complaint for invalid attribute class or form.
5811 (read_func_scope): DW_AT_frame_base
5812 better handling of DW_AT_block*.
5813 (dwarf2_add_member_fn): DW_AT_vtable_elem_location
5814 better handling of DW_AT_block*.
5815 (read_common_block): DW_AT_location
5816 better handling of DW_AT_block*.
5817 (read_partial_die): DW_AT_location better handling
5819 (new_symbol): DW_AT_external better handling of
5820 DW_AT_block*. Proper initialization of variable
5822 (attr_form_is_block): New function that returns true
5823 if the attribute's form is of DW_FORM_block*.
5827 * valops.c (find_method_list): Remove comment about
5828 removed STATIC_MEMFUNCP argument.
5829 (value_find_oload_method_list): Likewise.
5833 From Nicholas Duffek:
5834 * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
5835 target_new_objfile_hook.
5839 From Nicholas Duffek:
5840 * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
5845 * MAINTAINERS: Mention --enable-sim-build-warnings.
5846 (m68hc11-elf): Disable sim build warnings.
5847 (m32r-elf): Mark as broken obsolete candidate.
5848 (x86_64-linux-gnu): Mark as buildable with -Werror.
5849 (arm-elf): Change -w to ``,'' which enables warnings but not
5854 * bcache.h: Update copyright.
5855 (struct bstring, struct bcache): Move definition to "bcache.c".
5856 Replaced by opaque declaration.
5857 (bcache_xfree): Replace free_bcache.
5858 (bcache_xmalloc, bcache_memory_used): Declare.
5860 * bcache.c: Update copyright.
5861 (struct bstring, struct bcache): Moved to here from "bcache.h".
5863 (bcache_xmalloc, bcache_memory_used): New functions.
5864 (bcache_xfree): Replace function free_bcache.
5866 * Makefile.in (objfiles.o): Add $(bcache_h).
5867 (objfiles_h): Remove $(bcache_h).
5868 (symfile.o): Add $(bcache_h).
5870 * symmisc.c: Update copyright.
5871 (print_symbol_bcache_statistics): Pass psymbol_cache by value.
5872 (print_objfile_statistics): Use bcache_memory_used.
5874 * symfile.c: Include "bcache.h".
5875 (reread_symbols): Use bcache_xfree.
5876 (reread_symbols): Use bcache_xmalloc and bcache_xfree.
5877 (add_psymbol_to_list): Pass psymbol_cache by value.
5878 (add_psymbol_with_dem_name_to_list): Ditto.
5880 * objfiles.h: Update copyright.
5881 (struct bcache): Declare opaque. Do not include "bcache.h".
5882 (struct objfile): Change psymbol_cache and macro_cache to ``struct
5884 * dwarf2read.c (macro_start_file): Pass macro_cache by value.
5886 * objfiles.c: Include "bcache.h". Update copyright.
5887 (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
5889 (free_objfile): Use bcache_xfree.
5893 * monitor.c (monitor_fetch_register): Make name a constant.
5894 (monitor_store_register): Same.
5899 * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
5900 (finish_block) For non-function blocks, hash the symbol table. For
5901 function blocks, mark the symbol table as unhashed.
5902 * minsyms.c (msymbol_hash): Return hash value without taking modulus.
5903 (msymbol_hash_iw): Likewise.
5904 (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
5906 (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
5907 (lookup_minimal_symbol): Likewise for both.
5908 * symtab.h (struct block): Add `hashtable' flag. Comment the
5910 (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
5911 (ALL_BLOCK_SYMBOLS): Update.
5912 (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
5913 (struct symbol): Add `hash_next' pointer.
5914 * symtab.c (lookup_block_symbol): Search using the hash table when
5916 (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
5917 (search_symbols, find_addr_symbol): Likewise.
5919 * dstread.c (process_dst_block): Clear hashtable bit for new block.
5920 (read_dst_symtab): Likewise.
5921 * jv-lang.c (get_java_class_symtab): Likewise.
5922 * mdebugread.c: Include "gdb_assert.h".
5923 (shrink_block): Assert that the block being modified is not hashed.
5924 * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
5925 * symmisc.c (free_symtab_block): Walk the hash table when freeing
5927 (dump_symtab): Recognize hashed blocks.
5928 * printcmd.c (print_frame_args): Assert that function blocks do not
5929 have hashed symbol tables.
5930 * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
5931 (fill_in_ada_prototype, debug_print_block): Likewise.
5932 (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS. Handle hash tables.
5936 * stack.c (print_frame): Use result of frame_address_in_block()
5937 instead of fi->pc when evaluating symbols.
5938 (backtrace_command_1): Ditto.
5942 * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
5945 * arm-tdep.c (arm_register_name): Make return type constant.
5949 * win32-nat.c (has_detach_ability): Convert to strict ISO C
5951 * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
5952 * s390-tdep.c (s390_fp_regnum): Ditto.
5953 (s390_read_fp): Ditto.
5954 (s390_pop_frame): Ditto.
5955 (_initialize_s390_tdep): Ditto.
5956 * remote.c (get_remote_state): Ditto.
5957 * procfs.c (mappingflags): Ditto.
5958 * memattr.c (_initialize_mem): Ditto.
5959 * mcore-tdep.c (mcore_pop_frame): Ditto.
5960 * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
5961 * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
5962 * language.c (set_case_str): Ditto.
5963 * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
5964 * frv-tdep.c (new_variant): Ditto.
5965 (frv_stopped_data_address): Ditto.
5966 * dwarf2cfi.c (fde_chunks_need_space): Ditto.
5967 (context_alloc): Ditto.
5968 (frame_state_alloc): Ditto.
5969 (unwind_tmp_obstack_init): Ditto.
5970 (unwind_tmp_obstack_free): Ditto.
5971 (cfi_read_fp): Ditto.
5972 * cris-tdep.c (cris_saved_pc_after_call): Ditto.
5973 (cris_pop_frame): Ditto.
5974 * c-lang.c (scanning_macro_expansion): Ditto.
5975 (finished_macro_expansion): Ditto.
5976 (c_preprocess_and_parse): Ditto.
5977 * gdbarch.sh: Ditto.
5978 * gdbarch.h, gdbarch.c: Regenerate.
5979 * config/mn10200/tm-mn10200.h: Adjust indentation.
5980 * target.c: Adjust indentation.
5981 * symtab.h: Adjust indentation.
5982 * stabsread.h: Adjust indentation.
5983 * remote-es.c: Adjust indentation.
5984 * os9kread.c: Adjust indentation.
5988 * wince.c (_initialize_wince): Rename _initialize_inftarg.
5989 * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
5993 * NEWS: Mention m68k, mcore multi-arching.
5994 * MAINTAINERS: Change status of m68k, mcore to reflect
5999 * valops.c (find_overload_match): Free oload_syms.
6003 Define HAVE_SYS_PROC_H if sys/proc.h exists
6004 * configure.in: Add check for sys/proc.h
6005 * config.in: Regenerate.
6006 * configure: Regenerate.
6010 * config/m68k/tm-m68k.h: Remove macros wrapped in
6011 #if !GDB_MULTI_ARCH.
6015 * config.in, configure: Regenerate.
6019 * dwarf2cfi.c: Include "gcore.h".
6020 (execute_stack_op): Fix implementation of the
6021 DW_OP_deref and DW_OP_deref_size operators by letting do their
6022 lookup in the target.
6027 * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
6032 Fix PR gdb/595, gdb/602
6033 * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
6034 Don't call value_cast, just read the vtable pointer; update comments
6039 * config/mcore/tm-mcore.h: Remove file.
6040 * config/mcore/mcore.mt: Remove definition of TM_FILE
6041 * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
6045 * i386bsd-tdep.c: Include "gdb_string.h".
6049 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
6050 (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
6052 (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
6053 (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
6054 * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
6055 (RETVAL_REGNUM): Move macros from tm-mcore.h
6056 (mcore_reg_struct_has_addr): New function.
6057 (mcore_gdbarch_init): Added initializations for the macros removed
6062 * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
6063 traditonal string branding within the ELF header.
6067 * symtab.c (remove_params): New function.
6068 (make_symbol_overload_list): Use it instead of cplus_demangle.
6069 (overload_list_add_symbol): Likewise. Reorder. Fix memory leak.
6073 * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
6075 * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
6077 (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
6078 and tdep->sigtramp_end.
6079 * i386obsd-nat.c: New file.
6080 * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
6082 * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
6083 Don't call get_current_frame().
6087 * i386-nat.c (child_post_startup_inferior): New function
6088 calling i386_cleanup_dregs if
6089 I386_USE_GENERIC_WATCHPOINTS is defined.
6090 * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
6091 conditional to acknowledge that i386-nat.c has its
6092 own child_post_startup_inferior function.
6096 * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
6097 * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
6098 instead of MAX_REGISTER_RAW_SIZE.
6099 (i386_extract_return_value, i386_extract_struct_value_address):
6100 Convert to use regcache.
6101 (i386_gdbarch_init): Set max_register_raw_size and
6102 max_register_virtual_size to I386_MAX_REGISTER_SIZE.
6103 Set extract_return_value and extract_struct_value_address instead
6104 of their deprecated variants.
6106 Convert i386 target to generic dummy frames.
6107 * i386-tdep.c: Include "symfile.h".
6108 (i386_frameless_signal_p): Consider a function to be frameless if
6109 the pc points at the first instruction of the function.
6110 (i386_frame_chain): Handle (generic) call dummies.
6111 (i386_frame_saved_pc): Likewise.
6112 (i386_frame_init_saved_regs): Remove code dealing with call
6113 dummies on the stack.
6114 (i386_push_dummy_frame): Removed.
6115 (i386_call_dummy_words): Removed.
6116 (i386_fix_call_dummy): Removed.
6117 (i386_push_return_address): New function.
6118 (i386_do_pop_frame): Renamed from i386_pop_frame. Add FRAME
6119 parameter, and don't call get_current_frame.
6120 (i386_pop_frame): New function.
6121 (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
6122 call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
6123 entry_point_address, set call_dummy_breakpoint_offset to 0, set
6124 call_dummy_length to 0, set call_dummy_words to NULL, set
6125 sizeof_call_dummy_words to 0, set fix_call_dummy to
6126 generic_fix_call_dummy, set pc_in_call_dummy to
6127 pc_in_call_dummy_at_entry_point, set push_dummy_frame to
6128 generic_push_dummy_frame, set push_return_address to
6129 i386_push_return_address and set frame_chain_valid to
6130 generic_file_frame_chain_valid.
6134 * gdbarch.sh (struct regcache): Add opaque declaration.
6135 (EXTRACT_RETURN_VALUE): New architecture method.
6136 (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
6137 * gdbarch.h, gdbarch.c: Regenerate.
6138 * arch-utils.c (legacy_extract_return_value): New function.
6139 * arch-utils.h (legacy_extract_return_value): Declare.
6140 * values.c (value_being_returned): Re-enable code handling
6141 EXTRACT_STRUCT_VALUE_ADDRESS. Move
6142 deprecated_grub_regcache_for_registers call to block handling
6143 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
6144 (EXTRACT_RETURN_VALUE): Do not define.
6148 * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
6149 (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
6150 (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
6151 (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
6152 (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
6153 (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
6154 (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
6155 (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
6156 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
6157 (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
6158 * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
6159 argument so the function fits the prototype in the architecture
6161 (mcore_pop_frame): Remove argument so the function fits the
6162 prototype. Use get_current_frame instead of the argument.
6163 (mcore_push_arguments): Change type of struct_return so the
6164 function can be used in the architecture vector.
6165 (mcore_store_struct_return): Add.
6166 (mcore_frame_init_saved_regs): Add.
6167 (mcore_gdbarch_init): Add function calls to replace the macros
6168 removed from tm-mcore.h
6172 * infcmd.c (print_return_value): Remove compatibility code calling
6173 deprecated_grub_regcache_for_registers.
6175 * values.c: Include "regcache.h".
6176 (value_being_returned): Update. Use
6177 deprecated_grub_regcache_for_registers to extract the register
6179 * value.h (value_being_returned): Change ``retbuf'' parameter to a
6180 ``struct regcache''.
6181 * Makefile.in (values.o): Add dependency on $(regcache_h).
6183 * inferior.h (run_stack_dummy): Change type of second parameter to
6184 a ``struct regcache''.
6185 * valops.c (hand_function_call): Change type of retbuf to ``struct
6186 regcache''. Allocate using regcache_xmalloc, clean using
6187 make_cleanup_regcache_xfree.
6188 * infcmd.c (run_stack_dummy): Update. Use
6189 regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
6191 * regcache.c (do_regcache_xfree): New function.
6192 (make_cleanup_regcache_xfree): New function.
6193 * regcache.h (make_cleanup_regcache_xfree): Declare.
6197 * event-top.c (command_line_handler): Don't read past
6198 beginning of buffer.
6202 * varobj.c (struct varobj_root): Change frame from CORE_ADDR to
6204 (varobj_create): Store frame_id for root.
6205 (varobj_gen_name): Use xasprintf.
6206 (varobj_update): Save and restore frame using get_frame_id() and
6208 (create_child): Use xasprintf.
6209 (new_root_variable): Initialize frame_id.
6210 (c_name_of_child): Use xasprintf. Call find_frame_by_id().
6211 (c_value_of_variable): Use xasprintf. Move mem_fileopen call
6212 to prevent memory leak.
6216 * valops.c (hand_function_call): Move declaration of retbuf to
6217 start of function, allocate using malloc, add a cleanup but before
6218 the inf_status cleanup, cleanup the buffer. Rename local variable
6219 old_chain to inf_status_cleanup.
6223 * top.c (execute_command): Use cmd_func() and cmd_func_p().
6225 * cli/cli-decode.c (cmd_func_p): New function.
6226 (cmd_func): New function.
6228 * command.h: Add cmd_func() and cmd_func_p().
6232 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
6233 (REGISTER_SIZE): Remove.
6234 (MAX_REGISTER_RAW_SIZE): Remove.
6235 (REGISTER_VIRTUAL_TYPE): Remove.
6236 (MAX_REGISTER_VIRTUAL_SIZE): Remove.
6237 (REGISTER_NAME): Remove.
6238 (USE_GENERIC_DUMMY_FRAMES): Remove.
6239 (CALL_DUMMY): Remove.
6240 (CALL_DUMMY_START_OFFSET): Remove.
6241 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
6242 (CALL_DUMMY_LOCATION): Remove.
6243 (FIX_CALL_DUMMY): Remove.
6244 (CALL_DUMMY_ADDRESS): Remove.
6245 (SIZEOF_CALL_DUMMY_WORDS): Remove.
6246 (SAVE_DUMMY_FRAME_TOS): Remove.
6247 * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
6248 (mcore_register_virtual_type): New function.
6249 (mcore_register_byte): New function.
6250 (mcore_register_size): New function.
6251 (mcore_register_name): New function.
6252 (mcore_gdbarch_init): New function. Add set_gdbarch calls for
6253 macros removed from tm-mcore.h.
6254 (mcore_dump_tdep): Add.
6255 (_initialize_mcore_tdep): Add gdbarch_register call.
6259 * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
6260 frameless_look_for_prologue, such that we actually call this
6265 * frame.h (frame_address_in_block): New function.
6267 * blockframe.c (frame_address_in_block): New function extracted
6268 from get_frame_block().
6269 (get_frame_block): Use frame_address_in_block().
6270 (block_innermost_frame): Use frame_address_in_block() to match
6271 the frame pc address against the block boundaries rather than
6272 the frame pc directly. This prevents a failure when a frame pc
6273 is actually a return-address pointing immediately after the end
6278 * MAINTAINERS: Add self under write after approval.
6282 * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
6283 used in architecture vector. The default is
6284 m68k_local_breakpoint_from_pc.
6285 (m68k_local_breakpoint_from_pc): Add.
6286 (enum): Add register numbers from tm-m68k.h.
6287 (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
6289 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
6290 GDB_MULTI_ARCH_PARTIAL.
6291 (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
6292 (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
6294 (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
6295 (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
6296 to enum in m68k-tdep.c
6300 * solib-osf.c (open_map): Compute the list of shared libraries
6301 loaded by the inferior, rather than the list of libraries loaded
6302 by GDB itself. Otherwise, GDB ends up reading the symbols from
6303 the wrong shared libraries...
6307 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
6308 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
6310 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
6312 (FRAMELESS_SIGNAL): Remove function.
6313 (i386_linux_frame_chain, i386_linux_frame_saved_pc,
6314 i386_linux_saved_pc_after_call): Removed.
6315 (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
6316 tdep->sc_pc_offset and tdep->sc_sp_offset. Don't override
6317 frame_chain, frame_saved_pc and saved_pc_after_call any longer.
6319 * i386-tdep.c (i386_frameless_signal_p): New function.
6320 (i386_frame_chain): Deal with frameless signals.
6321 (i386_sigtramp_saved_sp): New function.
6322 (i386_frame_saved_pc): Deal with frameless signals.
6323 (i386_saved_pc_after_call): Make sure the correct value is
6324 returned just after entry into a sigtramp.
6325 * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
6326 i386fbsd4_sc_sp_offset): New variables.
6327 (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
6328 these variables to initialize tdep->sc_sp_offset. * i386bsd-nat.c
6329 (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
6330 similiar to what we already did for sc_pc_offset.
6331 * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
6334 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
6338 * config/i386/tm-x86-64linux.h: New.
6339 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
6341 * config/i386/nm-x86-64.h: Rename to ...
6342 * config/i386/nm-x86-64linux.h: ... this one.
6343 * config/i386/x86-64linux.mh: Reflect the above change.
6347 * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
6348 with sigcontext_addr. Add sc_sp_offset.
6349 (i386bsd_sigtramp_saved_pc): Remove prototype.
6350 (i386bsd_sicontext_addr): Add prototype.
6351 * i386-tdep.c (i386_sigtramp_saved_pc): New function.
6352 (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
6353 (i386_svr4_sigtramp_saved_pc): Removed.
6354 (i386_svr4_sigcontext_addr): New function.
6355 (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
6356 Initialize tdep->sigcontext_addr instead. Initialize
6357 tdep->sc_pc_offset and tdep->sc_sp_offset.
6358 (i386_gdbarch_init): Likewise.
6359 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
6361 (i386bsd_sigtramp_saved_pc): Remove function.
6362 (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
6363 Initialize tdep->sigcontext_addr instead. Initialize
6365 * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
6366 of tdep->sigtramp_saved_pc.
6367 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
6368 tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr
6371 * i386-tdep.c (i386_frameless_function_invocation,
6372 i386_frame_num_args, i386_frame_init_saved_regs,
6373 i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
6374 i386_pop_frame, i386_push_arguments, i386_store_struct_return,
6375 i386_extract_return_value, i386_store_return_value,
6376 i386_extract_struct_value_address, i386_register_virtual_type,
6377 i386_register_convertible, i386_register_convert_to_virtual,
6378 i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
6379 i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
6384 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
6386 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
6387 * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
6388 this macro. Include "value.h".
6392 * ada-exp.tab.c: remove as it's a generated file
6393 * ada-lex.c: remove as it's a generated file
6397 * config/i386/tm-i386.h (struct frame_info, struct
6398 frame_saved_regs, struct value, struct type): Remove forward
6401 * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
6402 (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
6403 * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
6404 (FILL_FPXREGSET): Define.
6406 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
6408 * configure.tgt (i[3456]86-*-openbsd*): Fold into
6409 i[3456]86-*-netbsd* case.
6410 * config/i386/tm-obsd.h: Removed.
6411 * config/i386/obsd.mt: Removed.
6412 * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
6414 (MH_CFLAGS): Add -DYYDEBUG=0.
6416 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
6417 i386nbsd_sc_pc_offset on OpenBSD too.
6419 * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
6420 (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
6421 * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
6423 * i386bsd-tdep.c: Include "arch-utils.h".
6424 (i386bsd_aout_in_solib_call_trampoline): New function.
6425 (i386bsd_init_abi): Set in_solib_call_trampoline to
6426 i386bsd_aout_in_solib_call_trampoline.
6427 (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
6428 in_solib_call_trampoline to generic_in_solib_call_trampoline.
6432 * macrotab.h: Do not include "obstack.h" or "bcache.h".
6433 (struct obstack, struct bcache): Add opaque declarations.
6434 * Makefile.in (macrotab_h): Update
6438 * blockframe.c (generic_find_dummy_frame): Change return type to
6439 ``struct regcache''.
6440 (struct dummy_frame): Replace field ``registers'' with regcache, a
6441 struct regcache object.
6442 (generic_find_dummy_frame): Update.
6443 (generic_push_dummy_frame): Update. Use regcache_xfree,
6444 regcache_xmalloc and regcache_cpy.
6445 (generic_pop_dummy_frame): Update. Use regcache_cpy and
6447 (deprecated_generic_find_dummy_frame): Update.
6448 (generic_read_register_dummy): Update. Use
6449 regcache_read_as_address.
6450 (generic_call_dummy_register_unwind): Update. Use regcache_read.
6451 (generic_get_saved_register): Update. Use regcache_read.
6455 * Makefile.in (objfiles_h): Add $(bcache_h).
6456 * objfiles.h: Include "bcache.h".
6458 * Makefile.in (symtab_h): Remove $(bcache_h).
6459 * symtab.h: Do not include "bcache.h".
6463 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
6464 generic_func_frame_chain_valid.
6468 * config/i386/nm-fbsd.h: Include <sys/param.h>.
6469 * config/i386/tm-fbsd.h: Likewise.
6473 * rs6000-tdep.c (rs6000_gdbarch_init): Use
6474 generic_unwind_get_saved_register.
6479 * regcache.c (supply_register): Add missing argument to
6480 register_buffer call.
6484 * Makefile.in (init.c): Drop -e option to grep. Not necessary and
6485 Solaris /bin/grep does not not like it. From Peter Schauer.
6489 * command.h (add_setshow_cmd): Declare.
6490 (add_setshow_cmd_full): Declare.
6491 * cli/cli-decode.c (add_setshow_cmd): No longer static. Now
6492 returns void. Use add_setshow_cmd_full.
6493 (add_setshow_cmd_full): New function.
6494 (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
6495 (add_setshow_boolean_cmd): Likewise.
6499 * config/vax/tm-vax.h: Protect from multiple inclusion.
6500 (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
6501 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
6502 * config/vax/tm-vaxbsd.h: ...here. New file.
6503 * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
6507 * config/vax/tm-vax.h (BREAKPOINT): Remove.
6508 (BELIEVE_PCC_PROMOTION): Remove.
6509 (AP_REGNUM): Move to...
6510 * config/vax/nm-vax.h: ...here.
6511 * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
6512 (vax_breakpoint_from_pc): New function.
6513 (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
6514 and gdbarch_believe_pcc_promotion.
6518 * Makefile.in (vax_tdep_h): Define.
6519 (vax-tdep.o): Use $(vax_tdep_h).
6520 * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
6521 (vax_dump_tdep): New function.
6522 (_initialize_vax_tdep): Register vax_dump_tdep.
6523 * vax-tdep.h: Include osabi.h.
6524 (struct gdbarch_tdep): New.
6528 * frame.h (deprecated_generic_find_dummy_frame): Rename
6529 generic_find_dummy_frame.
6530 * blockframe.c (generic_find_dummy_frame): Make static.
6531 (deprecated_generic_find_dummy_frame): New function.
6532 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
6533 generic_find_dummy_frame with deprecated_find_dummy_frame.
6534 (sh64_nofp_frame_init_saved_regs): Ditto.
6535 (sh_fp_frame_init_saved_regs): Ditto.
6536 * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
6537 (s390_frame_chain): Ditto.
6538 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
6542 * config/m68k/tm-m68k.h: Rearrange code so macros not in the
6543 gdbarch vector are at the top.
6545 (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
6546 (FRAME_ARGS_ADDRESS): Remove.
6547 (FRAME_LOCALS_ADDRESS): Remove.
6548 (FRAME_NUM_ARGS): Remove.
6549 (FRAME_ARGS_SKIP): Remove.
6550 * m68k-tdep.c (enum): Add eumeration of special register numbers.
6551 (m68k_gdbarch_init): Add gdbarch initializations for macros
6552 undefined in tm-m68k.h
6556 * monitor.h: Add the function regname to monitor_ops
6557 structure. This way NUM_REGS does not have to be a constant.
6558 * monitor.c (monitor_fetch_register): Added support for regname
6559 function. The function is called if the array regnames is NULL.
6560 (monitor_store_register): Same.
6561 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
6563 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
6564 cpu32bug_cmds.regname to point to new function.
6565 * abug-rom.c (abug_regname): Same as above.
6566 (init_abug_cmds): Same.
6567 * dbug-rom.c (dbug_regname): Same as above.
6568 (init_dbug_cmds): Same.
6569 * remote-est.c (est_regname): Same.
6570 (init_est_cmds): Same.
6571 * rom68k-rom.c (rom68k_regname): Same.
6572 (init_rom68k_cmds): Same.
6576 * breakpoint.c (delete_command): Don't repeat `delete' commands.
6580 * infrun.c (stop_registers): Change variable's type to ``struct
6582 (xmalloc_inferior_status): Delete function.
6583 (free_inferior_status): Delete function.
6584 (normal_stop): Use regcache_cpy.
6585 (struct inferior_status): Change type of fields ``stop_registers''
6586 and ``registers'' to ``struct regcache''.
6587 (write_inferior_status_register): Use regcache_write.
6588 (save_inferior_status): Instead of calling
6589 xmalloc_inferior_status, allocate the inf_status buffer directly.
6590 Use regcache_dup_no_passthrough and regcache_dup to save the
6592 (restore_inferior_status): Use regcache_xfree and regcache_cpy.
6593 Replace the stop_registers regcache instead of overriding it. Use
6594 regcache_xfree. Instead of calling free_inferior_status, xfree
6595 the buffer directly.
6596 (discard_inferior_status): Use regcache_xfree. Instead of calling
6597 free_inferior_status, xfree the buffer directly.
6598 (build_infrun): Use regcache_xmalloc.
6599 (_initialize_infrun): Delete redundant call to build_infrun.
6601 * Makefile.in (infcmd.o): Add $(regcache_h).
6603 * infcmd.c: Include "regcache.h".
6604 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
6605 obtain the address of `stop_registers' register buffer.
6606 (print_return_value): Ditto.
6608 * inferior.h (struct regcache): Add opaque declaration.
6609 (stop_registers): Change variable's declared type to ``struct
6614 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
6615 * target.c (initialize_targets): Fixed typo in
6616 trust-readonly-sections `show' documentation.
6618 * main.c: Marked all strings with _().
6622 * memattr.c (create_mem_region): Treat hi == 0 as a special case
6623 that means max CORE_ADDR+1.
6624 (lookup_mem_region): Ditto.
6625 (mem_info_command): Ditto.
6629 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
6630 (REGISTER_BYTES_OK): Remove.
6631 (REGISTER_BYTES): Remove.
6632 (STORE_STRUCT_RETURN): Remove.
6633 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
6634 (STORE_RETURN_VALUE): Remove.
6635 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
6636 (FRAME_CHAIN): Remove.
6637 (FRAMELESS_FUNCTION_INVOCATION): Remove.
6638 (FRAME_SAVED_PC): Remove.
6639 * m68k-tdep.c (m68k_register_bytes_ok):Add.
6640 (m68k_store_struct_return): Add.
6641 (m68k_deprecated_extract_return_value): Add.
6642 (m68k_deprecated_extract_struct_value_address): Add.
6643 (m68k_store_return_value): Add.
6644 (m68k_frame_chain): Add.
6645 (m68k_frameless_function_invocation): Add.
6646 (m68k_frame_saved_pc): Add.
6647 (m68k_gdbarch_init): added set_gdbarch calls for new
6648 functions and deleted macros.
6652 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
6653 (ALLDEPFILES): Likewise.
6654 (udiheaders): Removed.
6655 (udip2soc.o): Likewise.
6656 (udi2go32.o): Likewise.
6658 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
6662 * infrun.c (_initialize_infrun): Delete unnecessary call to
6665 * regcache.h: Update comments describing the regcache_cpy family
6667 (regcache_save, regcache_restore): Delete declaration.
6668 (regcache_save_no_passthrough): Delete declaration.
6669 (regcache_restore_no_passthrough): Delete declaration.
6670 * regcache.c (regcache_save): Delete function.
6671 (regcache_save_no_passthrough): Delete function.
6672 (regcache_restore): Delete function.
6673 (regcache_restore_no_passthrough): Delete function.
6677 * config/m68k/tm-m68k.h: Fix typo.
6678 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
6679 (m68k_frame_init_saved_regs): Declare.
6683 Remove some vestiges of Harris 88k support.
6684 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
6685 register numbering quirk.
6686 * elfread.c (elf_symtab_read): Remove `#if' block for skipping
6687 odd symbols occurring in Harris 88k ELF targets.
6691 * gdb_locale.h: New file.
6692 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
6693 (defs_h): Added gdb_locale.h.
6694 * configure, config.in: Rebuilt.
6695 * configure.in (PACKAGE): Define.
6696 * defs.h: Include gdb_locale.h.
6697 * main.c (captured_main): Call setlocale, bindtextdomain,
6702 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
6703 * config/frv/frv.mt: New file.
6704 * config/frv/tm-frv.h: New file.
6705 * configure.tgt: Support frv-*-*.
6706 * Makefile.in (frv-tdep.o): New target.
6707 * frv-tdep.c: New file.
6708 * NEWS: Mention frv.
6712 * MAINTAINERS: Add self to "Write After Approval" list.
6716 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
6717 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
6718 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
6719 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
6720 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
6722 * m68k-tdep.c: Include arch-utils.h
6723 (m68k_register_raw_size): Add.
6724 (m68k_register_virtual_size): Add.
6725 (m68k_register_virtual_type): Add.
6726 (m68k_register_name): Add.
6727 (m68k_stack_align): Add.
6728 (m68k_register_byte): Add.
6729 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
6734 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
6735 m68k_find_saved_regs.
6736 (m68k_pop_frame): Removed saved_regs structure, and replaced
6737 references to it with frame->saved_regs.
6738 (m68k_gdbarch_init): Added function calls to initialize the
6740 (m68k_fix_call_dummy): Add.
6741 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
6742 (CALL_DUMMY): Remove.
6743 (CALL_DUMMY_LENGTH): Remove.
6744 (CALL_DUMMY_START_OFFSET): Remove.
6745 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
6746 (FIX_CALL_DUMMY): Remove.
6747 (PUSH_DUMMY_FRAME): Remove.
6748 (POP_FRAME): Remove.
6752 * parse.c (parse_fprintf): New function used to avoid calls to
6753 fprintf in bison parser generated debug code.
6754 * parser-defs.h: Declaration of new parse_fprintf function.
6755 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
6756 Set YYDEBUG to 1 by default.
6757 Set YYFPRINTF as parse_fprintf.
6761 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
6763 (pointer_encoding, enum ptr_encoding): New.
6764 (execute_cfa_program): Take care about pointer encoding.
6765 (dwarf2_build_frame_info): Only call parse_frame_info for
6766 .debug_frame and .eh_frame.
6767 (parse_frame_info): New, derived from former dwarf2_build_frame_info.
6768 fixed augmentation handling, added relative addressing,
6769 ignore duplicate FDEs. Added comments.
6770 * dwarf2cfi.c: Reindented.
6774 * event-top.c (command_handler): Don't use space_at_cmd_start
6775 unless there is sbrk() on the host. Assign time and space data
6776 to union fields of the appropriate length.
6780 * x86-64-tdep.c (x86_64_register_nr2name): Rename to
6781 x86_64_register_name. Return type changed to 'const char *'.
6782 (x86_64_register_name2nr): Rename to x86_64_register_number.
6783 (x86_64_gdbarch_init): Update to reflect the change.
6784 * x86-64-tdep.h: Ditto.
6785 * x86-64-linux-nat.c (x86_64_fxsave_offset)
6786 (supply_fpregset): Ditto.
6790 * regcache.h: Update copyright.
6791 (struct regcache, struct gdbarch): Add opaque declarations.
6792 (current_regcache): Declare global variable.
6793 (regcache_read, regcache_write): Add gdbarch parameter.
6794 (regcache_save, regcache_save_no_passthrough)
6795 (regcache_restore, regcache_restore_no_passthrough)
6796 (regcache_dup, regcache_dup_no_passthrough)
6797 (regcache_cpy, regcache_cpy_no_passthrough)
6798 (deprecated_grub_regcache_for_registers)
6799 (deprecated_grub_regcache_for_register_valid)
6800 (regcache_valid_p): Add function declarations.
6802 * regcache.c: Update copyright.
6803 (regcache_descr_handle): New global variable.
6804 (struct regcache_descr): Define.
6805 (init_legacy_regcache_descr, init_regcache_descr): New functions.
6806 (regcache_descr, xfree_regcache_descr): New functions.
6807 (struct regcache): Define.
6808 (regcache_xmalloc, regcache_xfree): New functions.
6809 (regcache_cpy, regcache_cpy_no_passthrough): New functions.
6810 (regcache_dup, regcache_dup_no_passthrough): New functions.
6811 (regcache_valid_p, regcache_read_as_address): New functions.
6812 (deprecated_grub_regcache_for_registers): New function.
6813 (deprecated_grub_regcache_for_register_valid): New function.
6814 (current_regcache): New global variable.
6815 (register_buffer): Add regcache parameter. Update calls.
6816 (regcache_read, regcache_write): Add regcache parameter. Rewrite.
6817 (read_register_gen, write_register_gen): Update register_buffer
6818 call. Test for legacy_p instead of gdbarch_register_read_p or
6819 gdbarch_register_write_p.
6820 (regcache_collect): Update register_buffer call.
6821 (build_regcache): Rewrite. Use deprecated grub functions.
6822 (regcache_save, regcache_save_no_passthrough): New functions.
6823 (regcache_restore, regcache_restore_no_passthrough): New
6825 (_initialize_regcache): Create the regcache_data_handle. Swap
6826 current_regcache global variable.
6828 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
6829 parameter to regcache_read and regcache_write calls.
6830 (sh4_register_read): Ditto.
6831 (sh64_pseudo_register_read): Ditto.
6832 (sh64_register_read): Ditto.
6833 (sh_pseudo_register_write): Ditto.
6834 (sh4_register_write): Ditto.
6835 (sh64_pseudo_register_write): Ditto.
6836 (sh64_register_write): Ditto.
6838 * defs.h (XCALLOC): Define.
6842 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
6843 * m68k-tdep.c (m68k_gdbarch_init): Added.
6844 (m68k_dump_tdep): Added.
6848 * ada-lang.c (fill_in_ada_prototype): Update comment.
6852 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
6854 (mips_abi_string, mips_abi_strings): New.
6855 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
6856 (mips_gdbarch_init): Set tdep->found_abi. Don't set
6857 tdep->mips_abi_string. Honor mips_abi_string. Default to
6858 O32 if no ABI is found.
6859 (mips_dump_tdep): Use mips_abi_strings.
6860 (mips_abi_update): New function.
6861 (_initialize_mips_tdep): Initialize mips_abi_string. Add
6862 ``set mips abi'' and ``show mips abi''. Check the size of
6867 * i386-linux-tdep.c (i386_linux_register_name): Make return type
6872 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
6873 current frame using only the first stack size adjustment. All
6874 subsequent size adjustments are not considered to be part of
6875 the "static" part of the current frame.
6876 Compute the address of the saved registers relative to the
6877 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
6878 in use in this frame.
6882 * valops.c (value_ind): Use value_at_lazy() when dereferencing
6884 suggesting this solution.
6888 * config/romp/xm-rtbsd.h: Delete file.
6889 * config/romp/rtbsd.mh: Delete file.
6893 * breakpoint.c (condition_command): Post breakpoint_modify
6894 when a condition is added to an existing breakpoint.
6895 (commands_command): Likewise for commands.
6896 (set_ignore_count): Likewise for ignore counts.
6897 If no tty, do not simply return, still need to send event
6899 (ignore_command): Only print a newline if the command came
6901 Don't call breakpoints_changed, since this is now properly
6902 handled by set_ignore_count.
6906 * MAINTAINERS: Note that cris-elf target can be compiled with
6908 * cris-tdep.c (cris_register_name): Make return type constant.
6909 (cris_breakpoint_from_pc): Ditto.
6913 * frame.h (struct frame_info): Change type of context to
6918 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
6920 * gdbarch.h, gdbarch.c: Regenerate.
6921 * config/mips/tm-mips.h (mips_register_name): Update.
6922 * i386-tdep.h (i386_register_name): Update.
6923 * mips-tdep.c (mips_register_name): Update
6924 * alpha-tdep.c (alpha_register_name): Update.
6925 * arch-utils.c (legacy_register_name): Update.
6926 * arch-utils.h (legacy_register_name): Update.
6927 * avr-tdep.c (avr_register_name): Update.
6928 * ia64-tdep.c (ia64_register_name): Update.
6929 * i386-tdep.c (i386_register_name): Update.
6930 * sparc-tdep.c (sparc32_register_name): Update.
6931 (sparc64_register_name): Update.
6932 (sparclite_register_name): Update.
6933 (sparclet_register_name): Update.
6934 * sh-tdep.c (sh_generic_register_name): Update.
6935 (sh_sh_register_name): Update.
6936 (sh_sh3_register_name): Update.
6937 (sh_sh3e_register_name): Update.
6938 (sh_sh_dsp_register_name): Update.
6939 (sh_sh3_dsp_register_name): Update.
6940 (sh_sh4_register_name): Update.
6941 (sh_sh64_register_name): Update.
6942 * s390-tdep.c (s390_register_name): Update.
6943 * rs6000-tdep.c (rs6000_register_name): Update.
6944 * ns32k-tdep.c (ns32k_register_name_32082): Update.
6945 (ns32k_register_name_32382): Update.
6946 * d10v-tdep.c (d10v_ts2_register_name): Update.
6947 (d10v_ts3_register_name): Update.
6948 * xstormy16-tdep.c (xstormy16_register_name): Update.
6949 * vax-tdep.c (vax_register_name): Update.
6950 * v850-tdep.c (v850_register_name): Update.
6951 * m68hc11-tdep.c (m68hc11_register_name): Update.
6952 * mn10300-tdep.c (mn10300_generic_register_name): Update.
6953 (am33_register_name): Update.
6957 * m68k-tdep.c: Reindented.
6961 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
6962 list of predefined types.
6966 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
6967 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
6968 REGISTER_CONVERT_TO_RAW): Remove defines.
6969 (i386_register_virtual_type, i386_register_convertible,
6970 i386_register_convert_to_virtual, i386_register_convert_to_raw):
6972 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
6973 macros mentioned above.
6975 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
6976 (i386lynx_saved_pc_after_call): Remove prototype.
6977 * i386ly-tdep.c: Include "i386-tdep.h".
6978 (i386lynx_saved_pc_after_call): Make static. Use
6979 read_memory_nobpt instead of read_memory. Use
6980 read_memory_unsigned_integer instead of read_memory_integer.
6981 (i386lynx_init_abi): New function.
6982 (i386lynx_coff_osabi_sniffer): New function.
6983 (_initialize_i386bsd_tdep): New function.
6985 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
6986 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
6987 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
6988 (i386_fix_call_dummy): Remove prototype.
6989 * i386-tdep.c (i386_call_dummy_words): New variable.
6990 (i386_gdbarch_init): Adjust for removal of the
6991 macros mentioned above.
6995 * command.h (add_setshow_auto_boolean_cmd): Replace
6996 add_set_auto_boolean_cmd.
6997 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
6998 add_set_auto_boolean_cmd.
6999 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
7000 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
7001 mask-address'' command.
7002 (show_mask_address): Add cmd parameter.
7003 * remote.c (add_packet_config_cmd): Update. Change type of
7004 set_func and show_func to cmd_sfunc_ftype.
7005 (_initialize_remote): Update `set remote Z-packet'
7006 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
7007 (show_remote_protocol_e_packet_cmd): Ditto.
7008 (show_remote_protocol_E_packet_cmd): Ditto.
7009 (show_remote_protocol_P_packet_cmd): Ditto.
7010 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
7011 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
7012 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
7013 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
7014 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
7015 (show_remote_protocol_Z_packet_cmd): Ditto.
7016 (show_remote_protocol_binary_download_cmd): Ditto.
7017 (show_remote_cmd): Pass NULL to all of above.
7021 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
7022 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
7023 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
7024 POP_FRAME): Remove defines.
7025 (i386_push_arguments, i386_store_struct_return,
7026 i386_extract_return_value, i386_store_return_value,
7027 i386_extract_struct_value_address, i386_push_dummy_frame,
7028 i386_pop_frame): Renove prototypes.
7029 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
7030 macros mentioned above.
7034 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
7035 add_set_boolean_cmd.
7036 (add_setshow_cmd): New function.
7037 * command.h (add_setshow_boolean_cmd): Replace
7038 add_set_boolean_cmd.
7039 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
7040 and ``set rdiromatzero''.
7041 * maint.c (_initialize_maint_cmds): Update commented out code.
7042 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
7043 * target.c (initialize_targets): Update `set
7044 trust-readonly-sections'.
7045 * remote.c (_initialize_remote): Update `set remotebreak'.
7049 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
7050 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
7051 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
7052 fit into multi-arch framework.
7053 (i386_breakpoint_from_pc): New function.
7054 (i386_gdbarch_init): Adjust for removal of the macros mentioned
7057 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
7058 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
7059 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
7060 (i386_frameless_function_invocation, i386_frame_num_args,
7061 i386_frame_init_saved_regs): Remove prototypes.
7062 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
7063 macros mentioned above.
7067 * cli/cli-decode.c (set_cmd_cfunc): Update.
7068 (set_cmd_sfunc): Update.
7069 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
7070 (set_cmd_sfunc, set_cmd_cfunc): Update.
7071 * cli/cli-decode.h: Update.
7075 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
7076 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
7080 * defs.h (auto_boolean): Declare enum.
7081 * command.h (cmd_auto_boolean): Delete enum.
7082 * mips-tdep.c (mask_address_var): Update.
7083 (mips_mask_address_p): Update.
7084 (show_mask_address): Update.
7085 * remote.c (struct packet_config): Update.
7086 (update_packet_config): Update.
7087 (show_packet_config_cmd): Update.
7088 (packet_ok): Update.
7089 (add_packet_config_cmd): Update.
7090 (_initialize_remote):
7091 * command.h: Update.
7092 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
7093 (do_setshow_command): Update.
7094 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
7095 * cli/cli-decode.h: Update.
7099 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
7100 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
7101 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
7102 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
7103 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
7104 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
7106 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
7107 list of DJGPP COFF targets.
7109 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
7110 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
7111 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
7112 (FP0_REGNUM): Remove define.
7113 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
7114 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
7115 (i386_register_virtual_size): Remove protoype.
7116 * i386-tdep.c (i386_register_virtual_size): Removed.
7117 (i386_extract_return_value, i386_store_return_value): Use
7118 FP0_REGNUM instead of NUM_FREGS to determine whether the
7119 floating-point registers are available.
7120 (i386_gdbarch_init): Tweak FIXME about FPU registers.
7121 Adjust for removal of macros mentioned above.
7125 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
7127 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
7129 (supply_gregset, fill_gregset): Remove use of register keyword and
7130 remove declaration for regmap. Use I386_NUM_GREGS instead of
7131 NUM_REGS and NUM_FREGS.
7132 (FPREGSET_FSAVE_OFFSET): Remove.
7133 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
7134 NUM_FREGS to determine whether the floating-point registers are
7137 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
7138 gnu_store_registers): Replace usage of NUM_GREGS with
7141 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
7142 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
7143 usage of NUM_GREGS with I386_NUM_GREGS.
7145 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
7147 * i386bsd-nat.c: Include "i386-tdep.h".
7148 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
7151 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
7152 and associated comment. They no longer make any sense, since we
7153 don't use this file anymore on Linux.
7155 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
7156 * i386-tdep.c (i386_register_offset, i386_register_size): Use
7157 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
7158 elements in these arrays.
7159 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
7164 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
7165 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
7169 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
7170 EXTRACT_RETURN_VALUE.
7171 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
7172 EXTRACT_STRUCT_VALUE_ADDRESS.
7173 * gdbarch.h, gdbarch.c: Regenerate.
7175 * values.c (value_being_returned): Handle
7176 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
7177 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
7179 * arm-linux-tdep.c (arm_linux_init_abi): Update.
7180 * arm-tdep.c (arm_gdbarch_init): Update.
7181 * avr-tdep.c (avr_gdbarch_init): Update.
7182 * cris-tdep.c (cris_gdbarch_init): Update.
7183 * d10v-tdep.c (d10v_gdbarch_init): Update.
7184 * ia64-tdep.c (ia64_gdbarch_init): Update.
7185 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7186 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7187 * s390-tdep.c (s390_gdbarch_init): Update.
7188 * sh-tdep.c (sh_gdbarch_init): Update.
7189 * s390-tdep.c (s390_gdbarch_init): Update.
7190 * sparc-tdep.c (sparc_gdbarch_init): Update.
7191 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7192 * v850-tdep.c (v850_gdbarch_init): Update.
7193 * vax-tdep.c (vax_gdbarch_init): Update.
7194 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
7195 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7197 * config/arc/tm-arc.h: Update.
7198 * config/d30v/tm-d30v.h: Update.
7199 * config/fr30/tm-fr30.h: Update.
7200 * config/h8300/tm-h8300.h: Update.
7201 * config/h8500/tm-h8500.h: Update.
7202 * config/i386/tm-i386.h: Update.
7203 * config/i386/tm-ptx.h: Update.
7204 * config/i386/tm-symmetry.h: Update.
7205 * config/i960/tm-i960.h: Update.
7206 * config/m32r/tm-m32r.h: Update.
7207 * config/m68k/tm-delta68.h: Update.
7208 * config/m68k/tm-linux.h: Update.
7209 * config/m68k/tm-m68k.h: Update.
7210 * config/m88k/tm-m88k.h: Update.
7211 * config/mcore/tm-mcore.h: Update.
7212 * config/mips/tm-mips.h: Update.
7213 * config/mn10200/tm-mn10200.h: Update.
7214 * config/pa/tm-hppa.h: Update.
7215 * config/pa/tm-hppa64.h: Update.
7216 * config/sparc/tm-sp64.h: Update.
7217 * config/sparc/tm-sparc.h: Update.
7218 * config/sparc/tm-sparclet.h: Update.
7219 * config/z8k/tm-z8k.h: Update.
7223 * Makefile.in (i386_linux_tdep_h): Define.
7224 (i386_tdep_h, i387_tdep_h): Define.
7225 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
7226 $(i386_tdep_h) and $(i387_tdep_h).
7227 * i386-linux-nat.c: Include "i386-linux-tdep.h".
7231 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
7232 Already covered by the default.
7234 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
7235 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
7236 (i386_gdbarch_init): Initialize long_double_format and long_double
7239 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
7240 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
7242 * config/i386/i386sol2.mh: ... here.
7243 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
7244 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
7245 (SIGCONTEXT_PC_OFFSET): Remove define.
7246 (IN_SIGTRAMP): Remove define.
7247 * i386-sol2-tdep.c: New file.
7249 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
7250 * config/i386/tm-i386nw.h: Removed.
7252 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
7253 USE_STRUCT_CONVENTION): Remove defines.
7254 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
7255 (get_longjmp_target): Remove prototype.
7256 (IN_SIGTRAMP): Remove define.
7257 (i386bsd_in_sigtramp): Remove prototype.
7258 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
7259 function. Update comment accordingly
7260 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
7261 (FRAME_SAVED_PC): Remove define.
7262 (i386bsd_frame_saved_pc): Remove prototype.
7263 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
7264 GET_LONGJMP_TARGET): Remove defines.
7265 (get_longjmp_target): Remove prototype.
7266 (IN_SIGTRAMP): Remove define.
7267 (i386bsd_in_sigtramp): Remove prototype.
7268 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
7269 function. Update comment accordingly
7270 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
7271 (FRAME_SAVED_PC): Remove define.
7272 (i386bsd_frame_saved_pc): Remove prototype.
7273 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
7275 (USE_STRUCT_CONVENTION): Remove prototype.
7276 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
7278 (_initialize_i386bsd_nat): Revise logic to determine some
7279 constants at compile time when compiling a native GDB. Warn if
7280 things don't match up with what we expect.
7281 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
7283 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
7284 to use date stored in `struct gdbarch_tdep'.
7285 (i386bsd_sigcontext_offset): Remove varaible.
7286 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
7287 stored in `struct gdbarch_tdep'.
7288 (i386bsd_frame_saved_pc): Make static.
7289 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
7290 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
7291 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
7292 i386fbsd4_sc_pc_offset): New variables.
7293 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
7294 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
7296 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
7298 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
7299 Modify the value of i386fbsd_sigtramp_start and
7300 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
7301 i386fbsd_sigtramp_end.
7302 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
7305 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
7306 define to i386-linux-tdep.h.
7307 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
7308 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
7310 (i386_linux_register_name, i386_linux_register_byte,
7311 i386_linux_register_raw_size): Remove prototypes.
7312 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
7313 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
7314 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
7315 TARGET_WRITE_PC): Remove defines.
7316 (i386_linux_in_sigtramp, i386_linux_frame_chain,
7317 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
7318 i386_linux_write_pc): Remove prototypes.
7319 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
7320 (get_longjmp_target): Remove prototype.
7321 * i386-linux-tdep.h: New file.
7322 * i386-linux-nat.c: Include "i386-linux-tdep.h".
7323 * i386-linux-tdep.c: Include "i386-tdep.h" and
7324 "i386-linux-tdep.h".
7325 (i386_linux_register_name, i386_linux_register_byte,
7326 i386_linux_register_raw_size, i386_linux_in_sigtramp,
7327 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
7329 (i386_linux_init_abi): New function.
7330 (_initialize_i386_linux_tdep): New function.
7332 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
7333 (i386_saved_pc_after_call): Remove prototype.
7334 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
7335 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
7336 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
7337 (i386_register_name, i386_stab_reg_to_regnum,
7338 i386_dwarf_reg_to_regnum): Remove prototypes.
7339 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
7340 SIZEOF_SSE_REGS): Remove defines.
7341 (REGISTER_BYTES): Remove define.
7342 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
7343 (i386_register_byte, i386_register_raw_size): Remove prototypes.
7344 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
7345 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
7346 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
7347 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
7348 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
7349 (get_longjmp_target): Remove prototype.
7350 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
7351 (sigtramp_saved_pc): Remove define.
7352 (i386v4_sigtramp_saved_pc): Remove prototype.
7353 * config/i386/tm-go32.h (FRAME_CHAIN,
7354 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
7355 (i386go32_frame_saved_pc): Remove prototype.
7356 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
7357 (get_longjmp_target): Remove prototype.
7358 * i386-tdep.h: Include "osabi.h".
7359 (enum i386_abi): Removed.
7360 (enum struct_return): New enum.
7361 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
7362 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
7363 sc_pc_offset members.
7364 (i386_gdbarch_register_os_abi): Remove prototype.
7365 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
7366 I386_SSE_NUM_REGS): New defines.
7367 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
7368 I386_SSE_SIZEOF_REGS): New defines.
7369 (i386_register_name, i386_register_byte, i386_register_raw_size):
7371 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
7372 (i386bsd_sigtramp_saved_pc): New prototype.
7373 * i386-tdep.c: Don't include "elf-bfd.h".
7374 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
7375 i386_frame_chain, i386_saved_pc_after_call): Make static.
7376 (i386_frame_saved_pc): Rewrite to call architecture dependent
7377 function to deal with signal handlers. Make static.
7378 (i386go32_frame_saved_pc): Removed.
7379 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
7381 (i386_get_longjmp_target): New function.
7382 (default_struct_convention, pcc_struct_convention,
7383 reg_struct_convention, valid_conventions, struct_convention): New
7385 (i386_use_struct_convention): New function.
7386 (i386v4_sigtramp_saved_pc): Renamed to
7387 i386_svr4_sigtramp_saved_pc. Made static. Moved.
7388 (i386_pc_in_sigtramp): New function.
7389 (i386_abi_names): Removed.
7390 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
7391 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
7393 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
7394 i386_gdbarch_register_os_abi): Removed.
7395 (struct i386_abi_handler): Removed.
7396 (i386_abi_handler_list): Removed.
7397 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
7399 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
7400 i386_nw_init_abi): New functions.
7401 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
7402 Use set_gdbarch_xxx() calls instead of relying on macros for a
7404 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
7405 (_initialize_i386_tdep): Add new 'struct-convcention' command.
7406 Register the various architecture variants defined in this file.
7410 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
7411 (struct main_type): Remove arg_types member. Update comments for
7413 (TYPE_ARG_TYPES): Remove.
7414 (TYPE_FN_FIELD_ARGS): Update.
7415 (smash_to_method_type): Update prototype.
7417 * c-typeprint.c (cp_type_print_method_args): Take method type
7418 instead of argument list. Use new argument layout. Simplify.
7419 (c_type_print_args): Use new argument layout. Simplify.
7420 (c_type_print_base): Update call to cp_type_print_method_args.
7421 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
7422 argument; use die->type instead. Update call to
7423 smash_to_method_type.
7424 (read_structure_scope): Update call to dwarf2_add_member_fn.
7425 * gdbtypes.c (allocate_stub_method): Update comment.
7426 (smash_to_method_type): Take new NARGS and VARARGS arguments.
7427 Use new argument layout.
7428 (check_stub_method): Use new argument layout. Don't count
7429 void as an argument.
7430 (print_arg_types): Update comments. Use new argument layout.
7431 (recursive_dump_type): Don't print arg_types member.
7432 * hpread.c (hpread_read_struct_type): Use new argument layout.
7433 (fixup_class_method_type): Likewise.
7434 (hpread_type_lookup): Likewise.
7435 * stabsread.c (read_type): Update calls to read_args and
7436 smash_to_method_type.
7437 (read_args): Use new argument layout. Simplify.
7438 * valops.c (typecmp): Use new argument layout. Update parameters
7439 and comments. Simplify.
7440 (hand_function_call): Use new argument layout.
7441 (search_struct_method): Update call to typecmp.
7442 (find_overload_match): Use new argument layout.
7446 * NEWS: Mention multithreaded debug support for gdbserver.
7450 * MAINTAINERS: Mention NEWS.
7454 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
7455 (struct mips_objfile_private, compare_pdr_entries): New.
7456 (non_heuristic_proc_desc): Read the ".pdr" section if it
7461 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
7462 (arm_debug): New static variable.
7463 (_initialize_arm_tdep): Add ``set debug arm'' command.
7467 * Makefile.in (sim_arm_h): Define.
7468 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
7469 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
7470 (arm_register_sim_regno): New function, map an internal REGNUM
7471 onto a simulator register number.
7472 (arm_gdbarch_init): Set register_sim_regno.
7476 * MAINTAINERS: Add self.
7480 * source.c (source_info): Mention whether the symtab has
7481 information about preprocessor macros.
7483 Call the command `info macro', not `show macro'.
7484 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
7486 (_initialize_macrocmd): Register `info_macro_command' in
7487 `infolist', not `showlist'.
7491 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
7492 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
7493 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
7494 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
7495 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
7497 (set_mipsfpu_single_command, set_mipsfpu_double_command)
7498 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
7499 (_initialize_mips_tdep): Remove dead code.
7500 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
7501 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
7502 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
7503 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
7504 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
7505 MIPS_LAST_FP_ARG_REGNUM): Remove.
7509 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
7510 (unwind_tmp_obstack_free, parse_frame_info)
7511 (update_context, cfi_read_fp, cfi_write_fp)
7512 (cfi_frame_chain, cfi_init_extra_frame_info)
7513 (cfi_virtual_frame_pointer): Use the above function.
7514 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
7518 * v850-tdep.c (v850_type_is_scalar): New function.
7519 (v850_use_struct_convention): Match current gcc implementation
7520 as close as possible.
7521 (v850_push_arguments): Fix stack_offset handling. Don't write
7522 struct_addr into register. This is done by v850_store_struct_return.
7523 (v850_extract_return_value): Care for structs.
7524 (v850_store_return_value): Ditto.
7525 (v850_store_struct_return): Actually write address.
7529 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
7530 without debug information too.
7534 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
7535 Make multi-arch pure.
7536 * gdbarch.h, gdbarch.c: Re-generate.
7537 * arm-tdep.c (arm_print_float_info): Update.
7538 * arch-utils.h (default_print_float_info): Update.
7539 * arch-utils.c (default_print_float_info): Update.
7540 * infcmd.c (float_info): Update call.
7544 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
7545 the front of the initialize list.
7549 * infrun.c (struct inferior_status): Replace fields
7550 selected_frame_address and selected_level with field
7552 (save_inferior_status): Update. Use get_frame_id.
7553 (struct restore_selected_frame_args): Delete.
7554 (restore_selected_frame): Update. Use frame_find_by_id.
7555 (restore_inferior_status): Update.
7557 * breakpoint.h (struct breakpoint): Change type of
7558 watchpoint_frame to frame_id.
7559 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
7560 call to get_current_frame.
7561 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
7563 (watchpoint_check): Use frame_find_by_id.
7565 * frame.h (record_selected_frame): Delete declaration.
7566 * stack.c (record_selected_frame): Delete function.
7568 * frame.h (struct frame_id): Define.
7569 (get_frame_id): Declare.
7570 (frame_find_by_id): Declare.
7571 * frame.c (frame_find_by_id): New function.
7572 (get_frame_id): New function.
7576 * ser-e7kpc.c: Fix duplicated define and call of
7577 _initialize_ser_e7000pc
7581 * signals/signals.c (target_signal_from_host): Fix #ifdef
7583 (do_target_signal_to_host): Likewise.
7587 * mips-tdep.c (mips_find_abi_section): New function.
7588 (mips_gdbarch_init): Call it.
7592 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
7593 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
7594 after Andrew's 2002-06-08 gdbarch change.
7598 * i386-linux-nat.c (suppy_gregset): Don't supply
7599 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
7601 (fill_gregset): Don't fetch it under the same circumstances.
7605 * Makefile.in (callback_h): Define.
7606 (remote_sim_h): Update path to remote-sim.h.
7607 (remote-rdp.o): Add $(callback_h).
7608 (remote-sim.o): Use $(callback_h).
7609 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
7610 * remote-rdp.c: Include "gdb/callback.h".
7614 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
7615 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
7619 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
7620 * rdi-share/serpardr.c: Ditto.
7621 * rdi-share/unixcomm.c: Ditto.
7622 * rdi-share/serdrv.c: Ditto.
7623 * rdi-share/hostchan.h: Ditto.
7624 * rdi-share/hostchan.c: Ditto.
7625 * rdi-share/host.h: Ditto.
7626 * rdi-share/devsw.c: Ditto.
7628 * objfiles.h: Change type of obj_private to void pointer.
7629 * pa64solib.c: Update copyright. Don't include "assert.h", use
7630 strcmp instead of STREQ, use LONGEST, do not use PTR
7631 * somsolib.c: Ditto.
7633 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
7634 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
7635 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
7639 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
7640 (default_get_saved_register): Delete function.
7641 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
7642 generic_unwind_get_saved_register.
7643 * gdbarch.h, gdbarch.c: Re-generate.
7647 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
7648 generic_func_frame_chain_valid.
7649 * gdbarch.h, gdbarch.c: Re-generate.
7650 * blockframe.c (generic_func_frame_chain_valid): Only check
7651 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
7652 passing FP to PC_IN_CALL_DUMMY.
7657 * gdbarch.sh (struct gdbarch_data): Add field init_p.
7658 (register_gdbarch_data): Initialize init_p.
7659 (gdbarch_data): Initialize data pointer using the init function.
7660 (init_gdbarch_data): Delete function.
7661 (gdbarch_update_p): Update.
7662 (initialize_non_multiarch): Update.
7663 (struct gdbarch): Add field initialized_p.
7664 * gdbarch.h, gdbarch.c: Re-generate.
7668 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
7669 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
7670 better do the things actually here.
7671 * x86-64-tdep.c (x86_64_register_name2nr): New.
7672 (x86_64_register_name): Renamed to x86_64_register_nr2name.
7673 (x86_64_gdbarch_init): Respect the above change.
7674 * x86-64-tdep.h (x86_64_register_name2nr)
7675 (x86_64_register_nr2name): Add prototypes.
7676 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
7680 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
7681 Delete extra braces and re-indent.
7682 (d10v_store_return_value): Char return values
7683 must be shifted over by one byte in R0.
7684 (d10v_extract_return_value): Delete extra braces, re-indent.
7688 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
7689 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
7690 (d10v_integer_to_address): Rewrite.
7691 (d10v_frame_init_saved_regs): When reading fp and sp registers use
7692 the d10v specific functions which take care of converting to the
7697 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
7698 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
7702 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
7704 * config/tm-linux.h: Ditto.
7705 * config/alpha/tm-alphalinux.h: Ditto.
7706 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
7707 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
7708 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
7709 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
7710 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
7711 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
7712 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
7713 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
7714 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
7715 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
7716 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
7717 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
7718 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
7719 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
7720 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
7721 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
7722 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
7723 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
7724 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
7725 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
7726 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
7727 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
7728 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
7729 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
7730 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
7731 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
7732 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
7733 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
7734 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
7735 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
7736 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
7737 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
7738 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
7739 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
7740 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
7741 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
7742 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
7746 * ada-exp.tab.c: New file
7747 * ada-exp.y: New file
7748 * ada-lang.c: New file
7749 * ada-lang.h: New file
7750 * ada-lex.c: New file
7751 * ada-lex.l: New file
7752 * ada-tasks.c: New file
7753 * ada-typeprint.c: New file
7754 * ada-valprint.c: New file
7758 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
7759 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
7763 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
7764 insetead of ppc-linux-tdep.o.
7765 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
7766 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
7771 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
7772 bit register contents for little endian hosts.
7776 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
7781 * gdbarch.h: Regenerate.
7785 * MAINTAINERS: Add everyone to write-after-approval list.
7789 * stack.c (frame_info): Use frame_register_unwind instead of
7790 saved_regs. Mention when the SP is on the stack or in a register.
7792 * frame.h (frame_register_unwind_ftype): Define. Document.
7793 (struct frame_info): Add field register_unwind and
7794 register_unwind_cache.
7795 (frame_register_unwind): Declare.
7796 (generic_unwind_get_saved_register): Declare.
7798 * frame.c (frame_register_unwind): New function.
7799 (generic_unwind_get_saved_register): New function.
7801 * blockframe.c (generic_call_dummy_register_unwind): New function.
7802 (frame_saved_regs_register_unwind): New function.
7803 (set_unwind_by_pc): New function.
7804 (create_new_frame): New function.
7805 (get_prev_frame): New function.
7809 * a29k-share/: Delete directory.
7810 * remote-vx29k.c: Delete file.
7814 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
7815 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
7819 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
7820 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
7823 (sparcnbsd-tdep.o): New dependency lists.
7824 * NEWS: Note new UltraSPARC NetBSD native configuration.
7825 * configure.host (sparc64-*-netbsd*): New host.
7826 * configure.tgt (sparc-*-netbsdelf*)
7827 (sparc-*-netbsd*): Set gdb_target to nbsd.
7828 (sparc64-*-netbsd*): New target.
7829 * sparc64nbsd-nat.c: New file.
7830 * sparcnbsd-nat.c: New file.
7831 * sparcnbsd-tdep.c: New file.
7832 * sparcnbsd-tdep.h: New file.
7833 * config/sparc/nbsd.mt: New file.
7834 * config/sparc/nbsd64.mh: New file.
7835 * config/sparc/nbsd64.mt: New file.
7836 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
7837 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
7839 * config/sparc/nbsdaout.mt: Remove.
7840 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
7841 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
7843 * config/sparc/nbsdelf.mt: Remove.
7844 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
7845 sparc-nat.c compatiblity defines.
7846 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
7847 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
7848 * config/sparc/tm-nbsd64.h: New file.
7849 * config/sparc/tm-nbsdaout.h: Remove.
7850 * config/sparc/xm-nbsd.h: Remove.
7854 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
7855 * sparc-tdep.c: Include osabi.h.
7856 (gdbarch_tdep): Add osabi member.
7857 (_initialize_sparc_tdep): Use gdbarch_register.
7858 (sparc_gdbarch_init): Use generic OS ABI framework.
7859 (sparc_dump_tdep): New function.
7863 * corefile.c (do_captured_read_memory_integer): Return non-zero
7865 (safe_read_memory_integer): Copy result of memory read when
7866 status is non-zero. Also, add comments.
7870 * Makefile.in (ppc_tdep_h): Define.
7873 (rs6000-tdep.o): Use $(ppc_tdep_h).
7876 (ppcnbsd-tdep.o): New dependency lists.
7877 * ppc-tdep.h: Use generic OS ABI framework.
7878 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
7879 (ppc_linux_init_abi): New functions.
7880 (ppc_sysv_abi_broken_use_struct_convention)
7881 (ppc_sysv_abi_use_struct_convention)
7882 (ppc_sysv_abi_push_arguments): Move to...
7883 * ppc-sysv-tdep.c: ...here.
7884 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
7885 * rs6000-tdep.c (process_note_abi_tag_sections)
7886 (get_elfosabi): Remove.
7887 (rs6000_gdbarch_init): Use generic OS ABI framework.
7888 (rs6000_dump_tdep): New function.
7889 (_initialize_rs6000_tdep): Use gdbarch_register.
7890 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
7891 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
7892 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
7893 of ppc-linux-tdep.o.
7894 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
7895 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
7896 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
7897 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
7898 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
7899 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
7903 * macroscope.c (default_macro_scope): Put `void' in empty argument
7908 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
7909 * arch-utils.c: Include "sim-regno.h".
7910 * gdbarch.sh: Don't include "sim-regno.h".
7911 * gdbarch.h, gdbarch.c: Regenerate.
7912 * sim-regno.h (legacy_register_sim_regno): Move declaration from
7914 * arch-utils.h (legacy_register_sim_regno): To here.
7915 * remote-sim.c (legacy_register_sim_regno): Move function from
7917 * arch-utils.c (legacy_register_sim_regno): To here.
7921 * sim-regno.h: New file.
7922 * Makefile.in (sim_regno_h): Define.
7923 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
7924 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
7925 (legacy_register_sim_regno): New function.
7926 (one2one_register_sim_regno): New function.
7927 (gdbsim_fetch_register): Rewrite.
7928 (gdbsim_store_register): Only store a register when
7929 REGISTER_SIM_REGNO is valid.
7930 * d10v-tdep.c: Include "sim-regno.h".
7931 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
7932 (d10v_ts3_register_sim_regno): Ditto.
7933 * gdbarch.sh: Include "sim-regno.h".
7934 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
7935 * gdbarch.h, gdbarch.c: Regenerate.
7936 * arch-utils.h (default_register_sim_regno): Delete declaration.
7937 * arch-utils.c (default_register_sim_regno): Delete function.
7941 * ppcnbsd-nat.c: Rewrite.
7942 * ppcnbsd-tdep.c: New file.
7943 * ppcnbsd-tdep.h: New file.
7944 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
7945 solib.o, and solib-svr4.o.
7946 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
7947 nbsd-tdep.o, and corelow.o.
7951 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
7952 `tr' and `sed'. Mention that `broken' targets are not expected to
7957 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
7958 Let PC point right after the prologue before looking up symbols.
7962 * i386-tdep.c (i386_register_virtual_type): Return
7963 builtin_type_vec128i for SSE registers.
7965 * gdbtypes.h (builtin_type_vec128i): Declare.
7967 * gdbtypes.c (build_builtin_type_vec128i): New function.
7968 (builtin_type_v2_double, builtin_type_v4_int64): New types.
7969 (builtin_type_vec128i): New type for SSE2 128-bit registers.
7970 (build_gdbtypes): Initialize new builtin vector types.
7971 (_initialize_gdbtypes): Register new vector types with gdbarch.
7975 * MAINTAINERS: ns32k is not longer an obsolete candidate,
7976 since it has been multi-arch'd.
7977 * NEWS: Note that ns32k-*-* is now partial multi-arch.
7978 Move Alpha and VAX multi-arch news entries to same section
7979 as other multi-arch news.
7983 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
7984 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
7985 static. Rename some register numbers to put them in ns32k-tdep
7987 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
7988 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
7990 (_initialize_ns32k_tdep): Use gdbarch_register.
7991 * ns32k-tdep.h: New file.
7992 * ns32knbsd-tdep.c: New file.
7993 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
7994 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
7995 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
7996 REGISTER_BYTES, REGISTER_BYTE): Remove.
7997 * config/ns32k/tm-ns32k.h: New file.
7998 * config/ns32k/tm-umax.h: Remove.
8002 * ns32k-tdep.c (ns32k_saved_pc_after_call,
8003 ns32k_store_struct_return, ns32k_extract_return_value,
8004 ns32k_store_return_value, ns32k_extract_struct_value_address): New
8006 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
8007 ns32k_saved_pc_after_call.
8008 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
8009 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
8010 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
8011 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
8012 ns32k_extract_struct_value_address.
8016 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
8017 ns32k_fix_call_dummy): New.
8018 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
8019 ns32k_call_dummy_words.
8020 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
8021 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
8022 CALL_DUMMY_NARGS): Remove.
8023 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
8027 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
8028 ns32k_frame_saved_pc, ns32k_frame_args_address,
8029 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
8030 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
8031 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
8032 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
8033 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
8034 (BREAKPOINT): Remove..
8035 (FRAME_CHAIN): Define as ns32k_frame_chain.
8036 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
8037 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
8038 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
8039 (FRAME_FIND_SAVED_REGS): Remove.
8040 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
8041 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
8042 (POP_FRAME): Define as ns32k_pop_frame.
8046 * ns32k-tdep.c (ns32k_register_byte_32082,
8047 ns32k_register_byte_32382, ns32k_register_raw_size,
8048 ns32k_register_virtual_size, ns32k_register_virtual_type): New
8050 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
8051 ns32k_register_byte_32382.
8052 * config/ns32k/tm-umax.h: Update copyright years.
8053 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
8054 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
8055 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
8056 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
8057 (ns32k_get_enter_addr): Fix prototype.
8061 * ns32k-tdep.c: Update copyright years.
8062 (ns32k_register_name_32082): New function.
8063 (ns32k_register_name_32382): Ditto.
8064 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
8065 (REGISTER_NAME): Define as ns32k_register_name_32382.
8066 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
8067 (REGISTER_NAME): Define as ns32k_register_name_32082.
8071 * dwarf2read.c (free_line_header): Use xfree, not free.
8075 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
8076 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
8080 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
8084 From Ross Alexander at NEC Europe:
8085 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
8089 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
8090 for input, rather than parse_and_eval_address.
8094 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
8095 * Makefile.in (sim_d10v_h): Update definition.
8099 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
8100 change `2002-05-22 Michael Snyder' below.
8101 (d10v_push_arguments): Ditto.
8102 (d10v_extract_return_value): Ditto.
8106 * macrotab.c (check_for_redefinition): Don't complain if the new
8107 definition is the same as the previous one. Take more arguments
8108 to allow the comparison.
8109 (macro_define_object, macro_define_function): Pass more arguments
8110 to check_for_redefinition.
8114 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
8115 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
8116 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
8117 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
8118 Don't bail if return_pc is PC_IN_CALL_DUMMY.
8119 Add a temp variable to save a call (and a memory read).
8120 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
8121 if possible (so that PC_IN_CALL_DUMMY will work).
8125 * MAINTAINERS: Remove status `OBSOLETE' from v850.
8129 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
8131 (dwarf2_build_frame_info): Corrected handling of eh_frame.
8132 (dwarf2_build_frame_info): Add offset to fde->initial_location
8133 so that frames of shared libraries are mapped correctly.
8134 (execute_stack_op): Change type of 'result' from ULONGEST to
8139 * config/alpha/tm-nbsd.h: Include solib.h.
8143 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
8144 assumptions about the host's byte order.
8148 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
8150 * alphanbsd-tdep.c: Include solib-svr4.h.
8151 * shnbsd-tdep.c: Ditto.
8155 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
8156 nbsd-tdep.h to dependency list.
8157 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
8158 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
8159 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
8160 nbsdaout.mh and nbsdelf.mh consistently.
8161 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
8162 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
8163 nbsdaout.mt and nbsdelf.mh consistently.
8164 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
8165 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
8166 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
8167 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
8168 a.out shared library stuff from here...
8169 * config/nm-nbsdaout.h: ...to here.
8170 * config/tm-nbsd.h: Remove.
8171 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
8172 * config/arm/nbsd.mh: Remove.
8173 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
8175 * config/arm/nbsdaout.mh: New file.
8176 * config/arm/nbsdelf.mh: New file.
8177 * config/arm/nm-nbsdaout.h: New file.
8178 * config/i386/nbsd.mh: Remove.
8179 * config/i386/nbsd.mt: Remove.
8180 * config/i386/nbsdaout.mh: New file.
8181 * config/i386/nbsdaout.mt: New file.
8182 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
8183 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
8184 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
8185 i386_register_u_addr): Remove.
8186 * config/i386/nm-nbsdaout.h: New file.
8187 * config/i386/nm-nbsdelf.h: Remove.
8188 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
8189 (USE_STRUCT_CONVENTION): Remove.
8190 * config/i386/tm-nbsdaout.h: New file.
8191 * config/i386/tm-nbsdelf.h: Remove.
8192 * config/m68k/nbsd.mh: Remove.
8193 * config/m68k/nbsd.mt: Remove.
8194 * config/m68k/nbsdaout.mh: New file.
8195 * config/m68k/nbsdaout.mt: New file.
8196 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
8197 * config/m68k/nm-nbsdaout.h: New file.
8198 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
8199 (IN_SOLIB_CALL_TRAMPOLINE): Define.
8200 * config/ns32k/nbsd.mh: Remove.
8201 * config/ns32k/nbsd.mt: Remove.
8202 * config/ns32k/nbsdaout.mh: New file.
8203 * config/ns32k/nbsdaout.mt: New file.
8204 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
8205 * config/ns32k/nm-nbsdaout.h: New file.
8206 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
8207 (IN_SOLIB_CALL_TRAMPOLINE): Define.
8208 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
8209 (SVR4_SHARED_LIBS): Remove.
8210 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
8211 * config/sparc/nbsd.mh: Remove.
8212 * config/sparc/nbsd.mt: Remove.
8213 * config/sparc/nbsdaout.mh: New file.
8214 * config/sparc/nbsdaout.mt: New file.
8215 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
8216 * config/sparc/nbsdelf.mt: New file.
8217 * config/sparc/nm-nbsdaout.h: New file.
8218 * config/sparc/nm-nbsdelf.h: Remove.
8219 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
8220 * config/sparc/tm-nbsdaout.h: New file.
8224 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
8226 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
8230 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
8232 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
8236 * NEWS: Note new MIPS NetBSD native configuration.
8237 * configure.host (mips*-*-netbsd*): New host.
8238 * configure.tgt (mips*-*-netbsd*): New target.
8239 * mipsnbsd-nat.c: New file.
8240 * mipsnbsd-tdep.c: New file.
8241 * mipsnbsd-tdep.h: New file.
8242 * config/mips/nbsd.mh: New file.
8243 * config/mips/nbsd.mt: New file.
8244 * config/mips/nm-nbsd.h: New file.
8245 * config/mips/tm-nbsd.h: New file.
8249 * Makefile.in (SFILES): Add osabi.c.
8250 (COMMON_OBS): Add osabi.o.
8251 (osabi.o): New dependency list.
8252 * osabi.c: New file.
8253 * osabi.h: New file.
8254 * doc/gdbint.texinfo: Document new generic OS ABI framework.
8256 * Makefile.in (alpha_tdep_h): Define and use instead of
8258 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
8259 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
8261 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
8262 * alpha-tdep.h: Include osabi.h.
8263 (alpha_abi): Remove.
8264 (gdbarch_tdep): Use generic OS ABI framework.
8265 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
8266 gdbarch_register_osabi.
8267 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
8268 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
8269 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
8271 * Makefile.in (sh_tdep_h): Add osabi.h.
8272 * sh-tdep.h (sh_osabi): Remove.
8273 (gdbarch_tdep): Use generic OS ABI framework.
8274 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
8275 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
8276 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
8277 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
8279 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
8280 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
8281 gdbarch_register_osabi.
8282 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
8283 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
8284 (get_elfosabi): Rename to...
8285 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
8286 ABI framework support routines.
8287 (arm_gdbarch_init): Use generic OS ABI framework.
8288 (arm_dump_tdep): Likewise.
8289 (_initialize_arm_tdep): Likewise.
8290 * arm-tdep.h: Include osabi.h.
8292 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
8294 (arm_gdbarch_register_os_abi): Remove prototype.
8295 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
8296 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
8298 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
8299 * mips-tdep.c: Include osabi.h.
8300 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
8305 * h8300-tdep.c: Fix formatting.
8309 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
8310 printing vector registers.
8314 From Fernando Nasser:
8315 * remote.c (remote_async_open_1): Re-throw the exception when the
8317 (remote_cisco_open): Ditto.
8318 (remote_open_1): Ditto.
8322 * remote.c (remote_start_remote_dummy): Add uiout parameter.
8323 (remote_start_remote): Add uiout parameter. Pass through to
8324 remote_start_remote_dummy.
8325 (remote_open_1): Use catch_exception instead of catch_errors.
8326 (remote_async_open_1): Ditto.
8327 (remote_cisco_open): Ditto.
8331 * remote.c (remote_start_remote): Replace PTR with void pointer.
8332 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
8337 * gdb_indent.sh: Allow the script to be run in the sim directory.
8341 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
8342 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
8344 * corelow.c (core_open): Only call set_gdbarch_from_file if
8349 * h8300-tdep.c: Add support of EXR register
8350 * config/h8300/tm-h8300.h: Ditto.
8354 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
8358 * h8300-tdep.c: Change literal regnums to REGNO.
8362 * NEWS: Note addition of macro support.
8364 Expand preprocessor macros in C expressions.
8365 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
8366 (scan_macro_expansion, scanning_macro_expansion,
8367 finished_macro_expansion): New function declarations.
8368 (expression_macro_lookup_func, expression_macro_lookup_baton): New
8369 variable declarations.
8370 * parser-defs.h (expression_context_pc): New declaration.
8371 * parse.c (expression_context_pc): New variable.
8372 (parse_exp_1): Set expression_context_pc, as well as
8373 expression_context_block.
8374 * c-exp.y (yylex): If we're not already reading the result of a
8375 macro expansion, try to macro-expand the next token. When we're
8376 done scanning a macro expansion, switch back to the mainline text.
8377 Commas and `if's in a macro's expansion don't terminate the input.
8378 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
8379 (macro_original_text, macro_expanded_text,
8380 expression_macro_lookup_func, expression_macro_lookup_baton): New
8382 (scan_macro_expansion, scanning_macro_expansion,
8383 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
8384 c_preprocess_and_parse): New functions.
8385 (c_language_defn, cplus_language_defn, asm_language_defn): Call
8386 c_preprocess_and_parse, instead of c_parse.
8387 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
8388 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
8392 * sh-tdep.c (gdb_print_insn_sh64): Delete.
8393 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
8394 (sh_gdbarch_init): Always use gdb_print_insn_sh.
8398 * NEWS: Add section for multi-arched targets. Add v850 to that section.
8402 * Makefile.in (sh_tdep_h): Define and use.
8403 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
8404 register enum): Move to...
8405 * * sh-tdep.h: ...here.
8406 * sh-tdep.c: Include sh-tdep.h.
8407 * sh3-rom.c: Likewise.
8408 * shnbsd-tdep.c: Likewise.
8412 * arm-tdep.c: Spelling fix in comment.
8416 Add commands for manually expanding macros and showing their
8418 * macrocmd.c, macroscope.c, macroscope.h: New files.
8419 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
8420 (macroscope_h): New variable.
8421 (HFILES_NO_SRCDIR): Add macroscope.h.
8422 (COMMON_OBS): Add macrocmd.o, macroscope.o.
8423 (macroscope.o, macrocmd.o): New rules.
8425 Teach the Dwarf 2 reader to read macro information.
8426 * dwarf2read.c: #include "macrotab.h".
8427 (dwarf_macinfo_buffer): New variable.
8428 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
8430 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
8431 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
8432 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
8433 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
8434 dwarf2_macro_spaces_in_definition): New complaints.
8435 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
8436 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
8437 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
8438 the partial symbol table.
8439 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
8440 from what's recorded in the partial symbol table.
8441 (read_file_scope): If the compilation unit has a
8442 `DW_AT_macro_info' attribute, read its macro information.
8443 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
8448 * ser-tcp.c: Don't include <netinet/udp.h>.
8452 * MAINTAINERS: Update my email address.
8456 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
8457 include file of the same name.
8461 * configure.tgt: Mark v850 as multi-arched.
8462 * config/v850/tm-v850.h: Remove file.
8463 * config/v850/v850.mt: Eliminate TM_FILE.
8467 * v850-tdep.c: Full multi-arch.
8468 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
8469 Define GDB_MULTI_ARCH to 2.
8473 * p-exp.y (current_type): New static variable.
8474 Carries the type of the expression at the position that is parsed.
8475 (push_current_type, pop_current_type): Two new functions. Used
8476 to store/restore current_type in expression on specific tokens.
8477 (search_field): New static variable. Set to one after parsing a point
8478 as at that point only a FIELDNAME token should be searched.
8479 (FIELDNAME): New token. After a point only a token belonging to
8480 current_type type definition is allowed.
8481 (all over token rules): reset and change current_type according
8483 (exp '[' rule): insert implicit array index field if
8484 exp is a pascal string type.
8488 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
8489 frame info. Use frame_info's saved_regs instead of matching member
8490 in extra_frame_info throughout.
8491 (v850_frame_init_saved_regs): New function.
8492 (v850_init_extra_frame_info): Move most functionality into
8493 v850_frame_init_saved_regs().
8494 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
8495 (v850_frame_find_saved_regs): Remove declaration.
8496 (FRAME_FIND_SAVED_REGS): Remove definition.
8497 (v850_frame_init_saved_regs): Add declaration.
8498 (FRAME_INIT_SAVED_REGS): Add definition.
8502 * v850-tdep.c: Begin multi-arch'ing v850.
8503 (v850_target_architecture_hook): Remove function.
8504 (v850_gdbarch_init): New function. Add code previously in
8505 v850_target_architecture_hook().
8506 (_initialize_v850_tdep): Don't set target_architecture_hook.
8507 Call register_gdbarch_init() instead.
8511 * gdbtypes.h (struct cplus_struct_type): Remove args field.
8512 * hpread.c (hpread_read_struct_type): Remove assignments to args.
8513 (fixup_class_method_type): Likewise.
8517 Add macro structures to GDB's symbol tables. Nobody puts anything
8519 * symtab.h (struct symtab): New member: `macro_table'.
8520 * buildsym.h (pending_macros): New global variable.
8521 * buildsym.c: #include "macrotab.h".
8522 (buildsym_init): Initialize `pending_macros'.
8523 (end_symtab): If we found macro information while reading a CU's
8524 debugging info, do build a symtab structure for it. Make the
8525 symtab point to the macro information, and clear the
8526 `pending_macros' pointer which held it while we were reading the
8528 (really_free_pendings): Free any pending macro table.
8529 * objfiles.h (struct objfile): New member: `macro_cache'.
8530 * objfiles.c (allocate_objfile): Set allocate and free functions
8531 for the macro cache's objstack.
8532 (free_objfile): Empty the macro cache's obstack.
8533 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
8534 set new allocate and free functions for it.
8535 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
8536 free functions for the macro cache's objstack. (Why is this
8537 function building its own objfile?)
8538 * symmisc.c (print_objfile_statistics): Print statistics on the
8540 * Makefile.in: Note that buildsym.o depends on macrotab.h.
8544 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
8545 (REGISTER_U_ADDR): Delete definition.
8546 (arm_register_u_addr): Delete declaration.
8550 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
8551 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
8555 * regcache.c (register_valid): Revise comments refering to "Not
8556 available" and "unavailable".
8557 * frame.c (frame_register_read): Ditto.
8558 * findvar.c (value_of_register): Ditto.
8562 * Makefile.in (remote_sim_h): Replace remote-sim_h.
8563 (remote-sim.o): Update dependencies.
8564 (d10v-tdep.o): Specify dependencies.
8565 (sim_d10v_h): Define.
8569 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
8570 * macrotab.c (macro_lookup_inclusion, find_definition,
8571 new_macro_table): Same.
8573 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
8574 not `! strcmp ()'. This is a dubious improvement.
8575 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
8577 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
8578 although it's not necessary, to avoid a warning.
8582 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
8583 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
8584 TYPE_INSTANCE_FLAGS.
8585 (struct main_type): New.
8586 (struct type): Move most members to struct main_type. Change
8587 cv_type and as_type to new type_chain member. Add instance_flags.
8588 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
8589 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
8590 (finish_cv_type): Remove prototype.
8591 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
8593 (alloc_type_instance): New function.
8594 (smash_type): New function.
8595 (make_pointer_type, make_reference_type, make_function_type)
8596 (smash_to_member_type, smash_to_method_type): Call smash_type.
8597 (make_qualified_type): New function.
8598 (make_type_with_address_space): Call make_qualified_type.
8599 (make_cv_type): Likewise.
8600 (finish_cv_type): Remove unnecessary function.
8601 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
8602 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
8603 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
8604 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
8605 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
8606 * hpread.c (hpread_read_struct_type): Likewise.
8607 * stabsread.c (read_struct_type): Likewise.
8611 * configure.tgt: Add a catch all sh* target, for cases like
8612 sh[2,3,4]-elf and sh-hms.
8616 * event-loop.c (create_file_handler): Don't do anything but
8617 update data when we are given a fd which we are already
8622 * dwarf2cfi.c (context_cpy): Copy registers correctly.
8623 (update_context): Use __func__ in warnings.
8627 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
8628 and tcp_close to net_open and net_close.
8629 (net_open): Accept "udp:" and "tcp:" specifications. Connect
8630 using UDP if requested. Don't try to disable Nagle on UDP
8632 * remote.c (remote_serial_open): New function. Warn about UDP.
8633 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
8637 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
8641 * configure.tgt: Remove sh-hms target.
8642 * MAINTAINERS: Don't list sh-hms as a separate target.
8646 Add first preprocessor macro-expansion files.
8647 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
8648 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
8649 (splay_tree_h, macroexp_h, macrotab_h): New variable.
8650 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
8651 (COMMON_OBS): Add macrotab.o, macroexp.o.
8652 (macroexp.o, macrotab.o): New rules.
8656 * config/m88k/tm-m88k.h: Update copyright.
8657 (m88k_target_write_pc): Declare
8658 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
8659 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
8660 (SHIFT_INST_REGS): Update definition.
8661 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
8662 using old definition of TARGET_WRITE_PC.
8663 * regcache.c (generic_target_write_pc): Delete code handling
8665 * gdbarch.sh (NNPC_REGNUM): Delete.
8666 * gdbarch.h, gdbarch.c: Regenerate.
8670 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
8675 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
8676 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
8677 (gen_address_of, gen_struct_ref, gen_repeat): Use type
8679 * c-typeprint.c (cp_type_print_method_args): Likewise.
8680 (c_type_print_args): Likewise.
8681 * d10v-tdep.c (d10v_push_arguments): Likewise.
8682 (d10v_extract_return_value): Likewise.
8683 * expprint.c (print_subexp): Likewise.
8684 * gdbtypes.c (lookup_primitive_typename): Likewise.
8685 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
8686 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
8687 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
8688 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
8689 (TYPE_VECTOR): Likewise.
8690 * hpread.c (hpread_read_struct_type)
8691 (fix_static_member_physnames, fixup_class_method_type)
8692 (hpread_type_lookup): Likewise.
8693 * mdebugread.c (parse_symbol, parse_type): Likewise.
8694 * p-lang.c (is_pascal_string_type): Likewise.
8695 * valops.c (hand_function_call): Likewise.
8696 * x86-64-tdep.c (classify_argument): Likewise.
8698 * hpread.c (hpread_read_function_type)
8699 (hpread_read_doc_function_type): Call replace_type.
8700 * dstread.c (create_new_type): Delete.
8701 (decode_dst_structure, process_dst_function): Call alloc_type.
8702 Use type access macros.
8706 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
8707 the're not supported by the current architecture.
8708 (i387_fill_fxsave): Likewise.
8712 * symfile.c (default_symfile_offsets): Arrange for uninitialized
8713 sect_index_xxx members to index the first slot in section_offsets
8714 if all of the section_offsets are zero.
8718 * configure.tgt (sparc-*openbsd): Remove entry accidentially
8719 checked in with last change.
8723 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
8724 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
8729 * Makefile.in: Update dependencies.
8733 * language.c (local_hex_string_custom): Simplify. Do not depend
8734 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
8736 * memattr.c (mem_info_command): Replace calls to
8737 longest_local_hex_string and longest_local_hex_string_custom.
8738 * buildsym.c (make_blockvector): Ditto.
8739 * solib.c (info_sharedlibrary_command): Ditto.
8740 * tracepoint.c (tracepoints_info): Ditto.
8741 * symtab.c (print_msymbol_info): Ditto.
8743 * language.c (local_hex_string): Delete.
8744 (local_hex_string_custom): Delete.
8745 (longest_local_hex_string): Rename to local_hex_string.
8746 (longest_local_hex_string_custom): Rename to
8747 local_hex_string_custom.
8748 * language.h (local_hex_string): Change parameter type to LONGEST.
8749 (local_hex_string_custom): Ditto.
8750 (longest_local_hex_string): Delete declaration.
8751 (longest_local_hex_string_custom): Ditto.
8753 * solib.c: Update copyright.
8754 * memattr.c: Update copyright.
8758 * arch-utils.h (legacy_register_to_value): Declare.
8759 (legacy_value_to_register): Declare.
8760 (legacy_convert_register_p): Declare.
8761 * arch-utils.c (legacy_register_to_value): New function.
8762 (legacy_value_to_register): New function.
8763 (legacy_convert_register_p): New function.
8765 * gdbarch.sh (REGISTER_TO_VALUE): Define.
8766 (VALUE_TO_REGISTER): Define.
8767 (CONVERT_REGISTER_P): Define.
8768 * gdbarch.h, gdbarch.c: Regenerate.
8770 * valops.c (value_assign): Use CONVERT_REGISTER_P and
8772 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
8778 * Makefile.in: Update dependencies for valops.c.
8779 * valops.c: Include "gdb_assert.h".
8780 (typecmp): Skip THIS parameter to methods.
8781 (find_method_list): Remove static_memfuncp argument,
8782 update callers. Check for stub methods.
8783 (find_value_oload_method_list): Don't set *static_memfuncp.
8784 (find_overload_match): Don't check for stub methods. Assert
8785 that methods are not stubbed. Handle static methods.
8786 (value_find_oload_method_list): Remove static_memfuncp argument.
8787 * gdbtypes.c (check_stub_method): Do not add THIS pointer
8788 to the argument list for static stub methods.
8789 * value.h (value_find_oload_method_list): Update prototype.
8793 * arch-utils.h (generic_register_size): Declare.
8794 (generic_register_raw_size, generic_register_virtual_size): Delete
8796 * arch-utils.c (generic_register_raw_size): Delete.
8797 (generic_register_size): New function.
8798 (generic_register_virtual_size): Delete.
8800 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
8801 default generic_register_size.
8802 * gdbarch.h, gdbarch.c: Re-generate.
8804 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
8805 register_virtual_size.
8806 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
8807 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8811 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
8812 * gdbarch.h, gdbarch.c: Regenerate.
8813 * gnu-v3-abi.c: Update copyright.
8814 (vtable_address_point_offset): Update.
8815 (gnuv3_rtti_type): Update.
8816 (gnuv3_baseclass_offset): Update.
8817 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
8818 (init_fetch_link_map_offsets): Update.
8819 * remote.c (get_remote_state): Update.
8823 * TODO: Remove value_headof/value_from_vtable_info comment.
8824 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
8825 * values.c (value_headof, value_from_vtable_info): Delete.
8826 * value.h (value_from_vtable_info): Delete prototype.
8830 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
8831 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
8833 (gdb_assert_h): Define.
8834 (gdb_wait_h): Define.
8835 (gdb_regex_h): Define.
8840 * linespec.c (find_methods): Handle GCC 3.x template constructors.
8844 * nbsd-tdep.c: Fix comment.
8848 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
8849 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
8850 (nbsd-tdep.o): New dependency list.
8851 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
8853 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
8854 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
8855 * nbsd-tdep.c: New file.
8856 * nbsd-tdep.h: New file.
8857 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
8859 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
8860 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
8861 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
8862 * config/sh/nbsd.mt (TDEPFILES): Ditto.
8866 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
8867 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
8868 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
8869 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
8870 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
8871 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
8875 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
8876 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
8877 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
8878 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
8879 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
8880 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
8881 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
8885 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
8886 fetch_elfcore_registers to...
8887 * i386nbsd-tdep.c: ...here.
8888 (i386nbsd_use_struct_convention): Rename to...
8889 (i386nbsd_aout_use_struct_convention): ...this.
8890 (i386nbsd_supply_reg): New function.
8891 (i386nbsd_fill_reg): New function.
8892 (fetch_core_registers): Use i386nbsd_supply_reg.
8893 (fetch_elfcore_registers): Likewise.
8894 (_initialize_i386nbsd_tdep): New function.
8895 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
8896 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
8897 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
8898 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
8899 (i386nbsd_aout_use_struct_convention): ...this.
8903 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
8904 (store_inferior_registers): Use shnbsd_fill_reg.
8905 * shnbsd-tdep.c (sh_nbsd_supply_registers,
8906 sh_nbsd_supply_register): Collapse into...
8907 (shnbsd_supply_reg): ...this.
8908 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
8909 (shnbsd_fill_reg): ...this.
8910 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
8911 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
8912 (fetch_core_registers): Use shnbsd_supply_reg.
8913 (fetch_elfcore_registers): Use shnbsd_supply_reg.
8914 (sh_nbsd_core_fns): Rename to...
8915 (shnbsd_core_fns): ...this.
8916 (sh_nbsd_elfcore_fns): Rename to...
8917 (shnbsd_elfcore_fns): ...this.
8918 (sh_nbsd_init_abi): Rename to...
8919 (shnbsd_init_abi): ...this.
8920 (_initialize_sh_nbsd_tdep): Rename to...
8921 (_initialize_shnbsd_tdep): ...this.
8922 * shnbsd-tdep.h (sh_nbsd_supply_registers,
8923 sh_nbsd_supply_register, sh_nbsd_fill_registers,
8924 sh_nbsd_fill_register): Remove prototypes.
8925 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
8929 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
8930 (i387-nat.o): Delete dependency list.
8931 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
8932 (x86-64-linux-nat.o): Likewise.
8933 * i387-nat.c: Delete file, moving contents to...
8934 * i387-tdep.c: ...here.
8935 * i387-nat.h: Rename...
8936 * i387-tdep.h: ...to this.
8937 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
8938 * i386-linux-nat.c: Likewise.
8939 * i386bsd-nat.c: Likewise.
8940 * i386gnu-nat.c: Likewise.
8941 * i386nbsd-nat.c: Likewise.
8942 * i386v4-nat.c: Likewise.
8943 * x86-64-linux-nat.c: Likewise.
8944 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
8945 * config/i386/go32.mh (NATDEPFILES): Likewise.
8946 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
8947 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
8948 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
8949 * config/i386/linux.mh (NATDEPFILES): Likewise.
8950 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
8951 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
8952 * config/i386/obsd.mh (NATDEPFILES): Likewise.
8953 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
8957 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
8958 (alphanbsd-nat.o): Remove dependency list.
8959 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
8960 * alphanbsd-nat.c: Delete. Contents moved to...
8961 * alphanbsd-tdep.c: ...here.
8962 (_initialize_alphanbsd_tdep): Register core functions.
8963 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
8967 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
8968 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
8969 (alphanbsd-nat.o): Likewise.
8970 (alphabsd-tdep.o): New dependency list.
8971 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
8972 (fill_gregset): Use alphabsd_fill_reg.
8973 (supply_fpregset): Use alphabsd_supply_fpreg.
8974 (fill_fpregset): Use alphabsd_fill_fpreg.
8975 (fetch_inferior_registers): Use struct reg and struct fpreg
8976 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
8977 and alphabsd_supply_fpreg.
8978 (store_inferior_registers): Use struct reg and struct fpreg
8979 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
8980 and alphabsd_fill_fpreg.
8981 * alphabsd-tdep.c: New file.
8982 * alphabsd-tdep.h: New file.
8983 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
8984 (fetch_elfcore_registers): Use alphabsd_supply_reg and
8985 alphabsd_supply_fpreg.
8986 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
8987 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
8991 * mips-tdep.c (mips_double_register_type): Fix thinko.
8992 (mips_single_register_type): Ditto.
8993 * MAINTAINERS: Add self.
8997 * i387-nat.c (i387_supply_register, i387_fill_fsave,
8998 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
8999 right thing on architectures with different endianness and/or
9005 * configure.in: Change sed expression which comments out
9006 NATDEPFILES to also comment out continuation lines.
9007 * configure: Regenerate.
9011 * sh-tdep.c: Clean up code erroneously reintroduced by previous
9016 * sh-tdep.c: Include correct file.
9020 New support for sh64-elf (sh5) target.
9022 * configure.tgt: For sh64-elf target, default to sh-elf.
9024 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
9025 (struct gdbarch_tdep): Add new fields for new registers and ABI
9028 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
9029 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
9030 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
9031 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
9032 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
9033 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
9034 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
9035 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
9036 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
9037 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
9038 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
9039 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
9040 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
9041 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
9042 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
9043 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
9044 sh64_get_gdb_regnum, sh64_media_reg_base_num,
9045 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
9046 sign_extend, sh64_nofp_frame_init_saved_regs,
9047 sh64_init_extra_frame_info, sh64_get_saved_register,
9048 sh64_extract_struct_value_address, sh64_pop_frame,
9049 sh64_push_arguments, sh64_extract_return_value,
9050 sh64_store_return_value, sh64_show_media_regs,
9051 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
9052 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
9053 sh_sh64_register_virtual_type,
9054 sh_sh64_register_convert_to_virtual,
9055 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
9056 sh64_register_read, sh64_pseudo_register_write,
9057 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
9058 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
9059 sh64_do_pseudo_register, sh_compact_do_registers_info,
9060 sh64_do_registers_info, sh_gdbarch_init): New functions.
9064 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
9068 * linespec.c (decode_line_1): Check for a double quote after
9069 a filename correctly.
9073 Properly track the size of the current objfile's .debug_line section.
9074 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
9075 (DWARF_LINE_SIZE): New macro.
9076 (dwarf2_build_psymtabs_hard): Record the line section's size in
9077 the partial symbol table.
9078 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
9083 * ia64-tdep.c: Handle breakpoints on L instruction type
9084 in MLX instruction bundle by moving the breakpoint to
9085 the third slot (X instruction type) as L holds only data.
9089 * dbxread.c (discarding_local_symbols_complaint): New complaint.
9090 (process_one_symbol): Complain about discarding local symbols
9091 due to a misplaced N_LBRAC entry.
9096 * linespec.c (find_toplevel_char): '<' and '>' also increase and
9097 decrease the depth we are at, in the case of templates.
9101 * mips-tdep.c (mips_float_register_type): New function.
9102 (mips_double_register_type): New function.
9103 (mips_print_register): Use them.
9104 (do_fp_register_row): Likewise.
9108 * signals/signals.c (signals): Remove conditional compilation around
9109 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
9110 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
9114 * remote-rdp.c (remote_rdp_can_run): Remove.
9118 * jv-valprint.c (java_val_print): Handle `char' as a special case
9123 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
9124 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
9125 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
9126 str r(0123),[sp,#nn].
9127 (arm_skip_prologue): Ditto. Also make disassembly
9128 order-independent by placing it in a loop.
9132 * stabsread.c (read_type): Add recognition for new attribute:
9133 "@V;" means that an array type is actually a vector.
9134 This is analogous to the vector flag that's been added to dwarf2.
9138 * i386-tdep.h (i386_abi): New enum.
9139 (struct gdbarch_tdep): Replace os_ident member with abi.
9140 (i386_gdbarch_register_os_abi): New prototype.
9141 * i386-tdep.c (i386_abi_names): New array.
9142 (process_note_abi_tag_sections): Removed.
9143 (process_note_sections): New function.
9144 (i386_elf_abi_from_note, i386_elf_abi): New functions.
9145 (struct i386_abi_handler): New struct.
9146 (i386_abi_handler_list): New variable.
9147 (i386_gdbarch_register_os_abi): New function.
9148 (i386_gdbarch_init): Adapt for the changes given above.
9152 * gregset.h: Say "GNU/Linux".
9156 * gdbtypes.c : Add new builtin type for 64 bit vectors.
9157 (build_gdbtypes): Build builtin_type_v2_float.
9158 (_initialize_gdbtypes): Register new builtin type.
9162 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
9163 (clear_gdbarch_swap): New function.
9164 (initialize_non_multiarch): Call.
9165 (gdbarch_update_p): Before calling init(), swap out and clear the
9166 existing architecture.
9167 * gdbarch.c: Regenerate.
9171 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
9176 * sh-nbsd-nat.c: Rename to...
9177 * shnbsd-nat.c: ...this.
9178 * sh-nbsd-tdep.c: Rename to...
9179 * shnbsd-tdep.c: ...this.
9180 * sh-nbsd-tdep.h: Rename to...
9181 * shnbsd-tdep.h: ...this.
9182 * config/sh/nbsd.mh: Use shnbsd-nat.o.
9183 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
9187 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
9188 concatenation for command help messages.
9192 * NEWS: Note new sh*-*-netbsdelf* configuration.
9193 * configure.host: Set gdb_host_cpu to sh for all sh*.
9194 (sh*-*-netbsdelf*): New host.
9195 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
9196 (sh*-*-netbsdelf*): New target.
9197 * sh-nbsd-nat.c: New file.
9198 * sh-nbsd-tdep.c: New file.
9199 * sh-nbsd-tdep.h: New file.
9200 * config/sh/nbsd.mh: New file.
9201 * config/sh/nbsd.mt: New file.
9202 * config/sh/nm-nbsd.h: New file.
9203 * config/sh/tm-nbsd.h: New file.
9207 * sh-tdep.c (sh_osabi_names): Declare.
9208 (process_note_abi_tag_sections): New function.
9209 (get_elfosabi): Ditto.
9210 (sh_gdbarch_register_os_abi): Ditto.
9211 (sh_dump_tdep): Ditto.
9212 _initialize_sh_tdep): Use gdbarch_register to register
9213 sh_gdbarch_init and sh_dump_tdep.
9214 * config/sh/tm-sh.h (sh_osabi): Declare.
9215 (gdbarch_tdep): Add sh_osabi and osabi_name members.
9219 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
9220 (thumb_scan_prologue): Ditto.
9221 (arm_find_callers_reg): Ditto.
9222 (arm_frame_chain): Ditto.
9223 (arm_init_extra_frame_info): Ditto.
9224 (arm_frame_saved_pc): Ditto.
9225 (arm_pop_frame): Ditto.
9226 (arm_push_return_address): New function.
9227 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
9228 call_dummy_location, call_dummy_breakpoint_offset_p,
9229 call_dummy_breakpoint_offset, call_dummy_p,
9230 call_dummy_stack_adjust_p, call_dummy_words,
9231 sizeof_call_dummy_words, call_dummy_start_offset,
9232 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
9233 call_dummy_address, push_return_address and push_dummy_frame for
9234 generic dummy frames.
9238 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
9239 size computation for alloca.
9240 (sh_fp_frame_init_saved_regs): Likewise.
9244 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
9245 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
9246 * arm-tdep.c (arm_store_return_value): Use them.
9247 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
9248 * remote-rdp.c (remote_rdp_fetch_register): Use
9249 ARM_MAX_REGISTER_RAW_SIZE.
9250 (remote_rdp_store_register): Likewise.
9254 * dwarf2cfi.c: Code cleanup, removed unused variables,
9255 added default labels to switch {} statements.
9256 * x86-64-tdep.c: Ditto.
9257 * x86-64-linux-nat.c: Ditto.
9261 * solib.h: Protect against multiple inclusion.
9265 Add first preprocessor macro-expansion files.
9266 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
9267 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
9268 (splay_tree_h, macroexp_h, macrotab_h): New variable.
9269 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
9270 (COMMON_OBS): Add macrotab.o, macroexp.o.
9271 (macroexp.o, macrotab.o): New rules.
9273 Separate the job of reading the line number info statement program
9274 header (...expialidocious) out into its own function.
9275 * dwarf2read.c (struct line_head, struct filenames, struct
9276 directories): Replace with...
9277 (struct line_header): New structure, containing the full
9278 contents of the statement program header, including the
9279 include directory and file name tables.
9280 (read_file_scope): If we have line number info, instead of just
9281 calling dwarf_decode_lines to do all the work, call
9282 dwarf_decode_line_header first to get a `struct line_header'
9283 containing the data in the statement program header, and then
9284 pass that to dwarf_decode_lines, which will pick up where that
9285 left off. Be sure to clean up the `struct line_header' object.
9286 (dwarf_decode_line_header, free_line_header, add_include_dir,
9287 add_file_name): New functions.
9288 (dwarf_decode_lines): Move all the code to read the statement
9289 program header into dwarf_decode_line_header. Take the line
9290 header it built as the first argument, instead of the offset to
9291 the compilation unit's line number info. Use the new `struct
9292 line_header' type instead of the old structures. No need to do
9293 cleanups here now, since we don't allocate anything.
9294 (dwarf2_statement_list_fits_in_line_number_section,
9295 dwarf2_line_header_too_long): New complaints.
9299 * gdbtypes.c (init_vector_type): New function.
9300 (build_builtin_type_vec128): Simplify the representation of SIMD
9302 (build_gdbtypes): Initialize new builtin vector types.
9303 (_initialize_gdbtypes): Register new vector types with gdbarch.
9304 (builtin_type_v4_float, builtin_type_v4_int32,
9305 builtin_type_v8_int16, builtin_type_v16_int8,
9306 builtin_type_v2_int32, builtin_type_v4_int16,
9307 builtin_type_v8_int8): New (renamed) SIMD types.
9311 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
9312 (i387_fill_fxsave): Likewise.
9316 * alpha-tdep.c (alpha_extract_return_value): Don't use
9317 non-constant array size in prototype.
9321 From Brian Taylor <briant at model dot com>:
9322 * ui-out.c (ui_out_field_core_addr): Use the function
9323 longest_local_hex_string_custom'to format addresses > 32 bits
9326 * ui-out.c (ui_out_field_core_addr): Update comment.
9330 * stack.c (select_and_print_frame): Make static. Delete the
9332 (func_command): Update call.
9333 (select_frame_command): Delete code computing the frame level.
9334 * frame.h (select_and_print_frame): Delete declaration.
9338 * sparc-tdep.c (sparc_get_saved_register): Comment why
9339 get_prev_frame call is safe.
9343 * frame.h (select_frame): Delete level parameter.
9344 * stack.c (select_frame): Update. Use frame_relative_level to
9345 obtain the frame's level.
9346 (select_and_print_frame): Update call.
9347 (select_frame_command): Ditto.
9348 (up_silently_base): Ditto.
9349 (down_silently_base): Ditto.
9350 * ocd.c (ocd_start_remote): Ditto.
9351 * remote-rdp.c (remote_rdp_open): Ditto.
9352 * remote-mips.c (mips_initialize): Ditto.
9353 (common_open): Ditto.
9354 * remote-e7000.c (e7000_start_remote): Ditto.
9355 * m3-nat.c (select_thread): Ditto.
9356 * hppa-tdep.c (child_get_current_exception_event): Ditto.
9357 (child_get_current_exception_event): Ditto.
9358 * varobj.c (varobj_create): Ditto.
9359 (varobj_update): Ditto.
9360 (c_value_of_root): Ditto.
9361 * tracepoint.c (finish_tfind_command): Ditto.
9362 * corelow.c (core_open): Ditto.
9363 * arch-utils.c (generic_prepare_to_proceed): Ditto.
9364 * thread.c (info_threads_command): Ditto.
9365 (switch_to_thread): Ditto.
9366 * infrun.c (normal_stop): Ditto.
9367 (restore_selected_frame): Ditto.
9368 (restore_inferior_status): Ditto.
9369 * breakpoint.c (insert_breakpoints): Ditto.
9370 (watchpoint_check): Ditto.
9371 (bpstat_stop_status): Ditto.
9372 (do_enable_breakpoint): Ditto.
9373 * blockframe.c (flush_cached_frames): Ditto.
9374 (reinit_frame_cache): Ditto.
9378 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
9383 * gdbtypes.c (replace_type): Doc fix.
9387 * valprint.c (strcat_longest): Delete commented out function.
9392 * MAINTAINERS: Mark a29k as deleted.
9393 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
9394 Move new configurations to the top.
9395 * configure.tgt: Remove a29k.
9396 * config/a29k/tm-vx29k.h: Delete.
9397 * config/a29k/vx29k.mt: Delete.
9398 * config/a29k/tm-a29k.h: Delete.
9399 * config/a29k/a29k-udi.mt: Delete.
9400 * config/a29k/a29k.mt: Delete.
9401 * a29k-tdep.c: Delete.
9402 * remote-udi.c: Delete.
9403 * remote-mm.c: Delete.
9404 * remote-eb.c: Delete.
9405 * remote-adapt.c: Delete.
9406 * Makefile.in: Remove obsolete code.
9407 * config/s390/s390x.mt: Ditto.
9408 * config/s390/s390.mt: Ditto.
9409 * config/sparc/sparclynx.mh: Ditto.
9410 * config/sparc/linux.mh: Ditto.
9411 * config/pa/hppaosf.mh: Ditto.
9412 * config/pa/hppabsd.mh: Ditto.
9413 * config/ns32k/nbsd.mt: Ditto.
9414 * config/mips/vr5000.mt: Ditto.
9415 * config/m68k/sun3os4.mh: Ditto.
9416 * config/m68k/nbsd.mt: Ditto.
9417 * config/m68k/m68klynx.mh: Ditto.
9418 * config/m32r/m32r.mt: Ditto.
9419 * config/i386/x86-64linux.mt: Ditto.
9420 * config/i386/nbsdelf.mt: Ditto.
9421 * config/i386/nbsd.mt: Ditto.
9422 * config/i386/i386lynx.mh: Ditto.
9426 * target.c (debug_print_register): New function. Handle oversize
9428 (debug_to_fetch_registers): Call.
9429 (debug_to_store_registers): Call.
9433 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
9434 (read_type): Doc fix.
9435 * gdbtypes.c (replace_type): Doc fix.
9437 * stabsread.c (multiply_defined_struct): New complaint.
9438 (read_struct_type): If the type we were passed isn't empty, or
9439 incomplete, don't read the new struct type into it; complain,
9440 and return the original type unchanged. Take a new `type_code'
9441 argument, which is the type code for the new type.
9442 (read_type): Rather than storing the type's type code here, pass
9443 it as an argument to read_struct_type, and let that take care of
9444 storing it. That way, we don't overwrite the original type code,
9445 so read_struct_type can use it to decide whether we're overwriting
9446 something we shouldn't.
9447 (complain_about_struct_wipeout): New function.
9451 * gdbarch.sh: Assert that gdbarch is non-NULL.
9452 * gdbarch.c: Regenerate.
9456 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
9461 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
9462 (x86_64_dwarf2gdb_regno_map_length),
9463 (x86_64_dwarf2_reg_to_regnum): Added.
9464 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
9465 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
9466 (_initialize_x86_64_tdep): Synced with the change above.
9467 (x86_64_skip_prologue): Reformulated message.
9471 * f-exp.y: Also use new prev_lexptr variable
9472 to improve error reporting. Based on Michael Snyder
9473 2002-04-24 dated patch to c-exp.y.
9474 * jv-exp.y: Likewise.
9475 * m2-exp.y: Likewise.
9479 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
9480 we are dealing with vectors.
9484 * config/m68k/tm-nbsd.h: Obvious fix,
9485 correct machine name.
9489 * p-typeprint.c (pascal_type_print_base): Add support
9490 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
9494 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
9495 for fondamental pascal 'char' type.
9499 * p-lang.h (is_pascal_string_type): Declaration changed,
9500 new sixth argument of type char ** added.
9501 * p-lang.c (is_pascal_string_type): Implementation
9502 changed. Args length_pos, length_size, string_pos, char_size
9503 can now be NULL. New argument arrayname set to the field
9504 name of the char array. Return value set to char array
9505 field index plus one.
9506 * p-valprint.c (pascal_val_print): Adapt to new declaration of
9507 is_pascal_string_type function.
9511 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
9513 * gdbarch.c: Regenerate.
9517 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
9518 before probing for a new one. Detect errorenous gdbarch_init
9520 * gdbarch.c: Regenerate.
9524 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
9525 * config/mcore/tm-mcore.h: Ditto. Update copyright.
9526 * config/v850/tm-v850.h: Ditto. Update copyright.
9530 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
9535 * arm-tdep.c: Whitespace clean-ups.
9536 (arm_skip_prologue): Fix thinko; two lines
9537 should have been removed as part of 4/24 change.
9541 * rs6000-tdep.c: Added comment describing how fpscr register
9542 numbers were chosen.
9546 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
9550 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
9551 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
9552 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
9557 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
9558 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
9559 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
9560 not bfd-private xcoff data, to determine wordsize.
9561 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
9565 GDB 5.2 released from 5.2 branch.
9569 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
9570 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
9571 (x86_64_register_info_table): Added comments with register numbers.
9575 * rs6000-tdep.c (rs6000_extract_return_value,
9576 rs6000_store_return_value): Handle returning vectors.
9577 (rs6000_gdbarch_init): Use
9578 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
9579 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
9581 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
9583 (ppc_sysv_abi_push_arguments): Handle vector parameters.
9584 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
9586 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
9588 * hpread.c (hpread_psymtab_to_symtab_1,
9589 hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
9590 with fprintf_unfiltered (gdb_stderr,...).
9592 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
9594 * remote-array.c (printf_monitor, write_monitor,
9595 array_insert_breakpoint, array_remove_breakpoint ):
9596 Replace fprintf (stderr,...
9597 with fprintf_unfiltered (gdb_stderr,....
9598 * remote-es.c: Likewise.
9599 * remote-os9k.c: Likewise.
9600 * remote-st.c: Likewise.
9604 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
9605 linux-proc.o and gcore.o.
9609 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
9610 code without frame pointers.
9614 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
9619 * target.c (do_xfer_memory): Correct reference to the new option
9620 "trust-readonly-sections".
9624 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
9625 * gdbtypes.c (recursive_dump_type): Output the vector flag.
9626 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
9628 (read_array_type): Record the fact that this array type is really a
9629 vector (i.e. are passed in by value).
9633 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
9634 * alpha-tdep.c (alpha_sigcontext_addr): New function.
9635 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
9636 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
9637 * alpha-linux-tdep.c: Include frame.h.
9638 (alpha_linux_sigcontext_addr): New function.
9639 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
9640 alpha_linux_sigcontext_addr.
9641 * alpha-osf1-tdep.c: Include gdbcore.h.
9642 (alpha_osf1_sigcontext_addr): New function.
9643 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
9644 alpha_osf1_sigcontext_addr.
9645 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
9646 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
9650 * stack.c (selected_frame_level):
9651 (select_frame): Do not set selected_frame_level.
9652 * frame.h (selected_frame_level): Delete declaration.
9656 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
9657 convert_from_func_ptr-addr when AIX / PowerOpen.
9661 * valops.c (hand_function_call): Call
9662 generic_save_call_dummy_addr.
9663 * frame.h (generic_save_call_dummy_addr): Declare.
9664 * blockframe.c (struct dummy_frame): Add fields call_lo and
9666 (generic_find_dummy_frame): Check for PC in range call_lo to
9667 call_hi instead of entry_point_address.
9668 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
9669 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
9670 (generic_save_call_dummy_addr): New function.
9674 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
9675 sparc_skip_prologue.
9676 (sparc_skip_prologue): Kill frameless_p arg, and use line number
9677 information to find prologue when possible.
9678 (sparc_prologue_frameless_p): Call examine_prologue directly.
9679 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
9680 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
9682 (SKIP_PROLOGUE): Likewise.
9686 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
9687 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
9688 indicate that the condition it was testing is always true.
9689 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
9690 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
9691 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
9695 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
9696 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
9697 tdep->jb_pc and tdep->jb_elt_size.
9698 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
9699 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
9700 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
9701 * alpha-nat.c (get_longjmp_target): Remove.
9702 (JB_ELEMENT_SIZE): Ditto.
9704 * alpha-tdep.c (alpha_get_longjmp_target): New function.
9705 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
9706 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
9707 to alpha_get_longjmp_target.
9708 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
9709 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
9710 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
9714 * README: Update to GDB 5.2.
9718 * gdbarch.sh (LC_ALL): Set to `c'.
9722 * avr-tdep.c: Ran through gdb_indent.sh.
9726 * MAINTAINERS: Add myself as AVR maintainer.
9727 * NEWS: Note new target avr.
9731 * Makefile.in: Add support for AVR target.
9732 * configure.tgt: Add support for AVR target.
9733 * avr-tdep.c: New file
9734 * config/avr/avr.mt: New file.
9738 * MAINTAINERS: Add myself to write-after-approval.
9740 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
9742 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
9743 with fprintf_unfiltered (gdb_stderr,....
9748 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
9752 * p-exp.y: Also use new prev_lexptr variable
9753 to improve error reporting. Based on Michael Snyder
9754 2002-04-24 dated patch to c-exp.y.
9758 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
9759 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
9760 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
9762 * config/alpha/tm-alpha.h: Remove forward decls of struct type
9764 (FUNCTION_START_OFFSET): Remove.
9765 (BREAKPOINT): Ditto.
9769 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
9774 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
9775 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
9776 alpha_linux_pc_in_sigtramp.
9777 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
9778 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
9779 alpha_osf1_pc_in_sigtramp.
9780 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
9781 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
9782 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
9783 alphafbsd_pc_in_sigtramp.
9784 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
9785 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
9786 alphanbsd_pc_in_sigtramp.
9787 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
9788 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
9792 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
9796 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
9798 (alphanbsd-nat.o): New dependency list.
9799 (alphanbsd-tdep.o): Ditto.
9800 * NEWS: Note new native NetBSD/alpha configuration.
9801 * alphanbsd-nat.c: New file.
9802 * alphanbsd-tdep.c: Ditto.
9803 * configure.host (alpha*-*-netbsd*): New host.
9804 * configure.tgt (alpha*-*-netbsd*): New target.
9805 * config/alpha/nbsd.mh: New file.
9806 * config/alpha/nbsd.mt: Ditto.
9807 * config/alpha/nm-nbsd.h: Ditto.
9808 * config/alpha/tm-nbsd.h: Ditto.
9812 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
9813 (alpha-osf1-tdep.o): New dependency list.
9814 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
9815 and skip_sigtramp_frame members.
9816 * alpha-linux-tdep.c: Include gdbcore.h.
9817 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
9818 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
9819 * alpha-osf1-tdep.c: New file.
9820 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
9822 (alpha_frame_past_sigtramp_frame): New function.
9823 (alpha_dynamic_sigtramp_offset): Ditto.
9824 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
9825 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
9826 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
9827 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
9828 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
9829 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
9830 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
9831 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
9832 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
9833 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
9834 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
9835 to find_solib_trampoline_target.
9836 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
9837 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
9838 (SKIP_TRAMPOLINE_CODE): Remove.
9839 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9840 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9841 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
9842 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
9843 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
9844 (PROC_SIGTRAMP_MAGIC): Ditto.
9845 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9846 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9847 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9848 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
9849 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
9853 * NEWS: Note that Alpha targets are now multi-arch.
9857 * parser-defs.h (prev_lexptr): New external variable.
9858 * parse.c (parse_exp_1): Set prev_lexptr to null before
9859 calling the language-specific parser.
9860 * c-exp.y (yylex): Set prev_lexptr to start of current token.
9861 (yyerror): Use prev_lexptr in error reporting.
9865 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
9866 * gregset.h: If FILL_FPXREGSET is defined, provide
9867 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
9868 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
9869 is defined, call fill_fpxregset.
9873 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
9874 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
9875 (supply_gregset, supply_fpregset): New functions.
9877 * gnu-nat.c (gnu_find_memory_regions): New function.
9878 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
9879 (gnu_xfer_memory): Add a cast.
9883 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
9884 loop. Add handling for "str lr, [sp, #-4]!" and for saves
9885 of argument regs ("str r(0123), [r11, #-nn"]).
9886 (arm_skip_prologue): Better handling for frameless functions.
9887 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
9888 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
9892 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
9893 NUM_PSEUDO_REGS can be used.
9897 * arch-utils.h: Update copyright.
9899 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
9900 * gdbarch.h, gdbarch.c: Re-generate.
9902 * inferior.h (IN_SIGTRAMP): Delete definition.
9903 * arch-utils.c (legacy_pc_in_sigtramp): New function.
9904 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
9906 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
9907 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
9908 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
9909 (find_proc_framesize): Ditto.
9910 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
9911 (alpha_init_extra_frame_info): Ditto.
9912 * infrun.c (handle_inferior_event): Ditto.
9913 (handle_inferior_event): Ditto.
9914 (check_sigtramp2): Ditto.
9915 * blockframe.c (create_new_frame): Ditto.
9916 (get_prev_frame): Ditto.
9917 * ppc-linux-tdep.c: Update comments.
9918 * i386-linux-tdep.c: Update comments.
9919 * breakpoint.c (bpstat_what): Update comment.
9923 * i960-tdep.c (register_in_window_p): New function.
9924 (i960_find_saved_register): Use it instead of
9925 REGISTER_IN_WINDOW_P.
9926 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
9928 * symtab.h (find_stab_function_addr): Kill extern.
9929 * minsyms.c (find_stab_function_addr): Remove from here...
9930 * dbxread.c: ... to here, and mark it static.
9934 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
9935 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
9939 * remote-vxsparc.c (vx_read_register): Fix typo, we want
9940 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
9941 (vx_write_register): Likewise.
9945 * source.c (is_regular_file): New function.
9946 (openp): Check wether file to open is a regular file
9947 to avoid opening directories.
9951 * findvar.c (extract_signed_integer): Cast printf argument
9952 to suppress format warning.
9953 (extract_unsigned_integer): Likewise.
9954 * infcmd.c (registers_info): Likewise.
9955 * top.c (get_prompt_1): Likewise.
9956 * valops.c (value_assign): Likewise.
9957 * valprint.c (print_decimal): Likewise.
9961 * c-exp.y (typebase): Support
9963 [long|long long|short] [signed|unsigned] [int|]
9967 signed [long|long long|short] int
9971 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
9973 * vax-tdep.h: New file.
9974 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
9975 Make several routines static.
9976 (vax_get_saved_register): New function.
9977 (vax_gdbarch_init): New function.
9978 (_initialize_vax_tdep): Register vax_gdbarch_init.
9979 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
9980 Remove macros now under the control of gdbarch.
9984 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
9985 Some whitespace and coding standards tweaks.
9989 * vax-tdep.c: Include regcache.h.
9990 (vax_call_dummy_words): New.
9991 (sizeof_vax_call_dummy_words): New.
9992 (vax_fix_call_dummy): New function.
9993 (vax_saved_pc_after_call): Ditto.
9994 * config/vax/tm-vax.h: Don't include regcache.h.
9995 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
9996 (CALL_DUMMY): Remove.
9997 (CALL_DUMMY_WORDS): Define.
9998 (SIZEOF_CALL_DUMMY_WORDS): Define.
9999 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
10003 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
10007 * vax-tdep.c (vax_frame_chain): New function.
10008 (vax_push_dummy_frame): Ditto.
10009 (vax_pop_frame): Ditto.
10010 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
10011 (FRAMELESS_FUNCTION_INVOCATION): Use
10012 generic_frameless_function_invocation_not.
10013 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
10014 (POP_FRAME): Use vax_pop_frame.
10018 * vax-tdep.c (vax_store_struct_return): New function.
10019 (vax_extract_return_value): Ditto.
10020 (vax_store_return_value): Ditto.
10021 (vax_extract_struct_value_address): Ditto.
10022 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
10023 vax_store_struct_return.
10024 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
10025 (STORE_RETURN_VALUE): Use vax_store_return_value.
10026 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
10030 * vax-tdep.c (vax_frame_saved_pc): New function.
10031 (vax_frame_args_address_correct): Ditto.
10032 (vax_frame_args_address): Ditto.
10033 (vax_frame_locals_address): Ditto.
10034 (vax_frame_num_args): Move code to be in proximity to
10035 other frame-related functions.
10036 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
10037 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
10038 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
10039 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
10040 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
10044 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
10049 * vax-tdep.c (vax_frame_init_saved_regs): New function.
10050 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
10051 (FRAME_INIT_SAVED_REGS): New macro.
10055 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
10059 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
10061 (fetch_osf_core_registers): Likewise.
10062 (supply_gregset): Likewise.
10066 * symfile.h (get_section_index): Define.
10067 * symfile.c (get_section_index): New function.
10068 * mdebugread.c (SC_IS_SBSS): New macro.
10069 (SC_IS_BSS): Return true for the scBss storage class only, as
10070 the scSBss storage class refers to the .sbss section.
10071 (parse_partial_symbols): Discard the symbols which associated
10072 section does not exist.
10073 Make sure to use the .sbss section index for symbols which
10074 storage class is scBss, rather than using the .bss section index.
10078 * vax-tdep.c: Update copyright years.
10079 (vax_register_name): New function.
10080 (vax_register_byte): Ditto.
10081 (vax_register_raw_size): Ditto.
10082 (vax_register_virtual_size): Ditto.
10083 (vax_register_virtual_type): Ditto.
10084 * config/vax/tm-vax.h: Update copyright years.
10085 (REGISTER_NAMES): Remove.
10086 (REGISTER_NAME): Define.
10087 (REGISTER_BYTE): Use vax_register_byte.
10088 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
10089 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
10090 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
10094 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
10096 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
10100 * arch-utils.c (generic_prologue_frameless_p): Kill
10101 SKIP_PROLOGUE_FRAMELESS_P code.
10102 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
10104 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
10105 * arc-tdep.c (arc_prologue_frameless_p): Implement.
10106 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
10108 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
10109 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
10110 (sparc_gdbarch_init): Pass it to
10111 set_gdbarch_prologue_frameless_p.
10115 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
10116 (alphabsd-nat.o): New dependency list.
10120 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
10122 (alpha-linux-tdep.o): New dependency list.
10123 (alphafbsd-tdep.o): Likewise.
10127 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
10129 * alpha-tdep.c: ...from here.
10130 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
10134 * config/alpha/tm-alpha.h: Move alpha_software_single_step
10135 prototype from here...
10136 * alpha-tdep.h: ...to here.
10140 * frame.h (selected_frame_level): Document as deprecated.
10141 (frame_relative_level): Declare.
10142 * stack.c (frame_relative_level): New function.
10143 (selected_frame_level): Document as deprecated.
10144 (select_frame): Do not set the selected_frame_level.
10146 * stack.c (frame_info, record_selected_frame): Update.
10147 (frame_command, current_frame_command): Update.
10148 (up_silently_base, up_command, down_silently_base): Update.
10149 (down_command): Update.
10150 * inflow.c (kill_command): Update.
10151 * tracepoint.c (finish_tfind_command): Update.
10152 * corelow.c (core_open): Update.
10153 * thread.c (info_threads_command): Update.
10154 (do_captured_thread_select): Update.
10155 * infcmd.c (finish_command): Update.
10156 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
10160 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
10164 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
10169 * alphafbsd-tdep.c: Update copyright years. Include
10171 (alphafbsd_use_struct_convention): Make static.
10172 (alphafbsd_init_abi): New function.
10173 (_initialize_alphafbsd_tdep): New function.
10174 * config/alpha/tm-fbsd.h: Update copyright years.
10175 (USE_STRUCT_CONVENTION): Remove.
10179 * alpha-tdep.c (alpha_abi_handler): New structure to describe
10180 an Alpha ABI variant.
10181 (alpha_abi_handler_list): Declare.
10182 (alpha_gdbarch_register_os_abi): New function.
10183 (alpha_gdbarch_init): Give registered ABI variant handlers a
10184 chance to tweak the gdbarch once we have set up defaults.
10185 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
10189 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
10190 to standard_coerce_float_to_double.
10191 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
10195 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
10196 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
10197 from gdbarch_tdep rather than a constant.
10198 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
10199 the default text address for all Alpha Unix ABIs.
10200 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
10201 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
10205 * alpha-tdep.h: New file. Includes several Alpha target constants
10207 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
10208 let gdbarch deal with.
10209 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
10210 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
10211 to dependency list.
10212 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
10213 Alpha target register names.
10214 * alphabsd-nat.c: Likewise.
10215 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
10216 Alpha target register names. Make serveral routines static.
10217 (alpha_get_saved_register): New function.
10218 (alpha_abi_names): New.
10219 (process_note_abi_tag_sections): New function.
10220 (get_elfosabi): New function.
10221 (alpha_gdbarch_init): New function.
10222 (alpha_dump_tdep): New function.
10223 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
10227 * frame.c (find_saved_register): Delete #ifdef
10228 HAVE_REGISTER_WINDOWS code.
10229 * config/sparc/tm-sparc.h: Update comments.
10230 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
10234 * i960-tdep.c (i960_find_saved_register): New function.
10235 (i960_get_saved_register): New function.
10236 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
10237 (i960_get_saved_register): Declare.
10238 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
10242 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
10246 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
10247 instead of NUM_PSEUDO_REGS.
10251 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
10252 GDB_MULTI_ARCH_PARTIAL
10253 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
10254 define, let tm-sp64.h do it.
10258 * frame.c (find_saved_register): Avoid a NULL pointer
10259 dereference and actually walk the frame list.
10263 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
10264 sorted in most most-recent-used order. Document.
10265 * gdbarch.h, gdbarch.c: Regenerate.
10269 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
10271 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
10272 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
10273 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
10279 * gdbtypes.c (init_simd_type): Rewrite using new functions.
10280 (build_builtin_type_vec128): Ditto.
10281 (append_composite_type_field): Fix calculation of type length in
10286 * config/djgpp/README: Update.
10288 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
10293 * alpha-tdep.c (setup_arbitrary_frame): Rename...
10294 (alpha_setup_arbitrary_frame): ...to this.
10295 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
10296 for alpha_setup_arbitrary_frame.
10300 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
10301 * gdbarch.h, gdbarch.c: Regenerate.
10303 * defs.h (breakpoint_from_pc_fn): Delete type definition.
10304 * target.h (memory_breakpoint_from_pc): Update declaration.
10305 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
10307 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
10308 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
10309 * mem-break.c (memory_breakpoint_from_pc): Ditto.
10310 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
10311 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
10312 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
10313 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
10314 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
10315 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
10316 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
10317 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
10318 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
10320 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
10322 * monitor.c (monitor_insert_breakpoint): Ditto.
10323 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
10325 * config/mcore/tm-mcore.h: Update copyright.
10326 * mem-break.c: Ditto.
10327 * xstormy16-tdep.c: Ditto.
10331 * p-exp.y: Add precedence rule for '^' token.
10332 This removes the shift/reduce conflicts.
10333 Remove the comment concerning these shift/reduce conflicts.
10337 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
10338 (registers_powerpc_nofp): New register set for processors
10339 without floating point unit.
10343 * MAINTAINERS: Add myself to write-after-approval.
10347 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
10351 * rs6000-tdep.c (frame_initial_stack_address): Use
10352 frame_register_read to read the alloca_reg.
10356 * frame.c (find_saved_register): Find saved registers in the next
10362 * gdbarch.sh (LANG): Set to ``c''.
10366 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
10370 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
10373 * hpread.c (hpread_get_lntt): Add declaration.
10374 Also fix PR gdb/391.
10378 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
10379 * aclocal.m4, configure: Re-generate.
10384 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
10385 instead of tm_print_insn.
10389 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
10393 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
10394 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
10395 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
10399 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
10400 max_user_call_depth.
10401 (init_cmd_lists): Initialize the new value;
10402 * cli/cli-script.c (execute_user_command): Limit the call depth of
10403 user defined commands. This avoids a core-dump when user commands
10404 are infinitly recursive.
10408 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
10409 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
10410 from tdep struct instead of DEFAULT_LR_SAVE.
10411 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
10412 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
10413 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
10417 * Remote.c: Spelling fix.
10418 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
10419 If no symbol found for "sbrk", try "_sbrk".
10420 (make_output_phdrs): Use bfd_section_name.
10421 (gcore_copy_callback): Use bfd_section_name.
10422 * eval.c: Indentation fix-ups.
10423 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
10424 in case it gets applied to an address that is already
10425 in the instruction space.
10426 * cli/cli-decode.c (help_list): Allow long lines to wrap.
10427 * symfile.c: Fix indentation, long lines.
10428 * source.c: White space fix-up.
10432 * defs.h (read_relative_register_raw_bytes): Delete declaration.
10433 * frame.c (frame_register_read): New function. Return non-zero on
10435 (read_relative_register_raw_bytes_for_frame): Delete.
10436 (read_relative_register_raw_bytes): Delete.
10437 * frame.h (frame_register_read): Declare.
10438 * d30v-tdep.c: Update Copyright. Use frame_register_read.
10439 * sh-tdep.c: Ditto.
10440 * infcmd.c (do_registers_info): Ditto.
10441 * hppa-tdep.c: Ditto.
10442 * rs6000-tdep.c: Ditto.
10443 * h8500-tdep.c: Ditto.
10444 * mips-tdep.c: Ditto.
10445 * h8300-tdep.c: Ditto.
10446 * z8k-tdep.c: Ditto.
10451 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
10457 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
10463 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
10464 register sets for these processor variants.
10468 * regformats/reg-ppc.dat: Support FPSCR.
10472 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
10473 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
10474 Add fpscr as an invalid/unfetchable register.
10475 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
10476 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
10477 (fill_fpregset): Add support for register fpscr.
10478 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
10479 (fill_gregset): Account for the fact that register ``mq'' might
10481 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
10482 (registers_power): Add fpscr to register set at slot 71.
10483 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
10484 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
10488 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
10489 * configure: Regenerate.
10490 * config.in: Regenerate.
10491 * acconfig.h: Add define for _SYSCALL32.
10492 * core-sol2.c: Remove #define _SYSCALL32.
10493 * solib-legacy.c: Remove #define _SYSCALL32.
10497 * stack.c (select_frame): Cleanup internal error message, do not
10502 * stack.c (select_frame): Check that selected_frame and the
10503 specified level are as expected.
10504 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
10506 * frame.h (struct frame_info): Add field `level'. Update
10508 Work-in-progress PR gdb/464.
10512 * maint.c (maint_print_section_info): Rename print_section_info.
10513 (print_bfd_section_info, print_objfile_section_info): Update.
10514 * inferior.h (struct gdbarch): Add opaque declaration.
10515 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
10516 * gdbarch.h: Regenerate.
10520 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
10521 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
10522 (kernel_u_size): Added.
10523 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
10524 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
10528 * valarith.c (find_size_for_pointer_math): New function, either returns
10529 the size for a pointer's target, returns 1 for void *, or errors for
10531 (value_add, value_sub): use find_size_for_pointer_math.
10535 * linux-low.c (linux_look_up_symbols): New hook.
10536 (linux_target_ops): Add linux_look_up_symbols.
10537 * remote-utils.c (decode_address): New function.
10538 (look_up_one_symbol): New function.
10539 * server.c (handle_query): Call target look_up_symbols hook.
10540 * server.h (look_up_one_symbol): Add prototype.
10541 * target.h (struct target_ops): Add look_up_symbols hook.
10545 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
10546 override FP_REGNUM with frame->fp. Update copyright.
10547 * parse.c (num_std_regs, std_regs): Delete.
10548 (target_map_name_to_register): Do not search std_regs. Update
10549 function description.
10550 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
10551 declarations. Update copyright.
10556 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
10557 after the last symbol in a block.
10561 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
10562 is non zero as a found symbol.
10566 * findvar.c: Include "builtin-regs.h".
10567 (value_of_register): Call value_of_builtin_reg when applicable.
10568 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
10569 (target_map_name_to_register): Call
10570 builtin_reg_map_name_to_regnum.
10571 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
10572 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
10573 (builtin_regs_h): Define.
10574 (builtin-regs.o): New target.
10575 (findvar.o): Add $(builtin_regs_h).
10576 * builtin-regs.c, builtin-regs.h: New files.
10577 * std-regs.c: New file.
10578 Partial fix for PR gdb/251.
10582 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
10583 it's no longer required.
10587 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
10592 * rs6000-tdep.c (rs6000_software_single_step): Use
10593 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
10594 and size. Use target_insert_breakpoint() and
10595 target_remove_breakpoint() to insert and remove breakpoints
10596 instead of explicit memory reads and writes.
10600 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
10601 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
10602 ELF_OBJECT_FORMAT ifdef.
10607 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
10612 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
10613 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
10617 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
10618 s/asprintf/xasprintf/.
10619 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
10623 I believe Jeff Law denies responsability for this one:
10624 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
10625 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
10626 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
10627 Work-around for PR gdb/366.
10631 * remote-e7000.c (write_small, e7000_read_inferior_memory,
10632 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
10633 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
10637 * sh-tdep.c (sh_fp_frame_init_saved_regs,
10638 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
10643 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
10648 * README (Reporting Bugs in GDB): Document the bug web page as the
10649 prefered way of submitting bugs.
10654 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
10655 -1. Update comment.
10656 * gdbarch.h, gdbarch.c: Re-generate.
10660 * m68klinux-nat.c (fill_fpregset): Properly pass address of
10661 buffer to regcache_collect.
10665 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
10666 * gdbarch.c, gdbarch.h: Re-generate.
10670 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
10671 declaration. Fix -Werror.
10675 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
10676 * gdbarch.c: Regenerate.
10680 * breakpoint.c (clear_command): Rewrite middle section to
10681 combine two loops with identical control conditions.
10682 Add a cleanup to eliminate a memory leak.
10683 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
10687 * solib-svr4.c (bkpt_names): Add "__start".
10691 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
10692 as test for 64 bit target.
10696 * h8500-tdep.c (h8500_write_fp): Delete function.
10697 * dwarf2cfi.c (cfi_write_fp): Document as not used.
10698 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
10699 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
10700 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
10701 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
10702 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
10704 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
10705 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
10706 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
10707 (d10v_write_fp): Delete function.
10708 * inferior.h (write_fp, generic_target_write_fp): Delete
10710 * regcache.c (generic_target_write_fp): Delete function.
10711 (write_fp): Delete function.
10712 * gdbarch.sh (TARGET_WRITE_FP): Delete.
10713 * gdbarch.h, gdbarch.c: Regenerate.
10714 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
10715 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
10716 (sparc64_write_fp): Delete declaration.
10717 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
10718 (h8500_write_fp): Delete declaration.
10722 * sparc-tdep.c (sparc64_write_fp): Delete.
10723 (sparc_push_dummy_frame): Replace write_fp call with code to store
10725 (sparc_gdbarch_init): Do not initialize write_fp.
10729 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
10734 * stack.c (get_selected_block): Add new argument `addr_in_block',
10735 used to return the exact code address we used to select the block,
10736 not just the block.
10737 * blockframe.c (get_frame_block, get_current_block): Same.
10738 * frame.h (get_frame_block, get_current_block,
10739 get_selected_block): Update declarations.
10740 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
10741 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
10745 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
10750 * utils.c (xfullpath): New function.
10751 * defs.h (xfullpath): Add declaration.
10752 * source.c (openp): Use xfullpath in place of gdb_realpath to
10753 avoid resolving the basename part of filenames when the
10754 associated file is a symbolic link. This fixes a potential
10755 inconsistency between the filenames known to GDB and the
10756 filenames it prints in the annotations.
10757 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
10758 to be able to match a filename with either the real filename, or
10759 the name of any symbolic link to this file.
10760 (lookup_partial_symtab): Ditto.
10764 * breakpoint.c: Add support for hardware breakpoints in overlays.
10765 (overlay_events_enabled): New state variable.
10766 (insert_breakpoints): Use overlay_events_enabled to decide
10767 whether to attempt to set a breakpoint at the overlay load addr.
10768 Handle bp_hardware_breakpoint as well as bp_breakpoint.
10769 (remove_breakpoint): Use overlay_events_enabled to decide
10770 whether breakpoints need to be removed from overlay load addr.
10771 Handle bp_hardware_breakpoint as well as bp_breakpoint.
10772 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
10773 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
10774 disable_overlay_breakpoints): Update overlay_events_enabled.
10778 * dwarf2read.c (struct function_range): New.
10779 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
10780 (check_cu_functions): New.
10781 (read_file_scope): Initialize global function lists.
10782 Call dwarf_decode_line after processing children.
10783 (read_func_scope): Add to global function list.
10784 (dwarf_decode_lines): Call check_cu_functions everywhere
10785 record_line is called. Call record_line with a linenumber
10786 of 0 to mark sequence ends.
10790 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
10791 change sync with glibc.
10795 * configure.in: Call AC_C_INLINE.
10796 * configure: Regenerated.
10800 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
10801 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
10805 * NEWS: Mention gcore support on FreeBSD/i386.
10807 * fbsd-proc.c: New file.
10808 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
10809 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
10811 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
10816 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
10817 unescaped newlines in string literals, but newer ones don't. So
10823 * cli/cli-dump.c: New file. Dump memory to file,
10824 restore file to memory.
10825 * cli/cli-dump.h: New file.
10826 * Makefile.in: Add rules, dependencies for cli-dump.o.
10827 * NEWS: Mention new commands.
10831 * symfile.c (symbol_file_add): Move test for null symbols to later.
10835 From veksler at il.ibm.com:
10836 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
10837 the xstrduped original path.
10842 * breakpoint.c (_initialize_breakpoint): Clean up help string.
10843 * infcmd.c (_initialize_infcmd): Ditto.
10844 * language.c (_initialize_language): Ditto.
10845 * symfile.c (_initialize_symfile): Ditto.
10846 * top.c (_init_main): Ditto.
10847 * cli/cli-cmds.c (init_cli_cmds): Ditto.
10851 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
10852 vector registers handling.
10853 (skip_prologue): Handle new AltiVec instructions. Fill in new
10854 fields of frame data.
10855 (frame_get_saved_regs): Fill in information for AltiVec registers.
10859 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
10860 a function; leave this macro here to invoke that function.
10861 (symbol_init_mangled_name): Declaration for that function.
10862 * symtab.c (symbol_init_mangled_name): New function.
10866 * valarith.c: Replace strerror with safe_strerror.
10867 * tracepoint.c: Ditto.
10868 * lin-lwp.c: Ditto.
10869 * go32-nat.c: Ditto.
10871 * gnu-nat.c: Ditto.
10875 * event-top.c (command_line_handler): Remove useless if.
10879 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
10884 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
10885 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
10886 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
10887 (x86_64_linux_dr_get_status, supply_gregset),
10888 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
10889 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
10890 (x86_64_register_info_table): Add.
10891 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
10892 (x86_64_register_raw_size, x86_64_register_virtual_type),
10893 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
10894 general x86_64_register_info_table.
10895 (i386_gdbarch_init): gdbarch_register_bytes is now set
10896 dynamicaly during initialization.
10897 * regformats/reg-x86-64.dat: Synced with changes to registers above.
10898 * gdbserver/linux-x86-64-low.c: Ditto.
10902 * gdbserver/server.c (main): Call target_signal_to_host_p
10903 and target_signal_to_host on signals received from the remote.
10904 * gdbserver/remote-utils.c (prepare_resume_reply): Call
10905 target_signal_from_host on signals sent to the remote.
10906 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
10907 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
10911 * signals/signals.c: Include "server.h" in gdbserver build.
10912 (target_signal_from_name): Don't use STREQ.
10913 (_initialize_signals): Likewise. Don't include function in
10918 * signals.c: Moved to...
10919 * signals/signals.c: Here.
10920 * Makefile (signals.o): Update.
10924 * somread.c (som_symtab_read): Remove some commented out code and
10925 updated related comments. Do not set the minimal symbol table to
10926 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
10927 in a dynamic executable.
10928 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
10929 where we are unable to find the minimal symbol for the given
10934 * linux-proc.c (read_mapping): Scan up to end of line for filename.
10938 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
10942 * command.h: Update copyright.
10943 (struct cmd_list_element): Replace definition with opaque
10945 (enum cmd_types): Document that it will eventually be moved to
10947 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
10948 (MALLOCED_REPLACEMENT): Delete macro.
10949 * Makefile.in (cli_decode_h): Add $(command_h).
10950 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
10951 * top.c: Include "cli/cli-decode.h".
10952 * completer.c: Include "cli/cli-decode.h".
10953 * maint.c: Include "cli/cli-decode.h".
10954 * cli/cli-decode.h: Include "command.h".
10955 (enum command_class): Delete.
10956 (enum cmd_types): Comment out.
10957 (enum cmd_auto_boolean): Delete.
10958 (enum var_types): Delete.
10962 * cli/cli-decode.c: Include "gdb_assert.h".
10963 (add_set_or_show_cmd): New static function.
10964 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
10965 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
10966 all fields, such as func, from the set command.
10970 * MAINTAINERS (sh-elf): Change warning flag to -w.
10974 * defs.h (error): Add printf format attribute.
10975 * thread-db.c (thread_from_lwp): Fix error format string.
10976 * stack.c (parse_frame_specification): Ditto.
10977 * cli/cli-decode.c (undef_cmd_error): Ditto.
10978 * scm-lang.c (scm_lookup_name): Ditto.
10979 * tracepoint.c (trace_error): Ditto.
10980 * remote-utils.c (usage): Ditto.
10981 * remote.c (compare_sections_command): Ditto.
10986 * gdbtypes.c (append_composite_type_field): New function.
10987 (init_composite_type): New function.
10988 * gdbtypes.h (append_composite_type_field): Declare.
10989 (init_composite_type): Ditto.
10993 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
10995 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
10996 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
10997 structure returning convention for SYSV ABI case, but not
10998 for GNU/Linux, FreeBSD, or NetBSD.
11002 * symtab.h (lookup_block_symbol): Add mangled_name argument
11005 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
11006 with new mangled_name argument.
11007 * linespec.c (decode_line_1): Likewise.
11008 * valops (value_of_this): Likewise.
11009 * symtab.c (lookup_transparent_type): Likewise.
11010 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
11011 (lookup_symbol): If we are given a mangled name, pass it down
11012 to lookup_symbol_aux.
11013 (lookup_block_symbol): If we are given a mangled name to check
11014 against, only return symbols which match it.
11018 * win32-nat.c (child_create_inferior): Check for proper shell to use
11019 here, in case the user changes it on the fly.
11020 (_initialize_inftarg): Remove shell path considerations.
11024 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
11025 for gdbarch_max_register_raw_size and max_register_virtual_size.
11026 Adjust copyright year.
11030 * dbxread.c (process_one_symbol): Extend the first N_SLINE
11031 in a function to cover the entire beginning of the function
11032 as well if it does not already.
11036 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
11037 (rs6000_ptrace64): Renamed from ptrace64.
11041 * gdbserver/remote-utils.c (remote_open): Don't call
11042 getprotobyname, we're all using TCP here so just use
11044 * gdbserver/gdbreplay.c (remote_open): Ditto.
11048 * regcache.c (_initialize_regcache): No need to call
11049 build_regcache() at this time; it gets called whenever
11050 the gdbarch changes.
11054 * sparc-nat.c: Include sys/param.h where possible.
11059 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
11060 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
11061 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
11063 * stabsread.c (rs6000_builtin_type): Likewise.
11064 (read_sun_floating_type): Likewise.
11068 * stabsread.c (read_member_functions): Remove skip code for duplicate
11069 constructor/destructor methods. Use standard parsing for these
11070 methods and just do not chain them to the list of methods after
11075 * coffread.c: Remove redundant static declarations. Replace
11076 occurrences of `PTR' with `void *'.
11077 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
11078 * top.h (quit_cover): Likewise.
11079 * defs.h (catch_errors): Likewise.
11083 * defs.h (XMALLOC): Define.
11084 * gdb-events.sh (XMALLOC): Delete macro.
11085 * gdb-events.c, gdb-events.h: Regenerate.
11086 * gdbarch.sh (XMALLOC): Delete macro.
11087 * gdbarch.c: Regenerate.
11088 * serial.c (XMALLOC): Delete macro.
11089 * ui-file.c (XMALLOC): Ditto.
11090 * ser-unix.h (XMALLOC): Ditto.
11091 * sh-tdep.c (XMALLOC): Ditto.
11092 * ui-out.c (XMALLOC): Ditto.
11093 * utils.c (XMALLOC): Ditto.
11094 * i386-tdep.c (XMALLOC): Ditto.
11095 * gdb-events.c (XMALLOC): Ditto.
11096 * d10v-tdep.c (XMALLOC): Ditto.
11097 * cli-out.c (XMALLOC): Ditto.
11099 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
11100 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
11101 * ui-file.c, ui-out.c: Ditto.
11105 * command.h (struct cmd_list_element): Add field context.
11106 (set_cmd_context, get_cmd_context): Declare.
11107 * cli/cli-decode.h: Ditto.
11108 * cli/cli-decode.c (get_cmd_context): New function.
11109 (set_cmd_context): New function.
11110 (add_cmd): Initialize context.
11111 Part of fixing PR gdb/145 and PR gdb/146.
11115 * cli/cli-decode.c (cmd_type): New function.
11116 * command.h (cmd_type): Declare.
11117 * infrun.c (set_schedlock_func): Call function cmd_type.
11118 * kod.c (kod_set_os): Call cmd_type.
11119 * cris-tdep.c (cris_version_update): Use function cmd_type.
11120 (cris_mode_update, cris_abi_update): Ditto.
11122 * command.h: (execute_cmd_post_hook): Declare.
11123 (execute_cmd_pre_hook): Declare.
11124 * cli/cli-script.c (clear_hook_in_cleanup): New function.
11125 (execute_cmd_post_hook, execute_cmd_pre_hook): New
11126 functions. Execute pre/post hook while ensuring that afterwords
11127 hook_in is cleared.
11128 * top.c (execute_command): Use execute_cmd_post_hook, and
11129 execute_cmd_pre_hook to execute pre/post commands.
11130 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
11132 (hook_stop_stub): Call execute_cmd_pre_hook.
11136 * kod.c (kod_set_os): Revert previous change. Is called by ``info
11137 set'' and this leads to a core dump. Move xstrdup of
11138 operating_system to after check that it is not NULL.
11142 * kod.c (kod_set_os): Remove unnecessary check that
11143 ``command->type'' is set_cmd.
11145 * valprint.c (set_input_radix): Use input_radix.
11146 (set_output_radix): Use output_radix.
11147 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
11152 * value.h (struct value): Delete field ``substring_addr''. Change
11153 aligner fields to force_doublest_align, force_longest_align,
11154 force_core_addr_align and force_pointer_aligh.
11156 * value.h (struct value): Fix typo in above change.
11160 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
11161 to fix internal_error from ``maintenance print architecture''.
11165 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
11166 for gcc versions after gcc-2.8.1.
11170 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
11171 for method resolution. Restore adjustment of ``this'' pointer after
11172 calling value_struct_elt, which was accidentally removed during the
11177 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
11179 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
11180 get_saved_register.
11181 * value.h (value_of_register): Update.
11185 * configure.in: Detect declaration for canonicalize_file_name.
11186 * utils.c (canonicalize_file_name): Declare, if needed.
11187 (gdb_realpath): Prefer realpath if available and usable.
11188 * config.in, configure: Rebuild.
11192 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
11193 a constant array bound.
11195 * MAINTAINERS: Add myself to write-after-approval.
11199 * symfile.c (syms_from_objfile): Return immediately if no syms.
11200 (symbol_file_add): Return immediately if no syms.
11201 (find_sym_fns): Return immediately if no syms.
11205 * gdbserver/remote-util.c (remote_open): Print remote-side's
11206 IP address when remote debugging over the network.
11210 * config/sparc/fbsd.mh: Fix copyright.
11211 * config/sparc/fbsd.mt: Likewise.
11215 * MAINTAINERS: Fix typo in name of gdb warnings option.
11216 (x86-64): Fix formating so that this can be parsed by awk.
11220 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
11221 * defs.h: Include "gdb/signals.h".
11222 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
11226 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
11227 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
11233 * mips-tdep.c (ST0_FR): Define.
11234 (mips2_fp_compat): New function, temporarily disabled.
11235 (mips_read_fp_register_single): New function.
11236 (mips_read_fp_register_double): New function.
11237 (mips_print_register): Use them.
11238 (do_fp_register_row): Likewise.
11242 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
11247 * stabsread.c (read_member_functions): Fix is_stub test for
11248 static member functions, improve comment.
11252 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
11253 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
11254 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
11255 commands that set boolean values.
11256 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
11257 (arm_rdi_resume): Always initialize PC.
11258 (arm_rdi_open): Don't use rslt as a boolean.
11259 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
11260 (arm_rdi_fetch_registers, arm_rdi_store_registers)
11261 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
11262 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
11266 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
11267 * configure: Rebuilt.
11271 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
11272 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
11276 * cli/cli-decode.c (set_cmd_completer): New function.
11277 * command.h (set_cmd_completer): Declare.
11278 * cli/cli-decode.h (set_cmd_completer): Ditto.
11280 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
11281 * cli/cli-cmds.c (init_cli_cmds): Ditto.
11282 * win32-nat.c (_initialize_inftarg): Ditto.
11283 * remote-rdi.c (_initialize_remote_rdi): Ditto.
11284 * proc-api.c (_initialize_proc_api): Ditto.
11285 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
11286 * source.c (_initialize_source): Ditto.
11287 * exec.c (_initialize_exec): Ditto.
11288 * solib.c (_initialize_solib): Ditto.
11289 * top.c (init_main): Ditto.
11290 * tracepoint.c (_initialize_tracepoint): Ditto.
11291 * symfile.c (_initialize_symfile): Ditto.
11292 * printcmd.c (_initialize_printcmd): Ditto.
11293 * infcmd.c (_initialize_infcmd): Ditto.
11294 * corefile.c (_initialize_core): Ditto.
11298 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
11302 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
11306 * NEWS: Update headings, 5.2 has branched.
11310 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
11311 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
11312 (register_addr, REGISTER_RAW_SIZE): Likewise.
11313 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
11314 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
11318 * MAINTAINERS (x86-64): Add myself.
11319 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
11320 changed value_ptr -> struct value *
11324 * configure.host (sparc64-*-freebsd): Add.
11325 * configure.tgt: Likewise.
11326 * config/sparc/fbsd.mh: New file.
11327 * config/sparc/fbsd.mt: Likewise.
11328 * config/sparc/nm-fbsd.h: Likewise.
11329 * config/sparc/tm-fbsd.h: Likewise.
11333 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
11334 regformats/reg-s390x.dat.
11338 * utils.c: Add FIXME explaining true/false problem.
11342 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
11346 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
11350 * gdbserver/linux-s390-low.c: New file.
11351 * regformats/reg-s390.dat: New file.
11352 * regformats/reg-s390x.dat: New file.
11353 * gdbserver/configure.srv: Add S/390.
11354 * gdbserver/Makefile.in: Add S/390.
11355 * configure.tgt: Enable gdbserver for S/390.
11359 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
11360 first line of the doc string for "info dos", except at the end of
11361 the sentence, since the short help stops at the first period.
11365 * dwarf2read.c (dwarf_cfi_name): Add new codes.
11369 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
11370 comment (dumy -> dummy).
11374 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
11378 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
11382 * gdbserver/acconfig.h: New file.
11383 * gdbserver/i387-fp.c: New file.
11384 * gdbserver/i387-fp.h: New file.
11385 * gdbserver/linux-x86-64.c: New file.
11386 * regformats/reg-x86-64.dat: New file.
11387 * configure.tgt: Add x86_64-*-linux* gdbserver support.
11388 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
11389 * gdbserver/configure.in: Add support for regsets.
11390 * gdbserver/config.in: Regenerate.
11391 * gdbserver/configure: Regenerate.
11392 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
11393 * gdbserver/linux-low.h: New file.
11394 * gdbserver/linux-low.c: Include "linux-low.h". Add support
11396 * gdbserver/linux-arm-low.c: Include "linux-low.h".
11397 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
11398 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
11399 * gdbserver/linux-mips-low.c: Include "linux-low.h".
11400 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
11401 * gdbserver/linux-sh-low.c: Include "linux-low.h".
11402 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
11403 "i387-fp.h". Add PTRACE_GETREGS and friends.
11404 * gdbserver/regcache.c (supply_register): New function.
11405 (supply_register_by_name): New function.
11406 (collect_register): New function.
11407 (collect_register_by_name): New function.
11411 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
11412 (config.status): Add configure.srv dependency.
11413 (server_h): Add config.h dependency.
11417 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
11418 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
11419 * gdbserver/configure.srv: Change i386-*-linux* to use
11424 * x86-64-tdep.c: Re-indent. Update copyright date.
11429 * x86-64-tdep.c (value.h): Delete.
11430 (gdb_assert.h): Include.
11431 (x86_64_register_convert_to_virtual,
11432 x86_64_register_convert_to_raw ): Add check which lets only
11433 floating-point values to be converted.
11434 (value_push): Delete.
11435 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
11436 (i386_gdbarch_init): Number of register_bytes fixed.
11440 * MAINTAINERS: Add x86-64 target.
11444 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
11445 * osfsolib.c (solib_map_sections): Ditto.
11446 * irix5-nat.c (solib_map_sections): Ditto.
11447 * corelow.c (gdb_check_format): Ditto.
11448 * symfile.c (symfile_bfd_open): Ditto.
11449 * solib.c (solib_map_sections): Ditto.
11454 * remote.c (_initialize_remote): By default, disable ``e'' and
11455 ``E'' step out-of-range packets.
11459 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
11460 m68k_linux_frame_saved_pc.
11461 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
11463 (SIGCONTEXT_PC_OFFSET): Remove.
11464 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
11465 m68k_linux_sigtramp_saved_pc): New functions.
11466 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
11467 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
11468 (UCONTEXT_PC_OFFSET): Define.
11469 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
11470 non-RT and RT signal trampolines.
11474 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
11475 (TARGET_NBPG, STACK_END_ADDR): Delete
11476 (VARIABLES_INSIDE_BLOCK): Delete.
11480 * utils.c (perror_with_name): Make string parameter constant.
11481 (print_sys_errmsg): Ditto.
11483 * defs.h (perror_with_name): Update.
11484 (print_sys_errmsg): Update.
11490 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
11494 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
11495 if it already matches the current architecture from the exec file.
11496 Include arch-utils.h for gdbarch_info_init prototype.
11497 * Makefile.in (rs6000-nat.o): Update dependencies.
11501 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
11502 list of exported variables.
11506 * gdbserver/configure.srv: New file.
11507 * gdbserver/configure.in: Use configure.srv instead
11508 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
11510 * gdbserver/configure: Regenerated.
11511 * gdbserver/terminal.h: New file.
11512 * gdbserver/Makefile.in: Update for configure changes. Remove
11513 more unneeded include paths.
11517 From wiz at danbala:
11518 * config/sparc/tm-sp64.h: Fix grammar and typos.
11523 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
11524 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
11525 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
11526 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
11527 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
11528 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
11529 * s390-tdep.c: Ditto.
11530 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
11531 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
11532 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
11533 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
11534 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
11535 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
11536 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
11537 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
11538 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
11539 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
11544 * lin-thread.c: Delete file.
11545 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
11546 to gdb_proc_service.h.
11547 * configure: Re-generate.
11549 * ocd.c (ocd_open): Do not try to open the "ocd" device.
11550 * serial.c (serial_open): Delete check for "ocd".
11553 * Makefile.in (linux-thread.o): Delete target.
11554 * linux-thread.c: Delete file.
11556 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
11557 renamed SH files to be consistent.
11559 * symtab.c (sort_search_symbols): Use xfree.
11563 * arm-linux-tdep.c (arm_linux_init_abi): Register
11564 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
11565 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
11566 definition with undef, since we don't want the sysvr4 definition.
11567 (SKIP_TRAMPOLINE_CODE): Likewise.
11573 * configure.in: (AC_CHECK_FUNCS) Added test for
11574 canonicalize_file_name Regenerated.
11575 * config.in, configure: Regenerated.
11576 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
11577 defined use canonicalize_file_name.
11581 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
11585 * README: Remove references to cygnus.com.
11586 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
11587 dot com'' form. Remove references to cygnus.com and sourceware.
11592 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
11593 1003.1-2001 no longer allows "head -1".
11594 * gdb/Makefile.in (version.c): Likewise.
11595 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
11596 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
11597 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
11601 * cli/cli-decode.c (cmd_cfunc_eq): New function.
11602 * command.h (cmd_cfunc_eq): Declare.
11603 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
11605 * cli/cli-cmds.h (is_complete_command): Change parameter to a
11606 ``struct cmd_list_element *''.
11607 * cli/cli-cmds.c (is_complete_command): Update. Use
11609 * top.c (execute_command): Pass the command to
11610 is_complete_command.
11611 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
11616 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
11617 architecture defines.
11618 * s390-tdep.c (s390_gdbarch_init): Likewise.
11622 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
11623 (arm_linux_push_arguments): Likewise.
11624 (arm_linux_init_abi): Register them. Also register linux-specific
11626 (find_minsym_and_objfile): Use strcmp, not STREQ.
11627 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
11628 (arm_linux_call_dummy_words): Delete declaration.
11629 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
11630 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
11632 (LOWEST_PC): Delete.
11636 * maint.c (print_section_info): Do not prepend `0x' to filepos
11637 output, it will be handled by local_hex_string_custom.
11641 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
11642 (store_newfpe_double, store_newfpe_extended, store_fpregister)
11643 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
11647 Indicate that the bcache functions don't change the strings
11649 * bcache.h (bcache, hash): Add `const' keywords to declarations.
11650 * bcache.c (bcache, hash): Add `const' keywords to definitions.
11654 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
11658 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
11659 find the complete path to a loaded DLL.
11663 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
11664 that marks the end of the range of a function, enter a line number
11665 entry that has a line number of zero and a PC offset that matches
11666 the end of the function. This starts a range of PC's for which no
11667 line number information is known.
11668 * symtab.c (find_pc_sect_line): If our best fit is in a range of
11669 PC's for which no line number info is found (line number is zero)
11670 then we didn't find any valid line information.
11671 * symtab.h: Document use of zero line number entry.
11675 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
11676 (have_ptrace_getvrregs): Define for run time checks.
11677 (gdb_vrregset_t): New type for Altivec register handling.
11678 (fetch_register, store_register): Fetch/store altivec register
11680 (fetch_altivec_register, store_altivec_register): New functions.
11681 (supply_vrregset, fill_vrregset): New functions.
11682 (fetch_altivec_registers, store_altivec_registers): New functions.
11683 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
11688 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
11692 * Makefile.in (armnbsd-nat.o): Update dependencies.
11693 * armnbsd-nat.c (supply_gregset): New function. Common code to
11694 supply the integer register set.
11695 (supply_fparegset): New function. Similar for FPA registers.
11696 (fetch_regs, fetch_fp_regs): Use them.
11697 (fetch_core_registers): Likewise.
11698 (fetch_elfcore_registers): New function.
11699 (arm_netbsd_elfcore_fns): New core-file type specification.
11700 (_initialize_arm_netbsd_nat): Register it.
11704 * armnbsd-nat.c: Include gdbcore.h.
11705 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
11706 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
11707 'void' to declaration, to shut up ARI.
11708 (fetch_core_registers): Make static. Rewrite using supply_register.
11709 (arm_netbsd_core_fns): New core-file type specification.
11710 (_initialize_arm_netbsd_nat): New function.
11714 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
11719 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
11724 * jv-exp.y (parse_number): Change type of implicit longs
11725 to builtin_type_uint64.
11729 * gdbserver/linux-low.c (mywait): Change argument to waitpid
11730 to be an integer instead of a `union wait'.
11734 * mips-linux-nat.c: Call the operating system GNU/Linux.
11735 * mips-linux-tdep.c: Likewise.
11736 * mips-tdep.c: Likewise.
11741 * jv-exp.y (parse_number): Handle 64-bit integers.
11745 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
11746 AC_STDC_HEADERS to AC_HEADER_STDC.
11747 * gdbserver/configure: Regenerated.
11751 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
11753 * sparc-tdep.c (get_longjmp_target): Likewise.
11757 * News: Add news about ARM and Multi-arch. Mention the new target
11762 * stabsread.c (error_type_complaint): Improve error message.
11766 * gdbserver/README: Update documentation.
11767 * gdbserver/configure.in: Update configury to match documentation.
11768 * gdbserver/Makefile.in: Likewise.
11769 * gdbserver/configure: Regenerated.
11770 * gdbserver/aclocal.m4: New file, generated by aclocal.
11771 * gdbserver/config.in: New file, generated by autoheader.
11775 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
11780 * arm-tdep.h (enum arm_float_model): New enum.
11781 (struct gdbarch_tdep): Add fp_model.
11782 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
11783 up floating-point conversions until we know the floating-point model
11784 in use by the inferior. Don't complain about being unable to
11785 determine the ABI of the inferior when we don't have one.
11786 (arm_extract_return_value): Support different floating-point models.
11787 (arm_store_return_value): Likewise.
11788 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
11790 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
11794 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
11795 of ``current_gdbarch''.
11799 * armnbsd-nat.c : ANSIfy all function declarations.
11800 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
11801 (fetch_inferior_registers): Re-implement in terms of above.
11802 (store_register, store_regs, store_fp_register, store_fp_regs): New.
11803 (store_inferior_registers): Re-implement in terms of above.
11807 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
11809 * arm-linux-tdep.c: Likewise.
11810 * config/arm/tm-linux.h: Likewise.
11814 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
11815 * config/arm/nbsd.mt (TM_FILE): Delete.
11816 * config/arm/tm-nbsd.h: Delete.
11820 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
11821 Initialize CALL_DUMMY_LENGTH.
11825 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
11827 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
11828 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
11829 defines one thing and that is incorrect for this port.
11830 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
11834 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
11838 * win32-nat.c (display_selector): New function. Displays information
11839 about the information returned by GetThreadSelectorEntry API function.
11840 (display_selectors): New function. Displays the infomation of
11841 the selector given as argument, or of CS, DS ans FS selectors
11842 if no argument is given.
11843 ( _initialize_inftarg): Add "w32" as info prefix command.
11844 Add "info w32 selector" as command calling display_selectors.
11848 * i386-tdep.c (get_longjmp_target): Fix compilation failure
11849 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
11854 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
11858 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
11859 (arm_fix_call_dummy): Call it.
11860 (arm_call_dummy_breakpoint_offset): Delete.
11861 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
11862 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
11866 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
11867 Default to func_frame_chain_valid.
11868 * gdbarch.h, gdbarch.c: Re-generate.
11869 * frame.h (FRAME_CHAIN_VALID): Delete definition.
11873 * ppc-linux-nat.c: Update copyright.
11874 (fetch_register, store_register): Add tid parameter, don't compute
11876 (fetch_ppc_registers, store_ppc_registers): Add tid
11877 parameter. Pass it along to callees.
11878 (fetch_inferior_registers, store_inferior_registers): Compute tid
11879 here, and pass it to calleed functions.
11880 (fill_gregset, supply_fpregset): Clean up formatting.
11884 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
11885 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
11889 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
11890 * gdbarch.c gdbarch.h: Regenerate.
11891 * breakpoint.c (create_longjmp_breakpoint): Always compile this
11893 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
11894 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
11895 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
11897 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
11898 * arm-tdep.c (arm_get_longjmp_target): New function.
11899 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
11900 this to a positive value register arm_get_longjmp_target as the
11902 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
11903 (arm_linux_init_abi): Set up longjmp description in tdep.
11904 * armnbsd-nat.c (get_longjmp_target): Delete.
11905 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
11906 description in tdep.
11907 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
11908 (get_longjmp_target): Delete declaration.
11909 (GET_LONGJMP_TARGET): Delete.
11910 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
11911 (GET_LONGJMP_TARGET): Delete.
11916 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
11917 of ``current_gdbarch''.
11921 * cli/cli-cmds.c (compare_strings): New function.
11922 (complete_command): Only print each unique item once.
11923 * completer.h (complete_line): Declare.
11924 * completer.c (complete_line): New function.
11925 (line_completion_function): Use it.
11929 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
11930 * gdbarch.h, gdbarch.c: Re-generate.
11934 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
11939 * valops.c (value_arg_coerce): Don't take the address of a reference
11940 to convert an argument to a reference.
11944 * win32-nat.c (get_image_name): New function.
11945 (handle_load_dll): Use get_image_name function.
11946 (get_child_debug_event): Avoid registering debug events until possibly
11947 execed process is started.
11948 (child_create_inferior): Allow invocation via shell so that command
11949 line redirection, etc. works ok.
11950 (_initialize_inftarg): Add new command: "set shell" to control whether
11951 a shell is used to start a process.
11955 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
11956 instead of find_register_by_number.
11957 (cannot_store_register): Likewise.
11961 * dwarf2read.c: Replace fprintf (stderr, ...) by
11962 fprintf_unfiltered (gdb_stderr, ...).
11966 * gdbserver/gdbserver.1: Document --attach.
11970 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
11972 * arm-tdep.c (arm_default_arm_le_breakpoint)
11973 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
11974 (arm_default_thumb_be_breakpoint): New. Initialize them from
11975 traditional breakpoint defines.
11976 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
11977 (arm_gdbarch_init): Initialize new breakpoint variables.
11978 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
11979 (arm_linux_init_abi): Initialize linux-specific breakpoint.
11980 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
11981 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
11983 (arm_netbsd_init_abi_common): ... here; new function.
11984 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
11985 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
11986 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
11987 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
11991 * arm-tdep.h (enum arm_abi): New enum.
11992 (struct gdbarch_tdep): New structure.
11993 (LOWEST_PC): Provide a default.
11994 (arm_gdbarch_register_os_abi): Declare new function.
11995 * arm-tdep.c (arm_abi_names): New array.
11996 (process_note_abi_tag_sections): New function.
11997 (get_elfosabi): New function.
11998 (arm_gdbarch_register_os_abi): New function.
11999 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
12000 support for that ABI has been built in, then call the appropriate
12001 configuration routine. Use gdbarch_num_regs() to get the number
12003 (arm_dump_tdep): New function.
12004 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
12005 place-holder functions.
12006 (_initialize_arm_tdep): Register them.
12007 * config/arm/tm-arm.h (LOWEST_PC): Delete.
12009 * armnbsd-tdep.c: New file.
12010 * Makefile.in (armnbsd-tdep.o): Add dependencies.
12011 * config/arm/nbsd.mt (TDEPFILES): Add it.
12012 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
12014 * armnbsd-nat.c: Include regcache.h.
12015 * Makefile.in (armnbsd-nat.o): Update dependency list.
12017 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
12021 * gdbserver/Makefile.in: Fix typos in target rules.
12025 Fix part of PR gdb/267.
12026 * linespec.c (find_methods): Handle constructors specially for now.
12030 * arm-tdep.c (arm_push_arguments): Eliminate special float type
12032 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
12033 standard_coerce_float_to_double().
12037 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
12042 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
12043 find_variant_by_name, because it confuses the multiarch
12044 framework. Return NULL if there isn't an architecture with the
12045 user supplied name, instead of forcing a different one without
12046 recording the change with the multiarch machinery.
12047 (find_variant_by_name): Delete.
12051 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
12052 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
12056 * stack.c (print_frame_info_base): When calling
12057 print_frame_info_listing_hook, set current_source_symtab.
12061 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
12062 and remove unused $(INCLUDE_DIR).
12063 Add regcache.c to OBS.
12064 Add generated register protocol files to clean target.
12065 Update dependencies for new objects, obsolete old target code.
12067 * gdbserver/linux-low.c: Remove all platform-specific code to
12068 new files. Remove various dead code. Update to use regcache
12070 * gdbserver/remote-utils.c (fromhex): Add return statement
12072 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
12074 (input_interrupt): Add integer parameter to match prototype
12075 of a signal handler.
12076 (outreg): Use register_data ().
12077 (prepare_resume_reply): Use gdbserver_expedite_regs.
12078 * gdbserver/server.c (main): Dynamically allocate own_buf because
12079 PBUFSIZ is no longer constant. Use registers_to_string () and
12080 registers_from_string ().
12081 * gdbserver/server.h: No longer include "defs.h". Add prototypes
12082 for error (), fatal (), and warning (). Update definition of
12083 PBUFSIZ to use regcache functionality. Add include guard.
12084 * gdbserver/utils.c (fatal): Add missing ``const''.
12085 (warning): New function.
12087 * regformats/regdat.sh: Include "regcache.h" in generated files.
12088 Provide init_registers () function.
12089 * regformats/regdef.h: Add prototype for set_register_cache ().
12092 * gdbserver/linux-arm-low.c: New file.
12093 * gdbserver/linux-i386-low.c: New file.
12094 * gdbserver/linux-ia64-low.c: New file.
12095 * gdbserver/linux-m68k-low.c: New file.
12096 * gdbserver/linux-mips-low.c: New file.
12097 * gdbserver/linux-ppc-low.c: New file.
12098 * gdbserver/linux-sh-low.c: New file.
12100 * gdbserver/regcache.c: New file.
12101 * gdbserver/regcache.h: New file.
12103 * gdbserver/low-linux.c: Removed obsolete file.
12107 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
12108 * config/i386/linux.mt: Likewise.
12109 * config/ia64/linux.mt: Likewise.
12110 * config/m68k/linux.mh: Likewise.
12111 * config/powerpc/linux.mh: Likewise.
12112 * config/mips/linux.mt: Likewise.
12114 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
12116 * config/i386/i386lynx.mh: Mark gdbserver variables
12117 as (currently) obsolete for this target.
12118 * config/i386/nbsd.mt: Likewise.
12119 * config/i386/nbsdelf.mt: Likewise.
12120 * config/m32r/m32r.mt: Likewise.
12121 * config/m68k/m68klynx.mh: Likewise.
12122 * config/m68k/nbsd.mt: Likewise.
12123 * config/m68k/sun3os4.mh: Likewise.
12124 * config/mips/vr5000.mt: Likewise.
12125 * config/ns32k/nbsd.mt: Likewise.
12126 * config/pa/hppabsd.mh: Likewise.
12127 * config/pa/hppaosf.mh: Likewise.
12128 * config/powerpc/nbsd.mt: Likewise.
12129 * config/rs6000/rs6000lynx.mh: Likewise.
12130 * config/s390/s390.mt: Likewise.
12131 * config/s390/s390x.mt: Likewise.
12132 * config/sparc/sparclynx.mh: Likewise.
12133 * config/sparc/sun4os4.mh: Likewise.
12134 * config/i386/x86-64linux.mt: Likewise.
12135 * config/sparc/linux.mh: Likewise.
12139 * configure.tgt: Configure gdbserver only for known working
12140 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
12141 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
12142 SUBDIRS if it is configured. Update comment for ${nativefile}.
12143 * configure: Regenerated.
12147 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
12149 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
12150 (default_gcore_mach): Just return 0, work around a problem in bfd.
12151 (default_gcore_target): OK to return NULL if exec_bfd is null.
12152 (make_mem_sec): Use a cast, avoid a warning.
12154 * procfs.c (find_memory_regions_callback): Use a cast instead of
12155 calling host_pointer_to_address (which complains if
12156 sizeof (host pointer) != sizeof (target pointer)).
12157 (procfs_make_note_section): Avoid overflow in psargs string.
12159 * procfs.c (procfs_make_note_section): Make the default
12160 implementation return an error.
12164 * procfs.c (procfs_make_note_section): Provide a default definition
12165 (for alpha-dec-osf4.0f). Fix typos.
12169 * linux-proc.c: Add include of regcache.h.
12170 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
12175 * memattr.c (create_mem_region): Disallow useless empty region.
12176 Regions are half-open intervals, so allow [A..B) [B..C) as
12181 * defs.h: Kill CONST_PTR.
12182 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
12183 * c-lang.c (c_builtin_types): Likewise.
12184 * ch-lang.c (ch_builtin_types): Likewise.
12185 * f-lang.c (f_builtin_types): Likewise.
12186 * language.c (unknown_builtin_types): Likewise.
12187 * m2-lang.c (m2_builtin_types): Likewise.
12188 * p-lang.c (pascal_builtin_types): Likewise.
12189 * scm-lang.c (c_builtin_types): Likewise.
12193 * arm-tdep.h (arm_get_next_pc): Add declaration.
12197 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
12198 with other related struct-returning functions.
12199 (arm_extract_struct_value_address): New function.
12200 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
12201 initialize float_format, double_format and long_double_format as
12202 appropriate to the endianness of the target.
12203 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
12204 (arm_use_struct_convention): Delete declaration.
12205 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
12209 * defs.h (core_addr_to_string_nz): New function.
12213 Apply missing bits of 2002-01-15 patch.
12214 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
12215 (fill_fpregset): Use i387_fill_fsave.
12219 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
12220 (core_addr_to_string_nz): New function.
12224 * arm-linux-nat.c: Really include arm-tdep.h.
12225 * config/arm/tm-linux.h (struct type, struct value): Declare.
12229 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
12230 (gcore section): Ifdef for Solaris and Unixware only.
12231 (procfs_do_thread_registers): Unixware needs one lwpstatus
12232 per thread (not one prstatus or pstatus).
12233 (procfs_make_note_section): Iterate only over kernel threads (lwps),
12234 not over all gdb threads. For unixware, call elfcore_write_pstatus
12235 once before iterating over threads.
12239 * arm-tdep.h: New file.
12240 * arm-tdep.c: Include arm-tdep.h.
12241 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
12242 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
12243 (arm_print_float_info, arm_register_type, convert_to_extended)
12244 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
12245 (arm_extract_return_value, arm_register_name): Make static.
12246 (arm_software_single_step): Similarly. Fix types in declaration.
12247 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
12248 (arm_store_return_value, arm_store_struct_return): New functions.
12249 (arm_gdbarch_init): Register the above functions. Also register
12250 call_dummy_start_offset, sizeof_call_dummy_words,
12251 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
12252 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
12253 max_register_virtual_size, register_size. Set up
12254 prologue_cache.saved_regs here, rather than ...
12255 (_initialize_arm_tdep): ... here.
12256 * config/arm/tm-arm.h (struct type, struct value): Delete forward
12258 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
12259 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
12260 (arm_print_float_info, arm_register_type, convert_to_extended)
12261 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
12262 (arm_extract_return_value, arm_register_name): Delete declarations.
12263 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
12264 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
12265 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
12266 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
12267 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
12268 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
12269 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
12270 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
12271 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
12272 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
12273 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
12274 (arm_get_next_pc): No-longer static -- these are needed by the RDI
12276 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
12277 * remote-rdi.c remote-rdp.c: Likewise.
12278 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
12279 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
12280 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
12283 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
12284 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
12285 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
12286 from non-ARM_ prefixed definitions.
12287 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
12289 * remote-rdi.c remote-rdp.c: Likewise.
12290 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
12294 * arm-tdep.c (arm_frameless_function_invocation)
12295 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
12296 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
12297 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
12298 (arm_pop_frame, arm_get_next_pc): Make static.
12299 (arm_gdbarch_init): Register above in gdbarch structure.
12300 (arm_read_fp): Renamed from arm_target_read_fp.
12301 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
12302 * config/arm/tm-arm.h (arm_frameless_function_invocation)
12303 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
12304 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
12305 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
12306 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
12307 (arm_pc_is_thumb_dummy): Delete declarations.
12308 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
12309 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
12310 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
12311 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
12315 * symtab.c (compare_search_syms): New function.
12316 (sort_search_symbols): New function.
12317 (search_symbols): Sort symbols after searching rather than
12322 * NEWS: Linux -> GNU/Linux.
12326 * gdbarch.sh: For for level one methods, disallow a definition
12327 when partially multi-arched. Add comments explaining rationale.
12328 * gdbarch.h: Re-generate.
12332 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
12333 multi-arch partial.
12337 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
12338 field. Use diff -u.
12339 * gdbarch.c: Re-generate.
12343 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
12344 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
12349 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
12350 multi-arch partial.
12351 (PUSH_ARGUMENTS): Switch to using predefault.
12352 * gdbarch.c: Regenerate.
12356 * valops.c (PUSH_ARGUMENTS): Delete definition.
12357 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
12358 partial. Default to default_push_arguments.
12359 * gdbarch.h, gdbarch.c: Regenerate.
12363 * defs.h (throw_exception): Rename return_to_top_level. Update
12365 * utils.c (error_stream, internal_verror, quit): Ditto.
12366 * top.c (throw_exception, catcher): Ditto.
12367 * sparclet-rom.c (sparclet_load): Ditto.
12368 * remote.c (interrupt_query, minitelnet): Ditto.
12369 * remote-sds.c (interrupt_query): Ditto.
12370 * remote-mips.c (mips_error, mips_kill): Ditto.
12371 * ocd.c (interrupt_query): Ditto.
12372 * monitor.c (monitor_interrupt_query): Ditto.
12373 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
12374 * target.h: Update comment.
12376 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
12380 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
12381 default_double_format.
12382 * gdbarch.h, gdbarch.c: Re-generate.
12383 * findvar.c (floatformat_unknown): Delete variable definition.
12384 * doublest.h (floatformat_unknown): Delete variable declaration.
12388 * stabsread.c (read_type): Add code to parse Sun's syntax for
12389 prototyped function types.
12393 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
12394 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
12398 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
12399 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
12400 now _initialize_xcoffsolib gets called again and overrides the
12401 commands from solib.c in a native configuration.
12405 * doublest.c (store_typed_floating): Don't try to return a value.
12410 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
12411 is prototyped and has no arguments, print its argument list as
12416 * MAINTAINERS (write-after-approval): Add myself.
12417 (paper-trail): I've escaped!
12421 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
12423 (_initialize_check_for_gdb_ini): Ditto.
12427 * win32-nat.c (cygwin_pid_to_str): Fix typo.
12428 xaprintf -> xasprintf.
12432 * win32-nat.c: Remove use of printf and sprintf functions.
12436 * arm-tdep.c (arm_frame_chain_valid): Make static.
12437 (arm_push_arguments): Likewise.
12438 (arm_gdbarch_init): New function.
12439 (_initialize_arm_tdep): Call it.
12440 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
12441 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
12442 (FRAME_CHAIN_VALID): Delete.
12443 (arm_frame_chain_valid): Delete declaration.
12444 (PUSH_ARGUMENTS): Delete.
12445 (arm_push_arguments): Delete declaration.
12446 (CALL_DUMMY_P): Delete.
12451 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
12452 on builtin float types.
12456 * utils.c: Include <curses.h> before "bfd.h".
12457 * tui/tui-hooks.c: Likewise.
12458 * tui/tui.c: Likewise.
12459 * tui/tuiCommand.c: Likewise.
12460 * tui/tuiData.c: Likewise.
12461 * tui/tuiDataWin.c: Likewise.
12462 * tui/tuiDisassem.c: Likewise.
12463 * tui/tuiGeneralWin.c: Likewise.
12464 * tui/tuiIO.c: Likewise.
12465 * tui/tuiLayout.c: Likewise.
12466 * tui/tuiRegs.c: Likewise.
12467 * tui/tuiSource.c: Likewise.
12468 * tui/tuiSourceWin.c: Likewise.
12469 * tui/tuiStack.c: Likewise.
12470 * tui/tuiWin.c: Likewise.
12474 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
12475 to include space for pseudoregs as well. Update loops accordingly.
12476 (sh_fp_frame_init_saved_regs): Ditto.
12477 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
12481 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
12482 Add Richard Earnshaw to Arm maintainers.
12486 * defs.h (warning_begin): Delete declaration.
12488 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
12493 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
12494 Logic bug, remove misplaced else.
12498 * fork-inferior.c (fork_inferior): Add '!' to the list of
12499 characters that need to be quoted when building a string for the
12500 shell. Quote '!' specifically with a backslash, since CSH chokes
12501 when trying to evaluate "str!str".
12505 * rdi-share/host.h: Only provide a typedef for bool if it is not
12510 * breakpoint.h (enum bptype): Add new overlay event bp type.
12511 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
12513 * breakpoint.c (create_internal_breakpoint): New function.
12514 (internal_breakpoint_number): Moved into create_internal_breakpoint.
12515 (create_longjmp_breakpoint): Use create_internal_breakpoint.
12516 (create_thread_event_breakpoint): Ditto.
12517 (create_solib_event_breakpoint): Ditto.
12518 (create_overlay_event_breakpoint): New function.
12519 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
12520 (update_breakpoints_after_exec): Delete and re-initialize
12521 overlay event breakpoints after an exec. Add FIXME comment
12522 about longjmp breakpoint.
12523 (print_it_typical): Ignore overlay event breakpoints.
12524 (print_one_breakpoint): Ditto.
12526 (bpstat_what): Do not stop for overlay event breakpoints.
12527 (delete_breakpoint): Don't delete overlay event breakpoints.
12528 (breakpoint_re_set_one): Delete the overlay event breakpoint.
12529 (breakpoint_re_set): Re-create overlay event breakpoint.
12531 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
12532 (overlay_manual_command): Disable overlay breakpoints.
12533 (overlay_off_command): Disable overlay breakpoints.
12537 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
12538 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
12539 to here from config/tm-arm.h.
12540 (coff_sym_is_thumb): Make static.
12541 (arm_elf_make_msymbol_special): New function.
12542 (arm_coff_make_msymbol_special): New function.
12543 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
12544 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
12545 (coff_sym_is_thumb): Delete declaration.
12546 (arm_elf_make_msymbol_special): Declare.
12547 (arm_coff_make_msymbol_special): Declare.
12548 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
12549 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
12553 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
12557 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
12558 * gdbarch.c gdbarch.h: Regenerate.
12559 * arch-utils.c (default_print_float_info): New function.
12560 * arch-utils.h (default_print_float_info): Prototype it.
12561 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
12562 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
12563 (PRINT_FLOAT_INFO): Document it.
12565 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
12566 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
12567 (PRINT_FLOAT_INFO): Define.
12571 * win32-nat.c (_initialize_check_for_gdb_ini):
12572 Add typecast to sprintf argument to suppress a warning.
12576 * win32-nat.c (last_sig): Changed type of variable to target_signal,
12577 to allow easier handling of pass state.
12578 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
12579 that gives exception name and address.
12580 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
12581 and set last_sig value to ourstatus->value.sig. Some missing
12583 (child_continue): Correctly report continue_status.
12584 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
12585 TARGET_SIGNAL_0 (new default value).
12586 (child_resume): consider sig argument passed to decide if
12587 the exception should be passed to debuggee or not.
12591 * regcache.c (fetch_register): Call target_fetch_register
12592 only if we don't call FETCH_PSEUDO_REGISTER.
12593 (store_register): Call target_store_register only if we
12594 don't call STORE_PSEUDO_REGISTER.
12598 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
12599 ELF_MAKE_MSYMBOL_SPECIAL.
12600 * gdbarch.c, gdbarch.h: Regenerate.
12601 * arch-utils.c (default_make_msymbol_special): New function.
12602 * arch-utils.h (default_make_msymbol_special): Export.
12603 * elfread.c (elf_symtab_read): Compile use of
12604 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
12606 * coffread.c (coff_symtab_read): Ditto, for
12607 COFF_MAKE_MSYMBOL_SPECIAL.
12611 * solib-svr4.c (svr4_truncate_ptr): New function.
12612 (svr4_relocate_section_addresses): Do the address arithmetic with
12613 the appropriate truncation for target addresses, even when
12614 CORE_ADDR is larger than a target address.
12618 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
12623 * gdbserver/linux-low.c (kill_inferior): Remove commented out
12628 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
12632 * gdbserver/linux-low.c: Remove unused include files.
12636 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
12637 (read_inferior_memory): Use it.
12638 (write_inferior_memory): Likewise.
12642 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
12643 grubbing through sys_errlist.
12647 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
12650 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
12654 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
12655 (do_sfunc, set_cmd_sfunc): New functions.
12657 * command.h (struct cmd_list_element): Add field func.
12658 * cli/cli-decode.h (struct cmd_list_element): Ditto.
12659 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
12660 * cli/cli-decode.h: Ditto.
12662 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
12663 (help_all, help_cmd_list): Ditto.
12664 (find_cmd, complete_on_cmdlist): Ditto.
12665 * top.c (execute_command): Ditto.
12667 * cli/cli-setshow.c (do_setshow_command): Call func instead of
12670 * infcmd.c (notice_args_read): Fix function signature.
12672 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
12673 * cli/cli-decode.c (add_set_cmd): Ditto.
12674 * utils.c (initialize_utils): Ditto.
12675 * maint.c (_initialize_maint_cmds): Ditto.
12676 * infrun.c (_initialize_infrun): Ditto.
12677 * demangle.c (_initialize_demangler): Ditto.
12678 * remote.c (add_packet_config_cmd): Ditto.
12679 * mips-tdep.c (_initialize_mips_tdep): Ditto.
12680 * cris-tdep.c (_initialize_cris_tdep): Ditto.
12681 * proc-api.c (_initialize_proc_api): Ditto.
12682 * kod.c (_initialize_kod): Ditto.
12683 * valprint.c (_initialize_valprint): Ditto.
12684 * top.c (init_main): Ditto.
12685 * infcmd.c (_initialize_infcmd): Ditto.
12686 * corefile.c (_initialize_core): Ditto.
12687 * arm-tdep.c (_initialize_arm_tdep): Ditto.
12688 * arch-utils.c (initialize_current_architecture): Ditto.
12689 (_initialize_gdbarch_utils): Ditto.
12690 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
12692 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
12693 * wince.c (_initialize_inftarg): Ditto.
12694 * symfile.c (_initialize_symfile): Ditto.
12695 * mips-tdep.c (_initialize_mips_tdep): Ditto.
12696 * language.c (_initialize_language): Ditto.
12697 * arc-tdep.c (_initialize_arc_tdep): Ditto.
12701 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
12705 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
12706 Add rules for building the register data files.
12710 * regformats/regdat.sh: Add braces to the definition of
12711 expedite_regs_${arch}.
12715 * regformats/regdef.h (struct reg): Add comment describing the
12716 requirements for offset and size fields.
12720 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
12721 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
12725 * gdbarch.sh (copyright): Update years in generated header.
12726 (SMASH_TEXT_ADDRESS): Add rule.
12727 * gdbarch.h, gdbarch.c: Re-generate.
12728 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
12729 * dbxread.c: Likewise.
12730 * dwarfread.c: Likewise.
12731 * elfread.c: Likewise.
12732 * somread.c: Likewise.
12734 * arm-tdep.c (arm_smash_text_address): New function.
12735 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
12739 Add support for hardware watchpoints on win32 native.
12740 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
12741 CONTEXT_DEBUG_REGISTERS.
12742 (dr variable): New variable. Static array containing a local copy
12743 of debug registers.
12744 (debug_registers_changed): New variable. Reflects when debug registers
12745 are changed and need to be written to inferior.
12746 (debug_registers_used): New variable. Reflects when any debug register
12747 was set, used when new threads are created.
12748 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
12750 (thread_rec): Set dr array if id is the thread of current_event .
12751 (child_continue, child_resume): Change the debug registers for all
12752 threads if debug_registers_changed.
12753 (child_add_thread): Change the debug registers if debug_registers_used.
12754 * config/i386/cygwin.mh: Add use of i386-nat.o file.
12755 Link nm.h to new nm-cygwin.h file.
12756 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
12757 of hardware registers.
12761 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
12762 Restore behavour broken by 2002-01-20 Andrew Cagney
12767 * c-valprint.c (c_val_print): Pass a proper valaddr to
12768 cp_print_class_method.
12769 * valops.c (search_struct_method): If there is only one method
12770 and args is NULL, return that method.
12774 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
12775 accessing tag_name directly.
12779 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
12780 of accessing tag_name directly.
12785 * gdbtypes.c (replace_type): New function.
12786 * gdbtypes.h (replace_type): Add prototype.
12787 * stabsread.c (read_type): Use replace_type.
12791 * Makefile.in (memattr.o): Add missing dependencies rule.
12795 * breakpoint.c (break_at_finish_command): Really export.
12796 (break_at_finish_at_depth_command): Ditto.
12797 (tbreak_at_finish_command): Ditto.
12798 * hppa-tdep.c: Include completer.h.
12799 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
12800 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
12804 * utils.c (do_write): New function.
12805 (error_stream): Rewrite combining the code from error_begin and
12807 (verror): Rewrite using error_stream.
12808 (error_begin): Delete function.
12812 * utils.c (error_begin): Make static.
12813 * defs.h (error_begin): Delete declaration.
12815 * linespec.c (cplusplus_error): Replace cplusplus_hint.
12816 (decode_line_1): Use cplusplus_error instead of error_begin,
12817 cplusplus_hint and return_to_top_level.
12818 * coffread.c (coff_symfile_read): Use error instead of error_begin
12819 and return_to_top_level.
12820 * infrun.c (default_skip_permanent_breakpoint): Ditto.
12824 * language.h (type_error, range_error): Make string parameter
12826 * language.c (warning_pre_print): Delete extern declaration.
12827 * dwarfread.c (warning_pre_print): Ditto.
12828 * language.c (type_error, range_error): Rewrite to use verror and
12829 vwarning instead of warning_begin.
12833 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
12834 (set_ignore_count): Move misplaced comment back where it belongs.
12838 * command.h (NO_FUNCTION): Delete macro.
12839 * cli/cli-decode.h (NO_FUNCTION): Ditto.
12840 * top.c (execute_command): Replace NO_FUNCTION with NULL.
12841 * tracepoint.c (_initialize_tracepoint): Ditto.
12842 * cli/cli-decode.c (add_set_cmd): Ditto.
12843 * cli/cli-cmds.c (init_cli_cmds): Ditto.
12847 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
12848 Update ``this'' pointer when calling virtual functions.
12852 * breakpoint.c (create_temp_exception_breakpoint): Delete.
12853 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
12857 * regformats/reg-arm.dat: New file.
12858 * regformats/reg-i386.dat: New file.
12859 * regformats/reg-ia64.dat: New file.
12860 * regformats/reg-m68k.dat: New file.
12861 * regformats/reg-mips.dat: New file.
12862 * regformats/reg-ppc.dat: New file.
12863 * regformats/reg-sh.dat: New file.
12864 * regformats/regdef.h: New file.
12865 * regformats/regdat.sh: New file.
12869 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
12870 (arm_frame_args_address, arm_frame_locals_address): New functions.
12871 (arm_frame_num_args): New function.
12872 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
12873 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
12874 (FRMA_NUM_ARGS): Call arm_frame_num_args.
12878 * breakpoint.c (break_at_finish_command): Export.
12879 (break_at_finish_at_depth_command): Export.
12880 (tbreak_at_finish_command): Export.
12881 (_initialize_breakpoint): Delete "xbreak" and "txbreak" commands.
12882 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
12883 "txbreak" commands, which are HPPA specific.
12885 * printcmd.c (disassemble_command): Remove an ancient
12886 artifact of an old merge.
12888 * symfile.h (enum overlay_debugging_state):
12889 Define enum constant values for overlay mode.
12890 * symfile.c (overlay_debugging): Use enums instead of literals.
12891 (overlay_is_mapped, overlay_auto_command,
12892 overlay_manual_command): Ditto.
12894 * breakpoint.c (insert_breakpoints, remove_breakpoint,
12895 breakpoint_here_p, breakpoint_inserted_here_p,
12896 breakpoint_thread_match, bpstat_stop_status,
12897 describe_other_breakpoints, check_duplicates, clear_command):
12898 Coding standard fixes.
12900 * target.c (target_xfer_memory): Add spaces, coding standard.
12901 (do_xfer_memory): Add missing line to trust-readonly
12902 code: check bfd SEC_READONLY flag for section.
12906 * PROBLEMS: Fix typo, 5.1->5.1.1.
12910 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
12911 data symbols, since we search based on textlow and texthigh.
12912 (find_pc_sect_symtab): Likewise.
12916 * defs.h (vwarning): Declare.
12917 * utils.c (vwarning): New function.
12918 (warning): Call vwarning.
12919 (warning_begin): Delete function.
12921 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
12922 the warning message.
12923 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
12928 * NEWS: Mention "set trust-readonly-sections" command.
12929 Mention generate-core-file command.
12933 * target.c: New command, "set trust-readonly-sections on".
12934 (do_xfer_memory): Honor the suggestion to trust readonly sections
12935 by reading them from the object file instead of from the target.
12936 (initialize_targets): Register command "set trust-readonly-sections".
12940 * parse.c (target_map_name_to_register): Simplify, search regs and
12941 pseudo-regs using a single loop.
12945 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
12949 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
12950 * config/i386/i386v42mp.mh: Add i387-nat.o .
12951 * i386v4-nat.c: Include i387-nat.h.
12952 (supply_fpregset): Use i387_supply_fsave.
12953 (fill_fpregset): Use i387_fill_fsave.
12957 * arm-tdep.c (arm_call_dummy_words): Define.
12958 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
12959 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
12960 (CALL_DUMMY_WORDS): Define.
12961 (arm_call_dummy_words): Declare.
12962 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
12963 (arm_linux_call_dummy_words): Declare.
12967 * m68klinux-nat.c: Fix last change to use regcache_collect
12968 instead of referencing registers[] directly.
12972 * parse.c (target_map_name_to_register): Delete code wrapped in
12973 #ifdef REGISTER_NAME_ALIAS_HOOK.
12977 * regcache.c (legacy_read_register_gen): Need to be able to
12978 read pseudo-register as well as real register.
12979 (legacy_write_register_gen): Ditto.
12983 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
12984 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
12985 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
12986 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
12987 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
12988 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
12989 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
12990 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
12991 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
12992 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
12993 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
12994 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
12995 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
12996 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
12997 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
12998 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
12999 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
13000 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
13001 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
13002 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
13006 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
13007 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
13008 (initialize_current_architecture): Update target_byte_order using
13009 information from BFD.
13010 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
13011 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
13015 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
13016 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
13018 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
13019 #ifdef INVALID_FLOAT.
13020 * infcmd.c (do_registers_info): Ditto.
13021 * values.c (unpack_double): Ditto. Add comment.
13023 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
13024 already commented out.
13028 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
13029 * m68klinux-nat.c: Update ptrace interface for fetching/storing
13030 registers and add support for PTRACE_GETREGS.
13034 GDB 5.1.1 released from 5.1 branch.
13035 * NEWS: Add 5.1.1 news.
13036 * README: Sync with 5.1 branch.
13040 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
13041 stabstring on initial malloc. Reallocing will copy it for us,
13046 * Makefile.in (hpread_h): Delete.
13047 (HFILES_NO_SRCDIR): Remove hpread.h.
13048 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
13049 (hpread.o): Update dependencies.
13050 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
13052 * hp-psymtab-read.c: Remove file.
13053 * hp-symtab-read.c: Remove file.
13054 * hpread.h: Remove file.
13056 * hpread.c: Merge all contents of hp-psymtab-read.c,
13057 hp-symtab-read.c and hpread.h into this file, as it was prior to
13060 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
13061 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
13062 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
13063 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
13067 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
13068 fill_gregset): Call gdbarch_tdep() just once, assign result to
13069 variable and use that, instead of calling the function several
13074 * configure.host: Accept sparcv9 as alias for sparc64.
13075 * configure.tgt: Likewise.
13079 * solib-aix5.c (build_so_list_from_mapfile)
13080 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
13081 arguments is not reversed.
13082 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
13083 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
13087 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
13088 modified version of obsolete sh_fetch_pseudo_register.
13089 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
13090 (sh4_register_read): New function.
13091 (sh_pseudo_register_write): New function. Renamed and modified
13092 version of obsolete sh_store_pseudo_register.
13093 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
13094 (sh4_register_write): New function.
13095 (sh_gdbarch_init): Remove setting of gdbarch function
13096 fetch_pseudo_register and store_pseudo_register. Remove setting of
13097 register_convert_to_raw, register_convert_to_virtual,
13098 register_convertible.
13099 (sh_sh4_register_convertible): Delete. No longer needed. All is
13100 taken care by architecture specific functions
13101 register_read/register_write.
13102 (sh_sh4_register_convert_to_virtual): Make static.
13103 (sh_sh4_register_convert_to_raw): Ditto.
13107 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
13108 (floatformat_is_nan, floatformat_mantissa): Ditto.
13110 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
13111 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
13112 builtin_type_ieee_double_little,
13113 builtin_type_ieee_double_littlebyte_bigword,
13114 builtin_type_m68881_ext, builtin_type_i960_ext,
13115 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
13116 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
13117 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
13118 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
13122 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
13123 parameter. Set frameless flag if it exists and depended of
13124 whether the scanned function is frameless or not.
13125 (xstormy16_skip_prologue): If function is frameless, return
13126 result of xstormy16_scan_prologue().
13127 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
13132 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
13133 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
13134 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
13135 sh_sh4_register_byte, sh_sh4_register_raw_size,
13136 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
13137 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
13138 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
13139 sh_store_pseudo_register, sh_do_pseudo_register): Call
13140 gdbarch_tdep() just once, assign result to variable and use that,
13141 instead of calling the function several times.
13145 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
13146 macros instead of LAST_FPU_CTRL_REGNUM.
13147 (store_register): Likewise.
13151 * infcmd.c (run_command): Check that the `exec' target layer's BFD
13152 is up-to-date before running the program, not just when a program
13157 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
13158 when we have found all instructions we are looking for.
13162 * arm-tdep.c (arm_register_name): New function.
13163 (arm_registers_names): Make static.
13164 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
13165 (arm_register_name): Declare.
13166 (REGISTER_NAME): Use it.
13171 Convert arm targets to new FRAME interface.
13172 * arm-tdep.c (struct frame_extra_info): Remove fsr.
13173 (arm_frame_find_save_regs): Delete.
13174 (arm_frame_init_saved_regs): New.
13175 (arm_init_extra_frame_info): Alloacte saved_regs as required.
13176 Allocate extra_info as required. Convert all uses of fsr.regs
13177 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
13179 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
13180 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
13181 (check_prologue_cache, save_prologue_cache): Likewise.
13182 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
13183 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
13184 (FRAME_FIND_SAVED_REGS): Delete.
13185 (arm_frame_find_saved_regs): Delete prototype.
13186 (arm_frame_init_saved_regs): New prototype.
13187 (FRAME_INIT_SAVED_REGS): Define.
13191 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
13196 * infttrace.c: Include <sys/pstat.h>.
13197 (child_pid_to_exec_file): Revamp. Use pstat call to get the
13198 exec file if the ttrace equivalent fails.
13202 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
13203 (closeLogFile): Ditto.
13207 * top.c (print_gdb_version): Bump copyright year to 2002.
13211 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
13212 Zannoni and Eli Zaretskii.
13216 * buildsym.c: Update copyright years.
13217 * c-typeprint.c: Likewise.
13218 * dwarf2read.c: Likewise.
13219 * f-typeprint.c: Likewise.
13220 * gdbtypes.c: Likewise.
13221 * gdbtypes.h: Likewise.
13222 * hp-symtab-read.c: Likewise.
13223 * hpread.c: Likewise.
13224 * mdebugread.c: Likewise.
13225 * p-typeprint.c: Likewise.
13229 * remote-sim.c (gdbsim_open): Simplify code testing the macro
13230 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
13231 byte-order selectable.
13232 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
13233 * arch-utils.c: Ditto.
13234 (set_endian): Ditto.
13235 (set_endian_from_file): Ditto.
13236 * gdbserver/low-sim.c (create_inferior): Ditto.
13237 * gdbarch.sh: Ditto.
13238 * gdbarch.h: Re-generate.
13239 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
13240 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
13241 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
13242 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
13243 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
13244 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
13245 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
13246 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
13248 * config/mips/tm-wince.h: Remove #undef of macro
13249 TARGET_BYTE_ORDER_SELECTABLE.
13250 * config/sh/tm-wince.h: Ditto.
13254 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
13255 member function fields. Add accessor macro
13256 TYPE_FN_FIELD_ARTIFICIAL.
13257 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
13258 * c-typeprint.c (c_type_print_base): Skip artificial member
13263 * f-typeprint.c: Delete unused function f_type_print_args.
13264 * p-typeprint.c: Delete unused function pascal_type_print_args.
13268 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
13269 comment. Add ``artificial'' to ``union field_location''.
13271 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
13273 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
13274 * mdebugread.c (parse_symbol): Likewise.
13275 * stabsread.c (define_symbol): Likewise.
13276 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
13277 initializing TYPE_FIELD_BITPOS to n (obsolete).
13278 (hpread_doc_function_type): Likewise.
13279 * hpread.c (hpread_function_type): Likewise.
13283 * configure.in (host_makefile_frag): Only require a host makefile
13284 fragment when a native build.
13285 * configure: Re-generate.
13289 * doublest.h (floatformat_from_type): Declare.
13290 * doublest.c (floatformat_from_type): New function.
13291 (convert_typed_floating): Use.
13293 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
13294 call to function floatformat_from_type.
13296 * gdbarch.sh (IEEE_FLOAT): Delete.
13297 * gdbarch.h, gdbarch.c: Re-generate.
13298 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
13299 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
13300 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
13301 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
13302 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
13303 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
13304 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
13305 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
13306 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
13307 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
13308 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
13309 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
13311 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
13312 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
13313 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
13314 * sh-tdep.c (sh_gdbarch_init): Ditto.
13315 * mips-tdep.c (mips_gdbarch_init): Ditto.
13316 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
13317 * cris-tdep.c (cris_gdbarch_init): Ditto.
13321 * configure.host, configure.tgt: Support x86-64.
13322 * NEWS: Note new target x86-64.
13324 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
13325 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
13326 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
13327 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
13328 x86-64-linux-nat.o): Fix dependencies.
13332 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
13333 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
13334 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
13335 * config/sparc/xm-sun4os4.h: Delete file.
13336 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
13340 * config/sparc/sparclynx.mh (XM_FILE): Delete.
13341 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
13342 * config/m68k/m68klynx.mh (XM_FILE): Delete.
13343 * config/i386/i386lynx.mh (XM_FILE): Delete.
13344 * config/rs6000/xm-rs6000ly.h: Delete file.
13345 * config/sparc/xm-sparclynx.h: Delete file.
13346 * config/m68k/xm-m68klynx.h: Delete file.
13347 * config/i386/xm-i386lynx.h: Delete file.
13348 * config/xm-lynx.h: Delete file.
13349 * config/djgpp/fnchange.lst: Update.
13353 * alpha-tdep.c (alpha_register_byte): New function.
13354 (alpha_register_raw_size): Ditto.
13355 (alpha_register_virtual_size): Ditto.
13356 (alpha_skip_prologue_internal): Renamed from
13357 alpha_skip_prologue.
13358 (alpha_skip_prologue): New version that calls
13359 alpha_skip_prologue_internal.
13360 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
13361 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
13362 second argument from alpha_skip_prologue.
13363 (REGISTER_BYTE): Use alpha_register_byte.
13364 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
13365 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
13366 (FRAMELESS_FUNCTION_INVOCATION): Use
13367 generic_frameless_function_invocation_not.
13368 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
13369 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
13373 * config/mips/xm-news-mips.h: Delete file.
13374 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
13376 * config/m88k/xm-m88k.h: Delete file.
13377 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
13378 * config/m88k/xm-delta88v4.h: Ditto.
13379 * config/m88k/xm-delta88.h: Ditto.
13381 * config/alpha/xm-fbsd.h: Delete file.
13382 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
13384 * config/sparc/xm-sparc.h: Delete file.
13385 * Makefile.in (xm-sun4os4.h): Delete dependency.
13386 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
13387 * config/sparc/xm-sun4os4.h: Ditto.
13388 * config/sparc/xm-linux.h: Ditto.
13390 * config/i386/xm-windows.h: Delete file.
13394 * utils.c: Include <sys/param.h> for MAXPATHLEN.
13395 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
13399 * alpha-tdep.c (alpha_call_dummy_words): New.
13400 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
13401 (CALL_DUMMY_P): Define.
13402 (CALL_DUMMY_WORDS): Define.
13403 (SIZEOF_CALL_DUMMY_WORDS): Define.
13407 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
13408 isn't NULL, which can happen with some gcj-3.x-produced code.
13412 * alpha-tdep.c (alpha_register_virtual_type): New function.
13413 (alpha_init_frame_pc_first): Ditto.
13414 (alpha_fix_call_dummy): Ditto.
13415 (alpha_store_struct_return): Ditto.
13416 (alpha_extract_struct_value_address): Ditto.
13417 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
13418 alpha_register_virtual_type.
13419 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
13420 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
13421 alpha_extract_struct_value_address.
13422 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
13423 (INIT_FRAME_PC): Use init_frame_pc_noop.
13424 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
13428 * i386gnu-nat.c: Include "i386-tdep.h".
13429 (fetch_fpregs): Simplify code dealing with uninitialized floating
13430 point states such that it doesn't require FP7_REGNUM.
13434 * alpha-tdep.c (frame_extra_info): New.
13435 (alpha_find_saved_regs): Make static. Use
13437 (alpha_frame_init_saved_regs): New function.
13438 (alpha_frame_saved_pc): Use frame->extra_info.
13439 (temp_saved_regs): Don't declare as struct frame_saved_regs.
13440 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
13441 (init_extra_frame_info): Rename to...
13442 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
13443 (alpha_print_extra_frame_info): New function.
13444 (alpha_frame_locals_address): Ditto.
13445 (alpha_frame_args_address): Ditto.
13446 (alpha_pop_frame): Use frame->extra_info.
13447 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
13448 alpha_frame_args_address.
13449 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
13450 (alpha_find_saved_regs): Remove prototype.
13451 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
13452 (EXTRA_FRAME_INFO): Remove.
13453 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
13454 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
13458 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
13459 (alpha_cannot_fetch_register): Ditto.
13460 (alpha_cannot_store_register): Ditto.
13461 (alpha_register_convertible): Ditto.
13462 (alpha_use_struct_convention): Ditto.
13463 * config/alpha/tm-alpha.h: Update copyright years.
13464 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
13465 (INNER_THAN): Use core_addr_lessthan.
13466 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
13467 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
13468 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
13469 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
13470 (FRAME_CHAIN): Remove unnecessary cast.
13474 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
13479 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
13480 * monitor.c, remote-array.c, remote-bug.c: Ditto.
13481 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
13482 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
13483 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
13484 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
13485 * x86-64-linux-nat.c: Ditto.
13489 * alpha-tdep.c (alpha_register_name): New function.
13490 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
13491 (REGISTER_NAME): Define.
13495 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
13499 * alpha-tdep.c: Update copyright years.
13500 (alpha_next_pc): New function.
13501 (alpha_software_single_step): Ditto.
13502 * config/alpha/tm-alpha.h: Add prototype for
13503 alpha_software_single_step.
13507 * alphabsd-nat.c: Update copyright years.
13508 (fill_gregset): Use regcache_collect.
13509 (fill_fpregset): Likewise.
13510 (fetch_inferior_registers): Only fetch integer registers
13511 if requested to do so.
13512 (store_inferior_registers): Only store integer registers
13513 if requested to do so.
13517 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
13518 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
13519 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
13520 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
13521 * config/alpha/fbsd.mh (XDEPFILES): Delete.
13522 * config/arm/linux.mh (XDEPFILES): Delete.
13523 * config/arm/nbsd.mh (XDEPFILES): Delete.
13524 * config/i386/i386dgux.mh (XDEPFILES): Delete.
13525 * config/i386/i386sol2.mh (XDEPFILES): Delete.
13526 * config/i386/i386m3.mh (XDEPFILES): Delete.
13527 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
13528 * config/i386/i386gnu.mh (XDEPFILES): Delete.
13529 * config/i386/fbsd.mh (XDEPFILES): Delete.
13530 * config/i386/i386bsd.mh (XDEPFILES): Delete.
13531 * config/i386/i386sco5.mh (XDEPFILES): Delete.
13532 * config/i386/i386v4.mh (XDEPFILES): Delete.
13533 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
13534 * config/i386/i386sco4.mh (XDEPFILES): Delete.
13535 * config/i386/i386aix.mh (XDEPFILES): Delete.
13536 * config/i386/go32.mh (XDEPFILES): Delete.
13537 * config/i386/cygwin.mh (XDEPFILES): Delete.
13538 * config/i386/i386lynx.mh (XDEPFILES): Delete.
13539 * config/i386/i386mach.mh (XDEPFILES): Delete.
13540 * config/i386/i386v32.mh (XDEPFILES): Delete.
13541 * config/i386/linux.mh (XDEPFILES): Delete.
13542 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
13543 * config/i386/ncr3000.mh (XDEPFILES): Delete.
13544 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
13545 * config/i386/i386sco.mh (XDEPFILES): Delete.
13546 * config/i386/i386v.mh (XDEPFILES): Delete.
13547 * config/i386/nbsd.mh (XDEPFILES): Delete.
13548 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
13549 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
13550 * config/i386/symmetry.mh (XDEPFILES): Delete.
13551 * config/i386/obsd.mh (XDEPFILES): Delete.
13552 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
13553 * config/ia64/linux.mh (XDEPFILES): Delete.
13554 * config/ia64/aix.mh (XDEPFILES): Delete.
13555 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
13556 * config/m68k/dpx2.mh (XDEPFILES): Delete.
13557 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
13558 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
13559 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
13560 * config/m68k/linux.mh (XDEPFILES): Delete.
13561 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
13562 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
13563 * config/m68k/nbsd.mh (XDEPFILES): Delete.
13564 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
13565 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
13566 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
13567 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
13568 * config/m88k/delta88.mh (XDEPFILES): Delete.
13569 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
13570 * config/m88k/m88k.mh (XDEPFILES): Delete.
13571 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
13572 * config/mips/linux.mh (XDEPFILES): Delete.
13573 * config/mips/irix6.mh (XDEPFILES): Delete.
13574 * config/mips/irix5.mh (XDEPFILES): Delete.
13575 * config/mips/irix4.mh (XDEPFILES): Delete.
13576 * config/mips/irix3.mh (XDEPFILES): Delete.
13577 * config/mips/decstation.mh (XDEPFILES): Delete.
13578 * config/mips/mipsm3.mh (XDEPFILES): Delete.
13579 (NATDEPFILES): Move core-aout.o to here.
13580 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
13581 * config/pa/hpux1020.mh (XDEPFILES): Delete.
13582 * config/pa/hppabsd.mh (XDEPFILES): Delete.
13583 * config/pa/hppahpux.mh (XDEPFILES): Delete.
13584 * config/pa/hpux11w.mh (XDEPFILES): Delete.
13585 * config/pa/hppaosf.mh (XDEPFILES): Delete.
13586 * config/pa/hpux11.mh (XDEPFILES): Delete.
13587 * config/powerpc/aix.mh (XDEPFILES): Delete.
13588 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
13589 * config/powerpc/linux.mh (XDEPFILES): Delete.
13590 * config/romp/rtbsd.mh: Rename XDEPFILES.
13591 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
13592 * config/rs6000/aix4.mh (XDEPFILES): Delete.
13593 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
13594 * config/s390/s390.mh (XDEPFILES): Delete.
13595 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
13596 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
13597 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
13598 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
13599 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
13600 * config/sparc/nbsd.mh (XDEPFILES): Delete.
13601 * config/sparc/linux.mh (XDEPFILES): Delete.
13602 * config/vax/vaxult.mh (XDEPFILES): Delete.
13603 * config/vax/vaxult2.mh (XDEPFILES): Delete.
13604 * Makefile.in (DEPFILES): Remove XDEPFILES.
13608 * utils.c (internal_verror): Fix comments, default is yes not no.
13609 Update queries to match. Default to quit and dump core.
13613 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
13615 * defs.h, event-top.c, gdbcmd.h: Ditto.
13616 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
13617 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
13618 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
13619 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
13620 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
13621 * mi/mi-main.c:Ditto.
13623 * stack.c, symfile.c: Update copyright.
13627 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
13628 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
13629 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
13630 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
13634 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
13635 * gdbserver/low-lynx.c (myattach): Likewise.
13636 * gdbserver/low-nbsd.c (myattach): Likewise.
13637 * gdbserver/low-sim.c (myattach): Likewise.
13638 * gdbserver/low-sparc.c (myattach): Likewise.
13639 * gdbserver/low-sun3.c (myattach): Likewise.
13641 * gdbserver/low-linux.c (myattach): New function.
13643 * gdbserver/server.c (attach_inferior): New function.
13644 (main): Handle "--attach".
13648 * MAINTAINERS (language support): Daniel Jacobwitz is C++
13653 * c-typeprint.c (is_type_conversion_operator): Add additional
13654 check for non-conversion operators.
13658 * linux-proc.c: Add "info proc" command, a la procfs.c.
13659 (read_mapping): New function, abstract and re-use code.
13660 (linux_find_memory_regions): Use new func read_mapping.
13661 (linux_info_proc_cmd): New function, implement "info proc".
13662 (_initialize_linux_proc): Add new command "info proc".
13666 * symfile.c (generic_load): Use bfd_map_over_sections method
13667 instead of manipulating bfd structure members directly.
13668 (add_section_size_callback): New function, bfd sections callback
13669 used by generic_load.
13670 (load_sections_callback): New function, bfd sections callback
13671 used by generic_load.
13675 [Based on work by Jim Blandy]
13676 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
13677 (builtin_type_vec128): Export.
13678 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
13680 (builtin_type_vec128): New builtin type for 128 bit vector
13682 (build_gdbtypes): Initialize builtin_type_v16qi and
13683 builtin_type_v8hi. Create the vec128 register builtin type
13685 (build_builtin_type_vec128): New function.
13686 (_initialize_gdbtypes): Register builtin_type_v16qi and
13687 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
13688 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
13689 AltiVec register to new builtin type.
13693 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
13698 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
13699 CLEAN_UP_REGISTER_VALUE.
13700 * regcache.c (supply_register): Update only call.
13704 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
13705 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
13706 a29k-*-vxworks* targets as obsolete.
13710 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
13711 until we can resolve portability issues.
13712 * gregset.h: Remove references to fpxregs.
13713 * gcore.c (gcore_command): Initialize note_sec to NULL.
13717 * signals.c (target_signal_to_name): Rewrite. Only use
13718 signals[].name when in bounds and non-NULL.
13723 * signals.c (target_signal_to_name): Verify that SIG is within the
13724 bounds of the signals array.
13728 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
13732 * stack.c (print_frame_info_base): Print the frame's pc
13733 only if when print_frame_info_listing_hook is not defined.
13737 * varobj.c (varobj_set_value): Make sure that there were no
13738 errors evaluating the object before attempting to set its
13740 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
13741 so this offset adjustment is no longer necessary.
13742 (create_child): Don't set the error flag if the child is
13743 a CPLUS_FAKE_CHILD.
13744 (value_of_child): If value_fetch_lazy fails, return NULL
13745 so that callers will be notified that an error occurred.
13746 (c_value_of_variable): Delay check of variable's validity
13747 until later. We actually want all structs and unions to have
13749 Do not return "???" for variables which could not be evaluated.
13750 This error condition must be returned to the caller so that it
13751 can get the error condition from gdb.
13752 (cplus_name_of_child): Adjust index for vptr before figuring
13753 out the name of the child.
13754 (cplus_value_of_child): If a child's (real) parent is not valid,
13755 don't even bother trying to give a value for it. Just return
13756 an error. Change all instances in this function.
13757 (cplus_type_of_child): If our parent is one of the "fake"
13758 parents, we need to get at the type of the real parent, and
13759 derive the child's true type using this information.
13764 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
13765 sources.redhat.com, and tweak some related URLs which had
13766 suffered from linkrot.
13771 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
13772 structures passed in registers.
13776 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
13777 white space which prevented compilation. Reported by DSK
13782 * symfile.c (build_section_addr_info_from_section_tab):
13783 Use bfd access method instead of manipulating bfd directly.
13784 (syms_from_objfile): Ditto.
13785 (simple_overlay_update_1): Ditto.
13786 (simple_overlay_update): Ditto.
13787 (generic_load): Ditto.
13788 (overlay_unmapped_address): FIXME comment, bfd access methods.
13789 (sections_overlap): FIXME comment, bfd access methods.
13790 (pc_in_mapped_range): FIXME comment, bfd access methods.
13791 (pc_in_unmapped_range): FIXME comment, bfd access methods.
13792 (section_is_mapped): FIXME comment, bfd access methods.
13793 (section_is_overlay): FIXME comment, bfd access methods.
13795 * symfile.c (generic_load): Whitespace and long line cleanups.
13796 Remove duplicate variable, change several local variables to
13797 more appropriate data types.
13798 (print_transfer_performance): Use %lu instead of %ld for ulongs.
13802 From Peter Schauer:
13803 * language.c (longest_local_hex_string_custom): Use phex_nz to
13804 convert NUM to a hex string.
13808 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
13810 Update Copyright year.
13814 * language.c (longest_raw_hex_string): Delete unused function.
13818 * MAINTAINERS (write-after-approval): Add myself.
13819 * dwarf2read.c (read_tag_string_type): Handling of
13821 (read_tag_string_type): FORTRAN fix to prevent propagation of
13823 (set_cu_language): Handling of DW_LANG_Fortran95
13827 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
13828 GETPID(inferior_ptid).
13829 (store_inferior_registers): Likewise.
13833 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
13838 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
13839 and bfd/elf32-sh-nbsd.c.
13843 * NEWS: Mention --pid and corefile/proc-id behavior change.
13845 * Makefile.in: Add rules for gcore.o and linux-proc.o.
13846 * gcore.c: Include cli/cli-decode.h instead of command.h.
13848 * main.c (captured_main): Add new command line option "--pid".
13849 If the second command line argument (following the symbol-file)
13850 begins with a digit, try to attach to it before trying to open
13852 (print_gdb_help): Document the "--pid" argument.
13856 * completer.c (command_completer): New function.
13858 * completer.h <command_completer>: Add prototype.
13860 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
13861 completer for the "help" command.
13865 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
13869 * i386-linux-nat.c (fill_fpxregset): Make global.
13870 (store_fpxregset): Ditto.
13872 * gregset.h (gdb_fpxregset_t): Define.
13873 (supply_fpxregset): Prototype.
13874 (fill_fpxregset): Prototype.
13876 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
13880 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
13881 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
13882 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
13886 * MAINTAINERS: Update target maintainer rules so that any
13887 Maintainer can approve a tested patch for a maintenance-only
13892 * MAINTAINERS (write-after-approval): Add myself.
13894 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
13899 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
13900 real name of the executable, rather than the /proc name.
13904 Implement a "generate-core-file" command in gdb, save target state.
13905 * gcore.c: New file. Implement new command 'generate-core-file'.
13906 Save a corefile image of the current state of the inferior.
13907 * linux-proc.c: Add linux-specific code for saving corefiles.
13908 * target.h (struct target_ops): Add new target vectors for saving
13909 corefiles; to_find_memory_regions and to_make_corefile_notes.
13910 (target_find_memory_regions): New macro.
13911 (target_make_corefile_notes): New macro.
13912 * target.c (update_current_target): Inherit new target methods.
13913 (dummy_find_memory_regions): New place-holder method.
13914 (dummy_make_corefile_notes): New place-holder method.
13915 (init_dummy_target): Initialize new dummy target vectors.
13916 * exec.c (exec_set_find_memory_regions): New function.
13917 Allow the exec_ops vector for memory regions to be taken over.
13918 (exec_make_note_section): New function, target vector method.
13919 * defs.h (exec_set_find_memory_regions): Export prototype.
13920 * procfs.c (proc_find_memory_regions): New function, corefile method.
13921 (procfs_make_note_section): New function, corefile method.
13922 (init_procfs_ops): Set new target vector pointers.
13923 (find_memory_regions_callback): New function.
13924 (procfs_do_thread_registers): New function.
13925 (procfs_corefile_thread_callback): New function.
13926 * sol-thread.c (sol_find_memory_regions): New function.
13927 (sol_make_note_section): New function.
13928 (init_sol_thread_ops): Initialize new target vectors.
13929 * inftarg.c (inftarg_set_find_memory_regions): New function.
13930 Allow to_find_memory_regions vector to be taken over.
13931 (inftarg_set_make_corefile_notes): New function.
13932 Allow to_make_corefile_notes vector to be taken over.
13933 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
13934 interface layer if not target_has_execution (may be a corefile).
13935 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
13936 * config/sparc/sun4sol2.mh: Ditto.
13937 * config/alpha/alpha-linux.mh: Ditto.
13938 * config/arm/linux.mh: Ditto.
13939 * config/i386/x86-64linux.mh: Ditto.
13940 * config/ia64/linux.mh: Ditto.
13941 * config/m68k/linux.mh: Ditto.
13942 * config/mips/linux.mh: Ditto.
13943 * config/powerpc/linux.mh: Ditto.
13944 * config/sparc/linux.mh: Ditto.
13948 * arm-linux-nat.c: Remove references to regcache.c internal data
13949 (registers[] and register_valid[]).
13953 * linux-proc.c: New file. Implement child_pid_to_exec_file,
13954 so that attaching to a pid will automatically read the process's
13955 symbol file and shlibs.
13956 * Makefile.in: Add rule for linux-proc.o.
13957 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
13958 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
13959 * config/arm/linux.mh: Ditto.
13960 * config/i386/linux.mh: Ditto.
13961 * config/i386/x86-64linux.mh: Ditto.
13962 * config/ia64/linux.mh: Ditto.
13963 * config/m68k/linux.mh: Ditto.
13964 * config/mips/linux.mh: Ditto.
13965 * config/powerpc/linux.mh: Ditto.
13966 * config/sparc/linux.mh: Ditto.
13970 * win32-nat.c: Add i386-tdep.h dependency.
13974 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
13975 instead of bfd_get_arch_size. Don't bail out just because
13976 there's no exec_bfd.
13978 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
13979 * p-valprint.c (pascal_object_print_value): Ditto.
13980 * somread.c (som_symtab_read): Ditto.
13981 * symfile.c (simple_free_overlay_region_table): Ditto.
13982 * valops.c (value_assign): Ditto.
13984 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
13985 use tilde_expand and strerror for opening save-tracepoints file.
13987 * thread-db.c (thread_db_new_objfile): Indendation fix.
13989 * infptrace.c (GDB_MAX_ALLOCA): New define.
13990 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
13991 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
13992 can be overridden with whatever value is appropriate to the host).
13993 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
13994 alloca to allocate potentially large buffer.
13995 * rs6000-nat.c (child_xfer_memory): Ditto.
13996 * symm-nat.c (child_xfer_memory): Ditto.
13997 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
14002 * d10v-tdep.c: Set STACK_START to 0x200bffe.
14006 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
14007 Don't use exec_bfd if it's NULL.
14011 * valops.c (value_arg_coerce): Fix formatting.
14015 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
14016 * gnu-nat.c: Ditto.
14020 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
14021 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
14022 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
14023 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
14024 z8k-coff have not been multi-arched. Update z8k-coff build
14029 * MAINTAINERS: Mark a29k target as obsolete.
14030 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
14031 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
14033 * NEWS: Note that a29k targets are obsolete.
14034 * a29k-tdep.c: Mark as obsolete.
14035 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
14036 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
14037 a29k-*-vxworks* targets as obsolete.
14038 * remote-adapt.c: Obsolete.
14039 * remote-eb.c: Obsolete.
14040 * remote-mm.c: Obsolete.
14041 * remote-udi.c: Obsolete.
14042 * config/a29k/a29k-udi.mt: Obsolete.
14043 * config/a29k/a29k.mt: Obsolete.
14044 * config/a29k/tm-a29k.h: Obsolete.
14045 * config/a29k/tm-vx29k.h: Obsolete.
14046 * config/a29k/vx29k.mt: Obsolete.
14050 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
14051 with BFD_ENDIAN_BIG.
14055 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
14056 * configure, config.in: Re-generate.
14057 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
14058 * defs.h: Do not include <endian.h>.
14062 * acconfig.h (HAVE_PT_GETXMMREGS): New.
14063 * config.in: Regenerate.
14064 * configure.in: Update copyright years.
14065 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
14066 * configure: Regenerate.
14067 * i386bsd-nat.c: Update copyright years.
14068 (fill_gregset): Use regcache_collect.
14069 (fetch_inferior_registers): Only fetch integer registers
14070 if requested to do so. Add support for XMM registers
14071 using PT_GETXMMREGS.
14072 (store_inferior_registers): Only store integer registers
14073 if requested to do so. Add support for XMM registers
14074 using PT_SETXMMREGS.
14075 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
14076 (store_inferior_registers): Remove.
14077 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
14078 (fetch_elfcore_registers): New function.
14079 (i386nbsd_elfcore_fns): New.
14080 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
14081 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
14083 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
14084 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
14085 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
14086 * config/i386/tm-nbsd.h: Update copyright years.
14087 (HAVE_SSE_REGS): Define.
14088 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
14089 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
14090 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
14091 (SIGCONTEXT_PC_OFFSET): Remove.
14092 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
14096 * configure.tgt: Remove powerpc-*-macos* target.
14097 * config/m68k/xm-mpw.h: Delete file.
14098 * config/xm-mpw.h: Delete file.
14099 * ser-mac.c: Delete file.
14100 * mpw-make.sed: Delete file.
14101 * mpw-config.in: Delete file.
14102 * mac-xdep.c: Delete file.
14103 * mac-gdb.r: Delete file.
14104 * mac-defs.h: Delete file.
14105 * mac-nat.c: Delete file.
14106 * config/powerpc/macos.mh: Delete file.
14107 * config/powerpc/macos.mt: Delete file.
14108 * config/powerpc/nm-macos.h: Delete file.
14109 * config/powerpc/tm-macos.h: Delete file.
14110 * source.c (openp, open_source_file): Remove obsolete code.
14111 * top.c (gdb_readline): Ditto.
14112 * utils.c (query): Ditto.
14113 * event-top.c (display_gdb_prompt): Ditto.
14114 * Makefile.in (ser-mac.o): Delete obsolete target.
14119 * defs.h (BIG_ENDIAN): Delete macro definition.
14120 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
14121 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
14122 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
14123 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
14124 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
14125 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
14126 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
14127 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
14128 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
14129 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
14130 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
14131 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
14132 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
14133 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
14134 * gdbarch.c: Re-generate.
14138 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
14143 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
14147 * value.h (value_ptr): Delete typedef.
14151 * i386nbsd-nat.c: Update copyright years.
14152 Include i386-tdep.h.
14156 * stabsread.c: Update copyright years.
14159 (read_struct_fields): Deal with Sun C compiler erroneous stab
14160 output for structs and unions.
14165 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
14170 * cp-abi.c: Fix whitespace.
14171 (baseclass_offset): New wrapper function.
14172 * cp-abi.h (baseclass_offset): Add prototype.
14173 (struct cp_abi_ops): Add baseclass_offset pointer.
14175 * valops.c (vb_match): Move to...
14176 * gnu-v2-abi.c (vb_match): here.
14177 * valops.c (baseclass_offset): Move to...
14178 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
14180 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
14182 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
14183 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
14184 * hpacc-abi.c (init_hpacc_ops): Likewise.
14188 * valops.c (find_overload_match): Accept obj as a
14189 reference parameter. Update it before returning.
14190 * value.h (find_overload_match): Update prototype.
14191 * eval.c (evaluate_subexp_standard): Pass object to
14192 find_overload_match by reference.
14196 * valarith.c: Replace value_ptr with struct value pointer. Remove
14197 register attribute from value declarations.
14200 * scm-lang.c (scm_lookup_name): Ditto.
14204 Abstract the functionality of iterating over mapped memory
14205 regions into a general purpose iterator function.
14206 * procfs.c (iterate_over_mappings): New function, general purpose
14207 iterator for memory sections.
14208 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
14209 (solib_mappings_callback): New function, callback for above.
14210 (info_proc_mappings): Reimpliment using iterate_over_mappings.
14211 (info_mappings_callback): New function, callback for above.
14213 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
14217 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
14218 * i386-tdep.c: Include "elf-bfd.h".
14219 (process_note_abi_tag_sections): New function.
14220 (i386_gdbarch_init): Add code to recognize various OS/ABI
14223 * maint.c (_initialize_maint_cmds): Add missing \ in
14226 For older changes see ChangeLog-2001
14232 version-control: never