3 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
4 (i387-nat.o): Delete dependency list.
5 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
6 (x86-64-linux-nat.o): Likewise.
7 * i387-nat.c: Delete file, moving contents to...
8 * i387-tdep.c: ...here.
9 * i387-nat.h: Rename...
10 * i387-tdep.h: ...to this.
11 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
12 * i386-linux-nat.c: Likewise.
13 * i386bsd-nat.c: Likewise.
14 * i386gnu-nat.c: Likewise.
15 * i386nbsd-nat.c: Likewise.
16 * i386v4-nat.c: Likewise.
17 * x86-64-linux-nat.c: Likewise.
18 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
19 * config/i386/go32.mh (NATDEPFILES): Likewise.
20 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
21 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
22 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
23 * config/i386/linux.mh (NATDEPFILES): Likewise.
24 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
25 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
26 * config/i386/obsd.mh (NATDEPFILES): Likewise.
27 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
31 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
32 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
33 (alphanbsd-nat.o): Likewise.
34 (alphabsd-tdep.o): New dependency list.
35 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
36 (fill_gregset): Use alphabsd_fill_reg.
37 (supply_fpregset): Use alphabsd_supply_fpreg.
38 (fill_fpregset): Use alphabsd_fill_fpreg.
39 (fetch_inferior_registers): Use struct reg and struct fpreg
40 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
41 and alphabsd_supply_fpreg.
42 (store_inferior_registers): Use struct reg and struct fpreg
43 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
44 and alphabsd_fill_fpreg.
45 * alphabsd-tdep.c: New file.
46 * alphabsd-tdep.h: New file.
47 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
48 (fetch_elfcore_registers): Use alphabsd_supply_reg and
49 alphabsd_supply_fpreg.
50 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
51 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
55 * mips-tdep.c (mips_double_register_type): Fix thinko.
56 (mips_single_register_type): Ditto.
57 * MAINTAINERS: Add self.
61 * i387-nat.c (i387_supply_register, i387_fill_fsave,
62 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
63 right thing on architectures with different endianness and/or
69 * configure.in: Change sed expression which comments out
70 NATDEPFILES to also comment out continuation lines.
71 * configure: Regenerate.
75 * sh-tdep.c: Clean up code erroneously reintroduced by previous
80 * sh-tdep.c: Include correct file.
84 New support for sh64-elf (sh5) target.
86 * configure.tgt: For sh64-elf target, default to sh-elf.
88 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
89 (struct gdbarch_tdep): Add new fields for new registers and ABI
92 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
93 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
94 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
95 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
96 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
97 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
98 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
99 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
100 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
101 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
102 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
103 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
104 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
105 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
106 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
107 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
108 sh64_get_gdb_regnum, sh64_media_reg_base_num,
109 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
110 sign_extend, sh64_nofp_frame_init_saved_regs,
111 sh64_init_extra_frame_info, sh64_get_saved_register,
112 sh64_extract_struct_value_address, sh64_pop_frame,
113 sh64_push_arguments, sh64_extract_return_value,
114 sh64_store_return_value, sh64_show_media_regs,
115 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
116 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
117 sh_sh64_register_virtual_type,
118 sh_sh64_register_convert_to_virtual,
119 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
120 sh64_register_read, sh64_pseudo_register_write,
121 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
122 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
123 sh64_do_pseudo_register, sh_compact_do_registers_info,
124 sh64_do_registers_info, sh_gdbarch_init): New functions.
128 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
132 * linespec.c (decode_line_1): Check for a double quote after
133 a filename correctly.
137 Properly track the size of the current objfile's .debug_line section.
138 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
139 (DWARF_LINE_SIZE): New macro.
140 (dwarf2_build_psymtabs_hard): Record the line section's size in
141 the partial symbol table.
142 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
147 * ia64-tdep.c: Handle breakpoints on L instruction type
148 in MLX instruction bundle by moving the breakpoint to
149 the third slot (X instruction type) as L holds only data.
153 * dbxread.c (discarding_local_symbols_complaint): New complaint.
154 (process_one_symbol): Complain about discarding local symbols
155 due to a misplaced N_LBRAC entry.
160 * linespec.c (find_toplevel_char): '<' and '>' also increase and
161 decrease the depth we are at, in the case of templates.
165 * mips-tdep.c (mips_float_register_type): New function.
166 (mips_double_register_type): New function.
167 (mips_print_register): Use them.
168 (do_fp_register_row): Likewise.
172 * signals/signals.c (signals): Remove conditional compilation around
173 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
174 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
178 * remote-rdp.c (remote_rdp_can_run): Remove.
182 * jv-valprint.c (java_val_print): Handle `char' as a special case
187 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
188 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
189 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
190 str r(0123),[sp,#nn].
191 (arm_skip_prologue): Ditto. Also make disassembly
192 order-independent by placing it in a loop.
196 * stabsread.c (read_type): Add recognition for new attribute:
197 "@V;" means that an array type is actually a vector.
198 This is analogous to the vector flag that's been added to dwarf2.
202 * i386-tdep.h (i386_abi): New enum.
203 (struct gdbarch_tdep): Replace os_ident member with abi.
204 (i386_gdbarch_register_os_abi): New prototype.
205 * i386-tdep.c (i386_abi_names): New array.
206 (process_note_abi_tag_sections): Removed.
207 (process_note_sections): New function.
208 (i386_elf_abi_from_note, i386_elf_abi): New functions.
209 (struct i386_abi_handler): New struct.
210 (i386_abi_handler_list): New variable.
211 (i386_gdbarch_register_os_abi): New function.
212 (i386_gdbarch_init): Adapt for the changes given above.
216 * gregset.h: Say "GNU/Linux".
220 * gdbtypes.c : Add new builtin type for 64 bit vectors.
221 (build_gdbtypes): Build builtin_type_v2_float.
222 (_initialize_gdbtypes): Register new builtin type.
226 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
227 (clear_gdbarch_swap): New function.
228 (initialize_non_multiarch): Call.
229 (gdbarch_update_p): Before calling init(), swap out and clear the
230 existing architecture.
231 * gdbarch.c: Regenerate.
235 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
240 * sh-nbsd-nat.c: Rename to...
241 * shnbsd-nat.c: ...this.
242 * sh-nbsd-tdep.c: Rename to...
243 * shnbsd-tdep.c: ...this.
244 * sh-nbsd-tdep.h: Rename to...
245 * shnbsd-tdep.h: ...this.
246 * config/sh/nbsd.mh: Use shnbsd-nat.o.
247 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
251 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
252 concatenation for command help messages.
256 * NEWS: Note new sh*-*-netbsdelf* configuration.
257 * configure.host: Set gdb_host_cpu to sh for all sh*.
258 (sh*-*-netbsdelf*): New host.
259 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
260 (sh*-*-netbsdelf*): New target.
261 * sh-nbsd-nat.c: New file.
262 * sh-nbsd-tdep.c: New file.
263 * sh-nbsd-tdep.h: New file.
264 * config/sh/nbsd.mh: New file.
265 * config/sh/nbsd.mt: New file.
266 * config/sh/nm-nbsd.h: New file.
267 * config/sh/tm-nbsd.h: New file.
271 * sh-tdep.c (sh_osabi_names): Declare.
272 (process_note_abi_tag_sections): New function.
273 (get_elfosabi): Ditto.
274 (sh_gdbarch_register_os_abi): Ditto.
275 (sh_dump_tdep): Ditto.
276 _initialize_sh_tdep): Use gdbarch_register to register
277 sh_gdbarch_init and sh_dump_tdep.
278 * config/sh/tm-sh.h (sh_osabi): Declare.
279 (gdbarch_tdep): Add sh_osabi and osabi_name members.
283 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
284 (thumb_scan_prologue): Ditto.
285 (arm_find_callers_reg): Ditto.
286 (arm_frame_chain): Ditto.
287 (arm_init_extra_frame_info): Ditto.
288 (arm_frame_saved_pc): Ditto.
289 (arm_pop_frame): Ditto.
290 (arm_push_return_address): New function.
291 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
292 call_dummy_location, call_dummy_breakpoint_offset_p,
293 call_dummy_breakpoint_offset, call_dummy_p,
294 call_dummy_stack_adjust_p, call_dummy_words,
295 sizeof_call_dummy_words, call_dummy_start_offset,
296 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
297 call_dummy_address, push_return_address and push_dummy_frame for
298 generic dummy frames.
302 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
303 size computation for alloca.
304 (sh_fp_frame_init_saved_regs): Likewise.
308 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
309 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
310 * arm-tdep.c (arm_store_return_value): Use them.
311 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
312 * remote-rdp.c (remote_rdp_fetch_register): Use
313 ARM_MAX_REGISTER_RAW_SIZE.
314 (remote_rdp_store_register): Likewise.
318 * dwarf2cfi.c: Code cleanup, removed unused variables,
319 added default labels to switch {} statements.
320 * x86-64-tdep.c: Ditto.
321 * x86-64-linux-nat.c: Ditto.
325 * solib.h: Protect against multiple inclusion.
329 Add first preprocessor macro-expansion files.
330 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
331 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
332 (splay_tree_h, macroexp_h, macrotab_h): New variable.
333 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
334 (COMMON_OBS): Add macrotab.o, macroexp.o.
335 (macroexp.o, macrotab.o): New rules.
337 Separate the job of reading the line number info statement program
338 header (...expialidocious) out into its own function.
339 * dwarf2read.c (struct line_head, struct filenames, struct
340 directories): Replace with...
341 (struct line_header): New structure, containing the full
342 contents of the statement program header, including the
343 include directory and file name tables.
344 (read_file_scope): If we have line number info, instead of just
345 calling dwarf_decode_lines to do all the work, call
346 dwarf_decode_line_header first to get a `struct line_header'
347 containing the data in the statement program header, and then
348 pass that to dwarf_decode_lines, which will pick up where that
349 left off. Be sure to clean up the `struct line_header' object.
350 (dwarf_decode_line_header, free_line_header, add_include_dir,
351 add_file_name): New functions.
352 (dwarf_decode_lines): Move all the code to read the statement
353 program header into dwarf_decode_line_header. Take the line
354 header it built as the first argument, instead of the offset to
355 the compilation unit's line number info. Use the new `struct
356 line_header' type instead of the old structures. No need to do
357 cleanups here now, since we don't allocate anything.
358 (dwarf2_statement_list_fits_in_line_number_section,
359 dwarf2_line_header_too_long): New complaints.
363 * gdbtypes.c (init_vector_type): New function.
364 (build_builtin_type_vec128): Simplify the representation of SIMD
366 (build_gdbtypes): Initialize new builtin vector types.
367 (_initialize_gdbtypes): Register new vector types with gdbarch.
368 (builtin_type_v4_float, builtin_type_v4_int32,
369 builtin_type_v8_int16, builtin_type_v16_int8,
370 builtin_type_v2_int32, builtin_type_v4_int16,
371 builtin_type_v8_int8): New (renamed) SIMD types.
375 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
376 (i387_fill_fxsave): Likewise.
380 * alpha-tdep.c (alpha_extract_return_value): Don't use
381 non-constant array size in prototype.
385 From Brian Taylor <briant at model dot com>:
386 * ui-out.c (ui_out_field_core_addr): Use the function
387 longest_local_hex_string_custom'to format addresses > 32 bits
390 * ui-out.c (ui_out_field_core_addr): Update comment.
394 * stack.c (select_and_print_frame): Make static. Delete the
396 (func_command): Update call.
397 (select_frame_command): Delete code computing the frame level.
398 * frame.h (select_and_print_frame): Delete declaration.
402 * sparc-tdep.c (sparc_get_saved_register): Comment why
403 get_prev_frame call is safe.
407 * frame.h (select_frame): Delete level parameter.
408 * stack.c (select_frame): Update. Use frame_relative_level to
409 obtain the frame's level.
410 (select_and_print_frame): Update call.
411 (select_frame_command): Ditto.
412 (up_silently_base): Ditto.
413 (down_silently_base): Ditto.
414 * ocd.c (ocd_start_remote): Ditto.
415 * remote-rdp.c (remote_rdp_open): Ditto.
416 * remote-mips.c (mips_initialize): Ditto.
417 (common_open): Ditto.
418 * remote-e7000.c (e7000_start_remote): Ditto.
419 * m3-nat.c (select_thread): Ditto.
420 * hppa-tdep.c (child_get_current_exception_event): Ditto.
421 (child_get_current_exception_event): Ditto.
422 * varobj.c (varobj_create): Ditto.
423 (varobj_update): Ditto.
424 (c_value_of_root): Ditto.
425 * tracepoint.c (finish_tfind_command): Ditto.
426 * corelow.c (core_open): Ditto.
427 * arch-utils.c (generic_prepare_to_proceed): Ditto.
428 * thread.c (info_threads_command): Ditto.
429 (switch_to_thread): Ditto.
430 * infrun.c (normal_stop): Ditto.
431 (restore_selected_frame): Ditto.
432 (restore_inferior_status): Ditto.
433 * breakpoint.c (insert_breakpoints): Ditto.
434 (watchpoint_check): Ditto.
435 (bpstat_stop_status): Ditto.
436 (do_enable_breakpoint): Ditto.
437 * blockframe.c (flush_cached_frames): Ditto.
438 (reinit_frame_cache): Ditto.
442 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
447 * gdbtypes.c (replace_type): Doc fix.
451 * valprint.c (strcat_longest): Delete commented out function.
456 * MAINTAINERS: Mark a29k as deleted.
457 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
458 Move new configurations to the top.
459 * configure.tgt: Remove a29k.
460 * config/a29k/tm-vx29k.h: Delete.
461 * config/a29k/vx29k.mt: Delete.
462 * config/a29k/tm-a29k.h: Delete.
463 * config/a29k/a29k-udi.mt: Delete.
464 * config/a29k/a29k.mt: Delete.
465 * a29k-tdep.c: Delete.
466 * remote-udi.c: Delete.
467 * remote-mm.c: Delete.
468 * remote-eb.c: Delete.
469 * remote-adapt.c: Delete.
470 * Makefile.in: Remove obsolete code.
471 * gdbserver/Makefile.in: Ditto.
472 * config/s390/s390x.mt: Ditto.
473 * config/s390/s390.mt: Ditto.
474 * config/sparc/sparclynx.mh: Ditto.
475 * config/sparc/linux.mh: Ditto.
476 * config/pa/hppaosf.mh: Ditto.
477 * config/pa/hppabsd.mh: Ditto.
478 * config/ns32k/nbsd.mt: Ditto.
479 * config/mips/vr5000.mt: Ditto.
480 * config/m68k/sun3os4.mh: Ditto.
481 * config/m68k/nbsd.mt: Ditto.
482 * config/m68k/m68klynx.mh: Ditto.
483 * config/m32r/m32r.mt: Ditto.
484 * config/i386/x86-64linux.mt: Ditto.
485 * config/i386/nbsdelf.mt: Ditto.
486 * config/i386/nbsd.mt: Ditto.
487 * config/i386/i386lynx.mh: Ditto.
491 * target.c (debug_print_register): New function. Handle oversize
493 (debug_to_fetch_registers): Call.
494 (debug_to_store_registers): Call.
498 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
499 (read_type): Doc fix.
500 * gdbtypes.c (replace_type): Doc fix.
502 * stabsread.c (multiply_defined_struct): New complaint.
503 (read_struct_type): If the type we were passed isn't empty, or
504 incomplete, don't read the new struct type into it; complain,
505 and return the original type unchanged. Take a new `type_code'
506 argument, which is the type code for the new type.
507 (read_type): Rather than storing the type's type code here, pass
508 it as an argument to read_struct_type, and let that take care of
509 storing it. That way, we don't overwrite the original type code,
510 so read_struct_type can use it to decide whether we're overwriting
511 something we shouldn't.
512 (complain_about_struct_wipeout): New function.
516 * gdbarch.sh: Assert that gdbarch is non-NULL.
517 * gdbarch.c: Regenerate.
521 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
526 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
527 (x86_64_dwarf2gdb_regno_map_length),
528 (x86_64_dwarf2_reg_to_regnum): Added.
529 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
530 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
531 (_initialize_x86_64_tdep): Synced with the change above.
532 (x86_64_skip_prologue): Reformulated message.
536 * f-exp.y: Also use new prev_lexptr variable
537 to improve error reporting. Based on Michael Snyder
538 2002-04-24 dated patch to c-exp.y.
539 * jv-exp.y: Likewise.
540 * m2-exp.y: Likewise.
544 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
545 we are dealing with vectors.
549 * config/m68k/tm-nbsd.h: Obvious fix,
550 correct machine name.
554 * p-typeprint.c (pascal_type_print_base): Add support
555 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
559 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
560 for fondamental pascal 'char' type.
564 * p-lang.h (is_pascal_string_type): Declaration changed,
565 new sixth argument of type char ** added.
566 * p-lang.c (is_pascal_string_type): Implementation
567 changed. Args length_pos, length_size, string_pos, char_size
568 can now be NULL. New argument arrayname set to the field
569 name of the char array. Return value set to char array
570 field index plus one.
571 * p-valprint.c (pascal_val_print): Adapt to new declaration of
572 is_pascal_string_type function.
576 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
578 * gdbarch.c: Regenerate.
582 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
583 before probing for a new one. Detect errorenous gdbarch_init
585 * gdbarch.c: Regenerate.
589 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
590 * config/mcore/tm-mcore.h: Ditto. Update copyright.
591 * config/v850/tm-v850.h: Ditto. Update copyright.
595 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
600 * arm-tdep.c: Whitespace clean-ups.
601 (arm_skip_prologue): Fix thinko; two lines
602 should have been removed as part of 4/24 change.
606 * rs6000-tdep.c: Added comment describing how fpscr register
611 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
615 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
616 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
617 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
622 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
623 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
624 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
625 not bfd-private xcoff data, to determine wordsize.
626 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
630 GDB 5.2 released from 5.2 branch.
634 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
635 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
636 (x86_64_register_info_table): Added comments with register numbers.
640 * rs6000-tdep.c (rs6000_extract_return_value,
641 rs6000_store_return_value): Handle returning vectors.
642 (rs6000_gdbarch_init): Use
643 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
644 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
646 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
648 (ppc_sysv_abi_push_arguments): Handle vector parameters.
649 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
651 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
653 * hpread.c (hpread_psymtab_to_symtab_1,
654 hpread_psymtab_to_symtab): Replace fprintf (stderr,...)
655 with fprintf_unfiltered (gdb_stderr,...).
657 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
659 * remote-array.c (printf_monitor, write_monitor,
660 array_insert_breakpoint, array_remove_breakpoint ):
661 Replace fprintf (stderr,...
662 with fprintf_unfiltered (gdb_stderr,....
663 * remote-es.c: Likewise.
664 * remote-os9k.c: Likewise.
665 * remote-st.c: Likewise.
669 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
670 linux-proc.o and gcore.o.
674 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
675 code without frame pointers.
679 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
684 * target.c (do_xfer_memory): Correct reference to the new option
685 "trust-readonly-sections".
689 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
690 * gdbtypes.c (recursive_dump_type): Output the vector flag.
691 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
693 (read_array_type): Record the fact that this array type is really a
694 vector (i.e. are passed in by value).
698 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
699 * alpha-tdep.c (alpha_sigcontext_addr): New function.
700 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
701 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
702 * alpha-linux-tdep.c: Include frame.h.
703 (alpha_linux_sigcontext_addr): New function.
704 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
705 alpha_linux_sigcontext_addr.
706 * alpha-osf1-tdep.c: Include gdbcore.h.
707 (alpha_osf1_sigcontext_addr): New function.
708 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
709 alpha_osf1_sigcontext_addr.
710 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
711 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
715 * stack.c (selected_frame_level):
716 (select_frame): Do not set selected_frame_level.
717 * frame.h (selected_frame_level): Delete declaration.
721 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
722 convert_from_func_ptr-addr when AIX / PowerOpen.
726 * valops.c (hand_function_call): Call
727 generic_save_call_dummy_addr.
728 * frame.h (generic_save_call_dummy_addr): Declare.
729 * blockframe.c (struct dummy_frame): Add fields call_lo and
731 (generic_find_dummy_frame): Check for PC in range call_lo to
732 call_hi instead of entry_point_address.
733 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
734 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
735 (generic_save_call_dummy_addr): New function.
739 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
741 (sparc_skip_prologue): Kill frameless_p arg, and use line number
742 information to find prologue when possible.
743 (sparc_prologue_frameless_p): Call examine_prologue directly.
744 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
745 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
747 (SKIP_PROLOGUE): Likewise.
751 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
752 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
753 indicate that the condition it was testing is always true.
754 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
755 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
756 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
760 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
761 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
762 tdep->jb_pc and tdep->jb_elt_size.
763 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
764 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
765 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
766 * alpha-nat.c (get_longjmp_target): Remove.
767 (JB_ELEMENT_SIZE): Ditto.
769 * alpha-tdep.c (alpha_get_longjmp_target): New function.
770 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
771 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
772 to alpha_get_longjmp_target.
773 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
774 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
775 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
779 * README: Update to GDB 5.2.
783 * gdbarch.sh (LC_ALL): Set to `c'.
787 * avr-tdep.c: Ran through gdb_indent.sh.
791 * MAINTAINERS: Add myself as AVR maintainer.
792 * NEWS: Note new target avr.
796 * Makefile.in: Add support for AVR target.
797 * configure.tgt: Add support for AVR target.
798 * avr-tdep.c: New file
799 * config/avr/avr.mt: New file.
803 * MAINTAINERS: Add myself to write-after-approval.
805 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
807 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
808 with fprintf_unfiltered (gdb_stderr,....
813 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
817 * p-exp.y: Also use new prev_lexptr variable
818 to improve error reporting. Based on Michael Snyder
819 2002-04-24 dated patch to c-exp.y.
823 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
824 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
825 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
827 * config/alpha/tm-alpha.h: Remove forward decls of struct type
829 (FUNCTION_START_OFFSET): Remove.
834 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
839 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
840 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
841 alpha_linux_pc_in_sigtramp.
842 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
843 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
844 alpha_osf1_pc_in_sigtramp.
845 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
846 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
847 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
848 alphafbsd_pc_in_sigtramp.
849 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
850 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
851 alphanbsd_pc_in_sigtramp.
852 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
853 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
857 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
861 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
863 (alphanbsd-nat.o): New dependency list.
864 (alphanbsd-tdep.o): Ditto.
865 * NEWS: Note new native NetBSD/alpha configuration.
866 * alphanbsd-nat.c: New file.
867 * alphanbsd-tdep.c: Ditto.
868 * configure.host (alpha*-*-netbsd*): New host.
869 * configure.tgt (alpha*-*-netbsd*): New target.
870 * config/alpha/nbsd.mh: New file.
871 * config/alpha/nbsd.mt: Ditto.
872 * config/alpha/nm-nbsd.h: Ditto.
873 * config/alpha/tm-nbsd.h: Ditto.
877 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
878 (alpha-osf1-tdep.o): New dependency list.
879 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
880 and skip_sigtramp_frame members.
881 * alpha-linux-tdep.c: Include gdbcore.h.
882 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
883 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
884 * alpha-osf1-tdep.c: New file.
885 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
887 (alpha_frame_past_sigtramp_frame): New function.
888 (alpha_dynamic_sigtramp_offset): Ditto.
889 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
890 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
891 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
892 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
893 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
894 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
895 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
896 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
897 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
898 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
899 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
900 to find_solib_trampoline_target.
901 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
902 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
903 (SKIP_TRAMPOLINE_CODE): Remove.
904 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
905 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
906 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
907 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
908 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
909 (PROC_SIGTRAMP_MAGIC): Ditto.
910 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
911 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
912 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
913 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
914 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
918 * NEWS: Note that Alpha targets are now multi-arch.
922 * parser-defs.h (prev_lexptr): New external variable.
923 * parse.c (parse_exp_1): Set prev_lexptr to null before
924 calling the language-specific parser.
925 * c-exp.y (yylex): Set prev_lexptr to start of current token.
926 (yyerror): Use prev_lexptr in error reporting.
930 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
931 * gregset.h: If FILL_FPXREGSET is defined, provide
932 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
933 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
934 is defined, call fill_fpxregset.
938 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
939 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
940 (supply_gregset, supply_fpregset): New functions.
942 * gnu-nat.c (gnu_find_memory_regions): New function.
943 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
944 (gnu_xfer_memory): Add a cast.
948 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
949 loop. Add handling for "str lr, [sp, #-4]!" and for saves
950 of argument regs ("str r(0123), [r11, #-nn"]).
951 (arm_skip_prologue): Better handling for frameless functions.
952 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
953 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
957 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
958 NUM_PSEUDO_REGS can be used.
962 * arch-utils.h: Update copyright.
964 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
965 * gdbarch.h, gdbarch.c: Re-generate.
967 * inferior.h (IN_SIGTRAMP): Delete definition.
968 * arch-utils.c (legacy_pc_in_sigtramp): New function.
969 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
971 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
972 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
973 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
974 (find_proc_framesize): Ditto.
975 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
976 (alpha_init_extra_frame_info): Ditto.
977 * infrun.c (handle_inferior_event): Ditto.
978 (handle_inferior_event): Ditto.
979 (check_sigtramp2): Ditto.
980 * blockframe.c (create_new_frame): Ditto.
981 (get_prev_frame): Ditto.
982 * ppc-linux-tdep.c: Update comments.
983 * i386-linux-tdep.c: Update comments.
984 * breakpoint.c (bpstat_what): Update comment.
988 * gdbserver/linux-low.c (regsets_fetch_inferior_registers),
989 (regsets_store_inferior_registers): Removed cast to int from
991 * gdbserver/regcache.h: Added declaration of struct inferior_info.
995 * i960-tdep.c (register_in_window_p): New function.
996 (i960_find_saved_register): Use it instead of
997 REGISTER_IN_WINDOW_P.
998 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
1000 * symtab.h (find_stab_function_addr): Kill extern.
1001 * minsyms.c (find_stab_function_addr): Remove from here...
1002 * dbxread.c: ... to here, and mark it static.
1006 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
1007 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
1011 * remote-vxsparc.c (vx_read_register): Fix typo, we want
1012 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
1013 (vx_write_register): Likewise.
1017 * source.c (is_regular_file): New function.
1018 (openp): Check wether file to open is a regular file
1019 to avoid opening directories.
1023 * findvar.c (extract_signed_integer): Cast printf argument
1024 to suppress format warning.
1025 (extract_unsigned_integer): Likewise.
1026 * infcmd.c (registers_info): Likewise.
1027 * top.c (get_prompt_1): Likewise.
1028 * valops.c (value_assign): Likewise.
1029 * valprint.c (print_decimal): Likewise.
1033 * c-exp.y (typebase): Support
1035 [long|long long|short] [signed|unsigned] [int|]
1039 signed [long|long long|short] int
1043 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
1045 * vax-tdep.h: New file.
1046 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
1047 Make several routines static.
1048 (vax_get_saved_register): New function.
1049 (vax_gdbarch_init): New function.
1050 (_initialize_vax_tdep): Register vax_gdbarch_init.
1051 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
1052 Remove macros now under the control of gdbarch.
1056 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
1057 Some whitespace and coding standards tweaks.
1061 * vax-tdep.c: Include regcache.h.
1062 (vax_call_dummy_words): New.
1063 (sizeof_vax_call_dummy_words): New.
1064 (vax_fix_call_dummy): New function.
1065 (vax_saved_pc_after_call): Ditto.
1066 * config/vax/tm-vax.h: Don't include regcache.h.
1067 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
1068 (CALL_DUMMY): Remove.
1069 (CALL_DUMMY_WORDS): Define.
1070 (SIZEOF_CALL_DUMMY_WORDS): Define.
1071 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
1075 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
1079 * vax-tdep.c (vax_frame_chain): New function.
1080 (vax_push_dummy_frame): Ditto.
1081 (vax_pop_frame): Ditto.
1082 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
1083 (FRAMELESS_FUNCTION_INVOCATION): Use
1084 generic_frameless_function_invocation_not.
1085 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
1086 (POP_FRAME): Use vax_pop_frame.
1090 * vax-tdep.c (vax_store_struct_return): New function.
1091 (vax_extract_return_value): Ditto.
1092 (vax_store_return_value): Ditto.
1093 (vax_extract_struct_value_address): Ditto.
1094 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
1095 vax_store_struct_return.
1096 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
1097 (STORE_RETURN_VALUE): Use vax_store_return_value.
1098 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
1102 * vax-tdep.c (vax_frame_saved_pc): New function.
1103 (vax_frame_args_address_correct): Ditto.
1104 (vax_frame_args_address): Ditto.
1105 (vax_frame_locals_address): Ditto.
1106 (vax_frame_num_args): Move code to be in proximity to
1107 other frame-related functions.
1108 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
1109 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
1110 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
1111 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
1112 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
1116 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
1121 * vax-tdep.c (vax_frame_init_saved_regs): New function.
1122 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
1123 (FRAME_INIT_SAVED_REGS): New macro.
1127 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
1131 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
1133 (fetch_osf_core_registers): Likewise.
1134 (supply_gregset): Likewise.
1138 * symfile.h (get_section_index): Define.
1139 * symfile.c (get_section_index): New function.
1140 * mdebugread.c (SC_IS_SBSS): New macro.
1141 (SC_IS_BSS): Return true for the scBss storage class only, as
1142 the scSBss storage class refers to the .sbss section.
1143 (parse_partial_symbols): Discard the symbols which associated
1144 section does not exist.
1145 Make sure to use the .sbss section index for symbols which
1146 storage class is scBss, rather than using the .bss section index.
1150 * vax-tdep.c: Update copyright years.
1151 (vax_register_name): New function.
1152 (vax_register_byte): Ditto.
1153 (vax_register_raw_size): Ditto.
1154 (vax_register_virtual_size): Ditto.
1155 (vax_register_virtual_type): Ditto.
1156 * config/vax/tm-vax.h: Update copyright years.
1157 (REGISTER_NAMES): Remove.
1158 (REGISTER_NAME): Define.
1159 (REGISTER_BYTE): Use vax_register_byte.
1160 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
1161 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
1162 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
1166 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
1168 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
1172 * arch-utils.c (generic_prologue_frameless_p): Kill
1173 SKIP_PROLOGUE_FRAMELESS_P code.
1174 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
1176 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
1177 * arc-tdep.c (arc_prologue_frameless_p): Implement.
1178 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
1180 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
1181 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
1182 (sparc_gdbarch_init): Pass it to
1183 set_gdbarch_prologue_frameless_p.
1187 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
1188 (alphabsd-nat.o): New dependency list.
1192 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
1194 (alpha-linux-tdep.o): New dependency list.
1195 (alphafbsd-tdep.o): Likewise.
1199 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
1201 * alpha-tdep.c: ...from here.
1202 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
1206 * config/alpha/tm-alpha.h: Move alpha_software_single_step
1207 prototype from here...
1208 * alpha-tdep.h: ...to here.
1212 * frame.h (selected_frame_level): Document as deprecated.
1213 (frame_relative_level): Declare.
1214 * stack.c (frame_relative_level): New function.
1215 (selected_frame_level): Document as deprecated.
1216 (select_frame): Do not set the selected_frame_level.
1218 * stack.c (frame_info, record_selected_frame): Update.
1219 (frame_command, current_frame_command): Update.
1220 (up_silently_base, up_command, down_silently_base): Update.
1221 (down_command): Update.
1222 * inflow.c (kill_command): Update.
1223 * tracepoint.c (finish_tfind_command): Update.
1224 * corelow.c (core_open): Update.
1225 * thread.c (info_threads_command): Update.
1226 (do_captured_thread_select): Update.
1227 * infcmd.c (finish_command): Update.
1228 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
1232 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
1236 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
1241 * alphafbsd-tdep.c: Update copyright years. Include
1243 (alphafbsd_use_struct_convention): Make static.
1244 (alphafbsd_init_abi): New function.
1245 (_initialize_alphafbsd_tdep): New function.
1246 * config/alpha/tm-fbsd.h: Update copyright years.
1247 (USE_STRUCT_CONVENTION): Remove.
1251 * alpha-tdep.c (alpha_abi_handler): New structure to describe
1252 an Alpha ABI variant.
1253 (alpha_abi_handler_list): Declare.
1254 (alpha_gdbarch_register_os_abi): New function.
1255 (alpha_gdbarch_init): Give registered ABI variant handlers a
1256 chance to tweak the gdbarch once we have set up defaults.
1257 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
1261 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
1262 to standard_coerce_float_to_double.
1263 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
1267 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
1268 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
1269 from gdbarch_tdep rather than a constant.
1270 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
1271 the default text address for all Alpha Unix ABIs.
1272 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
1273 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
1277 * alpha-tdep.h: New file. Includes several Alpha target constants
1279 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
1280 let gdbarch deal with.
1281 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
1282 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
1284 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
1285 Alpha target register names.
1286 * alphabsd-nat.c: Likewise.
1287 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
1288 Alpha target register names. Make serveral routines static.
1289 (alpha_get_saved_register): New function.
1290 (alpha_abi_names): New.
1291 (process_note_abi_tag_sections): New function.
1292 (get_elfosabi): New function.
1293 (alpha_gdbarch_init): New function.
1294 (alpha_dump_tdep): New function.
1295 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
1299 * frame.c (find_saved_register): Delete #ifdef
1300 HAVE_REGISTER_WINDOWS code.
1301 * config/sparc/tm-sparc.h: Update comments.
1302 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
1306 * i960-tdep.c (i960_find_saved_register): New function.
1307 (i960_get_saved_register): New function.
1308 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
1309 (i960_get_saved_register): Declare.
1310 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
1314 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
1318 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
1319 instead of NUM_PSEUDO_REGS.
1323 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
1324 GDB_MULTI_ARCH_PARTIAL
1325 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
1326 define, let tm-sp64.h do it.
1330 * frame.c (find_saved_register): Avoid a NULL pointer
1331 dereference and actually walk the frame list.
1335 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
1336 sorted in most most-recent-used order. Document.
1337 * gdbarch.h, gdbarch.c: Regenerate.
1341 * gdbserver/inferiors.c (struct inferior_info): Add regcache_data.
1342 (add_inferior): Call create_register_cache.
1343 (clear_inferiors): Call free_register_cache.
1344 (inferior_regcache_data, set_inferior_regcache_data): New functions.
1345 * gdbserver/regcache.c (struct inferior_regcache_data): New.
1346 (registers): Remove.
1347 (get_regcache): New function.
1348 (create_register_cache, free_register_cache): New functions.
1349 (set_register_cache): Don't initialize the register cache here.
1350 (registers_to_string, registers_from_string, register_data): Call
1352 * gdbserver/regcache.h: Add prototypes.
1353 * gdbserver/server.h: Likewise.
1357 * gdbserver/mem-break.c: New file.
1358 * gdbserver/mem-break.h: New file.
1359 * gdbserver/Makefile.in: Add mem-break.o rule; update server.h
1361 * gdbserver/inferiors.c (struct inferior_info): Add target_data
1363 (clear_inferiors): Free target_data member if set.
1364 (inferior_target_data, set_inferior_target_data): New functions.
1365 * gdbserver/linux-i386-low.c (i386_breakpoint, i386_breakpoint_len)
1366 (i386_stop_pc, i386_set_pc): New. Add to the_low_target.
1367 * gdbserver/linux-low.c (linux_bp_reinsert): New variable.
1368 (struct inferior_linux_data): New.
1369 (linux_create_inferior): Use set_inferior_target_data.
1370 (linux_attach): Likewise. Call add_inferior.
1371 (linux_wait_for_one_inferior): New function.
1372 (linux_wait): Call it.
1373 (linux_write_memory): Add const.
1374 (initialize_low): Call set_breakpoint_data.
1375 * gdbserver/linux-low.h (struct linux_target_ops): Add breakpoint
1377 * gdbserver/server.c (attach_inferior): Remove extra add_inferior
1379 * gdbserver/server.h: Include mem-break.h. Update inferior.c
1381 * gdbserver/target.c (read_inferior_memory)
1382 (write_inferior_memory): New functions.
1383 * gdbserver/target.h (read_inferior_memory)
1384 (write_inferior_memory): Change macros to prototypes.
1385 (struct target_ops): Update comments. Add const to write_memory
1390 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
1392 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
1393 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
1394 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
1400 * gdbtypes.c (init_simd_type): Rewrite using new functions.
1401 (build_builtin_type_vec128): Ditto.
1402 (append_composite_type_field): Fix calculation of type length in
1407 * config/djgpp/README: Update.
1409 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
1414 * alpha-tdep.c (setup_arbitrary_frame): Rename...
1415 (alpha_setup_arbitrary_frame): ...to this.
1416 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
1417 for alpha_setup_arbitrary_frame.
1421 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
1422 * gdbarch.h, gdbarch.c: Regenerate.
1424 * defs.h (breakpoint_from_pc_fn): Delete type definition.
1425 * target.h (memory_breakpoint_from_pc): Update declaration.
1426 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
1428 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
1429 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
1430 * mem-break.c (memory_breakpoint_from_pc): Ditto.
1431 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
1432 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
1433 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
1434 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
1435 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
1436 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
1437 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
1438 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
1439 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
1441 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
1443 * monitor.c (monitor_insert_breakpoint): Ditto.
1444 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
1446 * config/mcore/tm-mcore.h: Update copyright.
1447 * mem-break.c: Ditto.
1448 * xstormy16-tdep.c: Ditto.
1452 * p-exp.y: Add precedence rule for '^' token.
1453 This removes the shift/reduce conflicts.
1454 Remove the comment concerning these shift/reduce conflicts.
1458 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
1459 (registers_powerpc_nofp): New register set for processors
1460 without floating point unit.
1464 * MAINTAINERS: Add myself to write-after-approval.
1468 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
1472 * rs6000-tdep.c (frame_initial_stack_address): Use
1473 frame_register_read to read the alloca_reg.
1477 * frame.c (find_saved_register): Find saved registers in the next
1483 * gdbarch.sh (LANG): Set to ``c''.
1487 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
1491 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
1494 * hpread.c (hpread_get_lntt): Add declaration.
1495 Also fix PR gdb/391.
1499 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
1500 * aclocal.m4, configure: Re-generate.
1505 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
1506 instead of tm_print_insn.
1510 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
1514 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
1515 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
1516 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
1520 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
1521 max_user_call_depth.
1522 (init_cmd_lists): Initialize the new value;
1523 * cli/cli-script.c (execute_user_command): Limit the call depth of
1524 user defined commands. This avoids a core-dump when user commands
1525 are infinitly recursive.
1529 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
1530 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
1531 from tdep struct instead of DEFAULT_LR_SAVE.
1532 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
1533 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
1534 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
1538 * Remote.c: Spelling fix.
1539 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
1540 If no symbol found for "sbrk", try "_sbrk".
1541 (make_output_phdrs): Use bfd_section_name.
1542 (gcore_copy_callback): Use bfd_section_name.
1543 * eval.c: Indentation fix-ups.
1544 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
1545 in case it gets applied to an address that is already
1546 in the instruction space.
1547 * cli/cli-decode.c (help_list): Allow long lines to wrap.
1548 * symfile.c: Fix indentation, long lines.
1549 * source.c: White space fix-up.
1553 * defs.h (read_relative_register_raw_bytes): Delete declaration.
1554 * frame.c (frame_register_read): New function. Return non-zero on
1556 (read_relative_register_raw_bytes_for_frame): Delete.
1557 (read_relative_register_raw_bytes): Delete.
1558 * frame.h (frame_register_read): Declare.
1559 * d30v-tdep.c: Update Copyright. Use frame_register_read.
1561 * infcmd.c (do_registers_info): Ditto.
1562 * hppa-tdep.c: Ditto.
1563 * rs6000-tdep.c: Ditto.
1564 * h8500-tdep.c: Ditto.
1565 * mips-tdep.c: Ditto.
1566 * h8300-tdep.c: Ditto.
1567 * z8k-tdep.c: Ditto.
1572 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
1578 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
1584 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
1585 register sets for these processor variants.
1589 * gdbserver/linux-low.c (usr_store_inferior_registers): Support
1590 registers which are allowed to fail to store.
1591 * gdbserver/linux-low.h (linux_target_ops): Likewise.
1592 * gdbserver/linux-ppc-low.c (ppc_regmap): Support FPSCR.
1593 (ppc_cannot_store_register): FPSCR may not be storable.
1594 * regformats/reg-ppc.dat: Support FPSCR.
1598 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
1599 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
1600 Add fpscr as an invalid/unfetchable register.
1601 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
1602 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
1603 (fill_fpregset): Add support for register fpscr.
1604 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
1605 (fill_gregset): Account for the fact that register ``mq'' might
1607 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
1608 (registers_power): Add fpscr to register set at slot 71.
1609 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
1610 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
1614 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
1615 * configure: Regenerate.
1616 * config.in: Regenerate.
1617 * acconfig.h: Add define for _SYSCALL32.
1618 * core-sol2.c: Remove #define _SYSCALL32.
1619 * solib-legacy.c: Remove #define _SYSCALL32.
1623 * stack.c (select_frame): Cleanup internal error message, do not
1628 * stack.c (select_frame): Check that selected_frame and the
1629 specified level are as expected.
1630 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
1632 * frame.h (struct frame_info): Add field `level'. Update
1634 Work-in-progress PR gdb/464.
1638 * maint.c (maint_print_section_info): Rename print_section_info.
1639 (print_bfd_section_info, print_objfile_section_info): Update.
1640 * inferior.h (struct gdbarch): Add opaque declaration.
1641 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
1642 * gdbarch.h: Regenerate.
1646 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
1647 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
1648 (kernel_u_size): Added.
1649 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
1650 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
1654 * valarith.c (find_size_for_pointer_math): New function, either returns
1655 the size for a pointer's target, returns 1 for void *, or errors for
1657 (value_add, value_sub): use find_size_for_pointer_math.
1661 * linux-low.c (linux_look_up_symbols): New hook.
1662 (linux_target_ops): Add linux_look_up_symbols.
1663 * remote-utils.c (decode_address): New function.
1664 (look_up_one_symbol): New function.
1665 * server.c (handle_query): Call target look_up_symbols hook.
1666 * server.h (look_up_one_symbol): Add prototype.
1667 * target.h (struct target_ops): Add look_up_symbols hook.
1671 * gdbserver/server.h: Include <string.h> if HAVE_STRING_H.
1672 * ChangeLog: Correct paths in last ChangeLog entry.
1676 * gdbserver/linux-low.h: Remove obsolete prototypes.
1677 (struct linux_target_ops): New.
1678 (extern the_low_target): New.
1679 * gdbserver/linux-low.c (num_regs, regmap): Remove declarations.
1680 (register_addr): Use the_low_target explicitly.
1681 (fetch_register): Likewise.
1682 (usr_fetch_inferior_registers): Likewise.
1683 (usr_store_inferior_registers): Likewise.
1684 * gdbserver/linux-arm-low.c (num_regs): Remove.
1685 (arm_num_regs): Define.
1686 (arm_regmap): Renamed from regmap, made static.
1687 (arm_cannot_fetch_register): Renamed from cannot_fetch_register,
1689 (arm_cannot_store_register): Renamed from cannot_store_register,
1691 (the_low_target): New.
1692 * gdbserver/linux-i386-low.c (num_regs): Remove.
1693 (i386_num_regs): Define.
1694 (i386_regmap): Renamed from regmap, made static.
1695 (i386_cannot_fetch_register): Renamed from cannot_fetch_register,
1697 (i386_cannot_store_register): Renamed from cannot_store_register,
1699 (the_low_target): New.
1700 * gdbserver/linux-ia64-low.c (num_regs): Remove.
1701 (ia64_num_regs): Define.
1702 (ia64_regmap): Renamed from regmap, made static.
1703 (ia64_cannot_fetch_register): Renamed from cannot_fetch_register,
1705 (ia64_cannot_store_register): Renamed from cannot_store_register,
1707 (the_low_target): New.
1708 * gdbserver/linux-m68k-low.c (num_regs): Remove.
1709 (m68k_num_regs): Define.
1710 (m68k_regmap): Renamed from regmap, made static.
1711 (m68k_cannot_fetch_register): Renamed from cannot_fetch_register,
1713 (m68k_cannot_store_register): Renamed from cannot_store_register,
1715 (the_low_target): New.
1716 * gdbserver/linux-mips-low.c (num_regs): Remove.
1717 (mips_num_regs): Define.
1718 (mips_regmap): Renamed from regmap, made static.
1719 (mips_cannot_fetch_register): Renamed from cannot_fetch_register,
1721 (mips_cannot_store_register): Renamed from cannot_store_register,
1723 (the_low_target): New.
1724 * gdbserver/linux-ppc-low.c (num_regs): Remove.
1725 (ppc_num_regs): Define.
1726 (ppc_regmap): Renamed from regmap, made static.
1727 (ppc_cannot_fetch_register): Renamed from cannot_fetch_register,
1729 (ppc_cannot_store_register): Renamed from cannot_store_register,
1731 (the_low_target): New.
1732 * gdbserver/linux-s390-low.c (num_regs): Remove.
1733 (s390_num_regs): Define.
1734 (s390_regmap): Renamed from regmap, made static.
1735 (s390_cannot_fetch_register): Renamed from cannot_fetch_register,
1737 (s390_cannot_store_register): Renamed from cannot_store_register,
1739 (the_low_target): New.
1740 * gdbserver/linux-sh-low.c (num_regs): Remove.
1741 (sh_num_regs): Define.
1742 (sh_regmap): Renamed from regmap, made static.
1743 (sh_cannot_fetch_register): Renamed from cannot_fetch_register,
1745 (sh_cannot_store_register): Renamed from cannot_store_register,
1747 (the_low_target): New.
1748 * gdbserver/linux-x86-64-low.c (x86_64_regmap): Renamed from regmap.
1749 (the_low_target): New.
1753 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
1754 override FP_REGNUM with frame->fp. Update copyright.
1755 * parse.c (num_std_regs, std_regs): Delete.
1756 (target_map_name_to_register): Do not search std_regs. Update
1757 function description.
1758 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
1759 declarations. Update copyright.
1764 * gdbserver/Makefile.in: Add stamp-h target.
1765 * gdbserver/configure.in: Create stamp-h.
1766 * gdbserver/configure: Regenerated.
1770 * gdbserver/inferiors.c: New file.
1771 * gdbserver/target.c: New file.
1772 * gdbserver/target.h: New file.
1773 * gdbserver/Makefile.in: Add target.o and inferiors.o. Update
1775 * gdbserver/linux-low.c (inferior_pid): New static variable,
1776 moved from server.c.
1777 (linux_create_inferior): Renamed from create_inferior.
1778 Call add_inferior. Return 0 on success instead of a PID.
1779 (linux_attach): Renamed from myattach.
1780 (linux_kill): Renamed from kill_inferior. Call clear_inferiors ().
1781 (linux_thread_alive): Renamed from mythread_alive.
1782 (linux_wait): Renamed from mywait. Call clear_inferiors () if the
1784 (linux_resume): Renamed from myresume. Add missing ``return 0''.
1785 (regsets_store_inferior_registers): Correct error message.
1786 Add missing ``return 0''.
1787 (linux_fetch_registers): Renamed from fetch_inferior_registers.
1788 (linux_store_registers): Renamed from store_inferior_registers.
1789 (linux_read_memory): Renamed from read_inferior_memory.
1790 (linux_write_memory): Renamed from write_inferior_memory.
1791 (linux_target_ops): New structure.
1792 (initialize_low): Call set_target_ops ().
1793 * gdbserver/remote-utils.c (unhexify): New function.
1794 (hexify): New function.
1795 (input_interrupt): Send signals to ``signal_pid''.
1796 * gdbserver/server.c (inferior_pid): Remove.
1797 (start_inferior): Update create_inferior call.
1798 (attach_inferior): Call add_inferior.
1799 (handle_query): New function.
1800 (main): Call handle_query for `q' packets.
1801 * gdbserver/server.h: Include "target.h". Remove obsolete prototypes.
1802 Add prototypes for "inferiors.c", "target.c", hexify, and unhexify.
1806 * gdbserver/Makefile.in: Add WARN_CFLAGS. Update configury
1808 * gdbserver/configure.in: Check for <string.h>
1809 * gdbserver/configure: Regenerate.
1810 * gdbserver/config.in: Regenerate.
1811 * gdbserver/gdbreplay.c: Include needed system headers.
1812 (remote_open): Remove strchr prototype.
1813 * gdbserver/linux-low.h: Correct #ifdef to HAVE_LINUX_USRREGS.
1814 * gdbserver/regcache.c (supply_register): Change buf argument to const void *.
1815 (supply_register_by_name): Likewise.
1816 (collect_register): Change buf argument to void *.
1817 (collect_register_by_name): Likewise.
1818 * gdbserver/regcache.h: Add missing prototypes.
1819 * gdbserver/remote-utils.c: Include <arpa/inet.h> for inet_ntoa.
1820 * gdbserver/server.c (handle_query): New function.
1821 (attached): New static variable, moved out of main.
1822 (main): Quiet longjmp clobber warnings.
1823 * gdbserver/server.h: Add ATTR_NORETURN and ATTR_FORMAT. Update prototypes.
1824 * gdbserver/utils.c (error): Remove NORETURN.
1829 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
1830 after the last symbol in a block.
1834 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
1835 is non zero as a found symbol.
1839 * findvar.c: Include "builtin-regs.h".
1840 (value_of_register): Call value_of_builtin_reg when applicable.
1841 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
1842 (target_map_name_to_register): Call
1843 builtin_reg_map_name_to_regnum.
1844 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
1845 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
1846 (builtin_regs_h): Define.
1847 (builtin-regs.o): New target.
1848 (findvar.o): Add $(builtin_regs_h).
1849 * builtin-regs.c, builtin-regs.h: New files.
1850 * std-regs.c: New file.
1851 Partial fix for PR gdb/251.
1855 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
1856 it's no longer required.
1860 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
1865 * rs6000-tdep.c (rs6000_software_single_step): Use
1866 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
1867 and size. Use target_insert_breakpoint() and
1868 target_remove_breakpoint() to insert and remove breakpoints
1869 instead of explicit memory reads and writes.
1873 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
1874 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
1875 ELF_OBJECT_FORMAT ifdef.
1880 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
1885 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
1886 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
1890 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
1891 s/asprintf/xasprintf/.
1892 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
1896 I believe Jeff Law denies responsability for this one:
1897 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
1898 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
1899 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
1900 Work-around for PR gdb/366.
1904 * remote-e7000.c (write_small, e7000_read_inferior_memory,
1905 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
1906 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
1910 * sh-tdep.c (sh_fp_frame_init_saved_regs,
1911 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
1916 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
1921 * README (Reporting Bugs in GDB): Document the bug web page as the
1922 prefered way of submitting bugs.
1927 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
1929 * gdbarch.h, gdbarch.c: Re-generate.
1933 * m68klinux-nat.c (fill_fpregset): Properly pass address of
1934 buffer to regcache_collect.
1938 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
1939 * gdbarch.c, gdbarch.h: Re-generate.
1943 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
1944 declaration. Fix -Werror.
1948 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
1949 * gdbarch.c: Regenerate.
1953 * breakpoint.c (clear_command): Rewrite middle section to
1954 combine two loops with identical control conditions.
1955 Add a cleanup to eliminate a memory leak.
1956 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
1960 * solib-svr4.c (bkpt_names): Add "__start".
1964 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
1965 as test for 64 bit target.
1969 * h8500-tdep.c (h8500_write_fp): Delete function.
1970 * dwarf2cfi.c (cfi_write_fp): Document as not used.
1971 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
1972 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
1973 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
1974 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
1975 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
1977 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
1978 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
1979 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
1980 (d10v_write_fp): Delete function.
1981 * inferior.h (write_fp, generic_target_write_fp): Delete
1983 * regcache.c (generic_target_write_fp): Delete function.
1984 (write_fp): Delete function.
1985 * gdbarch.sh (TARGET_WRITE_FP): Delete.
1986 * gdbarch.h, gdbarch.c: Regenerate.
1987 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
1988 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
1989 (sparc64_write_fp): Delete declaration.
1990 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
1991 (h8500_write_fp): Delete declaration.
1995 * sparc-tdep.c (sparc64_write_fp): Delete.
1996 (sparc_push_dummy_frame): Replace write_fp call with code to store
1998 (sparc_gdbarch_init): Do not initialize write_fp.
2002 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
2007 * stack.c (get_selected_block): Add new argument `addr_in_block',
2008 used to return the exact code address we used to select the block,
2010 * blockframe.c (get_frame_block, get_current_block): Same.
2011 * frame.h (get_frame_block, get_current_block,
2012 get_selected_block): Update declarations.
2013 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
2014 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
2018 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
2023 * utils.c (xfullpath): New function.
2024 * defs.h (xfullpath): Add declaration.
2025 * source.c (openp): Use xfullpath in place of gdb_realpath to
2026 avoid resolving the basename part of filenames when the
2027 associated file is a symbolic link. This fixes a potential
2028 inconsistency between the filenames known to GDB and the
2029 filenames it prints in the annotations.
2030 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
2031 to be able to match a filename with either the real filename, or
2032 the name of any symbolic link to this file.
2033 (lookup_partial_symtab): Ditto.
2037 * breakpoint.c: Add support for hardware breakpoints in overlays.
2038 (overlay_events_enabled): New state variable.
2039 (insert_breakpoints): Use overlay_events_enabled to decide
2040 whether to attempt to set a breakpoint at the overlay load addr.
2041 Handle bp_hardware_breakpoint as well as bp_breakpoint.
2042 (remove_breakpoint): Use overlay_events_enabled to decide
2043 whether breakpoints need to be removed from overlay load addr.
2044 Handle bp_hardware_breakpoint as well as bp_breakpoint.
2045 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
2046 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
2047 disable_overlay_breakpoints): Update overlay_events_enabled.
2051 * dwarf2read.c (struct function_range): New.
2052 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
2053 (check_cu_functions): New.
2054 (read_file_scope): Initialize global function lists.
2055 Call dwarf_decode_line after processing children.
2056 (read_func_scope): Add to global function list.
2057 (dwarf_decode_lines): Call check_cu_functions everywhere
2058 record_line is called. Call record_line with a linenumber
2059 of 0 to mark sequence ends.
2063 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
2064 change sync with glibc.
2068 * configure.in: Call AC_C_INLINE.
2069 * configure: Regenerated.
2073 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
2074 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
2078 * NEWS: Mention gcore support on FreeBSD/i386.
2080 * fbsd-proc.c: New file.
2081 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
2082 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
2084 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
2089 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
2090 unescaped newlines in string literals, but newer ones don't. So
2096 * cli/cli-dump.c: New file. Dump memory to file,
2097 restore file to memory.
2098 * cli/cli-dump.h: New file.
2099 * Makefile.in: Add rules, dependencies for cli-dump.o.
2100 * NEWS: Mention new commands.
2104 * symfile.c (symbol_file_add): Move test for null symbols to later.
2108 From veksler at il.ibm.com:
2109 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
2110 the xstrduped original path.
2115 * breakpoint.c (_initialize_breakpoint): Clean up help string.
2116 * infcmd.c (_initialize_infcmd): Ditto.
2117 * language.c (_initialize_language): Ditto.
2118 * symfile.c (_initialize_symfile): Ditto.
2119 * top.c (_init_main): Ditto.
2120 * cli/cli-cmds.c (init_cli_cmds): Ditto.
2124 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
2125 vector registers handling.
2126 (skip_prologue): Handle new AltiVec instructions. Fill in new
2127 fields of frame data.
2128 (frame_get_saved_regs): Fill in information for AltiVec registers.
2132 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
2133 a function; leave this macro here to invoke that function.
2134 (symbol_init_mangled_name): Declaration for that function.
2135 * symtab.c (symbol_init_mangled_name): New function.
2139 * valarith.c: Replace strerror with safe_strerror.
2140 * tracepoint.c: Ditto.
2142 * go32-nat.c: Ditto.
2148 * event-top.c (command_line_handler): Remove useless if.
2152 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
2157 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
2158 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
2159 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
2160 (x86_64_linux_dr_get_status, supply_gregset),
2161 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
2162 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
2163 (x86_64_register_info_table): Add.
2164 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
2165 (x86_64_register_raw_size, x86_64_register_virtual_type),
2166 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
2167 general x86_64_register_info_table.
2168 (i386_gdbarch_init): gdbarch_register_bytes is now set
2169 dynamicaly during initialization.
2170 * regformats/reg-x86-64.dat: Synced with changes to registers above.
2171 * gdbserver/linux-x86-64-low.c: Ditto.
2175 * gdbserver/server.c (main): Call target_signal_to_host_p
2176 and target_signal_to_host on signals received from the remote.
2177 * gdbserver/remote-utils.c (prepare_resume_reply): Call
2178 target_signal_from_host on signals sent to the remote.
2179 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
2180 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
2184 * signals/signals.c: Include "server.h" in gdbserver build.
2185 (target_signal_from_name): Don't use STREQ.
2186 (_initialize_signals): Likewise. Don't include function in
2191 * signals.c: Moved to...
2192 * signals/signals.c: Here.
2193 * Makefile (signals.o): Update.
2197 * somread.c (som_symtab_read): Remove some commented out code and
2198 updated related comments. Do not set the minimal symbol table to
2199 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
2200 in a dynamic executable.
2201 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
2202 where we are unable to find the minimal symbol for the given
2207 * linux-proc.c (read_mapping): Scan up to end of line for filename.
2211 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
2215 * command.h: Update copyright.
2216 (struct cmd_list_element): Replace definition with opaque
2218 (enum cmd_types): Document that it will eventually be moved to
2220 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
2221 (MALLOCED_REPLACEMENT): Delete macro.
2222 * Makefile.in (cli_decode_h): Add $(command_h).
2223 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
2224 * top.c: Include "cli/cli-decode.h".
2225 * completer.c: Include "cli/cli-decode.h".
2226 * maint.c: Include "cli/cli-decode.h".
2227 * cli/cli-decode.h: Include "command.h".
2228 (enum command_class): Delete.
2229 (enum cmd_types): Comment out.
2230 (enum cmd_auto_boolean): Delete.
2231 (enum var_types): Delete.
2235 * cli/cli-decode.c: Include "gdb_assert.h".
2236 (add_set_or_show_cmd): New static function.
2237 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
2238 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
2239 all fields, such as func, from the set command.
2243 * MAINTAINERS (sh-elf): Change warning flag to -w.
2247 * defs.h (error): Add printf format attribute.
2248 * thread-db.c (thread_from_lwp): Fix error format string.
2249 * stack.c (parse_frame_specification): Ditto.
2250 * cli/cli-decode.c (undef_cmd_error): Ditto.
2251 * scm-lang.c (scm_lookup_name): Ditto.
2252 * tracepoint.c (trace_error): Ditto.
2253 * remote-utils.c (usage): Ditto.
2254 * remote.c (compare_sections_command): Ditto.
2259 * gdbtypes.c (append_composite_type_field): New function.
2260 (init_composite_type): New function.
2261 * gdbtypes.h (append_composite_type_field): Declare.
2262 (init_composite_type): Ditto.
2266 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
2268 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
2269 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
2270 structure returning convention for SYSV ABI case, but not
2271 for GNU/Linux, FreeBSD, or NetBSD.
2275 * symtab.h (lookup_block_symbol): Add mangled_name argument
2278 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
2279 with new mangled_name argument.
2280 * linespec.c (decode_line_1): Likewise.
2281 * valops (value_of_this): Likewise.
2282 * symtab.c (lookup_transparent_type): Likewise.
2283 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
2284 (lookup_symbol): If we are given a mangled name, pass it down
2285 to lookup_symbol_aux.
2286 (lookup_block_symbol): If we are given a mangled name to check
2287 against, only return symbols which match it.
2291 * win32-nat.c (child_create_inferior): Check for proper shell to use
2292 here, in case the user changes it on the fly.
2293 (_initialize_inftarg): Remove shell path considerations.
2297 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
2298 for gdbarch_max_register_raw_size and max_register_virtual_size.
2299 Adjust copyright year.
2303 * dbxread.c (process_one_symbol): Extend the first N_SLINE
2304 in a function to cover the entire beginning of the function
2305 as well if it does not already.
2309 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
2310 (rs6000_ptrace64): Renamed from ptrace64.
2314 * gdbserver/remote-utils.c (remote_open): Don't call
2315 getprotobyname, we're all using TCP here so just use
2317 * gdbserver/gdbreplay.c (remote_open): Ditto.
2321 * regcache.c (_initialize_regcache): No need to call
2322 build_regcache() at this time; it gets called whenever
2323 the gdbarch changes.
2327 * sparc-nat.c: Include sys/param.h where possible.
2332 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
2333 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
2334 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
2336 * stabsread.c (rs6000_builtin_type): Likewise.
2337 (read_sun_floating_type): Likewise.
2341 * stabsread.c (read_member_functions): Remove skip code for duplicate
2342 constructor/destructor methods. Use standard parsing for these
2343 methods and just do not chain them to the list of methods after
2348 * coffread.c: Remove redundant static declarations. Replace
2349 occurrences of `PTR' with `void *'.
2350 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
2351 * top.h (quit_cover): Likewise.
2352 * defs.h (catch_errors): Likewise.
2356 * defs.h (XMALLOC): Define.
2357 * gdb-events.sh (XMALLOC): Delete macro.
2358 * gdb-events.c, gdb-events.h: Regenerate.
2359 * gdbarch.sh (XMALLOC): Delete macro.
2360 * gdbarch.c: Regenerate.
2361 * serial.c (XMALLOC): Delete macro.
2362 * ui-file.c (XMALLOC): Ditto.
2363 * ser-unix.h (XMALLOC): Ditto.
2364 * sh-tdep.c (XMALLOC): Ditto.
2365 * ui-out.c (XMALLOC): Ditto.
2366 * utils.c (XMALLOC): Ditto.
2367 * i386-tdep.c (XMALLOC): Ditto.
2368 * gdb-events.c (XMALLOC): Ditto.
2369 * d10v-tdep.c (XMALLOC): Ditto.
2370 * cli-out.c (XMALLOC): Ditto.
2372 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
2373 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
2374 * ui-file.c, ui-out.c: Ditto.
2378 * command.h (struct cmd_list_element): Add field context.
2379 (set_cmd_context, get_cmd_context): Declare.
2380 * cli/cli-decode.h: Ditto.
2381 * cli/cli-decode.c (get_cmd_context): New function.
2382 (set_cmd_context): New function.
2383 (add_cmd): Initialize context.
2384 Part of fixing PR gdb/145 and PR gdb/146.
2388 * cli/cli-decode.c (cmd_type): New function.
2389 * command.h (cmd_type): Declare.
2390 * infrun.c (set_schedlock_func): Call function cmd_type.
2391 * kod.c (kod_set_os): Call cmd_type.
2392 * cris-tdep.c (cris_version_update): Use function cmd_type.
2393 (cris_mode_update, cris_abi_update): Ditto.
2395 * command.h: (execute_cmd_post_hook): Declare.
2396 (execute_cmd_pre_hook): Declare.
2397 * cli/cli-script.c (clear_hook_in_cleanup): New function.
2398 (execute_cmd_post_hook, execute_cmd_pre_hook): New
2399 functions. Execute pre/post hook while ensuring that afterwords
2401 * top.c (execute_command): Use execute_cmd_post_hook, and
2402 execute_cmd_pre_hook to execute pre/post commands.
2403 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
2405 (hook_stop_stub): Call execute_cmd_pre_hook.
2409 * kod.c (kod_set_os): Revert previous change. Is called by ``info
2410 set'' and this leads to a core dump. Move xstrdup of
2411 operating_system to after check that it is not NULL.
2415 * kod.c (kod_set_os): Remove unnecessary check that
2416 ``command->type'' is set_cmd.
2418 * valprint.c (set_input_radix): Use input_radix.
2419 (set_output_radix): Use output_radix.
2420 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
2425 * value.h (struct value): Delete field ``substring_addr''. Change
2426 aligner fields to force_doublest_align, force_longest_align,
2427 force_core_addr_align and force_pointer_aligh.
2429 * value.h (struct value): Fix typo in above change.
2433 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
2434 to fix internal_error from ``maintenance print architecture''.
2438 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
2439 for gcc versions after gcc-2.8.1.
2443 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
2444 for method resolution. Restore adjustment of ``this'' pointer after
2445 calling value_struct_elt, which was accidentally removed during the
2450 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
2452 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
2454 * value.h (value_of_register): Update.
2458 * configure.in: Detect declaration for canonicalize_file_name.
2459 * utils.c (canonicalize_file_name): Declare, if needed.
2460 (gdb_realpath): Prefer realpath if available and usable.
2461 * config.in, configure: Rebuild.
2465 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
2466 a constant array bound.
2468 * MAINTAINERS: Add myself to write-after-approval.
2472 * symfile.c (syms_from_objfile): Return immediately if no syms.
2473 (symbol_file_add): Return immediately if no syms.
2474 (find_sym_fns): Return immediately if no syms.
2478 * gdbserver/remote-util.c (remote_open): Print remote-side's
2479 IP address when remote debugging over the network.
2483 * config/sparc/fbsd.mh: Fix copyright.
2484 * config/sparc/fbsd.mt: Likewise.
2488 * MAINTAINERS: Fix typo in name of gdb warnings option.
2489 (x86-64): Fix formating so that this can be parsed by awk.
2493 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
2494 * defs.h: Include "gdb/signals.h".
2495 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
2499 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
2500 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
2506 * mips-tdep.c (ST0_FR): Define.
2507 (mips2_fp_compat): New function, temporarily disabled.
2508 (mips_read_fp_register_single): New function.
2509 (mips_read_fp_register_double): New function.
2510 (mips_print_register): Use them.
2511 (do_fp_register_row): Likewise.
2515 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
2520 * stabsread.c (read_member_functions): Fix is_stub test for
2521 static member functions, improve comment.
2525 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
2526 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
2527 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
2528 commands that set boolean values.
2529 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
2530 (arm_rdi_resume): Always initialize PC.
2531 (arm_rdi_open): Don't use rslt as a boolean.
2532 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
2533 (arm_rdi_fetch_registers, arm_rdi_store_registers)
2534 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
2535 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
2539 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
2540 * configure: Rebuilt.
2544 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
2545 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
2549 * cli/cli-decode.c (set_cmd_completer): New function.
2550 * command.h (set_cmd_completer): Declare.
2551 * cli/cli-decode.h (set_cmd_completer): Ditto.
2553 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
2554 * cli/cli-cmds.c (init_cli_cmds): Ditto.
2555 * win32-nat.c (_initialize_inftarg): Ditto.
2556 * remote-rdi.c (_initialize_remote_rdi): Ditto.
2557 * proc-api.c (_initialize_proc_api): Ditto.
2558 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
2559 * source.c (_initialize_source): Ditto.
2560 * exec.c (_initialize_exec): Ditto.
2561 * solib.c (_initialize_solib): Ditto.
2562 * top.c (init_main): Ditto.
2563 * tracepoint.c (_initialize_tracepoint): Ditto.
2564 * symfile.c (_initialize_symfile): Ditto.
2565 * printcmd.c (_initialize_printcmd): Ditto.
2566 * infcmd.c (_initialize_infcmd): Ditto.
2567 * corefile.c (_initialize_core): Ditto.
2571 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
2575 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
2579 * NEWS: Update headings, 5.2 has branched.
2583 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
2584 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
2585 (register_addr, REGISTER_RAW_SIZE): Likewise.
2586 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
2587 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
2591 * MAINTAINERS (x86-64): Add myself.
2592 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
2593 changed value_ptr -> struct value *
2597 * configure.host (sparc64-*-freebsd): Add.
2598 * configure.tgt: Likewise.
2599 * config/sparc/fbsd.mh: New file.
2600 * config/sparc/fbsd.mt: Likewise.
2601 * config/sparc/nm-fbsd.h: Likewise.
2602 * config/sparc/tm-fbsd.h: Likewise.
2606 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
2607 regformats/reg-s390x.dat.
2611 * utils.c: Add FIXME explaining true/false problem.
2615 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
2619 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
2623 * gdbserver/linux-s390-low.c: New file.
2624 * regformats/reg-s390.dat: New file.
2625 * regformats/reg-s390x.dat: New file.
2626 * gdbserver/configure.srv: Add S/390.
2627 * gdbserver/Makefile.in: Add S/390.
2628 * configure.tgt: Enable gdbserver for S/390.
2632 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
2633 first line of the doc string for "info dos", except at the end of
2634 the sentence, since the short help stops at the first period.
2638 * dwarf2read.c (dwarf_cfi_name): Add new codes.
2642 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
2643 comment (dumy -> dummy).
2647 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
2651 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
2655 * gdbserver/acconfig.h: New file.
2656 * gdbserver/i387-fp.c: New file.
2657 * gdbserver/i387-fp.h: New file.
2658 * gdbserver/linux-x86-64.c: New file.
2659 * regformats/reg-x86-64.dat: New file.
2660 * configure.tgt: Add x86_64-*-linux* gdbserver support.
2661 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
2662 * gdbserver/configure.in: Add support for regsets.
2663 * gdbserver/config.in: Regenerate.
2664 * gdbserver/configure: Regenerate.
2665 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
2666 * gdbserver/linux-low.h: New file.
2667 * gdbserver/linux-low.c: Include "linux-low.h". Add support
2669 * gdbserver/linux-arm-low.c: Include "linux-low.h".
2670 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
2671 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
2672 * gdbserver/linux-mips-low.c: Include "linux-low.h".
2673 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
2674 * gdbserver/linux-sh-low.c: Include "linux-low.h".
2675 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
2676 "i387-fp.h". Add PTRACE_GETREGS and friends.
2677 * gdbserver/regcache.c (supply_register): New function.
2678 (supply_register_by_name): New function.
2679 (collect_register): New function.
2680 (collect_register_by_name): New function.
2684 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
2685 (config.status): Add configure.srv dependency.
2686 (server_h): Add config.h dependency.
2690 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
2691 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
2692 * gdbserver/configure.srv: Change i386-*-linux* to use
2697 * x86-64-tdep.c: Re-indent. Update copyright date.
2702 * x86-64-tdep.c (value.h): Delete.
2703 (gdb_assert.h): Include.
2704 (x86_64_register_convert_to_virtual,
2705 x86_64_register_convert_to_raw ): Add check which lets only
2706 floating-point values to be converted.
2707 (value_push): Delete.
2708 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
2709 (i386_gdbarch_init): Number of register_bytes fixed.
2713 * MAINTAINERS: Add x86-64 target.
2717 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
2718 * osfsolib.c (solib_map_sections): Ditto.
2719 * irix5-nat.c (solib_map_sections): Ditto.
2720 * corelow.c (gdb_check_format): Ditto.
2721 * symfile.c (symfile_bfd_open): Ditto.
2722 * solib.c (solib_map_sections): Ditto.
2727 * remote.c (_initialize_remote): By default, disable ``e'' and
2728 ``E'' step out-of-range packets.
2732 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
2733 m68k_linux_frame_saved_pc.
2734 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
2736 (SIGCONTEXT_PC_OFFSET): Remove.
2737 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
2738 m68k_linux_sigtramp_saved_pc): New functions.
2739 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
2740 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
2741 (UCONTEXT_PC_OFFSET): Define.
2742 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
2743 non-RT and RT signal trampolines.
2747 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
2748 (TARGET_NBPG, STACK_END_ADDR): Delete
2749 (VARIABLES_INSIDE_BLOCK): Delete.
2753 * utils.c (perror_with_name): Make string parameter constant.
2754 (print_sys_errmsg): Ditto.
2756 * defs.h (perror_with_name): Update.
2757 (print_sys_errmsg): Update.
2763 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
2767 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
2768 if it already matches the current architecture from the exec file.
2769 Include arch-utils.h for gdbarch_info_init prototype.
2770 * Makefile.in (rs6000-nat.o): Update dependencies.
2774 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
2775 list of exported variables.
2779 * gdbserver/configure.srv: New file.
2780 * gdbserver/configure.in: Use configure.srv instead
2781 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
2783 * gdbserver/configure: Regenerated.
2784 * gdbserver/terminal.h: New file.
2785 * gdbserver/Makefile.in: Update for configure changes. Remove
2786 more unneeded include paths.
2790 From wiz at danbala:
2791 * config/sparc/tm-sp64.h: Fix grammar and typos.
2796 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
2797 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
2798 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
2799 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
2800 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
2801 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
2802 * s390-tdep.c: Ditto.
2803 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
2804 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
2805 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
2806 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
2807 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
2808 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
2809 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
2810 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
2811 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
2812 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
2817 * lin-thread.c: Delete file.
2818 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
2819 to gdb_proc_service.h.
2820 * configure: Re-generate.
2822 * ocd.c (ocd_open): Do not try to open the "ocd" device.
2823 * serial.c (serial_open): Delete check for "ocd".
2826 * Makefile.in (linux-thread.o): Delete target.
2827 * linux-thread.c: Delete file.
2829 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
2830 renamed SH files to be consistent.
2832 * symtab.c (sort_search_symbols): Use xfree.
2836 * arm-linux-tdep.c (arm_linux_init_abi): Register
2837 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
2838 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
2839 definition with undef, since we don't want the sysvr4 definition.
2840 (SKIP_TRAMPOLINE_CODE): Likewise.
2846 * configure.in: (AC_CHECK_FUNCS) Added test for
2847 canonicalize_file_name Regenerated.
2848 * config.in, configure: Regenerated.
2849 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
2850 defined use canonicalize_file_name.
2854 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
2858 * README: Remove references to cygnus.com.
2859 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
2860 dot com'' form. Remove references to cygnus.com and sourceware.
2865 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
2866 1003.1-2001 no longer allows "head -1".
2867 * gdb/Makefile.in (version.c): Likewise.
2868 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
2869 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
2870 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
2874 * cli/cli-decode.c (cmd_cfunc_eq): New function.
2875 * command.h (cmd_cfunc_eq): Declare.
2876 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
2878 * cli/cli-cmds.h (is_complete_command): Change parameter to a
2879 ``struct cmd_list_element *''.
2880 * cli/cli-cmds.c (is_complete_command): Update. Use
2882 * top.c (execute_command): Pass the command to
2883 is_complete_command.
2884 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
2889 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
2890 architecture defines.
2891 * s390-tdep.c (s390_gdbarch_init): Likewise.
2895 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
2896 (arm_linux_push_arguments): Likewise.
2897 (arm_linux_init_abi): Register them. Also register linux-specific
2899 (find_minsym_and_objfile): Use strcmp, not STREQ.
2900 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
2901 (arm_linux_call_dummy_words): Delete declaration.
2902 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
2903 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
2905 (LOWEST_PC): Delete.
2909 * maint.c (print_section_info): Do not prepend `0x' to filepos
2910 output, it will be handled by local_hex_string_custom.
2914 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
2915 (store_newfpe_double, store_newfpe_extended, store_fpregister)
2916 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
2920 Indicate that the bcache functions don't change the strings
2922 * bcache.h (bcache, hash): Add `const' keywords to declarations.
2923 * bcache.c (bcache, hash): Add `const' keywords to definitions.
2927 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
2931 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
2932 find the complete path to a loaded DLL.
2936 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
2937 that marks the end of the range of a function, enter a line number
2938 entry that has a line number of zero and a PC offset that matches
2939 the end of the function. This starts a range of PC's for which no
2940 line number information is known.
2941 * symtab.c (find_pc_sect_line): If our best fit is in a range of
2942 PC's for which no line number info is found (line number is zero)
2943 then we didn't find any valid line information.
2944 * symtab.h: Document use of zero line number entry.
2948 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
2949 (have_ptrace_getvrregs): Define for run time checks.
2950 (gdb_vrregset_t): New type for Altivec register handling.
2951 (fetch_register, store_register): Fetch/store altivec register
2953 (fetch_altivec_register, store_altivec_register): New functions.
2954 (supply_vrregset, fill_vrregset): New functions.
2955 (fetch_altivec_registers, store_altivec_registers): New functions.
2956 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
2961 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
2965 * Makefile.in (armnbsd-nat.o): Update dependencies.
2966 * armnbsd-nat.c (supply_gregset): New function. Common code to
2967 supply the integer register set.
2968 (supply_fparegset): New function. Similar for FPA registers.
2969 (fetch_regs, fetch_fp_regs): Use them.
2970 (fetch_core_registers): Likewise.
2971 (fetch_elfcore_registers): New function.
2972 (arm_netbsd_elfcore_fns): New core-file type specification.
2973 (_initialize_arm_netbsd_nat): Register it.
2977 * armnbsd-nat.c: Include gdbcore.h.
2978 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
2979 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
2980 'void' to declaration, to shut up ARI.
2981 (fetch_core_registers): Make static. Rewrite using supply_register.
2982 (arm_netbsd_core_fns): New core-file type specification.
2983 (_initialize_arm_netbsd_nat): New function.
2987 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
2992 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
2997 * jv-exp.y (parse_number): Change type of implicit longs
2998 to builtin_type_uint64.
3002 * gdbserver/linux-low.c (mywait): Change argument to waitpid
3003 to be an integer instead of a `union wait'.
3007 * mips-linux-nat.c: Call the operating system GNU/Linux.
3008 * mips-linux-tdep.c: Likewise.
3009 * mips-tdep.c: Likewise.
3014 * jv-exp.y (parse_number): Handle 64-bit integers.
3018 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
3019 AC_STDC_HEADERS to AC_HEADER_STDC.
3020 * gdbserver/configure: Regenerated.
3024 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
3026 * sparc-tdep.c (get_longjmp_target): Likewise.
3030 * News: Add news about ARM and Multi-arch. Mention the new target
3035 * stabsread.c (error_type_complaint): Improve error message.
3039 * gdbserver/README: Update documentation.
3040 * gdbserver/configure.in: Update configury to match documentation.
3041 * gdbserver/Makefile.in: Likewise.
3042 * gdbserver/configure: Regenerated.
3043 * gdbserver/aclocal.m4: New file, generated by aclocal.
3044 * gdbserver/config.in: New file, generated by autoheader.
3048 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
3053 * arm-tdep.h (enum arm_float_model): New enum.
3054 (struct gdbarch_tdep): Add fp_model.
3055 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
3056 up floating-point conversions until we know the floating-point model
3057 in use by the inferior. Don't complain about being unable to
3058 determine the ABI of the inferior when we don't have one.
3059 (arm_extract_return_value): Support different floating-point models.
3060 (arm_store_return_value): Likewise.
3061 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
3063 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
3067 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
3068 of ``current_gdbarch''.
3072 * armnbsd-nat.c : ANSIfy all function declarations.
3073 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
3074 (fetch_inferior_registers): Re-implement in terms of above.
3075 (store_register, store_regs, store_fp_register, store_fp_regs): New.
3076 (store_inferior_registers): Re-implement in terms of above.
3080 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
3082 * arm-linux-tdep.c: Likewise.
3083 * config/arm/tm-linux.h: Likewise.
3087 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
3088 * config/arm/nbsd.mt (TM_FILE): Delete.
3089 * config/arm/tm-nbsd.h: Delete.
3093 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
3094 Initialize CALL_DUMMY_LENGTH.
3098 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
3100 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
3101 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
3102 defines one thing and that is incorrect for this port.
3103 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
3107 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
3111 * win32-nat.c (display_selector): New function. Displays information
3112 about the information returned by GetThreadSelectorEntry API function.
3113 (display_selectors): New function. Displays the infomation of
3114 the selector given as argument, or of CS, DS ans FS selectors
3115 if no argument is given.
3116 ( _initialize_inftarg): Add "w32" as info prefix command.
3117 Add "info w32 selector" as command calling display_selectors.
3121 * i386-tdep.c (get_longjmp_target): Fix compilation failure
3122 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
3127 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
3131 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
3132 (arm_fix_call_dummy): Call it.
3133 (arm_call_dummy_breakpoint_offset): Delete.
3134 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
3135 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
3139 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
3140 Default to func_frame_chain_valid.
3141 * gdbarch.h, gdbarch.c: Re-generate.
3142 * frame.h (FRAME_CHAIN_VALID): Delete definition.
3146 * ppc-linux-nat.c: Update copyright.
3147 (fetch_register, store_register): Add tid parameter, don't compute
3149 (fetch_ppc_registers, store_ppc_registers): Add tid
3150 parameter. Pass it along to callees.
3151 (fetch_inferior_registers, store_inferior_registers): Compute tid
3152 here, and pass it to calleed functions.
3153 (fill_gregset, supply_fpregset): Clean up formatting.
3157 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
3158 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
3162 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
3163 * gdbarch.c gdbarch.h: Regenerate.
3164 * breakpoint.c (create_longjmp_breakpoint): Always compile this
3166 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
3167 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
3168 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
3170 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
3171 * arm-tdep.c (arm_get_longjmp_target): New function.
3172 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
3173 this to a positive value register arm_get_longjmp_target as the
3175 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
3176 (arm_linux_init_abi): Set up longjmp description in tdep.
3177 * armnbsd-nat.c (get_longjmp_target): Delete.
3178 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
3179 description in tdep.
3180 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
3181 (get_longjmp_target): Delete declaration.
3182 (GET_LONGJMP_TARGET): Delete.
3183 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
3184 (GET_LONGJMP_TARGET): Delete.
3189 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
3190 of ``current_gdbarch''.
3194 * cli/cli-cmds.c (compare_strings): New function.
3195 (complete_command): Only print each unique item once.
3196 * completer.h (complete_line): Declare.
3197 * completer.c (complete_line): New function.
3198 (line_completion_function): Use it.
3202 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
3203 * gdbarch.h, gdbarch.c: Re-generate.
3207 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
3212 * valops.c (value_arg_coerce): Don't take the address of a reference
3213 to convert an argument to a reference.
3217 * win32-nat.c (get_image_name): New function.
3218 (handle_load_dll): Use get_image_name function.
3219 (get_child_debug_event): Avoid registering debug events until possibly
3220 execed process is started.
3221 (child_create_inferior): Allow invocation via shell so that command
3222 line redirection, etc. works ok.
3223 (_initialize_inftarg): Add new command: "set shell" to control whether
3224 a shell is used to start a process.
3228 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
3229 instead of find_register_by_number.
3230 (cannot_store_register): Likewise.
3234 * dwarf2read.c: Replace fprintf (stderr, ...) by
3235 fprintf_unfiltered (gdb_stderr, ...).
3239 * gdbserver/gdbserver.1: Document --attach.
3243 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
3245 * arm-tdep.c (arm_default_arm_le_breakpoint)
3246 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
3247 (arm_default_thumb_be_breakpoint): New. Initialize them from
3248 traditional breakpoint defines.
3249 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
3250 (arm_gdbarch_init): Initialize new breakpoint variables.
3251 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
3252 (arm_linux_init_abi): Initialize linux-specific breakpoint.
3253 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
3254 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
3256 (arm_netbsd_init_abi_common): ... here; new function.
3257 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
3258 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
3259 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
3260 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
3264 * arm-tdep.h (enum arm_abi): New enum.
3265 (struct gdbarch_tdep): New structure.
3266 (LOWEST_PC): Provide a default.
3267 (arm_gdbarch_register_os_abi): Declare new function.
3268 * arm-tdep.c (arm_abi_names): New array.
3269 (process_note_abi_tag_sections): New function.
3270 (get_elfosabi): New function.
3271 (arm_gdbarch_register_os_abi): New function.
3272 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
3273 support for that ABI has been built in, then call the appropriate
3274 configuration routine. Use gdbarch_num_regs() to get the number
3276 (arm_dump_tdep): New function.
3277 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
3278 place-holder functions.
3279 (_initialize_arm_tdep): Register them.
3280 * config/arm/tm-arm.h (LOWEST_PC): Delete.
3282 * armnbsd-tdep.c: New file.
3283 * Makefile.in (armnbsd-tdep.o): Add dependencies.
3284 * config/arm/nbsd.mt (TDEPFILES): Add it.
3285 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
3287 * armnbsd-nat.c: Include regcache.h.
3288 * Makefile.in (armnbsd-nat.o): Update dependency list.
3290 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
3294 * gdbserver/Makefile.in: Fix typos in target rules.
3298 Fix part of PR gdb/267.
3299 * linespec.c (find_methods): Handle constructors specially for now.
3303 * arm-tdep.c (arm_push_arguments): Eliminate special float type
3305 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
3306 standard_coerce_float_to_double().
3310 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
3315 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
3316 find_variant_by_name, because it confuses the multiarch
3317 framework. Return NULL if there isn't an architecture with the
3318 user supplied name, instead of forcing a different one without
3319 recording the change with the multiarch machinery.
3320 (find_variant_by_name): Delete.
3324 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
3325 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
3329 * stack.c (print_frame_info_base): When calling
3330 print_frame_info_listing_hook, set current_source_symtab.
3334 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
3335 and remove unused $(INCLUDE_DIR).
3336 Add regcache.c to OBS.
3337 Add generated register protocol files to clean target.
3338 Update dependencies for new objects, obsolete old target code.
3340 * gdbserver/linux-low.c: Remove all platform-specific code to
3341 new files. Remove various dead code. Update to use regcache
3343 * gdbserver/remote-utils.c (fromhex): Add return statement
3345 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
3347 (input_interrupt): Add integer parameter to match prototype
3348 of a signal handler.
3349 (outreg): Use register_data ().
3350 (prepare_resume_reply): Use gdbserver_expedite_regs.
3351 * gdbserver/server.c (main): Dynamically allocate own_buf because
3352 PBUFSIZ is no longer constant. Use registers_to_string () and
3353 registers_from_string ().
3354 * gdbserver/server.h: No longer include "defs.h". Add prototypes
3355 for error (), fatal (), and warning (). Update definition of
3356 PBUFSIZ to use regcache functionality. Add include guard.
3357 * gdbserver/utils.c (fatal): Add missing ``const''.
3358 (warning): New function.
3360 * regformats/regdat.sh: Include "regcache.h" in generated files.
3361 Provide init_registers () function.
3362 * regformats/regdef.h: Add prototype for set_register_cache ().
3365 * gdbserver/linux-arm-low.c: New file.
3366 * gdbserver/linux-i386-low.c: New file.
3367 * gdbserver/linux-ia64-low.c: New file.
3368 * gdbserver/linux-m68k-low.c: New file.
3369 * gdbserver/linux-mips-low.c: New file.
3370 * gdbserver/linux-ppc-low.c: New file.
3371 * gdbserver/linux-sh-low.c: New file.
3373 * gdbserver/regcache.c: New file.
3374 * gdbserver/regcache.h: New file.
3376 * gdbserver/low-linux.c: Removed obsolete file.
3380 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
3381 * config/i386/linux.mt: Likewise.
3382 * config/ia64/linux.mt: Likewise.
3383 * config/m68k/linux.mh: Likewise.
3384 * config/powerpc/linux.mh: Likewise.
3385 * config/mips/linux.mt: Likewise.
3387 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
3389 * config/i386/i386lynx.mh: Mark gdbserver variables
3390 as (currently) obsolete for this target.
3391 * config/i386/nbsd.mt: Likewise.
3392 * config/i386/nbsdelf.mt: Likewise.
3393 * config/m32r/m32r.mt: Likewise.
3394 * config/m68k/m68klynx.mh: Likewise.
3395 * config/m68k/nbsd.mt: Likewise.
3396 * config/m68k/sun3os4.mh: Likewise.
3397 * config/mips/vr5000.mt: Likewise.
3398 * config/ns32k/nbsd.mt: Likewise.
3399 * config/pa/hppabsd.mh: Likewise.
3400 * config/pa/hppaosf.mh: Likewise.
3401 * config/powerpc/nbsd.mt: Likewise.
3402 * config/rs6000/rs6000lynx.mh: Likewise.
3403 * config/s390/s390.mt: Likewise.
3404 * config/s390/s390x.mt: Likewise.
3405 * config/sparc/sparclynx.mh: Likewise.
3406 * config/sparc/sun4os4.mh: Likewise.
3407 * config/i386/x86-64linux.mt: Likewise.
3408 * config/sparc/linux.mh: Likewise.
3412 * configure.tgt: Configure gdbserver only for known working
3413 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
3414 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
3415 SUBDIRS if it is configured. Update comment for ${nativefile}.
3416 * configure: Regenerated.
3420 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
3422 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
3423 (default_gcore_mach): Just return 0, work around a problem in bfd.
3424 (default_gcore_target): OK to return NULL if exec_bfd is null.
3425 (make_mem_sec): Use a cast, avoid a warning.
3427 * procfs.c (find_memory_regions_callback): Use a cast instead of
3428 calling host_pointer_to_address (which complains if
3429 sizeof (host pointer) != sizeof (target pointer)).
3430 (procfs_make_note_section): Avoid overflow in psargs string.
3432 * procfs.c (procfs_make_note_section): Make the default
3433 implementation return an error.
3437 * procfs.c (procfs_make_note_section): Provide a default definition
3438 (for alpha-dec-osf4.0f). Fix typos.
3442 * linux-proc.c: Add include of regcache.h.
3443 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
3448 * memattr.c (create_mem_region): Disallow useless empty region.
3449 Regions are half-open intervals, so allow [A..B) [B..C) as
3454 * defs.h: Kill CONST_PTR.
3455 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
3456 * c-lang.c (c_builtin_types): Likewise.
3457 * ch-lang.c (ch_builtin_types): Likewise.
3458 * f-lang.c (f_builtin_types): Likewise.
3459 * language.c (unknown_builtin_types): Likewise.
3460 * m2-lang.c (m2_builtin_types): Likewise.
3461 * p-lang.c (pascal_builtin_types): Likewise.
3462 * scm-lang.c (c_builtin_types): Likewise.
3466 * arm-tdep.h (arm_get_next_pc): Add declaration.
3470 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
3471 with other related struct-returning functions.
3472 (arm_extract_struct_value_address): New function.
3473 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
3474 initialize float_format, double_format and long_double_format as
3475 appropriate to the endianness of the target.
3476 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
3477 (arm_use_struct_convention): Delete declaration.
3478 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
3482 * defs.h (core_addr_to_string_nz): New function.
3486 Apply missing bits of 2002-01-15 patch.
3487 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
3488 (fill_fpregset): Use i387_fill_fsave.
3492 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
3493 (core_addr_to_string_nz): New function.
3497 * arm-linux-nat.c: Really include arm-tdep.h.
3498 * config/arm/tm-linux.h (struct type, struct value): Declare.
3502 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
3503 (gcore section): Ifdef for Solaris and Unixware only.
3504 (procfs_do_thread_registers): Unixware needs one lwpstatus
3505 per thread (not one prstatus or pstatus).
3506 (procfs_make_note_section): Iterate only over kernel threads (lwps),
3507 not over all gdb threads. For unixware, call elfcore_write_pstatus
3508 once before iterating over threads.
3512 * arm-tdep.h: New file.
3513 * arm-tdep.c: Include arm-tdep.h.
3514 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
3515 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
3516 (arm_print_float_info, arm_register_type, convert_to_extended)
3517 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
3518 (arm_extract_return_value, arm_register_name): Make static.
3519 (arm_software_single_step): Similarly. Fix types in declaration.
3520 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
3521 (arm_store_return_value, arm_store_struct_return): New functions.
3522 (arm_gdbarch_init): Register the above functions. Also register
3523 call_dummy_start_offset, sizeof_call_dummy_words,
3524 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
3525 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
3526 max_register_virtual_size, register_size. Set up
3527 prologue_cache.saved_regs here, rather than ...
3528 (_initialize_arm_tdep): ... here.
3529 * config/arm/tm-arm.h (struct type, struct value): Delete forward
3531 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
3532 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
3533 (arm_print_float_info, arm_register_type, convert_to_extended)
3534 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
3535 (arm_extract_return_value, arm_register_name): Delete declarations.
3536 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
3537 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
3538 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
3539 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
3540 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
3541 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
3542 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
3543 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
3544 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
3545 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
3546 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
3547 (arm_get_next_pc): No-longer static -- these are needed by the RDI
3549 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
3550 * remote-rdi.c remote-rdp.c: Likewise.
3551 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
3552 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
3553 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
3556 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
3557 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
3558 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
3559 from non-ARM_ prefixed definitions.
3560 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
3562 * remote-rdi.c remote-rdp.c: Likewise.
3563 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
3567 * arm-tdep.c (arm_frameless_function_invocation)
3568 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
3569 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
3570 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
3571 (arm_pop_frame, arm_get_next_pc): Make static.
3572 (arm_gdbarch_init): Register above in gdbarch structure.
3573 (arm_read_fp): Renamed from arm_target_read_fp.
3574 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
3575 * config/arm/tm-arm.h (arm_frameless_function_invocation)
3576 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
3577 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
3578 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
3579 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
3580 (arm_pc_is_thumb_dummy): Delete declarations.
3581 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
3582 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
3583 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
3584 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
3588 * symtab.c (compare_search_syms): New function.
3589 (sort_search_symbols): New function.
3590 (search_symbols): Sort symbols after searching rather than
3595 * NEWS: Linux -> GNU/Linux.
3599 * gdbarch.sh: For for level one methods, disallow a definition
3600 when partially multi-arched. Add comments explaining rationale.
3601 * gdbarch.h: Re-generate.
3605 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
3610 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
3612 * gdbarch.c: Re-generate.
3616 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
3617 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
3622 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
3624 (PUSH_ARGUMENTS): Switch to using predefault.
3625 * gdbarch.c: Regenerate.
3629 * valops.c (PUSH_ARGUMENTS): Delete definition.
3630 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
3631 partial. Default to default_push_arguments.
3632 * gdbarch.h, gdbarch.c: Regenerate.
3636 * defs.h (throw_exception): Rename return_to_top_level. Update
3638 * utils.c (error_stream, internal_verror, quit): Ditto.
3639 * top.c (throw_exception, catcher): Ditto.
3640 * sparclet-rom.c (sparclet_load): Ditto.
3641 * remote.c (interrupt_query, minitelnet): Ditto.
3642 * remote-sds.c (interrupt_query): Ditto.
3643 * remote-mips.c (mips_error, mips_kill): Ditto.
3644 * ocd.c (interrupt_query): Ditto.
3645 * monitor.c (monitor_interrupt_query): Ditto.
3646 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
3647 * target.h: Update comment.
3649 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
3653 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
3654 default_double_format.
3655 * gdbarch.h, gdbarch.c: Re-generate.
3656 * findvar.c (floatformat_unknown): Delete variable definition.
3657 * doublest.h (floatformat_unknown): Delete variable declaration.
3661 * stabsread.c (read_type): Add code to parse Sun's syntax for
3662 prototyped function types.
3666 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
3667 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
3671 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
3672 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
3673 now _initialize_xcoffsolib gets called again and overrides the
3674 commands from solib.c in a native configuration.
3678 * doublest.c (store_typed_floating): Don't try to return a value.
3683 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
3684 is prototyped and has no arguments, print its argument list as
3689 * MAINTAINERS (write-after-approval): Add myself.
3690 (paper-trail): I've escaped!
3694 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
3696 (_initialize_check_for_gdb_ini): Ditto.
3700 * win32-nat.c (cygwin_pid_to_str): Fix typo.
3701 xaprintf -> xasprintf.
3705 * win32-nat.c: Remove use of printf and sprintf functions.
3709 * arm-tdep.c (arm_frame_chain_valid): Make static.
3710 (arm_push_arguments): Likewise.
3711 (arm_gdbarch_init): New function.
3712 (_initialize_arm_tdep): Call it.
3713 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
3714 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
3715 (FRAME_CHAIN_VALID): Delete.
3716 (arm_frame_chain_valid): Delete declaration.
3717 (PUSH_ARGUMENTS): Delete.
3718 (arm_push_arguments): Delete declaration.
3719 (CALL_DUMMY_P): Delete.
3724 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
3725 on builtin float types.
3729 * utils.c: Include <curses.h> before "bfd.h".
3730 * tui/tui-hooks.c: Likewise.
3731 * tui/tui.c: Likewise.
3732 * tui/tuiCommand.c: Likewise.
3733 * tui/tuiData.c: Likewise.
3734 * tui/tuiDataWin.c: Likewise.
3735 * tui/tuiDisassem.c: Likewise.
3736 * tui/tuiGeneralWin.c: Likewise.
3737 * tui/tuiIO.c: Likewise.
3738 * tui/tuiLayout.c: Likewise.
3739 * tui/tuiRegs.c: Likewise.
3740 * tui/tuiSource.c: Likewise.
3741 * tui/tuiSourceWin.c: Likewise.
3742 * tui/tuiStack.c: Likewise.
3743 * tui/tuiWin.c: Likewise.
3747 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
3748 to include space for pseudoregs as well. Update loops accordingly.
3749 (sh_fp_frame_init_saved_regs): Ditto.
3750 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
3754 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
3755 Add Richard Earnshaw to Arm maintainers.
3759 * defs.h (warning_begin): Delete declaration.
3761 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
3766 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
3767 Logic bug, remove misplaced else.
3771 * fork-inferior.c (fork_inferior): Add '!' to the list of
3772 characters that need to be quoted when building a string for the
3773 shell. Quote '!' specifically with a backslash, since CSH chokes
3774 when trying to evaluate "str!str".
3778 * rdi-share/host.h: Only provide a typedef for bool if it is not
3783 * breakpoint.h (enum bptype): Add new overlay event bp type.
3784 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
3786 * breakpoint.c (create_internal_breakpoint): New function.
3787 (internal_breakpoint_number): Moved into create_internal_breakpoint.
3788 (create_longjmp_breakpoint): Use create_internal_breakpoint.
3789 (create_thread_event_breakpoint): Ditto.
3790 (create_solib_event_breakpoint): Ditto.
3791 (create_overlay_event_breakpoint): New function.
3792 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
3793 (update_breakpoints_after_exec): Delete and re-initialize
3794 overlay event breakpoints after an exec. Add FIXME comment
3795 about longjmp breakpoint.
3796 (print_it_typical): Ignore overlay event breakpoints.
3797 (print_one_breakpoint): Ditto.
3799 (bpstat_what): Do not stop for overlay event breakpoints.
3800 (delete_breakpoint): Don't delete overlay event breakpoints.
3801 (breakpoint_re_set_one): Delete the overlay event breakpoint.
3802 (breakpoint_re_set): Re-create overlay event breakpoint.
3804 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
3805 (overlay_manual_command): Disable overlay breakpoints.
3806 (overlay_off_command): Disable overlay breakpoints.
3810 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
3811 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
3812 to here from config/tm-arm.h.
3813 (coff_sym_is_thumb): Make static.
3814 (arm_elf_make_msymbol_special): New function.
3815 (arm_coff_make_msymbol_special): New function.
3816 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
3817 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
3818 (coff_sym_is_thumb): Delete declaration.
3819 (arm_elf_make_msymbol_special): Declare.
3820 (arm_coff_make_msymbol_special): Declare.
3821 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
3822 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
3826 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
3830 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
3831 * gdbarch.c gdbarch.h: Regenerate.
3832 * arch-utils.c (default_print_float_info): New function.
3833 * arch-utils.h (default_print_float_info): Prototype it.
3834 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
3835 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
3836 (PRINT_FLOAT_INFO): Document it.
3838 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
3839 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
3840 (PRINT_FLOAT_INFO): Define.
3844 * win32-nat.c (_initialize_check_for_gdb_ini):
3845 Add typecast to sprintf argument to suppress a warning.
3849 * win32-nat.c (last_sig): Changed type of variable to target_signal,
3850 to allow easier handling of pass state.
3851 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
3852 that gives exception name and address.
3853 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
3854 and set last_sig value to ourstatus->value.sig. Some missing
3856 (child_continue): Correctly report continue_status.
3857 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
3858 TARGET_SIGNAL_0 (new default value).
3859 (child_resume): consider sig argument passed to decide if
3860 the exception should be passed to debuggee or not.
3864 * regcache.c (fetch_register): Call target_fetch_register
3865 only if we don't call FETCH_PSEUDO_REGISTER.
3866 (store_register): Call target_store_register only if we
3867 don't call STORE_PSEUDO_REGISTER.
3871 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
3872 ELF_MAKE_MSYMBOL_SPECIAL.
3873 * gdbarch.c, gdbarch.h: Regenerate.
3874 * arch-utils.c (default_make_msymbol_special): New function.
3875 * arch-utils.h (default_make_msymbol_special): Export.
3876 * elfread.c (elf_symtab_read): Compile use of
3877 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
3879 * coffread.c (coff_symtab_read): Ditto, for
3880 COFF_MAKE_MSYMBOL_SPECIAL.
3884 * solib-svr4.c (svr4_truncate_ptr): New function.
3885 (svr4_relocate_section_addresses): Do the address arithmetic with
3886 the appropriate truncation for target addresses, even when
3887 CORE_ADDR is larger than a target address.
3891 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
3896 * gdbserver/linux-low.c (kill_inferior): Remove commented out
3901 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
3905 * gdbserver/linux-low.c: Remove unused include files.
3909 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
3910 (read_inferior_memory): Use it.
3911 (write_inferior_memory): Likewise.
3915 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
3916 grubbing through sys_errlist.
3920 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
3923 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
3927 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
3928 (do_sfunc, set_cmd_sfunc): New functions.
3930 * command.h (struct cmd_list_element): Add field func.
3931 * cli/cli-decode.h (struct cmd_list_element): Ditto.
3932 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
3933 * cli/cli-decode.h: Ditto.
3935 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
3936 (help_all, help_cmd_list): Ditto.
3937 (find_cmd, complete_on_cmdlist): Ditto.
3938 * top.c (execute_command): Ditto.
3940 * cli/cli-setshow.c (do_setshow_command): Call func instead of
3943 * infcmd.c (notice_args_read): Fix function signature.
3945 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
3946 * cli/cli-decode.c (add_set_cmd): Ditto.
3947 * utils.c (initialize_utils): Ditto.
3948 * maint.c (_initialize_maint_cmds): Ditto.
3949 * infrun.c (_initialize_infrun): Ditto.
3950 * demangle.c (_initialize_demangler): Ditto.
3951 * remote.c (add_packet_config_cmd): Ditto.
3952 * mips-tdep.c (_initialize_mips_tdep): Ditto.
3953 * cris-tdep.c (_initialize_cris_tdep): Ditto.
3954 * proc-api.c (_initialize_proc_api): Ditto.
3955 * kod.c (_initialize_kod): Ditto.
3956 * valprint.c (_initialize_valprint): Ditto.
3957 * top.c (init_main): Ditto.
3958 * infcmd.c (_initialize_infcmd): Ditto.
3959 * corefile.c (_initialize_core): Ditto.
3960 * arm-tdep.c (_initialize_arm_tdep): Ditto.
3961 * arch-utils.c (initialize_current_architecture): Ditto.
3962 (_initialize_gdbarch_utils): Ditto.
3963 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
3965 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
3966 * wince.c (_initialize_inftarg): Ditto.
3967 * symfile.c (_initialize_symfile): Ditto.
3968 * mips-tdep.c (_initialize_mips_tdep): Ditto.
3969 * language.c (_initialize_language): Ditto.
3970 * arc-tdep.c (_initialize_arc_tdep): Ditto.
3974 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
3978 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
3979 Add rules for building the register data files.
3983 * regformats/regdat.sh: Add braces to the definition of
3984 expedite_regs_${arch}.
3988 * regformats/regdef.h (struct reg): Add comment describing the
3989 requirements for offset and size fields.
3993 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
3994 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
3998 * gdbarch.sh (copyright): Update years in generated header.
3999 (SMASH_TEXT_ADDRESS): Add rule.
4000 * gdbarch.h, gdbarch.c: Re-generate.
4001 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
4002 * dbxread.c: Likewise.
4003 * dwarfread.c: Likewise.
4004 * elfread.c: Likewise.
4005 * somread.c: Likewise.
4007 * arm-tdep.c (arm_smash_text_address): New function.
4008 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
4012 Add support for hardware watchpoints on win32 native.
4013 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
4014 CONTEXT_DEBUG_REGISTERS.
4015 (dr variable): New variable. Static array containing a local copy
4017 (debug_registers_changed): New variable. Reflects when debug registers
4018 are changed and need to be written to inferior.
4019 (debug_registers_used): New variable. Reflects when any debug register
4020 was set, used when new threads are created.
4021 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
4023 (thread_rec): Set dr array if id is the thread of current_event .
4024 (child_continue, child_resume): Change the debug registers for all
4025 threads if debug_registers_changed.
4026 (child_add_thread): Change the debug registers if debug_registers_used.
4027 * config/i386/cygwin.mh: Add use of i386-nat.o file.
4028 Link nm.h to new nm-cygwin.h file.
4029 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
4030 of hardware registers.
4034 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
4035 Restore behavour broken by 2002-01-20 Andrew Cagney
4040 * c-valprint.c (c_val_print): Pass a proper valaddr to
4041 cp_print_class_method.
4042 * valops.c (search_struct_method): If there is only one method
4043 and args is NULL, return that method.
4047 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
4048 accessing tag_name directly.
4052 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
4053 of accessing tag_name directly.
4058 * gdbtypes.c (replace_type): New function.
4059 * gdbtypes.h (replace_type): Add prototype.
4060 * stabsread.c (read_type): Use replace_type.
4064 * Makefile.in (memattr.o): Add missing dependencies rule.
4068 * breakpoint.c (break_at_finish_command): Really export.
4069 (break_at_finish_at_depth_command): Ditto.
4070 (tbreak_at_finish_command): Ditto.
4071 * hppa-tdep.c: Include completer.h.
4072 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
4073 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
4077 * utils.c (do_write): New function.
4078 (error_stream): Rewrite combining the code from error_begin and
4080 (verror): Rewrite using error_stream.
4081 (error_begin): Delete function.
4085 * utils.c (error_begin): Make static.
4086 * defs.h (error_begin): Delete declaration.
4088 * linespec.c (cplusplus_error): Replace cplusplus_hint.
4089 (decode_line_1): Use cplusplus_error instead of error_begin,
4090 cplusplus_hint and return_to_top_level.
4091 * coffread.c (coff_symfile_read): Use error instead of error_begin
4092 and return_to_top_level.
4093 * infrun.c (default_skip_permanent_breakpoint): Ditto.
4097 * language.h (type_error, range_error): Make string parameter
4099 * language.c (warning_pre_print): Delete extern declaration.
4100 * dwarfread.c (warning_pre_print): Ditto.
4101 * language.c (type_error, range_error): Rewrite to use verror and
4102 vwarning instead of warning_begin.
4106 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
4107 (set_ignore_count): Move misplaced comment back where it belongs.
4111 * command.h (NO_FUNCTION): Delete macro.
4112 * cli/cli-decode.h (NO_FUNCTION): Ditto.
4113 * top.c (execute_command): Replace NO_FUNCTION with NULL.
4114 * tracepoint.c (_initialize_tracepoint): Ditto.
4115 * cli/cli-decode.c (add_set_cmd): Ditto.
4116 * cli/cli-cmds.c (init_cli_cmds): Ditto.
4120 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
4121 Update ``this'' pointer when calling virtual functions.
4125 * breakpoint.c (create_temp_exception_breakpoint): Delete.
4126 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
4130 * regformats/reg-arm.dat: New file.
4131 * regformats/reg-i386.dat: New file.
4132 * regformats/reg-ia64.dat: New file.
4133 * regformats/reg-m68k.dat: New file.
4134 * regformats/reg-mips.dat: New file.
4135 * regformats/reg-ppc.dat: New file.
4136 * regformats/reg-sh.dat: New file.
4137 * regformats/regdef.h: New file.
4138 * regformats/regdat.sh: New file.
4142 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
4143 (arm_frame_args_address, arm_frame_locals_address): New functions.
4144 (arm_frame_num_args): New function.
4145 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
4146 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
4147 (FRMA_NUM_ARGS): Call arm_frame_num_args.
4151 * breakpoint.c (break_at_finish_command): Export.
4152 (break_at_finish_at_depth_command): Export.
4153 (tbreak_at_finish_command): Export.
4154 (_initialize_breakpoint): Delete "xbreak" and "tbreak" commands.
4155 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
4156 "tbreak" commands, which are HPPA specific.
4158 * printcmd.c (disassemble_command): Remove an ancient
4159 artifact of an old merge.
4161 * symfile.h (enum overlay_debugging_state):
4162 Define enum constant values for overlay mode.
4163 * symfile.c (overlay_debugging): Use enums instead of literals.
4164 (overlay_is_mapped, overlay_auto_command,
4165 overlay_manual_command): Ditto.
4167 * breakpoint.c (insert_breakpoints, remove_breakpoint,
4168 breakpoint_here_p, breakpoint_inserted_here_p,
4169 breakpoint_thread_match, bpstat_stop_status,
4170 describe_other_breakpoints, check_duplicates, clear_command):
4171 Coding standard fixes.
4173 * target.c (target_xfer_memory): Add spaces, coding standard.
4174 (do_xfer_memory): Add missing line to trust-readonly
4175 code: check bfd SEC_READONLY flag for section.
4179 * PROBLEMS: Fix typo, 5.1->5.1.1.
4183 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
4184 data symbols, since we search based on textlow and texthigh.
4185 (find_pc_sect_symtab): Likewise.
4189 * defs.h (vwarning): Declare.
4190 * utils.c (vwarning): New function.
4191 (warning): Call vwarning.
4192 (warning_begin): Delete function.
4194 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
4195 the warning message.
4196 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
4201 * NEWS: Mention "set trust-readonly-sections" command.
4202 Mention generate-core-file command.
4206 * target.c: New command, "set trust-readonly-sections on".
4207 (do_xfer_memory): Honor the suggestion to trust readonly sections
4208 by reading them from the object file instead of from the target.
4209 (initialize_targets): Register command "set trust-readonly-sections".
4213 * parse.c (target_map_name_to_register): Simplify, search regs and
4214 pseudo-regs using a single loop.
4218 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
4222 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
4223 * config/i386/i386v42mp.mh: Add i387-nat.o .
4224 * i386v4-nat.c: Include i387-nat.h.
4225 (supply_fpregset): Use i387_supply_fsave.
4226 (fill_fpregset): Use i387_fill_fsave.
4230 * arm-tdep.c (arm_call_dummy_words): Define.
4231 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
4232 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
4233 (CALL_DUMMY_WORDS): Define.
4234 (arm_call_dummy_words): Declare.
4235 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
4236 (arm_linux_call_dummy_words): Declare.
4240 * m68klinux-nat.c: Fix last change to use regcache_collect
4241 instead of referencing registers[] directly.
4245 * parse.c (target_map_name_to_register): Delete code wrapped in
4246 #ifdef REGISTER_NAME_ALIAS_HOOK.
4250 * regcache.c (legacy_read_register_gen): Need to be able to
4251 read pseudo-register as well as real register.
4252 (legacy_write_register_gen): Ditto.
4256 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
4257 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
4258 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
4259 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
4260 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
4261 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
4262 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
4263 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
4264 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
4265 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
4266 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
4267 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
4268 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
4269 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
4270 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
4271 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
4272 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
4273 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
4274 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
4275 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
4279 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
4280 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
4281 (initialize_current_architecture): Update target_byte_order using
4282 information from BFD.
4283 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
4284 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
4288 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
4289 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
4291 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
4292 #ifdef INVALID_FLOAT.
4293 * infcmd.c (do_registers_info): Ditto.
4294 * values.c (unpack_double): Ditto. Add comment.
4296 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
4297 already commented out.
4301 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
4302 * m68klinux-nat.c: Update ptrace interface for fetching/storing
4303 registers and add support for PTRACE_GETREGS.
4307 GDB 5.1.1 released from 5.1 branch.
4308 * NEWS: Add 5.1.1 news.
4309 * README: Sync with 5.1 branch.
4313 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
4314 stabstring on initial malloc. Reallocing will copy it for us,
4319 * Makefile.in (hpread_h): Delete.
4320 (HFILES_NO_SRCDIR): Remove hpread.h.
4321 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
4322 (hpread.o): Update dependencies.
4323 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
4325 * hp-psymtab-read.c: Remove file.
4326 * hp-symtab-read.c: Remove file.
4327 * hpread.h: Remove file.
4329 * hpread.c: Merge all contents of hp-psymtab-read.c,
4330 hp-symtab-read.c and hpread.h into this file, as it was prior to
4333 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
4334 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
4335 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
4336 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
4340 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
4341 fill_gregset): Call gdbarch_tdep() just once, assign result to
4342 variable and use that, instead of calling the function several
4347 * configure.host: Accept sparcv9 as alias for sparc64.
4348 * configure.tgt: Likewise.
4352 * solib-aix5.c (build_so_list_from_mapfile)
4353 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
4354 arguments is not reversed.
4355 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
4356 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
4360 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
4361 modified version of obsolete sh_fetch_pseudo_register.
4362 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
4363 (sh4_register_read): New function.
4364 (sh_pseudo_register_write): New function. Renamed and modified
4365 version of obsolete sh_store_pseudo_register.
4366 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
4367 (sh4_register_write): New function.
4368 (sh_gdbarch_init): Remove setting of gdbarch function
4369 fetch_pseudo_register and store_pseudo_register. Remove setting of
4370 register_convert_to_raw, register_convert_to_virtual,
4371 register_convertible.
4372 (sh_sh4_register_convertible): Delete. No longer needed. All is
4373 taken care by architecture specific functions
4374 register_read/register_write.
4375 (sh_sh4_register_convert_to_virtual): Make static.
4376 (sh_sh4_register_convert_to_raw): Ditto.
4380 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
4381 (floatformat_is_nan, floatformat_mantissa): Ditto.
4383 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
4384 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
4385 builtin_type_ieee_double_little,
4386 builtin_type_ieee_double_littlebyte_bigword,
4387 builtin_type_m68881_ext, builtin_type_i960_ext,
4388 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
4389 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
4390 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
4391 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
4395 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
4396 parameter. Set frameless flag if it exists and depended of
4397 whether the scanned function is frameless or not.
4398 (xstormy16_skip_prologue): If function is frameless, return
4399 result of xstormy16_scan_prologue().
4400 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
4405 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
4406 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
4407 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
4408 sh_sh4_register_byte, sh_sh4_register_raw_size,
4409 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
4410 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
4411 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
4412 sh_store_pseudo_register, sh_do_pseudo_register): Call
4413 gdbarch_tdep() just once, assign result to variable and use that,
4414 instead of calling the function several times.
4418 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
4419 macros instead of LAST_FPU_CTRL_REGNUM.
4420 (store_register): Likewise.
4424 * infcmd.c (run_command): Check that the `exec' target layer's BFD
4425 is up-to-date before running the program, not just when a program
4430 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
4431 when we have found all instructions we are looking for.
4435 * arm-tdep.c (arm_register_name): New function.
4436 (arm_registers_names): Make static.
4437 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
4438 (arm_register_name): Declare.
4439 (REGISTER_NAME): Use it.
4444 Convert arm targets to new FRAME interface.
4445 * arm-tdep.c (struct frame_extra_info): Remove fsr.
4446 (arm_frame_find_save_regs): Delete.
4447 (arm_frame_init_saved_regs): New.
4448 (arm_init_extra_frame_info): Alloacte saved_regs as required.
4449 Allocate extra_info as required. Convert all uses of fsr.regs
4450 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
4452 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
4453 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
4454 (check_prologue_cache, save_prologue_cache): Likewise.
4455 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
4456 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
4457 (FRAME_FIND_SAVED_REGS): Delete.
4458 (arm_frame_find_saved_regs): Delete prototype.
4459 (arm_frame_init_saved_regs): New prototype.
4460 (FRAME_INIT_SAVED_REGS): Define.
4464 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
4469 * infttrace.c: Include <sys/pstat.h>.
4470 (child_pid_to_exec_file): Revamp. Use pstat call to get the
4471 exec file if the ttrace equivalent fails.
4475 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
4476 (closeLogFile): Ditto.
4480 * top.c (print_gdb_version): Bump copyright year to 2002.
4484 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
4485 Zannoni and Eli Zaretskii.
4489 * buildsym.c: Update copyright years.
4490 * c-typeprint.c: Likewise.
4491 * dwarf2read.c: Likewise.
4492 * f-typeprint.c: Likewise.
4493 * gdbtypes.c: Likewise.
4494 * gdbtypes.h: Likewise.
4495 * hp-symtab-read.c: Likewise.
4496 * hpread.c: Likewise.
4497 * mdebugread.c: Likewise.
4498 * p-typeprint.c: Likewise.
4502 * remote-sim.c (gdbsim_open): Simplify code testing the macro
4503 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
4504 byte-order selectable.
4505 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
4506 * arch-utils.c: Ditto.
4507 (set_endian): Ditto.
4508 (set_endian_from_file): Ditto.
4509 * gdbserver/low-sim.c (create_inferior): Ditto.
4510 * gdbarch.sh: Ditto.
4511 * gdbarch.h: Re-generate.
4512 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
4513 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
4514 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
4515 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
4516 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
4517 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
4518 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
4519 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
4521 * config/mips/tm-wince.h: Remove #undef of macro
4522 TARGET_BYTE_ORDER_SELECTABLE.
4523 * config/sh/tm-wince.h: Ditto.
4527 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
4528 member function fields. Add accessor macro
4529 TYPE_FN_FIELD_ARTIFICIAL.
4530 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
4531 * c-typeprint.c (c_type_print_base): Skip artificial member
4536 * f-typeprint.c: Delete unused function f_type_print_args.
4537 * p-typeprint.c: Delete unused function pascal_type_print_args.
4541 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
4542 comment. Add ``artificial'' to ``union field_location''.
4544 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
4546 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
4547 * mdebugread.c (parse_symbol): Likewise.
4548 * stabsread.c (define_symbol): Likewise.
4549 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
4550 initializing TYPE_FIELD_BITPOS to n (obsolete).
4551 (hpread_doc_function_type): Likewise.
4552 * hpread.c (hpread_function_type): Likewise.
4556 * configure.in (host_makefile_frag): Only require a host makefile
4557 fragment when a native build.
4558 * configure: Re-generate.
4562 * doublest.h (floatformat_from_type): Declare.
4563 * doublest.c (floatformat_from_type): New function.
4564 (convert_typed_floating): Use.
4566 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
4567 call to function floatformat_from_type.
4569 * gdbarch.sh (IEEE_FLOAT): Delete.
4570 * gdbarch.h, gdbarch.c: Re-generate.
4571 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
4572 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
4573 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
4574 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
4575 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
4576 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
4577 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
4578 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
4579 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
4580 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
4581 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
4582 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
4584 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
4585 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
4586 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
4587 * sh-tdep.c (sh_gdbarch_init): Ditto.
4588 * mips-tdep.c (mips_gdbarch_init): Ditto.
4589 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
4590 * cris-tdep.c (cris_gdbarch_init): Ditto.
4594 * configure.host, configure.tgt: Support x86-64.
4595 * NEWS: Note new target x86-64.
4597 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
4598 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
4599 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
4600 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
4601 x86-64-linux-nat.o): Fix dependencies.
4605 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
4606 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
4607 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
4608 * config/sparc/xm-sun4os4.h: Delete file.
4609 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
4613 * config/sparc/sparclynx.mh (XM_FILE): Delete.
4614 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
4615 * config/m68k/m68klynx.mh (XM_FILE): Delete.
4616 * config/i386/i386lynx.mh (XM_FILE): Delete.
4617 * config/rs6000/xm-rs6000ly.h: Delete file.
4618 * config/sparc/xm-sparclynx.h: Delete file.
4619 * config/m68k/xm-m68klynx.h: Delete file.
4620 * config/i386/xm-i386lynx.h: Delete file.
4621 * config/xm-lynx.h: Delete file.
4622 * config/djgpp/fnchange.lst: Update.
4626 * alpha-tdep.c (alpha_register_byte): New function.
4627 (alpha_register_raw_size): Ditto.
4628 (alpha_register_virtual_size): Ditto.
4629 (alpha_skip_prologue_internal): Renamed from
4630 alpha_skip_prologue.
4631 (alpha_skip_prologue): New version that calls
4632 alpha_skip_prologue_internal.
4633 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
4634 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
4635 second argument from alpha_skip_prologue.
4636 (REGISTER_BYTE): Use alpha_register_byte.
4637 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
4638 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
4639 (FRAMELESS_FUNCTION_INVOCATION): Use
4640 generic_frameless_function_invocation_not.
4641 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
4642 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
4646 * config/mips/xm-news-mips.h: Delete file.
4647 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
4649 * config/m88k/xm-m88k.h: Delete file.
4650 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
4651 * config/m88k/xm-delta88v4.h: Ditto.
4652 * config/m88k/xm-delta88.h: Ditto.
4654 * config/alpha/xm-fbsd.h: Delete file.
4655 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
4657 * config/sparc/xm-sparc.h: Delete file.
4658 * Makefile.in (xm-sun4os4.h): Delete dependency.
4659 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
4660 * config/sparc/xm-sun4os4.h: Ditto.
4661 * config/sparc/xm-linux.h: Ditto.
4663 * config/i386/xm-windows.h: Delete file.
4667 * utils.c: Include <sys/param.h> for MAXPATHLEN.
4668 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
4672 * alpha-tdep.c (alpha_call_dummy_words): New.
4673 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
4674 (CALL_DUMMY_P): Define.
4675 (CALL_DUMMY_WORDS): Define.
4676 (SIZEOF_CALL_DUMMY_WORDS): Define.
4680 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
4681 isn't NULL, which can happen with some gcj-3.x-produced code.
4685 * alpha-tdep.c (alpha_register_virtual_type): New function.
4686 (alpha_init_frame_pc_first): Ditto.
4687 (alpha_fix_call_dummy): Ditto.
4688 (alpha_store_struct_return): Ditto.
4689 (alpha_extract_struct_value_address): Ditto.
4690 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
4691 alpha_register_virtual_type.
4692 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
4693 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
4694 alpha_extract_struct_value_address.
4695 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
4696 (INIT_FRAME_PC): Use init_frame_pc_noop.
4697 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
4701 * i386gnu-nat.c: Include "i386-tdep.h".
4702 (fetch_fpregs): Simplify code dealing with uninitialized floating
4703 point states such that it doesn't require FP7_REGNUM.
4707 * alpha-tdep.c (frame_extra_info): New.
4708 (alpha_find_saved_regs): Make static. Use
4710 (alpha_frame_init_saved_regs): New function.
4711 (alpha_frame_saved_pc): Use frame->extra_info.
4712 (temp_saved_regs): Don't declare as struct frame_saved_regs.
4713 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
4714 (init_extra_frame_info): Rename to...
4715 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
4716 (alpha_print_extra_frame_info): New function.
4717 (alpha_frame_locals_address): Ditto.
4718 (alpha_frame_args_address): Ditto.
4719 (alpha_pop_frame): Use frame->extra_info.
4720 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
4721 alpha_frame_args_address.
4722 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
4723 (alpha_find_saved_regs): Remove prototype.
4724 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
4725 (EXTRA_FRAME_INFO): Remove.
4726 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
4727 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
4731 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
4732 (alpha_cannot_fetch_register): Ditto.
4733 (alpha_cannot_store_register): Ditto.
4734 (alpha_register_convertible): Ditto.
4735 (alpha_use_struct_convention): Ditto.
4736 * config/alpha/tm-alpha.h: Update copyright years.
4737 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
4738 (INNER_THAN): Use core_addr_lessthan.
4739 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
4740 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
4741 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
4742 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
4743 (FRAME_CHAIN): Remove unnecessary cast.
4747 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
4752 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
4753 * monitor.c, remote-array.c, remote-bug.c: Ditto.
4754 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
4755 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
4756 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
4757 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
4758 * x86-64-linux-nat.c: Ditto.
4762 * alpha-tdep.c (alpha_register_name): New function.
4763 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
4764 (REGISTER_NAME): Define.
4768 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
4772 * alpha-tdep.c: Update copyright years.
4773 (alpha_next_pc): New function.
4774 (alpha_software_single_step): Ditto.
4775 * config/alpha/tm-alpha.h: Add prototype for
4776 alpha_software_single_step.
4780 * alphabsd-nat.c: Update copyright years.
4781 (fill_gregset): Use regcache_collect.
4782 (fill_fpregset): Likewise.
4783 (fetch_inferior_registers): Only fetch integer registers
4784 if requested to do so.
4785 (store_inferior_registers): Only store integer registers
4786 if requested to do so.
4790 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
4791 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
4792 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
4793 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
4794 * config/alpha/fbsd.mh (XDEPFILES): Delete.
4795 * config/arm/linux.mh (XDEPFILES): Delete.
4796 * config/arm/nbsd.mh (XDEPFILES): Delete.
4797 * config/i386/i386dgux.mh (XDEPFILES): Delete.
4798 * config/i386/i386sol2.mh (XDEPFILES): Delete.
4799 * config/i386/i386m3.mh (XDEPFILES): Delete.
4800 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
4801 * config/i386/i386gnu.mh (XDEPFILES): Delete.
4802 * config/i386/fbsd.mh (XDEPFILES): Delete.
4803 * config/i386/i386bsd.mh (XDEPFILES): Delete.
4804 * config/i386/i386sco5.mh (XDEPFILES): Delete.
4805 * config/i386/i386v4.mh (XDEPFILES): Delete.
4806 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
4807 * config/i386/i386sco4.mh (XDEPFILES): Delete.
4808 * config/i386/i386aix.mh (XDEPFILES): Delete.
4809 * config/i386/go32.mh (XDEPFILES): Delete.
4810 * config/i386/cygwin.mh (XDEPFILES): Delete.
4811 * config/i386/i386lynx.mh (XDEPFILES): Delete.
4812 * config/i386/i386mach.mh (XDEPFILES): Delete.
4813 * config/i386/i386v32.mh (XDEPFILES): Delete.
4814 * config/i386/linux.mh (XDEPFILES): Delete.
4815 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
4816 * config/i386/ncr3000.mh (XDEPFILES): Delete.
4817 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
4818 * config/i386/i386sco.mh (XDEPFILES): Delete.
4819 * config/i386/i386v.mh (XDEPFILES): Delete.
4820 * config/i386/nbsd.mh (XDEPFILES): Delete.
4821 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
4822 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
4823 * config/i386/symmetry.mh (XDEPFILES): Delete.
4824 * config/i386/obsd.mh (XDEPFILES): Delete.
4825 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
4826 * config/ia64/linux.mh (XDEPFILES): Delete.
4827 * config/ia64/aix.mh (XDEPFILES): Delete.
4828 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
4829 * config/m68k/dpx2.mh (XDEPFILES): Delete.
4830 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
4831 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
4832 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
4833 * config/m68k/linux.mh (XDEPFILES): Delete.
4834 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
4835 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
4836 * config/m68k/nbsd.mh (XDEPFILES): Delete.
4837 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
4838 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
4839 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
4840 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
4841 * config/m88k/delta88.mh (XDEPFILES): Delete.
4842 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
4843 * config/m88k/m88k.mh (XDEPFILES): Delete.
4844 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
4845 * config/mips/linux.mh (XDEPFILES): Delete.
4846 * config/mips/irix6.mh (XDEPFILES): Delete.
4847 * config/mips/irix5.mh (XDEPFILES): Delete.
4848 * config/mips/irix4.mh (XDEPFILES): Delete.
4849 * config/mips/irix3.mh (XDEPFILES): Delete.
4850 * config/mips/decstation.mh (XDEPFILES): Delete.
4851 * config/mips/mipsm3.mh (XDEPFILES): Delete.
4852 (NATDEPFILES): Move core-aout.o to here.
4853 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
4854 * config/pa/hpux1020.mh (XDEPFILES): Delete.
4855 * config/pa/hppabsd.mh (XDEPFILES): Delete.
4856 * config/pa/hppahpux.mh (XDEPFILES): Delete.
4857 * config/pa/hpux11w.mh (XDEPFILES): Delete.
4858 * config/pa/hppaosf.mh (XDEPFILES): Delete.
4859 * config/pa/hpux11.mh (XDEPFILES): Delete.
4860 * config/powerpc/aix.mh (XDEPFILES): Delete.
4861 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
4862 * config/powerpc/linux.mh (XDEPFILES): Delete.
4863 * config/romp/rtbsd.mh: Rename XDEPFILES.
4864 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
4865 * config/rs6000/aix4.mh (XDEPFILES): Delete.
4866 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
4867 * config/s390/s390.mh (XDEPFILES): Delete.
4868 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
4869 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
4870 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
4871 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
4872 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
4873 * config/sparc/nbsd.mh (XDEPFILES): Delete.
4874 * config/sparc/linux.mh (XDEPFILES): Delete.
4875 * config/vax/vaxult.mh (XDEPFILES): Delete.
4876 * config/vax/vaxult2.mh (XDEPFILES): Delete.
4877 * Makefile.in (DEPFILES): Remove XDEPFILES.
4881 * utils.c (internal_verror): Fix comments, default is yes not no.
4882 Update queries to match. Default to quit and dump core.
4886 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
4888 * defs.h, event-top.c, gdbcmd.h: Ditto.
4889 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
4890 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
4891 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
4892 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
4893 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
4894 * mi/mi-main.c:Ditto.
4896 * stack.c, symfile.c: Update copyright.
4900 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
4901 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
4902 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
4903 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
4907 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
4908 * gdbserver/low-lynx.c (myattach): Likewise.
4909 * gdbserver/low-nbsd.c (myattach): Likewise.
4910 * gdbserver/low-sim.c (myattach): Likewise.
4911 * gdbserver/low-sparc.c (myattach): Likewise.
4912 * gdbserver/low-sun3.c (myattach): Likewise.
4914 * gdbserver/low-linux.c (myattach): New function.
4916 * gdbserver/server.c (attach_inferior): New function.
4917 (main): Handle "--attach".
4921 * MAINTAINERS (language support): Daniel Jacobwitz is C++
4926 * c-typeprint.c (is_type_conversion_operator): Add additional
4927 check for non-conversion operators.
4931 * linux-proc.c: Add "info proc" command, a la procfs.c.
4932 (read_mapping): New function, abstract and re-use code.
4933 (linux_find_memory_regions): Use new func read_mapping.
4934 (linux_info_proc_cmd): New function, implement "info proc".
4935 (_initialize_linux_proc): Add new command "info proc".
4939 * symfile.c (generic_load): Use bfd_map_over_sections method
4940 instead of manipulating bfd structure members directly.
4941 (add_section_size_callback): New function, bfd sections callback
4942 used by generic_load.
4943 (load_sections_callback): New function, bfd sections callback
4944 used by generic_load.
4948 [Based on work by Jim Blandy]
4949 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
4950 (builtin_type_vec128): Export.
4951 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
4953 (builtin_type_vec128): New builtin type for 128 bit vector
4955 (build_gdbtypes): Initialize builtin_type_v16qi and
4956 builtin_type_v8hi. Create the vec128 register builtin type
4958 (build_builtin_type_vec128): New function.
4959 (_initialize_gdbtypes): Register builtin_type_v16qi and
4960 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
4961 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
4962 AltiVec register to new builtin type.
4966 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
4971 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
4972 CLEAN_UP_REGISTER_VALUE.
4973 * regcache.c (supply_register): Update only call.
4977 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
4978 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
4979 a29k-*-vxworks* targets as obsolete.
4983 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
4984 until we can resolve portability issues.
4985 * gregset.h: Remove references to fpxregs.
4986 * gcore.c (gcore_command): Initialize note_sec to NULL.
4990 * signals.c (target_signal_to_name): Rewrite. Only use
4991 signals[].name when in bounds and non-NULL.
4996 * signals.c (target_signal_to_name): Verify that SIG is within the
4997 bounds of the signals array.
5001 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
5005 * stack.c (print_frame_info_base): Print the frame's pc
5006 only if when print_frame_info_listing_hook is not defined.
5010 * varobj.c (varobj_set_value): Make sure that there were no
5011 errors evaluating the object before attempting to set its
5013 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
5014 so this offset adjustment is no longer necessary.
5015 (create_child): Don't set the error flag if the child is
5017 (value_of_child): If value_fetch_lazy fails, return NULL
5018 so that callers will be notified that an error occurred.
5019 (c_value_of_variable): Delay check of variable's validity
5020 until later. We actually want all structs and unions to have
5022 Do not return "???" for variables which could not be evaluated.
5023 This error condition must be returned to the caller so that it
5024 can get the error condition from gdb.
5025 (cplus_name_of_child): Adjust index for vptr before figuring
5026 out the name of the child.
5027 (cplus_value_of_child): If a child's (real) parent is not valid,
5028 don't even bother trying to give a value for it. Just return
5029 an error. Change all instances in this function.
5030 (cplus_type_of_child): If our parent is one of the "fake"
5031 parents, we need to get at the type of the real parent, and
5032 derive the child's true type using this information.
5037 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
5038 sources.redhat.com, and tweak some related URLs which had
5039 suffered from linkrot.
5044 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
5045 structures passed in registers.
5049 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
5050 white space which prevented compilation. Reported by DSK
5055 * symfile.c (build_section_addr_info_from_section_tab):
5056 Use bfd access method instead of manipulating bfd directly.
5057 (syms_from_objfile): Ditto.
5058 (simple_overlay_update_1): Ditto.
5059 (simple_overlay_update): Ditto.
5060 (generic_load): Ditto.
5061 (overlay_unmapped_address): FIXME comment, bfd access methods.
5062 (sections_overlap): FIXME comment, bfd access methods.
5063 (pc_in_mapped_range): FIXME comment, bfd access methods.
5064 (pc_in_unmapped_range): FIXME comment, bfd access methods.
5065 (section_is_mapped): FIXME comment, bfd access methods.
5066 (section_is_overlay): FIXME comment, bfd access methods.
5068 * symfile.c (generic_load): Whitespace and long line cleanups.
5069 Remove duplicate variable, change several local variables to
5070 more appropriate data types.
5071 (print_transfer_performance): Use %lu instead of %ld for ulongs.
5076 * language.c (longest_local_hex_string_custom): Use phex_nz to
5077 convert NUM to a hex string.
5081 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
5083 Update Copyright year.
5087 * language.c (longest_raw_hex_string): Delete unused function.
5091 * MAINTAINERS (write-after-approval): Add myself.
5092 * dwarf2read.c (read_tag_string_type): Handling of
5094 (read_tag_string_type): FORTRAN fix to prevent propagation of
5096 (set_cu_language): Handling of DW_LANG_Fortran95
5100 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
5101 GETPID(inferior_ptid).
5102 (store_inferior_registers): Likewise.
5106 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
5111 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
5112 and bfd/elf32-sh-nbsd.c.
5116 * NEWS: Mention --pid and corefile/proc-id behavior change.
5118 * Makefile.in: Add rules for gcore.o and linux-proc.o.
5119 * gcore.c: Include cli/cli-decode.h instead of command.h.
5121 * main.c (captured_main): Add new command line option "--pid".
5122 If the second command line argument (following the symbol-file)
5123 begins with a digit, try to attach to it before trying to open
5125 (print_gdb_help): Document the "--pid" argument.
5129 * completer.c (command_completer): New function.
5131 * completer.h <command_completer>: Add prototype.
5133 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
5134 completer for the "help" command.
5138 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
5142 * i386-linux-nat.c (fill_fpxregset): Make global.
5143 (store_fpxregset): Ditto.
5145 * gregset.h (gdb_fpxregset_t): Define.
5146 (supply_fpxregset): Prototype.
5147 (fill_fpxregset): Prototype.
5149 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
5153 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
5154 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
5155 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
5159 * MAINTAINERS: Update target maintainer rules so that any
5160 Maintainer can approve a tested patch for a maintenance-only
5165 * MAINTAINERS (write-after-approval): Add myself.
5167 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
5172 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
5173 real name of the executable, rather than the /proc name.
5177 Implement a "generate-core-file" command in gdb, save target state.
5178 * gcore.c: New file. Implement new command 'generate-core-file'.
5179 Save a corefile image of the current state of the inferior.
5180 * linux-proc.c: Add linux-specific code for saving corefiles.
5181 * target.h (struct target_ops): Add new target vectors for saving
5182 corefiles; to_find_memory_regions and to_make_corefile_notes.
5183 (target_find_memory_regions): New macro.
5184 (target_make_corefile_notes): New macro.
5185 * target.c (update_current_target): Inherit new target methods.
5186 (dummy_find_memory_regions): New place-holder method.
5187 (dummy_make_corefile_notes): New place-holder method.
5188 (init_dummy_target): Initialize new dummy target vectors.
5189 * exec.c (exec_set_find_memory_regions): New function.
5190 Allow the exec_ops vector for memory regions to be taken over.
5191 (exec_make_note_section): New function, target vector method.
5192 * defs.h (exec_set_find_memory_regions): Export prototype.
5193 * procfs.c (proc_find_memory_regions): New function, corefile method.
5194 (procfs_make_note_section): New function, corefile method.
5195 (init_procfs_ops): Set new target vector pointers.
5196 (find_memory_regions_callback): New function.
5197 (procfs_do_thread_registers): New function.
5198 (procfs_corefile_thread_callback): New function.
5199 * sol-thread.c (sol_find_memory_regions): New function.
5200 (sol_make_note_section): New function.
5201 (init_sol_thread_ops): Initialize new target vectors.
5202 * inftarg.c (inftarg_set_find_memory_regions): New function.
5203 Allow to_find_memory_regions vector to be taken over.
5204 (inftarg_set_make_corefile_notes): New function.
5205 Allow to_make_corefile_notes vector to be taken over.
5206 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
5207 interface layer if not target_has_execution (may be a corefile).
5208 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
5209 * config/sparc/sun4sol2.mh: Ditto.
5210 * config/alpha/alpha-linux.mh: Ditto.
5211 * config/arm/linux.mh: Ditto.
5212 * config/i386/x86-64linux.mh: Ditto.
5213 * config/ia64/linux.mh: Ditto.
5214 * config/m68k/linux.mh: Ditto.
5215 * config/mips/linux.mh: Ditto.
5216 * config/powerpc/linux.mh: Ditto.
5217 * config/sparc/linux.mh: Ditto.
5221 * arm-linux-nat.c: Remove references to regcache.c internal data
5222 (registers[] and register_valid[]).
5226 * linux-proc.c: New file. Implement child_pid_to_exec_file,
5227 so that attaching to a pid will automatically read the process's
5228 symbol file and shlibs.
5229 * Makefile.in: Add rule for linux-proc.o.
5230 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
5231 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
5232 * config/arm/linux.mh: Ditto.
5233 * config/i386/linux.mh: Ditto.
5234 * config/i386/x86-64linux.mh: Ditto.
5235 * config/ia64/linux.mh: Ditto.
5236 * config/m68k/linux.mh: Ditto.
5237 * config/mips/linux.mh: Ditto.
5238 * config/powerpc/linux.mh: Ditto.
5239 * config/sparc/linux.mh: Ditto.
5243 * win32-nat.c: Add i386-tdep.h dependency.
5247 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
5248 instead of bfd_get_arch_size. Don't bail out just because
5249 there's no exec_bfd.
5251 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
5252 * p-valprint.c (pascal_object_print_value): Ditto.
5253 * somread.c (som_symtab_read): Ditto.
5254 * symfile.c (simple_free_overlay_region_table): Ditto.
5255 * valops.c (value_assign): Ditto.
5257 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
5258 use tilde_expand and strerror for opening save-tracepoints file.
5260 * thread-db.c (thread_db_new_objfile): Indendation fix.
5262 * infptrace.c (GDB_MAX_ALLOCA): New define.
5263 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
5264 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
5265 can be overridden with whatever value is appropriate to the host).
5266 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
5267 alloca to allocate potentially large buffer.
5268 * rs6000-nat.c (child_xfer_memory): Ditto.
5269 * symm-nat.c (child_xfer_memory): Ditto.
5270 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
5275 * d10v-tdep.c: Set STACK_START to 0x200bffe.
5279 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
5280 Don't use exec_bfd if it's NULL.
5284 * valops.c (value_arg_coerce): Fix formatting.
5288 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
5293 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
5294 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
5295 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
5296 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
5297 z8k-coff have not been multi-arched. Update z8k-coff build
5302 * MAINTAINERS: Mark a29k target as obsolete.
5303 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
5304 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
5306 * NEWS: Note that a29k targets are obsolete.
5307 * a29k-tdep.c: Mark as obsolete.
5308 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
5309 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
5310 a29k-*-vxworks* targets as obsolete.
5311 * remote-adapt.c: Obsolete.
5312 * remote-eb.c: Obsolete.
5313 * remote-mm.c: Obsolete.
5314 * remote-udi.c: Obsolete.
5315 * config/a29k/a29k-udi.mt: Obsolete.
5316 * config/a29k/a29k.mt: Obsolete.
5317 * config/a29k/tm-a29k.h: Obsolete.
5318 * config/a29k/tm-vx29k.h: Obsolete.
5319 * config/a29k/vx29k.mt: Obsolete.
5323 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
5324 with BFD_ENDIAN_BIG.
5328 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
5329 * configure, config.in: Re-generate.
5330 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
5331 * defs.h: Do not include <endian.h>.
5335 * acconfig.h (HAVE_PT_GETXMMREGS): New.
5336 * config.in: Regenerate.
5337 * configure.in: Update copyright years.
5338 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
5339 * configure: Regenerate.
5340 * i386bsd-nat.c: Update copyright years.
5341 (fill_gregset): Use regcache_collect.
5342 (fetch_inferior_registers): Only fetch integer registers
5343 if requested to do so. Add support for XMM registers
5344 using PT_GETXMMREGS.
5345 (store_inferior_registers): Only store integer registers
5346 if requested to do so. Add support for XMM registers
5347 using PT_SETXMMREGS.
5348 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
5349 (store_inferior_registers): Remove.
5350 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
5351 (fetch_elfcore_registers): New function.
5352 (i386nbsd_elfcore_fns): New.
5353 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
5354 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
5356 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
5357 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
5358 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
5359 * config/i386/tm-nbsd.h: Update copyright years.
5360 (HAVE_SSE_REGS): Define.
5361 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
5362 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
5363 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
5364 (SIGCONTEXT_PC_OFFSET): Remove.
5365 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
5369 * configure.tgt: Remove powerpc-*-macos* target.
5370 * config/m68k/xm-mpw.h: Delete file.
5371 * config/xm-mpw.h: Delete file.
5372 * ser-mac.c: Delete file.
5373 * mpw-make.sed: Delete file.
5374 * mpw-config.in: Delete file.
5375 * mac-xdep.c: Delete file.
5376 * mac-gdb.r: Delete file.
5377 * mac-defs.h: Delete file.
5378 * mac-nat.c: Delete file.
5379 * config/powerpc/macos.mh: Delete file.
5380 * config/powerpc/macos.mt: Delete file.
5381 * config/powerpc/nm-macos.h: Delete file.
5382 * config/powerpc/tm-macos.h: Delete file.
5383 * source.c (openp, open_source_file): Remove obsolete code.
5384 * top.c (gdb_readline): Ditto.
5385 * utils.c (query): Ditto.
5386 * event-top.c (display_gdb_prompt): Ditto.
5387 * Makefile.in (ser-mac.o): Delete obsolete target.
5392 * defs.h (BIG_ENDIAN): Delete macro definition.
5393 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
5394 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
5395 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
5396 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
5397 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
5398 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
5399 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
5400 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
5401 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
5402 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
5403 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
5404 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
5405 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
5406 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
5407 * gdbarch.c: Re-generate.
5411 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
5416 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
5420 * value.h (value_ptr): Delete typedef.
5424 * i386nbsd-nat.c: Update copyright years.
5425 Include i386-tdep.h.
5429 * stabsread.c: Update copyright years.
5432 (read_struct_fields): Deal with Sun C compiler erroneous stab
5433 output for structs and unions.
5438 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
5443 * cp-abi.c: Fix whitespace.
5444 (baseclass_offset): New wrapper function.
5445 * cp-abi.h (baseclass_offset): Add prototype.
5446 (struct cp_abi_ops): Add baseclass_offset pointer.
5448 * valops.c (vb_match): Move to...
5449 * gnu-v2-abi.c (vb_match): here.
5450 * valops.c (baseclass_offset): Move to...
5451 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
5453 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
5455 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
5456 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
5457 * hpacc-abi.c (init_hpacc_ops): Likewise.
5461 * valops.c (find_overload_match): Accept obj as a
5462 reference parameter. Update it before returning.
5463 * value.h (find_overload_match): Update prototype.
5464 * eval.c (evaluate_subexp_standard): Pass object to
5465 find_overload_match by reference.
5469 * valarith.c: Replace value_ptr with struct value pointer. Remove
5470 register attribute from value declarations.
5473 * scm-lang.c (scm_lookup_name): Ditto.
5477 Abstract the functionality of iterating over mapped memory
5478 regions into a general purpose iterator function.
5479 * procfs.c (iterate_over_mappings): New function, general purpose
5480 iterator for memory sections.
5481 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
5482 (solib_mappings_callback): New function, callback for above.
5483 (info_proc_mappings): Reimpliment using iterate_over_mappings.
5484 (info_mappings_callback): New function, callback for above.
5486 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
5490 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
5491 * i386-tdep.c: Include "elf-bfd.h".
5492 (process_note_abi_tag_sections): New function.
5493 (i386_gdbarch_init): Add code to recognize various OS/ABI
5496 * maint.c (_initialize_maint_cmds): Add missing \ in
5499 For older changes see ChangeLog-2001
5505 version-control: never