1 2007-12-29 Joel Brobecker <brobecker@adacore.com>
3 * ada-lang.c (_initialize_ada_language): Attach executable_changed
6 2007-12-28 Joel Brobecker <brobecker@adacore.com>
8 * ada-lang.c (ada_evaluate_subexp): Break two large expressions
9 using temporary variables.
11 2007-12-27 Joel Brobecker <brobecker@adacore.com>
13 * ada-lang.c (ada_value_cast): New function, extracted out from
14 the code in ada_evaluate_subexp, case UNOP_CAST. The code handling
15 the obscure case has been removed as we think that it is actually
17 (ada_evaluate_subexp): Add type case when evaluating an OP_DOUBLE
18 or an OP_LONG with a non-null expect_type. Replace extracted-out
19 code with call to new ada_value_cast function.
21 2007-12-27 Paul Hilfinger <hilfinger@adacore.com>
23 * ada-lang.c (ada_evaluate_subexp): Add cases for BINOP_LOGICAL_AND,
24 BINOP_LOGICAL_OR, UNOP_LOGICAL_NOT, BINOP_BITWISE_IOR,
25 BINOP_BITWISE_XOR, BINOP_BITWISE_AND.
26 * language.c (lang_bool_type): Add Ada case.
28 2007-12-26 Joel Brobecker <brobecker@adacore.com>
30 * dwarf2read.c (read_base_type): Fix obvious &&/|| confusion.
32 2007-12-26 Luis Machado <luisgpm@br.ibm.com>
34 * dwarf2-frame.c (execute_cfa_program): Call dwarf2_restore_rule
35 function to handle required actions for the DW_CFA_restore and
36 DW_CFA_restore_extended instructions.
37 (dwarf2_restore_rule): New function.
39 2007-12-24 Joel Brobecker <brobecker@adacore.com>
41 * ada-lang.c (ada_is_character_type): Add recognition of type
42 "Wide_Wide_Character".
44 2007-12-24 Joel Brobecker <brobecker@adacore.com>
46 * dwarf2read.c (read_base_type): Set code to TYPE_CODE_CHAR
47 for char and unsigned char types of Ada compilation units.
48 * ada-lang.c (ada_is_character_type): Always return true if
49 the type code is TYPE_CODE_CHAR.
51 2007-12-23 Joel Brobecker <brobecker@adacore.com>
53 * infrun.c (handle_inferior_event): Remove code that made us
54 stop when stepping into the last line of the current function.
56 2007-12-22 Pierre Muller <muller@ics.u-strasbg.fr>
58 * win32-nat.c: Fix PR gdb/2388.
59 (do_win32_fetch_inferior_registers): Do not overwrite debug register
60 array dr if debug_registers_changed variable is set.
62 2007-12-22 Jan Kratochvil <jan.kratochvil@redhat.com>
64 * dwarf2read.c (scan_partial_symbols partial_die_parent_scope)
65 (add_partial_symbol, pdi_needs_namespace, process_die)
66 (is_type_tag_for_partial, load_partial_dies, new_symbol)
67 (read_type_die, determine_prefix): Extend the current code of
68 `DW_TAG_class_type' also for `DW_TAG_interface_type'.
70 2007-12-21 Paul N. Hilfinger <hilfinger@adacore.com>
72 * ada-lang.h (ada_renaming_category): New enumerated type.
73 (ada_lookup_encoded_symbol): Declare.
74 (ada_parse_renaming): Declare.
75 (ada_renaming_type,ada_is_object_renaming)
76 (ada_simple_renamed_entity): Delete declarations.
77 * ada-lang.c (ada_parse_renaming): New function to concentrate
78 extraction of information from renaming symbols.
79 (parse_old_style_renaming): New function to concentrate
80 extraction of old-style (purely type-based) renaming information.
81 (renaming_is_visible): Rename to...
82 (old_renaming_is_invisible): Rename and change sense of
84 (remove_out_of_scope_renamings): Rename to...
85 (remove_irrelevant_renamings): Renames remove_out_of_scope_renamings
86 and augments with additional logic to handle cases where the same
87 object renaming is encoded both as a reference variable and an
89 (ada_renaming_type,ada_is_object_renaming)
90 (ada_simple_renamed_entity): Delete definitions.
91 (ada_lookup_encoded_symbol): New function factored out of
93 (ada_lookup_symbol): Reimplement to call ada_lookup_encoded_symbol.
94 (wild_match): Don't reject perfect match of prefix.
95 (ada_find_renaming_symbol): Factor old-style renaming logic into
96 find_old_style_renaming_symbol.
97 (find_old_style_renaming_symbol): New name for content of old
98 ada_find_renaming_symbol.
99 (ada_prefer_type): Reimplement not to use ada_renaming_type.
100 * ada-exp.y (write_object_renaming): Change interface. Reimplement
101 to use new arguments and ada_parse_renaming.
102 Correct blocks used to find array index.
103 (write_var_or_type): Reimplement to use ada_parse_renaming.
105 2007-12-21 Denis Pilat <denis.pilat@st.com>
107 * tui/tui-data.h (MAX_LOCATOR_ELEMENT_LEN): Defined to a bigger
108 value or to PATH_MAX when possible.
110 2007-12-20 Joel Brobecker <brobecker@adacore.com>
112 * rs6000-tdep.h: Remove defs.h #include.
113 * Makefile.in (rs6000_tdep_h): Update dependencies.
115 2007-12-20 Thiago Jung Bauermann <bauerman@br.ibm.com>
117 * gdbtypes.c (gdbtypes_post_init): Change names of decimal float types
118 to conform to C extension for decimal float.
119 * c-lang.c (enum c_primitive_types): Add entries for Decimal Floating
121 (enum cplus_primitive_types): Likewise.
122 (c_language_arch_info): Add Decimal Floating Point builtin types to
123 the primitive_type_vector.
124 (cplus_language_arch_info): Likewise.
126 2007-12-20 David Ung <davidu@mips.com>
127 Maciej W. Rozycki <macro@mips.com>
129 * mips-tdep.c (mips_n32n64_push_dummy_call): Sign-extend
130 integers and 32-bit pointers as required by the ABI.
132 2007-12-20 Joel Brobecker <brobecker@adacore.com>
134 * symtab.h: Remove "defs.h" #include.
135 * Makefile.in (symtab_h): Update dependencies.
137 2007-12-19 Joel Brobecker <brobecker@adacore.com>
139 * symtab.h: #include "defs.h".
140 (enum language): Remove opaque declaration.
141 * Makefile.in (symtab_h): Update dependencies.
143 2007-12-19 Joel Brobecker <brobecker@adacore.com>
145 * language.h (enum exp_opcode): Remove commented out forward
147 (op_error): Delete declaration.
149 2007-12-19 Joel Brobecker <brobecker@adacore.com>
151 * infrun.c (handle_inferior_event): Fix spelling in comment.
153 2007-12-18 Daniel Jacobowitz <dan@codesourcery.com>
155 * minsyms.c (lookup_minimal_symbol): Also check the separate
157 (lookup_minimal_symbol_text): Likewise.
158 (lookup_minimal_symbol_solib_trampoline): Likewise.
159 * symtab.c (lookup_global_symbol_from_objfile): Likewise.
161 2007-12-18 Vladimir Prus <vladimir@codesourcery.com>
163 * mi/mi-main.c (mi_cmd_list_features): Announce
164 the 'pending-breakpoints' feature.
166 2007-12-17 Jim Blandy <jimb@codesourcery.com>
168 * dwarf2read.c (dwarf2_add_field): Correctly scale all byte
169 offsets obtained from DW_AT_data_member_location before recording
170 them in FIELD_BITPOS (*fp).
172 * dwarf2read.c (attr_form_is_section_offset): Doc fixes.
174 2007-12-17 Nigel Stephens <nigel@mips.com>
175 Maciej W. Rozycki <macro@mips.com>
177 * utils.c (string_to_core_addr): If the executable format
178 indicates that addresses should be sign-extended and there are
179 only 8 hex digits in the address, then do so.
180 * Makefile.in (utils.o): Depend on $(gdbcore_h).
182 2007-12-17 Chris Dearman <chris@mips.com>
184 * symfile.c (init_filename_language_table): Recognise .sx as
187 2007-12-17 Joel Brobecker <brobecker@adacore.com>
189 * language.h (enum exp_opcode): Comment out this declaration,
190 undoing the previous change.
192 2007-12-17 Luis Machado <luisgpm@br.ibm.com>
194 * breakpoint.c: (watch_command_1): Parse additional optional
195 "thread" parameter to the watchpoint command and set the
196 "thread" member of the breakpoint struct.
198 2007-12-17 Luis Machado <luisgpm@br.ibm.com>
200 * breakpoint.c (bpstat_stop_status): Check an additional
201 condition before evaluating an expression value.
203 2007-12-17 Joel Brobecker <brobecker@adacore.com>
205 * language.h (enum exp_opcode): Add forward declaration.
206 (language_string_char_type, language_lookup_primitive_type_by_name):
207 Move declaration past declaration of language_defn.
209 2007-12-16 Daniel Jacobowitz <dan@codesourcery.com>
210 Joseph Myers <joseph@codesourcery.com>
212 * configure.ac: Check for *-*-solaris2.1[[0-9]]* instead of
213 *-*-solaris2.1[[0-9]].
214 * configure: Regenerate.
215 * procfs.c (proc_set_current_signal): If redelivering a signal,
216 reuse the current siginfo if possible.
218 2007-12-16 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
220 * f-typeprint.c (print_equivalent_f77_float_type): Remove function.
221 (f_type_print_base): Output the type names directly for real and
224 2007-12-16 Vladimir Prus <vladimir@codesourcery.com>
226 * breakpoint.c (bpstat_have_active_hw_watchpoints):
228 (bpstat_stop_status): Remove unused variable
230 * breakpoint.h (bpstat_have_active_hw_watchpoints):
233 2007-12-16 Vladimir Prus <vladimir@codesourcery.com>
235 * target.h (target_pid_or_tid_to_str): Remove.
236 * infrun.c (handle_inferior_event):
237 Use target_pid_to_str instead of
238 target_pid_or_tid_to_str.
239 (normal_stop): Likewise.
241 2007-12-16 Jan Kratochvil <jan.kratochvil@redhat.com>
243 * dwarf2read.c (dwarf_attr_name): Rename `DW_AT_stride_size' to its
244 DWARF3 equivalent `DW_AT_bit_stride'.
245 Rename `DW_AT_stride' to its DWARF3 equivalent `DW_AT_byte_stride'.
247 2007-12-16 Joel Brobecker <brobecker@adacore.com>
249 * mi/mi-main.c: Remove code that was commented out in 1999.
251 2007-12-16 Joel Brobecker <brobecker@adacore.com>
253 * expression.h (parse_expression_in_context): Delete prototype.
254 * parse.c (parse_expression_in_context): Delete.
256 2007-12-14 Vladimir Prus <vladimir@codesourcery.com>
258 Add support for pending breakpoints in MI.
259 * gdb.h (gdb_breakpoint): Add parameter pending.
260 * breakpoint.c (gdb_breakpoint): Add parameter pending.
261 * mi/mi-cmd-break.c (mi_break_insert): Change
262 comment to refer to manual. Add support for
263 the -f flag, for pending breakpoint.
265 2007-12-14 Vladimir Prus <vladimir@codesourcery.com>
267 * breakpoint.c (break_command_really): New, copied
268 from break_command_1. New parameters COND_STRING, THREAD
269 PARSE_CONDITITION_AND_THREAD and PENDING_BREAK_SUPPORT.
270 The previous FLAG parameter split into TEMPFLAG and
272 When PARSE_CONDITION_AND_THREAD is not set, duplicate
273 the passed condition string.
274 (struct captured_breakpoint_args): Remove
275 (do_captured_breakpoint): Remove.
276 (break_command_1): Relay to break_command_really.
277 (gdb_breakpoint): Relay to break_command_really.
279 2007-12-13 Michael Snyder <msnyder@specifix.com>
281 * mips-linux-tdep.c (mips64_fill_gregset): Remove unused variable.
283 2007-12-13 Jim Blandy <jimb@codesourcery.com>
285 * dwarf2read.c (attr_form_is_constant): New function.
286 (dwarf2_add_field): Use it and attr_form_is_section_offset to
287 recognize DW_AT_data_member_location attributes. Use
288 dwarf2_get_attr_constant_value when the attribute is a constant.
290 * dwarf2read.c (attr_form_is_section_offset): New function.
291 (dwarf_add_member_fn, read_common_block, read_partial_die)
292 (dwarf2_symbol_mark_computed): Use it, instead of writing it out.
294 2007-12-12 Jim Blandy <jimb@codesourcery.com>
296 Remove unused support for target-based exception catching.
297 * target.h (struct target_ops): Delete
298 to_enable_exception_callback and to_get_current_exception_event
300 (target_enable_exception_callback)
301 (target_get_current_exception_event): Delete macros.
302 * target.c (update_current_target): Remove code to inherit and
303 default those members.
304 (debug_to_enable_exception_callback)
305 (debug_to_get_current_exception_event): Delete functions.
306 (setup_target_debug): Don't install those methods.
307 * inf-child.c (inf_child_enable_exception_callback)
308 (inf_child_get_current_exception_event): Delete dummy functions.
309 (inf_child_target): Don't install them in the target vector.
310 * breakpoint.h (enum bptype): Delete bp_catch_catch,
312 * breakpoint.c (cover_target_enable_exception_callback)
313 (ep_is_exception_catchpoint, create_exception_catchpoint): Delete
315 (insert_bp_location, update_breakpoints_after_exec)
316 (remove_breakpoint, ep_is_catchpoint, print_it_typical)
317 (bpstat_stop_status, bpstat_what)
318 (bpstat_get_triggered_catchpoints, print_one_breakpoint_location)
319 (user_settable_breakpoint, allocate_bp_location)
320 (disable_watchpoints_before_interactive_call_start)
321 (enable_watchpoints_after_interactive_call_stop, mention)
322 (delete_breakpoint, breakpoint_re_set_one, disable_command)
323 (enable_command): Remove exception catchpoint cases.
324 (catch_exception_command_1): Don't try target-based exception
326 * stack.c (catch_info): Call print_frame_label_vars
329 2007-12-12 Nigel Stephens <nigel@mips.com>
330 Maciej W. Rozycki <macro@mips.com>
332 * remote-mips.c (mips_load): Use regcache_set_valid_p() instead
333 of setting deprecated_register_valid array directly.
335 2007-12-07 Maciej W. Rozycki <macro@mips.com>
337 * mips-tdep.c (extended_offset): Fix a comment.
339 2007-12-07 Maciej W. Rozycki <macro@mips.com>
341 * target.c (update_current_target): Inherit to_log_command.
342 * target.h (struct target_ops). Add to_log_command.
343 (target_log_command): New macro.
344 * top.c (execute_command): Call target_log_command() rather than
345 serial_log_command().
346 * monitor.c (init_base_monitor_ops): Initialize to_log_command.
347 * remote-m32r-sdi.c (init_m32r_ops): Likewise.
348 * remote-mips.c (_initialize_remote_mips): Likewise.
349 * remote.c (init_remote_ops): Likewise.
351 2007-12-06 Daniel Jacobowitz <dan@codesourcery.com>
353 * infrun.c (init_wait_for_inferior): Reset target_last_wait_ptid.
354 (handle_inferior_event): Clear stop_stack_dummy earlier.
356 2007-12-06 Jim Blandy <jimb@codesourcery.com>
358 * addrmap.c (addrmap_splay_tree_remove): New function.
359 (addrmap_mutable_set_empty): Use it.
361 * addrmap.c, addrmap.h: Update to GPLv3.
363 * addrmap.c (struct addrmap): Make the referenced function table
365 (addrmap_fixed_funcs, addrmap_mutable_funcs): Declare const.
366 Don't use designated initializers.
368 * addrmap.c (addrmap_fixed_create_fixed, addrmap_mutable_find)
369 (addrmap_mutable_relocate): Use internal_error, not abort.
371 * NEWS: Mention support for non-contiguous lexical blocks and
374 2007-12-06 Markus Deuling <deuling@de.ibm.com>
376 * gdbarch.sh (stab_reg_to_regnum, dwarf_reg_to_regnum)
377 ( dwarf2_reg_to_regnum, sdb_reg_to_regnum, ecoff_reg_to_regnum): Add
378 gdbarch as parameter.
379 * gdbarch.{c,h}: Regenerate.
381 * xtensa-tdep.c (xtensa_reg_to_regnum): Add gdbarch as parameter.
382 Replace current_gdbarch by gdbarch.
383 * s390-tdep.c (s390_dwarf_reg_to_regnum): Likewise.
384 * rs6000-tdep.c (rs6000_stab_reg_to_regnum)
385 (rs6000_dwarf2_reg_to_regnum): Likewise.
386 * mips-tdep.c (mips_stab_reg_to_regnum)
387 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Likewise.
388 * mep-tdep.c (mep_debug_reg_to_regnum): Likewise.
389 * m32c-tdep.c (m32c_debug_info_reg_to_regnum): Likewise.
390 * i386-tdep.c (i386_dbx_reg_to_regnum)
391 (i386_svr4_reg_to_regnum): Likewise
392 * h8300-tdep.c (h8300s_dbg_reg_to_regnum)
393 (h8300_dbg_reg_to_regnum): Likewise.
394 * amd64-tdep.c (amd64_dwarf_reg_to_regnum): Likewise.
395 * arch-utils.c (no_op_reg_to_regnum): Likewise.
396 * arch-utils.h (no_op_reg_to_regnum): Likewise.
397 * arm-tdep.c (arm_dwarf_reg_to_regnum): Likewise.
398 * cris-tdep.c (cris_dwarf2_reg_to_regnum): Likewise.
399 * hppa-tdep.c (hppa64_dwarf_reg_to_regnum): Likewise.
400 * ia64-tdep.c (ia64_dwarf_reg_to_regnum): Likewise.
401 * m68k-tdep.c (m68k_dwarf_reg_to_regnum): Likewise.
403 2007-12-06 Vladimir Prus <vladimir@codesourcery.com>
405 Localize infrun use of remove_breakpoints.
406 * infrun.c (handle_inferior_event): Remove
407 calls to remove_breakpoints, except where needed to
408 communicate change of breakpoint locations to inferior.
409 (keep_going): If steppping over breakpoint, remove
412 2007-12-06 Vladimir Prus <vladimir@codesourcery.com>
414 Clarify infrun variable naming.
415 * infrun.c (trap_expected): Rename
416 to stepping_over_breakpoint. Document.
417 (stepping_past_breakpoint): Remove.
418 (stepping_past_breakpoint_ptdi): Renamed
419 to deferred_step_ptid.
420 (struct execution_control_state): Rename
421 the another_trap field to stepping_over_breakpoint.
422 (struct inferior_status): Rename the trap_expected
423 field to stepping_over_breakpoint.
424 (clear_proceed_status, proceed)
425 (init_execution_control_state, context_switch)
426 (handle_inferior_event, currently_stepping)
427 (keep_going, save_inferior_status)
428 (restore_inferior_status, prepare_to_proceed): Adjust.
429 * gdbthread.h (struct thread_info): Rename the
430 trap_expected field to stepping_over_breakpoint.
431 * thread.c (load_infrun_state, save_infrun_state):
434 2007-12-06 Pierre Muller <muller@ics.u-strasbg.fr>
436 * win32-nat.c: Allow compilation if CORE_ADDR is 8 byte long.
437 Add "gdb_stdint.h" dependency required for uintptr_t type use.
438 (handle_output_debug_string): Use uintptr_t typecast.
439 (handle_exception): Ditto.
440 (win32_xfer_memory): Ditto.
441 * Makefile.in (win32-nat.o): Add dependency to gdb_stdint header.
443 2007-12-04 Jim Blandy <jimb@codesourcery.com>
445 Support lexical blocks and function bodies that occupy
446 non-contiguous address ranges.
447 * addrmap.c, addrmap.h: New files.
448 * block.h (struct addrmap): New forward declaration.
449 (struct blockvector): New member, 'map'.
450 (BLOCKVECTOR_MAP): New accessor macro.
451 * block.c: #include "addrmap.h"
452 (blockvector_for_pc_sect): If the blockvector we've found has
453 an address map, use it instead of searching the blocks.
454 * buildsym.c: #include "addrmap.h"
455 (pending_addrmap_obstack, pending_addrmap_interesting): New static
457 (really_free_pendings): If we have a pending addrmap, free it too.
458 (record_block_range): New function.
459 (make_blockvector): If we have an interesting pending addrmap,
460 record it in the new blockvector.
461 (start_symtab, buildsym_init): Assert that there is no pending
462 addrmap now; we should have cleaned up any addrmaps we'd built
464 (end_symtab): If there is a pending addrmap left over that didn't
465 get included in the blockvector, free it.
466 * buildsym.h (struct addrmap): New forward declaration.
467 (record_block_range): New prototype.
468 * objfiles.c: #include "addrmap.h".
469 (objfile_relocate): Relocate the blockvector's address map, if
471 * dwarf2read.c (dwarf2_record_block_ranges): New function.
472 (read_func_scope, read_lexical_block_scope): Call it.
473 * Makefile.in (SFILES): Add addrmap.c.
474 (addrmap_h): New header dependency variable.
475 (COMMON_OBS): Add addrmap.o.
476 (addrmap.o): New rule.l
477 (block.o, objfiles.o, buildsym.o): Depend on $(addrmap_h).
479 * block.c (blockvector_for_pc, blockvector_for_pc_sect): Return a
480 pointer to the block, not its index in the blockvector.
481 (block_for_pc_sect): Use the returned block, instead of looking it
483 * block.h (blockvector_for_pc, blockvector_for_pc_sect): Update
485 * breakpoint.c (resolve_sal_pc): Use returned block, instead of
486 looking it up ourselves.
487 * stack.c (print_frame_label_vars): Disable function, which
488 depends on the block's index.
490 * buildsym.c (finish_block): Return the block we've built.
491 * buildsym.h (finish_block): Update prototype.
493 * defs.h (CORE_ADDR_MAX): New constant.
495 2007-12-04 Ulrich Weigand <uweigand@de.ibm.com>
497 * coffread.c (decode_type): Use builtin_type_int32 instead
498 of FT_INTEGER fundamental type for array range index type.
499 (decode_base_type): Use builtin types of current_gdbarch
500 instead of fundamental types.
502 * dwarf2read.c (struct dwarf2_cu): Remove ftypes member.
503 (read_file_scope): Do not initialize ftypes member.
504 (dwarf_base_type, dwarf2_fundamental_types): Remove functions.
505 (read_array_type): Use builtin_type_int32 instead of FT_INTEGER
506 fundamental type for array range index type.
507 (read_tag_string_type): Likewise for string range index type.
508 Also, do not overwrite FT_CHAR type with new string type.
509 (read_base_type): If DW_AT_name is missing, create unnamed type
510 with given properties instead of looking for a fundamental type.
511 Create new types as TYPE_TARGET_TYPE for DW_ATE_address and
512 DW_ATE_complex_float types.
513 (read_subrange_type): Create new type to represent missing
514 DW_AT_type instead of looking for a fundamental type.
515 (die_type): Use builtin type to represent "void" instead of
516 looking for a fundamental type.
518 * stabsread.c (define_symbol): Use builtin types to represent
519 'r' and 'i' floating-point and integer constants.
521 * gdbtypes.c (lookup_fundamental_type): Remove.
522 * gdbtypes.h (lookup_fundamental_type): Remove prototype.
523 (FT_VOID, FT_BOOLEAN, FT_CHAR, FT_SIGNED_CHAR, FT_UNSIGNED_CHAR,
524 FT_SHORT, FT_SIGNED_SHORT, FT_UNSIGNED_SHORT, FT_INTEGER,
525 FT_SIGNED_INTEGER, FT_UNSIGNED_INTEGER, FT_LONG, FT_SIGNED_LONG,
526 FT_UNSIGNED_LONG, FT_LONG_LONG, FT_SIGNED_LONG_LONG,
527 FT_UNSIGNED_LONG_LONG, FT_FLOAT, FT_DBL_PREC_FLOAT, FT_EXT_PREC_FLOAT,
528 FT_COMPLEX, FT_DBL_PREC_COMPLEX, FT_EXT_PREC_COMPLEX, FT_STRING,
529 FT_FIXED_DECIMAL, FT_FLOAT_DECIMAL, FT_BYTE, FT_UNSIGNED_BYTE,
530 FT_TEMPLATE_ARG, FT_DECFLOAT, FT_DBL_PREC_DECFLOAT,
531 FT_EXT_PREC_DECFLOAT, FT_NUM_MEMBERS): Remove macros.
532 * objfiles.c (struct objfile): Remove fundamental_types member.
533 * symfile.c (reread_symbols): Do not clear fundamental_types.
535 * language.h (struct language_defn): Remove la_fund_type member.
536 (create_fundamental_type): Remove.
537 * language.c (unk_lang_create_fundamental_type): Remove.
538 (unknown_language_defn, auto_language_defn,
539 local_language_defn): Adapt initializer.
540 * ada-lang.c (ada_create_fundamental_type): Remove.
541 (ada_language_defn): Adapt initializer.
542 * c-lang.h (c_create_fundamental_type): Remove prototype.
543 * c-lang.c (c_create_fundamental_type): Remove.
544 (c_language_defn, cplus_language_defn, asm_language_defn,
545 minimal_language_defn): Adapt initializer.
546 * f-lang.c (f_create_fundamental_type): Remove.
547 (f_language_defn): Adapt initializer.
548 * jv-lang.c (java_create_fundamental_type): Remove.
549 (java_language_defn): Adapt initializer.
550 * m2-lang.c (m2_create_fundamental_type): Remove.
551 (m2_language_defn): Adapt initializer.
552 * objc-lang.c (objc_create_fundamental_type): Remove.
553 (objc_language_defn): Adapt initializer.
554 * p-lang.h (pascal_create_fundamental_type): Remove prototype.
555 * p-lang.c (pascal_create_fundamental_type): Remove.
556 (pascal_language_defn): Adapt initializer.
557 * scm-lang.c (scm_language_defn): Adapt initializer.
559 2007-12-04 Maciej W. Rozycki <macro@mips.com>
561 * features/mips-cpu.xml: Specify "regnum" for "r0" explicitly.
562 * features/mips64-cpu.xml: Likewise.
563 * features/mips-fpu.xml: Specify "regnum" for "f0" explicitly.
564 * features/mips64-fpu.xml: Likewise.
565 * features/mips-linux.c: Regenerate.
566 * features/mips64-linux.c: Regenerate.
568 2007-12-04 Maciej W. Rozycki <macro@mips.com>
570 * target.h (target_find_new_threads): Fix definition.
572 2007-12-02 Pierre Muller <muller@ics.u-strasbg.fr>
574 * win32-nat.c (win32_resume): Set the trace bit
575 in the thread identified by inferior_ptid.
578 2007-12-02 Pierre Muller <muller@ics.u-strasbg.fr>
580 * win32-nat.c (open_process_used): New static variable.
581 (win32_init_thread_list): Remove call to CloseHandle for thread.
582 (win32_delete_thread): Ditto.
583 (fake_create_process): Set open_process_used if OpenProcess call is
585 (get_win32_debug_event): Do not close process handle.
586 (do_initial_win32_stuff): Set open_process_used to zero.
587 (win32_mourn_inferior): Call CloseHandle for current_process_handle if
588 open_process_used is set.
589 (win32_kill_inferior): Do not close process and main_thread handles.
591 2007-11-30 Daniel Jacobowitz <dan@codesourcery.com>
593 * remote.c (remote_cmdlist): New variable.
594 (PACKET_vFile_open, PACKET_vFile_pread, PACKET_vFile_pwrite)
595 (PACKET_vFile_close, PACKET_vFile_unlink): New constants.
596 (remote_buffer_add_string, remote_buffer_add_bytes)
597 (remote_buffer_add_int, remote_hostio_parse_result)
598 (remote_hostio_send_command, remote_hostio_open, remote_hostio_pwrite)
599 (remote_hostio_pread, remote_hostio_close, remote_hostio_unlink)
600 (remote_fileio_errno_to_host, remote_hostio_error, fclose_cleanup)
601 (remote_hostio_close_cleanup, remote_file_put, remote_file_get)
602 (remote_file_delete, remote_put_command, remote_get_command)
603 (remote_delete_command, remote_command): New functions.
604 (_initialize_remote): Register new packets and commands.
605 * Makefile.in (gdb_fileio_h): New variable.
607 (SUBDIR_MI_OBS): Add mi-cmd-target.o.
608 (SUBDIR_MI_SRCS): Add mi/mi-cmd-target.c.
609 (mi-cmd-target.o): New rule.
610 * mi/mi-cmd-target.c: New file.
611 * mi/mi-cmds.c (mi_cmds): Add target-file-delete, target-file-get,
613 * mi/mi-cmds.h (mi_cmd_target_file_get, mi_cmd_target_file_put)
614 (mi_cmd_target_file_delete): Declare.
615 * remote.h (remote_file_put, remote_file_get, remote_file_delete):
617 * NEWS: Describe new file transfer support.
619 2007-11-30 Vladimir Prus <vladimir@codesourcery.com>
621 * infrun.c (handle_inferior_event): Don't
622 ignore beakpoints if trap_expected is set.
624 2007-11-30 Vladimir Prus <vladimir@codesourcery.com>
626 Make insert_breakpoints return void.
627 * breakpoint.h (insert_breakpoints): Change
629 * breakpoint.c (insert_breakpoints): Change
630 return type to void. Rename local return_val
632 * infrun.c (keep_going): Instead of checking
633 return value from insert_breakpoints, catch exception.
635 2007-11-29 Vladimir Prus <vladimir@codesourcery.com>
637 Stop infrun from tracking breakpoint insertion status.
639 The checks of breakpoints_inserted before calling
640 remove_breakpoints are removed, as remove_breakpoint
641 won't touch uninserted breakpoints. In a number of places,
642 we're interested if a breakpoint is inserted at particular
643 PC, and we now use breakpoint_inserted_here_p. In a few
644 places, insert_breakpoints can be called unconditionally,
645 since it won't try to insert already inserted breakpoint.
647 * breakpoint.h (regular_breakpoint_inserted_here_p): New
649 * breakpoint.c (regular_breakpoint_inserted_here_p): New.
650 (breakpoint_inserted_here_p): Use
651 regular_breakpoint_inserted_here_p.
652 * infrun.c (breakpoints_inserted): Remove.
653 (resume): Don't check for breakpoints_inserted before
654 remove_hw_watchpoints. Use breakpoint_inserted_here_p.
655 (proceed, init_wait_for_inferior): Don't set breakpoints_inserted.
656 (handle_inferior_event): Don't use breakpoints_inserted.
657 Use breakpoints_meant_to_be_inserted and
658 breakpoints_inserted_here_p.
659 (insert_step_resume_breakpoint_at_sal, keep_going): Use
660 breakpoints_meant_to_be_inserted. Don't set breakpoints_inserted.
661 (normal_stop): Don't check for breakpoints_inserted. Don't
662 set breakpoints_inserted.
663 (keep_going): Don't check for breakpoints_inserted.
664 (insert_step_resume_breakpoint_at_sal): Don't insert
667 2007-11-28 Jim Blandy <jimb@codesourcery.com>
669 * breakpoint.c (watch_command_1): When the watchpoint isn't local
670 to any frame, initialize watchpoint_frame using null_frame_id, not
673 2007-11-28 Vladimir Prus <vladimir@codesourcery.com>
675 * infrun.c (resume): Set right thread even if
676 stepping over breakpoint using software single step.
678 2007-11-28 Nick Roberts <nickrob@snap.net.nz>
680 * mi/mi-cmd-var.c (print_varobj): Revert change from 2007-08-31.
681 (mi_print_value_p): Guard against type = NULL.
683 2007-11-27 Thiago Jung Bauermann <bauerman@br.ibm.com>
685 * dfp.c (decimal_from_string): Remove superfluous newline from
687 (decimal_to_string): Likewise.
688 * printcmd.c (printf_command): Change string buffer to use
689 MAX_DECIMAL_STRING constant.
690 * value.c (value_from_decfloat): Likewise.
692 2007-11-27 Ulrich Weigand <uweigand@de.ibm.com>
694 * Makefile.in (ALL_TARGET_OBS): Remove object files that require
695 64-bit CORE_ADDR and BFD support, move them to ...
696 (ALL_64_TARGET_OBS): ... this new variable.
697 * configure.ac: Check for --enable-64-bit-bfd option. Only add
698 64-bit targets with --enable-targets=all if BFD supports 64-bit.
699 * configure: Regenerate.
701 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Do not claim
702 all elf32-i386 executables, only cygwin core files.
704 2007-11-25 Jan Kratochvil <jan.kratochvil@redhat.com>
706 * dwarf2read.c (dwarf2_get_pc_bounds): Moved the `DW_AT_ranges' parsing
707 code with its variables OBJFILE, CU_HEADER and OBFD into ...
708 (dwarf2_ranges_read): ... a new function.
709 (read_partial_die): Implemented the parsing of `DW_AT_ranges'.
711 2007-11-24 Pedro Alves <pedro_alves@portugalmail.pt>
713 * win32-nat.c (DR6_CLEAR_VALUE): New define.
714 (thread_info_struct): Rename suspend_count to suspended, to be
716 (thread_rec): Only suspend the thread if it wasn't suspended by
717 gdb before. Warn if suspending failed.
718 (win32_add_thread): Set Dr6 to DR6_CLEAR_VALUE.
719 (win32_continue): Set Dr6 to DR6_CLEAR_VALUE. Update usage of the
720 `suspended' flag. Do ContinueDebugEvent after resuming the
721 suspended threads, not before. Set threads' contexts before
722 resuming them, not after.
723 (win32_resume): Set Dr6 to DR6_CLEAR_VALUE.
725 2007-11-23 Vladimir Prus <vladimir@codesourcery.com>
727 * breakpoint.c (insert_breakpoints)
728 (insert_bp_location): Remove stale comments.
730 2007-11-23 Maciej W. Rozycki <macro@mips.com>
732 * mips-linux-tdep.h: Fix some formatting.
734 2007-11-21 Markus Deuling <deuling@de.ibm.com>
736 * stack.c (print_args_stub): Use get_frame_arch to get at the current
737 architecture and replace current_gdbarch.
738 (frame_info): Likewise.
740 2007-11-21 Nick Roberts <nickrob@snap.net.nz>
742 * varobj.c (c_variable_editable, cplus_variable_editable)
743 (java_variable_editable, variable_editable): Delete.
744 (varobj_editable_p): Replace above functions with one language
745 independent function. Check for an lvalue.
746 (varobj_get_attributes, varobj_set_value): Use varobj_editable_p.
747 (struct language_specific): Delete variable_editable field.
749 * mi-cmd-var.c (mi_cmd_var_assign): Simplify.
751 * varobj.h: Add extern for varobj_editable_p.
753 2007-11-20 Vladimir Prus <vladimir@codesourcery.com>
755 Remove unused breakpoint fields.
756 * breakpoint.h (struct breakpoint): Remove
757 from_tty and flag fields.
758 * breakpoint.c (break_command_1): Don't set
759 from_tty and flag field set of breakpoint.
760 (create_ada_exception_breakpoint): Don't set
763 2007-11-20 David Ung <davidu@mips.com>
764 Maciej W. Rozycki <macro@mips.com>
766 * mips-tdep.c (mips16_scan_prologue): Handle the MIPS16e SAVE
769 2007-11-20 Vladimir Prus <vladimir@codesourcery.com>
771 * infrun.c (resume): Clarify logic that
772 decides if a single thread must be resumed. Add
775 2007-11-20 Vladimir Prus <vladimir@codesourcery.com>
777 * breakpoint.c (disable_breakpoints_in_unloaded_shlib):
780 2007-11-19 Markus Deuling <deuling@de.ibm.com>
782 * gdbarch.sh (register_sim_regno): Add gdbarch as parameter.
783 * gdbarch.{c,h}: Regenerate.
785 * arch-utils.h (legacy_register_sim_regno): Add gdbarch as parameter.
786 * score-tdep.c (score_register_sim_regno): Likewise.
787 * sim-regno.h (one2one_register_sim_regno): Likewise.
789 * arch-utils.c (legacy_register_sim_regno): Add gdbarch as parameter.
790 Replace current_gdbarch by gdbarch.
791 * sh-tdep.c (sh_sh2a_register_sim_regno)
792 (sh_dsp_register_sim_regno): Likewise.
793 * rs6000-tdep.c (rs6000_register_sim_regno): Likewise.
794 * mips-tdep.c (mips_register_sim_regno): Likewise.
795 * m32c-tdep.c (m32c_register_sim_regno): Likewise.
796 * frv-tdep.c (frv_register_sim_regno): Likewise.
797 * arm-tdep.c (arm_register_sim_regno): Likewise.
798 * remote-sim.c (one2one_register_sim_regno): Likewise.
800 2007-11-16 Ulrich Weigand <uweigand@de.ibm.com>
802 * configure.ac (--enable-targets): New configure option.
803 Collect gdb_target_obs of multiple targets into TARGET_OBS.
804 Call configure.tgt multiple times, using $targ as operand.
805 * configure.tgt: Operate on $targ instead of $target.
806 * configure: Regenerate.
807 * Makefile.in (ALL_TARGET_OBS): Define.
809 * NEWS: Mention --enable-targets option.
811 2007-11-16 Ulrich Weigand <uweigand@de.ibm.com>
813 * mips-tdep.c (show_mipsfpu_command): Do not crash if called when
814 current architecture is not MIPS.
816 2007-11-16 Ulrich Weigand <uweigand@de.ibm.com>
818 * cli/cli-setshow.c (do_setshow_command): Use dynamically sized buffer
819 to construct error message if no argument was supplied.
821 2007-11-16 Ulrich Weigand <uweigand@de.ibm.com>
823 * i386nbsd-tdep.c (i386nbsd_aout_supply_regset): Remove.
824 (i386nbsd_aout_regset_from_core_section): Likewise.
825 (i386nbsd_aout_init_abi): Likewise.
826 (_initialize_i386nbsd_tdep): Do not register i386nbsd_aout_init_abi.
828 * vaxnbsd-tdep.c (vaxnbsd_aout_init_abi): Remove.
829 (_initialize_vaxnbsd_tdep): Do not register vaxnbsd_aout_init_abi.
831 2007-11-16 Ulrich Weigand <uweigand@de.ibm.com>
833 * amd64fsdb-tdep.c (amd64fbsd_sigtramp_start_addr): Use ULL suffix.
834 (amd64fbsd_sigtramp_end_addr): Likewise.
836 * iq2000-tdep.c (iq2000_pointer_to_address): Fix argument type.
837 (iq2000_address_to_pointer): Likewise.
838 (iq2000_frame_prev_register): Likewise.
839 (iq2000_extract_return_value): Use regcache_cooked_read_unsigned
840 instead of regcache_cooked_read into CORE_ADDR variable.
841 (iq2000_return_value): Fix argument types.
843 * m32r-rom.c (m32r_load_section): Fix printf argument type.
844 (m32r_load): Likewise.
846 * m68kbsd-tdep.c: Include "gdbtypes.h".
847 * Makefile.in: Update dependencies.
849 * mn10300-tdep.c (mn10300_frame_unwind_cache): Fix aliasing violation.
851 * nto-tdep.c (LM_ADDR): Do not refer to no-longer-existing
852 lmo->l_addr_size element.
854 * remote-m32r-sdi.c (m32r_xfer_memory): Use paddr to print address.
855 (m32r_insert_breakpoint): Likewise.
856 (m32r_remove_breakpoint): Likewise.
857 (m32r_insert_watchpoint): Likewise.
858 (m32r_remove_watchpoint): Likewise.
859 (m32r_load): Fix printf argument type.
861 * xtensa-tdep.c (xtensa_regset_from_core_section): Fix printf
863 (xtensa_frame_this_id): Do not cast pointers to "int" for output.
864 (xtensa_frame_prev_register): Likewise.
865 (xtensa_push_dummy_call): Likewise.
867 2007-11-16 Ulrich Weigand <uweigand@de.ibm.com>
869 * config/alpha/alpha-linux.mt: Remove file.
870 * config/alpha/alpha.mt: Remove file.
871 * config/alpha/alpha-osf1.mt: Remove file.
872 * config/alpha/fbsd.mt: Remove file.
873 * config/alpha/nbsd.mt: Remove file.
874 * config/alpha/obsd.mt: Remove file.
875 * config/arm/embed.mt: Remove file.
876 * config/arm/linux.mt: Remove file.
877 * config/arm/nbsd.mt: Remove file.
878 * config/arm/obsd.mt: Remove file.
879 * config/arm/wince.mt: Remove file.
880 * config/avr/avr.mt: Remove file.
881 * config/cris/cris.mt: Remove file.
882 * config/frv/frv.mt: Remove file.
883 * config/h8300/h8300.mt: Remove file.
884 * config/i386/cygwin.mt: Remove file.
885 * config/i386/fbsd64.mt: Remove file.
886 * config/i386/fbsd.mt: Remove file.
887 * config/i386/i386gnu.mt: Remove file.
888 * config/i386/i386.mt: Remove file.
889 * config/i386/i386sol2.mt: Remove file.
890 * config/i386/linux64.mt: Remove file.
891 * config/i386/linux.mt: Remove file.
892 * config/i386/mingw.mt: Remove file.
893 * config/i386/nbsd64.mt: Remove file.
894 * config/i386/nbsd.mt: Remove file.
895 * config/i386/nto.mt: Remove file.
896 * config/i386/obsd64.mt: Remove file.
897 * config/i386/obsd.mt: Remove file.
898 * config/i386/sol2-64.mt: Remove file.
899 * config/ia64/ia64.mt: Remove file.
900 * config/ia64/linux.mt: Remove file.
901 * config/iq2000/iq2000.mt: Remove file.
902 * config/m32c/m32c.mt: Remove file.
903 * config/m32r/linux.mt: Remove file.
904 * config/m32r/m32r.mt: Remove file.
905 * config/m68hc11/m68hc11.mt: Remove file.
906 * config/m68k/linux.mt: Remove file.
907 * config/m68k/monitor.mt: Remove file.
908 * config/m68k/nbsd.mt: Remove file.
909 * config/m68k/obsd.mt: Remove file.
910 * config/m88k/obsd.mt: Remove file.
911 * config/mep/mep.mt: Remove file.
912 * config/mips/embed.mt: Remove file.
913 * config/mips/irix5.mt: Remove file.
914 * config/mips/irix6.mt: Remove file.
915 * config/mips/linux.mt: Remove file.
916 * config/mips/nbsd.mt: Remove file.
917 * config/mips/obsd64.mt: Remove file.
918 * config/mn10300/linux.mt: Remove file.
919 * config/mn10300/mn10300.mt: Remove file.
920 * config/mt/mt.mt: Remove file.
921 * config/pa/hppahpux.mt: Remove file.
922 * config/pa/hppa.mt: Remove file.
923 * config/pa/linux.mt: Remove file.
924 * config/pa/obsd.mt: Remove file.
925 * config/powerpc/aix.mt: Remove file.
926 * config/powerpc/linux.mt: Remove file.
927 * config/powerpc/nbsd.mt: Remove file.
928 * config/powerpc/obsd.mt: Remove file.
929 * config/powerpc/ppc-eabi.mt: Remove file.
930 * config/s390/s390.mt: Remove file.
931 * config/score/embed.mt: Remove file.
932 * config/sh/embed.mt: Remove file.
933 * config/sh/linux.mt: Remove file.
934 * config/sh/nbsd.mt: Remove file.
935 * config/sh/obsd.mt: Remove file.
936 * config/sh/sh64.mt: Remove file.
937 * config/sparc/embed.mt: Remove file.
938 * config/sparc/fbsd.mt: Remove file.
939 * config/sparc/linux64.mt: Remove file.
940 * config/sparc/linux.mt: Remove file.
941 * config/sparc/nbsd64.mt: Remove file.
942 * config/sparc/nbsd.mt: Remove file.
943 * config/sparc/obsd64.mt: Remove file.
944 * config/sparc/obsd.mt: Remove file.
945 * config/sparc/sol2-64.mt: Remove file.
946 * config/sparc/sol2.mt: Remove file.
947 * config/sparc/sparc64.mt: Remove file.
948 * config/sparc/sparc.mt: Remove file.
949 * config/spu/spu.mt: Remove file.
950 * config/v850/v850.mt: Remove file.
951 * config/vax/nbsd.mt: Remove file.
952 * config/vax/obsd.mt: Remove file.
953 * config/vax/vax.mt: Remove file.
954 * config/xstormy16/xstormy16.mt: Remove file.
955 * config/xtensa/xtensa.mt: Remove file.
957 * configure.tgt (gdb_target_cpu): Remove. Do not set anywhere.
958 (gdb_target): Likewise.
959 (gdb_target_obs): Document. Set for every target to contents
960 of TDEPFILES in former .mt makefile fragment.
962 * configure.ac (TARGET_OBS): Define.
963 (target_makefile_frag, gdb_target_cpu): Do not define.
964 * configure: Regenerate.
966 * Makefile.in (MT_FLAGS): Remove.
967 (GLOBAL_CFLAGS): Update.
968 (TARGET_OBS): Substitute from configure.
969 (DEPFILES): Remove TDEPFILES, add TARGET_OBS.
970 (@target_makefile_frag@): Remove.
972 2007-11-16 Ulrich Weigand <uweigand@de.ibm.com>
974 * config/arm/embed.mt (SIM_OBS, SIM): Remove.
975 * config/avr/avr.mt (SIM_OBS, SIM): Remove.
976 * config/frv/frv.mt (SIM_OBS, SIM): Remove.
977 * config/h8300/h8300.mt (SIM_OBS, SIM): Remove.
978 * config/iq2000/iq2000.mt (SIM_OBS, SIM): Remove.
979 * config/m32c/m32c.mt (SIM_OBS, SIM): Remove.
980 * config/m32r/linux.mt (SIM_OBS, SIM): Remove.
981 * config/m32r/m32r.mt (SIM_OBS, SIM): Remove.
982 * config/m68hc11/m68hc11.mt (SIM_OBS, SIM): Remove.
983 * config/mips/embed.mt (SIM_OBS, SIM): Remove.
984 * config/mips/linux.mt (SIM_OBS, SIM): Remove.
985 * config/mips/nbsd.mt (SIM_OBS, SIM): Remove.
986 * config/mn10300/mn10300.mt (SIM_OBS, SIM): Remove.
987 * config/powerpc/linux.mt (SIM_OBS, SIM): Remove.
988 * config/powerpc/nbsd.mt (SIM_OBS, SIM): Remove.
989 * config/powerpc/ppc-sim.mt: Remove file.
990 * config/sh/embed.mt (SIM_OBS, SIM): Remove.
991 * config/sh/linux.mt (SIM_OBS, SIM): Remove.
992 * config/sh/nbsd.mt (SIM_OBS, SIM): Remove.
993 * config/sh/sh64.mt (SIM_OBS, SIM): Remove.
994 * config/sparc/embed.mt (SIM_OBS, SIM): Remove.
995 * config/v850/v850.mt (SIM_OBS, SIM): Remove.
996 * config/xstormy16/xstormy16.mt (SIM_OBS, SIM): Remove.
998 * configure.tgt (gdb_sim): Document variable.
999 (arm*-*-* | thumb*-*-* | strongarm*-*-* | xscale-*-*): Set it.
1000 (avr-*-*): Likewise.
1001 (frv-*-*): Likewise.
1002 (h8300-*-*): Likewise.
1003 (iq2000-*-*): Likewise.
1004 (m32c-*-*): Likewise.
1005 (m32r*-*-linux*): Likewise.
1006 (m32r*-*-*): Likewise.
1007 (m68hc11*-*-*|m6811*-*-*): Likewise.
1008 (mips*-*-*): Likewise.
1009 (mips*-*-linux*): Likewise.
1010 (mips*-*-netbsd* | mips*-*-knetbsd*-gnu): Likewise.
1011 (mn10300-*-*): Likewise.
1012 (powerpc-*-linux* | powerpc64-*-linux*): Likewise.
1013 (powerpc-*-netbsd* | powerpc-*-knetbsd*-gnu): Likewise.
1014 (powerpc*-*-*): Use ppc-eabi target. Conditionally set gdb_sim.
1016 (sh-*-linux*): Likewise.
1017 (sh*-*-netbsdelf* | sh*-*-knetbsd*-gnu): Likewise.
1018 (sh64-*-elf*): Likewise.
1019 (sparc-*-rtems*): Likewise.
1020 (v850*-*-elf): Likewise.
1021 (xstormy16-*-*): Likewise.
1023 * configure.ac (IGNORE_SIM, IGNORE_SIM_OBS): Do not set.
1024 (SIM, SIM_OBS): Set depending on ${ignore_sim} and ${gdb_sim}.
1025 * configure: Regenerate.
1026 * Makefile.in (SIM, SIM_OBS): Substitute from configure.
1027 (@IGNORE_SIM@, @IGNORE_SIM_OBS@): Remove.
1029 2007-11-16 Ulrich Weigand <uweigand@de.ibm.com>
1031 * configure.tgt (gdb_osabi, build_gdbserver): Comment variables.
1032 (arm*-*-*): Do not set obsolete build_rdi_share variable.
1034 (*-*-freebsd* | *-*-kfreebsd*-gnu): Remove generic case, replace by ...
1035 (alpha*-*-freebsd* | alpha*-*-kfreebsd*-gnu)
1036 (i[34567]86-*-freebsd* | i[34567]86-*-kfreebsd*-gnu)
1037 (sparc*-*-freebsd* | sparc*-*-kfreebsd*-gnu): ... specific cases.
1038 (x86_64-*-freebsd* | x86_64-*-kfreebsd*-gnu): Re-sort.
1040 (xscale-*-*): Merge into arm*-*-* case.
1041 (fido-*-elf*): Merge into m68*-*-elf* case.
1042 (m68*-*-aout*, m68*-*-coff*, m68*-*-elf*, m68*-*-rtems*,
1043 m68*-*-uclinux*): Merge cases.
1044 (powerpc-*-linux*, powerpc64-*-linux*): Merge cases.
1045 (sh-*-coff*, sh-*-elf*): Merge into sh* case.
1047 2007-11-16 Ulrich Weigand <uweigand@de.ibm.com>
1049 * configure.tgt: Reformat main case statement.
1051 2007-11-16 Ulrich Weigand <uweigand@de.ibm.com>
1053 * configure.ac (hostfile, targetfile): Remove.
1054 (GDB_XM_FILE, GDB_TM_FILE): Do not define.
1055 (xm_h, tm_h): Likewise.
1056 (DEPRECATED_TM_FILE, XM_FILE): Do not substitute into Makefile.
1057 * configure, config.in: Regenerate.
1059 * Makefile.in (xm_h, tm_h): Remove. Update dependencies.
1060 (TAGS): Do not consider DEPRECATED_TM_FILE or XM_FILE.
1061 (clean, local-maintainer-clean): Do not remove xm.h or tm.h.
1062 * defs.h: Do not include "xm.h" or "tm.h".
1064 * gdbarch.sh (verify_gdbarch): Do not dump GDB_XM_FILE or GDB_TM_FILE.
1065 * gdbarch.c: Regenerate.
1067 * config/score/embed.mt: Remove obsolete comment.
1069 2007-11-16 Markus Deuling <deuling@de.ibm.com>
1071 * gdbarch.sh (cannot_fetch_register, cannot_store_register): Add gdbarch
1073 * gdbarch.{c,h}: Regenerate.
1075 * alpha-tdep.c (alpha_cannot_fetch_register)
1076 (alpha_cannot_store_register): Add gdbarch as parameter. Replace
1077 current_gdbarch by gdbarch.
1078 * cris-tdep.c (cris_cannot_fetch_register, cris_cannot_store_register)
1079 (crisv32_cannot_fetch_register)
1080 (crisv32_cannot_store_register): Likewise.
1081 * arch-utils.c (cannot_register_not): Likewise.
1082 * arch-utils.h (cannot_register_not): Likewise.
1083 * hppa-tdep.c (hppa32_cannot_store_register)
1084 (hppa32_cannot_store_register, hppa64_cannot_store_register)
1085 (hppa64_cannot_fetch_register): Likewise.
1086 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register)
1087 (mipsnbsd_cannot_store_register): Likewise.
1089 2007-11-16 Markus Deuling <deuling@de.ibm.com>
1091 * m32r-rom.c (m32r_supply_register): Use get_regcache_arch to get at
1092 the current architecture by regcache.
1093 * ppcnbsd-nat.c (ppcnbsd_supply_pcb): Likewise.
1094 * ppc-linux-nat.c (fetch_altivec_register, fetch_spe_register)
1095 (fetch_register, supply_vrregset, fetch_ppc_registers)
1096 (store_altivec_register, store_spe_register, store_register)
1097 (fill_vrregset, store_ppc_registers): Likewise.
1098 * ppcobsd-nat.c (ppcobsd_supply_pcb): Likewise.
1099 * win32-nat.c (do_win32_fetch_inferior_registers)
1100 (do_win32_store_inferior_registers): Likewise.
1101 * procfs.c (procfs_fetch_registers, procfs_store_registers): Likewise.
1102 * remote-m32r-sdi.c (m32r_fetch_registers)
1103 (m32r_store_registers): Likewise.
1104 * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register): Likewise.
1106 * trad-frame.c (trad_frame_alloc_saved_regs): Replace current_gdbarch by
1108 * user-regs.c (user_reg_map_name_to_regnum): Likewise.
1109 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call)
1110 (do_ppc_sysv_return_value, ppc64_sysv_abi_push_dummy_call)
1111 (ppc64_sysv_abi_return_value): Likewise.
1112 * m32c-tdep.c (m32c_register_reggroup_p): Likewise.
1113 * m2-lang.c (build_m2_types): Likewise.
1114 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache
1115 * ppcnbsd-tdep.c (ppcnbsd_sigtramp_cache_init): Likewise.
1116 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_cache): Likewise.
1117 * rs6000-tdep.c (ppc_dwarf2_frame_init_reg): Likewise.
1119 * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Use get_frame_arch to
1120 get at the current architecture by frame_info.
1121 * gcore.c (derive_stack_segment): Likewise.
1123 * shnbsd-nat.c (GETREGS_SUPPLIES): Add gdbarch parameter.
1124 (shnbsd_fetch_inferior_registers, shnbsd_store_inferior_registers): Add
1125 gdbarch to GETREGS_SUPPLIES call.
1127 2007-11-16 Ulrich Weigand <uweigand@de.ibm.com>
1129 * elfread.c (ST_REGULAR, ST_DYNAMIC, ST_SYNTHETIC): New defines.
1130 (elf_symtab_read): Rename DYNAMIC argument to TYPE. Do not access
1131 ELF-private symbol data when processing synthetic symbols. Use
1132 udata.p to get at size of ppc64 synthetic 'dot' symbols.
1133 (elf_symfile_read): Pass TYPE argument to elf_symtab_read.
1135 2007-11-15 Doug Evans <dje@google.com>
1137 * buildsym.h (subfiles): Move ...
1138 * buildsym.c (subfiles): ... to here and make static.
1140 * symmisc.c (maintenance_info_symtabs): Print linetable info.
1142 2007-11-15 Markus Deuling <deuling@de.ibm.com>
1144 * mipsnbsd-tdep.h (SIZEOF_STRUCT_REG, SIZEOF_STRUCT_FPREG): Remove
1146 2007-11-15 Markus Deuling <deuling@de.ibm.com>
1148 * arm-tdep.c (arm_prologue_this_id): Replace LOWEST_PC by its
1149 expression and use get_frame_arch to replace current_gdbarch by frame's
1151 * arm-tdep.h (LOWEST_PC): Remove
1153 2007-11-15 Vladimir Prus <vladimir@codesourcery.com>
1155 Apply const qualifier to some users of bp_location.
1156 * breakpoint.h (struct bpstats): Make
1157 the breakpoint_at field point at const bp_location.
1158 * breakpoint.c (bpstat_alloc): Accept const
1160 (breakpoint_here_p, breakpoint_inserted_here_p)
1161 (software_breakpoint_inserted_here_p)
1162 (breakpoint_thread_match, bpstat_stop_status)
1163 (read_memory_nobpt, bpstat_have_active_hw_watchpoints): Use
1164 const bp_location for iteration.
1165 (print_it_typical, print_bp_stop_message): Use
1166 const bp_location variable.
1168 2007-11-15 Vladimir Prus <vladimir@codesourcery.com>
1170 Make mark_breakpoints_out static.
1171 * breakpoint.h (mark_breakpoints_out): Remove
1173 * breakpoint.c (mark_breakpoints_out): Make static.
1175 2007-11-15 Vladimir Prus <vladimir@codesourcery.com>
1177 Prevent clear_command from directly modifying breakpoint list.
1178 * Makefile.in (breakpoint_h): Update dependency.
1179 * breakpoint.c (clear_command): Do not remove
1180 breakpoints from breakpoint_chain. Collect breakpoints
1181 to delete in a vector.
1182 * breakpoint.h (breakpoint_p): New typedef for pointer to
1183 breakpoint. Register vector of breakpoint_p.
1185 2007-11-15 Vladimir Prus <vladimir@codesourcery.com>
1187 Remove 'run_cleanup'.
1188 * defs.h (do_run_cleanups, make_run_cleanup): Remove
1190 * infcmd.c (run_command_1): Call clear_solib instead
1192 * jv-lang.c (java_rerun_cleanup): Remove, for lack of
1194 * solib.c (solib_cleanup_queued, do_clear_solib): Remove.
1195 (update_solib_lib): Don't setup run cleanup.
1196 (no_shared_libraries): Call clear_solib, not do_clear_solib.
1197 * utils.c (run_cleanup_chain, make_run_cleanup)
1198 (do_run_cleanups): Remove.
1200 2007-11-15 Vladimir Prus <vladimir@codesourcery.com>
1202 Remove CLEAR_SOLIB use.
1203 * corelow.c (core_close): Don't check for CLEAR_SOLIB.
1204 * infcmd.c (attach_command): Likewise.
1206 2007-11-14 Doug Evans <dje@google.com>
1208 * buildsym.c (start_subfile,start_symtab): Doc fixes.
1210 2007-11-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
1212 * tui/tui-data.c (tui_prev_win): Guard against NULL.
1214 2007-11-12 Markus Deuling <deuling@de.ibm.com>
1216 * gdbarch.sh (gdbarch_alloc): Replace current_gdbarch by gdbarch. Remove
1218 (verify_gdbarch, gdbarch_dump): Likewise.
1219 (do_read): Update comment.
1220 (addr_bit, bfd_arch_info, target_desc, long_long_bit, floatformat)
1221 (ptr_bit, name_of_malloc): Replace current_gdbarch by gdbarch.
1222 * gdbarch.{c,h}: Regenerate.
1224 2007-11-12 Markus Deuling <deuling@de.ibm.com>
1226 * xtensa-tdep.c (ARG_1ST): Replace ARGS_FIRST_REG by its expression.
1227 (ARGS_FIRST_REG): Remove.
1228 (areg_numer): New function.
1229 (xtensa_pseudo_register_read, xtensa_frame_prev_register)
1230 (xtensa_extract_return_value, xtensa_store_return_value)
1231 (xtensa_frame_cache): Replace AREG_NUMBER by areg_number.
1232 (AREG_NUMBER): Remove.
1233 (XTENSA_IS_ENTRY, ARG_NOF, ARG_1ST): Add gdbarch as parameter.
1234 (xtensa_frame_cache): Update use of XTENSA_IS_ENTRY.
1235 (xtensa_push_dummy_call): Update use of ARG_NOF.
1236 (extract_call_winsize): Add gdbarch as parameter. Replace
1237 current_gdbarch by gdbarch.
1238 (xtensa_extract_return_value, xtensa_store_return_value): Update call
1239 of extract_call_winsize.
1241 2007-11-10 Joel Brobecker <brobecker@adacore.com>
1243 * NEWS: Add entry for new set/show print frame-args command.
1245 2007-11-09 Kevin Buettner <kevinb@redhat.com>
1247 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Add missing
1248 register number to map. Adjust warning check and error/warning
1249 return value code to match expectations of this function's callers.
1251 2007-11-09 Joel Brobecker <brobecker@adacore.com>
1253 * stack.c (print_this_frame_argument_p): Handle arguments passed
1254 by reference properly.
1256 2007-11-09 Joel Brobecker <brobecker@adacore.com>
1258 * stack.c (print_frame_arguments_choices): New static global.
1259 (print_frame_arguments): Likewise.
1260 (print_this_frame_argument_p): New function.
1261 (print_frame_args): Print the argument value only when appropriate.
1262 (_initialize_task): Add new "set/show print frame-arguments" command.
1264 2007-11-09 Luis Machado <luisgpm@br.ibm.com>
1266 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Move
1267 saved_dabr_value assignment to the correct position.
1269 2007-11-09 Markus Deuling <deuling@de.ibm.com>
1271 * arch-utils.c (generic_convert_register_p): Add gdbarch as parameter.
1272 * arch-utils.h (generic_convert_register_p): Likewise.
1274 2007-11-09 Markus Deuling <deuling@de.ibm.com>
1276 * gdbarch.sh (convert_register_p): Add gdbarch as parameter.
1277 * ia64-tdep.c (ia64_convert_register_p): Likewise.
1278 * i387-tdep.c (i387_convert_register_p): Likewise.
1279 * i387-tdep.h (i387_convert_register_p): Likewise.
1280 * alpha-tdep.c (alpha_convert_register_p): Likewise.
1281 * gdbarch.{c,h}: Regenerate.
1283 * rs6000-tdep.c (rs6000_convert_register_p): Add gdbarch as parameter.
1284 Replace current_gdbarch by gdbarch.
1285 * mips-tdep.c (mips_convert_register_p): Likewise.
1286 * m68k-tdep.c (m68k_convert_register_p): Likewise.
1287 * i386-tdep.c (i386_convert_register_p): Likewise.
1289 2007-11-08 Aleksandar Ristovski <aristovski@qnx.com>
1291 * gdb_string.h: Include <strings.h>.
1293 2007-11-08 Vladimir Prus <vladimir@codesourcery.com>
1295 * breakpoint.c (break_command_1): Remove
1296 pending_bp parameter.
1297 (create_breakpoint): Likewise.
1298 (create_breakpoints): Likewise. Adjust call to
1300 (break_command_1): Likewise. Adjust call to
1302 (do_captured_breakpoint): Adjust call to
1304 (break_command, tbreak_command, hbreak_command)
1305 (stopin_command, stopat_command): Adjust call
1308 2007-11-07 Joseph Myers <joseph@codesourcery.com>
1309 Daniel Jacobowitz <dan@codesourcery.com>
1311 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Right-align
1312 struct values smaller than one doubleword; left-align those
1313 larger. Pass structs containing a single floating-point value in
1316 2007-11-07 Joseph Myers <joseph@codesourcery.com>
1317 Daniel Jacobowitz <dan@codesourcery.com>
1319 * gdbtypes.c (floatformats_ibm_long_double): New.
1320 * gdbtypes.h (floatformats_ibm_long_double): Declare.
1321 * ia64-tdep.c (floatformat_ia64_ext): Update for addition of
1323 * mips-tdep.c (n32n64_floatformat_always_valid,
1324 floatformat_n32n64_long_double_big, floatformats_n32n64_long):
1326 (mips_gdbarch_init): Use floatformats_ibm_long_double instead of
1327 floatformats_n32n64_long.
1328 * ppc-linux-tdep.c (ppc_linux_init_abi): Use 128-bit IBM long
1330 * doublest.c (convert_floatformat_to_doublest,
1331 convert_doublest_to_floatformat): Handle split floating-point
1333 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Handle IBM long
1335 (ppc64_sysv_abi_push_dummy_call): Likewise.
1336 (do_ppc_sysv_return_value): Handle IBM long double return.
1338 2007-11-07 Vladimir Prus <vladimir@codesourcery.com>
1340 Fix crash when a variable object being deleted
1341 has any of its children deleted previously.
1343 * varobj.c (delete_variable_1): Don't recurse
1344 into deleted children.
1346 2007-11-07 Markus Deuling <deuling@de.ibm.com>
1348 * gdbarch.sh (legacy_virtual_frame_pointer): Add gdbarch parameter.
1349 * gdbarch.{c,h}: Regenerate.
1350 * arch-utils.c (legacy_virtual_frame_pointer): Add gdbarch parameter.
1351 Replace current_gdbarch by gdbarch.
1352 * m32c-tdep.c (m32c_virtual_frame_pointer): Likewise.
1353 * mips-tdep.c (mips_virtual_frame_pointer): Likewise.
1354 * spu-tdep.c (spu_virtual_frame_pointer): Likewise.
1356 2007-11-07 Markus Deuling <deuling@de.ibm.com>
1358 * shnbsd-tdep.c (shnbsd_supply_gregset, shnbsd_collect_gregset): Use
1359 get_regcache_arch to get at the current architecture by regcache.
1360 * xstormy16-tdep.c (xstormy16_frame_prev_register): Use get_frame_arch
1361 to get at the current architecture by frame_info.
1362 * fbsd-nat.c (fbsd_make_corefile_notes): Use get_regcache_arch to get
1363 at the current architecture by regcache.
1364 * gnu-v3-abi.c (gnuv3_skip_trampoline): Use get_frame_arch to get at
1365 the current architecture by frame_info.
1366 (build_gdb_vtable_type): Replace current_gdbarch by gdbarch.
1367 * aix-thread.c (special_register_p): Add gdbarch as parameter.
1368 (fetch_regs_kernel_thread, store_regs_kernel_thread): Add gdbarch to
1369 caller of special_register_p.
1371 2007-11-07 Markus Deuling <deuling@de.ibm.com>
1373 * infcall.c (call_function_by_hand): Use get_frame_arch to get at the
1374 current architecture by frame_info.
1376 2007-11-07 Markus Deuling <deuling@de.ibm.com>
1378 * xtensa-tdep.h (SIZEOF_GREGSET, XTENSA_ELF_NGREG) Remove.
1380 2007-11-07 Markus Deuling <deuling@de.ibm.com>
1382 * s390-nat.c (supply_gregset, fill_gregset): Use get_regcache_arch to
1383 get at the current architecture by regcache.
1384 (SUBOFF): Add gdbarch to macro definition.
1386 2007-11-07 Markus Deuling <deuling@de.ibm.com>
1388 * gdbarch.sh (breakpoint_from_pc): Add gdbarch parameter.
1389 * gdbarch.{c,h}: Regenerate.
1391 * xtensa-tdep.c (xtensa_breakpoint_from_pc): Add gdbarch parameter.
1392 Replace current_gdbarch by gdbarch.
1393 * sh-tdep.c (sh_breakpoint_from_pc): Likewise.
1394 * sh64-tdep.c (sh64_breakpoint_from_pc): Likewise.
1395 * score-tdep.c (score_breakpoint_from_pc): Likewise.
1396 * mips-tdep.c (mips_breakpoint_from_pc): Likewise.
1397 * m32r-tdep.c (m32r_breakpoint_from_pc): Likewise.
1398 * iq2000-tdep.c (iq2000_breakpoint_from_pc): Likewise.
1399 * arm-tdep.c (arm_breakpoint_from_pc): Likewise.
1401 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Add gdbarch
1403 * vax-tdep.c (vax_breakpoint_from_pc): Likewise.
1404 * v850-tdep.c (v850_breakpoint_from_pc): Likewise.
1405 * spu-tdep.c (spu_breakpoint_from_pc): Likewise.
1406 * sparc-tdep.c (sparc_breakpoint_from_pc): Likewise.
1407 * s390-tdep.c (s390_breakpoint_from_pc): Likewise.
1408 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Likewise.
1409 * mt-tdep.c (mt_breakpoint_from_pc): Likewise.
1410 * mep-tdep.c (mep_breakpoint_from_pc): Likewise.
1411 * m88k-tdep.c (m88k_breakpoint_from_pc): Likewise.
1412 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Likewise.
1413 * m32c-tdep.c (m32c_breakpoint_from_pc): Likewise.
1414 * ia64-tdep.c (ia64_breakpoint_from_pc): Likewise.
1415 * i386-tdep.c (i386_breakpoint_from_pc): Likewise.
1416 * hppa-tdep.c (hppa_breakpoint_from_pc): Likewise.
1417 * h8300-tdep.c (h8300_breakpoint_from_pc): Likewise.
1418 * frv-tdep.c (frv_breakpoint_from_pc): Likewise.
1419 * cris-tdep.c (cris_breakpoint_from_pc): Likewise.
1420 * avr-tdep.c (avr_breakpoint_from_pc): Likewise.
1421 * alpha-tdep.c (alpha_breakpoint_from_pc): Likewise.
1422 * m68k-tdep.c (m68k_local_breakpoint_from_pc): Likewise.
1424 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Add gdbarch parameter.
1425 Replace current_gdbarch by gdbarch.
1426 (rs6000_software_single_step): Use get_frame_arch to get at the
1427 current architecture by frame_info. Add gdbarch to
1428 rs6000_breakpoint_from_pc call.
1430 2007-11-07 Markus Deuling <deuling@de.ibm.com>
1432 * frv-tdep.c (frv_register_name, frv_check_watch_resources): Replace
1433 macro CURRENT_VARIANT by its expression.
1434 (CURRENT_VARIANT): Remove.
1435 (frv_check_watch_resources): Add gdbarch parameter.
1437 2007-11-07 Markus Deuling <deuling@de.ibm.com>
1439 * MAINTAINERS (Write After Approval): Add self.
1441 2007-11-05 Ulrich Weigand <uweigand@de.ibm.com>
1443 * features/rs6000/power-core.xml: Use uint32 as register type.
1444 * features/rs6000/power64-core.xml: Use uint64/uint32 as register type.
1445 * features/rs6000/powerpc-32.c: Regenerate.
1446 * features/rs6000/powerpc-403.c: Regenerate.
1447 * features/rs6000/powerpc-403gc.c: Regenerate.
1448 * features/rs6000/powerpc-505.c: Regenerate.
1449 * features/rs6000/powerpc-602.c: Regenerate.
1450 * features/rs6000/powerpc-603.c: Regenerate.
1451 * features/rs6000/powerpc-604.c: Regenerate.
1452 * features/rs6000/powerpc-64.c: Regenerate.
1453 * features/rs6000/powerpc-7400.c: Regenerate.
1454 * features/rs6000/powerpc-750.c: Regenerate.
1455 * features/rs6000/powerpc-860.c: Regenerate.
1456 * features/rs6000/powerpc-e500.c: Regenerate.
1458 2007-11-05 Joel Brobecker <brobecker@adacore.com>
1460 * breakpoint.c (set_raw_breakpoint_without_location): Make static.
1462 2007-11-05 Joel Brobecker <brobecker@adacore.com>
1464 * breakpoint.h (create_solib_load_event_breakpoint)
1465 (create_solib_unload_event_breakpoint)
1466 (create_fork_event_catchpoint, create_vfork_event_catchpoint)
1467 (create_exec_event_catchpoint): Delete declaration.
1468 * breakpoint.c (create_solib_load_event_breakpoint)
1469 (solib_load_unload_1, create_solib_unload_event_breakpoint): Delete.
1470 (create_fork_event_catchpoint, create_vfork_event_catchpoint)
1471 (create_exec_event_catchpoint): Make static.
1473 2007-11-05 Joel Brobecker <brobecker@adacore.com>
1475 * breakpoint.h (set_breakpoint_sal): Remove declaration.
1476 * breakpoint.c (set_breakpoint_sal): Delete.
1478 2007-11-05 Joel Brobecker <brobecker@adacore.com>
1480 * buildsym.c (finish_block): Remove "#if 1"/"#endif" brackets.
1481 (make_blockvector): Likewise. Remove FIXME comment.
1483 2007-11-05 Luis Machado <luisgpm@br.ibm.com>
1485 * printcmd.c: (printf_command): Add support for new DFP
1486 modifiers %H, %D and %DD.
1487 * configure.ac: Add check for DECFLOAT printf support.
1488 * configure: Regenerated.
1490 2007-11-02 Ulrich Weigand <uweigand@de.ibm.com>
1492 * gdbtypes.h (struct cplus_struct_type): Remove runtime_ptr member.
1493 (TYPE_RUNTIME_PTR, TYPE_VTABLE, TYPE_HAS_VTABLE,
1494 TYPE_PRIMARY_BASE, TYPE_VIRTUAL_BASE_LIST): Remove macros.
1495 (HP_ACC_VFUNC_START, HP_ACC_VBASE_START, HP_ACC_TYPEINFO_OFFSET,
1496 HP_ACC_TOP_OFFSET_OFFSET): Likewise.
1497 (has_vtable, primary_base_class, virtual_base_list_length,
1498 virtual_base_list_length_skip_primaries, virtual_base_index,
1499 virtual_base_index_skip_primaries, class_index_in_primary_list,
1500 count_virtual_fns): Remove prototypes.
1501 * gdbtypes.c (has_vtable, primary_base_class, current_vbase_list,
1502 virtual_base_list_aux, virtual_base_list, virtual_base_list_length,
1503 virtual_base_list_length_skip_primaries, virtual_base_index,
1504 virtual_base_index_skip_primaries, class_index_in_primary_list,
1505 count_virtual_fns): Remove.
1507 * cp-valprint.c (cp_print_hpacc_virtual_table_entries): Remove.
1508 (hpacc_vtbl_ptr_name, hpacc_vtbl_ptr_type_name): Remove.
1509 (cp_print_value_fields): Remove support for HP aCC vtables.
1510 (cp_print_value): Likewise.
1511 * c-typeprint.c (c_type_print_base): Likewise.
1513 * value.h (find_rt_vbase_offset): Remove prototype.
1514 * valops.c (find_rt_vbase_offset): Remove.
1515 (search_struct_method): Remove support for HP aCC vtables.
1516 (find_method_list): Likewise.
1518 2007-11-02 Ulrich Weigand <uweigand@de.ibm.com>
1520 * language.h (struct language_defn): Remove la_builtin_type_vector
1521 and string_char_type members.
1522 * language.c (language_string_char_type): No longer consult
1523 la->string_char_type.
1524 (language_lookup_primitive_type_by_name): No longer consult
1525 current_language->la_builtin_type_vector.
1527 * language.c (unknown_language_defn, auto_language_defn,
1528 local_language_defn): Adapt initializer.
1529 * ada-lang.c (ada_language_defn): Likewise.
1530 * c-lang.c (c_language_defn, cplus_language_defn, asm_language_defn,
1531 minimal_language_defn): Likewise.
1532 * f-lang.c (f_language_defn): Likewise.
1533 * jv-lang.c (java_language_defn): Likewise.
1534 * m2-lang.c (m2_language_defn): Likewise.
1535 * objc-lang.c (objc_language_defn): Likewise.
1536 * p-lang.c (pascal_language_defn): Likewise.
1537 * scm-lang.c (scm_language_defn): Likewise.
1539 2007-11-02 Markus Deuling <deuling@de.ibm.com>
1541 * frame.c (frame_id_inner): Add gdbarch parameter. Replace
1542 current_gdbarch by gdbarch.
1543 (frame_find_by_id, get_prev_frame_1): Use get_frame_arch to get at the
1544 current architecture by frame_info.
1545 * frame.h (frame_id_inner): Add gdbarch parameter.
1546 * stack.c (return_command): Use get_frame_arch to get at the current
1547 architecture by frame_info. Update call of frame_id_inner.
1548 * infrun.c (handle_inferior_event): Likewise.
1549 * dummy-frame.c (dummy_frame_push): Use get_regcache_arch to get at the
1550 current architecture by regcache. Update call of frame_id_inner.
1552 2007-11-02 Markus Deuling <deuling@de.ibm.com>
1554 * gdbarch.sh (register_name): Add gdbarch parameter.
1555 * gdbarch.{c,h}: Regenerate.
1557 * target-descriptions.c (tdesc_register_name): Add gdbarch parameter.
1558 (tdesc_register_name): Replace current_gdbarch by gdbarch.
1559 * target-descriptions.h (tdesc_register_name): Add gdbarch parameter.
1561 * xstormy16-tdep.c (xstormy16_register_name): Add gdbarch parameter.
1562 * vax-tdep.c (vax_register_name): Add gdbarch parameter.
1563 * spu-tdep.c (spu_register_name): Add gdbarch parameter.
1564 * s390-tdep.c (s390_register_name): Add gdbarch parameter.
1565 * mt-tdep.c (mt_register_name): Add gdbarch parameter.
1566 (mt_registers_info): Replace current_gdbarch by gdbarch.
1567 (mt_register_reggroup_p): Add gdbarch to mt_register_name call.
1568 * mips-tdep.c (mips_register_name): Add gdbarch parameter. Replace
1569 current_gdbarch by gdbarch.
1570 (mips_register_name): Add gdbarch to tdesc_register_name call.
1571 * mep-tdep.c (mep_register_name): Add gdbarch parameter. Replace
1572 current_gdbarch by gdbarch.
1573 (mep_register_reggroup_p): Add gdbarch to mep_register_name call.
1574 * m32c-tdep.c (m32c_register_name): Add gdbarch parameter. Replace
1575 current_gdbarch by gdbarch.
1576 * m88k-tdep.c (m88k_register_name): Add gdbarch parameter.
1577 * m68k-tdep.c (m68k_register_name): Add gdbarch parameter.
1578 * m32r-tdep.c (m32r_register_name): Add gdbarch parameter.
1579 (m32r_frame_unwind_cache): Use get_frame_arch to get at the current
1580 architecture by frame_info.
1581 * iq2000-tdep.c (iq2000_register_name): Add gdbarch parameter.
1582 * ia64-tdep.c (ia64_register_name): Add gdbarch parameter.
1583 * hppa-tdep.c (hppa32_register_name, hppa64_register_name): Add gdbarch
1585 * h8300-tdep.c (h8300_register_name, h8300s_register_name)
1586 (h8300sx_register_name): Add gdbarch parameter.
1587 * cris-tdep.c (cris_register_name, crisv32_register_name): Add
1588 gdbarch parameter. Replace current_gdbarch by gdbarch.
1589 (cris_gdbarch_init): Replace current_gdbarch by gdbarch (comment).
1590 * avr-tdep.c (avr_register_name): Add gdbarch parameter.
1591 * arm-tdep.c (arm_register_name): Add gdbarch paramete
1592 * amd64-tdep.c (amd64_register_name): Add gdbarch parameter. Update
1594 * amd64-tdep.h (amd64_register_name): Add gdbarch parameter.
1595 * amd64-linux-tdep.c (amd64_linux_register_name): Add gdbarch parameter.
1596 * alpha-tdep.c (alpha_register_name): Add gdbarch parameter.
1597 (alpha_cannot_fetch_register, alpha_cannot_store_register): Update call
1598 of alpha_register_name.
1599 * frv-tdep.c (frv_register_name): Add gdbarch parameter.
1600 * i386-tdep.c (i386_register_name): Add gdbarch parameter. Replace
1601 current_gdbarch by gdbarch.
1602 (i386_register_type): Replace ?current_gdbarch by gdbarch.
1603 * i386-tdep.h (i386_register_name): Add gdbarch parameter.
1604 * i386-linux-tdep.c (i386_linux_register_name): Add gdbarch parameter.
1606 * m68hc11-tdep.c (m68hc11_register_name): Add gdbarch parameter.
1607 (m68hc11_register_reggroup_p): Add gdbarch to call of
1608 m68hc11_register_name.
1609 * mn10300-tdep.c (mn10300_generic_register_name, am33_register_name)
1610 (am33_2_register_name): Add gdbarch parameter.
1611 (mn10300_frame_unwind_cache): Use get_frame_arch to get at the current
1612 architecture by frame_info.
1613 (mn10300_dump_tdep): Replace current_gdbarch by gdbarch.
1614 * rs6000-tdep.c (rs6000_register_name): Add gdbarch parameter. Replace
1615 current_gdbarch by gdbarch.
1616 * score-tdep.c (score_register_name): Add gdbarch parameter.
1617 (score_return_value, score_push_dummy_call): Replace current_gdbarch
1619 * sh64-tdep.c (sh64_register_name): Add gdbarch parameter.
1620 (sh64_compact_reg_base_num, sh64_register_convert_to_virtual)
1621 (sh64_register_convert_to_raw, sh64_fv_reg_base_num)
1622 (sh64_dr_reg_base_num, sh64_fpp_reg_base_num): Add gdbarch parameter
1623 and update caller. Replace current_gdbarch by gdbarch.
1624 (sh64_extract_return_value, sh64_store_return_value): Use
1625 get_regcache_arch to get at the current architecture by regcache.
1626 * sh-tdep.c (sh_sh_register_name, sh_sh3_register_name)
1627 (sh_sh3e_register_name, sh_sh2e_register_name, sh_sh2a_register_name)
1628 (sh_sh2a_nofpu_register_name, sh_sh_dsp_register_name)
1629 (sh_sh3_dsp_register_name, sh_sh4_register_name)
1630 (sh_sh4_nofpu_register_name, sh_sh4al_dsp_register_name): Add gdbarch
1632 (fv_reg_base_num, dr_reg_base_num, sh_justify_value_in_reg)
1633 (sh_next_flt_argreg): Add gdbarch parameter and update caller. Replace
1634 current_gdbarch by gdbarch.
1635 (sh_extract_return_value_fpu, sh_store_return_value_fpu): Use
1636 get_regcache_arch to get at the current architecture by regcache.
1637 * sparc-tdep.c (sparc32_register_name): Add gdbarch parameter.
1638 * sparc64-tdep.c (sparc64_register_name): Add gdbarch parameter.
1639 * v850-tdep.c (v850_register_name, v850e_register_name): Add gdbarch
1641 (v850_unwind_sp, v850_unwind_pc): Replace current_gdbarch by gdbarch.
1642 * xtensa-tdep.c (xtensa_register_name): Add gdbarch parameter. Replace
1643 current_gdbarch by gdbarch.
1644 (xtensa_pseudo_register_read, xtensa_pseudo_register_write)
1645 (xtensa_frame_prev_register): Add gdbarch parameter to
1646 xtensa_register_name call.
1648 2007-10-31 Ulrich Weigand <uweigand@de.ibm.com>
1650 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Fall back to
1651 find_solib_trampoline_target if PC is not in .plt section.
1653 2007-10-31 Ulrich Weigand <uweigand@de.ibm.com>
1655 * elfread.c (elf_symtab_read): When constructing a solib trampoline
1656 minimal symbol from an undefined dynamic symbol, use proper section.
1658 2007-10-31 Markus Deuling <deuling@de.ibm.com>
1660 * arm-linux-nat.c (fetch_register, fetch_regs): Use get_regcache_arch
1661 to get at the current architecture by regcache.
1663 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1665 * libunwind-frame.c (libunwind_frame_sniffer)
1666 libunwind_frame_prev_register, libunwind_sigtramp_frame_sniffer)
1667 (libunwind_frame_cache): Use get_frame_arch to get at the current
1668 architecture by frame_info.
1669 (libunwind_get_reg_special): Replace current_gdbarch by gdbarch.
1671 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1673 * iq2000-tdep.c (iq2000_frame_prev_register): Use get_frame_arch to get
1674 at the current architecture by frame_info.
1676 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1678 * inf-child.c (inf_child_fetch_inferior_registers): Use
1679 get_regcache_arch to get at the current architecture by regcache.
1681 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1683 * inf-ptrace.c (inf_ptrace_fetch_registers)
1684 (inf_ptrace_fetch_register, inf_ptrace_store_register)
1685 (inf_ptrace_store_registers): Use get_regcache_arch to get at the
1686 current architecture by regcache.
1688 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1690 * hpux-thread.c (hpux_thread_fetch_registers)
1691 (hpux_thread_store_registers): Use get_regcache_arch to get at the
1692 current architecture by regcache.
1694 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1696 * hppa-tdep.c (hppa_frame_cache): Use get_frame_arch to get at the
1697 current architecture by frame_info.
1699 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1701 * go32-nat.c (fetch_register, go32_fetch_registers, store_register)
1702 (go32_store_registers): Use get_regcache_arch to get at the current
1703 architecture by regcache.
1705 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1707 * gdbtypes.c (gdbtypes_post_init): Replace current_gdbarch by gdbarch.
1709 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1711 * frv-linux-tdep.c (frv_linux_sigtramp_frame_cache): Use get_frame_arch
1712 to get at the current architecture by frame_info.
1714 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1716 * f-lang.c (build_fortran_types): Replace current_gdbarch by gdbarch.
1718 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1720 * core-regset.c (fetch_core_registers): Use get_regcache_arch to get at
1721 the current architecture by regcache.
1723 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1725 * corelow.c (get_core_registers): Use get_regcache_arch to get at the
1726 current architecture by regcache.
1728 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1730 * bsd-uthread.c (bsd_uthread_fetch_registers)
1731 (bsd_uthread_store_registers): Use get_regcache_arch to get at the
1732 current architecture by regcache.
1734 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1736 * avr-tdep.c (avr_frame_unwind_cache, avr_frame_prev_register): Use
1737 get_frame_arch to get at the current architecture by frame_info.
1739 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1741 * arm-tdep.c (arm_get_next_pc): Replace current_gdbarch by gdbarch.
1743 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1745 * armnbsd-nat.c (arm_supply_gregset, fetch_register, store_register)
1746 (store_regs): Use get_regcache_arch to get at the current architecture
1749 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1751 * arm-linux-tdep.c (arm_linux_supply_gregset): Use get_regcache_arch
1752 to get at the current architecture by regcache.
1754 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1756 * alphabsd-nat.c (alphabsd_fetch_inferior_registers)
1757 (alphabsd_store_inferior_registers): Use get_regcache_arch to get at
1758 the current architecture by regcache.
1760 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1762 * ada-lang.c (ada_language_arch_info): Replace current_gdbarch by
1765 2007-10-30 Daniel Jacobowitz <dan@codesourcery.com>
1767 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Check the selected
1768 soft float and vector ABIs. Support the generic vector ABI for
1770 (do_ppc_sysv_return_value): Likewise. Correct argument types and
1772 (ppc64_sysv_abi_push_dummy_call): Assert that floating point is
1774 * ppc-tdep.h (enum powerpc_vector_abi): New.
1775 (struct gdbarch_tdep): Add soft_float and vector_abi.
1776 * rs6000-tdep.c (setpowerpccmdlist, showpowerpccmdlist)
1777 (powerpc_soft_float_global, powerpc_vector_strings)
1778 (powerpc_vector_abi_global, powerpc_vector_abi_string): New.
1779 (rs6000_gdbarch_init): Check for soft-float and vector ABI markings.
1780 (set_powerpc_command, show_powerpc_command, powerpc_set_soft_float)
1781 (powerpc_set_vector_abi): New.
1782 (_initialize_rs6000_tdep): Register "set powerpc" and "show powerpc"
1784 * Makefile.in (elf_ppc_h): New.
1785 (rs6000-tdep.o): Update.
1787 2007-10-29 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
1789 * ppc-linux-tdep.c (ppc32_linux_reg_offsets): Corrected
1790 swapped offsets and VRSAVE offset.
1791 (ppc64_linux_reg_offsets): Corrected swapped offsets.
1792 (ppc32_linux_vrregset): Added.
1793 (ppc_linux_regset_from_core_section): Added support for
1794 .reg-ppc-vmx section.
1795 * ppc-tdep.h (ppc_altivec_support_p): Declare.
1796 (ppc_supply_vrregset): Declare.
1797 (ppc_collect_vrregset): Declare.
1798 * rs6000-tdep.c (ppc_altivec_support_p): Added.
1799 (ppc_supply_vrregset): Added.
1800 (ppc_collect_vrregset): Added.
1801 * corelow.c (get_core_registers): Added support for
1802 .reg-ppc-vmx section.
1804 2007-10-29 Joel Brobecker <brobecker@adacore.com>
1808 2007-10-26 Jim Blandy <jimb@codesourcery.com>
1810 * ax-gdb.h (expr_to_address_and_size): Delete declaration for
1813 * tracepoint.c (tracepoint_operation): Report the deletion event
1814 after we have unlinked the tracepoint from the list, and use the
1815 proper tracepoint number.
1817 * ax-gdb.c (expr_to_agent): Delete unused function.
1818 (expr_to_address_and_size): Delete #if 0'd function.
1819 * ax-gdb.h (expr_to_agent): Delete declaration.
1821 * ax-gdb.c (gen_cast): Remove redundant assignment to
1822 value->type. Doc fix.
1824 * ax-general.c (gen_traced_pop, gen_int_literal)
1825 (gen_usual_arithmetic): Check for typedefs.
1827 2007-10-26 Joel Brobecker <brobecker@adacore.com>
1829 * parse.c (prefixify_expression): Minor reformatting.
1831 2007-10-25 Daniel Jacobowitz <dan@codesourcery.com>
1833 * version.in: Use dot instead of dash.
1835 2007-10-25 Daniel Jacobowitz <dan@codesourcery.com>
1837 * linux-thread-db.c (check_for_thread_db): Only print if info_verbose.
1839 2007-10-25 Pedro Alves <pedro_alves@portugalmail.pt>
1841 * memory-map.c (parse_memory_map): Don't use an empty struct
1844 2007-10-25 Pedro Alves <pedro_alves@portugalmail.pt>
1846 * signals/signals.c (signals): Update pointer to enum
1847 target_signal declaration.
1849 2007-10-25 Wu Zhou <woodzltc@cn.ibm.com>
1850 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
1851 Jim Blandy <jimb@codesourcery.com>
1853 * dwarf2read.c (read_partial_die): check the value
1854 of DW_AT_calling_convention in Fortran programs.
1856 2007-10-25 Wu Zhou <woodzltc@cn.ibm.com>
1857 Thiago Jung Bauermann <bauerman@br.ibm.com>
1859 * c-exp.y (YYSTYPE): Add typed_val_decfloat for decimal
1860 floating point in YYSTYPE union.
1861 (DECFLOAT) Add token and expression element handling code.
1862 (parse_number): Parse DFP constants, which end with suffix 'df',
1863 'dd' or 'dl'. Return DECFLOAT.
1864 * eval.c (evaluate_subexp_standard): Call value_from_decfloat to
1866 * expression.h (enum exp_opcode): Add an opcode (OP_DECFLOAT)
1868 (union exp_element): Add decfloatconst to represent DFP
1869 elements, which is 16 bytes by default.
1870 * parse.c (write_exp_elt_decfloatcst): New function to write a
1871 decimal float const into the expression.
1872 (operator_length_standard): Set operator length for OP_DECFLOAT
1874 * parser-defs.h (write_exp_elt_decfloatcst): Prototype.
1875 * valarith.c (value_neg): Add code to handle the negation
1876 operation of DFP values.
1877 * value.c (value_from_decfloat): New function to get the value
1878 from a decimal floating point.
1879 * value.h (value_from_decfloat): Prototype.
1881 2007-10-25 Wu Zhou <woodzltc@cn.ibm.com>
1882 Thiago Jung Bauermann <bauerman@br.ibm.com>
1884 * c-lang.c (c_create_fundamental_type): Create fundamental
1886 * c-typeprint.c (c_type_print_varspec_prefix): Add
1887 TYPE_CODE_DECFLOAT to no prefix needed case.
1888 (c_type_print_varspec_suffix): Add TYPE_CODE_DECFLOAT to no
1890 * c-valprint.c (c_val_print): Call print_decimal_floating to
1892 * dwarf2read.c (read_base_type): Read DW_ATE_decimal_float
1893 attribute code and return TYPE_CODE_DECFLOAT.
1894 (dwarf_base_type): Set dwarf2_fundamental_type for DFP values.
1895 * gdbtypes.c (gdbtypes_post_init): Initialize builtin_decfloat,
1896 builtin_decdouble and builtin_declong.
1897 * gdbtypes.h (enum type_code): Add TYPE_CODE_DECFLOAT as a
1899 (FT_DECFLOAT, FT_DBL_PREC_DECFLOAT, FT_EXT_PREC_DECFLOAT): New
1900 types, for decimal floating point.
1901 (FT_NUM_MEMBERS): Increment, new types added.
1902 (struct builtin_type): Add builtin_decfloat, builtin_decdouble
1903 and builtin_declong.
1904 * valprint.c (print_decimal_floating): New function to print DFP
1906 * value.h (print_decimal_floating): Prototype.
1908 2007-10-25 Wu Zhou <woodzltc@cn.ibm.com>
1909 Thiago Jung Bauermann <bauerman@br.ibm.com>
1911 * Makefile.in (LIBDECNUMBER_DIR, LIBDECNUMBER, LIBDECNUMBER_SRC
1912 LIBDECNUMBER_CFLAGS): New macros for libdecnumber.
1913 (INTERNAL_CFLAGS_BASE): Add LIBDECNUMBER_CFLAGS in.
1914 (INSTALLED_LIBS): Add -ldecnumber in.
1915 (CLIBS): Add LIBDECNUMBER in.
1916 (decimal128_h, decimal64_h, decimal32_h): New macros for decimal
1918 (dfp_h): New macros for decimal floating point.
1919 (dfp.o): New target.
1920 (COMMON_OBS): Add dfp.o in.
1921 (c-exp.o): Add dfp_h as dependency.
1922 (valprint.o): Add dfp_h as dependency.
1923 (value.o): Add dfp_h as dependency.
1924 * dfp.h: New header file for decimal floating point support in
1926 * dfp.c: New source file for decimal floating point support in
1927 GDB. Implement decimal_from_string and decimal_to_string based
1928 on libdecnumber API.
1929 * configure.ac: Add AC_C_BIGENDIAN test.
1930 * config.in, configure: Regenerate.
1932 2007-10-25 David Ung <davidu@mips.com>
1933 Maciej W. Rozycki <macro@mips.com>
1936 * infcmd.c (registers_info): Check for a user register before
1937 calling target's gdbarch_print_registers_info(). If found to be
1938 so, extract the implicit value of user register and call
1939 print_scalar_formatted().
1940 * Makefile.in: (infcmd.o): Add $(user_regs_h).
1942 2007-10-25 Joel Brobecker <brobecker@adacore.com>
1944 * NEWS: Document status of hppa64-hpux support.
1946 2007-10-24 Ulrich Weigand <uweigand@de.ibm.com>
1948 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets): Call
1949 set_solib_ops to install SVR4 operations.
1950 (_initialize_svr4_solib): Do not set current_target_so_ops.
1952 * config/i386/i386gnu.mh (NATDEPFILES): Move solib.o, solib-svr4.o ...
1953 * config/i386/i386gnu.mt (TDEPFILES): ... to here.
1955 2007-10-24 Ulrich Weigand <uweigand@de.ibm.com>
1957 * solib-svr4.c (legacy_svr4_fetch_link_map_offsets_hook): Remove.
1958 (solib_svr4_init): Initialize fetch_link_map_offsets to NULL.
1959 * solib-svr4.h (legacy_svr4_fetch_link_map_offsets_hook): Remove.
1960 * solib-legacy.c: Remove file.
1962 * config/alpha/alpha-linux.mt (TDEPFILES): Remove solib-legacy.o.
1963 * config/arm/linux.mt (TDEPFILES): Likewise.
1964 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
1965 * config/ia64/linux.mt (TDEPFILES): Likewise.
1966 * config/m32r/linux.mt (TDEPFILES): Likewise.
1967 * config/powerpc/linux.mt (TDEPFILES): Likewise.
1968 * config/s390/s390.mt (TDEPFILES): Likewise.
1970 * alpha-linux-tdep.c (alpha_linux_init_abi): Call
1971 set_solib_svr4_fetch_link_map_offsets.
1972 * i386gnu-tdep.c (i386gnu_init_abi): Likewise.
1973 * ia64-linux-tdep.c (ia64_linux_init_abi): Likewise.
1975 * i386gnu-tdep.c: Include "solib-svr4.h".
1976 * Makefile.in: Update dependencies.
1978 2007-10-24 Ulrich Weigand <uweigand@de.ibm.com>
1980 * i386-nto-tdep.c: Include "solib.h".
1981 (i386nto_init_abi): Use set_solib_ops instead of overwriting
1982 current_target_so_ops members.
1983 * solist.h (TARGET_SO_RELOCATE_SECTION_ADDRESSES): Remove.
1984 (TARGET_SO_FIND_AND_OPEN_SOLIB): Remove.
1985 (TARGET_SO_IN_DYNSYM_RESOLVE_CODE): Remove.
1986 * Makefile.in: Update dependencies.
1988 2007-10-24 Ulrich Weigand <uweigand@de.ibm.com>
1990 * arm-wince-tdep.c: Include "solib.h" and "solib-target.h".
1991 (arm_wince_init_abi): Call set_solib_ops.
1992 * i386-cygwin-tdep.c: Include "solib.h" and "solib-target.h".
1993 (i386_cygwin_init_abi): Call set_solib_ops.
1994 * solib-target.c: Include "solib-target.h".
1995 (solib_target_so_ops): Make global.
1996 (_initialize_solib_target): Do not set current_target_so_ops.
1997 * solib-target.h: New file.
1998 * Makefile.in: Update dependencies.
2000 2007-10-24 Ulrich Weigand <uweigand@de.ibm.com>
2002 * mips-irix-tdep.c: Include "gdb_string.h", "solib.h", "solib-irix.h".
2003 (mips_irix_init_abi): Call set_solib_ops.
2004 * solib-irix.c: Include "solib.h" and "solib-irix.h".
2005 (irix_so_ops): Make global.
2006 (_initialize_irix_solib): Do not set current_target_so_ops.
2007 * solib-irix.h: New file.
2008 * Makefile.in: Update dependencies.
2010 2007-10-24 Ulrich Weigand <uweigand@de.ibm.com>
2012 * configure.tgt: Remove hppa*64*-*-hpux11* special case.
2013 * config/pa/hppa64.mt: Delete file.
2014 * config/pa/hppahpux.mt (MT_CFLAGS): Remove.
2015 (TDEPFILES): Move somread.o to ...
2016 * config/pa/hpux.mh (NATDEPFILES): ... here.
2018 * configure.ac: Add check for elf_hp.h header.
2019 Search libdl and libxpdl for dlgetmodinfo.
2020 * config.in, configure: Regenerate.
2021 * solib-pa64.c: Conditionalize compilation on #ifdef HAVE_ELF_HP_H
2022 instead of #ifndef PA_SOM_ONLY. Include "solib.h".
2023 (pa64_solib_select): Take gdbarch instead of tdep argument. Call
2024 set_solib_ops instead of modifying current_target_so_ops.
2025 * solib-pa64.h (pa64_solib_select): Update prototype.
2026 * solib-som.c: Remove include of "som.h". Include "solib.h".
2027 (som_solib_select): Take gdbarch instead of tdep argument. Call
2028 set_solib_ops instead of modifying current_target_so_ops.
2029 * solib-som.h (som_solib_select): Update prototype.
2030 * hppa-hpux-tdep.c (hppa_hpux_som_init_abi): Pass gdbarch instead
2031 of tdep to som_solib_select call.
2032 (hppa_hpux_elf_init_abi): Pass gdbarch instead of tdep to
2033 pa64_solib_select call.
2034 * Makefile.in: Update dependencies.
2036 2007-10-24 Ulrich Weigand <uweigand@de.ibm.com>
2038 * frv-tdep.c: Include "solib.h".
2039 (frv_gdbarch_init): Call set_solib_ops.
2040 * frv-tdep.h (struct target_so_ops): Add forward reference.
2041 (frv_so_ops): Add extern declaration.
2042 * solib-frv.c (frv_so_ops): Make global.
2043 (_initialize_frv_solib): Do not set current_target_so_ops.
2044 * Makefile.in: Update dependencies.
2046 2007-10-24 Ulrich Weigand <uweigand@de.ibm.com>
2048 * solib.c (solib_global_lookup): Use solib_ops instead of global
2049 current_target_so_ops.
2051 2007-10-24 Ulrich Weigand <uweigand@de.ibm.com>
2053 * config/frv/frv.mt (DEPRECATED_TM_FILE): Remove.
2054 * config/frv-tm-frv.h: Delete file.
2056 2007-10-24 Daniel Jacobowitz <dan@codesourcery.com>
2058 * NEWS: Mention gdbserver support for non-libthread_db operation.
2060 2007-10-24 Daniel Jacobowitz <dan@codesourcery.com>
2062 * amd64-tdep.c (amd64_convert_register_p): Delete.
2063 (amd64_init_abi): Use i387_convert_register_p.
2064 * alpha-tdep.c (alpha_convert_register_p): Return zero for
2066 (alpha_register_to_value, alpha_value_to_register): Do not handle
2068 * i386-tdep.c (i386_convert_register_p): Use i387_convert_register_p.
2069 * i387-tdep.c (i387_convert_register_p): New.
2070 (i387_register_to_value, i387_value_to_register): Update comments.
2071 * i387-tdep.h (i387_convert_register_p): Declare.
2072 * ia64-tdep.c (ia64_convert_register_p): Return zero for
2073 builtin_type_ia64_ext.
2074 (ia64_gdbarch_init): Do not initialize builtin_type_ia64_ext here.
2075 (_initialize_ia64_tdep): Initialize builtin_type_ia64_ext here.
2076 * m68k-tdep.c (m68k_convert_register_p): Return zero for
2077 builtin_type_m68881_ext.
2078 (m68k_register_to_value, m68k_value_to_register): Update comments.
2080 2007-10-24 Nathan Sidwell <nathan@codesourcery.com>
2082 * target-memory.c (claim_memory): Propagate baton for split memory
2085 2007-10-24 Pedro Alves <pedro_alves@portugalmail.pt>
2088 * sol-thread.c (sol_thread_fetch_registers): Work around gcc 3.4
2091 2007-10-24 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
2093 * symtab.c (find_line_symtab): scan through psymtabs
2094 when exact_match is zero.
2096 2007-10-23 Atsushi Nemoto <anemo@mba.ocn.ne.jp>
2098 * mips-tdep.c (LL_OPCODE, LLD_OPCODE, SC_OPCODE, SCD_OPCODE): Define.
2099 (deal_with_atomic_sequence): New.
2100 (mips_software_single_step): Use it.
2102 2007-10-23 Daniel Jacobowitz <dan@codesourcery.com>
2105 * configure.ac: Modify $LIBINTL before the BFD check.
2106 * configure: Regenerated.
2108 2007-10-23 Joel Brobecker <brobecker@adacore.com>
2110 * buildsym.c (free_pending_blocks): Remove commented-out code.
2111 (make_blockvector): Likewise. Re-use free_pending_blocks.
2112 (end_symtab): Remove commented-out code.
2114 2007-10-22 Daniel Jacobowitz <dan@codesourcery.com>
2116 * top.c (command_loop): Fix output for shrinkage.
2118 2007-10-22 Daniel Jacobowitz <dan@codesourcery.com>
2120 * cp-name-parser.y (exp1): Add & ( var ) as a reference expression.
2121 (exp): Remove and document function-like casts.
2123 2007-10-22 Daniel Jacobowitz <dan@codesourcery.com>
2125 * cp-support.c: Include "safe-ctype.h".
2126 (cp_already_canonical): New function.
2127 (cp_canonicalize_string): Use it. Return NULL for already canonical
2129 (mangled_name_to_comp): Update call to cp_demangled_name_to_comp.
2130 (cp_func_name, remove_params): Likewise.
2131 (cp_find_first_component_aux): Use ISSPACE.
2132 * cp-support.h (cp_demangled_name_to_comp): Correct comment. Remove
2134 * cp-name-parser.y (ALLOC_CHUNK): Define.
2135 (struct demangle_info): Add PREV and NEXT. Increase the size of
2137 (d_grab): Convert to a function.
2138 (allocate_info): Rewrite.
2139 (cp_demangled_name_to_comp): Remove MEMORY argument. Do not use
2140 strlen. Update call to allocate_info. Do not free it on failure.
2141 (main): Update calls to cp_demangled_name_to_comp.
2142 * Makefile.in (cp-support.o): Update.
2144 2007-10-22 Markus Deuling <deuling@de.ibm.com>
2146 * std-regs.c (value_of_builtin_frame_fp_reg)
2147 value_of_builtin_frame_pc_reg, value_of_builtin_frame_sp_reg)
2148 value_of_builtin_frame_ps_reg): Use get_frame_arch to get at the
2149 current architecture by frame_info.
2151 2007-10-22 Markus Deuling <deuling@de.ibm.com>
2153 * reggroups.c (default_register_reggroup_p): Replace current_gdbarch
2156 2007-10-22 Markus Deuling <deuling@de.ibm.com>
2158 * infcmd.c (default_print_registers_info, print_return_value)
2159 (print_vector_info, print_float_info): Replace current_gdbarch by
2161 (registers_info): Use get_frame_arch to get at the current
2162 architecture by frame_info.
2164 2007-10-22 Markus Deuling <deuling@de.ibm.com>
2166 * i387-tdep.c (i387_collect_fsave, i387_collect_fxsave): Use
2167 get_regcache_arch to get at the current architecture by regcache.
2169 2007-10-22 Markus Deuling <deuling@de.ibm.com>
2171 * target.c (debug_print_register): Use get_regcache_arch to get at the
2172 current architecture by regcache.
2174 2007-10-21 Daniel Jacobowitz <dan@codesourcery.com>
2176 * dwarf2read.c (read_file_scope): Add a comment.
2177 (dwarf2_add_field, dwarf2_add_member_fn, read_structure_type)
2178 (read_enumeration_type, process_enumeration_scope, read_array_type)
2179 (read_typedef, read_base_type, read_subrange_type)
2180 (read_unspecified_type): Use dwarf2_name.
2182 2007-10-21 Daniel Jacobowitz <dan@codesourcery.com>
2184 * coffread.c (coff_symfile_finish): Call dwarf2_free_objfile.
2185 * dwarf2read.c (dwarf2_free_objfile): New.
2186 * elfread.c (elf_symfile_finish): Call dwarf2_free_objfile.
2187 * symfile.h (dwarf2_free_objfile): Declare.
2189 2007-10-21 Joel Brobecker <brobecker@adacore.com>
2191 * hppa-hpux-nat.c (hppa_hpux_store_register): Add missing semi-colon.
2193 2007-10-21 Luis Machado <luisgpm@br.ibm.com>
2195 * rs6000-tdep.c (ppc_dwarf2_frame_init_reg): New function.
2196 * (rs6000_gdbarch_init): Install ppc_dwarf2_frame_init_reg as
2197 default dwarf2_frame_set_init_reg function.
2199 2007-10-21 Pedro Alves <pedro_alves@portugalmail.pt>
2201 * NEWS: Mention native MinGW configuration.
2203 2007-10-19 Ulrich Weigand <uweigand@de.ibm.com>
2205 * gdbarch.sh: Remove "macro" column of input table. Remove handling
2206 of "macro" column throughout the file. Remove (empty) "macro" entry
2207 of all gdbarch functions.
2209 2007-10-19 Ulrich Weigand <uweigand@de.ibm.com>
2211 * gdbarch.sh (sofun_address_maybe_missing): New gdbarch variable.
2212 * gdbarch.c, gdbarch.h: Regenerate.
2213 * dbxread.c (find_stab_function_addr): Define unconditionally.
2214 (read_dbx_symtab): Use gdbarch_sofun_address_maybe_missing
2215 instead of SOFUN_ADDRESS_MAYBE_MISSING.
2216 (end_psymtab): Likewise.
2217 (process_one_symbol): Likewise.
2218 * mdebugread.c (parse_partial_symbols): Likewise.
2220 * symtab.h (struct minimal_symbol): Always define "filename" member.
2221 * elfread.c (elf_symtab_read): Use msym->filename unconditionally.
2222 * minsyms.c (lookup_minimal_symbol): Likewise.
2223 * symmisc.c (dump_msymbols): Likewise.
2225 * config/i386/i386sol2.mt (DEPRECATED_TM_FILE): Remove.
2226 * config/i386/linux.mt (DEPRECATED_TM_FILE): Remove.
2227 * config/i386/tm-i386sol2.h: Remove file.
2228 * config/i386/tm-linux.h: Remove file.
2229 * i386-linux-tdep.c (i386_linux_init_abi): Add call to
2230 set_gdbarch_sofun_address_maybe_missing.
2231 * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
2233 * config/powerpc/linux.mt (DEPRECATED_TM_FILE): Remove.
2234 * config/powerpc/nbsd.mt (DEPRECATED_TM_FILE): Remove.
2235 * config/powerpc/obsd.mt (DEPRECATED_TM_FILE): Remove.
2236 * config/powerpc/ppc-eabi.mt (DEPRECATED_TM_FILE): Remove.
2237 * config/powerpc/ppc-sim.mt (DEPRECATED_TM_FILE): Remove.
2238 * config/powerpc/tm-ppc-eabi.h: Remove file.
2239 * rs6000-tdep.c (rs6000_gdbarch_init): Add call to
2240 set_gdbarch_sofun_address_maybe_missing.
2242 * config/sparc/sol2-64.mt (DEPRECATED_TM_FILE): Remove.
2243 * config/sparc/sol2.mt (DEPRECATED_TM_FILE): Remove.
2244 * config/sparc/tm-sol2.h: Remove file.
2245 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Add call to
2246 set_gdbarch_sofun_address_maybe_missing.
2247 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Likewise.
2249 2007-10-19 Ulrich Weigand <uweigand@de.ibm.com>
2251 * gdbarch.sh (static_transform_name): New gdbarch callback.
2252 * gdbarch.c, gdbarch.h: Regenerate.
2253 * dbxread.c (read_dbx_symtab): Use gdbarch_static_transform_name
2254 instead of STATIC_TRANSFORM_NAME.
2255 * mdebugread.c (parse_partial_symbols): Likewise.
2256 * stabsread.c (define_symbol): Likewise.
2257 * xcoffread.c (scan_xcoff_symtab): Likewise.
2259 * config/i368/tm-i386sol2.h (STATIC_TRANSFORM_NAME): Remove.
2260 (IS_STATIC_TRANSFORM_NAME): Remove.
2261 * i386-tdep.c (sunpro_static_transform_name): Remove, move to ...
2262 * i386-sol2-tdep.c (i386_sol2_static_transform_name): ... here.
2263 (i386_sol2_init_abi): Install it.
2265 * config/sparc/tm-sol2.h (STATIC_TRANSFORM_NAME): Remove.
2266 (IS_STATIC_TRANSFORM_NAME): Remove.
2267 * sparc-tdep.c (sparc_stabs_unglobalize_name): Remove, move to ...
2268 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): ... here.
2269 (sparc32_sol2_init_abi): Install it.
2270 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Likewise.
2271 * sparc-tdep.h (sparc_sol2_static_transform_name): Add prototype.
2273 2007-10-18 Daniel Jacobowitz <dan@codesourcery.com>
2275 * mips-tdep.c (mips_xfer_register): Take a gdbarch argument.
2276 (mips_n32n64_return_value, mips_o32_return_value)
2277 (mips_o64_return_value): Update calls to mips_xfer_register.
2279 2007-10-17 Daniel Jacobowitz <dan@codesourcery.com>
2281 * frame.c (frame_unwind_unsigned_register): Delete.
2282 (frame_sp_unwind): Use frame_unwind_register_unsigned instead.
2283 * frame.h (frame_unwind_unsigned_register): Delete prototype.
2285 * alpha-linux-tdep.c, alpha-mdebug-tdep.c, alpha-tdep.c,
2286 avr-tdep.c, cris-tdep.c, frv-tdep.c, m68hc11-tdep.c, mn10300-tdep.c,
2287 mt-tdep.c: Replace frame_unwind_unsigned_register with
2288 frame_unwind_register_unsigned.
2290 2007-10-16 Pedro Alves <pedro_alves@portugalmail.pt>
2292 * config/i386/mingw.mh, config/i386/mingw.mt: New files.
2293 * configure.tgt (i[34567]86-*-mingw32*): Set gdb_target = mingw.
2294 * win32-nat.c: Only include cygwin.h on Cygwin host. Don't
2296 (cygwin_load_start, cygwin_load_end, cygwin_exceptions): Disable
2297 if not building on Cygwin.
2298 (win32_make_so, handle_output_debug_string, handle_exception)
2299 (do_initial_win32_stuff): Wrap Cygwin specific code in __CYGWIN__.
2300 (win32_attach): Only fallback to Cygwin pids if building on
2302 (win32_pid_to_exec_file): Disable Cygwin specific code, if not
2304 (win32_create_inferior): Disable starting the inferior through a
2305 shell, environment var processing and tty handling if not building
2307 (cygwin_pid_to_str): Rename to ...
2308 (win32_pid_to_str): ... this.
2309 (init_win32_ops): Update use of win32_pid_to_str. Disable "shell"
2310 and "cygwin-exceptions" commands if not building on Cygwin.
2312 2007-10-16 Gaius Mulley <gaius@glam.ac.uk>
2314 * doc/gdb.texinfo: Add TSIZE definition, removed
2315 statement about unbounded arrays being unimplemented.
2316 * m2-valprint.c (m2_print_array_contents): New function.
2317 (m2_print_unbounded_array): New function.
2318 (m2_print_array_contents): New function.
2319 * m2-typeprint.c (m2_unbounded_array): New function.
2320 (m2_is_unbounded_array): New function.
2321 (m2_print_type): Test for unbounded array when walking
2323 * m2-lang.h: Added extern m2_is_unbounded_array.
2324 * m2-lang.c (evaluate_subexp_modula2): New function.
2325 (exp_descriptor_modula2): New structure.
2326 (m2_language_defn): Use exp_descriptor_modula2.
2327 * m2-exp.y: Added TSIZE and binary subscript.
2329 2007-10-16 Daniel Jacobowitz <dan@codesourcery.com>
2331 * mi/mi-main.c (captured_mi_execute_command): Clear mi_error_message
2334 2007-10-16 Kevin Buettner <kevinb@redhat.com>
2336 * m32r-tdep.c (decode_prologue): Sign extend offset for
2338 (m32r_frame_unwind_cache): Likewise.
2340 2007-10-15 Thiago Jung Bauermann <bauerman@br.ibm.com>
2342 * rs6000-tdep.c (skip_prologue): Restore comment with
2343 function description to its proper place.
2345 2007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
2347 * NEWS: Mention gdbserver PowerPC improvements.
2349 2007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
2351 * features/Makefile (WHICH): Add PowerPC register definitions.
2352 (rs6000/powerpc-32-expedite, rs6000/powerpc-e500-expedite)
2353 (rs6000/powerpc-64-expedite): New macros.
2354 ($(outdir)/%.dat): Handle subdirectories.
2355 * regformats/rs6000/powerpc-32.dat, regformats/rs6000/powerpc-64.dat,
2356 regformats/rs6000/powerpc-e500.dat: New generated files.
2358 2007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
2360 * ppc-linux-nat.c (ppc_linux_read_description): New.
2361 (_initialize_ppc_linux_nat): Set to_read_description.
2362 * ppc-tdep.h (tdesc_powerpc_e500): Declare.
2364 2007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
2366 * NEWS: Document target described register support for PowerPC.
2367 * ppc-tdep.h: Remove ppc_spr constants.
2368 (struct gdbarch_tdep): Remove regs, ppc_sr0_regnum, and
2369 ppc_builtin_type_vec128 members.
2370 (PPC_R0_REGNUM, PPC_F0_REGNUM, PPC_PC_REGNUM, PPC_MSR_REGNUM)
2371 (PPC_CR_REGNUM, PPC_LR_REGNUM, PPC_CTR_REGNUM, PPC_XER_REGNUM)
2372 (PPC_FPSCR_REGNUM, PPC_MQ_REGNUM, PPC_SPE_UPPER_GP0_REGNUM)
2373 (PPC_SPE_ACC_REGNUM, PPC_SPE_FSCR_REGNUM, PPC_VR0_REGNUM)
2374 (PPC_VSCR_REGNUM, PPC_VRSAVE_REGNUM, PPC_NUM_REGS): New constants.
2375 * rs6000-tdep.c: Include preparsed descriptions.
2376 (init_sim_regno_table): Do not iterate over pseudo registers.
2377 Look up segment registers by name. Use sim_spr_register_name
2379 (rs6000_register_sim_regno): Call init_sim_regno_table here.
2380 (rs6000_builtin_type_vec128): Delete.
2381 (rs6000_register_name): Only handle SPE pseudo registers and upper
2382 halves. Call tdesc_register_name for everything else.
2383 (rs6000_register_type): Delete. Replace with...
2384 (rs6000_pseudo_register_type): ...this new function. Only handle
2385 SPE pseudo registers.
2386 (rs6000_register_reggroup_p): Delete. Replace with...
2387 (rs6000_pseudo_register_reggroup_p): ...this new function. Only
2388 handle SPE pseudo registers.
2389 (rs6000_convert_register_p): Use ppc_fp0_regnum instead of
2391 (rs6000_register_to_value, rs6000_value_to_register): Remove check
2393 (e500_register_reggroup_p): Delete.
2394 (STR, R, R4, R8, R16, F, P8, R32, R64, R0, A4, S, S4, SN4, S64)
2395 (COMMON_UISA_REGS, PPC_UISA_SPRS, PPC_UISA_NOFP_SPRS)
2396 (PPC_SEGMENT_REGS, PPC_OEA_SPRS, PPC_ALTIVEC_REGS, PPC_SPE_GP_REGS)
2397 (PPC_SPE_UPPER_GP_REGS, PPC_EV_PSEUDO_REGS): Delete macros.
2398 (registers_powerpc, registers_403, registers_403GC, registers_505)
2399 (registers_860, registers_601, registers_602, registers_603)
2400 (registers_604, registers_750, registers_7400, registers_e500): Delete
2402 (struct variant): Delete nregs, npregs, num_tot_regs, and regs. Add
2404 (tot_num_registers, num_registers, num_pseudo_registers): Delete.
2405 (variants): Delete outdated comment. Use standard target descriptions
2406 instead of "struct reg" arrays.
2407 (init_variants): Delete.
2408 (rs6000_gdbarch_init): Do not guess word size from the BFD
2409 architecture if we have a target description. Select a variant
2410 before creating a new architecture. Use the variant's target
2411 description if the target did not define a register layout.
2412 Validate target-supplied registers. Reject mismatches. Use
2413 fixed register numbers and new constants instead of magic
2414 numbers. Call set_gdbarch_ps_regnum. Call tdesc_use_registers.
2415 (_initialize_rs6000_tdep): Initialize the preparsed target
2417 * target-descriptions.c (tdesc_predefined_types): Add int128 and
2419 (tdesc_find_register_early): New function.
2420 (tdesc_numbered_register): Use it.
2421 (tdesc_register_size): New function.
2422 (tdesc_use_registers): Take a target_desc argument. Do not use
2423 gdbarch_target_desc.
2424 * target-descriptions.h (tdesc_use_registers): Update prototype
2426 (tdesc_register_size): New prototype.
2427 * Makefile.in (powerpc_32_c, powerpc_403_c, powerpc_403gc_c)
2428 (powerpc_505_c, powerpc_601_c, powerpc_602_c, powerpc_603_c)
2429 (powerpc_604_c, powerpc_64_c, powerpc_7400_c, powerpc_750_c)
2430 (powerpc_860_c, powerpc_e500_c, rs6000_c): New macros.
2431 (rs6000-tdep.o): Update.
2432 * arm-tdep.c (arm_gdbarch_init): Update call to tdesc_use_registers.
2433 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
2434 * mips-tdep.c (mips_gdbarch_init): Likewise.
2436 2007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
2438 * features/rs6000/powerpc-32.c, features/rs6000/powerpc-403.c,
2439 features/rs6000/powerpc-403gc.c, features/rs6000/powerpc-505.c,
2440 features/rs6000/powerpc-601.c, features/rs6000/powerpc-602.c,
2441 features/rs6000/powerpc-603.c, features/rs6000/powerpc-604.c,
2442 features/rs6000/powerpc-64.c, features/rs6000/powerpc-7400.c,
2443 features/rs6000/powerpc-750.c, features/rs6000/powerpc-860.c,
2444 features/rs6000/powerpc-e500.c, features/rs6000/rs6000.c: New
2447 2007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
2449 * features/rs6000/power-altivec.xml, features/rs6000/power-core.xml,
2450 features/rs6000/power-fpu.xml, features/rs6000/power-oea.xml,
2451 features/rs6000/power-spe.xml, features/rs6000/power64-core.xml: New
2452 feature descriptions for standard PowerPC register sets.
2454 * features/rs6000/powerpc-32.xml, features/rs6000/powerpc-403.xml,
2455 features/rs6000/powerpc-403gc.xml, features/rs6000/powerpc-505.xml,
2456 features/rs6000/powerpc-601.xml, features/rs6000/powerpc-602.xml,
2457 features/rs6000/powerpc-603.xml, features/rs6000/powerpc-604.xml,
2458 features/rs6000/powerpc-64.xml, features/rs6000/powerpc-7400.xml,
2459 features/rs6000/powerpc-750.xml, features/rs6000/powerpc-860.xml,
2460 features/rs6000/powerpc-e500.xml, features/rs6000/rs6000.xml: New
2461 target descriptions for PowerPC processors.
2463 2007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
2465 * target-descriptions.c (tdesc_predefined_types): New.
2466 (tdesc_named_type): Use it.
2467 (tdesc_type_id, maint_print_c_tdesc_cmd): New functions.
2468 (_intialize_target_descriptions): Register "maint print c-tdesc".
2469 * features/Makefile (XMLTOC, CFILES, GDB): New macros.
2470 (cfiles, %.c): New rules.
2471 * features/arm-with-iwmmxt.c, features/mips-linux.c,
2472 features/mips64-linux.c: New generated files.
2474 * arm-linux-nat.c: Include preparsed description instead of
2476 (super_xfer_partial, arm_linux_xfer_partial): Remove.
2477 (arm_linux_read_description): New function.
2478 (_initialize_arm_linux_nat): Set to_read_description instead of
2479 to_xfer_partial. Initialize preparsed description.
2480 * config/arm/linux.mh (TDEP_XML): Delete.
2481 * mips-linux-nat.c: Include preparsed descriptions instead of
2483 (super_xfer_partial, mips_linux_xfer_partial): Remove.
2484 (mips_linux_read_description): New function.
2485 (_initialize_mips_linux_nat): Set to_read_description instead of
2486 to_xfer_partial. Initialize preparsed description.
2487 * config/mips/linux.mh (TDEP_XML): Delete.
2488 * Makefile.in (XMLFILES): Remove $(TDEP_XML).
2489 (features_headers, arm_with_iwmmxt_c, mips_linux_c)
2490 (mips64_linux_c): New macros.
2491 (arm-linux-nat.o, mips-linux-nat.o): Update.
2493 2007-10-15 Pierre Muller <muller@ics.u-strasbg.fr>
2495 * cp-abi.c (set_cp_abi_as_auto_default): ARI fix:
2496 Replace xasprintf by xstrprintf.
2497 symfile-mem.c (add_vsyscall_page): Ditto.
2499 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
2501 * ia64-linux-nat.c (ia64_register_addr): Add gdbarch parameter,
2502 replacing use of global current_gdbarch.
2503 (ia64_cannot_fetch_register, ia64_cannot_store_register): Likewise.
2504 (ia64_linux_fetch_register, ia64_linux_store_register): Update callers.
2506 * ia64-tdep.c (SIGCONTEXT_REGISTER_ADDRESS): Remove macro.
2507 (ia64_sigtramp_frame_init_saved_regs): Add next_frame parameter,
2508 replace uses of SIGCONTEXT_REGISTER_ADDRESS.
2509 (ia64_sigtramp_frame_cache): Update caller.
2511 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
2513 * gdbarch.sh (deprecated_use_struct_convention): Remove.
2514 (extract_return_value, store_return_value): Remove.
2515 (return_value): Remove default implementation.
2516 * gdbarch.c, gdbarch.h: Regenerate.
2518 * stack.c (return_command): Remove compatibility hack.
2519 * arch-utils.c (legacy_return_value): Remove.
2520 * arch-utils.h (legacy_return_value): Likewise.
2522 * arch-utils.c (always_use_struct_convention): Remove.
2523 * arch-utils.h (always_use_struct_convention): Likewise.
2524 * value.c (generic_use_struct_convention): Remove.
2525 * defs.h (generic_use_struct_convention): Likewise.
2527 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
2529 * avr-tdep.c (avr_return_value): New function.
2530 (avr_gdbarch_init): Call set_gdbarch_return_value instead of
2531 set_gdbarch_extract_return_value.
2533 * fvr-tdep.c (frv_return_value): New function.
2534 (frv_gdbarch_init): Call set_gdbarch_return_value instead of
2535 set_gdbarch_extract_return_value, set_gdbarch_store_return_value,
2536 and set_gdbarch_deprecated_use_struct_convention.
2538 * ia64-tdep.c (ia64_use_struct_convention): Make static.
2539 Add check for structure, union, or array types.
2540 (ia64_extract_return_value): Make static.
2541 (ia64_store_return_value): Make static. Support multi-word values.
2542 (ia64_return_value): New function.
2543 (ia64_gdbarch_init): Call set_gdbarch_return_value instead of
2544 set_gdbarch_extract_return_value, set_gdbarch_store_return_value,
2545 and set_gdbarch_deprecated_use_struct_convention.
2547 2007-10-12 Joel Brobecker <brobecker@adacore.com>
2549 * solib-target.c (solib_target_parse_libraries)
2550 [HAVEHAVE_LIBEXPAT not defined]: Fix thinko in return type.
2552 2007-10-12 Jim Blandy <jimb@codesourcery.com>
2554 * serial.h (struct serial_ops): Document read_prim to return zero
2556 * ser-base.c (do_ser_base_readchar): Return SERIAL_EOF when
2557 read_prim returns zero, not SERIAL_TIMEOUT.
2559 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
2561 * alpha-mdebug-tdep.c: Include "gdb_string.h".
2562 (find_proc_desc): Add fix-up code for setjmp procedure descriptor.
2563 * mdebugread.c (parse_procedure): Remove setjmp fix-up code.
2564 * Makefile.in (alpha-mdebug-tdep.o): Update dependencies.
2566 * config/alpha/alpha.mt (DEPRECATED_TM_FILE): Remove.
2567 * config/alpha/alpha-linux.mt (DEPRECATED_TM_FILE): Remove.
2568 * config/alpha/alpha-osf1.mt (DEPRECATED_TM_FILE): Remove.
2569 * config/alpha/fbsd.mt (DEPRECATED_TM_FILE): Remove.
2570 * config/alpha/tm-alpha.h: Remove file.
2572 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
2574 * breakpoint.c (breakpoint_sals_to_pc): Do not check for
2575 DEPRECATED_PC_REQUIRES_RUN_BEFORE_USE.
2577 * config/pa/tm-hppa.h: Delete file.
2578 * config/pa/hppa64.mt: Do not set DEPRECATED_TM_FILE.
2579 * config/pa/hppahpux.mt: Likewise.
2580 * config/pa/hppa.mt: Likewise.
2581 * config/pa/linux.mt: Likewise.
2582 * hppa-tdep.c (hppa_pc_requires_run_before_use): Delete.
2584 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
2586 * config/arm/nm-nbsdaout.h: Remove file.
2587 * config/nm-nbsdaout.h: Likewise.
2588 * config/nm-nbsd.h: Likewise.
2590 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
2592 * block.h (struct block): Remove "gcc_compile_flag" member.
2593 (BLOCK_GCC_COMPILED): Remove.
2594 * block.c (allocate_block): Do not clear BLOCK_GCC_COMPILED.
2595 * buildsym.c (finish_block): Do not set it.
2596 * symmisc.c (dump_symtab_1): Do not dump it.
2598 * value.h (using_struct_return): Remove "gcc_p" argument.
2599 * value.c (using_struct_return): Likewise.
2600 * eval.c (evaluate_subexp_standard): Adapt callers.
2601 * infcall.c (call_function_by_hand): Likewise.
2602 * stack.c (return_command): Likewise.
2603 * sparc-tdep.c (sparc32_push_dummy_code): Likewise.
2605 * gdbarch.sh (push_dummy_code): Remove "using_gcc" parameter.
2606 * gdbarch.c, gdbarch.h: Regenerate.
2607 * cris-tdep.c (cris_push_dummy_code): Adapt prototype.
2608 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Likewise.
2609 * sparc-tdep.c (sparc32_push_dummy_code): Likewise.
2610 * infcall.c (generic_push_dummy_code, push_dummy_code): Likewise.
2611 (push_dummy_code, call_function_by_hand): Adapt callers.
2613 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
2615 * infcmd.c (print_return_value): Remove STRUCT_RETURN argument.
2616 (finish_command_continuation, finish_command): Adapt callers.
2618 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
2620 * infcall.c (call_function_by_hand): Remove special handling
2621 for HP aCC compiled code.
2623 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
2625 * cris-tdep.c (cris_push_dummy_call): Support arguments passed by
2626 reference. Fix endianness bugs.
2627 (cris_reg_struct_has_address): Remove.
2628 (cris_gdbarch_init): Remove set_gdbarch_deprecated_reg_struct_has_addr
2629 and set_gdbarch_deprecated_use_struct_convention calls.
2631 * gdbarch.sh (deprecated_reg_struct_has_addr): Remove.
2632 * gdbarch.c, gdbarch.h: Regenerate.
2633 * infcall.c (call_function_by_hand): Remove handling of
2634 deprecated_reg_struct_has_addr.
2636 2007-10-11 Daniel Jacobowitz <dan@codesourcery.com>
2637 Kazu Hirata <kazu@codesourcery.com>
2639 * breakpoint.c (do_enable_breakpoint): Delay enabling until after
2640 checking watchpoint resources.
2642 2007-10-11 Kazu Hirata <kazu@codesourcery.com>
2644 * memattr.c (inaccessible_by_default): Change the initial
2647 2007-10-11 Daniel Jacobowitz <dan@codesourcery.com>
2650 * coffread.c (read_one_sym): Check for read errors.
2652 2007-10-11 Ulrich Weigand <uweigand@de.ibm.com>
2654 * linux-nat.c (lin_lwp_attach_lwp): Use "Linux kernel 2.6.19"
2655 instead of "Linux 2.6.19" in comment.
2656 (linux_xfer_partial): Use "GNU/Linux target" instead of
2657 "Linux target" in comment.
2658 * m68klinux-tdep.c (m68k_linux_inferior_created): Likewise.
2659 (m68k_linux_get_sigtramp_info): Likewise.
2661 2007-10-11 Daniel Jacobowitz <dan@codesourcery.com>
2663 * MAINTAINERS (language support): List Joel and Paul as
2666 2007-10-11 Daniel Jacobowitz <dan@codesourcery.com>
2668 * dbxread.c (process_one_symbol): Remove VARIABLES_INSIDE_BLOCK
2670 * config/arm/embed.mt, config/arm/linux.mt, config/arm/wince.mt: Do
2671 not set DEPRECATED_TM_FILE.
2672 * config/arm/tm-arm.h: Delete file.
2674 2007-10-11 Luis Machado <luisgpm@br.ibm.com>
2676 * MAINTAINERS (Write After Approval): Add self.
2678 2007-10-11 Daniel Jacobowitz <dan@codesourcery.com>
2680 * buildsym.c (record_line): Remove empty lines followed by
2681 end-of-sequence markers.
2683 2007-10-11 Kazu Hirata <kazu@codesourcery.com>
2685 * configure.tgt: Recognize fido-*-elf.
2687 2007-10-10 Joel Brobecker <brobecker@adacore.com>
2691 2007-10-10 Markus Deuling <deuling@de.ibm.com>
2693 * stack.c (print_frame_args, frame_info, return_command): Use
2694 get_regcache_arch or get_frame_arch to get at the current architecture
2695 by regcache or by frame, respectively.
2697 2007-10-10 Markus Deuling <deuling@de.ibm.com>
2699 * rs6000-nat.c (fetch_register, store_register)
2700 (rs6000_fetch_inferior_registers, rs6000_store_inferior_registers): Use
2701 get_regcache_arch to get at the current architecture by regcache.
2703 * rs6000-tdep.c (rs6000_push_dummy_call, rs6000_return_value)
2704 (rs6000_register_reggroup_p, e500_move_ev_registe, rs6000_unwind_pc)
2705 (rs6000_unwind_dummy_id, rs6000_frame_cache, rs6000_dump_tdep): Replace
2706 current_gdbarch by gdbarch.
2707 (rs6000_skip_trampoline_code, rs6000_register_to_value)
2708 (rs6000_value_to_register): Use get_frame_arch to get at the current
2709 architecture by frame_info.
2711 2007-10-10 Markus Deuling <deuling@de.ibm.com>
2713 * sparc-tdep.c (sparc_supply_rwindow, sparc_collect_rwindow): Use
2714 get_regcache_arch to get at the current architecture by regcache.
2716 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
2717 (sparc64_supply_fpregset, sparc64_collect_fpregset): Use
2718 get_regcache_arch to get at the current architecture by regcache.
2720 * sparc64nbsd-nat. (sparc64nbsd_supply_gregset)
2721 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
2722 (sparc64nbsd_collect_fpregset): Use get_regcache_arch to get at the
2723 current architecture by regcache.
2725 2007-10-10 Markus Deuling <deuling@de.ibm.com>
2727 * remote-mips.c (mips_wait, mips_fetch_registers)
2728 (mips_store_registers): Use get_regcache_arch to get at the
2729 current architecture by regcache.
2731 * mipsnbsd-tdep.c (mipsnbsd_supply_reg, mipsnbsd_fill_reg)
2732 (mipsnbsd_supply_fpreg, mipsnbsd_fill_fpreg): Use get_regcache_arch to
2733 get at the current architecture by regcache.
2734 (mipsnbsd_sigtramp_offset): Use get_frame_arch to get at the current
2735 architecture by frame_info.
2737 * mipsnbsd-nat.c (mipsnbsd_fetch_inferior_registers)
2738 (mipsnbsd_store_inferior_registers): Use get_regcache_arch to get at
2739 the current architecture by regcache.
2741 * mips-linux-tdep.c (mips_linux_get_longjmp_target)
2742 (mips64_linux_get_longjmp_target, mips_linux_o32_sigframe_init)
2743 (mips_linux_n32n64_sigframe_init): Use get_frame_arch to get at the
2744 current architecture by frame_info.
2745 (supply_32bit_reg, mips_supply_gregset, mips_fill_gregset)
2746 (mips_supply_fpregset, mips_fill_fpregset, supply_64bit_reg)
2747 (mips64_supply_gregset, mips64_fill_gregset, mips64_supply_fpregset)
2748 (mips64_fill_fpregset, mips_linux_write_pc): Use get_regcache_arch to
2749 get at the current architecture by regcache.
2751 * mips-linux-nat.c (mips_linux_register_addr)
2752 (mips64_linux_register_addr): Replace current_gdbarch by gdbarch.
2753 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset)
2754 (mips64_linux_regsets_fetch_registers)
2755 (mips64_linux_regsets_store_registers): Use get_regcache_arch to get at
2756 the current architecture by regcache.
2758 * mips64obsd-tdep.c (mips64obsd_sigframe_init): Use get_frame_arch to
2759 get at the current architecture by frame_info.
2761 2007-10-10 Markus Deuling <deuling@de.ibm.com>
2763 * mips-tdep.c (mips_xfer_register): Use get_regcache_arch to get at the
2764 current architecture by regcache.
2765 (mips2_fp_compat, mips32_next_pc, mips16_scan_prologue)
2766 (mips_insn16_frame_cache, mips32_scan_prologue, mips_insn32_frame_cache)
2767 (mips_stub_frame_cache, mips_read_fp_register_single)
2768 (mips_read_fp_register_double, mips_print_fp_register)
2769 (mips_print_register, print_gp_register_row): Use get_frame_arch to get
2770 at the current architecture by frame_info.
2771 (mips_register_reggroup_p, mips_pseudo_register_read, mips_unwind_sp)
2772 (mips_pseudo_register_write, mips_register_type, mips_unwind_pc)
2773 (mips_unwind_dummy_id, mips_eabi_push_dummy_call)
2774 (mips_n32n64_push_dummy_call, mips_n32n64_return_value)
2775 (mips_o32_push_dummy_call, mips_o32_return_value)
2776 (mips_o64_push_dummy_call, mips_o64_return_value)
2777 (mips_print_registers_info, mips_dump_tdep): Replace current_gdbarch by
2780 2007-10-10 Markus Deuling <deuling@de.ibm.com>
2782 * xtensa-tdep.c (xtensa_register_type, xtensa_pseudo_register_read)
2783 (xtensa_pseudo_register_write, xtensa_register_reggroup_p)
2784 (xtensa_unwind_pc, xtensa_unwind_dummy_id, xtensa_push_dummy_call)
2785 (xtensa_dump_tdep): Replace current_gdbarch by gdbarch.
2786 (xtensa_register_write_masked, xtensa_register_read_masked)
2787 (xtensa_supply_gregset, xtensa_store_return_value)
2788 (xtensa_extract_return_value): Use get_regcache_arch to get at the
2789 current architecture by regcache.
2790 (xtensa_frame_cache, call0_frame_get_reg_at_entry, call0_frame_cache)
2791 (xtensa_frame_prev_register): Use get_frame_arch to get at the current
2792 architecture by frame_info.
2794 2007-10-10 Daniel Jacobowitz <dan@codesourcery.com>
2796 * arm-tdep.c (struct arm_prologue_cache): Remove frameoffset.
2797 (thumb_analyze_prologue): Move pv_area_store_would_trash call
2798 out of loop. Do not set cache->frameoffset.
2799 (arm_scan_prologue): Use prologue-value mechanism. Do not set
2800 frameoffset. Simplify framesize.
2801 (arm_make_prologue_cache, arm_normal_frame_base): Do not use
2803 * arm-tdep.h (enum gdb_regnum): Add ARM_IP_REGNUM.
2805 2007-10-10 Daniel Jacobowitz <dan@codesourcery.com>
2807 * target.c (update_current_target): Call setup_target_debug.
2808 (push_target): Do not call it here.
2810 2007-10-09 Michael Snyder <msnyder@specifix.com>
2812 * MAINTAINERS: Update my email address.
2814 2007-10-09 Markus Deuling <deuling@de.ibm.com>
2816 * xtensa-tdep.c: Replace following current-gdbarch based macros by
2818 (xtensa_pseudo_register_read)
2819 (xtensa_pseudo_register_write): XTENSA_TARGET_FLAGS.
2820 (ARG_NOF, ARG_1ST, xtensa_extract_return_value)
2821 (xtensa_store_return_value, xtensa_push_dummy_call): CALL_ABI.
2822 (xtensa_pseudo_register_read)
2823 (xtensa_pseudo_register_write): ISA_USE_WINDOWED_REGISTERS.
2824 (xtensa_breakpoint_from_pc): ISA_USE_DENSITY_INSTRUCTIONS.
2825 (xtensa_register_type, xtensa_supply_gregset, xtensa_frame_cache)
2826 (xtensa_frame_prev_register): NUM_AREGS.
2827 (xtensa_pseudo_register_read, xtensa_pseudo_register_write,
2828 (xtensa_supply_gregset, xtensa_frame_cache, xtensa_frame_prev_register,
2829 (xtensa_extract_return_value, xtensa_store_return_value): WB_REGNUM.
2830 (xtensa_supply_gregset, xtensa_frame_cache)
2831 (xtensa_frame_prev_register): WS_REGNUM.
2832 (xtensa_supply_gregset): LBEG_REGNUM, LEND_REGNUM, LCOUNT_REGNUM,
2833 SAR_REGNUM, EXCCAUSE_REGNUM, EXCVADDR_REGNUM
2834 (xtensa_register_name, xtensa_register_type, xtensa_reg_to_regnum)
2835 (xtensa_pseudo_register_read, xtensa_pseudo_register_write)
2836 (xtensa_register_reggroup_p): REGMAP.
2837 (call0_track_op): LITBASE_REGNUM.
2838 (xtensa_register_type, xtensa_reg_to_regnum, call0_frame_cache):A0_BASE
2839 (xtensa_supply_gregset, call0_frame_get_reg_at_entry)
2840 (xtensa_frame_prev_register, AREG_NUMBER)
2841 (xtensa_register_type): AR_BASE.
2842 (xtensa_pseudo_register_read, xtensa_pseudo_register_write): FP_ALIAS.
2843 (AREG_NUMBER): AREGS_MASK, WB_MASK, A0_REGNUM.
2844 (ARG_1ST, xtensa_pseudo_register_read, xtensa_pseudo_register_write)
2845 (xtensa_frame_cache, xtensa_frame_prev_register)
2846 (xtensa_extract_return_value, xtensa_store_return_value)
2847 (xtensa_push_dummy_call, call0_frame_cache): A0_REGNUM.
2848 (xtensa_register_type, xtensa_pseudo_register_read, xtensa_frame_cache)
2849 (xtensa_pseudo_register_write, xtensa_unwind_dummy_id)
2850 (xtensa_frame_prev_register, xtensa_push_dummy_call)
2851 (call0_frame_cache): A1_REGNUM.
2852 (xtensa_extract_return_value, xtensa_store_return_value): A2_REGNUM.
2853 (xtensa_push_dummy_call): A4_REGNUM.
2854 (ARGS_FIRST_REG): A6_REGNUM.
2855 (xtensa_pseudo_register_read, xtensa_pseudo_register_write)
2856 (xtensa_frame_prev_register): A15_REGNUM.
2857 * xtensa-tdep.h: Delete current_gdbarch based macros after replacing
2858 them in the appropriate source file:
2859 XTENSA_TARGET_FLAGS, SPILL_LOCATION, SPILL_SIZE, CALL_ABI, NUM_AREGS,
2860 ISA_USE_WINDOWED_REGISTERS, ISA_USE_DENSITY_INSTRUCTIONS, WB_REGNUM,
2861 ISA_USE_EXCEPTIONS, ISA_USE_EXT_L32R, DEBUG_DATA_VADDR_TRAP_COUNT,
2862 DEBUG_INST_VADDR_TRAP_COUNT, ISA_MAX_INSN_SIZE, DEBUG_NUM_IBREAKS,
2863 DEBUG_NUM_DBREAKS, WS_REGNUM, LBEG_REGNUM, LEND_REGNUM, SAR_REGNUM,
2864 REGMAP, LITBASE_REGNUM, DEBUGCAUSE_REGNUM, EXCCAUSE_REGNUM, AR_BASE,
2865 EXCVADDR_REGNUM, NUM_IBREAKS, REGMAP_BYTES, NUM_CONTEXTS, FP_ALIAS,
2866 FP_LAYOUT, FP_LAYOUT_BYTES, GREGMAP, AREGS_MASK, WB_MASK, A0_REGNUM,
2867 A1_REGNUM, A2_REGNUM, A3_REGNUM, A4_REGNUM, A5_REGNUM, A6_REGNUM,
2868 A7_REGNUM, A8_REGNUM, A9_REGNUM, A10_REGNUM, A11_REGNUM, A12_REGNUM,
2869 A13_REGNUM, A14_REGNUM, A15_REGNUM.
2871 2007-10-09 Markus Deuling <deuling@de.ibm.com>
2873 * h8300-tdep.c (h8300_frame_cache): Use get_frame_arch to get at
2874 the current architecture by frame_info.
2875 (h8300_frame_prev_register
2876 (h8300_print_register): Replace current_gdbarch by gdbarch.
2877 (h8300_print_registers_info, h8300_register_type)
2878 (h8300_register_type): Likewise.
2880 2007-10-09 Markus Deuling <deuling@de.ibm.com>
2882 * i386-linux-nat.c (fetch_register): Use get_regcache_arch to get at
2883 the current architecture by regcache.
2884 (store_register, supply_gregset, fill_gregset, i386_linux_resume)
2885 (i386_linux_fetch_inferior_registers)
2886 (i386_linux_store_inferior_registers): Likewise.
2887 * i386gnu-nat.c (gnu_fetch_registers, gnu_store_registers): Likewise.
2888 * i386-nto-tdep.c (i386nto_supply_gregset): Likewise.
2889 * i386v4-nat.c (supply_fpregset, fill_fpregset): Likewise.
2890 * i386-tdep.c (i386_unwind_pc): Replace current_gdbarch by gdbarch.
2891 (i386_extract_return_value, i386_store_return_value): Likewise.
2892 * i386-tdep.c (i386_frame_prev_register): Use get_frame_arch to get at
2893 the current architecture by frame_info.
2894 (i386_sigtramp_frame_cache, i386_get_longjmp_target)
2895 (i386_register_to_value, i386_value_to_register): Likewise.
2897 2007-10-09 Markus Deuling <deuling@de.ibm.com>
2899 * monitor.c (monitor_supply_register): Use get_regcache_arch to get at
2900 the current architecture by regcache.
2901 (monitor_store_register, monitor_store_registers): Likewise.
2903 2007-10-09 Markus Deuling <deuling@de.ibm.com>
2905 * dbug-rom.c (dbug_supply_register): Use get_regcache_arch to get at
2906 the current architecture by regcache.
2908 2007-10-09 Markus Deuling <deuling@de.ibm.com>
2910 * arch-utils.c (legacy_return_value): Replace current_gdbarch by
2913 2007-10-09 Markus Deuling <deuling@de.ibm.com>
2915 * frame.c (frame_pc_unwind): Use get_frame_arch to get at the current
2916 architecture by frame.
2917 (frame_save_as_regcache, frame_register_unwind, get_prev_frame_1)
2918 (inside_main_func, frame_sp_unwind): Likewise.
2920 2007-10-09 Daniel Jacobowitz <dan@codesourcery.com>
2922 * solib-svr4.c (enable_break): Add the dynamic linker also if
2925 2007-10-09 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
2927 * MAINTAINERS (Write After Approval): Add self.
2929 2007-10-09 Pedro Alves <pedro_alves@portugalmail.pt>
2931 * stabsread.c (read_huge_number): Initialize local variable to 0.
2933 2007-10-09 Pierre Muller <muller@ics.u-strasbg.fr>
2935 * p-lang.h (pascal_main_name): Add declaration.
2936 * p-lang.c (GPC_P_INITIALIZE, GPC_MAIN_PROGRAM_NAME_1)
2937 (GPC_MAIN_PROGRAM_NAME_2): New constants.
2938 (pascal_main_name): New function.
2939 * symtab.c: Include p-lang.h.
2940 (find_main_name): Add call to pascal_main_name.
2941 * Makefile.in (symtab.o): Add dependency on p-lang.h.
2943 2007-10-09 Pedro Alves <pedro_alves@portugalmail.pt>
2945 * stabsread.c (read_huge_number): Fix handling of octal
2946 representation when the bit width is known.
2947 (read_range_type): Record unsigned integral types with their size,
2948 when the type size is known.
2950 2007-10-08 Thiago Jung Bauermann <bauerman@br.ibm.com>
2952 * MAINTAINERS (Write After Approval): Add self.
2954 2007-10-08 Pierre Muller <muller@ics.u-strasbg.fr>
2956 * breakpoint.c (print_one_breakpoint_location): ARI fix:
2957 Replace asprintf by xstrprintf.
2959 2007-10-08 Pierre Muller <muller@ics.u-strasbg.fr>
2961 * linux-fork.c: ARI fix: include "gdb_dirent.h" instead of <dirent.h>.
2962 Makefile.in (linux-fork.o): Add gdb_dirent.h dependency.
2964 2007-10-08 Pierre Muller <muller@ics.u-strasbg.fr>
2966 * linux-fork.c: Move "gdb_wait.h" include back to the position of
2967 <sys/wait.h> include before last commit.
2969 2007-10-08 Maciej W. Rozycki <macro@mips.com>
2971 * mips-tdep.c (mips32_next_pc): Fix a typo in BGTZL.
2973 2007-10-08 Markus Deuling <deuling@de.ibm.com>
2975 * aix-thread.c (supply_gprs64, supply_fprs, supply_sprs64)
2976 (supply_sprs32, fetch_regs_user_thread, fetch_regs_kernel_thread)
2977 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs64, fill_sprs32)
2978 (store_regs_user_thread, store_regs_kernel_thread): Use
2979 get_regcache_arch or get_frame_arch to get at the current architecture
2980 by regcache or by frame, respectively.
2982 2007-10-08 Markus Deuling <deuling@de.ibm.com>
2984 * sh64-tdep.c (sh64_push_dummy_call, sh64_register_type)
2985 (sh64_pseudo_register_read, sh64_pseudo_register_write)
2986 (sh64_do_fp_register, sh64_do_pseudo_register, sh64_do_register)
2987 (sh64_print_register, sh64_media_print_registers_info)
2988 (sh64_compact_print_registers_info, sh64_unwind_sp)
2989 (sh64_unwind_pc): Replace current_gdbarch by gdbarch.
2990 (sh64_show_media_regs, sh64_show_compact_regs, sh64_frame_cache)
2991 (sh64_frame_prev_register): Use FRAME to recognize current
2994 2007-10-08 Markus Deuling <deuling@de.ibm.com>
2996 * sh-tdep.c (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu)
2997 (sh_sh2a_register_type, sh_sh3e_register_type, sh_sh4_register_type)
2998 (sh_register_reggroup_p, sh_dwarf2_frame_init_reg): Replace
2999 current_gdbarch by gdbarch.
3000 (sh_generic_show_regs, sh3_show_reg, sh2e_show_regs, sh2a_show_regs)
3001 (sh2a_nofpu_show_regs, sh3e_show_regs, sh3_dsp_show_regs)
3002 (sh4_show_regs, sh4_nofpu_show_regs, sh_dsp_show_regs, sh_frame_cache)
3003 (sh_frame_prev_register, sh_unwind_sp, sh_unwind_pc): Use FRAME to
3004 recognize current architecture.
3006 2007-10-08 Markus Deuling <deuling@de.ibm.com>
3008 * remote.c (init_remote_state, fetch_register_using_p)
3009 (process_g_packet, remote_fetch_registers, remote_prepare_to_store)
3010 (store_register_using_P, store_registers_using_G)
3011 (remote_store_registers): Use get_regcache_arch or get_frame_arch to
3012 get at the current architecture by regcache or by frame, respectively.
3014 2007-10-08 Markus Deuling <deuling@de.ibm.com>
3016 * m68k-tdep.c (m68k_register_to_value, m68k_value_to_register)
3017 (m68k_svr4_extract_return_value, m68k_svr4_store_return_value)
3018 (m68k_frame_prev_register, m68k_get_longjmp_target): Use
3019 get_regcache_arch or get_frame_arch to get at the current architecture
3020 by regcache or by frame, respectively.
3021 * m68klinux-tdep.c (m68k_linux_sigtramp_frame_cache): Likewise.
3022 * m68klinux-nat.c (fetch_register, old_fetch_inferior_registers)
3023 (store_register, old_store_inferior_registers, supply_gregset)
3024 (supply_fpregset, fill_fpregset): Likewise.
3025 * m68k-tdep.c (m68k_register_type, m68k_unwind_pc, m68k_dump_tdep):
3026 Replace current_gdbarch by gdbarch.
3028 2007-10-08 Markus Deuling <deuling@de.ibm.com>
3030 * irix5-nat.c (supply_gregset, fill_gregset, supply_fpregset)
3031 (fill_fpregset, fetch_core_registers): Use get_regcache_arch or
3032 get_frame_arch to get at the current architecture by regcache or by
3033 frame, respectively.
3035 2007-10-08 Markus Deuling <deuling@de.ibm.com>
3037 * ia64-tdep.c (ia64_pseudo_register_read, ia64_pseudo_register_write):
3038 Replace current_gdbarch by gdbarch.
3039 * ia64-tdep.c (ia64_frame_prev_register
3040 (ia64_sigtramp_frame_prev_register)
3041 (ia64_libunwind_frame_prev_register): Use get_regcache_arch or
3042 get_frame_arch to get at the current architecture by regcache or by
3043 frame, respectively.
3044 * ia64-linux-nat.c (ia64_linux_fetch_register)
3045 (ia64_linux_fetch_registers, ia64_linux_store_register)
3046 (ia64_linux_store_registers): Likewise.
3048 2007-10-08 Markus Deuling <deuling@de.ibm.com>
3050 * hppa-tdep.c (hppa_stub_unwind_sniffer, hppa_dump_tdep): Replace
3051 current_gdbarch by gdbarch.
3052 * hppa-linux-nat.c (fetch_register, store_register)
3053 (hppa_linux_fetch_inferior_registers)
3054 (hppa_linux_store_inferior_registers): Use get_regcache_arch or
3055 get_frame_arch to get at the current architecture by regcache or by
3056 frame, respectively.
3057 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code
3058 (hppa_hpux_unwind_adjust_stub): Likewise.
3059 * hppa-hpux-nat.c (hppa_hpux_fetch_register, hppa_hpux_store_register)
3060 (hppa_hpux_fetch_inferior_registers)
3061 (hppa_hpux_store_inferior_registers): Likewise.
3063 2007-10-08 Markus Deuling <deuling@de.ibm.com>
3065 * cris-tdep.c (cris_sigcontext_addr, cris_sigtramp_frame_unwind_cache)
3066 (cris_scan_prologue, crisv32_scan_prologue, find_step_target)
3067 (cris_software_single_step, cris_supply_gregset): Use get_regcache_arch
3068 or get_frame_arch to get at the current architecture by regcache or by
3069 frame, respectively.
3070 * cris-tdep.c (crisv32_single_step_through_delay, cris_push_dummy_call)
3071 (cris_unwind_pc, cris_unwind_sp, cris_register_type, cris_dump_tdep)
3072 (crisv32_register_type, cris_dwarf2_frame_init_reg): Replace
3073 current_gdbarch by gdbarch.
3075 2007-10-08 Markus Deuling <deuling@de.ibm.com>
3077 * arm-tdep.c (arm_scan_prologue, arm_make_prologue_cache)
3078 (thumb_get_next_pc, arm_get_next_pc, arm_extract_return_value)
3079 (arm_store_return_value): Use get_regcache_arch or get_frame_arch to
3080 get at the current architecture by regcache or by·frame, respectively.
3081 (arm_push_dummy_call, arm_dump_tdep): Replace current_gdbarch by
3084 2007-10-08 Markus Deuling <deuling@de.ibm.com>
3086 * amd64-tdep.c (amd64_frame_prev_register, amd64_sigtramp_frame_cache):
3087 Use get_regcache_arch or get_frame_arch to get at the current
3088 architecture by regcache or by frame, respectively.
3089 * amd64-linux-tdep.c (amd64_linux_sigcontext_addr): Likewise.
3090 * amd64-nat.c (amd64_supply_native_gregset)
3091 (amd64_collect_native_gregset): Replace current_gdbarch by gdbarch.
3093 2007-10-08 Markus Deuling <deuling@de.ibm.com>
3095 * alpha-tdep.c (alpha_register_reggroup_p): Replace current_gdbarch by
3097 * alpha-linux-nat.c (alpha_linux_register_u_offset): Likewise.
3098 (alpha_sigtramp_frame_unwind_cache, alpha_sigtramp_frame_this_id)
3099 (alpha_sigtramp_frame_sniffer, alpha_next_pc): Use get_regcache_arch or
3100 get_frame_arch to get at the current architecture by regcache or by
3101 frame, respectively.
3102 * alpha-nat.c (fetch_osf_core_registers): Likewise.
3104 2007-10-08 Markus Deuling <deuling@de.ibm.com>
3106 * dwarf2-frame.c (read_reg, execute_cfa_program, dwarf2_frame_cache)
3107 (dwarf2_frame_default_init_reg, dwarf2_frame_prev_register): Replace
3108 current_gdbarch by gdbarch.
3109 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Likewise.
3111 2007-10-08 Markus Deuling <deuling@de.ibm.com>
3113 * regcache.c (init_regcache_descr, register_type, read_pc_pid)
3114 (write_pc_pid, regcache_dump): Replace current_gdbarch by gdbarch.
3115 * regcache.c (regcache_raw_write): Use get_regcache_arch or
3116 get_frame_arch to get at the current architecture by regcache or by
3117 frame, respectively.
3119 2007-10-08 Markus Deuling <deuling@de.ibm.com>
3121 * findvar.c (value_of_register, locate_var_value): Use
3122 get_regcache_arch or get_frame_arch to get at the current architecture
3123 by regcache or by frame, respectively.
3124 * findvar.c (default_value_from_register, value_from_register): Replace
3125 current_gdbarch by gdbarch.
3127 2007-10-08 Pierre Muller <muller@ics.u-strasbg.fr>
3129 * config/i386/nm-i386.h (CHILD_POST_STARTUP_INFERIOR): ARI fix: Remove.
3131 2007-10-08 Pierre Muller <muller@ics.u-strasbg.fr>
3133 * linux-fork.c: ARI fix: include "gdb_wait.h" instead of <sys/wait.h>.
3134 Makefile.in (linux-fork.o): Add gdb_wait.h dependency.
3136 2007-10-05 Daniel Jacobowitz <dan@codesourcery.com>
3138 * remote.c (get_offsets): Only call free_symfile_segment_data if
3141 2007-10-03 Pierre Muller <muller@ics.u-strasbg.fr>
3143 * objc-exp.y: ARI fix: remove 4 PARAMS.
3145 2007-10-03 Daniel Jacobowitz <dan@codesourcery.com>
3147 * NEWS: Use uniform spacing. Correct version number for GDB 6.7
3148 news. Mention XML support for M68K in GDB 6.7.
3150 2007-10-03 Daniel Jacobowitz <dan@codesourcery.com>
3152 * gdbtypes.c (create_range_type): Do not set TYPE_FIELD_TYPE for the
3154 (init_vector_type): Use builtin_type_int32.
3156 2007-10-02 Ulrich Weigand <uweigand@de.ibm.com>
3158 * s390-tdep.c (s390_regset_from_core_section): Allow excess section
3159 size to enable bi-arch generate-core-file support.
3161 2007-10-02 Markus Deuling <deuling@de.ibm.com>
3163 * spu-tdep.c (info_spu_signal_command): Fix output for SPU signal.
3165 2007-10-02 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
3167 * tui/tui-interp.c (tui_init): Initialize tui's SIGWINCH
3169 * tui/tui-win.c (tui_initialize_win): New function for
3170 initializing tui's SIGWINCH signal handler.
3171 * tui/tui-win.h (tui_initialize_win): Declare.
3173 2007-10-02 Ulrich Weigand <uweigand@de.ibm.com>
3175 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Cast
3176 pointer to uintptr_t before casting to CORE_ADDR.
3178 2007-10-02 Markus Deuling <deuling@de.ibm.com>
3180 * linux-nat.c (PTRACE_GETSIGINFO): Add define.
3182 2007-10-02 Mark Mitchell <mark@codesourcery.com>
3184 * mingw-hdep.c (gdb_select): Stop helper threads before returning.
3185 * ser-mingw.c (enum select_thread_state): New type.
3186 (struct ser_console_state): Add have_started and thread_state.
3187 (select_thread_wait): New function.
3188 (thread_fn_type): New type.
3189 (create_select_thread): New function.
3190 (destroy_select_thread): Likewise.
3191 (start_select_thread): Likewise.
3192 (stop_select_thread): Likewise.
3193 (console_select_thread): Use new functions.
3194 (pipe_select_thread): Likewise.
3195 (file_select_thread): Likewise.
3196 (ser_console_wait_handle): Likewise.
3197 (ser_console_done_wait_handle): Likewise.
3198 (ser_console_close): Likewise.
3199 (free_pipe_state): Likewise.
3200 (pipe_wait_handle): Likewise.
3201 (pipe_done_wait_handle): Likewise.
3202 (struct net_windows_state): Derive from ser_console_state.
3203 (net_windows_select_thread): Use new functions.
3204 (net_windows_wait_handle): Likewise.
3205 (net_windows_done_wait_handle): Likewise.
3206 (net_windows_close): Likewise.
3208 2007-10-02 Daniel Jacobowitz <dan@codesourcery.com>
3210 * inflow.c (terminal_ours_1): Remove useless line.
3212 2007-10-02 Daniel Jacobowitz <dan@codesourcery.com>
3214 * mips-tdep.c (mips_read_fp_register_double): Correct check for
3216 (mips_print_fp_register): Correct check for even FP registers.
3217 (mips_virtual_frame_pointer): New function.
3218 (mips_gdbarch_init): Call set_gdbarch_virtual_frame_pointer.
3220 2007-09-30 Mike Frysinger <vapier@gentoo.org>
3222 * value.h (lookup_only_internalvar): New prototype.
3223 (create_internalvar): Likewise.
3224 * value.c (lookup_only_internalvar): New function.
3225 (create_internalvar): Likewise.
3226 (lookup_internalvar): Use new lookup_only_internalvar and
3227 create_internalvar functions.
3228 * parse.c (write_dollar_variable): Look up $ symbols in internal
3229 table first rather than last.
3231 2007-09-30 Daniel Jacobowitz <dan@codesourcery.com>
3233 * linux-nat.c (linux_nat_new_thread): New variable.
3234 (linux_child_follow_fork): Set inferior_ptid to include LWP ID. Use
3235 linux_nat_switch_fork.
3236 (lwp_list): Make public.
3237 (add_lwp): Call linux_nat_new_thread.
3238 (lin_lwp_attach_lwp, linux_nat_attach): Call add_lwp after stopping
3240 (resume_callback): Clear lp->siginfo. Remove unused variable.
3241 (linux_nat_resume): Assert that the LWP list is already initialized.
3243 (save_siginfo): New.
3244 (stop_wait_callback, linux_nat_wait): Call it.
3245 (linux_nat_set_new_thread, linux_nat_get_siginfo): New.
3246 * linux-nat.h (struct lwp_info): Add siginfo.
3247 (lwp_list, linux_nat_set_new_thread, linux_nat_get_siginfo): Declare.
3250 * amd64-linux-nat.c (amd64_linux_dr): New.
3251 (amd64_linux_dr_get): Take a PTID argument. Correct typo.
3252 (amd64_linux_dr_set): Take a PTID argument.
3253 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use ALL_LWPS.
3254 (amd64_linux_dr_reset_addr): Use amd64_linux_dr_set_addr.
3255 (amd64_linux_dr_get_status): Pass inferior_ptid to amd64_linux_dr_get.
3256 (amd64_linux_new_thread): New.
3257 (_initialize_amd64_linux_nat): Call linux_nat_set_new_thread.
3258 * i386-linux-nat.c (i386_linux_dr): New.
3259 (i386_linux_dr_get, i386_linux_dr_set): Take a PTID argument.
3260 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use ALL_LWPS.
3261 (i386_linux_dr_reset_addr): Use i386_linux_dr_set_addr.
3262 (i386_linux_dr_get_status): Pass inferior_ptid to i386_linux_dr_get.
3263 (i386_linux_new_thread): New.
3264 (i386_linux_resume): Remove unnecessary PID check.
3265 (_initialize_i386_linux_nat): Call linux_nat_set_new_thread.
3266 * ia64-linux-nat.c (enable_watchpoints_in_psr): Take PTID argument.
3267 (fetch_debug_register, fetch_debug_register_pair): Delete.
3268 (debug_registers): New.
3269 (ia64_linux_insert_watchpoint, ia64_linux_remove_watchpoint): Use
3270 ALL_LWPS and debug_registers.
3271 (ia64_linux_new_thread): New.
3272 (ia64_linux_stopped_data_address): Use linux_nat_get_siginfo.
3273 (_initialize_ia64_linux_nat): Call linux_nat_set_new_thread.
3274 * ppc-linux-nat.c (last_stopped_data_address): Delete.
3275 (saved_dabr_value): New.
3276 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint): Use
3278 (ppc_linux_new_thread): New.
3279 (ppc_linux_stopped_data_address): Use linux_nat_get_siginfo.
3280 (ppc_linux_stopped_by_watchpoint): Call ppc_linux_stopped_data_address.
3281 (_initialize_ppc_linux_nat): Call linux_nat_set_new_thread.
3282 * s390-nat.c (s390_stopped_by_watchpoint): Clear the watchpoint status
3284 (s390_fix_watch_points): Take a PTID argument.
3285 (s390_insert_watchpoint, s390_remove_watchpoint): Use ALL_LWPS.
3286 (_initialize_s390_nat): Call linux_nat_set_new_thread.
3288 2007-09-30 Daniel Jacobowitz <dan@codesourcery.com>
3289 Jeff Johnston <jjohnstn@redhat.com>
3291 * breakpoint.c (watchpoints_triggered): New.
3292 (bpstat_stop_status): Remove STOPPED_BY_WATCHPOINT argument.
3293 Check watchpoint_triggered instead. Combine handling for software
3294 and hardware watchpoints. Do not use target_stopped_data_address
3295 here. Always check a watchpoint if its scope breakpoint triggers.
3296 Do not stop for thread or overlay events. Improve check for
3297 triggered watchpoints without a value change.
3298 (watch_command_1): Insert the scope breakpoint first. Link the
3299 scope breakpoint to the watchpoint.
3300 * breakpoint.h (enum watchpoint_triggered): New.
3301 (struct breakpoint): Add watchpoint_triggered.
3302 (bpstat_stop_status): Update prototype.
3303 (watchpoints_triggered): Declare.
3304 * infrun.c (enum infwait_status): Add infwait_step_watch_state.
3305 (stepped_after_stopped_by_watchpoint): Delete.
3306 (handle_inferior_event): Make stepped_after_stopped_by_watchpoint
3307 local. Handle infwait_step_watch_state. Update calls to
3308 bpstat_stop_status. Use watchpoints_triggered to check
3310 * remote.c (stepped_after_stopped_by_watchpoint): Remove extern.
3311 (remote_stopped_data_address): Do not check it.
3313 2007-09-29 Daniel Jacobowitz <dan@codesourcery.com>
3315 * configure.ac: Add $LIBINTL when testing libbfd.
3316 * configure: Regenerated.
3318 2007-09-28 Vladimir Prus <vladimir@codesourcery.com>
3320 * NEW: Mention pending breakpoint changes and
3321 support for breakpoints at multiple locations.
3323 2007-09-27 Daniel Jacobowitz <dan@codesourcery.com>
3325 * arm-linux-tdep.c (arm_linux_software_single_step): New.
3326 (arm_linux_init_abi): Use it.
3327 * arm-tdep.c (arm_get_next_pc): Make global. Handle all-ones
3328 condition correctly.
3329 * arm-tdep.h (arm_get_next_pc): Declare.
3330 * Makefile.in (arm-linux-tdep.o): Update.
3332 2007-09-26 Vladimir Prus <vladimir@codesourcery.com>
3334 * varobj.c (install_new_value): Don't
3335 call value_get_print_value when a value is
3336 lazy. Update the print_value member in a
3339 2007-09-26 Vladimir Prus <vladimir@codesourcery.com>
3341 * breakpoint.c (create_breakpoint): Set
3342 condition on each location, not on the first
3343 location of breakpoint.
3345 2007-09-26 Jim Blandy <jimb@codesourcery.com>
3347 * remote.c (getpkt_sane): Fix error message. No animals were
3348 harmed in the making of this debugger.
3350 2007-09-26 Pierre Muller <muller@ics.u-strasbg.fr>
3352 * p-typeprint.c: Fix 11 ARI reported problems.
3353 (pascal_print_type): Fix 4 operator at end of line.
3354 (pascal_type_print_method_args) : Replace 2 DEPRECATED_STREQN macros
3355 using strncmp function.
3356 (pascal_type_print_base): Fix 2 operator at end of line.
3357 (pascal_type_print_base) : Replace 3 DEPRECATED_STREQN macros
3358 using strncmp function.
3361 2007-09-26 Pierre Muller <muller@ics.u-strasbg.fr>
3363 * Fix PR pascal/2231
3364 dwarf2read.c (read_subroutine_type):
3365 All pascal functions are prototyped.
3367 2007-09-26 Pierre Muller <muller@ics.u-strasbg.fr>
3369 * Fix PR pascal/2283
3370 p-valprint.c (pascal_val_print): correct current language check.
3371 Also print array of char as strings.
3374 2007-09-26 David Ung <davidu@mips.com>
3375 Maciej W. Rozycki <macro@mips.com>
3377 * mips-tdep.c (mips_n32n64_return_value): Fix a comment.
3379 2007-09-25 Pierre Muller <muller@ics.u-strasbg.fr>
3381 * p-exp.y: Fix 12 ARI reported problems.
3382 (name_not_typename): Fix 2 operator at end of line issues.
3383 (yylex): Fix 3 operator at end of line issues.
3384 Replace 7 DEPRECATED_STREQ macros using strcmp function.
3386 2007-09-25 David Ung <davidu@mips.com>
3387 Maciej W. Rozycki <macro@mips.com>
3389 * mips-tdep.c (mips_n32n64_return_value): Per N32/N64 ABI
3390 rules return composite types in registers as appropriate.
3392 2007-09-24 Jim Blandy <jimb@codesourcery.com>
3394 * symfile.h (struct symfile_segment_data): Doc fixes.
3395 * symfile.c (symfile_map_offsets_to_segments): Doc fixes.
3396 Assert that we were passed some loaded segment addresses,
3397 and that sections' segment numbers are valid.
3398 Simplify offset calculation.
3399 * remote.c (get_offsets): Clarify selection of relocate-by-segment
3400 strategy, and set num_segments correctly. Delete redundant
3401 assignments to do_sections.
3403 2007-09-24 Daniel Jacobowitz <dan@codesourcery.com>
3405 * frame.c (get_prev_frame_1): Also check for PC in the same register.
3407 2007-09-24 Vladimir Prus <vladimir@codesourcery.com>
3409 * breakpoint.c (remove_sal): New.
3410 (expand_line_sal_maybe): New.
3411 (create_breakpoints): Call expand_line_sal_maybe.
3412 (clear_command): Add comment.
3413 (breakpoint_re_set_one): Call expand_line_sal_maybe.
3414 * linespec.c (decode_indirect): Set explicit_pc to 1.
3415 (decode_all_digits): Set explicit_line to 1.
3416 (append_expanded_sal): New.
3417 (expand_line_sal): New.
3418 * linespec.h (expand_line_sal): Declare.
3419 * symtab.c (init_sal): Initialize explicit_pc
3421 * symtab.h (struct symtab_and_line): New fields
3422 explicit_pc and explicit_line.
3424 2007-09-23 Daniel Jacobowitz <dan@codesourcery.com>
3426 * infcall.c (call_function_by_hand): Handle language-specific
3427 pass and return by reference.
3429 * cp-abi.c (cp_pass_by_reference): New.
3430 * cp-abi.h (cp_pass_by_reference): Declare.
3431 (struct cp_abi_ops): Add pass_by_reference.
3432 * gnu-v3-abi.c (gnuv3_pass_by_reference): New.
3433 (init_gnuv3_ops): Set pass_by_reference.
3435 * language.c (language_pass_by_reference): New.
3436 (default_pass_by_reference): New.
3437 (unknown_language_defn, auto_language_defn, local_language_defn): Add
3438 default_pass_by_reference.
3439 * langauge.h (struct language_defn): Add la_pass_by_reference.
3440 (language_pass_by_reference, default_pass_by_reference): Declare.
3441 * ada-lang.c (ada_language_defn): Add default_pass_by_reference.
3442 * c-lang.c (c_language_defn, asm_language_defn)
3443 (minimal_language_defn): Likewise.
3444 (cplus_language_defn): Add cp_pass_by_reference.
3445 * f-lang.c (f_language_defn): Add default_pass_by_reference.
3446 * jv-lang.c (java_language_defn): Likewise.
3447 * m2-lang.c (m2_language_defn): Likewise.
3448 * objc-lang.c (objc_language_defn): Likewise.
3449 * p-lang.c (pascal_language_defn): Likewise.
3450 * scm-lang.c (scm_language_defn): Likewise
3452 2007-09-23 Vladimir Prus <vladimir@codesourcery.com>
3454 Allow a code breakpoint to have several locations
3456 * breakpoint.h (enum enable_state): Remove the
3457 bp_shlib_disabled enumerator.
3458 (struct bp_location): New members shlib_disabled,
3459 global_next, enabled and function_name.
3460 Rename pending to condition_not_parsed.
3462 * breakpoint.c (ALL_BP_LOCATIONS): Iterate over global_next.
3463 (ALL_BP_LOCATIONS_SAFE): Likewise.
3464 (breakpoint_enabled): Don't check for pending.
3465 (condition_command): Free and update all locations of
3467 (insert_bp_location): Adjust.
3468 (software_breakpoint_inserted_here_p): Don't care
3469 if breakpoint is enabled, as soon as it's inserted.
3470 (print_it_typical): Print bpstat's location, not
3471 bpstat's breakpoint's location.
3472 (bpstat_stop_status): Iterate over all locations, not
3474 (print_breakpoint_location): New.
3475 (print_one_breakpoint): Renamed to
3476 (print_one_breakpoint_location): ...this. Take
3477 parameters to describe which location is being
3478 printed. Modify code to properly print header
3479 for several locations and individual locations.
3480 (print_one_breakpoint): Print all locations.
3481 (breakpoint_has_pc): New.
3482 (describe_other_breakpoints): Use the above.
3483 (check_duplicates): Renamed to...
3484 (check_duplicates_for): .. this.
3485 (check_duplicates): Use check_duplicates_for.
3486 (allocate_bp_location): Adjust.
3487 (set_raw_breakpoint_without_location): New,
3488 extracted from set_raw_breakpoint.
3489 (set_breakpoint_location_function): New.
3490 (set_raw_breakpoint): Use
3491 set_raw_breakpoint_without_location.
3492 (make_breakpoint_permanent): Mark all locations
3494 (disable_breakpoints_in_shlibs): Iterate over
3496 (disable_breakpoints_in_unloaded_shlib): Likewise.
3497 (re_enable_breakpoints_in_shlibs): Likewise.
3498 (mention): Say "pending" when breakpoint has
3499 zero locations. If breakpoint has more than one
3501 (add_location_to_breakpoint): New.
3502 (create_breakpoint): Accept symtabs_and_lines, not
3503 symtab_and_line. Pass extra sals to
3504 add_location_to_breakpoint.
3505 (create_breakpoints): Pass symtabs_and_lines to
3507 (break_command_1): Make pending breakpoints
3508 have zero locations.
3509 (do_captured_breakpoint): Remove wrong allocation.
3510 (clear_command): Iterate over all locations.
3511 (unlink_locations_from_global_list): Renamed
3512 from unlink_location_from_global_list. Remove
3514 (delete_breakpoint): Remove all locations.
3515 Iterate over all locations when deciding which
3516 other location to re-enable.
3517 (all_locations_are_pending): New.
3518 (update_breakpoint_locations): Renamed from
3519 update_breakpoint_location. Try to match old
3520 and new locations using names of containing
3522 (breakpoint_re_set_one): Adjust.
3523 (find_location_by_number): New.
3524 (disable_command): Allow disabling individual location.
3525 (enable_command): Allow enabling individual location.
3526 * breakpoint.c: Adjust all uses of breakpoint's
3527 enable state to for bp_shlib_disabled change.
3529 2007-09-22 Vladimir Prus <vladimir@codesourcery.com>
3531 * breakpoint.c (do_restore_lang_radix_cleanup): Remove.
3532 (resolve_pending_breakpoint): Remove.
3533 (re_enable_breakpoints_in_shlibs): Remove.
3534 (unlink_locations_from_global_list): New.
3535 (update_breakpoint_locations): New.
3536 (breakpoint_re_set_one): Don't bail out on pending breakpoints.
3537 Use parse_condition and update_breakpoint_location to
3538 reset breakpoint. Ignore 'symbol not found' error from
3540 (breakpoint_re_set): Don't emit newline before the
3541 reason why breakpoint is not reset.
3542 (do_enable_breakpoint): Don't specially process pending
3544 (free_bp_location): New.
3545 (break_command_1): For pending breakpoints, initialize
3546 all fields of a sal with zeroes.
3547 * breakpoint.h (re_enable_breakpoints_in_shlibs): Remove.
3548 * infcmd.c (post_create_inferior): Don't call
3549 re_enable_breakpoints_in_shlibs.
3550 * infrun.c (handle_inferior_event): Likewise.
3551 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
3552 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
3553 * win32-nat.c (get_win32_debug_event): Likewise.
3555 2007-09-22 Vladimir Prus <vladimir@codesourcery.com>
3557 * breakpoint.c (create_breakpoint): Split from
3558 create_breakpoints, implementing most of its logic.
3559 Take just a single sal, single address string and
3560 single condition. Do not take parsed condition at
3562 (create_breakpoints): Just call create_breakpoint
3564 (find_condition_and_thread): New.
3565 (break_command_1): Use find_condition_and_thread.
3566 Do not keep parsed conditions.
3567 (do_captured_breakpoint): Don't convert
3568 condition string to struct expression.
3570 2007-09-22 Vladimir Prus <vladimir@codesourcery.com>
3572 * breakpoint.h (struct breakpoint): Move the cond
3574 (struct bp_location): Here.
3575 * breakpoint.c (condition_command, bpstat_stop_status)
3576 (print_one_breakpoint, allocate_bp_location)
3577 (solib_load_unload_1, create_fork_vfork_event_catchpoint)
3578 (create_exec_event_catchpoint, create_breakpoints)
3579 (break_command_1, watch_command_1, handle_gnu_v3_exceptions)
3580 (create_ada_exception_breakpoint, set_breakpoint_sal)
3581 (delete_breakpoint, breakpoint_re_set_one): Adjust.
3582 * tui/tui-winsource.c (tui_update_breakpoint_info): Adjust.
3584 2007-09-22 Vladimir Prus <vladimir@codesourcery.com>
3586 Associate bp_stat with bp_location, not breakpoint.
3587 * breakpoint.h (breakpoint_at): Change type
3589 * breakpoint.c (bpstat_alloc): Take bp_location,
3591 (bpstat_find_breakpoint): Look at bpstat's location's
3592 owner, not at bpstat->breakpoint_at.
3593 (bpstat_find_step_resume_breakpoint): Likewise.
3594 (bpstat_num): Likewise.
3595 (print_it_typical): Likewise.
3596 (print_bp_stop_message): Likewise.
3597 (watchpoint_check): Likewise.
3598 (bpstat_what): Likewise.
3599 (bpstat_get_triggered_catchpoints): Likewise.
3600 (breakpoint_auto_delete): Likewise.
3601 (delete_breakpoint): Likewise.
3602 (bpstat_stop_status): Pass location, not breakpoint,
3603 to bpstat_alloc. Look at bpstat's location's
3604 owner, not at bpstat->breakpoint_at.
3606 2007-09-21 Jim Blandy <jimb@codesourcery.com>
3608 * macrotab.h (new_macro_table): Document that removing information
3609 from an obstack/bcache-managed macro table leaks memory.
3610 * macrotab.c (macro_free, macro_bcache_free): Instead of asserting
3611 that data is never freed in obstack/bcache-managed macro tables,
3612 just leak the storage.
3613 (macro_undef): If we're undefining a macro at exactly the same
3614 source location that we defined it, simply remove the definition
3617 2007-09-21 Joel Brobecker <brobecker@adacore.com>
3619 * symfile.h (struct sym_fns): Add new field sym_read_linetable.
3620 * coffread.c, dbxread.c, elfread.c, mipsread.c somread.c:
3621 Adjust the struct sym_fns object accordingly by setting
3622 the new field to NULL.
3623 * xcoffread.c (aix_process_linenos): Make static.
3624 (xcoff_sym_fns): Set new field to aix_process_linenos.
3625 * buildsym.c (end_symtab): Replace call to PROCESS_LINENUMBER_HOOK
3626 by call to new the new sym_fns sym_read_linetable function.
3627 * config/powerpc/aix.mt (DEPRECATED_TM_FILE): Delete.
3628 * config/rs6000/tm-rs6000.h: Delete.
3630 2007-09-21 David Ung <davidu@mips.com>
3631 Maciej W. Rozycki <macro@mips.com>
3633 * mips-tdep.c (mips_n32n64_push_dummy_call): Per N32/N64 ABI
3634 rules do not treat composite types specially.
3636 2007-09-20 Maciej W. Rozycki <macro@mips.com>
3638 * mips-tdep.c (mips32_in_function_epilogue_p): New function.
3639 (mips16_in_function_epilogue_p): Likewise.
3640 (mips_in_function_epilogue_p): Likewise.
3641 (mips_gdbarch_init): Register mips_in_function_epilogue_p().
3643 2007-09-19 Joel Brobecker <brobecker@adacore.com>
3645 * configure.ac: Add check for "etext".
3646 * configure, config.in: Regenerate.
3647 * maint.c (TEXTEND): Only define if either _etext or etext
3649 Disable the profiling functionality if TEXTEND is not defined.
3651 2007-09-19 Daniel Jacobowitz <dan@codesourcery.com>
3653 * mips-tdep.c (mips_stub_frame_cache): Correct the saved return
3654 address register. Correct the call to frame_id_build.
3655 (mips_stub_frame_sniffer): Use the stub unwinder when the PC
3658 2007-09-18 Joel Brobecker <brobecker@adacore.com>
3660 * ia64-tdep.c (refine_prologue_limit): Make sure we don't scan
3661 the linetable past the function end.
3663 2007-09-18 James E. Wilson <wilson@specifix.com>
3665 * MAINTAINERS: Update my email address.
3667 2007-09-18 Jerome Guitton <guitton@adacore.com>
3669 * inf-ttrace.c (inf_ttrace_private_thread_info): New structure type.
3670 (inf_ttrace_delete_dying_threads_callback): New function.
3671 (inf_ttrace_resume): After resuming the execution, iterate over
3672 the dying threads to delete them for the thread list.
3673 (inf_ttrace_wait): on TTEVT_LWP_EXIT and TTEVT_LWP_TERMINATE,
3674 mark the corresponding thread as dying instead of removing it
3675 from the thread list.
3676 (inf_ttrace_thread_alive): return 0 for dying threads.
3678 2007-09-17 Joel Brobecker <brobecker@adacore.com>
3680 * infrun.c (insert_step_resume_breakpoint_at_frame): Add assertion
3681 that return_frame is not null.
3683 2007-09-17 Joel Brobecker <brobecker@adacore.com>
3685 * solib-svr4.c: Add include of "auxv.h".
3686 (enable_break): Use the AT_BASE auxiliary entry if available.
3687 * Makefile.in (solib-svr4.o): Update dependencies.
3689 2007-09-17 Joel Brobecker <brobecker@adacore.com>
3691 * NEWS: Create a new section for the next release branch.
3692 Rename the section of the current branch, now that it has
3695 2007-09-17 Jerome Guitton <guitton@adacore.com>
3697 * dwarf2loc.c (dwarf_expr_frame_base): Guard against NULL.
3698 * Makefile.in (dwarf2loc.o): Depend on gdb_assert.h.
3700 2007-09-16 Vladimir Prus <vladimir@codesourcery.com>
3702 * mi/mi-cmds.c (mi_cmds): Register -list-features.
3703 * mi/mi-cmds.h (mi_cmd_list_features): New.
3704 * mi/mi-main.c (mi_cmd_list_features): New.
3706 2007-09-11 Joel Brobecker <brobecker@adacore.com>
3708 GDB 6.7 branch created (branch timestamp: 2007-09-07 14:00 UTC)
3709 * version.in: Bump version to 6.7.50-20070911-cvs.
3711 2007-09-10 Daniel Jacobowitz <dan@codesourcery.com>
3713 * thread.c (free_thread): Do not delete the step resume breakpoint
3716 2007-09-10 Daniel Jacobowitz <dan@codesourcery.com>
3718 * arch-utils.c (gdbarch_info_fill): Also try core_bfd.
3719 * corelow.c (core_read_description): New.
3720 (init_core_ops): Set to_read_description.
3721 * gdbarch.sh: Add gdbarch_core_read_description.
3722 * mips-linux-tdep.c (mips_linux_core_read_description): New.
3723 (mips_linux_init_abi): Call set_gdbarch_core_read_description.
3724 * mips-tdep.c (mips_tdesc_gp32, mips_tdesc_gp64): New.
3725 (mips_register_g_packet_guesses): Use them.
3726 (_initialize_mips_tdep): Initialize them.
3727 * mips-tdep.h (mips_tdesc_gp32, mips_tdesc_gp64): Declare.
3728 * gdbarch.h, gdbarch.c: Regenerated.
3730 2007-09-10 Ulrich Weigand <uweigand@de.ibm.com>
3732 * infrun.c (stepping_past_breakpoint): New global variable.
3733 (stepping_past_breakpoint_ptid): Likewise.
3734 (prepare_to_proceed): Add STEP parameter. Do not check for Ctrl-C.
3735 Only switch threads if we need to single-step over a breakpoint hit
3736 in the previously selected thread. If stepping, remember previous
3737 thread to switch back to in STEPPING_PAST_BREAKPOINT[_PTID]. Call
3738 switch_to_thread instead of copying its contents.
3739 (proceed): Pass STEP to prepare_to_proceed. Always set ONEPROC if
3740 prepare_to_proceed returns true.
3741 (init_wait_for_inferior): Reset STEPPING_PAST_BREAKPOINT.
3742 (context_switch): Call switch_to_thread.
3743 (handle_inferior_event): Switch back to previous thread if requested
3744 in STEPPING_PAST_BREAKPOINT[_PTID] by prepare_to_proceed.
3745 * gdbthread.h (switch_to_thread): Add prototype.
3746 * thread.c (switch_to_thread): Make global.
3748 2007-09-07 Pierre Muller <muller@ics.u-strasbg.fr>
3750 * p-valprint.c: Fix 7 ARI reported problems.
3751 (pascal_val_print): Fix one operator at end of line issue.
3752 Use paddress function to remove use of
3753 deprecated_print_address_numeric function (2 times).
3754 Use SYMBOL_LINKAGE_NAME instead of DEPRECATED_SYMBOL_NAME.
3755 (pascal_value_print): Fix 3 operator at end of line issues.
3757 2007-09-07 Daniel Jacobowitz <dan@codesourcery.com>
3760 * arm-tdep.c (arm_in_call_stub): Delete.
3761 (arm_skip_stub): Handle from_arm and from_thumb stubs.
3763 2007-09-06 Daniel Jacobowitz <dan@codesourcery.com>
3765 * ppc-sysv-tdep.c (do_ppc_sysv_return_value): Handle other integer
3768 2007-09-04 Daniel Jacobowitz <dan@codesourcery.com>
3769 Jim Blandy <jimb@codesourcery.com>
3771 * NEWS: Update description of string changes. Mention print/s.
3772 * c-valprint.c (textual_element_type): New.
3773 (c_val_print): Use it. Do not skip address printing for pointers
3774 with a string format.
3775 (c_value_print): Doc update.
3776 * dwarf2read.c (read_array_type): Use make_vector_type.
3777 * gdbtypes.c (make_vector_type): New.
3778 (init_vector_type): Use it.
3779 (gdbtypes_post_init): Initialize builtin_true_unsigned_char.
3780 (_initialize_gdbtypes): Mark int8_t and uint8_t as TYPE_FLAG_NOTTEXT.
3781 * gdbtypes.h (struct builtin_type): Add builtin_true_unsigned_char.
3782 (TYPE_FLAG_NOTTEXT, TYPE_NOTTEXT): New.
3783 (make_vector_type): New.
3784 * printcmd.c (print_formatted): Only handle 's' and 'i' for examine.
3785 Call the language print routine for string format.
3786 (print_scalar_formatted): Call val_print for string format. Handle
3787 unsigned original types for char format.
3788 (validate_format): Do not reject string format.
3789 * stabsread.c (read_type): Use make_vector_type.
3790 * xml-tdesc.c (tdesc_start_vector): Use init_vector_type.
3792 2007-09-04 Michael Snyder <msnyder@access-company.com>
3794 * expprint.c (print_subexp_standard): Check strchr for null.
3795 * Makefile.in (expprint.o): Depend on gdb_assert.h.
3797 * gnu-v2-abi.c (gnuv2_value_rtti_type): Guard against null.
3799 * stabsread.c (patch_block_status): Guard against null.
3800 * Makefile.in (stabsread.o): Depend on gdb_assert.h.
3802 2007-09-04 Daniel Jacobowitz <dan@codesourcery.com>
3804 * printcmd.c (printf_command): Handle ptr_arg. Correct typo
3805 in internal error message.
3807 2007-09-04 Pedro Alves <pedro_alves@portugalmail.pt>
3808 Daniel Jacobowitz <dan@codesourcery.com>
3810 * infcmd.c (post_create_inferior): Update comment.
3811 (run_command_1): Always call post_create_inferior with 0 as
3814 * i386-cygwin-tdep.h: New.
3815 * i386-cygwin-tdep.c: Include "i386-cygwin-tdep.h".
3816 (win32_xfer_shared_library): Make it extern.
3818 * win32-nat.c: Include gdb_obstack.h and xml-support.h and
3820 (win32_so_ops): Delete.
3821 (get_relocated_section_addrs): Delete.
3822 (solib_symbols_add): Delete.
3823 (register_loaded_dll): Delete.
3824 (win32_make_so): New.
3825 (handle_load_dll): Use win32_make_so.
3826 (win32_free_so): Free the passed in so.
3827 (win32_relocate_section_addresses): Delete.
3828 (win32_solib_create_inferior_hook): Delete.
3829 (handle_unload_dll): Don't add PE offset here. Free so with
3830 win32_free_so instead of free_so.
3831 (win32_special_symbol_handling): Delete.
3832 (get_win32_debug_event): Remove unneeded calls. Set state to
3833 TARGET_WAITKIND_LOADED on a dll unload.
3834 (do_initial_win32_stuff): Clear cygwin_load_start and
3836 (map_code_section_args): Delete.
3837 (dll_code_sections_add): Delete.
3838 (core_section_load_dll_symbols): Delete.
3839 (win32_xfer_shared_libraries): New.
3840 (win32_current_sos): Delete.
3841 (win32_xfer_partial): New.
3842 (open_symbol_file_object): Delete.
3843 (in_dynsym_resolve_code): Delete.
3844 (init_win32_ops): Set win32_xfer_partial as to_xfer_partial member
3845 of win32_ops. Remove win32_so_ops settings. Don't set
3846 current_target_so_ops here.
3848 * Makefile.in (i386_cygwin_tdep_h): New variable.
3849 (i386-cygwin-tdep.o): Update dependencies.
3850 (win32-nat.o): Update dependencies.
3852 2007-09-04 Pedro Alves <pedro_alves@portugalmail.pt>
3853 Daniel Jacobowitz <dan@codesourcery.com>
3855 * gdbarch.sh (core_xfer_shared_libraries): New.
3857 * corelow.c (core_xfer_partial): Handle TARGET_OBJECT_LIBRARIES.
3859 * gdb_obstack.h (obstack_grow_str, obstack_grow_str0): New.
3861 * xml-support.c (gdb_xml_parse): Debug output tweaks.
3862 (xml_escape_text): New.
3863 * xml-support.h (xml_escape_text): Declare.
3865 * config/i386/cygwin.mh (NATDEPFILES): Move corelow.o to ...
3866 * config/i386/cygwin.mt (TDEPFILES): ... here.
3868 * win32-nat.c: (fetch_elf_core_registers): Delete.
3869 (win32_elf_core_fn): Delete.
3870 (_initialize_core_win32): Delete.
3872 * i386-cygwin-tdep.c: Include "regset.h", "gdb_objstack.h",
3873 "xml-support.h" and "gdbcore.h".
3874 (i386_win32_gregset_reg_offset): New.
3875 (I386_WIN32_SIZEOF_GREGSET): New.
3876 (i386_win32_regset_from_core_section): New.
3877 (win32_xfer_shared_library): New.
3878 (struct cpms_data): New.
3879 (core_process_module_section): New.
3880 (win32_core_xfer_shared_libraries): New.
3881 (i386_cygwin_skip_trampoline_code): Register gregset_reg_offset,
3882 gregset_num_regs, sizeof_gregset members of tdep. Register
3883 regset_from_core_section and core_xfer_shared_libraries callbacks.
3885 * Makefile.in (i386-cygwin-tdep.o): Update dependencies.
3886 * gdbarch.h, gdbarch.c: Regenerate.
3888 2007-09-03 Daniel Jacobowitz <dan@codesourcery.com>
3890 * corelow.c (core_xfer_partial): Pass writebuf to
3891 deprecated_xfer_memory in TARGET_OBJECT_MEMORY write case.
3893 2007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
3895 * arm-tdep.h (arm_skip_stub): Declare.
3896 * arm-wince-tdep.c: Don't include "solib-svr4.h". Include
3898 (arm_pe_skip_trampoline_code): New function.
3899 (arm_wince_init_abi): Register arm_pe_skip_trampoline_code as
3900 gdbarch_skip_trampoline_code callback.
3901 * Makefile.in (arm-wince-tdep.o): Update dependencies.
3903 2007-09-03 Daniel Jacobowitz <dan@codesourcery.com>
3905 * MAINTAINERS: Move Fred Fish to Past Maintainers.
3907 2007-09-03 Daniel Jacobowitz <dan@codesourcery.com>
3909 * configure.ac: Add --with-expat.
3910 * configure: Regenerated.
3912 2007-09-03 Andreas Schwab <schwab@suse.de>
3914 * configure.ac: Accept --with-system-readline.
3915 (READLINE, READLINE_DEPS, READLINE_CFLAGS): Define and substitute.
3916 * configure: Regenerate.
3917 * Makefile.in (READLINE, READLINE_DEPS, READLINE_CFLAGS): Use
3919 (CDEPS): Use $(READLINE_DEPS) instead of $(READLINE).
3921 2007-09-03 Maxim Grigoriev <maxim2405@gmail.com>
3922 Daniel Jacobowitz <dan@codesourcery.com>
3924 * mi-main.c (mi_load_progress): Handle MI2 and MI3 interpreters.
3926 2007-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3928 * top.c (print_gdb_version): Fixed a string end-of-line compiler error.
3930 2007-09-02 Daniel Jacobowitz <dan@codesourcery.com>
3932 * top.c (print_gdb_version): Update for GPL version 3.
3934 2007-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3936 * NEWS: Mention the build-id .debug files verification.
3938 2007-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3940 * linux-nat.c (linux_nat_make_corefile_notes): Fixed a buffer overflow.
3942 2007-09-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3944 * Makefile.in (symfile.o): Update dependencies.
3945 * symfile.c (symbol_file_add_with_addrs_or_offsets): Initialize the
3946 DEBUGFILE variable. FIND_SEPARATE_DEBUG_FILE called only if !PSYMTABS.
3947 (struct build_id): New structure.
3948 (build_id_bfd_get, build_id_verify, build_id_to_debug_filename): New.
3949 (find_separate_debug_file): New variable BUILD_ID.
3950 Call BUILD_ID_BFD_GET with BUILD_ID_TO_DEBUG_FILENAME as the first try.
3952 2007-08-31 Vladimir Prus <vladimir@codesourcery.com>
3954 * varobj.c (struct varobj): Fix comment
3955 for the type member not to lie when it can be
3958 2007-08-31 Vladimir Prus <vladimir@codesourcery.com>
3960 Implement -var-info-path-expression.
3962 * mi/mi-cmds.h (mi_cmd_var_info_path_expression):
3964 * mi/mi-cmds.c (mi_cmds): Register var-info-path-expression.
3965 * mi/mi-cmd-var.c (mi_cmd_var_info_path_expression): New.
3966 * varobj.c (struct varobj): New field 'path_expr'.
3967 (c_path_expr_of_child, cplus_path_expr_of_child)
3968 (java_path_expr_of_child): New.
3969 (struct language_specific): New field path_expr_of_child.
3970 (varobj_create): Initialize the path_expr field.
3971 (varobj_get_path_expr): New.
3972 (new_variable): Initialize the path_expr field.
3973 (free_variable): Free the path_expr field.
3974 (adjust_value_for_children_access): New parameter
3976 (c_number_of_children): Adjust.
3977 (c_describe_child): New parameter CFULL_EXPRESSION.
3978 Compute full expression.
3979 (c_value_of_child, c_type_of_child): Adjust.
3980 (cplus_number_of_children): Adjust.
3981 (cplus_describe_child): New parameter CFULL_EXPRESSION.
3982 Compute full expression.
3983 (cplus_name_of_child, cplus_value_of_child)
3984 (cplus_type_of_child): Adjust.
3985 * varobj.h (varobj_get_path_expr): Declare.
3987 2007-08-31 Vladimir Prus <vladimir@codesourcery.com>
3989 * mi/mi-cmd-var.c (print_varobj): If a varobj
3990 type is NULL, don't try to print it.
3992 2007-08-30 Alan Modra <amodra@bigpond.net.au>
3994 * ppc-linux-nat.c (right_fill_reg): Delete.
3995 (supply_gregset): Use ppc_supply_gregset.
3996 (supply_fpregset): Use ppc_supply_fpregset.
3997 (fill_gregset): Use ppc_collect_gregset.
3998 (fill_fpregset): Use ppc_collect_fpregset.
3999 * ppc-linux-tdep.c (PPC_LINUX_PT_*): Don't define.
4000 (right_supply_register, ppc_linux_supply_gregset): Delete.
4001 (ppc32_linux_supply_gregset, ppc64_linux_supply_gregset): Delete.
4002 (ppc_linux_supply_fpregset): Delete.
4003 (ppc_linux_collect_gregset): New function.
4004 (ppc32_linux_reg_offsets, ppc64_linux_reg_offsets): New.
4005 (ppc32_linux_gregset, ppc64_linux_gregset): Update to use reg offsets,
4006 ppc_linux_supply_gregset, and ppc_collect_gregset.
4007 (ppc_linux_fpregset): Rename to ppc32_linux_fpregset and update.
4008 (ppc_linux_gregset, ppc_linux_fpregset): New functions.
4009 (ppc_linux_regset_from_core_section): Update.
4010 * ppc-tdep.h (ppc_linux_gregset, ppc_linux_fpregset): Declare.
4011 (ppc_linux_supply_gregset, ppc_linux_supply_fpregset): Delete.
4012 (struct ppc_reg_offsets): Add gpr_size, xr_size, fpscr_size fields.
4013 * ppcobsd-tdep.c (ppcobsd_supply_gregset): Delete FIXME and assert.
4014 (ppcobsd_collect_gregset): Likewise.
4015 (_initialize_ppcnbsd_tdep): Init gpr_size, xr_size, fpscr_size.
4016 * ppcnbsd-tdep.c (_initialize_ppcobsd_tdep): Likewise.
4017 * ppcobsd-nat.c (_initialize_ppcobsd_nat): Likewise.
4018 * rs6000-aix-tdep.c (rs6000_aix32_reg_offsets): Likewise.
4019 (rs6000_aix64_reg_offsets): Likewise.
4020 (rs6000_aix_supply_regset): Call ppc_supply_fpregset without testing
4021 ppc_floating_point_unit_p.
4022 (rs6000_aix_collect_regset): Similarly.
4023 * rs6000-tdep.c (ppc_supply_reg): Add regsize param. Adjust offset
4024 when regsize is larger than regcache register size.
4025 (ppc_collect_reg): Similarly zero pad when regsize is larger than
4026 regcache register size.
4027 (ppc_greg_offset): New function, split out from..
4028 (ppc_supply_gregset): ..here. Separate code handling all regs from
4029 single reg case. Correct xer offset.
4030 (ppc_fpreg_offset): New function, split out from..
4031 (ppc_supply_fpregset): ..here. Separate code handling all regs from
4033 (ppc_collect_gregset, ppc_collect_fpregset): Likewise.
4034 (ppc_supply_fpregset, ppc_collect_fpregset): Don't assert we have
4035 a fp unit, instead return if no fp.
4037 2007-08-29 Jim Blandy <jimb@codesourcery.com>
4039 * breakpoint.c (watch_command_1): Remove '#ifdef HPUXHPPA' block;
4040 this code has not been compiled for two years.
4042 2007-08-29 Michael Snyder <msnyder@access-company.com>
4044 * event-top.c (gdb_readline2): Return after EOF.
4046 2007-08-29 Joel Brobecker <brobecker@adacore.com>
4048 * symtab.c: Remove a function that has been commented out 3 years ago.
4050 2007-08-29 Randolph Chung <tausq@debian.org>
4052 * hppa-tdep.c (hppa32_cannot_fetch_register)
4053 (hppa64_cannot_fetch_register): New functions.
4054 (hppa_gdbarch_init): Set cannot_fetch_register appropriately.
4055 * hppa-tdep.h (hppa_regnum): Add HPPA_CR26_REGNUM.
4057 2007-08-28 Michael Snyder <msnyder@access-company.com>
4059 * mi/mi-cmd-var.c (mi_print_value_p): No longer necessary to
4060 check for null before calling check_typedef.
4062 * NEWS: Mention Coverity bug fixes.
4064 2007-08-27 Markus Deuling <deuling@de.ibm.com>
4066 * spu-tdep.c (spu_pointer_to_address): New function.
4067 (spu_integer_to_address): Likewise.
4068 (spu_gdbarch_init): Add spu_pointer_to_address and
4069 spu_integer_to_address to gdbarch.
4071 2007-08-26 Pedro Alves <pedro_alves@portugalmail.pt>
4073 * arm-wince-tdep.c (ARM_WINCE_JB_PC): Change to 10.
4075 2007-08-23 Joel Brobecker <brobecker@adacore.com>
4077 * Makefile.in (copying.c): Use the top-level COPYING3 as the file
4078 that contains the GDB license.
4079 * copying.awk: Adjust to the GPLv3 wording.
4080 * copying.c: Regenerate.
4082 2007-08-23 Joel Brobecker <brobecker@adacore.com>
4084 * copying.awk: Protoization, and i18n markup.
4086 2007-08-23 Joel Brobecker <brobecker@adacore.com>
4088 * config/djgpp/djconfig.sh: Switch license to GPLv3.
4089 * copyright.sh: Likewise.
4090 * gdb-events.sh: Likewise.
4091 * gdb_gcore.sh: Likewise.
4092 * gdb_mbuild.sh: Likewise.
4093 * gdbarch.sh: Likewise.
4094 * observer.sh: Likewise.
4095 * features/feature_to_c.sh: Likewise.
4096 * regformats/regdat.sh: Likewise.
4098 2007-08-23 Joel Brobecker <brobecker@adacore.com>
4100 Switch the license of all .c files to GPLv3.
4101 Switch the license of all .h files to GPLv3.
4102 Switch the license of all .cc files to GPLv3.
4104 2007-08-23 Joel Brobecker <brobecker@adacore.com>
4106 * configure.ac: Switch license to GPLv3.
4108 2007-08-22 Daniel Jacobowitz <dan@codesourcery.com>
4110 * mips-tdep.c (mips_gdbarch_init): Use Tag_GNU_MIPS_ABI_FP to
4111 determine the file's FPU type.
4113 2007-08-22 Daniel Jacobowitz <dan@codesourcery.com>
4115 * mips-tdep.c (mips_n32n64_fp_arg_chunk_p): New.
4116 (mips_n32n64_push_dummy_call): Always increment float_argreg along
4117 with argreg. Use mips_n32n64_fp_arg_chunk_p.
4119 2007-08-22 Daniel Jacobowitz <dan@codesourcery.com>
4121 * solib-svr4.c (scan_dyntag): Only read target memory when necessary.
4123 (elf_locate_base): Look for DT_MIPS_RLD_MAP first. Expand comments.
4124 (elf_lookup_lib_symbol): Fix formatting.
4126 2007-08-21 Michael Snyder <msnyder@access-company.com>
4128 * dbxread.c (read_dbx_symtab): Guard null deref.
4131 * valops.c (find_overload_match): Guard against NULL.
4133 2007-08-21 Daniel Jacobowitz <dan@codesourcery.com>
4135 * MAINTAINERS (Patch Champions): Remove self.
4137 2007-08-21 Chris Smith <chris.smith@st.com>
4139 * cli/cli-script.c (read_command_lines): Call dont_repeat for each
4142 2007-08-18 Michael Snyder <msnyder@access-company.com>
4144 * stabsread.c (dbx_lookup_type): Memory leak.
4146 * event-loop.c (delete_async_signal_handler): Move pointer null
4147 test to before pointer dereference.
4149 * ui-out.c (append_header_to_list): Possible cut and paste error.
4151 * MAINTAINERS: white space tweak.
4153 2007-08-17 Michael Snyder <msnyder@access-company.com>
4155 * stack.c (print_frame): Memory leak.
4157 * completer.c (filename_completer): Avoid memory leak.
4158 Remove unnecessary nested block.
4160 * c-exp.y (parse_number): Memory leak.
4162 * completer.c (location_completer): Must free 'fn_list', except
4163 in the one case where it is returned (as 'list').
4165 * varobj.c (value_of_root): Memory leak.
4167 * gdbtypes.h (virtual_base_list): Remove export decl.
4168 * gdbtypes.c (virtual_base_list): Make static. Not called outside.
4169 (virtual_base_index): Memory leak.
4170 (virtual_base_index_skip_primaries): Ditto.
4172 2007-08-17 Maxim Grigoriev <maxim2405@gmail.com>
4174 * xtensa-tdep.c (ARG_NOF, ARG_1ST, PS_WOE, PS_EXC, C0_MAXOPDS)
4175 (C0_NREGS, C0_CLESV, C0_SP, C0_FP, C0_RA, C0_ARGS, C0_NARGS)
4176 (C0_CONST, C0_INEXP, C0_NOSTK): New macros.
4177 (xtensa_read_register): New function.
4178 (xtensa_windowed_frame_cache, xtensa_call0_frame_cache, xtensa_c0reg)
4179 (xtensa_insn_kind): New types.
4180 (xtensa_frame_cache, xtensa_alloc_frame_cache, xtensa_frame_cache)
4181 (xtensa_frame_prev_register, xtensa_return_value, xtensa_skip_prologue)
4182 (xtensa_verify_config, xtensa_pseudo_register_read)
4183 (xtensa_pseudo_register_write, xtensa_extract_return_value)
4184 (xtensa_store_return_value)
4185 (xtensa_push_dummy_call): Extended to support Xtensa Call0 ABI.
4186 (windowing_enabled, extract_call_winsize, xtensa_unwind_dummy_id)
4187 (xtensa_frame_this_id, xtensa_frame_prev_register)
4188 (xtensa_register_type, xtensa_reg_to_regnum): Cosmetic changes.
4189 (call0_frame_cache, call0_frame_get_reg_at_entry)
4190 (call0_classify_opcode, call0_track_op)
4191 (call0_analyze_prologue, call0_frame_cache): New functions.
4193 2007-08-17 Vladimir Prus <vladimir@codesourcery.com>
4195 * breakpoint.c (bpstat_free): New.
4196 (bpstat_clear): Use bpstat_free.
4197 (delete_breakpoint): Document why we cannot
4198 remove bpstats from stop_bpstat.
4199 * breakpoint.h (bpstat_free): Declare.
4201 2007-08-16 Michael Snyder <msnyder@access-company.com>
4203 * event-loop.c (gdb_wait_for_event): Move statement into "if" block.
4205 2007-08-15 Paul Hilfinger <hilfinger@adacore.com>
4206 Joel Brobecker <brobecker@adacore.com>
4208 * ada-lang.c (resolve_subexp): Correct arity of binary operators.
4210 2007-08-15 Paul Hilfinger <hilfinger@adacore.com>
4211 Joel Brobecker <brobecker@adacore.com>
4213 * ada-lang.c (possible_user_operator_p): Alternative fix to last
4214 checkin guarding against NULL.
4216 2007-08-14 Michael Snyder <msnyder@access-company.com>
4218 * tui-command.c, tui-data.c, tui-disasm.c, tui-file.c, tui-io.c,
4219 tui-layout.c, tui-regs.c, tui-source.c, tui-win.c, tui-windata.c,
4220 tui-wingeneral.c, tui-winsource.c: Coding standard, && and ||
4221 go at beginning of new line.
4223 * tui-data.c, tui-data.h, tui-disasm.c, tui-disasm.h, tui-hooks.c,
4224 tui-io.c, tui-layout.c, tui-layout.h, tui-out.c, tui-regs.c,
4225 tui-source.c, tui-source.h, tui-stack.c, tui-win.c, tui-win.h,
4226 tui-windata.c, tui-windata.h, tui-wingeneral.c, tui-winsource.c,
4227 tui-winsource.h, tui.c, tui.h: Function declarations and
4228 definitions, wrap long lines.
4230 * tui-command.c, tui-data.c, tui-disasm.c, tui-layout.c,
4231 tui-regs.c, tui-win.c, tui-windata.c, tui-winsource.c, tui.c:
4232 Reformat block comments to GNU standard.
4234 * tui-command.c, tui-data.c, tui-data.h, tui-disasm.c, tui-file.c,
4235 tui-hooks.c, tui-interp.c, tui-io.c, tui-layout.c, tui-out.c,
4236 tui-regs.c, tui-regs.h, tui-source.c, tui-stack.c, tui-win.c,
4237 tui-windata.c, tui-wingeneral.c, tui-winsource.c, tui-winsource.h,
4238 tui.c, tui.h: Comment reformatting to coding standard (capitals,
4239 spaces after periods, etc).
4241 * tui-data.c, tui-data.h, tui-disasm.c, tui-hooks.c, tui-layout.c,
4242 tui-regs.c, tui-source.c, tui-stack.c, tui-win.c, tui-windata.c,
4243 tui-wingeneral.c, tui-wingeneral.h, tui-winsource.c, tui.c,
4244 tui-winsource.h: Whitespace changes, fix pointer declarations
4247 2007-08-14 Joel Brobecker <brobecker@adacore.com>
4248 Michael Snyder <msnyder@access-company.com>
4250 * ada-lang.c (field_alignment): Guard against NULL.
4252 2007-08-14 Joel Brobecker <brobecker@adacore.com>
4254 * MAINTAINERS (Global Maintainers): Add self.
4256 2007-08-14 Michael Snyder <msnyder@access-company.com>
4258 * mi/mi-interp.c (mi_cmd_interpreter_exec): Dead code, dead variable.
4260 * ada-lang.c (possible_user_operator_p): Guard against NULL.
4262 * varobj.c (cplus_describe_child): Guard against null.
4263 Use "NULL" instead of "0" to initialize pointers.
4265 2007-08-14 Daniel Jacobowitz <dan@codesourcery.com>
4267 * arm-tdep.c (arm_gdbarch_init): Allow unknown ABI and FPU settings
4268 to match any gdbarch with matching OSABI. Set default ABI and FPU
4269 after running the OSABI handler.
4271 2007-08-14 Daniel Jacobowitz <dan@codesourcery.com>
4273 * config/i386/linux.mh (NATDEPFILES): Move corelow.o from here...
4274 * config/i386/linux.mt (TDEPFILES): ...to here.
4276 2007-08-14 Vladimir Prus <vladimir@codesourcery.com>
4278 * breakpoint.c (disable_breakpoints_in_shlibs): Remove
4279 the 'silent' parameter and code to implement that.
4280 * breakpoint.h (disable_breakpoints_in_shlibs): Adjust
4282 * win32-nat.c: Adjust.
4285 2007-08-14 Vladimir Prus <vladimir@codesourcery.com>
4287 * breakpoint.c (update_breakpoints_after_exec): Don't
4288 set address to zero.
4290 2007-08-13 Michael Snyder <msnyder@access-company.com>
4292 * valops.c: Whitespace clean-up.
4294 * tui/tui-winsource.c (tui_alloc_source_buffer): Clean up allocation.
4296 * event-top.c (command_line_handler): Memory leak.
4298 * mi/mi-cmd-var.c (mi_cmd_var_set_format): Memory leak.
4299 No need to make copy.
4301 * source.c (find_source_lines): Require symtab 's'.
4303 2007-08-11 Michael Snyder <msnyder@access-company.com>
4305 * completer.c: Spelling fix in comments.
4307 2007-08-10 Michael Snyder <msnyder@access-company.com>
4309 * gdbtypes.c: Coding standard cleanup.
4310 * gdbtypes.c: Comment/whitespace cleanup.
4312 * stabsread.c (read_huge_number): Attempt to compute value before
4313 values that it depends on.
4315 * linespec.c (decode_dollar): Dead code, ptr can't be non-null.
4316 (decode_objc): Use "NULL" instead of 0.
4317 (find_method): Ditto.
4318 (decode_all_digits): Ditto.
4319 (decode_dollar): Ditto.
4321 * mi/mi-main.c (mi_cmd_data_evaluate_expression): Resource leak.
4323 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Memory leak.
4325 * solib-svr4.c (enable_break): Don't free tmp_pathname until
4328 * completer.c: Comment/whitespace cleanup.
4330 2007-08-10 Joel Brobecker <brobecker@adacore.com>
4332 * Makefile.in (i386nbsd-nat.o): Add missing dependency.
4334 2007-08-10 Maxim Grigoriev <maxim2405@gmail.com>
4336 * remote-fileio.c (remote_fileio_resize_fd_map): Initialize newly
4337 allocated file descriptors.
4339 2007-08-10 Joel Brobecker <brobecker@adacore.com>
4341 * Makefile.in: Minor cleanup throughout; add some missing variables,
4342 add some missing rules, remove some rules that are no longer needed,
4343 and fix the dependencies in several rules.
4345 2007-08-10 Ludovic Courtès <ludo@gnu.org>
4347 * Makefile.in (SFILES): Add scm-{exp,lang,valprint}.c.
4348 (scm_lang_h, scm_tags_h): New.
4349 (COMMON_OBS): Add scm-{exp,lang,valprint}.o.
4350 (scm-exp.o, scm-lang.o, scm-valprint.o): New targets.
4351 * defs.h (enum language): Add `language_scm'.
4353 * MAINTAINERS: Add Emacs local variables to use UTF-8 upon
4356 2007-08-09 Ludovic Courtès <ludo@gnu.org>
4358 * MAINTAINERS (Write After Approval): Add myself.
4360 2007-08-09 Michael Snyder <msnyder@access-company.com>
4362 * solib.c (solib_open): Memory leak -- openp returns xmalloc buffer.
4364 2007-08-09 Joel Brobecker <brobecker@adacore.com>
4366 * solib-som.c (som_relocate_section_addresses): Stop saving
4367 the $CODE$ section in the so_list structure.
4369 2007-08-08 Maxim Grigoriev <maxim2405@gmail.com>
4371 * xtensa-tdep.h (XTENSA_MAX_COPROCESSOR): New.
4372 (xtensa_register_group_t): Add entries for coprocessors.
4373 * xtensa-tdep.c (xtensa_init_reggroups): New register groups.
4374 (xtensa_add_reggroups): Likewise.
4375 (xtensa_register_reggroup_p): Likewise.
4376 (xtensa_coprocessor_register_group): New function.
4379 2007-08-08 Jan Kratochvil <jan.kratochvil@redhat.com>
4381 * serial.c (serial_open): Fix the OPEN parameter macro expansion.
4383 2007-08-08 Michael Snyder <msnyder@access-company.com>
4385 * target.c (target_read_string): Guard against null.
4387 * varobj.c (value_of_root): Move alloc after return to avoid leak.
4389 * tui/tui-layout.c (tui_set_layout): Dead code, dead variable.
4390 (tui_set_layout_for_display_command): Mem leak.
4392 * top.c (command_line_input): Memory leak.
4394 * solib-svr4.c (open_symbol_file_object): Memory leak.
4395 (svr4_current_sos): Ditto.
4396 (enable_break): Ditto.
4398 * cp-valprint.c (cp_print_hpacc_virtual_table_entries): Memory leak.
4400 * dwarf2read.c (add_partial_symbol): Memory leak.
4402 2007-08-06 Michael Snyder <msnyder@access-company.com>
4404 * ada-lang.c (desc_bounds): Comparison of function address to NULL.
4406 2007-08-05 Jim Blandy <jimb@codesourcery.com>
4408 * macroexp.c (init_buffer): Remove testing code that overrides the
4409 caller's length guess.
4410 (gather_arguments): Use a larger initial size, now that the vector
4411 growth code has been exercised.
4413 2007-08-05 Pedro Alves <pedro_alves@portugalmail.pt>
4415 * solib-target.c (solib_target_relocate_section_addresses): Add
4416 orig_delta to addr_high.
4418 2007-08-04 Michael Snyder <msnyder@access-company.com>
4420 * remote-fileio.c (remote_fileio_func_write): Memory leak.
4422 * breakpoint.c (print_one_breakpoint): Off by one error.
4424 * tracepoint.c (add_register): Off by one error.
4425 (stringify_collection_list): Free malloc buffer.
4427 2007-08-03 Michael Snyder <msnyder@access-company.com>
4429 * mi-cmd-var.c (mi_cmd_var_delete): Remove unused variable,
4430 stop memory leak, straighten out cleanups.
4432 * jv-lang.c (java_link_class_type): Guard against NULL.
4434 2007-08-02 Michael Snyder <msnyder@access-company.com>
4436 * gdbtypes.c (create_set_type): Test should only be done within
4437 the preceeding if block. Otherwise, variable is uninitialized.
4439 * gdbtypes.c (check_typedef): Guard NULL.
4441 2007-08-01 Michael Snyder <msnyder@access-company.com>
4443 * cli/cli-decode.c (lookup_cmd): Check for null earlier, to
4444 avoid dereference in lookup_cmd_1.
4446 * tui/tui-data.c (tui_alloc_content): Move assign out of if,
4447 clean up long lines.
4448 (tui_alloc_generic_win_info): Tidy by using XMALLOC macro.
4449 (tui_alloc_win_info): Ditto.
4450 (tui_add_content_elements): Ditto.
4451 * tui/tui-file.c (tui_file_magic): Ditto.
4453 2007-07-31 Michael Snyder <msnyder@access-company.com>
4455 * breakpoint.c (breakpoint_init_inferior): Add 'else' to 'if'.
4456 True and false paths are mutually exclusive.
4458 * event-top.c (command_line_handler): Add pedantic return.
4460 * f-valprint.c (info_common_command): Bail out to prevent null
4461 pointer deref. Break up a long line.
4463 * exec.c (xfer_memory): Remove redundant condition from 'if'.
4465 * symfile.c (reread_separate_symbols): Free xmalloced memory.
4467 * printcmd.c (build_address_symbolic): Remove dead code and dead
4470 2007-07-31 Daniel Jacobowitz <dan@codesourcery.com>
4472 * linespec.c (minsym_found): Advance to the next line if possible.
4474 2007-07-31 Pedro Alves <pedro_alves@portugalmail.pt>
4476 * arm-wince-tdep.c (arm_wince_init_abi): Remove svr4 related call.
4477 * config/arm/wince.mt (TDEPFILES): Remove solib-legacy.o and
4478 solib-svr4.o, and add solib-target.o
4480 2007-07-27 Michael Snyder <msnyder@access-company.com>
4482 * tui/tui-data.c (tui_alloc_generic_win_info): Wrong arg for sizeof.
4484 2007-07-26 Maciej W. Rozycki <macro@linux-mips.org>
4486 * MAINTAINERS (Write After Approval): Add myself.
4488 2007-07-26 Maciej W. Rozycki <macro@mips.com>
4490 * Makefile.in (MAKEHTMLFLAGS): Also search the current directory
4493 2007-07-25 Maciej W. Rozycki <macro@mips.com>
4495 * Makefile.in (MAKEHTMLFLAGS): Remove "-glossary".
4497 2007-07-24 Michael Snyder <msnyder@access-company.com>
4499 * solib-svr4.c (svr4_fetch_objfile_link_map): Null pointer check of
4500 'buffer' must cover both branches that call strcmp (Coverity).
4502 * stack.c (print_frame_args): Check return value of lookup_symbol.
4504 * ax-gdb.c (find_field): Guard against null ptr.
4506 2007-07-24 Ulrich Weigand <uweigand@de.ibm.com>
4508 * regformats/reg-spu.dat: Fix order of npc, id registers.
4510 2007-07-24 Ulrich Weigand <uweigand@de.ibm.com>
4512 * target.c (memory_xfer_partial): Accesses to unmapped overlay
4513 sections should always go to the executable file.
4515 2004-07-20 Chris Dearman <chris@mips.com>
4517 * mips-tdep.c (heuristic_proc_start): Add more MIPS16 function
4518 prologue instructions.
4520 2007-07-20 Maciej W. Rozycki <macro@mips.com>
4522 * mips-tdep.c (mips_next_pc): Use is_mips16_addr() instead of
4525 2007-07-20 Chris Dearman <chris@mips.com>
4526 Maciej W. Rozycki <macro@mips.com>
4528 * mips-tdep.c (fetch_mips_16): Fix typos and reformat the
4531 2007-07-17 Pedro Alves <pedro_alves@portugalmail.pt>
4532 Daniel Jacobowitz <dan@codesourcery.com>
4534 * config/i386/cygwin.mt (TDEPFILES): Add solib-target.o.
4535 * coff-pe-read.c (read_pe_exported_syms): Delete verbose
4537 * NEWS: Mention gdbserver DLL support.
4539 2007-07-17 Daniel Jacobowitz <dan@codesourcery.com>
4541 * dwarf2read.c (dwarf_decode_lines): Detect address size mismatches.
4543 2007-07-16 H.J. Lu <hongjiu.lu@intel.com>
4545 * i386-linux-nat.c (fetch_regs): Work around gcc 3.4 alias
4548 2007-07-13 Kevin Buettner <kevinb@redhat.com>
4550 * mep-tdep.c (mep_analyze_prologue): Update comment for BRA
4553 2007-07-12 Kevin Buettner <kevinb@redhat.com>
4555 * mep-tdep.c (IS_BRA, BRA_DISP): New macros.
4556 (mep_analyze_prologue): Add case for BRA instruction.
4558 2007-07-12 Ulrich Weigand <uweigand@de.ibm.com>
4560 * solib-svr4.c (LM_ADDR_CHECK): Relax prelink recognition heuristic.
4562 2007-07-10 Nick Roberts <nickrob@snap.net.nz>
4564 * breakpoint.c: Include "top.h".
4565 (breakpoint_1): Don't set convenience variable $_ if server prefix
4567 (_initialize_breakpoint): Describe this behaviour in command help.
4569 2007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
4571 * solib-target.c (library_list_start_segment): Cast address to
4574 2007-07-06 Mark Kettenis <kettenis@gnu.org>
4576 * bsd-uthread.c (bsd_uthread_wait): Don't try to fetch thread IDs
4577 for terminated processes.
4579 2007-07-05 Michael Snyder <msnyder@access-company.com>
4581 * event-top.c (cli_command_loop): Prompt string can (and should)
4582 be freed after call to readline (Coverity). Also move local var
4583 declarations into block where they are used.
4585 * tui/tui-interp.c (tui_command_loop): Prompt string can (and
4586 should) be freed after call to readline (Coverity). Also move
4587 local var declarations into block where they are used.
4589 2007-07-03 Andreas Schwab <schwab@suse.de>
4591 * linux-nat.c (linux_nat_info_proc_cmd): Fix parsing of columns in
4594 2007-07-03 Paul Gilliam <pgilliam@us.ibm.com>
4595 Thiago Bauermann <bauerman@br.ibm.com>
4596 Joseph S. Myers <joseph@codesourcery.com>
4597 Daniel Jacobowitz <dan@codesourcery.com>
4599 * remote.c (remote_check_symbols): Use
4600 gdbarch_convert_from_func_ptr_addr.
4601 * infcall.c (find_function_addr): Handle function descriptors
4602 without debugging information.
4603 * ppc-linux-tdep.c (ppc_linux_convert_from_func_ptr_addr): Renamed
4604 from ppc64_linux_convert_from_func_ptr_addr. Handle -msecure-plt.
4605 (ppc_linux_init_abi): Always set convert_from_func_ptr_addr.
4606 * solib-svr4.c (solib_break_names): Remove "._dl_debug_state".
4607 (bfd_lookup_symbol): Do not take a SECT_FLAGS argument. Always
4608 allow SEC_CODE and SEC_DATA.
4609 (enable_break): Update calls. Pass current_target to solib_add.
4610 Use gdbarch_convert_from_func_ptr_addr.
4612 2007-07-03 Ilko Iliev <iliev@ronetix.at>
4613 Daniel Jacobowitz <dan@codesourcery.com>
4615 * symfile.c (print_transfer_performance): Avoid integer overflow.
4618 2007-07-03 Markus Deuling <deuling@de.ibm.com>
4620 * cp-namespace.c (lookup_symbol_file): Add block to
4621 lookup_symbol_global call.
4622 * Makefile.in (solist_h): Add dependency on symtab header.
4623 (symtab.o): Add dependency on solist header.
4624 * solib.c (solib_global_lookup): New function.
4625 * solib-svr4.c (scan_dyntag): Likewise.
4626 (elf_locate_base): Call helper routine scan_dyntag.
4627 (elf_lookup_lib_symbol): New function.
4628 (_initialize_svr4_solib): Add elf_lookup_lib_symbol to svr4_so_ops.
4629 * solist.h (symtab.h): New include.
4630 (struct target_so_ops): New member lookup_lib_global_symbol.
4631 (solib_global_lookup): New prototype.
4632 * symtab.c: New include solist.h.
4633 (lookup_objfile_from_block): New function.
4634 (lookup_global_symbol_from_objfile): New function.
4635 (basic_lookup_symbol_nonlocal): Add block to lookup_symbol_global call.
4636 (lookup_symbol_global): Call library-specific lookup procedure.
4637 * symtab.h (lookup_global_symbol_from_objfile): New prototype.
4639 * NEWS: Document framework.
4641 2007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
4643 * target-descriptions.c (tdesc_create_reg): Do not set reg->type
4646 * cli/cli-script.c (build_command_line): Update NULL check.
4648 2007-07-02 Michael Snyder <msnyder@access-company.com>
4650 * p-exp.y (yylex): Memory leak, 'uptokstart' must be freed (Coverity).
4652 2007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
4654 * Makefile.in (XMLFILES): Add library-list.dtd.
4655 (ALLDEPFILES): Add solib-target.o.
4656 (solib-target.o): New rule.
4657 * remote.c (PACKET_qXfer_libraries): New constant.
4658 (remote_protocol_features): Add qXfer:libraries:read.
4659 (remote_wait): Recognize library stop replies.
4660 (remote_async_wait): Likewise. Fix typo.
4661 (remote_xfer_partial): Handle TARGET_OBJECT_LIBRARIES.
4662 (init_remote_async_ops): Fix typo.
4663 (_initialize_remote): Register "set remote library-info-packet".
4664 * solib-som.c (som_current_sos): Set addr_low and addr_high.
4665 * solib-target.c: New file.
4666 * solib.c (solib_map_sections): Use addr_low and addr_high instead
4668 (info_sharedlibrary_command): Likewise.
4669 (solib_add_library, solib_remove_library): New.
4670 * solist.h (struct so_list): Replace textsection with addr_low and
4672 * target.h (enum target_object): Add TARGET_OBJECT_LIBRARIES.
4673 * NEWS: Describe new qXfer:libraries:read and shared library
4675 * features/library-list.dtd: New.
4677 2007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
4679 * infrun.c (inferior_ignoring_startup_exec_events): Delete.
4680 (start_remote): Use STOP_QUIETLY_REMOTE.
4681 (handle_inferior_event): Do not condition TARGET_WAITKIND_LOADED
4682 support on a SOLIB_ADD definition. Update breakpoints_inserted.
4683 Update to match shared library event breakpoint support. Only
4684 resume if appropriate. Handle STOP_QUIETLY_REMOTE.
4685 (normal_stop): Handle TARGET_WAITKIND_LOADED.
4686 * fork-child.c (startup_inferior): Do not set
4687 inferior_ignoring_startup_exec_events
4688 * inferior.h (inferior_ignoring_startup_exec_events): Delete
4690 (enum stop_kind): Improve documentation. Add STOP_QUIETLY_REMOTE.
4692 2007-07-02 Markus Deuling <deuling@de.ibm.com>
4694 * breakpoint.c (insert_bp_location): Remove dead code
4695 (DISABLE_UNSETTABLE_BREAK).
4696 (disable_breakpoints_in_shlibs)
4697 (disable_breakpoints_in_unloaded_shlib): Likewise (comment).
4699 2007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
4701 * breakpoint.c (reattach_breakpoints): Do not use remove_breakpoint.
4702 Call insert_bp_location.
4704 2007-07-01 H.J. Lu <hongjiu.lu@intel.com>
4706 * core-regset.c (fetch_core_registers): Work around gcc 3.4
4709 2007-07-01 Daniel Jacobowitz <dan@codesourcery.com>
4711 * minsyms.c (lookup_minimal_symbol_by_pc_section): Search fewer
4714 2007-07-01 Daniel Jacobowitz <dan@codesourcery.com>
4716 * top.c (gdb_readline_wrapper_line): Call rl_callback_handler_remove.
4717 (struct gdb_readline_wrapper_cleanup): Remove prompt_orig.
4718 (gdb_readline_wrapper_cleanup): Do not reset the prompt.
4719 (gdb_readline_wrapper): Do not save the prompt. Pass our prompt
4720 to display_gdb_prompt.
4722 2007-07-01 Daniel Jacobowitz <dan@codesourcery.com>
4725 * target.c (memory_xfer_partial): Do not continue past targets with
4728 2007-06-30 Andreas Schwab <schwab@suse.de>
4730 * m68k-tdep.c (m68k_ps_type): New.
4731 (m68k_init_types): New.
4732 (m68k_register_type): Use m68k_ps_type for PS register.
4733 (_initialize_m68k_tdep): Call m68k_init_types.
4735 * m68k-tdep.c (m68k_gdbarch_init): Don't infer coldfire flavour
4736 from the generic m68k arch.
4738 2007-06-28 Michael Snyder <msnyder@access-company.com>
4740 * m2-typeprint.c (m2_print_type): Move pointer ref after null test
4743 * linux-thread-db.c (thread_db_get_thread_local_address): Add
4744 gdb_assert before using return value of find_thread_pid (Coverity).
4746 * source.c (unset_substitute_path_command): Plug leak (Coverity).
4748 * cli/cli-script.c (build_command_line): Add null pointer guard
4751 2007-06-27 Daniel Jacobowitz <dan@codesourcery.com>
4753 * linux-thread-db.c (thread_db_attach): Delete.
4754 (thread_db_detach): Typo fix. Call target_mourn_inferior
4755 instead of fixing up proc_handle.
4756 (have_threads_callback, have_threads): New functions.
4757 (thread_db_wait): Remove dead proc_handle.pid check. Only
4758 translate PTIDs if we have registered threads. Check for new
4759 threads if we have none.
4760 (thread_db_create_inferior, thread_db_post_startup_inferior): Delete.
4761 (find_new_threads_callback): Only enable event reporting if TID == 0.
4762 (same_ptid_callback): New.
4763 (thread_db_get_thread_local_address): Check for new threads.
4764 (init_thread_db_ops): Don't set to_attach, to_create_inferior,
4765 or to_post_startup_inferior.
4767 2007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
4769 * infrun.c (adjust_pc_after_break): Do not assume software single-step
4770 is always active if SOFTWARE_SINGLE_STEP_P is true.
4771 (resume): Use gdbarch_software_single_step[_p] instead of
4772 SOFTWARE_SINGLE_STEP[_P].
4773 (handle_inferior_event): Do not check for SOFTWARE_SINGLE_STEP_P.
4775 * gdbarch.sh (software_single_step): Remove target macro.
4776 * gdbarch.h, gdbarch.c: Regenerate.
4778 2007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
4780 * gdbarch.sh (gdbarch_swap_ftype, deprecated_register_gdbarch_swap,
4781 DEPRECATED_REGISTER_GDBARCH_SWAP): Remove.
4782 (struct gdbarch_swap, struct gdbarch_swap_registration,
4783 struct gdbarch_swap_registry, gdbarch_swap_registry,
4784 current_gdbarch_swap_init_hack, current_gdbarch_swap_out_hack,
4785 current_gdbarch_swap_in_hack): Remove.
4786 (find_arch_by_info): Do not call current_gdbarch_swap_init_hack.
4787 (gdbarch_find_by_info): Do not call current_gdbarch_swap_in_hack
4788 and current_gdbarch_swap_out_hack, update current_gdbarch directly.
4789 (deprecated_current_gdbarch_select_hack): Likewise.
4790 * gdbarch.h, gdbarch.c: Regenerate.
4792 2007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
4794 * infrun.c (clear_proceed_status): Clean up stop_registers.
4795 (normal_stop): Allocate regcache for stop_registers.
4796 (struct inferior_status): Remove stop_registers member.
4797 (save_inferior_status): Do not save stop_registers.
4798 (restore_inferior_status): Do not restore stop_registers.
4799 (discard_inferior_status): Do not discard stop_registers.
4800 (build_infrun): Remove.
4801 (_initialize_infrun): Do not swap stop_registers.
4803 2007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
4805 * remote.c (remote_address_masked): If remote_address_size is zero,
4806 default to target address size.
4807 (build_remote_gdbarch_data): Remove.
4808 (_initialize_remote): Do not swap remote_address_size.
4810 2007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
4812 * gdbtypes.h (builtin_type_true_char, builtin_type_void,
4813 builtin_type_char, builtin_type_short, builtin_type_int,
4814 builtin_type_long, builtin_type_signed_char,
4815 builtin_type_unsigned_char, builtin_type_unsigned_short,
4816 builtin_type_unsigned_int, builtin_type_unsigned_long,
4817 builtin_type_float, builtin_type_double, builtin_type_long_double,
4818 builtin_type_complex, builtin_type_double_complex, builtin_type_string,
4819 builtin_type_bool, builtin_type_long_long,
4820 builtin_type_unsigned_long_long, builtin_type_void_data_ptr,
4821 builtin_type_void_func_ptr, builtin_type_CORE_ADDR): Replace global
4822 variable declaration with compatibility macro.
4823 * gdbtypes.c (builtin_type_true_char, builtin_type_void,
4824 builtin_type_char, builtin_type_short, builtin_type_int,
4825 builtin_type_long, builtin_type_signed_char,
4826 builtin_type_unsigned_char, builtin_type_unsigned_short,
4827 builtin_type_unsigned_int, builtin_type_unsigned_long,
4828 builtin_type_float, builtin_type_double, builtin_type_long_double,
4829 builtin_type_complex, builtin_type_double_complex, builtin_type_string,
4830 builtin_type_bool, builtin_type_long_long,
4831 builtin_type_unsigned_long_long, builtin_type_void_data_ptr,
4832 builtin_type_void_func_ptr, builtin_type_CORE_ADDR): Remove.
4833 (build_gdbtypes): Remove.
4834 (_initialize_gdbtypes): Do not call build_gdbtypes, move installing
4835 opaque-type-resolution command here. Do not call
4836 deprecated_register_gdbarch_swap.
4838 2007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
4840 * gdbtypes.h (struct builtin_type): New members nodebug_text_symbol,
4841 nodebug_data_symbol, nodebug_unknown_symbol, and nodebug_tls_symbol.
4842 * gdbtypes.c (gdbtypes_post_init): Initialize nodebug_ default types.
4844 * parse.c (msym_text_symbol_type, msym_data_symbol_type): Remove.
4845 (msym_unknown_symbol_type, msym_tls_symbol_type): Remove.
4846 (write_exp_msymbol): Use builtin nodebug_ types instead of them.
4847 (build_parse): Remove.
4848 (_initialize_parse): Do not call build_parse. Do not register
4849 msym_ types for gdbarch-swapping.
4851 * dwarf2read.c (new_symbol): Use default nodebug_data_symbol type
4852 instead of creating private type.
4854 * xcoffread.c (func_symbol_type, var_symbol_type): Remove.
4855 (_initialize_xcoffread): Do not initialized them.
4856 (process_xcoff_symbol): Use builtin nodebug_ types instead of them.
4858 * mdebugread.c (nodebug_func_symbol_type): Remove.
4859 (nodebug_var_symbol_type): Remove.
4860 (_initialize_mdebugread): Do not initialize them.
4861 (parse_symbol): Use builtin nodebug_ type instead of them.
4862 (parse_procedure): Likewise.
4864 2007-06-21 Chris Dearman <chris@mips.com>
4866 * printcmd.c (do_one_display): If display/i, start with an initial
4867 line feed to avoid bad layout if there is a branch delay slot.
4869 2007-06-21 Nigel Stephens <nigel@mips.com>
4870 Maciej W. Rozycki <macro@mips.com>
4872 * disasm.c (gdb_print_insn): Return the number of branch delay
4873 slot instructions too.
4874 * disasm.h (gdb_print_insn): Update prototype.
4875 * printcmd.c (branch_delay_insns): New variable to record the
4876 number of delay slot instructions after disassembling a branch.
4877 (print_formatted): Record the number of branch delay slot
4879 (do_examine): When disassembling, if the last instruction
4880 disassembled has any branch delay slots, then bump the count so
4881 that they get disassembled too.
4882 * tui/tui-disasm.c (tui_disassemble): Update the call to
4884 * NEWS: Document the new behaviour.
4886 2007-06-21 Andreas Schwab <schwab@suse.de>
4888 * regcache.c (write_pc_pid): Restore missing else.
4890 2007-06-20 Ulrich Weigand <uweigand@de.ibm.com>
4892 * regcache.c (regcache_print): Use get_current_regcache ()
4893 instead of current_regcache.
4895 2007-06-20 H.J. Lu <hongjiu.lu@intel.com>
4898 * gcore.c (gcore_command): Use bfd_make_section_anyway_with_flags
4899 instead of bfd_make_section_anyway.
4900 (gcore_create_callback): Likewise. Also set SEC_NEVER_LOAD
4901 when clearing SEC_LOAD.
4903 2007-06-19 Joseph Myers <joseph@codesourcery.com>
4905 * arm-tdep.c (arm_push_dummy_call): Correct padding of partial
4906 registers for big-endian.
4908 2007-06-19 Markus Deuling <deuling@de.ibm.com>
4910 * gdbarch.sh (TARGET_PRINT_INSN): Replace by gdbarch_print_insn.
4911 * disasm.c (dump_insns, gdb_print_insn): Likewise.
4912 * gdbarch.c, gdbarch.h: Regenerate.
4914 2007-06-19 Markus Deuling <deuling@de.ibm.com>
4916 * gdbarch.sh (BELIEVE_PCC_PROMOTION): Replace by
4917 gdbarch_believe_pcc_promotion.
4918 * stabsread.c (define_symbol): Likewise.
4919 Remove unnecessary definition.
4920 * coffread.c (process_coff_symbol): Remove unnecessary code.
4921 * gdbarch.c, gdbarch.h: Regenerate.
4923 2007-06-19 Daniel Jacobowitz <dan@codesourcery.com>
4925 * configure.ac: Do not use ${objdir}.
4926 * configure: Regenerated.
4928 2007-06-18 Ulrich Weigand <uweigand@de.ibm.com>
4930 * gdbarch.sh (deprecated_register_size): Remove.
4931 * gdbarch.h, gdbarch.c: Regenerate.
4933 * arm-tdep.c (arm_push_dummy_call): Replace DEPRECATED_REGISTER_SIZE
4934 by INT_REGISTER_SIZE.
4935 (thumb_get_next_pc, arm_return_in_memory): Likewise.
4936 (arm_gdbarch_init): Do not call set_gdbarch_deprecated_register_size.
4937 * ia64-tdep.c (ia64_gdbarch_init): Do not call
4938 set_gdbarch_deprecated_register_size.
4940 2007-06-18 Markus Deuling <deuling@de.ibm.com>
4942 * gdbarch.sh (DEPRECATED_FP_REGNUM): Replace by
4943 gdbarch_deprecated_fp_regnum.
4944 * std-regs.c (value_of_builtin_frame_fp_reg): Likewise.
4945 * remote-mips.c (mips_wait, mips_fetch_registers): Likewise.
4946 * arch-utils.c (legacy_virtual_frame_pointer): Likewise.
4947 * arch-utils.h (gdbarch_virtual_frame_pointer_ftype): Likewise
4949 * gdbarch.c, gdbarch.h: Regenerate.
4951 2007-06-18 Markus Deuling <deuling@de.ibm.com>
4953 * gdbarch.sh (EXTRACT_RETURN_VALUE): Replace with
4954 gdbarch_extract_return_value.
4955 * value.c (generic_use_struct_convention): Likewise (comment).
4956 * ia64-tdep.c (ia64_use_struct_convention): Likewise (comment).
4957 * arch-utils.c (legacy_return_value): Likewise.
4958 * arch-utils.h (legacy_return_value): Likewise (comment).
4959 * gdbarch.sh (STORE_RETURN_VALUE): Replace by
4960 gdbarch_store_return_value.
4961 * stack.c (return_command): Likewise (comment).
4962 * arch-utils.h (legacy_return_value): Likewise (comment).
4963 * arch-utils.c (legacy_return_value): Likewise.
4964 * gdbarch.c, gdbarch.h: Regenerate.
4966 2007-06-18 Markus Deuling <deuling@de.ibm.com>
4968 * gdbarch.sh (DEPRECATED_USE_STRUCT_CONVENTION): Replace by
4969 gdbarch_deprecated_use_struct_convention.
4970 * arch-utils.c (legacy_return_value): Likewise.
4971 * gdbarch.c, gdbarch.h: Regenerate.
4973 2007-06-18 Markus Deuling <deuling@de.ibm.com>
4975 * gdbarch.sh (DEPRECATED_FUNCTION_START_OFFSET): Replace by
4976 gdbarch_deprecated_function_start_offset.
4977 * symtab.c (find_function_start_sal)skip_prologue_using_sal): Likewise.
4978 * linespec.c (minsym_found): Likewise.
4979 * infrun.c (handle_inferior_event): Likewise.
4980 * infcall.c (find_function_addr): Likewise.
4981 * cli/cli-cmds.c (disassemble_command): Likewise.
4982 * gdbarch.c, gdbarch.h: Regenerate.
4984 2007-06-18 Markus Deuling <deuling@de.ibm.com>
4986 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Replace by
4987 gdbarch_deprecated_reg_struct_has_addr.
4988 * infcall.c (call_function_by_hand): Likewise.
4989 (DEPRECATED_REG_STRUCT_HAS_ADDR_P): Replace by
4990 * gdbarch_deprecated_reg_struct_has_addr_p.
4991 * infcall.c (call_function_by_hand): Likewise.
4992 * gdbarch.c, gdbarch.h: Regenerate.
4994 2007-06-18 Markus Deuling <deuling@de.ibm.com>
4996 * gdbarch.sh (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
4997 * sh-tdep.c (sh_extract_struct_value_address): Remove.
4998 (sh_gdbarch_init): Remove
4999 set_gdbarch_deprecated_extract_struct_value_address.
5000 * sh64-tdep.c (sh64_extract_struct_value_address): Remove.
5001 (sh64_gdbarch_init): Remove
5002 set_gdbarch_deprecated_extract_struct_value_address.
5003 * ia64-tdep.c (ia64_extract_struct_value_address): Remove.
5004 (ia64_gdbarch_init): Remove
5005 set_gdbarch_deprecated_extract_struct_value_address.
5006 * frv-tdep.c (frv_extract_struct_value_address): Remove.
5007 (frv_gdbarch_init): Remove
5008 set_gdbarch_deprecated_extract_struct_value_address.
5009 * gdbarch.c, gdbarch.h: Regenerate.
5011 2007-06-18 Markus Deuling <deuling@de.ibm.com>
5013 * gdbarch.sh (SP_REGNUM): Replace by gdbarch_sp_regnum.
5014 * v850-tdep.c (v850_unwind_sp): Likewise.
5015 * std-regs.c (value_of_builtin_frame_sp_reg): Likewise.
5016 * stack.c (frame_info): Likewise.
5017 * stabsread.c (define_symbol): Likewise.
5018 * sh-tdep.c (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu)
5019 (sh_dwarf2_frame_init_reg, sh_frame_cache, sh_frame_prev_register)
5020 (sh_unwind_sp): Likewise.
5021 * sh64-tdep.c (sh64_push_dummy_call, sh64_frame_cache)
5022 (sh64_frame_prev_register, sh64_unwind_sp): Likewise.
5023 * rs6000-tdep.c (rs6000_push_dummy_call, rs6000_unwind_dummy_id)
5024 (rs6000_frame_cache): Likewise.
5025 * rs6000-nat.c (store_register): Likewise.
5026 * remote-mips.c (mips_wait): Likewise.
5027 * procfs.c (procfs_fetch_registers, procfs_store_registers): Likewise.
5028 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call)
5029 (ppc64_sysv_abi_push_dummy_call): Likewise.
5030 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_cache): Likewise.
5031 * ppcobsd-nat.c (ppcobsd_supply_pcb): Likewise.
5032 * ppcnbsd-tdep.c (ppcnbsd_sigtramp_cache_init): Likewise.
5033 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache): Likewise.
5034 * m32r-rom.c (m32r_supply_register): Likewise.
5035 * frame.c (frame_sp_unwind): Likewise.
5036 * mips-tdep.c (mips_insn16_frame_cache)
5037 (mips_insn32_frame_cache): Likewise (comment).
5038 * m68klinux-nat.c (supply_gregset): Likewise.
5039 * m68k-tdep.c (m68k_get_longjmp_target): Likewise.
5040 * ia64-tdep.c (ia64_frame_prev_register): Likewise.
5041 * i386-tdep.c (i386_get_longjmp_target): Likewise.
5042 * dwarf2-frame.c (dwarf2_frame_default_init_reg): Likewise.
5043 * cris-tdep.c (cris_regnums, cris_sigcontext_addr)
5044 (cris_sigtramp_frame_unwind_cache, cris_push_dummy_call)
5045 (cris_scan_prologue, crisv32_scan_prologue, cris_unwind_sp)
5046 (cris_register_type, crisv32_register_type)
5047 (cris_dwarf2_frame_init_reg): Likewise.
5048 * arch-utils.c (legacy_virtual_frame_pointer): Likewise.
5049 * amd64-tdep.c (amd64_frame_prev_register): Likewise.
5050 * amd64-linux-tdep.c (amd64_linux_sigcontext_addr): Likewise.
5051 * libunwind-frame.c (libunwind_frame_cache): Likewise.
5053 * gdbarch.sh (PC_REGNUM): Replace by gdbarch_pc_regnum.
5054 * regcache.c (read_pc_pid, generic_target_write_pc): Likewise.
5055 * xtensa-tdep.c (xtensa_register_type, xtensa_supply_gregset)
5056 (xtensa_unwind_pc, xtensa_frame_cache, xtensa_frame_prev_register)
5057 (xtensa_extract_return_value, xtensa_store_return_value): Likewise.
5058 * v850-tdep.c (v850_unwind_pc): Likewise.
5059 * stack.c (frame_info): Likewise.
5060 * sh-tdep.c (sh_generic_show_regs, sh3_show_regs, sh2e_show_regs)
5061 (sh2a_show_regs, sh2a_nofpu_show_regs, sh3e_show_regs)
5062 (sh3_dsp_show_regs, sh4_show_regs, sh4_nofpu_show_regs)
5063 (sh_dwarf2_frame_init_reg, sh_frame_prev_register, sh_unwind_pc)
5064 (sh_dsp_show_regs): Likewise.
5065 * shnbsd-tdep.c (shnbsd_supply_gregset)
5066 (shnbsd_collect_gregset): Likewise.
5067 * shnbsd-nat.c (GETREGS_SUPPLIES): Likewise.
5068 * sh64-tdep.c (sh64_compact_reg_base_num, sh64_show_media_regs)
5069 (sh64_frame_prev_register, sh64_unwind_pc): Likewise.
5070 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset)
5071 (6000_register_reggroup_p, rs6000_unwind_pc)
5072 (rs6000_frame_cache): Likewise.
5073 * rs6000-nat.c (regmap, rs6000_fetch_inferior_registers)
5074 (rs6000_store_inferior_registers): Likewise.
5075 * remote-mips.c (mips_wait, mips_load): Likewise.
5076 * procfs.c (procfs_fetch_registers, procfs_store_registers): Likewise.
5077 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_cache): Likewise.
5078 * ppcobsd-nat.c (ppcobsd_supply_pcb): Likewise.
5079 * ppcnbsd-tdep.c (ppcnbsd_sigtramp_cache_init): Likewise.
5080 * ppcnbsd-nat.c (getregs_supplies, ppcnbsd_supply_pcb): Likewise.
5081 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache): Likewise.
5082 * ppc-linux-nat.c (ppc_register_u_addr, fetch_ppc_registers)
5083 (store_ppc_registers, fill_gregset): Likewise.
5084 * mips-tdep.c (mips_stub_frame_cache, mips_gdbarch_init): Likewise.
5085 * mipsnbsd-tdep.c (mipsnbsd_supply_reg, mipsnbsd_fill_reg): Likewise.
5086 * mipsnbsd-nat.c (getregs_supplies): Likewise.
5087 * m68k-tdep.c (m68k_register_type, m68k_unwind_pc): Likewise.
5088 * m68klinux-nat.c (supply_gregset): Likewise.
5089 * irix5-nat.c (fill_gregset): Likewise.
5090 * i386-tdep.c (i386_unwind_pc): Likewise.
5091 * i386-linux-nat.c (i386_linux_resume): Likewise.
5092 * frame.c (get_prev_frame_1): Likewise.
5093 * dwarf2-frame.c (dwarf2_frame_default_init_reg): Likewise.
5094 * dbug-rom.c (dbug_supply_register): Likewise.
5095 * cris-tdep.c (cris_sigtramp_frame_unwind_cache, cris_scan_prologue)
5096 (crisv32_scan_prologue, cris_unwind_pc, cris_register_size)
5097 (cris_register_type, crisv32_register_type, crisv32_register_name)
5098 (cris_dwarf2_frame_init_reg, find_step_target)
5099 (cris_software_single_step, cris_supply_gregset)
5100 (cris_regnums): Likewise.
5101 * alpha-linux-nat.c (alpha_linux_register_u_offset): Likewise.
5102 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
5103 (fill_sprs64, fill_sprs32, store_regs_user_thread): Likewise.
5104 * std-regs.c (value_of_builtin_frame_pc_reg): Likewise.
5105 * mips-linux-tdep.c (mips_linux_write_pc): Likewise.
5107 * gdbarch.sh (PS_REGNUM): Replace by gdbarch_ps_regnum.
5108 * dbug-rom.c (dbug_supply_register): Likewise.
5109 * xtensa-tdep.c (xtensa_supply_gregset, xtensa_frame_cache)
5110 (xtensa_frame_prev_register, xtensa_push_dummy_call): Likewise.
5111 * win32-nat.c (win32_resume): Likewise.
5112 * std-regs.c (value_of_builtin_frame_ps_reg): Likewise.
5113 * m68k-tdep.c (m68k_register_type): Likewise.
5114 * m68klinux-nat.c (supply_gregset): Likewise.
5116 * gdbarch.sh (FP0_REGNUM): Replace by gdbarch_fp0_regnum.
5117 * sh-tdep.c (sh_extract_return_value_fpu, sh_store_return_value_fpu)
5118 (sh2e_show_regs, sh2a_show_regs, sh3e_show_regs, sh4_show_regs)
5119 (sh_sh2a_register_type, sh_sh3e_register_type, sh_sh4_register_type)
5120 (fv_reg_base_num, dr_reg_base_num): Likewise.
5121 * sh64-tdep.c (sh64_fv_reg_base_num, sh64_dr_reg_base_num)
5122 (sh64_fpp_reg_base_num, sh64_compact_reg_base_num, sh64_push_dummy_call)
5123 (sh64_extract_return_value, sh64_store_return_value)
5124 (sh64_show_media_regs, sh64_show_compact_regs, sh64_register_type)
5125 (sh64_do_fp_register, sh64_media_print_registers_info): Likewise.
5126 * procfs.c (procfs_fetch_registers, procfs_store_registers)
5127 (invalidate_cache): Likewise.
5128 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache): Likewise.
5129 * mipsnbsd-tdep.c (mipsnbsd_supply_fpreg)
5130 (mipsnbsd_fill_fpreg): Likewise.
5131 * mipsnbsd-nat.c (mipsnbsd_fetch_inferior_registers)
5132 (mipsnbsd_store_inferior_registers): Likewise.
5133 * mips-linux-tdep.c (mips_supply_fpregset, mips_fill_fpregset)
5134 (mips64_supply_fpregset, mips64_fill_fpregset): Likewise.
5135 * mips-linux-nat.c (mips64_linux_register_addr): Likewise.
5136 * m68k-tdep.c (m68k_register_type, m68k_convert_register_p): Likewise.
5137 * m68klinux-nat.c (getfpregs_supplies, supply_fpregset)
5138 (fill_fpregset): Likewise.
5139 * irix5-nat.c (supply_fpregset, fill_fpregset): Likewise.
5140 * i386-tdep.h (struct_return): Likewise (comment).
5141 * i386-nto-tdep.c (i386nto_register_area): Likewise.
5142 * go32-nat.c (fetch_register, go32_fetch_registers, store_register)
5143 (go32_store_registers): Likewise.
5144 * alpha-tdep.c (alpha_next_pc): Likewise.
5145 * alpha-linux-nat.c (alpha_linux_register_u_offset): Likewise.
5146 * alphabsd-nat.c (alphabsd_fetch_inferior_registers)
5147 (alphabsd_store_inferior_registers): Likewise.
5148 * core-regset.c (fetch_core_registers): Likewise.
5149 * i386v4-nat.c (supply_fpregset, fill_fpregset): Likewise.
5151 * gdbarch.c, gdbarch.h: Regenerate.
5153 2007-06-18 Daniel Jacobowitz <dan@codesourcery.com>
5155 * coffread.c (coff_sym_fns): Add default_symfile_segments.
5156 * dbxread.c (start_psymtab): Check HAVE_ELF.
5157 (aout_sym_fns): Likewise.
5158 * elfread.c (elf_symfile_segments): New.
5159 (elf_sym_fns): Add elf_symfile_segments.
5160 * mipsread.c (ecoff_sym_fns): Add default_symfile_segments.
5161 * remote.c (get_offsets): Use symfile_map_offsets_to_segments.
5162 Skip if there is no symfile_objfile. Handle TextSeg and DataSeg.
5163 * somread.c (som_sym_fns): Use default_symfile_segments.
5164 * symfile.c (find_sym_fns): Take a BFD and return the sym_fns.
5165 (init_objfile_sect_indices): Call symfile_find_segment_sections.
5166 (default_symfile_segments): New function.
5167 (syms_from_objfile): Update call to find_sym_fns.
5168 (symfile_get_segment_data, free_symfile_segment_data): New.
5169 (symfile_map_offsets_to_segments): New.
5170 (symfile_find_segment_sections): New.
5171 * symfile.h (struct symfile_segment_data): New.
5172 (struct sym_fns): Add sym_segments.
5173 (default_symfile_segments, symfile_get_segment_data)
5174 (free_symfile_segment_data): New prototypes.
5175 (symfile_map_offsets_to_segments): Likewise.
5176 * xcoffread.c (xcoff_sym_fns): Add default_symfile_segments.
5177 * Makefile.in (COMMON_OBS): Remove elfread.o.
5178 (elf_internal_h): New.
5179 (elfread.o): Update.
5180 * configure.ac: Add elfread.o to COMMON_OBS if bfd/elf.o was
5182 * config.in, configure: Regenerated.
5183 * NEWS: Mention qOffsets changes.
5185 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
5187 * gdbtypes.h (builtin_type_m2_char, builtin_type_m2_int,
5188 builtin_type_m2_card, builtin_type_m2_real, builtin_type_m2_bool):
5189 Replace global variable declaration with compatibility macro.
5190 (struct builtin_m2_type): New data type.
5191 (builtin_m2_type): Add prototype.
5192 * m2-lang.c (builtin_type_m2_char, builtin_type_m2_int,
5193 builtin_type_m2_card, builtin_type_m2_real, builtin_type_m2_bool):
5194 Remove global variables.
5195 (m2_language_arch_info): Use builtin_m2_type instead of variables.
5196 (build_m2_types): New function.
5197 (m2_type_data): New variable.
5198 (builtin_m2_type): New function.
5199 (_initialize_m2_language): Do not build data types. Register
5200 m2_type_data per-gdbarch data.
5202 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
5204 * gdbtypes.h (builtin_type_f_character, builtin_type_f_logical,
5205 builtin_type_f_logical_s1, builtin_type_f_logical_s2,
5206 builtin_type_f_integer, builtin_type_f_integer_s2, builtin_type_f_real,
5207 builtin_type_f_real_s8, builtin_type_f_real_s16,
5208 builtin_type_f_complex_s8, builtin_type_f_complex_s16,
5209 builtin_type_f_complex_s32, builtin_type_f_void): Replace global
5210 variable declaration with compatibility macro.
5211 (struct builtin_f_type): New data type.
5212 (builtin_f_type): Add prototype.
5213 * f-lang.c (builtin_type_f_character, builtin_type_f_logical,
5214 builtin_type_f_logical_s1, builtin_type_f_logical_s2,
5215 builtin_type_f_integer, builtin_type_f_integer_s2, builtin_type_f_real,
5216 builtin_type_f_real_s8, builtin_type_f_real_s16,
5217 builtin_type_f_complex_s8, builtin_type_f_complex_s16,
5218 builtin_type_f_complex_s32, builtin_type_f_void): Remove variables.
5219 (f_language_arch_info): Use builtin_f_type instead of variables.
5220 (build_fortran_types): Build builtin_f_type structure instead of
5221 setting global type variables.
5222 (f_type_data): New variable.
5223 (builtin_f_type): New function.
5224 (_initialize_f_language): Do not call build_fortran_types. Do not
5225 swap global type variables. Register f_type_data per-gdbarch data.
5227 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
5229 * f-lang.c (_initialize_f_language): Do not initialize or
5230 swap builtin_type_string.
5232 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
5234 * std-regs.c (builtin_type_frame_reg, build_builtin_type_frame_reg,
5235 value_of_builtin_frame_reg): Remove.
5236 (_initialize_frame_reg): Do not swap builtin_type_frame_reg. Remove
5237 inactive call to value_of_builtin_frame_reg.
5239 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
5241 * gdbarch.sh (bfd_vma_bit): Remove.
5242 * gdbarch.c, gdbarch.h: Regenerate.
5244 * gdbtypes.h (builtin_bfd_vma_type): Remove.
5245 * gdbtypes.h (builtin_bfd_vma_type): Remove.
5246 (build_gdbtypes): Do not initialize it.
5247 (_initialize_gdbtypes): Do not swap it.
5249 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
5251 * gdbtypes.c (builtin_type_v2_double, builtin_type_v4_float,
5252 builtin_type_v2_int64, builtin_type_v4_int32, builtin_type_v8_int16,
5253 builtin_type_v16_int8, builtin_type_v2_float, builtin_type_v2_int32,
5254 builtin_type_v4_int16, builtin_type_v8_int8, builtin_type_v4sf,
5255 builtin_type_v4si, builtin_type_v16qi, builtin_type_v8qi,
5256 builtin_type_v8hi, builtin_type_v4hi, builtin_type_v2si,
5257 builtin_type_vec64, builtin_type_vec128): Remove.
5258 (init_simd_type): Remove.
5259 (init_vector_type): Make global.
5260 (build_builtin_type_vec64, build_builtin_type_vec128): Remove.
5261 (build_gdbtypes): Do not build vector types.
5262 (_initialize_gdbtypes): Do not swap vector types.
5263 * gdbtypes.h (builtin_type_v2_double, builtin_type_v4_float,
5264 builtin_type_v2_int64, builtin_type_v4_int32, builtin_type_v8_int16,
5265 builtin_type_v16_int8, builtin_type_v2_float, builtin_type_v2_int32,
5266 builtin_type_v4_int16, builtin_type_v8_int8, builtin_type_v4sf,
5267 builtin_type_v4si, builtin_type_v16qi, builtin_type_v8qi,
5268 builtin_type_v8hi, builtin_type_v4hi, builtin_type_v2si,
5269 builtin_type_vec64, builtin_type_vec128): Remove declarations.
5270 (init_vector_type): Add prototype.
5272 * i386-tdep.h (struct gdbarch_tdep): Add i386_mmx_type and
5273 i386_sse_type members.
5274 (i386_mmx_type, i386_sse_type): Change from variables to functions.
5275 * i386-tdep.c (i386_mmx_type, i386_sse_type): Remove variables.
5276 (i386_init_types): Do not build vector types.
5277 (i386_mmx_type, i386_sse_type): New functions.
5278 (i386_register_type): Call them instead of using global variables.
5279 (i386_gdbarch_init): Use XCALLOC to allocate tdep structure.
5280 * amd64-tdep.c (amd64_register_type): Call i386_sse_type instead
5281 of using global variable.
5283 * rs6000-tdep.h (struct gdbarch_tdep): Add ppc_builtin_type_vec64
5284 and ppc_builtin_type_vec128 members.
5285 * rs6000-tdep.c (rs6000_builtin_type_vec64): New function.
5286 (rs6000_builtin_type_vec128): Likewise.
5287 (rs6000_register_type): Call them instead of using builtin_type_vec64
5288 and builtin_type_vec128.
5289 (rs6000_gdbarch_init): Use XCALLOC to allocate tdep structure.
5291 * spu-tdep.c (struct gdbarch_tdep): New data type.
5292 (spu_builtin_type_vec128): Remove variable.
5293 (spu_builtin_type_vec128): New function.
5294 (spu_register_type): Call it instead of using global variable.
5295 (spu_gdbarch_init): Allocate tdep structure.
5296 (spu_init_vector_type): Remove function.
5297 (_initialize_spu_tdep): Do not call it.
5299 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
5301 * amd64-tdep.c (struct amd64_register_info): Remove.
5302 (amd64_register_info): Remove.
5303 (amd64_register_names): New static variable.
5304 (AMD64_NUM_REGS): Use amd64_register_names instead of
5305 amd64_register_info.
5306 (amd64_register_name): Likewise.
5307 (amd64_register_type): Do not refer to amd64_register_info.
5309 * s390-tdep.c (struct s390_register_info): Remove.
5310 (s390_register_info): Remove.
5311 (s390_register_name): Do not refer to s390_register_info.
5312 (s390_register_type): Likewise.
5314 * sparc64-tdep.c (struct sparc64_register_info): Remove.
5315 (sparc64_register_info, sparc64_pseudo_register_info): Remove.
5316 (sparc64_register_names, sparc64_pseudo_register_names): New.
5317 (SPARC64_NUM_REGS, SPARC64_NUM_PSEUDO_REGS): Use
5318 sparc64_register_names and sparc64_pseudo_register_names instead of
5319 sparc64_register_info and sparc64_pseudo_register_info.
5320 (sparc64_register_name): Likewise.
5321 (sparc64_register_type): Do not refer to sparc64_register_info
5322 and sparc64_pseudo_register_info.
5324 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
5326 * c-lang.c (cplus_builtin_types): Remove.
5327 (enum cplus_primitive_types): New data type.
5328 (cplus_language_arch_info): New function.
5329 (cplus_language_defn): Set la_language_arch_info member. Do not set
5330 la_builtin_type_vector and string_char_type members.
5332 * f-lang.c (f_builtin_types): Remove.
5333 (enum f_primitive_types): New data type.
5334 (f_language_arch_info): New function.
5335 (f_language_de): Set la_language_arch_info member. Do not set
5336 la_builtin_type_vector and string_char_type members.
5338 * m2-lang.c (m2_builtin_types): Remove.
5339 (enum m2_primitive_types): New data type.
5340 (m2_language_arch_info): New function.
5341 (m2_language_defn): Set la_language_arch_info member. Do not set
5342 la_builtin_type_vector and string_char_type members.
5344 * objc-lang.c (objc_builtin_types): Remove.
5345 (objc_language): Set la_language_arch_info member. Do not set
5346 la_builtin_type_vector and string_char_type members.
5348 * p-lang.c (pascal_builtin_types): Remove.
5349 (enum pascal_primitive_types): New data type.
5350 (pascal_language_arch_info): New function.
5351 (pascal_language_defn): Set la_language_arch_info member. Do not set
5352 la_builtin_type_vector and string_char_type members.
5354 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
5356 * regcache.c (struct regcache): Add ptid_t member.
5357 (regcache_xmalloc): Initialize it.
5358 (regcache_cpy_no_passthrough): Do not refer to current_regcache.
5359 (regcache_dup): Likewise.
5360 (regcache_dup_no_passthrough): Likewise.
5361 (current_regcache): Make static.
5362 (registers_ptid): Remove variable.
5363 (get_thread_regcache): New function.
5364 (get_current_regcache): New function.
5365 (registers_changed): Implement by freeing current regcache.
5366 (regcache_raw_read): Do not refer to current_regcache. Set
5367 inferior_ptid to regcache->ptid while calling target routines.
5368 (regcache_raw_write): Likewise.
5369 (regcache_raw_supply): Do not refer to current_regcache.
5370 (read_pc_pid): Use thread regcache. Do not modify inferior_ptid.
5371 (write_pc_pid): Likewise.
5372 (build_regcache): Remove.
5373 (_initialize_regcache): Do not call DEPRECATED_REGISTER_GDBARCH_SWAP
5374 or deprecated_register_gdbarch_swap. Do not initialize
5376 * regcache.h (get_current_regcache): Add prototype.
5377 (get_thread_regcache): Likewise.
5378 (current_regcache): Remove declaration.
5380 * corelow.c (core_open): Replace current_regcache by
5381 get_current_regcache ().
5382 * frame.c (frame_pop): Likewise.
5383 (put_frame_register): Likewise.
5384 (get_current_frame, create_new_frame): Likewise.
5385 * mi/mi-main.c (mi_cmd_data_write_register_values): Likewise.
5386 * stack.c (return_command): Likewise.
5387 * infcall.c (call_function_by_hand): Likewise.
5388 * infrun.c (resume): Likewise.
5389 (save_inferior_status, restore_inferior_status): Likewise.
5390 * linux-fork.c (fork_load_infrun_state): Likewise.
5391 (fork_save_infrun_state): Likewise.
5392 * win32-nat.c (win32_resume): Likewise.
5393 * i386fbsd-nat.c (i386fbsd_resume): Likewise.
5394 * monitor.c (monitor_wait): Likewise.
5395 * remote.c (remote_wait): Likewise.
5396 * remote-mips.c (mips_wait): Likewise.
5398 * bsd-kvm.c (bsd_kvm_open): Likewise
5399 (bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd): Likewise.
5400 * fbsd-nat.c (fbsd_make_corefile_notes): Likewise.
5401 * i386-linux-nat.c (i386_linux_resume): Likewise.
5402 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Likewise.
5403 (ia64_linux_stopped_data_address): Likewise.
5405 * frv-tdep.c (frv_fdpic_loadmap_addresses): Likewise.
5406 * m32c-tdep.c (m32c_virtual_frame_pointer): Likewise.
5407 * mep-tdep.c (current_me_module, current_options): Likewise.
5408 * mips-tdep.c (deprecated_mips_set_processor_regs_hack): Likewise.
5410 * linux-nat.c (linux_nat_do_thread_registers): Use thread
5411 regcache instead of current_regcache. Call target_fetch_registers.
5412 (linux_nat_corefile_thread_callback): Update call site.
5413 (linux_nat_do_registers): Likewise.
5414 * procfs.c (procfs_do_thread_registers): Use thread regcache instead
5415 of current_regcache.
5416 (procfs_make_note_section): Likewise.
5417 * proc-service.c (ps_lgetregs, ps_lsetregs): Likewise.
5418 (ps_lgetfpregs, ps_lsetfpregs): Likewise.
5419 * sol-thread.c (ps_lgetregs, ps_lsetregs): Likewise.
5420 (ps_lgetfpregs, ps_lsetfpregs): Likewise.
5422 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
5424 * regcache.c (read_register, read_register_pid): Remove.
5425 (write_register, write_register_pid): Likewise.
5426 * regcache.h (read_register, read_register_pid): Remove prototype.
5427 (write_register, write_register_pid): Likewise.
5429 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
5431 * gdbarch.sh (read_pc): Add REGCACHE argument. Remove PTID argument.
5432 (write_pc): Likewise. Remove default implementation, add predicate.
5433 * gdbarch.c, gdbarch.h: Regenerate.
5434 * regcache.c (read_pc_pid): Use current regcache instead of calling
5436 (write_pc_pid): Check gdbarch_write_pc predicate, implement default
5438 (generic_target_write_pc): Remove.
5439 * inferior.h (generic_target_write_pc): Remove.
5440 * frv-tdep.c (frv_gdbarch_init): Do not install it.
5441 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
5442 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
5443 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
5444 * sh-tdep.c (sh_gdbarch_init): Likewise.
5445 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
5447 * avr-tdep.c (avr_read_pc): Add REGCACHE argument. Remove PTID
5448 argument. Use REGCACHE instead of calling read_register_pid.
5449 * hppa-hpux-tdep.c (hppa_hpux_read_pc): Likewise.
5450 * hppa-tdep.c (hppa_read_pc): Likewise.
5451 * hppa-tdep.h (hppa_read_pc): Likewise.
5452 * ia64-tdep.c (ia64_read_pc): Likewise.
5453 * m32r-tdep.c (m32r_read_pc): Likewise.
5454 * mep-tdep.c (mep_read_pc): Likewise.
5455 * mn10300-tdep.c (mn10300_read_pc): Likewise.
5456 * spu-tdep.c (spu_read_pc): Likewise.
5458 * arm-tdep.c (arm_write_pc): Add REGCACHE argument. Remove PTID
5459 argument. Use REGCACHE instead of calling write_register_pid.
5460 * avr-tdep.c (avr_write_pc): Likewise.
5461 * hppa-hpux-tdep.c (hppa_hpux_write_pc): Likewise.
5462 * hppa-tdep.c (hppa_write_pc): Likewise.
5463 * hppa-tdep.h (hppa_write_pc): Likewise.
5464 * i386-linux-tdep.c (i386_linux_write_pc): Likewise.
5465 * amd64-linux-tdep.c (amd64_linux_write_pc): Likewise.
5466 * ia64-linux-tdep.c (ia64_linux_write_pc): Likewise.
5467 * ia64-tdep.c (ia64_write_pc): Likewise.
5468 * ia64-tdep.h (ia64_write_pc): Likewise.
5469 * m32r-tdep.c (m32r_write_pc): Likewise.
5470 * m88k-tdep.c (m88k_write_pc): Likewise.
5471 * mep-tdep.c (mep_write_pc): Likewise.
5472 * mips-tdep.c (mips_write_pc): Likewise.
5473 * mips-linux-tdep.c (mips_linux_write_pc): Likewise.
5474 * mn10300-tdep.c (mn10300_write_pc): Likewise.
5475 * sparc-tdep.c (sparc_write_pc): Likewise.
5476 * spu-tdep.c (spu_write_pc): Likewise.
5478 * mips-tdep.c (read_signed_register): Remove.
5479 (read_signed_register_pid): Likewise.
5480 (mips_read_pc): Add REGCACHE argument. Remove PTID argument.
5481 Use REGCACHE instead of calling read_signed_register_pid.
5483 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
5485 * gdbarch.sh (push_dummy_code): Add REGCACHE argument.
5486 * gdbarch.c, gdbarch.h: Regenerate.
5487 * infcall.c (generic_push_dummy_code): Add REGCACHE argument.
5488 (push_dummy_code): Likewise. Pass it to callee.
5489 (call_function_by_hand): Pass current regcache to push_dummy_code.
5491 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Add REGCACHE
5492 argument. Use it instead of current_regcache.
5494 * cris-tdep.c (cris_push_dummy_code): Add REGCACHE argument.
5495 * sparc-tdep.c (sparc32_push_dummy_code): Likewise.
5497 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
5499 * gdbarch.sh (get_longjmp_target): Add FRAME argument.
5500 * gdbarch.c, gdbarch.h: Regenerate.
5501 * infrun.c (handle_inferior_event): Pass current frame to
5502 gdbarch_get_longjmp_target.
5504 * alpha-tdep.c (alpha_get_longjmp_target): Add FRAME argument.
5505 Read registers from FRAME instead of using read_register.
5506 Use get_frame_arch instead of current_gdbarch.
5507 * arm-tdep.c (arm_get_longjmp_target): Likewise.
5508 * i386-tdep.c (i386_get_longjmp_target): Likewise.
5509 * m68k-tdep.c (m68k_get_longjmp_target): Likewise.
5510 * mips-linux-tdep.c (mips_linux_get_longjmp_target): Likewise.
5511 (mips64_linux_get_longjmp_target): Likewise.
5512 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Likewise.
5514 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
5516 * gdbarch.sh (skip_trampoline_code): Add FRAME argument.
5517 * gdbarch.c, gdbarch.h: Regenerate.
5518 * arch-utils.c (generic_skip_trampoline_code): Add FRAME argument.
5519 * arch-utils.h (generic_skip_trampoline_code): Likewise.
5520 * infrun.c (handle_inferior_event): Pass current frame to
5521 gdbarch_skip_trampoline_code and skip_language_trampoline.
5523 * language.c (unk_lang_trampoline): Add FRAME argument.
5524 (skip_language_trampoline): Add FRAME argument. Pass it to
5525 skip_trampoline callback.
5526 * language.h: Add forward declaration of struct frame_info.
5527 (struct language_defn): Add FRAME argument to skip_trampoline.
5528 (skip_language_trampoline): Add FRAME argument.
5529 * cp-abi.c (cplus_skip_trampoline): Add FRAME argument. Pass it
5530 to skip_trampoline callback.
5531 * cp-abi.h: Add forward declaration of struct frame_info.
5532 (cplus_skip_trampoline): Add FRAME argument.
5533 (struct cp_abi_ops): Add FRAME argument to skip_trampoline callback.
5534 * gnu-v3-abi.c (gnuv3_skip_trampoline): Add FRAME argument. Pass it
5535 to gdbarch_skip_trampoline_code.
5536 * objc-lang.c (objc_skip_trampoline): Add FRAME argument. Pass it
5537 to gdbarch_skip_trampoline_code.
5539 * minsyms.c (find_solib_trampoline_target): Add FRAME argument.
5540 * symtab.h (find_solib_trampoline_target): Likewise.
5541 * obsd-tdep.c (obsd_skip_solib_resolver): Pass current frame to
5542 find_solib_trampoline_target.
5544 * arm-tdep.c (arm_skip_stub): Add FRAME argument. Read registers
5545 from FRAME instead of calling read_register.
5547 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code): Add FRAME
5548 argument. Read registers from FRAME instead of using read_register.
5549 * hppa-tdep.c (hppa_skip_trampoline_code): Likewise.
5550 * hppa-tdep.h (hppa_skip_trampoline_code): Add FRAME argument.
5552 * i386-cygwin-tdep.c (i386_cygwin_skip_trampoline_code): Add FRAME
5555 * m32c-tdep.c (m32c_skip_trampoline_code): Add FRAME argument.
5557 * mips-tdep.c (mips_skip_trampoline_code): Add FRAME argument. Read
5558 registers from FRAME instead of using read_signed_register.
5560 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Add FRAME
5562 (ppc64_standard_linkage_target): Likewise. Read registers from FRAME
5563 instead of using read_register.
5564 (ppc64_skip_trampoline_code): Add FRAME argument. Pass it to
5565 ppc64_standard_linkage_target.
5566 * rs6000-tdep.c (rs6000_skip_trampoline_code): Add FRAME argument.
5567 Pass it to find_solib_trampoline_target. Read registers from FRAME
5568 instead of using read_register.
5570 * xstormy16-tdep.c (xstormy16_skip_trampoline_code): Add FRAME
5573 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
5575 * gdbarch.sh (software_single_step): Replace REGCACHE argument by
5577 * gdbarch.c, gdbarch.h: Regenerate.
5578 * infrun.c (resume): Pass current frame to SOFTWARE_SINGLE_STEP.
5580 * alpha-tdep.c (alpha_next_pc): Add FRAME argument. Retrieve
5581 registers from FRAME instead of using read_register.
5582 (alpha_software_single_step): Replace REGCACHE by FRAME. Pass FRAME
5583 to alpha_next_pc. Use get_frame_pc instead of read_pc.
5584 * alpha-tdep.h (alpha_software_single_step): Replace REGCACHE
5587 * arm-tdep.c (shifted_reg_val): Add FRAME argument. Read registers
5588 from FRAME instead of using read_register.
5589 (thumb_get_next_pc): Likewise.
5590 (arm_get_next_pc): Likewise.
5591 (arm_software_single_step): Replace REGCACHE by FRAME. Pass FRAME
5592 to arm_get_next_pc. Use get_frame_pc instead of read_register.
5593 * arm-tdep.h (arm_software_single_step): Replace REGCACHE
5596 * cris-tdep.c (find_step_target): Add FRAME argument. Read registers
5597 from FRAME instead of using read_register.
5598 (cris_software_single_step): Replace REGCACHE by FRAME. Pass FRAME
5599 to find_step_target.
5601 * mips-tdep.c (mips32_next_pc): Add FRAME argument. Read registers
5602 from FRAME instead of using read_register / read_signed_register.
5603 (extended_mips16_next_pc): Likewise.
5604 (mips16_next_pc): Likewise.
5605 (mips_next_pc): Likewise.
5606 (mips_software_single_step): Replace REGCACHE by FRAME. Pass FRAME
5607 to mips_next_pc. Use get_frame_pc instead of read_pc.
5608 * mips-tdep.h (mips_software_single_step): Replace REGCACHE
5611 * rs6000-tdep.c (branch_dest): Add FRAME argument. Use it instead
5612 of current frame. Read registers from FRAME.
5613 (deal_with_atomic_sequence): Add FRAME argument. Pass it to
5614 branch_dest. Use get_frame_pc instead of read_pc.
5615 (rs6000_software_single_step): Likewise.
5616 (bl_to_blrl_insn_p): Do not call branch_dest.
5617 * rs6000-tdep.h (rs6000_software_single_step): Replace REGCACHE
5620 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Add FRAME argument.
5621 Read registers from FRAME instead of current regcache.
5622 * sparc-linux-tdep.c (sparc32_linux_step_trap): Likewise.
5623 * sparcnbsd-tdep.c (sparcnbsd_step_trap): Likewise.
5624 * sparc-tdep.c (sparc_address_from_register): Remove.
5625 (sparc_analyze_control_transfer): Pass FRAME argument instead of
5626 GDBARCH. Pass FRAME to step_trap callback.
5627 (sparc_step_trap): Add FRAME argument.
5628 (space_software_single_step): Replace REGCACHE by FRAME. Pass FRAME
5629 to sparc_analyze_control_transfer. Read registers from FRAME instead
5630 of calling sparc_address_from_register.
5631 * sparc-tdep.h (struct gdbarch_tdep): Add FRAME argument to
5633 (sparc_address_from_register): Remove prototype.
5634 (sparc_software_single_step): Replace REGCACHE argument by FRAME.
5635 (sparcnbsd_step_trap): Add FRAME argument.
5637 * spu-tdep.c (spu_software_single_step): Replace REGCACHE argument
5638 by FRAME. Read registers from FRAME instead of REGCACHE.
5640 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
5642 * arm-tdep.c (arm_print_float_info): Use register value from FRAME
5643 instead of calling read_register.
5645 * avr-tdep.c (avr_push_dummy_call): Write to REGCACHE instead of
5646 calling write_register.
5648 * hppa-tdep.c (hppa32_push_dummy_call): Write to REGCACHE instead of
5649 calling write_register.
5651 * ia64-tdep.c (find_func_descr): Add REGCACHE parameter. Use it
5652 instead of calling read_register.
5653 (ia64_push_dummy_call): Update call to find_func_descr. Use REGCACHE
5654 instead of calling read_register and write_register.
5656 * m32r-tdep.c (m32r_linux_supply_gregset): Use REGCACHE parameter
5657 instead of current_regcache.
5659 * mn10300-tdep.c (mn10300_push_dummy_call): Write to REGCACHE instead
5660 of calling write_register.
5661 * mn10300-linux-tdep.c (am33_supply_fpregset_method): Use REGCACHE
5662 parameter instead of current_regcache.
5664 * mips-tdep.c (mips2_fp_compat): Add FRAME parameter. Use it
5665 instead of calling read_register.
5666 (mips_read_fp_register_double, mips_print_fp_register): Update calls.
5667 (mips_eabi_push_dummy_call): Use REGCACHE instead of write_register.
5668 (mips_n32n64_push_dummy_call): Likewise.
5669 (mips_o32_push_dummy_call): Likewise.
5670 (mips_o64_push_dummy_call): Likewise.
5672 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Use REGCACHE
5673 parameter instead of current_regcache.
5675 * xtensa-tdep.c (xtensa_register_write_masked): Add REGCACHE parameter.
5676 Use it instead of read_register and write_register.
5677 (xtensa_register_read_masked): Likewise.
5678 (xtensa_pseudo_register_read): Update call.
5679 (xtensa_pseudo_register_write): Likewise.
5680 (xtensa_frame_cache): Use register values unwound from NEXT_FRAME
5681 instead of calling read_register.
5682 (xtensa_push_dummy_call): Update comment.
5684 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
5686 * mips-tdep.c (mips16_scan_prologue): Replace read_next_frame_reg
5687 by frame_unwind_register_signed calls.
5688 (mips32_scan_prologue): Likewise. Skip analysis of alloca stack
5689 frame allocations when called with NULL NEXT_FRAME parameter.
5690 (read_next_frame_reg): Remove.
5692 * sh-tdep.c (sh_analyze_prologue): Add FPSCR parameter. Use it
5693 instead of reading the FPSCR register.
5694 (sh_frame_cache): Pass unwound FPSCR register value to
5695 sh_analyze_prologue.
5696 (sh_skip_prologue): Pass dummy FPSCR value to sh_analyze_prologue.
5698 * v850-tdep.c (v850_analyze_prologue): Add CTBP parameter. Use it
5699 instead of reading the CTBP register.
5700 (v850_frame_cache): Pass unwound CTBP register value to
5701 v850_analyze_prologue.
5703 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
5705 * sh-tdep.h (sh_show_regs): Add FRAME parameter.
5706 * sh-tdep.c (sh_show_regs): Likewise.
5707 (sh_show_regs_command): Pass current frame to sh_show_regs routine.
5708 (sh_generic_show_regs): Add FRAME parameter. Use register
5709 values from that frame instead of calling read_register.
5710 (sh3_show_regs, sh2e_show_regs, sh2a_show_regs, sh2a_nofpu_show_regs,
5711 sh3e_show_regs, sh3_dsp_show_regs, sh4_show_regs, sh4_nofpu_show_regs,
5712 sh_dsp_show_regs): Likewise.
5713 * sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs,
5714 sh64_show_regs): Likewise.
5716 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
5718 * mips-tdep.c (deprecated_mips_set_processor_regs_hack): Read from
5719 current regcache instead of calling read_register.
5721 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
5723 * mep-tdep.c (current_me_module): Read from current regcache
5724 instead of calling read_register.
5725 (current_options): Likewise.
5727 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
5729 * cris-tdep.c (cris_stopped_data_address): Read register values
5730 from current frame instead of calling read_register.
5731 * frv-tdep.c (frv_stopped_data_address): Likewise.
5733 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
5735 * solib-sunos.c (sunos_solib_create_inferior_hook): Use write_pc
5736 instead of write_register (PC_REGNUM, ...).
5738 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
5740 * solib-sunos.c (sunos_solib_create_inferior_hook): Add comment
5741 explaining why the PC adjustment code is necessary.
5743 2007-06-15 Vladimir Prus <vladimir@codesourcery.com>
5745 * m68k-tdep.h (enum m68k_flavour): New.
5746 (struct gdbarch_tdep): New fields
5747 float_return, flavour and fpregs_present.
5748 * m68k-tdep.c (m68k_register_type): Use
5749 fpregs_present and conditionalize floating
5750 registers type on flavour.
5751 (m68k_register_names): New.
5752 (m68k_register_name): Use the above.
5753 (m68k_convert_register_p): Consult fpregs_present.
5754 (m68k_register_to_value, m68k_value_to_register):
5755 Use register_type to obtain the type of floating
5757 (m68k_svr4_extract_return_value): Check tdep->float_return.
5758 Use register_type to get the type of floating
5760 (m68k_svr4_store_return_value): Likewise.
5761 (m68k_dwarf_reg_to_regnum): Check tdep->fpregs_present.
5762 (m68k_analyze_register_saves): Likewise.
5763 (m68k_gdbarch_init): Extract infromation
5764 from XML description, if present. Guess coldfire by
5765 looking at the file, if present. Conditionalize
5766 setting of long double format. Set decr_pc_after_break
5767 to 2 on coldfire and fido. Enable XML-driven
5768 register description.
5769 * m68kbsd-tdep.c (m68kbsd_fpreg_offset): Use
5770 size of tdep->fpreg_type, as opposed to hardcoded value.
5771 * Makefile.in (m68k-tdep.o): Update dependencies.
5773 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
5775 * NEWS: Mention "info spu" commands and qXfer:spu:read and
5776 qXfer:spu:write remote packet types.
5778 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
5780 * xml-tdesc.c (tdesc_start_target): New.
5781 (target_attributes): New.
5782 (tdesc_elements): Use it.
5783 * features/gdb-target.dtd: Add #FIXED version attribute for
5786 2007-06-13 Arthur Huillet <arthur.huillet@free.fr>
5788 * mi/mi-cmd-var.c (mi_cmd_var_assign): Fix typo.
5790 2007-06-13 Claudio Fontana <claudio.fontana@gmail.com>
5792 * fork-child.c (fork_inferior): Update comment.
5794 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
5796 * features/Makefile: Generate regformats for mips-linux and
5798 * features/sort-regs.xsl: Correct typo.
5799 * regformats/reg-mips.dat, regformats/reg-mips64.dat: Delete.
5800 * regformats/mips-linux.dat, regformats/mips64-linux.dat: New generated
5803 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
5805 * config/mips/linux.mh (TDEP_XML): New.
5806 * features/mips-linux.xml, features/mips64-linux.xml: New files.
5807 * mips-linux-nat.c (mips_linux_register_addr): Handle
5808 MIPS_RESTART_REGNUM.
5809 (mips64_linux_register_addr): Likewise.
5810 (super_xfer_partial, mips_linux_xfer_partial): New.
5811 (_initialize_mips_linux_nat): Add them to the target_ops.
5812 * mips-linux-tdep.c (mips_supply_gregset): Handle MIPS_RESTART_REGNUM.
5813 (mips_fill_gregset, mips64_supply_gregset, mips64_fill_gregset)
5814 (mips_linux_o32_sigframe_init)
5815 (mips_linux_n32n64_sigframe_init): Likewise.
5816 (mips_linux_write_pc, mips_linux_restart_reg_p): New.
5817 (mips_linux_init_abi): Use mips_linux_write_pc. Check for the
5818 "org.gnu.gdb.mips.linux" feature.
5819 * mips-linux-tdep.h (MIPS_RESTART_REGNUM): New constant.
5820 (mips_linux_restart_reg_p): New prototype.
5821 * mips-tdep.c (mips_gdbarch_init): Pass tdesc_data to the OS/ABI
5822 initialization routine.
5823 * Makefile.in (mips-linux-tdep.o, mips-linux-nat.o): Update.
5825 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
5827 * Makefile.in (mips-tdep.o): Update.
5828 * mips-tdep.c (struct register_alias, mips_o32_aliases)
5829 (mips_n32_n64_aliases, mips_register_aliases): New.
5830 (mips_register_name): Call tdesc_register_name.
5831 (mips_tdesc_register_reggroup_p): New.
5832 (mips_pseudo_register_type, value_of_mips_user_reg): New.
5833 (mips_gdbarch_init): Add target-described register support.
5834 Register aliases for register names.
5835 * target-descriptions.c (tdesc_register_name): Make global.
5836 (tdesc_register_in_reggroup_p): New function, broken out from
5837 tdesc_register_reggroup_p.
5838 (tdesc_register_reggroup_p): Use it.
5839 * target-descriptions.h (tdesc_register_name)
5840 (tdesc_register_in_reggroup_p): New prototypes.
5841 * NEWS: Correct formatting. Mention MIPS register support.
5842 * features/mips-cp0.xml, features/mips-fpu.xml,
5843 features/mips64-cp0.xml, gdb/features/mips64-fpu.xml, mips-cpu.xml,
5844 features/mips64-cpu.xml: New files.
5846 2007-06-13 Markus Deuling <deuling@de.ibm.com>
5848 * gdbarch.sh (TARGET_ADDR_BIT): Replace by gdbarch_addr_bit.
5849 * valops.c (value_cast): Likewise.
5850 * utils.c (strlen_paddr, paddr, paddr_nz, paddress): Likewise.
5851 * ui-out.c (ui_out_field_core_addr): Likewise.
5852 * tracepoint.c (tracepoints_info): Likewise.
5853 * symtab.c (print_msymbol_info): Likewise.
5854 * solib-irix.c (irix_current_sos)
5855 (irix_open_symbol_file_object): Likewise.
5856 * remote.c (build_remote_gdbarch_data): Likewise.
5857 * prologue-value.c (make_pv_area): Likewise.
5858 * procfs.c (info_mappings_callback): Likewise.
5859 * printcmd.c (print_scalar_formatted)
5860 (deprecated_print_address_numeric): Likewise.
5861 * memattr.c (mem_info_command): Likewise.
5862 * linux-nat.c (linux_nat_info_proc_cmd): Likewise.
5863 * gdbtypes.c (build_flt, gdbtypes_post_init): Likewise.
5864 * exec.c (print_section_info): Likewise.
5865 * dwarf2read.c (read_subrange_type): Likewise.
5866 * dwarf2loc.c (find_location_expression): Likewise.
5867 * dwarf2expr.c (dwarf2_read_address, unsigned_address_type)
5868 (signed_address_type, execute_stack_op): Likewise.
5869 * breakpoint.c (print_one_breakpoint, breakpoint_1): Likewise.
5870 * gdbarch.c, gdbarch.h: Regenerate.
5872 2007-06-13 Markus Deuling <deuling@de.ibm.com>
5874 * gdbarch.sh (TARGET_ARCHITECTURE): Replace by gdbarch_bfd_arch_info.
5875 * arch-utils.c (show_architecture): Likewise.
5876 * remote-mips.c (mips_open): Likewise
5877 * nto-tdep.c (nto_find_and_open_solib)
5878 (nto_init_solib_absolute_prefix): Likewise.
5879 * nto-procfs (procfs_open): Likewise.
5880 * m68hc11-tdep.c (gdb_print_insn_m68hc11): Likewise.
5881 * gcore.c (default_gcore_mach, default_gcore_arch): Likewise.
5882 * gdbarch.c, gdbarch.h: Regenerate.
5884 2007-06-13 Markus Deuling <deuling@de.ibm.com>
5886 * gdbarch.sh (TARGET_BFD_VMA_BIT): Replace by gdbarch_bfd_vma_bit.
5887 * gdbtypes.c (build_flt): Likewise.
5888 * gdbarch.c, gdbarch.h: Regenerate.
5890 2007-06-13 Markus Deuling <deuling@de.ibm.com>
5892 * gdbarch.sh (BREAKPOINT_FROM_PC): Replace by
5893 gdbarch_breakpoint_from_pc.
5894 * s390-tdep.c (s390_gdbarch_init): Likewise (comment).
5895 * remote.c (remote_insert_breakpoint)
5896 (remote_insert_hw_breakpoint): Likewise.
5897 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Likewise.
5898 * mips-tdep.c (mips_breakpoint_from_pc): Likewise (comment).
5899 * breakpoint.h (bp_target_info): Likewise (comment).
5900 * breakpoint.c (read_memory_nobpt): Likewise.
5901 * mem-break.c (default_memory_insert_breakpoint): Likewise.
5902 (symtab.h, breakpoint.h): Remove include. Remove unnecessary comment.
5903 * gdbarch.c, gdbarch.h: Regenerate.
5905 2007-06-13 Markus Deuling <deuling@de.ibm.com>
5907 * gdbarch.sh (TARGET_PTR_BIT): Replace with gdbarch_ptr_bit.
5908 * solib-svr4.c (svr4_truncate_ptr): Likewise.
5909 * solib-pa64.c (read_dynamic_info): Likewise.
5910 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets): Likewise.
5911 * solib.c (info_sharedlibrary_command): Likewise.
5912 * s390-nat.c (SUBOFF): Likewise.
5913 * p-valprint.c (pascal_val_print): Likewise.
5914 * procfs.c (info_proc_mappings): Likewise.
5915 * printcmd.c (decode_format): Likewise.
5916 * nto-tdep.c (nto_truncate_ptr): Likewise.
5917 * mips-linux-tdep.c (mips_linux_get_longjmp_target)
5918 (mips64_linux_get_longjmp_target): Likewise.
5919 * m68k-tdep.c (m68k_get_longjmp_target): Likewise.
5920 * jv-valprint.c (java_value_print): Likewise.
5921 * jv-lang.c (get_java_object_header_size): Likewise.
5922 * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Likewise.
5923 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
5924 (hppa_hpux_unwind_adjust_stub): Likewise.
5925 * gnu-v3-abi.c (build_gdb_vtable_type): Likewise.
5926 * gdbtypes.c (make_pointer_type, make_reference_type)
5927 (smash_to_memberptr_type): Likewise.
5928 * gdbarch.c, gdbarch.h: Regenerate.
5930 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
5932 * mips-tdep.c (mips_print_register): Remove unused ALL argument.
5933 (print_gp_register_row): Stop before printing a register bigger
5934 than the ABI register size.
5935 (mips_print_registers_info): Update call to mips_print_register.
5937 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
5939 * expression.h (enum exp_opcode): Document a register name for
5941 * parse.c (write_dollar_variable): Write the register name for
5943 (operator_length_standard): Expect the register name following
5945 * ada-lang.c (resolve_subexp): Likewise.
5946 * ax-gdb.c (gen_expr): Likewise.
5947 * eval.c (evaluate_subexp_standard): Likewise.
5948 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
5950 * tracepoint.c (encode_actions): Likewise.
5952 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
5954 * utils.c (set_screen_size): Use INT_MAX for default columns.
5956 2007-06-13 Ulrich Weigand <uweigand@de.ibm.com>
5958 * remote.c (remote_protocol_features): Add qXfer:spu:read and
5959 qXfer:spu:write packet types.
5961 2007-06-12 Markus Deuling <deuling@de.ibm.com>
5963 * gdbarch.sh (DEPRECATED_STACK_ALIGN): Remove.
5964 * gdbarch.c, gdbarch.h: Regenerate.
5966 2007-06-12 Markus Deuling <deuling@de.ibm.com>
5968 * gdbarch.sh (STAB_REG_TO_REGNUM): Replace by
5969 gdbarch_stab_reg_to_regnum.
5970 * stabsread.c (define_symbol): Likewise.
5971 * gdbarch.sh (ECOFF_REG_TO_REGNUM): Replace by
5972 gdbarch_ecoff_reg_to_regnum.
5973 * mdebugread.c (parse_symbol): Likewise.
5974 * i386-tdep.c (i386_gdbarch_init): Likewise (comment).
5975 * gdbarch.sh (DWARF_REG_TO_REGNUM): Replace by
5976 gdbarch_dwarf_reg_to_regnum.
5977 * gdbarch.sh (SDB_REG_TO_REGNUM): Replace by gdbarch_sdb_reg_to_regnum.
5978 * coffread.c (process_coff_symbol): Likewise.
5979 * gdbarch.sh (DWARF2_REG_TO_REGNUM): Replace by
5980 gdbarch_dwarf2_reg_to_regnum.
5981 * dwarf2loc.c (dwarf_expr_read_reg,dwarf2_evaluate_loc_desc)
5982 (locexpr_describe_location): Likewise.
5983 * dwarf2-frame.c (read_reg,execute_cfa_program,dwarf2_frame_cache)
5984 (dwarf2_frame_prev_register,dwarf2_signal_frame_this_id): Likewise.
5985 * dwarf2loc.c (DWARF2_REG_TO_REGNUM): Remove macro.
5986 * dwarf2read.c (DWARF2_REG_TO_REGNUM): Remove macro.
5987 * gdbarch.c, gdbarch.h: Regenerate.
5989 2007-06-12 Markus Deuling <deuling@de.ibm.com>
5991 * gdbarch.sh (SMASH_TEXT_ADDRESS): Replace by
5992 gdbarch_smash_text_address.
5993 * somread.c (som_symtab_read): Likewise.
5994 * elfread.c (record_minimal_symbol): Likewise.
5995 * dbxread.c (process_one_symbol): Likewise.
5996 * coffread.c (coff_symtab_read): Likewise.
5997 * gdbarch.c, gdbarch.h: Regenerate.
5999 2007-06-12 Markus Deuling <deuling@de.ibm.com>
6001 * gdbarch.sh (REGISTER_TO_VALUE): Replace by gdbarch_register_to_value.
6002 * findvar.c (value_from_register): Likewise.
6003 * gdbarch.sh (VALUE_TO_REGISTER): Replace by gdbarch_value_to_register.
6004 * valops.c (value_assign): Likewise.
6005 * gdbarch.sh (CONVERT_REGISTER_P): Replace by
6006 gdbarch_convert_register_p.
6007 * findvar.c (value_from_register): Likewise.
6008 * valops.c (value_assign): Likewise.
6009 * gdbarch.c, gdbarch.h: Regenerate.
6011 2007-06-12 Markus Deuling <deuling@de.ibm.com>
6013 * gdbarch.sh (REGISTER_SIM_REGNO): Replace by
6014 gdbarch_register_sim_regno.
6015 * sim-regno.h (sim_regno): Likewise (comment).
6016 * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register): Likewise.
6017 * gdbarch.c, gdbarch.h: Regenerate.
6019 2007-06-12 Markus Deuling <deuling@de.ibm.com>
6021 * gdbarch.sh (TARGET_VIRTUAL_FRAME_POINTER): Replace by
6022 gdbarch_virtual_frame_pointer.
6023 * tracepoint.c (encode_actions): Likewise.
6024 * dwarf2loc.c (dwarf2_loc_desc_needs_frame): Likewise.
6025 * ax-gdb.c (gen_frame_args_address, gen_frame_locals_address): Likewise.
6026 * gdbarch.c, gdbarch.h: Regenerate.
6028 2007-06-12 Markus Deuling <deuling@de.ibm.com>
6030 * gdbarch.sh (TARGET_FLOAT_BIT): Replace by gdbarch_float_bit.
6031 * p-lang.c (pascal_create_fundamental_type): Likewise.
6032 * objc-lang.c (objc_create_fundamental_type): Likewise.
6033 * mdebugread.c (_initialize_mdebugread): Likewise.
6034 * m2-lang.c (m2_create_fundamental_type)
6035 (_initialize_m2_language): Likewise.
6036 * gdbtypes.c (build_gdbtypes): Likewise.
6037 * f-lang.c (f_create_fundamental_type, build_fortran_types): Likewise.
6038 * doublest.c (floatformat_from_length): Likewise.
6039 * c-lang.c (c_create_fundamental_type): Likewise.
6040 * ada-lang.c (ada_create_fundamental_type)
6041 (ada_language_arch_info): Likewise.
6042 * gdbarch.sh (TARGET_FLOAT_FORMAT): Replace by gdbarch_float_format.
6043 * value.c (unpack_double): Likewise (comment).
6044 * gdbtypes.c (build_gdbtypes): Likewise.
6045 * doublest.c (floatformat_from_length): Likewise.
6046 * gdbarch.sh (TARGET_DOUBLE_BIT): Replace by gdbarch_double_bit.
6047 * valarith.c (value_binop): Likewise.
6048 * p-lang.c (pascal_create_fundamental_type): Likewise.
6049 * objc-lang.c (objc_create_fundamental_type): Likewise.
6050 * mdebugread.c (_initialize_mdebugread): Likewise.
6051 * m2-lang.c (m2_create_fundamental_type): Likewise.
6052 * gdbtypes.c (build_gdbtypes): Likewise.
6053 * f-lang.c (f_create_fundamental_type, build_fortran_types): Likewise.
6054 * doublest.c (floatformat_from_length): Likewise.
6055 * cris-tdep.c (cris_gdbarch_init): Likewise (comment).
6056 * c-lang.c (c_create_fundamental_type): Likewise.
6057 * ada-lex.l (processReal): Likewise.
6058 * ada-lang.c (ada_create_fundamental_type)
6059 (ada_language_arch_info): Likewise.
6060 * gdbarch.sh (TARGET_DOUBLE_FORMAT): Replace by gdbarch_double_format.
6061 * value.c (unpack_double): Likewise (comment).
6062 * gdbtypes.c (build_gdbtypes): Likewise.
6063 * doublest.c (floatformat_from_length): Likewise.
6064 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Replace by
6065 gdbarch_long_double_bit.
6066 * p-lang.c (pascal_create_fundamental_type): Likewise.
6067 * objc-lang.c (objc_create_fundamental_type): Likewise.
6068 * m2-lang.c (m2_create_fundamental_type): Likewise.
6069 * gdbtypes.c (build_gdbtypes): Likewise.
6070 * f-lang.c (f_create_fundamental_type, build_fortran_types): Likewise.
6071 * doublest.c (floatformat_from_length): Likewise.
6072 * c-lang.c (c_create_fundamental_type): Likewise.
6073 * ada-lex.l (processReal): Likewise.
6074 * ada-lang.c (ada_create_fundamental_type)
6075 (ada_language_arch_info): Likewise.
6076 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Replace by
6077 gdbarch_long_double_format.
6078 * gdbtypes.c (build_gdbtypes): Likewise.
6079 * doublest.c (floatformat_from_length): Likewise.
6080 * gdbarch.c, gdbarch.h: Regenerate.
6082 2007-06-12 Markus Deuling <deuling@de.ibm.com>
6084 * gdbarch.sh (TARGET_SHORT_BIT): Replace by gdbarch_int_bit.
6085 * ada-lang.c (ada_create_fundamental_type)
6086 (ada_language_arch_info): Likewise.
6087 * c-lang.c (c_create_fundamental_type): Likewise.
6088 * f-lang.c (f_create_fundamental_type, build_fortran_types): Likewise.
6089 * gdbtypes.c (build_gdbtypes, gdbtypes_post_init): Likewise.
6090 * m2-lang.c (m2_create_fundamental_type): Likewise.
6091 * objc-lang.c (objc_create_fundamental_type): Likewise.
6092 * p-lang.c (pascal_create_fundamental_type): Likewise.
6093 * gdbarch.sh (TARGET_INT_BIT): Replace by gdbarch_int_bit.
6094 * c-exp.y (parse_number): Likewise.
6095 * objc-exp.y (parse_number): Likewise.
6096 * ada-lex.l (processInt): Likewise.
6097 * f-exp.y (parse_number): Likewise.
6098 * p-exp.y (parse_number): Likewise.
6099 * ada-lang.c (ada_create_fundamental_type, ada_language_arch_info)
6100 (gdbtypes_post_init, build_gdbtypes): Likewise.
6101 * p-lang.c (pascal_create_fundamental_type): Likewise.
6102 * parse.c (build_parse): Likewise.
6103 * xcoffread.c (_initialize_xcoffread): Likewise.
6104 * stabsread.c (define_symbol, read_one_struct_field, read_enum_type)
6105 (read_range_type): Likewise.
6106 * objc-lang.c (objc_create_fundamental_type): Likewise.
6107 * f-lang.c (build_fortran_types, f_create_fundamental_type): Likewise.
6108 * m2-lang.c (m2_create_fundamental_type, _initialize_m2_language)
6109 (m2_create_fundamental_type): Likewise.
6110 * c-lang.c (c_create_fundamental_type): Likewise.
6111 * coffread.c (coff_read_enum_type): Likewise.
6112 * mdebugread.c (parse_symbol, _initialize_mdebugread): Likewise.
6113 * dwarf2read.c (new_symbol): Likewise.
6114 * gdbarch.sh (TARGET_LONG_BIT): Replace by gdbarch_long_bit.
6115 * c-exp.y (parse_number): Likewise.
6116 * objc-exp.y (parse_number): Likewise.
6117 * ada-lex.l (processInt): Likewise.
6118 * f-exp.y (parse_number): Likewise.
6119 * p-exp.y (parse_number): Likewise.
6120 * valarith.c (value_binop): Likewise.
6121 * symfile.c (read_target_long_array, simple_overlay_update_1): Likewise.
6122 * ada-lang.c (ada_create_fundamental_type)
6123 (ada_language_arch_info): Likewise.
6124 * gdbtypes.c (build_gdbtypes, gdbtypes_post_init): Likewise.
6125 * symfile.c (TARGET_LONG_BYTES): Likewise.
6126 * p-lang.c (pascal_create_fundamental_type): Likewise.
6127 * objc-lang.c (objc_create_fundamental_type): Likewise.
6128 * m2-lang.c (m2_create_fundamental_type): Likewise.
6129 * f-lang.c (f_create_fundamental_type): Likewise.
6130 * c-lang.c (c_create_fundamental_type): Likewise.
6131 * coffread.c (decode_base_type): Likewise.
6132 * gdbarch.sh (TARGET_LONG_LONG_BIT): Replace by gdbarch_long_long_bit.
6133 * c-exp.y (parse_number): Likewise.
6134 * objc-exp.y (parse_number): Likewise.
6135 * p-exp.y (parse_number): Likewise.
6136 * ada-lang.c (ada_create_fundamental_type)
6137 (ada_language_arch_info): Likewise.
6138 * gdbtypes.c (gdbtypes_post_init, build_gdbtypes): Likewise.
6139 * stabsread.c (read_range_type): Likewise.
6140 * p-lang.c (pascal_create_fundamental_type): Likewise.
6141 * objc-lang.c (objc_create_fundamental_type): Likewise.
6142 * m2-lang.c (m2_create_fundamental_type): Likewise.
6143 * f-lang.c (f_create_fundamental_type): Likewise.
6144 * c-lang.c (c_create_fundamental_type): Likewise.
6145 * gdbarch.c, gdbarch.h: Regenerate.
6147 2007-06-12 Andreas Schwab <schwab@suse.de>
6149 * frame-unwind.h (frame_dealloc_cache_ftype): Define.
6150 (struct frame_unwind): Add dealloc_cache.
6151 * frame.c (reinit_frame_cache): Call dealloc_cache on all caches.
6153 * libunwind-frame.h (libunwind_frame_dealloc_cache): Declare.
6154 * libunwind-frame.c (libunwind_frame_dealloc_cache): Define.
6155 (libunwind_frame_unwind): Set dealloc_cache.
6156 * ia64-tdep.c (ia64_libunwind_frame_unwind): Set dealloc_cache.
6158 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
6159 Markus Deuling <deuling@de.ibm.com>
6161 * remote.c (remote_write_qxfer): New function.
6162 (remote_xfer_partial): Add handling for TARGET_OBJECT_SPU.
6163 (remote_read_qxfer): Do not cache empty objects.
6164 (_initialize_remote): Add PACKET_qXfer_spu_read and
6165 PACKET_qXfer_spu_write.
6167 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
6169 * target.h (enum target_object): Add TARGET_OBJECT_SPU.
6170 * spu-linux-nat.c (spu_xfer_partial): Handle TARGET_OBJECT_SPU.
6172 * spu-tdep.h (SPU_NUM_PSEUDO_REGS): Add 5 pseudo registers.
6173 (enum spu_regnum): Add SPU_FPSCR_REGNUM, SPU_SRR0_REGNUM,
6174 SPU_LSLR_REGNUM, SPU_DECR_REGNUM, SPU_DECR_STATUS_REGNUM.
6175 * spu-tdep.c (infospucmdlist): New variable.
6176 (spu_register_name): Handle additional pseudo registers.
6177 (spu_register_type): Likewise.
6178 (spu_pseudo_register_read): Likewise.
6179 (spu_pseudo_register_write): Likewise.
6180 (spu_pseudo_register_read_spu): New function.
6181 (spu_pseudo_register_write_spu): Likewise.
6182 (info_spu_event_command): New function.
6183 (info_spu_signal_command): Likewise.
6184 (info_spu_mailbox_list): Likewise.
6185 (info_spu_mailbox_command): Likewise.
6186 (spu_mfc_get_bitfield): Likewise.
6187 (info_spu_dma_cmdlist): Likewise.
6188 (info_spu_dma_command): Likewise.
6189 (info_spu_proxydma_command): Likewise.
6190 (info_spu_command): Likewise.
6191 (_initialize_spu_tdep): Install "info spu" commands.
6193 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
6195 * spu-linux-nat.c (spu_proc_xfer_spu): Do not return failure when
6196 accessing non-seekable spufs files.
6198 2007-06-09 Markus Deuling <deuling@de.ibm.com>
6200 * gdbarch.sh (SKIP_TRAMPOLINE_CODE): Replace by
6201 gdbarch_skip_trampoline_code.
6202 * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Likewise (comment).
6203 * objc-lang.c (objc_skip_trampoline)
6204 (objc_submethod_helper_data): Likewise.
6205 * m32c-lang.c (m32c_skip_trampoline_code): Likewise (comment).
6206 * infrun.c (handle_inferior_event): Likewise.
6207 * gnu-v3-abi.c (gnuv3_skip_trampoline): Likewise.
6208 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Replace by
6209 gdbarch_in_solib_return_trampoline.
6210 * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Likewise (comment).
6211 * infrun.c (handle_inferior_event): Likewise.
6212 * hppa-tdep.c (hppa_stub_unwind_sniffer): Likewise.
6213 * gdbarch.c, gdbarch.h: Regenerate.
6215 2007-06-09 Markus Deuling <deuling@de.ibm.com>
6217 * gdbarch.sh (SKIP_PROLOGUE): Replace by gdbarch_skip_prologue.
6218 * symtab.c (find_function_start_sal, in_prologue): Likewise.
6219 * linespec.c (minsym_found): Likewise.
6220 * infrun.c (step_into_function): Likewise.
6221 * gdbarch.c, gdbarch.h: Regenerate.
6223 2007-06-09 Markus Deuling <deuling@de.ibm.com>
6225 * gdbarch.sh (NAME_OF_MALLOC): Replace by gdbarch_name_of_malloc.
6226 * valops.c (value_allocate_space_in_inferior): Likewise.
6227 * gdbarch.c, gdbarch.h: Regenerate.
6229 2007-06-09 Markus Deuling <deuling@de.ibm.com>
6231 * gdbarch.sh (MEMORY_INSERT_BREAKPOINT): Replace by
6232 gdbarch_memory_insert_breakpoint.
6233 * mem-break.c (memory_insert_breakpoint): Likewise.
6234 * gdbarch.sh (MEMORY_REMOVE_BREAKPOINT): Replace by
6235 gdbarch_memory_remove_breakpoint.
6236 * mem-break.c (memory_remove_breakpoint): Likewise.
6237 * gdbarch.c, gdbarch.h: Regenerate.
6239 2007-06-09 Markus Deuling <deuling@de.ibm.com>
6241 * gdbarch.sh (FETCH_TLS_LOAD_MODULE_ADDRESS): Replace by
6242 gdbarch_fetch_tls_load_module_address.
6243 * gdbarch.sh (FETCH_TLS_LOAD_MODULE_ADDRESS_P): Replace by
6244 gdbarch_fetch_tls_load_module_address_p.
6245 * gdbarch.c, gdbarch.h: Regenerate.
6247 2007-06-09 Markus Deuling <deuling@de.ibm.com>
6249 * gdbarch.sh (DECR_PC_AFTER_BREAK): Replace by
6250 gdbarch_decr_pc_after_break.
6251 * tracepoint.c (trace_dump_command): Likewise.
6252 * solib-sunos.c (sunos_solib_create_inferior_hook): Likewise.
6253 * linux-thread-db.c (check_event): Likewise.
6254 * linux-nat.c (cancel_breakpoints_callback): Likewise.
6255 * infrun.c (adjust_pc_after_break, normal_stop): Likewise.
6256 * frame.h: Likewise (comment).
6257 * dummy-frame.c (deprecated_pc_in_call_dummy): Likewise.
6258 * aix-thread.c (aix_thread_wait): Likewise.
6259 * gdbarch.c, gdbarch.h: Regenerate.
6261 2007-06-09 Markus Deuling <deuling@de.ibm.com>
6263 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS): Replace by
6264 gdbarch_address_class_type_flags.
6265 * dwarf2read.c (read_tag_pointer_type): Likewise.
6266 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS_P): Replace by
6267 gdbarch_address_class_type_flags_p.
6268 * dwarf2read.c (read_tag_pointer_type): Likewise.
6269 * gdbarch.c, gdbarch.h: Regenerate.
6271 2007-06-09 Markus Deuling <deuling@de.ibm.com>
6273 * gdbarch.sh (ADDR_BITS_REMOVE): Replace by gdbarch_addr_bits_remove.
6274 * value.c (value_as_address): Likewise (comment).
6275 * remote-mips.c (common_breakpoint): Likewise.
6276 * regcache.c (read_pc_pid): Likewise.
6277 * printcmd.c (do_one_display): Likewise.
6278 * monitor.c (monitor_write_memory, monitor_read_memory)
6279 (monitor_insert_breakpoint): Likewise.
6280 * mips-tdep.c (heuristic_proc_start): Likewise.
6281 * infrun.c (insert_step_resume_breakpoint_at_frame)
6282 (insert_step_resume_breakpoint_at_caller): Likewise.
6283 * buildsym.c (record_line): Likewise.
6284 * arm-tdep.c (arm_scan_prologue, thumb_get_next_pc)
6285 (arm_get_next_pc): Likewise.
6286 * armnbsd-nat.c (arm_supply_gregset, fetch_register, store_register)
6287 (store_regs): Likewise.
6288 * arm-linux-tdep.c (arm_linux_supply_gregset): Likewise.
6289 * arm-linux-nat.c (fetch_register, fetch_regs): Likewise.
6290 * gdbarch.c, gdbarch.h: Regenerate.
6292 2007-06-09 Markus Deuling <deuling@de.ibm.com>
6294 * gdbarch.sh (REGISTER_NAME): Replace by gdbarch_register_name.
6295 * tracepoint.c (scope_info): Likewise.
6296 * target.c (debug_print_register): Likewise.
6297 * stack.c (frame_info): Likewise.
6298 * sh-tdep.c (sh_register_reggroup_p): Likewise.
6299 * sh64-tdep.c (sh64_do_fp_register, sh64_do_register)
6300 (sh64_media_print_registers_info)
6301 (sh64_compact_print_registers_info): Likewise.
6302 * rs6000-tdep.c (rs6000_register_reggroup_p): Likewise.
6303 * remote-sim.c (gdbsim_fetch_register): Likewise.
6304 * remote.c (packet_reg): Likewise (comment).
6305 * reggroups.c (default_register_reggroup_p): Likewise.
6306 * regcache.c (regcache_dump): Likewise.
6307 * printcmd.c (address_info): Likewise.
6308 * ppc-linux-nat.c (fetch_register, store_register): Likewise.
6309 * mt-dep.c (mt_registers_info): Likewise.
6310 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Likewise (comment).
6311 * mips-tdep.c (mips_register_reggroup_p, mips_read_fp_register_single)
6312 (mips_read_fp_register_double, mips_print_fp_register)
6313 (mips_print_register, print_gp_register_row, mips_print_registers_info)
6314 (mips_register_sim_regno): Likewise.
6315 * m68klinux-nat.c (regmap, fetch_register, store_register): Likewise.
6316 * inf-ptrace.c (inf_ptrace_fetch_register)
6317 (inf_ptrace_store_register): Likewise.
6318 * infcmd.c (default_print_registers_info): Likewise.
6319 * ia64-linux-nat.c (ia64_linux_fetch_register)
6320 (ia64_linux_store_register): Likewise.
6321 * i386-linux-nat.c (fetch_register, store_register): Likewise.
6322 * i386gnu-nat.c (gnu_fetch_registers, gnu_store_registers): Likewise.
6323 * hppa-linux-nat.c (fetch_register, store_register): Likewise.
6324 * hppa-hpux-nat.c (hppa_hpux_fetch_register)
6325 (hppa_hpux_store_register): Likewise.
6326 * findvar.c (locate_var_value): Likewise.
6327 * dwarf2loc.c (locexpr_describe_location): Likewise.
6328 * dwarf2-frame.c (execute_cfa_program): Likewise.
6329 * arm-tdep.c (arm_push_dummy_call): Likewise.
6330 * arch-utils.c (legacy_register_sim_regno): Likewise.
6331 * alpha-tdep.c (alpha_register_reggroup_p): Likewise.
6332 * alpha-nat.c (fetch_osf_core_registers): Likewise.
6333 * mi/mi-main.c (mi_cmd_data_list_register_names)
6334 (mi_cmd_data_list_changed_registers, mi_cmd_data_list_register_values)
6335 (mi_cmd_data_write_register_values): Likewise.
6336 * gdbarch.c, gdbarch.h: Regenerate.
6338 2007-06-07 Daniel Jacobowitz <dan@codesourcery.com>
6340 * target-memory.c (blocks_to_erase): Correct off-by-one error.
6342 2007-06-06 Vladimir Prus <vladimir@codesourcery.com>
6344 * remote.c (process_g_packet): Don't check size.
6345 * gdbarch.sh: Remove register_bytes_ok.
6346 * gdbarch.c: Regenerated.
6347 * gdbarch.h: Regenerated.
6348 * m68k-tdep.c (REGISTER_BYTES_NOFP): Remove.
6349 (m68k_register_bytes_ok): Remove.
6350 (m68k_gdbarch_init): Don't register m68k_register_bytes_ok.
6352 2007-06-06 Andreas Schwab <schwab@suse.de>
6354 * libunwind-frame.c (unw_destroy_addr_space_p): Define.
6355 (destroy_addr_space_name): Define.
6356 (libunwind_load): Get address of destroy_addr_space function.
6357 (libunwind_frame_cache): Destroy unw_addr_space_t object before
6358 returning unsuccessfully.
6359 (libunwind_frame_sniffer): Destroy unw_addr_space_t object before
6361 (libunwind_sigtramp_frame_sniffer): Likewise.
6362 (libunwind_get_reg_special): Likewise.
6364 2007-06-06 Markus Deuling <deuling@de.ibm.com>
6366 * gdbarch.sh (FETCH_POINTER_ARGUMENT): Replace by
6367 gdbarch_fetch_pointer_argument.
6368 * objc-lang.c (OBJC_FETCH_POINTER_ARGUMENT): Likewise.
6369 * gdbarch.c, gdbarch.h: Regenerate.
6371 2007-06-06 Markus Deuling <deuling@de.ibm.com>
6373 * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Replace by
6374 gdbarch_have_nonsteppable_watchpoint.
6375 * infrun.c (handle_inferior_event, adjust_pc_after_break): Likewise.
6376 * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Replace by
6377 gdbarch_cannot_step_breakpoint.
6378 * infrun.c (resume): Likewise.
6379 * gdbarch.c, gdbarch.h: Regenerate.
6381 2007-06-06 Markus Deuling <deuling@de.ibm.com>
6383 * gdbarch.sh (FRAME_ARGS_SKIP): Replace by gdbarch_frame_args_skip.
6384 * stack.c (print_frame_args): Likewise.
6385 * gdbarch.sh (FRAME_NUM_ARGS): Replace by gdbarch_frame_num_args.
6386 * stack.c (print_args_stub, frame_info): Likewise.
6387 * gdbarch.sh (FRAME_NUM_ARGS_P): Replace by gdbarch_frame_num_args_p.
6388 * stack.c (print_args_stub, frame_info): Likewise.
6389 * gdbarch.c, gdbarch.h: Regenerate.
6391 2007-06-06 Markus Deuling <deuling@de.ibm.com>
6393 * gdbarch.sh (COFF_MAKE_MSYMBOL_SPECIAL): Replace by
6394 gdbarch_coff_make_msymbol_special.
6395 * coffread.c (coff_symtab_read): Likewise.
6396 * gdbarch.sh (ELF_MAKE_MSYMBOL_SPECIAL): Replace by
6397 gdbarch_elf_make_msymbol_special.
6398 * elfread.c (elf_symtab_read): Likewise.
6399 * mips-tdep.c (mips_elf_make_msymbol_special): Likewise (comment).
6400 * sh64-tdep.c (MSYMBOL_IS_SPECIAL): Likewise (comment).
6401 * gdbarch.c, gdbarch.h: Regenerate.
6403 2007-06-06 Markus Deuling <deuling@de.ibm.com>
6405 * gdbarch.sh (FRAME_RED_ZONE_SIZE): Replace by
6406 gdbarch_frame_red_zone_size.
6407 * gdbarch.c, gdbarch.h: Regenerate.
6409 2007-06-06 Markus Deuling <deuling@de.ibm.com>
6411 * gdbarch.sh (INNER_THAN): Replace by gdbarch_inner_than.
6412 * infcall.c (call_function_by_hand): Likewise.
6413 * gcore.c (derive_stack_segment): Likewise.
6414 * frame.c (frame_id_inner): Likewise.
6415 * arch-utils.c (core_addr_lessthan): Likewise (comment).
6416 * ada-lang.c (ensure_lval): Likewise.
6417 * gdbarch.c, gdbarch.h: Regenerate.
6419 2007-06-06 Markus Deuling <deuling@de.ibm.com>
6421 * gdbarch.sh (ADDRESS_TO_POINTER): Replace by
6422 gdbarch_address_to_pointer.
6423 * findvar.c (store_typed_address): Likewise.
6424 * gdbtypes.c (make_pointer_type): Likewise (comment).
6425 * procfs.c (procfs_address_to_host_pointer): Likewise.
6426 * std-regs.c (value_of_builtin_frame_reg): Likewise.
6427 (value_of_builtin_frame_fp_reg): Likewise.
6428 (value_of_builtin_frame_pc_reg): Likewise.
6429 * utils.c (paddress): Likewise (comment).
6430 * gdbarch.sh (POINTER_TO_ADDRESS): Replace by
6431 gdbarch_pointer_to_address.
6432 * findvar.c (extract_typed_address): Likewise.
6433 * gdbtypes.c (make_pointer_type): Likewise (comment).
6434 * valops.c (value_cast): Likewise (comment).
6435 * gdbarch.c, gdbarch.h: Regenerate.
6437 2007-06-06 Markus Deuling <deuling@de.ibm.com>
6439 * gdbarch.sh (GET_LONGJMP_TARGET): Replace by gdbarch_get_longjmp_target.
6440 * infrun.c (handle_inferior_event): Likewise.
6441 * gdbarch.sh (GET_LONGJMP_TARGET_P): Replace by
6442 gdbarch_get_longjmp_target_p.
6443 * breakpoint.c (breakpoint_re_set): Likewise.
6444 * infrun.c (handle_inferior_event): Likewise.
6445 * gdbarch.c, gdbarch.h: Regenerate.
6447 2007-06-06 Ulrich Weigand <uweigand@de.ibm.com>
6449 * hppa-hpux-tdep.c (args_for_find_stub, HP_ACC_EH_notify_hook,
6450 HP_ACC_EH_set_hook_value, HP_ACC_EH_notify_callback, HP_ACC_EH_break,
6451 HP_ACC_EH_catch_throw, HP_ACC_EH_catch_catch, __eh_notification,
6452 hp_cxx_exception_support, hp_cxx_exception_support_initialized,
6453 eh_notify_hook_addr, eh_notify_callback_addr, eh_break_addr,
6454 eh_catch_throw_addr, break_callback_sal, setup_d_pid_in_inferior,
6455 find_stub_with_shl_get, cover_find_stub_with_shl_get,
6456 initialize_hp_cxx_exception_support, child_enable_exception_callback,
6457 current_ex_event, child_get_current_exception_event): Remove.
6458 (hppa_hpux_inferior_created): Remove.
6459 (hppa_hpux_init_abi): Do not install hppa_hpux_inferior_created.
6461 * breakpoint.h (deprecated_exception_catchpoints_are_fragile): Remove.
6462 (deprecated_exception_support_initialized): Remove.
6463 * breakpoint.c (deprecated_exception_catchpoints_are_fragile): Remove.
6464 (deprecated_exception_support_initialized): Remove.
6465 (breakpoint_init_inferior): Remove handling of non-zero
6466 deprecated_exception_catchpoints_are_fragile.
6468 * symtab.h (deprecated_hp_som_som_object_present): Remove.
6469 * symtab.c (deprecated_hp_som_som_object_present): Remove.
6470 * c-typeprint.c (c_type_print_base): Remove handling of non-zero
6471 deprecated_hp_som_som_object_present.
6472 * eval.c (evaluate_subexp_standard): Likewise.
6473 * valops.c (value_cast): Likewise.
6475 * parse.c (parse_nested_classes_for_hpacc, coloncolon): Remove.
6476 * parser-defs.h (parse_nested_classes_for_hpacc): Remove.
6477 * c-exp.y (yylex): Do not call parse_nested_classes_for_hpacc.
6479 2007-06-06 Ulrich Weigand <uweigand@de.ibm.com>
6481 * objfiles.h (ImportEntry, ExportEntry): Remove types.
6482 (struct objfile): Remove import_list, import_list_size,
6483 export_list, export_list_size members.
6484 (is_in_import_list): Remove prototype.
6485 * objfiles.c (is_in_import_list): Remove.
6486 * somread.c (init_import_symbols, init_export_symbols): Remove.
6487 (som_symfile_read): Do not call init_import_symbols. Do not
6488 set objfile->export_list and objfile->export_list_size.
6490 2007-06-05 Daniel Jacobowitz <dan@codesourcery.com>
6492 * dwarf2read.c (dwarf2_symbol_mark_computed): Fix formatting.
6493 Use the original objfile if necessary.
6495 2007-06-04 Daniel Jacobowitz <dan@codesourcery.com>
6497 * defs.h (ldirname): New prototype.
6498 * dwarf2read.c (read_file_scope): Use DW_AT_name if DW_AT_comp_dir is
6500 * utils.c (ldirname): New function.
6501 * xml-tdesc.c (file_read_description_xml): Use ldirname.
6503 2007-06-01 Ulrich Weigand <uweigand@de.ibm.com>
6505 * spu-tdep.c (spu_push_dummy_call): Store stack back chain.
6507 2007-06-01 Joel Brobecker <brobecker@adacore.com>
6509 * solib-svr4.c (svr4_solib_create_inferior_hook): Remove warning.
6511 2007-06-01 Ulrich Weigand <uweigand@de.ibm.com>
6513 * irix5-nat.c (JB_ELEMENT_SIZE, get_longjmp_target): Remove.
6515 2007-06-01 Ulrich Weigand <uweigand@de.ibm.com>
6517 * ppc-linux-tdep.c (INSTR_SC, INSTR_LI_R0_0x6666, INSTR_LI_R0_0x7777,
6518 INSTR_LI_R0_NR_sigreturn, INSTR_LI_R0_NR_rt_sigreturn): Remove.
6519 (PPC_LINUX_SIGNAL_FRAMESIZE, PPC_LINUX_REGS_PTR_OFFSET,
6520 PPC_LINUX_HANDLER_PTR_OFFSET): Remove.
6521 (ppc_linux_in_sigtramp, insn_is_sigreturn,
6522 ppc_linux_at_sigtramp_return_path): Remove.
6524 2007-05-31 Markus Deuling <deuling@de.ibm.com>
6526 * xtensa-tdep.c (XTENSA_IS_ENTRY, extract_call_winsize)
6527 (xtensa_register_write_masked, xtensa_register_read_masked)
6528 (xtensa_extract_return_value, xtensa_store_return_value
6529 (xtensa_push_dummy_call, xtensa_breakpoint_from_pc): Replace
6530 TARGET_BYTE_ORDER by gdbarch_byte_order.
6531 * sh-tdep.c (sh_breakpoint_from_pc, gdb_print_insn_sh)
6532 (sh_justify_value_in_reg, sh_next_flt_argreg, sh_push_dummy_call_fpu)
6533 (sh_extract_return_value_fpu, sh_store_return_value_fpu): Likewise.
6534 * sh64-tdep.c (sh64_breakpoint_from_pc, gdb_print_insn_sh64)
6535 (sh64_push_dummy_call, sh64_extract_return_value)
6536 (sh64_store_return_value, sh64_register_convert_to_virtual)
6537 (sh64_register_convert_to_raw, sh64_pseudo_register_read)
6538 (sh64_pseudo_register_write, sh64_do_fp_register)
6539 (sh64_frame_prev_register): Likewise.
6540 * score-tdep.c (score_print_insn, score_breakpoint_from_pc)
6541 (score_return_value, score_push_dummy_call, score_fetch_inst): Likewise.
6542 * rs6000-tdep.c (rs6000_breakpoint_from_pc, rs6000_push_dummy_call)
6543 (e500_move_ev_register,gdb_print_insn_powerpc): Likewise.
6544 * remote-m32r-sdi.c (m32r_resume, m32r_wait): Likewise.
6545 * ppc-linux-nat.c (store_register): Likewise.
6546 * nto-tdep.c (nto_find_and_open_solib)
6547 (nto_init_solib_absolute_prefix): Likewise.
6548 * mips-tdep.c (mips_pseudo_register_read, mips_pseudo_register_write)
6549 (mips_convert_register_p, mips_eabi_push_dummy_call)
6550 (mips_n32n64_push_dummy_call, mips_n32n64_return_value)
6551 (mips_o32_push_dummy_call, mips_o32_return_value)
6552 (mips_o64_push_dummy_call, mips_o64_return_value, mips_o64_return_value)
6553 (mips_read_fp_register_single, mips_read_fp_register_double)
6554 (mips_print_register, print_gp_register_row, gdb_print_insn_mips)
6555 (mips_breakpoint_from_pc): Likewise.
6556 * mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset): Likewise.
6557 * mips-linux-tdep.c (mips64_supply_fpregset, mips64_fill_fpregset)
6558 (mips_linux_o32_sigframe_init): Likewise.
6559 * m32r-tdep.c (m32r_memory_insert_breakpoint)
6560 (m32r_memory_remove_breakpoint, m32r_breakpoint_from_pc): Likewise.
6561 * libunwind-frame.c (libunwind_frame_cache, libunwind_frame_sniffer)
6562 (libunwind_sigtramp_frame_sniffer, libunwind_get_reg_special): Likewise.
6563 * iq2000-tdep.c (iq2000_breakpoint_from_pc): Likewise.
6564 * coffread.c (process_coff_symbol): Likewise.
6565 * arm-tdep.c (convert_from_extended, convert_to_extended)
6566 (gdb_print_insn_arm): Likewise.
6568 2007-05-31 Markus Deuling <deuling@de.ibm.com>
6570 * gdbarch.sh (NUM_REGS): Replace by gdbarch_num_regs.
6571 * i386-tdep.c (i386_dbx_reg_to_regnum)
6572 (i386_svr4_reg_to_regnum): Likewise.
6573 * inf-ptrace.c (inf_ptrace_fetch_registers)
6574 (inf_ptrace_store_registers): Likewise.
6575 * corelow.c (get_core_registers): Likewise.
6576 * i386-linux-nat.c (supply_gregset, fill_gregset)
6577 (i386_linux_fetch_inferior_registers)
6578 (i386_linux_store_inferior_registers): Likewise.
6579 * remote.c (init_remote_state,packet_reg_from_regnum)
6580 (packet_reg_from_pnum,process_g_packet,remote_fetch_registers)
6581 (remote_prepare_to_store,store_registers_using_G)
6582 (remote_store_registers,remote_arch_state): Likewise.
6583 * tracepoint.c (encode_actions): Likewise.
6584 * mi/mi-main.c (mi_cmd_data_list_register_names)
6585 (mi_cmd_data_list_changed_registers,mi_cmd_data_list_register_values)
6586 (mi_cmd_data_write_register_values): Likewise.
6587 * tui/tui-regs.c (tui_show_register_group)
6588 (tui_show_register_group): Likewise.
6589 * xtensa-tdep.h (FP_ALIAS): Likewise.
6590 * xtensa-tdep.c (xtensa_register_name,xtensa_register_type)
6591 (xtensa_reg_to_regnum,xtensa_pseudo_register_read)
6592 (xtensa_pseudo_register_write,xtensa_register_reggroup_p): Likewise.
6593 * win32-nat.c (do_win32_fetch_inferior_registers)
6594 (do_win32_store_inferior_registers,fetch_elf_core_registers
6595 * user-regs.h: Likewise (comment).
6596 * user-regs.c (user_reg, user_reg_map_name_to_regnum): Likewise.
6597 * trad-frame.c (trad_frame_alloc_saved_regs): Likewise.
6598 * target-descriptions.h: Likewise (comment).
6599 * target-descriptions.c (tdesc_use_registers): Likewise (comment).
6600 * target.c (debug_print_register): Likewise.
6601 * stack.c (frame_info): Likewise.
6602 * stabsread.c (define_symbol): Likewise.
6603 * sh64-tdep.c (sh64_do_pseudo_register,sh64_print_register)
6604 (sh64_media_print_registers_info)
6605 (sh64_compact_print_registers_info): Likewise.
6606 * rs6000-tdep.c (rs6000_register_sim_regno): Likewise.
6607 * rs6000-nat.c (fetch_register,store_register): Likewise.
6608 * remote-sim.c (one2one_register_sim_regno,gdbsim_fetch_register)
6609 (gdbsim_fetch_register,gdbsim_store_register): Likewise.
6610 * remote-mips.c (mips_fetch_registers,mips_store_registers): Likewise.
6611 * remote-m32r-sdi.c (m32r_fetch_registers)
6612 (m32r_store_registers): Likewise.
6613 * reggroups.c (default_register_reggroup_p): Likewise.
6614 * regcache.c (init_regcache_descr,register_size,regcache,regcache_save)
6615 (regcache_restore,regcache_dump): Likewise.
6616 * monitor.c (monitor_fetch_registers,monitor_store_registers): Likewise.
6617 * mips-tdep.c (mips_xfer_register,mips_register_name)
6618 (mips_register_reggroup_p,mips_pseudo_register_read)
6619 (mips_pseudo_register_write,mips_convert_register_p,mips_register_type)
6620 (mips_unwind_pc,mips_unwind_sp,mips_unwind_dummy_id,set_reg_offset)
6621 (mips16_scan_prologue,mips_insn16_frame_cache,reset_saved_regs)
6622 (mips32_scan_prologue,mips_insn32_frame_cache,read_next_frame_reg)
6623 (mips_n32n64_return_value,mips_o32_return_value,mips_o64_return_value)
6624 (print_gp_register_row,mips_print_registers_info)
6625 (mips_stab_reg_to_regnum,mips_dwarf_dwarf2_ecoff_reg_to_regnum)
6626 (mips_register_sim_regno): Likewise.
6627 * mips-linux-tdep.c (mips_linux_o32_sigframe_init)
6628 (mips_linux_n32n64_sigframe_init): Likewise.
6629 * mips-linux-nat.c (mips_linux_register_addr)
6630 (mips64_linux_register_addr): Likewise.
6631 * findvar.c (value_of_register): Likewise.
6632 * infcmd.c (default_print_registers_info,registers_info)
6633 (print_vector_info,print_float_info): Likewise.
6634 * mips64obsd-tdep.c (mips64obsd_sigframe_init): Likewise.
6635 * inf-child.c (inf_child_fetch_inferior_registers): Likewise.
6636 * m68k-tdep.c (m68k_dwarf_reg_to_regnum): Likewise.
6637 * m68hc11-tdep.c (m68hc11_frame_unwind_cache(: Likewise.
6638 * m32r-tdep.c (m32r_frame_unwind_cache): Likewise.
6639 * ia64-linux-nat.c (ia64_register_addr,ia64_cannot_fetch_register)
6640 (ia64_cannot_store_register,ia64_linux_fetch_registers)
6641 (ia64_linux_store_registers): Likewise.
6642 * hpux-thread.c (hpux_thread_fetch_registers)
6643 (hpux_thread_store_registers): Likewise.
6644 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM,E_PSEUDO_EXR_REGNUM)
6645 (h8300_init_frame_cache,h8300_frame_cache,h8300_frame_prev_register)
6646 (h8300_register_type): Likewise.
6647 * dwarf2-frame.c (dwarf2_frame_cache)
6648 (dwarf2_frame_state_alloc_regs): Likewise.
6649 * cris-tdep.c (cris_register_size,cris_cannot_fetch_register)
6650 (cris_cannot_store_register,crisv32_cannot_fetch_register)
6651 (crisv32_cannot_store_register,cris_register_name): Likewise.
6652 * avr-tdep.c (avr_frame_unwind_cache): Likewise.
6653 * arch-utils.c (legacy_register_sim_regno)
6654 (legacy_virtual_frame_pointer): Likewise.
6655 * arm-tdep.c (arm_make_prologue_cache,arm_register_sim_regno):Likewise.
6656 * arm-tdep.h: Likewise (comment).
6657 * frv-tdep.c (frv_register_sim_regno): Likewise.
6658 * m68klinux-nat.c (old_fetch_inferior_registers)
6659 (old_store_inferior_registers): Likewise.
6660 * m32c-tdep.c (m32c_virtual_frame_pointer): Likewise.
6661 * irix5-nat.c (fetch_core_registers): Likewise.
6662 * hppa-tdep.c (hppa_frame_cache): Likewise.
6663 * hppa-linux-nat.c (hppa_linux_register_addr)
6664 (hppa_linux_fetch_inferior_registers)
6665 (hppa_linux_store_inferior_registers): Likewise.
6666 * hppa-hpux-nat.c (hppa_hpux_fetch_inferior_registers)
6667 (hppa_hpux_store_inferior_registers): Likewise.
6668 * amd64-nat.c (amd64_native_gregset_reg_offset)
6669 (amd64_supply_native_gregset,amd64_collect_native_gregset): Likewise.
6670 * dbug-rom.c (dbug_regname): Likewise.
6671 * m68hc11-tdep.c (m68hc11_frame_unwind_cache)
6672 (HARD_PAGE_REGNUM (comment)): Likewise.
6673 * gdbarch.sh (NUM_PSEUDO_REGS): Replace by gdbarch_num_pseudo_regs.
6674 * i386-tdep.c (i386_dbx_reg_to_regnum)
6675 (i386_svr4_reg_to_regnum): Likewise.
6676 * mi/mi-main.c (mi_cmd_data_list_register_names)
6677 (mi_cmd_data_list_changed_registers,mi_cmd_data_list_register_values)
6678 (mi_cmd_data_write_register_values): Likewise.
6679 * gdbarch.c, gdbarch.h: Regenerate.
6680 * tui/tui-regs.c (tui_show_register_group): Likewise.
6681 * xtensa-tdep.h (FP_ALIAS): Likewise.
6682 * user-regs.h: Likewise (comment).
6683 * user-regs.c (user_reg, user_reg_map_name_to_regnum): Likewise.
6684 * trad-frame.c (trad_frame_alloc_saved_regs): Likewise.
6685 * target-descriptions.h: Likewise (comment).
6686 * target.c (debug_print_register): Likewise.
6687 * stack.c (frame_info): Likewise.
6688 * stabsread.c (define_symbol): Likewise.
6689 * sh64-tdep.c (sh64_print_register,sh64_media_print_registers_info)
6690 (sh64_compact_print_registers_info): Likewise.
6691 * rs6000-tdep.c (rs6000_register_sim_regno): Likewise.
6692 * regcache.c (init_regcache_descr,register_size,regcache,regcache_save
6693 (regcache_restore,regcache_dump): Likewise.
6694 * mips-tdep.c (print_gp_register_row,mips_print_registers_info)
6695 (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
6696 (mips_stab_reg_to_regnum): Likewise.
6697 * findvar.c (value_of_register): Likewise.
6698 * infcmd.c (default_print_registers_info,registers_info)
6699 (print_vector_info,print_float_info): Likewise.
6700 * m68k-tdep.c (m68k_dwarf_reg_to_regnum): Likewise.
6701 * h8300-tdep.c (h8300_register_type): Likewise.
6702 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
6703 * frame.h (SIZEOF_FRAME_SAVED_REGS): Likewise.
6704 * xtensa-tdep.c (xtensa_register_type,xtensa_reg_to_regnum)
6705 (xtensa_pseudo_register_read,xtensa_pseudo_register_write): Likewise.
6706 * parse.c: Remove comment.
6707 * gdbarch.c, gdbarch.h: Regenerate
6709 2007-05-31 Markus Deuling <deuling@de.ibm.com>
6711 * gdbarch.sh (CANNOT_FETCH_REGISTER): Replace by
6712 gdbarch_cannot_fetch_register.
6713 * alpha-nat.c (fetch_osf_core_registers): Likewise.
6714 * hppa-linux-nat.c (fetch_register): Likewise.
6715 * inf-ptrace.c (inf_ptrace_fetch_register): Likewise.
6716 * m68klinux-nat.c (fetch_register): Likewise.
6717 * mipsnbsd-tdep.c (mipsnbsd_supply_reg, mipsnbsd_supply_fpreg):
6719 * gdbarch.sh (CANNOT_STORE_REGISTER): Replace by
6720 gdbarch_cannot_store_register.
6721 * hppa-linux-nat.c (store_register): Likewise.
6722 * inf-ptrace.c (inf_ptrace_store_register): Likewise.
6723 * regcache.c (regcache_raw_write): Likewise.
6724 * m68klinux-nat.c (store_register): Likewise.
6725 * mipsnbsd-tdep.c (mipsnbsd_fill_reg, mipsnbsd_fill_fpreg): Likewise.
6726 * gdbarch.c, gdbarch.h: Regenerate.
6728 2007-05-31 Markus Deuling <deuling@de.ibm.com>
6730 * gdbarch.sh (TARGET_OSABI): Replace by gdbarch_osabi.
6731 * gdbarch.c, gdbarch.h: Regenerate.
6733 2007-05-31 Markus Deuling <deuling@de.ibm.com>
6735 * gdbarch.sh (TARGET_CHAR_SIGNED): Replace by gdbarch_char_signed.
6736 * gdbtypes.c (build_gdbtypes, gdbtypes_post_init): Likewise.
6737 * gdbarch.c, gdbarch.h: Regenerate.
6739 2007-05-31 Markus Deuling <deuling@de.ibm.com>
6741 * gdbarch.sh (TARGET_BYTE_ORDER): Replace by gdbarch_byte_order.
6742 * ax-gdb.c (gen_bitfield_ref): Likewise.
6743 * mi/mi-main.c (get_register): Likewise.
6744 * findvar.c (default_value_from_register, extract_signed_integer)
6745 (extract_unsigned_integer, extract_long_unsigned_integer)
6746 (store_signed_integer, store_unsigned_integer): Likewise.
6747 * regcache.c (regcache_dump): Likewise.
6748 * value.c (lookup_internalvar, value_of_internalvar)
6749 (set_internalvar): Likewise.
6751 * valprint.c (print_binary_chars, print_octal_chars)
6752 (print_decimal_chars, print_hex_chars, print_char_chars): Likewise.
6753 * infcmd.c (default_print_registers_info): Likewise.
6754 * arch-utils.c (selected_byte_order, show_endian): Likewise.
6755 * stabsread.c (define_symbol): Likewise.
6756 * doublest.c (floatformat_from_length, floatformat_from_type)
6757 (extract_typed_floating, store_typed_floating): Likewise.
6758 * gdbarch.c, gdbarch.h: Regenerate.
6760 2007-05-31 Markus Deuling <deuling@de.ibm.com>
6762 * gdbarch.sh (CALL_DUMMY_LOCATION): Replace by
6763 gdbarch_call_dummy_location.
6764 * infcall.c (call_function_by_hand): Likewise.
6765 * inferior.h: Change comment.
6766 * arch-utils.c: Change comment.
6767 * gdbarch.c, gdbarch.h: Regenerate.
6769 2007-05-28 Joel Brobecker <brobecker@adacore.com>
6771 * solib-aix5.c: Delete.
6772 * Makefile.in (solib-aix5.o): Delete rule.
6774 2007-05-23 Daniel Jacobowitz <dan@codesourcery.com>
6776 * breakpoint.h (enum bpstat_what_main_action): Remove
6777 BPSTAT_WHAT_THROUGH_SIGTRAMP.
6778 * infrun.c (process_event_stop_test): Do not check for it.
6780 2007-05-22 Chris Dearman <chris@mips.com>
6781 Maciej W. Rozycki <macro@mips.com>
6783 * ser-unix.c (show_serial_hwflow): New function.
6784 (hardwire_raw): Add hardware flow control support.
6785 (_initialize_ser_hardwire): Add "set/show remoteflow".
6786 * Makefile.in (ser-unix.o): Depend on $(gdbcmd_h).
6787 * NEWS: Document the new command.
6789 2007-05-21 Ulrich Weigand <uweigand@de.ibm.com>
6791 * config/i386/tm-linux.h (sys_quotactl): Do not define.
6792 * configure.ac (sys_quotactl, START_INFERIOR_TRAPS_EXPECTED): Do not
6793 define for i[[3456]]86-*-linux* native configurations.
6794 * config.in, configure: Regenerate.
6796 2007-05-19 Joel Brobecker <brobecker@adacore.com>
6798 * rs6000-nat.c (xcoff_relocate_symtab): Do nothing if debugging
6799 a core file. Add comment in the function description.
6801 2007-05-18 Caroline Tice <ctice@apple.com>
6803 * c-valprint.c (c_value_print): If the initialized field of the
6804 value struct is 0, print out "[uninitialized]" before the value.
6805 * dwarf2expr.c (execute_stack_op): Initialize ctx->initialized field;
6806 allow DW_OP_GNU_uninit as legal op following a DW_OP_reg op or a
6807 DW_OP_regx op; add case for DW_OP_GNU_uninit and update
6808 ctx->initialized appropriately. Verify no location op follows
6810 * dwarf2expr.h (struct dwarf_expr_context): New field, initialized.
6811 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Add call to
6812 set_value_initialized.
6813 * dwarf2read.c (dwarf_stack_op_name): Add case for DW_OP_GNU_uninit.
6814 (decode_locdesc): Add case for DW_OP_GNU_uninit.
6815 * value.c (struct value): New field, initialized.
6816 (allocate_value): Initialize new field.
6817 (set_value_initialized): New function.
6818 (value_initialized): New function.
6819 * value.h (value_initialized): New extern declaration.
6820 (set_value_initialized): Likewise.
6822 2007-05-18 Caroline Tice <ctice@apple.com>
6824 * MAINTAINERS (Write After Approval): Add self.
6826 2007-05-17 Joel Brobecker <brobecker@adacore.com>
6828 * gdbtypes.c (make_reference_type): Preserve the type chain
6829 and set the length of all the variants of the pointer type.
6831 2007-05-17 Joel Brobecker <brobecker@adacore.com>
6833 * gdbtypes.c (make_pointer_type): Preserve the pointer type chain
6834 and set the length of all the variants of the pointer type.
6836 2007-05-17 Maciej W. Rozycki <macro@mips.com>
6838 * mips-tdep.c (mips_n32n64_push_dummy_call): Fix and reformat a
6840 (mips_o64_push_dummy_call): Reformat a comment.
6842 2007-05-17 Qinwei <qinwei@sunnorth.com.cn>
6844 * score-tdep.c (score_frame_cache->fp, score_analyze_prologue)
6845 (score_prologue_frame_base_address): Return fp to keep gdb print
6846 local variables correctly when debugging information is stabs.
6848 (score_analyze_prologue): For software watchpoint, fetch all the
6849 instructions from range [startaddr, pc] once and identify them locally
6850 to reduce memory access.
6851 (score_malloc_and_get_memblock, score_free_memblock)
6852 (score_adjust_memblock_ptr): New functions.
6853 (score_fetch_inst): Fetch single instruction or mutiple instructions.
6855 (score_target_can_use_watch, score_stopped_by_watch)
6856 (score_target_insert_watchpoint, score_target_remove_watchpoint)
6857 (score_target_insert_hw_breakpoint, score_target_remove_hw_breakpoint):
6858 New functions for remote & local hw-watchpoint and hw-breakpoint.
6860 2007-05-16 Alfred M. Szmidt <ams@gnu.org>
6862 * reply_mig_hack.awk: Check for `auto const mach_msg_type_t'
6863 declarations as well.
6865 2007-05-16 Ulrich Weigand <uweigand@de.ibm.com>
6867 * config/arm/embed.mt (DEPRECATED_TM_FILE): Set to tm-arm.h.
6868 * config/arm/tm-embed.h: Delete file.
6870 * arm-tdep.h (arm_software_single_step): Declare.
6871 * arm-tdep.c (arm_software_single_step): Make global.
6872 (arm_gdbarch_init): Move set_gdbarch_software_single_step call
6874 * arm-linux-tdep.c (arm_linux_init_abi): ... here ...
6875 * armnbsd-tdep.c (arm_netbsd_init_abi_common): ... here ...
6876 * armobsd-tdep.c (armobsd_init_abi): ... here ...
6877 * arm-wince-tdep.c (arm_wince_init_abi): ... and here.
6879 * arm-tdep.c (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT): No longer
6880 allow defines to be overriden by TM file.
6881 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Likewise. Also,
6882 change default to {0xbe,0xbe}.
6883 * armobsd-tdep.c (arm_obsd_thumb_le_breakpoint,
6884 arm_obsd_thumb_be_breakpoint): New global variables.
6885 (armobsd_init_abi): Override tdep->thumb_breakpoint and
6886 tdep->thumb_breakpoint_size.
6887 * arm-wince-tdep.c (arm_wince_thumb_le_breakpoint): New variable.
6888 (arm_wince_init_abi): Override tdep->thumb_breakpoint and
6889 tdep->thumb_breakpoint_size.
6891 * arm-tdep.c (arm_gdbarch_init): Add set_gdbarch_skip_trampoline_code.
6893 2007-05-16 Daniel Jacobowitz <dan@codesourcery.com>
6895 * NEWS: Mention removed "set mips stack-arg-size" and "set mips
6898 * mips-tdep.c (MIPS32_REGSIZE, MIPS64_REGSIZE): New constants.
6899 (size_auto, size_32, size_64, size_enums, mips_abi_regsize_string)
6900 (mips_stack_argsize_string, mips_stack_argsize): Delete.
6901 (mips_abi_regsize): Simplify.
6902 (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call)
6903 (mips_n32n64_return_value, mips_o32_push_dummy_call)
6904 (mips_o32_return_value, mips_o64_push_dummy_call)
6905 (mips_o64_return_value): Propogate constant register sizes. Use the
6906 ABI register size instead of mips_stack_argsize.
6907 (mips_dump_tdep): Don't print mips_stack_argsize.
6908 (_initialize_mips_tdep): Remove saved-gpreg-size and stack-arg-size
6911 2007-05-16 Daniel Jacobowitz <dan@codesourcery.com>
6913 * config/mips/linux.mt (DEPRECATED_TM_FILE): Delete.
6914 * config/mips/tm-linux.h: Delete.
6915 * mips-linux-tdep.c (mips_svr4_so_ops): New.
6916 (mips_linux_in_dynsym_resolve_code): Make static. Use
6917 svr4_in_dynsym_resolve_code.
6918 (mips_linux_init_abi): Initialize mips_svr4_so_ops. Call
6920 * solib-svr4.c (svr4_in_dynsym_resolve_code, svr4_so_ops): Make
6922 * solib-svr4.h (svr4_so_ops, svr4_in_dynsym_resolve_code): Declare.
6923 * Makefile.in (mips-linux-tdep.o): Update.
6924 * solib.c (set_solib_ops): New.
6925 (current_target_so_ops): Update comment.
6926 * solib.h (set_solib_ops): New prototype.
6928 2007-05-16 Chris Dearman <chris@mips.com>
6930 * printcmd.c (do_examine): Fix typos in a comment.
6932 2007-05-16 Richard Sandiford <richard@codesourcery.com>
6934 * configure.ac: Allow sysroots to be relocated under $prefix as
6935 well as $exec_prefix.
6936 * configure: Regenerate.
6938 2007-05-14 Ulrich Weigand <uweigand@de.ibm.com>
6940 * hppa-hpux-tdep.c: Do not include <dl.h> or <machine/save_state.h>.
6941 (offsetof): Do not define.
6942 (find_stub_with_shl_get): Use numerical value 3 instead of
6943 symbolic value TYPE_PROCEDURE.
6945 2007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
6947 * gdb_proc_service.h (paddr_t): Delete typedef.
6948 * proc-service.c (ps_addr_to_core_addr, core_addr_to_ps_addr): New.
6949 (ps_xfer_memory): Take a psaddr_t. Use ps_addr_to_core_addr.
6950 (ps_pglobal_lookup): Take a psaddr_t *. Use core_addr_to_ps_addr.
6951 (ps_pdread, ps_pdwrite, ps_ptread, ps_ptwrite): Take a psaddr_t.
6952 * sol-thread.c (gdb_ps_addr_t): Use psaddr_t instead of paddr_t.
6953 * Makefile.in (proc-service.o): Update.
6955 2007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
6957 * Makefile.in (mips-tdep.o): Update.
6958 * mips-tdep.c (mips_gdbarch_init): Register the dwarf2 CFI
6961 2007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
6963 * dwarf2-frame.c (dwarf2_frame_prev_register): Use pack_long
6964 instead of store_typed_address.
6965 * value.c (pack_long): New.
6966 (value_from_longest): Use it.
6967 * value.h (pack_long): New prototype.
6969 2007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
6971 * dwarf2-frame.c (read_encoded_value): Correct typo. Use
6972 DW_EH_PE_signed if appropriate.
6974 2007-05-14 Paul Brook <paul@codesourcery.com>
6975 Daniel Jacobowitz <dan@codesourcery.com>
6977 * dwarf2read.c (dwarf2_debug_line_missing_file_complaint): New
6979 (dwarf_decode_lines): Check for line info without a file.
6981 2007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
6983 * linux-thread-db.c (thread_db_pid_to_str): Print thread IDs
6986 2007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
6988 * jv-exp.y (push_fieldnames): Use STRUCTOP_PTR instead of
6990 * jv-lang.c (evaluate_subexp_java): Handle STRUCTOP_PTR instead of
6992 * jv-typeprint.c (java_print_type): Do not crash on NULL varstring.
6994 2007-05-14 Ulrich Weigand <uweigand@de.ibm.com>
6996 * gdbarch.sh (read_sp): Remove.
6997 * gdbarch.c, gdbarch.h: Regenerate.
6998 * frame.c (frame_sp_unwind): Do not call TARGET_READ_SP.
7000 * avr-tdep.c (avr_read_sp): Remove.
7001 (avr_unwind_sp): New function.
7002 (avr_gdbarch_init): Install unwind_sp instead of read_sp callback.
7003 * mips-tdep.c (mips_read_sp): Remove.
7004 (mips_unwind_sp): New function.
7005 (mips_gdbarch_init): Install unwind_sp instead of read_sp callback.
7006 * score-tdep.c (score_read_unsigned_register): Remove.
7007 (score_read_sp): Remove.
7008 (score_unwind_sp): New function.
7009 (score_gdbarch_init): Install unwind_sp instead of read_sp callback.
7011 2007-05-14 Maxim Grigoriev <maxim2405@gmail.com>
7013 * buildsym.c (start_subfile): Handle absolute pathnames
7014 while comparing subfile names.
7016 2007-05-13 Ulrich Weigand <uweigand@de.ibm.com>
7018 * hppa-hpux-tdep.c: Include "regcache.h".
7019 * hppa-linux-tdep.c: Likewise.
7020 * hppa-tdep.c: Include "gdb_stdint.h".
7021 (find_unwind_entry): Cast host pointer to uintptr_t before passing
7023 * Makefile.in: Update dependencies.
7025 2007-05-13 Ulrich Weigand <uweigand@de.ibm.com>
7027 * blockframe.c: Remove obsolete comments.
7028 * alpha-nat.c (fetch_osf_core_registers): Update comment.
7029 * arm-tdep.h (enum gdb_regnum): Remove obsolete part of comment.
7030 * hppa-tdep.h (enum hppa_regnum): Likewise.
7031 * mips-tdep.h: Likewise.
7032 * m68hc11-tdep.c: Likewise.
7034 2007-05-13 Ulrich Weigand <uweigand@de.ibm.com>
7036 * inferior.h (read_sp): Remove prototype.
7037 * regcache.c (read_sp): Remove.
7038 * gcore.c (derive_stack_segment): Use get_frame_sp instead of read_sp.
7039 * infcall.c (call_function_by_hand): Likewise.
7040 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Use regcache instead
7042 * rs6000-tdep.c (rs6000_push_dummy_call): Likewise.
7044 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
7046 * i386-linux-nat.c (i386_linux_resume): Use regcache functions
7047 instead of read_register and read_register_pid.
7049 * ia64-linux-nat.c (enable_watchpoints_in_psr): Use REGCACHE
7050 argument instead of PTID. Use regcache functions instead of
7052 (ia64_linux_insert_watchpoint): Update call.
7053 (ia64_linux_stopped_data_address): Use regcache functions
7054 instead of read_register_pid and write_register_pid.
7056 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
7058 * libunwind-frame.h (struct regcache): Add forward declaration.
7059 (libunwind_get_reg_special): Add REGCACHE argument.
7060 * libunwind-frame.c (libunwind_get_reg_special): Add REGCACHE
7061 argument. Pass it to unw_init_remote_p.
7063 * ia64-tdep.c (ia64_pseudo_register_read): Pass regcache to
7064 libunwind_get_reg_special.
7065 (ia64_access_reg): Remove "write" case.
7066 (ia64_access_fpreg): Likewise. Read from next_frame passed
7067 as callback argument instead of from current_regcache.
7068 (ia64_access_rse_reg): Remove "write" case. Read from regcache
7069 passed as callback argument instead of from current_regcache.
7070 (ia64_access_rse_fpreg): New function.
7071 (ia64_unw_rse_acce): Use it instead of ia64_access_fpreg.
7073 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
7075 * NEWS: Mention SPU overlay support.
7077 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
7079 * spu-tdep.c (spu_frame_unwind_cache): Add comment.
7081 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
7083 * breakpoint.c (remove_breakpoint): Do not remove software
7084 breakpoints in unmapped overlay sections.
7086 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
7088 * spu-tdep.c: Include "observer.h".
7089 (spu_frame_unwind_cache): Unwind PC through overlay return stubs.
7090 (spu_overlay_data): New variable.
7091 (struct spu_overlay_table): New type.
7092 (spu_get_overlay_table, spu_overlay_update_osect, spu_overlay_update,
7093 spu_overlay_new_objfile): New functions.
7094 (spu_gdbarch_init): Install spu_overlay_update.
7095 (_initialize_spu_tdep): Register spu_overlay_new_objfile,
7096 allocate spu_overlay_data objfile data.
7098 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
7100 * gdbarch.sh (overlay_update): New gdbarch function.
7101 (struct obj_section): Add forward declaration.
7102 * gdbarch.c, gdbarch.h: Regenerate.
7104 * symfile.c (simple_overlay_update): Make global.
7105 (target_overlay_update): Remove variable.
7106 (overlay_is_mapped): Call gdbarch_overlay_update instead of
7107 target_overlay_update.
7108 (overlay_load_command): Likewise.
7109 * symfile.h (struct obj_section): Add forward declaration.
7110 (simple_overlay_update): Add prototype.
7112 * m32r-tdep.c (m32r_gdbarch_init): Install simple_overlay_update.
7114 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
7116 * observer.sh: Add "struct objfile" forward declaration.
7117 * target.h (deprecated_target_new_objfile_hook): Remove.
7118 * symfile.c (deprecated_target_new_objfile_hook): Remove.
7119 (clear_symtab_users): Call observer_notify_new_objfile.
7120 (symbol_file_add_with_addrs_or_offsets): Likewise.
7121 * rs6000-nat.c: Include "observer.h".
7122 (vmap_ldinfo): Call observer_notify_new_objfile.
7123 (xcoff_relocate_core): Likewise.
7124 * remote.c (remote_new_objfile_chain): Remove.
7125 (remote_new_objfile): Do not call remote_new_objfile_chain.
7126 (_initialize_remote): Use observer_attach_new_objfile.
7127 * tui/tui-hooks.c (tui_target_new_objfile_chain): Remove.
7128 (tui_new_objfile_hook): Do not call tui_target_new_objfile_chain.
7129 (_initialize_tui_hooks): Use observer_attach_new_objfile.
7130 * aix-thread.c: Include "observer.h".
7131 (target_new_objfile_chain): Remove.
7132 (new_objfile): Do not call target_new_objfile_chain.
7133 (_initialize_aix_thread): Use observer_attach_new_objfile.
7134 * hpux-thread.c: Include "observer.h"
7135 (target_new_objfile_chain): Remove.
7136 (hpux_thread_new_objfile): Make static. Do not call
7137 target_new_objfile_chain.
7138 (_initialize_hpux_thread): Use observer_attach_new_objfile.
7139 * linux-thread-db.c: Include "observer.h".
7140 (target_new_objfile_chain): Remove.
7141 (thread_db_new_objfile): Do not call target_new_objfile_chain.
7142 (_initialize_thread_db): Use observer_attach_new_objfile.
7143 * sol-thread.c: Include "observer.h".
7144 (target_new_objfile_chain): Remove.
7145 (sol_thread_new_objfile): Make static. Do not call
7146 target_new_objfile_chain.
7147 (_initialize_sol_thread): Use observer_attach_new_objfile.
7148 * Makefile.in (aix-thread.o, hpux-thread.o, linux-thread-db.o,
7149 rs6000-nat.o, sol-thread.o, tui-hooks.o): Add dependency on
7152 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
7154 * gdbarch.sh (remote_translate_xfer_address): Remove.
7155 * gdbarch.h, gdbarch.c: Regenerate.
7156 * arch-utils.c (generic_remote_translate_xfer_address): Remove.
7157 * arch-utils.h (generic_remote_translate_xfer_address): Remove.
7158 * remote.c (remote_write_bytes_aux, remote_read_bytes): Do not
7159 call gdbarch_remote_translate_xfer_address.
7160 * frv-tdep.c (frv_gdbarch_init): Do not call
7161 set_gdbarch_remote_translate_xfer_address.
7162 * ia64-tdep.c (ia64_remote_translate_xfer_address): Remove.
7163 (ia64_gdbarch_init): Do not install it.
7165 2007-05-11 Bob Wilson <bob.wilson@acm.org>
7167 * NEWS: Mention change in handling the -tui option.
7169 2007-05-11 Daniel Jacobowitz <dan@codesourcery.com>
7171 * linux-thread-db.c (enable_thread_event_reporting): Fix comment
7174 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
7176 * breakpoint.c (single_step_breakpoint_inserted_here_p): New function.
7177 (breakpoint_inserted_here_p): Call it.
7178 (software_breakpoint_inserted_here_p): Likewise.
7180 2007-05-10 Ulrich Weigand <uweigand@de.ibm.com>
7182 * inf-ptrace.c (inf_ptrace_register_u_offset): Adapt parameter list.
7183 (inf_ptrace_fetch_register): Add register_u_offset callback parameters
7184 GDBARCH and STORE_P. Handle callback (CORE_ADDR) -1 return value.
7185 (inf_ptrace_store_register): Likewise.
7186 (inf_ptrace_trad_target): Adapt register_u_offset parameter list.
7187 * inf-ptrace.h (inf_ptrace_trad_target): Likewise.
7189 * vax-nat.c (vax_register_u_offset): Adapt parameter list.
7191 * linux-nat.c (linux_trad_target): Adapt parameter list.
7192 * linux-nat.h (linux_trad_target): Likewise.
7194 * alpha-linux-nat.c (alpha_linux_register_u_offset): Adapt parameters.
7196 * mips-linux-nat.c (mips_linux_cannot_fetch_register): Remove.
7197 (mips_linux_cannot_store_register): Likewise.
7198 (mips_linux_register_addr): Add GDBARCH and STORE_P parameters.
7199 Return (CORE_ADDR) -1 for registers that cannot be fetched or
7200 stored via ptrace. Use GDBARCH instead of current_gdbarch.
7201 (mips64_linux_register_addr): Likewise.
7202 (mips_linux_register_u_offset): Adapt parameter list. Pass
7203 GDBARCH and STORE_P on to mips{64}_linux_register_addr.
7205 * config/mips/linux.mh (NAT_FILE): Set to config/nm-linux.h.
7206 * config/mips/nm-linux.h: Delete file.
7208 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
7210 * remote.c (remote_detach): Error out if remote can't detach.
7212 2007-05-10 Luis Machado <luisgpm@br.ibm.com>
7214 * rs6000-tdep.c: (deal_with_atomic_sequence) Stores branch
7215 instruction's opcode in the "opcode" variable and declares new
7216 variable "closing_insn".
7218 2007-05-10 Chris Dearman <chris@mips.com>
7219 Maciej W. Rozycki <macro@mips.com>
7221 * cli/cli-setshow.c (do_setshow_command): Remove trailing
7222 whitespace when setting a var_filename.
7224 2007-05-09 Bob Wilson <bob.wilson@acm.org>
7226 * main.c (captured_main): Recognize -tui option and print an error
7227 message when the TUI is not configured.
7229 2007-05-09 Andreas Schwab <schwab@suse.de>
7231 * mipsnbsd-tdep.c (mipsnbsd_ilp32_fetch_link_map_offsets): Don't
7232 set removed members.
7233 (mipsnbsd_lp64_fetch_link_map_offsets): Likewise.
7235 2007-05-08 Ulrich Weigand <uweigand@de.ibm.com>
7237 * gdbarch.sh (deprecated_store_struct_return): Remove.
7238 * gdbarch.c, gdbarch.h: Regenerate.
7239 * frv-tdep.c (frv_store_struct_return): Remove.
7240 (frv_gdbarch_init): Do not install it.
7242 2007-05-08 Ulrich Weigand <uweigand@de.ibm.com>
7244 * config/i386/nm-i386sol2.h (USE_PROC_FS): Do not define.
7245 * config/mips/nm-irix5.h (USE_PROC_FS): Do not define.
7246 * config/nm-linux.h (USE_PROC_FS): Do not undefine.
7248 2007-05-08 Ulrich Weigand <uweigand@de.ibm.com>
7250 * spu-linux-nat.c: Include "gdb_stdint.h".
7251 (fetch_ppc_register): Use uint64_t instead of unsigned long long.
7252 (fetch_ppc_memory_1, store_ppc_memory_1): Likewise.
7253 (fetch_ppc_memory, store_ppc_memory): Fix coding style.
7254 (spu_symbol_file_add_from_memory): Use strtoulst instead of sscanf.
7255 (spu_child_wait): Mark up string for translation.
7257 2007-05-08 Paul Gilliam <pgilliam@us.ibm.com>
7258 Luis Machado <luisgpm@br.ibm.com>
7260 * rs6000-tdep.c: (LWARX_MASK, LWARX_INSTRUCTION, LDARX_INSTRUCTION,
7261 STWCX_MASK, STWCX_INSTRUCTION, STDCX_INSTRUCTION, BC_MASK,
7262 BC_INSTRUCTION): Define.
7263 (deal_with_atomic_sequence): New function.
7264 (rs6000_software_single_step): Call deal_with_atomic_sequence.
7265 (rs6000_gdbarch_init): Install deal_with_atomic_sequence as
7266 gdbarch_software_single_step routine.
7268 2007-05-07 Ulrich Weigand <uweigand@de.ibm.com>
7270 * spu-linux-nat.c (fetch_ppc_register, fetch_ppc_memory_1,
7271 store_ppc_memory_1, fetch_ppc_memory, store_ppc_memory,
7272 parse_spufs_run, spu_bfd_iovec_pread, spu_bfd_open,
7273 spu_symbol_file_add_from_memory, spu_child_post_startup_inferior,
7274 spu_child_post_attach, spu_fetch_inferior_registers,
7275 spu_store_inferior_registers, spu_xfer_partial): Store PPE-side
7276 memory addresses as ULONGEST, not CORE_ADDR.
7278 2007-05-07 Ulrich Weigand <uweigand@de.ibm.com>
7280 * gdbarch.sh: Add skip_permanent_breakpoint callback.
7281 * gdbarch.h, gdbarch.c: Regenerate.
7283 * infrun.c (SKIP_PERMANENT_BREAKPOINT): Remove default definition.
7284 (resume): Call gdbarch_skip_permanent_breakpoint instead of
7285 SKIP_PERMANENT_BREAKPOINT. Inline default case.
7287 * hppa-hpux-tdep.c (hppa_skip_permanent_breakpoint): Make static.
7288 Add REGCACHE argument. Use it instead of read/write_register.
7289 (hppa_hpux_init_abi): Install hppa_skip_permanent_breakpoint.
7291 * config/pa/tm-hppah.h: Delete file.
7292 * config/pa/hppa64.mt (DEPRECATED_TM_FILE): Set to tm-hppa.h.
7293 * config/pa/hppahpux.mt (DEPRECATED_TM_FILE): Likewise.
7295 2007-05-07 Daniel Jacobowitz <dan@codesourcery.com>
7297 * Makefile.in (c-lang.o, gnu-v3-abi.o): Update.
7298 * NEWS: Mention improved C++ thunk support.
7299 * c-lang.c (cplus_language_defn): Mention cplus_skip_trampoline.
7300 * cp-abi.c (cplus_skip_trampoline): New.
7301 * cp-abi.h (cplus_skip_trampoline): New prototype.
7302 (struct cp_abi_ops): Add skip_trampoline member.
7303 * gnu-v3-abi.c (gnuv3_skip_trampoline): New.
7304 (init_gnuv3_ops): Set skip_trampoline.
7306 2007-05-06 Daniel Jacobowitz <dan@codesourcery.com>
7308 * rs6000-tdep.c (struct frame_extra_info): Delete.
7310 2007-05-06 Daniel Jacobowitz <dan@codesourcery.com>
7312 * linux-thread-db.c: Update some FIXME comments.
7313 (thread_db_xfer_partial): Delete.
7314 (init_thread_db_ops): Do not set to_xfer_partial.
7316 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7318 * inftarg.c, infptrace.c: Remove files.
7319 * Makefile.in (ALLDEPFILES): Remove inftarg.c and infptrace.c
7320 (inftarg.o, infptrace.o): Remove rules.
7321 * gdbcore.h (register_addr): Remove prototype.
7322 * inferior.h (kill_inferior, store_inferior_registers,
7323 fetch_inferior_registers, attach, detach, ptrace_wait, child_resume,
7324 call_ptrace, pre_fork_inferior): Remove prototypes.
7325 * target.h (child_xfer_memory, child_pid_to_exec_file,
7326 child_core_file_to_sym_file, child_post_attach,
7327 child_post_startup_inferior, child_acknowledge_created_inferior,
7328 child_insert_fork_catchpoint, child_remove_fork_catchpoint,
7329 child_insert_vfork_catchpoint, child_remove_vfork_catchpoint,
7330 child_insert_exec_catchpoint, child_remove_exec_catchpoint,
7331 child_follow_fork, child_reported_exec_events_per_exec_call,
7332 child_has_exited, child_thread_alive): Remove prototypes.
7334 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7336 * sparc-nat.h (sparc_fetch_inferior_registers): Add prototype.
7337 (sparc_store_inferior_registers): Likewise.
7338 * sparc-nat.c (fetch_inferior_registers): Rename to ...
7339 (sparc_fetch_inferior_registers): ... this.
7340 (store_inferior_registers): Rename to ...
7341 (sparc_store_inferior_registers): ... this.
7342 (sparc_target): Update callback names.
7343 * sparc-linux.nat.c (_initialize_sparc_linux_nat): Likewise.
7344 * sparc64-linux.nat.c (_initialize_sparc64_linux_nat): Likewise.
7346 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7348 * linux-nat.c (child_post_attach): Rename to ...
7349 (linux_child_post_attach): ... this. Make static.
7350 (child_follow_fork): Rename to ...
7351 (linux_child_follow_fork): ... this. Make static.
7352 (child_insert_fork_catchpoint): Rename to ...
7353 (linux_child_insert_fork_catchpoint): ... this. Make static.
7354 (child_insert_vfork_catchpoint): Rename to ...
7355 (linux_child_insert_vfork_catchpoint): ... this. Make static.
7356 (child_insert_exec_catchpoint): Rename to ...
7357 (linux_child_insert_exec_catchpoint): ... this. Make static.
7358 (child_pid_to_exec_file): Rename to ...
7359 (linux_child_pid_to_exec_file): ... this. Make static.
7361 (linux_handle_extended_wait): Update call.
7362 (linux_xfer_partial): Update callback routine names.
7364 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7366 * configure.host (alpha*-*-osf[12]*): Remove support.
7367 * NEWS: Mention removed configurations.
7369 * config/alpha/alpha-osf1.mh: Delete file.
7370 * config/alpha/alpha-osf2.mh: Delete file.
7371 * config/alpha/alpha-osf3.mh (NATDEPFILES): Remove inftarg.o
7373 * config/alpha/nm-osf.h: Delete file.
7374 * config/alpha/nm-osf2.h: Delete file.
7375 * config/alpha/nm-osf3.h: Do not include "nm-osf2.h".
7376 (START_INFERIOR_TRAPS_EXPECTED): Copy from nm-osf.h.
7377 (PROCFS_DONT_TRACE_FAULTS): Copy from nm-osf2.h.
7379 * alpha-nat.c (ALPHA_UNIQUE_PTRACE_ADDR): Do not define.
7380 (register_addr, kernel_u_size): Remove.
7381 Do not check for "defined(USE_PROC_FS) || defined(HAVE_GREGSET_T)".
7383 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7385 * regcache.c (regcache_invalidate): New function.
7386 (register_cached): Remove.
7387 (set_register_cached): Remove.
7388 (deprecated_registers_fetched): Remove.
7389 (registers_changed): Use regcache_invalidate instead
7390 of set_register_cached.
7391 (regcache_raw_read): Update comment.
7393 * regcache.h (regcache_invalidate): Add prototype.
7394 (register_cached): Remove.
7395 (set_register_cached): Remove.
7396 (deprecated_registers_fetched): Remove.
7398 * findvar.c (value_of_register): Do not call register_cached.
7399 * frame.c (frame_register): Likewise.
7400 * tui/tui-regs.c (tui_get_register): Likewise.
7402 * remote.c (fetch_register_using_p): Do not call set_register_cached.
7403 (process_g_packet): Likewise.
7404 (remote_fetch_registers): Likewise.
7405 * remote-sim.c (gdbsim_fetch_register): Likewise.
7406 * mt-tdep.c (mt_select_coprocessor): Replace set_register_cached call
7407 by regcache_invalidate.
7408 (mt_pseudo_register_write): Likewise.
7409 * sh-tdep.c (sh_pseudo_register_write): Likewise.
7411 * corelow.c (get_core_registers): Replace deprecated_registers_fetched
7412 call by loop over regcache_raw_supply (..., NULL).
7414 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7416 * target.h (struct target_ops): Add REGCACHE parameter to
7417 to_prepare_to_store.
7418 (target_prepare_to_store): Likewise.
7419 * target.c (debug_to_prepare_to_store): Add REGCACHE parameter.
7420 (update_current_target): Adapt prepare_to_store de_fault rule.
7422 * regcache.c (regcache_raw_write): Pass regcache to
7423 target_prepare_to_store.
7425 * inftarg.c (child_prepare_to_store): Add REGCACHE parameter.
7426 Do not call CHILD_PREPARE_TO_STORE.
7427 * gnu-nat.c (gnu_prepare_to_store): Likewise.
7428 * procfs.c (procfs_prepare_to_store): Likewise.
7430 * inf-child.c (inf_child_prepare_to_store): Add REGCACHE parameter.
7431 * go32-nat.c (go32_prepare_to_store): Likewise.
7432 * monitor.c (monitor_prepare_to_store): Likewise.
7433 * nto-procfs.c (procfs_prepare_to_store): Likewise.
7434 * remote-m32r-sdi.c (m32r_prepare_to_store): Likewise.
7435 * remote-mips.c (mips_prepare_to_store): Likewise.
7436 * remote-sim.c (gdbsim_prepare_to_store): Likewise.
7437 * win32-nat.c (win32_prepare_to_store): Likewise.
7439 * remote.c (remote_prepare_to_store): Add REGCACHE parameter.
7440 Use it instead of current_regcache.
7442 * hpux-thread.c (hpux_thread_prepare_to_store): Add REGCACHE
7443 parameter. Pass it on to next target.
7444 * sol-thread.c (sol_thread_prepare_to_store): Likewise.
7446 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7448 * target.h (struct regcache): Add forward declaration.
7449 (struct target_ops): Add REGCACHE parameter to to_fetch_registers
7450 and to_store_registers target operations.
7451 (target_fetch_registers, target_store_registers): Update.
7453 * regcache.c (regcache_raw_read): Replace register_cached by
7454 regcache_valid_p. Pass regcache to target_fetch_registers.
7455 (regcache_raw_write): Pass regcache to target_store_registers.
7457 * arm-linux-nat.c (store_fpregister, store_fpregs, store_register,
7458 store_regs, store_wmmx_regs): Replace register_cached by
7461 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd): Pass current_regcache
7462 to target_fetch_registers calls.
7463 * corelow.c (core_open): Likewise.
7464 * linux-nat.c (linux_nat_corefile_thread_callback): Likewise.
7465 * proc-service.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
7466 ps_lsetfpregs): Likewise.
7467 * sol-thread.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
7468 ps_lsetfpregs): Likewise.
7469 * win32-nat.c (win32_resume): Likewise.
7470 * ia64-tdep.c (ia64_store_return_value): Pass current_regcache
7471 to target_store_registers call.
7472 * rs6000-tdep.c (rs6000_push_dummy_call): Likewise.
7474 * inferior.h (store_inferior_registers): Update prototype.
7475 (fetch_inferior_registers): Likewise.
7476 * gnu-nat.c (gnu_store_registers, gnu_fetch_registers): Likewise.
7477 * mips-linux-nat.c (super_fetch_registers, super_store_registers):
7478 Update function pointer signatures.
7480 * aix-thread.c (aix_thread_fetch_registers): Add REGCACHE parameter,
7481 use it instead of current_regcache, update calls.
7482 (aix_thread_store_registers): Likewise.
7483 * alphabsd-nat.c (alphabsd_fetch_inferior_registers): Likewise.
7484 (alphabsd_store_inferior_registers): Likewise.
7485 * amd64bsd-nat.c (amd64bsd_fetch_inferior_registers): Likewise.
7486 (amd64bsd_store_inferior_registers): Likewise.
7487 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers): Likewise.
7488 (amd64_linux_store_inferior_registers): Likewise.
7489 * arm-linux-nat.c (fetch_fpregister, fetch_fpregs, store_fpregister,
7490 store_fpregs, fetch_register, fetch_regs, store_register, store_regs,
7491 fetch_wmmx_regs, store_wmmx_regs): Likewise.
7492 (arm_linux_fetch_inferior_registers): Likewise.
7493 (arm_linux_store_inferior_registers): Likewise.
7494 * armnbsd-nat.c (fetch_register, fetch_regs, fetch_fp_register,
7495 fetch_fp_regs, armnbsd_fetch_registers): Likewise.
7496 (store_register, store_regs, store_fp_register, store_fp_regs,
7497 armnbsd_store_registers): Likewise.
7498 * bsd-kvm.c (bsd_kvm_fetch_pcb, bsd_kvm_fetch_registers): Likewise.
7499 * bsd-uthread.c (bsd_uthread_fetch_registers): Likewise.
7500 (bsd_uthread_store_registers): Likewise.
7501 * corelow.c (get_core_registers): Likewise.
7502 * go32-nat.c (fetch_register, go32_fetch_registers, store_register,
7503 go32_store_registers): Likewise.
7504 * hppabsd-nat.c (hppabsd_fetch_registers): Likewise.
7505 (hppabsd_store_registers): Likewise.
7506 * hppa-hpux-nat.c (hppa_hpux_fetch_register): Likewise.
7507 (hppa_hpux_fetch_inferior_registers): Likewise.
7508 (hppa_hpux_store_register): Likewise.
7509 (hppa_hpux_store_inferior_registers): Likewise.
7510 * hppa-linux-nat.c (fetch_register, store_register): Likewise.
7511 (hppa_linux_fetch_inferior_registers): Likewise.
7512 (hppa_linux_store_inferior_registers): Likewise.
7513 * hpux-thread.c (hpux_thread_fetch_registers): Likewise.
7514 (hpux_thread_store_registers): Likewise.
7515 * i386bsd-nat.c (i386bsd_fetch_inferior_registers): Likewise.
7516 (i386bsd_store_inferior_registers): Likewise.
7517 * i386gnu-nat.c (fetch_fpregs, gnu_fetch_registers, store_fpregs,
7518 gnu_store_registers): Likewise.
7519 * i386-linux-nat.c (fetch_register, store_register, fetch_regs,
7520 store_regs, fetch_fpregs, store_fpregs, fetch_fpxregs, store_fpxregs):
7522 (i386_linux_fetch_inferior_registers): Likewise.
7523 (i386_linux_store_inferior_registers): Likewise.
7524 * ia64-linux-nat.c (ia64_linux_fetch_register): Likewise.
7525 (ia64_linux_fetch_registers): Likewise.
7526 (ia64_linux_store_register): Likewise.
7527 (ia64_linux_store_registers): Likewise.
7528 * inf-child.c (inf_child_fetch_inferior_registers): Likewise.
7529 (inf_child_store_inferior_registers): Likewise.
7530 * inf-ptrace.c (inf_ptrace_fetch_register): Likewise.
7531 (inf_ptrace_fetch_registers): Likewise.
7532 (inf_ptrace_store_register): Likewise.
7533 (inf_ptrace_store_registers): Likewise.
7534 * infptrace.c (fetch_register, store_register): Likewise.
7535 (fetch_inferior_registers, store_inferior_registers): Likewise.
7536 * m32r-linux-nat.c (fetch_regs, store_regs): Likewise.
7537 (m32r_linux_fetch_inferior_registers): Likewise.
7538 (m32r_linux_store_inferior_registers): Likewise.
7539 * m68kbsd-nat.c (m68kbsd_fetch_inferior_registers): Likewise.
7540 (m68kbsd_store_inferior_registers): Likewise.
7541 * m68klinux-nat.c (fetch_register, old_fetch_inferior_registers,
7542 store_register, old_store_inferior_registers, fetch_regs, store_regs,
7543 fetch_fpregs, store_fpregs): Likewise.
7544 (m68k_linux_fetch_inferior_registers): Likewise.
7545 (m68k_linux_store_inferior_registers): Likewise.
7546 * m88kbsd-nat.c (m88kbsd_fetch_inferior_registers): Likewise.
7547 (m88kbsd_store_inferior_registers): Likewise.
7548 * mips64obsd-nat.c (mips64obsd_fetch_inferior_registers): Likewise.
7549 (mips64obsd_store_inferior_registers): Likewise.
7550 * mips-linux-nat.c (mips64_linux_regsets_fetch_registers): Likewise.
7551 (mips64_linux_regsets_store_registers): Likewise.
7552 (mips64_linux_fetch_registers): Likewise.
7553 (mips64_linux_store_registers): Likewise.
7554 * mipsnbsd-nat.c (mipsnbsd_fetch_inferior_registers): Likewise.
7555 (mipsnbsd_store_inferior_registers): Likewise.
7556 * monitor.c (monitor_fetch_register, monitor_store_register): Likewise.
7557 (monitor_fetch_registers, monitor_store_registers): Likewise.
7558 * nto-procfs.c (procfs_fetch_registers): Likewise.
7559 (procfs_store_registers): Likewise.
7560 * ppc-linux-nat.c (fetch_altivec_register, fetch_spe_register,
7561 fetch_register, supply_vrregset, fetch_altivec_registers,
7562 fetch_ppc_registers, ppc_linux_fetch_inferior_registers): Likewise.
7563 (store_altivec_register, store_spe_register, store_register,
7564 fill_vrregset, store_altivec_registers, store_ppc_registers,
7565 ppc_linux_store_inferior_registers): Likewise.
7566 * ppcnbsd-nat.c (ppcnbsd_fetch_inferior_registers): Likewise.
7567 (ppcnbsd_store_inferior_registers): Likewise.
7568 * ppcobsd-nat.c (ppcobsd_fetch_registers): Likewise.
7569 (ppcobsd_store_registers): Likewise.
7570 * procfs.c (procfs_fetch_registers, procfs_store_registers): Likewise.
7571 * remote.c (fetch_register_using_p, process_g_packet,
7572 fetch_registers_using_g, remote_fetch_registers): Likewise.
7573 (store_register_using_P, store_registers_using_G,
7574 remote_store_registers): Likewise.
7575 * remote-m32r-sdi.c (m32r_fetch_registers, m32r_fetch_register,
7576 m32r_store_register, m32r_store_register): Likewise.
7577 * remote-mips.c (mips_fetch_registers, mips_store_registers): Likewise.
7578 * remote-sim.c (gdbsim_fetch_register): Likewise.
7579 (gdbsim_store_register): Likewise.
7580 * rs6000-nat.c (fetch_register, store_register): Likewise.
7581 (rs6000_fetch_inferior_registers): Likewise.
7582 (rs6000_store_inferior_registers): Likewise.
7583 * s390-nat.c (fetch_regs, store_regs): Likewise.
7584 (fetch_fpregs, store_fpregs): Likewise.
7585 (s390_linux_fetch_inferior_registers): Likewise.
7586 (s390_linux_store_inferior_registers): Likewise.
7587 * shnbsd-nat.c (shnbsd_fetch_inferior_registers): Likewise.
7588 (shnbsd_store_inferior_registers): Likewise.
7589 * sol-thread.c (sol_thread_fetch_registers): Likewise.
7590 (sol_thread_store_registers): Likewise.
7591 * sparc-nat.c (fetch_inferior_registers): Likewise.
7592 (store_inferior_registers): Likewise.
7593 * spu-linux-nat.c (spu_fetch_inferior_registers): Likewise.
7594 (spu_store_inferior_registers): Likewise.
7595 * target.c (debug_print_register): Likewise.
7596 (debug_to_fetch_registers, debug_to_store_registers): Likewise.
7597 * vaxbsd-nat.c (vaxbsd_fetch_inferior_registers): Likewise.
7598 (vaxbsd_store_inferior_registers): Likewise.
7599 * win32-nat.c (do_win32_fetch_inferior_registers): Likewise.
7600 (win32_fetch_inferior_registers): Likewise.
7601 (win32_store_inferior_registers): Likewise.
7603 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7605 * gdbcore.h (struct regcache): Add forward declaration.
7606 (struct core_fns): Add REGCACHE argument to core_read_registers
7608 * corelow.c (get_core_register_section): Add REGCACHE argument,
7609 use it instead of current_regcache, pass it to core_read_registers
7611 (get_core_registers): Add current_regcache as parameter to
7612 get_core_register_section calls.
7614 * alpha-nat.c (fetch_osf_core_registers): Add REGCACHE argument,
7615 use it instead of current_regcache.
7616 * armnbsd-nat.c (fetch_core_registers): Likewise.
7617 (fetch_elfcore_registers): Likewise.
7618 * core-regset.c (fetch_core_registers): Likewise.
7619 * cris-tdep.c (fetch_core_registers): Likewise.
7620 * irix5-nat.c (fetch_core_registers): Likewise.
7621 * m68klinux-nat.c (fetch_core_registers): Likewise.
7622 * mips-linux-tdep.c (fetch_core_registers): Likewise.
7623 * win32-nat.c (fetch_elf_core_registers): Likewise.
7625 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7627 * gregset.h (struct regcache): Add forward declaration.
7628 (supply_gregset): Add REGCACHE parameter, make GREGS const.
7629 (supply_fpregset): Add REGCACHE parameter, make FPREGS const.
7630 (supply_fpxregset): Add REGCACHE parameter, make FPXREGS const.
7631 (fill_gregset): Add REGCACHE parameter.
7632 (fill_fpregset): Likewise.
7633 (fill_fpxregset): Likewise.
7635 Update all definitions accordingly:
7636 * alphabsd-nat.c, alpha-linux-nat.c, alpha-nat.c, amd64-linux-nat.c,
7637 arm-linux-nat.c, hppa-linux-nat.c, i386gnu-nat.c, i386-linux-nat.c,
7638 i386-sol2-nat.c, i386v4-nat.c, ia64-linux-nat.c, irix5-nat.c,
7639 m32r-linux-nat.c, m68klinux-nat.c, mips-linux-nat.c, ppc-linux-nat.c,
7640 s390-nat.c, sparc64-linux-nat.c, sparc-linux-nat.c, sparc-sol2-nat.c
7641 (supply_gregset): Add REGCACHE parameter, use it instead of
7642 current_regcache. Make GREGSETP parameter const, adapt casts.
7643 (supply_fpregset): Add REGCACHE parameter, use it instead of
7644 current_regcache. Make FPREGSETP parameter const, adapt casts.
7645 (fill_gregset): Add REGCACHE parameter, use it instead of
7647 (fill_fpregset): Likewise.
7649 Update all callers to pass in current_regcache as the new argument:
7650 * core-regset.c: Include "regcache.h".
7651 (fetch_core_registers): Update supply_gregset,and supply_fpregset calls.
7652 * procfs.c: Include "regcache.h".
7653 (procfs_fetch_registers): Update supply_gregset, supply_fpregset calls.
7654 (procfs_store_registers): Update fill_gregset, fill_fpregset calls.
7655 (procfs_do_thread_registers): Likewise.
7656 (procfs_make_note_section): Likewise.
7657 * proc-service.c: Include "regcache.h".
7658 (ps_lgetregs): Update fill_gregset call.
7659 (ps_lsetregs): Update supply_gregset call.
7660 (ps_lgetfpregs): Update fill_fpregset call.
7661 (ps_lsetfpregs): Update supply_fpregset call.
7662 * sol-thread.c (sol_thread_fetch_registers): Update supply_gregset,
7663 supply_fpregset calls.
7664 (sol_thread_store_registers): Update fill_gregset, fill_fpregset calls.
7665 (ps_lgetregs): Update fill_gregset call.
7666 (ps_lsetregs): Update supply_gregset call.
7667 (ps_lgetfpregs): Update fill_fpregset call.
7668 (ps_lsetfpregs): Update supply_fpregset call.
7670 * linux-nat.c (linux_nat_do_thread_registers): Update fill_gregset,
7671 fill_fpregset, and fill_fpxregset calls.
7672 * i386-linux-nat.c (fetch_regs): Update supply_gregset call.
7673 (store_regs): Update fill_gregset call.
7674 (fetch_fpregs): Update supply_fpregset call.
7675 (store_fpregs): Update fill_fpregset call.
7676 (fetch_fpxregs): Update supply_fpxregset call.
7677 (store_fpxregs): Update fill_fpxregset call.
7678 * m32r-linux-nat.c (fetch_regs): Update supply_gregset call.
7679 (store_regs): Update fill_gregset call.
7680 * m68klinux-nat.c (fetch_regs): Update supply_gregset call.
7681 (store_regs): Update fill_gregset call.
7682 (fetch_fpregs): Update supply_fpregset call.
7683 (store_fpregs): Update fill_fpregset call.
7684 (fetch_core_registers): Update supply_gregset, supply_fpregset calls.
7685 * s390-nat.c (fetch_regs): Update supply_gregset call.
7686 (store_regs): Update fill_gregset call.
7687 (fetch_fpregs): Update supply_fpregset call.
7688 (store_fpregs): Update fill_fpregset call.
7690 * Makefile.in (core-regset.o, procfs.o, proc-service.o): Update
7693 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7695 * monitor.c (monitor_supply_register): Add REGCACHE parameter, use
7696 it instead of current_regcache.
7697 (parse_register_dump): Add REGCACHE parameter, pass it to
7698 supply_register callback.
7699 (monitor_dump_reg_block): Add REGCACHE parameter, pass it to
7700 parse_register_dump.
7701 (monitor_dump_regs): Add REGCACHE parameter, pass it to
7702 parse_register_dump and dumpregs callback.
7703 (monitor_wait): Pass current_regcache to parse_register_dump and
7705 (monitor_fetch_register): Pass current_regcache to
7706 monitor_supply_register.
7707 (monitor_fetch_registers): Pass current_regcache to
7709 * monitor.h (struct monitor_ops): Add REGCACHE parameter to
7710 supply_register and dumpregs callbacks.
7711 (monitor_supply_register, monitor_dump_reg_block): Update
7713 * dbug-rom.c (dbug_supply_register): Add REGCACHE parameter. Pass
7714 it to monitor_supply_register.
7715 * dink32-rom.c (dink32_supply_register): Likewise.
7716 * ppcbug-rom.c (ppcbug_supply_register): Likewise.
7717 * m32r-rom.c (m32r_supply_register): Likewise. Also, use REGCACHE
7718 instead of current_regcache.
7720 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7722 * i386-nto-tdep.c (i386nto_supply_gregset, i386nto_supply_fpregset):
7723 Add REGCACHE parameter. Use it instead of current_regcache.
7724 (i386nto_supply_regset): Add REGCACHE parameter, pass it to
7725 i386nto_supply_gregset and i386nto_supply_fpregset.
7726 (i386nto_regset_fill): Add REGCACHE parameter; use it instead
7727 of current_regcache.
7729 * nto-procfs.c (procfs_fetch_registers): Pass current_regcache to
7730 nto_supply_ helper functions.
7731 (procfs_store_registers): Pass current_regcache to nto_regset_fill.
7733 * nto-tdep.c (nto_dummy_supply_regset): Add REGCACHE parameter.
7735 * nto-tdep.h (struct nto_target_ops): Add REGCACHE parameter to
7736 supply_greget, supply_fpregset, supply_altregset, supply_regset,
7737 and regset_fill member function pointers.
7738 (nto_dummy_supply_regset): Adapt prototype.
7740 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7742 * shnbsd-tdep.c (shnbsd_supply_reg): Add REGCACHE parameter, use it
7743 instead of current_regcache. Make REGS const.
7744 (shnbsd_fill_reg): Add REGCACHE parameter; replace current_regcache.
7745 * shnbsd-tdep.h (shnbsd_supply_reg, shnbsd_fill_reg): Update
7747 * shnbsd-nat.c: Include "regcache.h".
7748 (shnbsd_fetch_inferior_registers): Pass current_regcache to
7750 (shnbsd_store_inferior_registers): Pass current_regcache to
7752 * Makefile.in (shbsd-nat.o): Update dependencies.
7754 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7756 * mips-linux-tdep.c (supply_32bit_reg): Add REGCACHE parameter. Use it
7757 instead of current_regcache.
7758 (mips_supply_gregset): Likewise. Pass REGCACHE to supply_32bit_reg.
7759 Make GREGSETP const, remove superfluous casts.
7760 (mips_fill_gregset): Add REGCACHE parameter; replace current_regcache.
7761 (mips_supply_fpregset): Likewise. Make FPREGSETP const, remove
7763 (mips_fill_fpregset): Add REGCACHE parameter; replace current_regcache.
7764 (supply_64bit_reg): Likewise
7765 (mips64_supply_gregset): Likewise. Pass REGCACHE to supply_64bit_reg.
7766 Make GREGSETP const, adapt casts accordingly.
7767 (mips64_fill_gregset): Add REGCACHE parameter; replace current_regcache.
7768 (mips64_supply_fpregset): Likewise. Make FPREGSET const, adapt
7770 (mips64_fill_fpregset): Add REGCACHE parameter; replace current_regcache.
7771 (fetch_core_registers): Pass current_regcache to mips{64}_(supply|fill)_
7773 * mips-linux-tdep.h (mips_supply_gregset, mips_fill_gregset,
7774 mips_supply_fpregset, mips_fill_fpregset, mips64_supply_gregset,
7775 mips64_fill_gregset, mips64_supply_fpregset, mips64_fill_fpregset):
7777 * mips-linux-nat.c: Include "regcache.h".
7778 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): Pass
7779 current_regcache to mips{64}_(supply|fill)_ helper routines.
7780 (mips64_linux_regsets_fetch_registers): Likewise.
7781 (mips64_linux_regsets_store_registers): Likewise.
7783 * mipsnbsd-tdep.c (mipsnbsd_supply_reg, mipsnbsd_supply_fpreg): Add
7784 REGCACHE argument; replace current_regcache. Make REGS const.
7785 (mipsnbds_fill_reg, mipsnbsd_fill_fpreg): Add REGCACHE argument;
7786 replace current_regcache.
7787 * mipsnbsd-tdep.h (ipsnbsd_supply_reg, mipsnbsd_supply_fpreg,
7788 mipsnbds_fill_reg, mipsnbsd_fill_fpreg): Adapt prototypes.
7789 * mipsnbsd-nat.c (mipsnbsd_fetch_inferior_registers,
7790 mipsnbsd_store_inferior_registers): Pass current_regcache to
7791 mipsnbsd_(supply|fill)_... helper routines.
7793 * Makefile.in (mips-linux-nat.o): Update dependencies.
7795 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7797 * i387-tdep.c (i387_fill_fsave, i387_fill_fxsave): Remove.
7798 * i387-tdep.h (i387_fill_fsave, i387_fill_fxsave): Remove prototypes.
7799 * i368-linux-nat.c (supply_fpregset, supply_fpxregset): Replace
7800 i387_fill_fsave and i387_fill_fxsave calls by inline copies.
7801 * i386-nto-tdep.c (i386nto_regset_fill): Likewise.
7802 * i386gnu-nat.c (store_fpregs): Likewise.
7803 * i386v4-nat.c (fill_fpregset): Likewise.
7804 * go32-nat.c (store_register, go32_store_registers): Likewise.
7806 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7808 * cris-tdep.c (supply_gregset): Rename to ...
7809 (cris_supply_gregset): ... this. Add REGCACHE parameter. Use it
7810 instead of current_regcache.
7811 (fetch_core_registers): Update call. Pass current_regcache.
7813 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7815 * arnmnbsd-nat.c (supply_gregset): Rename to ...
7816 (arm_supply_gregset): ... this. Add REGCACHE parameter.
7817 Use it instead of current_regcache.
7818 (supply_fparegset): Rename to ...
7819 (arm_supply_fparegset): ... this. Add REGCACHE parameter.
7820 Use it instead of current_regcache.
7821 (fetch_regs, fetch_fp_regs): Update calls. Pass current_regcache.
7822 (fetch_core_registers, fetch_elfcore_registers): Likewise.
7824 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7826 * alpha-tdep.c (alpha_supply_int_regs, alpha_fill_int_regs,
7827 alpha_supply_fp_regs, alpha_fill_fp_regs): Add REGCACHE parameter,
7828 use it instead of current_regcache.
7829 * alpha-tdep.h (struct regcache): Add forward declaration.
7830 (alpha_supply_int_regs, alpha_fill_int_regs, alpha_supply_fp_regs,
7831 alpha_fill_fp_regs): Update prototypes.
7833 * alpha-nat.c: (supply_gregset, fill_gregset, supply_fpregset,
7834 fill_fpregset): Pass current_regcache to alpha_supply/fill_ routines.
7835 * alpha-linux-nat.c: Include "regcache.h".
7836 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): Pass
7837 current_regcache to alpha_supply/fill_ routines.
7839 * alphabsd-tdep.c: Include "regcache.h".
7840 (alphabsd_supply_reg, alphabsd_supply_fpreg): Add REGCACHE paramter,
7841 pass it to alpha_supply_ routines. Make REGS const.
7842 (alphabsd_fill_reg, alphabsd_fill_fpreg): Add REGCACHE parameter,
7843 pass it to alpha_fill_ routines.
7844 * alphabsd-tdep.h (struct regcache): Add forward declaration.
7845 (alphabsd_supply_reg, alphabsd_fill_reg, alphabsd_supply_fpreg,
7846 alphabsd_fill_fpreg): Update prototypes.
7848 * alphanbsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
7849 fill_fpregset, alphabsd_fetch_inferior_registers,
7850 alphabsd_store_inferior_registers): Pass current_regcache to
7851 alphabsd_supply/fill_ routines.
7853 * Makefile.in (alpha-linux-nat.o, alphabsd-tdep.o): Update
7856 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7858 * aix-thread.c (supply_gprs64, supply_reg32, supply_fprs,
7859 supply_sprs64, supply_sprs32): Add REGCACHE parameter, use it
7860 instead of current_regcache.
7861 (fetch_regs_user_thread, fetch_regs_kernel_thread): Add
7862 REGCACHE parameter, pass it to supply_ routines.
7863 (aix_thread_fetch_registers): Pass current_regcache to
7864 fetch_regs_user_thread and fetch_regs_kernel_thread.
7866 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs64, fill_sprs32):
7867 Add REGCACHE parameter, use it instead of current_regcache.
7868 Call regcache_valid_p instead of register_cached.
7869 (store_regs_user_thread, store_regs_kernel_thread): Likewise.
7870 Also, pass REGCACHE to fill_ routines.
7871 (aix_thread_store_registers): Pass current_regcache to
7872 store_regs_user_thread and store_regs_kernel_thread.
7874 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7876 * m32r-linux-nat.c (supply_gregset): Do not modify contents
7877 pointed to by GREGSETP.
7879 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7881 * irix5-nat.c (fill_gregset): Use regcache_raw_collect instead
7882 of regcache_raw_read_signed.
7883 (fill_fpregset): Use regcache_raw_collect instead of
7886 2007-05-03 Kevin Buettner <kevinb@redhat.com>
7888 * mips-tdep.c (mips_eabi_push_dummy_call): When pushing floating
7889 point arguments, test explicitly for use of the EABI32 ABI
7890 instead of inferring this condition from tests on register
7893 2007-05-03 Kevin Buettner <kevinb@redhat.com>
7895 * breakpoint.c (set_raw_breakpoint): Adjust breakpoint's address
7896 prior to allocating its location.
7898 2007-05-02 Maciej W. Rozycki <macro@mips.com>
7900 * mips-tdep.c (mips_o32_push_dummy_call): Remove conditions
7901 based on mips_abi_regsize() whose result is known in advance.
7902 (mips_o64_push_dummy_call): Likewise.
7904 2007-04-29 Ulrich Weigand <uweigand@de.ibm.com>
7906 * m68klinux-nat.c: Remove #ifndef USE_PROC_FS check.
7907 * m68k-tdep.c: Remove code within #ifdef USE_PROC_FS.
7909 * mips-linux-nat.c: Include "gregset.h".
7910 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): Move
7911 from mips-linux-tdep.c. Change parameter type to gdb_gregset_t.
7912 * mips-linux-tdep.c (supply_gregset, fill_gregset, supply_fpregset,
7913 fill_fpregset): Move to mips-linux-nat.c.
7915 * Makefile.in (m68k-tdep.o, mips-linux-nat.o): Update dependencies.
7917 2007-04-28 Ulrich Weigand <uweigand@de.ibm.com>
7919 * regcache.c (deprecated_read_register_gen): Remove, inline ...
7920 (read_register): ... here.
7921 (deprecated_write_register_gen): Remove, inline ...
7922 (write_register): ... here.
7923 * regcache.h (deprecated_read_register_gen): Remove prototype.
7924 (deprecated_write_register_gen): Likewise.
7926 * remote-sim.c (gdbsim_store_register): Replace call to
7927 deprecated_read_register_gen with regcache_cooked_read.
7928 * target.c (debug_print_register): Replace calls to
7929 deprecated_read_register_gen and read_register with
7930 regcache_cooked_read.
7932 2007-04-28 Ulrich Weigand <uweigand@de.ibm.com>
7934 * hpux-thread.c (hpux_thread_store_registers): Use
7935 regcache_raw_collect, not regcache_raw_read.
7936 * irix5-nat.c (fetch_core_registers): Use regcache_raw_supply,
7937 not regcache_raw_write.
7939 2007-04-28 Ulrich Weigand <uweigand@de.ibm.com>
7941 * gdbarch.sh: Remove deprecated_register_byte.
7942 * gdbarch.c, gdbarch.h: Regenerate.
7943 * arch-utils.h (generic_register_size, generic_register_byte): Remove.
7944 * arch-utils.c (generic_register_size, generic_register_byte): Remove.
7946 * regcache.h (regcache_valid_p): Make REGCACHE parameter const.
7947 * regcache.c (regcache_valid_p): Allow to query cooked registers in
7948 read-only register caches. Make REGCACHE parameter const.
7949 (regcache_dump): Do not check DEPRECATED_REGISTER_BYTE.
7951 * mi/mi-main.c (old_regs): Remove.
7952 (mi_setup_architecture_data, _initialize_mi_main): Remove.
7953 (register_changed_p): Reimplement to compare two register caches.
7954 (mi_cmd_data_list_changed_registers): Update caller.
7955 * mi/mi-main.h (mi_setup_architecture_data): Remove.
7956 * mi/mi-interp.c (mi_interpreter_init): Do not call
7957 mi_setup_architecture_data.
7959 2007-04-28 Ulrich Weigand <uweigand@de.ibm.com>
7961 * alpha-nat.c (ALPHA_REGSET_BASE, ALPHA_REGSET_UNIQUE): Do not define,
7962 inline definition at the places the macros are used.
7963 * alpha-linux-nat.c (ALPHA_REGSET_BASE, ALPHA_REGSET_UNIQUE): Likewise.
7965 2007-04-28 Ulrich Weigand <uweigand@de.ibm.com>
7967 * rs6000-aix-tdep.c: Include "regcache.h", "regset.h", and
7969 (rs6000_aix32_reg_offsets, rs6000_aix64_reg_offsets): New variables.
7970 (rs6000_aix_supply_regset, rs6000_aix_collect_regset): New functions.
7971 (rs6000_aix32_regset, rs6000_aix64_regset): New variables.
7972 (rs6000_aix_regset_from_core_section): New function.
7973 (rs6000_aix_init_osabi): Register it.
7974 (_initialize_rs6000_aix_tdep): Register GDB_OSABI_AIX osabi and
7975 sniffer for bfd_arch_powerpc as well as bfd_arch_rs6000.
7976 * rs6000-nat.c (CoreRegs): Do not define type.
7977 (fetch_core_registers, rs6000_core_fns): Remove.
7978 (_initialize_core_rs6000): Do not register it. Rename to ...
7979 (_initialize_rs6000_nat): ... this.
7980 * Makefile.in (rs6000-aix-tdep.o): Update dependencies.
7982 2007-04-27 Kevin Buettner <kevinb@redhat.com>
7984 * dwarf2expr.c (unsigned_address_type): Add forward declaration.
7985 (dwarf2_read_address): Sign extend return address as required by
7986 target architecture.
7988 2007-04-27 Kevin Buettner <kevinb@redhat.com>
7990 * solib-frv.c (lm_base): Bail out if the main executable has
7993 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
7995 * alpha-linux-tdep.c (alpha_linux_supply_fpregset): Correct location
7996 of FPCR register in fpregset.
7998 2007-04-27 Maciej W. Rozycki <macro@mips.com>
8000 * Makefile.in (gdbtk-wrapper.o): Update dependencies.
8001 (gdbtk-varobj.o, gdbtk-cmds.o, gdbtk-stack.o): Likewise.
8003 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
8005 * config/rs6000/nm-rs6000.h (CHILD_SPECIAL_WAITSTATUS): Remove.
8006 * rs6000-nat.c (rs6000_wait): New function.
8007 (_initialize_core_rs6000): Install it as to_wait target method.
8008 * target.c (store_waitstatus): Don't check CHILD_SPECIAL_WAITSTATUS.
8010 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
8012 * config/rs6000/nm-rs6000.h (TARGET_CREATE_INFERIOR_HOOK): Remove.
8013 * fork-child.c (fork_inferior): Don't call TARGET_CREATE_INFERIOR_HOOK.
8014 * rs6000-nat.c (super_create_inferior): New variable.
8015 (rs6000_create_inferior): Make static. Adapt argument list. Call
8016 original version of create_inferior via super_create_inferior.
8017 (_initialize_core_rs6000): Install to_create_inferior target method.
8019 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
8021 * aix-thread.c (aix_thread_xfer_memory): Replace by ...
8022 (aix_thread_xfer_partial): ... this.
8023 (init_aix_thread_ops): Install to_xfer_partial instead
8024 of deprecated_xfer_memory target method.
8026 * config/powerpc/aix.mh (NATDEPFILES): Remove infptrace.o
8027 and inftarg.o, add inf-ptrace.o.
8028 * config/rs6000/nm-rs6000.h (FETCH_INFERIOR_REGISTERS,
8029 CHILD_XFER_MEMORY, KERNEL_U_SIZE, kernel_u_size): Remove.
8030 * rs6000-nat.c: Include "inf-ptrace.h" and "gdb_stdint.h".
8031 (fetch_inferior_registers): Rename to ...
8032 (rs6000_fetch_inferior_registers): ... this. Make static.
8033 (store_inferior_registers): Rename to ...
8034 (rs6000_store_inferior_registers): ... this. Make static.
8035 (read_word, child_xfer_memory): Remove.
8036 (rs6000_xfer_partial): New function.
8037 (kernel_u_size): Remove.
8038 (_initialize_core_rs6000): Add inf_ptrace-based target.
8039 * Makefile.in (rs6000-nat.o): Update dependencies.
8041 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
8043 * inf-ptrace.c: Include "gdb_stdint.h".
8044 (inf_ptrace_xfer_partial): Use "uintptr_t" instead of "long" as
8045 intermediate type when casting CORE_ADDR to PTRACE_TYPE_ARG3.
8046 (inf_ptrace_fetch_register): Add intermediate cast to "uintptr_t"
8047 before casting CORE_ADDR to PTRACE_TYPE_ARG3.
8048 (inf_ptrace_store_register): Likewise.
8049 * Makefile.in (inf-ptrace.o): Update dependencies.
8051 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
8053 * configure.host (rs6000-*-*): Merge with powerpc-*-aix* rules.
8054 * configure.tgt (rs6000-*-*): Likewise.
8055 * config/rs6000/aix4.mh: Delete file.
8056 * config/rs6000/aix4.mt: Delete file.
8057 * config/rs6000/rs6000.mh: Delete file.
8058 * config/rs6000/rs6000.mt: Delete file.
8060 * config/powerpc/nm-aix.h: Delete file.
8061 * config/powerpc/aix.mh (NAT_FILE): Set to config/rs6000/nm-rs6000.h.
8063 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
8065 * aix-thread.c (fill_sprs32): Change argument types to "uint32_t *".
8066 Remove obsolete part of comment.
8067 (store_regs_user_thread): Use uint32_t temporaries when calling
8069 (store_regs_kernel_thread): Likewise. Add assertion to verify
8070 correct size of struct ptsprs members.
8071 (aix_thread_xfer_memory): Fix type of myaddr.
8072 (aix_thread_extra_thread_info): Fix compiler warning.
8073 * rs6000-nat.c (rs6000_ptrace64): Change type of buf to "void *".
8074 (fetch_register, store_register): Adapt callers.
8076 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
8078 * vec.h (vec_free): Rename to vec_free_. Adapt users.
8080 2007-04-25 Ulrich Weigand <uweigand@de.ibm.com>
8082 * alpha-linux-tdep.c: Include "gdb_string.h", "regset.h",
8084 (alpha_linux_supply_gregset, alpha_linux_supply_fpregset): New.
8085 (alpha_linux_gregset, alpha_linux_fpregset): New variables.
8086 (alpha_linux_regset_from_core_section): New function.
8087 (alpha_linux_init_abi): Install it.
8088 * alpha-linux-nat.c: Do not include "gdbcore.h". Include
8089 "alpha-tdep.h", <sys/ptrace.h>, <alpha/ptrace.h>,
8090 <sys/procfs.h>, and "gregset.h".
8091 (ALPHA_REGSET_BASE, ALPHA_REGSET_UNIQUE, ALPHA_UNIQUE_PTRACE_ADDR):
8092 Move from config/alpha/nm-linux.h.
8093 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): Copy
8095 (alpha_linux_register_u_offset): Inline register_addr from alpha-nat.c.
8096 * alpha-nat.c: Remove #ifdef __linux__ section.
8097 (fetch_elf_core_registers, alpha_elf_core_fns): Remove.
8098 (_initialize_core_alpha): Do not register alpha_elf_core_fns.
8099 (ALPHA_UNIQUE_PTRACE_ADDR, ALPHA_REGSET_UNIQUE): Define unconditionally.
8100 (ALPHA_REGSET_BASE): Move from config/alpha/nm-osf.h.
8101 * config/alpha/alpha-linux.mh (NAT_FILE): Set to config/nm-linux.h.
8102 (NATDEPFILES): Remove alpha-nat.o.
8103 * config/alpha/nm-linux.h: Delete file.
8104 * config/alpha/nm-osf.h (ALPHA_REGSET_BASE): Move to alpha-nat.c.
8105 * Makefile.in (alpha-linux-nat.o): Update dependencies.
8106 (alpha-linux-tdep.o): Likewise.
8108 2007-04-25 Ulrich Weigand <uweigand@de.ibm.com>
8110 * mips-linux-nat.c: No longer include "gdbcore.h".
8111 (mips_linux_register_addr): Move from mips-linux-tdep.c.
8112 (mips64_linux_register_addr): Likewise.
8113 (mips_linux_register_u_offset): Call mips_linux_register_addr or
8114 mips64_linux_register_addr instead of register_addr.
8115 * mips-linux-tdep.c (mips_linux_register_addr,
8116 mips64_linux_register_addr): Move to mips-linux-nat.c.
8117 (register_addr): Remove.
8118 (register_addr_data, init_register_addr_data): Remove.
8119 (_initialize_mips_linux_tdep): Do not initialize register_addr_data.
8120 (set_mips_linux_register_addr): Remove.
8121 (mips_linux_init_abi): Do not call set_mips_linux_register_addr.
8122 * Makefile.in (mips-linux-nat.o): Update dependencies.
8124 2007-04-25 Ulrich Weigand <uweigand@de.ibm.com>
8126 * linux-nat.c (linux_register_u_offset): Remove.
8127 (linux_target_install_ops): New function.
8128 (linux_target): Use it.
8129 (linux_trad_target): New function.
8130 * linux-nat.h (linux_trad_target): Declare.
8132 * alpha-linux-nat.c: Include "gdbcore.h".
8133 (alpha_linux_register_u_offset): New function.
8134 (_initialize_alpha_linux_nat): Use linux_trad_target.
8136 * mips-linux-nat.c: Include "gdbcore.h".
8137 (mips_linux_register_u_offset): New function.
8138 (_initialize_mips_linux_nat): Use linux_trad_target.
8140 * config/arm/linux.mh (NAT_FILE): Set to config/nm-linux.h.
8141 * config/arm/nm-linux.h: Delete file.
8143 * config/i386/nm-linux64.h (FETCH_INFERIOR_REGISTERS): Remove.
8144 * config/i386/nm-linux.h (FETCH_INFERIOR_REGISTERS): Remove.
8146 * config/ia64/linux.mh (NAT_FILE): Set to config/nm-linux.h.
8147 * config/ia64/nm-linux.h: Delete file.
8149 * config/m32r/linux.mh (NAT_FILE): Set to config/nm-linux.h.
8150 * config/m32r/nm-linux.h: Delete file.
8152 * config/m68k/linux.mh (NAT_FILE): Set to config/nm-linux.h.
8153 * config/m68k/nm-linux.h: Delete file.
8155 * config/pa/linux.mh (NAT_FILE): Set to config/nm-linux.h.
8156 * config/pa/nm-linux.h: Delete file.
8158 * config/powerpc/linux.mh (NAT_FILE): Set to config/nm-linux.h.
8159 * config/powerpc/ppc64-linux.mh (NAT_FILE): Likewise.
8160 * config/powerpc/nm-linux.h: Delete file.
8162 * config/s390/s390.mh (NAT_FILE): Set to config/nm-linux.h.
8163 * config/s390/nm-linux.h: Delete file.
8165 * config/sparc/linux.mh (NAT_FILE): Set to config/nm-linux.h.
8166 * config/sparc/linux64.mh (NAT_FILE): Likewise.
8167 * config/sparc/nm-linux.h: Delete file.
8169 * Makefile.in (alpha-linux-nat.o): Update dependencies.
8170 (mips-linux-nat.o): Likewise.
8172 2007-04-25 Ulrich Weigand <uweigand@de.ibm.com>
8174 * core-aout.c: Delete file.
8175 * Makefile.in (ALLDEPFILES): Remove core-aout.c.
8176 (core-aout.o): Delete rule.
8177 * gdbcore.h (kernel_u_addr, KERNEL_U_ADDR): Remove.
8179 * config/alpha/nm-linux.h (U_REGS_OFFSET): Remove.
8181 * arm-linux-nat.c (arm_linux_kernel_u_size): Remove.
8182 * config/arm/nm-linux.h (U_REGS_OFFSET, KERNEL_U_SIZE,
8183 KERNEL_U_ADDR): Remove.
8185 * i386-linux-nat.c (register_u_addr, kernel_u_size): Remove.
8186 (cannot_fetch_register, cannot_store_register): Remove.
8187 (fetch_register): Inline cannot_fetch_register and register_addr.
8188 (store_register): Inline cannot_store_register and register_addr.
8189 * config/i386/linux.mh (NATDEPFILES): Remove core-aout.o.
8190 * config/i386/nm-linux.h (KERNEL_U_SIZE, KERNEL_U_ADDR,
8191 REGISTER_U_ADDR, CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER):
8194 * m68klinux-nat.c (m68k_linux_register_u_addr, kernel_u_size): Remove.
8195 (fetch_register): Inline register_addr.
8196 (store_register): Inline register_addr.
8197 * config/m68k/linux.mh (NATDEPFILES): Remove core-aout.o.
8198 * config/m68k/nm-linux.h (KERNEL_U_SIZE, KERNEL_U_ADDR,
8199 U_REGS_OFFSET, REGISTER_U_ADDR): Remove.
8201 * config/mips/nm-irix5.h (REGISTER_U_ADDR): Remove.
8202 * config/mips/nm-linux.h (KERNEL_U_SIZE, U_REGS_OFFSET,
8203 REGISTER_U_ADDR): Remove.
8205 * hppa-linux-nat.c (register_addr): Rename to ...
8206 (hppa_linux_register_addr): ... this. Make static.
8207 (fetch_register, store_register): Adapt callers.
8208 * config/pa/nm-linux.h (U_REGS_OFFSET): Remove.
8210 * ppc-linux-nat.c (kernel_u_size): Remove.
8211 * config/powerpc/nm-linux.h (KERNEL_U_SIZE, KERNEL_U_ADDR): Remove.
8213 * vax-nat.c (vax_kernel_u_addr, vax_register_u_addr): Make static.
8214 * config/vax/vax.mh (NATDEPFILES): Remove core-aout.o.
8216 * config/vax/nm-vax.h: Delete file.
8218 2007-04-20 Mark Shinwell <shinwell@codesourcery.com>
8220 * MAINTAINERS (Write After Approval): Add myself.
8222 2007-04-20 Mark Shinwell <shinwell@codesourcery.com>
8224 * Makefile.in: Adjust dependencies of m68klinux-tdep.c.
8225 * m68klinux-tdep.c (m68k_uclinux_sigcontext_reg_offset): New.
8226 (m68k_linux_sigcontext_reg_offset): Fix typo.
8227 (target_is_uclinux): New.
8228 (m68k_linux_inferior_created): New.
8229 (m68k_linux_get_sigtramp_info): Check for uClinux or
8230 normal Linux. Use m68k_uclinux_sigcontext_reg_offset for
8232 (_initialize_m68k_linux_tdep): Register
8233 m68k_linux_inferior_created.
8235 2007-04-19 Pedro Alves <pedro_alves@portugalmail.pt>
8237 * win32-nat.c (win32_detach): Remove delete_command call.
8238 Resume inferior with win32_resume instead of win32_continue.
8240 2007-04-19 Jerome Guitton <guitton@adacore.com>
8242 * ser-mingw.c (fd_is_file): New function.
8243 (file_select_thread): New function.
8244 (ser_console_wait_handle): Add special handling for files.
8246 2007-04-18 Denis Pilat <denis.pilat@st.com>
8248 * dwarf2read.c (read_subrange_type): Use DW_ATE_signed default type
8249 when missing from DW_TAG_subrange_type. Remove the handling of null
8250 return from die_type.
8252 2007-04-18 Maciej W. Rozycki <macro@mips.com>
8254 * mips-tdep.c (mips_eabi_push_dummy_call): Revert the last
8255 change to rearrange some brackets.
8256 (mips_n32n64_push_dummy_call): Likewise.
8257 (mips_o32_push_dummy_call): Likewise.
8258 (mips_o64_push_dummy_call): Likewise.
8260 2007-04-18 Denis Pilat <denis.pilat@st.com>
8262 * infcmd.c (post_create_inferior): Start with a call to
8263 target_terminal_ours.
8265 2007-04-17 Maciej W. Rozycki <macro@mips.com>
8267 * mips-tdep.c (mips_eabi_push_dummy_call): Rearrange some
8269 (mips_n32n64_push_dummy_call): Likewise. Reformat some
8271 (mips_o32_push_dummy_call): Likewise.
8272 (mips_o64_push_dummy_call): Likewise.
8274 2007-04-17 Maciej W. Rozycki <macro@mips.com>
8276 * mips-tdep.c (mips_n32n64_push_dummy_call): Fix a typo in a
8279 2007-04-17 Maciej W. Rozycki <macro@mips.com>
8281 * mips-tdep.c (mips_n32n64_push_dummy_call): Fix a typo in a
8283 (mips_o32_push_dummy_call): Likewise.
8285 2007-04-17 Andreas Schwab <schwab@suse.de>
8287 * symtab.c (skip_prologue_using_sal): Allow the end of the prologue
8288 sal to be bigger than the end of the function.
8290 2007-04-17 Maciej W. Rozycki <macro@mips.com>
8291 Nigel Stephens <nigel@mips.com>
8293 * mips-tdep.c (mips_o32_push_dummy_call): Take account of
8294 argument alignment requirements when calculating stack space
8295 required. When aligning an arg register to eight bytes
8296 boundary, align stack_offset too. Write floating-point
8297 arguments to the appropriate integer register if need go there.
8298 (mips_o64_push_dummy_call): Likewise.
8300 2007-04-14 Ulrich Weigand <uweigand@de.ibm.com>
8302 * gdbarch.sh (software_single_step): Remove "insert_breakpoints_p" and
8303 "sig" arguments, add "regcache" argument.
8304 * gdbarch.c, gdbarch.h: Regenerate.
8306 * infrun.c (resume): Update SOFTWARE_SINGLE_STEP call arguments.
8307 (handle_inferior_event): Call remove_single_step_breakpoints directly
8308 instead of calling SOFTWARE_SINGLE_STEP to remove breakpoints.
8310 * alpha-tdep.c (alpha_software_single_step): Update argument list.
8311 Remove handling of !insert_breakpoints_p case.
8312 * arm-tdep.c (arm_software_single_step): Likewise.
8313 * cris-tdep.c (cris_software_single_step): Likewise.
8314 * mips-tdep.c (mips_software_single_step): Likewise.
8315 * rs6000-tdep.c (rs6000_software_single_step): Likewise.
8316 * sparc-tdep.c (sparc_software_single_step): Likewise.
8317 * spu-tdep.c (spu_software_single_step): Likewise.
8319 * alpha-tdep.h (alpha_software_single_step): Update prototype.
8320 * mips-tdep.h (mips_software_single_step): Likewise.
8321 * rs6000-tdep.h (rs6000_software_single_step): Likewise.
8322 * sparc-tdep.h (sparc_software_single_step): Likewise.
8324 2007-04-14 Ulrich Weigand <uweigand@de.ibm.com>
8326 * alpha-tdep.c (alpha_software_single_step): Do not call write_pc
8327 when removing single-step breakpoints.
8329 2007-04-14 Vladimir Prus <vladimir@codesourcery.com>
8331 * varobj.h (varobj_set_frozen): New
8332 (varobj_get_frozen): New.
8333 (varobj_update): New parameter explicit.
8334 * varobj.c (struct varobj): New fields frozen
8336 (varobj_set_frozen, varobj_get_frozen): New.
8337 (install_new_value): Don't fetch values for
8338 frozen variable object, or children thereof. Allow
8339 a frozen variable object to have non-fetched value.
8340 (varobj_update): Allow updating child variables.
8341 Don't traverse frozen children.
8342 (new_variable): Initialize the frozen field.
8343 (c_value_of_variable): Return NULL for frozen
8344 variable without any value yet.
8345 * mi/mi-cmd-var.c (varobj_update_one): New parameter
8347 (mi_cmd_var_create): Output the 'frozen' field,
8348 as soon as testsuite is adjusted to expect that field.
8349 (mi_cmd_var_set_frozen): New.
8350 (mi_cmd_var_update): Pass the 'explicit' parameter to
8352 * mi/mi-cmds.c (mi_cmds): Register '-var-set-frozen'.
8353 * mi/mi-cmds.h (mi_cmd_var_set_frozen): Declare.
8355 2007-04-13 Paul Brook <paul@codesourcery.com>
8357 * target-descriptions.c (tdesc_named_type): Add ieee_single and
8359 * doc/gdb.texinfo: Document ieee_single and ieee_double target types.
8361 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
8363 * mips-mdebug-tdep.c, mips-mdebug-tdep.h, ocd.c, ocd.h, ppc-bdm.c,
8364 remote-e7000.c, remote-hms.c, remote-utils.c, remote-utils.h,
8365 scm-exp.c, scm-lang.c, scm-lang.h, scm-tags.h, scm-valprint.c,
8366 ser-e7kpc.c, sh3-rom.c, stop-gdb.c: Delete.
8367 * Makefile.in: Remove references to deleted files.
8368 * README: Do not mention deleted ROM monitor interfaces.
8369 * defs.h (enum language): Delete language_scm.
8370 * expprint.c (print_subexp_standard): Do not handle OP_EXPRSTRING.
8371 (dump_subexp_body_standard): Likewise.
8372 * parse.c (operator_length_standard): Likewise.
8373 * expression.h (enum exp_opcode): Delete OP_EXPRSTRING.
8374 * remote-mips.c: Do not include remote-utils.h.
8375 * remote-sim.c: Likewise. Use remote_debug instead of sr_get_debug
8377 * value.c: Do not include scm-lang.h.
8378 (unpack_long): Delete scm_unpack call.
8379 * config/h8300/h8300.mt, config/mips/embed.mt,
8380 config/powerpc/ppc-eabi.mt, config/powerpc/ppc-sim.mt,
8381 config/sh/embed.mt, config/sh/linux.mt: Remove references to
8383 * NEWS: Mention removed files.
8385 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
8387 * symfile.c (add_psymbol_with_dem_name_to_list): Remove.
8388 * symfile.h (add_psymbol_with_dem_name_to_list): Remove prototype.
8390 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
8392 * NEWS: Mention removal of HP aCC support.
8394 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
8396 * solib-svr4.c (IGNORE_FIRST_LINK_MAP_ENTRY): Do not ignore the
8397 first entry for static executables.
8398 (breakpoint_addr): Delete unused variable.
8399 (elf_locate_base): Search for _r_debug in static executables.
8400 (enable_break): Do not set breakpoint_addr. Scan solib_break_names
8403 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
8405 * breakpoint.c (update_breakpoints_after_exec, print_it_typical)
8406 (bpstat_what, print_one_breakpoint, allocate_bp_location)
8407 (mention): Remove bp_through_sigtramp support.
8408 * breakpoint.h (enum bptype): Remove bp_through_sigtramp.
8410 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
8412 * breakpoint.c (bpstat_what): Give step-resume higher priority than
8415 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
8417 * infrun.c: Doc fixes.
8418 (handle_inferior_event): Clarify debug message.
8419 (insert_step_resume_breakpoint_at_sal): Print a debug message.
8421 2007-04-12 Ulrich Weigand <uweigand@de.ibm.com>
8423 * configure.tgt (arm-*-nto*, sh-*-nto*): Remove.
8425 2007-04-12 Ulrich Weigand <uweigand@de.ibm.com>
8427 * config/m68k/tm-monitor.h: Delete file.
8428 * config/m68k/monitor.mt (DEPRECATED_TM_FILE): Remove.
8429 * m68k-tdep.c (m68k_gdbarch_init): set_gdbarch_decr_pc_after_break
8431 * m68kbsd-tdep.c (m68kbsd_init_abi): ... here and ...
8432 * m68klinux-tdep.c (m68k_linux_init_abi): ... here.
8434 2007-04-12 Luis Machado <luisgpm@br.ibm.com>
8436 * gdbarch.sh (software_single_step): Change the return type
8437 from void to int and reformatted some comments to <= 80
8439 * gdbarch.c, gdbarch.h: Regenerated.
8440 * alpha-tdep.c (alpha_software_single_step): Likewise.
8441 * alpha-tdep.h (alpha_software_single_step): Likewise.
8442 * arm-tdep.c (arm_software_single_step): Likewise.
8443 * cris-tdep.c (cris_software_single_step): Likewise.
8444 * mips-tdep.c (mips_software_single_step): Likewise.
8445 * mips-tdep.h (mips_software_single_step): Likewise.
8446 * rs6000-tdep.c (rs6000_software_single_step): Likewise.
8447 * rs6000-tdep.h (rs6000_software_single_step): Likewise.
8448 * sparc-tdep.c (sparc_software_single_step): Likewise.
8449 * sparc-tdep.h (sparc_software_single_step): Likewise.
8450 * spu-tdep.c (spu_software_single_step): Likewise.
8451 * infrun.c (resume): Check the return value from SOFTWARE_SINGLE_STEP
8452 and act accordingly.
8454 2007-04-11 Steve Ellcey <sje@cup.hp.com>
8456 * configure.ac (build_warnings): Add -Wno-char-subscripts.
8457 * configure: Regenerate.
8458 * doc/gdbint.texinfo (warning flags): Add -Wno-char-subscripts.
8460 2007-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
8462 * libunwind-frame.c (LIBUNWIND_SO): Use major version number for `.so'.
8464 2007-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
8466 * gdbtypes.h (TYPE_FLAG_STUB_SUPPORTED, TYPE_STUB_SUPPORTED): New
8468 (TYPE_IS_OPAQUE): Empty vs. opaque structures are now
8469 distinct on the TYPE_STUB_SUPPORTED debug targets.
8470 * dwarf2read.c (read_structure_type): Set TYPE_FLAG_STUB_SUPPORTED.
8472 2007-04-11 Joel Brobecker <brobecker@adacore.com>
8474 * sparc-tdep.c (X_RS2): New macro.
8475 (sparc_skip_stack_check): New function.
8476 (sparc_analyze_prologue): Adjust PC past stack probing
8477 sequence if necessary.
8479 2007-04-10 Andreas Schwab <schwab@suse.de>
8481 * rs6000-tdep.c (rs6000_dwarf2_reg_to_regnum): Decode 64 as CR
8484 2007-04-10 Daniel Jacobowitz <dan@codesourcery.com>
8486 * breakpoint.c (gdb_breakpoint_query): Really return an
8488 (gdb_breakpoint): Likewise.
8489 * thread.c (gdb_list_thread_ids): Likewise.
8490 (gdb_thread_select): Likewise.
8491 * mi/mi-main.c (mi_cmd_thread_select): Expect an enum gdb_rc.
8492 (mi_cmd_thread_list_ids): Remove bogus initialization.
8494 2007-04-10 Daniel Jacobowitz <dan@codesourcery.com>
8496 * Makefile.in (SFILES): Remove hpacc-abi.c.
8497 (COMMON_OBS): Remove hpacc-abi.o.
8498 (ALLDEPFILES): Remove hpread.c and $(HPREAD_SOURCE).
8499 (hpacc-abi.o, hpread.o): Delete rules.
8500 * somread.c: Delete extern declarations from hpread.c.
8501 (som_symfile_read): Do not call do_pxdb or hpread_build_psymtabs.
8502 (som_symfile_finish): Do not call hpread_symfile_finish.
8503 (som_symfile_init): Do not call hpread_symfile_init.
8504 * config/pa/hppa64.mt (TDEPFILES): Remove hpread.o.
8505 * config/pa/hppahpux.mt (TDEPFILES): Likewise.
8506 * hpacc-abi.c, hpread.c: Deleted.
8508 2007-04-10 Daniel Jacobowitz <dan@codesourcery.com>
8510 * solib-svr4.c (enable_break): Simplify return value.
8511 (svr4_solib_create_inferior_hook): Do not warn if enable_break fails.
8513 2007-04-10 Andreas Schwab <schwab@suse.de>
8515 * solib-svr4.h (struct link_map_offsets): Remove l_addr_size,
8516 l_ld_size, l_next_size, l_prev_size, l_name_size.
8518 * solib-svr4.c (LM_ADDR_FROM_LINK_MAP): Use extract_typed_address
8519 to extract addresses from link map.
8520 (LM_DYNAMIC_FROM_LINK_MAP): Likewise.
8521 (LM_NEXT): Likewise.
8522 (LM_NAME): Likewise.
8523 (IGNORE_FIRST_LINK_MAP_ENTRY): Likewise.
8524 (elf_locate_base): Likewise.
8525 (open_symbol_file_object): Likewise.
8526 (svr4_fetch_objfile_link_map): Likewise.
8527 (SOLIB_EXTRACT_ADDRESS): Remove unused macro.
8528 (HAS_LM_DYNAMIC_FROM_LINK_MAP): Test l_ld_offset instead of
8530 (svr4_ilp32_fetch_link_map_offsets): Don't set removed members.
8531 (svr4_lp64_fetch_link_map_offsets): Likewise.
8533 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets): Don't set
8534 removed members. Set l_ld_offset to -1 if not present.
8536 2007-04-08 Vladimir Prus <vladimir@codesourcery.com>
8538 Pass stderr of program run with "target remote |"
8540 * serial.c (serial_open): Set error_fd to -1.
8541 * serial.h (struct serial): New field error_fd.
8542 (struct serial_opts): New field avail.
8543 * ser-pipe.c (pipe_open): Create another pair
8544 of sockets. Pass stderr to gdb.
8545 * ser-mingw.c (pipe_windows_open): Pass
8546 PEX_STDERR_TO_PIPE to pex_run. Initialize
8549 (_initialize_ser_windows): Hook pipe_avail.
8550 * ser-base.c (generic_readchar): Check if there's
8551 anything in stderr channel and route that to gdb_stderr.
8553 2007-04-03 Pedro Alves <pedro_alves@portugalmail.pt>
8555 * dbxread.c (read_ofile_symtab): Move current_objfile
8556 clearing to after end_stabs.
8558 2007-04-01 Andreas Schwab <schwab@suse.de>
8560 * rs6000-tdep.c (rs6000_convert_from_func_ptr_addr): Use parameter
8561 gdbarch instead of current_gdbarch.
8563 2007-04-01 Vladimir Prus <vladimir@codesourcery.com>
8565 * varobj.c (varobj_create): Keep varobj value
8566 NULL when evaluating the type.
8568 2007-03-31 Pedro Alves <pedro_alves@portugalmail.pt>
8570 * NEWS: Mention new Windows CE support.
8572 2007-03-30 Pedro Alves <pedro_alves@portugalmail.pt>
8574 * configure.tgt: Move mips*-*-pe and sh*-*-pe to
8575 the obsoletion stanza.
8576 * NEWS: Mention deleted targets.
8578 * config/sh/tm-wince.h: Remove.
8579 * config/sh/wince.mt: Remove.
8580 * config/mips/tm-wince.h: Remove.
8581 * config/mips/wince.mt: Remove.
8584 * wince-stub.c: Remove.
8585 * wince-stub.h: Remove.
8586 * Makefile.in (wince.o): Remove rule.
8587 (wince-stub.o): Likewise.
8589 * mips-tdep.c (mips_next_pc): Make static.
8590 * mips-tdep.h (mips_next_pc): Remove declaration.
8591 * arm-tdep.c (arm_pc_is_thumb): Make static.
8592 (thumb_get_next_pc): Likewise.
8593 (arm_get_next_pc): Likewise.
8594 * arm-tdep.h (arm_pc_is_thumb_dummy): Remove declaration.
8595 (arm_pc_is_thumb): Likewise.
8596 (thumb_get_next_pc): Likewise.
8597 (arm_get_next_pc): Likewise.
8599 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
8601 * MAINTAINERS: Remove d10v entry.
8602 * Makefile.in (SFILES): Remove dwarfread.c.
8603 (COMMON_OBS): Remove dwarfread.o.
8604 (gdb_sim_d10v_h, abug-rom.o, cpu32bug-rom.o, d10v-tdep.o, dwarfread.o)
8605 (remote-est.o, rom68k-rom.o): Delete.
8606 * NEWS: Mention removal of d10v, target abug, target cpu32bug,
8607 target est, target rom68k, and DWARF 1.
8608 * configure.tgt: Mark d10v as removed.
8609 * dwarf2read.c: Doc update.
8610 * elfread.c (struct elfinfo): Remove dboffset, dbsize, lnoffset,
8612 (elf_locate_sections): Do not set them.
8613 (elf_symfile_read): Do not call dwarf_build_psymtabs.
8614 * symfile.h (dwarf_build_psymtabs): Delete prototype.
8615 * config/m68k/monitor.mt (TDEPFILES): Prune.
8616 * abug-rom.c, cpu32bug-rom.c, d10v-tdep.c, dwarfread.c,
8617 remote-est.c, rom68k-rom.c, config/d10v/d10v.mt: Delete.
8619 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
8621 * doublest.c (convert_floatformat_to_doublest): Use
8622 floatformat_classify.
8623 (floatformat_is_nan): Rename to...
8624 (floatformat_classify): ...this. Return more information.
8625 * doublest.h (enum float_kind): New.
8626 (floatformat_is_nan): Replace prototype...
8627 (floatformat_classify): ...with this one.
8628 * valprint.c (print_floating): Use floatformat_classify. Handle
8631 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
8633 * README: Mention ISO C library requirement.
8635 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
8637 * Makefile.in (SFILES): Remove nlmread.c.
8638 (COMMON_OBS): Remove nlmread.o.
8639 (nlmread.o): Delete rule.
8640 * README: Delete reference to remote-st.c.
8641 * acinclude.m4 (CY_AC_TCL_LYNX_POSIX): Delete.
8642 * defs.h (enum gdb_osabi): Delete GDB_OSABI_NETWARE and
8644 * i386-tdep.c (i386_nw_init_abi, i386_nlm_osabi_sniffer): Delete.
8645 (_initialize_i386_tdep): Do not reference them.
8646 * nlmread.c: Delete file.
8647 * osabi.c (gdb_osabi_names): Remove NetWare and LynxOS.
8648 * target.c: Doc update.
8649 * thread.c: Delete commented include.
8650 * config/alpha/tm-alpha.h: Doc update.
8652 2007-03-30 Chris Dearman <chris@mips.com>
8654 * utils.c (string_to_core_addr): Comment typo.
8656 2007-03-30 Chris Dearman <chris@mips.com>
8658 * mips-tdep.c: Comment typo.
8660 2007-03-29 Ulrich Weigand <uweigand@de.ibm.com>
8662 * config/alpha/nm-osf.h (PTRACE_XFER_TYPE): Remove.
8663 * config/mips/nm-linux.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Remove.
8664 * config/sparc/nm-linux.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Remove.
8665 * config/powerpc/nm-ppc64-linux.h: Remove file.
8666 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Set to nm-linux.h.
8667 * inferior.h (PTRACE_ARG3_TYPE): Do not define.
8668 (call_ptrace): Change type of third argument to PTRACE_TYPE_ARG3.
8669 * infptrace.c (call_ptrace): Likewise.
8670 * m68klinux-nat.c (PTRACE_XFER_TYPE): Do not define.
8671 (fetch_register): Replace PTRACE_ARG3_TYPE by PTRACE_TYPE_ARG3
8672 and PTRACE_XFER_TYPE by PTRACE_TYPE_RET.
8673 (store_register): Likewise.
8675 2007-03-29 Joel Brobecker <brobecker@adacore.com>
8677 * Makefile.in (varobj.o): Add missing dependency.
8679 2007-03-29 Michael Snyder <msnyder@access-company.com>
8681 * MAINTAINERS: Update my email address.
8683 2007-03-29 Joel Brobecker <brobecker@adacore.com>
8685 Add support for exception handling with multiple versions of
8687 * ada-lang.c: Update general comments on how Ada exception catchpoints
8689 (raise_sym_name, raise_unhandled_sym_name, raise_assert_sym_name)
8690 (__gnat_raise_nodefer_with_msg): Delete.
8691 (ada_unhandled_exception_name_addr_ftype): New type.
8692 (exception_support_info): New type.
8693 (ada_unhandled_exception_name_addr): Add forward declaration.
8694 (ada_unhandled_exception_name_addr_from_raise): Likewise.
8695 (default_exception_support_info): New constant.
8696 (exception_support_info_fallback): Likewise.
8697 (exception_info): New global variable.
8698 (ada_exception_support_info_sniffer): New function.
8699 (ada_executable_changed_observer): Likewise.
8700 (ada_unhandled_exception_name_addr_from_raise): Renamed from
8701 ada_unhandled_exception_name_addr.
8702 (ada_unhandled_exception_name_addr): Reimplement to match the
8703 latest Ada runtime implementation.
8704 (error_breakpoint_runtime_sym_not_found): Delete.
8705 (ada_exception_sym_name): Get the exception sym name from
8706 exception_info rather than hardcoding it.
8707 (ada_exception_sal): Add call to ada_exception_support_info_sniffer.
8708 Update error handling.
8709 * Makefile.in (ada-lang.o): Add dependency on observer.h.
8711 2007-03-29 Daniel Jacobowitz <dan@codesourcery.com>
8713 * Makefile.in (coff_solib_h, coff-solib.o, i386v-nat.o, lynx-nat.o)
8714 (remote-st.o, uw-thread.o): Delete.
8715 (HFILES_NO_SRCDIR, ALLDEPFILES): Update.
8716 * configure.host: Move hppa*-*-hiux*, i[34567]86-ncr-*,
8717 i[34567]86-*-dgux*, i[34567]86-*-lynxos*, i[34567]86-*-sco3.2v5*,
8718 i[34567]86-*-sco3.2v4*, i[34567]86-*-sco*, i[34567]86-*-sysv4.2*,
8719 i[34567]86-*-sysv4*, i[34567]86-*-sysv5*, i[34567]86-*-unixware2*,
8720 i[34567]86-*-unixware*, i[34567]86-*-sysv*, i[34567]86-*-isc*, and
8721 rs6000-*-lynxos* to an obsoletion stanza.
8722 * configure.tgt: Move hppa*-*-hiux*, i[34567]86-ncr-*,
8723 i[34567]86-*-lynxos*, m68*-cisco*-*, m68*-tandem-*, m68*-*-os68k*,
8724 and rs6000-*-lynxos* to an obsoletion stanza. Do not mention
8725 i[34567]86-*-netware*.
8726 * NEWS: Mention deleted targets.
8728 * coff-solib.c, coff-solib.h, i386v-nat.c, lynx-nat.c, remote-st.c,
8729 uw-thread.c, config/nm-lynx.h, config/i386/i386sco.mh,
8730 config/i386/i386sco4.mh, config/i386/i386sco5.mh, config/i386/i386v.mh,
8731 config/i386/i386v4.mh, config/i386/i386v42mp.mh,
8732 config/i386/ncr3000.mh, config/i386/ncr3000.mt,
8733 config/i386/nm-i386sco.h, config/i386/nm-i386sco4.h,
8734 config/i386/nm-i386sco5.h, config/i386/nm-i386v.h,
8735 config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h,
8736 config/m68k/cisco.mt, config/m68k/os68k.mt, config/m68k/st2000.mt,
8737 config/m68k/tm-cisco.h, config/m68k/tm-os68k.h,
8738 config/rs6000/rs6000lynx.mh, config/rs6000/rs6000lynx.mt,
8739 config/rs6000/tm-rs6000ly.h: Delete files.
8741 2007-03-29 Daniel Jacobowitz <dan@codesourcery.com>
8743 * defs.h (deprecated_registers_changed_hook): Delete declaration.
8744 * interps.c (clear_interpreter_hooks): Do not clear
8745 deprecated_registers_changed_hook.
8746 * regcache.c (registers_changed): Do not call it.
8747 * top.c (deprecated_registers_changed_hook): Do not define it.
8748 * mi/mi-interp.c (mi_command_loop): Do not clear it.
8749 * tui/tui-hooks.c (tui_install_hooks): Do not install it.
8750 (tui_remove_hooks): Do not remove it.
8751 (tui_selected_frame_level_changed_hook): Check for negative level.
8752 Use get_selected_frame.
8753 (tui_registers_changed_hook): Deleted.
8755 2007-03-29 Joel Brobecker <brobecker@adacore.com>
8757 * stabsread.c (add_undefined_type): Add extra parameter.
8758 Now handles nameless types separately.
8759 (struct nat): New type.
8760 (noname_undefs, noname_undefs_allocated, noname_undefs_length):
8761 New static variables.
8762 (read_type): Update calls to add_undefined_type.
8763 (add_undefined_type_noname): New function.
8764 (add_undefined_type_1): Renames from add_undefined_type.
8765 (cleanup_undefined_types_noname): New function.
8766 (cleanup_undefined_types_1): Renames cleanup_undefined_types.
8767 (cleanup_undefined_types): New handles nameless types separately.
8768 (_initialize_stabsread): Initialize our new static constants.
8770 2007-03-29 Denis Pilat <denis.pilat@st.com>
8772 * configure.ac: Test for signal.h.
8773 * configure, config.in: Regenerate.
8775 2007-03-29 Denis Pilat <denis.pilat@st.com>
8777 * stack.c (print_stack_frame): Always use LOC_AND_ADDRESS in MI output.
8778 * infrun.c (normal_stop): Remove MI specific frame printing treatment.
8780 2007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
8782 * arm-wince-tdep.c: New.
8783 * config/arm/wince.mt (DEPRECATED_TM_FILE): Use tm-arm.h.
8784 (MT_CFLAGS): Delete.
8786 (TDEPFILES): Add arm-wince-tdep.o, corelow.o, solib.o,
8787 solib-legacy.o, solib-svr4.o, and remove wince.o.
8788 * configure.tgt (arm*-*-mingw32ce*): Add.
8789 * signals/signals.c [HAVE_SIGNAL_H]: Check.
8790 (do_target_signal_to_host): Silence 'not used' warning.
8791 * config/arm/tm-wince.h: Remove.
8793 2007-03-28 Ulrich Weigand <uweigand@de.ibm.com>
8795 * arch-utils.c (legacy_pc_in_sigtramp): Remove.
8796 * arch-utils.h (legacy_pc_in_sigtramp): Remove.
8798 * config/ia64/linux.mt (DEPRECATED_TM_FILE): Remove.
8799 * config/ia64/tm-linux.h: Remove file.
8800 * ia64-tdep.h (struct gdbarch_tdep): Add pc_in_sigtramp callback.
8801 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Use it instead of
8802 legacy_pc_in_sigtramp.
8803 (ia64_gdbarch_init): Initialize tdep->pc_in_sigtramp.
8804 * ia64-linux-tdep.c (ia64_linux_pc_in_sigtramp): Make static.
8805 Remove func_name argument.
8806 (ia64_linux_init_abi): Install it as tdep->pc_in_sigtramp.
8808 * infrun.c (HAVE_STEPPABLE_WATCHPOINT): Do not redefine.
8809 * target.c (update_current_target): Add to_have_steppable_watchpoint.
8810 * target.h (struct target_ops): Add to_have_steppable_watchpoint.
8811 (HAVE_STEPPABLE_WATCHPOINT): Define.
8813 * config/ia64/linux.mh (NATDEPFILES): Remove core-aout.o.
8814 * config/ia64/nm-linux.h (KERNEL_U_ADDR, U_REGS_OFFSET,
8815 CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER,
8816 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_STEPPABLE_WATCHPOINT,
8817 STOPPED_BY_WATCHPOINT, target_stopped_data_address,
8818 target_insert_watchpoint, target_remove_watchpoint): Remove.
8819 (FETCH_INFERIOR_REGISTERS): Define.
8820 * ia64-linux-nat.c (ia64_register_addr): Make static.
8821 (ia64_cannot_fetch_register, ia64_cannot_store_register): Likewise.
8822 (ia64_linux_insert_watchpoint): Make static. Remove ptid_p argument.
8823 (ia64_linux_remove_watchpoint): Likewise. Add type argument.
8824 (ia64_linux_stopped_data_address): Make static. Add target_ops.
8825 (ia64_linux_stopped_by_watchpoint): Make static.
8826 (ia64_linux_can_use_hw_breakpoint): New function.
8827 (ia64_linux_fetch_register, ia64_linux_fetch_registers): Likewise.
8828 (ia64_linux_store_register, ia64_linux_store_registers): Likewise.
8829 (_initialize_ia64_linux_nat): Install register and watchpoint ops.
8831 2007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
8833 * linespec.c: Include language.h.
8834 (find_methods): Add language parameter. Call
8835 lookup_symbol_in_language. Pass language down.
8836 (add_matching_methods): Likewise. Call
8837 lookup_symbol_in_language.
8838 (add_constructors): Likewise.
8839 (find_method): Pass sym_class to collect_methods.
8840 (collect_methods): Add sym_class parameter. Pass language
8842 * symtab.c (lookup_symbol): Rename to ...
8843 (lookup_symbol_in_language): ... this. Add language
8844 parameter. Use passed language instead of current_language.
8845 (lookup_symbol): New as wrapper around
8846 lookup_symbol_in_language.
8847 (lookup_symbol_aux): Add language parameter. Use passed
8848 language instead of current_language.
8849 (search_symbols): Indent.
8850 * symtab.h (enum language): Forward declare.
8851 (lookup_symbol_in_language): Declare.
8852 (lookup_symbol): Update description.
8853 * ada-lang.h (lookup_symbol_in_language): Remove declaration.
8854 * ada-lang.c (restore_language): Remove.
8855 (lookup_symbol_in_language): Remove.
8857 2007-03-27 Pedro Alves <pedro_alves@portugalmail.pt>
8859 * breakpoint.c (bpstat_num): Add int *num parameter.
8860 * breakpoint.h (bpstat_num): Likewise.
8861 * infcmd.c (continue_command): Adjust to new bpstat_num
8863 (program_info): Likewise.
8865 2007-03-27 Ulrich Weigand <uweigand@de.ibm.com>
8867 * config/sh/tm-sh.h: Remove file.
8868 * config/sh/embed.mt (DEPRECATED_TM_FILE): Remove.
8869 * config/sh/linux.mt (DEPRECATED_TM_FILE): Remove.
8870 * config/sh/nbsd.mt (DEPRECATED_TM_FILE): Remove.
8871 * config/sh/tm-wince.h: Do not include "sh/tm-sh.h".
8873 2007-03-27 Ulrich Weigand <uweigand@de.ibm.com>
8875 * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT,
8876 DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Remove.
8877 * remote.c: Remove code under #ifdef DEPRECATED_REMOTE_BREAKPOINT,
8878 DEPRECATED_BIG_REMOTE_BREAKPOINT, DEPRECATED_LITTLE_REMOTE_BREAKPOINT.
8879 * sh-tdep.c (sh_breakpoint_from_pc): Return remote breakpoint
8880 sequence if target_shortname is "remote".
8882 2007-03-27 Anton Blanchard <anton@samba.org>
8884 * rs6000-tdep.c (rs6000_frame_cache): Use tdep->lr_frame_offset
8885 instead of wordsize when looking for the LR in a stack frame.
8887 2007-03-27 Andreas Schwab <schwab@suse.de>
8888 Daniel Jacobowitz <dan@codesourcery.com>
8890 * dwarf2-frame.c (dwarf2_frame_eh_frame_regnum): Rename to...
8891 (dwarf2_frame_adjust_regnum): ...this. Make static. Add eh_frame_p
8892 argument. Update all callers.
8893 (struct dwarf2_frame_ops): Replace eh_frame_regnum with adjust_regnum.
8894 (dwarf2_frame_set_eh_frame_regnum): Rename to...
8895 (dwarf2_frame_set_adjust_regnum): ...this. Update argument type.
8896 * dwarf2frame.h (dwarf2_frame_set_eh_frame_regnum): Rename to...
8897 (dwarf2_frame_set_adjust_regnum): ...this.
8898 (dwarf2_frame_eh_frame_regnum): Delete prototype.
8899 * rs6000-tdep.c: Include "dwarf2-frame.h".
8900 (rs6000_adjust_frame_regnum): Define.
8901 (rs6000_gdbarch_init): Enable use of DWARF CFI frame unwinder.
8902 Register rs6000_adjust_frame_regnum.
8904 * Makefile.in (rs6000-tdep.o): Update dependencies.
8906 2007-03-27 Brooks Moses <brooks.moses@codesourcery.com>
8908 * Makefile.in: Add support for a "pdf" target.
8910 2007-03-27 Daniel Jacobowitz <dan@codesourcery.com>
8912 * amd64-tdep.c (amd64_init_frame_cache): New function.
8913 (amd64_alloc_frame_cache, amd64_skip_prologue): Use it.
8915 2007-03-26 Nigel Stephens <nigel@mips.com>
8916 Maciej W. Rozycki <macro@mips.com>
8918 * ui-out.c (ui_out_field_core_addr): Truncate address to
8919 TARGET_ADDR_BIT size before printing.
8921 2007-03-22 Nigel Stephens <nigel@mips.com>
8922 Maciej W. Rozycki <macro@mips.com>
8924 * remote-mips.c (mips_xfer_memory): Update prototype.
8926 2007-03-22 Joel Brobecker <brobecker@adacore.com>
8928 * symfile.h: #include "symtab.h"
8930 2007-03-22 Denis Pilat <denis.pilat@st.com>
8932 * utils.c (pagination_on_command, pagination_off_command):
8933 Remove useless prototypes.
8935 2007-03-21 Pierre Muller <muller@ics.u-strasbg.fr>
8938 * p-valprint.c (pascal_object_print_value): Use type_name_no_tag
8939 instead of TYPE_NAME for object base class name.
8942 2007-03-19 Kevin Buettner <kevinb@redhat.com>
8944 * mep-tdep.c (mep_analyze_frame_prologue, mep_frame_this_id):
8945 Specify frame type in calls to frame_func_unwind().
8947 2007-03-13 Daniel Jacobowitz <dan@codesourcery.com>
8949 * rs6000-tdep.c (rs6000_skip_prologue): Use skip_prologue_using_sal.
8950 (rs6000_in_function_epilogue_p): Use extract_unsigned_integer.
8951 (refine_prologue_limit): Delete.
8952 (skip_prologue): Don't call it. Use extract_unsigned_integer.
8953 Assume lim_pc is set. Correct check for incomplete prologues.
8954 Do not skip clobbers of the frame pointer.
8955 * symtab.c (skip_prologue_using_sal): Fail if there is only one
8958 2007-03-13 Nathan Froyd <froydnj@codesourcery.com>
8960 * frame.c (frame_pop): Check to see whether there's a frame to
8961 which we can pop first.
8963 2007-03-13 Nathan Froyd <froydnj@codesourcery.com>
8965 * MAINTAINERS (Write After Approval): Add myself.
8967 2007-03-09 Markus Deuling <deuling@de.ibm.com>
8969 * infrun.c (breakpoints_failed): Remove unnecessary variable.
8970 (handle_inferior_event): Remove unnecessary braces.
8971 * breakpoint.c (bpstat_what): Remove wrong comment.
8973 2007-03-09 Ulrich Weigand <uweigand@de.ibm.com>
8975 * spu-tdep.c (spu_in_function_epilogue_p): New function.
8976 (spu_gdbarch_init): Install it.
8978 2007-03-08 Ulrich Weigand <uweigand@de.ibm.com>
8980 * spu-linux-nat.c (spu_xfer_partial): Return -1 for unsupported
8981 object types, not 0.
8983 2007-03-08 Ulrich Weigand <uweigand@de.ibm.com>
8985 * spu-tdep.c (spu_frame_align): New function.
8986 (spu_gdbarch_init): Install it. Set call dummy location to ON_STACK.
8988 2007-03-08 Ulrich Weigand <uweigand@de.ibm.com>
8990 * spu-tdep.c (spu_unwind_pc): Mask off interrupt enable bit.
8991 (spu_software_single_step): Likewise.
8992 (spu_read_pc, spu_write_pc): New functions.
8993 (spu_gdbarch_init): Install them.
8995 2007-03-08 Ulrich Weigand <uweigand@de.ibm.com>
8997 * cli/cli-dump.c (struct callback_data): load_offset needs to
8998 have signed long type.
9000 2007-03-07 Joel Brobecker <brobecker@adacore.com>
9002 * mips-tdep.c (mips_insn16_frame_cache, mips_insn32_frame_sniffer):
9003 Revert the previous change that had some unexpected side-effects
9005 (mips_insn16_frame_cache, mips_insn32_frame_cache): Use the proper
9006 function to get the address of the calling instruction.
9008 2007-03-07 Denis Pilat <denis.pilat@st.com>
9010 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Replace
9011 get_selected_frame by deprecated_safe_get_selected_frame.
9013 2007-03-02 Mark Kettenis <kettenis@gnu.org>
9015 * shnbsd-tdep.c: Include "regset.h", "gdb_assert.h" and
9016 "gdb_string.h". Don't include "nbsd-tdep.h".
9017 (SIZEOF_STRUCT_REG): Remove.
9018 (SHNBSD_SIZEOF_GREGS): New.
9019 (shnbsd_supply_gregset, shnbsd_collect_gregset)
9020 (shnbsd_regset_from_core_section): New functions.
9021 (fetch_core_registers, fetch_elfcore_registers): Remove functions.
9022 (shnbsd_supply_reg, shnbsd_fill_reg): Simply call
9023 shnbsd_supply_gregset, shnbsd_collect_gregset.
9024 (shnbsd_gregset): New variable.
9025 (shnbsd_init_abi): Set regset_from_core_section.
9026 (GDB_OSABI_NETBSD_CORE): New define.
9027 (shnbsd_core_osabi_sniffer): New function.
9028 (_initialize_shnbsd_tdep): Register shnbsd_core_osabi_sniffer.
9029 * Makefile.in (shnbsd-tdep.o): Update dependencies.
9030 * config/sh/nbsd.mt (TDEPFILES): Add corelow.o, remove
9032 * config/sh/obsd.mt (TDEPFILES): Remove nbsd-tdep.o.
9034 2007-02-28 Joel Brobecker <brobecker@adacore.com>
9036 * gdbtypes.c (replace_type): Fix typo that caused us to not update
9037 length of the types referenced by the new type CV ring.
9039 2007-02-28 Daniel Jacobowitz <dan@codesourcery.com>
9041 * frame.c (frame_pop, frame_observer_target_changed): Call
9043 (flush_cached_frames): Rename to reinit_frame_cache and delete
9045 * frame.h (flush_cached_frames): Delete prototype and update comment.
9047 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd): Call
9048 reinit_frame_cache instead of flush_cached_frames. Do not call
9049 select_frame after reinit_frame_cache.
9050 * corelow.c (core_open): Likewise.
9051 * gdbarch.sh (deprecated_current_gdbarch_select_hack): Likewise.
9052 * infrun.c (prepare_to_proceed, context_switch)
9053 (handle_inferior_event): Likewise.
9054 * linux-fork.c (fork_load_infrun_state): Likewise.
9055 * ocd.c (ocd_start_remote): Likewise.
9056 * remote-e7000.c (e7000_start_remote): Likewise.
9057 * remote-mips.c (device): Likewise.
9058 * thread.c (switch_to_thread): Likewise.
9059 * tracepoint.c (finish_tfind_command): Likewise.
9060 * gdbarch.c: Regenerated.
9062 2007-02-28 Jerome Guitton <guitton@adacore.com>
9063 Joel Brobecker <brobecker@adacore.com>
9065 * gdbtypes.c (check_typedef): Do not replace stub type if
9066 the resolved type is not defined in the same objfile.
9068 2007-02-28 Daniel Jacobowitz <dan@codesourcery.com>
9070 * top.c (gdb_readline_wrapper_cleanup): Remove invalid assertion.
9072 2007-02-28 Joel Brobecker <brobecker@adacore.com>
9074 * stabsread.c (define_symbol): Create an associated STRUCT_DOMAIN
9075 symbol for Ada units when the symbol is defined using 't' rather
9076 than 'Tt' as symbol descriptor.
9078 2007-02-28 Ulrich Weigand <uweigand@de.ibm.com>
9080 * config/mips/tm-nbsd.h: Delete file.
9081 * config/mips/nbsd.mt (DEPRECATED_TM_FILE): Remove.
9082 * config/sh/tm-nbsd.h: Delete file.
9083 * config/sh/nbsd.mt (DEPRECATED_TM_FILE): Set to tm-sh.h.
9085 2007-02-28 Joel Brobecker <brobecker@adacore.com>
9087 * mi/mi-cmd-var.c (varobj_update_one): Remove reference to
9088 unused WRONG_PARAM value since it was recently deleted.
9090 2007-02-28 Vladimir Prus <vladimir@codesourcery.com>
9092 * varobj.c (varobj_update): Free temporary vectors.
9094 2007-02-28 Ulrich Weigand <uweigand@de.ibm.com>
9096 * config/powerpc/linux.mt (DEPRECATED_TM_FILE): Set to tm-ppc-eabi.h.
9097 * config/powerpc/tm-linux.h: Delete file.
9098 * config/powerpc/tm-ppc-eabi.h: Do not include "rs6000/tm-rs6000.h".
9099 (PROCESS_LINENUMBER_HOOK): Do not undefine.
9100 (TEXT_SEGMENT_BASE): Do not redefine.
9101 * config/rs6000/nm-rs6000.h (CHILD_SPECIAL_WAITSTATUS): Move here
9102 from config/rs6000/tm-rs6000.h.
9103 (TARGET_CREATE_INFERIOR_HOOK, rs6000_create_inferior): Likewise.
9104 * config/rs6000/tm-rs6000.h (struct frame_info): Remove declaration.
9105 (TEXT_SEGMENT_BASE): Remove.
9106 (IN_SOLIB_RETURN_TRAMPOLINE): Remove.
9107 (rs6000_in_solib_return_trampoline): Remove.
9108 (SKIP_TRAMPOLINE_CODE): Remove.
9109 (rs6000_skip_trampoline_code): Remove.
9110 (CHILD_SPECIAL_WAITSTATUS): Move to config/rs6000/nm-rs6000.h.
9111 (TARGET_CREATE_INFERIOR_HOOK, rs6000_create_inferior): Likewise.
9112 (FP0_REGNUM): Remove.
9113 (rs6000_find_toc_address_hook): Move to rs6000-tdep.h.
9114 (rs6000_set_host_arch_hook): Remove.
9115 * Makefile.in (rs6000-nat.o): Add dependency on $(rs6000_tdep_h).
9116 (rs6000-aix-tdep.o): Add dependency on $(ppc_tdep_h).
9117 * ppc-tdep.h (struct gdbarch_tdep): Add field text_segment_base.
9118 * rs6000-aix-tdep.c: Include "ppc-tdep.h".
9119 (rs6000_aix_init_osabi): Set text_segment_base tdep field.
9120 * rs6000-nat.c: Include "rs6000-tdep.h".
9121 (exec_one_dummy_insn): Replace TEXT_SEGMENT_BASE by tdep field.
9122 (set_host_arch): Rename to ...
9123 (rs6000_create_inferior): ... this. Make public.
9124 (_initialize_core_rs6000): Do not set rs6000_set_host_arch_hook.
9125 * rs6000-tdep.c (rs6000_set_host_arch_hook): Remove.
9126 (rs6000_create_inferior): Remove.
9127 (branch_dest): Replace TEXT_SEGMENT_BASE by tdep field.
9128 (rs6000_gdbarch_init): Call set_gdbarch_fp0_regnum,
9129 set_gdbarch_in_solib_return_trampoline, and
9130 set_gdbarch_skip_trampoline_code.
9131 * rs6000-tdep.h (rs6000_find_toc_address_hook): Move here
9132 from config/rs6000/tm-rs6000.h.
9134 2007-02-27 Joel Brobecker <brobecker@adacore.com>
9136 * buildsym.c (record_producer): Do nothing if no producer is provided.
9138 2007-02-27 Nick Roberts <nickrob@snap.net.nz>
9140 * varobj.c (varobj_update): Remove unused local. Use gdb_assert
9141 to check changelist is non-NULL. Call error if the frontend tries
9142 to update a non-root variable.
9144 * varobj.h (enum varobj_update_error): Delete WRONG_PARAM value.
9146 2007-02-27 Daniel Jacobowitz <dan@codesourcery.com>
9148 * dwarf2-frame.c (dwarf2_frame_cache, dwarf2_frame_this_id)
9149 (dwarf2_frame_sniffer): Update.
9150 (dwarf2_signal_frame_this_id): New function.
9151 (dwarf2_signal_frame_unwind): Use it.
9152 (dwarf2_frame_base_sniffer): Use frame_unwind_address_in_block.
9153 * frame.c (frame_func_unwind): Add this_type argument.
9154 (get_frame_func): Update.
9155 (frame_unwind_address_in_block): Add this_type argument and check it.
9157 (get_frame_address_in_block): Update.
9158 * frame.h (enum frame_type): Move higher in the file.
9159 (frame_unwind_address_in_block, frame_func_unwind): Add enum frame_type
9162 * alpha-mdebug-tdep.c, alpha-tdep.c, amd64-tdep.c, amd64obsd-tdep.c,
9163 arm-tdep.c, avr-tdep.c, cris-tdep.c, frv-tdep.c, h8300-tdep.c,
9164 hppa-tdep.c, i386-tdep.c, i386obsd-tdep.c, ia64-tdep.c,
9165 libunwind-frame.c, m32c-tdep.c, m32r-linux-tdep.c, m32r-tdep.c,
9166 m68hc11-tdep.c, m68k-tdep.c, m88k-tdep.c, mips-mdebug-tdep.c,
9167 mips-tdep.c, mn10300-tdep.c, mt-tdep.c, rs6000-tdep.c, s390-tdep.c,
9168 score-tdep.c, sh-tdep.c, sh64-tdep.c, sparc-tdep.c,
9169 sparc64obsd-tdep.c, spu-tdep.c, v850-tdep.c, vax-tdep.c,
9170 xstormy16-tdep.c, xtensa-tdep.c: Update calls to
9171 frame_func_unwind and frame_unwind_address_in_block to specify
9172 the frame type. Use frame_unwind_address_in_block instead of
9173 frame_pc_unwind in sniffers.
9175 2007-02-27 Daniel Jacobowitz <dan@codesourcery.com>
9177 * frame.c (deprecated_selected_frame): Rename to...
9178 (selected_frame): ...this. Make static.
9179 (get_selected_frame, select_frame): Update.
9180 * frame.h (deprected_select_frame): Delete.
9181 (deprecated_safe_get_selected_frame): Update comments.
9183 * breakpoint.c, cli/cli-cmds.c, f-valprint.c, infcmd.c, inflow.c,
9184 infrun.c, stack.c, tui/tui-disasm.c, tui/tui-source.c,
9185 tui/tui-winsource.c, valops.c, varobj.c, findvar.c, macroscope.c,
9186 parse.c, regcache.h, sh64-tdep.c, tui/tui-hooks.c, tui/tui-win.c,
9187 tui/tui.c: Replace references to deprecated_selected_frame.
9189 2007-02-27 Fred Fish <fnf@specifix.com>
9191 * rs6000-tdep.c (skip_prologue): Recognize addi instructions that
9192 directly decrement the stack pointer, accumulate their operand into
9193 the stack offset, and mark the function as not being frameless.
9195 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
9197 * arch-utils.c (selected_byte_order): New.
9198 * arch-utils.h (selected_byte_order): New prototype.
9199 * remote-sim.c (gdbsim_open): Use selected_byte_order.
9201 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
9203 * symfile.c (place_section): Check SEC_ALLOC. Do not check VMA.
9204 (default_symfile_offsets): Check VMA here. Update section VMAs.
9206 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
9208 * remote.c (init_remote_state): Add special handling for placeholder
9211 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
9213 * Makefile.in (XMLFILES): Include $(TDEP_XML).
9214 (filenames_h): New variable.
9215 (clean): Clean up xml-builtin.c and stamp-xml.
9216 (arm-linux-nat.o): Update.
9217 * config/arm/linux.mh (TDEP_XML): Define.
9218 * arm-linux-nat.c (PTRACE_GETWMMXREGS, PTRACE_SETWMMXREGS): Define.
9219 (arm_linux_has_wmmx_registers): New.
9220 (GET_THREAD_ID): Fix typo.
9221 (IWMMXT_REGS_SIZE): Define.
9222 (fetch_wmmx_regs, store_wmmx_regs): New.
9223 (arm_linux_fetch_inferior_registers): Use fetch_wmmx_regs.
9224 (arm_linux_store_inferior_registers): Use store_wmmx_regs.
9225 (super_xfer_partial, arm_linux_xfer_partial): New.
9226 (_initialize_arm_linux_nat): Use them.
9227 * xml-support.c (fetch_xml_builtin): Move outside HAVE_LIBEXPAT.
9228 (xml_builtin_xfer_partial): New function.
9229 * xml-support.h (xml_builtin_xfer_partial): New prototype.
9230 * NEWS: Update mention of iWMMXt support.
9232 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
9234 * arm-tdep.c (arm_scan_prologue): Do not record FPA register saves
9235 if there are no FPA registers.
9236 (arm_dwarf_reg_to_regnum): New function.
9237 (arm_register_type, arm_register_name): Return minimal values for
9238 unsupported registers.
9239 (arm_register_sim_regno): Handle iWMMXt registers.
9240 (arm_gdbarch_init): Record missing FPA registers if indicated by
9241 a target description. Recognize iWMMXt registers. Only register
9242 "info float" for FPA. Use ARM_NUM_REGS. Register
9243 arm_dwarf_reg_to_regnum.
9244 * arm-tdep.h (enum gdb_regnum): Add ARM_NUM_REGS and iWMMXt
9246 (struct gdbarch_tdep): Add have_fpa_registers.
9247 * features/xscale-iwmmxt.xml: Update capitalization.
9248 * regformats/arm-with-iwmmxt.dat: Regenerated.
9250 2007-02-24 Kevin Buettner <kevinb@redhat.com>
9252 * NEWS (New targets): Add entry for the Toshiba Media Processor.
9254 2007-02-23 Kevin Buettner <kevinb@redhat.com>
9256 * MAINTAINERS (mep): New target.
9258 2007-02-23 Kevin Buettner <kevinb@redhat.com>
9260 From Jim Blandy, Dave Brolley, Kevin Buettner, Don Howard, and
9262 * Makefile.in (elf_mep_h, mep_desc_h, mep_opc_h): New variables.
9263 (mep-tdep.o): New rule.
9264 * configure.tgt (mep-*-*): New target.
9265 * mep-tdep.c: New file.
9266 * config/mep/mep.mt: New file.
9268 2007-02-22 Markus Deuling <deuling@de.ibm.com>
9270 * infrun.c (inferior_stop_reason, print_stop_reason): Remove
9271 BREAKPOINT_HIT and STOP_UNKNOWN.
9273 2007-02-22 Markus Deuling <deuling@de.ibm.com>
9275 * valops.c (value_ind): Fix unary * handling of TYPE_CODE_INT.
9277 2007-02-20 Joel Brobecker <brobecker@adacore.com>
9279 * gdb_expat.h (XMLCALL): Define if not already defined.
9281 2007-02-20 Andreas Schwab <schwab@suse.de>
9283 * Makefile.in (symfile.o): Update dependencies.
9285 2007-02-20 Daniel Jacobowitz <dan@codesourcery.com>
9287 * MAINTAINERS: Disable -Werror for cris simulator. Build
9288 sparc64-solaris2.10 instead of the broken sparc-elf.
9289 * solib-frv.c: Include "solib.h".
9290 * Makefile.in (solib-frv.o): Update.
9291 * mt-tdep.c (mt_gdbarch_init): Correct typo in floatformats patch.
9292 * xtensa-tdep.c (xtensa_regset_from_core_section): Cast size_t to int.
9293 (xtensa_frame_this_id, xtensa_frame_prev_register)
9294 (xtensa_push_dummy_call): Use %p.
9296 2007-02-16 Daniel Jacobowitz <dan@codesourcery.com>
9298 * avr-tdep.c, hppa-tdep.c, hppabsd-tdep.c, i386-tdep.c,
9299 ia64-tdep.c, m68k-tdep.c, mips-linux-tdep.c, ppcobsd-tdep.c,
9300 sparc-linux-tdep.c: Include "gdbtypes.h" instead of "floatformat.h".
9301 * Makefile.in (avr-tdep.o, hppabsd-tdep.o, hppa-tdep.o, i386-tdep.o)
9302 (ia64-tdep.o, m68k-tdep.o, mips-linux-tdep.o, ppcobsd-tdep.o)
9303 (sparc-linux-tdep.o): Update.
9305 2007-02-15 Maxim Grigoriev <maxim2405@gmail.com>
9307 * xtensa-tdep.h (xtensa_reg_mask_t): New.
9308 (xtensa_mask_t): Change mask field to be a separate array.
9309 * xtensa-tdep.c (extract_call_winsize, xtensa_pseudo_register_read)
9310 (xtensa_pseudo_register_write, xtensa_unwind_pc)
9311 (xtensa_unwind_dummy_id, xtensa_push_dummy_call)
9312 (xtensa_breakpoint_from_pc): Remove implicit type casting.
9313 * xtensa-config.c (mask0, mask1, mask2, mask3, mask4, mask5)
9314 (mask6, mask7, mask8, mask9, mask10, mask11, mask12, mask13)
9315 (mask14, mask15): Rename to
9316 (xtensa_mask0, xtensa_mask1, xtensa_mask2, xtensa_mask3)
9317 (xtensa_mask4, xtensa_mask5, xtensa_mask6, xtensa_mask7)
9318 (xtensa_mask8, xtensa_mask9, xtensa_mask10, xtensa_mask11)
9319 (xtensa_mask12, xtensa_mask13, xtensa_mask14, xtensa_mask15): this.
9320 (xtensa_submask0, xtensa_submask1, xtensa_submask2, xtensa_submask3)
9321 (xtensa_submask4, xtensa_submask5, xtensa_submask6, xtensa_submask7)
9322 (xtensa_submask8, xtensa_submask9, xtensa_submask10)
9323 (xtensa_submask11, xtensa_submask12, xtensa_submask13)
9324 (xtensa_submask14, xtensa_submask15): New.
9325 (rmap): Follow strict aliasing rules doing static initialization.
9327 2007-02-13 Daniel Jacobowitz <dan@codesourcery.com>
9329 * target-descriptions.c (tdesc_named_type): Move code_ptr and data_ptr
9330 handling from here...
9331 (tdesc_register_type): ...to here.
9332 * xml-tdesc.c (tdesc_start_reg): Allow code_ptr and data_ptr.
9333 * features/arm-core.xml: Use code_ptr and data_ptr.
9335 2007-02-13 Denis Pilat <denis.pilat@st.com>
9337 * varobj.h (enum varobj_update_error): New enum.
9338 * varobj.c (struct varobj_root): Add is_valid member.
9339 (varobj_get_type): Check for invalid varobj.
9340 (varobj_get_attributes): Likewise.
9341 (variable_editable):Likewise.
9342 (varobj_update): Likewise. Use varobj_update_error.
9343 (new_root_variable): Set root varobj as valid by default.
9344 (varobj_invalidate): New function.
9345 * symfile.c (clear_symtab_users): Use varobj_invalidate.
9346 * mi/mi-cmd-var.c (varobj_update_one): Change return type to void.
9347 Use varobj_update_error.
9349 2007-02-12 Pierre Muller <muller@ics.u-strasbg.fr>
9352 * dwarfread.c (set_cu_language): Recognize DW_LANG_Pascal83 as
9353 Pascal language marker.
9354 * dwarf2read.c (set_cu_language): Likewise.
9356 2007-02-12 Corinna Vinschen <vinschen@redhat.com>
9358 * win32-nat.c (win32_wait): Reset terminal pgrp to GDB.
9359 (do_initial_win32_stuff): Call terminal_init_inferior_with_pgrp
9360 instead of target_terminal_init since inferior_ptid isn't set yet.
9362 2007-02-10 Pedro Alves <pedro_alves@portugalmail.pt>
9364 * MAINTAINERS (Write After Approval): Add myself.
9366 2007-02-09 Fred Fish <fnf@specifix.com>
9368 Based on work by Apple Computer, Inc.
9369 * event-top.c (async_request_quit): Call quit() whenever either
9370 quit_flag is set or immediate_quit is set.
9372 2007-02-09 Gabriel Dos Reis <gdr@integrable-solutions.net>
9374 * ada-lang.c (remove_out_of_scope_renamings): Change third parameter's
9375 type to a pointer to const struct block.
9376 (ada_lookup_symbol_list): Don't cast away constness when calling
9377 remove_out_of_scope_renamings.
9379 2007-02-09 Gabriel Dos Reis <gdr@integrable-solutions.net>
9381 * linux-nat.c (linux_nat_find_memory_regions): Don't check the
9382 address of 'filename'; it is always non null.
9384 2007-02-09 Joel Brobecker <brobecker@adacore.com>
9386 * exec.c (add_to_section_table): Do not discard empty sections.
9388 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
9390 * features/Makefile, features/arm-with-iwmmxt.xml,
9391 features/gdbserver-regs.xsl, features/number-regs.xsl,
9392 features/sort-regs.xsl, features/xscale-iwmmxt.xml: New files.
9393 * regformats/arm-with-iwmmxt.dat: Generate.
9394 * NEWS: Mention iWMMXt.
9396 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
9398 * Makefile.in (arm-tdep.o, eval.o, target-descriptions.o)
9399 (xml-tdesc.o): Update.
9400 * xml-support.c: Add a comment.
9401 (gdb_xml_enums_boolean): New variable.
9402 (gdb_xml_parse_attr_enum): Use strcasecmp.
9403 * xml-support.h (gdb_xml_enums_boolean): Declare.
9404 * xml-tdesc.c (struct tdesc_parsing_data): Record current_feature,
9405 next_regnum, and current_union.
9406 (tdesc_start_feature, tdesc_start_reg, tdesc_start_union)
9407 (tdesc_end_union, tdesc_start_field, tdesc_start_vector)
9408 (field_attributes, union_children, reg_attributes, union_attributes)
9409 (vector_attributes, feature_attributes, feature_children): New.
9410 (target_children): Make static. Add <feature>.
9411 (tdesc_elements): Make static.
9412 * target-descriptions.c (struct tdesc_reg, tdesc_reg_p, type_p)
9413 (struct tdesc_feature, tdesc_feature_p): New types.
9414 (struct target_desc): Add features member.
9415 (struct tdesc_arch_data, tdesc_data): New.
9416 (target_find_description): Clarify error message. Warn about
9417 ignored register descriptions.
9418 (tdesc_has_registers, tdesc_find_feature, tdesc_feature_name)
9419 (tdesc_named_type, tdesc_data_init, tdesc_data_alloc)
9420 (tdesc_data_cleanup, tdesc_numbered_register)
9421 (tdesc_numbered_register_choices, tdesc_find_register)
9422 (tdesc_register_name, tdesc_register_type)
9423 (tdesc_remote_register_number, tdesc_register_reggroup_p)
9424 (set_tdesc_pseudo_register_name, set_tdesc_pseudo_register_type)
9425 (set_tdesc_pseudo_register_reggroup_p, tdesc_use_registers)
9426 (tdesc_free_reg, tdesc_create_reg, tdesc_free_feature)
9427 (tdesc_create_feature, tdesc_record_type): New.
9428 (free_target_description): Free features.
9429 (_initialize_target_descriptions): Initialize tdesc_data.
9430 * arch-utils.c (default_remote_register_number): New.
9431 * arch-utils.h (default_remote_register_number): New prototype.
9432 * target-descriptions.h (set_tdesc_pseudo_register_name)
9433 (set_tdesc_pseudo_register_type, set_tdesc_pseudo_register_reggroup_p)
9434 (tdesc_use_registers, tdesc_data_alloc, tdesc_data_cleanup)
9435 (tdesc_numbered_register, tdesc_numbered_register_choices)
9436 (tdesc_has_registers, tdesc_find_feature, tdesc_feature_name)
9437 (tdesc_named_type, tdesc_create_feature, tdesc_record_type)
9438 (tdesc_create_reg): Declare.
9439 * gdbarch.sh (remote_register_number): New entry.
9440 * gdbarch.c, gdbarch.h: Regenerate.
9441 * remote.c (init_remote_state): Use gdbarch_remote_register_number.
9442 * features/gdb-target.dtd: Add feature, reg, vector, union, and field.
9444 * arm-tdep.c (arm_register_aliases): New.
9445 (arm_register_name_strings): Rename to...
9446 (arm_register_names): ...this. Make const. Delete the old version.
9447 (current_option, arm_register_byte): Delete.
9448 (set_disassembly_style): Simplify. Do not adjust arm_register_names.
9449 (value_of_arm_user_reg): New.
9450 (arm_gdbarch_init): Verify any described registers. Call
9451 tdesc_use_registers. Don't use arm_register_byte. Create aliases
9452 for standard register names.
9453 (_initialize_arm_tdep): Do not adjust arm_register_names.
9454 * user-regs.c (struct user_reg): Add baton member.
9455 (append_user_reg, user_reg_add_builtin, user_regs_init)
9456 (user_reg_add, value_of_user_reg): Use a baton for user
9458 * std-regs.c: Update.
9459 * user-regs.h (user_reg_read_ftype, user_reg_add_builtin)
9460 (user_reg_add): Add baton argument.
9461 * NEWS: Mention target description register support.
9462 * features/arm-core.xml, features/arm-fpa.xml: New.
9463 * eval.c (evaluate_subexp_standard): Allow ptype $register
9464 when the program is not running.
9466 2007-02-09 Nick Roberts <nickrob@snap.net.nz>
9468 * mi/mi-cmd-var.c (mi_cmd_var_create): Add value field.
9470 2007-02-08 Thiago Jung Bauermann <bauerman@br.ibm.com>
9472 * rs6000-tdep.c (gdb_print_insn_powerpc): Set
9473 info->disassembler_options to "any".
9475 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
9477 * varobj.c (install_new_value): Only call value_get_print_value
9480 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
9482 Reported by timeless@gmail.com:
9483 * gdb/target.c (target_flash_erase): Do not return void value.
9484 (target_flash_done): Likewise.
9485 * gdb/cli/cli-cmds.c (source_command): Likewise.
9487 2007-02-08 Fred Fish <fnf@specifix.com>
9489 Based on work by Apple Computer, Inc.
9490 * event-top.c (handle_sigint): Set quit_flag.
9491 (async_request_quit): Don't set quit_flag. Avoid calling quit()
9492 if quit_flag has already been reset.
9494 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
9496 * ser-mingw.c (pipe_windows_close): Move variable initialization back
9499 2007-02-08 Fred Fish <fnf@specifix.com>
9501 * defs.h (request_quit): Remove declaration.
9502 * utils.c (request_quit): Remove definition.
9504 2007-02-08 Joel Brobecker <brobecker@gnat.com>
9505 Jan Kratochvil <jan.kratochvil@redhat.com>
9506 Daniel Jacobowitz <dan@codesourcery.com>
9508 * rs6000-tdep.c (bl_to_blrl_insn_p): New function.
9509 (skip_prologue): Allow bl->blrl used by PIC code.
9511 2007-02-08 Mark Kettenis <kettenis@gnu.org>
9512 Daniel Jacobowitz <dan@codesourcery.com>
9514 * cp-valprint.c (cp_print_value_fields, cp_print_value): Always
9515 initialize tmp_obstack.
9516 * p-valprint.c (pascal_object_print_value_fields)
9517 (pascal_object_print_value): Likewise.
9519 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
9521 * features/feature_to_c.sh: Use %s to avoid problems with nawk.
9523 2007-02-08 Mark Kettenis <kettenis@gnu.org>
9525 * sparcnbsd-tdep.c: Include "gdbtypes.h" instead of "floatformat.h".
9526 * Makefile.in (sparcnbsd-tdep.o): Update dependencies.
9528 2007-02-07 Daniel Jacobowitz <dan@codesourcery.com>
9530 * xml-tdesc.c (struct tdesc_xml_cache, tdesc_xml_cache_s)
9532 (tdesc_parse_xml): Cache expanded descriptions.
9534 2007-02-07 Daniel Jacobowitz <dan@codesourcery.com>
9536 * Makefile.in (XMLFILES): New.
9537 (COMMON_OBS): Add xml-builtin.o.
9538 (xml-builtin.c, stamp-xml): New rules.
9539 (xml-tdesc.o): Update.
9540 * features/feature_to_c.sh: New file.
9541 * xml-support.c (MAX_XINCLUDE_DEPTH): Define.
9542 (struct gdb_xml_parser): Add dtd_name and is_xinclude.
9543 (gdb_xml_start_element): Initialize scope after possibly reallocating
9544 scopes. Move cleanup later. Handle the XInclude description
9546 (gdb_xml_end_element): Only parse the body if there is a current element.
9547 Call XML_DefaultCurrent if there is no element.
9548 (gdb_xml_fetch_external_entity, gdb_xml_use_dtd): New.
9549 (struct xinclude_parsing_data, xinclude_start_include)
9550 (xinclude_end_include, xml_xinclude_default)
9551 (xml_xinclude_start_doctype, xml_xinclude_end_doctype)
9552 (xml_xinclude_xml_decl, xml_xinclude_cleanup, xinclude_attributes)
9553 (xinclude_elements, xml_process_xincludes, fetch_xml_builtin): New.
9554 * xml-support.h (xml_fetch_another, xml_process_xincludes)
9555 (fetch_xml_builtin, xml_builtin, gdb_xml_use_dtd): New declarations.
9556 * xml-tdesc.c (tdesc_parse_xml): Add fetcher_baton argument. Expand
9557 XInclude directives. Use the compiled in DTD.
9558 (fetch_xml_from_file): Add baton argument. Treat it as a containing
9559 directory name. Do not warn here.
9560 (file_read_description_xml): Update call. Warn here instead. Pass
9562 (fetch_available_features_from_target): New.
9563 (target_read_description_xml): Use it.
9564 * features/gdb-target.dtd: Add copyright notice. Use xinclude.dtd
9566 * features/xinclude.dtd: New file.
9568 2007-02-05 Daniel Jacobowitz <dan@codesourcery.com>
9570 * linux-thread-db.c (check_for_thread_db): Return early if we have
9571 no libthread_db support.
9573 2007-02-05 Daniel Jacobowitz <dan@codesourcery.com>
9575 * mi/mi-parse.h: Include <sys/time.h>.
9577 2007-02-05 Nick Roberts <nickrob@snap.net.nz>
9579 * mi/mi-cmd-stack.c (list_args_or_locals): Use common_val_print
9580 instead of print_variable_value to print values.
9582 2007-02-03 Nick Roberts <nickrob@snap.net.nz>
9584 * mi/mi-main.c: Numerous formatting changes.
9585 (mi_cmd_data_write_register_values): Replace clause inadvertantly
9586 removed in my previous change.
9588 2007-02-03 Eli Zaretskii <eliz@gnu.org>
9590 * mi/mi-main.c (mi_load_progress, timestamp, print_diff_now):
9591 Use 1000000L instead of 1000000.
9593 2007-02-03 Nick Roberts <nickrob@snap.net.nz>
9595 Based on work by Apple Computer, Inc.
9597 * configure.ac: Test for sys/resource.h and getrusage.
9598 * configure, config.in: Regenerate.
9600 * mi/mi-main.c: Include <sys/resource.h> if present.
9601 (rusage): Declare if HAVE_GETRUSAGE.
9602 (current_command_ts, do_timings): New static variables.
9603 (timestamp, print_diff_now, print_diff, timeval_diff):
9604 New static timing functions.
9605 (mi_cmd_enable_timings): New function for new MI command.
9606 (captured_mi_execute_command, mi_execute_async_cli_command):
9607 Call timing functions.
9609 * mi/mi-cmds.c (mi_cmds): Add entry for new MI command
9612 * mi/mi-cmds.h (mi_cmd_enable_timings): New extern.
9614 * mi/mi-parse.h: (mi_timestamp): New structure.
9615 (mi_parse): Add mi_timestamp* member.
9617 2007-02-02 Denis Pilat <denis.pilat@st.com>
9619 * thread.c (make_cleanup_restore_current_thread): New function.
9620 (info_threads_command): Use of make_cleanup_restore_current_thread
9621 to restore the current thread and the selected frame.
9622 (restore_selected_frame): New function.
9623 (struct current_thread_cleanup): Add frame_id field.
9624 (do_restore_current_thread_cleanup): Add restoring of the selected
9626 (make_cleanup_restore_current_thread): Likewise.
9627 (thread_apply_all_command): backup the selected frame while
9628 entering the function and restore it at exit.
9629 (thread_apply_command): Likewise.
9631 2007-02-02 Denis Pilat <denis.pilat@st.com>
9633 * MAINTAINERS (Write After Approval): Add myself to the list.
9635 2007-02-01 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
9637 * gdb/remote-m32r.sdi.c (m32r_fetch_register): Change PWD mask.
9638 (m32r_store_register): Ditto.
9640 2007-01-30 Vladimir Prus <vladimir@codesourcery.com>
9642 * ser-mingw.c (pipe_windows_open)
9643 (pipe_windows_read, pipe_windows_write): Declare
9644 variables at the top of the function.
9646 2007-01-29 Daniel Jacobowitz <dan@codesourcery.com>
9648 * doublest.c (floatformat_from_length): Use the right element from
9649 gdbarch floatformats.
9650 (floatformat_from_type, extract_typed_floating)
9651 (store_typed_floating): Likewise.
9652 * doublest.h: Remove declarations for undefined floatformat arrays.
9653 * gdbarch.sh (float_format, double_format, long_double_format): Change
9655 (pformat): Update for pairs.
9656 * gdbarch.c, gdbarch.h: Regenerated.
9657 * gdbtypes.c (floatformats_ieee_single, floatformats_ieee_double)
9658 (floatformats_ieee_double_littlebyte_bigword)
9659 (floatformats_i387_ext, floatformats_m68881_ext, floatformats_arm_ext)
9660 (floatformats_ia64_spill, floatformats_ia64_quad, floatformats_vax_f)
9661 (floatformats_vax_d): New variables.
9662 (builtin_type_ieee_single, builtin_type_ieee_double)
9663 (builtin_type_arm_ext, builtin_type_ia64_spill)
9664 (builtin_type_ia64_quad): Replace arrays with individual types.
9665 (builtin_type_ieee_single_big, builtin_type_ieee_single_little)
9666 (builtin_type_ieee_double_big, builtin_type_ieee_double_little)
9667 (builtin_type_ieee_double_littlebyte_bigword, builtin_type_i960_ext)
9668 (builtin_type_m88110_ext, builtin_type_m88110_harris_ext)
9669 (builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword)
9670 (builtin_type_ia64_spill_big, builtin_type_ia64_spill_little)
9671 (builtin_type_ia64_quad_big, builtin_type_ia64_quad_little): Delete
9672 unused and endian-specific types.
9673 (recursive_dump_type): Update for floatformat pairs.
9674 (build_flt): Move higher. Handle bit == -1. Take a floatformat pair.
9675 (build_gdbtypes): Use build_flt.
9676 (_initialize_gdbtypes): Update set of initialized types.
9677 * gdbtypes.h: Update declarations to match gdbtypes.c.
9678 (struct main_type): Store a pointer to two floatformats.
9679 * arch-utils.c (default_float_format, default_double_format): Delete.
9680 * arch-utils.h (default_float_format, default_double_format): Delete.
9682 * arm-tdep.c, avr-tdep.c, hppa-tdep.c, hppabsd-tdep.c, i386-tdep.c,
9683 ia64-tdep.c, iq2000-tdep.c, m68k-tdep.c, m88k-tdep.c,
9684 mips-linux-tdep.c, mips-tdep.c, mt-tdep.c, ppcobsd-tdep.c,
9685 sparc-linux-tdep.c, sparc-tdep.c, sparcnbsd-tdep.c, spu-tdep.c,
9686 vax-tdep.c, alpha-tdep.c, ppc-sysv-tdep.c: Update.
9688 2007-01-29 Joel Brobecker <brobecker@adacore.com>
9690 * target.c (maintenance_print_target_stack): New function.
9691 (initialize_targets): Add new "maintenance print target-stack"
9694 2007-01-28 Mark Kettenis <kettenis@gnu.org>
9696 * dwarf2read.c (new_symbol): Handle DW_AT_decl_file being zero.
9698 2007-01-27 Daniel Jacobowitz <dan@codesourcery.com>
9700 * dwarf2loc.h (struct dwarf2_locexpr_baton): Change size to a long.
9701 (struct dwarf2_loclist_baton): Likewise.
9703 2007-01-27 Eli Zaretskii <eliz@gnu.org>
9705 * cli/cli-script.c: Include breakpoint.h.
9706 (build_command_line): Require arguments only for if and while
9708 (get_command_line, execute_user_command, execute_control_command):
9709 Fix wording of warning messages.
9710 (print_command_lines): Print breakpoint commands.
9711 (execute_control_command): Call commands_from_control_command to
9712 handle the `commands' command inside a body of a flow-control
9714 (read_next_line): Recognize the `commands' command and build a
9715 command line structure for it.
9716 (recurse_read_control_structure, read_command_lines): Handle
9717 `commands' similarly to `if' and `while'.
9719 * breakpoint.c (get_number_trailer): Document the special meaning
9720 of NULL as the first argument PP.
9721 (commands_from_control_command): New function.
9723 * breakpoint.h (commands_from_control_command): Add prototype.
9725 * defs.h (commands_control): New enumerated value for enum
9726 command_control_type.
9728 2007-01-26 Joel Brobecker <brobecker@adacore.com>
9730 * ada-lang.c (ada_exception_breakpoint_ops): Fix typo in function name.
9731 (ada_exception_sal): Update accordingly.
9733 2007-01-26 Jan Kratochvil <jan.kratochvil@redhat.com>
9735 * c-valprint.c (c_val_print): Require strings to be of no-signed CHARs.
9736 * NEWS: Describe CHAR array vs. string identifcation rules.
9738 2007-01-25 Paul Brook <paul@codesourcery.com>
9740 * arm-tdep.c (arm_get_next_pc): Fix bitfield off-by-one error.
9742 2007-01-24 Jim Blandy <jimb@codesourcery.com>
9744 * dwarf2loc.c (dwarf2_evaluate_loc_desc): When the location
9745 expression is empty, bother to return the 'optimized out' value we
9746 construct. (Thanks to Carl Burch.)
9748 2007-01-24 Vladimir Prus <vladimir@codesourcery.com>
9750 * varobj.c (c_value_of_root, c_value_of_child)
9751 (cplus_describe_child): Don't call release_value.
9753 2007-01-24 Thiemo Seufer <ths@mips.com>
9755 * mips-linux-tdep.c (mips_linux_n64_rt_sigframe): Fix struct
9758 2007-01-24 Vladimir Prus <vladimir@codesourcery.com>
9760 Refactor getting children name, value and type access
9762 * varobj.c (get_type_deref): Remove.
9763 (adjust_value_for_child_access): New.
9764 (c_number_of_children): Use the above.
9765 (c_describe_child): Likewise.
9766 (enum accessibility): New.
9767 (match_accessibility): New function.
9768 (cplus_describe_child): New function.
9769 (cplus_name_of_child, cplus_value_of_child)
9770 (cplus_type_of_child): Reimplement in terms
9771 of cplus_describe_child.
9772 (cplus_number_of_children): Use
9773 adjust_value_for_child_access.
9775 2007-01-24 Vladimir Prus <vladimir@codesourcery.com>
9777 Fix computation of the 'editable' attribute and
9778 value changeability for for references.
9779 * varobj.c (get_value_type): New function.
9780 (c_variable_editable): Use get_value_type.
9781 (varobj_value_is_changeable): Likewise.
9783 2007-01-24 Joel Brobecker <brobecker@adacore.com>
9785 * source.c (find_and_open_source): Try rewriting the source
9786 path inside filename if dirname is NULL.
9788 2007-01-24 Joel Brobecker <brobecker@adacore.com>
9790 * dwarf2read.c (add_partial_symbol): Create an extra partial
9791 symbol in the VAR_DOMAIN for Ada structures, unions or enums.
9792 (new_symbol): Likewise for symbols.
9794 2007-01-24 Nick Roberts <nickrob@snap.net.nz>
9796 * mi/mi-main.c (mi_cmd_execute): Call free_all_values.
9798 2007-01-23 Vladimir Prus <vladimir@codesourcery.com>
9800 * value.c (value_primitive_field): Copy the full 'location'
9801 contents, instead of assuming that copying ADDRESS will
9802 bring over everything in the union. Remove obsolete comment.
9804 2007-01-23 Masaki Muranaka <monaka@monami-software.com>
9806 * m32c-tdep.c (make_regs, m32c_analyze_prologue)
9807 (m32c_skip_trampoline_code, m32c_m16c_address_to_pointer)
9808 (m32c_m16c_pointer_to_address): Separate code from declarations.
9810 2007-01-23 Nick Hudson <nick.hudson@dsl.pipex.com>
9812 * target.c (update_current_target): Correct typo.
9814 2007-01-22 Masaki Muranaka <monaka@monami-software.com>
9816 * xstormy16-tdep.c (xstormy16_skip_prologue): Separate code from a
9819 2007-01-11 Andrew Cagney <cagney@redhat.com>
9820 Daniel Jacobowitz <dan@codesourcery.com>
9821 Jan Kratochvil <jan.kratochvil@redhat.com>
9823 * dwarf2-frame.c (execute_cfa_program): New support of
9824 `DW_CFA_GNU_negative_offset_extended'.
9826 2007-01-21 Daniel Jacobowitz <dan@codesourcery.com>
9828 * NEWS: Mention flash support for "load" and new remote packets.
9830 2007-01-21 Markus Deuling <deuling@de.ibm.com>
9832 * breakpoint.c (delete_command): Skip redundant loop iterations.
9834 2007-01-21 Daniel Jacobowitz <dan@codesourcery.com>
9836 * gdbarch.sh (register_type): Update comment.
9837 * gdbarch.h: Regenerated.
9838 * arch-utils.c (generic_register_size): Call register_type.
9839 * ia64-tdep.c (ia64_extract_return_value): Likewise.
9840 * m32c-tdep.c (check_for_saved): Likewise.
9841 * mips-tdep.c (mips_print_register, print_gp_register_row)
9842 (mips_print_registers_info): Likewise.
9843 * sh-tdep.c (sh_pseudo_register_read, sh_pseudo_register_write):
9845 * sh64-tdep.c (sh64_pseudo_register_read, sh64_pseudo_register_write)
9846 (sh64_do_register, sh64_print_register)
9847 (sh64_media_print_registers_info): Likewise.
9848 * tui/tui-regs.c (tui_register_format): Likewise.
9850 2007-01-21 Daniel Jacobowitz <dan@codesourcery.com>
9852 * objfiles.h (ALL_PRIMARY_SYMTABS): Define.
9854 * ada-lang.c (symtab_for_sym, ada_lookup_symbol_list)
9855 (ada_lookup_symbol): Use ALL_PRIMARY_SYMTABS.
9856 * cp-support.c (make_symbol_overload_list_qualified): Likewise.
9857 * symtab.c (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
9858 (basic_lookup_transparent_type, find_pc_sect_symtab, search_symbols)
9859 (make_symbol_completion_list): Likewise.
9861 2007-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
9862 Daniel Jacobowitz <dan@codesourcery.com>
9864 * buildsym.c (end_symtab): Use preallocated symtab if available.
9865 Fill in SYMBOL_SYMTAB.
9866 * buildsym.h (struct subfile): Add symtab member.
9867 * dwarf2read.c (struct dwarf2_cu): Add line_header.
9868 (struct file_entry): Add symtab.
9869 (free_cu_line_header): New function.
9870 (read_file_scope): Use it. Save line_header in the cu. Process
9872 (add_file_name): Initialize new symtab member.
9873 (dwarf_decode_lines): Create symtabs for included files.
9874 (new_symbol): Set SYMBOL_SYMTAB.
9875 * symtab.c (lookup_symbol): Use SYMBOL_SYMTAB.
9876 (search_symbols): Likewise.
9877 * symtab.h (struct symbol): Add symtab member.
9878 (SYMBOL_SYMTAB): Define.
9880 2007-01-20 Daniel Jacobowitz <dan@codesourcery.com>
9882 * symfile.c (allocate_symtab): Remove INIT_EXTRA_SYMTAB_INFO.
9884 2007-01-20 Daniel Jacobowitz <dan@codesourcery.com>
9886 * arch-utils.c (show_endian): Correct reversed condition.
9888 2007-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
9890 * MAINTAINERS (Write After Approval): Add myself.
9892 2007-01-16 Daniel Jacobowitz <dan@codesourcery.com>
9893 Vladimir Prus <vladimir@codesourcery.com>
9895 Fix 'selected frame' varobjs.
9896 * varobj.c (struct varobj): Remove the error field.
9897 (varobj_set_value): Don't check var->error.
9898 (install_new_value): Don't set var->error.
9899 (varobj_update): Always pass the new value
9900 of the root via install_new_value.
9901 (create_child): Don't set error field.
9902 (new_variable): Likewise.
9903 (c_value_of_root): Always reevaluate the value
9904 of selected frame varobjs in the selected frame.
9905 Don't call reinit_frame_cache.
9907 2007-01-15 Joel Brobecker <brobecker@adacore.com>
9909 * source.c (_initialize_source): Improve the help text of
9910 the substitute-path commands.
9912 2007-01-14 Mark Kettenis <kettenis@gnu.org>
9914 * frv-tdep.c (frv_gdbarch_init, frv_register_name)
9915 (frv_breakpoint_from_pc, frv_gdbarch_adjust_breakpoint_address)
9916 (frv_skip_prologue): Remove prototypes.
9917 (frv_adjust_breakpoint_address): Renamed from
9918 frv_gdbarch_adjust_breakpoint_address.
9919 (frv_gdbarch_init): Adjust.
9921 2007-01-13 Mark Kettenis <kettenis@gnu.org>
9923 * gdbarch.sh (deprecated_extract_return_value)
9924 (deprecated_store_return_value): Remove.
9925 (extract_return_value, store_return_value): Remove default values.
9926 * gdbarch.c, gdbarch.h: Regenerate.
9927 * arch-utils.c, arch-utils.h (legacy_extract_return_value)
9928 (legacy_store_return_value): Remove.
9929 * regcache.c, regcache.h (deprecated_grub_regcache_for_registers):
9932 * mi/mi-main.c: Remove obsolete comment.
9934 * regcache.c, regcache.h (deprecated_register_bytes)
9935 (deprecated_read_register_bytes)
9936 (deprecated_write_register_bytes): Remove.
9938 * frame.c (get_frame_register_bytes, put_frame_register_bytes):
9939 Don't forget to move destination pointer.
9941 2007-01-01 Mark Kettenis <kettenis@gnu.org>
9943 * config/i386/nm-i386gnu.h (CHILD_PREPARE_TO_STORE): Remove.
9945 2007-01-11 Ulrich Weigand <uweigand@de.ibm.com>
9947 * spu-tdep.c (spu_analyze_prologue): Fix erroneous backtrace
9948 past entry function with recent newlib.
9950 2007-01-11 Vladimir Prus <vladimir@codesourcery.com>
9952 * gdb.texinfo (GDB/MI Variable Objects): Improve the
9953 introduction. Specify -var-update more exactly.
9955 2007-01-11 Daniel Jacobowitz <dan@codesourcery.com>
9957 * frame.c (get_prev_frame_1): Check PC_REGNUM before using it.
9959 2007-01-10 Jim Blandy <jimb@codesourcery.com>
9961 * MAINTAINERS (Global Maintainers): Ulrich Weigand has accepted
9962 the Global Maintainers' invitation to be a global maintainer.
9964 2007-01-10 Daniel Jacobowitz <dan@codesourcery.com>
9966 * infrun.c (singlestep_pc): New variable.
9967 (resume): Set singlestep_pc.
9968 (context_switch): Add a debugging message. Flush the frame cache.
9969 (handle_inferior_event): Add debugging messages. Handle thread
9970 hops when a software single step has completed. Let context_switch
9971 handle flushing the frame cache.
9973 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
9975 * NEWS: Mention target descriptions, "set tdesc filename",
9976 "unset tdesc filename", "show tdesc filename", and
9977 qXfer:features:read.
9978 * arch-utils.c (choose_architecture_for_target): New function.
9979 (gdbarch_info_fill): Call it.
9980 * target-descriptions.c (struct property): Make members non-const.
9981 (struct target_desc): Add arch member.
9982 (target_description_filename): New variable.
9983 (target_find_description): Try via XML first.
9984 (tdesc_architecture): New.
9985 (free_target_description, make_cleanup_free_target_description): New.
9986 (set_tdesc_property): Call xstrdup.
9987 (set_tdesc_architecture, tdesc_set_cmdlist, tdesc_show_cmdlist)
9988 (tdesc_unset_cmdlist, unset_tdesc_cmd, unset_tdesc_filename_cmd)
9989 (set_tdesc_cmd, show_tdesc_cmd, set_tdesc_filename_cmd)
9990 (show_tdesc_filename_cmd, _initialize_target_descriptions): New.
9991 * target-descriptions.h (tdesc_architecture)
9992 (make_cleanup_free_target_description, set_tdesc_architecture): New
9994 * Makefile.in (SFILES): Add xml-tdesc.c.
9995 (COMMON_OBS): Add xml-tdesc.o.
9996 (target-descriptions.o): Update.
9997 (xml-tdesc.o): New rule.
9998 * xml-tdesc.c, xml-tdesc.h: New files.
9999 * remote.c (PACKET_qXfer_features): New enum.
10000 (remote_protocol_features): Add qXfer:features:read.
10001 (remote_xfer_partial): Handle TARGET_OBJECT_AVAILABLE_FEATURES.
10002 (_initialize_remote): Register qXfer:features:read.
10003 * target.h (enum target_object): Add TARGET_OBJECT_AVAILABLE_FEATURES.
10004 * features/gdb-target.dtd: New file.
10006 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
10008 * copyright.sh: Clarify error.
10010 2007-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
10012 * symtab.c (matching_bfd_sections): Fix VMA matching for
10015 2007-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
10017 * minsyms.c (lookup_minimal_symbol_by_pc_section): Handle
10020 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
10022 Updated copyright notices for most files.
10024 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
10026 * copyright.sh (prunes): Add step-line.inp and step-line.c.
10028 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
10030 * configure.ac (DEBUGDIR_RELOCATABLE): Define for debugdir inside
10032 (TARGET_SYSTEM_ROOT_RELOCATABLE): Allow for exec_prefix being
10034 * configure, config.in: Regenerate.
10035 * defs.h (debug_file_directory): Declare.
10036 * main.c (captured_main): Canonicalize gdb_sysroot. Assume
10037 TARGET_SYSTEM_ROOT is defined. Initialize debug_file_directory and
10038 relocate it if DEBUGDIR_RELOCATABLE.
10039 * symfile.c (debug_file_directory): Make non-static.
10040 (find_separate_debug_file): Look for debug info for SYSROOT/PATH
10041 in DEBUGDIR/PATH if DEBUGDIR is inside SYSROOT.
10042 (_initialize_symfile): Don't initialize debug_file_directory here.
10044 2007-01-09 Jim Blandy <jimb@codesourcery.com>
10046 * score-tdep.c (score_push_dummy_call): Don't mix declarations and
10049 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
10051 * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Use
10052 frame_unwind_register to recurse.
10053 * alpha-tdep.c (alpha_sigtramp_frame_prev_register): Likewise.
10054 (alpha_heuristic_frame_prev_register): Likewise.
10055 * h8300-tdep.c (h8300_frame_prev_register): Likewise.
10056 * m32c-tdep.c (m32c_prev_register): Likewise.
10057 * frame.c (frame_register_unwind_location): Remove FIXME.
10059 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
10060 Eli Zaretskii <eliz@gnu.org>
10062 * copyright.sh: New file.
10064 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
10066 * configure.ac: Check for XML_StopParser.
10067 * xml-support.c (gdb_xml_body_text): Check for an error.
10068 (gdb_xml_start_element_wrapper): Conditionalize call to XML_StopParser.
10069 (gdb_xml_end_element_wrapper): Likewise.
10070 * config.in, configure: Regenerated.
10072 2007-01-08 Daniel Jacobowitz <dan@codesourcery.com>
10074 * varobj.c (install_new_value): Always update print_value.
10075 (value_get_print_value): Immediately return NULL for missing
10078 2007-01-08 Jim Blandy <jimb@codesourcery.com>
10080 * configure.ac: Tighten pattern for extracting value of
10081 DEPRECATED_TM_FILE from the target makefile fragment.
10082 * configure: Regenerated.
10084 2007-01-08 Daniel Jacobowitz <dan@codesourcery.com>
10086 * linux-nat.c (struct simple_pid_list): Add status.
10087 (add_to_pid_list): Record the PID's status.
10088 (linux_record_stopped_pid): Likewise. Make static.
10089 (pull_pid_from_list): Return the saved status.
10090 (linux_nat_handle_extended): Deleted.
10091 (linux_handle_extended_wait): Combine with linux_nat_handle_extended.
10092 Make static. Handle non-SIGSTOP for a new thread's first signal.
10093 (flush_callback): Handle unexpected pending signals.
10094 (linux_nat_wait): Update calls to changed functions.
10095 * linux-nat.h (linux_record_stopped_pid, linux_handle_extended_wait):
10096 Remove prototypes for newly static functions.
10098 2007-01-08 Ulrich Weigand <uweigand@de.ibm.com>
10100 * gdbarch.sh (value_from_register): New gdbarch function.
10101 * gdbarch.c, gdbarch.h: Regenerate.
10102 * findvar.c (default_value_from_register): New function.
10103 (value_from_register): Use gdbarch_value_from_register.
10104 * value.h (default_value_from_register): Declare.
10105 * spu-tdep.c (spu_convert_register_p, spu_register_to_value,
10106 spu_value_to_register): Remove.
10107 (spu_value_from_register): New function.
10108 (spu_gdbarch_init): Do not call set_gdbarch_convert_register_p,
10109 set_gdbarch_register_to_value, set_gdbarch_value_to_register.
10110 Call set_gdbarch_value_from_register.
10111 * s390-tdep.c (s390_convert_register_p, s390_register_to_value,
10112 s390_value_to_register): Remove.
10113 (s390_value_from_register): New function.
10114 (s390_gdbarch_init): Do not call set_gdbarch_convert_register_p,
10115 set_gdbarch_register_to_value, set_gdbarch_value_to_register.
10116 Call set_gdbarch_value_from_register.
10118 2007-01-08 Daniel Jacobowitz <dan@codesourcery.com>
10120 * NEWS: Add "set sysroot" and "show sysroot".
10121 * solib.c (solib_absolute_prefix): Delete. Replace
10122 all uses with gdb_sysroot.
10123 (_initialize_solib): Add "set sysroot" and "show sysroot".
10124 Make "solib-absolute-prefix" an alias to it.
10126 2007-01-08 Ulrich Weigand <uweigand@de.ibm.com>
10128 * frame.c (get_frame_register_bytes): New function.
10129 (put_frame_register_bytes): Likewise.
10130 * frame.h (get_frame_register_bytes): Declare.
10131 (put_frame_register_bytes): Likewise.
10132 * findvar.c (value_from_register): Always construct lval_register
10133 values. Use get_frame_register_bytes.
10134 * valops.c (value_assign): Use get_frame_register_bytes and
10135 put_frame_register_bytes.
10137 2007-01-08 Jim Blandy <jimb@codesourcery.com>
10139 * MAINTAINERS: Update Stan Shebs' email address.
10141 2007-01-07 Joel Brobecker <brobecker@adacore.com>
10143 * ada-lang.c (is_known_support_routine): Improve the implementation.
10145 2007-01-06 Joel Brobecker <brobecker@adacore.com>
10147 * ada-lang.c: Add include of source.h.
10148 (is_known_support_routine): Improve the check verifying that the file
10149 associated to this frame exists.
10150 * Makefile.in (ada-lang.o): Add dependency on source.h.
10152 2007-01-07 Jim Blandy <jimb@codesourcery.com>
10154 * ax-general.c (ax_const_l): Select proper opcode for the given
10157 2007-01-05 Vladimir Prus <vladimir@codesourcery.com>
10159 * varobj.c (c_value_of_root): Don't select frame if variable
10160 object is out of scope.
10162 2007-01-05 Nick Roberts <nickrob@snap.net.nz>
10164 * varobj.c (struct varobj): New member print_value.
10165 (install_new_value): Compare last printed value with current one
10166 instead of contents.
10167 (new_variable): Initialize var->print_value to NULL.
10168 (free_variable): Free var->print_value.
10169 (value_get_print_value): New function derived from
10170 c_value_of_variable.
10171 (c_value_of_variable): Use value_get_print_value.
10173 2007-01-05 Joel Brobecker <brobecker@adacore.com>
10175 * i386-tdep.c (i386_analyze_stack_align): Add comment.
10177 2007-01-05 Joel Brobecker <brobecker@adacore.com>
10179 * NEWS: Add entries for new catch commands.
10181 2007-01-05 Joel Brobecker <brobecker@adacore.com>
10183 * dwarf2read.c (partial_die_info): Add field has_byte_size.
10184 (add_partial_symbol): Correct identification of external references.
10185 (process_structure_scope): Likewise.
10186 (read_partial_die): Handle DW_AT_byte_size attribute.
10188 2007-01-05 Daniel Jacobowitz <dan@codesourcery.com>
10190 * xml-support.c (gdb_xml_end_element): Remove wrong backslashes.
10192 2007-01-05 Nick Roberts <nickrob@snap.net.nz>
10194 * varobj.c (get_type_deref): Fix variable objects for references to
10197 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
10199 * symtab.c (find_pc_sect_psymtab): Add comments. Handle psymtabs
10202 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
10204 * memory-map.c (struct_memory_map_parsing_data): Remove most
10205 members. Make property_name an array.
10206 (free_memory_map_parsing_data, memory_map_start_element)
10207 (memory_map_end_element, memory_map_character_data): Delete.
10208 (memory_map_start_memory, memory_map_end_memory)
10209 (memory_map_start_property, memory_map_end_property): New functions.
10210 (property_attributes, memory_children, memory_type_enum)
10211 (memory_attributes, memory_map_children, memory_map_elements): New.
10212 (parse_memory_map): Rewrite.
10213 * xml-support.c (debug_xml): New.
10214 (xml_get_required_attribute, xml_get_integer_attribute)
10215 (xml_get_enum_value, free_xml_parser, make_cleanup_free_xml_parser):
10217 (struct scope_level, struct gdb_xml_parser, gdb_xml_body_text)
10218 (gdb_xml_debug, gdb_xml_error, gdb_xml_values_cleanup)
10219 (gdb_xml_start_element, gdb_xml_start_element_wrapper)
10220 (gdb_xml_end_element, gdb_xml_end_element_wrapper, gdb_xml_cleanup)
10221 (gdb_xml_create_parser_and_cleanup, gdb_xml_parse)
10222 (gdb_xml_parse_ulongest, gdb_xml_parse_attr_ulongest)
10223 (gdb_xml_parse_attr_enum, show_debug_xml, _initialize_xml_support):
10225 * xml-support.h (struct gdb_xml_value, gdb_xml_attribute_handler)
10226 (enum gdb_xml_attribute_flag, struct gdb_xml_attribute)
10227 (enum gdb_xml_element_flag, struct gdb_xml_element)
10228 (gdb_xml_element_start_handler, gdb_xml_element_end_handler)
10229 (struct gdb_xml_enum): New.
10230 (gdb_xml_create_parser_and_cleanup, gdb_xml_parse, gdb_xml_debug)
10231 (gdb_xml_error, gdb_xml_parse_attr_ulongest)
10232 (gdb_xml_parse_attr_enum, gdb_xml_parse_ulongest): New prototypes.
10233 (xml_get_required_attribute, xml_get_integer_attribute)
10234 (xml_get_enum_value, make_cleanup_free_xml_parser): Delete prototypes.
10235 * Makefile.in (xml_support_h, xml-support.o): Update.
10237 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
10239 * Makefile.in (eval.o): Update dependencies.
10240 * eval.c: Include "ui-out.h" and "exceptions.h".
10241 (evaluate_subexp_standard): Use TRY_CATCH around value_of_variable.
10242 Use value_zero if an error occurs when avoiding side effects.
10243 * varobj.c (c_value_of_root): Initialize new_val.
10245 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
10247 * varobj.c (varobj_list_children): Stop if the number of children is
10249 (c_number_of_children):
10251 2007-01-04 Mark Kettenis <kettenis@gnu.org>
10253 * alpha-tdep.c (alpha_register_name): Use ARRAY_SIZE.
10254 (alpha_read_insn, alpha_skip_prologue, alpha_heuristic_proc_start)
10255 (alpha_heuristic_frame_unwind_cache, alpha_next_pc)
10256 (alpha_gdbarch_init): Use ALPHA_INSN_SIZE, ALPHA_REGISTER_SIZE and
10257 sizeof, instead of hardcoded constants.
10259 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
10261 * CONTRIBUTE: Use sourceware.org.
10263 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
10265 * buildsym.c (start_subfile): Handle producer.
10266 (record_producer): New function.
10267 * buildsym.h (struct subfile): Include producer.
10268 (record_producer): New prototype.
10269 * dwarf2-frame.c (struct dwarf2_cie): Add version and augmentation.
10270 (struct dwarf2_frame_state): Add armcc_cfa_offsets_sf and
10271 armcc_cfa_offsets_reversed.
10272 (execute_cfa_program): Handle armcc_cfa_offsets_sf.
10273 (dwarf2_frame_find_quirks): New function.
10274 (dwarf2_frame_cache): Call it. Handle armcc_cfa_offsets_reversed.
10275 (decode_frame_entry_1): Record the CIE version. Record the
10276 augmentation. Skip armcc augmentations.
10277 * dwarf2read.c (read_file_scope): Save the producer.
10278 * symtab.h (struct symtab): Rename unused version member to
10281 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
10283 * configure.ac (build_warnings): Use -Wall and
10284 -Wdeclaration-after-statement.
10285 * configure: Regenerated.
10287 2007-01-04 Vladimir Prus <vladimir@codesourcery.com>
10289 Simplify access to variours properties of child
10290 variable objects in C.
10291 * varobj.c (value_struct_element_index): New function.
10292 (c_describe_child): New function.
10293 (c_name_of_child, c_value_of_child)
10294 (c_type_of_child): Rewrite to use c_describe_child.
10296 2007-01-04 Vladimir Prus <vladimir@codesourcery.com>
10299 * varobj.c: Include "vec.h".
10300 (varobj_p): New typedef, declare vector of those.
10301 (struct varobj): Use vector for the 'children' member.
10302 (child_exists): Remove.
10303 (save_child_in_parent): Remove.
10304 (remove_child_from_parent): Remove.
10305 (struct varobj_child): Remove.
10306 (struct vstack): Remove.
10307 (vpush, vpop): Remove.
10308 (varobj_list_children): Adjust to work work vector.
10309 (varobj_update): Likewise. Use vectors for
10310 working stack and result.
10311 (delete_variable_1): Likewise.
10312 * Makefile.in (varobj.o): Update dependencies.
10314 2007-01-04 Vladimir Prus <vladimir@codesourcery.com>
10316 Port from Apple's version.
10318 * varobj.c (type_changeable): Rename to...
10319 (varobj_value_is_changeable_p): ...this. Adjust all callers.
10320 (is_root_p): New function. Use it everywhere.
10322 2007-01-04 Jim Blandy <jimb@codesourcery.com>
10324 * glibc-tdep.c (glibc_skip_solib_resolver): Look for '_dl_fixup',
10325 then plain 'fixup'.
10327 2007-01-04 Joel Brobecker <brobecker@adacore.com>
10329 * hpread.c (hpread_start_psymtab): Remove unnecessary extern.
10331 2007-01-04 Joel Brobecker <brobecker@adacore.com>
10333 * hpread.c (hpread_type_lookup): Fix compilation failure.
10335 2007-01-04 Qinwei <qinwei@sunnorth.com.cn>
10337 * NEWS: New port to S+core.
10338 * MAINTAINERS (Write After Approval, Responsible Maintainers):
10341 * Makefile.in: Add dependencies for S+core files.
10342 * configure.tgt (score*, score-*-*): Add S+core target.
10343 * config/score/embed.mt: New file.
10344 * score-tdep.c: New file.
10345 * score-tdep.h: New file.
10347 2007-01-04 Joel Brobecker <brobecker@adacore.com>
10349 * ada-lang.c (ada_evaluate_subexp) [OP_TYPE]: Return a value with
10350 the appropriate type rather than a bogus void type.
10352 2007-01-04 Joel Brobecker <brobecker@adacore.com>
10354 * ada-lang.h (ada_find_printable_frame): Remove.
10355 (ada_exception_catchpoint_p, ada_decode_exception_location)
10356 (ada_decode_assert_location): Add declaration.
10357 * ada-lang.c: Add include of annotate.h and valprint.h.
10358 (exception_catchpoint_kind): New enum.
10359 (function_name_from_pc, is_known_support_routine)
10360 (ada_find_printable_frame, ada_unhandled_exception_name_addr)
10361 (ada_exception_name_addr_1, ada_exception_name_addr)
10362 (print_it_exception, print_one_exception, print_mention_exception)
10363 (print_it_catch_exception, print_one_catch_exception)
10364 (print_mention_catch_exception, catch_exception_breakpoint_ops)
10365 (print_it_catch_exception_unhandled)
10366 (print_one_catch_exception_unhandled)
10367 (print_mention_catch_exception_unhandled, print_it_catch_assert)
10368 (print_one_catch_assert, print_mention_catch_assert)
10369 (ada_exception_catchpoint_p, error_breakpoint_runtime_sym_not_found)
10370 (ada_get_next_arg, catch_ada_exception_command_split)
10371 (ada_exception_sym_name, ada_exception_sym_name)
10372 (ada_exception_breakption_ops, ada_exception_catchpoint_cond_string)
10373 (ada_parse_catchpoint_condition, ada_exception_sal)
10374 (ada_decode_exception_location)
10375 (ada_decode_assert_location): New function.
10376 (catch_exception_unhandled_breakpoint_ops): New global variable.
10377 (catch_assert_breakpoint_ops): New global variable.
10378 * breakpoint.c: Add include of ada-lang.h.
10379 (print_one_breakpoint): Do not print the condition for Ada
10380 exception catchpoints.
10381 (create_ada_exception_breakpoint): New function.
10382 (catch_ada_exception_command, catch_assert_command): New function.
10383 (catch_command_1): Add support for the new "catch exception" and
10384 "catch assert" commands.
10385 (_initialize_breakpoint): Add help description for the new catch
10387 * Makefile.in (ada-lang.o): Add dependency on annotate.h and
10389 (breakpoint.o): Add dependency on ada-lang.h.
10391 2007-01-03 Pedro Alves <pedro_alves@portugalmail.pt>
10393 * coffread.c (cs_to_section): If bfd_section is found, always
10394 return its section index.
10395 (coff_symtab_read): Determine the minimal_symbol_type using the
10398 2007-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10399 Daniel Jacobowitz <dan@codesourcery.com>
10401 * Makefile.in (top.o): Update.
10402 * top.c (gdb_readline_wrapper_done, gdb_readline_wrapper_result)
10403 (saved_after_char_processing_hook, gdb_readline_wrapper_line)
10404 (struct gdb_readline_wrapper_cleanup, gdb_readline_wrapper_cleanup):
10406 (gdb_readline_wrapper): Rewrite to use asynchronous readline.
10408 2007-01-03 Mark Kettenis <kettenis@gnu.org>
10410 * arm-linux-tdep.c (arm_linux_extract_return_value): Remove.
10411 (arm_linux_init_abi): Don't set deprecated_extract_return_value.
10413 2007-01-03 Daniel Jacobowitz <dan@codesourcery.com>
10415 * ada-lang.c (find_struct_field): Initialize *byte_offset_p.
10416 * breakpoint.c (do_enable_breakpoint): Ignore both mem_cnt and i.
10417 * c-typeprint.c (c_type_print_varspec_suffix): Don't test length
10418 greater than or equal to zero.
10419 * m2-typeprint.c (m2_array): Likewise.
10420 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
10421 * gdbtypes.c (copy_type_recursive): Correct == typo.
10422 * i386-tdep.c (i386_skip_prologue): Remove stray semicolon.
10423 * linux-nat.c (linux_nat_info_proc_cmd): Don't compare a pointer
10425 * macroscope.c (sal_macro_scope): Don't name a local variable "main".
10426 (default_macro_scope): Remove unused variable.
10427 * prologue-value.h (pv_area_find_reg): Don't name an argument
10429 * remote-fileio.c (remote_fio_func_map): Add missing braces.
10430 * remote.c (sigint_remote_twice_token, sigint_remote_token): Change
10432 (cleanup_sigint_signal_handler): Remove casts.
10433 * valprint.c (val_print): Use a volatile local for the modified
10435 * varobj.c (languages): Remove extra array dimension.
10436 (varobj_create): Correct access to languages array.
10437 * mi/mi-cmd-break.c (mi_cmd_break_insert, mi_cmd_break_watch): Add
10439 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise.
10440 * mi/mi-cmd-env.c (mi_cmd_env_path, mi_cmd_env_dir): Likewise.
10441 * mi/mi-getopt.c (mi_valid_noargs): Likewise.
10442 * mi/mi-main.c (mi_cmd_data_read_memory): Likewise.
10443 (mi_cmd_data_write_memory): Likewise.
10444 * signals/signals.c (target_signal_to_string): Cast to int before
10446 * tui/tui-layout.c (init_and_make_win): Take and return a void *.
10447 Update all callers.
10449 2007-01-03 Daniel Jacobowitz <dan@codesourcery.com>
10451 * NEWS: Mention pointer to member improvements.
10452 * Makefile.in (gnu-v3-abi.o): Delete special rule.
10453 (eval.o, gnu-v3-abi.o, ia64-tdep.o): Update.
10454 * ada-valprint.c (ada_print_scalar): Update for new type codes.
10455 * c-typeprint.c (c_print_type): Update for new type codes.
10456 (c_type_print_varspec_prefix, c_type_print_varspec_suffix)
10457 (c_type_print_base): Likewise.
10458 (c_type_print_args): Rewrite.
10459 * c-valprint.c (c_val_print): Update for new type codes. Remove
10460 support for references to members. Treat methods like functions.
10461 * cp-abi.c (cplus_print_method_ptr, cplus_method_ptr_size)
10462 (cplus_make_method_ptr, cplus_method_ptr_to_value): New.
10463 * cp-abi.h (cplus_print_method_ptr, cplus_method_ptr_size)
10464 (cplus_make_method_ptr, cplus_method_ptr_to_value): New prototypes.
10465 (struct cp_abi_ops): Add corresponding members.
10466 * cp-valprint.c (cp_print_class_method): Delete.
10467 (cp_find_class_member): New function.
10468 (cp_print_class_member): Use it. Simplify support for bogus
10470 * dwarf2read.c (quirk_gcc_member_function_pointer): Use
10471 lookup_methodptr_type.
10472 (read_tag_ptr_to_member_type): Likewise, and lookup_memberptr_type.
10473 * eval.c (evaluate_subexp_standard): Implement EVAL_SKIP for
10474 OP_SCOPE. Update call to value_aggregate_elt. Rewrite member
10476 (evaluate_subexp_for_address): Handle OP_SCOPE explicitly. Handle
10477 references returned by user defined operators.
10478 * f-typeprint.c (f_print_type, f_type_print_varspec_prefix)
10479 (f_type_print_varspec_suffix): Remove support for member pointers.
10480 * gdbtypes.c (lookup_memberptr_type): Renamed from lookup_member_type
10482 (smash_to_memberptr_type): Likewise, from smash_to_member_type.
10483 (lookup_methodptr_type): New.
10484 (rank_one_type): Adjust for TYPE_CODE_MEMBERPTR.
10485 (recursive_dump_type): Update for new types.
10486 * gdbtypes.h (enum type_code): Replace TYPE_CODE_MEMBER with
10487 TYPE_CODE_MEMBERPTR and TYPE_CODE_METHODPTR.
10488 (lookup_memberptr_type, lookup_methodptr_type)
10489 (smash_to_memberptr_type): New prototypes.
10490 (smash_to_method_type): Formatting fix.
10491 (lookup_member_type, smash_to_member_type): Delete prototypes.
10492 * gnu-v3-abi.c (gnuv3_get_vtable, gnuv3_get_virtual_fn): New.
10493 Do not rely on debug information for the vptr or the method's
10494 enclosing type. Handle function descriptors for IA64.
10495 (gnuv3_virtual_fn_field): Rewrite using the new functions.
10496 (gnuv3_find_method_in, gnuv3_print_method_ptr)
10497 (gnuv3_method_ptr_size, gnuv3_make_method_ptr)
10498 (gnuv3_method_ptr_to_value): New.
10499 (init_gnuv3_ops): Set new members of gnu_v3_abi_ops.
10500 * hpread.c (hpread_type_lookup): Update for new types.
10501 * infcall.c (value_arg_coerce): Likewise.
10502 * m2-typeprint.c (m2_print_type): Remove explicit support
10503 for member pointers.
10504 * m2-valprint.c (m2_val_print): Likewise.
10505 * p-typeprint.c (pascal_type_print_varspec_prefix)
10506 (pascal_type_print_varspec_suffix, pascal_type_print_base): Likewise.
10507 * p-valprint.c (pascal_val_print): Likewise.
10508 (pascal_object_print_class_method, pascal_object_print_class_member):
10510 * p-lang.h (pascal_object_print_class_method)
10511 (pascal_object_print_class_member): Delete prototypes.
10512 * stabsread.c (read_type): Update for new types.
10513 * typeprint.c (print_type_scalar): Likewise.
10514 * valops.c (value_struct_elt_for_reference, value_namespace_elt)
10515 (value_maybe_namespace_elt, value_aggregate_elt): Add want_address
10516 argument. Construct a pointer to member if the address of a
10517 function or data member is requested.
10518 (value_cast_pointers): Don't modify the input value.
10519 (value_cast): Adjust pointer to member handling for new types.
10520 Allow null pointer to member constants. Don't modify the input
10522 (value_ind): Remove pointer to member check. Handle function
10523 descriptors for function pointers.
10524 (value_struct_elt, value_find_oload_method_list, check_field):
10525 Remove pointer to member checks.
10526 * value.c (unpack_long): Allow pointers to data members.
10527 (value_from_longest): Allow member pointers.
10528 * value.h (value_aggregate_elt): Add want_address.
10529 * varobj.c (c_variable_editable): Remove check for members.
10530 * gdbarch.sh: Add vtable_function_descriptors and vbit_in_delta.
10531 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Handle descriptors
10533 (ia64_gdbarch_init): Call set_gdbarch_vtable_function_descriptors.
10534 * c-lang.h (cp_print_class_method): Delete prototype.
10535 * arm-tdep.c (arm_gdbarch_init): Call set_gdbarch_vbit_in_delta.
10536 * mips-tdep.c (mips_gdbarch_init): Likewise.
10537 * gdbarch.c, gdbarch.h: Regenerated.
10539 2007-01-01 Mark Kettenis <kettenis@gnu.org>
10541 * rs6000-tdep.c (rs6000_use_struct_convention)
10542 (rs6000_extract_return_value, rs6000_store_return_value)
10543 (rs6000_extract_struct_value_address): Remove.
10544 (rs6000_return_value): New function.
10545 (rs6000_gdbarch_init): Don't set deprecated_extract_return_value,
10546 store_return_value, deprecated_extract_struct_value_address and
10547 deprecated_use_struct_convention. Use rs6000_return_value
10550 2007-01-02 Nick Roberts <nickrob@snap.net.nz>
10552 * mi/mi-cmds.c (mi_cmds): Remove entries for -display-delete,
10553 -display-disable, -display-enable, -display-insert and
10556 2007-01-01 Joel Brobecker <brobecker@adacore.com>
10558 * breakpoint.c (remove_breakpoint): Remove dead code.
10560 2007-01-01 Nick Roberts <nickrob@snap.net.nz>
10562 * varobj.c: Include block.h.
10563 (c_value_of_root): Check scope within nested statements.
10565 2007-01-01 Mark Kettenis <kettenis@gnu.org>
10567 * mi/mi-main.c (mi_cmd_data_write_register_values): Use
10568 regcache_cooked_write_signed instead of
10569 deprecated_write_register_bytes.
10571 2007-01-01 Joel Brobecker <brobecker@adacore.com>
10573 * config/djgpp/fnchange.lst: Add entry for ChangeLog-2006.
10575 2007-01-01 Joel Brobecker <brobecker@adacore.com>
10577 Followed the Start of New Year Procedure:
10578 * ChangeLog-2006: New file, containing all the entries for 2006.
10579 * ChangeLog: Removed all 2006 entries, and changed the reference
10580 to the previous ChangeLog to point to ChangeLog 2006.
10581 * top.c (print_gdb_version): Update copyright year.
10583 2007-01-01 Mark Kettenis <kettenis@gnu.org>
10585 * Makefile.in (remote-sds.o): Remove.
10586 * remote-sds.c: Delete.
10588 For older changes see ChangeLog-2006.
10594 version-control: never