1 2007-12-26 Luis Machado <luisgpm@br.ibm.com>
3 * dwarf2-frame.c (execute_cfa_program): Call dwarf2_restore_rule
4 function to handle required actions for the DW_CFA_restore and
5 DW_CFA_restore_extended instructions.
6 (dwarf2_restore_rule): New function.
8 2007-12-24 Joel Brobecker <brobecker@adacore.com>
10 * ada-lang.c (ada_is_character_type): Add recognition of type
11 "Wide_Wide_Character".
13 2007-12-24 Joel Brobecker <brobecker@adacore.com>
15 * dwarf2read.c (read_base_type): Set code to TYPE_CODE_CHAR
16 for char and unsigned char types of Ada compilation units.
17 * ada-lang.c (ada_is_character_type): Always return true if
18 the type code is TYPE_CODE_CHAR.
20 2007-12-23 Joel Brobecker <brobecker@adacore.com>
22 * infrun.c (handle_inferior_event): Remove code that made us
23 stop when stepping into the last line of the current function.
25 2007-12-22 Pierre Muller <muller@ics.u-strasbg.fr>
27 * win32-nat.c: Fix PR gdb/2388.
28 (do_win32_fetch_inferior_registers): Do not overwrite debug register
29 array dr if debug_registers_changed variable is set.
31 2007-12-22 Jan Kratochvil <jan.kratochvil@redhat.com>
33 * dwarf2read.c (scan_partial_symbols partial_die_parent_scope)
34 (add_partial_symbol, pdi_needs_namespace, process_die)
35 (is_type_tag_for_partial, load_partial_dies, new_symbol)
36 (read_type_die, determine_prefix): Extend the current code of
37 `DW_TAG_class_type' also for `DW_TAG_interface_type'.
39 2007-12-21 Paul N. Hilfinger <hilfinger@adacore.com>
41 * ada-lang.h (ada_renaming_category): New enumerated type.
42 (ada_lookup_encoded_symbol): Declare.
43 (ada_parse_renaming): Declare.
44 (ada_renaming_type,ada_is_object_renaming)
45 (ada_simple_renamed_entity): Delete declarations.
46 * ada-lang.c (ada_parse_renaming): New function to concentrate
47 extraction of information from renaming symbols.
48 (parse_old_style_renaming): New function to concentrate
49 extraction of old-style (purely type-based) renaming information.
50 (renaming_is_visible): Rename to...
51 (old_renaming_is_invisible): Rename and change sense of
53 (remove_out_of_scope_renamings): Rename to...
54 (remove_irrelevant_renamings): Renames remove_out_of_scope_renamings
55 and augments with additional logic to handle cases where the same
56 object renaming is encoded both as a reference variable and an
58 (ada_renaming_type,ada_is_object_renaming)
59 (ada_simple_renamed_entity): Delete definitions.
60 (ada_lookup_encoded_symbol): New function factored out of
62 (ada_lookup_symbol): Reimplement to call ada_lookup_encoded_symbol.
63 (wild_match): Don't reject perfect match of prefix.
64 (ada_find_renaming_symbol): Factor old-style renaming logic into
65 find_old_style_renaming_symbol.
66 (find_old_style_renaming_symbol): New name for content of old
67 ada_find_renaming_symbol.
68 (ada_prefer_type): Reimplement not to use ada_renaming_type.
69 * ada-exp.y (write_object_renaming): Change interface. Reimplement
70 to use new arguments and ada_parse_renaming.
71 Correct blocks used to find array index.
72 (write_var_or_type): Reimplement to use ada_parse_renaming.
74 2007-12-21 Denis Pilat <denis.pilat@st.com>
76 * tui/tui-data.h (MAX_LOCATOR_ELEMENT_LEN): Defined to a bigger
77 value or to PATH_MAX when possible.
79 2007-12-20 Joel Brobecker <brobecker@adacore.com>
81 * rs6000-tdep.h: Remove defs.h #include.
82 * Makefile.in (rs6000_tdep_h): Update dependencies.
84 2007-12-20 Thiago Jung Bauermann <bauerman@br.ibm.com>
86 * gdbtypes.c (gdbtypes_post_init): Change names of decimal float types
87 to conform to C extension for decimal float.
88 * c-lang.c (enum c_primitive_types): Add entries for Decimal Floating
90 (enum cplus_primitive_types): Likewise.
91 (c_language_arch_info): Add Decimal Floating Point builtin types to
92 the primitive_type_vector.
93 (cplus_language_arch_info): Likewise.
95 2007-12-20 David Ung <davidu@mips.com>
96 Maciej W. Rozycki <macro@mips.com>
98 * mips-tdep.c (mips_n32n64_push_dummy_call): Sign-extend
99 integers and 32-bit pointers as required by the ABI.
101 2007-12-20 Joel Brobecker <brobecker@adacore.com>
103 * symtab.h: Remove "defs.h" #include.
104 * Makefile.in (symtab_h): Update dependencies.
106 2007-12-19 Joel Brobecker <brobecker@adacore.com>
108 * symtab.h: #include "defs.h".
109 (enum language): Remove opaque declaration.
110 * Makefile.in (symtab_h): Update dependencies.
112 2007-12-19 Joel Brobecker <brobecker@adacore.com>
114 * language.h (enum exp_opcode): Remove commented out forward
116 (op_error): Delete declaration.
118 2007-12-19 Joel Brobecker <brobecker@adacore.com>
120 * infrun.c (handle_inferior_event): Fix spelling in comment.
122 2007-12-18 Daniel Jacobowitz <dan@codesourcery.com>
124 * minsyms.c (lookup_minimal_symbol): Also check the separate
126 (lookup_minimal_symbol_text): Likewise.
127 (lookup_minimal_symbol_solib_trampoline): Likewise.
128 * symtab.c (lookup_global_symbol_from_objfile): Likewise.
130 2007-12-18 Vladimir Prus <vladimir@codesourcery.com>
132 * mi/mi-main.c (mi_cmd_list_features): Announce
133 the 'pending-breakpoints' feature.
135 2007-12-17 Jim Blandy <jimb@codesourcery.com>
137 * dwarf2read.c (dwarf2_add_field): Correctly scale all byte
138 offsets obtained from DW_AT_data_member_location before recording
139 them in FIELD_BITPOS (*fp).
141 * dwarf2read.c (attr_form_is_section_offset): Doc fixes.
143 2007-12-17 Nigel Stephens <nigel@mips.com>
144 Maciej W. Rozycki <macro@mips.com>
146 * utils.c (string_to_core_addr): If the executable format
147 indicates that addresses should be sign-extended and there are
148 only 8 hex digits in the address, then do so.
149 * Makefile.in (utils.o): Depend on $(gdbcore_h).
151 2007-12-17 Chris Dearman <chris@mips.com>
153 * symfile.c (init_filename_language_table): Recognise .sx as
156 2007-12-17 Joel Brobecker <brobecker@adacore.com>
158 * language.h (enum exp_opcode): Comment out this declaration,
159 undoing the previous change.
161 2007-12-17 Luis Machado <luisgpm@br.ibm.com>
163 * breakpoint.c: (watch_command_1): Parse additional optional
164 "thread" parameter to the watchpoint command and set the
165 "thread" member of the breakpoint struct.
167 2007-12-17 Luis Machado <luisgpm@br.ibm.com>
169 * breakpoint.c (bpstat_stop_status): Check an additional
170 condition before evaluating an expression value.
172 2007-12-17 Joel Brobecker <brobecker@adacore.com>
174 * language.h (enum exp_opcode): Add forward declaration.
175 (language_string_char_type, language_lookup_primitive_type_by_name):
176 Move declaration past declaration of language_defn.
178 2007-12-16 Daniel Jacobowitz <dan@codesourcery.com>
179 Joseph Myers <joseph@codesourcery.com>
181 * configure.ac: Check for *-*-solaris2.1[[0-9]]* instead of
182 *-*-solaris2.1[[0-9]].
183 * configure: Regenerate.
184 * procfs.c (proc_set_current_signal): If redelivering a signal,
185 reuse the current siginfo if possible.
187 2007-12-16 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
189 * f-typeprint.c (print_equivalent_f77_float_type): Remove function.
190 (f_type_print_base): Output the type names directly for real and
193 2007-12-16 Vladimir Prus <vladimir@codesourcery.com>
195 * breakpoint.c (bpstat_have_active_hw_watchpoints):
197 (bpstat_stop_status): Remove unused variable
199 * breakpoint.h (bpstat_have_active_hw_watchpoints):
202 2007-12-16 Vladimir Prus <vladimir@codesourcery.com>
204 * target.h (target_pid_or_tid_to_str): Remove.
205 * infrun.c (handle_inferior_event):
206 Use target_pid_to_str instead of
207 target_pid_or_tid_to_str.
208 (normal_stop): Likewise.
210 2007-12-16 Jan Kratochvil <jan.kratochvil@redhat.com>
212 * dwarf2read.c (dwarf_attr_name): Rename `DW_AT_stride_size' to its
213 DWARF3 equivalent `DW_AT_bit_stride'.
214 Rename `DW_AT_stride' to its DWARF3 equivalent `DW_AT_byte_stride'.
216 2007-12-16 Joel Brobecker <brobecker@adacore.com>
218 * mi/mi-main.c: Remove code that was commented out in 1999.
220 2007-12-16 Joel Brobecker <brobecker@adacore.com>
222 * expression.h (parse_expression_in_context): Delete prototype.
223 * parse.c (parse_expression_in_context): Delete.
225 2007-12-14 Vladimir Prus <vladimir@codesourcery.com>
227 Add support for pending breakpoints in MI.
228 * gdb.h (gdb_breakpoint): Add parameter pending.
229 * breakpoint.c (gdb_breakpoint): Add parameter pending.
230 * mi/mi-cmd-break.c (mi_break_insert): Change
231 comment to refer to manual. Add support for
232 the -f flag, for pending breakpoint.
234 2007-12-14 Vladimir Prus <vladimir@codesourcery.com>
236 * breakpoint.c (break_command_really): New, copied
237 from break_command_1. New parameters COND_STRING, THREAD
238 PARSE_CONDITITION_AND_THREAD and PENDING_BREAK_SUPPORT.
239 The previous FLAG parameter split into TEMPFLAG and
241 When PARSE_CONDITION_AND_THREAD is not set, duplicate
242 the passed condition string.
243 (struct captured_breakpoint_args): Remove
244 (do_captured_breakpoint): Remove.
245 (break_command_1): Relay to break_command_really.
246 (gdb_breakpoint): Relay to break_command_really.
248 2007-12-13 Michael Snyder <msnyder@specifix.com>
250 * mips-linux-tdep.c (mips64_fill_gregset): Remove unused variable.
252 2007-12-13 Jim Blandy <jimb@codesourcery.com>
254 * dwarf2read.c (attr_form_is_constant): New function.
255 (dwarf2_add_field): Use it and attr_form_is_section_offset to
256 recognize DW_AT_data_member_location attributes. Use
257 dwarf2_get_attr_constant_value when the attribute is a constant.
259 * dwarf2read.c (attr_form_is_section_offset): New function.
260 (dwarf_add_member_fn, read_common_block, read_partial_die)
261 (dwarf2_symbol_mark_computed): Use it, instead of writing it out.
263 2007-12-12 Jim Blandy <jimb@codesourcery.com>
265 Remove unused support for target-based exception catching.
266 * target.h (struct target_ops): Delete
267 to_enable_exception_callback and to_get_current_exception_event
269 (target_enable_exception_callback)
270 (target_get_current_exception_event): Delete macros.
271 * target.c (update_current_target): Remove code to inherit and
272 default those members.
273 (debug_to_enable_exception_callback)
274 (debug_to_get_current_exception_event): Delete functions.
275 (setup_target_debug): Don't install those methods.
276 * inf-child.c (inf_child_enable_exception_callback)
277 (inf_child_get_current_exception_event): Delete dummy functions.
278 (inf_child_target): Don't install them in the target vector.
279 * breakpoint.h (enum bptype): Delete bp_catch_catch,
281 * breakpoint.c (cover_target_enable_exception_callback)
282 (ep_is_exception_catchpoint, create_exception_catchpoint): Delete
284 (insert_bp_location, update_breakpoints_after_exec)
285 (remove_breakpoint, ep_is_catchpoint, print_it_typical)
286 (bpstat_stop_status, bpstat_what)
287 (bpstat_get_triggered_catchpoints, print_one_breakpoint_location)
288 (user_settable_breakpoint, allocate_bp_location)
289 (disable_watchpoints_before_interactive_call_start)
290 (enable_watchpoints_after_interactive_call_stop, mention)
291 (delete_breakpoint, breakpoint_re_set_one, disable_command)
292 (enable_command): Remove exception catchpoint cases.
293 (catch_exception_command_1): Don't try target-based exception
295 * stack.c (catch_info): Call print_frame_label_vars
298 2007-12-12 Nigel Stephens <nigel@mips.com>
299 Maciej W. Rozycki <macro@mips.com>
301 * remote-mips.c (mips_load): Use regcache_set_valid_p() instead
302 of setting deprecated_register_valid array directly.
304 2007-12-07 Maciej W. Rozycki <macro@mips.com>
306 * mips-tdep.c (extended_offset): Fix a comment.
308 2007-12-07 Maciej W. Rozycki <macro@mips.com>
310 * target.c (update_current_target): Inherit to_log_command.
311 * target.h (struct target_ops). Add to_log_command.
312 (target_log_command): New macro.
313 * top.c (execute_command): Call target_log_command() rather than
314 serial_log_command().
315 * monitor.c (init_base_monitor_ops): Initialize to_log_command.
316 * remote-m32r-sdi.c (init_m32r_ops): Likewise.
317 * remote-mips.c (_initialize_remote_mips): Likewise.
318 * remote.c (init_remote_ops): Likewise.
320 2007-12-06 Daniel Jacobowitz <dan@codesourcery.com>
322 * infrun.c (init_wait_for_inferior): Reset target_last_wait_ptid.
323 (handle_inferior_event): Clear stop_stack_dummy earlier.
325 2007-12-06 Jim Blandy <jimb@codesourcery.com>
327 * addrmap.c (addrmap_splay_tree_remove): New function.
328 (addrmap_mutable_set_empty): Use it.
330 * addrmap.c, addrmap.h: Update to GPLv3.
332 * addrmap.c (struct addrmap): Make the referenced function table
334 (addrmap_fixed_funcs, addrmap_mutable_funcs): Declare const.
335 Don't use designated initializers.
337 * addrmap.c (addrmap_fixed_create_fixed, addrmap_mutable_find)
338 (addrmap_mutable_relocate): Use internal_error, not abort.
340 * NEWS: Mention support for non-contiguous lexical blocks and
343 2007-12-06 Markus Deuling <deuling@de.ibm.com>
345 * gdbarch.sh (stab_reg_to_regnum, dwarf_reg_to_regnum)
346 ( dwarf2_reg_to_regnum, sdb_reg_to_regnum, ecoff_reg_to_regnum): Add
347 gdbarch as parameter.
348 * gdbarch.{c,h}: Regenerate.
350 * xtensa-tdep.c (xtensa_reg_to_regnum): Add gdbarch as parameter.
351 Replace current_gdbarch by gdbarch.
352 * s390-tdep.c (s390_dwarf_reg_to_regnum): Likewise.
353 * rs6000-tdep.c (rs6000_stab_reg_to_regnum)
354 (rs6000_dwarf2_reg_to_regnum): Likewise.
355 * mips-tdep.c (mips_stab_reg_to_regnum)
356 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Likewise.
357 * mep-tdep.c (mep_debug_reg_to_regnum): Likewise.
358 * m32c-tdep.c (m32c_debug_info_reg_to_regnum): Likewise.
359 * i386-tdep.c (i386_dbx_reg_to_regnum)
360 (i386_svr4_reg_to_regnum): Likewise
361 * h8300-tdep.c (h8300s_dbg_reg_to_regnum)
362 (h8300_dbg_reg_to_regnum): Likewise.
363 * amd64-tdep.c (amd64_dwarf_reg_to_regnum): Likewise.
364 * arch-utils.c (no_op_reg_to_regnum): Likewise.
365 * arch-utils.h (no_op_reg_to_regnum): Likewise.
366 * arm-tdep.c (arm_dwarf_reg_to_regnum): Likewise.
367 * cris-tdep.c (cris_dwarf2_reg_to_regnum): Likewise.
368 * hppa-tdep.c (hppa64_dwarf_reg_to_regnum): Likewise.
369 * ia64-tdep.c (ia64_dwarf_reg_to_regnum): Likewise.
370 * m68k-tdep.c (m68k_dwarf_reg_to_regnum): Likewise.
372 2007-12-06 Vladimir Prus <vladimir@codesourcery.com>
374 Localize infrun use of remove_breakpoints.
375 * infrun.c (handle_inferior_event): Remove
376 calls to remove_breakpoints, except where needed to
377 communicate change of breakpoint locations to inferior.
378 (keep_going): If steppping over breakpoint, remove
381 2007-12-06 Vladimir Prus <vladimir@codesourcery.com>
383 Clarify infrun variable naming.
384 * infrun.c (trap_expected): Rename
385 to stepping_over_breakpoint. Document.
386 (stepping_past_breakpoint): Remove.
387 (stepping_past_breakpoint_ptdi): Renamed
388 to deferred_step_ptid.
389 (struct execution_control_state): Rename
390 the another_trap field to stepping_over_breakpoint.
391 (struct inferior_status): Rename the trap_expected
392 field to stepping_over_breakpoint.
393 (clear_proceed_status, proceed)
394 (init_execution_control_state, context_switch)
395 (handle_inferior_event, currently_stepping)
396 (keep_going, save_inferior_status)
397 (restore_inferior_status, prepare_to_proceed): Adjust.
398 * gdbthread.h (struct thread_info): Rename the
399 trap_expected field to stepping_over_breakpoint.
400 * thread.c (load_infrun_state, save_infrun_state):
403 2007-12-06 Pierre Muller <muller@ics.u-strasbg.fr>
405 * win32-nat.c: Allow compilation if CORE_ADDR is 8 byte long.
406 Add "gdb_stdint.h" dependency required for uintptr_t type use.
407 (handle_output_debug_string): Use uintptr_t typecast.
408 (handle_exception): Ditto.
409 (win32_xfer_memory): Ditto.
410 * Makefile.in (win32-nat.o): Add dependency to gdb_stdint header.
412 2007-12-04 Jim Blandy <jimb@codesourcery.com>
414 Support lexical blocks and function bodies that occupy
415 non-contiguous address ranges.
416 * addrmap.c, addrmap.h: New files.
417 * block.h (struct addrmap): New forward declaration.
418 (struct blockvector): New member, 'map'.
419 (BLOCKVECTOR_MAP): New accessor macro.
420 * block.c: #include "addrmap.h"
421 (blockvector_for_pc_sect): If the blockvector we've found has
422 an address map, use it instead of searching the blocks.
423 * buildsym.c: #include "addrmap.h"
424 (pending_addrmap_obstack, pending_addrmap_interesting): New static
426 (really_free_pendings): If we have a pending addrmap, free it too.
427 (record_block_range): New function.
428 (make_blockvector): If we have an interesting pending addrmap,
429 record it in the new blockvector.
430 (start_symtab, buildsym_init): Assert that there is no pending
431 addrmap now; we should have cleaned up any addrmaps we'd built
433 (end_symtab): If there is a pending addrmap left over that didn't
434 get included in the blockvector, free it.
435 * buildsym.h (struct addrmap): New forward declaration.
436 (record_block_range): New prototype.
437 * objfiles.c: #include "addrmap.h".
438 (objfile_relocate): Relocate the blockvector's address map, if
440 * dwarf2read.c (dwarf2_record_block_ranges): New function.
441 (read_func_scope, read_lexical_block_scope): Call it.
442 * Makefile.in (SFILES): Add addrmap.c.
443 (addrmap_h): New header dependency variable.
444 (COMMON_OBS): Add addrmap.o.
445 (addrmap.o): New rule.l
446 (block.o, objfiles.o, buildsym.o): Depend on $(addrmap_h).
448 * block.c (blockvector_for_pc, blockvector_for_pc_sect): Return a
449 pointer to the block, not its index in the blockvector.
450 (block_for_pc_sect): Use the returned block, instead of looking it
452 * block.h (blockvector_for_pc, blockvector_for_pc_sect): Update
454 * breakpoint.c (resolve_sal_pc): Use returned block, instead of
455 looking it up ourselves.
456 * stack.c (print_frame_label_vars): Disable function, which
457 depends on the block's index.
459 * buildsym.c (finish_block): Return the block we've built.
460 * buildsym.h (finish_block): Update prototype.
462 * defs.h (CORE_ADDR_MAX): New constant.
464 2007-12-04 Ulrich Weigand <uweigand@de.ibm.com>
466 * coffread.c (decode_type): Use builtin_type_int32 instead
467 of FT_INTEGER fundamental type for array range index type.
468 (decode_base_type): Use builtin types of current_gdbarch
469 instead of fundamental types.
471 * dwarf2read.c (struct dwarf2_cu): Remove ftypes member.
472 (read_file_scope): Do not initialize ftypes member.
473 (dwarf_base_type, dwarf2_fundamental_types): Remove functions.
474 (read_array_type): Use builtin_type_int32 instead of FT_INTEGER
475 fundamental type for array range index type.
476 (read_tag_string_type): Likewise for string range index type.
477 Also, do not overwrite FT_CHAR type with new string type.
478 (read_base_type): If DW_AT_name is missing, create unnamed type
479 with given properties instead of looking for a fundamental type.
480 Create new types as TYPE_TARGET_TYPE for DW_ATE_address and
481 DW_ATE_complex_float types.
482 (read_subrange_type): Create new type to represent missing
483 DW_AT_type instead of looking for a fundamental type.
484 (die_type): Use builtin type to represent "void" instead of
485 looking for a fundamental type.
487 * stabsread.c (define_symbol): Use builtin types to represent
488 'r' and 'i' floating-point and integer constants.
490 * gdbtypes.c (lookup_fundamental_type): Remove.
491 * gdbtypes.h (lookup_fundamental_type): Remove prototype.
492 (FT_VOID, FT_BOOLEAN, FT_CHAR, FT_SIGNED_CHAR, FT_UNSIGNED_CHAR,
493 FT_SHORT, FT_SIGNED_SHORT, FT_UNSIGNED_SHORT, FT_INTEGER,
494 FT_SIGNED_INTEGER, FT_UNSIGNED_INTEGER, FT_LONG, FT_SIGNED_LONG,
495 FT_UNSIGNED_LONG, FT_LONG_LONG, FT_SIGNED_LONG_LONG,
496 FT_UNSIGNED_LONG_LONG, FT_FLOAT, FT_DBL_PREC_FLOAT, FT_EXT_PREC_FLOAT,
497 FT_COMPLEX, FT_DBL_PREC_COMPLEX, FT_EXT_PREC_COMPLEX, FT_STRING,
498 FT_FIXED_DECIMAL, FT_FLOAT_DECIMAL, FT_BYTE, FT_UNSIGNED_BYTE,
499 FT_TEMPLATE_ARG, FT_DECFLOAT, FT_DBL_PREC_DECFLOAT,
500 FT_EXT_PREC_DECFLOAT, FT_NUM_MEMBERS): Remove macros.
501 * objfiles.c (struct objfile): Remove fundamental_types member.
502 * symfile.c (reread_symbols): Do not clear fundamental_types.
504 * language.h (struct language_defn): Remove la_fund_type member.
505 (create_fundamental_type): Remove.
506 * language.c (unk_lang_create_fundamental_type): Remove.
507 (unknown_language_defn, auto_language_defn,
508 local_language_defn): Adapt initializer.
509 * ada-lang.c (ada_create_fundamental_type): Remove.
510 (ada_language_defn): Adapt initializer.
511 * c-lang.h (c_create_fundamental_type): Remove prototype.
512 * c-lang.c (c_create_fundamental_type): Remove.
513 (c_language_defn, cplus_language_defn, asm_language_defn,
514 minimal_language_defn): Adapt initializer.
515 * f-lang.c (f_create_fundamental_type): Remove.
516 (f_language_defn): Adapt initializer.
517 * jv-lang.c (java_create_fundamental_type): Remove.
518 (java_language_defn): Adapt initializer.
519 * m2-lang.c (m2_create_fundamental_type): Remove.
520 (m2_language_defn): Adapt initializer.
521 * objc-lang.c (objc_create_fundamental_type): Remove.
522 (objc_language_defn): Adapt initializer.
523 * p-lang.h (pascal_create_fundamental_type): Remove prototype.
524 * p-lang.c (pascal_create_fundamental_type): Remove.
525 (pascal_language_defn): Adapt initializer.
526 * scm-lang.c (scm_language_defn): Adapt initializer.
528 2007-12-04 Maciej W. Rozycki <macro@mips.com>
530 * features/mips-cpu.xml: Specify "regnum" for "r0" explicitly.
531 * features/mips64-cpu.xml: Likewise.
532 * features/mips-fpu.xml: Specify "regnum" for "f0" explicitly.
533 * features/mips64-fpu.xml: Likewise.
534 * features/mips-linux.c: Regenerate.
535 * features/mips64-linux.c: Regenerate.
537 2007-12-04 Maciej W. Rozycki <macro@mips.com>
539 * target.h (target_find_new_threads): Fix definition.
541 2007-12-02 Pierre Muller <muller@ics.u-strasbg.fr>
543 * win32-nat.c (win32_resume): Set the trace bit
544 in the thread identified by inferior_ptid.
547 2007-12-02 Pierre Muller <muller@ics.u-strasbg.fr>
549 * win32-nat.c (open_process_used): New static variable.
550 (win32_init_thread_list): Remove call to CloseHandle for thread.
551 (win32_delete_thread): Ditto.
552 (fake_create_process): Set open_process_used if OpenProcess call is
554 (get_win32_debug_event): Do not close process handle.
555 (do_initial_win32_stuff): Set open_process_used to zero.
556 (win32_mourn_inferior): Call CloseHandle for current_process_handle if
557 open_process_used is set.
558 (win32_kill_inferior): Do not close process and main_thread handles.
560 2007-11-30 Daniel Jacobowitz <dan@codesourcery.com>
562 * remote.c (remote_cmdlist): New variable.
563 (PACKET_vFile_open, PACKET_vFile_pread, PACKET_vFile_pwrite)
564 (PACKET_vFile_close, PACKET_vFile_unlink): New constants.
565 (remote_buffer_add_string, remote_buffer_add_bytes)
566 (remote_buffer_add_int, remote_hostio_parse_result)
567 (remote_hostio_send_command, remote_hostio_open, remote_hostio_pwrite)
568 (remote_hostio_pread, remote_hostio_close, remote_hostio_unlink)
569 (remote_fileio_errno_to_host, remote_hostio_error, fclose_cleanup)
570 (remote_hostio_close_cleanup, remote_file_put, remote_file_get)
571 (remote_file_delete, remote_put_command, remote_get_command)
572 (remote_delete_command, remote_command): New functions.
573 (_initialize_remote): Register new packets and commands.
574 * Makefile.in (gdb_fileio_h): New variable.
576 (SUBDIR_MI_OBS): Add mi-cmd-target.o.
577 (SUBDIR_MI_SRCS): Add mi/mi-cmd-target.c.
578 (mi-cmd-target.o): New rule.
579 * mi/mi-cmd-target.c: New file.
580 * mi/mi-cmds.c (mi_cmds): Add target-file-delete, target-file-get,
582 * mi/mi-cmds.h (mi_cmd_target_file_get, mi_cmd_target_file_put)
583 (mi_cmd_target_file_delete): Declare.
584 * remote.h (remote_file_put, remote_file_get, remote_file_delete):
586 * NEWS: Describe new file transfer support.
588 2007-11-30 Vladimir Prus <vladimir@codesourcery.com>
590 * infrun.c (handle_inferior_event): Don't
591 ignore beakpoints if trap_expected is set.
593 2007-11-30 Vladimir Prus <vladimir@codesourcery.com>
595 Make insert_breakpoints return void.
596 * breakpoint.h (insert_breakpoints): Change
598 * breakpoint.c (insert_breakpoints): Change
599 return type to void. Rename local return_val
601 * infrun.c (keep_going): Instead of checking
602 return value from insert_breakpoints, catch exception.
604 2007-11-29 Vladimir Prus <vladimir@codesourcery.com>
606 Stop infrun from tracking breakpoint insertion status.
608 The checks of breakpoints_inserted before calling
609 remove_breakpoints are removed, as remove_breakpoint
610 won't touch uninserted breakpoints. In a number of places,
611 we're interested if a breakpoint is inserted at particular
612 PC, and we now use breakpoint_inserted_here_p. In a few
613 places, insert_breakpoints can be called unconditionally,
614 since it won't try to insert already inserted breakpoint.
616 * breakpoint.h (regular_breakpoint_inserted_here_p): New
618 * breakpoint.c (regular_breakpoint_inserted_here_p): New.
619 (breakpoint_inserted_here_p): Use
620 regular_breakpoint_inserted_here_p.
621 * infrun.c (breakpoints_inserted): Remove.
622 (resume): Don't check for breakpoints_inserted before
623 remove_hw_watchpoints. Use breakpoint_inserted_here_p.
624 (proceed, init_wait_for_inferior): Don't set breakpoints_inserted.
625 (handle_inferior_event): Don't use breakpoints_inserted.
626 Use breakpoints_meant_to_be_inserted and
627 breakpoints_inserted_here_p.
628 (insert_step_resume_breakpoint_at_sal, keep_going): Use
629 breakpoints_meant_to_be_inserted. Don't set breakpoints_inserted.
630 (normal_stop): Don't check for breakpoints_inserted. Don't
631 set breakpoints_inserted.
632 (keep_going): Don't check for breakpoints_inserted.
633 (insert_step_resume_breakpoint_at_sal): Don't insert
636 2007-11-28 Jim Blandy <jimb@codesourcery.com>
638 * breakpoint.c (watch_command_1): When the watchpoint isn't local
639 to any frame, initialize watchpoint_frame using null_frame_id, not
642 2007-11-28 Vladimir Prus <vladimir@codesourcery.com>
644 * infrun.c (resume): Set right thread even if
645 stepping over breakpoint using software single step.
647 2007-11-28 Nick Roberts <nickrob@snap.net.nz>
649 * mi/mi-cmd-var.c (print_varobj): Revert change from 2007-08-31.
650 (mi_print_value_p): Guard against type = NULL.
652 2007-11-27 Thiago Jung Bauermann <bauerman@br.ibm.com>
654 * dfp.c (decimal_from_string): Remove superfluous newline from
656 (decimal_to_string): Likewise.
657 * printcmd.c (printf_command): Change string buffer to use
658 MAX_DECIMAL_STRING constant.
659 * value.c (value_from_decfloat): Likewise.
661 2007-11-27 Ulrich Weigand <uweigand@de.ibm.com>
663 * Makefile.in (ALL_TARGET_OBS): Remove object files that require
664 64-bit CORE_ADDR and BFD support, move them to ...
665 (ALL_64_TARGET_OBS): ... this new variable.
666 * configure.ac: Check for --enable-64-bit-bfd option. Only add
667 64-bit targets with --enable-targets=all if BFD supports 64-bit.
668 * configure: Regenerate.
670 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Do not claim
671 all elf32-i386 executables, only cygwin core files.
673 2007-11-25 Jan Kratochvil <jan.kratochvil@redhat.com>
675 * dwarf2read.c (dwarf2_get_pc_bounds): Moved the `DW_AT_ranges' parsing
676 code with its variables OBJFILE, CU_HEADER and OBFD into ...
677 (dwarf2_ranges_read): ... a new function.
678 (read_partial_die): Implemented the parsing of `DW_AT_ranges'.
680 2007-11-24 Pedro Alves <pedro_alves@portugalmail.pt>
682 * win32-nat.c (DR6_CLEAR_VALUE): New define.
683 (thread_info_struct): Rename suspend_count to suspended, to be
685 (thread_rec): Only suspend the thread if it wasn't suspended by
686 gdb before. Warn if suspending failed.
687 (win32_add_thread): Set Dr6 to DR6_CLEAR_VALUE.
688 (win32_continue): Set Dr6 to DR6_CLEAR_VALUE. Update usage of the
689 `suspended' flag. Do ContinueDebugEvent after resuming the
690 suspended threads, not before. Set threads' contexts before
691 resuming them, not after.
692 (win32_resume): Set Dr6 to DR6_CLEAR_VALUE.
694 2007-11-23 Vladimir Prus <vladimir@codesourcery.com>
696 * breakpoint.c (insert_breakpoints)
697 (insert_bp_location): Remove stale comments.
699 2007-11-23 Maciej W. Rozycki <macro@mips.com>
701 * mips-linux-tdep.h: Fix some formatting.
703 2007-11-21 Markus Deuling <deuling@de.ibm.com>
705 * stack.c (print_args_stub): Use get_frame_arch to get at the current
706 architecture and replace current_gdbarch.
707 (frame_info): Likewise.
709 2007-11-21 Nick Roberts <nickrob@snap.net.nz>
711 * varobj.c (c_variable_editable, cplus_variable_editable)
712 (java_variable_editable, variable_editable): Delete.
713 (varobj_editable_p): Replace above functions with one language
714 independent function. Check for an lvalue.
715 (varobj_get_attributes, varobj_set_value): Use varobj_editable_p.
716 (struct language_specific): Delete variable_editable field.
718 * mi-cmd-var.c (mi_cmd_var_assign): Simplify.
720 * varobj.h: Add extern for varobj_editable_p.
722 2007-11-20 Vladimir Prus <vladimir@codesourcery.com>
724 Remove unused breakpoint fields.
725 * breakpoint.h (struct breakpoint): Remove
726 from_tty and flag fields.
727 * breakpoint.c (break_command_1): Don't set
728 from_tty and flag field set of breakpoint.
729 (create_ada_exception_breakpoint): Don't set
732 2007-11-20 David Ung <davidu@mips.com>
733 Maciej W. Rozycki <macro@mips.com>
735 * mips-tdep.c (mips16_scan_prologue): Handle the MIPS16e SAVE
738 2007-11-20 Vladimir Prus <vladimir@codesourcery.com>
740 * infrun.c (resume): Clarify logic that
741 decides if a single thread must be resumed. Add
744 2007-11-20 Vladimir Prus <vladimir@codesourcery.com>
746 * breakpoint.c (disable_breakpoints_in_unloaded_shlib):
749 2007-11-19 Markus Deuling <deuling@de.ibm.com>
751 * gdbarch.sh (register_sim_regno): Add gdbarch as parameter.
752 * gdbarch.{c,h}: Regenerate.
754 * arch-utils.h (legacy_register_sim_regno): Add gdbarch as parameter.
755 * score-tdep.c (score_register_sim_regno): Likewise.
756 * sim-regno.h (one2one_register_sim_regno): Likewise.
758 * arch-utils.c (legacy_register_sim_regno): Add gdbarch as parameter.
759 Replace current_gdbarch by gdbarch.
760 * sh-tdep.c (sh_sh2a_register_sim_regno)
761 (sh_dsp_register_sim_regno): Likewise.
762 * rs6000-tdep.c (rs6000_register_sim_regno): Likewise.
763 * mips-tdep.c (mips_register_sim_regno): Likewise.
764 * m32c-tdep.c (m32c_register_sim_regno): Likewise.
765 * frv-tdep.c (frv_register_sim_regno): Likewise.
766 * arm-tdep.c (arm_register_sim_regno): Likewise.
767 * remote-sim.c (one2one_register_sim_regno): Likewise.
769 2007-11-16 Ulrich Weigand <uweigand@de.ibm.com>
771 * configure.ac (--enable-targets): New configure option.
772 Collect gdb_target_obs of multiple targets into TARGET_OBS.
773 Call configure.tgt multiple times, using $targ as operand.
774 * configure.tgt: Operate on $targ instead of $target.
775 * configure: Regenerate.
776 * Makefile.in (ALL_TARGET_OBS): Define.
778 * NEWS: Mention --enable-targets option.
780 2007-11-16 Ulrich Weigand <uweigand@de.ibm.com>
782 * mips-tdep.c (show_mipsfpu_command): Do not crash if called when
783 current architecture is not MIPS.
785 2007-11-16 Ulrich Weigand <uweigand@de.ibm.com>
787 * cli/cli-setshow.c (do_setshow_command): Use dynamically sized buffer
788 to construct error message if no argument was supplied.
790 2007-11-16 Ulrich Weigand <uweigand@de.ibm.com>
792 * i386nbsd-tdep.c (i386nbsd_aout_supply_regset): Remove.
793 (i386nbsd_aout_regset_from_core_section): Likewise.
794 (i386nbsd_aout_init_abi): Likewise.
795 (_initialize_i386nbsd_tdep): Do not register i386nbsd_aout_init_abi.
797 * vaxnbsd-tdep.c (vaxnbsd_aout_init_abi): Remove.
798 (_initialize_vaxnbsd_tdep): Do not register vaxnbsd_aout_init_abi.
800 2007-11-16 Ulrich Weigand <uweigand@de.ibm.com>
802 * amd64fsdb-tdep.c (amd64fbsd_sigtramp_start_addr): Use ULL suffix.
803 (amd64fbsd_sigtramp_end_addr): Likewise.
805 * iq2000-tdep.c (iq2000_pointer_to_address): Fix argument type.
806 (iq2000_address_to_pointer): Likewise.
807 (iq2000_frame_prev_register): Likewise.
808 (iq2000_extract_return_value): Use regcache_cooked_read_unsigned
809 instead of regcache_cooked_read into CORE_ADDR variable.
810 (iq2000_return_value): Fix argument types.
812 * m32r-rom.c (m32r_load_section): Fix printf argument type.
813 (m32r_load): Likewise.
815 * m68kbsd-tdep.c: Include "gdbtypes.h".
816 * Makefile.in: Update dependencies.
818 * mn10300-tdep.c (mn10300_frame_unwind_cache): Fix aliasing violation.
820 * nto-tdep.c (LM_ADDR): Do not refer to no-longer-existing
821 lmo->l_addr_size element.
823 * remote-m32r-sdi.c (m32r_xfer_memory): Use paddr to print address.
824 (m32r_insert_breakpoint): Likewise.
825 (m32r_remove_breakpoint): Likewise.
826 (m32r_insert_watchpoint): Likewise.
827 (m32r_remove_watchpoint): Likewise.
828 (m32r_load): Fix printf argument type.
830 * xtensa-tdep.c (xtensa_regset_from_core_section): Fix printf
832 (xtensa_frame_this_id): Do not cast pointers to "int" for output.
833 (xtensa_frame_prev_register): Likewise.
834 (xtensa_push_dummy_call): Likewise.
836 2007-11-16 Ulrich Weigand <uweigand@de.ibm.com>
838 * config/alpha/alpha-linux.mt: Remove file.
839 * config/alpha/alpha.mt: Remove file.
840 * config/alpha/alpha-osf1.mt: Remove file.
841 * config/alpha/fbsd.mt: Remove file.
842 * config/alpha/nbsd.mt: Remove file.
843 * config/alpha/obsd.mt: Remove file.
844 * config/arm/embed.mt: Remove file.
845 * config/arm/linux.mt: Remove file.
846 * config/arm/nbsd.mt: Remove file.
847 * config/arm/obsd.mt: Remove file.
848 * config/arm/wince.mt: Remove file.
849 * config/avr/avr.mt: Remove file.
850 * config/cris/cris.mt: Remove file.
851 * config/frv/frv.mt: Remove file.
852 * config/h8300/h8300.mt: Remove file.
853 * config/i386/cygwin.mt: Remove file.
854 * config/i386/fbsd64.mt: Remove file.
855 * config/i386/fbsd.mt: Remove file.
856 * config/i386/i386gnu.mt: Remove file.
857 * config/i386/i386.mt: Remove file.
858 * config/i386/i386sol2.mt: Remove file.
859 * config/i386/linux64.mt: Remove file.
860 * config/i386/linux.mt: Remove file.
861 * config/i386/mingw.mt: Remove file.
862 * config/i386/nbsd64.mt: Remove file.
863 * config/i386/nbsd.mt: Remove file.
864 * config/i386/nto.mt: Remove file.
865 * config/i386/obsd64.mt: Remove file.
866 * config/i386/obsd.mt: Remove file.
867 * config/i386/sol2-64.mt: Remove file.
868 * config/ia64/ia64.mt: Remove file.
869 * config/ia64/linux.mt: Remove file.
870 * config/iq2000/iq2000.mt: Remove file.
871 * config/m32c/m32c.mt: Remove file.
872 * config/m32r/linux.mt: Remove file.
873 * config/m32r/m32r.mt: Remove file.
874 * config/m68hc11/m68hc11.mt: Remove file.
875 * config/m68k/linux.mt: Remove file.
876 * config/m68k/monitor.mt: Remove file.
877 * config/m68k/nbsd.mt: Remove file.
878 * config/m68k/obsd.mt: Remove file.
879 * config/m88k/obsd.mt: Remove file.
880 * config/mep/mep.mt: Remove file.
881 * config/mips/embed.mt: Remove file.
882 * config/mips/irix5.mt: Remove file.
883 * config/mips/irix6.mt: Remove file.
884 * config/mips/linux.mt: Remove file.
885 * config/mips/nbsd.mt: Remove file.
886 * config/mips/obsd64.mt: Remove file.
887 * config/mn10300/linux.mt: Remove file.
888 * config/mn10300/mn10300.mt: Remove file.
889 * config/mt/mt.mt: Remove file.
890 * config/pa/hppahpux.mt: Remove file.
891 * config/pa/hppa.mt: Remove file.
892 * config/pa/linux.mt: Remove file.
893 * config/pa/obsd.mt: Remove file.
894 * config/powerpc/aix.mt: Remove file.
895 * config/powerpc/linux.mt: Remove file.
896 * config/powerpc/nbsd.mt: Remove file.
897 * config/powerpc/obsd.mt: Remove file.
898 * config/powerpc/ppc-eabi.mt: Remove file.
899 * config/s390/s390.mt: Remove file.
900 * config/score/embed.mt: Remove file.
901 * config/sh/embed.mt: Remove file.
902 * config/sh/linux.mt: Remove file.
903 * config/sh/nbsd.mt: Remove file.
904 * config/sh/obsd.mt: Remove file.
905 * config/sh/sh64.mt: Remove file.
906 * config/sparc/embed.mt: Remove file.
907 * config/sparc/fbsd.mt: Remove file.
908 * config/sparc/linux64.mt: Remove file.
909 * config/sparc/linux.mt: Remove file.
910 * config/sparc/nbsd64.mt: Remove file.
911 * config/sparc/nbsd.mt: Remove file.
912 * config/sparc/obsd64.mt: Remove file.
913 * config/sparc/obsd.mt: Remove file.
914 * config/sparc/sol2-64.mt: Remove file.
915 * config/sparc/sol2.mt: Remove file.
916 * config/sparc/sparc64.mt: Remove file.
917 * config/sparc/sparc.mt: Remove file.
918 * config/spu/spu.mt: Remove file.
919 * config/v850/v850.mt: Remove file.
920 * config/vax/nbsd.mt: Remove file.
921 * config/vax/obsd.mt: Remove file.
922 * config/vax/vax.mt: Remove file.
923 * config/xstormy16/xstormy16.mt: Remove file.
924 * config/xtensa/xtensa.mt: Remove file.
926 * configure.tgt (gdb_target_cpu): Remove. Do not set anywhere.
927 (gdb_target): Likewise.
928 (gdb_target_obs): Document. Set for every target to contents
929 of TDEPFILES in former .mt makefile fragment.
931 * configure.ac (TARGET_OBS): Define.
932 (target_makefile_frag, gdb_target_cpu): Do not define.
933 * configure: Regenerate.
935 * Makefile.in (MT_FLAGS): Remove.
936 (GLOBAL_CFLAGS): Update.
937 (TARGET_OBS): Substitute from configure.
938 (DEPFILES): Remove TDEPFILES, add TARGET_OBS.
939 (@target_makefile_frag@): Remove.
941 2007-11-16 Ulrich Weigand <uweigand@de.ibm.com>
943 * config/arm/embed.mt (SIM_OBS, SIM): Remove.
944 * config/avr/avr.mt (SIM_OBS, SIM): Remove.
945 * config/frv/frv.mt (SIM_OBS, SIM): Remove.
946 * config/h8300/h8300.mt (SIM_OBS, SIM): Remove.
947 * config/iq2000/iq2000.mt (SIM_OBS, SIM): Remove.
948 * config/m32c/m32c.mt (SIM_OBS, SIM): Remove.
949 * config/m32r/linux.mt (SIM_OBS, SIM): Remove.
950 * config/m32r/m32r.mt (SIM_OBS, SIM): Remove.
951 * config/m68hc11/m68hc11.mt (SIM_OBS, SIM): Remove.
952 * config/mips/embed.mt (SIM_OBS, SIM): Remove.
953 * config/mips/linux.mt (SIM_OBS, SIM): Remove.
954 * config/mips/nbsd.mt (SIM_OBS, SIM): Remove.
955 * config/mn10300/mn10300.mt (SIM_OBS, SIM): Remove.
956 * config/powerpc/linux.mt (SIM_OBS, SIM): Remove.
957 * config/powerpc/nbsd.mt (SIM_OBS, SIM): Remove.
958 * config/powerpc/ppc-sim.mt: Remove file.
959 * config/sh/embed.mt (SIM_OBS, SIM): Remove.
960 * config/sh/linux.mt (SIM_OBS, SIM): Remove.
961 * config/sh/nbsd.mt (SIM_OBS, SIM): Remove.
962 * config/sh/sh64.mt (SIM_OBS, SIM): Remove.
963 * config/sparc/embed.mt (SIM_OBS, SIM): Remove.
964 * config/v850/v850.mt (SIM_OBS, SIM): Remove.
965 * config/xstormy16/xstormy16.mt (SIM_OBS, SIM): Remove.
967 * configure.tgt (gdb_sim): Document variable.
968 (arm*-*-* | thumb*-*-* | strongarm*-*-* | xscale-*-*): Set it.
971 (h8300-*-*): Likewise.
972 (iq2000-*-*): Likewise.
973 (m32c-*-*): Likewise.
974 (m32r*-*-linux*): Likewise.
975 (m32r*-*-*): Likewise.
976 (m68hc11*-*-*|m6811*-*-*): Likewise.
977 (mips*-*-*): Likewise.
978 (mips*-*-linux*): Likewise.
979 (mips*-*-netbsd* | mips*-*-knetbsd*-gnu): Likewise.
980 (mn10300-*-*): Likewise.
981 (powerpc-*-linux* | powerpc64-*-linux*): Likewise.
982 (powerpc-*-netbsd* | powerpc-*-knetbsd*-gnu): Likewise.
983 (powerpc*-*-*): Use ppc-eabi target. Conditionally set gdb_sim.
985 (sh-*-linux*): Likewise.
986 (sh*-*-netbsdelf* | sh*-*-knetbsd*-gnu): Likewise.
987 (sh64-*-elf*): Likewise.
988 (sparc-*-rtems*): Likewise.
989 (v850*-*-elf): Likewise.
990 (xstormy16-*-*): Likewise.
992 * configure.ac (IGNORE_SIM, IGNORE_SIM_OBS): Do not set.
993 (SIM, SIM_OBS): Set depending on ${ignore_sim} and ${gdb_sim}.
994 * configure: Regenerate.
995 * Makefile.in (SIM, SIM_OBS): Substitute from configure.
996 (@IGNORE_SIM@, @IGNORE_SIM_OBS@): Remove.
998 2007-11-16 Ulrich Weigand <uweigand@de.ibm.com>
1000 * configure.tgt (gdb_osabi, build_gdbserver): Comment variables.
1001 (arm*-*-*): Do not set obsolete build_rdi_share variable.
1003 (*-*-freebsd* | *-*-kfreebsd*-gnu): Remove generic case, replace by ...
1004 (alpha*-*-freebsd* | alpha*-*-kfreebsd*-gnu)
1005 (i[34567]86-*-freebsd* | i[34567]86-*-kfreebsd*-gnu)
1006 (sparc*-*-freebsd* | sparc*-*-kfreebsd*-gnu): ... specific cases.
1007 (x86_64-*-freebsd* | x86_64-*-kfreebsd*-gnu): Re-sort.
1009 (xscale-*-*): Merge into arm*-*-* case.
1010 (fido-*-elf*): Merge into m68*-*-elf* case.
1011 (m68*-*-aout*, m68*-*-coff*, m68*-*-elf*, m68*-*-rtems*,
1012 m68*-*-uclinux*): Merge cases.
1013 (powerpc-*-linux*, powerpc64-*-linux*): Merge cases.
1014 (sh-*-coff*, sh-*-elf*): Merge into sh* case.
1016 2007-11-16 Ulrich Weigand <uweigand@de.ibm.com>
1018 * configure.tgt: Reformat main case statement.
1020 2007-11-16 Ulrich Weigand <uweigand@de.ibm.com>
1022 * configure.ac (hostfile, targetfile): Remove.
1023 (GDB_XM_FILE, GDB_TM_FILE): Do not define.
1024 (xm_h, tm_h): Likewise.
1025 (DEPRECATED_TM_FILE, XM_FILE): Do not substitute into Makefile.
1026 * configure, config.in: Regenerate.
1028 * Makefile.in (xm_h, tm_h): Remove. Update dependencies.
1029 (TAGS): Do not consider DEPRECATED_TM_FILE or XM_FILE.
1030 (clean, local-maintainer-clean): Do not remove xm.h or tm.h.
1031 * defs.h: Do not include "xm.h" or "tm.h".
1033 * gdbarch.sh (verify_gdbarch): Do not dump GDB_XM_FILE or GDB_TM_FILE.
1034 * gdbarch.c: Regenerate.
1036 * config/score/embed.mt: Remove obsolete comment.
1038 2007-11-16 Markus Deuling <deuling@de.ibm.com>
1040 * gdbarch.sh (cannot_fetch_register, cannot_store_register): Add gdbarch
1042 * gdbarch.{c,h}: Regenerate.
1044 * alpha-tdep.c (alpha_cannot_fetch_register)
1045 (alpha_cannot_store_register): Add gdbarch as parameter. Replace
1046 current_gdbarch by gdbarch.
1047 * cris-tdep.c (cris_cannot_fetch_register, cris_cannot_store_register)
1048 (crisv32_cannot_fetch_register)
1049 (crisv32_cannot_store_register): Likewise.
1050 * arch-utils.c (cannot_register_not): Likewise.
1051 * arch-utils.h (cannot_register_not): Likewise.
1052 * hppa-tdep.c (hppa32_cannot_store_register)
1053 (hppa32_cannot_store_register, hppa64_cannot_store_register)
1054 (hppa64_cannot_fetch_register): Likewise.
1055 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register)
1056 (mipsnbsd_cannot_store_register): Likewise.
1058 2007-11-16 Markus Deuling <deuling@de.ibm.com>
1060 * m32r-rom.c (m32r_supply_register): Use get_regcache_arch to get at
1061 the current architecture by regcache.
1062 * ppcnbsd-nat.c (ppcnbsd_supply_pcb): Likewise.
1063 * ppc-linux-nat.c (fetch_altivec_register, fetch_spe_register)
1064 (fetch_register, supply_vrregset, fetch_ppc_registers)
1065 (store_altivec_register, store_spe_register, store_register)
1066 (fill_vrregset, store_ppc_registers): Likewise.
1067 * ppcobsd-nat.c (ppcobsd_supply_pcb): Likewise.
1068 * win32-nat.c (do_win32_fetch_inferior_registers)
1069 (do_win32_store_inferior_registers): Likewise.
1070 * procfs.c (procfs_fetch_registers, procfs_store_registers): Likewise.
1071 * remote-m32r-sdi.c (m32r_fetch_registers)
1072 (m32r_store_registers): Likewise.
1073 * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register): Likewise.
1075 * trad-frame.c (trad_frame_alloc_saved_regs): Replace current_gdbarch by
1077 * user-regs.c (user_reg_map_name_to_regnum): Likewise.
1078 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call)
1079 (do_ppc_sysv_return_value, ppc64_sysv_abi_push_dummy_call)
1080 (ppc64_sysv_abi_return_value): Likewise.
1081 * m32c-tdep.c (m32c_register_reggroup_p): Likewise.
1082 * m2-lang.c (build_m2_types): Likewise.
1083 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache
1084 * ppcnbsd-tdep.c (ppcnbsd_sigtramp_cache_init): Likewise.
1085 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_cache): Likewise.
1086 * rs6000-tdep.c (ppc_dwarf2_frame_init_reg): Likewise.
1088 * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Use get_frame_arch to
1089 get at the current architecture by frame_info.
1090 * gcore.c (derive_stack_segment): Likewise.
1092 * shnbsd-nat.c (GETREGS_SUPPLIES): Add gdbarch parameter.
1093 (shnbsd_fetch_inferior_registers, shnbsd_store_inferior_registers): Add
1094 gdbarch to GETREGS_SUPPLIES call.
1096 2007-11-16 Ulrich Weigand <uweigand@de.ibm.com>
1098 * elfread.c (ST_REGULAR, ST_DYNAMIC, ST_SYNTHETIC): New defines.
1099 (elf_symtab_read): Rename DYNAMIC argument to TYPE. Do not access
1100 ELF-private symbol data when processing synthetic symbols. Use
1101 udata.p to get at size of ppc64 synthetic 'dot' symbols.
1102 (elf_symfile_read): Pass TYPE argument to elf_symtab_read.
1104 2007-11-15 Doug Evans <dje@google.com>
1106 * buildsym.h (subfiles): Move ...
1107 * buildsym.c (subfiles): ... to here and make static.
1109 * symmisc.c (maintenance_info_symtabs): Print linetable info.
1111 2007-11-15 Markus Deuling <deuling@de.ibm.com>
1113 * mipsnbsd-tdep.h (SIZEOF_STRUCT_REG, SIZEOF_STRUCT_FPREG): Remove
1115 2007-11-15 Markus Deuling <deuling@de.ibm.com>
1117 * arm-tdep.c (arm_prologue_this_id): Replace LOWEST_PC by its
1118 expression and use get_frame_arch to replace current_gdbarch by frame's
1120 * arm-tdep.h (LOWEST_PC): Remove
1122 2007-11-15 Vladimir Prus <vladimir@codesourcery.com>
1124 Apply const qualifier to some users of bp_location.
1125 * breakpoint.h (struct bpstats): Make
1126 the breakpoint_at field point at const bp_location.
1127 * breakpoint.c (bpstat_alloc): Accept const
1129 (breakpoint_here_p, breakpoint_inserted_here_p)
1130 (software_breakpoint_inserted_here_p)
1131 (breakpoint_thread_match, bpstat_stop_status)
1132 (read_memory_nobpt, bpstat_have_active_hw_watchpoints): Use
1133 const bp_location for iteration.
1134 (print_it_typical, print_bp_stop_message): Use
1135 const bp_location variable.
1137 2007-11-15 Vladimir Prus <vladimir@codesourcery.com>
1139 Make mark_breakpoints_out static.
1140 * breakpoint.h (mark_breakpoints_out): Remove
1142 * breakpoint.c (mark_breakpoints_out): Make static.
1144 2007-11-15 Vladimir Prus <vladimir@codesourcery.com>
1146 Prevent clear_command from directly modifying breakpoint list.
1147 * Makefile.in (breakpoint_h): Update dependency.
1148 * breakpoint.c (clear_command): Do not remove
1149 breakpoints from breakpoint_chain. Collect breakpoints
1150 to delete in a vector.
1151 * breakpoint.h (breakpoint_p): New typedef for pointer to
1152 breakpoint. Register vector of breakpoint_p.
1154 2007-11-15 Vladimir Prus <vladimir@codesourcery.com>
1156 Remove 'run_cleanup'.
1157 * defs.h (do_run_cleanups, make_run_cleanup): Remove
1159 * infcmd.c (run_command_1): Call clear_solib instead
1161 * jv-lang.c (java_rerun_cleanup): Remove, for lack of
1163 * solib.c (solib_cleanup_queued, do_clear_solib): Remove.
1164 (update_solib_lib): Don't setup run cleanup.
1165 (no_shared_libraries): Call clear_solib, not do_clear_solib.
1166 * utils.c (run_cleanup_chain, make_run_cleanup)
1167 (do_run_cleanups): Remove.
1169 2007-11-15 Vladimir Prus <vladimir@codesourcery.com>
1171 Remove CLEAR_SOLIB use.
1172 * corelow.c (core_close): Don't check for CLEAR_SOLIB.
1173 * infcmd.c (attach_command): Likewise.
1175 2007-11-14 Doug Evans <dje@google.com>
1177 * buildsym.c (start_subfile,start_symtab): Doc fixes.
1179 2007-11-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
1181 * tui/tui-data.c (tui_prev_win): Guard against NULL.
1183 2007-11-12 Markus Deuling <deuling@de.ibm.com>
1185 * gdbarch.sh (gdbarch_alloc): Replace current_gdbarch by gdbarch. Remove
1187 (verify_gdbarch, gdbarch_dump): Likewise.
1188 (do_read): Update comment.
1189 (addr_bit, bfd_arch_info, target_desc, long_long_bit, floatformat)
1190 (ptr_bit, name_of_malloc): Replace current_gdbarch by gdbarch.
1191 * gdbarch.{c,h}: Regenerate.
1193 2007-11-12 Markus Deuling <deuling@de.ibm.com>
1195 * xtensa-tdep.c (ARG_1ST): Replace ARGS_FIRST_REG by its expression.
1196 (ARGS_FIRST_REG): Remove.
1197 (areg_numer): New function.
1198 (xtensa_pseudo_register_read, xtensa_frame_prev_register)
1199 (xtensa_extract_return_value, xtensa_store_return_value)
1200 (xtensa_frame_cache): Replace AREG_NUMBER by areg_number.
1201 (AREG_NUMBER): Remove.
1202 (XTENSA_IS_ENTRY, ARG_NOF, ARG_1ST): Add gdbarch as parameter.
1203 (xtensa_frame_cache): Update use of XTENSA_IS_ENTRY.
1204 (xtensa_push_dummy_call): Update use of ARG_NOF.
1205 (extract_call_winsize): Add gdbarch as parameter. Replace
1206 current_gdbarch by gdbarch.
1207 (xtensa_extract_return_value, xtensa_store_return_value): Update call
1208 of extract_call_winsize.
1210 2007-11-10 Joel Brobecker <brobecker@adacore.com>
1212 * NEWS: Add entry for new set/show print frame-args command.
1214 2007-11-09 Kevin Buettner <kevinb@redhat.com>
1216 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Add missing
1217 register number to map. Adjust warning check and error/warning
1218 return value code to match expectations of this function's callers.
1220 2007-11-09 Joel Brobecker <brobecker@adacore.com>
1222 * stack.c (print_this_frame_argument_p): Handle arguments passed
1223 by reference properly.
1225 2007-11-09 Joel Brobecker <brobecker@adacore.com>
1227 * stack.c (print_frame_arguments_choices): New static global.
1228 (print_frame_arguments): Likewise.
1229 (print_this_frame_argument_p): New function.
1230 (print_frame_args): Print the argument value only when appropriate.
1231 (_initialize_task): Add new "set/show print frame-arguments" command.
1233 2007-11-09 Luis Machado <luisgpm@br.ibm.com>
1235 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Move
1236 saved_dabr_value assignment to the correct position.
1238 2007-11-09 Markus Deuling <deuling@de.ibm.com>
1240 * arch-utils.c (generic_convert_register_p): Add gdbarch as parameter.
1241 * arch-utils.h (generic_convert_register_p): Likewise.
1243 2007-11-09 Markus Deuling <deuling@de.ibm.com>
1245 * gdbarch.sh (convert_register_p): Add gdbarch as parameter.
1246 * ia64-tdep.c (ia64_convert_register_p): Likewise.
1247 * i387-tdep.c (i387_convert_register_p): Likewise.
1248 * i387-tdep.h (i387_convert_register_p): Likewise.
1249 * alpha-tdep.c (alpha_convert_register_p): Likewise.
1250 * gdbarch.{c,h}: Regenerate.
1252 * rs6000-tdep.c (rs6000_convert_register_p): Add gdbarch as parameter.
1253 Replace current_gdbarch by gdbarch.
1254 * mips-tdep.c (mips_convert_register_p): Likewise.
1255 * m68k-tdep.c (m68k_convert_register_p): Likewise.
1256 * i386-tdep.c (i386_convert_register_p): Likewise.
1258 2007-11-08 Aleksandar Ristovski <aristovski@qnx.com>
1260 * gdb_string.h: Include <strings.h>.
1262 2007-11-08 Vladimir Prus <vladimir@codesourcery.com>
1264 * breakpoint.c (break_command_1): Remove
1265 pending_bp parameter.
1266 (create_breakpoint): Likewise.
1267 (create_breakpoints): Likewise. Adjust call to
1269 (break_command_1): Likewise. Adjust call to
1271 (do_captured_breakpoint): Adjust call to
1273 (break_command, tbreak_command, hbreak_command)
1274 (stopin_command, stopat_command): Adjust call
1277 2007-11-07 Joseph Myers <joseph@codesourcery.com>
1278 Daniel Jacobowitz <dan@codesourcery.com>
1280 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Right-align
1281 struct values smaller than one doubleword; left-align those
1282 larger. Pass structs containing a single floating-point value in
1285 2007-11-07 Joseph Myers <joseph@codesourcery.com>
1286 Daniel Jacobowitz <dan@codesourcery.com>
1288 * gdbtypes.c (floatformats_ibm_long_double): New.
1289 * gdbtypes.h (floatformats_ibm_long_double): Declare.
1290 * ia64-tdep.c (floatformat_ia64_ext): Update for addition of
1292 * mips-tdep.c (n32n64_floatformat_always_valid,
1293 floatformat_n32n64_long_double_big, floatformats_n32n64_long):
1295 (mips_gdbarch_init): Use floatformats_ibm_long_double instead of
1296 floatformats_n32n64_long.
1297 * ppc-linux-tdep.c (ppc_linux_init_abi): Use 128-bit IBM long
1299 * doublest.c (convert_floatformat_to_doublest,
1300 convert_doublest_to_floatformat): Handle split floating-point
1302 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Handle IBM long
1304 (ppc64_sysv_abi_push_dummy_call): Likewise.
1305 (do_ppc_sysv_return_value): Handle IBM long double return.
1307 2007-11-07 Vladimir Prus <vladimir@codesourcery.com>
1309 Fix crash when a variable object being deleted
1310 has any of its children deleted previously.
1312 * varobj.c (delete_variable_1): Don't recurse
1313 into deleted children.
1315 2007-11-07 Markus Deuling <deuling@de.ibm.com>
1317 * gdbarch.sh (legacy_virtual_frame_pointer): Add gdbarch parameter.
1318 * gdbarch.{c,h}: Regenerate.
1319 * arch-utils.c (legacy_virtual_frame_pointer): Add gdbarch parameter.
1320 Replace current_gdbarch by gdbarch.
1321 * m32c-tdep.c (m32c_virtual_frame_pointer): Likewise.
1322 * mips-tdep.c (mips_virtual_frame_pointer): Likewise.
1323 * spu-tdep.c (spu_virtual_frame_pointer): Likewise.
1325 2007-11-07 Markus Deuling <deuling@de.ibm.com>
1327 * shnbsd-tdep.c (shnbsd_supply_gregset, shnbsd_collect_gregset): Use
1328 get_regcache_arch to get at the current architecture by regcache.
1329 * xstormy16-tdep.c (xstormy16_frame_prev_register): Use get_frame_arch
1330 to get at the current architecture by frame_info.
1331 * fbsd-nat.c (fbsd_make_corefile_notes): Use get_regcache_arch to get
1332 at the current architecture by regcache.
1333 * gnu-v3-abi.c (gnuv3_skip_trampoline): Use get_frame_arch to get at
1334 the current architecture by frame_info.
1335 (build_gdb_vtable_type): Replace current_gdbarch by gdbarch.
1336 * aix-thread.c (special_register_p): Add gdbarch as parameter.
1337 (fetch_regs_kernel_thread, store_regs_kernel_thread): Add gdbarch to
1338 caller of special_register_p.
1340 2007-11-07 Markus Deuling <deuling@de.ibm.com>
1342 * infcall.c (call_function_by_hand): Use get_frame_arch to get at the
1343 current architecture by frame_info.
1345 2007-11-07 Markus Deuling <deuling@de.ibm.com>
1347 * xtensa-tdep.h (SIZEOF_GREGSET, XTENSA_ELF_NGREG) Remove.
1349 2007-11-07 Markus Deuling <deuling@de.ibm.com>
1351 * s390-nat.c (supply_gregset, fill_gregset): Use get_regcache_arch to
1352 get at the current architecture by regcache.
1353 (SUBOFF): Add gdbarch to macro definition.
1355 2007-11-07 Markus Deuling <deuling@de.ibm.com>
1357 * gdbarch.sh (breakpoint_from_pc): Add gdbarch parameter.
1358 * gdbarch.{c,h}: Regenerate.
1360 * xtensa-tdep.c (xtensa_breakpoint_from_pc): Add gdbarch parameter.
1361 Replace current_gdbarch by gdbarch.
1362 * sh-tdep.c (sh_breakpoint_from_pc): Likewise.
1363 * sh64-tdep.c (sh64_breakpoint_from_pc): Likewise.
1364 * score-tdep.c (score_breakpoint_from_pc): Likewise.
1365 * mips-tdep.c (mips_breakpoint_from_pc): Likewise.
1366 * m32r-tdep.c (m32r_breakpoint_from_pc): Likewise.
1367 * iq2000-tdep.c (iq2000_breakpoint_from_pc): Likewise.
1368 * arm-tdep.c (arm_breakpoint_from_pc): Likewise.
1370 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Add gdbarch
1372 * vax-tdep.c (vax_breakpoint_from_pc): Likewise.
1373 * v850-tdep.c (v850_breakpoint_from_pc): Likewise.
1374 * spu-tdep.c (spu_breakpoint_from_pc): Likewise.
1375 * sparc-tdep.c (sparc_breakpoint_from_pc): Likewise.
1376 * s390-tdep.c (s390_breakpoint_from_pc): Likewise.
1377 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Likewise.
1378 * mt-tdep.c (mt_breakpoint_from_pc): Likewise.
1379 * mep-tdep.c (mep_breakpoint_from_pc): Likewise.
1380 * m88k-tdep.c (m88k_breakpoint_from_pc): Likewise.
1381 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Likewise.
1382 * m32c-tdep.c (m32c_breakpoint_from_pc): Likewise.
1383 * ia64-tdep.c (ia64_breakpoint_from_pc): Likewise.
1384 * i386-tdep.c (i386_breakpoint_from_pc): Likewise.
1385 * hppa-tdep.c (hppa_breakpoint_from_pc): Likewise.
1386 * h8300-tdep.c (h8300_breakpoint_from_pc): Likewise.
1387 * frv-tdep.c (frv_breakpoint_from_pc): Likewise.
1388 * cris-tdep.c (cris_breakpoint_from_pc): Likewise.
1389 * avr-tdep.c (avr_breakpoint_from_pc): Likewise.
1390 * alpha-tdep.c (alpha_breakpoint_from_pc): Likewise.
1391 * m68k-tdep.c (m68k_local_breakpoint_from_pc): Likewise.
1393 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Add gdbarch parameter.
1394 Replace current_gdbarch by gdbarch.
1395 (rs6000_software_single_step): Use get_frame_arch to get at the
1396 current architecture by frame_info. Add gdbarch to
1397 rs6000_breakpoint_from_pc call.
1399 2007-11-07 Markus Deuling <deuling@de.ibm.com>
1401 * frv-tdep.c (frv_register_name, frv_check_watch_resources): Replace
1402 macro CURRENT_VARIANT by its expression.
1403 (CURRENT_VARIANT): Remove.
1404 (frv_check_watch_resources): Add gdbarch parameter.
1406 2007-11-07 Markus Deuling <deuling@de.ibm.com>
1408 * MAINTAINERS (Write After Approval): Add self.
1410 2007-11-05 Ulrich Weigand <uweigand@de.ibm.com>
1412 * features/rs6000/power-core.xml: Use uint32 as register type.
1413 * features/rs6000/power64-core.xml: Use uint64/uint32 as register type.
1414 * features/rs6000/powerpc-32.c: Regenerate.
1415 * features/rs6000/powerpc-403.c: Regenerate.
1416 * features/rs6000/powerpc-403gc.c: Regenerate.
1417 * features/rs6000/powerpc-505.c: Regenerate.
1418 * features/rs6000/powerpc-602.c: Regenerate.
1419 * features/rs6000/powerpc-603.c: Regenerate.
1420 * features/rs6000/powerpc-604.c: Regenerate.
1421 * features/rs6000/powerpc-64.c: Regenerate.
1422 * features/rs6000/powerpc-7400.c: Regenerate.
1423 * features/rs6000/powerpc-750.c: Regenerate.
1424 * features/rs6000/powerpc-860.c: Regenerate.
1425 * features/rs6000/powerpc-e500.c: Regenerate.
1427 2007-11-05 Joel Brobecker <brobecker@adacore.com>
1429 * breakpoint.c (set_raw_breakpoint_without_location): Make static.
1431 2007-11-05 Joel Brobecker <brobecker@adacore.com>
1433 * breakpoint.h (create_solib_load_event_breakpoint)
1434 (create_solib_unload_event_breakpoint)
1435 (create_fork_event_catchpoint, create_vfork_event_catchpoint)
1436 (create_exec_event_catchpoint): Delete declaration.
1437 * breakpoint.c (create_solib_load_event_breakpoint)
1438 (solib_load_unload_1, create_solib_unload_event_breakpoint): Delete.
1439 (create_fork_event_catchpoint, create_vfork_event_catchpoint)
1440 (create_exec_event_catchpoint): Make static.
1442 2007-11-05 Joel Brobecker <brobecker@adacore.com>
1444 * breakpoint.h (set_breakpoint_sal): Remove declaration.
1445 * breakpoint.c (set_breakpoint_sal): Delete.
1447 2007-11-05 Joel Brobecker <brobecker@adacore.com>
1449 * buildsym.c (finish_block): Remove "#if 1"/"#endif" brackets.
1450 (make_blockvector): Likewise. Remove FIXME comment.
1452 2007-11-05 Luis Machado <luisgpm@br.ibm.com>
1454 * printcmd.c: (printf_command): Add support for new DFP
1455 modifiers %H, %D and %DD.
1456 * configure.ac: Add check for DECFLOAT printf support.
1457 * configure: Regenerated.
1459 2007-11-02 Ulrich Weigand <uweigand@de.ibm.com>
1461 * gdbtypes.h (struct cplus_struct_type): Remove runtime_ptr member.
1462 (TYPE_RUNTIME_PTR, TYPE_VTABLE, TYPE_HAS_VTABLE,
1463 TYPE_PRIMARY_BASE, TYPE_VIRTUAL_BASE_LIST): Remove macros.
1464 (HP_ACC_VFUNC_START, HP_ACC_VBASE_START, HP_ACC_TYPEINFO_OFFSET,
1465 HP_ACC_TOP_OFFSET_OFFSET): Likewise.
1466 (has_vtable, primary_base_class, virtual_base_list_length,
1467 virtual_base_list_length_skip_primaries, virtual_base_index,
1468 virtual_base_index_skip_primaries, class_index_in_primary_list,
1469 count_virtual_fns): Remove prototypes.
1470 * gdbtypes.c (has_vtable, primary_base_class, current_vbase_list,
1471 virtual_base_list_aux, virtual_base_list, virtual_base_list_length,
1472 virtual_base_list_length_skip_primaries, virtual_base_index,
1473 virtual_base_index_skip_primaries, class_index_in_primary_list,
1474 count_virtual_fns): Remove.
1476 * cp-valprint.c (cp_print_hpacc_virtual_table_entries): Remove.
1477 (hpacc_vtbl_ptr_name, hpacc_vtbl_ptr_type_name): Remove.
1478 (cp_print_value_fields): Remove support for HP aCC vtables.
1479 (cp_print_value): Likewise.
1480 * c-typeprint.c (c_type_print_base): Likewise.
1482 * value.h (find_rt_vbase_offset): Remove prototype.
1483 * valops.c (find_rt_vbase_offset): Remove.
1484 (search_struct_method): Remove support for HP aCC vtables.
1485 (find_method_list): Likewise.
1487 2007-11-02 Ulrich Weigand <uweigand@de.ibm.com>
1489 * language.h (struct language_defn): Remove la_builtin_type_vector
1490 and string_char_type members.
1491 * language.c (language_string_char_type): No longer consult
1492 la->string_char_type.
1493 (language_lookup_primitive_type_by_name): No longer consult
1494 current_language->la_builtin_type_vector.
1496 * language.c (unknown_language_defn, auto_language_defn,
1497 local_language_defn): Adapt initializer.
1498 * ada-lang.c (ada_language_defn): Likewise.
1499 * c-lang.c (c_language_defn, cplus_language_defn, asm_language_defn,
1500 minimal_language_defn): Likewise.
1501 * f-lang.c (f_language_defn): Likewise.
1502 * jv-lang.c (java_language_defn): Likewise.
1503 * m2-lang.c (m2_language_defn): Likewise.
1504 * objc-lang.c (objc_language_defn): Likewise.
1505 * p-lang.c (pascal_language_defn): Likewise.
1506 * scm-lang.c (scm_language_defn): Likewise.
1508 2007-11-02 Markus Deuling <deuling@de.ibm.com>
1510 * frame.c (frame_id_inner): Add gdbarch parameter. Replace
1511 current_gdbarch by gdbarch.
1512 (frame_find_by_id, get_prev_frame_1): Use get_frame_arch to get at the
1513 current architecture by frame_info.
1514 * frame.h (frame_id_inner): Add gdbarch parameter.
1515 * stack.c (return_command): Use get_frame_arch to get at the current
1516 architecture by frame_info. Update call of frame_id_inner.
1517 * infrun.c (handle_inferior_event): Likewise.
1518 * dummy-frame.c (dummy_frame_push): Use get_regcache_arch to get at the
1519 current architecture by regcache. Update call of frame_id_inner.
1521 2007-11-02 Markus Deuling <deuling@de.ibm.com>
1523 * gdbarch.sh (register_name): Add gdbarch parameter.
1524 * gdbarch.{c,h}: Regenerate.
1526 * target-descriptions.c (tdesc_register_name): Add gdbarch parameter.
1527 (tdesc_register_name): Replace current_gdbarch by gdbarch.
1528 * target-descriptions.h (tdesc_register_name): Add gdbarch parameter.
1530 * xstormy16-tdep.c (xstormy16_register_name): Add gdbarch parameter.
1531 * vax-tdep.c (vax_register_name): Add gdbarch parameter.
1532 * spu-tdep.c (spu_register_name): Add gdbarch parameter.
1533 * s390-tdep.c (s390_register_name): Add gdbarch parameter.
1534 * mt-tdep.c (mt_register_name): Add gdbarch parameter.
1535 (mt_registers_info): Replace current_gdbarch by gdbarch.
1536 (mt_register_reggroup_p): Add gdbarch to mt_register_name call.
1537 * mips-tdep.c (mips_register_name): Add gdbarch parameter. Replace
1538 current_gdbarch by gdbarch.
1539 (mips_register_name): Add gdbarch to tdesc_register_name call.
1540 * mep-tdep.c (mep_register_name): Add gdbarch parameter. Replace
1541 current_gdbarch by gdbarch.
1542 (mep_register_reggroup_p): Add gdbarch to mep_register_name call.
1543 * m32c-tdep.c (m32c_register_name): Add gdbarch parameter. Replace
1544 current_gdbarch by gdbarch.
1545 * m88k-tdep.c (m88k_register_name): Add gdbarch parameter.
1546 * m68k-tdep.c (m68k_register_name): Add gdbarch parameter.
1547 * m32r-tdep.c (m32r_register_name): Add gdbarch parameter.
1548 (m32r_frame_unwind_cache): Use get_frame_arch to get at the current
1549 architecture by frame_info.
1550 * iq2000-tdep.c (iq2000_register_name): Add gdbarch parameter.
1551 * ia64-tdep.c (ia64_register_name): Add gdbarch parameter.
1552 * hppa-tdep.c (hppa32_register_name, hppa64_register_name): Add gdbarch
1554 * h8300-tdep.c (h8300_register_name, h8300s_register_name)
1555 (h8300sx_register_name): Add gdbarch parameter.
1556 * cris-tdep.c (cris_register_name, crisv32_register_name): Add
1557 gdbarch parameter. Replace current_gdbarch by gdbarch.
1558 (cris_gdbarch_init): Replace current_gdbarch by gdbarch (comment).
1559 * avr-tdep.c (avr_register_name): Add gdbarch parameter.
1560 * arm-tdep.c (arm_register_name): Add gdbarch paramete
1561 * amd64-tdep.c (amd64_register_name): Add gdbarch parameter. Update
1563 * amd64-tdep.h (amd64_register_name): Add gdbarch parameter.
1564 * amd64-linux-tdep.c (amd64_linux_register_name): Add gdbarch parameter.
1565 * alpha-tdep.c (alpha_register_name): Add gdbarch parameter.
1566 (alpha_cannot_fetch_register, alpha_cannot_store_register): Update call
1567 of alpha_register_name.
1568 * frv-tdep.c (frv_register_name): Add gdbarch parameter.
1569 * i386-tdep.c (i386_register_name): Add gdbarch parameter. Replace
1570 current_gdbarch by gdbarch.
1571 (i386_register_type): Replace ?current_gdbarch by gdbarch.
1572 * i386-tdep.h (i386_register_name): Add gdbarch parameter.
1573 * i386-linux-tdep.c (i386_linux_register_name): Add gdbarch parameter.
1575 * m68hc11-tdep.c (m68hc11_register_name): Add gdbarch parameter.
1576 (m68hc11_register_reggroup_p): Add gdbarch to call of
1577 m68hc11_register_name.
1578 * mn10300-tdep.c (mn10300_generic_register_name, am33_register_name)
1579 (am33_2_register_name): Add gdbarch parameter.
1580 (mn10300_frame_unwind_cache): Use get_frame_arch to get at the current
1581 architecture by frame_info.
1582 (mn10300_dump_tdep): Replace current_gdbarch by gdbarch.
1583 * rs6000-tdep.c (rs6000_register_name): Add gdbarch parameter. Replace
1584 current_gdbarch by gdbarch.
1585 * score-tdep.c (score_register_name): Add gdbarch parameter.
1586 (score_return_value, score_push_dummy_call): Replace current_gdbarch
1588 * sh64-tdep.c (sh64_register_name): Add gdbarch parameter.
1589 (sh64_compact_reg_base_num, sh64_register_convert_to_virtual)
1590 (sh64_register_convert_to_raw, sh64_fv_reg_base_num)
1591 (sh64_dr_reg_base_num, sh64_fpp_reg_base_num): Add gdbarch parameter
1592 and update caller. Replace current_gdbarch by gdbarch.
1593 (sh64_extract_return_value, sh64_store_return_value): Use
1594 get_regcache_arch to get at the current architecture by regcache.
1595 * sh-tdep.c (sh_sh_register_name, sh_sh3_register_name)
1596 (sh_sh3e_register_name, sh_sh2e_register_name, sh_sh2a_register_name)
1597 (sh_sh2a_nofpu_register_name, sh_sh_dsp_register_name)
1598 (sh_sh3_dsp_register_name, sh_sh4_register_name)
1599 (sh_sh4_nofpu_register_name, sh_sh4al_dsp_register_name): Add gdbarch
1601 (fv_reg_base_num, dr_reg_base_num, sh_justify_value_in_reg)
1602 (sh_next_flt_argreg): Add gdbarch parameter and update caller. Replace
1603 current_gdbarch by gdbarch.
1604 (sh_extract_return_value_fpu, sh_store_return_value_fpu): Use
1605 get_regcache_arch to get at the current architecture by regcache.
1606 * sparc-tdep.c (sparc32_register_name): Add gdbarch parameter.
1607 * sparc64-tdep.c (sparc64_register_name): Add gdbarch parameter.
1608 * v850-tdep.c (v850_register_name, v850e_register_name): Add gdbarch
1610 (v850_unwind_sp, v850_unwind_pc): Replace current_gdbarch by gdbarch.
1611 * xtensa-tdep.c (xtensa_register_name): Add gdbarch parameter. Replace
1612 current_gdbarch by gdbarch.
1613 (xtensa_pseudo_register_read, xtensa_pseudo_register_write)
1614 (xtensa_frame_prev_register): Add gdbarch parameter to
1615 xtensa_register_name call.
1617 2007-10-31 Ulrich Weigand <uweigand@de.ibm.com>
1619 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Fall back to
1620 find_solib_trampoline_target if PC is not in .plt section.
1622 2007-10-31 Ulrich Weigand <uweigand@de.ibm.com>
1624 * elfread.c (elf_symtab_read): When constructing a solib trampoline
1625 minimal symbol from an undefined dynamic symbol, use proper section.
1627 2007-10-31 Markus Deuling <deuling@de.ibm.com>
1629 * arm-linux-nat.c (fetch_register, fetch_regs): Use get_regcache_arch
1630 to get at the current architecture by regcache.
1632 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1634 * libunwind-frame.c (libunwind_frame_sniffer)
1635 libunwind_frame_prev_register, libunwind_sigtramp_frame_sniffer)
1636 (libunwind_frame_cache): Use get_frame_arch to get at the current
1637 architecture by frame_info.
1638 (libunwind_get_reg_special): Replace current_gdbarch by gdbarch.
1640 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1642 * iq2000-tdep.c (iq2000_frame_prev_register): Use get_frame_arch to get
1643 at the current architecture by frame_info.
1645 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1647 * inf-child.c (inf_child_fetch_inferior_registers): Use
1648 get_regcache_arch to get at the current architecture by regcache.
1650 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1652 * inf-ptrace.c (inf_ptrace_fetch_registers)
1653 (inf_ptrace_fetch_register, inf_ptrace_store_register)
1654 (inf_ptrace_store_registers): Use get_regcache_arch to get at the
1655 current architecture by regcache.
1657 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1659 * hpux-thread.c (hpux_thread_fetch_registers)
1660 (hpux_thread_store_registers): Use get_regcache_arch to get at the
1661 current architecture by regcache.
1663 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1665 * hppa-tdep.c (hppa_frame_cache): Use get_frame_arch to get at the
1666 current architecture by frame_info.
1668 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1670 * go32-nat.c (fetch_register, go32_fetch_registers, store_register)
1671 (go32_store_registers): Use get_regcache_arch to get at the current
1672 architecture by regcache.
1674 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1676 * gdbtypes.c (gdbtypes_post_init): Replace current_gdbarch by gdbarch.
1678 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1680 * frv-linux-tdep.c (frv_linux_sigtramp_frame_cache): Use get_frame_arch
1681 to get at the current architecture by frame_info.
1683 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1685 * f-lang.c (build_fortran_types): Replace current_gdbarch by gdbarch.
1687 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1689 * core-regset.c (fetch_core_registers): Use get_regcache_arch to get at
1690 the current architecture by regcache.
1692 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1694 * corelow.c (get_core_registers): Use get_regcache_arch to get at the
1695 current architecture by regcache.
1697 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1699 * bsd-uthread.c (bsd_uthread_fetch_registers)
1700 (bsd_uthread_store_registers): Use get_regcache_arch to get at the
1701 current architecture by regcache.
1703 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1705 * avr-tdep.c (avr_frame_unwind_cache, avr_frame_prev_register): Use
1706 get_frame_arch to get at the current architecture by frame_info.
1708 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1710 * arm-tdep.c (arm_get_next_pc): Replace current_gdbarch by gdbarch.
1712 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1714 * armnbsd-nat.c (arm_supply_gregset, fetch_register, store_register)
1715 (store_regs): Use get_regcache_arch to get at the current architecture
1718 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1720 * arm-linux-tdep.c (arm_linux_supply_gregset): Use get_regcache_arch
1721 to get at the current architecture by regcache.
1723 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1725 * alphabsd-nat.c (alphabsd_fetch_inferior_registers)
1726 (alphabsd_store_inferior_registers): Use get_regcache_arch to get at
1727 the current architecture by regcache.
1729 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1731 * ada-lang.c (ada_language_arch_info): Replace current_gdbarch by
1734 2007-10-30 Daniel Jacobowitz <dan@codesourcery.com>
1736 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Check the selected
1737 soft float and vector ABIs. Support the generic vector ABI for
1739 (do_ppc_sysv_return_value): Likewise. Correct argument types and
1741 (ppc64_sysv_abi_push_dummy_call): Assert that floating point is
1743 * ppc-tdep.h (enum powerpc_vector_abi): New.
1744 (struct gdbarch_tdep): Add soft_float and vector_abi.
1745 * rs6000-tdep.c (setpowerpccmdlist, showpowerpccmdlist)
1746 (powerpc_soft_float_global, powerpc_vector_strings)
1747 (powerpc_vector_abi_global, powerpc_vector_abi_string): New.
1748 (rs6000_gdbarch_init): Check for soft-float and vector ABI markings.
1749 (set_powerpc_command, show_powerpc_command, powerpc_set_soft_float)
1750 (powerpc_set_vector_abi): New.
1751 (_initialize_rs6000_tdep): Register "set powerpc" and "show powerpc"
1753 * Makefile.in (elf_ppc_h): New.
1754 (rs6000-tdep.o): Update.
1756 2007-10-29 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
1758 * ppc-linux-tdep.c (ppc32_linux_reg_offsets): Corrected
1759 swapped offsets and VRSAVE offset.
1760 (ppc64_linux_reg_offsets): Corrected swapped offsets.
1761 (ppc32_linux_vrregset): Added.
1762 (ppc_linux_regset_from_core_section): Added support for
1763 .reg-ppc-vmx section.
1764 * ppc-tdep.h (ppc_altivec_support_p): Declare.
1765 (ppc_supply_vrregset): Declare.
1766 (ppc_collect_vrregset): Declare.
1767 * rs6000-tdep.c (ppc_altivec_support_p): Added.
1768 (ppc_supply_vrregset): Added.
1769 (ppc_collect_vrregset): Added.
1770 * corelow.c (get_core_registers): Added support for
1771 .reg-ppc-vmx section.
1773 2007-10-29 Joel Brobecker <brobecker@adacore.com>
1777 2007-10-26 Jim Blandy <jimb@codesourcery.com>
1779 * ax-gdb.h (expr_to_address_and_size): Delete declaration for
1782 * tracepoint.c (tracepoint_operation): Report the deletion event
1783 after we have unlinked the tracepoint from the list, and use the
1784 proper tracepoint number.
1786 * ax-gdb.c (expr_to_agent): Delete unused function.
1787 (expr_to_address_and_size): Delete #if 0'd function.
1788 * ax-gdb.h (expr_to_agent): Delete declaration.
1790 * ax-gdb.c (gen_cast): Remove redundant assignment to
1791 value->type. Doc fix.
1793 * ax-general.c (gen_traced_pop, gen_int_literal)
1794 (gen_usual_arithmetic): Check for typedefs.
1796 2007-10-26 Joel Brobecker <brobecker@adacore.com>
1798 * parse.c (prefixify_expression): Minor reformatting.
1800 2007-10-25 Daniel Jacobowitz <dan@codesourcery.com>
1802 * version.in: Use dot instead of dash.
1804 2007-10-25 Daniel Jacobowitz <dan@codesourcery.com>
1806 * linux-thread-db.c (check_for_thread_db): Only print if info_verbose.
1808 2007-10-25 Pedro Alves <pedro_alves@portugalmail.pt>
1810 * memory-map.c (parse_memory_map): Don't use an empty struct
1813 2007-10-25 Pedro Alves <pedro_alves@portugalmail.pt>
1815 * signals/signals.c (signals): Update pointer to enum
1816 target_signal declaration.
1818 2007-10-25 Wu Zhou <woodzltc@cn.ibm.com>
1819 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
1820 Jim Blandy <jimb@codesourcery.com>
1822 * dwarf2read.c (read_partial_die): check the value
1823 of DW_AT_calling_convention in Fortran programs.
1825 2007-10-25 Wu Zhou <woodzltc@cn.ibm.com>
1826 Thiago Jung Bauermann <bauerman@br.ibm.com>
1828 * c-exp.y (YYSTYPE): Add typed_val_decfloat for decimal
1829 floating point in YYSTYPE union.
1830 (DECFLOAT) Add token and expression element handling code.
1831 (parse_number): Parse DFP constants, which end with suffix 'df',
1832 'dd' or 'dl'. Return DECFLOAT.
1833 * eval.c (evaluate_subexp_standard): Call value_from_decfloat to
1835 * expression.h (enum exp_opcode): Add an opcode (OP_DECFLOAT)
1837 (union exp_element): Add decfloatconst to represent DFP
1838 elements, which is 16 bytes by default.
1839 * parse.c (write_exp_elt_decfloatcst): New function to write a
1840 decimal float const into the expression.
1841 (operator_length_standard): Set operator length for OP_DECFLOAT
1843 * parser-defs.h (write_exp_elt_decfloatcst): Prototype.
1844 * valarith.c (value_neg): Add code to handle the negation
1845 operation of DFP values.
1846 * value.c (value_from_decfloat): New function to get the value
1847 from a decimal floating point.
1848 * value.h (value_from_decfloat): Prototype.
1850 2007-10-25 Wu Zhou <woodzltc@cn.ibm.com>
1851 Thiago Jung Bauermann <bauerman@br.ibm.com>
1853 * c-lang.c (c_create_fundamental_type): Create fundamental
1855 * c-typeprint.c (c_type_print_varspec_prefix): Add
1856 TYPE_CODE_DECFLOAT to no prefix needed case.
1857 (c_type_print_varspec_suffix): Add TYPE_CODE_DECFLOAT to no
1859 * c-valprint.c (c_val_print): Call print_decimal_floating to
1861 * dwarf2read.c (read_base_type): Read DW_ATE_decimal_float
1862 attribute code and return TYPE_CODE_DECFLOAT.
1863 (dwarf_base_type): Set dwarf2_fundamental_type for DFP values.
1864 * gdbtypes.c (gdbtypes_post_init): Initialize builtin_decfloat,
1865 builtin_decdouble and builtin_declong.
1866 * gdbtypes.h (enum type_code): Add TYPE_CODE_DECFLOAT as a
1868 (FT_DECFLOAT, FT_DBL_PREC_DECFLOAT, FT_EXT_PREC_DECFLOAT): New
1869 types, for decimal floating point.
1870 (FT_NUM_MEMBERS): Increment, new types added.
1871 (struct builtin_type): Add builtin_decfloat, builtin_decdouble
1872 and builtin_declong.
1873 * valprint.c (print_decimal_floating): New function to print DFP
1875 * value.h (print_decimal_floating): Prototype.
1877 2007-10-25 Wu Zhou <woodzltc@cn.ibm.com>
1878 Thiago Jung Bauermann <bauerman@br.ibm.com>
1880 * Makefile.in (LIBDECNUMBER_DIR, LIBDECNUMBER, LIBDECNUMBER_SRC
1881 LIBDECNUMBER_CFLAGS): New macros for libdecnumber.
1882 (INTERNAL_CFLAGS_BASE): Add LIBDECNUMBER_CFLAGS in.
1883 (INSTALLED_LIBS): Add -ldecnumber in.
1884 (CLIBS): Add LIBDECNUMBER in.
1885 (decimal128_h, decimal64_h, decimal32_h): New macros for decimal
1887 (dfp_h): New macros for decimal floating point.
1888 (dfp.o): New target.
1889 (COMMON_OBS): Add dfp.o in.
1890 (c-exp.o): Add dfp_h as dependency.
1891 (valprint.o): Add dfp_h as dependency.
1892 (value.o): Add dfp_h as dependency.
1893 * dfp.h: New header file for decimal floating point support in
1895 * dfp.c: New source file for decimal floating point support in
1896 GDB. Implement decimal_from_string and decimal_to_string based
1897 on libdecnumber API.
1898 * configure.ac: Add AC_C_BIGENDIAN test.
1899 * config.in, configure: Regenerate.
1901 2007-10-25 David Ung <davidu@mips.com>
1902 Maciej W. Rozycki <macro@mips.com>
1905 * infcmd.c (registers_info): Check for a user register before
1906 calling target's gdbarch_print_registers_info(). If found to be
1907 so, extract the implicit value of user register and call
1908 print_scalar_formatted().
1909 * Makefile.in: (infcmd.o): Add $(user_regs_h).
1911 2007-10-25 Joel Brobecker <brobecker@adacore.com>
1913 * NEWS: Document status of hppa64-hpux support.
1915 2007-10-24 Ulrich Weigand <uweigand@de.ibm.com>
1917 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets): Call
1918 set_solib_ops to install SVR4 operations.
1919 (_initialize_svr4_solib): Do not set current_target_so_ops.
1921 * config/i386/i386gnu.mh (NATDEPFILES): Move solib.o, solib-svr4.o ...
1922 * config/i386/i386gnu.mt (TDEPFILES): ... to here.
1924 2007-10-24 Ulrich Weigand <uweigand@de.ibm.com>
1926 * solib-svr4.c (legacy_svr4_fetch_link_map_offsets_hook): Remove.
1927 (solib_svr4_init): Initialize fetch_link_map_offsets to NULL.
1928 * solib-svr4.h (legacy_svr4_fetch_link_map_offsets_hook): Remove.
1929 * solib-legacy.c: Remove file.
1931 * config/alpha/alpha-linux.mt (TDEPFILES): Remove solib-legacy.o.
1932 * config/arm/linux.mt (TDEPFILES): Likewise.
1933 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
1934 * config/ia64/linux.mt (TDEPFILES): Likewise.
1935 * config/m32r/linux.mt (TDEPFILES): Likewise.
1936 * config/powerpc/linux.mt (TDEPFILES): Likewise.
1937 * config/s390/s390.mt (TDEPFILES): Likewise.
1939 * alpha-linux-tdep.c (alpha_linux_init_abi): Call
1940 set_solib_svr4_fetch_link_map_offsets.
1941 * i386gnu-tdep.c (i386gnu_init_abi): Likewise.
1942 * ia64-linux-tdep.c (ia64_linux_init_abi): Likewise.
1944 * i386gnu-tdep.c: Include "solib-svr4.h".
1945 * Makefile.in: Update dependencies.
1947 2007-10-24 Ulrich Weigand <uweigand@de.ibm.com>
1949 * i386-nto-tdep.c: Include "solib.h".
1950 (i386nto_init_abi): Use set_solib_ops instead of overwriting
1951 current_target_so_ops members.
1952 * solist.h (TARGET_SO_RELOCATE_SECTION_ADDRESSES): Remove.
1953 (TARGET_SO_FIND_AND_OPEN_SOLIB): Remove.
1954 (TARGET_SO_IN_DYNSYM_RESOLVE_CODE): Remove.
1955 * Makefile.in: Update dependencies.
1957 2007-10-24 Ulrich Weigand <uweigand@de.ibm.com>
1959 * arm-wince-tdep.c: Include "solib.h" and "solib-target.h".
1960 (arm_wince_init_abi): Call set_solib_ops.
1961 * i386-cygwin-tdep.c: Include "solib.h" and "solib-target.h".
1962 (i386_cygwin_init_abi): Call set_solib_ops.
1963 * solib-target.c: Include "solib-target.h".
1964 (solib_target_so_ops): Make global.
1965 (_initialize_solib_target): Do not set current_target_so_ops.
1966 * solib-target.h: New file.
1967 * Makefile.in: Update dependencies.
1969 2007-10-24 Ulrich Weigand <uweigand@de.ibm.com>
1971 * mips-irix-tdep.c: Include "gdb_string.h", "solib.h", "solib-irix.h".
1972 (mips_irix_init_abi): Call set_solib_ops.
1973 * solib-irix.c: Include "solib.h" and "solib-irix.h".
1974 (irix_so_ops): Make global.
1975 (_initialize_irix_solib): Do not set current_target_so_ops.
1976 * solib-irix.h: New file.
1977 * Makefile.in: Update dependencies.
1979 2007-10-24 Ulrich Weigand <uweigand@de.ibm.com>
1981 * configure.tgt: Remove hppa*64*-*-hpux11* special case.
1982 * config/pa/hppa64.mt: Delete file.
1983 * config/pa/hppahpux.mt (MT_CFLAGS): Remove.
1984 (TDEPFILES): Move somread.o to ...
1985 * config/pa/hpux.mh (NATDEPFILES): ... here.
1987 * configure.ac: Add check for elf_hp.h header.
1988 Search libdl and libxpdl for dlgetmodinfo.
1989 * config.in, configure: Regenerate.
1990 * solib-pa64.c: Conditionalize compilation on #ifdef HAVE_ELF_HP_H
1991 instead of #ifndef PA_SOM_ONLY. Include "solib.h".
1992 (pa64_solib_select): Take gdbarch instead of tdep argument. Call
1993 set_solib_ops instead of modifying current_target_so_ops.
1994 * solib-pa64.h (pa64_solib_select): Update prototype.
1995 * solib-som.c: Remove include of "som.h". Include "solib.h".
1996 (som_solib_select): Take gdbarch instead of tdep argument. Call
1997 set_solib_ops instead of modifying current_target_so_ops.
1998 * solib-som.h (som_solib_select): Update prototype.
1999 * hppa-hpux-tdep.c (hppa_hpux_som_init_abi): Pass gdbarch instead
2000 of tdep to som_solib_select call.
2001 (hppa_hpux_elf_init_abi): Pass gdbarch instead of tdep to
2002 pa64_solib_select call.
2003 * Makefile.in: Update dependencies.
2005 2007-10-24 Ulrich Weigand <uweigand@de.ibm.com>
2007 * frv-tdep.c: Include "solib.h".
2008 (frv_gdbarch_init): Call set_solib_ops.
2009 * frv-tdep.h (struct target_so_ops): Add forward reference.
2010 (frv_so_ops): Add extern declaration.
2011 * solib-frv.c (frv_so_ops): Make global.
2012 (_initialize_frv_solib): Do not set current_target_so_ops.
2013 * Makefile.in: Update dependencies.
2015 2007-10-24 Ulrich Weigand <uweigand@de.ibm.com>
2017 * solib.c (solib_global_lookup): Use solib_ops instead of global
2018 current_target_so_ops.
2020 2007-10-24 Ulrich Weigand <uweigand@de.ibm.com>
2022 * config/frv/frv.mt (DEPRECATED_TM_FILE): Remove.
2023 * config/frv-tm-frv.h: Delete file.
2025 2007-10-24 Daniel Jacobowitz <dan@codesourcery.com>
2027 * NEWS: Mention gdbserver support for non-libthread_db operation.
2029 2007-10-24 Daniel Jacobowitz <dan@codesourcery.com>
2031 * amd64-tdep.c (amd64_convert_register_p): Delete.
2032 (amd64_init_abi): Use i387_convert_register_p.
2033 * alpha-tdep.c (alpha_convert_register_p): Return zero for
2035 (alpha_register_to_value, alpha_value_to_register): Do not handle
2037 * i386-tdep.c (i386_convert_register_p): Use i387_convert_register_p.
2038 * i387-tdep.c (i387_convert_register_p): New.
2039 (i387_register_to_value, i387_value_to_register): Update comments.
2040 * i387-tdep.h (i387_convert_register_p): Declare.
2041 * ia64-tdep.c (ia64_convert_register_p): Return zero for
2042 builtin_type_ia64_ext.
2043 (ia64_gdbarch_init): Do not initialize builtin_type_ia64_ext here.
2044 (_initialize_ia64_tdep): Initialize builtin_type_ia64_ext here.
2045 * m68k-tdep.c (m68k_convert_register_p): Return zero for
2046 builtin_type_m68881_ext.
2047 (m68k_register_to_value, m68k_value_to_register): Update comments.
2049 2007-10-24 Nathan Sidwell <nathan@codesourcery.com>
2051 * target-memory.c (claim_memory): Propagate baton for split memory
2054 2007-10-24 Pedro Alves <pedro_alves@portugalmail.pt>
2057 * sol-thread.c (sol_thread_fetch_registers): Work around gcc 3.4
2060 2007-10-24 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
2062 * symtab.c (find_line_symtab): scan through psymtabs
2063 when exact_match is zero.
2065 2007-10-23 Atsushi Nemoto <anemo@mba.ocn.ne.jp>
2067 * mips-tdep.c (LL_OPCODE, LLD_OPCODE, SC_OPCODE, SCD_OPCODE): Define.
2068 (deal_with_atomic_sequence): New.
2069 (mips_software_single_step): Use it.
2071 2007-10-23 Daniel Jacobowitz <dan@codesourcery.com>
2074 * configure.ac: Modify $LIBINTL before the BFD check.
2075 * configure: Regenerated.
2077 2007-10-23 Joel Brobecker <brobecker@adacore.com>
2079 * buildsym.c (free_pending_blocks): Remove commented-out code.
2080 (make_blockvector): Likewise. Re-use free_pending_blocks.
2081 (end_symtab): Remove commented-out code.
2083 2007-10-22 Daniel Jacobowitz <dan@codesourcery.com>
2085 * top.c (command_loop): Fix output for shrinkage.
2087 2007-10-22 Daniel Jacobowitz <dan@codesourcery.com>
2089 * cp-name-parser.y (exp1): Add & ( var ) as a reference expression.
2090 (exp): Remove and document function-like casts.
2092 2007-10-22 Daniel Jacobowitz <dan@codesourcery.com>
2094 * cp-support.c: Include "safe-ctype.h".
2095 (cp_already_canonical): New function.
2096 (cp_canonicalize_string): Use it. Return NULL for already canonical
2098 (mangled_name_to_comp): Update call to cp_demangled_name_to_comp.
2099 (cp_func_name, remove_params): Likewise.
2100 (cp_find_first_component_aux): Use ISSPACE.
2101 * cp-support.h (cp_demangled_name_to_comp): Correct comment. Remove
2103 * cp-name-parser.y (ALLOC_CHUNK): Define.
2104 (struct demangle_info): Add PREV and NEXT. Increase the size of
2106 (d_grab): Convert to a function.
2107 (allocate_info): Rewrite.
2108 (cp_demangled_name_to_comp): Remove MEMORY argument. Do not use
2109 strlen. Update call to allocate_info. Do not free it on failure.
2110 (main): Update calls to cp_demangled_name_to_comp.
2111 * Makefile.in (cp-support.o): Update.
2113 2007-10-22 Markus Deuling <deuling@de.ibm.com>
2115 * std-regs.c (value_of_builtin_frame_fp_reg)
2116 value_of_builtin_frame_pc_reg, value_of_builtin_frame_sp_reg)
2117 value_of_builtin_frame_ps_reg): Use get_frame_arch to get at the
2118 current architecture by frame_info.
2120 2007-10-22 Markus Deuling <deuling@de.ibm.com>
2122 * reggroups.c (default_register_reggroup_p): Replace current_gdbarch
2125 2007-10-22 Markus Deuling <deuling@de.ibm.com>
2127 * infcmd.c (default_print_registers_info, print_return_value)
2128 (print_vector_info, print_float_info): Replace current_gdbarch by
2130 (registers_info): Use get_frame_arch to get at the current
2131 architecture by frame_info.
2133 2007-10-22 Markus Deuling <deuling@de.ibm.com>
2135 * i387-tdep.c (i387_collect_fsave, i387_collect_fxsave): Use
2136 get_regcache_arch to get at the current architecture by regcache.
2138 2007-10-22 Markus Deuling <deuling@de.ibm.com>
2140 * target.c (debug_print_register): Use get_regcache_arch to get at the
2141 current architecture by regcache.
2143 2007-10-21 Daniel Jacobowitz <dan@codesourcery.com>
2145 * dwarf2read.c (read_file_scope): Add a comment.
2146 (dwarf2_add_field, dwarf2_add_member_fn, read_structure_type)
2147 (read_enumeration_type, process_enumeration_scope, read_array_type)
2148 (read_typedef, read_base_type, read_subrange_type)
2149 (read_unspecified_type): Use dwarf2_name.
2151 2007-10-21 Daniel Jacobowitz <dan@codesourcery.com>
2153 * coffread.c (coff_symfile_finish): Call dwarf2_free_objfile.
2154 * dwarf2read.c (dwarf2_free_objfile): New.
2155 * elfread.c (elf_symfile_finish): Call dwarf2_free_objfile.
2156 * symfile.h (dwarf2_free_objfile): Declare.
2158 2007-10-21 Joel Brobecker <brobecker@adacore.com>
2160 * hppa-hpux-nat.c (hppa_hpux_store_register): Add missing semi-colon.
2162 2007-10-21 Luis Machado <luisgpm@br.ibm.com>
2164 * rs6000-tdep.c (ppc_dwarf2_frame_init_reg): New function.
2165 * (rs6000_gdbarch_init): Install ppc_dwarf2_frame_init_reg as
2166 default dwarf2_frame_set_init_reg function.
2168 2007-10-21 Pedro Alves <pedro_alves@portugalmail.pt>
2170 * NEWS: Mention native MinGW configuration.
2172 2007-10-19 Ulrich Weigand <uweigand@de.ibm.com>
2174 * gdbarch.sh: Remove "macro" column of input table. Remove handling
2175 of "macro" column throughout the file. Remove (empty) "macro" entry
2176 of all gdbarch functions.
2178 2007-10-19 Ulrich Weigand <uweigand@de.ibm.com>
2180 * gdbarch.sh (sofun_address_maybe_missing): New gdbarch variable.
2181 * gdbarch.c, gdbarch.h: Regenerate.
2182 * dbxread.c (find_stab_function_addr): Define unconditionally.
2183 (read_dbx_symtab): Use gdbarch_sofun_address_maybe_missing
2184 instead of SOFUN_ADDRESS_MAYBE_MISSING.
2185 (end_psymtab): Likewise.
2186 (process_one_symbol): Likewise.
2187 * mdebugread.c (parse_partial_symbols): Likewise.
2189 * symtab.h (struct minimal_symbol): Always define "filename" member.
2190 * elfread.c (elf_symtab_read): Use msym->filename unconditionally.
2191 * minsyms.c (lookup_minimal_symbol): Likewise.
2192 * symmisc.c (dump_msymbols): Likewise.
2194 * config/i386/i386sol2.mt (DEPRECATED_TM_FILE): Remove.
2195 * config/i386/linux.mt (DEPRECATED_TM_FILE): Remove.
2196 * config/i386/tm-i386sol2.h: Remove file.
2197 * config/i386/tm-linux.h: Remove file.
2198 * i386-linux-tdep.c (i386_linux_init_abi): Add call to
2199 set_gdbarch_sofun_address_maybe_missing.
2200 * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
2202 * config/powerpc/linux.mt (DEPRECATED_TM_FILE): Remove.
2203 * config/powerpc/nbsd.mt (DEPRECATED_TM_FILE): Remove.
2204 * config/powerpc/obsd.mt (DEPRECATED_TM_FILE): Remove.
2205 * config/powerpc/ppc-eabi.mt (DEPRECATED_TM_FILE): Remove.
2206 * config/powerpc/ppc-sim.mt (DEPRECATED_TM_FILE): Remove.
2207 * config/powerpc/tm-ppc-eabi.h: Remove file.
2208 * rs6000-tdep.c (rs6000_gdbarch_init): Add call to
2209 set_gdbarch_sofun_address_maybe_missing.
2211 * config/sparc/sol2-64.mt (DEPRECATED_TM_FILE): Remove.
2212 * config/sparc/sol2.mt (DEPRECATED_TM_FILE): Remove.
2213 * config/sparc/tm-sol2.h: Remove file.
2214 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Add call to
2215 set_gdbarch_sofun_address_maybe_missing.
2216 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Likewise.
2218 2007-10-19 Ulrich Weigand <uweigand@de.ibm.com>
2220 * gdbarch.sh (static_transform_name): New gdbarch callback.
2221 * gdbarch.c, gdbarch.h: Regenerate.
2222 * dbxread.c (read_dbx_symtab): Use gdbarch_static_transform_name
2223 instead of STATIC_TRANSFORM_NAME.
2224 * mdebugread.c (parse_partial_symbols): Likewise.
2225 * stabsread.c (define_symbol): Likewise.
2226 * xcoffread.c (scan_xcoff_symtab): Likewise.
2228 * config/i368/tm-i386sol2.h (STATIC_TRANSFORM_NAME): Remove.
2229 (IS_STATIC_TRANSFORM_NAME): Remove.
2230 * i386-tdep.c (sunpro_static_transform_name): Remove, move to ...
2231 * i386-sol2-tdep.c (i386_sol2_static_transform_name): ... here.
2232 (i386_sol2_init_abi): Install it.
2234 * config/sparc/tm-sol2.h (STATIC_TRANSFORM_NAME): Remove.
2235 (IS_STATIC_TRANSFORM_NAME): Remove.
2236 * sparc-tdep.c (sparc_stabs_unglobalize_name): Remove, move to ...
2237 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): ... here.
2238 (sparc32_sol2_init_abi): Install it.
2239 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Likewise.
2240 * sparc-tdep.h (sparc_sol2_static_transform_name): Add prototype.
2242 2007-10-18 Daniel Jacobowitz <dan@codesourcery.com>
2244 * mips-tdep.c (mips_xfer_register): Take a gdbarch argument.
2245 (mips_n32n64_return_value, mips_o32_return_value)
2246 (mips_o64_return_value): Update calls to mips_xfer_register.
2248 2007-10-17 Daniel Jacobowitz <dan@codesourcery.com>
2250 * frame.c (frame_unwind_unsigned_register): Delete.
2251 (frame_sp_unwind): Use frame_unwind_register_unsigned instead.
2252 * frame.h (frame_unwind_unsigned_register): Delete prototype.
2254 * alpha-linux-tdep.c, alpha-mdebug-tdep.c, alpha-tdep.c,
2255 avr-tdep.c, cris-tdep.c, frv-tdep.c, m68hc11-tdep.c, mn10300-tdep.c,
2256 mt-tdep.c: Replace frame_unwind_unsigned_register with
2257 frame_unwind_register_unsigned.
2259 2007-10-16 Pedro Alves <pedro_alves@portugalmail.pt>
2261 * config/i386/mingw.mh, config/i386/mingw.mt: New files.
2262 * configure.tgt (i[34567]86-*-mingw32*): Set gdb_target = mingw.
2263 * win32-nat.c: Only include cygwin.h on Cygwin host. Don't
2265 (cygwin_load_start, cygwin_load_end, cygwin_exceptions): Disable
2266 if not building on Cygwin.
2267 (win32_make_so, handle_output_debug_string, handle_exception)
2268 (do_initial_win32_stuff): Wrap Cygwin specific code in __CYGWIN__.
2269 (win32_attach): Only fallback to Cygwin pids if building on
2271 (win32_pid_to_exec_file): Disable Cygwin specific code, if not
2273 (win32_create_inferior): Disable starting the inferior through a
2274 shell, environment var processing and tty handling if not building
2276 (cygwin_pid_to_str): Rename to ...
2277 (win32_pid_to_str): ... this.
2278 (init_win32_ops): Update use of win32_pid_to_str. Disable "shell"
2279 and "cygwin-exceptions" commands if not building on Cygwin.
2281 2007-10-16 Gaius Mulley <gaius@glam.ac.uk>
2283 * doc/gdb.texinfo: Add TSIZE definition, removed
2284 statement about unbounded arrays being unimplemented.
2285 * m2-valprint.c (m2_print_array_contents): New function.
2286 (m2_print_unbounded_array): New function.
2287 (m2_print_array_contents): New function.
2288 * m2-typeprint.c (m2_unbounded_array): New function.
2289 (m2_is_unbounded_array): New function.
2290 (m2_print_type): Test for unbounded array when walking
2292 * m2-lang.h: Added extern m2_is_unbounded_array.
2293 * m2-lang.c (evaluate_subexp_modula2): New function.
2294 (exp_descriptor_modula2): New structure.
2295 (m2_language_defn): Use exp_descriptor_modula2.
2296 * m2-exp.y: Added TSIZE and binary subscript.
2298 2007-10-16 Daniel Jacobowitz <dan@codesourcery.com>
2300 * mi/mi-main.c (captured_mi_execute_command): Clear mi_error_message
2303 2007-10-16 Kevin Buettner <kevinb@redhat.com>
2305 * m32r-tdep.c (decode_prologue): Sign extend offset for
2307 (m32r_frame_unwind_cache): Likewise.
2309 2007-10-15 Thiago Jung Bauermann <bauerman@br.ibm.com>
2311 * rs6000-tdep.c (skip_prologue): Restore comment with
2312 function description to its proper place.
2314 2007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
2316 * NEWS: Mention gdbserver PowerPC improvements.
2318 2007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
2320 * features/Makefile (WHICH): Add PowerPC register definitions.
2321 (rs6000/powerpc-32-expedite, rs6000/powerpc-e500-expedite)
2322 (rs6000/powerpc-64-expedite): New macros.
2323 ($(outdir)/%.dat): Handle subdirectories.
2324 * regformats/rs6000/powerpc-32.dat, regformats/rs6000/powerpc-64.dat,
2325 regformats/rs6000/powerpc-e500.dat: New generated files.
2327 2007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
2329 * ppc-linux-nat.c (ppc_linux_read_description): New.
2330 (_initialize_ppc_linux_nat): Set to_read_description.
2331 * ppc-tdep.h (tdesc_powerpc_e500): Declare.
2333 2007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
2335 * NEWS: Document target described register support for PowerPC.
2336 * ppc-tdep.h: Remove ppc_spr constants.
2337 (struct gdbarch_tdep): Remove regs, ppc_sr0_regnum, and
2338 ppc_builtin_type_vec128 members.
2339 (PPC_R0_REGNUM, PPC_F0_REGNUM, PPC_PC_REGNUM, PPC_MSR_REGNUM)
2340 (PPC_CR_REGNUM, PPC_LR_REGNUM, PPC_CTR_REGNUM, PPC_XER_REGNUM)
2341 (PPC_FPSCR_REGNUM, PPC_MQ_REGNUM, PPC_SPE_UPPER_GP0_REGNUM)
2342 (PPC_SPE_ACC_REGNUM, PPC_SPE_FSCR_REGNUM, PPC_VR0_REGNUM)
2343 (PPC_VSCR_REGNUM, PPC_VRSAVE_REGNUM, PPC_NUM_REGS): New constants.
2344 * rs6000-tdep.c: Include preparsed descriptions.
2345 (init_sim_regno_table): Do not iterate over pseudo registers.
2346 Look up segment registers by name. Use sim_spr_register_name
2348 (rs6000_register_sim_regno): Call init_sim_regno_table here.
2349 (rs6000_builtin_type_vec128): Delete.
2350 (rs6000_register_name): Only handle SPE pseudo registers and upper
2351 halves. Call tdesc_register_name for everything else.
2352 (rs6000_register_type): Delete. Replace with...
2353 (rs6000_pseudo_register_type): ...this new function. Only handle
2354 SPE pseudo registers.
2355 (rs6000_register_reggroup_p): Delete. Replace with...
2356 (rs6000_pseudo_register_reggroup_p): ...this new function. Only
2357 handle SPE pseudo registers.
2358 (rs6000_convert_register_p): Use ppc_fp0_regnum instead of
2360 (rs6000_register_to_value, rs6000_value_to_register): Remove check
2362 (e500_register_reggroup_p): Delete.
2363 (STR, R, R4, R8, R16, F, P8, R32, R64, R0, A4, S, S4, SN4, S64)
2364 (COMMON_UISA_REGS, PPC_UISA_SPRS, PPC_UISA_NOFP_SPRS)
2365 (PPC_SEGMENT_REGS, PPC_OEA_SPRS, PPC_ALTIVEC_REGS, PPC_SPE_GP_REGS)
2366 (PPC_SPE_UPPER_GP_REGS, PPC_EV_PSEUDO_REGS): Delete macros.
2367 (registers_powerpc, registers_403, registers_403GC, registers_505)
2368 (registers_860, registers_601, registers_602, registers_603)
2369 (registers_604, registers_750, registers_7400, registers_e500): Delete
2371 (struct variant): Delete nregs, npregs, num_tot_regs, and regs. Add
2373 (tot_num_registers, num_registers, num_pseudo_registers): Delete.
2374 (variants): Delete outdated comment. Use standard target descriptions
2375 instead of "struct reg" arrays.
2376 (init_variants): Delete.
2377 (rs6000_gdbarch_init): Do not guess word size from the BFD
2378 architecture if we have a target description. Select a variant
2379 before creating a new architecture. Use the variant's target
2380 description if the target did not define a register layout.
2381 Validate target-supplied registers. Reject mismatches. Use
2382 fixed register numbers and new constants instead of magic
2383 numbers. Call set_gdbarch_ps_regnum. Call tdesc_use_registers.
2384 (_initialize_rs6000_tdep): Initialize the preparsed target
2386 * target-descriptions.c (tdesc_predefined_types): Add int128 and
2388 (tdesc_find_register_early): New function.
2389 (tdesc_numbered_register): Use it.
2390 (tdesc_register_size): New function.
2391 (tdesc_use_registers): Take a target_desc argument. Do not use
2392 gdbarch_target_desc.
2393 * target-descriptions.h (tdesc_use_registers): Update prototype
2395 (tdesc_register_size): New prototype.
2396 * Makefile.in (powerpc_32_c, powerpc_403_c, powerpc_403gc_c)
2397 (powerpc_505_c, powerpc_601_c, powerpc_602_c, powerpc_603_c)
2398 (powerpc_604_c, powerpc_64_c, powerpc_7400_c, powerpc_750_c)
2399 (powerpc_860_c, powerpc_e500_c, rs6000_c): New macros.
2400 (rs6000-tdep.o): Update.
2401 * arm-tdep.c (arm_gdbarch_init): Update call to tdesc_use_registers.
2402 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
2403 * mips-tdep.c (mips_gdbarch_init): Likewise.
2405 2007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
2407 * features/rs6000/powerpc-32.c, features/rs6000/powerpc-403.c,
2408 features/rs6000/powerpc-403gc.c, features/rs6000/powerpc-505.c,
2409 features/rs6000/powerpc-601.c, features/rs6000/powerpc-602.c,
2410 features/rs6000/powerpc-603.c, features/rs6000/powerpc-604.c,
2411 features/rs6000/powerpc-64.c, features/rs6000/powerpc-7400.c,
2412 features/rs6000/powerpc-750.c, features/rs6000/powerpc-860.c,
2413 features/rs6000/powerpc-e500.c, features/rs6000/rs6000.c: New
2416 2007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
2418 * features/rs6000/power-altivec.xml, features/rs6000/power-core.xml,
2419 features/rs6000/power-fpu.xml, features/rs6000/power-oea.xml,
2420 features/rs6000/power-spe.xml, features/rs6000/power64-core.xml: New
2421 feature descriptions for standard PowerPC register sets.
2423 * features/rs6000/powerpc-32.xml, features/rs6000/powerpc-403.xml,
2424 features/rs6000/powerpc-403gc.xml, features/rs6000/powerpc-505.xml,
2425 features/rs6000/powerpc-601.xml, features/rs6000/powerpc-602.xml,
2426 features/rs6000/powerpc-603.xml, features/rs6000/powerpc-604.xml,
2427 features/rs6000/powerpc-64.xml, features/rs6000/powerpc-7400.xml,
2428 features/rs6000/powerpc-750.xml, features/rs6000/powerpc-860.xml,
2429 features/rs6000/powerpc-e500.xml, features/rs6000/rs6000.xml: New
2430 target descriptions for PowerPC processors.
2432 2007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
2434 * target-descriptions.c (tdesc_predefined_types): New.
2435 (tdesc_named_type): Use it.
2436 (tdesc_type_id, maint_print_c_tdesc_cmd): New functions.
2437 (_intialize_target_descriptions): Register "maint print c-tdesc".
2438 * features/Makefile (XMLTOC, CFILES, GDB): New macros.
2439 (cfiles, %.c): New rules.
2440 * features/arm-with-iwmmxt.c, features/mips-linux.c,
2441 features/mips64-linux.c: New generated files.
2443 * arm-linux-nat.c: Include preparsed description instead of
2445 (super_xfer_partial, arm_linux_xfer_partial): Remove.
2446 (arm_linux_read_description): New function.
2447 (_initialize_arm_linux_nat): Set to_read_description instead of
2448 to_xfer_partial. Initialize preparsed description.
2449 * config/arm/linux.mh (TDEP_XML): Delete.
2450 * mips-linux-nat.c: Include preparsed descriptions instead of
2452 (super_xfer_partial, mips_linux_xfer_partial): Remove.
2453 (mips_linux_read_description): New function.
2454 (_initialize_mips_linux_nat): Set to_read_description instead of
2455 to_xfer_partial. Initialize preparsed description.
2456 * config/mips/linux.mh (TDEP_XML): Delete.
2457 * Makefile.in (XMLFILES): Remove $(TDEP_XML).
2458 (features_headers, arm_with_iwmmxt_c, mips_linux_c)
2459 (mips64_linux_c): New macros.
2460 (arm-linux-nat.o, mips-linux-nat.o): Update.
2462 2007-10-15 Pierre Muller <muller@ics.u-strasbg.fr>
2464 * cp-abi.c (set_cp_abi_as_auto_default): ARI fix:
2465 Replace xasprintf by xstrprintf.
2466 symfile-mem.c (add_vsyscall_page): Ditto.
2468 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
2470 * ia64-linux-nat.c (ia64_register_addr): Add gdbarch parameter,
2471 replacing use of global current_gdbarch.
2472 (ia64_cannot_fetch_register, ia64_cannot_store_register): Likewise.
2473 (ia64_linux_fetch_register, ia64_linux_store_register): Update callers.
2475 * ia64-tdep.c (SIGCONTEXT_REGISTER_ADDRESS): Remove macro.
2476 (ia64_sigtramp_frame_init_saved_regs): Add next_frame parameter,
2477 replace uses of SIGCONTEXT_REGISTER_ADDRESS.
2478 (ia64_sigtramp_frame_cache): Update caller.
2480 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
2482 * gdbarch.sh (deprecated_use_struct_convention): Remove.
2483 (extract_return_value, store_return_value): Remove.
2484 (return_value): Remove default implementation.
2485 * gdbarch.c, gdbarch.h: Regenerate.
2487 * stack.c (return_command): Remove compatibility hack.
2488 * arch-utils.c (legacy_return_value): Remove.
2489 * arch-utils.h (legacy_return_value): Likewise.
2491 * arch-utils.c (always_use_struct_convention): Remove.
2492 * arch-utils.h (always_use_struct_convention): Likewise.
2493 * value.c (generic_use_struct_convention): Remove.
2494 * defs.h (generic_use_struct_convention): Likewise.
2496 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
2498 * avr-tdep.c (avr_return_value): New function.
2499 (avr_gdbarch_init): Call set_gdbarch_return_value instead of
2500 set_gdbarch_extract_return_value.
2502 * fvr-tdep.c (frv_return_value): New function.
2503 (frv_gdbarch_init): Call set_gdbarch_return_value instead of
2504 set_gdbarch_extract_return_value, set_gdbarch_store_return_value,
2505 and set_gdbarch_deprecated_use_struct_convention.
2507 * ia64-tdep.c (ia64_use_struct_convention): Make static.
2508 Add check for structure, union, or array types.
2509 (ia64_extract_return_value): Make static.
2510 (ia64_store_return_value): Make static. Support multi-word values.
2511 (ia64_return_value): New function.
2512 (ia64_gdbarch_init): Call set_gdbarch_return_value instead of
2513 set_gdbarch_extract_return_value, set_gdbarch_store_return_value,
2514 and set_gdbarch_deprecated_use_struct_convention.
2516 2007-10-12 Joel Brobecker <brobecker@adacore.com>
2518 * solib-target.c (solib_target_parse_libraries)
2519 [HAVEHAVE_LIBEXPAT not defined]: Fix thinko in return type.
2521 2007-10-12 Jim Blandy <jimb@codesourcery.com>
2523 * serial.h (struct serial_ops): Document read_prim to return zero
2525 * ser-base.c (do_ser_base_readchar): Return SERIAL_EOF when
2526 read_prim returns zero, not SERIAL_TIMEOUT.
2528 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
2530 * alpha-mdebug-tdep.c: Include "gdb_string.h".
2531 (find_proc_desc): Add fix-up code for setjmp procedure descriptor.
2532 * mdebugread.c (parse_procedure): Remove setjmp fix-up code.
2533 * Makefile.in (alpha-mdebug-tdep.o): Update dependencies.
2535 * config/alpha/alpha.mt (DEPRECATED_TM_FILE): Remove.
2536 * config/alpha/alpha-linux.mt (DEPRECATED_TM_FILE): Remove.
2537 * config/alpha/alpha-osf1.mt (DEPRECATED_TM_FILE): Remove.
2538 * config/alpha/fbsd.mt (DEPRECATED_TM_FILE): Remove.
2539 * config/alpha/tm-alpha.h: Remove file.
2541 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
2543 * breakpoint.c (breakpoint_sals_to_pc): Do not check for
2544 DEPRECATED_PC_REQUIRES_RUN_BEFORE_USE.
2546 * config/pa/tm-hppa.h: Delete file.
2547 * config/pa/hppa64.mt: Do not set DEPRECATED_TM_FILE.
2548 * config/pa/hppahpux.mt: Likewise.
2549 * config/pa/hppa.mt: Likewise.
2550 * config/pa/linux.mt: Likewise.
2551 * hppa-tdep.c (hppa_pc_requires_run_before_use): Delete.
2553 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
2555 * config/arm/nm-nbsdaout.h: Remove file.
2556 * config/nm-nbsdaout.h: Likewise.
2557 * config/nm-nbsd.h: Likewise.
2559 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
2561 * block.h (struct block): Remove "gcc_compile_flag" member.
2562 (BLOCK_GCC_COMPILED): Remove.
2563 * block.c (allocate_block): Do not clear BLOCK_GCC_COMPILED.
2564 * buildsym.c (finish_block): Do not set it.
2565 * symmisc.c (dump_symtab_1): Do not dump it.
2567 * value.h (using_struct_return): Remove "gcc_p" argument.
2568 * value.c (using_struct_return): Likewise.
2569 * eval.c (evaluate_subexp_standard): Adapt callers.
2570 * infcall.c (call_function_by_hand): Likewise.
2571 * stack.c (return_command): Likewise.
2572 * sparc-tdep.c (sparc32_push_dummy_code): Likewise.
2574 * gdbarch.sh (push_dummy_code): Remove "using_gcc" parameter.
2575 * gdbarch.c, gdbarch.h: Regenerate.
2576 * cris-tdep.c (cris_push_dummy_code): Adapt prototype.
2577 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Likewise.
2578 * sparc-tdep.c (sparc32_push_dummy_code): Likewise.
2579 * infcall.c (generic_push_dummy_code, push_dummy_code): Likewise.
2580 (push_dummy_code, call_function_by_hand): Adapt callers.
2582 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
2584 * infcmd.c (print_return_value): Remove STRUCT_RETURN argument.
2585 (finish_command_continuation, finish_command): Adapt callers.
2587 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
2589 * infcall.c (call_function_by_hand): Remove special handling
2590 for HP aCC compiled code.
2592 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
2594 * cris-tdep.c (cris_push_dummy_call): Support arguments passed by
2595 reference. Fix endianness bugs.
2596 (cris_reg_struct_has_address): Remove.
2597 (cris_gdbarch_init): Remove set_gdbarch_deprecated_reg_struct_has_addr
2598 and set_gdbarch_deprecated_use_struct_convention calls.
2600 * gdbarch.sh (deprecated_reg_struct_has_addr): Remove.
2601 * gdbarch.c, gdbarch.h: Regenerate.
2602 * infcall.c (call_function_by_hand): Remove handling of
2603 deprecated_reg_struct_has_addr.
2605 2007-10-11 Daniel Jacobowitz <dan@codesourcery.com>
2606 Kazu Hirata <kazu@codesourcery.com>
2608 * breakpoint.c (do_enable_breakpoint): Delay enabling until after
2609 checking watchpoint resources.
2611 2007-10-11 Kazu Hirata <kazu@codesourcery.com>
2613 * memattr.c (inaccessible_by_default): Change the initial
2616 2007-10-11 Daniel Jacobowitz <dan@codesourcery.com>
2619 * coffread.c (read_one_sym): Check for read errors.
2621 2007-10-11 Ulrich Weigand <uweigand@de.ibm.com>
2623 * linux-nat.c (lin_lwp_attach_lwp): Use "Linux kernel 2.6.19"
2624 instead of "Linux 2.6.19" in comment.
2625 (linux_xfer_partial): Use "GNU/Linux target" instead of
2626 "Linux target" in comment.
2627 * m68klinux-tdep.c (m68k_linux_inferior_created): Likewise.
2628 (m68k_linux_get_sigtramp_info): Likewise.
2630 2007-10-11 Daniel Jacobowitz <dan@codesourcery.com>
2632 * MAINTAINERS (language support): List Joel and Paul as
2635 2007-10-11 Daniel Jacobowitz <dan@codesourcery.com>
2637 * dbxread.c (process_one_symbol): Remove VARIABLES_INSIDE_BLOCK
2639 * config/arm/embed.mt, config/arm/linux.mt, config/arm/wince.mt: Do
2640 not set DEPRECATED_TM_FILE.
2641 * config/arm/tm-arm.h: Delete file.
2643 2007-10-11 Luis Machado <luisgpm@br.ibm.com>
2645 * MAINTAINERS (Write After Approval): Add self.
2647 2007-10-11 Daniel Jacobowitz <dan@codesourcery.com>
2649 * buildsym.c (record_line): Remove empty lines followed by
2650 end-of-sequence markers.
2652 2007-10-11 Kazu Hirata <kazu@codesourcery.com>
2654 * configure.tgt: Recognize fido-*-elf.
2656 2007-10-10 Joel Brobecker <brobecker@adacore.com>
2660 2007-10-10 Markus Deuling <deuling@de.ibm.com>
2662 * stack.c (print_frame_args, frame_info, return_command): Use
2663 get_regcache_arch or get_frame_arch to get at the current architecture
2664 by regcache or by frame, respectively.
2666 2007-10-10 Markus Deuling <deuling@de.ibm.com>
2668 * rs6000-nat.c (fetch_register, store_register)
2669 (rs6000_fetch_inferior_registers, rs6000_store_inferior_registers): Use
2670 get_regcache_arch to get at the current architecture by regcache.
2672 * rs6000-tdep.c (rs6000_push_dummy_call, rs6000_return_value)
2673 (rs6000_register_reggroup_p, e500_move_ev_registe, rs6000_unwind_pc)
2674 (rs6000_unwind_dummy_id, rs6000_frame_cache, rs6000_dump_tdep): Replace
2675 current_gdbarch by gdbarch.
2676 (rs6000_skip_trampoline_code, rs6000_register_to_value)
2677 (rs6000_value_to_register): Use get_frame_arch to get at the current
2678 architecture by frame_info.
2680 2007-10-10 Markus Deuling <deuling@de.ibm.com>
2682 * sparc-tdep.c (sparc_supply_rwindow, sparc_collect_rwindow): Use
2683 get_regcache_arch to get at the current architecture by regcache.
2685 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
2686 (sparc64_supply_fpregset, sparc64_collect_fpregset): Use
2687 get_regcache_arch to get at the current architecture by regcache.
2689 * sparc64nbsd-nat. (sparc64nbsd_supply_gregset)
2690 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
2691 (sparc64nbsd_collect_fpregset): Use get_regcache_arch to get at the
2692 current architecture by regcache.
2694 2007-10-10 Markus Deuling <deuling@de.ibm.com>
2696 * remote-mips.c (mips_wait, mips_fetch_registers)
2697 (mips_store_registers): Use get_regcache_arch to get at the
2698 current architecture by regcache.
2700 * mipsnbsd-tdep.c (mipsnbsd_supply_reg, mipsnbsd_fill_reg)
2701 (mipsnbsd_supply_fpreg, mipsnbsd_fill_fpreg): Use get_regcache_arch to
2702 get at the current architecture by regcache.
2703 (mipsnbsd_sigtramp_offset): Use get_frame_arch to get at the current
2704 architecture by frame_info.
2706 * mipsnbsd-nat.c (mipsnbsd_fetch_inferior_registers)
2707 (mipsnbsd_store_inferior_registers): Use get_regcache_arch to get at
2708 the current architecture by regcache.
2710 * mips-linux-tdep.c (mips_linux_get_longjmp_target)
2711 (mips64_linux_get_longjmp_target, mips_linux_o32_sigframe_init)
2712 (mips_linux_n32n64_sigframe_init): Use get_frame_arch to get at the
2713 current architecture by frame_info.
2714 (supply_32bit_reg, mips_supply_gregset, mips_fill_gregset)
2715 (mips_supply_fpregset, mips_fill_fpregset, supply_64bit_reg)
2716 (mips64_supply_gregset, mips64_fill_gregset, mips64_supply_fpregset)
2717 (mips64_fill_fpregset, mips_linux_write_pc): Use get_regcache_arch to
2718 get at the current architecture by regcache.
2720 * mips-linux-nat.c (mips_linux_register_addr)
2721 (mips64_linux_register_addr): Replace current_gdbarch by gdbarch.
2722 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset)
2723 (mips64_linux_regsets_fetch_registers)
2724 (mips64_linux_regsets_store_registers): Use get_regcache_arch to get at
2725 the current architecture by regcache.
2727 * mips64obsd-tdep.c (mips64obsd_sigframe_init): Use get_frame_arch to
2728 get at the current architecture by frame_info.
2730 2007-10-10 Markus Deuling <deuling@de.ibm.com>
2732 * mips-tdep.c (mips_xfer_register): Use get_regcache_arch to get at the
2733 current architecture by regcache.
2734 (mips2_fp_compat, mips32_next_pc, mips16_scan_prologue)
2735 (mips_insn16_frame_cache, mips32_scan_prologue, mips_insn32_frame_cache)
2736 (mips_stub_frame_cache, mips_read_fp_register_single)
2737 (mips_read_fp_register_double, mips_print_fp_register)
2738 (mips_print_register, print_gp_register_row): Use get_frame_arch to get
2739 at the current architecture by frame_info.
2740 (mips_register_reggroup_p, mips_pseudo_register_read, mips_unwind_sp)
2741 (mips_pseudo_register_write, mips_register_type, mips_unwind_pc)
2742 (mips_unwind_dummy_id, mips_eabi_push_dummy_call)
2743 (mips_n32n64_push_dummy_call, mips_n32n64_return_value)
2744 (mips_o32_push_dummy_call, mips_o32_return_value)
2745 (mips_o64_push_dummy_call, mips_o64_return_value)
2746 (mips_print_registers_info, mips_dump_tdep): Replace current_gdbarch by
2749 2007-10-10 Markus Deuling <deuling@de.ibm.com>
2751 * xtensa-tdep.c (xtensa_register_type, xtensa_pseudo_register_read)
2752 (xtensa_pseudo_register_write, xtensa_register_reggroup_p)
2753 (xtensa_unwind_pc, xtensa_unwind_dummy_id, xtensa_push_dummy_call)
2754 (xtensa_dump_tdep): Replace current_gdbarch by gdbarch.
2755 (xtensa_register_write_masked, xtensa_register_read_masked)
2756 (xtensa_supply_gregset, xtensa_store_return_value)
2757 (xtensa_extract_return_value): Use get_regcache_arch to get at the
2758 current architecture by regcache.
2759 (xtensa_frame_cache, call0_frame_get_reg_at_entry, call0_frame_cache)
2760 (xtensa_frame_prev_register): Use get_frame_arch to get at the current
2761 architecture by frame_info.
2763 2007-10-10 Daniel Jacobowitz <dan@codesourcery.com>
2765 * arm-tdep.c (struct arm_prologue_cache): Remove frameoffset.
2766 (thumb_analyze_prologue): Move pv_area_store_would_trash call
2767 out of loop. Do not set cache->frameoffset.
2768 (arm_scan_prologue): Use prologue-value mechanism. Do not set
2769 frameoffset. Simplify framesize.
2770 (arm_make_prologue_cache, arm_normal_frame_base): Do not use
2772 * arm-tdep.h (enum gdb_regnum): Add ARM_IP_REGNUM.
2774 2007-10-10 Daniel Jacobowitz <dan@codesourcery.com>
2776 * target.c (update_current_target): Call setup_target_debug.
2777 (push_target): Do not call it here.
2779 2007-10-09 Michael Snyder <msnyder@specifix.com>
2781 * MAINTAINERS: Update my email address.
2783 2007-10-09 Markus Deuling <deuling@de.ibm.com>
2785 * xtensa-tdep.c: Replace following current-gdbarch based macros by
2787 (xtensa_pseudo_register_read)
2788 (xtensa_pseudo_register_write): XTENSA_TARGET_FLAGS.
2789 (ARG_NOF, ARG_1ST, xtensa_extract_return_value)
2790 (xtensa_store_return_value, xtensa_push_dummy_call): CALL_ABI.
2791 (xtensa_pseudo_register_read)
2792 (xtensa_pseudo_register_write): ISA_USE_WINDOWED_REGISTERS.
2793 (xtensa_breakpoint_from_pc): ISA_USE_DENSITY_INSTRUCTIONS.
2794 (xtensa_register_type, xtensa_supply_gregset, xtensa_frame_cache)
2795 (xtensa_frame_prev_register): NUM_AREGS.
2796 (xtensa_pseudo_register_read, xtensa_pseudo_register_write,
2797 (xtensa_supply_gregset, xtensa_frame_cache, xtensa_frame_prev_register,
2798 (xtensa_extract_return_value, xtensa_store_return_value): WB_REGNUM.
2799 (xtensa_supply_gregset, xtensa_frame_cache)
2800 (xtensa_frame_prev_register): WS_REGNUM.
2801 (xtensa_supply_gregset): LBEG_REGNUM, LEND_REGNUM, LCOUNT_REGNUM,
2802 SAR_REGNUM, EXCCAUSE_REGNUM, EXCVADDR_REGNUM
2803 (xtensa_register_name, xtensa_register_type, xtensa_reg_to_regnum)
2804 (xtensa_pseudo_register_read, xtensa_pseudo_register_write)
2805 (xtensa_register_reggroup_p): REGMAP.
2806 (call0_track_op): LITBASE_REGNUM.
2807 (xtensa_register_type, xtensa_reg_to_regnum, call0_frame_cache):A0_BASE
2808 (xtensa_supply_gregset, call0_frame_get_reg_at_entry)
2809 (xtensa_frame_prev_register, AREG_NUMBER)
2810 (xtensa_register_type): AR_BASE.
2811 (xtensa_pseudo_register_read, xtensa_pseudo_register_write): FP_ALIAS.
2812 (AREG_NUMBER): AREGS_MASK, WB_MASK, A0_REGNUM.
2813 (ARG_1ST, xtensa_pseudo_register_read, xtensa_pseudo_register_write)
2814 (xtensa_frame_cache, xtensa_frame_prev_register)
2815 (xtensa_extract_return_value, xtensa_store_return_value)
2816 (xtensa_push_dummy_call, call0_frame_cache): A0_REGNUM.
2817 (xtensa_register_type, xtensa_pseudo_register_read, xtensa_frame_cache)
2818 (xtensa_pseudo_register_write, xtensa_unwind_dummy_id)
2819 (xtensa_frame_prev_register, xtensa_push_dummy_call)
2820 (call0_frame_cache): A1_REGNUM.
2821 (xtensa_extract_return_value, xtensa_store_return_value): A2_REGNUM.
2822 (xtensa_push_dummy_call): A4_REGNUM.
2823 (ARGS_FIRST_REG): A6_REGNUM.
2824 (xtensa_pseudo_register_read, xtensa_pseudo_register_write)
2825 (xtensa_frame_prev_register): A15_REGNUM.
2826 * xtensa-tdep.h: Delete current_gdbarch based macros after replacing
2827 them in the appropriate source file:
2828 XTENSA_TARGET_FLAGS, SPILL_LOCATION, SPILL_SIZE, CALL_ABI, NUM_AREGS,
2829 ISA_USE_WINDOWED_REGISTERS, ISA_USE_DENSITY_INSTRUCTIONS, WB_REGNUM,
2830 ISA_USE_EXCEPTIONS, ISA_USE_EXT_L32R, DEBUG_DATA_VADDR_TRAP_COUNT,
2831 DEBUG_INST_VADDR_TRAP_COUNT, ISA_MAX_INSN_SIZE, DEBUG_NUM_IBREAKS,
2832 DEBUG_NUM_DBREAKS, WS_REGNUM, LBEG_REGNUM, LEND_REGNUM, SAR_REGNUM,
2833 REGMAP, LITBASE_REGNUM, DEBUGCAUSE_REGNUM, EXCCAUSE_REGNUM, AR_BASE,
2834 EXCVADDR_REGNUM, NUM_IBREAKS, REGMAP_BYTES, NUM_CONTEXTS, FP_ALIAS,
2835 FP_LAYOUT, FP_LAYOUT_BYTES, GREGMAP, AREGS_MASK, WB_MASK, A0_REGNUM,
2836 A1_REGNUM, A2_REGNUM, A3_REGNUM, A4_REGNUM, A5_REGNUM, A6_REGNUM,
2837 A7_REGNUM, A8_REGNUM, A9_REGNUM, A10_REGNUM, A11_REGNUM, A12_REGNUM,
2838 A13_REGNUM, A14_REGNUM, A15_REGNUM.
2840 2007-10-09 Markus Deuling <deuling@de.ibm.com>
2842 * h8300-tdep.c (h8300_frame_cache): Use get_frame_arch to get at
2843 the current architecture by frame_info.
2844 (h8300_frame_prev_register
2845 (h8300_print_register): Replace current_gdbarch by gdbarch.
2846 (h8300_print_registers_info, h8300_register_type)
2847 (h8300_register_type): Likewise.
2849 2007-10-09 Markus Deuling <deuling@de.ibm.com>
2851 * i386-linux-nat.c (fetch_register): Use get_regcache_arch to get at
2852 the current architecture by regcache.
2853 (store_register, supply_gregset, fill_gregset, i386_linux_resume)
2854 (i386_linux_fetch_inferior_registers)
2855 (i386_linux_store_inferior_registers): Likewise.
2856 * i386gnu-nat.c (gnu_fetch_registers, gnu_store_registers): Likewise.
2857 * i386-nto-tdep.c (i386nto_supply_gregset): Likewise.
2858 * i386v4-nat.c (supply_fpregset, fill_fpregset): Likewise.
2859 * i386-tdep.c (i386_unwind_pc): Replace current_gdbarch by gdbarch.
2860 (i386_extract_return_value, i386_store_return_value): Likewise.
2861 * i386-tdep.c (i386_frame_prev_register): Use get_frame_arch to get at
2862 the current architecture by frame_info.
2863 (i386_sigtramp_frame_cache, i386_get_longjmp_target)
2864 (i386_register_to_value, i386_value_to_register): Likewise.
2866 2007-10-09 Markus Deuling <deuling@de.ibm.com>
2868 * monitor.c (monitor_supply_register): Use get_regcache_arch to get at
2869 the current architecture by regcache.
2870 (monitor_store_register, monitor_store_registers): Likewise.
2872 2007-10-09 Markus Deuling <deuling@de.ibm.com>
2874 * dbug-rom.c (dbug_supply_register): Use get_regcache_arch to get at
2875 the current architecture by regcache.
2877 2007-10-09 Markus Deuling <deuling@de.ibm.com>
2879 * arch-utils.c (legacy_return_value): Replace current_gdbarch by
2882 2007-10-09 Markus Deuling <deuling@de.ibm.com>
2884 * frame.c (frame_pc_unwind): Use get_frame_arch to get at the current
2885 architecture by frame.
2886 (frame_save_as_regcache, frame_register_unwind, get_prev_frame_1)
2887 (inside_main_func, frame_sp_unwind): Likewise.
2889 2007-10-09 Daniel Jacobowitz <dan@codesourcery.com>
2891 * solib-svr4.c (enable_break): Add the dynamic linker also if
2894 2007-10-09 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
2896 * MAINTAINERS (Write After Approval): Add self.
2898 2007-10-09 Pedro Alves <pedro_alves@portugalmail.pt>
2900 * stabsread.c (read_huge_number): Initialize local variable to 0.
2902 2007-10-09 Pierre Muller <muller@ics.u-strasbg.fr>
2904 * p-lang.h (pascal_main_name): Add declaration.
2905 * p-lang.c (GPC_P_INITIALIZE, GPC_MAIN_PROGRAM_NAME_1)
2906 (GPC_MAIN_PROGRAM_NAME_2): New constants.
2907 (pascal_main_name): New function.
2908 * symtab.c: Include p-lang.h.
2909 (find_main_name): Add call to pascal_main_name.
2910 * Makefile.in (symtab.o): Add dependency on p-lang.h.
2912 2007-10-09 Pedro Alves <pedro_alves@portugalmail.pt>
2914 * stabsread.c (read_huge_number): Fix handling of octal
2915 representation when the bit width is known.
2916 (read_range_type): Record unsigned integral types with their size,
2917 when the type size is known.
2919 2007-10-08 Thiago Jung Bauermann <bauerman@br.ibm.com>
2921 * MAINTAINERS (Write After Approval): Add self.
2923 2007-10-08 Pierre Muller <muller@ics.u-strasbg.fr>
2925 * breakpoint.c (print_one_breakpoint_location): ARI fix:
2926 Replace asprintf by xstrprintf.
2928 2007-10-08 Pierre Muller <muller@ics.u-strasbg.fr>
2930 * linux-fork.c: ARI fix: include "gdb_dirent.h" instead of <dirent.h>.
2931 Makefile.in (linux-fork.o): Add gdb_dirent.h dependency.
2933 2007-10-08 Pierre Muller <muller@ics.u-strasbg.fr>
2935 * linux-fork.c: Move "gdb_wait.h" include back to the position of
2936 <sys/wait.h> include before last commit.
2938 2007-10-08 Maciej W. Rozycki <macro@mips.com>
2940 * mips-tdep.c (mips32_next_pc): Fix a typo in BGTZL.
2942 2007-10-08 Markus Deuling <deuling@de.ibm.com>
2944 * aix-thread.c (supply_gprs64, supply_fprs, supply_sprs64)
2945 (supply_sprs32, fetch_regs_user_thread, fetch_regs_kernel_thread)
2946 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs64, fill_sprs32)
2947 (store_regs_user_thread, store_regs_kernel_thread): Use
2948 get_regcache_arch or get_frame_arch to get at the current architecture
2949 by regcache or by frame, respectively.
2951 2007-10-08 Markus Deuling <deuling@de.ibm.com>
2953 * sh64-tdep.c (sh64_push_dummy_call, sh64_register_type)
2954 (sh64_pseudo_register_read, sh64_pseudo_register_write)
2955 (sh64_do_fp_register, sh64_do_pseudo_register, sh64_do_register)
2956 (sh64_print_register, sh64_media_print_registers_info)
2957 (sh64_compact_print_registers_info, sh64_unwind_sp)
2958 (sh64_unwind_pc): Replace current_gdbarch by gdbarch.
2959 (sh64_show_media_regs, sh64_show_compact_regs, sh64_frame_cache)
2960 (sh64_frame_prev_register): Use FRAME to recognize current
2963 2007-10-08 Markus Deuling <deuling@de.ibm.com>
2965 * sh-tdep.c (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu)
2966 (sh_sh2a_register_type, sh_sh3e_register_type, sh_sh4_register_type)
2967 (sh_register_reggroup_p, sh_dwarf2_frame_init_reg): Replace
2968 current_gdbarch by gdbarch.
2969 (sh_generic_show_regs, sh3_show_reg, sh2e_show_regs, sh2a_show_regs)
2970 (sh2a_nofpu_show_regs, sh3e_show_regs, sh3_dsp_show_regs)
2971 (sh4_show_regs, sh4_nofpu_show_regs, sh_dsp_show_regs, sh_frame_cache)
2972 (sh_frame_prev_register, sh_unwind_sp, sh_unwind_pc): Use FRAME to
2973 recognize current architecture.
2975 2007-10-08 Markus Deuling <deuling@de.ibm.com>
2977 * remote.c (init_remote_state, fetch_register_using_p)
2978 (process_g_packet, remote_fetch_registers, remote_prepare_to_store)
2979 (store_register_using_P, store_registers_using_G)
2980 (remote_store_registers): Use get_regcache_arch or get_frame_arch to
2981 get at the current architecture by regcache or by frame, respectively.
2983 2007-10-08 Markus Deuling <deuling@de.ibm.com>
2985 * m68k-tdep.c (m68k_register_to_value, m68k_value_to_register)
2986 (m68k_svr4_extract_return_value, m68k_svr4_store_return_value)
2987 (m68k_frame_prev_register, m68k_get_longjmp_target): Use
2988 get_regcache_arch or get_frame_arch to get at the current architecture
2989 by regcache or by frame, respectively.
2990 * m68klinux-tdep.c (m68k_linux_sigtramp_frame_cache): Likewise.
2991 * m68klinux-nat.c (fetch_register, old_fetch_inferior_registers)
2992 (store_register, old_store_inferior_registers, supply_gregset)
2993 (supply_fpregset, fill_fpregset): Likewise.
2994 * m68k-tdep.c (m68k_register_type, m68k_unwind_pc, m68k_dump_tdep):
2995 Replace current_gdbarch by gdbarch.
2997 2007-10-08 Markus Deuling <deuling@de.ibm.com>
2999 * irix5-nat.c (supply_gregset, fill_gregset, supply_fpregset)
3000 (fill_fpregset, fetch_core_registers): Use get_regcache_arch or
3001 get_frame_arch to get at the current architecture by regcache or by
3002 frame, respectively.
3004 2007-10-08 Markus Deuling <deuling@de.ibm.com>
3006 * ia64-tdep.c (ia64_pseudo_register_read, ia64_pseudo_register_write):
3007 Replace current_gdbarch by gdbarch.
3008 * ia64-tdep.c (ia64_frame_prev_register
3009 (ia64_sigtramp_frame_prev_register)
3010 (ia64_libunwind_frame_prev_register): Use get_regcache_arch or
3011 get_frame_arch to get at the current architecture by regcache or by
3012 frame, respectively.
3013 * ia64-linux-nat.c (ia64_linux_fetch_register)
3014 (ia64_linux_fetch_registers, ia64_linux_store_register)
3015 (ia64_linux_store_registers): Likewise.
3017 2007-10-08 Markus Deuling <deuling@de.ibm.com>
3019 * hppa-tdep.c (hppa_stub_unwind_sniffer, hppa_dump_tdep): Replace
3020 current_gdbarch by gdbarch.
3021 * hppa-linux-nat.c (fetch_register, store_register)
3022 (hppa_linux_fetch_inferior_registers)
3023 (hppa_linux_store_inferior_registers): Use get_regcache_arch or
3024 get_frame_arch to get at the current architecture by regcache or by
3025 frame, respectively.
3026 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code
3027 (hppa_hpux_unwind_adjust_stub): Likewise.
3028 * hppa-hpux-nat.c (hppa_hpux_fetch_register, hppa_hpux_store_register)
3029 (hppa_hpux_fetch_inferior_registers)
3030 (hppa_hpux_store_inferior_registers): Likewise.
3032 2007-10-08 Markus Deuling <deuling@de.ibm.com>
3034 * cris-tdep.c (cris_sigcontext_addr, cris_sigtramp_frame_unwind_cache)
3035 (cris_scan_prologue, crisv32_scan_prologue, find_step_target)
3036 (cris_software_single_step, cris_supply_gregset): Use get_regcache_arch
3037 or get_frame_arch to get at the current architecture by regcache or by
3038 frame, respectively.
3039 * cris-tdep.c (crisv32_single_step_through_delay, cris_push_dummy_call)
3040 (cris_unwind_pc, cris_unwind_sp, cris_register_type, cris_dump_tdep)
3041 (crisv32_register_type, cris_dwarf2_frame_init_reg): Replace
3042 current_gdbarch by gdbarch.
3044 2007-10-08 Markus Deuling <deuling@de.ibm.com>
3046 * arm-tdep.c (arm_scan_prologue, arm_make_prologue_cache)
3047 (thumb_get_next_pc, arm_get_next_pc, arm_extract_return_value)
3048 (arm_store_return_value): Use get_regcache_arch or get_frame_arch to
3049 get at the current architecture by regcache or by·frame, respectively.
3050 (arm_push_dummy_call, arm_dump_tdep): Replace current_gdbarch by
3053 2007-10-08 Markus Deuling <deuling@de.ibm.com>
3055 * amd64-tdep.c (amd64_frame_prev_register, amd64_sigtramp_frame_cache):
3056 Use get_regcache_arch or get_frame_arch to get at the current
3057 architecture by regcache or by frame, respectively.
3058 * amd64-linux-tdep.c (amd64_linux_sigcontext_addr): Likewise.
3059 * amd64-nat.c (amd64_supply_native_gregset)
3060 (amd64_collect_native_gregset): Replace current_gdbarch by gdbarch.
3062 2007-10-08 Markus Deuling <deuling@de.ibm.com>
3064 * alpha-tdep.c (alpha_register_reggroup_p): Replace current_gdbarch by
3066 * alpha-linux-nat.c (alpha_linux_register_u_offset): Likewise.
3067 (alpha_sigtramp_frame_unwind_cache, alpha_sigtramp_frame_this_id)
3068 (alpha_sigtramp_frame_sniffer, alpha_next_pc): Use get_regcache_arch or
3069 get_frame_arch to get at the current architecture by regcache or by
3070 frame, respectively.
3071 * alpha-nat.c (fetch_osf_core_registers): Likewise.
3073 2007-10-08 Markus Deuling <deuling@de.ibm.com>
3075 * dwarf2-frame.c (read_reg, execute_cfa_program, dwarf2_frame_cache)
3076 (dwarf2_frame_default_init_reg, dwarf2_frame_prev_register): Replace
3077 current_gdbarch by gdbarch.
3078 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Likewise.
3080 2007-10-08 Markus Deuling <deuling@de.ibm.com>
3082 * regcache.c (init_regcache_descr, register_type, read_pc_pid)
3083 (write_pc_pid, regcache_dump): Replace current_gdbarch by gdbarch.
3084 * regcache.c (regcache_raw_write): Use get_regcache_arch or
3085 get_frame_arch to get at the current architecture by regcache or by
3086 frame, respectively.
3088 2007-10-08 Markus Deuling <deuling@de.ibm.com>
3090 * findvar.c (value_of_register, locate_var_value): Use
3091 get_regcache_arch or get_frame_arch to get at the current architecture
3092 by regcache or by frame, respectively.
3093 * findvar.c (default_value_from_register, value_from_register): Replace
3094 current_gdbarch by gdbarch.
3096 2007-10-08 Pierre Muller <muller@ics.u-strasbg.fr>
3098 * config/i386/nm-i386.h (CHILD_POST_STARTUP_INFERIOR): ARI fix: Remove.
3100 2007-10-08 Pierre Muller <muller@ics.u-strasbg.fr>
3102 * linux-fork.c: ARI fix: include "gdb_wait.h" instead of <sys/wait.h>.
3103 Makefile.in (linux-fork.o): Add gdb_wait.h dependency.
3105 2007-10-05 Daniel Jacobowitz <dan@codesourcery.com>
3107 * remote.c (get_offsets): Only call free_symfile_segment_data if
3110 2007-10-03 Pierre Muller <muller@ics.u-strasbg.fr>
3112 * objc-exp.y: ARI fix: remove 4 PARAMS.
3114 2007-10-03 Daniel Jacobowitz <dan@codesourcery.com>
3116 * NEWS: Use uniform spacing. Correct version number for GDB 6.7
3117 news. Mention XML support for M68K in GDB 6.7.
3119 2007-10-03 Daniel Jacobowitz <dan@codesourcery.com>
3121 * gdbtypes.c (create_range_type): Do not set TYPE_FIELD_TYPE for the
3123 (init_vector_type): Use builtin_type_int32.
3125 2007-10-02 Ulrich Weigand <uweigand@de.ibm.com>
3127 * s390-tdep.c (s390_regset_from_core_section): Allow excess section
3128 size to enable bi-arch generate-core-file support.
3130 2007-10-02 Markus Deuling <deuling@de.ibm.com>
3132 * spu-tdep.c (info_spu_signal_command): Fix output for SPU signal.
3134 2007-10-02 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
3136 * tui/tui-interp.c (tui_init): Initialize tui's SIGWINCH
3138 * tui/tui-win.c (tui_initialize_win): New function for
3139 initializing tui's SIGWINCH signal handler.
3140 * tui/tui-win.h (tui_initialize_win): Declare.
3142 2007-10-02 Ulrich Weigand <uweigand@de.ibm.com>
3144 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Cast
3145 pointer to uintptr_t before casting to CORE_ADDR.
3147 2007-10-02 Markus Deuling <deuling@de.ibm.com>
3149 * linux-nat.c (PTRACE_GETSIGINFO): Add define.
3151 2007-10-02 Mark Mitchell <mark@codesourcery.com>
3153 * mingw-hdep.c (gdb_select): Stop helper threads before returning.
3154 * ser-mingw.c (enum select_thread_state): New type.
3155 (struct ser_console_state): Add have_started and thread_state.
3156 (select_thread_wait): New function.
3157 (thread_fn_type): New type.
3158 (create_select_thread): New function.
3159 (destroy_select_thread): Likewise.
3160 (start_select_thread): Likewise.
3161 (stop_select_thread): Likewise.
3162 (console_select_thread): Use new functions.
3163 (pipe_select_thread): Likewise.
3164 (file_select_thread): Likewise.
3165 (ser_console_wait_handle): Likewise.
3166 (ser_console_done_wait_handle): Likewise.
3167 (ser_console_close): Likewise.
3168 (free_pipe_state): Likewise.
3169 (pipe_wait_handle): Likewise.
3170 (pipe_done_wait_handle): Likewise.
3171 (struct net_windows_state): Derive from ser_console_state.
3172 (net_windows_select_thread): Use new functions.
3173 (net_windows_wait_handle): Likewise.
3174 (net_windows_done_wait_handle): Likewise.
3175 (net_windows_close): Likewise.
3177 2007-10-02 Daniel Jacobowitz <dan@codesourcery.com>
3179 * inflow.c (terminal_ours_1): Remove useless line.
3181 2007-10-02 Daniel Jacobowitz <dan@codesourcery.com>
3183 * mips-tdep.c (mips_read_fp_register_double): Correct check for
3185 (mips_print_fp_register): Correct check for even FP registers.
3186 (mips_virtual_frame_pointer): New function.
3187 (mips_gdbarch_init): Call set_gdbarch_virtual_frame_pointer.
3189 2007-09-30 Mike Frysinger <vapier@gentoo.org>
3191 * value.h (lookup_only_internalvar): New prototype.
3192 (create_internalvar): Likewise.
3193 * value.c (lookup_only_internalvar): New function.
3194 (create_internalvar): Likewise.
3195 (lookup_internalvar): Use new lookup_only_internalvar and
3196 create_internalvar functions.
3197 * parse.c (write_dollar_variable): Look up $ symbols in internal
3198 table first rather than last.
3200 2007-09-30 Daniel Jacobowitz <dan@codesourcery.com>
3202 * linux-nat.c (linux_nat_new_thread): New variable.
3203 (linux_child_follow_fork): Set inferior_ptid to include LWP ID. Use
3204 linux_nat_switch_fork.
3205 (lwp_list): Make public.
3206 (add_lwp): Call linux_nat_new_thread.
3207 (lin_lwp_attach_lwp, linux_nat_attach): Call add_lwp after stopping
3209 (resume_callback): Clear lp->siginfo. Remove unused variable.
3210 (linux_nat_resume): Assert that the LWP list is already initialized.
3212 (save_siginfo): New.
3213 (stop_wait_callback, linux_nat_wait): Call it.
3214 (linux_nat_set_new_thread, linux_nat_get_siginfo): New.
3215 * linux-nat.h (struct lwp_info): Add siginfo.
3216 (lwp_list, linux_nat_set_new_thread, linux_nat_get_siginfo): Declare.
3219 * amd64-linux-nat.c (amd64_linux_dr): New.
3220 (amd64_linux_dr_get): Take a PTID argument. Correct typo.
3221 (amd64_linux_dr_set): Take a PTID argument.
3222 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use ALL_LWPS.
3223 (amd64_linux_dr_reset_addr): Use amd64_linux_dr_set_addr.
3224 (amd64_linux_dr_get_status): Pass inferior_ptid to amd64_linux_dr_get.
3225 (amd64_linux_new_thread): New.
3226 (_initialize_amd64_linux_nat): Call linux_nat_set_new_thread.
3227 * i386-linux-nat.c (i386_linux_dr): New.
3228 (i386_linux_dr_get, i386_linux_dr_set): Take a PTID argument.
3229 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use ALL_LWPS.
3230 (i386_linux_dr_reset_addr): Use i386_linux_dr_set_addr.
3231 (i386_linux_dr_get_status): Pass inferior_ptid to i386_linux_dr_get.
3232 (i386_linux_new_thread): New.
3233 (i386_linux_resume): Remove unnecessary PID check.
3234 (_initialize_i386_linux_nat): Call linux_nat_set_new_thread.
3235 * ia64-linux-nat.c (enable_watchpoints_in_psr): Take PTID argument.
3236 (fetch_debug_register, fetch_debug_register_pair): Delete.
3237 (debug_registers): New.
3238 (ia64_linux_insert_watchpoint, ia64_linux_remove_watchpoint): Use
3239 ALL_LWPS and debug_registers.
3240 (ia64_linux_new_thread): New.
3241 (ia64_linux_stopped_data_address): Use linux_nat_get_siginfo.
3242 (_initialize_ia64_linux_nat): Call linux_nat_set_new_thread.
3243 * ppc-linux-nat.c (last_stopped_data_address): Delete.
3244 (saved_dabr_value): New.
3245 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint): Use
3247 (ppc_linux_new_thread): New.
3248 (ppc_linux_stopped_data_address): Use linux_nat_get_siginfo.
3249 (ppc_linux_stopped_by_watchpoint): Call ppc_linux_stopped_data_address.
3250 (_initialize_ppc_linux_nat): Call linux_nat_set_new_thread.
3251 * s390-nat.c (s390_stopped_by_watchpoint): Clear the watchpoint status
3253 (s390_fix_watch_points): Take a PTID argument.
3254 (s390_insert_watchpoint, s390_remove_watchpoint): Use ALL_LWPS.
3255 (_initialize_s390_nat): Call linux_nat_set_new_thread.
3257 2007-09-30 Daniel Jacobowitz <dan@codesourcery.com>
3258 Jeff Johnston <jjohnstn@redhat.com>
3260 * breakpoint.c (watchpoints_triggered): New.
3261 (bpstat_stop_status): Remove STOPPED_BY_WATCHPOINT argument.
3262 Check watchpoint_triggered instead. Combine handling for software
3263 and hardware watchpoints. Do not use target_stopped_data_address
3264 here. Always check a watchpoint if its scope breakpoint triggers.
3265 Do not stop for thread or overlay events. Improve check for
3266 triggered watchpoints without a value change.
3267 (watch_command_1): Insert the scope breakpoint first. Link the
3268 scope breakpoint to the watchpoint.
3269 * breakpoint.h (enum watchpoint_triggered): New.
3270 (struct breakpoint): Add watchpoint_triggered.
3271 (bpstat_stop_status): Update prototype.
3272 (watchpoints_triggered): Declare.
3273 * infrun.c (enum infwait_status): Add infwait_step_watch_state.
3274 (stepped_after_stopped_by_watchpoint): Delete.
3275 (handle_inferior_event): Make stepped_after_stopped_by_watchpoint
3276 local. Handle infwait_step_watch_state. Update calls to
3277 bpstat_stop_status. Use watchpoints_triggered to check
3279 * remote.c (stepped_after_stopped_by_watchpoint): Remove extern.
3280 (remote_stopped_data_address): Do not check it.
3282 2007-09-29 Daniel Jacobowitz <dan@codesourcery.com>
3284 * configure.ac: Add $LIBINTL when testing libbfd.
3285 * configure: Regenerated.
3287 2007-09-28 Vladimir Prus <vladimir@codesourcery.com>
3289 * NEW: Mention pending breakpoint changes and
3290 support for breakpoints at multiple locations.
3292 2007-09-27 Daniel Jacobowitz <dan@codesourcery.com>
3294 * arm-linux-tdep.c (arm_linux_software_single_step): New.
3295 (arm_linux_init_abi): Use it.
3296 * arm-tdep.c (arm_get_next_pc): Make global. Handle all-ones
3297 condition correctly.
3298 * arm-tdep.h (arm_get_next_pc): Declare.
3299 * Makefile.in (arm-linux-tdep.o): Update.
3301 2007-09-26 Vladimir Prus <vladimir@codesourcery.com>
3303 * varobj.c (install_new_value): Don't
3304 call value_get_print_value when a value is
3305 lazy. Update the print_value member in a
3308 2007-09-26 Vladimir Prus <vladimir@codesourcery.com>
3310 * breakpoint.c (create_breakpoint): Set
3311 condition on each location, not on the first
3312 location of breakpoint.
3314 2007-09-26 Jim Blandy <jimb@codesourcery.com>
3316 * remote.c (getpkt_sane): Fix error message. No animals were
3317 harmed in the making of this debugger.
3319 2007-09-26 Pierre Muller <muller@ics.u-strasbg.fr>
3321 * p-typeprint.c: Fix 11 ARI reported problems.
3322 (pascal_print_type): Fix 4 operator at end of line.
3323 (pascal_type_print_method_args) : Replace 2 DEPRECATED_STREQN macros
3324 using strncmp function.
3325 (pascal_type_print_base): Fix 2 operator at end of line.
3326 (pascal_type_print_base) : Replace 3 DEPRECATED_STREQN macros
3327 using strncmp function.
3330 2007-09-26 Pierre Muller <muller@ics.u-strasbg.fr>
3332 * Fix PR pascal/2231
3333 dwarf2read.c (read_subroutine_type):
3334 All pascal functions are prototyped.
3336 2007-09-26 Pierre Muller <muller@ics.u-strasbg.fr>
3338 * Fix PR pascal/2283
3339 p-valprint.c (pascal_val_print): correct current language check.
3340 Also print array of char as strings.
3343 2007-09-26 David Ung <davidu@mips.com>
3344 Maciej W. Rozycki <macro@mips.com>
3346 * mips-tdep.c (mips_n32n64_return_value): Fix a comment.
3348 2007-09-25 Pierre Muller <muller@ics.u-strasbg.fr>
3350 * p-exp.y: Fix 12 ARI reported problems.
3351 (name_not_typename): Fix 2 operator at end of line issues.
3352 (yylex): Fix 3 operator at end of line issues.
3353 Replace 7 DEPRECATED_STREQ macros using strcmp function.
3355 2007-09-25 David Ung <davidu@mips.com>
3356 Maciej W. Rozycki <macro@mips.com>
3358 * mips-tdep.c (mips_n32n64_return_value): Per N32/N64 ABI
3359 rules return composite types in registers as appropriate.
3361 2007-09-24 Jim Blandy <jimb@codesourcery.com>
3363 * symfile.h (struct symfile_segment_data): Doc fixes.
3364 * symfile.c (symfile_map_offsets_to_segments): Doc fixes.
3365 Assert that we were passed some loaded segment addresses,
3366 and that sections' segment numbers are valid.
3367 Simplify offset calculation.
3368 * remote.c (get_offsets): Clarify selection of relocate-by-segment
3369 strategy, and set num_segments correctly. Delete redundant
3370 assignments to do_sections.
3372 2007-09-24 Daniel Jacobowitz <dan@codesourcery.com>
3374 * frame.c (get_prev_frame_1): Also check for PC in the same register.
3376 2007-09-24 Vladimir Prus <vladimir@codesourcery.com>
3378 * breakpoint.c (remove_sal): New.
3379 (expand_line_sal_maybe): New.
3380 (create_breakpoints): Call expand_line_sal_maybe.
3381 (clear_command): Add comment.
3382 (breakpoint_re_set_one): Call expand_line_sal_maybe.
3383 * linespec.c (decode_indirect): Set explicit_pc to 1.
3384 (decode_all_digits): Set explicit_line to 1.
3385 (append_expanded_sal): New.
3386 (expand_line_sal): New.
3387 * linespec.h (expand_line_sal): Declare.
3388 * symtab.c (init_sal): Initialize explicit_pc
3390 * symtab.h (struct symtab_and_line): New fields
3391 explicit_pc and explicit_line.
3393 2007-09-23 Daniel Jacobowitz <dan@codesourcery.com>
3395 * infcall.c (call_function_by_hand): Handle language-specific
3396 pass and return by reference.
3398 * cp-abi.c (cp_pass_by_reference): New.
3399 * cp-abi.h (cp_pass_by_reference): Declare.
3400 (struct cp_abi_ops): Add pass_by_reference.
3401 * gnu-v3-abi.c (gnuv3_pass_by_reference): New.
3402 (init_gnuv3_ops): Set pass_by_reference.
3404 * language.c (language_pass_by_reference): New.
3405 (default_pass_by_reference): New.
3406 (unknown_language_defn, auto_language_defn, local_language_defn): Add
3407 default_pass_by_reference.
3408 * langauge.h (struct language_defn): Add la_pass_by_reference.
3409 (language_pass_by_reference, default_pass_by_reference): Declare.
3410 * ada-lang.c (ada_language_defn): Add default_pass_by_reference.
3411 * c-lang.c (c_language_defn, asm_language_defn)
3412 (minimal_language_defn): Likewise.
3413 (cplus_language_defn): Add cp_pass_by_reference.
3414 * f-lang.c (f_language_defn): Add default_pass_by_reference.
3415 * jv-lang.c (java_language_defn): Likewise.
3416 * m2-lang.c (m2_language_defn): Likewise.
3417 * objc-lang.c (objc_language_defn): Likewise.
3418 * p-lang.c (pascal_language_defn): Likewise.
3419 * scm-lang.c (scm_language_defn): Likewise
3421 2007-09-23 Vladimir Prus <vladimir@codesourcery.com>
3423 Allow a code breakpoint to have several locations
3425 * breakpoint.h (enum enable_state): Remove the
3426 bp_shlib_disabled enumerator.
3427 (struct bp_location): New members shlib_disabled,
3428 global_next, enabled and function_name.
3429 Rename pending to condition_not_parsed.
3431 * breakpoint.c (ALL_BP_LOCATIONS): Iterate over global_next.
3432 (ALL_BP_LOCATIONS_SAFE): Likewise.
3433 (breakpoint_enabled): Don't check for pending.
3434 (condition_command): Free and update all locations of
3436 (insert_bp_location): Adjust.
3437 (software_breakpoint_inserted_here_p): Don't care
3438 if breakpoint is enabled, as soon as it's inserted.
3439 (print_it_typical): Print bpstat's location, not
3440 bpstat's breakpoint's location.
3441 (bpstat_stop_status): Iterate over all locations, not
3443 (print_breakpoint_location): New.
3444 (print_one_breakpoint): Renamed to
3445 (print_one_breakpoint_location): ...this. Take
3446 parameters to describe which location is being
3447 printed. Modify code to properly print header
3448 for several locations and individual locations.
3449 (print_one_breakpoint): Print all locations.
3450 (breakpoint_has_pc): New.
3451 (describe_other_breakpoints): Use the above.
3452 (check_duplicates): Renamed to...
3453 (check_duplicates_for): .. this.
3454 (check_duplicates): Use check_duplicates_for.
3455 (allocate_bp_location): Adjust.
3456 (set_raw_breakpoint_without_location): New,
3457 extracted from set_raw_breakpoint.
3458 (set_breakpoint_location_function): New.
3459 (set_raw_breakpoint): Use
3460 set_raw_breakpoint_without_location.
3461 (make_breakpoint_permanent): Mark all locations
3463 (disable_breakpoints_in_shlibs): Iterate over
3465 (disable_breakpoints_in_unloaded_shlib): Likewise.
3466 (re_enable_breakpoints_in_shlibs): Likewise.
3467 (mention): Say "pending" when breakpoint has
3468 zero locations. If breakpoint has more than one
3470 (add_location_to_breakpoint): New.
3471 (create_breakpoint): Accept symtabs_and_lines, not
3472 symtab_and_line. Pass extra sals to
3473 add_location_to_breakpoint.
3474 (create_breakpoints): Pass symtabs_and_lines to
3476 (break_command_1): Make pending breakpoints
3477 have zero locations.
3478 (do_captured_breakpoint): Remove wrong allocation.
3479 (clear_command): Iterate over all locations.
3480 (unlink_locations_from_global_list): Renamed
3481 from unlink_location_from_global_list. Remove
3483 (delete_breakpoint): Remove all locations.
3484 Iterate over all locations when deciding which
3485 other location to re-enable.
3486 (all_locations_are_pending): New.
3487 (update_breakpoint_locations): Renamed from
3488 update_breakpoint_location. Try to match old
3489 and new locations using names of containing
3491 (breakpoint_re_set_one): Adjust.
3492 (find_location_by_number): New.
3493 (disable_command): Allow disabling individual location.
3494 (enable_command): Allow enabling individual location.
3495 * breakpoint.c: Adjust all uses of breakpoint's
3496 enable state to for bp_shlib_disabled change.
3498 2007-09-22 Vladimir Prus <vladimir@codesourcery.com>
3500 * breakpoint.c (do_restore_lang_radix_cleanup): Remove.
3501 (resolve_pending_breakpoint): Remove.
3502 (re_enable_breakpoints_in_shlibs): Remove.
3503 (unlink_locations_from_global_list): New.
3504 (update_breakpoint_locations): New.
3505 (breakpoint_re_set_one): Don't bail out on pending breakpoints.
3506 Use parse_condition and update_breakpoint_location to
3507 reset breakpoint. Ignore 'symbol not found' error from
3509 (breakpoint_re_set): Don't emit newline before the
3510 reason why breakpoint is not reset.
3511 (do_enable_breakpoint): Don't specially process pending
3513 (free_bp_location): New.
3514 (break_command_1): For pending breakpoints, initialize
3515 all fields of a sal with zeroes.
3516 * breakpoint.h (re_enable_breakpoints_in_shlibs): Remove.
3517 * infcmd.c (post_create_inferior): Don't call
3518 re_enable_breakpoints_in_shlibs.
3519 * infrun.c (handle_inferior_event): Likewise.
3520 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
3521 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
3522 * win32-nat.c (get_win32_debug_event): Likewise.
3524 2007-09-22 Vladimir Prus <vladimir@codesourcery.com>
3526 * breakpoint.c (create_breakpoint): Split from
3527 create_breakpoints, implementing most of its logic.
3528 Take just a single sal, single address string and
3529 single condition. Do not take parsed condition at
3531 (create_breakpoints): Just call create_breakpoint
3533 (find_condition_and_thread): New.
3534 (break_command_1): Use find_condition_and_thread.
3535 Do not keep parsed conditions.
3536 (do_captured_breakpoint): Don't convert
3537 condition string to struct expression.
3539 2007-09-22 Vladimir Prus <vladimir@codesourcery.com>
3541 * breakpoint.h (struct breakpoint): Move the cond
3543 (struct bp_location): Here.
3544 * breakpoint.c (condition_command, bpstat_stop_status)
3545 (print_one_breakpoint, allocate_bp_location)
3546 (solib_load_unload_1, create_fork_vfork_event_catchpoint)
3547 (create_exec_event_catchpoint, create_breakpoints)
3548 (break_command_1, watch_command_1, handle_gnu_v3_exceptions)
3549 (create_ada_exception_breakpoint, set_breakpoint_sal)
3550 (delete_breakpoint, breakpoint_re_set_one): Adjust.
3551 * tui/tui-winsource.c (tui_update_breakpoint_info): Adjust.
3553 2007-09-22 Vladimir Prus <vladimir@codesourcery.com>
3555 Associate bp_stat with bp_location, not breakpoint.
3556 * breakpoint.h (breakpoint_at): Change type
3558 * breakpoint.c (bpstat_alloc): Take bp_location,
3560 (bpstat_find_breakpoint): Look at bpstat's location's
3561 owner, not at bpstat->breakpoint_at.
3562 (bpstat_find_step_resume_breakpoint): Likewise.
3563 (bpstat_num): Likewise.
3564 (print_it_typical): Likewise.
3565 (print_bp_stop_message): Likewise.
3566 (watchpoint_check): Likewise.
3567 (bpstat_what): Likewise.
3568 (bpstat_get_triggered_catchpoints): Likewise.
3569 (breakpoint_auto_delete): Likewise.
3570 (delete_breakpoint): Likewise.
3571 (bpstat_stop_status): Pass location, not breakpoint,
3572 to bpstat_alloc. Look at bpstat's location's
3573 owner, not at bpstat->breakpoint_at.
3575 2007-09-21 Jim Blandy <jimb@codesourcery.com>
3577 * macrotab.h (new_macro_table): Document that removing information
3578 from an obstack/bcache-managed macro table leaks memory.
3579 * macrotab.c (macro_free, macro_bcache_free): Instead of asserting
3580 that data is never freed in obstack/bcache-managed macro tables,
3581 just leak the storage.
3582 (macro_undef): If we're undefining a macro at exactly the same
3583 source location that we defined it, simply remove the definition
3586 2007-09-21 Joel Brobecker <brobecker@adacore.com>
3588 * symfile.h (struct sym_fns): Add new field sym_read_linetable.
3589 * coffread.c, dbxread.c, elfread.c, mipsread.c somread.c:
3590 Adjust the struct sym_fns object accordingly by setting
3591 the new field to NULL.
3592 * xcoffread.c (aix_process_linenos): Make static.
3593 (xcoff_sym_fns): Set new field to aix_process_linenos.
3594 * buildsym.c (end_symtab): Replace call to PROCESS_LINENUMBER_HOOK
3595 by call to new the new sym_fns sym_read_linetable function.
3596 * config/powerpc/aix.mt (DEPRECATED_TM_FILE): Delete.
3597 * config/rs6000/tm-rs6000.h: Delete.
3599 2007-09-21 David Ung <davidu@mips.com>
3600 Maciej W. Rozycki <macro@mips.com>
3602 * mips-tdep.c (mips_n32n64_push_dummy_call): Per N32/N64 ABI
3603 rules do not treat composite types specially.
3605 2007-09-20 Maciej W. Rozycki <macro@mips.com>
3607 * mips-tdep.c (mips32_in_function_epilogue_p): New function.
3608 (mips16_in_function_epilogue_p): Likewise.
3609 (mips_in_function_epilogue_p): Likewise.
3610 (mips_gdbarch_init): Register mips_in_function_epilogue_p().
3612 2007-09-19 Joel Brobecker <brobecker@adacore.com>
3614 * configure.ac: Add check for "etext".
3615 * configure, config.in: Regenerate.
3616 * maint.c (TEXTEND): Only define if either _etext or etext
3618 Disable the profiling functionality if TEXTEND is not defined.
3620 2007-09-19 Daniel Jacobowitz <dan@codesourcery.com>
3622 * mips-tdep.c (mips_stub_frame_cache): Correct the saved return
3623 address register. Correct the call to frame_id_build.
3624 (mips_stub_frame_sniffer): Use the stub unwinder when the PC
3627 2007-09-18 Joel Brobecker <brobecker@adacore.com>
3629 * ia64-tdep.c (refine_prologue_limit): Make sure we don't scan
3630 the linetable past the function end.
3632 2007-09-18 James E. Wilson <wilson@specifix.com>
3634 * MAINTAINERS: Update my email address.
3636 2007-09-18 Jerome Guitton <guitton@adacore.com>
3638 * inf-ttrace.c (inf_ttrace_private_thread_info): New structure type.
3639 (inf_ttrace_delete_dying_threads_callback): New function.
3640 (inf_ttrace_resume): After resuming the execution, iterate over
3641 the dying threads to delete them for the thread list.
3642 (inf_ttrace_wait): on TTEVT_LWP_EXIT and TTEVT_LWP_TERMINATE,
3643 mark the corresponding thread as dying instead of removing it
3644 from the thread list.
3645 (inf_ttrace_thread_alive): return 0 for dying threads.
3647 2007-09-17 Joel Brobecker <brobecker@adacore.com>
3649 * infrun.c (insert_step_resume_breakpoint_at_frame): Add assertion
3650 that return_frame is not null.
3652 2007-09-17 Joel Brobecker <brobecker@adacore.com>
3654 * solib-svr4.c: Add include of "auxv.h".
3655 (enable_break): Use the AT_BASE auxiliary entry if available.
3656 * Makefile.in (solib-svr4.o): Update dependencies.
3658 2007-09-17 Joel Brobecker <brobecker@adacore.com>
3660 * NEWS: Create a new section for the next release branch.
3661 Rename the section of the current branch, now that it has
3664 2007-09-17 Jerome Guitton <guitton@adacore.com>
3666 * dwarf2loc.c (dwarf_expr_frame_base): Guard against NULL.
3667 * Makefile.in (dwarf2loc.o): Depend on gdb_assert.h.
3669 2007-09-16 Vladimir Prus <vladimir@codesourcery.com>
3671 * mi/mi-cmds.c (mi_cmds): Register -list-features.
3672 * mi/mi-cmds.h (mi_cmd_list_features): New.
3673 * mi/mi-main.c (mi_cmd_list_features): New.
3675 2007-09-11 Joel Brobecker <brobecker@adacore.com>
3677 GDB 6.7 branch created (branch timestamp: 2007-09-07 14:00 UTC)
3678 * version.in: Bump version to 6.7.50-20070911-cvs.
3680 2007-09-10 Daniel Jacobowitz <dan@codesourcery.com>
3682 * thread.c (free_thread): Do not delete the step resume breakpoint
3685 2007-09-10 Daniel Jacobowitz <dan@codesourcery.com>
3687 * arch-utils.c (gdbarch_info_fill): Also try core_bfd.
3688 * corelow.c (core_read_description): New.
3689 (init_core_ops): Set to_read_description.
3690 * gdbarch.sh: Add gdbarch_core_read_description.
3691 * mips-linux-tdep.c (mips_linux_core_read_description): New.
3692 (mips_linux_init_abi): Call set_gdbarch_core_read_description.
3693 * mips-tdep.c (mips_tdesc_gp32, mips_tdesc_gp64): New.
3694 (mips_register_g_packet_guesses): Use them.
3695 (_initialize_mips_tdep): Initialize them.
3696 * mips-tdep.h (mips_tdesc_gp32, mips_tdesc_gp64): Declare.
3697 * gdbarch.h, gdbarch.c: Regenerated.
3699 2007-09-10 Ulrich Weigand <uweigand@de.ibm.com>
3701 * infrun.c (stepping_past_breakpoint): New global variable.
3702 (stepping_past_breakpoint_ptid): Likewise.
3703 (prepare_to_proceed): Add STEP parameter. Do not check for Ctrl-C.
3704 Only switch threads if we need to single-step over a breakpoint hit
3705 in the previously selected thread. If stepping, remember previous
3706 thread to switch back to in STEPPING_PAST_BREAKPOINT[_PTID]. Call
3707 switch_to_thread instead of copying its contents.
3708 (proceed): Pass STEP to prepare_to_proceed. Always set ONEPROC if
3709 prepare_to_proceed returns true.
3710 (init_wait_for_inferior): Reset STEPPING_PAST_BREAKPOINT.
3711 (context_switch): Call switch_to_thread.
3712 (handle_inferior_event): Switch back to previous thread if requested
3713 in STEPPING_PAST_BREAKPOINT[_PTID] by prepare_to_proceed.
3714 * gdbthread.h (switch_to_thread): Add prototype.
3715 * thread.c (switch_to_thread): Make global.
3717 2007-09-07 Pierre Muller <muller@ics.u-strasbg.fr>
3719 * p-valprint.c: Fix 7 ARI reported problems.
3720 (pascal_val_print): Fix one operator at end of line issue.
3721 Use paddress function to remove use of
3722 deprecated_print_address_numeric function (2 times).
3723 Use SYMBOL_LINKAGE_NAME instead of DEPRECATED_SYMBOL_NAME.
3724 (pascal_value_print): Fix 3 operator at end of line issues.
3726 2007-09-07 Daniel Jacobowitz <dan@codesourcery.com>
3729 * arm-tdep.c (arm_in_call_stub): Delete.
3730 (arm_skip_stub): Handle from_arm and from_thumb stubs.
3732 2007-09-06 Daniel Jacobowitz <dan@codesourcery.com>
3734 * ppc-sysv-tdep.c (do_ppc_sysv_return_value): Handle other integer
3737 2007-09-04 Daniel Jacobowitz <dan@codesourcery.com>
3738 Jim Blandy <jimb@codesourcery.com>
3740 * NEWS: Update description of string changes. Mention print/s.
3741 * c-valprint.c (textual_element_type): New.
3742 (c_val_print): Use it. Do not skip address printing for pointers
3743 with a string format.
3744 (c_value_print): Doc update.
3745 * dwarf2read.c (read_array_type): Use make_vector_type.
3746 * gdbtypes.c (make_vector_type): New.
3747 (init_vector_type): Use it.
3748 (gdbtypes_post_init): Initialize builtin_true_unsigned_char.
3749 (_initialize_gdbtypes): Mark int8_t and uint8_t as TYPE_FLAG_NOTTEXT.
3750 * gdbtypes.h (struct builtin_type): Add builtin_true_unsigned_char.
3751 (TYPE_FLAG_NOTTEXT, TYPE_NOTTEXT): New.
3752 (make_vector_type): New.
3753 * printcmd.c (print_formatted): Only handle 's' and 'i' for examine.
3754 Call the language print routine for string format.
3755 (print_scalar_formatted): Call val_print for string format. Handle
3756 unsigned original types for char format.
3757 (validate_format): Do not reject string format.
3758 * stabsread.c (read_type): Use make_vector_type.
3759 * xml-tdesc.c (tdesc_start_vector): Use init_vector_type.
3761 2007-09-04 Michael Snyder <msnyder@access-company.com>
3763 * expprint.c (print_subexp_standard): Check strchr for null.
3764 * Makefile.in (expprint.o): Depend on gdb_assert.h.
3766 * gnu-v2-abi.c (gnuv2_value_rtti_type): Guard against null.
3768 * stabsread.c (patch_block_status): Guard against null.
3769 * Makefile.in (stabsread.o): Depend on gdb_assert.h.
3771 2007-09-04 Daniel Jacobowitz <dan@codesourcery.com>
3773 * printcmd.c (printf_command): Handle ptr_arg. Correct typo
3774 in internal error message.
3776 2007-09-04 Pedro Alves <pedro_alves@portugalmail.pt>
3777 Daniel Jacobowitz <dan@codesourcery.com>
3779 * infcmd.c (post_create_inferior): Update comment.
3780 (run_command_1): Always call post_create_inferior with 0 as
3783 * i386-cygwin-tdep.h: New.
3784 * i386-cygwin-tdep.c: Include "i386-cygwin-tdep.h".
3785 (win32_xfer_shared_library): Make it extern.
3787 * win32-nat.c: Include gdb_obstack.h and xml-support.h and
3789 (win32_so_ops): Delete.
3790 (get_relocated_section_addrs): Delete.
3791 (solib_symbols_add): Delete.
3792 (register_loaded_dll): Delete.
3793 (win32_make_so): New.
3794 (handle_load_dll): Use win32_make_so.
3795 (win32_free_so): Free the passed in so.
3796 (win32_relocate_section_addresses): Delete.
3797 (win32_solib_create_inferior_hook): Delete.
3798 (handle_unload_dll): Don't add PE offset here. Free so with
3799 win32_free_so instead of free_so.
3800 (win32_special_symbol_handling): Delete.
3801 (get_win32_debug_event): Remove unneeded calls. Set state to
3802 TARGET_WAITKIND_LOADED on a dll unload.
3803 (do_initial_win32_stuff): Clear cygwin_load_start and
3805 (map_code_section_args): Delete.
3806 (dll_code_sections_add): Delete.
3807 (core_section_load_dll_symbols): Delete.
3808 (win32_xfer_shared_libraries): New.
3809 (win32_current_sos): Delete.
3810 (win32_xfer_partial): New.
3811 (open_symbol_file_object): Delete.
3812 (in_dynsym_resolve_code): Delete.
3813 (init_win32_ops): Set win32_xfer_partial as to_xfer_partial member
3814 of win32_ops. Remove win32_so_ops settings. Don't set
3815 current_target_so_ops here.
3817 * Makefile.in (i386_cygwin_tdep_h): New variable.
3818 (i386-cygwin-tdep.o): Update dependencies.
3819 (win32-nat.o): Update dependencies.
3821 2007-09-04 Pedro Alves <pedro_alves@portugalmail.pt>
3822 Daniel Jacobowitz <dan@codesourcery.com>
3824 * gdbarch.sh (core_xfer_shared_libraries): New.
3826 * corelow.c (core_xfer_partial): Handle TARGET_OBJECT_LIBRARIES.
3828 * gdb_obstack.h (obstack_grow_str, obstack_grow_str0): New.
3830 * xml-support.c (gdb_xml_parse): Debug output tweaks.
3831 (xml_escape_text): New.
3832 * xml-support.h (xml_escape_text): Declare.
3834 * config/i386/cygwin.mh (NATDEPFILES): Move corelow.o to ...
3835 * config/i386/cygwin.mt (TDEPFILES): ... here.
3837 * win32-nat.c: (fetch_elf_core_registers): Delete.
3838 (win32_elf_core_fn): Delete.
3839 (_initialize_core_win32): Delete.
3841 * i386-cygwin-tdep.c: Include "regset.h", "gdb_objstack.h",
3842 "xml-support.h" and "gdbcore.h".
3843 (i386_win32_gregset_reg_offset): New.
3844 (I386_WIN32_SIZEOF_GREGSET): New.
3845 (i386_win32_regset_from_core_section): New.
3846 (win32_xfer_shared_library): New.
3847 (struct cpms_data): New.
3848 (core_process_module_section): New.
3849 (win32_core_xfer_shared_libraries): New.
3850 (i386_cygwin_skip_trampoline_code): Register gregset_reg_offset,
3851 gregset_num_regs, sizeof_gregset members of tdep. Register
3852 regset_from_core_section and core_xfer_shared_libraries callbacks.
3854 * Makefile.in (i386-cygwin-tdep.o): Update dependencies.
3855 * gdbarch.h, gdbarch.c: Regenerate.
3857 2007-09-03 Daniel Jacobowitz <dan@codesourcery.com>
3859 * corelow.c (core_xfer_partial): Pass writebuf to
3860 deprecated_xfer_memory in TARGET_OBJECT_MEMORY write case.
3862 2007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
3864 * arm-tdep.h (arm_skip_stub): Declare.
3865 * arm-wince-tdep.c: Don't include "solib-svr4.h". Include
3867 (arm_pe_skip_trampoline_code): New function.
3868 (arm_wince_init_abi): Register arm_pe_skip_trampoline_code as
3869 gdbarch_skip_trampoline_code callback.
3870 * Makefile.in (arm-wince-tdep.o): Update dependencies.
3872 2007-09-03 Daniel Jacobowitz <dan@codesourcery.com>
3874 * MAINTAINERS: Move Fred Fish to Past Maintainers.
3876 2007-09-03 Daniel Jacobowitz <dan@codesourcery.com>
3878 * configure.ac: Add --with-expat.
3879 * configure: Regenerated.
3881 2007-09-03 Andreas Schwab <schwab@suse.de>
3883 * configure.ac: Accept --with-system-readline.
3884 (READLINE, READLINE_DEPS, READLINE_CFLAGS): Define and substitute.
3885 * configure: Regenerate.
3886 * Makefile.in (READLINE, READLINE_DEPS, READLINE_CFLAGS): Use
3888 (CDEPS): Use $(READLINE_DEPS) instead of $(READLINE).
3890 2007-09-03 Maxim Grigoriev <maxim2405@gmail.com>
3891 Daniel Jacobowitz <dan@codesourcery.com>
3893 * mi-main.c (mi_load_progress): Handle MI2 and MI3 interpreters.
3895 2007-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3897 * top.c (print_gdb_version): Fixed a string end-of-line compiler error.
3899 2007-09-02 Daniel Jacobowitz <dan@codesourcery.com>
3901 * top.c (print_gdb_version): Update for GPL version 3.
3903 2007-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3905 * NEWS: Mention the build-id .debug files verification.
3907 2007-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3909 * linux-nat.c (linux_nat_make_corefile_notes): Fixed a buffer overflow.
3911 2007-09-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3913 * Makefile.in (symfile.o): Update dependencies.
3914 * symfile.c (symbol_file_add_with_addrs_or_offsets): Initialize the
3915 DEBUGFILE variable. FIND_SEPARATE_DEBUG_FILE called only if !PSYMTABS.
3916 (struct build_id): New structure.
3917 (build_id_bfd_get, build_id_verify, build_id_to_debug_filename): New.
3918 (find_separate_debug_file): New variable BUILD_ID.
3919 Call BUILD_ID_BFD_GET with BUILD_ID_TO_DEBUG_FILENAME as the first try.
3921 2007-08-31 Vladimir Prus <vladimir@codesourcery.com>
3923 * varobj.c (struct varobj): Fix comment
3924 for the type member not to lie when it can be
3927 2007-08-31 Vladimir Prus <vladimir@codesourcery.com>
3929 Implement -var-info-path-expression.
3931 * mi/mi-cmds.h (mi_cmd_var_info_path_expression):
3933 * mi/mi-cmds.c (mi_cmds): Register var-info-path-expression.
3934 * mi/mi-cmd-var.c (mi_cmd_var_info_path_expression): New.
3935 * varobj.c (struct varobj): New field 'path_expr'.
3936 (c_path_expr_of_child, cplus_path_expr_of_child)
3937 (java_path_expr_of_child): New.
3938 (struct language_specific): New field path_expr_of_child.
3939 (varobj_create): Initialize the path_expr field.
3940 (varobj_get_path_expr): New.
3941 (new_variable): Initialize the path_expr field.
3942 (free_variable): Free the path_expr field.
3943 (adjust_value_for_children_access): New parameter
3945 (c_number_of_children): Adjust.
3946 (c_describe_child): New parameter CFULL_EXPRESSION.
3947 Compute full expression.
3948 (c_value_of_child, c_type_of_child): Adjust.
3949 (cplus_number_of_children): Adjust.
3950 (cplus_describe_child): New parameter CFULL_EXPRESSION.
3951 Compute full expression.
3952 (cplus_name_of_child, cplus_value_of_child)
3953 (cplus_type_of_child): Adjust.
3954 * varobj.h (varobj_get_path_expr): Declare.
3956 2007-08-31 Vladimir Prus <vladimir@codesourcery.com>
3958 * mi/mi-cmd-var.c (print_varobj): If a varobj
3959 type is NULL, don't try to print it.
3961 2007-08-30 Alan Modra <amodra@bigpond.net.au>
3963 * ppc-linux-nat.c (right_fill_reg): Delete.
3964 (supply_gregset): Use ppc_supply_gregset.
3965 (supply_fpregset): Use ppc_supply_fpregset.
3966 (fill_gregset): Use ppc_collect_gregset.
3967 (fill_fpregset): Use ppc_collect_fpregset.
3968 * ppc-linux-tdep.c (PPC_LINUX_PT_*): Don't define.
3969 (right_supply_register, ppc_linux_supply_gregset): Delete.
3970 (ppc32_linux_supply_gregset, ppc64_linux_supply_gregset): Delete.
3971 (ppc_linux_supply_fpregset): Delete.
3972 (ppc_linux_collect_gregset): New function.
3973 (ppc32_linux_reg_offsets, ppc64_linux_reg_offsets): New.
3974 (ppc32_linux_gregset, ppc64_linux_gregset): Update to use reg offsets,
3975 ppc_linux_supply_gregset, and ppc_collect_gregset.
3976 (ppc_linux_fpregset): Rename to ppc32_linux_fpregset and update.
3977 (ppc_linux_gregset, ppc_linux_fpregset): New functions.
3978 (ppc_linux_regset_from_core_section): Update.
3979 * ppc-tdep.h (ppc_linux_gregset, ppc_linux_fpregset): Declare.
3980 (ppc_linux_supply_gregset, ppc_linux_supply_fpregset): Delete.
3981 (struct ppc_reg_offsets): Add gpr_size, xr_size, fpscr_size fields.
3982 * ppcobsd-tdep.c (ppcobsd_supply_gregset): Delete FIXME and assert.
3983 (ppcobsd_collect_gregset): Likewise.
3984 (_initialize_ppcnbsd_tdep): Init gpr_size, xr_size, fpscr_size.
3985 * ppcnbsd-tdep.c (_initialize_ppcobsd_tdep): Likewise.
3986 * ppcobsd-nat.c (_initialize_ppcobsd_nat): Likewise.
3987 * rs6000-aix-tdep.c (rs6000_aix32_reg_offsets): Likewise.
3988 (rs6000_aix64_reg_offsets): Likewise.
3989 (rs6000_aix_supply_regset): Call ppc_supply_fpregset without testing
3990 ppc_floating_point_unit_p.
3991 (rs6000_aix_collect_regset): Similarly.
3992 * rs6000-tdep.c (ppc_supply_reg): Add regsize param. Adjust offset
3993 when regsize is larger than regcache register size.
3994 (ppc_collect_reg): Similarly zero pad when regsize is larger than
3995 regcache register size.
3996 (ppc_greg_offset): New function, split out from..
3997 (ppc_supply_gregset): ..here. Separate code handling all regs from
3998 single reg case. Correct xer offset.
3999 (ppc_fpreg_offset): New function, split out from..
4000 (ppc_supply_fpregset): ..here. Separate code handling all regs from
4002 (ppc_collect_gregset, ppc_collect_fpregset): Likewise.
4003 (ppc_supply_fpregset, ppc_collect_fpregset): Don't assert we have
4004 a fp unit, instead return if no fp.
4006 2007-08-29 Jim Blandy <jimb@codesourcery.com>
4008 * breakpoint.c (watch_command_1): Remove '#ifdef HPUXHPPA' block;
4009 this code has not been compiled for two years.
4011 2007-08-29 Michael Snyder <msnyder@access-company.com>
4013 * event-top.c (gdb_readline2): Return after EOF.
4015 2007-08-29 Joel Brobecker <brobecker@adacore.com>
4017 * symtab.c: Remove a function that has been commented out 3 years ago.
4019 2007-08-29 Randolph Chung <tausq@debian.org>
4021 * hppa-tdep.c (hppa32_cannot_fetch_register)
4022 (hppa64_cannot_fetch_register): New functions.
4023 (hppa_gdbarch_init): Set cannot_fetch_register appropriately.
4024 * hppa-tdep.h (hppa_regnum): Add HPPA_CR26_REGNUM.
4026 2007-08-28 Michael Snyder <msnyder@access-company.com>
4028 * mi/mi-cmd-var.c (mi_print_value_p): No longer necessary to
4029 check for null before calling check_typedef.
4031 * NEWS: Mention Coverity bug fixes.
4033 2007-08-27 Markus Deuling <deuling@de.ibm.com>
4035 * spu-tdep.c (spu_pointer_to_address): New function.
4036 (spu_integer_to_address): Likewise.
4037 (spu_gdbarch_init): Add spu_pointer_to_address and
4038 spu_integer_to_address to gdbarch.
4040 2007-08-26 Pedro Alves <pedro_alves@portugalmail.pt>
4042 * arm-wince-tdep.c (ARM_WINCE_JB_PC): Change to 10.
4044 2007-08-23 Joel Brobecker <brobecker@adacore.com>
4046 * Makefile.in (copying.c): Use the top-level COPYING3 as the file
4047 that contains the GDB license.
4048 * copying.awk: Adjust to the GPLv3 wording.
4049 * copying.c: Regenerate.
4051 2007-08-23 Joel Brobecker <brobecker@adacore.com>
4053 * copying.awk: Protoization, and i18n markup.
4055 2007-08-23 Joel Brobecker <brobecker@adacore.com>
4057 * config/djgpp/djconfig.sh: Switch license to GPLv3.
4058 * copyright.sh: Likewise.
4059 * gdb-events.sh: Likewise.
4060 * gdb_gcore.sh: Likewise.
4061 * gdb_mbuild.sh: Likewise.
4062 * gdbarch.sh: Likewise.
4063 * observer.sh: Likewise.
4064 * features/feature_to_c.sh: Likewise.
4065 * regformats/regdat.sh: Likewise.
4067 2007-08-23 Joel Brobecker <brobecker@adacore.com>
4069 Switch the license of all .c files to GPLv3.
4070 Switch the license of all .h files to GPLv3.
4071 Switch the license of all .cc files to GPLv3.
4073 2007-08-23 Joel Brobecker <brobecker@adacore.com>
4075 * configure.ac: Switch license to GPLv3.
4077 2007-08-22 Daniel Jacobowitz <dan@codesourcery.com>
4079 * mips-tdep.c (mips_gdbarch_init): Use Tag_GNU_MIPS_ABI_FP to
4080 determine the file's FPU type.
4082 2007-08-22 Daniel Jacobowitz <dan@codesourcery.com>
4084 * mips-tdep.c (mips_n32n64_fp_arg_chunk_p): New.
4085 (mips_n32n64_push_dummy_call): Always increment float_argreg along
4086 with argreg. Use mips_n32n64_fp_arg_chunk_p.
4088 2007-08-22 Daniel Jacobowitz <dan@codesourcery.com>
4090 * solib-svr4.c (scan_dyntag): Only read target memory when necessary.
4092 (elf_locate_base): Look for DT_MIPS_RLD_MAP first. Expand comments.
4093 (elf_lookup_lib_symbol): Fix formatting.
4095 2007-08-21 Michael Snyder <msnyder@access-company.com>
4097 * dbxread.c (read_dbx_symtab): Guard null deref.
4100 * valops.c (find_overload_match): Guard against NULL.
4102 2007-08-21 Daniel Jacobowitz <dan@codesourcery.com>
4104 * MAINTAINERS (Patch Champions): Remove self.
4106 2007-08-21 Chris Smith <chris.smith@st.com>
4108 * cli/cli-script.c (read_command_lines): Call dont_repeat for each
4111 2007-08-18 Michael Snyder <msnyder@access-company.com>
4113 * stabsread.c (dbx_lookup_type): Memory leak.
4115 * event-loop.c (delete_async_signal_handler): Move pointer null
4116 test to before pointer dereference.
4118 * ui-out.c (append_header_to_list): Possible cut and paste error.
4120 * MAINTAINERS: white space tweak.
4122 2007-08-17 Michael Snyder <msnyder@access-company.com>
4124 * stack.c (print_frame): Memory leak.
4126 * completer.c (filename_completer): Avoid memory leak.
4127 Remove unnecessary nested block.
4129 * c-exp.y (parse_number): Memory leak.
4131 * completer.c (location_completer): Must free 'fn_list', except
4132 in the one case where it is returned (as 'list').
4134 * varobj.c (value_of_root): Memory leak.
4136 * gdbtypes.h (virtual_base_list): Remove export decl.
4137 * gdbtypes.c (virtual_base_list): Make static. Not called outside.
4138 (virtual_base_index): Memory leak.
4139 (virtual_base_index_skip_primaries): Ditto.
4141 2007-08-17 Maxim Grigoriev <maxim2405@gmail.com>
4143 * xtensa-tdep.c (ARG_NOF, ARG_1ST, PS_WOE, PS_EXC, C0_MAXOPDS)
4144 (C0_NREGS, C0_CLESV, C0_SP, C0_FP, C0_RA, C0_ARGS, C0_NARGS)
4145 (C0_CONST, C0_INEXP, C0_NOSTK): New macros.
4146 (xtensa_read_register): New function.
4147 (xtensa_windowed_frame_cache, xtensa_call0_frame_cache, xtensa_c0reg)
4148 (xtensa_insn_kind): New types.
4149 (xtensa_frame_cache, xtensa_alloc_frame_cache, xtensa_frame_cache)
4150 (xtensa_frame_prev_register, xtensa_return_value, xtensa_skip_prologue)
4151 (xtensa_verify_config, xtensa_pseudo_register_read)
4152 (xtensa_pseudo_register_write, xtensa_extract_return_value)
4153 (xtensa_store_return_value)
4154 (xtensa_push_dummy_call): Extended to support Xtensa Call0 ABI.
4155 (windowing_enabled, extract_call_winsize, xtensa_unwind_dummy_id)
4156 (xtensa_frame_this_id, xtensa_frame_prev_register)
4157 (xtensa_register_type, xtensa_reg_to_regnum): Cosmetic changes.
4158 (call0_frame_cache, call0_frame_get_reg_at_entry)
4159 (call0_classify_opcode, call0_track_op)
4160 (call0_analyze_prologue, call0_frame_cache): New functions.
4162 2007-08-17 Vladimir Prus <vladimir@codesourcery.com>
4164 * breakpoint.c (bpstat_free): New.
4165 (bpstat_clear): Use bpstat_free.
4166 (delete_breakpoint): Document why we cannot
4167 remove bpstats from stop_bpstat.
4168 * breakpoint.h (bpstat_free): Declare.
4170 2007-08-16 Michael Snyder <msnyder@access-company.com>
4172 * event-loop.c (gdb_wait_for_event): Move statement into "if" block.
4174 2007-08-15 Paul Hilfinger <hilfinger@adacore.com>
4175 Joel Brobecker <brobecker@adacore.com>
4177 * ada-lang.c (resolve_subexp): Correct arity of binary operators.
4179 2007-08-15 Paul Hilfinger <hilfinger@adacore.com>
4180 Joel Brobecker <brobecker@adacore.com>
4182 * ada-lang.c (possible_user_operator_p): Alternative fix to last
4183 checkin guarding against NULL.
4185 2007-08-14 Michael Snyder <msnyder@access-company.com>
4187 * tui-command.c, tui-data.c, tui-disasm.c, tui-file.c, tui-io.c,
4188 tui-layout.c, tui-regs.c, tui-source.c, tui-win.c, tui-windata.c,
4189 tui-wingeneral.c, tui-winsource.c: Coding standard, && and ||
4190 go at beginning of new line.
4192 * tui-data.c, tui-data.h, tui-disasm.c, tui-disasm.h, tui-hooks.c,
4193 tui-io.c, tui-layout.c, tui-layout.h, tui-out.c, tui-regs.c,
4194 tui-source.c, tui-source.h, tui-stack.c, tui-win.c, tui-win.h,
4195 tui-windata.c, tui-windata.h, tui-wingeneral.c, tui-winsource.c,
4196 tui-winsource.h, tui.c, tui.h: Function declarations and
4197 definitions, wrap long lines.
4199 * tui-command.c, tui-data.c, tui-disasm.c, tui-layout.c,
4200 tui-regs.c, tui-win.c, tui-windata.c, tui-winsource.c, tui.c:
4201 Reformat block comments to GNU standard.
4203 * tui-command.c, tui-data.c, tui-data.h, tui-disasm.c, tui-file.c,
4204 tui-hooks.c, tui-interp.c, tui-io.c, tui-layout.c, tui-out.c,
4205 tui-regs.c, tui-regs.h, tui-source.c, tui-stack.c, tui-win.c,
4206 tui-windata.c, tui-wingeneral.c, tui-winsource.c, tui-winsource.h,
4207 tui.c, tui.h: Comment reformatting to coding standard (capitals,
4208 spaces after periods, etc).
4210 * tui-data.c, tui-data.h, tui-disasm.c, tui-hooks.c, tui-layout.c,
4211 tui-regs.c, tui-source.c, tui-stack.c, tui-win.c, tui-windata.c,
4212 tui-wingeneral.c, tui-wingeneral.h, tui-winsource.c, tui.c,
4213 tui-winsource.h: Whitespace changes, fix pointer declarations
4216 2007-08-14 Joel Brobecker <brobecker@adacore.com>
4217 Michael Snyder <msnyder@access-company.com>
4219 * ada-lang.c (field_alignment): Guard against NULL.
4221 2007-08-14 Joel Brobecker <brobecker@adacore.com>
4223 * MAINTAINERS (Global Maintainers): Add self.
4225 2007-08-14 Michael Snyder <msnyder@access-company.com>
4227 * mi/mi-interp.c (mi_cmd_interpreter_exec): Dead code, dead variable.
4229 * ada-lang.c (possible_user_operator_p): Guard against NULL.
4231 * varobj.c (cplus_describe_child): Guard against null.
4232 Use "NULL" instead of "0" to initialize pointers.
4234 2007-08-14 Daniel Jacobowitz <dan@codesourcery.com>
4236 * arm-tdep.c (arm_gdbarch_init): Allow unknown ABI and FPU settings
4237 to match any gdbarch with matching OSABI. Set default ABI and FPU
4238 after running the OSABI handler.
4240 2007-08-14 Daniel Jacobowitz <dan@codesourcery.com>
4242 * config/i386/linux.mh (NATDEPFILES): Move corelow.o from here...
4243 * config/i386/linux.mt (TDEPFILES): ...to here.
4245 2007-08-14 Vladimir Prus <vladimir@codesourcery.com>
4247 * breakpoint.c (disable_breakpoints_in_shlibs): Remove
4248 the 'silent' parameter and code to implement that.
4249 * breakpoint.h (disable_breakpoints_in_shlibs): Adjust
4251 * win32-nat.c: Adjust.
4254 2007-08-14 Vladimir Prus <vladimir@codesourcery.com>
4256 * breakpoint.c (update_breakpoints_after_exec): Don't
4257 set address to zero.
4259 2007-08-13 Michael Snyder <msnyder@access-company.com>
4261 * valops.c: Whitespace clean-up.
4263 * tui/tui-winsource.c (tui_alloc_source_buffer): Clean up allocation.
4265 * event-top.c (command_line_handler): Memory leak.
4267 * mi/mi-cmd-var.c (mi_cmd_var_set_format): Memory leak.
4268 No need to make copy.
4270 * source.c (find_source_lines): Require symtab 's'.
4272 2007-08-11 Michael Snyder <msnyder@access-company.com>
4274 * completer.c: Spelling fix in comments.
4276 2007-08-10 Michael Snyder <msnyder@access-company.com>
4278 * gdbtypes.c: Coding standard cleanup.
4279 * gdbtypes.c: Comment/whitespace cleanup.
4281 * stabsread.c (read_huge_number): Attempt to compute value before
4282 values that it depends on.
4284 * linespec.c (decode_dollar): Dead code, ptr can't be non-null.
4285 (decode_objc): Use "NULL" instead of 0.
4286 (find_method): Ditto.
4287 (decode_all_digits): Ditto.
4288 (decode_dollar): Ditto.
4290 * mi/mi-main.c (mi_cmd_data_evaluate_expression): Resource leak.
4292 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Memory leak.
4294 * solib-svr4.c (enable_break): Don't free tmp_pathname until
4297 * completer.c: Comment/whitespace cleanup.
4299 2007-08-10 Joel Brobecker <brobecker@adacore.com>
4301 * Makefile.in (i386nbsd-nat.o): Add missing dependency.
4303 2007-08-10 Maxim Grigoriev <maxim2405@gmail.com>
4305 * remote-fileio.c (remote_fileio_resize_fd_map): Initialize newly
4306 allocated file descriptors.
4308 2007-08-10 Joel Brobecker <brobecker@adacore.com>
4310 * Makefile.in: Minor cleanup throughout; add some missing variables,
4311 add some missing rules, remove some rules that are no longer needed,
4312 and fix the dependencies in several rules.
4314 2007-08-10 Ludovic Courtès <ludo@gnu.org>
4316 * Makefile.in (SFILES): Add scm-{exp,lang,valprint}.c.
4317 (scm_lang_h, scm_tags_h): New.
4318 (COMMON_OBS): Add scm-{exp,lang,valprint}.o.
4319 (scm-exp.o, scm-lang.o, scm-valprint.o): New targets.
4320 * defs.h (enum language): Add `language_scm'.
4322 * MAINTAINERS: Add Emacs local variables to use UTF-8 upon
4325 2007-08-09 Ludovic Courtès <ludo@gnu.org>
4327 * MAINTAINERS (Write After Approval): Add myself.
4329 2007-08-09 Michael Snyder <msnyder@access-company.com>
4331 * solib.c (solib_open): Memory leak -- openp returns xmalloc buffer.
4333 2007-08-09 Joel Brobecker <brobecker@adacore.com>
4335 * solib-som.c (som_relocate_section_addresses): Stop saving
4336 the $CODE$ section in the so_list structure.
4338 2007-08-08 Maxim Grigoriev <maxim2405@gmail.com>
4340 * xtensa-tdep.h (XTENSA_MAX_COPROCESSOR): New.
4341 (xtensa_register_group_t): Add entries for coprocessors.
4342 * xtensa-tdep.c (xtensa_init_reggroups): New register groups.
4343 (xtensa_add_reggroups): Likewise.
4344 (xtensa_register_reggroup_p): Likewise.
4345 (xtensa_coprocessor_register_group): New function.
4348 2007-08-08 Jan Kratochvil <jan.kratochvil@redhat.com>
4350 * serial.c (serial_open): Fix the OPEN parameter macro expansion.
4352 2007-08-08 Michael Snyder <msnyder@access-company.com>
4354 * target.c (target_read_string): Guard against null.
4356 * varobj.c (value_of_root): Move alloc after return to avoid leak.
4358 * tui/tui-layout.c (tui_set_layout): Dead code, dead variable.
4359 (tui_set_layout_for_display_command): Mem leak.
4361 * top.c (command_line_input): Memory leak.
4363 * solib-svr4.c (open_symbol_file_object): Memory leak.
4364 (svr4_current_sos): Ditto.
4365 (enable_break): Ditto.
4367 * cp-valprint.c (cp_print_hpacc_virtual_table_entries): Memory leak.
4369 * dwarf2read.c (add_partial_symbol): Memory leak.
4371 2007-08-06 Michael Snyder <msnyder@access-company.com>
4373 * ada-lang.c (desc_bounds): Comparison of function address to NULL.
4375 2007-08-05 Jim Blandy <jimb@codesourcery.com>
4377 * macroexp.c (init_buffer): Remove testing code that overrides the
4378 caller's length guess.
4379 (gather_arguments): Use a larger initial size, now that the vector
4380 growth code has been exercised.
4382 2007-08-05 Pedro Alves <pedro_alves@portugalmail.pt>
4384 * solib-target.c (solib_target_relocate_section_addresses): Add
4385 orig_delta to addr_high.
4387 2007-08-04 Michael Snyder <msnyder@access-company.com>
4389 * remote-fileio.c (remote_fileio_func_write): Memory leak.
4391 * breakpoint.c (print_one_breakpoint): Off by one error.
4393 * tracepoint.c (add_register): Off by one error.
4394 (stringify_collection_list): Free malloc buffer.
4396 2007-08-03 Michael Snyder <msnyder@access-company.com>
4398 * mi-cmd-var.c (mi_cmd_var_delete): Remove unused variable,
4399 stop memory leak, straighten out cleanups.
4401 * jv-lang.c (java_link_class_type): Guard against NULL.
4403 2007-08-02 Michael Snyder <msnyder@access-company.com>
4405 * gdbtypes.c (create_set_type): Test should only be done within
4406 the preceeding if block. Otherwise, variable is uninitialized.
4408 * gdbtypes.c (check_typedef): Guard NULL.
4410 2007-08-01 Michael Snyder <msnyder@access-company.com>
4412 * cli/cli-decode.c (lookup_cmd): Check for null earlier, to
4413 avoid dereference in lookup_cmd_1.
4415 * tui/tui-data.c (tui_alloc_content): Move assign out of if,
4416 clean up long lines.
4417 (tui_alloc_generic_win_info): Tidy by using XMALLOC macro.
4418 (tui_alloc_win_info): Ditto.
4419 (tui_add_content_elements): Ditto.
4420 * tui/tui-file.c (tui_file_magic): Ditto.
4422 2007-07-31 Michael Snyder <msnyder@access-company.com>
4424 * breakpoint.c (breakpoint_init_inferior): Add 'else' to 'if'.
4425 True and false paths are mutually exclusive.
4427 * event-top.c (command_line_handler): Add pedantic return.
4429 * f-valprint.c (info_common_command): Bail out to prevent null
4430 pointer deref. Break up a long line.
4432 * exec.c (xfer_memory): Remove redundant condition from 'if'.
4434 * symfile.c (reread_separate_symbols): Free xmalloced memory.
4436 * printcmd.c (build_address_symbolic): Remove dead code and dead
4439 2007-07-31 Daniel Jacobowitz <dan@codesourcery.com>
4441 * linespec.c (minsym_found): Advance to the next line if possible.
4443 2007-07-31 Pedro Alves <pedro_alves@portugalmail.pt>
4445 * arm-wince-tdep.c (arm_wince_init_abi): Remove svr4 related call.
4446 * config/arm/wince.mt (TDEPFILES): Remove solib-legacy.o and
4447 solib-svr4.o, and add solib-target.o
4449 2007-07-27 Michael Snyder <msnyder@access-company.com>
4451 * tui/tui-data.c (tui_alloc_generic_win_info): Wrong arg for sizeof.
4453 2007-07-26 Maciej W. Rozycki <macro@linux-mips.org>
4455 * MAINTAINERS (Write After Approval): Add myself.
4457 2007-07-26 Maciej W. Rozycki <macro@mips.com>
4459 * Makefile.in (MAKEHTMLFLAGS): Also search the current directory
4462 2007-07-25 Maciej W. Rozycki <macro@mips.com>
4464 * Makefile.in (MAKEHTMLFLAGS): Remove "-glossary".
4466 2007-07-24 Michael Snyder <msnyder@access-company.com>
4468 * solib-svr4.c (svr4_fetch_objfile_link_map): Null pointer check of
4469 'buffer' must cover both branches that call strcmp (Coverity).
4471 * stack.c (print_frame_args): Check return value of lookup_symbol.
4473 * ax-gdb.c (find_field): Guard against null ptr.
4475 2007-07-24 Ulrich Weigand <uweigand@de.ibm.com>
4477 * regformats/reg-spu.dat: Fix order of npc, id registers.
4479 2007-07-24 Ulrich Weigand <uweigand@de.ibm.com>
4481 * target.c (memory_xfer_partial): Accesses to unmapped overlay
4482 sections should always go to the executable file.
4484 2004-07-20 Chris Dearman <chris@mips.com>
4486 * mips-tdep.c (heuristic_proc_start): Add more MIPS16 function
4487 prologue instructions.
4489 2007-07-20 Maciej W. Rozycki <macro@mips.com>
4491 * mips-tdep.c (mips_next_pc): Use is_mips16_addr() instead of
4494 2007-07-20 Chris Dearman <chris@mips.com>
4495 Maciej W. Rozycki <macro@mips.com>
4497 * mips-tdep.c (fetch_mips_16): Fix typos and reformat the
4500 2007-07-17 Pedro Alves <pedro_alves@portugalmail.pt>
4501 Daniel Jacobowitz <dan@codesourcery.com>
4503 * config/i386/cygwin.mt (TDEPFILES): Add solib-target.o.
4504 * coff-pe-read.c (read_pe_exported_syms): Delete verbose
4506 * NEWS: Mention gdbserver DLL support.
4508 2007-07-17 Daniel Jacobowitz <dan@codesourcery.com>
4510 * dwarf2read.c (dwarf_decode_lines): Detect address size mismatches.
4512 2007-07-16 H.J. Lu <hongjiu.lu@intel.com>
4514 * i386-linux-nat.c (fetch_regs): Work around gcc 3.4 alias
4517 2007-07-13 Kevin Buettner <kevinb@redhat.com>
4519 * mep-tdep.c (mep_analyze_prologue): Update comment for BRA
4522 2007-07-12 Kevin Buettner <kevinb@redhat.com>
4524 * mep-tdep.c (IS_BRA, BRA_DISP): New macros.
4525 (mep_analyze_prologue): Add case for BRA instruction.
4527 2007-07-12 Ulrich Weigand <uweigand@de.ibm.com>
4529 * solib-svr4.c (LM_ADDR_CHECK): Relax prelink recognition heuristic.
4531 2007-07-10 Nick Roberts <nickrob@snap.net.nz>
4533 * breakpoint.c: Include "top.h".
4534 (breakpoint_1): Don't set convenience variable $_ if server prefix
4536 (_initialize_breakpoint): Describe this behaviour in command help.
4538 2007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
4540 * solib-target.c (library_list_start_segment): Cast address to
4543 2007-07-06 Mark Kettenis <kettenis@gnu.org>
4545 * bsd-uthread.c (bsd_uthread_wait): Don't try to fetch thread IDs
4546 for terminated processes.
4548 2007-07-05 Michael Snyder <msnyder@access-company.com>
4550 * event-top.c (cli_command_loop): Prompt string can (and should)
4551 be freed after call to readline (Coverity). Also move local var
4552 declarations into block where they are used.
4554 * tui/tui-interp.c (tui_command_loop): Prompt string can (and
4555 should) be freed after call to readline (Coverity). Also move
4556 local var declarations into block where they are used.
4558 2007-07-03 Andreas Schwab <schwab@suse.de>
4560 * linux-nat.c (linux_nat_info_proc_cmd): Fix parsing of columns in
4563 2007-07-03 Paul Gilliam <pgilliam@us.ibm.com>
4564 Thiago Bauermann <bauerman@br.ibm.com>
4565 Joseph S. Myers <joseph@codesourcery.com>
4566 Daniel Jacobowitz <dan@codesourcery.com>
4568 * remote.c (remote_check_symbols): Use
4569 gdbarch_convert_from_func_ptr_addr.
4570 * infcall.c (find_function_addr): Handle function descriptors
4571 without debugging information.
4572 * ppc-linux-tdep.c (ppc_linux_convert_from_func_ptr_addr): Renamed
4573 from ppc64_linux_convert_from_func_ptr_addr. Handle -msecure-plt.
4574 (ppc_linux_init_abi): Always set convert_from_func_ptr_addr.
4575 * solib-svr4.c (solib_break_names): Remove "._dl_debug_state".
4576 (bfd_lookup_symbol): Do not take a SECT_FLAGS argument. Always
4577 allow SEC_CODE and SEC_DATA.
4578 (enable_break): Update calls. Pass current_target to solib_add.
4579 Use gdbarch_convert_from_func_ptr_addr.
4581 2007-07-03 Ilko Iliev <iliev@ronetix.at>
4582 Daniel Jacobowitz <dan@codesourcery.com>
4584 * symfile.c (print_transfer_performance): Avoid integer overflow.
4587 2007-07-03 Markus Deuling <deuling@de.ibm.com>
4589 * cp-namespace.c (lookup_symbol_file): Add block to
4590 lookup_symbol_global call.
4591 * Makefile.in (solist_h): Add dependency on symtab header.
4592 (symtab.o): Add dependency on solist header.
4593 * solib.c (solib_global_lookup): New function.
4594 * solib-svr4.c (scan_dyntag): Likewise.
4595 (elf_locate_base): Call helper routine scan_dyntag.
4596 (elf_lookup_lib_symbol): New function.
4597 (_initialize_svr4_solib): Add elf_lookup_lib_symbol to svr4_so_ops.
4598 * solist.h (symtab.h): New include.
4599 (struct target_so_ops): New member lookup_lib_global_symbol.
4600 (solib_global_lookup): New prototype.
4601 * symtab.c: New include solist.h.
4602 (lookup_objfile_from_block): New function.
4603 (lookup_global_symbol_from_objfile): New function.
4604 (basic_lookup_symbol_nonlocal): Add block to lookup_symbol_global call.
4605 (lookup_symbol_global): Call library-specific lookup procedure.
4606 * symtab.h (lookup_global_symbol_from_objfile): New prototype.
4608 * NEWS: Document framework.
4610 2007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
4612 * target-descriptions.c (tdesc_create_reg): Do not set reg->type
4615 * cli/cli-script.c (build_command_line): Update NULL check.
4617 2007-07-02 Michael Snyder <msnyder@access-company.com>
4619 * p-exp.y (yylex): Memory leak, 'uptokstart' must be freed (Coverity).
4621 2007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
4623 * Makefile.in (XMLFILES): Add library-list.dtd.
4624 (ALLDEPFILES): Add solib-target.o.
4625 (solib-target.o): New rule.
4626 * remote.c (PACKET_qXfer_libraries): New constant.
4627 (remote_protocol_features): Add qXfer:libraries:read.
4628 (remote_wait): Recognize library stop replies.
4629 (remote_async_wait): Likewise. Fix typo.
4630 (remote_xfer_partial): Handle TARGET_OBJECT_LIBRARIES.
4631 (init_remote_async_ops): Fix typo.
4632 (_initialize_remote): Register "set remote library-info-packet".
4633 * solib-som.c (som_current_sos): Set addr_low and addr_high.
4634 * solib-target.c: New file.
4635 * solib.c (solib_map_sections): Use addr_low and addr_high instead
4637 (info_sharedlibrary_command): Likewise.
4638 (solib_add_library, solib_remove_library): New.
4639 * solist.h (struct so_list): Replace textsection with addr_low and
4641 * target.h (enum target_object): Add TARGET_OBJECT_LIBRARIES.
4642 * NEWS: Describe new qXfer:libraries:read and shared library
4644 * features/library-list.dtd: New.
4646 2007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
4648 * infrun.c (inferior_ignoring_startup_exec_events): Delete.
4649 (start_remote): Use STOP_QUIETLY_REMOTE.
4650 (handle_inferior_event): Do not condition TARGET_WAITKIND_LOADED
4651 support on a SOLIB_ADD definition. Update breakpoints_inserted.
4652 Update to match shared library event breakpoint support. Only
4653 resume if appropriate. Handle STOP_QUIETLY_REMOTE.
4654 (normal_stop): Handle TARGET_WAITKIND_LOADED.
4655 * fork-child.c (startup_inferior): Do not set
4656 inferior_ignoring_startup_exec_events
4657 * inferior.h (inferior_ignoring_startup_exec_events): Delete
4659 (enum stop_kind): Improve documentation. Add STOP_QUIETLY_REMOTE.
4661 2007-07-02 Markus Deuling <deuling@de.ibm.com>
4663 * breakpoint.c (insert_bp_location): Remove dead code
4664 (DISABLE_UNSETTABLE_BREAK).
4665 (disable_breakpoints_in_shlibs)
4666 (disable_breakpoints_in_unloaded_shlib): Likewise (comment).
4668 2007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
4670 * breakpoint.c (reattach_breakpoints): Do not use remove_breakpoint.
4671 Call insert_bp_location.
4673 2007-07-01 H.J. Lu <hongjiu.lu@intel.com>
4675 * core-regset.c (fetch_core_registers): Work around gcc 3.4
4678 2007-07-01 Daniel Jacobowitz <dan@codesourcery.com>
4680 * minsyms.c (lookup_minimal_symbol_by_pc_section): Search fewer
4683 2007-07-01 Daniel Jacobowitz <dan@codesourcery.com>
4685 * top.c (gdb_readline_wrapper_line): Call rl_callback_handler_remove.
4686 (struct gdb_readline_wrapper_cleanup): Remove prompt_orig.
4687 (gdb_readline_wrapper_cleanup): Do not reset the prompt.
4688 (gdb_readline_wrapper): Do not save the prompt. Pass our prompt
4689 to display_gdb_prompt.
4691 2007-07-01 Daniel Jacobowitz <dan@codesourcery.com>
4694 * target.c (memory_xfer_partial): Do not continue past targets with
4697 2007-06-30 Andreas Schwab <schwab@suse.de>
4699 * m68k-tdep.c (m68k_ps_type): New.
4700 (m68k_init_types): New.
4701 (m68k_register_type): Use m68k_ps_type for PS register.
4702 (_initialize_m68k_tdep): Call m68k_init_types.
4704 * m68k-tdep.c (m68k_gdbarch_init): Don't infer coldfire flavour
4705 from the generic m68k arch.
4707 2007-06-28 Michael Snyder <msnyder@access-company.com>
4709 * m2-typeprint.c (m2_print_type): Move pointer ref after null test
4712 * linux-thread-db.c (thread_db_get_thread_local_address): Add
4713 gdb_assert before using return value of find_thread_pid (Coverity).
4715 * source.c (unset_substitute_path_command): Plug leak (Coverity).
4717 * cli/cli-script.c (build_command_line): Add null pointer guard
4720 2007-06-27 Daniel Jacobowitz <dan@codesourcery.com>
4722 * linux-thread-db.c (thread_db_attach): Delete.
4723 (thread_db_detach): Typo fix. Call target_mourn_inferior
4724 instead of fixing up proc_handle.
4725 (have_threads_callback, have_threads): New functions.
4726 (thread_db_wait): Remove dead proc_handle.pid check. Only
4727 translate PTIDs if we have registered threads. Check for new
4728 threads if we have none.
4729 (thread_db_create_inferior, thread_db_post_startup_inferior): Delete.
4730 (find_new_threads_callback): Only enable event reporting if TID == 0.
4731 (same_ptid_callback): New.
4732 (thread_db_get_thread_local_address): Check for new threads.
4733 (init_thread_db_ops): Don't set to_attach, to_create_inferior,
4734 or to_post_startup_inferior.
4736 2007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
4738 * infrun.c (adjust_pc_after_break): Do not assume software single-step
4739 is always active if SOFTWARE_SINGLE_STEP_P is true.
4740 (resume): Use gdbarch_software_single_step[_p] instead of
4741 SOFTWARE_SINGLE_STEP[_P].
4742 (handle_inferior_event): Do not check for SOFTWARE_SINGLE_STEP_P.
4744 * gdbarch.sh (software_single_step): Remove target macro.
4745 * gdbarch.h, gdbarch.c: Regenerate.
4747 2007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
4749 * gdbarch.sh (gdbarch_swap_ftype, deprecated_register_gdbarch_swap,
4750 DEPRECATED_REGISTER_GDBARCH_SWAP): Remove.
4751 (struct gdbarch_swap, struct gdbarch_swap_registration,
4752 struct gdbarch_swap_registry, gdbarch_swap_registry,
4753 current_gdbarch_swap_init_hack, current_gdbarch_swap_out_hack,
4754 current_gdbarch_swap_in_hack): Remove.
4755 (find_arch_by_info): Do not call current_gdbarch_swap_init_hack.
4756 (gdbarch_find_by_info): Do not call current_gdbarch_swap_in_hack
4757 and current_gdbarch_swap_out_hack, update current_gdbarch directly.
4758 (deprecated_current_gdbarch_select_hack): Likewise.
4759 * gdbarch.h, gdbarch.c: Regenerate.
4761 2007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
4763 * infrun.c (clear_proceed_status): Clean up stop_registers.
4764 (normal_stop): Allocate regcache for stop_registers.
4765 (struct inferior_status): Remove stop_registers member.
4766 (save_inferior_status): Do not save stop_registers.
4767 (restore_inferior_status): Do not restore stop_registers.
4768 (discard_inferior_status): Do not discard stop_registers.
4769 (build_infrun): Remove.
4770 (_initialize_infrun): Do not swap stop_registers.
4772 2007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
4774 * remote.c (remote_address_masked): If remote_address_size is zero,
4775 default to target address size.
4776 (build_remote_gdbarch_data): Remove.
4777 (_initialize_remote): Do not swap remote_address_size.
4779 2007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
4781 * gdbtypes.h (builtin_type_true_char, builtin_type_void,
4782 builtin_type_char, builtin_type_short, builtin_type_int,
4783 builtin_type_long, builtin_type_signed_char,
4784 builtin_type_unsigned_char, builtin_type_unsigned_short,
4785 builtin_type_unsigned_int, builtin_type_unsigned_long,
4786 builtin_type_float, builtin_type_double, builtin_type_long_double,
4787 builtin_type_complex, builtin_type_double_complex, builtin_type_string,
4788 builtin_type_bool, builtin_type_long_long,
4789 builtin_type_unsigned_long_long, builtin_type_void_data_ptr,
4790 builtin_type_void_func_ptr, builtin_type_CORE_ADDR): Replace global
4791 variable declaration with compatibility macro.
4792 * gdbtypes.c (builtin_type_true_char, builtin_type_void,
4793 builtin_type_char, builtin_type_short, builtin_type_int,
4794 builtin_type_long, builtin_type_signed_char,
4795 builtin_type_unsigned_char, builtin_type_unsigned_short,
4796 builtin_type_unsigned_int, builtin_type_unsigned_long,
4797 builtin_type_float, builtin_type_double, builtin_type_long_double,
4798 builtin_type_complex, builtin_type_double_complex, builtin_type_string,
4799 builtin_type_bool, builtin_type_long_long,
4800 builtin_type_unsigned_long_long, builtin_type_void_data_ptr,
4801 builtin_type_void_func_ptr, builtin_type_CORE_ADDR): Remove.
4802 (build_gdbtypes): Remove.
4803 (_initialize_gdbtypes): Do not call build_gdbtypes, move installing
4804 opaque-type-resolution command here. Do not call
4805 deprecated_register_gdbarch_swap.
4807 2007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
4809 * gdbtypes.h (struct builtin_type): New members nodebug_text_symbol,
4810 nodebug_data_symbol, nodebug_unknown_symbol, and nodebug_tls_symbol.
4811 * gdbtypes.c (gdbtypes_post_init): Initialize nodebug_ default types.
4813 * parse.c (msym_text_symbol_type, msym_data_symbol_type): Remove.
4814 (msym_unknown_symbol_type, msym_tls_symbol_type): Remove.
4815 (write_exp_msymbol): Use builtin nodebug_ types instead of them.
4816 (build_parse): Remove.
4817 (_initialize_parse): Do not call build_parse. Do not register
4818 msym_ types for gdbarch-swapping.
4820 * dwarf2read.c (new_symbol): Use default nodebug_data_symbol type
4821 instead of creating private type.
4823 * xcoffread.c (func_symbol_type, var_symbol_type): Remove.
4824 (_initialize_xcoffread): Do not initialized them.
4825 (process_xcoff_symbol): Use builtin nodebug_ types instead of them.
4827 * mdebugread.c (nodebug_func_symbol_type): Remove.
4828 (nodebug_var_symbol_type): Remove.
4829 (_initialize_mdebugread): Do not initialize them.
4830 (parse_symbol): Use builtin nodebug_ type instead of them.
4831 (parse_procedure): Likewise.
4833 2007-06-21 Chris Dearman <chris@mips.com>
4835 * printcmd.c (do_one_display): If display/i, start with an initial
4836 line feed to avoid bad layout if there is a branch delay slot.
4838 2007-06-21 Nigel Stephens <nigel@mips.com>
4839 Maciej W. Rozycki <macro@mips.com>
4841 * disasm.c (gdb_print_insn): Return the number of branch delay
4842 slot instructions too.
4843 * disasm.h (gdb_print_insn): Update prototype.
4844 * printcmd.c (branch_delay_insns): New variable to record the
4845 number of delay slot instructions after disassembling a branch.
4846 (print_formatted): Record the number of branch delay slot
4848 (do_examine): When disassembling, if the last instruction
4849 disassembled has any branch delay slots, then bump the count so
4850 that they get disassembled too.
4851 * tui/tui-disasm.c (tui_disassemble): Update the call to
4853 * NEWS: Document the new behaviour.
4855 2007-06-21 Andreas Schwab <schwab@suse.de>
4857 * regcache.c (write_pc_pid): Restore missing else.
4859 2007-06-20 Ulrich Weigand <uweigand@de.ibm.com>
4861 * regcache.c (regcache_print): Use get_current_regcache ()
4862 instead of current_regcache.
4864 2007-06-20 H.J. Lu <hongjiu.lu@intel.com>
4867 * gcore.c (gcore_command): Use bfd_make_section_anyway_with_flags
4868 instead of bfd_make_section_anyway.
4869 (gcore_create_callback): Likewise. Also set SEC_NEVER_LOAD
4870 when clearing SEC_LOAD.
4872 2007-06-19 Joseph Myers <joseph@codesourcery.com>
4874 * arm-tdep.c (arm_push_dummy_call): Correct padding of partial
4875 registers for big-endian.
4877 2007-06-19 Markus Deuling <deuling@de.ibm.com>
4879 * gdbarch.sh (TARGET_PRINT_INSN): Replace by gdbarch_print_insn.
4880 * disasm.c (dump_insns, gdb_print_insn): Likewise.
4881 * gdbarch.c, gdbarch.h: Regenerate.
4883 2007-06-19 Markus Deuling <deuling@de.ibm.com>
4885 * gdbarch.sh (BELIEVE_PCC_PROMOTION): Replace by
4886 gdbarch_believe_pcc_promotion.
4887 * stabsread.c (define_symbol): Likewise.
4888 Remove unnecessary definition.
4889 * coffread.c (process_coff_symbol): Remove unnecessary code.
4890 * gdbarch.c, gdbarch.h: Regenerate.
4892 2007-06-19 Daniel Jacobowitz <dan@codesourcery.com>
4894 * configure.ac: Do not use ${objdir}.
4895 * configure: Regenerated.
4897 2007-06-18 Ulrich Weigand <uweigand@de.ibm.com>
4899 * gdbarch.sh (deprecated_register_size): Remove.
4900 * gdbarch.h, gdbarch.c: Regenerate.
4902 * arm-tdep.c (arm_push_dummy_call): Replace DEPRECATED_REGISTER_SIZE
4903 by INT_REGISTER_SIZE.
4904 (thumb_get_next_pc, arm_return_in_memory): Likewise.
4905 (arm_gdbarch_init): Do not call set_gdbarch_deprecated_register_size.
4906 * ia64-tdep.c (ia64_gdbarch_init): Do not call
4907 set_gdbarch_deprecated_register_size.
4909 2007-06-18 Markus Deuling <deuling@de.ibm.com>
4911 * gdbarch.sh (DEPRECATED_FP_REGNUM): Replace by
4912 gdbarch_deprecated_fp_regnum.
4913 * std-regs.c (value_of_builtin_frame_fp_reg): Likewise.
4914 * remote-mips.c (mips_wait, mips_fetch_registers): Likewise.
4915 * arch-utils.c (legacy_virtual_frame_pointer): Likewise.
4916 * arch-utils.h (gdbarch_virtual_frame_pointer_ftype): Likewise
4918 * gdbarch.c, gdbarch.h: Regenerate.
4920 2007-06-18 Markus Deuling <deuling@de.ibm.com>
4922 * gdbarch.sh (EXTRACT_RETURN_VALUE): Replace with
4923 gdbarch_extract_return_value.
4924 * value.c (generic_use_struct_convention): Likewise (comment).
4925 * ia64-tdep.c (ia64_use_struct_convention): Likewise (comment).
4926 * arch-utils.c (legacy_return_value): Likewise.
4927 * arch-utils.h (legacy_return_value): Likewise (comment).
4928 * gdbarch.sh (STORE_RETURN_VALUE): Replace by
4929 gdbarch_store_return_value.
4930 * stack.c (return_command): Likewise (comment).
4931 * arch-utils.h (legacy_return_value): Likewise (comment).
4932 * arch-utils.c (legacy_return_value): Likewise.
4933 * gdbarch.c, gdbarch.h: Regenerate.
4935 2007-06-18 Markus Deuling <deuling@de.ibm.com>
4937 * gdbarch.sh (DEPRECATED_USE_STRUCT_CONVENTION): Replace by
4938 gdbarch_deprecated_use_struct_convention.
4939 * arch-utils.c (legacy_return_value): Likewise.
4940 * gdbarch.c, gdbarch.h: Regenerate.
4942 2007-06-18 Markus Deuling <deuling@de.ibm.com>
4944 * gdbarch.sh (DEPRECATED_FUNCTION_START_OFFSET): Replace by
4945 gdbarch_deprecated_function_start_offset.
4946 * symtab.c (find_function_start_sal)skip_prologue_using_sal): Likewise.
4947 * linespec.c (minsym_found): Likewise.
4948 * infrun.c (handle_inferior_event): Likewise.
4949 * infcall.c (find_function_addr): Likewise.
4950 * cli/cli-cmds.c (disassemble_command): Likewise.
4951 * gdbarch.c, gdbarch.h: Regenerate.
4953 2007-06-18 Markus Deuling <deuling@de.ibm.com>
4955 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Replace by
4956 gdbarch_deprecated_reg_struct_has_addr.
4957 * infcall.c (call_function_by_hand): Likewise.
4958 (DEPRECATED_REG_STRUCT_HAS_ADDR_P): Replace by
4959 * gdbarch_deprecated_reg_struct_has_addr_p.
4960 * infcall.c (call_function_by_hand): Likewise.
4961 * gdbarch.c, gdbarch.h: Regenerate.
4963 2007-06-18 Markus Deuling <deuling@de.ibm.com>
4965 * gdbarch.sh (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
4966 * sh-tdep.c (sh_extract_struct_value_address): Remove.
4967 (sh_gdbarch_init): Remove
4968 set_gdbarch_deprecated_extract_struct_value_address.
4969 * sh64-tdep.c (sh64_extract_struct_value_address): Remove.
4970 (sh64_gdbarch_init): Remove
4971 set_gdbarch_deprecated_extract_struct_value_address.
4972 * ia64-tdep.c (ia64_extract_struct_value_address): Remove.
4973 (ia64_gdbarch_init): Remove
4974 set_gdbarch_deprecated_extract_struct_value_address.
4975 * frv-tdep.c (frv_extract_struct_value_address): Remove.
4976 (frv_gdbarch_init): Remove
4977 set_gdbarch_deprecated_extract_struct_value_address.
4978 * gdbarch.c, gdbarch.h: Regenerate.
4980 2007-06-18 Markus Deuling <deuling@de.ibm.com>
4982 * gdbarch.sh (SP_REGNUM): Replace by gdbarch_sp_regnum.
4983 * v850-tdep.c (v850_unwind_sp): Likewise.
4984 * std-regs.c (value_of_builtin_frame_sp_reg): Likewise.
4985 * stack.c (frame_info): Likewise.
4986 * stabsread.c (define_symbol): Likewise.
4987 * sh-tdep.c (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu)
4988 (sh_dwarf2_frame_init_reg, sh_frame_cache, sh_frame_prev_register)
4989 (sh_unwind_sp): Likewise.
4990 * sh64-tdep.c (sh64_push_dummy_call, sh64_frame_cache)
4991 (sh64_frame_prev_register, sh64_unwind_sp): Likewise.
4992 * rs6000-tdep.c (rs6000_push_dummy_call, rs6000_unwind_dummy_id)
4993 (rs6000_frame_cache): Likewise.
4994 * rs6000-nat.c (store_register): Likewise.
4995 * remote-mips.c (mips_wait): Likewise.
4996 * procfs.c (procfs_fetch_registers, procfs_store_registers): Likewise.
4997 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call)
4998 (ppc64_sysv_abi_push_dummy_call): Likewise.
4999 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_cache): Likewise.
5000 * ppcobsd-nat.c (ppcobsd_supply_pcb): Likewise.
5001 * ppcnbsd-tdep.c (ppcnbsd_sigtramp_cache_init): Likewise.
5002 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache): Likewise.
5003 * m32r-rom.c (m32r_supply_register): Likewise.
5004 * frame.c (frame_sp_unwind): Likewise.
5005 * mips-tdep.c (mips_insn16_frame_cache)
5006 (mips_insn32_frame_cache): Likewise (comment).
5007 * m68klinux-nat.c (supply_gregset): Likewise.
5008 * m68k-tdep.c (m68k_get_longjmp_target): Likewise.
5009 * ia64-tdep.c (ia64_frame_prev_register): Likewise.
5010 * i386-tdep.c (i386_get_longjmp_target): Likewise.
5011 * dwarf2-frame.c (dwarf2_frame_default_init_reg): Likewise.
5012 * cris-tdep.c (cris_regnums, cris_sigcontext_addr)
5013 (cris_sigtramp_frame_unwind_cache, cris_push_dummy_call)
5014 (cris_scan_prologue, crisv32_scan_prologue, cris_unwind_sp)
5015 (cris_register_type, crisv32_register_type)
5016 (cris_dwarf2_frame_init_reg): Likewise.
5017 * arch-utils.c (legacy_virtual_frame_pointer): Likewise.
5018 * amd64-tdep.c (amd64_frame_prev_register): Likewise.
5019 * amd64-linux-tdep.c (amd64_linux_sigcontext_addr): Likewise.
5020 * libunwind-frame.c (libunwind_frame_cache): Likewise.
5022 * gdbarch.sh (PC_REGNUM): Replace by gdbarch_pc_regnum.
5023 * regcache.c (read_pc_pid, generic_target_write_pc): Likewise.
5024 * xtensa-tdep.c (xtensa_register_type, xtensa_supply_gregset)
5025 (xtensa_unwind_pc, xtensa_frame_cache, xtensa_frame_prev_register)
5026 (xtensa_extract_return_value, xtensa_store_return_value): Likewise.
5027 * v850-tdep.c (v850_unwind_pc): Likewise.
5028 * stack.c (frame_info): Likewise.
5029 * sh-tdep.c (sh_generic_show_regs, sh3_show_regs, sh2e_show_regs)
5030 (sh2a_show_regs, sh2a_nofpu_show_regs, sh3e_show_regs)
5031 (sh3_dsp_show_regs, sh4_show_regs, sh4_nofpu_show_regs)
5032 (sh_dwarf2_frame_init_reg, sh_frame_prev_register, sh_unwind_pc)
5033 (sh_dsp_show_regs): Likewise.
5034 * shnbsd-tdep.c (shnbsd_supply_gregset)
5035 (shnbsd_collect_gregset): Likewise.
5036 * shnbsd-nat.c (GETREGS_SUPPLIES): Likewise.
5037 * sh64-tdep.c (sh64_compact_reg_base_num, sh64_show_media_regs)
5038 (sh64_frame_prev_register, sh64_unwind_pc): Likewise.
5039 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset)
5040 (6000_register_reggroup_p, rs6000_unwind_pc)
5041 (rs6000_frame_cache): Likewise.
5042 * rs6000-nat.c (regmap, rs6000_fetch_inferior_registers)
5043 (rs6000_store_inferior_registers): Likewise.
5044 * remote-mips.c (mips_wait, mips_load): Likewise.
5045 * procfs.c (procfs_fetch_registers, procfs_store_registers): Likewise.
5046 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_cache): Likewise.
5047 * ppcobsd-nat.c (ppcobsd_supply_pcb): Likewise.
5048 * ppcnbsd-tdep.c (ppcnbsd_sigtramp_cache_init): Likewise.
5049 * ppcnbsd-nat.c (getregs_supplies, ppcnbsd_supply_pcb): Likewise.
5050 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache): Likewise.
5051 * ppc-linux-nat.c (ppc_register_u_addr, fetch_ppc_registers)
5052 (store_ppc_registers, fill_gregset): Likewise.
5053 * mips-tdep.c (mips_stub_frame_cache, mips_gdbarch_init): Likewise.
5054 * mipsnbsd-tdep.c (mipsnbsd_supply_reg, mipsnbsd_fill_reg): Likewise.
5055 * mipsnbsd-nat.c (getregs_supplies): Likewise.
5056 * m68k-tdep.c (m68k_register_type, m68k_unwind_pc): Likewise.
5057 * m68klinux-nat.c (supply_gregset): Likewise.
5058 * irix5-nat.c (fill_gregset): Likewise.
5059 * i386-tdep.c (i386_unwind_pc): Likewise.
5060 * i386-linux-nat.c (i386_linux_resume): Likewise.
5061 * frame.c (get_prev_frame_1): Likewise.
5062 * dwarf2-frame.c (dwarf2_frame_default_init_reg): Likewise.
5063 * dbug-rom.c (dbug_supply_register): Likewise.
5064 * cris-tdep.c (cris_sigtramp_frame_unwind_cache, cris_scan_prologue)
5065 (crisv32_scan_prologue, cris_unwind_pc, cris_register_size)
5066 (cris_register_type, crisv32_register_type, crisv32_register_name)
5067 (cris_dwarf2_frame_init_reg, find_step_target)
5068 (cris_software_single_step, cris_supply_gregset)
5069 (cris_regnums): Likewise.
5070 * alpha-linux-nat.c (alpha_linux_register_u_offset): Likewise.
5071 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
5072 (fill_sprs64, fill_sprs32, store_regs_user_thread): Likewise.
5073 * std-regs.c (value_of_builtin_frame_pc_reg): Likewise.
5074 * mips-linux-tdep.c (mips_linux_write_pc): Likewise.
5076 * gdbarch.sh (PS_REGNUM): Replace by gdbarch_ps_regnum.
5077 * dbug-rom.c (dbug_supply_register): Likewise.
5078 * xtensa-tdep.c (xtensa_supply_gregset, xtensa_frame_cache)
5079 (xtensa_frame_prev_register, xtensa_push_dummy_call): Likewise.
5080 * win32-nat.c (win32_resume): Likewise.
5081 * std-regs.c (value_of_builtin_frame_ps_reg): Likewise.
5082 * m68k-tdep.c (m68k_register_type): Likewise.
5083 * m68klinux-nat.c (supply_gregset): Likewise.
5085 * gdbarch.sh (FP0_REGNUM): Replace by gdbarch_fp0_regnum.
5086 * sh-tdep.c (sh_extract_return_value_fpu, sh_store_return_value_fpu)
5087 (sh2e_show_regs, sh2a_show_regs, sh3e_show_regs, sh4_show_regs)
5088 (sh_sh2a_register_type, sh_sh3e_register_type, sh_sh4_register_type)
5089 (fv_reg_base_num, dr_reg_base_num): Likewise.
5090 * sh64-tdep.c (sh64_fv_reg_base_num, sh64_dr_reg_base_num)
5091 (sh64_fpp_reg_base_num, sh64_compact_reg_base_num, sh64_push_dummy_call)
5092 (sh64_extract_return_value, sh64_store_return_value)
5093 (sh64_show_media_regs, sh64_show_compact_regs, sh64_register_type)
5094 (sh64_do_fp_register, sh64_media_print_registers_info): Likewise.
5095 * procfs.c (procfs_fetch_registers, procfs_store_registers)
5096 (invalidate_cache): Likewise.
5097 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache): Likewise.
5098 * mipsnbsd-tdep.c (mipsnbsd_supply_fpreg)
5099 (mipsnbsd_fill_fpreg): Likewise.
5100 * mipsnbsd-nat.c (mipsnbsd_fetch_inferior_registers)
5101 (mipsnbsd_store_inferior_registers): Likewise.
5102 * mips-linux-tdep.c (mips_supply_fpregset, mips_fill_fpregset)
5103 (mips64_supply_fpregset, mips64_fill_fpregset): Likewise.
5104 * mips-linux-nat.c (mips64_linux_register_addr): Likewise.
5105 * m68k-tdep.c (m68k_register_type, m68k_convert_register_p): Likewise.
5106 * m68klinux-nat.c (getfpregs_supplies, supply_fpregset)
5107 (fill_fpregset): Likewise.
5108 * irix5-nat.c (supply_fpregset, fill_fpregset): Likewise.
5109 * i386-tdep.h (struct_return): Likewise (comment).
5110 * i386-nto-tdep.c (i386nto_register_area): Likewise.
5111 * go32-nat.c (fetch_register, go32_fetch_registers, store_register)
5112 (go32_store_registers): Likewise.
5113 * alpha-tdep.c (alpha_next_pc): Likewise.
5114 * alpha-linux-nat.c (alpha_linux_register_u_offset): Likewise.
5115 * alphabsd-nat.c (alphabsd_fetch_inferior_registers)
5116 (alphabsd_store_inferior_registers): Likewise.
5117 * core-regset.c (fetch_core_registers): Likewise.
5118 * i386v4-nat.c (supply_fpregset, fill_fpregset): Likewise.
5120 * gdbarch.c, gdbarch.h: Regenerate.
5122 2007-06-18 Daniel Jacobowitz <dan@codesourcery.com>
5124 * coffread.c (coff_sym_fns): Add default_symfile_segments.
5125 * dbxread.c (start_psymtab): Check HAVE_ELF.
5126 (aout_sym_fns): Likewise.
5127 * elfread.c (elf_symfile_segments): New.
5128 (elf_sym_fns): Add elf_symfile_segments.
5129 * mipsread.c (ecoff_sym_fns): Add default_symfile_segments.
5130 * remote.c (get_offsets): Use symfile_map_offsets_to_segments.
5131 Skip if there is no symfile_objfile. Handle TextSeg and DataSeg.
5132 * somread.c (som_sym_fns): Use default_symfile_segments.
5133 * symfile.c (find_sym_fns): Take a BFD and return the sym_fns.
5134 (init_objfile_sect_indices): Call symfile_find_segment_sections.
5135 (default_symfile_segments): New function.
5136 (syms_from_objfile): Update call to find_sym_fns.
5137 (symfile_get_segment_data, free_symfile_segment_data): New.
5138 (symfile_map_offsets_to_segments): New.
5139 (symfile_find_segment_sections): New.
5140 * symfile.h (struct symfile_segment_data): New.
5141 (struct sym_fns): Add sym_segments.
5142 (default_symfile_segments, symfile_get_segment_data)
5143 (free_symfile_segment_data): New prototypes.
5144 (symfile_map_offsets_to_segments): Likewise.
5145 * xcoffread.c (xcoff_sym_fns): Add default_symfile_segments.
5146 * Makefile.in (COMMON_OBS): Remove elfread.o.
5147 (elf_internal_h): New.
5148 (elfread.o): Update.
5149 * configure.ac: Add elfread.o to COMMON_OBS if bfd/elf.o was
5151 * config.in, configure: Regenerated.
5152 * NEWS: Mention qOffsets changes.
5154 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
5156 * gdbtypes.h (builtin_type_m2_char, builtin_type_m2_int,
5157 builtin_type_m2_card, builtin_type_m2_real, builtin_type_m2_bool):
5158 Replace global variable declaration with compatibility macro.
5159 (struct builtin_m2_type): New data type.
5160 (builtin_m2_type): Add prototype.
5161 * m2-lang.c (builtin_type_m2_char, builtin_type_m2_int,
5162 builtin_type_m2_card, builtin_type_m2_real, builtin_type_m2_bool):
5163 Remove global variables.
5164 (m2_language_arch_info): Use builtin_m2_type instead of variables.
5165 (build_m2_types): New function.
5166 (m2_type_data): New variable.
5167 (builtin_m2_type): New function.
5168 (_initialize_m2_language): Do not build data types. Register
5169 m2_type_data per-gdbarch data.
5171 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
5173 * gdbtypes.h (builtin_type_f_character, builtin_type_f_logical,
5174 builtin_type_f_logical_s1, builtin_type_f_logical_s2,
5175 builtin_type_f_integer, builtin_type_f_integer_s2, builtin_type_f_real,
5176 builtin_type_f_real_s8, builtin_type_f_real_s16,
5177 builtin_type_f_complex_s8, builtin_type_f_complex_s16,
5178 builtin_type_f_complex_s32, builtin_type_f_void): Replace global
5179 variable declaration with compatibility macro.
5180 (struct builtin_f_type): New data type.
5181 (builtin_f_type): Add prototype.
5182 * f-lang.c (builtin_type_f_character, builtin_type_f_logical,
5183 builtin_type_f_logical_s1, builtin_type_f_logical_s2,
5184 builtin_type_f_integer, builtin_type_f_integer_s2, builtin_type_f_real,
5185 builtin_type_f_real_s8, builtin_type_f_real_s16,
5186 builtin_type_f_complex_s8, builtin_type_f_complex_s16,
5187 builtin_type_f_complex_s32, builtin_type_f_void): Remove variables.
5188 (f_language_arch_info): Use builtin_f_type instead of variables.
5189 (build_fortran_types): Build builtin_f_type structure instead of
5190 setting global type variables.
5191 (f_type_data): New variable.
5192 (builtin_f_type): New function.
5193 (_initialize_f_language): Do not call build_fortran_types. Do not
5194 swap global type variables. Register f_type_data per-gdbarch data.
5196 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
5198 * f-lang.c (_initialize_f_language): Do not initialize or
5199 swap builtin_type_string.
5201 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
5203 * std-regs.c (builtin_type_frame_reg, build_builtin_type_frame_reg,
5204 value_of_builtin_frame_reg): Remove.
5205 (_initialize_frame_reg): Do not swap builtin_type_frame_reg. Remove
5206 inactive call to value_of_builtin_frame_reg.
5208 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
5210 * gdbarch.sh (bfd_vma_bit): Remove.
5211 * gdbarch.c, gdbarch.h: Regenerate.
5213 * gdbtypes.h (builtin_bfd_vma_type): Remove.
5214 * gdbtypes.h (builtin_bfd_vma_type): Remove.
5215 (build_gdbtypes): Do not initialize it.
5216 (_initialize_gdbtypes): Do not swap it.
5218 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
5220 * gdbtypes.c (builtin_type_v2_double, builtin_type_v4_float,
5221 builtin_type_v2_int64, builtin_type_v4_int32, builtin_type_v8_int16,
5222 builtin_type_v16_int8, builtin_type_v2_float, builtin_type_v2_int32,
5223 builtin_type_v4_int16, builtin_type_v8_int8, builtin_type_v4sf,
5224 builtin_type_v4si, builtin_type_v16qi, builtin_type_v8qi,
5225 builtin_type_v8hi, builtin_type_v4hi, builtin_type_v2si,
5226 builtin_type_vec64, builtin_type_vec128): Remove.
5227 (init_simd_type): Remove.
5228 (init_vector_type): Make global.
5229 (build_builtin_type_vec64, build_builtin_type_vec128): Remove.
5230 (build_gdbtypes): Do not build vector types.
5231 (_initialize_gdbtypes): Do not swap vector types.
5232 * gdbtypes.h (builtin_type_v2_double, builtin_type_v4_float,
5233 builtin_type_v2_int64, builtin_type_v4_int32, builtin_type_v8_int16,
5234 builtin_type_v16_int8, builtin_type_v2_float, builtin_type_v2_int32,
5235 builtin_type_v4_int16, builtin_type_v8_int8, builtin_type_v4sf,
5236 builtin_type_v4si, builtin_type_v16qi, builtin_type_v8qi,
5237 builtin_type_v8hi, builtin_type_v4hi, builtin_type_v2si,
5238 builtin_type_vec64, builtin_type_vec128): Remove declarations.
5239 (init_vector_type): Add prototype.
5241 * i386-tdep.h (struct gdbarch_tdep): Add i386_mmx_type and
5242 i386_sse_type members.
5243 (i386_mmx_type, i386_sse_type): Change from variables to functions.
5244 * i386-tdep.c (i386_mmx_type, i386_sse_type): Remove variables.
5245 (i386_init_types): Do not build vector types.
5246 (i386_mmx_type, i386_sse_type): New functions.
5247 (i386_register_type): Call them instead of using global variables.
5248 (i386_gdbarch_init): Use XCALLOC to allocate tdep structure.
5249 * amd64-tdep.c (amd64_register_type): Call i386_sse_type instead
5250 of using global variable.
5252 * rs6000-tdep.h (struct gdbarch_tdep): Add ppc_builtin_type_vec64
5253 and ppc_builtin_type_vec128 members.
5254 * rs6000-tdep.c (rs6000_builtin_type_vec64): New function.
5255 (rs6000_builtin_type_vec128): Likewise.
5256 (rs6000_register_type): Call them instead of using builtin_type_vec64
5257 and builtin_type_vec128.
5258 (rs6000_gdbarch_init): Use XCALLOC to allocate tdep structure.
5260 * spu-tdep.c (struct gdbarch_tdep): New data type.
5261 (spu_builtin_type_vec128): Remove variable.
5262 (spu_builtin_type_vec128): New function.
5263 (spu_register_type): Call it instead of using global variable.
5264 (spu_gdbarch_init): Allocate tdep structure.
5265 (spu_init_vector_type): Remove function.
5266 (_initialize_spu_tdep): Do not call it.
5268 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
5270 * amd64-tdep.c (struct amd64_register_info): Remove.
5271 (amd64_register_info): Remove.
5272 (amd64_register_names): New static variable.
5273 (AMD64_NUM_REGS): Use amd64_register_names instead of
5274 amd64_register_info.
5275 (amd64_register_name): Likewise.
5276 (amd64_register_type): Do not refer to amd64_register_info.
5278 * s390-tdep.c (struct s390_register_info): Remove.
5279 (s390_register_info): Remove.
5280 (s390_register_name): Do not refer to s390_register_info.
5281 (s390_register_type): Likewise.
5283 * sparc64-tdep.c (struct sparc64_register_info): Remove.
5284 (sparc64_register_info, sparc64_pseudo_register_info): Remove.
5285 (sparc64_register_names, sparc64_pseudo_register_names): New.
5286 (SPARC64_NUM_REGS, SPARC64_NUM_PSEUDO_REGS): Use
5287 sparc64_register_names and sparc64_pseudo_register_names instead of
5288 sparc64_register_info and sparc64_pseudo_register_info.
5289 (sparc64_register_name): Likewise.
5290 (sparc64_register_type): Do not refer to sparc64_register_info
5291 and sparc64_pseudo_register_info.
5293 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
5295 * c-lang.c (cplus_builtin_types): Remove.
5296 (enum cplus_primitive_types): New data type.
5297 (cplus_language_arch_info): New function.
5298 (cplus_language_defn): Set la_language_arch_info member. Do not set
5299 la_builtin_type_vector and string_char_type members.
5301 * f-lang.c (f_builtin_types): Remove.
5302 (enum f_primitive_types): New data type.
5303 (f_language_arch_info): New function.
5304 (f_language_de): Set la_language_arch_info member. Do not set
5305 la_builtin_type_vector and string_char_type members.
5307 * m2-lang.c (m2_builtin_types): Remove.
5308 (enum m2_primitive_types): New data type.
5309 (m2_language_arch_info): New function.
5310 (m2_language_defn): Set la_language_arch_info member. Do not set
5311 la_builtin_type_vector and string_char_type members.
5313 * objc-lang.c (objc_builtin_types): Remove.
5314 (objc_language): Set la_language_arch_info member. Do not set
5315 la_builtin_type_vector and string_char_type members.
5317 * p-lang.c (pascal_builtin_types): Remove.
5318 (enum pascal_primitive_types): New data type.
5319 (pascal_language_arch_info): New function.
5320 (pascal_language_defn): Set la_language_arch_info member. Do not set
5321 la_builtin_type_vector and string_char_type members.
5323 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
5325 * regcache.c (struct regcache): Add ptid_t member.
5326 (regcache_xmalloc): Initialize it.
5327 (regcache_cpy_no_passthrough): Do not refer to current_regcache.
5328 (regcache_dup): Likewise.
5329 (regcache_dup_no_passthrough): Likewise.
5330 (current_regcache): Make static.
5331 (registers_ptid): Remove variable.
5332 (get_thread_regcache): New function.
5333 (get_current_regcache): New function.
5334 (registers_changed): Implement by freeing current regcache.
5335 (regcache_raw_read): Do not refer to current_regcache. Set
5336 inferior_ptid to regcache->ptid while calling target routines.
5337 (regcache_raw_write): Likewise.
5338 (regcache_raw_supply): Do not refer to current_regcache.
5339 (read_pc_pid): Use thread regcache. Do not modify inferior_ptid.
5340 (write_pc_pid): Likewise.
5341 (build_regcache): Remove.
5342 (_initialize_regcache): Do not call DEPRECATED_REGISTER_GDBARCH_SWAP
5343 or deprecated_register_gdbarch_swap. Do not initialize
5345 * regcache.h (get_current_regcache): Add prototype.
5346 (get_thread_regcache): Likewise.
5347 (current_regcache): Remove declaration.
5349 * corelow.c (core_open): Replace current_regcache by
5350 get_current_regcache ().
5351 * frame.c (frame_pop): Likewise.
5352 (put_frame_register): Likewise.
5353 (get_current_frame, create_new_frame): Likewise.
5354 * mi/mi-main.c (mi_cmd_data_write_register_values): Likewise.
5355 * stack.c (return_command): Likewise.
5356 * infcall.c (call_function_by_hand): Likewise.
5357 * infrun.c (resume): Likewise.
5358 (save_inferior_status, restore_inferior_status): Likewise.
5359 * linux-fork.c (fork_load_infrun_state): Likewise.
5360 (fork_save_infrun_state): Likewise.
5361 * win32-nat.c (win32_resume): Likewise.
5362 * i386fbsd-nat.c (i386fbsd_resume): Likewise.
5363 * monitor.c (monitor_wait): Likewise.
5364 * remote.c (remote_wait): Likewise.
5365 * remote-mips.c (mips_wait): Likewise.
5367 * bsd-kvm.c (bsd_kvm_open): Likewise
5368 (bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd): Likewise.
5369 * fbsd-nat.c (fbsd_make_corefile_notes): Likewise.
5370 * i386-linux-nat.c (i386_linux_resume): Likewise.
5371 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Likewise.
5372 (ia64_linux_stopped_data_address): Likewise.
5374 * frv-tdep.c (frv_fdpic_loadmap_addresses): Likewise.
5375 * m32c-tdep.c (m32c_virtual_frame_pointer): Likewise.
5376 * mep-tdep.c (current_me_module, current_options): Likewise.
5377 * mips-tdep.c (deprecated_mips_set_processor_regs_hack): Likewise.
5379 * linux-nat.c (linux_nat_do_thread_registers): Use thread
5380 regcache instead of current_regcache. Call target_fetch_registers.
5381 (linux_nat_corefile_thread_callback): Update call site.
5382 (linux_nat_do_registers): Likewise.
5383 * procfs.c (procfs_do_thread_registers): Use thread regcache instead
5384 of current_regcache.
5385 (procfs_make_note_section): Likewise.
5386 * proc-service.c (ps_lgetregs, ps_lsetregs): Likewise.
5387 (ps_lgetfpregs, ps_lsetfpregs): Likewise.
5388 * sol-thread.c (ps_lgetregs, ps_lsetregs): Likewise.
5389 (ps_lgetfpregs, ps_lsetfpregs): Likewise.
5391 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
5393 * regcache.c (read_register, read_register_pid): Remove.
5394 (write_register, write_register_pid): Likewise.
5395 * regcache.h (read_register, read_register_pid): Remove prototype.
5396 (write_register, write_register_pid): Likewise.
5398 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
5400 * gdbarch.sh (read_pc): Add REGCACHE argument. Remove PTID argument.
5401 (write_pc): Likewise. Remove default implementation, add predicate.
5402 * gdbarch.c, gdbarch.h: Regenerate.
5403 * regcache.c (read_pc_pid): Use current regcache instead of calling
5405 (write_pc_pid): Check gdbarch_write_pc predicate, implement default
5407 (generic_target_write_pc): Remove.
5408 * inferior.h (generic_target_write_pc): Remove.
5409 * frv-tdep.c (frv_gdbarch_init): Do not install it.
5410 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
5411 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
5412 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
5413 * sh-tdep.c (sh_gdbarch_init): Likewise.
5414 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
5416 * avr-tdep.c (avr_read_pc): Add REGCACHE argument. Remove PTID
5417 argument. Use REGCACHE instead of calling read_register_pid.
5418 * hppa-hpux-tdep.c (hppa_hpux_read_pc): Likewise.
5419 * hppa-tdep.c (hppa_read_pc): Likewise.
5420 * hppa-tdep.h (hppa_read_pc): Likewise.
5421 * ia64-tdep.c (ia64_read_pc): Likewise.
5422 * m32r-tdep.c (m32r_read_pc): Likewise.
5423 * mep-tdep.c (mep_read_pc): Likewise.
5424 * mn10300-tdep.c (mn10300_read_pc): Likewise.
5425 * spu-tdep.c (spu_read_pc): Likewise.
5427 * arm-tdep.c (arm_write_pc): Add REGCACHE argument. Remove PTID
5428 argument. Use REGCACHE instead of calling write_register_pid.
5429 * avr-tdep.c (avr_write_pc): Likewise.
5430 * hppa-hpux-tdep.c (hppa_hpux_write_pc): Likewise.
5431 * hppa-tdep.c (hppa_write_pc): Likewise.
5432 * hppa-tdep.h (hppa_write_pc): Likewise.
5433 * i386-linux-tdep.c (i386_linux_write_pc): Likewise.
5434 * amd64-linux-tdep.c (amd64_linux_write_pc): Likewise.
5435 * ia64-linux-tdep.c (ia64_linux_write_pc): Likewise.
5436 * ia64-tdep.c (ia64_write_pc): Likewise.
5437 * ia64-tdep.h (ia64_write_pc): Likewise.
5438 * m32r-tdep.c (m32r_write_pc): Likewise.
5439 * m88k-tdep.c (m88k_write_pc): Likewise.
5440 * mep-tdep.c (mep_write_pc): Likewise.
5441 * mips-tdep.c (mips_write_pc): Likewise.
5442 * mips-linux-tdep.c (mips_linux_write_pc): Likewise.
5443 * mn10300-tdep.c (mn10300_write_pc): Likewise.
5444 * sparc-tdep.c (sparc_write_pc): Likewise.
5445 * spu-tdep.c (spu_write_pc): Likewise.
5447 * mips-tdep.c (read_signed_register): Remove.
5448 (read_signed_register_pid): Likewise.
5449 (mips_read_pc): Add REGCACHE argument. Remove PTID argument.
5450 Use REGCACHE instead of calling read_signed_register_pid.
5452 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
5454 * gdbarch.sh (push_dummy_code): Add REGCACHE argument.
5455 * gdbarch.c, gdbarch.h: Regenerate.
5456 * infcall.c (generic_push_dummy_code): Add REGCACHE argument.
5457 (push_dummy_code): Likewise. Pass it to callee.
5458 (call_function_by_hand): Pass current regcache to push_dummy_code.
5460 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Add REGCACHE
5461 argument. Use it instead of current_regcache.
5463 * cris-tdep.c (cris_push_dummy_code): Add REGCACHE argument.
5464 * sparc-tdep.c (sparc32_push_dummy_code): Likewise.
5466 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
5468 * gdbarch.sh (get_longjmp_target): Add FRAME argument.
5469 * gdbarch.c, gdbarch.h: Regenerate.
5470 * infrun.c (handle_inferior_event): Pass current frame to
5471 gdbarch_get_longjmp_target.
5473 * alpha-tdep.c (alpha_get_longjmp_target): Add FRAME argument.
5474 Read registers from FRAME instead of using read_register.
5475 Use get_frame_arch instead of current_gdbarch.
5476 * arm-tdep.c (arm_get_longjmp_target): Likewise.
5477 * i386-tdep.c (i386_get_longjmp_target): Likewise.
5478 * m68k-tdep.c (m68k_get_longjmp_target): Likewise.
5479 * mips-linux-tdep.c (mips_linux_get_longjmp_target): Likewise.
5480 (mips64_linux_get_longjmp_target): Likewise.
5481 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Likewise.
5483 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
5485 * gdbarch.sh (skip_trampoline_code): Add FRAME argument.
5486 * gdbarch.c, gdbarch.h: Regenerate.
5487 * arch-utils.c (generic_skip_trampoline_code): Add FRAME argument.
5488 * arch-utils.h (generic_skip_trampoline_code): Likewise.
5489 * infrun.c (handle_inferior_event): Pass current frame to
5490 gdbarch_skip_trampoline_code and skip_language_trampoline.
5492 * language.c (unk_lang_trampoline): Add FRAME argument.
5493 (skip_language_trampoline): Add FRAME argument. Pass it to
5494 skip_trampoline callback.
5495 * language.h: Add forward declaration of struct frame_info.
5496 (struct language_defn): Add FRAME argument to skip_trampoline.
5497 (skip_language_trampoline): Add FRAME argument.
5498 * cp-abi.c (cplus_skip_trampoline): Add FRAME argument. Pass it
5499 to skip_trampoline callback.
5500 * cp-abi.h: Add forward declaration of struct frame_info.
5501 (cplus_skip_trampoline): Add FRAME argument.
5502 (struct cp_abi_ops): Add FRAME argument to skip_trampoline callback.
5503 * gnu-v3-abi.c (gnuv3_skip_trampoline): Add FRAME argument. Pass it
5504 to gdbarch_skip_trampoline_code.
5505 * objc-lang.c (objc_skip_trampoline): Add FRAME argument. Pass it
5506 to gdbarch_skip_trampoline_code.
5508 * minsyms.c (find_solib_trampoline_target): Add FRAME argument.
5509 * symtab.h (find_solib_trampoline_target): Likewise.
5510 * obsd-tdep.c (obsd_skip_solib_resolver): Pass current frame to
5511 find_solib_trampoline_target.
5513 * arm-tdep.c (arm_skip_stub): Add FRAME argument. Read registers
5514 from FRAME instead of calling read_register.
5516 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code): Add FRAME
5517 argument. Read registers from FRAME instead of using read_register.
5518 * hppa-tdep.c (hppa_skip_trampoline_code): Likewise.
5519 * hppa-tdep.h (hppa_skip_trampoline_code): Add FRAME argument.
5521 * i386-cygwin-tdep.c (i386_cygwin_skip_trampoline_code): Add FRAME
5524 * m32c-tdep.c (m32c_skip_trampoline_code): Add FRAME argument.
5526 * mips-tdep.c (mips_skip_trampoline_code): Add FRAME argument. Read
5527 registers from FRAME instead of using read_signed_register.
5529 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Add FRAME
5531 (ppc64_standard_linkage_target): Likewise. Read registers from FRAME
5532 instead of using read_register.
5533 (ppc64_skip_trampoline_code): Add FRAME argument. Pass it to
5534 ppc64_standard_linkage_target.
5535 * rs6000-tdep.c (rs6000_skip_trampoline_code): Add FRAME argument.
5536 Pass it to find_solib_trampoline_target. Read registers from FRAME
5537 instead of using read_register.
5539 * xstormy16-tdep.c (xstormy16_skip_trampoline_code): Add FRAME
5542 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
5544 * gdbarch.sh (software_single_step): Replace REGCACHE argument by
5546 * gdbarch.c, gdbarch.h: Regenerate.
5547 * infrun.c (resume): Pass current frame to SOFTWARE_SINGLE_STEP.
5549 * alpha-tdep.c (alpha_next_pc): Add FRAME argument. Retrieve
5550 registers from FRAME instead of using read_register.
5551 (alpha_software_single_step): Replace REGCACHE by FRAME. Pass FRAME
5552 to alpha_next_pc. Use get_frame_pc instead of read_pc.
5553 * alpha-tdep.h (alpha_software_single_step): Replace REGCACHE
5556 * arm-tdep.c (shifted_reg_val): Add FRAME argument. Read registers
5557 from FRAME instead of using read_register.
5558 (thumb_get_next_pc): Likewise.
5559 (arm_get_next_pc): Likewise.
5560 (arm_software_single_step): Replace REGCACHE by FRAME. Pass FRAME
5561 to arm_get_next_pc. Use get_frame_pc instead of read_register.
5562 * arm-tdep.h (arm_software_single_step): Replace REGCACHE
5565 * cris-tdep.c (find_step_target): Add FRAME argument. Read registers
5566 from FRAME instead of using read_register.
5567 (cris_software_single_step): Replace REGCACHE by FRAME. Pass FRAME
5568 to find_step_target.
5570 * mips-tdep.c (mips32_next_pc): Add FRAME argument. Read registers
5571 from FRAME instead of using read_register / read_signed_register.
5572 (extended_mips16_next_pc): Likewise.
5573 (mips16_next_pc): Likewise.
5574 (mips_next_pc): Likewise.
5575 (mips_software_single_step): Replace REGCACHE by FRAME. Pass FRAME
5576 to mips_next_pc. Use get_frame_pc instead of read_pc.
5577 * mips-tdep.h (mips_software_single_step): Replace REGCACHE
5580 * rs6000-tdep.c (branch_dest): Add FRAME argument. Use it instead
5581 of current frame. Read registers from FRAME.
5582 (deal_with_atomic_sequence): Add FRAME argument. Pass it to
5583 branch_dest. Use get_frame_pc instead of read_pc.
5584 (rs6000_software_single_step): Likewise.
5585 (bl_to_blrl_insn_p): Do not call branch_dest.
5586 * rs6000-tdep.h (rs6000_software_single_step): Replace REGCACHE
5589 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Add FRAME argument.
5590 Read registers from FRAME instead of current regcache.
5591 * sparc-linux-tdep.c (sparc32_linux_step_trap): Likewise.
5592 * sparcnbsd-tdep.c (sparcnbsd_step_trap): Likewise.
5593 * sparc-tdep.c (sparc_address_from_register): Remove.
5594 (sparc_analyze_control_transfer): Pass FRAME argument instead of
5595 GDBARCH. Pass FRAME to step_trap callback.
5596 (sparc_step_trap): Add FRAME argument.
5597 (space_software_single_step): Replace REGCACHE by FRAME. Pass FRAME
5598 to sparc_analyze_control_transfer. Read registers from FRAME instead
5599 of calling sparc_address_from_register.
5600 * sparc-tdep.h (struct gdbarch_tdep): Add FRAME argument to
5602 (sparc_address_from_register): Remove prototype.
5603 (sparc_software_single_step): Replace REGCACHE argument by FRAME.
5604 (sparcnbsd_step_trap): Add FRAME argument.
5606 * spu-tdep.c (spu_software_single_step): Replace REGCACHE argument
5607 by FRAME. Read registers from FRAME instead of REGCACHE.
5609 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
5611 * arm-tdep.c (arm_print_float_info): Use register value from FRAME
5612 instead of calling read_register.
5614 * avr-tdep.c (avr_push_dummy_call): Write to REGCACHE instead of
5615 calling write_register.
5617 * hppa-tdep.c (hppa32_push_dummy_call): Write to REGCACHE instead of
5618 calling write_register.
5620 * ia64-tdep.c (find_func_descr): Add REGCACHE parameter. Use it
5621 instead of calling read_register.
5622 (ia64_push_dummy_call): Update call to find_func_descr. Use REGCACHE
5623 instead of calling read_register and write_register.
5625 * m32r-tdep.c (m32r_linux_supply_gregset): Use REGCACHE parameter
5626 instead of current_regcache.
5628 * mn10300-tdep.c (mn10300_push_dummy_call): Write to REGCACHE instead
5629 of calling write_register.
5630 * mn10300-linux-tdep.c (am33_supply_fpregset_method): Use REGCACHE
5631 parameter instead of current_regcache.
5633 * mips-tdep.c (mips2_fp_compat): Add FRAME parameter. Use it
5634 instead of calling read_register.
5635 (mips_read_fp_register_double, mips_print_fp_register): Update calls.
5636 (mips_eabi_push_dummy_call): Use REGCACHE instead of write_register.
5637 (mips_n32n64_push_dummy_call): Likewise.
5638 (mips_o32_push_dummy_call): Likewise.
5639 (mips_o64_push_dummy_call): Likewise.
5641 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Use REGCACHE
5642 parameter instead of current_regcache.
5644 * xtensa-tdep.c (xtensa_register_write_masked): Add REGCACHE parameter.
5645 Use it instead of read_register and write_register.
5646 (xtensa_register_read_masked): Likewise.
5647 (xtensa_pseudo_register_read): Update call.
5648 (xtensa_pseudo_register_write): Likewise.
5649 (xtensa_frame_cache): Use register values unwound from NEXT_FRAME
5650 instead of calling read_register.
5651 (xtensa_push_dummy_call): Update comment.
5653 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
5655 * mips-tdep.c (mips16_scan_prologue): Replace read_next_frame_reg
5656 by frame_unwind_register_signed calls.
5657 (mips32_scan_prologue): Likewise. Skip analysis of alloca stack
5658 frame allocations when called with NULL NEXT_FRAME parameter.
5659 (read_next_frame_reg): Remove.
5661 * sh-tdep.c (sh_analyze_prologue): Add FPSCR parameter. Use it
5662 instead of reading the FPSCR register.
5663 (sh_frame_cache): Pass unwound FPSCR register value to
5664 sh_analyze_prologue.
5665 (sh_skip_prologue): Pass dummy FPSCR value to sh_analyze_prologue.
5667 * v850-tdep.c (v850_analyze_prologue): Add CTBP parameter. Use it
5668 instead of reading the CTBP register.
5669 (v850_frame_cache): Pass unwound CTBP register value to
5670 v850_analyze_prologue.
5672 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
5674 * sh-tdep.h (sh_show_regs): Add FRAME parameter.
5675 * sh-tdep.c (sh_show_regs): Likewise.
5676 (sh_show_regs_command): Pass current frame to sh_show_regs routine.
5677 (sh_generic_show_regs): Add FRAME parameter. Use register
5678 values from that frame instead of calling read_register.
5679 (sh3_show_regs, sh2e_show_regs, sh2a_show_regs, sh2a_nofpu_show_regs,
5680 sh3e_show_regs, sh3_dsp_show_regs, sh4_show_regs, sh4_nofpu_show_regs,
5681 sh_dsp_show_regs): Likewise.
5682 * sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs,
5683 sh64_show_regs): Likewise.
5685 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
5687 * mips-tdep.c (deprecated_mips_set_processor_regs_hack): Read from
5688 current regcache instead of calling read_register.
5690 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
5692 * mep-tdep.c (current_me_module): Read from current regcache
5693 instead of calling read_register.
5694 (current_options): Likewise.
5696 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
5698 * cris-tdep.c (cris_stopped_data_address): Read register values
5699 from current frame instead of calling read_register.
5700 * frv-tdep.c (frv_stopped_data_address): Likewise.
5702 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
5704 * solib-sunos.c (sunos_solib_create_inferior_hook): Use write_pc
5705 instead of write_register (PC_REGNUM, ...).
5707 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
5709 * solib-sunos.c (sunos_solib_create_inferior_hook): Add comment
5710 explaining why the PC adjustment code is necessary.
5712 2007-06-15 Vladimir Prus <vladimir@codesourcery.com>
5714 * m68k-tdep.h (enum m68k_flavour): New.
5715 (struct gdbarch_tdep): New fields
5716 float_return, flavour and fpregs_present.
5717 * m68k-tdep.c (m68k_register_type): Use
5718 fpregs_present and conditionalize floating
5719 registers type on flavour.
5720 (m68k_register_names): New.
5721 (m68k_register_name): Use the above.
5722 (m68k_convert_register_p): Consult fpregs_present.
5723 (m68k_register_to_value, m68k_value_to_register):
5724 Use register_type to obtain the type of floating
5726 (m68k_svr4_extract_return_value): Check tdep->float_return.
5727 Use register_type to get the type of floating
5729 (m68k_svr4_store_return_value): Likewise.
5730 (m68k_dwarf_reg_to_regnum): Check tdep->fpregs_present.
5731 (m68k_analyze_register_saves): Likewise.
5732 (m68k_gdbarch_init): Extract infromation
5733 from XML description, if present. Guess coldfire by
5734 looking at the file, if present. Conditionalize
5735 setting of long double format. Set decr_pc_after_break
5736 to 2 on coldfire and fido. Enable XML-driven
5737 register description.
5738 * m68kbsd-tdep.c (m68kbsd_fpreg_offset): Use
5739 size of tdep->fpreg_type, as opposed to hardcoded value.
5740 * Makefile.in (m68k-tdep.o): Update dependencies.
5742 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
5744 * NEWS: Mention "info spu" commands and qXfer:spu:read and
5745 qXfer:spu:write remote packet types.
5747 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
5749 * xml-tdesc.c (tdesc_start_target): New.
5750 (target_attributes): New.
5751 (tdesc_elements): Use it.
5752 * features/gdb-target.dtd: Add #FIXED version attribute for
5755 2007-06-13 Arthur Huillet <arthur.huillet@free.fr>
5757 * mi/mi-cmd-var.c (mi_cmd_var_assign): Fix typo.
5759 2007-06-13 Claudio Fontana <claudio.fontana@gmail.com>
5761 * fork-child.c (fork_inferior): Update comment.
5763 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
5765 * features/Makefile: Generate regformats for mips-linux and
5767 * features/sort-regs.xsl: Correct typo.
5768 * regformats/reg-mips.dat, regformats/reg-mips64.dat: Delete.
5769 * regformats/mips-linux.dat, regformats/mips64-linux.dat: New generated
5772 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
5774 * config/mips/linux.mh (TDEP_XML): New.
5775 * features/mips-linux.xml, features/mips64-linux.xml: New files.
5776 * mips-linux-nat.c (mips_linux_register_addr): Handle
5777 MIPS_RESTART_REGNUM.
5778 (mips64_linux_register_addr): Likewise.
5779 (super_xfer_partial, mips_linux_xfer_partial): New.
5780 (_initialize_mips_linux_nat): Add them to the target_ops.
5781 * mips-linux-tdep.c (mips_supply_gregset): Handle MIPS_RESTART_REGNUM.
5782 (mips_fill_gregset, mips64_supply_gregset, mips64_fill_gregset)
5783 (mips_linux_o32_sigframe_init)
5784 (mips_linux_n32n64_sigframe_init): Likewise.
5785 (mips_linux_write_pc, mips_linux_restart_reg_p): New.
5786 (mips_linux_init_abi): Use mips_linux_write_pc. Check for the
5787 "org.gnu.gdb.mips.linux" feature.
5788 * mips-linux-tdep.h (MIPS_RESTART_REGNUM): New constant.
5789 (mips_linux_restart_reg_p): New prototype.
5790 * mips-tdep.c (mips_gdbarch_init): Pass tdesc_data to the OS/ABI
5791 initialization routine.
5792 * Makefile.in (mips-linux-tdep.o, mips-linux-nat.o): Update.
5794 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
5796 * Makefile.in (mips-tdep.o): Update.
5797 * mips-tdep.c (struct register_alias, mips_o32_aliases)
5798 (mips_n32_n64_aliases, mips_register_aliases): New.
5799 (mips_register_name): Call tdesc_register_name.
5800 (mips_tdesc_register_reggroup_p): New.
5801 (mips_pseudo_register_type, value_of_mips_user_reg): New.
5802 (mips_gdbarch_init): Add target-described register support.
5803 Register aliases for register names.
5804 * target-descriptions.c (tdesc_register_name): Make global.
5805 (tdesc_register_in_reggroup_p): New function, broken out from
5806 tdesc_register_reggroup_p.
5807 (tdesc_register_reggroup_p): Use it.
5808 * target-descriptions.h (tdesc_register_name)
5809 (tdesc_register_in_reggroup_p): New prototypes.
5810 * NEWS: Correct formatting. Mention MIPS register support.
5811 * features/mips-cp0.xml, features/mips-fpu.xml,
5812 features/mips64-cp0.xml, gdb/features/mips64-fpu.xml, mips-cpu.xml,
5813 features/mips64-cpu.xml: New files.
5815 2007-06-13 Markus Deuling <deuling@de.ibm.com>
5817 * gdbarch.sh (TARGET_ADDR_BIT): Replace by gdbarch_addr_bit.
5818 * valops.c (value_cast): Likewise.
5819 * utils.c (strlen_paddr, paddr, paddr_nz, paddress): Likewise.
5820 * ui-out.c (ui_out_field_core_addr): Likewise.
5821 * tracepoint.c (tracepoints_info): Likewise.
5822 * symtab.c (print_msymbol_info): Likewise.
5823 * solib-irix.c (irix_current_sos)
5824 (irix_open_symbol_file_object): Likewise.
5825 * remote.c (build_remote_gdbarch_data): Likewise.
5826 * prologue-value.c (make_pv_area): Likewise.
5827 * procfs.c (info_mappings_callback): Likewise.
5828 * printcmd.c (print_scalar_formatted)
5829 (deprecated_print_address_numeric): Likewise.
5830 * memattr.c (mem_info_command): Likewise.
5831 * linux-nat.c (linux_nat_info_proc_cmd): Likewise.
5832 * gdbtypes.c (build_flt, gdbtypes_post_init): Likewise.
5833 * exec.c (print_section_info): Likewise.
5834 * dwarf2read.c (read_subrange_type): Likewise.
5835 * dwarf2loc.c (find_location_expression): Likewise.
5836 * dwarf2expr.c (dwarf2_read_address, unsigned_address_type)
5837 (signed_address_type, execute_stack_op): Likewise.
5838 * breakpoint.c (print_one_breakpoint, breakpoint_1): Likewise.
5839 * gdbarch.c, gdbarch.h: Regenerate.
5841 2007-06-13 Markus Deuling <deuling@de.ibm.com>
5843 * gdbarch.sh (TARGET_ARCHITECTURE): Replace by gdbarch_bfd_arch_info.
5844 * arch-utils.c (show_architecture): Likewise.
5845 * remote-mips.c (mips_open): Likewise
5846 * nto-tdep.c (nto_find_and_open_solib)
5847 (nto_init_solib_absolute_prefix): Likewise.
5848 * nto-procfs (procfs_open): Likewise.
5849 * m68hc11-tdep.c (gdb_print_insn_m68hc11): Likewise.
5850 * gcore.c (default_gcore_mach, default_gcore_arch): Likewise.
5851 * gdbarch.c, gdbarch.h: Regenerate.
5853 2007-06-13 Markus Deuling <deuling@de.ibm.com>
5855 * gdbarch.sh (TARGET_BFD_VMA_BIT): Replace by gdbarch_bfd_vma_bit.
5856 * gdbtypes.c (build_flt): Likewise.
5857 * gdbarch.c, gdbarch.h: Regenerate.
5859 2007-06-13 Markus Deuling <deuling@de.ibm.com>
5861 * gdbarch.sh (BREAKPOINT_FROM_PC): Replace by
5862 gdbarch_breakpoint_from_pc.
5863 * s390-tdep.c (s390_gdbarch_init): Likewise (comment).
5864 * remote.c (remote_insert_breakpoint)
5865 (remote_insert_hw_breakpoint): Likewise.
5866 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Likewise.
5867 * mips-tdep.c (mips_breakpoint_from_pc): Likewise (comment).
5868 * breakpoint.h (bp_target_info): Likewise (comment).
5869 * breakpoint.c (read_memory_nobpt): Likewise.
5870 * mem-break.c (default_memory_insert_breakpoint): Likewise.
5871 (symtab.h, breakpoint.h): Remove include. Remove unnecessary comment.
5872 * gdbarch.c, gdbarch.h: Regenerate.
5874 2007-06-13 Markus Deuling <deuling@de.ibm.com>
5876 * gdbarch.sh (TARGET_PTR_BIT): Replace with gdbarch_ptr_bit.
5877 * solib-svr4.c (svr4_truncate_ptr): Likewise.
5878 * solib-pa64.c (read_dynamic_info): Likewise.
5879 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets): Likewise.
5880 * solib.c (info_sharedlibrary_command): Likewise.
5881 * s390-nat.c (SUBOFF): Likewise.
5882 * p-valprint.c (pascal_val_print): Likewise.
5883 * procfs.c (info_proc_mappings): Likewise.
5884 * printcmd.c (decode_format): Likewise.
5885 * nto-tdep.c (nto_truncate_ptr): Likewise.
5886 * mips-linux-tdep.c (mips_linux_get_longjmp_target)
5887 (mips64_linux_get_longjmp_target): Likewise.
5888 * m68k-tdep.c (m68k_get_longjmp_target): Likewise.
5889 * jv-valprint.c (java_value_print): Likewise.
5890 * jv-lang.c (get_java_object_header_size): Likewise.
5891 * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Likewise.
5892 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
5893 (hppa_hpux_unwind_adjust_stub): Likewise.
5894 * gnu-v3-abi.c (build_gdb_vtable_type): Likewise.
5895 * gdbtypes.c (make_pointer_type, make_reference_type)
5896 (smash_to_memberptr_type): Likewise.
5897 * gdbarch.c, gdbarch.h: Regenerate.
5899 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
5901 * mips-tdep.c (mips_print_register): Remove unused ALL argument.
5902 (print_gp_register_row): Stop before printing a register bigger
5903 than the ABI register size.
5904 (mips_print_registers_info): Update call to mips_print_register.
5906 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
5908 * expression.h (enum exp_opcode): Document a register name for
5910 * parse.c (write_dollar_variable): Write the register name for
5912 (operator_length_standard): Expect the register name following
5914 * ada-lang.c (resolve_subexp): Likewise.
5915 * ax-gdb.c (gen_expr): Likewise.
5916 * eval.c (evaluate_subexp_standard): Likewise.
5917 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
5919 * tracepoint.c (encode_actions): Likewise.
5921 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
5923 * utils.c (set_screen_size): Use INT_MAX for default columns.
5925 2007-06-13 Ulrich Weigand <uweigand@de.ibm.com>
5927 * remote.c (remote_protocol_features): Add qXfer:spu:read and
5928 qXfer:spu:write packet types.
5930 2007-06-12 Markus Deuling <deuling@de.ibm.com>
5932 * gdbarch.sh (DEPRECATED_STACK_ALIGN): Remove.
5933 * gdbarch.c, gdbarch.h: Regenerate.
5935 2007-06-12 Markus Deuling <deuling@de.ibm.com>
5937 * gdbarch.sh (STAB_REG_TO_REGNUM): Replace by
5938 gdbarch_stab_reg_to_regnum.
5939 * stabsread.c (define_symbol): Likewise.
5940 * gdbarch.sh (ECOFF_REG_TO_REGNUM): Replace by
5941 gdbarch_ecoff_reg_to_regnum.
5942 * mdebugread.c (parse_symbol): Likewise.
5943 * i386-tdep.c (i386_gdbarch_init): Likewise (comment).
5944 * gdbarch.sh (DWARF_REG_TO_REGNUM): Replace by
5945 gdbarch_dwarf_reg_to_regnum.
5946 * gdbarch.sh (SDB_REG_TO_REGNUM): Replace by gdbarch_sdb_reg_to_regnum.
5947 * coffread.c (process_coff_symbol): Likewise.
5948 * gdbarch.sh (DWARF2_REG_TO_REGNUM): Replace by
5949 gdbarch_dwarf2_reg_to_regnum.
5950 * dwarf2loc.c (dwarf_expr_read_reg,dwarf2_evaluate_loc_desc)
5951 (locexpr_describe_location): Likewise.
5952 * dwarf2-frame.c (read_reg,execute_cfa_program,dwarf2_frame_cache)
5953 (dwarf2_frame_prev_register,dwarf2_signal_frame_this_id): Likewise.
5954 * dwarf2loc.c (DWARF2_REG_TO_REGNUM): Remove macro.
5955 * dwarf2read.c (DWARF2_REG_TO_REGNUM): Remove macro.
5956 * gdbarch.c, gdbarch.h: Regenerate.
5958 2007-06-12 Markus Deuling <deuling@de.ibm.com>
5960 * gdbarch.sh (SMASH_TEXT_ADDRESS): Replace by
5961 gdbarch_smash_text_address.
5962 * somread.c (som_symtab_read): Likewise.
5963 * elfread.c (record_minimal_symbol): Likewise.
5964 * dbxread.c (process_one_symbol): Likewise.
5965 * coffread.c (coff_symtab_read): Likewise.
5966 * gdbarch.c, gdbarch.h: Regenerate.
5968 2007-06-12 Markus Deuling <deuling@de.ibm.com>
5970 * gdbarch.sh (REGISTER_TO_VALUE): Replace by gdbarch_register_to_value.
5971 * findvar.c (value_from_register): Likewise.
5972 * gdbarch.sh (VALUE_TO_REGISTER): Replace by gdbarch_value_to_register.
5973 * valops.c (value_assign): Likewise.
5974 * gdbarch.sh (CONVERT_REGISTER_P): Replace by
5975 gdbarch_convert_register_p.
5976 * findvar.c (value_from_register): Likewise.
5977 * valops.c (value_assign): Likewise.
5978 * gdbarch.c, gdbarch.h: Regenerate.
5980 2007-06-12 Markus Deuling <deuling@de.ibm.com>
5982 * gdbarch.sh (REGISTER_SIM_REGNO): Replace by
5983 gdbarch_register_sim_regno.
5984 * sim-regno.h (sim_regno): Likewise (comment).
5985 * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register): Likewise.
5986 * gdbarch.c, gdbarch.h: Regenerate.
5988 2007-06-12 Markus Deuling <deuling@de.ibm.com>
5990 * gdbarch.sh (TARGET_VIRTUAL_FRAME_POINTER): Replace by
5991 gdbarch_virtual_frame_pointer.
5992 * tracepoint.c (encode_actions): Likewise.
5993 * dwarf2loc.c (dwarf2_loc_desc_needs_frame): Likewise.
5994 * ax-gdb.c (gen_frame_args_address, gen_frame_locals_address): Likewise.
5995 * gdbarch.c, gdbarch.h: Regenerate.
5997 2007-06-12 Markus Deuling <deuling@de.ibm.com>
5999 * gdbarch.sh (TARGET_FLOAT_BIT): Replace by gdbarch_float_bit.
6000 * p-lang.c (pascal_create_fundamental_type): Likewise.
6001 * objc-lang.c (objc_create_fundamental_type): Likewise.
6002 * mdebugread.c (_initialize_mdebugread): Likewise.
6003 * m2-lang.c (m2_create_fundamental_type)
6004 (_initialize_m2_language): Likewise.
6005 * gdbtypes.c (build_gdbtypes): Likewise.
6006 * f-lang.c (f_create_fundamental_type, build_fortran_types): Likewise.
6007 * doublest.c (floatformat_from_length): Likewise.
6008 * c-lang.c (c_create_fundamental_type): Likewise.
6009 * ada-lang.c (ada_create_fundamental_type)
6010 (ada_language_arch_info): Likewise.
6011 * gdbarch.sh (TARGET_FLOAT_FORMAT): Replace by gdbarch_float_format.
6012 * value.c (unpack_double): Likewise (comment).
6013 * gdbtypes.c (build_gdbtypes): Likewise.
6014 * doublest.c (floatformat_from_length): Likewise.
6015 * gdbarch.sh (TARGET_DOUBLE_BIT): Replace by gdbarch_double_bit.
6016 * valarith.c (value_binop): Likewise.
6017 * p-lang.c (pascal_create_fundamental_type): Likewise.
6018 * objc-lang.c (objc_create_fundamental_type): Likewise.
6019 * mdebugread.c (_initialize_mdebugread): Likewise.
6020 * m2-lang.c (m2_create_fundamental_type): Likewise.
6021 * gdbtypes.c (build_gdbtypes): Likewise.
6022 * f-lang.c (f_create_fundamental_type, build_fortran_types): Likewise.
6023 * doublest.c (floatformat_from_length): Likewise.
6024 * cris-tdep.c (cris_gdbarch_init): Likewise (comment).
6025 * c-lang.c (c_create_fundamental_type): Likewise.
6026 * ada-lex.l (processReal): Likewise.
6027 * ada-lang.c (ada_create_fundamental_type)
6028 (ada_language_arch_info): Likewise.
6029 * gdbarch.sh (TARGET_DOUBLE_FORMAT): Replace by gdbarch_double_format.
6030 * value.c (unpack_double): Likewise (comment).
6031 * gdbtypes.c (build_gdbtypes): Likewise.
6032 * doublest.c (floatformat_from_length): Likewise.
6033 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Replace by
6034 gdbarch_long_double_bit.
6035 * p-lang.c (pascal_create_fundamental_type): Likewise.
6036 * objc-lang.c (objc_create_fundamental_type): Likewise.
6037 * m2-lang.c (m2_create_fundamental_type): Likewise.
6038 * gdbtypes.c (build_gdbtypes): Likewise.
6039 * f-lang.c (f_create_fundamental_type, build_fortran_types): Likewise.
6040 * doublest.c (floatformat_from_length): Likewise.
6041 * c-lang.c (c_create_fundamental_type): Likewise.
6042 * ada-lex.l (processReal): Likewise.
6043 * ada-lang.c (ada_create_fundamental_type)
6044 (ada_language_arch_info): Likewise.
6045 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Replace by
6046 gdbarch_long_double_format.
6047 * gdbtypes.c (build_gdbtypes): Likewise.
6048 * doublest.c (floatformat_from_length): Likewise.
6049 * gdbarch.c, gdbarch.h: Regenerate.
6051 2007-06-12 Markus Deuling <deuling@de.ibm.com>
6053 * gdbarch.sh (TARGET_SHORT_BIT): Replace by gdbarch_int_bit.
6054 * ada-lang.c (ada_create_fundamental_type)
6055 (ada_language_arch_info): Likewise.
6056 * c-lang.c (c_create_fundamental_type): Likewise.
6057 * f-lang.c (f_create_fundamental_type, build_fortran_types): Likewise.
6058 * gdbtypes.c (build_gdbtypes, gdbtypes_post_init): Likewise.
6059 * m2-lang.c (m2_create_fundamental_type): Likewise.
6060 * objc-lang.c (objc_create_fundamental_type): Likewise.
6061 * p-lang.c (pascal_create_fundamental_type): Likewise.
6062 * gdbarch.sh (TARGET_INT_BIT): Replace by gdbarch_int_bit.
6063 * c-exp.y (parse_number): Likewise.
6064 * objc-exp.y (parse_number): Likewise.
6065 * ada-lex.l (processInt): Likewise.
6066 * f-exp.y (parse_number): Likewise.
6067 * p-exp.y (parse_number): Likewise.
6068 * ada-lang.c (ada_create_fundamental_type, ada_language_arch_info)
6069 (gdbtypes_post_init, build_gdbtypes): Likewise.
6070 * p-lang.c (pascal_create_fundamental_type): Likewise.
6071 * parse.c (build_parse): Likewise.
6072 * xcoffread.c (_initialize_xcoffread): Likewise.
6073 * stabsread.c (define_symbol, read_one_struct_field, read_enum_type)
6074 (read_range_type): Likewise.
6075 * objc-lang.c (objc_create_fundamental_type): Likewise.
6076 * f-lang.c (build_fortran_types, f_create_fundamental_type): Likewise.
6077 * m2-lang.c (m2_create_fundamental_type, _initialize_m2_language)
6078 (m2_create_fundamental_type): Likewise.
6079 * c-lang.c (c_create_fundamental_type): Likewise.
6080 * coffread.c (coff_read_enum_type): Likewise.
6081 * mdebugread.c (parse_symbol, _initialize_mdebugread): Likewise.
6082 * dwarf2read.c (new_symbol): Likewise.
6083 * gdbarch.sh (TARGET_LONG_BIT): Replace by gdbarch_long_bit.
6084 * c-exp.y (parse_number): Likewise.
6085 * objc-exp.y (parse_number): Likewise.
6086 * ada-lex.l (processInt): Likewise.
6087 * f-exp.y (parse_number): Likewise.
6088 * p-exp.y (parse_number): Likewise.
6089 * valarith.c (value_binop): Likewise.
6090 * symfile.c (read_target_long_array, simple_overlay_update_1): Likewise.
6091 * ada-lang.c (ada_create_fundamental_type)
6092 (ada_language_arch_info): Likewise.
6093 * gdbtypes.c (build_gdbtypes, gdbtypes_post_init): Likewise.
6094 * symfile.c (TARGET_LONG_BYTES): Likewise.
6095 * p-lang.c (pascal_create_fundamental_type): Likewise.
6096 * objc-lang.c (objc_create_fundamental_type): Likewise.
6097 * m2-lang.c (m2_create_fundamental_type): Likewise.
6098 * f-lang.c (f_create_fundamental_type): Likewise.
6099 * c-lang.c (c_create_fundamental_type): Likewise.
6100 * coffread.c (decode_base_type): Likewise.
6101 * gdbarch.sh (TARGET_LONG_LONG_BIT): Replace by gdbarch_long_long_bit.
6102 * c-exp.y (parse_number): Likewise.
6103 * objc-exp.y (parse_number): Likewise.
6104 * p-exp.y (parse_number): Likewise.
6105 * ada-lang.c (ada_create_fundamental_type)
6106 (ada_language_arch_info): Likewise.
6107 * gdbtypes.c (gdbtypes_post_init, build_gdbtypes): Likewise.
6108 * stabsread.c (read_range_type): Likewise.
6109 * p-lang.c (pascal_create_fundamental_type): Likewise.
6110 * objc-lang.c (objc_create_fundamental_type): Likewise.
6111 * m2-lang.c (m2_create_fundamental_type): Likewise.
6112 * f-lang.c (f_create_fundamental_type): Likewise.
6113 * c-lang.c (c_create_fundamental_type): Likewise.
6114 * gdbarch.c, gdbarch.h: Regenerate.
6116 2007-06-12 Andreas Schwab <schwab@suse.de>
6118 * frame-unwind.h (frame_dealloc_cache_ftype): Define.
6119 (struct frame_unwind): Add dealloc_cache.
6120 * frame.c (reinit_frame_cache): Call dealloc_cache on all caches.
6122 * libunwind-frame.h (libunwind_frame_dealloc_cache): Declare.
6123 * libunwind-frame.c (libunwind_frame_dealloc_cache): Define.
6124 (libunwind_frame_unwind): Set dealloc_cache.
6125 * ia64-tdep.c (ia64_libunwind_frame_unwind): Set dealloc_cache.
6127 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
6128 Markus Deuling <deuling@de.ibm.com>
6130 * remote.c (remote_write_qxfer): New function.
6131 (remote_xfer_partial): Add handling for TARGET_OBJECT_SPU.
6132 (remote_read_qxfer): Do not cache empty objects.
6133 (_initialize_remote): Add PACKET_qXfer_spu_read and
6134 PACKET_qXfer_spu_write.
6136 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
6138 * target.h (enum target_object): Add TARGET_OBJECT_SPU.
6139 * spu-linux-nat.c (spu_xfer_partial): Handle TARGET_OBJECT_SPU.
6141 * spu-tdep.h (SPU_NUM_PSEUDO_REGS): Add 5 pseudo registers.
6142 (enum spu_regnum): Add SPU_FPSCR_REGNUM, SPU_SRR0_REGNUM,
6143 SPU_LSLR_REGNUM, SPU_DECR_REGNUM, SPU_DECR_STATUS_REGNUM.
6144 * spu-tdep.c (infospucmdlist): New variable.
6145 (spu_register_name): Handle additional pseudo registers.
6146 (spu_register_type): Likewise.
6147 (spu_pseudo_register_read): Likewise.
6148 (spu_pseudo_register_write): Likewise.
6149 (spu_pseudo_register_read_spu): New function.
6150 (spu_pseudo_register_write_spu): Likewise.
6151 (info_spu_event_command): New function.
6152 (info_spu_signal_command): Likewise.
6153 (info_spu_mailbox_list): Likewise.
6154 (info_spu_mailbox_command): Likewise.
6155 (spu_mfc_get_bitfield): Likewise.
6156 (info_spu_dma_cmdlist): Likewise.
6157 (info_spu_dma_command): Likewise.
6158 (info_spu_proxydma_command): Likewise.
6159 (info_spu_command): Likewise.
6160 (_initialize_spu_tdep): Install "info spu" commands.
6162 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
6164 * spu-linux-nat.c (spu_proc_xfer_spu): Do not return failure when
6165 accessing non-seekable spufs files.
6167 2007-06-09 Markus Deuling <deuling@de.ibm.com>
6169 * gdbarch.sh (SKIP_TRAMPOLINE_CODE): Replace by
6170 gdbarch_skip_trampoline_code.
6171 * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Likewise (comment).
6172 * objc-lang.c (objc_skip_trampoline)
6173 (objc_submethod_helper_data): Likewise.
6174 * m32c-lang.c (m32c_skip_trampoline_code): Likewise (comment).
6175 * infrun.c (handle_inferior_event): Likewise.
6176 * gnu-v3-abi.c (gnuv3_skip_trampoline): Likewise.
6177 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Replace by
6178 gdbarch_in_solib_return_trampoline.
6179 * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Likewise (comment).
6180 * infrun.c (handle_inferior_event): Likewise.
6181 * hppa-tdep.c (hppa_stub_unwind_sniffer): Likewise.
6182 * gdbarch.c, gdbarch.h: Regenerate.
6184 2007-06-09 Markus Deuling <deuling@de.ibm.com>
6186 * gdbarch.sh (SKIP_PROLOGUE): Replace by gdbarch_skip_prologue.
6187 * symtab.c (find_function_start_sal, in_prologue): Likewise.
6188 * linespec.c (minsym_found): Likewise.
6189 * infrun.c (step_into_function): Likewise.
6190 * gdbarch.c, gdbarch.h: Regenerate.
6192 2007-06-09 Markus Deuling <deuling@de.ibm.com>
6194 * gdbarch.sh (NAME_OF_MALLOC): Replace by gdbarch_name_of_malloc.
6195 * valops.c (value_allocate_space_in_inferior): Likewise.
6196 * gdbarch.c, gdbarch.h: Regenerate.
6198 2007-06-09 Markus Deuling <deuling@de.ibm.com>
6200 * gdbarch.sh (MEMORY_INSERT_BREAKPOINT): Replace by
6201 gdbarch_memory_insert_breakpoint.
6202 * mem-break.c (memory_insert_breakpoint): Likewise.
6203 * gdbarch.sh (MEMORY_REMOVE_BREAKPOINT): Replace by
6204 gdbarch_memory_remove_breakpoint.
6205 * mem-break.c (memory_remove_breakpoint): Likewise.
6206 * gdbarch.c, gdbarch.h: Regenerate.
6208 2007-06-09 Markus Deuling <deuling@de.ibm.com>
6210 * gdbarch.sh (FETCH_TLS_LOAD_MODULE_ADDRESS): Replace by
6211 gdbarch_fetch_tls_load_module_address.
6212 * gdbarch.sh (FETCH_TLS_LOAD_MODULE_ADDRESS_P): Replace by
6213 gdbarch_fetch_tls_load_module_address_p.
6214 * gdbarch.c, gdbarch.h: Regenerate.
6216 2007-06-09 Markus Deuling <deuling@de.ibm.com>
6218 * gdbarch.sh (DECR_PC_AFTER_BREAK): Replace by
6219 gdbarch_decr_pc_after_break.
6220 * tracepoint.c (trace_dump_command): Likewise.
6221 * solib-sunos.c (sunos_solib_create_inferior_hook): Likewise.
6222 * linux-thread-db.c (check_event): Likewise.
6223 * linux-nat.c (cancel_breakpoints_callback): Likewise.
6224 * infrun.c (adjust_pc_after_break, normal_stop): Likewise.
6225 * frame.h: Likewise (comment).
6226 * dummy-frame.c (deprecated_pc_in_call_dummy): Likewise.
6227 * aix-thread.c (aix_thread_wait): Likewise.
6228 * gdbarch.c, gdbarch.h: Regenerate.
6230 2007-06-09 Markus Deuling <deuling@de.ibm.com>
6232 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS): Replace by
6233 gdbarch_address_class_type_flags.
6234 * dwarf2read.c (read_tag_pointer_type): Likewise.
6235 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS_P): Replace by
6236 gdbarch_address_class_type_flags_p.
6237 * dwarf2read.c (read_tag_pointer_type): Likewise.
6238 * gdbarch.c, gdbarch.h: Regenerate.
6240 2007-06-09 Markus Deuling <deuling@de.ibm.com>
6242 * gdbarch.sh (ADDR_BITS_REMOVE): Replace by gdbarch_addr_bits_remove.
6243 * value.c (value_as_address): Likewise (comment).
6244 * remote-mips.c (common_breakpoint): Likewise.
6245 * regcache.c (read_pc_pid): Likewise.
6246 * printcmd.c (do_one_display): Likewise.
6247 * monitor.c (monitor_write_memory, monitor_read_memory)
6248 (monitor_insert_breakpoint): Likewise.
6249 * mips-tdep.c (heuristic_proc_start): Likewise.
6250 * infrun.c (insert_step_resume_breakpoint_at_frame)
6251 (insert_step_resume_breakpoint_at_caller): Likewise.
6252 * buildsym.c (record_line): Likewise.
6253 * arm-tdep.c (arm_scan_prologue, thumb_get_next_pc)
6254 (arm_get_next_pc): Likewise.
6255 * armnbsd-nat.c (arm_supply_gregset, fetch_register, store_register)
6256 (store_regs): Likewise.
6257 * arm-linux-tdep.c (arm_linux_supply_gregset): Likewise.
6258 * arm-linux-nat.c (fetch_register, fetch_regs): Likewise.
6259 * gdbarch.c, gdbarch.h: Regenerate.
6261 2007-06-09 Markus Deuling <deuling@de.ibm.com>
6263 * gdbarch.sh (REGISTER_NAME): Replace by gdbarch_register_name.
6264 * tracepoint.c (scope_info): Likewise.
6265 * target.c (debug_print_register): Likewise.
6266 * stack.c (frame_info): Likewise.
6267 * sh-tdep.c (sh_register_reggroup_p): Likewise.
6268 * sh64-tdep.c (sh64_do_fp_register, sh64_do_register)
6269 (sh64_media_print_registers_info)
6270 (sh64_compact_print_registers_info): Likewise.
6271 * rs6000-tdep.c (rs6000_register_reggroup_p): Likewise.
6272 * remote-sim.c (gdbsim_fetch_register): Likewise.
6273 * remote.c (packet_reg): Likewise (comment).
6274 * reggroups.c (default_register_reggroup_p): Likewise.
6275 * regcache.c (regcache_dump): Likewise.
6276 * printcmd.c (address_info): Likewise.
6277 * ppc-linux-nat.c (fetch_register, store_register): Likewise.
6278 * mt-dep.c (mt_registers_info): Likewise.
6279 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Likewise (comment).
6280 * mips-tdep.c (mips_register_reggroup_p, mips_read_fp_register_single)
6281 (mips_read_fp_register_double, mips_print_fp_register)
6282 (mips_print_register, print_gp_register_row, mips_print_registers_info)
6283 (mips_register_sim_regno): Likewise.
6284 * m68klinux-nat.c (regmap, fetch_register, store_register): Likewise.
6285 * inf-ptrace.c (inf_ptrace_fetch_register)
6286 (inf_ptrace_store_register): Likewise.
6287 * infcmd.c (default_print_registers_info): Likewise.
6288 * ia64-linux-nat.c (ia64_linux_fetch_register)
6289 (ia64_linux_store_register): Likewise.
6290 * i386-linux-nat.c (fetch_register, store_register): Likewise.
6291 * i386gnu-nat.c (gnu_fetch_registers, gnu_store_registers): Likewise.
6292 * hppa-linux-nat.c (fetch_register, store_register): Likewise.
6293 * hppa-hpux-nat.c (hppa_hpux_fetch_register)
6294 (hppa_hpux_store_register): Likewise.
6295 * findvar.c (locate_var_value): Likewise.
6296 * dwarf2loc.c (locexpr_describe_location): Likewise.
6297 * dwarf2-frame.c (execute_cfa_program): Likewise.
6298 * arm-tdep.c (arm_push_dummy_call): Likewise.
6299 * arch-utils.c (legacy_register_sim_regno): Likewise.
6300 * alpha-tdep.c (alpha_register_reggroup_p): Likewise.
6301 * alpha-nat.c (fetch_osf_core_registers): Likewise.
6302 * mi/mi-main.c (mi_cmd_data_list_register_names)
6303 (mi_cmd_data_list_changed_registers, mi_cmd_data_list_register_values)
6304 (mi_cmd_data_write_register_values): Likewise.
6305 * gdbarch.c, gdbarch.h: Regenerate.
6307 2007-06-07 Daniel Jacobowitz <dan@codesourcery.com>
6309 * target-memory.c (blocks_to_erase): Correct off-by-one error.
6311 2007-06-06 Vladimir Prus <vladimir@codesourcery.com>
6313 * remote.c (process_g_packet): Don't check size.
6314 * gdbarch.sh: Remove register_bytes_ok.
6315 * gdbarch.c: Regenerated.
6316 * gdbarch.h: Regenerated.
6317 * m68k-tdep.c (REGISTER_BYTES_NOFP): Remove.
6318 (m68k_register_bytes_ok): Remove.
6319 (m68k_gdbarch_init): Don't register m68k_register_bytes_ok.
6321 2007-06-06 Andreas Schwab <schwab@suse.de>
6323 * libunwind-frame.c (unw_destroy_addr_space_p): Define.
6324 (destroy_addr_space_name): Define.
6325 (libunwind_load): Get address of destroy_addr_space function.
6326 (libunwind_frame_cache): Destroy unw_addr_space_t object before
6327 returning unsuccessfully.
6328 (libunwind_frame_sniffer): Destroy unw_addr_space_t object before
6330 (libunwind_sigtramp_frame_sniffer): Likewise.
6331 (libunwind_get_reg_special): Likewise.
6333 2007-06-06 Markus Deuling <deuling@de.ibm.com>
6335 * gdbarch.sh (FETCH_POINTER_ARGUMENT): Replace by
6336 gdbarch_fetch_pointer_argument.
6337 * objc-lang.c (OBJC_FETCH_POINTER_ARGUMENT): Likewise.
6338 * gdbarch.c, gdbarch.h: Regenerate.
6340 2007-06-06 Markus Deuling <deuling@de.ibm.com>
6342 * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Replace by
6343 gdbarch_have_nonsteppable_watchpoint.
6344 * infrun.c (handle_inferior_event, adjust_pc_after_break): Likewise.
6345 * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Replace by
6346 gdbarch_cannot_step_breakpoint.
6347 * infrun.c (resume): Likewise.
6348 * gdbarch.c, gdbarch.h: Regenerate.
6350 2007-06-06 Markus Deuling <deuling@de.ibm.com>
6352 * gdbarch.sh (FRAME_ARGS_SKIP): Replace by gdbarch_frame_args_skip.
6353 * stack.c (print_frame_args): Likewise.
6354 * gdbarch.sh (FRAME_NUM_ARGS): Replace by gdbarch_frame_num_args.
6355 * stack.c (print_args_stub, frame_info): Likewise.
6356 * gdbarch.sh (FRAME_NUM_ARGS_P): Replace by gdbarch_frame_num_args_p.
6357 * stack.c (print_args_stub, frame_info): Likewise.
6358 * gdbarch.c, gdbarch.h: Regenerate.
6360 2007-06-06 Markus Deuling <deuling@de.ibm.com>
6362 * gdbarch.sh (COFF_MAKE_MSYMBOL_SPECIAL): Replace by
6363 gdbarch_coff_make_msymbol_special.
6364 * coffread.c (coff_symtab_read): Likewise.
6365 * gdbarch.sh (ELF_MAKE_MSYMBOL_SPECIAL): Replace by
6366 gdbarch_elf_make_msymbol_special.
6367 * elfread.c (elf_symtab_read): Likewise.
6368 * mips-tdep.c (mips_elf_make_msymbol_special): Likewise (comment).
6369 * sh64-tdep.c (MSYMBOL_IS_SPECIAL): Likewise (comment).
6370 * gdbarch.c, gdbarch.h: Regenerate.
6372 2007-06-06 Markus Deuling <deuling@de.ibm.com>
6374 * gdbarch.sh (FRAME_RED_ZONE_SIZE): Replace by
6375 gdbarch_frame_red_zone_size.
6376 * gdbarch.c, gdbarch.h: Regenerate.
6378 2007-06-06 Markus Deuling <deuling@de.ibm.com>
6380 * gdbarch.sh (INNER_THAN): Replace by gdbarch_inner_than.
6381 * infcall.c (call_function_by_hand): Likewise.
6382 * gcore.c (derive_stack_segment): Likewise.
6383 * frame.c (frame_id_inner): Likewise.
6384 * arch-utils.c (core_addr_lessthan): Likewise (comment).
6385 * ada-lang.c (ensure_lval): Likewise.
6386 * gdbarch.c, gdbarch.h: Regenerate.
6388 2007-06-06 Markus Deuling <deuling@de.ibm.com>
6390 * gdbarch.sh (ADDRESS_TO_POINTER): Replace by
6391 gdbarch_address_to_pointer.
6392 * findvar.c (store_typed_address): Likewise.
6393 * gdbtypes.c (make_pointer_type): Likewise (comment).
6394 * procfs.c (procfs_address_to_host_pointer): Likewise.
6395 * std-regs.c (value_of_builtin_frame_reg): Likewise.
6396 (value_of_builtin_frame_fp_reg): Likewise.
6397 (value_of_builtin_frame_pc_reg): Likewise.
6398 * utils.c (paddress): Likewise (comment).
6399 * gdbarch.sh (POINTER_TO_ADDRESS): Replace by
6400 gdbarch_pointer_to_address.
6401 * findvar.c (extract_typed_address): Likewise.
6402 * gdbtypes.c (make_pointer_type): Likewise (comment).
6403 * valops.c (value_cast): Likewise (comment).
6404 * gdbarch.c, gdbarch.h: Regenerate.
6406 2007-06-06 Markus Deuling <deuling@de.ibm.com>
6408 * gdbarch.sh (GET_LONGJMP_TARGET): Replace by gdbarch_get_longjmp_target.
6409 * infrun.c (handle_inferior_event): Likewise.
6410 * gdbarch.sh (GET_LONGJMP_TARGET_P): Replace by
6411 gdbarch_get_longjmp_target_p.
6412 * breakpoint.c (breakpoint_re_set): Likewise.
6413 * infrun.c (handle_inferior_event): Likewise.
6414 * gdbarch.c, gdbarch.h: Regenerate.
6416 2007-06-06 Ulrich Weigand <uweigand@de.ibm.com>
6418 * hppa-hpux-tdep.c (args_for_find_stub, HP_ACC_EH_notify_hook,
6419 HP_ACC_EH_set_hook_value, HP_ACC_EH_notify_callback, HP_ACC_EH_break,
6420 HP_ACC_EH_catch_throw, HP_ACC_EH_catch_catch, __eh_notification,
6421 hp_cxx_exception_support, hp_cxx_exception_support_initialized,
6422 eh_notify_hook_addr, eh_notify_callback_addr, eh_break_addr,
6423 eh_catch_throw_addr, break_callback_sal, setup_d_pid_in_inferior,
6424 find_stub_with_shl_get, cover_find_stub_with_shl_get,
6425 initialize_hp_cxx_exception_support, child_enable_exception_callback,
6426 current_ex_event, child_get_current_exception_event): Remove.
6427 (hppa_hpux_inferior_created): Remove.
6428 (hppa_hpux_init_abi): Do not install hppa_hpux_inferior_created.
6430 * breakpoint.h (deprecated_exception_catchpoints_are_fragile): Remove.
6431 (deprecated_exception_support_initialized): Remove.
6432 * breakpoint.c (deprecated_exception_catchpoints_are_fragile): Remove.
6433 (deprecated_exception_support_initialized): Remove.
6434 (breakpoint_init_inferior): Remove handling of non-zero
6435 deprecated_exception_catchpoints_are_fragile.
6437 * symtab.h (deprecated_hp_som_som_object_present): Remove.
6438 * symtab.c (deprecated_hp_som_som_object_present): Remove.
6439 * c-typeprint.c (c_type_print_base): Remove handling of non-zero
6440 deprecated_hp_som_som_object_present.
6441 * eval.c (evaluate_subexp_standard): Likewise.
6442 * valops.c (value_cast): Likewise.
6444 * parse.c (parse_nested_classes_for_hpacc, coloncolon): Remove.
6445 * parser-defs.h (parse_nested_classes_for_hpacc): Remove.
6446 * c-exp.y (yylex): Do not call parse_nested_classes_for_hpacc.
6448 2007-06-06 Ulrich Weigand <uweigand@de.ibm.com>
6450 * objfiles.h (ImportEntry, ExportEntry): Remove types.
6451 (struct objfile): Remove import_list, import_list_size,
6452 export_list, export_list_size members.
6453 (is_in_import_list): Remove prototype.
6454 * objfiles.c (is_in_import_list): Remove.
6455 * somread.c (init_import_symbols, init_export_symbols): Remove.
6456 (som_symfile_read): Do not call init_import_symbols. Do not
6457 set objfile->export_list and objfile->export_list_size.
6459 2007-06-05 Daniel Jacobowitz <dan@codesourcery.com>
6461 * dwarf2read.c (dwarf2_symbol_mark_computed): Fix formatting.
6462 Use the original objfile if necessary.
6464 2007-06-04 Daniel Jacobowitz <dan@codesourcery.com>
6466 * defs.h (ldirname): New prototype.
6467 * dwarf2read.c (read_file_scope): Use DW_AT_name if DW_AT_comp_dir is
6469 * utils.c (ldirname): New function.
6470 * xml-tdesc.c (file_read_description_xml): Use ldirname.
6472 2007-06-01 Ulrich Weigand <uweigand@de.ibm.com>
6474 * spu-tdep.c (spu_push_dummy_call): Store stack back chain.
6476 2007-06-01 Joel Brobecker <brobecker@adacore.com>
6478 * solib-svr4.c (svr4_solib_create_inferior_hook): Remove warning.
6480 2007-06-01 Ulrich Weigand <uweigand@de.ibm.com>
6482 * irix5-nat.c (JB_ELEMENT_SIZE, get_longjmp_target): Remove.
6484 2007-06-01 Ulrich Weigand <uweigand@de.ibm.com>
6486 * ppc-linux-tdep.c (INSTR_SC, INSTR_LI_R0_0x6666, INSTR_LI_R0_0x7777,
6487 INSTR_LI_R0_NR_sigreturn, INSTR_LI_R0_NR_rt_sigreturn): Remove.
6488 (PPC_LINUX_SIGNAL_FRAMESIZE, PPC_LINUX_REGS_PTR_OFFSET,
6489 PPC_LINUX_HANDLER_PTR_OFFSET): Remove.
6490 (ppc_linux_in_sigtramp, insn_is_sigreturn,
6491 ppc_linux_at_sigtramp_return_path): Remove.
6493 2007-05-31 Markus Deuling <deuling@de.ibm.com>
6495 * xtensa-tdep.c (XTENSA_IS_ENTRY, extract_call_winsize)
6496 (xtensa_register_write_masked, xtensa_register_read_masked)
6497 (xtensa_extract_return_value, xtensa_store_return_value
6498 (xtensa_push_dummy_call, xtensa_breakpoint_from_pc): Replace
6499 TARGET_BYTE_ORDER by gdbarch_byte_order.
6500 * sh-tdep.c (sh_breakpoint_from_pc, gdb_print_insn_sh)
6501 (sh_justify_value_in_reg, sh_next_flt_argreg, sh_push_dummy_call_fpu)
6502 (sh_extract_return_value_fpu, sh_store_return_value_fpu): Likewise.
6503 * sh64-tdep.c (sh64_breakpoint_from_pc, gdb_print_insn_sh64)
6504 (sh64_push_dummy_call, sh64_extract_return_value)
6505 (sh64_store_return_value, sh64_register_convert_to_virtual)
6506 (sh64_register_convert_to_raw, sh64_pseudo_register_read)
6507 (sh64_pseudo_register_write, sh64_do_fp_register)
6508 (sh64_frame_prev_register): Likewise.
6509 * score-tdep.c (score_print_insn, score_breakpoint_from_pc)
6510 (score_return_value, score_push_dummy_call, score_fetch_inst): Likewise.
6511 * rs6000-tdep.c (rs6000_breakpoint_from_pc, rs6000_push_dummy_call)
6512 (e500_move_ev_register,gdb_print_insn_powerpc): Likewise.
6513 * remote-m32r-sdi.c (m32r_resume, m32r_wait): Likewise.
6514 * ppc-linux-nat.c (store_register): Likewise.
6515 * nto-tdep.c (nto_find_and_open_solib)
6516 (nto_init_solib_absolute_prefix): Likewise.
6517 * mips-tdep.c (mips_pseudo_register_read, mips_pseudo_register_write)
6518 (mips_convert_register_p, mips_eabi_push_dummy_call)
6519 (mips_n32n64_push_dummy_call, mips_n32n64_return_value)
6520 (mips_o32_push_dummy_call, mips_o32_return_value)
6521 (mips_o64_push_dummy_call, mips_o64_return_value, mips_o64_return_value)
6522 (mips_read_fp_register_single, mips_read_fp_register_double)
6523 (mips_print_register, print_gp_register_row, gdb_print_insn_mips)
6524 (mips_breakpoint_from_pc): Likewise.
6525 * mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset): Likewise.
6526 * mips-linux-tdep.c (mips64_supply_fpregset, mips64_fill_fpregset)
6527 (mips_linux_o32_sigframe_init): Likewise.
6528 * m32r-tdep.c (m32r_memory_insert_breakpoint)
6529 (m32r_memory_remove_breakpoint, m32r_breakpoint_from_pc): Likewise.
6530 * libunwind-frame.c (libunwind_frame_cache, libunwind_frame_sniffer)
6531 (libunwind_sigtramp_frame_sniffer, libunwind_get_reg_special): Likewise.
6532 * iq2000-tdep.c (iq2000_breakpoint_from_pc): Likewise.
6533 * coffread.c (process_coff_symbol): Likewise.
6534 * arm-tdep.c (convert_from_extended, convert_to_extended)
6535 (gdb_print_insn_arm): Likewise.
6537 2007-05-31 Markus Deuling <deuling@de.ibm.com>
6539 * gdbarch.sh (NUM_REGS): Replace by gdbarch_num_regs.
6540 * i386-tdep.c (i386_dbx_reg_to_regnum)
6541 (i386_svr4_reg_to_regnum): Likewise.
6542 * inf-ptrace.c (inf_ptrace_fetch_registers)
6543 (inf_ptrace_store_registers): Likewise.
6544 * corelow.c (get_core_registers): Likewise.
6545 * i386-linux-nat.c (supply_gregset, fill_gregset)
6546 (i386_linux_fetch_inferior_registers)
6547 (i386_linux_store_inferior_registers): Likewise.
6548 * remote.c (init_remote_state,packet_reg_from_regnum)
6549 (packet_reg_from_pnum,process_g_packet,remote_fetch_registers)
6550 (remote_prepare_to_store,store_registers_using_G)
6551 (remote_store_registers,remote_arch_state): Likewise.
6552 * tracepoint.c (encode_actions): Likewise.
6553 * mi/mi-main.c (mi_cmd_data_list_register_names)
6554 (mi_cmd_data_list_changed_registers,mi_cmd_data_list_register_values)
6555 (mi_cmd_data_write_register_values): Likewise.
6556 * tui/tui-regs.c (tui_show_register_group)
6557 (tui_show_register_group): Likewise.
6558 * xtensa-tdep.h (FP_ALIAS): Likewise.
6559 * xtensa-tdep.c (xtensa_register_name,xtensa_register_type)
6560 (xtensa_reg_to_regnum,xtensa_pseudo_register_read)
6561 (xtensa_pseudo_register_write,xtensa_register_reggroup_p): Likewise.
6562 * win32-nat.c (do_win32_fetch_inferior_registers)
6563 (do_win32_store_inferior_registers,fetch_elf_core_registers
6564 * user-regs.h: Likewise (comment).
6565 * user-regs.c (user_reg, user_reg_map_name_to_regnum): Likewise.
6566 * trad-frame.c (trad_frame_alloc_saved_regs): Likewise.
6567 * target-descriptions.h: Likewise (comment).
6568 * target-descriptions.c (tdesc_use_registers): Likewise (comment).
6569 * target.c (debug_print_register): Likewise.
6570 * stack.c (frame_info): Likewise.
6571 * stabsread.c (define_symbol): Likewise.
6572 * sh64-tdep.c (sh64_do_pseudo_register,sh64_print_register)
6573 (sh64_media_print_registers_info)
6574 (sh64_compact_print_registers_info): Likewise.
6575 * rs6000-tdep.c (rs6000_register_sim_regno): Likewise.
6576 * rs6000-nat.c (fetch_register,store_register): Likewise.
6577 * remote-sim.c (one2one_register_sim_regno,gdbsim_fetch_register)
6578 (gdbsim_fetch_register,gdbsim_store_register): Likewise.
6579 * remote-mips.c (mips_fetch_registers,mips_store_registers): Likewise.
6580 * remote-m32r-sdi.c (m32r_fetch_registers)
6581 (m32r_store_registers): Likewise.
6582 * reggroups.c (default_register_reggroup_p): Likewise.
6583 * regcache.c (init_regcache_descr,register_size,regcache,regcache_save)
6584 (regcache_restore,regcache_dump): Likewise.
6585 * monitor.c (monitor_fetch_registers,monitor_store_registers): Likewise.
6586 * mips-tdep.c (mips_xfer_register,mips_register_name)
6587 (mips_register_reggroup_p,mips_pseudo_register_read)
6588 (mips_pseudo_register_write,mips_convert_register_p,mips_register_type)
6589 (mips_unwind_pc,mips_unwind_sp,mips_unwind_dummy_id,set_reg_offset)
6590 (mips16_scan_prologue,mips_insn16_frame_cache,reset_saved_regs)
6591 (mips32_scan_prologue,mips_insn32_frame_cache,read_next_frame_reg)
6592 (mips_n32n64_return_value,mips_o32_return_value,mips_o64_return_value)
6593 (print_gp_register_row,mips_print_registers_info)
6594 (mips_stab_reg_to_regnum,mips_dwarf_dwarf2_ecoff_reg_to_regnum)
6595 (mips_register_sim_regno): Likewise.
6596 * mips-linux-tdep.c (mips_linux_o32_sigframe_init)
6597 (mips_linux_n32n64_sigframe_init): Likewise.
6598 * mips-linux-nat.c (mips_linux_register_addr)
6599 (mips64_linux_register_addr): Likewise.
6600 * findvar.c (value_of_register): Likewise.
6601 * infcmd.c (default_print_registers_info,registers_info)
6602 (print_vector_info,print_float_info): Likewise.
6603 * mips64obsd-tdep.c (mips64obsd_sigframe_init): Likewise.
6604 * inf-child.c (inf_child_fetch_inferior_registers): Likewise.
6605 * m68k-tdep.c (m68k_dwarf_reg_to_regnum): Likewise.
6606 * m68hc11-tdep.c (m68hc11_frame_unwind_cache(: Likewise.
6607 * m32r-tdep.c (m32r_frame_unwind_cache): Likewise.
6608 * ia64-linux-nat.c (ia64_register_addr,ia64_cannot_fetch_register)
6609 (ia64_cannot_store_register,ia64_linux_fetch_registers)
6610 (ia64_linux_store_registers): Likewise.
6611 * hpux-thread.c (hpux_thread_fetch_registers)
6612 (hpux_thread_store_registers): Likewise.
6613 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM,E_PSEUDO_EXR_REGNUM)
6614 (h8300_init_frame_cache,h8300_frame_cache,h8300_frame_prev_register)
6615 (h8300_register_type): Likewise.
6616 * dwarf2-frame.c (dwarf2_frame_cache)
6617 (dwarf2_frame_state_alloc_regs): Likewise.
6618 * cris-tdep.c (cris_register_size,cris_cannot_fetch_register)
6619 (cris_cannot_store_register,crisv32_cannot_fetch_register)
6620 (crisv32_cannot_store_register,cris_register_name): Likewise.
6621 * avr-tdep.c (avr_frame_unwind_cache): Likewise.
6622 * arch-utils.c (legacy_register_sim_regno)
6623 (legacy_virtual_frame_pointer): Likewise.
6624 * arm-tdep.c (arm_make_prologue_cache,arm_register_sim_regno):Likewise.
6625 * arm-tdep.h: Likewise (comment).
6626 * frv-tdep.c (frv_register_sim_regno): Likewise.
6627 * m68klinux-nat.c (old_fetch_inferior_registers)
6628 (old_store_inferior_registers): Likewise.
6629 * m32c-tdep.c (m32c_virtual_frame_pointer): Likewise.
6630 * irix5-nat.c (fetch_core_registers): Likewise.
6631 * hppa-tdep.c (hppa_frame_cache): Likewise.
6632 * hppa-linux-nat.c (hppa_linux_register_addr)
6633 (hppa_linux_fetch_inferior_registers)
6634 (hppa_linux_store_inferior_registers): Likewise.
6635 * hppa-hpux-nat.c (hppa_hpux_fetch_inferior_registers)
6636 (hppa_hpux_store_inferior_registers): Likewise.
6637 * amd64-nat.c (amd64_native_gregset_reg_offset)
6638 (amd64_supply_native_gregset,amd64_collect_native_gregset): Likewise.
6639 * dbug-rom.c (dbug_regname): Likewise.
6640 * m68hc11-tdep.c (m68hc11_frame_unwind_cache)
6641 (HARD_PAGE_REGNUM (comment)): Likewise.
6642 * gdbarch.sh (NUM_PSEUDO_REGS): Replace by gdbarch_num_pseudo_regs.
6643 * i386-tdep.c (i386_dbx_reg_to_regnum)
6644 (i386_svr4_reg_to_regnum): Likewise.
6645 * mi/mi-main.c (mi_cmd_data_list_register_names)
6646 (mi_cmd_data_list_changed_registers,mi_cmd_data_list_register_values)
6647 (mi_cmd_data_write_register_values): Likewise.
6648 * gdbarch.c, gdbarch.h: Regenerate.
6649 * tui/tui-regs.c (tui_show_register_group): Likewise.
6650 * xtensa-tdep.h (FP_ALIAS): Likewise.
6651 * user-regs.h: Likewise (comment).
6652 * user-regs.c (user_reg, user_reg_map_name_to_regnum): Likewise.
6653 * trad-frame.c (trad_frame_alloc_saved_regs): Likewise.
6654 * target-descriptions.h: Likewise (comment).
6655 * target.c (debug_print_register): Likewise.
6656 * stack.c (frame_info): Likewise.
6657 * stabsread.c (define_symbol): Likewise.
6658 * sh64-tdep.c (sh64_print_register,sh64_media_print_registers_info)
6659 (sh64_compact_print_registers_info): Likewise.
6660 * rs6000-tdep.c (rs6000_register_sim_regno): Likewise.
6661 * regcache.c (init_regcache_descr,register_size,regcache,regcache_save
6662 (regcache_restore,regcache_dump): Likewise.
6663 * mips-tdep.c (print_gp_register_row,mips_print_registers_info)
6664 (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
6665 (mips_stab_reg_to_regnum): Likewise.
6666 * findvar.c (value_of_register): Likewise.
6667 * infcmd.c (default_print_registers_info,registers_info)
6668 (print_vector_info,print_float_info): Likewise.
6669 * m68k-tdep.c (m68k_dwarf_reg_to_regnum): Likewise.
6670 * h8300-tdep.c (h8300_register_type): Likewise.
6671 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
6672 * frame.h (SIZEOF_FRAME_SAVED_REGS): Likewise.
6673 * xtensa-tdep.c (xtensa_register_type,xtensa_reg_to_regnum)
6674 (xtensa_pseudo_register_read,xtensa_pseudo_register_write): Likewise.
6675 * parse.c: Remove comment.
6676 * gdbarch.c, gdbarch.h: Regenerate
6678 2007-05-31 Markus Deuling <deuling@de.ibm.com>
6680 * gdbarch.sh (CANNOT_FETCH_REGISTER): Replace by
6681 gdbarch_cannot_fetch_register.
6682 * alpha-nat.c (fetch_osf_core_registers): Likewise.
6683 * hppa-linux-nat.c (fetch_register): Likewise.
6684 * inf-ptrace.c (inf_ptrace_fetch_register): Likewise.
6685 * m68klinux-nat.c (fetch_register): Likewise.
6686 * mipsnbsd-tdep.c (mipsnbsd_supply_reg, mipsnbsd_supply_fpreg):
6688 * gdbarch.sh (CANNOT_STORE_REGISTER): Replace by
6689 gdbarch_cannot_store_register.
6690 * hppa-linux-nat.c (store_register): Likewise.
6691 * inf-ptrace.c (inf_ptrace_store_register): Likewise.
6692 * regcache.c (regcache_raw_write): Likewise.
6693 * m68klinux-nat.c (store_register): Likewise.
6694 * mipsnbsd-tdep.c (mipsnbsd_fill_reg, mipsnbsd_fill_fpreg): Likewise.
6695 * gdbarch.c, gdbarch.h: Regenerate.
6697 2007-05-31 Markus Deuling <deuling@de.ibm.com>
6699 * gdbarch.sh (TARGET_OSABI): Replace by gdbarch_osabi.
6700 * gdbarch.c, gdbarch.h: Regenerate.
6702 2007-05-31 Markus Deuling <deuling@de.ibm.com>
6704 * gdbarch.sh (TARGET_CHAR_SIGNED): Replace by gdbarch_char_signed.
6705 * gdbtypes.c (build_gdbtypes, gdbtypes_post_init): Likewise.
6706 * gdbarch.c, gdbarch.h: Regenerate.
6708 2007-05-31 Markus Deuling <deuling@de.ibm.com>
6710 * gdbarch.sh (TARGET_BYTE_ORDER): Replace by gdbarch_byte_order.
6711 * ax-gdb.c (gen_bitfield_ref): Likewise.
6712 * mi/mi-main.c (get_register): Likewise.
6713 * findvar.c (default_value_from_register, extract_signed_integer)
6714 (extract_unsigned_integer, extract_long_unsigned_integer)
6715 (store_signed_integer, store_unsigned_integer): Likewise.
6716 * regcache.c (regcache_dump): Likewise.
6717 * value.c (lookup_internalvar, value_of_internalvar)
6718 (set_internalvar): Likewise.
6720 * valprint.c (print_binary_chars, print_octal_chars)
6721 (print_decimal_chars, print_hex_chars, print_char_chars): Likewise.
6722 * infcmd.c (default_print_registers_info): Likewise.
6723 * arch-utils.c (selected_byte_order, show_endian): Likewise.
6724 * stabsread.c (define_symbol): Likewise.
6725 * doublest.c (floatformat_from_length, floatformat_from_type)
6726 (extract_typed_floating, store_typed_floating): Likewise.
6727 * gdbarch.c, gdbarch.h: Regenerate.
6729 2007-05-31 Markus Deuling <deuling@de.ibm.com>
6731 * gdbarch.sh (CALL_DUMMY_LOCATION): Replace by
6732 gdbarch_call_dummy_location.
6733 * infcall.c (call_function_by_hand): Likewise.
6734 * inferior.h: Change comment.
6735 * arch-utils.c: Change comment.
6736 * gdbarch.c, gdbarch.h: Regenerate.
6738 2007-05-28 Joel Brobecker <brobecker@adacore.com>
6740 * solib-aix5.c: Delete.
6741 * Makefile.in (solib-aix5.o): Delete rule.
6743 2007-05-23 Daniel Jacobowitz <dan@codesourcery.com>
6745 * breakpoint.h (enum bpstat_what_main_action): Remove
6746 BPSTAT_WHAT_THROUGH_SIGTRAMP.
6747 * infrun.c (process_event_stop_test): Do not check for it.
6749 2007-05-22 Chris Dearman <chris@mips.com>
6750 Maciej W. Rozycki <macro@mips.com>
6752 * ser-unix.c (show_serial_hwflow): New function.
6753 (hardwire_raw): Add hardware flow control support.
6754 (_initialize_ser_hardwire): Add "set/show remoteflow".
6755 * Makefile.in (ser-unix.o): Depend on $(gdbcmd_h).
6756 * NEWS: Document the new command.
6758 2007-05-21 Ulrich Weigand <uweigand@de.ibm.com>
6760 * config/i386/tm-linux.h (sys_quotactl): Do not define.
6761 * configure.ac (sys_quotactl, START_INFERIOR_TRAPS_EXPECTED): Do not
6762 define for i[[3456]]86-*-linux* native configurations.
6763 * config.in, configure: Regenerate.
6765 2007-05-19 Joel Brobecker <brobecker@adacore.com>
6767 * rs6000-nat.c (xcoff_relocate_symtab): Do nothing if debugging
6768 a core file. Add comment in the function description.
6770 2007-05-18 Caroline Tice <ctice@apple.com>
6772 * c-valprint.c (c_value_print): If the initialized field of the
6773 value struct is 0, print out "[uninitialized]" before the value.
6774 * dwarf2expr.c (execute_stack_op): Initialize ctx->initialized field;
6775 allow DW_OP_GNU_uninit as legal op following a DW_OP_reg op or a
6776 DW_OP_regx op; add case for DW_OP_GNU_uninit and update
6777 ctx->initialized appropriately. Verify no location op follows
6779 * dwarf2expr.h (struct dwarf_expr_context): New field, initialized.
6780 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Add call to
6781 set_value_initialized.
6782 * dwarf2read.c (dwarf_stack_op_name): Add case for DW_OP_GNU_uninit.
6783 (decode_locdesc): Add case for DW_OP_GNU_uninit.
6784 * value.c (struct value): New field, initialized.
6785 (allocate_value): Initialize new field.
6786 (set_value_initialized): New function.
6787 (value_initialized): New function.
6788 * value.h (value_initialized): New extern declaration.
6789 (set_value_initialized): Likewise.
6791 2007-05-18 Caroline Tice <ctice@apple.com>
6793 * MAINTAINERS (Write After Approval): Add self.
6795 2007-05-17 Joel Brobecker <brobecker@adacore.com>
6797 * gdbtypes.c (make_reference_type): Preserve the type chain
6798 and set the length of all the variants of the pointer type.
6800 2007-05-17 Joel Brobecker <brobecker@adacore.com>
6802 * gdbtypes.c (make_pointer_type): Preserve the pointer type chain
6803 and set the length of all the variants of the pointer type.
6805 2007-05-17 Maciej W. Rozycki <macro@mips.com>
6807 * mips-tdep.c (mips_n32n64_push_dummy_call): Fix and reformat a
6809 (mips_o64_push_dummy_call): Reformat a comment.
6811 2007-05-17 Qinwei <qinwei@sunnorth.com.cn>
6813 * score-tdep.c (score_frame_cache->fp, score_analyze_prologue)
6814 (score_prologue_frame_base_address): Return fp to keep gdb print
6815 local variables correctly when debugging information is stabs.
6817 (score_analyze_prologue): For software watchpoint, fetch all the
6818 instructions from range [startaddr, pc] once and identify them locally
6819 to reduce memory access.
6820 (score_malloc_and_get_memblock, score_free_memblock)
6821 (score_adjust_memblock_ptr): New functions.
6822 (score_fetch_inst): Fetch single instruction or mutiple instructions.
6824 (score_target_can_use_watch, score_stopped_by_watch)
6825 (score_target_insert_watchpoint, score_target_remove_watchpoint)
6826 (score_target_insert_hw_breakpoint, score_target_remove_hw_breakpoint):
6827 New functions for remote & local hw-watchpoint and hw-breakpoint.
6829 2007-05-16 Alfred M. Szmidt <ams@gnu.org>
6831 * reply_mig_hack.awk: Check for `auto const mach_msg_type_t'
6832 declarations as well.
6834 2007-05-16 Ulrich Weigand <uweigand@de.ibm.com>
6836 * config/arm/embed.mt (DEPRECATED_TM_FILE): Set to tm-arm.h.
6837 * config/arm/tm-embed.h: Delete file.
6839 * arm-tdep.h (arm_software_single_step): Declare.
6840 * arm-tdep.c (arm_software_single_step): Make global.
6841 (arm_gdbarch_init): Move set_gdbarch_software_single_step call
6843 * arm-linux-tdep.c (arm_linux_init_abi): ... here ...
6844 * armnbsd-tdep.c (arm_netbsd_init_abi_common): ... here ...
6845 * armobsd-tdep.c (armobsd_init_abi): ... here ...
6846 * arm-wince-tdep.c (arm_wince_init_abi): ... and here.
6848 * arm-tdep.c (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT): No longer
6849 allow defines to be overriden by TM file.
6850 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Likewise. Also,
6851 change default to {0xbe,0xbe}.
6852 * armobsd-tdep.c (arm_obsd_thumb_le_breakpoint,
6853 arm_obsd_thumb_be_breakpoint): New global variables.
6854 (armobsd_init_abi): Override tdep->thumb_breakpoint and
6855 tdep->thumb_breakpoint_size.
6856 * arm-wince-tdep.c (arm_wince_thumb_le_breakpoint): New variable.
6857 (arm_wince_init_abi): Override tdep->thumb_breakpoint and
6858 tdep->thumb_breakpoint_size.
6860 * arm-tdep.c (arm_gdbarch_init): Add set_gdbarch_skip_trampoline_code.
6862 2007-05-16 Daniel Jacobowitz <dan@codesourcery.com>
6864 * NEWS: Mention removed "set mips stack-arg-size" and "set mips
6867 * mips-tdep.c (MIPS32_REGSIZE, MIPS64_REGSIZE): New constants.
6868 (size_auto, size_32, size_64, size_enums, mips_abi_regsize_string)
6869 (mips_stack_argsize_string, mips_stack_argsize): Delete.
6870 (mips_abi_regsize): Simplify.
6871 (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call)
6872 (mips_n32n64_return_value, mips_o32_push_dummy_call)
6873 (mips_o32_return_value, mips_o64_push_dummy_call)
6874 (mips_o64_return_value): Propogate constant register sizes. Use the
6875 ABI register size instead of mips_stack_argsize.
6876 (mips_dump_tdep): Don't print mips_stack_argsize.
6877 (_initialize_mips_tdep): Remove saved-gpreg-size and stack-arg-size
6880 2007-05-16 Daniel Jacobowitz <dan@codesourcery.com>
6882 * config/mips/linux.mt (DEPRECATED_TM_FILE): Delete.
6883 * config/mips/tm-linux.h: Delete.
6884 * mips-linux-tdep.c (mips_svr4_so_ops): New.
6885 (mips_linux_in_dynsym_resolve_code): Make static. Use
6886 svr4_in_dynsym_resolve_code.
6887 (mips_linux_init_abi): Initialize mips_svr4_so_ops. Call
6889 * solib-svr4.c (svr4_in_dynsym_resolve_code, svr4_so_ops): Make
6891 * solib-svr4.h (svr4_so_ops, svr4_in_dynsym_resolve_code): Declare.
6892 * Makefile.in (mips-linux-tdep.o): Update.
6893 * solib.c (set_solib_ops): New.
6894 (current_target_so_ops): Update comment.
6895 * solib.h (set_solib_ops): New prototype.
6897 2007-05-16 Chris Dearman <chris@mips.com>
6899 * printcmd.c (do_examine): Fix typos in a comment.
6901 2007-05-16 Richard Sandiford <richard@codesourcery.com>
6903 * configure.ac: Allow sysroots to be relocated under $prefix as
6904 well as $exec_prefix.
6905 * configure: Regenerate.
6907 2007-05-14 Ulrich Weigand <uweigand@de.ibm.com>
6909 * hppa-hpux-tdep.c: Do not include <dl.h> or <machine/save_state.h>.
6910 (offsetof): Do not define.
6911 (find_stub_with_shl_get): Use numerical value 3 instead of
6912 symbolic value TYPE_PROCEDURE.
6914 2007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
6916 * gdb_proc_service.h (paddr_t): Delete typedef.
6917 * proc-service.c (ps_addr_to_core_addr, core_addr_to_ps_addr): New.
6918 (ps_xfer_memory): Take a psaddr_t. Use ps_addr_to_core_addr.
6919 (ps_pglobal_lookup): Take a psaddr_t *. Use core_addr_to_ps_addr.
6920 (ps_pdread, ps_pdwrite, ps_ptread, ps_ptwrite): Take a psaddr_t.
6921 * sol-thread.c (gdb_ps_addr_t): Use psaddr_t instead of paddr_t.
6922 * Makefile.in (proc-service.o): Update.
6924 2007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
6926 * Makefile.in (mips-tdep.o): Update.
6927 * mips-tdep.c (mips_gdbarch_init): Register the dwarf2 CFI
6930 2007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
6932 * dwarf2-frame.c (dwarf2_frame_prev_register): Use pack_long
6933 instead of store_typed_address.
6934 * value.c (pack_long): New.
6935 (value_from_longest): Use it.
6936 * value.h (pack_long): New prototype.
6938 2007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
6940 * dwarf2-frame.c (read_encoded_value): Correct typo. Use
6941 DW_EH_PE_signed if appropriate.
6943 2007-05-14 Paul Brook <paul@codesourcery.com>
6944 Daniel Jacobowitz <dan@codesourcery.com>
6946 * dwarf2read.c (dwarf2_debug_line_missing_file_complaint): New
6948 (dwarf_decode_lines): Check for line info without a file.
6950 2007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
6952 * linux-thread-db.c (thread_db_pid_to_str): Print thread IDs
6955 2007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
6957 * jv-exp.y (push_fieldnames): Use STRUCTOP_PTR instead of
6959 * jv-lang.c (evaluate_subexp_java): Handle STRUCTOP_PTR instead of
6961 * jv-typeprint.c (java_print_type): Do not crash on NULL varstring.
6963 2007-05-14 Ulrich Weigand <uweigand@de.ibm.com>
6965 * gdbarch.sh (read_sp): Remove.
6966 * gdbarch.c, gdbarch.h: Regenerate.
6967 * frame.c (frame_sp_unwind): Do not call TARGET_READ_SP.
6969 * avr-tdep.c (avr_read_sp): Remove.
6970 (avr_unwind_sp): New function.
6971 (avr_gdbarch_init): Install unwind_sp instead of read_sp callback.
6972 * mips-tdep.c (mips_read_sp): Remove.
6973 (mips_unwind_sp): New function.
6974 (mips_gdbarch_init): Install unwind_sp instead of read_sp callback.
6975 * score-tdep.c (score_read_unsigned_register): Remove.
6976 (score_read_sp): Remove.
6977 (score_unwind_sp): New function.
6978 (score_gdbarch_init): Install unwind_sp instead of read_sp callback.
6980 2007-05-14 Maxim Grigoriev <maxim2405@gmail.com>
6982 * buildsym.c (start_subfile): Handle absolute pathnames
6983 while comparing subfile names.
6985 2007-05-13 Ulrich Weigand <uweigand@de.ibm.com>
6987 * hppa-hpux-tdep.c: Include "regcache.h".
6988 * hppa-linux-tdep.c: Likewise.
6989 * hppa-tdep.c: Include "gdb_stdint.h".
6990 (find_unwind_entry): Cast host pointer to uintptr_t before passing
6992 * Makefile.in: Update dependencies.
6994 2007-05-13 Ulrich Weigand <uweigand@de.ibm.com>
6996 * blockframe.c: Remove obsolete comments.
6997 * alpha-nat.c (fetch_osf_core_registers): Update comment.
6998 * arm-tdep.h (enum gdb_regnum): Remove obsolete part of comment.
6999 * hppa-tdep.h (enum hppa_regnum): Likewise.
7000 * mips-tdep.h: Likewise.
7001 * m68hc11-tdep.c: Likewise.
7003 2007-05-13 Ulrich Weigand <uweigand@de.ibm.com>
7005 * inferior.h (read_sp): Remove prototype.
7006 * regcache.c (read_sp): Remove.
7007 * gcore.c (derive_stack_segment): Use get_frame_sp instead of read_sp.
7008 * infcall.c (call_function_by_hand): Likewise.
7009 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Use regcache instead
7011 * rs6000-tdep.c (rs6000_push_dummy_call): Likewise.
7013 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
7015 * i386-linux-nat.c (i386_linux_resume): Use regcache functions
7016 instead of read_register and read_register_pid.
7018 * ia64-linux-nat.c (enable_watchpoints_in_psr): Use REGCACHE
7019 argument instead of PTID. Use regcache functions instead of
7021 (ia64_linux_insert_watchpoint): Update call.
7022 (ia64_linux_stopped_data_address): Use regcache functions
7023 instead of read_register_pid and write_register_pid.
7025 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
7027 * libunwind-frame.h (struct regcache): Add forward declaration.
7028 (libunwind_get_reg_special): Add REGCACHE argument.
7029 * libunwind-frame.c (libunwind_get_reg_special): Add REGCACHE
7030 argument. Pass it to unw_init_remote_p.
7032 * ia64-tdep.c (ia64_pseudo_register_read): Pass regcache to
7033 libunwind_get_reg_special.
7034 (ia64_access_reg): Remove "write" case.
7035 (ia64_access_fpreg): Likewise. Read from next_frame passed
7036 as callback argument instead of from current_regcache.
7037 (ia64_access_rse_reg): Remove "write" case. Read from regcache
7038 passed as callback argument instead of from current_regcache.
7039 (ia64_access_rse_fpreg): New function.
7040 (ia64_unw_rse_acce): Use it instead of ia64_access_fpreg.
7042 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
7044 * NEWS: Mention SPU overlay support.
7046 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
7048 * spu-tdep.c (spu_frame_unwind_cache): Add comment.
7050 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
7052 * breakpoint.c (remove_breakpoint): Do not remove software
7053 breakpoints in unmapped overlay sections.
7055 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
7057 * spu-tdep.c: Include "observer.h".
7058 (spu_frame_unwind_cache): Unwind PC through overlay return stubs.
7059 (spu_overlay_data): New variable.
7060 (struct spu_overlay_table): New type.
7061 (spu_get_overlay_table, spu_overlay_update_osect, spu_overlay_update,
7062 spu_overlay_new_objfile): New functions.
7063 (spu_gdbarch_init): Install spu_overlay_update.
7064 (_initialize_spu_tdep): Register spu_overlay_new_objfile,
7065 allocate spu_overlay_data objfile data.
7067 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
7069 * gdbarch.sh (overlay_update): New gdbarch function.
7070 (struct obj_section): Add forward declaration.
7071 * gdbarch.c, gdbarch.h: Regenerate.
7073 * symfile.c (simple_overlay_update): Make global.
7074 (target_overlay_update): Remove variable.
7075 (overlay_is_mapped): Call gdbarch_overlay_update instead of
7076 target_overlay_update.
7077 (overlay_load_command): Likewise.
7078 * symfile.h (struct obj_section): Add forward declaration.
7079 (simple_overlay_update): Add prototype.
7081 * m32r-tdep.c (m32r_gdbarch_init): Install simple_overlay_update.
7083 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
7085 * observer.sh: Add "struct objfile" forward declaration.
7086 * target.h (deprecated_target_new_objfile_hook): Remove.
7087 * symfile.c (deprecated_target_new_objfile_hook): Remove.
7088 (clear_symtab_users): Call observer_notify_new_objfile.
7089 (symbol_file_add_with_addrs_or_offsets): Likewise.
7090 * rs6000-nat.c: Include "observer.h".
7091 (vmap_ldinfo): Call observer_notify_new_objfile.
7092 (xcoff_relocate_core): Likewise.
7093 * remote.c (remote_new_objfile_chain): Remove.
7094 (remote_new_objfile): Do not call remote_new_objfile_chain.
7095 (_initialize_remote): Use observer_attach_new_objfile.
7096 * tui/tui-hooks.c (tui_target_new_objfile_chain): Remove.
7097 (tui_new_objfile_hook): Do not call tui_target_new_objfile_chain.
7098 (_initialize_tui_hooks): Use observer_attach_new_objfile.
7099 * aix-thread.c: Include "observer.h".
7100 (target_new_objfile_chain): Remove.
7101 (new_objfile): Do not call target_new_objfile_chain.
7102 (_initialize_aix_thread): Use observer_attach_new_objfile.
7103 * hpux-thread.c: Include "observer.h"
7104 (target_new_objfile_chain): Remove.
7105 (hpux_thread_new_objfile): Make static. Do not call
7106 target_new_objfile_chain.
7107 (_initialize_hpux_thread): Use observer_attach_new_objfile.
7108 * linux-thread-db.c: Include "observer.h".
7109 (target_new_objfile_chain): Remove.
7110 (thread_db_new_objfile): Do not call target_new_objfile_chain.
7111 (_initialize_thread_db): Use observer_attach_new_objfile.
7112 * sol-thread.c: Include "observer.h".
7113 (target_new_objfile_chain): Remove.
7114 (sol_thread_new_objfile): Make static. Do not call
7115 target_new_objfile_chain.
7116 (_initialize_sol_thread): Use observer_attach_new_objfile.
7117 * Makefile.in (aix-thread.o, hpux-thread.o, linux-thread-db.o,
7118 rs6000-nat.o, sol-thread.o, tui-hooks.o): Add dependency on
7121 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
7123 * gdbarch.sh (remote_translate_xfer_address): Remove.
7124 * gdbarch.h, gdbarch.c: Regenerate.
7125 * arch-utils.c (generic_remote_translate_xfer_address): Remove.
7126 * arch-utils.h (generic_remote_translate_xfer_address): Remove.
7127 * remote.c (remote_write_bytes_aux, remote_read_bytes): Do not
7128 call gdbarch_remote_translate_xfer_address.
7129 * frv-tdep.c (frv_gdbarch_init): Do not call
7130 set_gdbarch_remote_translate_xfer_address.
7131 * ia64-tdep.c (ia64_remote_translate_xfer_address): Remove.
7132 (ia64_gdbarch_init): Do not install it.
7134 2007-05-11 Bob Wilson <bob.wilson@acm.org>
7136 * NEWS: Mention change in handling the -tui option.
7138 2007-05-11 Daniel Jacobowitz <dan@codesourcery.com>
7140 * linux-thread-db.c (enable_thread_event_reporting): Fix comment
7143 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
7145 * breakpoint.c (single_step_breakpoint_inserted_here_p): New function.
7146 (breakpoint_inserted_here_p): Call it.
7147 (software_breakpoint_inserted_here_p): Likewise.
7149 2007-05-10 Ulrich Weigand <uweigand@de.ibm.com>
7151 * inf-ptrace.c (inf_ptrace_register_u_offset): Adapt parameter list.
7152 (inf_ptrace_fetch_register): Add register_u_offset callback parameters
7153 GDBARCH and STORE_P. Handle callback (CORE_ADDR) -1 return value.
7154 (inf_ptrace_store_register): Likewise.
7155 (inf_ptrace_trad_target): Adapt register_u_offset parameter list.
7156 * inf-ptrace.h (inf_ptrace_trad_target): Likewise.
7158 * vax-nat.c (vax_register_u_offset): Adapt parameter list.
7160 * linux-nat.c (linux_trad_target): Adapt parameter list.
7161 * linux-nat.h (linux_trad_target): Likewise.
7163 * alpha-linux-nat.c (alpha_linux_register_u_offset): Adapt parameters.
7165 * mips-linux-nat.c (mips_linux_cannot_fetch_register): Remove.
7166 (mips_linux_cannot_store_register): Likewise.
7167 (mips_linux_register_addr): Add GDBARCH and STORE_P parameters.
7168 Return (CORE_ADDR) -1 for registers that cannot be fetched or
7169 stored via ptrace. Use GDBARCH instead of current_gdbarch.
7170 (mips64_linux_register_addr): Likewise.
7171 (mips_linux_register_u_offset): Adapt parameter list. Pass
7172 GDBARCH and STORE_P on to mips{64}_linux_register_addr.
7174 * config/mips/linux.mh (NAT_FILE): Set to config/nm-linux.h.
7175 * config/mips/nm-linux.h: Delete file.
7177 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
7179 * remote.c (remote_detach): Error out if remote can't detach.
7181 2007-05-10 Luis Machado <luisgpm@br.ibm.com>
7183 * rs6000-tdep.c: (deal_with_atomic_sequence) Stores branch
7184 instruction's opcode in the "opcode" variable and declares new
7185 variable "closing_insn".
7187 2007-05-10 Chris Dearman <chris@mips.com>
7188 Maciej W. Rozycki <macro@mips.com>
7190 * cli/cli-setshow.c (do_setshow_command): Remove trailing
7191 whitespace when setting a var_filename.
7193 2007-05-09 Bob Wilson <bob.wilson@acm.org>
7195 * main.c (captured_main): Recognize -tui option and print an error
7196 message when the TUI is not configured.
7198 2007-05-09 Andreas Schwab <schwab@suse.de>
7200 * mipsnbsd-tdep.c (mipsnbsd_ilp32_fetch_link_map_offsets): Don't
7201 set removed members.
7202 (mipsnbsd_lp64_fetch_link_map_offsets): Likewise.
7204 2007-05-08 Ulrich Weigand <uweigand@de.ibm.com>
7206 * gdbarch.sh (deprecated_store_struct_return): Remove.
7207 * gdbarch.c, gdbarch.h: Regenerate.
7208 * frv-tdep.c (frv_store_struct_return): Remove.
7209 (frv_gdbarch_init): Do not install it.
7211 2007-05-08 Ulrich Weigand <uweigand@de.ibm.com>
7213 * config/i386/nm-i386sol2.h (USE_PROC_FS): Do not define.
7214 * config/mips/nm-irix5.h (USE_PROC_FS): Do not define.
7215 * config/nm-linux.h (USE_PROC_FS): Do not undefine.
7217 2007-05-08 Ulrich Weigand <uweigand@de.ibm.com>
7219 * spu-linux-nat.c: Include "gdb_stdint.h".
7220 (fetch_ppc_register): Use uint64_t instead of unsigned long long.
7221 (fetch_ppc_memory_1, store_ppc_memory_1): Likewise.
7222 (fetch_ppc_memory, store_ppc_memory): Fix coding style.
7223 (spu_symbol_file_add_from_memory): Use strtoulst instead of sscanf.
7224 (spu_child_wait): Mark up string for translation.
7226 2007-05-08 Paul Gilliam <pgilliam@us.ibm.com>
7227 Luis Machado <luisgpm@br.ibm.com>
7229 * rs6000-tdep.c: (LWARX_MASK, LWARX_INSTRUCTION, LDARX_INSTRUCTION,
7230 STWCX_MASK, STWCX_INSTRUCTION, STDCX_INSTRUCTION, BC_MASK,
7231 BC_INSTRUCTION): Define.
7232 (deal_with_atomic_sequence): New function.
7233 (rs6000_software_single_step): Call deal_with_atomic_sequence.
7234 (rs6000_gdbarch_init): Install deal_with_atomic_sequence as
7235 gdbarch_software_single_step routine.
7237 2007-05-07 Ulrich Weigand <uweigand@de.ibm.com>
7239 * spu-linux-nat.c (fetch_ppc_register, fetch_ppc_memory_1,
7240 store_ppc_memory_1, fetch_ppc_memory, store_ppc_memory,
7241 parse_spufs_run, spu_bfd_iovec_pread, spu_bfd_open,
7242 spu_symbol_file_add_from_memory, spu_child_post_startup_inferior,
7243 spu_child_post_attach, spu_fetch_inferior_registers,
7244 spu_store_inferior_registers, spu_xfer_partial): Store PPE-side
7245 memory addresses as ULONGEST, not CORE_ADDR.
7247 2007-05-07 Ulrich Weigand <uweigand@de.ibm.com>
7249 * gdbarch.sh: Add skip_permanent_breakpoint callback.
7250 * gdbarch.h, gdbarch.c: Regenerate.
7252 * infrun.c (SKIP_PERMANENT_BREAKPOINT): Remove default definition.
7253 (resume): Call gdbarch_skip_permanent_breakpoint instead of
7254 SKIP_PERMANENT_BREAKPOINT. Inline default case.
7256 * hppa-hpux-tdep.c (hppa_skip_permanent_breakpoint): Make static.
7257 Add REGCACHE argument. Use it instead of read/write_register.
7258 (hppa_hpux_init_abi): Install hppa_skip_permanent_breakpoint.
7260 * config/pa/tm-hppah.h: Delete file.
7261 * config/pa/hppa64.mt (DEPRECATED_TM_FILE): Set to tm-hppa.h.
7262 * config/pa/hppahpux.mt (DEPRECATED_TM_FILE): Likewise.
7264 2007-05-07 Daniel Jacobowitz <dan@codesourcery.com>
7266 * Makefile.in (c-lang.o, gnu-v3-abi.o): Update.
7267 * NEWS: Mention improved C++ thunk support.
7268 * c-lang.c (cplus_language_defn): Mention cplus_skip_trampoline.
7269 * cp-abi.c (cplus_skip_trampoline): New.
7270 * cp-abi.h (cplus_skip_trampoline): New prototype.
7271 (struct cp_abi_ops): Add skip_trampoline member.
7272 * gnu-v3-abi.c (gnuv3_skip_trampoline): New.
7273 (init_gnuv3_ops): Set skip_trampoline.
7275 2007-05-06 Daniel Jacobowitz <dan@codesourcery.com>
7277 * rs6000-tdep.c (struct frame_extra_info): Delete.
7279 2007-05-06 Daniel Jacobowitz <dan@codesourcery.com>
7281 * linux-thread-db.c: Update some FIXME comments.
7282 (thread_db_xfer_partial): Delete.
7283 (init_thread_db_ops): Do not set to_xfer_partial.
7285 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7287 * inftarg.c, infptrace.c: Remove files.
7288 * Makefile.in (ALLDEPFILES): Remove inftarg.c and infptrace.c
7289 (inftarg.o, infptrace.o): Remove rules.
7290 * gdbcore.h (register_addr): Remove prototype.
7291 * inferior.h (kill_inferior, store_inferior_registers,
7292 fetch_inferior_registers, attach, detach, ptrace_wait, child_resume,
7293 call_ptrace, pre_fork_inferior): Remove prototypes.
7294 * target.h (child_xfer_memory, child_pid_to_exec_file,
7295 child_core_file_to_sym_file, child_post_attach,
7296 child_post_startup_inferior, child_acknowledge_created_inferior,
7297 child_insert_fork_catchpoint, child_remove_fork_catchpoint,
7298 child_insert_vfork_catchpoint, child_remove_vfork_catchpoint,
7299 child_insert_exec_catchpoint, child_remove_exec_catchpoint,
7300 child_follow_fork, child_reported_exec_events_per_exec_call,
7301 child_has_exited, child_thread_alive): Remove prototypes.
7303 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7305 * sparc-nat.h (sparc_fetch_inferior_registers): Add prototype.
7306 (sparc_store_inferior_registers): Likewise.
7307 * sparc-nat.c (fetch_inferior_registers): Rename to ...
7308 (sparc_fetch_inferior_registers): ... this.
7309 (store_inferior_registers): Rename to ...
7310 (sparc_store_inferior_registers): ... this.
7311 (sparc_target): Update callback names.
7312 * sparc-linux.nat.c (_initialize_sparc_linux_nat): Likewise.
7313 * sparc64-linux.nat.c (_initialize_sparc64_linux_nat): Likewise.
7315 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7317 * linux-nat.c (child_post_attach): Rename to ...
7318 (linux_child_post_attach): ... this. Make static.
7319 (child_follow_fork): Rename to ...
7320 (linux_child_follow_fork): ... this. Make static.
7321 (child_insert_fork_catchpoint): Rename to ...
7322 (linux_child_insert_fork_catchpoint): ... this. Make static.
7323 (child_insert_vfork_catchpoint): Rename to ...
7324 (linux_child_insert_vfork_catchpoint): ... this. Make static.
7325 (child_insert_exec_catchpoint): Rename to ...
7326 (linux_child_insert_exec_catchpoint): ... this. Make static.
7327 (child_pid_to_exec_file): Rename to ...
7328 (linux_child_pid_to_exec_file): ... this. Make static.
7330 (linux_handle_extended_wait): Update call.
7331 (linux_xfer_partial): Update callback routine names.
7333 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7335 * configure.host (alpha*-*-osf[12]*): Remove support.
7336 * NEWS: Mention removed configurations.
7338 * config/alpha/alpha-osf1.mh: Delete file.
7339 * config/alpha/alpha-osf2.mh: Delete file.
7340 * config/alpha/alpha-osf3.mh (NATDEPFILES): Remove inftarg.o
7342 * config/alpha/nm-osf.h: Delete file.
7343 * config/alpha/nm-osf2.h: Delete file.
7344 * config/alpha/nm-osf3.h: Do not include "nm-osf2.h".
7345 (START_INFERIOR_TRAPS_EXPECTED): Copy from nm-osf.h.
7346 (PROCFS_DONT_TRACE_FAULTS): Copy from nm-osf2.h.
7348 * alpha-nat.c (ALPHA_UNIQUE_PTRACE_ADDR): Do not define.
7349 (register_addr, kernel_u_size): Remove.
7350 Do not check for "defined(USE_PROC_FS) || defined(HAVE_GREGSET_T)".
7352 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7354 * regcache.c (regcache_invalidate): New function.
7355 (register_cached): Remove.
7356 (set_register_cached): Remove.
7357 (deprecated_registers_fetched): Remove.
7358 (registers_changed): Use regcache_invalidate instead
7359 of set_register_cached.
7360 (regcache_raw_read): Update comment.
7362 * regcache.h (regcache_invalidate): Add prototype.
7363 (register_cached): Remove.
7364 (set_register_cached): Remove.
7365 (deprecated_registers_fetched): Remove.
7367 * findvar.c (value_of_register): Do not call register_cached.
7368 * frame.c (frame_register): Likewise.
7369 * tui/tui-regs.c (tui_get_register): Likewise.
7371 * remote.c (fetch_register_using_p): Do not call set_register_cached.
7372 (process_g_packet): Likewise.
7373 (remote_fetch_registers): Likewise.
7374 * remote-sim.c (gdbsim_fetch_register): Likewise.
7375 * mt-tdep.c (mt_select_coprocessor): Replace set_register_cached call
7376 by regcache_invalidate.
7377 (mt_pseudo_register_write): Likewise.
7378 * sh-tdep.c (sh_pseudo_register_write): Likewise.
7380 * corelow.c (get_core_registers): Replace deprecated_registers_fetched
7381 call by loop over regcache_raw_supply (..., NULL).
7383 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7385 * target.h (struct target_ops): Add REGCACHE parameter to
7386 to_prepare_to_store.
7387 (target_prepare_to_store): Likewise.
7388 * target.c (debug_to_prepare_to_store): Add REGCACHE parameter.
7389 (update_current_target): Adapt prepare_to_store de_fault rule.
7391 * regcache.c (regcache_raw_write): Pass regcache to
7392 target_prepare_to_store.
7394 * inftarg.c (child_prepare_to_store): Add REGCACHE parameter.
7395 Do not call CHILD_PREPARE_TO_STORE.
7396 * gnu-nat.c (gnu_prepare_to_store): Likewise.
7397 * procfs.c (procfs_prepare_to_store): Likewise.
7399 * inf-child.c (inf_child_prepare_to_store): Add REGCACHE parameter.
7400 * go32-nat.c (go32_prepare_to_store): Likewise.
7401 * monitor.c (monitor_prepare_to_store): Likewise.
7402 * nto-procfs.c (procfs_prepare_to_store): Likewise.
7403 * remote-m32r-sdi.c (m32r_prepare_to_store): Likewise.
7404 * remote-mips.c (mips_prepare_to_store): Likewise.
7405 * remote-sim.c (gdbsim_prepare_to_store): Likewise.
7406 * win32-nat.c (win32_prepare_to_store): Likewise.
7408 * remote.c (remote_prepare_to_store): Add REGCACHE parameter.
7409 Use it instead of current_regcache.
7411 * hpux-thread.c (hpux_thread_prepare_to_store): Add REGCACHE
7412 parameter. Pass it on to next target.
7413 * sol-thread.c (sol_thread_prepare_to_store): Likewise.
7415 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7417 * target.h (struct regcache): Add forward declaration.
7418 (struct target_ops): Add REGCACHE parameter to to_fetch_registers
7419 and to_store_registers target operations.
7420 (target_fetch_registers, target_store_registers): Update.
7422 * regcache.c (regcache_raw_read): Replace register_cached by
7423 regcache_valid_p. Pass regcache to target_fetch_registers.
7424 (regcache_raw_write): Pass regcache to target_store_registers.
7426 * arm-linux-nat.c (store_fpregister, store_fpregs, store_register,
7427 store_regs, store_wmmx_regs): Replace register_cached by
7430 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd): Pass current_regcache
7431 to target_fetch_registers calls.
7432 * corelow.c (core_open): Likewise.
7433 * linux-nat.c (linux_nat_corefile_thread_callback): Likewise.
7434 * proc-service.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
7435 ps_lsetfpregs): Likewise.
7436 * sol-thread.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
7437 ps_lsetfpregs): Likewise.
7438 * win32-nat.c (win32_resume): Likewise.
7439 * ia64-tdep.c (ia64_store_return_value): Pass current_regcache
7440 to target_store_registers call.
7441 * rs6000-tdep.c (rs6000_push_dummy_call): Likewise.
7443 * inferior.h (store_inferior_registers): Update prototype.
7444 (fetch_inferior_registers): Likewise.
7445 * gnu-nat.c (gnu_store_registers, gnu_fetch_registers): Likewise.
7446 * mips-linux-nat.c (super_fetch_registers, super_store_registers):
7447 Update function pointer signatures.
7449 * aix-thread.c (aix_thread_fetch_registers): Add REGCACHE parameter,
7450 use it instead of current_regcache, update calls.
7451 (aix_thread_store_registers): Likewise.
7452 * alphabsd-nat.c (alphabsd_fetch_inferior_registers): Likewise.
7453 (alphabsd_store_inferior_registers): Likewise.
7454 * amd64bsd-nat.c (amd64bsd_fetch_inferior_registers): Likewise.
7455 (amd64bsd_store_inferior_registers): Likewise.
7456 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers): Likewise.
7457 (amd64_linux_store_inferior_registers): Likewise.
7458 * arm-linux-nat.c (fetch_fpregister, fetch_fpregs, store_fpregister,
7459 store_fpregs, fetch_register, fetch_regs, store_register, store_regs,
7460 fetch_wmmx_regs, store_wmmx_regs): Likewise.
7461 (arm_linux_fetch_inferior_registers): Likewise.
7462 (arm_linux_store_inferior_registers): Likewise.
7463 * armnbsd-nat.c (fetch_register, fetch_regs, fetch_fp_register,
7464 fetch_fp_regs, armnbsd_fetch_registers): Likewise.
7465 (store_register, store_regs, store_fp_register, store_fp_regs,
7466 armnbsd_store_registers): Likewise.
7467 * bsd-kvm.c (bsd_kvm_fetch_pcb, bsd_kvm_fetch_registers): Likewise.
7468 * bsd-uthread.c (bsd_uthread_fetch_registers): Likewise.
7469 (bsd_uthread_store_registers): Likewise.
7470 * corelow.c (get_core_registers): Likewise.
7471 * go32-nat.c (fetch_register, go32_fetch_registers, store_register,
7472 go32_store_registers): Likewise.
7473 * hppabsd-nat.c (hppabsd_fetch_registers): Likewise.
7474 (hppabsd_store_registers): Likewise.
7475 * hppa-hpux-nat.c (hppa_hpux_fetch_register): Likewise.
7476 (hppa_hpux_fetch_inferior_registers): Likewise.
7477 (hppa_hpux_store_register): Likewise.
7478 (hppa_hpux_store_inferior_registers): Likewise.
7479 * hppa-linux-nat.c (fetch_register, store_register): Likewise.
7480 (hppa_linux_fetch_inferior_registers): Likewise.
7481 (hppa_linux_store_inferior_registers): Likewise.
7482 * hpux-thread.c (hpux_thread_fetch_registers): Likewise.
7483 (hpux_thread_store_registers): Likewise.
7484 * i386bsd-nat.c (i386bsd_fetch_inferior_registers): Likewise.
7485 (i386bsd_store_inferior_registers): Likewise.
7486 * i386gnu-nat.c (fetch_fpregs, gnu_fetch_registers, store_fpregs,
7487 gnu_store_registers): Likewise.
7488 * i386-linux-nat.c (fetch_register, store_register, fetch_regs,
7489 store_regs, fetch_fpregs, store_fpregs, fetch_fpxregs, store_fpxregs):
7491 (i386_linux_fetch_inferior_registers): Likewise.
7492 (i386_linux_store_inferior_registers): Likewise.
7493 * ia64-linux-nat.c (ia64_linux_fetch_register): Likewise.
7494 (ia64_linux_fetch_registers): Likewise.
7495 (ia64_linux_store_register): Likewise.
7496 (ia64_linux_store_registers): Likewise.
7497 * inf-child.c (inf_child_fetch_inferior_registers): Likewise.
7498 (inf_child_store_inferior_registers): Likewise.
7499 * inf-ptrace.c (inf_ptrace_fetch_register): Likewise.
7500 (inf_ptrace_fetch_registers): Likewise.
7501 (inf_ptrace_store_register): Likewise.
7502 (inf_ptrace_store_registers): Likewise.
7503 * infptrace.c (fetch_register, store_register): Likewise.
7504 (fetch_inferior_registers, store_inferior_registers): Likewise.
7505 * m32r-linux-nat.c (fetch_regs, store_regs): Likewise.
7506 (m32r_linux_fetch_inferior_registers): Likewise.
7507 (m32r_linux_store_inferior_registers): Likewise.
7508 * m68kbsd-nat.c (m68kbsd_fetch_inferior_registers): Likewise.
7509 (m68kbsd_store_inferior_registers): Likewise.
7510 * m68klinux-nat.c (fetch_register, old_fetch_inferior_registers,
7511 store_register, old_store_inferior_registers, fetch_regs, store_regs,
7512 fetch_fpregs, store_fpregs): Likewise.
7513 (m68k_linux_fetch_inferior_registers): Likewise.
7514 (m68k_linux_store_inferior_registers): Likewise.
7515 * m88kbsd-nat.c (m88kbsd_fetch_inferior_registers): Likewise.
7516 (m88kbsd_store_inferior_registers): Likewise.
7517 * mips64obsd-nat.c (mips64obsd_fetch_inferior_registers): Likewise.
7518 (mips64obsd_store_inferior_registers): Likewise.
7519 * mips-linux-nat.c (mips64_linux_regsets_fetch_registers): Likewise.
7520 (mips64_linux_regsets_store_registers): Likewise.
7521 (mips64_linux_fetch_registers): Likewise.
7522 (mips64_linux_store_registers): Likewise.
7523 * mipsnbsd-nat.c (mipsnbsd_fetch_inferior_registers): Likewise.
7524 (mipsnbsd_store_inferior_registers): Likewise.
7525 * monitor.c (monitor_fetch_register, monitor_store_register): Likewise.
7526 (monitor_fetch_registers, monitor_store_registers): Likewise.
7527 * nto-procfs.c (procfs_fetch_registers): Likewise.
7528 (procfs_store_registers): Likewise.
7529 * ppc-linux-nat.c (fetch_altivec_register, fetch_spe_register,
7530 fetch_register, supply_vrregset, fetch_altivec_registers,
7531 fetch_ppc_registers, ppc_linux_fetch_inferior_registers): Likewise.
7532 (store_altivec_register, store_spe_register, store_register,
7533 fill_vrregset, store_altivec_registers, store_ppc_registers,
7534 ppc_linux_store_inferior_registers): Likewise.
7535 * ppcnbsd-nat.c (ppcnbsd_fetch_inferior_registers): Likewise.
7536 (ppcnbsd_store_inferior_registers): Likewise.
7537 * ppcobsd-nat.c (ppcobsd_fetch_registers): Likewise.
7538 (ppcobsd_store_registers): Likewise.
7539 * procfs.c (procfs_fetch_registers, procfs_store_registers): Likewise.
7540 * remote.c (fetch_register_using_p, process_g_packet,
7541 fetch_registers_using_g, remote_fetch_registers): Likewise.
7542 (store_register_using_P, store_registers_using_G,
7543 remote_store_registers): Likewise.
7544 * remote-m32r-sdi.c (m32r_fetch_registers, m32r_fetch_register,
7545 m32r_store_register, m32r_store_register): Likewise.
7546 * remote-mips.c (mips_fetch_registers, mips_store_registers): Likewise.
7547 * remote-sim.c (gdbsim_fetch_register): Likewise.
7548 (gdbsim_store_register): Likewise.
7549 * rs6000-nat.c (fetch_register, store_register): Likewise.
7550 (rs6000_fetch_inferior_registers): Likewise.
7551 (rs6000_store_inferior_registers): Likewise.
7552 * s390-nat.c (fetch_regs, store_regs): Likewise.
7553 (fetch_fpregs, store_fpregs): Likewise.
7554 (s390_linux_fetch_inferior_registers): Likewise.
7555 (s390_linux_store_inferior_registers): Likewise.
7556 * shnbsd-nat.c (shnbsd_fetch_inferior_registers): Likewise.
7557 (shnbsd_store_inferior_registers): Likewise.
7558 * sol-thread.c (sol_thread_fetch_registers): Likewise.
7559 (sol_thread_store_registers): Likewise.
7560 * sparc-nat.c (fetch_inferior_registers): Likewise.
7561 (store_inferior_registers): Likewise.
7562 * spu-linux-nat.c (spu_fetch_inferior_registers): Likewise.
7563 (spu_store_inferior_registers): Likewise.
7564 * target.c (debug_print_register): Likewise.
7565 (debug_to_fetch_registers, debug_to_store_registers): Likewise.
7566 * vaxbsd-nat.c (vaxbsd_fetch_inferior_registers): Likewise.
7567 (vaxbsd_store_inferior_registers): Likewise.
7568 * win32-nat.c (do_win32_fetch_inferior_registers): Likewise.
7569 (win32_fetch_inferior_registers): Likewise.
7570 (win32_store_inferior_registers): Likewise.
7572 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7574 * gdbcore.h (struct regcache): Add forward declaration.
7575 (struct core_fns): Add REGCACHE argument to core_read_registers
7577 * corelow.c (get_core_register_section): Add REGCACHE argument,
7578 use it instead of current_regcache, pass it to core_read_registers
7580 (get_core_registers): Add current_regcache as parameter to
7581 get_core_register_section calls.
7583 * alpha-nat.c (fetch_osf_core_registers): Add REGCACHE argument,
7584 use it instead of current_regcache.
7585 * armnbsd-nat.c (fetch_core_registers): Likewise.
7586 (fetch_elfcore_registers): Likewise.
7587 * core-regset.c (fetch_core_registers): Likewise.
7588 * cris-tdep.c (fetch_core_registers): Likewise.
7589 * irix5-nat.c (fetch_core_registers): Likewise.
7590 * m68klinux-nat.c (fetch_core_registers): Likewise.
7591 * mips-linux-tdep.c (fetch_core_registers): Likewise.
7592 * win32-nat.c (fetch_elf_core_registers): Likewise.
7594 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7596 * gregset.h (struct regcache): Add forward declaration.
7597 (supply_gregset): Add REGCACHE parameter, make GREGS const.
7598 (supply_fpregset): Add REGCACHE parameter, make FPREGS const.
7599 (supply_fpxregset): Add REGCACHE parameter, make FPXREGS const.
7600 (fill_gregset): Add REGCACHE parameter.
7601 (fill_fpregset): Likewise.
7602 (fill_fpxregset): Likewise.
7604 Update all definitions accordingly:
7605 * alphabsd-nat.c, alpha-linux-nat.c, alpha-nat.c, amd64-linux-nat.c,
7606 arm-linux-nat.c, hppa-linux-nat.c, i386gnu-nat.c, i386-linux-nat.c,
7607 i386-sol2-nat.c, i386v4-nat.c, ia64-linux-nat.c, irix5-nat.c,
7608 m32r-linux-nat.c, m68klinux-nat.c, mips-linux-nat.c, ppc-linux-nat.c,
7609 s390-nat.c, sparc64-linux-nat.c, sparc-linux-nat.c, sparc-sol2-nat.c
7610 (supply_gregset): Add REGCACHE parameter, use it instead of
7611 current_regcache. Make GREGSETP parameter const, adapt casts.
7612 (supply_fpregset): Add REGCACHE parameter, use it instead of
7613 current_regcache. Make FPREGSETP parameter const, adapt casts.
7614 (fill_gregset): Add REGCACHE parameter, use it instead of
7616 (fill_fpregset): Likewise.
7618 Update all callers to pass in current_regcache as the new argument:
7619 * core-regset.c: Include "regcache.h".
7620 (fetch_core_registers): Update supply_gregset,and supply_fpregset calls.
7621 * procfs.c: Include "regcache.h".
7622 (procfs_fetch_registers): Update supply_gregset, supply_fpregset calls.
7623 (procfs_store_registers): Update fill_gregset, fill_fpregset calls.
7624 (procfs_do_thread_registers): Likewise.
7625 (procfs_make_note_section): Likewise.
7626 * proc-service.c: Include "regcache.h".
7627 (ps_lgetregs): Update fill_gregset call.
7628 (ps_lsetregs): Update supply_gregset call.
7629 (ps_lgetfpregs): Update fill_fpregset call.
7630 (ps_lsetfpregs): Update supply_fpregset call.
7631 * sol-thread.c (sol_thread_fetch_registers): Update supply_gregset,
7632 supply_fpregset calls.
7633 (sol_thread_store_registers): Update fill_gregset, fill_fpregset calls.
7634 (ps_lgetregs): Update fill_gregset call.
7635 (ps_lsetregs): Update supply_gregset call.
7636 (ps_lgetfpregs): Update fill_fpregset call.
7637 (ps_lsetfpregs): Update supply_fpregset call.
7639 * linux-nat.c (linux_nat_do_thread_registers): Update fill_gregset,
7640 fill_fpregset, and fill_fpxregset calls.
7641 * i386-linux-nat.c (fetch_regs): Update supply_gregset call.
7642 (store_regs): Update fill_gregset call.
7643 (fetch_fpregs): Update supply_fpregset call.
7644 (store_fpregs): Update fill_fpregset call.
7645 (fetch_fpxregs): Update supply_fpxregset call.
7646 (store_fpxregs): Update fill_fpxregset call.
7647 * m32r-linux-nat.c (fetch_regs): Update supply_gregset call.
7648 (store_regs): Update fill_gregset call.
7649 * m68klinux-nat.c (fetch_regs): Update supply_gregset call.
7650 (store_regs): Update fill_gregset call.
7651 (fetch_fpregs): Update supply_fpregset call.
7652 (store_fpregs): Update fill_fpregset call.
7653 (fetch_core_registers): Update supply_gregset, supply_fpregset calls.
7654 * s390-nat.c (fetch_regs): Update supply_gregset call.
7655 (store_regs): Update fill_gregset call.
7656 (fetch_fpregs): Update supply_fpregset call.
7657 (store_fpregs): Update fill_fpregset call.
7659 * Makefile.in (core-regset.o, procfs.o, proc-service.o): Update
7662 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7664 * monitor.c (monitor_supply_register): Add REGCACHE parameter, use
7665 it instead of current_regcache.
7666 (parse_register_dump): Add REGCACHE parameter, pass it to
7667 supply_register callback.
7668 (monitor_dump_reg_block): Add REGCACHE parameter, pass it to
7669 parse_register_dump.
7670 (monitor_dump_regs): Add REGCACHE parameter, pass it to
7671 parse_register_dump and dumpregs callback.
7672 (monitor_wait): Pass current_regcache to parse_register_dump and
7674 (monitor_fetch_register): Pass current_regcache to
7675 monitor_supply_register.
7676 (monitor_fetch_registers): Pass current_regcache to
7678 * monitor.h (struct monitor_ops): Add REGCACHE parameter to
7679 supply_register and dumpregs callbacks.
7680 (monitor_supply_register, monitor_dump_reg_block): Update
7682 * dbug-rom.c (dbug_supply_register): Add REGCACHE parameter. Pass
7683 it to monitor_supply_register.
7684 * dink32-rom.c (dink32_supply_register): Likewise.
7685 * ppcbug-rom.c (ppcbug_supply_register): Likewise.
7686 * m32r-rom.c (m32r_supply_register): Likewise. Also, use REGCACHE
7687 instead of current_regcache.
7689 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7691 * i386-nto-tdep.c (i386nto_supply_gregset, i386nto_supply_fpregset):
7692 Add REGCACHE parameter. Use it instead of current_regcache.
7693 (i386nto_supply_regset): Add REGCACHE parameter, pass it to
7694 i386nto_supply_gregset and i386nto_supply_fpregset.
7695 (i386nto_regset_fill): Add REGCACHE parameter; use it instead
7696 of current_regcache.
7698 * nto-procfs.c (procfs_fetch_registers): Pass current_regcache to
7699 nto_supply_ helper functions.
7700 (procfs_store_registers): Pass current_regcache to nto_regset_fill.
7702 * nto-tdep.c (nto_dummy_supply_regset): Add REGCACHE parameter.
7704 * nto-tdep.h (struct nto_target_ops): Add REGCACHE parameter to
7705 supply_greget, supply_fpregset, supply_altregset, supply_regset,
7706 and regset_fill member function pointers.
7707 (nto_dummy_supply_regset): Adapt prototype.
7709 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7711 * shnbsd-tdep.c (shnbsd_supply_reg): Add REGCACHE parameter, use it
7712 instead of current_regcache. Make REGS const.
7713 (shnbsd_fill_reg): Add REGCACHE parameter; replace current_regcache.
7714 * shnbsd-tdep.h (shnbsd_supply_reg, shnbsd_fill_reg): Update
7716 * shnbsd-nat.c: Include "regcache.h".
7717 (shnbsd_fetch_inferior_registers): Pass current_regcache to
7719 (shnbsd_store_inferior_registers): Pass current_regcache to
7721 * Makefile.in (shbsd-nat.o): Update dependencies.
7723 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7725 * mips-linux-tdep.c (supply_32bit_reg): Add REGCACHE parameter. Use it
7726 instead of current_regcache.
7727 (mips_supply_gregset): Likewise. Pass REGCACHE to supply_32bit_reg.
7728 Make GREGSETP const, remove superfluous casts.
7729 (mips_fill_gregset): Add REGCACHE parameter; replace current_regcache.
7730 (mips_supply_fpregset): Likewise. Make FPREGSETP const, remove
7732 (mips_fill_fpregset): Add REGCACHE parameter; replace current_regcache.
7733 (supply_64bit_reg): Likewise
7734 (mips64_supply_gregset): Likewise. Pass REGCACHE to supply_64bit_reg.
7735 Make GREGSETP const, adapt casts accordingly.
7736 (mips64_fill_gregset): Add REGCACHE parameter; replace current_regcache.
7737 (mips64_supply_fpregset): Likewise. Make FPREGSET const, adapt
7739 (mips64_fill_fpregset): Add REGCACHE parameter; replace current_regcache.
7740 (fetch_core_registers): Pass current_regcache to mips{64}_(supply|fill)_
7742 * mips-linux-tdep.h (mips_supply_gregset, mips_fill_gregset,
7743 mips_supply_fpregset, mips_fill_fpregset, mips64_supply_gregset,
7744 mips64_fill_gregset, mips64_supply_fpregset, mips64_fill_fpregset):
7746 * mips-linux-nat.c: Include "regcache.h".
7747 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): Pass
7748 current_regcache to mips{64}_(supply|fill)_ helper routines.
7749 (mips64_linux_regsets_fetch_registers): Likewise.
7750 (mips64_linux_regsets_store_registers): Likewise.
7752 * mipsnbsd-tdep.c (mipsnbsd_supply_reg, mipsnbsd_supply_fpreg): Add
7753 REGCACHE argument; replace current_regcache. Make REGS const.
7754 (mipsnbds_fill_reg, mipsnbsd_fill_fpreg): Add REGCACHE argument;
7755 replace current_regcache.
7756 * mipsnbsd-tdep.h (ipsnbsd_supply_reg, mipsnbsd_supply_fpreg,
7757 mipsnbds_fill_reg, mipsnbsd_fill_fpreg): Adapt prototypes.
7758 * mipsnbsd-nat.c (mipsnbsd_fetch_inferior_registers,
7759 mipsnbsd_store_inferior_registers): Pass current_regcache to
7760 mipsnbsd_(supply|fill)_... helper routines.
7762 * Makefile.in (mips-linux-nat.o): Update dependencies.
7764 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7766 * i387-tdep.c (i387_fill_fsave, i387_fill_fxsave): Remove.
7767 * i387-tdep.h (i387_fill_fsave, i387_fill_fxsave): Remove prototypes.
7768 * i368-linux-nat.c (supply_fpregset, supply_fpxregset): Replace
7769 i387_fill_fsave and i387_fill_fxsave calls by inline copies.
7770 * i386-nto-tdep.c (i386nto_regset_fill): Likewise.
7771 * i386gnu-nat.c (store_fpregs): Likewise.
7772 * i386v4-nat.c (fill_fpregset): Likewise.
7773 * go32-nat.c (store_register, go32_store_registers): Likewise.
7775 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7777 * cris-tdep.c (supply_gregset): Rename to ...
7778 (cris_supply_gregset): ... this. Add REGCACHE parameter. Use it
7779 instead of current_regcache.
7780 (fetch_core_registers): Update call. Pass current_regcache.
7782 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7784 * arnmnbsd-nat.c (supply_gregset): Rename to ...
7785 (arm_supply_gregset): ... this. Add REGCACHE parameter.
7786 Use it instead of current_regcache.
7787 (supply_fparegset): Rename to ...
7788 (arm_supply_fparegset): ... this. Add REGCACHE parameter.
7789 Use it instead of current_regcache.
7790 (fetch_regs, fetch_fp_regs): Update calls. Pass current_regcache.
7791 (fetch_core_registers, fetch_elfcore_registers): Likewise.
7793 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7795 * alpha-tdep.c (alpha_supply_int_regs, alpha_fill_int_regs,
7796 alpha_supply_fp_regs, alpha_fill_fp_regs): Add REGCACHE parameter,
7797 use it instead of current_regcache.
7798 * alpha-tdep.h (struct regcache): Add forward declaration.
7799 (alpha_supply_int_regs, alpha_fill_int_regs, alpha_supply_fp_regs,
7800 alpha_fill_fp_regs): Update prototypes.
7802 * alpha-nat.c: (supply_gregset, fill_gregset, supply_fpregset,
7803 fill_fpregset): Pass current_regcache to alpha_supply/fill_ routines.
7804 * alpha-linux-nat.c: Include "regcache.h".
7805 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): Pass
7806 current_regcache to alpha_supply/fill_ routines.
7808 * alphabsd-tdep.c: Include "regcache.h".
7809 (alphabsd_supply_reg, alphabsd_supply_fpreg): Add REGCACHE paramter,
7810 pass it to alpha_supply_ routines. Make REGS const.
7811 (alphabsd_fill_reg, alphabsd_fill_fpreg): Add REGCACHE parameter,
7812 pass it to alpha_fill_ routines.
7813 * alphabsd-tdep.h (struct regcache): Add forward declaration.
7814 (alphabsd_supply_reg, alphabsd_fill_reg, alphabsd_supply_fpreg,
7815 alphabsd_fill_fpreg): Update prototypes.
7817 * alphanbsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
7818 fill_fpregset, alphabsd_fetch_inferior_registers,
7819 alphabsd_store_inferior_registers): Pass current_regcache to
7820 alphabsd_supply/fill_ routines.
7822 * Makefile.in (alpha-linux-nat.o, alphabsd-tdep.o): Update
7825 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7827 * aix-thread.c (supply_gprs64, supply_reg32, supply_fprs,
7828 supply_sprs64, supply_sprs32): Add REGCACHE parameter, use it
7829 instead of current_regcache.
7830 (fetch_regs_user_thread, fetch_regs_kernel_thread): Add
7831 REGCACHE parameter, pass it to supply_ routines.
7832 (aix_thread_fetch_registers): Pass current_regcache to
7833 fetch_regs_user_thread and fetch_regs_kernel_thread.
7835 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs64, fill_sprs32):
7836 Add REGCACHE parameter, use it instead of current_regcache.
7837 Call regcache_valid_p instead of register_cached.
7838 (store_regs_user_thread, store_regs_kernel_thread): Likewise.
7839 Also, pass REGCACHE to fill_ routines.
7840 (aix_thread_store_registers): Pass current_regcache to
7841 store_regs_user_thread and store_regs_kernel_thread.
7843 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7845 * m32r-linux-nat.c (supply_gregset): Do not modify contents
7846 pointed to by GREGSETP.
7848 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7850 * irix5-nat.c (fill_gregset): Use regcache_raw_collect instead
7851 of regcache_raw_read_signed.
7852 (fill_fpregset): Use regcache_raw_collect instead of
7855 2007-05-03 Kevin Buettner <kevinb@redhat.com>
7857 * mips-tdep.c (mips_eabi_push_dummy_call): When pushing floating
7858 point arguments, test explicitly for use of the EABI32 ABI
7859 instead of inferring this condition from tests on register
7862 2007-05-03 Kevin Buettner <kevinb@redhat.com>
7864 * breakpoint.c (set_raw_breakpoint): Adjust breakpoint's address
7865 prior to allocating its location.
7867 2007-05-02 Maciej W. Rozycki <macro@mips.com>
7869 * mips-tdep.c (mips_o32_push_dummy_call): Remove conditions
7870 based on mips_abi_regsize() whose result is known in advance.
7871 (mips_o64_push_dummy_call): Likewise.
7873 2007-04-29 Ulrich Weigand <uweigand@de.ibm.com>
7875 * m68klinux-nat.c: Remove #ifndef USE_PROC_FS check.
7876 * m68k-tdep.c: Remove code within #ifdef USE_PROC_FS.
7878 * mips-linux-nat.c: Include "gregset.h".
7879 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): Move
7880 from mips-linux-tdep.c. Change parameter type to gdb_gregset_t.
7881 * mips-linux-tdep.c (supply_gregset, fill_gregset, supply_fpregset,
7882 fill_fpregset): Move to mips-linux-nat.c.
7884 * Makefile.in (m68k-tdep.o, mips-linux-nat.o): Update dependencies.
7886 2007-04-28 Ulrich Weigand <uweigand@de.ibm.com>
7888 * regcache.c (deprecated_read_register_gen): Remove, inline ...
7889 (read_register): ... here.
7890 (deprecated_write_register_gen): Remove, inline ...
7891 (write_register): ... here.
7892 * regcache.h (deprecated_read_register_gen): Remove prototype.
7893 (deprecated_write_register_gen): Likewise.
7895 * remote-sim.c (gdbsim_store_register): Replace call to
7896 deprecated_read_register_gen with regcache_cooked_read.
7897 * target.c (debug_print_register): Replace calls to
7898 deprecated_read_register_gen and read_register with
7899 regcache_cooked_read.
7901 2007-04-28 Ulrich Weigand <uweigand@de.ibm.com>
7903 * hpux-thread.c (hpux_thread_store_registers): Use
7904 regcache_raw_collect, not regcache_raw_read.
7905 * irix5-nat.c (fetch_core_registers): Use regcache_raw_supply,
7906 not regcache_raw_write.
7908 2007-04-28 Ulrich Weigand <uweigand@de.ibm.com>
7910 * gdbarch.sh: Remove deprecated_register_byte.
7911 * gdbarch.c, gdbarch.h: Regenerate.
7912 * arch-utils.h (generic_register_size, generic_register_byte): Remove.
7913 * arch-utils.c (generic_register_size, generic_register_byte): Remove.
7915 * regcache.h (regcache_valid_p): Make REGCACHE parameter const.
7916 * regcache.c (regcache_valid_p): Allow to query cooked registers in
7917 read-only register caches. Make REGCACHE parameter const.
7918 (regcache_dump): Do not check DEPRECATED_REGISTER_BYTE.
7920 * mi/mi-main.c (old_regs): Remove.
7921 (mi_setup_architecture_data, _initialize_mi_main): Remove.
7922 (register_changed_p): Reimplement to compare two register caches.
7923 (mi_cmd_data_list_changed_registers): Update caller.
7924 * mi/mi-main.h (mi_setup_architecture_data): Remove.
7925 * mi/mi-interp.c (mi_interpreter_init): Do not call
7926 mi_setup_architecture_data.
7928 2007-04-28 Ulrich Weigand <uweigand@de.ibm.com>
7930 * alpha-nat.c (ALPHA_REGSET_BASE, ALPHA_REGSET_UNIQUE): Do not define,
7931 inline definition at the places the macros are used.
7932 * alpha-linux-nat.c (ALPHA_REGSET_BASE, ALPHA_REGSET_UNIQUE): Likewise.
7934 2007-04-28 Ulrich Weigand <uweigand@de.ibm.com>
7936 * rs6000-aix-tdep.c: Include "regcache.h", "regset.h", and
7938 (rs6000_aix32_reg_offsets, rs6000_aix64_reg_offsets): New variables.
7939 (rs6000_aix_supply_regset, rs6000_aix_collect_regset): New functions.
7940 (rs6000_aix32_regset, rs6000_aix64_regset): New variables.
7941 (rs6000_aix_regset_from_core_section): New function.
7942 (rs6000_aix_init_osabi): Register it.
7943 (_initialize_rs6000_aix_tdep): Register GDB_OSABI_AIX osabi and
7944 sniffer for bfd_arch_powerpc as well as bfd_arch_rs6000.
7945 * rs6000-nat.c (CoreRegs): Do not define type.
7946 (fetch_core_registers, rs6000_core_fns): Remove.
7947 (_initialize_core_rs6000): Do not register it. Rename to ...
7948 (_initialize_rs6000_nat): ... this.
7949 * Makefile.in (rs6000-aix-tdep.o): Update dependencies.
7951 2007-04-27 Kevin Buettner <kevinb@redhat.com>
7953 * dwarf2expr.c (unsigned_address_type): Add forward declaration.
7954 (dwarf2_read_address): Sign extend return address as required by
7955 target architecture.
7957 2007-04-27 Kevin Buettner <kevinb@redhat.com>
7959 * solib-frv.c (lm_base): Bail out if the main executable has
7962 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
7964 * alpha-linux-tdep.c (alpha_linux_supply_fpregset): Correct location
7965 of FPCR register in fpregset.
7967 2007-04-27 Maciej W. Rozycki <macro@mips.com>
7969 * Makefile.in (gdbtk-wrapper.o): Update dependencies.
7970 (gdbtk-varobj.o, gdbtk-cmds.o, gdbtk-stack.o): Likewise.
7972 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
7974 * config/rs6000/nm-rs6000.h (CHILD_SPECIAL_WAITSTATUS): Remove.
7975 * rs6000-nat.c (rs6000_wait): New function.
7976 (_initialize_core_rs6000): Install it as to_wait target method.
7977 * target.c (store_waitstatus): Don't check CHILD_SPECIAL_WAITSTATUS.
7979 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
7981 * config/rs6000/nm-rs6000.h (TARGET_CREATE_INFERIOR_HOOK): Remove.
7982 * fork-child.c (fork_inferior): Don't call TARGET_CREATE_INFERIOR_HOOK.
7983 * rs6000-nat.c (super_create_inferior): New variable.
7984 (rs6000_create_inferior): Make static. Adapt argument list. Call
7985 original version of create_inferior via super_create_inferior.
7986 (_initialize_core_rs6000): Install to_create_inferior target method.
7988 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
7990 * aix-thread.c (aix_thread_xfer_memory): Replace by ...
7991 (aix_thread_xfer_partial): ... this.
7992 (init_aix_thread_ops): Install to_xfer_partial instead
7993 of deprecated_xfer_memory target method.
7995 * config/powerpc/aix.mh (NATDEPFILES): Remove infptrace.o
7996 and inftarg.o, add inf-ptrace.o.
7997 * config/rs6000/nm-rs6000.h (FETCH_INFERIOR_REGISTERS,
7998 CHILD_XFER_MEMORY, KERNEL_U_SIZE, kernel_u_size): Remove.
7999 * rs6000-nat.c: Include "inf-ptrace.h" and "gdb_stdint.h".
8000 (fetch_inferior_registers): Rename to ...
8001 (rs6000_fetch_inferior_registers): ... this. Make static.
8002 (store_inferior_registers): Rename to ...
8003 (rs6000_store_inferior_registers): ... this. Make static.
8004 (read_word, child_xfer_memory): Remove.
8005 (rs6000_xfer_partial): New function.
8006 (kernel_u_size): Remove.
8007 (_initialize_core_rs6000): Add inf_ptrace-based target.
8008 * Makefile.in (rs6000-nat.o): Update dependencies.
8010 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
8012 * inf-ptrace.c: Include "gdb_stdint.h".
8013 (inf_ptrace_xfer_partial): Use "uintptr_t" instead of "long" as
8014 intermediate type when casting CORE_ADDR to PTRACE_TYPE_ARG3.
8015 (inf_ptrace_fetch_register): Add intermediate cast to "uintptr_t"
8016 before casting CORE_ADDR to PTRACE_TYPE_ARG3.
8017 (inf_ptrace_store_register): Likewise.
8018 * Makefile.in (inf-ptrace.o): Update dependencies.
8020 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
8022 * configure.host (rs6000-*-*): Merge with powerpc-*-aix* rules.
8023 * configure.tgt (rs6000-*-*): Likewise.
8024 * config/rs6000/aix4.mh: Delete file.
8025 * config/rs6000/aix4.mt: Delete file.
8026 * config/rs6000/rs6000.mh: Delete file.
8027 * config/rs6000/rs6000.mt: Delete file.
8029 * config/powerpc/nm-aix.h: Delete file.
8030 * config/powerpc/aix.mh (NAT_FILE): Set to config/rs6000/nm-rs6000.h.
8032 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
8034 * aix-thread.c (fill_sprs32): Change argument types to "uint32_t *".
8035 Remove obsolete part of comment.
8036 (store_regs_user_thread): Use uint32_t temporaries when calling
8038 (store_regs_kernel_thread): Likewise. Add assertion to verify
8039 correct size of struct ptsprs members.
8040 (aix_thread_xfer_memory): Fix type of myaddr.
8041 (aix_thread_extra_thread_info): Fix compiler warning.
8042 * rs6000-nat.c (rs6000_ptrace64): Change type of buf to "void *".
8043 (fetch_register, store_register): Adapt callers.
8045 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
8047 * vec.h (vec_free): Rename to vec_free_. Adapt users.
8049 2007-04-25 Ulrich Weigand <uweigand@de.ibm.com>
8051 * alpha-linux-tdep.c: Include "gdb_string.h", "regset.h",
8053 (alpha_linux_supply_gregset, alpha_linux_supply_fpregset): New.
8054 (alpha_linux_gregset, alpha_linux_fpregset): New variables.
8055 (alpha_linux_regset_from_core_section): New function.
8056 (alpha_linux_init_abi): Install it.
8057 * alpha-linux-nat.c: Do not include "gdbcore.h". Include
8058 "alpha-tdep.h", <sys/ptrace.h>, <alpha/ptrace.h>,
8059 <sys/procfs.h>, and "gregset.h".
8060 (ALPHA_REGSET_BASE, ALPHA_REGSET_UNIQUE, ALPHA_UNIQUE_PTRACE_ADDR):
8061 Move from config/alpha/nm-linux.h.
8062 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): Copy
8064 (alpha_linux_register_u_offset): Inline register_addr from alpha-nat.c.
8065 * alpha-nat.c: Remove #ifdef __linux__ section.
8066 (fetch_elf_core_registers, alpha_elf_core_fns): Remove.
8067 (_initialize_core_alpha): Do not register alpha_elf_core_fns.
8068 (ALPHA_UNIQUE_PTRACE_ADDR, ALPHA_REGSET_UNIQUE): Define unconditionally.
8069 (ALPHA_REGSET_BASE): Move from config/alpha/nm-osf.h.
8070 * config/alpha/alpha-linux.mh (NAT_FILE): Set to config/nm-linux.h.
8071 (NATDEPFILES): Remove alpha-nat.o.
8072 * config/alpha/nm-linux.h: Delete file.
8073 * config/alpha/nm-osf.h (ALPHA_REGSET_BASE): Move to alpha-nat.c.
8074 * Makefile.in (alpha-linux-nat.o): Update dependencies.
8075 (alpha-linux-tdep.o): Likewise.
8077 2007-04-25 Ulrich Weigand <uweigand@de.ibm.com>
8079 * mips-linux-nat.c: No longer include "gdbcore.h".
8080 (mips_linux_register_addr): Move from mips-linux-tdep.c.
8081 (mips64_linux_register_addr): Likewise.
8082 (mips_linux_register_u_offset): Call mips_linux_register_addr or
8083 mips64_linux_register_addr instead of register_addr.
8084 * mips-linux-tdep.c (mips_linux_register_addr,
8085 mips64_linux_register_addr): Move to mips-linux-nat.c.
8086 (register_addr): Remove.
8087 (register_addr_data, init_register_addr_data): Remove.
8088 (_initialize_mips_linux_tdep): Do not initialize register_addr_data.
8089 (set_mips_linux_register_addr): Remove.
8090 (mips_linux_init_abi): Do not call set_mips_linux_register_addr.
8091 * Makefile.in (mips-linux-nat.o): Update dependencies.
8093 2007-04-25 Ulrich Weigand <uweigand@de.ibm.com>
8095 * linux-nat.c (linux_register_u_offset): Remove.
8096 (linux_target_install_ops): New function.
8097 (linux_target): Use it.
8098 (linux_trad_target): New function.
8099 * linux-nat.h (linux_trad_target): Declare.
8101 * alpha-linux-nat.c: Include "gdbcore.h".
8102 (alpha_linux_register_u_offset): New function.
8103 (_initialize_alpha_linux_nat): Use linux_trad_target.
8105 * mips-linux-nat.c: Include "gdbcore.h".
8106 (mips_linux_register_u_offset): New function.
8107 (_initialize_mips_linux_nat): Use linux_trad_target.
8109 * config/arm/linux.mh (NAT_FILE): Set to config/nm-linux.h.
8110 * config/arm/nm-linux.h: Delete file.
8112 * config/i386/nm-linux64.h (FETCH_INFERIOR_REGISTERS): Remove.
8113 * config/i386/nm-linux.h (FETCH_INFERIOR_REGISTERS): Remove.
8115 * config/ia64/linux.mh (NAT_FILE): Set to config/nm-linux.h.
8116 * config/ia64/nm-linux.h: Delete file.
8118 * config/m32r/linux.mh (NAT_FILE): Set to config/nm-linux.h.
8119 * config/m32r/nm-linux.h: Delete file.
8121 * config/m68k/linux.mh (NAT_FILE): Set to config/nm-linux.h.
8122 * config/m68k/nm-linux.h: Delete file.
8124 * config/pa/linux.mh (NAT_FILE): Set to config/nm-linux.h.
8125 * config/pa/nm-linux.h: Delete file.
8127 * config/powerpc/linux.mh (NAT_FILE): Set to config/nm-linux.h.
8128 * config/powerpc/ppc64-linux.mh (NAT_FILE): Likewise.
8129 * config/powerpc/nm-linux.h: Delete file.
8131 * config/s390/s390.mh (NAT_FILE): Set to config/nm-linux.h.
8132 * config/s390/nm-linux.h: Delete file.
8134 * config/sparc/linux.mh (NAT_FILE): Set to config/nm-linux.h.
8135 * config/sparc/linux64.mh (NAT_FILE): Likewise.
8136 * config/sparc/nm-linux.h: Delete file.
8138 * Makefile.in (alpha-linux-nat.o): Update dependencies.
8139 (mips-linux-nat.o): Likewise.
8141 2007-04-25 Ulrich Weigand <uweigand@de.ibm.com>
8143 * core-aout.c: Delete file.
8144 * Makefile.in (ALLDEPFILES): Remove core-aout.c.
8145 (core-aout.o): Delete rule.
8146 * gdbcore.h (kernel_u_addr, KERNEL_U_ADDR): Remove.
8148 * config/alpha/nm-linux.h (U_REGS_OFFSET): Remove.
8150 * arm-linux-nat.c (arm_linux_kernel_u_size): Remove.
8151 * config/arm/nm-linux.h (U_REGS_OFFSET, KERNEL_U_SIZE,
8152 KERNEL_U_ADDR): Remove.
8154 * i386-linux-nat.c (register_u_addr, kernel_u_size): Remove.
8155 (cannot_fetch_register, cannot_store_register): Remove.
8156 (fetch_register): Inline cannot_fetch_register and register_addr.
8157 (store_register): Inline cannot_store_register and register_addr.
8158 * config/i386/linux.mh (NATDEPFILES): Remove core-aout.o.
8159 * config/i386/nm-linux.h (KERNEL_U_SIZE, KERNEL_U_ADDR,
8160 REGISTER_U_ADDR, CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER):
8163 * m68klinux-nat.c (m68k_linux_register_u_addr, kernel_u_size): Remove.
8164 (fetch_register): Inline register_addr.
8165 (store_register): Inline register_addr.
8166 * config/m68k/linux.mh (NATDEPFILES): Remove core-aout.o.
8167 * config/m68k/nm-linux.h (KERNEL_U_SIZE, KERNEL_U_ADDR,
8168 U_REGS_OFFSET, REGISTER_U_ADDR): Remove.
8170 * config/mips/nm-irix5.h (REGISTER_U_ADDR): Remove.
8171 * config/mips/nm-linux.h (KERNEL_U_SIZE, U_REGS_OFFSET,
8172 REGISTER_U_ADDR): Remove.
8174 * hppa-linux-nat.c (register_addr): Rename to ...
8175 (hppa_linux_register_addr): ... this. Make static.
8176 (fetch_register, store_register): Adapt callers.
8177 * config/pa/nm-linux.h (U_REGS_OFFSET): Remove.
8179 * ppc-linux-nat.c (kernel_u_size): Remove.
8180 * config/powerpc/nm-linux.h (KERNEL_U_SIZE, KERNEL_U_ADDR): Remove.
8182 * vax-nat.c (vax_kernel_u_addr, vax_register_u_addr): Make static.
8183 * config/vax/vax.mh (NATDEPFILES): Remove core-aout.o.
8185 * config/vax/nm-vax.h: Delete file.
8187 2007-04-20 Mark Shinwell <shinwell@codesourcery.com>
8189 * MAINTAINERS (Write After Approval): Add myself.
8191 2007-04-20 Mark Shinwell <shinwell@codesourcery.com>
8193 * Makefile.in: Adjust dependencies of m68klinux-tdep.c.
8194 * m68klinux-tdep.c (m68k_uclinux_sigcontext_reg_offset): New.
8195 (m68k_linux_sigcontext_reg_offset): Fix typo.
8196 (target_is_uclinux): New.
8197 (m68k_linux_inferior_created): New.
8198 (m68k_linux_get_sigtramp_info): Check for uClinux or
8199 normal Linux. Use m68k_uclinux_sigcontext_reg_offset for
8201 (_initialize_m68k_linux_tdep): Register
8202 m68k_linux_inferior_created.
8204 2007-04-19 Pedro Alves <pedro_alves@portugalmail.pt>
8206 * win32-nat.c (win32_detach): Remove delete_command call.
8207 Resume inferior with win32_resume instead of win32_continue.
8209 2007-04-19 Jerome Guitton <guitton@adacore.com>
8211 * ser-mingw.c (fd_is_file): New function.
8212 (file_select_thread): New function.
8213 (ser_console_wait_handle): Add special handling for files.
8215 2007-04-18 Denis Pilat <denis.pilat@st.com>
8217 * dwarf2read.c (read_subrange_type): Use DW_ATE_signed default type
8218 when missing from DW_TAG_subrange_type. Remove the handling of null
8219 return from die_type.
8221 2007-04-18 Maciej W. Rozycki <macro@mips.com>
8223 * mips-tdep.c (mips_eabi_push_dummy_call): Revert the last
8224 change to rearrange some brackets.
8225 (mips_n32n64_push_dummy_call): Likewise.
8226 (mips_o32_push_dummy_call): Likewise.
8227 (mips_o64_push_dummy_call): Likewise.
8229 2007-04-18 Denis Pilat <denis.pilat@st.com>
8231 * infcmd.c (post_create_inferior): Start with a call to
8232 target_terminal_ours.
8234 2007-04-17 Maciej W. Rozycki <macro@mips.com>
8236 * mips-tdep.c (mips_eabi_push_dummy_call): Rearrange some
8238 (mips_n32n64_push_dummy_call): Likewise. Reformat some
8240 (mips_o32_push_dummy_call): Likewise.
8241 (mips_o64_push_dummy_call): Likewise.
8243 2007-04-17 Maciej W. Rozycki <macro@mips.com>
8245 * mips-tdep.c (mips_n32n64_push_dummy_call): Fix a typo in a
8248 2007-04-17 Maciej W. Rozycki <macro@mips.com>
8250 * mips-tdep.c (mips_n32n64_push_dummy_call): Fix a typo in a
8252 (mips_o32_push_dummy_call): Likewise.
8254 2007-04-17 Andreas Schwab <schwab@suse.de>
8256 * symtab.c (skip_prologue_using_sal): Allow the end of the prologue
8257 sal to be bigger than the end of the function.
8259 2007-04-17 Maciej W. Rozycki <macro@mips.com>
8260 Nigel Stephens <nigel@mips.com>
8262 * mips-tdep.c (mips_o32_push_dummy_call): Take account of
8263 argument alignment requirements when calculating stack space
8264 required. When aligning an arg register to eight bytes
8265 boundary, align stack_offset too. Write floating-point
8266 arguments to the appropriate integer register if need go there.
8267 (mips_o64_push_dummy_call): Likewise.
8269 2007-04-14 Ulrich Weigand <uweigand@de.ibm.com>
8271 * gdbarch.sh (software_single_step): Remove "insert_breakpoints_p" and
8272 "sig" arguments, add "regcache" argument.
8273 * gdbarch.c, gdbarch.h: Regenerate.
8275 * infrun.c (resume): Update SOFTWARE_SINGLE_STEP call arguments.
8276 (handle_inferior_event): Call remove_single_step_breakpoints directly
8277 instead of calling SOFTWARE_SINGLE_STEP to remove breakpoints.
8279 * alpha-tdep.c (alpha_software_single_step): Update argument list.
8280 Remove handling of !insert_breakpoints_p case.
8281 * arm-tdep.c (arm_software_single_step): Likewise.
8282 * cris-tdep.c (cris_software_single_step): Likewise.
8283 * mips-tdep.c (mips_software_single_step): Likewise.
8284 * rs6000-tdep.c (rs6000_software_single_step): Likewise.
8285 * sparc-tdep.c (sparc_software_single_step): Likewise.
8286 * spu-tdep.c (spu_software_single_step): Likewise.
8288 * alpha-tdep.h (alpha_software_single_step): Update prototype.
8289 * mips-tdep.h (mips_software_single_step): Likewise.
8290 * rs6000-tdep.h (rs6000_software_single_step): Likewise.
8291 * sparc-tdep.h (sparc_software_single_step): Likewise.
8293 2007-04-14 Ulrich Weigand <uweigand@de.ibm.com>
8295 * alpha-tdep.c (alpha_software_single_step): Do not call write_pc
8296 when removing single-step breakpoints.
8298 2007-04-14 Vladimir Prus <vladimir@codesourcery.com>
8300 * varobj.h (varobj_set_frozen): New
8301 (varobj_get_frozen): New.
8302 (varobj_update): New parameter explicit.
8303 * varobj.c (struct varobj): New fields frozen
8305 (varobj_set_frozen, varobj_get_frozen): New.
8306 (install_new_value): Don't fetch values for
8307 frozen variable object, or children thereof. Allow
8308 a frozen variable object to have non-fetched value.
8309 (varobj_update): Allow updating child variables.
8310 Don't traverse frozen children.
8311 (new_variable): Initialize the frozen field.
8312 (c_value_of_variable): Return NULL for frozen
8313 variable without any value yet.
8314 * mi/mi-cmd-var.c (varobj_update_one): New parameter
8316 (mi_cmd_var_create): Output the 'frozen' field,
8317 as soon as testsuite is adjusted to expect that field.
8318 (mi_cmd_var_set_frozen): New.
8319 (mi_cmd_var_update): Pass the 'explicit' parameter to
8321 * mi/mi-cmds.c (mi_cmds): Register '-var-set-frozen'.
8322 * mi/mi-cmds.h (mi_cmd_var_set_frozen): Declare.
8324 2007-04-13 Paul Brook <paul@codesourcery.com>
8326 * target-descriptions.c (tdesc_named_type): Add ieee_single and
8328 * doc/gdb.texinfo: Document ieee_single and ieee_double target types.
8330 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
8332 * mips-mdebug-tdep.c, mips-mdebug-tdep.h, ocd.c, ocd.h, ppc-bdm.c,
8333 remote-e7000.c, remote-hms.c, remote-utils.c, remote-utils.h,
8334 scm-exp.c, scm-lang.c, scm-lang.h, scm-tags.h, scm-valprint.c,
8335 ser-e7kpc.c, sh3-rom.c, stop-gdb.c: Delete.
8336 * Makefile.in: Remove references to deleted files.
8337 * README: Do not mention deleted ROM monitor interfaces.
8338 * defs.h (enum language): Delete language_scm.
8339 * expprint.c (print_subexp_standard): Do not handle OP_EXPRSTRING.
8340 (dump_subexp_body_standard): Likewise.
8341 * parse.c (operator_length_standard): Likewise.
8342 * expression.h (enum exp_opcode): Delete OP_EXPRSTRING.
8343 * remote-mips.c: Do not include remote-utils.h.
8344 * remote-sim.c: Likewise. Use remote_debug instead of sr_get_debug
8346 * value.c: Do not include scm-lang.h.
8347 (unpack_long): Delete scm_unpack call.
8348 * config/h8300/h8300.mt, config/mips/embed.mt,
8349 config/powerpc/ppc-eabi.mt, config/powerpc/ppc-sim.mt,
8350 config/sh/embed.mt, config/sh/linux.mt: Remove references to
8352 * NEWS: Mention removed files.
8354 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
8356 * symfile.c (add_psymbol_with_dem_name_to_list): Remove.
8357 * symfile.h (add_psymbol_with_dem_name_to_list): Remove prototype.
8359 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
8361 * NEWS: Mention removal of HP aCC support.
8363 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
8365 * solib-svr4.c (IGNORE_FIRST_LINK_MAP_ENTRY): Do not ignore the
8366 first entry for static executables.
8367 (breakpoint_addr): Delete unused variable.
8368 (elf_locate_base): Search for _r_debug in static executables.
8369 (enable_break): Do not set breakpoint_addr. Scan solib_break_names
8372 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
8374 * breakpoint.c (update_breakpoints_after_exec, print_it_typical)
8375 (bpstat_what, print_one_breakpoint, allocate_bp_location)
8376 (mention): Remove bp_through_sigtramp support.
8377 * breakpoint.h (enum bptype): Remove bp_through_sigtramp.
8379 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
8381 * breakpoint.c (bpstat_what): Give step-resume higher priority than
8384 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
8386 * infrun.c: Doc fixes.
8387 (handle_inferior_event): Clarify debug message.
8388 (insert_step_resume_breakpoint_at_sal): Print a debug message.
8390 2007-04-12 Ulrich Weigand <uweigand@de.ibm.com>
8392 * configure.tgt (arm-*-nto*, sh-*-nto*): Remove.
8394 2007-04-12 Ulrich Weigand <uweigand@de.ibm.com>
8396 * config/m68k/tm-monitor.h: Delete file.
8397 * config/m68k/monitor.mt (DEPRECATED_TM_FILE): Remove.
8398 * m68k-tdep.c (m68k_gdbarch_init): set_gdbarch_decr_pc_after_break
8400 * m68kbsd-tdep.c (m68kbsd_init_abi): ... here and ...
8401 * m68klinux-tdep.c (m68k_linux_init_abi): ... here.
8403 2007-04-12 Luis Machado <luisgpm@br.ibm.com>
8405 * gdbarch.sh (software_single_step): Change the return type
8406 from void to int and reformatted some comments to <= 80
8408 * gdbarch.c, gdbarch.h: Regenerated.
8409 * alpha-tdep.c (alpha_software_single_step): Likewise.
8410 * alpha-tdep.h (alpha_software_single_step): Likewise.
8411 * arm-tdep.c (arm_software_single_step): Likewise.
8412 * cris-tdep.c (cris_software_single_step): Likewise.
8413 * mips-tdep.c (mips_software_single_step): Likewise.
8414 * mips-tdep.h (mips_software_single_step): Likewise.
8415 * rs6000-tdep.c (rs6000_software_single_step): Likewise.
8416 * rs6000-tdep.h (rs6000_software_single_step): Likewise.
8417 * sparc-tdep.c (sparc_software_single_step): Likewise.
8418 * sparc-tdep.h (sparc_software_single_step): Likewise.
8419 * spu-tdep.c (spu_software_single_step): Likewise.
8420 * infrun.c (resume): Check the return value from SOFTWARE_SINGLE_STEP
8421 and act accordingly.
8423 2007-04-11 Steve Ellcey <sje@cup.hp.com>
8425 * configure.ac (build_warnings): Add -Wno-char-subscripts.
8426 * configure: Regenerate.
8427 * doc/gdbint.texinfo (warning flags): Add -Wno-char-subscripts.
8429 2007-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
8431 * libunwind-frame.c (LIBUNWIND_SO): Use major version number for `.so'.
8433 2007-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
8435 * gdbtypes.h (TYPE_FLAG_STUB_SUPPORTED, TYPE_STUB_SUPPORTED): New
8437 (TYPE_IS_OPAQUE): Empty vs. opaque structures are now
8438 distinct on the TYPE_STUB_SUPPORTED debug targets.
8439 * dwarf2read.c (read_structure_type): Set TYPE_FLAG_STUB_SUPPORTED.
8441 2007-04-11 Joel Brobecker <brobecker@adacore.com>
8443 * sparc-tdep.c (X_RS2): New macro.
8444 (sparc_skip_stack_check): New function.
8445 (sparc_analyze_prologue): Adjust PC past stack probing
8446 sequence if necessary.
8448 2007-04-10 Andreas Schwab <schwab@suse.de>
8450 * rs6000-tdep.c (rs6000_dwarf2_reg_to_regnum): Decode 64 as CR
8453 2007-04-10 Daniel Jacobowitz <dan@codesourcery.com>
8455 * breakpoint.c (gdb_breakpoint_query): Really return an
8457 (gdb_breakpoint): Likewise.
8458 * thread.c (gdb_list_thread_ids): Likewise.
8459 (gdb_thread_select): Likewise.
8460 * mi/mi-main.c (mi_cmd_thread_select): Expect an enum gdb_rc.
8461 (mi_cmd_thread_list_ids): Remove bogus initialization.
8463 2007-04-10 Daniel Jacobowitz <dan@codesourcery.com>
8465 * Makefile.in (SFILES): Remove hpacc-abi.c.
8466 (COMMON_OBS): Remove hpacc-abi.o.
8467 (ALLDEPFILES): Remove hpread.c and $(HPREAD_SOURCE).
8468 (hpacc-abi.o, hpread.o): Delete rules.
8469 * somread.c: Delete extern declarations from hpread.c.
8470 (som_symfile_read): Do not call do_pxdb or hpread_build_psymtabs.
8471 (som_symfile_finish): Do not call hpread_symfile_finish.
8472 (som_symfile_init): Do not call hpread_symfile_init.
8473 * config/pa/hppa64.mt (TDEPFILES): Remove hpread.o.
8474 * config/pa/hppahpux.mt (TDEPFILES): Likewise.
8475 * hpacc-abi.c, hpread.c: Deleted.
8477 2007-04-10 Daniel Jacobowitz <dan@codesourcery.com>
8479 * solib-svr4.c (enable_break): Simplify return value.
8480 (svr4_solib_create_inferior_hook): Do not warn if enable_break fails.
8482 2007-04-10 Andreas Schwab <schwab@suse.de>
8484 * solib-svr4.h (struct link_map_offsets): Remove l_addr_size,
8485 l_ld_size, l_next_size, l_prev_size, l_name_size.
8487 * solib-svr4.c (LM_ADDR_FROM_LINK_MAP): Use extract_typed_address
8488 to extract addresses from link map.
8489 (LM_DYNAMIC_FROM_LINK_MAP): Likewise.
8490 (LM_NEXT): Likewise.
8491 (LM_NAME): Likewise.
8492 (IGNORE_FIRST_LINK_MAP_ENTRY): Likewise.
8493 (elf_locate_base): Likewise.
8494 (open_symbol_file_object): Likewise.
8495 (svr4_fetch_objfile_link_map): Likewise.
8496 (SOLIB_EXTRACT_ADDRESS): Remove unused macro.
8497 (HAS_LM_DYNAMIC_FROM_LINK_MAP): Test l_ld_offset instead of
8499 (svr4_ilp32_fetch_link_map_offsets): Don't set removed members.
8500 (svr4_lp64_fetch_link_map_offsets): Likewise.
8502 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets): Don't set
8503 removed members. Set l_ld_offset to -1 if not present.
8505 2007-04-08 Vladimir Prus <vladimir@codesourcery.com>
8507 Pass stderr of program run with "target remote |"
8509 * serial.c (serial_open): Set error_fd to -1.
8510 * serial.h (struct serial): New field error_fd.
8511 (struct serial_opts): New field avail.
8512 * ser-pipe.c (pipe_open): Create another pair
8513 of sockets. Pass stderr to gdb.
8514 * ser-mingw.c (pipe_windows_open): Pass
8515 PEX_STDERR_TO_PIPE to pex_run. Initialize
8518 (_initialize_ser_windows): Hook pipe_avail.
8519 * ser-base.c (generic_readchar): Check if there's
8520 anything in stderr channel and route that to gdb_stderr.
8522 2007-04-03 Pedro Alves <pedro_alves@portugalmail.pt>
8524 * dbxread.c (read_ofile_symtab): Move current_objfile
8525 clearing to after end_stabs.
8527 2007-04-01 Andreas Schwab <schwab@suse.de>
8529 * rs6000-tdep.c (rs6000_convert_from_func_ptr_addr): Use parameter
8530 gdbarch instead of current_gdbarch.
8532 2007-04-01 Vladimir Prus <vladimir@codesourcery.com>
8534 * varobj.c (varobj_create): Keep varobj value
8535 NULL when evaluating the type.
8537 2007-03-31 Pedro Alves <pedro_alves@portugalmail.pt>
8539 * NEWS: Mention new Windows CE support.
8541 2007-03-30 Pedro Alves <pedro_alves@portugalmail.pt>
8543 * configure.tgt: Move mips*-*-pe and sh*-*-pe to
8544 the obsoletion stanza.
8545 * NEWS: Mention deleted targets.
8547 * config/sh/tm-wince.h: Remove.
8548 * config/sh/wince.mt: Remove.
8549 * config/mips/tm-wince.h: Remove.
8550 * config/mips/wince.mt: Remove.
8553 * wince-stub.c: Remove.
8554 * wince-stub.h: Remove.
8555 * Makefile.in (wince.o): Remove rule.
8556 (wince-stub.o): Likewise.
8558 * mips-tdep.c (mips_next_pc): Make static.
8559 * mips-tdep.h (mips_next_pc): Remove declaration.
8560 * arm-tdep.c (arm_pc_is_thumb): Make static.
8561 (thumb_get_next_pc): Likewise.
8562 (arm_get_next_pc): Likewise.
8563 * arm-tdep.h (arm_pc_is_thumb_dummy): Remove declaration.
8564 (arm_pc_is_thumb): Likewise.
8565 (thumb_get_next_pc): Likewise.
8566 (arm_get_next_pc): Likewise.
8568 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
8570 * MAINTAINERS: Remove d10v entry.
8571 * Makefile.in (SFILES): Remove dwarfread.c.
8572 (COMMON_OBS): Remove dwarfread.o.
8573 (gdb_sim_d10v_h, abug-rom.o, cpu32bug-rom.o, d10v-tdep.o, dwarfread.o)
8574 (remote-est.o, rom68k-rom.o): Delete.
8575 * NEWS: Mention removal of d10v, target abug, target cpu32bug,
8576 target est, target rom68k, and DWARF 1.
8577 * configure.tgt: Mark d10v as removed.
8578 * dwarf2read.c: Doc update.
8579 * elfread.c (struct elfinfo): Remove dboffset, dbsize, lnoffset,
8581 (elf_locate_sections): Do not set them.
8582 (elf_symfile_read): Do not call dwarf_build_psymtabs.
8583 * symfile.h (dwarf_build_psymtabs): Delete prototype.
8584 * config/m68k/monitor.mt (TDEPFILES): Prune.
8585 * abug-rom.c, cpu32bug-rom.c, d10v-tdep.c, dwarfread.c,
8586 remote-est.c, rom68k-rom.c, config/d10v/d10v.mt: Delete.
8588 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
8590 * doublest.c (convert_floatformat_to_doublest): Use
8591 floatformat_classify.
8592 (floatformat_is_nan): Rename to...
8593 (floatformat_classify): ...this. Return more information.
8594 * doublest.h (enum float_kind): New.
8595 (floatformat_is_nan): Replace prototype...
8596 (floatformat_classify): ...with this one.
8597 * valprint.c (print_floating): Use floatformat_classify. Handle
8600 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
8602 * README: Mention ISO C library requirement.
8604 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
8606 * Makefile.in (SFILES): Remove nlmread.c.
8607 (COMMON_OBS): Remove nlmread.o.
8608 (nlmread.o): Delete rule.
8609 * README: Delete reference to remote-st.c.
8610 * acinclude.m4 (CY_AC_TCL_LYNX_POSIX): Delete.
8611 * defs.h (enum gdb_osabi): Delete GDB_OSABI_NETWARE and
8613 * i386-tdep.c (i386_nw_init_abi, i386_nlm_osabi_sniffer): Delete.
8614 (_initialize_i386_tdep): Do not reference them.
8615 * nlmread.c: Delete file.
8616 * osabi.c (gdb_osabi_names): Remove NetWare and LynxOS.
8617 * target.c: Doc update.
8618 * thread.c: Delete commented include.
8619 * config/alpha/tm-alpha.h: Doc update.
8621 2007-03-30 Chris Dearman <chris@mips.com>
8623 * utils.c (string_to_core_addr): Comment typo.
8625 2007-03-30 Chris Dearman <chris@mips.com>
8627 * mips-tdep.c: Comment typo.
8629 2007-03-29 Ulrich Weigand <uweigand@de.ibm.com>
8631 * config/alpha/nm-osf.h (PTRACE_XFER_TYPE): Remove.
8632 * config/mips/nm-linux.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Remove.
8633 * config/sparc/nm-linux.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Remove.
8634 * config/powerpc/nm-ppc64-linux.h: Remove file.
8635 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Set to nm-linux.h.
8636 * inferior.h (PTRACE_ARG3_TYPE): Do not define.
8637 (call_ptrace): Change type of third argument to PTRACE_TYPE_ARG3.
8638 * infptrace.c (call_ptrace): Likewise.
8639 * m68klinux-nat.c (PTRACE_XFER_TYPE): Do not define.
8640 (fetch_register): Replace PTRACE_ARG3_TYPE by PTRACE_TYPE_ARG3
8641 and PTRACE_XFER_TYPE by PTRACE_TYPE_RET.
8642 (store_register): Likewise.
8644 2007-03-29 Joel Brobecker <brobecker@adacore.com>
8646 * Makefile.in (varobj.o): Add missing dependency.
8648 2007-03-29 Michael Snyder <msnyder@access-company.com>
8650 * MAINTAINERS: Update my email address.
8652 2007-03-29 Joel Brobecker <brobecker@adacore.com>
8654 Add support for exception handling with multiple versions of
8656 * ada-lang.c: Update general comments on how Ada exception catchpoints
8658 (raise_sym_name, raise_unhandled_sym_name, raise_assert_sym_name)
8659 (__gnat_raise_nodefer_with_msg): Delete.
8660 (ada_unhandled_exception_name_addr_ftype): New type.
8661 (exception_support_info): New type.
8662 (ada_unhandled_exception_name_addr): Add forward declaration.
8663 (ada_unhandled_exception_name_addr_from_raise): Likewise.
8664 (default_exception_support_info): New constant.
8665 (exception_support_info_fallback): Likewise.
8666 (exception_info): New global variable.
8667 (ada_exception_support_info_sniffer): New function.
8668 (ada_executable_changed_observer): Likewise.
8669 (ada_unhandled_exception_name_addr_from_raise): Renamed from
8670 ada_unhandled_exception_name_addr.
8671 (ada_unhandled_exception_name_addr): Reimplement to match the
8672 latest Ada runtime implementation.
8673 (error_breakpoint_runtime_sym_not_found): Delete.
8674 (ada_exception_sym_name): Get the exception sym name from
8675 exception_info rather than hardcoding it.
8676 (ada_exception_sal): Add call to ada_exception_support_info_sniffer.
8677 Update error handling.
8678 * Makefile.in (ada-lang.o): Add dependency on observer.h.
8680 2007-03-29 Daniel Jacobowitz <dan@codesourcery.com>
8682 * Makefile.in (coff_solib_h, coff-solib.o, i386v-nat.o, lynx-nat.o)
8683 (remote-st.o, uw-thread.o): Delete.
8684 (HFILES_NO_SRCDIR, ALLDEPFILES): Update.
8685 * configure.host: Move hppa*-*-hiux*, i[34567]86-ncr-*,
8686 i[34567]86-*-dgux*, i[34567]86-*-lynxos*, i[34567]86-*-sco3.2v5*,
8687 i[34567]86-*-sco3.2v4*, i[34567]86-*-sco*, i[34567]86-*-sysv4.2*,
8688 i[34567]86-*-sysv4*, i[34567]86-*-sysv5*, i[34567]86-*-unixware2*,
8689 i[34567]86-*-unixware*, i[34567]86-*-sysv*, i[34567]86-*-isc*, and
8690 rs6000-*-lynxos* to an obsoletion stanza.
8691 * configure.tgt: Move hppa*-*-hiux*, i[34567]86-ncr-*,
8692 i[34567]86-*-lynxos*, m68*-cisco*-*, m68*-tandem-*, m68*-*-os68k*,
8693 and rs6000-*-lynxos* to an obsoletion stanza. Do not mention
8694 i[34567]86-*-netware*.
8695 * NEWS: Mention deleted targets.
8697 * coff-solib.c, coff-solib.h, i386v-nat.c, lynx-nat.c, remote-st.c,
8698 uw-thread.c, config/nm-lynx.h, config/i386/i386sco.mh,
8699 config/i386/i386sco4.mh, config/i386/i386sco5.mh, config/i386/i386v.mh,
8700 config/i386/i386v4.mh, config/i386/i386v42mp.mh,
8701 config/i386/ncr3000.mh, config/i386/ncr3000.mt,
8702 config/i386/nm-i386sco.h, config/i386/nm-i386sco4.h,
8703 config/i386/nm-i386sco5.h, config/i386/nm-i386v.h,
8704 config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h,
8705 config/m68k/cisco.mt, config/m68k/os68k.mt, config/m68k/st2000.mt,
8706 config/m68k/tm-cisco.h, config/m68k/tm-os68k.h,
8707 config/rs6000/rs6000lynx.mh, config/rs6000/rs6000lynx.mt,
8708 config/rs6000/tm-rs6000ly.h: Delete files.
8710 2007-03-29 Daniel Jacobowitz <dan@codesourcery.com>
8712 * defs.h (deprecated_registers_changed_hook): Delete declaration.
8713 * interps.c (clear_interpreter_hooks): Do not clear
8714 deprecated_registers_changed_hook.
8715 * regcache.c (registers_changed): Do not call it.
8716 * top.c (deprecated_registers_changed_hook): Do not define it.
8717 * mi/mi-interp.c (mi_command_loop): Do not clear it.
8718 * tui/tui-hooks.c (tui_install_hooks): Do not install it.
8719 (tui_remove_hooks): Do not remove it.
8720 (tui_selected_frame_level_changed_hook): Check for negative level.
8721 Use get_selected_frame.
8722 (tui_registers_changed_hook): Deleted.
8724 2007-03-29 Joel Brobecker <brobecker@adacore.com>
8726 * stabsread.c (add_undefined_type): Add extra parameter.
8727 Now handles nameless types separately.
8728 (struct nat): New type.
8729 (noname_undefs, noname_undefs_allocated, noname_undefs_length):
8730 New static variables.
8731 (read_type): Update calls to add_undefined_type.
8732 (add_undefined_type_noname): New function.
8733 (add_undefined_type_1): Renames from add_undefined_type.
8734 (cleanup_undefined_types_noname): New function.
8735 (cleanup_undefined_types_1): Renames cleanup_undefined_types.
8736 (cleanup_undefined_types): New handles nameless types separately.
8737 (_initialize_stabsread): Initialize our new static constants.
8739 2007-03-29 Denis Pilat <denis.pilat@st.com>
8741 * configure.ac: Test for signal.h.
8742 * configure, config.in: Regenerate.
8744 2007-03-29 Denis Pilat <denis.pilat@st.com>
8746 * stack.c (print_stack_frame): Always use LOC_AND_ADDRESS in MI output.
8747 * infrun.c (normal_stop): Remove MI specific frame printing treatment.
8749 2007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
8751 * arm-wince-tdep.c: New.
8752 * config/arm/wince.mt (DEPRECATED_TM_FILE): Use tm-arm.h.
8753 (MT_CFLAGS): Delete.
8755 (TDEPFILES): Add arm-wince-tdep.o, corelow.o, solib.o,
8756 solib-legacy.o, solib-svr4.o, and remove wince.o.
8757 * configure.tgt (arm*-*-mingw32ce*): Add.
8758 * signals/signals.c [HAVE_SIGNAL_H]: Check.
8759 (do_target_signal_to_host): Silence 'not used' warning.
8760 * config/arm/tm-wince.h: Remove.
8762 2007-03-28 Ulrich Weigand <uweigand@de.ibm.com>
8764 * arch-utils.c (legacy_pc_in_sigtramp): Remove.
8765 * arch-utils.h (legacy_pc_in_sigtramp): Remove.
8767 * config/ia64/linux.mt (DEPRECATED_TM_FILE): Remove.
8768 * config/ia64/tm-linux.h: Remove file.
8769 * ia64-tdep.h (struct gdbarch_tdep): Add pc_in_sigtramp callback.
8770 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Use it instead of
8771 legacy_pc_in_sigtramp.
8772 (ia64_gdbarch_init): Initialize tdep->pc_in_sigtramp.
8773 * ia64-linux-tdep.c (ia64_linux_pc_in_sigtramp): Make static.
8774 Remove func_name argument.
8775 (ia64_linux_init_abi): Install it as tdep->pc_in_sigtramp.
8777 * infrun.c (HAVE_STEPPABLE_WATCHPOINT): Do not redefine.
8778 * target.c (update_current_target): Add to_have_steppable_watchpoint.
8779 * target.h (struct target_ops): Add to_have_steppable_watchpoint.
8780 (HAVE_STEPPABLE_WATCHPOINT): Define.
8782 * config/ia64/linux.mh (NATDEPFILES): Remove core-aout.o.
8783 * config/ia64/nm-linux.h (KERNEL_U_ADDR, U_REGS_OFFSET,
8784 CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER,
8785 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_STEPPABLE_WATCHPOINT,
8786 STOPPED_BY_WATCHPOINT, target_stopped_data_address,
8787 target_insert_watchpoint, target_remove_watchpoint): Remove.
8788 (FETCH_INFERIOR_REGISTERS): Define.
8789 * ia64-linux-nat.c (ia64_register_addr): Make static.
8790 (ia64_cannot_fetch_register, ia64_cannot_store_register): Likewise.
8791 (ia64_linux_insert_watchpoint): Make static. Remove ptid_p argument.
8792 (ia64_linux_remove_watchpoint): Likewise. Add type argument.
8793 (ia64_linux_stopped_data_address): Make static. Add target_ops.
8794 (ia64_linux_stopped_by_watchpoint): Make static.
8795 (ia64_linux_can_use_hw_breakpoint): New function.
8796 (ia64_linux_fetch_register, ia64_linux_fetch_registers): Likewise.
8797 (ia64_linux_store_register, ia64_linux_store_registers): Likewise.
8798 (_initialize_ia64_linux_nat): Install register and watchpoint ops.
8800 2007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
8802 * linespec.c: Include language.h.
8803 (find_methods): Add language parameter. Call
8804 lookup_symbol_in_language. Pass language down.
8805 (add_matching_methods): Likewise. Call
8806 lookup_symbol_in_language.
8807 (add_constructors): Likewise.
8808 (find_method): Pass sym_class to collect_methods.
8809 (collect_methods): Add sym_class parameter. Pass language
8811 * symtab.c (lookup_symbol): Rename to ...
8812 (lookup_symbol_in_language): ... this. Add language
8813 parameter. Use passed language instead of current_language.
8814 (lookup_symbol): New as wrapper around
8815 lookup_symbol_in_language.
8816 (lookup_symbol_aux): Add language parameter. Use passed
8817 language instead of current_language.
8818 (search_symbols): Indent.
8819 * symtab.h (enum language): Forward declare.
8820 (lookup_symbol_in_language): Declare.
8821 (lookup_symbol): Update description.
8822 * ada-lang.h (lookup_symbol_in_language): Remove declaration.
8823 * ada-lang.c (restore_language): Remove.
8824 (lookup_symbol_in_language): Remove.
8826 2007-03-27 Pedro Alves <pedro_alves@portugalmail.pt>
8828 * breakpoint.c (bpstat_num): Add int *num parameter.
8829 * breakpoint.h (bpstat_num): Likewise.
8830 * infcmd.c (continue_command): Adjust to new bpstat_num
8832 (program_info): Likewise.
8834 2007-03-27 Ulrich Weigand <uweigand@de.ibm.com>
8836 * config/sh/tm-sh.h: Remove file.
8837 * config/sh/embed.mt (DEPRECATED_TM_FILE): Remove.
8838 * config/sh/linux.mt (DEPRECATED_TM_FILE): Remove.
8839 * config/sh/nbsd.mt (DEPRECATED_TM_FILE): Remove.
8840 * config/sh/tm-wince.h: Do not include "sh/tm-sh.h".
8842 2007-03-27 Ulrich Weigand <uweigand@de.ibm.com>
8844 * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT,
8845 DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Remove.
8846 * remote.c: Remove code under #ifdef DEPRECATED_REMOTE_BREAKPOINT,
8847 DEPRECATED_BIG_REMOTE_BREAKPOINT, DEPRECATED_LITTLE_REMOTE_BREAKPOINT.
8848 * sh-tdep.c (sh_breakpoint_from_pc): Return remote breakpoint
8849 sequence if target_shortname is "remote".
8851 2007-03-27 Anton Blanchard <anton@samba.org>
8853 * rs6000-tdep.c (rs6000_frame_cache): Use tdep->lr_frame_offset
8854 instead of wordsize when looking for the LR in a stack frame.
8856 2007-03-27 Andreas Schwab <schwab@suse.de>
8857 Daniel Jacobowitz <dan@codesourcery.com>
8859 * dwarf2-frame.c (dwarf2_frame_eh_frame_regnum): Rename to...
8860 (dwarf2_frame_adjust_regnum): ...this. Make static. Add eh_frame_p
8861 argument. Update all callers.
8862 (struct dwarf2_frame_ops): Replace eh_frame_regnum with adjust_regnum.
8863 (dwarf2_frame_set_eh_frame_regnum): Rename to...
8864 (dwarf2_frame_set_adjust_regnum): ...this. Update argument type.
8865 * dwarf2frame.h (dwarf2_frame_set_eh_frame_regnum): Rename to...
8866 (dwarf2_frame_set_adjust_regnum): ...this.
8867 (dwarf2_frame_eh_frame_regnum): Delete prototype.
8868 * rs6000-tdep.c: Include "dwarf2-frame.h".
8869 (rs6000_adjust_frame_regnum): Define.
8870 (rs6000_gdbarch_init): Enable use of DWARF CFI frame unwinder.
8871 Register rs6000_adjust_frame_regnum.
8873 * Makefile.in (rs6000-tdep.o): Update dependencies.
8875 2007-03-27 Brooks Moses <brooks.moses@codesourcery.com>
8877 * Makefile.in: Add support for a "pdf" target.
8879 2007-03-27 Daniel Jacobowitz <dan@codesourcery.com>
8881 * amd64-tdep.c (amd64_init_frame_cache): New function.
8882 (amd64_alloc_frame_cache, amd64_skip_prologue): Use it.
8884 2007-03-26 Nigel Stephens <nigel@mips.com>
8885 Maciej W. Rozycki <macro@mips.com>
8887 * ui-out.c (ui_out_field_core_addr): Truncate address to
8888 TARGET_ADDR_BIT size before printing.
8890 2007-03-22 Nigel Stephens <nigel@mips.com>
8891 Maciej W. Rozycki <macro@mips.com>
8893 * remote-mips.c (mips_xfer_memory): Update prototype.
8895 2007-03-22 Joel Brobecker <brobecker@adacore.com>
8897 * symfile.h: #include "symtab.h"
8899 2007-03-22 Denis Pilat <denis.pilat@st.com>
8901 * utils.c (pagination_on_command, pagination_off_command):
8902 Remove useless prototypes.
8904 2007-03-21 Pierre Muller <muller@ics.u-strasbg.fr>
8907 * p-valprint.c (pascal_object_print_value): Use type_name_no_tag
8908 instead of TYPE_NAME for object base class name.
8911 2007-03-19 Kevin Buettner <kevinb@redhat.com>
8913 * mep-tdep.c (mep_analyze_frame_prologue, mep_frame_this_id):
8914 Specify frame type in calls to frame_func_unwind().
8916 2007-03-13 Daniel Jacobowitz <dan@codesourcery.com>
8918 * rs6000-tdep.c (rs6000_skip_prologue): Use skip_prologue_using_sal.
8919 (rs6000_in_function_epilogue_p): Use extract_unsigned_integer.
8920 (refine_prologue_limit): Delete.
8921 (skip_prologue): Don't call it. Use extract_unsigned_integer.
8922 Assume lim_pc is set. Correct check for incomplete prologues.
8923 Do not skip clobbers of the frame pointer.
8924 * symtab.c (skip_prologue_using_sal): Fail if there is only one
8927 2007-03-13 Nathan Froyd <froydnj@codesourcery.com>
8929 * frame.c (frame_pop): Check to see whether there's a frame to
8930 which we can pop first.
8932 2007-03-13 Nathan Froyd <froydnj@codesourcery.com>
8934 * MAINTAINERS (Write After Approval): Add myself.
8936 2007-03-09 Markus Deuling <deuling@de.ibm.com>
8938 * infrun.c (breakpoints_failed): Remove unnecessary variable.
8939 (handle_inferior_event): Remove unnecessary braces.
8940 * breakpoint.c (bpstat_what): Remove wrong comment.
8942 2007-03-09 Ulrich Weigand <uweigand@de.ibm.com>
8944 * spu-tdep.c (spu_in_function_epilogue_p): New function.
8945 (spu_gdbarch_init): Install it.
8947 2007-03-08 Ulrich Weigand <uweigand@de.ibm.com>
8949 * spu-linux-nat.c (spu_xfer_partial): Return -1 for unsupported
8950 object types, not 0.
8952 2007-03-08 Ulrich Weigand <uweigand@de.ibm.com>
8954 * spu-tdep.c (spu_frame_align): New function.
8955 (spu_gdbarch_init): Install it. Set call dummy location to ON_STACK.
8957 2007-03-08 Ulrich Weigand <uweigand@de.ibm.com>
8959 * spu-tdep.c (spu_unwind_pc): Mask off interrupt enable bit.
8960 (spu_software_single_step): Likewise.
8961 (spu_read_pc, spu_write_pc): New functions.
8962 (spu_gdbarch_init): Install them.
8964 2007-03-08 Ulrich Weigand <uweigand@de.ibm.com>
8966 * cli/cli-dump.c (struct callback_data): load_offset needs to
8967 have signed long type.
8969 2007-03-07 Joel Brobecker <brobecker@adacore.com>
8971 * mips-tdep.c (mips_insn16_frame_cache, mips_insn32_frame_sniffer):
8972 Revert the previous change that had some unexpected side-effects
8974 (mips_insn16_frame_cache, mips_insn32_frame_cache): Use the proper
8975 function to get the address of the calling instruction.
8977 2007-03-07 Denis Pilat <denis.pilat@st.com>
8979 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Replace
8980 get_selected_frame by deprecated_safe_get_selected_frame.
8982 2007-03-02 Mark Kettenis <kettenis@gnu.org>
8984 * shnbsd-tdep.c: Include "regset.h", "gdb_assert.h" and
8985 "gdb_string.h". Don't include "nbsd-tdep.h".
8986 (SIZEOF_STRUCT_REG): Remove.
8987 (SHNBSD_SIZEOF_GREGS): New.
8988 (shnbsd_supply_gregset, shnbsd_collect_gregset)
8989 (shnbsd_regset_from_core_section): New functions.
8990 (fetch_core_registers, fetch_elfcore_registers): Remove functions.
8991 (shnbsd_supply_reg, shnbsd_fill_reg): Simply call
8992 shnbsd_supply_gregset, shnbsd_collect_gregset.
8993 (shnbsd_gregset): New variable.
8994 (shnbsd_init_abi): Set regset_from_core_section.
8995 (GDB_OSABI_NETBSD_CORE): New define.
8996 (shnbsd_core_osabi_sniffer): New function.
8997 (_initialize_shnbsd_tdep): Register shnbsd_core_osabi_sniffer.
8998 * Makefile.in (shnbsd-tdep.o): Update dependencies.
8999 * config/sh/nbsd.mt (TDEPFILES): Add corelow.o, remove
9001 * config/sh/obsd.mt (TDEPFILES): Remove nbsd-tdep.o.
9003 2007-02-28 Joel Brobecker <brobecker@adacore.com>
9005 * gdbtypes.c (replace_type): Fix typo that caused us to not update
9006 length of the types referenced by the new type CV ring.
9008 2007-02-28 Daniel Jacobowitz <dan@codesourcery.com>
9010 * frame.c (frame_pop, frame_observer_target_changed): Call
9012 (flush_cached_frames): Rename to reinit_frame_cache and delete
9014 * frame.h (flush_cached_frames): Delete prototype and update comment.
9016 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd): Call
9017 reinit_frame_cache instead of flush_cached_frames. Do not call
9018 select_frame after reinit_frame_cache.
9019 * corelow.c (core_open): Likewise.
9020 * gdbarch.sh (deprecated_current_gdbarch_select_hack): Likewise.
9021 * infrun.c (prepare_to_proceed, context_switch)
9022 (handle_inferior_event): Likewise.
9023 * linux-fork.c (fork_load_infrun_state): Likewise.
9024 * ocd.c (ocd_start_remote): Likewise.
9025 * remote-e7000.c (e7000_start_remote): Likewise.
9026 * remote-mips.c (device): Likewise.
9027 * thread.c (switch_to_thread): Likewise.
9028 * tracepoint.c (finish_tfind_command): Likewise.
9029 * gdbarch.c: Regenerated.
9031 2007-02-28 Jerome Guitton <guitton@adacore.com>
9032 Joel Brobecker <brobecker@adacore.com>
9034 * gdbtypes.c (check_typedef): Do not replace stub type if
9035 the resolved type is not defined in the same objfile.
9037 2007-02-28 Daniel Jacobowitz <dan@codesourcery.com>
9039 * top.c (gdb_readline_wrapper_cleanup): Remove invalid assertion.
9041 2007-02-28 Joel Brobecker <brobecker@adacore.com>
9043 * stabsread.c (define_symbol): Create an associated STRUCT_DOMAIN
9044 symbol for Ada units when the symbol is defined using 't' rather
9045 than 'Tt' as symbol descriptor.
9047 2007-02-28 Ulrich Weigand <uweigand@de.ibm.com>
9049 * config/mips/tm-nbsd.h: Delete file.
9050 * config/mips/nbsd.mt (DEPRECATED_TM_FILE): Remove.
9051 * config/sh/tm-nbsd.h: Delete file.
9052 * config/sh/nbsd.mt (DEPRECATED_TM_FILE): Set to tm-sh.h.
9054 2007-02-28 Joel Brobecker <brobecker@adacore.com>
9056 * mi/mi-cmd-var.c (varobj_update_one): Remove reference to
9057 unused WRONG_PARAM value since it was recently deleted.
9059 2007-02-28 Vladimir Prus <vladimir@codesourcery.com>
9061 * varobj.c (varobj_update): Free temporary vectors.
9063 2007-02-28 Ulrich Weigand <uweigand@de.ibm.com>
9065 * config/powerpc/linux.mt (DEPRECATED_TM_FILE): Set to tm-ppc-eabi.h.
9066 * config/powerpc/tm-linux.h: Delete file.
9067 * config/powerpc/tm-ppc-eabi.h: Do not include "rs6000/tm-rs6000.h".
9068 (PROCESS_LINENUMBER_HOOK): Do not undefine.
9069 (TEXT_SEGMENT_BASE): Do not redefine.
9070 * config/rs6000/nm-rs6000.h (CHILD_SPECIAL_WAITSTATUS): Move here
9071 from config/rs6000/tm-rs6000.h.
9072 (TARGET_CREATE_INFERIOR_HOOK, rs6000_create_inferior): Likewise.
9073 * config/rs6000/tm-rs6000.h (struct frame_info): Remove declaration.
9074 (TEXT_SEGMENT_BASE): Remove.
9075 (IN_SOLIB_RETURN_TRAMPOLINE): Remove.
9076 (rs6000_in_solib_return_trampoline): Remove.
9077 (SKIP_TRAMPOLINE_CODE): Remove.
9078 (rs6000_skip_trampoline_code): Remove.
9079 (CHILD_SPECIAL_WAITSTATUS): Move to config/rs6000/nm-rs6000.h.
9080 (TARGET_CREATE_INFERIOR_HOOK, rs6000_create_inferior): Likewise.
9081 (FP0_REGNUM): Remove.
9082 (rs6000_find_toc_address_hook): Move to rs6000-tdep.h.
9083 (rs6000_set_host_arch_hook): Remove.
9084 * Makefile.in (rs6000-nat.o): Add dependency on $(rs6000_tdep_h).
9085 (rs6000-aix-tdep.o): Add dependency on $(ppc_tdep_h).
9086 * ppc-tdep.h (struct gdbarch_tdep): Add field text_segment_base.
9087 * rs6000-aix-tdep.c: Include "ppc-tdep.h".
9088 (rs6000_aix_init_osabi): Set text_segment_base tdep field.
9089 * rs6000-nat.c: Include "rs6000-tdep.h".
9090 (exec_one_dummy_insn): Replace TEXT_SEGMENT_BASE by tdep field.
9091 (set_host_arch): Rename to ...
9092 (rs6000_create_inferior): ... this. Make public.
9093 (_initialize_core_rs6000): Do not set rs6000_set_host_arch_hook.
9094 * rs6000-tdep.c (rs6000_set_host_arch_hook): Remove.
9095 (rs6000_create_inferior): Remove.
9096 (branch_dest): Replace TEXT_SEGMENT_BASE by tdep field.
9097 (rs6000_gdbarch_init): Call set_gdbarch_fp0_regnum,
9098 set_gdbarch_in_solib_return_trampoline, and
9099 set_gdbarch_skip_trampoline_code.
9100 * rs6000-tdep.h (rs6000_find_toc_address_hook): Move here
9101 from config/rs6000/tm-rs6000.h.
9103 2007-02-27 Joel Brobecker <brobecker@adacore.com>
9105 * buildsym.c (record_producer): Do nothing if no producer is provided.
9107 2007-02-27 Nick Roberts <nickrob@snap.net.nz>
9109 * varobj.c (varobj_update): Remove unused local. Use gdb_assert
9110 to check changelist is non-NULL. Call error if the frontend tries
9111 to update a non-root variable.
9113 * varobj.h (enum varobj_update_error): Delete WRONG_PARAM value.
9115 2007-02-27 Daniel Jacobowitz <dan@codesourcery.com>
9117 * dwarf2-frame.c (dwarf2_frame_cache, dwarf2_frame_this_id)
9118 (dwarf2_frame_sniffer): Update.
9119 (dwarf2_signal_frame_this_id): New function.
9120 (dwarf2_signal_frame_unwind): Use it.
9121 (dwarf2_frame_base_sniffer): Use frame_unwind_address_in_block.
9122 * frame.c (frame_func_unwind): Add this_type argument.
9123 (get_frame_func): Update.
9124 (frame_unwind_address_in_block): Add this_type argument and check it.
9126 (get_frame_address_in_block): Update.
9127 * frame.h (enum frame_type): Move higher in the file.
9128 (frame_unwind_address_in_block, frame_func_unwind): Add enum frame_type
9131 * alpha-mdebug-tdep.c, alpha-tdep.c, amd64-tdep.c, amd64obsd-tdep.c,
9132 arm-tdep.c, avr-tdep.c, cris-tdep.c, frv-tdep.c, h8300-tdep.c,
9133 hppa-tdep.c, i386-tdep.c, i386obsd-tdep.c, ia64-tdep.c,
9134 libunwind-frame.c, m32c-tdep.c, m32r-linux-tdep.c, m32r-tdep.c,
9135 m68hc11-tdep.c, m68k-tdep.c, m88k-tdep.c, mips-mdebug-tdep.c,
9136 mips-tdep.c, mn10300-tdep.c, mt-tdep.c, rs6000-tdep.c, s390-tdep.c,
9137 score-tdep.c, sh-tdep.c, sh64-tdep.c, sparc-tdep.c,
9138 sparc64obsd-tdep.c, spu-tdep.c, v850-tdep.c, vax-tdep.c,
9139 xstormy16-tdep.c, xtensa-tdep.c: Update calls to
9140 frame_func_unwind and frame_unwind_address_in_block to specify
9141 the frame type. Use frame_unwind_address_in_block instead of
9142 frame_pc_unwind in sniffers.
9144 2007-02-27 Daniel Jacobowitz <dan@codesourcery.com>
9146 * frame.c (deprecated_selected_frame): Rename to...
9147 (selected_frame): ...this. Make static.
9148 (get_selected_frame, select_frame): Update.
9149 * frame.h (deprected_select_frame): Delete.
9150 (deprecated_safe_get_selected_frame): Update comments.
9152 * breakpoint.c, cli/cli-cmds.c, f-valprint.c, infcmd.c, inflow.c,
9153 infrun.c, stack.c, tui/tui-disasm.c, tui/tui-source.c,
9154 tui/tui-winsource.c, valops.c, varobj.c, findvar.c, macroscope.c,
9155 parse.c, regcache.h, sh64-tdep.c, tui/tui-hooks.c, tui/tui-win.c,
9156 tui/tui.c: Replace references to deprecated_selected_frame.
9158 2007-02-27 Fred Fish <fnf@specifix.com>
9160 * rs6000-tdep.c (skip_prologue): Recognize addi instructions that
9161 directly decrement the stack pointer, accumulate their operand into
9162 the stack offset, and mark the function as not being frameless.
9164 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
9166 * arch-utils.c (selected_byte_order): New.
9167 * arch-utils.h (selected_byte_order): New prototype.
9168 * remote-sim.c (gdbsim_open): Use selected_byte_order.
9170 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
9172 * symfile.c (place_section): Check SEC_ALLOC. Do not check VMA.
9173 (default_symfile_offsets): Check VMA here. Update section VMAs.
9175 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
9177 * remote.c (init_remote_state): Add special handling for placeholder
9180 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
9182 * Makefile.in (XMLFILES): Include $(TDEP_XML).
9183 (filenames_h): New variable.
9184 (clean): Clean up xml-builtin.c and stamp-xml.
9185 (arm-linux-nat.o): Update.
9186 * config/arm/linux.mh (TDEP_XML): Define.
9187 * arm-linux-nat.c (PTRACE_GETWMMXREGS, PTRACE_SETWMMXREGS): Define.
9188 (arm_linux_has_wmmx_registers): New.
9189 (GET_THREAD_ID): Fix typo.
9190 (IWMMXT_REGS_SIZE): Define.
9191 (fetch_wmmx_regs, store_wmmx_regs): New.
9192 (arm_linux_fetch_inferior_registers): Use fetch_wmmx_regs.
9193 (arm_linux_store_inferior_registers): Use store_wmmx_regs.
9194 (super_xfer_partial, arm_linux_xfer_partial): New.
9195 (_initialize_arm_linux_nat): Use them.
9196 * xml-support.c (fetch_xml_builtin): Move outside HAVE_LIBEXPAT.
9197 (xml_builtin_xfer_partial): New function.
9198 * xml-support.h (xml_builtin_xfer_partial): New prototype.
9199 * NEWS: Update mention of iWMMXt support.
9201 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
9203 * arm-tdep.c (arm_scan_prologue): Do not record FPA register saves
9204 if there are no FPA registers.
9205 (arm_dwarf_reg_to_regnum): New function.
9206 (arm_register_type, arm_register_name): Return minimal values for
9207 unsupported registers.
9208 (arm_register_sim_regno): Handle iWMMXt registers.
9209 (arm_gdbarch_init): Record missing FPA registers if indicated by
9210 a target description. Recognize iWMMXt registers. Only register
9211 "info float" for FPA. Use ARM_NUM_REGS. Register
9212 arm_dwarf_reg_to_regnum.
9213 * arm-tdep.h (enum gdb_regnum): Add ARM_NUM_REGS and iWMMXt
9215 (struct gdbarch_tdep): Add have_fpa_registers.
9216 * features/xscale-iwmmxt.xml: Update capitalization.
9217 * regformats/arm-with-iwmmxt.dat: Regenerated.
9219 2007-02-24 Kevin Buettner <kevinb@redhat.com>
9221 * NEWS (New targets): Add entry for the Toshiba Media Processor.
9223 2007-02-23 Kevin Buettner <kevinb@redhat.com>
9225 * MAINTAINERS (mep): New target.
9227 2007-02-23 Kevin Buettner <kevinb@redhat.com>
9229 From Jim Blandy, Dave Brolley, Kevin Buettner, Don Howard, and
9231 * Makefile.in (elf_mep_h, mep_desc_h, mep_opc_h): New variables.
9232 (mep-tdep.o): New rule.
9233 * configure.tgt (mep-*-*): New target.
9234 * mep-tdep.c: New file.
9235 * config/mep/mep.mt: New file.
9237 2007-02-22 Markus Deuling <deuling@de.ibm.com>
9239 * infrun.c (inferior_stop_reason, print_stop_reason): Remove
9240 BREAKPOINT_HIT and STOP_UNKNOWN.
9242 2007-02-22 Markus Deuling <deuling@de.ibm.com>
9244 * valops.c (value_ind): Fix unary * handling of TYPE_CODE_INT.
9246 2007-02-20 Joel Brobecker <brobecker@adacore.com>
9248 * gdb_expat.h (XMLCALL): Define if not already defined.
9250 2007-02-20 Andreas Schwab <schwab@suse.de>
9252 * Makefile.in (symfile.o): Update dependencies.
9254 2007-02-20 Daniel Jacobowitz <dan@codesourcery.com>
9256 * MAINTAINERS: Disable -Werror for cris simulator. Build
9257 sparc64-solaris2.10 instead of the broken sparc-elf.
9258 * solib-frv.c: Include "solib.h".
9259 * Makefile.in (solib-frv.o): Update.
9260 * mt-tdep.c (mt_gdbarch_init): Correct typo in floatformats patch.
9261 * xtensa-tdep.c (xtensa_regset_from_core_section): Cast size_t to int.
9262 (xtensa_frame_this_id, xtensa_frame_prev_register)
9263 (xtensa_push_dummy_call): Use %p.
9265 2007-02-16 Daniel Jacobowitz <dan@codesourcery.com>
9267 * avr-tdep.c, hppa-tdep.c, hppabsd-tdep.c, i386-tdep.c,
9268 ia64-tdep.c, m68k-tdep.c, mips-linux-tdep.c, ppcobsd-tdep.c,
9269 sparc-linux-tdep.c: Include "gdbtypes.h" instead of "floatformat.h".
9270 * Makefile.in (avr-tdep.o, hppabsd-tdep.o, hppa-tdep.o, i386-tdep.o)
9271 (ia64-tdep.o, m68k-tdep.o, mips-linux-tdep.o, ppcobsd-tdep.o)
9272 (sparc-linux-tdep.o): Update.
9274 2007-02-15 Maxim Grigoriev <maxim2405@gmail.com>
9276 * xtensa-tdep.h (xtensa_reg_mask_t): New.
9277 (xtensa_mask_t): Change mask field to be a separate array.
9278 * xtensa-tdep.c (extract_call_winsize, xtensa_pseudo_register_read)
9279 (xtensa_pseudo_register_write, xtensa_unwind_pc)
9280 (xtensa_unwind_dummy_id, xtensa_push_dummy_call)
9281 (xtensa_breakpoint_from_pc): Remove implicit type casting.
9282 * xtensa-config.c (mask0, mask1, mask2, mask3, mask4, mask5)
9283 (mask6, mask7, mask8, mask9, mask10, mask11, mask12, mask13)
9284 (mask14, mask15): Rename to
9285 (xtensa_mask0, xtensa_mask1, xtensa_mask2, xtensa_mask3)
9286 (xtensa_mask4, xtensa_mask5, xtensa_mask6, xtensa_mask7)
9287 (xtensa_mask8, xtensa_mask9, xtensa_mask10, xtensa_mask11)
9288 (xtensa_mask12, xtensa_mask13, xtensa_mask14, xtensa_mask15): this.
9289 (xtensa_submask0, xtensa_submask1, xtensa_submask2, xtensa_submask3)
9290 (xtensa_submask4, xtensa_submask5, xtensa_submask6, xtensa_submask7)
9291 (xtensa_submask8, xtensa_submask9, xtensa_submask10)
9292 (xtensa_submask11, xtensa_submask12, xtensa_submask13)
9293 (xtensa_submask14, xtensa_submask15): New.
9294 (rmap): Follow strict aliasing rules doing static initialization.
9296 2007-02-13 Daniel Jacobowitz <dan@codesourcery.com>
9298 * target-descriptions.c (tdesc_named_type): Move code_ptr and data_ptr
9299 handling from here...
9300 (tdesc_register_type): ...to here.
9301 * xml-tdesc.c (tdesc_start_reg): Allow code_ptr and data_ptr.
9302 * features/arm-core.xml: Use code_ptr and data_ptr.
9304 2007-02-13 Denis Pilat <denis.pilat@st.com>
9306 * varobj.h (enum varobj_update_error): New enum.
9307 * varobj.c (struct varobj_root): Add is_valid member.
9308 (varobj_get_type): Check for invalid varobj.
9309 (varobj_get_attributes): Likewise.
9310 (variable_editable):Likewise.
9311 (varobj_update): Likewise. Use varobj_update_error.
9312 (new_root_variable): Set root varobj as valid by default.
9313 (varobj_invalidate): New function.
9314 * symfile.c (clear_symtab_users): Use varobj_invalidate.
9315 * mi/mi-cmd-var.c (varobj_update_one): Change return type to void.
9316 Use varobj_update_error.
9318 2007-02-12 Pierre Muller <muller@ics.u-strasbg.fr>
9321 * dwarfread.c (set_cu_language): Recognize DW_LANG_Pascal83 as
9322 Pascal language marker.
9323 * dwarf2read.c (set_cu_language): Likewise.
9325 2007-02-12 Corinna Vinschen <vinschen@redhat.com>
9327 * win32-nat.c (win32_wait): Reset terminal pgrp to GDB.
9328 (do_initial_win32_stuff): Call terminal_init_inferior_with_pgrp
9329 instead of target_terminal_init since inferior_ptid isn't set yet.
9331 2007-02-10 Pedro Alves <pedro_alves@portugalmail.pt>
9333 * MAINTAINERS (Write After Approval): Add myself.
9335 2007-02-09 Fred Fish <fnf@specifix.com>
9337 Based on work by Apple Computer, Inc.
9338 * event-top.c (async_request_quit): Call quit() whenever either
9339 quit_flag is set or immediate_quit is set.
9341 2007-02-09 Gabriel Dos Reis <gdr@integrable-solutions.net>
9343 * ada-lang.c (remove_out_of_scope_renamings): Change third parameter's
9344 type to a pointer to const struct block.
9345 (ada_lookup_symbol_list): Don't cast away constness when calling
9346 remove_out_of_scope_renamings.
9348 2007-02-09 Gabriel Dos Reis <gdr@integrable-solutions.net>
9350 * linux-nat.c (linux_nat_find_memory_regions): Don't check the
9351 address of 'filename'; it is always non null.
9353 2007-02-09 Joel Brobecker <brobecker@adacore.com>
9355 * exec.c (add_to_section_table): Do not discard empty sections.
9357 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
9359 * features/Makefile, features/arm-with-iwmmxt.xml,
9360 features/gdbserver-regs.xsl, features/number-regs.xsl,
9361 features/sort-regs.xsl, features/xscale-iwmmxt.xml: New files.
9362 * regformats/arm-with-iwmmxt.dat: Generate.
9363 * NEWS: Mention iWMMXt.
9365 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
9367 * Makefile.in (arm-tdep.o, eval.o, target-descriptions.o)
9368 (xml-tdesc.o): Update.
9369 * xml-support.c: Add a comment.
9370 (gdb_xml_enums_boolean): New variable.
9371 (gdb_xml_parse_attr_enum): Use strcasecmp.
9372 * xml-support.h (gdb_xml_enums_boolean): Declare.
9373 * xml-tdesc.c (struct tdesc_parsing_data): Record current_feature,
9374 next_regnum, and current_union.
9375 (tdesc_start_feature, tdesc_start_reg, tdesc_start_union)
9376 (tdesc_end_union, tdesc_start_field, tdesc_start_vector)
9377 (field_attributes, union_children, reg_attributes, union_attributes)
9378 (vector_attributes, feature_attributes, feature_children): New.
9379 (target_children): Make static. Add <feature>.
9380 (tdesc_elements): Make static.
9381 * target-descriptions.c (struct tdesc_reg, tdesc_reg_p, type_p)
9382 (struct tdesc_feature, tdesc_feature_p): New types.
9383 (struct target_desc): Add features member.
9384 (struct tdesc_arch_data, tdesc_data): New.
9385 (target_find_description): Clarify error message. Warn about
9386 ignored register descriptions.
9387 (tdesc_has_registers, tdesc_find_feature, tdesc_feature_name)
9388 (tdesc_named_type, tdesc_data_init, tdesc_data_alloc)
9389 (tdesc_data_cleanup, tdesc_numbered_register)
9390 (tdesc_numbered_register_choices, tdesc_find_register)
9391 (tdesc_register_name, tdesc_register_type)
9392 (tdesc_remote_register_number, tdesc_register_reggroup_p)
9393 (set_tdesc_pseudo_register_name, set_tdesc_pseudo_register_type)
9394 (set_tdesc_pseudo_register_reggroup_p, tdesc_use_registers)
9395 (tdesc_free_reg, tdesc_create_reg, tdesc_free_feature)
9396 (tdesc_create_feature, tdesc_record_type): New.
9397 (free_target_description): Free features.
9398 (_initialize_target_descriptions): Initialize tdesc_data.
9399 * arch-utils.c (default_remote_register_number): New.
9400 * arch-utils.h (default_remote_register_number): New prototype.
9401 * target-descriptions.h (set_tdesc_pseudo_register_name)
9402 (set_tdesc_pseudo_register_type, set_tdesc_pseudo_register_reggroup_p)
9403 (tdesc_use_registers, tdesc_data_alloc, tdesc_data_cleanup)
9404 (tdesc_numbered_register, tdesc_numbered_register_choices)
9405 (tdesc_has_registers, tdesc_find_feature, tdesc_feature_name)
9406 (tdesc_named_type, tdesc_create_feature, tdesc_record_type)
9407 (tdesc_create_reg): Declare.
9408 * gdbarch.sh (remote_register_number): New entry.
9409 * gdbarch.c, gdbarch.h: Regenerate.
9410 * remote.c (init_remote_state): Use gdbarch_remote_register_number.
9411 * features/gdb-target.dtd: Add feature, reg, vector, union, and field.
9413 * arm-tdep.c (arm_register_aliases): New.
9414 (arm_register_name_strings): Rename to...
9415 (arm_register_names): ...this. Make const. Delete the old version.
9416 (current_option, arm_register_byte): Delete.
9417 (set_disassembly_style): Simplify. Do not adjust arm_register_names.
9418 (value_of_arm_user_reg): New.
9419 (arm_gdbarch_init): Verify any described registers. Call
9420 tdesc_use_registers. Don't use arm_register_byte. Create aliases
9421 for standard register names.
9422 (_initialize_arm_tdep): Do not adjust arm_register_names.
9423 * user-regs.c (struct user_reg): Add baton member.
9424 (append_user_reg, user_reg_add_builtin, user_regs_init)
9425 (user_reg_add, value_of_user_reg): Use a baton for user
9427 * std-regs.c: Update.
9428 * user-regs.h (user_reg_read_ftype, user_reg_add_builtin)
9429 (user_reg_add): Add baton argument.
9430 * NEWS: Mention target description register support.
9431 * features/arm-core.xml, features/arm-fpa.xml: New.
9432 * eval.c (evaluate_subexp_standard): Allow ptype $register
9433 when the program is not running.
9435 2007-02-09 Nick Roberts <nickrob@snap.net.nz>
9437 * mi/mi-cmd-var.c (mi_cmd_var_create): Add value field.
9439 2007-02-08 Thiago Jung Bauermann <bauerman@br.ibm.com>
9441 * rs6000-tdep.c (gdb_print_insn_powerpc): Set
9442 info->disassembler_options to "any".
9444 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
9446 * varobj.c (install_new_value): Only call value_get_print_value
9449 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
9451 Reported by timeless@gmail.com:
9452 * gdb/target.c (target_flash_erase): Do not return void value.
9453 (target_flash_done): Likewise.
9454 * gdb/cli/cli-cmds.c (source_command): Likewise.
9456 2007-02-08 Fred Fish <fnf@specifix.com>
9458 Based on work by Apple Computer, Inc.
9459 * event-top.c (handle_sigint): Set quit_flag.
9460 (async_request_quit): Don't set quit_flag. Avoid calling quit()
9461 if quit_flag has already been reset.
9463 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
9465 * ser-mingw.c (pipe_windows_close): Move variable initialization back
9468 2007-02-08 Fred Fish <fnf@specifix.com>
9470 * defs.h (request_quit): Remove declaration.
9471 * utils.c (request_quit): Remove definition.
9473 2007-02-08 Joel Brobecker <brobecker@gnat.com>
9474 Jan Kratochvil <jan.kratochvil@redhat.com>
9475 Daniel Jacobowitz <dan@codesourcery.com>
9477 * rs6000-tdep.c (bl_to_blrl_insn_p): New function.
9478 (skip_prologue): Allow bl->blrl used by PIC code.
9480 2007-02-08 Mark Kettenis <kettenis@gnu.org>
9481 Daniel Jacobowitz <dan@codesourcery.com>
9483 * cp-valprint.c (cp_print_value_fields, cp_print_value): Always
9484 initialize tmp_obstack.
9485 * p-valprint.c (pascal_object_print_value_fields)
9486 (pascal_object_print_value): Likewise.
9488 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
9490 * features/feature_to_c.sh: Use %s to avoid problems with nawk.
9492 2007-02-08 Mark Kettenis <kettenis@gnu.org>
9494 * sparcnbsd-tdep.c: Include "gdbtypes.h" instead of "floatformat.h".
9495 * Makefile.in (sparcnbsd-tdep.o): Update dependencies.
9497 2007-02-07 Daniel Jacobowitz <dan@codesourcery.com>
9499 * xml-tdesc.c (struct tdesc_xml_cache, tdesc_xml_cache_s)
9501 (tdesc_parse_xml): Cache expanded descriptions.
9503 2007-02-07 Daniel Jacobowitz <dan@codesourcery.com>
9505 * Makefile.in (XMLFILES): New.
9506 (COMMON_OBS): Add xml-builtin.o.
9507 (xml-builtin.c, stamp-xml): New rules.
9508 (xml-tdesc.o): Update.
9509 * features/feature_to_c.sh: New file.
9510 * xml-support.c (MAX_XINCLUDE_DEPTH): Define.
9511 (struct gdb_xml_parser): Add dtd_name and is_xinclude.
9512 (gdb_xml_start_element): Initialize scope after possibly reallocating
9513 scopes. Move cleanup later. Handle the XInclude description
9515 (gdb_xml_end_element): Only parse the body if there is a current element.
9516 Call XML_DefaultCurrent if there is no element.
9517 (gdb_xml_fetch_external_entity, gdb_xml_use_dtd): New.
9518 (struct xinclude_parsing_data, xinclude_start_include)
9519 (xinclude_end_include, xml_xinclude_default)
9520 (xml_xinclude_start_doctype, xml_xinclude_end_doctype)
9521 (xml_xinclude_xml_decl, xml_xinclude_cleanup, xinclude_attributes)
9522 (xinclude_elements, xml_process_xincludes, fetch_xml_builtin): New.
9523 * xml-support.h (xml_fetch_another, xml_process_xincludes)
9524 (fetch_xml_builtin, xml_builtin, gdb_xml_use_dtd): New declarations.
9525 * xml-tdesc.c (tdesc_parse_xml): Add fetcher_baton argument. Expand
9526 XInclude directives. Use the compiled in DTD.
9527 (fetch_xml_from_file): Add baton argument. Treat it as a containing
9528 directory name. Do not warn here.
9529 (file_read_description_xml): Update call. Warn here instead. Pass
9531 (fetch_available_features_from_target): New.
9532 (target_read_description_xml): Use it.
9533 * features/gdb-target.dtd: Add copyright notice. Use xinclude.dtd
9535 * features/xinclude.dtd: New file.
9537 2007-02-05 Daniel Jacobowitz <dan@codesourcery.com>
9539 * linux-thread-db.c (check_for_thread_db): Return early if we have
9540 no libthread_db support.
9542 2007-02-05 Daniel Jacobowitz <dan@codesourcery.com>
9544 * mi/mi-parse.h: Include <sys/time.h>.
9546 2007-02-05 Nick Roberts <nickrob@snap.net.nz>
9548 * mi/mi-cmd-stack.c (list_args_or_locals): Use common_val_print
9549 instead of print_variable_value to print values.
9551 2007-02-03 Nick Roberts <nickrob@snap.net.nz>
9553 * mi/mi-main.c: Numerous formatting changes.
9554 (mi_cmd_data_write_register_values): Replace clause inadvertantly
9555 removed in my previous change.
9557 2007-02-03 Eli Zaretskii <eliz@gnu.org>
9559 * mi/mi-main.c (mi_load_progress, timestamp, print_diff_now):
9560 Use 1000000L instead of 1000000.
9562 2007-02-03 Nick Roberts <nickrob@snap.net.nz>
9564 Based on work by Apple Computer, Inc.
9566 * configure.ac: Test for sys/resource.h and getrusage.
9567 * configure, config.in: Regenerate.
9569 * mi/mi-main.c: Include <sys/resource.h> if present.
9570 (rusage): Declare if HAVE_GETRUSAGE.
9571 (current_command_ts, do_timings): New static variables.
9572 (timestamp, print_diff_now, print_diff, timeval_diff):
9573 New static timing functions.
9574 (mi_cmd_enable_timings): New function for new MI command.
9575 (captured_mi_execute_command, mi_execute_async_cli_command):
9576 Call timing functions.
9578 * mi/mi-cmds.c (mi_cmds): Add entry for new MI command
9581 * mi/mi-cmds.h (mi_cmd_enable_timings): New extern.
9583 * mi/mi-parse.h: (mi_timestamp): New structure.
9584 (mi_parse): Add mi_timestamp* member.
9586 2007-02-02 Denis Pilat <denis.pilat@st.com>
9588 * thread.c (make_cleanup_restore_current_thread): New function.
9589 (info_threads_command): Use of make_cleanup_restore_current_thread
9590 to restore the current thread and the selected frame.
9591 (restore_selected_frame): New function.
9592 (struct current_thread_cleanup): Add frame_id field.
9593 (do_restore_current_thread_cleanup): Add restoring of the selected
9595 (make_cleanup_restore_current_thread): Likewise.
9596 (thread_apply_all_command): backup the selected frame while
9597 entering the function and restore it at exit.
9598 (thread_apply_command): Likewise.
9600 2007-02-02 Denis Pilat <denis.pilat@st.com>
9602 * MAINTAINERS (Write After Approval): Add myself to the list.
9604 2007-02-01 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
9606 * gdb/remote-m32r.sdi.c (m32r_fetch_register): Change PWD mask.
9607 (m32r_store_register): Ditto.
9609 2007-01-30 Vladimir Prus <vladimir@codesourcery.com>
9611 * ser-mingw.c (pipe_windows_open)
9612 (pipe_windows_read, pipe_windows_write): Declare
9613 variables at the top of the function.
9615 2007-01-29 Daniel Jacobowitz <dan@codesourcery.com>
9617 * doublest.c (floatformat_from_length): Use the right element from
9618 gdbarch floatformats.
9619 (floatformat_from_type, extract_typed_floating)
9620 (store_typed_floating): Likewise.
9621 * doublest.h: Remove declarations for undefined floatformat arrays.
9622 * gdbarch.sh (float_format, double_format, long_double_format): Change
9624 (pformat): Update for pairs.
9625 * gdbarch.c, gdbarch.h: Regenerated.
9626 * gdbtypes.c (floatformats_ieee_single, floatformats_ieee_double)
9627 (floatformats_ieee_double_littlebyte_bigword)
9628 (floatformats_i387_ext, floatformats_m68881_ext, floatformats_arm_ext)
9629 (floatformats_ia64_spill, floatformats_ia64_quad, floatformats_vax_f)
9630 (floatformats_vax_d): New variables.
9631 (builtin_type_ieee_single, builtin_type_ieee_double)
9632 (builtin_type_arm_ext, builtin_type_ia64_spill)
9633 (builtin_type_ia64_quad): Replace arrays with individual types.
9634 (builtin_type_ieee_single_big, builtin_type_ieee_single_little)
9635 (builtin_type_ieee_double_big, builtin_type_ieee_double_little)
9636 (builtin_type_ieee_double_littlebyte_bigword, builtin_type_i960_ext)
9637 (builtin_type_m88110_ext, builtin_type_m88110_harris_ext)
9638 (builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword)
9639 (builtin_type_ia64_spill_big, builtin_type_ia64_spill_little)
9640 (builtin_type_ia64_quad_big, builtin_type_ia64_quad_little): Delete
9641 unused and endian-specific types.
9642 (recursive_dump_type): Update for floatformat pairs.
9643 (build_flt): Move higher. Handle bit == -1. Take a floatformat pair.
9644 (build_gdbtypes): Use build_flt.
9645 (_initialize_gdbtypes): Update set of initialized types.
9646 * gdbtypes.h: Update declarations to match gdbtypes.c.
9647 (struct main_type): Store a pointer to two floatformats.
9648 * arch-utils.c (default_float_format, default_double_format): Delete.
9649 * arch-utils.h (default_float_format, default_double_format): Delete.
9651 * arm-tdep.c, avr-tdep.c, hppa-tdep.c, hppabsd-tdep.c, i386-tdep.c,
9652 ia64-tdep.c, iq2000-tdep.c, m68k-tdep.c, m88k-tdep.c,
9653 mips-linux-tdep.c, mips-tdep.c, mt-tdep.c, ppcobsd-tdep.c,
9654 sparc-linux-tdep.c, sparc-tdep.c, sparcnbsd-tdep.c, spu-tdep.c,
9655 vax-tdep.c, alpha-tdep.c, ppc-sysv-tdep.c: Update.
9657 2007-01-29 Joel Brobecker <brobecker@adacore.com>
9659 * target.c (maintenance_print_target_stack): New function.
9660 (initialize_targets): Add new "maintenance print target-stack"
9663 2007-01-28 Mark Kettenis <kettenis@gnu.org>
9665 * dwarf2read.c (new_symbol): Handle DW_AT_decl_file being zero.
9667 2007-01-27 Daniel Jacobowitz <dan@codesourcery.com>
9669 * dwarf2loc.h (struct dwarf2_locexpr_baton): Change size to a long.
9670 (struct dwarf2_loclist_baton): Likewise.
9672 2007-01-27 Eli Zaretskii <eliz@gnu.org>
9674 * cli/cli-script.c: Include breakpoint.h.
9675 (build_command_line): Require arguments only for if and while
9677 (get_command_line, execute_user_command, execute_control_command):
9678 Fix wording of warning messages.
9679 (print_command_lines): Print breakpoint commands.
9680 (execute_control_command): Call commands_from_control_command to
9681 handle the `commands' command inside a body of a flow-control
9683 (read_next_line): Recognize the `commands' command and build a
9684 command line structure for it.
9685 (recurse_read_control_structure, read_command_lines): Handle
9686 `commands' similarly to `if' and `while'.
9688 * breakpoint.c (get_number_trailer): Document the special meaning
9689 of NULL as the first argument PP.
9690 (commands_from_control_command): New function.
9692 * breakpoint.h (commands_from_control_command): Add prototype.
9694 * defs.h (commands_control): New enumerated value for enum
9695 command_control_type.
9697 2007-01-26 Joel Brobecker <brobecker@adacore.com>
9699 * ada-lang.c (ada_exception_breakpoint_ops): Fix typo in function name.
9700 (ada_exception_sal): Update accordingly.
9702 2007-01-26 Jan Kratochvil <jan.kratochvil@redhat.com>
9704 * c-valprint.c (c_val_print): Require strings to be of no-signed CHARs.
9705 * NEWS: Describe CHAR array vs. string identifcation rules.
9707 2007-01-25 Paul Brook <paul@codesourcery.com>
9709 * arm-tdep.c (arm_get_next_pc): Fix bitfield off-by-one error.
9711 2007-01-24 Jim Blandy <jimb@codesourcery.com>
9713 * dwarf2loc.c (dwarf2_evaluate_loc_desc): When the location
9714 expression is empty, bother to return the 'optimized out' value we
9715 construct. (Thanks to Carl Burch.)
9717 2007-01-24 Vladimir Prus <vladimir@codesourcery.com>
9719 * varobj.c (c_value_of_root, c_value_of_child)
9720 (cplus_describe_child): Don't call release_value.
9722 2007-01-24 Thiemo Seufer <ths@mips.com>
9724 * mips-linux-tdep.c (mips_linux_n64_rt_sigframe): Fix struct
9727 2007-01-24 Vladimir Prus <vladimir@codesourcery.com>
9729 Refactor getting children name, value and type access
9731 * varobj.c (get_type_deref): Remove.
9732 (adjust_value_for_child_access): New.
9733 (c_number_of_children): Use the above.
9734 (c_describe_child): Likewise.
9735 (enum accessibility): New.
9736 (match_accessibility): New function.
9737 (cplus_describe_child): New function.
9738 (cplus_name_of_child, cplus_value_of_child)
9739 (cplus_type_of_child): Reimplement in terms
9740 of cplus_describe_child.
9741 (cplus_number_of_children): Use
9742 adjust_value_for_child_access.
9744 2007-01-24 Vladimir Prus <vladimir@codesourcery.com>
9746 Fix computation of the 'editable' attribute and
9747 value changeability for for references.
9748 * varobj.c (get_value_type): New function.
9749 (c_variable_editable): Use get_value_type.
9750 (varobj_value_is_changeable): Likewise.
9752 2007-01-24 Joel Brobecker <brobecker@adacore.com>
9754 * source.c (find_and_open_source): Try rewriting the source
9755 path inside filename if dirname is NULL.
9757 2007-01-24 Joel Brobecker <brobecker@adacore.com>
9759 * dwarf2read.c (add_partial_symbol): Create an extra partial
9760 symbol in the VAR_DOMAIN for Ada structures, unions or enums.
9761 (new_symbol): Likewise for symbols.
9763 2007-01-24 Nick Roberts <nickrob@snap.net.nz>
9765 * mi/mi-main.c (mi_cmd_execute): Call free_all_values.
9767 2007-01-23 Vladimir Prus <vladimir@codesourcery.com>
9769 * value.c (value_primitive_field): Copy the full 'location'
9770 contents, instead of assuming that copying ADDRESS will
9771 bring over everything in the union. Remove obsolete comment.
9773 2007-01-23 Masaki Muranaka <monaka@monami-software.com>
9775 * m32c-tdep.c (make_regs, m32c_analyze_prologue)
9776 (m32c_skip_trampoline_code, m32c_m16c_address_to_pointer)
9777 (m32c_m16c_pointer_to_address): Separate code from declarations.
9779 2007-01-23 Nick Hudson <nick.hudson@dsl.pipex.com>
9781 * target.c (update_current_target): Correct typo.
9783 2007-01-22 Masaki Muranaka <monaka@monami-software.com>
9785 * xstormy16-tdep.c (xstormy16_skip_prologue): Separate code from a
9788 2007-01-11 Andrew Cagney <cagney@redhat.com>
9789 Daniel Jacobowitz <dan@codesourcery.com>
9790 Jan Kratochvil <jan.kratochvil@redhat.com>
9792 * dwarf2-frame.c (execute_cfa_program): New support of
9793 `DW_CFA_GNU_negative_offset_extended'.
9795 2007-01-21 Daniel Jacobowitz <dan@codesourcery.com>
9797 * NEWS: Mention flash support for "load" and new remote packets.
9799 2007-01-21 Markus Deuling <deuling@de.ibm.com>
9801 * breakpoint.c (delete_command): Skip redundant loop iterations.
9803 2007-01-21 Daniel Jacobowitz <dan@codesourcery.com>
9805 * gdbarch.sh (register_type): Update comment.
9806 * gdbarch.h: Regenerated.
9807 * arch-utils.c (generic_register_size): Call register_type.
9808 * ia64-tdep.c (ia64_extract_return_value): Likewise.
9809 * m32c-tdep.c (check_for_saved): Likewise.
9810 * mips-tdep.c (mips_print_register, print_gp_register_row)
9811 (mips_print_registers_info): Likewise.
9812 * sh-tdep.c (sh_pseudo_register_read, sh_pseudo_register_write):
9814 * sh64-tdep.c (sh64_pseudo_register_read, sh64_pseudo_register_write)
9815 (sh64_do_register, sh64_print_register)
9816 (sh64_media_print_registers_info): Likewise.
9817 * tui/tui-regs.c (tui_register_format): Likewise.
9819 2007-01-21 Daniel Jacobowitz <dan@codesourcery.com>
9821 * objfiles.h (ALL_PRIMARY_SYMTABS): Define.
9823 * ada-lang.c (symtab_for_sym, ada_lookup_symbol_list)
9824 (ada_lookup_symbol): Use ALL_PRIMARY_SYMTABS.
9825 * cp-support.c (make_symbol_overload_list_qualified): Likewise.
9826 * symtab.c (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
9827 (basic_lookup_transparent_type, find_pc_sect_symtab, search_symbols)
9828 (make_symbol_completion_list): Likewise.
9830 2007-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
9831 Daniel Jacobowitz <dan@codesourcery.com>
9833 * buildsym.c (end_symtab): Use preallocated symtab if available.
9834 Fill in SYMBOL_SYMTAB.
9835 * buildsym.h (struct subfile): Add symtab member.
9836 * dwarf2read.c (struct dwarf2_cu): Add line_header.
9837 (struct file_entry): Add symtab.
9838 (free_cu_line_header): New function.
9839 (read_file_scope): Use it. Save line_header in the cu. Process
9841 (add_file_name): Initialize new symtab member.
9842 (dwarf_decode_lines): Create symtabs for included files.
9843 (new_symbol): Set SYMBOL_SYMTAB.
9844 * symtab.c (lookup_symbol): Use SYMBOL_SYMTAB.
9845 (search_symbols): Likewise.
9846 * symtab.h (struct symbol): Add symtab member.
9847 (SYMBOL_SYMTAB): Define.
9849 2007-01-20 Daniel Jacobowitz <dan@codesourcery.com>
9851 * symfile.c (allocate_symtab): Remove INIT_EXTRA_SYMTAB_INFO.
9853 2007-01-20 Daniel Jacobowitz <dan@codesourcery.com>
9855 * arch-utils.c (show_endian): Correct reversed condition.
9857 2007-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
9859 * MAINTAINERS (Write After Approval): Add myself.
9861 2007-01-16 Daniel Jacobowitz <dan@codesourcery.com>
9862 Vladimir Prus <vladimir@codesourcery.com>
9864 Fix 'selected frame' varobjs.
9865 * varobj.c (struct varobj): Remove the error field.
9866 (varobj_set_value): Don't check var->error.
9867 (install_new_value): Don't set var->error.
9868 (varobj_update): Always pass the new value
9869 of the root via install_new_value.
9870 (create_child): Don't set error field.
9871 (new_variable): Likewise.
9872 (c_value_of_root): Always reevaluate the value
9873 of selected frame varobjs in the selected frame.
9874 Don't call reinit_frame_cache.
9876 2007-01-15 Joel Brobecker <brobecker@adacore.com>
9878 * source.c (_initialize_source): Improve the help text of
9879 the substitute-path commands.
9881 2007-01-14 Mark Kettenis <kettenis@gnu.org>
9883 * frv-tdep.c (frv_gdbarch_init, frv_register_name)
9884 (frv_breakpoint_from_pc, frv_gdbarch_adjust_breakpoint_address)
9885 (frv_skip_prologue): Remove prototypes.
9886 (frv_adjust_breakpoint_address): Renamed from
9887 frv_gdbarch_adjust_breakpoint_address.
9888 (frv_gdbarch_init): Adjust.
9890 2007-01-13 Mark Kettenis <kettenis@gnu.org>
9892 * gdbarch.sh (deprecated_extract_return_value)
9893 (deprecated_store_return_value): Remove.
9894 (extract_return_value, store_return_value): Remove default values.
9895 * gdbarch.c, gdbarch.h: Regenerate.
9896 * arch-utils.c, arch-utils.h (legacy_extract_return_value)
9897 (legacy_store_return_value): Remove.
9898 * regcache.c, regcache.h (deprecated_grub_regcache_for_registers):
9901 * mi/mi-main.c: Remove obsolete comment.
9903 * regcache.c, regcache.h (deprecated_register_bytes)
9904 (deprecated_read_register_bytes)
9905 (deprecated_write_register_bytes): Remove.
9907 * frame.c (get_frame_register_bytes, put_frame_register_bytes):
9908 Don't forget to move destination pointer.
9910 2007-01-01 Mark Kettenis <kettenis@gnu.org>
9912 * config/i386/nm-i386gnu.h (CHILD_PREPARE_TO_STORE): Remove.
9914 2007-01-11 Ulrich Weigand <uweigand@de.ibm.com>
9916 * spu-tdep.c (spu_analyze_prologue): Fix erroneous backtrace
9917 past entry function with recent newlib.
9919 2007-01-11 Vladimir Prus <vladimir@codesourcery.com>
9921 * gdb.texinfo (GDB/MI Variable Objects): Improve the
9922 introduction. Specify -var-update more exactly.
9924 2007-01-11 Daniel Jacobowitz <dan@codesourcery.com>
9926 * frame.c (get_prev_frame_1): Check PC_REGNUM before using it.
9928 2007-01-10 Jim Blandy <jimb@codesourcery.com>
9930 * MAINTAINERS (Global Maintainers): Ulrich Weigand has accepted
9931 the Global Maintainers' invitation to be a global maintainer.
9933 2007-01-10 Daniel Jacobowitz <dan@codesourcery.com>
9935 * infrun.c (singlestep_pc): New variable.
9936 (resume): Set singlestep_pc.
9937 (context_switch): Add a debugging message. Flush the frame cache.
9938 (handle_inferior_event): Add debugging messages. Handle thread
9939 hops when a software single step has completed. Let context_switch
9940 handle flushing the frame cache.
9942 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
9944 * NEWS: Mention target descriptions, "set tdesc filename",
9945 "unset tdesc filename", "show tdesc filename", and
9946 qXfer:features:read.
9947 * arch-utils.c (choose_architecture_for_target): New function.
9948 (gdbarch_info_fill): Call it.
9949 * target-descriptions.c (struct property): Make members non-const.
9950 (struct target_desc): Add arch member.
9951 (target_description_filename): New variable.
9952 (target_find_description): Try via XML first.
9953 (tdesc_architecture): New.
9954 (free_target_description, make_cleanup_free_target_description): New.
9955 (set_tdesc_property): Call xstrdup.
9956 (set_tdesc_architecture, tdesc_set_cmdlist, tdesc_show_cmdlist)
9957 (tdesc_unset_cmdlist, unset_tdesc_cmd, unset_tdesc_filename_cmd)
9958 (set_tdesc_cmd, show_tdesc_cmd, set_tdesc_filename_cmd)
9959 (show_tdesc_filename_cmd, _initialize_target_descriptions): New.
9960 * target-descriptions.h (tdesc_architecture)
9961 (make_cleanup_free_target_description, set_tdesc_architecture): New
9963 * Makefile.in (SFILES): Add xml-tdesc.c.
9964 (COMMON_OBS): Add xml-tdesc.o.
9965 (target-descriptions.o): Update.
9966 (xml-tdesc.o): New rule.
9967 * xml-tdesc.c, xml-tdesc.h: New files.
9968 * remote.c (PACKET_qXfer_features): New enum.
9969 (remote_protocol_features): Add qXfer:features:read.
9970 (remote_xfer_partial): Handle TARGET_OBJECT_AVAILABLE_FEATURES.
9971 (_initialize_remote): Register qXfer:features:read.
9972 * target.h (enum target_object): Add TARGET_OBJECT_AVAILABLE_FEATURES.
9973 * features/gdb-target.dtd: New file.
9975 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
9977 * copyright.sh: Clarify error.
9979 2007-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
9981 * symtab.c (matching_bfd_sections): Fix VMA matching for
9984 2007-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
9986 * minsyms.c (lookup_minimal_symbol_by_pc_section): Handle
9989 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
9991 Updated copyright notices for most files.
9993 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
9995 * copyright.sh (prunes): Add step-line.inp and step-line.c.
9997 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
9999 * configure.ac (DEBUGDIR_RELOCATABLE): Define for debugdir inside
10001 (TARGET_SYSTEM_ROOT_RELOCATABLE): Allow for exec_prefix being
10003 * configure, config.in: Regenerate.
10004 * defs.h (debug_file_directory): Declare.
10005 * main.c (captured_main): Canonicalize gdb_sysroot. Assume
10006 TARGET_SYSTEM_ROOT is defined. Initialize debug_file_directory and
10007 relocate it if DEBUGDIR_RELOCATABLE.
10008 * symfile.c (debug_file_directory): Make non-static.
10009 (find_separate_debug_file): Look for debug info for SYSROOT/PATH
10010 in DEBUGDIR/PATH if DEBUGDIR is inside SYSROOT.
10011 (_initialize_symfile): Don't initialize debug_file_directory here.
10013 2007-01-09 Jim Blandy <jimb@codesourcery.com>
10015 * score-tdep.c (score_push_dummy_call): Don't mix declarations and
10018 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
10020 * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Use
10021 frame_unwind_register to recurse.
10022 * alpha-tdep.c (alpha_sigtramp_frame_prev_register): Likewise.
10023 (alpha_heuristic_frame_prev_register): Likewise.
10024 * h8300-tdep.c (h8300_frame_prev_register): Likewise.
10025 * m32c-tdep.c (m32c_prev_register): Likewise.
10026 * frame.c (frame_register_unwind_location): Remove FIXME.
10028 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
10029 Eli Zaretskii <eliz@gnu.org>
10031 * copyright.sh: New file.
10033 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
10035 * configure.ac: Check for XML_StopParser.
10036 * xml-support.c (gdb_xml_body_text): Check for an error.
10037 (gdb_xml_start_element_wrapper): Conditionalize call to XML_StopParser.
10038 (gdb_xml_end_element_wrapper): Likewise.
10039 * config.in, configure: Regenerated.
10041 2007-01-08 Daniel Jacobowitz <dan@codesourcery.com>
10043 * varobj.c (install_new_value): Always update print_value.
10044 (value_get_print_value): Immediately return NULL for missing
10047 2007-01-08 Jim Blandy <jimb@codesourcery.com>
10049 * configure.ac: Tighten pattern for extracting value of
10050 DEPRECATED_TM_FILE from the target makefile fragment.
10051 * configure: Regenerated.
10053 2007-01-08 Daniel Jacobowitz <dan@codesourcery.com>
10055 * linux-nat.c (struct simple_pid_list): Add status.
10056 (add_to_pid_list): Record the PID's status.
10057 (linux_record_stopped_pid): Likewise. Make static.
10058 (pull_pid_from_list): Return the saved status.
10059 (linux_nat_handle_extended): Deleted.
10060 (linux_handle_extended_wait): Combine with linux_nat_handle_extended.
10061 Make static. Handle non-SIGSTOP for a new thread's first signal.
10062 (flush_callback): Handle unexpected pending signals.
10063 (linux_nat_wait): Update calls to changed functions.
10064 * linux-nat.h (linux_record_stopped_pid, linux_handle_extended_wait):
10065 Remove prototypes for newly static functions.
10067 2007-01-08 Ulrich Weigand <uweigand@de.ibm.com>
10069 * gdbarch.sh (value_from_register): New gdbarch function.
10070 * gdbarch.c, gdbarch.h: Regenerate.
10071 * findvar.c (default_value_from_register): New function.
10072 (value_from_register): Use gdbarch_value_from_register.
10073 * value.h (default_value_from_register): Declare.
10074 * spu-tdep.c (spu_convert_register_p, spu_register_to_value,
10075 spu_value_to_register): Remove.
10076 (spu_value_from_register): New function.
10077 (spu_gdbarch_init): Do not call set_gdbarch_convert_register_p,
10078 set_gdbarch_register_to_value, set_gdbarch_value_to_register.
10079 Call set_gdbarch_value_from_register.
10080 * s390-tdep.c (s390_convert_register_p, s390_register_to_value,
10081 s390_value_to_register): Remove.
10082 (s390_value_from_register): New function.
10083 (s390_gdbarch_init): Do not call set_gdbarch_convert_register_p,
10084 set_gdbarch_register_to_value, set_gdbarch_value_to_register.
10085 Call set_gdbarch_value_from_register.
10087 2007-01-08 Daniel Jacobowitz <dan@codesourcery.com>
10089 * NEWS: Add "set sysroot" and "show sysroot".
10090 * solib.c (solib_absolute_prefix): Delete. Replace
10091 all uses with gdb_sysroot.
10092 (_initialize_solib): Add "set sysroot" and "show sysroot".
10093 Make "solib-absolute-prefix" an alias to it.
10095 2007-01-08 Ulrich Weigand <uweigand@de.ibm.com>
10097 * frame.c (get_frame_register_bytes): New function.
10098 (put_frame_register_bytes): Likewise.
10099 * frame.h (get_frame_register_bytes): Declare.
10100 (put_frame_register_bytes): Likewise.
10101 * findvar.c (value_from_register): Always construct lval_register
10102 values. Use get_frame_register_bytes.
10103 * valops.c (value_assign): Use get_frame_register_bytes and
10104 put_frame_register_bytes.
10106 2007-01-08 Jim Blandy <jimb@codesourcery.com>
10108 * MAINTAINERS: Update Stan Shebs' email address.
10110 2007-01-07 Joel Brobecker <brobecker@adacore.com>
10112 * ada-lang.c (is_known_support_routine): Improve the implementation.
10114 2007-01-06 Joel Brobecker <brobecker@adacore.com>
10116 * ada-lang.c: Add include of source.h.
10117 (is_known_support_routine): Improve the check verifying that the file
10118 associated to this frame exists.
10119 * Makefile.in (ada-lang.o): Add dependency on source.h.
10121 2007-01-07 Jim Blandy <jimb@codesourcery.com>
10123 * ax-general.c (ax_const_l): Select proper opcode for the given
10126 2007-01-05 Vladimir Prus <vladimir@codesourcery.com>
10128 * varobj.c (c_value_of_root): Don't select frame if variable
10129 object is out of scope.
10131 2007-01-05 Nick Roberts <nickrob@snap.net.nz>
10133 * varobj.c (struct varobj): New member print_value.
10134 (install_new_value): Compare last printed value with current one
10135 instead of contents.
10136 (new_variable): Initialize var->print_value to NULL.
10137 (free_variable): Free var->print_value.
10138 (value_get_print_value): New function derived from
10139 c_value_of_variable.
10140 (c_value_of_variable): Use value_get_print_value.
10142 2007-01-05 Joel Brobecker <brobecker@adacore.com>
10144 * i386-tdep.c (i386_analyze_stack_align): Add comment.
10146 2007-01-05 Joel Brobecker <brobecker@adacore.com>
10148 * NEWS: Add entries for new catch commands.
10150 2007-01-05 Joel Brobecker <brobecker@adacore.com>
10152 * dwarf2read.c (partial_die_info): Add field has_byte_size.
10153 (add_partial_symbol): Correct identification of external references.
10154 (process_structure_scope): Likewise.
10155 (read_partial_die): Handle DW_AT_byte_size attribute.
10157 2007-01-05 Daniel Jacobowitz <dan@codesourcery.com>
10159 * xml-support.c (gdb_xml_end_element): Remove wrong backslashes.
10161 2007-01-05 Nick Roberts <nickrob@snap.net.nz>
10163 * varobj.c (get_type_deref): Fix variable objects for references to
10166 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
10168 * symtab.c (find_pc_sect_psymtab): Add comments. Handle psymtabs
10171 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
10173 * memory-map.c (struct_memory_map_parsing_data): Remove most
10174 members. Make property_name an array.
10175 (free_memory_map_parsing_data, memory_map_start_element)
10176 (memory_map_end_element, memory_map_character_data): Delete.
10177 (memory_map_start_memory, memory_map_end_memory)
10178 (memory_map_start_property, memory_map_end_property): New functions.
10179 (property_attributes, memory_children, memory_type_enum)
10180 (memory_attributes, memory_map_children, memory_map_elements): New.
10181 (parse_memory_map): Rewrite.
10182 * xml-support.c (debug_xml): New.
10183 (xml_get_required_attribute, xml_get_integer_attribute)
10184 (xml_get_enum_value, free_xml_parser, make_cleanup_free_xml_parser):
10186 (struct scope_level, struct gdb_xml_parser, gdb_xml_body_text)
10187 (gdb_xml_debug, gdb_xml_error, gdb_xml_values_cleanup)
10188 (gdb_xml_start_element, gdb_xml_start_element_wrapper)
10189 (gdb_xml_end_element, gdb_xml_end_element_wrapper, gdb_xml_cleanup)
10190 (gdb_xml_create_parser_and_cleanup, gdb_xml_parse)
10191 (gdb_xml_parse_ulongest, gdb_xml_parse_attr_ulongest)
10192 (gdb_xml_parse_attr_enum, show_debug_xml, _initialize_xml_support):
10194 * xml-support.h (struct gdb_xml_value, gdb_xml_attribute_handler)
10195 (enum gdb_xml_attribute_flag, struct gdb_xml_attribute)
10196 (enum gdb_xml_element_flag, struct gdb_xml_element)
10197 (gdb_xml_element_start_handler, gdb_xml_element_end_handler)
10198 (struct gdb_xml_enum): New.
10199 (gdb_xml_create_parser_and_cleanup, gdb_xml_parse, gdb_xml_debug)
10200 (gdb_xml_error, gdb_xml_parse_attr_ulongest)
10201 (gdb_xml_parse_attr_enum, gdb_xml_parse_ulongest): New prototypes.
10202 (xml_get_required_attribute, xml_get_integer_attribute)
10203 (xml_get_enum_value, make_cleanup_free_xml_parser): Delete prototypes.
10204 * Makefile.in (xml_support_h, xml-support.o): Update.
10206 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
10208 * Makefile.in (eval.o): Update dependencies.
10209 * eval.c: Include "ui-out.h" and "exceptions.h".
10210 (evaluate_subexp_standard): Use TRY_CATCH around value_of_variable.
10211 Use value_zero if an error occurs when avoiding side effects.
10212 * varobj.c (c_value_of_root): Initialize new_val.
10214 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
10216 * varobj.c (varobj_list_children): Stop if the number of children is
10218 (c_number_of_children):
10220 2007-01-04 Mark Kettenis <kettenis@gnu.org>
10222 * alpha-tdep.c (alpha_register_name): Use ARRAY_SIZE.
10223 (alpha_read_insn, alpha_skip_prologue, alpha_heuristic_proc_start)
10224 (alpha_heuristic_frame_unwind_cache, alpha_next_pc)
10225 (alpha_gdbarch_init): Use ALPHA_INSN_SIZE, ALPHA_REGISTER_SIZE and
10226 sizeof, instead of hardcoded constants.
10228 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
10230 * CONTRIBUTE: Use sourceware.org.
10232 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
10234 * buildsym.c (start_subfile): Handle producer.
10235 (record_producer): New function.
10236 * buildsym.h (struct subfile): Include producer.
10237 (record_producer): New prototype.
10238 * dwarf2-frame.c (struct dwarf2_cie): Add version and augmentation.
10239 (struct dwarf2_frame_state): Add armcc_cfa_offsets_sf and
10240 armcc_cfa_offsets_reversed.
10241 (execute_cfa_program): Handle armcc_cfa_offsets_sf.
10242 (dwarf2_frame_find_quirks): New function.
10243 (dwarf2_frame_cache): Call it. Handle armcc_cfa_offsets_reversed.
10244 (decode_frame_entry_1): Record the CIE version. Record the
10245 augmentation. Skip armcc augmentations.
10246 * dwarf2read.c (read_file_scope): Save the producer.
10247 * symtab.h (struct symtab): Rename unused version member to
10250 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
10252 * configure.ac (build_warnings): Use -Wall and
10253 -Wdeclaration-after-statement.
10254 * configure: Regenerated.
10256 2007-01-04 Vladimir Prus <vladimir@codesourcery.com>
10258 Simplify access to variours properties of child
10259 variable objects in C.
10260 * varobj.c (value_struct_element_index): New function.
10261 (c_describe_child): New function.
10262 (c_name_of_child, c_value_of_child)
10263 (c_type_of_child): Rewrite to use c_describe_child.
10265 2007-01-04 Vladimir Prus <vladimir@codesourcery.com>
10268 * varobj.c: Include "vec.h".
10269 (varobj_p): New typedef, declare vector of those.
10270 (struct varobj): Use vector for the 'children' member.
10271 (child_exists): Remove.
10272 (save_child_in_parent): Remove.
10273 (remove_child_from_parent): Remove.
10274 (struct varobj_child): Remove.
10275 (struct vstack): Remove.
10276 (vpush, vpop): Remove.
10277 (varobj_list_children): Adjust to work work vector.
10278 (varobj_update): Likewise. Use vectors for
10279 working stack and result.
10280 (delete_variable_1): Likewise.
10281 * Makefile.in (varobj.o): Update dependencies.
10283 2007-01-04 Vladimir Prus <vladimir@codesourcery.com>
10285 Port from Apple's version.
10287 * varobj.c (type_changeable): Rename to...
10288 (varobj_value_is_changeable_p): ...this. Adjust all callers.
10289 (is_root_p): New function. Use it everywhere.
10291 2007-01-04 Jim Blandy <jimb@codesourcery.com>
10293 * glibc-tdep.c (glibc_skip_solib_resolver): Look for '_dl_fixup',
10294 then plain 'fixup'.
10296 2007-01-04 Joel Brobecker <brobecker@adacore.com>
10298 * hpread.c (hpread_start_psymtab): Remove unnecessary extern.
10300 2007-01-04 Joel Brobecker <brobecker@adacore.com>
10302 * hpread.c (hpread_type_lookup): Fix compilation failure.
10304 2007-01-04 Qinwei <qinwei@sunnorth.com.cn>
10306 * NEWS: New port to S+core.
10307 * MAINTAINERS (Write After Approval, Responsible Maintainers):
10310 * Makefile.in: Add dependencies for S+core files.
10311 * configure.tgt (score*, score-*-*): Add S+core target.
10312 * config/score/embed.mt: New file.
10313 * score-tdep.c: New file.
10314 * score-tdep.h: New file.
10316 2007-01-04 Joel Brobecker <brobecker@adacore.com>
10318 * ada-lang.c (ada_evaluate_subexp) [OP_TYPE]: Return a value with
10319 the appropriate type rather than a bogus void type.
10321 2007-01-04 Joel Brobecker <brobecker@adacore.com>
10323 * ada-lang.h (ada_find_printable_frame): Remove.
10324 (ada_exception_catchpoint_p, ada_decode_exception_location)
10325 (ada_decode_assert_location): Add declaration.
10326 * ada-lang.c: Add include of annotate.h and valprint.h.
10327 (exception_catchpoint_kind): New enum.
10328 (function_name_from_pc, is_known_support_routine)
10329 (ada_find_printable_frame, ada_unhandled_exception_name_addr)
10330 (ada_exception_name_addr_1, ada_exception_name_addr)
10331 (print_it_exception, print_one_exception, print_mention_exception)
10332 (print_it_catch_exception, print_one_catch_exception)
10333 (print_mention_catch_exception, catch_exception_breakpoint_ops)
10334 (print_it_catch_exception_unhandled)
10335 (print_one_catch_exception_unhandled)
10336 (print_mention_catch_exception_unhandled, print_it_catch_assert)
10337 (print_one_catch_assert, print_mention_catch_assert)
10338 (ada_exception_catchpoint_p, error_breakpoint_runtime_sym_not_found)
10339 (ada_get_next_arg, catch_ada_exception_command_split)
10340 (ada_exception_sym_name, ada_exception_sym_name)
10341 (ada_exception_breakption_ops, ada_exception_catchpoint_cond_string)
10342 (ada_parse_catchpoint_condition, ada_exception_sal)
10343 (ada_decode_exception_location)
10344 (ada_decode_assert_location): New function.
10345 (catch_exception_unhandled_breakpoint_ops): New global variable.
10346 (catch_assert_breakpoint_ops): New global variable.
10347 * breakpoint.c: Add include of ada-lang.h.
10348 (print_one_breakpoint): Do not print the condition for Ada
10349 exception catchpoints.
10350 (create_ada_exception_breakpoint): New function.
10351 (catch_ada_exception_command, catch_assert_command): New function.
10352 (catch_command_1): Add support for the new "catch exception" and
10353 "catch assert" commands.
10354 (_initialize_breakpoint): Add help description for the new catch
10356 * Makefile.in (ada-lang.o): Add dependency on annotate.h and
10358 (breakpoint.o): Add dependency on ada-lang.h.
10360 2007-01-03 Pedro Alves <pedro_alves@portugalmail.pt>
10362 * coffread.c (cs_to_section): If bfd_section is found, always
10363 return its section index.
10364 (coff_symtab_read): Determine the minimal_symbol_type using the
10367 2007-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10368 Daniel Jacobowitz <dan@codesourcery.com>
10370 * Makefile.in (top.o): Update.
10371 * top.c (gdb_readline_wrapper_done, gdb_readline_wrapper_result)
10372 (saved_after_char_processing_hook, gdb_readline_wrapper_line)
10373 (struct gdb_readline_wrapper_cleanup, gdb_readline_wrapper_cleanup):
10375 (gdb_readline_wrapper): Rewrite to use asynchronous readline.
10377 2007-01-03 Mark Kettenis <kettenis@gnu.org>
10379 * arm-linux-tdep.c (arm_linux_extract_return_value): Remove.
10380 (arm_linux_init_abi): Don't set deprecated_extract_return_value.
10382 2007-01-03 Daniel Jacobowitz <dan@codesourcery.com>
10384 * ada-lang.c (find_struct_field): Initialize *byte_offset_p.
10385 * breakpoint.c (do_enable_breakpoint): Ignore both mem_cnt and i.
10386 * c-typeprint.c (c_type_print_varspec_suffix): Don't test length
10387 greater than or equal to zero.
10388 * m2-typeprint.c (m2_array): Likewise.
10389 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
10390 * gdbtypes.c (copy_type_recursive): Correct == typo.
10391 * i386-tdep.c (i386_skip_prologue): Remove stray semicolon.
10392 * linux-nat.c (linux_nat_info_proc_cmd): Don't compare a pointer
10394 * macroscope.c (sal_macro_scope): Don't name a local variable "main".
10395 (default_macro_scope): Remove unused variable.
10396 * prologue-value.h (pv_area_find_reg): Don't name an argument
10398 * remote-fileio.c (remote_fio_func_map): Add missing braces.
10399 * remote.c (sigint_remote_twice_token, sigint_remote_token): Change
10401 (cleanup_sigint_signal_handler): Remove casts.
10402 * valprint.c (val_print): Use a volatile local for the modified
10404 * varobj.c (languages): Remove extra array dimension.
10405 (varobj_create): Correct access to languages array.
10406 * mi/mi-cmd-break.c (mi_cmd_break_insert, mi_cmd_break_watch): Add
10408 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise.
10409 * mi/mi-cmd-env.c (mi_cmd_env_path, mi_cmd_env_dir): Likewise.
10410 * mi/mi-getopt.c (mi_valid_noargs): Likewise.
10411 * mi/mi-main.c (mi_cmd_data_read_memory): Likewise.
10412 (mi_cmd_data_write_memory): Likewise.
10413 * signals/signals.c (target_signal_to_string): Cast to int before
10415 * tui/tui-layout.c (init_and_make_win): Take and return a void *.
10416 Update all callers.
10418 2007-01-03 Daniel Jacobowitz <dan@codesourcery.com>
10420 * NEWS: Mention pointer to member improvements.
10421 * Makefile.in (gnu-v3-abi.o): Delete special rule.
10422 (eval.o, gnu-v3-abi.o, ia64-tdep.o): Update.
10423 * ada-valprint.c (ada_print_scalar): Update for new type codes.
10424 * c-typeprint.c (c_print_type): Update for new type codes.
10425 (c_type_print_varspec_prefix, c_type_print_varspec_suffix)
10426 (c_type_print_base): Likewise.
10427 (c_type_print_args): Rewrite.
10428 * c-valprint.c (c_val_print): Update for new type codes. Remove
10429 support for references to members. Treat methods like functions.
10430 * cp-abi.c (cplus_print_method_ptr, cplus_method_ptr_size)
10431 (cplus_make_method_ptr, cplus_method_ptr_to_value): New.
10432 * cp-abi.h (cplus_print_method_ptr, cplus_method_ptr_size)
10433 (cplus_make_method_ptr, cplus_method_ptr_to_value): New prototypes.
10434 (struct cp_abi_ops): Add corresponding members.
10435 * cp-valprint.c (cp_print_class_method): Delete.
10436 (cp_find_class_member): New function.
10437 (cp_print_class_member): Use it. Simplify support for bogus
10439 * dwarf2read.c (quirk_gcc_member_function_pointer): Use
10440 lookup_methodptr_type.
10441 (read_tag_ptr_to_member_type): Likewise, and lookup_memberptr_type.
10442 * eval.c (evaluate_subexp_standard): Implement EVAL_SKIP for
10443 OP_SCOPE. Update call to value_aggregate_elt. Rewrite member
10445 (evaluate_subexp_for_address): Handle OP_SCOPE explicitly. Handle
10446 references returned by user defined operators.
10447 * f-typeprint.c (f_print_type, f_type_print_varspec_prefix)
10448 (f_type_print_varspec_suffix): Remove support for member pointers.
10449 * gdbtypes.c (lookup_memberptr_type): Renamed from lookup_member_type
10451 (smash_to_memberptr_type): Likewise, from smash_to_member_type.
10452 (lookup_methodptr_type): New.
10453 (rank_one_type): Adjust for TYPE_CODE_MEMBERPTR.
10454 (recursive_dump_type): Update for new types.
10455 * gdbtypes.h (enum type_code): Replace TYPE_CODE_MEMBER with
10456 TYPE_CODE_MEMBERPTR and TYPE_CODE_METHODPTR.
10457 (lookup_memberptr_type, lookup_methodptr_type)
10458 (smash_to_memberptr_type): New prototypes.
10459 (smash_to_method_type): Formatting fix.
10460 (lookup_member_type, smash_to_member_type): Delete prototypes.
10461 * gnu-v3-abi.c (gnuv3_get_vtable, gnuv3_get_virtual_fn): New.
10462 Do not rely on debug information for the vptr or the method's
10463 enclosing type. Handle function descriptors for IA64.
10464 (gnuv3_virtual_fn_field): Rewrite using the new functions.
10465 (gnuv3_find_method_in, gnuv3_print_method_ptr)
10466 (gnuv3_method_ptr_size, gnuv3_make_method_ptr)
10467 (gnuv3_method_ptr_to_value): New.
10468 (init_gnuv3_ops): Set new members of gnu_v3_abi_ops.
10469 * hpread.c (hpread_type_lookup): Update for new types.
10470 * infcall.c (value_arg_coerce): Likewise.
10471 * m2-typeprint.c (m2_print_type): Remove explicit support
10472 for member pointers.
10473 * m2-valprint.c (m2_val_print): Likewise.
10474 * p-typeprint.c (pascal_type_print_varspec_prefix)
10475 (pascal_type_print_varspec_suffix, pascal_type_print_base): Likewise.
10476 * p-valprint.c (pascal_val_print): Likewise.
10477 (pascal_object_print_class_method, pascal_object_print_class_member):
10479 * p-lang.h (pascal_object_print_class_method)
10480 (pascal_object_print_class_member): Delete prototypes.
10481 * stabsread.c (read_type): Update for new types.
10482 * typeprint.c (print_type_scalar): Likewise.
10483 * valops.c (value_struct_elt_for_reference, value_namespace_elt)
10484 (value_maybe_namespace_elt, value_aggregate_elt): Add want_address
10485 argument. Construct a pointer to member if the address of a
10486 function or data member is requested.
10487 (value_cast_pointers): Don't modify the input value.
10488 (value_cast): Adjust pointer to member handling for new types.
10489 Allow null pointer to member constants. Don't modify the input
10491 (value_ind): Remove pointer to member check. Handle function
10492 descriptors for function pointers.
10493 (value_struct_elt, value_find_oload_method_list, check_field):
10494 Remove pointer to member checks.
10495 * value.c (unpack_long): Allow pointers to data members.
10496 (value_from_longest): Allow member pointers.
10497 * value.h (value_aggregate_elt): Add want_address.
10498 * varobj.c (c_variable_editable): Remove check for members.
10499 * gdbarch.sh: Add vtable_function_descriptors and vbit_in_delta.
10500 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Handle descriptors
10502 (ia64_gdbarch_init): Call set_gdbarch_vtable_function_descriptors.
10503 * c-lang.h (cp_print_class_method): Delete prototype.
10504 * arm-tdep.c (arm_gdbarch_init): Call set_gdbarch_vbit_in_delta.
10505 * mips-tdep.c (mips_gdbarch_init): Likewise.
10506 * gdbarch.c, gdbarch.h: Regenerated.
10508 2007-01-01 Mark Kettenis <kettenis@gnu.org>
10510 * rs6000-tdep.c (rs6000_use_struct_convention)
10511 (rs6000_extract_return_value, rs6000_store_return_value)
10512 (rs6000_extract_struct_value_address): Remove.
10513 (rs6000_return_value): New function.
10514 (rs6000_gdbarch_init): Don't set deprecated_extract_return_value,
10515 store_return_value, deprecated_extract_struct_value_address and
10516 deprecated_use_struct_convention. Use rs6000_return_value
10519 2007-01-02 Nick Roberts <nickrob@snap.net.nz>
10521 * mi/mi-cmds.c (mi_cmds): Remove entries for -display-delete,
10522 -display-disable, -display-enable, -display-insert and
10525 2007-01-01 Joel Brobecker <brobecker@adacore.com>
10527 * breakpoint.c (remove_breakpoint): Remove dead code.
10529 2007-01-01 Nick Roberts <nickrob@snap.net.nz>
10531 * varobj.c: Include block.h.
10532 (c_value_of_root): Check scope within nested statements.
10534 2007-01-01 Mark Kettenis <kettenis@gnu.org>
10536 * mi/mi-main.c (mi_cmd_data_write_register_values): Use
10537 regcache_cooked_write_signed instead of
10538 deprecated_write_register_bytes.
10540 2007-01-01 Joel Brobecker <brobecker@adacore.com>
10542 * config/djgpp/fnchange.lst: Add entry for ChangeLog-2006.
10544 2007-01-01 Joel Brobecker <brobecker@adacore.com>
10546 Followed the Start of New Year Procedure:
10547 * ChangeLog-2006: New file, containing all the entries for 2006.
10548 * ChangeLog: Removed all 2006 entries, and changed the reference
10549 to the previous ChangeLog to point to ChangeLog 2006.
10550 * top.c (print_gdb_version): Update copyright year.
10552 2007-01-01 Mark Kettenis <kettenis@gnu.org>
10554 * Makefile.in (remote-sds.o): Remove.
10555 * remote-sds.c: Delete.
10557 For older changes see ChangeLog-2006.
10563 version-control: never