1 2004-01-17 Andrew Cagney <cagney@redhat.com>
3 * cris-tdep.c: Update copyright.
4 (cris_extract_struct_value_address): Delete function.
5 (struct_return_address): Delete variable.
6 (cris_store_struct_return): Do not set struct_return_address.
8 * mcore-tdep.c: Update copyright.
9 (mcore_extract_struct_value_address): Delete function. Update
11 (mcore_gdbarch_init): Update.
12 * mn10300-tdep.c: Update copyright.
13 (mn10300_extract_struct_value_address): Delete function.
14 (mn10300_gdbarch_init): Update.
15 * v850-tdep.c: Update copyright.
16 (v850_extract_struct_value_address): Delete.
17 (v850_gdbarch_init): Update.
18 * ns32k-tdep.c: Update copyright.
19 (ns32k_extract_struct_value_address): Delete.
20 (ns32k_gdbarch_init): Update.
21 * hppa-tdep.c (hppa_extract_struct_value_address): Delete.
22 (hppa_gdbarch_init): Update.
23 * vax-tdep.c: Update copyright.
24 (vax_extract_struct_value_address): Delete.
25 (vax_gdbarch_init): Update.
27 * gdbarch.sh (DEPRECATED_NPC_REGNUM): Delete.
28 * gdbarch.h, gdbarch.c: Re-generate.
29 * procfs.c (procfs_fetch_registers): Delete reference to
30 DEPRECATED_NPC_REGNUM.
31 (procfs_store_registers): Ditto.
32 * regcache.c (generic_target_write_pc): Simplify.
33 * lynx-nat.c: Delete #ifdef SPARC code. Not used.
35 * core-sol2.c (fetch_core_registers): Replace
36 DEPRECATED_NPC_REGNUM with equivalent tdep value.
38 * hppa-tdep.c: Update copyright year.
39 (hppa_target_write_pc): Use PCOQ_TAIL_REGNUM instead of
41 (hppa_gdbarch_init): Do not set deprecated_npc_regnum.
43 * mips-tdep.c (mips_write_pc): New function.
44 (mips_gdbarch_init): Set "write_pc" to "mips_write_pc".
45 (mips_read_pc): Use mips_regnum instead of PC_REGNUM.
46 (mips_find_saved_regs, mips_software_single_step: Ditto.
47 (mips_frame_saved_pc, mips_frame_saved_pc): Ditto.
48 mips_init_extra_frame_info, mips_pop_frame): Ditto.
50 2004-01-17 Andrew Cagney <cagney@redhat.com>
52 * mips-tdep.c: Re-indent. Group functions by ABI.
54 2004-01-17 Andrew Cagney <cagney@redhat.com>
56 * gdbarch.sh (DECR_PC_AFTER_BREAK): Make zero the default.
57 * gdbarch.c: Re-generate.
58 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
59 DECR_PC_AFTER_BREAK to zero.
60 * vax-tdep.c (vax_gdbarch_init): Ditto.
61 * v850-tdep.c (v850_gdbarch_init): Ditto.
62 * sparc-tdep.c (sparc32_gdbarch_init): Ditto.
63 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
64 * sh-tdep.c (sh_gdbarch_init): Ditto.
65 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
66 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
67 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
68 * mips-tdep.c (mips_gdbarch_init): Ditto.
69 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
70 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
71 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
72 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
73 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
74 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
75 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
76 * frv-tdep.c (frv_gdbarch_init): Ditto.
77 * cris-tdep.c (cris_gdbarch_init): Ditto.
78 * avr-tdep.c (avr_gdbarch_init): Ditto.
79 * arm-tdep.c (arm_gdbarch_init): Ditto.
80 * i386-nto-tdep.c (i386nto_init_abi): Add comment.
82 2004-01-17 J. Brobecker <brobecker@gnat.com>
84 * dwarf2read.c (dwarf2_non_const_array_bound_ignored_complaint):
85 Delete, no longer used.
86 (read_subrange_type): New function, mostly extracted from
88 (read_array_type): Replace extracted code by call to
90 (dwarf2_get_attr_constant_value): New function.
91 (scan_partial_symbols): Add handling for DW_TAG_subrange_type.
92 (add_partial_symbol): Likewise.
93 (process_die): Likewise.
94 (new_symbol): Likewise.
95 (read_type_die): Likewise.
97 2004-01-16 Andrew Cagney <cagney@redhat.com>
99 * symfile.c: Update copyright year.
100 (compare_symbols): Delete unused function.
101 * stabsread.c: Update copyright year.
102 (lrs_general_complaint): Delete unused function.
103 (ref_search_value): Ditto.
104 (get_substring): Delete declaration.
105 * sh64-tdep.c: Update copyright year.
106 (sh64_get_gdb_regnum): Delete unused function.
107 * dwarf2read.c (dwarf2_unsupported_at_frame_base_complaint):
108 Delete unused function.
110 2004-01-17 Mark Kettenis <kettenis@gnu.org>
112 * defs.h (gdb_osabi): Add GDB_OSABI_OPENBSD_ELF.
113 * osabi.c (gdb_osabi_names): Add "OpenBSD ELF".
115 2004-01-16 Andrew Cagney <cagney@redhat.com>
117 Changes from Peter Schauer.
118 * rs6000-tdep.c: Update copyright year.
119 (rs6000_push_dummy_call): Update the stack pointer before
120 accessing the corresponding stack region.
121 * rs6000-nat.c: Update copyright year.
122 (set_host_arch): Set "info.abfd" to "exec_bfd".
124 2004-01-15 Mark Kettenis <kettenis@gnu.org>
126 * blockframe.c: Update copyright year.
127 (inside_entry_func): Don't treat a zero PC specially.
129 2004-01-14 Elena Zannoni <ezannoni@redhat.com>
131 * gcore.c (gcore_copy_callback): Use paddr_d to print size
133 (gcore_create_callback): Ditto. Skip any memory segment that has
136 2004-01-14 David Carlton <carlton@kealia.com>
138 Change symbols for C++ nested types to contain the fully qualified
139 name, if possible. (At least in the DWARF-2 case.) Partial fix
140 for PR's c++/57, c++/488, c++/539, c++/573, c++/609, c++/832,
142 * c-exp.y (qualified_type): Handle types nested within classes.
143 * cp-namespace.c: Update comments.
144 (cp_set_block_scope): Delete #if 0.
145 (cp_lookup_nested_type): Handle types nested within classes.
146 * dwarf2read.c: (scan_partial_symbols): Call add_partial_structure
148 (add_partial_symbol): Add the name of the enclosing namespace to
150 (pdi_needs_namespace): New.
151 (add_partial_namespace): Tweak comment.
152 (add_partial_structure): New.
153 (psymtab_to_symtab_1): Initialize processing_current_prefix
155 (process_die): instead of here.
156 (read_structure_scope): Try to figure out the name of the class or
157 namespace that the structure might be defined within.
158 (read_enumeration): Generate fully-qualified names, if possible.
159 (read_namespace): Don't set name to NULL.
160 (die_specification): New.
161 (new_symbol): Generate fully-qualified names for types.
162 (read_type_die): Determine appropriate prefix.
163 (determine_prefix): New.
164 (typename_concat): New.
166 * valops.c (value_aggregate_elt): Pass NOSIDE to
167 value_struct_elt_for_reference.
168 (value_struct_elt_for_reference): Make static, add NOSIDE
169 parameter, call value_maybe_namespace_elt as a last resort.
170 (value_namespace_elt): Break out code into
171 value_maybe_namespace_elt.
172 (value_maybe_namespace_elt): New.
174 2004-01-12 Andrew Cagney <cagney@redhat.com>
176 * mips-tdep.c (mips_convert_register_p): Handle both raw and
177 cooked floating-point registers.
178 (mips_gdbarch_init): Set convert_register_p, register_to_value,
179 and value_to_register.
181 2004-01-13 Andrew Cagney <cagney@redhat.com>
183 * gdbarch.sh (FUNCTION_START_OFFSET): Make zero the default.
184 * gdbarch.c: Re-generate.
185 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
186 FUNCTION_START_OFFSET.
187 * v850-tdep.c (v850_gdbarch_init): Ditto.
188 * sparc-tdep.c (sparc32_gdbarch_init): Ditto.
189 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
190 * sh-tdep.c (sh_gdbarch_init): Ditto.
191 * s390-tdep.c (s390_gdbarch_init): Ditto.
192 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
193 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
194 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
195 * mips-tdep.c (mips_gdbarch_init): Ditto.
196 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
197 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
198 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
199 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
200 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
201 * i386-tdep.c (i386_gdbarch_init): Ditto.
202 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
203 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
204 * frv-tdep.c (frv_gdbarch_init): Ditto.
205 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
206 * cris-tdep.c (cris_gdbarch_init): Ditto.
207 * avr-tdep.c (avr_gdbarch_init): Ditto.
208 * arm-tdep.c (arm_gdbarch_init): Ditto.
209 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
211 2004-01-13 Daniel Jacobowitz <drow@mvista.com>
213 * infrun.c (follow_fork_mode_ask): Remove.
214 (follow_fork_mode_kind_names): Remove follow_fork_mode_ask.
215 (follow_fork): Simplify and remove internal error for
216 follow_fork_mode_ask.
217 (_initialize_infrun): Update "set follow-fork-mode" help text.
219 2004-01-13 Andrew Cagney <cagney@redhat.com>
221 * configure.in: Update copyright year.
222 (build_warnings): Add -Wunused-label.
223 * configure: Re-generate.
225 2004-01-12 Andrew Cagney <cagney@redhat.com>
227 * exec.h (exec_ops): Make "extern".
229 * mips-tdep.c (mips_pseudo_register_read): Don't return a value,
230 the function is void.
231 (mips_pseudo_register_write): Ditto.
233 2004-01-12 Andrew Cagney <cagney@redhat.com>
235 * stack.c (frame_info): Delete DEPRECATED_PRINT_EXTRA_FRAME_INFO
237 * sparc-tdep.h (struct frame_info): Add opaque declaration.
238 * sparc64-tdep.h (struct gdbarch): Add opaque declaration.
239 (struct sparc_gregset, struct regcache): Ditto.
240 * sparc-nat.c: Update copyright. Specify "GNU/Linux".
242 2004-01-12 Andrew Cagney <cagney@redhat.com>
244 * mi/ChangeLog: Delete file. Renamed to ...
245 * mi/ChangeLog-1999-2003: New file.
246 * tui/ChangeLog: Delete file. Renamed to ...
247 * tui/ChangeLog-1998-2003: New file.
249 2004-01-11 Mark Kettenis <kettenis@gnu.org>
251 * sparc64nbsd-tdep.c: Include "regset.h".
252 (sparc64nbsd_sizeof_struct_reg, sparc64nbsd_sizeof_struct_fpreg):
254 (fetch_core_registers): Remove function.
255 (sparc64nbsd_core_fns): Remove variable.
256 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): New
258 (sparc64nbsd_init_abi): Initialize TDEP->gregset,
259 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_gregset.
260 (_initialize_sparc64nbsd_tdep): Remove call to add_core_fns.
262 * sparc-tdep.c (sparc32_extract_struct_value_address): Rename from
263 sparc_extract_struct_value_address.
264 (sparc32_gdbarch_init): Set extract_struct_value_address.
265 * sparc64-tdep.c (sparc64_extract_struct_value_address): New
267 (sparc64_init_abi): Set extract_struct_value_address. Don't set
268 return_value_on_stack.
270 * NEWS: Mention that %cs and %ss have been added to the AMD64
273 * frame.c: Update copyright year.
274 (get_prev_frame): Improve comment.
276 * sparc64fbsd-tdep.c: Include "regset.h".
277 (sparc64fbsd_sizeof_struct_reg, sparc64fbsd_sizeof_struct_fpreg):
279 (fetch_core_registers): Remove function.
280 (sparc64fbsd_core_fns): Remove variable.
281 (sparc64fbsd_supply_gregset, sparc64fbsd_supply_fpregset): New
283 (sparc64fbsd_init_abi): Initialize TDEP->gregset,
284 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_gregset.
285 (_initialize_sparc64fbsd_tdep): Remove call to add_core_fns.
287 * sparcnbsd-tdep.c: Include "regset.h".
288 (fetch_core_registers): Remove function.
289 (sparcnbsd_core_fns, sparcnbsd_elfcore_fns): Remove varaibles.
290 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): New
292 (sparc32nbsd_init_abi): Initialize TDEP->gregset and
294 (_initialize_sparcnbsd_tdep): Remove calls to add_core_fns.
296 * sparc-tdep.h (struct regset): Provide opaque declaration.
297 (struct gdbarch_tdep): Add gregset, sizeof_gregset,
298 fpregset and sizeof_fpregset members.
299 * sparc-tdep.c (struct regset): Provide opaque declaration.
300 (sparc_regset_from_core_section): New function.
301 (sparc32_gdbarch_init): Initialize TDEP->gregset,
302 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_fpregset.
303 Set regset_from_core_section when appropriate.
305 2004-01-10 Mark Kettenis <kettenis@gnu.org>
307 * x86-64-tdep.c (amd64_non_pod_p): New function.
308 (amd64_classify_aggregate): Return class memory for non-POD
311 * x86-64-tdep.c (amd64_push_arguments): Add struct_return
312 argument. Use it to reserve a register if necessary.
313 (amd64_push_dummy_call): Pass STRUCT_RETURN in call to
314 amd64_push_arguments.
316 * x86-64-tdep.c (amd64_classify_aggregate): Ignore static fields.
318 * x86-64-tdep.c (amd64_register_info): Add %cs and %ss. Adjust
319 register numbers in comments.
320 * x86-64-tdep.h: Update copyright year.
321 (X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM):
322 Adjust for addition of %cs and %ss.
323 * amd64fbsd-nat.c: Update copyright year.
324 (reg_offset): Add register offsets for %cs and %ss.
325 * amd64fbsd-tdep.c: Update copyright year.
326 (amd64fbsd_r_reg_offset): Add register offsets for %cs and %ss.
327 (amd64fbsd_sc_reg_offset): Likewise.
328 * x86-64-linux-nat.c: Update copyright year.
329 (x86_64_linux_gregset64_reg_offset): Add register offsets for %cs
331 * amd64nbsd-nat.c: Update copyright year.
332 (amd64nbsd32_r_reg_offset): Add register offsets for %cs and %ss.
333 * amd64nbsd-tdep.c: Update copyright year.
334 (amd64nbsd_r_reg_offset): Add register offsets for %cs and %ss.
335 * x86-64-linux-tdep.c: Update copyright year.
336 (user_to_gdb_regmap): Add mapping for %cs and %ss.
337 (x86_64_linux_sc_reg_offset): Adjust for addition of %cs and %ss.
338 * regformats/reg-x86-64.dat: Add %cs and %ss.
340 * blockframe.c (inside_entry_func): Reformat. Introduce new local
341 variables to prevent long lines. Update comments to reflect
344 2004-01-09 David Carlton <carlton@kealia.com>
346 Checked in by Elena Zannoni <ezannoni@redhat.com>.
347 * dwarf2read.c (read_namespace): Pull out name-generating code
348 into namespace_name. Rename previous_namespace to previous_prefix
349 and processing_current_namespace to processing_current_prefix..
350 (namespace_name): New function.
351 (add_partial_symbol): Substitute uses of pdi->name with
353 * cp-support.h: Rename processing_current_namespace to
354 processing_current_prefix.
355 Update copyright year.
356 * cp-namespace.c: Rename processing_current_namespace to
357 processing_current_prefix.
358 Update copyright year.
360 2004-01-09 Andrew Cagney <cagney@redhat.com>
362 * jv-valprint.c, ser-unix.c: Add missing copyright years.
364 2004-01-09 Mark Kettenis <kettenis@gnu.org>
366 * dbxread.c (read_dbx_symtab): Ignore N_PATCH stabs instead of
368 (process_one_symbol): Deal with N_PATCH stabs.
370 2004-01-09 Elena Zannoni <ezannoni@redhat.com>
372 * dwarf2read.c (read_array_type): Discard FORTRAN_HACK macro and
374 Update copyright year.
376 2004-01-08 Michael Chastain <mec.gnu@mindspring.com>
378 * config/pa/tm-hppa.h: Update extern declarations for
379 hppa32_hpux_frame_saved_pc_in_sigtramp,
380 hppa32_hpux_frame_base_before_sigtramp, and
381 hppa32_hpux_frame_find_saved_regs_in_sigtramp.
383 2004-01-08 Michael Chastain <mec.gnu@mindspring.com>
385 * config/pa/tm-hppah.h: Update copyright years.
387 2004-01-08 Andrew Cagney <cagney@redhat.com>
389 * mips-tdep.c (mips_n32n64_reg_struct_has_addr): Delete function.
390 (mips_o32_reg_struct_has_addr): Delete function.
391 (mips_gdbarch_init): Update.
392 (mips_extract_struct_value_address): Delete function.
394 2004-01-08 David Mosberger <davidm@hpl.hp.com>
396 * ia64-linux-tdep.c: Update GATE_AREA_END value to reflect
399 2004-01-07 Andrew Cagney <cagney@redhat.com>
401 * mips-tdep.c (mips_gdbarch_init): Set elf_flags to the previous
402 architecture's elf flags (when available).
404 * mips-tdep.c (mips_gdbarch_init): Move code determining the MIPS
405 FPU to the start, check the MIPS FPU when looking for an old
407 (set_mipsfpu_single_command): Update the architecture.
408 (set_mipsfpu_double_command, set_mipsfpu_none_command): Ditto.
410 * mips-tdep.c (MIPS_DEFAULT_MASK_ADDRESS_P): Delete macro.
411 (mips_mask_address_p): Add "tdep" parameter.
412 (show_mask_address, mips_addr_bits_remove): Update.
413 (mips_dump_tdep): Update.
414 (MIPS_DEFAULT_STACK_ARGSIZE): Delete macro.
415 (MIPS_STACK_ARGSIZE): Delete macro.
416 (mips_stack_argsize, mips_eabi_push_dummy_call): Update.
417 (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call): Update.
418 (mips_o64_push_dummy_call, mips_o32_return_value): Update.
419 (mips_dump_tdep): Update.
420 (MIPS_SAVED_REGSIZE): Delete macro.
421 (MIPS_DEFAULT_SAVED_REGSIZE): Delete macro.
422 (mips_saved_regsize, mips_eabi_use_struct_convention): Update.
423 (mips_eabi_reg_struct_has_addr, mips_find_saved_regs): Update.
424 (mips_frame_saved_pc, mips16_heuristic_proc_desc): Update.
425 (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call): Update.
426 (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Update.
427 (mips_pop_frame, return_value_location): Update.
428 (mips_n32n64_return_value, mips_dump_tdep): Update.
430 * mips-tdep.c (mips_gdbarch_init): Clean up code selecting the
433 * mips-tdep.c: Update copyright.
434 (mips_gdbarch_init): Merge two code blocks handling the register
435 name and number layout.
437 2004-01-02 Pawel Ostrowski <pasza@zodiac.mimuw.edu.pl>
439 * tracepoint.c (validate_actionline): Fix segv at EOF
441 2004-01-07 Michael Chastain <mec.gnu@mindspring.com>
443 * hpread.c (hpread_read_struct_type): Call SET_FIELD_PHYSNAME
444 properly for static fields.
446 2004-01-06 Jeff Johnston <jjohnstn@redhat.com>
447 Jason Molenda <jmolenda@apple.com>
449 * disasm.c: Update copyright to include 2004.
450 (do_mixed_source_and_assembly): For uiout asm list
451 and tuple cleanups, initialize to null_cleanup instead of
452 NULL and do so prior to loop. Only reset when we close off
453 the tuple/list. Move check for whether to close off the
454 asm tuple/list to after dump_insns call where it will be run
455 on each loop iteration.
457 2004-01-05 Andrew Cagney <cagney@redhat.com>
459 * ser-unix.c (ser_unix_async): Fix tipo, "NOTHING_SECHEDULED"
460 should be a switch case and not a label.
461 * mips-tdep.c (mips32_next_pc): Delete unused labels
462 "greater_equal_branch" and "less_zero_branch".
463 * jv-valprint.c (java_print_value_fields): Delete unused label
466 * target.c (unpush_target): Only close a target that is in the
469 2004-01-05 Mark Kettenis <kettenis@gnu.org>
471 * sparc-tdep.c (sparc_extract_struct_value_address): Get the
472 address from [sp + 64] instead of %o2.
474 * frame.c (get_prev_frame): Don't try to unwind the PC. This
475 fixes PR backtrace/1476.
477 2004-01-05 Andrew Cagney <cagney@redhat.com>
479 * libunwind-frame.h (struct frame_id): Add opaque declaration,
480 move to start of file.
481 * i386-tdep.h (struct regcache): Add opaque declaration.
482 * config/ia64/nm-linux.h (struct target_ops): Add opaque
484 * ia64-tdep.c (ia64_find_proc_info_x): Do not use __FUNCTION__.
485 (ia64_gdbarch_init): Use "GNU/Linux" in comment.
486 * win32-nat.c (fake_create_process): Use ISO C style definition.
487 * stabsread.c (define_symbol): Delete #ifndef
488 DEPRECATED_USE_REGISTER_NOT_ARG wrapper around
489 stabs_argument_has_addr call, macro never defined.
491 2004-01-04 Michael Chastain <mec.gnu@mindspring.com>
493 * op50-rom.c: Delete.
494 * w89k-rom.c: Delete.
495 * Makefile.in: Remove references.
497 2004-01-04 Mark Kettenis <kettenis@gnu.org>
499 * x86-64-tdep.c: Update copyright year.
500 (struct amd64_register_info): Rename from x86_64_register_info.
501 (amd64_register_info): Rename from x86_64_register_info.
502 (AMD64_NUM_REGS): Rename from X86_64_NUM_REGS.
503 (amd64_register_name): Rename from x86_64_register_name.
504 (amd64_register_type): Rename from x86_64_register_type.
505 (amd64_dwarf_regmap): Rename from x86_64_dwarf_regmap.
506 (amd64_dwarf_regmap_len): Rename from x86_64_dwarf_regmap_len.
507 (amd64_dwarf_reg_to_regnum): Rename from
508 x86_64_dwarf_reg_to_regnum.
509 (amd64_convert_register_p): Rename from x86_64_convert_register_p.
510 (amd64_push_dummy_call): Rename from x86_64_push_dummy_call.
511 (AMD64_NUM_SAVED_REGS): Rename from X86_64_NUM_SAVED_REGS.
512 (struct amd64_frame_cache): Renamed from x86_64_frame_cache.
513 (amd64_alloc_frame_cache): Renamed from x86_64_alloc_frame_cache.
514 (amd64_analyze_prologue): Rename from x86_64_analyze_prologue.
515 (amd64_skip_prologue): Rename from x86_64_skip_prologue.
516 (amd64_frame_cache): Rename from x86_64_frame_cache.
517 (amd64_frame_this_id): Rename from x86_64_frame_this_id.
518 (amd64_frame_prev_register): Rename from
519 x86_64_frame_prev_register.
520 (amd64_frame_unwind): Rename from x86_64_frame_unwind.
521 (amd64_frame_sniffer): Rename from x86_64_frame_sniffer.
522 (amd64_sigtramp_frame_cache): Rename from
523 x86_64_sigtramp_frame_cache.
524 (amd64_sigtramp_frame_prev_register): Rename from
525 x86_64_sigtramp_frame_prev_register.
526 (amd64_sigtramp_frame_unwind): Rename from
527 x86_64_sigtramp_frame_unwind.
528 (amd64_sigtramp_frame_sniffer): Rename from
529 x86_64_sigtramp_frame_sniffer.
530 (amd64_frame_base_address): Rename from x86_64_frame_base_address.
531 (amd64_frame_base): Rename from x86_64_frame_base.
532 (amd64_unwind_dummy_id): Rename from x86_64_unwind_dummy_id.
533 (amd64_frame_align): Rename from x86_64_frame_align.
534 (amd64_supply_fpregset): Rename from x86_64_supply_fpregset.
535 (amd64_regset_from_core_section): Rename from
536 x86_64_regset_from_core_section.
537 (x86_64_init_abi): Update comments.
539 2004-01-04 Nick Roberts <nick@nick.uklinux.net>
541 * MAINTAINERS (write after approval): Add myself.
543 2004-01-04 Mark Kettenis <kettenis@gnu.org>
545 * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
548 2004-01-04 Mark Kettenis <kettenis@gnu.org>
550 * sparc64-tdep.c (sparc64_store_floating_fields): Update comment
551 such that it mentions a specific version of GCC that exhibits this
554 2004-01-03 Mark Kettenis <kettenis@gnu.org>
556 * sparc64-tdep.c (sparc64_store_floating_fields): If TYPE is a
557 structure that has a single `float' member, store it in %f1 in
560 * sparc-sol2-nat.c: Add missing '\'.
562 * sparc-tdep.c (sparc32_return_value): New function.
563 (sparc32_use_struct_convention, sparc32_return_value_on_stack):
565 (sparc32_gdbarch_init): Set return_value, don't set
566 extract_return_value, store_return_value, use_struct_convention
567 and return_value_on_stack.
569 * sparc-sol2-nat.c: Add missing ')'.
571 2004-01-03 J. Brobecker <brobecker@gnat.com>
573 * infrun.c (handle_step_into_function): New function.
574 (handle_inferior_event): Extract out some code into the new
577 2004-01-03 J. Brobecker <brobecker@gnat.com>
579 * infrun.c (handle_inferior_event): Move the declaration of
580 real_stop_pc inside the if blocks where it is used.
582 2004-01-03 Mark Kettenis <kettenis@gnu.org>
584 * sparc64-tdep.c (sparc64_16_byte_align_p)
585 (sparc64_store_floating_fields, sparc64_store_floating_fields):
586 Use check_typedef to get subtypes of structures and unions.
587 (sparc64_store_return_value): Fix calculation of the appropriate
588 offset into VALBUF when storing a structure or union.
589 (sparc64_return_value): New function.
590 (sparc64_use_struct_convention): Remove function.
591 (sparc64_init_abi): Set return_value, don't set
592 extract_return_value, store_return_value and
593 use_struct_convention.
595 2004-01-03 Eli Zaretskii <eliz@elta.co.il>
597 * config/djgpp/fnchange.lst: Add lines for COPYING.LIBGLOSS,
598 bfd/doc/ChangeLog-9103, bfd/elf32-m68hc1x.c,
599 gdb/config/alpha/xm-alphaosf.h,
600 gdb/config/powerpc/tm-ppcle-eabi.h,
601 gdb/config/rs6000/tm-rs6000-aix4.h, gdb/gdbtk/ChangeLog-2001,
602 gdb/gdbtk/ChangeLog-2002, gdb/gdbtk/ChangeLog-2003,
603 gdb/gdbtk/plugins/intel-pentium/intel-pentium.tcl.in,
604 gdb/gdbtk/plugins/rhabout/rhabout.tcl.in, gdb/i386-linux-nat.c,
605 gdb/ia64-aix-nat.c, gdb/ia64-aix-tdep.c, gdb/ia64-linux-nat.c,
606 gdb/ia64-linux-nat.c, gdb/ppc-linux-tdep.c, gdb/ppc-linux-nat.c,
607 gdb/sparc64nbsd-nat.c, gdb/sparc64nbsd-tdep.c,
608 gdb/sparc64-linux-nat.c, gdb/sparc64-linux-tdep.c,
609 gdb/sparc64-nat.c, gdb/sparc64-tdep.c, gdb/sparc64-sol2-tdep.c,
610 gdb/sparc-sol2-nat.c, gdb/sparc-sol2-tdep.c,
611 gdb/testsuite/gdb.gdbtk/, gdb/testsuite/gdb.mi/mi-var-child.exp,
612 nclude/ChangeLog-9103, include/coff/ChangeLog-9103,
613 include/elf/ChangeLog-9103, include/opcode/ChangeLog-9103,
614 opcodes/ChangeLog-0001, opcodes/ChangeLog-0203,
615 opcodes/openrisc-dis.c, opcodes/openrisc-desc.h,
616 sim/frv/profile-fr550.c, sim/frv/profile-fr550.h,
617 sim/sh64/sem-compact-switch.c, sim/sh64/sem-media-switch.c,
618 sim/testsuite/sim/sh64/compact/ldsl-mach.cgs,
619 sim/testsuite/sim/sh64/compact/ldsl-macl.cgs,
620 sim/testsuite/sim/sh64/compact/stsl-mach.cgs, and
621 sim/testsuite/sim/sh64/compact/stsl-macl.cgs.
622 Remove lines for .cvsignore files.
624 2004-01-03 J. Brobecker <brobecker@gnat.com>
626 * infrun.c: Back out the previous change.
628 2004-01-03 Mark Kettenis <kettenis@gnu.org>
630 * NEWS: Mention revised SPARC target. Add sparc-*-lynxos* and
631 sparc-*-sunos4* to the list of REMOVED configurations.
633 * configure.tgt: Add back sparc-*-vxworks*.
634 * remote-vxsparc.c: Remove all includes except for "defs.h",
635 "regcache.h", "vx-share/ptrace.h" and "vx-share/regPacket.h".
636 Include "sparc-tdep.h".
637 (SPARC_R_G1): New define.
638 (vxsparc_gregset): New variable.
639 (ext_format_sparc): Remove extern declaration.
640 (vx_read_register): Rewrite to use sparc32_supply_gregset and
641 sparc32_supply_fpregset.
642 (vx_write_register): Rewrite to use sparc32_collect_gregset,
643 sparc_collect_rwindow and sparc32_collect_fpregset.
644 * config/sparc/tm-vxworks.h: New file, based on recently removed
646 * config/sparc/vxworks.mt: New file, based on recently removed
649 2004-01-03 J. Brobecker <brobecker@gnat.com>
651 * infrun.c (handle_step_into_function): New function.
652 (handle_inferior_event): Extract out some code into the new
655 2004-01-02 Mark Kettenis <kettenis@gnu.org>
657 * Makefile.in (ALLDEPFILES): Remove sparc-linux-nat.c and
658 sparcl-tdep.c. Add sparc-linux-tdep.c, sparc-sol2-nat.c,
659 sparc-sol2-tdep.c, sparc-sol2-nat.c, sparc-sol2-tdep.c,
660 sparc64-linux-nat.c, sparc64-linux-tdep.c, sparc64-nat.c,
661 sparc64-sol2-tdep.c, sparc64-tdep.c, sparc64fbsd-nat.c,
662 sparc64fbsd-tdep.c, sparcnbsd-nat.c, sparcnbsd-tdep.c.
663 (sparc_nat_h): New variable.
664 (sparcbsd_nat_h, sparcnbsd_tdep_h): Remove variables.
665 (tm-sun4os4.h): Remove dependency.
666 (sparcbsd-nat.o, sparc-linux-nat.o): Remove dependencies.
667 (sparc64fbsd-nat.o, sparc64fbsd-tdep.o, sparc64nbsd-nat.o,
668 sparc64-tdep.o, sparc-nat.o, sparcnbsd-nat.o, sparcnbsd-tdep.o,
669 sparc-tdep.o): Update dependencies.
670 (sparc-linux-tdep.o, sparc-sol2-nat.o, sparc-sol2-tdep.o,
671 sparc64-linux-nat.o, sparc64-linux-tdep.o, sparc64-nat.o,
672 sparc64-sol2-tdep.o, sparc64-tdep.o, sparc64nbsd-tdep.o): New
674 * configure.host: Remove existing sparc-*-lynxos*,
675 sparc-*-solaris*, sparc-*-sunos4*, sparc-*-sunos5*, sparc-*-*,
676 ultrasparc-*-freebsd, sparcv9-*-freebsd, sparc64-*-linux*,
677 sparcv9-*-* and sparc64-*-* triplets. Add new sparc64-*-linux*,
678 sparc-*-solaris2*, sparcv9-*-solaris2* and sparc64-*-solaris2*
680 * configure.tgt: Remove exitsing sparc-*-aout*, sparc-*-coff*,
681 sparc-*-elf*, sparc*-lynxos*, sparc-*-solars2*, sparc-*-sunos4*,
682 sparc-*-sunos5*, sparc-*-vxworks*, sparc64-*linux*, sparc64-*-*,
683 sparcv9-*-* and commented out sparc64-*-solars2* triplets. Add
684 new sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*,
685 sparc64-*-linux, sparc-*-solaris2*, sparcv9-*-solaris*,
686 sparc64-*-solaris2* and sparc64-*-* triplets.
687 * sparc64-tdep.c: Update copyright year. Include "inferior.h",
688 "symtab.h" and "objfiles.h".
689 (BIAS): Remove define.
690 (X_OP, X_RD, X_A, X_COND, X_OP2, X_IMM22, X_OP3, X_I, X_DISP22)
691 (X_DISP19): Remove macros.
692 (sparc_fetch_instruction): Remove function.
693 (struct gdbarch_tdep): Remove definition.
694 (SPARC64_NUM_REGS, SPARC64_NUM_PSEUDO_REGS): Use ARRAY_SIZE.
695 (sparc_breakpoint_from_pc): Remove function.
696 (struct sparc64_frame_cache): Remove definition.
697 (sparc64_alloc_frame_cache, sparc64_analyze_prologue,
698 sparc64_unwind_pc): Remove functions.
699 (sparc64_skip_prologue): Use `struct sparc_frame_cache' instead of
700 `struct sparc64_frame_cache. Call sparc_analyze_prologue instead
701 of sparc64_analyze_prologue. Mark constant as ULL instead of UL.
702 (sparc64_frame_cache): Change return type to `struct
703 sparc_frame_cache *'. Simply call sparc_frame_cache.
704 (sparc64_frame_this_id, sparc64_frame_prev_register,
705 sparc64_frame_base_address): Use `struct sparc_frame_cache'
706 instead of `struct sparc64_frame_cache.
707 (sparc_unwind_dummy_id, sparc_extract_struct_value_address,
708 sparc_analyze_control_transfer, sparc_software_single_step,
709 sparc64_gdbarch_init, sparc_supply_rwindow, sparc_fill_rwindow,
710 _initialize_sparc64_tdep): Remove functions.
711 (TSTATE_CWP, TSTATE_ICC, TSTATE_XCC): New macros.
712 (PSR_S, PSR_ICC, PSR_VERS, PSR_IMPL, PSR_V8PLUS, PSR_XCC): New
714 (sparc64_supply_gregset, sparc64_collect_gregset,
715 sparc64_supply_fpregset, sparc64_collect_fpregset): New functions.
716 (sparc64_init_abi): New function.
717 * sparc64-tdep.h: Update copyright year. Fix typo in multiple
718 inclusion guard. Include "sparc-tdep.h".
720 (r_tstate_offset, r_fprs_offset): New defines.
721 (enum sparc_regnum): Remove defenition.
722 (enum sparc64_regnum): Reformat.
723 (sparc_supply_rwindow, sparc_fill_rwindow): Remove prototypes.
724 (sparc64_init_abi, sparc64_supply_gregset,
725 sparc64_collect_gregset, sparc64_supply_fpregset,
726 sparc64_collect_fpregset): New prototypes.
727 (sparc64_sol2_gregset, sparc64nbsd_gregset, sparc64fbsd_gregset):
728 Add extern declarations.
729 (sparc64_sol2_init_abi): New prototype.
730 (sparc64fbsd_supply_reg, sparc64fbsd_fill_reg)
731 (sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove
733 * sparc64fbsd-nat.c: Include "sparc-nat.h", don't include
735 (sparc64fbsd_reg_supplies_p, sparc64fbsd_fpreg_supplies_p): Remove
737 (_initialize_sparc64fbsd_nat): Remove initialization of
738 sparcbsd_supply_reg, sparcbsd_fill_reg, sparcbsd_supply_fpreg,
739 sparcbsd_fill_fpreg, sparcbsd_reg_supplies_p,
740 sparcbsd_fpreg_supplies_p. Initialize sparc_gregset.
741 * sparc64fbsd-tdep.c: Update copyright year. Include "frame.h",
742 "frame-unwind.h", "trad-frame.h" and "gdb_assert.h".
743 (sparc64fbsd_r_global_offset, sparc64fbsd_r_out_offset)
744 (sparc64fbsd_r_fprs_offset, sparc64fbsd_r_tnpc_offset)
745 (sparc64fbsd_r_tpc_offset, sparc64fbsd_r_tstate_offset)
746 (sparc64fbsd_r_y_offset): Remove variables.
747 (sparc64fbsd_sizeof_struct_reg, sparc64fbsd_sizeof_struct_fpreg):
748 Make static and const.
749 (sparc64fbsd_supply_reg, sparc64fbsd_fill_reg)
750 (sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove
752 (sparc64fbsd_gregset): New variable.
753 (fetch_core_registers): Replace calls to sparc64fbsd_supply_reg
754 and sparc64fbsd_supply_fpreg with calls to sparc64_supply_gregset
755 and sparc64_supply_fpregset.
756 (sparc64fbsd_pc_in_sigtramp, sparc64fbsd_sigtramp_frame_cache)
757 (sparc64fbsd_sigtramp_frame_this_id)
758 (sparc64fbsd_sigtramp_frame_prev_register): New functions.
759 (sparc64fbsd_sigtramp_frame_unwind): New variable.
760 (sparc64fbsd_sigtramp_frame_sniffer): New function.
761 (sparc64fbsd_init_abi): Set pc_in_sigtramp, append
762 sparc64fbsd_sigtramp_frame_sniffer. Call sparc64_init_abi.
763 * sparcnbsd-tdep.c: Update copyright year. Include
764 "floatformat.h", "frame.h", "frame-unwind.h", "symtab.h",
765 "trad-frame.h" and "gdb_assert.h", don't include "target.h",
766 "value.h" and "sparcnbsd-tdep.h".
767 (REG32_OFFSET_PSR, REG32_OFFSET_PC, REG32_OFFSET_NPC)
768 (REG32_OFFSET_Y, REG32_OFFSET_GLOBAL, REG32_OFFSET_OUT)
769 (REG64_OFFSET_TSTATE, REG64_OFFSET_PC, REG64_OFFSET_NPC)
770 (REG64_OFFSET_Y, REG64_OFFSET_GLOBAL, REG64_OFFSET_OUT): Remove
772 (sparcnbsd_gregset): New variable.
773 (sparcnbsd_supply_reg32, sparcnbsd_supply_reg64)
774 (sparcnbsd_fill_reg32, sparcnbsd_fill_reg64)
775 (sparcnbsd_supply_fpreg32, sparcnbsd_supply_fpreg64)
776 (sparcnbsd_fill_reg32, sparcnbsd_fill_reg64): Remove functions.
777 (sparc32nbsd_sigtramp_start, sparc32nbsd_sigtramp_end): New
779 (sparc32nbsd_pc_in_sigtramp, sparc32nbsd_sigcontext_frame_cache)
780 (sparc32nbsd_sigcontext_frame_this_id)
781 (sparc32nbsd_sigcontext_frame_prev_register): New functions.
782 (sparc32nbsd_sigcontext_frame_unwind): New variable.
783 (sparc32nbsd_sigtramp_frame_sniffer): New function.
784 (sparcnbsd_get_longjmp_target_32,
785 sparcnbsd_get_longjmp_target_64): Remove functions.
786 (sparcnbsd_aout_in_solib_call_trampoline): Rewrite.
787 (sparcnbsd_init_abi_common, sparcnbsd_init_aout,
788 sparcnbsd_init_elf): Remove.
789 (sparcnbsd_init_abi, sparcnbsd_aout_init_abi)
790 (sparcnbsd_elf_init_abi): New functions.
791 (_initialize_sparcnbsd_tdep): New prototype.
792 (_initialize_sparnbsd_tdep): Update.
793 * config/sparc/fbsd.mh (NATDEPFILES): Remove sparcbsd-nat.o and
794 corelow.o. Add sparc64-nat.o and sparc-nat.o.
795 * config/sparc/fbsd.mt (TDEPFILES): Add sparc-tdep.o and corelow.o.
796 * config/sparc/linux.mh: Update comment.
797 (XM_FILE, HOST_IPC): Remove variables.
798 (NATDEPFILES): Add sparc-sol2-nat.o and core-regset.o. Remove
800 * config/sparc/linux.mt: Update comment.
801 (TDEPFILES): Add sparc-sol2-tdep.o and sparc-linux-tdep.o.
802 * config/sparc/nbsd.mt: Reformat.
803 * config/sparc/nbsd64.mh: Update comment.
804 (NATDEPFILES): Add sparc-nat.o.
805 * config/sparc/nbsd64.mt: Update comment.
806 (TDEPFILES): Add sparc64-tdep.o and sparc64nbsd-tdep.o.
807 (TM_FILE): Set to tm-nbsd.h.
808 * config/sparc/nbsdelf.mh: Update comment.
809 (NATDEPFILES): Add sparc-nat.o.
811 * config/sparc/nbsdaout.mh: Update comment.
812 (NATDEPFILES): Add sparc-nat.o
814 * config/sparc/nm-linux.h: Update copyright year. Don't include
815 "config/nm-svr4.h" and "solib.h". Add protection against multiple
817 (KERNEL_U_SIZE): Remove define.
818 (kernel_u_size): Remove prototype.
819 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define.
820 * config/sparc/nm-nbsd.h: Update copyright. Don't include
822 (CHILD_PREPARE_TO_STORE): Remove define.
823 * config/sparc/nm-nbsdaout.h: Tweak some comments.
824 * sparc-nat.c, sparc-tdep.c, sparc-tdep.h, sparc64nbsd-nat.c,
825 sparcnbsd-nat.c: Rewrite files.
826 * config/sparc/tm-linux.h, config/sparc/tm-nbsd.h: Rewrite files.
827 * sparc-linux-nat.c, sparcbsd-nat.c, sparcbsd-nat.h,
828 sparcnbsd-tdep.h: Remove files.
829 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4os4.h,
830 config/sparc/nm-sun4sol2.h, config/sparc/sp64.mt,
831 config/sparc/sp64linux.mt, config/sparc/sp64sol2.mt,
832 config/sparc/sparc-em.mt, config/sparc/sparclynx.mh,
833 config/sparc/sparclynx.mt, config/sparc/sun4os4.mh,
834 config/sparc/sun4os4.mt, config/sparc/sun4sol2.mh,
835 config/sparc/sun4sol2.mt, config/sparc/tm-sp64.h,
836 config/sparc/tm-sp64linux.h, config/sparc/tm-sparc.h,
837 config/sparc/tm-sparclynx.h, config/sparc/tm-spc-em.h,
838 config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h,
839 config/sparc/tm-vxsparc.h, config/sparc/vxsparc.mt,
840 config/sparc/xm-linux.h, config/sparc/xm-sun4sol2.h: Remove files.
841 * sparc-linux-tdep.c, sparc-nat.h, sparc-sol2-nat.c,
842 sparc-sol2-tdep.c, sparc64-linux-nat.c, sparc64-linux-t dep.c,
843 sparc64-nat.c, sparc64-sol2-tdep.c, sparc64nbsd-tdep.c: New files.
844 * config/sparc/linux64.mh, config/sparc/linux64.mt,
845 config/sparc/nm-sol2.h, config/sparc/sol2-64.mt,
846 config/sparc/sol2.mh, config/sparc/sol2.mt, config/sparc/sparc.mt,
847 config/sparc/sparc64.mt, config/sparc/tm-sol2.h: New files.
849 2004-01-02 Andrew Cagney <cagney@redhat.com>
851 From 2003-12-18 Kazuhiro Inaoka:
852 * configure.host: Add m32r-linux target.
854 2004-01-02 Michael Chastain <mec.gnu@mindspring.com>
856 * top.c (print_gdb_version): Update year to 2004.
858 2004-01-02 Mark Mitchell <mark@codesourcery.com>
860 * MAINTAINERS: Add myself to the write-after-approval category.
862 2004-01-02 Daniel Jacobowitz <drow@mvista.com>
864 From Bernardo Innocenti <bernie@develer.com>:
865 * configure.tgt: Add uClinux target.
867 2004-01-02 Andrew Cagney <cagney@redhat.com>
869 * utils.c (do_my_cleanups): Make static, add forward declaration.
870 * defs.h (do_my_cleanups): Delete declaration.
872 2004-01-02 Eli Zaretskii <eliz@elta.co.il>
874 * config/djgpp/fnchange.lst: Add lines for gdb/ChangeLog-2003 and
877 2004-01-02 Mark Kettenis <kettenis@gnu.org>
879 * configure.in: Check for <machine/reg.h>. Check for `struct reg'
881 * configure, config.in: Regenerate.
883 For older changes see ChangeLog-2003, mi/ChangeLog-1999-2003, and
884 tui/ChangeLog-1998-2003.
890 version-control: never