1 2007-12-28 Joel Brobecker <brobecker@adacore.com>
3 * ada-lang.c (ada_evaluate_subexp): Break two large expressions
4 using temporary variables.
6 2007-12-27 Joel Brobecker <brobecker@adacore.com>
8 * ada-lang.c (ada_value_cast): New function, extracted out from
9 the code in ada_evaluate_subexp, case UNOP_CAST. The code handling
10 the obscure case has been removed as we think that it is actually
12 (ada_evaluate_subexp): Add type case when evaluating an OP_DOUBLE
13 or an OP_LONG with a non-null expect_type. Replace extracted-out
14 code with call to new ada_value_cast function.
16 2007-12-27 Paul Hilfinger <hilfinger@adacore.com>
18 * ada-lang.c (ada_evaluate_subexp): Add cases for BINOP_LOGICAL_AND,
19 BINOP_LOGICAL_OR, UNOP_LOGICAL_NOT, BINOP_BITWISE_IOR,
20 BINOP_BITWISE_XOR, BINOP_BITWISE_AND.
21 * language.c (lang_bool_type): Add Ada case.
23 2007-12-26 Joel Brobecker <brobecker@adacore.com>
25 * dwarf2read.c (read_base_type): Fix obvious &&/|| confusion.
27 2007-12-26 Luis Machado <luisgpm@br.ibm.com>
29 * dwarf2-frame.c (execute_cfa_program): Call dwarf2_restore_rule
30 function to handle required actions for the DW_CFA_restore and
31 DW_CFA_restore_extended instructions.
32 (dwarf2_restore_rule): New function.
34 2007-12-24 Joel Brobecker <brobecker@adacore.com>
36 * ada-lang.c (ada_is_character_type): Add recognition of type
37 "Wide_Wide_Character".
39 2007-12-24 Joel Brobecker <brobecker@adacore.com>
41 * dwarf2read.c (read_base_type): Set code to TYPE_CODE_CHAR
42 for char and unsigned char types of Ada compilation units.
43 * ada-lang.c (ada_is_character_type): Always return true if
44 the type code is TYPE_CODE_CHAR.
46 2007-12-23 Joel Brobecker <brobecker@adacore.com>
48 * infrun.c (handle_inferior_event): Remove code that made us
49 stop when stepping into the last line of the current function.
51 2007-12-22 Pierre Muller <muller@ics.u-strasbg.fr>
53 * win32-nat.c: Fix PR gdb/2388.
54 (do_win32_fetch_inferior_registers): Do not overwrite debug register
55 array dr if debug_registers_changed variable is set.
57 2007-12-22 Jan Kratochvil <jan.kratochvil@redhat.com>
59 * dwarf2read.c (scan_partial_symbols partial_die_parent_scope)
60 (add_partial_symbol, pdi_needs_namespace, process_die)
61 (is_type_tag_for_partial, load_partial_dies, new_symbol)
62 (read_type_die, determine_prefix): Extend the current code of
63 `DW_TAG_class_type' also for `DW_TAG_interface_type'.
65 2007-12-21 Paul N. Hilfinger <hilfinger@adacore.com>
67 * ada-lang.h (ada_renaming_category): New enumerated type.
68 (ada_lookup_encoded_symbol): Declare.
69 (ada_parse_renaming): Declare.
70 (ada_renaming_type,ada_is_object_renaming)
71 (ada_simple_renamed_entity): Delete declarations.
72 * ada-lang.c (ada_parse_renaming): New function to concentrate
73 extraction of information from renaming symbols.
74 (parse_old_style_renaming): New function to concentrate
75 extraction of old-style (purely type-based) renaming information.
76 (renaming_is_visible): Rename to...
77 (old_renaming_is_invisible): Rename and change sense of
79 (remove_out_of_scope_renamings): Rename to...
80 (remove_irrelevant_renamings): Renames remove_out_of_scope_renamings
81 and augments with additional logic to handle cases where the same
82 object renaming is encoded both as a reference variable and an
84 (ada_renaming_type,ada_is_object_renaming)
85 (ada_simple_renamed_entity): Delete definitions.
86 (ada_lookup_encoded_symbol): New function factored out of
88 (ada_lookup_symbol): Reimplement to call ada_lookup_encoded_symbol.
89 (wild_match): Don't reject perfect match of prefix.
90 (ada_find_renaming_symbol): Factor old-style renaming logic into
91 find_old_style_renaming_symbol.
92 (find_old_style_renaming_symbol): New name for content of old
93 ada_find_renaming_symbol.
94 (ada_prefer_type): Reimplement not to use ada_renaming_type.
95 * ada-exp.y (write_object_renaming): Change interface. Reimplement
96 to use new arguments and ada_parse_renaming.
97 Correct blocks used to find array index.
98 (write_var_or_type): Reimplement to use ada_parse_renaming.
100 2007-12-21 Denis Pilat <denis.pilat@st.com>
102 * tui/tui-data.h (MAX_LOCATOR_ELEMENT_LEN): Defined to a bigger
103 value or to PATH_MAX when possible.
105 2007-12-20 Joel Brobecker <brobecker@adacore.com>
107 * rs6000-tdep.h: Remove defs.h #include.
108 * Makefile.in (rs6000_tdep_h): Update dependencies.
110 2007-12-20 Thiago Jung Bauermann <bauerman@br.ibm.com>
112 * gdbtypes.c (gdbtypes_post_init): Change names of decimal float types
113 to conform to C extension for decimal float.
114 * c-lang.c (enum c_primitive_types): Add entries for Decimal Floating
116 (enum cplus_primitive_types): Likewise.
117 (c_language_arch_info): Add Decimal Floating Point builtin types to
118 the primitive_type_vector.
119 (cplus_language_arch_info): Likewise.
121 2007-12-20 David Ung <davidu@mips.com>
122 Maciej W. Rozycki <macro@mips.com>
124 * mips-tdep.c (mips_n32n64_push_dummy_call): Sign-extend
125 integers and 32-bit pointers as required by the ABI.
127 2007-12-20 Joel Brobecker <brobecker@adacore.com>
129 * symtab.h: Remove "defs.h" #include.
130 * Makefile.in (symtab_h): Update dependencies.
132 2007-12-19 Joel Brobecker <brobecker@adacore.com>
134 * symtab.h: #include "defs.h".
135 (enum language): Remove opaque declaration.
136 * Makefile.in (symtab_h): Update dependencies.
138 2007-12-19 Joel Brobecker <brobecker@adacore.com>
140 * language.h (enum exp_opcode): Remove commented out forward
142 (op_error): Delete declaration.
144 2007-12-19 Joel Brobecker <brobecker@adacore.com>
146 * infrun.c (handle_inferior_event): Fix spelling in comment.
148 2007-12-18 Daniel Jacobowitz <dan@codesourcery.com>
150 * minsyms.c (lookup_minimal_symbol): Also check the separate
152 (lookup_minimal_symbol_text): Likewise.
153 (lookup_minimal_symbol_solib_trampoline): Likewise.
154 * symtab.c (lookup_global_symbol_from_objfile): Likewise.
156 2007-12-18 Vladimir Prus <vladimir@codesourcery.com>
158 * mi/mi-main.c (mi_cmd_list_features): Announce
159 the 'pending-breakpoints' feature.
161 2007-12-17 Jim Blandy <jimb@codesourcery.com>
163 * dwarf2read.c (dwarf2_add_field): Correctly scale all byte
164 offsets obtained from DW_AT_data_member_location before recording
165 them in FIELD_BITPOS (*fp).
167 * dwarf2read.c (attr_form_is_section_offset): Doc fixes.
169 2007-12-17 Nigel Stephens <nigel@mips.com>
170 Maciej W. Rozycki <macro@mips.com>
172 * utils.c (string_to_core_addr): If the executable format
173 indicates that addresses should be sign-extended and there are
174 only 8 hex digits in the address, then do so.
175 * Makefile.in (utils.o): Depend on $(gdbcore_h).
177 2007-12-17 Chris Dearman <chris@mips.com>
179 * symfile.c (init_filename_language_table): Recognise .sx as
182 2007-12-17 Joel Brobecker <brobecker@adacore.com>
184 * language.h (enum exp_opcode): Comment out this declaration,
185 undoing the previous change.
187 2007-12-17 Luis Machado <luisgpm@br.ibm.com>
189 * breakpoint.c: (watch_command_1): Parse additional optional
190 "thread" parameter to the watchpoint command and set the
191 "thread" member of the breakpoint struct.
193 2007-12-17 Luis Machado <luisgpm@br.ibm.com>
195 * breakpoint.c (bpstat_stop_status): Check an additional
196 condition before evaluating an expression value.
198 2007-12-17 Joel Brobecker <brobecker@adacore.com>
200 * language.h (enum exp_opcode): Add forward declaration.
201 (language_string_char_type, language_lookup_primitive_type_by_name):
202 Move declaration past declaration of language_defn.
204 2007-12-16 Daniel Jacobowitz <dan@codesourcery.com>
205 Joseph Myers <joseph@codesourcery.com>
207 * configure.ac: Check for *-*-solaris2.1[[0-9]]* instead of
208 *-*-solaris2.1[[0-9]].
209 * configure: Regenerate.
210 * procfs.c (proc_set_current_signal): If redelivering a signal,
211 reuse the current siginfo if possible.
213 2007-12-16 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
215 * f-typeprint.c (print_equivalent_f77_float_type): Remove function.
216 (f_type_print_base): Output the type names directly for real and
219 2007-12-16 Vladimir Prus <vladimir@codesourcery.com>
221 * breakpoint.c (bpstat_have_active_hw_watchpoints):
223 (bpstat_stop_status): Remove unused variable
225 * breakpoint.h (bpstat_have_active_hw_watchpoints):
228 2007-12-16 Vladimir Prus <vladimir@codesourcery.com>
230 * target.h (target_pid_or_tid_to_str): Remove.
231 * infrun.c (handle_inferior_event):
232 Use target_pid_to_str instead of
233 target_pid_or_tid_to_str.
234 (normal_stop): Likewise.
236 2007-12-16 Jan Kratochvil <jan.kratochvil@redhat.com>
238 * dwarf2read.c (dwarf_attr_name): Rename `DW_AT_stride_size' to its
239 DWARF3 equivalent `DW_AT_bit_stride'.
240 Rename `DW_AT_stride' to its DWARF3 equivalent `DW_AT_byte_stride'.
242 2007-12-16 Joel Brobecker <brobecker@adacore.com>
244 * mi/mi-main.c: Remove code that was commented out in 1999.
246 2007-12-16 Joel Brobecker <brobecker@adacore.com>
248 * expression.h (parse_expression_in_context): Delete prototype.
249 * parse.c (parse_expression_in_context): Delete.
251 2007-12-14 Vladimir Prus <vladimir@codesourcery.com>
253 Add support for pending breakpoints in MI.
254 * gdb.h (gdb_breakpoint): Add parameter pending.
255 * breakpoint.c (gdb_breakpoint): Add parameter pending.
256 * mi/mi-cmd-break.c (mi_break_insert): Change
257 comment to refer to manual. Add support for
258 the -f flag, for pending breakpoint.
260 2007-12-14 Vladimir Prus <vladimir@codesourcery.com>
262 * breakpoint.c (break_command_really): New, copied
263 from break_command_1. New parameters COND_STRING, THREAD
264 PARSE_CONDITITION_AND_THREAD and PENDING_BREAK_SUPPORT.
265 The previous FLAG parameter split into TEMPFLAG and
267 When PARSE_CONDITION_AND_THREAD is not set, duplicate
268 the passed condition string.
269 (struct captured_breakpoint_args): Remove
270 (do_captured_breakpoint): Remove.
271 (break_command_1): Relay to break_command_really.
272 (gdb_breakpoint): Relay to break_command_really.
274 2007-12-13 Michael Snyder <msnyder@specifix.com>
276 * mips-linux-tdep.c (mips64_fill_gregset): Remove unused variable.
278 2007-12-13 Jim Blandy <jimb@codesourcery.com>
280 * dwarf2read.c (attr_form_is_constant): New function.
281 (dwarf2_add_field): Use it and attr_form_is_section_offset to
282 recognize DW_AT_data_member_location attributes. Use
283 dwarf2_get_attr_constant_value when the attribute is a constant.
285 * dwarf2read.c (attr_form_is_section_offset): New function.
286 (dwarf_add_member_fn, read_common_block, read_partial_die)
287 (dwarf2_symbol_mark_computed): Use it, instead of writing it out.
289 2007-12-12 Jim Blandy <jimb@codesourcery.com>
291 Remove unused support for target-based exception catching.
292 * target.h (struct target_ops): Delete
293 to_enable_exception_callback and to_get_current_exception_event
295 (target_enable_exception_callback)
296 (target_get_current_exception_event): Delete macros.
297 * target.c (update_current_target): Remove code to inherit and
298 default those members.
299 (debug_to_enable_exception_callback)
300 (debug_to_get_current_exception_event): Delete functions.
301 (setup_target_debug): Don't install those methods.
302 * inf-child.c (inf_child_enable_exception_callback)
303 (inf_child_get_current_exception_event): Delete dummy functions.
304 (inf_child_target): Don't install them in the target vector.
305 * breakpoint.h (enum bptype): Delete bp_catch_catch,
307 * breakpoint.c (cover_target_enable_exception_callback)
308 (ep_is_exception_catchpoint, create_exception_catchpoint): Delete
310 (insert_bp_location, update_breakpoints_after_exec)
311 (remove_breakpoint, ep_is_catchpoint, print_it_typical)
312 (bpstat_stop_status, bpstat_what)
313 (bpstat_get_triggered_catchpoints, print_one_breakpoint_location)
314 (user_settable_breakpoint, allocate_bp_location)
315 (disable_watchpoints_before_interactive_call_start)
316 (enable_watchpoints_after_interactive_call_stop, mention)
317 (delete_breakpoint, breakpoint_re_set_one, disable_command)
318 (enable_command): Remove exception catchpoint cases.
319 (catch_exception_command_1): Don't try target-based exception
321 * stack.c (catch_info): Call print_frame_label_vars
324 2007-12-12 Nigel Stephens <nigel@mips.com>
325 Maciej W. Rozycki <macro@mips.com>
327 * remote-mips.c (mips_load): Use regcache_set_valid_p() instead
328 of setting deprecated_register_valid array directly.
330 2007-12-07 Maciej W. Rozycki <macro@mips.com>
332 * mips-tdep.c (extended_offset): Fix a comment.
334 2007-12-07 Maciej W. Rozycki <macro@mips.com>
336 * target.c (update_current_target): Inherit to_log_command.
337 * target.h (struct target_ops). Add to_log_command.
338 (target_log_command): New macro.
339 * top.c (execute_command): Call target_log_command() rather than
340 serial_log_command().
341 * monitor.c (init_base_monitor_ops): Initialize to_log_command.
342 * remote-m32r-sdi.c (init_m32r_ops): Likewise.
343 * remote-mips.c (_initialize_remote_mips): Likewise.
344 * remote.c (init_remote_ops): Likewise.
346 2007-12-06 Daniel Jacobowitz <dan@codesourcery.com>
348 * infrun.c (init_wait_for_inferior): Reset target_last_wait_ptid.
349 (handle_inferior_event): Clear stop_stack_dummy earlier.
351 2007-12-06 Jim Blandy <jimb@codesourcery.com>
353 * addrmap.c (addrmap_splay_tree_remove): New function.
354 (addrmap_mutable_set_empty): Use it.
356 * addrmap.c, addrmap.h: Update to GPLv3.
358 * addrmap.c (struct addrmap): Make the referenced function table
360 (addrmap_fixed_funcs, addrmap_mutable_funcs): Declare const.
361 Don't use designated initializers.
363 * addrmap.c (addrmap_fixed_create_fixed, addrmap_mutable_find)
364 (addrmap_mutable_relocate): Use internal_error, not abort.
366 * NEWS: Mention support for non-contiguous lexical blocks and
369 2007-12-06 Markus Deuling <deuling@de.ibm.com>
371 * gdbarch.sh (stab_reg_to_regnum, dwarf_reg_to_regnum)
372 ( dwarf2_reg_to_regnum, sdb_reg_to_regnum, ecoff_reg_to_regnum): Add
373 gdbarch as parameter.
374 * gdbarch.{c,h}: Regenerate.
376 * xtensa-tdep.c (xtensa_reg_to_regnum): Add gdbarch as parameter.
377 Replace current_gdbarch by gdbarch.
378 * s390-tdep.c (s390_dwarf_reg_to_regnum): Likewise.
379 * rs6000-tdep.c (rs6000_stab_reg_to_regnum)
380 (rs6000_dwarf2_reg_to_regnum): Likewise.
381 * mips-tdep.c (mips_stab_reg_to_regnum)
382 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Likewise.
383 * mep-tdep.c (mep_debug_reg_to_regnum): Likewise.
384 * m32c-tdep.c (m32c_debug_info_reg_to_regnum): Likewise.
385 * i386-tdep.c (i386_dbx_reg_to_regnum)
386 (i386_svr4_reg_to_regnum): Likewise
387 * h8300-tdep.c (h8300s_dbg_reg_to_regnum)
388 (h8300_dbg_reg_to_regnum): Likewise.
389 * amd64-tdep.c (amd64_dwarf_reg_to_regnum): Likewise.
390 * arch-utils.c (no_op_reg_to_regnum): Likewise.
391 * arch-utils.h (no_op_reg_to_regnum): Likewise.
392 * arm-tdep.c (arm_dwarf_reg_to_regnum): Likewise.
393 * cris-tdep.c (cris_dwarf2_reg_to_regnum): Likewise.
394 * hppa-tdep.c (hppa64_dwarf_reg_to_regnum): Likewise.
395 * ia64-tdep.c (ia64_dwarf_reg_to_regnum): Likewise.
396 * m68k-tdep.c (m68k_dwarf_reg_to_regnum): Likewise.
398 2007-12-06 Vladimir Prus <vladimir@codesourcery.com>
400 Localize infrun use of remove_breakpoints.
401 * infrun.c (handle_inferior_event): Remove
402 calls to remove_breakpoints, except where needed to
403 communicate change of breakpoint locations to inferior.
404 (keep_going): If steppping over breakpoint, remove
407 2007-12-06 Vladimir Prus <vladimir@codesourcery.com>
409 Clarify infrun variable naming.
410 * infrun.c (trap_expected): Rename
411 to stepping_over_breakpoint. Document.
412 (stepping_past_breakpoint): Remove.
413 (stepping_past_breakpoint_ptdi): Renamed
414 to deferred_step_ptid.
415 (struct execution_control_state): Rename
416 the another_trap field to stepping_over_breakpoint.
417 (struct inferior_status): Rename the trap_expected
418 field to stepping_over_breakpoint.
419 (clear_proceed_status, proceed)
420 (init_execution_control_state, context_switch)
421 (handle_inferior_event, currently_stepping)
422 (keep_going, save_inferior_status)
423 (restore_inferior_status, prepare_to_proceed): Adjust.
424 * gdbthread.h (struct thread_info): Rename the
425 trap_expected field to stepping_over_breakpoint.
426 * thread.c (load_infrun_state, save_infrun_state):
429 2007-12-06 Pierre Muller <muller@ics.u-strasbg.fr>
431 * win32-nat.c: Allow compilation if CORE_ADDR is 8 byte long.
432 Add "gdb_stdint.h" dependency required for uintptr_t type use.
433 (handle_output_debug_string): Use uintptr_t typecast.
434 (handle_exception): Ditto.
435 (win32_xfer_memory): Ditto.
436 * Makefile.in (win32-nat.o): Add dependency to gdb_stdint header.
438 2007-12-04 Jim Blandy <jimb@codesourcery.com>
440 Support lexical blocks and function bodies that occupy
441 non-contiguous address ranges.
442 * addrmap.c, addrmap.h: New files.
443 * block.h (struct addrmap): New forward declaration.
444 (struct blockvector): New member, 'map'.
445 (BLOCKVECTOR_MAP): New accessor macro.
446 * block.c: #include "addrmap.h"
447 (blockvector_for_pc_sect): If the blockvector we've found has
448 an address map, use it instead of searching the blocks.
449 * buildsym.c: #include "addrmap.h"
450 (pending_addrmap_obstack, pending_addrmap_interesting): New static
452 (really_free_pendings): If we have a pending addrmap, free it too.
453 (record_block_range): New function.
454 (make_blockvector): If we have an interesting pending addrmap,
455 record it in the new blockvector.
456 (start_symtab, buildsym_init): Assert that there is no pending
457 addrmap now; we should have cleaned up any addrmaps we'd built
459 (end_symtab): If there is a pending addrmap left over that didn't
460 get included in the blockvector, free it.
461 * buildsym.h (struct addrmap): New forward declaration.
462 (record_block_range): New prototype.
463 * objfiles.c: #include "addrmap.h".
464 (objfile_relocate): Relocate the blockvector's address map, if
466 * dwarf2read.c (dwarf2_record_block_ranges): New function.
467 (read_func_scope, read_lexical_block_scope): Call it.
468 * Makefile.in (SFILES): Add addrmap.c.
469 (addrmap_h): New header dependency variable.
470 (COMMON_OBS): Add addrmap.o.
471 (addrmap.o): New rule.l
472 (block.o, objfiles.o, buildsym.o): Depend on $(addrmap_h).
474 * block.c (blockvector_for_pc, blockvector_for_pc_sect): Return a
475 pointer to the block, not its index in the blockvector.
476 (block_for_pc_sect): Use the returned block, instead of looking it
478 * block.h (blockvector_for_pc, blockvector_for_pc_sect): Update
480 * breakpoint.c (resolve_sal_pc): Use returned block, instead of
481 looking it up ourselves.
482 * stack.c (print_frame_label_vars): Disable function, which
483 depends on the block's index.
485 * buildsym.c (finish_block): Return the block we've built.
486 * buildsym.h (finish_block): Update prototype.
488 * defs.h (CORE_ADDR_MAX): New constant.
490 2007-12-04 Ulrich Weigand <uweigand@de.ibm.com>
492 * coffread.c (decode_type): Use builtin_type_int32 instead
493 of FT_INTEGER fundamental type for array range index type.
494 (decode_base_type): Use builtin types of current_gdbarch
495 instead of fundamental types.
497 * dwarf2read.c (struct dwarf2_cu): Remove ftypes member.
498 (read_file_scope): Do not initialize ftypes member.
499 (dwarf_base_type, dwarf2_fundamental_types): Remove functions.
500 (read_array_type): Use builtin_type_int32 instead of FT_INTEGER
501 fundamental type for array range index type.
502 (read_tag_string_type): Likewise for string range index type.
503 Also, do not overwrite FT_CHAR type with new string type.
504 (read_base_type): If DW_AT_name is missing, create unnamed type
505 with given properties instead of looking for a fundamental type.
506 Create new types as TYPE_TARGET_TYPE for DW_ATE_address and
507 DW_ATE_complex_float types.
508 (read_subrange_type): Create new type to represent missing
509 DW_AT_type instead of looking for a fundamental type.
510 (die_type): Use builtin type to represent "void" instead of
511 looking for a fundamental type.
513 * stabsread.c (define_symbol): Use builtin types to represent
514 'r' and 'i' floating-point and integer constants.
516 * gdbtypes.c (lookup_fundamental_type): Remove.
517 * gdbtypes.h (lookup_fundamental_type): Remove prototype.
518 (FT_VOID, FT_BOOLEAN, FT_CHAR, FT_SIGNED_CHAR, FT_UNSIGNED_CHAR,
519 FT_SHORT, FT_SIGNED_SHORT, FT_UNSIGNED_SHORT, FT_INTEGER,
520 FT_SIGNED_INTEGER, FT_UNSIGNED_INTEGER, FT_LONG, FT_SIGNED_LONG,
521 FT_UNSIGNED_LONG, FT_LONG_LONG, FT_SIGNED_LONG_LONG,
522 FT_UNSIGNED_LONG_LONG, FT_FLOAT, FT_DBL_PREC_FLOAT, FT_EXT_PREC_FLOAT,
523 FT_COMPLEX, FT_DBL_PREC_COMPLEX, FT_EXT_PREC_COMPLEX, FT_STRING,
524 FT_FIXED_DECIMAL, FT_FLOAT_DECIMAL, FT_BYTE, FT_UNSIGNED_BYTE,
525 FT_TEMPLATE_ARG, FT_DECFLOAT, FT_DBL_PREC_DECFLOAT,
526 FT_EXT_PREC_DECFLOAT, FT_NUM_MEMBERS): Remove macros.
527 * objfiles.c (struct objfile): Remove fundamental_types member.
528 * symfile.c (reread_symbols): Do not clear fundamental_types.
530 * language.h (struct language_defn): Remove la_fund_type member.
531 (create_fundamental_type): Remove.
532 * language.c (unk_lang_create_fundamental_type): Remove.
533 (unknown_language_defn, auto_language_defn,
534 local_language_defn): Adapt initializer.
535 * ada-lang.c (ada_create_fundamental_type): Remove.
536 (ada_language_defn): Adapt initializer.
537 * c-lang.h (c_create_fundamental_type): Remove prototype.
538 * c-lang.c (c_create_fundamental_type): Remove.
539 (c_language_defn, cplus_language_defn, asm_language_defn,
540 minimal_language_defn): Adapt initializer.
541 * f-lang.c (f_create_fundamental_type): Remove.
542 (f_language_defn): Adapt initializer.
543 * jv-lang.c (java_create_fundamental_type): Remove.
544 (java_language_defn): Adapt initializer.
545 * m2-lang.c (m2_create_fundamental_type): Remove.
546 (m2_language_defn): Adapt initializer.
547 * objc-lang.c (objc_create_fundamental_type): Remove.
548 (objc_language_defn): Adapt initializer.
549 * p-lang.h (pascal_create_fundamental_type): Remove prototype.
550 * p-lang.c (pascal_create_fundamental_type): Remove.
551 (pascal_language_defn): Adapt initializer.
552 * scm-lang.c (scm_language_defn): Adapt initializer.
554 2007-12-04 Maciej W. Rozycki <macro@mips.com>
556 * features/mips-cpu.xml: Specify "regnum" for "r0" explicitly.
557 * features/mips64-cpu.xml: Likewise.
558 * features/mips-fpu.xml: Specify "regnum" for "f0" explicitly.
559 * features/mips64-fpu.xml: Likewise.
560 * features/mips-linux.c: Regenerate.
561 * features/mips64-linux.c: Regenerate.
563 2007-12-04 Maciej W. Rozycki <macro@mips.com>
565 * target.h (target_find_new_threads): Fix definition.
567 2007-12-02 Pierre Muller <muller@ics.u-strasbg.fr>
569 * win32-nat.c (win32_resume): Set the trace bit
570 in the thread identified by inferior_ptid.
573 2007-12-02 Pierre Muller <muller@ics.u-strasbg.fr>
575 * win32-nat.c (open_process_used): New static variable.
576 (win32_init_thread_list): Remove call to CloseHandle for thread.
577 (win32_delete_thread): Ditto.
578 (fake_create_process): Set open_process_used if OpenProcess call is
580 (get_win32_debug_event): Do not close process handle.
581 (do_initial_win32_stuff): Set open_process_used to zero.
582 (win32_mourn_inferior): Call CloseHandle for current_process_handle if
583 open_process_used is set.
584 (win32_kill_inferior): Do not close process and main_thread handles.
586 2007-11-30 Daniel Jacobowitz <dan@codesourcery.com>
588 * remote.c (remote_cmdlist): New variable.
589 (PACKET_vFile_open, PACKET_vFile_pread, PACKET_vFile_pwrite)
590 (PACKET_vFile_close, PACKET_vFile_unlink): New constants.
591 (remote_buffer_add_string, remote_buffer_add_bytes)
592 (remote_buffer_add_int, remote_hostio_parse_result)
593 (remote_hostio_send_command, remote_hostio_open, remote_hostio_pwrite)
594 (remote_hostio_pread, remote_hostio_close, remote_hostio_unlink)
595 (remote_fileio_errno_to_host, remote_hostio_error, fclose_cleanup)
596 (remote_hostio_close_cleanup, remote_file_put, remote_file_get)
597 (remote_file_delete, remote_put_command, remote_get_command)
598 (remote_delete_command, remote_command): New functions.
599 (_initialize_remote): Register new packets and commands.
600 * Makefile.in (gdb_fileio_h): New variable.
602 (SUBDIR_MI_OBS): Add mi-cmd-target.o.
603 (SUBDIR_MI_SRCS): Add mi/mi-cmd-target.c.
604 (mi-cmd-target.o): New rule.
605 * mi/mi-cmd-target.c: New file.
606 * mi/mi-cmds.c (mi_cmds): Add target-file-delete, target-file-get,
608 * mi/mi-cmds.h (mi_cmd_target_file_get, mi_cmd_target_file_put)
609 (mi_cmd_target_file_delete): Declare.
610 * remote.h (remote_file_put, remote_file_get, remote_file_delete):
612 * NEWS: Describe new file transfer support.
614 2007-11-30 Vladimir Prus <vladimir@codesourcery.com>
616 * infrun.c (handle_inferior_event): Don't
617 ignore beakpoints if trap_expected is set.
619 2007-11-30 Vladimir Prus <vladimir@codesourcery.com>
621 Make insert_breakpoints return void.
622 * breakpoint.h (insert_breakpoints): Change
624 * breakpoint.c (insert_breakpoints): Change
625 return type to void. Rename local return_val
627 * infrun.c (keep_going): Instead of checking
628 return value from insert_breakpoints, catch exception.
630 2007-11-29 Vladimir Prus <vladimir@codesourcery.com>
632 Stop infrun from tracking breakpoint insertion status.
634 The checks of breakpoints_inserted before calling
635 remove_breakpoints are removed, as remove_breakpoint
636 won't touch uninserted breakpoints. In a number of places,
637 we're interested if a breakpoint is inserted at particular
638 PC, and we now use breakpoint_inserted_here_p. In a few
639 places, insert_breakpoints can be called unconditionally,
640 since it won't try to insert already inserted breakpoint.
642 * breakpoint.h (regular_breakpoint_inserted_here_p): New
644 * breakpoint.c (regular_breakpoint_inserted_here_p): New.
645 (breakpoint_inserted_here_p): Use
646 regular_breakpoint_inserted_here_p.
647 * infrun.c (breakpoints_inserted): Remove.
648 (resume): Don't check for breakpoints_inserted before
649 remove_hw_watchpoints. Use breakpoint_inserted_here_p.
650 (proceed, init_wait_for_inferior): Don't set breakpoints_inserted.
651 (handle_inferior_event): Don't use breakpoints_inserted.
652 Use breakpoints_meant_to_be_inserted and
653 breakpoints_inserted_here_p.
654 (insert_step_resume_breakpoint_at_sal, keep_going): Use
655 breakpoints_meant_to_be_inserted. Don't set breakpoints_inserted.
656 (normal_stop): Don't check for breakpoints_inserted. Don't
657 set breakpoints_inserted.
658 (keep_going): Don't check for breakpoints_inserted.
659 (insert_step_resume_breakpoint_at_sal): Don't insert
662 2007-11-28 Jim Blandy <jimb@codesourcery.com>
664 * breakpoint.c (watch_command_1): When the watchpoint isn't local
665 to any frame, initialize watchpoint_frame using null_frame_id, not
668 2007-11-28 Vladimir Prus <vladimir@codesourcery.com>
670 * infrun.c (resume): Set right thread even if
671 stepping over breakpoint using software single step.
673 2007-11-28 Nick Roberts <nickrob@snap.net.nz>
675 * mi/mi-cmd-var.c (print_varobj): Revert change from 2007-08-31.
676 (mi_print_value_p): Guard against type = NULL.
678 2007-11-27 Thiago Jung Bauermann <bauerman@br.ibm.com>
680 * dfp.c (decimal_from_string): Remove superfluous newline from
682 (decimal_to_string): Likewise.
683 * printcmd.c (printf_command): Change string buffer to use
684 MAX_DECIMAL_STRING constant.
685 * value.c (value_from_decfloat): Likewise.
687 2007-11-27 Ulrich Weigand <uweigand@de.ibm.com>
689 * Makefile.in (ALL_TARGET_OBS): Remove object files that require
690 64-bit CORE_ADDR and BFD support, move them to ...
691 (ALL_64_TARGET_OBS): ... this new variable.
692 * configure.ac: Check for --enable-64-bit-bfd option. Only add
693 64-bit targets with --enable-targets=all if BFD supports 64-bit.
694 * configure: Regenerate.
696 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Do not claim
697 all elf32-i386 executables, only cygwin core files.
699 2007-11-25 Jan Kratochvil <jan.kratochvil@redhat.com>
701 * dwarf2read.c (dwarf2_get_pc_bounds): Moved the `DW_AT_ranges' parsing
702 code with its variables OBJFILE, CU_HEADER and OBFD into ...
703 (dwarf2_ranges_read): ... a new function.
704 (read_partial_die): Implemented the parsing of `DW_AT_ranges'.
706 2007-11-24 Pedro Alves <pedro_alves@portugalmail.pt>
708 * win32-nat.c (DR6_CLEAR_VALUE): New define.
709 (thread_info_struct): Rename suspend_count to suspended, to be
711 (thread_rec): Only suspend the thread if it wasn't suspended by
712 gdb before. Warn if suspending failed.
713 (win32_add_thread): Set Dr6 to DR6_CLEAR_VALUE.
714 (win32_continue): Set Dr6 to DR6_CLEAR_VALUE. Update usage of the
715 `suspended' flag. Do ContinueDebugEvent after resuming the
716 suspended threads, not before. Set threads' contexts before
717 resuming them, not after.
718 (win32_resume): Set Dr6 to DR6_CLEAR_VALUE.
720 2007-11-23 Vladimir Prus <vladimir@codesourcery.com>
722 * breakpoint.c (insert_breakpoints)
723 (insert_bp_location): Remove stale comments.
725 2007-11-23 Maciej W. Rozycki <macro@mips.com>
727 * mips-linux-tdep.h: Fix some formatting.
729 2007-11-21 Markus Deuling <deuling@de.ibm.com>
731 * stack.c (print_args_stub): Use get_frame_arch to get at the current
732 architecture and replace current_gdbarch.
733 (frame_info): Likewise.
735 2007-11-21 Nick Roberts <nickrob@snap.net.nz>
737 * varobj.c (c_variable_editable, cplus_variable_editable)
738 (java_variable_editable, variable_editable): Delete.
739 (varobj_editable_p): Replace above functions with one language
740 independent function. Check for an lvalue.
741 (varobj_get_attributes, varobj_set_value): Use varobj_editable_p.
742 (struct language_specific): Delete variable_editable field.
744 * mi-cmd-var.c (mi_cmd_var_assign): Simplify.
746 * varobj.h: Add extern for varobj_editable_p.
748 2007-11-20 Vladimir Prus <vladimir@codesourcery.com>
750 Remove unused breakpoint fields.
751 * breakpoint.h (struct breakpoint): Remove
752 from_tty and flag fields.
753 * breakpoint.c (break_command_1): Don't set
754 from_tty and flag field set of breakpoint.
755 (create_ada_exception_breakpoint): Don't set
758 2007-11-20 David Ung <davidu@mips.com>
759 Maciej W. Rozycki <macro@mips.com>
761 * mips-tdep.c (mips16_scan_prologue): Handle the MIPS16e SAVE
764 2007-11-20 Vladimir Prus <vladimir@codesourcery.com>
766 * infrun.c (resume): Clarify logic that
767 decides if a single thread must be resumed. Add
770 2007-11-20 Vladimir Prus <vladimir@codesourcery.com>
772 * breakpoint.c (disable_breakpoints_in_unloaded_shlib):
775 2007-11-19 Markus Deuling <deuling@de.ibm.com>
777 * gdbarch.sh (register_sim_regno): Add gdbarch as parameter.
778 * gdbarch.{c,h}: Regenerate.
780 * arch-utils.h (legacy_register_sim_regno): Add gdbarch as parameter.
781 * score-tdep.c (score_register_sim_regno): Likewise.
782 * sim-regno.h (one2one_register_sim_regno): Likewise.
784 * arch-utils.c (legacy_register_sim_regno): Add gdbarch as parameter.
785 Replace current_gdbarch by gdbarch.
786 * sh-tdep.c (sh_sh2a_register_sim_regno)
787 (sh_dsp_register_sim_regno): Likewise.
788 * rs6000-tdep.c (rs6000_register_sim_regno): Likewise.
789 * mips-tdep.c (mips_register_sim_regno): Likewise.
790 * m32c-tdep.c (m32c_register_sim_regno): Likewise.
791 * frv-tdep.c (frv_register_sim_regno): Likewise.
792 * arm-tdep.c (arm_register_sim_regno): Likewise.
793 * remote-sim.c (one2one_register_sim_regno): Likewise.
795 2007-11-16 Ulrich Weigand <uweigand@de.ibm.com>
797 * configure.ac (--enable-targets): New configure option.
798 Collect gdb_target_obs of multiple targets into TARGET_OBS.
799 Call configure.tgt multiple times, using $targ as operand.
800 * configure.tgt: Operate on $targ instead of $target.
801 * configure: Regenerate.
802 * Makefile.in (ALL_TARGET_OBS): Define.
804 * NEWS: Mention --enable-targets option.
806 2007-11-16 Ulrich Weigand <uweigand@de.ibm.com>
808 * mips-tdep.c (show_mipsfpu_command): Do not crash if called when
809 current architecture is not MIPS.
811 2007-11-16 Ulrich Weigand <uweigand@de.ibm.com>
813 * cli/cli-setshow.c (do_setshow_command): Use dynamically sized buffer
814 to construct error message if no argument was supplied.
816 2007-11-16 Ulrich Weigand <uweigand@de.ibm.com>
818 * i386nbsd-tdep.c (i386nbsd_aout_supply_regset): Remove.
819 (i386nbsd_aout_regset_from_core_section): Likewise.
820 (i386nbsd_aout_init_abi): Likewise.
821 (_initialize_i386nbsd_tdep): Do not register i386nbsd_aout_init_abi.
823 * vaxnbsd-tdep.c (vaxnbsd_aout_init_abi): Remove.
824 (_initialize_vaxnbsd_tdep): Do not register vaxnbsd_aout_init_abi.
826 2007-11-16 Ulrich Weigand <uweigand@de.ibm.com>
828 * amd64fsdb-tdep.c (amd64fbsd_sigtramp_start_addr): Use ULL suffix.
829 (amd64fbsd_sigtramp_end_addr): Likewise.
831 * iq2000-tdep.c (iq2000_pointer_to_address): Fix argument type.
832 (iq2000_address_to_pointer): Likewise.
833 (iq2000_frame_prev_register): Likewise.
834 (iq2000_extract_return_value): Use regcache_cooked_read_unsigned
835 instead of regcache_cooked_read into CORE_ADDR variable.
836 (iq2000_return_value): Fix argument types.
838 * m32r-rom.c (m32r_load_section): Fix printf argument type.
839 (m32r_load): Likewise.
841 * m68kbsd-tdep.c: Include "gdbtypes.h".
842 * Makefile.in: Update dependencies.
844 * mn10300-tdep.c (mn10300_frame_unwind_cache): Fix aliasing violation.
846 * nto-tdep.c (LM_ADDR): Do not refer to no-longer-existing
847 lmo->l_addr_size element.
849 * remote-m32r-sdi.c (m32r_xfer_memory): Use paddr to print address.
850 (m32r_insert_breakpoint): Likewise.
851 (m32r_remove_breakpoint): Likewise.
852 (m32r_insert_watchpoint): Likewise.
853 (m32r_remove_watchpoint): Likewise.
854 (m32r_load): Fix printf argument type.
856 * xtensa-tdep.c (xtensa_regset_from_core_section): Fix printf
858 (xtensa_frame_this_id): Do not cast pointers to "int" for output.
859 (xtensa_frame_prev_register): Likewise.
860 (xtensa_push_dummy_call): Likewise.
862 2007-11-16 Ulrich Weigand <uweigand@de.ibm.com>
864 * config/alpha/alpha-linux.mt: Remove file.
865 * config/alpha/alpha.mt: Remove file.
866 * config/alpha/alpha-osf1.mt: Remove file.
867 * config/alpha/fbsd.mt: Remove file.
868 * config/alpha/nbsd.mt: Remove file.
869 * config/alpha/obsd.mt: Remove file.
870 * config/arm/embed.mt: Remove file.
871 * config/arm/linux.mt: Remove file.
872 * config/arm/nbsd.mt: Remove file.
873 * config/arm/obsd.mt: Remove file.
874 * config/arm/wince.mt: Remove file.
875 * config/avr/avr.mt: Remove file.
876 * config/cris/cris.mt: Remove file.
877 * config/frv/frv.mt: Remove file.
878 * config/h8300/h8300.mt: Remove file.
879 * config/i386/cygwin.mt: Remove file.
880 * config/i386/fbsd64.mt: Remove file.
881 * config/i386/fbsd.mt: Remove file.
882 * config/i386/i386gnu.mt: Remove file.
883 * config/i386/i386.mt: Remove file.
884 * config/i386/i386sol2.mt: Remove file.
885 * config/i386/linux64.mt: Remove file.
886 * config/i386/linux.mt: Remove file.
887 * config/i386/mingw.mt: Remove file.
888 * config/i386/nbsd64.mt: Remove file.
889 * config/i386/nbsd.mt: Remove file.
890 * config/i386/nto.mt: Remove file.
891 * config/i386/obsd64.mt: Remove file.
892 * config/i386/obsd.mt: Remove file.
893 * config/i386/sol2-64.mt: Remove file.
894 * config/ia64/ia64.mt: Remove file.
895 * config/ia64/linux.mt: Remove file.
896 * config/iq2000/iq2000.mt: Remove file.
897 * config/m32c/m32c.mt: Remove file.
898 * config/m32r/linux.mt: Remove file.
899 * config/m32r/m32r.mt: Remove file.
900 * config/m68hc11/m68hc11.mt: Remove file.
901 * config/m68k/linux.mt: Remove file.
902 * config/m68k/monitor.mt: Remove file.
903 * config/m68k/nbsd.mt: Remove file.
904 * config/m68k/obsd.mt: Remove file.
905 * config/m88k/obsd.mt: Remove file.
906 * config/mep/mep.mt: Remove file.
907 * config/mips/embed.mt: Remove file.
908 * config/mips/irix5.mt: Remove file.
909 * config/mips/irix6.mt: Remove file.
910 * config/mips/linux.mt: Remove file.
911 * config/mips/nbsd.mt: Remove file.
912 * config/mips/obsd64.mt: Remove file.
913 * config/mn10300/linux.mt: Remove file.
914 * config/mn10300/mn10300.mt: Remove file.
915 * config/mt/mt.mt: Remove file.
916 * config/pa/hppahpux.mt: Remove file.
917 * config/pa/hppa.mt: Remove file.
918 * config/pa/linux.mt: Remove file.
919 * config/pa/obsd.mt: Remove file.
920 * config/powerpc/aix.mt: Remove file.
921 * config/powerpc/linux.mt: Remove file.
922 * config/powerpc/nbsd.mt: Remove file.
923 * config/powerpc/obsd.mt: Remove file.
924 * config/powerpc/ppc-eabi.mt: Remove file.
925 * config/s390/s390.mt: Remove file.
926 * config/score/embed.mt: Remove file.
927 * config/sh/embed.mt: Remove file.
928 * config/sh/linux.mt: Remove file.
929 * config/sh/nbsd.mt: Remove file.
930 * config/sh/obsd.mt: Remove file.
931 * config/sh/sh64.mt: Remove file.
932 * config/sparc/embed.mt: Remove file.
933 * config/sparc/fbsd.mt: Remove file.
934 * config/sparc/linux64.mt: Remove file.
935 * config/sparc/linux.mt: Remove file.
936 * config/sparc/nbsd64.mt: Remove file.
937 * config/sparc/nbsd.mt: Remove file.
938 * config/sparc/obsd64.mt: Remove file.
939 * config/sparc/obsd.mt: Remove file.
940 * config/sparc/sol2-64.mt: Remove file.
941 * config/sparc/sol2.mt: Remove file.
942 * config/sparc/sparc64.mt: Remove file.
943 * config/sparc/sparc.mt: Remove file.
944 * config/spu/spu.mt: Remove file.
945 * config/v850/v850.mt: Remove file.
946 * config/vax/nbsd.mt: Remove file.
947 * config/vax/obsd.mt: Remove file.
948 * config/vax/vax.mt: Remove file.
949 * config/xstormy16/xstormy16.mt: Remove file.
950 * config/xtensa/xtensa.mt: Remove file.
952 * configure.tgt (gdb_target_cpu): Remove. Do not set anywhere.
953 (gdb_target): Likewise.
954 (gdb_target_obs): Document. Set for every target to contents
955 of TDEPFILES in former .mt makefile fragment.
957 * configure.ac (TARGET_OBS): Define.
958 (target_makefile_frag, gdb_target_cpu): Do not define.
959 * configure: Regenerate.
961 * Makefile.in (MT_FLAGS): Remove.
962 (GLOBAL_CFLAGS): Update.
963 (TARGET_OBS): Substitute from configure.
964 (DEPFILES): Remove TDEPFILES, add TARGET_OBS.
965 (@target_makefile_frag@): Remove.
967 2007-11-16 Ulrich Weigand <uweigand@de.ibm.com>
969 * config/arm/embed.mt (SIM_OBS, SIM): Remove.
970 * config/avr/avr.mt (SIM_OBS, SIM): Remove.
971 * config/frv/frv.mt (SIM_OBS, SIM): Remove.
972 * config/h8300/h8300.mt (SIM_OBS, SIM): Remove.
973 * config/iq2000/iq2000.mt (SIM_OBS, SIM): Remove.
974 * config/m32c/m32c.mt (SIM_OBS, SIM): Remove.
975 * config/m32r/linux.mt (SIM_OBS, SIM): Remove.
976 * config/m32r/m32r.mt (SIM_OBS, SIM): Remove.
977 * config/m68hc11/m68hc11.mt (SIM_OBS, SIM): Remove.
978 * config/mips/embed.mt (SIM_OBS, SIM): Remove.
979 * config/mips/linux.mt (SIM_OBS, SIM): Remove.
980 * config/mips/nbsd.mt (SIM_OBS, SIM): Remove.
981 * config/mn10300/mn10300.mt (SIM_OBS, SIM): Remove.
982 * config/powerpc/linux.mt (SIM_OBS, SIM): Remove.
983 * config/powerpc/nbsd.mt (SIM_OBS, SIM): Remove.
984 * config/powerpc/ppc-sim.mt: Remove file.
985 * config/sh/embed.mt (SIM_OBS, SIM): Remove.
986 * config/sh/linux.mt (SIM_OBS, SIM): Remove.
987 * config/sh/nbsd.mt (SIM_OBS, SIM): Remove.
988 * config/sh/sh64.mt (SIM_OBS, SIM): Remove.
989 * config/sparc/embed.mt (SIM_OBS, SIM): Remove.
990 * config/v850/v850.mt (SIM_OBS, SIM): Remove.
991 * config/xstormy16/xstormy16.mt (SIM_OBS, SIM): Remove.
993 * configure.tgt (gdb_sim): Document variable.
994 (arm*-*-* | thumb*-*-* | strongarm*-*-* | xscale-*-*): Set it.
997 (h8300-*-*): Likewise.
998 (iq2000-*-*): Likewise.
999 (m32c-*-*): Likewise.
1000 (m32r*-*-linux*): Likewise.
1001 (m32r*-*-*): Likewise.
1002 (m68hc11*-*-*|m6811*-*-*): Likewise.
1003 (mips*-*-*): Likewise.
1004 (mips*-*-linux*): Likewise.
1005 (mips*-*-netbsd* | mips*-*-knetbsd*-gnu): Likewise.
1006 (mn10300-*-*): Likewise.
1007 (powerpc-*-linux* | powerpc64-*-linux*): Likewise.
1008 (powerpc-*-netbsd* | powerpc-*-knetbsd*-gnu): Likewise.
1009 (powerpc*-*-*): Use ppc-eabi target. Conditionally set gdb_sim.
1011 (sh-*-linux*): Likewise.
1012 (sh*-*-netbsdelf* | sh*-*-knetbsd*-gnu): Likewise.
1013 (sh64-*-elf*): Likewise.
1014 (sparc-*-rtems*): Likewise.
1015 (v850*-*-elf): Likewise.
1016 (xstormy16-*-*): Likewise.
1018 * configure.ac (IGNORE_SIM, IGNORE_SIM_OBS): Do not set.
1019 (SIM, SIM_OBS): Set depending on ${ignore_sim} and ${gdb_sim}.
1020 * configure: Regenerate.
1021 * Makefile.in (SIM, SIM_OBS): Substitute from configure.
1022 (@IGNORE_SIM@, @IGNORE_SIM_OBS@): Remove.
1024 2007-11-16 Ulrich Weigand <uweigand@de.ibm.com>
1026 * configure.tgt (gdb_osabi, build_gdbserver): Comment variables.
1027 (arm*-*-*): Do not set obsolete build_rdi_share variable.
1029 (*-*-freebsd* | *-*-kfreebsd*-gnu): Remove generic case, replace by ...
1030 (alpha*-*-freebsd* | alpha*-*-kfreebsd*-gnu)
1031 (i[34567]86-*-freebsd* | i[34567]86-*-kfreebsd*-gnu)
1032 (sparc*-*-freebsd* | sparc*-*-kfreebsd*-gnu): ... specific cases.
1033 (x86_64-*-freebsd* | x86_64-*-kfreebsd*-gnu): Re-sort.
1035 (xscale-*-*): Merge into arm*-*-* case.
1036 (fido-*-elf*): Merge into m68*-*-elf* case.
1037 (m68*-*-aout*, m68*-*-coff*, m68*-*-elf*, m68*-*-rtems*,
1038 m68*-*-uclinux*): Merge cases.
1039 (powerpc-*-linux*, powerpc64-*-linux*): Merge cases.
1040 (sh-*-coff*, sh-*-elf*): Merge into sh* case.
1042 2007-11-16 Ulrich Weigand <uweigand@de.ibm.com>
1044 * configure.tgt: Reformat main case statement.
1046 2007-11-16 Ulrich Weigand <uweigand@de.ibm.com>
1048 * configure.ac (hostfile, targetfile): Remove.
1049 (GDB_XM_FILE, GDB_TM_FILE): Do not define.
1050 (xm_h, tm_h): Likewise.
1051 (DEPRECATED_TM_FILE, XM_FILE): Do not substitute into Makefile.
1052 * configure, config.in: Regenerate.
1054 * Makefile.in (xm_h, tm_h): Remove. Update dependencies.
1055 (TAGS): Do not consider DEPRECATED_TM_FILE or XM_FILE.
1056 (clean, local-maintainer-clean): Do not remove xm.h or tm.h.
1057 * defs.h: Do not include "xm.h" or "tm.h".
1059 * gdbarch.sh (verify_gdbarch): Do not dump GDB_XM_FILE or GDB_TM_FILE.
1060 * gdbarch.c: Regenerate.
1062 * config/score/embed.mt: Remove obsolete comment.
1064 2007-11-16 Markus Deuling <deuling@de.ibm.com>
1066 * gdbarch.sh (cannot_fetch_register, cannot_store_register): Add gdbarch
1068 * gdbarch.{c,h}: Regenerate.
1070 * alpha-tdep.c (alpha_cannot_fetch_register)
1071 (alpha_cannot_store_register): Add gdbarch as parameter. Replace
1072 current_gdbarch by gdbarch.
1073 * cris-tdep.c (cris_cannot_fetch_register, cris_cannot_store_register)
1074 (crisv32_cannot_fetch_register)
1075 (crisv32_cannot_store_register): Likewise.
1076 * arch-utils.c (cannot_register_not): Likewise.
1077 * arch-utils.h (cannot_register_not): Likewise.
1078 * hppa-tdep.c (hppa32_cannot_store_register)
1079 (hppa32_cannot_store_register, hppa64_cannot_store_register)
1080 (hppa64_cannot_fetch_register): Likewise.
1081 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register)
1082 (mipsnbsd_cannot_store_register): Likewise.
1084 2007-11-16 Markus Deuling <deuling@de.ibm.com>
1086 * m32r-rom.c (m32r_supply_register): Use get_regcache_arch to get at
1087 the current architecture by regcache.
1088 * ppcnbsd-nat.c (ppcnbsd_supply_pcb): Likewise.
1089 * ppc-linux-nat.c (fetch_altivec_register, fetch_spe_register)
1090 (fetch_register, supply_vrregset, fetch_ppc_registers)
1091 (store_altivec_register, store_spe_register, store_register)
1092 (fill_vrregset, store_ppc_registers): Likewise.
1093 * ppcobsd-nat.c (ppcobsd_supply_pcb): Likewise.
1094 * win32-nat.c (do_win32_fetch_inferior_registers)
1095 (do_win32_store_inferior_registers): Likewise.
1096 * procfs.c (procfs_fetch_registers, procfs_store_registers): Likewise.
1097 * remote-m32r-sdi.c (m32r_fetch_registers)
1098 (m32r_store_registers): Likewise.
1099 * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register): Likewise.
1101 * trad-frame.c (trad_frame_alloc_saved_regs): Replace current_gdbarch by
1103 * user-regs.c (user_reg_map_name_to_regnum): Likewise.
1104 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call)
1105 (do_ppc_sysv_return_value, ppc64_sysv_abi_push_dummy_call)
1106 (ppc64_sysv_abi_return_value): Likewise.
1107 * m32c-tdep.c (m32c_register_reggroup_p): Likewise.
1108 * m2-lang.c (build_m2_types): Likewise.
1109 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache
1110 * ppcnbsd-tdep.c (ppcnbsd_sigtramp_cache_init): Likewise.
1111 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_cache): Likewise.
1112 * rs6000-tdep.c (ppc_dwarf2_frame_init_reg): Likewise.
1114 * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Use get_frame_arch to
1115 get at the current architecture by frame_info.
1116 * gcore.c (derive_stack_segment): Likewise.
1118 * shnbsd-nat.c (GETREGS_SUPPLIES): Add gdbarch parameter.
1119 (shnbsd_fetch_inferior_registers, shnbsd_store_inferior_registers): Add
1120 gdbarch to GETREGS_SUPPLIES call.
1122 2007-11-16 Ulrich Weigand <uweigand@de.ibm.com>
1124 * elfread.c (ST_REGULAR, ST_DYNAMIC, ST_SYNTHETIC): New defines.
1125 (elf_symtab_read): Rename DYNAMIC argument to TYPE. Do not access
1126 ELF-private symbol data when processing synthetic symbols. Use
1127 udata.p to get at size of ppc64 synthetic 'dot' symbols.
1128 (elf_symfile_read): Pass TYPE argument to elf_symtab_read.
1130 2007-11-15 Doug Evans <dje@google.com>
1132 * buildsym.h (subfiles): Move ...
1133 * buildsym.c (subfiles): ... to here and make static.
1135 * symmisc.c (maintenance_info_symtabs): Print linetable info.
1137 2007-11-15 Markus Deuling <deuling@de.ibm.com>
1139 * mipsnbsd-tdep.h (SIZEOF_STRUCT_REG, SIZEOF_STRUCT_FPREG): Remove
1141 2007-11-15 Markus Deuling <deuling@de.ibm.com>
1143 * arm-tdep.c (arm_prologue_this_id): Replace LOWEST_PC by its
1144 expression and use get_frame_arch to replace current_gdbarch by frame's
1146 * arm-tdep.h (LOWEST_PC): Remove
1148 2007-11-15 Vladimir Prus <vladimir@codesourcery.com>
1150 Apply const qualifier to some users of bp_location.
1151 * breakpoint.h (struct bpstats): Make
1152 the breakpoint_at field point at const bp_location.
1153 * breakpoint.c (bpstat_alloc): Accept const
1155 (breakpoint_here_p, breakpoint_inserted_here_p)
1156 (software_breakpoint_inserted_here_p)
1157 (breakpoint_thread_match, bpstat_stop_status)
1158 (read_memory_nobpt, bpstat_have_active_hw_watchpoints): Use
1159 const bp_location for iteration.
1160 (print_it_typical, print_bp_stop_message): Use
1161 const bp_location variable.
1163 2007-11-15 Vladimir Prus <vladimir@codesourcery.com>
1165 Make mark_breakpoints_out static.
1166 * breakpoint.h (mark_breakpoints_out): Remove
1168 * breakpoint.c (mark_breakpoints_out): Make static.
1170 2007-11-15 Vladimir Prus <vladimir@codesourcery.com>
1172 Prevent clear_command from directly modifying breakpoint list.
1173 * Makefile.in (breakpoint_h): Update dependency.
1174 * breakpoint.c (clear_command): Do not remove
1175 breakpoints from breakpoint_chain. Collect breakpoints
1176 to delete in a vector.
1177 * breakpoint.h (breakpoint_p): New typedef for pointer to
1178 breakpoint. Register vector of breakpoint_p.
1180 2007-11-15 Vladimir Prus <vladimir@codesourcery.com>
1182 Remove 'run_cleanup'.
1183 * defs.h (do_run_cleanups, make_run_cleanup): Remove
1185 * infcmd.c (run_command_1): Call clear_solib instead
1187 * jv-lang.c (java_rerun_cleanup): Remove, for lack of
1189 * solib.c (solib_cleanup_queued, do_clear_solib): Remove.
1190 (update_solib_lib): Don't setup run cleanup.
1191 (no_shared_libraries): Call clear_solib, not do_clear_solib.
1192 * utils.c (run_cleanup_chain, make_run_cleanup)
1193 (do_run_cleanups): Remove.
1195 2007-11-15 Vladimir Prus <vladimir@codesourcery.com>
1197 Remove CLEAR_SOLIB use.
1198 * corelow.c (core_close): Don't check for CLEAR_SOLIB.
1199 * infcmd.c (attach_command): Likewise.
1201 2007-11-14 Doug Evans <dje@google.com>
1203 * buildsym.c (start_subfile,start_symtab): Doc fixes.
1205 2007-11-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
1207 * tui/tui-data.c (tui_prev_win): Guard against NULL.
1209 2007-11-12 Markus Deuling <deuling@de.ibm.com>
1211 * gdbarch.sh (gdbarch_alloc): Replace current_gdbarch by gdbarch. Remove
1213 (verify_gdbarch, gdbarch_dump): Likewise.
1214 (do_read): Update comment.
1215 (addr_bit, bfd_arch_info, target_desc, long_long_bit, floatformat)
1216 (ptr_bit, name_of_malloc): Replace current_gdbarch by gdbarch.
1217 * gdbarch.{c,h}: Regenerate.
1219 2007-11-12 Markus Deuling <deuling@de.ibm.com>
1221 * xtensa-tdep.c (ARG_1ST): Replace ARGS_FIRST_REG by its expression.
1222 (ARGS_FIRST_REG): Remove.
1223 (areg_numer): New function.
1224 (xtensa_pseudo_register_read, xtensa_frame_prev_register)
1225 (xtensa_extract_return_value, xtensa_store_return_value)
1226 (xtensa_frame_cache): Replace AREG_NUMBER by areg_number.
1227 (AREG_NUMBER): Remove.
1228 (XTENSA_IS_ENTRY, ARG_NOF, ARG_1ST): Add gdbarch as parameter.
1229 (xtensa_frame_cache): Update use of XTENSA_IS_ENTRY.
1230 (xtensa_push_dummy_call): Update use of ARG_NOF.
1231 (extract_call_winsize): Add gdbarch as parameter. Replace
1232 current_gdbarch by gdbarch.
1233 (xtensa_extract_return_value, xtensa_store_return_value): Update call
1234 of extract_call_winsize.
1236 2007-11-10 Joel Brobecker <brobecker@adacore.com>
1238 * NEWS: Add entry for new set/show print frame-args command.
1240 2007-11-09 Kevin Buettner <kevinb@redhat.com>
1242 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Add missing
1243 register number to map. Adjust warning check and error/warning
1244 return value code to match expectations of this function's callers.
1246 2007-11-09 Joel Brobecker <brobecker@adacore.com>
1248 * stack.c (print_this_frame_argument_p): Handle arguments passed
1249 by reference properly.
1251 2007-11-09 Joel Brobecker <brobecker@adacore.com>
1253 * stack.c (print_frame_arguments_choices): New static global.
1254 (print_frame_arguments): Likewise.
1255 (print_this_frame_argument_p): New function.
1256 (print_frame_args): Print the argument value only when appropriate.
1257 (_initialize_task): Add new "set/show print frame-arguments" command.
1259 2007-11-09 Luis Machado <luisgpm@br.ibm.com>
1261 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Move
1262 saved_dabr_value assignment to the correct position.
1264 2007-11-09 Markus Deuling <deuling@de.ibm.com>
1266 * arch-utils.c (generic_convert_register_p): Add gdbarch as parameter.
1267 * arch-utils.h (generic_convert_register_p): Likewise.
1269 2007-11-09 Markus Deuling <deuling@de.ibm.com>
1271 * gdbarch.sh (convert_register_p): Add gdbarch as parameter.
1272 * ia64-tdep.c (ia64_convert_register_p): Likewise.
1273 * i387-tdep.c (i387_convert_register_p): Likewise.
1274 * i387-tdep.h (i387_convert_register_p): Likewise.
1275 * alpha-tdep.c (alpha_convert_register_p): Likewise.
1276 * gdbarch.{c,h}: Regenerate.
1278 * rs6000-tdep.c (rs6000_convert_register_p): Add gdbarch as parameter.
1279 Replace current_gdbarch by gdbarch.
1280 * mips-tdep.c (mips_convert_register_p): Likewise.
1281 * m68k-tdep.c (m68k_convert_register_p): Likewise.
1282 * i386-tdep.c (i386_convert_register_p): Likewise.
1284 2007-11-08 Aleksandar Ristovski <aristovski@qnx.com>
1286 * gdb_string.h: Include <strings.h>.
1288 2007-11-08 Vladimir Prus <vladimir@codesourcery.com>
1290 * breakpoint.c (break_command_1): Remove
1291 pending_bp parameter.
1292 (create_breakpoint): Likewise.
1293 (create_breakpoints): Likewise. Adjust call to
1295 (break_command_1): Likewise. Adjust call to
1297 (do_captured_breakpoint): Adjust call to
1299 (break_command, tbreak_command, hbreak_command)
1300 (stopin_command, stopat_command): Adjust call
1303 2007-11-07 Joseph Myers <joseph@codesourcery.com>
1304 Daniel Jacobowitz <dan@codesourcery.com>
1306 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Right-align
1307 struct values smaller than one doubleword; left-align those
1308 larger. Pass structs containing a single floating-point value in
1311 2007-11-07 Joseph Myers <joseph@codesourcery.com>
1312 Daniel Jacobowitz <dan@codesourcery.com>
1314 * gdbtypes.c (floatformats_ibm_long_double): New.
1315 * gdbtypes.h (floatformats_ibm_long_double): Declare.
1316 * ia64-tdep.c (floatformat_ia64_ext): Update for addition of
1318 * mips-tdep.c (n32n64_floatformat_always_valid,
1319 floatformat_n32n64_long_double_big, floatformats_n32n64_long):
1321 (mips_gdbarch_init): Use floatformats_ibm_long_double instead of
1322 floatformats_n32n64_long.
1323 * ppc-linux-tdep.c (ppc_linux_init_abi): Use 128-bit IBM long
1325 * doublest.c (convert_floatformat_to_doublest,
1326 convert_doublest_to_floatformat): Handle split floating-point
1328 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Handle IBM long
1330 (ppc64_sysv_abi_push_dummy_call): Likewise.
1331 (do_ppc_sysv_return_value): Handle IBM long double return.
1333 2007-11-07 Vladimir Prus <vladimir@codesourcery.com>
1335 Fix crash when a variable object being deleted
1336 has any of its children deleted previously.
1338 * varobj.c (delete_variable_1): Don't recurse
1339 into deleted children.
1341 2007-11-07 Markus Deuling <deuling@de.ibm.com>
1343 * gdbarch.sh (legacy_virtual_frame_pointer): Add gdbarch parameter.
1344 * gdbarch.{c,h}: Regenerate.
1345 * arch-utils.c (legacy_virtual_frame_pointer): Add gdbarch parameter.
1346 Replace current_gdbarch by gdbarch.
1347 * m32c-tdep.c (m32c_virtual_frame_pointer): Likewise.
1348 * mips-tdep.c (mips_virtual_frame_pointer): Likewise.
1349 * spu-tdep.c (spu_virtual_frame_pointer): Likewise.
1351 2007-11-07 Markus Deuling <deuling@de.ibm.com>
1353 * shnbsd-tdep.c (shnbsd_supply_gregset, shnbsd_collect_gregset): Use
1354 get_regcache_arch to get at the current architecture by regcache.
1355 * xstormy16-tdep.c (xstormy16_frame_prev_register): Use get_frame_arch
1356 to get at the current architecture by frame_info.
1357 * fbsd-nat.c (fbsd_make_corefile_notes): Use get_regcache_arch to get
1358 at the current architecture by regcache.
1359 * gnu-v3-abi.c (gnuv3_skip_trampoline): Use get_frame_arch to get at
1360 the current architecture by frame_info.
1361 (build_gdb_vtable_type): Replace current_gdbarch by gdbarch.
1362 * aix-thread.c (special_register_p): Add gdbarch as parameter.
1363 (fetch_regs_kernel_thread, store_regs_kernel_thread): Add gdbarch to
1364 caller of special_register_p.
1366 2007-11-07 Markus Deuling <deuling@de.ibm.com>
1368 * infcall.c (call_function_by_hand): Use get_frame_arch to get at the
1369 current architecture by frame_info.
1371 2007-11-07 Markus Deuling <deuling@de.ibm.com>
1373 * xtensa-tdep.h (SIZEOF_GREGSET, XTENSA_ELF_NGREG) Remove.
1375 2007-11-07 Markus Deuling <deuling@de.ibm.com>
1377 * s390-nat.c (supply_gregset, fill_gregset): Use get_regcache_arch to
1378 get at the current architecture by regcache.
1379 (SUBOFF): Add gdbarch to macro definition.
1381 2007-11-07 Markus Deuling <deuling@de.ibm.com>
1383 * gdbarch.sh (breakpoint_from_pc): Add gdbarch parameter.
1384 * gdbarch.{c,h}: Regenerate.
1386 * xtensa-tdep.c (xtensa_breakpoint_from_pc): Add gdbarch parameter.
1387 Replace current_gdbarch by gdbarch.
1388 * sh-tdep.c (sh_breakpoint_from_pc): Likewise.
1389 * sh64-tdep.c (sh64_breakpoint_from_pc): Likewise.
1390 * score-tdep.c (score_breakpoint_from_pc): Likewise.
1391 * mips-tdep.c (mips_breakpoint_from_pc): Likewise.
1392 * m32r-tdep.c (m32r_breakpoint_from_pc): Likewise.
1393 * iq2000-tdep.c (iq2000_breakpoint_from_pc): Likewise.
1394 * arm-tdep.c (arm_breakpoint_from_pc): Likewise.
1396 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Add gdbarch
1398 * vax-tdep.c (vax_breakpoint_from_pc): Likewise.
1399 * v850-tdep.c (v850_breakpoint_from_pc): Likewise.
1400 * spu-tdep.c (spu_breakpoint_from_pc): Likewise.
1401 * sparc-tdep.c (sparc_breakpoint_from_pc): Likewise.
1402 * s390-tdep.c (s390_breakpoint_from_pc): Likewise.
1403 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Likewise.
1404 * mt-tdep.c (mt_breakpoint_from_pc): Likewise.
1405 * mep-tdep.c (mep_breakpoint_from_pc): Likewise.
1406 * m88k-tdep.c (m88k_breakpoint_from_pc): Likewise.
1407 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Likewise.
1408 * m32c-tdep.c (m32c_breakpoint_from_pc): Likewise.
1409 * ia64-tdep.c (ia64_breakpoint_from_pc): Likewise.
1410 * i386-tdep.c (i386_breakpoint_from_pc): Likewise.
1411 * hppa-tdep.c (hppa_breakpoint_from_pc): Likewise.
1412 * h8300-tdep.c (h8300_breakpoint_from_pc): Likewise.
1413 * frv-tdep.c (frv_breakpoint_from_pc): Likewise.
1414 * cris-tdep.c (cris_breakpoint_from_pc): Likewise.
1415 * avr-tdep.c (avr_breakpoint_from_pc): Likewise.
1416 * alpha-tdep.c (alpha_breakpoint_from_pc): Likewise.
1417 * m68k-tdep.c (m68k_local_breakpoint_from_pc): Likewise.
1419 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Add gdbarch parameter.
1420 Replace current_gdbarch by gdbarch.
1421 (rs6000_software_single_step): Use get_frame_arch to get at the
1422 current architecture by frame_info. Add gdbarch to
1423 rs6000_breakpoint_from_pc call.
1425 2007-11-07 Markus Deuling <deuling@de.ibm.com>
1427 * frv-tdep.c (frv_register_name, frv_check_watch_resources): Replace
1428 macro CURRENT_VARIANT by its expression.
1429 (CURRENT_VARIANT): Remove.
1430 (frv_check_watch_resources): Add gdbarch parameter.
1432 2007-11-07 Markus Deuling <deuling@de.ibm.com>
1434 * MAINTAINERS (Write After Approval): Add self.
1436 2007-11-05 Ulrich Weigand <uweigand@de.ibm.com>
1438 * features/rs6000/power-core.xml: Use uint32 as register type.
1439 * features/rs6000/power64-core.xml: Use uint64/uint32 as register type.
1440 * features/rs6000/powerpc-32.c: Regenerate.
1441 * features/rs6000/powerpc-403.c: Regenerate.
1442 * features/rs6000/powerpc-403gc.c: Regenerate.
1443 * features/rs6000/powerpc-505.c: Regenerate.
1444 * features/rs6000/powerpc-602.c: Regenerate.
1445 * features/rs6000/powerpc-603.c: Regenerate.
1446 * features/rs6000/powerpc-604.c: Regenerate.
1447 * features/rs6000/powerpc-64.c: Regenerate.
1448 * features/rs6000/powerpc-7400.c: Regenerate.
1449 * features/rs6000/powerpc-750.c: Regenerate.
1450 * features/rs6000/powerpc-860.c: Regenerate.
1451 * features/rs6000/powerpc-e500.c: Regenerate.
1453 2007-11-05 Joel Brobecker <brobecker@adacore.com>
1455 * breakpoint.c (set_raw_breakpoint_without_location): Make static.
1457 2007-11-05 Joel Brobecker <brobecker@adacore.com>
1459 * breakpoint.h (create_solib_load_event_breakpoint)
1460 (create_solib_unload_event_breakpoint)
1461 (create_fork_event_catchpoint, create_vfork_event_catchpoint)
1462 (create_exec_event_catchpoint): Delete declaration.
1463 * breakpoint.c (create_solib_load_event_breakpoint)
1464 (solib_load_unload_1, create_solib_unload_event_breakpoint): Delete.
1465 (create_fork_event_catchpoint, create_vfork_event_catchpoint)
1466 (create_exec_event_catchpoint): Make static.
1468 2007-11-05 Joel Brobecker <brobecker@adacore.com>
1470 * breakpoint.h (set_breakpoint_sal): Remove declaration.
1471 * breakpoint.c (set_breakpoint_sal): Delete.
1473 2007-11-05 Joel Brobecker <brobecker@adacore.com>
1475 * buildsym.c (finish_block): Remove "#if 1"/"#endif" brackets.
1476 (make_blockvector): Likewise. Remove FIXME comment.
1478 2007-11-05 Luis Machado <luisgpm@br.ibm.com>
1480 * printcmd.c: (printf_command): Add support for new DFP
1481 modifiers %H, %D and %DD.
1482 * configure.ac: Add check for DECFLOAT printf support.
1483 * configure: Regenerated.
1485 2007-11-02 Ulrich Weigand <uweigand@de.ibm.com>
1487 * gdbtypes.h (struct cplus_struct_type): Remove runtime_ptr member.
1488 (TYPE_RUNTIME_PTR, TYPE_VTABLE, TYPE_HAS_VTABLE,
1489 TYPE_PRIMARY_BASE, TYPE_VIRTUAL_BASE_LIST): Remove macros.
1490 (HP_ACC_VFUNC_START, HP_ACC_VBASE_START, HP_ACC_TYPEINFO_OFFSET,
1491 HP_ACC_TOP_OFFSET_OFFSET): Likewise.
1492 (has_vtable, primary_base_class, virtual_base_list_length,
1493 virtual_base_list_length_skip_primaries, virtual_base_index,
1494 virtual_base_index_skip_primaries, class_index_in_primary_list,
1495 count_virtual_fns): Remove prototypes.
1496 * gdbtypes.c (has_vtable, primary_base_class, current_vbase_list,
1497 virtual_base_list_aux, virtual_base_list, 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.
1502 * cp-valprint.c (cp_print_hpacc_virtual_table_entries): Remove.
1503 (hpacc_vtbl_ptr_name, hpacc_vtbl_ptr_type_name): Remove.
1504 (cp_print_value_fields): Remove support for HP aCC vtables.
1505 (cp_print_value): Likewise.
1506 * c-typeprint.c (c_type_print_base): Likewise.
1508 * value.h (find_rt_vbase_offset): Remove prototype.
1509 * valops.c (find_rt_vbase_offset): Remove.
1510 (search_struct_method): Remove support for HP aCC vtables.
1511 (find_method_list): Likewise.
1513 2007-11-02 Ulrich Weigand <uweigand@de.ibm.com>
1515 * language.h (struct language_defn): Remove la_builtin_type_vector
1516 and string_char_type members.
1517 * language.c (language_string_char_type): No longer consult
1518 la->string_char_type.
1519 (language_lookup_primitive_type_by_name): No longer consult
1520 current_language->la_builtin_type_vector.
1522 * language.c (unknown_language_defn, auto_language_defn,
1523 local_language_defn): Adapt initializer.
1524 * ada-lang.c (ada_language_defn): Likewise.
1525 * c-lang.c (c_language_defn, cplus_language_defn, asm_language_defn,
1526 minimal_language_defn): Likewise.
1527 * f-lang.c (f_language_defn): Likewise.
1528 * jv-lang.c (java_language_defn): Likewise.
1529 * m2-lang.c (m2_language_defn): Likewise.
1530 * objc-lang.c (objc_language_defn): Likewise.
1531 * p-lang.c (pascal_language_defn): Likewise.
1532 * scm-lang.c (scm_language_defn): Likewise.
1534 2007-11-02 Markus Deuling <deuling@de.ibm.com>
1536 * frame.c (frame_id_inner): Add gdbarch parameter. Replace
1537 current_gdbarch by gdbarch.
1538 (frame_find_by_id, get_prev_frame_1): Use get_frame_arch to get at the
1539 current architecture by frame_info.
1540 * frame.h (frame_id_inner): Add gdbarch parameter.
1541 * stack.c (return_command): Use get_frame_arch to get at the current
1542 architecture by frame_info. Update call of frame_id_inner.
1543 * infrun.c (handle_inferior_event): Likewise.
1544 * dummy-frame.c (dummy_frame_push): Use get_regcache_arch to get at the
1545 current architecture by regcache. Update call of frame_id_inner.
1547 2007-11-02 Markus Deuling <deuling@de.ibm.com>
1549 * gdbarch.sh (register_name): Add gdbarch parameter.
1550 * gdbarch.{c,h}: Regenerate.
1552 * target-descriptions.c (tdesc_register_name): Add gdbarch parameter.
1553 (tdesc_register_name): Replace current_gdbarch by gdbarch.
1554 * target-descriptions.h (tdesc_register_name): Add gdbarch parameter.
1556 * xstormy16-tdep.c (xstormy16_register_name): Add gdbarch parameter.
1557 * vax-tdep.c (vax_register_name): Add gdbarch parameter.
1558 * spu-tdep.c (spu_register_name): Add gdbarch parameter.
1559 * s390-tdep.c (s390_register_name): Add gdbarch parameter.
1560 * mt-tdep.c (mt_register_name): Add gdbarch parameter.
1561 (mt_registers_info): Replace current_gdbarch by gdbarch.
1562 (mt_register_reggroup_p): Add gdbarch to mt_register_name call.
1563 * mips-tdep.c (mips_register_name): Add gdbarch parameter. Replace
1564 current_gdbarch by gdbarch.
1565 (mips_register_name): Add gdbarch to tdesc_register_name call.
1566 * mep-tdep.c (mep_register_name): Add gdbarch parameter. Replace
1567 current_gdbarch by gdbarch.
1568 (mep_register_reggroup_p): Add gdbarch to mep_register_name call.
1569 * m32c-tdep.c (m32c_register_name): Add gdbarch parameter. Replace
1570 current_gdbarch by gdbarch.
1571 * m88k-tdep.c (m88k_register_name): Add gdbarch parameter.
1572 * m68k-tdep.c (m68k_register_name): Add gdbarch parameter.
1573 * m32r-tdep.c (m32r_register_name): Add gdbarch parameter.
1574 (m32r_frame_unwind_cache): Use get_frame_arch to get at the current
1575 architecture by frame_info.
1576 * iq2000-tdep.c (iq2000_register_name): Add gdbarch parameter.
1577 * ia64-tdep.c (ia64_register_name): Add gdbarch parameter.
1578 * hppa-tdep.c (hppa32_register_name, hppa64_register_name): Add gdbarch
1580 * h8300-tdep.c (h8300_register_name, h8300s_register_name)
1581 (h8300sx_register_name): Add gdbarch parameter.
1582 * cris-tdep.c (cris_register_name, crisv32_register_name): Add
1583 gdbarch parameter. Replace current_gdbarch by gdbarch.
1584 (cris_gdbarch_init): Replace current_gdbarch by gdbarch (comment).
1585 * avr-tdep.c (avr_register_name): Add gdbarch parameter.
1586 * arm-tdep.c (arm_register_name): Add gdbarch paramete
1587 * amd64-tdep.c (amd64_register_name): Add gdbarch parameter. Update
1589 * amd64-tdep.h (amd64_register_name): Add gdbarch parameter.
1590 * amd64-linux-tdep.c (amd64_linux_register_name): Add gdbarch parameter.
1591 * alpha-tdep.c (alpha_register_name): Add gdbarch parameter.
1592 (alpha_cannot_fetch_register, alpha_cannot_store_register): Update call
1593 of alpha_register_name.
1594 * frv-tdep.c (frv_register_name): Add gdbarch parameter.
1595 * i386-tdep.c (i386_register_name): Add gdbarch parameter. Replace
1596 current_gdbarch by gdbarch.
1597 (i386_register_type): Replace ?current_gdbarch by gdbarch.
1598 * i386-tdep.h (i386_register_name): Add gdbarch parameter.
1599 * i386-linux-tdep.c (i386_linux_register_name): Add gdbarch parameter.
1601 * m68hc11-tdep.c (m68hc11_register_name): Add gdbarch parameter.
1602 (m68hc11_register_reggroup_p): Add gdbarch to call of
1603 m68hc11_register_name.
1604 * mn10300-tdep.c (mn10300_generic_register_name, am33_register_name)
1605 (am33_2_register_name): Add gdbarch parameter.
1606 (mn10300_frame_unwind_cache): Use get_frame_arch to get at the current
1607 architecture by frame_info.
1608 (mn10300_dump_tdep): Replace current_gdbarch by gdbarch.
1609 * rs6000-tdep.c (rs6000_register_name): Add gdbarch parameter. Replace
1610 current_gdbarch by gdbarch.
1611 * score-tdep.c (score_register_name): Add gdbarch parameter.
1612 (score_return_value, score_push_dummy_call): Replace current_gdbarch
1614 * sh64-tdep.c (sh64_register_name): Add gdbarch parameter.
1615 (sh64_compact_reg_base_num, sh64_register_convert_to_virtual)
1616 (sh64_register_convert_to_raw, sh64_fv_reg_base_num)
1617 (sh64_dr_reg_base_num, sh64_fpp_reg_base_num): Add gdbarch parameter
1618 and update caller. Replace current_gdbarch by gdbarch.
1619 (sh64_extract_return_value, sh64_store_return_value): Use
1620 get_regcache_arch to get at the current architecture by regcache.
1621 * sh-tdep.c (sh_sh_register_name, sh_sh3_register_name)
1622 (sh_sh3e_register_name, sh_sh2e_register_name, sh_sh2a_register_name)
1623 (sh_sh2a_nofpu_register_name, sh_sh_dsp_register_name)
1624 (sh_sh3_dsp_register_name, sh_sh4_register_name)
1625 (sh_sh4_nofpu_register_name, sh_sh4al_dsp_register_name): Add gdbarch
1627 (fv_reg_base_num, dr_reg_base_num, sh_justify_value_in_reg)
1628 (sh_next_flt_argreg): Add gdbarch parameter and update caller. Replace
1629 current_gdbarch by gdbarch.
1630 (sh_extract_return_value_fpu, sh_store_return_value_fpu): Use
1631 get_regcache_arch to get at the current architecture by regcache.
1632 * sparc-tdep.c (sparc32_register_name): Add gdbarch parameter.
1633 * sparc64-tdep.c (sparc64_register_name): Add gdbarch parameter.
1634 * v850-tdep.c (v850_register_name, v850e_register_name): Add gdbarch
1636 (v850_unwind_sp, v850_unwind_pc): Replace current_gdbarch by gdbarch.
1637 * xtensa-tdep.c (xtensa_register_name): Add gdbarch parameter. Replace
1638 current_gdbarch by gdbarch.
1639 (xtensa_pseudo_register_read, xtensa_pseudo_register_write)
1640 (xtensa_frame_prev_register): Add gdbarch parameter to
1641 xtensa_register_name call.
1643 2007-10-31 Ulrich Weigand <uweigand@de.ibm.com>
1645 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Fall back to
1646 find_solib_trampoline_target if PC is not in .plt section.
1648 2007-10-31 Ulrich Weigand <uweigand@de.ibm.com>
1650 * elfread.c (elf_symtab_read): When constructing a solib trampoline
1651 minimal symbol from an undefined dynamic symbol, use proper section.
1653 2007-10-31 Markus Deuling <deuling@de.ibm.com>
1655 * arm-linux-nat.c (fetch_register, fetch_regs): Use get_regcache_arch
1656 to get at the current architecture by regcache.
1658 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1660 * libunwind-frame.c (libunwind_frame_sniffer)
1661 libunwind_frame_prev_register, libunwind_sigtramp_frame_sniffer)
1662 (libunwind_frame_cache): Use get_frame_arch to get at the current
1663 architecture by frame_info.
1664 (libunwind_get_reg_special): Replace current_gdbarch by gdbarch.
1666 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1668 * iq2000-tdep.c (iq2000_frame_prev_register): Use get_frame_arch to get
1669 at the current architecture by frame_info.
1671 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1673 * inf-child.c (inf_child_fetch_inferior_registers): Use
1674 get_regcache_arch to get at the current architecture by regcache.
1676 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1678 * inf-ptrace.c (inf_ptrace_fetch_registers)
1679 (inf_ptrace_fetch_register, inf_ptrace_store_register)
1680 (inf_ptrace_store_registers): Use get_regcache_arch to get at the
1681 current architecture by regcache.
1683 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1685 * hpux-thread.c (hpux_thread_fetch_registers)
1686 (hpux_thread_store_registers): Use get_regcache_arch to get at the
1687 current architecture by regcache.
1689 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1691 * hppa-tdep.c (hppa_frame_cache): Use get_frame_arch to get at the
1692 current architecture by frame_info.
1694 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1696 * go32-nat.c (fetch_register, go32_fetch_registers, store_register)
1697 (go32_store_registers): Use get_regcache_arch to get at the current
1698 architecture by regcache.
1700 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1702 * gdbtypes.c (gdbtypes_post_init): Replace current_gdbarch by gdbarch.
1704 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1706 * frv-linux-tdep.c (frv_linux_sigtramp_frame_cache): Use get_frame_arch
1707 to get at the current architecture by frame_info.
1709 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1711 * f-lang.c (build_fortran_types): Replace current_gdbarch by gdbarch.
1713 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1715 * core-regset.c (fetch_core_registers): Use get_regcache_arch to get at
1716 the current architecture by regcache.
1718 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1720 * corelow.c (get_core_registers): Use get_regcache_arch to get at the
1721 current architecture by regcache.
1723 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1725 * bsd-uthread.c (bsd_uthread_fetch_registers)
1726 (bsd_uthread_store_registers): Use get_regcache_arch to get at the
1727 current architecture by regcache.
1729 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1731 * avr-tdep.c (avr_frame_unwind_cache, avr_frame_prev_register): Use
1732 get_frame_arch to get at the current architecture by frame_info.
1734 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1736 * arm-tdep.c (arm_get_next_pc): Replace current_gdbarch by gdbarch.
1738 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1740 * armnbsd-nat.c (arm_supply_gregset, fetch_register, store_register)
1741 (store_regs): Use get_regcache_arch to get at the current architecture
1744 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1746 * arm-linux-tdep.c (arm_linux_supply_gregset): Use get_regcache_arch
1747 to get at the current architecture by regcache.
1749 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1751 * alphabsd-nat.c (alphabsd_fetch_inferior_registers)
1752 (alphabsd_store_inferior_registers): Use get_regcache_arch to get at
1753 the current architecture by regcache.
1755 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1757 * ada-lang.c (ada_language_arch_info): Replace current_gdbarch by
1760 2007-10-30 Daniel Jacobowitz <dan@codesourcery.com>
1762 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Check the selected
1763 soft float and vector ABIs. Support the generic vector ABI for
1765 (do_ppc_sysv_return_value): Likewise. Correct argument types and
1767 (ppc64_sysv_abi_push_dummy_call): Assert that floating point is
1769 * ppc-tdep.h (enum powerpc_vector_abi): New.
1770 (struct gdbarch_tdep): Add soft_float and vector_abi.
1771 * rs6000-tdep.c (setpowerpccmdlist, showpowerpccmdlist)
1772 (powerpc_soft_float_global, powerpc_vector_strings)
1773 (powerpc_vector_abi_global, powerpc_vector_abi_string): New.
1774 (rs6000_gdbarch_init): Check for soft-float and vector ABI markings.
1775 (set_powerpc_command, show_powerpc_command, powerpc_set_soft_float)
1776 (powerpc_set_vector_abi): New.
1777 (_initialize_rs6000_tdep): Register "set powerpc" and "show powerpc"
1779 * Makefile.in (elf_ppc_h): New.
1780 (rs6000-tdep.o): Update.
1782 2007-10-29 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
1784 * ppc-linux-tdep.c (ppc32_linux_reg_offsets): Corrected
1785 swapped offsets and VRSAVE offset.
1786 (ppc64_linux_reg_offsets): Corrected swapped offsets.
1787 (ppc32_linux_vrregset): Added.
1788 (ppc_linux_regset_from_core_section): Added support for
1789 .reg-ppc-vmx section.
1790 * ppc-tdep.h (ppc_altivec_support_p): Declare.
1791 (ppc_supply_vrregset): Declare.
1792 (ppc_collect_vrregset): Declare.
1793 * rs6000-tdep.c (ppc_altivec_support_p): Added.
1794 (ppc_supply_vrregset): Added.
1795 (ppc_collect_vrregset): Added.
1796 * corelow.c (get_core_registers): Added support for
1797 .reg-ppc-vmx section.
1799 2007-10-29 Joel Brobecker <brobecker@adacore.com>
1803 2007-10-26 Jim Blandy <jimb@codesourcery.com>
1805 * ax-gdb.h (expr_to_address_and_size): Delete declaration for
1808 * tracepoint.c (tracepoint_operation): Report the deletion event
1809 after we have unlinked the tracepoint from the list, and use the
1810 proper tracepoint number.
1812 * ax-gdb.c (expr_to_agent): Delete unused function.
1813 (expr_to_address_and_size): Delete #if 0'd function.
1814 * ax-gdb.h (expr_to_agent): Delete declaration.
1816 * ax-gdb.c (gen_cast): Remove redundant assignment to
1817 value->type. Doc fix.
1819 * ax-general.c (gen_traced_pop, gen_int_literal)
1820 (gen_usual_arithmetic): Check for typedefs.
1822 2007-10-26 Joel Brobecker <brobecker@adacore.com>
1824 * parse.c (prefixify_expression): Minor reformatting.
1826 2007-10-25 Daniel Jacobowitz <dan@codesourcery.com>
1828 * version.in: Use dot instead of dash.
1830 2007-10-25 Daniel Jacobowitz <dan@codesourcery.com>
1832 * linux-thread-db.c (check_for_thread_db): Only print if info_verbose.
1834 2007-10-25 Pedro Alves <pedro_alves@portugalmail.pt>
1836 * memory-map.c (parse_memory_map): Don't use an empty struct
1839 2007-10-25 Pedro Alves <pedro_alves@portugalmail.pt>
1841 * signals/signals.c (signals): Update pointer to enum
1842 target_signal declaration.
1844 2007-10-25 Wu Zhou <woodzltc@cn.ibm.com>
1845 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
1846 Jim Blandy <jimb@codesourcery.com>
1848 * dwarf2read.c (read_partial_die): check the value
1849 of DW_AT_calling_convention in Fortran programs.
1851 2007-10-25 Wu Zhou <woodzltc@cn.ibm.com>
1852 Thiago Jung Bauermann <bauerman@br.ibm.com>
1854 * c-exp.y (YYSTYPE): Add typed_val_decfloat for decimal
1855 floating point in YYSTYPE union.
1856 (DECFLOAT) Add token and expression element handling code.
1857 (parse_number): Parse DFP constants, which end with suffix 'df',
1858 'dd' or 'dl'. Return DECFLOAT.
1859 * eval.c (evaluate_subexp_standard): Call value_from_decfloat to
1861 * expression.h (enum exp_opcode): Add an opcode (OP_DECFLOAT)
1863 (union exp_element): Add decfloatconst to represent DFP
1864 elements, which is 16 bytes by default.
1865 * parse.c (write_exp_elt_decfloatcst): New function to write a
1866 decimal float const into the expression.
1867 (operator_length_standard): Set operator length for OP_DECFLOAT
1869 * parser-defs.h (write_exp_elt_decfloatcst): Prototype.
1870 * valarith.c (value_neg): Add code to handle the negation
1871 operation of DFP values.
1872 * value.c (value_from_decfloat): New function to get the value
1873 from a decimal floating point.
1874 * value.h (value_from_decfloat): Prototype.
1876 2007-10-25 Wu Zhou <woodzltc@cn.ibm.com>
1877 Thiago Jung Bauermann <bauerman@br.ibm.com>
1879 * c-lang.c (c_create_fundamental_type): Create fundamental
1881 * c-typeprint.c (c_type_print_varspec_prefix): Add
1882 TYPE_CODE_DECFLOAT to no prefix needed case.
1883 (c_type_print_varspec_suffix): Add TYPE_CODE_DECFLOAT to no
1885 * c-valprint.c (c_val_print): Call print_decimal_floating to
1887 * dwarf2read.c (read_base_type): Read DW_ATE_decimal_float
1888 attribute code and return TYPE_CODE_DECFLOAT.
1889 (dwarf_base_type): Set dwarf2_fundamental_type for DFP values.
1890 * gdbtypes.c (gdbtypes_post_init): Initialize builtin_decfloat,
1891 builtin_decdouble and builtin_declong.
1892 * gdbtypes.h (enum type_code): Add TYPE_CODE_DECFLOAT as a
1894 (FT_DECFLOAT, FT_DBL_PREC_DECFLOAT, FT_EXT_PREC_DECFLOAT): New
1895 types, for decimal floating point.
1896 (FT_NUM_MEMBERS): Increment, new types added.
1897 (struct builtin_type): Add builtin_decfloat, builtin_decdouble
1898 and builtin_declong.
1899 * valprint.c (print_decimal_floating): New function to print DFP
1901 * value.h (print_decimal_floating): Prototype.
1903 2007-10-25 Wu Zhou <woodzltc@cn.ibm.com>
1904 Thiago Jung Bauermann <bauerman@br.ibm.com>
1906 * Makefile.in (LIBDECNUMBER_DIR, LIBDECNUMBER, LIBDECNUMBER_SRC
1907 LIBDECNUMBER_CFLAGS): New macros for libdecnumber.
1908 (INTERNAL_CFLAGS_BASE): Add LIBDECNUMBER_CFLAGS in.
1909 (INSTALLED_LIBS): Add -ldecnumber in.
1910 (CLIBS): Add LIBDECNUMBER in.
1911 (decimal128_h, decimal64_h, decimal32_h): New macros for decimal
1913 (dfp_h): New macros for decimal floating point.
1914 (dfp.o): New target.
1915 (COMMON_OBS): Add dfp.o in.
1916 (c-exp.o): Add dfp_h as dependency.
1917 (valprint.o): Add dfp_h as dependency.
1918 (value.o): Add dfp_h as dependency.
1919 * dfp.h: New header file for decimal floating point support in
1921 * dfp.c: New source file for decimal floating point support in
1922 GDB. Implement decimal_from_string and decimal_to_string based
1923 on libdecnumber API.
1924 * configure.ac: Add AC_C_BIGENDIAN test.
1925 * config.in, configure: Regenerate.
1927 2007-10-25 David Ung <davidu@mips.com>
1928 Maciej W. Rozycki <macro@mips.com>
1931 * infcmd.c (registers_info): Check for a user register before
1932 calling target's gdbarch_print_registers_info(). If found to be
1933 so, extract the implicit value of user register and call
1934 print_scalar_formatted().
1935 * Makefile.in: (infcmd.o): Add $(user_regs_h).
1937 2007-10-25 Joel Brobecker <brobecker@adacore.com>
1939 * NEWS: Document status of hppa64-hpux support.
1941 2007-10-24 Ulrich Weigand <uweigand@de.ibm.com>
1943 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets): Call
1944 set_solib_ops to install SVR4 operations.
1945 (_initialize_svr4_solib): Do not set current_target_so_ops.
1947 * config/i386/i386gnu.mh (NATDEPFILES): Move solib.o, solib-svr4.o ...
1948 * config/i386/i386gnu.mt (TDEPFILES): ... to here.
1950 2007-10-24 Ulrich Weigand <uweigand@de.ibm.com>
1952 * solib-svr4.c (legacy_svr4_fetch_link_map_offsets_hook): Remove.
1953 (solib_svr4_init): Initialize fetch_link_map_offsets to NULL.
1954 * solib-svr4.h (legacy_svr4_fetch_link_map_offsets_hook): Remove.
1955 * solib-legacy.c: Remove file.
1957 * config/alpha/alpha-linux.mt (TDEPFILES): Remove solib-legacy.o.
1958 * config/arm/linux.mt (TDEPFILES): Likewise.
1959 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
1960 * config/ia64/linux.mt (TDEPFILES): Likewise.
1961 * config/m32r/linux.mt (TDEPFILES): Likewise.
1962 * config/powerpc/linux.mt (TDEPFILES): Likewise.
1963 * config/s390/s390.mt (TDEPFILES): Likewise.
1965 * alpha-linux-tdep.c (alpha_linux_init_abi): Call
1966 set_solib_svr4_fetch_link_map_offsets.
1967 * i386gnu-tdep.c (i386gnu_init_abi): Likewise.
1968 * ia64-linux-tdep.c (ia64_linux_init_abi): Likewise.
1970 * i386gnu-tdep.c: Include "solib-svr4.h".
1971 * Makefile.in: Update dependencies.
1973 2007-10-24 Ulrich Weigand <uweigand@de.ibm.com>
1975 * i386-nto-tdep.c: Include "solib.h".
1976 (i386nto_init_abi): Use set_solib_ops instead of overwriting
1977 current_target_so_ops members.
1978 * solist.h (TARGET_SO_RELOCATE_SECTION_ADDRESSES): Remove.
1979 (TARGET_SO_FIND_AND_OPEN_SOLIB): Remove.
1980 (TARGET_SO_IN_DYNSYM_RESOLVE_CODE): Remove.
1981 * Makefile.in: Update dependencies.
1983 2007-10-24 Ulrich Weigand <uweigand@de.ibm.com>
1985 * arm-wince-tdep.c: Include "solib.h" and "solib-target.h".
1986 (arm_wince_init_abi): Call set_solib_ops.
1987 * i386-cygwin-tdep.c: Include "solib.h" and "solib-target.h".
1988 (i386_cygwin_init_abi): Call set_solib_ops.
1989 * solib-target.c: Include "solib-target.h".
1990 (solib_target_so_ops): Make global.
1991 (_initialize_solib_target): Do not set current_target_so_ops.
1992 * solib-target.h: New file.
1993 * Makefile.in: Update dependencies.
1995 2007-10-24 Ulrich Weigand <uweigand@de.ibm.com>
1997 * mips-irix-tdep.c: Include "gdb_string.h", "solib.h", "solib-irix.h".
1998 (mips_irix_init_abi): Call set_solib_ops.
1999 * solib-irix.c: Include "solib.h" and "solib-irix.h".
2000 (irix_so_ops): Make global.
2001 (_initialize_irix_solib): Do not set current_target_so_ops.
2002 * solib-irix.h: New file.
2003 * Makefile.in: Update dependencies.
2005 2007-10-24 Ulrich Weigand <uweigand@de.ibm.com>
2007 * configure.tgt: Remove hppa*64*-*-hpux11* special case.
2008 * config/pa/hppa64.mt: Delete file.
2009 * config/pa/hppahpux.mt (MT_CFLAGS): Remove.
2010 (TDEPFILES): Move somread.o to ...
2011 * config/pa/hpux.mh (NATDEPFILES): ... here.
2013 * configure.ac: Add check for elf_hp.h header.
2014 Search libdl and libxpdl for dlgetmodinfo.
2015 * config.in, configure: Regenerate.
2016 * solib-pa64.c: Conditionalize compilation on #ifdef HAVE_ELF_HP_H
2017 instead of #ifndef PA_SOM_ONLY. Include "solib.h".
2018 (pa64_solib_select): Take gdbarch instead of tdep argument. Call
2019 set_solib_ops instead of modifying current_target_so_ops.
2020 * solib-pa64.h (pa64_solib_select): Update prototype.
2021 * solib-som.c: Remove include of "som.h". Include "solib.h".
2022 (som_solib_select): Take gdbarch instead of tdep argument. Call
2023 set_solib_ops instead of modifying current_target_so_ops.
2024 * solib-som.h (som_solib_select): Update prototype.
2025 * hppa-hpux-tdep.c (hppa_hpux_som_init_abi): Pass gdbarch instead
2026 of tdep to som_solib_select call.
2027 (hppa_hpux_elf_init_abi): Pass gdbarch instead of tdep to
2028 pa64_solib_select call.
2029 * Makefile.in: Update dependencies.
2031 2007-10-24 Ulrich Weigand <uweigand@de.ibm.com>
2033 * frv-tdep.c: Include "solib.h".
2034 (frv_gdbarch_init): Call set_solib_ops.
2035 * frv-tdep.h (struct target_so_ops): Add forward reference.
2036 (frv_so_ops): Add extern declaration.
2037 * solib-frv.c (frv_so_ops): Make global.
2038 (_initialize_frv_solib): Do not set current_target_so_ops.
2039 * Makefile.in: Update dependencies.
2041 2007-10-24 Ulrich Weigand <uweigand@de.ibm.com>
2043 * solib.c (solib_global_lookup): Use solib_ops instead of global
2044 current_target_so_ops.
2046 2007-10-24 Ulrich Weigand <uweigand@de.ibm.com>
2048 * config/frv/frv.mt (DEPRECATED_TM_FILE): Remove.
2049 * config/frv-tm-frv.h: Delete file.
2051 2007-10-24 Daniel Jacobowitz <dan@codesourcery.com>
2053 * NEWS: Mention gdbserver support for non-libthread_db operation.
2055 2007-10-24 Daniel Jacobowitz <dan@codesourcery.com>
2057 * amd64-tdep.c (amd64_convert_register_p): Delete.
2058 (amd64_init_abi): Use i387_convert_register_p.
2059 * alpha-tdep.c (alpha_convert_register_p): Return zero for
2061 (alpha_register_to_value, alpha_value_to_register): Do not handle
2063 * i386-tdep.c (i386_convert_register_p): Use i387_convert_register_p.
2064 * i387-tdep.c (i387_convert_register_p): New.
2065 (i387_register_to_value, i387_value_to_register): Update comments.
2066 * i387-tdep.h (i387_convert_register_p): Declare.
2067 * ia64-tdep.c (ia64_convert_register_p): Return zero for
2068 builtin_type_ia64_ext.
2069 (ia64_gdbarch_init): Do not initialize builtin_type_ia64_ext here.
2070 (_initialize_ia64_tdep): Initialize builtin_type_ia64_ext here.
2071 * m68k-tdep.c (m68k_convert_register_p): Return zero for
2072 builtin_type_m68881_ext.
2073 (m68k_register_to_value, m68k_value_to_register): Update comments.
2075 2007-10-24 Nathan Sidwell <nathan@codesourcery.com>
2077 * target-memory.c (claim_memory): Propagate baton for split memory
2080 2007-10-24 Pedro Alves <pedro_alves@portugalmail.pt>
2083 * sol-thread.c (sol_thread_fetch_registers): Work around gcc 3.4
2086 2007-10-24 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
2088 * symtab.c (find_line_symtab): scan through psymtabs
2089 when exact_match is zero.
2091 2007-10-23 Atsushi Nemoto <anemo@mba.ocn.ne.jp>
2093 * mips-tdep.c (LL_OPCODE, LLD_OPCODE, SC_OPCODE, SCD_OPCODE): Define.
2094 (deal_with_atomic_sequence): New.
2095 (mips_software_single_step): Use it.
2097 2007-10-23 Daniel Jacobowitz <dan@codesourcery.com>
2100 * configure.ac: Modify $LIBINTL before the BFD check.
2101 * configure: Regenerated.
2103 2007-10-23 Joel Brobecker <brobecker@adacore.com>
2105 * buildsym.c (free_pending_blocks): Remove commented-out code.
2106 (make_blockvector): Likewise. Re-use free_pending_blocks.
2107 (end_symtab): Remove commented-out code.
2109 2007-10-22 Daniel Jacobowitz <dan@codesourcery.com>
2111 * top.c (command_loop): Fix output for shrinkage.
2113 2007-10-22 Daniel Jacobowitz <dan@codesourcery.com>
2115 * cp-name-parser.y (exp1): Add & ( var ) as a reference expression.
2116 (exp): Remove and document function-like casts.
2118 2007-10-22 Daniel Jacobowitz <dan@codesourcery.com>
2120 * cp-support.c: Include "safe-ctype.h".
2121 (cp_already_canonical): New function.
2122 (cp_canonicalize_string): Use it. Return NULL for already canonical
2124 (mangled_name_to_comp): Update call to cp_demangled_name_to_comp.
2125 (cp_func_name, remove_params): Likewise.
2126 (cp_find_first_component_aux): Use ISSPACE.
2127 * cp-support.h (cp_demangled_name_to_comp): Correct comment. Remove
2129 * cp-name-parser.y (ALLOC_CHUNK): Define.
2130 (struct demangle_info): Add PREV and NEXT. Increase the size of
2132 (d_grab): Convert to a function.
2133 (allocate_info): Rewrite.
2134 (cp_demangled_name_to_comp): Remove MEMORY argument. Do not use
2135 strlen. Update call to allocate_info. Do not free it on failure.
2136 (main): Update calls to cp_demangled_name_to_comp.
2137 * Makefile.in (cp-support.o): Update.
2139 2007-10-22 Markus Deuling <deuling@de.ibm.com>
2141 * std-regs.c (value_of_builtin_frame_fp_reg)
2142 value_of_builtin_frame_pc_reg, value_of_builtin_frame_sp_reg)
2143 value_of_builtin_frame_ps_reg): Use get_frame_arch to get at the
2144 current architecture by frame_info.
2146 2007-10-22 Markus Deuling <deuling@de.ibm.com>
2148 * reggroups.c (default_register_reggroup_p): Replace current_gdbarch
2151 2007-10-22 Markus Deuling <deuling@de.ibm.com>
2153 * infcmd.c (default_print_registers_info, print_return_value)
2154 (print_vector_info, print_float_info): Replace current_gdbarch by
2156 (registers_info): Use get_frame_arch to get at the current
2157 architecture by frame_info.
2159 2007-10-22 Markus Deuling <deuling@de.ibm.com>
2161 * i387-tdep.c (i387_collect_fsave, i387_collect_fxsave): Use
2162 get_regcache_arch to get at the current architecture by regcache.
2164 2007-10-22 Markus Deuling <deuling@de.ibm.com>
2166 * target.c (debug_print_register): Use get_regcache_arch to get at the
2167 current architecture by regcache.
2169 2007-10-21 Daniel Jacobowitz <dan@codesourcery.com>
2171 * dwarf2read.c (read_file_scope): Add a comment.
2172 (dwarf2_add_field, dwarf2_add_member_fn, read_structure_type)
2173 (read_enumeration_type, process_enumeration_scope, read_array_type)
2174 (read_typedef, read_base_type, read_subrange_type)
2175 (read_unspecified_type): Use dwarf2_name.
2177 2007-10-21 Daniel Jacobowitz <dan@codesourcery.com>
2179 * coffread.c (coff_symfile_finish): Call dwarf2_free_objfile.
2180 * dwarf2read.c (dwarf2_free_objfile): New.
2181 * elfread.c (elf_symfile_finish): Call dwarf2_free_objfile.
2182 * symfile.h (dwarf2_free_objfile): Declare.
2184 2007-10-21 Joel Brobecker <brobecker@adacore.com>
2186 * hppa-hpux-nat.c (hppa_hpux_store_register): Add missing semi-colon.
2188 2007-10-21 Luis Machado <luisgpm@br.ibm.com>
2190 * rs6000-tdep.c (ppc_dwarf2_frame_init_reg): New function.
2191 * (rs6000_gdbarch_init): Install ppc_dwarf2_frame_init_reg as
2192 default dwarf2_frame_set_init_reg function.
2194 2007-10-21 Pedro Alves <pedro_alves@portugalmail.pt>
2196 * NEWS: Mention native MinGW configuration.
2198 2007-10-19 Ulrich Weigand <uweigand@de.ibm.com>
2200 * gdbarch.sh: Remove "macro" column of input table. Remove handling
2201 of "macro" column throughout the file. Remove (empty) "macro" entry
2202 of all gdbarch functions.
2204 2007-10-19 Ulrich Weigand <uweigand@de.ibm.com>
2206 * gdbarch.sh (sofun_address_maybe_missing): New gdbarch variable.
2207 * gdbarch.c, gdbarch.h: Regenerate.
2208 * dbxread.c (find_stab_function_addr): Define unconditionally.
2209 (read_dbx_symtab): Use gdbarch_sofun_address_maybe_missing
2210 instead of SOFUN_ADDRESS_MAYBE_MISSING.
2211 (end_psymtab): Likewise.
2212 (process_one_symbol): Likewise.
2213 * mdebugread.c (parse_partial_symbols): Likewise.
2215 * symtab.h (struct minimal_symbol): Always define "filename" member.
2216 * elfread.c (elf_symtab_read): Use msym->filename unconditionally.
2217 * minsyms.c (lookup_minimal_symbol): Likewise.
2218 * symmisc.c (dump_msymbols): Likewise.
2220 * config/i386/i386sol2.mt (DEPRECATED_TM_FILE): Remove.
2221 * config/i386/linux.mt (DEPRECATED_TM_FILE): Remove.
2222 * config/i386/tm-i386sol2.h: Remove file.
2223 * config/i386/tm-linux.h: Remove file.
2224 * i386-linux-tdep.c (i386_linux_init_abi): Add call to
2225 set_gdbarch_sofun_address_maybe_missing.
2226 * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
2228 * config/powerpc/linux.mt (DEPRECATED_TM_FILE): Remove.
2229 * config/powerpc/nbsd.mt (DEPRECATED_TM_FILE): Remove.
2230 * config/powerpc/obsd.mt (DEPRECATED_TM_FILE): Remove.
2231 * config/powerpc/ppc-eabi.mt (DEPRECATED_TM_FILE): Remove.
2232 * config/powerpc/ppc-sim.mt (DEPRECATED_TM_FILE): Remove.
2233 * config/powerpc/tm-ppc-eabi.h: Remove file.
2234 * rs6000-tdep.c (rs6000_gdbarch_init): Add call to
2235 set_gdbarch_sofun_address_maybe_missing.
2237 * config/sparc/sol2-64.mt (DEPRECATED_TM_FILE): Remove.
2238 * config/sparc/sol2.mt (DEPRECATED_TM_FILE): Remove.
2239 * config/sparc/tm-sol2.h: Remove file.
2240 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Add call to
2241 set_gdbarch_sofun_address_maybe_missing.
2242 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Likewise.
2244 2007-10-19 Ulrich Weigand <uweigand@de.ibm.com>
2246 * gdbarch.sh (static_transform_name): New gdbarch callback.
2247 * gdbarch.c, gdbarch.h: Regenerate.
2248 * dbxread.c (read_dbx_symtab): Use gdbarch_static_transform_name
2249 instead of STATIC_TRANSFORM_NAME.
2250 * mdebugread.c (parse_partial_symbols): Likewise.
2251 * stabsread.c (define_symbol): Likewise.
2252 * xcoffread.c (scan_xcoff_symtab): Likewise.
2254 * config/i368/tm-i386sol2.h (STATIC_TRANSFORM_NAME): Remove.
2255 (IS_STATIC_TRANSFORM_NAME): Remove.
2256 * i386-tdep.c (sunpro_static_transform_name): Remove, move to ...
2257 * i386-sol2-tdep.c (i386_sol2_static_transform_name): ... here.
2258 (i386_sol2_init_abi): Install it.
2260 * config/sparc/tm-sol2.h (STATIC_TRANSFORM_NAME): Remove.
2261 (IS_STATIC_TRANSFORM_NAME): Remove.
2262 * sparc-tdep.c (sparc_stabs_unglobalize_name): Remove, move to ...
2263 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): ... here.
2264 (sparc32_sol2_init_abi): Install it.
2265 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Likewise.
2266 * sparc-tdep.h (sparc_sol2_static_transform_name): Add prototype.
2268 2007-10-18 Daniel Jacobowitz <dan@codesourcery.com>
2270 * mips-tdep.c (mips_xfer_register): Take a gdbarch argument.
2271 (mips_n32n64_return_value, mips_o32_return_value)
2272 (mips_o64_return_value): Update calls to mips_xfer_register.
2274 2007-10-17 Daniel Jacobowitz <dan@codesourcery.com>
2276 * frame.c (frame_unwind_unsigned_register): Delete.
2277 (frame_sp_unwind): Use frame_unwind_register_unsigned instead.
2278 * frame.h (frame_unwind_unsigned_register): Delete prototype.
2280 * alpha-linux-tdep.c, alpha-mdebug-tdep.c, alpha-tdep.c,
2281 avr-tdep.c, cris-tdep.c, frv-tdep.c, m68hc11-tdep.c, mn10300-tdep.c,
2282 mt-tdep.c: Replace frame_unwind_unsigned_register with
2283 frame_unwind_register_unsigned.
2285 2007-10-16 Pedro Alves <pedro_alves@portugalmail.pt>
2287 * config/i386/mingw.mh, config/i386/mingw.mt: New files.
2288 * configure.tgt (i[34567]86-*-mingw32*): Set gdb_target = mingw.
2289 * win32-nat.c: Only include cygwin.h on Cygwin host. Don't
2291 (cygwin_load_start, cygwin_load_end, cygwin_exceptions): Disable
2292 if not building on Cygwin.
2293 (win32_make_so, handle_output_debug_string, handle_exception)
2294 (do_initial_win32_stuff): Wrap Cygwin specific code in __CYGWIN__.
2295 (win32_attach): Only fallback to Cygwin pids if building on
2297 (win32_pid_to_exec_file): Disable Cygwin specific code, if not
2299 (win32_create_inferior): Disable starting the inferior through a
2300 shell, environment var processing and tty handling if not building
2302 (cygwin_pid_to_str): Rename to ...
2303 (win32_pid_to_str): ... this.
2304 (init_win32_ops): Update use of win32_pid_to_str. Disable "shell"
2305 and "cygwin-exceptions" commands if not building on Cygwin.
2307 2007-10-16 Gaius Mulley <gaius@glam.ac.uk>
2309 * doc/gdb.texinfo: Add TSIZE definition, removed
2310 statement about unbounded arrays being unimplemented.
2311 * m2-valprint.c (m2_print_array_contents): New function.
2312 (m2_print_unbounded_array): New function.
2313 (m2_print_array_contents): New function.
2314 * m2-typeprint.c (m2_unbounded_array): New function.
2315 (m2_is_unbounded_array): New function.
2316 (m2_print_type): Test for unbounded array when walking
2318 * m2-lang.h: Added extern m2_is_unbounded_array.
2319 * m2-lang.c (evaluate_subexp_modula2): New function.
2320 (exp_descriptor_modula2): New structure.
2321 (m2_language_defn): Use exp_descriptor_modula2.
2322 * m2-exp.y: Added TSIZE and binary subscript.
2324 2007-10-16 Daniel Jacobowitz <dan@codesourcery.com>
2326 * mi/mi-main.c (captured_mi_execute_command): Clear mi_error_message
2329 2007-10-16 Kevin Buettner <kevinb@redhat.com>
2331 * m32r-tdep.c (decode_prologue): Sign extend offset for
2333 (m32r_frame_unwind_cache): Likewise.
2335 2007-10-15 Thiago Jung Bauermann <bauerman@br.ibm.com>
2337 * rs6000-tdep.c (skip_prologue): Restore comment with
2338 function description to its proper place.
2340 2007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
2342 * NEWS: Mention gdbserver PowerPC improvements.
2344 2007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
2346 * features/Makefile (WHICH): Add PowerPC register definitions.
2347 (rs6000/powerpc-32-expedite, rs6000/powerpc-e500-expedite)
2348 (rs6000/powerpc-64-expedite): New macros.
2349 ($(outdir)/%.dat): Handle subdirectories.
2350 * regformats/rs6000/powerpc-32.dat, regformats/rs6000/powerpc-64.dat,
2351 regformats/rs6000/powerpc-e500.dat: New generated files.
2353 2007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
2355 * ppc-linux-nat.c (ppc_linux_read_description): New.
2356 (_initialize_ppc_linux_nat): Set to_read_description.
2357 * ppc-tdep.h (tdesc_powerpc_e500): Declare.
2359 2007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
2361 * NEWS: Document target described register support for PowerPC.
2362 * ppc-tdep.h: Remove ppc_spr constants.
2363 (struct gdbarch_tdep): Remove regs, ppc_sr0_regnum, and
2364 ppc_builtin_type_vec128 members.
2365 (PPC_R0_REGNUM, PPC_F0_REGNUM, PPC_PC_REGNUM, PPC_MSR_REGNUM)
2366 (PPC_CR_REGNUM, PPC_LR_REGNUM, PPC_CTR_REGNUM, PPC_XER_REGNUM)
2367 (PPC_FPSCR_REGNUM, PPC_MQ_REGNUM, PPC_SPE_UPPER_GP0_REGNUM)
2368 (PPC_SPE_ACC_REGNUM, PPC_SPE_FSCR_REGNUM, PPC_VR0_REGNUM)
2369 (PPC_VSCR_REGNUM, PPC_VRSAVE_REGNUM, PPC_NUM_REGS): New constants.
2370 * rs6000-tdep.c: Include preparsed descriptions.
2371 (init_sim_regno_table): Do not iterate over pseudo registers.
2372 Look up segment registers by name. Use sim_spr_register_name
2374 (rs6000_register_sim_regno): Call init_sim_regno_table here.
2375 (rs6000_builtin_type_vec128): Delete.
2376 (rs6000_register_name): Only handle SPE pseudo registers and upper
2377 halves. Call tdesc_register_name for everything else.
2378 (rs6000_register_type): Delete. Replace with...
2379 (rs6000_pseudo_register_type): ...this new function. Only handle
2380 SPE pseudo registers.
2381 (rs6000_register_reggroup_p): Delete. Replace with...
2382 (rs6000_pseudo_register_reggroup_p): ...this new function. Only
2383 handle SPE pseudo registers.
2384 (rs6000_convert_register_p): Use ppc_fp0_regnum instead of
2386 (rs6000_register_to_value, rs6000_value_to_register): Remove check
2388 (e500_register_reggroup_p): Delete.
2389 (STR, R, R4, R8, R16, F, P8, R32, R64, R0, A4, S, S4, SN4, S64)
2390 (COMMON_UISA_REGS, PPC_UISA_SPRS, PPC_UISA_NOFP_SPRS)
2391 (PPC_SEGMENT_REGS, PPC_OEA_SPRS, PPC_ALTIVEC_REGS, PPC_SPE_GP_REGS)
2392 (PPC_SPE_UPPER_GP_REGS, PPC_EV_PSEUDO_REGS): Delete macros.
2393 (registers_powerpc, registers_403, registers_403GC, registers_505)
2394 (registers_860, registers_601, registers_602, registers_603)
2395 (registers_604, registers_750, registers_7400, registers_e500): Delete
2397 (struct variant): Delete nregs, npregs, num_tot_regs, and regs. Add
2399 (tot_num_registers, num_registers, num_pseudo_registers): Delete.
2400 (variants): Delete outdated comment. Use standard target descriptions
2401 instead of "struct reg" arrays.
2402 (init_variants): Delete.
2403 (rs6000_gdbarch_init): Do not guess word size from the BFD
2404 architecture if we have a target description. Select a variant
2405 before creating a new architecture. Use the variant's target
2406 description if the target did not define a register layout.
2407 Validate target-supplied registers. Reject mismatches. Use
2408 fixed register numbers and new constants instead of magic
2409 numbers. Call set_gdbarch_ps_regnum. Call tdesc_use_registers.
2410 (_initialize_rs6000_tdep): Initialize the preparsed target
2412 * target-descriptions.c (tdesc_predefined_types): Add int128 and
2414 (tdesc_find_register_early): New function.
2415 (tdesc_numbered_register): Use it.
2416 (tdesc_register_size): New function.
2417 (tdesc_use_registers): Take a target_desc argument. Do not use
2418 gdbarch_target_desc.
2419 * target-descriptions.h (tdesc_use_registers): Update prototype
2421 (tdesc_register_size): New prototype.
2422 * Makefile.in (powerpc_32_c, powerpc_403_c, powerpc_403gc_c)
2423 (powerpc_505_c, powerpc_601_c, powerpc_602_c, powerpc_603_c)
2424 (powerpc_604_c, powerpc_64_c, powerpc_7400_c, powerpc_750_c)
2425 (powerpc_860_c, powerpc_e500_c, rs6000_c): New macros.
2426 (rs6000-tdep.o): Update.
2427 * arm-tdep.c (arm_gdbarch_init): Update call to tdesc_use_registers.
2428 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
2429 * mips-tdep.c (mips_gdbarch_init): Likewise.
2431 2007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
2433 * features/rs6000/powerpc-32.c, features/rs6000/powerpc-403.c,
2434 features/rs6000/powerpc-403gc.c, features/rs6000/powerpc-505.c,
2435 features/rs6000/powerpc-601.c, features/rs6000/powerpc-602.c,
2436 features/rs6000/powerpc-603.c, features/rs6000/powerpc-604.c,
2437 features/rs6000/powerpc-64.c, features/rs6000/powerpc-7400.c,
2438 features/rs6000/powerpc-750.c, features/rs6000/powerpc-860.c,
2439 features/rs6000/powerpc-e500.c, features/rs6000/rs6000.c: New
2442 2007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
2444 * features/rs6000/power-altivec.xml, features/rs6000/power-core.xml,
2445 features/rs6000/power-fpu.xml, features/rs6000/power-oea.xml,
2446 features/rs6000/power-spe.xml, features/rs6000/power64-core.xml: New
2447 feature descriptions for standard PowerPC register sets.
2449 * features/rs6000/powerpc-32.xml, features/rs6000/powerpc-403.xml,
2450 features/rs6000/powerpc-403gc.xml, features/rs6000/powerpc-505.xml,
2451 features/rs6000/powerpc-601.xml, features/rs6000/powerpc-602.xml,
2452 features/rs6000/powerpc-603.xml, features/rs6000/powerpc-604.xml,
2453 features/rs6000/powerpc-64.xml, features/rs6000/powerpc-7400.xml,
2454 features/rs6000/powerpc-750.xml, features/rs6000/powerpc-860.xml,
2455 features/rs6000/powerpc-e500.xml, features/rs6000/rs6000.xml: New
2456 target descriptions for PowerPC processors.
2458 2007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
2460 * target-descriptions.c (tdesc_predefined_types): New.
2461 (tdesc_named_type): Use it.
2462 (tdesc_type_id, maint_print_c_tdesc_cmd): New functions.
2463 (_intialize_target_descriptions): Register "maint print c-tdesc".
2464 * features/Makefile (XMLTOC, CFILES, GDB): New macros.
2465 (cfiles, %.c): New rules.
2466 * features/arm-with-iwmmxt.c, features/mips-linux.c,
2467 features/mips64-linux.c: New generated files.
2469 * arm-linux-nat.c: Include preparsed description instead of
2471 (super_xfer_partial, arm_linux_xfer_partial): Remove.
2472 (arm_linux_read_description): New function.
2473 (_initialize_arm_linux_nat): Set to_read_description instead of
2474 to_xfer_partial. Initialize preparsed description.
2475 * config/arm/linux.mh (TDEP_XML): Delete.
2476 * mips-linux-nat.c: Include preparsed descriptions instead of
2478 (super_xfer_partial, mips_linux_xfer_partial): Remove.
2479 (mips_linux_read_description): New function.
2480 (_initialize_mips_linux_nat): Set to_read_description instead of
2481 to_xfer_partial. Initialize preparsed description.
2482 * config/mips/linux.mh (TDEP_XML): Delete.
2483 * Makefile.in (XMLFILES): Remove $(TDEP_XML).
2484 (features_headers, arm_with_iwmmxt_c, mips_linux_c)
2485 (mips64_linux_c): New macros.
2486 (arm-linux-nat.o, mips-linux-nat.o): Update.
2488 2007-10-15 Pierre Muller <muller@ics.u-strasbg.fr>
2490 * cp-abi.c (set_cp_abi_as_auto_default): ARI fix:
2491 Replace xasprintf by xstrprintf.
2492 symfile-mem.c (add_vsyscall_page): Ditto.
2494 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
2496 * ia64-linux-nat.c (ia64_register_addr): Add gdbarch parameter,
2497 replacing use of global current_gdbarch.
2498 (ia64_cannot_fetch_register, ia64_cannot_store_register): Likewise.
2499 (ia64_linux_fetch_register, ia64_linux_store_register): Update callers.
2501 * ia64-tdep.c (SIGCONTEXT_REGISTER_ADDRESS): Remove macro.
2502 (ia64_sigtramp_frame_init_saved_regs): Add next_frame parameter,
2503 replace uses of SIGCONTEXT_REGISTER_ADDRESS.
2504 (ia64_sigtramp_frame_cache): Update caller.
2506 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
2508 * gdbarch.sh (deprecated_use_struct_convention): Remove.
2509 (extract_return_value, store_return_value): Remove.
2510 (return_value): Remove default implementation.
2511 * gdbarch.c, gdbarch.h: Regenerate.
2513 * stack.c (return_command): Remove compatibility hack.
2514 * arch-utils.c (legacy_return_value): Remove.
2515 * arch-utils.h (legacy_return_value): Likewise.
2517 * arch-utils.c (always_use_struct_convention): Remove.
2518 * arch-utils.h (always_use_struct_convention): Likewise.
2519 * value.c (generic_use_struct_convention): Remove.
2520 * defs.h (generic_use_struct_convention): Likewise.
2522 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
2524 * avr-tdep.c (avr_return_value): New function.
2525 (avr_gdbarch_init): Call set_gdbarch_return_value instead of
2526 set_gdbarch_extract_return_value.
2528 * fvr-tdep.c (frv_return_value): New function.
2529 (frv_gdbarch_init): Call set_gdbarch_return_value instead of
2530 set_gdbarch_extract_return_value, set_gdbarch_store_return_value,
2531 and set_gdbarch_deprecated_use_struct_convention.
2533 * ia64-tdep.c (ia64_use_struct_convention): Make static.
2534 Add check for structure, union, or array types.
2535 (ia64_extract_return_value): Make static.
2536 (ia64_store_return_value): Make static. Support multi-word values.
2537 (ia64_return_value): New function.
2538 (ia64_gdbarch_init): Call set_gdbarch_return_value instead of
2539 set_gdbarch_extract_return_value, set_gdbarch_store_return_value,
2540 and set_gdbarch_deprecated_use_struct_convention.
2542 2007-10-12 Joel Brobecker <brobecker@adacore.com>
2544 * solib-target.c (solib_target_parse_libraries)
2545 [HAVEHAVE_LIBEXPAT not defined]: Fix thinko in return type.
2547 2007-10-12 Jim Blandy <jimb@codesourcery.com>
2549 * serial.h (struct serial_ops): Document read_prim to return zero
2551 * ser-base.c (do_ser_base_readchar): Return SERIAL_EOF when
2552 read_prim returns zero, not SERIAL_TIMEOUT.
2554 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
2556 * alpha-mdebug-tdep.c: Include "gdb_string.h".
2557 (find_proc_desc): Add fix-up code for setjmp procedure descriptor.
2558 * mdebugread.c (parse_procedure): Remove setjmp fix-up code.
2559 * Makefile.in (alpha-mdebug-tdep.o): Update dependencies.
2561 * config/alpha/alpha.mt (DEPRECATED_TM_FILE): Remove.
2562 * config/alpha/alpha-linux.mt (DEPRECATED_TM_FILE): Remove.
2563 * config/alpha/alpha-osf1.mt (DEPRECATED_TM_FILE): Remove.
2564 * config/alpha/fbsd.mt (DEPRECATED_TM_FILE): Remove.
2565 * config/alpha/tm-alpha.h: Remove file.
2567 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
2569 * breakpoint.c (breakpoint_sals_to_pc): Do not check for
2570 DEPRECATED_PC_REQUIRES_RUN_BEFORE_USE.
2572 * config/pa/tm-hppa.h: Delete file.
2573 * config/pa/hppa64.mt: Do not set DEPRECATED_TM_FILE.
2574 * config/pa/hppahpux.mt: Likewise.
2575 * config/pa/hppa.mt: Likewise.
2576 * config/pa/linux.mt: Likewise.
2577 * hppa-tdep.c (hppa_pc_requires_run_before_use): Delete.
2579 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
2581 * config/arm/nm-nbsdaout.h: Remove file.
2582 * config/nm-nbsdaout.h: Likewise.
2583 * config/nm-nbsd.h: Likewise.
2585 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
2587 * block.h (struct block): Remove "gcc_compile_flag" member.
2588 (BLOCK_GCC_COMPILED): Remove.
2589 * block.c (allocate_block): Do not clear BLOCK_GCC_COMPILED.
2590 * buildsym.c (finish_block): Do not set it.
2591 * symmisc.c (dump_symtab_1): Do not dump it.
2593 * value.h (using_struct_return): Remove "gcc_p" argument.
2594 * value.c (using_struct_return): Likewise.
2595 * eval.c (evaluate_subexp_standard): Adapt callers.
2596 * infcall.c (call_function_by_hand): Likewise.
2597 * stack.c (return_command): Likewise.
2598 * sparc-tdep.c (sparc32_push_dummy_code): Likewise.
2600 * gdbarch.sh (push_dummy_code): Remove "using_gcc" parameter.
2601 * gdbarch.c, gdbarch.h: Regenerate.
2602 * cris-tdep.c (cris_push_dummy_code): Adapt prototype.
2603 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Likewise.
2604 * sparc-tdep.c (sparc32_push_dummy_code): Likewise.
2605 * infcall.c (generic_push_dummy_code, push_dummy_code): Likewise.
2606 (push_dummy_code, call_function_by_hand): Adapt callers.
2608 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
2610 * infcmd.c (print_return_value): Remove STRUCT_RETURN argument.
2611 (finish_command_continuation, finish_command): Adapt callers.
2613 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
2615 * infcall.c (call_function_by_hand): Remove special handling
2616 for HP aCC compiled code.
2618 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
2620 * cris-tdep.c (cris_push_dummy_call): Support arguments passed by
2621 reference. Fix endianness bugs.
2622 (cris_reg_struct_has_address): Remove.
2623 (cris_gdbarch_init): Remove set_gdbarch_deprecated_reg_struct_has_addr
2624 and set_gdbarch_deprecated_use_struct_convention calls.
2626 * gdbarch.sh (deprecated_reg_struct_has_addr): Remove.
2627 * gdbarch.c, gdbarch.h: Regenerate.
2628 * infcall.c (call_function_by_hand): Remove handling of
2629 deprecated_reg_struct_has_addr.
2631 2007-10-11 Daniel Jacobowitz <dan@codesourcery.com>
2632 Kazu Hirata <kazu@codesourcery.com>
2634 * breakpoint.c (do_enable_breakpoint): Delay enabling until after
2635 checking watchpoint resources.
2637 2007-10-11 Kazu Hirata <kazu@codesourcery.com>
2639 * memattr.c (inaccessible_by_default): Change the initial
2642 2007-10-11 Daniel Jacobowitz <dan@codesourcery.com>
2645 * coffread.c (read_one_sym): Check for read errors.
2647 2007-10-11 Ulrich Weigand <uweigand@de.ibm.com>
2649 * linux-nat.c (lin_lwp_attach_lwp): Use "Linux kernel 2.6.19"
2650 instead of "Linux 2.6.19" in comment.
2651 (linux_xfer_partial): Use "GNU/Linux target" instead of
2652 "Linux target" in comment.
2653 * m68klinux-tdep.c (m68k_linux_inferior_created): Likewise.
2654 (m68k_linux_get_sigtramp_info): Likewise.
2656 2007-10-11 Daniel Jacobowitz <dan@codesourcery.com>
2658 * MAINTAINERS (language support): List Joel and Paul as
2661 2007-10-11 Daniel Jacobowitz <dan@codesourcery.com>
2663 * dbxread.c (process_one_symbol): Remove VARIABLES_INSIDE_BLOCK
2665 * config/arm/embed.mt, config/arm/linux.mt, config/arm/wince.mt: Do
2666 not set DEPRECATED_TM_FILE.
2667 * config/arm/tm-arm.h: Delete file.
2669 2007-10-11 Luis Machado <luisgpm@br.ibm.com>
2671 * MAINTAINERS (Write After Approval): Add self.
2673 2007-10-11 Daniel Jacobowitz <dan@codesourcery.com>
2675 * buildsym.c (record_line): Remove empty lines followed by
2676 end-of-sequence markers.
2678 2007-10-11 Kazu Hirata <kazu@codesourcery.com>
2680 * configure.tgt: Recognize fido-*-elf.
2682 2007-10-10 Joel Brobecker <brobecker@adacore.com>
2686 2007-10-10 Markus Deuling <deuling@de.ibm.com>
2688 * stack.c (print_frame_args, frame_info, return_command): Use
2689 get_regcache_arch or get_frame_arch to get at the current architecture
2690 by regcache or by frame, respectively.
2692 2007-10-10 Markus Deuling <deuling@de.ibm.com>
2694 * rs6000-nat.c (fetch_register, store_register)
2695 (rs6000_fetch_inferior_registers, rs6000_store_inferior_registers): Use
2696 get_regcache_arch to get at the current architecture by regcache.
2698 * rs6000-tdep.c (rs6000_push_dummy_call, rs6000_return_value)
2699 (rs6000_register_reggroup_p, e500_move_ev_registe, rs6000_unwind_pc)
2700 (rs6000_unwind_dummy_id, rs6000_frame_cache, rs6000_dump_tdep): Replace
2701 current_gdbarch by gdbarch.
2702 (rs6000_skip_trampoline_code, rs6000_register_to_value)
2703 (rs6000_value_to_register): Use get_frame_arch to get at the current
2704 architecture by frame_info.
2706 2007-10-10 Markus Deuling <deuling@de.ibm.com>
2708 * sparc-tdep.c (sparc_supply_rwindow, sparc_collect_rwindow): Use
2709 get_regcache_arch to get at the current architecture by regcache.
2711 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
2712 (sparc64_supply_fpregset, sparc64_collect_fpregset): Use
2713 get_regcache_arch to get at the current architecture by regcache.
2715 * sparc64nbsd-nat. (sparc64nbsd_supply_gregset)
2716 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
2717 (sparc64nbsd_collect_fpregset): Use get_regcache_arch to get at the
2718 current architecture by regcache.
2720 2007-10-10 Markus Deuling <deuling@de.ibm.com>
2722 * remote-mips.c (mips_wait, mips_fetch_registers)
2723 (mips_store_registers): Use get_regcache_arch to get at the
2724 current architecture by regcache.
2726 * mipsnbsd-tdep.c (mipsnbsd_supply_reg, mipsnbsd_fill_reg)
2727 (mipsnbsd_supply_fpreg, mipsnbsd_fill_fpreg): Use get_regcache_arch to
2728 get at the current architecture by regcache.
2729 (mipsnbsd_sigtramp_offset): Use get_frame_arch to get at the current
2730 architecture by frame_info.
2732 * mipsnbsd-nat.c (mipsnbsd_fetch_inferior_registers)
2733 (mipsnbsd_store_inferior_registers): Use get_regcache_arch to get at
2734 the current architecture by regcache.
2736 * mips-linux-tdep.c (mips_linux_get_longjmp_target)
2737 (mips64_linux_get_longjmp_target, mips_linux_o32_sigframe_init)
2738 (mips_linux_n32n64_sigframe_init): Use get_frame_arch to get at the
2739 current architecture by frame_info.
2740 (supply_32bit_reg, mips_supply_gregset, mips_fill_gregset)
2741 (mips_supply_fpregset, mips_fill_fpregset, supply_64bit_reg)
2742 (mips64_supply_gregset, mips64_fill_gregset, mips64_supply_fpregset)
2743 (mips64_fill_fpregset, mips_linux_write_pc): Use get_regcache_arch to
2744 get at the current architecture by regcache.
2746 * mips-linux-nat.c (mips_linux_register_addr)
2747 (mips64_linux_register_addr): Replace current_gdbarch by gdbarch.
2748 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset)
2749 (mips64_linux_regsets_fetch_registers)
2750 (mips64_linux_regsets_store_registers): Use get_regcache_arch to get at
2751 the current architecture by regcache.
2753 * mips64obsd-tdep.c (mips64obsd_sigframe_init): Use get_frame_arch to
2754 get at the current architecture by frame_info.
2756 2007-10-10 Markus Deuling <deuling@de.ibm.com>
2758 * mips-tdep.c (mips_xfer_register): Use get_regcache_arch to get at the
2759 current architecture by regcache.
2760 (mips2_fp_compat, mips32_next_pc, mips16_scan_prologue)
2761 (mips_insn16_frame_cache, mips32_scan_prologue, mips_insn32_frame_cache)
2762 (mips_stub_frame_cache, mips_read_fp_register_single)
2763 (mips_read_fp_register_double, mips_print_fp_register)
2764 (mips_print_register, print_gp_register_row): Use get_frame_arch to get
2765 at the current architecture by frame_info.
2766 (mips_register_reggroup_p, mips_pseudo_register_read, mips_unwind_sp)
2767 (mips_pseudo_register_write, mips_register_type, mips_unwind_pc)
2768 (mips_unwind_dummy_id, mips_eabi_push_dummy_call)
2769 (mips_n32n64_push_dummy_call, mips_n32n64_return_value)
2770 (mips_o32_push_dummy_call, mips_o32_return_value)
2771 (mips_o64_push_dummy_call, mips_o64_return_value)
2772 (mips_print_registers_info, mips_dump_tdep): Replace current_gdbarch by
2775 2007-10-10 Markus Deuling <deuling@de.ibm.com>
2777 * xtensa-tdep.c (xtensa_register_type, xtensa_pseudo_register_read)
2778 (xtensa_pseudo_register_write, xtensa_register_reggroup_p)
2779 (xtensa_unwind_pc, xtensa_unwind_dummy_id, xtensa_push_dummy_call)
2780 (xtensa_dump_tdep): Replace current_gdbarch by gdbarch.
2781 (xtensa_register_write_masked, xtensa_register_read_masked)
2782 (xtensa_supply_gregset, xtensa_store_return_value)
2783 (xtensa_extract_return_value): Use get_regcache_arch to get at the
2784 current architecture by regcache.
2785 (xtensa_frame_cache, call0_frame_get_reg_at_entry, call0_frame_cache)
2786 (xtensa_frame_prev_register): Use get_frame_arch to get at the current
2787 architecture by frame_info.
2789 2007-10-10 Daniel Jacobowitz <dan@codesourcery.com>
2791 * arm-tdep.c (struct arm_prologue_cache): Remove frameoffset.
2792 (thumb_analyze_prologue): Move pv_area_store_would_trash call
2793 out of loop. Do not set cache->frameoffset.
2794 (arm_scan_prologue): Use prologue-value mechanism. Do not set
2795 frameoffset. Simplify framesize.
2796 (arm_make_prologue_cache, arm_normal_frame_base): Do not use
2798 * arm-tdep.h (enum gdb_regnum): Add ARM_IP_REGNUM.
2800 2007-10-10 Daniel Jacobowitz <dan@codesourcery.com>
2802 * target.c (update_current_target): Call setup_target_debug.
2803 (push_target): Do not call it here.
2805 2007-10-09 Michael Snyder <msnyder@specifix.com>
2807 * MAINTAINERS: Update my email address.
2809 2007-10-09 Markus Deuling <deuling@de.ibm.com>
2811 * xtensa-tdep.c: Replace following current-gdbarch based macros by
2813 (xtensa_pseudo_register_read)
2814 (xtensa_pseudo_register_write): XTENSA_TARGET_FLAGS.
2815 (ARG_NOF, ARG_1ST, xtensa_extract_return_value)
2816 (xtensa_store_return_value, xtensa_push_dummy_call): CALL_ABI.
2817 (xtensa_pseudo_register_read)
2818 (xtensa_pseudo_register_write): ISA_USE_WINDOWED_REGISTERS.
2819 (xtensa_breakpoint_from_pc): ISA_USE_DENSITY_INSTRUCTIONS.
2820 (xtensa_register_type, xtensa_supply_gregset, xtensa_frame_cache)
2821 (xtensa_frame_prev_register): NUM_AREGS.
2822 (xtensa_pseudo_register_read, xtensa_pseudo_register_write,
2823 (xtensa_supply_gregset, xtensa_frame_cache, xtensa_frame_prev_register,
2824 (xtensa_extract_return_value, xtensa_store_return_value): WB_REGNUM.
2825 (xtensa_supply_gregset, xtensa_frame_cache)
2826 (xtensa_frame_prev_register): WS_REGNUM.
2827 (xtensa_supply_gregset): LBEG_REGNUM, LEND_REGNUM, LCOUNT_REGNUM,
2828 SAR_REGNUM, EXCCAUSE_REGNUM, EXCVADDR_REGNUM
2829 (xtensa_register_name, xtensa_register_type, xtensa_reg_to_regnum)
2830 (xtensa_pseudo_register_read, xtensa_pseudo_register_write)
2831 (xtensa_register_reggroup_p): REGMAP.
2832 (call0_track_op): LITBASE_REGNUM.
2833 (xtensa_register_type, xtensa_reg_to_regnum, call0_frame_cache):A0_BASE
2834 (xtensa_supply_gregset, call0_frame_get_reg_at_entry)
2835 (xtensa_frame_prev_register, AREG_NUMBER)
2836 (xtensa_register_type): AR_BASE.
2837 (xtensa_pseudo_register_read, xtensa_pseudo_register_write): FP_ALIAS.
2838 (AREG_NUMBER): AREGS_MASK, WB_MASK, A0_REGNUM.
2839 (ARG_1ST, xtensa_pseudo_register_read, xtensa_pseudo_register_write)
2840 (xtensa_frame_cache, xtensa_frame_prev_register)
2841 (xtensa_extract_return_value, xtensa_store_return_value)
2842 (xtensa_push_dummy_call, call0_frame_cache): A0_REGNUM.
2843 (xtensa_register_type, xtensa_pseudo_register_read, xtensa_frame_cache)
2844 (xtensa_pseudo_register_write, xtensa_unwind_dummy_id)
2845 (xtensa_frame_prev_register, xtensa_push_dummy_call)
2846 (call0_frame_cache): A1_REGNUM.
2847 (xtensa_extract_return_value, xtensa_store_return_value): A2_REGNUM.
2848 (xtensa_push_dummy_call): A4_REGNUM.
2849 (ARGS_FIRST_REG): A6_REGNUM.
2850 (xtensa_pseudo_register_read, xtensa_pseudo_register_write)
2851 (xtensa_frame_prev_register): A15_REGNUM.
2852 * xtensa-tdep.h: Delete current_gdbarch based macros after replacing
2853 them in the appropriate source file:
2854 XTENSA_TARGET_FLAGS, SPILL_LOCATION, SPILL_SIZE, CALL_ABI, NUM_AREGS,
2855 ISA_USE_WINDOWED_REGISTERS, ISA_USE_DENSITY_INSTRUCTIONS, WB_REGNUM,
2856 ISA_USE_EXCEPTIONS, ISA_USE_EXT_L32R, DEBUG_DATA_VADDR_TRAP_COUNT,
2857 DEBUG_INST_VADDR_TRAP_COUNT, ISA_MAX_INSN_SIZE, DEBUG_NUM_IBREAKS,
2858 DEBUG_NUM_DBREAKS, WS_REGNUM, LBEG_REGNUM, LEND_REGNUM, SAR_REGNUM,
2859 REGMAP, LITBASE_REGNUM, DEBUGCAUSE_REGNUM, EXCCAUSE_REGNUM, AR_BASE,
2860 EXCVADDR_REGNUM, NUM_IBREAKS, REGMAP_BYTES, NUM_CONTEXTS, FP_ALIAS,
2861 FP_LAYOUT, FP_LAYOUT_BYTES, GREGMAP, AREGS_MASK, WB_MASK, A0_REGNUM,
2862 A1_REGNUM, A2_REGNUM, A3_REGNUM, A4_REGNUM, A5_REGNUM, A6_REGNUM,
2863 A7_REGNUM, A8_REGNUM, A9_REGNUM, A10_REGNUM, A11_REGNUM, A12_REGNUM,
2864 A13_REGNUM, A14_REGNUM, A15_REGNUM.
2866 2007-10-09 Markus Deuling <deuling@de.ibm.com>
2868 * h8300-tdep.c (h8300_frame_cache): Use get_frame_arch to get at
2869 the current architecture by frame_info.
2870 (h8300_frame_prev_register
2871 (h8300_print_register): Replace current_gdbarch by gdbarch.
2872 (h8300_print_registers_info, h8300_register_type)
2873 (h8300_register_type): Likewise.
2875 2007-10-09 Markus Deuling <deuling@de.ibm.com>
2877 * i386-linux-nat.c (fetch_register): Use get_regcache_arch to get at
2878 the current architecture by regcache.
2879 (store_register, supply_gregset, fill_gregset, i386_linux_resume)
2880 (i386_linux_fetch_inferior_registers)
2881 (i386_linux_store_inferior_registers): Likewise.
2882 * i386gnu-nat.c (gnu_fetch_registers, gnu_store_registers): Likewise.
2883 * i386-nto-tdep.c (i386nto_supply_gregset): Likewise.
2884 * i386v4-nat.c (supply_fpregset, fill_fpregset): Likewise.
2885 * i386-tdep.c (i386_unwind_pc): Replace current_gdbarch by gdbarch.
2886 (i386_extract_return_value, i386_store_return_value): Likewise.
2887 * i386-tdep.c (i386_frame_prev_register): Use get_frame_arch to get at
2888 the current architecture by frame_info.
2889 (i386_sigtramp_frame_cache, i386_get_longjmp_target)
2890 (i386_register_to_value, i386_value_to_register): Likewise.
2892 2007-10-09 Markus Deuling <deuling@de.ibm.com>
2894 * monitor.c (monitor_supply_register): Use get_regcache_arch to get at
2895 the current architecture by regcache.
2896 (monitor_store_register, monitor_store_registers): Likewise.
2898 2007-10-09 Markus Deuling <deuling@de.ibm.com>
2900 * dbug-rom.c (dbug_supply_register): Use get_regcache_arch to get at
2901 the current architecture by regcache.
2903 2007-10-09 Markus Deuling <deuling@de.ibm.com>
2905 * arch-utils.c (legacy_return_value): Replace current_gdbarch by
2908 2007-10-09 Markus Deuling <deuling@de.ibm.com>
2910 * frame.c (frame_pc_unwind): Use get_frame_arch to get at the current
2911 architecture by frame.
2912 (frame_save_as_regcache, frame_register_unwind, get_prev_frame_1)
2913 (inside_main_func, frame_sp_unwind): Likewise.
2915 2007-10-09 Daniel Jacobowitz <dan@codesourcery.com>
2917 * solib-svr4.c (enable_break): Add the dynamic linker also if
2920 2007-10-09 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
2922 * MAINTAINERS (Write After Approval): Add self.
2924 2007-10-09 Pedro Alves <pedro_alves@portugalmail.pt>
2926 * stabsread.c (read_huge_number): Initialize local variable to 0.
2928 2007-10-09 Pierre Muller <muller@ics.u-strasbg.fr>
2930 * p-lang.h (pascal_main_name): Add declaration.
2931 * p-lang.c (GPC_P_INITIALIZE, GPC_MAIN_PROGRAM_NAME_1)
2932 (GPC_MAIN_PROGRAM_NAME_2): New constants.
2933 (pascal_main_name): New function.
2934 * symtab.c: Include p-lang.h.
2935 (find_main_name): Add call to pascal_main_name.
2936 * Makefile.in (symtab.o): Add dependency on p-lang.h.
2938 2007-10-09 Pedro Alves <pedro_alves@portugalmail.pt>
2940 * stabsread.c (read_huge_number): Fix handling of octal
2941 representation when the bit width is known.
2942 (read_range_type): Record unsigned integral types with their size,
2943 when the type size is known.
2945 2007-10-08 Thiago Jung Bauermann <bauerman@br.ibm.com>
2947 * MAINTAINERS (Write After Approval): Add self.
2949 2007-10-08 Pierre Muller <muller@ics.u-strasbg.fr>
2951 * breakpoint.c (print_one_breakpoint_location): ARI fix:
2952 Replace asprintf by xstrprintf.
2954 2007-10-08 Pierre Muller <muller@ics.u-strasbg.fr>
2956 * linux-fork.c: ARI fix: include "gdb_dirent.h" instead of <dirent.h>.
2957 Makefile.in (linux-fork.o): Add gdb_dirent.h dependency.
2959 2007-10-08 Pierre Muller <muller@ics.u-strasbg.fr>
2961 * linux-fork.c: Move "gdb_wait.h" include back to the position of
2962 <sys/wait.h> include before last commit.
2964 2007-10-08 Maciej W. Rozycki <macro@mips.com>
2966 * mips-tdep.c (mips32_next_pc): Fix a typo in BGTZL.
2968 2007-10-08 Markus Deuling <deuling@de.ibm.com>
2970 * aix-thread.c (supply_gprs64, supply_fprs, supply_sprs64)
2971 (supply_sprs32, fetch_regs_user_thread, fetch_regs_kernel_thread)
2972 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs64, fill_sprs32)
2973 (store_regs_user_thread, store_regs_kernel_thread): Use
2974 get_regcache_arch or get_frame_arch to get at the current architecture
2975 by regcache or by frame, respectively.
2977 2007-10-08 Markus Deuling <deuling@de.ibm.com>
2979 * sh64-tdep.c (sh64_push_dummy_call, sh64_register_type)
2980 (sh64_pseudo_register_read, sh64_pseudo_register_write)
2981 (sh64_do_fp_register, sh64_do_pseudo_register, sh64_do_register)
2982 (sh64_print_register, sh64_media_print_registers_info)
2983 (sh64_compact_print_registers_info, sh64_unwind_sp)
2984 (sh64_unwind_pc): Replace current_gdbarch by gdbarch.
2985 (sh64_show_media_regs, sh64_show_compact_regs, sh64_frame_cache)
2986 (sh64_frame_prev_register): Use FRAME to recognize current
2989 2007-10-08 Markus Deuling <deuling@de.ibm.com>
2991 * sh-tdep.c (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu)
2992 (sh_sh2a_register_type, sh_sh3e_register_type, sh_sh4_register_type)
2993 (sh_register_reggroup_p, sh_dwarf2_frame_init_reg): Replace
2994 current_gdbarch by gdbarch.
2995 (sh_generic_show_regs, sh3_show_reg, sh2e_show_regs, sh2a_show_regs)
2996 (sh2a_nofpu_show_regs, sh3e_show_regs, sh3_dsp_show_regs)
2997 (sh4_show_regs, sh4_nofpu_show_regs, sh_dsp_show_regs, sh_frame_cache)
2998 (sh_frame_prev_register, sh_unwind_sp, sh_unwind_pc): Use FRAME to
2999 recognize current architecture.
3001 2007-10-08 Markus Deuling <deuling@de.ibm.com>
3003 * remote.c (init_remote_state, fetch_register_using_p)
3004 (process_g_packet, remote_fetch_registers, remote_prepare_to_store)
3005 (store_register_using_P, store_registers_using_G)
3006 (remote_store_registers): Use get_regcache_arch or get_frame_arch to
3007 get at the current architecture by regcache or by frame, respectively.
3009 2007-10-08 Markus Deuling <deuling@de.ibm.com>
3011 * m68k-tdep.c (m68k_register_to_value, m68k_value_to_register)
3012 (m68k_svr4_extract_return_value, m68k_svr4_store_return_value)
3013 (m68k_frame_prev_register, m68k_get_longjmp_target): Use
3014 get_regcache_arch or get_frame_arch to get at the current architecture
3015 by regcache or by frame, respectively.
3016 * m68klinux-tdep.c (m68k_linux_sigtramp_frame_cache): Likewise.
3017 * m68klinux-nat.c (fetch_register, old_fetch_inferior_registers)
3018 (store_register, old_store_inferior_registers, supply_gregset)
3019 (supply_fpregset, fill_fpregset): Likewise.
3020 * m68k-tdep.c (m68k_register_type, m68k_unwind_pc, m68k_dump_tdep):
3021 Replace current_gdbarch by gdbarch.
3023 2007-10-08 Markus Deuling <deuling@de.ibm.com>
3025 * irix5-nat.c (supply_gregset, fill_gregset, supply_fpregset)
3026 (fill_fpregset, fetch_core_registers): Use get_regcache_arch or
3027 get_frame_arch to get at the current architecture by regcache or by
3028 frame, respectively.
3030 2007-10-08 Markus Deuling <deuling@de.ibm.com>
3032 * ia64-tdep.c (ia64_pseudo_register_read, ia64_pseudo_register_write):
3033 Replace current_gdbarch by gdbarch.
3034 * ia64-tdep.c (ia64_frame_prev_register
3035 (ia64_sigtramp_frame_prev_register)
3036 (ia64_libunwind_frame_prev_register): Use get_regcache_arch or
3037 get_frame_arch to get at the current architecture by regcache or by
3038 frame, respectively.
3039 * ia64-linux-nat.c (ia64_linux_fetch_register)
3040 (ia64_linux_fetch_registers, ia64_linux_store_register)
3041 (ia64_linux_store_registers): Likewise.
3043 2007-10-08 Markus Deuling <deuling@de.ibm.com>
3045 * hppa-tdep.c (hppa_stub_unwind_sniffer, hppa_dump_tdep): Replace
3046 current_gdbarch by gdbarch.
3047 * hppa-linux-nat.c (fetch_register, store_register)
3048 (hppa_linux_fetch_inferior_registers)
3049 (hppa_linux_store_inferior_registers): Use get_regcache_arch or
3050 get_frame_arch to get at the current architecture by regcache or by
3051 frame, respectively.
3052 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code
3053 (hppa_hpux_unwind_adjust_stub): Likewise.
3054 * hppa-hpux-nat.c (hppa_hpux_fetch_register, hppa_hpux_store_register)
3055 (hppa_hpux_fetch_inferior_registers)
3056 (hppa_hpux_store_inferior_registers): Likewise.
3058 2007-10-08 Markus Deuling <deuling@de.ibm.com>
3060 * cris-tdep.c (cris_sigcontext_addr, cris_sigtramp_frame_unwind_cache)
3061 (cris_scan_prologue, crisv32_scan_prologue, find_step_target)
3062 (cris_software_single_step, cris_supply_gregset): Use get_regcache_arch
3063 or get_frame_arch to get at the current architecture by regcache or by
3064 frame, respectively.
3065 * cris-tdep.c (crisv32_single_step_through_delay, cris_push_dummy_call)
3066 (cris_unwind_pc, cris_unwind_sp, cris_register_type, cris_dump_tdep)
3067 (crisv32_register_type, cris_dwarf2_frame_init_reg): Replace
3068 current_gdbarch by gdbarch.
3070 2007-10-08 Markus Deuling <deuling@de.ibm.com>
3072 * arm-tdep.c (arm_scan_prologue, arm_make_prologue_cache)
3073 (thumb_get_next_pc, arm_get_next_pc, arm_extract_return_value)
3074 (arm_store_return_value): Use get_regcache_arch or get_frame_arch to
3075 get at the current architecture by regcache or by·frame, respectively.
3076 (arm_push_dummy_call, arm_dump_tdep): Replace current_gdbarch by
3079 2007-10-08 Markus Deuling <deuling@de.ibm.com>
3081 * amd64-tdep.c (amd64_frame_prev_register, amd64_sigtramp_frame_cache):
3082 Use get_regcache_arch or get_frame_arch to get at the current
3083 architecture by regcache or by frame, respectively.
3084 * amd64-linux-tdep.c (amd64_linux_sigcontext_addr): Likewise.
3085 * amd64-nat.c (amd64_supply_native_gregset)
3086 (amd64_collect_native_gregset): Replace current_gdbarch by gdbarch.
3088 2007-10-08 Markus Deuling <deuling@de.ibm.com>
3090 * alpha-tdep.c (alpha_register_reggroup_p): Replace current_gdbarch by
3092 * alpha-linux-nat.c (alpha_linux_register_u_offset): Likewise.
3093 (alpha_sigtramp_frame_unwind_cache, alpha_sigtramp_frame_this_id)
3094 (alpha_sigtramp_frame_sniffer, alpha_next_pc): Use get_regcache_arch or
3095 get_frame_arch to get at the current architecture by regcache or by
3096 frame, respectively.
3097 * alpha-nat.c (fetch_osf_core_registers): Likewise.
3099 2007-10-08 Markus Deuling <deuling@de.ibm.com>
3101 * dwarf2-frame.c (read_reg, execute_cfa_program, dwarf2_frame_cache)
3102 (dwarf2_frame_default_init_reg, dwarf2_frame_prev_register): Replace
3103 current_gdbarch by gdbarch.
3104 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Likewise.
3106 2007-10-08 Markus Deuling <deuling@de.ibm.com>
3108 * regcache.c (init_regcache_descr, register_type, read_pc_pid)
3109 (write_pc_pid, regcache_dump): Replace current_gdbarch by gdbarch.
3110 * regcache.c (regcache_raw_write): Use get_regcache_arch or
3111 get_frame_arch to get at the current architecture by regcache or by
3112 frame, respectively.
3114 2007-10-08 Markus Deuling <deuling@de.ibm.com>
3116 * findvar.c (value_of_register, locate_var_value): Use
3117 get_regcache_arch or get_frame_arch to get at the current architecture
3118 by regcache or by frame, respectively.
3119 * findvar.c (default_value_from_register, value_from_register): Replace
3120 current_gdbarch by gdbarch.
3122 2007-10-08 Pierre Muller <muller@ics.u-strasbg.fr>
3124 * config/i386/nm-i386.h (CHILD_POST_STARTUP_INFERIOR): ARI fix: Remove.
3126 2007-10-08 Pierre Muller <muller@ics.u-strasbg.fr>
3128 * linux-fork.c: ARI fix: include "gdb_wait.h" instead of <sys/wait.h>.
3129 Makefile.in (linux-fork.o): Add gdb_wait.h dependency.
3131 2007-10-05 Daniel Jacobowitz <dan@codesourcery.com>
3133 * remote.c (get_offsets): Only call free_symfile_segment_data if
3136 2007-10-03 Pierre Muller <muller@ics.u-strasbg.fr>
3138 * objc-exp.y: ARI fix: remove 4 PARAMS.
3140 2007-10-03 Daniel Jacobowitz <dan@codesourcery.com>
3142 * NEWS: Use uniform spacing. Correct version number for GDB 6.7
3143 news. Mention XML support for M68K in GDB 6.7.
3145 2007-10-03 Daniel Jacobowitz <dan@codesourcery.com>
3147 * gdbtypes.c (create_range_type): Do not set TYPE_FIELD_TYPE for the
3149 (init_vector_type): Use builtin_type_int32.
3151 2007-10-02 Ulrich Weigand <uweigand@de.ibm.com>
3153 * s390-tdep.c (s390_regset_from_core_section): Allow excess section
3154 size to enable bi-arch generate-core-file support.
3156 2007-10-02 Markus Deuling <deuling@de.ibm.com>
3158 * spu-tdep.c (info_spu_signal_command): Fix output for SPU signal.
3160 2007-10-02 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
3162 * tui/tui-interp.c (tui_init): Initialize tui's SIGWINCH
3164 * tui/tui-win.c (tui_initialize_win): New function for
3165 initializing tui's SIGWINCH signal handler.
3166 * tui/tui-win.h (tui_initialize_win): Declare.
3168 2007-10-02 Ulrich Weigand <uweigand@de.ibm.com>
3170 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Cast
3171 pointer to uintptr_t before casting to CORE_ADDR.
3173 2007-10-02 Markus Deuling <deuling@de.ibm.com>
3175 * linux-nat.c (PTRACE_GETSIGINFO): Add define.
3177 2007-10-02 Mark Mitchell <mark@codesourcery.com>
3179 * mingw-hdep.c (gdb_select): Stop helper threads before returning.
3180 * ser-mingw.c (enum select_thread_state): New type.
3181 (struct ser_console_state): Add have_started and thread_state.
3182 (select_thread_wait): New function.
3183 (thread_fn_type): New type.
3184 (create_select_thread): New function.
3185 (destroy_select_thread): Likewise.
3186 (start_select_thread): Likewise.
3187 (stop_select_thread): Likewise.
3188 (console_select_thread): Use new functions.
3189 (pipe_select_thread): Likewise.
3190 (file_select_thread): Likewise.
3191 (ser_console_wait_handle): Likewise.
3192 (ser_console_done_wait_handle): Likewise.
3193 (ser_console_close): Likewise.
3194 (free_pipe_state): Likewise.
3195 (pipe_wait_handle): Likewise.
3196 (pipe_done_wait_handle): Likewise.
3197 (struct net_windows_state): Derive from ser_console_state.
3198 (net_windows_select_thread): Use new functions.
3199 (net_windows_wait_handle): Likewise.
3200 (net_windows_done_wait_handle): Likewise.
3201 (net_windows_close): Likewise.
3203 2007-10-02 Daniel Jacobowitz <dan@codesourcery.com>
3205 * inflow.c (terminal_ours_1): Remove useless line.
3207 2007-10-02 Daniel Jacobowitz <dan@codesourcery.com>
3209 * mips-tdep.c (mips_read_fp_register_double): Correct check for
3211 (mips_print_fp_register): Correct check for even FP registers.
3212 (mips_virtual_frame_pointer): New function.
3213 (mips_gdbarch_init): Call set_gdbarch_virtual_frame_pointer.
3215 2007-09-30 Mike Frysinger <vapier@gentoo.org>
3217 * value.h (lookup_only_internalvar): New prototype.
3218 (create_internalvar): Likewise.
3219 * value.c (lookup_only_internalvar): New function.
3220 (create_internalvar): Likewise.
3221 (lookup_internalvar): Use new lookup_only_internalvar and
3222 create_internalvar functions.
3223 * parse.c (write_dollar_variable): Look up $ symbols in internal
3224 table first rather than last.
3226 2007-09-30 Daniel Jacobowitz <dan@codesourcery.com>
3228 * linux-nat.c (linux_nat_new_thread): New variable.
3229 (linux_child_follow_fork): Set inferior_ptid to include LWP ID. Use
3230 linux_nat_switch_fork.
3231 (lwp_list): Make public.
3232 (add_lwp): Call linux_nat_new_thread.
3233 (lin_lwp_attach_lwp, linux_nat_attach): Call add_lwp after stopping
3235 (resume_callback): Clear lp->siginfo. Remove unused variable.
3236 (linux_nat_resume): Assert that the LWP list is already initialized.
3238 (save_siginfo): New.
3239 (stop_wait_callback, linux_nat_wait): Call it.
3240 (linux_nat_set_new_thread, linux_nat_get_siginfo): New.
3241 * linux-nat.h (struct lwp_info): Add siginfo.
3242 (lwp_list, linux_nat_set_new_thread, linux_nat_get_siginfo): Declare.
3245 * amd64-linux-nat.c (amd64_linux_dr): New.
3246 (amd64_linux_dr_get): Take a PTID argument. Correct typo.
3247 (amd64_linux_dr_set): Take a PTID argument.
3248 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use ALL_LWPS.
3249 (amd64_linux_dr_reset_addr): Use amd64_linux_dr_set_addr.
3250 (amd64_linux_dr_get_status): Pass inferior_ptid to amd64_linux_dr_get.
3251 (amd64_linux_new_thread): New.
3252 (_initialize_amd64_linux_nat): Call linux_nat_set_new_thread.
3253 * i386-linux-nat.c (i386_linux_dr): New.
3254 (i386_linux_dr_get, i386_linux_dr_set): Take a PTID argument.
3255 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use ALL_LWPS.
3256 (i386_linux_dr_reset_addr): Use i386_linux_dr_set_addr.
3257 (i386_linux_dr_get_status): Pass inferior_ptid to i386_linux_dr_get.
3258 (i386_linux_new_thread): New.
3259 (i386_linux_resume): Remove unnecessary PID check.
3260 (_initialize_i386_linux_nat): Call linux_nat_set_new_thread.
3261 * ia64-linux-nat.c (enable_watchpoints_in_psr): Take PTID argument.
3262 (fetch_debug_register, fetch_debug_register_pair): Delete.
3263 (debug_registers): New.
3264 (ia64_linux_insert_watchpoint, ia64_linux_remove_watchpoint): Use
3265 ALL_LWPS and debug_registers.
3266 (ia64_linux_new_thread): New.
3267 (ia64_linux_stopped_data_address): Use linux_nat_get_siginfo.
3268 (_initialize_ia64_linux_nat): Call linux_nat_set_new_thread.
3269 * ppc-linux-nat.c (last_stopped_data_address): Delete.
3270 (saved_dabr_value): New.
3271 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint): Use
3273 (ppc_linux_new_thread): New.
3274 (ppc_linux_stopped_data_address): Use linux_nat_get_siginfo.
3275 (ppc_linux_stopped_by_watchpoint): Call ppc_linux_stopped_data_address.
3276 (_initialize_ppc_linux_nat): Call linux_nat_set_new_thread.
3277 * s390-nat.c (s390_stopped_by_watchpoint): Clear the watchpoint status
3279 (s390_fix_watch_points): Take a PTID argument.
3280 (s390_insert_watchpoint, s390_remove_watchpoint): Use ALL_LWPS.
3281 (_initialize_s390_nat): Call linux_nat_set_new_thread.
3283 2007-09-30 Daniel Jacobowitz <dan@codesourcery.com>
3284 Jeff Johnston <jjohnstn@redhat.com>
3286 * breakpoint.c (watchpoints_triggered): New.
3287 (bpstat_stop_status): Remove STOPPED_BY_WATCHPOINT argument.
3288 Check watchpoint_triggered instead. Combine handling for software
3289 and hardware watchpoints. Do not use target_stopped_data_address
3290 here. Always check a watchpoint if its scope breakpoint triggers.
3291 Do not stop for thread or overlay events. Improve check for
3292 triggered watchpoints without a value change.
3293 (watch_command_1): Insert the scope breakpoint first. Link the
3294 scope breakpoint to the watchpoint.
3295 * breakpoint.h (enum watchpoint_triggered): New.
3296 (struct breakpoint): Add watchpoint_triggered.
3297 (bpstat_stop_status): Update prototype.
3298 (watchpoints_triggered): Declare.
3299 * infrun.c (enum infwait_status): Add infwait_step_watch_state.
3300 (stepped_after_stopped_by_watchpoint): Delete.
3301 (handle_inferior_event): Make stepped_after_stopped_by_watchpoint
3302 local. Handle infwait_step_watch_state. Update calls to
3303 bpstat_stop_status. Use watchpoints_triggered to check
3305 * remote.c (stepped_after_stopped_by_watchpoint): Remove extern.
3306 (remote_stopped_data_address): Do not check it.
3308 2007-09-29 Daniel Jacobowitz <dan@codesourcery.com>
3310 * configure.ac: Add $LIBINTL when testing libbfd.
3311 * configure: Regenerated.
3313 2007-09-28 Vladimir Prus <vladimir@codesourcery.com>
3315 * NEW: Mention pending breakpoint changes and
3316 support for breakpoints at multiple locations.
3318 2007-09-27 Daniel Jacobowitz <dan@codesourcery.com>
3320 * arm-linux-tdep.c (arm_linux_software_single_step): New.
3321 (arm_linux_init_abi): Use it.
3322 * arm-tdep.c (arm_get_next_pc): Make global. Handle all-ones
3323 condition correctly.
3324 * arm-tdep.h (arm_get_next_pc): Declare.
3325 * Makefile.in (arm-linux-tdep.o): Update.
3327 2007-09-26 Vladimir Prus <vladimir@codesourcery.com>
3329 * varobj.c (install_new_value): Don't
3330 call value_get_print_value when a value is
3331 lazy. Update the print_value member in a
3334 2007-09-26 Vladimir Prus <vladimir@codesourcery.com>
3336 * breakpoint.c (create_breakpoint): Set
3337 condition on each location, not on the first
3338 location of breakpoint.
3340 2007-09-26 Jim Blandy <jimb@codesourcery.com>
3342 * remote.c (getpkt_sane): Fix error message. No animals were
3343 harmed in the making of this debugger.
3345 2007-09-26 Pierre Muller <muller@ics.u-strasbg.fr>
3347 * p-typeprint.c: Fix 11 ARI reported problems.
3348 (pascal_print_type): Fix 4 operator at end of line.
3349 (pascal_type_print_method_args) : Replace 2 DEPRECATED_STREQN macros
3350 using strncmp function.
3351 (pascal_type_print_base): Fix 2 operator at end of line.
3352 (pascal_type_print_base) : Replace 3 DEPRECATED_STREQN macros
3353 using strncmp function.
3356 2007-09-26 Pierre Muller <muller@ics.u-strasbg.fr>
3358 * Fix PR pascal/2231
3359 dwarf2read.c (read_subroutine_type):
3360 All pascal functions are prototyped.
3362 2007-09-26 Pierre Muller <muller@ics.u-strasbg.fr>
3364 * Fix PR pascal/2283
3365 p-valprint.c (pascal_val_print): correct current language check.
3366 Also print array of char as strings.
3369 2007-09-26 David Ung <davidu@mips.com>
3370 Maciej W. Rozycki <macro@mips.com>
3372 * mips-tdep.c (mips_n32n64_return_value): Fix a comment.
3374 2007-09-25 Pierre Muller <muller@ics.u-strasbg.fr>
3376 * p-exp.y: Fix 12 ARI reported problems.
3377 (name_not_typename): Fix 2 operator at end of line issues.
3378 (yylex): Fix 3 operator at end of line issues.
3379 Replace 7 DEPRECATED_STREQ macros using strcmp function.
3381 2007-09-25 David Ung <davidu@mips.com>
3382 Maciej W. Rozycki <macro@mips.com>
3384 * mips-tdep.c (mips_n32n64_return_value): Per N32/N64 ABI
3385 rules return composite types in registers as appropriate.
3387 2007-09-24 Jim Blandy <jimb@codesourcery.com>
3389 * symfile.h (struct symfile_segment_data): Doc fixes.
3390 * symfile.c (symfile_map_offsets_to_segments): Doc fixes.
3391 Assert that we were passed some loaded segment addresses,
3392 and that sections' segment numbers are valid.
3393 Simplify offset calculation.
3394 * remote.c (get_offsets): Clarify selection of relocate-by-segment
3395 strategy, and set num_segments correctly. Delete redundant
3396 assignments to do_sections.
3398 2007-09-24 Daniel Jacobowitz <dan@codesourcery.com>
3400 * frame.c (get_prev_frame_1): Also check for PC in the same register.
3402 2007-09-24 Vladimir Prus <vladimir@codesourcery.com>
3404 * breakpoint.c (remove_sal): New.
3405 (expand_line_sal_maybe): New.
3406 (create_breakpoints): Call expand_line_sal_maybe.
3407 (clear_command): Add comment.
3408 (breakpoint_re_set_one): Call expand_line_sal_maybe.
3409 * linespec.c (decode_indirect): Set explicit_pc to 1.
3410 (decode_all_digits): Set explicit_line to 1.
3411 (append_expanded_sal): New.
3412 (expand_line_sal): New.
3413 * linespec.h (expand_line_sal): Declare.
3414 * symtab.c (init_sal): Initialize explicit_pc
3416 * symtab.h (struct symtab_and_line): New fields
3417 explicit_pc and explicit_line.
3419 2007-09-23 Daniel Jacobowitz <dan@codesourcery.com>
3421 * infcall.c (call_function_by_hand): Handle language-specific
3422 pass and return by reference.
3424 * cp-abi.c (cp_pass_by_reference): New.
3425 * cp-abi.h (cp_pass_by_reference): Declare.
3426 (struct cp_abi_ops): Add pass_by_reference.
3427 * gnu-v3-abi.c (gnuv3_pass_by_reference): New.
3428 (init_gnuv3_ops): Set pass_by_reference.
3430 * language.c (language_pass_by_reference): New.
3431 (default_pass_by_reference): New.
3432 (unknown_language_defn, auto_language_defn, local_language_defn): Add
3433 default_pass_by_reference.
3434 * langauge.h (struct language_defn): Add la_pass_by_reference.
3435 (language_pass_by_reference, default_pass_by_reference): Declare.
3436 * ada-lang.c (ada_language_defn): Add default_pass_by_reference.
3437 * c-lang.c (c_language_defn, asm_language_defn)
3438 (minimal_language_defn): Likewise.
3439 (cplus_language_defn): Add cp_pass_by_reference.
3440 * f-lang.c (f_language_defn): Add default_pass_by_reference.
3441 * jv-lang.c (java_language_defn): Likewise.
3442 * m2-lang.c (m2_language_defn): Likewise.
3443 * objc-lang.c (objc_language_defn): Likewise.
3444 * p-lang.c (pascal_language_defn): Likewise.
3445 * scm-lang.c (scm_language_defn): Likewise
3447 2007-09-23 Vladimir Prus <vladimir@codesourcery.com>
3449 Allow a code breakpoint to have several locations
3451 * breakpoint.h (enum enable_state): Remove the
3452 bp_shlib_disabled enumerator.
3453 (struct bp_location): New members shlib_disabled,
3454 global_next, enabled and function_name.
3455 Rename pending to condition_not_parsed.
3457 * breakpoint.c (ALL_BP_LOCATIONS): Iterate over global_next.
3458 (ALL_BP_LOCATIONS_SAFE): Likewise.
3459 (breakpoint_enabled): Don't check for pending.
3460 (condition_command): Free and update all locations of
3462 (insert_bp_location): Adjust.
3463 (software_breakpoint_inserted_here_p): Don't care
3464 if breakpoint is enabled, as soon as it's inserted.
3465 (print_it_typical): Print bpstat's location, not
3466 bpstat's breakpoint's location.
3467 (bpstat_stop_status): Iterate over all locations, not
3469 (print_breakpoint_location): New.
3470 (print_one_breakpoint): Renamed to
3471 (print_one_breakpoint_location): ...this. Take
3472 parameters to describe which location is being
3473 printed. Modify code to properly print header
3474 for several locations and individual locations.
3475 (print_one_breakpoint): Print all locations.
3476 (breakpoint_has_pc): New.
3477 (describe_other_breakpoints): Use the above.
3478 (check_duplicates): Renamed to...
3479 (check_duplicates_for): .. this.
3480 (check_duplicates): Use check_duplicates_for.
3481 (allocate_bp_location): Adjust.
3482 (set_raw_breakpoint_without_location): New,
3483 extracted from set_raw_breakpoint.
3484 (set_breakpoint_location_function): New.
3485 (set_raw_breakpoint): Use
3486 set_raw_breakpoint_without_location.
3487 (make_breakpoint_permanent): Mark all locations
3489 (disable_breakpoints_in_shlibs): Iterate over
3491 (disable_breakpoints_in_unloaded_shlib): Likewise.
3492 (re_enable_breakpoints_in_shlibs): Likewise.
3493 (mention): Say "pending" when breakpoint has
3494 zero locations. If breakpoint has more than one
3496 (add_location_to_breakpoint): New.
3497 (create_breakpoint): Accept symtabs_and_lines, not
3498 symtab_and_line. Pass extra sals to
3499 add_location_to_breakpoint.
3500 (create_breakpoints): Pass symtabs_and_lines to
3502 (break_command_1): Make pending breakpoints
3503 have zero locations.
3504 (do_captured_breakpoint): Remove wrong allocation.
3505 (clear_command): Iterate over all locations.
3506 (unlink_locations_from_global_list): Renamed
3507 from unlink_location_from_global_list. Remove
3509 (delete_breakpoint): Remove all locations.
3510 Iterate over all locations when deciding which
3511 other location to re-enable.
3512 (all_locations_are_pending): New.
3513 (update_breakpoint_locations): Renamed from
3514 update_breakpoint_location. Try to match old
3515 and new locations using names of containing
3517 (breakpoint_re_set_one): Adjust.
3518 (find_location_by_number): New.
3519 (disable_command): Allow disabling individual location.
3520 (enable_command): Allow enabling individual location.
3521 * breakpoint.c: Adjust all uses of breakpoint's
3522 enable state to for bp_shlib_disabled change.
3524 2007-09-22 Vladimir Prus <vladimir@codesourcery.com>
3526 * breakpoint.c (do_restore_lang_radix_cleanup): Remove.
3527 (resolve_pending_breakpoint): Remove.
3528 (re_enable_breakpoints_in_shlibs): Remove.
3529 (unlink_locations_from_global_list): New.
3530 (update_breakpoint_locations): New.
3531 (breakpoint_re_set_one): Don't bail out on pending breakpoints.
3532 Use parse_condition and update_breakpoint_location to
3533 reset breakpoint. Ignore 'symbol not found' error from
3535 (breakpoint_re_set): Don't emit newline before the
3536 reason why breakpoint is not reset.
3537 (do_enable_breakpoint): Don't specially process pending
3539 (free_bp_location): New.
3540 (break_command_1): For pending breakpoints, initialize
3541 all fields of a sal with zeroes.
3542 * breakpoint.h (re_enable_breakpoints_in_shlibs): Remove.
3543 * infcmd.c (post_create_inferior): Don't call
3544 re_enable_breakpoints_in_shlibs.
3545 * infrun.c (handle_inferior_event): Likewise.
3546 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
3547 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
3548 * win32-nat.c (get_win32_debug_event): Likewise.
3550 2007-09-22 Vladimir Prus <vladimir@codesourcery.com>
3552 * breakpoint.c (create_breakpoint): Split from
3553 create_breakpoints, implementing most of its logic.
3554 Take just a single sal, single address string and
3555 single condition. Do not take parsed condition at
3557 (create_breakpoints): Just call create_breakpoint
3559 (find_condition_and_thread): New.
3560 (break_command_1): Use find_condition_and_thread.
3561 Do not keep parsed conditions.
3562 (do_captured_breakpoint): Don't convert
3563 condition string to struct expression.
3565 2007-09-22 Vladimir Prus <vladimir@codesourcery.com>
3567 * breakpoint.h (struct breakpoint): Move the cond
3569 (struct bp_location): Here.
3570 * breakpoint.c (condition_command, bpstat_stop_status)
3571 (print_one_breakpoint, allocate_bp_location)
3572 (solib_load_unload_1, create_fork_vfork_event_catchpoint)
3573 (create_exec_event_catchpoint, create_breakpoints)
3574 (break_command_1, watch_command_1, handle_gnu_v3_exceptions)
3575 (create_ada_exception_breakpoint, set_breakpoint_sal)
3576 (delete_breakpoint, breakpoint_re_set_one): Adjust.
3577 * tui/tui-winsource.c (tui_update_breakpoint_info): Adjust.
3579 2007-09-22 Vladimir Prus <vladimir@codesourcery.com>
3581 Associate bp_stat with bp_location, not breakpoint.
3582 * breakpoint.h (breakpoint_at): Change type
3584 * breakpoint.c (bpstat_alloc): Take bp_location,
3586 (bpstat_find_breakpoint): Look at bpstat's location's
3587 owner, not at bpstat->breakpoint_at.
3588 (bpstat_find_step_resume_breakpoint): Likewise.
3589 (bpstat_num): Likewise.
3590 (print_it_typical): Likewise.
3591 (print_bp_stop_message): Likewise.
3592 (watchpoint_check): Likewise.
3593 (bpstat_what): Likewise.
3594 (bpstat_get_triggered_catchpoints): Likewise.
3595 (breakpoint_auto_delete): Likewise.
3596 (delete_breakpoint): Likewise.
3597 (bpstat_stop_status): Pass location, not breakpoint,
3598 to bpstat_alloc. Look at bpstat's location's
3599 owner, not at bpstat->breakpoint_at.
3601 2007-09-21 Jim Blandy <jimb@codesourcery.com>
3603 * macrotab.h (new_macro_table): Document that removing information
3604 from an obstack/bcache-managed macro table leaks memory.
3605 * macrotab.c (macro_free, macro_bcache_free): Instead of asserting
3606 that data is never freed in obstack/bcache-managed macro tables,
3607 just leak the storage.
3608 (macro_undef): If we're undefining a macro at exactly the same
3609 source location that we defined it, simply remove the definition
3612 2007-09-21 Joel Brobecker <brobecker@adacore.com>
3614 * symfile.h (struct sym_fns): Add new field sym_read_linetable.
3615 * coffread.c, dbxread.c, elfread.c, mipsread.c somread.c:
3616 Adjust the struct sym_fns object accordingly by setting
3617 the new field to NULL.
3618 * xcoffread.c (aix_process_linenos): Make static.
3619 (xcoff_sym_fns): Set new field to aix_process_linenos.
3620 * buildsym.c (end_symtab): Replace call to PROCESS_LINENUMBER_HOOK
3621 by call to new the new sym_fns sym_read_linetable function.
3622 * config/powerpc/aix.mt (DEPRECATED_TM_FILE): Delete.
3623 * config/rs6000/tm-rs6000.h: Delete.
3625 2007-09-21 David Ung <davidu@mips.com>
3626 Maciej W. Rozycki <macro@mips.com>
3628 * mips-tdep.c (mips_n32n64_push_dummy_call): Per N32/N64 ABI
3629 rules do not treat composite types specially.
3631 2007-09-20 Maciej W. Rozycki <macro@mips.com>
3633 * mips-tdep.c (mips32_in_function_epilogue_p): New function.
3634 (mips16_in_function_epilogue_p): Likewise.
3635 (mips_in_function_epilogue_p): Likewise.
3636 (mips_gdbarch_init): Register mips_in_function_epilogue_p().
3638 2007-09-19 Joel Brobecker <brobecker@adacore.com>
3640 * configure.ac: Add check for "etext".
3641 * configure, config.in: Regenerate.
3642 * maint.c (TEXTEND): Only define if either _etext or etext
3644 Disable the profiling functionality if TEXTEND is not defined.
3646 2007-09-19 Daniel Jacobowitz <dan@codesourcery.com>
3648 * mips-tdep.c (mips_stub_frame_cache): Correct the saved return
3649 address register. Correct the call to frame_id_build.
3650 (mips_stub_frame_sniffer): Use the stub unwinder when the PC
3653 2007-09-18 Joel Brobecker <brobecker@adacore.com>
3655 * ia64-tdep.c (refine_prologue_limit): Make sure we don't scan
3656 the linetable past the function end.
3658 2007-09-18 James E. Wilson <wilson@specifix.com>
3660 * MAINTAINERS: Update my email address.
3662 2007-09-18 Jerome Guitton <guitton@adacore.com>
3664 * inf-ttrace.c (inf_ttrace_private_thread_info): New structure type.
3665 (inf_ttrace_delete_dying_threads_callback): New function.
3666 (inf_ttrace_resume): After resuming the execution, iterate over
3667 the dying threads to delete them for the thread list.
3668 (inf_ttrace_wait): on TTEVT_LWP_EXIT and TTEVT_LWP_TERMINATE,
3669 mark the corresponding thread as dying instead of removing it
3670 from the thread list.
3671 (inf_ttrace_thread_alive): return 0 for dying threads.
3673 2007-09-17 Joel Brobecker <brobecker@adacore.com>
3675 * infrun.c (insert_step_resume_breakpoint_at_frame): Add assertion
3676 that return_frame is not null.
3678 2007-09-17 Joel Brobecker <brobecker@adacore.com>
3680 * solib-svr4.c: Add include of "auxv.h".
3681 (enable_break): Use the AT_BASE auxiliary entry if available.
3682 * Makefile.in (solib-svr4.o): Update dependencies.
3684 2007-09-17 Joel Brobecker <brobecker@adacore.com>
3686 * NEWS: Create a new section for the next release branch.
3687 Rename the section of the current branch, now that it has
3690 2007-09-17 Jerome Guitton <guitton@adacore.com>
3692 * dwarf2loc.c (dwarf_expr_frame_base): Guard against NULL.
3693 * Makefile.in (dwarf2loc.o): Depend on gdb_assert.h.
3695 2007-09-16 Vladimir Prus <vladimir@codesourcery.com>
3697 * mi/mi-cmds.c (mi_cmds): Register -list-features.
3698 * mi/mi-cmds.h (mi_cmd_list_features): New.
3699 * mi/mi-main.c (mi_cmd_list_features): New.
3701 2007-09-11 Joel Brobecker <brobecker@adacore.com>
3703 GDB 6.7 branch created (branch timestamp: 2007-09-07 14:00 UTC)
3704 * version.in: Bump version to 6.7.50-20070911-cvs.
3706 2007-09-10 Daniel Jacobowitz <dan@codesourcery.com>
3708 * thread.c (free_thread): Do not delete the step resume breakpoint
3711 2007-09-10 Daniel Jacobowitz <dan@codesourcery.com>
3713 * arch-utils.c (gdbarch_info_fill): Also try core_bfd.
3714 * corelow.c (core_read_description): New.
3715 (init_core_ops): Set to_read_description.
3716 * gdbarch.sh: Add gdbarch_core_read_description.
3717 * mips-linux-tdep.c (mips_linux_core_read_description): New.
3718 (mips_linux_init_abi): Call set_gdbarch_core_read_description.
3719 * mips-tdep.c (mips_tdesc_gp32, mips_tdesc_gp64): New.
3720 (mips_register_g_packet_guesses): Use them.
3721 (_initialize_mips_tdep): Initialize them.
3722 * mips-tdep.h (mips_tdesc_gp32, mips_tdesc_gp64): Declare.
3723 * gdbarch.h, gdbarch.c: Regenerated.
3725 2007-09-10 Ulrich Weigand <uweigand@de.ibm.com>
3727 * infrun.c (stepping_past_breakpoint): New global variable.
3728 (stepping_past_breakpoint_ptid): Likewise.
3729 (prepare_to_proceed): Add STEP parameter. Do not check for Ctrl-C.
3730 Only switch threads if we need to single-step over a breakpoint hit
3731 in the previously selected thread. If stepping, remember previous
3732 thread to switch back to in STEPPING_PAST_BREAKPOINT[_PTID]. Call
3733 switch_to_thread instead of copying its contents.
3734 (proceed): Pass STEP to prepare_to_proceed. Always set ONEPROC if
3735 prepare_to_proceed returns true.
3736 (init_wait_for_inferior): Reset STEPPING_PAST_BREAKPOINT.
3737 (context_switch): Call switch_to_thread.
3738 (handle_inferior_event): Switch back to previous thread if requested
3739 in STEPPING_PAST_BREAKPOINT[_PTID] by prepare_to_proceed.
3740 * gdbthread.h (switch_to_thread): Add prototype.
3741 * thread.c (switch_to_thread): Make global.
3743 2007-09-07 Pierre Muller <muller@ics.u-strasbg.fr>
3745 * p-valprint.c: Fix 7 ARI reported problems.
3746 (pascal_val_print): Fix one operator at end of line issue.
3747 Use paddress function to remove use of
3748 deprecated_print_address_numeric function (2 times).
3749 Use SYMBOL_LINKAGE_NAME instead of DEPRECATED_SYMBOL_NAME.
3750 (pascal_value_print): Fix 3 operator at end of line issues.
3752 2007-09-07 Daniel Jacobowitz <dan@codesourcery.com>
3755 * arm-tdep.c (arm_in_call_stub): Delete.
3756 (arm_skip_stub): Handle from_arm and from_thumb stubs.
3758 2007-09-06 Daniel Jacobowitz <dan@codesourcery.com>
3760 * ppc-sysv-tdep.c (do_ppc_sysv_return_value): Handle other integer
3763 2007-09-04 Daniel Jacobowitz <dan@codesourcery.com>
3764 Jim Blandy <jimb@codesourcery.com>
3766 * NEWS: Update description of string changes. Mention print/s.
3767 * c-valprint.c (textual_element_type): New.
3768 (c_val_print): Use it. Do not skip address printing for pointers
3769 with a string format.
3770 (c_value_print): Doc update.
3771 * dwarf2read.c (read_array_type): Use make_vector_type.
3772 * gdbtypes.c (make_vector_type): New.
3773 (init_vector_type): Use it.
3774 (gdbtypes_post_init): Initialize builtin_true_unsigned_char.
3775 (_initialize_gdbtypes): Mark int8_t and uint8_t as TYPE_FLAG_NOTTEXT.
3776 * gdbtypes.h (struct builtin_type): Add builtin_true_unsigned_char.
3777 (TYPE_FLAG_NOTTEXT, TYPE_NOTTEXT): New.
3778 (make_vector_type): New.
3779 * printcmd.c (print_formatted): Only handle 's' and 'i' for examine.
3780 Call the language print routine for string format.
3781 (print_scalar_formatted): Call val_print for string format. Handle
3782 unsigned original types for char format.
3783 (validate_format): Do not reject string format.
3784 * stabsread.c (read_type): Use make_vector_type.
3785 * xml-tdesc.c (tdesc_start_vector): Use init_vector_type.
3787 2007-09-04 Michael Snyder <msnyder@access-company.com>
3789 * expprint.c (print_subexp_standard): Check strchr for null.
3790 * Makefile.in (expprint.o): Depend on gdb_assert.h.
3792 * gnu-v2-abi.c (gnuv2_value_rtti_type): Guard against null.
3794 * stabsread.c (patch_block_status): Guard against null.
3795 * Makefile.in (stabsread.o): Depend on gdb_assert.h.
3797 2007-09-04 Daniel Jacobowitz <dan@codesourcery.com>
3799 * printcmd.c (printf_command): Handle ptr_arg. Correct typo
3800 in internal error message.
3802 2007-09-04 Pedro Alves <pedro_alves@portugalmail.pt>
3803 Daniel Jacobowitz <dan@codesourcery.com>
3805 * infcmd.c (post_create_inferior): Update comment.
3806 (run_command_1): Always call post_create_inferior with 0 as
3809 * i386-cygwin-tdep.h: New.
3810 * i386-cygwin-tdep.c: Include "i386-cygwin-tdep.h".
3811 (win32_xfer_shared_library): Make it extern.
3813 * win32-nat.c: Include gdb_obstack.h and xml-support.h and
3815 (win32_so_ops): Delete.
3816 (get_relocated_section_addrs): Delete.
3817 (solib_symbols_add): Delete.
3818 (register_loaded_dll): Delete.
3819 (win32_make_so): New.
3820 (handle_load_dll): Use win32_make_so.
3821 (win32_free_so): Free the passed in so.
3822 (win32_relocate_section_addresses): Delete.
3823 (win32_solib_create_inferior_hook): Delete.
3824 (handle_unload_dll): Don't add PE offset here. Free so with
3825 win32_free_so instead of free_so.
3826 (win32_special_symbol_handling): Delete.
3827 (get_win32_debug_event): Remove unneeded calls. Set state to
3828 TARGET_WAITKIND_LOADED on a dll unload.
3829 (do_initial_win32_stuff): Clear cygwin_load_start and
3831 (map_code_section_args): Delete.
3832 (dll_code_sections_add): Delete.
3833 (core_section_load_dll_symbols): Delete.
3834 (win32_xfer_shared_libraries): New.
3835 (win32_current_sos): Delete.
3836 (win32_xfer_partial): New.
3837 (open_symbol_file_object): Delete.
3838 (in_dynsym_resolve_code): Delete.
3839 (init_win32_ops): Set win32_xfer_partial as to_xfer_partial member
3840 of win32_ops. Remove win32_so_ops settings. Don't set
3841 current_target_so_ops here.
3843 * Makefile.in (i386_cygwin_tdep_h): New variable.
3844 (i386-cygwin-tdep.o): Update dependencies.
3845 (win32-nat.o): Update dependencies.
3847 2007-09-04 Pedro Alves <pedro_alves@portugalmail.pt>
3848 Daniel Jacobowitz <dan@codesourcery.com>
3850 * gdbarch.sh (core_xfer_shared_libraries): New.
3852 * corelow.c (core_xfer_partial): Handle TARGET_OBJECT_LIBRARIES.
3854 * gdb_obstack.h (obstack_grow_str, obstack_grow_str0): New.
3856 * xml-support.c (gdb_xml_parse): Debug output tweaks.
3857 (xml_escape_text): New.
3858 * xml-support.h (xml_escape_text): Declare.
3860 * config/i386/cygwin.mh (NATDEPFILES): Move corelow.o to ...
3861 * config/i386/cygwin.mt (TDEPFILES): ... here.
3863 * win32-nat.c: (fetch_elf_core_registers): Delete.
3864 (win32_elf_core_fn): Delete.
3865 (_initialize_core_win32): Delete.
3867 * i386-cygwin-tdep.c: Include "regset.h", "gdb_objstack.h",
3868 "xml-support.h" and "gdbcore.h".
3869 (i386_win32_gregset_reg_offset): New.
3870 (I386_WIN32_SIZEOF_GREGSET): New.
3871 (i386_win32_regset_from_core_section): New.
3872 (win32_xfer_shared_library): New.
3873 (struct cpms_data): New.
3874 (core_process_module_section): New.
3875 (win32_core_xfer_shared_libraries): New.
3876 (i386_cygwin_skip_trampoline_code): Register gregset_reg_offset,
3877 gregset_num_regs, sizeof_gregset members of tdep. Register
3878 regset_from_core_section and core_xfer_shared_libraries callbacks.
3880 * Makefile.in (i386-cygwin-tdep.o): Update dependencies.
3881 * gdbarch.h, gdbarch.c: Regenerate.
3883 2007-09-03 Daniel Jacobowitz <dan@codesourcery.com>
3885 * corelow.c (core_xfer_partial): Pass writebuf to
3886 deprecated_xfer_memory in TARGET_OBJECT_MEMORY write case.
3888 2007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
3890 * arm-tdep.h (arm_skip_stub): Declare.
3891 * arm-wince-tdep.c: Don't include "solib-svr4.h". Include
3893 (arm_pe_skip_trampoline_code): New function.
3894 (arm_wince_init_abi): Register arm_pe_skip_trampoline_code as
3895 gdbarch_skip_trampoline_code callback.
3896 * Makefile.in (arm-wince-tdep.o): Update dependencies.
3898 2007-09-03 Daniel Jacobowitz <dan@codesourcery.com>
3900 * MAINTAINERS: Move Fred Fish to Past Maintainers.
3902 2007-09-03 Daniel Jacobowitz <dan@codesourcery.com>
3904 * configure.ac: Add --with-expat.
3905 * configure: Regenerated.
3907 2007-09-03 Andreas Schwab <schwab@suse.de>
3909 * configure.ac: Accept --with-system-readline.
3910 (READLINE, READLINE_DEPS, READLINE_CFLAGS): Define and substitute.
3911 * configure: Regenerate.
3912 * Makefile.in (READLINE, READLINE_DEPS, READLINE_CFLAGS): Use
3914 (CDEPS): Use $(READLINE_DEPS) instead of $(READLINE).
3916 2007-09-03 Maxim Grigoriev <maxim2405@gmail.com>
3917 Daniel Jacobowitz <dan@codesourcery.com>
3919 * mi-main.c (mi_load_progress): Handle MI2 and MI3 interpreters.
3921 2007-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3923 * top.c (print_gdb_version): Fixed a string end-of-line compiler error.
3925 2007-09-02 Daniel Jacobowitz <dan@codesourcery.com>
3927 * top.c (print_gdb_version): Update for GPL version 3.
3929 2007-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3931 * NEWS: Mention the build-id .debug files verification.
3933 2007-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3935 * linux-nat.c (linux_nat_make_corefile_notes): Fixed a buffer overflow.
3937 2007-09-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3939 * Makefile.in (symfile.o): Update dependencies.
3940 * symfile.c (symbol_file_add_with_addrs_or_offsets): Initialize the
3941 DEBUGFILE variable. FIND_SEPARATE_DEBUG_FILE called only if !PSYMTABS.
3942 (struct build_id): New structure.
3943 (build_id_bfd_get, build_id_verify, build_id_to_debug_filename): New.
3944 (find_separate_debug_file): New variable BUILD_ID.
3945 Call BUILD_ID_BFD_GET with BUILD_ID_TO_DEBUG_FILENAME as the first try.
3947 2007-08-31 Vladimir Prus <vladimir@codesourcery.com>
3949 * varobj.c (struct varobj): Fix comment
3950 for the type member not to lie when it can be
3953 2007-08-31 Vladimir Prus <vladimir@codesourcery.com>
3955 Implement -var-info-path-expression.
3957 * mi/mi-cmds.h (mi_cmd_var_info_path_expression):
3959 * mi/mi-cmds.c (mi_cmds): Register var-info-path-expression.
3960 * mi/mi-cmd-var.c (mi_cmd_var_info_path_expression): New.
3961 * varobj.c (struct varobj): New field 'path_expr'.
3962 (c_path_expr_of_child, cplus_path_expr_of_child)
3963 (java_path_expr_of_child): New.
3964 (struct language_specific): New field path_expr_of_child.
3965 (varobj_create): Initialize the path_expr field.
3966 (varobj_get_path_expr): New.
3967 (new_variable): Initialize the path_expr field.
3968 (free_variable): Free the path_expr field.
3969 (adjust_value_for_children_access): New parameter
3971 (c_number_of_children): Adjust.
3972 (c_describe_child): New parameter CFULL_EXPRESSION.
3973 Compute full expression.
3974 (c_value_of_child, c_type_of_child): Adjust.
3975 (cplus_number_of_children): Adjust.
3976 (cplus_describe_child): New parameter CFULL_EXPRESSION.
3977 Compute full expression.
3978 (cplus_name_of_child, cplus_value_of_child)
3979 (cplus_type_of_child): Adjust.
3980 * varobj.h (varobj_get_path_expr): Declare.
3982 2007-08-31 Vladimir Prus <vladimir@codesourcery.com>
3984 * mi/mi-cmd-var.c (print_varobj): If a varobj
3985 type is NULL, don't try to print it.
3987 2007-08-30 Alan Modra <amodra@bigpond.net.au>
3989 * ppc-linux-nat.c (right_fill_reg): Delete.
3990 (supply_gregset): Use ppc_supply_gregset.
3991 (supply_fpregset): Use ppc_supply_fpregset.
3992 (fill_gregset): Use ppc_collect_gregset.
3993 (fill_fpregset): Use ppc_collect_fpregset.
3994 * ppc-linux-tdep.c (PPC_LINUX_PT_*): Don't define.
3995 (right_supply_register, ppc_linux_supply_gregset): Delete.
3996 (ppc32_linux_supply_gregset, ppc64_linux_supply_gregset): Delete.
3997 (ppc_linux_supply_fpregset): Delete.
3998 (ppc_linux_collect_gregset): New function.
3999 (ppc32_linux_reg_offsets, ppc64_linux_reg_offsets): New.
4000 (ppc32_linux_gregset, ppc64_linux_gregset): Update to use reg offsets,
4001 ppc_linux_supply_gregset, and ppc_collect_gregset.
4002 (ppc_linux_fpregset): Rename to ppc32_linux_fpregset and update.
4003 (ppc_linux_gregset, ppc_linux_fpregset): New functions.
4004 (ppc_linux_regset_from_core_section): Update.
4005 * ppc-tdep.h (ppc_linux_gregset, ppc_linux_fpregset): Declare.
4006 (ppc_linux_supply_gregset, ppc_linux_supply_fpregset): Delete.
4007 (struct ppc_reg_offsets): Add gpr_size, xr_size, fpscr_size fields.
4008 * ppcobsd-tdep.c (ppcobsd_supply_gregset): Delete FIXME and assert.
4009 (ppcobsd_collect_gregset): Likewise.
4010 (_initialize_ppcnbsd_tdep): Init gpr_size, xr_size, fpscr_size.
4011 * ppcnbsd-tdep.c (_initialize_ppcobsd_tdep): Likewise.
4012 * ppcobsd-nat.c (_initialize_ppcobsd_nat): Likewise.
4013 * rs6000-aix-tdep.c (rs6000_aix32_reg_offsets): Likewise.
4014 (rs6000_aix64_reg_offsets): Likewise.
4015 (rs6000_aix_supply_regset): Call ppc_supply_fpregset without testing
4016 ppc_floating_point_unit_p.
4017 (rs6000_aix_collect_regset): Similarly.
4018 * rs6000-tdep.c (ppc_supply_reg): Add regsize param. Adjust offset
4019 when regsize is larger than regcache register size.
4020 (ppc_collect_reg): Similarly zero pad when regsize is larger than
4021 regcache register size.
4022 (ppc_greg_offset): New function, split out from..
4023 (ppc_supply_gregset): ..here. Separate code handling all regs from
4024 single reg case. Correct xer offset.
4025 (ppc_fpreg_offset): New function, split out from..
4026 (ppc_supply_fpregset): ..here. Separate code handling all regs from
4028 (ppc_collect_gregset, ppc_collect_fpregset): Likewise.
4029 (ppc_supply_fpregset, ppc_collect_fpregset): Don't assert we have
4030 a fp unit, instead return if no fp.
4032 2007-08-29 Jim Blandy <jimb@codesourcery.com>
4034 * breakpoint.c (watch_command_1): Remove '#ifdef HPUXHPPA' block;
4035 this code has not been compiled for two years.
4037 2007-08-29 Michael Snyder <msnyder@access-company.com>
4039 * event-top.c (gdb_readline2): Return after EOF.
4041 2007-08-29 Joel Brobecker <brobecker@adacore.com>
4043 * symtab.c: Remove a function that has been commented out 3 years ago.
4045 2007-08-29 Randolph Chung <tausq@debian.org>
4047 * hppa-tdep.c (hppa32_cannot_fetch_register)
4048 (hppa64_cannot_fetch_register): New functions.
4049 (hppa_gdbarch_init): Set cannot_fetch_register appropriately.
4050 * hppa-tdep.h (hppa_regnum): Add HPPA_CR26_REGNUM.
4052 2007-08-28 Michael Snyder <msnyder@access-company.com>
4054 * mi/mi-cmd-var.c (mi_print_value_p): No longer necessary to
4055 check for null before calling check_typedef.
4057 * NEWS: Mention Coverity bug fixes.
4059 2007-08-27 Markus Deuling <deuling@de.ibm.com>
4061 * spu-tdep.c (spu_pointer_to_address): New function.
4062 (spu_integer_to_address): Likewise.
4063 (spu_gdbarch_init): Add spu_pointer_to_address and
4064 spu_integer_to_address to gdbarch.
4066 2007-08-26 Pedro Alves <pedro_alves@portugalmail.pt>
4068 * arm-wince-tdep.c (ARM_WINCE_JB_PC): Change to 10.
4070 2007-08-23 Joel Brobecker <brobecker@adacore.com>
4072 * Makefile.in (copying.c): Use the top-level COPYING3 as the file
4073 that contains the GDB license.
4074 * copying.awk: Adjust to the GPLv3 wording.
4075 * copying.c: Regenerate.
4077 2007-08-23 Joel Brobecker <brobecker@adacore.com>
4079 * copying.awk: Protoization, and i18n markup.
4081 2007-08-23 Joel Brobecker <brobecker@adacore.com>
4083 * config/djgpp/djconfig.sh: Switch license to GPLv3.
4084 * copyright.sh: Likewise.
4085 * gdb-events.sh: Likewise.
4086 * gdb_gcore.sh: Likewise.
4087 * gdb_mbuild.sh: Likewise.
4088 * gdbarch.sh: Likewise.
4089 * observer.sh: Likewise.
4090 * features/feature_to_c.sh: Likewise.
4091 * regformats/regdat.sh: Likewise.
4093 2007-08-23 Joel Brobecker <brobecker@adacore.com>
4095 Switch the license of all .c files to GPLv3.
4096 Switch the license of all .h files to GPLv3.
4097 Switch the license of all .cc files to GPLv3.
4099 2007-08-23 Joel Brobecker <brobecker@adacore.com>
4101 * configure.ac: Switch license to GPLv3.
4103 2007-08-22 Daniel Jacobowitz <dan@codesourcery.com>
4105 * mips-tdep.c (mips_gdbarch_init): Use Tag_GNU_MIPS_ABI_FP to
4106 determine the file's FPU type.
4108 2007-08-22 Daniel Jacobowitz <dan@codesourcery.com>
4110 * mips-tdep.c (mips_n32n64_fp_arg_chunk_p): New.
4111 (mips_n32n64_push_dummy_call): Always increment float_argreg along
4112 with argreg. Use mips_n32n64_fp_arg_chunk_p.
4114 2007-08-22 Daniel Jacobowitz <dan@codesourcery.com>
4116 * solib-svr4.c (scan_dyntag): Only read target memory when necessary.
4118 (elf_locate_base): Look for DT_MIPS_RLD_MAP first. Expand comments.
4119 (elf_lookup_lib_symbol): Fix formatting.
4121 2007-08-21 Michael Snyder <msnyder@access-company.com>
4123 * dbxread.c (read_dbx_symtab): Guard null deref.
4126 * valops.c (find_overload_match): Guard against NULL.
4128 2007-08-21 Daniel Jacobowitz <dan@codesourcery.com>
4130 * MAINTAINERS (Patch Champions): Remove self.
4132 2007-08-21 Chris Smith <chris.smith@st.com>
4134 * cli/cli-script.c (read_command_lines): Call dont_repeat for each
4137 2007-08-18 Michael Snyder <msnyder@access-company.com>
4139 * stabsread.c (dbx_lookup_type): Memory leak.
4141 * event-loop.c (delete_async_signal_handler): Move pointer null
4142 test to before pointer dereference.
4144 * ui-out.c (append_header_to_list): Possible cut and paste error.
4146 * MAINTAINERS: white space tweak.
4148 2007-08-17 Michael Snyder <msnyder@access-company.com>
4150 * stack.c (print_frame): Memory leak.
4152 * completer.c (filename_completer): Avoid memory leak.
4153 Remove unnecessary nested block.
4155 * c-exp.y (parse_number): Memory leak.
4157 * completer.c (location_completer): Must free 'fn_list', except
4158 in the one case where it is returned (as 'list').
4160 * varobj.c (value_of_root): Memory leak.
4162 * gdbtypes.h (virtual_base_list): Remove export decl.
4163 * gdbtypes.c (virtual_base_list): Make static. Not called outside.
4164 (virtual_base_index): Memory leak.
4165 (virtual_base_index_skip_primaries): Ditto.
4167 2007-08-17 Maxim Grigoriev <maxim2405@gmail.com>
4169 * xtensa-tdep.c (ARG_NOF, ARG_1ST, PS_WOE, PS_EXC, C0_MAXOPDS)
4170 (C0_NREGS, C0_CLESV, C0_SP, C0_FP, C0_RA, C0_ARGS, C0_NARGS)
4171 (C0_CONST, C0_INEXP, C0_NOSTK): New macros.
4172 (xtensa_read_register): New function.
4173 (xtensa_windowed_frame_cache, xtensa_call0_frame_cache, xtensa_c0reg)
4174 (xtensa_insn_kind): New types.
4175 (xtensa_frame_cache, xtensa_alloc_frame_cache, xtensa_frame_cache)
4176 (xtensa_frame_prev_register, xtensa_return_value, xtensa_skip_prologue)
4177 (xtensa_verify_config, xtensa_pseudo_register_read)
4178 (xtensa_pseudo_register_write, xtensa_extract_return_value)
4179 (xtensa_store_return_value)
4180 (xtensa_push_dummy_call): Extended to support Xtensa Call0 ABI.
4181 (windowing_enabled, extract_call_winsize, xtensa_unwind_dummy_id)
4182 (xtensa_frame_this_id, xtensa_frame_prev_register)
4183 (xtensa_register_type, xtensa_reg_to_regnum): Cosmetic changes.
4184 (call0_frame_cache, call0_frame_get_reg_at_entry)
4185 (call0_classify_opcode, call0_track_op)
4186 (call0_analyze_prologue, call0_frame_cache): New functions.
4188 2007-08-17 Vladimir Prus <vladimir@codesourcery.com>
4190 * breakpoint.c (bpstat_free): New.
4191 (bpstat_clear): Use bpstat_free.
4192 (delete_breakpoint): Document why we cannot
4193 remove bpstats from stop_bpstat.
4194 * breakpoint.h (bpstat_free): Declare.
4196 2007-08-16 Michael Snyder <msnyder@access-company.com>
4198 * event-loop.c (gdb_wait_for_event): Move statement into "if" block.
4200 2007-08-15 Paul Hilfinger <hilfinger@adacore.com>
4201 Joel Brobecker <brobecker@adacore.com>
4203 * ada-lang.c (resolve_subexp): Correct arity of binary operators.
4205 2007-08-15 Paul Hilfinger <hilfinger@adacore.com>
4206 Joel Brobecker <brobecker@adacore.com>
4208 * ada-lang.c (possible_user_operator_p): Alternative fix to last
4209 checkin guarding against NULL.
4211 2007-08-14 Michael Snyder <msnyder@access-company.com>
4213 * tui-command.c, tui-data.c, tui-disasm.c, tui-file.c, tui-io.c,
4214 tui-layout.c, tui-regs.c, tui-source.c, tui-win.c, tui-windata.c,
4215 tui-wingeneral.c, tui-winsource.c: Coding standard, && and ||
4216 go at beginning of new line.
4218 * tui-data.c, tui-data.h, tui-disasm.c, tui-disasm.h, tui-hooks.c,
4219 tui-io.c, tui-layout.c, tui-layout.h, tui-out.c, tui-regs.c,
4220 tui-source.c, tui-source.h, tui-stack.c, tui-win.c, tui-win.h,
4221 tui-windata.c, tui-windata.h, tui-wingeneral.c, tui-winsource.c,
4222 tui-winsource.h, tui.c, tui.h: Function declarations and
4223 definitions, wrap long lines.
4225 * tui-command.c, tui-data.c, tui-disasm.c, tui-layout.c,
4226 tui-regs.c, tui-win.c, tui-windata.c, tui-winsource.c, tui.c:
4227 Reformat block comments to GNU standard.
4229 * tui-command.c, tui-data.c, tui-data.h, tui-disasm.c, tui-file.c,
4230 tui-hooks.c, tui-interp.c, tui-io.c, tui-layout.c, tui-out.c,
4231 tui-regs.c, tui-regs.h, tui-source.c, tui-stack.c, tui-win.c,
4232 tui-windata.c, tui-wingeneral.c, tui-winsource.c, tui-winsource.h,
4233 tui.c, tui.h: Comment reformatting to coding standard (capitals,
4234 spaces after periods, etc).
4236 * tui-data.c, tui-data.h, tui-disasm.c, tui-hooks.c, tui-layout.c,
4237 tui-regs.c, tui-source.c, tui-stack.c, tui-win.c, tui-windata.c,
4238 tui-wingeneral.c, tui-wingeneral.h, tui-winsource.c, tui.c,
4239 tui-winsource.h: Whitespace changes, fix pointer declarations
4242 2007-08-14 Joel Brobecker <brobecker@adacore.com>
4243 Michael Snyder <msnyder@access-company.com>
4245 * ada-lang.c (field_alignment): Guard against NULL.
4247 2007-08-14 Joel Brobecker <brobecker@adacore.com>
4249 * MAINTAINERS (Global Maintainers): Add self.
4251 2007-08-14 Michael Snyder <msnyder@access-company.com>
4253 * mi/mi-interp.c (mi_cmd_interpreter_exec): Dead code, dead variable.
4255 * ada-lang.c (possible_user_operator_p): Guard against NULL.
4257 * varobj.c (cplus_describe_child): Guard against null.
4258 Use "NULL" instead of "0" to initialize pointers.
4260 2007-08-14 Daniel Jacobowitz <dan@codesourcery.com>
4262 * arm-tdep.c (arm_gdbarch_init): Allow unknown ABI and FPU settings
4263 to match any gdbarch with matching OSABI. Set default ABI and FPU
4264 after running the OSABI handler.
4266 2007-08-14 Daniel Jacobowitz <dan@codesourcery.com>
4268 * config/i386/linux.mh (NATDEPFILES): Move corelow.o from here...
4269 * config/i386/linux.mt (TDEPFILES): ...to here.
4271 2007-08-14 Vladimir Prus <vladimir@codesourcery.com>
4273 * breakpoint.c (disable_breakpoints_in_shlibs): Remove
4274 the 'silent' parameter and code to implement that.
4275 * breakpoint.h (disable_breakpoints_in_shlibs): Adjust
4277 * win32-nat.c: Adjust.
4280 2007-08-14 Vladimir Prus <vladimir@codesourcery.com>
4282 * breakpoint.c (update_breakpoints_after_exec): Don't
4283 set address to zero.
4285 2007-08-13 Michael Snyder <msnyder@access-company.com>
4287 * valops.c: Whitespace clean-up.
4289 * tui/tui-winsource.c (tui_alloc_source_buffer): Clean up allocation.
4291 * event-top.c (command_line_handler): Memory leak.
4293 * mi/mi-cmd-var.c (mi_cmd_var_set_format): Memory leak.
4294 No need to make copy.
4296 * source.c (find_source_lines): Require symtab 's'.
4298 2007-08-11 Michael Snyder <msnyder@access-company.com>
4300 * completer.c: Spelling fix in comments.
4302 2007-08-10 Michael Snyder <msnyder@access-company.com>
4304 * gdbtypes.c: Coding standard cleanup.
4305 * gdbtypes.c: Comment/whitespace cleanup.
4307 * stabsread.c (read_huge_number): Attempt to compute value before
4308 values that it depends on.
4310 * linespec.c (decode_dollar): Dead code, ptr can't be non-null.
4311 (decode_objc): Use "NULL" instead of 0.
4312 (find_method): Ditto.
4313 (decode_all_digits): Ditto.
4314 (decode_dollar): Ditto.
4316 * mi/mi-main.c (mi_cmd_data_evaluate_expression): Resource leak.
4318 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Memory leak.
4320 * solib-svr4.c (enable_break): Don't free tmp_pathname until
4323 * completer.c: Comment/whitespace cleanup.
4325 2007-08-10 Joel Brobecker <brobecker@adacore.com>
4327 * Makefile.in (i386nbsd-nat.o): Add missing dependency.
4329 2007-08-10 Maxim Grigoriev <maxim2405@gmail.com>
4331 * remote-fileio.c (remote_fileio_resize_fd_map): Initialize newly
4332 allocated file descriptors.
4334 2007-08-10 Joel Brobecker <brobecker@adacore.com>
4336 * Makefile.in: Minor cleanup throughout; add some missing variables,
4337 add some missing rules, remove some rules that are no longer needed,
4338 and fix the dependencies in several rules.
4340 2007-08-10 Ludovic Courtès <ludo@gnu.org>
4342 * Makefile.in (SFILES): Add scm-{exp,lang,valprint}.c.
4343 (scm_lang_h, scm_tags_h): New.
4344 (COMMON_OBS): Add scm-{exp,lang,valprint}.o.
4345 (scm-exp.o, scm-lang.o, scm-valprint.o): New targets.
4346 * defs.h (enum language): Add `language_scm'.
4348 * MAINTAINERS: Add Emacs local variables to use UTF-8 upon
4351 2007-08-09 Ludovic Courtès <ludo@gnu.org>
4353 * MAINTAINERS (Write After Approval): Add myself.
4355 2007-08-09 Michael Snyder <msnyder@access-company.com>
4357 * solib.c (solib_open): Memory leak -- openp returns xmalloc buffer.
4359 2007-08-09 Joel Brobecker <brobecker@adacore.com>
4361 * solib-som.c (som_relocate_section_addresses): Stop saving
4362 the $CODE$ section in the so_list structure.
4364 2007-08-08 Maxim Grigoriev <maxim2405@gmail.com>
4366 * xtensa-tdep.h (XTENSA_MAX_COPROCESSOR): New.
4367 (xtensa_register_group_t): Add entries for coprocessors.
4368 * xtensa-tdep.c (xtensa_init_reggroups): New register groups.
4369 (xtensa_add_reggroups): Likewise.
4370 (xtensa_register_reggroup_p): Likewise.
4371 (xtensa_coprocessor_register_group): New function.
4374 2007-08-08 Jan Kratochvil <jan.kratochvil@redhat.com>
4376 * serial.c (serial_open): Fix the OPEN parameter macro expansion.
4378 2007-08-08 Michael Snyder <msnyder@access-company.com>
4380 * target.c (target_read_string): Guard against null.
4382 * varobj.c (value_of_root): Move alloc after return to avoid leak.
4384 * tui/tui-layout.c (tui_set_layout): Dead code, dead variable.
4385 (tui_set_layout_for_display_command): Mem leak.
4387 * top.c (command_line_input): Memory leak.
4389 * solib-svr4.c (open_symbol_file_object): Memory leak.
4390 (svr4_current_sos): Ditto.
4391 (enable_break): Ditto.
4393 * cp-valprint.c (cp_print_hpacc_virtual_table_entries): Memory leak.
4395 * dwarf2read.c (add_partial_symbol): Memory leak.
4397 2007-08-06 Michael Snyder <msnyder@access-company.com>
4399 * ada-lang.c (desc_bounds): Comparison of function address to NULL.
4401 2007-08-05 Jim Blandy <jimb@codesourcery.com>
4403 * macroexp.c (init_buffer): Remove testing code that overrides the
4404 caller's length guess.
4405 (gather_arguments): Use a larger initial size, now that the vector
4406 growth code has been exercised.
4408 2007-08-05 Pedro Alves <pedro_alves@portugalmail.pt>
4410 * solib-target.c (solib_target_relocate_section_addresses): Add
4411 orig_delta to addr_high.
4413 2007-08-04 Michael Snyder <msnyder@access-company.com>
4415 * remote-fileio.c (remote_fileio_func_write): Memory leak.
4417 * breakpoint.c (print_one_breakpoint): Off by one error.
4419 * tracepoint.c (add_register): Off by one error.
4420 (stringify_collection_list): Free malloc buffer.
4422 2007-08-03 Michael Snyder <msnyder@access-company.com>
4424 * mi-cmd-var.c (mi_cmd_var_delete): Remove unused variable,
4425 stop memory leak, straighten out cleanups.
4427 * jv-lang.c (java_link_class_type): Guard against NULL.
4429 2007-08-02 Michael Snyder <msnyder@access-company.com>
4431 * gdbtypes.c (create_set_type): Test should only be done within
4432 the preceeding if block. Otherwise, variable is uninitialized.
4434 * gdbtypes.c (check_typedef): Guard NULL.
4436 2007-08-01 Michael Snyder <msnyder@access-company.com>
4438 * cli/cli-decode.c (lookup_cmd): Check for null earlier, to
4439 avoid dereference in lookup_cmd_1.
4441 * tui/tui-data.c (tui_alloc_content): Move assign out of if,
4442 clean up long lines.
4443 (tui_alloc_generic_win_info): Tidy by using XMALLOC macro.
4444 (tui_alloc_win_info): Ditto.
4445 (tui_add_content_elements): Ditto.
4446 * tui/tui-file.c (tui_file_magic): Ditto.
4448 2007-07-31 Michael Snyder <msnyder@access-company.com>
4450 * breakpoint.c (breakpoint_init_inferior): Add 'else' to 'if'.
4451 True and false paths are mutually exclusive.
4453 * event-top.c (command_line_handler): Add pedantic return.
4455 * f-valprint.c (info_common_command): Bail out to prevent null
4456 pointer deref. Break up a long line.
4458 * exec.c (xfer_memory): Remove redundant condition from 'if'.
4460 * symfile.c (reread_separate_symbols): Free xmalloced memory.
4462 * printcmd.c (build_address_symbolic): Remove dead code and dead
4465 2007-07-31 Daniel Jacobowitz <dan@codesourcery.com>
4467 * linespec.c (minsym_found): Advance to the next line if possible.
4469 2007-07-31 Pedro Alves <pedro_alves@portugalmail.pt>
4471 * arm-wince-tdep.c (arm_wince_init_abi): Remove svr4 related call.
4472 * config/arm/wince.mt (TDEPFILES): Remove solib-legacy.o and
4473 solib-svr4.o, and add solib-target.o
4475 2007-07-27 Michael Snyder <msnyder@access-company.com>
4477 * tui/tui-data.c (tui_alloc_generic_win_info): Wrong arg for sizeof.
4479 2007-07-26 Maciej W. Rozycki <macro@linux-mips.org>
4481 * MAINTAINERS (Write After Approval): Add myself.
4483 2007-07-26 Maciej W. Rozycki <macro@mips.com>
4485 * Makefile.in (MAKEHTMLFLAGS): Also search the current directory
4488 2007-07-25 Maciej W. Rozycki <macro@mips.com>
4490 * Makefile.in (MAKEHTMLFLAGS): Remove "-glossary".
4492 2007-07-24 Michael Snyder <msnyder@access-company.com>
4494 * solib-svr4.c (svr4_fetch_objfile_link_map): Null pointer check of
4495 'buffer' must cover both branches that call strcmp (Coverity).
4497 * stack.c (print_frame_args): Check return value of lookup_symbol.
4499 * ax-gdb.c (find_field): Guard against null ptr.
4501 2007-07-24 Ulrich Weigand <uweigand@de.ibm.com>
4503 * regformats/reg-spu.dat: Fix order of npc, id registers.
4505 2007-07-24 Ulrich Weigand <uweigand@de.ibm.com>
4507 * target.c (memory_xfer_partial): Accesses to unmapped overlay
4508 sections should always go to the executable file.
4510 2004-07-20 Chris Dearman <chris@mips.com>
4512 * mips-tdep.c (heuristic_proc_start): Add more MIPS16 function
4513 prologue instructions.
4515 2007-07-20 Maciej W. Rozycki <macro@mips.com>
4517 * mips-tdep.c (mips_next_pc): Use is_mips16_addr() instead of
4520 2007-07-20 Chris Dearman <chris@mips.com>
4521 Maciej W. Rozycki <macro@mips.com>
4523 * mips-tdep.c (fetch_mips_16): Fix typos and reformat the
4526 2007-07-17 Pedro Alves <pedro_alves@portugalmail.pt>
4527 Daniel Jacobowitz <dan@codesourcery.com>
4529 * config/i386/cygwin.mt (TDEPFILES): Add solib-target.o.
4530 * coff-pe-read.c (read_pe_exported_syms): Delete verbose
4532 * NEWS: Mention gdbserver DLL support.
4534 2007-07-17 Daniel Jacobowitz <dan@codesourcery.com>
4536 * dwarf2read.c (dwarf_decode_lines): Detect address size mismatches.
4538 2007-07-16 H.J. Lu <hongjiu.lu@intel.com>
4540 * i386-linux-nat.c (fetch_regs): Work around gcc 3.4 alias
4543 2007-07-13 Kevin Buettner <kevinb@redhat.com>
4545 * mep-tdep.c (mep_analyze_prologue): Update comment for BRA
4548 2007-07-12 Kevin Buettner <kevinb@redhat.com>
4550 * mep-tdep.c (IS_BRA, BRA_DISP): New macros.
4551 (mep_analyze_prologue): Add case for BRA instruction.
4553 2007-07-12 Ulrich Weigand <uweigand@de.ibm.com>
4555 * solib-svr4.c (LM_ADDR_CHECK): Relax prelink recognition heuristic.
4557 2007-07-10 Nick Roberts <nickrob@snap.net.nz>
4559 * breakpoint.c: Include "top.h".
4560 (breakpoint_1): Don't set convenience variable $_ if server prefix
4562 (_initialize_breakpoint): Describe this behaviour in command help.
4564 2007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
4566 * solib-target.c (library_list_start_segment): Cast address to
4569 2007-07-06 Mark Kettenis <kettenis@gnu.org>
4571 * bsd-uthread.c (bsd_uthread_wait): Don't try to fetch thread IDs
4572 for terminated processes.
4574 2007-07-05 Michael Snyder <msnyder@access-company.com>
4576 * event-top.c (cli_command_loop): Prompt string can (and should)
4577 be freed after call to readline (Coverity). Also move local var
4578 declarations into block where they are used.
4580 * tui/tui-interp.c (tui_command_loop): Prompt string can (and
4581 should) be freed after call to readline (Coverity). Also move
4582 local var declarations into block where they are used.
4584 2007-07-03 Andreas Schwab <schwab@suse.de>
4586 * linux-nat.c (linux_nat_info_proc_cmd): Fix parsing of columns in
4589 2007-07-03 Paul Gilliam <pgilliam@us.ibm.com>
4590 Thiago Bauermann <bauerman@br.ibm.com>
4591 Joseph S. Myers <joseph@codesourcery.com>
4592 Daniel Jacobowitz <dan@codesourcery.com>
4594 * remote.c (remote_check_symbols): Use
4595 gdbarch_convert_from_func_ptr_addr.
4596 * infcall.c (find_function_addr): Handle function descriptors
4597 without debugging information.
4598 * ppc-linux-tdep.c (ppc_linux_convert_from_func_ptr_addr): Renamed
4599 from ppc64_linux_convert_from_func_ptr_addr. Handle -msecure-plt.
4600 (ppc_linux_init_abi): Always set convert_from_func_ptr_addr.
4601 * solib-svr4.c (solib_break_names): Remove "._dl_debug_state".
4602 (bfd_lookup_symbol): Do not take a SECT_FLAGS argument. Always
4603 allow SEC_CODE and SEC_DATA.
4604 (enable_break): Update calls. Pass current_target to solib_add.
4605 Use gdbarch_convert_from_func_ptr_addr.
4607 2007-07-03 Ilko Iliev <iliev@ronetix.at>
4608 Daniel Jacobowitz <dan@codesourcery.com>
4610 * symfile.c (print_transfer_performance): Avoid integer overflow.
4613 2007-07-03 Markus Deuling <deuling@de.ibm.com>
4615 * cp-namespace.c (lookup_symbol_file): Add block to
4616 lookup_symbol_global call.
4617 * Makefile.in (solist_h): Add dependency on symtab header.
4618 (symtab.o): Add dependency on solist header.
4619 * solib.c (solib_global_lookup): New function.
4620 * solib-svr4.c (scan_dyntag): Likewise.
4621 (elf_locate_base): Call helper routine scan_dyntag.
4622 (elf_lookup_lib_symbol): New function.
4623 (_initialize_svr4_solib): Add elf_lookup_lib_symbol to svr4_so_ops.
4624 * solist.h (symtab.h): New include.
4625 (struct target_so_ops): New member lookup_lib_global_symbol.
4626 (solib_global_lookup): New prototype.
4627 * symtab.c: New include solist.h.
4628 (lookup_objfile_from_block): New function.
4629 (lookup_global_symbol_from_objfile): New function.
4630 (basic_lookup_symbol_nonlocal): Add block to lookup_symbol_global call.
4631 (lookup_symbol_global): Call library-specific lookup procedure.
4632 * symtab.h (lookup_global_symbol_from_objfile): New prototype.
4634 * NEWS: Document framework.
4636 2007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
4638 * target-descriptions.c (tdesc_create_reg): Do not set reg->type
4641 * cli/cli-script.c (build_command_line): Update NULL check.
4643 2007-07-02 Michael Snyder <msnyder@access-company.com>
4645 * p-exp.y (yylex): Memory leak, 'uptokstart' must be freed (Coverity).
4647 2007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
4649 * Makefile.in (XMLFILES): Add library-list.dtd.
4650 (ALLDEPFILES): Add solib-target.o.
4651 (solib-target.o): New rule.
4652 * remote.c (PACKET_qXfer_libraries): New constant.
4653 (remote_protocol_features): Add qXfer:libraries:read.
4654 (remote_wait): Recognize library stop replies.
4655 (remote_async_wait): Likewise. Fix typo.
4656 (remote_xfer_partial): Handle TARGET_OBJECT_LIBRARIES.
4657 (init_remote_async_ops): Fix typo.
4658 (_initialize_remote): Register "set remote library-info-packet".
4659 * solib-som.c (som_current_sos): Set addr_low and addr_high.
4660 * solib-target.c: New file.
4661 * solib.c (solib_map_sections): Use addr_low and addr_high instead
4663 (info_sharedlibrary_command): Likewise.
4664 (solib_add_library, solib_remove_library): New.
4665 * solist.h (struct so_list): Replace textsection with addr_low and
4667 * target.h (enum target_object): Add TARGET_OBJECT_LIBRARIES.
4668 * NEWS: Describe new qXfer:libraries:read and shared library
4670 * features/library-list.dtd: New.
4672 2007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
4674 * infrun.c (inferior_ignoring_startup_exec_events): Delete.
4675 (start_remote): Use STOP_QUIETLY_REMOTE.
4676 (handle_inferior_event): Do not condition TARGET_WAITKIND_LOADED
4677 support on a SOLIB_ADD definition. Update breakpoints_inserted.
4678 Update to match shared library event breakpoint support. Only
4679 resume if appropriate. Handle STOP_QUIETLY_REMOTE.
4680 (normal_stop): Handle TARGET_WAITKIND_LOADED.
4681 * fork-child.c (startup_inferior): Do not set
4682 inferior_ignoring_startup_exec_events
4683 * inferior.h (inferior_ignoring_startup_exec_events): Delete
4685 (enum stop_kind): Improve documentation. Add STOP_QUIETLY_REMOTE.
4687 2007-07-02 Markus Deuling <deuling@de.ibm.com>
4689 * breakpoint.c (insert_bp_location): Remove dead code
4690 (DISABLE_UNSETTABLE_BREAK).
4691 (disable_breakpoints_in_shlibs)
4692 (disable_breakpoints_in_unloaded_shlib): Likewise (comment).
4694 2007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
4696 * breakpoint.c (reattach_breakpoints): Do not use remove_breakpoint.
4697 Call insert_bp_location.
4699 2007-07-01 H.J. Lu <hongjiu.lu@intel.com>
4701 * core-regset.c (fetch_core_registers): Work around gcc 3.4
4704 2007-07-01 Daniel Jacobowitz <dan@codesourcery.com>
4706 * minsyms.c (lookup_minimal_symbol_by_pc_section): Search fewer
4709 2007-07-01 Daniel Jacobowitz <dan@codesourcery.com>
4711 * top.c (gdb_readline_wrapper_line): Call rl_callback_handler_remove.
4712 (struct gdb_readline_wrapper_cleanup): Remove prompt_orig.
4713 (gdb_readline_wrapper_cleanup): Do not reset the prompt.
4714 (gdb_readline_wrapper): Do not save the prompt. Pass our prompt
4715 to display_gdb_prompt.
4717 2007-07-01 Daniel Jacobowitz <dan@codesourcery.com>
4720 * target.c (memory_xfer_partial): Do not continue past targets with
4723 2007-06-30 Andreas Schwab <schwab@suse.de>
4725 * m68k-tdep.c (m68k_ps_type): New.
4726 (m68k_init_types): New.
4727 (m68k_register_type): Use m68k_ps_type for PS register.
4728 (_initialize_m68k_tdep): Call m68k_init_types.
4730 * m68k-tdep.c (m68k_gdbarch_init): Don't infer coldfire flavour
4731 from the generic m68k arch.
4733 2007-06-28 Michael Snyder <msnyder@access-company.com>
4735 * m2-typeprint.c (m2_print_type): Move pointer ref after null test
4738 * linux-thread-db.c (thread_db_get_thread_local_address): Add
4739 gdb_assert before using return value of find_thread_pid (Coverity).
4741 * source.c (unset_substitute_path_command): Plug leak (Coverity).
4743 * cli/cli-script.c (build_command_line): Add null pointer guard
4746 2007-06-27 Daniel Jacobowitz <dan@codesourcery.com>
4748 * linux-thread-db.c (thread_db_attach): Delete.
4749 (thread_db_detach): Typo fix. Call target_mourn_inferior
4750 instead of fixing up proc_handle.
4751 (have_threads_callback, have_threads): New functions.
4752 (thread_db_wait): Remove dead proc_handle.pid check. Only
4753 translate PTIDs if we have registered threads. Check for new
4754 threads if we have none.
4755 (thread_db_create_inferior, thread_db_post_startup_inferior): Delete.
4756 (find_new_threads_callback): Only enable event reporting if TID == 0.
4757 (same_ptid_callback): New.
4758 (thread_db_get_thread_local_address): Check for new threads.
4759 (init_thread_db_ops): Don't set to_attach, to_create_inferior,
4760 or to_post_startup_inferior.
4762 2007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
4764 * infrun.c (adjust_pc_after_break): Do not assume software single-step
4765 is always active if SOFTWARE_SINGLE_STEP_P is true.
4766 (resume): Use gdbarch_software_single_step[_p] instead of
4767 SOFTWARE_SINGLE_STEP[_P].
4768 (handle_inferior_event): Do not check for SOFTWARE_SINGLE_STEP_P.
4770 * gdbarch.sh (software_single_step): Remove target macro.
4771 * gdbarch.h, gdbarch.c: Regenerate.
4773 2007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
4775 * gdbarch.sh (gdbarch_swap_ftype, deprecated_register_gdbarch_swap,
4776 DEPRECATED_REGISTER_GDBARCH_SWAP): Remove.
4777 (struct gdbarch_swap, struct gdbarch_swap_registration,
4778 struct gdbarch_swap_registry, gdbarch_swap_registry,
4779 current_gdbarch_swap_init_hack, current_gdbarch_swap_out_hack,
4780 current_gdbarch_swap_in_hack): Remove.
4781 (find_arch_by_info): Do not call current_gdbarch_swap_init_hack.
4782 (gdbarch_find_by_info): Do not call current_gdbarch_swap_in_hack
4783 and current_gdbarch_swap_out_hack, update current_gdbarch directly.
4784 (deprecated_current_gdbarch_select_hack): Likewise.
4785 * gdbarch.h, gdbarch.c: Regenerate.
4787 2007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
4789 * infrun.c (clear_proceed_status): Clean up stop_registers.
4790 (normal_stop): Allocate regcache for stop_registers.
4791 (struct inferior_status): Remove stop_registers member.
4792 (save_inferior_status): Do not save stop_registers.
4793 (restore_inferior_status): Do not restore stop_registers.
4794 (discard_inferior_status): Do not discard stop_registers.
4795 (build_infrun): Remove.
4796 (_initialize_infrun): Do not swap stop_registers.
4798 2007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
4800 * remote.c (remote_address_masked): If remote_address_size is zero,
4801 default to target address size.
4802 (build_remote_gdbarch_data): Remove.
4803 (_initialize_remote): Do not swap remote_address_size.
4805 2007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
4807 * gdbtypes.h (builtin_type_true_char, builtin_type_void,
4808 builtin_type_char, builtin_type_short, builtin_type_int,
4809 builtin_type_long, builtin_type_signed_char,
4810 builtin_type_unsigned_char, builtin_type_unsigned_short,
4811 builtin_type_unsigned_int, builtin_type_unsigned_long,
4812 builtin_type_float, builtin_type_double, builtin_type_long_double,
4813 builtin_type_complex, builtin_type_double_complex, builtin_type_string,
4814 builtin_type_bool, builtin_type_long_long,
4815 builtin_type_unsigned_long_long, builtin_type_void_data_ptr,
4816 builtin_type_void_func_ptr, builtin_type_CORE_ADDR): Replace global
4817 variable declaration with compatibility macro.
4818 * gdbtypes.c (builtin_type_true_char, builtin_type_void,
4819 builtin_type_char, builtin_type_short, builtin_type_int,
4820 builtin_type_long, builtin_type_signed_char,
4821 builtin_type_unsigned_char, builtin_type_unsigned_short,
4822 builtin_type_unsigned_int, builtin_type_unsigned_long,
4823 builtin_type_float, builtin_type_double, builtin_type_long_double,
4824 builtin_type_complex, builtin_type_double_complex, builtin_type_string,
4825 builtin_type_bool, builtin_type_long_long,
4826 builtin_type_unsigned_long_long, builtin_type_void_data_ptr,
4827 builtin_type_void_func_ptr, builtin_type_CORE_ADDR): Remove.
4828 (build_gdbtypes): Remove.
4829 (_initialize_gdbtypes): Do not call build_gdbtypes, move installing
4830 opaque-type-resolution command here. Do not call
4831 deprecated_register_gdbarch_swap.
4833 2007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
4835 * gdbtypes.h (struct builtin_type): New members nodebug_text_symbol,
4836 nodebug_data_symbol, nodebug_unknown_symbol, and nodebug_tls_symbol.
4837 * gdbtypes.c (gdbtypes_post_init): Initialize nodebug_ default types.
4839 * parse.c (msym_text_symbol_type, msym_data_symbol_type): Remove.
4840 (msym_unknown_symbol_type, msym_tls_symbol_type): Remove.
4841 (write_exp_msymbol): Use builtin nodebug_ types instead of them.
4842 (build_parse): Remove.
4843 (_initialize_parse): Do not call build_parse. Do not register
4844 msym_ types for gdbarch-swapping.
4846 * dwarf2read.c (new_symbol): Use default nodebug_data_symbol type
4847 instead of creating private type.
4849 * xcoffread.c (func_symbol_type, var_symbol_type): Remove.
4850 (_initialize_xcoffread): Do not initialized them.
4851 (process_xcoff_symbol): Use builtin nodebug_ types instead of them.
4853 * mdebugread.c (nodebug_func_symbol_type): Remove.
4854 (nodebug_var_symbol_type): Remove.
4855 (_initialize_mdebugread): Do not initialize them.
4856 (parse_symbol): Use builtin nodebug_ type instead of them.
4857 (parse_procedure): Likewise.
4859 2007-06-21 Chris Dearman <chris@mips.com>
4861 * printcmd.c (do_one_display): If display/i, start with an initial
4862 line feed to avoid bad layout if there is a branch delay slot.
4864 2007-06-21 Nigel Stephens <nigel@mips.com>
4865 Maciej W. Rozycki <macro@mips.com>
4867 * disasm.c (gdb_print_insn): Return the number of branch delay
4868 slot instructions too.
4869 * disasm.h (gdb_print_insn): Update prototype.
4870 * printcmd.c (branch_delay_insns): New variable to record the
4871 number of delay slot instructions after disassembling a branch.
4872 (print_formatted): Record the number of branch delay slot
4874 (do_examine): When disassembling, if the last instruction
4875 disassembled has any branch delay slots, then bump the count so
4876 that they get disassembled too.
4877 * tui/tui-disasm.c (tui_disassemble): Update the call to
4879 * NEWS: Document the new behaviour.
4881 2007-06-21 Andreas Schwab <schwab@suse.de>
4883 * regcache.c (write_pc_pid): Restore missing else.
4885 2007-06-20 Ulrich Weigand <uweigand@de.ibm.com>
4887 * regcache.c (regcache_print): Use get_current_regcache ()
4888 instead of current_regcache.
4890 2007-06-20 H.J. Lu <hongjiu.lu@intel.com>
4893 * gcore.c (gcore_command): Use bfd_make_section_anyway_with_flags
4894 instead of bfd_make_section_anyway.
4895 (gcore_create_callback): Likewise. Also set SEC_NEVER_LOAD
4896 when clearing SEC_LOAD.
4898 2007-06-19 Joseph Myers <joseph@codesourcery.com>
4900 * arm-tdep.c (arm_push_dummy_call): Correct padding of partial
4901 registers for big-endian.
4903 2007-06-19 Markus Deuling <deuling@de.ibm.com>
4905 * gdbarch.sh (TARGET_PRINT_INSN): Replace by gdbarch_print_insn.
4906 * disasm.c (dump_insns, gdb_print_insn): Likewise.
4907 * gdbarch.c, gdbarch.h: Regenerate.
4909 2007-06-19 Markus Deuling <deuling@de.ibm.com>
4911 * gdbarch.sh (BELIEVE_PCC_PROMOTION): Replace by
4912 gdbarch_believe_pcc_promotion.
4913 * stabsread.c (define_symbol): Likewise.
4914 Remove unnecessary definition.
4915 * coffread.c (process_coff_symbol): Remove unnecessary code.
4916 * gdbarch.c, gdbarch.h: Regenerate.
4918 2007-06-19 Daniel Jacobowitz <dan@codesourcery.com>
4920 * configure.ac: Do not use ${objdir}.
4921 * configure: Regenerated.
4923 2007-06-18 Ulrich Weigand <uweigand@de.ibm.com>
4925 * gdbarch.sh (deprecated_register_size): Remove.
4926 * gdbarch.h, gdbarch.c: Regenerate.
4928 * arm-tdep.c (arm_push_dummy_call): Replace DEPRECATED_REGISTER_SIZE
4929 by INT_REGISTER_SIZE.
4930 (thumb_get_next_pc, arm_return_in_memory): Likewise.
4931 (arm_gdbarch_init): Do not call set_gdbarch_deprecated_register_size.
4932 * ia64-tdep.c (ia64_gdbarch_init): Do not call
4933 set_gdbarch_deprecated_register_size.
4935 2007-06-18 Markus Deuling <deuling@de.ibm.com>
4937 * gdbarch.sh (DEPRECATED_FP_REGNUM): Replace by
4938 gdbarch_deprecated_fp_regnum.
4939 * std-regs.c (value_of_builtin_frame_fp_reg): Likewise.
4940 * remote-mips.c (mips_wait, mips_fetch_registers): Likewise.
4941 * arch-utils.c (legacy_virtual_frame_pointer): Likewise.
4942 * arch-utils.h (gdbarch_virtual_frame_pointer_ftype): Likewise
4944 * gdbarch.c, gdbarch.h: Regenerate.
4946 2007-06-18 Markus Deuling <deuling@de.ibm.com>
4948 * gdbarch.sh (EXTRACT_RETURN_VALUE): Replace with
4949 gdbarch_extract_return_value.
4950 * value.c (generic_use_struct_convention): Likewise (comment).
4951 * ia64-tdep.c (ia64_use_struct_convention): Likewise (comment).
4952 * arch-utils.c (legacy_return_value): Likewise.
4953 * arch-utils.h (legacy_return_value): Likewise (comment).
4954 * gdbarch.sh (STORE_RETURN_VALUE): Replace by
4955 gdbarch_store_return_value.
4956 * stack.c (return_command): Likewise (comment).
4957 * arch-utils.h (legacy_return_value): Likewise (comment).
4958 * arch-utils.c (legacy_return_value): Likewise.
4959 * gdbarch.c, gdbarch.h: Regenerate.
4961 2007-06-18 Markus Deuling <deuling@de.ibm.com>
4963 * gdbarch.sh (DEPRECATED_USE_STRUCT_CONVENTION): Replace by
4964 gdbarch_deprecated_use_struct_convention.
4965 * arch-utils.c (legacy_return_value): Likewise.
4966 * gdbarch.c, gdbarch.h: Regenerate.
4968 2007-06-18 Markus Deuling <deuling@de.ibm.com>
4970 * gdbarch.sh (DEPRECATED_FUNCTION_START_OFFSET): Replace by
4971 gdbarch_deprecated_function_start_offset.
4972 * symtab.c (find_function_start_sal)skip_prologue_using_sal): Likewise.
4973 * linespec.c (minsym_found): Likewise.
4974 * infrun.c (handle_inferior_event): Likewise.
4975 * infcall.c (find_function_addr): Likewise.
4976 * cli/cli-cmds.c (disassemble_command): Likewise.
4977 * gdbarch.c, gdbarch.h: Regenerate.
4979 2007-06-18 Markus Deuling <deuling@de.ibm.com>
4981 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Replace by
4982 gdbarch_deprecated_reg_struct_has_addr.
4983 * infcall.c (call_function_by_hand): Likewise.
4984 (DEPRECATED_REG_STRUCT_HAS_ADDR_P): Replace by
4985 * gdbarch_deprecated_reg_struct_has_addr_p.
4986 * infcall.c (call_function_by_hand): Likewise.
4987 * gdbarch.c, gdbarch.h: Regenerate.
4989 2007-06-18 Markus Deuling <deuling@de.ibm.com>
4991 * gdbarch.sh (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
4992 * sh-tdep.c (sh_extract_struct_value_address): Remove.
4993 (sh_gdbarch_init): Remove
4994 set_gdbarch_deprecated_extract_struct_value_address.
4995 * sh64-tdep.c (sh64_extract_struct_value_address): Remove.
4996 (sh64_gdbarch_init): Remove
4997 set_gdbarch_deprecated_extract_struct_value_address.
4998 * ia64-tdep.c (ia64_extract_struct_value_address): Remove.
4999 (ia64_gdbarch_init): Remove
5000 set_gdbarch_deprecated_extract_struct_value_address.
5001 * frv-tdep.c (frv_extract_struct_value_address): Remove.
5002 (frv_gdbarch_init): Remove
5003 set_gdbarch_deprecated_extract_struct_value_address.
5004 * gdbarch.c, gdbarch.h: Regenerate.
5006 2007-06-18 Markus Deuling <deuling@de.ibm.com>
5008 * gdbarch.sh (SP_REGNUM): Replace by gdbarch_sp_regnum.
5009 * v850-tdep.c (v850_unwind_sp): Likewise.
5010 * std-regs.c (value_of_builtin_frame_sp_reg): Likewise.
5011 * stack.c (frame_info): Likewise.
5012 * stabsread.c (define_symbol): Likewise.
5013 * sh-tdep.c (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu)
5014 (sh_dwarf2_frame_init_reg, sh_frame_cache, sh_frame_prev_register)
5015 (sh_unwind_sp): Likewise.
5016 * sh64-tdep.c (sh64_push_dummy_call, sh64_frame_cache)
5017 (sh64_frame_prev_register, sh64_unwind_sp): Likewise.
5018 * rs6000-tdep.c (rs6000_push_dummy_call, rs6000_unwind_dummy_id)
5019 (rs6000_frame_cache): Likewise.
5020 * rs6000-nat.c (store_register): Likewise.
5021 * remote-mips.c (mips_wait): Likewise.
5022 * procfs.c (procfs_fetch_registers, procfs_store_registers): Likewise.
5023 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call)
5024 (ppc64_sysv_abi_push_dummy_call): Likewise.
5025 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_cache): Likewise.
5026 * ppcobsd-nat.c (ppcobsd_supply_pcb): Likewise.
5027 * ppcnbsd-tdep.c (ppcnbsd_sigtramp_cache_init): Likewise.
5028 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache): Likewise.
5029 * m32r-rom.c (m32r_supply_register): Likewise.
5030 * frame.c (frame_sp_unwind): Likewise.
5031 * mips-tdep.c (mips_insn16_frame_cache)
5032 (mips_insn32_frame_cache): Likewise (comment).
5033 * m68klinux-nat.c (supply_gregset): Likewise.
5034 * m68k-tdep.c (m68k_get_longjmp_target): Likewise.
5035 * ia64-tdep.c (ia64_frame_prev_register): Likewise.
5036 * i386-tdep.c (i386_get_longjmp_target): Likewise.
5037 * dwarf2-frame.c (dwarf2_frame_default_init_reg): Likewise.
5038 * cris-tdep.c (cris_regnums, cris_sigcontext_addr)
5039 (cris_sigtramp_frame_unwind_cache, cris_push_dummy_call)
5040 (cris_scan_prologue, crisv32_scan_prologue, cris_unwind_sp)
5041 (cris_register_type, crisv32_register_type)
5042 (cris_dwarf2_frame_init_reg): Likewise.
5043 * arch-utils.c (legacy_virtual_frame_pointer): Likewise.
5044 * amd64-tdep.c (amd64_frame_prev_register): Likewise.
5045 * amd64-linux-tdep.c (amd64_linux_sigcontext_addr): Likewise.
5046 * libunwind-frame.c (libunwind_frame_cache): Likewise.
5048 * gdbarch.sh (PC_REGNUM): Replace by gdbarch_pc_regnum.
5049 * regcache.c (read_pc_pid, generic_target_write_pc): Likewise.
5050 * xtensa-tdep.c (xtensa_register_type, xtensa_supply_gregset)
5051 (xtensa_unwind_pc, xtensa_frame_cache, xtensa_frame_prev_register)
5052 (xtensa_extract_return_value, xtensa_store_return_value): Likewise.
5053 * v850-tdep.c (v850_unwind_pc): Likewise.
5054 * stack.c (frame_info): Likewise.
5055 * sh-tdep.c (sh_generic_show_regs, sh3_show_regs, sh2e_show_regs)
5056 (sh2a_show_regs, sh2a_nofpu_show_regs, sh3e_show_regs)
5057 (sh3_dsp_show_regs, sh4_show_regs, sh4_nofpu_show_regs)
5058 (sh_dwarf2_frame_init_reg, sh_frame_prev_register, sh_unwind_pc)
5059 (sh_dsp_show_regs): Likewise.
5060 * shnbsd-tdep.c (shnbsd_supply_gregset)
5061 (shnbsd_collect_gregset): Likewise.
5062 * shnbsd-nat.c (GETREGS_SUPPLIES): Likewise.
5063 * sh64-tdep.c (sh64_compact_reg_base_num, sh64_show_media_regs)
5064 (sh64_frame_prev_register, sh64_unwind_pc): Likewise.
5065 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset)
5066 (6000_register_reggroup_p, rs6000_unwind_pc)
5067 (rs6000_frame_cache): Likewise.
5068 * rs6000-nat.c (regmap, rs6000_fetch_inferior_registers)
5069 (rs6000_store_inferior_registers): Likewise.
5070 * remote-mips.c (mips_wait, mips_load): Likewise.
5071 * procfs.c (procfs_fetch_registers, procfs_store_registers): Likewise.
5072 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_cache): Likewise.
5073 * ppcobsd-nat.c (ppcobsd_supply_pcb): Likewise.
5074 * ppcnbsd-tdep.c (ppcnbsd_sigtramp_cache_init): Likewise.
5075 * ppcnbsd-nat.c (getregs_supplies, ppcnbsd_supply_pcb): Likewise.
5076 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache): Likewise.
5077 * ppc-linux-nat.c (ppc_register_u_addr, fetch_ppc_registers)
5078 (store_ppc_registers, fill_gregset): Likewise.
5079 * mips-tdep.c (mips_stub_frame_cache, mips_gdbarch_init): Likewise.
5080 * mipsnbsd-tdep.c (mipsnbsd_supply_reg, mipsnbsd_fill_reg): Likewise.
5081 * mipsnbsd-nat.c (getregs_supplies): Likewise.
5082 * m68k-tdep.c (m68k_register_type, m68k_unwind_pc): Likewise.
5083 * m68klinux-nat.c (supply_gregset): Likewise.
5084 * irix5-nat.c (fill_gregset): Likewise.
5085 * i386-tdep.c (i386_unwind_pc): Likewise.
5086 * i386-linux-nat.c (i386_linux_resume): Likewise.
5087 * frame.c (get_prev_frame_1): Likewise.
5088 * dwarf2-frame.c (dwarf2_frame_default_init_reg): Likewise.
5089 * dbug-rom.c (dbug_supply_register): Likewise.
5090 * cris-tdep.c (cris_sigtramp_frame_unwind_cache, cris_scan_prologue)
5091 (crisv32_scan_prologue, cris_unwind_pc, cris_register_size)
5092 (cris_register_type, crisv32_register_type, crisv32_register_name)
5093 (cris_dwarf2_frame_init_reg, find_step_target)
5094 (cris_software_single_step, cris_supply_gregset)
5095 (cris_regnums): Likewise.
5096 * alpha-linux-nat.c (alpha_linux_register_u_offset): Likewise.
5097 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
5098 (fill_sprs64, fill_sprs32, store_regs_user_thread): Likewise.
5099 * std-regs.c (value_of_builtin_frame_pc_reg): Likewise.
5100 * mips-linux-tdep.c (mips_linux_write_pc): Likewise.
5102 * gdbarch.sh (PS_REGNUM): Replace by gdbarch_ps_regnum.
5103 * dbug-rom.c (dbug_supply_register): Likewise.
5104 * xtensa-tdep.c (xtensa_supply_gregset, xtensa_frame_cache)
5105 (xtensa_frame_prev_register, xtensa_push_dummy_call): Likewise.
5106 * win32-nat.c (win32_resume): Likewise.
5107 * std-regs.c (value_of_builtin_frame_ps_reg): Likewise.
5108 * m68k-tdep.c (m68k_register_type): Likewise.
5109 * m68klinux-nat.c (supply_gregset): Likewise.
5111 * gdbarch.sh (FP0_REGNUM): Replace by gdbarch_fp0_regnum.
5112 * sh-tdep.c (sh_extract_return_value_fpu, sh_store_return_value_fpu)
5113 (sh2e_show_regs, sh2a_show_regs, sh3e_show_regs, sh4_show_regs)
5114 (sh_sh2a_register_type, sh_sh3e_register_type, sh_sh4_register_type)
5115 (fv_reg_base_num, dr_reg_base_num): Likewise.
5116 * sh64-tdep.c (sh64_fv_reg_base_num, sh64_dr_reg_base_num)
5117 (sh64_fpp_reg_base_num, sh64_compact_reg_base_num, sh64_push_dummy_call)
5118 (sh64_extract_return_value, sh64_store_return_value)
5119 (sh64_show_media_regs, sh64_show_compact_regs, sh64_register_type)
5120 (sh64_do_fp_register, sh64_media_print_registers_info): Likewise.
5121 * procfs.c (procfs_fetch_registers, procfs_store_registers)
5122 (invalidate_cache): Likewise.
5123 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache): Likewise.
5124 * mipsnbsd-tdep.c (mipsnbsd_supply_fpreg)
5125 (mipsnbsd_fill_fpreg): Likewise.
5126 * mipsnbsd-nat.c (mipsnbsd_fetch_inferior_registers)
5127 (mipsnbsd_store_inferior_registers): Likewise.
5128 * mips-linux-tdep.c (mips_supply_fpregset, mips_fill_fpregset)
5129 (mips64_supply_fpregset, mips64_fill_fpregset): Likewise.
5130 * mips-linux-nat.c (mips64_linux_register_addr): Likewise.
5131 * m68k-tdep.c (m68k_register_type, m68k_convert_register_p): Likewise.
5132 * m68klinux-nat.c (getfpregs_supplies, supply_fpregset)
5133 (fill_fpregset): Likewise.
5134 * irix5-nat.c (supply_fpregset, fill_fpregset): Likewise.
5135 * i386-tdep.h (struct_return): Likewise (comment).
5136 * i386-nto-tdep.c (i386nto_register_area): Likewise.
5137 * go32-nat.c (fetch_register, go32_fetch_registers, store_register)
5138 (go32_store_registers): Likewise.
5139 * alpha-tdep.c (alpha_next_pc): Likewise.
5140 * alpha-linux-nat.c (alpha_linux_register_u_offset): Likewise.
5141 * alphabsd-nat.c (alphabsd_fetch_inferior_registers)
5142 (alphabsd_store_inferior_registers): Likewise.
5143 * core-regset.c (fetch_core_registers): Likewise.
5144 * i386v4-nat.c (supply_fpregset, fill_fpregset): Likewise.
5146 * gdbarch.c, gdbarch.h: Regenerate.
5148 2007-06-18 Daniel Jacobowitz <dan@codesourcery.com>
5150 * coffread.c (coff_sym_fns): Add default_symfile_segments.
5151 * dbxread.c (start_psymtab): Check HAVE_ELF.
5152 (aout_sym_fns): Likewise.
5153 * elfread.c (elf_symfile_segments): New.
5154 (elf_sym_fns): Add elf_symfile_segments.
5155 * mipsread.c (ecoff_sym_fns): Add default_symfile_segments.
5156 * remote.c (get_offsets): Use symfile_map_offsets_to_segments.
5157 Skip if there is no symfile_objfile. Handle TextSeg and DataSeg.
5158 * somread.c (som_sym_fns): Use default_symfile_segments.
5159 * symfile.c (find_sym_fns): Take a BFD and return the sym_fns.
5160 (init_objfile_sect_indices): Call symfile_find_segment_sections.
5161 (default_symfile_segments): New function.
5162 (syms_from_objfile): Update call to find_sym_fns.
5163 (symfile_get_segment_data, free_symfile_segment_data): New.
5164 (symfile_map_offsets_to_segments): New.
5165 (symfile_find_segment_sections): New.
5166 * symfile.h (struct symfile_segment_data): New.
5167 (struct sym_fns): Add sym_segments.
5168 (default_symfile_segments, symfile_get_segment_data)
5169 (free_symfile_segment_data): New prototypes.
5170 (symfile_map_offsets_to_segments): Likewise.
5171 * xcoffread.c (xcoff_sym_fns): Add default_symfile_segments.
5172 * Makefile.in (COMMON_OBS): Remove elfread.o.
5173 (elf_internal_h): New.
5174 (elfread.o): Update.
5175 * configure.ac: Add elfread.o to COMMON_OBS if bfd/elf.o was
5177 * config.in, configure: Regenerated.
5178 * NEWS: Mention qOffsets changes.
5180 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
5182 * gdbtypes.h (builtin_type_m2_char, builtin_type_m2_int,
5183 builtin_type_m2_card, builtin_type_m2_real, builtin_type_m2_bool):
5184 Replace global variable declaration with compatibility macro.
5185 (struct builtin_m2_type): New data type.
5186 (builtin_m2_type): Add prototype.
5187 * m2-lang.c (builtin_type_m2_char, builtin_type_m2_int,
5188 builtin_type_m2_card, builtin_type_m2_real, builtin_type_m2_bool):
5189 Remove global variables.
5190 (m2_language_arch_info): Use builtin_m2_type instead of variables.
5191 (build_m2_types): New function.
5192 (m2_type_data): New variable.
5193 (builtin_m2_type): New function.
5194 (_initialize_m2_language): Do not build data types. Register
5195 m2_type_data per-gdbarch data.
5197 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
5199 * gdbtypes.h (builtin_type_f_character, builtin_type_f_logical,
5200 builtin_type_f_logical_s1, builtin_type_f_logical_s2,
5201 builtin_type_f_integer, builtin_type_f_integer_s2, builtin_type_f_real,
5202 builtin_type_f_real_s8, builtin_type_f_real_s16,
5203 builtin_type_f_complex_s8, builtin_type_f_complex_s16,
5204 builtin_type_f_complex_s32, builtin_type_f_void): Replace global
5205 variable declaration with compatibility macro.
5206 (struct builtin_f_type): New data type.
5207 (builtin_f_type): Add prototype.
5208 * f-lang.c (builtin_type_f_character, builtin_type_f_logical,
5209 builtin_type_f_logical_s1, builtin_type_f_logical_s2,
5210 builtin_type_f_integer, builtin_type_f_integer_s2, builtin_type_f_real,
5211 builtin_type_f_real_s8, builtin_type_f_real_s16,
5212 builtin_type_f_complex_s8, builtin_type_f_complex_s16,
5213 builtin_type_f_complex_s32, builtin_type_f_void): Remove variables.
5214 (f_language_arch_info): Use builtin_f_type instead of variables.
5215 (build_fortran_types): Build builtin_f_type structure instead of
5216 setting global type variables.
5217 (f_type_data): New variable.
5218 (builtin_f_type): New function.
5219 (_initialize_f_language): Do not call build_fortran_types. Do not
5220 swap global type variables. Register f_type_data per-gdbarch data.
5222 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
5224 * f-lang.c (_initialize_f_language): Do not initialize or
5225 swap builtin_type_string.
5227 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
5229 * std-regs.c (builtin_type_frame_reg, build_builtin_type_frame_reg,
5230 value_of_builtin_frame_reg): Remove.
5231 (_initialize_frame_reg): Do not swap builtin_type_frame_reg. Remove
5232 inactive call to value_of_builtin_frame_reg.
5234 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
5236 * gdbarch.sh (bfd_vma_bit): Remove.
5237 * gdbarch.c, gdbarch.h: Regenerate.
5239 * gdbtypes.h (builtin_bfd_vma_type): Remove.
5240 * gdbtypes.h (builtin_bfd_vma_type): Remove.
5241 (build_gdbtypes): Do not initialize it.
5242 (_initialize_gdbtypes): Do not swap it.
5244 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
5246 * gdbtypes.c (builtin_type_v2_double, builtin_type_v4_float,
5247 builtin_type_v2_int64, builtin_type_v4_int32, builtin_type_v8_int16,
5248 builtin_type_v16_int8, builtin_type_v2_float, builtin_type_v2_int32,
5249 builtin_type_v4_int16, builtin_type_v8_int8, builtin_type_v4sf,
5250 builtin_type_v4si, builtin_type_v16qi, builtin_type_v8qi,
5251 builtin_type_v8hi, builtin_type_v4hi, builtin_type_v2si,
5252 builtin_type_vec64, builtin_type_vec128): Remove.
5253 (init_simd_type): Remove.
5254 (init_vector_type): Make global.
5255 (build_builtin_type_vec64, build_builtin_type_vec128): Remove.
5256 (build_gdbtypes): Do not build vector types.
5257 (_initialize_gdbtypes): Do not swap vector types.
5258 * gdbtypes.h (builtin_type_v2_double, builtin_type_v4_float,
5259 builtin_type_v2_int64, builtin_type_v4_int32, builtin_type_v8_int16,
5260 builtin_type_v16_int8, builtin_type_v2_float, builtin_type_v2_int32,
5261 builtin_type_v4_int16, builtin_type_v8_int8, builtin_type_v4sf,
5262 builtin_type_v4si, builtin_type_v16qi, builtin_type_v8qi,
5263 builtin_type_v8hi, builtin_type_v4hi, builtin_type_v2si,
5264 builtin_type_vec64, builtin_type_vec128): Remove declarations.
5265 (init_vector_type): Add prototype.
5267 * i386-tdep.h (struct gdbarch_tdep): Add i386_mmx_type and
5268 i386_sse_type members.
5269 (i386_mmx_type, i386_sse_type): Change from variables to functions.
5270 * i386-tdep.c (i386_mmx_type, i386_sse_type): Remove variables.
5271 (i386_init_types): Do not build vector types.
5272 (i386_mmx_type, i386_sse_type): New functions.
5273 (i386_register_type): Call them instead of using global variables.
5274 (i386_gdbarch_init): Use XCALLOC to allocate tdep structure.
5275 * amd64-tdep.c (amd64_register_type): Call i386_sse_type instead
5276 of using global variable.
5278 * rs6000-tdep.h (struct gdbarch_tdep): Add ppc_builtin_type_vec64
5279 and ppc_builtin_type_vec128 members.
5280 * rs6000-tdep.c (rs6000_builtin_type_vec64): New function.
5281 (rs6000_builtin_type_vec128): Likewise.
5282 (rs6000_register_type): Call them instead of using builtin_type_vec64
5283 and builtin_type_vec128.
5284 (rs6000_gdbarch_init): Use XCALLOC to allocate tdep structure.
5286 * spu-tdep.c (struct gdbarch_tdep): New data type.
5287 (spu_builtin_type_vec128): Remove variable.
5288 (spu_builtin_type_vec128): New function.
5289 (spu_register_type): Call it instead of using global variable.
5290 (spu_gdbarch_init): Allocate tdep structure.
5291 (spu_init_vector_type): Remove function.
5292 (_initialize_spu_tdep): Do not call it.
5294 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
5296 * amd64-tdep.c (struct amd64_register_info): Remove.
5297 (amd64_register_info): Remove.
5298 (amd64_register_names): New static variable.
5299 (AMD64_NUM_REGS): Use amd64_register_names instead of
5300 amd64_register_info.
5301 (amd64_register_name): Likewise.
5302 (amd64_register_type): Do not refer to amd64_register_info.
5304 * s390-tdep.c (struct s390_register_info): Remove.
5305 (s390_register_info): Remove.
5306 (s390_register_name): Do not refer to s390_register_info.
5307 (s390_register_type): Likewise.
5309 * sparc64-tdep.c (struct sparc64_register_info): Remove.
5310 (sparc64_register_info, sparc64_pseudo_register_info): Remove.
5311 (sparc64_register_names, sparc64_pseudo_register_names): New.
5312 (SPARC64_NUM_REGS, SPARC64_NUM_PSEUDO_REGS): Use
5313 sparc64_register_names and sparc64_pseudo_register_names instead of
5314 sparc64_register_info and sparc64_pseudo_register_info.
5315 (sparc64_register_name): Likewise.
5316 (sparc64_register_type): Do not refer to sparc64_register_info
5317 and sparc64_pseudo_register_info.
5319 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
5321 * c-lang.c (cplus_builtin_types): Remove.
5322 (enum cplus_primitive_types): New data type.
5323 (cplus_language_arch_info): New function.
5324 (cplus_language_defn): Set la_language_arch_info member. Do not set
5325 la_builtin_type_vector and string_char_type members.
5327 * f-lang.c (f_builtin_types): Remove.
5328 (enum f_primitive_types): New data type.
5329 (f_language_arch_info): New function.
5330 (f_language_de): Set la_language_arch_info member. Do not set
5331 la_builtin_type_vector and string_char_type members.
5333 * m2-lang.c (m2_builtin_types): Remove.
5334 (enum m2_primitive_types): New data type.
5335 (m2_language_arch_info): New function.
5336 (m2_language_defn): Set la_language_arch_info member. Do not set
5337 la_builtin_type_vector and string_char_type members.
5339 * objc-lang.c (objc_builtin_types): Remove.
5340 (objc_language): Set la_language_arch_info member. Do not set
5341 la_builtin_type_vector and string_char_type members.
5343 * p-lang.c (pascal_builtin_types): Remove.
5344 (enum pascal_primitive_types): New data type.
5345 (pascal_language_arch_info): New function.
5346 (pascal_language_defn): Set la_language_arch_info member. Do not set
5347 la_builtin_type_vector and string_char_type members.
5349 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
5351 * regcache.c (struct regcache): Add ptid_t member.
5352 (regcache_xmalloc): Initialize it.
5353 (regcache_cpy_no_passthrough): Do not refer to current_regcache.
5354 (regcache_dup): Likewise.
5355 (regcache_dup_no_passthrough): Likewise.
5356 (current_regcache): Make static.
5357 (registers_ptid): Remove variable.
5358 (get_thread_regcache): New function.
5359 (get_current_regcache): New function.
5360 (registers_changed): Implement by freeing current regcache.
5361 (regcache_raw_read): Do not refer to current_regcache. Set
5362 inferior_ptid to regcache->ptid while calling target routines.
5363 (regcache_raw_write): Likewise.
5364 (regcache_raw_supply): Do not refer to current_regcache.
5365 (read_pc_pid): Use thread regcache. Do not modify inferior_ptid.
5366 (write_pc_pid): Likewise.
5367 (build_regcache): Remove.
5368 (_initialize_regcache): Do not call DEPRECATED_REGISTER_GDBARCH_SWAP
5369 or deprecated_register_gdbarch_swap. Do not initialize
5371 * regcache.h (get_current_regcache): Add prototype.
5372 (get_thread_regcache): Likewise.
5373 (current_regcache): Remove declaration.
5375 * corelow.c (core_open): Replace current_regcache by
5376 get_current_regcache ().
5377 * frame.c (frame_pop): Likewise.
5378 (put_frame_register): Likewise.
5379 (get_current_frame, create_new_frame): Likewise.
5380 * mi/mi-main.c (mi_cmd_data_write_register_values): Likewise.
5381 * stack.c (return_command): Likewise.
5382 * infcall.c (call_function_by_hand): Likewise.
5383 * infrun.c (resume): Likewise.
5384 (save_inferior_status, restore_inferior_status): Likewise.
5385 * linux-fork.c (fork_load_infrun_state): Likewise.
5386 (fork_save_infrun_state): Likewise.
5387 * win32-nat.c (win32_resume): Likewise.
5388 * i386fbsd-nat.c (i386fbsd_resume): Likewise.
5389 * monitor.c (monitor_wait): Likewise.
5390 * remote.c (remote_wait): Likewise.
5391 * remote-mips.c (mips_wait): Likewise.
5393 * bsd-kvm.c (bsd_kvm_open): Likewise
5394 (bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd): Likewise.
5395 * fbsd-nat.c (fbsd_make_corefile_notes): Likewise.
5396 * i386-linux-nat.c (i386_linux_resume): Likewise.
5397 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Likewise.
5398 (ia64_linux_stopped_data_address): Likewise.
5400 * frv-tdep.c (frv_fdpic_loadmap_addresses): Likewise.
5401 * m32c-tdep.c (m32c_virtual_frame_pointer): Likewise.
5402 * mep-tdep.c (current_me_module, current_options): Likewise.
5403 * mips-tdep.c (deprecated_mips_set_processor_regs_hack): Likewise.
5405 * linux-nat.c (linux_nat_do_thread_registers): Use thread
5406 regcache instead of current_regcache. Call target_fetch_registers.
5407 (linux_nat_corefile_thread_callback): Update call site.
5408 (linux_nat_do_registers): Likewise.
5409 * procfs.c (procfs_do_thread_registers): Use thread regcache instead
5410 of current_regcache.
5411 (procfs_make_note_section): Likewise.
5412 * proc-service.c (ps_lgetregs, ps_lsetregs): Likewise.
5413 (ps_lgetfpregs, ps_lsetfpregs): Likewise.
5414 * sol-thread.c (ps_lgetregs, ps_lsetregs): Likewise.
5415 (ps_lgetfpregs, ps_lsetfpregs): Likewise.
5417 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
5419 * regcache.c (read_register, read_register_pid): Remove.
5420 (write_register, write_register_pid): Likewise.
5421 * regcache.h (read_register, read_register_pid): Remove prototype.
5422 (write_register, write_register_pid): Likewise.
5424 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
5426 * gdbarch.sh (read_pc): Add REGCACHE argument. Remove PTID argument.
5427 (write_pc): Likewise. Remove default implementation, add predicate.
5428 * gdbarch.c, gdbarch.h: Regenerate.
5429 * regcache.c (read_pc_pid): Use current regcache instead of calling
5431 (write_pc_pid): Check gdbarch_write_pc predicate, implement default
5433 (generic_target_write_pc): Remove.
5434 * inferior.h (generic_target_write_pc): Remove.
5435 * frv-tdep.c (frv_gdbarch_init): Do not install it.
5436 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
5437 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
5438 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
5439 * sh-tdep.c (sh_gdbarch_init): Likewise.
5440 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
5442 * avr-tdep.c (avr_read_pc): Add REGCACHE argument. Remove PTID
5443 argument. Use REGCACHE instead of calling read_register_pid.
5444 * hppa-hpux-tdep.c (hppa_hpux_read_pc): Likewise.
5445 * hppa-tdep.c (hppa_read_pc): Likewise.
5446 * hppa-tdep.h (hppa_read_pc): Likewise.
5447 * ia64-tdep.c (ia64_read_pc): Likewise.
5448 * m32r-tdep.c (m32r_read_pc): Likewise.
5449 * mep-tdep.c (mep_read_pc): Likewise.
5450 * mn10300-tdep.c (mn10300_read_pc): Likewise.
5451 * spu-tdep.c (spu_read_pc): Likewise.
5453 * arm-tdep.c (arm_write_pc): Add REGCACHE argument. Remove PTID
5454 argument. Use REGCACHE instead of calling write_register_pid.
5455 * avr-tdep.c (avr_write_pc): Likewise.
5456 * hppa-hpux-tdep.c (hppa_hpux_write_pc): Likewise.
5457 * hppa-tdep.c (hppa_write_pc): Likewise.
5458 * hppa-tdep.h (hppa_write_pc): Likewise.
5459 * i386-linux-tdep.c (i386_linux_write_pc): Likewise.
5460 * amd64-linux-tdep.c (amd64_linux_write_pc): Likewise.
5461 * ia64-linux-tdep.c (ia64_linux_write_pc): Likewise.
5462 * ia64-tdep.c (ia64_write_pc): Likewise.
5463 * ia64-tdep.h (ia64_write_pc): Likewise.
5464 * m32r-tdep.c (m32r_write_pc): Likewise.
5465 * m88k-tdep.c (m88k_write_pc): Likewise.
5466 * mep-tdep.c (mep_write_pc): Likewise.
5467 * mips-tdep.c (mips_write_pc): Likewise.
5468 * mips-linux-tdep.c (mips_linux_write_pc): Likewise.
5469 * mn10300-tdep.c (mn10300_write_pc): Likewise.
5470 * sparc-tdep.c (sparc_write_pc): Likewise.
5471 * spu-tdep.c (spu_write_pc): Likewise.
5473 * mips-tdep.c (read_signed_register): Remove.
5474 (read_signed_register_pid): Likewise.
5475 (mips_read_pc): Add REGCACHE argument. Remove PTID argument.
5476 Use REGCACHE instead of calling read_signed_register_pid.
5478 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
5480 * gdbarch.sh (push_dummy_code): Add REGCACHE argument.
5481 * gdbarch.c, gdbarch.h: Regenerate.
5482 * infcall.c (generic_push_dummy_code): Add REGCACHE argument.
5483 (push_dummy_code): Likewise. Pass it to callee.
5484 (call_function_by_hand): Pass current regcache to push_dummy_code.
5486 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Add REGCACHE
5487 argument. Use it instead of current_regcache.
5489 * cris-tdep.c (cris_push_dummy_code): Add REGCACHE argument.
5490 * sparc-tdep.c (sparc32_push_dummy_code): Likewise.
5492 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
5494 * gdbarch.sh (get_longjmp_target): Add FRAME argument.
5495 * gdbarch.c, gdbarch.h: Regenerate.
5496 * infrun.c (handle_inferior_event): Pass current frame to
5497 gdbarch_get_longjmp_target.
5499 * alpha-tdep.c (alpha_get_longjmp_target): Add FRAME argument.
5500 Read registers from FRAME instead of using read_register.
5501 Use get_frame_arch instead of current_gdbarch.
5502 * arm-tdep.c (arm_get_longjmp_target): Likewise.
5503 * i386-tdep.c (i386_get_longjmp_target): Likewise.
5504 * m68k-tdep.c (m68k_get_longjmp_target): Likewise.
5505 * mips-linux-tdep.c (mips_linux_get_longjmp_target): Likewise.
5506 (mips64_linux_get_longjmp_target): Likewise.
5507 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Likewise.
5509 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
5511 * gdbarch.sh (skip_trampoline_code): Add FRAME argument.
5512 * gdbarch.c, gdbarch.h: Regenerate.
5513 * arch-utils.c (generic_skip_trampoline_code): Add FRAME argument.
5514 * arch-utils.h (generic_skip_trampoline_code): Likewise.
5515 * infrun.c (handle_inferior_event): Pass current frame to
5516 gdbarch_skip_trampoline_code and skip_language_trampoline.
5518 * language.c (unk_lang_trampoline): Add FRAME argument.
5519 (skip_language_trampoline): Add FRAME argument. Pass it to
5520 skip_trampoline callback.
5521 * language.h: Add forward declaration of struct frame_info.
5522 (struct language_defn): Add FRAME argument to skip_trampoline.
5523 (skip_language_trampoline): Add FRAME argument.
5524 * cp-abi.c (cplus_skip_trampoline): Add FRAME argument. Pass it
5525 to skip_trampoline callback.
5526 * cp-abi.h: Add forward declaration of struct frame_info.
5527 (cplus_skip_trampoline): Add FRAME argument.
5528 (struct cp_abi_ops): Add FRAME argument to skip_trampoline callback.
5529 * gnu-v3-abi.c (gnuv3_skip_trampoline): Add FRAME argument. Pass it
5530 to gdbarch_skip_trampoline_code.
5531 * objc-lang.c (objc_skip_trampoline): Add FRAME argument. Pass it
5532 to gdbarch_skip_trampoline_code.
5534 * minsyms.c (find_solib_trampoline_target): Add FRAME argument.
5535 * symtab.h (find_solib_trampoline_target): Likewise.
5536 * obsd-tdep.c (obsd_skip_solib_resolver): Pass current frame to
5537 find_solib_trampoline_target.
5539 * arm-tdep.c (arm_skip_stub): Add FRAME argument. Read registers
5540 from FRAME instead of calling read_register.
5542 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code): Add FRAME
5543 argument. Read registers from FRAME instead of using read_register.
5544 * hppa-tdep.c (hppa_skip_trampoline_code): Likewise.
5545 * hppa-tdep.h (hppa_skip_trampoline_code): Add FRAME argument.
5547 * i386-cygwin-tdep.c (i386_cygwin_skip_trampoline_code): Add FRAME
5550 * m32c-tdep.c (m32c_skip_trampoline_code): Add FRAME argument.
5552 * mips-tdep.c (mips_skip_trampoline_code): Add FRAME argument. Read
5553 registers from FRAME instead of using read_signed_register.
5555 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Add FRAME
5557 (ppc64_standard_linkage_target): Likewise. Read registers from FRAME
5558 instead of using read_register.
5559 (ppc64_skip_trampoline_code): Add FRAME argument. Pass it to
5560 ppc64_standard_linkage_target.
5561 * rs6000-tdep.c (rs6000_skip_trampoline_code): Add FRAME argument.
5562 Pass it to find_solib_trampoline_target. Read registers from FRAME
5563 instead of using read_register.
5565 * xstormy16-tdep.c (xstormy16_skip_trampoline_code): Add FRAME
5568 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
5570 * gdbarch.sh (software_single_step): Replace REGCACHE argument by
5572 * gdbarch.c, gdbarch.h: Regenerate.
5573 * infrun.c (resume): Pass current frame to SOFTWARE_SINGLE_STEP.
5575 * alpha-tdep.c (alpha_next_pc): Add FRAME argument. Retrieve
5576 registers from FRAME instead of using read_register.
5577 (alpha_software_single_step): Replace REGCACHE by FRAME. Pass FRAME
5578 to alpha_next_pc. Use get_frame_pc instead of read_pc.
5579 * alpha-tdep.h (alpha_software_single_step): Replace REGCACHE
5582 * arm-tdep.c (shifted_reg_val): Add FRAME argument. Read registers
5583 from FRAME instead of using read_register.
5584 (thumb_get_next_pc): Likewise.
5585 (arm_get_next_pc): Likewise.
5586 (arm_software_single_step): Replace REGCACHE by FRAME. Pass FRAME
5587 to arm_get_next_pc. Use get_frame_pc instead of read_register.
5588 * arm-tdep.h (arm_software_single_step): Replace REGCACHE
5591 * cris-tdep.c (find_step_target): Add FRAME argument. Read registers
5592 from FRAME instead of using read_register.
5593 (cris_software_single_step): Replace REGCACHE by FRAME. Pass FRAME
5594 to find_step_target.
5596 * mips-tdep.c (mips32_next_pc): Add FRAME argument. Read registers
5597 from FRAME instead of using read_register / read_signed_register.
5598 (extended_mips16_next_pc): Likewise.
5599 (mips16_next_pc): Likewise.
5600 (mips_next_pc): Likewise.
5601 (mips_software_single_step): Replace REGCACHE by FRAME. Pass FRAME
5602 to mips_next_pc. Use get_frame_pc instead of read_pc.
5603 * mips-tdep.h (mips_software_single_step): Replace REGCACHE
5606 * rs6000-tdep.c (branch_dest): Add FRAME argument. Use it instead
5607 of current frame. Read registers from FRAME.
5608 (deal_with_atomic_sequence): Add FRAME argument. Pass it to
5609 branch_dest. Use get_frame_pc instead of read_pc.
5610 (rs6000_software_single_step): Likewise.
5611 (bl_to_blrl_insn_p): Do not call branch_dest.
5612 * rs6000-tdep.h (rs6000_software_single_step): Replace REGCACHE
5615 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Add FRAME argument.
5616 Read registers from FRAME instead of current regcache.
5617 * sparc-linux-tdep.c (sparc32_linux_step_trap): Likewise.
5618 * sparcnbsd-tdep.c (sparcnbsd_step_trap): Likewise.
5619 * sparc-tdep.c (sparc_address_from_register): Remove.
5620 (sparc_analyze_control_transfer): Pass FRAME argument instead of
5621 GDBARCH. Pass FRAME to step_trap callback.
5622 (sparc_step_trap): Add FRAME argument.
5623 (space_software_single_step): Replace REGCACHE by FRAME. Pass FRAME
5624 to sparc_analyze_control_transfer. Read registers from FRAME instead
5625 of calling sparc_address_from_register.
5626 * sparc-tdep.h (struct gdbarch_tdep): Add FRAME argument to
5628 (sparc_address_from_register): Remove prototype.
5629 (sparc_software_single_step): Replace REGCACHE argument by FRAME.
5630 (sparcnbsd_step_trap): Add FRAME argument.
5632 * spu-tdep.c (spu_software_single_step): Replace REGCACHE argument
5633 by FRAME. Read registers from FRAME instead of REGCACHE.
5635 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
5637 * arm-tdep.c (arm_print_float_info): Use register value from FRAME
5638 instead of calling read_register.
5640 * avr-tdep.c (avr_push_dummy_call): Write to REGCACHE instead of
5641 calling write_register.
5643 * hppa-tdep.c (hppa32_push_dummy_call): Write to REGCACHE instead of
5644 calling write_register.
5646 * ia64-tdep.c (find_func_descr): Add REGCACHE parameter. Use it
5647 instead of calling read_register.
5648 (ia64_push_dummy_call): Update call to find_func_descr. Use REGCACHE
5649 instead of calling read_register and write_register.
5651 * m32r-tdep.c (m32r_linux_supply_gregset): Use REGCACHE parameter
5652 instead of current_regcache.
5654 * mn10300-tdep.c (mn10300_push_dummy_call): Write to REGCACHE instead
5655 of calling write_register.
5656 * mn10300-linux-tdep.c (am33_supply_fpregset_method): Use REGCACHE
5657 parameter instead of current_regcache.
5659 * mips-tdep.c (mips2_fp_compat): Add FRAME parameter. Use it
5660 instead of calling read_register.
5661 (mips_read_fp_register_double, mips_print_fp_register): Update calls.
5662 (mips_eabi_push_dummy_call): Use REGCACHE instead of write_register.
5663 (mips_n32n64_push_dummy_call): Likewise.
5664 (mips_o32_push_dummy_call): Likewise.
5665 (mips_o64_push_dummy_call): Likewise.
5667 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Use REGCACHE
5668 parameter instead of current_regcache.
5670 * xtensa-tdep.c (xtensa_register_write_masked): Add REGCACHE parameter.
5671 Use it instead of read_register and write_register.
5672 (xtensa_register_read_masked): Likewise.
5673 (xtensa_pseudo_register_read): Update call.
5674 (xtensa_pseudo_register_write): Likewise.
5675 (xtensa_frame_cache): Use register values unwound from NEXT_FRAME
5676 instead of calling read_register.
5677 (xtensa_push_dummy_call): Update comment.
5679 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
5681 * mips-tdep.c (mips16_scan_prologue): Replace read_next_frame_reg
5682 by frame_unwind_register_signed calls.
5683 (mips32_scan_prologue): Likewise. Skip analysis of alloca stack
5684 frame allocations when called with NULL NEXT_FRAME parameter.
5685 (read_next_frame_reg): Remove.
5687 * sh-tdep.c (sh_analyze_prologue): Add FPSCR parameter. Use it
5688 instead of reading the FPSCR register.
5689 (sh_frame_cache): Pass unwound FPSCR register value to
5690 sh_analyze_prologue.
5691 (sh_skip_prologue): Pass dummy FPSCR value to sh_analyze_prologue.
5693 * v850-tdep.c (v850_analyze_prologue): Add CTBP parameter. Use it
5694 instead of reading the CTBP register.
5695 (v850_frame_cache): Pass unwound CTBP register value to
5696 v850_analyze_prologue.
5698 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
5700 * sh-tdep.h (sh_show_regs): Add FRAME parameter.
5701 * sh-tdep.c (sh_show_regs): Likewise.
5702 (sh_show_regs_command): Pass current frame to sh_show_regs routine.
5703 (sh_generic_show_regs): Add FRAME parameter. Use register
5704 values from that frame instead of calling read_register.
5705 (sh3_show_regs, sh2e_show_regs, sh2a_show_regs, sh2a_nofpu_show_regs,
5706 sh3e_show_regs, sh3_dsp_show_regs, sh4_show_regs, sh4_nofpu_show_regs,
5707 sh_dsp_show_regs): Likewise.
5708 * sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs,
5709 sh64_show_regs): Likewise.
5711 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
5713 * mips-tdep.c (deprecated_mips_set_processor_regs_hack): Read from
5714 current regcache instead of calling read_register.
5716 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
5718 * mep-tdep.c (current_me_module): Read from current regcache
5719 instead of calling read_register.
5720 (current_options): Likewise.
5722 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
5724 * cris-tdep.c (cris_stopped_data_address): Read register values
5725 from current frame instead of calling read_register.
5726 * frv-tdep.c (frv_stopped_data_address): Likewise.
5728 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
5730 * solib-sunos.c (sunos_solib_create_inferior_hook): Use write_pc
5731 instead of write_register (PC_REGNUM, ...).
5733 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
5735 * solib-sunos.c (sunos_solib_create_inferior_hook): Add comment
5736 explaining why the PC adjustment code is necessary.
5738 2007-06-15 Vladimir Prus <vladimir@codesourcery.com>
5740 * m68k-tdep.h (enum m68k_flavour): New.
5741 (struct gdbarch_tdep): New fields
5742 float_return, flavour and fpregs_present.
5743 * m68k-tdep.c (m68k_register_type): Use
5744 fpregs_present and conditionalize floating
5745 registers type on flavour.
5746 (m68k_register_names): New.
5747 (m68k_register_name): Use the above.
5748 (m68k_convert_register_p): Consult fpregs_present.
5749 (m68k_register_to_value, m68k_value_to_register):
5750 Use register_type to obtain the type of floating
5752 (m68k_svr4_extract_return_value): Check tdep->float_return.
5753 Use register_type to get the type of floating
5755 (m68k_svr4_store_return_value): Likewise.
5756 (m68k_dwarf_reg_to_regnum): Check tdep->fpregs_present.
5757 (m68k_analyze_register_saves): Likewise.
5758 (m68k_gdbarch_init): Extract infromation
5759 from XML description, if present. Guess coldfire by
5760 looking at the file, if present. Conditionalize
5761 setting of long double format. Set decr_pc_after_break
5762 to 2 on coldfire and fido. Enable XML-driven
5763 register description.
5764 * m68kbsd-tdep.c (m68kbsd_fpreg_offset): Use
5765 size of tdep->fpreg_type, as opposed to hardcoded value.
5766 * Makefile.in (m68k-tdep.o): Update dependencies.
5768 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
5770 * NEWS: Mention "info spu" commands and qXfer:spu:read and
5771 qXfer:spu:write remote packet types.
5773 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
5775 * xml-tdesc.c (tdesc_start_target): New.
5776 (target_attributes): New.
5777 (tdesc_elements): Use it.
5778 * features/gdb-target.dtd: Add #FIXED version attribute for
5781 2007-06-13 Arthur Huillet <arthur.huillet@free.fr>
5783 * mi/mi-cmd-var.c (mi_cmd_var_assign): Fix typo.
5785 2007-06-13 Claudio Fontana <claudio.fontana@gmail.com>
5787 * fork-child.c (fork_inferior): Update comment.
5789 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
5791 * features/Makefile: Generate regformats for mips-linux and
5793 * features/sort-regs.xsl: Correct typo.
5794 * regformats/reg-mips.dat, regformats/reg-mips64.dat: Delete.
5795 * regformats/mips-linux.dat, regformats/mips64-linux.dat: New generated
5798 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
5800 * config/mips/linux.mh (TDEP_XML): New.
5801 * features/mips-linux.xml, features/mips64-linux.xml: New files.
5802 * mips-linux-nat.c (mips_linux_register_addr): Handle
5803 MIPS_RESTART_REGNUM.
5804 (mips64_linux_register_addr): Likewise.
5805 (super_xfer_partial, mips_linux_xfer_partial): New.
5806 (_initialize_mips_linux_nat): Add them to the target_ops.
5807 * mips-linux-tdep.c (mips_supply_gregset): Handle MIPS_RESTART_REGNUM.
5808 (mips_fill_gregset, mips64_supply_gregset, mips64_fill_gregset)
5809 (mips_linux_o32_sigframe_init)
5810 (mips_linux_n32n64_sigframe_init): Likewise.
5811 (mips_linux_write_pc, mips_linux_restart_reg_p): New.
5812 (mips_linux_init_abi): Use mips_linux_write_pc. Check for the
5813 "org.gnu.gdb.mips.linux" feature.
5814 * mips-linux-tdep.h (MIPS_RESTART_REGNUM): New constant.
5815 (mips_linux_restart_reg_p): New prototype.
5816 * mips-tdep.c (mips_gdbarch_init): Pass tdesc_data to the OS/ABI
5817 initialization routine.
5818 * Makefile.in (mips-linux-tdep.o, mips-linux-nat.o): Update.
5820 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
5822 * Makefile.in (mips-tdep.o): Update.
5823 * mips-tdep.c (struct register_alias, mips_o32_aliases)
5824 (mips_n32_n64_aliases, mips_register_aliases): New.
5825 (mips_register_name): Call tdesc_register_name.
5826 (mips_tdesc_register_reggroup_p): New.
5827 (mips_pseudo_register_type, value_of_mips_user_reg): New.
5828 (mips_gdbarch_init): Add target-described register support.
5829 Register aliases for register names.
5830 * target-descriptions.c (tdesc_register_name): Make global.
5831 (tdesc_register_in_reggroup_p): New function, broken out from
5832 tdesc_register_reggroup_p.
5833 (tdesc_register_reggroup_p): Use it.
5834 * target-descriptions.h (tdesc_register_name)
5835 (tdesc_register_in_reggroup_p): New prototypes.
5836 * NEWS: Correct formatting. Mention MIPS register support.
5837 * features/mips-cp0.xml, features/mips-fpu.xml,
5838 features/mips64-cp0.xml, gdb/features/mips64-fpu.xml, mips-cpu.xml,
5839 features/mips64-cpu.xml: New files.
5841 2007-06-13 Markus Deuling <deuling@de.ibm.com>
5843 * gdbarch.sh (TARGET_ADDR_BIT): Replace by gdbarch_addr_bit.
5844 * valops.c (value_cast): Likewise.
5845 * utils.c (strlen_paddr, paddr, paddr_nz, paddress): Likewise.
5846 * ui-out.c (ui_out_field_core_addr): Likewise.
5847 * tracepoint.c (tracepoints_info): Likewise.
5848 * symtab.c (print_msymbol_info): Likewise.
5849 * solib-irix.c (irix_current_sos)
5850 (irix_open_symbol_file_object): Likewise.
5851 * remote.c (build_remote_gdbarch_data): Likewise.
5852 * prologue-value.c (make_pv_area): Likewise.
5853 * procfs.c (info_mappings_callback): Likewise.
5854 * printcmd.c (print_scalar_formatted)
5855 (deprecated_print_address_numeric): Likewise.
5856 * memattr.c (mem_info_command): Likewise.
5857 * linux-nat.c (linux_nat_info_proc_cmd): Likewise.
5858 * gdbtypes.c (build_flt, gdbtypes_post_init): Likewise.
5859 * exec.c (print_section_info): Likewise.
5860 * dwarf2read.c (read_subrange_type): Likewise.
5861 * dwarf2loc.c (find_location_expression): Likewise.
5862 * dwarf2expr.c (dwarf2_read_address, unsigned_address_type)
5863 (signed_address_type, execute_stack_op): Likewise.
5864 * breakpoint.c (print_one_breakpoint, breakpoint_1): Likewise.
5865 * gdbarch.c, gdbarch.h: Regenerate.
5867 2007-06-13 Markus Deuling <deuling@de.ibm.com>
5869 * gdbarch.sh (TARGET_ARCHITECTURE): Replace by gdbarch_bfd_arch_info.
5870 * arch-utils.c (show_architecture): Likewise.
5871 * remote-mips.c (mips_open): Likewise
5872 * nto-tdep.c (nto_find_and_open_solib)
5873 (nto_init_solib_absolute_prefix): Likewise.
5874 * nto-procfs (procfs_open): Likewise.
5875 * m68hc11-tdep.c (gdb_print_insn_m68hc11): Likewise.
5876 * gcore.c (default_gcore_mach, default_gcore_arch): Likewise.
5877 * gdbarch.c, gdbarch.h: Regenerate.
5879 2007-06-13 Markus Deuling <deuling@de.ibm.com>
5881 * gdbarch.sh (TARGET_BFD_VMA_BIT): Replace by gdbarch_bfd_vma_bit.
5882 * gdbtypes.c (build_flt): Likewise.
5883 * gdbarch.c, gdbarch.h: Regenerate.
5885 2007-06-13 Markus Deuling <deuling@de.ibm.com>
5887 * gdbarch.sh (BREAKPOINT_FROM_PC): Replace by
5888 gdbarch_breakpoint_from_pc.
5889 * s390-tdep.c (s390_gdbarch_init): Likewise (comment).
5890 * remote.c (remote_insert_breakpoint)
5891 (remote_insert_hw_breakpoint): Likewise.
5892 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Likewise.
5893 * mips-tdep.c (mips_breakpoint_from_pc): Likewise (comment).
5894 * breakpoint.h (bp_target_info): Likewise (comment).
5895 * breakpoint.c (read_memory_nobpt): Likewise.
5896 * mem-break.c (default_memory_insert_breakpoint): Likewise.
5897 (symtab.h, breakpoint.h): Remove include. Remove unnecessary comment.
5898 * gdbarch.c, gdbarch.h: Regenerate.
5900 2007-06-13 Markus Deuling <deuling@de.ibm.com>
5902 * gdbarch.sh (TARGET_PTR_BIT): Replace with gdbarch_ptr_bit.
5903 * solib-svr4.c (svr4_truncate_ptr): Likewise.
5904 * solib-pa64.c (read_dynamic_info): Likewise.
5905 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets): Likewise.
5906 * solib.c (info_sharedlibrary_command): Likewise.
5907 * s390-nat.c (SUBOFF): Likewise.
5908 * p-valprint.c (pascal_val_print): Likewise.
5909 * procfs.c (info_proc_mappings): Likewise.
5910 * printcmd.c (decode_format): Likewise.
5911 * nto-tdep.c (nto_truncate_ptr): Likewise.
5912 * mips-linux-tdep.c (mips_linux_get_longjmp_target)
5913 (mips64_linux_get_longjmp_target): Likewise.
5914 * m68k-tdep.c (m68k_get_longjmp_target): Likewise.
5915 * jv-valprint.c (java_value_print): Likewise.
5916 * jv-lang.c (get_java_object_header_size): Likewise.
5917 * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Likewise.
5918 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
5919 (hppa_hpux_unwind_adjust_stub): Likewise.
5920 * gnu-v3-abi.c (build_gdb_vtable_type): Likewise.
5921 * gdbtypes.c (make_pointer_type, make_reference_type)
5922 (smash_to_memberptr_type): Likewise.
5923 * gdbarch.c, gdbarch.h: Regenerate.
5925 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
5927 * mips-tdep.c (mips_print_register): Remove unused ALL argument.
5928 (print_gp_register_row): Stop before printing a register bigger
5929 than the ABI register size.
5930 (mips_print_registers_info): Update call to mips_print_register.
5932 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
5934 * expression.h (enum exp_opcode): Document a register name for
5936 * parse.c (write_dollar_variable): Write the register name for
5938 (operator_length_standard): Expect the register name following
5940 * ada-lang.c (resolve_subexp): Likewise.
5941 * ax-gdb.c (gen_expr): Likewise.
5942 * eval.c (evaluate_subexp_standard): Likewise.
5943 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
5945 * tracepoint.c (encode_actions): Likewise.
5947 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
5949 * utils.c (set_screen_size): Use INT_MAX for default columns.
5951 2007-06-13 Ulrich Weigand <uweigand@de.ibm.com>
5953 * remote.c (remote_protocol_features): Add qXfer:spu:read and
5954 qXfer:spu:write packet types.
5956 2007-06-12 Markus Deuling <deuling@de.ibm.com>
5958 * gdbarch.sh (DEPRECATED_STACK_ALIGN): Remove.
5959 * gdbarch.c, gdbarch.h: Regenerate.
5961 2007-06-12 Markus Deuling <deuling@de.ibm.com>
5963 * gdbarch.sh (STAB_REG_TO_REGNUM): Replace by
5964 gdbarch_stab_reg_to_regnum.
5965 * stabsread.c (define_symbol): Likewise.
5966 * gdbarch.sh (ECOFF_REG_TO_REGNUM): Replace by
5967 gdbarch_ecoff_reg_to_regnum.
5968 * mdebugread.c (parse_symbol): Likewise.
5969 * i386-tdep.c (i386_gdbarch_init): Likewise (comment).
5970 * gdbarch.sh (DWARF_REG_TO_REGNUM): Replace by
5971 gdbarch_dwarf_reg_to_regnum.
5972 * gdbarch.sh (SDB_REG_TO_REGNUM): Replace by gdbarch_sdb_reg_to_regnum.
5973 * coffread.c (process_coff_symbol): Likewise.
5974 * gdbarch.sh (DWARF2_REG_TO_REGNUM): Replace by
5975 gdbarch_dwarf2_reg_to_regnum.
5976 * dwarf2loc.c (dwarf_expr_read_reg,dwarf2_evaluate_loc_desc)
5977 (locexpr_describe_location): Likewise.
5978 * dwarf2-frame.c (read_reg,execute_cfa_program,dwarf2_frame_cache)
5979 (dwarf2_frame_prev_register,dwarf2_signal_frame_this_id): Likewise.
5980 * dwarf2loc.c (DWARF2_REG_TO_REGNUM): Remove macro.
5981 * dwarf2read.c (DWARF2_REG_TO_REGNUM): Remove macro.
5982 * gdbarch.c, gdbarch.h: Regenerate.
5984 2007-06-12 Markus Deuling <deuling@de.ibm.com>
5986 * gdbarch.sh (SMASH_TEXT_ADDRESS): Replace by
5987 gdbarch_smash_text_address.
5988 * somread.c (som_symtab_read): Likewise.
5989 * elfread.c (record_minimal_symbol): Likewise.
5990 * dbxread.c (process_one_symbol): Likewise.
5991 * coffread.c (coff_symtab_read): Likewise.
5992 * gdbarch.c, gdbarch.h: Regenerate.
5994 2007-06-12 Markus Deuling <deuling@de.ibm.com>
5996 * gdbarch.sh (REGISTER_TO_VALUE): Replace by gdbarch_register_to_value.
5997 * findvar.c (value_from_register): Likewise.
5998 * gdbarch.sh (VALUE_TO_REGISTER): Replace by gdbarch_value_to_register.
5999 * valops.c (value_assign): Likewise.
6000 * gdbarch.sh (CONVERT_REGISTER_P): Replace by
6001 gdbarch_convert_register_p.
6002 * findvar.c (value_from_register): Likewise.
6003 * valops.c (value_assign): Likewise.
6004 * gdbarch.c, gdbarch.h: Regenerate.
6006 2007-06-12 Markus Deuling <deuling@de.ibm.com>
6008 * gdbarch.sh (REGISTER_SIM_REGNO): Replace by
6009 gdbarch_register_sim_regno.
6010 * sim-regno.h (sim_regno): Likewise (comment).
6011 * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register): Likewise.
6012 * gdbarch.c, gdbarch.h: Regenerate.
6014 2007-06-12 Markus Deuling <deuling@de.ibm.com>
6016 * gdbarch.sh (TARGET_VIRTUAL_FRAME_POINTER): Replace by
6017 gdbarch_virtual_frame_pointer.
6018 * tracepoint.c (encode_actions): Likewise.
6019 * dwarf2loc.c (dwarf2_loc_desc_needs_frame): Likewise.
6020 * ax-gdb.c (gen_frame_args_address, gen_frame_locals_address): Likewise.
6021 * gdbarch.c, gdbarch.h: Regenerate.
6023 2007-06-12 Markus Deuling <deuling@de.ibm.com>
6025 * gdbarch.sh (TARGET_FLOAT_BIT): Replace by gdbarch_float_bit.
6026 * p-lang.c (pascal_create_fundamental_type): Likewise.
6027 * objc-lang.c (objc_create_fundamental_type): Likewise.
6028 * mdebugread.c (_initialize_mdebugread): Likewise.
6029 * m2-lang.c (m2_create_fundamental_type)
6030 (_initialize_m2_language): Likewise.
6031 * gdbtypes.c (build_gdbtypes): Likewise.
6032 * f-lang.c (f_create_fundamental_type, build_fortran_types): Likewise.
6033 * doublest.c (floatformat_from_length): Likewise.
6034 * c-lang.c (c_create_fundamental_type): Likewise.
6035 * ada-lang.c (ada_create_fundamental_type)
6036 (ada_language_arch_info): Likewise.
6037 * gdbarch.sh (TARGET_FLOAT_FORMAT): Replace by gdbarch_float_format.
6038 * value.c (unpack_double): Likewise (comment).
6039 * gdbtypes.c (build_gdbtypes): Likewise.
6040 * doublest.c (floatformat_from_length): Likewise.
6041 * gdbarch.sh (TARGET_DOUBLE_BIT): Replace by gdbarch_double_bit.
6042 * valarith.c (value_binop): Likewise.
6043 * p-lang.c (pascal_create_fundamental_type): Likewise.
6044 * objc-lang.c (objc_create_fundamental_type): Likewise.
6045 * mdebugread.c (_initialize_mdebugread): Likewise.
6046 * m2-lang.c (m2_create_fundamental_type): Likewise.
6047 * gdbtypes.c (build_gdbtypes): Likewise.
6048 * f-lang.c (f_create_fundamental_type, build_fortran_types): Likewise.
6049 * doublest.c (floatformat_from_length): Likewise.
6050 * cris-tdep.c (cris_gdbarch_init): Likewise (comment).
6051 * c-lang.c (c_create_fundamental_type): Likewise.
6052 * ada-lex.l (processReal): Likewise.
6053 * ada-lang.c (ada_create_fundamental_type)
6054 (ada_language_arch_info): Likewise.
6055 * gdbarch.sh (TARGET_DOUBLE_FORMAT): Replace by gdbarch_double_format.
6056 * value.c (unpack_double): Likewise (comment).
6057 * gdbtypes.c (build_gdbtypes): Likewise.
6058 * doublest.c (floatformat_from_length): Likewise.
6059 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Replace by
6060 gdbarch_long_double_bit.
6061 * p-lang.c (pascal_create_fundamental_type): Likewise.
6062 * objc-lang.c (objc_create_fundamental_type): Likewise.
6063 * m2-lang.c (m2_create_fundamental_type): Likewise.
6064 * gdbtypes.c (build_gdbtypes): Likewise.
6065 * f-lang.c (f_create_fundamental_type, build_fortran_types): Likewise.
6066 * doublest.c (floatformat_from_length): Likewise.
6067 * c-lang.c (c_create_fundamental_type): Likewise.
6068 * ada-lex.l (processReal): Likewise.
6069 * ada-lang.c (ada_create_fundamental_type)
6070 (ada_language_arch_info): Likewise.
6071 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Replace by
6072 gdbarch_long_double_format.
6073 * gdbtypes.c (build_gdbtypes): Likewise.
6074 * doublest.c (floatformat_from_length): Likewise.
6075 * gdbarch.c, gdbarch.h: Regenerate.
6077 2007-06-12 Markus Deuling <deuling@de.ibm.com>
6079 * gdbarch.sh (TARGET_SHORT_BIT): Replace by gdbarch_int_bit.
6080 * ada-lang.c (ada_create_fundamental_type)
6081 (ada_language_arch_info): Likewise.
6082 * c-lang.c (c_create_fundamental_type): Likewise.
6083 * f-lang.c (f_create_fundamental_type, build_fortran_types): Likewise.
6084 * gdbtypes.c (build_gdbtypes, gdbtypes_post_init): Likewise.
6085 * m2-lang.c (m2_create_fundamental_type): Likewise.
6086 * objc-lang.c (objc_create_fundamental_type): Likewise.
6087 * p-lang.c (pascal_create_fundamental_type): Likewise.
6088 * gdbarch.sh (TARGET_INT_BIT): Replace by gdbarch_int_bit.
6089 * c-exp.y (parse_number): Likewise.
6090 * objc-exp.y (parse_number): Likewise.
6091 * ada-lex.l (processInt): Likewise.
6092 * f-exp.y (parse_number): Likewise.
6093 * p-exp.y (parse_number): Likewise.
6094 * ada-lang.c (ada_create_fundamental_type, ada_language_arch_info)
6095 (gdbtypes_post_init, build_gdbtypes): Likewise.
6096 * p-lang.c (pascal_create_fundamental_type): Likewise.
6097 * parse.c (build_parse): Likewise.
6098 * xcoffread.c (_initialize_xcoffread): Likewise.
6099 * stabsread.c (define_symbol, read_one_struct_field, read_enum_type)
6100 (read_range_type): Likewise.
6101 * objc-lang.c (objc_create_fundamental_type): Likewise.
6102 * f-lang.c (build_fortran_types, f_create_fundamental_type): Likewise.
6103 * m2-lang.c (m2_create_fundamental_type, _initialize_m2_language)
6104 (m2_create_fundamental_type): Likewise.
6105 * c-lang.c (c_create_fundamental_type): Likewise.
6106 * coffread.c (coff_read_enum_type): Likewise.
6107 * mdebugread.c (parse_symbol, _initialize_mdebugread): Likewise.
6108 * dwarf2read.c (new_symbol): Likewise.
6109 * gdbarch.sh (TARGET_LONG_BIT): Replace by gdbarch_long_bit.
6110 * c-exp.y (parse_number): Likewise.
6111 * objc-exp.y (parse_number): Likewise.
6112 * ada-lex.l (processInt): Likewise.
6113 * f-exp.y (parse_number): Likewise.
6114 * p-exp.y (parse_number): Likewise.
6115 * valarith.c (value_binop): Likewise.
6116 * symfile.c (read_target_long_array, simple_overlay_update_1): Likewise.
6117 * ada-lang.c (ada_create_fundamental_type)
6118 (ada_language_arch_info): Likewise.
6119 * gdbtypes.c (build_gdbtypes, gdbtypes_post_init): Likewise.
6120 * symfile.c (TARGET_LONG_BYTES): Likewise.
6121 * p-lang.c (pascal_create_fundamental_type): Likewise.
6122 * objc-lang.c (objc_create_fundamental_type): Likewise.
6123 * m2-lang.c (m2_create_fundamental_type): Likewise.
6124 * f-lang.c (f_create_fundamental_type): Likewise.
6125 * c-lang.c (c_create_fundamental_type): Likewise.
6126 * coffread.c (decode_base_type): Likewise.
6127 * gdbarch.sh (TARGET_LONG_LONG_BIT): Replace by gdbarch_long_long_bit.
6128 * c-exp.y (parse_number): Likewise.
6129 * objc-exp.y (parse_number): Likewise.
6130 * p-exp.y (parse_number): Likewise.
6131 * ada-lang.c (ada_create_fundamental_type)
6132 (ada_language_arch_info): Likewise.
6133 * gdbtypes.c (gdbtypes_post_init, build_gdbtypes): Likewise.
6134 * stabsread.c (read_range_type): Likewise.
6135 * p-lang.c (pascal_create_fundamental_type): Likewise.
6136 * objc-lang.c (objc_create_fundamental_type): Likewise.
6137 * m2-lang.c (m2_create_fundamental_type): Likewise.
6138 * f-lang.c (f_create_fundamental_type): Likewise.
6139 * c-lang.c (c_create_fundamental_type): Likewise.
6140 * gdbarch.c, gdbarch.h: Regenerate.
6142 2007-06-12 Andreas Schwab <schwab@suse.de>
6144 * frame-unwind.h (frame_dealloc_cache_ftype): Define.
6145 (struct frame_unwind): Add dealloc_cache.
6146 * frame.c (reinit_frame_cache): Call dealloc_cache on all caches.
6148 * libunwind-frame.h (libunwind_frame_dealloc_cache): Declare.
6149 * libunwind-frame.c (libunwind_frame_dealloc_cache): Define.
6150 (libunwind_frame_unwind): Set dealloc_cache.
6151 * ia64-tdep.c (ia64_libunwind_frame_unwind): Set dealloc_cache.
6153 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
6154 Markus Deuling <deuling@de.ibm.com>
6156 * remote.c (remote_write_qxfer): New function.
6157 (remote_xfer_partial): Add handling for TARGET_OBJECT_SPU.
6158 (remote_read_qxfer): Do not cache empty objects.
6159 (_initialize_remote): Add PACKET_qXfer_spu_read and
6160 PACKET_qXfer_spu_write.
6162 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
6164 * target.h (enum target_object): Add TARGET_OBJECT_SPU.
6165 * spu-linux-nat.c (spu_xfer_partial): Handle TARGET_OBJECT_SPU.
6167 * spu-tdep.h (SPU_NUM_PSEUDO_REGS): Add 5 pseudo registers.
6168 (enum spu_regnum): Add SPU_FPSCR_REGNUM, SPU_SRR0_REGNUM,
6169 SPU_LSLR_REGNUM, SPU_DECR_REGNUM, SPU_DECR_STATUS_REGNUM.
6170 * spu-tdep.c (infospucmdlist): New variable.
6171 (spu_register_name): Handle additional pseudo registers.
6172 (spu_register_type): Likewise.
6173 (spu_pseudo_register_read): Likewise.
6174 (spu_pseudo_register_write): Likewise.
6175 (spu_pseudo_register_read_spu): New function.
6176 (spu_pseudo_register_write_spu): Likewise.
6177 (info_spu_event_command): New function.
6178 (info_spu_signal_command): Likewise.
6179 (info_spu_mailbox_list): Likewise.
6180 (info_spu_mailbox_command): Likewise.
6181 (spu_mfc_get_bitfield): Likewise.
6182 (info_spu_dma_cmdlist): Likewise.
6183 (info_spu_dma_command): Likewise.
6184 (info_spu_proxydma_command): Likewise.
6185 (info_spu_command): Likewise.
6186 (_initialize_spu_tdep): Install "info spu" commands.
6188 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
6190 * spu-linux-nat.c (spu_proc_xfer_spu): Do not return failure when
6191 accessing non-seekable spufs files.
6193 2007-06-09 Markus Deuling <deuling@de.ibm.com>
6195 * gdbarch.sh (SKIP_TRAMPOLINE_CODE): Replace by
6196 gdbarch_skip_trampoline_code.
6197 * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Likewise (comment).
6198 * objc-lang.c (objc_skip_trampoline)
6199 (objc_submethod_helper_data): Likewise.
6200 * m32c-lang.c (m32c_skip_trampoline_code): Likewise (comment).
6201 * infrun.c (handle_inferior_event): Likewise.
6202 * gnu-v3-abi.c (gnuv3_skip_trampoline): Likewise.
6203 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Replace by
6204 gdbarch_in_solib_return_trampoline.
6205 * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Likewise (comment).
6206 * infrun.c (handle_inferior_event): Likewise.
6207 * hppa-tdep.c (hppa_stub_unwind_sniffer): Likewise.
6208 * gdbarch.c, gdbarch.h: Regenerate.
6210 2007-06-09 Markus Deuling <deuling@de.ibm.com>
6212 * gdbarch.sh (SKIP_PROLOGUE): Replace by gdbarch_skip_prologue.
6213 * symtab.c (find_function_start_sal, in_prologue): Likewise.
6214 * linespec.c (minsym_found): Likewise.
6215 * infrun.c (step_into_function): Likewise.
6216 * gdbarch.c, gdbarch.h: Regenerate.
6218 2007-06-09 Markus Deuling <deuling@de.ibm.com>
6220 * gdbarch.sh (NAME_OF_MALLOC): Replace by gdbarch_name_of_malloc.
6221 * valops.c (value_allocate_space_in_inferior): Likewise.
6222 * gdbarch.c, gdbarch.h: Regenerate.
6224 2007-06-09 Markus Deuling <deuling@de.ibm.com>
6226 * gdbarch.sh (MEMORY_INSERT_BREAKPOINT): Replace by
6227 gdbarch_memory_insert_breakpoint.
6228 * mem-break.c (memory_insert_breakpoint): Likewise.
6229 * gdbarch.sh (MEMORY_REMOVE_BREAKPOINT): Replace by
6230 gdbarch_memory_remove_breakpoint.
6231 * mem-break.c (memory_remove_breakpoint): Likewise.
6232 * gdbarch.c, gdbarch.h: Regenerate.
6234 2007-06-09 Markus Deuling <deuling@de.ibm.com>
6236 * gdbarch.sh (FETCH_TLS_LOAD_MODULE_ADDRESS): Replace by
6237 gdbarch_fetch_tls_load_module_address.
6238 * gdbarch.sh (FETCH_TLS_LOAD_MODULE_ADDRESS_P): Replace by
6239 gdbarch_fetch_tls_load_module_address_p.
6240 * gdbarch.c, gdbarch.h: Regenerate.
6242 2007-06-09 Markus Deuling <deuling@de.ibm.com>
6244 * gdbarch.sh (DECR_PC_AFTER_BREAK): Replace by
6245 gdbarch_decr_pc_after_break.
6246 * tracepoint.c (trace_dump_command): Likewise.
6247 * solib-sunos.c (sunos_solib_create_inferior_hook): Likewise.
6248 * linux-thread-db.c (check_event): Likewise.
6249 * linux-nat.c (cancel_breakpoints_callback): Likewise.
6250 * infrun.c (adjust_pc_after_break, normal_stop): Likewise.
6251 * frame.h: Likewise (comment).
6252 * dummy-frame.c (deprecated_pc_in_call_dummy): Likewise.
6253 * aix-thread.c (aix_thread_wait): Likewise.
6254 * gdbarch.c, gdbarch.h: Regenerate.
6256 2007-06-09 Markus Deuling <deuling@de.ibm.com>
6258 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS): Replace by
6259 gdbarch_address_class_type_flags.
6260 * dwarf2read.c (read_tag_pointer_type): Likewise.
6261 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS_P): Replace by
6262 gdbarch_address_class_type_flags_p.
6263 * dwarf2read.c (read_tag_pointer_type): Likewise.
6264 * gdbarch.c, gdbarch.h: Regenerate.
6266 2007-06-09 Markus Deuling <deuling@de.ibm.com>
6268 * gdbarch.sh (ADDR_BITS_REMOVE): Replace by gdbarch_addr_bits_remove.
6269 * value.c (value_as_address): Likewise (comment).
6270 * remote-mips.c (common_breakpoint): Likewise.
6271 * regcache.c (read_pc_pid): Likewise.
6272 * printcmd.c (do_one_display): Likewise.
6273 * monitor.c (monitor_write_memory, monitor_read_memory)
6274 (monitor_insert_breakpoint): Likewise.
6275 * mips-tdep.c (heuristic_proc_start): Likewise.
6276 * infrun.c (insert_step_resume_breakpoint_at_frame)
6277 (insert_step_resume_breakpoint_at_caller): Likewise.
6278 * buildsym.c (record_line): Likewise.
6279 * arm-tdep.c (arm_scan_prologue, thumb_get_next_pc)
6280 (arm_get_next_pc): Likewise.
6281 * armnbsd-nat.c (arm_supply_gregset, fetch_register, store_register)
6282 (store_regs): Likewise.
6283 * arm-linux-tdep.c (arm_linux_supply_gregset): Likewise.
6284 * arm-linux-nat.c (fetch_register, fetch_regs): Likewise.
6285 * gdbarch.c, gdbarch.h: Regenerate.
6287 2007-06-09 Markus Deuling <deuling@de.ibm.com>
6289 * gdbarch.sh (REGISTER_NAME): Replace by gdbarch_register_name.
6290 * tracepoint.c (scope_info): Likewise.
6291 * target.c (debug_print_register): Likewise.
6292 * stack.c (frame_info): Likewise.
6293 * sh-tdep.c (sh_register_reggroup_p): Likewise.
6294 * sh64-tdep.c (sh64_do_fp_register, sh64_do_register)
6295 (sh64_media_print_registers_info)
6296 (sh64_compact_print_registers_info): Likewise.
6297 * rs6000-tdep.c (rs6000_register_reggroup_p): Likewise.
6298 * remote-sim.c (gdbsim_fetch_register): Likewise.
6299 * remote.c (packet_reg): Likewise (comment).
6300 * reggroups.c (default_register_reggroup_p): Likewise.
6301 * regcache.c (regcache_dump): Likewise.
6302 * printcmd.c (address_info): Likewise.
6303 * ppc-linux-nat.c (fetch_register, store_register): Likewise.
6304 * mt-dep.c (mt_registers_info): Likewise.
6305 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Likewise (comment).
6306 * mips-tdep.c (mips_register_reggroup_p, mips_read_fp_register_single)
6307 (mips_read_fp_register_double, mips_print_fp_register)
6308 (mips_print_register, print_gp_register_row, mips_print_registers_info)
6309 (mips_register_sim_regno): Likewise.
6310 * m68klinux-nat.c (regmap, fetch_register, store_register): Likewise.
6311 * inf-ptrace.c (inf_ptrace_fetch_register)
6312 (inf_ptrace_store_register): Likewise.
6313 * infcmd.c (default_print_registers_info): Likewise.
6314 * ia64-linux-nat.c (ia64_linux_fetch_register)
6315 (ia64_linux_store_register): Likewise.
6316 * i386-linux-nat.c (fetch_register, store_register): Likewise.
6317 * i386gnu-nat.c (gnu_fetch_registers, gnu_store_registers): Likewise.
6318 * hppa-linux-nat.c (fetch_register, store_register): Likewise.
6319 * hppa-hpux-nat.c (hppa_hpux_fetch_register)
6320 (hppa_hpux_store_register): Likewise.
6321 * findvar.c (locate_var_value): Likewise.
6322 * dwarf2loc.c (locexpr_describe_location): Likewise.
6323 * dwarf2-frame.c (execute_cfa_program): Likewise.
6324 * arm-tdep.c (arm_push_dummy_call): Likewise.
6325 * arch-utils.c (legacy_register_sim_regno): Likewise.
6326 * alpha-tdep.c (alpha_register_reggroup_p): Likewise.
6327 * alpha-nat.c (fetch_osf_core_registers): Likewise.
6328 * mi/mi-main.c (mi_cmd_data_list_register_names)
6329 (mi_cmd_data_list_changed_registers, mi_cmd_data_list_register_values)
6330 (mi_cmd_data_write_register_values): Likewise.
6331 * gdbarch.c, gdbarch.h: Regenerate.
6333 2007-06-07 Daniel Jacobowitz <dan@codesourcery.com>
6335 * target-memory.c (blocks_to_erase): Correct off-by-one error.
6337 2007-06-06 Vladimir Prus <vladimir@codesourcery.com>
6339 * remote.c (process_g_packet): Don't check size.
6340 * gdbarch.sh: Remove register_bytes_ok.
6341 * gdbarch.c: Regenerated.
6342 * gdbarch.h: Regenerated.
6343 * m68k-tdep.c (REGISTER_BYTES_NOFP): Remove.
6344 (m68k_register_bytes_ok): Remove.
6345 (m68k_gdbarch_init): Don't register m68k_register_bytes_ok.
6347 2007-06-06 Andreas Schwab <schwab@suse.de>
6349 * libunwind-frame.c (unw_destroy_addr_space_p): Define.
6350 (destroy_addr_space_name): Define.
6351 (libunwind_load): Get address of destroy_addr_space function.
6352 (libunwind_frame_cache): Destroy unw_addr_space_t object before
6353 returning unsuccessfully.
6354 (libunwind_frame_sniffer): Destroy unw_addr_space_t object before
6356 (libunwind_sigtramp_frame_sniffer): Likewise.
6357 (libunwind_get_reg_special): Likewise.
6359 2007-06-06 Markus Deuling <deuling@de.ibm.com>
6361 * gdbarch.sh (FETCH_POINTER_ARGUMENT): Replace by
6362 gdbarch_fetch_pointer_argument.
6363 * objc-lang.c (OBJC_FETCH_POINTER_ARGUMENT): Likewise.
6364 * gdbarch.c, gdbarch.h: Regenerate.
6366 2007-06-06 Markus Deuling <deuling@de.ibm.com>
6368 * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Replace by
6369 gdbarch_have_nonsteppable_watchpoint.
6370 * infrun.c (handle_inferior_event, adjust_pc_after_break): Likewise.
6371 * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Replace by
6372 gdbarch_cannot_step_breakpoint.
6373 * infrun.c (resume): Likewise.
6374 * gdbarch.c, gdbarch.h: Regenerate.
6376 2007-06-06 Markus Deuling <deuling@de.ibm.com>
6378 * gdbarch.sh (FRAME_ARGS_SKIP): Replace by gdbarch_frame_args_skip.
6379 * stack.c (print_frame_args): Likewise.
6380 * gdbarch.sh (FRAME_NUM_ARGS): Replace by gdbarch_frame_num_args.
6381 * stack.c (print_args_stub, frame_info): Likewise.
6382 * gdbarch.sh (FRAME_NUM_ARGS_P): Replace by gdbarch_frame_num_args_p.
6383 * stack.c (print_args_stub, frame_info): Likewise.
6384 * gdbarch.c, gdbarch.h: Regenerate.
6386 2007-06-06 Markus Deuling <deuling@de.ibm.com>
6388 * gdbarch.sh (COFF_MAKE_MSYMBOL_SPECIAL): Replace by
6389 gdbarch_coff_make_msymbol_special.
6390 * coffread.c (coff_symtab_read): Likewise.
6391 * gdbarch.sh (ELF_MAKE_MSYMBOL_SPECIAL): Replace by
6392 gdbarch_elf_make_msymbol_special.
6393 * elfread.c (elf_symtab_read): Likewise.
6394 * mips-tdep.c (mips_elf_make_msymbol_special): Likewise (comment).
6395 * sh64-tdep.c (MSYMBOL_IS_SPECIAL): Likewise (comment).
6396 * gdbarch.c, gdbarch.h: Regenerate.
6398 2007-06-06 Markus Deuling <deuling@de.ibm.com>
6400 * gdbarch.sh (FRAME_RED_ZONE_SIZE): Replace by
6401 gdbarch_frame_red_zone_size.
6402 * gdbarch.c, gdbarch.h: Regenerate.
6404 2007-06-06 Markus Deuling <deuling@de.ibm.com>
6406 * gdbarch.sh (INNER_THAN): Replace by gdbarch_inner_than.
6407 * infcall.c (call_function_by_hand): Likewise.
6408 * gcore.c (derive_stack_segment): Likewise.
6409 * frame.c (frame_id_inner): Likewise.
6410 * arch-utils.c (core_addr_lessthan): Likewise (comment).
6411 * ada-lang.c (ensure_lval): Likewise.
6412 * gdbarch.c, gdbarch.h: Regenerate.
6414 2007-06-06 Markus Deuling <deuling@de.ibm.com>
6416 * gdbarch.sh (ADDRESS_TO_POINTER): Replace by
6417 gdbarch_address_to_pointer.
6418 * findvar.c (store_typed_address): Likewise.
6419 * gdbtypes.c (make_pointer_type): Likewise (comment).
6420 * procfs.c (procfs_address_to_host_pointer): Likewise.
6421 * std-regs.c (value_of_builtin_frame_reg): Likewise.
6422 (value_of_builtin_frame_fp_reg): Likewise.
6423 (value_of_builtin_frame_pc_reg): Likewise.
6424 * utils.c (paddress): Likewise (comment).
6425 * gdbarch.sh (POINTER_TO_ADDRESS): Replace by
6426 gdbarch_pointer_to_address.
6427 * findvar.c (extract_typed_address): Likewise.
6428 * gdbtypes.c (make_pointer_type): Likewise (comment).
6429 * valops.c (value_cast): Likewise (comment).
6430 * gdbarch.c, gdbarch.h: Regenerate.
6432 2007-06-06 Markus Deuling <deuling@de.ibm.com>
6434 * gdbarch.sh (GET_LONGJMP_TARGET): Replace by gdbarch_get_longjmp_target.
6435 * infrun.c (handle_inferior_event): Likewise.
6436 * gdbarch.sh (GET_LONGJMP_TARGET_P): Replace by
6437 gdbarch_get_longjmp_target_p.
6438 * breakpoint.c (breakpoint_re_set): Likewise.
6439 * infrun.c (handle_inferior_event): Likewise.
6440 * gdbarch.c, gdbarch.h: Regenerate.
6442 2007-06-06 Ulrich Weigand <uweigand@de.ibm.com>
6444 * hppa-hpux-tdep.c (args_for_find_stub, HP_ACC_EH_notify_hook,
6445 HP_ACC_EH_set_hook_value, HP_ACC_EH_notify_callback, HP_ACC_EH_break,
6446 HP_ACC_EH_catch_throw, HP_ACC_EH_catch_catch, __eh_notification,
6447 hp_cxx_exception_support, hp_cxx_exception_support_initialized,
6448 eh_notify_hook_addr, eh_notify_callback_addr, eh_break_addr,
6449 eh_catch_throw_addr, break_callback_sal, setup_d_pid_in_inferior,
6450 find_stub_with_shl_get, cover_find_stub_with_shl_get,
6451 initialize_hp_cxx_exception_support, child_enable_exception_callback,
6452 current_ex_event, child_get_current_exception_event): Remove.
6453 (hppa_hpux_inferior_created): Remove.
6454 (hppa_hpux_init_abi): Do not install hppa_hpux_inferior_created.
6456 * breakpoint.h (deprecated_exception_catchpoints_are_fragile): Remove.
6457 (deprecated_exception_support_initialized): Remove.
6458 * breakpoint.c (deprecated_exception_catchpoints_are_fragile): Remove.
6459 (deprecated_exception_support_initialized): Remove.
6460 (breakpoint_init_inferior): Remove handling of non-zero
6461 deprecated_exception_catchpoints_are_fragile.
6463 * symtab.h (deprecated_hp_som_som_object_present): Remove.
6464 * symtab.c (deprecated_hp_som_som_object_present): Remove.
6465 * c-typeprint.c (c_type_print_base): Remove handling of non-zero
6466 deprecated_hp_som_som_object_present.
6467 * eval.c (evaluate_subexp_standard): Likewise.
6468 * valops.c (value_cast): Likewise.
6470 * parse.c (parse_nested_classes_for_hpacc, coloncolon): Remove.
6471 * parser-defs.h (parse_nested_classes_for_hpacc): Remove.
6472 * c-exp.y (yylex): Do not call parse_nested_classes_for_hpacc.
6474 2007-06-06 Ulrich Weigand <uweigand@de.ibm.com>
6476 * objfiles.h (ImportEntry, ExportEntry): Remove types.
6477 (struct objfile): Remove import_list, import_list_size,
6478 export_list, export_list_size members.
6479 (is_in_import_list): Remove prototype.
6480 * objfiles.c (is_in_import_list): Remove.
6481 * somread.c (init_import_symbols, init_export_symbols): Remove.
6482 (som_symfile_read): Do not call init_import_symbols. Do not
6483 set objfile->export_list and objfile->export_list_size.
6485 2007-06-05 Daniel Jacobowitz <dan@codesourcery.com>
6487 * dwarf2read.c (dwarf2_symbol_mark_computed): Fix formatting.
6488 Use the original objfile if necessary.
6490 2007-06-04 Daniel Jacobowitz <dan@codesourcery.com>
6492 * defs.h (ldirname): New prototype.
6493 * dwarf2read.c (read_file_scope): Use DW_AT_name if DW_AT_comp_dir is
6495 * utils.c (ldirname): New function.
6496 * xml-tdesc.c (file_read_description_xml): Use ldirname.
6498 2007-06-01 Ulrich Weigand <uweigand@de.ibm.com>
6500 * spu-tdep.c (spu_push_dummy_call): Store stack back chain.
6502 2007-06-01 Joel Brobecker <brobecker@adacore.com>
6504 * solib-svr4.c (svr4_solib_create_inferior_hook): Remove warning.
6506 2007-06-01 Ulrich Weigand <uweigand@de.ibm.com>
6508 * irix5-nat.c (JB_ELEMENT_SIZE, get_longjmp_target): Remove.
6510 2007-06-01 Ulrich Weigand <uweigand@de.ibm.com>
6512 * ppc-linux-tdep.c (INSTR_SC, INSTR_LI_R0_0x6666, INSTR_LI_R0_0x7777,
6513 INSTR_LI_R0_NR_sigreturn, INSTR_LI_R0_NR_rt_sigreturn): Remove.
6514 (PPC_LINUX_SIGNAL_FRAMESIZE, PPC_LINUX_REGS_PTR_OFFSET,
6515 PPC_LINUX_HANDLER_PTR_OFFSET): Remove.
6516 (ppc_linux_in_sigtramp, insn_is_sigreturn,
6517 ppc_linux_at_sigtramp_return_path): Remove.
6519 2007-05-31 Markus Deuling <deuling@de.ibm.com>
6521 * xtensa-tdep.c (XTENSA_IS_ENTRY, extract_call_winsize)
6522 (xtensa_register_write_masked, xtensa_register_read_masked)
6523 (xtensa_extract_return_value, xtensa_store_return_value
6524 (xtensa_push_dummy_call, xtensa_breakpoint_from_pc): Replace
6525 TARGET_BYTE_ORDER by gdbarch_byte_order.
6526 * sh-tdep.c (sh_breakpoint_from_pc, gdb_print_insn_sh)
6527 (sh_justify_value_in_reg, sh_next_flt_argreg, sh_push_dummy_call_fpu)
6528 (sh_extract_return_value_fpu, sh_store_return_value_fpu): Likewise.
6529 * sh64-tdep.c (sh64_breakpoint_from_pc, gdb_print_insn_sh64)
6530 (sh64_push_dummy_call, sh64_extract_return_value)
6531 (sh64_store_return_value, sh64_register_convert_to_virtual)
6532 (sh64_register_convert_to_raw, sh64_pseudo_register_read)
6533 (sh64_pseudo_register_write, sh64_do_fp_register)
6534 (sh64_frame_prev_register): Likewise.
6535 * score-tdep.c (score_print_insn, score_breakpoint_from_pc)
6536 (score_return_value, score_push_dummy_call, score_fetch_inst): Likewise.
6537 * rs6000-tdep.c (rs6000_breakpoint_from_pc, rs6000_push_dummy_call)
6538 (e500_move_ev_register,gdb_print_insn_powerpc): Likewise.
6539 * remote-m32r-sdi.c (m32r_resume, m32r_wait): Likewise.
6540 * ppc-linux-nat.c (store_register): Likewise.
6541 * nto-tdep.c (nto_find_and_open_solib)
6542 (nto_init_solib_absolute_prefix): Likewise.
6543 * mips-tdep.c (mips_pseudo_register_read, mips_pseudo_register_write)
6544 (mips_convert_register_p, mips_eabi_push_dummy_call)
6545 (mips_n32n64_push_dummy_call, mips_n32n64_return_value)
6546 (mips_o32_push_dummy_call, mips_o32_return_value)
6547 (mips_o64_push_dummy_call, mips_o64_return_value, mips_o64_return_value)
6548 (mips_read_fp_register_single, mips_read_fp_register_double)
6549 (mips_print_register, print_gp_register_row, gdb_print_insn_mips)
6550 (mips_breakpoint_from_pc): Likewise.
6551 * mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset): Likewise.
6552 * mips-linux-tdep.c (mips64_supply_fpregset, mips64_fill_fpregset)
6553 (mips_linux_o32_sigframe_init): Likewise.
6554 * m32r-tdep.c (m32r_memory_insert_breakpoint)
6555 (m32r_memory_remove_breakpoint, m32r_breakpoint_from_pc): Likewise.
6556 * libunwind-frame.c (libunwind_frame_cache, libunwind_frame_sniffer)
6557 (libunwind_sigtramp_frame_sniffer, libunwind_get_reg_special): Likewise.
6558 * iq2000-tdep.c (iq2000_breakpoint_from_pc): Likewise.
6559 * coffread.c (process_coff_symbol): Likewise.
6560 * arm-tdep.c (convert_from_extended, convert_to_extended)
6561 (gdb_print_insn_arm): Likewise.
6563 2007-05-31 Markus Deuling <deuling@de.ibm.com>
6565 * gdbarch.sh (NUM_REGS): Replace by gdbarch_num_regs.
6566 * i386-tdep.c (i386_dbx_reg_to_regnum)
6567 (i386_svr4_reg_to_regnum): Likewise.
6568 * inf-ptrace.c (inf_ptrace_fetch_registers)
6569 (inf_ptrace_store_registers): Likewise.
6570 * corelow.c (get_core_registers): Likewise.
6571 * i386-linux-nat.c (supply_gregset, fill_gregset)
6572 (i386_linux_fetch_inferior_registers)
6573 (i386_linux_store_inferior_registers): Likewise.
6574 * remote.c (init_remote_state,packet_reg_from_regnum)
6575 (packet_reg_from_pnum,process_g_packet,remote_fetch_registers)
6576 (remote_prepare_to_store,store_registers_using_G)
6577 (remote_store_registers,remote_arch_state): Likewise.
6578 * tracepoint.c (encode_actions): Likewise.
6579 * mi/mi-main.c (mi_cmd_data_list_register_names)
6580 (mi_cmd_data_list_changed_registers,mi_cmd_data_list_register_values)
6581 (mi_cmd_data_write_register_values): Likewise.
6582 * tui/tui-regs.c (tui_show_register_group)
6583 (tui_show_register_group): Likewise.
6584 * xtensa-tdep.h (FP_ALIAS): Likewise.
6585 * xtensa-tdep.c (xtensa_register_name,xtensa_register_type)
6586 (xtensa_reg_to_regnum,xtensa_pseudo_register_read)
6587 (xtensa_pseudo_register_write,xtensa_register_reggroup_p): Likewise.
6588 * win32-nat.c (do_win32_fetch_inferior_registers)
6589 (do_win32_store_inferior_registers,fetch_elf_core_registers
6590 * user-regs.h: Likewise (comment).
6591 * user-regs.c (user_reg, user_reg_map_name_to_regnum): Likewise.
6592 * trad-frame.c (trad_frame_alloc_saved_regs): Likewise.
6593 * target-descriptions.h: Likewise (comment).
6594 * target-descriptions.c (tdesc_use_registers): Likewise (comment).
6595 * target.c (debug_print_register): Likewise.
6596 * stack.c (frame_info): Likewise.
6597 * stabsread.c (define_symbol): Likewise.
6598 * sh64-tdep.c (sh64_do_pseudo_register,sh64_print_register)
6599 (sh64_media_print_registers_info)
6600 (sh64_compact_print_registers_info): Likewise.
6601 * rs6000-tdep.c (rs6000_register_sim_regno): Likewise.
6602 * rs6000-nat.c (fetch_register,store_register): Likewise.
6603 * remote-sim.c (one2one_register_sim_regno,gdbsim_fetch_register)
6604 (gdbsim_fetch_register,gdbsim_store_register): Likewise.
6605 * remote-mips.c (mips_fetch_registers,mips_store_registers): Likewise.
6606 * remote-m32r-sdi.c (m32r_fetch_registers)
6607 (m32r_store_registers): Likewise.
6608 * reggroups.c (default_register_reggroup_p): Likewise.
6609 * regcache.c (init_regcache_descr,register_size,regcache,regcache_save)
6610 (regcache_restore,regcache_dump): Likewise.
6611 * monitor.c (monitor_fetch_registers,monitor_store_registers): Likewise.
6612 * mips-tdep.c (mips_xfer_register,mips_register_name)
6613 (mips_register_reggroup_p,mips_pseudo_register_read)
6614 (mips_pseudo_register_write,mips_convert_register_p,mips_register_type)
6615 (mips_unwind_pc,mips_unwind_sp,mips_unwind_dummy_id,set_reg_offset)
6616 (mips16_scan_prologue,mips_insn16_frame_cache,reset_saved_regs)
6617 (mips32_scan_prologue,mips_insn32_frame_cache,read_next_frame_reg)
6618 (mips_n32n64_return_value,mips_o32_return_value,mips_o64_return_value)
6619 (print_gp_register_row,mips_print_registers_info)
6620 (mips_stab_reg_to_regnum,mips_dwarf_dwarf2_ecoff_reg_to_regnum)
6621 (mips_register_sim_regno): Likewise.
6622 * mips-linux-tdep.c (mips_linux_o32_sigframe_init)
6623 (mips_linux_n32n64_sigframe_init): Likewise.
6624 * mips-linux-nat.c (mips_linux_register_addr)
6625 (mips64_linux_register_addr): Likewise.
6626 * findvar.c (value_of_register): Likewise.
6627 * infcmd.c (default_print_registers_info,registers_info)
6628 (print_vector_info,print_float_info): Likewise.
6629 * mips64obsd-tdep.c (mips64obsd_sigframe_init): Likewise.
6630 * inf-child.c (inf_child_fetch_inferior_registers): Likewise.
6631 * m68k-tdep.c (m68k_dwarf_reg_to_regnum): Likewise.
6632 * m68hc11-tdep.c (m68hc11_frame_unwind_cache(: Likewise.
6633 * m32r-tdep.c (m32r_frame_unwind_cache): Likewise.
6634 * ia64-linux-nat.c (ia64_register_addr,ia64_cannot_fetch_register)
6635 (ia64_cannot_store_register,ia64_linux_fetch_registers)
6636 (ia64_linux_store_registers): Likewise.
6637 * hpux-thread.c (hpux_thread_fetch_registers)
6638 (hpux_thread_store_registers): Likewise.
6639 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM,E_PSEUDO_EXR_REGNUM)
6640 (h8300_init_frame_cache,h8300_frame_cache,h8300_frame_prev_register)
6641 (h8300_register_type): Likewise.
6642 * dwarf2-frame.c (dwarf2_frame_cache)
6643 (dwarf2_frame_state_alloc_regs): Likewise.
6644 * cris-tdep.c (cris_register_size,cris_cannot_fetch_register)
6645 (cris_cannot_store_register,crisv32_cannot_fetch_register)
6646 (crisv32_cannot_store_register,cris_register_name): Likewise.
6647 * avr-tdep.c (avr_frame_unwind_cache): Likewise.
6648 * arch-utils.c (legacy_register_sim_regno)
6649 (legacy_virtual_frame_pointer): Likewise.
6650 * arm-tdep.c (arm_make_prologue_cache,arm_register_sim_regno):Likewise.
6651 * arm-tdep.h: Likewise (comment).
6652 * frv-tdep.c (frv_register_sim_regno): Likewise.
6653 * m68klinux-nat.c (old_fetch_inferior_registers)
6654 (old_store_inferior_registers): Likewise.
6655 * m32c-tdep.c (m32c_virtual_frame_pointer): Likewise.
6656 * irix5-nat.c (fetch_core_registers): Likewise.
6657 * hppa-tdep.c (hppa_frame_cache): Likewise.
6658 * hppa-linux-nat.c (hppa_linux_register_addr)
6659 (hppa_linux_fetch_inferior_registers)
6660 (hppa_linux_store_inferior_registers): Likewise.
6661 * hppa-hpux-nat.c (hppa_hpux_fetch_inferior_registers)
6662 (hppa_hpux_store_inferior_registers): Likewise.
6663 * amd64-nat.c (amd64_native_gregset_reg_offset)
6664 (amd64_supply_native_gregset,amd64_collect_native_gregset): Likewise.
6665 * dbug-rom.c (dbug_regname): Likewise.
6666 * m68hc11-tdep.c (m68hc11_frame_unwind_cache)
6667 (HARD_PAGE_REGNUM (comment)): Likewise.
6668 * gdbarch.sh (NUM_PSEUDO_REGS): Replace by gdbarch_num_pseudo_regs.
6669 * i386-tdep.c (i386_dbx_reg_to_regnum)
6670 (i386_svr4_reg_to_regnum): Likewise.
6671 * mi/mi-main.c (mi_cmd_data_list_register_names)
6672 (mi_cmd_data_list_changed_registers,mi_cmd_data_list_register_values)
6673 (mi_cmd_data_write_register_values): Likewise.
6674 * gdbarch.c, gdbarch.h: Regenerate.
6675 * tui/tui-regs.c (tui_show_register_group): Likewise.
6676 * xtensa-tdep.h (FP_ALIAS): Likewise.
6677 * user-regs.h: Likewise (comment).
6678 * user-regs.c (user_reg, user_reg_map_name_to_regnum): Likewise.
6679 * trad-frame.c (trad_frame_alloc_saved_regs): Likewise.
6680 * target-descriptions.h: Likewise (comment).
6681 * target.c (debug_print_register): Likewise.
6682 * stack.c (frame_info): Likewise.
6683 * stabsread.c (define_symbol): Likewise.
6684 * sh64-tdep.c (sh64_print_register,sh64_media_print_registers_info)
6685 (sh64_compact_print_registers_info): Likewise.
6686 * rs6000-tdep.c (rs6000_register_sim_regno): Likewise.
6687 * regcache.c (init_regcache_descr,register_size,regcache,regcache_save
6688 (regcache_restore,regcache_dump): Likewise.
6689 * mips-tdep.c (print_gp_register_row,mips_print_registers_info)
6690 (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
6691 (mips_stab_reg_to_regnum): Likewise.
6692 * findvar.c (value_of_register): Likewise.
6693 * infcmd.c (default_print_registers_info,registers_info)
6694 (print_vector_info,print_float_info): Likewise.
6695 * m68k-tdep.c (m68k_dwarf_reg_to_regnum): Likewise.
6696 * h8300-tdep.c (h8300_register_type): Likewise.
6697 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
6698 * frame.h (SIZEOF_FRAME_SAVED_REGS): Likewise.
6699 * xtensa-tdep.c (xtensa_register_type,xtensa_reg_to_regnum)
6700 (xtensa_pseudo_register_read,xtensa_pseudo_register_write): Likewise.
6701 * parse.c: Remove comment.
6702 * gdbarch.c, gdbarch.h: Regenerate
6704 2007-05-31 Markus Deuling <deuling@de.ibm.com>
6706 * gdbarch.sh (CANNOT_FETCH_REGISTER): Replace by
6707 gdbarch_cannot_fetch_register.
6708 * alpha-nat.c (fetch_osf_core_registers): Likewise.
6709 * hppa-linux-nat.c (fetch_register): Likewise.
6710 * inf-ptrace.c (inf_ptrace_fetch_register): Likewise.
6711 * m68klinux-nat.c (fetch_register): Likewise.
6712 * mipsnbsd-tdep.c (mipsnbsd_supply_reg, mipsnbsd_supply_fpreg):
6714 * gdbarch.sh (CANNOT_STORE_REGISTER): Replace by
6715 gdbarch_cannot_store_register.
6716 * hppa-linux-nat.c (store_register): Likewise.
6717 * inf-ptrace.c (inf_ptrace_store_register): Likewise.
6718 * regcache.c (regcache_raw_write): Likewise.
6719 * m68klinux-nat.c (store_register): Likewise.
6720 * mipsnbsd-tdep.c (mipsnbsd_fill_reg, mipsnbsd_fill_fpreg): Likewise.
6721 * gdbarch.c, gdbarch.h: Regenerate.
6723 2007-05-31 Markus Deuling <deuling@de.ibm.com>
6725 * gdbarch.sh (TARGET_OSABI): Replace by gdbarch_osabi.
6726 * gdbarch.c, gdbarch.h: Regenerate.
6728 2007-05-31 Markus Deuling <deuling@de.ibm.com>
6730 * gdbarch.sh (TARGET_CHAR_SIGNED): Replace by gdbarch_char_signed.
6731 * gdbtypes.c (build_gdbtypes, gdbtypes_post_init): Likewise.
6732 * gdbarch.c, gdbarch.h: Regenerate.
6734 2007-05-31 Markus Deuling <deuling@de.ibm.com>
6736 * gdbarch.sh (TARGET_BYTE_ORDER): Replace by gdbarch_byte_order.
6737 * ax-gdb.c (gen_bitfield_ref): Likewise.
6738 * mi/mi-main.c (get_register): Likewise.
6739 * findvar.c (default_value_from_register, extract_signed_integer)
6740 (extract_unsigned_integer, extract_long_unsigned_integer)
6741 (store_signed_integer, store_unsigned_integer): Likewise.
6742 * regcache.c (regcache_dump): Likewise.
6743 * value.c (lookup_internalvar, value_of_internalvar)
6744 (set_internalvar): Likewise.
6746 * valprint.c (print_binary_chars, print_octal_chars)
6747 (print_decimal_chars, print_hex_chars, print_char_chars): Likewise.
6748 * infcmd.c (default_print_registers_info): Likewise.
6749 * arch-utils.c (selected_byte_order, show_endian): Likewise.
6750 * stabsread.c (define_symbol): Likewise.
6751 * doublest.c (floatformat_from_length, floatformat_from_type)
6752 (extract_typed_floating, store_typed_floating): Likewise.
6753 * gdbarch.c, gdbarch.h: Regenerate.
6755 2007-05-31 Markus Deuling <deuling@de.ibm.com>
6757 * gdbarch.sh (CALL_DUMMY_LOCATION): Replace by
6758 gdbarch_call_dummy_location.
6759 * infcall.c (call_function_by_hand): Likewise.
6760 * inferior.h: Change comment.
6761 * arch-utils.c: Change comment.
6762 * gdbarch.c, gdbarch.h: Regenerate.
6764 2007-05-28 Joel Brobecker <brobecker@adacore.com>
6766 * solib-aix5.c: Delete.
6767 * Makefile.in (solib-aix5.o): Delete rule.
6769 2007-05-23 Daniel Jacobowitz <dan@codesourcery.com>
6771 * breakpoint.h (enum bpstat_what_main_action): Remove
6772 BPSTAT_WHAT_THROUGH_SIGTRAMP.
6773 * infrun.c (process_event_stop_test): Do not check for it.
6775 2007-05-22 Chris Dearman <chris@mips.com>
6776 Maciej W. Rozycki <macro@mips.com>
6778 * ser-unix.c (show_serial_hwflow): New function.
6779 (hardwire_raw): Add hardware flow control support.
6780 (_initialize_ser_hardwire): Add "set/show remoteflow".
6781 * Makefile.in (ser-unix.o): Depend on $(gdbcmd_h).
6782 * NEWS: Document the new command.
6784 2007-05-21 Ulrich Weigand <uweigand@de.ibm.com>
6786 * config/i386/tm-linux.h (sys_quotactl): Do not define.
6787 * configure.ac (sys_quotactl, START_INFERIOR_TRAPS_EXPECTED): Do not
6788 define for i[[3456]]86-*-linux* native configurations.
6789 * config.in, configure: Regenerate.
6791 2007-05-19 Joel Brobecker <brobecker@adacore.com>
6793 * rs6000-nat.c (xcoff_relocate_symtab): Do nothing if debugging
6794 a core file. Add comment in the function description.
6796 2007-05-18 Caroline Tice <ctice@apple.com>
6798 * c-valprint.c (c_value_print): If the initialized field of the
6799 value struct is 0, print out "[uninitialized]" before the value.
6800 * dwarf2expr.c (execute_stack_op): Initialize ctx->initialized field;
6801 allow DW_OP_GNU_uninit as legal op following a DW_OP_reg op or a
6802 DW_OP_regx op; add case for DW_OP_GNU_uninit and update
6803 ctx->initialized appropriately. Verify no location op follows
6805 * dwarf2expr.h (struct dwarf_expr_context): New field, initialized.
6806 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Add call to
6807 set_value_initialized.
6808 * dwarf2read.c (dwarf_stack_op_name): Add case for DW_OP_GNU_uninit.
6809 (decode_locdesc): Add case for DW_OP_GNU_uninit.
6810 * value.c (struct value): New field, initialized.
6811 (allocate_value): Initialize new field.
6812 (set_value_initialized): New function.
6813 (value_initialized): New function.
6814 * value.h (value_initialized): New extern declaration.
6815 (set_value_initialized): Likewise.
6817 2007-05-18 Caroline Tice <ctice@apple.com>
6819 * MAINTAINERS (Write After Approval): Add self.
6821 2007-05-17 Joel Brobecker <brobecker@adacore.com>
6823 * gdbtypes.c (make_reference_type): Preserve the type chain
6824 and set the length of all the variants of the pointer type.
6826 2007-05-17 Joel Brobecker <brobecker@adacore.com>
6828 * gdbtypes.c (make_pointer_type): Preserve the pointer type chain
6829 and set the length of all the variants of the pointer type.
6831 2007-05-17 Maciej W. Rozycki <macro@mips.com>
6833 * mips-tdep.c (mips_n32n64_push_dummy_call): Fix and reformat a
6835 (mips_o64_push_dummy_call): Reformat a comment.
6837 2007-05-17 Qinwei <qinwei@sunnorth.com.cn>
6839 * score-tdep.c (score_frame_cache->fp, score_analyze_prologue)
6840 (score_prologue_frame_base_address): Return fp to keep gdb print
6841 local variables correctly when debugging information is stabs.
6843 (score_analyze_prologue): For software watchpoint, fetch all the
6844 instructions from range [startaddr, pc] once and identify them locally
6845 to reduce memory access.
6846 (score_malloc_and_get_memblock, score_free_memblock)
6847 (score_adjust_memblock_ptr): New functions.
6848 (score_fetch_inst): Fetch single instruction or mutiple instructions.
6850 (score_target_can_use_watch, score_stopped_by_watch)
6851 (score_target_insert_watchpoint, score_target_remove_watchpoint)
6852 (score_target_insert_hw_breakpoint, score_target_remove_hw_breakpoint):
6853 New functions for remote & local hw-watchpoint and hw-breakpoint.
6855 2007-05-16 Alfred M. Szmidt <ams@gnu.org>
6857 * reply_mig_hack.awk: Check for `auto const mach_msg_type_t'
6858 declarations as well.
6860 2007-05-16 Ulrich Weigand <uweigand@de.ibm.com>
6862 * config/arm/embed.mt (DEPRECATED_TM_FILE): Set to tm-arm.h.
6863 * config/arm/tm-embed.h: Delete file.
6865 * arm-tdep.h (arm_software_single_step): Declare.
6866 * arm-tdep.c (arm_software_single_step): Make global.
6867 (arm_gdbarch_init): Move set_gdbarch_software_single_step call
6869 * arm-linux-tdep.c (arm_linux_init_abi): ... here ...
6870 * armnbsd-tdep.c (arm_netbsd_init_abi_common): ... here ...
6871 * armobsd-tdep.c (armobsd_init_abi): ... here ...
6872 * arm-wince-tdep.c (arm_wince_init_abi): ... and here.
6874 * arm-tdep.c (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT): No longer
6875 allow defines to be overriden by TM file.
6876 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Likewise. Also,
6877 change default to {0xbe,0xbe}.
6878 * armobsd-tdep.c (arm_obsd_thumb_le_breakpoint,
6879 arm_obsd_thumb_be_breakpoint): New global variables.
6880 (armobsd_init_abi): Override tdep->thumb_breakpoint and
6881 tdep->thumb_breakpoint_size.
6882 * arm-wince-tdep.c (arm_wince_thumb_le_breakpoint): New variable.
6883 (arm_wince_init_abi): Override tdep->thumb_breakpoint and
6884 tdep->thumb_breakpoint_size.
6886 * arm-tdep.c (arm_gdbarch_init): Add set_gdbarch_skip_trampoline_code.
6888 2007-05-16 Daniel Jacobowitz <dan@codesourcery.com>
6890 * NEWS: Mention removed "set mips stack-arg-size" and "set mips
6893 * mips-tdep.c (MIPS32_REGSIZE, MIPS64_REGSIZE): New constants.
6894 (size_auto, size_32, size_64, size_enums, mips_abi_regsize_string)
6895 (mips_stack_argsize_string, mips_stack_argsize): Delete.
6896 (mips_abi_regsize): Simplify.
6897 (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call)
6898 (mips_n32n64_return_value, mips_o32_push_dummy_call)
6899 (mips_o32_return_value, mips_o64_push_dummy_call)
6900 (mips_o64_return_value): Propogate constant register sizes. Use the
6901 ABI register size instead of mips_stack_argsize.
6902 (mips_dump_tdep): Don't print mips_stack_argsize.
6903 (_initialize_mips_tdep): Remove saved-gpreg-size and stack-arg-size
6906 2007-05-16 Daniel Jacobowitz <dan@codesourcery.com>
6908 * config/mips/linux.mt (DEPRECATED_TM_FILE): Delete.
6909 * config/mips/tm-linux.h: Delete.
6910 * mips-linux-tdep.c (mips_svr4_so_ops): New.
6911 (mips_linux_in_dynsym_resolve_code): Make static. Use
6912 svr4_in_dynsym_resolve_code.
6913 (mips_linux_init_abi): Initialize mips_svr4_so_ops. Call
6915 * solib-svr4.c (svr4_in_dynsym_resolve_code, svr4_so_ops): Make
6917 * solib-svr4.h (svr4_so_ops, svr4_in_dynsym_resolve_code): Declare.
6918 * Makefile.in (mips-linux-tdep.o): Update.
6919 * solib.c (set_solib_ops): New.
6920 (current_target_so_ops): Update comment.
6921 * solib.h (set_solib_ops): New prototype.
6923 2007-05-16 Chris Dearman <chris@mips.com>
6925 * printcmd.c (do_examine): Fix typos in a comment.
6927 2007-05-16 Richard Sandiford <richard@codesourcery.com>
6929 * configure.ac: Allow sysroots to be relocated under $prefix as
6930 well as $exec_prefix.
6931 * configure: Regenerate.
6933 2007-05-14 Ulrich Weigand <uweigand@de.ibm.com>
6935 * hppa-hpux-tdep.c: Do not include <dl.h> or <machine/save_state.h>.
6936 (offsetof): Do not define.
6937 (find_stub_with_shl_get): Use numerical value 3 instead of
6938 symbolic value TYPE_PROCEDURE.
6940 2007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
6942 * gdb_proc_service.h (paddr_t): Delete typedef.
6943 * proc-service.c (ps_addr_to_core_addr, core_addr_to_ps_addr): New.
6944 (ps_xfer_memory): Take a psaddr_t. Use ps_addr_to_core_addr.
6945 (ps_pglobal_lookup): Take a psaddr_t *. Use core_addr_to_ps_addr.
6946 (ps_pdread, ps_pdwrite, ps_ptread, ps_ptwrite): Take a psaddr_t.
6947 * sol-thread.c (gdb_ps_addr_t): Use psaddr_t instead of paddr_t.
6948 * Makefile.in (proc-service.o): Update.
6950 2007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
6952 * Makefile.in (mips-tdep.o): Update.
6953 * mips-tdep.c (mips_gdbarch_init): Register the dwarf2 CFI
6956 2007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
6958 * dwarf2-frame.c (dwarf2_frame_prev_register): Use pack_long
6959 instead of store_typed_address.
6960 * value.c (pack_long): New.
6961 (value_from_longest): Use it.
6962 * value.h (pack_long): New prototype.
6964 2007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
6966 * dwarf2-frame.c (read_encoded_value): Correct typo. Use
6967 DW_EH_PE_signed if appropriate.
6969 2007-05-14 Paul Brook <paul@codesourcery.com>
6970 Daniel Jacobowitz <dan@codesourcery.com>
6972 * dwarf2read.c (dwarf2_debug_line_missing_file_complaint): New
6974 (dwarf_decode_lines): Check for line info without a file.
6976 2007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
6978 * linux-thread-db.c (thread_db_pid_to_str): Print thread IDs
6981 2007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
6983 * jv-exp.y (push_fieldnames): Use STRUCTOP_PTR instead of
6985 * jv-lang.c (evaluate_subexp_java): Handle STRUCTOP_PTR instead of
6987 * jv-typeprint.c (java_print_type): Do not crash on NULL varstring.
6989 2007-05-14 Ulrich Weigand <uweigand@de.ibm.com>
6991 * gdbarch.sh (read_sp): Remove.
6992 * gdbarch.c, gdbarch.h: Regenerate.
6993 * frame.c (frame_sp_unwind): Do not call TARGET_READ_SP.
6995 * avr-tdep.c (avr_read_sp): Remove.
6996 (avr_unwind_sp): New function.
6997 (avr_gdbarch_init): Install unwind_sp instead of read_sp callback.
6998 * mips-tdep.c (mips_read_sp): Remove.
6999 (mips_unwind_sp): New function.
7000 (mips_gdbarch_init): Install unwind_sp instead of read_sp callback.
7001 * score-tdep.c (score_read_unsigned_register): Remove.
7002 (score_read_sp): Remove.
7003 (score_unwind_sp): New function.
7004 (score_gdbarch_init): Install unwind_sp instead of read_sp callback.
7006 2007-05-14 Maxim Grigoriev <maxim2405@gmail.com>
7008 * buildsym.c (start_subfile): Handle absolute pathnames
7009 while comparing subfile names.
7011 2007-05-13 Ulrich Weigand <uweigand@de.ibm.com>
7013 * hppa-hpux-tdep.c: Include "regcache.h".
7014 * hppa-linux-tdep.c: Likewise.
7015 * hppa-tdep.c: Include "gdb_stdint.h".
7016 (find_unwind_entry): Cast host pointer to uintptr_t before passing
7018 * Makefile.in: Update dependencies.
7020 2007-05-13 Ulrich Weigand <uweigand@de.ibm.com>
7022 * blockframe.c: Remove obsolete comments.
7023 * alpha-nat.c (fetch_osf_core_registers): Update comment.
7024 * arm-tdep.h (enum gdb_regnum): Remove obsolete part of comment.
7025 * hppa-tdep.h (enum hppa_regnum): Likewise.
7026 * mips-tdep.h: Likewise.
7027 * m68hc11-tdep.c: Likewise.
7029 2007-05-13 Ulrich Weigand <uweigand@de.ibm.com>
7031 * inferior.h (read_sp): Remove prototype.
7032 * regcache.c (read_sp): Remove.
7033 * gcore.c (derive_stack_segment): Use get_frame_sp instead of read_sp.
7034 * infcall.c (call_function_by_hand): Likewise.
7035 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Use regcache instead
7037 * rs6000-tdep.c (rs6000_push_dummy_call): Likewise.
7039 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
7041 * i386-linux-nat.c (i386_linux_resume): Use regcache functions
7042 instead of read_register and read_register_pid.
7044 * ia64-linux-nat.c (enable_watchpoints_in_psr): Use REGCACHE
7045 argument instead of PTID. Use regcache functions instead of
7047 (ia64_linux_insert_watchpoint): Update call.
7048 (ia64_linux_stopped_data_address): Use regcache functions
7049 instead of read_register_pid and write_register_pid.
7051 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
7053 * libunwind-frame.h (struct regcache): Add forward declaration.
7054 (libunwind_get_reg_special): Add REGCACHE argument.
7055 * libunwind-frame.c (libunwind_get_reg_special): Add REGCACHE
7056 argument. Pass it to unw_init_remote_p.
7058 * ia64-tdep.c (ia64_pseudo_register_read): Pass regcache to
7059 libunwind_get_reg_special.
7060 (ia64_access_reg): Remove "write" case.
7061 (ia64_access_fpreg): Likewise. Read from next_frame passed
7062 as callback argument instead of from current_regcache.
7063 (ia64_access_rse_reg): Remove "write" case. Read from regcache
7064 passed as callback argument instead of from current_regcache.
7065 (ia64_access_rse_fpreg): New function.
7066 (ia64_unw_rse_acce): Use it instead of ia64_access_fpreg.
7068 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
7070 * NEWS: Mention SPU overlay support.
7072 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
7074 * spu-tdep.c (spu_frame_unwind_cache): Add comment.
7076 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
7078 * breakpoint.c (remove_breakpoint): Do not remove software
7079 breakpoints in unmapped overlay sections.
7081 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
7083 * spu-tdep.c: Include "observer.h".
7084 (spu_frame_unwind_cache): Unwind PC through overlay return stubs.
7085 (spu_overlay_data): New variable.
7086 (struct spu_overlay_table): New type.
7087 (spu_get_overlay_table, spu_overlay_update_osect, spu_overlay_update,
7088 spu_overlay_new_objfile): New functions.
7089 (spu_gdbarch_init): Install spu_overlay_update.
7090 (_initialize_spu_tdep): Register spu_overlay_new_objfile,
7091 allocate spu_overlay_data objfile data.
7093 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
7095 * gdbarch.sh (overlay_update): New gdbarch function.
7096 (struct obj_section): Add forward declaration.
7097 * gdbarch.c, gdbarch.h: Regenerate.
7099 * symfile.c (simple_overlay_update): Make global.
7100 (target_overlay_update): Remove variable.
7101 (overlay_is_mapped): Call gdbarch_overlay_update instead of
7102 target_overlay_update.
7103 (overlay_load_command): Likewise.
7104 * symfile.h (struct obj_section): Add forward declaration.
7105 (simple_overlay_update): Add prototype.
7107 * m32r-tdep.c (m32r_gdbarch_init): Install simple_overlay_update.
7109 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
7111 * observer.sh: Add "struct objfile" forward declaration.
7112 * target.h (deprecated_target_new_objfile_hook): Remove.
7113 * symfile.c (deprecated_target_new_objfile_hook): Remove.
7114 (clear_symtab_users): Call observer_notify_new_objfile.
7115 (symbol_file_add_with_addrs_or_offsets): Likewise.
7116 * rs6000-nat.c: Include "observer.h".
7117 (vmap_ldinfo): Call observer_notify_new_objfile.
7118 (xcoff_relocate_core): Likewise.
7119 * remote.c (remote_new_objfile_chain): Remove.
7120 (remote_new_objfile): Do not call remote_new_objfile_chain.
7121 (_initialize_remote): Use observer_attach_new_objfile.
7122 * tui/tui-hooks.c (tui_target_new_objfile_chain): Remove.
7123 (tui_new_objfile_hook): Do not call tui_target_new_objfile_chain.
7124 (_initialize_tui_hooks): Use observer_attach_new_objfile.
7125 * aix-thread.c: Include "observer.h".
7126 (target_new_objfile_chain): Remove.
7127 (new_objfile): Do not call target_new_objfile_chain.
7128 (_initialize_aix_thread): Use observer_attach_new_objfile.
7129 * hpux-thread.c: Include "observer.h"
7130 (target_new_objfile_chain): Remove.
7131 (hpux_thread_new_objfile): Make static. Do not call
7132 target_new_objfile_chain.
7133 (_initialize_hpux_thread): Use observer_attach_new_objfile.
7134 * linux-thread-db.c: Include "observer.h".
7135 (target_new_objfile_chain): Remove.
7136 (thread_db_new_objfile): Do not call target_new_objfile_chain.
7137 (_initialize_thread_db): Use observer_attach_new_objfile.
7138 * sol-thread.c: Include "observer.h".
7139 (target_new_objfile_chain): Remove.
7140 (sol_thread_new_objfile): Make static. Do not call
7141 target_new_objfile_chain.
7142 (_initialize_sol_thread): Use observer_attach_new_objfile.
7143 * Makefile.in (aix-thread.o, hpux-thread.o, linux-thread-db.o,
7144 rs6000-nat.o, sol-thread.o, tui-hooks.o): Add dependency on
7147 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
7149 * gdbarch.sh (remote_translate_xfer_address): Remove.
7150 * gdbarch.h, gdbarch.c: Regenerate.
7151 * arch-utils.c (generic_remote_translate_xfer_address): Remove.
7152 * arch-utils.h (generic_remote_translate_xfer_address): Remove.
7153 * remote.c (remote_write_bytes_aux, remote_read_bytes): Do not
7154 call gdbarch_remote_translate_xfer_address.
7155 * frv-tdep.c (frv_gdbarch_init): Do not call
7156 set_gdbarch_remote_translate_xfer_address.
7157 * ia64-tdep.c (ia64_remote_translate_xfer_address): Remove.
7158 (ia64_gdbarch_init): Do not install it.
7160 2007-05-11 Bob Wilson <bob.wilson@acm.org>
7162 * NEWS: Mention change in handling the -tui option.
7164 2007-05-11 Daniel Jacobowitz <dan@codesourcery.com>
7166 * linux-thread-db.c (enable_thread_event_reporting): Fix comment
7169 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
7171 * breakpoint.c (single_step_breakpoint_inserted_here_p): New function.
7172 (breakpoint_inserted_here_p): Call it.
7173 (software_breakpoint_inserted_here_p): Likewise.
7175 2007-05-10 Ulrich Weigand <uweigand@de.ibm.com>
7177 * inf-ptrace.c (inf_ptrace_register_u_offset): Adapt parameter list.
7178 (inf_ptrace_fetch_register): Add register_u_offset callback parameters
7179 GDBARCH and STORE_P. Handle callback (CORE_ADDR) -1 return value.
7180 (inf_ptrace_store_register): Likewise.
7181 (inf_ptrace_trad_target): Adapt register_u_offset parameter list.
7182 * inf-ptrace.h (inf_ptrace_trad_target): Likewise.
7184 * vax-nat.c (vax_register_u_offset): Adapt parameter list.
7186 * linux-nat.c (linux_trad_target): Adapt parameter list.
7187 * linux-nat.h (linux_trad_target): Likewise.
7189 * alpha-linux-nat.c (alpha_linux_register_u_offset): Adapt parameters.
7191 * mips-linux-nat.c (mips_linux_cannot_fetch_register): Remove.
7192 (mips_linux_cannot_store_register): Likewise.
7193 (mips_linux_register_addr): Add GDBARCH and STORE_P parameters.
7194 Return (CORE_ADDR) -1 for registers that cannot be fetched or
7195 stored via ptrace. Use GDBARCH instead of current_gdbarch.
7196 (mips64_linux_register_addr): Likewise.
7197 (mips_linux_register_u_offset): Adapt parameter list. Pass
7198 GDBARCH and STORE_P on to mips{64}_linux_register_addr.
7200 * config/mips/linux.mh (NAT_FILE): Set to config/nm-linux.h.
7201 * config/mips/nm-linux.h: Delete file.
7203 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
7205 * remote.c (remote_detach): Error out if remote can't detach.
7207 2007-05-10 Luis Machado <luisgpm@br.ibm.com>
7209 * rs6000-tdep.c: (deal_with_atomic_sequence) Stores branch
7210 instruction's opcode in the "opcode" variable and declares new
7211 variable "closing_insn".
7213 2007-05-10 Chris Dearman <chris@mips.com>
7214 Maciej W. Rozycki <macro@mips.com>
7216 * cli/cli-setshow.c (do_setshow_command): Remove trailing
7217 whitespace when setting a var_filename.
7219 2007-05-09 Bob Wilson <bob.wilson@acm.org>
7221 * main.c (captured_main): Recognize -tui option and print an error
7222 message when the TUI is not configured.
7224 2007-05-09 Andreas Schwab <schwab@suse.de>
7226 * mipsnbsd-tdep.c (mipsnbsd_ilp32_fetch_link_map_offsets): Don't
7227 set removed members.
7228 (mipsnbsd_lp64_fetch_link_map_offsets): Likewise.
7230 2007-05-08 Ulrich Weigand <uweigand@de.ibm.com>
7232 * gdbarch.sh (deprecated_store_struct_return): Remove.
7233 * gdbarch.c, gdbarch.h: Regenerate.
7234 * frv-tdep.c (frv_store_struct_return): Remove.
7235 (frv_gdbarch_init): Do not install it.
7237 2007-05-08 Ulrich Weigand <uweigand@de.ibm.com>
7239 * config/i386/nm-i386sol2.h (USE_PROC_FS): Do not define.
7240 * config/mips/nm-irix5.h (USE_PROC_FS): Do not define.
7241 * config/nm-linux.h (USE_PROC_FS): Do not undefine.
7243 2007-05-08 Ulrich Weigand <uweigand@de.ibm.com>
7245 * spu-linux-nat.c: Include "gdb_stdint.h".
7246 (fetch_ppc_register): Use uint64_t instead of unsigned long long.
7247 (fetch_ppc_memory_1, store_ppc_memory_1): Likewise.
7248 (fetch_ppc_memory, store_ppc_memory): Fix coding style.
7249 (spu_symbol_file_add_from_memory): Use strtoulst instead of sscanf.
7250 (spu_child_wait): Mark up string for translation.
7252 2007-05-08 Paul Gilliam <pgilliam@us.ibm.com>
7253 Luis Machado <luisgpm@br.ibm.com>
7255 * rs6000-tdep.c: (LWARX_MASK, LWARX_INSTRUCTION, LDARX_INSTRUCTION,
7256 STWCX_MASK, STWCX_INSTRUCTION, STDCX_INSTRUCTION, BC_MASK,
7257 BC_INSTRUCTION): Define.
7258 (deal_with_atomic_sequence): New function.
7259 (rs6000_software_single_step): Call deal_with_atomic_sequence.
7260 (rs6000_gdbarch_init): Install deal_with_atomic_sequence as
7261 gdbarch_software_single_step routine.
7263 2007-05-07 Ulrich Weigand <uweigand@de.ibm.com>
7265 * spu-linux-nat.c (fetch_ppc_register, fetch_ppc_memory_1,
7266 store_ppc_memory_1, fetch_ppc_memory, store_ppc_memory,
7267 parse_spufs_run, spu_bfd_iovec_pread, spu_bfd_open,
7268 spu_symbol_file_add_from_memory, spu_child_post_startup_inferior,
7269 spu_child_post_attach, spu_fetch_inferior_registers,
7270 spu_store_inferior_registers, spu_xfer_partial): Store PPE-side
7271 memory addresses as ULONGEST, not CORE_ADDR.
7273 2007-05-07 Ulrich Weigand <uweigand@de.ibm.com>
7275 * gdbarch.sh: Add skip_permanent_breakpoint callback.
7276 * gdbarch.h, gdbarch.c: Regenerate.
7278 * infrun.c (SKIP_PERMANENT_BREAKPOINT): Remove default definition.
7279 (resume): Call gdbarch_skip_permanent_breakpoint instead of
7280 SKIP_PERMANENT_BREAKPOINT. Inline default case.
7282 * hppa-hpux-tdep.c (hppa_skip_permanent_breakpoint): Make static.
7283 Add REGCACHE argument. Use it instead of read/write_register.
7284 (hppa_hpux_init_abi): Install hppa_skip_permanent_breakpoint.
7286 * config/pa/tm-hppah.h: Delete file.
7287 * config/pa/hppa64.mt (DEPRECATED_TM_FILE): Set to tm-hppa.h.
7288 * config/pa/hppahpux.mt (DEPRECATED_TM_FILE): Likewise.
7290 2007-05-07 Daniel Jacobowitz <dan@codesourcery.com>
7292 * Makefile.in (c-lang.o, gnu-v3-abi.o): Update.
7293 * NEWS: Mention improved C++ thunk support.
7294 * c-lang.c (cplus_language_defn): Mention cplus_skip_trampoline.
7295 * cp-abi.c (cplus_skip_trampoline): New.
7296 * cp-abi.h (cplus_skip_trampoline): New prototype.
7297 (struct cp_abi_ops): Add skip_trampoline member.
7298 * gnu-v3-abi.c (gnuv3_skip_trampoline): New.
7299 (init_gnuv3_ops): Set skip_trampoline.
7301 2007-05-06 Daniel Jacobowitz <dan@codesourcery.com>
7303 * rs6000-tdep.c (struct frame_extra_info): Delete.
7305 2007-05-06 Daniel Jacobowitz <dan@codesourcery.com>
7307 * linux-thread-db.c: Update some FIXME comments.
7308 (thread_db_xfer_partial): Delete.
7309 (init_thread_db_ops): Do not set to_xfer_partial.
7311 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7313 * inftarg.c, infptrace.c: Remove files.
7314 * Makefile.in (ALLDEPFILES): Remove inftarg.c and infptrace.c
7315 (inftarg.o, infptrace.o): Remove rules.
7316 * gdbcore.h (register_addr): Remove prototype.
7317 * inferior.h (kill_inferior, store_inferior_registers,
7318 fetch_inferior_registers, attach, detach, ptrace_wait, child_resume,
7319 call_ptrace, pre_fork_inferior): Remove prototypes.
7320 * target.h (child_xfer_memory, child_pid_to_exec_file,
7321 child_core_file_to_sym_file, child_post_attach,
7322 child_post_startup_inferior, child_acknowledge_created_inferior,
7323 child_insert_fork_catchpoint, child_remove_fork_catchpoint,
7324 child_insert_vfork_catchpoint, child_remove_vfork_catchpoint,
7325 child_insert_exec_catchpoint, child_remove_exec_catchpoint,
7326 child_follow_fork, child_reported_exec_events_per_exec_call,
7327 child_has_exited, child_thread_alive): Remove prototypes.
7329 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7331 * sparc-nat.h (sparc_fetch_inferior_registers): Add prototype.
7332 (sparc_store_inferior_registers): Likewise.
7333 * sparc-nat.c (fetch_inferior_registers): Rename to ...
7334 (sparc_fetch_inferior_registers): ... this.
7335 (store_inferior_registers): Rename to ...
7336 (sparc_store_inferior_registers): ... this.
7337 (sparc_target): Update callback names.
7338 * sparc-linux.nat.c (_initialize_sparc_linux_nat): Likewise.
7339 * sparc64-linux.nat.c (_initialize_sparc64_linux_nat): Likewise.
7341 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7343 * linux-nat.c (child_post_attach): Rename to ...
7344 (linux_child_post_attach): ... this. Make static.
7345 (child_follow_fork): Rename to ...
7346 (linux_child_follow_fork): ... this. Make static.
7347 (child_insert_fork_catchpoint): Rename to ...
7348 (linux_child_insert_fork_catchpoint): ... this. Make static.
7349 (child_insert_vfork_catchpoint): Rename to ...
7350 (linux_child_insert_vfork_catchpoint): ... this. Make static.
7351 (child_insert_exec_catchpoint): Rename to ...
7352 (linux_child_insert_exec_catchpoint): ... this. Make static.
7353 (child_pid_to_exec_file): Rename to ...
7354 (linux_child_pid_to_exec_file): ... this. Make static.
7356 (linux_handle_extended_wait): Update call.
7357 (linux_xfer_partial): Update callback routine names.
7359 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7361 * configure.host (alpha*-*-osf[12]*): Remove support.
7362 * NEWS: Mention removed configurations.
7364 * config/alpha/alpha-osf1.mh: Delete file.
7365 * config/alpha/alpha-osf2.mh: Delete file.
7366 * config/alpha/alpha-osf3.mh (NATDEPFILES): Remove inftarg.o
7368 * config/alpha/nm-osf.h: Delete file.
7369 * config/alpha/nm-osf2.h: Delete file.
7370 * config/alpha/nm-osf3.h: Do not include "nm-osf2.h".
7371 (START_INFERIOR_TRAPS_EXPECTED): Copy from nm-osf.h.
7372 (PROCFS_DONT_TRACE_FAULTS): Copy from nm-osf2.h.
7374 * alpha-nat.c (ALPHA_UNIQUE_PTRACE_ADDR): Do not define.
7375 (register_addr, kernel_u_size): Remove.
7376 Do not check for "defined(USE_PROC_FS) || defined(HAVE_GREGSET_T)".
7378 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7380 * regcache.c (regcache_invalidate): New function.
7381 (register_cached): Remove.
7382 (set_register_cached): Remove.
7383 (deprecated_registers_fetched): Remove.
7384 (registers_changed): Use regcache_invalidate instead
7385 of set_register_cached.
7386 (regcache_raw_read): Update comment.
7388 * regcache.h (regcache_invalidate): Add prototype.
7389 (register_cached): Remove.
7390 (set_register_cached): Remove.
7391 (deprecated_registers_fetched): Remove.
7393 * findvar.c (value_of_register): Do not call register_cached.
7394 * frame.c (frame_register): Likewise.
7395 * tui/tui-regs.c (tui_get_register): Likewise.
7397 * remote.c (fetch_register_using_p): Do not call set_register_cached.
7398 (process_g_packet): Likewise.
7399 (remote_fetch_registers): Likewise.
7400 * remote-sim.c (gdbsim_fetch_register): Likewise.
7401 * mt-tdep.c (mt_select_coprocessor): Replace set_register_cached call
7402 by regcache_invalidate.
7403 (mt_pseudo_register_write): Likewise.
7404 * sh-tdep.c (sh_pseudo_register_write): Likewise.
7406 * corelow.c (get_core_registers): Replace deprecated_registers_fetched
7407 call by loop over regcache_raw_supply (..., NULL).
7409 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7411 * target.h (struct target_ops): Add REGCACHE parameter to
7412 to_prepare_to_store.
7413 (target_prepare_to_store): Likewise.
7414 * target.c (debug_to_prepare_to_store): Add REGCACHE parameter.
7415 (update_current_target): Adapt prepare_to_store de_fault rule.
7417 * regcache.c (regcache_raw_write): Pass regcache to
7418 target_prepare_to_store.
7420 * inftarg.c (child_prepare_to_store): Add REGCACHE parameter.
7421 Do not call CHILD_PREPARE_TO_STORE.
7422 * gnu-nat.c (gnu_prepare_to_store): Likewise.
7423 * procfs.c (procfs_prepare_to_store): Likewise.
7425 * inf-child.c (inf_child_prepare_to_store): Add REGCACHE parameter.
7426 * go32-nat.c (go32_prepare_to_store): Likewise.
7427 * monitor.c (monitor_prepare_to_store): Likewise.
7428 * nto-procfs.c (procfs_prepare_to_store): Likewise.
7429 * remote-m32r-sdi.c (m32r_prepare_to_store): Likewise.
7430 * remote-mips.c (mips_prepare_to_store): Likewise.
7431 * remote-sim.c (gdbsim_prepare_to_store): Likewise.
7432 * win32-nat.c (win32_prepare_to_store): Likewise.
7434 * remote.c (remote_prepare_to_store): Add REGCACHE parameter.
7435 Use it instead of current_regcache.
7437 * hpux-thread.c (hpux_thread_prepare_to_store): Add REGCACHE
7438 parameter. Pass it on to next target.
7439 * sol-thread.c (sol_thread_prepare_to_store): Likewise.
7441 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7443 * target.h (struct regcache): Add forward declaration.
7444 (struct target_ops): Add REGCACHE parameter to to_fetch_registers
7445 and to_store_registers target operations.
7446 (target_fetch_registers, target_store_registers): Update.
7448 * regcache.c (regcache_raw_read): Replace register_cached by
7449 regcache_valid_p. Pass regcache to target_fetch_registers.
7450 (regcache_raw_write): Pass regcache to target_store_registers.
7452 * arm-linux-nat.c (store_fpregister, store_fpregs, store_register,
7453 store_regs, store_wmmx_regs): Replace register_cached by
7456 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd): Pass current_regcache
7457 to target_fetch_registers calls.
7458 * corelow.c (core_open): Likewise.
7459 * linux-nat.c (linux_nat_corefile_thread_callback): Likewise.
7460 * proc-service.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
7461 ps_lsetfpregs): Likewise.
7462 * sol-thread.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
7463 ps_lsetfpregs): Likewise.
7464 * win32-nat.c (win32_resume): Likewise.
7465 * ia64-tdep.c (ia64_store_return_value): Pass current_regcache
7466 to target_store_registers call.
7467 * rs6000-tdep.c (rs6000_push_dummy_call): Likewise.
7469 * inferior.h (store_inferior_registers): Update prototype.
7470 (fetch_inferior_registers): Likewise.
7471 * gnu-nat.c (gnu_store_registers, gnu_fetch_registers): Likewise.
7472 * mips-linux-nat.c (super_fetch_registers, super_store_registers):
7473 Update function pointer signatures.
7475 * aix-thread.c (aix_thread_fetch_registers): Add REGCACHE parameter,
7476 use it instead of current_regcache, update calls.
7477 (aix_thread_store_registers): Likewise.
7478 * alphabsd-nat.c (alphabsd_fetch_inferior_registers): Likewise.
7479 (alphabsd_store_inferior_registers): Likewise.
7480 * amd64bsd-nat.c (amd64bsd_fetch_inferior_registers): Likewise.
7481 (amd64bsd_store_inferior_registers): Likewise.
7482 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers): Likewise.
7483 (amd64_linux_store_inferior_registers): Likewise.
7484 * arm-linux-nat.c (fetch_fpregister, fetch_fpregs, store_fpregister,
7485 store_fpregs, fetch_register, fetch_regs, store_register, store_regs,
7486 fetch_wmmx_regs, store_wmmx_regs): Likewise.
7487 (arm_linux_fetch_inferior_registers): Likewise.
7488 (arm_linux_store_inferior_registers): Likewise.
7489 * armnbsd-nat.c (fetch_register, fetch_regs, fetch_fp_register,
7490 fetch_fp_regs, armnbsd_fetch_registers): Likewise.
7491 (store_register, store_regs, store_fp_register, store_fp_regs,
7492 armnbsd_store_registers): Likewise.
7493 * bsd-kvm.c (bsd_kvm_fetch_pcb, bsd_kvm_fetch_registers): Likewise.
7494 * bsd-uthread.c (bsd_uthread_fetch_registers): Likewise.
7495 (bsd_uthread_store_registers): Likewise.
7496 * corelow.c (get_core_registers): Likewise.
7497 * go32-nat.c (fetch_register, go32_fetch_registers, store_register,
7498 go32_store_registers): Likewise.
7499 * hppabsd-nat.c (hppabsd_fetch_registers): Likewise.
7500 (hppabsd_store_registers): Likewise.
7501 * hppa-hpux-nat.c (hppa_hpux_fetch_register): Likewise.
7502 (hppa_hpux_fetch_inferior_registers): Likewise.
7503 (hppa_hpux_store_register): Likewise.
7504 (hppa_hpux_store_inferior_registers): Likewise.
7505 * hppa-linux-nat.c (fetch_register, store_register): Likewise.
7506 (hppa_linux_fetch_inferior_registers): Likewise.
7507 (hppa_linux_store_inferior_registers): Likewise.
7508 * hpux-thread.c (hpux_thread_fetch_registers): Likewise.
7509 (hpux_thread_store_registers): Likewise.
7510 * i386bsd-nat.c (i386bsd_fetch_inferior_registers): Likewise.
7511 (i386bsd_store_inferior_registers): Likewise.
7512 * i386gnu-nat.c (fetch_fpregs, gnu_fetch_registers, store_fpregs,
7513 gnu_store_registers): Likewise.
7514 * i386-linux-nat.c (fetch_register, store_register, fetch_regs,
7515 store_regs, fetch_fpregs, store_fpregs, fetch_fpxregs, store_fpxregs):
7517 (i386_linux_fetch_inferior_registers): Likewise.
7518 (i386_linux_store_inferior_registers): Likewise.
7519 * ia64-linux-nat.c (ia64_linux_fetch_register): Likewise.
7520 (ia64_linux_fetch_registers): Likewise.
7521 (ia64_linux_store_register): Likewise.
7522 (ia64_linux_store_registers): Likewise.
7523 * inf-child.c (inf_child_fetch_inferior_registers): Likewise.
7524 (inf_child_store_inferior_registers): Likewise.
7525 * inf-ptrace.c (inf_ptrace_fetch_register): Likewise.
7526 (inf_ptrace_fetch_registers): Likewise.
7527 (inf_ptrace_store_register): Likewise.
7528 (inf_ptrace_store_registers): Likewise.
7529 * infptrace.c (fetch_register, store_register): Likewise.
7530 (fetch_inferior_registers, store_inferior_registers): Likewise.
7531 * m32r-linux-nat.c (fetch_regs, store_regs): Likewise.
7532 (m32r_linux_fetch_inferior_registers): Likewise.
7533 (m32r_linux_store_inferior_registers): Likewise.
7534 * m68kbsd-nat.c (m68kbsd_fetch_inferior_registers): Likewise.
7535 (m68kbsd_store_inferior_registers): Likewise.
7536 * m68klinux-nat.c (fetch_register, old_fetch_inferior_registers,
7537 store_register, old_store_inferior_registers, fetch_regs, store_regs,
7538 fetch_fpregs, store_fpregs): Likewise.
7539 (m68k_linux_fetch_inferior_registers): Likewise.
7540 (m68k_linux_store_inferior_registers): Likewise.
7541 * m88kbsd-nat.c (m88kbsd_fetch_inferior_registers): Likewise.
7542 (m88kbsd_store_inferior_registers): Likewise.
7543 * mips64obsd-nat.c (mips64obsd_fetch_inferior_registers): Likewise.
7544 (mips64obsd_store_inferior_registers): Likewise.
7545 * mips-linux-nat.c (mips64_linux_regsets_fetch_registers): Likewise.
7546 (mips64_linux_regsets_store_registers): Likewise.
7547 (mips64_linux_fetch_registers): Likewise.
7548 (mips64_linux_store_registers): Likewise.
7549 * mipsnbsd-nat.c (mipsnbsd_fetch_inferior_registers): Likewise.
7550 (mipsnbsd_store_inferior_registers): Likewise.
7551 * monitor.c (monitor_fetch_register, monitor_store_register): Likewise.
7552 (monitor_fetch_registers, monitor_store_registers): Likewise.
7553 * nto-procfs.c (procfs_fetch_registers): Likewise.
7554 (procfs_store_registers): Likewise.
7555 * ppc-linux-nat.c (fetch_altivec_register, fetch_spe_register,
7556 fetch_register, supply_vrregset, fetch_altivec_registers,
7557 fetch_ppc_registers, ppc_linux_fetch_inferior_registers): Likewise.
7558 (store_altivec_register, store_spe_register, store_register,
7559 fill_vrregset, store_altivec_registers, store_ppc_registers,
7560 ppc_linux_store_inferior_registers): Likewise.
7561 * ppcnbsd-nat.c (ppcnbsd_fetch_inferior_registers): Likewise.
7562 (ppcnbsd_store_inferior_registers): Likewise.
7563 * ppcobsd-nat.c (ppcobsd_fetch_registers): Likewise.
7564 (ppcobsd_store_registers): Likewise.
7565 * procfs.c (procfs_fetch_registers, procfs_store_registers): Likewise.
7566 * remote.c (fetch_register_using_p, process_g_packet,
7567 fetch_registers_using_g, remote_fetch_registers): Likewise.
7568 (store_register_using_P, store_registers_using_G,
7569 remote_store_registers): Likewise.
7570 * remote-m32r-sdi.c (m32r_fetch_registers, m32r_fetch_register,
7571 m32r_store_register, m32r_store_register): Likewise.
7572 * remote-mips.c (mips_fetch_registers, mips_store_registers): Likewise.
7573 * remote-sim.c (gdbsim_fetch_register): Likewise.
7574 (gdbsim_store_register): Likewise.
7575 * rs6000-nat.c (fetch_register, store_register): Likewise.
7576 (rs6000_fetch_inferior_registers): Likewise.
7577 (rs6000_store_inferior_registers): Likewise.
7578 * s390-nat.c (fetch_regs, store_regs): Likewise.
7579 (fetch_fpregs, store_fpregs): Likewise.
7580 (s390_linux_fetch_inferior_registers): Likewise.
7581 (s390_linux_store_inferior_registers): Likewise.
7582 * shnbsd-nat.c (shnbsd_fetch_inferior_registers): Likewise.
7583 (shnbsd_store_inferior_registers): Likewise.
7584 * sol-thread.c (sol_thread_fetch_registers): Likewise.
7585 (sol_thread_store_registers): Likewise.
7586 * sparc-nat.c (fetch_inferior_registers): Likewise.
7587 (store_inferior_registers): Likewise.
7588 * spu-linux-nat.c (spu_fetch_inferior_registers): Likewise.
7589 (spu_store_inferior_registers): Likewise.
7590 * target.c (debug_print_register): Likewise.
7591 (debug_to_fetch_registers, debug_to_store_registers): Likewise.
7592 * vaxbsd-nat.c (vaxbsd_fetch_inferior_registers): Likewise.
7593 (vaxbsd_store_inferior_registers): Likewise.
7594 * win32-nat.c (do_win32_fetch_inferior_registers): Likewise.
7595 (win32_fetch_inferior_registers): Likewise.
7596 (win32_store_inferior_registers): Likewise.
7598 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7600 * gdbcore.h (struct regcache): Add forward declaration.
7601 (struct core_fns): Add REGCACHE argument to core_read_registers
7603 * corelow.c (get_core_register_section): Add REGCACHE argument,
7604 use it instead of current_regcache, pass it to core_read_registers
7606 (get_core_registers): Add current_regcache as parameter to
7607 get_core_register_section calls.
7609 * alpha-nat.c (fetch_osf_core_registers): Add REGCACHE argument,
7610 use it instead of current_regcache.
7611 * armnbsd-nat.c (fetch_core_registers): Likewise.
7612 (fetch_elfcore_registers): Likewise.
7613 * core-regset.c (fetch_core_registers): Likewise.
7614 * cris-tdep.c (fetch_core_registers): Likewise.
7615 * irix5-nat.c (fetch_core_registers): Likewise.
7616 * m68klinux-nat.c (fetch_core_registers): Likewise.
7617 * mips-linux-tdep.c (fetch_core_registers): Likewise.
7618 * win32-nat.c (fetch_elf_core_registers): Likewise.
7620 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7622 * gregset.h (struct regcache): Add forward declaration.
7623 (supply_gregset): Add REGCACHE parameter, make GREGS const.
7624 (supply_fpregset): Add REGCACHE parameter, make FPREGS const.
7625 (supply_fpxregset): Add REGCACHE parameter, make FPXREGS const.
7626 (fill_gregset): Add REGCACHE parameter.
7627 (fill_fpregset): Likewise.
7628 (fill_fpxregset): Likewise.
7630 Update all definitions accordingly:
7631 * alphabsd-nat.c, alpha-linux-nat.c, alpha-nat.c, amd64-linux-nat.c,
7632 arm-linux-nat.c, hppa-linux-nat.c, i386gnu-nat.c, i386-linux-nat.c,
7633 i386-sol2-nat.c, i386v4-nat.c, ia64-linux-nat.c, irix5-nat.c,
7634 m32r-linux-nat.c, m68klinux-nat.c, mips-linux-nat.c, ppc-linux-nat.c,
7635 s390-nat.c, sparc64-linux-nat.c, sparc-linux-nat.c, sparc-sol2-nat.c
7636 (supply_gregset): Add REGCACHE parameter, use it instead of
7637 current_regcache. Make GREGSETP parameter const, adapt casts.
7638 (supply_fpregset): Add REGCACHE parameter, use it instead of
7639 current_regcache. Make FPREGSETP parameter const, adapt casts.
7640 (fill_gregset): Add REGCACHE parameter, use it instead of
7642 (fill_fpregset): Likewise.
7644 Update all callers to pass in current_regcache as the new argument:
7645 * core-regset.c: Include "regcache.h".
7646 (fetch_core_registers): Update supply_gregset,and supply_fpregset calls.
7647 * procfs.c: Include "regcache.h".
7648 (procfs_fetch_registers): Update supply_gregset, supply_fpregset calls.
7649 (procfs_store_registers): Update fill_gregset, fill_fpregset calls.
7650 (procfs_do_thread_registers): Likewise.
7651 (procfs_make_note_section): Likewise.
7652 * proc-service.c: Include "regcache.h".
7653 (ps_lgetregs): Update fill_gregset call.
7654 (ps_lsetregs): Update supply_gregset call.
7655 (ps_lgetfpregs): Update fill_fpregset call.
7656 (ps_lsetfpregs): Update supply_fpregset call.
7657 * sol-thread.c (sol_thread_fetch_registers): Update supply_gregset,
7658 supply_fpregset calls.
7659 (sol_thread_store_registers): Update fill_gregset, fill_fpregset calls.
7660 (ps_lgetregs): Update fill_gregset call.
7661 (ps_lsetregs): Update supply_gregset call.
7662 (ps_lgetfpregs): Update fill_fpregset call.
7663 (ps_lsetfpregs): Update supply_fpregset call.
7665 * linux-nat.c (linux_nat_do_thread_registers): Update fill_gregset,
7666 fill_fpregset, and fill_fpxregset calls.
7667 * i386-linux-nat.c (fetch_regs): Update supply_gregset call.
7668 (store_regs): Update fill_gregset call.
7669 (fetch_fpregs): Update supply_fpregset call.
7670 (store_fpregs): Update fill_fpregset call.
7671 (fetch_fpxregs): Update supply_fpxregset call.
7672 (store_fpxregs): Update fill_fpxregset call.
7673 * m32r-linux-nat.c (fetch_regs): Update supply_gregset call.
7674 (store_regs): Update fill_gregset call.
7675 * m68klinux-nat.c (fetch_regs): Update supply_gregset call.
7676 (store_regs): Update fill_gregset call.
7677 (fetch_fpregs): Update supply_fpregset call.
7678 (store_fpregs): Update fill_fpregset call.
7679 (fetch_core_registers): Update supply_gregset, supply_fpregset calls.
7680 * s390-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.
7685 * Makefile.in (core-regset.o, procfs.o, proc-service.o): Update
7688 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7690 * monitor.c (monitor_supply_register): Add REGCACHE parameter, use
7691 it instead of current_regcache.
7692 (parse_register_dump): Add REGCACHE parameter, pass it to
7693 supply_register callback.
7694 (monitor_dump_reg_block): Add REGCACHE parameter, pass it to
7695 parse_register_dump.
7696 (monitor_dump_regs): Add REGCACHE parameter, pass it to
7697 parse_register_dump and dumpregs callback.
7698 (monitor_wait): Pass current_regcache to parse_register_dump and
7700 (monitor_fetch_register): Pass current_regcache to
7701 monitor_supply_register.
7702 (monitor_fetch_registers): Pass current_regcache to
7704 * monitor.h (struct monitor_ops): Add REGCACHE parameter to
7705 supply_register and dumpregs callbacks.
7706 (monitor_supply_register, monitor_dump_reg_block): Update
7708 * dbug-rom.c (dbug_supply_register): Add REGCACHE parameter. Pass
7709 it to monitor_supply_register.
7710 * dink32-rom.c (dink32_supply_register): Likewise.
7711 * ppcbug-rom.c (ppcbug_supply_register): Likewise.
7712 * m32r-rom.c (m32r_supply_register): Likewise. Also, use REGCACHE
7713 instead of current_regcache.
7715 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7717 * i386-nto-tdep.c (i386nto_supply_gregset, i386nto_supply_fpregset):
7718 Add REGCACHE parameter. Use it instead of current_regcache.
7719 (i386nto_supply_regset): Add REGCACHE parameter, pass it to
7720 i386nto_supply_gregset and i386nto_supply_fpregset.
7721 (i386nto_regset_fill): Add REGCACHE parameter; use it instead
7722 of current_regcache.
7724 * nto-procfs.c (procfs_fetch_registers): Pass current_regcache to
7725 nto_supply_ helper functions.
7726 (procfs_store_registers): Pass current_regcache to nto_regset_fill.
7728 * nto-tdep.c (nto_dummy_supply_regset): Add REGCACHE parameter.
7730 * nto-tdep.h (struct nto_target_ops): Add REGCACHE parameter to
7731 supply_greget, supply_fpregset, supply_altregset, supply_regset,
7732 and regset_fill member function pointers.
7733 (nto_dummy_supply_regset): Adapt prototype.
7735 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7737 * shnbsd-tdep.c (shnbsd_supply_reg): Add REGCACHE parameter, use it
7738 instead of current_regcache. Make REGS const.
7739 (shnbsd_fill_reg): Add REGCACHE parameter; replace current_regcache.
7740 * shnbsd-tdep.h (shnbsd_supply_reg, shnbsd_fill_reg): Update
7742 * shnbsd-nat.c: Include "regcache.h".
7743 (shnbsd_fetch_inferior_registers): Pass current_regcache to
7745 (shnbsd_store_inferior_registers): Pass current_regcache to
7747 * Makefile.in (shbsd-nat.o): Update dependencies.
7749 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7751 * mips-linux-tdep.c (supply_32bit_reg): Add REGCACHE parameter. Use it
7752 instead of current_regcache.
7753 (mips_supply_gregset): Likewise. Pass REGCACHE to supply_32bit_reg.
7754 Make GREGSETP const, remove superfluous casts.
7755 (mips_fill_gregset): Add REGCACHE parameter; replace current_regcache.
7756 (mips_supply_fpregset): Likewise. Make FPREGSETP const, remove
7758 (mips_fill_fpregset): Add REGCACHE parameter; replace current_regcache.
7759 (supply_64bit_reg): Likewise
7760 (mips64_supply_gregset): Likewise. Pass REGCACHE to supply_64bit_reg.
7761 Make GREGSETP const, adapt casts accordingly.
7762 (mips64_fill_gregset): Add REGCACHE parameter; replace current_regcache.
7763 (mips64_supply_fpregset): Likewise. Make FPREGSET const, adapt
7765 (mips64_fill_fpregset): Add REGCACHE parameter; replace current_regcache.
7766 (fetch_core_registers): Pass current_regcache to mips{64}_(supply|fill)_
7768 * mips-linux-tdep.h (mips_supply_gregset, mips_fill_gregset,
7769 mips_supply_fpregset, mips_fill_fpregset, mips64_supply_gregset,
7770 mips64_fill_gregset, mips64_supply_fpregset, mips64_fill_fpregset):
7772 * mips-linux-nat.c: Include "regcache.h".
7773 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): Pass
7774 current_regcache to mips{64}_(supply|fill)_ helper routines.
7775 (mips64_linux_regsets_fetch_registers): Likewise.
7776 (mips64_linux_regsets_store_registers): Likewise.
7778 * mipsnbsd-tdep.c (mipsnbsd_supply_reg, mipsnbsd_supply_fpreg): Add
7779 REGCACHE argument; replace current_regcache. Make REGS const.
7780 (mipsnbds_fill_reg, mipsnbsd_fill_fpreg): Add REGCACHE argument;
7781 replace current_regcache.
7782 * mipsnbsd-tdep.h (ipsnbsd_supply_reg, mipsnbsd_supply_fpreg,
7783 mipsnbds_fill_reg, mipsnbsd_fill_fpreg): Adapt prototypes.
7784 * mipsnbsd-nat.c (mipsnbsd_fetch_inferior_registers,
7785 mipsnbsd_store_inferior_registers): Pass current_regcache to
7786 mipsnbsd_(supply|fill)_... helper routines.
7788 * Makefile.in (mips-linux-nat.o): Update dependencies.
7790 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7792 * i387-tdep.c (i387_fill_fsave, i387_fill_fxsave): Remove.
7793 * i387-tdep.h (i387_fill_fsave, i387_fill_fxsave): Remove prototypes.
7794 * i368-linux-nat.c (supply_fpregset, supply_fpxregset): Replace
7795 i387_fill_fsave and i387_fill_fxsave calls by inline copies.
7796 * i386-nto-tdep.c (i386nto_regset_fill): Likewise.
7797 * i386gnu-nat.c (store_fpregs): Likewise.
7798 * i386v4-nat.c (fill_fpregset): Likewise.
7799 * go32-nat.c (store_register, go32_store_registers): Likewise.
7801 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7803 * cris-tdep.c (supply_gregset): Rename to ...
7804 (cris_supply_gregset): ... this. Add REGCACHE parameter. Use it
7805 instead of current_regcache.
7806 (fetch_core_registers): Update call. Pass current_regcache.
7808 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7810 * arnmnbsd-nat.c (supply_gregset): Rename to ...
7811 (arm_supply_gregset): ... this. Add REGCACHE parameter.
7812 Use it instead of current_regcache.
7813 (supply_fparegset): Rename to ...
7814 (arm_supply_fparegset): ... this. Add REGCACHE parameter.
7815 Use it instead of current_regcache.
7816 (fetch_regs, fetch_fp_regs): Update calls. Pass current_regcache.
7817 (fetch_core_registers, fetch_elfcore_registers): Likewise.
7819 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7821 * alpha-tdep.c (alpha_supply_int_regs, alpha_fill_int_regs,
7822 alpha_supply_fp_regs, alpha_fill_fp_regs): Add REGCACHE parameter,
7823 use it instead of current_regcache.
7824 * alpha-tdep.h (struct regcache): Add forward declaration.
7825 (alpha_supply_int_regs, alpha_fill_int_regs, alpha_supply_fp_regs,
7826 alpha_fill_fp_regs): Update prototypes.
7828 * alpha-nat.c: (supply_gregset, fill_gregset, supply_fpregset,
7829 fill_fpregset): Pass current_regcache to alpha_supply/fill_ routines.
7830 * alpha-linux-nat.c: Include "regcache.h".
7831 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): Pass
7832 current_regcache to alpha_supply/fill_ routines.
7834 * alphabsd-tdep.c: Include "regcache.h".
7835 (alphabsd_supply_reg, alphabsd_supply_fpreg): Add REGCACHE paramter,
7836 pass it to alpha_supply_ routines. Make REGS const.
7837 (alphabsd_fill_reg, alphabsd_fill_fpreg): Add REGCACHE parameter,
7838 pass it to alpha_fill_ routines.
7839 * alphabsd-tdep.h (struct regcache): Add forward declaration.
7840 (alphabsd_supply_reg, alphabsd_fill_reg, alphabsd_supply_fpreg,
7841 alphabsd_fill_fpreg): Update prototypes.
7843 * alphanbsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
7844 fill_fpregset, alphabsd_fetch_inferior_registers,
7845 alphabsd_store_inferior_registers): Pass current_regcache to
7846 alphabsd_supply/fill_ routines.
7848 * Makefile.in (alpha-linux-nat.o, alphabsd-tdep.o): Update
7851 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7853 * aix-thread.c (supply_gprs64, supply_reg32, supply_fprs,
7854 supply_sprs64, supply_sprs32): Add REGCACHE parameter, use it
7855 instead of current_regcache.
7856 (fetch_regs_user_thread, fetch_regs_kernel_thread): Add
7857 REGCACHE parameter, pass it to supply_ routines.
7858 (aix_thread_fetch_registers): Pass current_regcache to
7859 fetch_regs_user_thread and fetch_regs_kernel_thread.
7861 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs64, fill_sprs32):
7862 Add REGCACHE parameter, use it instead of current_regcache.
7863 Call regcache_valid_p instead of register_cached.
7864 (store_regs_user_thread, store_regs_kernel_thread): Likewise.
7865 Also, pass REGCACHE to fill_ routines.
7866 (aix_thread_store_registers): Pass current_regcache to
7867 store_regs_user_thread and store_regs_kernel_thread.
7869 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7871 * m32r-linux-nat.c (supply_gregset): Do not modify contents
7872 pointed to by GREGSETP.
7874 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7876 * irix5-nat.c (fill_gregset): Use regcache_raw_collect instead
7877 of regcache_raw_read_signed.
7878 (fill_fpregset): Use regcache_raw_collect instead of
7881 2007-05-03 Kevin Buettner <kevinb@redhat.com>
7883 * mips-tdep.c (mips_eabi_push_dummy_call): When pushing floating
7884 point arguments, test explicitly for use of the EABI32 ABI
7885 instead of inferring this condition from tests on register
7888 2007-05-03 Kevin Buettner <kevinb@redhat.com>
7890 * breakpoint.c (set_raw_breakpoint): Adjust breakpoint's address
7891 prior to allocating its location.
7893 2007-05-02 Maciej W. Rozycki <macro@mips.com>
7895 * mips-tdep.c (mips_o32_push_dummy_call): Remove conditions
7896 based on mips_abi_regsize() whose result is known in advance.
7897 (mips_o64_push_dummy_call): Likewise.
7899 2007-04-29 Ulrich Weigand <uweigand@de.ibm.com>
7901 * m68klinux-nat.c: Remove #ifndef USE_PROC_FS check.
7902 * m68k-tdep.c: Remove code within #ifdef USE_PROC_FS.
7904 * mips-linux-nat.c: Include "gregset.h".
7905 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): Move
7906 from mips-linux-tdep.c. Change parameter type to gdb_gregset_t.
7907 * mips-linux-tdep.c (supply_gregset, fill_gregset, supply_fpregset,
7908 fill_fpregset): Move to mips-linux-nat.c.
7910 * Makefile.in (m68k-tdep.o, mips-linux-nat.o): Update dependencies.
7912 2007-04-28 Ulrich Weigand <uweigand@de.ibm.com>
7914 * regcache.c (deprecated_read_register_gen): Remove, inline ...
7915 (read_register): ... here.
7916 (deprecated_write_register_gen): Remove, inline ...
7917 (write_register): ... here.
7918 * regcache.h (deprecated_read_register_gen): Remove prototype.
7919 (deprecated_write_register_gen): Likewise.
7921 * remote-sim.c (gdbsim_store_register): Replace call to
7922 deprecated_read_register_gen with regcache_cooked_read.
7923 * target.c (debug_print_register): Replace calls to
7924 deprecated_read_register_gen and read_register with
7925 regcache_cooked_read.
7927 2007-04-28 Ulrich Weigand <uweigand@de.ibm.com>
7929 * hpux-thread.c (hpux_thread_store_registers): Use
7930 regcache_raw_collect, not regcache_raw_read.
7931 * irix5-nat.c (fetch_core_registers): Use regcache_raw_supply,
7932 not regcache_raw_write.
7934 2007-04-28 Ulrich Weigand <uweigand@de.ibm.com>
7936 * gdbarch.sh: Remove deprecated_register_byte.
7937 * gdbarch.c, gdbarch.h: Regenerate.
7938 * arch-utils.h (generic_register_size, generic_register_byte): Remove.
7939 * arch-utils.c (generic_register_size, generic_register_byte): Remove.
7941 * regcache.h (regcache_valid_p): Make REGCACHE parameter const.
7942 * regcache.c (regcache_valid_p): Allow to query cooked registers in
7943 read-only register caches. Make REGCACHE parameter const.
7944 (regcache_dump): Do not check DEPRECATED_REGISTER_BYTE.
7946 * mi/mi-main.c (old_regs): Remove.
7947 (mi_setup_architecture_data, _initialize_mi_main): Remove.
7948 (register_changed_p): Reimplement to compare two register caches.
7949 (mi_cmd_data_list_changed_registers): Update caller.
7950 * mi/mi-main.h (mi_setup_architecture_data): Remove.
7951 * mi/mi-interp.c (mi_interpreter_init): Do not call
7952 mi_setup_architecture_data.
7954 2007-04-28 Ulrich Weigand <uweigand@de.ibm.com>
7956 * alpha-nat.c (ALPHA_REGSET_BASE, ALPHA_REGSET_UNIQUE): Do not define,
7957 inline definition at the places the macros are used.
7958 * alpha-linux-nat.c (ALPHA_REGSET_BASE, ALPHA_REGSET_UNIQUE): Likewise.
7960 2007-04-28 Ulrich Weigand <uweigand@de.ibm.com>
7962 * rs6000-aix-tdep.c: Include "regcache.h", "regset.h", and
7964 (rs6000_aix32_reg_offsets, rs6000_aix64_reg_offsets): New variables.
7965 (rs6000_aix_supply_regset, rs6000_aix_collect_regset): New functions.
7966 (rs6000_aix32_regset, rs6000_aix64_regset): New variables.
7967 (rs6000_aix_regset_from_core_section): New function.
7968 (rs6000_aix_init_osabi): Register it.
7969 (_initialize_rs6000_aix_tdep): Register GDB_OSABI_AIX osabi and
7970 sniffer for bfd_arch_powerpc as well as bfd_arch_rs6000.
7971 * rs6000-nat.c (CoreRegs): Do not define type.
7972 (fetch_core_registers, rs6000_core_fns): Remove.
7973 (_initialize_core_rs6000): Do not register it. Rename to ...
7974 (_initialize_rs6000_nat): ... this.
7975 * Makefile.in (rs6000-aix-tdep.o): Update dependencies.
7977 2007-04-27 Kevin Buettner <kevinb@redhat.com>
7979 * dwarf2expr.c (unsigned_address_type): Add forward declaration.
7980 (dwarf2_read_address): Sign extend return address as required by
7981 target architecture.
7983 2007-04-27 Kevin Buettner <kevinb@redhat.com>
7985 * solib-frv.c (lm_base): Bail out if the main executable has
7988 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
7990 * alpha-linux-tdep.c (alpha_linux_supply_fpregset): Correct location
7991 of FPCR register in fpregset.
7993 2007-04-27 Maciej W. Rozycki <macro@mips.com>
7995 * Makefile.in (gdbtk-wrapper.o): Update dependencies.
7996 (gdbtk-varobj.o, gdbtk-cmds.o, gdbtk-stack.o): Likewise.
7998 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
8000 * config/rs6000/nm-rs6000.h (CHILD_SPECIAL_WAITSTATUS): Remove.
8001 * rs6000-nat.c (rs6000_wait): New function.
8002 (_initialize_core_rs6000): Install it as to_wait target method.
8003 * target.c (store_waitstatus): Don't check CHILD_SPECIAL_WAITSTATUS.
8005 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
8007 * config/rs6000/nm-rs6000.h (TARGET_CREATE_INFERIOR_HOOK): Remove.
8008 * fork-child.c (fork_inferior): Don't call TARGET_CREATE_INFERIOR_HOOK.
8009 * rs6000-nat.c (super_create_inferior): New variable.
8010 (rs6000_create_inferior): Make static. Adapt argument list. Call
8011 original version of create_inferior via super_create_inferior.
8012 (_initialize_core_rs6000): Install to_create_inferior target method.
8014 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
8016 * aix-thread.c (aix_thread_xfer_memory): Replace by ...
8017 (aix_thread_xfer_partial): ... this.
8018 (init_aix_thread_ops): Install to_xfer_partial instead
8019 of deprecated_xfer_memory target method.
8021 * config/powerpc/aix.mh (NATDEPFILES): Remove infptrace.o
8022 and inftarg.o, add inf-ptrace.o.
8023 * config/rs6000/nm-rs6000.h (FETCH_INFERIOR_REGISTERS,
8024 CHILD_XFER_MEMORY, KERNEL_U_SIZE, kernel_u_size): Remove.
8025 * rs6000-nat.c: Include "inf-ptrace.h" and "gdb_stdint.h".
8026 (fetch_inferior_registers): Rename to ...
8027 (rs6000_fetch_inferior_registers): ... this. Make static.
8028 (store_inferior_registers): Rename to ...
8029 (rs6000_store_inferior_registers): ... this. Make static.
8030 (read_word, child_xfer_memory): Remove.
8031 (rs6000_xfer_partial): New function.
8032 (kernel_u_size): Remove.
8033 (_initialize_core_rs6000): Add inf_ptrace-based target.
8034 * Makefile.in (rs6000-nat.o): Update dependencies.
8036 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
8038 * inf-ptrace.c: Include "gdb_stdint.h".
8039 (inf_ptrace_xfer_partial): Use "uintptr_t" instead of "long" as
8040 intermediate type when casting CORE_ADDR to PTRACE_TYPE_ARG3.
8041 (inf_ptrace_fetch_register): Add intermediate cast to "uintptr_t"
8042 before casting CORE_ADDR to PTRACE_TYPE_ARG3.
8043 (inf_ptrace_store_register): Likewise.
8044 * Makefile.in (inf-ptrace.o): Update dependencies.
8046 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
8048 * configure.host (rs6000-*-*): Merge with powerpc-*-aix* rules.
8049 * configure.tgt (rs6000-*-*): Likewise.
8050 * config/rs6000/aix4.mh: Delete file.
8051 * config/rs6000/aix4.mt: Delete file.
8052 * config/rs6000/rs6000.mh: Delete file.
8053 * config/rs6000/rs6000.mt: Delete file.
8055 * config/powerpc/nm-aix.h: Delete file.
8056 * config/powerpc/aix.mh (NAT_FILE): Set to config/rs6000/nm-rs6000.h.
8058 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
8060 * aix-thread.c (fill_sprs32): Change argument types to "uint32_t *".
8061 Remove obsolete part of comment.
8062 (store_regs_user_thread): Use uint32_t temporaries when calling
8064 (store_regs_kernel_thread): Likewise. Add assertion to verify
8065 correct size of struct ptsprs members.
8066 (aix_thread_xfer_memory): Fix type of myaddr.
8067 (aix_thread_extra_thread_info): Fix compiler warning.
8068 * rs6000-nat.c (rs6000_ptrace64): Change type of buf to "void *".
8069 (fetch_register, store_register): Adapt callers.
8071 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
8073 * vec.h (vec_free): Rename to vec_free_. Adapt users.
8075 2007-04-25 Ulrich Weigand <uweigand@de.ibm.com>
8077 * alpha-linux-tdep.c: Include "gdb_string.h", "regset.h",
8079 (alpha_linux_supply_gregset, alpha_linux_supply_fpregset): New.
8080 (alpha_linux_gregset, alpha_linux_fpregset): New variables.
8081 (alpha_linux_regset_from_core_section): New function.
8082 (alpha_linux_init_abi): Install it.
8083 * alpha-linux-nat.c: Do not include "gdbcore.h". Include
8084 "alpha-tdep.h", <sys/ptrace.h>, <alpha/ptrace.h>,
8085 <sys/procfs.h>, and "gregset.h".
8086 (ALPHA_REGSET_BASE, ALPHA_REGSET_UNIQUE, ALPHA_UNIQUE_PTRACE_ADDR):
8087 Move from config/alpha/nm-linux.h.
8088 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): Copy
8090 (alpha_linux_register_u_offset): Inline register_addr from alpha-nat.c.
8091 * alpha-nat.c: Remove #ifdef __linux__ section.
8092 (fetch_elf_core_registers, alpha_elf_core_fns): Remove.
8093 (_initialize_core_alpha): Do not register alpha_elf_core_fns.
8094 (ALPHA_UNIQUE_PTRACE_ADDR, ALPHA_REGSET_UNIQUE): Define unconditionally.
8095 (ALPHA_REGSET_BASE): Move from config/alpha/nm-osf.h.
8096 * config/alpha/alpha-linux.mh (NAT_FILE): Set to config/nm-linux.h.
8097 (NATDEPFILES): Remove alpha-nat.o.
8098 * config/alpha/nm-linux.h: Delete file.
8099 * config/alpha/nm-osf.h (ALPHA_REGSET_BASE): Move to alpha-nat.c.
8100 * Makefile.in (alpha-linux-nat.o): Update dependencies.
8101 (alpha-linux-tdep.o): Likewise.
8103 2007-04-25 Ulrich Weigand <uweigand@de.ibm.com>
8105 * mips-linux-nat.c: No longer include "gdbcore.h".
8106 (mips_linux_register_addr): Move from mips-linux-tdep.c.
8107 (mips64_linux_register_addr): Likewise.
8108 (mips_linux_register_u_offset): Call mips_linux_register_addr or
8109 mips64_linux_register_addr instead of register_addr.
8110 * mips-linux-tdep.c (mips_linux_register_addr,
8111 mips64_linux_register_addr): Move to mips-linux-nat.c.
8112 (register_addr): Remove.
8113 (register_addr_data, init_register_addr_data): Remove.
8114 (_initialize_mips_linux_tdep): Do not initialize register_addr_data.
8115 (set_mips_linux_register_addr): Remove.
8116 (mips_linux_init_abi): Do not call set_mips_linux_register_addr.
8117 * Makefile.in (mips-linux-nat.o): Update dependencies.
8119 2007-04-25 Ulrich Weigand <uweigand@de.ibm.com>
8121 * linux-nat.c (linux_register_u_offset): Remove.
8122 (linux_target_install_ops): New function.
8123 (linux_target): Use it.
8124 (linux_trad_target): New function.
8125 * linux-nat.h (linux_trad_target): Declare.
8127 * alpha-linux-nat.c: Include "gdbcore.h".
8128 (alpha_linux_register_u_offset): New function.
8129 (_initialize_alpha_linux_nat): Use linux_trad_target.
8131 * mips-linux-nat.c: Include "gdbcore.h".
8132 (mips_linux_register_u_offset): New function.
8133 (_initialize_mips_linux_nat): Use linux_trad_target.
8135 * config/arm/linux.mh (NAT_FILE): Set to config/nm-linux.h.
8136 * config/arm/nm-linux.h: Delete file.
8138 * config/i386/nm-linux64.h (FETCH_INFERIOR_REGISTERS): Remove.
8139 * config/i386/nm-linux.h (FETCH_INFERIOR_REGISTERS): Remove.
8141 * config/ia64/linux.mh (NAT_FILE): Set to config/nm-linux.h.
8142 * config/ia64/nm-linux.h: Delete file.
8144 * config/m32r/linux.mh (NAT_FILE): Set to config/nm-linux.h.
8145 * config/m32r/nm-linux.h: Delete file.
8147 * config/m68k/linux.mh (NAT_FILE): Set to config/nm-linux.h.
8148 * config/m68k/nm-linux.h: Delete file.
8150 * config/pa/linux.mh (NAT_FILE): Set to config/nm-linux.h.
8151 * config/pa/nm-linux.h: Delete file.
8153 * config/powerpc/linux.mh (NAT_FILE): Set to config/nm-linux.h.
8154 * config/powerpc/ppc64-linux.mh (NAT_FILE): Likewise.
8155 * config/powerpc/nm-linux.h: Delete file.
8157 * config/s390/s390.mh (NAT_FILE): Set to config/nm-linux.h.
8158 * config/s390/nm-linux.h: Delete file.
8160 * config/sparc/linux.mh (NAT_FILE): Set to config/nm-linux.h.
8161 * config/sparc/linux64.mh (NAT_FILE): Likewise.
8162 * config/sparc/nm-linux.h: Delete file.
8164 * Makefile.in (alpha-linux-nat.o): Update dependencies.
8165 (mips-linux-nat.o): Likewise.
8167 2007-04-25 Ulrich Weigand <uweigand@de.ibm.com>
8169 * core-aout.c: Delete file.
8170 * Makefile.in (ALLDEPFILES): Remove core-aout.c.
8171 (core-aout.o): Delete rule.
8172 * gdbcore.h (kernel_u_addr, KERNEL_U_ADDR): Remove.
8174 * config/alpha/nm-linux.h (U_REGS_OFFSET): Remove.
8176 * arm-linux-nat.c (arm_linux_kernel_u_size): Remove.
8177 * config/arm/nm-linux.h (U_REGS_OFFSET, KERNEL_U_SIZE,
8178 KERNEL_U_ADDR): Remove.
8180 * i386-linux-nat.c (register_u_addr, kernel_u_size): Remove.
8181 (cannot_fetch_register, cannot_store_register): Remove.
8182 (fetch_register): Inline cannot_fetch_register and register_addr.
8183 (store_register): Inline cannot_store_register and register_addr.
8184 * config/i386/linux.mh (NATDEPFILES): Remove core-aout.o.
8185 * config/i386/nm-linux.h (KERNEL_U_SIZE, KERNEL_U_ADDR,
8186 REGISTER_U_ADDR, CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER):
8189 * m68klinux-nat.c (m68k_linux_register_u_addr, kernel_u_size): Remove.
8190 (fetch_register): Inline register_addr.
8191 (store_register): Inline register_addr.
8192 * config/m68k/linux.mh (NATDEPFILES): Remove core-aout.o.
8193 * config/m68k/nm-linux.h (KERNEL_U_SIZE, KERNEL_U_ADDR,
8194 U_REGS_OFFSET, REGISTER_U_ADDR): Remove.
8196 * config/mips/nm-irix5.h (REGISTER_U_ADDR): Remove.
8197 * config/mips/nm-linux.h (KERNEL_U_SIZE, U_REGS_OFFSET,
8198 REGISTER_U_ADDR): Remove.
8200 * hppa-linux-nat.c (register_addr): Rename to ...
8201 (hppa_linux_register_addr): ... this. Make static.
8202 (fetch_register, store_register): Adapt callers.
8203 * config/pa/nm-linux.h (U_REGS_OFFSET): Remove.
8205 * ppc-linux-nat.c (kernel_u_size): Remove.
8206 * config/powerpc/nm-linux.h (KERNEL_U_SIZE, KERNEL_U_ADDR): Remove.
8208 * vax-nat.c (vax_kernel_u_addr, vax_register_u_addr): Make static.
8209 * config/vax/vax.mh (NATDEPFILES): Remove core-aout.o.
8211 * config/vax/nm-vax.h: Delete file.
8213 2007-04-20 Mark Shinwell <shinwell@codesourcery.com>
8215 * MAINTAINERS (Write After Approval): Add myself.
8217 2007-04-20 Mark Shinwell <shinwell@codesourcery.com>
8219 * Makefile.in: Adjust dependencies of m68klinux-tdep.c.
8220 * m68klinux-tdep.c (m68k_uclinux_sigcontext_reg_offset): New.
8221 (m68k_linux_sigcontext_reg_offset): Fix typo.
8222 (target_is_uclinux): New.
8223 (m68k_linux_inferior_created): New.
8224 (m68k_linux_get_sigtramp_info): Check for uClinux or
8225 normal Linux. Use m68k_uclinux_sigcontext_reg_offset for
8227 (_initialize_m68k_linux_tdep): Register
8228 m68k_linux_inferior_created.
8230 2007-04-19 Pedro Alves <pedro_alves@portugalmail.pt>
8232 * win32-nat.c (win32_detach): Remove delete_command call.
8233 Resume inferior with win32_resume instead of win32_continue.
8235 2007-04-19 Jerome Guitton <guitton@adacore.com>
8237 * ser-mingw.c (fd_is_file): New function.
8238 (file_select_thread): New function.
8239 (ser_console_wait_handle): Add special handling for files.
8241 2007-04-18 Denis Pilat <denis.pilat@st.com>
8243 * dwarf2read.c (read_subrange_type): Use DW_ATE_signed default type
8244 when missing from DW_TAG_subrange_type. Remove the handling of null
8245 return from die_type.
8247 2007-04-18 Maciej W. Rozycki <macro@mips.com>
8249 * mips-tdep.c (mips_eabi_push_dummy_call): Revert the last
8250 change to rearrange some brackets.
8251 (mips_n32n64_push_dummy_call): Likewise.
8252 (mips_o32_push_dummy_call): Likewise.
8253 (mips_o64_push_dummy_call): Likewise.
8255 2007-04-18 Denis Pilat <denis.pilat@st.com>
8257 * infcmd.c (post_create_inferior): Start with a call to
8258 target_terminal_ours.
8260 2007-04-17 Maciej W. Rozycki <macro@mips.com>
8262 * mips-tdep.c (mips_eabi_push_dummy_call): Rearrange some
8264 (mips_n32n64_push_dummy_call): Likewise. Reformat some
8266 (mips_o32_push_dummy_call): Likewise.
8267 (mips_o64_push_dummy_call): Likewise.
8269 2007-04-17 Maciej W. Rozycki <macro@mips.com>
8271 * mips-tdep.c (mips_n32n64_push_dummy_call): Fix a typo in a
8274 2007-04-17 Maciej W. Rozycki <macro@mips.com>
8276 * mips-tdep.c (mips_n32n64_push_dummy_call): Fix a typo in a
8278 (mips_o32_push_dummy_call): Likewise.
8280 2007-04-17 Andreas Schwab <schwab@suse.de>
8282 * symtab.c (skip_prologue_using_sal): Allow the end of the prologue
8283 sal to be bigger than the end of the function.
8285 2007-04-17 Maciej W. Rozycki <macro@mips.com>
8286 Nigel Stephens <nigel@mips.com>
8288 * mips-tdep.c (mips_o32_push_dummy_call): Take account of
8289 argument alignment requirements when calculating stack space
8290 required. When aligning an arg register to eight bytes
8291 boundary, align stack_offset too. Write floating-point
8292 arguments to the appropriate integer register if need go there.
8293 (mips_o64_push_dummy_call): Likewise.
8295 2007-04-14 Ulrich Weigand <uweigand@de.ibm.com>
8297 * gdbarch.sh (software_single_step): Remove "insert_breakpoints_p" and
8298 "sig" arguments, add "regcache" argument.
8299 * gdbarch.c, gdbarch.h: Regenerate.
8301 * infrun.c (resume): Update SOFTWARE_SINGLE_STEP call arguments.
8302 (handle_inferior_event): Call remove_single_step_breakpoints directly
8303 instead of calling SOFTWARE_SINGLE_STEP to remove breakpoints.
8305 * alpha-tdep.c (alpha_software_single_step): Update argument list.
8306 Remove handling of !insert_breakpoints_p case.
8307 * arm-tdep.c (arm_software_single_step): Likewise.
8308 * cris-tdep.c (cris_software_single_step): Likewise.
8309 * mips-tdep.c (mips_software_single_step): Likewise.
8310 * rs6000-tdep.c (rs6000_software_single_step): Likewise.
8311 * sparc-tdep.c (sparc_software_single_step): Likewise.
8312 * spu-tdep.c (spu_software_single_step): Likewise.
8314 * alpha-tdep.h (alpha_software_single_step): Update prototype.
8315 * mips-tdep.h (mips_software_single_step): Likewise.
8316 * rs6000-tdep.h (rs6000_software_single_step): Likewise.
8317 * sparc-tdep.h (sparc_software_single_step): Likewise.
8319 2007-04-14 Ulrich Weigand <uweigand@de.ibm.com>
8321 * alpha-tdep.c (alpha_software_single_step): Do not call write_pc
8322 when removing single-step breakpoints.
8324 2007-04-14 Vladimir Prus <vladimir@codesourcery.com>
8326 * varobj.h (varobj_set_frozen): New
8327 (varobj_get_frozen): New.
8328 (varobj_update): New parameter explicit.
8329 * varobj.c (struct varobj): New fields frozen
8331 (varobj_set_frozen, varobj_get_frozen): New.
8332 (install_new_value): Don't fetch values for
8333 frozen variable object, or children thereof. Allow
8334 a frozen variable object to have non-fetched value.
8335 (varobj_update): Allow updating child variables.
8336 Don't traverse frozen children.
8337 (new_variable): Initialize the frozen field.
8338 (c_value_of_variable): Return NULL for frozen
8339 variable without any value yet.
8340 * mi/mi-cmd-var.c (varobj_update_one): New parameter
8342 (mi_cmd_var_create): Output the 'frozen' field,
8343 as soon as testsuite is adjusted to expect that field.
8344 (mi_cmd_var_set_frozen): New.
8345 (mi_cmd_var_update): Pass the 'explicit' parameter to
8347 * mi/mi-cmds.c (mi_cmds): Register '-var-set-frozen'.
8348 * mi/mi-cmds.h (mi_cmd_var_set_frozen): Declare.
8350 2007-04-13 Paul Brook <paul@codesourcery.com>
8352 * target-descriptions.c (tdesc_named_type): Add ieee_single and
8354 * doc/gdb.texinfo: Document ieee_single and ieee_double target types.
8356 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
8358 * mips-mdebug-tdep.c, mips-mdebug-tdep.h, ocd.c, ocd.h, ppc-bdm.c,
8359 remote-e7000.c, remote-hms.c, remote-utils.c, remote-utils.h,
8360 scm-exp.c, scm-lang.c, scm-lang.h, scm-tags.h, scm-valprint.c,
8361 ser-e7kpc.c, sh3-rom.c, stop-gdb.c: Delete.
8362 * Makefile.in: Remove references to deleted files.
8363 * README: Do not mention deleted ROM monitor interfaces.
8364 * defs.h (enum language): Delete language_scm.
8365 * expprint.c (print_subexp_standard): Do not handle OP_EXPRSTRING.
8366 (dump_subexp_body_standard): Likewise.
8367 * parse.c (operator_length_standard): Likewise.
8368 * expression.h (enum exp_opcode): Delete OP_EXPRSTRING.
8369 * remote-mips.c: Do not include remote-utils.h.
8370 * remote-sim.c: Likewise. Use remote_debug instead of sr_get_debug
8372 * value.c: Do not include scm-lang.h.
8373 (unpack_long): Delete scm_unpack call.
8374 * config/h8300/h8300.mt, config/mips/embed.mt,
8375 config/powerpc/ppc-eabi.mt, config/powerpc/ppc-sim.mt,
8376 config/sh/embed.mt, config/sh/linux.mt: Remove references to
8378 * NEWS: Mention removed files.
8380 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
8382 * symfile.c (add_psymbol_with_dem_name_to_list): Remove.
8383 * symfile.h (add_psymbol_with_dem_name_to_list): Remove prototype.
8385 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
8387 * NEWS: Mention removal of HP aCC support.
8389 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
8391 * solib-svr4.c (IGNORE_FIRST_LINK_MAP_ENTRY): Do not ignore the
8392 first entry for static executables.
8393 (breakpoint_addr): Delete unused variable.
8394 (elf_locate_base): Search for _r_debug in static executables.
8395 (enable_break): Do not set breakpoint_addr. Scan solib_break_names
8398 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
8400 * breakpoint.c (update_breakpoints_after_exec, print_it_typical)
8401 (bpstat_what, print_one_breakpoint, allocate_bp_location)
8402 (mention): Remove bp_through_sigtramp support.
8403 * breakpoint.h (enum bptype): Remove bp_through_sigtramp.
8405 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
8407 * breakpoint.c (bpstat_what): Give step-resume higher priority than
8410 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
8412 * infrun.c: Doc fixes.
8413 (handle_inferior_event): Clarify debug message.
8414 (insert_step_resume_breakpoint_at_sal): Print a debug message.
8416 2007-04-12 Ulrich Weigand <uweigand@de.ibm.com>
8418 * configure.tgt (arm-*-nto*, sh-*-nto*): Remove.
8420 2007-04-12 Ulrich Weigand <uweigand@de.ibm.com>
8422 * config/m68k/tm-monitor.h: Delete file.
8423 * config/m68k/monitor.mt (DEPRECATED_TM_FILE): Remove.
8424 * m68k-tdep.c (m68k_gdbarch_init): set_gdbarch_decr_pc_after_break
8426 * m68kbsd-tdep.c (m68kbsd_init_abi): ... here and ...
8427 * m68klinux-tdep.c (m68k_linux_init_abi): ... here.
8429 2007-04-12 Luis Machado <luisgpm@br.ibm.com>
8431 * gdbarch.sh (software_single_step): Change the return type
8432 from void to int and reformatted some comments to <= 80
8434 * gdbarch.c, gdbarch.h: Regenerated.
8435 * alpha-tdep.c (alpha_software_single_step): Likewise.
8436 * alpha-tdep.h (alpha_software_single_step): Likewise.
8437 * arm-tdep.c (arm_software_single_step): Likewise.
8438 * cris-tdep.c (cris_software_single_step): Likewise.
8439 * mips-tdep.c (mips_software_single_step): Likewise.
8440 * mips-tdep.h (mips_software_single_step): Likewise.
8441 * rs6000-tdep.c (rs6000_software_single_step): Likewise.
8442 * rs6000-tdep.h (rs6000_software_single_step): Likewise.
8443 * sparc-tdep.c (sparc_software_single_step): Likewise.
8444 * sparc-tdep.h (sparc_software_single_step): Likewise.
8445 * spu-tdep.c (spu_software_single_step): Likewise.
8446 * infrun.c (resume): Check the return value from SOFTWARE_SINGLE_STEP
8447 and act accordingly.
8449 2007-04-11 Steve Ellcey <sje@cup.hp.com>
8451 * configure.ac (build_warnings): Add -Wno-char-subscripts.
8452 * configure: Regenerate.
8453 * doc/gdbint.texinfo (warning flags): Add -Wno-char-subscripts.
8455 2007-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
8457 * libunwind-frame.c (LIBUNWIND_SO): Use major version number for `.so'.
8459 2007-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
8461 * gdbtypes.h (TYPE_FLAG_STUB_SUPPORTED, TYPE_STUB_SUPPORTED): New
8463 (TYPE_IS_OPAQUE): Empty vs. opaque structures are now
8464 distinct on the TYPE_STUB_SUPPORTED debug targets.
8465 * dwarf2read.c (read_structure_type): Set TYPE_FLAG_STUB_SUPPORTED.
8467 2007-04-11 Joel Brobecker <brobecker@adacore.com>
8469 * sparc-tdep.c (X_RS2): New macro.
8470 (sparc_skip_stack_check): New function.
8471 (sparc_analyze_prologue): Adjust PC past stack probing
8472 sequence if necessary.
8474 2007-04-10 Andreas Schwab <schwab@suse.de>
8476 * rs6000-tdep.c (rs6000_dwarf2_reg_to_regnum): Decode 64 as CR
8479 2007-04-10 Daniel Jacobowitz <dan@codesourcery.com>
8481 * breakpoint.c (gdb_breakpoint_query): Really return an
8483 (gdb_breakpoint): Likewise.
8484 * thread.c (gdb_list_thread_ids): Likewise.
8485 (gdb_thread_select): Likewise.
8486 * mi/mi-main.c (mi_cmd_thread_select): Expect an enum gdb_rc.
8487 (mi_cmd_thread_list_ids): Remove bogus initialization.
8489 2007-04-10 Daniel Jacobowitz <dan@codesourcery.com>
8491 * Makefile.in (SFILES): Remove hpacc-abi.c.
8492 (COMMON_OBS): Remove hpacc-abi.o.
8493 (ALLDEPFILES): Remove hpread.c and $(HPREAD_SOURCE).
8494 (hpacc-abi.o, hpread.o): Delete rules.
8495 * somread.c: Delete extern declarations from hpread.c.
8496 (som_symfile_read): Do not call do_pxdb or hpread_build_psymtabs.
8497 (som_symfile_finish): Do not call hpread_symfile_finish.
8498 (som_symfile_init): Do not call hpread_symfile_init.
8499 * config/pa/hppa64.mt (TDEPFILES): Remove hpread.o.
8500 * config/pa/hppahpux.mt (TDEPFILES): Likewise.
8501 * hpacc-abi.c, hpread.c: Deleted.
8503 2007-04-10 Daniel Jacobowitz <dan@codesourcery.com>
8505 * solib-svr4.c (enable_break): Simplify return value.
8506 (svr4_solib_create_inferior_hook): Do not warn if enable_break fails.
8508 2007-04-10 Andreas Schwab <schwab@suse.de>
8510 * solib-svr4.h (struct link_map_offsets): Remove l_addr_size,
8511 l_ld_size, l_next_size, l_prev_size, l_name_size.
8513 * solib-svr4.c (LM_ADDR_FROM_LINK_MAP): Use extract_typed_address
8514 to extract addresses from link map.
8515 (LM_DYNAMIC_FROM_LINK_MAP): Likewise.
8516 (LM_NEXT): Likewise.
8517 (LM_NAME): Likewise.
8518 (IGNORE_FIRST_LINK_MAP_ENTRY): Likewise.
8519 (elf_locate_base): Likewise.
8520 (open_symbol_file_object): Likewise.
8521 (svr4_fetch_objfile_link_map): Likewise.
8522 (SOLIB_EXTRACT_ADDRESS): Remove unused macro.
8523 (HAS_LM_DYNAMIC_FROM_LINK_MAP): Test l_ld_offset instead of
8525 (svr4_ilp32_fetch_link_map_offsets): Don't set removed members.
8526 (svr4_lp64_fetch_link_map_offsets): Likewise.
8528 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets): Don't set
8529 removed members. Set l_ld_offset to -1 if not present.
8531 2007-04-08 Vladimir Prus <vladimir@codesourcery.com>
8533 Pass stderr of program run with "target remote |"
8535 * serial.c (serial_open): Set error_fd to -1.
8536 * serial.h (struct serial): New field error_fd.
8537 (struct serial_opts): New field avail.
8538 * ser-pipe.c (pipe_open): Create another pair
8539 of sockets. Pass stderr to gdb.
8540 * ser-mingw.c (pipe_windows_open): Pass
8541 PEX_STDERR_TO_PIPE to pex_run. Initialize
8544 (_initialize_ser_windows): Hook pipe_avail.
8545 * ser-base.c (generic_readchar): Check if there's
8546 anything in stderr channel and route that to gdb_stderr.
8548 2007-04-03 Pedro Alves <pedro_alves@portugalmail.pt>
8550 * dbxread.c (read_ofile_symtab): Move current_objfile
8551 clearing to after end_stabs.
8553 2007-04-01 Andreas Schwab <schwab@suse.de>
8555 * rs6000-tdep.c (rs6000_convert_from_func_ptr_addr): Use parameter
8556 gdbarch instead of current_gdbarch.
8558 2007-04-01 Vladimir Prus <vladimir@codesourcery.com>
8560 * varobj.c (varobj_create): Keep varobj value
8561 NULL when evaluating the type.
8563 2007-03-31 Pedro Alves <pedro_alves@portugalmail.pt>
8565 * NEWS: Mention new Windows CE support.
8567 2007-03-30 Pedro Alves <pedro_alves@portugalmail.pt>
8569 * configure.tgt: Move mips*-*-pe and sh*-*-pe to
8570 the obsoletion stanza.
8571 * NEWS: Mention deleted targets.
8573 * config/sh/tm-wince.h: Remove.
8574 * config/sh/wince.mt: Remove.
8575 * config/mips/tm-wince.h: Remove.
8576 * config/mips/wince.mt: Remove.
8579 * wince-stub.c: Remove.
8580 * wince-stub.h: Remove.
8581 * Makefile.in (wince.o): Remove rule.
8582 (wince-stub.o): Likewise.
8584 * mips-tdep.c (mips_next_pc): Make static.
8585 * mips-tdep.h (mips_next_pc): Remove declaration.
8586 * arm-tdep.c (arm_pc_is_thumb): Make static.
8587 (thumb_get_next_pc): Likewise.
8588 (arm_get_next_pc): Likewise.
8589 * arm-tdep.h (arm_pc_is_thumb_dummy): Remove declaration.
8590 (arm_pc_is_thumb): Likewise.
8591 (thumb_get_next_pc): Likewise.
8592 (arm_get_next_pc): Likewise.
8594 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
8596 * MAINTAINERS: Remove d10v entry.
8597 * Makefile.in (SFILES): Remove dwarfread.c.
8598 (COMMON_OBS): Remove dwarfread.o.
8599 (gdb_sim_d10v_h, abug-rom.o, cpu32bug-rom.o, d10v-tdep.o, dwarfread.o)
8600 (remote-est.o, rom68k-rom.o): Delete.
8601 * NEWS: Mention removal of d10v, target abug, target cpu32bug,
8602 target est, target rom68k, and DWARF 1.
8603 * configure.tgt: Mark d10v as removed.
8604 * dwarf2read.c: Doc update.
8605 * elfread.c (struct elfinfo): Remove dboffset, dbsize, lnoffset,
8607 (elf_locate_sections): Do not set them.
8608 (elf_symfile_read): Do not call dwarf_build_psymtabs.
8609 * symfile.h (dwarf_build_psymtabs): Delete prototype.
8610 * config/m68k/monitor.mt (TDEPFILES): Prune.
8611 * abug-rom.c, cpu32bug-rom.c, d10v-tdep.c, dwarfread.c,
8612 remote-est.c, rom68k-rom.c, config/d10v/d10v.mt: Delete.
8614 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
8616 * doublest.c (convert_floatformat_to_doublest): Use
8617 floatformat_classify.
8618 (floatformat_is_nan): Rename to...
8619 (floatformat_classify): ...this. Return more information.
8620 * doublest.h (enum float_kind): New.
8621 (floatformat_is_nan): Replace prototype...
8622 (floatformat_classify): ...with this one.
8623 * valprint.c (print_floating): Use floatformat_classify. Handle
8626 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
8628 * README: Mention ISO C library requirement.
8630 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
8632 * Makefile.in (SFILES): Remove nlmread.c.
8633 (COMMON_OBS): Remove nlmread.o.
8634 (nlmread.o): Delete rule.
8635 * README: Delete reference to remote-st.c.
8636 * acinclude.m4 (CY_AC_TCL_LYNX_POSIX): Delete.
8637 * defs.h (enum gdb_osabi): Delete GDB_OSABI_NETWARE and
8639 * i386-tdep.c (i386_nw_init_abi, i386_nlm_osabi_sniffer): Delete.
8640 (_initialize_i386_tdep): Do not reference them.
8641 * nlmread.c: Delete file.
8642 * osabi.c (gdb_osabi_names): Remove NetWare and LynxOS.
8643 * target.c: Doc update.
8644 * thread.c: Delete commented include.
8645 * config/alpha/tm-alpha.h: Doc update.
8647 2007-03-30 Chris Dearman <chris@mips.com>
8649 * utils.c (string_to_core_addr): Comment typo.
8651 2007-03-30 Chris Dearman <chris@mips.com>
8653 * mips-tdep.c: Comment typo.
8655 2007-03-29 Ulrich Weigand <uweigand@de.ibm.com>
8657 * config/alpha/nm-osf.h (PTRACE_XFER_TYPE): Remove.
8658 * config/mips/nm-linux.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Remove.
8659 * config/sparc/nm-linux.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Remove.
8660 * config/powerpc/nm-ppc64-linux.h: Remove file.
8661 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Set to nm-linux.h.
8662 * inferior.h (PTRACE_ARG3_TYPE): Do not define.
8663 (call_ptrace): Change type of third argument to PTRACE_TYPE_ARG3.
8664 * infptrace.c (call_ptrace): Likewise.
8665 * m68klinux-nat.c (PTRACE_XFER_TYPE): Do not define.
8666 (fetch_register): Replace PTRACE_ARG3_TYPE by PTRACE_TYPE_ARG3
8667 and PTRACE_XFER_TYPE by PTRACE_TYPE_RET.
8668 (store_register): Likewise.
8670 2007-03-29 Joel Brobecker <brobecker@adacore.com>
8672 * Makefile.in (varobj.o): Add missing dependency.
8674 2007-03-29 Michael Snyder <msnyder@access-company.com>
8676 * MAINTAINERS: Update my email address.
8678 2007-03-29 Joel Brobecker <brobecker@adacore.com>
8680 Add support for exception handling with multiple versions of
8682 * ada-lang.c: Update general comments on how Ada exception catchpoints
8684 (raise_sym_name, raise_unhandled_sym_name, raise_assert_sym_name)
8685 (__gnat_raise_nodefer_with_msg): Delete.
8686 (ada_unhandled_exception_name_addr_ftype): New type.
8687 (exception_support_info): New type.
8688 (ada_unhandled_exception_name_addr): Add forward declaration.
8689 (ada_unhandled_exception_name_addr_from_raise): Likewise.
8690 (default_exception_support_info): New constant.
8691 (exception_support_info_fallback): Likewise.
8692 (exception_info): New global variable.
8693 (ada_exception_support_info_sniffer): New function.
8694 (ada_executable_changed_observer): Likewise.
8695 (ada_unhandled_exception_name_addr_from_raise): Renamed from
8696 ada_unhandled_exception_name_addr.
8697 (ada_unhandled_exception_name_addr): Reimplement to match the
8698 latest Ada runtime implementation.
8699 (error_breakpoint_runtime_sym_not_found): Delete.
8700 (ada_exception_sym_name): Get the exception sym name from
8701 exception_info rather than hardcoding it.
8702 (ada_exception_sal): Add call to ada_exception_support_info_sniffer.
8703 Update error handling.
8704 * Makefile.in (ada-lang.o): Add dependency on observer.h.
8706 2007-03-29 Daniel Jacobowitz <dan@codesourcery.com>
8708 * Makefile.in (coff_solib_h, coff-solib.o, i386v-nat.o, lynx-nat.o)
8709 (remote-st.o, uw-thread.o): Delete.
8710 (HFILES_NO_SRCDIR, ALLDEPFILES): Update.
8711 * configure.host: Move hppa*-*-hiux*, i[34567]86-ncr-*,
8712 i[34567]86-*-dgux*, i[34567]86-*-lynxos*, i[34567]86-*-sco3.2v5*,
8713 i[34567]86-*-sco3.2v4*, i[34567]86-*-sco*, i[34567]86-*-sysv4.2*,
8714 i[34567]86-*-sysv4*, i[34567]86-*-sysv5*, i[34567]86-*-unixware2*,
8715 i[34567]86-*-unixware*, i[34567]86-*-sysv*, i[34567]86-*-isc*, and
8716 rs6000-*-lynxos* to an obsoletion stanza.
8717 * configure.tgt: Move hppa*-*-hiux*, i[34567]86-ncr-*,
8718 i[34567]86-*-lynxos*, m68*-cisco*-*, m68*-tandem-*, m68*-*-os68k*,
8719 and rs6000-*-lynxos* to an obsoletion stanza. Do not mention
8720 i[34567]86-*-netware*.
8721 * NEWS: Mention deleted targets.
8723 * coff-solib.c, coff-solib.h, i386v-nat.c, lynx-nat.c, remote-st.c,
8724 uw-thread.c, config/nm-lynx.h, config/i386/i386sco.mh,
8725 config/i386/i386sco4.mh, config/i386/i386sco5.mh, config/i386/i386v.mh,
8726 config/i386/i386v4.mh, config/i386/i386v42mp.mh,
8727 config/i386/ncr3000.mh, config/i386/ncr3000.mt,
8728 config/i386/nm-i386sco.h, config/i386/nm-i386sco4.h,
8729 config/i386/nm-i386sco5.h, config/i386/nm-i386v.h,
8730 config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h,
8731 config/m68k/cisco.mt, config/m68k/os68k.mt, config/m68k/st2000.mt,
8732 config/m68k/tm-cisco.h, config/m68k/tm-os68k.h,
8733 config/rs6000/rs6000lynx.mh, config/rs6000/rs6000lynx.mt,
8734 config/rs6000/tm-rs6000ly.h: Delete files.
8736 2007-03-29 Daniel Jacobowitz <dan@codesourcery.com>
8738 * defs.h (deprecated_registers_changed_hook): Delete declaration.
8739 * interps.c (clear_interpreter_hooks): Do not clear
8740 deprecated_registers_changed_hook.
8741 * regcache.c (registers_changed): Do not call it.
8742 * top.c (deprecated_registers_changed_hook): Do not define it.
8743 * mi/mi-interp.c (mi_command_loop): Do not clear it.
8744 * tui/tui-hooks.c (tui_install_hooks): Do not install it.
8745 (tui_remove_hooks): Do not remove it.
8746 (tui_selected_frame_level_changed_hook): Check for negative level.
8747 Use get_selected_frame.
8748 (tui_registers_changed_hook): Deleted.
8750 2007-03-29 Joel Brobecker <brobecker@adacore.com>
8752 * stabsread.c (add_undefined_type): Add extra parameter.
8753 Now handles nameless types separately.
8754 (struct nat): New type.
8755 (noname_undefs, noname_undefs_allocated, noname_undefs_length):
8756 New static variables.
8757 (read_type): Update calls to add_undefined_type.
8758 (add_undefined_type_noname): New function.
8759 (add_undefined_type_1): Renames from add_undefined_type.
8760 (cleanup_undefined_types_noname): New function.
8761 (cleanup_undefined_types_1): Renames cleanup_undefined_types.
8762 (cleanup_undefined_types): New handles nameless types separately.
8763 (_initialize_stabsread): Initialize our new static constants.
8765 2007-03-29 Denis Pilat <denis.pilat@st.com>
8767 * configure.ac: Test for signal.h.
8768 * configure, config.in: Regenerate.
8770 2007-03-29 Denis Pilat <denis.pilat@st.com>
8772 * stack.c (print_stack_frame): Always use LOC_AND_ADDRESS in MI output.
8773 * infrun.c (normal_stop): Remove MI specific frame printing treatment.
8775 2007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
8777 * arm-wince-tdep.c: New.
8778 * config/arm/wince.mt (DEPRECATED_TM_FILE): Use tm-arm.h.
8779 (MT_CFLAGS): Delete.
8781 (TDEPFILES): Add arm-wince-tdep.o, corelow.o, solib.o,
8782 solib-legacy.o, solib-svr4.o, and remove wince.o.
8783 * configure.tgt (arm*-*-mingw32ce*): Add.
8784 * signals/signals.c [HAVE_SIGNAL_H]: Check.
8785 (do_target_signal_to_host): Silence 'not used' warning.
8786 * config/arm/tm-wince.h: Remove.
8788 2007-03-28 Ulrich Weigand <uweigand@de.ibm.com>
8790 * arch-utils.c (legacy_pc_in_sigtramp): Remove.
8791 * arch-utils.h (legacy_pc_in_sigtramp): Remove.
8793 * config/ia64/linux.mt (DEPRECATED_TM_FILE): Remove.
8794 * config/ia64/tm-linux.h: Remove file.
8795 * ia64-tdep.h (struct gdbarch_tdep): Add pc_in_sigtramp callback.
8796 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Use it instead of
8797 legacy_pc_in_sigtramp.
8798 (ia64_gdbarch_init): Initialize tdep->pc_in_sigtramp.
8799 * ia64-linux-tdep.c (ia64_linux_pc_in_sigtramp): Make static.
8800 Remove func_name argument.
8801 (ia64_linux_init_abi): Install it as tdep->pc_in_sigtramp.
8803 * infrun.c (HAVE_STEPPABLE_WATCHPOINT): Do not redefine.
8804 * target.c (update_current_target): Add to_have_steppable_watchpoint.
8805 * target.h (struct target_ops): Add to_have_steppable_watchpoint.
8806 (HAVE_STEPPABLE_WATCHPOINT): Define.
8808 * config/ia64/linux.mh (NATDEPFILES): Remove core-aout.o.
8809 * config/ia64/nm-linux.h (KERNEL_U_ADDR, U_REGS_OFFSET,
8810 CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER,
8811 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_STEPPABLE_WATCHPOINT,
8812 STOPPED_BY_WATCHPOINT, target_stopped_data_address,
8813 target_insert_watchpoint, target_remove_watchpoint): Remove.
8814 (FETCH_INFERIOR_REGISTERS): Define.
8815 * ia64-linux-nat.c (ia64_register_addr): Make static.
8816 (ia64_cannot_fetch_register, ia64_cannot_store_register): Likewise.
8817 (ia64_linux_insert_watchpoint): Make static. Remove ptid_p argument.
8818 (ia64_linux_remove_watchpoint): Likewise. Add type argument.
8819 (ia64_linux_stopped_data_address): Make static. Add target_ops.
8820 (ia64_linux_stopped_by_watchpoint): Make static.
8821 (ia64_linux_can_use_hw_breakpoint): New function.
8822 (ia64_linux_fetch_register, ia64_linux_fetch_registers): Likewise.
8823 (ia64_linux_store_register, ia64_linux_store_registers): Likewise.
8824 (_initialize_ia64_linux_nat): Install register and watchpoint ops.
8826 2007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
8828 * linespec.c: Include language.h.
8829 (find_methods): Add language parameter. Call
8830 lookup_symbol_in_language. Pass language down.
8831 (add_matching_methods): Likewise. Call
8832 lookup_symbol_in_language.
8833 (add_constructors): Likewise.
8834 (find_method): Pass sym_class to collect_methods.
8835 (collect_methods): Add sym_class parameter. Pass language
8837 * symtab.c (lookup_symbol): Rename to ...
8838 (lookup_symbol_in_language): ... this. Add language
8839 parameter. Use passed language instead of current_language.
8840 (lookup_symbol): New as wrapper around
8841 lookup_symbol_in_language.
8842 (lookup_symbol_aux): Add language parameter. Use passed
8843 language instead of current_language.
8844 (search_symbols): Indent.
8845 * symtab.h (enum language): Forward declare.
8846 (lookup_symbol_in_language): Declare.
8847 (lookup_symbol): Update description.
8848 * ada-lang.h (lookup_symbol_in_language): Remove declaration.
8849 * ada-lang.c (restore_language): Remove.
8850 (lookup_symbol_in_language): Remove.
8852 2007-03-27 Pedro Alves <pedro_alves@portugalmail.pt>
8854 * breakpoint.c (bpstat_num): Add int *num parameter.
8855 * breakpoint.h (bpstat_num): Likewise.
8856 * infcmd.c (continue_command): Adjust to new bpstat_num
8858 (program_info): Likewise.
8860 2007-03-27 Ulrich Weigand <uweigand@de.ibm.com>
8862 * config/sh/tm-sh.h: Remove file.
8863 * config/sh/embed.mt (DEPRECATED_TM_FILE): Remove.
8864 * config/sh/linux.mt (DEPRECATED_TM_FILE): Remove.
8865 * config/sh/nbsd.mt (DEPRECATED_TM_FILE): Remove.
8866 * config/sh/tm-wince.h: Do not include "sh/tm-sh.h".
8868 2007-03-27 Ulrich Weigand <uweigand@de.ibm.com>
8870 * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT,
8871 DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Remove.
8872 * remote.c: Remove code under #ifdef DEPRECATED_REMOTE_BREAKPOINT,
8873 DEPRECATED_BIG_REMOTE_BREAKPOINT, DEPRECATED_LITTLE_REMOTE_BREAKPOINT.
8874 * sh-tdep.c (sh_breakpoint_from_pc): Return remote breakpoint
8875 sequence if target_shortname is "remote".
8877 2007-03-27 Anton Blanchard <anton@samba.org>
8879 * rs6000-tdep.c (rs6000_frame_cache): Use tdep->lr_frame_offset
8880 instead of wordsize when looking for the LR in a stack frame.
8882 2007-03-27 Andreas Schwab <schwab@suse.de>
8883 Daniel Jacobowitz <dan@codesourcery.com>
8885 * dwarf2-frame.c (dwarf2_frame_eh_frame_regnum): Rename to...
8886 (dwarf2_frame_adjust_regnum): ...this. Make static. Add eh_frame_p
8887 argument. Update all callers.
8888 (struct dwarf2_frame_ops): Replace eh_frame_regnum with adjust_regnum.
8889 (dwarf2_frame_set_eh_frame_regnum): Rename to...
8890 (dwarf2_frame_set_adjust_regnum): ...this. Update argument type.
8891 * dwarf2frame.h (dwarf2_frame_set_eh_frame_regnum): Rename to...
8892 (dwarf2_frame_set_adjust_regnum): ...this.
8893 (dwarf2_frame_eh_frame_regnum): Delete prototype.
8894 * rs6000-tdep.c: Include "dwarf2-frame.h".
8895 (rs6000_adjust_frame_regnum): Define.
8896 (rs6000_gdbarch_init): Enable use of DWARF CFI frame unwinder.
8897 Register rs6000_adjust_frame_regnum.
8899 * Makefile.in (rs6000-tdep.o): Update dependencies.
8901 2007-03-27 Brooks Moses <brooks.moses@codesourcery.com>
8903 * Makefile.in: Add support for a "pdf" target.
8905 2007-03-27 Daniel Jacobowitz <dan@codesourcery.com>
8907 * amd64-tdep.c (amd64_init_frame_cache): New function.
8908 (amd64_alloc_frame_cache, amd64_skip_prologue): Use it.
8910 2007-03-26 Nigel Stephens <nigel@mips.com>
8911 Maciej W. Rozycki <macro@mips.com>
8913 * ui-out.c (ui_out_field_core_addr): Truncate address to
8914 TARGET_ADDR_BIT size before printing.
8916 2007-03-22 Nigel Stephens <nigel@mips.com>
8917 Maciej W. Rozycki <macro@mips.com>
8919 * remote-mips.c (mips_xfer_memory): Update prototype.
8921 2007-03-22 Joel Brobecker <brobecker@adacore.com>
8923 * symfile.h: #include "symtab.h"
8925 2007-03-22 Denis Pilat <denis.pilat@st.com>
8927 * utils.c (pagination_on_command, pagination_off_command):
8928 Remove useless prototypes.
8930 2007-03-21 Pierre Muller <muller@ics.u-strasbg.fr>
8933 * p-valprint.c (pascal_object_print_value): Use type_name_no_tag
8934 instead of TYPE_NAME for object base class name.
8937 2007-03-19 Kevin Buettner <kevinb@redhat.com>
8939 * mep-tdep.c (mep_analyze_frame_prologue, mep_frame_this_id):
8940 Specify frame type in calls to frame_func_unwind().
8942 2007-03-13 Daniel Jacobowitz <dan@codesourcery.com>
8944 * rs6000-tdep.c (rs6000_skip_prologue): Use skip_prologue_using_sal.
8945 (rs6000_in_function_epilogue_p): Use extract_unsigned_integer.
8946 (refine_prologue_limit): Delete.
8947 (skip_prologue): Don't call it. Use extract_unsigned_integer.
8948 Assume lim_pc is set. Correct check for incomplete prologues.
8949 Do not skip clobbers of the frame pointer.
8950 * symtab.c (skip_prologue_using_sal): Fail if there is only one
8953 2007-03-13 Nathan Froyd <froydnj@codesourcery.com>
8955 * frame.c (frame_pop): Check to see whether there's a frame to
8956 which we can pop first.
8958 2007-03-13 Nathan Froyd <froydnj@codesourcery.com>
8960 * MAINTAINERS (Write After Approval): Add myself.
8962 2007-03-09 Markus Deuling <deuling@de.ibm.com>
8964 * infrun.c (breakpoints_failed): Remove unnecessary variable.
8965 (handle_inferior_event): Remove unnecessary braces.
8966 * breakpoint.c (bpstat_what): Remove wrong comment.
8968 2007-03-09 Ulrich Weigand <uweigand@de.ibm.com>
8970 * spu-tdep.c (spu_in_function_epilogue_p): New function.
8971 (spu_gdbarch_init): Install it.
8973 2007-03-08 Ulrich Weigand <uweigand@de.ibm.com>
8975 * spu-linux-nat.c (spu_xfer_partial): Return -1 for unsupported
8976 object types, not 0.
8978 2007-03-08 Ulrich Weigand <uweigand@de.ibm.com>
8980 * spu-tdep.c (spu_frame_align): New function.
8981 (spu_gdbarch_init): Install it. Set call dummy location to ON_STACK.
8983 2007-03-08 Ulrich Weigand <uweigand@de.ibm.com>
8985 * spu-tdep.c (spu_unwind_pc): Mask off interrupt enable bit.
8986 (spu_software_single_step): Likewise.
8987 (spu_read_pc, spu_write_pc): New functions.
8988 (spu_gdbarch_init): Install them.
8990 2007-03-08 Ulrich Weigand <uweigand@de.ibm.com>
8992 * cli/cli-dump.c (struct callback_data): load_offset needs to
8993 have signed long type.
8995 2007-03-07 Joel Brobecker <brobecker@adacore.com>
8997 * mips-tdep.c (mips_insn16_frame_cache, mips_insn32_frame_sniffer):
8998 Revert the previous change that had some unexpected side-effects
9000 (mips_insn16_frame_cache, mips_insn32_frame_cache): Use the proper
9001 function to get the address of the calling instruction.
9003 2007-03-07 Denis Pilat <denis.pilat@st.com>
9005 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Replace
9006 get_selected_frame by deprecated_safe_get_selected_frame.
9008 2007-03-02 Mark Kettenis <kettenis@gnu.org>
9010 * shnbsd-tdep.c: Include "regset.h", "gdb_assert.h" and
9011 "gdb_string.h". Don't include "nbsd-tdep.h".
9012 (SIZEOF_STRUCT_REG): Remove.
9013 (SHNBSD_SIZEOF_GREGS): New.
9014 (shnbsd_supply_gregset, shnbsd_collect_gregset)
9015 (shnbsd_regset_from_core_section): New functions.
9016 (fetch_core_registers, fetch_elfcore_registers): Remove functions.
9017 (shnbsd_supply_reg, shnbsd_fill_reg): Simply call
9018 shnbsd_supply_gregset, shnbsd_collect_gregset.
9019 (shnbsd_gregset): New variable.
9020 (shnbsd_init_abi): Set regset_from_core_section.
9021 (GDB_OSABI_NETBSD_CORE): New define.
9022 (shnbsd_core_osabi_sniffer): New function.
9023 (_initialize_shnbsd_tdep): Register shnbsd_core_osabi_sniffer.
9024 * Makefile.in (shnbsd-tdep.o): Update dependencies.
9025 * config/sh/nbsd.mt (TDEPFILES): Add corelow.o, remove
9027 * config/sh/obsd.mt (TDEPFILES): Remove nbsd-tdep.o.
9029 2007-02-28 Joel Brobecker <brobecker@adacore.com>
9031 * gdbtypes.c (replace_type): Fix typo that caused us to not update
9032 length of the types referenced by the new type CV ring.
9034 2007-02-28 Daniel Jacobowitz <dan@codesourcery.com>
9036 * frame.c (frame_pop, frame_observer_target_changed): Call
9038 (flush_cached_frames): Rename to reinit_frame_cache and delete
9040 * frame.h (flush_cached_frames): Delete prototype and update comment.
9042 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd): Call
9043 reinit_frame_cache instead of flush_cached_frames. Do not call
9044 select_frame after reinit_frame_cache.
9045 * corelow.c (core_open): Likewise.
9046 * gdbarch.sh (deprecated_current_gdbarch_select_hack): Likewise.
9047 * infrun.c (prepare_to_proceed, context_switch)
9048 (handle_inferior_event): Likewise.
9049 * linux-fork.c (fork_load_infrun_state): Likewise.
9050 * ocd.c (ocd_start_remote): Likewise.
9051 * remote-e7000.c (e7000_start_remote): Likewise.
9052 * remote-mips.c (device): Likewise.
9053 * thread.c (switch_to_thread): Likewise.
9054 * tracepoint.c (finish_tfind_command): Likewise.
9055 * gdbarch.c: Regenerated.
9057 2007-02-28 Jerome Guitton <guitton@adacore.com>
9058 Joel Brobecker <brobecker@adacore.com>
9060 * gdbtypes.c (check_typedef): Do not replace stub type if
9061 the resolved type is not defined in the same objfile.
9063 2007-02-28 Daniel Jacobowitz <dan@codesourcery.com>
9065 * top.c (gdb_readline_wrapper_cleanup): Remove invalid assertion.
9067 2007-02-28 Joel Brobecker <brobecker@adacore.com>
9069 * stabsread.c (define_symbol): Create an associated STRUCT_DOMAIN
9070 symbol for Ada units when the symbol is defined using 't' rather
9071 than 'Tt' as symbol descriptor.
9073 2007-02-28 Ulrich Weigand <uweigand@de.ibm.com>
9075 * config/mips/tm-nbsd.h: Delete file.
9076 * config/mips/nbsd.mt (DEPRECATED_TM_FILE): Remove.
9077 * config/sh/tm-nbsd.h: Delete file.
9078 * config/sh/nbsd.mt (DEPRECATED_TM_FILE): Set to tm-sh.h.
9080 2007-02-28 Joel Brobecker <brobecker@adacore.com>
9082 * mi/mi-cmd-var.c (varobj_update_one): Remove reference to
9083 unused WRONG_PARAM value since it was recently deleted.
9085 2007-02-28 Vladimir Prus <vladimir@codesourcery.com>
9087 * varobj.c (varobj_update): Free temporary vectors.
9089 2007-02-28 Ulrich Weigand <uweigand@de.ibm.com>
9091 * config/powerpc/linux.mt (DEPRECATED_TM_FILE): Set to tm-ppc-eabi.h.
9092 * config/powerpc/tm-linux.h: Delete file.
9093 * config/powerpc/tm-ppc-eabi.h: Do not include "rs6000/tm-rs6000.h".
9094 (PROCESS_LINENUMBER_HOOK): Do not undefine.
9095 (TEXT_SEGMENT_BASE): Do not redefine.
9096 * config/rs6000/nm-rs6000.h (CHILD_SPECIAL_WAITSTATUS): Move here
9097 from config/rs6000/tm-rs6000.h.
9098 (TARGET_CREATE_INFERIOR_HOOK, rs6000_create_inferior): Likewise.
9099 * config/rs6000/tm-rs6000.h (struct frame_info): Remove declaration.
9100 (TEXT_SEGMENT_BASE): Remove.
9101 (IN_SOLIB_RETURN_TRAMPOLINE): Remove.
9102 (rs6000_in_solib_return_trampoline): Remove.
9103 (SKIP_TRAMPOLINE_CODE): Remove.
9104 (rs6000_skip_trampoline_code): Remove.
9105 (CHILD_SPECIAL_WAITSTATUS): Move to config/rs6000/nm-rs6000.h.
9106 (TARGET_CREATE_INFERIOR_HOOK, rs6000_create_inferior): Likewise.
9107 (FP0_REGNUM): Remove.
9108 (rs6000_find_toc_address_hook): Move to rs6000-tdep.h.
9109 (rs6000_set_host_arch_hook): Remove.
9110 * Makefile.in (rs6000-nat.o): Add dependency on $(rs6000_tdep_h).
9111 (rs6000-aix-tdep.o): Add dependency on $(ppc_tdep_h).
9112 * ppc-tdep.h (struct gdbarch_tdep): Add field text_segment_base.
9113 * rs6000-aix-tdep.c: Include "ppc-tdep.h".
9114 (rs6000_aix_init_osabi): Set text_segment_base tdep field.
9115 * rs6000-nat.c: Include "rs6000-tdep.h".
9116 (exec_one_dummy_insn): Replace TEXT_SEGMENT_BASE by tdep field.
9117 (set_host_arch): Rename to ...
9118 (rs6000_create_inferior): ... this. Make public.
9119 (_initialize_core_rs6000): Do not set rs6000_set_host_arch_hook.
9120 * rs6000-tdep.c (rs6000_set_host_arch_hook): Remove.
9121 (rs6000_create_inferior): Remove.
9122 (branch_dest): Replace TEXT_SEGMENT_BASE by tdep field.
9123 (rs6000_gdbarch_init): Call set_gdbarch_fp0_regnum,
9124 set_gdbarch_in_solib_return_trampoline, and
9125 set_gdbarch_skip_trampoline_code.
9126 * rs6000-tdep.h (rs6000_find_toc_address_hook): Move here
9127 from config/rs6000/tm-rs6000.h.
9129 2007-02-27 Joel Brobecker <brobecker@adacore.com>
9131 * buildsym.c (record_producer): Do nothing if no producer is provided.
9133 2007-02-27 Nick Roberts <nickrob@snap.net.nz>
9135 * varobj.c (varobj_update): Remove unused local. Use gdb_assert
9136 to check changelist is non-NULL. Call error if the frontend tries
9137 to update a non-root variable.
9139 * varobj.h (enum varobj_update_error): Delete WRONG_PARAM value.
9141 2007-02-27 Daniel Jacobowitz <dan@codesourcery.com>
9143 * dwarf2-frame.c (dwarf2_frame_cache, dwarf2_frame_this_id)
9144 (dwarf2_frame_sniffer): Update.
9145 (dwarf2_signal_frame_this_id): New function.
9146 (dwarf2_signal_frame_unwind): Use it.
9147 (dwarf2_frame_base_sniffer): Use frame_unwind_address_in_block.
9148 * frame.c (frame_func_unwind): Add this_type argument.
9149 (get_frame_func): Update.
9150 (frame_unwind_address_in_block): Add this_type argument and check it.
9152 (get_frame_address_in_block): Update.
9153 * frame.h (enum frame_type): Move higher in the file.
9154 (frame_unwind_address_in_block, frame_func_unwind): Add enum frame_type
9157 * alpha-mdebug-tdep.c, alpha-tdep.c, amd64-tdep.c, amd64obsd-tdep.c,
9158 arm-tdep.c, avr-tdep.c, cris-tdep.c, frv-tdep.c, h8300-tdep.c,
9159 hppa-tdep.c, i386-tdep.c, i386obsd-tdep.c, ia64-tdep.c,
9160 libunwind-frame.c, m32c-tdep.c, m32r-linux-tdep.c, m32r-tdep.c,
9161 m68hc11-tdep.c, m68k-tdep.c, m88k-tdep.c, mips-mdebug-tdep.c,
9162 mips-tdep.c, mn10300-tdep.c, mt-tdep.c, rs6000-tdep.c, s390-tdep.c,
9163 score-tdep.c, sh-tdep.c, sh64-tdep.c, sparc-tdep.c,
9164 sparc64obsd-tdep.c, spu-tdep.c, v850-tdep.c, vax-tdep.c,
9165 xstormy16-tdep.c, xtensa-tdep.c: Update calls to
9166 frame_func_unwind and frame_unwind_address_in_block to specify
9167 the frame type. Use frame_unwind_address_in_block instead of
9168 frame_pc_unwind in sniffers.
9170 2007-02-27 Daniel Jacobowitz <dan@codesourcery.com>
9172 * frame.c (deprecated_selected_frame): Rename to...
9173 (selected_frame): ...this. Make static.
9174 (get_selected_frame, select_frame): Update.
9175 * frame.h (deprected_select_frame): Delete.
9176 (deprecated_safe_get_selected_frame): Update comments.
9178 * breakpoint.c, cli/cli-cmds.c, f-valprint.c, infcmd.c, inflow.c,
9179 infrun.c, stack.c, tui/tui-disasm.c, tui/tui-source.c,
9180 tui/tui-winsource.c, valops.c, varobj.c, findvar.c, macroscope.c,
9181 parse.c, regcache.h, sh64-tdep.c, tui/tui-hooks.c, tui/tui-win.c,
9182 tui/tui.c: Replace references to deprecated_selected_frame.
9184 2007-02-27 Fred Fish <fnf@specifix.com>
9186 * rs6000-tdep.c (skip_prologue): Recognize addi instructions that
9187 directly decrement the stack pointer, accumulate their operand into
9188 the stack offset, and mark the function as not being frameless.
9190 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
9192 * arch-utils.c (selected_byte_order): New.
9193 * arch-utils.h (selected_byte_order): New prototype.
9194 * remote-sim.c (gdbsim_open): Use selected_byte_order.
9196 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
9198 * symfile.c (place_section): Check SEC_ALLOC. Do not check VMA.
9199 (default_symfile_offsets): Check VMA here. Update section VMAs.
9201 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
9203 * remote.c (init_remote_state): Add special handling for placeholder
9206 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
9208 * Makefile.in (XMLFILES): Include $(TDEP_XML).
9209 (filenames_h): New variable.
9210 (clean): Clean up xml-builtin.c and stamp-xml.
9211 (arm-linux-nat.o): Update.
9212 * config/arm/linux.mh (TDEP_XML): Define.
9213 * arm-linux-nat.c (PTRACE_GETWMMXREGS, PTRACE_SETWMMXREGS): Define.
9214 (arm_linux_has_wmmx_registers): New.
9215 (GET_THREAD_ID): Fix typo.
9216 (IWMMXT_REGS_SIZE): Define.
9217 (fetch_wmmx_regs, store_wmmx_regs): New.
9218 (arm_linux_fetch_inferior_registers): Use fetch_wmmx_regs.
9219 (arm_linux_store_inferior_registers): Use store_wmmx_regs.
9220 (super_xfer_partial, arm_linux_xfer_partial): New.
9221 (_initialize_arm_linux_nat): Use them.
9222 * xml-support.c (fetch_xml_builtin): Move outside HAVE_LIBEXPAT.
9223 (xml_builtin_xfer_partial): New function.
9224 * xml-support.h (xml_builtin_xfer_partial): New prototype.
9225 * NEWS: Update mention of iWMMXt support.
9227 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
9229 * arm-tdep.c (arm_scan_prologue): Do not record FPA register saves
9230 if there are no FPA registers.
9231 (arm_dwarf_reg_to_regnum): New function.
9232 (arm_register_type, arm_register_name): Return minimal values for
9233 unsupported registers.
9234 (arm_register_sim_regno): Handle iWMMXt registers.
9235 (arm_gdbarch_init): Record missing FPA registers if indicated by
9236 a target description. Recognize iWMMXt registers. Only register
9237 "info float" for FPA. Use ARM_NUM_REGS. Register
9238 arm_dwarf_reg_to_regnum.
9239 * arm-tdep.h (enum gdb_regnum): Add ARM_NUM_REGS and iWMMXt
9241 (struct gdbarch_tdep): Add have_fpa_registers.
9242 * features/xscale-iwmmxt.xml: Update capitalization.
9243 * regformats/arm-with-iwmmxt.dat: Regenerated.
9245 2007-02-24 Kevin Buettner <kevinb@redhat.com>
9247 * NEWS (New targets): Add entry for the Toshiba Media Processor.
9249 2007-02-23 Kevin Buettner <kevinb@redhat.com>
9251 * MAINTAINERS (mep): New target.
9253 2007-02-23 Kevin Buettner <kevinb@redhat.com>
9255 From Jim Blandy, Dave Brolley, Kevin Buettner, Don Howard, and
9257 * Makefile.in (elf_mep_h, mep_desc_h, mep_opc_h): New variables.
9258 (mep-tdep.o): New rule.
9259 * configure.tgt (mep-*-*): New target.
9260 * mep-tdep.c: New file.
9261 * config/mep/mep.mt: New file.
9263 2007-02-22 Markus Deuling <deuling@de.ibm.com>
9265 * infrun.c (inferior_stop_reason, print_stop_reason): Remove
9266 BREAKPOINT_HIT and STOP_UNKNOWN.
9268 2007-02-22 Markus Deuling <deuling@de.ibm.com>
9270 * valops.c (value_ind): Fix unary * handling of TYPE_CODE_INT.
9272 2007-02-20 Joel Brobecker <brobecker@adacore.com>
9274 * gdb_expat.h (XMLCALL): Define if not already defined.
9276 2007-02-20 Andreas Schwab <schwab@suse.de>
9278 * Makefile.in (symfile.o): Update dependencies.
9280 2007-02-20 Daniel Jacobowitz <dan@codesourcery.com>
9282 * MAINTAINERS: Disable -Werror for cris simulator. Build
9283 sparc64-solaris2.10 instead of the broken sparc-elf.
9284 * solib-frv.c: Include "solib.h".
9285 * Makefile.in (solib-frv.o): Update.
9286 * mt-tdep.c (mt_gdbarch_init): Correct typo in floatformats patch.
9287 * xtensa-tdep.c (xtensa_regset_from_core_section): Cast size_t to int.
9288 (xtensa_frame_this_id, xtensa_frame_prev_register)
9289 (xtensa_push_dummy_call): Use %p.
9291 2007-02-16 Daniel Jacobowitz <dan@codesourcery.com>
9293 * avr-tdep.c, hppa-tdep.c, hppabsd-tdep.c, i386-tdep.c,
9294 ia64-tdep.c, m68k-tdep.c, mips-linux-tdep.c, ppcobsd-tdep.c,
9295 sparc-linux-tdep.c: Include "gdbtypes.h" instead of "floatformat.h".
9296 * Makefile.in (avr-tdep.o, hppabsd-tdep.o, hppa-tdep.o, i386-tdep.o)
9297 (ia64-tdep.o, m68k-tdep.o, mips-linux-tdep.o, ppcobsd-tdep.o)
9298 (sparc-linux-tdep.o): Update.
9300 2007-02-15 Maxim Grigoriev <maxim2405@gmail.com>
9302 * xtensa-tdep.h (xtensa_reg_mask_t): New.
9303 (xtensa_mask_t): Change mask field to be a separate array.
9304 * xtensa-tdep.c (extract_call_winsize, xtensa_pseudo_register_read)
9305 (xtensa_pseudo_register_write, xtensa_unwind_pc)
9306 (xtensa_unwind_dummy_id, xtensa_push_dummy_call)
9307 (xtensa_breakpoint_from_pc): Remove implicit type casting.
9308 * xtensa-config.c (mask0, mask1, mask2, mask3, mask4, mask5)
9309 (mask6, mask7, mask8, mask9, mask10, mask11, mask12, mask13)
9310 (mask14, mask15): Rename to
9311 (xtensa_mask0, xtensa_mask1, xtensa_mask2, xtensa_mask3)
9312 (xtensa_mask4, xtensa_mask5, xtensa_mask6, xtensa_mask7)
9313 (xtensa_mask8, xtensa_mask9, xtensa_mask10, xtensa_mask11)
9314 (xtensa_mask12, xtensa_mask13, xtensa_mask14, xtensa_mask15): this.
9315 (xtensa_submask0, xtensa_submask1, xtensa_submask2, xtensa_submask3)
9316 (xtensa_submask4, xtensa_submask5, xtensa_submask6, xtensa_submask7)
9317 (xtensa_submask8, xtensa_submask9, xtensa_submask10)
9318 (xtensa_submask11, xtensa_submask12, xtensa_submask13)
9319 (xtensa_submask14, xtensa_submask15): New.
9320 (rmap): Follow strict aliasing rules doing static initialization.
9322 2007-02-13 Daniel Jacobowitz <dan@codesourcery.com>
9324 * target-descriptions.c (tdesc_named_type): Move code_ptr and data_ptr
9325 handling from here...
9326 (tdesc_register_type): ...to here.
9327 * xml-tdesc.c (tdesc_start_reg): Allow code_ptr and data_ptr.
9328 * features/arm-core.xml: Use code_ptr and data_ptr.
9330 2007-02-13 Denis Pilat <denis.pilat@st.com>
9332 * varobj.h (enum varobj_update_error): New enum.
9333 * varobj.c (struct varobj_root): Add is_valid member.
9334 (varobj_get_type): Check for invalid varobj.
9335 (varobj_get_attributes): Likewise.
9336 (variable_editable):Likewise.
9337 (varobj_update): Likewise. Use varobj_update_error.
9338 (new_root_variable): Set root varobj as valid by default.
9339 (varobj_invalidate): New function.
9340 * symfile.c (clear_symtab_users): Use varobj_invalidate.
9341 * mi/mi-cmd-var.c (varobj_update_one): Change return type to void.
9342 Use varobj_update_error.
9344 2007-02-12 Pierre Muller <muller@ics.u-strasbg.fr>
9347 * dwarfread.c (set_cu_language): Recognize DW_LANG_Pascal83 as
9348 Pascal language marker.
9349 * dwarf2read.c (set_cu_language): Likewise.
9351 2007-02-12 Corinna Vinschen <vinschen@redhat.com>
9353 * win32-nat.c (win32_wait): Reset terminal pgrp to GDB.
9354 (do_initial_win32_stuff): Call terminal_init_inferior_with_pgrp
9355 instead of target_terminal_init since inferior_ptid isn't set yet.
9357 2007-02-10 Pedro Alves <pedro_alves@portugalmail.pt>
9359 * MAINTAINERS (Write After Approval): Add myself.
9361 2007-02-09 Fred Fish <fnf@specifix.com>
9363 Based on work by Apple Computer, Inc.
9364 * event-top.c (async_request_quit): Call quit() whenever either
9365 quit_flag is set or immediate_quit is set.
9367 2007-02-09 Gabriel Dos Reis <gdr@integrable-solutions.net>
9369 * ada-lang.c (remove_out_of_scope_renamings): Change third parameter's
9370 type to a pointer to const struct block.
9371 (ada_lookup_symbol_list): Don't cast away constness when calling
9372 remove_out_of_scope_renamings.
9374 2007-02-09 Gabriel Dos Reis <gdr@integrable-solutions.net>
9376 * linux-nat.c (linux_nat_find_memory_regions): Don't check the
9377 address of 'filename'; it is always non null.
9379 2007-02-09 Joel Brobecker <brobecker@adacore.com>
9381 * exec.c (add_to_section_table): Do not discard empty sections.
9383 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
9385 * features/Makefile, features/arm-with-iwmmxt.xml,
9386 features/gdbserver-regs.xsl, features/number-regs.xsl,
9387 features/sort-regs.xsl, features/xscale-iwmmxt.xml: New files.
9388 * regformats/arm-with-iwmmxt.dat: Generate.
9389 * NEWS: Mention iWMMXt.
9391 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
9393 * Makefile.in (arm-tdep.o, eval.o, target-descriptions.o)
9394 (xml-tdesc.o): Update.
9395 * xml-support.c: Add a comment.
9396 (gdb_xml_enums_boolean): New variable.
9397 (gdb_xml_parse_attr_enum): Use strcasecmp.
9398 * xml-support.h (gdb_xml_enums_boolean): Declare.
9399 * xml-tdesc.c (struct tdesc_parsing_data): Record current_feature,
9400 next_regnum, and current_union.
9401 (tdesc_start_feature, tdesc_start_reg, tdesc_start_union)
9402 (tdesc_end_union, tdesc_start_field, tdesc_start_vector)
9403 (field_attributes, union_children, reg_attributes, union_attributes)
9404 (vector_attributes, feature_attributes, feature_children): New.
9405 (target_children): Make static. Add <feature>.
9406 (tdesc_elements): Make static.
9407 * target-descriptions.c (struct tdesc_reg, tdesc_reg_p, type_p)
9408 (struct tdesc_feature, tdesc_feature_p): New types.
9409 (struct target_desc): Add features member.
9410 (struct tdesc_arch_data, tdesc_data): New.
9411 (target_find_description): Clarify error message. Warn about
9412 ignored register descriptions.
9413 (tdesc_has_registers, tdesc_find_feature, tdesc_feature_name)
9414 (tdesc_named_type, tdesc_data_init, tdesc_data_alloc)
9415 (tdesc_data_cleanup, tdesc_numbered_register)
9416 (tdesc_numbered_register_choices, tdesc_find_register)
9417 (tdesc_register_name, tdesc_register_type)
9418 (tdesc_remote_register_number, tdesc_register_reggroup_p)
9419 (set_tdesc_pseudo_register_name, set_tdesc_pseudo_register_type)
9420 (set_tdesc_pseudo_register_reggroup_p, tdesc_use_registers)
9421 (tdesc_free_reg, tdesc_create_reg, tdesc_free_feature)
9422 (tdesc_create_feature, tdesc_record_type): New.
9423 (free_target_description): Free features.
9424 (_initialize_target_descriptions): Initialize tdesc_data.
9425 * arch-utils.c (default_remote_register_number): New.
9426 * arch-utils.h (default_remote_register_number): New prototype.
9427 * target-descriptions.h (set_tdesc_pseudo_register_name)
9428 (set_tdesc_pseudo_register_type, set_tdesc_pseudo_register_reggroup_p)
9429 (tdesc_use_registers, tdesc_data_alloc, tdesc_data_cleanup)
9430 (tdesc_numbered_register, tdesc_numbered_register_choices)
9431 (tdesc_has_registers, tdesc_find_feature, tdesc_feature_name)
9432 (tdesc_named_type, tdesc_create_feature, tdesc_record_type)
9433 (tdesc_create_reg): Declare.
9434 * gdbarch.sh (remote_register_number): New entry.
9435 * gdbarch.c, gdbarch.h: Regenerate.
9436 * remote.c (init_remote_state): Use gdbarch_remote_register_number.
9437 * features/gdb-target.dtd: Add feature, reg, vector, union, and field.
9439 * arm-tdep.c (arm_register_aliases): New.
9440 (arm_register_name_strings): Rename to...
9441 (arm_register_names): ...this. Make const. Delete the old version.
9442 (current_option, arm_register_byte): Delete.
9443 (set_disassembly_style): Simplify. Do not adjust arm_register_names.
9444 (value_of_arm_user_reg): New.
9445 (arm_gdbarch_init): Verify any described registers. Call
9446 tdesc_use_registers. Don't use arm_register_byte. Create aliases
9447 for standard register names.
9448 (_initialize_arm_tdep): Do not adjust arm_register_names.
9449 * user-regs.c (struct user_reg): Add baton member.
9450 (append_user_reg, user_reg_add_builtin, user_regs_init)
9451 (user_reg_add, value_of_user_reg): Use a baton for user
9453 * std-regs.c: Update.
9454 * user-regs.h (user_reg_read_ftype, user_reg_add_builtin)
9455 (user_reg_add): Add baton argument.
9456 * NEWS: Mention target description register support.
9457 * features/arm-core.xml, features/arm-fpa.xml: New.
9458 * eval.c (evaluate_subexp_standard): Allow ptype $register
9459 when the program is not running.
9461 2007-02-09 Nick Roberts <nickrob@snap.net.nz>
9463 * mi/mi-cmd-var.c (mi_cmd_var_create): Add value field.
9465 2007-02-08 Thiago Jung Bauermann <bauerman@br.ibm.com>
9467 * rs6000-tdep.c (gdb_print_insn_powerpc): Set
9468 info->disassembler_options to "any".
9470 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
9472 * varobj.c (install_new_value): Only call value_get_print_value
9475 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
9477 Reported by timeless@gmail.com:
9478 * gdb/target.c (target_flash_erase): Do not return void value.
9479 (target_flash_done): Likewise.
9480 * gdb/cli/cli-cmds.c (source_command): Likewise.
9482 2007-02-08 Fred Fish <fnf@specifix.com>
9484 Based on work by Apple Computer, Inc.
9485 * event-top.c (handle_sigint): Set quit_flag.
9486 (async_request_quit): Don't set quit_flag. Avoid calling quit()
9487 if quit_flag has already been reset.
9489 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
9491 * ser-mingw.c (pipe_windows_close): Move variable initialization back
9494 2007-02-08 Fred Fish <fnf@specifix.com>
9496 * defs.h (request_quit): Remove declaration.
9497 * utils.c (request_quit): Remove definition.
9499 2007-02-08 Joel Brobecker <brobecker@gnat.com>
9500 Jan Kratochvil <jan.kratochvil@redhat.com>
9501 Daniel Jacobowitz <dan@codesourcery.com>
9503 * rs6000-tdep.c (bl_to_blrl_insn_p): New function.
9504 (skip_prologue): Allow bl->blrl used by PIC code.
9506 2007-02-08 Mark Kettenis <kettenis@gnu.org>
9507 Daniel Jacobowitz <dan@codesourcery.com>
9509 * cp-valprint.c (cp_print_value_fields, cp_print_value): Always
9510 initialize tmp_obstack.
9511 * p-valprint.c (pascal_object_print_value_fields)
9512 (pascal_object_print_value): Likewise.
9514 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
9516 * features/feature_to_c.sh: Use %s to avoid problems with nawk.
9518 2007-02-08 Mark Kettenis <kettenis@gnu.org>
9520 * sparcnbsd-tdep.c: Include "gdbtypes.h" instead of "floatformat.h".
9521 * Makefile.in (sparcnbsd-tdep.o): Update dependencies.
9523 2007-02-07 Daniel Jacobowitz <dan@codesourcery.com>
9525 * xml-tdesc.c (struct tdesc_xml_cache, tdesc_xml_cache_s)
9527 (tdesc_parse_xml): Cache expanded descriptions.
9529 2007-02-07 Daniel Jacobowitz <dan@codesourcery.com>
9531 * Makefile.in (XMLFILES): New.
9532 (COMMON_OBS): Add xml-builtin.o.
9533 (xml-builtin.c, stamp-xml): New rules.
9534 (xml-tdesc.o): Update.
9535 * features/feature_to_c.sh: New file.
9536 * xml-support.c (MAX_XINCLUDE_DEPTH): Define.
9537 (struct gdb_xml_parser): Add dtd_name and is_xinclude.
9538 (gdb_xml_start_element): Initialize scope after possibly reallocating
9539 scopes. Move cleanup later. Handle the XInclude description
9541 (gdb_xml_end_element): Only parse the body if there is a current element.
9542 Call XML_DefaultCurrent if there is no element.
9543 (gdb_xml_fetch_external_entity, gdb_xml_use_dtd): New.
9544 (struct xinclude_parsing_data, xinclude_start_include)
9545 (xinclude_end_include, xml_xinclude_default)
9546 (xml_xinclude_start_doctype, xml_xinclude_end_doctype)
9547 (xml_xinclude_xml_decl, xml_xinclude_cleanup, xinclude_attributes)
9548 (xinclude_elements, xml_process_xincludes, fetch_xml_builtin): New.
9549 * xml-support.h (xml_fetch_another, xml_process_xincludes)
9550 (fetch_xml_builtin, xml_builtin, gdb_xml_use_dtd): New declarations.
9551 * xml-tdesc.c (tdesc_parse_xml): Add fetcher_baton argument. Expand
9552 XInclude directives. Use the compiled in DTD.
9553 (fetch_xml_from_file): Add baton argument. Treat it as a containing
9554 directory name. Do not warn here.
9555 (file_read_description_xml): Update call. Warn here instead. Pass
9557 (fetch_available_features_from_target): New.
9558 (target_read_description_xml): Use it.
9559 * features/gdb-target.dtd: Add copyright notice. Use xinclude.dtd
9561 * features/xinclude.dtd: New file.
9563 2007-02-05 Daniel Jacobowitz <dan@codesourcery.com>
9565 * linux-thread-db.c (check_for_thread_db): Return early if we have
9566 no libthread_db support.
9568 2007-02-05 Daniel Jacobowitz <dan@codesourcery.com>
9570 * mi/mi-parse.h: Include <sys/time.h>.
9572 2007-02-05 Nick Roberts <nickrob@snap.net.nz>
9574 * mi/mi-cmd-stack.c (list_args_or_locals): Use common_val_print
9575 instead of print_variable_value to print values.
9577 2007-02-03 Nick Roberts <nickrob@snap.net.nz>
9579 * mi/mi-main.c: Numerous formatting changes.
9580 (mi_cmd_data_write_register_values): Replace clause inadvertantly
9581 removed in my previous change.
9583 2007-02-03 Eli Zaretskii <eliz@gnu.org>
9585 * mi/mi-main.c (mi_load_progress, timestamp, print_diff_now):
9586 Use 1000000L instead of 1000000.
9588 2007-02-03 Nick Roberts <nickrob@snap.net.nz>
9590 Based on work by Apple Computer, Inc.
9592 * configure.ac: Test for sys/resource.h and getrusage.
9593 * configure, config.in: Regenerate.
9595 * mi/mi-main.c: Include <sys/resource.h> if present.
9596 (rusage): Declare if HAVE_GETRUSAGE.
9597 (current_command_ts, do_timings): New static variables.
9598 (timestamp, print_diff_now, print_diff, timeval_diff):
9599 New static timing functions.
9600 (mi_cmd_enable_timings): New function for new MI command.
9601 (captured_mi_execute_command, mi_execute_async_cli_command):
9602 Call timing functions.
9604 * mi/mi-cmds.c (mi_cmds): Add entry for new MI command
9607 * mi/mi-cmds.h (mi_cmd_enable_timings): New extern.
9609 * mi/mi-parse.h: (mi_timestamp): New structure.
9610 (mi_parse): Add mi_timestamp* member.
9612 2007-02-02 Denis Pilat <denis.pilat@st.com>
9614 * thread.c (make_cleanup_restore_current_thread): New function.
9615 (info_threads_command): Use of make_cleanup_restore_current_thread
9616 to restore the current thread and the selected frame.
9617 (restore_selected_frame): New function.
9618 (struct current_thread_cleanup): Add frame_id field.
9619 (do_restore_current_thread_cleanup): Add restoring of the selected
9621 (make_cleanup_restore_current_thread): Likewise.
9622 (thread_apply_all_command): backup the selected frame while
9623 entering the function and restore it at exit.
9624 (thread_apply_command): Likewise.
9626 2007-02-02 Denis Pilat <denis.pilat@st.com>
9628 * MAINTAINERS (Write After Approval): Add myself to the list.
9630 2007-02-01 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
9632 * gdb/remote-m32r.sdi.c (m32r_fetch_register): Change PWD mask.
9633 (m32r_store_register): Ditto.
9635 2007-01-30 Vladimir Prus <vladimir@codesourcery.com>
9637 * ser-mingw.c (pipe_windows_open)
9638 (pipe_windows_read, pipe_windows_write): Declare
9639 variables at the top of the function.
9641 2007-01-29 Daniel Jacobowitz <dan@codesourcery.com>
9643 * doublest.c (floatformat_from_length): Use the right element from
9644 gdbarch floatformats.
9645 (floatformat_from_type, extract_typed_floating)
9646 (store_typed_floating): Likewise.
9647 * doublest.h: Remove declarations for undefined floatformat arrays.
9648 * gdbarch.sh (float_format, double_format, long_double_format): Change
9650 (pformat): Update for pairs.
9651 * gdbarch.c, gdbarch.h: Regenerated.
9652 * gdbtypes.c (floatformats_ieee_single, floatformats_ieee_double)
9653 (floatformats_ieee_double_littlebyte_bigword)
9654 (floatformats_i387_ext, floatformats_m68881_ext, floatformats_arm_ext)
9655 (floatformats_ia64_spill, floatformats_ia64_quad, floatformats_vax_f)
9656 (floatformats_vax_d): New variables.
9657 (builtin_type_ieee_single, builtin_type_ieee_double)
9658 (builtin_type_arm_ext, builtin_type_ia64_spill)
9659 (builtin_type_ia64_quad): Replace arrays with individual types.
9660 (builtin_type_ieee_single_big, builtin_type_ieee_single_little)
9661 (builtin_type_ieee_double_big, builtin_type_ieee_double_little)
9662 (builtin_type_ieee_double_littlebyte_bigword, builtin_type_i960_ext)
9663 (builtin_type_m88110_ext, builtin_type_m88110_harris_ext)
9664 (builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword)
9665 (builtin_type_ia64_spill_big, builtin_type_ia64_spill_little)
9666 (builtin_type_ia64_quad_big, builtin_type_ia64_quad_little): Delete
9667 unused and endian-specific types.
9668 (recursive_dump_type): Update for floatformat pairs.
9669 (build_flt): Move higher. Handle bit == -1. Take a floatformat pair.
9670 (build_gdbtypes): Use build_flt.
9671 (_initialize_gdbtypes): Update set of initialized types.
9672 * gdbtypes.h: Update declarations to match gdbtypes.c.
9673 (struct main_type): Store a pointer to two floatformats.
9674 * arch-utils.c (default_float_format, default_double_format): Delete.
9675 * arch-utils.h (default_float_format, default_double_format): Delete.
9677 * arm-tdep.c, avr-tdep.c, hppa-tdep.c, hppabsd-tdep.c, i386-tdep.c,
9678 ia64-tdep.c, iq2000-tdep.c, m68k-tdep.c, m88k-tdep.c,
9679 mips-linux-tdep.c, mips-tdep.c, mt-tdep.c, ppcobsd-tdep.c,
9680 sparc-linux-tdep.c, sparc-tdep.c, sparcnbsd-tdep.c, spu-tdep.c,
9681 vax-tdep.c, alpha-tdep.c, ppc-sysv-tdep.c: Update.
9683 2007-01-29 Joel Brobecker <brobecker@adacore.com>
9685 * target.c (maintenance_print_target_stack): New function.
9686 (initialize_targets): Add new "maintenance print target-stack"
9689 2007-01-28 Mark Kettenis <kettenis@gnu.org>
9691 * dwarf2read.c (new_symbol): Handle DW_AT_decl_file being zero.
9693 2007-01-27 Daniel Jacobowitz <dan@codesourcery.com>
9695 * dwarf2loc.h (struct dwarf2_locexpr_baton): Change size to a long.
9696 (struct dwarf2_loclist_baton): Likewise.
9698 2007-01-27 Eli Zaretskii <eliz@gnu.org>
9700 * cli/cli-script.c: Include breakpoint.h.
9701 (build_command_line): Require arguments only for if and while
9703 (get_command_line, execute_user_command, execute_control_command):
9704 Fix wording of warning messages.
9705 (print_command_lines): Print breakpoint commands.
9706 (execute_control_command): Call commands_from_control_command to
9707 handle the `commands' command inside a body of a flow-control
9709 (read_next_line): Recognize the `commands' command and build a
9710 command line structure for it.
9711 (recurse_read_control_structure, read_command_lines): Handle
9712 `commands' similarly to `if' and `while'.
9714 * breakpoint.c (get_number_trailer): Document the special meaning
9715 of NULL as the first argument PP.
9716 (commands_from_control_command): New function.
9718 * breakpoint.h (commands_from_control_command): Add prototype.
9720 * defs.h (commands_control): New enumerated value for enum
9721 command_control_type.
9723 2007-01-26 Joel Brobecker <brobecker@adacore.com>
9725 * ada-lang.c (ada_exception_breakpoint_ops): Fix typo in function name.
9726 (ada_exception_sal): Update accordingly.
9728 2007-01-26 Jan Kratochvil <jan.kratochvil@redhat.com>
9730 * c-valprint.c (c_val_print): Require strings to be of no-signed CHARs.
9731 * NEWS: Describe CHAR array vs. string identifcation rules.
9733 2007-01-25 Paul Brook <paul@codesourcery.com>
9735 * arm-tdep.c (arm_get_next_pc): Fix bitfield off-by-one error.
9737 2007-01-24 Jim Blandy <jimb@codesourcery.com>
9739 * dwarf2loc.c (dwarf2_evaluate_loc_desc): When the location
9740 expression is empty, bother to return the 'optimized out' value we
9741 construct. (Thanks to Carl Burch.)
9743 2007-01-24 Vladimir Prus <vladimir@codesourcery.com>
9745 * varobj.c (c_value_of_root, c_value_of_child)
9746 (cplus_describe_child): Don't call release_value.
9748 2007-01-24 Thiemo Seufer <ths@mips.com>
9750 * mips-linux-tdep.c (mips_linux_n64_rt_sigframe): Fix struct
9753 2007-01-24 Vladimir Prus <vladimir@codesourcery.com>
9755 Refactor getting children name, value and type access
9757 * varobj.c (get_type_deref): Remove.
9758 (adjust_value_for_child_access): New.
9759 (c_number_of_children): Use the above.
9760 (c_describe_child): Likewise.
9761 (enum accessibility): New.
9762 (match_accessibility): New function.
9763 (cplus_describe_child): New function.
9764 (cplus_name_of_child, cplus_value_of_child)
9765 (cplus_type_of_child): Reimplement in terms
9766 of cplus_describe_child.
9767 (cplus_number_of_children): Use
9768 adjust_value_for_child_access.
9770 2007-01-24 Vladimir Prus <vladimir@codesourcery.com>
9772 Fix computation of the 'editable' attribute and
9773 value changeability for for references.
9774 * varobj.c (get_value_type): New function.
9775 (c_variable_editable): Use get_value_type.
9776 (varobj_value_is_changeable): Likewise.
9778 2007-01-24 Joel Brobecker <brobecker@adacore.com>
9780 * source.c (find_and_open_source): Try rewriting the source
9781 path inside filename if dirname is NULL.
9783 2007-01-24 Joel Brobecker <brobecker@adacore.com>
9785 * dwarf2read.c (add_partial_symbol): Create an extra partial
9786 symbol in the VAR_DOMAIN for Ada structures, unions or enums.
9787 (new_symbol): Likewise for symbols.
9789 2007-01-24 Nick Roberts <nickrob@snap.net.nz>
9791 * mi/mi-main.c (mi_cmd_execute): Call free_all_values.
9793 2007-01-23 Vladimir Prus <vladimir@codesourcery.com>
9795 * value.c (value_primitive_field): Copy the full 'location'
9796 contents, instead of assuming that copying ADDRESS will
9797 bring over everything in the union. Remove obsolete comment.
9799 2007-01-23 Masaki Muranaka <monaka@monami-software.com>
9801 * m32c-tdep.c (make_regs, m32c_analyze_prologue)
9802 (m32c_skip_trampoline_code, m32c_m16c_address_to_pointer)
9803 (m32c_m16c_pointer_to_address): Separate code from declarations.
9805 2007-01-23 Nick Hudson <nick.hudson@dsl.pipex.com>
9807 * target.c (update_current_target): Correct typo.
9809 2007-01-22 Masaki Muranaka <monaka@monami-software.com>
9811 * xstormy16-tdep.c (xstormy16_skip_prologue): Separate code from a
9814 2007-01-11 Andrew Cagney <cagney@redhat.com>
9815 Daniel Jacobowitz <dan@codesourcery.com>
9816 Jan Kratochvil <jan.kratochvil@redhat.com>
9818 * dwarf2-frame.c (execute_cfa_program): New support of
9819 `DW_CFA_GNU_negative_offset_extended'.
9821 2007-01-21 Daniel Jacobowitz <dan@codesourcery.com>
9823 * NEWS: Mention flash support for "load" and new remote packets.
9825 2007-01-21 Markus Deuling <deuling@de.ibm.com>
9827 * breakpoint.c (delete_command): Skip redundant loop iterations.
9829 2007-01-21 Daniel Jacobowitz <dan@codesourcery.com>
9831 * gdbarch.sh (register_type): Update comment.
9832 * gdbarch.h: Regenerated.
9833 * arch-utils.c (generic_register_size): Call register_type.
9834 * ia64-tdep.c (ia64_extract_return_value): Likewise.
9835 * m32c-tdep.c (check_for_saved): Likewise.
9836 * mips-tdep.c (mips_print_register, print_gp_register_row)
9837 (mips_print_registers_info): Likewise.
9838 * sh-tdep.c (sh_pseudo_register_read, sh_pseudo_register_write):
9840 * sh64-tdep.c (sh64_pseudo_register_read, sh64_pseudo_register_write)
9841 (sh64_do_register, sh64_print_register)
9842 (sh64_media_print_registers_info): Likewise.
9843 * tui/tui-regs.c (tui_register_format): Likewise.
9845 2007-01-21 Daniel Jacobowitz <dan@codesourcery.com>
9847 * objfiles.h (ALL_PRIMARY_SYMTABS): Define.
9849 * ada-lang.c (symtab_for_sym, ada_lookup_symbol_list)
9850 (ada_lookup_symbol): Use ALL_PRIMARY_SYMTABS.
9851 * cp-support.c (make_symbol_overload_list_qualified): Likewise.
9852 * symtab.c (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
9853 (basic_lookup_transparent_type, find_pc_sect_symtab, search_symbols)
9854 (make_symbol_completion_list): Likewise.
9856 2007-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
9857 Daniel Jacobowitz <dan@codesourcery.com>
9859 * buildsym.c (end_symtab): Use preallocated symtab if available.
9860 Fill in SYMBOL_SYMTAB.
9861 * buildsym.h (struct subfile): Add symtab member.
9862 * dwarf2read.c (struct dwarf2_cu): Add line_header.
9863 (struct file_entry): Add symtab.
9864 (free_cu_line_header): New function.
9865 (read_file_scope): Use it. Save line_header in the cu. Process
9867 (add_file_name): Initialize new symtab member.
9868 (dwarf_decode_lines): Create symtabs for included files.
9869 (new_symbol): Set SYMBOL_SYMTAB.
9870 * symtab.c (lookup_symbol): Use SYMBOL_SYMTAB.
9871 (search_symbols): Likewise.
9872 * symtab.h (struct symbol): Add symtab member.
9873 (SYMBOL_SYMTAB): Define.
9875 2007-01-20 Daniel Jacobowitz <dan@codesourcery.com>
9877 * symfile.c (allocate_symtab): Remove INIT_EXTRA_SYMTAB_INFO.
9879 2007-01-20 Daniel Jacobowitz <dan@codesourcery.com>
9881 * arch-utils.c (show_endian): Correct reversed condition.
9883 2007-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
9885 * MAINTAINERS (Write After Approval): Add myself.
9887 2007-01-16 Daniel Jacobowitz <dan@codesourcery.com>
9888 Vladimir Prus <vladimir@codesourcery.com>
9890 Fix 'selected frame' varobjs.
9891 * varobj.c (struct varobj): Remove the error field.
9892 (varobj_set_value): Don't check var->error.
9893 (install_new_value): Don't set var->error.
9894 (varobj_update): Always pass the new value
9895 of the root via install_new_value.
9896 (create_child): Don't set error field.
9897 (new_variable): Likewise.
9898 (c_value_of_root): Always reevaluate the value
9899 of selected frame varobjs in the selected frame.
9900 Don't call reinit_frame_cache.
9902 2007-01-15 Joel Brobecker <brobecker@adacore.com>
9904 * source.c (_initialize_source): Improve the help text of
9905 the substitute-path commands.
9907 2007-01-14 Mark Kettenis <kettenis@gnu.org>
9909 * frv-tdep.c (frv_gdbarch_init, frv_register_name)
9910 (frv_breakpoint_from_pc, frv_gdbarch_adjust_breakpoint_address)
9911 (frv_skip_prologue): Remove prototypes.
9912 (frv_adjust_breakpoint_address): Renamed from
9913 frv_gdbarch_adjust_breakpoint_address.
9914 (frv_gdbarch_init): Adjust.
9916 2007-01-13 Mark Kettenis <kettenis@gnu.org>
9918 * gdbarch.sh (deprecated_extract_return_value)
9919 (deprecated_store_return_value): Remove.
9920 (extract_return_value, store_return_value): Remove default values.
9921 * gdbarch.c, gdbarch.h: Regenerate.
9922 * arch-utils.c, arch-utils.h (legacy_extract_return_value)
9923 (legacy_store_return_value): Remove.
9924 * regcache.c, regcache.h (deprecated_grub_regcache_for_registers):
9927 * mi/mi-main.c: Remove obsolete comment.
9929 * regcache.c, regcache.h (deprecated_register_bytes)
9930 (deprecated_read_register_bytes)
9931 (deprecated_write_register_bytes): Remove.
9933 * frame.c (get_frame_register_bytes, put_frame_register_bytes):
9934 Don't forget to move destination pointer.
9936 2007-01-01 Mark Kettenis <kettenis@gnu.org>
9938 * config/i386/nm-i386gnu.h (CHILD_PREPARE_TO_STORE): Remove.
9940 2007-01-11 Ulrich Weigand <uweigand@de.ibm.com>
9942 * spu-tdep.c (spu_analyze_prologue): Fix erroneous backtrace
9943 past entry function with recent newlib.
9945 2007-01-11 Vladimir Prus <vladimir@codesourcery.com>
9947 * gdb.texinfo (GDB/MI Variable Objects): Improve the
9948 introduction. Specify -var-update more exactly.
9950 2007-01-11 Daniel Jacobowitz <dan@codesourcery.com>
9952 * frame.c (get_prev_frame_1): Check PC_REGNUM before using it.
9954 2007-01-10 Jim Blandy <jimb@codesourcery.com>
9956 * MAINTAINERS (Global Maintainers): Ulrich Weigand has accepted
9957 the Global Maintainers' invitation to be a global maintainer.
9959 2007-01-10 Daniel Jacobowitz <dan@codesourcery.com>
9961 * infrun.c (singlestep_pc): New variable.
9962 (resume): Set singlestep_pc.
9963 (context_switch): Add a debugging message. Flush the frame cache.
9964 (handle_inferior_event): Add debugging messages. Handle thread
9965 hops when a software single step has completed. Let context_switch
9966 handle flushing the frame cache.
9968 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
9970 * NEWS: Mention target descriptions, "set tdesc filename",
9971 "unset tdesc filename", "show tdesc filename", and
9972 qXfer:features:read.
9973 * arch-utils.c (choose_architecture_for_target): New function.
9974 (gdbarch_info_fill): Call it.
9975 * target-descriptions.c (struct property): Make members non-const.
9976 (struct target_desc): Add arch member.
9977 (target_description_filename): New variable.
9978 (target_find_description): Try via XML first.
9979 (tdesc_architecture): New.
9980 (free_target_description, make_cleanup_free_target_description): New.
9981 (set_tdesc_property): Call xstrdup.
9982 (set_tdesc_architecture, tdesc_set_cmdlist, tdesc_show_cmdlist)
9983 (tdesc_unset_cmdlist, unset_tdesc_cmd, unset_tdesc_filename_cmd)
9984 (set_tdesc_cmd, show_tdesc_cmd, set_tdesc_filename_cmd)
9985 (show_tdesc_filename_cmd, _initialize_target_descriptions): New.
9986 * target-descriptions.h (tdesc_architecture)
9987 (make_cleanup_free_target_description, set_tdesc_architecture): New
9989 * Makefile.in (SFILES): Add xml-tdesc.c.
9990 (COMMON_OBS): Add xml-tdesc.o.
9991 (target-descriptions.o): Update.
9992 (xml-tdesc.o): New rule.
9993 * xml-tdesc.c, xml-tdesc.h: New files.
9994 * remote.c (PACKET_qXfer_features): New enum.
9995 (remote_protocol_features): Add qXfer:features:read.
9996 (remote_xfer_partial): Handle TARGET_OBJECT_AVAILABLE_FEATURES.
9997 (_initialize_remote): Register qXfer:features:read.
9998 * target.h (enum target_object): Add TARGET_OBJECT_AVAILABLE_FEATURES.
9999 * features/gdb-target.dtd: New file.
10001 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
10003 * copyright.sh: Clarify error.
10005 2007-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
10007 * symtab.c (matching_bfd_sections): Fix VMA matching for
10010 2007-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
10012 * minsyms.c (lookup_minimal_symbol_by_pc_section): Handle
10015 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
10017 Updated copyright notices for most files.
10019 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
10021 * copyright.sh (prunes): Add step-line.inp and step-line.c.
10023 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
10025 * configure.ac (DEBUGDIR_RELOCATABLE): Define for debugdir inside
10027 (TARGET_SYSTEM_ROOT_RELOCATABLE): Allow for exec_prefix being
10029 * configure, config.in: Regenerate.
10030 * defs.h (debug_file_directory): Declare.
10031 * main.c (captured_main): Canonicalize gdb_sysroot. Assume
10032 TARGET_SYSTEM_ROOT is defined. Initialize debug_file_directory and
10033 relocate it if DEBUGDIR_RELOCATABLE.
10034 * symfile.c (debug_file_directory): Make non-static.
10035 (find_separate_debug_file): Look for debug info for SYSROOT/PATH
10036 in DEBUGDIR/PATH if DEBUGDIR is inside SYSROOT.
10037 (_initialize_symfile): Don't initialize debug_file_directory here.
10039 2007-01-09 Jim Blandy <jimb@codesourcery.com>
10041 * score-tdep.c (score_push_dummy_call): Don't mix declarations and
10044 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
10046 * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Use
10047 frame_unwind_register to recurse.
10048 * alpha-tdep.c (alpha_sigtramp_frame_prev_register): Likewise.
10049 (alpha_heuristic_frame_prev_register): Likewise.
10050 * h8300-tdep.c (h8300_frame_prev_register): Likewise.
10051 * m32c-tdep.c (m32c_prev_register): Likewise.
10052 * frame.c (frame_register_unwind_location): Remove FIXME.
10054 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
10055 Eli Zaretskii <eliz@gnu.org>
10057 * copyright.sh: New file.
10059 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
10061 * configure.ac: Check for XML_StopParser.
10062 * xml-support.c (gdb_xml_body_text): Check for an error.
10063 (gdb_xml_start_element_wrapper): Conditionalize call to XML_StopParser.
10064 (gdb_xml_end_element_wrapper): Likewise.
10065 * config.in, configure: Regenerated.
10067 2007-01-08 Daniel Jacobowitz <dan@codesourcery.com>
10069 * varobj.c (install_new_value): Always update print_value.
10070 (value_get_print_value): Immediately return NULL for missing
10073 2007-01-08 Jim Blandy <jimb@codesourcery.com>
10075 * configure.ac: Tighten pattern for extracting value of
10076 DEPRECATED_TM_FILE from the target makefile fragment.
10077 * configure: Regenerated.
10079 2007-01-08 Daniel Jacobowitz <dan@codesourcery.com>
10081 * linux-nat.c (struct simple_pid_list): Add status.
10082 (add_to_pid_list): Record the PID's status.
10083 (linux_record_stopped_pid): Likewise. Make static.
10084 (pull_pid_from_list): Return the saved status.
10085 (linux_nat_handle_extended): Deleted.
10086 (linux_handle_extended_wait): Combine with linux_nat_handle_extended.
10087 Make static. Handle non-SIGSTOP for a new thread's first signal.
10088 (flush_callback): Handle unexpected pending signals.
10089 (linux_nat_wait): Update calls to changed functions.
10090 * linux-nat.h (linux_record_stopped_pid, linux_handle_extended_wait):
10091 Remove prototypes for newly static functions.
10093 2007-01-08 Ulrich Weigand <uweigand@de.ibm.com>
10095 * gdbarch.sh (value_from_register): New gdbarch function.
10096 * gdbarch.c, gdbarch.h: Regenerate.
10097 * findvar.c (default_value_from_register): New function.
10098 (value_from_register): Use gdbarch_value_from_register.
10099 * value.h (default_value_from_register): Declare.
10100 * spu-tdep.c (spu_convert_register_p, spu_register_to_value,
10101 spu_value_to_register): Remove.
10102 (spu_value_from_register): New function.
10103 (spu_gdbarch_init): Do not call set_gdbarch_convert_register_p,
10104 set_gdbarch_register_to_value, set_gdbarch_value_to_register.
10105 Call set_gdbarch_value_from_register.
10106 * s390-tdep.c (s390_convert_register_p, s390_register_to_value,
10107 s390_value_to_register): Remove.
10108 (s390_value_from_register): New function.
10109 (s390_gdbarch_init): Do not call set_gdbarch_convert_register_p,
10110 set_gdbarch_register_to_value, set_gdbarch_value_to_register.
10111 Call set_gdbarch_value_from_register.
10113 2007-01-08 Daniel Jacobowitz <dan@codesourcery.com>
10115 * NEWS: Add "set sysroot" and "show sysroot".
10116 * solib.c (solib_absolute_prefix): Delete. Replace
10117 all uses with gdb_sysroot.
10118 (_initialize_solib): Add "set sysroot" and "show sysroot".
10119 Make "solib-absolute-prefix" an alias to it.
10121 2007-01-08 Ulrich Weigand <uweigand@de.ibm.com>
10123 * frame.c (get_frame_register_bytes): New function.
10124 (put_frame_register_bytes): Likewise.
10125 * frame.h (get_frame_register_bytes): Declare.
10126 (put_frame_register_bytes): Likewise.
10127 * findvar.c (value_from_register): Always construct lval_register
10128 values. Use get_frame_register_bytes.
10129 * valops.c (value_assign): Use get_frame_register_bytes and
10130 put_frame_register_bytes.
10132 2007-01-08 Jim Blandy <jimb@codesourcery.com>
10134 * MAINTAINERS: Update Stan Shebs' email address.
10136 2007-01-07 Joel Brobecker <brobecker@adacore.com>
10138 * ada-lang.c (is_known_support_routine): Improve the implementation.
10140 2007-01-06 Joel Brobecker <brobecker@adacore.com>
10142 * ada-lang.c: Add include of source.h.
10143 (is_known_support_routine): Improve the check verifying that the file
10144 associated to this frame exists.
10145 * Makefile.in (ada-lang.o): Add dependency on source.h.
10147 2007-01-07 Jim Blandy <jimb@codesourcery.com>
10149 * ax-general.c (ax_const_l): Select proper opcode for the given
10152 2007-01-05 Vladimir Prus <vladimir@codesourcery.com>
10154 * varobj.c (c_value_of_root): Don't select frame if variable
10155 object is out of scope.
10157 2007-01-05 Nick Roberts <nickrob@snap.net.nz>
10159 * varobj.c (struct varobj): New member print_value.
10160 (install_new_value): Compare last printed value with current one
10161 instead of contents.
10162 (new_variable): Initialize var->print_value to NULL.
10163 (free_variable): Free var->print_value.
10164 (value_get_print_value): New function derived from
10165 c_value_of_variable.
10166 (c_value_of_variable): Use value_get_print_value.
10168 2007-01-05 Joel Brobecker <brobecker@adacore.com>
10170 * i386-tdep.c (i386_analyze_stack_align): Add comment.
10172 2007-01-05 Joel Brobecker <brobecker@adacore.com>
10174 * NEWS: Add entries for new catch commands.
10176 2007-01-05 Joel Brobecker <brobecker@adacore.com>
10178 * dwarf2read.c (partial_die_info): Add field has_byte_size.
10179 (add_partial_symbol): Correct identification of external references.
10180 (process_structure_scope): Likewise.
10181 (read_partial_die): Handle DW_AT_byte_size attribute.
10183 2007-01-05 Daniel Jacobowitz <dan@codesourcery.com>
10185 * xml-support.c (gdb_xml_end_element): Remove wrong backslashes.
10187 2007-01-05 Nick Roberts <nickrob@snap.net.nz>
10189 * varobj.c (get_type_deref): Fix variable objects for references to
10192 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
10194 * symtab.c (find_pc_sect_psymtab): Add comments. Handle psymtabs
10197 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
10199 * memory-map.c (struct_memory_map_parsing_data): Remove most
10200 members. Make property_name an array.
10201 (free_memory_map_parsing_data, memory_map_start_element)
10202 (memory_map_end_element, memory_map_character_data): Delete.
10203 (memory_map_start_memory, memory_map_end_memory)
10204 (memory_map_start_property, memory_map_end_property): New functions.
10205 (property_attributes, memory_children, memory_type_enum)
10206 (memory_attributes, memory_map_children, memory_map_elements): New.
10207 (parse_memory_map): Rewrite.
10208 * xml-support.c (debug_xml): New.
10209 (xml_get_required_attribute, xml_get_integer_attribute)
10210 (xml_get_enum_value, free_xml_parser, make_cleanup_free_xml_parser):
10212 (struct scope_level, struct gdb_xml_parser, gdb_xml_body_text)
10213 (gdb_xml_debug, gdb_xml_error, gdb_xml_values_cleanup)
10214 (gdb_xml_start_element, gdb_xml_start_element_wrapper)
10215 (gdb_xml_end_element, gdb_xml_end_element_wrapper, gdb_xml_cleanup)
10216 (gdb_xml_create_parser_and_cleanup, gdb_xml_parse)
10217 (gdb_xml_parse_ulongest, gdb_xml_parse_attr_ulongest)
10218 (gdb_xml_parse_attr_enum, show_debug_xml, _initialize_xml_support):
10220 * xml-support.h (struct gdb_xml_value, gdb_xml_attribute_handler)
10221 (enum gdb_xml_attribute_flag, struct gdb_xml_attribute)
10222 (enum gdb_xml_element_flag, struct gdb_xml_element)
10223 (gdb_xml_element_start_handler, gdb_xml_element_end_handler)
10224 (struct gdb_xml_enum): New.
10225 (gdb_xml_create_parser_and_cleanup, gdb_xml_parse, gdb_xml_debug)
10226 (gdb_xml_error, gdb_xml_parse_attr_ulongest)
10227 (gdb_xml_parse_attr_enum, gdb_xml_parse_ulongest): New prototypes.
10228 (xml_get_required_attribute, xml_get_integer_attribute)
10229 (xml_get_enum_value, make_cleanup_free_xml_parser): Delete prototypes.
10230 * Makefile.in (xml_support_h, xml-support.o): Update.
10232 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
10234 * Makefile.in (eval.o): Update dependencies.
10235 * eval.c: Include "ui-out.h" and "exceptions.h".
10236 (evaluate_subexp_standard): Use TRY_CATCH around value_of_variable.
10237 Use value_zero if an error occurs when avoiding side effects.
10238 * varobj.c (c_value_of_root): Initialize new_val.
10240 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
10242 * varobj.c (varobj_list_children): Stop if the number of children is
10244 (c_number_of_children):
10246 2007-01-04 Mark Kettenis <kettenis@gnu.org>
10248 * alpha-tdep.c (alpha_register_name): Use ARRAY_SIZE.
10249 (alpha_read_insn, alpha_skip_prologue, alpha_heuristic_proc_start)
10250 (alpha_heuristic_frame_unwind_cache, alpha_next_pc)
10251 (alpha_gdbarch_init): Use ALPHA_INSN_SIZE, ALPHA_REGISTER_SIZE and
10252 sizeof, instead of hardcoded constants.
10254 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
10256 * CONTRIBUTE: Use sourceware.org.
10258 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
10260 * buildsym.c (start_subfile): Handle producer.
10261 (record_producer): New function.
10262 * buildsym.h (struct subfile): Include producer.
10263 (record_producer): New prototype.
10264 * dwarf2-frame.c (struct dwarf2_cie): Add version and augmentation.
10265 (struct dwarf2_frame_state): Add armcc_cfa_offsets_sf and
10266 armcc_cfa_offsets_reversed.
10267 (execute_cfa_program): Handle armcc_cfa_offsets_sf.
10268 (dwarf2_frame_find_quirks): New function.
10269 (dwarf2_frame_cache): Call it. Handle armcc_cfa_offsets_reversed.
10270 (decode_frame_entry_1): Record the CIE version. Record the
10271 augmentation. Skip armcc augmentations.
10272 * dwarf2read.c (read_file_scope): Save the producer.
10273 * symtab.h (struct symtab): Rename unused version member to
10276 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
10278 * configure.ac (build_warnings): Use -Wall and
10279 -Wdeclaration-after-statement.
10280 * configure: Regenerated.
10282 2007-01-04 Vladimir Prus <vladimir@codesourcery.com>
10284 Simplify access to variours properties of child
10285 variable objects in C.
10286 * varobj.c (value_struct_element_index): New function.
10287 (c_describe_child): New function.
10288 (c_name_of_child, c_value_of_child)
10289 (c_type_of_child): Rewrite to use c_describe_child.
10291 2007-01-04 Vladimir Prus <vladimir@codesourcery.com>
10294 * varobj.c: Include "vec.h".
10295 (varobj_p): New typedef, declare vector of those.
10296 (struct varobj): Use vector for the 'children' member.
10297 (child_exists): Remove.
10298 (save_child_in_parent): Remove.
10299 (remove_child_from_parent): Remove.
10300 (struct varobj_child): Remove.
10301 (struct vstack): Remove.
10302 (vpush, vpop): Remove.
10303 (varobj_list_children): Adjust to work work vector.
10304 (varobj_update): Likewise. Use vectors for
10305 working stack and result.
10306 (delete_variable_1): Likewise.
10307 * Makefile.in (varobj.o): Update dependencies.
10309 2007-01-04 Vladimir Prus <vladimir@codesourcery.com>
10311 Port from Apple's version.
10313 * varobj.c (type_changeable): Rename to...
10314 (varobj_value_is_changeable_p): ...this. Adjust all callers.
10315 (is_root_p): New function. Use it everywhere.
10317 2007-01-04 Jim Blandy <jimb@codesourcery.com>
10319 * glibc-tdep.c (glibc_skip_solib_resolver): Look for '_dl_fixup',
10320 then plain 'fixup'.
10322 2007-01-04 Joel Brobecker <brobecker@adacore.com>
10324 * hpread.c (hpread_start_psymtab): Remove unnecessary extern.
10326 2007-01-04 Joel Brobecker <brobecker@adacore.com>
10328 * hpread.c (hpread_type_lookup): Fix compilation failure.
10330 2007-01-04 Qinwei <qinwei@sunnorth.com.cn>
10332 * NEWS: New port to S+core.
10333 * MAINTAINERS (Write After Approval, Responsible Maintainers):
10336 * Makefile.in: Add dependencies for S+core files.
10337 * configure.tgt (score*, score-*-*): Add S+core target.
10338 * config/score/embed.mt: New file.
10339 * score-tdep.c: New file.
10340 * score-tdep.h: New file.
10342 2007-01-04 Joel Brobecker <brobecker@adacore.com>
10344 * ada-lang.c (ada_evaluate_subexp) [OP_TYPE]: Return a value with
10345 the appropriate type rather than a bogus void type.
10347 2007-01-04 Joel Brobecker <brobecker@adacore.com>
10349 * ada-lang.h (ada_find_printable_frame): Remove.
10350 (ada_exception_catchpoint_p, ada_decode_exception_location)
10351 (ada_decode_assert_location): Add declaration.
10352 * ada-lang.c: Add include of annotate.h and valprint.h.
10353 (exception_catchpoint_kind): New enum.
10354 (function_name_from_pc, is_known_support_routine)
10355 (ada_find_printable_frame, ada_unhandled_exception_name_addr)
10356 (ada_exception_name_addr_1, ada_exception_name_addr)
10357 (print_it_exception, print_one_exception, print_mention_exception)
10358 (print_it_catch_exception, print_one_catch_exception)
10359 (print_mention_catch_exception, catch_exception_breakpoint_ops)
10360 (print_it_catch_exception_unhandled)
10361 (print_one_catch_exception_unhandled)
10362 (print_mention_catch_exception_unhandled, print_it_catch_assert)
10363 (print_one_catch_assert, print_mention_catch_assert)
10364 (ada_exception_catchpoint_p, error_breakpoint_runtime_sym_not_found)
10365 (ada_get_next_arg, catch_ada_exception_command_split)
10366 (ada_exception_sym_name, ada_exception_sym_name)
10367 (ada_exception_breakption_ops, ada_exception_catchpoint_cond_string)
10368 (ada_parse_catchpoint_condition, ada_exception_sal)
10369 (ada_decode_exception_location)
10370 (ada_decode_assert_location): New function.
10371 (catch_exception_unhandled_breakpoint_ops): New global variable.
10372 (catch_assert_breakpoint_ops): New global variable.
10373 * breakpoint.c: Add include of ada-lang.h.
10374 (print_one_breakpoint): Do not print the condition for Ada
10375 exception catchpoints.
10376 (create_ada_exception_breakpoint): New function.
10377 (catch_ada_exception_command, catch_assert_command): New function.
10378 (catch_command_1): Add support for the new "catch exception" and
10379 "catch assert" commands.
10380 (_initialize_breakpoint): Add help description for the new catch
10382 * Makefile.in (ada-lang.o): Add dependency on annotate.h and
10384 (breakpoint.o): Add dependency on ada-lang.h.
10386 2007-01-03 Pedro Alves <pedro_alves@portugalmail.pt>
10388 * coffread.c (cs_to_section): If bfd_section is found, always
10389 return its section index.
10390 (coff_symtab_read): Determine the minimal_symbol_type using the
10393 2007-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10394 Daniel Jacobowitz <dan@codesourcery.com>
10396 * Makefile.in (top.o): Update.
10397 * top.c (gdb_readline_wrapper_done, gdb_readline_wrapper_result)
10398 (saved_after_char_processing_hook, gdb_readline_wrapper_line)
10399 (struct gdb_readline_wrapper_cleanup, gdb_readline_wrapper_cleanup):
10401 (gdb_readline_wrapper): Rewrite to use asynchronous readline.
10403 2007-01-03 Mark Kettenis <kettenis@gnu.org>
10405 * arm-linux-tdep.c (arm_linux_extract_return_value): Remove.
10406 (arm_linux_init_abi): Don't set deprecated_extract_return_value.
10408 2007-01-03 Daniel Jacobowitz <dan@codesourcery.com>
10410 * ada-lang.c (find_struct_field): Initialize *byte_offset_p.
10411 * breakpoint.c (do_enable_breakpoint): Ignore both mem_cnt and i.
10412 * c-typeprint.c (c_type_print_varspec_suffix): Don't test length
10413 greater than or equal to zero.
10414 * m2-typeprint.c (m2_array): Likewise.
10415 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
10416 * gdbtypes.c (copy_type_recursive): Correct == typo.
10417 * i386-tdep.c (i386_skip_prologue): Remove stray semicolon.
10418 * linux-nat.c (linux_nat_info_proc_cmd): Don't compare a pointer
10420 * macroscope.c (sal_macro_scope): Don't name a local variable "main".
10421 (default_macro_scope): Remove unused variable.
10422 * prologue-value.h (pv_area_find_reg): Don't name an argument
10424 * remote-fileio.c (remote_fio_func_map): Add missing braces.
10425 * remote.c (sigint_remote_twice_token, sigint_remote_token): Change
10427 (cleanup_sigint_signal_handler): Remove casts.
10428 * valprint.c (val_print): Use a volatile local for the modified
10430 * varobj.c (languages): Remove extra array dimension.
10431 (varobj_create): Correct access to languages array.
10432 * mi/mi-cmd-break.c (mi_cmd_break_insert, mi_cmd_break_watch): Add
10434 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise.
10435 * mi/mi-cmd-env.c (mi_cmd_env_path, mi_cmd_env_dir): Likewise.
10436 * mi/mi-getopt.c (mi_valid_noargs): Likewise.
10437 * mi/mi-main.c (mi_cmd_data_read_memory): Likewise.
10438 (mi_cmd_data_write_memory): Likewise.
10439 * signals/signals.c (target_signal_to_string): Cast to int before
10441 * tui/tui-layout.c (init_and_make_win): Take and return a void *.
10442 Update all callers.
10444 2007-01-03 Daniel Jacobowitz <dan@codesourcery.com>
10446 * NEWS: Mention pointer to member improvements.
10447 * Makefile.in (gnu-v3-abi.o): Delete special rule.
10448 (eval.o, gnu-v3-abi.o, ia64-tdep.o): Update.
10449 * ada-valprint.c (ada_print_scalar): Update for new type codes.
10450 * c-typeprint.c (c_print_type): Update for new type codes.
10451 (c_type_print_varspec_prefix, c_type_print_varspec_suffix)
10452 (c_type_print_base): Likewise.
10453 (c_type_print_args): Rewrite.
10454 * c-valprint.c (c_val_print): Update for new type codes. Remove
10455 support for references to members. Treat methods like functions.
10456 * cp-abi.c (cplus_print_method_ptr, cplus_method_ptr_size)
10457 (cplus_make_method_ptr, cplus_method_ptr_to_value): New.
10458 * cp-abi.h (cplus_print_method_ptr, cplus_method_ptr_size)
10459 (cplus_make_method_ptr, cplus_method_ptr_to_value): New prototypes.
10460 (struct cp_abi_ops): Add corresponding members.
10461 * cp-valprint.c (cp_print_class_method): Delete.
10462 (cp_find_class_member): New function.
10463 (cp_print_class_member): Use it. Simplify support for bogus
10465 * dwarf2read.c (quirk_gcc_member_function_pointer): Use
10466 lookup_methodptr_type.
10467 (read_tag_ptr_to_member_type): Likewise, and lookup_memberptr_type.
10468 * eval.c (evaluate_subexp_standard): Implement EVAL_SKIP for
10469 OP_SCOPE. Update call to value_aggregate_elt. Rewrite member
10471 (evaluate_subexp_for_address): Handle OP_SCOPE explicitly. Handle
10472 references returned by user defined operators.
10473 * f-typeprint.c (f_print_type, f_type_print_varspec_prefix)
10474 (f_type_print_varspec_suffix): Remove support for member pointers.
10475 * gdbtypes.c (lookup_memberptr_type): Renamed from lookup_member_type
10477 (smash_to_memberptr_type): Likewise, from smash_to_member_type.
10478 (lookup_methodptr_type): New.
10479 (rank_one_type): Adjust for TYPE_CODE_MEMBERPTR.
10480 (recursive_dump_type): Update for new types.
10481 * gdbtypes.h (enum type_code): Replace TYPE_CODE_MEMBER with
10482 TYPE_CODE_MEMBERPTR and TYPE_CODE_METHODPTR.
10483 (lookup_memberptr_type, lookup_methodptr_type)
10484 (smash_to_memberptr_type): New prototypes.
10485 (smash_to_method_type): Formatting fix.
10486 (lookup_member_type, smash_to_member_type): Delete prototypes.
10487 * gnu-v3-abi.c (gnuv3_get_vtable, gnuv3_get_virtual_fn): New.
10488 Do not rely on debug information for the vptr or the method's
10489 enclosing type. Handle function descriptors for IA64.
10490 (gnuv3_virtual_fn_field): Rewrite using the new functions.
10491 (gnuv3_find_method_in, gnuv3_print_method_ptr)
10492 (gnuv3_method_ptr_size, gnuv3_make_method_ptr)
10493 (gnuv3_method_ptr_to_value): New.
10494 (init_gnuv3_ops): Set new members of gnu_v3_abi_ops.
10495 * hpread.c (hpread_type_lookup): Update for new types.
10496 * infcall.c (value_arg_coerce): Likewise.
10497 * m2-typeprint.c (m2_print_type): Remove explicit support
10498 for member pointers.
10499 * m2-valprint.c (m2_val_print): Likewise.
10500 * p-typeprint.c (pascal_type_print_varspec_prefix)
10501 (pascal_type_print_varspec_suffix, pascal_type_print_base): Likewise.
10502 * p-valprint.c (pascal_val_print): Likewise.
10503 (pascal_object_print_class_method, pascal_object_print_class_member):
10505 * p-lang.h (pascal_object_print_class_method)
10506 (pascal_object_print_class_member): Delete prototypes.
10507 * stabsread.c (read_type): Update for new types.
10508 * typeprint.c (print_type_scalar): Likewise.
10509 * valops.c (value_struct_elt_for_reference, value_namespace_elt)
10510 (value_maybe_namespace_elt, value_aggregate_elt): Add want_address
10511 argument. Construct a pointer to member if the address of a
10512 function or data member is requested.
10513 (value_cast_pointers): Don't modify the input value.
10514 (value_cast): Adjust pointer to member handling for new types.
10515 Allow null pointer to member constants. Don't modify the input
10517 (value_ind): Remove pointer to member check. Handle function
10518 descriptors for function pointers.
10519 (value_struct_elt, value_find_oload_method_list, check_field):
10520 Remove pointer to member checks.
10521 * value.c (unpack_long): Allow pointers to data members.
10522 (value_from_longest): Allow member pointers.
10523 * value.h (value_aggregate_elt): Add want_address.
10524 * varobj.c (c_variable_editable): Remove check for members.
10525 * gdbarch.sh: Add vtable_function_descriptors and vbit_in_delta.
10526 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Handle descriptors
10528 (ia64_gdbarch_init): Call set_gdbarch_vtable_function_descriptors.
10529 * c-lang.h (cp_print_class_method): Delete prototype.
10530 * arm-tdep.c (arm_gdbarch_init): Call set_gdbarch_vbit_in_delta.
10531 * mips-tdep.c (mips_gdbarch_init): Likewise.
10532 * gdbarch.c, gdbarch.h: Regenerated.
10534 2007-01-01 Mark Kettenis <kettenis@gnu.org>
10536 * rs6000-tdep.c (rs6000_use_struct_convention)
10537 (rs6000_extract_return_value, rs6000_store_return_value)
10538 (rs6000_extract_struct_value_address): Remove.
10539 (rs6000_return_value): New function.
10540 (rs6000_gdbarch_init): Don't set deprecated_extract_return_value,
10541 store_return_value, deprecated_extract_struct_value_address and
10542 deprecated_use_struct_convention. Use rs6000_return_value
10545 2007-01-02 Nick Roberts <nickrob@snap.net.nz>
10547 * mi/mi-cmds.c (mi_cmds): Remove entries for -display-delete,
10548 -display-disable, -display-enable, -display-insert and
10551 2007-01-01 Joel Brobecker <brobecker@adacore.com>
10553 * breakpoint.c (remove_breakpoint): Remove dead code.
10555 2007-01-01 Nick Roberts <nickrob@snap.net.nz>
10557 * varobj.c: Include block.h.
10558 (c_value_of_root): Check scope within nested statements.
10560 2007-01-01 Mark Kettenis <kettenis@gnu.org>
10562 * mi/mi-main.c (mi_cmd_data_write_register_values): Use
10563 regcache_cooked_write_signed instead of
10564 deprecated_write_register_bytes.
10566 2007-01-01 Joel Brobecker <brobecker@adacore.com>
10568 * config/djgpp/fnchange.lst: Add entry for ChangeLog-2006.
10570 2007-01-01 Joel Brobecker <brobecker@adacore.com>
10572 Followed the Start of New Year Procedure:
10573 * ChangeLog-2006: New file, containing all the entries for 2006.
10574 * ChangeLog: Removed all 2006 entries, and changed the reference
10575 to the previous ChangeLog to point to ChangeLog 2006.
10576 * top.c (print_gdb_version): Update copyright year.
10578 2007-01-01 Mark Kettenis <kettenis@gnu.org>
10580 * Makefile.in (remote-sds.o): Remove.
10581 * remote-sds.c: Delete.
10583 For older changes see ChangeLog-2006.
10589 version-control: never