1 2007-12-27 Joel Brobecker <brobecker@adacore.com>
3 * ada-lang.c (ada_value_cast): New function, extracted out from
4 the code in ada_evaluate_subexp, case UNOP_CAST. The code handling
5 the obscure case has been removed as we think that it is actually
7 (ada_evaluate_subexp): Add type case when evaluating an OP_DOUBLE
8 or an OP_LONG with a non-null expect_type. Replace extracted-out
9 code with call to new ada_value_cast function.
11 2007-12-27 Paul Hilfinger <hilfinger@adacore.com>
13 * ada-lang.c (ada_evaluate_subexp): Add cases for BINOP_LOGICAL_AND,
14 BINOP_LOGICAL_OR, UNOP_LOGICAL_NOT, BINOP_BITWISE_IOR,
15 BINOP_BITWISE_XOR, BINOP_BITWISE_AND.
16 * language.c (lang_bool_type): Add Ada case.
18 2007-12-26 Joel Brobecker <brobecker@adacore.com>
20 * dwarf2read.c (read_base_type): Fix obvious &&/|| confusion.
22 2007-12-26 Luis Machado <luisgpm@br.ibm.com>
24 * dwarf2-frame.c (execute_cfa_program): Call dwarf2_restore_rule
25 function to handle required actions for the DW_CFA_restore and
26 DW_CFA_restore_extended instructions.
27 (dwarf2_restore_rule): New function.
29 2007-12-24 Joel Brobecker <brobecker@adacore.com>
31 * ada-lang.c (ada_is_character_type): Add recognition of type
32 "Wide_Wide_Character".
34 2007-12-24 Joel Brobecker <brobecker@adacore.com>
36 * dwarf2read.c (read_base_type): Set code to TYPE_CODE_CHAR
37 for char and unsigned char types of Ada compilation units.
38 * ada-lang.c (ada_is_character_type): Always return true if
39 the type code is TYPE_CODE_CHAR.
41 2007-12-23 Joel Brobecker <brobecker@adacore.com>
43 * infrun.c (handle_inferior_event): Remove code that made us
44 stop when stepping into the last line of the current function.
46 2007-12-22 Pierre Muller <muller@ics.u-strasbg.fr>
48 * win32-nat.c: Fix PR gdb/2388.
49 (do_win32_fetch_inferior_registers): Do not overwrite debug register
50 array dr if debug_registers_changed variable is set.
52 2007-12-22 Jan Kratochvil <jan.kratochvil@redhat.com>
54 * dwarf2read.c (scan_partial_symbols partial_die_parent_scope)
55 (add_partial_symbol, pdi_needs_namespace, process_die)
56 (is_type_tag_for_partial, load_partial_dies, new_symbol)
57 (read_type_die, determine_prefix): Extend the current code of
58 `DW_TAG_class_type' also for `DW_TAG_interface_type'.
60 2007-12-21 Paul N. Hilfinger <hilfinger@adacore.com>
62 * ada-lang.h (ada_renaming_category): New enumerated type.
63 (ada_lookup_encoded_symbol): Declare.
64 (ada_parse_renaming): Declare.
65 (ada_renaming_type,ada_is_object_renaming)
66 (ada_simple_renamed_entity): Delete declarations.
67 * ada-lang.c (ada_parse_renaming): New function to concentrate
68 extraction of information from renaming symbols.
69 (parse_old_style_renaming): New function to concentrate
70 extraction of old-style (purely type-based) renaming information.
71 (renaming_is_visible): Rename to...
72 (old_renaming_is_invisible): Rename and change sense of
74 (remove_out_of_scope_renamings): Rename to...
75 (remove_irrelevant_renamings): Renames remove_out_of_scope_renamings
76 and augments with additional logic to handle cases where the same
77 object renaming is encoded both as a reference variable and an
79 (ada_renaming_type,ada_is_object_renaming)
80 (ada_simple_renamed_entity): Delete definitions.
81 (ada_lookup_encoded_symbol): New function factored out of
83 (ada_lookup_symbol): Reimplement to call ada_lookup_encoded_symbol.
84 (wild_match): Don't reject perfect match of prefix.
85 (ada_find_renaming_symbol): Factor old-style renaming logic into
86 find_old_style_renaming_symbol.
87 (find_old_style_renaming_symbol): New name for content of old
88 ada_find_renaming_symbol.
89 (ada_prefer_type): Reimplement not to use ada_renaming_type.
90 * ada-exp.y (write_object_renaming): Change interface. Reimplement
91 to use new arguments and ada_parse_renaming.
92 Correct blocks used to find array index.
93 (write_var_or_type): Reimplement to use ada_parse_renaming.
95 2007-12-21 Denis Pilat <denis.pilat@st.com>
97 * tui/tui-data.h (MAX_LOCATOR_ELEMENT_LEN): Defined to a bigger
98 value or to PATH_MAX when possible.
100 2007-12-20 Joel Brobecker <brobecker@adacore.com>
102 * rs6000-tdep.h: Remove defs.h #include.
103 * Makefile.in (rs6000_tdep_h): Update dependencies.
105 2007-12-20 Thiago Jung Bauermann <bauerman@br.ibm.com>
107 * gdbtypes.c (gdbtypes_post_init): Change names of decimal float types
108 to conform to C extension for decimal float.
109 * c-lang.c (enum c_primitive_types): Add entries for Decimal Floating
111 (enum cplus_primitive_types): Likewise.
112 (c_language_arch_info): Add Decimal Floating Point builtin types to
113 the primitive_type_vector.
114 (cplus_language_arch_info): Likewise.
116 2007-12-20 David Ung <davidu@mips.com>
117 Maciej W. Rozycki <macro@mips.com>
119 * mips-tdep.c (mips_n32n64_push_dummy_call): Sign-extend
120 integers and 32-bit pointers as required by the ABI.
122 2007-12-20 Joel Brobecker <brobecker@adacore.com>
124 * symtab.h: Remove "defs.h" #include.
125 * Makefile.in (symtab_h): Update dependencies.
127 2007-12-19 Joel Brobecker <brobecker@adacore.com>
129 * symtab.h: #include "defs.h".
130 (enum language): Remove opaque declaration.
131 * Makefile.in (symtab_h): Update dependencies.
133 2007-12-19 Joel Brobecker <brobecker@adacore.com>
135 * language.h (enum exp_opcode): Remove commented out forward
137 (op_error): Delete declaration.
139 2007-12-19 Joel Brobecker <brobecker@adacore.com>
141 * infrun.c (handle_inferior_event): Fix spelling in comment.
143 2007-12-18 Daniel Jacobowitz <dan@codesourcery.com>
145 * minsyms.c (lookup_minimal_symbol): Also check the separate
147 (lookup_minimal_symbol_text): Likewise.
148 (lookup_minimal_symbol_solib_trampoline): Likewise.
149 * symtab.c (lookup_global_symbol_from_objfile): Likewise.
151 2007-12-18 Vladimir Prus <vladimir@codesourcery.com>
153 * mi/mi-main.c (mi_cmd_list_features): Announce
154 the 'pending-breakpoints' feature.
156 2007-12-17 Jim Blandy <jimb@codesourcery.com>
158 * dwarf2read.c (dwarf2_add_field): Correctly scale all byte
159 offsets obtained from DW_AT_data_member_location before recording
160 them in FIELD_BITPOS (*fp).
162 * dwarf2read.c (attr_form_is_section_offset): Doc fixes.
164 2007-12-17 Nigel Stephens <nigel@mips.com>
165 Maciej W. Rozycki <macro@mips.com>
167 * utils.c (string_to_core_addr): If the executable format
168 indicates that addresses should be sign-extended and there are
169 only 8 hex digits in the address, then do so.
170 * Makefile.in (utils.o): Depend on $(gdbcore_h).
172 2007-12-17 Chris Dearman <chris@mips.com>
174 * symfile.c (init_filename_language_table): Recognise .sx as
177 2007-12-17 Joel Brobecker <brobecker@adacore.com>
179 * language.h (enum exp_opcode): Comment out this declaration,
180 undoing the previous change.
182 2007-12-17 Luis Machado <luisgpm@br.ibm.com>
184 * breakpoint.c: (watch_command_1): Parse additional optional
185 "thread" parameter to the watchpoint command and set the
186 "thread" member of the breakpoint struct.
188 2007-12-17 Luis Machado <luisgpm@br.ibm.com>
190 * breakpoint.c (bpstat_stop_status): Check an additional
191 condition before evaluating an expression value.
193 2007-12-17 Joel Brobecker <brobecker@adacore.com>
195 * language.h (enum exp_opcode): Add forward declaration.
196 (language_string_char_type, language_lookup_primitive_type_by_name):
197 Move declaration past declaration of language_defn.
199 2007-12-16 Daniel Jacobowitz <dan@codesourcery.com>
200 Joseph Myers <joseph@codesourcery.com>
202 * configure.ac: Check for *-*-solaris2.1[[0-9]]* instead of
203 *-*-solaris2.1[[0-9]].
204 * configure: Regenerate.
205 * procfs.c (proc_set_current_signal): If redelivering a signal,
206 reuse the current siginfo if possible.
208 2007-12-16 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
210 * f-typeprint.c (print_equivalent_f77_float_type): Remove function.
211 (f_type_print_base): Output the type names directly for real and
214 2007-12-16 Vladimir Prus <vladimir@codesourcery.com>
216 * breakpoint.c (bpstat_have_active_hw_watchpoints):
218 (bpstat_stop_status): Remove unused variable
220 * breakpoint.h (bpstat_have_active_hw_watchpoints):
223 2007-12-16 Vladimir Prus <vladimir@codesourcery.com>
225 * target.h (target_pid_or_tid_to_str): Remove.
226 * infrun.c (handle_inferior_event):
227 Use target_pid_to_str instead of
228 target_pid_or_tid_to_str.
229 (normal_stop): Likewise.
231 2007-12-16 Jan Kratochvil <jan.kratochvil@redhat.com>
233 * dwarf2read.c (dwarf_attr_name): Rename `DW_AT_stride_size' to its
234 DWARF3 equivalent `DW_AT_bit_stride'.
235 Rename `DW_AT_stride' to its DWARF3 equivalent `DW_AT_byte_stride'.
237 2007-12-16 Joel Brobecker <brobecker@adacore.com>
239 * mi/mi-main.c: Remove code that was commented out in 1999.
241 2007-12-16 Joel Brobecker <brobecker@adacore.com>
243 * expression.h (parse_expression_in_context): Delete prototype.
244 * parse.c (parse_expression_in_context): Delete.
246 2007-12-14 Vladimir Prus <vladimir@codesourcery.com>
248 Add support for pending breakpoints in MI.
249 * gdb.h (gdb_breakpoint): Add parameter pending.
250 * breakpoint.c (gdb_breakpoint): Add parameter pending.
251 * mi/mi-cmd-break.c (mi_break_insert): Change
252 comment to refer to manual. Add support for
253 the -f flag, for pending breakpoint.
255 2007-12-14 Vladimir Prus <vladimir@codesourcery.com>
257 * breakpoint.c (break_command_really): New, copied
258 from break_command_1. New parameters COND_STRING, THREAD
259 PARSE_CONDITITION_AND_THREAD and PENDING_BREAK_SUPPORT.
260 The previous FLAG parameter split into TEMPFLAG and
262 When PARSE_CONDITION_AND_THREAD is not set, duplicate
263 the passed condition string.
264 (struct captured_breakpoint_args): Remove
265 (do_captured_breakpoint): Remove.
266 (break_command_1): Relay to break_command_really.
267 (gdb_breakpoint): Relay to break_command_really.
269 2007-12-13 Michael Snyder <msnyder@specifix.com>
271 * mips-linux-tdep.c (mips64_fill_gregset): Remove unused variable.
273 2007-12-13 Jim Blandy <jimb@codesourcery.com>
275 * dwarf2read.c (attr_form_is_constant): New function.
276 (dwarf2_add_field): Use it and attr_form_is_section_offset to
277 recognize DW_AT_data_member_location attributes. Use
278 dwarf2_get_attr_constant_value when the attribute is a constant.
280 * dwarf2read.c (attr_form_is_section_offset): New function.
281 (dwarf_add_member_fn, read_common_block, read_partial_die)
282 (dwarf2_symbol_mark_computed): Use it, instead of writing it out.
284 2007-12-12 Jim Blandy <jimb@codesourcery.com>
286 Remove unused support for target-based exception catching.
287 * target.h (struct target_ops): Delete
288 to_enable_exception_callback and to_get_current_exception_event
290 (target_enable_exception_callback)
291 (target_get_current_exception_event): Delete macros.
292 * target.c (update_current_target): Remove code to inherit and
293 default those members.
294 (debug_to_enable_exception_callback)
295 (debug_to_get_current_exception_event): Delete functions.
296 (setup_target_debug): Don't install those methods.
297 * inf-child.c (inf_child_enable_exception_callback)
298 (inf_child_get_current_exception_event): Delete dummy functions.
299 (inf_child_target): Don't install them in the target vector.
300 * breakpoint.h (enum bptype): Delete bp_catch_catch,
302 * breakpoint.c (cover_target_enable_exception_callback)
303 (ep_is_exception_catchpoint, create_exception_catchpoint): Delete
305 (insert_bp_location, update_breakpoints_after_exec)
306 (remove_breakpoint, ep_is_catchpoint, print_it_typical)
307 (bpstat_stop_status, bpstat_what)
308 (bpstat_get_triggered_catchpoints, print_one_breakpoint_location)
309 (user_settable_breakpoint, allocate_bp_location)
310 (disable_watchpoints_before_interactive_call_start)
311 (enable_watchpoints_after_interactive_call_stop, mention)
312 (delete_breakpoint, breakpoint_re_set_one, disable_command)
313 (enable_command): Remove exception catchpoint cases.
314 (catch_exception_command_1): Don't try target-based exception
316 * stack.c (catch_info): Call print_frame_label_vars
319 2007-12-12 Nigel Stephens <nigel@mips.com>
320 Maciej W. Rozycki <macro@mips.com>
322 * remote-mips.c (mips_load): Use regcache_set_valid_p() instead
323 of setting deprecated_register_valid array directly.
325 2007-12-07 Maciej W. Rozycki <macro@mips.com>
327 * mips-tdep.c (extended_offset): Fix a comment.
329 2007-12-07 Maciej W. Rozycki <macro@mips.com>
331 * target.c (update_current_target): Inherit to_log_command.
332 * target.h (struct target_ops). Add to_log_command.
333 (target_log_command): New macro.
334 * top.c (execute_command): Call target_log_command() rather than
335 serial_log_command().
336 * monitor.c (init_base_monitor_ops): Initialize to_log_command.
337 * remote-m32r-sdi.c (init_m32r_ops): Likewise.
338 * remote-mips.c (_initialize_remote_mips): Likewise.
339 * remote.c (init_remote_ops): Likewise.
341 2007-12-06 Daniel Jacobowitz <dan@codesourcery.com>
343 * infrun.c (init_wait_for_inferior): Reset target_last_wait_ptid.
344 (handle_inferior_event): Clear stop_stack_dummy earlier.
346 2007-12-06 Jim Blandy <jimb@codesourcery.com>
348 * addrmap.c (addrmap_splay_tree_remove): New function.
349 (addrmap_mutable_set_empty): Use it.
351 * addrmap.c, addrmap.h: Update to GPLv3.
353 * addrmap.c (struct addrmap): Make the referenced function table
355 (addrmap_fixed_funcs, addrmap_mutable_funcs): Declare const.
356 Don't use designated initializers.
358 * addrmap.c (addrmap_fixed_create_fixed, addrmap_mutable_find)
359 (addrmap_mutable_relocate): Use internal_error, not abort.
361 * NEWS: Mention support for non-contiguous lexical blocks and
364 2007-12-06 Markus Deuling <deuling@de.ibm.com>
366 * gdbarch.sh (stab_reg_to_regnum, dwarf_reg_to_regnum)
367 ( dwarf2_reg_to_regnum, sdb_reg_to_regnum, ecoff_reg_to_regnum): Add
368 gdbarch as parameter.
369 * gdbarch.{c,h}: Regenerate.
371 * xtensa-tdep.c (xtensa_reg_to_regnum): Add gdbarch as parameter.
372 Replace current_gdbarch by gdbarch.
373 * s390-tdep.c (s390_dwarf_reg_to_regnum): Likewise.
374 * rs6000-tdep.c (rs6000_stab_reg_to_regnum)
375 (rs6000_dwarf2_reg_to_regnum): Likewise.
376 * mips-tdep.c (mips_stab_reg_to_regnum)
377 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Likewise.
378 * mep-tdep.c (mep_debug_reg_to_regnum): Likewise.
379 * m32c-tdep.c (m32c_debug_info_reg_to_regnum): Likewise.
380 * i386-tdep.c (i386_dbx_reg_to_regnum)
381 (i386_svr4_reg_to_regnum): Likewise
382 * h8300-tdep.c (h8300s_dbg_reg_to_regnum)
383 (h8300_dbg_reg_to_regnum): Likewise.
384 * amd64-tdep.c (amd64_dwarf_reg_to_regnum): Likewise.
385 * arch-utils.c (no_op_reg_to_regnum): Likewise.
386 * arch-utils.h (no_op_reg_to_regnum): Likewise.
387 * arm-tdep.c (arm_dwarf_reg_to_regnum): Likewise.
388 * cris-tdep.c (cris_dwarf2_reg_to_regnum): Likewise.
389 * hppa-tdep.c (hppa64_dwarf_reg_to_regnum): Likewise.
390 * ia64-tdep.c (ia64_dwarf_reg_to_regnum): Likewise.
391 * m68k-tdep.c (m68k_dwarf_reg_to_regnum): Likewise.
393 2007-12-06 Vladimir Prus <vladimir@codesourcery.com>
395 Localize infrun use of remove_breakpoints.
396 * infrun.c (handle_inferior_event): Remove
397 calls to remove_breakpoints, except where needed to
398 communicate change of breakpoint locations to inferior.
399 (keep_going): If steppping over breakpoint, remove
402 2007-12-06 Vladimir Prus <vladimir@codesourcery.com>
404 Clarify infrun variable naming.
405 * infrun.c (trap_expected): Rename
406 to stepping_over_breakpoint. Document.
407 (stepping_past_breakpoint): Remove.
408 (stepping_past_breakpoint_ptdi): Renamed
409 to deferred_step_ptid.
410 (struct execution_control_state): Rename
411 the another_trap field to stepping_over_breakpoint.
412 (struct inferior_status): Rename the trap_expected
413 field to stepping_over_breakpoint.
414 (clear_proceed_status, proceed)
415 (init_execution_control_state, context_switch)
416 (handle_inferior_event, currently_stepping)
417 (keep_going, save_inferior_status)
418 (restore_inferior_status, prepare_to_proceed): Adjust.
419 * gdbthread.h (struct thread_info): Rename the
420 trap_expected field to stepping_over_breakpoint.
421 * thread.c (load_infrun_state, save_infrun_state):
424 2007-12-06 Pierre Muller <muller@ics.u-strasbg.fr>
426 * win32-nat.c: Allow compilation if CORE_ADDR is 8 byte long.
427 Add "gdb_stdint.h" dependency required for uintptr_t type use.
428 (handle_output_debug_string): Use uintptr_t typecast.
429 (handle_exception): Ditto.
430 (win32_xfer_memory): Ditto.
431 * Makefile.in (win32-nat.o): Add dependency to gdb_stdint header.
433 2007-12-04 Jim Blandy <jimb@codesourcery.com>
435 Support lexical blocks and function bodies that occupy
436 non-contiguous address ranges.
437 * addrmap.c, addrmap.h: New files.
438 * block.h (struct addrmap): New forward declaration.
439 (struct blockvector): New member, 'map'.
440 (BLOCKVECTOR_MAP): New accessor macro.
441 * block.c: #include "addrmap.h"
442 (blockvector_for_pc_sect): If the blockvector we've found has
443 an address map, use it instead of searching the blocks.
444 * buildsym.c: #include "addrmap.h"
445 (pending_addrmap_obstack, pending_addrmap_interesting): New static
447 (really_free_pendings): If we have a pending addrmap, free it too.
448 (record_block_range): New function.
449 (make_blockvector): If we have an interesting pending addrmap,
450 record it in the new blockvector.
451 (start_symtab, buildsym_init): Assert that there is no pending
452 addrmap now; we should have cleaned up any addrmaps we'd built
454 (end_symtab): If there is a pending addrmap left over that didn't
455 get included in the blockvector, free it.
456 * buildsym.h (struct addrmap): New forward declaration.
457 (record_block_range): New prototype.
458 * objfiles.c: #include "addrmap.h".
459 (objfile_relocate): Relocate the blockvector's address map, if
461 * dwarf2read.c (dwarf2_record_block_ranges): New function.
462 (read_func_scope, read_lexical_block_scope): Call it.
463 * Makefile.in (SFILES): Add addrmap.c.
464 (addrmap_h): New header dependency variable.
465 (COMMON_OBS): Add addrmap.o.
466 (addrmap.o): New rule.l
467 (block.o, objfiles.o, buildsym.o): Depend on $(addrmap_h).
469 * block.c (blockvector_for_pc, blockvector_for_pc_sect): Return a
470 pointer to the block, not its index in the blockvector.
471 (block_for_pc_sect): Use the returned block, instead of looking it
473 * block.h (blockvector_for_pc, blockvector_for_pc_sect): Update
475 * breakpoint.c (resolve_sal_pc): Use returned block, instead of
476 looking it up ourselves.
477 * stack.c (print_frame_label_vars): Disable function, which
478 depends on the block's index.
480 * buildsym.c (finish_block): Return the block we've built.
481 * buildsym.h (finish_block): Update prototype.
483 * defs.h (CORE_ADDR_MAX): New constant.
485 2007-12-04 Ulrich Weigand <uweigand@de.ibm.com>
487 * coffread.c (decode_type): Use builtin_type_int32 instead
488 of FT_INTEGER fundamental type for array range index type.
489 (decode_base_type): Use builtin types of current_gdbarch
490 instead of fundamental types.
492 * dwarf2read.c (struct dwarf2_cu): Remove ftypes member.
493 (read_file_scope): Do not initialize ftypes member.
494 (dwarf_base_type, dwarf2_fundamental_types): Remove functions.
495 (read_array_type): Use builtin_type_int32 instead of FT_INTEGER
496 fundamental type for array range index type.
497 (read_tag_string_type): Likewise for string range index type.
498 Also, do not overwrite FT_CHAR type with new string type.
499 (read_base_type): If DW_AT_name is missing, create unnamed type
500 with given properties instead of looking for a fundamental type.
501 Create new types as TYPE_TARGET_TYPE for DW_ATE_address and
502 DW_ATE_complex_float types.
503 (read_subrange_type): Create new type to represent missing
504 DW_AT_type instead of looking for a fundamental type.
505 (die_type): Use builtin type to represent "void" instead of
506 looking for a fundamental type.
508 * stabsread.c (define_symbol): Use builtin types to represent
509 'r' and 'i' floating-point and integer constants.
511 * gdbtypes.c (lookup_fundamental_type): Remove.
512 * gdbtypes.h (lookup_fundamental_type): Remove prototype.
513 (FT_VOID, FT_BOOLEAN, FT_CHAR, FT_SIGNED_CHAR, FT_UNSIGNED_CHAR,
514 FT_SHORT, FT_SIGNED_SHORT, FT_UNSIGNED_SHORT, FT_INTEGER,
515 FT_SIGNED_INTEGER, FT_UNSIGNED_INTEGER, FT_LONG, FT_SIGNED_LONG,
516 FT_UNSIGNED_LONG, FT_LONG_LONG, FT_SIGNED_LONG_LONG,
517 FT_UNSIGNED_LONG_LONG, FT_FLOAT, FT_DBL_PREC_FLOAT, FT_EXT_PREC_FLOAT,
518 FT_COMPLEX, FT_DBL_PREC_COMPLEX, FT_EXT_PREC_COMPLEX, FT_STRING,
519 FT_FIXED_DECIMAL, FT_FLOAT_DECIMAL, FT_BYTE, FT_UNSIGNED_BYTE,
520 FT_TEMPLATE_ARG, FT_DECFLOAT, FT_DBL_PREC_DECFLOAT,
521 FT_EXT_PREC_DECFLOAT, FT_NUM_MEMBERS): Remove macros.
522 * objfiles.c (struct objfile): Remove fundamental_types member.
523 * symfile.c (reread_symbols): Do not clear fundamental_types.
525 * language.h (struct language_defn): Remove la_fund_type member.
526 (create_fundamental_type): Remove.
527 * language.c (unk_lang_create_fundamental_type): Remove.
528 (unknown_language_defn, auto_language_defn,
529 local_language_defn): Adapt initializer.
530 * ada-lang.c (ada_create_fundamental_type): Remove.
531 (ada_language_defn): Adapt initializer.
532 * c-lang.h (c_create_fundamental_type): Remove prototype.
533 * c-lang.c (c_create_fundamental_type): Remove.
534 (c_language_defn, cplus_language_defn, asm_language_defn,
535 minimal_language_defn): Adapt initializer.
536 * f-lang.c (f_create_fundamental_type): Remove.
537 (f_language_defn): Adapt initializer.
538 * jv-lang.c (java_create_fundamental_type): Remove.
539 (java_language_defn): Adapt initializer.
540 * m2-lang.c (m2_create_fundamental_type): Remove.
541 (m2_language_defn): Adapt initializer.
542 * objc-lang.c (objc_create_fundamental_type): Remove.
543 (objc_language_defn): Adapt initializer.
544 * p-lang.h (pascal_create_fundamental_type): Remove prototype.
545 * p-lang.c (pascal_create_fundamental_type): Remove.
546 (pascal_language_defn): Adapt initializer.
547 * scm-lang.c (scm_language_defn): Adapt initializer.
549 2007-12-04 Maciej W. Rozycki <macro@mips.com>
551 * features/mips-cpu.xml: Specify "regnum" for "r0" explicitly.
552 * features/mips64-cpu.xml: Likewise.
553 * features/mips-fpu.xml: Specify "regnum" for "f0" explicitly.
554 * features/mips64-fpu.xml: Likewise.
555 * features/mips-linux.c: Regenerate.
556 * features/mips64-linux.c: Regenerate.
558 2007-12-04 Maciej W. Rozycki <macro@mips.com>
560 * target.h (target_find_new_threads): Fix definition.
562 2007-12-02 Pierre Muller <muller@ics.u-strasbg.fr>
564 * win32-nat.c (win32_resume): Set the trace bit
565 in the thread identified by inferior_ptid.
568 2007-12-02 Pierre Muller <muller@ics.u-strasbg.fr>
570 * win32-nat.c (open_process_used): New static variable.
571 (win32_init_thread_list): Remove call to CloseHandle for thread.
572 (win32_delete_thread): Ditto.
573 (fake_create_process): Set open_process_used if OpenProcess call is
575 (get_win32_debug_event): Do not close process handle.
576 (do_initial_win32_stuff): Set open_process_used to zero.
577 (win32_mourn_inferior): Call CloseHandle for current_process_handle if
578 open_process_used is set.
579 (win32_kill_inferior): Do not close process and main_thread handles.
581 2007-11-30 Daniel Jacobowitz <dan@codesourcery.com>
583 * remote.c (remote_cmdlist): New variable.
584 (PACKET_vFile_open, PACKET_vFile_pread, PACKET_vFile_pwrite)
585 (PACKET_vFile_close, PACKET_vFile_unlink): New constants.
586 (remote_buffer_add_string, remote_buffer_add_bytes)
587 (remote_buffer_add_int, remote_hostio_parse_result)
588 (remote_hostio_send_command, remote_hostio_open, remote_hostio_pwrite)
589 (remote_hostio_pread, remote_hostio_close, remote_hostio_unlink)
590 (remote_fileio_errno_to_host, remote_hostio_error, fclose_cleanup)
591 (remote_hostio_close_cleanup, remote_file_put, remote_file_get)
592 (remote_file_delete, remote_put_command, remote_get_command)
593 (remote_delete_command, remote_command): New functions.
594 (_initialize_remote): Register new packets and commands.
595 * Makefile.in (gdb_fileio_h): New variable.
597 (SUBDIR_MI_OBS): Add mi-cmd-target.o.
598 (SUBDIR_MI_SRCS): Add mi/mi-cmd-target.c.
599 (mi-cmd-target.o): New rule.
600 * mi/mi-cmd-target.c: New file.
601 * mi/mi-cmds.c (mi_cmds): Add target-file-delete, target-file-get,
603 * mi/mi-cmds.h (mi_cmd_target_file_get, mi_cmd_target_file_put)
604 (mi_cmd_target_file_delete): Declare.
605 * remote.h (remote_file_put, remote_file_get, remote_file_delete):
607 * NEWS: Describe new file transfer support.
609 2007-11-30 Vladimir Prus <vladimir@codesourcery.com>
611 * infrun.c (handle_inferior_event): Don't
612 ignore beakpoints if trap_expected is set.
614 2007-11-30 Vladimir Prus <vladimir@codesourcery.com>
616 Make insert_breakpoints return void.
617 * breakpoint.h (insert_breakpoints): Change
619 * breakpoint.c (insert_breakpoints): Change
620 return type to void. Rename local return_val
622 * infrun.c (keep_going): Instead of checking
623 return value from insert_breakpoints, catch exception.
625 2007-11-29 Vladimir Prus <vladimir@codesourcery.com>
627 Stop infrun from tracking breakpoint insertion status.
629 The checks of breakpoints_inserted before calling
630 remove_breakpoints are removed, as remove_breakpoint
631 won't touch uninserted breakpoints. In a number of places,
632 we're interested if a breakpoint is inserted at particular
633 PC, and we now use breakpoint_inserted_here_p. In a few
634 places, insert_breakpoints can be called unconditionally,
635 since it won't try to insert already inserted breakpoint.
637 * breakpoint.h (regular_breakpoint_inserted_here_p): New
639 * breakpoint.c (regular_breakpoint_inserted_here_p): New.
640 (breakpoint_inserted_here_p): Use
641 regular_breakpoint_inserted_here_p.
642 * infrun.c (breakpoints_inserted): Remove.
643 (resume): Don't check for breakpoints_inserted before
644 remove_hw_watchpoints. Use breakpoint_inserted_here_p.
645 (proceed, init_wait_for_inferior): Don't set breakpoints_inserted.
646 (handle_inferior_event): Don't use breakpoints_inserted.
647 Use breakpoints_meant_to_be_inserted and
648 breakpoints_inserted_here_p.
649 (insert_step_resume_breakpoint_at_sal, keep_going): Use
650 breakpoints_meant_to_be_inserted. Don't set breakpoints_inserted.
651 (normal_stop): Don't check for breakpoints_inserted. Don't
652 set breakpoints_inserted.
653 (keep_going): Don't check for breakpoints_inserted.
654 (insert_step_resume_breakpoint_at_sal): Don't insert
657 2007-11-28 Jim Blandy <jimb@codesourcery.com>
659 * breakpoint.c (watch_command_1): When the watchpoint isn't local
660 to any frame, initialize watchpoint_frame using null_frame_id, not
663 2007-11-28 Vladimir Prus <vladimir@codesourcery.com>
665 * infrun.c (resume): Set right thread even if
666 stepping over breakpoint using software single step.
668 2007-11-28 Nick Roberts <nickrob@snap.net.nz>
670 * mi/mi-cmd-var.c (print_varobj): Revert change from 2007-08-31.
671 (mi_print_value_p): Guard against type = NULL.
673 2007-11-27 Thiago Jung Bauermann <bauerman@br.ibm.com>
675 * dfp.c (decimal_from_string): Remove superfluous newline from
677 (decimal_to_string): Likewise.
678 * printcmd.c (printf_command): Change string buffer to use
679 MAX_DECIMAL_STRING constant.
680 * value.c (value_from_decfloat): Likewise.
682 2007-11-27 Ulrich Weigand <uweigand@de.ibm.com>
684 * Makefile.in (ALL_TARGET_OBS): Remove object files that require
685 64-bit CORE_ADDR and BFD support, move them to ...
686 (ALL_64_TARGET_OBS): ... this new variable.
687 * configure.ac: Check for --enable-64-bit-bfd option. Only add
688 64-bit targets with --enable-targets=all if BFD supports 64-bit.
689 * configure: Regenerate.
691 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Do not claim
692 all elf32-i386 executables, only cygwin core files.
694 2007-11-25 Jan Kratochvil <jan.kratochvil@redhat.com>
696 * dwarf2read.c (dwarf2_get_pc_bounds): Moved the `DW_AT_ranges' parsing
697 code with its variables OBJFILE, CU_HEADER and OBFD into ...
698 (dwarf2_ranges_read): ... a new function.
699 (read_partial_die): Implemented the parsing of `DW_AT_ranges'.
701 2007-11-24 Pedro Alves <pedro_alves@portugalmail.pt>
703 * win32-nat.c (DR6_CLEAR_VALUE): New define.
704 (thread_info_struct): Rename suspend_count to suspended, to be
706 (thread_rec): Only suspend the thread if it wasn't suspended by
707 gdb before. Warn if suspending failed.
708 (win32_add_thread): Set Dr6 to DR6_CLEAR_VALUE.
709 (win32_continue): Set Dr6 to DR6_CLEAR_VALUE. Update usage of the
710 `suspended' flag. Do ContinueDebugEvent after resuming the
711 suspended threads, not before. Set threads' contexts before
712 resuming them, not after.
713 (win32_resume): Set Dr6 to DR6_CLEAR_VALUE.
715 2007-11-23 Vladimir Prus <vladimir@codesourcery.com>
717 * breakpoint.c (insert_breakpoints)
718 (insert_bp_location): Remove stale comments.
720 2007-11-23 Maciej W. Rozycki <macro@mips.com>
722 * mips-linux-tdep.h: Fix some formatting.
724 2007-11-21 Markus Deuling <deuling@de.ibm.com>
726 * stack.c (print_args_stub): Use get_frame_arch to get at the current
727 architecture and replace current_gdbarch.
728 (frame_info): Likewise.
730 2007-11-21 Nick Roberts <nickrob@snap.net.nz>
732 * varobj.c (c_variable_editable, cplus_variable_editable)
733 (java_variable_editable, variable_editable): Delete.
734 (varobj_editable_p): Replace above functions with one language
735 independent function. Check for an lvalue.
736 (varobj_get_attributes, varobj_set_value): Use varobj_editable_p.
737 (struct language_specific): Delete variable_editable field.
739 * mi-cmd-var.c (mi_cmd_var_assign): Simplify.
741 * varobj.h: Add extern for varobj_editable_p.
743 2007-11-20 Vladimir Prus <vladimir@codesourcery.com>
745 Remove unused breakpoint fields.
746 * breakpoint.h (struct breakpoint): Remove
747 from_tty and flag fields.
748 * breakpoint.c (break_command_1): Don't set
749 from_tty and flag field set of breakpoint.
750 (create_ada_exception_breakpoint): Don't set
753 2007-11-20 David Ung <davidu@mips.com>
754 Maciej W. Rozycki <macro@mips.com>
756 * mips-tdep.c (mips16_scan_prologue): Handle the MIPS16e SAVE
759 2007-11-20 Vladimir Prus <vladimir@codesourcery.com>
761 * infrun.c (resume): Clarify logic that
762 decides if a single thread must be resumed. Add
765 2007-11-20 Vladimir Prus <vladimir@codesourcery.com>
767 * breakpoint.c (disable_breakpoints_in_unloaded_shlib):
770 2007-11-19 Markus Deuling <deuling@de.ibm.com>
772 * gdbarch.sh (register_sim_regno): Add gdbarch as parameter.
773 * gdbarch.{c,h}: Regenerate.
775 * arch-utils.h (legacy_register_sim_regno): Add gdbarch as parameter.
776 * score-tdep.c (score_register_sim_regno): Likewise.
777 * sim-regno.h (one2one_register_sim_regno): Likewise.
779 * arch-utils.c (legacy_register_sim_regno): Add gdbarch as parameter.
780 Replace current_gdbarch by gdbarch.
781 * sh-tdep.c (sh_sh2a_register_sim_regno)
782 (sh_dsp_register_sim_regno): Likewise.
783 * rs6000-tdep.c (rs6000_register_sim_regno): Likewise.
784 * mips-tdep.c (mips_register_sim_regno): Likewise.
785 * m32c-tdep.c (m32c_register_sim_regno): Likewise.
786 * frv-tdep.c (frv_register_sim_regno): Likewise.
787 * arm-tdep.c (arm_register_sim_regno): Likewise.
788 * remote-sim.c (one2one_register_sim_regno): Likewise.
790 2007-11-16 Ulrich Weigand <uweigand@de.ibm.com>
792 * configure.ac (--enable-targets): New configure option.
793 Collect gdb_target_obs of multiple targets into TARGET_OBS.
794 Call configure.tgt multiple times, using $targ as operand.
795 * configure.tgt: Operate on $targ instead of $target.
796 * configure: Regenerate.
797 * Makefile.in (ALL_TARGET_OBS): Define.
799 * NEWS: Mention --enable-targets option.
801 2007-11-16 Ulrich Weigand <uweigand@de.ibm.com>
803 * mips-tdep.c (show_mipsfpu_command): Do not crash if called when
804 current architecture is not MIPS.
806 2007-11-16 Ulrich Weigand <uweigand@de.ibm.com>
808 * cli/cli-setshow.c (do_setshow_command): Use dynamically sized buffer
809 to construct error message if no argument was supplied.
811 2007-11-16 Ulrich Weigand <uweigand@de.ibm.com>
813 * i386nbsd-tdep.c (i386nbsd_aout_supply_regset): Remove.
814 (i386nbsd_aout_regset_from_core_section): Likewise.
815 (i386nbsd_aout_init_abi): Likewise.
816 (_initialize_i386nbsd_tdep): Do not register i386nbsd_aout_init_abi.
818 * vaxnbsd-tdep.c (vaxnbsd_aout_init_abi): Remove.
819 (_initialize_vaxnbsd_tdep): Do not register vaxnbsd_aout_init_abi.
821 2007-11-16 Ulrich Weigand <uweigand@de.ibm.com>
823 * amd64fsdb-tdep.c (amd64fbsd_sigtramp_start_addr): Use ULL suffix.
824 (amd64fbsd_sigtramp_end_addr): Likewise.
826 * iq2000-tdep.c (iq2000_pointer_to_address): Fix argument type.
827 (iq2000_address_to_pointer): Likewise.
828 (iq2000_frame_prev_register): Likewise.
829 (iq2000_extract_return_value): Use regcache_cooked_read_unsigned
830 instead of regcache_cooked_read into CORE_ADDR variable.
831 (iq2000_return_value): Fix argument types.
833 * m32r-rom.c (m32r_load_section): Fix printf argument type.
834 (m32r_load): Likewise.
836 * m68kbsd-tdep.c: Include "gdbtypes.h".
837 * Makefile.in: Update dependencies.
839 * mn10300-tdep.c (mn10300_frame_unwind_cache): Fix aliasing violation.
841 * nto-tdep.c (LM_ADDR): Do not refer to no-longer-existing
842 lmo->l_addr_size element.
844 * remote-m32r-sdi.c (m32r_xfer_memory): Use paddr to print address.
845 (m32r_insert_breakpoint): Likewise.
846 (m32r_remove_breakpoint): Likewise.
847 (m32r_insert_watchpoint): Likewise.
848 (m32r_remove_watchpoint): Likewise.
849 (m32r_load): Fix printf argument type.
851 * xtensa-tdep.c (xtensa_regset_from_core_section): Fix printf
853 (xtensa_frame_this_id): Do not cast pointers to "int" for output.
854 (xtensa_frame_prev_register): Likewise.
855 (xtensa_push_dummy_call): Likewise.
857 2007-11-16 Ulrich Weigand <uweigand@de.ibm.com>
859 * config/alpha/alpha-linux.mt: Remove file.
860 * config/alpha/alpha.mt: Remove file.
861 * config/alpha/alpha-osf1.mt: Remove file.
862 * config/alpha/fbsd.mt: Remove file.
863 * config/alpha/nbsd.mt: Remove file.
864 * config/alpha/obsd.mt: Remove file.
865 * config/arm/embed.mt: Remove file.
866 * config/arm/linux.mt: Remove file.
867 * config/arm/nbsd.mt: Remove file.
868 * config/arm/obsd.mt: Remove file.
869 * config/arm/wince.mt: Remove file.
870 * config/avr/avr.mt: Remove file.
871 * config/cris/cris.mt: Remove file.
872 * config/frv/frv.mt: Remove file.
873 * config/h8300/h8300.mt: Remove file.
874 * config/i386/cygwin.mt: Remove file.
875 * config/i386/fbsd64.mt: Remove file.
876 * config/i386/fbsd.mt: Remove file.
877 * config/i386/i386gnu.mt: Remove file.
878 * config/i386/i386.mt: Remove file.
879 * config/i386/i386sol2.mt: Remove file.
880 * config/i386/linux64.mt: Remove file.
881 * config/i386/linux.mt: Remove file.
882 * config/i386/mingw.mt: Remove file.
883 * config/i386/nbsd64.mt: Remove file.
884 * config/i386/nbsd.mt: Remove file.
885 * config/i386/nto.mt: Remove file.
886 * config/i386/obsd64.mt: Remove file.
887 * config/i386/obsd.mt: Remove file.
888 * config/i386/sol2-64.mt: Remove file.
889 * config/ia64/ia64.mt: Remove file.
890 * config/ia64/linux.mt: Remove file.
891 * config/iq2000/iq2000.mt: Remove file.
892 * config/m32c/m32c.mt: Remove file.
893 * config/m32r/linux.mt: Remove file.
894 * config/m32r/m32r.mt: Remove file.
895 * config/m68hc11/m68hc11.mt: Remove file.
896 * config/m68k/linux.mt: Remove file.
897 * config/m68k/monitor.mt: Remove file.
898 * config/m68k/nbsd.mt: Remove file.
899 * config/m68k/obsd.mt: Remove file.
900 * config/m88k/obsd.mt: Remove file.
901 * config/mep/mep.mt: Remove file.
902 * config/mips/embed.mt: Remove file.
903 * config/mips/irix5.mt: Remove file.
904 * config/mips/irix6.mt: Remove file.
905 * config/mips/linux.mt: Remove file.
906 * config/mips/nbsd.mt: Remove file.
907 * config/mips/obsd64.mt: Remove file.
908 * config/mn10300/linux.mt: Remove file.
909 * config/mn10300/mn10300.mt: Remove file.
910 * config/mt/mt.mt: Remove file.
911 * config/pa/hppahpux.mt: Remove file.
912 * config/pa/hppa.mt: Remove file.
913 * config/pa/linux.mt: Remove file.
914 * config/pa/obsd.mt: Remove file.
915 * config/powerpc/aix.mt: Remove file.
916 * config/powerpc/linux.mt: Remove file.
917 * config/powerpc/nbsd.mt: Remove file.
918 * config/powerpc/obsd.mt: Remove file.
919 * config/powerpc/ppc-eabi.mt: Remove file.
920 * config/s390/s390.mt: Remove file.
921 * config/score/embed.mt: Remove file.
922 * config/sh/embed.mt: Remove file.
923 * config/sh/linux.mt: Remove file.
924 * config/sh/nbsd.mt: Remove file.
925 * config/sh/obsd.mt: Remove file.
926 * config/sh/sh64.mt: Remove file.
927 * config/sparc/embed.mt: Remove file.
928 * config/sparc/fbsd.mt: Remove file.
929 * config/sparc/linux64.mt: Remove file.
930 * config/sparc/linux.mt: Remove file.
931 * config/sparc/nbsd64.mt: Remove file.
932 * config/sparc/nbsd.mt: Remove file.
933 * config/sparc/obsd64.mt: Remove file.
934 * config/sparc/obsd.mt: Remove file.
935 * config/sparc/sol2-64.mt: Remove file.
936 * config/sparc/sol2.mt: Remove file.
937 * config/sparc/sparc64.mt: Remove file.
938 * config/sparc/sparc.mt: Remove file.
939 * config/spu/spu.mt: Remove file.
940 * config/v850/v850.mt: Remove file.
941 * config/vax/nbsd.mt: Remove file.
942 * config/vax/obsd.mt: Remove file.
943 * config/vax/vax.mt: Remove file.
944 * config/xstormy16/xstormy16.mt: Remove file.
945 * config/xtensa/xtensa.mt: Remove file.
947 * configure.tgt (gdb_target_cpu): Remove. Do not set anywhere.
948 (gdb_target): Likewise.
949 (gdb_target_obs): Document. Set for every target to contents
950 of TDEPFILES in former .mt makefile fragment.
952 * configure.ac (TARGET_OBS): Define.
953 (target_makefile_frag, gdb_target_cpu): Do not define.
954 * configure: Regenerate.
956 * Makefile.in (MT_FLAGS): Remove.
957 (GLOBAL_CFLAGS): Update.
958 (TARGET_OBS): Substitute from configure.
959 (DEPFILES): Remove TDEPFILES, add TARGET_OBS.
960 (@target_makefile_frag@): Remove.
962 2007-11-16 Ulrich Weigand <uweigand@de.ibm.com>
964 * config/arm/embed.mt (SIM_OBS, SIM): Remove.
965 * config/avr/avr.mt (SIM_OBS, SIM): Remove.
966 * config/frv/frv.mt (SIM_OBS, SIM): Remove.
967 * config/h8300/h8300.mt (SIM_OBS, SIM): Remove.
968 * config/iq2000/iq2000.mt (SIM_OBS, SIM): Remove.
969 * config/m32c/m32c.mt (SIM_OBS, SIM): Remove.
970 * config/m32r/linux.mt (SIM_OBS, SIM): Remove.
971 * config/m32r/m32r.mt (SIM_OBS, SIM): Remove.
972 * config/m68hc11/m68hc11.mt (SIM_OBS, SIM): Remove.
973 * config/mips/embed.mt (SIM_OBS, SIM): Remove.
974 * config/mips/linux.mt (SIM_OBS, SIM): Remove.
975 * config/mips/nbsd.mt (SIM_OBS, SIM): Remove.
976 * config/mn10300/mn10300.mt (SIM_OBS, SIM): Remove.
977 * config/powerpc/linux.mt (SIM_OBS, SIM): Remove.
978 * config/powerpc/nbsd.mt (SIM_OBS, SIM): Remove.
979 * config/powerpc/ppc-sim.mt: Remove file.
980 * config/sh/embed.mt (SIM_OBS, SIM): Remove.
981 * config/sh/linux.mt (SIM_OBS, SIM): Remove.
982 * config/sh/nbsd.mt (SIM_OBS, SIM): Remove.
983 * config/sh/sh64.mt (SIM_OBS, SIM): Remove.
984 * config/sparc/embed.mt (SIM_OBS, SIM): Remove.
985 * config/v850/v850.mt (SIM_OBS, SIM): Remove.
986 * config/xstormy16/xstormy16.mt (SIM_OBS, SIM): Remove.
988 * configure.tgt (gdb_sim): Document variable.
989 (arm*-*-* | thumb*-*-* | strongarm*-*-* | xscale-*-*): Set it.
992 (h8300-*-*): Likewise.
993 (iq2000-*-*): Likewise.
994 (m32c-*-*): Likewise.
995 (m32r*-*-linux*): Likewise.
996 (m32r*-*-*): Likewise.
997 (m68hc11*-*-*|m6811*-*-*): Likewise.
998 (mips*-*-*): Likewise.
999 (mips*-*-linux*): Likewise.
1000 (mips*-*-netbsd* | mips*-*-knetbsd*-gnu): Likewise.
1001 (mn10300-*-*): Likewise.
1002 (powerpc-*-linux* | powerpc64-*-linux*): Likewise.
1003 (powerpc-*-netbsd* | powerpc-*-knetbsd*-gnu): Likewise.
1004 (powerpc*-*-*): Use ppc-eabi target. Conditionally set gdb_sim.
1006 (sh-*-linux*): Likewise.
1007 (sh*-*-netbsdelf* | sh*-*-knetbsd*-gnu): Likewise.
1008 (sh64-*-elf*): Likewise.
1009 (sparc-*-rtems*): Likewise.
1010 (v850*-*-elf): Likewise.
1011 (xstormy16-*-*): Likewise.
1013 * configure.ac (IGNORE_SIM, IGNORE_SIM_OBS): Do not set.
1014 (SIM, SIM_OBS): Set depending on ${ignore_sim} and ${gdb_sim}.
1015 * configure: Regenerate.
1016 * Makefile.in (SIM, SIM_OBS): Substitute from configure.
1017 (@IGNORE_SIM@, @IGNORE_SIM_OBS@): Remove.
1019 2007-11-16 Ulrich Weigand <uweigand@de.ibm.com>
1021 * configure.tgt (gdb_osabi, build_gdbserver): Comment variables.
1022 (arm*-*-*): Do not set obsolete build_rdi_share variable.
1024 (*-*-freebsd* | *-*-kfreebsd*-gnu): Remove generic case, replace by ...
1025 (alpha*-*-freebsd* | alpha*-*-kfreebsd*-gnu)
1026 (i[34567]86-*-freebsd* | i[34567]86-*-kfreebsd*-gnu)
1027 (sparc*-*-freebsd* | sparc*-*-kfreebsd*-gnu): ... specific cases.
1028 (x86_64-*-freebsd* | x86_64-*-kfreebsd*-gnu): Re-sort.
1030 (xscale-*-*): Merge into arm*-*-* case.
1031 (fido-*-elf*): Merge into m68*-*-elf* case.
1032 (m68*-*-aout*, m68*-*-coff*, m68*-*-elf*, m68*-*-rtems*,
1033 m68*-*-uclinux*): Merge cases.
1034 (powerpc-*-linux*, powerpc64-*-linux*): Merge cases.
1035 (sh-*-coff*, sh-*-elf*): Merge into sh* case.
1037 2007-11-16 Ulrich Weigand <uweigand@de.ibm.com>
1039 * configure.tgt: Reformat main case statement.
1041 2007-11-16 Ulrich Weigand <uweigand@de.ibm.com>
1043 * configure.ac (hostfile, targetfile): Remove.
1044 (GDB_XM_FILE, GDB_TM_FILE): Do not define.
1045 (xm_h, tm_h): Likewise.
1046 (DEPRECATED_TM_FILE, XM_FILE): Do not substitute into Makefile.
1047 * configure, config.in: Regenerate.
1049 * Makefile.in (xm_h, tm_h): Remove. Update dependencies.
1050 (TAGS): Do not consider DEPRECATED_TM_FILE or XM_FILE.
1051 (clean, local-maintainer-clean): Do not remove xm.h or tm.h.
1052 * defs.h: Do not include "xm.h" or "tm.h".
1054 * gdbarch.sh (verify_gdbarch): Do not dump GDB_XM_FILE or GDB_TM_FILE.
1055 * gdbarch.c: Regenerate.
1057 * config/score/embed.mt: Remove obsolete comment.
1059 2007-11-16 Markus Deuling <deuling@de.ibm.com>
1061 * gdbarch.sh (cannot_fetch_register, cannot_store_register): Add gdbarch
1063 * gdbarch.{c,h}: Regenerate.
1065 * alpha-tdep.c (alpha_cannot_fetch_register)
1066 (alpha_cannot_store_register): Add gdbarch as parameter. Replace
1067 current_gdbarch by gdbarch.
1068 * cris-tdep.c (cris_cannot_fetch_register, cris_cannot_store_register)
1069 (crisv32_cannot_fetch_register)
1070 (crisv32_cannot_store_register): Likewise.
1071 * arch-utils.c (cannot_register_not): Likewise.
1072 * arch-utils.h (cannot_register_not): Likewise.
1073 * hppa-tdep.c (hppa32_cannot_store_register)
1074 (hppa32_cannot_store_register, hppa64_cannot_store_register)
1075 (hppa64_cannot_fetch_register): Likewise.
1076 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register)
1077 (mipsnbsd_cannot_store_register): Likewise.
1079 2007-11-16 Markus Deuling <deuling@de.ibm.com>
1081 * m32r-rom.c (m32r_supply_register): Use get_regcache_arch to get at
1082 the current architecture by regcache.
1083 * ppcnbsd-nat.c (ppcnbsd_supply_pcb): Likewise.
1084 * ppc-linux-nat.c (fetch_altivec_register, fetch_spe_register)
1085 (fetch_register, supply_vrregset, fetch_ppc_registers)
1086 (store_altivec_register, store_spe_register, store_register)
1087 (fill_vrregset, store_ppc_registers): Likewise.
1088 * ppcobsd-nat.c (ppcobsd_supply_pcb): Likewise.
1089 * win32-nat.c (do_win32_fetch_inferior_registers)
1090 (do_win32_store_inferior_registers): Likewise.
1091 * procfs.c (procfs_fetch_registers, procfs_store_registers): Likewise.
1092 * remote-m32r-sdi.c (m32r_fetch_registers)
1093 (m32r_store_registers): Likewise.
1094 * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register): Likewise.
1096 * trad-frame.c (trad_frame_alloc_saved_regs): Replace current_gdbarch by
1098 * user-regs.c (user_reg_map_name_to_regnum): Likewise.
1099 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call)
1100 (do_ppc_sysv_return_value, ppc64_sysv_abi_push_dummy_call)
1101 (ppc64_sysv_abi_return_value): Likewise.
1102 * m32c-tdep.c (m32c_register_reggroup_p): Likewise.
1103 * m2-lang.c (build_m2_types): Likewise.
1104 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache
1105 * ppcnbsd-tdep.c (ppcnbsd_sigtramp_cache_init): Likewise.
1106 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_cache): Likewise.
1107 * rs6000-tdep.c (ppc_dwarf2_frame_init_reg): Likewise.
1109 * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Use get_frame_arch to
1110 get at the current architecture by frame_info.
1111 * gcore.c (derive_stack_segment): Likewise.
1113 * shnbsd-nat.c (GETREGS_SUPPLIES): Add gdbarch parameter.
1114 (shnbsd_fetch_inferior_registers, shnbsd_store_inferior_registers): Add
1115 gdbarch to GETREGS_SUPPLIES call.
1117 2007-11-16 Ulrich Weigand <uweigand@de.ibm.com>
1119 * elfread.c (ST_REGULAR, ST_DYNAMIC, ST_SYNTHETIC): New defines.
1120 (elf_symtab_read): Rename DYNAMIC argument to TYPE. Do not access
1121 ELF-private symbol data when processing synthetic symbols. Use
1122 udata.p to get at size of ppc64 synthetic 'dot' symbols.
1123 (elf_symfile_read): Pass TYPE argument to elf_symtab_read.
1125 2007-11-15 Doug Evans <dje@google.com>
1127 * buildsym.h (subfiles): Move ...
1128 * buildsym.c (subfiles): ... to here and make static.
1130 * symmisc.c (maintenance_info_symtabs): Print linetable info.
1132 2007-11-15 Markus Deuling <deuling@de.ibm.com>
1134 * mipsnbsd-tdep.h (SIZEOF_STRUCT_REG, SIZEOF_STRUCT_FPREG): Remove
1136 2007-11-15 Markus Deuling <deuling@de.ibm.com>
1138 * arm-tdep.c (arm_prologue_this_id): Replace LOWEST_PC by its
1139 expression and use get_frame_arch to replace current_gdbarch by frame's
1141 * arm-tdep.h (LOWEST_PC): Remove
1143 2007-11-15 Vladimir Prus <vladimir@codesourcery.com>
1145 Apply const qualifier to some users of bp_location.
1146 * breakpoint.h (struct bpstats): Make
1147 the breakpoint_at field point at const bp_location.
1148 * breakpoint.c (bpstat_alloc): Accept const
1150 (breakpoint_here_p, breakpoint_inserted_here_p)
1151 (software_breakpoint_inserted_here_p)
1152 (breakpoint_thread_match, bpstat_stop_status)
1153 (read_memory_nobpt, bpstat_have_active_hw_watchpoints): Use
1154 const bp_location for iteration.
1155 (print_it_typical, print_bp_stop_message): Use
1156 const bp_location variable.
1158 2007-11-15 Vladimir Prus <vladimir@codesourcery.com>
1160 Make mark_breakpoints_out static.
1161 * breakpoint.h (mark_breakpoints_out): Remove
1163 * breakpoint.c (mark_breakpoints_out): Make static.
1165 2007-11-15 Vladimir Prus <vladimir@codesourcery.com>
1167 Prevent clear_command from directly modifying breakpoint list.
1168 * Makefile.in (breakpoint_h): Update dependency.
1169 * breakpoint.c (clear_command): Do not remove
1170 breakpoints from breakpoint_chain. Collect breakpoints
1171 to delete in a vector.
1172 * breakpoint.h (breakpoint_p): New typedef for pointer to
1173 breakpoint. Register vector of breakpoint_p.
1175 2007-11-15 Vladimir Prus <vladimir@codesourcery.com>
1177 Remove 'run_cleanup'.
1178 * defs.h (do_run_cleanups, make_run_cleanup): Remove
1180 * infcmd.c (run_command_1): Call clear_solib instead
1182 * jv-lang.c (java_rerun_cleanup): Remove, for lack of
1184 * solib.c (solib_cleanup_queued, do_clear_solib): Remove.
1185 (update_solib_lib): Don't setup run cleanup.
1186 (no_shared_libraries): Call clear_solib, not do_clear_solib.
1187 * utils.c (run_cleanup_chain, make_run_cleanup)
1188 (do_run_cleanups): Remove.
1190 2007-11-15 Vladimir Prus <vladimir@codesourcery.com>
1192 Remove CLEAR_SOLIB use.
1193 * corelow.c (core_close): Don't check for CLEAR_SOLIB.
1194 * infcmd.c (attach_command): Likewise.
1196 2007-11-14 Doug Evans <dje@google.com>
1198 * buildsym.c (start_subfile,start_symtab): Doc fixes.
1200 2007-11-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
1202 * tui/tui-data.c (tui_prev_win): Guard against NULL.
1204 2007-11-12 Markus Deuling <deuling@de.ibm.com>
1206 * gdbarch.sh (gdbarch_alloc): Replace current_gdbarch by gdbarch. Remove
1208 (verify_gdbarch, gdbarch_dump): Likewise.
1209 (do_read): Update comment.
1210 (addr_bit, bfd_arch_info, target_desc, long_long_bit, floatformat)
1211 (ptr_bit, name_of_malloc): Replace current_gdbarch by gdbarch.
1212 * gdbarch.{c,h}: Regenerate.
1214 2007-11-12 Markus Deuling <deuling@de.ibm.com>
1216 * xtensa-tdep.c (ARG_1ST): Replace ARGS_FIRST_REG by its expression.
1217 (ARGS_FIRST_REG): Remove.
1218 (areg_numer): New function.
1219 (xtensa_pseudo_register_read, xtensa_frame_prev_register)
1220 (xtensa_extract_return_value, xtensa_store_return_value)
1221 (xtensa_frame_cache): Replace AREG_NUMBER by areg_number.
1222 (AREG_NUMBER): Remove.
1223 (XTENSA_IS_ENTRY, ARG_NOF, ARG_1ST): Add gdbarch as parameter.
1224 (xtensa_frame_cache): Update use of XTENSA_IS_ENTRY.
1225 (xtensa_push_dummy_call): Update use of ARG_NOF.
1226 (extract_call_winsize): Add gdbarch as parameter. Replace
1227 current_gdbarch by gdbarch.
1228 (xtensa_extract_return_value, xtensa_store_return_value): Update call
1229 of extract_call_winsize.
1231 2007-11-10 Joel Brobecker <brobecker@adacore.com>
1233 * NEWS: Add entry for new set/show print frame-args command.
1235 2007-11-09 Kevin Buettner <kevinb@redhat.com>
1237 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Add missing
1238 register number to map. Adjust warning check and error/warning
1239 return value code to match expectations of this function's callers.
1241 2007-11-09 Joel Brobecker <brobecker@adacore.com>
1243 * stack.c (print_this_frame_argument_p): Handle arguments passed
1244 by reference properly.
1246 2007-11-09 Joel Brobecker <brobecker@adacore.com>
1248 * stack.c (print_frame_arguments_choices): New static global.
1249 (print_frame_arguments): Likewise.
1250 (print_this_frame_argument_p): New function.
1251 (print_frame_args): Print the argument value only when appropriate.
1252 (_initialize_task): Add new "set/show print frame-arguments" command.
1254 2007-11-09 Luis Machado <luisgpm@br.ibm.com>
1256 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Move
1257 saved_dabr_value assignment to the correct position.
1259 2007-11-09 Markus Deuling <deuling@de.ibm.com>
1261 * arch-utils.c (generic_convert_register_p): Add gdbarch as parameter.
1262 * arch-utils.h (generic_convert_register_p): Likewise.
1264 2007-11-09 Markus Deuling <deuling@de.ibm.com>
1266 * gdbarch.sh (convert_register_p): Add gdbarch as parameter.
1267 * ia64-tdep.c (ia64_convert_register_p): Likewise.
1268 * i387-tdep.c (i387_convert_register_p): Likewise.
1269 * i387-tdep.h (i387_convert_register_p): Likewise.
1270 * alpha-tdep.c (alpha_convert_register_p): Likewise.
1271 * gdbarch.{c,h}: Regenerate.
1273 * rs6000-tdep.c (rs6000_convert_register_p): Add gdbarch as parameter.
1274 Replace current_gdbarch by gdbarch.
1275 * mips-tdep.c (mips_convert_register_p): Likewise.
1276 * m68k-tdep.c (m68k_convert_register_p): Likewise.
1277 * i386-tdep.c (i386_convert_register_p): Likewise.
1279 2007-11-08 Aleksandar Ristovski <aristovski@qnx.com>
1281 * gdb_string.h: Include <strings.h>.
1283 2007-11-08 Vladimir Prus <vladimir@codesourcery.com>
1285 * breakpoint.c (break_command_1): Remove
1286 pending_bp parameter.
1287 (create_breakpoint): Likewise.
1288 (create_breakpoints): Likewise. Adjust call to
1290 (break_command_1): Likewise. Adjust call to
1292 (do_captured_breakpoint): Adjust call to
1294 (break_command, tbreak_command, hbreak_command)
1295 (stopin_command, stopat_command): Adjust call
1298 2007-11-07 Joseph Myers <joseph@codesourcery.com>
1299 Daniel Jacobowitz <dan@codesourcery.com>
1301 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Right-align
1302 struct values smaller than one doubleword; left-align those
1303 larger. Pass structs containing a single floating-point value in
1306 2007-11-07 Joseph Myers <joseph@codesourcery.com>
1307 Daniel Jacobowitz <dan@codesourcery.com>
1309 * gdbtypes.c (floatformats_ibm_long_double): New.
1310 * gdbtypes.h (floatformats_ibm_long_double): Declare.
1311 * ia64-tdep.c (floatformat_ia64_ext): Update for addition of
1313 * mips-tdep.c (n32n64_floatformat_always_valid,
1314 floatformat_n32n64_long_double_big, floatformats_n32n64_long):
1316 (mips_gdbarch_init): Use floatformats_ibm_long_double instead of
1317 floatformats_n32n64_long.
1318 * ppc-linux-tdep.c (ppc_linux_init_abi): Use 128-bit IBM long
1320 * doublest.c (convert_floatformat_to_doublest,
1321 convert_doublest_to_floatformat): Handle split floating-point
1323 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Handle IBM long
1325 (ppc64_sysv_abi_push_dummy_call): Likewise.
1326 (do_ppc_sysv_return_value): Handle IBM long double return.
1328 2007-11-07 Vladimir Prus <vladimir@codesourcery.com>
1330 Fix crash when a variable object being deleted
1331 has any of its children deleted previously.
1333 * varobj.c (delete_variable_1): Don't recurse
1334 into deleted children.
1336 2007-11-07 Markus Deuling <deuling@de.ibm.com>
1338 * gdbarch.sh (legacy_virtual_frame_pointer): Add gdbarch parameter.
1339 * gdbarch.{c,h}: Regenerate.
1340 * arch-utils.c (legacy_virtual_frame_pointer): Add gdbarch parameter.
1341 Replace current_gdbarch by gdbarch.
1342 * m32c-tdep.c (m32c_virtual_frame_pointer): Likewise.
1343 * mips-tdep.c (mips_virtual_frame_pointer): Likewise.
1344 * spu-tdep.c (spu_virtual_frame_pointer): Likewise.
1346 2007-11-07 Markus Deuling <deuling@de.ibm.com>
1348 * shnbsd-tdep.c (shnbsd_supply_gregset, shnbsd_collect_gregset): Use
1349 get_regcache_arch to get at the current architecture by regcache.
1350 * xstormy16-tdep.c (xstormy16_frame_prev_register): Use get_frame_arch
1351 to get at the current architecture by frame_info.
1352 * fbsd-nat.c (fbsd_make_corefile_notes): Use get_regcache_arch to get
1353 at the current architecture by regcache.
1354 * gnu-v3-abi.c (gnuv3_skip_trampoline): Use get_frame_arch to get at
1355 the current architecture by frame_info.
1356 (build_gdb_vtable_type): Replace current_gdbarch by gdbarch.
1357 * aix-thread.c (special_register_p): Add gdbarch as parameter.
1358 (fetch_regs_kernel_thread, store_regs_kernel_thread): Add gdbarch to
1359 caller of special_register_p.
1361 2007-11-07 Markus Deuling <deuling@de.ibm.com>
1363 * infcall.c (call_function_by_hand): Use get_frame_arch to get at the
1364 current architecture by frame_info.
1366 2007-11-07 Markus Deuling <deuling@de.ibm.com>
1368 * xtensa-tdep.h (SIZEOF_GREGSET, XTENSA_ELF_NGREG) Remove.
1370 2007-11-07 Markus Deuling <deuling@de.ibm.com>
1372 * s390-nat.c (supply_gregset, fill_gregset): Use get_regcache_arch to
1373 get at the current architecture by regcache.
1374 (SUBOFF): Add gdbarch to macro definition.
1376 2007-11-07 Markus Deuling <deuling@de.ibm.com>
1378 * gdbarch.sh (breakpoint_from_pc): Add gdbarch parameter.
1379 * gdbarch.{c,h}: Regenerate.
1381 * xtensa-tdep.c (xtensa_breakpoint_from_pc): Add gdbarch parameter.
1382 Replace current_gdbarch by gdbarch.
1383 * sh-tdep.c (sh_breakpoint_from_pc): Likewise.
1384 * sh64-tdep.c (sh64_breakpoint_from_pc): Likewise.
1385 * score-tdep.c (score_breakpoint_from_pc): Likewise.
1386 * mips-tdep.c (mips_breakpoint_from_pc): Likewise.
1387 * m32r-tdep.c (m32r_breakpoint_from_pc): Likewise.
1388 * iq2000-tdep.c (iq2000_breakpoint_from_pc): Likewise.
1389 * arm-tdep.c (arm_breakpoint_from_pc): Likewise.
1391 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Add gdbarch
1393 * vax-tdep.c (vax_breakpoint_from_pc): Likewise.
1394 * v850-tdep.c (v850_breakpoint_from_pc): Likewise.
1395 * spu-tdep.c (spu_breakpoint_from_pc): Likewise.
1396 * sparc-tdep.c (sparc_breakpoint_from_pc): Likewise.
1397 * s390-tdep.c (s390_breakpoint_from_pc): Likewise.
1398 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Likewise.
1399 * mt-tdep.c (mt_breakpoint_from_pc): Likewise.
1400 * mep-tdep.c (mep_breakpoint_from_pc): Likewise.
1401 * m88k-tdep.c (m88k_breakpoint_from_pc): Likewise.
1402 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Likewise.
1403 * m32c-tdep.c (m32c_breakpoint_from_pc): Likewise.
1404 * ia64-tdep.c (ia64_breakpoint_from_pc): Likewise.
1405 * i386-tdep.c (i386_breakpoint_from_pc): Likewise.
1406 * hppa-tdep.c (hppa_breakpoint_from_pc): Likewise.
1407 * h8300-tdep.c (h8300_breakpoint_from_pc): Likewise.
1408 * frv-tdep.c (frv_breakpoint_from_pc): Likewise.
1409 * cris-tdep.c (cris_breakpoint_from_pc): Likewise.
1410 * avr-tdep.c (avr_breakpoint_from_pc): Likewise.
1411 * alpha-tdep.c (alpha_breakpoint_from_pc): Likewise.
1412 * m68k-tdep.c (m68k_local_breakpoint_from_pc): Likewise.
1414 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Add gdbarch parameter.
1415 Replace current_gdbarch by gdbarch.
1416 (rs6000_software_single_step): Use get_frame_arch to get at the
1417 current architecture by frame_info. Add gdbarch to
1418 rs6000_breakpoint_from_pc call.
1420 2007-11-07 Markus Deuling <deuling@de.ibm.com>
1422 * frv-tdep.c (frv_register_name, frv_check_watch_resources): Replace
1423 macro CURRENT_VARIANT by its expression.
1424 (CURRENT_VARIANT): Remove.
1425 (frv_check_watch_resources): Add gdbarch parameter.
1427 2007-11-07 Markus Deuling <deuling@de.ibm.com>
1429 * MAINTAINERS (Write After Approval): Add self.
1431 2007-11-05 Ulrich Weigand <uweigand@de.ibm.com>
1433 * features/rs6000/power-core.xml: Use uint32 as register type.
1434 * features/rs6000/power64-core.xml: Use uint64/uint32 as register type.
1435 * features/rs6000/powerpc-32.c: Regenerate.
1436 * features/rs6000/powerpc-403.c: Regenerate.
1437 * features/rs6000/powerpc-403gc.c: Regenerate.
1438 * features/rs6000/powerpc-505.c: Regenerate.
1439 * features/rs6000/powerpc-602.c: Regenerate.
1440 * features/rs6000/powerpc-603.c: Regenerate.
1441 * features/rs6000/powerpc-604.c: Regenerate.
1442 * features/rs6000/powerpc-64.c: Regenerate.
1443 * features/rs6000/powerpc-7400.c: Regenerate.
1444 * features/rs6000/powerpc-750.c: Regenerate.
1445 * features/rs6000/powerpc-860.c: Regenerate.
1446 * features/rs6000/powerpc-e500.c: Regenerate.
1448 2007-11-05 Joel Brobecker <brobecker@adacore.com>
1450 * breakpoint.c (set_raw_breakpoint_without_location): Make static.
1452 2007-11-05 Joel Brobecker <brobecker@adacore.com>
1454 * breakpoint.h (create_solib_load_event_breakpoint)
1455 (create_solib_unload_event_breakpoint)
1456 (create_fork_event_catchpoint, create_vfork_event_catchpoint)
1457 (create_exec_event_catchpoint): Delete declaration.
1458 * breakpoint.c (create_solib_load_event_breakpoint)
1459 (solib_load_unload_1, create_solib_unload_event_breakpoint): Delete.
1460 (create_fork_event_catchpoint, create_vfork_event_catchpoint)
1461 (create_exec_event_catchpoint): Make static.
1463 2007-11-05 Joel Brobecker <brobecker@adacore.com>
1465 * breakpoint.h (set_breakpoint_sal): Remove declaration.
1466 * breakpoint.c (set_breakpoint_sal): Delete.
1468 2007-11-05 Joel Brobecker <brobecker@adacore.com>
1470 * buildsym.c (finish_block): Remove "#if 1"/"#endif" brackets.
1471 (make_blockvector): Likewise. Remove FIXME comment.
1473 2007-11-05 Luis Machado <luisgpm@br.ibm.com>
1475 * printcmd.c: (printf_command): Add support for new DFP
1476 modifiers %H, %D and %DD.
1477 * configure.ac: Add check for DECFLOAT printf support.
1478 * configure: Regenerated.
1480 2007-11-02 Ulrich Weigand <uweigand@de.ibm.com>
1482 * gdbtypes.h (struct cplus_struct_type): Remove runtime_ptr member.
1483 (TYPE_RUNTIME_PTR, TYPE_VTABLE, TYPE_HAS_VTABLE,
1484 TYPE_PRIMARY_BASE, TYPE_VIRTUAL_BASE_LIST): Remove macros.
1485 (HP_ACC_VFUNC_START, HP_ACC_VBASE_START, HP_ACC_TYPEINFO_OFFSET,
1486 HP_ACC_TOP_OFFSET_OFFSET): Likewise.
1487 (has_vtable, primary_base_class, virtual_base_list_length,
1488 virtual_base_list_length_skip_primaries, virtual_base_index,
1489 virtual_base_index_skip_primaries, class_index_in_primary_list,
1490 count_virtual_fns): Remove prototypes.
1491 * gdbtypes.c (has_vtable, primary_base_class, current_vbase_list,
1492 virtual_base_list_aux, virtual_base_list, virtual_base_list_length,
1493 virtual_base_list_length_skip_primaries, virtual_base_index,
1494 virtual_base_index_skip_primaries, class_index_in_primary_list,
1495 count_virtual_fns): Remove.
1497 * cp-valprint.c (cp_print_hpacc_virtual_table_entries): Remove.
1498 (hpacc_vtbl_ptr_name, hpacc_vtbl_ptr_type_name): Remove.
1499 (cp_print_value_fields): Remove support for HP aCC vtables.
1500 (cp_print_value): Likewise.
1501 * c-typeprint.c (c_type_print_base): Likewise.
1503 * value.h (find_rt_vbase_offset): Remove prototype.
1504 * valops.c (find_rt_vbase_offset): Remove.
1505 (search_struct_method): Remove support for HP aCC vtables.
1506 (find_method_list): Likewise.
1508 2007-11-02 Ulrich Weigand <uweigand@de.ibm.com>
1510 * language.h (struct language_defn): Remove la_builtin_type_vector
1511 and string_char_type members.
1512 * language.c (language_string_char_type): No longer consult
1513 la->string_char_type.
1514 (language_lookup_primitive_type_by_name): No longer consult
1515 current_language->la_builtin_type_vector.
1517 * language.c (unknown_language_defn, auto_language_defn,
1518 local_language_defn): Adapt initializer.
1519 * ada-lang.c (ada_language_defn): Likewise.
1520 * c-lang.c (c_language_defn, cplus_language_defn, asm_language_defn,
1521 minimal_language_defn): Likewise.
1522 * f-lang.c (f_language_defn): Likewise.
1523 * jv-lang.c (java_language_defn): Likewise.
1524 * m2-lang.c (m2_language_defn): Likewise.
1525 * objc-lang.c (objc_language_defn): Likewise.
1526 * p-lang.c (pascal_language_defn): Likewise.
1527 * scm-lang.c (scm_language_defn): Likewise.
1529 2007-11-02 Markus Deuling <deuling@de.ibm.com>
1531 * frame.c (frame_id_inner): Add gdbarch parameter. Replace
1532 current_gdbarch by gdbarch.
1533 (frame_find_by_id, get_prev_frame_1): Use get_frame_arch to get at the
1534 current architecture by frame_info.
1535 * frame.h (frame_id_inner): Add gdbarch parameter.
1536 * stack.c (return_command): Use get_frame_arch to get at the current
1537 architecture by frame_info. Update call of frame_id_inner.
1538 * infrun.c (handle_inferior_event): Likewise.
1539 * dummy-frame.c (dummy_frame_push): Use get_regcache_arch to get at the
1540 current architecture by regcache. Update call of frame_id_inner.
1542 2007-11-02 Markus Deuling <deuling@de.ibm.com>
1544 * gdbarch.sh (register_name): Add gdbarch parameter.
1545 * gdbarch.{c,h}: Regenerate.
1547 * target-descriptions.c (tdesc_register_name): Add gdbarch parameter.
1548 (tdesc_register_name): Replace current_gdbarch by gdbarch.
1549 * target-descriptions.h (tdesc_register_name): Add gdbarch parameter.
1551 * xstormy16-tdep.c (xstormy16_register_name): Add gdbarch parameter.
1552 * vax-tdep.c (vax_register_name): Add gdbarch parameter.
1553 * spu-tdep.c (spu_register_name): Add gdbarch parameter.
1554 * s390-tdep.c (s390_register_name): Add gdbarch parameter.
1555 * mt-tdep.c (mt_register_name): Add gdbarch parameter.
1556 (mt_registers_info): Replace current_gdbarch by gdbarch.
1557 (mt_register_reggroup_p): Add gdbarch to mt_register_name call.
1558 * mips-tdep.c (mips_register_name): Add gdbarch parameter. Replace
1559 current_gdbarch by gdbarch.
1560 (mips_register_name): Add gdbarch to tdesc_register_name call.
1561 * mep-tdep.c (mep_register_name): Add gdbarch parameter. Replace
1562 current_gdbarch by gdbarch.
1563 (mep_register_reggroup_p): Add gdbarch to mep_register_name call.
1564 * m32c-tdep.c (m32c_register_name): Add gdbarch parameter. Replace
1565 current_gdbarch by gdbarch.
1566 * m88k-tdep.c (m88k_register_name): Add gdbarch parameter.
1567 * m68k-tdep.c (m68k_register_name): Add gdbarch parameter.
1568 * m32r-tdep.c (m32r_register_name): Add gdbarch parameter.
1569 (m32r_frame_unwind_cache): Use get_frame_arch to get at the current
1570 architecture by frame_info.
1571 * iq2000-tdep.c (iq2000_register_name): Add gdbarch parameter.
1572 * ia64-tdep.c (ia64_register_name): Add gdbarch parameter.
1573 * hppa-tdep.c (hppa32_register_name, hppa64_register_name): Add gdbarch
1575 * h8300-tdep.c (h8300_register_name, h8300s_register_name)
1576 (h8300sx_register_name): Add gdbarch parameter.
1577 * cris-tdep.c (cris_register_name, crisv32_register_name): Add
1578 gdbarch parameter. Replace current_gdbarch by gdbarch.
1579 (cris_gdbarch_init): Replace current_gdbarch by gdbarch (comment).
1580 * avr-tdep.c (avr_register_name): Add gdbarch parameter.
1581 * arm-tdep.c (arm_register_name): Add gdbarch paramete
1582 * amd64-tdep.c (amd64_register_name): Add gdbarch parameter. Update
1584 * amd64-tdep.h (amd64_register_name): Add gdbarch parameter.
1585 * amd64-linux-tdep.c (amd64_linux_register_name): Add gdbarch parameter.
1586 * alpha-tdep.c (alpha_register_name): Add gdbarch parameter.
1587 (alpha_cannot_fetch_register, alpha_cannot_store_register): Update call
1588 of alpha_register_name.
1589 * frv-tdep.c (frv_register_name): Add gdbarch parameter.
1590 * i386-tdep.c (i386_register_name): Add gdbarch parameter. Replace
1591 current_gdbarch by gdbarch.
1592 (i386_register_type): Replace ?current_gdbarch by gdbarch.
1593 * i386-tdep.h (i386_register_name): Add gdbarch parameter.
1594 * i386-linux-tdep.c (i386_linux_register_name): Add gdbarch parameter.
1596 * m68hc11-tdep.c (m68hc11_register_name): Add gdbarch parameter.
1597 (m68hc11_register_reggroup_p): Add gdbarch to call of
1598 m68hc11_register_name.
1599 * mn10300-tdep.c (mn10300_generic_register_name, am33_register_name)
1600 (am33_2_register_name): Add gdbarch parameter.
1601 (mn10300_frame_unwind_cache): Use get_frame_arch to get at the current
1602 architecture by frame_info.
1603 (mn10300_dump_tdep): Replace current_gdbarch by gdbarch.
1604 * rs6000-tdep.c (rs6000_register_name): Add gdbarch parameter. Replace
1605 current_gdbarch by gdbarch.
1606 * score-tdep.c (score_register_name): Add gdbarch parameter.
1607 (score_return_value, score_push_dummy_call): Replace current_gdbarch
1609 * sh64-tdep.c (sh64_register_name): Add gdbarch parameter.
1610 (sh64_compact_reg_base_num, sh64_register_convert_to_virtual)
1611 (sh64_register_convert_to_raw, sh64_fv_reg_base_num)
1612 (sh64_dr_reg_base_num, sh64_fpp_reg_base_num): Add gdbarch parameter
1613 and update caller. Replace current_gdbarch by gdbarch.
1614 (sh64_extract_return_value, sh64_store_return_value): Use
1615 get_regcache_arch to get at the current architecture by regcache.
1616 * sh-tdep.c (sh_sh_register_name, sh_sh3_register_name)
1617 (sh_sh3e_register_name, sh_sh2e_register_name, sh_sh2a_register_name)
1618 (sh_sh2a_nofpu_register_name, sh_sh_dsp_register_name)
1619 (sh_sh3_dsp_register_name, sh_sh4_register_name)
1620 (sh_sh4_nofpu_register_name, sh_sh4al_dsp_register_name): Add gdbarch
1622 (fv_reg_base_num, dr_reg_base_num, sh_justify_value_in_reg)
1623 (sh_next_flt_argreg): Add gdbarch parameter and update caller. Replace
1624 current_gdbarch by gdbarch.
1625 (sh_extract_return_value_fpu, sh_store_return_value_fpu): Use
1626 get_regcache_arch to get at the current architecture by regcache.
1627 * sparc-tdep.c (sparc32_register_name): Add gdbarch parameter.
1628 * sparc64-tdep.c (sparc64_register_name): Add gdbarch parameter.
1629 * v850-tdep.c (v850_register_name, v850e_register_name): Add gdbarch
1631 (v850_unwind_sp, v850_unwind_pc): Replace current_gdbarch by gdbarch.
1632 * xtensa-tdep.c (xtensa_register_name): Add gdbarch parameter. Replace
1633 current_gdbarch by gdbarch.
1634 (xtensa_pseudo_register_read, xtensa_pseudo_register_write)
1635 (xtensa_frame_prev_register): Add gdbarch parameter to
1636 xtensa_register_name call.
1638 2007-10-31 Ulrich Weigand <uweigand@de.ibm.com>
1640 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Fall back to
1641 find_solib_trampoline_target if PC is not in .plt section.
1643 2007-10-31 Ulrich Weigand <uweigand@de.ibm.com>
1645 * elfread.c (elf_symtab_read): When constructing a solib trampoline
1646 minimal symbol from an undefined dynamic symbol, use proper section.
1648 2007-10-31 Markus Deuling <deuling@de.ibm.com>
1650 * arm-linux-nat.c (fetch_register, fetch_regs): Use get_regcache_arch
1651 to get at the current architecture by regcache.
1653 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1655 * libunwind-frame.c (libunwind_frame_sniffer)
1656 libunwind_frame_prev_register, libunwind_sigtramp_frame_sniffer)
1657 (libunwind_frame_cache): Use get_frame_arch to get at the current
1658 architecture by frame_info.
1659 (libunwind_get_reg_special): Replace current_gdbarch by gdbarch.
1661 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1663 * iq2000-tdep.c (iq2000_frame_prev_register): Use get_frame_arch to get
1664 at the current architecture by frame_info.
1666 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1668 * inf-child.c (inf_child_fetch_inferior_registers): Use
1669 get_regcache_arch to get at the current architecture by regcache.
1671 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1673 * inf-ptrace.c (inf_ptrace_fetch_registers)
1674 (inf_ptrace_fetch_register, inf_ptrace_store_register)
1675 (inf_ptrace_store_registers): Use get_regcache_arch to get at the
1676 current architecture by regcache.
1678 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1680 * hpux-thread.c (hpux_thread_fetch_registers)
1681 (hpux_thread_store_registers): Use get_regcache_arch to get at the
1682 current architecture by regcache.
1684 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1686 * hppa-tdep.c (hppa_frame_cache): Use get_frame_arch to get at the
1687 current architecture by frame_info.
1689 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1691 * go32-nat.c (fetch_register, go32_fetch_registers, store_register)
1692 (go32_store_registers): Use get_regcache_arch to get at the current
1693 architecture by regcache.
1695 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1697 * gdbtypes.c (gdbtypes_post_init): Replace current_gdbarch by gdbarch.
1699 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1701 * frv-linux-tdep.c (frv_linux_sigtramp_frame_cache): Use get_frame_arch
1702 to get at the current architecture by frame_info.
1704 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1706 * f-lang.c (build_fortran_types): Replace current_gdbarch by gdbarch.
1708 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1710 * core-regset.c (fetch_core_registers): Use get_regcache_arch to get at
1711 the current architecture by regcache.
1713 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1715 * corelow.c (get_core_registers): Use get_regcache_arch to get at the
1716 current architecture by regcache.
1718 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1720 * bsd-uthread.c (bsd_uthread_fetch_registers)
1721 (bsd_uthread_store_registers): Use get_regcache_arch to get at the
1722 current architecture by regcache.
1724 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1726 * avr-tdep.c (avr_frame_unwind_cache, avr_frame_prev_register): Use
1727 get_frame_arch to get at the current architecture by frame_info.
1729 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1731 * arm-tdep.c (arm_get_next_pc): Replace current_gdbarch by gdbarch.
1733 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1735 * armnbsd-nat.c (arm_supply_gregset, fetch_register, store_register)
1736 (store_regs): Use get_regcache_arch to get at the current architecture
1739 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1741 * arm-linux-tdep.c (arm_linux_supply_gregset): Use get_regcache_arch
1742 to get at the current architecture by regcache.
1744 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1746 * alphabsd-nat.c (alphabsd_fetch_inferior_registers)
1747 (alphabsd_store_inferior_registers): Use get_regcache_arch to get at
1748 the current architecture by regcache.
1750 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1752 * ada-lang.c (ada_language_arch_info): Replace current_gdbarch by
1755 2007-10-30 Daniel Jacobowitz <dan@codesourcery.com>
1757 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Check the selected
1758 soft float and vector ABIs. Support the generic vector ABI for
1760 (do_ppc_sysv_return_value): Likewise. Correct argument types and
1762 (ppc64_sysv_abi_push_dummy_call): Assert that floating point is
1764 * ppc-tdep.h (enum powerpc_vector_abi): New.
1765 (struct gdbarch_tdep): Add soft_float and vector_abi.
1766 * rs6000-tdep.c (setpowerpccmdlist, showpowerpccmdlist)
1767 (powerpc_soft_float_global, powerpc_vector_strings)
1768 (powerpc_vector_abi_global, powerpc_vector_abi_string): New.
1769 (rs6000_gdbarch_init): Check for soft-float and vector ABI markings.
1770 (set_powerpc_command, show_powerpc_command, powerpc_set_soft_float)
1771 (powerpc_set_vector_abi): New.
1772 (_initialize_rs6000_tdep): Register "set powerpc" and "show powerpc"
1774 * Makefile.in (elf_ppc_h): New.
1775 (rs6000-tdep.o): Update.
1777 2007-10-29 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
1779 * ppc-linux-tdep.c (ppc32_linux_reg_offsets): Corrected
1780 swapped offsets and VRSAVE offset.
1781 (ppc64_linux_reg_offsets): Corrected swapped offsets.
1782 (ppc32_linux_vrregset): Added.
1783 (ppc_linux_regset_from_core_section): Added support for
1784 .reg-ppc-vmx section.
1785 * ppc-tdep.h (ppc_altivec_support_p): Declare.
1786 (ppc_supply_vrregset): Declare.
1787 (ppc_collect_vrregset): Declare.
1788 * rs6000-tdep.c (ppc_altivec_support_p): Added.
1789 (ppc_supply_vrregset): Added.
1790 (ppc_collect_vrregset): Added.
1791 * corelow.c (get_core_registers): Added support for
1792 .reg-ppc-vmx section.
1794 2007-10-29 Joel Brobecker <brobecker@adacore.com>
1798 2007-10-26 Jim Blandy <jimb@codesourcery.com>
1800 * ax-gdb.h (expr_to_address_and_size): Delete declaration for
1803 * tracepoint.c (tracepoint_operation): Report the deletion event
1804 after we have unlinked the tracepoint from the list, and use the
1805 proper tracepoint number.
1807 * ax-gdb.c (expr_to_agent): Delete unused function.
1808 (expr_to_address_and_size): Delete #if 0'd function.
1809 * ax-gdb.h (expr_to_agent): Delete declaration.
1811 * ax-gdb.c (gen_cast): Remove redundant assignment to
1812 value->type. Doc fix.
1814 * ax-general.c (gen_traced_pop, gen_int_literal)
1815 (gen_usual_arithmetic): Check for typedefs.
1817 2007-10-26 Joel Brobecker <brobecker@adacore.com>
1819 * parse.c (prefixify_expression): Minor reformatting.
1821 2007-10-25 Daniel Jacobowitz <dan@codesourcery.com>
1823 * version.in: Use dot instead of dash.
1825 2007-10-25 Daniel Jacobowitz <dan@codesourcery.com>
1827 * linux-thread-db.c (check_for_thread_db): Only print if info_verbose.
1829 2007-10-25 Pedro Alves <pedro_alves@portugalmail.pt>
1831 * memory-map.c (parse_memory_map): Don't use an empty struct
1834 2007-10-25 Pedro Alves <pedro_alves@portugalmail.pt>
1836 * signals/signals.c (signals): Update pointer to enum
1837 target_signal declaration.
1839 2007-10-25 Wu Zhou <woodzltc@cn.ibm.com>
1840 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
1841 Jim Blandy <jimb@codesourcery.com>
1843 * dwarf2read.c (read_partial_die): check the value
1844 of DW_AT_calling_convention in Fortran programs.
1846 2007-10-25 Wu Zhou <woodzltc@cn.ibm.com>
1847 Thiago Jung Bauermann <bauerman@br.ibm.com>
1849 * c-exp.y (YYSTYPE): Add typed_val_decfloat for decimal
1850 floating point in YYSTYPE union.
1851 (DECFLOAT) Add token and expression element handling code.
1852 (parse_number): Parse DFP constants, which end with suffix 'df',
1853 'dd' or 'dl'. Return DECFLOAT.
1854 * eval.c (evaluate_subexp_standard): Call value_from_decfloat to
1856 * expression.h (enum exp_opcode): Add an opcode (OP_DECFLOAT)
1858 (union exp_element): Add decfloatconst to represent DFP
1859 elements, which is 16 bytes by default.
1860 * parse.c (write_exp_elt_decfloatcst): New function to write a
1861 decimal float const into the expression.
1862 (operator_length_standard): Set operator length for OP_DECFLOAT
1864 * parser-defs.h (write_exp_elt_decfloatcst): Prototype.
1865 * valarith.c (value_neg): Add code to handle the negation
1866 operation of DFP values.
1867 * value.c (value_from_decfloat): New function to get the value
1868 from a decimal floating point.
1869 * value.h (value_from_decfloat): Prototype.
1871 2007-10-25 Wu Zhou <woodzltc@cn.ibm.com>
1872 Thiago Jung Bauermann <bauerman@br.ibm.com>
1874 * c-lang.c (c_create_fundamental_type): Create fundamental
1876 * c-typeprint.c (c_type_print_varspec_prefix): Add
1877 TYPE_CODE_DECFLOAT to no prefix needed case.
1878 (c_type_print_varspec_suffix): Add TYPE_CODE_DECFLOAT to no
1880 * c-valprint.c (c_val_print): Call print_decimal_floating to
1882 * dwarf2read.c (read_base_type): Read DW_ATE_decimal_float
1883 attribute code and return TYPE_CODE_DECFLOAT.
1884 (dwarf_base_type): Set dwarf2_fundamental_type for DFP values.
1885 * gdbtypes.c (gdbtypes_post_init): Initialize builtin_decfloat,
1886 builtin_decdouble and builtin_declong.
1887 * gdbtypes.h (enum type_code): Add TYPE_CODE_DECFLOAT as a
1889 (FT_DECFLOAT, FT_DBL_PREC_DECFLOAT, FT_EXT_PREC_DECFLOAT): New
1890 types, for decimal floating point.
1891 (FT_NUM_MEMBERS): Increment, new types added.
1892 (struct builtin_type): Add builtin_decfloat, builtin_decdouble
1893 and builtin_declong.
1894 * valprint.c (print_decimal_floating): New function to print DFP
1896 * value.h (print_decimal_floating): Prototype.
1898 2007-10-25 Wu Zhou <woodzltc@cn.ibm.com>
1899 Thiago Jung Bauermann <bauerman@br.ibm.com>
1901 * Makefile.in (LIBDECNUMBER_DIR, LIBDECNUMBER, LIBDECNUMBER_SRC
1902 LIBDECNUMBER_CFLAGS): New macros for libdecnumber.
1903 (INTERNAL_CFLAGS_BASE): Add LIBDECNUMBER_CFLAGS in.
1904 (INSTALLED_LIBS): Add -ldecnumber in.
1905 (CLIBS): Add LIBDECNUMBER in.
1906 (decimal128_h, decimal64_h, decimal32_h): New macros for decimal
1908 (dfp_h): New macros for decimal floating point.
1909 (dfp.o): New target.
1910 (COMMON_OBS): Add dfp.o in.
1911 (c-exp.o): Add dfp_h as dependency.
1912 (valprint.o): Add dfp_h as dependency.
1913 (value.o): Add dfp_h as dependency.
1914 * dfp.h: New header file for decimal floating point support in
1916 * dfp.c: New source file for decimal floating point support in
1917 GDB. Implement decimal_from_string and decimal_to_string based
1918 on libdecnumber API.
1919 * configure.ac: Add AC_C_BIGENDIAN test.
1920 * config.in, configure: Regenerate.
1922 2007-10-25 David Ung <davidu@mips.com>
1923 Maciej W. Rozycki <macro@mips.com>
1926 * infcmd.c (registers_info): Check for a user register before
1927 calling target's gdbarch_print_registers_info(). If found to be
1928 so, extract the implicit value of user register and call
1929 print_scalar_formatted().
1930 * Makefile.in: (infcmd.o): Add $(user_regs_h).
1932 2007-10-25 Joel Brobecker <brobecker@adacore.com>
1934 * NEWS: Document status of hppa64-hpux support.
1936 2007-10-24 Ulrich Weigand <uweigand@de.ibm.com>
1938 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets): Call
1939 set_solib_ops to install SVR4 operations.
1940 (_initialize_svr4_solib): Do not set current_target_so_ops.
1942 * config/i386/i386gnu.mh (NATDEPFILES): Move solib.o, solib-svr4.o ...
1943 * config/i386/i386gnu.mt (TDEPFILES): ... to here.
1945 2007-10-24 Ulrich Weigand <uweigand@de.ibm.com>
1947 * solib-svr4.c (legacy_svr4_fetch_link_map_offsets_hook): Remove.
1948 (solib_svr4_init): Initialize fetch_link_map_offsets to NULL.
1949 * solib-svr4.h (legacy_svr4_fetch_link_map_offsets_hook): Remove.
1950 * solib-legacy.c: Remove file.
1952 * config/alpha/alpha-linux.mt (TDEPFILES): Remove solib-legacy.o.
1953 * config/arm/linux.mt (TDEPFILES): Likewise.
1954 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
1955 * config/ia64/linux.mt (TDEPFILES): Likewise.
1956 * config/m32r/linux.mt (TDEPFILES): Likewise.
1957 * config/powerpc/linux.mt (TDEPFILES): Likewise.
1958 * config/s390/s390.mt (TDEPFILES): Likewise.
1960 * alpha-linux-tdep.c (alpha_linux_init_abi): Call
1961 set_solib_svr4_fetch_link_map_offsets.
1962 * i386gnu-tdep.c (i386gnu_init_abi): Likewise.
1963 * ia64-linux-tdep.c (ia64_linux_init_abi): Likewise.
1965 * i386gnu-tdep.c: Include "solib-svr4.h".
1966 * Makefile.in: Update dependencies.
1968 2007-10-24 Ulrich Weigand <uweigand@de.ibm.com>
1970 * i386-nto-tdep.c: Include "solib.h".
1971 (i386nto_init_abi): Use set_solib_ops instead of overwriting
1972 current_target_so_ops members.
1973 * solist.h (TARGET_SO_RELOCATE_SECTION_ADDRESSES): Remove.
1974 (TARGET_SO_FIND_AND_OPEN_SOLIB): Remove.
1975 (TARGET_SO_IN_DYNSYM_RESOLVE_CODE): Remove.
1976 * Makefile.in: Update dependencies.
1978 2007-10-24 Ulrich Weigand <uweigand@de.ibm.com>
1980 * arm-wince-tdep.c: Include "solib.h" and "solib-target.h".
1981 (arm_wince_init_abi): Call set_solib_ops.
1982 * i386-cygwin-tdep.c: Include "solib.h" and "solib-target.h".
1983 (i386_cygwin_init_abi): Call set_solib_ops.
1984 * solib-target.c: Include "solib-target.h".
1985 (solib_target_so_ops): Make global.
1986 (_initialize_solib_target): Do not set current_target_so_ops.
1987 * solib-target.h: New file.
1988 * Makefile.in: Update dependencies.
1990 2007-10-24 Ulrich Weigand <uweigand@de.ibm.com>
1992 * mips-irix-tdep.c: Include "gdb_string.h", "solib.h", "solib-irix.h".
1993 (mips_irix_init_abi): Call set_solib_ops.
1994 * solib-irix.c: Include "solib.h" and "solib-irix.h".
1995 (irix_so_ops): Make global.
1996 (_initialize_irix_solib): Do not set current_target_so_ops.
1997 * solib-irix.h: New file.
1998 * Makefile.in: Update dependencies.
2000 2007-10-24 Ulrich Weigand <uweigand@de.ibm.com>
2002 * configure.tgt: Remove hppa*64*-*-hpux11* special case.
2003 * config/pa/hppa64.mt: Delete file.
2004 * config/pa/hppahpux.mt (MT_CFLAGS): Remove.
2005 (TDEPFILES): Move somread.o to ...
2006 * config/pa/hpux.mh (NATDEPFILES): ... here.
2008 * configure.ac: Add check for elf_hp.h header.
2009 Search libdl and libxpdl for dlgetmodinfo.
2010 * config.in, configure: Regenerate.
2011 * solib-pa64.c: Conditionalize compilation on #ifdef HAVE_ELF_HP_H
2012 instead of #ifndef PA_SOM_ONLY. Include "solib.h".
2013 (pa64_solib_select): Take gdbarch instead of tdep argument. Call
2014 set_solib_ops instead of modifying current_target_so_ops.
2015 * solib-pa64.h (pa64_solib_select): Update prototype.
2016 * solib-som.c: Remove include of "som.h". Include "solib.h".
2017 (som_solib_select): Take gdbarch instead of tdep argument. Call
2018 set_solib_ops instead of modifying current_target_so_ops.
2019 * solib-som.h (som_solib_select): Update prototype.
2020 * hppa-hpux-tdep.c (hppa_hpux_som_init_abi): Pass gdbarch instead
2021 of tdep to som_solib_select call.
2022 (hppa_hpux_elf_init_abi): Pass gdbarch instead of tdep to
2023 pa64_solib_select call.
2024 * Makefile.in: Update dependencies.
2026 2007-10-24 Ulrich Weigand <uweigand@de.ibm.com>
2028 * frv-tdep.c: Include "solib.h".
2029 (frv_gdbarch_init): Call set_solib_ops.
2030 * frv-tdep.h (struct target_so_ops): Add forward reference.
2031 (frv_so_ops): Add extern declaration.
2032 * solib-frv.c (frv_so_ops): Make global.
2033 (_initialize_frv_solib): Do not set current_target_so_ops.
2034 * Makefile.in: Update dependencies.
2036 2007-10-24 Ulrich Weigand <uweigand@de.ibm.com>
2038 * solib.c (solib_global_lookup): Use solib_ops instead of global
2039 current_target_so_ops.
2041 2007-10-24 Ulrich Weigand <uweigand@de.ibm.com>
2043 * config/frv/frv.mt (DEPRECATED_TM_FILE): Remove.
2044 * config/frv-tm-frv.h: Delete file.
2046 2007-10-24 Daniel Jacobowitz <dan@codesourcery.com>
2048 * NEWS: Mention gdbserver support for non-libthread_db operation.
2050 2007-10-24 Daniel Jacobowitz <dan@codesourcery.com>
2052 * amd64-tdep.c (amd64_convert_register_p): Delete.
2053 (amd64_init_abi): Use i387_convert_register_p.
2054 * alpha-tdep.c (alpha_convert_register_p): Return zero for
2056 (alpha_register_to_value, alpha_value_to_register): Do not handle
2058 * i386-tdep.c (i386_convert_register_p): Use i387_convert_register_p.
2059 * i387-tdep.c (i387_convert_register_p): New.
2060 (i387_register_to_value, i387_value_to_register): Update comments.
2061 * i387-tdep.h (i387_convert_register_p): Declare.
2062 * ia64-tdep.c (ia64_convert_register_p): Return zero for
2063 builtin_type_ia64_ext.
2064 (ia64_gdbarch_init): Do not initialize builtin_type_ia64_ext here.
2065 (_initialize_ia64_tdep): Initialize builtin_type_ia64_ext here.
2066 * m68k-tdep.c (m68k_convert_register_p): Return zero for
2067 builtin_type_m68881_ext.
2068 (m68k_register_to_value, m68k_value_to_register): Update comments.
2070 2007-10-24 Nathan Sidwell <nathan@codesourcery.com>
2072 * target-memory.c (claim_memory): Propagate baton for split memory
2075 2007-10-24 Pedro Alves <pedro_alves@portugalmail.pt>
2078 * sol-thread.c (sol_thread_fetch_registers): Work around gcc 3.4
2081 2007-10-24 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
2083 * symtab.c (find_line_symtab): scan through psymtabs
2084 when exact_match is zero.
2086 2007-10-23 Atsushi Nemoto <anemo@mba.ocn.ne.jp>
2088 * mips-tdep.c (LL_OPCODE, LLD_OPCODE, SC_OPCODE, SCD_OPCODE): Define.
2089 (deal_with_atomic_sequence): New.
2090 (mips_software_single_step): Use it.
2092 2007-10-23 Daniel Jacobowitz <dan@codesourcery.com>
2095 * configure.ac: Modify $LIBINTL before the BFD check.
2096 * configure: Regenerated.
2098 2007-10-23 Joel Brobecker <brobecker@adacore.com>
2100 * buildsym.c (free_pending_blocks): Remove commented-out code.
2101 (make_blockvector): Likewise. Re-use free_pending_blocks.
2102 (end_symtab): Remove commented-out code.
2104 2007-10-22 Daniel Jacobowitz <dan@codesourcery.com>
2106 * top.c (command_loop): Fix output for shrinkage.
2108 2007-10-22 Daniel Jacobowitz <dan@codesourcery.com>
2110 * cp-name-parser.y (exp1): Add & ( var ) as a reference expression.
2111 (exp): Remove and document function-like casts.
2113 2007-10-22 Daniel Jacobowitz <dan@codesourcery.com>
2115 * cp-support.c: Include "safe-ctype.h".
2116 (cp_already_canonical): New function.
2117 (cp_canonicalize_string): Use it. Return NULL for already canonical
2119 (mangled_name_to_comp): Update call to cp_demangled_name_to_comp.
2120 (cp_func_name, remove_params): Likewise.
2121 (cp_find_first_component_aux): Use ISSPACE.
2122 * cp-support.h (cp_demangled_name_to_comp): Correct comment. Remove
2124 * cp-name-parser.y (ALLOC_CHUNK): Define.
2125 (struct demangle_info): Add PREV and NEXT. Increase the size of
2127 (d_grab): Convert to a function.
2128 (allocate_info): Rewrite.
2129 (cp_demangled_name_to_comp): Remove MEMORY argument. Do not use
2130 strlen. Update call to allocate_info. Do not free it on failure.
2131 (main): Update calls to cp_demangled_name_to_comp.
2132 * Makefile.in (cp-support.o): Update.
2134 2007-10-22 Markus Deuling <deuling@de.ibm.com>
2136 * std-regs.c (value_of_builtin_frame_fp_reg)
2137 value_of_builtin_frame_pc_reg, value_of_builtin_frame_sp_reg)
2138 value_of_builtin_frame_ps_reg): Use get_frame_arch to get at the
2139 current architecture by frame_info.
2141 2007-10-22 Markus Deuling <deuling@de.ibm.com>
2143 * reggroups.c (default_register_reggroup_p): Replace current_gdbarch
2146 2007-10-22 Markus Deuling <deuling@de.ibm.com>
2148 * infcmd.c (default_print_registers_info, print_return_value)
2149 (print_vector_info, print_float_info): Replace current_gdbarch by
2151 (registers_info): Use get_frame_arch to get at the current
2152 architecture by frame_info.
2154 2007-10-22 Markus Deuling <deuling@de.ibm.com>
2156 * i387-tdep.c (i387_collect_fsave, i387_collect_fxsave): Use
2157 get_regcache_arch to get at the current architecture by regcache.
2159 2007-10-22 Markus Deuling <deuling@de.ibm.com>
2161 * target.c (debug_print_register): Use get_regcache_arch to get at the
2162 current architecture by regcache.
2164 2007-10-21 Daniel Jacobowitz <dan@codesourcery.com>
2166 * dwarf2read.c (read_file_scope): Add a comment.
2167 (dwarf2_add_field, dwarf2_add_member_fn, read_structure_type)
2168 (read_enumeration_type, process_enumeration_scope, read_array_type)
2169 (read_typedef, read_base_type, read_subrange_type)
2170 (read_unspecified_type): Use dwarf2_name.
2172 2007-10-21 Daniel Jacobowitz <dan@codesourcery.com>
2174 * coffread.c (coff_symfile_finish): Call dwarf2_free_objfile.
2175 * dwarf2read.c (dwarf2_free_objfile): New.
2176 * elfread.c (elf_symfile_finish): Call dwarf2_free_objfile.
2177 * symfile.h (dwarf2_free_objfile): Declare.
2179 2007-10-21 Joel Brobecker <brobecker@adacore.com>
2181 * hppa-hpux-nat.c (hppa_hpux_store_register): Add missing semi-colon.
2183 2007-10-21 Luis Machado <luisgpm@br.ibm.com>
2185 * rs6000-tdep.c (ppc_dwarf2_frame_init_reg): New function.
2186 * (rs6000_gdbarch_init): Install ppc_dwarf2_frame_init_reg as
2187 default dwarf2_frame_set_init_reg function.
2189 2007-10-21 Pedro Alves <pedro_alves@portugalmail.pt>
2191 * NEWS: Mention native MinGW configuration.
2193 2007-10-19 Ulrich Weigand <uweigand@de.ibm.com>
2195 * gdbarch.sh: Remove "macro" column of input table. Remove handling
2196 of "macro" column throughout the file. Remove (empty) "macro" entry
2197 of all gdbarch functions.
2199 2007-10-19 Ulrich Weigand <uweigand@de.ibm.com>
2201 * gdbarch.sh (sofun_address_maybe_missing): New gdbarch variable.
2202 * gdbarch.c, gdbarch.h: Regenerate.
2203 * dbxread.c (find_stab_function_addr): Define unconditionally.
2204 (read_dbx_symtab): Use gdbarch_sofun_address_maybe_missing
2205 instead of SOFUN_ADDRESS_MAYBE_MISSING.
2206 (end_psymtab): Likewise.
2207 (process_one_symbol): Likewise.
2208 * mdebugread.c (parse_partial_symbols): Likewise.
2210 * symtab.h (struct minimal_symbol): Always define "filename" member.
2211 * elfread.c (elf_symtab_read): Use msym->filename unconditionally.
2212 * minsyms.c (lookup_minimal_symbol): Likewise.
2213 * symmisc.c (dump_msymbols): Likewise.
2215 * config/i386/i386sol2.mt (DEPRECATED_TM_FILE): Remove.
2216 * config/i386/linux.mt (DEPRECATED_TM_FILE): Remove.
2217 * config/i386/tm-i386sol2.h: Remove file.
2218 * config/i386/tm-linux.h: Remove file.
2219 * i386-linux-tdep.c (i386_linux_init_abi): Add call to
2220 set_gdbarch_sofun_address_maybe_missing.
2221 * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
2223 * config/powerpc/linux.mt (DEPRECATED_TM_FILE): Remove.
2224 * config/powerpc/nbsd.mt (DEPRECATED_TM_FILE): Remove.
2225 * config/powerpc/obsd.mt (DEPRECATED_TM_FILE): Remove.
2226 * config/powerpc/ppc-eabi.mt (DEPRECATED_TM_FILE): Remove.
2227 * config/powerpc/ppc-sim.mt (DEPRECATED_TM_FILE): Remove.
2228 * config/powerpc/tm-ppc-eabi.h: Remove file.
2229 * rs6000-tdep.c (rs6000_gdbarch_init): Add call to
2230 set_gdbarch_sofun_address_maybe_missing.
2232 * config/sparc/sol2-64.mt (DEPRECATED_TM_FILE): Remove.
2233 * config/sparc/sol2.mt (DEPRECATED_TM_FILE): Remove.
2234 * config/sparc/tm-sol2.h: Remove file.
2235 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Add call to
2236 set_gdbarch_sofun_address_maybe_missing.
2237 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Likewise.
2239 2007-10-19 Ulrich Weigand <uweigand@de.ibm.com>
2241 * gdbarch.sh (static_transform_name): New gdbarch callback.
2242 * gdbarch.c, gdbarch.h: Regenerate.
2243 * dbxread.c (read_dbx_symtab): Use gdbarch_static_transform_name
2244 instead of STATIC_TRANSFORM_NAME.
2245 * mdebugread.c (parse_partial_symbols): Likewise.
2246 * stabsread.c (define_symbol): Likewise.
2247 * xcoffread.c (scan_xcoff_symtab): Likewise.
2249 * config/i368/tm-i386sol2.h (STATIC_TRANSFORM_NAME): Remove.
2250 (IS_STATIC_TRANSFORM_NAME): Remove.
2251 * i386-tdep.c (sunpro_static_transform_name): Remove, move to ...
2252 * i386-sol2-tdep.c (i386_sol2_static_transform_name): ... here.
2253 (i386_sol2_init_abi): Install it.
2255 * config/sparc/tm-sol2.h (STATIC_TRANSFORM_NAME): Remove.
2256 (IS_STATIC_TRANSFORM_NAME): Remove.
2257 * sparc-tdep.c (sparc_stabs_unglobalize_name): Remove, move to ...
2258 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): ... here.
2259 (sparc32_sol2_init_abi): Install it.
2260 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Likewise.
2261 * sparc-tdep.h (sparc_sol2_static_transform_name): Add prototype.
2263 2007-10-18 Daniel Jacobowitz <dan@codesourcery.com>
2265 * mips-tdep.c (mips_xfer_register): Take a gdbarch argument.
2266 (mips_n32n64_return_value, mips_o32_return_value)
2267 (mips_o64_return_value): Update calls to mips_xfer_register.
2269 2007-10-17 Daniel Jacobowitz <dan@codesourcery.com>
2271 * frame.c (frame_unwind_unsigned_register): Delete.
2272 (frame_sp_unwind): Use frame_unwind_register_unsigned instead.
2273 * frame.h (frame_unwind_unsigned_register): Delete prototype.
2275 * alpha-linux-tdep.c, alpha-mdebug-tdep.c, alpha-tdep.c,
2276 avr-tdep.c, cris-tdep.c, frv-tdep.c, m68hc11-tdep.c, mn10300-tdep.c,
2277 mt-tdep.c: Replace frame_unwind_unsigned_register with
2278 frame_unwind_register_unsigned.
2280 2007-10-16 Pedro Alves <pedro_alves@portugalmail.pt>
2282 * config/i386/mingw.mh, config/i386/mingw.mt: New files.
2283 * configure.tgt (i[34567]86-*-mingw32*): Set gdb_target = mingw.
2284 * win32-nat.c: Only include cygwin.h on Cygwin host. Don't
2286 (cygwin_load_start, cygwin_load_end, cygwin_exceptions): Disable
2287 if not building on Cygwin.
2288 (win32_make_so, handle_output_debug_string, handle_exception)
2289 (do_initial_win32_stuff): Wrap Cygwin specific code in __CYGWIN__.
2290 (win32_attach): Only fallback to Cygwin pids if building on
2292 (win32_pid_to_exec_file): Disable Cygwin specific code, if not
2294 (win32_create_inferior): Disable starting the inferior through a
2295 shell, environment var processing and tty handling if not building
2297 (cygwin_pid_to_str): Rename to ...
2298 (win32_pid_to_str): ... this.
2299 (init_win32_ops): Update use of win32_pid_to_str. Disable "shell"
2300 and "cygwin-exceptions" commands if not building on Cygwin.
2302 2007-10-16 Gaius Mulley <gaius@glam.ac.uk>
2304 * doc/gdb.texinfo: Add TSIZE definition, removed
2305 statement about unbounded arrays being unimplemented.
2306 * m2-valprint.c (m2_print_array_contents): New function.
2307 (m2_print_unbounded_array): New function.
2308 (m2_print_array_contents): New function.
2309 * m2-typeprint.c (m2_unbounded_array): New function.
2310 (m2_is_unbounded_array): New function.
2311 (m2_print_type): Test for unbounded array when walking
2313 * m2-lang.h: Added extern m2_is_unbounded_array.
2314 * m2-lang.c (evaluate_subexp_modula2): New function.
2315 (exp_descriptor_modula2): New structure.
2316 (m2_language_defn): Use exp_descriptor_modula2.
2317 * m2-exp.y: Added TSIZE and binary subscript.
2319 2007-10-16 Daniel Jacobowitz <dan@codesourcery.com>
2321 * mi/mi-main.c (captured_mi_execute_command): Clear mi_error_message
2324 2007-10-16 Kevin Buettner <kevinb@redhat.com>
2326 * m32r-tdep.c (decode_prologue): Sign extend offset for
2328 (m32r_frame_unwind_cache): Likewise.
2330 2007-10-15 Thiago Jung Bauermann <bauerman@br.ibm.com>
2332 * rs6000-tdep.c (skip_prologue): Restore comment with
2333 function description to its proper place.
2335 2007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
2337 * NEWS: Mention gdbserver PowerPC improvements.
2339 2007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
2341 * features/Makefile (WHICH): Add PowerPC register definitions.
2342 (rs6000/powerpc-32-expedite, rs6000/powerpc-e500-expedite)
2343 (rs6000/powerpc-64-expedite): New macros.
2344 ($(outdir)/%.dat): Handle subdirectories.
2345 * regformats/rs6000/powerpc-32.dat, regformats/rs6000/powerpc-64.dat,
2346 regformats/rs6000/powerpc-e500.dat: New generated files.
2348 2007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
2350 * ppc-linux-nat.c (ppc_linux_read_description): New.
2351 (_initialize_ppc_linux_nat): Set to_read_description.
2352 * ppc-tdep.h (tdesc_powerpc_e500): Declare.
2354 2007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
2356 * NEWS: Document target described register support for PowerPC.
2357 * ppc-tdep.h: Remove ppc_spr constants.
2358 (struct gdbarch_tdep): Remove regs, ppc_sr0_regnum, and
2359 ppc_builtin_type_vec128 members.
2360 (PPC_R0_REGNUM, PPC_F0_REGNUM, PPC_PC_REGNUM, PPC_MSR_REGNUM)
2361 (PPC_CR_REGNUM, PPC_LR_REGNUM, PPC_CTR_REGNUM, PPC_XER_REGNUM)
2362 (PPC_FPSCR_REGNUM, PPC_MQ_REGNUM, PPC_SPE_UPPER_GP0_REGNUM)
2363 (PPC_SPE_ACC_REGNUM, PPC_SPE_FSCR_REGNUM, PPC_VR0_REGNUM)
2364 (PPC_VSCR_REGNUM, PPC_VRSAVE_REGNUM, PPC_NUM_REGS): New constants.
2365 * rs6000-tdep.c: Include preparsed descriptions.
2366 (init_sim_regno_table): Do not iterate over pseudo registers.
2367 Look up segment registers by name. Use sim_spr_register_name
2369 (rs6000_register_sim_regno): Call init_sim_regno_table here.
2370 (rs6000_builtin_type_vec128): Delete.
2371 (rs6000_register_name): Only handle SPE pseudo registers and upper
2372 halves. Call tdesc_register_name for everything else.
2373 (rs6000_register_type): Delete. Replace with...
2374 (rs6000_pseudo_register_type): ...this new function. Only handle
2375 SPE pseudo registers.
2376 (rs6000_register_reggroup_p): Delete. Replace with...
2377 (rs6000_pseudo_register_reggroup_p): ...this new function. Only
2378 handle SPE pseudo registers.
2379 (rs6000_convert_register_p): Use ppc_fp0_regnum instead of
2381 (rs6000_register_to_value, rs6000_value_to_register): Remove check
2383 (e500_register_reggroup_p): Delete.
2384 (STR, R, R4, R8, R16, F, P8, R32, R64, R0, A4, S, S4, SN4, S64)
2385 (COMMON_UISA_REGS, PPC_UISA_SPRS, PPC_UISA_NOFP_SPRS)
2386 (PPC_SEGMENT_REGS, PPC_OEA_SPRS, PPC_ALTIVEC_REGS, PPC_SPE_GP_REGS)
2387 (PPC_SPE_UPPER_GP_REGS, PPC_EV_PSEUDO_REGS): Delete macros.
2388 (registers_powerpc, registers_403, registers_403GC, registers_505)
2389 (registers_860, registers_601, registers_602, registers_603)
2390 (registers_604, registers_750, registers_7400, registers_e500): Delete
2392 (struct variant): Delete nregs, npregs, num_tot_regs, and regs. Add
2394 (tot_num_registers, num_registers, num_pseudo_registers): Delete.
2395 (variants): Delete outdated comment. Use standard target descriptions
2396 instead of "struct reg" arrays.
2397 (init_variants): Delete.
2398 (rs6000_gdbarch_init): Do not guess word size from the BFD
2399 architecture if we have a target description. Select a variant
2400 before creating a new architecture. Use the variant's target
2401 description if the target did not define a register layout.
2402 Validate target-supplied registers. Reject mismatches. Use
2403 fixed register numbers and new constants instead of magic
2404 numbers. Call set_gdbarch_ps_regnum. Call tdesc_use_registers.
2405 (_initialize_rs6000_tdep): Initialize the preparsed target
2407 * target-descriptions.c (tdesc_predefined_types): Add int128 and
2409 (tdesc_find_register_early): New function.
2410 (tdesc_numbered_register): Use it.
2411 (tdesc_register_size): New function.
2412 (tdesc_use_registers): Take a target_desc argument. Do not use
2413 gdbarch_target_desc.
2414 * target-descriptions.h (tdesc_use_registers): Update prototype
2416 (tdesc_register_size): New prototype.
2417 * Makefile.in (powerpc_32_c, powerpc_403_c, powerpc_403gc_c)
2418 (powerpc_505_c, powerpc_601_c, powerpc_602_c, powerpc_603_c)
2419 (powerpc_604_c, powerpc_64_c, powerpc_7400_c, powerpc_750_c)
2420 (powerpc_860_c, powerpc_e500_c, rs6000_c): New macros.
2421 (rs6000-tdep.o): Update.
2422 * arm-tdep.c (arm_gdbarch_init): Update call to tdesc_use_registers.
2423 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
2424 * mips-tdep.c (mips_gdbarch_init): Likewise.
2426 2007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
2428 * features/rs6000/powerpc-32.c, features/rs6000/powerpc-403.c,
2429 features/rs6000/powerpc-403gc.c, features/rs6000/powerpc-505.c,
2430 features/rs6000/powerpc-601.c, features/rs6000/powerpc-602.c,
2431 features/rs6000/powerpc-603.c, features/rs6000/powerpc-604.c,
2432 features/rs6000/powerpc-64.c, features/rs6000/powerpc-7400.c,
2433 features/rs6000/powerpc-750.c, features/rs6000/powerpc-860.c,
2434 features/rs6000/powerpc-e500.c, features/rs6000/rs6000.c: New
2437 2007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
2439 * features/rs6000/power-altivec.xml, features/rs6000/power-core.xml,
2440 features/rs6000/power-fpu.xml, features/rs6000/power-oea.xml,
2441 features/rs6000/power-spe.xml, features/rs6000/power64-core.xml: New
2442 feature descriptions for standard PowerPC register sets.
2444 * features/rs6000/powerpc-32.xml, features/rs6000/powerpc-403.xml,
2445 features/rs6000/powerpc-403gc.xml, features/rs6000/powerpc-505.xml,
2446 features/rs6000/powerpc-601.xml, features/rs6000/powerpc-602.xml,
2447 features/rs6000/powerpc-603.xml, features/rs6000/powerpc-604.xml,
2448 features/rs6000/powerpc-64.xml, features/rs6000/powerpc-7400.xml,
2449 features/rs6000/powerpc-750.xml, features/rs6000/powerpc-860.xml,
2450 features/rs6000/powerpc-e500.xml, features/rs6000/rs6000.xml: New
2451 target descriptions for PowerPC processors.
2453 2007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
2455 * target-descriptions.c (tdesc_predefined_types): New.
2456 (tdesc_named_type): Use it.
2457 (tdesc_type_id, maint_print_c_tdesc_cmd): New functions.
2458 (_intialize_target_descriptions): Register "maint print c-tdesc".
2459 * features/Makefile (XMLTOC, CFILES, GDB): New macros.
2460 (cfiles, %.c): New rules.
2461 * features/arm-with-iwmmxt.c, features/mips-linux.c,
2462 features/mips64-linux.c: New generated files.
2464 * arm-linux-nat.c: Include preparsed description instead of
2466 (super_xfer_partial, arm_linux_xfer_partial): Remove.
2467 (arm_linux_read_description): New function.
2468 (_initialize_arm_linux_nat): Set to_read_description instead of
2469 to_xfer_partial. Initialize preparsed description.
2470 * config/arm/linux.mh (TDEP_XML): Delete.
2471 * mips-linux-nat.c: Include preparsed descriptions instead of
2473 (super_xfer_partial, mips_linux_xfer_partial): Remove.
2474 (mips_linux_read_description): New function.
2475 (_initialize_mips_linux_nat): Set to_read_description instead of
2476 to_xfer_partial. Initialize preparsed description.
2477 * config/mips/linux.mh (TDEP_XML): Delete.
2478 * Makefile.in (XMLFILES): Remove $(TDEP_XML).
2479 (features_headers, arm_with_iwmmxt_c, mips_linux_c)
2480 (mips64_linux_c): New macros.
2481 (arm-linux-nat.o, mips-linux-nat.o): Update.
2483 2007-10-15 Pierre Muller <muller@ics.u-strasbg.fr>
2485 * cp-abi.c (set_cp_abi_as_auto_default): ARI fix:
2486 Replace xasprintf by xstrprintf.
2487 symfile-mem.c (add_vsyscall_page): Ditto.
2489 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
2491 * ia64-linux-nat.c (ia64_register_addr): Add gdbarch parameter,
2492 replacing use of global current_gdbarch.
2493 (ia64_cannot_fetch_register, ia64_cannot_store_register): Likewise.
2494 (ia64_linux_fetch_register, ia64_linux_store_register): Update callers.
2496 * ia64-tdep.c (SIGCONTEXT_REGISTER_ADDRESS): Remove macro.
2497 (ia64_sigtramp_frame_init_saved_regs): Add next_frame parameter,
2498 replace uses of SIGCONTEXT_REGISTER_ADDRESS.
2499 (ia64_sigtramp_frame_cache): Update caller.
2501 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
2503 * gdbarch.sh (deprecated_use_struct_convention): Remove.
2504 (extract_return_value, store_return_value): Remove.
2505 (return_value): Remove default implementation.
2506 * gdbarch.c, gdbarch.h: Regenerate.
2508 * stack.c (return_command): Remove compatibility hack.
2509 * arch-utils.c (legacy_return_value): Remove.
2510 * arch-utils.h (legacy_return_value): Likewise.
2512 * arch-utils.c (always_use_struct_convention): Remove.
2513 * arch-utils.h (always_use_struct_convention): Likewise.
2514 * value.c (generic_use_struct_convention): Remove.
2515 * defs.h (generic_use_struct_convention): Likewise.
2517 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
2519 * avr-tdep.c (avr_return_value): New function.
2520 (avr_gdbarch_init): Call set_gdbarch_return_value instead of
2521 set_gdbarch_extract_return_value.
2523 * fvr-tdep.c (frv_return_value): New function.
2524 (frv_gdbarch_init): Call set_gdbarch_return_value instead of
2525 set_gdbarch_extract_return_value, set_gdbarch_store_return_value,
2526 and set_gdbarch_deprecated_use_struct_convention.
2528 * ia64-tdep.c (ia64_use_struct_convention): Make static.
2529 Add check for structure, union, or array types.
2530 (ia64_extract_return_value): Make static.
2531 (ia64_store_return_value): Make static. Support multi-word values.
2532 (ia64_return_value): New function.
2533 (ia64_gdbarch_init): Call set_gdbarch_return_value instead of
2534 set_gdbarch_extract_return_value, set_gdbarch_store_return_value,
2535 and set_gdbarch_deprecated_use_struct_convention.
2537 2007-10-12 Joel Brobecker <brobecker@adacore.com>
2539 * solib-target.c (solib_target_parse_libraries)
2540 [HAVEHAVE_LIBEXPAT not defined]: Fix thinko in return type.
2542 2007-10-12 Jim Blandy <jimb@codesourcery.com>
2544 * serial.h (struct serial_ops): Document read_prim to return zero
2546 * ser-base.c (do_ser_base_readchar): Return SERIAL_EOF when
2547 read_prim returns zero, not SERIAL_TIMEOUT.
2549 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
2551 * alpha-mdebug-tdep.c: Include "gdb_string.h".
2552 (find_proc_desc): Add fix-up code for setjmp procedure descriptor.
2553 * mdebugread.c (parse_procedure): Remove setjmp fix-up code.
2554 * Makefile.in (alpha-mdebug-tdep.o): Update dependencies.
2556 * config/alpha/alpha.mt (DEPRECATED_TM_FILE): Remove.
2557 * config/alpha/alpha-linux.mt (DEPRECATED_TM_FILE): Remove.
2558 * config/alpha/alpha-osf1.mt (DEPRECATED_TM_FILE): Remove.
2559 * config/alpha/fbsd.mt (DEPRECATED_TM_FILE): Remove.
2560 * config/alpha/tm-alpha.h: Remove file.
2562 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
2564 * breakpoint.c (breakpoint_sals_to_pc): Do not check for
2565 DEPRECATED_PC_REQUIRES_RUN_BEFORE_USE.
2567 * config/pa/tm-hppa.h: Delete file.
2568 * config/pa/hppa64.mt: Do not set DEPRECATED_TM_FILE.
2569 * config/pa/hppahpux.mt: Likewise.
2570 * config/pa/hppa.mt: Likewise.
2571 * config/pa/linux.mt: Likewise.
2572 * hppa-tdep.c (hppa_pc_requires_run_before_use): Delete.
2574 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
2576 * config/arm/nm-nbsdaout.h: Remove file.
2577 * config/nm-nbsdaout.h: Likewise.
2578 * config/nm-nbsd.h: Likewise.
2580 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
2582 * block.h (struct block): Remove "gcc_compile_flag" member.
2583 (BLOCK_GCC_COMPILED): Remove.
2584 * block.c (allocate_block): Do not clear BLOCK_GCC_COMPILED.
2585 * buildsym.c (finish_block): Do not set it.
2586 * symmisc.c (dump_symtab_1): Do not dump it.
2588 * value.h (using_struct_return): Remove "gcc_p" argument.
2589 * value.c (using_struct_return): Likewise.
2590 * eval.c (evaluate_subexp_standard): Adapt callers.
2591 * infcall.c (call_function_by_hand): Likewise.
2592 * stack.c (return_command): Likewise.
2593 * sparc-tdep.c (sparc32_push_dummy_code): Likewise.
2595 * gdbarch.sh (push_dummy_code): Remove "using_gcc" parameter.
2596 * gdbarch.c, gdbarch.h: Regenerate.
2597 * cris-tdep.c (cris_push_dummy_code): Adapt prototype.
2598 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Likewise.
2599 * sparc-tdep.c (sparc32_push_dummy_code): Likewise.
2600 * infcall.c (generic_push_dummy_code, push_dummy_code): Likewise.
2601 (push_dummy_code, call_function_by_hand): Adapt callers.
2603 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
2605 * infcmd.c (print_return_value): Remove STRUCT_RETURN argument.
2606 (finish_command_continuation, finish_command): Adapt callers.
2608 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
2610 * infcall.c (call_function_by_hand): Remove special handling
2611 for HP aCC compiled code.
2613 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
2615 * cris-tdep.c (cris_push_dummy_call): Support arguments passed by
2616 reference. Fix endianness bugs.
2617 (cris_reg_struct_has_address): Remove.
2618 (cris_gdbarch_init): Remove set_gdbarch_deprecated_reg_struct_has_addr
2619 and set_gdbarch_deprecated_use_struct_convention calls.
2621 * gdbarch.sh (deprecated_reg_struct_has_addr): Remove.
2622 * gdbarch.c, gdbarch.h: Regenerate.
2623 * infcall.c (call_function_by_hand): Remove handling of
2624 deprecated_reg_struct_has_addr.
2626 2007-10-11 Daniel Jacobowitz <dan@codesourcery.com>
2627 Kazu Hirata <kazu@codesourcery.com>
2629 * breakpoint.c (do_enable_breakpoint): Delay enabling until after
2630 checking watchpoint resources.
2632 2007-10-11 Kazu Hirata <kazu@codesourcery.com>
2634 * memattr.c (inaccessible_by_default): Change the initial
2637 2007-10-11 Daniel Jacobowitz <dan@codesourcery.com>
2640 * coffread.c (read_one_sym): Check for read errors.
2642 2007-10-11 Ulrich Weigand <uweigand@de.ibm.com>
2644 * linux-nat.c (lin_lwp_attach_lwp): Use "Linux kernel 2.6.19"
2645 instead of "Linux 2.6.19" in comment.
2646 (linux_xfer_partial): Use "GNU/Linux target" instead of
2647 "Linux target" in comment.
2648 * m68klinux-tdep.c (m68k_linux_inferior_created): Likewise.
2649 (m68k_linux_get_sigtramp_info): Likewise.
2651 2007-10-11 Daniel Jacobowitz <dan@codesourcery.com>
2653 * MAINTAINERS (language support): List Joel and Paul as
2656 2007-10-11 Daniel Jacobowitz <dan@codesourcery.com>
2658 * dbxread.c (process_one_symbol): Remove VARIABLES_INSIDE_BLOCK
2660 * config/arm/embed.mt, config/arm/linux.mt, config/arm/wince.mt: Do
2661 not set DEPRECATED_TM_FILE.
2662 * config/arm/tm-arm.h: Delete file.
2664 2007-10-11 Luis Machado <luisgpm@br.ibm.com>
2666 * MAINTAINERS (Write After Approval): Add self.
2668 2007-10-11 Daniel Jacobowitz <dan@codesourcery.com>
2670 * buildsym.c (record_line): Remove empty lines followed by
2671 end-of-sequence markers.
2673 2007-10-11 Kazu Hirata <kazu@codesourcery.com>
2675 * configure.tgt: Recognize fido-*-elf.
2677 2007-10-10 Joel Brobecker <brobecker@adacore.com>
2681 2007-10-10 Markus Deuling <deuling@de.ibm.com>
2683 * stack.c (print_frame_args, frame_info, return_command): Use
2684 get_regcache_arch or get_frame_arch to get at the current architecture
2685 by regcache or by frame, respectively.
2687 2007-10-10 Markus Deuling <deuling@de.ibm.com>
2689 * rs6000-nat.c (fetch_register, store_register)
2690 (rs6000_fetch_inferior_registers, rs6000_store_inferior_registers): Use
2691 get_regcache_arch to get at the current architecture by regcache.
2693 * rs6000-tdep.c (rs6000_push_dummy_call, rs6000_return_value)
2694 (rs6000_register_reggroup_p, e500_move_ev_registe, rs6000_unwind_pc)
2695 (rs6000_unwind_dummy_id, rs6000_frame_cache, rs6000_dump_tdep): Replace
2696 current_gdbarch by gdbarch.
2697 (rs6000_skip_trampoline_code, rs6000_register_to_value)
2698 (rs6000_value_to_register): Use get_frame_arch to get at the current
2699 architecture by frame_info.
2701 2007-10-10 Markus Deuling <deuling@de.ibm.com>
2703 * sparc-tdep.c (sparc_supply_rwindow, sparc_collect_rwindow): Use
2704 get_regcache_arch to get at the current architecture by regcache.
2706 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
2707 (sparc64_supply_fpregset, sparc64_collect_fpregset): Use
2708 get_regcache_arch to get at the current architecture by regcache.
2710 * sparc64nbsd-nat. (sparc64nbsd_supply_gregset)
2711 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
2712 (sparc64nbsd_collect_fpregset): Use get_regcache_arch to get at the
2713 current architecture by regcache.
2715 2007-10-10 Markus Deuling <deuling@de.ibm.com>
2717 * remote-mips.c (mips_wait, mips_fetch_registers)
2718 (mips_store_registers): Use get_regcache_arch to get at the
2719 current architecture by regcache.
2721 * mipsnbsd-tdep.c (mipsnbsd_supply_reg, mipsnbsd_fill_reg)
2722 (mipsnbsd_supply_fpreg, mipsnbsd_fill_fpreg): Use get_regcache_arch to
2723 get at the current architecture by regcache.
2724 (mipsnbsd_sigtramp_offset): Use get_frame_arch to get at the current
2725 architecture by frame_info.
2727 * mipsnbsd-nat.c (mipsnbsd_fetch_inferior_registers)
2728 (mipsnbsd_store_inferior_registers): Use get_regcache_arch to get at
2729 the current architecture by regcache.
2731 * mips-linux-tdep.c (mips_linux_get_longjmp_target)
2732 (mips64_linux_get_longjmp_target, mips_linux_o32_sigframe_init)
2733 (mips_linux_n32n64_sigframe_init): Use get_frame_arch to get at the
2734 current architecture by frame_info.
2735 (supply_32bit_reg, mips_supply_gregset, mips_fill_gregset)
2736 (mips_supply_fpregset, mips_fill_fpregset, supply_64bit_reg)
2737 (mips64_supply_gregset, mips64_fill_gregset, mips64_supply_fpregset)
2738 (mips64_fill_fpregset, mips_linux_write_pc): Use get_regcache_arch to
2739 get at the current architecture by regcache.
2741 * mips-linux-nat.c (mips_linux_register_addr)
2742 (mips64_linux_register_addr): Replace current_gdbarch by gdbarch.
2743 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset)
2744 (mips64_linux_regsets_fetch_registers)
2745 (mips64_linux_regsets_store_registers): Use get_regcache_arch to get at
2746 the current architecture by regcache.
2748 * mips64obsd-tdep.c (mips64obsd_sigframe_init): Use get_frame_arch to
2749 get at the current architecture by frame_info.
2751 2007-10-10 Markus Deuling <deuling@de.ibm.com>
2753 * mips-tdep.c (mips_xfer_register): Use get_regcache_arch to get at the
2754 current architecture by regcache.
2755 (mips2_fp_compat, mips32_next_pc, mips16_scan_prologue)
2756 (mips_insn16_frame_cache, mips32_scan_prologue, mips_insn32_frame_cache)
2757 (mips_stub_frame_cache, mips_read_fp_register_single)
2758 (mips_read_fp_register_double, mips_print_fp_register)
2759 (mips_print_register, print_gp_register_row): Use get_frame_arch to get
2760 at the current architecture by frame_info.
2761 (mips_register_reggroup_p, mips_pseudo_register_read, mips_unwind_sp)
2762 (mips_pseudo_register_write, mips_register_type, mips_unwind_pc)
2763 (mips_unwind_dummy_id, mips_eabi_push_dummy_call)
2764 (mips_n32n64_push_dummy_call, mips_n32n64_return_value)
2765 (mips_o32_push_dummy_call, mips_o32_return_value)
2766 (mips_o64_push_dummy_call, mips_o64_return_value)
2767 (mips_print_registers_info, mips_dump_tdep): Replace current_gdbarch by
2770 2007-10-10 Markus Deuling <deuling@de.ibm.com>
2772 * xtensa-tdep.c (xtensa_register_type, xtensa_pseudo_register_read)
2773 (xtensa_pseudo_register_write, xtensa_register_reggroup_p)
2774 (xtensa_unwind_pc, xtensa_unwind_dummy_id, xtensa_push_dummy_call)
2775 (xtensa_dump_tdep): Replace current_gdbarch by gdbarch.
2776 (xtensa_register_write_masked, xtensa_register_read_masked)
2777 (xtensa_supply_gregset, xtensa_store_return_value)
2778 (xtensa_extract_return_value): Use get_regcache_arch to get at the
2779 current architecture by regcache.
2780 (xtensa_frame_cache, call0_frame_get_reg_at_entry, call0_frame_cache)
2781 (xtensa_frame_prev_register): Use get_frame_arch to get at the current
2782 architecture by frame_info.
2784 2007-10-10 Daniel Jacobowitz <dan@codesourcery.com>
2786 * arm-tdep.c (struct arm_prologue_cache): Remove frameoffset.
2787 (thumb_analyze_prologue): Move pv_area_store_would_trash call
2788 out of loop. Do not set cache->frameoffset.
2789 (arm_scan_prologue): Use prologue-value mechanism. Do not set
2790 frameoffset. Simplify framesize.
2791 (arm_make_prologue_cache, arm_normal_frame_base): Do not use
2793 * arm-tdep.h (enum gdb_regnum): Add ARM_IP_REGNUM.
2795 2007-10-10 Daniel Jacobowitz <dan@codesourcery.com>
2797 * target.c (update_current_target): Call setup_target_debug.
2798 (push_target): Do not call it here.
2800 2007-10-09 Michael Snyder <msnyder@specifix.com>
2802 * MAINTAINERS: Update my email address.
2804 2007-10-09 Markus Deuling <deuling@de.ibm.com>
2806 * xtensa-tdep.c: Replace following current-gdbarch based macros by
2808 (xtensa_pseudo_register_read)
2809 (xtensa_pseudo_register_write): XTENSA_TARGET_FLAGS.
2810 (ARG_NOF, ARG_1ST, xtensa_extract_return_value)
2811 (xtensa_store_return_value, xtensa_push_dummy_call): CALL_ABI.
2812 (xtensa_pseudo_register_read)
2813 (xtensa_pseudo_register_write): ISA_USE_WINDOWED_REGISTERS.
2814 (xtensa_breakpoint_from_pc): ISA_USE_DENSITY_INSTRUCTIONS.
2815 (xtensa_register_type, xtensa_supply_gregset, xtensa_frame_cache)
2816 (xtensa_frame_prev_register): NUM_AREGS.
2817 (xtensa_pseudo_register_read, xtensa_pseudo_register_write,
2818 (xtensa_supply_gregset, xtensa_frame_cache, xtensa_frame_prev_register,
2819 (xtensa_extract_return_value, xtensa_store_return_value): WB_REGNUM.
2820 (xtensa_supply_gregset, xtensa_frame_cache)
2821 (xtensa_frame_prev_register): WS_REGNUM.
2822 (xtensa_supply_gregset): LBEG_REGNUM, LEND_REGNUM, LCOUNT_REGNUM,
2823 SAR_REGNUM, EXCCAUSE_REGNUM, EXCVADDR_REGNUM
2824 (xtensa_register_name, xtensa_register_type, xtensa_reg_to_regnum)
2825 (xtensa_pseudo_register_read, xtensa_pseudo_register_write)
2826 (xtensa_register_reggroup_p): REGMAP.
2827 (call0_track_op): LITBASE_REGNUM.
2828 (xtensa_register_type, xtensa_reg_to_regnum, call0_frame_cache):A0_BASE
2829 (xtensa_supply_gregset, call0_frame_get_reg_at_entry)
2830 (xtensa_frame_prev_register, AREG_NUMBER)
2831 (xtensa_register_type): AR_BASE.
2832 (xtensa_pseudo_register_read, xtensa_pseudo_register_write): FP_ALIAS.
2833 (AREG_NUMBER): AREGS_MASK, WB_MASK, A0_REGNUM.
2834 (ARG_1ST, xtensa_pseudo_register_read, xtensa_pseudo_register_write)
2835 (xtensa_frame_cache, xtensa_frame_prev_register)
2836 (xtensa_extract_return_value, xtensa_store_return_value)
2837 (xtensa_push_dummy_call, call0_frame_cache): A0_REGNUM.
2838 (xtensa_register_type, xtensa_pseudo_register_read, xtensa_frame_cache)
2839 (xtensa_pseudo_register_write, xtensa_unwind_dummy_id)
2840 (xtensa_frame_prev_register, xtensa_push_dummy_call)
2841 (call0_frame_cache): A1_REGNUM.
2842 (xtensa_extract_return_value, xtensa_store_return_value): A2_REGNUM.
2843 (xtensa_push_dummy_call): A4_REGNUM.
2844 (ARGS_FIRST_REG): A6_REGNUM.
2845 (xtensa_pseudo_register_read, xtensa_pseudo_register_write)
2846 (xtensa_frame_prev_register): A15_REGNUM.
2847 * xtensa-tdep.h: Delete current_gdbarch based macros after replacing
2848 them in the appropriate source file:
2849 XTENSA_TARGET_FLAGS, SPILL_LOCATION, SPILL_SIZE, CALL_ABI, NUM_AREGS,
2850 ISA_USE_WINDOWED_REGISTERS, ISA_USE_DENSITY_INSTRUCTIONS, WB_REGNUM,
2851 ISA_USE_EXCEPTIONS, ISA_USE_EXT_L32R, DEBUG_DATA_VADDR_TRAP_COUNT,
2852 DEBUG_INST_VADDR_TRAP_COUNT, ISA_MAX_INSN_SIZE, DEBUG_NUM_IBREAKS,
2853 DEBUG_NUM_DBREAKS, WS_REGNUM, LBEG_REGNUM, LEND_REGNUM, SAR_REGNUM,
2854 REGMAP, LITBASE_REGNUM, DEBUGCAUSE_REGNUM, EXCCAUSE_REGNUM, AR_BASE,
2855 EXCVADDR_REGNUM, NUM_IBREAKS, REGMAP_BYTES, NUM_CONTEXTS, FP_ALIAS,
2856 FP_LAYOUT, FP_LAYOUT_BYTES, GREGMAP, AREGS_MASK, WB_MASK, A0_REGNUM,
2857 A1_REGNUM, A2_REGNUM, A3_REGNUM, A4_REGNUM, A5_REGNUM, A6_REGNUM,
2858 A7_REGNUM, A8_REGNUM, A9_REGNUM, A10_REGNUM, A11_REGNUM, A12_REGNUM,
2859 A13_REGNUM, A14_REGNUM, A15_REGNUM.
2861 2007-10-09 Markus Deuling <deuling@de.ibm.com>
2863 * h8300-tdep.c (h8300_frame_cache): Use get_frame_arch to get at
2864 the current architecture by frame_info.
2865 (h8300_frame_prev_register
2866 (h8300_print_register): Replace current_gdbarch by gdbarch.
2867 (h8300_print_registers_info, h8300_register_type)
2868 (h8300_register_type): Likewise.
2870 2007-10-09 Markus Deuling <deuling@de.ibm.com>
2872 * i386-linux-nat.c (fetch_register): Use get_regcache_arch to get at
2873 the current architecture by regcache.
2874 (store_register, supply_gregset, fill_gregset, i386_linux_resume)
2875 (i386_linux_fetch_inferior_registers)
2876 (i386_linux_store_inferior_registers): Likewise.
2877 * i386gnu-nat.c (gnu_fetch_registers, gnu_store_registers): Likewise.
2878 * i386-nto-tdep.c (i386nto_supply_gregset): Likewise.
2879 * i386v4-nat.c (supply_fpregset, fill_fpregset): Likewise.
2880 * i386-tdep.c (i386_unwind_pc): Replace current_gdbarch by gdbarch.
2881 (i386_extract_return_value, i386_store_return_value): Likewise.
2882 * i386-tdep.c (i386_frame_prev_register): Use get_frame_arch to get at
2883 the current architecture by frame_info.
2884 (i386_sigtramp_frame_cache, i386_get_longjmp_target)
2885 (i386_register_to_value, i386_value_to_register): Likewise.
2887 2007-10-09 Markus Deuling <deuling@de.ibm.com>
2889 * monitor.c (monitor_supply_register): Use get_regcache_arch to get at
2890 the current architecture by regcache.
2891 (monitor_store_register, monitor_store_registers): Likewise.
2893 2007-10-09 Markus Deuling <deuling@de.ibm.com>
2895 * dbug-rom.c (dbug_supply_register): Use get_regcache_arch to get at
2896 the current architecture by regcache.
2898 2007-10-09 Markus Deuling <deuling@de.ibm.com>
2900 * arch-utils.c (legacy_return_value): Replace current_gdbarch by
2903 2007-10-09 Markus Deuling <deuling@de.ibm.com>
2905 * frame.c (frame_pc_unwind): Use get_frame_arch to get at the current
2906 architecture by frame.
2907 (frame_save_as_regcache, frame_register_unwind, get_prev_frame_1)
2908 (inside_main_func, frame_sp_unwind): Likewise.
2910 2007-10-09 Daniel Jacobowitz <dan@codesourcery.com>
2912 * solib-svr4.c (enable_break): Add the dynamic linker also if
2915 2007-10-09 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
2917 * MAINTAINERS (Write After Approval): Add self.
2919 2007-10-09 Pedro Alves <pedro_alves@portugalmail.pt>
2921 * stabsread.c (read_huge_number): Initialize local variable to 0.
2923 2007-10-09 Pierre Muller <muller@ics.u-strasbg.fr>
2925 * p-lang.h (pascal_main_name): Add declaration.
2926 * p-lang.c (GPC_P_INITIALIZE, GPC_MAIN_PROGRAM_NAME_1)
2927 (GPC_MAIN_PROGRAM_NAME_2): New constants.
2928 (pascal_main_name): New function.
2929 * symtab.c: Include p-lang.h.
2930 (find_main_name): Add call to pascal_main_name.
2931 * Makefile.in (symtab.o): Add dependency on p-lang.h.
2933 2007-10-09 Pedro Alves <pedro_alves@portugalmail.pt>
2935 * stabsread.c (read_huge_number): Fix handling of octal
2936 representation when the bit width is known.
2937 (read_range_type): Record unsigned integral types with their size,
2938 when the type size is known.
2940 2007-10-08 Thiago Jung Bauermann <bauerman@br.ibm.com>
2942 * MAINTAINERS (Write After Approval): Add self.
2944 2007-10-08 Pierre Muller <muller@ics.u-strasbg.fr>
2946 * breakpoint.c (print_one_breakpoint_location): ARI fix:
2947 Replace asprintf by xstrprintf.
2949 2007-10-08 Pierre Muller <muller@ics.u-strasbg.fr>
2951 * linux-fork.c: ARI fix: include "gdb_dirent.h" instead of <dirent.h>.
2952 Makefile.in (linux-fork.o): Add gdb_dirent.h dependency.
2954 2007-10-08 Pierre Muller <muller@ics.u-strasbg.fr>
2956 * linux-fork.c: Move "gdb_wait.h" include back to the position of
2957 <sys/wait.h> include before last commit.
2959 2007-10-08 Maciej W. Rozycki <macro@mips.com>
2961 * mips-tdep.c (mips32_next_pc): Fix a typo in BGTZL.
2963 2007-10-08 Markus Deuling <deuling@de.ibm.com>
2965 * aix-thread.c (supply_gprs64, supply_fprs, supply_sprs64)
2966 (supply_sprs32, fetch_regs_user_thread, fetch_regs_kernel_thread)
2967 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs64, fill_sprs32)
2968 (store_regs_user_thread, store_regs_kernel_thread): Use
2969 get_regcache_arch or get_frame_arch to get at the current architecture
2970 by regcache or by frame, respectively.
2972 2007-10-08 Markus Deuling <deuling@de.ibm.com>
2974 * sh64-tdep.c (sh64_push_dummy_call, sh64_register_type)
2975 (sh64_pseudo_register_read, sh64_pseudo_register_write)
2976 (sh64_do_fp_register, sh64_do_pseudo_register, sh64_do_register)
2977 (sh64_print_register, sh64_media_print_registers_info)
2978 (sh64_compact_print_registers_info, sh64_unwind_sp)
2979 (sh64_unwind_pc): Replace current_gdbarch by gdbarch.
2980 (sh64_show_media_regs, sh64_show_compact_regs, sh64_frame_cache)
2981 (sh64_frame_prev_register): Use FRAME to recognize current
2984 2007-10-08 Markus Deuling <deuling@de.ibm.com>
2986 * sh-tdep.c (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu)
2987 (sh_sh2a_register_type, sh_sh3e_register_type, sh_sh4_register_type)
2988 (sh_register_reggroup_p, sh_dwarf2_frame_init_reg): Replace
2989 current_gdbarch by gdbarch.
2990 (sh_generic_show_regs, sh3_show_reg, sh2e_show_regs, sh2a_show_regs)
2991 (sh2a_nofpu_show_regs, sh3e_show_regs, sh3_dsp_show_regs)
2992 (sh4_show_regs, sh4_nofpu_show_regs, sh_dsp_show_regs, sh_frame_cache)
2993 (sh_frame_prev_register, sh_unwind_sp, sh_unwind_pc): Use FRAME to
2994 recognize current architecture.
2996 2007-10-08 Markus Deuling <deuling@de.ibm.com>
2998 * remote.c (init_remote_state, fetch_register_using_p)
2999 (process_g_packet, remote_fetch_registers, remote_prepare_to_store)
3000 (store_register_using_P, store_registers_using_G)
3001 (remote_store_registers): Use get_regcache_arch or get_frame_arch to
3002 get at the current architecture by regcache or by frame, respectively.
3004 2007-10-08 Markus Deuling <deuling@de.ibm.com>
3006 * m68k-tdep.c (m68k_register_to_value, m68k_value_to_register)
3007 (m68k_svr4_extract_return_value, m68k_svr4_store_return_value)
3008 (m68k_frame_prev_register, m68k_get_longjmp_target): Use
3009 get_regcache_arch or get_frame_arch to get at the current architecture
3010 by regcache or by frame, respectively.
3011 * m68klinux-tdep.c (m68k_linux_sigtramp_frame_cache): Likewise.
3012 * m68klinux-nat.c (fetch_register, old_fetch_inferior_registers)
3013 (store_register, old_store_inferior_registers, supply_gregset)
3014 (supply_fpregset, fill_fpregset): Likewise.
3015 * m68k-tdep.c (m68k_register_type, m68k_unwind_pc, m68k_dump_tdep):
3016 Replace current_gdbarch by gdbarch.
3018 2007-10-08 Markus Deuling <deuling@de.ibm.com>
3020 * irix5-nat.c (supply_gregset, fill_gregset, supply_fpregset)
3021 (fill_fpregset, fetch_core_registers): Use get_regcache_arch or
3022 get_frame_arch to get at the current architecture by regcache or by
3023 frame, respectively.
3025 2007-10-08 Markus Deuling <deuling@de.ibm.com>
3027 * ia64-tdep.c (ia64_pseudo_register_read, ia64_pseudo_register_write):
3028 Replace current_gdbarch by gdbarch.
3029 * ia64-tdep.c (ia64_frame_prev_register
3030 (ia64_sigtramp_frame_prev_register)
3031 (ia64_libunwind_frame_prev_register): Use get_regcache_arch or
3032 get_frame_arch to get at the current architecture by regcache or by
3033 frame, respectively.
3034 * ia64-linux-nat.c (ia64_linux_fetch_register)
3035 (ia64_linux_fetch_registers, ia64_linux_store_register)
3036 (ia64_linux_store_registers): Likewise.
3038 2007-10-08 Markus Deuling <deuling@de.ibm.com>
3040 * hppa-tdep.c (hppa_stub_unwind_sniffer, hppa_dump_tdep): Replace
3041 current_gdbarch by gdbarch.
3042 * hppa-linux-nat.c (fetch_register, store_register)
3043 (hppa_linux_fetch_inferior_registers)
3044 (hppa_linux_store_inferior_registers): Use get_regcache_arch or
3045 get_frame_arch to get at the current architecture by regcache or by
3046 frame, respectively.
3047 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code
3048 (hppa_hpux_unwind_adjust_stub): Likewise.
3049 * hppa-hpux-nat.c (hppa_hpux_fetch_register, hppa_hpux_store_register)
3050 (hppa_hpux_fetch_inferior_registers)
3051 (hppa_hpux_store_inferior_registers): Likewise.
3053 2007-10-08 Markus Deuling <deuling@de.ibm.com>
3055 * cris-tdep.c (cris_sigcontext_addr, cris_sigtramp_frame_unwind_cache)
3056 (cris_scan_prologue, crisv32_scan_prologue, find_step_target)
3057 (cris_software_single_step, cris_supply_gregset): Use get_regcache_arch
3058 or get_frame_arch to get at the current architecture by regcache or by
3059 frame, respectively.
3060 * cris-tdep.c (crisv32_single_step_through_delay, cris_push_dummy_call)
3061 (cris_unwind_pc, cris_unwind_sp, cris_register_type, cris_dump_tdep)
3062 (crisv32_register_type, cris_dwarf2_frame_init_reg): Replace
3063 current_gdbarch by gdbarch.
3065 2007-10-08 Markus Deuling <deuling@de.ibm.com>
3067 * arm-tdep.c (arm_scan_prologue, arm_make_prologue_cache)
3068 (thumb_get_next_pc, arm_get_next_pc, arm_extract_return_value)
3069 (arm_store_return_value): Use get_regcache_arch or get_frame_arch to
3070 get at the current architecture by regcache or by·frame, respectively.
3071 (arm_push_dummy_call, arm_dump_tdep): Replace current_gdbarch by
3074 2007-10-08 Markus Deuling <deuling@de.ibm.com>
3076 * amd64-tdep.c (amd64_frame_prev_register, amd64_sigtramp_frame_cache):
3077 Use get_regcache_arch or get_frame_arch to get at the current
3078 architecture by regcache or by frame, respectively.
3079 * amd64-linux-tdep.c (amd64_linux_sigcontext_addr): Likewise.
3080 * amd64-nat.c (amd64_supply_native_gregset)
3081 (amd64_collect_native_gregset): Replace current_gdbarch by gdbarch.
3083 2007-10-08 Markus Deuling <deuling@de.ibm.com>
3085 * alpha-tdep.c (alpha_register_reggroup_p): Replace current_gdbarch by
3087 * alpha-linux-nat.c (alpha_linux_register_u_offset): Likewise.
3088 (alpha_sigtramp_frame_unwind_cache, alpha_sigtramp_frame_this_id)
3089 (alpha_sigtramp_frame_sniffer, alpha_next_pc): Use get_regcache_arch or
3090 get_frame_arch to get at the current architecture by regcache or by
3091 frame, respectively.
3092 * alpha-nat.c (fetch_osf_core_registers): Likewise.
3094 2007-10-08 Markus Deuling <deuling@de.ibm.com>
3096 * dwarf2-frame.c (read_reg, execute_cfa_program, dwarf2_frame_cache)
3097 (dwarf2_frame_default_init_reg, dwarf2_frame_prev_register): Replace
3098 current_gdbarch by gdbarch.
3099 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Likewise.
3101 2007-10-08 Markus Deuling <deuling@de.ibm.com>
3103 * regcache.c (init_regcache_descr, register_type, read_pc_pid)
3104 (write_pc_pid, regcache_dump): Replace current_gdbarch by gdbarch.
3105 * regcache.c (regcache_raw_write): Use get_regcache_arch or
3106 get_frame_arch to get at the current architecture by regcache or by
3107 frame, respectively.
3109 2007-10-08 Markus Deuling <deuling@de.ibm.com>
3111 * findvar.c (value_of_register, locate_var_value): Use
3112 get_regcache_arch or get_frame_arch to get at the current architecture
3113 by regcache or by frame, respectively.
3114 * findvar.c (default_value_from_register, value_from_register): Replace
3115 current_gdbarch by gdbarch.
3117 2007-10-08 Pierre Muller <muller@ics.u-strasbg.fr>
3119 * config/i386/nm-i386.h (CHILD_POST_STARTUP_INFERIOR): ARI fix: Remove.
3121 2007-10-08 Pierre Muller <muller@ics.u-strasbg.fr>
3123 * linux-fork.c: ARI fix: include "gdb_wait.h" instead of <sys/wait.h>.
3124 Makefile.in (linux-fork.o): Add gdb_wait.h dependency.
3126 2007-10-05 Daniel Jacobowitz <dan@codesourcery.com>
3128 * remote.c (get_offsets): Only call free_symfile_segment_data if
3131 2007-10-03 Pierre Muller <muller@ics.u-strasbg.fr>
3133 * objc-exp.y: ARI fix: remove 4 PARAMS.
3135 2007-10-03 Daniel Jacobowitz <dan@codesourcery.com>
3137 * NEWS: Use uniform spacing. Correct version number for GDB 6.7
3138 news. Mention XML support for M68K in GDB 6.7.
3140 2007-10-03 Daniel Jacobowitz <dan@codesourcery.com>
3142 * gdbtypes.c (create_range_type): Do not set TYPE_FIELD_TYPE for the
3144 (init_vector_type): Use builtin_type_int32.
3146 2007-10-02 Ulrich Weigand <uweigand@de.ibm.com>
3148 * s390-tdep.c (s390_regset_from_core_section): Allow excess section
3149 size to enable bi-arch generate-core-file support.
3151 2007-10-02 Markus Deuling <deuling@de.ibm.com>
3153 * spu-tdep.c (info_spu_signal_command): Fix output for SPU signal.
3155 2007-10-02 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
3157 * tui/tui-interp.c (tui_init): Initialize tui's SIGWINCH
3159 * tui/tui-win.c (tui_initialize_win): New function for
3160 initializing tui's SIGWINCH signal handler.
3161 * tui/tui-win.h (tui_initialize_win): Declare.
3163 2007-10-02 Ulrich Weigand <uweigand@de.ibm.com>
3165 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Cast
3166 pointer to uintptr_t before casting to CORE_ADDR.
3168 2007-10-02 Markus Deuling <deuling@de.ibm.com>
3170 * linux-nat.c (PTRACE_GETSIGINFO): Add define.
3172 2007-10-02 Mark Mitchell <mark@codesourcery.com>
3174 * mingw-hdep.c (gdb_select): Stop helper threads before returning.
3175 * ser-mingw.c (enum select_thread_state): New type.
3176 (struct ser_console_state): Add have_started and thread_state.
3177 (select_thread_wait): New function.
3178 (thread_fn_type): New type.
3179 (create_select_thread): New function.
3180 (destroy_select_thread): Likewise.
3181 (start_select_thread): Likewise.
3182 (stop_select_thread): Likewise.
3183 (console_select_thread): Use new functions.
3184 (pipe_select_thread): Likewise.
3185 (file_select_thread): Likewise.
3186 (ser_console_wait_handle): Likewise.
3187 (ser_console_done_wait_handle): Likewise.
3188 (ser_console_close): Likewise.
3189 (free_pipe_state): Likewise.
3190 (pipe_wait_handle): Likewise.
3191 (pipe_done_wait_handle): Likewise.
3192 (struct net_windows_state): Derive from ser_console_state.
3193 (net_windows_select_thread): Use new functions.
3194 (net_windows_wait_handle): Likewise.
3195 (net_windows_done_wait_handle): Likewise.
3196 (net_windows_close): Likewise.
3198 2007-10-02 Daniel Jacobowitz <dan@codesourcery.com>
3200 * inflow.c (terminal_ours_1): Remove useless line.
3202 2007-10-02 Daniel Jacobowitz <dan@codesourcery.com>
3204 * mips-tdep.c (mips_read_fp_register_double): Correct check for
3206 (mips_print_fp_register): Correct check for even FP registers.
3207 (mips_virtual_frame_pointer): New function.
3208 (mips_gdbarch_init): Call set_gdbarch_virtual_frame_pointer.
3210 2007-09-30 Mike Frysinger <vapier@gentoo.org>
3212 * value.h (lookup_only_internalvar): New prototype.
3213 (create_internalvar): Likewise.
3214 * value.c (lookup_only_internalvar): New function.
3215 (create_internalvar): Likewise.
3216 (lookup_internalvar): Use new lookup_only_internalvar and
3217 create_internalvar functions.
3218 * parse.c (write_dollar_variable): Look up $ symbols in internal
3219 table first rather than last.
3221 2007-09-30 Daniel Jacobowitz <dan@codesourcery.com>
3223 * linux-nat.c (linux_nat_new_thread): New variable.
3224 (linux_child_follow_fork): Set inferior_ptid to include LWP ID. Use
3225 linux_nat_switch_fork.
3226 (lwp_list): Make public.
3227 (add_lwp): Call linux_nat_new_thread.
3228 (lin_lwp_attach_lwp, linux_nat_attach): Call add_lwp after stopping
3230 (resume_callback): Clear lp->siginfo. Remove unused variable.
3231 (linux_nat_resume): Assert that the LWP list is already initialized.
3233 (save_siginfo): New.
3234 (stop_wait_callback, linux_nat_wait): Call it.
3235 (linux_nat_set_new_thread, linux_nat_get_siginfo): New.
3236 * linux-nat.h (struct lwp_info): Add siginfo.
3237 (lwp_list, linux_nat_set_new_thread, linux_nat_get_siginfo): Declare.
3240 * amd64-linux-nat.c (amd64_linux_dr): New.
3241 (amd64_linux_dr_get): Take a PTID argument. Correct typo.
3242 (amd64_linux_dr_set): Take a PTID argument.
3243 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use ALL_LWPS.
3244 (amd64_linux_dr_reset_addr): Use amd64_linux_dr_set_addr.
3245 (amd64_linux_dr_get_status): Pass inferior_ptid to amd64_linux_dr_get.
3246 (amd64_linux_new_thread): New.
3247 (_initialize_amd64_linux_nat): Call linux_nat_set_new_thread.
3248 * i386-linux-nat.c (i386_linux_dr): New.
3249 (i386_linux_dr_get, i386_linux_dr_set): Take a PTID argument.
3250 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use ALL_LWPS.
3251 (i386_linux_dr_reset_addr): Use i386_linux_dr_set_addr.
3252 (i386_linux_dr_get_status): Pass inferior_ptid to i386_linux_dr_get.
3253 (i386_linux_new_thread): New.
3254 (i386_linux_resume): Remove unnecessary PID check.
3255 (_initialize_i386_linux_nat): Call linux_nat_set_new_thread.
3256 * ia64-linux-nat.c (enable_watchpoints_in_psr): Take PTID argument.
3257 (fetch_debug_register, fetch_debug_register_pair): Delete.
3258 (debug_registers): New.
3259 (ia64_linux_insert_watchpoint, ia64_linux_remove_watchpoint): Use
3260 ALL_LWPS and debug_registers.
3261 (ia64_linux_new_thread): New.
3262 (ia64_linux_stopped_data_address): Use linux_nat_get_siginfo.
3263 (_initialize_ia64_linux_nat): Call linux_nat_set_new_thread.
3264 * ppc-linux-nat.c (last_stopped_data_address): Delete.
3265 (saved_dabr_value): New.
3266 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint): Use
3268 (ppc_linux_new_thread): New.
3269 (ppc_linux_stopped_data_address): Use linux_nat_get_siginfo.
3270 (ppc_linux_stopped_by_watchpoint): Call ppc_linux_stopped_data_address.
3271 (_initialize_ppc_linux_nat): Call linux_nat_set_new_thread.
3272 * s390-nat.c (s390_stopped_by_watchpoint): Clear the watchpoint status
3274 (s390_fix_watch_points): Take a PTID argument.
3275 (s390_insert_watchpoint, s390_remove_watchpoint): Use ALL_LWPS.
3276 (_initialize_s390_nat): Call linux_nat_set_new_thread.
3278 2007-09-30 Daniel Jacobowitz <dan@codesourcery.com>
3279 Jeff Johnston <jjohnstn@redhat.com>
3281 * breakpoint.c (watchpoints_triggered): New.
3282 (bpstat_stop_status): Remove STOPPED_BY_WATCHPOINT argument.
3283 Check watchpoint_triggered instead. Combine handling for software
3284 and hardware watchpoints. Do not use target_stopped_data_address
3285 here. Always check a watchpoint if its scope breakpoint triggers.
3286 Do not stop for thread or overlay events. Improve check for
3287 triggered watchpoints without a value change.
3288 (watch_command_1): Insert the scope breakpoint first. Link the
3289 scope breakpoint to the watchpoint.
3290 * breakpoint.h (enum watchpoint_triggered): New.
3291 (struct breakpoint): Add watchpoint_triggered.
3292 (bpstat_stop_status): Update prototype.
3293 (watchpoints_triggered): Declare.
3294 * infrun.c (enum infwait_status): Add infwait_step_watch_state.
3295 (stepped_after_stopped_by_watchpoint): Delete.
3296 (handle_inferior_event): Make stepped_after_stopped_by_watchpoint
3297 local. Handle infwait_step_watch_state. Update calls to
3298 bpstat_stop_status. Use watchpoints_triggered to check
3300 * remote.c (stepped_after_stopped_by_watchpoint): Remove extern.
3301 (remote_stopped_data_address): Do not check it.
3303 2007-09-29 Daniel Jacobowitz <dan@codesourcery.com>
3305 * configure.ac: Add $LIBINTL when testing libbfd.
3306 * configure: Regenerated.
3308 2007-09-28 Vladimir Prus <vladimir@codesourcery.com>
3310 * NEW: Mention pending breakpoint changes and
3311 support for breakpoints at multiple locations.
3313 2007-09-27 Daniel Jacobowitz <dan@codesourcery.com>
3315 * arm-linux-tdep.c (arm_linux_software_single_step): New.
3316 (arm_linux_init_abi): Use it.
3317 * arm-tdep.c (arm_get_next_pc): Make global. Handle all-ones
3318 condition correctly.
3319 * arm-tdep.h (arm_get_next_pc): Declare.
3320 * Makefile.in (arm-linux-tdep.o): Update.
3322 2007-09-26 Vladimir Prus <vladimir@codesourcery.com>
3324 * varobj.c (install_new_value): Don't
3325 call value_get_print_value when a value is
3326 lazy. Update the print_value member in a
3329 2007-09-26 Vladimir Prus <vladimir@codesourcery.com>
3331 * breakpoint.c (create_breakpoint): Set
3332 condition on each location, not on the first
3333 location of breakpoint.
3335 2007-09-26 Jim Blandy <jimb@codesourcery.com>
3337 * remote.c (getpkt_sane): Fix error message. No animals were
3338 harmed in the making of this debugger.
3340 2007-09-26 Pierre Muller <muller@ics.u-strasbg.fr>
3342 * p-typeprint.c: Fix 11 ARI reported problems.
3343 (pascal_print_type): Fix 4 operator at end of line.
3344 (pascal_type_print_method_args) : Replace 2 DEPRECATED_STREQN macros
3345 using strncmp function.
3346 (pascal_type_print_base): Fix 2 operator at end of line.
3347 (pascal_type_print_base) : Replace 3 DEPRECATED_STREQN macros
3348 using strncmp function.
3351 2007-09-26 Pierre Muller <muller@ics.u-strasbg.fr>
3353 * Fix PR pascal/2231
3354 dwarf2read.c (read_subroutine_type):
3355 All pascal functions are prototyped.
3357 2007-09-26 Pierre Muller <muller@ics.u-strasbg.fr>
3359 * Fix PR pascal/2283
3360 p-valprint.c (pascal_val_print): correct current language check.
3361 Also print array of char as strings.
3364 2007-09-26 David Ung <davidu@mips.com>
3365 Maciej W. Rozycki <macro@mips.com>
3367 * mips-tdep.c (mips_n32n64_return_value): Fix a comment.
3369 2007-09-25 Pierre Muller <muller@ics.u-strasbg.fr>
3371 * p-exp.y: Fix 12 ARI reported problems.
3372 (name_not_typename): Fix 2 operator at end of line issues.
3373 (yylex): Fix 3 operator at end of line issues.
3374 Replace 7 DEPRECATED_STREQ macros using strcmp function.
3376 2007-09-25 David Ung <davidu@mips.com>
3377 Maciej W. Rozycki <macro@mips.com>
3379 * mips-tdep.c (mips_n32n64_return_value): Per N32/N64 ABI
3380 rules return composite types in registers as appropriate.
3382 2007-09-24 Jim Blandy <jimb@codesourcery.com>
3384 * symfile.h (struct symfile_segment_data): Doc fixes.
3385 * symfile.c (symfile_map_offsets_to_segments): Doc fixes.
3386 Assert that we were passed some loaded segment addresses,
3387 and that sections' segment numbers are valid.
3388 Simplify offset calculation.
3389 * remote.c (get_offsets): Clarify selection of relocate-by-segment
3390 strategy, and set num_segments correctly. Delete redundant
3391 assignments to do_sections.
3393 2007-09-24 Daniel Jacobowitz <dan@codesourcery.com>
3395 * frame.c (get_prev_frame_1): Also check for PC in the same register.
3397 2007-09-24 Vladimir Prus <vladimir@codesourcery.com>
3399 * breakpoint.c (remove_sal): New.
3400 (expand_line_sal_maybe): New.
3401 (create_breakpoints): Call expand_line_sal_maybe.
3402 (clear_command): Add comment.
3403 (breakpoint_re_set_one): Call expand_line_sal_maybe.
3404 * linespec.c (decode_indirect): Set explicit_pc to 1.
3405 (decode_all_digits): Set explicit_line to 1.
3406 (append_expanded_sal): New.
3407 (expand_line_sal): New.
3408 * linespec.h (expand_line_sal): Declare.
3409 * symtab.c (init_sal): Initialize explicit_pc
3411 * symtab.h (struct symtab_and_line): New fields
3412 explicit_pc and explicit_line.
3414 2007-09-23 Daniel Jacobowitz <dan@codesourcery.com>
3416 * infcall.c (call_function_by_hand): Handle language-specific
3417 pass and return by reference.
3419 * cp-abi.c (cp_pass_by_reference): New.
3420 * cp-abi.h (cp_pass_by_reference): Declare.
3421 (struct cp_abi_ops): Add pass_by_reference.
3422 * gnu-v3-abi.c (gnuv3_pass_by_reference): New.
3423 (init_gnuv3_ops): Set pass_by_reference.
3425 * language.c (language_pass_by_reference): New.
3426 (default_pass_by_reference): New.
3427 (unknown_language_defn, auto_language_defn, local_language_defn): Add
3428 default_pass_by_reference.
3429 * langauge.h (struct language_defn): Add la_pass_by_reference.
3430 (language_pass_by_reference, default_pass_by_reference): Declare.
3431 * ada-lang.c (ada_language_defn): Add default_pass_by_reference.
3432 * c-lang.c (c_language_defn, asm_language_defn)
3433 (minimal_language_defn): Likewise.
3434 (cplus_language_defn): Add cp_pass_by_reference.
3435 * f-lang.c (f_language_defn): Add default_pass_by_reference.
3436 * jv-lang.c (java_language_defn): Likewise.
3437 * m2-lang.c (m2_language_defn): Likewise.
3438 * objc-lang.c (objc_language_defn): Likewise.
3439 * p-lang.c (pascal_language_defn): Likewise.
3440 * scm-lang.c (scm_language_defn): Likewise
3442 2007-09-23 Vladimir Prus <vladimir@codesourcery.com>
3444 Allow a code breakpoint to have several locations
3446 * breakpoint.h (enum enable_state): Remove the
3447 bp_shlib_disabled enumerator.
3448 (struct bp_location): New members shlib_disabled,
3449 global_next, enabled and function_name.
3450 Rename pending to condition_not_parsed.
3452 * breakpoint.c (ALL_BP_LOCATIONS): Iterate over global_next.
3453 (ALL_BP_LOCATIONS_SAFE): Likewise.
3454 (breakpoint_enabled): Don't check for pending.
3455 (condition_command): Free and update all locations of
3457 (insert_bp_location): Adjust.
3458 (software_breakpoint_inserted_here_p): Don't care
3459 if breakpoint is enabled, as soon as it's inserted.
3460 (print_it_typical): Print bpstat's location, not
3461 bpstat's breakpoint's location.
3462 (bpstat_stop_status): Iterate over all locations, not
3464 (print_breakpoint_location): New.
3465 (print_one_breakpoint): Renamed to
3466 (print_one_breakpoint_location): ...this. Take
3467 parameters to describe which location is being
3468 printed. Modify code to properly print header
3469 for several locations and individual locations.
3470 (print_one_breakpoint): Print all locations.
3471 (breakpoint_has_pc): New.
3472 (describe_other_breakpoints): Use the above.
3473 (check_duplicates): Renamed to...
3474 (check_duplicates_for): .. this.
3475 (check_duplicates): Use check_duplicates_for.
3476 (allocate_bp_location): Adjust.
3477 (set_raw_breakpoint_without_location): New,
3478 extracted from set_raw_breakpoint.
3479 (set_breakpoint_location_function): New.
3480 (set_raw_breakpoint): Use
3481 set_raw_breakpoint_without_location.
3482 (make_breakpoint_permanent): Mark all locations
3484 (disable_breakpoints_in_shlibs): Iterate over
3486 (disable_breakpoints_in_unloaded_shlib): Likewise.
3487 (re_enable_breakpoints_in_shlibs): Likewise.
3488 (mention): Say "pending" when breakpoint has
3489 zero locations. If breakpoint has more than one
3491 (add_location_to_breakpoint): New.
3492 (create_breakpoint): Accept symtabs_and_lines, not
3493 symtab_and_line. Pass extra sals to
3494 add_location_to_breakpoint.
3495 (create_breakpoints): Pass symtabs_and_lines to
3497 (break_command_1): Make pending breakpoints
3498 have zero locations.
3499 (do_captured_breakpoint): Remove wrong allocation.
3500 (clear_command): Iterate over all locations.
3501 (unlink_locations_from_global_list): Renamed
3502 from unlink_location_from_global_list. Remove
3504 (delete_breakpoint): Remove all locations.
3505 Iterate over all locations when deciding which
3506 other location to re-enable.
3507 (all_locations_are_pending): New.
3508 (update_breakpoint_locations): Renamed from
3509 update_breakpoint_location. Try to match old
3510 and new locations using names of containing
3512 (breakpoint_re_set_one): Adjust.
3513 (find_location_by_number): New.
3514 (disable_command): Allow disabling individual location.
3515 (enable_command): Allow enabling individual location.
3516 * breakpoint.c: Adjust all uses of breakpoint's
3517 enable state to for bp_shlib_disabled change.
3519 2007-09-22 Vladimir Prus <vladimir@codesourcery.com>
3521 * breakpoint.c (do_restore_lang_radix_cleanup): Remove.
3522 (resolve_pending_breakpoint): Remove.
3523 (re_enable_breakpoints_in_shlibs): Remove.
3524 (unlink_locations_from_global_list): New.
3525 (update_breakpoint_locations): New.
3526 (breakpoint_re_set_one): Don't bail out on pending breakpoints.
3527 Use parse_condition and update_breakpoint_location to
3528 reset breakpoint. Ignore 'symbol not found' error from
3530 (breakpoint_re_set): Don't emit newline before the
3531 reason why breakpoint is not reset.
3532 (do_enable_breakpoint): Don't specially process pending
3534 (free_bp_location): New.
3535 (break_command_1): For pending breakpoints, initialize
3536 all fields of a sal with zeroes.
3537 * breakpoint.h (re_enable_breakpoints_in_shlibs): Remove.
3538 * infcmd.c (post_create_inferior): Don't call
3539 re_enable_breakpoints_in_shlibs.
3540 * infrun.c (handle_inferior_event): Likewise.
3541 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
3542 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
3543 * win32-nat.c (get_win32_debug_event): Likewise.
3545 2007-09-22 Vladimir Prus <vladimir@codesourcery.com>
3547 * breakpoint.c (create_breakpoint): Split from
3548 create_breakpoints, implementing most of its logic.
3549 Take just a single sal, single address string and
3550 single condition. Do not take parsed condition at
3552 (create_breakpoints): Just call create_breakpoint
3554 (find_condition_and_thread): New.
3555 (break_command_1): Use find_condition_and_thread.
3556 Do not keep parsed conditions.
3557 (do_captured_breakpoint): Don't convert
3558 condition string to struct expression.
3560 2007-09-22 Vladimir Prus <vladimir@codesourcery.com>
3562 * breakpoint.h (struct breakpoint): Move the cond
3564 (struct bp_location): Here.
3565 * breakpoint.c (condition_command, bpstat_stop_status)
3566 (print_one_breakpoint, allocate_bp_location)
3567 (solib_load_unload_1, create_fork_vfork_event_catchpoint)
3568 (create_exec_event_catchpoint, create_breakpoints)
3569 (break_command_1, watch_command_1, handle_gnu_v3_exceptions)
3570 (create_ada_exception_breakpoint, set_breakpoint_sal)
3571 (delete_breakpoint, breakpoint_re_set_one): Adjust.
3572 * tui/tui-winsource.c (tui_update_breakpoint_info): Adjust.
3574 2007-09-22 Vladimir Prus <vladimir@codesourcery.com>
3576 Associate bp_stat with bp_location, not breakpoint.
3577 * breakpoint.h (breakpoint_at): Change type
3579 * breakpoint.c (bpstat_alloc): Take bp_location,
3581 (bpstat_find_breakpoint): Look at bpstat's location's
3582 owner, not at bpstat->breakpoint_at.
3583 (bpstat_find_step_resume_breakpoint): Likewise.
3584 (bpstat_num): Likewise.
3585 (print_it_typical): Likewise.
3586 (print_bp_stop_message): Likewise.
3587 (watchpoint_check): Likewise.
3588 (bpstat_what): Likewise.
3589 (bpstat_get_triggered_catchpoints): Likewise.
3590 (breakpoint_auto_delete): Likewise.
3591 (delete_breakpoint): Likewise.
3592 (bpstat_stop_status): Pass location, not breakpoint,
3593 to bpstat_alloc. Look at bpstat's location's
3594 owner, not at bpstat->breakpoint_at.
3596 2007-09-21 Jim Blandy <jimb@codesourcery.com>
3598 * macrotab.h (new_macro_table): Document that removing information
3599 from an obstack/bcache-managed macro table leaks memory.
3600 * macrotab.c (macro_free, macro_bcache_free): Instead of asserting
3601 that data is never freed in obstack/bcache-managed macro tables,
3602 just leak the storage.
3603 (macro_undef): If we're undefining a macro at exactly the same
3604 source location that we defined it, simply remove the definition
3607 2007-09-21 Joel Brobecker <brobecker@adacore.com>
3609 * symfile.h (struct sym_fns): Add new field sym_read_linetable.
3610 * coffread.c, dbxread.c, elfread.c, mipsread.c somread.c:
3611 Adjust the struct sym_fns object accordingly by setting
3612 the new field to NULL.
3613 * xcoffread.c (aix_process_linenos): Make static.
3614 (xcoff_sym_fns): Set new field to aix_process_linenos.
3615 * buildsym.c (end_symtab): Replace call to PROCESS_LINENUMBER_HOOK
3616 by call to new the new sym_fns sym_read_linetable function.
3617 * config/powerpc/aix.mt (DEPRECATED_TM_FILE): Delete.
3618 * config/rs6000/tm-rs6000.h: Delete.
3620 2007-09-21 David Ung <davidu@mips.com>
3621 Maciej W. Rozycki <macro@mips.com>
3623 * mips-tdep.c (mips_n32n64_push_dummy_call): Per N32/N64 ABI
3624 rules do not treat composite types specially.
3626 2007-09-20 Maciej W. Rozycki <macro@mips.com>
3628 * mips-tdep.c (mips32_in_function_epilogue_p): New function.
3629 (mips16_in_function_epilogue_p): Likewise.
3630 (mips_in_function_epilogue_p): Likewise.
3631 (mips_gdbarch_init): Register mips_in_function_epilogue_p().
3633 2007-09-19 Joel Brobecker <brobecker@adacore.com>
3635 * configure.ac: Add check for "etext".
3636 * configure, config.in: Regenerate.
3637 * maint.c (TEXTEND): Only define if either _etext or etext
3639 Disable the profiling functionality if TEXTEND is not defined.
3641 2007-09-19 Daniel Jacobowitz <dan@codesourcery.com>
3643 * mips-tdep.c (mips_stub_frame_cache): Correct the saved return
3644 address register. Correct the call to frame_id_build.
3645 (mips_stub_frame_sniffer): Use the stub unwinder when the PC
3648 2007-09-18 Joel Brobecker <brobecker@adacore.com>
3650 * ia64-tdep.c (refine_prologue_limit): Make sure we don't scan
3651 the linetable past the function end.
3653 2007-09-18 James E. Wilson <wilson@specifix.com>
3655 * MAINTAINERS: Update my email address.
3657 2007-09-18 Jerome Guitton <guitton@adacore.com>
3659 * inf-ttrace.c (inf_ttrace_private_thread_info): New structure type.
3660 (inf_ttrace_delete_dying_threads_callback): New function.
3661 (inf_ttrace_resume): After resuming the execution, iterate over
3662 the dying threads to delete them for the thread list.
3663 (inf_ttrace_wait): on TTEVT_LWP_EXIT and TTEVT_LWP_TERMINATE,
3664 mark the corresponding thread as dying instead of removing it
3665 from the thread list.
3666 (inf_ttrace_thread_alive): return 0 for dying threads.
3668 2007-09-17 Joel Brobecker <brobecker@adacore.com>
3670 * infrun.c (insert_step_resume_breakpoint_at_frame): Add assertion
3671 that return_frame is not null.
3673 2007-09-17 Joel Brobecker <brobecker@adacore.com>
3675 * solib-svr4.c: Add include of "auxv.h".
3676 (enable_break): Use the AT_BASE auxiliary entry if available.
3677 * Makefile.in (solib-svr4.o): Update dependencies.
3679 2007-09-17 Joel Brobecker <brobecker@adacore.com>
3681 * NEWS: Create a new section for the next release branch.
3682 Rename the section of the current branch, now that it has
3685 2007-09-17 Jerome Guitton <guitton@adacore.com>
3687 * dwarf2loc.c (dwarf_expr_frame_base): Guard against NULL.
3688 * Makefile.in (dwarf2loc.o): Depend on gdb_assert.h.
3690 2007-09-16 Vladimir Prus <vladimir@codesourcery.com>
3692 * mi/mi-cmds.c (mi_cmds): Register -list-features.
3693 * mi/mi-cmds.h (mi_cmd_list_features): New.
3694 * mi/mi-main.c (mi_cmd_list_features): New.
3696 2007-09-11 Joel Brobecker <brobecker@adacore.com>
3698 GDB 6.7 branch created (branch timestamp: 2007-09-07 14:00 UTC)
3699 * version.in: Bump version to 6.7.50-20070911-cvs.
3701 2007-09-10 Daniel Jacobowitz <dan@codesourcery.com>
3703 * thread.c (free_thread): Do not delete the step resume breakpoint
3706 2007-09-10 Daniel Jacobowitz <dan@codesourcery.com>
3708 * arch-utils.c (gdbarch_info_fill): Also try core_bfd.
3709 * corelow.c (core_read_description): New.
3710 (init_core_ops): Set to_read_description.
3711 * gdbarch.sh: Add gdbarch_core_read_description.
3712 * mips-linux-tdep.c (mips_linux_core_read_description): New.
3713 (mips_linux_init_abi): Call set_gdbarch_core_read_description.
3714 * mips-tdep.c (mips_tdesc_gp32, mips_tdesc_gp64): New.
3715 (mips_register_g_packet_guesses): Use them.
3716 (_initialize_mips_tdep): Initialize them.
3717 * mips-tdep.h (mips_tdesc_gp32, mips_tdesc_gp64): Declare.
3718 * gdbarch.h, gdbarch.c: Regenerated.
3720 2007-09-10 Ulrich Weigand <uweigand@de.ibm.com>
3722 * infrun.c (stepping_past_breakpoint): New global variable.
3723 (stepping_past_breakpoint_ptid): Likewise.
3724 (prepare_to_proceed): Add STEP parameter. Do not check for Ctrl-C.
3725 Only switch threads if we need to single-step over a breakpoint hit
3726 in the previously selected thread. If stepping, remember previous
3727 thread to switch back to in STEPPING_PAST_BREAKPOINT[_PTID]. Call
3728 switch_to_thread instead of copying its contents.
3729 (proceed): Pass STEP to prepare_to_proceed. Always set ONEPROC if
3730 prepare_to_proceed returns true.
3731 (init_wait_for_inferior): Reset STEPPING_PAST_BREAKPOINT.
3732 (context_switch): Call switch_to_thread.
3733 (handle_inferior_event): Switch back to previous thread if requested
3734 in STEPPING_PAST_BREAKPOINT[_PTID] by prepare_to_proceed.
3735 * gdbthread.h (switch_to_thread): Add prototype.
3736 * thread.c (switch_to_thread): Make global.
3738 2007-09-07 Pierre Muller <muller@ics.u-strasbg.fr>
3740 * p-valprint.c: Fix 7 ARI reported problems.
3741 (pascal_val_print): Fix one operator at end of line issue.
3742 Use paddress function to remove use of
3743 deprecated_print_address_numeric function (2 times).
3744 Use SYMBOL_LINKAGE_NAME instead of DEPRECATED_SYMBOL_NAME.
3745 (pascal_value_print): Fix 3 operator at end of line issues.
3747 2007-09-07 Daniel Jacobowitz <dan@codesourcery.com>
3750 * arm-tdep.c (arm_in_call_stub): Delete.
3751 (arm_skip_stub): Handle from_arm and from_thumb stubs.
3753 2007-09-06 Daniel Jacobowitz <dan@codesourcery.com>
3755 * ppc-sysv-tdep.c (do_ppc_sysv_return_value): Handle other integer
3758 2007-09-04 Daniel Jacobowitz <dan@codesourcery.com>
3759 Jim Blandy <jimb@codesourcery.com>
3761 * NEWS: Update description of string changes. Mention print/s.
3762 * c-valprint.c (textual_element_type): New.
3763 (c_val_print): Use it. Do not skip address printing for pointers
3764 with a string format.
3765 (c_value_print): Doc update.
3766 * dwarf2read.c (read_array_type): Use make_vector_type.
3767 * gdbtypes.c (make_vector_type): New.
3768 (init_vector_type): Use it.
3769 (gdbtypes_post_init): Initialize builtin_true_unsigned_char.
3770 (_initialize_gdbtypes): Mark int8_t and uint8_t as TYPE_FLAG_NOTTEXT.
3771 * gdbtypes.h (struct builtin_type): Add builtin_true_unsigned_char.
3772 (TYPE_FLAG_NOTTEXT, TYPE_NOTTEXT): New.
3773 (make_vector_type): New.
3774 * printcmd.c (print_formatted): Only handle 's' and 'i' for examine.
3775 Call the language print routine for string format.
3776 (print_scalar_formatted): Call val_print for string format. Handle
3777 unsigned original types for char format.
3778 (validate_format): Do not reject string format.
3779 * stabsread.c (read_type): Use make_vector_type.
3780 * xml-tdesc.c (tdesc_start_vector): Use init_vector_type.
3782 2007-09-04 Michael Snyder <msnyder@access-company.com>
3784 * expprint.c (print_subexp_standard): Check strchr for null.
3785 * Makefile.in (expprint.o): Depend on gdb_assert.h.
3787 * gnu-v2-abi.c (gnuv2_value_rtti_type): Guard against null.
3789 * stabsread.c (patch_block_status): Guard against null.
3790 * Makefile.in (stabsread.o): Depend on gdb_assert.h.
3792 2007-09-04 Daniel Jacobowitz <dan@codesourcery.com>
3794 * printcmd.c (printf_command): Handle ptr_arg. Correct typo
3795 in internal error message.
3797 2007-09-04 Pedro Alves <pedro_alves@portugalmail.pt>
3798 Daniel Jacobowitz <dan@codesourcery.com>
3800 * infcmd.c (post_create_inferior): Update comment.
3801 (run_command_1): Always call post_create_inferior with 0 as
3804 * i386-cygwin-tdep.h: New.
3805 * i386-cygwin-tdep.c: Include "i386-cygwin-tdep.h".
3806 (win32_xfer_shared_library): Make it extern.
3808 * win32-nat.c: Include gdb_obstack.h and xml-support.h and
3810 (win32_so_ops): Delete.
3811 (get_relocated_section_addrs): Delete.
3812 (solib_symbols_add): Delete.
3813 (register_loaded_dll): Delete.
3814 (win32_make_so): New.
3815 (handle_load_dll): Use win32_make_so.
3816 (win32_free_so): Free the passed in so.
3817 (win32_relocate_section_addresses): Delete.
3818 (win32_solib_create_inferior_hook): Delete.
3819 (handle_unload_dll): Don't add PE offset here. Free so with
3820 win32_free_so instead of free_so.
3821 (win32_special_symbol_handling): Delete.
3822 (get_win32_debug_event): Remove unneeded calls. Set state to
3823 TARGET_WAITKIND_LOADED on a dll unload.
3824 (do_initial_win32_stuff): Clear cygwin_load_start and
3826 (map_code_section_args): Delete.
3827 (dll_code_sections_add): Delete.
3828 (core_section_load_dll_symbols): Delete.
3829 (win32_xfer_shared_libraries): New.
3830 (win32_current_sos): Delete.
3831 (win32_xfer_partial): New.
3832 (open_symbol_file_object): Delete.
3833 (in_dynsym_resolve_code): Delete.
3834 (init_win32_ops): Set win32_xfer_partial as to_xfer_partial member
3835 of win32_ops. Remove win32_so_ops settings. Don't set
3836 current_target_so_ops here.
3838 * Makefile.in (i386_cygwin_tdep_h): New variable.
3839 (i386-cygwin-tdep.o): Update dependencies.
3840 (win32-nat.o): Update dependencies.
3842 2007-09-04 Pedro Alves <pedro_alves@portugalmail.pt>
3843 Daniel Jacobowitz <dan@codesourcery.com>
3845 * gdbarch.sh (core_xfer_shared_libraries): New.
3847 * corelow.c (core_xfer_partial): Handle TARGET_OBJECT_LIBRARIES.
3849 * gdb_obstack.h (obstack_grow_str, obstack_grow_str0): New.
3851 * xml-support.c (gdb_xml_parse): Debug output tweaks.
3852 (xml_escape_text): New.
3853 * xml-support.h (xml_escape_text): Declare.
3855 * config/i386/cygwin.mh (NATDEPFILES): Move corelow.o to ...
3856 * config/i386/cygwin.mt (TDEPFILES): ... here.
3858 * win32-nat.c: (fetch_elf_core_registers): Delete.
3859 (win32_elf_core_fn): Delete.
3860 (_initialize_core_win32): Delete.
3862 * i386-cygwin-tdep.c: Include "regset.h", "gdb_objstack.h",
3863 "xml-support.h" and "gdbcore.h".
3864 (i386_win32_gregset_reg_offset): New.
3865 (I386_WIN32_SIZEOF_GREGSET): New.
3866 (i386_win32_regset_from_core_section): New.
3867 (win32_xfer_shared_library): New.
3868 (struct cpms_data): New.
3869 (core_process_module_section): New.
3870 (win32_core_xfer_shared_libraries): New.
3871 (i386_cygwin_skip_trampoline_code): Register gregset_reg_offset,
3872 gregset_num_regs, sizeof_gregset members of tdep. Register
3873 regset_from_core_section and core_xfer_shared_libraries callbacks.
3875 * Makefile.in (i386-cygwin-tdep.o): Update dependencies.
3876 * gdbarch.h, gdbarch.c: Regenerate.
3878 2007-09-03 Daniel Jacobowitz <dan@codesourcery.com>
3880 * corelow.c (core_xfer_partial): Pass writebuf to
3881 deprecated_xfer_memory in TARGET_OBJECT_MEMORY write case.
3883 2007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
3885 * arm-tdep.h (arm_skip_stub): Declare.
3886 * arm-wince-tdep.c: Don't include "solib-svr4.h". Include
3888 (arm_pe_skip_trampoline_code): New function.
3889 (arm_wince_init_abi): Register arm_pe_skip_trampoline_code as
3890 gdbarch_skip_trampoline_code callback.
3891 * Makefile.in (arm-wince-tdep.o): Update dependencies.
3893 2007-09-03 Daniel Jacobowitz <dan@codesourcery.com>
3895 * MAINTAINERS: Move Fred Fish to Past Maintainers.
3897 2007-09-03 Daniel Jacobowitz <dan@codesourcery.com>
3899 * configure.ac: Add --with-expat.
3900 * configure: Regenerated.
3902 2007-09-03 Andreas Schwab <schwab@suse.de>
3904 * configure.ac: Accept --with-system-readline.
3905 (READLINE, READLINE_DEPS, READLINE_CFLAGS): Define and substitute.
3906 * configure: Regenerate.
3907 * Makefile.in (READLINE, READLINE_DEPS, READLINE_CFLAGS): Use
3909 (CDEPS): Use $(READLINE_DEPS) instead of $(READLINE).
3911 2007-09-03 Maxim Grigoriev <maxim2405@gmail.com>
3912 Daniel Jacobowitz <dan@codesourcery.com>
3914 * mi-main.c (mi_load_progress): Handle MI2 and MI3 interpreters.
3916 2007-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3918 * top.c (print_gdb_version): Fixed a string end-of-line compiler error.
3920 2007-09-02 Daniel Jacobowitz <dan@codesourcery.com>
3922 * top.c (print_gdb_version): Update for GPL version 3.
3924 2007-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3926 * NEWS: Mention the build-id .debug files verification.
3928 2007-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3930 * linux-nat.c (linux_nat_make_corefile_notes): Fixed a buffer overflow.
3932 2007-09-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3934 * Makefile.in (symfile.o): Update dependencies.
3935 * symfile.c (symbol_file_add_with_addrs_or_offsets): Initialize the
3936 DEBUGFILE variable. FIND_SEPARATE_DEBUG_FILE called only if !PSYMTABS.
3937 (struct build_id): New structure.
3938 (build_id_bfd_get, build_id_verify, build_id_to_debug_filename): New.
3939 (find_separate_debug_file): New variable BUILD_ID.
3940 Call BUILD_ID_BFD_GET with BUILD_ID_TO_DEBUG_FILENAME as the first try.
3942 2007-08-31 Vladimir Prus <vladimir@codesourcery.com>
3944 * varobj.c (struct varobj): Fix comment
3945 for the type member not to lie when it can be
3948 2007-08-31 Vladimir Prus <vladimir@codesourcery.com>
3950 Implement -var-info-path-expression.
3952 * mi/mi-cmds.h (mi_cmd_var_info_path_expression):
3954 * mi/mi-cmds.c (mi_cmds): Register var-info-path-expression.
3955 * mi/mi-cmd-var.c (mi_cmd_var_info_path_expression): New.
3956 * varobj.c (struct varobj): New field 'path_expr'.
3957 (c_path_expr_of_child, cplus_path_expr_of_child)
3958 (java_path_expr_of_child): New.
3959 (struct language_specific): New field path_expr_of_child.
3960 (varobj_create): Initialize the path_expr field.
3961 (varobj_get_path_expr): New.
3962 (new_variable): Initialize the path_expr field.
3963 (free_variable): Free the path_expr field.
3964 (adjust_value_for_children_access): New parameter
3966 (c_number_of_children): Adjust.
3967 (c_describe_child): New parameter CFULL_EXPRESSION.
3968 Compute full expression.
3969 (c_value_of_child, c_type_of_child): Adjust.
3970 (cplus_number_of_children): Adjust.
3971 (cplus_describe_child): New parameter CFULL_EXPRESSION.
3972 Compute full expression.
3973 (cplus_name_of_child, cplus_value_of_child)
3974 (cplus_type_of_child): Adjust.
3975 * varobj.h (varobj_get_path_expr): Declare.
3977 2007-08-31 Vladimir Prus <vladimir@codesourcery.com>
3979 * mi/mi-cmd-var.c (print_varobj): If a varobj
3980 type is NULL, don't try to print it.
3982 2007-08-30 Alan Modra <amodra@bigpond.net.au>
3984 * ppc-linux-nat.c (right_fill_reg): Delete.
3985 (supply_gregset): Use ppc_supply_gregset.
3986 (supply_fpregset): Use ppc_supply_fpregset.
3987 (fill_gregset): Use ppc_collect_gregset.
3988 (fill_fpregset): Use ppc_collect_fpregset.
3989 * ppc-linux-tdep.c (PPC_LINUX_PT_*): Don't define.
3990 (right_supply_register, ppc_linux_supply_gregset): Delete.
3991 (ppc32_linux_supply_gregset, ppc64_linux_supply_gregset): Delete.
3992 (ppc_linux_supply_fpregset): Delete.
3993 (ppc_linux_collect_gregset): New function.
3994 (ppc32_linux_reg_offsets, ppc64_linux_reg_offsets): New.
3995 (ppc32_linux_gregset, ppc64_linux_gregset): Update to use reg offsets,
3996 ppc_linux_supply_gregset, and ppc_collect_gregset.
3997 (ppc_linux_fpregset): Rename to ppc32_linux_fpregset and update.
3998 (ppc_linux_gregset, ppc_linux_fpregset): New functions.
3999 (ppc_linux_regset_from_core_section): Update.
4000 * ppc-tdep.h (ppc_linux_gregset, ppc_linux_fpregset): Declare.
4001 (ppc_linux_supply_gregset, ppc_linux_supply_fpregset): Delete.
4002 (struct ppc_reg_offsets): Add gpr_size, xr_size, fpscr_size fields.
4003 * ppcobsd-tdep.c (ppcobsd_supply_gregset): Delete FIXME and assert.
4004 (ppcobsd_collect_gregset): Likewise.
4005 (_initialize_ppcnbsd_tdep): Init gpr_size, xr_size, fpscr_size.
4006 * ppcnbsd-tdep.c (_initialize_ppcobsd_tdep): Likewise.
4007 * ppcobsd-nat.c (_initialize_ppcobsd_nat): Likewise.
4008 * rs6000-aix-tdep.c (rs6000_aix32_reg_offsets): Likewise.
4009 (rs6000_aix64_reg_offsets): Likewise.
4010 (rs6000_aix_supply_regset): Call ppc_supply_fpregset without testing
4011 ppc_floating_point_unit_p.
4012 (rs6000_aix_collect_regset): Similarly.
4013 * rs6000-tdep.c (ppc_supply_reg): Add regsize param. Adjust offset
4014 when regsize is larger than regcache register size.
4015 (ppc_collect_reg): Similarly zero pad when regsize is larger than
4016 regcache register size.
4017 (ppc_greg_offset): New function, split out from..
4018 (ppc_supply_gregset): ..here. Separate code handling all regs from
4019 single reg case. Correct xer offset.
4020 (ppc_fpreg_offset): New function, split out from..
4021 (ppc_supply_fpregset): ..here. Separate code handling all regs from
4023 (ppc_collect_gregset, ppc_collect_fpregset): Likewise.
4024 (ppc_supply_fpregset, ppc_collect_fpregset): Don't assert we have
4025 a fp unit, instead return if no fp.
4027 2007-08-29 Jim Blandy <jimb@codesourcery.com>
4029 * breakpoint.c (watch_command_1): Remove '#ifdef HPUXHPPA' block;
4030 this code has not been compiled for two years.
4032 2007-08-29 Michael Snyder <msnyder@access-company.com>
4034 * event-top.c (gdb_readline2): Return after EOF.
4036 2007-08-29 Joel Brobecker <brobecker@adacore.com>
4038 * symtab.c: Remove a function that has been commented out 3 years ago.
4040 2007-08-29 Randolph Chung <tausq@debian.org>
4042 * hppa-tdep.c (hppa32_cannot_fetch_register)
4043 (hppa64_cannot_fetch_register): New functions.
4044 (hppa_gdbarch_init): Set cannot_fetch_register appropriately.
4045 * hppa-tdep.h (hppa_regnum): Add HPPA_CR26_REGNUM.
4047 2007-08-28 Michael Snyder <msnyder@access-company.com>
4049 * mi/mi-cmd-var.c (mi_print_value_p): No longer necessary to
4050 check for null before calling check_typedef.
4052 * NEWS: Mention Coverity bug fixes.
4054 2007-08-27 Markus Deuling <deuling@de.ibm.com>
4056 * spu-tdep.c (spu_pointer_to_address): New function.
4057 (spu_integer_to_address): Likewise.
4058 (spu_gdbarch_init): Add spu_pointer_to_address and
4059 spu_integer_to_address to gdbarch.
4061 2007-08-26 Pedro Alves <pedro_alves@portugalmail.pt>
4063 * arm-wince-tdep.c (ARM_WINCE_JB_PC): Change to 10.
4065 2007-08-23 Joel Brobecker <brobecker@adacore.com>
4067 * Makefile.in (copying.c): Use the top-level COPYING3 as the file
4068 that contains the GDB license.
4069 * copying.awk: Adjust to the GPLv3 wording.
4070 * copying.c: Regenerate.
4072 2007-08-23 Joel Brobecker <brobecker@adacore.com>
4074 * copying.awk: Protoization, and i18n markup.
4076 2007-08-23 Joel Brobecker <brobecker@adacore.com>
4078 * config/djgpp/djconfig.sh: Switch license to GPLv3.
4079 * copyright.sh: Likewise.
4080 * gdb-events.sh: Likewise.
4081 * gdb_gcore.sh: Likewise.
4082 * gdb_mbuild.sh: Likewise.
4083 * gdbarch.sh: Likewise.
4084 * observer.sh: Likewise.
4085 * features/feature_to_c.sh: Likewise.
4086 * regformats/regdat.sh: Likewise.
4088 2007-08-23 Joel Brobecker <brobecker@adacore.com>
4090 Switch the license of all .c files to GPLv3.
4091 Switch the license of all .h files to GPLv3.
4092 Switch the license of all .cc files to GPLv3.
4094 2007-08-23 Joel Brobecker <brobecker@adacore.com>
4096 * configure.ac: Switch license to GPLv3.
4098 2007-08-22 Daniel Jacobowitz <dan@codesourcery.com>
4100 * mips-tdep.c (mips_gdbarch_init): Use Tag_GNU_MIPS_ABI_FP to
4101 determine the file's FPU type.
4103 2007-08-22 Daniel Jacobowitz <dan@codesourcery.com>
4105 * mips-tdep.c (mips_n32n64_fp_arg_chunk_p): New.
4106 (mips_n32n64_push_dummy_call): Always increment float_argreg along
4107 with argreg. Use mips_n32n64_fp_arg_chunk_p.
4109 2007-08-22 Daniel Jacobowitz <dan@codesourcery.com>
4111 * solib-svr4.c (scan_dyntag): Only read target memory when necessary.
4113 (elf_locate_base): Look for DT_MIPS_RLD_MAP first. Expand comments.
4114 (elf_lookup_lib_symbol): Fix formatting.
4116 2007-08-21 Michael Snyder <msnyder@access-company.com>
4118 * dbxread.c (read_dbx_symtab): Guard null deref.
4121 * valops.c (find_overload_match): Guard against NULL.
4123 2007-08-21 Daniel Jacobowitz <dan@codesourcery.com>
4125 * MAINTAINERS (Patch Champions): Remove self.
4127 2007-08-21 Chris Smith <chris.smith@st.com>
4129 * cli/cli-script.c (read_command_lines): Call dont_repeat for each
4132 2007-08-18 Michael Snyder <msnyder@access-company.com>
4134 * stabsread.c (dbx_lookup_type): Memory leak.
4136 * event-loop.c (delete_async_signal_handler): Move pointer null
4137 test to before pointer dereference.
4139 * ui-out.c (append_header_to_list): Possible cut and paste error.
4141 * MAINTAINERS: white space tweak.
4143 2007-08-17 Michael Snyder <msnyder@access-company.com>
4145 * stack.c (print_frame): Memory leak.
4147 * completer.c (filename_completer): Avoid memory leak.
4148 Remove unnecessary nested block.
4150 * c-exp.y (parse_number): Memory leak.
4152 * completer.c (location_completer): Must free 'fn_list', except
4153 in the one case where it is returned (as 'list').
4155 * varobj.c (value_of_root): Memory leak.
4157 * gdbtypes.h (virtual_base_list): Remove export decl.
4158 * gdbtypes.c (virtual_base_list): Make static. Not called outside.
4159 (virtual_base_index): Memory leak.
4160 (virtual_base_index_skip_primaries): Ditto.
4162 2007-08-17 Maxim Grigoriev <maxim2405@gmail.com>
4164 * xtensa-tdep.c (ARG_NOF, ARG_1ST, PS_WOE, PS_EXC, C0_MAXOPDS)
4165 (C0_NREGS, C0_CLESV, C0_SP, C0_FP, C0_RA, C0_ARGS, C0_NARGS)
4166 (C0_CONST, C0_INEXP, C0_NOSTK): New macros.
4167 (xtensa_read_register): New function.
4168 (xtensa_windowed_frame_cache, xtensa_call0_frame_cache, xtensa_c0reg)
4169 (xtensa_insn_kind): New types.
4170 (xtensa_frame_cache, xtensa_alloc_frame_cache, xtensa_frame_cache)
4171 (xtensa_frame_prev_register, xtensa_return_value, xtensa_skip_prologue)
4172 (xtensa_verify_config, xtensa_pseudo_register_read)
4173 (xtensa_pseudo_register_write, xtensa_extract_return_value)
4174 (xtensa_store_return_value)
4175 (xtensa_push_dummy_call): Extended to support Xtensa Call0 ABI.
4176 (windowing_enabled, extract_call_winsize, xtensa_unwind_dummy_id)
4177 (xtensa_frame_this_id, xtensa_frame_prev_register)
4178 (xtensa_register_type, xtensa_reg_to_regnum): Cosmetic changes.
4179 (call0_frame_cache, call0_frame_get_reg_at_entry)
4180 (call0_classify_opcode, call0_track_op)
4181 (call0_analyze_prologue, call0_frame_cache): New functions.
4183 2007-08-17 Vladimir Prus <vladimir@codesourcery.com>
4185 * breakpoint.c (bpstat_free): New.
4186 (bpstat_clear): Use bpstat_free.
4187 (delete_breakpoint): Document why we cannot
4188 remove bpstats from stop_bpstat.
4189 * breakpoint.h (bpstat_free): Declare.
4191 2007-08-16 Michael Snyder <msnyder@access-company.com>
4193 * event-loop.c (gdb_wait_for_event): Move statement into "if" block.
4195 2007-08-15 Paul Hilfinger <hilfinger@adacore.com>
4196 Joel Brobecker <brobecker@adacore.com>
4198 * ada-lang.c (resolve_subexp): Correct arity of binary operators.
4200 2007-08-15 Paul Hilfinger <hilfinger@adacore.com>
4201 Joel Brobecker <brobecker@adacore.com>
4203 * ada-lang.c (possible_user_operator_p): Alternative fix to last
4204 checkin guarding against NULL.
4206 2007-08-14 Michael Snyder <msnyder@access-company.com>
4208 * tui-command.c, tui-data.c, tui-disasm.c, tui-file.c, tui-io.c,
4209 tui-layout.c, tui-regs.c, tui-source.c, tui-win.c, tui-windata.c,
4210 tui-wingeneral.c, tui-winsource.c: Coding standard, && and ||
4211 go at beginning of new line.
4213 * tui-data.c, tui-data.h, tui-disasm.c, tui-disasm.h, tui-hooks.c,
4214 tui-io.c, tui-layout.c, tui-layout.h, tui-out.c, tui-regs.c,
4215 tui-source.c, tui-source.h, tui-stack.c, tui-win.c, tui-win.h,
4216 tui-windata.c, tui-windata.h, tui-wingeneral.c, tui-winsource.c,
4217 tui-winsource.h, tui.c, tui.h: Function declarations and
4218 definitions, wrap long lines.
4220 * tui-command.c, tui-data.c, tui-disasm.c, tui-layout.c,
4221 tui-regs.c, tui-win.c, tui-windata.c, tui-winsource.c, tui.c:
4222 Reformat block comments to GNU standard.
4224 * tui-command.c, tui-data.c, tui-data.h, tui-disasm.c, tui-file.c,
4225 tui-hooks.c, tui-interp.c, tui-io.c, tui-layout.c, tui-out.c,
4226 tui-regs.c, tui-regs.h, tui-source.c, tui-stack.c, tui-win.c,
4227 tui-windata.c, tui-wingeneral.c, tui-winsource.c, tui-winsource.h,
4228 tui.c, tui.h: Comment reformatting to coding standard (capitals,
4229 spaces after periods, etc).
4231 * tui-data.c, tui-data.h, tui-disasm.c, tui-hooks.c, tui-layout.c,
4232 tui-regs.c, tui-source.c, tui-stack.c, tui-win.c, tui-windata.c,
4233 tui-wingeneral.c, tui-wingeneral.h, tui-winsource.c, tui.c,
4234 tui-winsource.h: Whitespace changes, fix pointer declarations
4237 2007-08-14 Joel Brobecker <brobecker@adacore.com>
4238 Michael Snyder <msnyder@access-company.com>
4240 * ada-lang.c (field_alignment): Guard against NULL.
4242 2007-08-14 Joel Brobecker <brobecker@adacore.com>
4244 * MAINTAINERS (Global Maintainers): Add self.
4246 2007-08-14 Michael Snyder <msnyder@access-company.com>
4248 * mi/mi-interp.c (mi_cmd_interpreter_exec): Dead code, dead variable.
4250 * ada-lang.c (possible_user_operator_p): Guard against NULL.
4252 * varobj.c (cplus_describe_child): Guard against null.
4253 Use "NULL" instead of "0" to initialize pointers.
4255 2007-08-14 Daniel Jacobowitz <dan@codesourcery.com>
4257 * arm-tdep.c (arm_gdbarch_init): Allow unknown ABI and FPU settings
4258 to match any gdbarch with matching OSABI. Set default ABI and FPU
4259 after running the OSABI handler.
4261 2007-08-14 Daniel Jacobowitz <dan@codesourcery.com>
4263 * config/i386/linux.mh (NATDEPFILES): Move corelow.o from here...
4264 * config/i386/linux.mt (TDEPFILES): ...to here.
4266 2007-08-14 Vladimir Prus <vladimir@codesourcery.com>
4268 * breakpoint.c (disable_breakpoints_in_shlibs): Remove
4269 the 'silent' parameter and code to implement that.
4270 * breakpoint.h (disable_breakpoints_in_shlibs): Adjust
4272 * win32-nat.c: Adjust.
4275 2007-08-14 Vladimir Prus <vladimir@codesourcery.com>
4277 * breakpoint.c (update_breakpoints_after_exec): Don't
4278 set address to zero.
4280 2007-08-13 Michael Snyder <msnyder@access-company.com>
4282 * valops.c: Whitespace clean-up.
4284 * tui/tui-winsource.c (tui_alloc_source_buffer): Clean up allocation.
4286 * event-top.c (command_line_handler): Memory leak.
4288 * mi/mi-cmd-var.c (mi_cmd_var_set_format): Memory leak.
4289 No need to make copy.
4291 * source.c (find_source_lines): Require symtab 's'.
4293 2007-08-11 Michael Snyder <msnyder@access-company.com>
4295 * completer.c: Spelling fix in comments.
4297 2007-08-10 Michael Snyder <msnyder@access-company.com>
4299 * gdbtypes.c: Coding standard cleanup.
4300 * gdbtypes.c: Comment/whitespace cleanup.
4302 * stabsread.c (read_huge_number): Attempt to compute value before
4303 values that it depends on.
4305 * linespec.c (decode_dollar): Dead code, ptr can't be non-null.
4306 (decode_objc): Use "NULL" instead of 0.
4307 (find_method): Ditto.
4308 (decode_all_digits): Ditto.
4309 (decode_dollar): Ditto.
4311 * mi/mi-main.c (mi_cmd_data_evaluate_expression): Resource leak.
4313 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Memory leak.
4315 * solib-svr4.c (enable_break): Don't free tmp_pathname until
4318 * completer.c: Comment/whitespace cleanup.
4320 2007-08-10 Joel Brobecker <brobecker@adacore.com>
4322 * Makefile.in (i386nbsd-nat.o): Add missing dependency.
4324 2007-08-10 Maxim Grigoriev <maxim2405@gmail.com>
4326 * remote-fileio.c (remote_fileio_resize_fd_map): Initialize newly
4327 allocated file descriptors.
4329 2007-08-10 Joel Brobecker <brobecker@adacore.com>
4331 * Makefile.in: Minor cleanup throughout; add some missing variables,
4332 add some missing rules, remove some rules that are no longer needed,
4333 and fix the dependencies in several rules.
4335 2007-08-10 Ludovic Courtès <ludo@gnu.org>
4337 * Makefile.in (SFILES): Add scm-{exp,lang,valprint}.c.
4338 (scm_lang_h, scm_tags_h): New.
4339 (COMMON_OBS): Add scm-{exp,lang,valprint}.o.
4340 (scm-exp.o, scm-lang.o, scm-valprint.o): New targets.
4341 * defs.h (enum language): Add `language_scm'.
4343 * MAINTAINERS: Add Emacs local variables to use UTF-8 upon
4346 2007-08-09 Ludovic Courtès <ludo@gnu.org>
4348 * MAINTAINERS (Write After Approval): Add myself.
4350 2007-08-09 Michael Snyder <msnyder@access-company.com>
4352 * solib.c (solib_open): Memory leak -- openp returns xmalloc buffer.
4354 2007-08-09 Joel Brobecker <brobecker@adacore.com>
4356 * solib-som.c (som_relocate_section_addresses): Stop saving
4357 the $CODE$ section in the so_list structure.
4359 2007-08-08 Maxim Grigoriev <maxim2405@gmail.com>
4361 * xtensa-tdep.h (XTENSA_MAX_COPROCESSOR): New.
4362 (xtensa_register_group_t): Add entries for coprocessors.
4363 * xtensa-tdep.c (xtensa_init_reggroups): New register groups.
4364 (xtensa_add_reggroups): Likewise.
4365 (xtensa_register_reggroup_p): Likewise.
4366 (xtensa_coprocessor_register_group): New function.
4369 2007-08-08 Jan Kratochvil <jan.kratochvil@redhat.com>
4371 * serial.c (serial_open): Fix the OPEN parameter macro expansion.
4373 2007-08-08 Michael Snyder <msnyder@access-company.com>
4375 * target.c (target_read_string): Guard against null.
4377 * varobj.c (value_of_root): Move alloc after return to avoid leak.
4379 * tui/tui-layout.c (tui_set_layout): Dead code, dead variable.
4380 (tui_set_layout_for_display_command): Mem leak.
4382 * top.c (command_line_input): Memory leak.
4384 * solib-svr4.c (open_symbol_file_object): Memory leak.
4385 (svr4_current_sos): Ditto.
4386 (enable_break): Ditto.
4388 * cp-valprint.c (cp_print_hpacc_virtual_table_entries): Memory leak.
4390 * dwarf2read.c (add_partial_symbol): Memory leak.
4392 2007-08-06 Michael Snyder <msnyder@access-company.com>
4394 * ada-lang.c (desc_bounds): Comparison of function address to NULL.
4396 2007-08-05 Jim Blandy <jimb@codesourcery.com>
4398 * macroexp.c (init_buffer): Remove testing code that overrides the
4399 caller's length guess.
4400 (gather_arguments): Use a larger initial size, now that the vector
4401 growth code has been exercised.
4403 2007-08-05 Pedro Alves <pedro_alves@portugalmail.pt>
4405 * solib-target.c (solib_target_relocate_section_addresses): Add
4406 orig_delta to addr_high.
4408 2007-08-04 Michael Snyder <msnyder@access-company.com>
4410 * remote-fileio.c (remote_fileio_func_write): Memory leak.
4412 * breakpoint.c (print_one_breakpoint): Off by one error.
4414 * tracepoint.c (add_register): Off by one error.
4415 (stringify_collection_list): Free malloc buffer.
4417 2007-08-03 Michael Snyder <msnyder@access-company.com>
4419 * mi-cmd-var.c (mi_cmd_var_delete): Remove unused variable,
4420 stop memory leak, straighten out cleanups.
4422 * jv-lang.c (java_link_class_type): Guard against NULL.
4424 2007-08-02 Michael Snyder <msnyder@access-company.com>
4426 * gdbtypes.c (create_set_type): Test should only be done within
4427 the preceeding if block. Otherwise, variable is uninitialized.
4429 * gdbtypes.c (check_typedef): Guard NULL.
4431 2007-08-01 Michael Snyder <msnyder@access-company.com>
4433 * cli/cli-decode.c (lookup_cmd): Check for null earlier, to
4434 avoid dereference in lookup_cmd_1.
4436 * tui/tui-data.c (tui_alloc_content): Move assign out of if,
4437 clean up long lines.
4438 (tui_alloc_generic_win_info): Tidy by using XMALLOC macro.
4439 (tui_alloc_win_info): Ditto.
4440 (tui_add_content_elements): Ditto.
4441 * tui/tui-file.c (tui_file_magic): Ditto.
4443 2007-07-31 Michael Snyder <msnyder@access-company.com>
4445 * breakpoint.c (breakpoint_init_inferior): Add 'else' to 'if'.
4446 True and false paths are mutually exclusive.
4448 * event-top.c (command_line_handler): Add pedantic return.
4450 * f-valprint.c (info_common_command): Bail out to prevent null
4451 pointer deref. Break up a long line.
4453 * exec.c (xfer_memory): Remove redundant condition from 'if'.
4455 * symfile.c (reread_separate_symbols): Free xmalloced memory.
4457 * printcmd.c (build_address_symbolic): Remove dead code and dead
4460 2007-07-31 Daniel Jacobowitz <dan@codesourcery.com>
4462 * linespec.c (minsym_found): Advance to the next line if possible.
4464 2007-07-31 Pedro Alves <pedro_alves@portugalmail.pt>
4466 * arm-wince-tdep.c (arm_wince_init_abi): Remove svr4 related call.
4467 * config/arm/wince.mt (TDEPFILES): Remove solib-legacy.o and
4468 solib-svr4.o, and add solib-target.o
4470 2007-07-27 Michael Snyder <msnyder@access-company.com>
4472 * tui/tui-data.c (tui_alloc_generic_win_info): Wrong arg for sizeof.
4474 2007-07-26 Maciej W. Rozycki <macro@linux-mips.org>
4476 * MAINTAINERS (Write After Approval): Add myself.
4478 2007-07-26 Maciej W. Rozycki <macro@mips.com>
4480 * Makefile.in (MAKEHTMLFLAGS): Also search the current directory
4483 2007-07-25 Maciej W. Rozycki <macro@mips.com>
4485 * Makefile.in (MAKEHTMLFLAGS): Remove "-glossary".
4487 2007-07-24 Michael Snyder <msnyder@access-company.com>
4489 * solib-svr4.c (svr4_fetch_objfile_link_map): Null pointer check of
4490 'buffer' must cover both branches that call strcmp (Coverity).
4492 * stack.c (print_frame_args): Check return value of lookup_symbol.
4494 * ax-gdb.c (find_field): Guard against null ptr.
4496 2007-07-24 Ulrich Weigand <uweigand@de.ibm.com>
4498 * regformats/reg-spu.dat: Fix order of npc, id registers.
4500 2007-07-24 Ulrich Weigand <uweigand@de.ibm.com>
4502 * target.c (memory_xfer_partial): Accesses to unmapped overlay
4503 sections should always go to the executable file.
4505 2004-07-20 Chris Dearman <chris@mips.com>
4507 * mips-tdep.c (heuristic_proc_start): Add more MIPS16 function
4508 prologue instructions.
4510 2007-07-20 Maciej W. Rozycki <macro@mips.com>
4512 * mips-tdep.c (mips_next_pc): Use is_mips16_addr() instead of
4515 2007-07-20 Chris Dearman <chris@mips.com>
4516 Maciej W. Rozycki <macro@mips.com>
4518 * mips-tdep.c (fetch_mips_16): Fix typos and reformat the
4521 2007-07-17 Pedro Alves <pedro_alves@portugalmail.pt>
4522 Daniel Jacobowitz <dan@codesourcery.com>
4524 * config/i386/cygwin.mt (TDEPFILES): Add solib-target.o.
4525 * coff-pe-read.c (read_pe_exported_syms): Delete verbose
4527 * NEWS: Mention gdbserver DLL support.
4529 2007-07-17 Daniel Jacobowitz <dan@codesourcery.com>
4531 * dwarf2read.c (dwarf_decode_lines): Detect address size mismatches.
4533 2007-07-16 H.J. Lu <hongjiu.lu@intel.com>
4535 * i386-linux-nat.c (fetch_regs): Work around gcc 3.4 alias
4538 2007-07-13 Kevin Buettner <kevinb@redhat.com>
4540 * mep-tdep.c (mep_analyze_prologue): Update comment for BRA
4543 2007-07-12 Kevin Buettner <kevinb@redhat.com>
4545 * mep-tdep.c (IS_BRA, BRA_DISP): New macros.
4546 (mep_analyze_prologue): Add case for BRA instruction.
4548 2007-07-12 Ulrich Weigand <uweigand@de.ibm.com>
4550 * solib-svr4.c (LM_ADDR_CHECK): Relax prelink recognition heuristic.
4552 2007-07-10 Nick Roberts <nickrob@snap.net.nz>
4554 * breakpoint.c: Include "top.h".
4555 (breakpoint_1): Don't set convenience variable $_ if server prefix
4557 (_initialize_breakpoint): Describe this behaviour in command help.
4559 2007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
4561 * solib-target.c (library_list_start_segment): Cast address to
4564 2007-07-06 Mark Kettenis <kettenis@gnu.org>
4566 * bsd-uthread.c (bsd_uthread_wait): Don't try to fetch thread IDs
4567 for terminated processes.
4569 2007-07-05 Michael Snyder <msnyder@access-company.com>
4571 * event-top.c (cli_command_loop): Prompt string can (and should)
4572 be freed after call to readline (Coverity). Also move local var
4573 declarations into block where they are used.
4575 * tui/tui-interp.c (tui_command_loop): Prompt string can (and
4576 should) be freed after call to readline (Coverity). Also move
4577 local var declarations into block where they are used.
4579 2007-07-03 Andreas Schwab <schwab@suse.de>
4581 * linux-nat.c (linux_nat_info_proc_cmd): Fix parsing of columns in
4584 2007-07-03 Paul Gilliam <pgilliam@us.ibm.com>
4585 Thiago Bauermann <bauerman@br.ibm.com>
4586 Joseph S. Myers <joseph@codesourcery.com>
4587 Daniel Jacobowitz <dan@codesourcery.com>
4589 * remote.c (remote_check_symbols): Use
4590 gdbarch_convert_from_func_ptr_addr.
4591 * infcall.c (find_function_addr): Handle function descriptors
4592 without debugging information.
4593 * ppc-linux-tdep.c (ppc_linux_convert_from_func_ptr_addr): Renamed
4594 from ppc64_linux_convert_from_func_ptr_addr. Handle -msecure-plt.
4595 (ppc_linux_init_abi): Always set convert_from_func_ptr_addr.
4596 * solib-svr4.c (solib_break_names): Remove "._dl_debug_state".
4597 (bfd_lookup_symbol): Do not take a SECT_FLAGS argument. Always
4598 allow SEC_CODE and SEC_DATA.
4599 (enable_break): Update calls. Pass current_target to solib_add.
4600 Use gdbarch_convert_from_func_ptr_addr.
4602 2007-07-03 Ilko Iliev <iliev@ronetix.at>
4603 Daniel Jacobowitz <dan@codesourcery.com>
4605 * symfile.c (print_transfer_performance): Avoid integer overflow.
4608 2007-07-03 Markus Deuling <deuling@de.ibm.com>
4610 * cp-namespace.c (lookup_symbol_file): Add block to
4611 lookup_symbol_global call.
4612 * Makefile.in (solist_h): Add dependency on symtab header.
4613 (symtab.o): Add dependency on solist header.
4614 * solib.c (solib_global_lookup): New function.
4615 * solib-svr4.c (scan_dyntag): Likewise.
4616 (elf_locate_base): Call helper routine scan_dyntag.
4617 (elf_lookup_lib_symbol): New function.
4618 (_initialize_svr4_solib): Add elf_lookup_lib_symbol to svr4_so_ops.
4619 * solist.h (symtab.h): New include.
4620 (struct target_so_ops): New member lookup_lib_global_symbol.
4621 (solib_global_lookup): New prototype.
4622 * symtab.c: New include solist.h.
4623 (lookup_objfile_from_block): New function.
4624 (lookup_global_symbol_from_objfile): New function.
4625 (basic_lookup_symbol_nonlocal): Add block to lookup_symbol_global call.
4626 (lookup_symbol_global): Call library-specific lookup procedure.
4627 * symtab.h (lookup_global_symbol_from_objfile): New prototype.
4629 * NEWS: Document framework.
4631 2007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
4633 * target-descriptions.c (tdesc_create_reg): Do not set reg->type
4636 * cli/cli-script.c (build_command_line): Update NULL check.
4638 2007-07-02 Michael Snyder <msnyder@access-company.com>
4640 * p-exp.y (yylex): Memory leak, 'uptokstart' must be freed (Coverity).
4642 2007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
4644 * Makefile.in (XMLFILES): Add library-list.dtd.
4645 (ALLDEPFILES): Add solib-target.o.
4646 (solib-target.o): New rule.
4647 * remote.c (PACKET_qXfer_libraries): New constant.
4648 (remote_protocol_features): Add qXfer:libraries:read.
4649 (remote_wait): Recognize library stop replies.
4650 (remote_async_wait): Likewise. Fix typo.
4651 (remote_xfer_partial): Handle TARGET_OBJECT_LIBRARIES.
4652 (init_remote_async_ops): Fix typo.
4653 (_initialize_remote): Register "set remote library-info-packet".
4654 * solib-som.c (som_current_sos): Set addr_low and addr_high.
4655 * solib-target.c: New file.
4656 * solib.c (solib_map_sections): Use addr_low and addr_high instead
4658 (info_sharedlibrary_command): Likewise.
4659 (solib_add_library, solib_remove_library): New.
4660 * solist.h (struct so_list): Replace textsection with addr_low and
4662 * target.h (enum target_object): Add TARGET_OBJECT_LIBRARIES.
4663 * NEWS: Describe new qXfer:libraries:read and shared library
4665 * features/library-list.dtd: New.
4667 2007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
4669 * infrun.c (inferior_ignoring_startup_exec_events): Delete.
4670 (start_remote): Use STOP_QUIETLY_REMOTE.
4671 (handle_inferior_event): Do not condition TARGET_WAITKIND_LOADED
4672 support on a SOLIB_ADD definition. Update breakpoints_inserted.
4673 Update to match shared library event breakpoint support. Only
4674 resume if appropriate. Handle STOP_QUIETLY_REMOTE.
4675 (normal_stop): Handle TARGET_WAITKIND_LOADED.
4676 * fork-child.c (startup_inferior): Do not set
4677 inferior_ignoring_startup_exec_events
4678 * inferior.h (inferior_ignoring_startup_exec_events): Delete
4680 (enum stop_kind): Improve documentation. Add STOP_QUIETLY_REMOTE.
4682 2007-07-02 Markus Deuling <deuling@de.ibm.com>
4684 * breakpoint.c (insert_bp_location): Remove dead code
4685 (DISABLE_UNSETTABLE_BREAK).
4686 (disable_breakpoints_in_shlibs)
4687 (disable_breakpoints_in_unloaded_shlib): Likewise (comment).
4689 2007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
4691 * breakpoint.c (reattach_breakpoints): Do not use remove_breakpoint.
4692 Call insert_bp_location.
4694 2007-07-01 H.J. Lu <hongjiu.lu@intel.com>
4696 * core-regset.c (fetch_core_registers): Work around gcc 3.4
4699 2007-07-01 Daniel Jacobowitz <dan@codesourcery.com>
4701 * minsyms.c (lookup_minimal_symbol_by_pc_section): Search fewer
4704 2007-07-01 Daniel Jacobowitz <dan@codesourcery.com>
4706 * top.c (gdb_readline_wrapper_line): Call rl_callback_handler_remove.
4707 (struct gdb_readline_wrapper_cleanup): Remove prompt_orig.
4708 (gdb_readline_wrapper_cleanup): Do not reset the prompt.
4709 (gdb_readline_wrapper): Do not save the prompt. Pass our prompt
4710 to display_gdb_prompt.
4712 2007-07-01 Daniel Jacobowitz <dan@codesourcery.com>
4715 * target.c (memory_xfer_partial): Do not continue past targets with
4718 2007-06-30 Andreas Schwab <schwab@suse.de>
4720 * m68k-tdep.c (m68k_ps_type): New.
4721 (m68k_init_types): New.
4722 (m68k_register_type): Use m68k_ps_type for PS register.
4723 (_initialize_m68k_tdep): Call m68k_init_types.
4725 * m68k-tdep.c (m68k_gdbarch_init): Don't infer coldfire flavour
4726 from the generic m68k arch.
4728 2007-06-28 Michael Snyder <msnyder@access-company.com>
4730 * m2-typeprint.c (m2_print_type): Move pointer ref after null test
4733 * linux-thread-db.c (thread_db_get_thread_local_address): Add
4734 gdb_assert before using return value of find_thread_pid (Coverity).
4736 * source.c (unset_substitute_path_command): Plug leak (Coverity).
4738 * cli/cli-script.c (build_command_line): Add null pointer guard
4741 2007-06-27 Daniel Jacobowitz <dan@codesourcery.com>
4743 * linux-thread-db.c (thread_db_attach): Delete.
4744 (thread_db_detach): Typo fix. Call target_mourn_inferior
4745 instead of fixing up proc_handle.
4746 (have_threads_callback, have_threads): New functions.
4747 (thread_db_wait): Remove dead proc_handle.pid check. Only
4748 translate PTIDs if we have registered threads. Check for new
4749 threads if we have none.
4750 (thread_db_create_inferior, thread_db_post_startup_inferior): Delete.
4751 (find_new_threads_callback): Only enable event reporting if TID == 0.
4752 (same_ptid_callback): New.
4753 (thread_db_get_thread_local_address): Check for new threads.
4754 (init_thread_db_ops): Don't set to_attach, to_create_inferior,
4755 or to_post_startup_inferior.
4757 2007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
4759 * infrun.c (adjust_pc_after_break): Do not assume software single-step
4760 is always active if SOFTWARE_SINGLE_STEP_P is true.
4761 (resume): Use gdbarch_software_single_step[_p] instead of
4762 SOFTWARE_SINGLE_STEP[_P].
4763 (handle_inferior_event): Do not check for SOFTWARE_SINGLE_STEP_P.
4765 * gdbarch.sh (software_single_step): Remove target macro.
4766 * gdbarch.h, gdbarch.c: Regenerate.
4768 2007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
4770 * gdbarch.sh (gdbarch_swap_ftype, deprecated_register_gdbarch_swap,
4771 DEPRECATED_REGISTER_GDBARCH_SWAP): Remove.
4772 (struct gdbarch_swap, struct gdbarch_swap_registration,
4773 struct gdbarch_swap_registry, gdbarch_swap_registry,
4774 current_gdbarch_swap_init_hack, current_gdbarch_swap_out_hack,
4775 current_gdbarch_swap_in_hack): Remove.
4776 (find_arch_by_info): Do not call current_gdbarch_swap_init_hack.
4777 (gdbarch_find_by_info): Do not call current_gdbarch_swap_in_hack
4778 and current_gdbarch_swap_out_hack, update current_gdbarch directly.
4779 (deprecated_current_gdbarch_select_hack): Likewise.
4780 * gdbarch.h, gdbarch.c: Regenerate.
4782 2007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
4784 * infrun.c (clear_proceed_status): Clean up stop_registers.
4785 (normal_stop): Allocate regcache for stop_registers.
4786 (struct inferior_status): Remove stop_registers member.
4787 (save_inferior_status): Do not save stop_registers.
4788 (restore_inferior_status): Do not restore stop_registers.
4789 (discard_inferior_status): Do not discard stop_registers.
4790 (build_infrun): Remove.
4791 (_initialize_infrun): Do not swap stop_registers.
4793 2007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
4795 * remote.c (remote_address_masked): If remote_address_size is zero,
4796 default to target address size.
4797 (build_remote_gdbarch_data): Remove.
4798 (_initialize_remote): Do not swap remote_address_size.
4800 2007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
4802 * gdbtypes.h (builtin_type_true_char, builtin_type_void,
4803 builtin_type_char, builtin_type_short, builtin_type_int,
4804 builtin_type_long, builtin_type_signed_char,
4805 builtin_type_unsigned_char, builtin_type_unsigned_short,
4806 builtin_type_unsigned_int, builtin_type_unsigned_long,
4807 builtin_type_float, builtin_type_double, builtin_type_long_double,
4808 builtin_type_complex, builtin_type_double_complex, builtin_type_string,
4809 builtin_type_bool, builtin_type_long_long,
4810 builtin_type_unsigned_long_long, builtin_type_void_data_ptr,
4811 builtin_type_void_func_ptr, builtin_type_CORE_ADDR): Replace global
4812 variable declaration with compatibility macro.
4813 * gdbtypes.c (builtin_type_true_char, builtin_type_void,
4814 builtin_type_char, builtin_type_short, builtin_type_int,
4815 builtin_type_long, builtin_type_signed_char,
4816 builtin_type_unsigned_char, builtin_type_unsigned_short,
4817 builtin_type_unsigned_int, builtin_type_unsigned_long,
4818 builtin_type_float, builtin_type_double, builtin_type_long_double,
4819 builtin_type_complex, builtin_type_double_complex, builtin_type_string,
4820 builtin_type_bool, builtin_type_long_long,
4821 builtin_type_unsigned_long_long, builtin_type_void_data_ptr,
4822 builtin_type_void_func_ptr, builtin_type_CORE_ADDR): Remove.
4823 (build_gdbtypes): Remove.
4824 (_initialize_gdbtypes): Do not call build_gdbtypes, move installing
4825 opaque-type-resolution command here. Do not call
4826 deprecated_register_gdbarch_swap.
4828 2007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
4830 * gdbtypes.h (struct builtin_type): New members nodebug_text_symbol,
4831 nodebug_data_symbol, nodebug_unknown_symbol, and nodebug_tls_symbol.
4832 * gdbtypes.c (gdbtypes_post_init): Initialize nodebug_ default types.
4834 * parse.c (msym_text_symbol_type, msym_data_symbol_type): Remove.
4835 (msym_unknown_symbol_type, msym_tls_symbol_type): Remove.
4836 (write_exp_msymbol): Use builtin nodebug_ types instead of them.
4837 (build_parse): Remove.
4838 (_initialize_parse): Do not call build_parse. Do not register
4839 msym_ types for gdbarch-swapping.
4841 * dwarf2read.c (new_symbol): Use default nodebug_data_symbol type
4842 instead of creating private type.
4844 * xcoffread.c (func_symbol_type, var_symbol_type): Remove.
4845 (_initialize_xcoffread): Do not initialized them.
4846 (process_xcoff_symbol): Use builtin nodebug_ types instead of them.
4848 * mdebugread.c (nodebug_func_symbol_type): Remove.
4849 (nodebug_var_symbol_type): Remove.
4850 (_initialize_mdebugread): Do not initialize them.
4851 (parse_symbol): Use builtin nodebug_ type instead of them.
4852 (parse_procedure): Likewise.
4854 2007-06-21 Chris Dearman <chris@mips.com>
4856 * printcmd.c (do_one_display): If display/i, start with an initial
4857 line feed to avoid bad layout if there is a branch delay slot.
4859 2007-06-21 Nigel Stephens <nigel@mips.com>
4860 Maciej W. Rozycki <macro@mips.com>
4862 * disasm.c (gdb_print_insn): Return the number of branch delay
4863 slot instructions too.
4864 * disasm.h (gdb_print_insn): Update prototype.
4865 * printcmd.c (branch_delay_insns): New variable to record the
4866 number of delay slot instructions after disassembling a branch.
4867 (print_formatted): Record the number of branch delay slot
4869 (do_examine): When disassembling, if the last instruction
4870 disassembled has any branch delay slots, then bump the count so
4871 that they get disassembled too.
4872 * tui/tui-disasm.c (tui_disassemble): Update the call to
4874 * NEWS: Document the new behaviour.
4876 2007-06-21 Andreas Schwab <schwab@suse.de>
4878 * regcache.c (write_pc_pid): Restore missing else.
4880 2007-06-20 Ulrich Weigand <uweigand@de.ibm.com>
4882 * regcache.c (regcache_print): Use get_current_regcache ()
4883 instead of current_regcache.
4885 2007-06-20 H.J. Lu <hongjiu.lu@intel.com>
4888 * gcore.c (gcore_command): Use bfd_make_section_anyway_with_flags
4889 instead of bfd_make_section_anyway.
4890 (gcore_create_callback): Likewise. Also set SEC_NEVER_LOAD
4891 when clearing SEC_LOAD.
4893 2007-06-19 Joseph Myers <joseph@codesourcery.com>
4895 * arm-tdep.c (arm_push_dummy_call): Correct padding of partial
4896 registers for big-endian.
4898 2007-06-19 Markus Deuling <deuling@de.ibm.com>
4900 * gdbarch.sh (TARGET_PRINT_INSN): Replace by gdbarch_print_insn.
4901 * disasm.c (dump_insns, gdb_print_insn): Likewise.
4902 * gdbarch.c, gdbarch.h: Regenerate.
4904 2007-06-19 Markus Deuling <deuling@de.ibm.com>
4906 * gdbarch.sh (BELIEVE_PCC_PROMOTION): Replace by
4907 gdbarch_believe_pcc_promotion.
4908 * stabsread.c (define_symbol): Likewise.
4909 Remove unnecessary definition.
4910 * coffread.c (process_coff_symbol): Remove unnecessary code.
4911 * gdbarch.c, gdbarch.h: Regenerate.
4913 2007-06-19 Daniel Jacobowitz <dan@codesourcery.com>
4915 * configure.ac: Do not use ${objdir}.
4916 * configure: Regenerated.
4918 2007-06-18 Ulrich Weigand <uweigand@de.ibm.com>
4920 * gdbarch.sh (deprecated_register_size): Remove.
4921 * gdbarch.h, gdbarch.c: Regenerate.
4923 * arm-tdep.c (arm_push_dummy_call): Replace DEPRECATED_REGISTER_SIZE
4924 by INT_REGISTER_SIZE.
4925 (thumb_get_next_pc, arm_return_in_memory): Likewise.
4926 (arm_gdbarch_init): Do not call set_gdbarch_deprecated_register_size.
4927 * ia64-tdep.c (ia64_gdbarch_init): Do not call
4928 set_gdbarch_deprecated_register_size.
4930 2007-06-18 Markus Deuling <deuling@de.ibm.com>
4932 * gdbarch.sh (DEPRECATED_FP_REGNUM): Replace by
4933 gdbarch_deprecated_fp_regnum.
4934 * std-regs.c (value_of_builtin_frame_fp_reg): Likewise.
4935 * remote-mips.c (mips_wait, mips_fetch_registers): Likewise.
4936 * arch-utils.c (legacy_virtual_frame_pointer): Likewise.
4937 * arch-utils.h (gdbarch_virtual_frame_pointer_ftype): Likewise
4939 * gdbarch.c, gdbarch.h: Regenerate.
4941 2007-06-18 Markus Deuling <deuling@de.ibm.com>
4943 * gdbarch.sh (EXTRACT_RETURN_VALUE): Replace with
4944 gdbarch_extract_return_value.
4945 * value.c (generic_use_struct_convention): Likewise (comment).
4946 * ia64-tdep.c (ia64_use_struct_convention): Likewise (comment).
4947 * arch-utils.c (legacy_return_value): Likewise.
4948 * arch-utils.h (legacy_return_value): Likewise (comment).
4949 * gdbarch.sh (STORE_RETURN_VALUE): Replace by
4950 gdbarch_store_return_value.
4951 * stack.c (return_command): Likewise (comment).
4952 * arch-utils.h (legacy_return_value): Likewise (comment).
4953 * arch-utils.c (legacy_return_value): Likewise.
4954 * gdbarch.c, gdbarch.h: Regenerate.
4956 2007-06-18 Markus Deuling <deuling@de.ibm.com>
4958 * gdbarch.sh (DEPRECATED_USE_STRUCT_CONVENTION): Replace by
4959 gdbarch_deprecated_use_struct_convention.
4960 * arch-utils.c (legacy_return_value): Likewise.
4961 * gdbarch.c, gdbarch.h: Regenerate.
4963 2007-06-18 Markus Deuling <deuling@de.ibm.com>
4965 * gdbarch.sh (DEPRECATED_FUNCTION_START_OFFSET): Replace by
4966 gdbarch_deprecated_function_start_offset.
4967 * symtab.c (find_function_start_sal)skip_prologue_using_sal): Likewise.
4968 * linespec.c (minsym_found): Likewise.
4969 * infrun.c (handle_inferior_event): Likewise.
4970 * infcall.c (find_function_addr): Likewise.
4971 * cli/cli-cmds.c (disassemble_command): Likewise.
4972 * gdbarch.c, gdbarch.h: Regenerate.
4974 2007-06-18 Markus Deuling <deuling@de.ibm.com>
4976 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Replace by
4977 gdbarch_deprecated_reg_struct_has_addr.
4978 * infcall.c (call_function_by_hand): Likewise.
4979 (DEPRECATED_REG_STRUCT_HAS_ADDR_P): Replace by
4980 * gdbarch_deprecated_reg_struct_has_addr_p.
4981 * infcall.c (call_function_by_hand): Likewise.
4982 * gdbarch.c, gdbarch.h: Regenerate.
4984 2007-06-18 Markus Deuling <deuling@de.ibm.com>
4986 * gdbarch.sh (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
4987 * sh-tdep.c (sh_extract_struct_value_address): Remove.
4988 (sh_gdbarch_init): Remove
4989 set_gdbarch_deprecated_extract_struct_value_address.
4990 * sh64-tdep.c (sh64_extract_struct_value_address): Remove.
4991 (sh64_gdbarch_init): Remove
4992 set_gdbarch_deprecated_extract_struct_value_address.
4993 * ia64-tdep.c (ia64_extract_struct_value_address): Remove.
4994 (ia64_gdbarch_init): Remove
4995 set_gdbarch_deprecated_extract_struct_value_address.
4996 * frv-tdep.c (frv_extract_struct_value_address): Remove.
4997 (frv_gdbarch_init): Remove
4998 set_gdbarch_deprecated_extract_struct_value_address.
4999 * gdbarch.c, gdbarch.h: Regenerate.
5001 2007-06-18 Markus Deuling <deuling@de.ibm.com>
5003 * gdbarch.sh (SP_REGNUM): Replace by gdbarch_sp_regnum.
5004 * v850-tdep.c (v850_unwind_sp): Likewise.
5005 * std-regs.c (value_of_builtin_frame_sp_reg): Likewise.
5006 * stack.c (frame_info): Likewise.
5007 * stabsread.c (define_symbol): Likewise.
5008 * sh-tdep.c (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu)
5009 (sh_dwarf2_frame_init_reg, sh_frame_cache, sh_frame_prev_register)
5010 (sh_unwind_sp): Likewise.
5011 * sh64-tdep.c (sh64_push_dummy_call, sh64_frame_cache)
5012 (sh64_frame_prev_register, sh64_unwind_sp): Likewise.
5013 * rs6000-tdep.c (rs6000_push_dummy_call, rs6000_unwind_dummy_id)
5014 (rs6000_frame_cache): Likewise.
5015 * rs6000-nat.c (store_register): Likewise.
5016 * remote-mips.c (mips_wait): Likewise.
5017 * procfs.c (procfs_fetch_registers, procfs_store_registers): Likewise.
5018 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call)
5019 (ppc64_sysv_abi_push_dummy_call): Likewise.
5020 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_cache): Likewise.
5021 * ppcobsd-nat.c (ppcobsd_supply_pcb): Likewise.
5022 * ppcnbsd-tdep.c (ppcnbsd_sigtramp_cache_init): Likewise.
5023 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache): Likewise.
5024 * m32r-rom.c (m32r_supply_register): Likewise.
5025 * frame.c (frame_sp_unwind): Likewise.
5026 * mips-tdep.c (mips_insn16_frame_cache)
5027 (mips_insn32_frame_cache): Likewise (comment).
5028 * m68klinux-nat.c (supply_gregset): Likewise.
5029 * m68k-tdep.c (m68k_get_longjmp_target): Likewise.
5030 * ia64-tdep.c (ia64_frame_prev_register): Likewise.
5031 * i386-tdep.c (i386_get_longjmp_target): Likewise.
5032 * dwarf2-frame.c (dwarf2_frame_default_init_reg): Likewise.
5033 * cris-tdep.c (cris_regnums, cris_sigcontext_addr)
5034 (cris_sigtramp_frame_unwind_cache, cris_push_dummy_call)
5035 (cris_scan_prologue, crisv32_scan_prologue, cris_unwind_sp)
5036 (cris_register_type, crisv32_register_type)
5037 (cris_dwarf2_frame_init_reg): Likewise.
5038 * arch-utils.c (legacy_virtual_frame_pointer): Likewise.
5039 * amd64-tdep.c (amd64_frame_prev_register): Likewise.
5040 * amd64-linux-tdep.c (amd64_linux_sigcontext_addr): Likewise.
5041 * libunwind-frame.c (libunwind_frame_cache): Likewise.
5043 * gdbarch.sh (PC_REGNUM): Replace by gdbarch_pc_regnum.
5044 * regcache.c (read_pc_pid, generic_target_write_pc): Likewise.
5045 * xtensa-tdep.c (xtensa_register_type, xtensa_supply_gregset)
5046 (xtensa_unwind_pc, xtensa_frame_cache, xtensa_frame_prev_register)
5047 (xtensa_extract_return_value, xtensa_store_return_value): Likewise.
5048 * v850-tdep.c (v850_unwind_pc): Likewise.
5049 * stack.c (frame_info): Likewise.
5050 * sh-tdep.c (sh_generic_show_regs, sh3_show_regs, sh2e_show_regs)
5051 (sh2a_show_regs, sh2a_nofpu_show_regs, sh3e_show_regs)
5052 (sh3_dsp_show_regs, sh4_show_regs, sh4_nofpu_show_regs)
5053 (sh_dwarf2_frame_init_reg, sh_frame_prev_register, sh_unwind_pc)
5054 (sh_dsp_show_regs): Likewise.
5055 * shnbsd-tdep.c (shnbsd_supply_gregset)
5056 (shnbsd_collect_gregset): Likewise.
5057 * shnbsd-nat.c (GETREGS_SUPPLIES): Likewise.
5058 * sh64-tdep.c (sh64_compact_reg_base_num, sh64_show_media_regs)
5059 (sh64_frame_prev_register, sh64_unwind_pc): Likewise.
5060 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset)
5061 (6000_register_reggroup_p, rs6000_unwind_pc)
5062 (rs6000_frame_cache): Likewise.
5063 * rs6000-nat.c (regmap, rs6000_fetch_inferior_registers)
5064 (rs6000_store_inferior_registers): Likewise.
5065 * remote-mips.c (mips_wait, mips_load): Likewise.
5066 * procfs.c (procfs_fetch_registers, procfs_store_registers): Likewise.
5067 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_cache): Likewise.
5068 * ppcobsd-nat.c (ppcobsd_supply_pcb): Likewise.
5069 * ppcnbsd-tdep.c (ppcnbsd_sigtramp_cache_init): Likewise.
5070 * ppcnbsd-nat.c (getregs_supplies, ppcnbsd_supply_pcb): Likewise.
5071 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache): Likewise.
5072 * ppc-linux-nat.c (ppc_register_u_addr, fetch_ppc_registers)
5073 (store_ppc_registers, fill_gregset): Likewise.
5074 * mips-tdep.c (mips_stub_frame_cache, mips_gdbarch_init): Likewise.
5075 * mipsnbsd-tdep.c (mipsnbsd_supply_reg, mipsnbsd_fill_reg): Likewise.
5076 * mipsnbsd-nat.c (getregs_supplies): Likewise.
5077 * m68k-tdep.c (m68k_register_type, m68k_unwind_pc): Likewise.
5078 * m68klinux-nat.c (supply_gregset): Likewise.
5079 * irix5-nat.c (fill_gregset): Likewise.
5080 * i386-tdep.c (i386_unwind_pc): Likewise.
5081 * i386-linux-nat.c (i386_linux_resume): Likewise.
5082 * frame.c (get_prev_frame_1): Likewise.
5083 * dwarf2-frame.c (dwarf2_frame_default_init_reg): Likewise.
5084 * dbug-rom.c (dbug_supply_register): Likewise.
5085 * cris-tdep.c (cris_sigtramp_frame_unwind_cache, cris_scan_prologue)
5086 (crisv32_scan_prologue, cris_unwind_pc, cris_register_size)
5087 (cris_register_type, crisv32_register_type, crisv32_register_name)
5088 (cris_dwarf2_frame_init_reg, find_step_target)
5089 (cris_software_single_step, cris_supply_gregset)
5090 (cris_regnums): Likewise.
5091 * alpha-linux-nat.c (alpha_linux_register_u_offset): Likewise.
5092 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
5093 (fill_sprs64, fill_sprs32, store_regs_user_thread): Likewise.
5094 * std-regs.c (value_of_builtin_frame_pc_reg): Likewise.
5095 * mips-linux-tdep.c (mips_linux_write_pc): Likewise.
5097 * gdbarch.sh (PS_REGNUM): Replace by gdbarch_ps_regnum.
5098 * dbug-rom.c (dbug_supply_register): Likewise.
5099 * xtensa-tdep.c (xtensa_supply_gregset, xtensa_frame_cache)
5100 (xtensa_frame_prev_register, xtensa_push_dummy_call): Likewise.
5101 * win32-nat.c (win32_resume): Likewise.
5102 * std-regs.c (value_of_builtin_frame_ps_reg): Likewise.
5103 * m68k-tdep.c (m68k_register_type): Likewise.
5104 * m68klinux-nat.c (supply_gregset): Likewise.
5106 * gdbarch.sh (FP0_REGNUM): Replace by gdbarch_fp0_regnum.
5107 * sh-tdep.c (sh_extract_return_value_fpu, sh_store_return_value_fpu)
5108 (sh2e_show_regs, sh2a_show_regs, sh3e_show_regs, sh4_show_regs)
5109 (sh_sh2a_register_type, sh_sh3e_register_type, sh_sh4_register_type)
5110 (fv_reg_base_num, dr_reg_base_num): Likewise.
5111 * sh64-tdep.c (sh64_fv_reg_base_num, sh64_dr_reg_base_num)
5112 (sh64_fpp_reg_base_num, sh64_compact_reg_base_num, sh64_push_dummy_call)
5113 (sh64_extract_return_value, sh64_store_return_value)
5114 (sh64_show_media_regs, sh64_show_compact_regs, sh64_register_type)
5115 (sh64_do_fp_register, sh64_media_print_registers_info): Likewise.
5116 * procfs.c (procfs_fetch_registers, procfs_store_registers)
5117 (invalidate_cache): Likewise.
5118 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache): Likewise.
5119 * mipsnbsd-tdep.c (mipsnbsd_supply_fpreg)
5120 (mipsnbsd_fill_fpreg): Likewise.
5121 * mipsnbsd-nat.c (mipsnbsd_fetch_inferior_registers)
5122 (mipsnbsd_store_inferior_registers): Likewise.
5123 * mips-linux-tdep.c (mips_supply_fpregset, mips_fill_fpregset)
5124 (mips64_supply_fpregset, mips64_fill_fpregset): Likewise.
5125 * mips-linux-nat.c (mips64_linux_register_addr): Likewise.
5126 * m68k-tdep.c (m68k_register_type, m68k_convert_register_p): Likewise.
5127 * m68klinux-nat.c (getfpregs_supplies, supply_fpregset)
5128 (fill_fpregset): Likewise.
5129 * irix5-nat.c (supply_fpregset, fill_fpregset): Likewise.
5130 * i386-tdep.h (struct_return): Likewise (comment).
5131 * i386-nto-tdep.c (i386nto_register_area): Likewise.
5132 * go32-nat.c (fetch_register, go32_fetch_registers, store_register)
5133 (go32_store_registers): Likewise.
5134 * alpha-tdep.c (alpha_next_pc): Likewise.
5135 * alpha-linux-nat.c (alpha_linux_register_u_offset): Likewise.
5136 * alphabsd-nat.c (alphabsd_fetch_inferior_registers)
5137 (alphabsd_store_inferior_registers): Likewise.
5138 * core-regset.c (fetch_core_registers): Likewise.
5139 * i386v4-nat.c (supply_fpregset, fill_fpregset): Likewise.
5141 * gdbarch.c, gdbarch.h: Regenerate.
5143 2007-06-18 Daniel Jacobowitz <dan@codesourcery.com>
5145 * coffread.c (coff_sym_fns): Add default_symfile_segments.
5146 * dbxread.c (start_psymtab): Check HAVE_ELF.
5147 (aout_sym_fns): Likewise.
5148 * elfread.c (elf_symfile_segments): New.
5149 (elf_sym_fns): Add elf_symfile_segments.
5150 * mipsread.c (ecoff_sym_fns): Add default_symfile_segments.
5151 * remote.c (get_offsets): Use symfile_map_offsets_to_segments.
5152 Skip if there is no symfile_objfile. Handle TextSeg and DataSeg.
5153 * somread.c (som_sym_fns): Use default_symfile_segments.
5154 * symfile.c (find_sym_fns): Take a BFD and return the sym_fns.
5155 (init_objfile_sect_indices): Call symfile_find_segment_sections.
5156 (default_symfile_segments): New function.
5157 (syms_from_objfile): Update call to find_sym_fns.
5158 (symfile_get_segment_data, free_symfile_segment_data): New.
5159 (symfile_map_offsets_to_segments): New.
5160 (symfile_find_segment_sections): New.
5161 * symfile.h (struct symfile_segment_data): New.
5162 (struct sym_fns): Add sym_segments.
5163 (default_symfile_segments, symfile_get_segment_data)
5164 (free_symfile_segment_data): New prototypes.
5165 (symfile_map_offsets_to_segments): Likewise.
5166 * xcoffread.c (xcoff_sym_fns): Add default_symfile_segments.
5167 * Makefile.in (COMMON_OBS): Remove elfread.o.
5168 (elf_internal_h): New.
5169 (elfread.o): Update.
5170 * configure.ac: Add elfread.o to COMMON_OBS if bfd/elf.o was
5172 * config.in, configure: Regenerated.
5173 * NEWS: Mention qOffsets changes.
5175 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
5177 * gdbtypes.h (builtin_type_m2_char, builtin_type_m2_int,
5178 builtin_type_m2_card, builtin_type_m2_real, builtin_type_m2_bool):
5179 Replace global variable declaration with compatibility macro.
5180 (struct builtin_m2_type): New data type.
5181 (builtin_m2_type): Add prototype.
5182 * m2-lang.c (builtin_type_m2_char, builtin_type_m2_int,
5183 builtin_type_m2_card, builtin_type_m2_real, builtin_type_m2_bool):
5184 Remove global variables.
5185 (m2_language_arch_info): Use builtin_m2_type instead of variables.
5186 (build_m2_types): New function.
5187 (m2_type_data): New variable.
5188 (builtin_m2_type): New function.
5189 (_initialize_m2_language): Do not build data types. Register
5190 m2_type_data per-gdbarch data.
5192 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
5194 * gdbtypes.h (builtin_type_f_character, builtin_type_f_logical,
5195 builtin_type_f_logical_s1, builtin_type_f_logical_s2,
5196 builtin_type_f_integer, builtin_type_f_integer_s2, builtin_type_f_real,
5197 builtin_type_f_real_s8, builtin_type_f_real_s16,
5198 builtin_type_f_complex_s8, builtin_type_f_complex_s16,
5199 builtin_type_f_complex_s32, builtin_type_f_void): Replace global
5200 variable declaration with compatibility macro.
5201 (struct builtin_f_type): New data type.
5202 (builtin_f_type): Add prototype.
5203 * f-lang.c (builtin_type_f_character, builtin_type_f_logical,
5204 builtin_type_f_logical_s1, builtin_type_f_logical_s2,
5205 builtin_type_f_integer, builtin_type_f_integer_s2, builtin_type_f_real,
5206 builtin_type_f_real_s8, builtin_type_f_real_s16,
5207 builtin_type_f_complex_s8, builtin_type_f_complex_s16,
5208 builtin_type_f_complex_s32, builtin_type_f_void): Remove variables.
5209 (f_language_arch_info): Use builtin_f_type instead of variables.
5210 (build_fortran_types): Build builtin_f_type structure instead of
5211 setting global type variables.
5212 (f_type_data): New variable.
5213 (builtin_f_type): New function.
5214 (_initialize_f_language): Do not call build_fortran_types. Do not
5215 swap global type variables. Register f_type_data per-gdbarch data.
5217 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
5219 * f-lang.c (_initialize_f_language): Do not initialize or
5220 swap builtin_type_string.
5222 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
5224 * std-regs.c (builtin_type_frame_reg, build_builtin_type_frame_reg,
5225 value_of_builtin_frame_reg): Remove.
5226 (_initialize_frame_reg): Do not swap builtin_type_frame_reg. Remove
5227 inactive call to value_of_builtin_frame_reg.
5229 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
5231 * gdbarch.sh (bfd_vma_bit): Remove.
5232 * gdbarch.c, gdbarch.h: Regenerate.
5234 * gdbtypes.h (builtin_bfd_vma_type): Remove.
5235 * gdbtypes.h (builtin_bfd_vma_type): Remove.
5236 (build_gdbtypes): Do not initialize it.
5237 (_initialize_gdbtypes): Do not swap it.
5239 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
5241 * gdbtypes.c (builtin_type_v2_double, builtin_type_v4_float,
5242 builtin_type_v2_int64, builtin_type_v4_int32, builtin_type_v8_int16,
5243 builtin_type_v16_int8, builtin_type_v2_float, builtin_type_v2_int32,
5244 builtin_type_v4_int16, builtin_type_v8_int8, builtin_type_v4sf,
5245 builtin_type_v4si, builtin_type_v16qi, builtin_type_v8qi,
5246 builtin_type_v8hi, builtin_type_v4hi, builtin_type_v2si,
5247 builtin_type_vec64, builtin_type_vec128): Remove.
5248 (init_simd_type): Remove.
5249 (init_vector_type): Make global.
5250 (build_builtin_type_vec64, build_builtin_type_vec128): Remove.
5251 (build_gdbtypes): Do not build vector types.
5252 (_initialize_gdbtypes): Do not swap vector types.
5253 * gdbtypes.h (builtin_type_v2_double, builtin_type_v4_float,
5254 builtin_type_v2_int64, builtin_type_v4_int32, builtin_type_v8_int16,
5255 builtin_type_v16_int8, builtin_type_v2_float, builtin_type_v2_int32,
5256 builtin_type_v4_int16, builtin_type_v8_int8, builtin_type_v4sf,
5257 builtin_type_v4si, builtin_type_v16qi, builtin_type_v8qi,
5258 builtin_type_v8hi, builtin_type_v4hi, builtin_type_v2si,
5259 builtin_type_vec64, builtin_type_vec128): Remove declarations.
5260 (init_vector_type): Add prototype.
5262 * i386-tdep.h (struct gdbarch_tdep): Add i386_mmx_type and
5263 i386_sse_type members.
5264 (i386_mmx_type, i386_sse_type): Change from variables to functions.
5265 * i386-tdep.c (i386_mmx_type, i386_sse_type): Remove variables.
5266 (i386_init_types): Do not build vector types.
5267 (i386_mmx_type, i386_sse_type): New functions.
5268 (i386_register_type): Call them instead of using global variables.
5269 (i386_gdbarch_init): Use XCALLOC to allocate tdep structure.
5270 * amd64-tdep.c (amd64_register_type): Call i386_sse_type instead
5271 of using global variable.
5273 * rs6000-tdep.h (struct gdbarch_tdep): Add ppc_builtin_type_vec64
5274 and ppc_builtin_type_vec128 members.
5275 * rs6000-tdep.c (rs6000_builtin_type_vec64): New function.
5276 (rs6000_builtin_type_vec128): Likewise.
5277 (rs6000_register_type): Call them instead of using builtin_type_vec64
5278 and builtin_type_vec128.
5279 (rs6000_gdbarch_init): Use XCALLOC to allocate tdep structure.
5281 * spu-tdep.c (struct gdbarch_tdep): New data type.
5282 (spu_builtin_type_vec128): Remove variable.
5283 (spu_builtin_type_vec128): New function.
5284 (spu_register_type): Call it instead of using global variable.
5285 (spu_gdbarch_init): Allocate tdep structure.
5286 (spu_init_vector_type): Remove function.
5287 (_initialize_spu_tdep): Do not call it.
5289 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
5291 * amd64-tdep.c (struct amd64_register_info): Remove.
5292 (amd64_register_info): Remove.
5293 (amd64_register_names): New static variable.
5294 (AMD64_NUM_REGS): Use amd64_register_names instead of
5295 amd64_register_info.
5296 (amd64_register_name): Likewise.
5297 (amd64_register_type): Do not refer to amd64_register_info.
5299 * s390-tdep.c (struct s390_register_info): Remove.
5300 (s390_register_info): Remove.
5301 (s390_register_name): Do not refer to s390_register_info.
5302 (s390_register_type): Likewise.
5304 * sparc64-tdep.c (struct sparc64_register_info): Remove.
5305 (sparc64_register_info, sparc64_pseudo_register_info): Remove.
5306 (sparc64_register_names, sparc64_pseudo_register_names): New.
5307 (SPARC64_NUM_REGS, SPARC64_NUM_PSEUDO_REGS): Use
5308 sparc64_register_names and sparc64_pseudo_register_names instead of
5309 sparc64_register_info and sparc64_pseudo_register_info.
5310 (sparc64_register_name): Likewise.
5311 (sparc64_register_type): Do not refer to sparc64_register_info
5312 and sparc64_pseudo_register_info.
5314 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
5316 * c-lang.c (cplus_builtin_types): Remove.
5317 (enum cplus_primitive_types): New data type.
5318 (cplus_language_arch_info): New function.
5319 (cplus_language_defn): Set la_language_arch_info member. Do not set
5320 la_builtin_type_vector and string_char_type members.
5322 * f-lang.c (f_builtin_types): Remove.
5323 (enum f_primitive_types): New data type.
5324 (f_language_arch_info): New function.
5325 (f_language_de): Set la_language_arch_info member. Do not set
5326 la_builtin_type_vector and string_char_type members.
5328 * m2-lang.c (m2_builtin_types): Remove.
5329 (enum m2_primitive_types): New data type.
5330 (m2_language_arch_info): New function.
5331 (m2_language_defn): Set la_language_arch_info member. Do not set
5332 la_builtin_type_vector and string_char_type members.
5334 * objc-lang.c (objc_builtin_types): Remove.
5335 (objc_language): Set la_language_arch_info member. Do not set
5336 la_builtin_type_vector and string_char_type members.
5338 * p-lang.c (pascal_builtin_types): Remove.
5339 (enum pascal_primitive_types): New data type.
5340 (pascal_language_arch_info): New function.
5341 (pascal_language_defn): Set la_language_arch_info member. Do not set
5342 la_builtin_type_vector and string_char_type members.
5344 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
5346 * regcache.c (struct regcache): Add ptid_t member.
5347 (regcache_xmalloc): Initialize it.
5348 (regcache_cpy_no_passthrough): Do not refer to current_regcache.
5349 (regcache_dup): Likewise.
5350 (regcache_dup_no_passthrough): Likewise.
5351 (current_regcache): Make static.
5352 (registers_ptid): Remove variable.
5353 (get_thread_regcache): New function.
5354 (get_current_regcache): New function.
5355 (registers_changed): Implement by freeing current regcache.
5356 (regcache_raw_read): Do not refer to current_regcache. Set
5357 inferior_ptid to regcache->ptid while calling target routines.
5358 (regcache_raw_write): Likewise.
5359 (regcache_raw_supply): Do not refer to current_regcache.
5360 (read_pc_pid): Use thread regcache. Do not modify inferior_ptid.
5361 (write_pc_pid): Likewise.
5362 (build_regcache): Remove.
5363 (_initialize_regcache): Do not call DEPRECATED_REGISTER_GDBARCH_SWAP
5364 or deprecated_register_gdbarch_swap. Do not initialize
5366 * regcache.h (get_current_regcache): Add prototype.
5367 (get_thread_regcache): Likewise.
5368 (current_regcache): Remove declaration.
5370 * corelow.c (core_open): Replace current_regcache by
5371 get_current_regcache ().
5372 * frame.c (frame_pop): Likewise.
5373 (put_frame_register): Likewise.
5374 (get_current_frame, create_new_frame): Likewise.
5375 * mi/mi-main.c (mi_cmd_data_write_register_values): Likewise.
5376 * stack.c (return_command): Likewise.
5377 * infcall.c (call_function_by_hand): Likewise.
5378 * infrun.c (resume): Likewise.
5379 (save_inferior_status, restore_inferior_status): Likewise.
5380 * linux-fork.c (fork_load_infrun_state): Likewise.
5381 (fork_save_infrun_state): Likewise.
5382 * win32-nat.c (win32_resume): Likewise.
5383 * i386fbsd-nat.c (i386fbsd_resume): Likewise.
5384 * monitor.c (monitor_wait): Likewise.
5385 * remote.c (remote_wait): Likewise.
5386 * remote-mips.c (mips_wait): Likewise.
5388 * bsd-kvm.c (bsd_kvm_open): Likewise
5389 (bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd): Likewise.
5390 * fbsd-nat.c (fbsd_make_corefile_notes): Likewise.
5391 * i386-linux-nat.c (i386_linux_resume): Likewise.
5392 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Likewise.
5393 (ia64_linux_stopped_data_address): Likewise.
5395 * frv-tdep.c (frv_fdpic_loadmap_addresses): Likewise.
5396 * m32c-tdep.c (m32c_virtual_frame_pointer): Likewise.
5397 * mep-tdep.c (current_me_module, current_options): Likewise.
5398 * mips-tdep.c (deprecated_mips_set_processor_regs_hack): Likewise.
5400 * linux-nat.c (linux_nat_do_thread_registers): Use thread
5401 regcache instead of current_regcache. Call target_fetch_registers.
5402 (linux_nat_corefile_thread_callback): Update call site.
5403 (linux_nat_do_registers): Likewise.
5404 * procfs.c (procfs_do_thread_registers): Use thread regcache instead
5405 of current_regcache.
5406 (procfs_make_note_section): Likewise.
5407 * proc-service.c (ps_lgetregs, ps_lsetregs): Likewise.
5408 (ps_lgetfpregs, ps_lsetfpregs): Likewise.
5409 * sol-thread.c (ps_lgetregs, ps_lsetregs): Likewise.
5410 (ps_lgetfpregs, ps_lsetfpregs): Likewise.
5412 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
5414 * regcache.c (read_register, read_register_pid): Remove.
5415 (write_register, write_register_pid): Likewise.
5416 * regcache.h (read_register, read_register_pid): Remove prototype.
5417 (write_register, write_register_pid): Likewise.
5419 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
5421 * gdbarch.sh (read_pc): Add REGCACHE argument. Remove PTID argument.
5422 (write_pc): Likewise. Remove default implementation, add predicate.
5423 * gdbarch.c, gdbarch.h: Regenerate.
5424 * regcache.c (read_pc_pid): Use current regcache instead of calling
5426 (write_pc_pid): Check gdbarch_write_pc predicate, implement default
5428 (generic_target_write_pc): Remove.
5429 * inferior.h (generic_target_write_pc): Remove.
5430 * frv-tdep.c (frv_gdbarch_init): Do not install it.
5431 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
5432 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
5433 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
5434 * sh-tdep.c (sh_gdbarch_init): Likewise.
5435 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
5437 * avr-tdep.c (avr_read_pc): Add REGCACHE argument. Remove PTID
5438 argument. Use REGCACHE instead of calling read_register_pid.
5439 * hppa-hpux-tdep.c (hppa_hpux_read_pc): Likewise.
5440 * hppa-tdep.c (hppa_read_pc): Likewise.
5441 * hppa-tdep.h (hppa_read_pc): Likewise.
5442 * ia64-tdep.c (ia64_read_pc): Likewise.
5443 * m32r-tdep.c (m32r_read_pc): Likewise.
5444 * mep-tdep.c (mep_read_pc): Likewise.
5445 * mn10300-tdep.c (mn10300_read_pc): Likewise.
5446 * spu-tdep.c (spu_read_pc): Likewise.
5448 * arm-tdep.c (arm_write_pc): Add REGCACHE argument. Remove PTID
5449 argument. Use REGCACHE instead of calling write_register_pid.
5450 * avr-tdep.c (avr_write_pc): Likewise.
5451 * hppa-hpux-tdep.c (hppa_hpux_write_pc): Likewise.
5452 * hppa-tdep.c (hppa_write_pc): Likewise.
5453 * hppa-tdep.h (hppa_write_pc): Likewise.
5454 * i386-linux-tdep.c (i386_linux_write_pc): Likewise.
5455 * amd64-linux-tdep.c (amd64_linux_write_pc): Likewise.
5456 * ia64-linux-tdep.c (ia64_linux_write_pc): Likewise.
5457 * ia64-tdep.c (ia64_write_pc): Likewise.
5458 * ia64-tdep.h (ia64_write_pc): Likewise.
5459 * m32r-tdep.c (m32r_write_pc): Likewise.
5460 * m88k-tdep.c (m88k_write_pc): Likewise.
5461 * mep-tdep.c (mep_write_pc): Likewise.
5462 * mips-tdep.c (mips_write_pc): Likewise.
5463 * mips-linux-tdep.c (mips_linux_write_pc): Likewise.
5464 * mn10300-tdep.c (mn10300_write_pc): Likewise.
5465 * sparc-tdep.c (sparc_write_pc): Likewise.
5466 * spu-tdep.c (spu_write_pc): Likewise.
5468 * mips-tdep.c (read_signed_register): Remove.
5469 (read_signed_register_pid): Likewise.
5470 (mips_read_pc): Add REGCACHE argument. Remove PTID argument.
5471 Use REGCACHE instead of calling read_signed_register_pid.
5473 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
5475 * gdbarch.sh (push_dummy_code): Add REGCACHE argument.
5476 * gdbarch.c, gdbarch.h: Regenerate.
5477 * infcall.c (generic_push_dummy_code): Add REGCACHE argument.
5478 (push_dummy_code): Likewise. Pass it to callee.
5479 (call_function_by_hand): Pass current regcache to push_dummy_code.
5481 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Add REGCACHE
5482 argument. Use it instead of current_regcache.
5484 * cris-tdep.c (cris_push_dummy_code): Add REGCACHE argument.
5485 * sparc-tdep.c (sparc32_push_dummy_code): Likewise.
5487 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
5489 * gdbarch.sh (get_longjmp_target): Add FRAME argument.
5490 * gdbarch.c, gdbarch.h: Regenerate.
5491 * infrun.c (handle_inferior_event): Pass current frame to
5492 gdbarch_get_longjmp_target.
5494 * alpha-tdep.c (alpha_get_longjmp_target): Add FRAME argument.
5495 Read registers from FRAME instead of using read_register.
5496 Use get_frame_arch instead of current_gdbarch.
5497 * arm-tdep.c (arm_get_longjmp_target): Likewise.
5498 * i386-tdep.c (i386_get_longjmp_target): Likewise.
5499 * m68k-tdep.c (m68k_get_longjmp_target): Likewise.
5500 * mips-linux-tdep.c (mips_linux_get_longjmp_target): Likewise.
5501 (mips64_linux_get_longjmp_target): Likewise.
5502 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Likewise.
5504 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
5506 * gdbarch.sh (skip_trampoline_code): Add FRAME argument.
5507 * gdbarch.c, gdbarch.h: Regenerate.
5508 * arch-utils.c (generic_skip_trampoline_code): Add FRAME argument.
5509 * arch-utils.h (generic_skip_trampoline_code): Likewise.
5510 * infrun.c (handle_inferior_event): Pass current frame to
5511 gdbarch_skip_trampoline_code and skip_language_trampoline.
5513 * language.c (unk_lang_trampoline): Add FRAME argument.
5514 (skip_language_trampoline): Add FRAME argument. Pass it to
5515 skip_trampoline callback.
5516 * language.h: Add forward declaration of struct frame_info.
5517 (struct language_defn): Add FRAME argument to skip_trampoline.
5518 (skip_language_trampoline): Add FRAME argument.
5519 * cp-abi.c (cplus_skip_trampoline): Add FRAME argument. Pass it
5520 to skip_trampoline callback.
5521 * cp-abi.h: Add forward declaration of struct frame_info.
5522 (cplus_skip_trampoline): Add FRAME argument.
5523 (struct cp_abi_ops): Add FRAME argument to skip_trampoline callback.
5524 * gnu-v3-abi.c (gnuv3_skip_trampoline): Add FRAME argument. Pass it
5525 to gdbarch_skip_trampoline_code.
5526 * objc-lang.c (objc_skip_trampoline): Add FRAME argument. Pass it
5527 to gdbarch_skip_trampoline_code.
5529 * minsyms.c (find_solib_trampoline_target): Add FRAME argument.
5530 * symtab.h (find_solib_trampoline_target): Likewise.
5531 * obsd-tdep.c (obsd_skip_solib_resolver): Pass current frame to
5532 find_solib_trampoline_target.
5534 * arm-tdep.c (arm_skip_stub): Add FRAME argument. Read registers
5535 from FRAME instead of calling read_register.
5537 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code): Add FRAME
5538 argument. Read registers from FRAME instead of using read_register.
5539 * hppa-tdep.c (hppa_skip_trampoline_code): Likewise.
5540 * hppa-tdep.h (hppa_skip_trampoline_code): Add FRAME argument.
5542 * i386-cygwin-tdep.c (i386_cygwin_skip_trampoline_code): Add FRAME
5545 * m32c-tdep.c (m32c_skip_trampoline_code): Add FRAME argument.
5547 * mips-tdep.c (mips_skip_trampoline_code): Add FRAME argument. Read
5548 registers from FRAME instead of using read_signed_register.
5550 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Add FRAME
5552 (ppc64_standard_linkage_target): Likewise. Read registers from FRAME
5553 instead of using read_register.
5554 (ppc64_skip_trampoline_code): Add FRAME argument. Pass it to
5555 ppc64_standard_linkage_target.
5556 * rs6000-tdep.c (rs6000_skip_trampoline_code): Add FRAME argument.
5557 Pass it to find_solib_trampoline_target. Read registers from FRAME
5558 instead of using read_register.
5560 * xstormy16-tdep.c (xstormy16_skip_trampoline_code): Add FRAME
5563 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
5565 * gdbarch.sh (software_single_step): Replace REGCACHE argument by
5567 * gdbarch.c, gdbarch.h: Regenerate.
5568 * infrun.c (resume): Pass current frame to SOFTWARE_SINGLE_STEP.
5570 * alpha-tdep.c (alpha_next_pc): Add FRAME argument. Retrieve
5571 registers from FRAME instead of using read_register.
5572 (alpha_software_single_step): Replace REGCACHE by FRAME. Pass FRAME
5573 to alpha_next_pc. Use get_frame_pc instead of read_pc.
5574 * alpha-tdep.h (alpha_software_single_step): Replace REGCACHE
5577 * arm-tdep.c (shifted_reg_val): Add FRAME argument. Read registers
5578 from FRAME instead of using read_register.
5579 (thumb_get_next_pc): Likewise.
5580 (arm_get_next_pc): Likewise.
5581 (arm_software_single_step): Replace REGCACHE by FRAME. Pass FRAME
5582 to arm_get_next_pc. Use get_frame_pc instead of read_register.
5583 * arm-tdep.h (arm_software_single_step): Replace REGCACHE
5586 * cris-tdep.c (find_step_target): Add FRAME argument. Read registers
5587 from FRAME instead of using read_register.
5588 (cris_software_single_step): Replace REGCACHE by FRAME. Pass FRAME
5589 to find_step_target.
5591 * mips-tdep.c (mips32_next_pc): Add FRAME argument. Read registers
5592 from FRAME instead of using read_register / read_signed_register.
5593 (extended_mips16_next_pc): Likewise.
5594 (mips16_next_pc): Likewise.
5595 (mips_next_pc): Likewise.
5596 (mips_software_single_step): Replace REGCACHE by FRAME. Pass FRAME
5597 to mips_next_pc. Use get_frame_pc instead of read_pc.
5598 * mips-tdep.h (mips_software_single_step): Replace REGCACHE
5601 * rs6000-tdep.c (branch_dest): Add FRAME argument. Use it instead
5602 of current frame. Read registers from FRAME.
5603 (deal_with_atomic_sequence): Add FRAME argument. Pass it to
5604 branch_dest. Use get_frame_pc instead of read_pc.
5605 (rs6000_software_single_step): Likewise.
5606 (bl_to_blrl_insn_p): Do not call branch_dest.
5607 * rs6000-tdep.h (rs6000_software_single_step): Replace REGCACHE
5610 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Add FRAME argument.
5611 Read registers from FRAME instead of current regcache.
5612 * sparc-linux-tdep.c (sparc32_linux_step_trap): Likewise.
5613 * sparcnbsd-tdep.c (sparcnbsd_step_trap): Likewise.
5614 * sparc-tdep.c (sparc_address_from_register): Remove.
5615 (sparc_analyze_control_transfer): Pass FRAME argument instead of
5616 GDBARCH. Pass FRAME to step_trap callback.
5617 (sparc_step_trap): Add FRAME argument.
5618 (space_software_single_step): Replace REGCACHE by FRAME. Pass FRAME
5619 to sparc_analyze_control_transfer. Read registers from FRAME instead
5620 of calling sparc_address_from_register.
5621 * sparc-tdep.h (struct gdbarch_tdep): Add FRAME argument to
5623 (sparc_address_from_register): Remove prototype.
5624 (sparc_software_single_step): Replace REGCACHE argument by FRAME.
5625 (sparcnbsd_step_trap): Add FRAME argument.
5627 * spu-tdep.c (spu_software_single_step): Replace REGCACHE argument
5628 by FRAME. Read registers from FRAME instead of REGCACHE.
5630 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
5632 * arm-tdep.c (arm_print_float_info): Use register value from FRAME
5633 instead of calling read_register.
5635 * avr-tdep.c (avr_push_dummy_call): Write to REGCACHE instead of
5636 calling write_register.
5638 * hppa-tdep.c (hppa32_push_dummy_call): Write to REGCACHE instead of
5639 calling write_register.
5641 * ia64-tdep.c (find_func_descr): Add REGCACHE parameter. Use it
5642 instead of calling read_register.
5643 (ia64_push_dummy_call): Update call to find_func_descr. Use REGCACHE
5644 instead of calling read_register and write_register.
5646 * m32r-tdep.c (m32r_linux_supply_gregset): Use REGCACHE parameter
5647 instead of current_regcache.
5649 * mn10300-tdep.c (mn10300_push_dummy_call): Write to REGCACHE instead
5650 of calling write_register.
5651 * mn10300-linux-tdep.c (am33_supply_fpregset_method): Use REGCACHE
5652 parameter instead of current_regcache.
5654 * mips-tdep.c (mips2_fp_compat): Add FRAME parameter. Use it
5655 instead of calling read_register.
5656 (mips_read_fp_register_double, mips_print_fp_register): Update calls.
5657 (mips_eabi_push_dummy_call): Use REGCACHE instead of write_register.
5658 (mips_n32n64_push_dummy_call): Likewise.
5659 (mips_o32_push_dummy_call): Likewise.
5660 (mips_o64_push_dummy_call): Likewise.
5662 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Use REGCACHE
5663 parameter instead of current_regcache.
5665 * xtensa-tdep.c (xtensa_register_write_masked): Add REGCACHE parameter.
5666 Use it instead of read_register and write_register.
5667 (xtensa_register_read_masked): Likewise.
5668 (xtensa_pseudo_register_read): Update call.
5669 (xtensa_pseudo_register_write): Likewise.
5670 (xtensa_frame_cache): Use register values unwound from NEXT_FRAME
5671 instead of calling read_register.
5672 (xtensa_push_dummy_call): Update comment.
5674 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
5676 * mips-tdep.c (mips16_scan_prologue): Replace read_next_frame_reg
5677 by frame_unwind_register_signed calls.
5678 (mips32_scan_prologue): Likewise. Skip analysis of alloca stack
5679 frame allocations when called with NULL NEXT_FRAME parameter.
5680 (read_next_frame_reg): Remove.
5682 * sh-tdep.c (sh_analyze_prologue): Add FPSCR parameter. Use it
5683 instead of reading the FPSCR register.
5684 (sh_frame_cache): Pass unwound FPSCR register value to
5685 sh_analyze_prologue.
5686 (sh_skip_prologue): Pass dummy FPSCR value to sh_analyze_prologue.
5688 * v850-tdep.c (v850_analyze_prologue): Add CTBP parameter. Use it
5689 instead of reading the CTBP register.
5690 (v850_frame_cache): Pass unwound CTBP register value to
5691 v850_analyze_prologue.
5693 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
5695 * sh-tdep.h (sh_show_regs): Add FRAME parameter.
5696 * sh-tdep.c (sh_show_regs): Likewise.
5697 (sh_show_regs_command): Pass current frame to sh_show_regs routine.
5698 (sh_generic_show_regs): Add FRAME parameter. Use register
5699 values from that frame instead of calling read_register.
5700 (sh3_show_regs, sh2e_show_regs, sh2a_show_regs, sh2a_nofpu_show_regs,
5701 sh3e_show_regs, sh3_dsp_show_regs, sh4_show_regs, sh4_nofpu_show_regs,
5702 sh_dsp_show_regs): Likewise.
5703 * sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs,
5704 sh64_show_regs): Likewise.
5706 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
5708 * mips-tdep.c (deprecated_mips_set_processor_regs_hack): Read from
5709 current regcache instead of calling read_register.
5711 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
5713 * mep-tdep.c (current_me_module): Read from current regcache
5714 instead of calling read_register.
5715 (current_options): Likewise.
5717 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
5719 * cris-tdep.c (cris_stopped_data_address): Read register values
5720 from current frame instead of calling read_register.
5721 * frv-tdep.c (frv_stopped_data_address): Likewise.
5723 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
5725 * solib-sunos.c (sunos_solib_create_inferior_hook): Use write_pc
5726 instead of write_register (PC_REGNUM, ...).
5728 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
5730 * solib-sunos.c (sunos_solib_create_inferior_hook): Add comment
5731 explaining why the PC adjustment code is necessary.
5733 2007-06-15 Vladimir Prus <vladimir@codesourcery.com>
5735 * m68k-tdep.h (enum m68k_flavour): New.
5736 (struct gdbarch_tdep): New fields
5737 float_return, flavour and fpregs_present.
5738 * m68k-tdep.c (m68k_register_type): Use
5739 fpregs_present and conditionalize floating
5740 registers type on flavour.
5741 (m68k_register_names): New.
5742 (m68k_register_name): Use the above.
5743 (m68k_convert_register_p): Consult fpregs_present.
5744 (m68k_register_to_value, m68k_value_to_register):
5745 Use register_type to obtain the type of floating
5747 (m68k_svr4_extract_return_value): Check tdep->float_return.
5748 Use register_type to get the type of floating
5750 (m68k_svr4_store_return_value): Likewise.
5751 (m68k_dwarf_reg_to_regnum): Check tdep->fpregs_present.
5752 (m68k_analyze_register_saves): Likewise.
5753 (m68k_gdbarch_init): Extract infromation
5754 from XML description, if present. Guess coldfire by
5755 looking at the file, if present. Conditionalize
5756 setting of long double format. Set decr_pc_after_break
5757 to 2 on coldfire and fido. Enable XML-driven
5758 register description.
5759 * m68kbsd-tdep.c (m68kbsd_fpreg_offset): Use
5760 size of tdep->fpreg_type, as opposed to hardcoded value.
5761 * Makefile.in (m68k-tdep.o): Update dependencies.
5763 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
5765 * NEWS: Mention "info spu" commands and qXfer:spu:read and
5766 qXfer:spu:write remote packet types.
5768 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
5770 * xml-tdesc.c (tdesc_start_target): New.
5771 (target_attributes): New.
5772 (tdesc_elements): Use it.
5773 * features/gdb-target.dtd: Add #FIXED version attribute for
5776 2007-06-13 Arthur Huillet <arthur.huillet@free.fr>
5778 * mi/mi-cmd-var.c (mi_cmd_var_assign): Fix typo.
5780 2007-06-13 Claudio Fontana <claudio.fontana@gmail.com>
5782 * fork-child.c (fork_inferior): Update comment.
5784 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
5786 * features/Makefile: Generate regformats for mips-linux and
5788 * features/sort-regs.xsl: Correct typo.
5789 * regformats/reg-mips.dat, regformats/reg-mips64.dat: Delete.
5790 * regformats/mips-linux.dat, regformats/mips64-linux.dat: New generated
5793 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
5795 * config/mips/linux.mh (TDEP_XML): New.
5796 * features/mips-linux.xml, features/mips64-linux.xml: New files.
5797 * mips-linux-nat.c (mips_linux_register_addr): Handle
5798 MIPS_RESTART_REGNUM.
5799 (mips64_linux_register_addr): Likewise.
5800 (super_xfer_partial, mips_linux_xfer_partial): New.
5801 (_initialize_mips_linux_nat): Add them to the target_ops.
5802 * mips-linux-tdep.c (mips_supply_gregset): Handle MIPS_RESTART_REGNUM.
5803 (mips_fill_gregset, mips64_supply_gregset, mips64_fill_gregset)
5804 (mips_linux_o32_sigframe_init)
5805 (mips_linux_n32n64_sigframe_init): Likewise.
5806 (mips_linux_write_pc, mips_linux_restart_reg_p): New.
5807 (mips_linux_init_abi): Use mips_linux_write_pc. Check for the
5808 "org.gnu.gdb.mips.linux" feature.
5809 * mips-linux-tdep.h (MIPS_RESTART_REGNUM): New constant.
5810 (mips_linux_restart_reg_p): New prototype.
5811 * mips-tdep.c (mips_gdbarch_init): Pass tdesc_data to the OS/ABI
5812 initialization routine.
5813 * Makefile.in (mips-linux-tdep.o, mips-linux-nat.o): Update.
5815 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
5817 * Makefile.in (mips-tdep.o): Update.
5818 * mips-tdep.c (struct register_alias, mips_o32_aliases)
5819 (mips_n32_n64_aliases, mips_register_aliases): New.
5820 (mips_register_name): Call tdesc_register_name.
5821 (mips_tdesc_register_reggroup_p): New.
5822 (mips_pseudo_register_type, value_of_mips_user_reg): New.
5823 (mips_gdbarch_init): Add target-described register support.
5824 Register aliases for register names.
5825 * target-descriptions.c (tdesc_register_name): Make global.
5826 (tdesc_register_in_reggroup_p): New function, broken out from
5827 tdesc_register_reggroup_p.
5828 (tdesc_register_reggroup_p): Use it.
5829 * target-descriptions.h (tdesc_register_name)
5830 (tdesc_register_in_reggroup_p): New prototypes.
5831 * NEWS: Correct formatting. Mention MIPS register support.
5832 * features/mips-cp0.xml, features/mips-fpu.xml,
5833 features/mips64-cp0.xml, gdb/features/mips64-fpu.xml, mips-cpu.xml,
5834 features/mips64-cpu.xml: New files.
5836 2007-06-13 Markus Deuling <deuling@de.ibm.com>
5838 * gdbarch.sh (TARGET_ADDR_BIT): Replace by gdbarch_addr_bit.
5839 * valops.c (value_cast): Likewise.
5840 * utils.c (strlen_paddr, paddr, paddr_nz, paddress): Likewise.
5841 * ui-out.c (ui_out_field_core_addr): Likewise.
5842 * tracepoint.c (tracepoints_info): Likewise.
5843 * symtab.c (print_msymbol_info): Likewise.
5844 * solib-irix.c (irix_current_sos)
5845 (irix_open_symbol_file_object): Likewise.
5846 * remote.c (build_remote_gdbarch_data): Likewise.
5847 * prologue-value.c (make_pv_area): Likewise.
5848 * procfs.c (info_mappings_callback): Likewise.
5849 * printcmd.c (print_scalar_formatted)
5850 (deprecated_print_address_numeric): Likewise.
5851 * memattr.c (mem_info_command): Likewise.
5852 * linux-nat.c (linux_nat_info_proc_cmd): Likewise.
5853 * gdbtypes.c (build_flt, gdbtypes_post_init): Likewise.
5854 * exec.c (print_section_info): Likewise.
5855 * dwarf2read.c (read_subrange_type): Likewise.
5856 * dwarf2loc.c (find_location_expression): Likewise.
5857 * dwarf2expr.c (dwarf2_read_address, unsigned_address_type)
5858 (signed_address_type, execute_stack_op): Likewise.
5859 * breakpoint.c (print_one_breakpoint, breakpoint_1): Likewise.
5860 * gdbarch.c, gdbarch.h: Regenerate.
5862 2007-06-13 Markus Deuling <deuling@de.ibm.com>
5864 * gdbarch.sh (TARGET_ARCHITECTURE): Replace by gdbarch_bfd_arch_info.
5865 * arch-utils.c (show_architecture): Likewise.
5866 * remote-mips.c (mips_open): Likewise
5867 * nto-tdep.c (nto_find_and_open_solib)
5868 (nto_init_solib_absolute_prefix): Likewise.
5869 * nto-procfs (procfs_open): Likewise.
5870 * m68hc11-tdep.c (gdb_print_insn_m68hc11): Likewise.
5871 * gcore.c (default_gcore_mach, default_gcore_arch): Likewise.
5872 * gdbarch.c, gdbarch.h: Regenerate.
5874 2007-06-13 Markus Deuling <deuling@de.ibm.com>
5876 * gdbarch.sh (TARGET_BFD_VMA_BIT): Replace by gdbarch_bfd_vma_bit.
5877 * gdbtypes.c (build_flt): Likewise.
5878 * gdbarch.c, gdbarch.h: Regenerate.
5880 2007-06-13 Markus Deuling <deuling@de.ibm.com>
5882 * gdbarch.sh (BREAKPOINT_FROM_PC): Replace by
5883 gdbarch_breakpoint_from_pc.
5884 * s390-tdep.c (s390_gdbarch_init): Likewise (comment).
5885 * remote.c (remote_insert_breakpoint)
5886 (remote_insert_hw_breakpoint): Likewise.
5887 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Likewise.
5888 * mips-tdep.c (mips_breakpoint_from_pc): Likewise (comment).
5889 * breakpoint.h (bp_target_info): Likewise (comment).
5890 * breakpoint.c (read_memory_nobpt): Likewise.
5891 * mem-break.c (default_memory_insert_breakpoint): Likewise.
5892 (symtab.h, breakpoint.h): Remove include. Remove unnecessary comment.
5893 * gdbarch.c, gdbarch.h: Regenerate.
5895 2007-06-13 Markus Deuling <deuling@de.ibm.com>
5897 * gdbarch.sh (TARGET_PTR_BIT): Replace with gdbarch_ptr_bit.
5898 * solib-svr4.c (svr4_truncate_ptr): Likewise.
5899 * solib-pa64.c (read_dynamic_info): Likewise.
5900 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets): Likewise.
5901 * solib.c (info_sharedlibrary_command): Likewise.
5902 * s390-nat.c (SUBOFF): Likewise.
5903 * p-valprint.c (pascal_val_print): Likewise.
5904 * procfs.c (info_proc_mappings): Likewise.
5905 * printcmd.c (decode_format): Likewise.
5906 * nto-tdep.c (nto_truncate_ptr): Likewise.
5907 * mips-linux-tdep.c (mips_linux_get_longjmp_target)
5908 (mips64_linux_get_longjmp_target): Likewise.
5909 * m68k-tdep.c (m68k_get_longjmp_target): Likewise.
5910 * jv-valprint.c (java_value_print): Likewise.
5911 * jv-lang.c (get_java_object_header_size): Likewise.
5912 * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Likewise.
5913 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
5914 (hppa_hpux_unwind_adjust_stub): Likewise.
5915 * gnu-v3-abi.c (build_gdb_vtable_type): Likewise.
5916 * gdbtypes.c (make_pointer_type, make_reference_type)
5917 (smash_to_memberptr_type): Likewise.
5918 * gdbarch.c, gdbarch.h: Regenerate.
5920 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
5922 * mips-tdep.c (mips_print_register): Remove unused ALL argument.
5923 (print_gp_register_row): Stop before printing a register bigger
5924 than the ABI register size.
5925 (mips_print_registers_info): Update call to mips_print_register.
5927 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
5929 * expression.h (enum exp_opcode): Document a register name for
5931 * parse.c (write_dollar_variable): Write the register name for
5933 (operator_length_standard): Expect the register name following
5935 * ada-lang.c (resolve_subexp): Likewise.
5936 * ax-gdb.c (gen_expr): Likewise.
5937 * eval.c (evaluate_subexp_standard): Likewise.
5938 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
5940 * tracepoint.c (encode_actions): Likewise.
5942 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
5944 * utils.c (set_screen_size): Use INT_MAX for default columns.
5946 2007-06-13 Ulrich Weigand <uweigand@de.ibm.com>
5948 * remote.c (remote_protocol_features): Add qXfer:spu:read and
5949 qXfer:spu:write packet types.
5951 2007-06-12 Markus Deuling <deuling@de.ibm.com>
5953 * gdbarch.sh (DEPRECATED_STACK_ALIGN): Remove.
5954 * gdbarch.c, gdbarch.h: Regenerate.
5956 2007-06-12 Markus Deuling <deuling@de.ibm.com>
5958 * gdbarch.sh (STAB_REG_TO_REGNUM): Replace by
5959 gdbarch_stab_reg_to_regnum.
5960 * stabsread.c (define_symbol): Likewise.
5961 * gdbarch.sh (ECOFF_REG_TO_REGNUM): Replace by
5962 gdbarch_ecoff_reg_to_regnum.
5963 * mdebugread.c (parse_symbol): Likewise.
5964 * i386-tdep.c (i386_gdbarch_init): Likewise (comment).
5965 * gdbarch.sh (DWARF_REG_TO_REGNUM): Replace by
5966 gdbarch_dwarf_reg_to_regnum.
5967 * gdbarch.sh (SDB_REG_TO_REGNUM): Replace by gdbarch_sdb_reg_to_regnum.
5968 * coffread.c (process_coff_symbol): Likewise.
5969 * gdbarch.sh (DWARF2_REG_TO_REGNUM): Replace by
5970 gdbarch_dwarf2_reg_to_regnum.
5971 * dwarf2loc.c (dwarf_expr_read_reg,dwarf2_evaluate_loc_desc)
5972 (locexpr_describe_location): Likewise.
5973 * dwarf2-frame.c (read_reg,execute_cfa_program,dwarf2_frame_cache)
5974 (dwarf2_frame_prev_register,dwarf2_signal_frame_this_id): Likewise.
5975 * dwarf2loc.c (DWARF2_REG_TO_REGNUM): Remove macro.
5976 * dwarf2read.c (DWARF2_REG_TO_REGNUM): Remove macro.
5977 * gdbarch.c, gdbarch.h: Regenerate.
5979 2007-06-12 Markus Deuling <deuling@de.ibm.com>
5981 * gdbarch.sh (SMASH_TEXT_ADDRESS): Replace by
5982 gdbarch_smash_text_address.
5983 * somread.c (som_symtab_read): Likewise.
5984 * elfread.c (record_minimal_symbol): Likewise.
5985 * dbxread.c (process_one_symbol): Likewise.
5986 * coffread.c (coff_symtab_read): Likewise.
5987 * gdbarch.c, gdbarch.h: Regenerate.
5989 2007-06-12 Markus Deuling <deuling@de.ibm.com>
5991 * gdbarch.sh (REGISTER_TO_VALUE): Replace by gdbarch_register_to_value.
5992 * findvar.c (value_from_register): Likewise.
5993 * gdbarch.sh (VALUE_TO_REGISTER): Replace by gdbarch_value_to_register.
5994 * valops.c (value_assign): Likewise.
5995 * gdbarch.sh (CONVERT_REGISTER_P): Replace by
5996 gdbarch_convert_register_p.
5997 * findvar.c (value_from_register): Likewise.
5998 * valops.c (value_assign): Likewise.
5999 * gdbarch.c, gdbarch.h: Regenerate.
6001 2007-06-12 Markus Deuling <deuling@de.ibm.com>
6003 * gdbarch.sh (REGISTER_SIM_REGNO): Replace by
6004 gdbarch_register_sim_regno.
6005 * sim-regno.h (sim_regno): Likewise (comment).
6006 * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register): Likewise.
6007 * gdbarch.c, gdbarch.h: Regenerate.
6009 2007-06-12 Markus Deuling <deuling@de.ibm.com>
6011 * gdbarch.sh (TARGET_VIRTUAL_FRAME_POINTER): Replace by
6012 gdbarch_virtual_frame_pointer.
6013 * tracepoint.c (encode_actions): Likewise.
6014 * dwarf2loc.c (dwarf2_loc_desc_needs_frame): Likewise.
6015 * ax-gdb.c (gen_frame_args_address, gen_frame_locals_address): Likewise.
6016 * gdbarch.c, gdbarch.h: Regenerate.
6018 2007-06-12 Markus Deuling <deuling@de.ibm.com>
6020 * gdbarch.sh (TARGET_FLOAT_BIT): Replace by gdbarch_float_bit.
6021 * p-lang.c (pascal_create_fundamental_type): Likewise.
6022 * objc-lang.c (objc_create_fundamental_type): Likewise.
6023 * mdebugread.c (_initialize_mdebugread): Likewise.
6024 * m2-lang.c (m2_create_fundamental_type)
6025 (_initialize_m2_language): Likewise.
6026 * gdbtypes.c (build_gdbtypes): Likewise.
6027 * f-lang.c (f_create_fundamental_type, build_fortran_types): Likewise.
6028 * doublest.c (floatformat_from_length): Likewise.
6029 * c-lang.c (c_create_fundamental_type): Likewise.
6030 * ada-lang.c (ada_create_fundamental_type)
6031 (ada_language_arch_info): Likewise.
6032 * gdbarch.sh (TARGET_FLOAT_FORMAT): Replace by gdbarch_float_format.
6033 * value.c (unpack_double): Likewise (comment).
6034 * gdbtypes.c (build_gdbtypes): Likewise.
6035 * doublest.c (floatformat_from_length): Likewise.
6036 * gdbarch.sh (TARGET_DOUBLE_BIT): Replace by gdbarch_double_bit.
6037 * valarith.c (value_binop): Likewise.
6038 * p-lang.c (pascal_create_fundamental_type): Likewise.
6039 * objc-lang.c (objc_create_fundamental_type): Likewise.
6040 * mdebugread.c (_initialize_mdebugread): Likewise.
6041 * m2-lang.c (m2_create_fundamental_type): Likewise.
6042 * gdbtypes.c (build_gdbtypes): Likewise.
6043 * f-lang.c (f_create_fundamental_type, build_fortran_types): Likewise.
6044 * doublest.c (floatformat_from_length): Likewise.
6045 * cris-tdep.c (cris_gdbarch_init): Likewise (comment).
6046 * c-lang.c (c_create_fundamental_type): Likewise.
6047 * ada-lex.l (processReal): Likewise.
6048 * ada-lang.c (ada_create_fundamental_type)
6049 (ada_language_arch_info): Likewise.
6050 * gdbarch.sh (TARGET_DOUBLE_FORMAT): Replace by gdbarch_double_format.
6051 * value.c (unpack_double): Likewise (comment).
6052 * gdbtypes.c (build_gdbtypes): Likewise.
6053 * doublest.c (floatformat_from_length): Likewise.
6054 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Replace by
6055 gdbarch_long_double_bit.
6056 * p-lang.c (pascal_create_fundamental_type): Likewise.
6057 * objc-lang.c (objc_create_fundamental_type): Likewise.
6058 * m2-lang.c (m2_create_fundamental_type): Likewise.
6059 * gdbtypes.c (build_gdbtypes): Likewise.
6060 * f-lang.c (f_create_fundamental_type, build_fortran_types): Likewise.
6061 * doublest.c (floatformat_from_length): Likewise.
6062 * c-lang.c (c_create_fundamental_type): Likewise.
6063 * ada-lex.l (processReal): Likewise.
6064 * ada-lang.c (ada_create_fundamental_type)
6065 (ada_language_arch_info): Likewise.
6066 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Replace by
6067 gdbarch_long_double_format.
6068 * gdbtypes.c (build_gdbtypes): Likewise.
6069 * doublest.c (floatformat_from_length): Likewise.
6070 * gdbarch.c, gdbarch.h: Regenerate.
6072 2007-06-12 Markus Deuling <deuling@de.ibm.com>
6074 * gdbarch.sh (TARGET_SHORT_BIT): Replace by gdbarch_int_bit.
6075 * ada-lang.c (ada_create_fundamental_type)
6076 (ada_language_arch_info): Likewise.
6077 * c-lang.c (c_create_fundamental_type): Likewise.
6078 * f-lang.c (f_create_fundamental_type, build_fortran_types): Likewise.
6079 * gdbtypes.c (build_gdbtypes, gdbtypes_post_init): Likewise.
6080 * m2-lang.c (m2_create_fundamental_type): Likewise.
6081 * objc-lang.c (objc_create_fundamental_type): Likewise.
6082 * p-lang.c (pascal_create_fundamental_type): Likewise.
6083 * gdbarch.sh (TARGET_INT_BIT): Replace by gdbarch_int_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 * ada-lang.c (ada_create_fundamental_type, ada_language_arch_info)
6090 (gdbtypes_post_init, build_gdbtypes): Likewise.
6091 * p-lang.c (pascal_create_fundamental_type): Likewise.
6092 * parse.c (build_parse): Likewise.
6093 * xcoffread.c (_initialize_xcoffread): Likewise.
6094 * stabsread.c (define_symbol, read_one_struct_field, read_enum_type)
6095 (read_range_type): Likewise.
6096 * objc-lang.c (objc_create_fundamental_type): Likewise.
6097 * f-lang.c (build_fortran_types, f_create_fundamental_type): Likewise.
6098 * m2-lang.c (m2_create_fundamental_type, _initialize_m2_language)
6099 (m2_create_fundamental_type): Likewise.
6100 * c-lang.c (c_create_fundamental_type): Likewise.
6101 * coffread.c (coff_read_enum_type): Likewise.
6102 * mdebugread.c (parse_symbol, _initialize_mdebugread): Likewise.
6103 * dwarf2read.c (new_symbol): Likewise.
6104 * gdbarch.sh (TARGET_LONG_BIT): Replace by gdbarch_long_bit.
6105 * c-exp.y (parse_number): Likewise.
6106 * objc-exp.y (parse_number): Likewise.
6107 * ada-lex.l (processInt): Likewise.
6108 * f-exp.y (parse_number): Likewise.
6109 * p-exp.y (parse_number): Likewise.
6110 * valarith.c (value_binop): Likewise.
6111 * symfile.c (read_target_long_array, simple_overlay_update_1): Likewise.
6112 * ada-lang.c (ada_create_fundamental_type)
6113 (ada_language_arch_info): Likewise.
6114 * gdbtypes.c (build_gdbtypes, gdbtypes_post_init): Likewise.
6115 * symfile.c (TARGET_LONG_BYTES): Likewise.
6116 * p-lang.c (pascal_create_fundamental_type): Likewise.
6117 * objc-lang.c (objc_create_fundamental_type): Likewise.
6118 * m2-lang.c (m2_create_fundamental_type): Likewise.
6119 * f-lang.c (f_create_fundamental_type): Likewise.
6120 * c-lang.c (c_create_fundamental_type): Likewise.
6121 * coffread.c (decode_base_type): Likewise.
6122 * gdbarch.sh (TARGET_LONG_LONG_BIT): Replace by gdbarch_long_long_bit.
6123 * c-exp.y (parse_number): Likewise.
6124 * objc-exp.y (parse_number): Likewise.
6125 * p-exp.y (parse_number): Likewise.
6126 * ada-lang.c (ada_create_fundamental_type)
6127 (ada_language_arch_info): Likewise.
6128 * gdbtypes.c (gdbtypes_post_init, build_gdbtypes): Likewise.
6129 * stabsread.c (read_range_type): Likewise.
6130 * p-lang.c (pascal_create_fundamental_type): Likewise.
6131 * objc-lang.c (objc_create_fundamental_type): Likewise.
6132 * m2-lang.c (m2_create_fundamental_type): Likewise.
6133 * f-lang.c (f_create_fundamental_type): Likewise.
6134 * c-lang.c (c_create_fundamental_type): Likewise.
6135 * gdbarch.c, gdbarch.h: Regenerate.
6137 2007-06-12 Andreas Schwab <schwab@suse.de>
6139 * frame-unwind.h (frame_dealloc_cache_ftype): Define.
6140 (struct frame_unwind): Add dealloc_cache.
6141 * frame.c (reinit_frame_cache): Call dealloc_cache on all caches.
6143 * libunwind-frame.h (libunwind_frame_dealloc_cache): Declare.
6144 * libunwind-frame.c (libunwind_frame_dealloc_cache): Define.
6145 (libunwind_frame_unwind): Set dealloc_cache.
6146 * ia64-tdep.c (ia64_libunwind_frame_unwind): Set dealloc_cache.
6148 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
6149 Markus Deuling <deuling@de.ibm.com>
6151 * remote.c (remote_write_qxfer): New function.
6152 (remote_xfer_partial): Add handling for TARGET_OBJECT_SPU.
6153 (remote_read_qxfer): Do not cache empty objects.
6154 (_initialize_remote): Add PACKET_qXfer_spu_read and
6155 PACKET_qXfer_spu_write.
6157 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
6159 * target.h (enum target_object): Add TARGET_OBJECT_SPU.
6160 * spu-linux-nat.c (spu_xfer_partial): Handle TARGET_OBJECT_SPU.
6162 * spu-tdep.h (SPU_NUM_PSEUDO_REGS): Add 5 pseudo registers.
6163 (enum spu_regnum): Add SPU_FPSCR_REGNUM, SPU_SRR0_REGNUM,
6164 SPU_LSLR_REGNUM, SPU_DECR_REGNUM, SPU_DECR_STATUS_REGNUM.
6165 * spu-tdep.c (infospucmdlist): New variable.
6166 (spu_register_name): Handle additional pseudo registers.
6167 (spu_register_type): Likewise.
6168 (spu_pseudo_register_read): Likewise.
6169 (spu_pseudo_register_write): Likewise.
6170 (spu_pseudo_register_read_spu): New function.
6171 (spu_pseudo_register_write_spu): Likewise.
6172 (info_spu_event_command): New function.
6173 (info_spu_signal_command): Likewise.
6174 (info_spu_mailbox_list): Likewise.
6175 (info_spu_mailbox_command): Likewise.
6176 (spu_mfc_get_bitfield): Likewise.
6177 (info_spu_dma_cmdlist): Likewise.
6178 (info_spu_dma_command): Likewise.
6179 (info_spu_proxydma_command): Likewise.
6180 (info_spu_command): Likewise.
6181 (_initialize_spu_tdep): Install "info spu" commands.
6183 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
6185 * spu-linux-nat.c (spu_proc_xfer_spu): Do not return failure when
6186 accessing non-seekable spufs files.
6188 2007-06-09 Markus Deuling <deuling@de.ibm.com>
6190 * gdbarch.sh (SKIP_TRAMPOLINE_CODE): Replace by
6191 gdbarch_skip_trampoline_code.
6192 * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Likewise (comment).
6193 * objc-lang.c (objc_skip_trampoline)
6194 (objc_submethod_helper_data): Likewise.
6195 * m32c-lang.c (m32c_skip_trampoline_code): Likewise (comment).
6196 * infrun.c (handle_inferior_event): Likewise.
6197 * gnu-v3-abi.c (gnuv3_skip_trampoline): Likewise.
6198 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Replace by
6199 gdbarch_in_solib_return_trampoline.
6200 * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Likewise (comment).
6201 * infrun.c (handle_inferior_event): Likewise.
6202 * hppa-tdep.c (hppa_stub_unwind_sniffer): Likewise.
6203 * gdbarch.c, gdbarch.h: Regenerate.
6205 2007-06-09 Markus Deuling <deuling@de.ibm.com>
6207 * gdbarch.sh (SKIP_PROLOGUE): Replace by gdbarch_skip_prologue.
6208 * symtab.c (find_function_start_sal, in_prologue): Likewise.
6209 * linespec.c (minsym_found): Likewise.
6210 * infrun.c (step_into_function): Likewise.
6211 * gdbarch.c, gdbarch.h: Regenerate.
6213 2007-06-09 Markus Deuling <deuling@de.ibm.com>
6215 * gdbarch.sh (NAME_OF_MALLOC): Replace by gdbarch_name_of_malloc.
6216 * valops.c (value_allocate_space_in_inferior): Likewise.
6217 * gdbarch.c, gdbarch.h: Regenerate.
6219 2007-06-09 Markus Deuling <deuling@de.ibm.com>
6221 * gdbarch.sh (MEMORY_INSERT_BREAKPOINT): Replace by
6222 gdbarch_memory_insert_breakpoint.
6223 * mem-break.c (memory_insert_breakpoint): Likewise.
6224 * gdbarch.sh (MEMORY_REMOVE_BREAKPOINT): Replace by
6225 gdbarch_memory_remove_breakpoint.
6226 * mem-break.c (memory_remove_breakpoint): Likewise.
6227 * gdbarch.c, gdbarch.h: Regenerate.
6229 2007-06-09 Markus Deuling <deuling@de.ibm.com>
6231 * gdbarch.sh (FETCH_TLS_LOAD_MODULE_ADDRESS): Replace by
6232 gdbarch_fetch_tls_load_module_address.
6233 * gdbarch.sh (FETCH_TLS_LOAD_MODULE_ADDRESS_P): Replace by
6234 gdbarch_fetch_tls_load_module_address_p.
6235 * gdbarch.c, gdbarch.h: Regenerate.
6237 2007-06-09 Markus Deuling <deuling@de.ibm.com>
6239 * gdbarch.sh (DECR_PC_AFTER_BREAK): Replace by
6240 gdbarch_decr_pc_after_break.
6241 * tracepoint.c (trace_dump_command): Likewise.
6242 * solib-sunos.c (sunos_solib_create_inferior_hook): Likewise.
6243 * linux-thread-db.c (check_event): Likewise.
6244 * linux-nat.c (cancel_breakpoints_callback): Likewise.
6245 * infrun.c (adjust_pc_after_break, normal_stop): Likewise.
6246 * frame.h: Likewise (comment).
6247 * dummy-frame.c (deprecated_pc_in_call_dummy): Likewise.
6248 * aix-thread.c (aix_thread_wait): Likewise.
6249 * gdbarch.c, gdbarch.h: Regenerate.
6251 2007-06-09 Markus Deuling <deuling@de.ibm.com>
6253 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS): Replace by
6254 gdbarch_address_class_type_flags.
6255 * dwarf2read.c (read_tag_pointer_type): Likewise.
6256 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS_P): Replace by
6257 gdbarch_address_class_type_flags_p.
6258 * dwarf2read.c (read_tag_pointer_type): Likewise.
6259 * gdbarch.c, gdbarch.h: Regenerate.
6261 2007-06-09 Markus Deuling <deuling@de.ibm.com>
6263 * gdbarch.sh (ADDR_BITS_REMOVE): Replace by gdbarch_addr_bits_remove.
6264 * value.c (value_as_address): Likewise (comment).
6265 * remote-mips.c (common_breakpoint): Likewise.
6266 * regcache.c (read_pc_pid): Likewise.
6267 * printcmd.c (do_one_display): Likewise.
6268 * monitor.c (monitor_write_memory, monitor_read_memory)
6269 (monitor_insert_breakpoint): Likewise.
6270 * mips-tdep.c (heuristic_proc_start): Likewise.
6271 * infrun.c (insert_step_resume_breakpoint_at_frame)
6272 (insert_step_resume_breakpoint_at_caller): Likewise.
6273 * buildsym.c (record_line): Likewise.
6274 * arm-tdep.c (arm_scan_prologue, thumb_get_next_pc)
6275 (arm_get_next_pc): Likewise.
6276 * armnbsd-nat.c (arm_supply_gregset, fetch_register, store_register)
6277 (store_regs): Likewise.
6278 * arm-linux-tdep.c (arm_linux_supply_gregset): Likewise.
6279 * arm-linux-nat.c (fetch_register, fetch_regs): Likewise.
6280 * gdbarch.c, gdbarch.h: Regenerate.
6282 2007-06-09 Markus Deuling <deuling@de.ibm.com>
6284 * gdbarch.sh (REGISTER_NAME): Replace by gdbarch_register_name.
6285 * tracepoint.c (scope_info): Likewise.
6286 * target.c (debug_print_register): Likewise.
6287 * stack.c (frame_info): Likewise.
6288 * sh-tdep.c (sh_register_reggroup_p): Likewise.
6289 * sh64-tdep.c (sh64_do_fp_register, sh64_do_register)
6290 (sh64_media_print_registers_info)
6291 (sh64_compact_print_registers_info): Likewise.
6292 * rs6000-tdep.c (rs6000_register_reggroup_p): Likewise.
6293 * remote-sim.c (gdbsim_fetch_register): Likewise.
6294 * remote.c (packet_reg): Likewise (comment).
6295 * reggroups.c (default_register_reggroup_p): Likewise.
6296 * regcache.c (regcache_dump): Likewise.
6297 * printcmd.c (address_info): Likewise.
6298 * ppc-linux-nat.c (fetch_register, store_register): Likewise.
6299 * mt-dep.c (mt_registers_info): Likewise.
6300 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Likewise (comment).
6301 * mips-tdep.c (mips_register_reggroup_p, mips_read_fp_register_single)
6302 (mips_read_fp_register_double, mips_print_fp_register)
6303 (mips_print_register, print_gp_register_row, mips_print_registers_info)
6304 (mips_register_sim_regno): Likewise.
6305 * m68klinux-nat.c (regmap, fetch_register, store_register): Likewise.
6306 * inf-ptrace.c (inf_ptrace_fetch_register)
6307 (inf_ptrace_store_register): Likewise.
6308 * infcmd.c (default_print_registers_info): Likewise.
6309 * ia64-linux-nat.c (ia64_linux_fetch_register)
6310 (ia64_linux_store_register): Likewise.
6311 * i386-linux-nat.c (fetch_register, store_register): Likewise.
6312 * i386gnu-nat.c (gnu_fetch_registers, gnu_store_registers): Likewise.
6313 * hppa-linux-nat.c (fetch_register, store_register): Likewise.
6314 * hppa-hpux-nat.c (hppa_hpux_fetch_register)
6315 (hppa_hpux_store_register): Likewise.
6316 * findvar.c (locate_var_value): Likewise.
6317 * dwarf2loc.c (locexpr_describe_location): Likewise.
6318 * dwarf2-frame.c (execute_cfa_program): Likewise.
6319 * arm-tdep.c (arm_push_dummy_call): Likewise.
6320 * arch-utils.c (legacy_register_sim_regno): Likewise.
6321 * alpha-tdep.c (alpha_register_reggroup_p): Likewise.
6322 * alpha-nat.c (fetch_osf_core_registers): Likewise.
6323 * mi/mi-main.c (mi_cmd_data_list_register_names)
6324 (mi_cmd_data_list_changed_registers, mi_cmd_data_list_register_values)
6325 (mi_cmd_data_write_register_values): Likewise.
6326 * gdbarch.c, gdbarch.h: Regenerate.
6328 2007-06-07 Daniel Jacobowitz <dan@codesourcery.com>
6330 * target-memory.c (blocks_to_erase): Correct off-by-one error.
6332 2007-06-06 Vladimir Prus <vladimir@codesourcery.com>
6334 * remote.c (process_g_packet): Don't check size.
6335 * gdbarch.sh: Remove register_bytes_ok.
6336 * gdbarch.c: Regenerated.
6337 * gdbarch.h: Regenerated.
6338 * m68k-tdep.c (REGISTER_BYTES_NOFP): Remove.
6339 (m68k_register_bytes_ok): Remove.
6340 (m68k_gdbarch_init): Don't register m68k_register_bytes_ok.
6342 2007-06-06 Andreas Schwab <schwab@suse.de>
6344 * libunwind-frame.c (unw_destroy_addr_space_p): Define.
6345 (destroy_addr_space_name): Define.
6346 (libunwind_load): Get address of destroy_addr_space function.
6347 (libunwind_frame_cache): Destroy unw_addr_space_t object before
6348 returning unsuccessfully.
6349 (libunwind_frame_sniffer): Destroy unw_addr_space_t object before
6351 (libunwind_sigtramp_frame_sniffer): Likewise.
6352 (libunwind_get_reg_special): Likewise.
6354 2007-06-06 Markus Deuling <deuling@de.ibm.com>
6356 * gdbarch.sh (FETCH_POINTER_ARGUMENT): Replace by
6357 gdbarch_fetch_pointer_argument.
6358 * objc-lang.c (OBJC_FETCH_POINTER_ARGUMENT): Likewise.
6359 * gdbarch.c, gdbarch.h: Regenerate.
6361 2007-06-06 Markus Deuling <deuling@de.ibm.com>
6363 * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Replace by
6364 gdbarch_have_nonsteppable_watchpoint.
6365 * infrun.c (handle_inferior_event, adjust_pc_after_break): Likewise.
6366 * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Replace by
6367 gdbarch_cannot_step_breakpoint.
6368 * infrun.c (resume): Likewise.
6369 * gdbarch.c, gdbarch.h: Regenerate.
6371 2007-06-06 Markus Deuling <deuling@de.ibm.com>
6373 * gdbarch.sh (FRAME_ARGS_SKIP): Replace by gdbarch_frame_args_skip.
6374 * stack.c (print_frame_args): Likewise.
6375 * gdbarch.sh (FRAME_NUM_ARGS): Replace by gdbarch_frame_num_args.
6376 * stack.c (print_args_stub, frame_info): Likewise.
6377 * gdbarch.sh (FRAME_NUM_ARGS_P): Replace by gdbarch_frame_num_args_p.
6378 * stack.c (print_args_stub, frame_info): Likewise.
6379 * gdbarch.c, gdbarch.h: Regenerate.
6381 2007-06-06 Markus Deuling <deuling@de.ibm.com>
6383 * gdbarch.sh (COFF_MAKE_MSYMBOL_SPECIAL): Replace by
6384 gdbarch_coff_make_msymbol_special.
6385 * coffread.c (coff_symtab_read): Likewise.
6386 * gdbarch.sh (ELF_MAKE_MSYMBOL_SPECIAL): Replace by
6387 gdbarch_elf_make_msymbol_special.
6388 * elfread.c (elf_symtab_read): Likewise.
6389 * mips-tdep.c (mips_elf_make_msymbol_special): Likewise (comment).
6390 * sh64-tdep.c (MSYMBOL_IS_SPECIAL): Likewise (comment).
6391 * gdbarch.c, gdbarch.h: Regenerate.
6393 2007-06-06 Markus Deuling <deuling@de.ibm.com>
6395 * gdbarch.sh (FRAME_RED_ZONE_SIZE): Replace by
6396 gdbarch_frame_red_zone_size.
6397 * gdbarch.c, gdbarch.h: Regenerate.
6399 2007-06-06 Markus Deuling <deuling@de.ibm.com>
6401 * gdbarch.sh (INNER_THAN): Replace by gdbarch_inner_than.
6402 * infcall.c (call_function_by_hand): Likewise.
6403 * gcore.c (derive_stack_segment): Likewise.
6404 * frame.c (frame_id_inner): Likewise.
6405 * arch-utils.c (core_addr_lessthan): Likewise (comment).
6406 * ada-lang.c (ensure_lval): Likewise.
6407 * gdbarch.c, gdbarch.h: Regenerate.
6409 2007-06-06 Markus Deuling <deuling@de.ibm.com>
6411 * gdbarch.sh (ADDRESS_TO_POINTER): Replace by
6412 gdbarch_address_to_pointer.
6413 * findvar.c (store_typed_address): Likewise.
6414 * gdbtypes.c (make_pointer_type): Likewise (comment).
6415 * procfs.c (procfs_address_to_host_pointer): Likewise.
6416 * std-regs.c (value_of_builtin_frame_reg): Likewise.
6417 (value_of_builtin_frame_fp_reg): Likewise.
6418 (value_of_builtin_frame_pc_reg): Likewise.
6419 * utils.c (paddress): Likewise (comment).
6420 * gdbarch.sh (POINTER_TO_ADDRESS): Replace by
6421 gdbarch_pointer_to_address.
6422 * findvar.c (extract_typed_address): Likewise.
6423 * gdbtypes.c (make_pointer_type): Likewise (comment).
6424 * valops.c (value_cast): Likewise (comment).
6425 * gdbarch.c, gdbarch.h: Regenerate.
6427 2007-06-06 Markus Deuling <deuling@de.ibm.com>
6429 * gdbarch.sh (GET_LONGJMP_TARGET): Replace by gdbarch_get_longjmp_target.
6430 * infrun.c (handle_inferior_event): Likewise.
6431 * gdbarch.sh (GET_LONGJMP_TARGET_P): Replace by
6432 gdbarch_get_longjmp_target_p.
6433 * breakpoint.c (breakpoint_re_set): Likewise.
6434 * infrun.c (handle_inferior_event): Likewise.
6435 * gdbarch.c, gdbarch.h: Regenerate.
6437 2007-06-06 Ulrich Weigand <uweigand@de.ibm.com>
6439 * hppa-hpux-tdep.c (args_for_find_stub, HP_ACC_EH_notify_hook,
6440 HP_ACC_EH_set_hook_value, HP_ACC_EH_notify_callback, HP_ACC_EH_break,
6441 HP_ACC_EH_catch_throw, HP_ACC_EH_catch_catch, __eh_notification,
6442 hp_cxx_exception_support, hp_cxx_exception_support_initialized,
6443 eh_notify_hook_addr, eh_notify_callback_addr, eh_break_addr,
6444 eh_catch_throw_addr, break_callback_sal, setup_d_pid_in_inferior,
6445 find_stub_with_shl_get, cover_find_stub_with_shl_get,
6446 initialize_hp_cxx_exception_support, child_enable_exception_callback,
6447 current_ex_event, child_get_current_exception_event): Remove.
6448 (hppa_hpux_inferior_created): Remove.
6449 (hppa_hpux_init_abi): Do not install hppa_hpux_inferior_created.
6451 * breakpoint.h (deprecated_exception_catchpoints_are_fragile): Remove.
6452 (deprecated_exception_support_initialized): Remove.
6453 * breakpoint.c (deprecated_exception_catchpoints_are_fragile): Remove.
6454 (deprecated_exception_support_initialized): Remove.
6455 (breakpoint_init_inferior): Remove handling of non-zero
6456 deprecated_exception_catchpoints_are_fragile.
6458 * symtab.h (deprecated_hp_som_som_object_present): Remove.
6459 * symtab.c (deprecated_hp_som_som_object_present): Remove.
6460 * c-typeprint.c (c_type_print_base): Remove handling of non-zero
6461 deprecated_hp_som_som_object_present.
6462 * eval.c (evaluate_subexp_standard): Likewise.
6463 * valops.c (value_cast): Likewise.
6465 * parse.c (parse_nested_classes_for_hpacc, coloncolon): Remove.
6466 * parser-defs.h (parse_nested_classes_for_hpacc): Remove.
6467 * c-exp.y (yylex): Do not call parse_nested_classes_for_hpacc.
6469 2007-06-06 Ulrich Weigand <uweigand@de.ibm.com>
6471 * objfiles.h (ImportEntry, ExportEntry): Remove types.
6472 (struct objfile): Remove import_list, import_list_size,
6473 export_list, export_list_size members.
6474 (is_in_import_list): Remove prototype.
6475 * objfiles.c (is_in_import_list): Remove.
6476 * somread.c (init_import_symbols, init_export_symbols): Remove.
6477 (som_symfile_read): Do not call init_import_symbols. Do not
6478 set objfile->export_list and objfile->export_list_size.
6480 2007-06-05 Daniel Jacobowitz <dan@codesourcery.com>
6482 * dwarf2read.c (dwarf2_symbol_mark_computed): Fix formatting.
6483 Use the original objfile if necessary.
6485 2007-06-04 Daniel Jacobowitz <dan@codesourcery.com>
6487 * defs.h (ldirname): New prototype.
6488 * dwarf2read.c (read_file_scope): Use DW_AT_name if DW_AT_comp_dir is
6490 * utils.c (ldirname): New function.
6491 * xml-tdesc.c (file_read_description_xml): Use ldirname.
6493 2007-06-01 Ulrich Weigand <uweigand@de.ibm.com>
6495 * spu-tdep.c (spu_push_dummy_call): Store stack back chain.
6497 2007-06-01 Joel Brobecker <brobecker@adacore.com>
6499 * solib-svr4.c (svr4_solib_create_inferior_hook): Remove warning.
6501 2007-06-01 Ulrich Weigand <uweigand@de.ibm.com>
6503 * irix5-nat.c (JB_ELEMENT_SIZE, get_longjmp_target): Remove.
6505 2007-06-01 Ulrich Weigand <uweigand@de.ibm.com>
6507 * ppc-linux-tdep.c (INSTR_SC, INSTR_LI_R0_0x6666, INSTR_LI_R0_0x7777,
6508 INSTR_LI_R0_NR_sigreturn, INSTR_LI_R0_NR_rt_sigreturn): Remove.
6509 (PPC_LINUX_SIGNAL_FRAMESIZE, PPC_LINUX_REGS_PTR_OFFSET,
6510 PPC_LINUX_HANDLER_PTR_OFFSET): Remove.
6511 (ppc_linux_in_sigtramp, insn_is_sigreturn,
6512 ppc_linux_at_sigtramp_return_path): Remove.
6514 2007-05-31 Markus Deuling <deuling@de.ibm.com>
6516 * xtensa-tdep.c (XTENSA_IS_ENTRY, extract_call_winsize)
6517 (xtensa_register_write_masked, xtensa_register_read_masked)
6518 (xtensa_extract_return_value, xtensa_store_return_value
6519 (xtensa_push_dummy_call, xtensa_breakpoint_from_pc): Replace
6520 TARGET_BYTE_ORDER by gdbarch_byte_order.
6521 * sh-tdep.c (sh_breakpoint_from_pc, gdb_print_insn_sh)
6522 (sh_justify_value_in_reg, sh_next_flt_argreg, sh_push_dummy_call_fpu)
6523 (sh_extract_return_value_fpu, sh_store_return_value_fpu): Likewise.
6524 * sh64-tdep.c (sh64_breakpoint_from_pc, gdb_print_insn_sh64)
6525 (sh64_push_dummy_call, sh64_extract_return_value)
6526 (sh64_store_return_value, sh64_register_convert_to_virtual)
6527 (sh64_register_convert_to_raw, sh64_pseudo_register_read)
6528 (sh64_pseudo_register_write, sh64_do_fp_register)
6529 (sh64_frame_prev_register): Likewise.
6530 * score-tdep.c (score_print_insn, score_breakpoint_from_pc)
6531 (score_return_value, score_push_dummy_call, score_fetch_inst): Likewise.
6532 * rs6000-tdep.c (rs6000_breakpoint_from_pc, rs6000_push_dummy_call)
6533 (e500_move_ev_register,gdb_print_insn_powerpc): Likewise.
6534 * remote-m32r-sdi.c (m32r_resume, m32r_wait): Likewise.
6535 * ppc-linux-nat.c (store_register): Likewise.
6536 * nto-tdep.c (nto_find_and_open_solib)
6537 (nto_init_solib_absolute_prefix): Likewise.
6538 * mips-tdep.c (mips_pseudo_register_read, mips_pseudo_register_write)
6539 (mips_convert_register_p, mips_eabi_push_dummy_call)
6540 (mips_n32n64_push_dummy_call, mips_n32n64_return_value)
6541 (mips_o32_push_dummy_call, mips_o32_return_value)
6542 (mips_o64_push_dummy_call, mips_o64_return_value, mips_o64_return_value)
6543 (mips_read_fp_register_single, mips_read_fp_register_double)
6544 (mips_print_register, print_gp_register_row, gdb_print_insn_mips)
6545 (mips_breakpoint_from_pc): Likewise.
6546 * mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset): Likewise.
6547 * mips-linux-tdep.c (mips64_supply_fpregset, mips64_fill_fpregset)
6548 (mips_linux_o32_sigframe_init): Likewise.
6549 * m32r-tdep.c (m32r_memory_insert_breakpoint)
6550 (m32r_memory_remove_breakpoint, m32r_breakpoint_from_pc): Likewise.
6551 * libunwind-frame.c (libunwind_frame_cache, libunwind_frame_sniffer)
6552 (libunwind_sigtramp_frame_sniffer, libunwind_get_reg_special): Likewise.
6553 * iq2000-tdep.c (iq2000_breakpoint_from_pc): Likewise.
6554 * coffread.c (process_coff_symbol): Likewise.
6555 * arm-tdep.c (convert_from_extended, convert_to_extended)
6556 (gdb_print_insn_arm): Likewise.
6558 2007-05-31 Markus Deuling <deuling@de.ibm.com>
6560 * gdbarch.sh (NUM_REGS): Replace by gdbarch_num_regs.
6561 * i386-tdep.c (i386_dbx_reg_to_regnum)
6562 (i386_svr4_reg_to_regnum): Likewise.
6563 * inf-ptrace.c (inf_ptrace_fetch_registers)
6564 (inf_ptrace_store_registers): Likewise.
6565 * corelow.c (get_core_registers): Likewise.
6566 * i386-linux-nat.c (supply_gregset, fill_gregset)
6567 (i386_linux_fetch_inferior_registers)
6568 (i386_linux_store_inferior_registers): Likewise.
6569 * remote.c (init_remote_state,packet_reg_from_regnum)
6570 (packet_reg_from_pnum,process_g_packet,remote_fetch_registers)
6571 (remote_prepare_to_store,store_registers_using_G)
6572 (remote_store_registers,remote_arch_state): Likewise.
6573 * tracepoint.c (encode_actions): Likewise.
6574 * mi/mi-main.c (mi_cmd_data_list_register_names)
6575 (mi_cmd_data_list_changed_registers,mi_cmd_data_list_register_values)
6576 (mi_cmd_data_write_register_values): Likewise.
6577 * tui/tui-regs.c (tui_show_register_group)
6578 (tui_show_register_group): Likewise.
6579 * xtensa-tdep.h (FP_ALIAS): Likewise.
6580 * xtensa-tdep.c (xtensa_register_name,xtensa_register_type)
6581 (xtensa_reg_to_regnum,xtensa_pseudo_register_read)
6582 (xtensa_pseudo_register_write,xtensa_register_reggroup_p): Likewise.
6583 * win32-nat.c (do_win32_fetch_inferior_registers)
6584 (do_win32_store_inferior_registers,fetch_elf_core_registers
6585 * user-regs.h: Likewise (comment).
6586 * user-regs.c (user_reg, user_reg_map_name_to_regnum): Likewise.
6587 * trad-frame.c (trad_frame_alloc_saved_regs): Likewise.
6588 * target-descriptions.h: Likewise (comment).
6589 * target-descriptions.c (tdesc_use_registers): Likewise (comment).
6590 * target.c (debug_print_register): Likewise.
6591 * stack.c (frame_info): Likewise.
6592 * stabsread.c (define_symbol): Likewise.
6593 * sh64-tdep.c (sh64_do_pseudo_register,sh64_print_register)
6594 (sh64_media_print_registers_info)
6595 (sh64_compact_print_registers_info): Likewise.
6596 * rs6000-tdep.c (rs6000_register_sim_regno): Likewise.
6597 * rs6000-nat.c (fetch_register,store_register): Likewise.
6598 * remote-sim.c (one2one_register_sim_regno,gdbsim_fetch_register)
6599 (gdbsim_fetch_register,gdbsim_store_register): Likewise.
6600 * remote-mips.c (mips_fetch_registers,mips_store_registers): Likewise.
6601 * remote-m32r-sdi.c (m32r_fetch_registers)
6602 (m32r_store_registers): Likewise.
6603 * reggroups.c (default_register_reggroup_p): Likewise.
6604 * regcache.c (init_regcache_descr,register_size,regcache,regcache_save)
6605 (regcache_restore,regcache_dump): Likewise.
6606 * monitor.c (monitor_fetch_registers,monitor_store_registers): Likewise.
6607 * mips-tdep.c (mips_xfer_register,mips_register_name)
6608 (mips_register_reggroup_p,mips_pseudo_register_read)
6609 (mips_pseudo_register_write,mips_convert_register_p,mips_register_type)
6610 (mips_unwind_pc,mips_unwind_sp,mips_unwind_dummy_id,set_reg_offset)
6611 (mips16_scan_prologue,mips_insn16_frame_cache,reset_saved_regs)
6612 (mips32_scan_prologue,mips_insn32_frame_cache,read_next_frame_reg)
6613 (mips_n32n64_return_value,mips_o32_return_value,mips_o64_return_value)
6614 (print_gp_register_row,mips_print_registers_info)
6615 (mips_stab_reg_to_regnum,mips_dwarf_dwarf2_ecoff_reg_to_regnum)
6616 (mips_register_sim_regno): Likewise.
6617 * mips-linux-tdep.c (mips_linux_o32_sigframe_init)
6618 (mips_linux_n32n64_sigframe_init): Likewise.
6619 * mips-linux-nat.c (mips_linux_register_addr)
6620 (mips64_linux_register_addr): Likewise.
6621 * findvar.c (value_of_register): Likewise.
6622 * infcmd.c (default_print_registers_info,registers_info)
6623 (print_vector_info,print_float_info): Likewise.
6624 * mips64obsd-tdep.c (mips64obsd_sigframe_init): Likewise.
6625 * inf-child.c (inf_child_fetch_inferior_registers): Likewise.
6626 * m68k-tdep.c (m68k_dwarf_reg_to_regnum): Likewise.
6627 * m68hc11-tdep.c (m68hc11_frame_unwind_cache(: Likewise.
6628 * m32r-tdep.c (m32r_frame_unwind_cache): Likewise.
6629 * ia64-linux-nat.c (ia64_register_addr,ia64_cannot_fetch_register)
6630 (ia64_cannot_store_register,ia64_linux_fetch_registers)
6631 (ia64_linux_store_registers): Likewise.
6632 * hpux-thread.c (hpux_thread_fetch_registers)
6633 (hpux_thread_store_registers): Likewise.
6634 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM,E_PSEUDO_EXR_REGNUM)
6635 (h8300_init_frame_cache,h8300_frame_cache,h8300_frame_prev_register)
6636 (h8300_register_type): Likewise.
6637 * dwarf2-frame.c (dwarf2_frame_cache)
6638 (dwarf2_frame_state_alloc_regs): Likewise.
6639 * cris-tdep.c (cris_register_size,cris_cannot_fetch_register)
6640 (cris_cannot_store_register,crisv32_cannot_fetch_register)
6641 (crisv32_cannot_store_register,cris_register_name): Likewise.
6642 * avr-tdep.c (avr_frame_unwind_cache): Likewise.
6643 * arch-utils.c (legacy_register_sim_regno)
6644 (legacy_virtual_frame_pointer): Likewise.
6645 * arm-tdep.c (arm_make_prologue_cache,arm_register_sim_regno):Likewise.
6646 * arm-tdep.h: Likewise (comment).
6647 * frv-tdep.c (frv_register_sim_regno): Likewise.
6648 * m68klinux-nat.c (old_fetch_inferior_registers)
6649 (old_store_inferior_registers): Likewise.
6650 * m32c-tdep.c (m32c_virtual_frame_pointer): Likewise.
6651 * irix5-nat.c (fetch_core_registers): Likewise.
6652 * hppa-tdep.c (hppa_frame_cache): Likewise.
6653 * hppa-linux-nat.c (hppa_linux_register_addr)
6654 (hppa_linux_fetch_inferior_registers)
6655 (hppa_linux_store_inferior_registers): Likewise.
6656 * hppa-hpux-nat.c (hppa_hpux_fetch_inferior_registers)
6657 (hppa_hpux_store_inferior_registers): Likewise.
6658 * amd64-nat.c (amd64_native_gregset_reg_offset)
6659 (amd64_supply_native_gregset,amd64_collect_native_gregset): Likewise.
6660 * dbug-rom.c (dbug_regname): Likewise.
6661 * m68hc11-tdep.c (m68hc11_frame_unwind_cache)
6662 (HARD_PAGE_REGNUM (comment)): Likewise.
6663 * gdbarch.sh (NUM_PSEUDO_REGS): Replace by gdbarch_num_pseudo_regs.
6664 * i386-tdep.c (i386_dbx_reg_to_regnum)
6665 (i386_svr4_reg_to_regnum): Likewise.
6666 * mi/mi-main.c (mi_cmd_data_list_register_names)
6667 (mi_cmd_data_list_changed_registers,mi_cmd_data_list_register_values)
6668 (mi_cmd_data_write_register_values): Likewise.
6669 * gdbarch.c, gdbarch.h: Regenerate.
6670 * tui/tui-regs.c (tui_show_register_group): Likewise.
6671 * xtensa-tdep.h (FP_ALIAS): Likewise.
6672 * user-regs.h: Likewise (comment).
6673 * user-regs.c (user_reg, user_reg_map_name_to_regnum): Likewise.
6674 * trad-frame.c (trad_frame_alloc_saved_regs): Likewise.
6675 * target-descriptions.h: Likewise (comment).
6676 * target.c (debug_print_register): Likewise.
6677 * stack.c (frame_info): Likewise.
6678 * stabsread.c (define_symbol): Likewise.
6679 * sh64-tdep.c (sh64_print_register,sh64_media_print_registers_info)
6680 (sh64_compact_print_registers_info): Likewise.
6681 * rs6000-tdep.c (rs6000_register_sim_regno): Likewise.
6682 * regcache.c (init_regcache_descr,register_size,regcache,regcache_save
6683 (regcache_restore,regcache_dump): Likewise.
6684 * mips-tdep.c (print_gp_register_row,mips_print_registers_info)
6685 (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
6686 (mips_stab_reg_to_regnum): Likewise.
6687 * findvar.c (value_of_register): Likewise.
6688 * infcmd.c (default_print_registers_info,registers_info)
6689 (print_vector_info,print_float_info): Likewise.
6690 * m68k-tdep.c (m68k_dwarf_reg_to_regnum): Likewise.
6691 * h8300-tdep.c (h8300_register_type): Likewise.
6692 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
6693 * frame.h (SIZEOF_FRAME_SAVED_REGS): Likewise.
6694 * xtensa-tdep.c (xtensa_register_type,xtensa_reg_to_regnum)
6695 (xtensa_pseudo_register_read,xtensa_pseudo_register_write): Likewise.
6696 * parse.c: Remove comment.
6697 * gdbarch.c, gdbarch.h: Regenerate
6699 2007-05-31 Markus Deuling <deuling@de.ibm.com>
6701 * gdbarch.sh (CANNOT_FETCH_REGISTER): Replace by
6702 gdbarch_cannot_fetch_register.
6703 * alpha-nat.c (fetch_osf_core_registers): Likewise.
6704 * hppa-linux-nat.c (fetch_register): Likewise.
6705 * inf-ptrace.c (inf_ptrace_fetch_register): Likewise.
6706 * m68klinux-nat.c (fetch_register): Likewise.
6707 * mipsnbsd-tdep.c (mipsnbsd_supply_reg, mipsnbsd_supply_fpreg):
6709 * gdbarch.sh (CANNOT_STORE_REGISTER): Replace by
6710 gdbarch_cannot_store_register.
6711 * hppa-linux-nat.c (store_register): Likewise.
6712 * inf-ptrace.c (inf_ptrace_store_register): Likewise.
6713 * regcache.c (regcache_raw_write): Likewise.
6714 * m68klinux-nat.c (store_register): Likewise.
6715 * mipsnbsd-tdep.c (mipsnbsd_fill_reg, mipsnbsd_fill_fpreg): Likewise.
6716 * gdbarch.c, gdbarch.h: Regenerate.
6718 2007-05-31 Markus Deuling <deuling@de.ibm.com>
6720 * gdbarch.sh (TARGET_OSABI): Replace by gdbarch_osabi.
6721 * gdbarch.c, gdbarch.h: Regenerate.
6723 2007-05-31 Markus Deuling <deuling@de.ibm.com>
6725 * gdbarch.sh (TARGET_CHAR_SIGNED): Replace by gdbarch_char_signed.
6726 * gdbtypes.c (build_gdbtypes, gdbtypes_post_init): Likewise.
6727 * gdbarch.c, gdbarch.h: Regenerate.
6729 2007-05-31 Markus Deuling <deuling@de.ibm.com>
6731 * gdbarch.sh (TARGET_BYTE_ORDER): Replace by gdbarch_byte_order.
6732 * ax-gdb.c (gen_bitfield_ref): Likewise.
6733 * mi/mi-main.c (get_register): Likewise.
6734 * findvar.c (default_value_from_register, extract_signed_integer)
6735 (extract_unsigned_integer, extract_long_unsigned_integer)
6736 (store_signed_integer, store_unsigned_integer): Likewise.
6737 * regcache.c (regcache_dump): Likewise.
6738 * value.c (lookup_internalvar, value_of_internalvar)
6739 (set_internalvar): Likewise.
6741 * valprint.c (print_binary_chars, print_octal_chars)
6742 (print_decimal_chars, print_hex_chars, print_char_chars): Likewise.
6743 * infcmd.c (default_print_registers_info): Likewise.
6744 * arch-utils.c (selected_byte_order, show_endian): Likewise.
6745 * stabsread.c (define_symbol): Likewise.
6746 * doublest.c (floatformat_from_length, floatformat_from_type)
6747 (extract_typed_floating, store_typed_floating): Likewise.
6748 * gdbarch.c, gdbarch.h: Regenerate.
6750 2007-05-31 Markus Deuling <deuling@de.ibm.com>
6752 * gdbarch.sh (CALL_DUMMY_LOCATION): Replace by
6753 gdbarch_call_dummy_location.
6754 * infcall.c (call_function_by_hand): Likewise.
6755 * inferior.h: Change comment.
6756 * arch-utils.c: Change comment.
6757 * gdbarch.c, gdbarch.h: Regenerate.
6759 2007-05-28 Joel Brobecker <brobecker@adacore.com>
6761 * solib-aix5.c: Delete.
6762 * Makefile.in (solib-aix5.o): Delete rule.
6764 2007-05-23 Daniel Jacobowitz <dan@codesourcery.com>
6766 * breakpoint.h (enum bpstat_what_main_action): Remove
6767 BPSTAT_WHAT_THROUGH_SIGTRAMP.
6768 * infrun.c (process_event_stop_test): Do not check for it.
6770 2007-05-22 Chris Dearman <chris@mips.com>
6771 Maciej W. Rozycki <macro@mips.com>
6773 * ser-unix.c (show_serial_hwflow): New function.
6774 (hardwire_raw): Add hardware flow control support.
6775 (_initialize_ser_hardwire): Add "set/show remoteflow".
6776 * Makefile.in (ser-unix.o): Depend on $(gdbcmd_h).
6777 * NEWS: Document the new command.
6779 2007-05-21 Ulrich Weigand <uweigand@de.ibm.com>
6781 * config/i386/tm-linux.h (sys_quotactl): Do not define.
6782 * configure.ac (sys_quotactl, START_INFERIOR_TRAPS_EXPECTED): Do not
6783 define for i[[3456]]86-*-linux* native configurations.
6784 * config.in, configure: Regenerate.
6786 2007-05-19 Joel Brobecker <brobecker@adacore.com>
6788 * rs6000-nat.c (xcoff_relocate_symtab): Do nothing if debugging
6789 a core file. Add comment in the function description.
6791 2007-05-18 Caroline Tice <ctice@apple.com>
6793 * c-valprint.c (c_value_print): If the initialized field of the
6794 value struct is 0, print out "[uninitialized]" before the value.
6795 * dwarf2expr.c (execute_stack_op): Initialize ctx->initialized field;
6796 allow DW_OP_GNU_uninit as legal op following a DW_OP_reg op or a
6797 DW_OP_regx op; add case for DW_OP_GNU_uninit and update
6798 ctx->initialized appropriately. Verify no location op follows
6800 * dwarf2expr.h (struct dwarf_expr_context): New field, initialized.
6801 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Add call to
6802 set_value_initialized.
6803 * dwarf2read.c (dwarf_stack_op_name): Add case for DW_OP_GNU_uninit.
6804 (decode_locdesc): Add case for DW_OP_GNU_uninit.
6805 * value.c (struct value): New field, initialized.
6806 (allocate_value): Initialize new field.
6807 (set_value_initialized): New function.
6808 (value_initialized): New function.
6809 * value.h (value_initialized): New extern declaration.
6810 (set_value_initialized): Likewise.
6812 2007-05-18 Caroline Tice <ctice@apple.com>
6814 * MAINTAINERS (Write After Approval): Add self.
6816 2007-05-17 Joel Brobecker <brobecker@adacore.com>
6818 * gdbtypes.c (make_reference_type): Preserve the type chain
6819 and set the length of all the variants of the pointer type.
6821 2007-05-17 Joel Brobecker <brobecker@adacore.com>
6823 * gdbtypes.c (make_pointer_type): Preserve the pointer type chain
6824 and set the length of all the variants of the pointer type.
6826 2007-05-17 Maciej W. Rozycki <macro@mips.com>
6828 * mips-tdep.c (mips_n32n64_push_dummy_call): Fix and reformat a
6830 (mips_o64_push_dummy_call): Reformat a comment.
6832 2007-05-17 Qinwei <qinwei@sunnorth.com.cn>
6834 * score-tdep.c (score_frame_cache->fp, score_analyze_prologue)
6835 (score_prologue_frame_base_address): Return fp to keep gdb print
6836 local variables correctly when debugging information is stabs.
6838 (score_analyze_prologue): For software watchpoint, fetch all the
6839 instructions from range [startaddr, pc] once and identify them locally
6840 to reduce memory access.
6841 (score_malloc_and_get_memblock, score_free_memblock)
6842 (score_adjust_memblock_ptr): New functions.
6843 (score_fetch_inst): Fetch single instruction or mutiple instructions.
6845 (score_target_can_use_watch, score_stopped_by_watch)
6846 (score_target_insert_watchpoint, score_target_remove_watchpoint)
6847 (score_target_insert_hw_breakpoint, score_target_remove_hw_breakpoint):
6848 New functions for remote & local hw-watchpoint and hw-breakpoint.
6850 2007-05-16 Alfred M. Szmidt <ams@gnu.org>
6852 * reply_mig_hack.awk: Check for `auto const mach_msg_type_t'
6853 declarations as well.
6855 2007-05-16 Ulrich Weigand <uweigand@de.ibm.com>
6857 * config/arm/embed.mt (DEPRECATED_TM_FILE): Set to tm-arm.h.
6858 * config/arm/tm-embed.h: Delete file.
6860 * arm-tdep.h (arm_software_single_step): Declare.
6861 * arm-tdep.c (arm_software_single_step): Make global.
6862 (arm_gdbarch_init): Move set_gdbarch_software_single_step call
6864 * arm-linux-tdep.c (arm_linux_init_abi): ... here ...
6865 * armnbsd-tdep.c (arm_netbsd_init_abi_common): ... here ...
6866 * armobsd-tdep.c (armobsd_init_abi): ... here ...
6867 * arm-wince-tdep.c (arm_wince_init_abi): ... and here.
6869 * arm-tdep.c (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT): No longer
6870 allow defines to be overriden by TM file.
6871 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Likewise. Also,
6872 change default to {0xbe,0xbe}.
6873 * armobsd-tdep.c (arm_obsd_thumb_le_breakpoint,
6874 arm_obsd_thumb_be_breakpoint): New global variables.
6875 (armobsd_init_abi): Override tdep->thumb_breakpoint and
6876 tdep->thumb_breakpoint_size.
6877 * arm-wince-tdep.c (arm_wince_thumb_le_breakpoint): New variable.
6878 (arm_wince_init_abi): Override tdep->thumb_breakpoint and
6879 tdep->thumb_breakpoint_size.
6881 * arm-tdep.c (arm_gdbarch_init): Add set_gdbarch_skip_trampoline_code.
6883 2007-05-16 Daniel Jacobowitz <dan@codesourcery.com>
6885 * NEWS: Mention removed "set mips stack-arg-size" and "set mips
6888 * mips-tdep.c (MIPS32_REGSIZE, MIPS64_REGSIZE): New constants.
6889 (size_auto, size_32, size_64, size_enums, mips_abi_regsize_string)
6890 (mips_stack_argsize_string, mips_stack_argsize): Delete.
6891 (mips_abi_regsize): Simplify.
6892 (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call)
6893 (mips_n32n64_return_value, mips_o32_push_dummy_call)
6894 (mips_o32_return_value, mips_o64_push_dummy_call)
6895 (mips_o64_return_value): Propogate constant register sizes. Use the
6896 ABI register size instead of mips_stack_argsize.
6897 (mips_dump_tdep): Don't print mips_stack_argsize.
6898 (_initialize_mips_tdep): Remove saved-gpreg-size and stack-arg-size
6901 2007-05-16 Daniel Jacobowitz <dan@codesourcery.com>
6903 * config/mips/linux.mt (DEPRECATED_TM_FILE): Delete.
6904 * config/mips/tm-linux.h: Delete.
6905 * mips-linux-tdep.c (mips_svr4_so_ops): New.
6906 (mips_linux_in_dynsym_resolve_code): Make static. Use
6907 svr4_in_dynsym_resolve_code.
6908 (mips_linux_init_abi): Initialize mips_svr4_so_ops. Call
6910 * solib-svr4.c (svr4_in_dynsym_resolve_code, svr4_so_ops): Make
6912 * solib-svr4.h (svr4_so_ops, svr4_in_dynsym_resolve_code): Declare.
6913 * Makefile.in (mips-linux-tdep.o): Update.
6914 * solib.c (set_solib_ops): New.
6915 (current_target_so_ops): Update comment.
6916 * solib.h (set_solib_ops): New prototype.
6918 2007-05-16 Chris Dearman <chris@mips.com>
6920 * printcmd.c (do_examine): Fix typos in a comment.
6922 2007-05-16 Richard Sandiford <richard@codesourcery.com>
6924 * configure.ac: Allow sysroots to be relocated under $prefix as
6925 well as $exec_prefix.
6926 * configure: Regenerate.
6928 2007-05-14 Ulrich Weigand <uweigand@de.ibm.com>
6930 * hppa-hpux-tdep.c: Do not include <dl.h> or <machine/save_state.h>.
6931 (offsetof): Do not define.
6932 (find_stub_with_shl_get): Use numerical value 3 instead of
6933 symbolic value TYPE_PROCEDURE.
6935 2007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
6937 * gdb_proc_service.h (paddr_t): Delete typedef.
6938 * proc-service.c (ps_addr_to_core_addr, core_addr_to_ps_addr): New.
6939 (ps_xfer_memory): Take a psaddr_t. Use ps_addr_to_core_addr.
6940 (ps_pglobal_lookup): Take a psaddr_t *. Use core_addr_to_ps_addr.
6941 (ps_pdread, ps_pdwrite, ps_ptread, ps_ptwrite): Take a psaddr_t.
6942 * sol-thread.c (gdb_ps_addr_t): Use psaddr_t instead of paddr_t.
6943 * Makefile.in (proc-service.o): Update.
6945 2007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
6947 * Makefile.in (mips-tdep.o): Update.
6948 * mips-tdep.c (mips_gdbarch_init): Register the dwarf2 CFI
6951 2007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
6953 * dwarf2-frame.c (dwarf2_frame_prev_register): Use pack_long
6954 instead of store_typed_address.
6955 * value.c (pack_long): New.
6956 (value_from_longest): Use it.
6957 * value.h (pack_long): New prototype.
6959 2007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
6961 * dwarf2-frame.c (read_encoded_value): Correct typo. Use
6962 DW_EH_PE_signed if appropriate.
6964 2007-05-14 Paul Brook <paul@codesourcery.com>
6965 Daniel Jacobowitz <dan@codesourcery.com>
6967 * dwarf2read.c (dwarf2_debug_line_missing_file_complaint): New
6969 (dwarf_decode_lines): Check for line info without a file.
6971 2007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
6973 * linux-thread-db.c (thread_db_pid_to_str): Print thread IDs
6976 2007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
6978 * jv-exp.y (push_fieldnames): Use STRUCTOP_PTR instead of
6980 * jv-lang.c (evaluate_subexp_java): Handle STRUCTOP_PTR instead of
6982 * jv-typeprint.c (java_print_type): Do not crash on NULL varstring.
6984 2007-05-14 Ulrich Weigand <uweigand@de.ibm.com>
6986 * gdbarch.sh (read_sp): Remove.
6987 * gdbarch.c, gdbarch.h: Regenerate.
6988 * frame.c (frame_sp_unwind): Do not call TARGET_READ_SP.
6990 * avr-tdep.c (avr_read_sp): Remove.
6991 (avr_unwind_sp): New function.
6992 (avr_gdbarch_init): Install unwind_sp instead of read_sp callback.
6993 * mips-tdep.c (mips_read_sp): Remove.
6994 (mips_unwind_sp): New function.
6995 (mips_gdbarch_init): Install unwind_sp instead of read_sp callback.
6996 * score-tdep.c (score_read_unsigned_register): Remove.
6997 (score_read_sp): Remove.
6998 (score_unwind_sp): New function.
6999 (score_gdbarch_init): Install unwind_sp instead of read_sp callback.
7001 2007-05-14 Maxim Grigoriev <maxim2405@gmail.com>
7003 * buildsym.c (start_subfile): Handle absolute pathnames
7004 while comparing subfile names.
7006 2007-05-13 Ulrich Weigand <uweigand@de.ibm.com>
7008 * hppa-hpux-tdep.c: Include "regcache.h".
7009 * hppa-linux-tdep.c: Likewise.
7010 * hppa-tdep.c: Include "gdb_stdint.h".
7011 (find_unwind_entry): Cast host pointer to uintptr_t before passing
7013 * Makefile.in: Update dependencies.
7015 2007-05-13 Ulrich Weigand <uweigand@de.ibm.com>
7017 * blockframe.c: Remove obsolete comments.
7018 * alpha-nat.c (fetch_osf_core_registers): Update comment.
7019 * arm-tdep.h (enum gdb_regnum): Remove obsolete part of comment.
7020 * hppa-tdep.h (enum hppa_regnum): Likewise.
7021 * mips-tdep.h: Likewise.
7022 * m68hc11-tdep.c: Likewise.
7024 2007-05-13 Ulrich Weigand <uweigand@de.ibm.com>
7026 * inferior.h (read_sp): Remove prototype.
7027 * regcache.c (read_sp): Remove.
7028 * gcore.c (derive_stack_segment): Use get_frame_sp instead of read_sp.
7029 * infcall.c (call_function_by_hand): Likewise.
7030 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Use regcache instead
7032 * rs6000-tdep.c (rs6000_push_dummy_call): Likewise.
7034 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
7036 * i386-linux-nat.c (i386_linux_resume): Use regcache functions
7037 instead of read_register and read_register_pid.
7039 * ia64-linux-nat.c (enable_watchpoints_in_psr): Use REGCACHE
7040 argument instead of PTID. Use regcache functions instead of
7042 (ia64_linux_insert_watchpoint): Update call.
7043 (ia64_linux_stopped_data_address): Use regcache functions
7044 instead of read_register_pid and write_register_pid.
7046 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
7048 * libunwind-frame.h (struct regcache): Add forward declaration.
7049 (libunwind_get_reg_special): Add REGCACHE argument.
7050 * libunwind-frame.c (libunwind_get_reg_special): Add REGCACHE
7051 argument. Pass it to unw_init_remote_p.
7053 * ia64-tdep.c (ia64_pseudo_register_read): Pass regcache to
7054 libunwind_get_reg_special.
7055 (ia64_access_reg): Remove "write" case.
7056 (ia64_access_fpreg): Likewise. Read from next_frame passed
7057 as callback argument instead of from current_regcache.
7058 (ia64_access_rse_reg): Remove "write" case. Read from regcache
7059 passed as callback argument instead of from current_regcache.
7060 (ia64_access_rse_fpreg): New function.
7061 (ia64_unw_rse_acce): Use it instead of ia64_access_fpreg.
7063 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
7065 * NEWS: Mention SPU overlay support.
7067 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
7069 * spu-tdep.c (spu_frame_unwind_cache): Add comment.
7071 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
7073 * breakpoint.c (remove_breakpoint): Do not remove software
7074 breakpoints in unmapped overlay sections.
7076 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
7078 * spu-tdep.c: Include "observer.h".
7079 (spu_frame_unwind_cache): Unwind PC through overlay return stubs.
7080 (spu_overlay_data): New variable.
7081 (struct spu_overlay_table): New type.
7082 (spu_get_overlay_table, spu_overlay_update_osect, spu_overlay_update,
7083 spu_overlay_new_objfile): New functions.
7084 (spu_gdbarch_init): Install spu_overlay_update.
7085 (_initialize_spu_tdep): Register spu_overlay_new_objfile,
7086 allocate spu_overlay_data objfile data.
7088 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
7090 * gdbarch.sh (overlay_update): New gdbarch function.
7091 (struct obj_section): Add forward declaration.
7092 * gdbarch.c, gdbarch.h: Regenerate.
7094 * symfile.c (simple_overlay_update): Make global.
7095 (target_overlay_update): Remove variable.
7096 (overlay_is_mapped): Call gdbarch_overlay_update instead of
7097 target_overlay_update.
7098 (overlay_load_command): Likewise.
7099 * symfile.h (struct obj_section): Add forward declaration.
7100 (simple_overlay_update): Add prototype.
7102 * m32r-tdep.c (m32r_gdbarch_init): Install simple_overlay_update.
7104 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
7106 * observer.sh: Add "struct objfile" forward declaration.
7107 * target.h (deprecated_target_new_objfile_hook): Remove.
7108 * symfile.c (deprecated_target_new_objfile_hook): Remove.
7109 (clear_symtab_users): Call observer_notify_new_objfile.
7110 (symbol_file_add_with_addrs_or_offsets): Likewise.
7111 * rs6000-nat.c: Include "observer.h".
7112 (vmap_ldinfo): Call observer_notify_new_objfile.
7113 (xcoff_relocate_core): Likewise.
7114 * remote.c (remote_new_objfile_chain): Remove.
7115 (remote_new_objfile): Do not call remote_new_objfile_chain.
7116 (_initialize_remote): Use observer_attach_new_objfile.
7117 * tui/tui-hooks.c (tui_target_new_objfile_chain): Remove.
7118 (tui_new_objfile_hook): Do not call tui_target_new_objfile_chain.
7119 (_initialize_tui_hooks): Use observer_attach_new_objfile.
7120 * aix-thread.c: Include "observer.h".
7121 (target_new_objfile_chain): Remove.
7122 (new_objfile): Do not call target_new_objfile_chain.
7123 (_initialize_aix_thread): Use observer_attach_new_objfile.
7124 * hpux-thread.c: Include "observer.h"
7125 (target_new_objfile_chain): Remove.
7126 (hpux_thread_new_objfile): Make static. Do not call
7127 target_new_objfile_chain.
7128 (_initialize_hpux_thread): Use observer_attach_new_objfile.
7129 * linux-thread-db.c: Include "observer.h".
7130 (target_new_objfile_chain): Remove.
7131 (thread_db_new_objfile): Do not call target_new_objfile_chain.
7132 (_initialize_thread_db): Use observer_attach_new_objfile.
7133 * sol-thread.c: Include "observer.h".
7134 (target_new_objfile_chain): Remove.
7135 (sol_thread_new_objfile): Make static. Do not call
7136 target_new_objfile_chain.
7137 (_initialize_sol_thread): Use observer_attach_new_objfile.
7138 * Makefile.in (aix-thread.o, hpux-thread.o, linux-thread-db.o,
7139 rs6000-nat.o, sol-thread.o, tui-hooks.o): Add dependency on
7142 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
7144 * gdbarch.sh (remote_translate_xfer_address): Remove.
7145 * gdbarch.h, gdbarch.c: Regenerate.
7146 * arch-utils.c (generic_remote_translate_xfer_address): Remove.
7147 * arch-utils.h (generic_remote_translate_xfer_address): Remove.
7148 * remote.c (remote_write_bytes_aux, remote_read_bytes): Do not
7149 call gdbarch_remote_translate_xfer_address.
7150 * frv-tdep.c (frv_gdbarch_init): Do not call
7151 set_gdbarch_remote_translate_xfer_address.
7152 * ia64-tdep.c (ia64_remote_translate_xfer_address): Remove.
7153 (ia64_gdbarch_init): Do not install it.
7155 2007-05-11 Bob Wilson <bob.wilson@acm.org>
7157 * NEWS: Mention change in handling the -tui option.
7159 2007-05-11 Daniel Jacobowitz <dan@codesourcery.com>
7161 * linux-thread-db.c (enable_thread_event_reporting): Fix comment
7164 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
7166 * breakpoint.c (single_step_breakpoint_inserted_here_p): New function.
7167 (breakpoint_inserted_here_p): Call it.
7168 (software_breakpoint_inserted_here_p): Likewise.
7170 2007-05-10 Ulrich Weigand <uweigand@de.ibm.com>
7172 * inf-ptrace.c (inf_ptrace_register_u_offset): Adapt parameter list.
7173 (inf_ptrace_fetch_register): Add register_u_offset callback parameters
7174 GDBARCH and STORE_P. Handle callback (CORE_ADDR) -1 return value.
7175 (inf_ptrace_store_register): Likewise.
7176 (inf_ptrace_trad_target): Adapt register_u_offset parameter list.
7177 * inf-ptrace.h (inf_ptrace_trad_target): Likewise.
7179 * vax-nat.c (vax_register_u_offset): Adapt parameter list.
7181 * linux-nat.c (linux_trad_target): Adapt parameter list.
7182 * linux-nat.h (linux_trad_target): Likewise.
7184 * alpha-linux-nat.c (alpha_linux_register_u_offset): Adapt parameters.
7186 * mips-linux-nat.c (mips_linux_cannot_fetch_register): Remove.
7187 (mips_linux_cannot_store_register): Likewise.
7188 (mips_linux_register_addr): Add GDBARCH and STORE_P parameters.
7189 Return (CORE_ADDR) -1 for registers that cannot be fetched or
7190 stored via ptrace. Use GDBARCH instead of current_gdbarch.
7191 (mips64_linux_register_addr): Likewise.
7192 (mips_linux_register_u_offset): Adapt parameter list. Pass
7193 GDBARCH and STORE_P on to mips{64}_linux_register_addr.
7195 * config/mips/linux.mh (NAT_FILE): Set to config/nm-linux.h.
7196 * config/mips/nm-linux.h: Delete file.
7198 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
7200 * remote.c (remote_detach): Error out if remote can't detach.
7202 2007-05-10 Luis Machado <luisgpm@br.ibm.com>
7204 * rs6000-tdep.c: (deal_with_atomic_sequence) Stores branch
7205 instruction's opcode in the "opcode" variable and declares new
7206 variable "closing_insn".
7208 2007-05-10 Chris Dearman <chris@mips.com>
7209 Maciej W. Rozycki <macro@mips.com>
7211 * cli/cli-setshow.c (do_setshow_command): Remove trailing
7212 whitespace when setting a var_filename.
7214 2007-05-09 Bob Wilson <bob.wilson@acm.org>
7216 * main.c (captured_main): Recognize -tui option and print an error
7217 message when the TUI is not configured.
7219 2007-05-09 Andreas Schwab <schwab@suse.de>
7221 * mipsnbsd-tdep.c (mipsnbsd_ilp32_fetch_link_map_offsets): Don't
7222 set removed members.
7223 (mipsnbsd_lp64_fetch_link_map_offsets): Likewise.
7225 2007-05-08 Ulrich Weigand <uweigand@de.ibm.com>
7227 * gdbarch.sh (deprecated_store_struct_return): Remove.
7228 * gdbarch.c, gdbarch.h: Regenerate.
7229 * frv-tdep.c (frv_store_struct_return): Remove.
7230 (frv_gdbarch_init): Do not install it.
7232 2007-05-08 Ulrich Weigand <uweigand@de.ibm.com>
7234 * config/i386/nm-i386sol2.h (USE_PROC_FS): Do not define.
7235 * config/mips/nm-irix5.h (USE_PROC_FS): Do not define.
7236 * config/nm-linux.h (USE_PROC_FS): Do not undefine.
7238 2007-05-08 Ulrich Weigand <uweigand@de.ibm.com>
7240 * spu-linux-nat.c: Include "gdb_stdint.h".
7241 (fetch_ppc_register): Use uint64_t instead of unsigned long long.
7242 (fetch_ppc_memory_1, store_ppc_memory_1): Likewise.
7243 (fetch_ppc_memory, store_ppc_memory): Fix coding style.
7244 (spu_symbol_file_add_from_memory): Use strtoulst instead of sscanf.
7245 (spu_child_wait): Mark up string for translation.
7247 2007-05-08 Paul Gilliam <pgilliam@us.ibm.com>
7248 Luis Machado <luisgpm@br.ibm.com>
7250 * rs6000-tdep.c: (LWARX_MASK, LWARX_INSTRUCTION, LDARX_INSTRUCTION,
7251 STWCX_MASK, STWCX_INSTRUCTION, STDCX_INSTRUCTION, BC_MASK,
7252 BC_INSTRUCTION): Define.
7253 (deal_with_atomic_sequence): New function.
7254 (rs6000_software_single_step): Call deal_with_atomic_sequence.
7255 (rs6000_gdbarch_init): Install deal_with_atomic_sequence as
7256 gdbarch_software_single_step routine.
7258 2007-05-07 Ulrich Weigand <uweigand@de.ibm.com>
7260 * spu-linux-nat.c (fetch_ppc_register, fetch_ppc_memory_1,
7261 store_ppc_memory_1, fetch_ppc_memory, store_ppc_memory,
7262 parse_spufs_run, spu_bfd_iovec_pread, spu_bfd_open,
7263 spu_symbol_file_add_from_memory, spu_child_post_startup_inferior,
7264 spu_child_post_attach, spu_fetch_inferior_registers,
7265 spu_store_inferior_registers, spu_xfer_partial): Store PPE-side
7266 memory addresses as ULONGEST, not CORE_ADDR.
7268 2007-05-07 Ulrich Weigand <uweigand@de.ibm.com>
7270 * gdbarch.sh: Add skip_permanent_breakpoint callback.
7271 * gdbarch.h, gdbarch.c: Regenerate.
7273 * infrun.c (SKIP_PERMANENT_BREAKPOINT): Remove default definition.
7274 (resume): Call gdbarch_skip_permanent_breakpoint instead of
7275 SKIP_PERMANENT_BREAKPOINT. Inline default case.
7277 * hppa-hpux-tdep.c (hppa_skip_permanent_breakpoint): Make static.
7278 Add REGCACHE argument. Use it instead of read/write_register.
7279 (hppa_hpux_init_abi): Install hppa_skip_permanent_breakpoint.
7281 * config/pa/tm-hppah.h: Delete file.
7282 * config/pa/hppa64.mt (DEPRECATED_TM_FILE): Set to tm-hppa.h.
7283 * config/pa/hppahpux.mt (DEPRECATED_TM_FILE): Likewise.
7285 2007-05-07 Daniel Jacobowitz <dan@codesourcery.com>
7287 * Makefile.in (c-lang.o, gnu-v3-abi.o): Update.
7288 * NEWS: Mention improved C++ thunk support.
7289 * c-lang.c (cplus_language_defn): Mention cplus_skip_trampoline.
7290 * cp-abi.c (cplus_skip_trampoline): New.
7291 * cp-abi.h (cplus_skip_trampoline): New prototype.
7292 (struct cp_abi_ops): Add skip_trampoline member.
7293 * gnu-v3-abi.c (gnuv3_skip_trampoline): New.
7294 (init_gnuv3_ops): Set skip_trampoline.
7296 2007-05-06 Daniel Jacobowitz <dan@codesourcery.com>
7298 * rs6000-tdep.c (struct frame_extra_info): Delete.
7300 2007-05-06 Daniel Jacobowitz <dan@codesourcery.com>
7302 * linux-thread-db.c: Update some FIXME comments.
7303 (thread_db_xfer_partial): Delete.
7304 (init_thread_db_ops): Do not set to_xfer_partial.
7306 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7308 * inftarg.c, infptrace.c: Remove files.
7309 * Makefile.in (ALLDEPFILES): Remove inftarg.c and infptrace.c
7310 (inftarg.o, infptrace.o): Remove rules.
7311 * gdbcore.h (register_addr): Remove prototype.
7312 * inferior.h (kill_inferior, store_inferior_registers,
7313 fetch_inferior_registers, attach, detach, ptrace_wait, child_resume,
7314 call_ptrace, pre_fork_inferior): Remove prototypes.
7315 * target.h (child_xfer_memory, child_pid_to_exec_file,
7316 child_core_file_to_sym_file, child_post_attach,
7317 child_post_startup_inferior, child_acknowledge_created_inferior,
7318 child_insert_fork_catchpoint, child_remove_fork_catchpoint,
7319 child_insert_vfork_catchpoint, child_remove_vfork_catchpoint,
7320 child_insert_exec_catchpoint, child_remove_exec_catchpoint,
7321 child_follow_fork, child_reported_exec_events_per_exec_call,
7322 child_has_exited, child_thread_alive): Remove prototypes.
7324 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7326 * sparc-nat.h (sparc_fetch_inferior_registers): Add prototype.
7327 (sparc_store_inferior_registers): Likewise.
7328 * sparc-nat.c (fetch_inferior_registers): Rename to ...
7329 (sparc_fetch_inferior_registers): ... this.
7330 (store_inferior_registers): Rename to ...
7331 (sparc_store_inferior_registers): ... this.
7332 (sparc_target): Update callback names.
7333 * sparc-linux.nat.c (_initialize_sparc_linux_nat): Likewise.
7334 * sparc64-linux.nat.c (_initialize_sparc64_linux_nat): Likewise.
7336 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7338 * linux-nat.c (child_post_attach): Rename to ...
7339 (linux_child_post_attach): ... this. Make static.
7340 (child_follow_fork): Rename to ...
7341 (linux_child_follow_fork): ... this. Make static.
7342 (child_insert_fork_catchpoint): Rename to ...
7343 (linux_child_insert_fork_catchpoint): ... this. Make static.
7344 (child_insert_vfork_catchpoint): Rename to ...
7345 (linux_child_insert_vfork_catchpoint): ... this. Make static.
7346 (child_insert_exec_catchpoint): Rename to ...
7347 (linux_child_insert_exec_catchpoint): ... this. Make static.
7348 (child_pid_to_exec_file): Rename to ...
7349 (linux_child_pid_to_exec_file): ... this. Make static.
7351 (linux_handle_extended_wait): Update call.
7352 (linux_xfer_partial): Update callback routine names.
7354 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7356 * configure.host (alpha*-*-osf[12]*): Remove support.
7357 * NEWS: Mention removed configurations.
7359 * config/alpha/alpha-osf1.mh: Delete file.
7360 * config/alpha/alpha-osf2.mh: Delete file.
7361 * config/alpha/alpha-osf3.mh (NATDEPFILES): Remove inftarg.o
7363 * config/alpha/nm-osf.h: Delete file.
7364 * config/alpha/nm-osf2.h: Delete file.
7365 * config/alpha/nm-osf3.h: Do not include "nm-osf2.h".
7366 (START_INFERIOR_TRAPS_EXPECTED): Copy from nm-osf.h.
7367 (PROCFS_DONT_TRACE_FAULTS): Copy from nm-osf2.h.
7369 * alpha-nat.c (ALPHA_UNIQUE_PTRACE_ADDR): Do not define.
7370 (register_addr, kernel_u_size): Remove.
7371 Do not check for "defined(USE_PROC_FS) || defined(HAVE_GREGSET_T)".
7373 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7375 * regcache.c (regcache_invalidate): New function.
7376 (register_cached): Remove.
7377 (set_register_cached): Remove.
7378 (deprecated_registers_fetched): Remove.
7379 (registers_changed): Use regcache_invalidate instead
7380 of set_register_cached.
7381 (regcache_raw_read): Update comment.
7383 * regcache.h (regcache_invalidate): Add prototype.
7384 (register_cached): Remove.
7385 (set_register_cached): Remove.
7386 (deprecated_registers_fetched): Remove.
7388 * findvar.c (value_of_register): Do not call register_cached.
7389 * frame.c (frame_register): Likewise.
7390 * tui/tui-regs.c (tui_get_register): Likewise.
7392 * remote.c (fetch_register_using_p): Do not call set_register_cached.
7393 (process_g_packet): Likewise.
7394 (remote_fetch_registers): Likewise.
7395 * remote-sim.c (gdbsim_fetch_register): Likewise.
7396 * mt-tdep.c (mt_select_coprocessor): Replace set_register_cached call
7397 by regcache_invalidate.
7398 (mt_pseudo_register_write): Likewise.
7399 * sh-tdep.c (sh_pseudo_register_write): Likewise.
7401 * corelow.c (get_core_registers): Replace deprecated_registers_fetched
7402 call by loop over regcache_raw_supply (..., NULL).
7404 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7406 * target.h (struct target_ops): Add REGCACHE parameter to
7407 to_prepare_to_store.
7408 (target_prepare_to_store): Likewise.
7409 * target.c (debug_to_prepare_to_store): Add REGCACHE parameter.
7410 (update_current_target): Adapt prepare_to_store de_fault rule.
7412 * regcache.c (regcache_raw_write): Pass regcache to
7413 target_prepare_to_store.
7415 * inftarg.c (child_prepare_to_store): Add REGCACHE parameter.
7416 Do not call CHILD_PREPARE_TO_STORE.
7417 * gnu-nat.c (gnu_prepare_to_store): Likewise.
7418 * procfs.c (procfs_prepare_to_store): Likewise.
7420 * inf-child.c (inf_child_prepare_to_store): Add REGCACHE parameter.
7421 * go32-nat.c (go32_prepare_to_store): Likewise.
7422 * monitor.c (monitor_prepare_to_store): Likewise.
7423 * nto-procfs.c (procfs_prepare_to_store): Likewise.
7424 * remote-m32r-sdi.c (m32r_prepare_to_store): Likewise.
7425 * remote-mips.c (mips_prepare_to_store): Likewise.
7426 * remote-sim.c (gdbsim_prepare_to_store): Likewise.
7427 * win32-nat.c (win32_prepare_to_store): Likewise.
7429 * remote.c (remote_prepare_to_store): Add REGCACHE parameter.
7430 Use it instead of current_regcache.
7432 * hpux-thread.c (hpux_thread_prepare_to_store): Add REGCACHE
7433 parameter. Pass it on to next target.
7434 * sol-thread.c (sol_thread_prepare_to_store): Likewise.
7436 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7438 * target.h (struct regcache): Add forward declaration.
7439 (struct target_ops): Add REGCACHE parameter to to_fetch_registers
7440 and to_store_registers target operations.
7441 (target_fetch_registers, target_store_registers): Update.
7443 * regcache.c (regcache_raw_read): Replace register_cached by
7444 regcache_valid_p. Pass regcache to target_fetch_registers.
7445 (regcache_raw_write): Pass regcache to target_store_registers.
7447 * arm-linux-nat.c (store_fpregister, store_fpregs, store_register,
7448 store_regs, store_wmmx_regs): Replace register_cached by
7451 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd): Pass current_regcache
7452 to target_fetch_registers calls.
7453 * corelow.c (core_open): Likewise.
7454 * linux-nat.c (linux_nat_corefile_thread_callback): Likewise.
7455 * proc-service.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
7456 ps_lsetfpregs): Likewise.
7457 * sol-thread.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
7458 ps_lsetfpregs): Likewise.
7459 * win32-nat.c (win32_resume): Likewise.
7460 * ia64-tdep.c (ia64_store_return_value): Pass current_regcache
7461 to target_store_registers call.
7462 * rs6000-tdep.c (rs6000_push_dummy_call): Likewise.
7464 * inferior.h (store_inferior_registers): Update prototype.
7465 (fetch_inferior_registers): Likewise.
7466 * gnu-nat.c (gnu_store_registers, gnu_fetch_registers): Likewise.
7467 * mips-linux-nat.c (super_fetch_registers, super_store_registers):
7468 Update function pointer signatures.
7470 * aix-thread.c (aix_thread_fetch_registers): Add REGCACHE parameter,
7471 use it instead of current_regcache, update calls.
7472 (aix_thread_store_registers): Likewise.
7473 * alphabsd-nat.c (alphabsd_fetch_inferior_registers): Likewise.
7474 (alphabsd_store_inferior_registers): Likewise.
7475 * amd64bsd-nat.c (amd64bsd_fetch_inferior_registers): Likewise.
7476 (amd64bsd_store_inferior_registers): Likewise.
7477 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers): Likewise.
7478 (amd64_linux_store_inferior_registers): Likewise.
7479 * arm-linux-nat.c (fetch_fpregister, fetch_fpregs, store_fpregister,
7480 store_fpregs, fetch_register, fetch_regs, store_register, store_regs,
7481 fetch_wmmx_regs, store_wmmx_regs): Likewise.
7482 (arm_linux_fetch_inferior_registers): Likewise.
7483 (arm_linux_store_inferior_registers): Likewise.
7484 * armnbsd-nat.c (fetch_register, fetch_regs, fetch_fp_register,
7485 fetch_fp_regs, armnbsd_fetch_registers): Likewise.
7486 (store_register, store_regs, store_fp_register, store_fp_regs,
7487 armnbsd_store_registers): Likewise.
7488 * bsd-kvm.c (bsd_kvm_fetch_pcb, bsd_kvm_fetch_registers): Likewise.
7489 * bsd-uthread.c (bsd_uthread_fetch_registers): Likewise.
7490 (bsd_uthread_store_registers): Likewise.
7491 * corelow.c (get_core_registers): Likewise.
7492 * go32-nat.c (fetch_register, go32_fetch_registers, store_register,
7493 go32_store_registers): Likewise.
7494 * hppabsd-nat.c (hppabsd_fetch_registers): Likewise.
7495 (hppabsd_store_registers): Likewise.
7496 * hppa-hpux-nat.c (hppa_hpux_fetch_register): Likewise.
7497 (hppa_hpux_fetch_inferior_registers): Likewise.
7498 (hppa_hpux_store_register): Likewise.
7499 (hppa_hpux_store_inferior_registers): Likewise.
7500 * hppa-linux-nat.c (fetch_register, store_register): Likewise.
7501 (hppa_linux_fetch_inferior_registers): Likewise.
7502 (hppa_linux_store_inferior_registers): Likewise.
7503 * hpux-thread.c (hpux_thread_fetch_registers): Likewise.
7504 (hpux_thread_store_registers): Likewise.
7505 * i386bsd-nat.c (i386bsd_fetch_inferior_registers): Likewise.
7506 (i386bsd_store_inferior_registers): Likewise.
7507 * i386gnu-nat.c (fetch_fpregs, gnu_fetch_registers, store_fpregs,
7508 gnu_store_registers): Likewise.
7509 * i386-linux-nat.c (fetch_register, store_register, fetch_regs,
7510 store_regs, fetch_fpregs, store_fpregs, fetch_fpxregs, store_fpxregs):
7512 (i386_linux_fetch_inferior_registers): Likewise.
7513 (i386_linux_store_inferior_registers): Likewise.
7514 * ia64-linux-nat.c (ia64_linux_fetch_register): Likewise.
7515 (ia64_linux_fetch_registers): Likewise.
7516 (ia64_linux_store_register): Likewise.
7517 (ia64_linux_store_registers): Likewise.
7518 * inf-child.c (inf_child_fetch_inferior_registers): Likewise.
7519 (inf_child_store_inferior_registers): Likewise.
7520 * inf-ptrace.c (inf_ptrace_fetch_register): Likewise.
7521 (inf_ptrace_fetch_registers): Likewise.
7522 (inf_ptrace_store_register): Likewise.
7523 (inf_ptrace_store_registers): Likewise.
7524 * infptrace.c (fetch_register, store_register): Likewise.
7525 (fetch_inferior_registers, store_inferior_registers): Likewise.
7526 * m32r-linux-nat.c (fetch_regs, store_regs): Likewise.
7527 (m32r_linux_fetch_inferior_registers): Likewise.
7528 (m32r_linux_store_inferior_registers): Likewise.
7529 * m68kbsd-nat.c (m68kbsd_fetch_inferior_registers): Likewise.
7530 (m68kbsd_store_inferior_registers): Likewise.
7531 * m68klinux-nat.c (fetch_register, old_fetch_inferior_registers,
7532 store_register, old_store_inferior_registers, fetch_regs, store_regs,
7533 fetch_fpregs, store_fpregs): Likewise.
7534 (m68k_linux_fetch_inferior_registers): Likewise.
7535 (m68k_linux_store_inferior_registers): Likewise.
7536 * m88kbsd-nat.c (m88kbsd_fetch_inferior_registers): Likewise.
7537 (m88kbsd_store_inferior_registers): Likewise.
7538 * mips64obsd-nat.c (mips64obsd_fetch_inferior_registers): Likewise.
7539 (mips64obsd_store_inferior_registers): Likewise.
7540 * mips-linux-nat.c (mips64_linux_regsets_fetch_registers): Likewise.
7541 (mips64_linux_regsets_store_registers): Likewise.
7542 (mips64_linux_fetch_registers): Likewise.
7543 (mips64_linux_store_registers): Likewise.
7544 * mipsnbsd-nat.c (mipsnbsd_fetch_inferior_registers): Likewise.
7545 (mipsnbsd_store_inferior_registers): Likewise.
7546 * monitor.c (monitor_fetch_register, monitor_store_register): Likewise.
7547 (monitor_fetch_registers, monitor_store_registers): Likewise.
7548 * nto-procfs.c (procfs_fetch_registers): Likewise.
7549 (procfs_store_registers): Likewise.
7550 * ppc-linux-nat.c (fetch_altivec_register, fetch_spe_register,
7551 fetch_register, supply_vrregset, fetch_altivec_registers,
7552 fetch_ppc_registers, ppc_linux_fetch_inferior_registers): Likewise.
7553 (store_altivec_register, store_spe_register, store_register,
7554 fill_vrregset, store_altivec_registers, store_ppc_registers,
7555 ppc_linux_store_inferior_registers): Likewise.
7556 * ppcnbsd-nat.c (ppcnbsd_fetch_inferior_registers): Likewise.
7557 (ppcnbsd_store_inferior_registers): Likewise.
7558 * ppcobsd-nat.c (ppcobsd_fetch_registers): Likewise.
7559 (ppcobsd_store_registers): Likewise.
7560 * procfs.c (procfs_fetch_registers, procfs_store_registers): Likewise.
7561 * remote.c (fetch_register_using_p, process_g_packet,
7562 fetch_registers_using_g, remote_fetch_registers): Likewise.
7563 (store_register_using_P, store_registers_using_G,
7564 remote_store_registers): Likewise.
7565 * remote-m32r-sdi.c (m32r_fetch_registers, m32r_fetch_register,
7566 m32r_store_register, m32r_store_register): Likewise.
7567 * remote-mips.c (mips_fetch_registers, mips_store_registers): Likewise.
7568 * remote-sim.c (gdbsim_fetch_register): Likewise.
7569 (gdbsim_store_register): Likewise.
7570 * rs6000-nat.c (fetch_register, store_register): Likewise.
7571 (rs6000_fetch_inferior_registers): Likewise.
7572 (rs6000_store_inferior_registers): Likewise.
7573 * s390-nat.c (fetch_regs, store_regs): Likewise.
7574 (fetch_fpregs, store_fpregs): Likewise.
7575 (s390_linux_fetch_inferior_registers): Likewise.
7576 (s390_linux_store_inferior_registers): Likewise.
7577 * shnbsd-nat.c (shnbsd_fetch_inferior_registers): Likewise.
7578 (shnbsd_store_inferior_registers): Likewise.
7579 * sol-thread.c (sol_thread_fetch_registers): Likewise.
7580 (sol_thread_store_registers): Likewise.
7581 * sparc-nat.c (fetch_inferior_registers): Likewise.
7582 (store_inferior_registers): Likewise.
7583 * spu-linux-nat.c (spu_fetch_inferior_registers): Likewise.
7584 (spu_store_inferior_registers): Likewise.
7585 * target.c (debug_print_register): Likewise.
7586 (debug_to_fetch_registers, debug_to_store_registers): Likewise.
7587 * vaxbsd-nat.c (vaxbsd_fetch_inferior_registers): Likewise.
7588 (vaxbsd_store_inferior_registers): Likewise.
7589 * win32-nat.c (do_win32_fetch_inferior_registers): Likewise.
7590 (win32_fetch_inferior_registers): Likewise.
7591 (win32_store_inferior_registers): Likewise.
7593 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7595 * gdbcore.h (struct regcache): Add forward declaration.
7596 (struct core_fns): Add REGCACHE argument to core_read_registers
7598 * corelow.c (get_core_register_section): Add REGCACHE argument,
7599 use it instead of current_regcache, pass it to core_read_registers
7601 (get_core_registers): Add current_regcache as parameter to
7602 get_core_register_section calls.
7604 * alpha-nat.c (fetch_osf_core_registers): Add REGCACHE argument,
7605 use it instead of current_regcache.
7606 * armnbsd-nat.c (fetch_core_registers): Likewise.
7607 (fetch_elfcore_registers): Likewise.
7608 * core-regset.c (fetch_core_registers): Likewise.
7609 * cris-tdep.c (fetch_core_registers): Likewise.
7610 * irix5-nat.c (fetch_core_registers): Likewise.
7611 * m68klinux-nat.c (fetch_core_registers): Likewise.
7612 * mips-linux-tdep.c (fetch_core_registers): Likewise.
7613 * win32-nat.c (fetch_elf_core_registers): Likewise.
7615 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7617 * gregset.h (struct regcache): Add forward declaration.
7618 (supply_gregset): Add REGCACHE parameter, make GREGS const.
7619 (supply_fpregset): Add REGCACHE parameter, make FPREGS const.
7620 (supply_fpxregset): Add REGCACHE parameter, make FPXREGS const.
7621 (fill_gregset): Add REGCACHE parameter.
7622 (fill_fpregset): Likewise.
7623 (fill_fpxregset): Likewise.
7625 Update all definitions accordingly:
7626 * alphabsd-nat.c, alpha-linux-nat.c, alpha-nat.c, amd64-linux-nat.c,
7627 arm-linux-nat.c, hppa-linux-nat.c, i386gnu-nat.c, i386-linux-nat.c,
7628 i386-sol2-nat.c, i386v4-nat.c, ia64-linux-nat.c, irix5-nat.c,
7629 m32r-linux-nat.c, m68klinux-nat.c, mips-linux-nat.c, ppc-linux-nat.c,
7630 s390-nat.c, sparc64-linux-nat.c, sparc-linux-nat.c, sparc-sol2-nat.c
7631 (supply_gregset): Add REGCACHE parameter, use it instead of
7632 current_regcache. Make GREGSETP parameter const, adapt casts.
7633 (supply_fpregset): Add REGCACHE parameter, use it instead of
7634 current_regcache. Make FPREGSETP parameter const, adapt casts.
7635 (fill_gregset): Add REGCACHE parameter, use it instead of
7637 (fill_fpregset): Likewise.
7639 Update all callers to pass in current_regcache as the new argument:
7640 * core-regset.c: Include "regcache.h".
7641 (fetch_core_registers): Update supply_gregset,and supply_fpregset calls.
7642 * procfs.c: Include "regcache.h".
7643 (procfs_fetch_registers): Update supply_gregset, supply_fpregset calls.
7644 (procfs_store_registers): Update fill_gregset, fill_fpregset calls.
7645 (procfs_do_thread_registers): Likewise.
7646 (procfs_make_note_section): Likewise.
7647 * proc-service.c: Include "regcache.h".
7648 (ps_lgetregs): Update fill_gregset call.
7649 (ps_lsetregs): Update supply_gregset call.
7650 (ps_lgetfpregs): Update fill_fpregset call.
7651 (ps_lsetfpregs): Update supply_fpregset call.
7652 * sol-thread.c (sol_thread_fetch_registers): Update supply_gregset,
7653 supply_fpregset calls.
7654 (sol_thread_store_registers): Update fill_gregset, fill_fpregset calls.
7655 (ps_lgetregs): Update fill_gregset call.
7656 (ps_lsetregs): Update supply_gregset call.
7657 (ps_lgetfpregs): Update fill_fpregset call.
7658 (ps_lsetfpregs): Update supply_fpregset call.
7660 * linux-nat.c (linux_nat_do_thread_registers): Update fill_gregset,
7661 fill_fpregset, and fill_fpxregset calls.
7662 * i386-linux-nat.c (fetch_regs): Update supply_gregset call.
7663 (store_regs): Update fill_gregset call.
7664 (fetch_fpregs): Update supply_fpregset call.
7665 (store_fpregs): Update fill_fpregset call.
7666 (fetch_fpxregs): Update supply_fpxregset call.
7667 (store_fpxregs): Update fill_fpxregset call.
7668 * m32r-linux-nat.c (fetch_regs): Update supply_gregset call.
7669 (store_regs): Update fill_gregset call.
7670 * m68klinux-nat.c (fetch_regs): Update supply_gregset call.
7671 (store_regs): Update fill_gregset call.
7672 (fetch_fpregs): Update supply_fpregset call.
7673 (store_fpregs): Update fill_fpregset call.
7674 (fetch_core_registers): Update supply_gregset, supply_fpregset calls.
7675 * s390-nat.c (fetch_regs): Update supply_gregset call.
7676 (store_regs): Update fill_gregset call.
7677 (fetch_fpregs): Update supply_fpregset call.
7678 (store_fpregs): Update fill_fpregset call.
7680 * Makefile.in (core-regset.o, procfs.o, proc-service.o): Update
7683 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7685 * monitor.c (monitor_supply_register): Add REGCACHE parameter, use
7686 it instead of current_regcache.
7687 (parse_register_dump): Add REGCACHE parameter, pass it to
7688 supply_register callback.
7689 (monitor_dump_reg_block): Add REGCACHE parameter, pass it to
7690 parse_register_dump.
7691 (monitor_dump_regs): Add REGCACHE parameter, pass it to
7692 parse_register_dump and dumpregs callback.
7693 (monitor_wait): Pass current_regcache to parse_register_dump and
7695 (monitor_fetch_register): Pass current_regcache to
7696 monitor_supply_register.
7697 (monitor_fetch_registers): Pass current_regcache to
7699 * monitor.h (struct monitor_ops): Add REGCACHE parameter to
7700 supply_register and dumpregs callbacks.
7701 (monitor_supply_register, monitor_dump_reg_block): Update
7703 * dbug-rom.c (dbug_supply_register): Add REGCACHE parameter. Pass
7704 it to monitor_supply_register.
7705 * dink32-rom.c (dink32_supply_register): Likewise.
7706 * ppcbug-rom.c (ppcbug_supply_register): Likewise.
7707 * m32r-rom.c (m32r_supply_register): Likewise. Also, use REGCACHE
7708 instead of current_regcache.
7710 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7712 * i386-nto-tdep.c (i386nto_supply_gregset, i386nto_supply_fpregset):
7713 Add REGCACHE parameter. Use it instead of current_regcache.
7714 (i386nto_supply_regset): Add REGCACHE parameter, pass it to
7715 i386nto_supply_gregset and i386nto_supply_fpregset.
7716 (i386nto_regset_fill): Add REGCACHE parameter; use it instead
7717 of current_regcache.
7719 * nto-procfs.c (procfs_fetch_registers): Pass current_regcache to
7720 nto_supply_ helper functions.
7721 (procfs_store_registers): Pass current_regcache to nto_regset_fill.
7723 * nto-tdep.c (nto_dummy_supply_regset): Add REGCACHE parameter.
7725 * nto-tdep.h (struct nto_target_ops): Add REGCACHE parameter to
7726 supply_greget, supply_fpregset, supply_altregset, supply_regset,
7727 and regset_fill member function pointers.
7728 (nto_dummy_supply_regset): Adapt prototype.
7730 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7732 * shnbsd-tdep.c (shnbsd_supply_reg): Add REGCACHE parameter, use it
7733 instead of current_regcache. Make REGS const.
7734 (shnbsd_fill_reg): Add REGCACHE parameter; replace current_regcache.
7735 * shnbsd-tdep.h (shnbsd_supply_reg, shnbsd_fill_reg): Update
7737 * shnbsd-nat.c: Include "regcache.h".
7738 (shnbsd_fetch_inferior_registers): Pass current_regcache to
7740 (shnbsd_store_inferior_registers): Pass current_regcache to
7742 * Makefile.in (shbsd-nat.o): Update dependencies.
7744 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7746 * mips-linux-tdep.c (supply_32bit_reg): Add REGCACHE parameter. Use it
7747 instead of current_regcache.
7748 (mips_supply_gregset): Likewise. Pass REGCACHE to supply_32bit_reg.
7749 Make GREGSETP const, remove superfluous casts.
7750 (mips_fill_gregset): Add REGCACHE parameter; replace current_regcache.
7751 (mips_supply_fpregset): Likewise. Make FPREGSETP const, remove
7753 (mips_fill_fpregset): Add REGCACHE parameter; replace current_regcache.
7754 (supply_64bit_reg): Likewise
7755 (mips64_supply_gregset): Likewise. Pass REGCACHE to supply_64bit_reg.
7756 Make GREGSETP const, adapt casts accordingly.
7757 (mips64_fill_gregset): Add REGCACHE parameter; replace current_regcache.
7758 (mips64_supply_fpregset): Likewise. Make FPREGSET const, adapt
7760 (mips64_fill_fpregset): Add REGCACHE parameter; replace current_regcache.
7761 (fetch_core_registers): Pass current_regcache to mips{64}_(supply|fill)_
7763 * mips-linux-tdep.h (mips_supply_gregset, mips_fill_gregset,
7764 mips_supply_fpregset, mips_fill_fpregset, mips64_supply_gregset,
7765 mips64_fill_gregset, mips64_supply_fpregset, mips64_fill_fpregset):
7767 * mips-linux-nat.c: Include "regcache.h".
7768 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): Pass
7769 current_regcache to mips{64}_(supply|fill)_ helper routines.
7770 (mips64_linux_regsets_fetch_registers): Likewise.
7771 (mips64_linux_regsets_store_registers): Likewise.
7773 * mipsnbsd-tdep.c (mipsnbsd_supply_reg, mipsnbsd_supply_fpreg): Add
7774 REGCACHE argument; replace current_regcache. Make REGS const.
7775 (mipsnbds_fill_reg, mipsnbsd_fill_fpreg): Add REGCACHE argument;
7776 replace current_regcache.
7777 * mipsnbsd-tdep.h (ipsnbsd_supply_reg, mipsnbsd_supply_fpreg,
7778 mipsnbds_fill_reg, mipsnbsd_fill_fpreg): Adapt prototypes.
7779 * mipsnbsd-nat.c (mipsnbsd_fetch_inferior_registers,
7780 mipsnbsd_store_inferior_registers): Pass current_regcache to
7781 mipsnbsd_(supply|fill)_... helper routines.
7783 * Makefile.in (mips-linux-nat.o): Update dependencies.
7785 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7787 * i387-tdep.c (i387_fill_fsave, i387_fill_fxsave): Remove.
7788 * i387-tdep.h (i387_fill_fsave, i387_fill_fxsave): Remove prototypes.
7789 * i368-linux-nat.c (supply_fpregset, supply_fpxregset): Replace
7790 i387_fill_fsave and i387_fill_fxsave calls by inline copies.
7791 * i386-nto-tdep.c (i386nto_regset_fill): Likewise.
7792 * i386gnu-nat.c (store_fpregs): Likewise.
7793 * i386v4-nat.c (fill_fpregset): Likewise.
7794 * go32-nat.c (store_register, go32_store_registers): Likewise.
7796 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7798 * cris-tdep.c (supply_gregset): Rename to ...
7799 (cris_supply_gregset): ... this. Add REGCACHE parameter. Use it
7800 instead of current_regcache.
7801 (fetch_core_registers): Update call. Pass current_regcache.
7803 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7805 * arnmnbsd-nat.c (supply_gregset): Rename to ...
7806 (arm_supply_gregset): ... this. Add REGCACHE parameter.
7807 Use it instead of current_regcache.
7808 (supply_fparegset): Rename to ...
7809 (arm_supply_fparegset): ... this. Add REGCACHE parameter.
7810 Use it instead of current_regcache.
7811 (fetch_regs, fetch_fp_regs): Update calls. Pass current_regcache.
7812 (fetch_core_registers, fetch_elfcore_registers): Likewise.
7814 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7816 * alpha-tdep.c (alpha_supply_int_regs, alpha_fill_int_regs,
7817 alpha_supply_fp_regs, alpha_fill_fp_regs): Add REGCACHE parameter,
7818 use it instead of current_regcache.
7819 * alpha-tdep.h (struct regcache): Add forward declaration.
7820 (alpha_supply_int_regs, alpha_fill_int_regs, alpha_supply_fp_regs,
7821 alpha_fill_fp_regs): Update prototypes.
7823 * alpha-nat.c: (supply_gregset, fill_gregset, supply_fpregset,
7824 fill_fpregset): Pass current_regcache to alpha_supply/fill_ routines.
7825 * alpha-linux-nat.c: Include "regcache.h".
7826 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): Pass
7827 current_regcache to alpha_supply/fill_ routines.
7829 * alphabsd-tdep.c: Include "regcache.h".
7830 (alphabsd_supply_reg, alphabsd_supply_fpreg): Add REGCACHE paramter,
7831 pass it to alpha_supply_ routines. Make REGS const.
7832 (alphabsd_fill_reg, alphabsd_fill_fpreg): Add REGCACHE parameter,
7833 pass it to alpha_fill_ routines.
7834 * alphabsd-tdep.h (struct regcache): Add forward declaration.
7835 (alphabsd_supply_reg, alphabsd_fill_reg, alphabsd_supply_fpreg,
7836 alphabsd_fill_fpreg): Update prototypes.
7838 * alphanbsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
7839 fill_fpregset, alphabsd_fetch_inferior_registers,
7840 alphabsd_store_inferior_registers): Pass current_regcache to
7841 alphabsd_supply/fill_ routines.
7843 * Makefile.in (alpha-linux-nat.o, alphabsd-tdep.o): Update
7846 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7848 * aix-thread.c (supply_gprs64, supply_reg32, supply_fprs,
7849 supply_sprs64, supply_sprs32): Add REGCACHE parameter, use it
7850 instead of current_regcache.
7851 (fetch_regs_user_thread, fetch_regs_kernel_thread): Add
7852 REGCACHE parameter, pass it to supply_ routines.
7853 (aix_thread_fetch_registers): Pass current_regcache to
7854 fetch_regs_user_thread and fetch_regs_kernel_thread.
7856 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs64, fill_sprs32):
7857 Add REGCACHE parameter, use it instead of current_regcache.
7858 Call regcache_valid_p instead of register_cached.
7859 (store_regs_user_thread, store_regs_kernel_thread): Likewise.
7860 Also, pass REGCACHE to fill_ routines.
7861 (aix_thread_store_registers): Pass current_regcache to
7862 store_regs_user_thread and store_regs_kernel_thread.
7864 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7866 * m32r-linux-nat.c (supply_gregset): Do not modify contents
7867 pointed to by GREGSETP.
7869 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7871 * irix5-nat.c (fill_gregset): Use regcache_raw_collect instead
7872 of regcache_raw_read_signed.
7873 (fill_fpregset): Use regcache_raw_collect instead of
7876 2007-05-03 Kevin Buettner <kevinb@redhat.com>
7878 * mips-tdep.c (mips_eabi_push_dummy_call): When pushing floating
7879 point arguments, test explicitly for use of the EABI32 ABI
7880 instead of inferring this condition from tests on register
7883 2007-05-03 Kevin Buettner <kevinb@redhat.com>
7885 * breakpoint.c (set_raw_breakpoint): Adjust breakpoint's address
7886 prior to allocating its location.
7888 2007-05-02 Maciej W. Rozycki <macro@mips.com>
7890 * mips-tdep.c (mips_o32_push_dummy_call): Remove conditions
7891 based on mips_abi_regsize() whose result is known in advance.
7892 (mips_o64_push_dummy_call): Likewise.
7894 2007-04-29 Ulrich Weigand <uweigand@de.ibm.com>
7896 * m68klinux-nat.c: Remove #ifndef USE_PROC_FS check.
7897 * m68k-tdep.c: Remove code within #ifdef USE_PROC_FS.
7899 * mips-linux-nat.c: Include "gregset.h".
7900 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): Move
7901 from mips-linux-tdep.c. Change parameter type to gdb_gregset_t.
7902 * mips-linux-tdep.c (supply_gregset, fill_gregset, supply_fpregset,
7903 fill_fpregset): Move to mips-linux-nat.c.
7905 * Makefile.in (m68k-tdep.o, mips-linux-nat.o): Update dependencies.
7907 2007-04-28 Ulrich Weigand <uweigand@de.ibm.com>
7909 * regcache.c (deprecated_read_register_gen): Remove, inline ...
7910 (read_register): ... here.
7911 (deprecated_write_register_gen): Remove, inline ...
7912 (write_register): ... here.
7913 * regcache.h (deprecated_read_register_gen): Remove prototype.
7914 (deprecated_write_register_gen): Likewise.
7916 * remote-sim.c (gdbsim_store_register): Replace call to
7917 deprecated_read_register_gen with regcache_cooked_read.
7918 * target.c (debug_print_register): Replace calls to
7919 deprecated_read_register_gen and read_register with
7920 regcache_cooked_read.
7922 2007-04-28 Ulrich Weigand <uweigand@de.ibm.com>
7924 * hpux-thread.c (hpux_thread_store_registers): Use
7925 regcache_raw_collect, not regcache_raw_read.
7926 * irix5-nat.c (fetch_core_registers): Use regcache_raw_supply,
7927 not regcache_raw_write.
7929 2007-04-28 Ulrich Weigand <uweigand@de.ibm.com>
7931 * gdbarch.sh: Remove deprecated_register_byte.
7932 * gdbarch.c, gdbarch.h: Regenerate.
7933 * arch-utils.h (generic_register_size, generic_register_byte): Remove.
7934 * arch-utils.c (generic_register_size, generic_register_byte): Remove.
7936 * regcache.h (regcache_valid_p): Make REGCACHE parameter const.
7937 * regcache.c (regcache_valid_p): Allow to query cooked registers in
7938 read-only register caches. Make REGCACHE parameter const.
7939 (regcache_dump): Do not check DEPRECATED_REGISTER_BYTE.
7941 * mi/mi-main.c (old_regs): Remove.
7942 (mi_setup_architecture_data, _initialize_mi_main): Remove.
7943 (register_changed_p): Reimplement to compare two register caches.
7944 (mi_cmd_data_list_changed_registers): Update caller.
7945 * mi/mi-main.h (mi_setup_architecture_data): Remove.
7946 * mi/mi-interp.c (mi_interpreter_init): Do not call
7947 mi_setup_architecture_data.
7949 2007-04-28 Ulrich Weigand <uweigand@de.ibm.com>
7951 * alpha-nat.c (ALPHA_REGSET_BASE, ALPHA_REGSET_UNIQUE): Do not define,
7952 inline definition at the places the macros are used.
7953 * alpha-linux-nat.c (ALPHA_REGSET_BASE, ALPHA_REGSET_UNIQUE): Likewise.
7955 2007-04-28 Ulrich Weigand <uweigand@de.ibm.com>
7957 * rs6000-aix-tdep.c: Include "regcache.h", "regset.h", and
7959 (rs6000_aix32_reg_offsets, rs6000_aix64_reg_offsets): New variables.
7960 (rs6000_aix_supply_regset, rs6000_aix_collect_regset): New functions.
7961 (rs6000_aix32_regset, rs6000_aix64_regset): New variables.
7962 (rs6000_aix_regset_from_core_section): New function.
7963 (rs6000_aix_init_osabi): Register it.
7964 (_initialize_rs6000_aix_tdep): Register GDB_OSABI_AIX osabi and
7965 sniffer for bfd_arch_powerpc as well as bfd_arch_rs6000.
7966 * rs6000-nat.c (CoreRegs): Do not define type.
7967 (fetch_core_registers, rs6000_core_fns): Remove.
7968 (_initialize_core_rs6000): Do not register it. Rename to ...
7969 (_initialize_rs6000_nat): ... this.
7970 * Makefile.in (rs6000-aix-tdep.o): Update dependencies.
7972 2007-04-27 Kevin Buettner <kevinb@redhat.com>
7974 * dwarf2expr.c (unsigned_address_type): Add forward declaration.
7975 (dwarf2_read_address): Sign extend return address as required by
7976 target architecture.
7978 2007-04-27 Kevin Buettner <kevinb@redhat.com>
7980 * solib-frv.c (lm_base): Bail out if the main executable has
7983 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
7985 * alpha-linux-tdep.c (alpha_linux_supply_fpregset): Correct location
7986 of FPCR register in fpregset.
7988 2007-04-27 Maciej W. Rozycki <macro@mips.com>
7990 * Makefile.in (gdbtk-wrapper.o): Update dependencies.
7991 (gdbtk-varobj.o, gdbtk-cmds.o, gdbtk-stack.o): Likewise.
7993 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
7995 * config/rs6000/nm-rs6000.h (CHILD_SPECIAL_WAITSTATUS): Remove.
7996 * rs6000-nat.c (rs6000_wait): New function.
7997 (_initialize_core_rs6000): Install it as to_wait target method.
7998 * target.c (store_waitstatus): Don't check CHILD_SPECIAL_WAITSTATUS.
8000 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
8002 * config/rs6000/nm-rs6000.h (TARGET_CREATE_INFERIOR_HOOK): Remove.
8003 * fork-child.c (fork_inferior): Don't call TARGET_CREATE_INFERIOR_HOOK.
8004 * rs6000-nat.c (super_create_inferior): New variable.
8005 (rs6000_create_inferior): Make static. Adapt argument list. Call
8006 original version of create_inferior via super_create_inferior.
8007 (_initialize_core_rs6000): Install to_create_inferior target method.
8009 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
8011 * aix-thread.c (aix_thread_xfer_memory): Replace by ...
8012 (aix_thread_xfer_partial): ... this.
8013 (init_aix_thread_ops): Install to_xfer_partial instead
8014 of deprecated_xfer_memory target method.
8016 * config/powerpc/aix.mh (NATDEPFILES): Remove infptrace.o
8017 and inftarg.o, add inf-ptrace.o.
8018 * config/rs6000/nm-rs6000.h (FETCH_INFERIOR_REGISTERS,
8019 CHILD_XFER_MEMORY, KERNEL_U_SIZE, kernel_u_size): Remove.
8020 * rs6000-nat.c: Include "inf-ptrace.h" and "gdb_stdint.h".
8021 (fetch_inferior_registers): Rename to ...
8022 (rs6000_fetch_inferior_registers): ... this. Make static.
8023 (store_inferior_registers): Rename to ...
8024 (rs6000_store_inferior_registers): ... this. Make static.
8025 (read_word, child_xfer_memory): Remove.
8026 (rs6000_xfer_partial): New function.
8027 (kernel_u_size): Remove.
8028 (_initialize_core_rs6000): Add inf_ptrace-based target.
8029 * Makefile.in (rs6000-nat.o): Update dependencies.
8031 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
8033 * inf-ptrace.c: Include "gdb_stdint.h".
8034 (inf_ptrace_xfer_partial): Use "uintptr_t" instead of "long" as
8035 intermediate type when casting CORE_ADDR to PTRACE_TYPE_ARG3.
8036 (inf_ptrace_fetch_register): Add intermediate cast to "uintptr_t"
8037 before casting CORE_ADDR to PTRACE_TYPE_ARG3.
8038 (inf_ptrace_store_register): Likewise.
8039 * Makefile.in (inf-ptrace.o): Update dependencies.
8041 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
8043 * configure.host (rs6000-*-*): Merge with powerpc-*-aix* rules.
8044 * configure.tgt (rs6000-*-*): Likewise.
8045 * config/rs6000/aix4.mh: Delete file.
8046 * config/rs6000/aix4.mt: Delete file.
8047 * config/rs6000/rs6000.mh: Delete file.
8048 * config/rs6000/rs6000.mt: Delete file.
8050 * config/powerpc/nm-aix.h: Delete file.
8051 * config/powerpc/aix.mh (NAT_FILE): Set to config/rs6000/nm-rs6000.h.
8053 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
8055 * aix-thread.c (fill_sprs32): Change argument types to "uint32_t *".
8056 Remove obsolete part of comment.
8057 (store_regs_user_thread): Use uint32_t temporaries when calling
8059 (store_regs_kernel_thread): Likewise. Add assertion to verify
8060 correct size of struct ptsprs members.
8061 (aix_thread_xfer_memory): Fix type of myaddr.
8062 (aix_thread_extra_thread_info): Fix compiler warning.
8063 * rs6000-nat.c (rs6000_ptrace64): Change type of buf to "void *".
8064 (fetch_register, store_register): Adapt callers.
8066 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
8068 * vec.h (vec_free): Rename to vec_free_. Adapt users.
8070 2007-04-25 Ulrich Weigand <uweigand@de.ibm.com>
8072 * alpha-linux-tdep.c: Include "gdb_string.h", "regset.h",
8074 (alpha_linux_supply_gregset, alpha_linux_supply_fpregset): New.
8075 (alpha_linux_gregset, alpha_linux_fpregset): New variables.
8076 (alpha_linux_regset_from_core_section): New function.
8077 (alpha_linux_init_abi): Install it.
8078 * alpha-linux-nat.c: Do not include "gdbcore.h". Include
8079 "alpha-tdep.h", <sys/ptrace.h>, <alpha/ptrace.h>,
8080 <sys/procfs.h>, and "gregset.h".
8081 (ALPHA_REGSET_BASE, ALPHA_REGSET_UNIQUE, ALPHA_UNIQUE_PTRACE_ADDR):
8082 Move from config/alpha/nm-linux.h.
8083 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): Copy
8085 (alpha_linux_register_u_offset): Inline register_addr from alpha-nat.c.
8086 * alpha-nat.c: Remove #ifdef __linux__ section.
8087 (fetch_elf_core_registers, alpha_elf_core_fns): Remove.
8088 (_initialize_core_alpha): Do not register alpha_elf_core_fns.
8089 (ALPHA_UNIQUE_PTRACE_ADDR, ALPHA_REGSET_UNIQUE): Define unconditionally.
8090 (ALPHA_REGSET_BASE): Move from config/alpha/nm-osf.h.
8091 * config/alpha/alpha-linux.mh (NAT_FILE): Set to config/nm-linux.h.
8092 (NATDEPFILES): Remove alpha-nat.o.
8093 * config/alpha/nm-linux.h: Delete file.
8094 * config/alpha/nm-osf.h (ALPHA_REGSET_BASE): Move to alpha-nat.c.
8095 * Makefile.in (alpha-linux-nat.o): Update dependencies.
8096 (alpha-linux-tdep.o): Likewise.
8098 2007-04-25 Ulrich Weigand <uweigand@de.ibm.com>
8100 * mips-linux-nat.c: No longer include "gdbcore.h".
8101 (mips_linux_register_addr): Move from mips-linux-tdep.c.
8102 (mips64_linux_register_addr): Likewise.
8103 (mips_linux_register_u_offset): Call mips_linux_register_addr or
8104 mips64_linux_register_addr instead of register_addr.
8105 * mips-linux-tdep.c (mips_linux_register_addr,
8106 mips64_linux_register_addr): Move to mips-linux-nat.c.
8107 (register_addr): Remove.
8108 (register_addr_data, init_register_addr_data): Remove.
8109 (_initialize_mips_linux_tdep): Do not initialize register_addr_data.
8110 (set_mips_linux_register_addr): Remove.
8111 (mips_linux_init_abi): Do not call set_mips_linux_register_addr.
8112 * Makefile.in (mips-linux-nat.o): Update dependencies.
8114 2007-04-25 Ulrich Weigand <uweigand@de.ibm.com>
8116 * linux-nat.c (linux_register_u_offset): Remove.
8117 (linux_target_install_ops): New function.
8118 (linux_target): Use it.
8119 (linux_trad_target): New function.
8120 * linux-nat.h (linux_trad_target): Declare.
8122 * alpha-linux-nat.c: Include "gdbcore.h".
8123 (alpha_linux_register_u_offset): New function.
8124 (_initialize_alpha_linux_nat): Use linux_trad_target.
8126 * mips-linux-nat.c: Include "gdbcore.h".
8127 (mips_linux_register_u_offset): New function.
8128 (_initialize_mips_linux_nat): Use linux_trad_target.
8130 * config/arm/linux.mh (NAT_FILE): Set to config/nm-linux.h.
8131 * config/arm/nm-linux.h: Delete file.
8133 * config/i386/nm-linux64.h (FETCH_INFERIOR_REGISTERS): Remove.
8134 * config/i386/nm-linux.h (FETCH_INFERIOR_REGISTERS): Remove.
8136 * config/ia64/linux.mh (NAT_FILE): Set to config/nm-linux.h.
8137 * config/ia64/nm-linux.h: Delete file.
8139 * config/m32r/linux.mh (NAT_FILE): Set to config/nm-linux.h.
8140 * config/m32r/nm-linux.h: Delete file.
8142 * config/m68k/linux.mh (NAT_FILE): Set to config/nm-linux.h.
8143 * config/m68k/nm-linux.h: Delete file.
8145 * config/pa/linux.mh (NAT_FILE): Set to config/nm-linux.h.
8146 * config/pa/nm-linux.h: Delete file.
8148 * config/powerpc/linux.mh (NAT_FILE): Set to config/nm-linux.h.
8149 * config/powerpc/ppc64-linux.mh (NAT_FILE): Likewise.
8150 * config/powerpc/nm-linux.h: Delete file.
8152 * config/s390/s390.mh (NAT_FILE): Set to config/nm-linux.h.
8153 * config/s390/nm-linux.h: Delete file.
8155 * config/sparc/linux.mh (NAT_FILE): Set to config/nm-linux.h.
8156 * config/sparc/linux64.mh (NAT_FILE): Likewise.
8157 * config/sparc/nm-linux.h: Delete file.
8159 * Makefile.in (alpha-linux-nat.o): Update dependencies.
8160 (mips-linux-nat.o): Likewise.
8162 2007-04-25 Ulrich Weigand <uweigand@de.ibm.com>
8164 * core-aout.c: Delete file.
8165 * Makefile.in (ALLDEPFILES): Remove core-aout.c.
8166 (core-aout.o): Delete rule.
8167 * gdbcore.h (kernel_u_addr, KERNEL_U_ADDR): Remove.
8169 * config/alpha/nm-linux.h (U_REGS_OFFSET): Remove.
8171 * arm-linux-nat.c (arm_linux_kernel_u_size): Remove.
8172 * config/arm/nm-linux.h (U_REGS_OFFSET, KERNEL_U_SIZE,
8173 KERNEL_U_ADDR): Remove.
8175 * i386-linux-nat.c (register_u_addr, kernel_u_size): Remove.
8176 (cannot_fetch_register, cannot_store_register): Remove.
8177 (fetch_register): Inline cannot_fetch_register and register_addr.
8178 (store_register): Inline cannot_store_register and register_addr.
8179 * config/i386/linux.mh (NATDEPFILES): Remove core-aout.o.
8180 * config/i386/nm-linux.h (KERNEL_U_SIZE, KERNEL_U_ADDR,
8181 REGISTER_U_ADDR, CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER):
8184 * m68klinux-nat.c (m68k_linux_register_u_addr, kernel_u_size): Remove.
8185 (fetch_register): Inline register_addr.
8186 (store_register): Inline register_addr.
8187 * config/m68k/linux.mh (NATDEPFILES): Remove core-aout.o.
8188 * config/m68k/nm-linux.h (KERNEL_U_SIZE, KERNEL_U_ADDR,
8189 U_REGS_OFFSET, REGISTER_U_ADDR): Remove.
8191 * config/mips/nm-irix5.h (REGISTER_U_ADDR): Remove.
8192 * config/mips/nm-linux.h (KERNEL_U_SIZE, U_REGS_OFFSET,
8193 REGISTER_U_ADDR): Remove.
8195 * hppa-linux-nat.c (register_addr): Rename to ...
8196 (hppa_linux_register_addr): ... this. Make static.
8197 (fetch_register, store_register): Adapt callers.
8198 * config/pa/nm-linux.h (U_REGS_OFFSET): Remove.
8200 * ppc-linux-nat.c (kernel_u_size): Remove.
8201 * config/powerpc/nm-linux.h (KERNEL_U_SIZE, KERNEL_U_ADDR): Remove.
8203 * vax-nat.c (vax_kernel_u_addr, vax_register_u_addr): Make static.
8204 * config/vax/vax.mh (NATDEPFILES): Remove core-aout.o.
8206 * config/vax/nm-vax.h: Delete file.
8208 2007-04-20 Mark Shinwell <shinwell@codesourcery.com>
8210 * MAINTAINERS (Write After Approval): Add myself.
8212 2007-04-20 Mark Shinwell <shinwell@codesourcery.com>
8214 * Makefile.in: Adjust dependencies of m68klinux-tdep.c.
8215 * m68klinux-tdep.c (m68k_uclinux_sigcontext_reg_offset): New.
8216 (m68k_linux_sigcontext_reg_offset): Fix typo.
8217 (target_is_uclinux): New.
8218 (m68k_linux_inferior_created): New.
8219 (m68k_linux_get_sigtramp_info): Check for uClinux or
8220 normal Linux. Use m68k_uclinux_sigcontext_reg_offset for
8222 (_initialize_m68k_linux_tdep): Register
8223 m68k_linux_inferior_created.
8225 2007-04-19 Pedro Alves <pedro_alves@portugalmail.pt>
8227 * win32-nat.c (win32_detach): Remove delete_command call.
8228 Resume inferior with win32_resume instead of win32_continue.
8230 2007-04-19 Jerome Guitton <guitton@adacore.com>
8232 * ser-mingw.c (fd_is_file): New function.
8233 (file_select_thread): New function.
8234 (ser_console_wait_handle): Add special handling for files.
8236 2007-04-18 Denis Pilat <denis.pilat@st.com>
8238 * dwarf2read.c (read_subrange_type): Use DW_ATE_signed default type
8239 when missing from DW_TAG_subrange_type. Remove the handling of null
8240 return from die_type.
8242 2007-04-18 Maciej W. Rozycki <macro@mips.com>
8244 * mips-tdep.c (mips_eabi_push_dummy_call): Revert the last
8245 change to rearrange some brackets.
8246 (mips_n32n64_push_dummy_call): Likewise.
8247 (mips_o32_push_dummy_call): Likewise.
8248 (mips_o64_push_dummy_call): Likewise.
8250 2007-04-18 Denis Pilat <denis.pilat@st.com>
8252 * infcmd.c (post_create_inferior): Start with a call to
8253 target_terminal_ours.
8255 2007-04-17 Maciej W. Rozycki <macro@mips.com>
8257 * mips-tdep.c (mips_eabi_push_dummy_call): Rearrange some
8259 (mips_n32n64_push_dummy_call): Likewise. Reformat some
8261 (mips_o32_push_dummy_call): Likewise.
8262 (mips_o64_push_dummy_call): Likewise.
8264 2007-04-17 Maciej W. Rozycki <macro@mips.com>
8266 * mips-tdep.c (mips_n32n64_push_dummy_call): Fix a typo in a
8269 2007-04-17 Maciej W. Rozycki <macro@mips.com>
8271 * mips-tdep.c (mips_n32n64_push_dummy_call): Fix a typo in a
8273 (mips_o32_push_dummy_call): Likewise.
8275 2007-04-17 Andreas Schwab <schwab@suse.de>
8277 * symtab.c (skip_prologue_using_sal): Allow the end of the prologue
8278 sal to be bigger than the end of the function.
8280 2007-04-17 Maciej W. Rozycki <macro@mips.com>
8281 Nigel Stephens <nigel@mips.com>
8283 * mips-tdep.c (mips_o32_push_dummy_call): Take account of
8284 argument alignment requirements when calculating stack space
8285 required. When aligning an arg register to eight bytes
8286 boundary, align stack_offset too. Write floating-point
8287 arguments to the appropriate integer register if need go there.
8288 (mips_o64_push_dummy_call): Likewise.
8290 2007-04-14 Ulrich Weigand <uweigand@de.ibm.com>
8292 * gdbarch.sh (software_single_step): Remove "insert_breakpoints_p" and
8293 "sig" arguments, add "regcache" argument.
8294 * gdbarch.c, gdbarch.h: Regenerate.
8296 * infrun.c (resume): Update SOFTWARE_SINGLE_STEP call arguments.
8297 (handle_inferior_event): Call remove_single_step_breakpoints directly
8298 instead of calling SOFTWARE_SINGLE_STEP to remove breakpoints.
8300 * alpha-tdep.c (alpha_software_single_step): Update argument list.
8301 Remove handling of !insert_breakpoints_p case.
8302 * arm-tdep.c (arm_software_single_step): Likewise.
8303 * cris-tdep.c (cris_software_single_step): Likewise.
8304 * mips-tdep.c (mips_software_single_step): Likewise.
8305 * rs6000-tdep.c (rs6000_software_single_step): Likewise.
8306 * sparc-tdep.c (sparc_software_single_step): Likewise.
8307 * spu-tdep.c (spu_software_single_step): Likewise.
8309 * alpha-tdep.h (alpha_software_single_step): Update prototype.
8310 * mips-tdep.h (mips_software_single_step): Likewise.
8311 * rs6000-tdep.h (rs6000_software_single_step): Likewise.
8312 * sparc-tdep.h (sparc_software_single_step): Likewise.
8314 2007-04-14 Ulrich Weigand <uweigand@de.ibm.com>
8316 * alpha-tdep.c (alpha_software_single_step): Do not call write_pc
8317 when removing single-step breakpoints.
8319 2007-04-14 Vladimir Prus <vladimir@codesourcery.com>
8321 * varobj.h (varobj_set_frozen): New
8322 (varobj_get_frozen): New.
8323 (varobj_update): New parameter explicit.
8324 * varobj.c (struct varobj): New fields frozen
8326 (varobj_set_frozen, varobj_get_frozen): New.
8327 (install_new_value): Don't fetch values for
8328 frozen variable object, or children thereof. Allow
8329 a frozen variable object to have non-fetched value.
8330 (varobj_update): Allow updating child variables.
8331 Don't traverse frozen children.
8332 (new_variable): Initialize the frozen field.
8333 (c_value_of_variable): Return NULL for frozen
8334 variable without any value yet.
8335 * mi/mi-cmd-var.c (varobj_update_one): New parameter
8337 (mi_cmd_var_create): Output the 'frozen' field,
8338 as soon as testsuite is adjusted to expect that field.
8339 (mi_cmd_var_set_frozen): New.
8340 (mi_cmd_var_update): Pass the 'explicit' parameter to
8342 * mi/mi-cmds.c (mi_cmds): Register '-var-set-frozen'.
8343 * mi/mi-cmds.h (mi_cmd_var_set_frozen): Declare.
8345 2007-04-13 Paul Brook <paul@codesourcery.com>
8347 * target-descriptions.c (tdesc_named_type): Add ieee_single and
8349 * doc/gdb.texinfo: Document ieee_single and ieee_double target types.
8351 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
8353 * mips-mdebug-tdep.c, mips-mdebug-tdep.h, ocd.c, ocd.h, ppc-bdm.c,
8354 remote-e7000.c, remote-hms.c, remote-utils.c, remote-utils.h,
8355 scm-exp.c, scm-lang.c, scm-lang.h, scm-tags.h, scm-valprint.c,
8356 ser-e7kpc.c, sh3-rom.c, stop-gdb.c: Delete.
8357 * Makefile.in: Remove references to deleted files.
8358 * README: Do not mention deleted ROM monitor interfaces.
8359 * defs.h (enum language): Delete language_scm.
8360 * expprint.c (print_subexp_standard): Do not handle OP_EXPRSTRING.
8361 (dump_subexp_body_standard): Likewise.
8362 * parse.c (operator_length_standard): Likewise.
8363 * expression.h (enum exp_opcode): Delete OP_EXPRSTRING.
8364 * remote-mips.c: Do not include remote-utils.h.
8365 * remote-sim.c: Likewise. Use remote_debug instead of sr_get_debug
8367 * value.c: Do not include scm-lang.h.
8368 (unpack_long): Delete scm_unpack call.
8369 * config/h8300/h8300.mt, config/mips/embed.mt,
8370 config/powerpc/ppc-eabi.mt, config/powerpc/ppc-sim.mt,
8371 config/sh/embed.mt, config/sh/linux.mt: Remove references to
8373 * NEWS: Mention removed files.
8375 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
8377 * symfile.c (add_psymbol_with_dem_name_to_list): Remove.
8378 * symfile.h (add_psymbol_with_dem_name_to_list): Remove prototype.
8380 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
8382 * NEWS: Mention removal of HP aCC support.
8384 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
8386 * solib-svr4.c (IGNORE_FIRST_LINK_MAP_ENTRY): Do not ignore the
8387 first entry for static executables.
8388 (breakpoint_addr): Delete unused variable.
8389 (elf_locate_base): Search for _r_debug in static executables.
8390 (enable_break): Do not set breakpoint_addr. Scan solib_break_names
8393 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
8395 * breakpoint.c (update_breakpoints_after_exec, print_it_typical)
8396 (bpstat_what, print_one_breakpoint, allocate_bp_location)
8397 (mention): Remove bp_through_sigtramp support.
8398 * breakpoint.h (enum bptype): Remove bp_through_sigtramp.
8400 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
8402 * breakpoint.c (bpstat_what): Give step-resume higher priority than
8405 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
8407 * infrun.c: Doc fixes.
8408 (handle_inferior_event): Clarify debug message.
8409 (insert_step_resume_breakpoint_at_sal): Print a debug message.
8411 2007-04-12 Ulrich Weigand <uweigand@de.ibm.com>
8413 * configure.tgt (arm-*-nto*, sh-*-nto*): Remove.
8415 2007-04-12 Ulrich Weigand <uweigand@de.ibm.com>
8417 * config/m68k/tm-monitor.h: Delete file.
8418 * config/m68k/monitor.mt (DEPRECATED_TM_FILE): Remove.
8419 * m68k-tdep.c (m68k_gdbarch_init): set_gdbarch_decr_pc_after_break
8421 * m68kbsd-tdep.c (m68kbsd_init_abi): ... here and ...
8422 * m68klinux-tdep.c (m68k_linux_init_abi): ... here.
8424 2007-04-12 Luis Machado <luisgpm@br.ibm.com>
8426 * gdbarch.sh (software_single_step): Change the return type
8427 from void to int and reformatted some comments to <= 80
8429 * gdbarch.c, gdbarch.h: Regenerated.
8430 * alpha-tdep.c (alpha_software_single_step): Likewise.
8431 * alpha-tdep.h (alpha_software_single_step): Likewise.
8432 * arm-tdep.c (arm_software_single_step): Likewise.
8433 * cris-tdep.c (cris_software_single_step): Likewise.
8434 * mips-tdep.c (mips_software_single_step): Likewise.
8435 * mips-tdep.h (mips_software_single_step): Likewise.
8436 * rs6000-tdep.c (rs6000_software_single_step): Likewise.
8437 * rs6000-tdep.h (rs6000_software_single_step): Likewise.
8438 * sparc-tdep.c (sparc_software_single_step): Likewise.
8439 * sparc-tdep.h (sparc_software_single_step): Likewise.
8440 * spu-tdep.c (spu_software_single_step): Likewise.
8441 * infrun.c (resume): Check the return value from SOFTWARE_SINGLE_STEP
8442 and act accordingly.
8444 2007-04-11 Steve Ellcey <sje@cup.hp.com>
8446 * configure.ac (build_warnings): Add -Wno-char-subscripts.
8447 * configure: Regenerate.
8448 * doc/gdbint.texinfo (warning flags): Add -Wno-char-subscripts.
8450 2007-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
8452 * libunwind-frame.c (LIBUNWIND_SO): Use major version number for `.so'.
8454 2007-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
8456 * gdbtypes.h (TYPE_FLAG_STUB_SUPPORTED, TYPE_STUB_SUPPORTED): New
8458 (TYPE_IS_OPAQUE): Empty vs. opaque structures are now
8459 distinct on the TYPE_STUB_SUPPORTED debug targets.
8460 * dwarf2read.c (read_structure_type): Set TYPE_FLAG_STUB_SUPPORTED.
8462 2007-04-11 Joel Brobecker <brobecker@adacore.com>
8464 * sparc-tdep.c (X_RS2): New macro.
8465 (sparc_skip_stack_check): New function.
8466 (sparc_analyze_prologue): Adjust PC past stack probing
8467 sequence if necessary.
8469 2007-04-10 Andreas Schwab <schwab@suse.de>
8471 * rs6000-tdep.c (rs6000_dwarf2_reg_to_regnum): Decode 64 as CR
8474 2007-04-10 Daniel Jacobowitz <dan@codesourcery.com>
8476 * breakpoint.c (gdb_breakpoint_query): Really return an
8478 (gdb_breakpoint): Likewise.
8479 * thread.c (gdb_list_thread_ids): Likewise.
8480 (gdb_thread_select): Likewise.
8481 * mi/mi-main.c (mi_cmd_thread_select): Expect an enum gdb_rc.
8482 (mi_cmd_thread_list_ids): Remove bogus initialization.
8484 2007-04-10 Daniel Jacobowitz <dan@codesourcery.com>
8486 * Makefile.in (SFILES): Remove hpacc-abi.c.
8487 (COMMON_OBS): Remove hpacc-abi.o.
8488 (ALLDEPFILES): Remove hpread.c and $(HPREAD_SOURCE).
8489 (hpacc-abi.o, hpread.o): Delete rules.
8490 * somread.c: Delete extern declarations from hpread.c.
8491 (som_symfile_read): Do not call do_pxdb or hpread_build_psymtabs.
8492 (som_symfile_finish): Do not call hpread_symfile_finish.
8493 (som_symfile_init): Do not call hpread_symfile_init.
8494 * config/pa/hppa64.mt (TDEPFILES): Remove hpread.o.
8495 * config/pa/hppahpux.mt (TDEPFILES): Likewise.
8496 * hpacc-abi.c, hpread.c: Deleted.
8498 2007-04-10 Daniel Jacobowitz <dan@codesourcery.com>
8500 * solib-svr4.c (enable_break): Simplify return value.
8501 (svr4_solib_create_inferior_hook): Do not warn if enable_break fails.
8503 2007-04-10 Andreas Schwab <schwab@suse.de>
8505 * solib-svr4.h (struct link_map_offsets): Remove l_addr_size,
8506 l_ld_size, l_next_size, l_prev_size, l_name_size.
8508 * solib-svr4.c (LM_ADDR_FROM_LINK_MAP): Use extract_typed_address
8509 to extract addresses from link map.
8510 (LM_DYNAMIC_FROM_LINK_MAP): Likewise.
8511 (LM_NEXT): Likewise.
8512 (LM_NAME): Likewise.
8513 (IGNORE_FIRST_LINK_MAP_ENTRY): Likewise.
8514 (elf_locate_base): Likewise.
8515 (open_symbol_file_object): Likewise.
8516 (svr4_fetch_objfile_link_map): Likewise.
8517 (SOLIB_EXTRACT_ADDRESS): Remove unused macro.
8518 (HAS_LM_DYNAMIC_FROM_LINK_MAP): Test l_ld_offset instead of
8520 (svr4_ilp32_fetch_link_map_offsets): Don't set removed members.
8521 (svr4_lp64_fetch_link_map_offsets): Likewise.
8523 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets): Don't set
8524 removed members. Set l_ld_offset to -1 if not present.
8526 2007-04-08 Vladimir Prus <vladimir@codesourcery.com>
8528 Pass stderr of program run with "target remote |"
8530 * serial.c (serial_open): Set error_fd to -1.
8531 * serial.h (struct serial): New field error_fd.
8532 (struct serial_opts): New field avail.
8533 * ser-pipe.c (pipe_open): Create another pair
8534 of sockets. Pass stderr to gdb.
8535 * ser-mingw.c (pipe_windows_open): Pass
8536 PEX_STDERR_TO_PIPE to pex_run. Initialize
8539 (_initialize_ser_windows): Hook pipe_avail.
8540 * ser-base.c (generic_readchar): Check if there's
8541 anything in stderr channel and route that to gdb_stderr.
8543 2007-04-03 Pedro Alves <pedro_alves@portugalmail.pt>
8545 * dbxread.c (read_ofile_symtab): Move current_objfile
8546 clearing to after end_stabs.
8548 2007-04-01 Andreas Schwab <schwab@suse.de>
8550 * rs6000-tdep.c (rs6000_convert_from_func_ptr_addr): Use parameter
8551 gdbarch instead of current_gdbarch.
8553 2007-04-01 Vladimir Prus <vladimir@codesourcery.com>
8555 * varobj.c (varobj_create): Keep varobj value
8556 NULL when evaluating the type.
8558 2007-03-31 Pedro Alves <pedro_alves@portugalmail.pt>
8560 * NEWS: Mention new Windows CE support.
8562 2007-03-30 Pedro Alves <pedro_alves@portugalmail.pt>
8564 * configure.tgt: Move mips*-*-pe and sh*-*-pe to
8565 the obsoletion stanza.
8566 * NEWS: Mention deleted targets.
8568 * config/sh/tm-wince.h: Remove.
8569 * config/sh/wince.mt: Remove.
8570 * config/mips/tm-wince.h: Remove.
8571 * config/mips/wince.mt: Remove.
8574 * wince-stub.c: Remove.
8575 * wince-stub.h: Remove.
8576 * Makefile.in (wince.o): Remove rule.
8577 (wince-stub.o): Likewise.
8579 * mips-tdep.c (mips_next_pc): Make static.
8580 * mips-tdep.h (mips_next_pc): Remove declaration.
8581 * arm-tdep.c (arm_pc_is_thumb): Make static.
8582 (thumb_get_next_pc): Likewise.
8583 (arm_get_next_pc): Likewise.
8584 * arm-tdep.h (arm_pc_is_thumb_dummy): Remove declaration.
8585 (arm_pc_is_thumb): Likewise.
8586 (thumb_get_next_pc): Likewise.
8587 (arm_get_next_pc): Likewise.
8589 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
8591 * MAINTAINERS: Remove d10v entry.
8592 * Makefile.in (SFILES): Remove dwarfread.c.
8593 (COMMON_OBS): Remove dwarfread.o.
8594 (gdb_sim_d10v_h, abug-rom.o, cpu32bug-rom.o, d10v-tdep.o, dwarfread.o)
8595 (remote-est.o, rom68k-rom.o): Delete.
8596 * NEWS: Mention removal of d10v, target abug, target cpu32bug,
8597 target est, target rom68k, and DWARF 1.
8598 * configure.tgt: Mark d10v as removed.
8599 * dwarf2read.c: Doc update.
8600 * elfread.c (struct elfinfo): Remove dboffset, dbsize, lnoffset,
8602 (elf_locate_sections): Do not set them.
8603 (elf_symfile_read): Do not call dwarf_build_psymtabs.
8604 * symfile.h (dwarf_build_psymtabs): Delete prototype.
8605 * config/m68k/monitor.mt (TDEPFILES): Prune.
8606 * abug-rom.c, cpu32bug-rom.c, d10v-tdep.c, dwarfread.c,
8607 remote-est.c, rom68k-rom.c, config/d10v/d10v.mt: Delete.
8609 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
8611 * doublest.c (convert_floatformat_to_doublest): Use
8612 floatformat_classify.
8613 (floatformat_is_nan): Rename to...
8614 (floatformat_classify): ...this. Return more information.
8615 * doublest.h (enum float_kind): New.
8616 (floatformat_is_nan): Replace prototype...
8617 (floatformat_classify): ...with this one.
8618 * valprint.c (print_floating): Use floatformat_classify. Handle
8621 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
8623 * README: Mention ISO C library requirement.
8625 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
8627 * Makefile.in (SFILES): Remove nlmread.c.
8628 (COMMON_OBS): Remove nlmread.o.
8629 (nlmread.o): Delete rule.
8630 * README: Delete reference to remote-st.c.
8631 * acinclude.m4 (CY_AC_TCL_LYNX_POSIX): Delete.
8632 * defs.h (enum gdb_osabi): Delete GDB_OSABI_NETWARE and
8634 * i386-tdep.c (i386_nw_init_abi, i386_nlm_osabi_sniffer): Delete.
8635 (_initialize_i386_tdep): Do not reference them.
8636 * nlmread.c: Delete file.
8637 * osabi.c (gdb_osabi_names): Remove NetWare and LynxOS.
8638 * target.c: Doc update.
8639 * thread.c: Delete commented include.
8640 * config/alpha/tm-alpha.h: Doc update.
8642 2007-03-30 Chris Dearman <chris@mips.com>
8644 * utils.c (string_to_core_addr): Comment typo.
8646 2007-03-30 Chris Dearman <chris@mips.com>
8648 * mips-tdep.c: Comment typo.
8650 2007-03-29 Ulrich Weigand <uweigand@de.ibm.com>
8652 * config/alpha/nm-osf.h (PTRACE_XFER_TYPE): Remove.
8653 * config/mips/nm-linux.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Remove.
8654 * config/sparc/nm-linux.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Remove.
8655 * config/powerpc/nm-ppc64-linux.h: Remove file.
8656 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Set to nm-linux.h.
8657 * inferior.h (PTRACE_ARG3_TYPE): Do not define.
8658 (call_ptrace): Change type of third argument to PTRACE_TYPE_ARG3.
8659 * infptrace.c (call_ptrace): Likewise.
8660 * m68klinux-nat.c (PTRACE_XFER_TYPE): Do not define.
8661 (fetch_register): Replace PTRACE_ARG3_TYPE by PTRACE_TYPE_ARG3
8662 and PTRACE_XFER_TYPE by PTRACE_TYPE_RET.
8663 (store_register): Likewise.
8665 2007-03-29 Joel Brobecker <brobecker@adacore.com>
8667 * Makefile.in (varobj.o): Add missing dependency.
8669 2007-03-29 Michael Snyder <msnyder@access-company.com>
8671 * MAINTAINERS: Update my email address.
8673 2007-03-29 Joel Brobecker <brobecker@adacore.com>
8675 Add support for exception handling with multiple versions of
8677 * ada-lang.c: Update general comments on how Ada exception catchpoints
8679 (raise_sym_name, raise_unhandled_sym_name, raise_assert_sym_name)
8680 (__gnat_raise_nodefer_with_msg): Delete.
8681 (ada_unhandled_exception_name_addr_ftype): New type.
8682 (exception_support_info): New type.
8683 (ada_unhandled_exception_name_addr): Add forward declaration.
8684 (ada_unhandled_exception_name_addr_from_raise): Likewise.
8685 (default_exception_support_info): New constant.
8686 (exception_support_info_fallback): Likewise.
8687 (exception_info): New global variable.
8688 (ada_exception_support_info_sniffer): New function.
8689 (ada_executable_changed_observer): Likewise.
8690 (ada_unhandled_exception_name_addr_from_raise): Renamed from
8691 ada_unhandled_exception_name_addr.
8692 (ada_unhandled_exception_name_addr): Reimplement to match the
8693 latest Ada runtime implementation.
8694 (error_breakpoint_runtime_sym_not_found): Delete.
8695 (ada_exception_sym_name): Get the exception sym name from
8696 exception_info rather than hardcoding it.
8697 (ada_exception_sal): Add call to ada_exception_support_info_sniffer.
8698 Update error handling.
8699 * Makefile.in (ada-lang.o): Add dependency on observer.h.
8701 2007-03-29 Daniel Jacobowitz <dan@codesourcery.com>
8703 * Makefile.in (coff_solib_h, coff-solib.o, i386v-nat.o, lynx-nat.o)
8704 (remote-st.o, uw-thread.o): Delete.
8705 (HFILES_NO_SRCDIR, ALLDEPFILES): Update.
8706 * configure.host: Move hppa*-*-hiux*, i[34567]86-ncr-*,
8707 i[34567]86-*-dgux*, i[34567]86-*-lynxos*, i[34567]86-*-sco3.2v5*,
8708 i[34567]86-*-sco3.2v4*, i[34567]86-*-sco*, i[34567]86-*-sysv4.2*,
8709 i[34567]86-*-sysv4*, i[34567]86-*-sysv5*, i[34567]86-*-unixware2*,
8710 i[34567]86-*-unixware*, i[34567]86-*-sysv*, i[34567]86-*-isc*, and
8711 rs6000-*-lynxos* to an obsoletion stanza.
8712 * configure.tgt: Move hppa*-*-hiux*, i[34567]86-ncr-*,
8713 i[34567]86-*-lynxos*, m68*-cisco*-*, m68*-tandem-*, m68*-*-os68k*,
8714 and rs6000-*-lynxos* to an obsoletion stanza. Do not mention
8715 i[34567]86-*-netware*.
8716 * NEWS: Mention deleted targets.
8718 * coff-solib.c, coff-solib.h, i386v-nat.c, lynx-nat.c, remote-st.c,
8719 uw-thread.c, config/nm-lynx.h, config/i386/i386sco.mh,
8720 config/i386/i386sco4.mh, config/i386/i386sco5.mh, config/i386/i386v.mh,
8721 config/i386/i386v4.mh, config/i386/i386v42mp.mh,
8722 config/i386/ncr3000.mh, config/i386/ncr3000.mt,
8723 config/i386/nm-i386sco.h, config/i386/nm-i386sco4.h,
8724 config/i386/nm-i386sco5.h, config/i386/nm-i386v.h,
8725 config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h,
8726 config/m68k/cisco.mt, config/m68k/os68k.mt, config/m68k/st2000.mt,
8727 config/m68k/tm-cisco.h, config/m68k/tm-os68k.h,
8728 config/rs6000/rs6000lynx.mh, config/rs6000/rs6000lynx.mt,
8729 config/rs6000/tm-rs6000ly.h: Delete files.
8731 2007-03-29 Daniel Jacobowitz <dan@codesourcery.com>
8733 * defs.h (deprecated_registers_changed_hook): Delete declaration.
8734 * interps.c (clear_interpreter_hooks): Do not clear
8735 deprecated_registers_changed_hook.
8736 * regcache.c (registers_changed): Do not call it.
8737 * top.c (deprecated_registers_changed_hook): Do not define it.
8738 * mi/mi-interp.c (mi_command_loop): Do not clear it.
8739 * tui/tui-hooks.c (tui_install_hooks): Do not install it.
8740 (tui_remove_hooks): Do not remove it.
8741 (tui_selected_frame_level_changed_hook): Check for negative level.
8742 Use get_selected_frame.
8743 (tui_registers_changed_hook): Deleted.
8745 2007-03-29 Joel Brobecker <brobecker@adacore.com>
8747 * stabsread.c (add_undefined_type): Add extra parameter.
8748 Now handles nameless types separately.
8749 (struct nat): New type.
8750 (noname_undefs, noname_undefs_allocated, noname_undefs_length):
8751 New static variables.
8752 (read_type): Update calls to add_undefined_type.
8753 (add_undefined_type_noname): New function.
8754 (add_undefined_type_1): Renames from add_undefined_type.
8755 (cleanup_undefined_types_noname): New function.
8756 (cleanup_undefined_types_1): Renames cleanup_undefined_types.
8757 (cleanup_undefined_types): New handles nameless types separately.
8758 (_initialize_stabsread): Initialize our new static constants.
8760 2007-03-29 Denis Pilat <denis.pilat@st.com>
8762 * configure.ac: Test for signal.h.
8763 * configure, config.in: Regenerate.
8765 2007-03-29 Denis Pilat <denis.pilat@st.com>
8767 * stack.c (print_stack_frame): Always use LOC_AND_ADDRESS in MI output.
8768 * infrun.c (normal_stop): Remove MI specific frame printing treatment.
8770 2007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
8772 * arm-wince-tdep.c: New.
8773 * config/arm/wince.mt (DEPRECATED_TM_FILE): Use tm-arm.h.
8774 (MT_CFLAGS): Delete.
8776 (TDEPFILES): Add arm-wince-tdep.o, corelow.o, solib.o,
8777 solib-legacy.o, solib-svr4.o, and remove wince.o.
8778 * configure.tgt (arm*-*-mingw32ce*): Add.
8779 * signals/signals.c [HAVE_SIGNAL_H]: Check.
8780 (do_target_signal_to_host): Silence 'not used' warning.
8781 * config/arm/tm-wince.h: Remove.
8783 2007-03-28 Ulrich Weigand <uweigand@de.ibm.com>
8785 * arch-utils.c (legacy_pc_in_sigtramp): Remove.
8786 * arch-utils.h (legacy_pc_in_sigtramp): Remove.
8788 * config/ia64/linux.mt (DEPRECATED_TM_FILE): Remove.
8789 * config/ia64/tm-linux.h: Remove file.
8790 * ia64-tdep.h (struct gdbarch_tdep): Add pc_in_sigtramp callback.
8791 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Use it instead of
8792 legacy_pc_in_sigtramp.
8793 (ia64_gdbarch_init): Initialize tdep->pc_in_sigtramp.
8794 * ia64-linux-tdep.c (ia64_linux_pc_in_sigtramp): Make static.
8795 Remove func_name argument.
8796 (ia64_linux_init_abi): Install it as tdep->pc_in_sigtramp.
8798 * infrun.c (HAVE_STEPPABLE_WATCHPOINT): Do not redefine.
8799 * target.c (update_current_target): Add to_have_steppable_watchpoint.
8800 * target.h (struct target_ops): Add to_have_steppable_watchpoint.
8801 (HAVE_STEPPABLE_WATCHPOINT): Define.
8803 * config/ia64/linux.mh (NATDEPFILES): Remove core-aout.o.
8804 * config/ia64/nm-linux.h (KERNEL_U_ADDR, U_REGS_OFFSET,
8805 CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER,
8806 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_STEPPABLE_WATCHPOINT,
8807 STOPPED_BY_WATCHPOINT, target_stopped_data_address,
8808 target_insert_watchpoint, target_remove_watchpoint): Remove.
8809 (FETCH_INFERIOR_REGISTERS): Define.
8810 * ia64-linux-nat.c (ia64_register_addr): Make static.
8811 (ia64_cannot_fetch_register, ia64_cannot_store_register): Likewise.
8812 (ia64_linux_insert_watchpoint): Make static. Remove ptid_p argument.
8813 (ia64_linux_remove_watchpoint): Likewise. Add type argument.
8814 (ia64_linux_stopped_data_address): Make static. Add target_ops.
8815 (ia64_linux_stopped_by_watchpoint): Make static.
8816 (ia64_linux_can_use_hw_breakpoint): New function.
8817 (ia64_linux_fetch_register, ia64_linux_fetch_registers): Likewise.
8818 (ia64_linux_store_register, ia64_linux_store_registers): Likewise.
8819 (_initialize_ia64_linux_nat): Install register and watchpoint ops.
8821 2007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
8823 * linespec.c: Include language.h.
8824 (find_methods): Add language parameter. Call
8825 lookup_symbol_in_language. Pass language down.
8826 (add_matching_methods): Likewise. Call
8827 lookup_symbol_in_language.
8828 (add_constructors): Likewise.
8829 (find_method): Pass sym_class to collect_methods.
8830 (collect_methods): Add sym_class parameter. Pass language
8832 * symtab.c (lookup_symbol): Rename to ...
8833 (lookup_symbol_in_language): ... this. Add language
8834 parameter. Use passed language instead of current_language.
8835 (lookup_symbol): New as wrapper around
8836 lookup_symbol_in_language.
8837 (lookup_symbol_aux): Add language parameter. Use passed
8838 language instead of current_language.
8839 (search_symbols): Indent.
8840 * symtab.h (enum language): Forward declare.
8841 (lookup_symbol_in_language): Declare.
8842 (lookup_symbol): Update description.
8843 * ada-lang.h (lookup_symbol_in_language): Remove declaration.
8844 * ada-lang.c (restore_language): Remove.
8845 (lookup_symbol_in_language): Remove.
8847 2007-03-27 Pedro Alves <pedro_alves@portugalmail.pt>
8849 * breakpoint.c (bpstat_num): Add int *num parameter.
8850 * breakpoint.h (bpstat_num): Likewise.
8851 * infcmd.c (continue_command): Adjust to new bpstat_num
8853 (program_info): Likewise.
8855 2007-03-27 Ulrich Weigand <uweigand@de.ibm.com>
8857 * config/sh/tm-sh.h: Remove file.
8858 * config/sh/embed.mt (DEPRECATED_TM_FILE): Remove.
8859 * config/sh/linux.mt (DEPRECATED_TM_FILE): Remove.
8860 * config/sh/nbsd.mt (DEPRECATED_TM_FILE): Remove.
8861 * config/sh/tm-wince.h: Do not include "sh/tm-sh.h".
8863 2007-03-27 Ulrich Weigand <uweigand@de.ibm.com>
8865 * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT,
8866 DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Remove.
8867 * remote.c: Remove code under #ifdef DEPRECATED_REMOTE_BREAKPOINT,
8868 DEPRECATED_BIG_REMOTE_BREAKPOINT, DEPRECATED_LITTLE_REMOTE_BREAKPOINT.
8869 * sh-tdep.c (sh_breakpoint_from_pc): Return remote breakpoint
8870 sequence if target_shortname is "remote".
8872 2007-03-27 Anton Blanchard <anton@samba.org>
8874 * rs6000-tdep.c (rs6000_frame_cache): Use tdep->lr_frame_offset
8875 instead of wordsize when looking for the LR in a stack frame.
8877 2007-03-27 Andreas Schwab <schwab@suse.de>
8878 Daniel Jacobowitz <dan@codesourcery.com>
8880 * dwarf2-frame.c (dwarf2_frame_eh_frame_regnum): Rename to...
8881 (dwarf2_frame_adjust_regnum): ...this. Make static. Add eh_frame_p
8882 argument. Update all callers.
8883 (struct dwarf2_frame_ops): Replace eh_frame_regnum with adjust_regnum.
8884 (dwarf2_frame_set_eh_frame_regnum): Rename to...
8885 (dwarf2_frame_set_adjust_regnum): ...this. Update argument type.
8886 * dwarf2frame.h (dwarf2_frame_set_eh_frame_regnum): Rename to...
8887 (dwarf2_frame_set_adjust_regnum): ...this.
8888 (dwarf2_frame_eh_frame_regnum): Delete prototype.
8889 * rs6000-tdep.c: Include "dwarf2-frame.h".
8890 (rs6000_adjust_frame_regnum): Define.
8891 (rs6000_gdbarch_init): Enable use of DWARF CFI frame unwinder.
8892 Register rs6000_adjust_frame_regnum.
8894 * Makefile.in (rs6000-tdep.o): Update dependencies.
8896 2007-03-27 Brooks Moses <brooks.moses@codesourcery.com>
8898 * Makefile.in: Add support for a "pdf" target.
8900 2007-03-27 Daniel Jacobowitz <dan@codesourcery.com>
8902 * amd64-tdep.c (amd64_init_frame_cache): New function.
8903 (amd64_alloc_frame_cache, amd64_skip_prologue): Use it.
8905 2007-03-26 Nigel Stephens <nigel@mips.com>
8906 Maciej W. Rozycki <macro@mips.com>
8908 * ui-out.c (ui_out_field_core_addr): Truncate address to
8909 TARGET_ADDR_BIT size before printing.
8911 2007-03-22 Nigel Stephens <nigel@mips.com>
8912 Maciej W. Rozycki <macro@mips.com>
8914 * remote-mips.c (mips_xfer_memory): Update prototype.
8916 2007-03-22 Joel Brobecker <brobecker@adacore.com>
8918 * symfile.h: #include "symtab.h"
8920 2007-03-22 Denis Pilat <denis.pilat@st.com>
8922 * utils.c (pagination_on_command, pagination_off_command):
8923 Remove useless prototypes.
8925 2007-03-21 Pierre Muller <muller@ics.u-strasbg.fr>
8928 * p-valprint.c (pascal_object_print_value): Use type_name_no_tag
8929 instead of TYPE_NAME for object base class name.
8932 2007-03-19 Kevin Buettner <kevinb@redhat.com>
8934 * mep-tdep.c (mep_analyze_frame_prologue, mep_frame_this_id):
8935 Specify frame type in calls to frame_func_unwind().
8937 2007-03-13 Daniel Jacobowitz <dan@codesourcery.com>
8939 * rs6000-tdep.c (rs6000_skip_prologue): Use skip_prologue_using_sal.
8940 (rs6000_in_function_epilogue_p): Use extract_unsigned_integer.
8941 (refine_prologue_limit): Delete.
8942 (skip_prologue): Don't call it. Use extract_unsigned_integer.
8943 Assume lim_pc is set. Correct check for incomplete prologues.
8944 Do not skip clobbers of the frame pointer.
8945 * symtab.c (skip_prologue_using_sal): Fail if there is only one
8948 2007-03-13 Nathan Froyd <froydnj@codesourcery.com>
8950 * frame.c (frame_pop): Check to see whether there's a frame to
8951 which we can pop first.
8953 2007-03-13 Nathan Froyd <froydnj@codesourcery.com>
8955 * MAINTAINERS (Write After Approval): Add myself.
8957 2007-03-09 Markus Deuling <deuling@de.ibm.com>
8959 * infrun.c (breakpoints_failed): Remove unnecessary variable.
8960 (handle_inferior_event): Remove unnecessary braces.
8961 * breakpoint.c (bpstat_what): Remove wrong comment.
8963 2007-03-09 Ulrich Weigand <uweigand@de.ibm.com>
8965 * spu-tdep.c (spu_in_function_epilogue_p): New function.
8966 (spu_gdbarch_init): Install it.
8968 2007-03-08 Ulrich Weigand <uweigand@de.ibm.com>
8970 * spu-linux-nat.c (spu_xfer_partial): Return -1 for unsupported
8971 object types, not 0.
8973 2007-03-08 Ulrich Weigand <uweigand@de.ibm.com>
8975 * spu-tdep.c (spu_frame_align): New function.
8976 (spu_gdbarch_init): Install it. Set call dummy location to ON_STACK.
8978 2007-03-08 Ulrich Weigand <uweigand@de.ibm.com>
8980 * spu-tdep.c (spu_unwind_pc): Mask off interrupt enable bit.
8981 (spu_software_single_step): Likewise.
8982 (spu_read_pc, spu_write_pc): New functions.
8983 (spu_gdbarch_init): Install them.
8985 2007-03-08 Ulrich Weigand <uweigand@de.ibm.com>
8987 * cli/cli-dump.c (struct callback_data): load_offset needs to
8988 have signed long type.
8990 2007-03-07 Joel Brobecker <brobecker@adacore.com>
8992 * mips-tdep.c (mips_insn16_frame_cache, mips_insn32_frame_sniffer):
8993 Revert the previous change that had some unexpected side-effects
8995 (mips_insn16_frame_cache, mips_insn32_frame_cache): Use the proper
8996 function to get the address of the calling instruction.
8998 2007-03-07 Denis Pilat <denis.pilat@st.com>
9000 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Replace
9001 get_selected_frame by deprecated_safe_get_selected_frame.
9003 2007-03-02 Mark Kettenis <kettenis@gnu.org>
9005 * shnbsd-tdep.c: Include "regset.h", "gdb_assert.h" and
9006 "gdb_string.h". Don't include "nbsd-tdep.h".
9007 (SIZEOF_STRUCT_REG): Remove.
9008 (SHNBSD_SIZEOF_GREGS): New.
9009 (shnbsd_supply_gregset, shnbsd_collect_gregset)
9010 (shnbsd_regset_from_core_section): New functions.
9011 (fetch_core_registers, fetch_elfcore_registers): Remove functions.
9012 (shnbsd_supply_reg, shnbsd_fill_reg): Simply call
9013 shnbsd_supply_gregset, shnbsd_collect_gregset.
9014 (shnbsd_gregset): New variable.
9015 (shnbsd_init_abi): Set regset_from_core_section.
9016 (GDB_OSABI_NETBSD_CORE): New define.
9017 (shnbsd_core_osabi_sniffer): New function.
9018 (_initialize_shnbsd_tdep): Register shnbsd_core_osabi_sniffer.
9019 * Makefile.in (shnbsd-tdep.o): Update dependencies.
9020 * config/sh/nbsd.mt (TDEPFILES): Add corelow.o, remove
9022 * config/sh/obsd.mt (TDEPFILES): Remove nbsd-tdep.o.
9024 2007-02-28 Joel Brobecker <brobecker@adacore.com>
9026 * gdbtypes.c (replace_type): Fix typo that caused us to not update
9027 length of the types referenced by the new type CV ring.
9029 2007-02-28 Daniel Jacobowitz <dan@codesourcery.com>
9031 * frame.c (frame_pop, frame_observer_target_changed): Call
9033 (flush_cached_frames): Rename to reinit_frame_cache and delete
9035 * frame.h (flush_cached_frames): Delete prototype and update comment.
9037 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd): Call
9038 reinit_frame_cache instead of flush_cached_frames. Do not call
9039 select_frame after reinit_frame_cache.
9040 * corelow.c (core_open): Likewise.
9041 * gdbarch.sh (deprecated_current_gdbarch_select_hack): Likewise.
9042 * infrun.c (prepare_to_proceed, context_switch)
9043 (handle_inferior_event): Likewise.
9044 * linux-fork.c (fork_load_infrun_state): Likewise.
9045 * ocd.c (ocd_start_remote): Likewise.
9046 * remote-e7000.c (e7000_start_remote): Likewise.
9047 * remote-mips.c (device): Likewise.
9048 * thread.c (switch_to_thread): Likewise.
9049 * tracepoint.c (finish_tfind_command): Likewise.
9050 * gdbarch.c: Regenerated.
9052 2007-02-28 Jerome Guitton <guitton@adacore.com>
9053 Joel Brobecker <brobecker@adacore.com>
9055 * gdbtypes.c (check_typedef): Do not replace stub type if
9056 the resolved type is not defined in the same objfile.
9058 2007-02-28 Daniel Jacobowitz <dan@codesourcery.com>
9060 * top.c (gdb_readline_wrapper_cleanup): Remove invalid assertion.
9062 2007-02-28 Joel Brobecker <brobecker@adacore.com>
9064 * stabsread.c (define_symbol): Create an associated STRUCT_DOMAIN
9065 symbol for Ada units when the symbol is defined using 't' rather
9066 than 'Tt' as symbol descriptor.
9068 2007-02-28 Ulrich Weigand <uweigand@de.ibm.com>
9070 * config/mips/tm-nbsd.h: Delete file.
9071 * config/mips/nbsd.mt (DEPRECATED_TM_FILE): Remove.
9072 * config/sh/tm-nbsd.h: Delete file.
9073 * config/sh/nbsd.mt (DEPRECATED_TM_FILE): Set to tm-sh.h.
9075 2007-02-28 Joel Brobecker <brobecker@adacore.com>
9077 * mi/mi-cmd-var.c (varobj_update_one): Remove reference to
9078 unused WRONG_PARAM value since it was recently deleted.
9080 2007-02-28 Vladimir Prus <vladimir@codesourcery.com>
9082 * varobj.c (varobj_update): Free temporary vectors.
9084 2007-02-28 Ulrich Weigand <uweigand@de.ibm.com>
9086 * config/powerpc/linux.mt (DEPRECATED_TM_FILE): Set to tm-ppc-eabi.h.
9087 * config/powerpc/tm-linux.h: Delete file.
9088 * config/powerpc/tm-ppc-eabi.h: Do not include "rs6000/tm-rs6000.h".
9089 (PROCESS_LINENUMBER_HOOK): Do not undefine.
9090 (TEXT_SEGMENT_BASE): Do not redefine.
9091 * config/rs6000/nm-rs6000.h (CHILD_SPECIAL_WAITSTATUS): Move here
9092 from config/rs6000/tm-rs6000.h.
9093 (TARGET_CREATE_INFERIOR_HOOK, rs6000_create_inferior): Likewise.
9094 * config/rs6000/tm-rs6000.h (struct frame_info): Remove declaration.
9095 (TEXT_SEGMENT_BASE): Remove.
9096 (IN_SOLIB_RETURN_TRAMPOLINE): Remove.
9097 (rs6000_in_solib_return_trampoline): Remove.
9098 (SKIP_TRAMPOLINE_CODE): Remove.
9099 (rs6000_skip_trampoline_code): Remove.
9100 (CHILD_SPECIAL_WAITSTATUS): Move to config/rs6000/nm-rs6000.h.
9101 (TARGET_CREATE_INFERIOR_HOOK, rs6000_create_inferior): Likewise.
9102 (FP0_REGNUM): Remove.
9103 (rs6000_find_toc_address_hook): Move to rs6000-tdep.h.
9104 (rs6000_set_host_arch_hook): Remove.
9105 * Makefile.in (rs6000-nat.o): Add dependency on $(rs6000_tdep_h).
9106 (rs6000-aix-tdep.o): Add dependency on $(ppc_tdep_h).
9107 * ppc-tdep.h (struct gdbarch_tdep): Add field text_segment_base.
9108 * rs6000-aix-tdep.c: Include "ppc-tdep.h".
9109 (rs6000_aix_init_osabi): Set text_segment_base tdep field.
9110 * rs6000-nat.c: Include "rs6000-tdep.h".
9111 (exec_one_dummy_insn): Replace TEXT_SEGMENT_BASE by tdep field.
9112 (set_host_arch): Rename to ...
9113 (rs6000_create_inferior): ... this. Make public.
9114 (_initialize_core_rs6000): Do not set rs6000_set_host_arch_hook.
9115 * rs6000-tdep.c (rs6000_set_host_arch_hook): Remove.
9116 (rs6000_create_inferior): Remove.
9117 (branch_dest): Replace TEXT_SEGMENT_BASE by tdep field.
9118 (rs6000_gdbarch_init): Call set_gdbarch_fp0_regnum,
9119 set_gdbarch_in_solib_return_trampoline, and
9120 set_gdbarch_skip_trampoline_code.
9121 * rs6000-tdep.h (rs6000_find_toc_address_hook): Move here
9122 from config/rs6000/tm-rs6000.h.
9124 2007-02-27 Joel Brobecker <brobecker@adacore.com>
9126 * buildsym.c (record_producer): Do nothing if no producer is provided.
9128 2007-02-27 Nick Roberts <nickrob@snap.net.nz>
9130 * varobj.c (varobj_update): Remove unused local. Use gdb_assert
9131 to check changelist is non-NULL. Call error if the frontend tries
9132 to update a non-root variable.
9134 * varobj.h (enum varobj_update_error): Delete WRONG_PARAM value.
9136 2007-02-27 Daniel Jacobowitz <dan@codesourcery.com>
9138 * dwarf2-frame.c (dwarf2_frame_cache, dwarf2_frame_this_id)
9139 (dwarf2_frame_sniffer): Update.
9140 (dwarf2_signal_frame_this_id): New function.
9141 (dwarf2_signal_frame_unwind): Use it.
9142 (dwarf2_frame_base_sniffer): Use frame_unwind_address_in_block.
9143 * frame.c (frame_func_unwind): Add this_type argument.
9144 (get_frame_func): Update.
9145 (frame_unwind_address_in_block): Add this_type argument and check it.
9147 (get_frame_address_in_block): Update.
9148 * frame.h (enum frame_type): Move higher in the file.
9149 (frame_unwind_address_in_block, frame_func_unwind): Add enum frame_type
9152 * alpha-mdebug-tdep.c, alpha-tdep.c, amd64-tdep.c, amd64obsd-tdep.c,
9153 arm-tdep.c, avr-tdep.c, cris-tdep.c, frv-tdep.c, h8300-tdep.c,
9154 hppa-tdep.c, i386-tdep.c, i386obsd-tdep.c, ia64-tdep.c,
9155 libunwind-frame.c, m32c-tdep.c, m32r-linux-tdep.c, m32r-tdep.c,
9156 m68hc11-tdep.c, m68k-tdep.c, m88k-tdep.c, mips-mdebug-tdep.c,
9157 mips-tdep.c, mn10300-tdep.c, mt-tdep.c, rs6000-tdep.c, s390-tdep.c,
9158 score-tdep.c, sh-tdep.c, sh64-tdep.c, sparc-tdep.c,
9159 sparc64obsd-tdep.c, spu-tdep.c, v850-tdep.c, vax-tdep.c,
9160 xstormy16-tdep.c, xtensa-tdep.c: Update calls to
9161 frame_func_unwind and frame_unwind_address_in_block to specify
9162 the frame type. Use frame_unwind_address_in_block instead of
9163 frame_pc_unwind in sniffers.
9165 2007-02-27 Daniel Jacobowitz <dan@codesourcery.com>
9167 * frame.c (deprecated_selected_frame): Rename to...
9168 (selected_frame): ...this. Make static.
9169 (get_selected_frame, select_frame): Update.
9170 * frame.h (deprected_select_frame): Delete.
9171 (deprecated_safe_get_selected_frame): Update comments.
9173 * breakpoint.c, cli/cli-cmds.c, f-valprint.c, infcmd.c, inflow.c,
9174 infrun.c, stack.c, tui/tui-disasm.c, tui/tui-source.c,
9175 tui/tui-winsource.c, valops.c, varobj.c, findvar.c, macroscope.c,
9176 parse.c, regcache.h, sh64-tdep.c, tui/tui-hooks.c, tui/tui-win.c,
9177 tui/tui.c: Replace references to deprecated_selected_frame.
9179 2007-02-27 Fred Fish <fnf@specifix.com>
9181 * rs6000-tdep.c (skip_prologue): Recognize addi instructions that
9182 directly decrement the stack pointer, accumulate their operand into
9183 the stack offset, and mark the function as not being frameless.
9185 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
9187 * arch-utils.c (selected_byte_order): New.
9188 * arch-utils.h (selected_byte_order): New prototype.
9189 * remote-sim.c (gdbsim_open): Use selected_byte_order.
9191 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
9193 * symfile.c (place_section): Check SEC_ALLOC. Do not check VMA.
9194 (default_symfile_offsets): Check VMA here. Update section VMAs.
9196 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
9198 * remote.c (init_remote_state): Add special handling for placeholder
9201 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
9203 * Makefile.in (XMLFILES): Include $(TDEP_XML).
9204 (filenames_h): New variable.
9205 (clean): Clean up xml-builtin.c and stamp-xml.
9206 (arm-linux-nat.o): Update.
9207 * config/arm/linux.mh (TDEP_XML): Define.
9208 * arm-linux-nat.c (PTRACE_GETWMMXREGS, PTRACE_SETWMMXREGS): Define.
9209 (arm_linux_has_wmmx_registers): New.
9210 (GET_THREAD_ID): Fix typo.
9211 (IWMMXT_REGS_SIZE): Define.
9212 (fetch_wmmx_regs, store_wmmx_regs): New.
9213 (arm_linux_fetch_inferior_registers): Use fetch_wmmx_regs.
9214 (arm_linux_store_inferior_registers): Use store_wmmx_regs.
9215 (super_xfer_partial, arm_linux_xfer_partial): New.
9216 (_initialize_arm_linux_nat): Use them.
9217 * xml-support.c (fetch_xml_builtin): Move outside HAVE_LIBEXPAT.
9218 (xml_builtin_xfer_partial): New function.
9219 * xml-support.h (xml_builtin_xfer_partial): New prototype.
9220 * NEWS: Update mention of iWMMXt support.
9222 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
9224 * arm-tdep.c (arm_scan_prologue): Do not record FPA register saves
9225 if there are no FPA registers.
9226 (arm_dwarf_reg_to_regnum): New function.
9227 (arm_register_type, arm_register_name): Return minimal values for
9228 unsupported registers.
9229 (arm_register_sim_regno): Handle iWMMXt registers.
9230 (arm_gdbarch_init): Record missing FPA registers if indicated by
9231 a target description. Recognize iWMMXt registers. Only register
9232 "info float" for FPA. Use ARM_NUM_REGS. Register
9233 arm_dwarf_reg_to_regnum.
9234 * arm-tdep.h (enum gdb_regnum): Add ARM_NUM_REGS and iWMMXt
9236 (struct gdbarch_tdep): Add have_fpa_registers.
9237 * features/xscale-iwmmxt.xml: Update capitalization.
9238 * regformats/arm-with-iwmmxt.dat: Regenerated.
9240 2007-02-24 Kevin Buettner <kevinb@redhat.com>
9242 * NEWS (New targets): Add entry for the Toshiba Media Processor.
9244 2007-02-23 Kevin Buettner <kevinb@redhat.com>
9246 * MAINTAINERS (mep): New target.
9248 2007-02-23 Kevin Buettner <kevinb@redhat.com>
9250 From Jim Blandy, Dave Brolley, Kevin Buettner, Don Howard, and
9252 * Makefile.in (elf_mep_h, mep_desc_h, mep_opc_h): New variables.
9253 (mep-tdep.o): New rule.
9254 * configure.tgt (mep-*-*): New target.
9255 * mep-tdep.c: New file.
9256 * config/mep/mep.mt: New file.
9258 2007-02-22 Markus Deuling <deuling@de.ibm.com>
9260 * infrun.c (inferior_stop_reason, print_stop_reason): Remove
9261 BREAKPOINT_HIT and STOP_UNKNOWN.
9263 2007-02-22 Markus Deuling <deuling@de.ibm.com>
9265 * valops.c (value_ind): Fix unary * handling of TYPE_CODE_INT.
9267 2007-02-20 Joel Brobecker <brobecker@adacore.com>
9269 * gdb_expat.h (XMLCALL): Define if not already defined.
9271 2007-02-20 Andreas Schwab <schwab@suse.de>
9273 * Makefile.in (symfile.o): Update dependencies.
9275 2007-02-20 Daniel Jacobowitz <dan@codesourcery.com>
9277 * MAINTAINERS: Disable -Werror for cris simulator. Build
9278 sparc64-solaris2.10 instead of the broken sparc-elf.
9279 * solib-frv.c: Include "solib.h".
9280 * Makefile.in (solib-frv.o): Update.
9281 * mt-tdep.c (mt_gdbarch_init): Correct typo in floatformats patch.
9282 * xtensa-tdep.c (xtensa_regset_from_core_section): Cast size_t to int.
9283 (xtensa_frame_this_id, xtensa_frame_prev_register)
9284 (xtensa_push_dummy_call): Use %p.
9286 2007-02-16 Daniel Jacobowitz <dan@codesourcery.com>
9288 * avr-tdep.c, hppa-tdep.c, hppabsd-tdep.c, i386-tdep.c,
9289 ia64-tdep.c, m68k-tdep.c, mips-linux-tdep.c, ppcobsd-tdep.c,
9290 sparc-linux-tdep.c: Include "gdbtypes.h" instead of "floatformat.h".
9291 * Makefile.in (avr-tdep.o, hppabsd-tdep.o, hppa-tdep.o, i386-tdep.o)
9292 (ia64-tdep.o, m68k-tdep.o, mips-linux-tdep.o, ppcobsd-tdep.o)
9293 (sparc-linux-tdep.o): Update.
9295 2007-02-15 Maxim Grigoriev <maxim2405@gmail.com>
9297 * xtensa-tdep.h (xtensa_reg_mask_t): New.
9298 (xtensa_mask_t): Change mask field to be a separate array.
9299 * xtensa-tdep.c (extract_call_winsize, xtensa_pseudo_register_read)
9300 (xtensa_pseudo_register_write, xtensa_unwind_pc)
9301 (xtensa_unwind_dummy_id, xtensa_push_dummy_call)
9302 (xtensa_breakpoint_from_pc): Remove implicit type casting.
9303 * xtensa-config.c (mask0, mask1, mask2, mask3, mask4, mask5)
9304 (mask6, mask7, mask8, mask9, mask10, mask11, mask12, mask13)
9305 (mask14, mask15): Rename to
9306 (xtensa_mask0, xtensa_mask1, xtensa_mask2, xtensa_mask3)
9307 (xtensa_mask4, xtensa_mask5, xtensa_mask6, xtensa_mask7)
9308 (xtensa_mask8, xtensa_mask9, xtensa_mask10, xtensa_mask11)
9309 (xtensa_mask12, xtensa_mask13, xtensa_mask14, xtensa_mask15): this.
9310 (xtensa_submask0, xtensa_submask1, xtensa_submask2, xtensa_submask3)
9311 (xtensa_submask4, xtensa_submask5, xtensa_submask6, xtensa_submask7)
9312 (xtensa_submask8, xtensa_submask9, xtensa_submask10)
9313 (xtensa_submask11, xtensa_submask12, xtensa_submask13)
9314 (xtensa_submask14, xtensa_submask15): New.
9315 (rmap): Follow strict aliasing rules doing static initialization.
9317 2007-02-13 Daniel Jacobowitz <dan@codesourcery.com>
9319 * target-descriptions.c (tdesc_named_type): Move code_ptr and data_ptr
9320 handling from here...
9321 (tdesc_register_type): ...to here.
9322 * xml-tdesc.c (tdesc_start_reg): Allow code_ptr and data_ptr.
9323 * features/arm-core.xml: Use code_ptr and data_ptr.
9325 2007-02-13 Denis Pilat <denis.pilat@st.com>
9327 * varobj.h (enum varobj_update_error): New enum.
9328 * varobj.c (struct varobj_root): Add is_valid member.
9329 (varobj_get_type): Check for invalid varobj.
9330 (varobj_get_attributes): Likewise.
9331 (variable_editable):Likewise.
9332 (varobj_update): Likewise. Use varobj_update_error.
9333 (new_root_variable): Set root varobj as valid by default.
9334 (varobj_invalidate): New function.
9335 * symfile.c (clear_symtab_users): Use varobj_invalidate.
9336 * mi/mi-cmd-var.c (varobj_update_one): Change return type to void.
9337 Use varobj_update_error.
9339 2007-02-12 Pierre Muller <muller@ics.u-strasbg.fr>
9342 * dwarfread.c (set_cu_language): Recognize DW_LANG_Pascal83 as
9343 Pascal language marker.
9344 * dwarf2read.c (set_cu_language): Likewise.
9346 2007-02-12 Corinna Vinschen <vinschen@redhat.com>
9348 * win32-nat.c (win32_wait): Reset terminal pgrp to GDB.
9349 (do_initial_win32_stuff): Call terminal_init_inferior_with_pgrp
9350 instead of target_terminal_init since inferior_ptid isn't set yet.
9352 2007-02-10 Pedro Alves <pedro_alves@portugalmail.pt>
9354 * MAINTAINERS (Write After Approval): Add myself.
9356 2007-02-09 Fred Fish <fnf@specifix.com>
9358 Based on work by Apple Computer, Inc.
9359 * event-top.c (async_request_quit): Call quit() whenever either
9360 quit_flag is set or immediate_quit is set.
9362 2007-02-09 Gabriel Dos Reis <gdr@integrable-solutions.net>
9364 * ada-lang.c (remove_out_of_scope_renamings): Change third parameter's
9365 type to a pointer to const struct block.
9366 (ada_lookup_symbol_list): Don't cast away constness when calling
9367 remove_out_of_scope_renamings.
9369 2007-02-09 Gabriel Dos Reis <gdr@integrable-solutions.net>
9371 * linux-nat.c (linux_nat_find_memory_regions): Don't check the
9372 address of 'filename'; it is always non null.
9374 2007-02-09 Joel Brobecker <brobecker@adacore.com>
9376 * exec.c (add_to_section_table): Do not discard empty sections.
9378 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
9380 * features/Makefile, features/arm-with-iwmmxt.xml,
9381 features/gdbserver-regs.xsl, features/number-regs.xsl,
9382 features/sort-regs.xsl, features/xscale-iwmmxt.xml: New files.
9383 * regformats/arm-with-iwmmxt.dat: Generate.
9384 * NEWS: Mention iWMMXt.
9386 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
9388 * Makefile.in (arm-tdep.o, eval.o, target-descriptions.o)
9389 (xml-tdesc.o): Update.
9390 * xml-support.c: Add a comment.
9391 (gdb_xml_enums_boolean): New variable.
9392 (gdb_xml_parse_attr_enum): Use strcasecmp.
9393 * xml-support.h (gdb_xml_enums_boolean): Declare.
9394 * xml-tdesc.c (struct tdesc_parsing_data): Record current_feature,
9395 next_regnum, and current_union.
9396 (tdesc_start_feature, tdesc_start_reg, tdesc_start_union)
9397 (tdesc_end_union, tdesc_start_field, tdesc_start_vector)
9398 (field_attributes, union_children, reg_attributes, union_attributes)
9399 (vector_attributes, feature_attributes, feature_children): New.
9400 (target_children): Make static. Add <feature>.
9401 (tdesc_elements): Make static.
9402 * target-descriptions.c (struct tdesc_reg, tdesc_reg_p, type_p)
9403 (struct tdesc_feature, tdesc_feature_p): New types.
9404 (struct target_desc): Add features member.
9405 (struct tdesc_arch_data, tdesc_data): New.
9406 (target_find_description): Clarify error message. Warn about
9407 ignored register descriptions.
9408 (tdesc_has_registers, tdesc_find_feature, tdesc_feature_name)
9409 (tdesc_named_type, tdesc_data_init, tdesc_data_alloc)
9410 (tdesc_data_cleanup, tdesc_numbered_register)
9411 (tdesc_numbered_register_choices, tdesc_find_register)
9412 (tdesc_register_name, tdesc_register_type)
9413 (tdesc_remote_register_number, tdesc_register_reggroup_p)
9414 (set_tdesc_pseudo_register_name, set_tdesc_pseudo_register_type)
9415 (set_tdesc_pseudo_register_reggroup_p, tdesc_use_registers)
9416 (tdesc_free_reg, tdesc_create_reg, tdesc_free_feature)
9417 (tdesc_create_feature, tdesc_record_type): New.
9418 (free_target_description): Free features.
9419 (_initialize_target_descriptions): Initialize tdesc_data.
9420 * arch-utils.c (default_remote_register_number): New.
9421 * arch-utils.h (default_remote_register_number): New prototype.
9422 * target-descriptions.h (set_tdesc_pseudo_register_name)
9423 (set_tdesc_pseudo_register_type, set_tdesc_pseudo_register_reggroup_p)
9424 (tdesc_use_registers, tdesc_data_alloc, tdesc_data_cleanup)
9425 (tdesc_numbered_register, tdesc_numbered_register_choices)
9426 (tdesc_has_registers, tdesc_find_feature, tdesc_feature_name)
9427 (tdesc_named_type, tdesc_create_feature, tdesc_record_type)
9428 (tdesc_create_reg): Declare.
9429 * gdbarch.sh (remote_register_number): New entry.
9430 * gdbarch.c, gdbarch.h: Regenerate.
9431 * remote.c (init_remote_state): Use gdbarch_remote_register_number.
9432 * features/gdb-target.dtd: Add feature, reg, vector, union, and field.
9434 * arm-tdep.c (arm_register_aliases): New.
9435 (arm_register_name_strings): Rename to...
9436 (arm_register_names): ...this. Make const. Delete the old version.
9437 (current_option, arm_register_byte): Delete.
9438 (set_disassembly_style): Simplify. Do not adjust arm_register_names.
9439 (value_of_arm_user_reg): New.
9440 (arm_gdbarch_init): Verify any described registers. Call
9441 tdesc_use_registers. Don't use arm_register_byte. Create aliases
9442 for standard register names.
9443 (_initialize_arm_tdep): Do not adjust arm_register_names.
9444 * user-regs.c (struct user_reg): Add baton member.
9445 (append_user_reg, user_reg_add_builtin, user_regs_init)
9446 (user_reg_add, value_of_user_reg): Use a baton for user
9448 * std-regs.c: Update.
9449 * user-regs.h (user_reg_read_ftype, user_reg_add_builtin)
9450 (user_reg_add): Add baton argument.
9451 * NEWS: Mention target description register support.
9452 * features/arm-core.xml, features/arm-fpa.xml: New.
9453 * eval.c (evaluate_subexp_standard): Allow ptype $register
9454 when the program is not running.
9456 2007-02-09 Nick Roberts <nickrob@snap.net.nz>
9458 * mi/mi-cmd-var.c (mi_cmd_var_create): Add value field.
9460 2007-02-08 Thiago Jung Bauermann <bauerman@br.ibm.com>
9462 * rs6000-tdep.c (gdb_print_insn_powerpc): Set
9463 info->disassembler_options to "any".
9465 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
9467 * varobj.c (install_new_value): Only call value_get_print_value
9470 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
9472 Reported by timeless@gmail.com:
9473 * gdb/target.c (target_flash_erase): Do not return void value.
9474 (target_flash_done): Likewise.
9475 * gdb/cli/cli-cmds.c (source_command): Likewise.
9477 2007-02-08 Fred Fish <fnf@specifix.com>
9479 Based on work by Apple Computer, Inc.
9480 * event-top.c (handle_sigint): Set quit_flag.
9481 (async_request_quit): Don't set quit_flag. Avoid calling quit()
9482 if quit_flag has already been reset.
9484 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
9486 * ser-mingw.c (pipe_windows_close): Move variable initialization back
9489 2007-02-08 Fred Fish <fnf@specifix.com>
9491 * defs.h (request_quit): Remove declaration.
9492 * utils.c (request_quit): Remove definition.
9494 2007-02-08 Joel Brobecker <brobecker@gnat.com>
9495 Jan Kratochvil <jan.kratochvil@redhat.com>
9496 Daniel Jacobowitz <dan@codesourcery.com>
9498 * rs6000-tdep.c (bl_to_blrl_insn_p): New function.
9499 (skip_prologue): Allow bl->blrl used by PIC code.
9501 2007-02-08 Mark Kettenis <kettenis@gnu.org>
9502 Daniel Jacobowitz <dan@codesourcery.com>
9504 * cp-valprint.c (cp_print_value_fields, cp_print_value): Always
9505 initialize tmp_obstack.
9506 * p-valprint.c (pascal_object_print_value_fields)
9507 (pascal_object_print_value): Likewise.
9509 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
9511 * features/feature_to_c.sh: Use %s to avoid problems with nawk.
9513 2007-02-08 Mark Kettenis <kettenis@gnu.org>
9515 * sparcnbsd-tdep.c: Include "gdbtypes.h" instead of "floatformat.h".
9516 * Makefile.in (sparcnbsd-tdep.o): Update dependencies.
9518 2007-02-07 Daniel Jacobowitz <dan@codesourcery.com>
9520 * xml-tdesc.c (struct tdesc_xml_cache, tdesc_xml_cache_s)
9522 (tdesc_parse_xml): Cache expanded descriptions.
9524 2007-02-07 Daniel Jacobowitz <dan@codesourcery.com>
9526 * Makefile.in (XMLFILES): New.
9527 (COMMON_OBS): Add xml-builtin.o.
9528 (xml-builtin.c, stamp-xml): New rules.
9529 (xml-tdesc.o): Update.
9530 * features/feature_to_c.sh: New file.
9531 * xml-support.c (MAX_XINCLUDE_DEPTH): Define.
9532 (struct gdb_xml_parser): Add dtd_name and is_xinclude.
9533 (gdb_xml_start_element): Initialize scope after possibly reallocating
9534 scopes. Move cleanup later. Handle the XInclude description
9536 (gdb_xml_end_element): Only parse the body if there is a current element.
9537 Call XML_DefaultCurrent if there is no element.
9538 (gdb_xml_fetch_external_entity, gdb_xml_use_dtd): New.
9539 (struct xinclude_parsing_data, xinclude_start_include)
9540 (xinclude_end_include, xml_xinclude_default)
9541 (xml_xinclude_start_doctype, xml_xinclude_end_doctype)
9542 (xml_xinclude_xml_decl, xml_xinclude_cleanup, xinclude_attributes)
9543 (xinclude_elements, xml_process_xincludes, fetch_xml_builtin): New.
9544 * xml-support.h (xml_fetch_another, xml_process_xincludes)
9545 (fetch_xml_builtin, xml_builtin, gdb_xml_use_dtd): New declarations.
9546 * xml-tdesc.c (tdesc_parse_xml): Add fetcher_baton argument. Expand
9547 XInclude directives. Use the compiled in DTD.
9548 (fetch_xml_from_file): Add baton argument. Treat it as a containing
9549 directory name. Do not warn here.
9550 (file_read_description_xml): Update call. Warn here instead. Pass
9552 (fetch_available_features_from_target): New.
9553 (target_read_description_xml): Use it.
9554 * features/gdb-target.dtd: Add copyright notice. Use xinclude.dtd
9556 * features/xinclude.dtd: New file.
9558 2007-02-05 Daniel Jacobowitz <dan@codesourcery.com>
9560 * linux-thread-db.c (check_for_thread_db): Return early if we have
9561 no libthread_db support.
9563 2007-02-05 Daniel Jacobowitz <dan@codesourcery.com>
9565 * mi/mi-parse.h: Include <sys/time.h>.
9567 2007-02-05 Nick Roberts <nickrob@snap.net.nz>
9569 * mi/mi-cmd-stack.c (list_args_or_locals): Use common_val_print
9570 instead of print_variable_value to print values.
9572 2007-02-03 Nick Roberts <nickrob@snap.net.nz>
9574 * mi/mi-main.c: Numerous formatting changes.
9575 (mi_cmd_data_write_register_values): Replace clause inadvertantly
9576 removed in my previous change.
9578 2007-02-03 Eli Zaretskii <eliz@gnu.org>
9580 * mi/mi-main.c (mi_load_progress, timestamp, print_diff_now):
9581 Use 1000000L instead of 1000000.
9583 2007-02-03 Nick Roberts <nickrob@snap.net.nz>
9585 Based on work by Apple Computer, Inc.
9587 * configure.ac: Test for sys/resource.h and getrusage.
9588 * configure, config.in: Regenerate.
9590 * mi/mi-main.c: Include <sys/resource.h> if present.
9591 (rusage): Declare if HAVE_GETRUSAGE.
9592 (current_command_ts, do_timings): New static variables.
9593 (timestamp, print_diff_now, print_diff, timeval_diff):
9594 New static timing functions.
9595 (mi_cmd_enable_timings): New function for new MI command.
9596 (captured_mi_execute_command, mi_execute_async_cli_command):
9597 Call timing functions.
9599 * mi/mi-cmds.c (mi_cmds): Add entry for new MI command
9602 * mi/mi-cmds.h (mi_cmd_enable_timings): New extern.
9604 * mi/mi-parse.h: (mi_timestamp): New structure.
9605 (mi_parse): Add mi_timestamp* member.
9607 2007-02-02 Denis Pilat <denis.pilat@st.com>
9609 * thread.c (make_cleanup_restore_current_thread): New function.
9610 (info_threads_command): Use of make_cleanup_restore_current_thread
9611 to restore the current thread and the selected frame.
9612 (restore_selected_frame): New function.
9613 (struct current_thread_cleanup): Add frame_id field.
9614 (do_restore_current_thread_cleanup): Add restoring of the selected
9616 (make_cleanup_restore_current_thread): Likewise.
9617 (thread_apply_all_command): backup the selected frame while
9618 entering the function and restore it at exit.
9619 (thread_apply_command): Likewise.
9621 2007-02-02 Denis Pilat <denis.pilat@st.com>
9623 * MAINTAINERS (Write After Approval): Add myself to the list.
9625 2007-02-01 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
9627 * gdb/remote-m32r.sdi.c (m32r_fetch_register): Change PWD mask.
9628 (m32r_store_register): Ditto.
9630 2007-01-30 Vladimir Prus <vladimir@codesourcery.com>
9632 * ser-mingw.c (pipe_windows_open)
9633 (pipe_windows_read, pipe_windows_write): Declare
9634 variables at the top of the function.
9636 2007-01-29 Daniel Jacobowitz <dan@codesourcery.com>
9638 * doublest.c (floatformat_from_length): Use the right element from
9639 gdbarch floatformats.
9640 (floatformat_from_type, extract_typed_floating)
9641 (store_typed_floating): Likewise.
9642 * doublest.h: Remove declarations for undefined floatformat arrays.
9643 * gdbarch.sh (float_format, double_format, long_double_format): Change
9645 (pformat): Update for pairs.
9646 * gdbarch.c, gdbarch.h: Regenerated.
9647 * gdbtypes.c (floatformats_ieee_single, floatformats_ieee_double)
9648 (floatformats_ieee_double_littlebyte_bigword)
9649 (floatformats_i387_ext, floatformats_m68881_ext, floatformats_arm_ext)
9650 (floatformats_ia64_spill, floatformats_ia64_quad, floatformats_vax_f)
9651 (floatformats_vax_d): New variables.
9652 (builtin_type_ieee_single, builtin_type_ieee_double)
9653 (builtin_type_arm_ext, builtin_type_ia64_spill)
9654 (builtin_type_ia64_quad): Replace arrays with individual types.
9655 (builtin_type_ieee_single_big, builtin_type_ieee_single_little)
9656 (builtin_type_ieee_double_big, builtin_type_ieee_double_little)
9657 (builtin_type_ieee_double_littlebyte_bigword, builtin_type_i960_ext)
9658 (builtin_type_m88110_ext, builtin_type_m88110_harris_ext)
9659 (builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword)
9660 (builtin_type_ia64_spill_big, builtin_type_ia64_spill_little)
9661 (builtin_type_ia64_quad_big, builtin_type_ia64_quad_little): Delete
9662 unused and endian-specific types.
9663 (recursive_dump_type): Update for floatformat pairs.
9664 (build_flt): Move higher. Handle bit == -1. Take a floatformat pair.
9665 (build_gdbtypes): Use build_flt.
9666 (_initialize_gdbtypes): Update set of initialized types.
9667 * gdbtypes.h: Update declarations to match gdbtypes.c.
9668 (struct main_type): Store a pointer to two floatformats.
9669 * arch-utils.c (default_float_format, default_double_format): Delete.
9670 * arch-utils.h (default_float_format, default_double_format): Delete.
9672 * arm-tdep.c, avr-tdep.c, hppa-tdep.c, hppabsd-tdep.c, i386-tdep.c,
9673 ia64-tdep.c, iq2000-tdep.c, m68k-tdep.c, m88k-tdep.c,
9674 mips-linux-tdep.c, mips-tdep.c, mt-tdep.c, ppcobsd-tdep.c,
9675 sparc-linux-tdep.c, sparc-tdep.c, sparcnbsd-tdep.c, spu-tdep.c,
9676 vax-tdep.c, alpha-tdep.c, ppc-sysv-tdep.c: Update.
9678 2007-01-29 Joel Brobecker <brobecker@adacore.com>
9680 * target.c (maintenance_print_target_stack): New function.
9681 (initialize_targets): Add new "maintenance print target-stack"
9684 2007-01-28 Mark Kettenis <kettenis@gnu.org>
9686 * dwarf2read.c (new_symbol): Handle DW_AT_decl_file being zero.
9688 2007-01-27 Daniel Jacobowitz <dan@codesourcery.com>
9690 * dwarf2loc.h (struct dwarf2_locexpr_baton): Change size to a long.
9691 (struct dwarf2_loclist_baton): Likewise.
9693 2007-01-27 Eli Zaretskii <eliz@gnu.org>
9695 * cli/cli-script.c: Include breakpoint.h.
9696 (build_command_line): Require arguments only for if and while
9698 (get_command_line, execute_user_command, execute_control_command):
9699 Fix wording of warning messages.
9700 (print_command_lines): Print breakpoint commands.
9701 (execute_control_command): Call commands_from_control_command to
9702 handle the `commands' command inside a body of a flow-control
9704 (read_next_line): Recognize the `commands' command and build a
9705 command line structure for it.
9706 (recurse_read_control_structure, read_command_lines): Handle
9707 `commands' similarly to `if' and `while'.
9709 * breakpoint.c (get_number_trailer): Document the special meaning
9710 of NULL as the first argument PP.
9711 (commands_from_control_command): New function.
9713 * breakpoint.h (commands_from_control_command): Add prototype.
9715 * defs.h (commands_control): New enumerated value for enum
9716 command_control_type.
9718 2007-01-26 Joel Brobecker <brobecker@adacore.com>
9720 * ada-lang.c (ada_exception_breakpoint_ops): Fix typo in function name.
9721 (ada_exception_sal): Update accordingly.
9723 2007-01-26 Jan Kratochvil <jan.kratochvil@redhat.com>
9725 * c-valprint.c (c_val_print): Require strings to be of no-signed CHARs.
9726 * NEWS: Describe CHAR array vs. string identifcation rules.
9728 2007-01-25 Paul Brook <paul@codesourcery.com>
9730 * arm-tdep.c (arm_get_next_pc): Fix bitfield off-by-one error.
9732 2007-01-24 Jim Blandy <jimb@codesourcery.com>
9734 * dwarf2loc.c (dwarf2_evaluate_loc_desc): When the location
9735 expression is empty, bother to return the 'optimized out' value we
9736 construct. (Thanks to Carl Burch.)
9738 2007-01-24 Vladimir Prus <vladimir@codesourcery.com>
9740 * varobj.c (c_value_of_root, c_value_of_child)
9741 (cplus_describe_child): Don't call release_value.
9743 2007-01-24 Thiemo Seufer <ths@mips.com>
9745 * mips-linux-tdep.c (mips_linux_n64_rt_sigframe): Fix struct
9748 2007-01-24 Vladimir Prus <vladimir@codesourcery.com>
9750 Refactor getting children name, value and type access
9752 * varobj.c (get_type_deref): Remove.
9753 (adjust_value_for_child_access): New.
9754 (c_number_of_children): Use the above.
9755 (c_describe_child): Likewise.
9756 (enum accessibility): New.
9757 (match_accessibility): New function.
9758 (cplus_describe_child): New function.
9759 (cplus_name_of_child, cplus_value_of_child)
9760 (cplus_type_of_child): Reimplement in terms
9761 of cplus_describe_child.
9762 (cplus_number_of_children): Use
9763 adjust_value_for_child_access.
9765 2007-01-24 Vladimir Prus <vladimir@codesourcery.com>
9767 Fix computation of the 'editable' attribute and
9768 value changeability for for references.
9769 * varobj.c (get_value_type): New function.
9770 (c_variable_editable): Use get_value_type.
9771 (varobj_value_is_changeable): Likewise.
9773 2007-01-24 Joel Brobecker <brobecker@adacore.com>
9775 * source.c (find_and_open_source): Try rewriting the source
9776 path inside filename if dirname is NULL.
9778 2007-01-24 Joel Brobecker <brobecker@adacore.com>
9780 * dwarf2read.c (add_partial_symbol): Create an extra partial
9781 symbol in the VAR_DOMAIN for Ada structures, unions or enums.
9782 (new_symbol): Likewise for symbols.
9784 2007-01-24 Nick Roberts <nickrob@snap.net.nz>
9786 * mi/mi-main.c (mi_cmd_execute): Call free_all_values.
9788 2007-01-23 Vladimir Prus <vladimir@codesourcery.com>
9790 * value.c (value_primitive_field): Copy the full 'location'
9791 contents, instead of assuming that copying ADDRESS will
9792 bring over everything in the union. Remove obsolete comment.
9794 2007-01-23 Masaki Muranaka <monaka@monami-software.com>
9796 * m32c-tdep.c (make_regs, m32c_analyze_prologue)
9797 (m32c_skip_trampoline_code, m32c_m16c_address_to_pointer)
9798 (m32c_m16c_pointer_to_address): Separate code from declarations.
9800 2007-01-23 Nick Hudson <nick.hudson@dsl.pipex.com>
9802 * target.c (update_current_target): Correct typo.
9804 2007-01-22 Masaki Muranaka <monaka@monami-software.com>
9806 * xstormy16-tdep.c (xstormy16_skip_prologue): Separate code from a
9809 2007-01-11 Andrew Cagney <cagney@redhat.com>
9810 Daniel Jacobowitz <dan@codesourcery.com>
9811 Jan Kratochvil <jan.kratochvil@redhat.com>
9813 * dwarf2-frame.c (execute_cfa_program): New support of
9814 `DW_CFA_GNU_negative_offset_extended'.
9816 2007-01-21 Daniel Jacobowitz <dan@codesourcery.com>
9818 * NEWS: Mention flash support for "load" and new remote packets.
9820 2007-01-21 Markus Deuling <deuling@de.ibm.com>
9822 * breakpoint.c (delete_command): Skip redundant loop iterations.
9824 2007-01-21 Daniel Jacobowitz <dan@codesourcery.com>
9826 * gdbarch.sh (register_type): Update comment.
9827 * gdbarch.h: Regenerated.
9828 * arch-utils.c (generic_register_size): Call register_type.
9829 * ia64-tdep.c (ia64_extract_return_value): Likewise.
9830 * m32c-tdep.c (check_for_saved): Likewise.
9831 * mips-tdep.c (mips_print_register, print_gp_register_row)
9832 (mips_print_registers_info): Likewise.
9833 * sh-tdep.c (sh_pseudo_register_read, sh_pseudo_register_write):
9835 * sh64-tdep.c (sh64_pseudo_register_read, sh64_pseudo_register_write)
9836 (sh64_do_register, sh64_print_register)
9837 (sh64_media_print_registers_info): Likewise.
9838 * tui/tui-regs.c (tui_register_format): Likewise.
9840 2007-01-21 Daniel Jacobowitz <dan@codesourcery.com>
9842 * objfiles.h (ALL_PRIMARY_SYMTABS): Define.
9844 * ada-lang.c (symtab_for_sym, ada_lookup_symbol_list)
9845 (ada_lookup_symbol): Use ALL_PRIMARY_SYMTABS.
9846 * cp-support.c (make_symbol_overload_list_qualified): Likewise.
9847 * symtab.c (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
9848 (basic_lookup_transparent_type, find_pc_sect_symtab, search_symbols)
9849 (make_symbol_completion_list): Likewise.
9851 2007-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
9852 Daniel Jacobowitz <dan@codesourcery.com>
9854 * buildsym.c (end_symtab): Use preallocated symtab if available.
9855 Fill in SYMBOL_SYMTAB.
9856 * buildsym.h (struct subfile): Add symtab member.
9857 * dwarf2read.c (struct dwarf2_cu): Add line_header.
9858 (struct file_entry): Add symtab.
9859 (free_cu_line_header): New function.
9860 (read_file_scope): Use it. Save line_header in the cu. Process
9862 (add_file_name): Initialize new symtab member.
9863 (dwarf_decode_lines): Create symtabs for included files.
9864 (new_symbol): Set SYMBOL_SYMTAB.
9865 * symtab.c (lookup_symbol): Use SYMBOL_SYMTAB.
9866 (search_symbols): Likewise.
9867 * symtab.h (struct symbol): Add symtab member.
9868 (SYMBOL_SYMTAB): Define.
9870 2007-01-20 Daniel Jacobowitz <dan@codesourcery.com>
9872 * symfile.c (allocate_symtab): Remove INIT_EXTRA_SYMTAB_INFO.
9874 2007-01-20 Daniel Jacobowitz <dan@codesourcery.com>
9876 * arch-utils.c (show_endian): Correct reversed condition.
9878 2007-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
9880 * MAINTAINERS (Write After Approval): Add myself.
9882 2007-01-16 Daniel Jacobowitz <dan@codesourcery.com>
9883 Vladimir Prus <vladimir@codesourcery.com>
9885 Fix 'selected frame' varobjs.
9886 * varobj.c (struct varobj): Remove the error field.
9887 (varobj_set_value): Don't check var->error.
9888 (install_new_value): Don't set var->error.
9889 (varobj_update): Always pass the new value
9890 of the root via install_new_value.
9891 (create_child): Don't set error field.
9892 (new_variable): Likewise.
9893 (c_value_of_root): Always reevaluate the value
9894 of selected frame varobjs in the selected frame.
9895 Don't call reinit_frame_cache.
9897 2007-01-15 Joel Brobecker <brobecker@adacore.com>
9899 * source.c (_initialize_source): Improve the help text of
9900 the substitute-path commands.
9902 2007-01-14 Mark Kettenis <kettenis@gnu.org>
9904 * frv-tdep.c (frv_gdbarch_init, frv_register_name)
9905 (frv_breakpoint_from_pc, frv_gdbarch_adjust_breakpoint_address)
9906 (frv_skip_prologue): Remove prototypes.
9907 (frv_adjust_breakpoint_address): Renamed from
9908 frv_gdbarch_adjust_breakpoint_address.
9909 (frv_gdbarch_init): Adjust.
9911 2007-01-13 Mark Kettenis <kettenis@gnu.org>
9913 * gdbarch.sh (deprecated_extract_return_value)
9914 (deprecated_store_return_value): Remove.
9915 (extract_return_value, store_return_value): Remove default values.
9916 * gdbarch.c, gdbarch.h: Regenerate.
9917 * arch-utils.c, arch-utils.h (legacy_extract_return_value)
9918 (legacy_store_return_value): Remove.
9919 * regcache.c, regcache.h (deprecated_grub_regcache_for_registers):
9922 * mi/mi-main.c: Remove obsolete comment.
9924 * regcache.c, regcache.h (deprecated_register_bytes)
9925 (deprecated_read_register_bytes)
9926 (deprecated_write_register_bytes): Remove.
9928 * frame.c (get_frame_register_bytes, put_frame_register_bytes):
9929 Don't forget to move destination pointer.
9931 2007-01-01 Mark Kettenis <kettenis@gnu.org>
9933 * config/i386/nm-i386gnu.h (CHILD_PREPARE_TO_STORE): Remove.
9935 2007-01-11 Ulrich Weigand <uweigand@de.ibm.com>
9937 * spu-tdep.c (spu_analyze_prologue): Fix erroneous backtrace
9938 past entry function with recent newlib.
9940 2007-01-11 Vladimir Prus <vladimir@codesourcery.com>
9942 * gdb.texinfo (GDB/MI Variable Objects): Improve the
9943 introduction. Specify -var-update more exactly.
9945 2007-01-11 Daniel Jacobowitz <dan@codesourcery.com>
9947 * frame.c (get_prev_frame_1): Check PC_REGNUM before using it.
9949 2007-01-10 Jim Blandy <jimb@codesourcery.com>
9951 * MAINTAINERS (Global Maintainers): Ulrich Weigand has accepted
9952 the Global Maintainers' invitation to be a global maintainer.
9954 2007-01-10 Daniel Jacobowitz <dan@codesourcery.com>
9956 * infrun.c (singlestep_pc): New variable.
9957 (resume): Set singlestep_pc.
9958 (context_switch): Add a debugging message. Flush the frame cache.
9959 (handle_inferior_event): Add debugging messages. Handle thread
9960 hops when a software single step has completed. Let context_switch
9961 handle flushing the frame cache.
9963 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
9965 * NEWS: Mention target descriptions, "set tdesc filename",
9966 "unset tdesc filename", "show tdesc filename", and
9967 qXfer:features:read.
9968 * arch-utils.c (choose_architecture_for_target): New function.
9969 (gdbarch_info_fill): Call it.
9970 * target-descriptions.c (struct property): Make members non-const.
9971 (struct target_desc): Add arch member.
9972 (target_description_filename): New variable.
9973 (target_find_description): Try via XML first.
9974 (tdesc_architecture): New.
9975 (free_target_description, make_cleanup_free_target_description): New.
9976 (set_tdesc_property): Call xstrdup.
9977 (set_tdesc_architecture, tdesc_set_cmdlist, tdesc_show_cmdlist)
9978 (tdesc_unset_cmdlist, unset_tdesc_cmd, unset_tdesc_filename_cmd)
9979 (set_tdesc_cmd, show_tdesc_cmd, set_tdesc_filename_cmd)
9980 (show_tdesc_filename_cmd, _initialize_target_descriptions): New.
9981 * target-descriptions.h (tdesc_architecture)
9982 (make_cleanup_free_target_description, set_tdesc_architecture): New
9984 * Makefile.in (SFILES): Add xml-tdesc.c.
9985 (COMMON_OBS): Add xml-tdesc.o.
9986 (target-descriptions.o): Update.
9987 (xml-tdesc.o): New rule.
9988 * xml-tdesc.c, xml-tdesc.h: New files.
9989 * remote.c (PACKET_qXfer_features): New enum.
9990 (remote_protocol_features): Add qXfer:features:read.
9991 (remote_xfer_partial): Handle TARGET_OBJECT_AVAILABLE_FEATURES.
9992 (_initialize_remote): Register qXfer:features:read.
9993 * target.h (enum target_object): Add TARGET_OBJECT_AVAILABLE_FEATURES.
9994 * features/gdb-target.dtd: New file.
9996 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
9998 * copyright.sh: Clarify error.
10000 2007-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
10002 * symtab.c (matching_bfd_sections): Fix VMA matching for
10005 2007-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
10007 * minsyms.c (lookup_minimal_symbol_by_pc_section): Handle
10010 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
10012 Updated copyright notices for most files.
10014 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
10016 * copyright.sh (prunes): Add step-line.inp and step-line.c.
10018 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
10020 * configure.ac (DEBUGDIR_RELOCATABLE): Define for debugdir inside
10022 (TARGET_SYSTEM_ROOT_RELOCATABLE): Allow for exec_prefix being
10024 * configure, config.in: Regenerate.
10025 * defs.h (debug_file_directory): Declare.
10026 * main.c (captured_main): Canonicalize gdb_sysroot. Assume
10027 TARGET_SYSTEM_ROOT is defined. Initialize debug_file_directory and
10028 relocate it if DEBUGDIR_RELOCATABLE.
10029 * symfile.c (debug_file_directory): Make non-static.
10030 (find_separate_debug_file): Look for debug info for SYSROOT/PATH
10031 in DEBUGDIR/PATH if DEBUGDIR is inside SYSROOT.
10032 (_initialize_symfile): Don't initialize debug_file_directory here.
10034 2007-01-09 Jim Blandy <jimb@codesourcery.com>
10036 * score-tdep.c (score_push_dummy_call): Don't mix declarations and
10039 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
10041 * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Use
10042 frame_unwind_register to recurse.
10043 * alpha-tdep.c (alpha_sigtramp_frame_prev_register): Likewise.
10044 (alpha_heuristic_frame_prev_register): Likewise.
10045 * h8300-tdep.c (h8300_frame_prev_register): Likewise.
10046 * m32c-tdep.c (m32c_prev_register): Likewise.
10047 * frame.c (frame_register_unwind_location): Remove FIXME.
10049 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
10050 Eli Zaretskii <eliz@gnu.org>
10052 * copyright.sh: New file.
10054 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
10056 * configure.ac: Check for XML_StopParser.
10057 * xml-support.c (gdb_xml_body_text): Check for an error.
10058 (gdb_xml_start_element_wrapper): Conditionalize call to XML_StopParser.
10059 (gdb_xml_end_element_wrapper): Likewise.
10060 * config.in, configure: Regenerated.
10062 2007-01-08 Daniel Jacobowitz <dan@codesourcery.com>
10064 * varobj.c (install_new_value): Always update print_value.
10065 (value_get_print_value): Immediately return NULL for missing
10068 2007-01-08 Jim Blandy <jimb@codesourcery.com>
10070 * configure.ac: Tighten pattern for extracting value of
10071 DEPRECATED_TM_FILE from the target makefile fragment.
10072 * configure: Regenerated.
10074 2007-01-08 Daniel Jacobowitz <dan@codesourcery.com>
10076 * linux-nat.c (struct simple_pid_list): Add status.
10077 (add_to_pid_list): Record the PID's status.
10078 (linux_record_stopped_pid): Likewise. Make static.
10079 (pull_pid_from_list): Return the saved status.
10080 (linux_nat_handle_extended): Deleted.
10081 (linux_handle_extended_wait): Combine with linux_nat_handle_extended.
10082 Make static. Handle non-SIGSTOP for a new thread's first signal.
10083 (flush_callback): Handle unexpected pending signals.
10084 (linux_nat_wait): Update calls to changed functions.
10085 * linux-nat.h (linux_record_stopped_pid, linux_handle_extended_wait):
10086 Remove prototypes for newly static functions.
10088 2007-01-08 Ulrich Weigand <uweigand@de.ibm.com>
10090 * gdbarch.sh (value_from_register): New gdbarch function.
10091 * gdbarch.c, gdbarch.h: Regenerate.
10092 * findvar.c (default_value_from_register): New function.
10093 (value_from_register): Use gdbarch_value_from_register.
10094 * value.h (default_value_from_register): Declare.
10095 * spu-tdep.c (spu_convert_register_p, spu_register_to_value,
10096 spu_value_to_register): Remove.
10097 (spu_value_from_register): New function.
10098 (spu_gdbarch_init): Do not call set_gdbarch_convert_register_p,
10099 set_gdbarch_register_to_value, set_gdbarch_value_to_register.
10100 Call set_gdbarch_value_from_register.
10101 * s390-tdep.c (s390_convert_register_p, s390_register_to_value,
10102 s390_value_to_register): Remove.
10103 (s390_value_from_register): New function.
10104 (s390_gdbarch_init): Do not call set_gdbarch_convert_register_p,
10105 set_gdbarch_register_to_value, set_gdbarch_value_to_register.
10106 Call set_gdbarch_value_from_register.
10108 2007-01-08 Daniel Jacobowitz <dan@codesourcery.com>
10110 * NEWS: Add "set sysroot" and "show sysroot".
10111 * solib.c (solib_absolute_prefix): Delete. Replace
10112 all uses with gdb_sysroot.
10113 (_initialize_solib): Add "set sysroot" and "show sysroot".
10114 Make "solib-absolute-prefix" an alias to it.
10116 2007-01-08 Ulrich Weigand <uweigand@de.ibm.com>
10118 * frame.c (get_frame_register_bytes): New function.
10119 (put_frame_register_bytes): Likewise.
10120 * frame.h (get_frame_register_bytes): Declare.
10121 (put_frame_register_bytes): Likewise.
10122 * findvar.c (value_from_register): Always construct lval_register
10123 values. Use get_frame_register_bytes.
10124 * valops.c (value_assign): Use get_frame_register_bytes and
10125 put_frame_register_bytes.
10127 2007-01-08 Jim Blandy <jimb@codesourcery.com>
10129 * MAINTAINERS: Update Stan Shebs' email address.
10131 2007-01-07 Joel Brobecker <brobecker@adacore.com>
10133 * ada-lang.c (is_known_support_routine): Improve the implementation.
10135 2007-01-06 Joel Brobecker <brobecker@adacore.com>
10137 * ada-lang.c: Add include of source.h.
10138 (is_known_support_routine): Improve the check verifying that the file
10139 associated to this frame exists.
10140 * Makefile.in (ada-lang.o): Add dependency on source.h.
10142 2007-01-07 Jim Blandy <jimb@codesourcery.com>
10144 * ax-general.c (ax_const_l): Select proper opcode for the given
10147 2007-01-05 Vladimir Prus <vladimir@codesourcery.com>
10149 * varobj.c (c_value_of_root): Don't select frame if variable
10150 object is out of scope.
10152 2007-01-05 Nick Roberts <nickrob@snap.net.nz>
10154 * varobj.c (struct varobj): New member print_value.
10155 (install_new_value): Compare last printed value with current one
10156 instead of contents.
10157 (new_variable): Initialize var->print_value to NULL.
10158 (free_variable): Free var->print_value.
10159 (value_get_print_value): New function derived from
10160 c_value_of_variable.
10161 (c_value_of_variable): Use value_get_print_value.
10163 2007-01-05 Joel Brobecker <brobecker@adacore.com>
10165 * i386-tdep.c (i386_analyze_stack_align): Add comment.
10167 2007-01-05 Joel Brobecker <brobecker@adacore.com>
10169 * NEWS: Add entries for new catch commands.
10171 2007-01-05 Joel Brobecker <brobecker@adacore.com>
10173 * dwarf2read.c (partial_die_info): Add field has_byte_size.
10174 (add_partial_symbol): Correct identification of external references.
10175 (process_structure_scope): Likewise.
10176 (read_partial_die): Handle DW_AT_byte_size attribute.
10178 2007-01-05 Daniel Jacobowitz <dan@codesourcery.com>
10180 * xml-support.c (gdb_xml_end_element): Remove wrong backslashes.
10182 2007-01-05 Nick Roberts <nickrob@snap.net.nz>
10184 * varobj.c (get_type_deref): Fix variable objects for references to
10187 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
10189 * symtab.c (find_pc_sect_psymtab): Add comments. Handle psymtabs
10192 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
10194 * memory-map.c (struct_memory_map_parsing_data): Remove most
10195 members. Make property_name an array.
10196 (free_memory_map_parsing_data, memory_map_start_element)
10197 (memory_map_end_element, memory_map_character_data): Delete.
10198 (memory_map_start_memory, memory_map_end_memory)
10199 (memory_map_start_property, memory_map_end_property): New functions.
10200 (property_attributes, memory_children, memory_type_enum)
10201 (memory_attributes, memory_map_children, memory_map_elements): New.
10202 (parse_memory_map): Rewrite.
10203 * xml-support.c (debug_xml): New.
10204 (xml_get_required_attribute, xml_get_integer_attribute)
10205 (xml_get_enum_value, free_xml_parser, make_cleanup_free_xml_parser):
10207 (struct scope_level, struct gdb_xml_parser, gdb_xml_body_text)
10208 (gdb_xml_debug, gdb_xml_error, gdb_xml_values_cleanup)
10209 (gdb_xml_start_element, gdb_xml_start_element_wrapper)
10210 (gdb_xml_end_element, gdb_xml_end_element_wrapper, gdb_xml_cleanup)
10211 (gdb_xml_create_parser_and_cleanup, gdb_xml_parse)
10212 (gdb_xml_parse_ulongest, gdb_xml_parse_attr_ulongest)
10213 (gdb_xml_parse_attr_enum, show_debug_xml, _initialize_xml_support):
10215 * xml-support.h (struct gdb_xml_value, gdb_xml_attribute_handler)
10216 (enum gdb_xml_attribute_flag, struct gdb_xml_attribute)
10217 (enum gdb_xml_element_flag, struct gdb_xml_element)
10218 (gdb_xml_element_start_handler, gdb_xml_element_end_handler)
10219 (struct gdb_xml_enum): New.
10220 (gdb_xml_create_parser_and_cleanup, gdb_xml_parse, gdb_xml_debug)
10221 (gdb_xml_error, gdb_xml_parse_attr_ulongest)
10222 (gdb_xml_parse_attr_enum, gdb_xml_parse_ulongest): New prototypes.
10223 (xml_get_required_attribute, xml_get_integer_attribute)
10224 (xml_get_enum_value, make_cleanup_free_xml_parser): Delete prototypes.
10225 * Makefile.in (xml_support_h, xml-support.o): Update.
10227 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
10229 * Makefile.in (eval.o): Update dependencies.
10230 * eval.c: Include "ui-out.h" and "exceptions.h".
10231 (evaluate_subexp_standard): Use TRY_CATCH around value_of_variable.
10232 Use value_zero if an error occurs when avoiding side effects.
10233 * varobj.c (c_value_of_root): Initialize new_val.
10235 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
10237 * varobj.c (varobj_list_children): Stop if the number of children is
10239 (c_number_of_children):
10241 2007-01-04 Mark Kettenis <kettenis@gnu.org>
10243 * alpha-tdep.c (alpha_register_name): Use ARRAY_SIZE.
10244 (alpha_read_insn, alpha_skip_prologue, alpha_heuristic_proc_start)
10245 (alpha_heuristic_frame_unwind_cache, alpha_next_pc)
10246 (alpha_gdbarch_init): Use ALPHA_INSN_SIZE, ALPHA_REGISTER_SIZE and
10247 sizeof, instead of hardcoded constants.
10249 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
10251 * CONTRIBUTE: Use sourceware.org.
10253 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
10255 * buildsym.c (start_subfile): Handle producer.
10256 (record_producer): New function.
10257 * buildsym.h (struct subfile): Include producer.
10258 (record_producer): New prototype.
10259 * dwarf2-frame.c (struct dwarf2_cie): Add version and augmentation.
10260 (struct dwarf2_frame_state): Add armcc_cfa_offsets_sf and
10261 armcc_cfa_offsets_reversed.
10262 (execute_cfa_program): Handle armcc_cfa_offsets_sf.
10263 (dwarf2_frame_find_quirks): New function.
10264 (dwarf2_frame_cache): Call it. Handle armcc_cfa_offsets_reversed.
10265 (decode_frame_entry_1): Record the CIE version. Record the
10266 augmentation. Skip armcc augmentations.
10267 * dwarf2read.c (read_file_scope): Save the producer.
10268 * symtab.h (struct symtab): Rename unused version member to
10271 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
10273 * configure.ac (build_warnings): Use -Wall and
10274 -Wdeclaration-after-statement.
10275 * configure: Regenerated.
10277 2007-01-04 Vladimir Prus <vladimir@codesourcery.com>
10279 Simplify access to variours properties of child
10280 variable objects in C.
10281 * varobj.c (value_struct_element_index): New function.
10282 (c_describe_child): New function.
10283 (c_name_of_child, c_value_of_child)
10284 (c_type_of_child): Rewrite to use c_describe_child.
10286 2007-01-04 Vladimir Prus <vladimir@codesourcery.com>
10289 * varobj.c: Include "vec.h".
10290 (varobj_p): New typedef, declare vector of those.
10291 (struct varobj): Use vector for the 'children' member.
10292 (child_exists): Remove.
10293 (save_child_in_parent): Remove.
10294 (remove_child_from_parent): Remove.
10295 (struct varobj_child): Remove.
10296 (struct vstack): Remove.
10297 (vpush, vpop): Remove.
10298 (varobj_list_children): Adjust to work work vector.
10299 (varobj_update): Likewise. Use vectors for
10300 working stack and result.
10301 (delete_variable_1): Likewise.
10302 * Makefile.in (varobj.o): Update dependencies.
10304 2007-01-04 Vladimir Prus <vladimir@codesourcery.com>
10306 Port from Apple's version.
10308 * varobj.c (type_changeable): Rename to...
10309 (varobj_value_is_changeable_p): ...this. Adjust all callers.
10310 (is_root_p): New function. Use it everywhere.
10312 2007-01-04 Jim Blandy <jimb@codesourcery.com>
10314 * glibc-tdep.c (glibc_skip_solib_resolver): Look for '_dl_fixup',
10315 then plain 'fixup'.
10317 2007-01-04 Joel Brobecker <brobecker@adacore.com>
10319 * hpread.c (hpread_start_psymtab): Remove unnecessary extern.
10321 2007-01-04 Joel Brobecker <brobecker@adacore.com>
10323 * hpread.c (hpread_type_lookup): Fix compilation failure.
10325 2007-01-04 Qinwei <qinwei@sunnorth.com.cn>
10327 * NEWS: New port to S+core.
10328 * MAINTAINERS (Write After Approval, Responsible Maintainers):
10331 * Makefile.in: Add dependencies for S+core files.
10332 * configure.tgt (score*, score-*-*): Add S+core target.
10333 * config/score/embed.mt: New file.
10334 * score-tdep.c: New file.
10335 * score-tdep.h: New file.
10337 2007-01-04 Joel Brobecker <brobecker@adacore.com>
10339 * ada-lang.c (ada_evaluate_subexp) [OP_TYPE]: Return a value with
10340 the appropriate type rather than a bogus void type.
10342 2007-01-04 Joel Brobecker <brobecker@adacore.com>
10344 * ada-lang.h (ada_find_printable_frame): Remove.
10345 (ada_exception_catchpoint_p, ada_decode_exception_location)
10346 (ada_decode_assert_location): Add declaration.
10347 * ada-lang.c: Add include of annotate.h and valprint.h.
10348 (exception_catchpoint_kind): New enum.
10349 (function_name_from_pc, is_known_support_routine)
10350 (ada_find_printable_frame, ada_unhandled_exception_name_addr)
10351 (ada_exception_name_addr_1, ada_exception_name_addr)
10352 (print_it_exception, print_one_exception, print_mention_exception)
10353 (print_it_catch_exception, print_one_catch_exception)
10354 (print_mention_catch_exception, catch_exception_breakpoint_ops)
10355 (print_it_catch_exception_unhandled)
10356 (print_one_catch_exception_unhandled)
10357 (print_mention_catch_exception_unhandled, print_it_catch_assert)
10358 (print_one_catch_assert, print_mention_catch_assert)
10359 (ada_exception_catchpoint_p, error_breakpoint_runtime_sym_not_found)
10360 (ada_get_next_arg, catch_ada_exception_command_split)
10361 (ada_exception_sym_name, ada_exception_sym_name)
10362 (ada_exception_breakption_ops, ada_exception_catchpoint_cond_string)
10363 (ada_parse_catchpoint_condition, ada_exception_sal)
10364 (ada_decode_exception_location)
10365 (ada_decode_assert_location): New function.
10366 (catch_exception_unhandled_breakpoint_ops): New global variable.
10367 (catch_assert_breakpoint_ops): New global variable.
10368 * breakpoint.c: Add include of ada-lang.h.
10369 (print_one_breakpoint): Do not print the condition for Ada
10370 exception catchpoints.
10371 (create_ada_exception_breakpoint): New function.
10372 (catch_ada_exception_command, catch_assert_command): New function.
10373 (catch_command_1): Add support for the new "catch exception" and
10374 "catch assert" commands.
10375 (_initialize_breakpoint): Add help description for the new catch
10377 * Makefile.in (ada-lang.o): Add dependency on annotate.h and
10379 (breakpoint.o): Add dependency on ada-lang.h.
10381 2007-01-03 Pedro Alves <pedro_alves@portugalmail.pt>
10383 * coffread.c (cs_to_section): If bfd_section is found, always
10384 return its section index.
10385 (coff_symtab_read): Determine the minimal_symbol_type using the
10388 2007-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10389 Daniel Jacobowitz <dan@codesourcery.com>
10391 * Makefile.in (top.o): Update.
10392 * top.c (gdb_readline_wrapper_done, gdb_readline_wrapper_result)
10393 (saved_after_char_processing_hook, gdb_readline_wrapper_line)
10394 (struct gdb_readline_wrapper_cleanup, gdb_readline_wrapper_cleanup):
10396 (gdb_readline_wrapper): Rewrite to use asynchronous readline.
10398 2007-01-03 Mark Kettenis <kettenis@gnu.org>
10400 * arm-linux-tdep.c (arm_linux_extract_return_value): Remove.
10401 (arm_linux_init_abi): Don't set deprecated_extract_return_value.
10403 2007-01-03 Daniel Jacobowitz <dan@codesourcery.com>
10405 * ada-lang.c (find_struct_field): Initialize *byte_offset_p.
10406 * breakpoint.c (do_enable_breakpoint): Ignore both mem_cnt and i.
10407 * c-typeprint.c (c_type_print_varspec_suffix): Don't test length
10408 greater than or equal to zero.
10409 * m2-typeprint.c (m2_array): Likewise.
10410 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
10411 * gdbtypes.c (copy_type_recursive): Correct == typo.
10412 * i386-tdep.c (i386_skip_prologue): Remove stray semicolon.
10413 * linux-nat.c (linux_nat_info_proc_cmd): Don't compare a pointer
10415 * macroscope.c (sal_macro_scope): Don't name a local variable "main".
10416 (default_macro_scope): Remove unused variable.
10417 * prologue-value.h (pv_area_find_reg): Don't name an argument
10419 * remote-fileio.c (remote_fio_func_map): Add missing braces.
10420 * remote.c (sigint_remote_twice_token, sigint_remote_token): Change
10422 (cleanup_sigint_signal_handler): Remove casts.
10423 * valprint.c (val_print): Use a volatile local for the modified
10425 * varobj.c (languages): Remove extra array dimension.
10426 (varobj_create): Correct access to languages array.
10427 * mi/mi-cmd-break.c (mi_cmd_break_insert, mi_cmd_break_watch): Add
10429 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise.
10430 * mi/mi-cmd-env.c (mi_cmd_env_path, mi_cmd_env_dir): Likewise.
10431 * mi/mi-getopt.c (mi_valid_noargs): Likewise.
10432 * mi/mi-main.c (mi_cmd_data_read_memory): Likewise.
10433 (mi_cmd_data_write_memory): Likewise.
10434 * signals/signals.c (target_signal_to_string): Cast to int before
10436 * tui/tui-layout.c (init_and_make_win): Take and return a void *.
10437 Update all callers.
10439 2007-01-03 Daniel Jacobowitz <dan@codesourcery.com>
10441 * NEWS: Mention pointer to member improvements.
10442 * Makefile.in (gnu-v3-abi.o): Delete special rule.
10443 (eval.o, gnu-v3-abi.o, ia64-tdep.o): Update.
10444 * ada-valprint.c (ada_print_scalar): Update for new type codes.
10445 * c-typeprint.c (c_print_type): Update for new type codes.
10446 (c_type_print_varspec_prefix, c_type_print_varspec_suffix)
10447 (c_type_print_base): Likewise.
10448 (c_type_print_args): Rewrite.
10449 * c-valprint.c (c_val_print): Update for new type codes. Remove
10450 support for references to members. Treat methods like functions.
10451 * cp-abi.c (cplus_print_method_ptr, cplus_method_ptr_size)
10452 (cplus_make_method_ptr, cplus_method_ptr_to_value): New.
10453 * cp-abi.h (cplus_print_method_ptr, cplus_method_ptr_size)
10454 (cplus_make_method_ptr, cplus_method_ptr_to_value): New prototypes.
10455 (struct cp_abi_ops): Add corresponding members.
10456 * cp-valprint.c (cp_print_class_method): Delete.
10457 (cp_find_class_member): New function.
10458 (cp_print_class_member): Use it. Simplify support for bogus
10460 * dwarf2read.c (quirk_gcc_member_function_pointer): Use
10461 lookup_methodptr_type.
10462 (read_tag_ptr_to_member_type): Likewise, and lookup_memberptr_type.
10463 * eval.c (evaluate_subexp_standard): Implement EVAL_SKIP for
10464 OP_SCOPE. Update call to value_aggregate_elt. Rewrite member
10466 (evaluate_subexp_for_address): Handle OP_SCOPE explicitly. Handle
10467 references returned by user defined operators.
10468 * f-typeprint.c (f_print_type, f_type_print_varspec_prefix)
10469 (f_type_print_varspec_suffix): Remove support for member pointers.
10470 * gdbtypes.c (lookup_memberptr_type): Renamed from lookup_member_type
10472 (smash_to_memberptr_type): Likewise, from smash_to_member_type.
10473 (lookup_methodptr_type): New.
10474 (rank_one_type): Adjust for TYPE_CODE_MEMBERPTR.
10475 (recursive_dump_type): Update for new types.
10476 * gdbtypes.h (enum type_code): Replace TYPE_CODE_MEMBER with
10477 TYPE_CODE_MEMBERPTR and TYPE_CODE_METHODPTR.
10478 (lookup_memberptr_type, lookup_methodptr_type)
10479 (smash_to_memberptr_type): New prototypes.
10480 (smash_to_method_type): Formatting fix.
10481 (lookup_member_type, smash_to_member_type): Delete prototypes.
10482 * gnu-v3-abi.c (gnuv3_get_vtable, gnuv3_get_virtual_fn): New.
10483 Do not rely on debug information for the vptr or the method's
10484 enclosing type. Handle function descriptors for IA64.
10485 (gnuv3_virtual_fn_field): Rewrite using the new functions.
10486 (gnuv3_find_method_in, gnuv3_print_method_ptr)
10487 (gnuv3_method_ptr_size, gnuv3_make_method_ptr)
10488 (gnuv3_method_ptr_to_value): New.
10489 (init_gnuv3_ops): Set new members of gnu_v3_abi_ops.
10490 * hpread.c (hpread_type_lookup): Update for new types.
10491 * infcall.c (value_arg_coerce): Likewise.
10492 * m2-typeprint.c (m2_print_type): Remove explicit support
10493 for member pointers.
10494 * m2-valprint.c (m2_val_print): Likewise.
10495 * p-typeprint.c (pascal_type_print_varspec_prefix)
10496 (pascal_type_print_varspec_suffix, pascal_type_print_base): Likewise.
10497 * p-valprint.c (pascal_val_print): Likewise.
10498 (pascal_object_print_class_method, pascal_object_print_class_member):
10500 * p-lang.h (pascal_object_print_class_method)
10501 (pascal_object_print_class_member): Delete prototypes.
10502 * stabsread.c (read_type): Update for new types.
10503 * typeprint.c (print_type_scalar): Likewise.
10504 * valops.c (value_struct_elt_for_reference, value_namespace_elt)
10505 (value_maybe_namespace_elt, value_aggregate_elt): Add want_address
10506 argument. Construct a pointer to member if the address of a
10507 function or data member is requested.
10508 (value_cast_pointers): Don't modify the input value.
10509 (value_cast): Adjust pointer to member handling for new types.
10510 Allow null pointer to member constants. Don't modify the input
10512 (value_ind): Remove pointer to member check. Handle function
10513 descriptors for function pointers.
10514 (value_struct_elt, value_find_oload_method_list, check_field):
10515 Remove pointer to member checks.
10516 * value.c (unpack_long): Allow pointers to data members.
10517 (value_from_longest): Allow member pointers.
10518 * value.h (value_aggregate_elt): Add want_address.
10519 * varobj.c (c_variable_editable): Remove check for members.
10520 * gdbarch.sh: Add vtable_function_descriptors and vbit_in_delta.
10521 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Handle descriptors
10523 (ia64_gdbarch_init): Call set_gdbarch_vtable_function_descriptors.
10524 * c-lang.h (cp_print_class_method): Delete prototype.
10525 * arm-tdep.c (arm_gdbarch_init): Call set_gdbarch_vbit_in_delta.
10526 * mips-tdep.c (mips_gdbarch_init): Likewise.
10527 * gdbarch.c, gdbarch.h: Regenerated.
10529 2007-01-01 Mark Kettenis <kettenis@gnu.org>
10531 * rs6000-tdep.c (rs6000_use_struct_convention)
10532 (rs6000_extract_return_value, rs6000_store_return_value)
10533 (rs6000_extract_struct_value_address): Remove.
10534 (rs6000_return_value): New function.
10535 (rs6000_gdbarch_init): Don't set deprecated_extract_return_value,
10536 store_return_value, deprecated_extract_struct_value_address and
10537 deprecated_use_struct_convention. Use rs6000_return_value
10540 2007-01-02 Nick Roberts <nickrob@snap.net.nz>
10542 * mi/mi-cmds.c (mi_cmds): Remove entries for -display-delete,
10543 -display-disable, -display-enable, -display-insert and
10546 2007-01-01 Joel Brobecker <brobecker@adacore.com>
10548 * breakpoint.c (remove_breakpoint): Remove dead code.
10550 2007-01-01 Nick Roberts <nickrob@snap.net.nz>
10552 * varobj.c: Include block.h.
10553 (c_value_of_root): Check scope within nested statements.
10555 2007-01-01 Mark Kettenis <kettenis@gnu.org>
10557 * mi/mi-main.c (mi_cmd_data_write_register_values): Use
10558 regcache_cooked_write_signed instead of
10559 deprecated_write_register_bytes.
10561 2007-01-01 Joel Brobecker <brobecker@adacore.com>
10563 * config/djgpp/fnchange.lst: Add entry for ChangeLog-2006.
10565 2007-01-01 Joel Brobecker <brobecker@adacore.com>
10567 Followed the Start of New Year Procedure:
10568 * ChangeLog-2006: New file, containing all the entries for 2006.
10569 * ChangeLog: Removed all 2006 entries, and changed the reference
10570 to the previous ChangeLog to point to ChangeLog 2006.
10571 * top.c (print_gdb_version): Update copyright year.
10573 2007-01-01 Mark Kettenis <kettenis@gnu.org>
10575 * Makefile.in (remote-sds.o): Remove.
10576 * remote-sds.c: Delete.
10578 For older changes see ChangeLog-2006.
10584 version-control: never