1 2007-12-31 Daniel Jacobowitz <dan@codesourcery.com>
3 * hppa-linux-nat.c: Use hppa-linux-offsets.h.
4 * hppa-linux-offsets.h: New file.
6 2007-12-30 Pedro Alves <pedro_alves@portugalmail.pt>
8 * configure.tgt (*-*-mingw32ce*): Set gdb_osabi to
10 (*-*-mingw* | *-*-cygwin*): Set gdb_osabi to GDB_OSABI_CYGWIN.
12 2007-12-29 Nick Hudson <nick.hudson@dsl.pipex.com>
14 * i386nbsd-tdep.c: Include "trad-frame.h" and "tramp-frame.h"
15 (sigtramp_retcode, i386nbsd_sigtramp_offset, i386nbsd_sigtramp_p):
17 (i386nbsd_mc_reg_offset): New array.
18 (i386nbsd_sigtramp_cache_init): New function.
19 (i386nbsd_sigtramp_sc16, i386nbsd_sigtramp_sc2, i386nbsd_sigtramp_si2)
20 (i386nbsd_sigtramp_si31, i386nbsd_sigtramp_si4): New signal trampoline
22 (i386nbsd_init_abi): Override ABI sigcontext defaults and register
23 new signal frame unwinders
24 * Makefile.in (i386nbsd-tdep.o): Update dependencies.
25 * tramp-frame.h (struct tramp_frame): Allow for 48 instructions
27 2007-12-29 Joel Brobecker <brobecker@adacore.com>
29 * ada-lang.c (_initialize_ada_language): Attach executable_changed
32 2007-12-28 Joel Brobecker <brobecker@adacore.com>
34 * ada-lang.c (ada_evaluate_subexp): Break two large expressions
35 using temporary variables.
37 2007-12-27 Joel Brobecker <brobecker@adacore.com>
39 * ada-lang.c (ada_value_cast): New function, extracted out from
40 the code in ada_evaluate_subexp, case UNOP_CAST. The code handling
41 the obscure case has been removed as we think that it is actually
43 (ada_evaluate_subexp): Add type case when evaluating an OP_DOUBLE
44 or an OP_LONG with a non-null expect_type. Replace extracted-out
45 code with call to new ada_value_cast function.
47 2007-12-27 Paul Hilfinger <hilfinger@adacore.com>
49 * ada-lang.c (ada_evaluate_subexp): Add cases for BINOP_LOGICAL_AND,
50 BINOP_LOGICAL_OR, UNOP_LOGICAL_NOT, BINOP_BITWISE_IOR,
51 BINOP_BITWISE_XOR, BINOP_BITWISE_AND.
52 * language.c (lang_bool_type): Add Ada case.
54 2007-12-26 Joel Brobecker <brobecker@adacore.com>
56 * dwarf2read.c (read_base_type): Fix obvious &&/|| confusion.
58 2007-12-26 Luis Machado <luisgpm@br.ibm.com>
60 * dwarf2-frame.c (execute_cfa_program): Call dwarf2_restore_rule
61 function to handle required actions for the DW_CFA_restore and
62 DW_CFA_restore_extended instructions.
63 (dwarf2_restore_rule): New function.
65 2007-12-24 Joel Brobecker <brobecker@adacore.com>
67 * ada-lang.c (ada_is_character_type): Add recognition of type
68 "Wide_Wide_Character".
70 2007-12-24 Joel Brobecker <brobecker@adacore.com>
72 * dwarf2read.c (read_base_type): Set code to TYPE_CODE_CHAR
73 for char and unsigned char types of Ada compilation units.
74 * ada-lang.c (ada_is_character_type): Always return true if
75 the type code is TYPE_CODE_CHAR.
77 2007-12-23 Joel Brobecker <brobecker@adacore.com>
79 * infrun.c (handle_inferior_event): Remove code that made us
80 stop when stepping into the last line of the current function.
82 2007-12-22 Pierre Muller <muller@ics.u-strasbg.fr>
84 * win32-nat.c: Fix PR gdb/2388.
85 (do_win32_fetch_inferior_registers): Do not overwrite debug register
86 array dr if debug_registers_changed variable is set.
88 2007-12-22 Jan Kratochvil <jan.kratochvil@redhat.com>
90 * dwarf2read.c (scan_partial_symbols partial_die_parent_scope)
91 (add_partial_symbol, pdi_needs_namespace, process_die)
92 (is_type_tag_for_partial, load_partial_dies, new_symbol)
93 (read_type_die, determine_prefix): Extend the current code of
94 `DW_TAG_class_type' also for `DW_TAG_interface_type'.
96 2007-12-21 Paul N. Hilfinger <hilfinger@adacore.com>
98 * ada-lang.h (ada_renaming_category): New enumerated type.
99 (ada_lookup_encoded_symbol): Declare.
100 (ada_parse_renaming): Declare.
101 (ada_renaming_type,ada_is_object_renaming)
102 (ada_simple_renamed_entity): Delete declarations.
103 * ada-lang.c (ada_parse_renaming): New function to concentrate
104 extraction of information from renaming symbols.
105 (parse_old_style_renaming): New function to concentrate
106 extraction of old-style (purely type-based) renaming information.
107 (renaming_is_visible): Rename to...
108 (old_renaming_is_invisible): Rename and change sense of
110 (remove_out_of_scope_renamings): Rename to...
111 (remove_irrelevant_renamings): Renames remove_out_of_scope_renamings
112 and augments with additional logic to handle cases where the same
113 object renaming is encoded both as a reference variable and an
115 (ada_renaming_type,ada_is_object_renaming)
116 (ada_simple_renamed_entity): Delete definitions.
117 (ada_lookup_encoded_symbol): New function factored out of
119 (ada_lookup_symbol): Reimplement to call ada_lookup_encoded_symbol.
120 (wild_match): Don't reject perfect match of prefix.
121 (ada_find_renaming_symbol): Factor old-style renaming logic into
122 find_old_style_renaming_symbol.
123 (find_old_style_renaming_symbol): New name for content of old
124 ada_find_renaming_symbol.
125 (ada_prefer_type): Reimplement not to use ada_renaming_type.
126 * ada-exp.y (write_object_renaming): Change interface. Reimplement
127 to use new arguments and ada_parse_renaming.
128 Correct blocks used to find array index.
129 (write_var_or_type): Reimplement to use ada_parse_renaming.
131 2007-12-21 Denis Pilat <denis.pilat@st.com>
133 * tui/tui-data.h (MAX_LOCATOR_ELEMENT_LEN): Defined to a bigger
134 value or to PATH_MAX when possible.
136 2007-12-20 Joel Brobecker <brobecker@adacore.com>
138 * rs6000-tdep.h: Remove defs.h #include.
139 * Makefile.in (rs6000_tdep_h): Update dependencies.
141 2007-12-20 Thiago Jung Bauermann <bauerman@br.ibm.com>
143 * gdbtypes.c (gdbtypes_post_init): Change names of decimal float types
144 to conform to C extension for decimal float.
145 * c-lang.c (enum c_primitive_types): Add entries for Decimal Floating
147 (enum cplus_primitive_types): Likewise.
148 (c_language_arch_info): Add Decimal Floating Point builtin types to
149 the primitive_type_vector.
150 (cplus_language_arch_info): Likewise.
152 2007-12-20 David Ung <davidu@mips.com>
153 Maciej W. Rozycki <macro@mips.com>
155 * mips-tdep.c (mips_n32n64_push_dummy_call): Sign-extend
156 integers and 32-bit pointers as required by the ABI.
158 2007-12-20 Joel Brobecker <brobecker@adacore.com>
160 * symtab.h: Remove "defs.h" #include.
161 * Makefile.in (symtab_h): Update dependencies.
163 2007-12-19 Joel Brobecker <brobecker@adacore.com>
165 * symtab.h: #include "defs.h".
166 (enum language): Remove opaque declaration.
167 * Makefile.in (symtab_h): Update dependencies.
169 2007-12-19 Joel Brobecker <brobecker@adacore.com>
171 * language.h (enum exp_opcode): Remove commented out forward
173 (op_error): Delete declaration.
175 2007-12-19 Joel Brobecker <brobecker@adacore.com>
177 * infrun.c (handle_inferior_event): Fix spelling in comment.
179 2007-12-18 Daniel Jacobowitz <dan@codesourcery.com>
181 * minsyms.c (lookup_minimal_symbol): Also check the separate
183 (lookup_minimal_symbol_text): Likewise.
184 (lookup_minimal_symbol_solib_trampoline): Likewise.
185 * symtab.c (lookup_global_symbol_from_objfile): Likewise.
187 2007-12-18 Vladimir Prus <vladimir@codesourcery.com>
189 * mi/mi-main.c (mi_cmd_list_features): Announce
190 the 'pending-breakpoints' feature.
192 2007-12-17 Jim Blandy <jimb@codesourcery.com>
194 * dwarf2read.c (dwarf2_add_field): Correctly scale all byte
195 offsets obtained from DW_AT_data_member_location before recording
196 them in FIELD_BITPOS (*fp).
198 * dwarf2read.c (attr_form_is_section_offset): Doc fixes.
200 2007-12-17 Nigel Stephens <nigel@mips.com>
201 Maciej W. Rozycki <macro@mips.com>
203 * utils.c (string_to_core_addr): If the executable format
204 indicates that addresses should be sign-extended and there are
205 only 8 hex digits in the address, then do so.
206 * Makefile.in (utils.o): Depend on $(gdbcore_h).
208 2007-12-17 Chris Dearman <chris@mips.com>
210 * symfile.c (init_filename_language_table): Recognise .sx as
213 2007-12-17 Joel Brobecker <brobecker@adacore.com>
215 * language.h (enum exp_opcode): Comment out this declaration,
216 undoing the previous change.
218 2007-12-17 Luis Machado <luisgpm@br.ibm.com>
220 * breakpoint.c: (watch_command_1): Parse additional optional
221 "thread" parameter to the watchpoint command and set the
222 "thread" member of the breakpoint struct.
224 2007-12-17 Luis Machado <luisgpm@br.ibm.com>
226 * breakpoint.c (bpstat_stop_status): Check an additional
227 condition before evaluating an expression value.
229 2007-12-17 Joel Brobecker <brobecker@adacore.com>
231 * language.h (enum exp_opcode): Add forward declaration.
232 (language_string_char_type, language_lookup_primitive_type_by_name):
233 Move declaration past declaration of language_defn.
235 2007-12-16 Daniel Jacobowitz <dan@codesourcery.com>
236 Joseph Myers <joseph@codesourcery.com>
238 * configure.ac: Check for *-*-solaris2.1[[0-9]]* instead of
239 *-*-solaris2.1[[0-9]].
240 * configure: Regenerate.
241 * procfs.c (proc_set_current_signal): If redelivering a signal,
242 reuse the current siginfo if possible.
244 2007-12-16 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
246 * f-typeprint.c (print_equivalent_f77_float_type): Remove function.
247 (f_type_print_base): Output the type names directly for real and
250 2007-12-16 Vladimir Prus <vladimir@codesourcery.com>
252 * breakpoint.c (bpstat_have_active_hw_watchpoints):
254 (bpstat_stop_status): Remove unused variable
256 * breakpoint.h (bpstat_have_active_hw_watchpoints):
259 2007-12-16 Vladimir Prus <vladimir@codesourcery.com>
261 * target.h (target_pid_or_tid_to_str): Remove.
262 * infrun.c (handle_inferior_event):
263 Use target_pid_to_str instead of
264 target_pid_or_tid_to_str.
265 (normal_stop): Likewise.
267 2007-12-16 Jan Kratochvil <jan.kratochvil@redhat.com>
269 * dwarf2read.c (dwarf_attr_name): Rename `DW_AT_stride_size' to its
270 DWARF3 equivalent `DW_AT_bit_stride'.
271 Rename `DW_AT_stride' to its DWARF3 equivalent `DW_AT_byte_stride'.
273 2007-12-16 Joel Brobecker <brobecker@adacore.com>
275 * mi/mi-main.c: Remove code that was commented out in 1999.
277 2007-12-16 Joel Brobecker <brobecker@adacore.com>
279 * expression.h (parse_expression_in_context): Delete prototype.
280 * parse.c (parse_expression_in_context): Delete.
282 2007-12-14 Vladimir Prus <vladimir@codesourcery.com>
284 Add support for pending breakpoints in MI.
285 * gdb.h (gdb_breakpoint): Add parameter pending.
286 * breakpoint.c (gdb_breakpoint): Add parameter pending.
287 * mi/mi-cmd-break.c (mi_break_insert): Change
288 comment to refer to manual. Add support for
289 the -f flag, for pending breakpoint.
291 2007-12-14 Vladimir Prus <vladimir@codesourcery.com>
293 * breakpoint.c (break_command_really): New, copied
294 from break_command_1. New parameters COND_STRING, THREAD
295 PARSE_CONDITITION_AND_THREAD and PENDING_BREAK_SUPPORT.
296 The previous FLAG parameter split into TEMPFLAG and
298 When PARSE_CONDITION_AND_THREAD is not set, duplicate
299 the passed condition string.
300 (struct captured_breakpoint_args): Remove
301 (do_captured_breakpoint): Remove.
302 (break_command_1): Relay to break_command_really.
303 (gdb_breakpoint): Relay to break_command_really.
305 2007-12-13 Michael Snyder <msnyder@specifix.com>
307 * mips-linux-tdep.c (mips64_fill_gregset): Remove unused variable.
309 2007-12-13 Jim Blandy <jimb@codesourcery.com>
311 * dwarf2read.c (attr_form_is_constant): New function.
312 (dwarf2_add_field): Use it and attr_form_is_section_offset to
313 recognize DW_AT_data_member_location attributes. Use
314 dwarf2_get_attr_constant_value when the attribute is a constant.
316 * dwarf2read.c (attr_form_is_section_offset): New function.
317 (dwarf_add_member_fn, read_common_block, read_partial_die)
318 (dwarf2_symbol_mark_computed): Use it, instead of writing it out.
320 2007-12-12 Jim Blandy <jimb@codesourcery.com>
322 Remove unused support for target-based exception catching.
323 * target.h (struct target_ops): Delete
324 to_enable_exception_callback and to_get_current_exception_event
326 (target_enable_exception_callback)
327 (target_get_current_exception_event): Delete macros.
328 * target.c (update_current_target): Remove code to inherit and
329 default those members.
330 (debug_to_enable_exception_callback)
331 (debug_to_get_current_exception_event): Delete functions.
332 (setup_target_debug): Don't install those methods.
333 * inf-child.c (inf_child_enable_exception_callback)
334 (inf_child_get_current_exception_event): Delete dummy functions.
335 (inf_child_target): Don't install them in the target vector.
336 * breakpoint.h (enum bptype): Delete bp_catch_catch,
338 * breakpoint.c (cover_target_enable_exception_callback)
339 (ep_is_exception_catchpoint, create_exception_catchpoint): Delete
341 (insert_bp_location, update_breakpoints_after_exec)
342 (remove_breakpoint, ep_is_catchpoint, print_it_typical)
343 (bpstat_stop_status, bpstat_what)
344 (bpstat_get_triggered_catchpoints, print_one_breakpoint_location)
345 (user_settable_breakpoint, allocate_bp_location)
346 (disable_watchpoints_before_interactive_call_start)
347 (enable_watchpoints_after_interactive_call_stop, mention)
348 (delete_breakpoint, breakpoint_re_set_one, disable_command)
349 (enable_command): Remove exception catchpoint cases.
350 (catch_exception_command_1): Don't try target-based exception
352 * stack.c (catch_info): Call print_frame_label_vars
355 2007-12-12 Nigel Stephens <nigel@mips.com>
356 Maciej W. Rozycki <macro@mips.com>
358 * remote-mips.c (mips_load): Use regcache_set_valid_p() instead
359 of setting deprecated_register_valid array directly.
361 2007-12-07 Maciej W. Rozycki <macro@mips.com>
363 * mips-tdep.c (extended_offset): Fix a comment.
365 2007-12-07 Maciej W. Rozycki <macro@mips.com>
367 * target.c (update_current_target): Inherit to_log_command.
368 * target.h (struct target_ops). Add to_log_command.
369 (target_log_command): New macro.
370 * top.c (execute_command): Call target_log_command() rather than
371 serial_log_command().
372 * monitor.c (init_base_monitor_ops): Initialize to_log_command.
373 * remote-m32r-sdi.c (init_m32r_ops): Likewise.
374 * remote-mips.c (_initialize_remote_mips): Likewise.
375 * remote.c (init_remote_ops): Likewise.
377 2007-12-06 Daniel Jacobowitz <dan@codesourcery.com>
379 * infrun.c (init_wait_for_inferior): Reset target_last_wait_ptid.
380 (handle_inferior_event): Clear stop_stack_dummy earlier.
382 2007-12-06 Jim Blandy <jimb@codesourcery.com>
384 * addrmap.c (addrmap_splay_tree_remove): New function.
385 (addrmap_mutable_set_empty): Use it.
387 * addrmap.c, addrmap.h: Update to GPLv3.
389 * addrmap.c (struct addrmap): Make the referenced function table
391 (addrmap_fixed_funcs, addrmap_mutable_funcs): Declare const.
392 Don't use designated initializers.
394 * addrmap.c (addrmap_fixed_create_fixed, addrmap_mutable_find)
395 (addrmap_mutable_relocate): Use internal_error, not abort.
397 * NEWS: Mention support for non-contiguous lexical blocks and
400 2007-12-06 Markus Deuling <deuling@de.ibm.com>
402 * gdbarch.sh (stab_reg_to_regnum, dwarf_reg_to_regnum)
403 ( dwarf2_reg_to_regnum, sdb_reg_to_regnum, ecoff_reg_to_regnum): Add
404 gdbarch as parameter.
405 * gdbarch.{c,h}: Regenerate.
407 * xtensa-tdep.c (xtensa_reg_to_regnum): Add gdbarch as parameter.
408 Replace current_gdbarch by gdbarch.
409 * s390-tdep.c (s390_dwarf_reg_to_regnum): Likewise.
410 * rs6000-tdep.c (rs6000_stab_reg_to_regnum)
411 (rs6000_dwarf2_reg_to_regnum): Likewise.
412 * mips-tdep.c (mips_stab_reg_to_regnum)
413 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Likewise.
414 * mep-tdep.c (mep_debug_reg_to_regnum): Likewise.
415 * m32c-tdep.c (m32c_debug_info_reg_to_regnum): Likewise.
416 * i386-tdep.c (i386_dbx_reg_to_regnum)
417 (i386_svr4_reg_to_regnum): Likewise
418 * h8300-tdep.c (h8300s_dbg_reg_to_regnum)
419 (h8300_dbg_reg_to_regnum): Likewise.
420 * amd64-tdep.c (amd64_dwarf_reg_to_regnum): Likewise.
421 * arch-utils.c (no_op_reg_to_regnum): Likewise.
422 * arch-utils.h (no_op_reg_to_regnum): Likewise.
423 * arm-tdep.c (arm_dwarf_reg_to_regnum): Likewise.
424 * cris-tdep.c (cris_dwarf2_reg_to_regnum): Likewise.
425 * hppa-tdep.c (hppa64_dwarf_reg_to_regnum): Likewise.
426 * ia64-tdep.c (ia64_dwarf_reg_to_regnum): Likewise.
427 * m68k-tdep.c (m68k_dwarf_reg_to_regnum): Likewise.
429 2007-12-06 Vladimir Prus <vladimir@codesourcery.com>
431 Localize infrun use of remove_breakpoints.
432 * infrun.c (handle_inferior_event): Remove
433 calls to remove_breakpoints, except where needed to
434 communicate change of breakpoint locations to inferior.
435 (keep_going): If steppping over breakpoint, remove
438 2007-12-06 Vladimir Prus <vladimir@codesourcery.com>
440 Clarify infrun variable naming.
441 * infrun.c (trap_expected): Rename
442 to stepping_over_breakpoint. Document.
443 (stepping_past_breakpoint): Remove.
444 (stepping_past_breakpoint_ptdi): Renamed
445 to deferred_step_ptid.
446 (struct execution_control_state): Rename
447 the another_trap field to stepping_over_breakpoint.
448 (struct inferior_status): Rename the trap_expected
449 field to stepping_over_breakpoint.
450 (clear_proceed_status, proceed)
451 (init_execution_control_state, context_switch)
452 (handle_inferior_event, currently_stepping)
453 (keep_going, save_inferior_status)
454 (restore_inferior_status, prepare_to_proceed): Adjust.
455 * gdbthread.h (struct thread_info): Rename the
456 trap_expected field to stepping_over_breakpoint.
457 * thread.c (load_infrun_state, save_infrun_state):
460 2007-12-06 Pierre Muller <muller@ics.u-strasbg.fr>
462 * win32-nat.c: Allow compilation if CORE_ADDR is 8 byte long.
463 Add "gdb_stdint.h" dependency required for uintptr_t type use.
464 (handle_output_debug_string): Use uintptr_t typecast.
465 (handle_exception): Ditto.
466 (win32_xfer_memory): Ditto.
467 * Makefile.in (win32-nat.o): Add dependency to gdb_stdint header.
469 2007-12-04 Jim Blandy <jimb@codesourcery.com>
471 Support lexical blocks and function bodies that occupy
472 non-contiguous address ranges.
473 * addrmap.c, addrmap.h: New files.
474 * block.h (struct addrmap): New forward declaration.
475 (struct blockvector): New member, 'map'.
476 (BLOCKVECTOR_MAP): New accessor macro.
477 * block.c: #include "addrmap.h"
478 (blockvector_for_pc_sect): If the blockvector we've found has
479 an address map, use it instead of searching the blocks.
480 * buildsym.c: #include "addrmap.h"
481 (pending_addrmap_obstack, pending_addrmap_interesting): New static
483 (really_free_pendings): If we have a pending addrmap, free it too.
484 (record_block_range): New function.
485 (make_blockvector): If we have an interesting pending addrmap,
486 record it in the new blockvector.
487 (start_symtab, buildsym_init): Assert that there is no pending
488 addrmap now; we should have cleaned up any addrmaps we'd built
490 (end_symtab): If there is a pending addrmap left over that didn't
491 get included in the blockvector, free it.
492 * buildsym.h (struct addrmap): New forward declaration.
493 (record_block_range): New prototype.
494 * objfiles.c: #include "addrmap.h".
495 (objfile_relocate): Relocate the blockvector's address map, if
497 * dwarf2read.c (dwarf2_record_block_ranges): New function.
498 (read_func_scope, read_lexical_block_scope): Call it.
499 * Makefile.in (SFILES): Add addrmap.c.
500 (addrmap_h): New header dependency variable.
501 (COMMON_OBS): Add addrmap.o.
502 (addrmap.o): New rule.l
503 (block.o, objfiles.o, buildsym.o): Depend on $(addrmap_h).
505 * block.c (blockvector_for_pc, blockvector_for_pc_sect): Return a
506 pointer to the block, not its index in the blockvector.
507 (block_for_pc_sect): Use the returned block, instead of looking it
509 * block.h (blockvector_for_pc, blockvector_for_pc_sect): Update
511 * breakpoint.c (resolve_sal_pc): Use returned block, instead of
512 looking it up ourselves.
513 * stack.c (print_frame_label_vars): Disable function, which
514 depends on the block's index.
516 * buildsym.c (finish_block): Return the block we've built.
517 * buildsym.h (finish_block): Update prototype.
519 * defs.h (CORE_ADDR_MAX): New constant.
521 2007-12-04 Ulrich Weigand <uweigand@de.ibm.com>
523 * coffread.c (decode_type): Use builtin_type_int32 instead
524 of FT_INTEGER fundamental type for array range index type.
525 (decode_base_type): Use builtin types of current_gdbarch
526 instead of fundamental types.
528 * dwarf2read.c (struct dwarf2_cu): Remove ftypes member.
529 (read_file_scope): Do not initialize ftypes member.
530 (dwarf_base_type, dwarf2_fundamental_types): Remove functions.
531 (read_array_type): Use builtin_type_int32 instead of FT_INTEGER
532 fundamental type for array range index type.
533 (read_tag_string_type): Likewise for string range index type.
534 Also, do not overwrite FT_CHAR type with new string type.
535 (read_base_type): If DW_AT_name is missing, create unnamed type
536 with given properties instead of looking for a fundamental type.
537 Create new types as TYPE_TARGET_TYPE for DW_ATE_address and
538 DW_ATE_complex_float types.
539 (read_subrange_type): Create new type to represent missing
540 DW_AT_type instead of looking for a fundamental type.
541 (die_type): Use builtin type to represent "void" instead of
542 looking for a fundamental type.
544 * stabsread.c (define_symbol): Use builtin types to represent
545 'r' and 'i' floating-point and integer constants.
547 * gdbtypes.c (lookup_fundamental_type): Remove.
548 * gdbtypes.h (lookup_fundamental_type): Remove prototype.
549 (FT_VOID, FT_BOOLEAN, FT_CHAR, FT_SIGNED_CHAR, FT_UNSIGNED_CHAR,
550 FT_SHORT, FT_SIGNED_SHORT, FT_UNSIGNED_SHORT, FT_INTEGER,
551 FT_SIGNED_INTEGER, FT_UNSIGNED_INTEGER, FT_LONG, FT_SIGNED_LONG,
552 FT_UNSIGNED_LONG, FT_LONG_LONG, FT_SIGNED_LONG_LONG,
553 FT_UNSIGNED_LONG_LONG, FT_FLOAT, FT_DBL_PREC_FLOAT, FT_EXT_PREC_FLOAT,
554 FT_COMPLEX, FT_DBL_PREC_COMPLEX, FT_EXT_PREC_COMPLEX, FT_STRING,
555 FT_FIXED_DECIMAL, FT_FLOAT_DECIMAL, FT_BYTE, FT_UNSIGNED_BYTE,
556 FT_TEMPLATE_ARG, FT_DECFLOAT, FT_DBL_PREC_DECFLOAT,
557 FT_EXT_PREC_DECFLOAT, FT_NUM_MEMBERS): Remove macros.
558 * objfiles.c (struct objfile): Remove fundamental_types member.
559 * symfile.c (reread_symbols): Do not clear fundamental_types.
561 * language.h (struct language_defn): Remove la_fund_type member.
562 (create_fundamental_type): Remove.
563 * language.c (unk_lang_create_fundamental_type): Remove.
564 (unknown_language_defn, auto_language_defn,
565 local_language_defn): Adapt initializer.
566 * ada-lang.c (ada_create_fundamental_type): Remove.
567 (ada_language_defn): Adapt initializer.
568 * c-lang.h (c_create_fundamental_type): Remove prototype.
569 * c-lang.c (c_create_fundamental_type): Remove.
570 (c_language_defn, cplus_language_defn, asm_language_defn,
571 minimal_language_defn): Adapt initializer.
572 * f-lang.c (f_create_fundamental_type): Remove.
573 (f_language_defn): Adapt initializer.
574 * jv-lang.c (java_create_fundamental_type): Remove.
575 (java_language_defn): Adapt initializer.
576 * m2-lang.c (m2_create_fundamental_type): Remove.
577 (m2_language_defn): Adapt initializer.
578 * objc-lang.c (objc_create_fundamental_type): Remove.
579 (objc_language_defn): Adapt initializer.
580 * p-lang.h (pascal_create_fundamental_type): Remove prototype.
581 * p-lang.c (pascal_create_fundamental_type): Remove.
582 (pascal_language_defn): Adapt initializer.
583 * scm-lang.c (scm_language_defn): Adapt initializer.
585 2007-12-04 Maciej W. Rozycki <macro@mips.com>
587 * features/mips-cpu.xml: Specify "regnum" for "r0" explicitly.
588 * features/mips64-cpu.xml: Likewise.
589 * features/mips-fpu.xml: Specify "regnum" for "f0" explicitly.
590 * features/mips64-fpu.xml: Likewise.
591 * features/mips-linux.c: Regenerate.
592 * features/mips64-linux.c: Regenerate.
594 2007-12-04 Maciej W. Rozycki <macro@mips.com>
596 * target.h (target_find_new_threads): Fix definition.
598 2007-12-02 Pierre Muller <muller@ics.u-strasbg.fr>
600 * win32-nat.c (win32_resume): Set the trace bit
601 in the thread identified by inferior_ptid.
604 2007-12-02 Pierre Muller <muller@ics.u-strasbg.fr>
606 * win32-nat.c (open_process_used): New static variable.
607 (win32_init_thread_list): Remove call to CloseHandle for thread.
608 (win32_delete_thread): Ditto.
609 (fake_create_process): Set open_process_used if OpenProcess call is
611 (get_win32_debug_event): Do not close process handle.
612 (do_initial_win32_stuff): Set open_process_used to zero.
613 (win32_mourn_inferior): Call CloseHandle for current_process_handle if
614 open_process_used is set.
615 (win32_kill_inferior): Do not close process and main_thread handles.
617 2007-11-30 Daniel Jacobowitz <dan@codesourcery.com>
619 * remote.c (remote_cmdlist): New variable.
620 (PACKET_vFile_open, PACKET_vFile_pread, PACKET_vFile_pwrite)
621 (PACKET_vFile_close, PACKET_vFile_unlink): New constants.
622 (remote_buffer_add_string, remote_buffer_add_bytes)
623 (remote_buffer_add_int, remote_hostio_parse_result)
624 (remote_hostio_send_command, remote_hostio_open, remote_hostio_pwrite)
625 (remote_hostio_pread, remote_hostio_close, remote_hostio_unlink)
626 (remote_fileio_errno_to_host, remote_hostio_error, fclose_cleanup)
627 (remote_hostio_close_cleanup, remote_file_put, remote_file_get)
628 (remote_file_delete, remote_put_command, remote_get_command)
629 (remote_delete_command, remote_command): New functions.
630 (_initialize_remote): Register new packets and commands.
631 * Makefile.in (gdb_fileio_h): New variable.
633 (SUBDIR_MI_OBS): Add mi-cmd-target.o.
634 (SUBDIR_MI_SRCS): Add mi/mi-cmd-target.c.
635 (mi-cmd-target.o): New rule.
636 * mi/mi-cmd-target.c: New file.
637 * mi/mi-cmds.c (mi_cmds): Add target-file-delete, target-file-get,
639 * mi/mi-cmds.h (mi_cmd_target_file_get, mi_cmd_target_file_put)
640 (mi_cmd_target_file_delete): Declare.
641 * remote.h (remote_file_put, remote_file_get, remote_file_delete):
643 * NEWS: Describe new file transfer support.
645 2007-11-30 Vladimir Prus <vladimir@codesourcery.com>
647 * infrun.c (handle_inferior_event): Don't
648 ignore beakpoints if trap_expected is set.
650 2007-11-30 Vladimir Prus <vladimir@codesourcery.com>
652 Make insert_breakpoints return void.
653 * breakpoint.h (insert_breakpoints): Change
655 * breakpoint.c (insert_breakpoints): Change
656 return type to void. Rename local return_val
658 * infrun.c (keep_going): Instead of checking
659 return value from insert_breakpoints, catch exception.
661 2007-11-29 Vladimir Prus <vladimir@codesourcery.com>
663 Stop infrun from tracking breakpoint insertion status.
665 The checks of breakpoints_inserted before calling
666 remove_breakpoints are removed, as remove_breakpoint
667 won't touch uninserted breakpoints. In a number of places,
668 we're interested if a breakpoint is inserted at particular
669 PC, and we now use breakpoint_inserted_here_p. In a few
670 places, insert_breakpoints can be called unconditionally,
671 since it won't try to insert already inserted breakpoint.
673 * breakpoint.h (regular_breakpoint_inserted_here_p): New
675 * breakpoint.c (regular_breakpoint_inserted_here_p): New.
676 (breakpoint_inserted_here_p): Use
677 regular_breakpoint_inserted_here_p.
678 * infrun.c (breakpoints_inserted): Remove.
679 (resume): Don't check for breakpoints_inserted before
680 remove_hw_watchpoints. Use breakpoint_inserted_here_p.
681 (proceed, init_wait_for_inferior): Don't set breakpoints_inserted.
682 (handle_inferior_event): Don't use breakpoints_inserted.
683 Use breakpoints_meant_to_be_inserted and
684 breakpoints_inserted_here_p.
685 (insert_step_resume_breakpoint_at_sal, keep_going): Use
686 breakpoints_meant_to_be_inserted. Don't set breakpoints_inserted.
687 (normal_stop): Don't check for breakpoints_inserted. Don't
688 set breakpoints_inserted.
689 (keep_going): Don't check for breakpoints_inserted.
690 (insert_step_resume_breakpoint_at_sal): Don't insert
693 2007-11-28 Jim Blandy <jimb@codesourcery.com>
695 * breakpoint.c (watch_command_1): When the watchpoint isn't local
696 to any frame, initialize watchpoint_frame using null_frame_id, not
699 2007-11-28 Vladimir Prus <vladimir@codesourcery.com>
701 * infrun.c (resume): Set right thread even if
702 stepping over breakpoint using software single step.
704 2007-11-28 Nick Roberts <nickrob@snap.net.nz>
706 * mi/mi-cmd-var.c (print_varobj): Revert change from 2007-08-31.
707 (mi_print_value_p): Guard against type = NULL.
709 2007-11-27 Thiago Jung Bauermann <bauerman@br.ibm.com>
711 * dfp.c (decimal_from_string): Remove superfluous newline from
713 (decimal_to_string): Likewise.
714 * printcmd.c (printf_command): Change string buffer to use
715 MAX_DECIMAL_STRING constant.
716 * value.c (value_from_decfloat): Likewise.
718 2007-11-27 Ulrich Weigand <uweigand@de.ibm.com>
720 * Makefile.in (ALL_TARGET_OBS): Remove object files that require
721 64-bit CORE_ADDR and BFD support, move them to ...
722 (ALL_64_TARGET_OBS): ... this new variable.
723 * configure.ac: Check for --enable-64-bit-bfd option. Only add
724 64-bit targets with --enable-targets=all if BFD supports 64-bit.
725 * configure: Regenerate.
727 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Do not claim
728 all elf32-i386 executables, only cygwin core files.
730 2007-11-25 Jan Kratochvil <jan.kratochvil@redhat.com>
732 * dwarf2read.c (dwarf2_get_pc_bounds): Moved the `DW_AT_ranges' parsing
733 code with its variables OBJFILE, CU_HEADER and OBFD into ...
734 (dwarf2_ranges_read): ... a new function.
735 (read_partial_die): Implemented the parsing of `DW_AT_ranges'.
737 2007-11-24 Pedro Alves <pedro_alves@portugalmail.pt>
739 * win32-nat.c (DR6_CLEAR_VALUE): New define.
740 (thread_info_struct): Rename suspend_count to suspended, to be
742 (thread_rec): Only suspend the thread if it wasn't suspended by
743 gdb before. Warn if suspending failed.
744 (win32_add_thread): Set Dr6 to DR6_CLEAR_VALUE.
745 (win32_continue): Set Dr6 to DR6_CLEAR_VALUE. Update usage of the
746 `suspended' flag. Do ContinueDebugEvent after resuming the
747 suspended threads, not before. Set threads' contexts before
748 resuming them, not after.
749 (win32_resume): Set Dr6 to DR6_CLEAR_VALUE.
751 2007-11-23 Vladimir Prus <vladimir@codesourcery.com>
753 * breakpoint.c (insert_breakpoints)
754 (insert_bp_location): Remove stale comments.
756 2007-11-23 Maciej W. Rozycki <macro@mips.com>
758 * mips-linux-tdep.h: Fix some formatting.
760 2007-11-21 Markus Deuling <deuling@de.ibm.com>
762 * stack.c (print_args_stub): Use get_frame_arch to get at the current
763 architecture and replace current_gdbarch.
764 (frame_info): Likewise.
766 2007-11-21 Nick Roberts <nickrob@snap.net.nz>
768 * varobj.c (c_variable_editable, cplus_variable_editable)
769 (java_variable_editable, variable_editable): Delete.
770 (varobj_editable_p): Replace above functions with one language
771 independent function. Check for an lvalue.
772 (varobj_get_attributes, varobj_set_value): Use varobj_editable_p.
773 (struct language_specific): Delete variable_editable field.
775 * mi-cmd-var.c (mi_cmd_var_assign): Simplify.
777 * varobj.h: Add extern for varobj_editable_p.
779 2007-11-20 Vladimir Prus <vladimir@codesourcery.com>
781 Remove unused breakpoint fields.
782 * breakpoint.h (struct breakpoint): Remove
783 from_tty and flag fields.
784 * breakpoint.c (break_command_1): Don't set
785 from_tty and flag field set of breakpoint.
786 (create_ada_exception_breakpoint): Don't set
789 2007-11-20 David Ung <davidu@mips.com>
790 Maciej W. Rozycki <macro@mips.com>
792 * mips-tdep.c (mips16_scan_prologue): Handle the MIPS16e SAVE
795 2007-11-20 Vladimir Prus <vladimir@codesourcery.com>
797 * infrun.c (resume): Clarify logic that
798 decides if a single thread must be resumed. Add
801 2007-11-20 Vladimir Prus <vladimir@codesourcery.com>
803 * breakpoint.c (disable_breakpoints_in_unloaded_shlib):
806 2007-11-19 Markus Deuling <deuling@de.ibm.com>
808 * gdbarch.sh (register_sim_regno): Add gdbarch as parameter.
809 * gdbarch.{c,h}: Regenerate.
811 * arch-utils.h (legacy_register_sim_regno): Add gdbarch as parameter.
812 * score-tdep.c (score_register_sim_regno): Likewise.
813 * sim-regno.h (one2one_register_sim_regno): Likewise.
815 * arch-utils.c (legacy_register_sim_regno): Add gdbarch as parameter.
816 Replace current_gdbarch by gdbarch.
817 * sh-tdep.c (sh_sh2a_register_sim_regno)
818 (sh_dsp_register_sim_regno): Likewise.
819 * rs6000-tdep.c (rs6000_register_sim_regno): Likewise.
820 * mips-tdep.c (mips_register_sim_regno): Likewise.
821 * m32c-tdep.c (m32c_register_sim_regno): Likewise.
822 * frv-tdep.c (frv_register_sim_regno): Likewise.
823 * arm-tdep.c (arm_register_sim_regno): Likewise.
824 * remote-sim.c (one2one_register_sim_regno): Likewise.
826 2007-11-16 Ulrich Weigand <uweigand@de.ibm.com>
828 * configure.ac (--enable-targets): New configure option.
829 Collect gdb_target_obs of multiple targets into TARGET_OBS.
830 Call configure.tgt multiple times, using $targ as operand.
831 * configure.tgt: Operate on $targ instead of $target.
832 * configure: Regenerate.
833 * Makefile.in (ALL_TARGET_OBS): Define.
835 * NEWS: Mention --enable-targets option.
837 2007-11-16 Ulrich Weigand <uweigand@de.ibm.com>
839 * mips-tdep.c (show_mipsfpu_command): Do not crash if called when
840 current architecture is not MIPS.
842 2007-11-16 Ulrich Weigand <uweigand@de.ibm.com>
844 * cli/cli-setshow.c (do_setshow_command): Use dynamically sized buffer
845 to construct error message if no argument was supplied.
847 2007-11-16 Ulrich Weigand <uweigand@de.ibm.com>
849 * i386nbsd-tdep.c (i386nbsd_aout_supply_regset): Remove.
850 (i386nbsd_aout_regset_from_core_section): Likewise.
851 (i386nbsd_aout_init_abi): Likewise.
852 (_initialize_i386nbsd_tdep): Do not register i386nbsd_aout_init_abi.
854 * vaxnbsd-tdep.c (vaxnbsd_aout_init_abi): Remove.
855 (_initialize_vaxnbsd_tdep): Do not register vaxnbsd_aout_init_abi.
857 2007-11-16 Ulrich Weigand <uweigand@de.ibm.com>
859 * amd64fsdb-tdep.c (amd64fbsd_sigtramp_start_addr): Use ULL suffix.
860 (amd64fbsd_sigtramp_end_addr): Likewise.
862 * iq2000-tdep.c (iq2000_pointer_to_address): Fix argument type.
863 (iq2000_address_to_pointer): Likewise.
864 (iq2000_frame_prev_register): Likewise.
865 (iq2000_extract_return_value): Use regcache_cooked_read_unsigned
866 instead of regcache_cooked_read into CORE_ADDR variable.
867 (iq2000_return_value): Fix argument types.
869 * m32r-rom.c (m32r_load_section): Fix printf argument type.
870 (m32r_load): Likewise.
872 * m68kbsd-tdep.c: Include "gdbtypes.h".
873 * Makefile.in: Update dependencies.
875 * mn10300-tdep.c (mn10300_frame_unwind_cache): Fix aliasing violation.
877 * nto-tdep.c (LM_ADDR): Do not refer to no-longer-existing
878 lmo->l_addr_size element.
880 * remote-m32r-sdi.c (m32r_xfer_memory): Use paddr to print address.
881 (m32r_insert_breakpoint): Likewise.
882 (m32r_remove_breakpoint): Likewise.
883 (m32r_insert_watchpoint): Likewise.
884 (m32r_remove_watchpoint): Likewise.
885 (m32r_load): Fix printf argument type.
887 * xtensa-tdep.c (xtensa_regset_from_core_section): Fix printf
889 (xtensa_frame_this_id): Do not cast pointers to "int" for output.
890 (xtensa_frame_prev_register): Likewise.
891 (xtensa_push_dummy_call): Likewise.
893 2007-11-16 Ulrich Weigand <uweigand@de.ibm.com>
895 * config/alpha/alpha-linux.mt: Remove file.
896 * config/alpha/alpha.mt: Remove file.
897 * config/alpha/alpha-osf1.mt: Remove file.
898 * config/alpha/fbsd.mt: Remove file.
899 * config/alpha/nbsd.mt: Remove file.
900 * config/alpha/obsd.mt: Remove file.
901 * config/arm/embed.mt: Remove file.
902 * config/arm/linux.mt: Remove file.
903 * config/arm/nbsd.mt: Remove file.
904 * config/arm/obsd.mt: Remove file.
905 * config/arm/wince.mt: Remove file.
906 * config/avr/avr.mt: Remove file.
907 * config/cris/cris.mt: Remove file.
908 * config/frv/frv.mt: Remove file.
909 * config/h8300/h8300.mt: Remove file.
910 * config/i386/cygwin.mt: Remove file.
911 * config/i386/fbsd64.mt: Remove file.
912 * config/i386/fbsd.mt: Remove file.
913 * config/i386/i386gnu.mt: Remove file.
914 * config/i386/i386.mt: Remove file.
915 * config/i386/i386sol2.mt: Remove file.
916 * config/i386/linux64.mt: Remove file.
917 * config/i386/linux.mt: Remove file.
918 * config/i386/mingw.mt: Remove file.
919 * config/i386/nbsd64.mt: Remove file.
920 * config/i386/nbsd.mt: Remove file.
921 * config/i386/nto.mt: Remove file.
922 * config/i386/obsd64.mt: Remove file.
923 * config/i386/obsd.mt: Remove file.
924 * config/i386/sol2-64.mt: Remove file.
925 * config/ia64/ia64.mt: Remove file.
926 * config/ia64/linux.mt: Remove file.
927 * config/iq2000/iq2000.mt: Remove file.
928 * config/m32c/m32c.mt: Remove file.
929 * config/m32r/linux.mt: Remove file.
930 * config/m32r/m32r.mt: Remove file.
931 * config/m68hc11/m68hc11.mt: Remove file.
932 * config/m68k/linux.mt: Remove file.
933 * config/m68k/monitor.mt: Remove file.
934 * config/m68k/nbsd.mt: Remove file.
935 * config/m68k/obsd.mt: Remove file.
936 * config/m88k/obsd.mt: Remove file.
937 * config/mep/mep.mt: Remove file.
938 * config/mips/embed.mt: Remove file.
939 * config/mips/irix5.mt: Remove file.
940 * config/mips/irix6.mt: Remove file.
941 * config/mips/linux.mt: Remove file.
942 * config/mips/nbsd.mt: Remove file.
943 * config/mips/obsd64.mt: Remove file.
944 * config/mn10300/linux.mt: Remove file.
945 * config/mn10300/mn10300.mt: Remove file.
946 * config/mt/mt.mt: Remove file.
947 * config/pa/hppahpux.mt: Remove file.
948 * config/pa/hppa.mt: Remove file.
949 * config/pa/linux.mt: Remove file.
950 * config/pa/obsd.mt: Remove file.
951 * config/powerpc/aix.mt: Remove file.
952 * config/powerpc/linux.mt: Remove file.
953 * config/powerpc/nbsd.mt: Remove file.
954 * config/powerpc/obsd.mt: Remove file.
955 * config/powerpc/ppc-eabi.mt: Remove file.
956 * config/s390/s390.mt: Remove file.
957 * config/score/embed.mt: Remove file.
958 * config/sh/embed.mt: Remove file.
959 * config/sh/linux.mt: Remove file.
960 * config/sh/nbsd.mt: Remove file.
961 * config/sh/obsd.mt: Remove file.
962 * config/sh/sh64.mt: Remove file.
963 * config/sparc/embed.mt: Remove file.
964 * config/sparc/fbsd.mt: Remove file.
965 * config/sparc/linux64.mt: Remove file.
966 * config/sparc/linux.mt: Remove file.
967 * config/sparc/nbsd64.mt: Remove file.
968 * config/sparc/nbsd.mt: Remove file.
969 * config/sparc/obsd64.mt: Remove file.
970 * config/sparc/obsd.mt: Remove file.
971 * config/sparc/sol2-64.mt: Remove file.
972 * config/sparc/sol2.mt: Remove file.
973 * config/sparc/sparc64.mt: Remove file.
974 * config/sparc/sparc.mt: Remove file.
975 * config/spu/spu.mt: Remove file.
976 * config/v850/v850.mt: Remove file.
977 * config/vax/nbsd.mt: Remove file.
978 * config/vax/obsd.mt: Remove file.
979 * config/vax/vax.mt: Remove file.
980 * config/xstormy16/xstormy16.mt: Remove file.
981 * config/xtensa/xtensa.mt: Remove file.
983 * configure.tgt (gdb_target_cpu): Remove. Do not set anywhere.
984 (gdb_target): Likewise.
985 (gdb_target_obs): Document. Set for every target to contents
986 of TDEPFILES in former .mt makefile fragment.
988 * configure.ac (TARGET_OBS): Define.
989 (target_makefile_frag, gdb_target_cpu): Do not define.
990 * configure: Regenerate.
992 * Makefile.in (MT_FLAGS): Remove.
993 (GLOBAL_CFLAGS): Update.
994 (TARGET_OBS): Substitute from configure.
995 (DEPFILES): Remove TDEPFILES, add TARGET_OBS.
996 (@target_makefile_frag@): Remove.
998 2007-11-16 Ulrich Weigand <uweigand@de.ibm.com>
1000 * config/arm/embed.mt (SIM_OBS, SIM): Remove.
1001 * config/avr/avr.mt (SIM_OBS, SIM): Remove.
1002 * config/frv/frv.mt (SIM_OBS, SIM): Remove.
1003 * config/h8300/h8300.mt (SIM_OBS, SIM): Remove.
1004 * config/iq2000/iq2000.mt (SIM_OBS, SIM): Remove.
1005 * config/m32c/m32c.mt (SIM_OBS, SIM): Remove.
1006 * config/m32r/linux.mt (SIM_OBS, SIM): Remove.
1007 * config/m32r/m32r.mt (SIM_OBS, SIM): Remove.
1008 * config/m68hc11/m68hc11.mt (SIM_OBS, SIM): Remove.
1009 * config/mips/embed.mt (SIM_OBS, SIM): Remove.
1010 * config/mips/linux.mt (SIM_OBS, SIM): Remove.
1011 * config/mips/nbsd.mt (SIM_OBS, SIM): Remove.
1012 * config/mn10300/mn10300.mt (SIM_OBS, SIM): Remove.
1013 * config/powerpc/linux.mt (SIM_OBS, SIM): Remove.
1014 * config/powerpc/nbsd.mt (SIM_OBS, SIM): Remove.
1015 * config/powerpc/ppc-sim.mt: Remove file.
1016 * config/sh/embed.mt (SIM_OBS, SIM): Remove.
1017 * config/sh/linux.mt (SIM_OBS, SIM): Remove.
1018 * config/sh/nbsd.mt (SIM_OBS, SIM): Remove.
1019 * config/sh/sh64.mt (SIM_OBS, SIM): Remove.
1020 * config/sparc/embed.mt (SIM_OBS, SIM): Remove.
1021 * config/v850/v850.mt (SIM_OBS, SIM): Remove.
1022 * config/xstormy16/xstormy16.mt (SIM_OBS, SIM): Remove.
1024 * configure.tgt (gdb_sim): Document variable.
1025 (arm*-*-* | thumb*-*-* | strongarm*-*-* | xscale-*-*): Set it.
1026 (avr-*-*): Likewise.
1027 (frv-*-*): Likewise.
1028 (h8300-*-*): Likewise.
1029 (iq2000-*-*): Likewise.
1030 (m32c-*-*): Likewise.
1031 (m32r*-*-linux*): Likewise.
1032 (m32r*-*-*): Likewise.
1033 (m68hc11*-*-*|m6811*-*-*): Likewise.
1034 (mips*-*-*): Likewise.
1035 (mips*-*-linux*): Likewise.
1036 (mips*-*-netbsd* | mips*-*-knetbsd*-gnu): Likewise.
1037 (mn10300-*-*): Likewise.
1038 (powerpc-*-linux* | powerpc64-*-linux*): Likewise.
1039 (powerpc-*-netbsd* | powerpc-*-knetbsd*-gnu): Likewise.
1040 (powerpc*-*-*): Use ppc-eabi target. Conditionally set gdb_sim.
1042 (sh-*-linux*): Likewise.
1043 (sh*-*-netbsdelf* | sh*-*-knetbsd*-gnu): Likewise.
1044 (sh64-*-elf*): Likewise.
1045 (sparc-*-rtems*): Likewise.
1046 (v850*-*-elf): Likewise.
1047 (xstormy16-*-*): Likewise.
1049 * configure.ac (IGNORE_SIM, IGNORE_SIM_OBS): Do not set.
1050 (SIM, SIM_OBS): Set depending on ${ignore_sim} and ${gdb_sim}.
1051 * configure: Regenerate.
1052 * Makefile.in (SIM, SIM_OBS): Substitute from configure.
1053 (@IGNORE_SIM@, @IGNORE_SIM_OBS@): Remove.
1055 2007-11-16 Ulrich Weigand <uweigand@de.ibm.com>
1057 * configure.tgt (gdb_osabi, build_gdbserver): Comment variables.
1058 (arm*-*-*): Do not set obsolete build_rdi_share variable.
1060 (*-*-freebsd* | *-*-kfreebsd*-gnu): Remove generic case, replace by ...
1061 (alpha*-*-freebsd* | alpha*-*-kfreebsd*-gnu)
1062 (i[34567]86-*-freebsd* | i[34567]86-*-kfreebsd*-gnu)
1063 (sparc*-*-freebsd* | sparc*-*-kfreebsd*-gnu): ... specific cases.
1064 (x86_64-*-freebsd* | x86_64-*-kfreebsd*-gnu): Re-sort.
1066 (xscale-*-*): Merge into arm*-*-* case.
1067 (fido-*-elf*): Merge into m68*-*-elf* case.
1068 (m68*-*-aout*, m68*-*-coff*, m68*-*-elf*, m68*-*-rtems*,
1069 m68*-*-uclinux*): Merge cases.
1070 (powerpc-*-linux*, powerpc64-*-linux*): Merge cases.
1071 (sh-*-coff*, sh-*-elf*): Merge into sh* case.
1073 2007-11-16 Ulrich Weigand <uweigand@de.ibm.com>
1075 * configure.tgt: Reformat main case statement.
1077 2007-11-16 Ulrich Weigand <uweigand@de.ibm.com>
1079 * configure.ac (hostfile, targetfile): Remove.
1080 (GDB_XM_FILE, GDB_TM_FILE): Do not define.
1081 (xm_h, tm_h): Likewise.
1082 (DEPRECATED_TM_FILE, XM_FILE): Do not substitute into Makefile.
1083 * configure, config.in: Regenerate.
1085 * Makefile.in (xm_h, tm_h): Remove. Update dependencies.
1086 (TAGS): Do not consider DEPRECATED_TM_FILE or XM_FILE.
1087 (clean, local-maintainer-clean): Do not remove xm.h or tm.h.
1088 * defs.h: Do not include "xm.h" or "tm.h".
1090 * gdbarch.sh (verify_gdbarch): Do not dump GDB_XM_FILE or GDB_TM_FILE.
1091 * gdbarch.c: Regenerate.
1093 * config/score/embed.mt: Remove obsolete comment.
1095 2007-11-16 Markus Deuling <deuling@de.ibm.com>
1097 * gdbarch.sh (cannot_fetch_register, cannot_store_register): Add gdbarch
1099 * gdbarch.{c,h}: Regenerate.
1101 * alpha-tdep.c (alpha_cannot_fetch_register)
1102 (alpha_cannot_store_register): Add gdbarch as parameter. Replace
1103 current_gdbarch by gdbarch.
1104 * cris-tdep.c (cris_cannot_fetch_register, cris_cannot_store_register)
1105 (crisv32_cannot_fetch_register)
1106 (crisv32_cannot_store_register): Likewise.
1107 * arch-utils.c (cannot_register_not): Likewise.
1108 * arch-utils.h (cannot_register_not): Likewise.
1109 * hppa-tdep.c (hppa32_cannot_store_register)
1110 (hppa32_cannot_store_register, hppa64_cannot_store_register)
1111 (hppa64_cannot_fetch_register): Likewise.
1112 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register)
1113 (mipsnbsd_cannot_store_register): Likewise.
1115 2007-11-16 Markus Deuling <deuling@de.ibm.com>
1117 * m32r-rom.c (m32r_supply_register): Use get_regcache_arch to get at
1118 the current architecture by regcache.
1119 * ppcnbsd-nat.c (ppcnbsd_supply_pcb): Likewise.
1120 * ppc-linux-nat.c (fetch_altivec_register, fetch_spe_register)
1121 (fetch_register, supply_vrregset, fetch_ppc_registers)
1122 (store_altivec_register, store_spe_register, store_register)
1123 (fill_vrregset, store_ppc_registers): Likewise.
1124 * ppcobsd-nat.c (ppcobsd_supply_pcb): Likewise.
1125 * win32-nat.c (do_win32_fetch_inferior_registers)
1126 (do_win32_store_inferior_registers): Likewise.
1127 * procfs.c (procfs_fetch_registers, procfs_store_registers): Likewise.
1128 * remote-m32r-sdi.c (m32r_fetch_registers)
1129 (m32r_store_registers): Likewise.
1130 * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register): Likewise.
1132 * trad-frame.c (trad_frame_alloc_saved_regs): Replace current_gdbarch by
1134 * user-regs.c (user_reg_map_name_to_regnum): Likewise.
1135 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call)
1136 (do_ppc_sysv_return_value, ppc64_sysv_abi_push_dummy_call)
1137 (ppc64_sysv_abi_return_value): Likewise.
1138 * m32c-tdep.c (m32c_register_reggroup_p): Likewise.
1139 * m2-lang.c (build_m2_types): Likewise.
1140 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache
1141 * ppcnbsd-tdep.c (ppcnbsd_sigtramp_cache_init): Likewise.
1142 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_cache): Likewise.
1143 * rs6000-tdep.c (ppc_dwarf2_frame_init_reg): Likewise.
1145 * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Use get_frame_arch to
1146 get at the current architecture by frame_info.
1147 * gcore.c (derive_stack_segment): Likewise.
1149 * shnbsd-nat.c (GETREGS_SUPPLIES): Add gdbarch parameter.
1150 (shnbsd_fetch_inferior_registers, shnbsd_store_inferior_registers): Add
1151 gdbarch to GETREGS_SUPPLIES call.
1153 2007-11-16 Ulrich Weigand <uweigand@de.ibm.com>
1155 * elfread.c (ST_REGULAR, ST_DYNAMIC, ST_SYNTHETIC): New defines.
1156 (elf_symtab_read): Rename DYNAMIC argument to TYPE. Do not access
1157 ELF-private symbol data when processing synthetic symbols. Use
1158 udata.p to get at size of ppc64 synthetic 'dot' symbols.
1159 (elf_symfile_read): Pass TYPE argument to elf_symtab_read.
1161 2007-11-15 Doug Evans <dje@google.com>
1163 * buildsym.h (subfiles): Move ...
1164 * buildsym.c (subfiles): ... to here and make static.
1166 * symmisc.c (maintenance_info_symtabs): Print linetable info.
1168 2007-11-15 Markus Deuling <deuling@de.ibm.com>
1170 * mipsnbsd-tdep.h (SIZEOF_STRUCT_REG, SIZEOF_STRUCT_FPREG): Remove
1172 2007-11-15 Markus Deuling <deuling@de.ibm.com>
1174 * arm-tdep.c (arm_prologue_this_id): Replace LOWEST_PC by its
1175 expression and use get_frame_arch to replace current_gdbarch by frame's
1177 * arm-tdep.h (LOWEST_PC): Remove
1179 2007-11-15 Vladimir Prus <vladimir@codesourcery.com>
1181 Apply const qualifier to some users of bp_location.
1182 * breakpoint.h (struct bpstats): Make
1183 the breakpoint_at field point at const bp_location.
1184 * breakpoint.c (bpstat_alloc): Accept const
1186 (breakpoint_here_p, breakpoint_inserted_here_p)
1187 (software_breakpoint_inserted_here_p)
1188 (breakpoint_thread_match, bpstat_stop_status)
1189 (read_memory_nobpt, bpstat_have_active_hw_watchpoints): Use
1190 const bp_location for iteration.
1191 (print_it_typical, print_bp_stop_message): Use
1192 const bp_location variable.
1194 2007-11-15 Vladimir Prus <vladimir@codesourcery.com>
1196 Make mark_breakpoints_out static.
1197 * breakpoint.h (mark_breakpoints_out): Remove
1199 * breakpoint.c (mark_breakpoints_out): Make static.
1201 2007-11-15 Vladimir Prus <vladimir@codesourcery.com>
1203 Prevent clear_command from directly modifying breakpoint list.
1204 * Makefile.in (breakpoint_h): Update dependency.
1205 * breakpoint.c (clear_command): Do not remove
1206 breakpoints from breakpoint_chain. Collect breakpoints
1207 to delete in a vector.
1208 * breakpoint.h (breakpoint_p): New typedef for pointer to
1209 breakpoint. Register vector of breakpoint_p.
1211 2007-11-15 Vladimir Prus <vladimir@codesourcery.com>
1213 Remove 'run_cleanup'.
1214 * defs.h (do_run_cleanups, make_run_cleanup): Remove
1216 * infcmd.c (run_command_1): Call clear_solib instead
1218 * jv-lang.c (java_rerun_cleanup): Remove, for lack of
1220 * solib.c (solib_cleanup_queued, do_clear_solib): Remove.
1221 (update_solib_lib): Don't setup run cleanup.
1222 (no_shared_libraries): Call clear_solib, not do_clear_solib.
1223 * utils.c (run_cleanup_chain, make_run_cleanup)
1224 (do_run_cleanups): Remove.
1226 2007-11-15 Vladimir Prus <vladimir@codesourcery.com>
1228 Remove CLEAR_SOLIB use.
1229 * corelow.c (core_close): Don't check for CLEAR_SOLIB.
1230 * infcmd.c (attach_command): Likewise.
1232 2007-11-14 Doug Evans <dje@google.com>
1234 * buildsym.c (start_subfile,start_symtab): Doc fixes.
1236 2007-11-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
1238 * tui/tui-data.c (tui_prev_win): Guard against NULL.
1240 2007-11-12 Markus Deuling <deuling@de.ibm.com>
1242 * gdbarch.sh (gdbarch_alloc): Replace current_gdbarch by gdbarch. Remove
1244 (verify_gdbarch, gdbarch_dump): Likewise.
1245 (do_read): Update comment.
1246 (addr_bit, bfd_arch_info, target_desc, long_long_bit, floatformat)
1247 (ptr_bit, name_of_malloc): Replace current_gdbarch by gdbarch.
1248 * gdbarch.{c,h}: Regenerate.
1250 2007-11-12 Markus Deuling <deuling@de.ibm.com>
1252 * xtensa-tdep.c (ARG_1ST): Replace ARGS_FIRST_REG by its expression.
1253 (ARGS_FIRST_REG): Remove.
1254 (areg_numer): New function.
1255 (xtensa_pseudo_register_read, xtensa_frame_prev_register)
1256 (xtensa_extract_return_value, xtensa_store_return_value)
1257 (xtensa_frame_cache): Replace AREG_NUMBER by areg_number.
1258 (AREG_NUMBER): Remove.
1259 (XTENSA_IS_ENTRY, ARG_NOF, ARG_1ST): Add gdbarch as parameter.
1260 (xtensa_frame_cache): Update use of XTENSA_IS_ENTRY.
1261 (xtensa_push_dummy_call): Update use of ARG_NOF.
1262 (extract_call_winsize): Add gdbarch as parameter. Replace
1263 current_gdbarch by gdbarch.
1264 (xtensa_extract_return_value, xtensa_store_return_value): Update call
1265 of extract_call_winsize.
1267 2007-11-10 Joel Brobecker <brobecker@adacore.com>
1269 * NEWS: Add entry for new set/show print frame-args command.
1271 2007-11-09 Kevin Buettner <kevinb@redhat.com>
1273 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Add missing
1274 register number to map. Adjust warning check and error/warning
1275 return value code to match expectations of this function's callers.
1277 2007-11-09 Joel Brobecker <brobecker@adacore.com>
1279 * stack.c (print_this_frame_argument_p): Handle arguments passed
1280 by reference properly.
1282 2007-11-09 Joel Brobecker <brobecker@adacore.com>
1284 * stack.c (print_frame_arguments_choices): New static global.
1285 (print_frame_arguments): Likewise.
1286 (print_this_frame_argument_p): New function.
1287 (print_frame_args): Print the argument value only when appropriate.
1288 (_initialize_task): Add new "set/show print frame-arguments" command.
1290 2007-11-09 Luis Machado <luisgpm@br.ibm.com>
1292 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Move
1293 saved_dabr_value assignment to the correct position.
1295 2007-11-09 Markus Deuling <deuling@de.ibm.com>
1297 * arch-utils.c (generic_convert_register_p): Add gdbarch as parameter.
1298 * arch-utils.h (generic_convert_register_p): Likewise.
1300 2007-11-09 Markus Deuling <deuling@de.ibm.com>
1302 * gdbarch.sh (convert_register_p): Add gdbarch as parameter.
1303 * ia64-tdep.c (ia64_convert_register_p): Likewise.
1304 * i387-tdep.c (i387_convert_register_p): Likewise.
1305 * i387-tdep.h (i387_convert_register_p): Likewise.
1306 * alpha-tdep.c (alpha_convert_register_p): Likewise.
1307 * gdbarch.{c,h}: Regenerate.
1309 * rs6000-tdep.c (rs6000_convert_register_p): Add gdbarch as parameter.
1310 Replace current_gdbarch by gdbarch.
1311 * mips-tdep.c (mips_convert_register_p): Likewise.
1312 * m68k-tdep.c (m68k_convert_register_p): Likewise.
1313 * i386-tdep.c (i386_convert_register_p): Likewise.
1315 2007-11-08 Aleksandar Ristovski <aristovski@qnx.com>
1317 * gdb_string.h: Include <strings.h>.
1319 2007-11-08 Vladimir Prus <vladimir@codesourcery.com>
1321 * breakpoint.c (break_command_1): Remove
1322 pending_bp parameter.
1323 (create_breakpoint): Likewise.
1324 (create_breakpoints): Likewise. Adjust call to
1326 (break_command_1): Likewise. Adjust call to
1328 (do_captured_breakpoint): Adjust call to
1330 (break_command, tbreak_command, hbreak_command)
1331 (stopin_command, stopat_command): Adjust call
1334 2007-11-07 Joseph Myers <joseph@codesourcery.com>
1335 Daniel Jacobowitz <dan@codesourcery.com>
1337 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Right-align
1338 struct values smaller than one doubleword; left-align those
1339 larger. Pass structs containing a single floating-point value in
1342 2007-11-07 Joseph Myers <joseph@codesourcery.com>
1343 Daniel Jacobowitz <dan@codesourcery.com>
1345 * gdbtypes.c (floatformats_ibm_long_double): New.
1346 * gdbtypes.h (floatformats_ibm_long_double): Declare.
1347 * ia64-tdep.c (floatformat_ia64_ext): Update for addition of
1349 * mips-tdep.c (n32n64_floatformat_always_valid,
1350 floatformat_n32n64_long_double_big, floatformats_n32n64_long):
1352 (mips_gdbarch_init): Use floatformats_ibm_long_double instead of
1353 floatformats_n32n64_long.
1354 * ppc-linux-tdep.c (ppc_linux_init_abi): Use 128-bit IBM long
1356 * doublest.c (convert_floatformat_to_doublest,
1357 convert_doublest_to_floatformat): Handle split floating-point
1359 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Handle IBM long
1361 (ppc64_sysv_abi_push_dummy_call): Likewise.
1362 (do_ppc_sysv_return_value): Handle IBM long double return.
1364 2007-11-07 Vladimir Prus <vladimir@codesourcery.com>
1366 Fix crash when a variable object being deleted
1367 has any of its children deleted previously.
1369 * varobj.c (delete_variable_1): Don't recurse
1370 into deleted children.
1372 2007-11-07 Markus Deuling <deuling@de.ibm.com>
1374 * gdbarch.sh (legacy_virtual_frame_pointer): Add gdbarch parameter.
1375 * gdbarch.{c,h}: Regenerate.
1376 * arch-utils.c (legacy_virtual_frame_pointer): Add gdbarch parameter.
1377 Replace current_gdbarch by gdbarch.
1378 * m32c-tdep.c (m32c_virtual_frame_pointer): Likewise.
1379 * mips-tdep.c (mips_virtual_frame_pointer): Likewise.
1380 * spu-tdep.c (spu_virtual_frame_pointer): Likewise.
1382 2007-11-07 Markus Deuling <deuling@de.ibm.com>
1384 * shnbsd-tdep.c (shnbsd_supply_gregset, shnbsd_collect_gregset): Use
1385 get_regcache_arch to get at the current architecture by regcache.
1386 * xstormy16-tdep.c (xstormy16_frame_prev_register): Use get_frame_arch
1387 to get at the current architecture by frame_info.
1388 * fbsd-nat.c (fbsd_make_corefile_notes): Use get_regcache_arch to get
1389 at the current architecture by regcache.
1390 * gnu-v3-abi.c (gnuv3_skip_trampoline): Use get_frame_arch to get at
1391 the current architecture by frame_info.
1392 (build_gdb_vtable_type): Replace current_gdbarch by gdbarch.
1393 * aix-thread.c (special_register_p): Add gdbarch as parameter.
1394 (fetch_regs_kernel_thread, store_regs_kernel_thread): Add gdbarch to
1395 caller of special_register_p.
1397 2007-11-07 Markus Deuling <deuling@de.ibm.com>
1399 * infcall.c (call_function_by_hand): Use get_frame_arch to get at the
1400 current architecture by frame_info.
1402 2007-11-07 Markus Deuling <deuling@de.ibm.com>
1404 * xtensa-tdep.h (SIZEOF_GREGSET, XTENSA_ELF_NGREG) Remove.
1406 2007-11-07 Markus Deuling <deuling@de.ibm.com>
1408 * s390-nat.c (supply_gregset, fill_gregset): Use get_regcache_arch to
1409 get at the current architecture by regcache.
1410 (SUBOFF): Add gdbarch to macro definition.
1412 2007-11-07 Markus Deuling <deuling@de.ibm.com>
1414 * gdbarch.sh (breakpoint_from_pc): Add gdbarch parameter.
1415 * gdbarch.{c,h}: Regenerate.
1417 * xtensa-tdep.c (xtensa_breakpoint_from_pc): Add gdbarch parameter.
1418 Replace current_gdbarch by gdbarch.
1419 * sh-tdep.c (sh_breakpoint_from_pc): Likewise.
1420 * sh64-tdep.c (sh64_breakpoint_from_pc): Likewise.
1421 * score-tdep.c (score_breakpoint_from_pc): Likewise.
1422 * mips-tdep.c (mips_breakpoint_from_pc): Likewise.
1423 * m32r-tdep.c (m32r_breakpoint_from_pc): Likewise.
1424 * iq2000-tdep.c (iq2000_breakpoint_from_pc): Likewise.
1425 * arm-tdep.c (arm_breakpoint_from_pc): Likewise.
1427 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Add gdbarch
1429 * vax-tdep.c (vax_breakpoint_from_pc): Likewise.
1430 * v850-tdep.c (v850_breakpoint_from_pc): Likewise.
1431 * spu-tdep.c (spu_breakpoint_from_pc): Likewise.
1432 * sparc-tdep.c (sparc_breakpoint_from_pc): Likewise.
1433 * s390-tdep.c (s390_breakpoint_from_pc): Likewise.
1434 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Likewise.
1435 * mt-tdep.c (mt_breakpoint_from_pc): Likewise.
1436 * mep-tdep.c (mep_breakpoint_from_pc): Likewise.
1437 * m88k-tdep.c (m88k_breakpoint_from_pc): Likewise.
1438 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Likewise.
1439 * m32c-tdep.c (m32c_breakpoint_from_pc): Likewise.
1440 * ia64-tdep.c (ia64_breakpoint_from_pc): Likewise.
1441 * i386-tdep.c (i386_breakpoint_from_pc): Likewise.
1442 * hppa-tdep.c (hppa_breakpoint_from_pc): Likewise.
1443 * h8300-tdep.c (h8300_breakpoint_from_pc): Likewise.
1444 * frv-tdep.c (frv_breakpoint_from_pc): Likewise.
1445 * cris-tdep.c (cris_breakpoint_from_pc): Likewise.
1446 * avr-tdep.c (avr_breakpoint_from_pc): Likewise.
1447 * alpha-tdep.c (alpha_breakpoint_from_pc): Likewise.
1448 * m68k-tdep.c (m68k_local_breakpoint_from_pc): Likewise.
1450 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Add gdbarch parameter.
1451 Replace current_gdbarch by gdbarch.
1452 (rs6000_software_single_step): Use get_frame_arch to get at the
1453 current architecture by frame_info. Add gdbarch to
1454 rs6000_breakpoint_from_pc call.
1456 2007-11-07 Markus Deuling <deuling@de.ibm.com>
1458 * frv-tdep.c (frv_register_name, frv_check_watch_resources): Replace
1459 macro CURRENT_VARIANT by its expression.
1460 (CURRENT_VARIANT): Remove.
1461 (frv_check_watch_resources): Add gdbarch parameter.
1463 2007-11-07 Markus Deuling <deuling@de.ibm.com>
1465 * MAINTAINERS (Write After Approval): Add self.
1467 2007-11-05 Ulrich Weigand <uweigand@de.ibm.com>
1469 * features/rs6000/power-core.xml: Use uint32 as register type.
1470 * features/rs6000/power64-core.xml: Use uint64/uint32 as register type.
1471 * features/rs6000/powerpc-32.c: Regenerate.
1472 * features/rs6000/powerpc-403.c: Regenerate.
1473 * features/rs6000/powerpc-403gc.c: Regenerate.
1474 * features/rs6000/powerpc-505.c: Regenerate.
1475 * features/rs6000/powerpc-602.c: Regenerate.
1476 * features/rs6000/powerpc-603.c: Regenerate.
1477 * features/rs6000/powerpc-604.c: Regenerate.
1478 * features/rs6000/powerpc-64.c: Regenerate.
1479 * features/rs6000/powerpc-7400.c: Regenerate.
1480 * features/rs6000/powerpc-750.c: Regenerate.
1481 * features/rs6000/powerpc-860.c: Regenerate.
1482 * features/rs6000/powerpc-e500.c: Regenerate.
1484 2007-11-05 Joel Brobecker <brobecker@adacore.com>
1486 * breakpoint.c (set_raw_breakpoint_without_location): Make static.
1488 2007-11-05 Joel Brobecker <brobecker@adacore.com>
1490 * breakpoint.h (create_solib_load_event_breakpoint)
1491 (create_solib_unload_event_breakpoint)
1492 (create_fork_event_catchpoint, create_vfork_event_catchpoint)
1493 (create_exec_event_catchpoint): Delete declaration.
1494 * breakpoint.c (create_solib_load_event_breakpoint)
1495 (solib_load_unload_1, create_solib_unload_event_breakpoint): Delete.
1496 (create_fork_event_catchpoint, create_vfork_event_catchpoint)
1497 (create_exec_event_catchpoint): Make static.
1499 2007-11-05 Joel Brobecker <brobecker@adacore.com>
1501 * breakpoint.h (set_breakpoint_sal): Remove declaration.
1502 * breakpoint.c (set_breakpoint_sal): Delete.
1504 2007-11-05 Joel Brobecker <brobecker@adacore.com>
1506 * buildsym.c (finish_block): Remove "#if 1"/"#endif" brackets.
1507 (make_blockvector): Likewise. Remove FIXME comment.
1509 2007-11-05 Luis Machado <luisgpm@br.ibm.com>
1511 * printcmd.c: (printf_command): Add support for new DFP
1512 modifiers %H, %D and %DD.
1513 * configure.ac: Add check for DECFLOAT printf support.
1514 * configure: Regenerated.
1516 2007-11-02 Ulrich Weigand <uweigand@de.ibm.com>
1518 * gdbtypes.h (struct cplus_struct_type): Remove runtime_ptr member.
1519 (TYPE_RUNTIME_PTR, TYPE_VTABLE, TYPE_HAS_VTABLE,
1520 TYPE_PRIMARY_BASE, TYPE_VIRTUAL_BASE_LIST): Remove macros.
1521 (HP_ACC_VFUNC_START, HP_ACC_VBASE_START, HP_ACC_TYPEINFO_OFFSET,
1522 HP_ACC_TOP_OFFSET_OFFSET): Likewise.
1523 (has_vtable, primary_base_class, virtual_base_list_length,
1524 virtual_base_list_length_skip_primaries, virtual_base_index,
1525 virtual_base_index_skip_primaries, class_index_in_primary_list,
1526 count_virtual_fns): Remove prototypes.
1527 * gdbtypes.c (has_vtable, primary_base_class, current_vbase_list,
1528 virtual_base_list_aux, virtual_base_list, virtual_base_list_length,
1529 virtual_base_list_length_skip_primaries, virtual_base_index,
1530 virtual_base_index_skip_primaries, class_index_in_primary_list,
1531 count_virtual_fns): Remove.
1533 * cp-valprint.c (cp_print_hpacc_virtual_table_entries): Remove.
1534 (hpacc_vtbl_ptr_name, hpacc_vtbl_ptr_type_name): Remove.
1535 (cp_print_value_fields): Remove support for HP aCC vtables.
1536 (cp_print_value): Likewise.
1537 * c-typeprint.c (c_type_print_base): Likewise.
1539 * value.h (find_rt_vbase_offset): Remove prototype.
1540 * valops.c (find_rt_vbase_offset): Remove.
1541 (search_struct_method): Remove support for HP aCC vtables.
1542 (find_method_list): Likewise.
1544 2007-11-02 Ulrich Weigand <uweigand@de.ibm.com>
1546 * language.h (struct language_defn): Remove la_builtin_type_vector
1547 and string_char_type members.
1548 * language.c (language_string_char_type): No longer consult
1549 la->string_char_type.
1550 (language_lookup_primitive_type_by_name): No longer consult
1551 current_language->la_builtin_type_vector.
1553 * language.c (unknown_language_defn, auto_language_defn,
1554 local_language_defn): Adapt initializer.
1555 * ada-lang.c (ada_language_defn): Likewise.
1556 * c-lang.c (c_language_defn, cplus_language_defn, asm_language_defn,
1557 minimal_language_defn): Likewise.
1558 * f-lang.c (f_language_defn): Likewise.
1559 * jv-lang.c (java_language_defn): Likewise.
1560 * m2-lang.c (m2_language_defn): Likewise.
1561 * objc-lang.c (objc_language_defn): Likewise.
1562 * p-lang.c (pascal_language_defn): Likewise.
1563 * scm-lang.c (scm_language_defn): Likewise.
1565 2007-11-02 Markus Deuling <deuling@de.ibm.com>
1567 * frame.c (frame_id_inner): Add gdbarch parameter. Replace
1568 current_gdbarch by gdbarch.
1569 (frame_find_by_id, get_prev_frame_1): Use get_frame_arch to get at the
1570 current architecture by frame_info.
1571 * frame.h (frame_id_inner): Add gdbarch parameter.
1572 * stack.c (return_command): Use get_frame_arch to get at the current
1573 architecture by frame_info. Update call of frame_id_inner.
1574 * infrun.c (handle_inferior_event): Likewise.
1575 * dummy-frame.c (dummy_frame_push): Use get_regcache_arch to get at the
1576 current architecture by regcache. Update call of frame_id_inner.
1578 2007-11-02 Markus Deuling <deuling@de.ibm.com>
1580 * gdbarch.sh (register_name): Add gdbarch parameter.
1581 * gdbarch.{c,h}: Regenerate.
1583 * target-descriptions.c (tdesc_register_name): Add gdbarch parameter.
1584 (tdesc_register_name): Replace current_gdbarch by gdbarch.
1585 * target-descriptions.h (tdesc_register_name): Add gdbarch parameter.
1587 * xstormy16-tdep.c (xstormy16_register_name): Add gdbarch parameter.
1588 * vax-tdep.c (vax_register_name): Add gdbarch parameter.
1589 * spu-tdep.c (spu_register_name): Add gdbarch parameter.
1590 * s390-tdep.c (s390_register_name): Add gdbarch parameter.
1591 * mt-tdep.c (mt_register_name): Add gdbarch parameter.
1592 (mt_registers_info): Replace current_gdbarch by gdbarch.
1593 (mt_register_reggroup_p): Add gdbarch to mt_register_name call.
1594 * mips-tdep.c (mips_register_name): Add gdbarch parameter. Replace
1595 current_gdbarch by gdbarch.
1596 (mips_register_name): Add gdbarch to tdesc_register_name call.
1597 * mep-tdep.c (mep_register_name): Add gdbarch parameter. Replace
1598 current_gdbarch by gdbarch.
1599 (mep_register_reggroup_p): Add gdbarch to mep_register_name call.
1600 * m32c-tdep.c (m32c_register_name): Add gdbarch parameter. Replace
1601 current_gdbarch by gdbarch.
1602 * m88k-tdep.c (m88k_register_name): Add gdbarch parameter.
1603 * m68k-tdep.c (m68k_register_name): Add gdbarch parameter.
1604 * m32r-tdep.c (m32r_register_name): Add gdbarch parameter.
1605 (m32r_frame_unwind_cache): Use get_frame_arch to get at the current
1606 architecture by frame_info.
1607 * iq2000-tdep.c (iq2000_register_name): Add gdbarch parameter.
1608 * ia64-tdep.c (ia64_register_name): Add gdbarch parameter.
1609 * hppa-tdep.c (hppa32_register_name, hppa64_register_name): Add gdbarch
1611 * h8300-tdep.c (h8300_register_name, h8300s_register_name)
1612 (h8300sx_register_name): Add gdbarch parameter.
1613 * cris-tdep.c (cris_register_name, crisv32_register_name): Add
1614 gdbarch parameter. Replace current_gdbarch by gdbarch.
1615 (cris_gdbarch_init): Replace current_gdbarch by gdbarch (comment).
1616 * avr-tdep.c (avr_register_name): Add gdbarch parameter.
1617 * arm-tdep.c (arm_register_name): Add gdbarch paramete
1618 * amd64-tdep.c (amd64_register_name): Add gdbarch parameter. Update
1620 * amd64-tdep.h (amd64_register_name): Add gdbarch parameter.
1621 * amd64-linux-tdep.c (amd64_linux_register_name): Add gdbarch parameter.
1622 * alpha-tdep.c (alpha_register_name): Add gdbarch parameter.
1623 (alpha_cannot_fetch_register, alpha_cannot_store_register): Update call
1624 of alpha_register_name.
1625 * frv-tdep.c (frv_register_name): Add gdbarch parameter.
1626 * i386-tdep.c (i386_register_name): Add gdbarch parameter. Replace
1627 current_gdbarch by gdbarch.
1628 (i386_register_type): Replace ?current_gdbarch by gdbarch.
1629 * i386-tdep.h (i386_register_name): Add gdbarch parameter.
1630 * i386-linux-tdep.c (i386_linux_register_name): Add gdbarch parameter.
1632 * m68hc11-tdep.c (m68hc11_register_name): Add gdbarch parameter.
1633 (m68hc11_register_reggroup_p): Add gdbarch to call of
1634 m68hc11_register_name.
1635 * mn10300-tdep.c (mn10300_generic_register_name, am33_register_name)
1636 (am33_2_register_name): Add gdbarch parameter.
1637 (mn10300_frame_unwind_cache): Use get_frame_arch to get at the current
1638 architecture by frame_info.
1639 (mn10300_dump_tdep): Replace current_gdbarch by gdbarch.
1640 * rs6000-tdep.c (rs6000_register_name): Add gdbarch parameter. Replace
1641 current_gdbarch by gdbarch.
1642 * score-tdep.c (score_register_name): Add gdbarch parameter.
1643 (score_return_value, score_push_dummy_call): Replace current_gdbarch
1645 * sh64-tdep.c (sh64_register_name): Add gdbarch parameter.
1646 (sh64_compact_reg_base_num, sh64_register_convert_to_virtual)
1647 (sh64_register_convert_to_raw, sh64_fv_reg_base_num)
1648 (sh64_dr_reg_base_num, sh64_fpp_reg_base_num): Add gdbarch parameter
1649 and update caller. Replace current_gdbarch by gdbarch.
1650 (sh64_extract_return_value, sh64_store_return_value): Use
1651 get_regcache_arch to get at the current architecture by regcache.
1652 * sh-tdep.c (sh_sh_register_name, sh_sh3_register_name)
1653 (sh_sh3e_register_name, sh_sh2e_register_name, sh_sh2a_register_name)
1654 (sh_sh2a_nofpu_register_name, sh_sh_dsp_register_name)
1655 (sh_sh3_dsp_register_name, sh_sh4_register_name)
1656 (sh_sh4_nofpu_register_name, sh_sh4al_dsp_register_name): Add gdbarch
1658 (fv_reg_base_num, dr_reg_base_num, sh_justify_value_in_reg)
1659 (sh_next_flt_argreg): Add gdbarch parameter and update caller. Replace
1660 current_gdbarch by gdbarch.
1661 (sh_extract_return_value_fpu, sh_store_return_value_fpu): Use
1662 get_regcache_arch to get at the current architecture by regcache.
1663 * sparc-tdep.c (sparc32_register_name): Add gdbarch parameter.
1664 * sparc64-tdep.c (sparc64_register_name): Add gdbarch parameter.
1665 * v850-tdep.c (v850_register_name, v850e_register_name): Add gdbarch
1667 (v850_unwind_sp, v850_unwind_pc): Replace current_gdbarch by gdbarch.
1668 * xtensa-tdep.c (xtensa_register_name): Add gdbarch parameter. Replace
1669 current_gdbarch by gdbarch.
1670 (xtensa_pseudo_register_read, xtensa_pseudo_register_write)
1671 (xtensa_frame_prev_register): Add gdbarch parameter to
1672 xtensa_register_name call.
1674 2007-10-31 Ulrich Weigand <uweigand@de.ibm.com>
1676 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Fall back to
1677 find_solib_trampoline_target if PC is not in .plt section.
1679 2007-10-31 Ulrich Weigand <uweigand@de.ibm.com>
1681 * elfread.c (elf_symtab_read): When constructing a solib trampoline
1682 minimal symbol from an undefined dynamic symbol, use proper section.
1684 2007-10-31 Markus Deuling <deuling@de.ibm.com>
1686 * arm-linux-nat.c (fetch_register, fetch_regs): Use get_regcache_arch
1687 to get at the current architecture by regcache.
1689 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1691 * libunwind-frame.c (libunwind_frame_sniffer)
1692 libunwind_frame_prev_register, libunwind_sigtramp_frame_sniffer)
1693 (libunwind_frame_cache): Use get_frame_arch to get at the current
1694 architecture by frame_info.
1695 (libunwind_get_reg_special): Replace current_gdbarch by gdbarch.
1697 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1699 * iq2000-tdep.c (iq2000_frame_prev_register): Use get_frame_arch to get
1700 at the current architecture by frame_info.
1702 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1704 * inf-child.c (inf_child_fetch_inferior_registers): Use
1705 get_regcache_arch to get at the current architecture by regcache.
1707 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1709 * inf-ptrace.c (inf_ptrace_fetch_registers)
1710 (inf_ptrace_fetch_register, inf_ptrace_store_register)
1711 (inf_ptrace_store_registers): Use get_regcache_arch to get at the
1712 current architecture by regcache.
1714 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1716 * hpux-thread.c (hpux_thread_fetch_registers)
1717 (hpux_thread_store_registers): Use get_regcache_arch to get at the
1718 current architecture by regcache.
1720 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1722 * hppa-tdep.c (hppa_frame_cache): Use get_frame_arch to get at the
1723 current architecture by frame_info.
1725 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1727 * go32-nat.c (fetch_register, go32_fetch_registers, store_register)
1728 (go32_store_registers): Use get_regcache_arch to get at the current
1729 architecture by regcache.
1731 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1733 * gdbtypes.c (gdbtypes_post_init): Replace current_gdbarch by gdbarch.
1735 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1737 * frv-linux-tdep.c (frv_linux_sigtramp_frame_cache): Use get_frame_arch
1738 to get at the current architecture by frame_info.
1740 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1742 * f-lang.c (build_fortran_types): Replace current_gdbarch by gdbarch.
1744 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1746 * core-regset.c (fetch_core_registers): Use get_regcache_arch to get at
1747 the current architecture by regcache.
1749 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1751 * corelow.c (get_core_registers): Use get_regcache_arch to get at the
1752 current architecture by regcache.
1754 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1756 * bsd-uthread.c (bsd_uthread_fetch_registers)
1757 (bsd_uthread_store_registers): Use get_regcache_arch to get at the
1758 current architecture by regcache.
1760 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1762 * avr-tdep.c (avr_frame_unwind_cache, avr_frame_prev_register): Use
1763 get_frame_arch to get at the current architecture by frame_info.
1765 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1767 * arm-tdep.c (arm_get_next_pc): Replace current_gdbarch by gdbarch.
1769 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1771 * armnbsd-nat.c (arm_supply_gregset, fetch_register, store_register)
1772 (store_regs): Use get_regcache_arch to get at the current architecture
1775 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1777 * arm-linux-tdep.c (arm_linux_supply_gregset): Use get_regcache_arch
1778 to get at the current architecture by regcache.
1780 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1782 * alphabsd-nat.c (alphabsd_fetch_inferior_registers)
1783 (alphabsd_store_inferior_registers): Use get_regcache_arch to get at
1784 the current architecture by regcache.
1786 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1788 * ada-lang.c (ada_language_arch_info): Replace current_gdbarch by
1791 2007-10-30 Daniel Jacobowitz <dan@codesourcery.com>
1793 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Check the selected
1794 soft float and vector ABIs. Support the generic vector ABI for
1796 (do_ppc_sysv_return_value): Likewise. Correct argument types and
1798 (ppc64_sysv_abi_push_dummy_call): Assert that floating point is
1800 * ppc-tdep.h (enum powerpc_vector_abi): New.
1801 (struct gdbarch_tdep): Add soft_float and vector_abi.
1802 * rs6000-tdep.c (setpowerpccmdlist, showpowerpccmdlist)
1803 (powerpc_soft_float_global, powerpc_vector_strings)
1804 (powerpc_vector_abi_global, powerpc_vector_abi_string): New.
1805 (rs6000_gdbarch_init): Check for soft-float and vector ABI markings.
1806 (set_powerpc_command, show_powerpc_command, powerpc_set_soft_float)
1807 (powerpc_set_vector_abi): New.
1808 (_initialize_rs6000_tdep): Register "set powerpc" and "show powerpc"
1810 * Makefile.in (elf_ppc_h): New.
1811 (rs6000-tdep.o): Update.
1813 2007-10-29 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
1815 * ppc-linux-tdep.c (ppc32_linux_reg_offsets): Corrected
1816 swapped offsets and VRSAVE offset.
1817 (ppc64_linux_reg_offsets): Corrected swapped offsets.
1818 (ppc32_linux_vrregset): Added.
1819 (ppc_linux_regset_from_core_section): Added support for
1820 .reg-ppc-vmx section.
1821 * ppc-tdep.h (ppc_altivec_support_p): Declare.
1822 (ppc_supply_vrregset): Declare.
1823 (ppc_collect_vrregset): Declare.
1824 * rs6000-tdep.c (ppc_altivec_support_p): Added.
1825 (ppc_supply_vrregset): Added.
1826 (ppc_collect_vrregset): Added.
1827 * corelow.c (get_core_registers): Added support for
1828 .reg-ppc-vmx section.
1830 2007-10-29 Joel Brobecker <brobecker@adacore.com>
1834 2007-10-26 Jim Blandy <jimb@codesourcery.com>
1836 * ax-gdb.h (expr_to_address_and_size): Delete declaration for
1839 * tracepoint.c (tracepoint_operation): Report the deletion event
1840 after we have unlinked the tracepoint from the list, and use the
1841 proper tracepoint number.
1843 * ax-gdb.c (expr_to_agent): Delete unused function.
1844 (expr_to_address_and_size): Delete #if 0'd function.
1845 * ax-gdb.h (expr_to_agent): Delete declaration.
1847 * ax-gdb.c (gen_cast): Remove redundant assignment to
1848 value->type. Doc fix.
1850 * ax-general.c (gen_traced_pop, gen_int_literal)
1851 (gen_usual_arithmetic): Check for typedefs.
1853 2007-10-26 Joel Brobecker <brobecker@adacore.com>
1855 * parse.c (prefixify_expression): Minor reformatting.
1857 2007-10-25 Daniel Jacobowitz <dan@codesourcery.com>
1859 * version.in: Use dot instead of dash.
1861 2007-10-25 Daniel Jacobowitz <dan@codesourcery.com>
1863 * linux-thread-db.c (check_for_thread_db): Only print if info_verbose.
1865 2007-10-25 Pedro Alves <pedro_alves@portugalmail.pt>
1867 * memory-map.c (parse_memory_map): Don't use an empty struct
1870 2007-10-25 Pedro Alves <pedro_alves@portugalmail.pt>
1872 * signals/signals.c (signals): Update pointer to enum
1873 target_signal declaration.
1875 2007-10-25 Wu Zhou <woodzltc@cn.ibm.com>
1876 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
1877 Jim Blandy <jimb@codesourcery.com>
1879 * dwarf2read.c (read_partial_die): check the value
1880 of DW_AT_calling_convention in Fortran programs.
1882 2007-10-25 Wu Zhou <woodzltc@cn.ibm.com>
1883 Thiago Jung Bauermann <bauerman@br.ibm.com>
1885 * c-exp.y (YYSTYPE): Add typed_val_decfloat for decimal
1886 floating point in YYSTYPE union.
1887 (DECFLOAT) Add token and expression element handling code.
1888 (parse_number): Parse DFP constants, which end with suffix 'df',
1889 'dd' or 'dl'. Return DECFLOAT.
1890 * eval.c (evaluate_subexp_standard): Call value_from_decfloat to
1892 * expression.h (enum exp_opcode): Add an opcode (OP_DECFLOAT)
1894 (union exp_element): Add decfloatconst to represent DFP
1895 elements, which is 16 bytes by default.
1896 * parse.c (write_exp_elt_decfloatcst): New function to write a
1897 decimal float const into the expression.
1898 (operator_length_standard): Set operator length for OP_DECFLOAT
1900 * parser-defs.h (write_exp_elt_decfloatcst): Prototype.
1901 * valarith.c (value_neg): Add code to handle the negation
1902 operation of DFP values.
1903 * value.c (value_from_decfloat): New function to get the value
1904 from a decimal floating point.
1905 * value.h (value_from_decfloat): Prototype.
1907 2007-10-25 Wu Zhou <woodzltc@cn.ibm.com>
1908 Thiago Jung Bauermann <bauerman@br.ibm.com>
1910 * c-lang.c (c_create_fundamental_type): Create fundamental
1912 * c-typeprint.c (c_type_print_varspec_prefix): Add
1913 TYPE_CODE_DECFLOAT to no prefix needed case.
1914 (c_type_print_varspec_suffix): Add TYPE_CODE_DECFLOAT to no
1916 * c-valprint.c (c_val_print): Call print_decimal_floating to
1918 * dwarf2read.c (read_base_type): Read DW_ATE_decimal_float
1919 attribute code and return TYPE_CODE_DECFLOAT.
1920 (dwarf_base_type): Set dwarf2_fundamental_type for DFP values.
1921 * gdbtypes.c (gdbtypes_post_init): Initialize builtin_decfloat,
1922 builtin_decdouble and builtin_declong.
1923 * gdbtypes.h (enum type_code): Add TYPE_CODE_DECFLOAT as a
1925 (FT_DECFLOAT, FT_DBL_PREC_DECFLOAT, FT_EXT_PREC_DECFLOAT): New
1926 types, for decimal floating point.
1927 (FT_NUM_MEMBERS): Increment, new types added.
1928 (struct builtin_type): Add builtin_decfloat, builtin_decdouble
1929 and builtin_declong.
1930 * valprint.c (print_decimal_floating): New function to print DFP
1932 * value.h (print_decimal_floating): Prototype.
1934 2007-10-25 Wu Zhou <woodzltc@cn.ibm.com>
1935 Thiago Jung Bauermann <bauerman@br.ibm.com>
1937 * Makefile.in (LIBDECNUMBER_DIR, LIBDECNUMBER, LIBDECNUMBER_SRC
1938 LIBDECNUMBER_CFLAGS): New macros for libdecnumber.
1939 (INTERNAL_CFLAGS_BASE): Add LIBDECNUMBER_CFLAGS in.
1940 (INSTALLED_LIBS): Add -ldecnumber in.
1941 (CLIBS): Add LIBDECNUMBER in.
1942 (decimal128_h, decimal64_h, decimal32_h): New macros for decimal
1944 (dfp_h): New macros for decimal floating point.
1945 (dfp.o): New target.
1946 (COMMON_OBS): Add dfp.o in.
1947 (c-exp.o): Add dfp_h as dependency.
1948 (valprint.o): Add dfp_h as dependency.
1949 (value.o): Add dfp_h as dependency.
1950 * dfp.h: New header file for decimal floating point support in
1952 * dfp.c: New source file for decimal floating point support in
1953 GDB. Implement decimal_from_string and decimal_to_string based
1954 on libdecnumber API.
1955 * configure.ac: Add AC_C_BIGENDIAN test.
1956 * config.in, configure: Regenerate.
1958 2007-10-25 David Ung <davidu@mips.com>
1959 Maciej W. Rozycki <macro@mips.com>
1962 * infcmd.c (registers_info): Check for a user register before
1963 calling target's gdbarch_print_registers_info(). If found to be
1964 so, extract the implicit value of user register and call
1965 print_scalar_formatted().
1966 * Makefile.in: (infcmd.o): Add $(user_regs_h).
1968 2007-10-25 Joel Brobecker <brobecker@adacore.com>
1970 * NEWS: Document status of hppa64-hpux support.
1972 2007-10-24 Ulrich Weigand <uweigand@de.ibm.com>
1974 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets): Call
1975 set_solib_ops to install SVR4 operations.
1976 (_initialize_svr4_solib): Do not set current_target_so_ops.
1978 * config/i386/i386gnu.mh (NATDEPFILES): Move solib.o, solib-svr4.o ...
1979 * config/i386/i386gnu.mt (TDEPFILES): ... to here.
1981 2007-10-24 Ulrich Weigand <uweigand@de.ibm.com>
1983 * solib-svr4.c (legacy_svr4_fetch_link_map_offsets_hook): Remove.
1984 (solib_svr4_init): Initialize fetch_link_map_offsets to NULL.
1985 * solib-svr4.h (legacy_svr4_fetch_link_map_offsets_hook): Remove.
1986 * solib-legacy.c: Remove file.
1988 * config/alpha/alpha-linux.mt (TDEPFILES): Remove solib-legacy.o.
1989 * config/arm/linux.mt (TDEPFILES): Likewise.
1990 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
1991 * config/ia64/linux.mt (TDEPFILES): Likewise.
1992 * config/m32r/linux.mt (TDEPFILES): Likewise.
1993 * config/powerpc/linux.mt (TDEPFILES): Likewise.
1994 * config/s390/s390.mt (TDEPFILES): Likewise.
1996 * alpha-linux-tdep.c (alpha_linux_init_abi): Call
1997 set_solib_svr4_fetch_link_map_offsets.
1998 * i386gnu-tdep.c (i386gnu_init_abi): Likewise.
1999 * ia64-linux-tdep.c (ia64_linux_init_abi): Likewise.
2001 * i386gnu-tdep.c: Include "solib-svr4.h".
2002 * Makefile.in: Update dependencies.
2004 2007-10-24 Ulrich Weigand <uweigand@de.ibm.com>
2006 * i386-nto-tdep.c: Include "solib.h".
2007 (i386nto_init_abi): Use set_solib_ops instead of overwriting
2008 current_target_so_ops members.
2009 * solist.h (TARGET_SO_RELOCATE_SECTION_ADDRESSES): Remove.
2010 (TARGET_SO_FIND_AND_OPEN_SOLIB): Remove.
2011 (TARGET_SO_IN_DYNSYM_RESOLVE_CODE): Remove.
2012 * Makefile.in: Update dependencies.
2014 2007-10-24 Ulrich Weigand <uweigand@de.ibm.com>
2016 * arm-wince-tdep.c: Include "solib.h" and "solib-target.h".
2017 (arm_wince_init_abi): Call set_solib_ops.
2018 * i386-cygwin-tdep.c: Include "solib.h" and "solib-target.h".
2019 (i386_cygwin_init_abi): Call set_solib_ops.
2020 * solib-target.c: Include "solib-target.h".
2021 (solib_target_so_ops): Make global.
2022 (_initialize_solib_target): Do not set current_target_so_ops.
2023 * solib-target.h: New file.
2024 * Makefile.in: Update dependencies.
2026 2007-10-24 Ulrich Weigand <uweigand@de.ibm.com>
2028 * mips-irix-tdep.c: Include "gdb_string.h", "solib.h", "solib-irix.h".
2029 (mips_irix_init_abi): Call set_solib_ops.
2030 * solib-irix.c: Include "solib.h" and "solib-irix.h".
2031 (irix_so_ops): Make global.
2032 (_initialize_irix_solib): Do not set current_target_so_ops.
2033 * solib-irix.h: New file.
2034 * Makefile.in: Update dependencies.
2036 2007-10-24 Ulrich Weigand <uweigand@de.ibm.com>
2038 * configure.tgt: Remove hppa*64*-*-hpux11* special case.
2039 * config/pa/hppa64.mt: Delete file.
2040 * config/pa/hppahpux.mt (MT_CFLAGS): Remove.
2041 (TDEPFILES): Move somread.o to ...
2042 * config/pa/hpux.mh (NATDEPFILES): ... here.
2044 * configure.ac: Add check for elf_hp.h header.
2045 Search libdl and libxpdl for dlgetmodinfo.
2046 * config.in, configure: Regenerate.
2047 * solib-pa64.c: Conditionalize compilation on #ifdef HAVE_ELF_HP_H
2048 instead of #ifndef PA_SOM_ONLY. Include "solib.h".
2049 (pa64_solib_select): Take gdbarch instead of tdep argument. Call
2050 set_solib_ops instead of modifying current_target_so_ops.
2051 * solib-pa64.h (pa64_solib_select): Update prototype.
2052 * solib-som.c: Remove include of "som.h". Include "solib.h".
2053 (som_solib_select): Take gdbarch instead of tdep argument. Call
2054 set_solib_ops instead of modifying current_target_so_ops.
2055 * solib-som.h (som_solib_select): Update prototype.
2056 * hppa-hpux-tdep.c (hppa_hpux_som_init_abi): Pass gdbarch instead
2057 of tdep to som_solib_select call.
2058 (hppa_hpux_elf_init_abi): Pass gdbarch instead of tdep to
2059 pa64_solib_select call.
2060 * Makefile.in: Update dependencies.
2062 2007-10-24 Ulrich Weigand <uweigand@de.ibm.com>
2064 * frv-tdep.c: Include "solib.h".
2065 (frv_gdbarch_init): Call set_solib_ops.
2066 * frv-tdep.h (struct target_so_ops): Add forward reference.
2067 (frv_so_ops): Add extern declaration.
2068 * solib-frv.c (frv_so_ops): Make global.
2069 (_initialize_frv_solib): Do not set current_target_so_ops.
2070 * Makefile.in: Update dependencies.
2072 2007-10-24 Ulrich Weigand <uweigand@de.ibm.com>
2074 * solib.c (solib_global_lookup): Use solib_ops instead of global
2075 current_target_so_ops.
2077 2007-10-24 Ulrich Weigand <uweigand@de.ibm.com>
2079 * config/frv/frv.mt (DEPRECATED_TM_FILE): Remove.
2080 * config/frv-tm-frv.h: Delete file.
2082 2007-10-24 Daniel Jacobowitz <dan@codesourcery.com>
2084 * NEWS: Mention gdbserver support for non-libthread_db operation.
2086 2007-10-24 Daniel Jacobowitz <dan@codesourcery.com>
2088 * amd64-tdep.c (amd64_convert_register_p): Delete.
2089 (amd64_init_abi): Use i387_convert_register_p.
2090 * alpha-tdep.c (alpha_convert_register_p): Return zero for
2092 (alpha_register_to_value, alpha_value_to_register): Do not handle
2094 * i386-tdep.c (i386_convert_register_p): Use i387_convert_register_p.
2095 * i387-tdep.c (i387_convert_register_p): New.
2096 (i387_register_to_value, i387_value_to_register): Update comments.
2097 * i387-tdep.h (i387_convert_register_p): Declare.
2098 * ia64-tdep.c (ia64_convert_register_p): Return zero for
2099 builtin_type_ia64_ext.
2100 (ia64_gdbarch_init): Do not initialize builtin_type_ia64_ext here.
2101 (_initialize_ia64_tdep): Initialize builtin_type_ia64_ext here.
2102 * m68k-tdep.c (m68k_convert_register_p): Return zero for
2103 builtin_type_m68881_ext.
2104 (m68k_register_to_value, m68k_value_to_register): Update comments.
2106 2007-10-24 Nathan Sidwell <nathan@codesourcery.com>
2108 * target-memory.c (claim_memory): Propagate baton for split memory
2111 2007-10-24 Pedro Alves <pedro_alves@portugalmail.pt>
2114 * sol-thread.c (sol_thread_fetch_registers): Work around gcc 3.4
2117 2007-10-24 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
2119 * symtab.c (find_line_symtab): scan through psymtabs
2120 when exact_match is zero.
2122 2007-10-23 Atsushi Nemoto <anemo@mba.ocn.ne.jp>
2124 * mips-tdep.c (LL_OPCODE, LLD_OPCODE, SC_OPCODE, SCD_OPCODE): Define.
2125 (deal_with_atomic_sequence): New.
2126 (mips_software_single_step): Use it.
2128 2007-10-23 Daniel Jacobowitz <dan@codesourcery.com>
2131 * configure.ac: Modify $LIBINTL before the BFD check.
2132 * configure: Regenerated.
2134 2007-10-23 Joel Brobecker <brobecker@adacore.com>
2136 * buildsym.c (free_pending_blocks): Remove commented-out code.
2137 (make_blockvector): Likewise. Re-use free_pending_blocks.
2138 (end_symtab): Remove commented-out code.
2140 2007-10-22 Daniel Jacobowitz <dan@codesourcery.com>
2142 * top.c (command_loop): Fix output for shrinkage.
2144 2007-10-22 Daniel Jacobowitz <dan@codesourcery.com>
2146 * cp-name-parser.y (exp1): Add & ( var ) as a reference expression.
2147 (exp): Remove and document function-like casts.
2149 2007-10-22 Daniel Jacobowitz <dan@codesourcery.com>
2151 * cp-support.c: Include "safe-ctype.h".
2152 (cp_already_canonical): New function.
2153 (cp_canonicalize_string): Use it. Return NULL for already canonical
2155 (mangled_name_to_comp): Update call to cp_demangled_name_to_comp.
2156 (cp_func_name, remove_params): Likewise.
2157 (cp_find_first_component_aux): Use ISSPACE.
2158 * cp-support.h (cp_demangled_name_to_comp): Correct comment. Remove
2160 * cp-name-parser.y (ALLOC_CHUNK): Define.
2161 (struct demangle_info): Add PREV and NEXT. Increase the size of
2163 (d_grab): Convert to a function.
2164 (allocate_info): Rewrite.
2165 (cp_demangled_name_to_comp): Remove MEMORY argument. Do not use
2166 strlen. Update call to allocate_info. Do not free it on failure.
2167 (main): Update calls to cp_demangled_name_to_comp.
2168 * Makefile.in (cp-support.o): Update.
2170 2007-10-22 Markus Deuling <deuling@de.ibm.com>
2172 * std-regs.c (value_of_builtin_frame_fp_reg)
2173 value_of_builtin_frame_pc_reg, value_of_builtin_frame_sp_reg)
2174 value_of_builtin_frame_ps_reg): Use get_frame_arch to get at the
2175 current architecture by frame_info.
2177 2007-10-22 Markus Deuling <deuling@de.ibm.com>
2179 * reggroups.c (default_register_reggroup_p): Replace current_gdbarch
2182 2007-10-22 Markus Deuling <deuling@de.ibm.com>
2184 * infcmd.c (default_print_registers_info, print_return_value)
2185 (print_vector_info, print_float_info): Replace current_gdbarch by
2187 (registers_info): Use get_frame_arch to get at the current
2188 architecture by frame_info.
2190 2007-10-22 Markus Deuling <deuling@de.ibm.com>
2192 * i387-tdep.c (i387_collect_fsave, i387_collect_fxsave): Use
2193 get_regcache_arch to get at the current architecture by regcache.
2195 2007-10-22 Markus Deuling <deuling@de.ibm.com>
2197 * target.c (debug_print_register): Use get_regcache_arch to get at the
2198 current architecture by regcache.
2200 2007-10-21 Daniel Jacobowitz <dan@codesourcery.com>
2202 * dwarf2read.c (read_file_scope): Add a comment.
2203 (dwarf2_add_field, dwarf2_add_member_fn, read_structure_type)
2204 (read_enumeration_type, process_enumeration_scope, read_array_type)
2205 (read_typedef, read_base_type, read_subrange_type)
2206 (read_unspecified_type): Use dwarf2_name.
2208 2007-10-21 Daniel Jacobowitz <dan@codesourcery.com>
2210 * coffread.c (coff_symfile_finish): Call dwarf2_free_objfile.
2211 * dwarf2read.c (dwarf2_free_objfile): New.
2212 * elfread.c (elf_symfile_finish): Call dwarf2_free_objfile.
2213 * symfile.h (dwarf2_free_objfile): Declare.
2215 2007-10-21 Joel Brobecker <brobecker@adacore.com>
2217 * hppa-hpux-nat.c (hppa_hpux_store_register): Add missing semi-colon.
2219 2007-10-21 Luis Machado <luisgpm@br.ibm.com>
2221 * rs6000-tdep.c (ppc_dwarf2_frame_init_reg): New function.
2222 * (rs6000_gdbarch_init): Install ppc_dwarf2_frame_init_reg as
2223 default dwarf2_frame_set_init_reg function.
2225 2007-10-21 Pedro Alves <pedro_alves@portugalmail.pt>
2227 * NEWS: Mention native MinGW configuration.
2229 2007-10-19 Ulrich Weigand <uweigand@de.ibm.com>
2231 * gdbarch.sh: Remove "macro" column of input table. Remove handling
2232 of "macro" column throughout the file. Remove (empty) "macro" entry
2233 of all gdbarch functions.
2235 2007-10-19 Ulrich Weigand <uweigand@de.ibm.com>
2237 * gdbarch.sh (sofun_address_maybe_missing): New gdbarch variable.
2238 * gdbarch.c, gdbarch.h: Regenerate.
2239 * dbxread.c (find_stab_function_addr): Define unconditionally.
2240 (read_dbx_symtab): Use gdbarch_sofun_address_maybe_missing
2241 instead of SOFUN_ADDRESS_MAYBE_MISSING.
2242 (end_psymtab): Likewise.
2243 (process_one_symbol): Likewise.
2244 * mdebugread.c (parse_partial_symbols): Likewise.
2246 * symtab.h (struct minimal_symbol): Always define "filename" member.
2247 * elfread.c (elf_symtab_read): Use msym->filename unconditionally.
2248 * minsyms.c (lookup_minimal_symbol): Likewise.
2249 * symmisc.c (dump_msymbols): Likewise.
2251 * config/i386/i386sol2.mt (DEPRECATED_TM_FILE): Remove.
2252 * config/i386/linux.mt (DEPRECATED_TM_FILE): Remove.
2253 * config/i386/tm-i386sol2.h: Remove file.
2254 * config/i386/tm-linux.h: Remove file.
2255 * i386-linux-tdep.c (i386_linux_init_abi): Add call to
2256 set_gdbarch_sofun_address_maybe_missing.
2257 * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
2259 * config/powerpc/linux.mt (DEPRECATED_TM_FILE): Remove.
2260 * config/powerpc/nbsd.mt (DEPRECATED_TM_FILE): Remove.
2261 * config/powerpc/obsd.mt (DEPRECATED_TM_FILE): Remove.
2262 * config/powerpc/ppc-eabi.mt (DEPRECATED_TM_FILE): Remove.
2263 * config/powerpc/ppc-sim.mt (DEPRECATED_TM_FILE): Remove.
2264 * config/powerpc/tm-ppc-eabi.h: Remove file.
2265 * rs6000-tdep.c (rs6000_gdbarch_init): Add call to
2266 set_gdbarch_sofun_address_maybe_missing.
2268 * config/sparc/sol2-64.mt (DEPRECATED_TM_FILE): Remove.
2269 * config/sparc/sol2.mt (DEPRECATED_TM_FILE): Remove.
2270 * config/sparc/tm-sol2.h: Remove file.
2271 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Add call to
2272 set_gdbarch_sofun_address_maybe_missing.
2273 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Likewise.
2275 2007-10-19 Ulrich Weigand <uweigand@de.ibm.com>
2277 * gdbarch.sh (static_transform_name): New gdbarch callback.
2278 * gdbarch.c, gdbarch.h: Regenerate.
2279 * dbxread.c (read_dbx_symtab): Use gdbarch_static_transform_name
2280 instead of STATIC_TRANSFORM_NAME.
2281 * mdebugread.c (parse_partial_symbols): Likewise.
2282 * stabsread.c (define_symbol): Likewise.
2283 * xcoffread.c (scan_xcoff_symtab): Likewise.
2285 * config/i368/tm-i386sol2.h (STATIC_TRANSFORM_NAME): Remove.
2286 (IS_STATIC_TRANSFORM_NAME): Remove.
2287 * i386-tdep.c (sunpro_static_transform_name): Remove, move to ...
2288 * i386-sol2-tdep.c (i386_sol2_static_transform_name): ... here.
2289 (i386_sol2_init_abi): Install it.
2291 * config/sparc/tm-sol2.h (STATIC_TRANSFORM_NAME): Remove.
2292 (IS_STATIC_TRANSFORM_NAME): Remove.
2293 * sparc-tdep.c (sparc_stabs_unglobalize_name): Remove, move to ...
2294 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): ... here.
2295 (sparc32_sol2_init_abi): Install it.
2296 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Likewise.
2297 * sparc-tdep.h (sparc_sol2_static_transform_name): Add prototype.
2299 2007-10-18 Daniel Jacobowitz <dan@codesourcery.com>
2301 * mips-tdep.c (mips_xfer_register): Take a gdbarch argument.
2302 (mips_n32n64_return_value, mips_o32_return_value)
2303 (mips_o64_return_value): Update calls to mips_xfer_register.
2305 2007-10-17 Daniel Jacobowitz <dan@codesourcery.com>
2307 * frame.c (frame_unwind_unsigned_register): Delete.
2308 (frame_sp_unwind): Use frame_unwind_register_unsigned instead.
2309 * frame.h (frame_unwind_unsigned_register): Delete prototype.
2311 * alpha-linux-tdep.c, alpha-mdebug-tdep.c, alpha-tdep.c,
2312 avr-tdep.c, cris-tdep.c, frv-tdep.c, m68hc11-tdep.c, mn10300-tdep.c,
2313 mt-tdep.c: Replace frame_unwind_unsigned_register with
2314 frame_unwind_register_unsigned.
2316 2007-10-16 Pedro Alves <pedro_alves@portugalmail.pt>
2318 * config/i386/mingw.mh, config/i386/mingw.mt: New files.
2319 * configure.tgt (i[34567]86-*-mingw32*): Set gdb_target = mingw.
2320 * win32-nat.c: Only include cygwin.h on Cygwin host. Don't
2322 (cygwin_load_start, cygwin_load_end, cygwin_exceptions): Disable
2323 if not building on Cygwin.
2324 (win32_make_so, handle_output_debug_string, handle_exception)
2325 (do_initial_win32_stuff): Wrap Cygwin specific code in __CYGWIN__.
2326 (win32_attach): Only fallback to Cygwin pids if building on
2328 (win32_pid_to_exec_file): Disable Cygwin specific code, if not
2330 (win32_create_inferior): Disable starting the inferior through a
2331 shell, environment var processing and tty handling if not building
2333 (cygwin_pid_to_str): Rename to ...
2334 (win32_pid_to_str): ... this.
2335 (init_win32_ops): Update use of win32_pid_to_str. Disable "shell"
2336 and "cygwin-exceptions" commands if not building on Cygwin.
2338 2007-10-16 Gaius Mulley <gaius@glam.ac.uk>
2340 * doc/gdb.texinfo: Add TSIZE definition, removed
2341 statement about unbounded arrays being unimplemented.
2342 * m2-valprint.c (m2_print_array_contents): New function.
2343 (m2_print_unbounded_array): New function.
2344 (m2_print_array_contents): New function.
2345 * m2-typeprint.c (m2_unbounded_array): New function.
2346 (m2_is_unbounded_array): New function.
2347 (m2_print_type): Test for unbounded array when walking
2349 * m2-lang.h: Added extern m2_is_unbounded_array.
2350 * m2-lang.c (evaluate_subexp_modula2): New function.
2351 (exp_descriptor_modula2): New structure.
2352 (m2_language_defn): Use exp_descriptor_modula2.
2353 * m2-exp.y: Added TSIZE and binary subscript.
2355 2007-10-16 Daniel Jacobowitz <dan@codesourcery.com>
2357 * mi/mi-main.c (captured_mi_execute_command): Clear mi_error_message
2360 2007-10-16 Kevin Buettner <kevinb@redhat.com>
2362 * m32r-tdep.c (decode_prologue): Sign extend offset for
2364 (m32r_frame_unwind_cache): Likewise.
2366 2007-10-15 Thiago Jung Bauermann <bauerman@br.ibm.com>
2368 * rs6000-tdep.c (skip_prologue): Restore comment with
2369 function description to its proper place.
2371 2007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
2373 * NEWS: Mention gdbserver PowerPC improvements.
2375 2007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
2377 * features/Makefile (WHICH): Add PowerPC register definitions.
2378 (rs6000/powerpc-32-expedite, rs6000/powerpc-e500-expedite)
2379 (rs6000/powerpc-64-expedite): New macros.
2380 ($(outdir)/%.dat): Handle subdirectories.
2381 * regformats/rs6000/powerpc-32.dat, regformats/rs6000/powerpc-64.dat,
2382 regformats/rs6000/powerpc-e500.dat: New generated files.
2384 2007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
2386 * ppc-linux-nat.c (ppc_linux_read_description): New.
2387 (_initialize_ppc_linux_nat): Set to_read_description.
2388 * ppc-tdep.h (tdesc_powerpc_e500): Declare.
2390 2007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
2392 * NEWS: Document target described register support for PowerPC.
2393 * ppc-tdep.h: Remove ppc_spr constants.
2394 (struct gdbarch_tdep): Remove regs, ppc_sr0_regnum, and
2395 ppc_builtin_type_vec128 members.
2396 (PPC_R0_REGNUM, PPC_F0_REGNUM, PPC_PC_REGNUM, PPC_MSR_REGNUM)
2397 (PPC_CR_REGNUM, PPC_LR_REGNUM, PPC_CTR_REGNUM, PPC_XER_REGNUM)
2398 (PPC_FPSCR_REGNUM, PPC_MQ_REGNUM, PPC_SPE_UPPER_GP0_REGNUM)
2399 (PPC_SPE_ACC_REGNUM, PPC_SPE_FSCR_REGNUM, PPC_VR0_REGNUM)
2400 (PPC_VSCR_REGNUM, PPC_VRSAVE_REGNUM, PPC_NUM_REGS): New constants.
2401 * rs6000-tdep.c: Include preparsed descriptions.
2402 (init_sim_regno_table): Do not iterate over pseudo registers.
2403 Look up segment registers by name. Use sim_spr_register_name
2405 (rs6000_register_sim_regno): Call init_sim_regno_table here.
2406 (rs6000_builtin_type_vec128): Delete.
2407 (rs6000_register_name): Only handle SPE pseudo registers and upper
2408 halves. Call tdesc_register_name for everything else.
2409 (rs6000_register_type): Delete. Replace with...
2410 (rs6000_pseudo_register_type): ...this new function. Only handle
2411 SPE pseudo registers.
2412 (rs6000_register_reggroup_p): Delete. Replace with...
2413 (rs6000_pseudo_register_reggroup_p): ...this new function. Only
2414 handle SPE pseudo registers.
2415 (rs6000_convert_register_p): Use ppc_fp0_regnum instead of
2417 (rs6000_register_to_value, rs6000_value_to_register): Remove check
2419 (e500_register_reggroup_p): Delete.
2420 (STR, R, R4, R8, R16, F, P8, R32, R64, R0, A4, S, S4, SN4, S64)
2421 (COMMON_UISA_REGS, PPC_UISA_SPRS, PPC_UISA_NOFP_SPRS)
2422 (PPC_SEGMENT_REGS, PPC_OEA_SPRS, PPC_ALTIVEC_REGS, PPC_SPE_GP_REGS)
2423 (PPC_SPE_UPPER_GP_REGS, PPC_EV_PSEUDO_REGS): Delete macros.
2424 (registers_powerpc, registers_403, registers_403GC, registers_505)
2425 (registers_860, registers_601, registers_602, registers_603)
2426 (registers_604, registers_750, registers_7400, registers_e500): Delete
2428 (struct variant): Delete nregs, npregs, num_tot_regs, and regs. Add
2430 (tot_num_registers, num_registers, num_pseudo_registers): Delete.
2431 (variants): Delete outdated comment. Use standard target descriptions
2432 instead of "struct reg" arrays.
2433 (init_variants): Delete.
2434 (rs6000_gdbarch_init): Do not guess word size from the BFD
2435 architecture if we have a target description. Select a variant
2436 before creating a new architecture. Use the variant's target
2437 description if the target did not define a register layout.
2438 Validate target-supplied registers. Reject mismatches. Use
2439 fixed register numbers and new constants instead of magic
2440 numbers. Call set_gdbarch_ps_regnum. Call tdesc_use_registers.
2441 (_initialize_rs6000_tdep): Initialize the preparsed target
2443 * target-descriptions.c (tdesc_predefined_types): Add int128 and
2445 (tdesc_find_register_early): New function.
2446 (tdesc_numbered_register): Use it.
2447 (tdesc_register_size): New function.
2448 (tdesc_use_registers): Take a target_desc argument. Do not use
2449 gdbarch_target_desc.
2450 * target-descriptions.h (tdesc_use_registers): Update prototype
2452 (tdesc_register_size): New prototype.
2453 * Makefile.in (powerpc_32_c, powerpc_403_c, powerpc_403gc_c)
2454 (powerpc_505_c, powerpc_601_c, powerpc_602_c, powerpc_603_c)
2455 (powerpc_604_c, powerpc_64_c, powerpc_7400_c, powerpc_750_c)
2456 (powerpc_860_c, powerpc_e500_c, rs6000_c): New macros.
2457 (rs6000-tdep.o): Update.
2458 * arm-tdep.c (arm_gdbarch_init): Update call to tdesc_use_registers.
2459 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
2460 * mips-tdep.c (mips_gdbarch_init): Likewise.
2462 2007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
2464 * features/rs6000/powerpc-32.c, features/rs6000/powerpc-403.c,
2465 features/rs6000/powerpc-403gc.c, features/rs6000/powerpc-505.c,
2466 features/rs6000/powerpc-601.c, features/rs6000/powerpc-602.c,
2467 features/rs6000/powerpc-603.c, features/rs6000/powerpc-604.c,
2468 features/rs6000/powerpc-64.c, features/rs6000/powerpc-7400.c,
2469 features/rs6000/powerpc-750.c, features/rs6000/powerpc-860.c,
2470 features/rs6000/powerpc-e500.c, features/rs6000/rs6000.c: New
2473 2007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
2475 * features/rs6000/power-altivec.xml, features/rs6000/power-core.xml,
2476 features/rs6000/power-fpu.xml, features/rs6000/power-oea.xml,
2477 features/rs6000/power-spe.xml, features/rs6000/power64-core.xml: New
2478 feature descriptions for standard PowerPC register sets.
2480 * features/rs6000/powerpc-32.xml, features/rs6000/powerpc-403.xml,
2481 features/rs6000/powerpc-403gc.xml, features/rs6000/powerpc-505.xml,
2482 features/rs6000/powerpc-601.xml, features/rs6000/powerpc-602.xml,
2483 features/rs6000/powerpc-603.xml, features/rs6000/powerpc-604.xml,
2484 features/rs6000/powerpc-64.xml, features/rs6000/powerpc-7400.xml,
2485 features/rs6000/powerpc-750.xml, features/rs6000/powerpc-860.xml,
2486 features/rs6000/powerpc-e500.xml, features/rs6000/rs6000.xml: New
2487 target descriptions for PowerPC processors.
2489 2007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
2491 * target-descriptions.c (tdesc_predefined_types): New.
2492 (tdesc_named_type): Use it.
2493 (tdesc_type_id, maint_print_c_tdesc_cmd): New functions.
2494 (_intialize_target_descriptions): Register "maint print c-tdesc".
2495 * features/Makefile (XMLTOC, CFILES, GDB): New macros.
2496 (cfiles, %.c): New rules.
2497 * features/arm-with-iwmmxt.c, features/mips-linux.c,
2498 features/mips64-linux.c: New generated files.
2500 * arm-linux-nat.c: Include preparsed description instead of
2502 (super_xfer_partial, arm_linux_xfer_partial): Remove.
2503 (arm_linux_read_description): New function.
2504 (_initialize_arm_linux_nat): Set to_read_description instead of
2505 to_xfer_partial. Initialize preparsed description.
2506 * config/arm/linux.mh (TDEP_XML): Delete.
2507 * mips-linux-nat.c: Include preparsed descriptions instead of
2509 (super_xfer_partial, mips_linux_xfer_partial): Remove.
2510 (mips_linux_read_description): New function.
2511 (_initialize_mips_linux_nat): Set to_read_description instead of
2512 to_xfer_partial. Initialize preparsed description.
2513 * config/mips/linux.mh (TDEP_XML): Delete.
2514 * Makefile.in (XMLFILES): Remove $(TDEP_XML).
2515 (features_headers, arm_with_iwmmxt_c, mips_linux_c)
2516 (mips64_linux_c): New macros.
2517 (arm-linux-nat.o, mips-linux-nat.o): Update.
2519 2007-10-15 Pierre Muller <muller@ics.u-strasbg.fr>
2521 * cp-abi.c (set_cp_abi_as_auto_default): ARI fix:
2522 Replace xasprintf by xstrprintf.
2523 symfile-mem.c (add_vsyscall_page): Ditto.
2525 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
2527 * ia64-linux-nat.c (ia64_register_addr): Add gdbarch parameter,
2528 replacing use of global current_gdbarch.
2529 (ia64_cannot_fetch_register, ia64_cannot_store_register): Likewise.
2530 (ia64_linux_fetch_register, ia64_linux_store_register): Update callers.
2532 * ia64-tdep.c (SIGCONTEXT_REGISTER_ADDRESS): Remove macro.
2533 (ia64_sigtramp_frame_init_saved_regs): Add next_frame parameter,
2534 replace uses of SIGCONTEXT_REGISTER_ADDRESS.
2535 (ia64_sigtramp_frame_cache): Update caller.
2537 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
2539 * gdbarch.sh (deprecated_use_struct_convention): Remove.
2540 (extract_return_value, store_return_value): Remove.
2541 (return_value): Remove default implementation.
2542 * gdbarch.c, gdbarch.h: Regenerate.
2544 * stack.c (return_command): Remove compatibility hack.
2545 * arch-utils.c (legacy_return_value): Remove.
2546 * arch-utils.h (legacy_return_value): Likewise.
2548 * arch-utils.c (always_use_struct_convention): Remove.
2549 * arch-utils.h (always_use_struct_convention): Likewise.
2550 * value.c (generic_use_struct_convention): Remove.
2551 * defs.h (generic_use_struct_convention): Likewise.
2553 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
2555 * avr-tdep.c (avr_return_value): New function.
2556 (avr_gdbarch_init): Call set_gdbarch_return_value instead of
2557 set_gdbarch_extract_return_value.
2559 * fvr-tdep.c (frv_return_value): New function.
2560 (frv_gdbarch_init): Call set_gdbarch_return_value instead of
2561 set_gdbarch_extract_return_value, set_gdbarch_store_return_value,
2562 and set_gdbarch_deprecated_use_struct_convention.
2564 * ia64-tdep.c (ia64_use_struct_convention): Make static.
2565 Add check for structure, union, or array types.
2566 (ia64_extract_return_value): Make static.
2567 (ia64_store_return_value): Make static. Support multi-word values.
2568 (ia64_return_value): New function.
2569 (ia64_gdbarch_init): Call set_gdbarch_return_value instead of
2570 set_gdbarch_extract_return_value, set_gdbarch_store_return_value,
2571 and set_gdbarch_deprecated_use_struct_convention.
2573 2007-10-12 Joel Brobecker <brobecker@adacore.com>
2575 * solib-target.c (solib_target_parse_libraries)
2576 [HAVEHAVE_LIBEXPAT not defined]: Fix thinko in return type.
2578 2007-10-12 Jim Blandy <jimb@codesourcery.com>
2580 * serial.h (struct serial_ops): Document read_prim to return zero
2582 * ser-base.c (do_ser_base_readchar): Return SERIAL_EOF when
2583 read_prim returns zero, not SERIAL_TIMEOUT.
2585 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
2587 * alpha-mdebug-tdep.c: Include "gdb_string.h".
2588 (find_proc_desc): Add fix-up code for setjmp procedure descriptor.
2589 * mdebugread.c (parse_procedure): Remove setjmp fix-up code.
2590 * Makefile.in (alpha-mdebug-tdep.o): Update dependencies.
2592 * config/alpha/alpha.mt (DEPRECATED_TM_FILE): Remove.
2593 * config/alpha/alpha-linux.mt (DEPRECATED_TM_FILE): Remove.
2594 * config/alpha/alpha-osf1.mt (DEPRECATED_TM_FILE): Remove.
2595 * config/alpha/fbsd.mt (DEPRECATED_TM_FILE): Remove.
2596 * config/alpha/tm-alpha.h: Remove file.
2598 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
2600 * breakpoint.c (breakpoint_sals_to_pc): Do not check for
2601 DEPRECATED_PC_REQUIRES_RUN_BEFORE_USE.
2603 * config/pa/tm-hppa.h: Delete file.
2604 * config/pa/hppa64.mt: Do not set DEPRECATED_TM_FILE.
2605 * config/pa/hppahpux.mt: Likewise.
2606 * config/pa/hppa.mt: Likewise.
2607 * config/pa/linux.mt: Likewise.
2608 * hppa-tdep.c (hppa_pc_requires_run_before_use): Delete.
2610 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
2612 * config/arm/nm-nbsdaout.h: Remove file.
2613 * config/nm-nbsdaout.h: Likewise.
2614 * config/nm-nbsd.h: Likewise.
2616 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
2618 * block.h (struct block): Remove "gcc_compile_flag" member.
2619 (BLOCK_GCC_COMPILED): Remove.
2620 * block.c (allocate_block): Do not clear BLOCK_GCC_COMPILED.
2621 * buildsym.c (finish_block): Do not set it.
2622 * symmisc.c (dump_symtab_1): Do not dump it.
2624 * value.h (using_struct_return): Remove "gcc_p" argument.
2625 * value.c (using_struct_return): Likewise.
2626 * eval.c (evaluate_subexp_standard): Adapt callers.
2627 * infcall.c (call_function_by_hand): Likewise.
2628 * stack.c (return_command): Likewise.
2629 * sparc-tdep.c (sparc32_push_dummy_code): Likewise.
2631 * gdbarch.sh (push_dummy_code): Remove "using_gcc" parameter.
2632 * gdbarch.c, gdbarch.h: Regenerate.
2633 * cris-tdep.c (cris_push_dummy_code): Adapt prototype.
2634 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Likewise.
2635 * sparc-tdep.c (sparc32_push_dummy_code): Likewise.
2636 * infcall.c (generic_push_dummy_code, push_dummy_code): Likewise.
2637 (push_dummy_code, call_function_by_hand): Adapt callers.
2639 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
2641 * infcmd.c (print_return_value): Remove STRUCT_RETURN argument.
2642 (finish_command_continuation, finish_command): Adapt callers.
2644 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
2646 * infcall.c (call_function_by_hand): Remove special handling
2647 for HP aCC compiled code.
2649 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
2651 * cris-tdep.c (cris_push_dummy_call): Support arguments passed by
2652 reference. Fix endianness bugs.
2653 (cris_reg_struct_has_address): Remove.
2654 (cris_gdbarch_init): Remove set_gdbarch_deprecated_reg_struct_has_addr
2655 and set_gdbarch_deprecated_use_struct_convention calls.
2657 * gdbarch.sh (deprecated_reg_struct_has_addr): Remove.
2658 * gdbarch.c, gdbarch.h: Regenerate.
2659 * infcall.c (call_function_by_hand): Remove handling of
2660 deprecated_reg_struct_has_addr.
2662 2007-10-11 Daniel Jacobowitz <dan@codesourcery.com>
2663 Kazu Hirata <kazu@codesourcery.com>
2665 * breakpoint.c (do_enable_breakpoint): Delay enabling until after
2666 checking watchpoint resources.
2668 2007-10-11 Kazu Hirata <kazu@codesourcery.com>
2670 * memattr.c (inaccessible_by_default): Change the initial
2673 2007-10-11 Daniel Jacobowitz <dan@codesourcery.com>
2676 * coffread.c (read_one_sym): Check for read errors.
2678 2007-10-11 Ulrich Weigand <uweigand@de.ibm.com>
2680 * linux-nat.c (lin_lwp_attach_lwp): Use "Linux kernel 2.6.19"
2681 instead of "Linux 2.6.19" in comment.
2682 (linux_xfer_partial): Use "GNU/Linux target" instead of
2683 "Linux target" in comment.
2684 * m68klinux-tdep.c (m68k_linux_inferior_created): Likewise.
2685 (m68k_linux_get_sigtramp_info): Likewise.
2687 2007-10-11 Daniel Jacobowitz <dan@codesourcery.com>
2689 * MAINTAINERS (language support): List Joel and Paul as
2692 2007-10-11 Daniel Jacobowitz <dan@codesourcery.com>
2694 * dbxread.c (process_one_symbol): Remove VARIABLES_INSIDE_BLOCK
2696 * config/arm/embed.mt, config/arm/linux.mt, config/arm/wince.mt: Do
2697 not set DEPRECATED_TM_FILE.
2698 * config/arm/tm-arm.h: Delete file.
2700 2007-10-11 Luis Machado <luisgpm@br.ibm.com>
2702 * MAINTAINERS (Write After Approval): Add self.
2704 2007-10-11 Daniel Jacobowitz <dan@codesourcery.com>
2706 * buildsym.c (record_line): Remove empty lines followed by
2707 end-of-sequence markers.
2709 2007-10-11 Kazu Hirata <kazu@codesourcery.com>
2711 * configure.tgt: Recognize fido-*-elf.
2713 2007-10-10 Joel Brobecker <brobecker@adacore.com>
2717 2007-10-10 Markus Deuling <deuling@de.ibm.com>
2719 * stack.c (print_frame_args, frame_info, return_command): Use
2720 get_regcache_arch or get_frame_arch to get at the current architecture
2721 by regcache or by frame, respectively.
2723 2007-10-10 Markus Deuling <deuling@de.ibm.com>
2725 * rs6000-nat.c (fetch_register, store_register)
2726 (rs6000_fetch_inferior_registers, rs6000_store_inferior_registers): Use
2727 get_regcache_arch to get at the current architecture by regcache.
2729 * rs6000-tdep.c (rs6000_push_dummy_call, rs6000_return_value)
2730 (rs6000_register_reggroup_p, e500_move_ev_registe, rs6000_unwind_pc)
2731 (rs6000_unwind_dummy_id, rs6000_frame_cache, rs6000_dump_tdep): Replace
2732 current_gdbarch by gdbarch.
2733 (rs6000_skip_trampoline_code, rs6000_register_to_value)
2734 (rs6000_value_to_register): Use get_frame_arch to get at the current
2735 architecture by frame_info.
2737 2007-10-10 Markus Deuling <deuling@de.ibm.com>
2739 * sparc-tdep.c (sparc_supply_rwindow, sparc_collect_rwindow): Use
2740 get_regcache_arch to get at the current architecture by regcache.
2742 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
2743 (sparc64_supply_fpregset, sparc64_collect_fpregset): Use
2744 get_regcache_arch to get at the current architecture by regcache.
2746 * sparc64nbsd-nat. (sparc64nbsd_supply_gregset)
2747 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
2748 (sparc64nbsd_collect_fpregset): Use get_regcache_arch to get at the
2749 current architecture by regcache.
2751 2007-10-10 Markus Deuling <deuling@de.ibm.com>
2753 * remote-mips.c (mips_wait, mips_fetch_registers)
2754 (mips_store_registers): Use get_regcache_arch to get at the
2755 current architecture by regcache.
2757 * mipsnbsd-tdep.c (mipsnbsd_supply_reg, mipsnbsd_fill_reg)
2758 (mipsnbsd_supply_fpreg, mipsnbsd_fill_fpreg): Use get_regcache_arch to
2759 get at the current architecture by regcache.
2760 (mipsnbsd_sigtramp_offset): Use get_frame_arch to get at the current
2761 architecture by frame_info.
2763 * mipsnbsd-nat.c (mipsnbsd_fetch_inferior_registers)
2764 (mipsnbsd_store_inferior_registers): Use get_regcache_arch to get at
2765 the current architecture by regcache.
2767 * mips-linux-tdep.c (mips_linux_get_longjmp_target)
2768 (mips64_linux_get_longjmp_target, mips_linux_o32_sigframe_init)
2769 (mips_linux_n32n64_sigframe_init): Use get_frame_arch to get at the
2770 current architecture by frame_info.
2771 (supply_32bit_reg, mips_supply_gregset, mips_fill_gregset)
2772 (mips_supply_fpregset, mips_fill_fpregset, supply_64bit_reg)
2773 (mips64_supply_gregset, mips64_fill_gregset, mips64_supply_fpregset)
2774 (mips64_fill_fpregset, mips_linux_write_pc): Use get_regcache_arch to
2775 get at the current architecture by regcache.
2777 * mips-linux-nat.c (mips_linux_register_addr)
2778 (mips64_linux_register_addr): Replace current_gdbarch by gdbarch.
2779 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset)
2780 (mips64_linux_regsets_fetch_registers)
2781 (mips64_linux_regsets_store_registers): Use get_regcache_arch to get at
2782 the current architecture by regcache.
2784 * mips64obsd-tdep.c (mips64obsd_sigframe_init): Use get_frame_arch to
2785 get at the current architecture by frame_info.
2787 2007-10-10 Markus Deuling <deuling@de.ibm.com>
2789 * mips-tdep.c (mips_xfer_register): Use get_regcache_arch to get at the
2790 current architecture by regcache.
2791 (mips2_fp_compat, mips32_next_pc, mips16_scan_prologue)
2792 (mips_insn16_frame_cache, mips32_scan_prologue, mips_insn32_frame_cache)
2793 (mips_stub_frame_cache, mips_read_fp_register_single)
2794 (mips_read_fp_register_double, mips_print_fp_register)
2795 (mips_print_register, print_gp_register_row): Use get_frame_arch to get
2796 at the current architecture by frame_info.
2797 (mips_register_reggroup_p, mips_pseudo_register_read, mips_unwind_sp)
2798 (mips_pseudo_register_write, mips_register_type, mips_unwind_pc)
2799 (mips_unwind_dummy_id, mips_eabi_push_dummy_call)
2800 (mips_n32n64_push_dummy_call, mips_n32n64_return_value)
2801 (mips_o32_push_dummy_call, mips_o32_return_value)
2802 (mips_o64_push_dummy_call, mips_o64_return_value)
2803 (mips_print_registers_info, mips_dump_tdep): Replace current_gdbarch by
2806 2007-10-10 Markus Deuling <deuling@de.ibm.com>
2808 * xtensa-tdep.c (xtensa_register_type, xtensa_pseudo_register_read)
2809 (xtensa_pseudo_register_write, xtensa_register_reggroup_p)
2810 (xtensa_unwind_pc, xtensa_unwind_dummy_id, xtensa_push_dummy_call)
2811 (xtensa_dump_tdep): Replace current_gdbarch by gdbarch.
2812 (xtensa_register_write_masked, xtensa_register_read_masked)
2813 (xtensa_supply_gregset, xtensa_store_return_value)
2814 (xtensa_extract_return_value): Use get_regcache_arch to get at the
2815 current architecture by regcache.
2816 (xtensa_frame_cache, call0_frame_get_reg_at_entry, call0_frame_cache)
2817 (xtensa_frame_prev_register): Use get_frame_arch to get at the current
2818 architecture by frame_info.
2820 2007-10-10 Daniel Jacobowitz <dan@codesourcery.com>
2822 * arm-tdep.c (struct arm_prologue_cache): Remove frameoffset.
2823 (thumb_analyze_prologue): Move pv_area_store_would_trash call
2824 out of loop. Do not set cache->frameoffset.
2825 (arm_scan_prologue): Use prologue-value mechanism. Do not set
2826 frameoffset. Simplify framesize.
2827 (arm_make_prologue_cache, arm_normal_frame_base): Do not use
2829 * arm-tdep.h (enum gdb_regnum): Add ARM_IP_REGNUM.
2831 2007-10-10 Daniel Jacobowitz <dan@codesourcery.com>
2833 * target.c (update_current_target): Call setup_target_debug.
2834 (push_target): Do not call it here.
2836 2007-10-09 Michael Snyder <msnyder@specifix.com>
2838 * MAINTAINERS: Update my email address.
2840 2007-10-09 Markus Deuling <deuling@de.ibm.com>
2842 * xtensa-tdep.c: Replace following current-gdbarch based macros by
2844 (xtensa_pseudo_register_read)
2845 (xtensa_pseudo_register_write): XTENSA_TARGET_FLAGS.
2846 (ARG_NOF, ARG_1ST, xtensa_extract_return_value)
2847 (xtensa_store_return_value, xtensa_push_dummy_call): CALL_ABI.
2848 (xtensa_pseudo_register_read)
2849 (xtensa_pseudo_register_write): ISA_USE_WINDOWED_REGISTERS.
2850 (xtensa_breakpoint_from_pc): ISA_USE_DENSITY_INSTRUCTIONS.
2851 (xtensa_register_type, xtensa_supply_gregset, xtensa_frame_cache)
2852 (xtensa_frame_prev_register): NUM_AREGS.
2853 (xtensa_pseudo_register_read, xtensa_pseudo_register_write,
2854 (xtensa_supply_gregset, xtensa_frame_cache, xtensa_frame_prev_register,
2855 (xtensa_extract_return_value, xtensa_store_return_value): WB_REGNUM.
2856 (xtensa_supply_gregset, xtensa_frame_cache)
2857 (xtensa_frame_prev_register): WS_REGNUM.
2858 (xtensa_supply_gregset): LBEG_REGNUM, LEND_REGNUM, LCOUNT_REGNUM,
2859 SAR_REGNUM, EXCCAUSE_REGNUM, EXCVADDR_REGNUM
2860 (xtensa_register_name, xtensa_register_type, xtensa_reg_to_regnum)
2861 (xtensa_pseudo_register_read, xtensa_pseudo_register_write)
2862 (xtensa_register_reggroup_p): REGMAP.
2863 (call0_track_op): LITBASE_REGNUM.
2864 (xtensa_register_type, xtensa_reg_to_regnum, call0_frame_cache):A0_BASE
2865 (xtensa_supply_gregset, call0_frame_get_reg_at_entry)
2866 (xtensa_frame_prev_register, AREG_NUMBER)
2867 (xtensa_register_type): AR_BASE.
2868 (xtensa_pseudo_register_read, xtensa_pseudo_register_write): FP_ALIAS.
2869 (AREG_NUMBER): AREGS_MASK, WB_MASK, A0_REGNUM.
2870 (ARG_1ST, xtensa_pseudo_register_read, xtensa_pseudo_register_write)
2871 (xtensa_frame_cache, xtensa_frame_prev_register)
2872 (xtensa_extract_return_value, xtensa_store_return_value)
2873 (xtensa_push_dummy_call, call0_frame_cache): A0_REGNUM.
2874 (xtensa_register_type, xtensa_pseudo_register_read, xtensa_frame_cache)
2875 (xtensa_pseudo_register_write, xtensa_unwind_dummy_id)
2876 (xtensa_frame_prev_register, xtensa_push_dummy_call)
2877 (call0_frame_cache): A1_REGNUM.
2878 (xtensa_extract_return_value, xtensa_store_return_value): A2_REGNUM.
2879 (xtensa_push_dummy_call): A4_REGNUM.
2880 (ARGS_FIRST_REG): A6_REGNUM.
2881 (xtensa_pseudo_register_read, xtensa_pseudo_register_write)
2882 (xtensa_frame_prev_register): A15_REGNUM.
2883 * xtensa-tdep.h: Delete current_gdbarch based macros after replacing
2884 them in the appropriate source file:
2885 XTENSA_TARGET_FLAGS, SPILL_LOCATION, SPILL_SIZE, CALL_ABI, NUM_AREGS,
2886 ISA_USE_WINDOWED_REGISTERS, ISA_USE_DENSITY_INSTRUCTIONS, WB_REGNUM,
2887 ISA_USE_EXCEPTIONS, ISA_USE_EXT_L32R, DEBUG_DATA_VADDR_TRAP_COUNT,
2888 DEBUG_INST_VADDR_TRAP_COUNT, ISA_MAX_INSN_SIZE, DEBUG_NUM_IBREAKS,
2889 DEBUG_NUM_DBREAKS, WS_REGNUM, LBEG_REGNUM, LEND_REGNUM, SAR_REGNUM,
2890 REGMAP, LITBASE_REGNUM, DEBUGCAUSE_REGNUM, EXCCAUSE_REGNUM, AR_BASE,
2891 EXCVADDR_REGNUM, NUM_IBREAKS, REGMAP_BYTES, NUM_CONTEXTS, FP_ALIAS,
2892 FP_LAYOUT, FP_LAYOUT_BYTES, GREGMAP, AREGS_MASK, WB_MASK, A0_REGNUM,
2893 A1_REGNUM, A2_REGNUM, A3_REGNUM, A4_REGNUM, A5_REGNUM, A6_REGNUM,
2894 A7_REGNUM, A8_REGNUM, A9_REGNUM, A10_REGNUM, A11_REGNUM, A12_REGNUM,
2895 A13_REGNUM, A14_REGNUM, A15_REGNUM.
2897 2007-10-09 Markus Deuling <deuling@de.ibm.com>
2899 * h8300-tdep.c (h8300_frame_cache): Use get_frame_arch to get at
2900 the current architecture by frame_info.
2901 (h8300_frame_prev_register
2902 (h8300_print_register): Replace current_gdbarch by gdbarch.
2903 (h8300_print_registers_info, h8300_register_type)
2904 (h8300_register_type): Likewise.
2906 2007-10-09 Markus Deuling <deuling@de.ibm.com>
2908 * i386-linux-nat.c (fetch_register): Use get_regcache_arch to get at
2909 the current architecture by regcache.
2910 (store_register, supply_gregset, fill_gregset, i386_linux_resume)
2911 (i386_linux_fetch_inferior_registers)
2912 (i386_linux_store_inferior_registers): Likewise.
2913 * i386gnu-nat.c (gnu_fetch_registers, gnu_store_registers): Likewise.
2914 * i386-nto-tdep.c (i386nto_supply_gregset): Likewise.
2915 * i386v4-nat.c (supply_fpregset, fill_fpregset): Likewise.
2916 * i386-tdep.c (i386_unwind_pc): Replace current_gdbarch by gdbarch.
2917 (i386_extract_return_value, i386_store_return_value): Likewise.
2918 * i386-tdep.c (i386_frame_prev_register): Use get_frame_arch to get at
2919 the current architecture by frame_info.
2920 (i386_sigtramp_frame_cache, i386_get_longjmp_target)
2921 (i386_register_to_value, i386_value_to_register): Likewise.
2923 2007-10-09 Markus Deuling <deuling@de.ibm.com>
2925 * monitor.c (monitor_supply_register): Use get_regcache_arch to get at
2926 the current architecture by regcache.
2927 (monitor_store_register, monitor_store_registers): Likewise.
2929 2007-10-09 Markus Deuling <deuling@de.ibm.com>
2931 * dbug-rom.c (dbug_supply_register): Use get_regcache_arch to get at
2932 the current architecture by regcache.
2934 2007-10-09 Markus Deuling <deuling@de.ibm.com>
2936 * arch-utils.c (legacy_return_value): Replace current_gdbarch by
2939 2007-10-09 Markus Deuling <deuling@de.ibm.com>
2941 * frame.c (frame_pc_unwind): Use get_frame_arch to get at the current
2942 architecture by frame.
2943 (frame_save_as_regcache, frame_register_unwind, get_prev_frame_1)
2944 (inside_main_func, frame_sp_unwind): Likewise.
2946 2007-10-09 Daniel Jacobowitz <dan@codesourcery.com>
2948 * solib-svr4.c (enable_break): Add the dynamic linker also if
2951 2007-10-09 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
2953 * MAINTAINERS (Write After Approval): Add self.
2955 2007-10-09 Pedro Alves <pedro_alves@portugalmail.pt>
2957 * stabsread.c (read_huge_number): Initialize local variable to 0.
2959 2007-10-09 Pierre Muller <muller@ics.u-strasbg.fr>
2961 * p-lang.h (pascal_main_name): Add declaration.
2962 * p-lang.c (GPC_P_INITIALIZE, GPC_MAIN_PROGRAM_NAME_1)
2963 (GPC_MAIN_PROGRAM_NAME_2): New constants.
2964 (pascal_main_name): New function.
2965 * symtab.c: Include p-lang.h.
2966 (find_main_name): Add call to pascal_main_name.
2967 * Makefile.in (symtab.o): Add dependency on p-lang.h.
2969 2007-10-09 Pedro Alves <pedro_alves@portugalmail.pt>
2971 * stabsread.c (read_huge_number): Fix handling of octal
2972 representation when the bit width is known.
2973 (read_range_type): Record unsigned integral types with their size,
2974 when the type size is known.
2976 2007-10-08 Thiago Jung Bauermann <bauerman@br.ibm.com>
2978 * MAINTAINERS (Write After Approval): Add self.
2980 2007-10-08 Pierre Muller <muller@ics.u-strasbg.fr>
2982 * breakpoint.c (print_one_breakpoint_location): ARI fix:
2983 Replace asprintf by xstrprintf.
2985 2007-10-08 Pierre Muller <muller@ics.u-strasbg.fr>
2987 * linux-fork.c: ARI fix: include "gdb_dirent.h" instead of <dirent.h>.
2988 Makefile.in (linux-fork.o): Add gdb_dirent.h dependency.
2990 2007-10-08 Pierre Muller <muller@ics.u-strasbg.fr>
2992 * linux-fork.c: Move "gdb_wait.h" include back to the position of
2993 <sys/wait.h> include before last commit.
2995 2007-10-08 Maciej W. Rozycki <macro@mips.com>
2997 * mips-tdep.c (mips32_next_pc): Fix a typo in BGTZL.
2999 2007-10-08 Markus Deuling <deuling@de.ibm.com>
3001 * aix-thread.c (supply_gprs64, supply_fprs, supply_sprs64)
3002 (supply_sprs32, fetch_regs_user_thread, fetch_regs_kernel_thread)
3003 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs64, fill_sprs32)
3004 (store_regs_user_thread, store_regs_kernel_thread): Use
3005 get_regcache_arch or get_frame_arch to get at the current architecture
3006 by regcache or by frame, respectively.
3008 2007-10-08 Markus Deuling <deuling@de.ibm.com>
3010 * sh64-tdep.c (sh64_push_dummy_call, sh64_register_type)
3011 (sh64_pseudo_register_read, sh64_pseudo_register_write)
3012 (sh64_do_fp_register, sh64_do_pseudo_register, sh64_do_register)
3013 (sh64_print_register, sh64_media_print_registers_info)
3014 (sh64_compact_print_registers_info, sh64_unwind_sp)
3015 (sh64_unwind_pc): Replace current_gdbarch by gdbarch.
3016 (sh64_show_media_regs, sh64_show_compact_regs, sh64_frame_cache)
3017 (sh64_frame_prev_register): Use FRAME to recognize current
3020 2007-10-08 Markus Deuling <deuling@de.ibm.com>
3022 * sh-tdep.c (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu)
3023 (sh_sh2a_register_type, sh_sh3e_register_type, sh_sh4_register_type)
3024 (sh_register_reggroup_p, sh_dwarf2_frame_init_reg): Replace
3025 current_gdbarch by gdbarch.
3026 (sh_generic_show_regs, sh3_show_reg, sh2e_show_regs, sh2a_show_regs)
3027 (sh2a_nofpu_show_regs, sh3e_show_regs, sh3_dsp_show_regs)
3028 (sh4_show_regs, sh4_nofpu_show_regs, sh_dsp_show_regs, sh_frame_cache)
3029 (sh_frame_prev_register, sh_unwind_sp, sh_unwind_pc): Use FRAME to
3030 recognize current architecture.
3032 2007-10-08 Markus Deuling <deuling@de.ibm.com>
3034 * remote.c (init_remote_state, fetch_register_using_p)
3035 (process_g_packet, remote_fetch_registers, remote_prepare_to_store)
3036 (store_register_using_P, store_registers_using_G)
3037 (remote_store_registers): Use get_regcache_arch or get_frame_arch to
3038 get at the current architecture by regcache or by frame, respectively.
3040 2007-10-08 Markus Deuling <deuling@de.ibm.com>
3042 * m68k-tdep.c (m68k_register_to_value, m68k_value_to_register)
3043 (m68k_svr4_extract_return_value, m68k_svr4_store_return_value)
3044 (m68k_frame_prev_register, m68k_get_longjmp_target): Use
3045 get_regcache_arch or get_frame_arch to get at the current architecture
3046 by regcache or by frame, respectively.
3047 * m68klinux-tdep.c (m68k_linux_sigtramp_frame_cache): Likewise.
3048 * m68klinux-nat.c (fetch_register, old_fetch_inferior_registers)
3049 (store_register, old_store_inferior_registers, supply_gregset)
3050 (supply_fpregset, fill_fpregset): Likewise.
3051 * m68k-tdep.c (m68k_register_type, m68k_unwind_pc, m68k_dump_tdep):
3052 Replace current_gdbarch by gdbarch.
3054 2007-10-08 Markus Deuling <deuling@de.ibm.com>
3056 * irix5-nat.c (supply_gregset, fill_gregset, supply_fpregset)
3057 (fill_fpregset, fetch_core_registers): Use get_regcache_arch or
3058 get_frame_arch to get at the current architecture by regcache or by
3059 frame, respectively.
3061 2007-10-08 Markus Deuling <deuling@de.ibm.com>
3063 * ia64-tdep.c (ia64_pseudo_register_read, ia64_pseudo_register_write):
3064 Replace current_gdbarch by gdbarch.
3065 * ia64-tdep.c (ia64_frame_prev_register
3066 (ia64_sigtramp_frame_prev_register)
3067 (ia64_libunwind_frame_prev_register): Use get_regcache_arch or
3068 get_frame_arch to get at the current architecture by regcache or by
3069 frame, respectively.
3070 * ia64-linux-nat.c (ia64_linux_fetch_register)
3071 (ia64_linux_fetch_registers, ia64_linux_store_register)
3072 (ia64_linux_store_registers): Likewise.
3074 2007-10-08 Markus Deuling <deuling@de.ibm.com>
3076 * hppa-tdep.c (hppa_stub_unwind_sniffer, hppa_dump_tdep): Replace
3077 current_gdbarch by gdbarch.
3078 * hppa-linux-nat.c (fetch_register, store_register)
3079 (hppa_linux_fetch_inferior_registers)
3080 (hppa_linux_store_inferior_registers): Use get_regcache_arch or
3081 get_frame_arch to get at the current architecture by regcache or by
3082 frame, respectively.
3083 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code
3084 (hppa_hpux_unwind_adjust_stub): Likewise.
3085 * hppa-hpux-nat.c (hppa_hpux_fetch_register, hppa_hpux_store_register)
3086 (hppa_hpux_fetch_inferior_registers)
3087 (hppa_hpux_store_inferior_registers): Likewise.
3089 2007-10-08 Markus Deuling <deuling@de.ibm.com>
3091 * cris-tdep.c (cris_sigcontext_addr, cris_sigtramp_frame_unwind_cache)
3092 (cris_scan_prologue, crisv32_scan_prologue, find_step_target)
3093 (cris_software_single_step, cris_supply_gregset): Use get_regcache_arch
3094 or get_frame_arch to get at the current architecture by regcache or by
3095 frame, respectively.
3096 * cris-tdep.c (crisv32_single_step_through_delay, cris_push_dummy_call)
3097 (cris_unwind_pc, cris_unwind_sp, cris_register_type, cris_dump_tdep)
3098 (crisv32_register_type, cris_dwarf2_frame_init_reg): Replace
3099 current_gdbarch by gdbarch.
3101 2007-10-08 Markus Deuling <deuling@de.ibm.com>
3103 * arm-tdep.c (arm_scan_prologue, arm_make_prologue_cache)
3104 (thumb_get_next_pc, arm_get_next_pc, arm_extract_return_value)
3105 (arm_store_return_value): Use get_regcache_arch or get_frame_arch to
3106 get at the current architecture by regcache or by·frame, respectively.
3107 (arm_push_dummy_call, arm_dump_tdep): Replace current_gdbarch by
3110 2007-10-08 Markus Deuling <deuling@de.ibm.com>
3112 * amd64-tdep.c (amd64_frame_prev_register, amd64_sigtramp_frame_cache):
3113 Use get_regcache_arch or get_frame_arch to get at the current
3114 architecture by regcache or by frame, respectively.
3115 * amd64-linux-tdep.c (amd64_linux_sigcontext_addr): Likewise.
3116 * amd64-nat.c (amd64_supply_native_gregset)
3117 (amd64_collect_native_gregset): Replace current_gdbarch by gdbarch.
3119 2007-10-08 Markus Deuling <deuling@de.ibm.com>
3121 * alpha-tdep.c (alpha_register_reggroup_p): Replace current_gdbarch by
3123 * alpha-linux-nat.c (alpha_linux_register_u_offset): Likewise.
3124 (alpha_sigtramp_frame_unwind_cache, alpha_sigtramp_frame_this_id)
3125 (alpha_sigtramp_frame_sniffer, alpha_next_pc): Use get_regcache_arch or
3126 get_frame_arch to get at the current architecture by regcache or by
3127 frame, respectively.
3128 * alpha-nat.c (fetch_osf_core_registers): Likewise.
3130 2007-10-08 Markus Deuling <deuling@de.ibm.com>
3132 * dwarf2-frame.c (read_reg, execute_cfa_program, dwarf2_frame_cache)
3133 (dwarf2_frame_default_init_reg, dwarf2_frame_prev_register): Replace
3134 current_gdbarch by gdbarch.
3135 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Likewise.
3137 2007-10-08 Markus Deuling <deuling@de.ibm.com>
3139 * regcache.c (init_regcache_descr, register_type, read_pc_pid)
3140 (write_pc_pid, regcache_dump): Replace current_gdbarch by gdbarch.
3141 * regcache.c (regcache_raw_write): Use get_regcache_arch or
3142 get_frame_arch to get at the current architecture by regcache or by
3143 frame, respectively.
3145 2007-10-08 Markus Deuling <deuling@de.ibm.com>
3147 * findvar.c (value_of_register, locate_var_value): Use
3148 get_regcache_arch or get_frame_arch to get at the current architecture
3149 by regcache or by frame, respectively.
3150 * findvar.c (default_value_from_register, value_from_register): Replace
3151 current_gdbarch by gdbarch.
3153 2007-10-08 Pierre Muller <muller@ics.u-strasbg.fr>
3155 * config/i386/nm-i386.h (CHILD_POST_STARTUP_INFERIOR): ARI fix: Remove.
3157 2007-10-08 Pierre Muller <muller@ics.u-strasbg.fr>
3159 * linux-fork.c: ARI fix: include "gdb_wait.h" instead of <sys/wait.h>.
3160 Makefile.in (linux-fork.o): Add gdb_wait.h dependency.
3162 2007-10-05 Daniel Jacobowitz <dan@codesourcery.com>
3164 * remote.c (get_offsets): Only call free_symfile_segment_data if
3167 2007-10-03 Pierre Muller <muller@ics.u-strasbg.fr>
3169 * objc-exp.y: ARI fix: remove 4 PARAMS.
3171 2007-10-03 Daniel Jacobowitz <dan@codesourcery.com>
3173 * NEWS: Use uniform spacing. Correct version number for GDB 6.7
3174 news. Mention XML support for M68K in GDB 6.7.
3176 2007-10-03 Daniel Jacobowitz <dan@codesourcery.com>
3178 * gdbtypes.c (create_range_type): Do not set TYPE_FIELD_TYPE for the
3180 (init_vector_type): Use builtin_type_int32.
3182 2007-10-02 Ulrich Weigand <uweigand@de.ibm.com>
3184 * s390-tdep.c (s390_regset_from_core_section): Allow excess section
3185 size to enable bi-arch generate-core-file support.
3187 2007-10-02 Markus Deuling <deuling@de.ibm.com>
3189 * spu-tdep.c (info_spu_signal_command): Fix output for SPU signal.
3191 2007-10-02 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
3193 * tui/tui-interp.c (tui_init): Initialize tui's SIGWINCH
3195 * tui/tui-win.c (tui_initialize_win): New function for
3196 initializing tui's SIGWINCH signal handler.
3197 * tui/tui-win.h (tui_initialize_win): Declare.
3199 2007-10-02 Ulrich Weigand <uweigand@de.ibm.com>
3201 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Cast
3202 pointer to uintptr_t before casting to CORE_ADDR.
3204 2007-10-02 Markus Deuling <deuling@de.ibm.com>
3206 * linux-nat.c (PTRACE_GETSIGINFO): Add define.
3208 2007-10-02 Mark Mitchell <mark@codesourcery.com>
3210 * mingw-hdep.c (gdb_select): Stop helper threads before returning.
3211 * ser-mingw.c (enum select_thread_state): New type.
3212 (struct ser_console_state): Add have_started and thread_state.
3213 (select_thread_wait): New function.
3214 (thread_fn_type): New type.
3215 (create_select_thread): New function.
3216 (destroy_select_thread): Likewise.
3217 (start_select_thread): Likewise.
3218 (stop_select_thread): Likewise.
3219 (console_select_thread): Use new functions.
3220 (pipe_select_thread): Likewise.
3221 (file_select_thread): Likewise.
3222 (ser_console_wait_handle): Likewise.
3223 (ser_console_done_wait_handle): Likewise.
3224 (ser_console_close): Likewise.
3225 (free_pipe_state): Likewise.
3226 (pipe_wait_handle): Likewise.
3227 (pipe_done_wait_handle): Likewise.
3228 (struct net_windows_state): Derive from ser_console_state.
3229 (net_windows_select_thread): Use new functions.
3230 (net_windows_wait_handle): Likewise.
3231 (net_windows_done_wait_handle): Likewise.
3232 (net_windows_close): Likewise.
3234 2007-10-02 Daniel Jacobowitz <dan@codesourcery.com>
3236 * inflow.c (terminal_ours_1): Remove useless line.
3238 2007-10-02 Daniel Jacobowitz <dan@codesourcery.com>
3240 * mips-tdep.c (mips_read_fp_register_double): Correct check for
3242 (mips_print_fp_register): Correct check for even FP registers.
3243 (mips_virtual_frame_pointer): New function.
3244 (mips_gdbarch_init): Call set_gdbarch_virtual_frame_pointer.
3246 2007-09-30 Mike Frysinger <vapier@gentoo.org>
3248 * value.h (lookup_only_internalvar): New prototype.
3249 (create_internalvar): Likewise.
3250 * value.c (lookup_only_internalvar): New function.
3251 (create_internalvar): Likewise.
3252 (lookup_internalvar): Use new lookup_only_internalvar and
3253 create_internalvar functions.
3254 * parse.c (write_dollar_variable): Look up $ symbols in internal
3255 table first rather than last.
3257 2007-09-30 Daniel Jacobowitz <dan@codesourcery.com>
3259 * linux-nat.c (linux_nat_new_thread): New variable.
3260 (linux_child_follow_fork): Set inferior_ptid to include LWP ID. Use
3261 linux_nat_switch_fork.
3262 (lwp_list): Make public.
3263 (add_lwp): Call linux_nat_new_thread.
3264 (lin_lwp_attach_lwp, linux_nat_attach): Call add_lwp after stopping
3266 (resume_callback): Clear lp->siginfo. Remove unused variable.
3267 (linux_nat_resume): Assert that the LWP list is already initialized.
3269 (save_siginfo): New.
3270 (stop_wait_callback, linux_nat_wait): Call it.
3271 (linux_nat_set_new_thread, linux_nat_get_siginfo): New.
3272 * linux-nat.h (struct lwp_info): Add siginfo.
3273 (lwp_list, linux_nat_set_new_thread, linux_nat_get_siginfo): Declare.
3276 * amd64-linux-nat.c (amd64_linux_dr): New.
3277 (amd64_linux_dr_get): Take a PTID argument. Correct typo.
3278 (amd64_linux_dr_set): Take a PTID argument.
3279 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use ALL_LWPS.
3280 (amd64_linux_dr_reset_addr): Use amd64_linux_dr_set_addr.
3281 (amd64_linux_dr_get_status): Pass inferior_ptid to amd64_linux_dr_get.
3282 (amd64_linux_new_thread): New.
3283 (_initialize_amd64_linux_nat): Call linux_nat_set_new_thread.
3284 * i386-linux-nat.c (i386_linux_dr): New.
3285 (i386_linux_dr_get, i386_linux_dr_set): Take a PTID argument.
3286 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use ALL_LWPS.
3287 (i386_linux_dr_reset_addr): Use i386_linux_dr_set_addr.
3288 (i386_linux_dr_get_status): Pass inferior_ptid to i386_linux_dr_get.
3289 (i386_linux_new_thread): New.
3290 (i386_linux_resume): Remove unnecessary PID check.
3291 (_initialize_i386_linux_nat): Call linux_nat_set_new_thread.
3292 * ia64-linux-nat.c (enable_watchpoints_in_psr): Take PTID argument.
3293 (fetch_debug_register, fetch_debug_register_pair): Delete.
3294 (debug_registers): New.
3295 (ia64_linux_insert_watchpoint, ia64_linux_remove_watchpoint): Use
3296 ALL_LWPS and debug_registers.
3297 (ia64_linux_new_thread): New.
3298 (ia64_linux_stopped_data_address): Use linux_nat_get_siginfo.
3299 (_initialize_ia64_linux_nat): Call linux_nat_set_new_thread.
3300 * ppc-linux-nat.c (last_stopped_data_address): Delete.
3301 (saved_dabr_value): New.
3302 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint): Use
3304 (ppc_linux_new_thread): New.
3305 (ppc_linux_stopped_data_address): Use linux_nat_get_siginfo.
3306 (ppc_linux_stopped_by_watchpoint): Call ppc_linux_stopped_data_address.
3307 (_initialize_ppc_linux_nat): Call linux_nat_set_new_thread.
3308 * s390-nat.c (s390_stopped_by_watchpoint): Clear the watchpoint status
3310 (s390_fix_watch_points): Take a PTID argument.
3311 (s390_insert_watchpoint, s390_remove_watchpoint): Use ALL_LWPS.
3312 (_initialize_s390_nat): Call linux_nat_set_new_thread.
3314 2007-09-30 Daniel Jacobowitz <dan@codesourcery.com>
3315 Jeff Johnston <jjohnstn@redhat.com>
3317 * breakpoint.c (watchpoints_triggered): New.
3318 (bpstat_stop_status): Remove STOPPED_BY_WATCHPOINT argument.
3319 Check watchpoint_triggered instead. Combine handling for software
3320 and hardware watchpoints. Do not use target_stopped_data_address
3321 here. Always check a watchpoint if its scope breakpoint triggers.
3322 Do not stop for thread or overlay events. Improve check for
3323 triggered watchpoints without a value change.
3324 (watch_command_1): Insert the scope breakpoint first. Link the
3325 scope breakpoint to the watchpoint.
3326 * breakpoint.h (enum watchpoint_triggered): New.
3327 (struct breakpoint): Add watchpoint_triggered.
3328 (bpstat_stop_status): Update prototype.
3329 (watchpoints_triggered): Declare.
3330 * infrun.c (enum infwait_status): Add infwait_step_watch_state.
3331 (stepped_after_stopped_by_watchpoint): Delete.
3332 (handle_inferior_event): Make stepped_after_stopped_by_watchpoint
3333 local. Handle infwait_step_watch_state. Update calls to
3334 bpstat_stop_status. Use watchpoints_triggered to check
3336 * remote.c (stepped_after_stopped_by_watchpoint): Remove extern.
3337 (remote_stopped_data_address): Do not check it.
3339 2007-09-29 Daniel Jacobowitz <dan@codesourcery.com>
3341 * configure.ac: Add $LIBINTL when testing libbfd.
3342 * configure: Regenerated.
3344 2007-09-28 Vladimir Prus <vladimir@codesourcery.com>
3346 * NEW: Mention pending breakpoint changes and
3347 support for breakpoints at multiple locations.
3349 2007-09-27 Daniel Jacobowitz <dan@codesourcery.com>
3351 * arm-linux-tdep.c (arm_linux_software_single_step): New.
3352 (arm_linux_init_abi): Use it.
3353 * arm-tdep.c (arm_get_next_pc): Make global. Handle all-ones
3354 condition correctly.
3355 * arm-tdep.h (arm_get_next_pc): Declare.
3356 * Makefile.in (arm-linux-tdep.o): Update.
3358 2007-09-26 Vladimir Prus <vladimir@codesourcery.com>
3360 * varobj.c (install_new_value): Don't
3361 call value_get_print_value when a value is
3362 lazy. Update the print_value member in a
3365 2007-09-26 Vladimir Prus <vladimir@codesourcery.com>
3367 * breakpoint.c (create_breakpoint): Set
3368 condition on each location, not on the first
3369 location of breakpoint.
3371 2007-09-26 Jim Blandy <jimb@codesourcery.com>
3373 * remote.c (getpkt_sane): Fix error message. No animals were
3374 harmed in the making of this debugger.
3376 2007-09-26 Pierre Muller <muller@ics.u-strasbg.fr>
3378 * p-typeprint.c: Fix 11 ARI reported problems.
3379 (pascal_print_type): Fix 4 operator at end of line.
3380 (pascal_type_print_method_args) : Replace 2 DEPRECATED_STREQN macros
3381 using strncmp function.
3382 (pascal_type_print_base): Fix 2 operator at end of line.
3383 (pascal_type_print_base) : Replace 3 DEPRECATED_STREQN macros
3384 using strncmp function.
3387 2007-09-26 Pierre Muller <muller@ics.u-strasbg.fr>
3389 * Fix PR pascal/2231
3390 dwarf2read.c (read_subroutine_type):
3391 All pascal functions are prototyped.
3393 2007-09-26 Pierre Muller <muller@ics.u-strasbg.fr>
3395 * Fix PR pascal/2283
3396 p-valprint.c (pascal_val_print): correct current language check.
3397 Also print array of char as strings.
3400 2007-09-26 David Ung <davidu@mips.com>
3401 Maciej W. Rozycki <macro@mips.com>
3403 * mips-tdep.c (mips_n32n64_return_value): Fix a comment.
3405 2007-09-25 Pierre Muller <muller@ics.u-strasbg.fr>
3407 * p-exp.y: Fix 12 ARI reported problems.
3408 (name_not_typename): Fix 2 operator at end of line issues.
3409 (yylex): Fix 3 operator at end of line issues.
3410 Replace 7 DEPRECATED_STREQ macros using strcmp function.
3412 2007-09-25 David Ung <davidu@mips.com>
3413 Maciej W. Rozycki <macro@mips.com>
3415 * mips-tdep.c (mips_n32n64_return_value): Per N32/N64 ABI
3416 rules return composite types in registers as appropriate.
3418 2007-09-24 Jim Blandy <jimb@codesourcery.com>
3420 * symfile.h (struct symfile_segment_data): Doc fixes.
3421 * symfile.c (symfile_map_offsets_to_segments): Doc fixes.
3422 Assert that we were passed some loaded segment addresses,
3423 and that sections' segment numbers are valid.
3424 Simplify offset calculation.
3425 * remote.c (get_offsets): Clarify selection of relocate-by-segment
3426 strategy, and set num_segments correctly. Delete redundant
3427 assignments to do_sections.
3429 2007-09-24 Daniel Jacobowitz <dan@codesourcery.com>
3431 * frame.c (get_prev_frame_1): Also check for PC in the same register.
3433 2007-09-24 Vladimir Prus <vladimir@codesourcery.com>
3435 * breakpoint.c (remove_sal): New.
3436 (expand_line_sal_maybe): New.
3437 (create_breakpoints): Call expand_line_sal_maybe.
3438 (clear_command): Add comment.
3439 (breakpoint_re_set_one): Call expand_line_sal_maybe.
3440 * linespec.c (decode_indirect): Set explicit_pc to 1.
3441 (decode_all_digits): Set explicit_line to 1.
3442 (append_expanded_sal): New.
3443 (expand_line_sal): New.
3444 * linespec.h (expand_line_sal): Declare.
3445 * symtab.c (init_sal): Initialize explicit_pc
3447 * symtab.h (struct symtab_and_line): New fields
3448 explicit_pc and explicit_line.
3450 2007-09-23 Daniel Jacobowitz <dan@codesourcery.com>
3452 * infcall.c (call_function_by_hand): Handle language-specific
3453 pass and return by reference.
3455 * cp-abi.c (cp_pass_by_reference): New.
3456 * cp-abi.h (cp_pass_by_reference): Declare.
3457 (struct cp_abi_ops): Add pass_by_reference.
3458 * gnu-v3-abi.c (gnuv3_pass_by_reference): New.
3459 (init_gnuv3_ops): Set pass_by_reference.
3461 * language.c (language_pass_by_reference): New.
3462 (default_pass_by_reference): New.
3463 (unknown_language_defn, auto_language_defn, local_language_defn): Add
3464 default_pass_by_reference.
3465 * langauge.h (struct language_defn): Add la_pass_by_reference.
3466 (language_pass_by_reference, default_pass_by_reference): Declare.
3467 * ada-lang.c (ada_language_defn): Add default_pass_by_reference.
3468 * c-lang.c (c_language_defn, asm_language_defn)
3469 (minimal_language_defn): Likewise.
3470 (cplus_language_defn): Add cp_pass_by_reference.
3471 * f-lang.c (f_language_defn): Add default_pass_by_reference.
3472 * jv-lang.c (java_language_defn): Likewise.
3473 * m2-lang.c (m2_language_defn): Likewise.
3474 * objc-lang.c (objc_language_defn): Likewise.
3475 * p-lang.c (pascal_language_defn): Likewise.
3476 * scm-lang.c (scm_language_defn): Likewise
3478 2007-09-23 Vladimir Prus <vladimir@codesourcery.com>
3480 Allow a code breakpoint to have several locations
3482 * breakpoint.h (enum enable_state): Remove the
3483 bp_shlib_disabled enumerator.
3484 (struct bp_location): New members shlib_disabled,
3485 global_next, enabled and function_name.
3486 Rename pending to condition_not_parsed.
3488 * breakpoint.c (ALL_BP_LOCATIONS): Iterate over global_next.
3489 (ALL_BP_LOCATIONS_SAFE): Likewise.
3490 (breakpoint_enabled): Don't check for pending.
3491 (condition_command): Free and update all locations of
3493 (insert_bp_location): Adjust.
3494 (software_breakpoint_inserted_here_p): Don't care
3495 if breakpoint is enabled, as soon as it's inserted.
3496 (print_it_typical): Print bpstat's location, not
3497 bpstat's breakpoint's location.
3498 (bpstat_stop_status): Iterate over all locations, not
3500 (print_breakpoint_location): New.
3501 (print_one_breakpoint): Renamed to
3502 (print_one_breakpoint_location): ...this. Take
3503 parameters to describe which location is being
3504 printed. Modify code to properly print header
3505 for several locations and individual locations.
3506 (print_one_breakpoint): Print all locations.
3507 (breakpoint_has_pc): New.
3508 (describe_other_breakpoints): Use the above.
3509 (check_duplicates): Renamed to...
3510 (check_duplicates_for): .. this.
3511 (check_duplicates): Use check_duplicates_for.
3512 (allocate_bp_location): Adjust.
3513 (set_raw_breakpoint_without_location): New,
3514 extracted from set_raw_breakpoint.
3515 (set_breakpoint_location_function): New.
3516 (set_raw_breakpoint): Use
3517 set_raw_breakpoint_without_location.
3518 (make_breakpoint_permanent): Mark all locations
3520 (disable_breakpoints_in_shlibs): Iterate over
3522 (disable_breakpoints_in_unloaded_shlib): Likewise.
3523 (re_enable_breakpoints_in_shlibs): Likewise.
3524 (mention): Say "pending" when breakpoint has
3525 zero locations. If breakpoint has more than one
3527 (add_location_to_breakpoint): New.
3528 (create_breakpoint): Accept symtabs_and_lines, not
3529 symtab_and_line. Pass extra sals to
3530 add_location_to_breakpoint.
3531 (create_breakpoints): Pass symtabs_and_lines to
3533 (break_command_1): Make pending breakpoints
3534 have zero locations.
3535 (do_captured_breakpoint): Remove wrong allocation.
3536 (clear_command): Iterate over all locations.
3537 (unlink_locations_from_global_list): Renamed
3538 from unlink_location_from_global_list. Remove
3540 (delete_breakpoint): Remove all locations.
3541 Iterate over all locations when deciding which
3542 other location to re-enable.
3543 (all_locations_are_pending): New.
3544 (update_breakpoint_locations): Renamed from
3545 update_breakpoint_location. Try to match old
3546 and new locations using names of containing
3548 (breakpoint_re_set_one): Adjust.
3549 (find_location_by_number): New.
3550 (disable_command): Allow disabling individual location.
3551 (enable_command): Allow enabling individual location.
3552 * breakpoint.c: Adjust all uses of breakpoint's
3553 enable state to for bp_shlib_disabled change.
3555 2007-09-22 Vladimir Prus <vladimir@codesourcery.com>
3557 * breakpoint.c (do_restore_lang_radix_cleanup): Remove.
3558 (resolve_pending_breakpoint): Remove.
3559 (re_enable_breakpoints_in_shlibs): Remove.
3560 (unlink_locations_from_global_list): New.
3561 (update_breakpoint_locations): New.
3562 (breakpoint_re_set_one): Don't bail out on pending breakpoints.
3563 Use parse_condition and update_breakpoint_location to
3564 reset breakpoint. Ignore 'symbol not found' error from
3566 (breakpoint_re_set): Don't emit newline before the
3567 reason why breakpoint is not reset.
3568 (do_enable_breakpoint): Don't specially process pending
3570 (free_bp_location): New.
3571 (break_command_1): For pending breakpoints, initialize
3572 all fields of a sal with zeroes.
3573 * breakpoint.h (re_enable_breakpoints_in_shlibs): Remove.
3574 * infcmd.c (post_create_inferior): Don't call
3575 re_enable_breakpoints_in_shlibs.
3576 * infrun.c (handle_inferior_event): Likewise.
3577 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
3578 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
3579 * win32-nat.c (get_win32_debug_event): Likewise.
3581 2007-09-22 Vladimir Prus <vladimir@codesourcery.com>
3583 * breakpoint.c (create_breakpoint): Split from
3584 create_breakpoints, implementing most of its logic.
3585 Take just a single sal, single address string and
3586 single condition. Do not take parsed condition at
3588 (create_breakpoints): Just call create_breakpoint
3590 (find_condition_and_thread): New.
3591 (break_command_1): Use find_condition_and_thread.
3592 Do not keep parsed conditions.
3593 (do_captured_breakpoint): Don't convert
3594 condition string to struct expression.
3596 2007-09-22 Vladimir Prus <vladimir@codesourcery.com>
3598 * breakpoint.h (struct breakpoint): Move the cond
3600 (struct bp_location): Here.
3601 * breakpoint.c (condition_command, bpstat_stop_status)
3602 (print_one_breakpoint, allocate_bp_location)
3603 (solib_load_unload_1, create_fork_vfork_event_catchpoint)
3604 (create_exec_event_catchpoint, create_breakpoints)
3605 (break_command_1, watch_command_1, handle_gnu_v3_exceptions)
3606 (create_ada_exception_breakpoint, set_breakpoint_sal)
3607 (delete_breakpoint, breakpoint_re_set_one): Adjust.
3608 * tui/tui-winsource.c (tui_update_breakpoint_info): Adjust.
3610 2007-09-22 Vladimir Prus <vladimir@codesourcery.com>
3612 Associate bp_stat with bp_location, not breakpoint.
3613 * breakpoint.h (breakpoint_at): Change type
3615 * breakpoint.c (bpstat_alloc): Take bp_location,
3617 (bpstat_find_breakpoint): Look at bpstat's location's
3618 owner, not at bpstat->breakpoint_at.
3619 (bpstat_find_step_resume_breakpoint): Likewise.
3620 (bpstat_num): Likewise.
3621 (print_it_typical): Likewise.
3622 (print_bp_stop_message): Likewise.
3623 (watchpoint_check): Likewise.
3624 (bpstat_what): Likewise.
3625 (bpstat_get_triggered_catchpoints): Likewise.
3626 (breakpoint_auto_delete): Likewise.
3627 (delete_breakpoint): Likewise.
3628 (bpstat_stop_status): Pass location, not breakpoint,
3629 to bpstat_alloc. Look at bpstat's location's
3630 owner, not at bpstat->breakpoint_at.
3632 2007-09-21 Jim Blandy <jimb@codesourcery.com>
3634 * macrotab.h (new_macro_table): Document that removing information
3635 from an obstack/bcache-managed macro table leaks memory.
3636 * macrotab.c (macro_free, macro_bcache_free): Instead of asserting
3637 that data is never freed in obstack/bcache-managed macro tables,
3638 just leak the storage.
3639 (macro_undef): If we're undefining a macro at exactly the same
3640 source location that we defined it, simply remove the definition
3643 2007-09-21 Joel Brobecker <brobecker@adacore.com>
3645 * symfile.h (struct sym_fns): Add new field sym_read_linetable.
3646 * coffread.c, dbxread.c, elfread.c, mipsread.c somread.c:
3647 Adjust the struct sym_fns object accordingly by setting
3648 the new field to NULL.
3649 * xcoffread.c (aix_process_linenos): Make static.
3650 (xcoff_sym_fns): Set new field to aix_process_linenos.
3651 * buildsym.c (end_symtab): Replace call to PROCESS_LINENUMBER_HOOK
3652 by call to new the new sym_fns sym_read_linetable function.
3653 * config/powerpc/aix.mt (DEPRECATED_TM_FILE): Delete.
3654 * config/rs6000/tm-rs6000.h: Delete.
3656 2007-09-21 David Ung <davidu@mips.com>
3657 Maciej W. Rozycki <macro@mips.com>
3659 * mips-tdep.c (mips_n32n64_push_dummy_call): Per N32/N64 ABI
3660 rules do not treat composite types specially.
3662 2007-09-20 Maciej W. Rozycki <macro@mips.com>
3664 * mips-tdep.c (mips32_in_function_epilogue_p): New function.
3665 (mips16_in_function_epilogue_p): Likewise.
3666 (mips_in_function_epilogue_p): Likewise.
3667 (mips_gdbarch_init): Register mips_in_function_epilogue_p().
3669 2007-09-19 Joel Brobecker <brobecker@adacore.com>
3671 * configure.ac: Add check for "etext".
3672 * configure, config.in: Regenerate.
3673 * maint.c (TEXTEND): Only define if either _etext or etext
3675 Disable the profiling functionality if TEXTEND is not defined.
3677 2007-09-19 Daniel Jacobowitz <dan@codesourcery.com>
3679 * mips-tdep.c (mips_stub_frame_cache): Correct the saved return
3680 address register. Correct the call to frame_id_build.
3681 (mips_stub_frame_sniffer): Use the stub unwinder when the PC
3684 2007-09-18 Joel Brobecker <brobecker@adacore.com>
3686 * ia64-tdep.c (refine_prologue_limit): Make sure we don't scan
3687 the linetable past the function end.
3689 2007-09-18 James E. Wilson <wilson@specifix.com>
3691 * MAINTAINERS: Update my email address.
3693 2007-09-18 Jerome Guitton <guitton@adacore.com>
3695 * inf-ttrace.c (inf_ttrace_private_thread_info): New structure type.
3696 (inf_ttrace_delete_dying_threads_callback): New function.
3697 (inf_ttrace_resume): After resuming the execution, iterate over
3698 the dying threads to delete them for the thread list.
3699 (inf_ttrace_wait): on TTEVT_LWP_EXIT and TTEVT_LWP_TERMINATE,
3700 mark the corresponding thread as dying instead of removing it
3701 from the thread list.
3702 (inf_ttrace_thread_alive): return 0 for dying threads.
3704 2007-09-17 Joel Brobecker <brobecker@adacore.com>
3706 * infrun.c (insert_step_resume_breakpoint_at_frame): Add assertion
3707 that return_frame is not null.
3709 2007-09-17 Joel Brobecker <brobecker@adacore.com>
3711 * solib-svr4.c: Add include of "auxv.h".
3712 (enable_break): Use the AT_BASE auxiliary entry if available.
3713 * Makefile.in (solib-svr4.o): Update dependencies.
3715 2007-09-17 Joel Brobecker <brobecker@adacore.com>
3717 * NEWS: Create a new section for the next release branch.
3718 Rename the section of the current branch, now that it has
3721 2007-09-17 Jerome Guitton <guitton@adacore.com>
3723 * dwarf2loc.c (dwarf_expr_frame_base): Guard against NULL.
3724 * Makefile.in (dwarf2loc.o): Depend on gdb_assert.h.
3726 2007-09-16 Vladimir Prus <vladimir@codesourcery.com>
3728 * mi/mi-cmds.c (mi_cmds): Register -list-features.
3729 * mi/mi-cmds.h (mi_cmd_list_features): New.
3730 * mi/mi-main.c (mi_cmd_list_features): New.
3732 2007-09-11 Joel Brobecker <brobecker@adacore.com>
3734 GDB 6.7 branch created (branch timestamp: 2007-09-07 14:00 UTC)
3735 * version.in: Bump version to 6.7.50-20070911-cvs.
3737 2007-09-10 Daniel Jacobowitz <dan@codesourcery.com>
3739 * thread.c (free_thread): Do not delete the step resume breakpoint
3742 2007-09-10 Daniel Jacobowitz <dan@codesourcery.com>
3744 * arch-utils.c (gdbarch_info_fill): Also try core_bfd.
3745 * corelow.c (core_read_description): New.
3746 (init_core_ops): Set to_read_description.
3747 * gdbarch.sh: Add gdbarch_core_read_description.
3748 * mips-linux-tdep.c (mips_linux_core_read_description): New.
3749 (mips_linux_init_abi): Call set_gdbarch_core_read_description.
3750 * mips-tdep.c (mips_tdesc_gp32, mips_tdesc_gp64): New.
3751 (mips_register_g_packet_guesses): Use them.
3752 (_initialize_mips_tdep): Initialize them.
3753 * mips-tdep.h (mips_tdesc_gp32, mips_tdesc_gp64): Declare.
3754 * gdbarch.h, gdbarch.c: Regenerated.
3756 2007-09-10 Ulrich Weigand <uweigand@de.ibm.com>
3758 * infrun.c (stepping_past_breakpoint): New global variable.
3759 (stepping_past_breakpoint_ptid): Likewise.
3760 (prepare_to_proceed): Add STEP parameter. Do not check for Ctrl-C.
3761 Only switch threads if we need to single-step over a breakpoint hit
3762 in the previously selected thread. If stepping, remember previous
3763 thread to switch back to in STEPPING_PAST_BREAKPOINT[_PTID]. Call
3764 switch_to_thread instead of copying its contents.
3765 (proceed): Pass STEP to prepare_to_proceed. Always set ONEPROC if
3766 prepare_to_proceed returns true.
3767 (init_wait_for_inferior): Reset STEPPING_PAST_BREAKPOINT.
3768 (context_switch): Call switch_to_thread.
3769 (handle_inferior_event): Switch back to previous thread if requested
3770 in STEPPING_PAST_BREAKPOINT[_PTID] by prepare_to_proceed.
3771 * gdbthread.h (switch_to_thread): Add prototype.
3772 * thread.c (switch_to_thread): Make global.
3774 2007-09-07 Pierre Muller <muller@ics.u-strasbg.fr>
3776 * p-valprint.c: Fix 7 ARI reported problems.
3777 (pascal_val_print): Fix one operator at end of line issue.
3778 Use paddress function to remove use of
3779 deprecated_print_address_numeric function (2 times).
3780 Use SYMBOL_LINKAGE_NAME instead of DEPRECATED_SYMBOL_NAME.
3781 (pascal_value_print): Fix 3 operator at end of line issues.
3783 2007-09-07 Daniel Jacobowitz <dan@codesourcery.com>
3786 * arm-tdep.c (arm_in_call_stub): Delete.
3787 (arm_skip_stub): Handle from_arm and from_thumb stubs.
3789 2007-09-06 Daniel Jacobowitz <dan@codesourcery.com>
3791 * ppc-sysv-tdep.c (do_ppc_sysv_return_value): Handle other integer
3794 2007-09-04 Daniel Jacobowitz <dan@codesourcery.com>
3795 Jim Blandy <jimb@codesourcery.com>
3797 * NEWS: Update description of string changes. Mention print/s.
3798 * c-valprint.c (textual_element_type): New.
3799 (c_val_print): Use it. Do not skip address printing for pointers
3800 with a string format.
3801 (c_value_print): Doc update.
3802 * dwarf2read.c (read_array_type): Use make_vector_type.
3803 * gdbtypes.c (make_vector_type): New.
3804 (init_vector_type): Use it.
3805 (gdbtypes_post_init): Initialize builtin_true_unsigned_char.
3806 (_initialize_gdbtypes): Mark int8_t and uint8_t as TYPE_FLAG_NOTTEXT.
3807 * gdbtypes.h (struct builtin_type): Add builtin_true_unsigned_char.
3808 (TYPE_FLAG_NOTTEXT, TYPE_NOTTEXT): New.
3809 (make_vector_type): New.
3810 * printcmd.c (print_formatted): Only handle 's' and 'i' for examine.
3811 Call the language print routine for string format.
3812 (print_scalar_formatted): Call val_print for string format. Handle
3813 unsigned original types for char format.
3814 (validate_format): Do not reject string format.
3815 * stabsread.c (read_type): Use make_vector_type.
3816 * xml-tdesc.c (tdesc_start_vector): Use init_vector_type.
3818 2007-09-04 Michael Snyder <msnyder@access-company.com>
3820 * expprint.c (print_subexp_standard): Check strchr for null.
3821 * Makefile.in (expprint.o): Depend on gdb_assert.h.
3823 * gnu-v2-abi.c (gnuv2_value_rtti_type): Guard against null.
3825 * stabsread.c (patch_block_status): Guard against null.
3826 * Makefile.in (stabsread.o): Depend on gdb_assert.h.
3828 2007-09-04 Daniel Jacobowitz <dan@codesourcery.com>
3830 * printcmd.c (printf_command): Handle ptr_arg. Correct typo
3831 in internal error message.
3833 2007-09-04 Pedro Alves <pedro_alves@portugalmail.pt>
3834 Daniel Jacobowitz <dan@codesourcery.com>
3836 * infcmd.c (post_create_inferior): Update comment.
3837 (run_command_1): Always call post_create_inferior with 0 as
3840 * i386-cygwin-tdep.h: New.
3841 * i386-cygwin-tdep.c: Include "i386-cygwin-tdep.h".
3842 (win32_xfer_shared_library): Make it extern.
3844 * win32-nat.c: Include gdb_obstack.h and xml-support.h and
3846 (win32_so_ops): Delete.
3847 (get_relocated_section_addrs): Delete.
3848 (solib_symbols_add): Delete.
3849 (register_loaded_dll): Delete.
3850 (win32_make_so): New.
3851 (handle_load_dll): Use win32_make_so.
3852 (win32_free_so): Free the passed in so.
3853 (win32_relocate_section_addresses): Delete.
3854 (win32_solib_create_inferior_hook): Delete.
3855 (handle_unload_dll): Don't add PE offset here. Free so with
3856 win32_free_so instead of free_so.
3857 (win32_special_symbol_handling): Delete.
3858 (get_win32_debug_event): Remove unneeded calls. Set state to
3859 TARGET_WAITKIND_LOADED on a dll unload.
3860 (do_initial_win32_stuff): Clear cygwin_load_start and
3862 (map_code_section_args): Delete.
3863 (dll_code_sections_add): Delete.
3864 (core_section_load_dll_symbols): Delete.
3865 (win32_xfer_shared_libraries): New.
3866 (win32_current_sos): Delete.
3867 (win32_xfer_partial): New.
3868 (open_symbol_file_object): Delete.
3869 (in_dynsym_resolve_code): Delete.
3870 (init_win32_ops): Set win32_xfer_partial as to_xfer_partial member
3871 of win32_ops. Remove win32_so_ops settings. Don't set
3872 current_target_so_ops here.
3874 * Makefile.in (i386_cygwin_tdep_h): New variable.
3875 (i386-cygwin-tdep.o): Update dependencies.
3876 (win32-nat.o): Update dependencies.
3878 2007-09-04 Pedro Alves <pedro_alves@portugalmail.pt>
3879 Daniel Jacobowitz <dan@codesourcery.com>
3881 * gdbarch.sh (core_xfer_shared_libraries): New.
3883 * corelow.c (core_xfer_partial): Handle TARGET_OBJECT_LIBRARIES.
3885 * gdb_obstack.h (obstack_grow_str, obstack_grow_str0): New.
3887 * xml-support.c (gdb_xml_parse): Debug output tweaks.
3888 (xml_escape_text): New.
3889 * xml-support.h (xml_escape_text): Declare.
3891 * config/i386/cygwin.mh (NATDEPFILES): Move corelow.o to ...
3892 * config/i386/cygwin.mt (TDEPFILES): ... here.
3894 * win32-nat.c: (fetch_elf_core_registers): Delete.
3895 (win32_elf_core_fn): Delete.
3896 (_initialize_core_win32): Delete.
3898 * i386-cygwin-tdep.c: Include "regset.h", "gdb_objstack.h",
3899 "xml-support.h" and "gdbcore.h".
3900 (i386_win32_gregset_reg_offset): New.
3901 (I386_WIN32_SIZEOF_GREGSET): New.
3902 (i386_win32_regset_from_core_section): New.
3903 (win32_xfer_shared_library): New.
3904 (struct cpms_data): New.
3905 (core_process_module_section): New.
3906 (win32_core_xfer_shared_libraries): New.
3907 (i386_cygwin_skip_trampoline_code): Register gregset_reg_offset,
3908 gregset_num_regs, sizeof_gregset members of tdep. Register
3909 regset_from_core_section and core_xfer_shared_libraries callbacks.
3911 * Makefile.in (i386-cygwin-tdep.o): Update dependencies.
3912 * gdbarch.h, gdbarch.c: Regenerate.
3914 2007-09-03 Daniel Jacobowitz <dan@codesourcery.com>
3916 * corelow.c (core_xfer_partial): Pass writebuf to
3917 deprecated_xfer_memory in TARGET_OBJECT_MEMORY write case.
3919 2007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
3921 * arm-tdep.h (arm_skip_stub): Declare.
3922 * arm-wince-tdep.c: Don't include "solib-svr4.h". Include
3924 (arm_pe_skip_trampoline_code): New function.
3925 (arm_wince_init_abi): Register arm_pe_skip_trampoline_code as
3926 gdbarch_skip_trampoline_code callback.
3927 * Makefile.in (arm-wince-tdep.o): Update dependencies.
3929 2007-09-03 Daniel Jacobowitz <dan@codesourcery.com>
3931 * MAINTAINERS: Move Fred Fish to Past Maintainers.
3933 2007-09-03 Daniel Jacobowitz <dan@codesourcery.com>
3935 * configure.ac: Add --with-expat.
3936 * configure: Regenerated.
3938 2007-09-03 Andreas Schwab <schwab@suse.de>
3940 * configure.ac: Accept --with-system-readline.
3941 (READLINE, READLINE_DEPS, READLINE_CFLAGS): Define and substitute.
3942 * configure: Regenerate.
3943 * Makefile.in (READLINE, READLINE_DEPS, READLINE_CFLAGS): Use
3945 (CDEPS): Use $(READLINE_DEPS) instead of $(READLINE).
3947 2007-09-03 Maxim Grigoriev <maxim2405@gmail.com>
3948 Daniel Jacobowitz <dan@codesourcery.com>
3950 * mi-main.c (mi_load_progress): Handle MI2 and MI3 interpreters.
3952 2007-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3954 * top.c (print_gdb_version): Fixed a string end-of-line compiler error.
3956 2007-09-02 Daniel Jacobowitz <dan@codesourcery.com>
3958 * top.c (print_gdb_version): Update for GPL version 3.
3960 2007-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3962 * NEWS: Mention the build-id .debug files verification.
3964 2007-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3966 * linux-nat.c (linux_nat_make_corefile_notes): Fixed a buffer overflow.
3968 2007-09-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3970 * Makefile.in (symfile.o): Update dependencies.
3971 * symfile.c (symbol_file_add_with_addrs_or_offsets): Initialize the
3972 DEBUGFILE variable. FIND_SEPARATE_DEBUG_FILE called only if !PSYMTABS.
3973 (struct build_id): New structure.
3974 (build_id_bfd_get, build_id_verify, build_id_to_debug_filename): New.
3975 (find_separate_debug_file): New variable BUILD_ID.
3976 Call BUILD_ID_BFD_GET with BUILD_ID_TO_DEBUG_FILENAME as the first try.
3978 2007-08-31 Vladimir Prus <vladimir@codesourcery.com>
3980 * varobj.c (struct varobj): Fix comment
3981 for the type member not to lie when it can be
3984 2007-08-31 Vladimir Prus <vladimir@codesourcery.com>
3986 Implement -var-info-path-expression.
3988 * mi/mi-cmds.h (mi_cmd_var_info_path_expression):
3990 * mi/mi-cmds.c (mi_cmds): Register var-info-path-expression.
3991 * mi/mi-cmd-var.c (mi_cmd_var_info_path_expression): New.
3992 * varobj.c (struct varobj): New field 'path_expr'.
3993 (c_path_expr_of_child, cplus_path_expr_of_child)
3994 (java_path_expr_of_child): New.
3995 (struct language_specific): New field path_expr_of_child.
3996 (varobj_create): Initialize the path_expr field.
3997 (varobj_get_path_expr): New.
3998 (new_variable): Initialize the path_expr field.
3999 (free_variable): Free the path_expr field.
4000 (adjust_value_for_children_access): New parameter
4002 (c_number_of_children): Adjust.
4003 (c_describe_child): New parameter CFULL_EXPRESSION.
4004 Compute full expression.
4005 (c_value_of_child, c_type_of_child): Adjust.
4006 (cplus_number_of_children): Adjust.
4007 (cplus_describe_child): New parameter CFULL_EXPRESSION.
4008 Compute full expression.
4009 (cplus_name_of_child, cplus_value_of_child)
4010 (cplus_type_of_child): Adjust.
4011 * varobj.h (varobj_get_path_expr): Declare.
4013 2007-08-31 Vladimir Prus <vladimir@codesourcery.com>
4015 * mi/mi-cmd-var.c (print_varobj): If a varobj
4016 type is NULL, don't try to print it.
4018 2007-08-30 Alan Modra <amodra@bigpond.net.au>
4020 * ppc-linux-nat.c (right_fill_reg): Delete.
4021 (supply_gregset): Use ppc_supply_gregset.
4022 (supply_fpregset): Use ppc_supply_fpregset.
4023 (fill_gregset): Use ppc_collect_gregset.
4024 (fill_fpregset): Use ppc_collect_fpregset.
4025 * ppc-linux-tdep.c (PPC_LINUX_PT_*): Don't define.
4026 (right_supply_register, ppc_linux_supply_gregset): Delete.
4027 (ppc32_linux_supply_gregset, ppc64_linux_supply_gregset): Delete.
4028 (ppc_linux_supply_fpregset): Delete.
4029 (ppc_linux_collect_gregset): New function.
4030 (ppc32_linux_reg_offsets, ppc64_linux_reg_offsets): New.
4031 (ppc32_linux_gregset, ppc64_linux_gregset): Update to use reg offsets,
4032 ppc_linux_supply_gregset, and ppc_collect_gregset.
4033 (ppc_linux_fpregset): Rename to ppc32_linux_fpregset and update.
4034 (ppc_linux_gregset, ppc_linux_fpregset): New functions.
4035 (ppc_linux_regset_from_core_section): Update.
4036 * ppc-tdep.h (ppc_linux_gregset, ppc_linux_fpregset): Declare.
4037 (ppc_linux_supply_gregset, ppc_linux_supply_fpregset): Delete.
4038 (struct ppc_reg_offsets): Add gpr_size, xr_size, fpscr_size fields.
4039 * ppcobsd-tdep.c (ppcobsd_supply_gregset): Delete FIXME and assert.
4040 (ppcobsd_collect_gregset): Likewise.
4041 (_initialize_ppcnbsd_tdep): Init gpr_size, xr_size, fpscr_size.
4042 * ppcnbsd-tdep.c (_initialize_ppcobsd_tdep): Likewise.
4043 * ppcobsd-nat.c (_initialize_ppcobsd_nat): Likewise.
4044 * rs6000-aix-tdep.c (rs6000_aix32_reg_offsets): Likewise.
4045 (rs6000_aix64_reg_offsets): Likewise.
4046 (rs6000_aix_supply_regset): Call ppc_supply_fpregset without testing
4047 ppc_floating_point_unit_p.
4048 (rs6000_aix_collect_regset): Similarly.
4049 * rs6000-tdep.c (ppc_supply_reg): Add regsize param. Adjust offset
4050 when regsize is larger than regcache register size.
4051 (ppc_collect_reg): Similarly zero pad when regsize is larger than
4052 regcache register size.
4053 (ppc_greg_offset): New function, split out from..
4054 (ppc_supply_gregset): ..here. Separate code handling all regs from
4055 single reg case. Correct xer offset.
4056 (ppc_fpreg_offset): New function, split out from..
4057 (ppc_supply_fpregset): ..here. Separate code handling all regs from
4059 (ppc_collect_gregset, ppc_collect_fpregset): Likewise.
4060 (ppc_supply_fpregset, ppc_collect_fpregset): Don't assert we have
4061 a fp unit, instead return if no fp.
4063 2007-08-29 Jim Blandy <jimb@codesourcery.com>
4065 * breakpoint.c (watch_command_1): Remove '#ifdef HPUXHPPA' block;
4066 this code has not been compiled for two years.
4068 2007-08-29 Michael Snyder <msnyder@access-company.com>
4070 * event-top.c (gdb_readline2): Return after EOF.
4072 2007-08-29 Joel Brobecker <brobecker@adacore.com>
4074 * symtab.c: Remove a function that has been commented out 3 years ago.
4076 2007-08-29 Randolph Chung <tausq@debian.org>
4078 * hppa-tdep.c (hppa32_cannot_fetch_register)
4079 (hppa64_cannot_fetch_register): New functions.
4080 (hppa_gdbarch_init): Set cannot_fetch_register appropriately.
4081 * hppa-tdep.h (hppa_regnum): Add HPPA_CR26_REGNUM.
4083 2007-08-28 Michael Snyder <msnyder@access-company.com>
4085 * mi/mi-cmd-var.c (mi_print_value_p): No longer necessary to
4086 check for null before calling check_typedef.
4088 * NEWS: Mention Coverity bug fixes.
4090 2007-08-27 Markus Deuling <deuling@de.ibm.com>
4092 * spu-tdep.c (spu_pointer_to_address): New function.
4093 (spu_integer_to_address): Likewise.
4094 (spu_gdbarch_init): Add spu_pointer_to_address and
4095 spu_integer_to_address to gdbarch.
4097 2007-08-26 Pedro Alves <pedro_alves@portugalmail.pt>
4099 * arm-wince-tdep.c (ARM_WINCE_JB_PC): Change to 10.
4101 2007-08-23 Joel Brobecker <brobecker@adacore.com>
4103 * Makefile.in (copying.c): Use the top-level COPYING3 as the file
4104 that contains the GDB license.
4105 * copying.awk: Adjust to the GPLv3 wording.
4106 * copying.c: Regenerate.
4108 2007-08-23 Joel Brobecker <brobecker@adacore.com>
4110 * copying.awk: Protoization, and i18n markup.
4112 2007-08-23 Joel Brobecker <brobecker@adacore.com>
4114 * config/djgpp/djconfig.sh: Switch license to GPLv3.
4115 * copyright.sh: Likewise.
4116 * gdb-events.sh: Likewise.
4117 * gdb_gcore.sh: Likewise.
4118 * gdb_mbuild.sh: Likewise.
4119 * gdbarch.sh: Likewise.
4120 * observer.sh: Likewise.
4121 * features/feature_to_c.sh: Likewise.
4122 * regformats/regdat.sh: Likewise.
4124 2007-08-23 Joel Brobecker <brobecker@adacore.com>
4126 Switch the license of all .c files to GPLv3.
4127 Switch the license of all .h files to GPLv3.
4128 Switch the license of all .cc files to GPLv3.
4130 2007-08-23 Joel Brobecker <brobecker@adacore.com>
4132 * configure.ac: Switch license to GPLv3.
4134 2007-08-22 Daniel Jacobowitz <dan@codesourcery.com>
4136 * mips-tdep.c (mips_gdbarch_init): Use Tag_GNU_MIPS_ABI_FP to
4137 determine the file's FPU type.
4139 2007-08-22 Daniel Jacobowitz <dan@codesourcery.com>
4141 * mips-tdep.c (mips_n32n64_fp_arg_chunk_p): New.
4142 (mips_n32n64_push_dummy_call): Always increment float_argreg along
4143 with argreg. Use mips_n32n64_fp_arg_chunk_p.
4145 2007-08-22 Daniel Jacobowitz <dan@codesourcery.com>
4147 * solib-svr4.c (scan_dyntag): Only read target memory when necessary.
4149 (elf_locate_base): Look for DT_MIPS_RLD_MAP first. Expand comments.
4150 (elf_lookup_lib_symbol): Fix formatting.
4152 2007-08-21 Michael Snyder <msnyder@access-company.com>
4154 * dbxread.c (read_dbx_symtab): Guard null deref.
4157 * valops.c (find_overload_match): Guard against NULL.
4159 2007-08-21 Daniel Jacobowitz <dan@codesourcery.com>
4161 * MAINTAINERS (Patch Champions): Remove self.
4163 2007-08-21 Chris Smith <chris.smith@st.com>
4165 * cli/cli-script.c (read_command_lines): Call dont_repeat for each
4168 2007-08-18 Michael Snyder <msnyder@access-company.com>
4170 * stabsread.c (dbx_lookup_type): Memory leak.
4172 * event-loop.c (delete_async_signal_handler): Move pointer null
4173 test to before pointer dereference.
4175 * ui-out.c (append_header_to_list): Possible cut and paste error.
4177 * MAINTAINERS: white space tweak.
4179 2007-08-17 Michael Snyder <msnyder@access-company.com>
4181 * stack.c (print_frame): Memory leak.
4183 * completer.c (filename_completer): Avoid memory leak.
4184 Remove unnecessary nested block.
4186 * c-exp.y (parse_number): Memory leak.
4188 * completer.c (location_completer): Must free 'fn_list', except
4189 in the one case where it is returned (as 'list').
4191 * varobj.c (value_of_root): Memory leak.
4193 * gdbtypes.h (virtual_base_list): Remove export decl.
4194 * gdbtypes.c (virtual_base_list): Make static. Not called outside.
4195 (virtual_base_index): Memory leak.
4196 (virtual_base_index_skip_primaries): Ditto.
4198 2007-08-17 Maxim Grigoriev <maxim2405@gmail.com>
4200 * xtensa-tdep.c (ARG_NOF, ARG_1ST, PS_WOE, PS_EXC, C0_MAXOPDS)
4201 (C0_NREGS, C0_CLESV, C0_SP, C0_FP, C0_RA, C0_ARGS, C0_NARGS)
4202 (C0_CONST, C0_INEXP, C0_NOSTK): New macros.
4203 (xtensa_read_register): New function.
4204 (xtensa_windowed_frame_cache, xtensa_call0_frame_cache, xtensa_c0reg)
4205 (xtensa_insn_kind): New types.
4206 (xtensa_frame_cache, xtensa_alloc_frame_cache, xtensa_frame_cache)
4207 (xtensa_frame_prev_register, xtensa_return_value, xtensa_skip_prologue)
4208 (xtensa_verify_config, xtensa_pseudo_register_read)
4209 (xtensa_pseudo_register_write, xtensa_extract_return_value)
4210 (xtensa_store_return_value)
4211 (xtensa_push_dummy_call): Extended to support Xtensa Call0 ABI.
4212 (windowing_enabled, extract_call_winsize, xtensa_unwind_dummy_id)
4213 (xtensa_frame_this_id, xtensa_frame_prev_register)
4214 (xtensa_register_type, xtensa_reg_to_regnum): Cosmetic changes.
4215 (call0_frame_cache, call0_frame_get_reg_at_entry)
4216 (call0_classify_opcode, call0_track_op)
4217 (call0_analyze_prologue, call0_frame_cache): New functions.
4219 2007-08-17 Vladimir Prus <vladimir@codesourcery.com>
4221 * breakpoint.c (bpstat_free): New.
4222 (bpstat_clear): Use bpstat_free.
4223 (delete_breakpoint): Document why we cannot
4224 remove bpstats from stop_bpstat.
4225 * breakpoint.h (bpstat_free): Declare.
4227 2007-08-16 Michael Snyder <msnyder@access-company.com>
4229 * event-loop.c (gdb_wait_for_event): Move statement into "if" block.
4231 2007-08-15 Paul Hilfinger <hilfinger@adacore.com>
4232 Joel Brobecker <brobecker@adacore.com>
4234 * ada-lang.c (resolve_subexp): Correct arity of binary operators.
4236 2007-08-15 Paul Hilfinger <hilfinger@adacore.com>
4237 Joel Brobecker <brobecker@adacore.com>
4239 * ada-lang.c (possible_user_operator_p): Alternative fix to last
4240 checkin guarding against NULL.
4242 2007-08-14 Michael Snyder <msnyder@access-company.com>
4244 * tui-command.c, tui-data.c, tui-disasm.c, tui-file.c, tui-io.c,
4245 tui-layout.c, tui-regs.c, tui-source.c, tui-win.c, tui-windata.c,
4246 tui-wingeneral.c, tui-winsource.c: Coding standard, && and ||
4247 go at beginning of new line.
4249 * tui-data.c, tui-data.h, tui-disasm.c, tui-disasm.h, tui-hooks.c,
4250 tui-io.c, tui-layout.c, tui-layout.h, tui-out.c, tui-regs.c,
4251 tui-source.c, tui-source.h, tui-stack.c, tui-win.c, tui-win.h,
4252 tui-windata.c, tui-windata.h, tui-wingeneral.c, tui-winsource.c,
4253 tui-winsource.h, tui.c, tui.h: Function declarations and
4254 definitions, wrap long lines.
4256 * tui-command.c, tui-data.c, tui-disasm.c, tui-layout.c,
4257 tui-regs.c, tui-win.c, tui-windata.c, tui-winsource.c, tui.c:
4258 Reformat block comments to GNU standard.
4260 * tui-command.c, tui-data.c, tui-data.h, tui-disasm.c, tui-file.c,
4261 tui-hooks.c, tui-interp.c, tui-io.c, tui-layout.c, tui-out.c,
4262 tui-regs.c, tui-regs.h, tui-source.c, tui-stack.c, tui-win.c,
4263 tui-windata.c, tui-wingeneral.c, tui-winsource.c, tui-winsource.h,
4264 tui.c, tui.h: Comment reformatting to coding standard (capitals,
4265 spaces after periods, etc).
4267 * tui-data.c, tui-data.h, tui-disasm.c, tui-hooks.c, tui-layout.c,
4268 tui-regs.c, tui-source.c, tui-stack.c, tui-win.c, tui-windata.c,
4269 tui-wingeneral.c, tui-wingeneral.h, tui-winsource.c, tui.c,
4270 tui-winsource.h: Whitespace changes, fix pointer declarations
4273 2007-08-14 Joel Brobecker <brobecker@adacore.com>
4274 Michael Snyder <msnyder@access-company.com>
4276 * ada-lang.c (field_alignment): Guard against NULL.
4278 2007-08-14 Joel Brobecker <brobecker@adacore.com>
4280 * MAINTAINERS (Global Maintainers): Add self.
4282 2007-08-14 Michael Snyder <msnyder@access-company.com>
4284 * mi/mi-interp.c (mi_cmd_interpreter_exec): Dead code, dead variable.
4286 * ada-lang.c (possible_user_operator_p): Guard against NULL.
4288 * varobj.c (cplus_describe_child): Guard against null.
4289 Use "NULL" instead of "0" to initialize pointers.
4291 2007-08-14 Daniel Jacobowitz <dan@codesourcery.com>
4293 * arm-tdep.c (arm_gdbarch_init): Allow unknown ABI and FPU settings
4294 to match any gdbarch with matching OSABI. Set default ABI and FPU
4295 after running the OSABI handler.
4297 2007-08-14 Daniel Jacobowitz <dan@codesourcery.com>
4299 * config/i386/linux.mh (NATDEPFILES): Move corelow.o from here...
4300 * config/i386/linux.mt (TDEPFILES): ...to here.
4302 2007-08-14 Vladimir Prus <vladimir@codesourcery.com>
4304 * breakpoint.c (disable_breakpoints_in_shlibs): Remove
4305 the 'silent' parameter and code to implement that.
4306 * breakpoint.h (disable_breakpoints_in_shlibs): Adjust
4308 * win32-nat.c: Adjust.
4311 2007-08-14 Vladimir Prus <vladimir@codesourcery.com>
4313 * breakpoint.c (update_breakpoints_after_exec): Don't
4314 set address to zero.
4316 2007-08-13 Michael Snyder <msnyder@access-company.com>
4318 * valops.c: Whitespace clean-up.
4320 * tui/tui-winsource.c (tui_alloc_source_buffer): Clean up allocation.
4322 * event-top.c (command_line_handler): Memory leak.
4324 * mi/mi-cmd-var.c (mi_cmd_var_set_format): Memory leak.
4325 No need to make copy.
4327 * source.c (find_source_lines): Require symtab 's'.
4329 2007-08-11 Michael Snyder <msnyder@access-company.com>
4331 * completer.c: Spelling fix in comments.
4333 2007-08-10 Michael Snyder <msnyder@access-company.com>
4335 * gdbtypes.c: Coding standard cleanup.
4336 * gdbtypes.c: Comment/whitespace cleanup.
4338 * stabsread.c (read_huge_number): Attempt to compute value before
4339 values that it depends on.
4341 * linespec.c (decode_dollar): Dead code, ptr can't be non-null.
4342 (decode_objc): Use "NULL" instead of 0.
4343 (find_method): Ditto.
4344 (decode_all_digits): Ditto.
4345 (decode_dollar): Ditto.
4347 * mi/mi-main.c (mi_cmd_data_evaluate_expression): Resource leak.
4349 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Memory leak.
4351 * solib-svr4.c (enable_break): Don't free tmp_pathname until
4354 * completer.c: Comment/whitespace cleanup.
4356 2007-08-10 Joel Brobecker <brobecker@adacore.com>
4358 * Makefile.in (i386nbsd-nat.o): Add missing dependency.
4360 2007-08-10 Maxim Grigoriev <maxim2405@gmail.com>
4362 * remote-fileio.c (remote_fileio_resize_fd_map): Initialize newly
4363 allocated file descriptors.
4365 2007-08-10 Joel Brobecker <brobecker@adacore.com>
4367 * Makefile.in: Minor cleanup throughout; add some missing variables,
4368 add some missing rules, remove some rules that are no longer needed,
4369 and fix the dependencies in several rules.
4371 2007-08-10 Ludovic Courtès <ludo@gnu.org>
4373 * Makefile.in (SFILES): Add scm-{exp,lang,valprint}.c.
4374 (scm_lang_h, scm_tags_h): New.
4375 (COMMON_OBS): Add scm-{exp,lang,valprint}.o.
4376 (scm-exp.o, scm-lang.o, scm-valprint.o): New targets.
4377 * defs.h (enum language): Add `language_scm'.
4379 * MAINTAINERS: Add Emacs local variables to use UTF-8 upon
4382 2007-08-09 Ludovic Courtès <ludo@gnu.org>
4384 * MAINTAINERS (Write After Approval): Add myself.
4386 2007-08-09 Michael Snyder <msnyder@access-company.com>
4388 * solib.c (solib_open): Memory leak -- openp returns xmalloc buffer.
4390 2007-08-09 Joel Brobecker <brobecker@adacore.com>
4392 * solib-som.c (som_relocate_section_addresses): Stop saving
4393 the $CODE$ section in the so_list structure.
4395 2007-08-08 Maxim Grigoriev <maxim2405@gmail.com>
4397 * xtensa-tdep.h (XTENSA_MAX_COPROCESSOR): New.
4398 (xtensa_register_group_t): Add entries for coprocessors.
4399 * xtensa-tdep.c (xtensa_init_reggroups): New register groups.
4400 (xtensa_add_reggroups): Likewise.
4401 (xtensa_register_reggroup_p): Likewise.
4402 (xtensa_coprocessor_register_group): New function.
4405 2007-08-08 Jan Kratochvil <jan.kratochvil@redhat.com>
4407 * serial.c (serial_open): Fix the OPEN parameter macro expansion.
4409 2007-08-08 Michael Snyder <msnyder@access-company.com>
4411 * target.c (target_read_string): Guard against null.
4413 * varobj.c (value_of_root): Move alloc after return to avoid leak.
4415 * tui/tui-layout.c (tui_set_layout): Dead code, dead variable.
4416 (tui_set_layout_for_display_command): Mem leak.
4418 * top.c (command_line_input): Memory leak.
4420 * solib-svr4.c (open_symbol_file_object): Memory leak.
4421 (svr4_current_sos): Ditto.
4422 (enable_break): Ditto.
4424 * cp-valprint.c (cp_print_hpacc_virtual_table_entries): Memory leak.
4426 * dwarf2read.c (add_partial_symbol): Memory leak.
4428 2007-08-06 Michael Snyder <msnyder@access-company.com>
4430 * ada-lang.c (desc_bounds): Comparison of function address to NULL.
4432 2007-08-05 Jim Blandy <jimb@codesourcery.com>
4434 * macroexp.c (init_buffer): Remove testing code that overrides the
4435 caller's length guess.
4436 (gather_arguments): Use a larger initial size, now that the vector
4437 growth code has been exercised.
4439 2007-08-05 Pedro Alves <pedro_alves@portugalmail.pt>
4441 * solib-target.c (solib_target_relocate_section_addresses): Add
4442 orig_delta to addr_high.
4444 2007-08-04 Michael Snyder <msnyder@access-company.com>
4446 * remote-fileio.c (remote_fileio_func_write): Memory leak.
4448 * breakpoint.c (print_one_breakpoint): Off by one error.
4450 * tracepoint.c (add_register): Off by one error.
4451 (stringify_collection_list): Free malloc buffer.
4453 2007-08-03 Michael Snyder <msnyder@access-company.com>
4455 * mi-cmd-var.c (mi_cmd_var_delete): Remove unused variable,
4456 stop memory leak, straighten out cleanups.
4458 * jv-lang.c (java_link_class_type): Guard against NULL.
4460 2007-08-02 Michael Snyder <msnyder@access-company.com>
4462 * gdbtypes.c (create_set_type): Test should only be done within
4463 the preceeding if block. Otherwise, variable is uninitialized.
4465 * gdbtypes.c (check_typedef): Guard NULL.
4467 2007-08-01 Michael Snyder <msnyder@access-company.com>
4469 * cli/cli-decode.c (lookup_cmd): Check for null earlier, to
4470 avoid dereference in lookup_cmd_1.
4472 * tui/tui-data.c (tui_alloc_content): Move assign out of if,
4473 clean up long lines.
4474 (tui_alloc_generic_win_info): Tidy by using XMALLOC macro.
4475 (tui_alloc_win_info): Ditto.
4476 (tui_add_content_elements): Ditto.
4477 * tui/tui-file.c (tui_file_magic): Ditto.
4479 2007-07-31 Michael Snyder <msnyder@access-company.com>
4481 * breakpoint.c (breakpoint_init_inferior): Add 'else' to 'if'.
4482 True and false paths are mutually exclusive.
4484 * event-top.c (command_line_handler): Add pedantic return.
4486 * f-valprint.c (info_common_command): Bail out to prevent null
4487 pointer deref. Break up a long line.
4489 * exec.c (xfer_memory): Remove redundant condition from 'if'.
4491 * symfile.c (reread_separate_symbols): Free xmalloced memory.
4493 * printcmd.c (build_address_symbolic): Remove dead code and dead
4496 2007-07-31 Daniel Jacobowitz <dan@codesourcery.com>
4498 * linespec.c (minsym_found): Advance to the next line if possible.
4500 2007-07-31 Pedro Alves <pedro_alves@portugalmail.pt>
4502 * arm-wince-tdep.c (arm_wince_init_abi): Remove svr4 related call.
4503 * config/arm/wince.mt (TDEPFILES): Remove solib-legacy.o and
4504 solib-svr4.o, and add solib-target.o
4506 2007-07-27 Michael Snyder <msnyder@access-company.com>
4508 * tui/tui-data.c (tui_alloc_generic_win_info): Wrong arg for sizeof.
4510 2007-07-26 Maciej W. Rozycki <macro@linux-mips.org>
4512 * MAINTAINERS (Write After Approval): Add myself.
4514 2007-07-26 Maciej W. Rozycki <macro@mips.com>
4516 * Makefile.in (MAKEHTMLFLAGS): Also search the current directory
4519 2007-07-25 Maciej W. Rozycki <macro@mips.com>
4521 * Makefile.in (MAKEHTMLFLAGS): Remove "-glossary".
4523 2007-07-24 Michael Snyder <msnyder@access-company.com>
4525 * solib-svr4.c (svr4_fetch_objfile_link_map): Null pointer check of
4526 'buffer' must cover both branches that call strcmp (Coverity).
4528 * stack.c (print_frame_args): Check return value of lookup_symbol.
4530 * ax-gdb.c (find_field): Guard against null ptr.
4532 2007-07-24 Ulrich Weigand <uweigand@de.ibm.com>
4534 * regformats/reg-spu.dat: Fix order of npc, id registers.
4536 2007-07-24 Ulrich Weigand <uweigand@de.ibm.com>
4538 * target.c (memory_xfer_partial): Accesses to unmapped overlay
4539 sections should always go to the executable file.
4541 2004-07-20 Chris Dearman <chris@mips.com>
4543 * mips-tdep.c (heuristic_proc_start): Add more MIPS16 function
4544 prologue instructions.
4546 2007-07-20 Maciej W. Rozycki <macro@mips.com>
4548 * mips-tdep.c (mips_next_pc): Use is_mips16_addr() instead of
4551 2007-07-20 Chris Dearman <chris@mips.com>
4552 Maciej W. Rozycki <macro@mips.com>
4554 * mips-tdep.c (fetch_mips_16): Fix typos and reformat the
4557 2007-07-17 Pedro Alves <pedro_alves@portugalmail.pt>
4558 Daniel Jacobowitz <dan@codesourcery.com>
4560 * config/i386/cygwin.mt (TDEPFILES): Add solib-target.o.
4561 * coff-pe-read.c (read_pe_exported_syms): Delete verbose
4563 * NEWS: Mention gdbserver DLL support.
4565 2007-07-17 Daniel Jacobowitz <dan@codesourcery.com>
4567 * dwarf2read.c (dwarf_decode_lines): Detect address size mismatches.
4569 2007-07-16 H.J. Lu <hongjiu.lu@intel.com>
4571 * i386-linux-nat.c (fetch_regs): Work around gcc 3.4 alias
4574 2007-07-13 Kevin Buettner <kevinb@redhat.com>
4576 * mep-tdep.c (mep_analyze_prologue): Update comment for BRA
4579 2007-07-12 Kevin Buettner <kevinb@redhat.com>
4581 * mep-tdep.c (IS_BRA, BRA_DISP): New macros.
4582 (mep_analyze_prologue): Add case for BRA instruction.
4584 2007-07-12 Ulrich Weigand <uweigand@de.ibm.com>
4586 * solib-svr4.c (LM_ADDR_CHECK): Relax prelink recognition heuristic.
4588 2007-07-10 Nick Roberts <nickrob@snap.net.nz>
4590 * breakpoint.c: Include "top.h".
4591 (breakpoint_1): Don't set convenience variable $_ if server prefix
4593 (_initialize_breakpoint): Describe this behaviour in command help.
4595 2007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
4597 * solib-target.c (library_list_start_segment): Cast address to
4600 2007-07-06 Mark Kettenis <kettenis@gnu.org>
4602 * bsd-uthread.c (bsd_uthread_wait): Don't try to fetch thread IDs
4603 for terminated processes.
4605 2007-07-05 Michael Snyder <msnyder@access-company.com>
4607 * event-top.c (cli_command_loop): Prompt string can (and should)
4608 be freed after call to readline (Coverity). Also move local var
4609 declarations into block where they are used.
4611 * tui/tui-interp.c (tui_command_loop): Prompt string can (and
4612 should) be freed after call to readline (Coverity). Also move
4613 local var declarations into block where they are used.
4615 2007-07-03 Andreas Schwab <schwab@suse.de>
4617 * linux-nat.c (linux_nat_info_proc_cmd): Fix parsing of columns in
4620 2007-07-03 Paul Gilliam <pgilliam@us.ibm.com>
4621 Thiago Bauermann <bauerman@br.ibm.com>
4622 Joseph S. Myers <joseph@codesourcery.com>
4623 Daniel Jacobowitz <dan@codesourcery.com>
4625 * remote.c (remote_check_symbols): Use
4626 gdbarch_convert_from_func_ptr_addr.
4627 * infcall.c (find_function_addr): Handle function descriptors
4628 without debugging information.
4629 * ppc-linux-tdep.c (ppc_linux_convert_from_func_ptr_addr): Renamed
4630 from ppc64_linux_convert_from_func_ptr_addr. Handle -msecure-plt.
4631 (ppc_linux_init_abi): Always set convert_from_func_ptr_addr.
4632 * solib-svr4.c (solib_break_names): Remove "._dl_debug_state".
4633 (bfd_lookup_symbol): Do not take a SECT_FLAGS argument. Always
4634 allow SEC_CODE and SEC_DATA.
4635 (enable_break): Update calls. Pass current_target to solib_add.
4636 Use gdbarch_convert_from_func_ptr_addr.
4638 2007-07-03 Ilko Iliev <iliev@ronetix.at>
4639 Daniel Jacobowitz <dan@codesourcery.com>
4641 * symfile.c (print_transfer_performance): Avoid integer overflow.
4644 2007-07-03 Markus Deuling <deuling@de.ibm.com>
4646 * cp-namespace.c (lookup_symbol_file): Add block to
4647 lookup_symbol_global call.
4648 * Makefile.in (solist_h): Add dependency on symtab header.
4649 (symtab.o): Add dependency on solist header.
4650 * solib.c (solib_global_lookup): New function.
4651 * solib-svr4.c (scan_dyntag): Likewise.
4652 (elf_locate_base): Call helper routine scan_dyntag.
4653 (elf_lookup_lib_symbol): New function.
4654 (_initialize_svr4_solib): Add elf_lookup_lib_symbol to svr4_so_ops.
4655 * solist.h (symtab.h): New include.
4656 (struct target_so_ops): New member lookup_lib_global_symbol.
4657 (solib_global_lookup): New prototype.
4658 * symtab.c: New include solist.h.
4659 (lookup_objfile_from_block): New function.
4660 (lookup_global_symbol_from_objfile): New function.
4661 (basic_lookup_symbol_nonlocal): Add block to lookup_symbol_global call.
4662 (lookup_symbol_global): Call library-specific lookup procedure.
4663 * symtab.h (lookup_global_symbol_from_objfile): New prototype.
4665 * NEWS: Document framework.
4667 2007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
4669 * target-descriptions.c (tdesc_create_reg): Do not set reg->type
4672 * cli/cli-script.c (build_command_line): Update NULL check.
4674 2007-07-02 Michael Snyder <msnyder@access-company.com>
4676 * p-exp.y (yylex): Memory leak, 'uptokstart' must be freed (Coverity).
4678 2007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
4680 * Makefile.in (XMLFILES): Add library-list.dtd.
4681 (ALLDEPFILES): Add solib-target.o.
4682 (solib-target.o): New rule.
4683 * remote.c (PACKET_qXfer_libraries): New constant.
4684 (remote_protocol_features): Add qXfer:libraries:read.
4685 (remote_wait): Recognize library stop replies.
4686 (remote_async_wait): Likewise. Fix typo.
4687 (remote_xfer_partial): Handle TARGET_OBJECT_LIBRARIES.
4688 (init_remote_async_ops): Fix typo.
4689 (_initialize_remote): Register "set remote library-info-packet".
4690 * solib-som.c (som_current_sos): Set addr_low and addr_high.
4691 * solib-target.c: New file.
4692 * solib.c (solib_map_sections): Use addr_low and addr_high instead
4694 (info_sharedlibrary_command): Likewise.
4695 (solib_add_library, solib_remove_library): New.
4696 * solist.h (struct so_list): Replace textsection with addr_low and
4698 * target.h (enum target_object): Add TARGET_OBJECT_LIBRARIES.
4699 * NEWS: Describe new qXfer:libraries:read and shared library
4701 * features/library-list.dtd: New.
4703 2007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
4705 * infrun.c (inferior_ignoring_startup_exec_events): Delete.
4706 (start_remote): Use STOP_QUIETLY_REMOTE.
4707 (handle_inferior_event): Do not condition TARGET_WAITKIND_LOADED
4708 support on a SOLIB_ADD definition. Update breakpoints_inserted.
4709 Update to match shared library event breakpoint support. Only
4710 resume if appropriate. Handle STOP_QUIETLY_REMOTE.
4711 (normal_stop): Handle TARGET_WAITKIND_LOADED.
4712 * fork-child.c (startup_inferior): Do not set
4713 inferior_ignoring_startup_exec_events
4714 * inferior.h (inferior_ignoring_startup_exec_events): Delete
4716 (enum stop_kind): Improve documentation. Add STOP_QUIETLY_REMOTE.
4718 2007-07-02 Markus Deuling <deuling@de.ibm.com>
4720 * breakpoint.c (insert_bp_location): Remove dead code
4721 (DISABLE_UNSETTABLE_BREAK).
4722 (disable_breakpoints_in_shlibs)
4723 (disable_breakpoints_in_unloaded_shlib): Likewise (comment).
4725 2007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
4727 * breakpoint.c (reattach_breakpoints): Do not use remove_breakpoint.
4728 Call insert_bp_location.
4730 2007-07-01 H.J. Lu <hongjiu.lu@intel.com>
4732 * core-regset.c (fetch_core_registers): Work around gcc 3.4
4735 2007-07-01 Daniel Jacobowitz <dan@codesourcery.com>
4737 * minsyms.c (lookup_minimal_symbol_by_pc_section): Search fewer
4740 2007-07-01 Daniel Jacobowitz <dan@codesourcery.com>
4742 * top.c (gdb_readline_wrapper_line): Call rl_callback_handler_remove.
4743 (struct gdb_readline_wrapper_cleanup): Remove prompt_orig.
4744 (gdb_readline_wrapper_cleanup): Do not reset the prompt.
4745 (gdb_readline_wrapper): Do not save the prompt. Pass our prompt
4746 to display_gdb_prompt.
4748 2007-07-01 Daniel Jacobowitz <dan@codesourcery.com>
4751 * target.c (memory_xfer_partial): Do not continue past targets with
4754 2007-06-30 Andreas Schwab <schwab@suse.de>
4756 * m68k-tdep.c (m68k_ps_type): New.
4757 (m68k_init_types): New.
4758 (m68k_register_type): Use m68k_ps_type for PS register.
4759 (_initialize_m68k_tdep): Call m68k_init_types.
4761 * m68k-tdep.c (m68k_gdbarch_init): Don't infer coldfire flavour
4762 from the generic m68k arch.
4764 2007-06-28 Michael Snyder <msnyder@access-company.com>
4766 * m2-typeprint.c (m2_print_type): Move pointer ref after null test
4769 * linux-thread-db.c (thread_db_get_thread_local_address): Add
4770 gdb_assert before using return value of find_thread_pid (Coverity).
4772 * source.c (unset_substitute_path_command): Plug leak (Coverity).
4774 * cli/cli-script.c (build_command_line): Add null pointer guard
4777 2007-06-27 Daniel Jacobowitz <dan@codesourcery.com>
4779 * linux-thread-db.c (thread_db_attach): Delete.
4780 (thread_db_detach): Typo fix. Call target_mourn_inferior
4781 instead of fixing up proc_handle.
4782 (have_threads_callback, have_threads): New functions.
4783 (thread_db_wait): Remove dead proc_handle.pid check. Only
4784 translate PTIDs if we have registered threads. Check for new
4785 threads if we have none.
4786 (thread_db_create_inferior, thread_db_post_startup_inferior): Delete.
4787 (find_new_threads_callback): Only enable event reporting if TID == 0.
4788 (same_ptid_callback): New.
4789 (thread_db_get_thread_local_address): Check for new threads.
4790 (init_thread_db_ops): Don't set to_attach, to_create_inferior,
4791 or to_post_startup_inferior.
4793 2007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
4795 * infrun.c (adjust_pc_after_break): Do not assume software single-step
4796 is always active if SOFTWARE_SINGLE_STEP_P is true.
4797 (resume): Use gdbarch_software_single_step[_p] instead of
4798 SOFTWARE_SINGLE_STEP[_P].
4799 (handle_inferior_event): Do not check for SOFTWARE_SINGLE_STEP_P.
4801 * gdbarch.sh (software_single_step): Remove target macro.
4802 * gdbarch.h, gdbarch.c: Regenerate.
4804 2007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
4806 * gdbarch.sh (gdbarch_swap_ftype, deprecated_register_gdbarch_swap,
4807 DEPRECATED_REGISTER_GDBARCH_SWAP): Remove.
4808 (struct gdbarch_swap, struct gdbarch_swap_registration,
4809 struct gdbarch_swap_registry, gdbarch_swap_registry,
4810 current_gdbarch_swap_init_hack, current_gdbarch_swap_out_hack,
4811 current_gdbarch_swap_in_hack): Remove.
4812 (find_arch_by_info): Do not call current_gdbarch_swap_init_hack.
4813 (gdbarch_find_by_info): Do not call current_gdbarch_swap_in_hack
4814 and current_gdbarch_swap_out_hack, update current_gdbarch directly.
4815 (deprecated_current_gdbarch_select_hack): Likewise.
4816 * gdbarch.h, gdbarch.c: Regenerate.
4818 2007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
4820 * infrun.c (clear_proceed_status): Clean up stop_registers.
4821 (normal_stop): Allocate regcache for stop_registers.
4822 (struct inferior_status): Remove stop_registers member.
4823 (save_inferior_status): Do not save stop_registers.
4824 (restore_inferior_status): Do not restore stop_registers.
4825 (discard_inferior_status): Do not discard stop_registers.
4826 (build_infrun): Remove.
4827 (_initialize_infrun): Do not swap stop_registers.
4829 2007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
4831 * remote.c (remote_address_masked): If remote_address_size is zero,
4832 default to target address size.
4833 (build_remote_gdbarch_data): Remove.
4834 (_initialize_remote): Do not swap remote_address_size.
4836 2007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
4838 * gdbtypes.h (builtin_type_true_char, builtin_type_void,
4839 builtin_type_char, builtin_type_short, builtin_type_int,
4840 builtin_type_long, builtin_type_signed_char,
4841 builtin_type_unsigned_char, builtin_type_unsigned_short,
4842 builtin_type_unsigned_int, builtin_type_unsigned_long,
4843 builtin_type_float, builtin_type_double, builtin_type_long_double,
4844 builtin_type_complex, builtin_type_double_complex, builtin_type_string,
4845 builtin_type_bool, builtin_type_long_long,
4846 builtin_type_unsigned_long_long, builtin_type_void_data_ptr,
4847 builtin_type_void_func_ptr, builtin_type_CORE_ADDR): Replace global
4848 variable declaration with compatibility macro.
4849 * gdbtypes.c (builtin_type_true_char, builtin_type_void,
4850 builtin_type_char, builtin_type_short, builtin_type_int,
4851 builtin_type_long, builtin_type_signed_char,
4852 builtin_type_unsigned_char, builtin_type_unsigned_short,
4853 builtin_type_unsigned_int, builtin_type_unsigned_long,
4854 builtin_type_float, builtin_type_double, builtin_type_long_double,
4855 builtin_type_complex, builtin_type_double_complex, builtin_type_string,
4856 builtin_type_bool, builtin_type_long_long,
4857 builtin_type_unsigned_long_long, builtin_type_void_data_ptr,
4858 builtin_type_void_func_ptr, builtin_type_CORE_ADDR): Remove.
4859 (build_gdbtypes): Remove.
4860 (_initialize_gdbtypes): Do not call build_gdbtypes, move installing
4861 opaque-type-resolution command here. Do not call
4862 deprecated_register_gdbarch_swap.
4864 2007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
4866 * gdbtypes.h (struct builtin_type): New members nodebug_text_symbol,
4867 nodebug_data_symbol, nodebug_unknown_symbol, and nodebug_tls_symbol.
4868 * gdbtypes.c (gdbtypes_post_init): Initialize nodebug_ default types.
4870 * parse.c (msym_text_symbol_type, msym_data_symbol_type): Remove.
4871 (msym_unknown_symbol_type, msym_tls_symbol_type): Remove.
4872 (write_exp_msymbol): Use builtin nodebug_ types instead of them.
4873 (build_parse): Remove.
4874 (_initialize_parse): Do not call build_parse. Do not register
4875 msym_ types for gdbarch-swapping.
4877 * dwarf2read.c (new_symbol): Use default nodebug_data_symbol type
4878 instead of creating private type.
4880 * xcoffread.c (func_symbol_type, var_symbol_type): Remove.
4881 (_initialize_xcoffread): Do not initialized them.
4882 (process_xcoff_symbol): Use builtin nodebug_ types instead of them.
4884 * mdebugread.c (nodebug_func_symbol_type): Remove.
4885 (nodebug_var_symbol_type): Remove.
4886 (_initialize_mdebugread): Do not initialize them.
4887 (parse_symbol): Use builtin nodebug_ type instead of them.
4888 (parse_procedure): Likewise.
4890 2007-06-21 Chris Dearman <chris@mips.com>
4892 * printcmd.c (do_one_display): If display/i, start with an initial
4893 line feed to avoid bad layout if there is a branch delay slot.
4895 2007-06-21 Nigel Stephens <nigel@mips.com>
4896 Maciej W. Rozycki <macro@mips.com>
4898 * disasm.c (gdb_print_insn): Return the number of branch delay
4899 slot instructions too.
4900 * disasm.h (gdb_print_insn): Update prototype.
4901 * printcmd.c (branch_delay_insns): New variable to record the
4902 number of delay slot instructions after disassembling a branch.
4903 (print_formatted): Record the number of branch delay slot
4905 (do_examine): When disassembling, if the last instruction
4906 disassembled has any branch delay slots, then bump the count so
4907 that they get disassembled too.
4908 * tui/tui-disasm.c (tui_disassemble): Update the call to
4910 * NEWS: Document the new behaviour.
4912 2007-06-21 Andreas Schwab <schwab@suse.de>
4914 * regcache.c (write_pc_pid): Restore missing else.
4916 2007-06-20 Ulrich Weigand <uweigand@de.ibm.com>
4918 * regcache.c (regcache_print): Use get_current_regcache ()
4919 instead of current_regcache.
4921 2007-06-20 H.J. Lu <hongjiu.lu@intel.com>
4924 * gcore.c (gcore_command): Use bfd_make_section_anyway_with_flags
4925 instead of bfd_make_section_anyway.
4926 (gcore_create_callback): Likewise. Also set SEC_NEVER_LOAD
4927 when clearing SEC_LOAD.
4929 2007-06-19 Joseph Myers <joseph@codesourcery.com>
4931 * arm-tdep.c (arm_push_dummy_call): Correct padding of partial
4932 registers for big-endian.
4934 2007-06-19 Markus Deuling <deuling@de.ibm.com>
4936 * gdbarch.sh (TARGET_PRINT_INSN): Replace by gdbarch_print_insn.
4937 * disasm.c (dump_insns, gdb_print_insn): Likewise.
4938 * gdbarch.c, gdbarch.h: Regenerate.
4940 2007-06-19 Markus Deuling <deuling@de.ibm.com>
4942 * gdbarch.sh (BELIEVE_PCC_PROMOTION): Replace by
4943 gdbarch_believe_pcc_promotion.
4944 * stabsread.c (define_symbol): Likewise.
4945 Remove unnecessary definition.
4946 * coffread.c (process_coff_symbol): Remove unnecessary code.
4947 * gdbarch.c, gdbarch.h: Regenerate.
4949 2007-06-19 Daniel Jacobowitz <dan@codesourcery.com>
4951 * configure.ac: Do not use ${objdir}.
4952 * configure: Regenerated.
4954 2007-06-18 Ulrich Weigand <uweigand@de.ibm.com>
4956 * gdbarch.sh (deprecated_register_size): Remove.
4957 * gdbarch.h, gdbarch.c: Regenerate.
4959 * arm-tdep.c (arm_push_dummy_call): Replace DEPRECATED_REGISTER_SIZE
4960 by INT_REGISTER_SIZE.
4961 (thumb_get_next_pc, arm_return_in_memory): Likewise.
4962 (arm_gdbarch_init): Do not call set_gdbarch_deprecated_register_size.
4963 * ia64-tdep.c (ia64_gdbarch_init): Do not call
4964 set_gdbarch_deprecated_register_size.
4966 2007-06-18 Markus Deuling <deuling@de.ibm.com>
4968 * gdbarch.sh (DEPRECATED_FP_REGNUM): Replace by
4969 gdbarch_deprecated_fp_regnum.
4970 * std-regs.c (value_of_builtin_frame_fp_reg): Likewise.
4971 * remote-mips.c (mips_wait, mips_fetch_registers): Likewise.
4972 * arch-utils.c (legacy_virtual_frame_pointer): Likewise.
4973 * arch-utils.h (gdbarch_virtual_frame_pointer_ftype): Likewise
4975 * gdbarch.c, gdbarch.h: Regenerate.
4977 2007-06-18 Markus Deuling <deuling@de.ibm.com>
4979 * gdbarch.sh (EXTRACT_RETURN_VALUE): Replace with
4980 gdbarch_extract_return_value.
4981 * value.c (generic_use_struct_convention): Likewise (comment).
4982 * ia64-tdep.c (ia64_use_struct_convention): Likewise (comment).
4983 * arch-utils.c (legacy_return_value): Likewise.
4984 * arch-utils.h (legacy_return_value): Likewise (comment).
4985 * gdbarch.sh (STORE_RETURN_VALUE): Replace by
4986 gdbarch_store_return_value.
4987 * stack.c (return_command): Likewise (comment).
4988 * arch-utils.h (legacy_return_value): Likewise (comment).
4989 * arch-utils.c (legacy_return_value): Likewise.
4990 * gdbarch.c, gdbarch.h: Regenerate.
4992 2007-06-18 Markus Deuling <deuling@de.ibm.com>
4994 * gdbarch.sh (DEPRECATED_USE_STRUCT_CONVENTION): Replace by
4995 gdbarch_deprecated_use_struct_convention.
4996 * arch-utils.c (legacy_return_value): Likewise.
4997 * gdbarch.c, gdbarch.h: Regenerate.
4999 2007-06-18 Markus Deuling <deuling@de.ibm.com>
5001 * gdbarch.sh (DEPRECATED_FUNCTION_START_OFFSET): Replace by
5002 gdbarch_deprecated_function_start_offset.
5003 * symtab.c (find_function_start_sal)skip_prologue_using_sal): Likewise.
5004 * linespec.c (minsym_found): Likewise.
5005 * infrun.c (handle_inferior_event): Likewise.
5006 * infcall.c (find_function_addr): Likewise.
5007 * cli/cli-cmds.c (disassemble_command): Likewise.
5008 * gdbarch.c, gdbarch.h: Regenerate.
5010 2007-06-18 Markus Deuling <deuling@de.ibm.com>
5012 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Replace by
5013 gdbarch_deprecated_reg_struct_has_addr.
5014 * infcall.c (call_function_by_hand): Likewise.
5015 (DEPRECATED_REG_STRUCT_HAS_ADDR_P): Replace by
5016 * gdbarch_deprecated_reg_struct_has_addr_p.
5017 * infcall.c (call_function_by_hand): Likewise.
5018 * gdbarch.c, gdbarch.h: Regenerate.
5020 2007-06-18 Markus Deuling <deuling@de.ibm.com>
5022 * gdbarch.sh (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
5023 * sh-tdep.c (sh_extract_struct_value_address): Remove.
5024 (sh_gdbarch_init): Remove
5025 set_gdbarch_deprecated_extract_struct_value_address.
5026 * sh64-tdep.c (sh64_extract_struct_value_address): Remove.
5027 (sh64_gdbarch_init): Remove
5028 set_gdbarch_deprecated_extract_struct_value_address.
5029 * ia64-tdep.c (ia64_extract_struct_value_address): Remove.
5030 (ia64_gdbarch_init): Remove
5031 set_gdbarch_deprecated_extract_struct_value_address.
5032 * frv-tdep.c (frv_extract_struct_value_address): Remove.
5033 (frv_gdbarch_init): Remove
5034 set_gdbarch_deprecated_extract_struct_value_address.
5035 * gdbarch.c, gdbarch.h: Regenerate.
5037 2007-06-18 Markus Deuling <deuling@de.ibm.com>
5039 * gdbarch.sh (SP_REGNUM): Replace by gdbarch_sp_regnum.
5040 * v850-tdep.c (v850_unwind_sp): Likewise.
5041 * std-regs.c (value_of_builtin_frame_sp_reg): Likewise.
5042 * stack.c (frame_info): Likewise.
5043 * stabsread.c (define_symbol): Likewise.
5044 * sh-tdep.c (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu)
5045 (sh_dwarf2_frame_init_reg, sh_frame_cache, sh_frame_prev_register)
5046 (sh_unwind_sp): Likewise.
5047 * sh64-tdep.c (sh64_push_dummy_call, sh64_frame_cache)
5048 (sh64_frame_prev_register, sh64_unwind_sp): Likewise.
5049 * rs6000-tdep.c (rs6000_push_dummy_call, rs6000_unwind_dummy_id)
5050 (rs6000_frame_cache): Likewise.
5051 * rs6000-nat.c (store_register): Likewise.
5052 * remote-mips.c (mips_wait): Likewise.
5053 * procfs.c (procfs_fetch_registers, procfs_store_registers): Likewise.
5054 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call)
5055 (ppc64_sysv_abi_push_dummy_call): Likewise.
5056 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_cache): Likewise.
5057 * ppcobsd-nat.c (ppcobsd_supply_pcb): Likewise.
5058 * ppcnbsd-tdep.c (ppcnbsd_sigtramp_cache_init): Likewise.
5059 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache): Likewise.
5060 * m32r-rom.c (m32r_supply_register): Likewise.
5061 * frame.c (frame_sp_unwind): Likewise.
5062 * mips-tdep.c (mips_insn16_frame_cache)
5063 (mips_insn32_frame_cache): Likewise (comment).
5064 * m68klinux-nat.c (supply_gregset): Likewise.
5065 * m68k-tdep.c (m68k_get_longjmp_target): Likewise.
5066 * ia64-tdep.c (ia64_frame_prev_register): Likewise.
5067 * i386-tdep.c (i386_get_longjmp_target): Likewise.
5068 * dwarf2-frame.c (dwarf2_frame_default_init_reg): Likewise.
5069 * cris-tdep.c (cris_regnums, cris_sigcontext_addr)
5070 (cris_sigtramp_frame_unwind_cache, cris_push_dummy_call)
5071 (cris_scan_prologue, crisv32_scan_prologue, cris_unwind_sp)
5072 (cris_register_type, crisv32_register_type)
5073 (cris_dwarf2_frame_init_reg): Likewise.
5074 * arch-utils.c (legacy_virtual_frame_pointer): Likewise.
5075 * amd64-tdep.c (amd64_frame_prev_register): Likewise.
5076 * amd64-linux-tdep.c (amd64_linux_sigcontext_addr): Likewise.
5077 * libunwind-frame.c (libunwind_frame_cache): Likewise.
5079 * gdbarch.sh (PC_REGNUM): Replace by gdbarch_pc_regnum.
5080 * regcache.c (read_pc_pid, generic_target_write_pc): Likewise.
5081 * xtensa-tdep.c (xtensa_register_type, xtensa_supply_gregset)
5082 (xtensa_unwind_pc, xtensa_frame_cache, xtensa_frame_prev_register)
5083 (xtensa_extract_return_value, xtensa_store_return_value): Likewise.
5084 * v850-tdep.c (v850_unwind_pc): Likewise.
5085 * stack.c (frame_info): Likewise.
5086 * sh-tdep.c (sh_generic_show_regs, sh3_show_regs, sh2e_show_regs)
5087 (sh2a_show_regs, sh2a_nofpu_show_regs, sh3e_show_regs)
5088 (sh3_dsp_show_regs, sh4_show_regs, sh4_nofpu_show_regs)
5089 (sh_dwarf2_frame_init_reg, sh_frame_prev_register, sh_unwind_pc)
5090 (sh_dsp_show_regs): Likewise.
5091 * shnbsd-tdep.c (shnbsd_supply_gregset)
5092 (shnbsd_collect_gregset): Likewise.
5093 * shnbsd-nat.c (GETREGS_SUPPLIES): Likewise.
5094 * sh64-tdep.c (sh64_compact_reg_base_num, sh64_show_media_regs)
5095 (sh64_frame_prev_register, sh64_unwind_pc): Likewise.
5096 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset)
5097 (6000_register_reggroup_p, rs6000_unwind_pc)
5098 (rs6000_frame_cache): Likewise.
5099 * rs6000-nat.c (regmap, rs6000_fetch_inferior_registers)
5100 (rs6000_store_inferior_registers): Likewise.
5101 * remote-mips.c (mips_wait, mips_load): Likewise.
5102 * procfs.c (procfs_fetch_registers, procfs_store_registers): Likewise.
5103 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_cache): Likewise.
5104 * ppcobsd-nat.c (ppcobsd_supply_pcb): Likewise.
5105 * ppcnbsd-tdep.c (ppcnbsd_sigtramp_cache_init): Likewise.
5106 * ppcnbsd-nat.c (getregs_supplies, ppcnbsd_supply_pcb): Likewise.
5107 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache): Likewise.
5108 * ppc-linux-nat.c (ppc_register_u_addr, fetch_ppc_registers)
5109 (store_ppc_registers, fill_gregset): Likewise.
5110 * mips-tdep.c (mips_stub_frame_cache, mips_gdbarch_init): Likewise.
5111 * mipsnbsd-tdep.c (mipsnbsd_supply_reg, mipsnbsd_fill_reg): Likewise.
5112 * mipsnbsd-nat.c (getregs_supplies): Likewise.
5113 * m68k-tdep.c (m68k_register_type, m68k_unwind_pc): Likewise.
5114 * m68klinux-nat.c (supply_gregset): Likewise.
5115 * irix5-nat.c (fill_gregset): Likewise.
5116 * i386-tdep.c (i386_unwind_pc): Likewise.
5117 * i386-linux-nat.c (i386_linux_resume): Likewise.
5118 * frame.c (get_prev_frame_1): Likewise.
5119 * dwarf2-frame.c (dwarf2_frame_default_init_reg): Likewise.
5120 * dbug-rom.c (dbug_supply_register): Likewise.
5121 * cris-tdep.c (cris_sigtramp_frame_unwind_cache, cris_scan_prologue)
5122 (crisv32_scan_prologue, cris_unwind_pc, cris_register_size)
5123 (cris_register_type, crisv32_register_type, crisv32_register_name)
5124 (cris_dwarf2_frame_init_reg, find_step_target)
5125 (cris_software_single_step, cris_supply_gregset)
5126 (cris_regnums): Likewise.
5127 * alpha-linux-nat.c (alpha_linux_register_u_offset): Likewise.
5128 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
5129 (fill_sprs64, fill_sprs32, store_regs_user_thread): Likewise.
5130 * std-regs.c (value_of_builtin_frame_pc_reg): Likewise.
5131 * mips-linux-tdep.c (mips_linux_write_pc): Likewise.
5133 * gdbarch.sh (PS_REGNUM): Replace by gdbarch_ps_regnum.
5134 * dbug-rom.c (dbug_supply_register): Likewise.
5135 * xtensa-tdep.c (xtensa_supply_gregset, xtensa_frame_cache)
5136 (xtensa_frame_prev_register, xtensa_push_dummy_call): Likewise.
5137 * win32-nat.c (win32_resume): Likewise.
5138 * std-regs.c (value_of_builtin_frame_ps_reg): Likewise.
5139 * m68k-tdep.c (m68k_register_type): Likewise.
5140 * m68klinux-nat.c (supply_gregset): Likewise.
5142 * gdbarch.sh (FP0_REGNUM): Replace by gdbarch_fp0_regnum.
5143 * sh-tdep.c (sh_extract_return_value_fpu, sh_store_return_value_fpu)
5144 (sh2e_show_regs, sh2a_show_regs, sh3e_show_regs, sh4_show_regs)
5145 (sh_sh2a_register_type, sh_sh3e_register_type, sh_sh4_register_type)
5146 (fv_reg_base_num, dr_reg_base_num): Likewise.
5147 * sh64-tdep.c (sh64_fv_reg_base_num, sh64_dr_reg_base_num)
5148 (sh64_fpp_reg_base_num, sh64_compact_reg_base_num, sh64_push_dummy_call)
5149 (sh64_extract_return_value, sh64_store_return_value)
5150 (sh64_show_media_regs, sh64_show_compact_regs, sh64_register_type)
5151 (sh64_do_fp_register, sh64_media_print_registers_info): Likewise.
5152 * procfs.c (procfs_fetch_registers, procfs_store_registers)
5153 (invalidate_cache): Likewise.
5154 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache): Likewise.
5155 * mipsnbsd-tdep.c (mipsnbsd_supply_fpreg)
5156 (mipsnbsd_fill_fpreg): Likewise.
5157 * mipsnbsd-nat.c (mipsnbsd_fetch_inferior_registers)
5158 (mipsnbsd_store_inferior_registers): Likewise.
5159 * mips-linux-tdep.c (mips_supply_fpregset, mips_fill_fpregset)
5160 (mips64_supply_fpregset, mips64_fill_fpregset): Likewise.
5161 * mips-linux-nat.c (mips64_linux_register_addr): Likewise.
5162 * m68k-tdep.c (m68k_register_type, m68k_convert_register_p): Likewise.
5163 * m68klinux-nat.c (getfpregs_supplies, supply_fpregset)
5164 (fill_fpregset): Likewise.
5165 * irix5-nat.c (supply_fpregset, fill_fpregset): Likewise.
5166 * i386-tdep.h (struct_return): Likewise (comment).
5167 * i386-nto-tdep.c (i386nto_register_area): Likewise.
5168 * go32-nat.c (fetch_register, go32_fetch_registers, store_register)
5169 (go32_store_registers): Likewise.
5170 * alpha-tdep.c (alpha_next_pc): Likewise.
5171 * alpha-linux-nat.c (alpha_linux_register_u_offset): Likewise.
5172 * alphabsd-nat.c (alphabsd_fetch_inferior_registers)
5173 (alphabsd_store_inferior_registers): Likewise.
5174 * core-regset.c (fetch_core_registers): Likewise.
5175 * i386v4-nat.c (supply_fpregset, fill_fpregset): Likewise.
5177 * gdbarch.c, gdbarch.h: Regenerate.
5179 2007-06-18 Daniel Jacobowitz <dan@codesourcery.com>
5181 * coffread.c (coff_sym_fns): Add default_symfile_segments.
5182 * dbxread.c (start_psymtab): Check HAVE_ELF.
5183 (aout_sym_fns): Likewise.
5184 * elfread.c (elf_symfile_segments): New.
5185 (elf_sym_fns): Add elf_symfile_segments.
5186 * mipsread.c (ecoff_sym_fns): Add default_symfile_segments.
5187 * remote.c (get_offsets): Use symfile_map_offsets_to_segments.
5188 Skip if there is no symfile_objfile. Handle TextSeg and DataSeg.
5189 * somread.c (som_sym_fns): Use default_symfile_segments.
5190 * symfile.c (find_sym_fns): Take a BFD and return the sym_fns.
5191 (init_objfile_sect_indices): Call symfile_find_segment_sections.
5192 (default_symfile_segments): New function.
5193 (syms_from_objfile): Update call to find_sym_fns.
5194 (symfile_get_segment_data, free_symfile_segment_data): New.
5195 (symfile_map_offsets_to_segments): New.
5196 (symfile_find_segment_sections): New.
5197 * symfile.h (struct symfile_segment_data): New.
5198 (struct sym_fns): Add sym_segments.
5199 (default_symfile_segments, symfile_get_segment_data)
5200 (free_symfile_segment_data): New prototypes.
5201 (symfile_map_offsets_to_segments): Likewise.
5202 * xcoffread.c (xcoff_sym_fns): Add default_symfile_segments.
5203 * Makefile.in (COMMON_OBS): Remove elfread.o.
5204 (elf_internal_h): New.
5205 (elfread.o): Update.
5206 * configure.ac: Add elfread.o to COMMON_OBS if bfd/elf.o was
5208 * config.in, configure: Regenerated.
5209 * NEWS: Mention qOffsets changes.
5211 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
5213 * gdbtypes.h (builtin_type_m2_char, builtin_type_m2_int,
5214 builtin_type_m2_card, builtin_type_m2_real, builtin_type_m2_bool):
5215 Replace global variable declaration with compatibility macro.
5216 (struct builtin_m2_type): New data type.
5217 (builtin_m2_type): Add prototype.
5218 * m2-lang.c (builtin_type_m2_char, builtin_type_m2_int,
5219 builtin_type_m2_card, builtin_type_m2_real, builtin_type_m2_bool):
5220 Remove global variables.
5221 (m2_language_arch_info): Use builtin_m2_type instead of variables.
5222 (build_m2_types): New function.
5223 (m2_type_data): New variable.
5224 (builtin_m2_type): New function.
5225 (_initialize_m2_language): Do not build data types. Register
5226 m2_type_data per-gdbarch data.
5228 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
5230 * gdbtypes.h (builtin_type_f_character, builtin_type_f_logical,
5231 builtin_type_f_logical_s1, builtin_type_f_logical_s2,
5232 builtin_type_f_integer, builtin_type_f_integer_s2, builtin_type_f_real,
5233 builtin_type_f_real_s8, builtin_type_f_real_s16,
5234 builtin_type_f_complex_s8, builtin_type_f_complex_s16,
5235 builtin_type_f_complex_s32, builtin_type_f_void): Replace global
5236 variable declaration with compatibility macro.
5237 (struct builtin_f_type): New data type.
5238 (builtin_f_type): Add prototype.
5239 * f-lang.c (builtin_type_f_character, builtin_type_f_logical,
5240 builtin_type_f_logical_s1, builtin_type_f_logical_s2,
5241 builtin_type_f_integer, builtin_type_f_integer_s2, builtin_type_f_real,
5242 builtin_type_f_real_s8, builtin_type_f_real_s16,
5243 builtin_type_f_complex_s8, builtin_type_f_complex_s16,
5244 builtin_type_f_complex_s32, builtin_type_f_void): Remove variables.
5245 (f_language_arch_info): Use builtin_f_type instead of variables.
5246 (build_fortran_types): Build builtin_f_type structure instead of
5247 setting global type variables.
5248 (f_type_data): New variable.
5249 (builtin_f_type): New function.
5250 (_initialize_f_language): Do not call build_fortran_types. Do not
5251 swap global type variables. Register f_type_data per-gdbarch data.
5253 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
5255 * f-lang.c (_initialize_f_language): Do not initialize or
5256 swap builtin_type_string.
5258 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
5260 * std-regs.c (builtin_type_frame_reg, build_builtin_type_frame_reg,
5261 value_of_builtin_frame_reg): Remove.
5262 (_initialize_frame_reg): Do not swap builtin_type_frame_reg. Remove
5263 inactive call to value_of_builtin_frame_reg.
5265 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
5267 * gdbarch.sh (bfd_vma_bit): Remove.
5268 * gdbarch.c, gdbarch.h: Regenerate.
5270 * gdbtypes.h (builtin_bfd_vma_type): Remove.
5271 * gdbtypes.h (builtin_bfd_vma_type): Remove.
5272 (build_gdbtypes): Do not initialize it.
5273 (_initialize_gdbtypes): Do not swap it.
5275 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
5277 * gdbtypes.c (builtin_type_v2_double, builtin_type_v4_float,
5278 builtin_type_v2_int64, builtin_type_v4_int32, builtin_type_v8_int16,
5279 builtin_type_v16_int8, builtin_type_v2_float, builtin_type_v2_int32,
5280 builtin_type_v4_int16, builtin_type_v8_int8, builtin_type_v4sf,
5281 builtin_type_v4si, builtin_type_v16qi, builtin_type_v8qi,
5282 builtin_type_v8hi, builtin_type_v4hi, builtin_type_v2si,
5283 builtin_type_vec64, builtin_type_vec128): Remove.
5284 (init_simd_type): Remove.
5285 (init_vector_type): Make global.
5286 (build_builtin_type_vec64, build_builtin_type_vec128): Remove.
5287 (build_gdbtypes): Do not build vector types.
5288 (_initialize_gdbtypes): Do not swap vector types.
5289 * gdbtypes.h (builtin_type_v2_double, builtin_type_v4_float,
5290 builtin_type_v2_int64, builtin_type_v4_int32, builtin_type_v8_int16,
5291 builtin_type_v16_int8, builtin_type_v2_float, builtin_type_v2_int32,
5292 builtin_type_v4_int16, builtin_type_v8_int8, builtin_type_v4sf,
5293 builtin_type_v4si, builtin_type_v16qi, builtin_type_v8qi,
5294 builtin_type_v8hi, builtin_type_v4hi, builtin_type_v2si,
5295 builtin_type_vec64, builtin_type_vec128): Remove declarations.
5296 (init_vector_type): Add prototype.
5298 * i386-tdep.h (struct gdbarch_tdep): Add i386_mmx_type and
5299 i386_sse_type members.
5300 (i386_mmx_type, i386_sse_type): Change from variables to functions.
5301 * i386-tdep.c (i386_mmx_type, i386_sse_type): Remove variables.
5302 (i386_init_types): Do not build vector types.
5303 (i386_mmx_type, i386_sse_type): New functions.
5304 (i386_register_type): Call them instead of using global variables.
5305 (i386_gdbarch_init): Use XCALLOC to allocate tdep structure.
5306 * amd64-tdep.c (amd64_register_type): Call i386_sse_type instead
5307 of using global variable.
5309 * rs6000-tdep.h (struct gdbarch_tdep): Add ppc_builtin_type_vec64
5310 and ppc_builtin_type_vec128 members.
5311 * rs6000-tdep.c (rs6000_builtin_type_vec64): New function.
5312 (rs6000_builtin_type_vec128): Likewise.
5313 (rs6000_register_type): Call them instead of using builtin_type_vec64
5314 and builtin_type_vec128.
5315 (rs6000_gdbarch_init): Use XCALLOC to allocate tdep structure.
5317 * spu-tdep.c (struct gdbarch_tdep): New data type.
5318 (spu_builtin_type_vec128): Remove variable.
5319 (spu_builtin_type_vec128): New function.
5320 (spu_register_type): Call it instead of using global variable.
5321 (spu_gdbarch_init): Allocate tdep structure.
5322 (spu_init_vector_type): Remove function.
5323 (_initialize_spu_tdep): Do not call it.
5325 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
5327 * amd64-tdep.c (struct amd64_register_info): Remove.
5328 (amd64_register_info): Remove.
5329 (amd64_register_names): New static variable.
5330 (AMD64_NUM_REGS): Use amd64_register_names instead of
5331 amd64_register_info.
5332 (amd64_register_name): Likewise.
5333 (amd64_register_type): Do not refer to amd64_register_info.
5335 * s390-tdep.c (struct s390_register_info): Remove.
5336 (s390_register_info): Remove.
5337 (s390_register_name): Do not refer to s390_register_info.
5338 (s390_register_type): Likewise.
5340 * sparc64-tdep.c (struct sparc64_register_info): Remove.
5341 (sparc64_register_info, sparc64_pseudo_register_info): Remove.
5342 (sparc64_register_names, sparc64_pseudo_register_names): New.
5343 (SPARC64_NUM_REGS, SPARC64_NUM_PSEUDO_REGS): Use
5344 sparc64_register_names and sparc64_pseudo_register_names instead of
5345 sparc64_register_info and sparc64_pseudo_register_info.
5346 (sparc64_register_name): Likewise.
5347 (sparc64_register_type): Do not refer to sparc64_register_info
5348 and sparc64_pseudo_register_info.
5350 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
5352 * c-lang.c (cplus_builtin_types): Remove.
5353 (enum cplus_primitive_types): New data type.
5354 (cplus_language_arch_info): New function.
5355 (cplus_language_defn): Set la_language_arch_info member. Do not set
5356 la_builtin_type_vector and string_char_type members.
5358 * f-lang.c (f_builtin_types): Remove.
5359 (enum f_primitive_types): New data type.
5360 (f_language_arch_info): New function.
5361 (f_language_de): Set la_language_arch_info member. Do not set
5362 la_builtin_type_vector and string_char_type members.
5364 * m2-lang.c (m2_builtin_types): Remove.
5365 (enum m2_primitive_types): New data type.
5366 (m2_language_arch_info): New function.
5367 (m2_language_defn): Set la_language_arch_info member. Do not set
5368 la_builtin_type_vector and string_char_type members.
5370 * objc-lang.c (objc_builtin_types): Remove.
5371 (objc_language): Set la_language_arch_info member. Do not set
5372 la_builtin_type_vector and string_char_type members.
5374 * p-lang.c (pascal_builtin_types): Remove.
5375 (enum pascal_primitive_types): New data type.
5376 (pascal_language_arch_info): New function.
5377 (pascal_language_defn): Set la_language_arch_info member. Do not set
5378 la_builtin_type_vector and string_char_type members.
5380 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
5382 * regcache.c (struct regcache): Add ptid_t member.
5383 (regcache_xmalloc): Initialize it.
5384 (regcache_cpy_no_passthrough): Do not refer to current_regcache.
5385 (regcache_dup): Likewise.
5386 (regcache_dup_no_passthrough): Likewise.
5387 (current_regcache): Make static.
5388 (registers_ptid): Remove variable.
5389 (get_thread_regcache): New function.
5390 (get_current_regcache): New function.
5391 (registers_changed): Implement by freeing current regcache.
5392 (regcache_raw_read): Do not refer to current_regcache. Set
5393 inferior_ptid to regcache->ptid while calling target routines.
5394 (regcache_raw_write): Likewise.
5395 (regcache_raw_supply): Do not refer to current_regcache.
5396 (read_pc_pid): Use thread regcache. Do not modify inferior_ptid.
5397 (write_pc_pid): Likewise.
5398 (build_regcache): Remove.
5399 (_initialize_regcache): Do not call DEPRECATED_REGISTER_GDBARCH_SWAP
5400 or deprecated_register_gdbarch_swap. Do not initialize
5402 * regcache.h (get_current_regcache): Add prototype.
5403 (get_thread_regcache): Likewise.
5404 (current_regcache): Remove declaration.
5406 * corelow.c (core_open): Replace current_regcache by
5407 get_current_regcache ().
5408 * frame.c (frame_pop): Likewise.
5409 (put_frame_register): Likewise.
5410 (get_current_frame, create_new_frame): Likewise.
5411 * mi/mi-main.c (mi_cmd_data_write_register_values): Likewise.
5412 * stack.c (return_command): Likewise.
5413 * infcall.c (call_function_by_hand): Likewise.
5414 * infrun.c (resume): Likewise.
5415 (save_inferior_status, restore_inferior_status): Likewise.
5416 * linux-fork.c (fork_load_infrun_state): Likewise.
5417 (fork_save_infrun_state): Likewise.
5418 * win32-nat.c (win32_resume): Likewise.
5419 * i386fbsd-nat.c (i386fbsd_resume): Likewise.
5420 * monitor.c (monitor_wait): Likewise.
5421 * remote.c (remote_wait): Likewise.
5422 * remote-mips.c (mips_wait): Likewise.
5424 * bsd-kvm.c (bsd_kvm_open): Likewise
5425 (bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd): Likewise.
5426 * fbsd-nat.c (fbsd_make_corefile_notes): Likewise.
5427 * i386-linux-nat.c (i386_linux_resume): Likewise.
5428 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Likewise.
5429 (ia64_linux_stopped_data_address): Likewise.
5431 * frv-tdep.c (frv_fdpic_loadmap_addresses): Likewise.
5432 * m32c-tdep.c (m32c_virtual_frame_pointer): Likewise.
5433 * mep-tdep.c (current_me_module, current_options): Likewise.
5434 * mips-tdep.c (deprecated_mips_set_processor_regs_hack): Likewise.
5436 * linux-nat.c (linux_nat_do_thread_registers): Use thread
5437 regcache instead of current_regcache. Call target_fetch_registers.
5438 (linux_nat_corefile_thread_callback): Update call site.
5439 (linux_nat_do_registers): Likewise.
5440 * procfs.c (procfs_do_thread_registers): Use thread regcache instead
5441 of current_regcache.
5442 (procfs_make_note_section): Likewise.
5443 * proc-service.c (ps_lgetregs, ps_lsetregs): Likewise.
5444 (ps_lgetfpregs, ps_lsetfpregs): Likewise.
5445 * sol-thread.c (ps_lgetregs, ps_lsetregs): Likewise.
5446 (ps_lgetfpregs, ps_lsetfpregs): Likewise.
5448 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
5450 * regcache.c (read_register, read_register_pid): Remove.
5451 (write_register, write_register_pid): Likewise.
5452 * regcache.h (read_register, read_register_pid): Remove prototype.
5453 (write_register, write_register_pid): Likewise.
5455 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
5457 * gdbarch.sh (read_pc): Add REGCACHE argument. Remove PTID argument.
5458 (write_pc): Likewise. Remove default implementation, add predicate.
5459 * gdbarch.c, gdbarch.h: Regenerate.
5460 * regcache.c (read_pc_pid): Use current regcache instead of calling
5462 (write_pc_pid): Check gdbarch_write_pc predicate, implement default
5464 (generic_target_write_pc): Remove.
5465 * inferior.h (generic_target_write_pc): Remove.
5466 * frv-tdep.c (frv_gdbarch_init): Do not install it.
5467 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
5468 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
5469 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
5470 * sh-tdep.c (sh_gdbarch_init): Likewise.
5471 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
5473 * avr-tdep.c (avr_read_pc): Add REGCACHE argument. Remove PTID
5474 argument. Use REGCACHE instead of calling read_register_pid.
5475 * hppa-hpux-tdep.c (hppa_hpux_read_pc): Likewise.
5476 * hppa-tdep.c (hppa_read_pc): Likewise.
5477 * hppa-tdep.h (hppa_read_pc): Likewise.
5478 * ia64-tdep.c (ia64_read_pc): Likewise.
5479 * m32r-tdep.c (m32r_read_pc): Likewise.
5480 * mep-tdep.c (mep_read_pc): Likewise.
5481 * mn10300-tdep.c (mn10300_read_pc): Likewise.
5482 * spu-tdep.c (spu_read_pc): Likewise.
5484 * arm-tdep.c (arm_write_pc): Add REGCACHE argument. Remove PTID
5485 argument. Use REGCACHE instead of calling write_register_pid.
5486 * avr-tdep.c (avr_write_pc): Likewise.
5487 * hppa-hpux-tdep.c (hppa_hpux_write_pc): Likewise.
5488 * hppa-tdep.c (hppa_write_pc): Likewise.
5489 * hppa-tdep.h (hppa_write_pc): Likewise.
5490 * i386-linux-tdep.c (i386_linux_write_pc): Likewise.
5491 * amd64-linux-tdep.c (amd64_linux_write_pc): Likewise.
5492 * ia64-linux-tdep.c (ia64_linux_write_pc): Likewise.
5493 * ia64-tdep.c (ia64_write_pc): Likewise.
5494 * ia64-tdep.h (ia64_write_pc): Likewise.
5495 * m32r-tdep.c (m32r_write_pc): Likewise.
5496 * m88k-tdep.c (m88k_write_pc): Likewise.
5497 * mep-tdep.c (mep_write_pc): Likewise.
5498 * mips-tdep.c (mips_write_pc): Likewise.
5499 * mips-linux-tdep.c (mips_linux_write_pc): Likewise.
5500 * mn10300-tdep.c (mn10300_write_pc): Likewise.
5501 * sparc-tdep.c (sparc_write_pc): Likewise.
5502 * spu-tdep.c (spu_write_pc): Likewise.
5504 * mips-tdep.c (read_signed_register): Remove.
5505 (read_signed_register_pid): Likewise.
5506 (mips_read_pc): Add REGCACHE argument. Remove PTID argument.
5507 Use REGCACHE instead of calling read_signed_register_pid.
5509 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
5511 * gdbarch.sh (push_dummy_code): Add REGCACHE argument.
5512 * gdbarch.c, gdbarch.h: Regenerate.
5513 * infcall.c (generic_push_dummy_code): Add REGCACHE argument.
5514 (push_dummy_code): Likewise. Pass it to callee.
5515 (call_function_by_hand): Pass current regcache to push_dummy_code.
5517 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Add REGCACHE
5518 argument. Use it instead of current_regcache.
5520 * cris-tdep.c (cris_push_dummy_code): Add REGCACHE argument.
5521 * sparc-tdep.c (sparc32_push_dummy_code): Likewise.
5523 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
5525 * gdbarch.sh (get_longjmp_target): Add FRAME argument.
5526 * gdbarch.c, gdbarch.h: Regenerate.
5527 * infrun.c (handle_inferior_event): Pass current frame to
5528 gdbarch_get_longjmp_target.
5530 * alpha-tdep.c (alpha_get_longjmp_target): Add FRAME argument.
5531 Read registers from FRAME instead of using read_register.
5532 Use get_frame_arch instead of current_gdbarch.
5533 * arm-tdep.c (arm_get_longjmp_target): Likewise.
5534 * i386-tdep.c (i386_get_longjmp_target): Likewise.
5535 * m68k-tdep.c (m68k_get_longjmp_target): Likewise.
5536 * mips-linux-tdep.c (mips_linux_get_longjmp_target): Likewise.
5537 (mips64_linux_get_longjmp_target): Likewise.
5538 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Likewise.
5540 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
5542 * gdbarch.sh (skip_trampoline_code): Add FRAME argument.
5543 * gdbarch.c, gdbarch.h: Regenerate.
5544 * arch-utils.c (generic_skip_trampoline_code): Add FRAME argument.
5545 * arch-utils.h (generic_skip_trampoline_code): Likewise.
5546 * infrun.c (handle_inferior_event): Pass current frame to
5547 gdbarch_skip_trampoline_code and skip_language_trampoline.
5549 * language.c (unk_lang_trampoline): Add FRAME argument.
5550 (skip_language_trampoline): Add FRAME argument. Pass it to
5551 skip_trampoline callback.
5552 * language.h: Add forward declaration of struct frame_info.
5553 (struct language_defn): Add FRAME argument to skip_trampoline.
5554 (skip_language_trampoline): Add FRAME argument.
5555 * cp-abi.c (cplus_skip_trampoline): Add FRAME argument. Pass it
5556 to skip_trampoline callback.
5557 * cp-abi.h: Add forward declaration of struct frame_info.
5558 (cplus_skip_trampoline): Add FRAME argument.
5559 (struct cp_abi_ops): Add FRAME argument to skip_trampoline callback.
5560 * gnu-v3-abi.c (gnuv3_skip_trampoline): Add FRAME argument. Pass it
5561 to gdbarch_skip_trampoline_code.
5562 * objc-lang.c (objc_skip_trampoline): Add FRAME argument. Pass it
5563 to gdbarch_skip_trampoline_code.
5565 * minsyms.c (find_solib_trampoline_target): Add FRAME argument.
5566 * symtab.h (find_solib_trampoline_target): Likewise.
5567 * obsd-tdep.c (obsd_skip_solib_resolver): Pass current frame to
5568 find_solib_trampoline_target.
5570 * arm-tdep.c (arm_skip_stub): Add FRAME argument. Read registers
5571 from FRAME instead of calling read_register.
5573 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code): Add FRAME
5574 argument. Read registers from FRAME instead of using read_register.
5575 * hppa-tdep.c (hppa_skip_trampoline_code): Likewise.
5576 * hppa-tdep.h (hppa_skip_trampoline_code): Add FRAME argument.
5578 * i386-cygwin-tdep.c (i386_cygwin_skip_trampoline_code): Add FRAME
5581 * m32c-tdep.c (m32c_skip_trampoline_code): Add FRAME argument.
5583 * mips-tdep.c (mips_skip_trampoline_code): Add FRAME argument. Read
5584 registers from FRAME instead of using read_signed_register.
5586 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Add FRAME
5588 (ppc64_standard_linkage_target): Likewise. Read registers from FRAME
5589 instead of using read_register.
5590 (ppc64_skip_trampoline_code): Add FRAME argument. Pass it to
5591 ppc64_standard_linkage_target.
5592 * rs6000-tdep.c (rs6000_skip_trampoline_code): Add FRAME argument.
5593 Pass it to find_solib_trampoline_target. Read registers from FRAME
5594 instead of using read_register.
5596 * xstormy16-tdep.c (xstormy16_skip_trampoline_code): Add FRAME
5599 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
5601 * gdbarch.sh (software_single_step): Replace REGCACHE argument by
5603 * gdbarch.c, gdbarch.h: Regenerate.
5604 * infrun.c (resume): Pass current frame to SOFTWARE_SINGLE_STEP.
5606 * alpha-tdep.c (alpha_next_pc): Add FRAME argument. Retrieve
5607 registers from FRAME instead of using read_register.
5608 (alpha_software_single_step): Replace REGCACHE by FRAME. Pass FRAME
5609 to alpha_next_pc. Use get_frame_pc instead of read_pc.
5610 * alpha-tdep.h (alpha_software_single_step): Replace REGCACHE
5613 * arm-tdep.c (shifted_reg_val): Add FRAME argument. Read registers
5614 from FRAME instead of using read_register.
5615 (thumb_get_next_pc): Likewise.
5616 (arm_get_next_pc): Likewise.
5617 (arm_software_single_step): Replace REGCACHE by FRAME. Pass FRAME
5618 to arm_get_next_pc. Use get_frame_pc instead of read_register.
5619 * arm-tdep.h (arm_software_single_step): Replace REGCACHE
5622 * cris-tdep.c (find_step_target): Add FRAME argument. Read registers
5623 from FRAME instead of using read_register.
5624 (cris_software_single_step): Replace REGCACHE by FRAME. Pass FRAME
5625 to find_step_target.
5627 * mips-tdep.c (mips32_next_pc): Add FRAME argument. Read registers
5628 from FRAME instead of using read_register / read_signed_register.
5629 (extended_mips16_next_pc): Likewise.
5630 (mips16_next_pc): Likewise.
5631 (mips_next_pc): Likewise.
5632 (mips_software_single_step): Replace REGCACHE by FRAME. Pass FRAME
5633 to mips_next_pc. Use get_frame_pc instead of read_pc.
5634 * mips-tdep.h (mips_software_single_step): Replace REGCACHE
5637 * rs6000-tdep.c (branch_dest): Add FRAME argument. Use it instead
5638 of current frame. Read registers from FRAME.
5639 (deal_with_atomic_sequence): Add FRAME argument. Pass it to
5640 branch_dest. Use get_frame_pc instead of read_pc.
5641 (rs6000_software_single_step): Likewise.
5642 (bl_to_blrl_insn_p): Do not call branch_dest.
5643 * rs6000-tdep.h (rs6000_software_single_step): Replace REGCACHE
5646 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Add FRAME argument.
5647 Read registers from FRAME instead of current regcache.
5648 * sparc-linux-tdep.c (sparc32_linux_step_trap): Likewise.
5649 * sparcnbsd-tdep.c (sparcnbsd_step_trap): Likewise.
5650 * sparc-tdep.c (sparc_address_from_register): Remove.
5651 (sparc_analyze_control_transfer): Pass FRAME argument instead of
5652 GDBARCH. Pass FRAME to step_trap callback.
5653 (sparc_step_trap): Add FRAME argument.
5654 (space_software_single_step): Replace REGCACHE by FRAME. Pass FRAME
5655 to sparc_analyze_control_transfer. Read registers from FRAME instead
5656 of calling sparc_address_from_register.
5657 * sparc-tdep.h (struct gdbarch_tdep): Add FRAME argument to
5659 (sparc_address_from_register): Remove prototype.
5660 (sparc_software_single_step): Replace REGCACHE argument by FRAME.
5661 (sparcnbsd_step_trap): Add FRAME argument.
5663 * spu-tdep.c (spu_software_single_step): Replace REGCACHE argument
5664 by FRAME. Read registers from FRAME instead of REGCACHE.
5666 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
5668 * arm-tdep.c (arm_print_float_info): Use register value from FRAME
5669 instead of calling read_register.
5671 * avr-tdep.c (avr_push_dummy_call): Write to REGCACHE instead of
5672 calling write_register.
5674 * hppa-tdep.c (hppa32_push_dummy_call): Write to REGCACHE instead of
5675 calling write_register.
5677 * ia64-tdep.c (find_func_descr): Add REGCACHE parameter. Use it
5678 instead of calling read_register.
5679 (ia64_push_dummy_call): Update call to find_func_descr. Use REGCACHE
5680 instead of calling read_register and write_register.
5682 * m32r-tdep.c (m32r_linux_supply_gregset): Use REGCACHE parameter
5683 instead of current_regcache.
5685 * mn10300-tdep.c (mn10300_push_dummy_call): Write to REGCACHE instead
5686 of calling write_register.
5687 * mn10300-linux-tdep.c (am33_supply_fpregset_method): Use REGCACHE
5688 parameter instead of current_regcache.
5690 * mips-tdep.c (mips2_fp_compat): Add FRAME parameter. Use it
5691 instead of calling read_register.
5692 (mips_read_fp_register_double, mips_print_fp_register): Update calls.
5693 (mips_eabi_push_dummy_call): Use REGCACHE instead of write_register.
5694 (mips_n32n64_push_dummy_call): Likewise.
5695 (mips_o32_push_dummy_call): Likewise.
5696 (mips_o64_push_dummy_call): Likewise.
5698 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Use REGCACHE
5699 parameter instead of current_regcache.
5701 * xtensa-tdep.c (xtensa_register_write_masked): Add REGCACHE parameter.
5702 Use it instead of read_register and write_register.
5703 (xtensa_register_read_masked): Likewise.
5704 (xtensa_pseudo_register_read): Update call.
5705 (xtensa_pseudo_register_write): Likewise.
5706 (xtensa_frame_cache): Use register values unwound from NEXT_FRAME
5707 instead of calling read_register.
5708 (xtensa_push_dummy_call): Update comment.
5710 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
5712 * mips-tdep.c (mips16_scan_prologue): Replace read_next_frame_reg
5713 by frame_unwind_register_signed calls.
5714 (mips32_scan_prologue): Likewise. Skip analysis of alloca stack
5715 frame allocations when called with NULL NEXT_FRAME parameter.
5716 (read_next_frame_reg): Remove.
5718 * sh-tdep.c (sh_analyze_prologue): Add FPSCR parameter. Use it
5719 instead of reading the FPSCR register.
5720 (sh_frame_cache): Pass unwound FPSCR register value to
5721 sh_analyze_prologue.
5722 (sh_skip_prologue): Pass dummy FPSCR value to sh_analyze_prologue.
5724 * v850-tdep.c (v850_analyze_prologue): Add CTBP parameter. Use it
5725 instead of reading the CTBP register.
5726 (v850_frame_cache): Pass unwound CTBP register value to
5727 v850_analyze_prologue.
5729 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
5731 * sh-tdep.h (sh_show_regs): Add FRAME parameter.
5732 * sh-tdep.c (sh_show_regs): Likewise.
5733 (sh_show_regs_command): Pass current frame to sh_show_regs routine.
5734 (sh_generic_show_regs): Add FRAME parameter. Use register
5735 values from that frame instead of calling read_register.
5736 (sh3_show_regs, sh2e_show_regs, sh2a_show_regs, sh2a_nofpu_show_regs,
5737 sh3e_show_regs, sh3_dsp_show_regs, sh4_show_regs, sh4_nofpu_show_regs,
5738 sh_dsp_show_regs): Likewise.
5739 * sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs,
5740 sh64_show_regs): Likewise.
5742 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
5744 * mips-tdep.c (deprecated_mips_set_processor_regs_hack): Read from
5745 current regcache instead of calling read_register.
5747 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
5749 * mep-tdep.c (current_me_module): Read from current regcache
5750 instead of calling read_register.
5751 (current_options): Likewise.
5753 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
5755 * cris-tdep.c (cris_stopped_data_address): Read register values
5756 from current frame instead of calling read_register.
5757 * frv-tdep.c (frv_stopped_data_address): Likewise.
5759 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
5761 * solib-sunos.c (sunos_solib_create_inferior_hook): Use write_pc
5762 instead of write_register (PC_REGNUM, ...).
5764 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
5766 * solib-sunos.c (sunos_solib_create_inferior_hook): Add comment
5767 explaining why the PC adjustment code is necessary.
5769 2007-06-15 Vladimir Prus <vladimir@codesourcery.com>
5771 * m68k-tdep.h (enum m68k_flavour): New.
5772 (struct gdbarch_tdep): New fields
5773 float_return, flavour and fpregs_present.
5774 * m68k-tdep.c (m68k_register_type): Use
5775 fpregs_present and conditionalize floating
5776 registers type on flavour.
5777 (m68k_register_names): New.
5778 (m68k_register_name): Use the above.
5779 (m68k_convert_register_p): Consult fpregs_present.
5780 (m68k_register_to_value, m68k_value_to_register):
5781 Use register_type to obtain the type of floating
5783 (m68k_svr4_extract_return_value): Check tdep->float_return.
5784 Use register_type to get the type of floating
5786 (m68k_svr4_store_return_value): Likewise.
5787 (m68k_dwarf_reg_to_regnum): Check tdep->fpregs_present.
5788 (m68k_analyze_register_saves): Likewise.
5789 (m68k_gdbarch_init): Extract infromation
5790 from XML description, if present. Guess coldfire by
5791 looking at the file, if present. Conditionalize
5792 setting of long double format. Set decr_pc_after_break
5793 to 2 on coldfire and fido. Enable XML-driven
5794 register description.
5795 * m68kbsd-tdep.c (m68kbsd_fpreg_offset): Use
5796 size of tdep->fpreg_type, as opposed to hardcoded value.
5797 * Makefile.in (m68k-tdep.o): Update dependencies.
5799 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
5801 * NEWS: Mention "info spu" commands and qXfer:spu:read and
5802 qXfer:spu:write remote packet types.
5804 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
5806 * xml-tdesc.c (tdesc_start_target): New.
5807 (target_attributes): New.
5808 (tdesc_elements): Use it.
5809 * features/gdb-target.dtd: Add #FIXED version attribute for
5812 2007-06-13 Arthur Huillet <arthur.huillet@free.fr>
5814 * mi/mi-cmd-var.c (mi_cmd_var_assign): Fix typo.
5816 2007-06-13 Claudio Fontana <claudio.fontana@gmail.com>
5818 * fork-child.c (fork_inferior): Update comment.
5820 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
5822 * features/Makefile: Generate regformats for mips-linux and
5824 * features/sort-regs.xsl: Correct typo.
5825 * regformats/reg-mips.dat, regformats/reg-mips64.dat: Delete.
5826 * regformats/mips-linux.dat, regformats/mips64-linux.dat: New generated
5829 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
5831 * config/mips/linux.mh (TDEP_XML): New.
5832 * features/mips-linux.xml, features/mips64-linux.xml: New files.
5833 * mips-linux-nat.c (mips_linux_register_addr): Handle
5834 MIPS_RESTART_REGNUM.
5835 (mips64_linux_register_addr): Likewise.
5836 (super_xfer_partial, mips_linux_xfer_partial): New.
5837 (_initialize_mips_linux_nat): Add them to the target_ops.
5838 * mips-linux-tdep.c (mips_supply_gregset): Handle MIPS_RESTART_REGNUM.
5839 (mips_fill_gregset, mips64_supply_gregset, mips64_fill_gregset)
5840 (mips_linux_o32_sigframe_init)
5841 (mips_linux_n32n64_sigframe_init): Likewise.
5842 (mips_linux_write_pc, mips_linux_restart_reg_p): New.
5843 (mips_linux_init_abi): Use mips_linux_write_pc. Check for the
5844 "org.gnu.gdb.mips.linux" feature.
5845 * mips-linux-tdep.h (MIPS_RESTART_REGNUM): New constant.
5846 (mips_linux_restart_reg_p): New prototype.
5847 * mips-tdep.c (mips_gdbarch_init): Pass tdesc_data to the OS/ABI
5848 initialization routine.
5849 * Makefile.in (mips-linux-tdep.o, mips-linux-nat.o): Update.
5851 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
5853 * Makefile.in (mips-tdep.o): Update.
5854 * mips-tdep.c (struct register_alias, mips_o32_aliases)
5855 (mips_n32_n64_aliases, mips_register_aliases): New.
5856 (mips_register_name): Call tdesc_register_name.
5857 (mips_tdesc_register_reggroup_p): New.
5858 (mips_pseudo_register_type, value_of_mips_user_reg): New.
5859 (mips_gdbarch_init): Add target-described register support.
5860 Register aliases for register names.
5861 * target-descriptions.c (tdesc_register_name): Make global.
5862 (tdesc_register_in_reggroup_p): New function, broken out from
5863 tdesc_register_reggroup_p.
5864 (tdesc_register_reggroup_p): Use it.
5865 * target-descriptions.h (tdesc_register_name)
5866 (tdesc_register_in_reggroup_p): New prototypes.
5867 * NEWS: Correct formatting. Mention MIPS register support.
5868 * features/mips-cp0.xml, features/mips-fpu.xml,
5869 features/mips64-cp0.xml, gdb/features/mips64-fpu.xml, mips-cpu.xml,
5870 features/mips64-cpu.xml: New files.
5872 2007-06-13 Markus Deuling <deuling@de.ibm.com>
5874 * gdbarch.sh (TARGET_ADDR_BIT): Replace by gdbarch_addr_bit.
5875 * valops.c (value_cast): Likewise.
5876 * utils.c (strlen_paddr, paddr, paddr_nz, paddress): Likewise.
5877 * ui-out.c (ui_out_field_core_addr): Likewise.
5878 * tracepoint.c (tracepoints_info): Likewise.
5879 * symtab.c (print_msymbol_info): Likewise.
5880 * solib-irix.c (irix_current_sos)
5881 (irix_open_symbol_file_object): Likewise.
5882 * remote.c (build_remote_gdbarch_data): Likewise.
5883 * prologue-value.c (make_pv_area): Likewise.
5884 * procfs.c (info_mappings_callback): Likewise.
5885 * printcmd.c (print_scalar_formatted)
5886 (deprecated_print_address_numeric): Likewise.
5887 * memattr.c (mem_info_command): Likewise.
5888 * linux-nat.c (linux_nat_info_proc_cmd): Likewise.
5889 * gdbtypes.c (build_flt, gdbtypes_post_init): Likewise.
5890 * exec.c (print_section_info): Likewise.
5891 * dwarf2read.c (read_subrange_type): Likewise.
5892 * dwarf2loc.c (find_location_expression): Likewise.
5893 * dwarf2expr.c (dwarf2_read_address, unsigned_address_type)
5894 (signed_address_type, execute_stack_op): Likewise.
5895 * breakpoint.c (print_one_breakpoint, breakpoint_1): Likewise.
5896 * gdbarch.c, gdbarch.h: Regenerate.
5898 2007-06-13 Markus Deuling <deuling@de.ibm.com>
5900 * gdbarch.sh (TARGET_ARCHITECTURE): Replace by gdbarch_bfd_arch_info.
5901 * arch-utils.c (show_architecture): Likewise.
5902 * remote-mips.c (mips_open): Likewise
5903 * nto-tdep.c (nto_find_and_open_solib)
5904 (nto_init_solib_absolute_prefix): Likewise.
5905 * nto-procfs (procfs_open): Likewise.
5906 * m68hc11-tdep.c (gdb_print_insn_m68hc11): Likewise.
5907 * gcore.c (default_gcore_mach, default_gcore_arch): Likewise.
5908 * gdbarch.c, gdbarch.h: Regenerate.
5910 2007-06-13 Markus Deuling <deuling@de.ibm.com>
5912 * gdbarch.sh (TARGET_BFD_VMA_BIT): Replace by gdbarch_bfd_vma_bit.
5913 * gdbtypes.c (build_flt): Likewise.
5914 * gdbarch.c, gdbarch.h: Regenerate.
5916 2007-06-13 Markus Deuling <deuling@de.ibm.com>
5918 * gdbarch.sh (BREAKPOINT_FROM_PC): Replace by
5919 gdbarch_breakpoint_from_pc.
5920 * s390-tdep.c (s390_gdbarch_init): Likewise (comment).
5921 * remote.c (remote_insert_breakpoint)
5922 (remote_insert_hw_breakpoint): Likewise.
5923 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Likewise.
5924 * mips-tdep.c (mips_breakpoint_from_pc): Likewise (comment).
5925 * breakpoint.h (bp_target_info): Likewise (comment).
5926 * breakpoint.c (read_memory_nobpt): Likewise.
5927 * mem-break.c (default_memory_insert_breakpoint): Likewise.
5928 (symtab.h, breakpoint.h): Remove include. Remove unnecessary comment.
5929 * gdbarch.c, gdbarch.h: Regenerate.
5931 2007-06-13 Markus Deuling <deuling@de.ibm.com>
5933 * gdbarch.sh (TARGET_PTR_BIT): Replace with gdbarch_ptr_bit.
5934 * solib-svr4.c (svr4_truncate_ptr): Likewise.
5935 * solib-pa64.c (read_dynamic_info): Likewise.
5936 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets): Likewise.
5937 * solib.c (info_sharedlibrary_command): Likewise.
5938 * s390-nat.c (SUBOFF): Likewise.
5939 * p-valprint.c (pascal_val_print): Likewise.
5940 * procfs.c (info_proc_mappings): Likewise.
5941 * printcmd.c (decode_format): Likewise.
5942 * nto-tdep.c (nto_truncate_ptr): Likewise.
5943 * mips-linux-tdep.c (mips_linux_get_longjmp_target)
5944 (mips64_linux_get_longjmp_target): Likewise.
5945 * m68k-tdep.c (m68k_get_longjmp_target): Likewise.
5946 * jv-valprint.c (java_value_print): Likewise.
5947 * jv-lang.c (get_java_object_header_size): Likewise.
5948 * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Likewise.
5949 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
5950 (hppa_hpux_unwind_adjust_stub): Likewise.
5951 * gnu-v3-abi.c (build_gdb_vtable_type): Likewise.
5952 * gdbtypes.c (make_pointer_type, make_reference_type)
5953 (smash_to_memberptr_type): Likewise.
5954 * gdbarch.c, gdbarch.h: Regenerate.
5956 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
5958 * mips-tdep.c (mips_print_register): Remove unused ALL argument.
5959 (print_gp_register_row): Stop before printing a register bigger
5960 than the ABI register size.
5961 (mips_print_registers_info): Update call to mips_print_register.
5963 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
5965 * expression.h (enum exp_opcode): Document a register name for
5967 * parse.c (write_dollar_variable): Write the register name for
5969 (operator_length_standard): Expect the register name following
5971 * ada-lang.c (resolve_subexp): Likewise.
5972 * ax-gdb.c (gen_expr): Likewise.
5973 * eval.c (evaluate_subexp_standard): Likewise.
5974 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
5976 * tracepoint.c (encode_actions): Likewise.
5978 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
5980 * utils.c (set_screen_size): Use INT_MAX for default columns.
5982 2007-06-13 Ulrich Weigand <uweigand@de.ibm.com>
5984 * remote.c (remote_protocol_features): Add qXfer:spu:read and
5985 qXfer:spu:write packet types.
5987 2007-06-12 Markus Deuling <deuling@de.ibm.com>
5989 * gdbarch.sh (DEPRECATED_STACK_ALIGN): Remove.
5990 * gdbarch.c, gdbarch.h: Regenerate.
5992 2007-06-12 Markus Deuling <deuling@de.ibm.com>
5994 * gdbarch.sh (STAB_REG_TO_REGNUM): Replace by
5995 gdbarch_stab_reg_to_regnum.
5996 * stabsread.c (define_symbol): Likewise.
5997 * gdbarch.sh (ECOFF_REG_TO_REGNUM): Replace by
5998 gdbarch_ecoff_reg_to_regnum.
5999 * mdebugread.c (parse_symbol): Likewise.
6000 * i386-tdep.c (i386_gdbarch_init): Likewise (comment).
6001 * gdbarch.sh (DWARF_REG_TO_REGNUM): Replace by
6002 gdbarch_dwarf_reg_to_regnum.
6003 * gdbarch.sh (SDB_REG_TO_REGNUM): Replace by gdbarch_sdb_reg_to_regnum.
6004 * coffread.c (process_coff_symbol): Likewise.
6005 * gdbarch.sh (DWARF2_REG_TO_REGNUM): Replace by
6006 gdbarch_dwarf2_reg_to_regnum.
6007 * dwarf2loc.c (dwarf_expr_read_reg,dwarf2_evaluate_loc_desc)
6008 (locexpr_describe_location): Likewise.
6009 * dwarf2-frame.c (read_reg,execute_cfa_program,dwarf2_frame_cache)
6010 (dwarf2_frame_prev_register,dwarf2_signal_frame_this_id): Likewise.
6011 * dwarf2loc.c (DWARF2_REG_TO_REGNUM): Remove macro.
6012 * dwarf2read.c (DWARF2_REG_TO_REGNUM): Remove macro.
6013 * gdbarch.c, gdbarch.h: Regenerate.
6015 2007-06-12 Markus Deuling <deuling@de.ibm.com>
6017 * gdbarch.sh (SMASH_TEXT_ADDRESS): Replace by
6018 gdbarch_smash_text_address.
6019 * somread.c (som_symtab_read): Likewise.
6020 * elfread.c (record_minimal_symbol): Likewise.
6021 * dbxread.c (process_one_symbol): Likewise.
6022 * coffread.c (coff_symtab_read): Likewise.
6023 * gdbarch.c, gdbarch.h: Regenerate.
6025 2007-06-12 Markus Deuling <deuling@de.ibm.com>
6027 * gdbarch.sh (REGISTER_TO_VALUE): Replace by gdbarch_register_to_value.
6028 * findvar.c (value_from_register): Likewise.
6029 * gdbarch.sh (VALUE_TO_REGISTER): Replace by gdbarch_value_to_register.
6030 * valops.c (value_assign): Likewise.
6031 * gdbarch.sh (CONVERT_REGISTER_P): Replace by
6032 gdbarch_convert_register_p.
6033 * findvar.c (value_from_register): Likewise.
6034 * valops.c (value_assign): Likewise.
6035 * gdbarch.c, gdbarch.h: Regenerate.
6037 2007-06-12 Markus Deuling <deuling@de.ibm.com>
6039 * gdbarch.sh (REGISTER_SIM_REGNO): Replace by
6040 gdbarch_register_sim_regno.
6041 * sim-regno.h (sim_regno): Likewise (comment).
6042 * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register): Likewise.
6043 * gdbarch.c, gdbarch.h: Regenerate.
6045 2007-06-12 Markus Deuling <deuling@de.ibm.com>
6047 * gdbarch.sh (TARGET_VIRTUAL_FRAME_POINTER): Replace by
6048 gdbarch_virtual_frame_pointer.
6049 * tracepoint.c (encode_actions): Likewise.
6050 * dwarf2loc.c (dwarf2_loc_desc_needs_frame): Likewise.
6051 * ax-gdb.c (gen_frame_args_address, gen_frame_locals_address): Likewise.
6052 * gdbarch.c, gdbarch.h: Regenerate.
6054 2007-06-12 Markus Deuling <deuling@de.ibm.com>
6056 * gdbarch.sh (TARGET_FLOAT_BIT): Replace by gdbarch_float_bit.
6057 * p-lang.c (pascal_create_fundamental_type): Likewise.
6058 * objc-lang.c (objc_create_fundamental_type): Likewise.
6059 * mdebugread.c (_initialize_mdebugread): Likewise.
6060 * m2-lang.c (m2_create_fundamental_type)
6061 (_initialize_m2_language): Likewise.
6062 * gdbtypes.c (build_gdbtypes): Likewise.
6063 * f-lang.c (f_create_fundamental_type, build_fortran_types): Likewise.
6064 * doublest.c (floatformat_from_length): Likewise.
6065 * c-lang.c (c_create_fundamental_type): Likewise.
6066 * ada-lang.c (ada_create_fundamental_type)
6067 (ada_language_arch_info): Likewise.
6068 * gdbarch.sh (TARGET_FLOAT_FORMAT): Replace by gdbarch_float_format.
6069 * value.c (unpack_double): Likewise (comment).
6070 * gdbtypes.c (build_gdbtypes): Likewise.
6071 * doublest.c (floatformat_from_length): Likewise.
6072 * gdbarch.sh (TARGET_DOUBLE_BIT): Replace by gdbarch_double_bit.
6073 * valarith.c (value_binop): Likewise.
6074 * p-lang.c (pascal_create_fundamental_type): Likewise.
6075 * objc-lang.c (objc_create_fundamental_type): Likewise.
6076 * mdebugread.c (_initialize_mdebugread): Likewise.
6077 * m2-lang.c (m2_create_fundamental_type): Likewise.
6078 * gdbtypes.c (build_gdbtypes): Likewise.
6079 * f-lang.c (f_create_fundamental_type, build_fortran_types): Likewise.
6080 * doublest.c (floatformat_from_length): Likewise.
6081 * cris-tdep.c (cris_gdbarch_init): Likewise (comment).
6082 * c-lang.c (c_create_fundamental_type): Likewise.
6083 * ada-lex.l (processReal): Likewise.
6084 * ada-lang.c (ada_create_fundamental_type)
6085 (ada_language_arch_info): Likewise.
6086 * gdbarch.sh (TARGET_DOUBLE_FORMAT): Replace by gdbarch_double_format.
6087 * value.c (unpack_double): Likewise (comment).
6088 * gdbtypes.c (build_gdbtypes): Likewise.
6089 * doublest.c (floatformat_from_length): Likewise.
6090 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Replace by
6091 gdbarch_long_double_bit.
6092 * p-lang.c (pascal_create_fundamental_type): Likewise.
6093 * objc-lang.c (objc_create_fundamental_type): Likewise.
6094 * m2-lang.c (m2_create_fundamental_type): Likewise.
6095 * gdbtypes.c (build_gdbtypes): Likewise.
6096 * f-lang.c (f_create_fundamental_type, build_fortran_types): Likewise.
6097 * doublest.c (floatformat_from_length): Likewise.
6098 * c-lang.c (c_create_fundamental_type): Likewise.
6099 * ada-lex.l (processReal): Likewise.
6100 * ada-lang.c (ada_create_fundamental_type)
6101 (ada_language_arch_info): Likewise.
6102 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Replace by
6103 gdbarch_long_double_format.
6104 * gdbtypes.c (build_gdbtypes): Likewise.
6105 * doublest.c (floatformat_from_length): Likewise.
6106 * gdbarch.c, gdbarch.h: Regenerate.
6108 2007-06-12 Markus Deuling <deuling@de.ibm.com>
6110 * gdbarch.sh (TARGET_SHORT_BIT): Replace by gdbarch_int_bit.
6111 * ada-lang.c (ada_create_fundamental_type)
6112 (ada_language_arch_info): Likewise.
6113 * c-lang.c (c_create_fundamental_type): Likewise.
6114 * f-lang.c (f_create_fundamental_type, build_fortran_types): Likewise.
6115 * gdbtypes.c (build_gdbtypes, gdbtypes_post_init): Likewise.
6116 * m2-lang.c (m2_create_fundamental_type): Likewise.
6117 * objc-lang.c (objc_create_fundamental_type): Likewise.
6118 * p-lang.c (pascal_create_fundamental_type): Likewise.
6119 * gdbarch.sh (TARGET_INT_BIT): Replace by gdbarch_int_bit.
6120 * c-exp.y (parse_number): Likewise.
6121 * objc-exp.y (parse_number): Likewise.
6122 * ada-lex.l (processInt): Likewise.
6123 * f-exp.y (parse_number): Likewise.
6124 * p-exp.y (parse_number): Likewise.
6125 * ada-lang.c (ada_create_fundamental_type, ada_language_arch_info)
6126 (gdbtypes_post_init, build_gdbtypes): Likewise.
6127 * p-lang.c (pascal_create_fundamental_type): Likewise.
6128 * parse.c (build_parse): Likewise.
6129 * xcoffread.c (_initialize_xcoffread): Likewise.
6130 * stabsread.c (define_symbol, read_one_struct_field, read_enum_type)
6131 (read_range_type): Likewise.
6132 * objc-lang.c (objc_create_fundamental_type): Likewise.
6133 * f-lang.c (build_fortran_types, f_create_fundamental_type): Likewise.
6134 * m2-lang.c (m2_create_fundamental_type, _initialize_m2_language)
6135 (m2_create_fundamental_type): Likewise.
6136 * c-lang.c (c_create_fundamental_type): Likewise.
6137 * coffread.c (coff_read_enum_type): Likewise.
6138 * mdebugread.c (parse_symbol, _initialize_mdebugread): Likewise.
6139 * dwarf2read.c (new_symbol): Likewise.
6140 * gdbarch.sh (TARGET_LONG_BIT): Replace by gdbarch_long_bit.
6141 * c-exp.y (parse_number): Likewise.
6142 * objc-exp.y (parse_number): Likewise.
6143 * ada-lex.l (processInt): Likewise.
6144 * f-exp.y (parse_number): Likewise.
6145 * p-exp.y (parse_number): Likewise.
6146 * valarith.c (value_binop): Likewise.
6147 * symfile.c (read_target_long_array, simple_overlay_update_1): Likewise.
6148 * ada-lang.c (ada_create_fundamental_type)
6149 (ada_language_arch_info): Likewise.
6150 * gdbtypes.c (build_gdbtypes, gdbtypes_post_init): Likewise.
6151 * symfile.c (TARGET_LONG_BYTES): Likewise.
6152 * p-lang.c (pascal_create_fundamental_type): Likewise.
6153 * objc-lang.c (objc_create_fundamental_type): Likewise.
6154 * m2-lang.c (m2_create_fundamental_type): Likewise.
6155 * f-lang.c (f_create_fundamental_type): Likewise.
6156 * c-lang.c (c_create_fundamental_type): Likewise.
6157 * coffread.c (decode_base_type): Likewise.
6158 * gdbarch.sh (TARGET_LONG_LONG_BIT): Replace by gdbarch_long_long_bit.
6159 * c-exp.y (parse_number): Likewise.
6160 * objc-exp.y (parse_number): Likewise.
6161 * p-exp.y (parse_number): Likewise.
6162 * ada-lang.c (ada_create_fundamental_type)
6163 (ada_language_arch_info): Likewise.
6164 * gdbtypes.c (gdbtypes_post_init, build_gdbtypes): Likewise.
6165 * stabsread.c (read_range_type): Likewise.
6166 * p-lang.c (pascal_create_fundamental_type): Likewise.
6167 * objc-lang.c (objc_create_fundamental_type): Likewise.
6168 * m2-lang.c (m2_create_fundamental_type): Likewise.
6169 * f-lang.c (f_create_fundamental_type): Likewise.
6170 * c-lang.c (c_create_fundamental_type): Likewise.
6171 * gdbarch.c, gdbarch.h: Regenerate.
6173 2007-06-12 Andreas Schwab <schwab@suse.de>
6175 * frame-unwind.h (frame_dealloc_cache_ftype): Define.
6176 (struct frame_unwind): Add dealloc_cache.
6177 * frame.c (reinit_frame_cache): Call dealloc_cache on all caches.
6179 * libunwind-frame.h (libunwind_frame_dealloc_cache): Declare.
6180 * libunwind-frame.c (libunwind_frame_dealloc_cache): Define.
6181 (libunwind_frame_unwind): Set dealloc_cache.
6182 * ia64-tdep.c (ia64_libunwind_frame_unwind): Set dealloc_cache.
6184 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
6185 Markus Deuling <deuling@de.ibm.com>
6187 * remote.c (remote_write_qxfer): New function.
6188 (remote_xfer_partial): Add handling for TARGET_OBJECT_SPU.
6189 (remote_read_qxfer): Do not cache empty objects.
6190 (_initialize_remote): Add PACKET_qXfer_spu_read and
6191 PACKET_qXfer_spu_write.
6193 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
6195 * target.h (enum target_object): Add TARGET_OBJECT_SPU.
6196 * spu-linux-nat.c (spu_xfer_partial): Handle TARGET_OBJECT_SPU.
6198 * spu-tdep.h (SPU_NUM_PSEUDO_REGS): Add 5 pseudo registers.
6199 (enum spu_regnum): Add SPU_FPSCR_REGNUM, SPU_SRR0_REGNUM,
6200 SPU_LSLR_REGNUM, SPU_DECR_REGNUM, SPU_DECR_STATUS_REGNUM.
6201 * spu-tdep.c (infospucmdlist): New variable.
6202 (spu_register_name): Handle additional pseudo registers.
6203 (spu_register_type): Likewise.
6204 (spu_pseudo_register_read): Likewise.
6205 (spu_pseudo_register_write): Likewise.
6206 (spu_pseudo_register_read_spu): New function.
6207 (spu_pseudo_register_write_spu): Likewise.
6208 (info_spu_event_command): New function.
6209 (info_spu_signal_command): Likewise.
6210 (info_spu_mailbox_list): Likewise.
6211 (info_spu_mailbox_command): Likewise.
6212 (spu_mfc_get_bitfield): Likewise.
6213 (info_spu_dma_cmdlist): Likewise.
6214 (info_spu_dma_command): Likewise.
6215 (info_spu_proxydma_command): Likewise.
6216 (info_spu_command): Likewise.
6217 (_initialize_spu_tdep): Install "info spu" commands.
6219 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
6221 * spu-linux-nat.c (spu_proc_xfer_spu): Do not return failure when
6222 accessing non-seekable spufs files.
6224 2007-06-09 Markus Deuling <deuling@de.ibm.com>
6226 * gdbarch.sh (SKIP_TRAMPOLINE_CODE): Replace by
6227 gdbarch_skip_trampoline_code.
6228 * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Likewise (comment).
6229 * objc-lang.c (objc_skip_trampoline)
6230 (objc_submethod_helper_data): Likewise.
6231 * m32c-lang.c (m32c_skip_trampoline_code): Likewise (comment).
6232 * infrun.c (handle_inferior_event): Likewise.
6233 * gnu-v3-abi.c (gnuv3_skip_trampoline): Likewise.
6234 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Replace by
6235 gdbarch_in_solib_return_trampoline.
6236 * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Likewise (comment).
6237 * infrun.c (handle_inferior_event): Likewise.
6238 * hppa-tdep.c (hppa_stub_unwind_sniffer): Likewise.
6239 * gdbarch.c, gdbarch.h: Regenerate.
6241 2007-06-09 Markus Deuling <deuling@de.ibm.com>
6243 * gdbarch.sh (SKIP_PROLOGUE): Replace by gdbarch_skip_prologue.
6244 * symtab.c (find_function_start_sal, in_prologue): Likewise.
6245 * linespec.c (minsym_found): Likewise.
6246 * infrun.c (step_into_function): Likewise.
6247 * gdbarch.c, gdbarch.h: Regenerate.
6249 2007-06-09 Markus Deuling <deuling@de.ibm.com>
6251 * gdbarch.sh (NAME_OF_MALLOC): Replace by gdbarch_name_of_malloc.
6252 * valops.c (value_allocate_space_in_inferior): Likewise.
6253 * gdbarch.c, gdbarch.h: Regenerate.
6255 2007-06-09 Markus Deuling <deuling@de.ibm.com>
6257 * gdbarch.sh (MEMORY_INSERT_BREAKPOINT): Replace by
6258 gdbarch_memory_insert_breakpoint.
6259 * mem-break.c (memory_insert_breakpoint): Likewise.
6260 * gdbarch.sh (MEMORY_REMOVE_BREAKPOINT): Replace by
6261 gdbarch_memory_remove_breakpoint.
6262 * mem-break.c (memory_remove_breakpoint): Likewise.
6263 * gdbarch.c, gdbarch.h: Regenerate.
6265 2007-06-09 Markus Deuling <deuling@de.ibm.com>
6267 * gdbarch.sh (FETCH_TLS_LOAD_MODULE_ADDRESS): Replace by
6268 gdbarch_fetch_tls_load_module_address.
6269 * gdbarch.sh (FETCH_TLS_LOAD_MODULE_ADDRESS_P): Replace by
6270 gdbarch_fetch_tls_load_module_address_p.
6271 * gdbarch.c, gdbarch.h: Regenerate.
6273 2007-06-09 Markus Deuling <deuling@de.ibm.com>
6275 * gdbarch.sh (DECR_PC_AFTER_BREAK): Replace by
6276 gdbarch_decr_pc_after_break.
6277 * tracepoint.c (trace_dump_command): Likewise.
6278 * solib-sunos.c (sunos_solib_create_inferior_hook): Likewise.
6279 * linux-thread-db.c (check_event): Likewise.
6280 * linux-nat.c (cancel_breakpoints_callback): Likewise.
6281 * infrun.c (adjust_pc_after_break, normal_stop): Likewise.
6282 * frame.h: Likewise (comment).
6283 * dummy-frame.c (deprecated_pc_in_call_dummy): Likewise.
6284 * aix-thread.c (aix_thread_wait): Likewise.
6285 * gdbarch.c, gdbarch.h: Regenerate.
6287 2007-06-09 Markus Deuling <deuling@de.ibm.com>
6289 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS): Replace by
6290 gdbarch_address_class_type_flags.
6291 * dwarf2read.c (read_tag_pointer_type): Likewise.
6292 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS_P): Replace by
6293 gdbarch_address_class_type_flags_p.
6294 * dwarf2read.c (read_tag_pointer_type): Likewise.
6295 * gdbarch.c, gdbarch.h: Regenerate.
6297 2007-06-09 Markus Deuling <deuling@de.ibm.com>
6299 * gdbarch.sh (ADDR_BITS_REMOVE): Replace by gdbarch_addr_bits_remove.
6300 * value.c (value_as_address): Likewise (comment).
6301 * remote-mips.c (common_breakpoint): Likewise.
6302 * regcache.c (read_pc_pid): Likewise.
6303 * printcmd.c (do_one_display): Likewise.
6304 * monitor.c (monitor_write_memory, monitor_read_memory)
6305 (monitor_insert_breakpoint): Likewise.
6306 * mips-tdep.c (heuristic_proc_start): Likewise.
6307 * infrun.c (insert_step_resume_breakpoint_at_frame)
6308 (insert_step_resume_breakpoint_at_caller): Likewise.
6309 * buildsym.c (record_line): Likewise.
6310 * arm-tdep.c (arm_scan_prologue, thumb_get_next_pc)
6311 (arm_get_next_pc): Likewise.
6312 * armnbsd-nat.c (arm_supply_gregset, fetch_register, store_register)
6313 (store_regs): Likewise.
6314 * arm-linux-tdep.c (arm_linux_supply_gregset): Likewise.
6315 * arm-linux-nat.c (fetch_register, fetch_regs): Likewise.
6316 * gdbarch.c, gdbarch.h: Regenerate.
6318 2007-06-09 Markus Deuling <deuling@de.ibm.com>
6320 * gdbarch.sh (REGISTER_NAME): Replace by gdbarch_register_name.
6321 * tracepoint.c (scope_info): Likewise.
6322 * target.c (debug_print_register): Likewise.
6323 * stack.c (frame_info): Likewise.
6324 * sh-tdep.c (sh_register_reggroup_p): Likewise.
6325 * sh64-tdep.c (sh64_do_fp_register, sh64_do_register)
6326 (sh64_media_print_registers_info)
6327 (sh64_compact_print_registers_info): Likewise.
6328 * rs6000-tdep.c (rs6000_register_reggroup_p): Likewise.
6329 * remote-sim.c (gdbsim_fetch_register): Likewise.
6330 * remote.c (packet_reg): Likewise (comment).
6331 * reggroups.c (default_register_reggroup_p): Likewise.
6332 * regcache.c (regcache_dump): Likewise.
6333 * printcmd.c (address_info): Likewise.
6334 * ppc-linux-nat.c (fetch_register, store_register): Likewise.
6335 * mt-dep.c (mt_registers_info): Likewise.
6336 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Likewise (comment).
6337 * mips-tdep.c (mips_register_reggroup_p, mips_read_fp_register_single)
6338 (mips_read_fp_register_double, mips_print_fp_register)
6339 (mips_print_register, print_gp_register_row, mips_print_registers_info)
6340 (mips_register_sim_regno): Likewise.
6341 * m68klinux-nat.c (regmap, fetch_register, store_register): Likewise.
6342 * inf-ptrace.c (inf_ptrace_fetch_register)
6343 (inf_ptrace_store_register): Likewise.
6344 * infcmd.c (default_print_registers_info): Likewise.
6345 * ia64-linux-nat.c (ia64_linux_fetch_register)
6346 (ia64_linux_store_register): Likewise.
6347 * i386-linux-nat.c (fetch_register, store_register): Likewise.
6348 * i386gnu-nat.c (gnu_fetch_registers, gnu_store_registers): Likewise.
6349 * hppa-linux-nat.c (fetch_register, store_register): Likewise.
6350 * hppa-hpux-nat.c (hppa_hpux_fetch_register)
6351 (hppa_hpux_store_register): Likewise.
6352 * findvar.c (locate_var_value): Likewise.
6353 * dwarf2loc.c (locexpr_describe_location): Likewise.
6354 * dwarf2-frame.c (execute_cfa_program): Likewise.
6355 * arm-tdep.c (arm_push_dummy_call): Likewise.
6356 * arch-utils.c (legacy_register_sim_regno): Likewise.
6357 * alpha-tdep.c (alpha_register_reggroup_p): Likewise.
6358 * alpha-nat.c (fetch_osf_core_registers): Likewise.
6359 * mi/mi-main.c (mi_cmd_data_list_register_names)
6360 (mi_cmd_data_list_changed_registers, mi_cmd_data_list_register_values)
6361 (mi_cmd_data_write_register_values): Likewise.
6362 * gdbarch.c, gdbarch.h: Regenerate.
6364 2007-06-07 Daniel Jacobowitz <dan@codesourcery.com>
6366 * target-memory.c (blocks_to_erase): Correct off-by-one error.
6368 2007-06-06 Vladimir Prus <vladimir@codesourcery.com>
6370 * remote.c (process_g_packet): Don't check size.
6371 * gdbarch.sh: Remove register_bytes_ok.
6372 * gdbarch.c: Regenerated.
6373 * gdbarch.h: Regenerated.
6374 * m68k-tdep.c (REGISTER_BYTES_NOFP): Remove.
6375 (m68k_register_bytes_ok): Remove.
6376 (m68k_gdbarch_init): Don't register m68k_register_bytes_ok.
6378 2007-06-06 Andreas Schwab <schwab@suse.de>
6380 * libunwind-frame.c (unw_destroy_addr_space_p): Define.
6381 (destroy_addr_space_name): Define.
6382 (libunwind_load): Get address of destroy_addr_space function.
6383 (libunwind_frame_cache): Destroy unw_addr_space_t object before
6384 returning unsuccessfully.
6385 (libunwind_frame_sniffer): Destroy unw_addr_space_t object before
6387 (libunwind_sigtramp_frame_sniffer): Likewise.
6388 (libunwind_get_reg_special): Likewise.
6390 2007-06-06 Markus Deuling <deuling@de.ibm.com>
6392 * gdbarch.sh (FETCH_POINTER_ARGUMENT): Replace by
6393 gdbarch_fetch_pointer_argument.
6394 * objc-lang.c (OBJC_FETCH_POINTER_ARGUMENT): Likewise.
6395 * gdbarch.c, gdbarch.h: Regenerate.
6397 2007-06-06 Markus Deuling <deuling@de.ibm.com>
6399 * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Replace by
6400 gdbarch_have_nonsteppable_watchpoint.
6401 * infrun.c (handle_inferior_event, adjust_pc_after_break): Likewise.
6402 * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Replace by
6403 gdbarch_cannot_step_breakpoint.
6404 * infrun.c (resume): Likewise.
6405 * gdbarch.c, gdbarch.h: Regenerate.
6407 2007-06-06 Markus Deuling <deuling@de.ibm.com>
6409 * gdbarch.sh (FRAME_ARGS_SKIP): Replace by gdbarch_frame_args_skip.
6410 * stack.c (print_frame_args): Likewise.
6411 * gdbarch.sh (FRAME_NUM_ARGS): Replace by gdbarch_frame_num_args.
6412 * stack.c (print_args_stub, frame_info): Likewise.
6413 * gdbarch.sh (FRAME_NUM_ARGS_P): Replace by gdbarch_frame_num_args_p.
6414 * stack.c (print_args_stub, frame_info): Likewise.
6415 * gdbarch.c, gdbarch.h: Regenerate.
6417 2007-06-06 Markus Deuling <deuling@de.ibm.com>
6419 * gdbarch.sh (COFF_MAKE_MSYMBOL_SPECIAL): Replace by
6420 gdbarch_coff_make_msymbol_special.
6421 * coffread.c (coff_symtab_read): Likewise.
6422 * gdbarch.sh (ELF_MAKE_MSYMBOL_SPECIAL): Replace by
6423 gdbarch_elf_make_msymbol_special.
6424 * elfread.c (elf_symtab_read): Likewise.
6425 * mips-tdep.c (mips_elf_make_msymbol_special): Likewise (comment).
6426 * sh64-tdep.c (MSYMBOL_IS_SPECIAL): Likewise (comment).
6427 * gdbarch.c, gdbarch.h: Regenerate.
6429 2007-06-06 Markus Deuling <deuling@de.ibm.com>
6431 * gdbarch.sh (FRAME_RED_ZONE_SIZE): Replace by
6432 gdbarch_frame_red_zone_size.
6433 * gdbarch.c, gdbarch.h: Regenerate.
6435 2007-06-06 Markus Deuling <deuling@de.ibm.com>
6437 * gdbarch.sh (INNER_THAN): Replace by gdbarch_inner_than.
6438 * infcall.c (call_function_by_hand): Likewise.
6439 * gcore.c (derive_stack_segment): Likewise.
6440 * frame.c (frame_id_inner): Likewise.
6441 * arch-utils.c (core_addr_lessthan): Likewise (comment).
6442 * ada-lang.c (ensure_lval): Likewise.
6443 * gdbarch.c, gdbarch.h: Regenerate.
6445 2007-06-06 Markus Deuling <deuling@de.ibm.com>
6447 * gdbarch.sh (ADDRESS_TO_POINTER): Replace by
6448 gdbarch_address_to_pointer.
6449 * findvar.c (store_typed_address): Likewise.
6450 * gdbtypes.c (make_pointer_type): Likewise (comment).
6451 * procfs.c (procfs_address_to_host_pointer): Likewise.
6452 * std-regs.c (value_of_builtin_frame_reg): Likewise.
6453 (value_of_builtin_frame_fp_reg): Likewise.
6454 (value_of_builtin_frame_pc_reg): Likewise.
6455 * utils.c (paddress): Likewise (comment).
6456 * gdbarch.sh (POINTER_TO_ADDRESS): Replace by
6457 gdbarch_pointer_to_address.
6458 * findvar.c (extract_typed_address): Likewise.
6459 * gdbtypes.c (make_pointer_type): Likewise (comment).
6460 * valops.c (value_cast): Likewise (comment).
6461 * gdbarch.c, gdbarch.h: Regenerate.
6463 2007-06-06 Markus Deuling <deuling@de.ibm.com>
6465 * gdbarch.sh (GET_LONGJMP_TARGET): Replace by gdbarch_get_longjmp_target.
6466 * infrun.c (handle_inferior_event): Likewise.
6467 * gdbarch.sh (GET_LONGJMP_TARGET_P): Replace by
6468 gdbarch_get_longjmp_target_p.
6469 * breakpoint.c (breakpoint_re_set): Likewise.
6470 * infrun.c (handle_inferior_event): Likewise.
6471 * gdbarch.c, gdbarch.h: Regenerate.
6473 2007-06-06 Ulrich Weigand <uweigand@de.ibm.com>
6475 * hppa-hpux-tdep.c (args_for_find_stub, HP_ACC_EH_notify_hook,
6476 HP_ACC_EH_set_hook_value, HP_ACC_EH_notify_callback, HP_ACC_EH_break,
6477 HP_ACC_EH_catch_throw, HP_ACC_EH_catch_catch, __eh_notification,
6478 hp_cxx_exception_support, hp_cxx_exception_support_initialized,
6479 eh_notify_hook_addr, eh_notify_callback_addr, eh_break_addr,
6480 eh_catch_throw_addr, break_callback_sal, setup_d_pid_in_inferior,
6481 find_stub_with_shl_get, cover_find_stub_with_shl_get,
6482 initialize_hp_cxx_exception_support, child_enable_exception_callback,
6483 current_ex_event, child_get_current_exception_event): Remove.
6484 (hppa_hpux_inferior_created): Remove.
6485 (hppa_hpux_init_abi): Do not install hppa_hpux_inferior_created.
6487 * breakpoint.h (deprecated_exception_catchpoints_are_fragile): Remove.
6488 (deprecated_exception_support_initialized): Remove.
6489 * breakpoint.c (deprecated_exception_catchpoints_are_fragile): Remove.
6490 (deprecated_exception_support_initialized): Remove.
6491 (breakpoint_init_inferior): Remove handling of non-zero
6492 deprecated_exception_catchpoints_are_fragile.
6494 * symtab.h (deprecated_hp_som_som_object_present): Remove.
6495 * symtab.c (deprecated_hp_som_som_object_present): Remove.
6496 * c-typeprint.c (c_type_print_base): Remove handling of non-zero
6497 deprecated_hp_som_som_object_present.
6498 * eval.c (evaluate_subexp_standard): Likewise.
6499 * valops.c (value_cast): Likewise.
6501 * parse.c (parse_nested_classes_for_hpacc, coloncolon): Remove.
6502 * parser-defs.h (parse_nested_classes_for_hpacc): Remove.
6503 * c-exp.y (yylex): Do not call parse_nested_classes_for_hpacc.
6505 2007-06-06 Ulrich Weigand <uweigand@de.ibm.com>
6507 * objfiles.h (ImportEntry, ExportEntry): Remove types.
6508 (struct objfile): Remove import_list, import_list_size,
6509 export_list, export_list_size members.
6510 (is_in_import_list): Remove prototype.
6511 * objfiles.c (is_in_import_list): Remove.
6512 * somread.c (init_import_symbols, init_export_symbols): Remove.
6513 (som_symfile_read): Do not call init_import_symbols. Do not
6514 set objfile->export_list and objfile->export_list_size.
6516 2007-06-05 Daniel Jacobowitz <dan@codesourcery.com>
6518 * dwarf2read.c (dwarf2_symbol_mark_computed): Fix formatting.
6519 Use the original objfile if necessary.
6521 2007-06-04 Daniel Jacobowitz <dan@codesourcery.com>
6523 * defs.h (ldirname): New prototype.
6524 * dwarf2read.c (read_file_scope): Use DW_AT_name if DW_AT_comp_dir is
6526 * utils.c (ldirname): New function.
6527 * xml-tdesc.c (file_read_description_xml): Use ldirname.
6529 2007-06-01 Ulrich Weigand <uweigand@de.ibm.com>
6531 * spu-tdep.c (spu_push_dummy_call): Store stack back chain.
6533 2007-06-01 Joel Brobecker <brobecker@adacore.com>
6535 * solib-svr4.c (svr4_solib_create_inferior_hook): Remove warning.
6537 2007-06-01 Ulrich Weigand <uweigand@de.ibm.com>
6539 * irix5-nat.c (JB_ELEMENT_SIZE, get_longjmp_target): Remove.
6541 2007-06-01 Ulrich Weigand <uweigand@de.ibm.com>
6543 * ppc-linux-tdep.c (INSTR_SC, INSTR_LI_R0_0x6666, INSTR_LI_R0_0x7777,
6544 INSTR_LI_R0_NR_sigreturn, INSTR_LI_R0_NR_rt_sigreturn): Remove.
6545 (PPC_LINUX_SIGNAL_FRAMESIZE, PPC_LINUX_REGS_PTR_OFFSET,
6546 PPC_LINUX_HANDLER_PTR_OFFSET): Remove.
6547 (ppc_linux_in_sigtramp, insn_is_sigreturn,
6548 ppc_linux_at_sigtramp_return_path): Remove.
6550 2007-05-31 Markus Deuling <deuling@de.ibm.com>
6552 * xtensa-tdep.c (XTENSA_IS_ENTRY, extract_call_winsize)
6553 (xtensa_register_write_masked, xtensa_register_read_masked)
6554 (xtensa_extract_return_value, xtensa_store_return_value
6555 (xtensa_push_dummy_call, xtensa_breakpoint_from_pc): Replace
6556 TARGET_BYTE_ORDER by gdbarch_byte_order.
6557 * sh-tdep.c (sh_breakpoint_from_pc, gdb_print_insn_sh)
6558 (sh_justify_value_in_reg, sh_next_flt_argreg, sh_push_dummy_call_fpu)
6559 (sh_extract_return_value_fpu, sh_store_return_value_fpu): Likewise.
6560 * sh64-tdep.c (sh64_breakpoint_from_pc, gdb_print_insn_sh64)
6561 (sh64_push_dummy_call, sh64_extract_return_value)
6562 (sh64_store_return_value, sh64_register_convert_to_virtual)
6563 (sh64_register_convert_to_raw, sh64_pseudo_register_read)
6564 (sh64_pseudo_register_write, sh64_do_fp_register)
6565 (sh64_frame_prev_register): Likewise.
6566 * score-tdep.c (score_print_insn, score_breakpoint_from_pc)
6567 (score_return_value, score_push_dummy_call, score_fetch_inst): Likewise.
6568 * rs6000-tdep.c (rs6000_breakpoint_from_pc, rs6000_push_dummy_call)
6569 (e500_move_ev_register,gdb_print_insn_powerpc): Likewise.
6570 * remote-m32r-sdi.c (m32r_resume, m32r_wait): Likewise.
6571 * ppc-linux-nat.c (store_register): Likewise.
6572 * nto-tdep.c (nto_find_and_open_solib)
6573 (nto_init_solib_absolute_prefix): Likewise.
6574 * mips-tdep.c (mips_pseudo_register_read, mips_pseudo_register_write)
6575 (mips_convert_register_p, mips_eabi_push_dummy_call)
6576 (mips_n32n64_push_dummy_call, mips_n32n64_return_value)
6577 (mips_o32_push_dummy_call, mips_o32_return_value)
6578 (mips_o64_push_dummy_call, mips_o64_return_value, mips_o64_return_value)
6579 (mips_read_fp_register_single, mips_read_fp_register_double)
6580 (mips_print_register, print_gp_register_row, gdb_print_insn_mips)
6581 (mips_breakpoint_from_pc): Likewise.
6582 * mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset): Likewise.
6583 * mips-linux-tdep.c (mips64_supply_fpregset, mips64_fill_fpregset)
6584 (mips_linux_o32_sigframe_init): Likewise.
6585 * m32r-tdep.c (m32r_memory_insert_breakpoint)
6586 (m32r_memory_remove_breakpoint, m32r_breakpoint_from_pc): Likewise.
6587 * libunwind-frame.c (libunwind_frame_cache, libunwind_frame_sniffer)
6588 (libunwind_sigtramp_frame_sniffer, libunwind_get_reg_special): Likewise.
6589 * iq2000-tdep.c (iq2000_breakpoint_from_pc): Likewise.
6590 * coffread.c (process_coff_symbol): Likewise.
6591 * arm-tdep.c (convert_from_extended, convert_to_extended)
6592 (gdb_print_insn_arm): Likewise.
6594 2007-05-31 Markus Deuling <deuling@de.ibm.com>
6596 * gdbarch.sh (NUM_REGS): Replace by gdbarch_num_regs.
6597 * i386-tdep.c (i386_dbx_reg_to_regnum)
6598 (i386_svr4_reg_to_regnum): Likewise.
6599 * inf-ptrace.c (inf_ptrace_fetch_registers)
6600 (inf_ptrace_store_registers): Likewise.
6601 * corelow.c (get_core_registers): Likewise.
6602 * i386-linux-nat.c (supply_gregset, fill_gregset)
6603 (i386_linux_fetch_inferior_registers)
6604 (i386_linux_store_inferior_registers): Likewise.
6605 * remote.c (init_remote_state,packet_reg_from_regnum)
6606 (packet_reg_from_pnum,process_g_packet,remote_fetch_registers)
6607 (remote_prepare_to_store,store_registers_using_G)
6608 (remote_store_registers,remote_arch_state): Likewise.
6609 * tracepoint.c (encode_actions): Likewise.
6610 * mi/mi-main.c (mi_cmd_data_list_register_names)
6611 (mi_cmd_data_list_changed_registers,mi_cmd_data_list_register_values)
6612 (mi_cmd_data_write_register_values): Likewise.
6613 * tui/tui-regs.c (tui_show_register_group)
6614 (tui_show_register_group): Likewise.
6615 * xtensa-tdep.h (FP_ALIAS): Likewise.
6616 * xtensa-tdep.c (xtensa_register_name,xtensa_register_type)
6617 (xtensa_reg_to_regnum,xtensa_pseudo_register_read)
6618 (xtensa_pseudo_register_write,xtensa_register_reggroup_p): Likewise.
6619 * win32-nat.c (do_win32_fetch_inferior_registers)
6620 (do_win32_store_inferior_registers,fetch_elf_core_registers
6621 * user-regs.h: Likewise (comment).
6622 * user-regs.c (user_reg, user_reg_map_name_to_regnum): Likewise.
6623 * trad-frame.c (trad_frame_alloc_saved_regs): Likewise.
6624 * target-descriptions.h: Likewise (comment).
6625 * target-descriptions.c (tdesc_use_registers): Likewise (comment).
6626 * target.c (debug_print_register): Likewise.
6627 * stack.c (frame_info): Likewise.
6628 * stabsread.c (define_symbol): Likewise.
6629 * sh64-tdep.c (sh64_do_pseudo_register,sh64_print_register)
6630 (sh64_media_print_registers_info)
6631 (sh64_compact_print_registers_info): Likewise.
6632 * rs6000-tdep.c (rs6000_register_sim_regno): Likewise.
6633 * rs6000-nat.c (fetch_register,store_register): Likewise.
6634 * remote-sim.c (one2one_register_sim_regno,gdbsim_fetch_register)
6635 (gdbsim_fetch_register,gdbsim_store_register): Likewise.
6636 * remote-mips.c (mips_fetch_registers,mips_store_registers): Likewise.
6637 * remote-m32r-sdi.c (m32r_fetch_registers)
6638 (m32r_store_registers): Likewise.
6639 * reggroups.c (default_register_reggroup_p): Likewise.
6640 * regcache.c (init_regcache_descr,register_size,regcache,regcache_save)
6641 (regcache_restore,regcache_dump): Likewise.
6642 * monitor.c (monitor_fetch_registers,monitor_store_registers): Likewise.
6643 * mips-tdep.c (mips_xfer_register,mips_register_name)
6644 (mips_register_reggroup_p,mips_pseudo_register_read)
6645 (mips_pseudo_register_write,mips_convert_register_p,mips_register_type)
6646 (mips_unwind_pc,mips_unwind_sp,mips_unwind_dummy_id,set_reg_offset)
6647 (mips16_scan_prologue,mips_insn16_frame_cache,reset_saved_regs)
6648 (mips32_scan_prologue,mips_insn32_frame_cache,read_next_frame_reg)
6649 (mips_n32n64_return_value,mips_o32_return_value,mips_o64_return_value)
6650 (print_gp_register_row,mips_print_registers_info)
6651 (mips_stab_reg_to_regnum,mips_dwarf_dwarf2_ecoff_reg_to_regnum)
6652 (mips_register_sim_regno): Likewise.
6653 * mips-linux-tdep.c (mips_linux_o32_sigframe_init)
6654 (mips_linux_n32n64_sigframe_init): Likewise.
6655 * mips-linux-nat.c (mips_linux_register_addr)
6656 (mips64_linux_register_addr): Likewise.
6657 * findvar.c (value_of_register): Likewise.
6658 * infcmd.c (default_print_registers_info,registers_info)
6659 (print_vector_info,print_float_info): Likewise.
6660 * mips64obsd-tdep.c (mips64obsd_sigframe_init): Likewise.
6661 * inf-child.c (inf_child_fetch_inferior_registers): Likewise.
6662 * m68k-tdep.c (m68k_dwarf_reg_to_regnum): Likewise.
6663 * m68hc11-tdep.c (m68hc11_frame_unwind_cache(: Likewise.
6664 * m32r-tdep.c (m32r_frame_unwind_cache): Likewise.
6665 * ia64-linux-nat.c (ia64_register_addr,ia64_cannot_fetch_register)
6666 (ia64_cannot_store_register,ia64_linux_fetch_registers)
6667 (ia64_linux_store_registers): Likewise.
6668 * hpux-thread.c (hpux_thread_fetch_registers)
6669 (hpux_thread_store_registers): Likewise.
6670 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM,E_PSEUDO_EXR_REGNUM)
6671 (h8300_init_frame_cache,h8300_frame_cache,h8300_frame_prev_register)
6672 (h8300_register_type): Likewise.
6673 * dwarf2-frame.c (dwarf2_frame_cache)
6674 (dwarf2_frame_state_alloc_regs): Likewise.
6675 * cris-tdep.c (cris_register_size,cris_cannot_fetch_register)
6676 (cris_cannot_store_register,crisv32_cannot_fetch_register)
6677 (crisv32_cannot_store_register,cris_register_name): Likewise.
6678 * avr-tdep.c (avr_frame_unwind_cache): Likewise.
6679 * arch-utils.c (legacy_register_sim_regno)
6680 (legacy_virtual_frame_pointer): Likewise.
6681 * arm-tdep.c (arm_make_prologue_cache,arm_register_sim_regno):Likewise.
6682 * arm-tdep.h: Likewise (comment).
6683 * frv-tdep.c (frv_register_sim_regno): Likewise.
6684 * m68klinux-nat.c (old_fetch_inferior_registers)
6685 (old_store_inferior_registers): Likewise.
6686 * m32c-tdep.c (m32c_virtual_frame_pointer): Likewise.
6687 * irix5-nat.c (fetch_core_registers): Likewise.
6688 * hppa-tdep.c (hppa_frame_cache): Likewise.
6689 * hppa-linux-nat.c (hppa_linux_register_addr)
6690 (hppa_linux_fetch_inferior_registers)
6691 (hppa_linux_store_inferior_registers): Likewise.
6692 * hppa-hpux-nat.c (hppa_hpux_fetch_inferior_registers)
6693 (hppa_hpux_store_inferior_registers): Likewise.
6694 * amd64-nat.c (amd64_native_gregset_reg_offset)
6695 (amd64_supply_native_gregset,amd64_collect_native_gregset): Likewise.
6696 * dbug-rom.c (dbug_regname): Likewise.
6697 * m68hc11-tdep.c (m68hc11_frame_unwind_cache)
6698 (HARD_PAGE_REGNUM (comment)): Likewise.
6699 * gdbarch.sh (NUM_PSEUDO_REGS): Replace by gdbarch_num_pseudo_regs.
6700 * i386-tdep.c (i386_dbx_reg_to_regnum)
6701 (i386_svr4_reg_to_regnum): Likewise.
6702 * mi/mi-main.c (mi_cmd_data_list_register_names)
6703 (mi_cmd_data_list_changed_registers,mi_cmd_data_list_register_values)
6704 (mi_cmd_data_write_register_values): Likewise.
6705 * gdbarch.c, gdbarch.h: Regenerate.
6706 * tui/tui-regs.c (tui_show_register_group): Likewise.
6707 * xtensa-tdep.h (FP_ALIAS): Likewise.
6708 * user-regs.h: Likewise (comment).
6709 * user-regs.c (user_reg, user_reg_map_name_to_regnum): Likewise.
6710 * trad-frame.c (trad_frame_alloc_saved_regs): Likewise.
6711 * target-descriptions.h: Likewise (comment).
6712 * target.c (debug_print_register): Likewise.
6713 * stack.c (frame_info): Likewise.
6714 * stabsread.c (define_symbol): Likewise.
6715 * sh64-tdep.c (sh64_print_register,sh64_media_print_registers_info)
6716 (sh64_compact_print_registers_info): Likewise.
6717 * rs6000-tdep.c (rs6000_register_sim_regno): Likewise.
6718 * regcache.c (init_regcache_descr,register_size,regcache,regcache_save
6719 (regcache_restore,regcache_dump): Likewise.
6720 * mips-tdep.c (print_gp_register_row,mips_print_registers_info)
6721 (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
6722 (mips_stab_reg_to_regnum): Likewise.
6723 * findvar.c (value_of_register): Likewise.
6724 * infcmd.c (default_print_registers_info,registers_info)
6725 (print_vector_info,print_float_info): Likewise.
6726 * m68k-tdep.c (m68k_dwarf_reg_to_regnum): Likewise.
6727 * h8300-tdep.c (h8300_register_type): Likewise.
6728 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
6729 * frame.h (SIZEOF_FRAME_SAVED_REGS): Likewise.
6730 * xtensa-tdep.c (xtensa_register_type,xtensa_reg_to_regnum)
6731 (xtensa_pseudo_register_read,xtensa_pseudo_register_write): Likewise.
6732 * parse.c: Remove comment.
6733 * gdbarch.c, gdbarch.h: Regenerate
6735 2007-05-31 Markus Deuling <deuling@de.ibm.com>
6737 * gdbarch.sh (CANNOT_FETCH_REGISTER): Replace by
6738 gdbarch_cannot_fetch_register.
6739 * alpha-nat.c (fetch_osf_core_registers): Likewise.
6740 * hppa-linux-nat.c (fetch_register): Likewise.
6741 * inf-ptrace.c (inf_ptrace_fetch_register): Likewise.
6742 * m68klinux-nat.c (fetch_register): Likewise.
6743 * mipsnbsd-tdep.c (mipsnbsd_supply_reg, mipsnbsd_supply_fpreg):
6745 * gdbarch.sh (CANNOT_STORE_REGISTER): Replace by
6746 gdbarch_cannot_store_register.
6747 * hppa-linux-nat.c (store_register): Likewise.
6748 * inf-ptrace.c (inf_ptrace_store_register): Likewise.
6749 * regcache.c (regcache_raw_write): Likewise.
6750 * m68klinux-nat.c (store_register): Likewise.
6751 * mipsnbsd-tdep.c (mipsnbsd_fill_reg, mipsnbsd_fill_fpreg): Likewise.
6752 * gdbarch.c, gdbarch.h: Regenerate.
6754 2007-05-31 Markus Deuling <deuling@de.ibm.com>
6756 * gdbarch.sh (TARGET_OSABI): Replace by gdbarch_osabi.
6757 * gdbarch.c, gdbarch.h: Regenerate.
6759 2007-05-31 Markus Deuling <deuling@de.ibm.com>
6761 * gdbarch.sh (TARGET_CHAR_SIGNED): Replace by gdbarch_char_signed.
6762 * gdbtypes.c (build_gdbtypes, gdbtypes_post_init): Likewise.
6763 * gdbarch.c, gdbarch.h: Regenerate.
6765 2007-05-31 Markus Deuling <deuling@de.ibm.com>
6767 * gdbarch.sh (TARGET_BYTE_ORDER): Replace by gdbarch_byte_order.
6768 * ax-gdb.c (gen_bitfield_ref): Likewise.
6769 * mi/mi-main.c (get_register): Likewise.
6770 * findvar.c (default_value_from_register, extract_signed_integer)
6771 (extract_unsigned_integer, extract_long_unsigned_integer)
6772 (store_signed_integer, store_unsigned_integer): Likewise.
6773 * regcache.c (regcache_dump): Likewise.
6774 * value.c (lookup_internalvar, value_of_internalvar)
6775 (set_internalvar): Likewise.
6777 * valprint.c (print_binary_chars, print_octal_chars)
6778 (print_decimal_chars, print_hex_chars, print_char_chars): Likewise.
6779 * infcmd.c (default_print_registers_info): Likewise.
6780 * arch-utils.c (selected_byte_order, show_endian): Likewise.
6781 * stabsread.c (define_symbol): Likewise.
6782 * doublest.c (floatformat_from_length, floatformat_from_type)
6783 (extract_typed_floating, store_typed_floating): Likewise.
6784 * gdbarch.c, gdbarch.h: Regenerate.
6786 2007-05-31 Markus Deuling <deuling@de.ibm.com>
6788 * gdbarch.sh (CALL_DUMMY_LOCATION): Replace by
6789 gdbarch_call_dummy_location.
6790 * infcall.c (call_function_by_hand): Likewise.
6791 * inferior.h: Change comment.
6792 * arch-utils.c: Change comment.
6793 * gdbarch.c, gdbarch.h: Regenerate.
6795 2007-05-28 Joel Brobecker <brobecker@adacore.com>
6797 * solib-aix5.c: Delete.
6798 * Makefile.in (solib-aix5.o): Delete rule.
6800 2007-05-23 Daniel Jacobowitz <dan@codesourcery.com>
6802 * breakpoint.h (enum bpstat_what_main_action): Remove
6803 BPSTAT_WHAT_THROUGH_SIGTRAMP.
6804 * infrun.c (process_event_stop_test): Do not check for it.
6806 2007-05-22 Chris Dearman <chris@mips.com>
6807 Maciej W. Rozycki <macro@mips.com>
6809 * ser-unix.c (show_serial_hwflow): New function.
6810 (hardwire_raw): Add hardware flow control support.
6811 (_initialize_ser_hardwire): Add "set/show remoteflow".
6812 * Makefile.in (ser-unix.o): Depend on $(gdbcmd_h).
6813 * NEWS: Document the new command.
6815 2007-05-21 Ulrich Weigand <uweigand@de.ibm.com>
6817 * config/i386/tm-linux.h (sys_quotactl): Do not define.
6818 * configure.ac (sys_quotactl, START_INFERIOR_TRAPS_EXPECTED): Do not
6819 define for i[[3456]]86-*-linux* native configurations.
6820 * config.in, configure: Regenerate.
6822 2007-05-19 Joel Brobecker <brobecker@adacore.com>
6824 * rs6000-nat.c (xcoff_relocate_symtab): Do nothing if debugging
6825 a core file. Add comment in the function description.
6827 2007-05-18 Caroline Tice <ctice@apple.com>
6829 * c-valprint.c (c_value_print): If the initialized field of the
6830 value struct is 0, print out "[uninitialized]" before the value.
6831 * dwarf2expr.c (execute_stack_op): Initialize ctx->initialized field;
6832 allow DW_OP_GNU_uninit as legal op following a DW_OP_reg op or a
6833 DW_OP_regx op; add case for DW_OP_GNU_uninit and update
6834 ctx->initialized appropriately. Verify no location op follows
6836 * dwarf2expr.h (struct dwarf_expr_context): New field, initialized.
6837 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Add call to
6838 set_value_initialized.
6839 * dwarf2read.c (dwarf_stack_op_name): Add case for DW_OP_GNU_uninit.
6840 (decode_locdesc): Add case for DW_OP_GNU_uninit.
6841 * value.c (struct value): New field, initialized.
6842 (allocate_value): Initialize new field.
6843 (set_value_initialized): New function.
6844 (value_initialized): New function.
6845 * value.h (value_initialized): New extern declaration.
6846 (set_value_initialized): Likewise.
6848 2007-05-18 Caroline Tice <ctice@apple.com>
6850 * MAINTAINERS (Write After Approval): Add self.
6852 2007-05-17 Joel Brobecker <brobecker@adacore.com>
6854 * gdbtypes.c (make_reference_type): Preserve the type chain
6855 and set the length of all the variants of the pointer type.
6857 2007-05-17 Joel Brobecker <brobecker@adacore.com>
6859 * gdbtypes.c (make_pointer_type): Preserve the pointer type chain
6860 and set the length of all the variants of the pointer type.
6862 2007-05-17 Maciej W. Rozycki <macro@mips.com>
6864 * mips-tdep.c (mips_n32n64_push_dummy_call): Fix and reformat a
6866 (mips_o64_push_dummy_call): Reformat a comment.
6868 2007-05-17 Qinwei <qinwei@sunnorth.com.cn>
6870 * score-tdep.c (score_frame_cache->fp, score_analyze_prologue)
6871 (score_prologue_frame_base_address): Return fp to keep gdb print
6872 local variables correctly when debugging information is stabs.
6874 (score_analyze_prologue): For software watchpoint, fetch all the
6875 instructions from range [startaddr, pc] once and identify them locally
6876 to reduce memory access.
6877 (score_malloc_and_get_memblock, score_free_memblock)
6878 (score_adjust_memblock_ptr): New functions.
6879 (score_fetch_inst): Fetch single instruction or mutiple instructions.
6881 (score_target_can_use_watch, score_stopped_by_watch)
6882 (score_target_insert_watchpoint, score_target_remove_watchpoint)
6883 (score_target_insert_hw_breakpoint, score_target_remove_hw_breakpoint):
6884 New functions for remote & local hw-watchpoint and hw-breakpoint.
6886 2007-05-16 Alfred M. Szmidt <ams@gnu.org>
6888 * reply_mig_hack.awk: Check for `auto const mach_msg_type_t'
6889 declarations as well.
6891 2007-05-16 Ulrich Weigand <uweigand@de.ibm.com>
6893 * config/arm/embed.mt (DEPRECATED_TM_FILE): Set to tm-arm.h.
6894 * config/arm/tm-embed.h: Delete file.
6896 * arm-tdep.h (arm_software_single_step): Declare.
6897 * arm-tdep.c (arm_software_single_step): Make global.
6898 (arm_gdbarch_init): Move set_gdbarch_software_single_step call
6900 * arm-linux-tdep.c (arm_linux_init_abi): ... here ...
6901 * armnbsd-tdep.c (arm_netbsd_init_abi_common): ... here ...
6902 * armobsd-tdep.c (armobsd_init_abi): ... here ...
6903 * arm-wince-tdep.c (arm_wince_init_abi): ... and here.
6905 * arm-tdep.c (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT): No longer
6906 allow defines to be overriden by TM file.
6907 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Likewise. Also,
6908 change default to {0xbe,0xbe}.
6909 * armobsd-tdep.c (arm_obsd_thumb_le_breakpoint,
6910 arm_obsd_thumb_be_breakpoint): New global variables.
6911 (armobsd_init_abi): Override tdep->thumb_breakpoint and
6912 tdep->thumb_breakpoint_size.
6913 * arm-wince-tdep.c (arm_wince_thumb_le_breakpoint): New variable.
6914 (arm_wince_init_abi): Override tdep->thumb_breakpoint and
6915 tdep->thumb_breakpoint_size.
6917 * arm-tdep.c (arm_gdbarch_init): Add set_gdbarch_skip_trampoline_code.
6919 2007-05-16 Daniel Jacobowitz <dan@codesourcery.com>
6921 * NEWS: Mention removed "set mips stack-arg-size" and "set mips
6924 * mips-tdep.c (MIPS32_REGSIZE, MIPS64_REGSIZE): New constants.
6925 (size_auto, size_32, size_64, size_enums, mips_abi_regsize_string)
6926 (mips_stack_argsize_string, mips_stack_argsize): Delete.
6927 (mips_abi_regsize): Simplify.
6928 (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call)
6929 (mips_n32n64_return_value, mips_o32_push_dummy_call)
6930 (mips_o32_return_value, mips_o64_push_dummy_call)
6931 (mips_o64_return_value): Propogate constant register sizes. Use the
6932 ABI register size instead of mips_stack_argsize.
6933 (mips_dump_tdep): Don't print mips_stack_argsize.
6934 (_initialize_mips_tdep): Remove saved-gpreg-size and stack-arg-size
6937 2007-05-16 Daniel Jacobowitz <dan@codesourcery.com>
6939 * config/mips/linux.mt (DEPRECATED_TM_FILE): Delete.
6940 * config/mips/tm-linux.h: Delete.
6941 * mips-linux-tdep.c (mips_svr4_so_ops): New.
6942 (mips_linux_in_dynsym_resolve_code): Make static. Use
6943 svr4_in_dynsym_resolve_code.
6944 (mips_linux_init_abi): Initialize mips_svr4_so_ops. Call
6946 * solib-svr4.c (svr4_in_dynsym_resolve_code, svr4_so_ops): Make
6948 * solib-svr4.h (svr4_so_ops, svr4_in_dynsym_resolve_code): Declare.
6949 * Makefile.in (mips-linux-tdep.o): Update.
6950 * solib.c (set_solib_ops): New.
6951 (current_target_so_ops): Update comment.
6952 * solib.h (set_solib_ops): New prototype.
6954 2007-05-16 Chris Dearman <chris@mips.com>
6956 * printcmd.c (do_examine): Fix typos in a comment.
6958 2007-05-16 Richard Sandiford <richard@codesourcery.com>
6960 * configure.ac: Allow sysroots to be relocated under $prefix as
6961 well as $exec_prefix.
6962 * configure: Regenerate.
6964 2007-05-14 Ulrich Weigand <uweigand@de.ibm.com>
6966 * hppa-hpux-tdep.c: Do not include <dl.h> or <machine/save_state.h>.
6967 (offsetof): Do not define.
6968 (find_stub_with_shl_get): Use numerical value 3 instead of
6969 symbolic value TYPE_PROCEDURE.
6971 2007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
6973 * gdb_proc_service.h (paddr_t): Delete typedef.
6974 * proc-service.c (ps_addr_to_core_addr, core_addr_to_ps_addr): New.
6975 (ps_xfer_memory): Take a psaddr_t. Use ps_addr_to_core_addr.
6976 (ps_pglobal_lookup): Take a psaddr_t *. Use core_addr_to_ps_addr.
6977 (ps_pdread, ps_pdwrite, ps_ptread, ps_ptwrite): Take a psaddr_t.
6978 * sol-thread.c (gdb_ps_addr_t): Use psaddr_t instead of paddr_t.
6979 * Makefile.in (proc-service.o): Update.
6981 2007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
6983 * Makefile.in (mips-tdep.o): Update.
6984 * mips-tdep.c (mips_gdbarch_init): Register the dwarf2 CFI
6987 2007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
6989 * dwarf2-frame.c (dwarf2_frame_prev_register): Use pack_long
6990 instead of store_typed_address.
6991 * value.c (pack_long): New.
6992 (value_from_longest): Use it.
6993 * value.h (pack_long): New prototype.
6995 2007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
6997 * dwarf2-frame.c (read_encoded_value): Correct typo. Use
6998 DW_EH_PE_signed if appropriate.
7000 2007-05-14 Paul Brook <paul@codesourcery.com>
7001 Daniel Jacobowitz <dan@codesourcery.com>
7003 * dwarf2read.c (dwarf2_debug_line_missing_file_complaint): New
7005 (dwarf_decode_lines): Check for line info without a file.
7007 2007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
7009 * linux-thread-db.c (thread_db_pid_to_str): Print thread IDs
7012 2007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
7014 * jv-exp.y (push_fieldnames): Use STRUCTOP_PTR instead of
7016 * jv-lang.c (evaluate_subexp_java): Handle STRUCTOP_PTR instead of
7018 * jv-typeprint.c (java_print_type): Do not crash on NULL varstring.
7020 2007-05-14 Ulrich Weigand <uweigand@de.ibm.com>
7022 * gdbarch.sh (read_sp): Remove.
7023 * gdbarch.c, gdbarch.h: Regenerate.
7024 * frame.c (frame_sp_unwind): Do not call TARGET_READ_SP.
7026 * avr-tdep.c (avr_read_sp): Remove.
7027 (avr_unwind_sp): New function.
7028 (avr_gdbarch_init): Install unwind_sp instead of read_sp callback.
7029 * mips-tdep.c (mips_read_sp): Remove.
7030 (mips_unwind_sp): New function.
7031 (mips_gdbarch_init): Install unwind_sp instead of read_sp callback.
7032 * score-tdep.c (score_read_unsigned_register): Remove.
7033 (score_read_sp): Remove.
7034 (score_unwind_sp): New function.
7035 (score_gdbarch_init): Install unwind_sp instead of read_sp callback.
7037 2007-05-14 Maxim Grigoriev <maxim2405@gmail.com>
7039 * buildsym.c (start_subfile): Handle absolute pathnames
7040 while comparing subfile names.
7042 2007-05-13 Ulrich Weigand <uweigand@de.ibm.com>
7044 * hppa-hpux-tdep.c: Include "regcache.h".
7045 * hppa-linux-tdep.c: Likewise.
7046 * hppa-tdep.c: Include "gdb_stdint.h".
7047 (find_unwind_entry): Cast host pointer to uintptr_t before passing
7049 * Makefile.in: Update dependencies.
7051 2007-05-13 Ulrich Weigand <uweigand@de.ibm.com>
7053 * blockframe.c: Remove obsolete comments.
7054 * alpha-nat.c (fetch_osf_core_registers): Update comment.
7055 * arm-tdep.h (enum gdb_regnum): Remove obsolete part of comment.
7056 * hppa-tdep.h (enum hppa_regnum): Likewise.
7057 * mips-tdep.h: Likewise.
7058 * m68hc11-tdep.c: Likewise.
7060 2007-05-13 Ulrich Weigand <uweigand@de.ibm.com>
7062 * inferior.h (read_sp): Remove prototype.
7063 * regcache.c (read_sp): Remove.
7064 * gcore.c (derive_stack_segment): Use get_frame_sp instead of read_sp.
7065 * infcall.c (call_function_by_hand): Likewise.
7066 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Use regcache instead
7068 * rs6000-tdep.c (rs6000_push_dummy_call): Likewise.
7070 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
7072 * i386-linux-nat.c (i386_linux_resume): Use regcache functions
7073 instead of read_register and read_register_pid.
7075 * ia64-linux-nat.c (enable_watchpoints_in_psr): Use REGCACHE
7076 argument instead of PTID. Use regcache functions instead of
7078 (ia64_linux_insert_watchpoint): Update call.
7079 (ia64_linux_stopped_data_address): Use regcache functions
7080 instead of read_register_pid and write_register_pid.
7082 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
7084 * libunwind-frame.h (struct regcache): Add forward declaration.
7085 (libunwind_get_reg_special): Add REGCACHE argument.
7086 * libunwind-frame.c (libunwind_get_reg_special): Add REGCACHE
7087 argument. Pass it to unw_init_remote_p.
7089 * ia64-tdep.c (ia64_pseudo_register_read): Pass regcache to
7090 libunwind_get_reg_special.
7091 (ia64_access_reg): Remove "write" case.
7092 (ia64_access_fpreg): Likewise. Read from next_frame passed
7093 as callback argument instead of from current_regcache.
7094 (ia64_access_rse_reg): Remove "write" case. Read from regcache
7095 passed as callback argument instead of from current_regcache.
7096 (ia64_access_rse_fpreg): New function.
7097 (ia64_unw_rse_acce): Use it instead of ia64_access_fpreg.
7099 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
7101 * NEWS: Mention SPU overlay support.
7103 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
7105 * spu-tdep.c (spu_frame_unwind_cache): Add comment.
7107 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
7109 * breakpoint.c (remove_breakpoint): Do not remove software
7110 breakpoints in unmapped overlay sections.
7112 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
7114 * spu-tdep.c: Include "observer.h".
7115 (spu_frame_unwind_cache): Unwind PC through overlay return stubs.
7116 (spu_overlay_data): New variable.
7117 (struct spu_overlay_table): New type.
7118 (spu_get_overlay_table, spu_overlay_update_osect, spu_overlay_update,
7119 spu_overlay_new_objfile): New functions.
7120 (spu_gdbarch_init): Install spu_overlay_update.
7121 (_initialize_spu_tdep): Register spu_overlay_new_objfile,
7122 allocate spu_overlay_data objfile data.
7124 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
7126 * gdbarch.sh (overlay_update): New gdbarch function.
7127 (struct obj_section): Add forward declaration.
7128 * gdbarch.c, gdbarch.h: Regenerate.
7130 * symfile.c (simple_overlay_update): Make global.
7131 (target_overlay_update): Remove variable.
7132 (overlay_is_mapped): Call gdbarch_overlay_update instead of
7133 target_overlay_update.
7134 (overlay_load_command): Likewise.
7135 * symfile.h (struct obj_section): Add forward declaration.
7136 (simple_overlay_update): Add prototype.
7138 * m32r-tdep.c (m32r_gdbarch_init): Install simple_overlay_update.
7140 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
7142 * observer.sh: Add "struct objfile" forward declaration.
7143 * target.h (deprecated_target_new_objfile_hook): Remove.
7144 * symfile.c (deprecated_target_new_objfile_hook): Remove.
7145 (clear_symtab_users): Call observer_notify_new_objfile.
7146 (symbol_file_add_with_addrs_or_offsets): Likewise.
7147 * rs6000-nat.c: Include "observer.h".
7148 (vmap_ldinfo): Call observer_notify_new_objfile.
7149 (xcoff_relocate_core): Likewise.
7150 * remote.c (remote_new_objfile_chain): Remove.
7151 (remote_new_objfile): Do not call remote_new_objfile_chain.
7152 (_initialize_remote): Use observer_attach_new_objfile.
7153 * tui/tui-hooks.c (tui_target_new_objfile_chain): Remove.
7154 (tui_new_objfile_hook): Do not call tui_target_new_objfile_chain.
7155 (_initialize_tui_hooks): Use observer_attach_new_objfile.
7156 * aix-thread.c: Include "observer.h".
7157 (target_new_objfile_chain): Remove.
7158 (new_objfile): Do not call target_new_objfile_chain.
7159 (_initialize_aix_thread): Use observer_attach_new_objfile.
7160 * hpux-thread.c: Include "observer.h"
7161 (target_new_objfile_chain): Remove.
7162 (hpux_thread_new_objfile): Make static. Do not call
7163 target_new_objfile_chain.
7164 (_initialize_hpux_thread): Use observer_attach_new_objfile.
7165 * linux-thread-db.c: Include "observer.h".
7166 (target_new_objfile_chain): Remove.
7167 (thread_db_new_objfile): Do not call target_new_objfile_chain.
7168 (_initialize_thread_db): Use observer_attach_new_objfile.
7169 * sol-thread.c: Include "observer.h".
7170 (target_new_objfile_chain): Remove.
7171 (sol_thread_new_objfile): Make static. Do not call
7172 target_new_objfile_chain.
7173 (_initialize_sol_thread): Use observer_attach_new_objfile.
7174 * Makefile.in (aix-thread.o, hpux-thread.o, linux-thread-db.o,
7175 rs6000-nat.o, sol-thread.o, tui-hooks.o): Add dependency on
7178 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
7180 * gdbarch.sh (remote_translate_xfer_address): Remove.
7181 * gdbarch.h, gdbarch.c: Regenerate.
7182 * arch-utils.c (generic_remote_translate_xfer_address): Remove.
7183 * arch-utils.h (generic_remote_translate_xfer_address): Remove.
7184 * remote.c (remote_write_bytes_aux, remote_read_bytes): Do not
7185 call gdbarch_remote_translate_xfer_address.
7186 * frv-tdep.c (frv_gdbarch_init): Do not call
7187 set_gdbarch_remote_translate_xfer_address.
7188 * ia64-tdep.c (ia64_remote_translate_xfer_address): Remove.
7189 (ia64_gdbarch_init): Do not install it.
7191 2007-05-11 Bob Wilson <bob.wilson@acm.org>
7193 * NEWS: Mention change in handling the -tui option.
7195 2007-05-11 Daniel Jacobowitz <dan@codesourcery.com>
7197 * linux-thread-db.c (enable_thread_event_reporting): Fix comment
7200 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
7202 * breakpoint.c (single_step_breakpoint_inserted_here_p): New function.
7203 (breakpoint_inserted_here_p): Call it.
7204 (software_breakpoint_inserted_here_p): Likewise.
7206 2007-05-10 Ulrich Weigand <uweigand@de.ibm.com>
7208 * inf-ptrace.c (inf_ptrace_register_u_offset): Adapt parameter list.
7209 (inf_ptrace_fetch_register): Add register_u_offset callback parameters
7210 GDBARCH and STORE_P. Handle callback (CORE_ADDR) -1 return value.
7211 (inf_ptrace_store_register): Likewise.
7212 (inf_ptrace_trad_target): Adapt register_u_offset parameter list.
7213 * inf-ptrace.h (inf_ptrace_trad_target): Likewise.
7215 * vax-nat.c (vax_register_u_offset): Adapt parameter list.
7217 * linux-nat.c (linux_trad_target): Adapt parameter list.
7218 * linux-nat.h (linux_trad_target): Likewise.
7220 * alpha-linux-nat.c (alpha_linux_register_u_offset): Adapt parameters.
7222 * mips-linux-nat.c (mips_linux_cannot_fetch_register): Remove.
7223 (mips_linux_cannot_store_register): Likewise.
7224 (mips_linux_register_addr): Add GDBARCH and STORE_P parameters.
7225 Return (CORE_ADDR) -1 for registers that cannot be fetched or
7226 stored via ptrace. Use GDBARCH instead of current_gdbarch.
7227 (mips64_linux_register_addr): Likewise.
7228 (mips_linux_register_u_offset): Adapt parameter list. Pass
7229 GDBARCH and STORE_P on to mips{64}_linux_register_addr.
7231 * config/mips/linux.mh (NAT_FILE): Set to config/nm-linux.h.
7232 * config/mips/nm-linux.h: Delete file.
7234 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
7236 * remote.c (remote_detach): Error out if remote can't detach.
7238 2007-05-10 Luis Machado <luisgpm@br.ibm.com>
7240 * rs6000-tdep.c: (deal_with_atomic_sequence) Stores branch
7241 instruction's opcode in the "opcode" variable and declares new
7242 variable "closing_insn".
7244 2007-05-10 Chris Dearman <chris@mips.com>
7245 Maciej W. Rozycki <macro@mips.com>
7247 * cli/cli-setshow.c (do_setshow_command): Remove trailing
7248 whitespace when setting a var_filename.
7250 2007-05-09 Bob Wilson <bob.wilson@acm.org>
7252 * main.c (captured_main): Recognize -tui option and print an error
7253 message when the TUI is not configured.
7255 2007-05-09 Andreas Schwab <schwab@suse.de>
7257 * mipsnbsd-tdep.c (mipsnbsd_ilp32_fetch_link_map_offsets): Don't
7258 set removed members.
7259 (mipsnbsd_lp64_fetch_link_map_offsets): Likewise.
7261 2007-05-08 Ulrich Weigand <uweigand@de.ibm.com>
7263 * gdbarch.sh (deprecated_store_struct_return): Remove.
7264 * gdbarch.c, gdbarch.h: Regenerate.
7265 * frv-tdep.c (frv_store_struct_return): Remove.
7266 (frv_gdbarch_init): Do not install it.
7268 2007-05-08 Ulrich Weigand <uweigand@de.ibm.com>
7270 * config/i386/nm-i386sol2.h (USE_PROC_FS): Do not define.
7271 * config/mips/nm-irix5.h (USE_PROC_FS): Do not define.
7272 * config/nm-linux.h (USE_PROC_FS): Do not undefine.
7274 2007-05-08 Ulrich Weigand <uweigand@de.ibm.com>
7276 * spu-linux-nat.c: Include "gdb_stdint.h".
7277 (fetch_ppc_register): Use uint64_t instead of unsigned long long.
7278 (fetch_ppc_memory_1, store_ppc_memory_1): Likewise.
7279 (fetch_ppc_memory, store_ppc_memory): Fix coding style.
7280 (spu_symbol_file_add_from_memory): Use strtoulst instead of sscanf.
7281 (spu_child_wait): Mark up string for translation.
7283 2007-05-08 Paul Gilliam <pgilliam@us.ibm.com>
7284 Luis Machado <luisgpm@br.ibm.com>
7286 * rs6000-tdep.c: (LWARX_MASK, LWARX_INSTRUCTION, LDARX_INSTRUCTION,
7287 STWCX_MASK, STWCX_INSTRUCTION, STDCX_INSTRUCTION, BC_MASK,
7288 BC_INSTRUCTION): Define.
7289 (deal_with_atomic_sequence): New function.
7290 (rs6000_software_single_step): Call deal_with_atomic_sequence.
7291 (rs6000_gdbarch_init): Install deal_with_atomic_sequence as
7292 gdbarch_software_single_step routine.
7294 2007-05-07 Ulrich Weigand <uweigand@de.ibm.com>
7296 * spu-linux-nat.c (fetch_ppc_register, fetch_ppc_memory_1,
7297 store_ppc_memory_1, fetch_ppc_memory, store_ppc_memory,
7298 parse_spufs_run, spu_bfd_iovec_pread, spu_bfd_open,
7299 spu_symbol_file_add_from_memory, spu_child_post_startup_inferior,
7300 spu_child_post_attach, spu_fetch_inferior_registers,
7301 spu_store_inferior_registers, spu_xfer_partial): Store PPE-side
7302 memory addresses as ULONGEST, not CORE_ADDR.
7304 2007-05-07 Ulrich Weigand <uweigand@de.ibm.com>
7306 * gdbarch.sh: Add skip_permanent_breakpoint callback.
7307 * gdbarch.h, gdbarch.c: Regenerate.
7309 * infrun.c (SKIP_PERMANENT_BREAKPOINT): Remove default definition.
7310 (resume): Call gdbarch_skip_permanent_breakpoint instead of
7311 SKIP_PERMANENT_BREAKPOINT. Inline default case.
7313 * hppa-hpux-tdep.c (hppa_skip_permanent_breakpoint): Make static.
7314 Add REGCACHE argument. Use it instead of read/write_register.
7315 (hppa_hpux_init_abi): Install hppa_skip_permanent_breakpoint.
7317 * config/pa/tm-hppah.h: Delete file.
7318 * config/pa/hppa64.mt (DEPRECATED_TM_FILE): Set to tm-hppa.h.
7319 * config/pa/hppahpux.mt (DEPRECATED_TM_FILE): Likewise.
7321 2007-05-07 Daniel Jacobowitz <dan@codesourcery.com>
7323 * Makefile.in (c-lang.o, gnu-v3-abi.o): Update.
7324 * NEWS: Mention improved C++ thunk support.
7325 * c-lang.c (cplus_language_defn): Mention cplus_skip_trampoline.
7326 * cp-abi.c (cplus_skip_trampoline): New.
7327 * cp-abi.h (cplus_skip_trampoline): New prototype.
7328 (struct cp_abi_ops): Add skip_trampoline member.
7329 * gnu-v3-abi.c (gnuv3_skip_trampoline): New.
7330 (init_gnuv3_ops): Set skip_trampoline.
7332 2007-05-06 Daniel Jacobowitz <dan@codesourcery.com>
7334 * rs6000-tdep.c (struct frame_extra_info): Delete.
7336 2007-05-06 Daniel Jacobowitz <dan@codesourcery.com>
7338 * linux-thread-db.c: Update some FIXME comments.
7339 (thread_db_xfer_partial): Delete.
7340 (init_thread_db_ops): Do not set to_xfer_partial.
7342 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7344 * inftarg.c, infptrace.c: Remove files.
7345 * Makefile.in (ALLDEPFILES): Remove inftarg.c and infptrace.c
7346 (inftarg.o, infptrace.o): Remove rules.
7347 * gdbcore.h (register_addr): Remove prototype.
7348 * inferior.h (kill_inferior, store_inferior_registers,
7349 fetch_inferior_registers, attach, detach, ptrace_wait, child_resume,
7350 call_ptrace, pre_fork_inferior): Remove prototypes.
7351 * target.h (child_xfer_memory, child_pid_to_exec_file,
7352 child_core_file_to_sym_file, child_post_attach,
7353 child_post_startup_inferior, child_acknowledge_created_inferior,
7354 child_insert_fork_catchpoint, child_remove_fork_catchpoint,
7355 child_insert_vfork_catchpoint, child_remove_vfork_catchpoint,
7356 child_insert_exec_catchpoint, child_remove_exec_catchpoint,
7357 child_follow_fork, child_reported_exec_events_per_exec_call,
7358 child_has_exited, child_thread_alive): Remove prototypes.
7360 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7362 * sparc-nat.h (sparc_fetch_inferior_registers): Add prototype.
7363 (sparc_store_inferior_registers): Likewise.
7364 * sparc-nat.c (fetch_inferior_registers): Rename to ...
7365 (sparc_fetch_inferior_registers): ... this.
7366 (store_inferior_registers): Rename to ...
7367 (sparc_store_inferior_registers): ... this.
7368 (sparc_target): Update callback names.
7369 * sparc-linux.nat.c (_initialize_sparc_linux_nat): Likewise.
7370 * sparc64-linux.nat.c (_initialize_sparc64_linux_nat): Likewise.
7372 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7374 * linux-nat.c (child_post_attach): Rename to ...
7375 (linux_child_post_attach): ... this. Make static.
7376 (child_follow_fork): Rename to ...
7377 (linux_child_follow_fork): ... this. Make static.
7378 (child_insert_fork_catchpoint): Rename to ...
7379 (linux_child_insert_fork_catchpoint): ... this. Make static.
7380 (child_insert_vfork_catchpoint): Rename to ...
7381 (linux_child_insert_vfork_catchpoint): ... this. Make static.
7382 (child_insert_exec_catchpoint): Rename to ...
7383 (linux_child_insert_exec_catchpoint): ... this. Make static.
7384 (child_pid_to_exec_file): Rename to ...
7385 (linux_child_pid_to_exec_file): ... this. Make static.
7387 (linux_handle_extended_wait): Update call.
7388 (linux_xfer_partial): Update callback routine names.
7390 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7392 * configure.host (alpha*-*-osf[12]*): Remove support.
7393 * NEWS: Mention removed configurations.
7395 * config/alpha/alpha-osf1.mh: Delete file.
7396 * config/alpha/alpha-osf2.mh: Delete file.
7397 * config/alpha/alpha-osf3.mh (NATDEPFILES): Remove inftarg.o
7399 * config/alpha/nm-osf.h: Delete file.
7400 * config/alpha/nm-osf2.h: Delete file.
7401 * config/alpha/nm-osf3.h: Do not include "nm-osf2.h".
7402 (START_INFERIOR_TRAPS_EXPECTED): Copy from nm-osf.h.
7403 (PROCFS_DONT_TRACE_FAULTS): Copy from nm-osf2.h.
7405 * alpha-nat.c (ALPHA_UNIQUE_PTRACE_ADDR): Do not define.
7406 (register_addr, kernel_u_size): Remove.
7407 Do not check for "defined(USE_PROC_FS) || defined(HAVE_GREGSET_T)".
7409 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7411 * regcache.c (regcache_invalidate): New function.
7412 (register_cached): Remove.
7413 (set_register_cached): Remove.
7414 (deprecated_registers_fetched): Remove.
7415 (registers_changed): Use regcache_invalidate instead
7416 of set_register_cached.
7417 (regcache_raw_read): Update comment.
7419 * regcache.h (regcache_invalidate): Add prototype.
7420 (register_cached): Remove.
7421 (set_register_cached): Remove.
7422 (deprecated_registers_fetched): Remove.
7424 * findvar.c (value_of_register): Do not call register_cached.
7425 * frame.c (frame_register): Likewise.
7426 * tui/tui-regs.c (tui_get_register): Likewise.
7428 * remote.c (fetch_register_using_p): Do not call set_register_cached.
7429 (process_g_packet): Likewise.
7430 (remote_fetch_registers): Likewise.
7431 * remote-sim.c (gdbsim_fetch_register): Likewise.
7432 * mt-tdep.c (mt_select_coprocessor): Replace set_register_cached call
7433 by regcache_invalidate.
7434 (mt_pseudo_register_write): Likewise.
7435 * sh-tdep.c (sh_pseudo_register_write): Likewise.
7437 * corelow.c (get_core_registers): Replace deprecated_registers_fetched
7438 call by loop over regcache_raw_supply (..., NULL).
7440 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7442 * target.h (struct target_ops): Add REGCACHE parameter to
7443 to_prepare_to_store.
7444 (target_prepare_to_store): Likewise.
7445 * target.c (debug_to_prepare_to_store): Add REGCACHE parameter.
7446 (update_current_target): Adapt prepare_to_store de_fault rule.
7448 * regcache.c (regcache_raw_write): Pass regcache to
7449 target_prepare_to_store.
7451 * inftarg.c (child_prepare_to_store): Add REGCACHE parameter.
7452 Do not call CHILD_PREPARE_TO_STORE.
7453 * gnu-nat.c (gnu_prepare_to_store): Likewise.
7454 * procfs.c (procfs_prepare_to_store): Likewise.
7456 * inf-child.c (inf_child_prepare_to_store): Add REGCACHE parameter.
7457 * go32-nat.c (go32_prepare_to_store): Likewise.
7458 * monitor.c (monitor_prepare_to_store): Likewise.
7459 * nto-procfs.c (procfs_prepare_to_store): Likewise.
7460 * remote-m32r-sdi.c (m32r_prepare_to_store): Likewise.
7461 * remote-mips.c (mips_prepare_to_store): Likewise.
7462 * remote-sim.c (gdbsim_prepare_to_store): Likewise.
7463 * win32-nat.c (win32_prepare_to_store): Likewise.
7465 * remote.c (remote_prepare_to_store): Add REGCACHE parameter.
7466 Use it instead of current_regcache.
7468 * hpux-thread.c (hpux_thread_prepare_to_store): Add REGCACHE
7469 parameter. Pass it on to next target.
7470 * sol-thread.c (sol_thread_prepare_to_store): Likewise.
7472 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7474 * target.h (struct regcache): Add forward declaration.
7475 (struct target_ops): Add REGCACHE parameter to to_fetch_registers
7476 and to_store_registers target operations.
7477 (target_fetch_registers, target_store_registers): Update.
7479 * regcache.c (regcache_raw_read): Replace register_cached by
7480 regcache_valid_p. Pass regcache to target_fetch_registers.
7481 (regcache_raw_write): Pass regcache to target_store_registers.
7483 * arm-linux-nat.c (store_fpregister, store_fpregs, store_register,
7484 store_regs, store_wmmx_regs): Replace register_cached by
7487 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd): Pass current_regcache
7488 to target_fetch_registers calls.
7489 * corelow.c (core_open): Likewise.
7490 * linux-nat.c (linux_nat_corefile_thread_callback): Likewise.
7491 * proc-service.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
7492 ps_lsetfpregs): Likewise.
7493 * sol-thread.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
7494 ps_lsetfpregs): Likewise.
7495 * win32-nat.c (win32_resume): Likewise.
7496 * ia64-tdep.c (ia64_store_return_value): Pass current_regcache
7497 to target_store_registers call.
7498 * rs6000-tdep.c (rs6000_push_dummy_call): Likewise.
7500 * inferior.h (store_inferior_registers): Update prototype.
7501 (fetch_inferior_registers): Likewise.
7502 * gnu-nat.c (gnu_store_registers, gnu_fetch_registers): Likewise.
7503 * mips-linux-nat.c (super_fetch_registers, super_store_registers):
7504 Update function pointer signatures.
7506 * aix-thread.c (aix_thread_fetch_registers): Add REGCACHE parameter,
7507 use it instead of current_regcache, update calls.
7508 (aix_thread_store_registers): Likewise.
7509 * alphabsd-nat.c (alphabsd_fetch_inferior_registers): Likewise.
7510 (alphabsd_store_inferior_registers): Likewise.
7511 * amd64bsd-nat.c (amd64bsd_fetch_inferior_registers): Likewise.
7512 (amd64bsd_store_inferior_registers): Likewise.
7513 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers): Likewise.
7514 (amd64_linux_store_inferior_registers): Likewise.
7515 * arm-linux-nat.c (fetch_fpregister, fetch_fpregs, store_fpregister,
7516 store_fpregs, fetch_register, fetch_regs, store_register, store_regs,
7517 fetch_wmmx_regs, store_wmmx_regs): Likewise.
7518 (arm_linux_fetch_inferior_registers): Likewise.
7519 (arm_linux_store_inferior_registers): Likewise.
7520 * armnbsd-nat.c (fetch_register, fetch_regs, fetch_fp_register,
7521 fetch_fp_regs, armnbsd_fetch_registers): Likewise.
7522 (store_register, store_regs, store_fp_register, store_fp_regs,
7523 armnbsd_store_registers): Likewise.
7524 * bsd-kvm.c (bsd_kvm_fetch_pcb, bsd_kvm_fetch_registers): Likewise.
7525 * bsd-uthread.c (bsd_uthread_fetch_registers): Likewise.
7526 (bsd_uthread_store_registers): Likewise.
7527 * corelow.c (get_core_registers): Likewise.
7528 * go32-nat.c (fetch_register, go32_fetch_registers, store_register,
7529 go32_store_registers): Likewise.
7530 * hppabsd-nat.c (hppabsd_fetch_registers): Likewise.
7531 (hppabsd_store_registers): Likewise.
7532 * hppa-hpux-nat.c (hppa_hpux_fetch_register): Likewise.
7533 (hppa_hpux_fetch_inferior_registers): Likewise.
7534 (hppa_hpux_store_register): Likewise.
7535 (hppa_hpux_store_inferior_registers): Likewise.
7536 * hppa-linux-nat.c (fetch_register, store_register): Likewise.
7537 (hppa_linux_fetch_inferior_registers): Likewise.
7538 (hppa_linux_store_inferior_registers): Likewise.
7539 * hpux-thread.c (hpux_thread_fetch_registers): Likewise.
7540 (hpux_thread_store_registers): Likewise.
7541 * i386bsd-nat.c (i386bsd_fetch_inferior_registers): Likewise.
7542 (i386bsd_store_inferior_registers): Likewise.
7543 * i386gnu-nat.c (fetch_fpregs, gnu_fetch_registers, store_fpregs,
7544 gnu_store_registers): Likewise.
7545 * i386-linux-nat.c (fetch_register, store_register, fetch_regs,
7546 store_regs, fetch_fpregs, store_fpregs, fetch_fpxregs, store_fpxregs):
7548 (i386_linux_fetch_inferior_registers): Likewise.
7549 (i386_linux_store_inferior_registers): Likewise.
7550 * ia64-linux-nat.c (ia64_linux_fetch_register): Likewise.
7551 (ia64_linux_fetch_registers): Likewise.
7552 (ia64_linux_store_register): Likewise.
7553 (ia64_linux_store_registers): Likewise.
7554 * inf-child.c (inf_child_fetch_inferior_registers): Likewise.
7555 (inf_child_store_inferior_registers): Likewise.
7556 * inf-ptrace.c (inf_ptrace_fetch_register): Likewise.
7557 (inf_ptrace_fetch_registers): Likewise.
7558 (inf_ptrace_store_register): Likewise.
7559 (inf_ptrace_store_registers): Likewise.
7560 * infptrace.c (fetch_register, store_register): Likewise.
7561 (fetch_inferior_registers, store_inferior_registers): Likewise.
7562 * m32r-linux-nat.c (fetch_regs, store_regs): Likewise.
7563 (m32r_linux_fetch_inferior_registers): Likewise.
7564 (m32r_linux_store_inferior_registers): Likewise.
7565 * m68kbsd-nat.c (m68kbsd_fetch_inferior_registers): Likewise.
7566 (m68kbsd_store_inferior_registers): Likewise.
7567 * m68klinux-nat.c (fetch_register, old_fetch_inferior_registers,
7568 store_register, old_store_inferior_registers, fetch_regs, store_regs,
7569 fetch_fpregs, store_fpregs): Likewise.
7570 (m68k_linux_fetch_inferior_registers): Likewise.
7571 (m68k_linux_store_inferior_registers): Likewise.
7572 * m88kbsd-nat.c (m88kbsd_fetch_inferior_registers): Likewise.
7573 (m88kbsd_store_inferior_registers): Likewise.
7574 * mips64obsd-nat.c (mips64obsd_fetch_inferior_registers): Likewise.
7575 (mips64obsd_store_inferior_registers): Likewise.
7576 * mips-linux-nat.c (mips64_linux_regsets_fetch_registers): Likewise.
7577 (mips64_linux_regsets_store_registers): Likewise.
7578 (mips64_linux_fetch_registers): Likewise.
7579 (mips64_linux_store_registers): Likewise.
7580 * mipsnbsd-nat.c (mipsnbsd_fetch_inferior_registers): Likewise.
7581 (mipsnbsd_store_inferior_registers): Likewise.
7582 * monitor.c (monitor_fetch_register, monitor_store_register): Likewise.
7583 (monitor_fetch_registers, monitor_store_registers): Likewise.
7584 * nto-procfs.c (procfs_fetch_registers): Likewise.
7585 (procfs_store_registers): Likewise.
7586 * ppc-linux-nat.c (fetch_altivec_register, fetch_spe_register,
7587 fetch_register, supply_vrregset, fetch_altivec_registers,
7588 fetch_ppc_registers, ppc_linux_fetch_inferior_registers): Likewise.
7589 (store_altivec_register, store_spe_register, store_register,
7590 fill_vrregset, store_altivec_registers, store_ppc_registers,
7591 ppc_linux_store_inferior_registers): Likewise.
7592 * ppcnbsd-nat.c (ppcnbsd_fetch_inferior_registers): Likewise.
7593 (ppcnbsd_store_inferior_registers): Likewise.
7594 * ppcobsd-nat.c (ppcobsd_fetch_registers): Likewise.
7595 (ppcobsd_store_registers): Likewise.
7596 * procfs.c (procfs_fetch_registers, procfs_store_registers): Likewise.
7597 * remote.c (fetch_register_using_p, process_g_packet,
7598 fetch_registers_using_g, remote_fetch_registers): Likewise.
7599 (store_register_using_P, store_registers_using_G,
7600 remote_store_registers): Likewise.
7601 * remote-m32r-sdi.c (m32r_fetch_registers, m32r_fetch_register,
7602 m32r_store_register, m32r_store_register): Likewise.
7603 * remote-mips.c (mips_fetch_registers, mips_store_registers): Likewise.
7604 * remote-sim.c (gdbsim_fetch_register): Likewise.
7605 (gdbsim_store_register): Likewise.
7606 * rs6000-nat.c (fetch_register, store_register): Likewise.
7607 (rs6000_fetch_inferior_registers): Likewise.
7608 (rs6000_store_inferior_registers): Likewise.
7609 * s390-nat.c (fetch_regs, store_regs): Likewise.
7610 (fetch_fpregs, store_fpregs): Likewise.
7611 (s390_linux_fetch_inferior_registers): Likewise.
7612 (s390_linux_store_inferior_registers): Likewise.
7613 * shnbsd-nat.c (shnbsd_fetch_inferior_registers): Likewise.
7614 (shnbsd_store_inferior_registers): Likewise.
7615 * sol-thread.c (sol_thread_fetch_registers): Likewise.
7616 (sol_thread_store_registers): Likewise.
7617 * sparc-nat.c (fetch_inferior_registers): Likewise.
7618 (store_inferior_registers): Likewise.
7619 * spu-linux-nat.c (spu_fetch_inferior_registers): Likewise.
7620 (spu_store_inferior_registers): Likewise.
7621 * target.c (debug_print_register): Likewise.
7622 (debug_to_fetch_registers, debug_to_store_registers): Likewise.
7623 * vaxbsd-nat.c (vaxbsd_fetch_inferior_registers): Likewise.
7624 (vaxbsd_store_inferior_registers): Likewise.
7625 * win32-nat.c (do_win32_fetch_inferior_registers): Likewise.
7626 (win32_fetch_inferior_registers): Likewise.
7627 (win32_store_inferior_registers): Likewise.
7629 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7631 * gdbcore.h (struct regcache): Add forward declaration.
7632 (struct core_fns): Add REGCACHE argument to core_read_registers
7634 * corelow.c (get_core_register_section): Add REGCACHE argument,
7635 use it instead of current_regcache, pass it to core_read_registers
7637 (get_core_registers): Add current_regcache as parameter to
7638 get_core_register_section calls.
7640 * alpha-nat.c (fetch_osf_core_registers): Add REGCACHE argument,
7641 use it instead of current_regcache.
7642 * armnbsd-nat.c (fetch_core_registers): Likewise.
7643 (fetch_elfcore_registers): Likewise.
7644 * core-regset.c (fetch_core_registers): Likewise.
7645 * cris-tdep.c (fetch_core_registers): Likewise.
7646 * irix5-nat.c (fetch_core_registers): Likewise.
7647 * m68klinux-nat.c (fetch_core_registers): Likewise.
7648 * mips-linux-tdep.c (fetch_core_registers): Likewise.
7649 * win32-nat.c (fetch_elf_core_registers): Likewise.
7651 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7653 * gregset.h (struct regcache): Add forward declaration.
7654 (supply_gregset): Add REGCACHE parameter, make GREGS const.
7655 (supply_fpregset): Add REGCACHE parameter, make FPREGS const.
7656 (supply_fpxregset): Add REGCACHE parameter, make FPXREGS const.
7657 (fill_gregset): Add REGCACHE parameter.
7658 (fill_fpregset): Likewise.
7659 (fill_fpxregset): Likewise.
7661 Update all definitions accordingly:
7662 * alphabsd-nat.c, alpha-linux-nat.c, alpha-nat.c, amd64-linux-nat.c,
7663 arm-linux-nat.c, hppa-linux-nat.c, i386gnu-nat.c, i386-linux-nat.c,
7664 i386-sol2-nat.c, i386v4-nat.c, ia64-linux-nat.c, irix5-nat.c,
7665 m32r-linux-nat.c, m68klinux-nat.c, mips-linux-nat.c, ppc-linux-nat.c,
7666 s390-nat.c, sparc64-linux-nat.c, sparc-linux-nat.c, sparc-sol2-nat.c
7667 (supply_gregset): Add REGCACHE parameter, use it instead of
7668 current_regcache. Make GREGSETP parameter const, adapt casts.
7669 (supply_fpregset): Add REGCACHE parameter, use it instead of
7670 current_regcache. Make FPREGSETP parameter const, adapt casts.
7671 (fill_gregset): Add REGCACHE parameter, use it instead of
7673 (fill_fpregset): Likewise.
7675 Update all callers to pass in current_regcache as the new argument:
7676 * core-regset.c: Include "regcache.h".
7677 (fetch_core_registers): Update supply_gregset,and supply_fpregset calls.
7678 * procfs.c: Include "regcache.h".
7679 (procfs_fetch_registers): Update supply_gregset, supply_fpregset calls.
7680 (procfs_store_registers): Update fill_gregset, fill_fpregset calls.
7681 (procfs_do_thread_registers): Likewise.
7682 (procfs_make_note_section): Likewise.
7683 * proc-service.c: Include "regcache.h".
7684 (ps_lgetregs): Update fill_gregset call.
7685 (ps_lsetregs): Update supply_gregset call.
7686 (ps_lgetfpregs): Update fill_fpregset call.
7687 (ps_lsetfpregs): Update supply_fpregset call.
7688 * sol-thread.c (sol_thread_fetch_registers): Update supply_gregset,
7689 supply_fpregset calls.
7690 (sol_thread_store_registers): Update fill_gregset, fill_fpregset calls.
7691 (ps_lgetregs): Update fill_gregset call.
7692 (ps_lsetregs): Update supply_gregset call.
7693 (ps_lgetfpregs): Update fill_fpregset call.
7694 (ps_lsetfpregs): Update supply_fpregset call.
7696 * linux-nat.c (linux_nat_do_thread_registers): Update fill_gregset,
7697 fill_fpregset, and fill_fpxregset calls.
7698 * i386-linux-nat.c (fetch_regs): Update supply_gregset call.
7699 (store_regs): Update fill_gregset call.
7700 (fetch_fpregs): Update supply_fpregset call.
7701 (store_fpregs): Update fill_fpregset call.
7702 (fetch_fpxregs): Update supply_fpxregset call.
7703 (store_fpxregs): Update fill_fpxregset call.
7704 * m32r-linux-nat.c (fetch_regs): Update supply_gregset call.
7705 (store_regs): Update fill_gregset call.
7706 * m68klinux-nat.c (fetch_regs): Update supply_gregset call.
7707 (store_regs): Update fill_gregset call.
7708 (fetch_fpregs): Update supply_fpregset call.
7709 (store_fpregs): Update fill_fpregset call.
7710 (fetch_core_registers): Update supply_gregset, supply_fpregset calls.
7711 * s390-nat.c (fetch_regs): Update supply_gregset call.
7712 (store_regs): Update fill_gregset call.
7713 (fetch_fpregs): Update supply_fpregset call.
7714 (store_fpregs): Update fill_fpregset call.
7716 * Makefile.in (core-regset.o, procfs.o, proc-service.o): Update
7719 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7721 * monitor.c (monitor_supply_register): Add REGCACHE parameter, use
7722 it instead of current_regcache.
7723 (parse_register_dump): Add REGCACHE parameter, pass it to
7724 supply_register callback.
7725 (monitor_dump_reg_block): Add REGCACHE parameter, pass it to
7726 parse_register_dump.
7727 (monitor_dump_regs): Add REGCACHE parameter, pass it to
7728 parse_register_dump and dumpregs callback.
7729 (monitor_wait): Pass current_regcache to parse_register_dump and
7731 (monitor_fetch_register): Pass current_regcache to
7732 monitor_supply_register.
7733 (monitor_fetch_registers): Pass current_regcache to
7735 * monitor.h (struct monitor_ops): Add REGCACHE parameter to
7736 supply_register and dumpregs callbacks.
7737 (monitor_supply_register, monitor_dump_reg_block): Update
7739 * dbug-rom.c (dbug_supply_register): Add REGCACHE parameter. Pass
7740 it to monitor_supply_register.
7741 * dink32-rom.c (dink32_supply_register): Likewise.
7742 * ppcbug-rom.c (ppcbug_supply_register): Likewise.
7743 * m32r-rom.c (m32r_supply_register): Likewise. Also, use REGCACHE
7744 instead of current_regcache.
7746 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7748 * i386-nto-tdep.c (i386nto_supply_gregset, i386nto_supply_fpregset):
7749 Add REGCACHE parameter. Use it instead of current_regcache.
7750 (i386nto_supply_regset): Add REGCACHE parameter, pass it to
7751 i386nto_supply_gregset and i386nto_supply_fpregset.
7752 (i386nto_regset_fill): Add REGCACHE parameter; use it instead
7753 of current_regcache.
7755 * nto-procfs.c (procfs_fetch_registers): Pass current_regcache to
7756 nto_supply_ helper functions.
7757 (procfs_store_registers): Pass current_regcache to nto_regset_fill.
7759 * nto-tdep.c (nto_dummy_supply_regset): Add REGCACHE parameter.
7761 * nto-tdep.h (struct nto_target_ops): Add REGCACHE parameter to
7762 supply_greget, supply_fpregset, supply_altregset, supply_regset,
7763 and regset_fill member function pointers.
7764 (nto_dummy_supply_regset): Adapt prototype.
7766 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7768 * shnbsd-tdep.c (shnbsd_supply_reg): Add REGCACHE parameter, use it
7769 instead of current_regcache. Make REGS const.
7770 (shnbsd_fill_reg): Add REGCACHE parameter; replace current_regcache.
7771 * shnbsd-tdep.h (shnbsd_supply_reg, shnbsd_fill_reg): Update
7773 * shnbsd-nat.c: Include "regcache.h".
7774 (shnbsd_fetch_inferior_registers): Pass current_regcache to
7776 (shnbsd_store_inferior_registers): Pass current_regcache to
7778 * Makefile.in (shbsd-nat.o): Update dependencies.
7780 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7782 * mips-linux-tdep.c (supply_32bit_reg): Add REGCACHE parameter. Use it
7783 instead of current_regcache.
7784 (mips_supply_gregset): Likewise. Pass REGCACHE to supply_32bit_reg.
7785 Make GREGSETP const, remove superfluous casts.
7786 (mips_fill_gregset): Add REGCACHE parameter; replace current_regcache.
7787 (mips_supply_fpregset): Likewise. Make FPREGSETP const, remove
7789 (mips_fill_fpregset): Add REGCACHE parameter; replace current_regcache.
7790 (supply_64bit_reg): Likewise
7791 (mips64_supply_gregset): Likewise. Pass REGCACHE to supply_64bit_reg.
7792 Make GREGSETP const, adapt casts accordingly.
7793 (mips64_fill_gregset): Add REGCACHE parameter; replace current_regcache.
7794 (mips64_supply_fpregset): Likewise. Make FPREGSET const, adapt
7796 (mips64_fill_fpregset): Add REGCACHE parameter; replace current_regcache.
7797 (fetch_core_registers): Pass current_regcache to mips{64}_(supply|fill)_
7799 * mips-linux-tdep.h (mips_supply_gregset, mips_fill_gregset,
7800 mips_supply_fpregset, mips_fill_fpregset, mips64_supply_gregset,
7801 mips64_fill_gregset, mips64_supply_fpregset, mips64_fill_fpregset):
7803 * mips-linux-nat.c: Include "regcache.h".
7804 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): Pass
7805 current_regcache to mips{64}_(supply|fill)_ helper routines.
7806 (mips64_linux_regsets_fetch_registers): Likewise.
7807 (mips64_linux_regsets_store_registers): Likewise.
7809 * mipsnbsd-tdep.c (mipsnbsd_supply_reg, mipsnbsd_supply_fpreg): Add
7810 REGCACHE argument; replace current_regcache. Make REGS const.
7811 (mipsnbds_fill_reg, mipsnbsd_fill_fpreg): Add REGCACHE argument;
7812 replace current_regcache.
7813 * mipsnbsd-tdep.h (ipsnbsd_supply_reg, mipsnbsd_supply_fpreg,
7814 mipsnbds_fill_reg, mipsnbsd_fill_fpreg): Adapt prototypes.
7815 * mipsnbsd-nat.c (mipsnbsd_fetch_inferior_registers,
7816 mipsnbsd_store_inferior_registers): Pass current_regcache to
7817 mipsnbsd_(supply|fill)_... helper routines.
7819 * Makefile.in (mips-linux-nat.o): Update dependencies.
7821 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7823 * i387-tdep.c (i387_fill_fsave, i387_fill_fxsave): Remove.
7824 * i387-tdep.h (i387_fill_fsave, i387_fill_fxsave): Remove prototypes.
7825 * i368-linux-nat.c (supply_fpregset, supply_fpxregset): Replace
7826 i387_fill_fsave and i387_fill_fxsave calls by inline copies.
7827 * i386-nto-tdep.c (i386nto_regset_fill): Likewise.
7828 * i386gnu-nat.c (store_fpregs): Likewise.
7829 * i386v4-nat.c (fill_fpregset): Likewise.
7830 * go32-nat.c (store_register, go32_store_registers): Likewise.
7832 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7834 * cris-tdep.c (supply_gregset): Rename to ...
7835 (cris_supply_gregset): ... this. Add REGCACHE parameter. Use it
7836 instead of current_regcache.
7837 (fetch_core_registers): Update call. Pass current_regcache.
7839 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7841 * arnmnbsd-nat.c (supply_gregset): Rename to ...
7842 (arm_supply_gregset): ... this. Add REGCACHE parameter.
7843 Use it instead of current_regcache.
7844 (supply_fparegset): Rename to ...
7845 (arm_supply_fparegset): ... this. Add REGCACHE parameter.
7846 Use it instead of current_regcache.
7847 (fetch_regs, fetch_fp_regs): Update calls. Pass current_regcache.
7848 (fetch_core_registers, fetch_elfcore_registers): Likewise.
7850 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7852 * alpha-tdep.c (alpha_supply_int_regs, alpha_fill_int_regs,
7853 alpha_supply_fp_regs, alpha_fill_fp_regs): Add REGCACHE parameter,
7854 use it instead of current_regcache.
7855 * alpha-tdep.h (struct regcache): Add forward declaration.
7856 (alpha_supply_int_regs, alpha_fill_int_regs, alpha_supply_fp_regs,
7857 alpha_fill_fp_regs): Update prototypes.
7859 * alpha-nat.c: (supply_gregset, fill_gregset, supply_fpregset,
7860 fill_fpregset): Pass current_regcache to alpha_supply/fill_ routines.
7861 * alpha-linux-nat.c: Include "regcache.h".
7862 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): Pass
7863 current_regcache to alpha_supply/fill_ routines.
7865 * alphabsd-tdep.c: Include "regcache.h".
7866 (alphabsd_supply_reg, alphabsd_supply_fpreg): Add REGCACHE paramter,
7867 pass it to alpha_supply_ routines. Make REGS const.
7868 (alphabsd_fill_reg, alphabsd_fill_fpreg): Add REGCACHE parameter,
7869 pass it to alpha_fill_ routines.
7870 * alphabsd-tdep.h (struct regcache): Add forward declaration.
7871 (alphabsd_supply_reg, alphabsd_fill_reg, alphabsd_supply_fpreg,
7872 alphabsd_fill_fpreg): Update prototypes.
7874 * alphanbsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
7875 fill_fpregset, alphabsd_fetch_inferior_registers,
7876 alphabsd_store_inferior_registers): Pass current_regcache to
7877 alphabsd_supply/fill_ routines.
7879 * Makefile.in (alpha-linux-nat.o, alphabsd-tdep.o): Update
7882 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7884 * aix-thread.c (supply_gprs64, supply_reg32, supply_fprs,
7885 supply_sprs64, supply_sprs32): Add REGCACHE parameter, use it
7886 instead of current_regcache.
7887 (fetch_regs_user_thread, fetch_regs_kernel_thread): Add
7888 REGCACHE parameter, pass it to supply_ routines.
7889 (aix_thread_fetch_registers): Pass current_regcache to
7890 fetch_regs_user_thread and fetch_regs_kernel_thread.
7892 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs64, fill_sprs32):
7893 Add REGCACHE parameter, use it instead of current_regcache.
7894 Call regcache_valid_p instead of register_cached.
7895 (store_regs_user_thread, store_regs_kernel_thread): Likewise.
7896 Also, pass REGCACHE to fill_ routines.
7897 (aix_thread_store_registers): Pass current_regcache to
7898 store_regs_user_thread and store_regs_kernel_thread.
7900 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7902 * m32r-linux-nat.c (supply_gregset): Do not modify contents
7903 pointed to by GREGSETP.
7905 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7907 * irix5-nat.c (fill_gregset): Use regcache_raw_collect instead
7908 of regcache_raw_read_signed.
7909 (fill_fpregset): Use regcache_raw_collect instead of
7912 2007-05-03 Kevin Buettner <kevinb@redhat.com>
7914 * mips-tdep.c (mips_eabi_push_dummy_call): When pushing floating
7915 point arguments, test explicitly for use of the EABI32 ABI
7916 instead of inferring this condition from tests on register
7919 2007-05-03 Kevin Buettner <kevinb@redhat.com>
7921 * breakpoint.c (set_raw_breakpoint): Adjust breakpoint's address
7922 prior to allocating its location.
7924 2007-05-02 Maciej W. Rozycki <macro@mips.com>
7926 * mips-tdep.c (mips_o32_push_dummy_call): Remove conditions
7927 based on mips_abi_regsize() whose result is known in advance.
7928 (mips_o64_push_dummy_call): Likewise.
7930 2007-04-29 Ulrich Weigand <uweigand@de.ibm.com>
7932 * m68klinux-nat.c: Remove #ifndef USE_PROC_FS check.
7933 * m68k-tdep.c: Remove code within #ifdef USE_PROC_FS.
7935 * mips-linux-nat.c: Include "gregset.h".
7936 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): Move
7937 from mips-linux-tdep.c. Change parameter type to gdb_gregset_t.
7938 * mips-linux-tdep.c (supply_gregset, fill_gregset, supply_fpregset,
7939 fill_fpregset): Move to mips-linux-nat.c.
7941 * Makefile.in (m68k-tdep.o, mips-linux-nat.o): Update dependencies.
7943 2007-04-28 Ulrich Weigand <uweigand@de.ibm.com>
7945 * regcache.c (deprecated_read_register_gen): Remove, inline ...
7946 (read_register): ... here.
7947 (deprecated_write_register_gen): Remove, inline ...
7948 (write_register): ... here.
7949 * regcache.h (deprecated_read_register_gen): Remove prototype.
7950 (deprecated_write_register_gen): Likewise.
7952 * remote-sim.c (gdbsim_store_register): Replace call to
7953 deprecated_read_register_gen with regcache_cooked_read.
7954 * target.c (debug_print_register): Replace calls to
7955 deprecated_read_register_gen and read_register with
7956 regcache_cooked_read.
7958 2007-04-28 Ulrich Weigand <uweigand@de.ibm.com>
7960 * hpux-thread.c (hpux_thread_store_registers): Use
7961 regcache_raw_collect, not regcache_raw_read.
7962 * irix5-nat.c (fetch_core_registers): Use regcache_raw_supply,
7963 not regcache_raw_write.
7965 2007-04-28 Ulrich Weigand <uweigand@de.ibm.com>
7967 * gdbarch.sh: Remove deprecated_register_byte.
7968 * gdbarch.c, gdbarch.h: Regenerate.
7969 * arch-utils.h (generic_register_size, generic_register_byte): Remove.
7970 * arch-utils.c (generic_register_size, generic_register_byte): Remove.
7972 * regcache.h (regcache_valid_p): Make REGCACHE parameter const.
7973 * regcache.c (regcache_valid_p): Allow to query cooked registers in
7974 read-only register caches. Make REGCACHE parameter const.
7975 (regcache_dump): Do not check DEPRECATED_REGISTER_BYTE.
7977 * mi/mi-main.c (old_regs): Remove.
7978 (mi_setup_architecture_data, _initialize_mi_main): Remove.
7979 (register_changed_p): Reimplement to compare two register caches.
7980 (mi_cmd_data_list_changed_registers): Update caller.
7981 * mi/mi-main.h (mi_setup_architecture_data): Remove.
7982 * mi/mi-interp.c (mi_interpreter_init): Do not call
7983 mi_setup_architecture_data.
7985 2007-04-28 Ulrich Weigand <uweigand@de.ibm.com>
7987 * alpha-nat.c (ALPHA_REGSET_BASE, ALPHA_REGSET_UNIQUE): Do not define,
7988 inline definition at the places the macros are used.
7989 * alpha-linux-nat.c (ALPHA_REGSET_BASE, ALPHA_REGSET_UNIQUE): Likewise.
7991 2007-04-28 Ulrich Weigand <uweigand@de.ibm.com>
7993 * rs6000-aix-tdep.c: Include "regcache.h", "regset.h", and
7995 (rs6000_aix32_reg_offsets, rs6000_aix64_reg_offsets): New variables.
7996 (rs6000_aix_supply_regset, rs6000_aix_collect_regset): New functions.
7997 (rs6000_aix32_regset, rs6000_aix64_regset): New variables.
7998 (rs6000_aix_regset_from_core_section): New function.
7999 (rs6000_aix_init_osabi): Register it.
8000 (_initialize_rs6000_aix_tdep): Register GDB_OSABI_AIX osabi and
8001 sniffer for bfd_arch_powerpc as well as bfd_arch_rs6000.
8002 * rs6000-nat.c (CoreRegs): Do not define type.
8003 (fetch_core_registers, rs6000_core_fns): Remove.
8004 (_initialize_core_rs6000): Do not register it. Rename to ...
8005 (_initialize_rs6000_nat): ... this.
8006 * Makefile.in (rs6000-aix-tdep.o): Update dependencies.
8008 2007-04-27 Kevin Buettner <kevinb@redhat.com>
8010 * dwarf2expr.c (unsigned_address_type): Add forward declaration.
8011 (dwarf2_read_address): Sign extend return address as required by
8012 target architecture.
8014 2007-04-27 Kevin Buettner <kevinb@redhat.com>
8016 * solib-frv.c (lm_base): Bail out if the main executable has
8019 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
8021 * alpha-linux-tdep.c (alpha_linux_supply_fpregset): Correct location
8022 of FPCR register in fpregset.
8024 2007-04-27 Maciej W. Rozycki <macro@mips.com>
8026 * Makefile.in (gdbtk-wrapper.o): Update dependencies.
8027 (gdbtk-varobj.o, gdbtk-cmds.o, gdbtk-stack.o): Likewise.
8029 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
8031 * config/rs6000/nm-rs6000.h (CHILD_SPECIAL_WAITSTATUS): Remove.
8032 * rs6000-nat.c (rs6000_wait): New function.
8033 (_initialize_core_rs6000): Install it as to_wait target method.
8034 * target.c (store_waitstatus): Don't check CHILD_SPECIAL_WAITSTATUS.
8036 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
8038 * config/rs6000/nm-rs6000.h (TARGET_CREATE_INFERIOR_HOOK): Remove.
8039 * fork-child.c (fork_inferior): Don't call TARGET_CREATE_INFERIOR_HOOK.
8040 * rs6000-nat.c (super_create_inferior): New variable.
8041 (rs6000_create_inferior): Make static. Adapt argument list. Call
8042 original version of create_inferior via super_create_inferior.
8043 (_initialize_core_rs6000): Install to_create_inferior target method.
8045 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
8047 * aix-thread.c (aix_thread_xfer_memory): Replace by ...
8048 (aix_thread_xfer_partial): ... this.
8049 (init_aix_thread_ops): Install to_xfer_partial instead
8050 of deprecated_xfer_memory target method.
8052 * config/powerpc/aix.mh (NATDEPFILES): Remove infptrace.o
8053 and inftarg.o, add inf-ptrace.o.
8054 * config/rs6000/nm-rs6000.h (FETCH_INFERIOR_REGISTERS,
8055 CHILD_XFER_MEMORY, KERNEL_U_SIZE, kernel_u_size): Remove.
8056 * rs6000-nat.c: Include "inf-ptrace.h" and "gdb_stdint.h".
8057 (fetch_inferior_registers): Rename to ...
8058 (rs6000_fetch_inferior_registers): ... this. Make static.
8059 (store_inferior_registers): Rename to ...
8060 (rs6000_store_inferior_registers): ... this. Make static.
8061 (read_word, child_xfer_memory): Remove.
8062 (rs6000_xfer_partial): New function.
8063 (kernel_u_size): Remove.
8064 (_initialize_core_rs6000): Add inf_ptrace-based target.
8065 * Makefile.in (rs6000-nat.o): Update dependencies.
8067 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
8069 * inf-ptrace.c: Include "gdb_stdint.h".
8070 (inf_ptrace_xfer_partial): Use "uintptr_t" instead of "long" as
8071 intermediate type when casting CORE_ADDR to PTRACE_TYPE_ARG3.
8072 (inf_ptrace_fetch_register): Add intermediate cast to "uintptr_t"
8073 before casting CORE_ADDR to PTRACE_TYPE_ARG3.
8074 (inf_ptrace_store_register): Likewise.
8075 * Makefile.in (inf-ptrace.o): Update dependencies.
8077 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
8079 * configure.host (rs6000-*-*): Merge with powerpc-*-aix* rules.
8080 * configure.tgt (rs6000-*-*): Likewise.
8081 * config/rs6000/aix4.mh: Delete file.
8082 * config/rs6000/aix4.mt: Delete file.
8083 * config/rs6000/rs6000.mh: Delete file.
8084 * config/rs6000/rs6000.mt: Delete file.
8086 * config/powerpc/nm-aix.h: Delete file.
8087 * config/powerpc/aix.mh (NAT_FILE): Set to config/rs6000/nm-rs6000.h.
8089 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
8091 * aix-thread.c (fill_sprs32): Change argument types to "uint32_t *".
8092 Remove obsolete part of comment.
8093 (store_regs_user_thread): Use uint32_t temporaries when calling
8095 (store_regs_kernel_thread): Likewise. Add assertion to verify
8096 correct size of struct ptsprs members.
8097 (aix_thread_xfer_memory): Fix type of myaddr.
8098 (aix_thread_extra_thread_info): Fix compiler warning.
8099 * rs6000-nat.c (rs6000_ptrace64): Change type of buf to "void *".
8100 (fetch_register, store_register): Adapt callers.
8102 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
8104 * vec.h (vec_free): Rename to vec_free_. Adapt users.
8106 2007-04-25 Ulrich Weigand <uweigand@de.ibm.com>
8108 * alpha-linux-tdep.c: Include "gdb_string.h", "regset.h",
8110 (alpha_linux_supply_gregset, alpha_linux_supply_fpregset): New.
8111 (alpha_linux_gregset, alpha_linux_fpregset): New variables.
8112 (alpha_linux_regset_from_core_section): New function.
8113 (alpha_linux_init_abi): Install it.
8114 * alpha-linux-nat.c: Do not include "gdbcore.h". Include
8115 "alpha-tdep.h", <sys/ptrace.h>, <alpha/ptrace.h>,
8116 <sys/procfs.h>, and "gregset.h".
8117 (ALPHA_REGSET_BASE, ALPHA_REGSET_UNIQUE, ALPHA_UNIQUE_PTRACE_ADDR):
8118 Move from config/alpha/nm-linux.h.
8119 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): Copy
8121 (alpha_linux_register_u_offset): Inline register_addr from alpha-nat.c.
8122 * alpha-nat.c: Remove #ifdef __linux__ section.
8123 (fetch_elf_core_registers, alpha_elf_core_fns): Remove.
8124 (_initialize_core_alpha): Do not register alpha_elf_core_fns.
8125 (ALPHA_UNIQUE_PTRACE_ADDR, ALPHA_REGSET_UNIQUE): Define unconditionally.
8126 (ALPHA_REGSET_BASE): Move from config/alpha/nm-osf.h.
8127 * config/alpha/alpha-linux.mh (NAT_FILE): Set to config/nm-linux.h.
8128 (NATDEPFILES): Remove alpha-nat.o.
8129 * config/alpha/nm-linux.h: Delete file.
8130 * config/alpha/nm-osf.h (ALPHA_REGSET_BASE): Move to alpha-nat.c.
8131 * Makefile.in (alpha-linux-nat.o): Update dependencies.
8132 (alpha-linux-tdep.o): Likewise.
8134 2007-04-25 Ulrich Weigand <uweigand@de.ibm.com>
8136 * mips-linux-nat.c: No longer include "gdbcore.h".
8137 (mips_linux_register_addr): Move from mips-linux-tdep.c.
8138 (mips64_linux_register_addr): Likewise.
8139 (mips_linux_register_u_offset): Call mips_linux_register_addr or
8140 mips64_linux_register_addr instead of register_addr.
8141 * mips-linux-tdep.c (mips_linux_register_addr,
8142 mips64_linux_register_addr): Move to mips-linux-nat.c.
8143 (register_addr): Remove.
8144 (register_addr_data, init_register_addr_data): Remove.
8145 (_initialize_mips_linux_tdep): Do not initialize register_addr_data.
8146 (set_mips_linux_register_addr): Remove.
8147 (mips_linux_init_abi): Do not call set_mips_linux_register_addr.
8148 * Makefile.in (mips-linux-nat.o): Update dependencies.
8150 2007-04-25 Ulrich Weigand <uweigand@de.ibm.com>
8152 * linux-nat.c (linux_register_u_offset): Remove.
8153 (linux_target_install_ops): New function.
8154 (linux_target): Use it.
8155 (linux_trad_target): New function.
8156 * linux-nat.h (linux_trad_target): Declare.
8158 * alpha-linux-nat.c: Include "gdbcore.h".
8159 (alpha_linux_register_u_offset): New function.
8160 (_initialize_alpha_linux_nat): Use linux_trad_target.
8162 * mips-linux-nat.c: Include "gdbcore.h".
8163 (mips_linux_register_u_offset): New function.
8164 (_initialize_mips_linux_nat): Use linux_trad_target.
8166 * config/arm/linux.mh (NAT_FILE): Set to config/nm-linux.h.
8167 * config/arm/nm-linux.h: Delete file.
8169 * config/i386/nm-linux64.h (FETCH_INFERIOR_REGISTERS): Remove.
8170 * config/i386/nm-linux.h (FETCH_INFERIOR_REGISTERS): Remove.
8172 * config/ia64/linux.mh (NAT_FILE): Set to config/nm-linux.h.
8173 * config/ia64/nm-linux.h: Delete file.
8175 * config/m32r/linux.mh (NAT_FILE): Set to config/nm-linux.h.
8176 * config/m32r/nm-linux.h: Delete file.
8178 * config/m68k/linux.mh (NAT_FILE): Set to config/nm-linux.h.
8179 * config/m68k/nm-linux.h: Delete file.
8181 * config/pa/linux.mh (NAT_FILE): Set to config/nm-linux.h.
8182 * config/pa/nm-linux.h: Delete file.
8184 * config/powerpc/linux.mh (NAT_FILE): Set to config/nm-linux.h.
8185 * config/powerpc/ppc64-linux.mh (NAT_FILE): Likewise.
8186 * config/powerpc/nm-linux.h: Delete file.
8188 * config/s390/s390.mh (NAT_FILE): Set to config/nm-linux.h.
8189 * config/s390/nm-linux.h: Delete file.
8191 * config/sparc/linux.mh (NAT_FILE): Set to config/nm-linux.h.
8192 * config/sparc/linux64.mh (NAT_FILE): Likewise.
8193 * config/sparc/nm-linux.h: Delete file.
8195 * Makefile.in (alpha-linux-nat.o): Update dependencies.
8196 (mips-linux-nat.o): Likewise.
8198 2007-04-25 Ulrich Weigand <uweigand@de.ibm.com>
8200 * core-aout.c: Delete file.
8201 * Makefile.in (ALLDEPFILES): Remove core-aout.c.
8202 (core-aout.o): Delete rule.
8203 * gdbcore.h (kernel_u_addr, KERNEL_U_ADDR): Remove.
8205 * config/alpha/nm-linux.h (U_REGS_OFFSET): Remove.
8207 * arm-linux-nat.c (arm_linux_kernel_u_size): Remove.
8208 * config/arm/nm-linux.h (U_REGS_OFFSET, KERNEL_U_SIZE,
8209 KERNEL_U_ADDR): Remove.
8211 * i386-linux-nat.c (register_u_addr, kernel_u_size): Remove.
8212 (cannot_fetch_register, cannot_store_register): Remove.
8213 (fetch_register): Inline cannot_fetch_register and register_addr.
8214 (store_register): Inline cannot_store_register and register_addr.
8215 * config/i386/linux.mh (NATDEPFILES): Remove core-aout.o.
8216 * config/i386/nm-linux.h (KERNEL_U_SIZE, KERNEL_U_ADDR,
8217 REGISTER_U_ADDR, CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER):
8220 * m68klinux-nat.c (m68k_linux_register_u_addr, kernel_u_size): Remove.
8221 (fetch_register): Inline register_addr.
8222 (store_register): Inline register_addr.
8223 * config/m68k/linux.mh (NATDEPFILES): Remove core-aout.o.
8224 * config/m68k/nm-linux.h (KERNEL_U_SIZE, KERNEL_U_ADDR,
8225 U_REGS_OFFSET, REGISTER_U_ADDR): Remove.
8227 * config/mips/nm-irix5.h (REGISTER_U_ADDR): Remove.
8228 * config/mips/nm-linux.h (KERNEL_U_SIZE, U_REGS_OFFSET,
8229 REGISTER_U_ADDR): Remove.
8231 * hppa-linux-nat.c (register_addr): Rename to ...
8232 (hppa_linux_register_addr): ... this. Make static.
8233 (fetch_register, store_register): Adapt callers.
8234 * config/pa/nm-linux.h (U_REGS_OFFSET): Remove.
8236 * ppc-linux-nat.c (kernel_u_size): Remove.
8237 * config/powerpc/nm-linux.h (KERNEL_U_SIZE, KERNEL_U_ADDR): Remove.
8239 * vax-nat.c (vax_kernel_u_addr, vax_register_u_addr): Make static.
8240 * config/vax/vax.mh (NATDEPFILES): Remove core-aout.o.
8242 * config/vax/nm-vax.h: Delete file.
8244 2007-04-20 Mark Shinwell <shinwell@codesourcery.com>
8246 * MAINTAINERS (Write After Approval): Add myself.
8248 2007-04-20 Mark Shinwell <shinwell@codesourcery.com>
8250 * Makefile.in: Adjust dependencies of m68klinux-tdep.c.
8251 * m68klinux-tdep.c (m68k_uclinux_sigcontext_reg_offset): New.
8252 (m68k_linux_sigcontext_reg_offset): Fix typo.
8253 (target_is_uclinux): New.
8254 (m68k_linux_inferior_created): New.
8255 (m68k_linux_get_sigtramp_info): Check for uClinux or
8256 normal Linux. Use m68k_uclinux_sigcontext_reg_offset for
8258 (_initialize_m68k_linux_tdep): Register
8259 m68k_linux_inferior_created.
8261 2007-04-19 Pedro Alves <pedro_alves@portugalmail.pt>
8263 * win32-nat.c (win32_detach): Remove delete_command call.
8264 Resume inferior with win32_resume instead of win32_continue.
8266 2007-04-19 Jerome Guitton <guitton@adacore.com>
8268 * ser-mingw.c (fd_is_file): New function.
8269 (file_select_thread): New function.
8270 (ser_console_wait_handle): Add special handling for files.
8272 2007-04-18 Denis Pilat <denis.pilat@st.com>
8274 * dwarf2read.c (read_subrange_type): Use DW_ATE_signed default type
8275 when missing from DW_TAG_subrange_type. Remove the handling of null
8276 return from die_type.
8278 2007-04-18 Maciej W. Rozycki <macro@mips.com>
8280 * mips-tdep.c (mips_eabi_push_dummy_call): Revert the last
8281 change to rearrange some brackets.
8282 (mips_n32n64_push_dummy_call): Likewise.
8283 (mips_o32_push_dummy_call): Likewise.
8284 (mips_o64_push_dummy_call): Likewise.
8286 2007-04-18 Denis Pilat <denis.pilat@st.com>
8288 * infcmd.c (post_create_inferior): Start with a call to
8289 target_terminal_ours.
8291 2007-04-17 Maciej W. Rozycki <macro@mips.com>
8293 * mips-tdep.c (mips_eabi_push_dummy_call): Rearrange some
8295 (mips_n32n64_push_dummy_call): Likewise. Reformat some
8297 (mips_o32_push_dummy_call): Likewise.
8298 (mips_o64_push_dummy_call): Likewise.
8300 2007-04-17 Maciej W. Rozycki <macro@mips.com>
8302 * mips-tdep.c (mips_n32n64_push_dummy_call): Fix a typo in a
8305 2007-04-17 Maciej W. Rozycki <macro@mips.com>
8307 * mips-tdep.c (mips_n32n64_push_dummy_call): Fix a typo in a
8309 (mips_o32_push_dummy_call): Likewise.
8311 2007-04-17 Andreas Schwab <schwab@suse.de>
8313 * symtab.c (skip_prologue_using_sal): Allow the end of the prologue
8314 sal to be bigger than the end of the function.
8316 2007-04-17 Maciej W. Rozycki <macro@mips.com>
8317 Nigel Stephens <nigel@mips.com>
8319 * mips-tdep.c (mips_o32_push_dummy_call): Take account of
8320 argument alignment requirements when calculating stack space
8321 required. When aligning an arg register to eight bytes
8322 boundary, align stack_offset too. Write floating-point
8323 arguments to the appropriate integer register if need go there.
8324 (mips_o64_push_dummy_call): Likewise.
8326 2007-04-14 Ulrich Weigand <uweigand@de.ibm.com>
8328 * gdbarch.sh (software_single_step): Remove "insert_breakpoints_p" and
8329 "sig" arguments, add "regcache" argument.
8330 * gdbarch.c, gdbarch.h: Regenerate.
8332 * infrun.c (resume): Update SOFTWARE_SINGLE_STEP call arguments.
8333 (handle_inferior_event): Call remove_single_step_breakpoints directly
8334 instead of calling SOFTWARE_SINGLE_STEP to remove breakpoints.
8336 * alpha-tdep.c (alpha_software_single_step): Update argument list.
8337 Remove handling of !insert_breakpoints_p case.
8338 * arm-tdep.c (arm_software_single_step): Likewise.
8339 * cris-tdep.c (cris_software_single_step): Likewise.
8340 * mips-tdep.c (mips_software_single_step): Likewise.
8341 * rs6000-tdep.c (rs6000_software_single_step): Likewise.
8342 * sparc-tdep.c (sparc_software_single_step): Likewise.
8343 * spu-tdep.c (spu_software_single_step): Likewise.
8345 * alpha-tdep.h (alpha_software_single_step): Update prototype.
8346 * mips-tdep.h (mips_software_single_step): Likewise.
8347 * rs6000-tdep.h (rs6000_software_single_step): Likewise.
8348 * sparc-tdep.h (sparc_software_single_step): Likewise.
8350 2007-04-14 Ulrich Weigand <uweigand@de.ibm.com>
8352 * alpha-tdep.c (alpha_software_single_step): Do not call write_pc
8353 when removing single-step breakpoints.
8355 2007-04-14 Vladimir Prus <vladimir@codesourcery.com>
8357 * varobj.h (varobj_set_frozen): New
8358 (varobj_get_frozen): New.
8359 (varobj_update): New parameter explicit.
8360 * varobj.c (struct varobj): New fields frozen
8362 (varobj_set_frozen, varobj_get_frozen): New.
8363 (install_new_value): Don't fetch values for
8364 frozen variable object, or children thereof. Allow
8365 a frozen variable object to have non-fetched value.
8366 (varobj_update): Allow updating child variables.
8367 Don't traverse frozen children.
8368 (new_variable): Initialize the frozen field.
8369 (c_value_of_variable): Return NULL for frozen
8370 variable without any value yet.
8371 * mi/mi-cmd-var.c (varobj_update_one): New parameter
8373 (mi_cmd_var_create): Output the 'frozen' field,
8374 as soon as testsuite is adjusted to expect that field.
8375 (mi_cmd_var_set_frozen): New.
8376 (mi_cmd_var_update): Pass the 'explicit' parameter to
8378 * mi/mi-cmds.c (mi_cmds): Register '-var-set-frozen'.
8379 * mi/mi-cmds.h (mi_cmd_var_set_frozen): Declare.
8381 2007-04-13 Paul Brook <paul@codesourcery.com>
8383 * target-descriptions.c (tdesc_named_type): Add ieee_single and
8385 * doc/gdb.texinfo: Document ieee_single and ieee_double target types.
8387 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
8389 * mips-mdebug-tdep.c, mips-mdebug-tdep.h, ocd.c, ocd.h, ppc-bdm.c,
8390 remote-e7000.c, remote-hms.c, remote-utils.c, remote-utils.h,
8391 scm-exp.c, scm-lang.c, scm-lang.h, scm-tags.h, scm-valprint.c,
8392 ser-e7kpc.c, sh3-rom.c, stop-gdb.c: Delete.
8393 * Makefile.in: Remove references to deleted files.
8394 * README: Do not mention deleted ROM monitor interfaces.
8395 * defs.h (enum language): Delete language_scm.
8396 * expprint.c (print_subexp_standard): Do not handle OP_EXPRSTRING.
8397 (dump_subexp_body_standard): Likewise.
8398 * parse.c (operator_length_standard): Likewise.
8399 * expression.h (enum exp_opcode): Delete OP_EXPRSTRING.
8400 * remote-mips.c: Do not include remote-utils.h.
8401 * remote-sim.c: Likewise. Use remote_debug instead of sr_get_debug
8403 * value.c: Do not include scm-lang.h.
8404 (unpack_long): Delete scm_unpack call.
8405 * config/h8300/h8300.mt, config/mips/embed.mt,
8406 config/powerpc/ppc-eabi.mt, config/powerpc/ppc-sim.mt,
8407 config/sh/embed.mt, config/sh/linux.mt: Remove references to
8409 * NEWS: Mention removed files.
8411 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
8413 * symfile.c (add_psymbol_with_dem_name_to_list): Remove.
8414 * symfile.h (add_psymbol_with_dem_name_to_list): Remove prototype.
8416 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
8418 * NEWS: Mention removal of HP aCC support.
8420 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
8422 * solib-svr4.c (IGNORE_FIRST_LINK_MAP_ENTRY): Do not ignore the
8423 first entry for static executables.
8424 (breakpoint_addr): Delete unused variable.
8425 (elf_locate_base): Search for _r_debug in static executables.
8426 (enable_break): Do not set breakpoint_addr. Scan solib_break_names
8429 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
8431 * breakpoint.c (update_breakpoints_after_exec, print_it_typical)
8432 (bpstat_what, print_one_breakpoint, allocate_bp_location)
8433 (mention): Remove bp_through_sigtramp support.
8434 * breakpoint.h (enum bptype): Remove bp_through_sigtramp.
8436 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
8438 * breakpoint.c (bpstat_what): Give step-resume higher priority than
8441 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
8443 * infrun.c: Doc fixes.
8444 (handle_inferior_event): Clarify debug message.
8445 (insert_step_resume_breakpoint_at_sal): Print a debug message.
8447 2007-04-12 Ulrich Weigand <uweigand@de.ibm.com>
8449 * configure.tgt (arm-*-nto*, sh-*-nto*): Remove.
8451 2007-04-12 Ulrich Weigand <uweigand@de.ibm.com>
8453 * config/m68k/tm-monitor.h: Delete file.
8454 * config/m68k/monitor.mt (DEPRECATED_TM_FILE): Remove.
8455 * m68k-tdep.c (m68k_gdbarch_init): set_gdbarch_decr_pc_after_break
8457 * m68kbsd-tdep.c (m68kbsd_init_abi): ... here and ...
8458 * m68klinux-tdep.c (m68k_linux_init_abi): ... here.
8460 2007-04-12 Luis Machado <luisgpm@br.ibm.com>
8462 * gdbarch.sh (software_single_step): Change the return type
8463 from void to int and reformatted some comments to <= 80
8465 * gdbarch.c, gdbarch.h: Regenerated.
8466 * alpha-tdep.c (alpha_software_single_step): Likewise.
8467 * alpha-tdep.h (alpha_software_single_step): Likewise.
8468 * arm-tdep.c (arm_software_single_step): Likewise.
8469 * cris-tdep.c (cris_software_single_step): Likewise.
8470 * mips-tdep.c (mips_software_single_step): Likewise.
8471 * mips-tdep.h (mips_software_single_step): Likewise.
8472 * rs6000-tdep.c (rs6000_software_single_step): Likewise.
8473 * rs6000-tdep.h (rs6000_software_single_step): Likewise.
8474 * sparc-tdep.c (sparc_software_single_step): Likewise.
8475 * sparc-tdep.h (sparc_software_single_step): Likewise.
8476 * spu-tdep.c (spu_software_single_step): Likewise.
8477 * infrun.c (resume): Check the return value from SOFTWARE_SINGLE_STEP
8478 and act accordingly.
8480 2007-04-11 Steve Ellcey <sje@cup.hp.com>
8482 * configure.ac (build_warnings): Add -Wno-char-subscripts.
8483 * configure: Regenerate.
8484 * doc/gdbint.texinfo (warning flags): Add -Wno-char-subscripts.
8486 2007-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
8488 * libunwind-frame.c (LIBUNWIND_SO): Use major version number for `.so'.
8490 2007-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
8492 * gdbtypes.h (TYPE_FLAG_STUB_SUPPORTED, TYPE_STUB_SUPPORTED): New
8494 (TYPE_IS_OPAQUE): Empty vs. opaque structures are now
8495 distinct on the TYPE_STUB_SUPPORTED debug targets.
8496 * dwarf2read.c (read_structure_type): Set TYPE_FLAG_STUB_SUPPORTED.
8498 2007-04-11 Joel Brobecker <brobecker@adacore.com>
8500 * sparc-tdep.c (X_RS2): New macro.
8501 (sparc_skip_stack_check): New function.
8502 (sparc_analyze_prologue): Adjust PC past stack probing
8503 sequence if necessary.
8505 2007-04-10 Andreas Schwab <schwab@suse.de>
8507 * rs6000-tdep.c (rs6000_dwarf2_reg_to_regnum): Decode 64 as CR
8510 2007-04-10 Daniel Jacobowitz <dan@codesourcery.com>
8512 * breakpoint.c (gdb_breakpoint_query): Really return an
8514 (gdb_breakpoint): Likewise.
8515 * thread.c (gdb_list_thread_ids): Likewise.
8516 (gdb_thread_select): Likewise.
8517 * mi/mi-main.c (mi_cmd_thread_select): Expect an enum gdb_rc.
8518 (mi_cmd_thread_list_ids): Remove bogus initialization.
8520 2007-04-10 Daniel Jacobowitz <dan@codesourcery.com>
8522 * Makefile.in (SFILES): Remove hpacc-abi.c.
8523 (COMMON_OBS): Remove hpacc-abi.o.
8524 (ALLDEPFILES): Remove hpread.c and $(HPREAD_SOURCE).
8525 (hpacc-abi.o, hpread.o): Delete rules.
8526 * somread.c: Delete extern declarations from hpread.c.
8527 (som_symfile_read): Do not call do_pxdb or hpread_build_psymtabs.
8528 (som_symfile_finish): Do not call hpread_symfile_finish.
8529 (som_symfile_init): Do not call hpread_symfile_init.
8530 * config/pa/hppa64.mt (TDEPFILES): Remove hpread.o.
8531 * config/pa/hppahpux.mt (TDEPFILES): Likewise.
8532 * hpacc-abi.c, hpread.c: Deleted.
8534 2007-04-10 Daniel Jacobowitz <dan@codesourcery.com>
8536 * solib-svr4.c (enable_break): Simplify return value.
8537 (svr4_solib_create_inferior_hook): Do not warn if enable_break fails.
8539 2007-04-10 Andreas Schwab <schwab@suse.de>
8541 * solib-svr4.h (struct link_map_offsets): Remove l_addr_size,
8542 l_ld_size, l_next_size, l_prev_size, l_name_size.
8544 * solib-svr4.c (LM_ADDR_FROM_LINK_MAP): Use extract_typed_address
8545 to extract addresses from link map.
8546 (LM_DYNAMIC_FROM_LINK_MAP): Likewise.
8547 (LM_NEXT): Likewise.
8548 (LM_NAME): Likewise.
8549 (IGNORE_FIRST_LINK_MAP_ENTRY): Likewise.
8550 (elf_locate_base): Likewise.
8551 (open_symbol_file_object): Likewise.
8552 (svr4_fetch_objfile_link_map): Likewise.
8553 (SOLIB_EXTRACT_ADDRESS): Remove unused macro.
8554 (HAS_LM_DYNAMIC_FROM_LINK_MAP): Test l_ld_offset instead of
8556 (svr4_ilp32_fetch_link_map_offsets): Don't set removed members.
8557 (svr4_lp64_fetch_link_map_offsets): Likewise.
8559 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets): Don't set
8560 removed members. Set l_ld_offset to -1 if not present.
8562 2007-04-08 Vladimir Prus <vladimir@codesourcery.com>
8564 Pass stderr of program run with "target remote |"
8566 * serial.c (serial_open): Set error_fd to -1.
8567 * serial.h (struct serial): New field error_fd.
8568 (struct serial_opts): New field avail.
8569 * ser-pipe.c (pipe_open): Create another pair
8570 of sockets. Pass stderr to gdb.
8571 * ser-mingw.c (pipe_windows_open): Pass
8572 PEX_STDERR_TO_PIPE to pex_run. Initialize
8575 (_initialize_ser_windows): Hook pipe_avail.
8576 * ser-base.c (generic_readchar): Check if there's
8577 anything in stderr channel and route that to gdb_stderr.
8579 2007-04-03 Pedro Alves <pedro_alves@portugalmail.pt>
8581 * dbxread.c (read_ofile_symtab): Move current_objfile
8582 clearing to after end_stabs.
8584 2007-04-01 Andreas Schwab <schwab@suse.de>
8586 * rs6000-tdep.c (rs6000_convert_from_func_ptr_addr): Use parameter
8587 gdbarch instead of current_gdbarch.
8589 2007-04-01 Vladimir Prus <vladimir@codesourcery.com>
8591 * varobj.c (varobj_create): Keep varobj value
8592 NULL when evaluating the type.
8594 2007-03-31 Pedro Alves <pedro_alves@portugalmail.pt>
8596 * NEWS: Mention new Windows CE support.
8598 2007-03-30 Pedro Alves <pedro_alves@portugalmail.pt>
8600 * configure.tgt: Move mips*-*-pe and sh*-*-pe to
8601 the obsoletion stanza.
8602 * NEWS: Mention deleted targets.
8604 * config/sh/tm-wince.h: Remove.
8605 * config/sh/wince.mt: Remove.
8606 * config/mips/tm-wince.h: Remove.
8607 * config/mips/wince.mt: Remove.
8610 * wince-stub.c: Remove.
8611 * wince-stub.h: Remove.
8612 * Makefile.in (wince.o): Remove rule.
8613 (wince-stub.o): Likewise.
8615 * mips-tdep.c (mips_next_pc): Make static.
8616 * mips-tdep.h (mips_next_pc): Remove declaration.
8617 * arm-tdep.c (arm_pc_is_thumb): Make static.
8618 (thumb_get_next_pc): Likewise.
8619 (arm_get_next_pc): Likewise.
8620 * arm-tdep.h (arm_pc_is_thumb_dummy): Remove declaration.
8621 (arm_pc_is_thumb): Likewise.
8622 (thumb_get_next_pc): Likewise.
8623 (arm_get_next_pc): Likewise.
8625 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
8627 * MAINTAINERS: Remove d10v entry.
8628 * Makefile.in (SFILES): Remove dwarfread.c.
8629 (COMMON_OBS): Remove dwarfread.o.
8630 (gdb_sim_d10v_h, abug-rom.o, cpu32bug-rom.o, d10v-tdep.o, dwarfread.o)
8631 (remote-est.o, rom68k-rom.o): Delete.
8632 * NEWS: Mention removal of d10v, target abug, target cpu32bug,
8633 target est, target rom68k, and DWARF 1.
8634 * configure.tgt: Mark d10v as removed.
8635 * dwarf2read.c: Doc update.
8636 * elfread.c (struct elfinfo): Remove dboffset, dbsize, lnoffset,
8638 (elf_locate_sections): Do not set them.
8639 (elf_symfile_read): Do not call dwarf_build_psymtabs.
8640 * symfile.h (dwarf_build_psymtabs): Delete prototype.
8641 * config/m68k/monitor.mt (TDEPFILES): Prune.
8642 * abug-rom.c, cpu32bug-rom.c, d10v-tdep.c, dwarfread.c,
8643 remote-est.c, rom68k-rom.c, config/d10v/d10v.mt: Delete.
8645 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
8647 * doublest.c (convert_floatformat_to_doublest): Use
8648 floatformat_classify.
8649 (floatformat_is_nan): Rename to...
8650 (floatformat_classify): ...this. Return more information.
8651 * doublest.h (enum float_kind): New.
8652 (floatformat_is_nan): Replace prototype...
8653 (floatformat_classify): ...with this one.
8654 * valprint.c (print_floating): Use floatformat_classify. Handle
8657 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
8659 * README: Mention ISO C library requirement.
8661 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
8663 * Makefile.in (SFILES): Remove nlmread.c.
8664 (COMMON_OBS): Remove nlmread.o.
8665 (nlmread.o): Delete rule.
8666 * README: Delete reference to remote-st.c.
8667 * acinclude.m4 (CY_AC_TCL_LYNX_POSIX): Delete.
8668 * defs.h (enum gdb_osabi): Delete GDB_OSABI_NETWARE and
8670 * i386-tdep.c (i386_nw_init_abi, i386_nlm_osabi_sniffer): Delete.
8671 (_initialize_i386_tdep): Do not reference them.
8672 * nlmread.c: Delete file.
8673 * osabi.c (gdb_osabi_names): Remove NetWare and LynxOS.
8674 * target.c: Doc update.
8675 * thread.c: Delete commented include.
8676 * config/alpha/tm-alpha.h: Doc update.
8678 2007-03-30 Chris Dearman <chris@mips.com>
8680 * utils.c (string_to_core_addr): Comment typo.
8682 2007-03-30 Chris Dearman <chris@mips.com>
8684 * mips-tdep.c: Comment typo.
8686 2007-03-29 Ulrich Weigand <uweigand@de.ibm.com>
8688 * config/alpha/nm-osf.h (PTRACE_XFER_TYPE): Remove.
8689 * config/mips/nm-linux.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Remove.
8690 * config/sparc/nm-linux.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Remove.
8691 * config/powerpc/nm-ppc64-linux.h: Remove file.
8692 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Set to nm-linux.h.
8693 * inferior.h (PTRACE_ARG3_TYPE): Do not define.
8694 (call_ptrace): Change type of third argument to PTRACE_TYPE_ARG3.
8695 * infptrace.c (call_ptrace): Likewise.
8696 * m68klinux-nat.c (PTRACE_XFER_TYPE): Do not define.
8697 (fetch_register): Replace PTRACE_ARG3_TYPE by PTRACE_TYPE_ARG3
8698 and PTRACE_XFER_TYPE by PTRACE_TYPE_RET.
8699 (store_register): Likewise.
8701 2007-03-29 Joel Brobecker <brobecker@adacore.com>
8703 * Makefile.in (varobj.o): Add missing dependency.
8705 2007-03-29 Michael Snyder <msnyder@access-company.com>
8707 * MAINTAINERS: Update my email address.
8709 2007-03-29 Joel Brobecker <brobecker@adacore.com>
8711 Add support for exception handling with multiple versions of
8713 * ada-lang.c: Update general comments on how Ada exception catchpoints
8715 (raise_sym_name, raise_unhandled_sym_name, raise_assert_sym_name)
8716 (__gnat_raise_nodefer_with_msg): Delete.
8717 (ada_unhandled_exception_name_addr_ftype): New type.
8718 (exception_support_info): New type.
8719 (ada_unhandled_exception_name_addr): Add forward declaration.
8720 (ada_unhandled_exception_name_addr_from_raise): Likewise.
8721 (default_exception_support_info): New constant.
8722 (exception_support_info_fallback): Likewise.
8723 (exception_info): New global variable.
8724 (ada_exception_support_info_sniffer): New function.
8725 (ada_executable_changed_observer): Likewise.
8726 (ada_unhandled_exception_name_addr_from_raise): Renamed from
8727 ada_unhandled_exception_name_addr.
8728 (ada_unhandled_exception_name_addr): Reimplement to match the
8729 latest Ada runtime implementation.
8730 (error_breakpoint_runtime_sym_not_found): Delete.
8731 (ada_exception_sym_name): Get the exception sym name from
8732 exception_info rather than hardcoding it.
8733 (ada_exception_sal): Add call to ada_exception_support_info_sniffer.
8734 Update error handling.
8735 * Makefile.in (ada-lang.o): Add dependency on observer.h.
8737 2007-03-29 Daniel Jacobowitz <dan@codesourcery.com>
8739 * Makefile.in (coff_solib_h, coff-solib.o, i386v-nat.o, lynx-nat.o)
8740 (remote-st.o, uw-thread.o): Delete.
8741 (HFILES_NO_SRCDIR, ALLDEPFILES): Update.
8742 * configure.host: Move hppa*-*-hiux*, i[34567]86-ncr-*,
8743 i[34567]86-*-dgux*, i[34567]86-*-lynxos*, i[34567]86-*-sco3.2v5*,
8744 i[34567]86-*-sco3.2v4*, i[34567]86-*-sco*, i[34567]86-*-sysv4.2*,
8745 i[34567]86-*-sysv4*, i[34567]86-*-sysv5*, i[34567]86-*-unixware2*,
8746 i[34567]86-*-unixware*, i[34567]86-*-sysv*, i[34567]86-*-isc*, and
8747 rs6000-*-lynxos* to an obsoletion stanza.
8748 * configure.tgt: Move hppa*-*-hiux*, i[34567]86-ncr-*,
8749 i[34567]86-*-lynxos*, m68*-cisco*-*, m68*-tandem-*, m68*-*-os68k*,
8750 and rs6000-*-lynxos* to an obsoletion stanza. Do not mention
8751 i[34567]86-*-netware*.
8752 * NEWS: Mention deleted targets.
8754 * coff-solib.c, coff-solib.h, i386v-nat.c, lynx-nat.c, remote-st.c,
8755 uw-thread.c, config/nm-lynx.h, config/i386/i386sco.mh,
8756 config/i386/i386sco4.mh, config/i386/i386sco5.mh, config/i386/i386v.mh,
8757 config/i386/i386v4.mh, config/i386/i386v42mp.mh,
8758 config/i386/ncr3000.mh, config/i386/ncr3000.mt,
8759 config/i386/nm-i386sco.h, config/i386/nm-i386sco4.h,
8760 config/i386/nm-i386sco5.h, config/i386/nm-i386v.h,
8761 config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h,
8762 config/m68k/cisco.mt, config/m68k/os68k.mt, config/m68k/st2000.mt,
8763 config/m68k/tm-cisco.h, config/m68k/tm-os68k.h,
8764 config/rs6000/rs6000lynx.mh, config/rs6000/rs6000lynx.mt,
8765 config/rs6000/tm-rs6000ly.h: Delete files.
8767 2007-03-29 Daniel Jacobowitz <dan@codesourcery.com>
8769 * defs.h (deprecated_registers_changed_hook): Delete declaration.
8770 * interps.c (clear_interpreter_hooks): Do not clear
8771 deprecated_registers_changed_hook.
8772 * regcache.c (registers_changed): Do not call it.
8773 * top.c (deprecated_registers_changed_hook): Do not define it.
8774 * mi/mi-interp.c (mi_command_loop): Do not clear it.
8775 * tui/tui-hooks.c (tui_install_hooks): Do not install it.
8776 (tui_remove_hooks): Do not remove it.
8777 (tui_selected_frame_level_changed_hook): Check for negative level.
8778 Use get_selected_frame.
8779 (tui_registers_changed_hook): Deleted.
8781 2007-03-29 Joel Brobecker <brobecker@adacore.com>
8783 * stabsread.c (add_undefined_type): Add extra parameter.
8784 Now handles nameless types separately.
8785 (struct nat): New type.
8786 (noname_undefs, noname_undefs_allocated, noname_undefs_length):
8787 New static variables.
8788 (read_type): Update calls to add_undefined_type.
8789 (add_undefined_type_noname): New function.
8790 (add_undefined_type_1): Renames from add_undefined_type.
8791 (cleanup_undefined_types_noname): New function.
8792 (cleanup_undefined_types_1): Renames cleanup_undefined_types.
8793 (cleanup_undefined_types): New handles nameless types separately.
8794 (_initialize_stabsread): Initialize our new static constants.
8796 2007-03-29 Denis Pilat <denis.pilat@st.com>
8798 * configure.ac: Test for signal.h.
8799 * configure, config.in: Regenerate.
8801 2007-03-29 Denis Pilat <denis.pilat@st.com>
8803 * stack.c (print_stack_frame): Always use LOC_AND_ADDRESS in MI output.
8804 * infrun.c (normal_stop): Remove MI specific frame printing treatment.
8806 2007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
8808 * arm-wince-tdep.c: New.
8809 * config/arm/wince.mt (DEPRECATED_TM_FILE): Use tm-arm.h.
8810 (MT_CFLAGS): Delete.
8812 (TDEPFILES): Add arm-wince-tdep.o, corelow.o, solib.o,
8813 solib-legacy.o, solib-svr4.o, and remove wince.o.
8814 * configure.tgt (arm*-*-mingw32ce*): Add.
8815 * signals/signals.c [HAVE_SIGNAL_H]: Check.
8816 (do_target_signal_to_host): Silence 'not used' warning.
8817 * config/arm/tm-wince.h: Remove.
8819 2007-03-28 Ulrich Weigand <uweigand@de.ibm.com>
8821 * arch-utils.c (legacy_pc_in_sigtramp): Remove.
8822 * arch-utils.h (legacy_pc_in_sigtramp): Remove.
8824 * config/ia64/linux.mt (DEPRECATED_TM_FILE): Remove.
8825 * config/ia64/tm-linux.h: Remove file.
8826 * ia64-tdep.h (struct gdbarch_tdep): Add pc_in_sigtramp callback.
8827 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Use it instead of
8828 legacy_pc_in_sigtramp.
8829 (ia64_gdbarch_init): Initialize tdep->pc_in_sigtramp.
8830 * ia64-linux-tdep.c (ia64_linux_pc_in_sigtramp): Make static.
8831 Remove func_name argument.
8832 (ia64_linux_init_abi): Install it as tdep->pc_in_sigtramp.
8834 * infrun.c (HAVE_STEPPABLE_WATCHPOINT): Do not redefine.
8835 * target.c (update_current_target): Add to_have_steppable_watchpoint.
8836 * target.h (struct target_ops): Add to_have_steppable_watchpoint.
8837 (HAVE_STEPPABLE_WATCHPOINT): Define.
8839 * config/ia64/linux.mh (NATDEPFILES): Remove core-aout.o.
8840 * config/ia64/nm-linux.h (KERNEL_U_ADDR, U_REGS_OFFSET,
8841 CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER,
8842 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_STEPPABLE_WATCHPOINT,
8843 STOPPED_BY_WATCHPOINT, target_stopped_data_address,
8844 target_insert_watchpoint, target_remove_watchpoint): Remove.
8845 (FETCH_INFERIOR_REGISTERS): Define.
8846 * ia64-linux-nat.c (ia64_register_addr): Make static.
8847 (ia64_cannot_fetch_register, ia64_cannot_store_register): Likewise.
8848 (ia64_linux_insert_watchpoint): Make static. Remove ptid_p argument.
8849 (ia64_linux_remove_watchpoint): Likewise. Add type argument.
8850 (ia64_linux_stopped_data_address): Make static. Add target_ops.
8851 (ia64_linux_stopped_by_watchpoint): Make static.
8852 (ia64_linux_can_use_hw_breakpoint): New function.
8853 (ia64_linux_fetch_register, ia64_linux_fetch_registers): Likewise.
8854 (ia64_linux_store_register, ia64_linux_store_registers): Likewise.
8855 (_initialize_ia64_linux_nat): Install register and watchpoint ops.
8857 2007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
8859 * linespec.c: Include language.h.
8860 (find_methods): Add language parameter. Call
8861 lookup_symbol_in_language. Pass language down.
8862 (add_matching_methods): Likewise. Call
8863 lookup_symbol_in_language.
8864 (add_constructors): Likewise.
8865 (find_method): Pass sym_class to collect_methods.
8866 (collect_methods): Add sym_class parameter. Pass language
8868 * symtab.c (lookup_symbol): Rename to ...
8869 (lookup_symbol_in_language): ... this. Add language
8870 parameter. Use passed language instead of current_language.
8871 (lookup_symbol): New as wrapper around
8872 lookup_symbol_in_language.
8873 (lookup_symbol_aux): Add language parameter. Use passed
8874 language instead of current_language.
8875 (search_symbols): Indent.
8876 * symtab.h (enum language): Forward declare.
8877 (lookup_symbol_in_language): Declare.
8878 (lookup_symbol): Update description.
8879 * ada-lang.h (lookup_symbol_in_language): Remove declaration.
8880 * ada-lang.c (restore_language): Remove.
8881 (lookup_symbol_in_language): Remove.
8883 2007-03-27 Pedro Alves <pedro_alves@portugalmail.pt>
8885 * breakpoint.c (bpstat_num): Add int *num parameter.
8886 * breakpoint.h (bpstat_num): Likewise.
8887 * infcmd.c (continue_command): Adjust to new bpstat_num
8889 (program_info): Likewise.
8891 2007-03-27 Ulrich Weigand <uweigand@de.ibm.com>
8893 * config/sh/tm-sh.h: Remove file.
8894 * config/sh/embed.mt (DEPRECATED_TM_FILE): Remove.
8895 * config/sh/linux.mt (DEPRECATED_TM_FILE): Remove.
8896 * config/sh/nbsd.mt (DEPRECATED_TM_FILE): Remove.
8897 * config/sh/tm-wince.h: Do not include "sh/tm-sh.h".
8899 2007-03-27 Ulrich Weigand <uweigand@de.ibm.com>
8901 * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT,
8902 DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Remove.
8903 * remote.c: Remove code under #ifdef DEPRECATED_REMOTE_BREAKPOINT,
8904 DEPRECATED_BIG_REMOTE_BREAKPOINT, DEPRECATED_LITTLE_REMOTE_BREAKPOINT.
8905 * sh-tdep.c (sh_breakpoint_from_pc): Return remote breakpoint
8906 sequence if target_shortname is "remote".
8908 2007-03-27 Anton Blanchard <anton@samba.org>
8910 * rs6000-tdep.c (rs6000_frame_cache): Use tdep->lr_frame_offset
8911 instead of wordsize when looking for the LR in a stack frame.
8913 2007-03-27 Andreas Schwab <schwab@suse.de>
8914 Daniel Jacobowitz <dan@codesourcery.com>
8916 * dwarf2-frame.c (dwarf2_frame_eh_frame_regnum): Rename to...
8917 (dwarf2_frame_adjust_regnum): ...this. Make static. Add eh_frame_p
8918 argument. Update all callers.
8919 (struct dwarf2_frame_ops): Replace eh_frame_regnum with adjust_regnum.
8920 (dwarf2_frame_set_eh_frame_regnum): Rename to...
8921 (dwarf2_frame_set_adjust_regnum): ...this. Update argument type.
8922 * dwarf2frame.h (dwarf2_frame_set_eh_frame_regnum): Rename to...
8923 (dwarf2_frame_set_adjust_regnum): ...this.
8924 (dwarf2_frame_eh_frame_regnum): Delete prototype.
8925 * rs6000-tdep.c: Include "dwarf2-frame.h".
8926 (rs6000_adjust_frame_regnum): Define.
8927 (rs6000_gdbarch_init): Enable use of DWARF CFI frame unwinder.
8928 Register rs6000_adjust_frame_regnum.
8930 * Makefile.in (rs6000-tdep.o): Update dependencies.
8932 2007-03-27 Brooks Moses <brooks.moses@codesourcery.com>
8934 * Makefile.in: Add support for a "pdf" target.
8936 2007-03-27 Daniel Jacobowitz <dan@codesourcery.com>
8938 * amd64-tdep.c (amd64_init_frame_cache): New function.
8939 (amd64_alloc_frame_cache, amd64_skip_prologue): Use it.
8941 2007-03-26 Nigel Stephens <nigel@mips.com>
8942 Maciej W. Rozycki <macro@mips.com>
8944 * ui-out.c (ui_out_field_core_addr): Truncate address to
8945 TARGET_ADDR_BIT size before printing.
8947 2007-03-22 Nigel Stephens <nigel@mips.com>
8948 Maciej W. Rozycki <macro@mips.com>
8950 * remote-mips.c (mips_xfer_memory): Update prototype.
8952 2007-03-22 Joel Brobecker <brobecker@adacore.com>
8954 * symfile.h: #include "symtab.h"
8956 2007-03-22 Denis Pilat <denis.pilat@st.com>
8958 * utils.c (pagination_on_command, pagination_off_command):
8959 Remove useless prototypes.
8961 2007-03-21 Pierre Muller <muller@ics.u-strasbg.fr>
8964 * p-valprint.c (pascal_object_print_value): Use type_name_no_tag
8965 instead of TYPE_NAME for object base class name.
8968 2007-03-19 Kevin Buettner <kevinb@redhat.com>
8970 * mep-tdep.c (mep_analyze_frame_prologue, mep_frame_this_id):
8971 Specify frame type in calls to frame_func_unwind().
8973 2007-03-13 Daniel Jacobowitz <dan@codesourcery.com>
8975 * rs6000-tdep.c (rs6000_skip_prologue): Use skip_prologue_using_sal.
8976 (rs6000_in_function_epilogue_p): Use extract_unsigned_integer.
8977 (refine_prologue_limit): Delete.
8978 (skip_prologue): Don't call it. Use extract_unsigned_integer.
8979 Assume lim_pc is set. Correct check for incomplete prologues.
8980 Do not skip clobbers of the frame pointer.
8981 * symtab.c (skip_prologue_using_sal): Fail if there is only one
8984 2007-03-13 Nathan Froyd <froydnj@codesourcery.com>
8986 * frame.c (frame_pop): Check to see whether there's a frame to
8987 which we can pop first.
8989 2007-03-13 Nathan Froyd <froydnj@codesourcery.com>
8991 * MAINTAINERS (Write After Approval): Add myself.
8993 2007-03-09 Markus Deuling <deuling@de.ibm.com>
8995 * infrun.c (breakpoints_failed): Remove unnecessary variable.
8996 (handle_inferior_event): Remove unnecessary braces.
8997 * breakpoint.c (bpstat_what): Remove wrong comment.
8999 2007-03-09 Ulrich Weigand <uweigand@de.ibm.com>
9001 * spu-tdep.c (spu_in_function_epilogue_p): New function.
9002 (spu_gdbarch_init): Install it.
9004 2007-03-08 Ulrich Weigand <uweigand@de.ibm.com>
9006 * spu-linux-nat.c (spu_xfer_partial): Return -1 for unsupported
9007 object types, not 0.
9009 2007-03-08 Ulrich Weigand <uweigand@de.ibm.com>
9011 * spu-tdep.c (spu_frame_align): New function.
9012 (spu_gdbarch_init): Install it. Set call dummy location to ON_STACK.
9014 2007-03-08 Ulrich Weigand <uweigand@de.ibm.com>
9016 * spu-tdep.c (spu_unwind_pc): Mask off interrupt enable bit.
9017 (spu_software_single_step): Likewise.
9018 (spu_read_pc, spu_write_pc): New functions.
9019 (spu_gdbarch_init): Install them.
9021 2007-03-08 Ulrich Weigand <uweigand@de.ibm.com>
9023 * cli/cli-dump.c (struct callback_data): load_offset needs to
9024 have signed long type.
9026 2007-03-07 Joel Brobecker <brobecker@adacore.com>
9028 * mips-tdep.c (mips_insn16_frame_cache, mips_insn32_frame_sniffer):
9029 Revert the previous change that had some unexpected side-effects
9031 (mips_insn16_frame_cache, mips_insn32_frame_cache): Use the proper
9032 function to get the address of the calling instruction.
9034 2007-03-07 Denis Pilat <denis.pilat@st.com>
9036 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Replace
9037 get_selected_frame by deprecated_safe_get_selected_frame.
9039 2007-03-02 Mark Kettenis <kettenis@gnu.org>
9041 * shnbsd-tdep.c: Include "regset.h", "gdb_assert.h" and
9042 "gdb_string.h". Don't include "nbsd-tdep.h".
9043 (SIZEOF_STRUCT_REG): Remove.
9044 (SHNBSD_SIZEOF_GREGS): New.
9045 (shnbsd_supply_gregset, shnbsd_collect_gregset)
9046 (shnbsd_regset_from_core_section): New functions.
9047 (fetch_core_registers, fetch_elfcore_registers): Remove functions.
9048 (shnbsd_supply_reg, shnbsd_fill_reg): Simply call
9049 shnbsd_supply_gregset, shnbsd_collect_gregset.
9050 (shnbsd_gregset): New variable.
9051 (shnbsd_init_abi): Set regset_from_core_section.
9052 (GDB_OSABI_NETBSD_CORE): New define.
9053 (shnbsd_core_osabi_sniffer): New function.
9054 (_initialize_shnbsd_tdep): Register shnbsd_core_osabi_sniffer.
9055 * Makefile.in (shnbsd-tdep.o): Update dependencies.
9056 * config/sh/nbsd.mt (TDEPFILES): Add corelow.o, remove
9058 * config/sh/obsd.mt (TDEPFILES): Remove nbsd-tdep.o.
9060 2007-02-28 Joel Brobecker <brobecker@adacore.com>
9062 * gdbtypes.c (replace_type): Fix typo that caused us to not update
9063 length of the types referenced by the new type CV ring.
9065 2007-02-28 Daniel Jacobowitz <dan@codesourcery.com>
9067 * frame.c (frame_pop, frame_observer_target_changed): Call
9069 (flush_cached_frames): Rename to reinit_frame_cache and delete
9071 * frame.h (flush_cached_frames): Delete prototype and update comment.
9073 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd): Call
9074 reinit_frame_cache instead of flush_cached_frames. Do not call
9075 select_frame after reinit_frame_cache.
9076 * corelow.c (core_open): Likewise.
9077 * gdbarch.sh (deprecated_current_gdbarch_select_hack): Likewise.
9078 * infrun.c (prepare_to_proceed, context_switch)
9079 (handle_inferior_event): Likewise.
9080 * linux-fork.c (fork_load_infrun_state): Likewise.
9081 * ocd.c (ocd_start_remote): Likewise.
9082 * remote-e7000.c (e7000_start_remote): Likewise.
9083 * remote-mips.c (device): Likewise.
9084 * thread.c (switch_to_thread): Likewise.
9085 * tracepoint.c (finish_tfind_command): Likewise.
9086 * gdbarch.c: Regenerated.
9088 2007-02-28 Jerome Guitton <guitton@adacore.com>
9089 Joel Brobecker <brobecker@adacore.com>
9091 * gdbtypes.c (check_typedef): Do not replace stub type if
9092 the resolved type is not defined in the same objfile.
9094 2007-02-28 Daniel Jacobowitz <dan@codesourcery.com>
9096 * top.c (gdb_readline_wrapper_cleanup): Remove invalid assertion.
9098 2007-02-28 Joel Brobecker <brobecker@adacore.com>
9100 * stabsread.c (define_symbol): Create an associated STRUCT_DOMAIN
9101 symbol for Ada units when the symbol is defined using 't' rather
9102 than 'Tt' as symbol descriptor.
9104 2007-02-28 Ulrich Weigand <uweigand@de.ibm.com>
9106 * config/mips/tm-nbsd.h: Delete file.
9107 * config/mips/nbsd.mt (DEPRECATED_TM_FILE): Remove.
9108 * config/sh/tm-nbsd.h: Delete file.
9109 * config/sh/nbsd.mt (DEPRECATED_TM_FILE): Set to tm-sh.h.
9111 2007-02-28 Joel Brobecker <brobecker@adacore.com>
9113 * mi/mi-cmd-var.c (varobj_update_one): Remove reference to
9114 unused WRONG_PARAM value since it was recently deleted.
9116 2007-02-28 Vladimir Prus <vladimir@codesourcery.com>
9118 * varobj.c (varobj_update): Free temporary vectors.
9120 2007-02-28 Ulrich Weigand <uweigand@de.ibm.com>
9122 * config/powerpc/linux.mt (DEPRECATED_TM_FILE): Set to tm-ppc-eabi.h.
9123 * config/powerpc/tm-linux.h: Delete file.
9124 * config/powerpc/tm-ppc-eabi.h: Do not include "rs6000/tm-rs6000.h".
9125 (PROCESS_LINENUMBER_HOOK): Do not undefine.
9126 (TEXT_SEGMENT_BASE): Do not redefine.
9127 * config/rs6000/nm-rs6000.h (CHILD_SPECIAL_WAITSTATUS): Move here
9128 from config/rs6000/tm-rs6000.h.
9129 (TARGET_CREATE_INFERIOR_HOOK, rs6000_create_inferior): Likewise.
9130 * config/rs6000/tm-rs6000.h (struct frame_info): Remove declaration.
9131 (TEXT_SEGMENT_BASE): Remove.
9132 (IN_SOLIB_RETURN_TRAMPOLINE): Remove.
9133 (rs6000_in_solib_return_trampoline): Remove.
9134 (SKIP_TRAMPOLINE_CODE): Remove.
9135 (rs6000_skip_trampoline_code): Remove.
9136 (CHILD_SPECIAL_WAITSTATUS): Move to config/rs6000/nm-rs6000.h.
9137 (TARGET_CREATE_INFERIOR_HOOK, rs6000_create_inferior): Likewise.
9138 (FP0_REGNUM): Remove.
9139 (rs6000_find_toc_address_hook): Move to rs6000-tdep.h.
9140 (rs6000_set_host_arch_hook): Remove.
9141 * Makefile.in (rs6000-nat.o): Add dependency on $(rs6000_tdep_h).
9142 (rs6000-aix-tdep.o): Add dependency on $(ppc_tdep_h).
9143 * ppc-tdep.h (struct gdbarch_tdep): Add field text_segment_base.
9144 * rs6000-aix-tdep.c: Include "ppc-tdep.h".
9145 (rs6000_aix_init_osabi): Set text_segment_base tdep field.
9146 * rs6000-nat.c: Include "rs6000-tdep.h".
9147 (exec_one_dummy_insn): Replace TEXT_SEGMENT_BASE by tdep field.
9148 (set_host_arch): Rename to ...
9149 (rs6000_create_inferior): ... this. Make public.
9150 (_initialize_core_rs6000): Do not set rs6000_set_host_arch_hook.
9151 * rs6000-tdep.c (rs6000_set_host_arch_hook): Remove.
9152 (rs6000_create_inferior): Remove.
9153 (branch_dest): Replace TEXT_SEGMENT_BASE by tdep field.
9154 (rs6000_gdbarch_init): Call set_gdbarch_fp0_regnum,
9155 set_gdbarch_in_solib_return_trampoline, and
9156 set_gdbarch_skip_trampoline_code.
9157 * rs6000-tdep.h (rs6000_find_toc_address_hook): Move here
9158 from config/rs6000/tm-rs6000.h.
9160 2007-02-27 Joel Brobecker <brobecker@adacore.com>
9162 * buildsym.c (record_producer): Do nothing if no producer is provided.
9164 2007-02-27 Nick Roberts <nickrob@snap.net.nz>
9166 * varobj.c (varobj_update): Remove unused local. Use gdb_assert
9167 to check changelist is non-NULL. Call error if the frontend tries
9168 to update a non-root variable.
9170 * varobj.h (enum varobj_update_error): Delete WRONG_PARAM value.
9172 2007-02-27 Daniel Jacobowitz <dan@codesourcery.com>
9174 * dwarf2-frame.c (dwarf2_frame_cache, dwarf2_frame_this_id)
9175 (dwarf2_frame_sniffer): Update.
9176 (dwarf2_signal_frame_this_id): New function.
9177 (dwarf2_signal_frame_unwind): Use it.
9178 (dwarf2_frame_base_sniffer): Use frame_unwind_address_in_block.
9179 * frame.c (frame_func_unwind): Add this_type argument.
9180 (get_frame_func): Update.
9181 (frame_unwind_address_in_block): Add this_type argument and check it.
9183 (get_frame_address_in_block): Update.
9184 * frame.h (enum frame_type): Move higher in the file.
9185 (frame_unwind_address_in_block, frame_func_unwind): Add enum frame_type
9188 * alpha-mdebug-tdep.c, alpha-tdep.c, amd64-tdep.c, amd64obsd-tdep.c,
9189 arm-tdep.c, avr-tdep.c, cris-tdep.c, frv-tdep.c, h8300-tdep.c,
9190 hppa-tdep.c, i386-tdep.c, i386obsd-tdep.c, ia64-tdep.c,
9191 libunwind-frame.c, m32c-tdep.c, m32r-linux-tdep.c, m32r-tdep.c,
9192 m68hc11-tdep.c, m68k-tdep.c, m88k-tdep.c, mips-mdebug-tdep.c,
9193 mips-tdep.c, mn10300-tdep.c, mt-tdep.c, rs6000-tdep.c, s390-tdep.c,
9194 score-tdep.c, sh-tdep.c, sh64-tdep.c, sparc-tdep.c,
9195 sparc64obsd-tdep.c, spu-tdep.c, v850-tdep.c, vax-tdep.c,
9196 xstormy16-tdep.c, xtensa-tdep.c: Update calls to
9197 frame_func_unwind and frame_unwind_address_in_block to specify
9198 the frame type. Use frame_unwind_address_in_block instead of
9199 frame_pc_unwind in sniffers.
9201 2007-02-27 Daniel Jacobowitz <dan@codesourcery.com>
9203 * frame.c (deprecated_selected_frame): Rename to...
9204 (selected_frame): ...this. Make static.
9205 (get_selected_frame, select_frame): Update.
9206 * frame.h (deprected_select_frame): Delete.
9207 (deprecated_safe_get_selected_frame): Update comments.
9209 * breakpoint.c, cli/cli-cmds.c, f-valprint.c, infcmd.c, inflow.c,
9210 infrun.c, stack.c, tui/tui-disasm.c, tui/tui-source.c,
9211 tui/tui-winsource.c, valops.c, varobj.c, findvar.c, macroscope.c,
9212 parse.c, regcache.h, sh64-tdep.c, tui/tui-hooks.c, tui/tui-win.c,
9213 tui/tui.c: Replace references to deprecated_selected_frame.
9215 2007-02-27 Fred Fish <fnf@specifix.com>
9217 * rs6000-tdep.c (skip_prologue): Recognize addi instructions that
9218 directly decrement the stack pointer, accumulate their operand into
9219 the stack offset, and mark the function as not being frameless.
9221 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
9223 * arch-utils.c (selected_byte_order): New.
9224 * arch-utils.h (selected_byte_order): New prototype.
9225 * remote-sim.c (gdbsim_open): Use selected_byte_order.
9227 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
9229 * symfile.c (place_section): Check SEC_ALLOC. Do not check VMA.
9230 (default_symfile_offsets): Check VMA here. Update section VMAs.
9232 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
9234 * remote.c (init_remote_state): Add special handling for placeholder
9237 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
9239 * Makefile.in (XMLFILES): Include $(TDEP_XML).
9240 (filenames_h): New variable.
9241 (clean): Clean up xml-builtin.c and stamp-xml.
9242 (arm-linux-nat.o): Update.
9243 * config/arm/linux.mh (TDEP_XML): Define.
9244 * arm-linux-nat.c (PTRACE_GETWMMXREGS, PTRACE_SETWMMXREGS): Define.
9245 (arm_linux_has_wmmx_registers): New.
9246 (GET_THREAD_ID): Fix typo.
9247 (IWMMXT_REGS_SIZE): Define.
9248 (fetch_wmmx_regs, store_wmmx_regs): New.
9249 (arm_linux_fetch_inferior_registers): Use fetch_wmmx_regs.
9250 (arm_linux_store_inferior_registers): Use store_wmmx_regs.
9251 (super_xfer_partial, arm_linux_xfer_partial): New.
9252 (_initialize_arm_linux_nat): Use them.
9253 * xml-support.c (fetch_xml_builtin): Move outside HAVE_LIBEXPAT.
9254 (xml_builtin_xfer_partial): New function.
9255 * xml-support.h (xml_builtin_xfer_partial): New prototype.
9256 * NEWS: Update mention of iWMMXt support.
9258 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
9260 * arm-tdep.c (arm_scan_prologue): Do not record FPA register saves
9261 if there are no FPA registers.
9262 (arm_dwarf_reg_to_regnum): New function.
9263 (arm_register_type, arm_register_name): Return minimal values for
9264 unsupported registers.
9265 (arm_register_sim_regno): Handle iWMMXt registers.
9266 (arm_gdbarch_init): Record missing FPA registers if indicated by
9267 a target description. Recognize iWMMXt registers. Only register
9268 "info float" for FPA. Use ARM_NUM_REGS. Register
9269 arm_dwarf_reg_to_regnum.
9270 * arm-tdep.h (enum gdb_regnum): Add ARM_NUM_REGS and iWMMXt
9272 (struct gdbarch_tdep): Add have_fpa_registers.
9273 * features/xscale-iwmmxt.xml: Update capitalization.
9274 * regformats/arm-with-iwmmxt.dat: Regenerated.
9276 2007-02-24 Kevin Buettner <kevinb@redhat.com>
9278 * NEWS (New targets): Add entry for the Toshiba Media Processor.
9280 2007-02-23 Kevin Buettner <kevinb@redhat.com>
9282 * MAINTAINERS (mep): New target.
9284 2007-02-23 Kevin Buettner <kevinb@redhat.com>
9286 From Jim Blandy, Dave Brolley, Kevin Buettner, Don Howard, and
9288 * Makefile.in (elf_mep_h, mep_desc_h, mep_opc_h): New variables.
9289 (mep-tdep.o): New rule.
9290 * configure.tgt (mep-*-*): New target.
9291 * mep-tdep.c: New file.
9292 * config/mep/mep.mt: New file.
9294 2007-02-22 Markus Deuling <deuling@de.ibm.com>
9296 * infrun.c (inferior_stop_reason, print_stop_reason): Remove
9297 BREAKPOINT_HIT and STOP_UNKNOWN.
9299 2007-02-22 Markus Deuling <deuling@de.ibm.com>
9301 * valops.c (value_ind): Fix unary * handling of TYPE_CODE_INT.
9303 2007-02-20 Joel Brobecker <brobecker@adacore.com>
9305 * gdb_expat.h (XMLCALL): Define if not already defined.
9307 2007-02-20 Andreas Schwab <schwab@suse.de>
9309 * Makefile.in (symfile.o): Update dependencies.
9311 2007-02-20 Daniel Jacobowitz <dan@codesourcery.com>
9313 * MAINTAINERS: Disable -Werror for cris simulator. Build
9314 sparc64-solaris2.10 instead of the broken sparc-elf.
9315 * solib-frv.c: Include "solib.h".
9316 * Makefile.in (solib-frv.o): Update.
9317 * mt-tdep.c (mt_gdbarch_init): Correct typo in floatformats patch.
9318 * xtensa-tdep.c (xtensa_regset_from_core_section): Cast size_t to int.
9319 (xtensa_frame_this_id, xtensa_frame_prev_register)
9320 (xtensa_push_dummy_call): Use %p.
9322 2007-02-16 Daniel Jacobowitz <dan@codesourcery.com>
9324 * avr-tdep.c, hppa-tdep.c, hppabsd-tdep.c, i386-tdep.c,
9325 ia64-tdep.c, m68k-tdep.c, mips-linux-tdep.c, ppcobsd-tdep.c,
9326 sparc-linux-tdep.c: Include "gdbtypes.h" instead of "floatformat.h".
9327 * Makefile.in (avr-tdep.o, hppabsd-tdep.o, hppa-tdep.o, i386-tdep.o)
9328 (ia64-tdep.o, m68k-tdep.o, mips-linux-tdep.o, ppcobsd-tdep.o)
9329 (sparc-linux-tdep.o): Update.
9331 2007-02-15 Maxim Grigoriev <maxim2405@gmail.com>
9333 * xtensa-tdep.h (xtensa_reg_mask_t): New.
9334 (xtensa_mask_t): Change mask field to be a separate array.
9335 * xtensa-tdep.c (extract_call_winsize, xtensa_pseudo_register_read)
9336 (xtensa_pseudo_register_write, xtensa_unwind_pc)
9337 (xtensa_unwind_dummy_id, xtensa_push_dummy_call)
9338 (xtensa_breakpoint_from_pc): Remove implicit type casting.
9339 * xtensa-config.c (mask0, mask1, mask2, mask3, mask4, mask5)
9340 (mask6, mask7, mask8, mask9, mask10, mask11, mask12, mask13)
9341 (mask14, mask15): Rename to
9342 (xtensa_mask0, xtensa_mask1, xtensa_mask2, xtensa_mask3)
9343 (xtensa_mask4, xtensa_mask5, xtensa_mask6, xtensa_mask7)
9344 (xtensa_mask8, xtensa_mask9, xtensa_mask10, xtensa_mask11)
9345 (xtensa_mask12, xtensa_mask13, xtensa_mask14, xtensa_mask15): this.
9346 (xtensa_submask0, xtensa_submask1, xtensa_submask2, xtensa_submask3)
9347 (xtensa_submask4, xtensa_submask5, xtensa_submask6, xtensa_submask7)
9348 (xtensa_submask8, xtensa_submask9, xtensa_submask10)
9349 (xtensa_submask11, xtensa_submask12, xtensa_submask13)
9350 (xtensa_submask14, xtensa_submask15): New.
9351 (rmap): Follow strict aliasing rules doing static initialization.
9353 2007-02-13 Daniel Jacobowitz <dan@codesourcery.com>
9355 * target-descriptions.c (tdesc_named_type): Move code_ptr and data_ptr
9356 handling from here...
9357 (tdesc_register_type): ...to here.
9358 * xml-tdesc.c (tdesc_start_reg): Allow code_ptr and data_ptr.
9359 * features/arm-core.xml: Use code_ptr and data_ptr.
9361 2007-02-13 Denis Pilat <denis.pilat@st.com>
9363 * varobj.h (enum varobj_update_error): New enum.
9364 * varobj.c (struct varobj_root): Add is_valid member.
9365 (varobj_get_type): Check for invalid varobj.
9366 (varobj_get_attributes): Likewise.
9367 (variable_editable):Likewise.
9368 (varobj_update): Likewise. Use varobj_update_error.
9369 (new_root_variable): Set root varobj as valid by default.
9370 (varobj_invalidate): New function.
9371 * symfile.c (clear_symtab_users): Use varobj_invalidate.
9372 * mi/mi-cmd-var.c (varobj_update_one): Change return type to void.
9373 Use varobj_update_error.
9375 2007-02-12 Pierre Muller <muller@ics.u-strasbg.fr>
9378 * dwarfread.c (set_cu_language): Recognize DW_LANG_Pascal83 as
9379 Pascal language marker.
9380 * dwarf2read.c (set_cu_language): Likewise.
9382 2007-02-12 Corinna Vinschen <vinschen@redhat.com>
9384 * win32-nat.c (win32_wait): Reset terminal pgrp to GDB.
9385 (do_initial_win32_stuff): Call terminal_init_inferior_with_pgrp
9386 instead of target_terminal_init since inferior_ptid isn't set yet.
9388 2007-02-10 Pedro Alves <pedro_alves@portugalmail.pt>
9390 * MAINTAINERS (Write After Approval): Add myself.
9392 2007-02-09 Fred Fish <fnf@specifix.com>
9394 Based on work by Apple Computer, Inc.
9395 * event-top.c (async_request_quit): Call quit() whenever either
9396 quit_flag is set or immediate_quit is set.
9398 2007-02-09 Gabriel Dos Reis <gdr@integrable-solutions.net>
9400 * ada-lang.c (remove_out_of_scope_renamings): Change third parameter's
9401 type to a pointer to const struct block.
9402 (ada_lookup_symbol_list): Don't cast away constness when calling
9403 remove_out_of_scope_renamings.
9405 2007-02-09 Gabriel Dos Reis <gdr@integrable-solutions.net>
9407 * linux-nat.c (linux_nat_find_memory_regions): Don't check the
9408 address of 'filename'; it is always non null.
9410 2007-02-09 Joel Brobecker <brobecker@adacore.com>
9412 * exec.c (add_to_section_table): Do not discard empty sections.
9414 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
9416 * features/Makefile, features/arm-with-iwmmxt.xml,
9417 features/gdbserver-regs.xsl, features/number-regs.xsl,
9418 features/sort-regs.xsl, features/xscale-iwmmxt.xml: New files.
9419 * regformats/arm-with-iwmmxt.dat: Generate.
9420 * NEWS: Mention iWMMXt.
9422 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
9424 * Makefile.in (arm-tdep.o, eval.o, target-descriptions.o)
9425 (xml-tdesc.o): Update.
9426 * xml-support.c: Add a comment.
9427 (gdb_xml_enums_boolean): New variable.
9428 (gdb_xml_parse_attr_enum): Use strcasecmp.
9429 * xml-support.h (gdb_xml_enums_boolean): Declare.
9430 * xml-tdesc.c (struct tdesc_parsing_data): Record current_feature,
9431 next_regnum, and current_union.
9432 (tdesc_start_feature, tdesc_start_reg, tdesc_start_union)
9433 (tdesc_end_union, tdesc_start_field, tdesc_start_vector)
9434 (field_attributes, union_children, reg_attributes, union_attributes)
9435 (vector_attributes, feature_attributes, feature_children): New.
9436 (target_children): Make static. Add <feature>.
9437 (tdesc_elements): Make static.
9438 * target-descriptions.c (struct tdesc_reg, tdesc_reg_p, type_p)
9439 (struct tdesc_feature, tdesc_feature_p): New types.
9440 (struct target_desc): Add features member.
9441 (struct tdesc_arch_data, tdesc_data): New.
9442 (target_find_description): Clarify error message. Warn about
9443 ignored register descriptions.
9444 (tdesc_has_registers, tdesc_find_feature, tdesc_feature_name)
9445 (tdesc_named_type, tdesc_data_init, tdesc_data_alloc)
9446 (tdesc_data_cleanup, tdesc_numbered_register)
9447 (tdesc_numbered_register_choices, tdesc_find_register)
9448 (tdesc_register_name, tdesc_register_type)
9449 (tdesc_remote_register_number, tdesc_register_reggroup_p)
9450 (set_tdesc_pseudo_register_name, set_tdesc_pseudo_register_type)
9451 (set_tdesc_pseudo_register_reggroup_p, tdesc_use_registers)
9452 (tdesc_free_reg, tdesc_create_reg, tdesc_free_feature)
9453 (tdesc_create_feature, tdesc_record_type): New.
9454 (free_target_description): Free features.
9455 (_initialize_target_descriptions): Initialize tdesc_data.
9456 * arch-utils.c (default_remote_register_number): New.
9457 * arch-utils.h (default_remote_register_number): New prototype.
9458 * target-descriptions.h (set_tdesc_pseudo_register_name)
9459 (set_tdesc_pseudo_register_type, set_tdesc_pseudo_register_reggroup_p)
9460 (tdesc_use_registers, tdesc_data_alloc, tdesc_data_cleanup)
9461 (tdesc_numbered_register, tdesc_numbered_register_choices)
9462 (tdesc_has_registers, tdesc_find_feature, tdesc_feature_name)
9463 (tdesc_named_type, tdesc_create_feature, tdesc_record_type)
9464 (tdesc_create_reg): Declare.
9465 * gdbarch.sh (remote_register_number): New entry.
9466 * gdbarch.c, gdbarch.h: Regenerate.
9467 * remote.c (init_remote_state): Use gdbarch_remote_register_number.
9468 * features/gdb-target.dtd: Add feature, reg, vector, union, and field.
9470 * arm-tdep.c (arm_register_aliases): New.
9471 (arm_register_name_strings): Rename to...
9472 (arm_register_names): ...this. Make const. Delete the old version.
9473 (current_option, arm_register_byte): Delete.
9474 (set_disassembly_style): Simplify. Do not adjust arm_register_names.
9475 (value_of_arm_user_reg): New.
9476 (arm_gdbarch_init): Verify any described registers. Call
9477 tdesc_use_registers. Don't use arm_register_byte. Create aliases
9478 for standard register names.
9479 (_initialize_arm_tdep): Do not adjust arm_register_names.
9480 * user-regs.c (struct user_reg): Add baton member.
9481 (append_user_reg, user_reg_add_builtin, user_regs_init)
9482 (user_reg_add, value_of_user_reg): Use a baton for user
9484 * std-regs.c: Update.
9485 * user-regs.h (user_reg_read_ftype, user_reg_add_builtin)
9486 (user_reg_add): Add baton argument.
9487 * NEWS: Mention target description register support.
9488 * features/arm-core.xml, features/arm-fpa.xml: New.
9489 * eval.c (evaluate_subexp_standard): Allow ptype $register
9490 when the program is not running.
9492 2007-02-09 Nick Roberts <nickrob@snap.net.nz>
9494 * mi/mi-cmd-var.c (mi_cmd_var_create): Add value field.
9496 2007-02-08 Thiago Jung Bauermann <bauerman@br.ibm.com>
9498 * rs6000-tdep.c (gdb_print_insn_powerpc): Set
9499 info->disassembler_options to "any".
9501 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
9503 * varobj.c (install_new_value): Only call value_get_print_value
9506 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
9508 Reported by timeless@gmail.com:
9509 * gdb/target.c (target_flash_erase): Do not return void value.
9510 (target_flash_done): Likewise.
9511 * gdb/cli/cli-cmds.c (source_command): Likewise.
9513 2007-02-08 Fred Fish <fnf@specifix.com>
9515 Based on work by Apple Computer, Inc.
9516 * event-top.c (handle_sigint): Set quit_flag.
9517 (async_request_quit): Don't set quit_flag. Avoid calling quit()
9518 if quit_flag has already been reset.
9520 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
9522 * ser-mingw.c (pipe_windows_close): Move variable initialization back
9525 2007-02-08 Fred Fish <fnf@specifix.com>
9527 * defs.h (request_quit): Remove declaration.
9528 * utils.c (request_quit): Remove definition.
9530 2007-02-08 Joel Brobecker <brobecker@gnat.com>
9531 Jan Kratochvil <jan.kratochvil@redhat.com>
9532 Daniel Jacobowitz <dan@codesourcery.com>
9534 * rs6000-tdep.c (bl_to_blrl_insn_p): New function.
9535 (skip_prologue): Allow bl->blrl used by PIC code.
9537 2007-02-08 Mark Kettenis <kettenis@gnu.org>
9538 Daniel Jacobowitz <dan@codesourcery.com>
9540 * cp-valprint.c (cp_print_value_fields, cp_print_value): Always
9541 initialize tmp_obstack.
9542 * p-valprint.c (pascal_object_print_value_fields)
9543 (pascal_object_print_value): Likewise.
9545 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
9547 * features/feature_to_c.sh: Use %s to avoid problems with nawk.
9549 2007-02-08 Mark Kettenis <kettenis@gnu.org>
9551 * sparcnbsd-tdep.c: Include "gdbtypes.h" instead of "floatformat.h".
9552 * Makefile.in (sparcnbsd-tdep.o): Update dependencies.
9554 2007-02-07 Daniel Jacobowitz <dan@codesourcery.com>
9556 * xml-tdesc.c (struct tdesc_xml_cache, tdesc_xml_cache_s)
9558 (tdesc_parse_xml): Cache expanded descriptions.
9560 2007-02-07 Daniel Jacobowitz <dan@codesourcery.com>
9562 * Makefile.in (XMLFILES): New.
9563 (COMMON_OBS): Add xml-builtin.o.
9564 (xml-builtin.c, stamp-xml): New rules.
9565 (xml-tdesc.o): Update.
9566 * features/feature_to_c.sh: New file.
9567 * xml-support.c (MAX_XINCLUDE_DEPTH): Define.
9568 (struct gdb_xml_parser): Add dtd_name and is_xinclude.
9569 (gdb_xml_start_element): Initialize scope after possibly reallocating
9570 scopes. Move cleanup later. Handle the XInclude description
9572 (gdb_xml_end_element): Only parse the body if there is a current element.
9573 Call XML_DefaultCurrent if there is no element.
9574 (gdb_xml_fetch_external_entity, gdb_xml_use_dtd): New.
9575 (struct xinclude_parsing_data, xinclude_start_include)
9576 (xinclude_end_include, xml_xinclude_default)
9577 (xml_xinclude_start_doctype, xml_xinclude_end_doctype)
9578 (xml_xinclude_xml_decl, xml_xinclude_cleanup, xinclude_attributes)
9579 (xinclude_elements, xml_process_xincludes, fetch_xml_builtin): New.
9580 * xml-support.h (xml_fetch_another, xml_process_xincludes)
9581 (fetch_xml_builtin, xml_builtin, gdb_xml_use_dtd): New declarations.
9582 * xml-tdesc.c (tdesc_parse_xml): Add fetcher_baton argument. Expand
9583 XInclude directives. Use the compiled in DTD.
9584 (fetch_xml_from_file): Add baton argument. Treat it as a containing
9585 directory name. Do not warn here.
9586 (file_read_description_xml): Update call. Warn here instead. Pass
9588 (fetch_available_features_from_target): New.
9589 (target_read_description_xml): Use it.
9590 * features/gdb-target.dtd: Add copyright notice. Use xinclude.dtd
9592 * features/xinclude.dtd: New file.
9594 2007-02-05 Daniel Jacobowitz <dan@codesourcery.com>
9596 * linux-thread-db.c (check_for_thread_db): Return early if we have
9597 no libthread_db support.
9599 2007-02-05 Daniel Jacobowitz <dan@codesourcery.com>
9601 * mi/mi-parse.h: Include <sys/time.h>.
9603 2007-02-05 Nick Roberts <nickrob@snap.net.nz>
9605 * mi/mi-cmd-stack.c (list_args_or_locals): Use common_val_print
9606 instead of print_variable_value to print values.
9608 2007-02-03 Nick Roberts <nickrob@snap.net.nz>
9610 * mi/mi-main.c: Numerous formatting changes.
9611 (mi_cmd_data_write_register_values): Replace clause inadvertantly
9612 removed in my previous change.
9614 2007-02-03 Eli Zaretskii <eliz@gnu.org>
9616 * mi/mi-main.c (mi_load_progress, timestamp, print_diff_now):
9617 Use 1000000L instead of 1000000.
9619 2007-02-03 Nick Roberts <nickrob@snap.net.nz>
9621 Based on work by Apple Computer, Inc.
9623 * configure.ac: Test for sys/resource.h and getrusage.
9624 * configure, config.in: Regenerate.
9626 * mi/mi-main.c: Include <sys/resource.h> if present.
9627 (rusage): Declare if HAVE_GETRUSAGE.
9628 (current_command_ts, do_timings): New static variables.
9629 (timestamp, print_diff_now, print_diff, timeval_diff):
9630 New static timing functions.
9631 (mi_cmd_enable_timings): New function for new MI command.
9632 (captured_mi_execute_command, mi_execute_async_cli_command):
9633 Call timing functions.
9635 * mi/mi-cmds.c (mi_cmds): Add entry for new MI command
9638 * mi/mi-cmds.h (mi_cmd_enable_timings): New extern.
9640 * mi/mi-parse.h: (mi_timestamp): New structure.
9641 (mi_parse): Add mi_timestamp* member.
9643 2007-02-02 Denis Pilat <denis.pilat@st.com>
9645 * thread.c (make_cleanup_restore_current_thread): New function.
9646 (info_threads_command): Use of make_cleanup_restore_current_thread
9647 to restore the current thread and the selected frame.
9648 (restore_selected_frame): New function.
9649 (struct current_thread_cleanup): Add frame_id field.
9650 (do_restore_current_thread_cleanup): Add restoring of the selected
9652 (make_cleanup_restore_current_thread): Likewise.
9653 (thread_apply_all_command): backup the selected frame while
9654 entering the function and restore it at exit.
9655 (thread_apply_command): Likewise.
9657 2007-02-02 Denis Pilat <denis.pilat@st.com>
9659 * MAINTAINERS (Write After Approval): Add myself to the list.
9661 2007-02-01 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
9663 * gdb/remote-m32r.sdi.c (m32r_fetch_register): Change PWD mask.
9664 (m32r_store_register): Ditto.
9666 2007-01-30 Vladimir Prus <vladimir@codesourcery.com>
9668 * ser-mingw.c (pipe_windows_open)
9669 (pipe_windows_read, pipe_windows_write): Declare
9670 variables at the top of the function.
9672 2007-01-29 Daniel Jacobowitz <dan@codesourcery.com>
9674 * doublest.c (floatformat_from_length): Use the right element from
9675 gdbarch floatformats.
9676 (floatformat_from_type, extract_typed_floating)
9677 (store_typed_floating): Likewise.
9678 * doublest.h: Remove declarations for undefined floatformat arrays.
9679 * gdbarch.sh (float_format, double_format, long_double_format): Change
9681 (pformat): Update for pairs.
9682 * gdbarch.c, gdbarch.h: Regenerated.
9683 * gdbtypes.c (floatformats_ieee_single, floatformats_ieee_double)
9684 (floatformats_ieee_double_littlebyte_bigword)
9685 (floatformats_i387_ext, floatformats_m68881_ext, floatformats_arm_ext)
9686 (floatformats_ia64_spill, floatformats_ia64_quad, floatformats_vax_f)
9687 (floatformats_vax_d): New variables.
9688 (builtin_type_ieee_single, builtin_type_ieee_double)
9689 (builtin_type_arm_ext, builtin_type_ia64_spill)
9690 (builtin_type_ia64_quad): Replace arrays with individual types.
9691 (builtin_type_ieee_single_big, builtin_type_ieee_single_little)
9692 (builtin_type_ieee_double_big, builtin_type_ieee_double_little)
9693 (builtin_type_ieee_double_littlebyte_bigword, builtin_type_i960_ext)
9694 (builtin_type_m88110_ext, builtin_type_m88110_harris_ext)
9695 (builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword)
9696 (builtin_type_ia64_spill_big, builtin_type_ia64_spill_little)
9697 (builtin_type_ia64_quad_big, builtin_type_ia64_quad_little): Delete
9698 unused and endian-specific types.
9699 (recursive_dump_type): Update for floatformat pairs.
9700 (build_flt): Move higher. Handle bit == -1. Take a floatformat pair.
9701 (build_gdbtypes): Use build_flt.
9702 (_initialize_gdbtypes): Update set of initialized types.
9703 * gdbtypes.h: Update declarations to match gdbtypes.c.
9704 (struct main_type): Store a pointer to two floatformats.
9705 * arch-utils.c (default_float_format, default_double_format): Delete.
9706 * arch-utils.h (default_float_format, default_double_format): Delete.
9708 * arm-tdep.c, avr-tdep.c, hppa-tdep.c, hppabsd-tdep.c, i386-tdep.c,
9709 ia64-tdep.c, iq2000-tdep.c, m68k-tdep.c, m88k-tdep.c,
9710 mips-linux-tdep.c, mips-tdep.c, mt-tdep.c, ppcobsd-tdep.c,
9711 sparc-linux-tdep.c, sparc-tdep.c, sparcnbsd-tdep.c, spu-tdep.c,
9712 vax-tdep.c, alpha-tdep.c, ppc-sysv-tdep.c: Update.
9714 2007-01-29 Joel Brobecker <brobecker@adacore.com>
9716 * target.c (maintenance_print_target_stack): New function.
9717 (initialize_targets): Add new "maintenance print target-stack"
9720 2007-01-28 Mark Kettenis <kettenis@gnu.org>
9722 * dwarf2read.c (new_symbol): Handle DW_AT_decl_file being zero.
9724 2007-01-27 Daniel Jacobowitz <dan@codesourcery.com>
9726 * dwarf2loc.h (struct dwarf2_locexpr_baton): Change size to a long.
9727 (struct dwarf2_loclist_baton): Likewise.
9729 2007-01-27 Eli Zaretskii <eliz@gnu.org>
9731 * cli/cli-script.c: Include breakpoint.h.
9732 (build_command_line): Require arguments only for if and while
9734 (get_command_line, execute_user_command, execute_control_command):
9735 Fix wording of warning messages.
9736 (print_command_lines): Print breakpoint commands.
9737 (execute_control_command): Call commands_from_control_command to
9738 handle the `commands' command inside a body of a flow-control
9740 (read_next_line): Recognize the `commands' command and build a
9741 command line structure for it.
9742 (recurse_read_control_structure, read_command_lines): Handle
9743 `commands' similarly to `if' and `while'.
9745 * breakpoint.c (get_number_trailer): Document the special meaning
9746 of NULL as the first argument PP.
9747 (commands_from_control_command): New function.
9749 * breakpoint.h (commands_from_control_command): Add prototype.
9751 * defs.h (commands_control): New enumerated value for enum
9752 command_control_type.
9754 2007-01-26 Joel Brobecker <brobecker@adacore.com>
9756 * ada-lang.c (ada_exception_breakpoint_ops): Fix typo in function name.
9757 (ada_exception_sal): Update accordingly.
9759 2007-01-26 Jan Kratochvil <jan.kratochvil@redhat.com>
9761 * c-valprint.c (c_val_print): Require strings to be of no-signed CHARs.
9762 * NEWS: Describe CHAR array vs. string identifcation rules.
9764 2007-01-25 Paul Brook <paul@codesourcery.com>
9766 * arm-tdep.c (arm_get_next_pc): Fix bitfield off-by-one error.
9768 2007-01-24 Jim Blandy <jimb@codesourcery.com>
9770 * dwarf2loc.c (dwarf2_evaluate_loc_desc): When the location
9771 expression is empty, bother to return the 'optimized out' value we
9772 construct. (Thanks to Carl Burch.)
9774 2007-01-24 Vladimir Prus <vladimir@codesourcery.com>
9776 * varobj.c (c_value_of_root, c_value_of_child)
9777 (cplus_describe_child): Don't call release_value.
9779 2007-01-24 Thiemo Seufer <ths@mips.com>
9781 * mips-linux-tdep.c (mips_linux_n64_rt_sigframe): Fix struct
9784 2007-01-24 Vladimir Prus <vladimir@codesourcery.com>
9786 Refactor getting children name, value and type access
9788 * varobj.c (get_type_deref): Remove.
9789 (adjust_value_for_child_access): New.
9790 (c_number_of_children): Use the above.
9791 (c_describe_child): Likewise.
9792 (enum accessibility): New.
9793 (match_accessibility): New function.
9794 (cplus_describe_child): New function.
9795 (cplus_name_of_child, cplus_value_of_child)
9796 (cplus_type_of_child): Reimplement in terms
9797 of cplus_describe_child.
9798 (cplus_number_of_children): Use
9799 adjust_value_for_child_access.
9801 2007-01-24 Vladimir Prus <vladimir@codesourcery.com>
9803 Fix computation of the 'editable' attribute and
9804 value changeability for for references.
9805 * varobj.c (get_value_type): New function.
9806 (c_variable_editable): Use get_value_type.
9807 (varobj_value_is_changeable): Likewise.
9809 2007-01-24 Joel Brobecker <brobecker@adacore.com>
9811 * source.c (find_and_open_source): Try rewriting the source
9812 path inside filename if dirname is NULL.
9814 2007-01-24 Joel Brobecker <brobecker@adacore.com>
9816 * dwarf2read.c (add_partial_symbol): Create an extra partial
9817 symbol in the VAR_DOMAIN for Ada structures, unions or enums.
9818 (new_symbol): Likewise for symbols.
9820 2007-01-24 Nick Roberts <nickrob@snap.net.nz>
9822 * mi/mi-main.c (mi_cmd_execute): Call free_all_values.
9824 2007-01-23 Vladimir Prus <vladimir@codesourcery.com>
9826 * value.c (value_primitive_field): Copy the full 'location'
9827 contents, instead of assuming that copying ADDRESS will
9828 bring over everything in the union. Remove obsolete comment.
9830 2007-01-23 Masaki Muranaka <monaka@monami-software.com>
9832 * m32c-tdep.c (make_regs, m32c_analyze_prologue)
9833 (m32c_skip_trampoline_code, m32c_m16c_address_to_pointer)
9834 (m32c_m16c_pointer_to_address): Separate code from declarations.
9836 2007-01-23 Nick Hudson <nick.hudson@dsl.pipex.com>
9838 * target.c (update_current_target): Correct typo.
9840 2007-01-22 Masaki Muranaka <monaka@monami-software.com>
9842 * xstormy16-tdep.c (xstormy16_skip_prologue): Separate code from a
9845 2007-01-11 Andrew Cagney <cagney@redhat.com>
9846 Daniel Jacobowitz <dan@codesourcery.com>
9847 Jan Kratochvil <jan.kratochvil@redhat.com>
9849 * dwarf2-frame.c (execute_cfa_program): New support of
9850 `DW_CFA_GNU_negative_offset_extended'.
9852 2007-01-21 Daniel Jacobowitz <dan@codesourcery.com>
9854 * NEWS: Mention flash support for "load" and new remote packets.
9856 2007-01-21 Markus Deuling <deuling@de.ibm.com>
9858 * breakpoint.c (delete_command): Skip redundant loop iterations.
9860 2007-01-21 Daniel Jacobowitz <dan@codesourcery.com>
9862 * gdbarch.sh (register_type): Update comment.
9863 * gdbarch.h: Regenerated.
9864 * arch-utils.c (generic_register_size): Call register_type.
9865 * ia64-tdep.c (ia64_extract_return_value): Likewise.
9866 * m32c-tdep.c (check_for_saved): Likewise.
9867 * mips-tdep.c (mips_print_register, print_gp_register_row)
9868 (mips_print_registers_info): Likewise.
9869 * sh-tdep.c (sh_pseudo_register_read, sh_pseudo_register_write):
9871 * sh64-tdep.c (sh64_pseudo_register_read, sh64_pseudo_register_write)
9872 (sh64_do_register, sh64_print_register)
9873 (sh64_media_print_registers_info): Likewise.
9874 * tui/tui-regs.c (tui_register_format): Likewise.
9876 2007-01-21 Daniel Jacobowitz <dan@codesourcery.com>
9878 * objfiles.h (ALL_PRIMARY_SYMTABS): Define.
9880 * ada-lang.c (symtab_for_sym, ada_lookup_symbol_list)
9881 (ada_lookup_symbol): Use ALL_PRIMARY_SYMTABS.
9882 * cp-support.c (make_symbol_overload_list_qualified): Likewise.
9883 * symtab.c (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
9884 (basic_lookup_transparent_type, find_pc_sect_symtab, search_symbols)
9885 (make_symbol_completion_list): Likewise.
9887 2007-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
9888 Daniel Jacobowitz <dan@codesourcery.com>
9890 * buildsym.c (end_symtab): Use preallocated symtab if available.
9891 Fill in SYMBOL_SYMTAB.
9892 * buildsym.h (struct subfile): Add symtab member.
9893 * dwarf2read.c (struct dwarf2_cu): Add line_header.
9894 (struct file_entry): Add symtab.
9895 (free_cu_line_header): New function.
9896 (read_file_scope): Use it. Save line_header in the cu. Process
9898 (add_file_name): Initialize new symtab member.
9899 (dwarf_decode_lines): Create symtabs for included files.
9900 (new_symbol): Set SYMBOL_SYMTAB.
9901 * symtab.c (lookup_symbol): Use SYMBOL_SYMTAB.
9902 (search_symbols): Likewise.
9903 * symtab.h (struct symbol): Add symtab member.
9904 (SYMBOL_SYMTAB): Define.
9906 2007-01-20 Daniel Jacobowitz <dan@codesourcery.com>
9908 * symfile.c (allocate_symtab): Remove INIT_EXTRA_SYMTAB_INFO.
9910 2007-01-20 Daniel Jacobowitz <dan@codesourcery.com>
9912 * arch-utils.c (show_endian): Correct reversed condition.
9914 2007-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
9916 * MAINTAINERS (Write After Approval): Add myself.
9918 2007-01-16 Daniel Jacobowitz <dan@codesourcery.com>
9919 Vladimir Prus <vladimir@codesourcery.com>
9921 Fix 'selected frame' varobjs.
9922 * varobj.c (struct varobj): Remove the error field.
9923 (varobj_set_value): Don't check var->error.
9924 (install_new_value): Don't set var->error.
9925 (varobj_update): Always pass the new value
9926 of the root via install_new_value.
9927 (create_child): Don't set error field.
9928 (new_variable): Likewise.
9929 (c_value_of_root): Always reevaluate the value
9930 of selected frame varobjs in the selected frame.
9931 Don't call reinit_frame_cache.
9933 2007-01-15 Joel Brobecker <brobecker@adacore.com>
9935 * source.c (_initialize_source): Improve the help text of
9936 the substitute-path commands.
9938 2007-01-14 Mark Kettenis <kettenis@gnu.org>
9940 * frv-tdep.c (frv_gdbarch_init, frv_register_name)
9941 (frv_breakpoint_from_pc, frv_gdbarch_adjust_breakpoint_address)
9942 (frv_skip_prologue): Remove prototypes.
9943 (frv_adjust_breakpoint_address): Renamed from
9944 frv_gdbarch_adjust_breakpoint_address.
9945 (frv_gdbarch_init): Adjust.
9947 2007-01-13 Mark Kettenis <kettenis@gnu.org>
9949 * gdbarch.sh (deprecated_extract_return_value)
9950 (deprecated_store_return_value): Remove.
9951 (extract_return_value, store_return_value): Remove default values.
9952 * gdbarch.c, gdbarch.h: Regenerate.
9953 * arch-utils.c, arch-utils.h (legacy_extract_return_value)
9954 (legacy_store_return_value): Remove.
9955 * regcache.c, regcache.h (deprecated_grub_regcache_for_registers):
9958 * mi/mi-main.c: Remove obsolete comment.
9960 * regcache.c, regcache.h (deprecated_register_bytes)
9961 (deprecated_read_register_bytes)
9962 (deprecated_write_register_bytes): Remove.
9964 * frame.c (get_frame_register_bytes, put_frame_register_bytes):
9965 Don't forget to move destination pointer.
9967 2007-01-01 Mark Kettenis <kettenis@gnu.org>
9969 * config/i386/nm-i386gnu.h (CHILD_PREPARE_TO_STORE): Remove.
9971 2007-01-11 Ulrich Weigand <uweigand@de.ibm.com>
9973 * spu-tdep.c (spu_analyze_prologue): Fix erroneous backtrace
9974 past entry function with recent newlib.
9976 2007-01-11 Vladimir Prus <vladimir@codesourcery.com>
9978 * gdb.texinfo (GDB/MI Variable Objects): Improve the
9979 introduction. Specify -var-update more exactly.
9981 2007-01-11 Daniel Jacobowitz <dan@codesourcery.com>
9983 * frame.c (get_prev_frame_1): Check PC_REGNUM before using it.
9985 2007-01-10 Jim Blandy <jimb@codesourcery.com>
9987 * MAINTAINERS (Global Maintainers): Ulrich Weigand has accepted
9988 the Global Maintainers' invitation to be a global maintainer.
9990 2007-01-10 Daniel Jacobowitz <dan@codesourcery.com>
9992 * infrun.c (singlestep_pc): New variable.
9993 (resume): Set singlestep_pc.
9994 (context_switch): Add a debugging message. Flush the frame cache.
9995 (handle_inferior_event): Add debugging messages. Handle thread
9996 hops when a software single step has completed. Let context_switch
9997 handle flushing the frame cache.
9999 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
10001 * NEWS: Mention target descriptions, "set tdesc filename",
10002 "unset tdesc filename", "show tdesc filename", and
10003 qXfer:features:read.
10004 * arch-utils.c (choose_architecture_for_target): New function.
10005 (gdbarch_info_fill): Call it.
10006 * target-descriptions.c (struct property): Make members non-const.
10007 (struct target_desc): Add arch member.
10008 (target_description_filename): New variable.
10009 (target_find_description): Try via XML first.
10010 (tdesc_architecture): New.
10011 (free_target_description, make_cleanup_free_target_description): New.
10012 (set_tdesc_property): Call xstrdup.
10013 (set_tdesc_architecture, tdesc_set_cmdlist, tdesc_show_cmdlist)
10014 (tdesc_unset_cmdlist, unset_tdesc_cmd, unset_tdesc_filename_cmd)
10015 (set_tdesc_cmd, show_tdesc_cmd, set_tdesc_filename_cmd)
10016 (show_tdesc_filename_cmd, _initialize_target_descriptions): New.
10017 * target-descriptions.h (tdesc_architecture)
10018 (make_cleanup_free_target_description, set_tdesc_architecture): New
10020 * Makefile.in (SFILES): Add xml-tdesc.c.
10021 (COMMON_OBS): Add xml-tdesc.o.
10022 (target-descriptions.o): Update.
10023 (xml-tdesc.o): New rule.
10024 * xml-tdesc.c, xml-tdesc.h: New files.
10025 * remote.c (PACKET_qXfer_features): New enum.
10026 (remote_protocol_features): Add qXfer:features:read.
10027 (remote_xfer_partial): Handle TARGET_OBJECT_AVAILABLE_FEATURES.
10028 (_initialize_remote): Register qXfer:features:read.
10029 * target.h (enum target_object): Add TARGET_OBJECT_AVAILABLE_FEATURES.
10030 * features/gdb-target.dtd: New file.
10032 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
10034 * copyright.sh: Clarify error.
10036 2007-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
10038 * symtab.c (matching_bfd_sections): Fix VMA matching for
10041 2007-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
10043 * minsyms.c (lookup_minimal_symbol_by_pc_section): Handle
10046 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
10048 Updated copyright notices for most files.
10050 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
10052 * copyright.sh (prunes): Add step-line.inp and step-line.c.
10054 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
10056 * configure.ac (DEBUGDIR_RELOCATABLE): Define for debugdir inside
10058 (TARGET_SYSTEM_ROOT_RELOCATABLE): Allow for exec_prefix being
10060 * configure, config.in: Regenerate.
10061 * defs.h (debug_file_directory): Declare.
10062 * main.c (captured_main): Canonicalize gdb_sysroot. Assume
10063 TARGET_SYSTEM_ROOT is defined. Initialize debug_file_directory and
10064 relocate it if DEBUGDIR_RELOCATABLE.
10065 * symfile.c (debug_file_directory): Make non-static.
10066 (find_separate_debug_file): Look for debug info for SYSROOT/PATH
10067 in DEBUGDIR/PATH if DEBUGDIR is inside SYSROOT.
10068 (_initialize_symfile): Don't initialize debug_file_directory here.
10070 2007-01-09 Jim Blandy <jimb@codesourcery.com>
10072 * score-tdep.c (score_push_dummy_call): Don't mix declarations and
10075 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
10077 * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Use
10078 frame_unwind_register to recurse.
10079 * alpha-tdep.c (alpha_sigtramp_frame_prev_register): Likewise.
10080 (alpha_heuristic_frame_prev_register): Likewise.
10081 * h8300-tdep.c (h8300_frame_prev_register): Likewise.
10082 * m32c-tdep.c (m32c_prev_register): Likewise.
10083 * frame.c (frame_register_unwind_location): Remove FIXME.
10085 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
10086 Eli Zaretskii <eliz@gnu.org>
10088 * copyright.sh: New file.
10090 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
10092 * configure.ac: Check for XML_StopParser.
10093 * xml-support.c (gdb_xml_body_text): Check for an error.
10094 (gdb_xml_start_element_wrapper): Conditionalize call to XML_StopParser.
10095 (gdb_xml_end_element_wrapper): Likewise.
10096 * config.in, configure: Regenerated.
10098 2007-01-08 Daniel Jacobowitz <dan@codesourcery.com>
10100 * varobj.c (install_new_value): Always update print_value.
10101 (value_get_print_value): Immediately return NULL for missing
10104 2007-01-08 Jim Blandy <jimb@codesourcery.com>
10106 * configure.ac: Tighten pattern for extracting value of
10107 DEPRECATED_TM_FILE from the target makefile fragment.
10108 * configure: Regenerated.
10110 2007-01-08 Daniel Jacobowitz <dan@codesourcery.com>
10112 * linux-nat.c (struct simple_pid_list): Add status.
10113 (add_to_pid_list): Record the PID's status.
10114 (linux_record_stopped_pid): Likewise. Make static.
10115 (pull_pid_from_list): Return the saved status.
10116 (linux_nat_handle_extended): Deleted.
10117 (linux_handle_extended_wait): Combine with linux_nat_handle_extended.
10118 Make static. Handle non-SIGSTOP for a new thread's first signal.
10119 (flush_callback): Handle unexpected pending signals.
10120 (linux_nat_wait): Update calls to changed functions.
10121 * linux-nat.h (linux_record_stopped_pid, linux_handle_extended_wait):
10122 Remove prototypes for newly static functions.
10124 2007-01-08 Ulrich Weigand <uweigand@de.ibm.com>
10126 * gdbarch.sh (value_from_register): New gdbarch function.
10127 * gdbarch.c, gdbarch.h: Regenerate.
10128 * findvar.c (default_value_from_register): New function.
10129 (value_from_register): Use gdbarch_value_from_register.
10130 * value.h (default_value_from_register): Declare.
10131 * spu-tdep.c (spu_convert_register_p, spu_register_to_value,
10132 spu_value_to_register): Remove.
10133 (spu_value_from_register): New function.
10134 (spu_gdbarch_init): Do not call set_gdbarch_convert_register_p,
10135 set_gdbarch_register_to_value, set_gdbarch_value_to_register.
10136 Call set_gdbarch_value_from_register.
10137 * s390-tdep.c (s390_convert_register_p, s390_register_to_value,
10138 s390_value_to_register): Remove.
10139 (s390_value_from_register): New function.
10140 (s390_gdbarch_init): Do not call set_gdbarch_convert_register_p,
10141 set_gdbarch_register_to_value, set_gdbarch_value_to_register.
10142 Call set_gdbarch_value_from_register.
10144 2007-01-08 Daniel Jacobowitz <dan@codesourcery.com>
10146 * NEWS: Add "set sysroot" and "show sysroot".
10147 * solib.c (solib_absolute_prefix): Delete. Replace
10148 all uses with gdb_sysroot.
10149 (_initialize_solib): Add "set sysroot" and "show sysroot".
10150 Make "solib-absolute-prefix" an alias to it.
10152 2007-01-08 Ulrich Weigand <uweigand@de.ibm.com>
10154 * frame.c (get_frame_register_bytes): New function.
10155 (put_frame_register_bytes): Likewise.
10156 * frame.h (get_frame_register_bytes): Declare.
10157 (put_frame_register_bytes): Likewise.
10158 * findvar.c (value_from_register): Always construct lval_register
10159 values. Use get_frame_register_bytes.
10160 * valops.c (value_assign): Use get_frame_register_bytes and
10161 put_frame_register_bytes.
10163 2007-01-08 Jim Blandy <jimb@codesourcery.com>
10165 * MAINTAINERS: Update Stan Shebs' email address.
10167 2007-01-07 Joel Brobecker <brobecker@adacore.com>
10169 * ada-lang.c (is_known_support_routine): Improve the implementation.
10171 2007-01-06 Joel Brobecker <brobecker@adacore.com>
10173 * ada-lang.c: Add include of source.h.
10174 (is_known_support_routine): Improve the check verifying that the file
10175 associated to this frame exists.
10176 * Makefile.in (ada-lang.o): Add dependency on source.h.
10178 2007-01-07 Jim Blandy <jimb@codesourcery.com>
10180 * ax-general.c (ax_const_l): Select proper opcode for the given
10183 2007-01-05 Vladimir Prus <vladimir@codesourcery.com>
10185 * varobj.c (c_value_of_root): Don't select frame if variable
10186 object is out of scope.
10188 2007-01-05 Nick Roberts <nickrob@snap.net.nz>
10190 * varobj.c (struct varobj): New member print_value.
10191 (install_new_value): Compare last printed value with current one
10192 instead of contents.
10193 (new_variable): Initialize var->print_value to NULL.
10194 (free_variable): Free var->print_value.
10195 (value_get_print_value): New function derived from
10196 c_value_of_variable.
10197 (c_value_of_variable): Use value_get_print_value.
10199 2007-01-05 Joel Brobecker <brobecker@adacore.com>
10201 * i386-tdep.c (i386_analyze_stack_align): Add comment.
10203 2007-01-05 Joel Brobecker <brobecker@adacore.com>
10205 * NEWS: Add entries for new catch commands.
10207 2007-01-05 Joel Brobecker <brobecker@adacore.com>
10209 * dwarf2read.c (partial_die_info): Add field has_byte_size.
10210 (add_partial_symbol): Correct identification of external references.
10211 (process_structure_scope): Likewise.
10212 (read_partial_die): Handle DW_AT_byte_size attribute.
10214 2007-01-05 Daniel Jacobowitz <dan@codesourcery.com>
10216 * xml-support.c (gdb_xml_end_element): Remove wrong backslashes.
10218 2007-01-05 Nick Roberts <nickrob@snap.net.nz>
10220 * varobj.c (get_type_deref): Fix variable objects for references to
10223 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
10225 * symtab.c (find_pc_sect_psymtab): Add comments. Handle psymtabs
10228 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
10230 * memory-map.c (struct_memory_map_parsing_data): Remove most
10231 members. Make property_name an array.
10232 (free_memory_map_parsing_data, memory_map_start_element)
10233 (memory_map_end_element, memory_map_character_data): Delete.
10234 (memory_map_start_memory, memory_map_end_memory)
10235 (memory_map_start_property, memory_map_end_property): New functions.
10236 (property_attributes, memory_children, memory_type_enum)
10237 (memory_attributes, memory_map_children, memory_map_elements): New.
10238 (parse_memory_map): Rewrite.
10239 * xml-support.c (debug_xml): New.
10240 (xml_get_required_attribute, xml_get_integer_attribute)
10241 (xml_get_enum_value, free_xml_parser, make_cleanup_free_xml_parser):
10243 (struct scope_level, struct gdb_xml_parser, gdb_xml_body_text)
10244 (gdb_xml_debug, gdb_xml_error, gdb_xml_values_cleanup)
10245 (gdb_xml_start_element, gdb_xml_start_element_wrapper)
10246 (gdb_xml_end_element, gdb_xml_end_element_wrapper, gdb_xml_cleanup)
10247 (gdb_xml_create_parser_and_cleanup, gdb_xml_parse)
10248 (gdb_xml_parse_ulongest, gdb_xml_parse_attr_ulongest)
10249 (gdb_xml_parse_attr_enum, show_debug_xml, _initialize_xml_support):
10251 * xml-support.h (struct gdb_xml_value, gdb_xml_attribute_handler)
10252 (enum gdb_xml_attribute_flag, struct gdb_xml_attribute)
10253 (enum gdb_xml_element_flag, struct gdb_xml_element)
10254 (gdb_xml_element_start_handler, gdb_xml_element_end_handler)
10255 (struct gdb_xml_enum): New.
10256 (gdb_xml_create_parser_and_cleanup, gdb_xml_parse, gdb_xml_debug)
10257 (gdb_xml_error, gdb_xml_parse_attr_ulongest)
10258 (gdb_xml_parse_attr_enum, gdb_xml_parse_ulongest): New prototypes.
10259 (xml_get_required_attribute, xml_get_integer_attribute)
10260 (xml_get_enum_value, make_cleanup_free_xml_parser): Delete prototypes.
10261 * Makefile.in (xml_support_h, xml-support.o): Update.
10263 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
10265 * Makefile.in (eval.o): Update dependencies.
10266 * eval.c: Include "ui-out.h" and "exceptions.h".
10267 (evaluate_subexp_standard): Use TRY_CATCH around value_of_variable.
10268 Use value_zero if an error occurs when avoiding side effects.
10269 * varobj.c (c_value_of_root): Initialize new_val.
10271 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
10273 * varobj.c (varobj_list_children): Stop if the number of children is
10275 (c_number_of_children):
10277 2007-01-04 Mark Kettenis <kettenis@gnu.org>
10279 * alpha-tdep.c (alpha_register_name): Use ARRAY_SIZE.
10280 (alpha_read_insn, alpha_skip_prologue, alpha_heuristic_proc_start)
10281 (alpha_heuristic_frame_unwind_cache, alpha_next_pc)
10282 (alpha_gdbarch_init): Use ALPHA_INSN_SIZE, ALPHA_REGISTER_SIZE and
10283 sizeof, instead of hardcoded constants.
10285 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
10287 * CONTRIBUTE: Use sourceware.org.
10289 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
10291 * buildsym.c (start_subfile): Handle producer.
10292 (record_producer): New function.
10293 * buildsym.h (struct subfile): Include producer.
10294 (record_producer): New prototype.
10295 * dwarf2-frame.c (struct dwarf2_cie): Add version and augmentation.
10296 (struct dwarf2_frame_state): Add armcc_cfa_offsets_sf and
10297 armcc_cfa_offsets_reversed.
10298 (execute_cfa_program): Handle armcc_cfa_offsets_sf.
10299 (dwarf2_frame_find_quirks): New function.
10300 (dwarf2_frame_cache): Call it. Handle armcc_cfa_offsets_reversed.
10301 (decode_frame_entry_1): Record the CIE version. Record the
10302 augmentation. Skip armcc augmentations.
10303 * dwarf2read.c (read_file_scope): Save the producer.
10304 * symtab.h (struct symtab): Rename unused version member to
10307 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
10309 * configure.ac (build_warnings): Use -Wall and
10310 -Wdeclaration-after-statement.
10311 * configure: Regenerated.
10313 2007-01-04 Vladimir Prus <vladimir@codesourcery.com>
10315 Simplify access to variours properties of child
10316 variable objects in C.
10317 * varobj.c (value_struct_element_index): New function.
10318 (c_describe_child): New function.
10319 (c_name_of_child, c_value_of_child)
10320 (c_type_of_child): Rewrite to use c_describe_child.
10322 2007-01-04 Vladimir Prus <vladimir@codesourcery.com>
10325 * varobj.c: Include "vec.h".
10326 (varobj_p): New typedef, declare vector of those.
10327 (struct varobj): Use vector for the 'children' member.
10328 (child_exists): Remove.
10329 (save_child_in_parent): Remove.
10330 (remove_child_from_parent): Remove.
10331 (struct varobj_child): Remove.
10332 (struct vstack): Remove.
10333 (vpush, vpop): Remove.
10334 (varobj_list_children): Adjust to work work vector.
10335 (varobj_update): Likewise. Use vectors for
10336 working stack and result.
10337 (delete_variable_1): Likewise.
10338 * Makefile.in (varobj.o): Update dependencies.
10340 2007-01-04 Vladimir Prus <vladimir@codesourcery.com>
10342 Port from Apple's version.
10344 * varobj.c (type_changeable): Rename to...
10345 (varobj_value_is_changeable_p): ...this. Adjust all callers.
10346 (is_root_p): New function. Use it everywhere.
10348 2007-01-04 Jim Blandy <jimb@codesourcery.com>
10350 * glibc-tdep.c (glibc_skip_solib_resolver): Look for '_dl_fixup',
10351 then plain 'fixup'.
10353 2007-01-04 Joel Brobecker <brobecker@adacore.com>
10355 * hpread.c (hpread_start_psymtab): Remove unnecessary extern.
10357 2007-01-04 Joel Brobecker <brobecker@adacore.com>
10359 * hpread.c (hpread_type_lookup): Fix compilation failure.
10361 2007-01-04 Qinwei <qinwei@sunnorth.com.cn>
10363 * NEWS: New port to S+core.
10364 * MAINTAINERS (Write After Approval, Responsible Maintainers):
10367 * Makefile.in: Add dependencies for S+core files.
10368 * configure.tgt (score*, score-*-*): Add S+core target.
10369 * config/score/embed.mt: New file.
10370 * score-tdep.c: New file.
10371 * score-tdep.h: New file.
10373 2007-01-04 Joel Brobecker <brobecker@adacore.com>
10375 * ada-lang.c (ada_evaluate_subexp) [OP_TYPE]: Return a value with
10376 the appropriate type rather than a bogus void type.
10378 2007-01-04 Joel Brobecker <brobecker@adacore.com>
10380 * ada-lang.h (ada_find_printable_frame): Remove.
10381 (ada_exception_catchpoint_p, ada_decode_exception_location)
10382 (ada_decode_assert_location): Add declaration.
10383 * ada-lang.c: Add include of annotate.h and valprint.h.
10384 (exception_catchpoint_kind): New enum.
10385 (function_name_from_pc, is_known_support_routine)
10386 (ada_find_printable_frame, ada_unhandled_exception_name_addr)
10387 (ada_exception_name_addr_1, ada_exception_name_addr)
10388 (print_it_exception, print_one_exception, print_mention_exception)
10389 (print_it_catch_exception, print_one_catch_exception)
10390 (print_mention_catch_exception, catch_exception_breakpoint_ops)
10391 (print_it_catch_exception_unhandled)
10392 (print_one_catch_exception_unhandled)
10393 (print_mention_catch_exception_unhandled, print_it_catch_assert)
10394 (print_one_catch_assert, print_mention_catch_assert)
10395 (ada_exception_catchpoint_p, error_breakpoint_runtime_sym_not_found)
10396 (ada_get_next_arg, catch_ada_exception_command_split)
10397 (ada_exception_sym_name, ada_exception_sym_name)
10398 (ada_exception_breakption_ops, ada_exception_catchpoint_cond_string)
10399 (ada_parse_catchpoint_condition, ada_exception_sal)
10400 (ada_decode_exception_location)
10401 (ada_decode_assert_location): New function.
10402 (catch_exception_unhandled_breakpoint_ops): New global variable.
10403 (catch_assert_breakpoint_ops): New global variable.
10404 * breakpoint.c: Add include of ada-lang.h.
10405 (print_one_breakpoint): Do not print the condition for Ada
10406 exception catchpoints.
10407 (create_ada_exception_breakpoint): New function.
10408 (catch_ada_exception_command, catch_assert_command): New function.
10409 (catch_command_1): Add support for the new "catch exception" and
10410 "catch assert" commands.
10411 (_initialize_breakpoint): Add help description for the new catch
10413 * Makefile.in (ada-lang.o): Add dependency on annotate.h and
10415 (breakpoint.o): Add dependency on ada-lang.h.
10417 2007-01-03 Pedro Alves <pedro_alves@portugalmail.pt>
10419 * coffread.c (cs_to_section): If bfd_section is found, always
10420 return its section index.
10421 (coff_symtab_read): Determine the minimal_symbol_type using the
10424 2007-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10425 Daniel Jacobowitz <dan@codesourcery.com>
10427 * Makefile.in (top.o): Update.
10428 * top.c (gdb_readline_wrapper_done, gdb_readline_wrapper_result)
10429 (saved_after_char_processing_hook, gdb_readline_wrapper_line)
10430 (struct gdb_readline_wrapper_cleanup, gdb_readline_wrapper_cleanup):
10432 (gdb_readline_wrapper): Rewrite to use asynchronous readline.
10434 2007-01-03 Mark Kettenis <kettenis@gnu.org>
10436 * arm-linux-tdep.c (arm_linux_extract_return_value): Remove.
10437 (arm_linux_init_abi): Don't set deprecated_extract_return_value.
10439 2007-01-03 Daniel Jacobowitz <dan@codesourcery.com>
10441 * ada-lang.c (find_struct_field): Initialize *byte_offset_p.
10442 * breakpoint.c (do_enable_breakpoint): Ignore both mem_cnt and i.
10443 * c-typeprint.c (c_type_print_varspec_suffix): Don't test length
10444 greater than or equal to zero.
10445 * m2-typeprint.c (m2_array): Likewise.
10446 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
10447 * gdbtypes.c (copy_type_recursive): Correct == typo.
10448 * i386-tdep.c (i386_skip_prologue): Remove stray semicolon.
10449 * linux-nat.c (linux_nat_info_proc_cmd): Don't compare a pointer
10451 * macroscope.c (sal_macro_scope): Don't name a local variable "main".
10452 (default_macro_scope): Remove unused variable.
10453 * prologue-value.h (pv_area_find_reg): Don't name an argument
10455 * remote-fileio.c (remote_fio_func_map): Add missing braces.
10456 * remote.c (sigint_remote_twice_token, sigint_remote_token): Change
10458 (cleanup_sigint_signal_handler): Remove casts.
10459 * valprint.c (val_print): Use a volatile local for the modified
10461 * varobj.c (languages): Remove extra array dimension.
10462 (varobj_create): Correct access to languages array.
10463 * mi/mi-cmd-break.c (mi_cmd_break_insert, mi_cmd_break_watch): Add
10465 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise.
10466 * mi/mi-cmd-env.c (mi_cmd_env_path, mi_cmd_env_dir): Likewise.
10467 * mi/mi-getopt.c (mi_valid_noargs): Likewise.
10468 * mi/mi-main.c (mi_cmd_data_read_memory): Likewise.
10469 (mi_cmd_data_write_memory): Likewise.
10470 * signals/signals.c (target_signal_to_string): Cast to int before
10472 * tui/tui-layout.c (init_and_make_win): Take and return a void *.
10473 Update all callers.
10475 2007-01-03 Daniel Jacobowitz <dan@codesourcery.com>
10477 * NEWS: Mention pointer to member improvements.
10478 * Makefile.in (gnu-v3-abi.o): Delete special rule.
10479 (eval.o, gnu-v3-abi.o, ia64-tdep.o): Update.
10480 * ada-valprint.c (ada_print_scalar): Update for new type codes.
10481 * c-typeprint.c (c_print_type): Update for new type codes.
10482 (c_type_print_varspec_prefix, c_type_print_varspec_suffix)
10483 (c_type_print_base): Likewise.
10484 (c_type_print_args): Rewrite.
10485 * c-valprint.c (c_val_print): Update for new type codes. Remove
10486 support for references to members. Treat methods like functions.
10487 * cp-abi.c (cplus_print_method_ptr, cplus_method_ptr_size)
10488 (cplus_make_method_ptr, cplus_method_ptr_to_value): New.
10489 * cp-abi.h (cplus_print_method_ptr, cplus_method_ptr_size)
10490 (cplus_make_method_ptr, cplus_method_ptr_to_value): New prototypes.
10491 (struct cp_abi_ops): Add corresponding members.
10492 * cp-valprint.c (cp_print_class_method): Delete.
10493 (cp_find_class_member): New function.
10494 (cp_print_class_member): Use it. Simplify support for bogus
10496 * dwarf2read.c (quirk_gcc_member_function_pointer): Use
10497 lookup_methodptr_type.
10498 (read_tag_ptr_to_member_type): Likewise, and lookup_memberptr_type.
10499 * eval.c (evaluate_subexp_standard): Implement EVAL_SKIP for
10500 OP_SCOPE. Update call to value_aggregate_elt. Rewrite member
10502 (evaluate_subexp_for_address): Handle OP_SCOPE explicitly. Handle
10503 references returned by user defined operators.
10504 * f-typeprint.c (f_print_type, f_type_print_varspec_prefix)
10505 (f_type_print_varspec_suffix): Remove support for member pointers.
10506 * gdbtypes.c (lookup_memberptr_type): Renamed from lookup_member_type
10508 (smash_to_memberptr_type): Likewise, from smash_to_member_type.
10509 (lookup_methodptr_type): New.
10510 (rank_one_type): Adjust for TYPE_CODE_MEMBERPTR.
10511 (recursive_dump_type): Update for new types.
10512 * gdbtypes.h (enum type_code): Replace TYPE_CODE_MEMBER with
10513 TYPE_CODE_MEMBERPTR and TYPE_CODE_METHODPTR.
10514 (lookup_memberptr_type, lookup_methodptr_type)
10515 (smash_to_memberptr_type): New prototypes.
10516 (smash_to_method_type): Formatting fix.
10517 (lookup_member_type, smash_to_member_type): Delete prototypes.
10518 * gnu-v3-abi.c (gnuv3_get_vtable, gnuv3_get_virtual_fn): New.
10519 Do not rely on debug information for the vptr or the method's
10520 enclosing type. Handle function descriptors for IA64.
10521 (gnuv3_virtual_fn_field): Rewrite using the new functions.
10522 (gnuv3_find_method_in, gnuv3_print_method_ptr)
10523 (gnuv3_method_ptr_size, gnuv3_make_method_ptr)
10524 (gnuv3_method_ptr_to_value): New.
10525 (init_gnuv3_ops): Set new members of gnu_v3_abi_ops.
10526 * hpread.c (hpread_type_lookup): Update for new types.
10527 * infcall.c (value_arg_coerce): Likewise.
10528 * m2-typeprint.c (m2_print_type): Remove explicit support
10529 for member pointers.
10530 * m2-valprint.c (m2_val_print): Likewise.
10531 * p-typeprint.c (pascal_type_print_varspec_prefix)
10532 (pascal_type_print_varspec_suffix, pascal_type_print_base): Likewise.
10533 * p-valprint.c (pascal_val_print): Likewise.
10534 (pascal_object_print_class_method, pascal_object_print_class_member):
10536 * p-lang.h (pascal_object_print_class_method)
10537 (pascal_object_print_class_member): Delete prototypes.
10538 * stabsread.c (read_type): Update for new types.
10539 * typeprint.c (print_type_scalar): Likewise.
10540 * valops.c (value_struct_elt_for_reference, value_namespace_elt)
10541 (value_maybe_namespace_elt, value_aggregate_elt): Add want_address
10542 argument. Construct a pointer to member if the address of a
10543 function or data member is requested.
10544 (value_cast_pointers): Don't modify the input value.
10545 (value_cast): Adjust pointer to member handling for new types.
10546 Allow null pointer to member constants. Don't modify the input
10548 (value_ind): Remove pointer to member check. Handle function
10549 descriptors for function pointers.
10550 (value_struct_elt, value_find_oload_method_list, check_field):
10551 Remove pointer to member checks.
10552 * value.c (unpack_long): Allow pointers to data members.
10553 (value_from_longest): Allow member pointers.
10554 * value.h (value_aggregate_elt): Add want_address.
10555 * varobj.c (c_variable_editable): Remove check for members.
10556 * gdbarch.sh: Add vtable_function_descriptors and vbit_in_delta.
10557 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Handle descriptors
10559 (ia64_gdbarch_init): Call set_gdbarch_vtable_function_descriptors.
10560 * c-lang.h (cp_print_class_method): Delete prototype.
10561 * arm-tdep.c (arm_gdbarch_init): Call set_gdbarch_vbit_in_delta.
10562 * mips-tdep.c (mips_gdbarch_init): Likewise.
10563 * gdbarch.c, gdbarch.h: Regenerated.
10565 2007-01-01 Mark Kettenis <kettenis@gnu.org>
10567 * rs6000-tdep.c (rs6000_use_struct_convention)
10568 (rs6000_extract_return_value, rs6000_store_return_value)
10569 (rs6000_extract_struct_value_address): Remove.
10570 (rs6000_return_value): New function.
10571 (rs6000_gdbarch_init): Don't set deprecated_extract_return_value,
10572 store_return_value, deprecated_extract_struct_value_address and
10573 deprecated_use_struct_convention. Use rs6000_return_value
10576 2007-01-02 Nick Roberts <nickrob@snap.net.nz>
10578 * mi/mi-cmds.c (mi_cmds): Remove entries for -display-delete,
10579 -display-disable, -display-enable, -display-insert and
10582 2007-01-01 Joel Brobecker <brobecker@adacore.com>
10584 * breakpoint.c (remove_breakpoint): Remove dead code.
10586 2007-01-01 Nick Roberts <nickrob@snap.net.nz>
10588 * varobj.c: Include block.h.
10589 (c_value_of_root): Check scope within nested statements.
10591 2007-01-01 Mark Kettenis <kettenis@gnu.org>
10593 * mi/mi-main.c (mi_cmd_data_write_register_values): Use
10594 regcache_cooked_write_signed instead of
10595 deprecated_write_register_bytes.
10597 2007-01-01 Joel Brobecker <brobecker@adacore.com>
10599 * config/djgpp/fnchange.lst: Add entry for ChangeLog-2006.
10601 2007-01-01 Joel Brobecker <brobecker@adacore.com>
10603 Followed the Start of New Year Procedure:
10604 * ChangeLog-2006: New file, containing all the entries for 2006.
10605 * ChangeLog: Removed all 2006 entries, and changed the reference
10606 to the previous ChangeLog to point to ChangeLog 2006.
10607 * top.c (print_gdb_version): Update copyright year.
10609 2007-01-01 Mark Kettenis <kettenis@gnu.org>
10611 * Makefile.in (remote-sds.o): Remove.
10612 * remote-sds.c: Delete.
10614 For older changes see ChangeLog-2006.
10620 version-control: never