1 2007-12-26 Joel Brobecker <brobecker@adacore.com>
3 * dwarf2read.c (read_base_type): Fix obvious &&/|| confusion.
5 2007-12-26 Luis Machado <luisgpm@br.ibm.com>
7 * dwarf2-frame.c (execute_cfa_program): Call dwarf2_restore_rule
8 function to handle required actions for the DW_CFA_restore and
9 DW_CFA_restore_extended instructions.
10 (dwarf2_restore_rule): New function.
12 2007-12-24 Joel Brobecker <brobecker@adacore.com>
14 * ada-lang.c (ada_is_character_type): Add recognition of type
15 "Wide_Wide_Character".
17 2007-12-24 Joel Brobecker <brobecker@adacore.com>
19 * dwarf2read.c (read_base_type): Set code to TYPE_CODE_CHAR
20 for char and unsigned char types of Ada compilation units.
21 * ada-lang.c (ada_is_character_type): Always return true if
22 the type code is TYPE_CODE_CHAR.
24 2007-12-23 Joel Brobecker <brobecker@adacore.com>
26 * infrun.c (handle_inferior_event): Remove code that made us
27 stop when stepping into the last line of the current function.
29 2007-12-22 Pierre Muller <muller@ics.u-strasbg.fr>
31 * win32-nat.c: Fix PR gdb/2388.
32 (do_win32_fetch_inferior_registers): Do not overwrite debug register
33 array dr if debug_registers_changed variable is set.
35 2007-12-22 Jan Kratochvil <jan.kratochvil@redhat.com>
37 * dwarf2read.c (scan_partial_symbols partial_die_parent_scope)
38 (add_partial_symbol, pdi_needs_namespace, process_die)
39 (is_type_tag_for_partial, load_partial_dies, new_symbol)
40 (read_type_die, determine_prefix): Extend the current code of
41 `DW_TAG_class_type' also for `DW_TAG_interface_type'.
43 2007-12-21 Paul N. Hilfinger <hilfinger@adacore.com>
45 * ada-lang.h (ada_renaming_category): New enumerated type.
46 (ada_lookup_encoded_symbol): Declare.
47 (ada_parse_renaming): Declare.
48 (ada_renaming_type,ada_is_object_renaming)
49 (ada_simple_renamed_entity): Delete declarations.
50 * ada-lang.c (ada_parse_renaming): New function to concentrate
51 extraction of information from renaming symbols.
52 (parse_old_style_renaming): New function to concentrate
53 extraction of old-style (purely type-based) renaming information.
54 (renaming_is_visible): Rename to...
55 (old_renaming_is_invisible): Rename and change sense of
57 (remove_out_of_scope_renamings): Rename to...
58 (remove_irrelevant_renamings): Renames remove_out_of_scope_renamings
59 and augments with additional logic to handle cases where the same
60 object renaming is encoded both as a reference variable and an
62 (ada_renaming_type,ada_is_object_renaming)
63 (ada_simple_renamed_entity): Delete definitions.
64 (ada_lookup_encoded_symbol): New function factored out of
66 (ada_lookup_symbol): Reimplement to call ada_lookup_encoded_symbol.
67 (wild_match): Don't reject perfect match of prefix.
68 (ada_find_renaming_symbol): Factor old-style renaming logic into
69 find_old_style_renaming_symbol.
70 (find_old_style_renaming_symbol): New name for content of old
71 ada_find_renaming_symbol.
72 (ada_prefer_type): Reimplement not to use ada_renaming_type.
73 * ada-exp.y (write_object_renaming): Change interface. Reimplement
74 to use new arguments and ada_parse_renaming.
75 Correct blocks used to find array index.
76 (write_var_or_type): Reimplement to use ada_parse_renaming.
78 2007-12-21 Denis Pilat <denis.pilat@st.com>
80 * tui/tui-data.h (MAX_LOCATOR_ELEMENT_LEN): Defined to a bigger
81 value or to PATH_MAX when possible.
83 2007-12-20 Joel Brobecker <brobecker@adacore.com>
85 * rs6000-tdep.h: Remove defs.h #include.
86 * Makefile.in (rs6000_tdep_h): Update dependencies.
88 2007-12-20 Thiago Jung Bauermann <bauerman@br.ibm.com>
90 * gdbtypes.c (gdbtypes_post_init): Change names of decimal float types
91 to conform to C extension for decimal float.
92 * c-lang.c (enum c_primitive_types): Add entries for Decimal Floating
94 (enum cplus_primitive_types): Likewise.
95 (c_language_arch_info): Add Decimal Floating Point builtin types to
96 the primitive_type_vector.
97 (cplus_language_arch_info): Likewise.
99 2007-12-20 David Ung <davidu@mips.com>
100 Maciej W. Rozycki <macro@mips.com>
102 * mips-tdep.c (mips_n32n64_push_dummy_call): Sign-extend
103 integers and 32-bit pointers as required by the ABI.
105 2007-12-20 Joel Brobecker <brobecker@adacore.com>
107 * symtab.h: Remove "defs.h" #include.
108 * Makefile.in (symtab_h): Update dependencies.
110 2007-12-19 Joel Brobecker <brobecker@adacore.com>
112 * symtab.h: #include "defs.h".
113 (enum language): Remove opaque declaration.
114 * Makefile.in (symtab_h): Update dependencies.
116 2007-12-19 Joel Brobecker <brobecker@adacore.com>
118 * language.h (enum exp_opcode): Remove commented out forward
120 (op_error): Delete declaration.
122 2007-12-19 Joel Brobecker <brobecker@adacore.com>
124 * infrun.c (handle_inferior_event): Fix spelling in comment.
126 2007-12-18 Daniel Jacobowitz <dan@codesourcery.com>
128 * minsyms.c (lookup_minimal_symbol): Also check the separate
130 (lookup_minimal_symbol_text): Likewise.
131 (lookup_minimal_symbol_solib_trampoline): Likewise.
132 * symtab.c (lookup_global_symbol_from_objfile): Likewise.
134 2007-12-18 Vladimir Prus <vladimir@codesourcery.com>
136 * mi/mi-main.c (mi_cmd_list_features): Announce
137 the 'pending-breakpoints' feature.
139 2007-12-17 Jim Blandy <jimb@codesourcery.com>
141 * dwarf2read.c (dwarf2_add_field): Correctly scale all byte
142 offsets obtained from DW_AT_data_member_location before recording
143 them in FIELD_BITPOS (*fp).
145 * dwarf2read.c (attr_form_is_section_offset): Doc fixes.
147 2007-12-17 Nigel Stephens <nigel@mips.com>
148 Maciej W. Rozycki <macro@mips.com>
150 * utils.c (string_to_core_addr): If the executable format
151 indicates that addresses should be sign-extended and there are
152 only 8 hex digits in the address, then do so.
153 * Makefile.in (utils.o): Depend on $(gdbcore_h).
155 2007-12-17 Chris Dearman <chris@mips.com>
157 * symfile.c (init_filename_language_table): Recognise .sx as
160 2007-12-17 Joel Brobecker <brobecker@adacore.com>
162 * language.h (enum exp_opcode): Comment out this declaration,
163 undoing the previous change.
165 2007-12-17 Luis Machado <luisgpm@br.ibm.com>
167 * breakpoint.c: (watch_command_1): Parse additional optional
168 "thread" parameter to the watchpoint command and set the
169 "thread" member of the breakpoint struct.
171 2007-12-17 Luis Machado <luisgpm@br.ibm.com>
173 * breakpoint.c (bpstat_stop_status): Check an additional
174 condition before evaluating an expression value.
176 2007-12-17 Joel Brobecker <brobecker@adacore.com>
178 * language.h (enum exp_opcode): Add forward declaration.
179 (language_string_char_type, language_lookup_primitive_type_by_name):
180 Move declaration past declaration of language_defn.
182 2007-12-16 Daniel Jacobowitz <dan@codesourcery.com>
183 Joseph Myers <joseph@codesourcery.com>
185 * configure.ac: Check for *-*-solaris2.1[[0-9]]* instead of
186 *-*-solaris2.1[[0-9]].
187 * configure: Regenerate.
188 * procfs.c (proc_set_current_signal): If redelivering a signal,
189 reuse the current siginfo if possible.
191 2007-12-16 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
193 * f-typeprint.c (print_equivalent_f77_float_type): Remove function.
194 (f_type_print_base): Output the type names directly for real and
197 2007-12-16 Vladimir Prus <vladimir@codesourcery.com>
199 * breakpoint.c (bpstat_have_active_hw_watchpoints):
201 (bpstat_stop_status): Remove unused variable
203 * breakpoint.h (bpstat_have_active_hw_watchpoints):
206 2007-12-16 Vladimir Prus <vladimir@codesourcery.com>
208 * target.h (target_pid_or_tid_to_str): Remove.
209 * infrun.c (handle_inferior_event):
210 Use target_pid_to_str instead of
211 target_pid_or_tid_to_str.
212 (normal_stop): Likewise.
214 2007-12-16 Jan Kratochvil <jan.kratochvil@redhat.com>
216 * dwarf2read.c (dwarf_attr_name): Rename `DW_AT_stride_size' to its
217 DWARF3 equivalent `DW_AT_bit_stride'.
218 Rename `DW_AT_stride' to its DWARF3 equivalent `DW_AT_byte_stride'.
220 2007-12-16 Joel Brobecker <brobecker@adacore.com>
222 * mi/mi-main.c: Remove code that was commented out in 1999.
224 2007-12-16 Joel Brobecker <brobecker@adacore.com>
226 * expression.h (parse_expression_in_context): Delete prototype.
227 * parse.c (parse_expression_in_context): Delete.
229 2007-12-14 Vladimir Prus <vladimir@codesourcery.com>
231 Add support for pending breakpoints in MI.
232 * gdb.h (gdb_breakpoint): Add parameter pending.
233 * breakpoint.c (gdb_breakpoint): Add parameter pending.
234 * mi/mi-cmd-break.c (mi_break_insert): Change
235 comment to refer to manual. Add support for
236 the -f flag, for pending breakpoint.
238 2007-12-14 Vladimir Prus <vladimir@codesourcery.com>
240 * breakpoint.c (break_command_really): New, copied
241 from break_command_1. New parameters COND_STRING, THREAD
242 PARSE_CONDITITION_AND_THREAD and PENDING_BREAK_SUPPORT.
243 The previous FLAG parameter split into TEMPFLAG and
245 When PARSE_CONDITION_AND_THREAD is not set, duplicate
246 the passed condition string.
247 (struct captured_breakpoint_args): Remove
248 (do_captured_breakpoint): Remove.
249 (break_command_1): Relay to break_command_really.
250 (gdb_breakpoint): Relay to break_command_really.
252 2007-12-13 Michael Snyder <msnyder@specifix.com>
254 * mips-linux-tdep.c (mips64_fill_gregset): Remove unused variable.
256 2007-12-13 Jim Blandy <jimb@codesourcery.com>
258 * dwarf2read.c (attr_form_is_constant): New function.
259 (dwarf2_add_field): Use it and attr_form_is_section_offset to
260 recognize DW_AT_data_member_location attributes. Use
261 dwarf2_get_attr_constant_value when the attribute is a constant.
263 * dwarf2read.c (attr_form_is_section_offset): New function.
264 (dwarf_add_member_fn, read_common_block, read_partial_die)
265 (dwarf2_symbol_mark_computed): Use it, instead of writing it out.
267 2007-12-12 Jim Blandy <jimb@codesourcery.com>
269 Remove unused support for target-based exception catching.
270 * target.h (struct target_ops): Delete
271 to_enable_exception_callback and to_get_current_exception_event
273 (target_enable_exception_callback)
274 (target_get_current_exception_event): Delete macros.
275 * target.c (update_current_target): Remove code to inherit and
276 default those members.
277 (debug_to_enable_exception_callback)
278 (debug_to_get_current_exception_event): Delete functions.
279 (setup_target_debug): Don't install those methods.
280 * inf-child.c (inf_child_enable_exception_callback)
281 (inf_child_get_current_exception_event): Delete dummy functions.
282 (inf_child_target): Don't install them in the target vector.
283 * breakpoint.h (enum bptype): Delete bp_catch_catch,
285 * breakpoint.c (cover_target_enable_exception_callback)
286 (ep_is_exception_catchpoint, create_exception_catchpoint): Delete
288 (insert_bp_location, update_breakpoints_after_exec)
289 (remove_breakpoint, ep_is_catchpoint, print_it_typical)
290 (bpstat_stop_status, bpstat_what)
291 (bpstat_get_triggered_catchpoints, print_one_breakpoint_location)
292 (user_settable_breakpoint, allocate_bp_location)
293 (disable_watchpoints_before_interactive_call_start)
294 (enable_watchpoints_after_interactive_call_stop, mention)
295 (delete_breakpoint, breakpoint_re_set_one, disable_command)
296 (enable_command): Remove exception catchpoint cases.
297 (catch_exception_command_1): Don't try target-based exception
299 * stack.c (catch_info): Call print_frame_label_vars
302 2007-12-12 Nigel Stephens <nigel@mips.com>
303 Maciej W. Rozycki <macro@mips.com>
305 * remote-mips.c (mips_load): Use regcache_set_valid_p() instead
306 of setting deprecated_register_valid array directly.
308 2007-12-07 Maciej W. Rozycki <macro@mips.com>
310 * mips-tdep.c (extended_offset): Fix a comment.
312 2007-12-07 Maciej W. Rozycki <macro@mips.com>
314 * target.c (update_current_target): Inherit to_log_command.
315 * target.h (struct target_ops). Add to_log_command.
316 (target_log_command): New macro.
317 * top.c (execute_command): Call target_log_command() rather than
318 serial_log_command().
319 * monitor.c (init_base_monitor_ops): Initialize to_log_command.
320 * remote-m32r-sdi.c (init_m32r_ops): Likewise.
321 * remote-mips.c (_initialize_remote_mips): Likewise.
322 * remote.c (init_remote_ops): Likewise.
324 2007-12-06 Daniel Jacobowitz <dan@codesourcery.com>
326 * infrun.c (init_wait_for_inferior): Reset target_last_wait_ptid.
327 (handle_inferior_event): Clear stop_stack_dummy earlier.
329 2007-12-06 Jim Blandy <jimb@codesourcery.com>
331 * addrmap.c (addrmap_splay_tree_remove): New function.
332 (addrmap_mutable_set_empty): Use it.
334 * addrmap.c, addrmap.h: Update to GPLv3.
336 * addrmap.c (struct addrmap): Make the referenced function table
338 (addrmap_fixed_funcs, addrmap_mutable_funcs): Declare const.
339 Don't use designated initializers.
341 * addrmap.c (addrmap_fixed_create_fixed, addrmap_mutable_find)
342 (addrmap_mutable_relocate): Use internal_error, not abort.
344 * NEWS: Mention support for non-contiguous lexical blocks and
347 2007-12-06 Markus Deuling <deuling@de.ibm.com>
349 * gdbarch.sh (stab_reg_to_regnum, dwarf_reg_to_regnum)
350 ( dwarf2_reg_to_regnum, sdb_reg_to_regnum, ecoff_reg_to_regnum): Add
351 gdbarch as parameter.
352 * gdbarch.{c,h}: Regenerate.
354 * xtensa-tdep.c (xtensa_reg_to_regnum): Add gdbarch as parameter.
355 Replace current_gdbarch by gdbarch.
356 * s390-tdep.c (s390_dwarf_reg_to_regnum): Likewise.
357 * rs6000-tdep.c (rs6000_stab_reg_to_regnum)
358 (rs6000_dwarf2_reg_to_regnum): Likewise.
359 * mips-tdep.c (mips_stab_reg_to_regnum)
360 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Likewise.
361 * mep-tdep.c (mep_debug_reg_to_regnum): Likewise.
362 * m32c-tdep.c (m32c_debug_info_reg_to_regnum): Likewise.
363 * i386-tdep.c (i386_dbx_reg_to_regnum)
364 (i386_svr4_reg_to_regnum): Likewise
365 * h8300-tdep.c (h8300s_dbg_reg_to_regnum)
366 (h8300_dbg_reg_to_regnum): Likewise.
367 * amd64-tdep.c (amd64_dwarf_reg_to_regnum): Likewise.
368 * arch-utils.c (no_op_reg_to_regnum): Likewise.
369 * arch-utils.h (no_op_reg_to_regnum): Likewise.
370 * arm-tdep.c (arm_dwarf_reg_to_regnum): Likewise.
371 * cris-tdep.c (cris_dwarf2_reg_to_regnum): Likewise.
372 * hppa-tdep.c (hppa64_dwarf_reg_to_regnum): Likewise.
373 * ia64-tdep.c (ia64_dwarf_reg_to_regnum): Likewise.
374 * m68k-tdep.c (m68k_dwarf_reg_to_regnum): Likewise.
376 2007-12-06 Vladimir Prus <vladimir@codesourcery.com>
378 Localize infrun use of remove_breakpoints.
379 * infrun.c (handle_inferior_event): Remove
380 calls to remove_breakpoints, except where needed to
381 communicate change of breakpoint locations to inferior.
382 (keep_going): If steppping over breakpoint, remove
385 2007-12-06 Vladimir Prus <vladimir@codesourcery.com>
387 Clarify infrun variable naming.
388 * infrun.c (trap_expected): Rename
389 to stepping_over_breakpoint. Document.
390 (stepping_past_breakpoint): Remove.
391 (stepping_past_breakpoint_ptdi): Renamed
392 to deferred_step_ptid.
393 (struct execution_control_state): Rename
394 the another_trap field to stepping_over_breakpoint.
395 (struct inferior_status): Rename the trap_expected
396 field to stepping_over_breakpoint.
397 (clear_proceed_status, proceed)
398 (init_execution_control_state, context_switch)
399 (handle_inferior_event, currently_stepping)
400 (keep_going, save_inferior_status)
401 (restore_inferior_status, prepare_to_proceed): Adjust.
402 * gdbthread.h (struct thread_info): Rename the
403 trap_expected field to stepping_over_breakpoint.
404 * thread.c (load_infrun_state, save_infrun_state):
407 2007-12-06 Pierre Muller <muller@ics.u-strasbg.fr>
409 * win32-nat.c: Allow compilation if CORE_ADDR is 8 byte long.
410 Add "gdb_stdint.h" dependency required for uintptr_t type use.
411 (handle_output_debug_string): Use uintptr_t typecast.
412 (handle_exception): Ditto.
413 (win32_xfer_memory): Ditto.
414 * Makefile.in (win32-nat.o): Add dependency to gdb_stdint header.
416 2007-12-04 Jim Blandy <jimb@codesourcery.com>
418 Support lexical blocks and function bodies that occupy
419 non-contiguous address ranges.
420 * addrmap.c, addrmap.h: New files.
421 * block.h (struct addrmap): New forward declaration.
422 (struct blockvector): New member, 'map'.
423 (BLOCKVECTOR_MAP): New accessor macro.
424 * block.c: #include "addrmap.h"
425 (blockvector_for_pc_sect): If the blockvector we've found has
426 an address map, use it instead of searching the blocks.
427 * buildsym.c: #include "addrmap.h"
428 (pending_addrmap_obstack, pending_addrmap_interesting): New static
430 (really_free_pendings): If we have a pending addrmap, free it too.
431 (record_block_range): New function.
432 (make_blockvector): If we have an interesting pending addrmap,
433 record it in the new blockvector.
434 (start_symtab, buildsym_init): Assert that there is no pending
435 addrmap now; we should have cleaned up any addrmaps we'd built
437 (end_symtab): If there is a pending addrmap left over that didn't
438 get included in the blockvector, free it.
439 * buildsym.h (struct addrmap): New forward declaration.
440 (record_block_range): New prototype.
441 * objfiles.c: #include "addrmap.h".
442 (objfile_relocate): Relocate the blockvector's address map, if
444 * dwarf2read.c (dwarf2_record_block_ranges): New function.
445 (read_func_scope, read_lexical_block_scope): Call it.
446 * Makefile.in (SFILES): Add addrmap.c.
447 (addrmap_h): New header dependency variable.
448 (COMMON_OBS): Add addrmap.o.
449 (addrmap.o): New rule.l
450 (block.o, objfiles.o, buildsym.o): Depend on $(addrmap_h).
452 * block.c (blockvector_for_pc, blockvector_for_pc_sect): Return a
453 pointer to the block, not its index in the blockvector.
454 (block_for_pc_sect): Use the returned block, instead of looking it
456 * block.h (blockvector_for_pc, blockvector_for_pc_sect): Update
458 * breakpoint.c (resolve_sal_pc): Use returned block, instead of
459 looking it up ourselves.
460 * stack.c (print_frame_label_vars): Disable function, which
461 depends on the block's index.
463 * buildsym.c (finish_block): Return the block we've built.
464 * buildsym.h (finish_block): Update prototype.
466 * defs.h (CORE_ADDR_MAX): New constant.
468 2007-12-04 Ulrich Weigand <uweigand@de.ibm.com>
470 * coffread.c (decode_type): Use builtin_type_int32 instead
471 of FT_INTEGER fundamental type for array range index type.
472 (decode_base_type): Use builtin types of current_gdbarch
473 instead of fundamental types.
475 * dwarf2read.c (struct dwarf2_cu): Remove ftypes member.
476 (read_file_scope): Do not initialize ftypes member.
477 (dwarf_base_type, dwarf2_fundamental_types): Remove functions.
478 (read_array_type): Use builtin_type_int32 instead of FT_INTEGER
479 fundamental type for array range index type.
480 (read_tag_string_type): Likewise for string range index type.
481 Also, do not overwrite FT_CHAR type with new string type.
482 (read_base_type): If DW_AT_name is missing, create unnamed type
483 with given properties instead of looking for a fundamental type.
484 Create new types as TYPE_TARGET_TYPE for DW_ATE_address and
485 DW_ATE_complex_float types.
486 (read_subrange_type): Create new type to represent missing
487 DW_AT_type instead of looking for a fundamental type.
488 (die_type): Use builtin type to represent "void" instead of
489 looking for a fundamental type.
491 * stabsread.c (define_symbol): Use builtin types to represent
492 'r' and 'i' floating-point and integer constants.
494 * gdbtypes.c (lookup_fundamental_type): Remove.
495 * gdbtypes.h (lookup_fundamental_type): Remove prototype.
496 (FT_VOID, FT_BOOLEAN, FT_CHAR, FT_SIGNED_CHAR, FT_UNSIGNED_CHAR,
497 FT_SHORT, FT_SIGNED_SHORT, FT_UNSIGNED_SHORT, FT_INTEGER,
498 FT_SIGNED_INTEGER, FT_UNSIGNED_INTEGER, FT_LONG, FT_SIGNED_LONG,
499 FT_UNSIGNED_LONG, FT_LONG_LONG, FT_SIGNED_LONG_LONG,
500 FT_UNSIGNED_LONG_LONG, FT_FLOAT, FT_DBL_PREC_FLOAT, FT_EXT_PREC_FLOAT,
501 FT_COMPLEX, FT_DBL_PREC_COMPLEX, FT_EXT_PREC_COMPLEX, FT_STRING,
502 FT_FIXED_DECIMAL, FT_FLOAT_DECIMAL, FT_BYTE, FT_UNSIGNED_BYTE,
503 FT_TEMPLATE_ARG, FT_DECFLOAT, FT_DBL_PREC_DECFLOAT,
504 FT_EXT_PREC_DECFLOAT, FT_NUM_MEMBERS): Remove macros.
505 * objfiles.c (struct objfile): Remove fundamental_types member.
506 * symfile.c (reread_symbols): Do not clear fundamental_types.
508 * language.h (struct language_defn): Remove la_fund_type member.
509 (create_fundamental_type): Remove.
510 * language.c (unk_lang_create_fundamental_type): Remove.
511 (unknown_language_defn, auto_language_defn,
512 local_language_defn): Adapt initializer.
513 * ada-lang.c (ada_create_fundamental_type): Remove.
514 (ada_language_defn): Adapt initializer.
515 * c-lang.h (c_create_fundamental_type): Remove prototype.
516 * c-lang.c (c_create_fundamental_type): Remove.
517 (c_language_defn, cplus_language_defn, asm_language_defn,
518 minimal_language_defn): Adapt initializer.
519 * f-lang.c (f_create_fundamental_type): Remove.
520 (f_language_defn): Adapt initializer.
521 * jv-lang.c (java_create_fundamental_type): Remove.
522 (java_language_defn): Adapt initializer.
523 * m2-lang.c (m2_create_fundamental_type): Remove.
524 (m2_language_defn): Adapt initializer.
525 * objc-lang.c (objc_create_fundamental_type): Remove.
526 (objc_language_defn): Adapt initializer.
527 * p-lang.h (pascal_create_fundamental_type): Remove prototype.
528 * p-lang.c (pascal_create_fundamental_type): Remove.
529 (pascal_language_defn): Adapt initializer.
530 * scm-lang.c (scm_language_defn): Adapt initializer.
532 2007-12-04 Maciej W. Rozycki <macro@mips.com>
534 * features/mips-cpu.xml: Specify "regnum" for "r0" explicitly.
535 * features/mips64-cpu.xml: Likewise.
536 * features/mips-fpu.xml: Specify "regnum" for "f0" explicitly.
537 * features/mips64-fpu.xml: Likewise.
538 * features/mips-linux.c: Regenerate.
539 * features/mips64-linux.c: Regenerate.
541 2007-12-04 Maciej W. Rozycki <macro@mips.com>
543 * target.h (target_find_new_threads): Fix definition.
545 2007-12-02 Pierre Muller <muller@ics.u-strasbg.fr>
547 * win32-nat.c (win32_resume): Set the trace bit
548 in the thread identified by inferior_ptid.
551 2007-12-02 Pierre Muller <muller@ics.u-strasbg.fr>
553 * win32-nat.c (open_process_used): New static variable.
554 (win32_init_thread_list): Remove call to CloseHandle for thread.
555 (win32_delete_thread): Ditto.
556 (fake_create_process): Set open_process_used if OpenProcess call is
558 (get_win32_debug_event): Do not close process handle.
559 (do_initial_win32_stuff): Set open_process_used to zero.
560 (win32_mourn_inferior): Call CloseHandle for current_process_handle if
561 open_process_used is set.
562 (win32_kill_inferior): Do not close process and main_thread handles.
564 2007-11-30 Daniel Jacobowitz <dan@codesourcery.com>
566 * remote.c (remote_cmdlist): New variable.
567 (PACKET_vFile_open, PACKET_vFile_pread, PACKET_vFile_pwrite)
568 (PACKET_vFile_close, PACKET_vFile_unlink): New constants.
569 (remote_buffer_add_string, remote_buffer_add_bytes)
570 (remote_buffer_add_int, remote_hostio_parse_result)
571 (remote_hostio_send_command, remote_hostio_open, remote_hostio_pwrite)
572 (remote_hostio_pread, remote_hostio_close, remote_hostio_unlink)
573 (remote_fileio_errno_to_host, remote_hostio_error, fclose_cleanup)
574 (remote_hostio_close_cleanup, remote_file_put, remote_file_get)
575 (remote_file_delete, remote_put_command, remote_get_command)
576 (remote_delete_command, remote_command): New functions.
577 (_initialize_remote): Register new packets and commands.
578 * Makefile.in (gdb_fileio_h): New variable.
580 (SUBDIR_MI_OBS): Add mi-cmd-target.o.
581 (SUBDIR_MI_SRCS): Add mi/mi-cmd-target.c.
582 (mi-cmd-target.o): New rule.
583 * mi/mi-cmd-target.c: New file.
584 * mi/mi-cmds.c (mi_cmds): Add target-file-delete, target-file-get,
586 * mi/mi-cmds.h (mi_cmd_target_file_get, mi_cmd_target_file_put)
587 (mi_cmd_target_file_delete): Declare.
588 * remote.h (remote_file_put, remote_file_get, remote_file_delete):
590 * NEWS: Describe new file transfer support.
592 2007-11-30 Vladimir Prus <vladimir@codesourcery.com>
594 * infrun.c (handle_inferior_event): Don't
595 ignore beakpoints if trap_expected is set.
597 2007-11-30 Vladimir Prus <vladimir@codesourcery.com>
599 Make insert_breakpoints return void.
600 * breakpoint.h (insert_breakpoints): Change
602 * breakpoint.c (insert_breakpoints): Change
603 return type to void. Rename local return_val
605 * infrun.c (keep_going): Instead of checking
606 return value from insert_breakpoints, catch exception.
608 2007-11-29 Vladimir Prus <vladimir@codesourcery.com>
610 Stop infrun from tracking breakpoint insertion status.
612 The checks of breakpoints_inserted before calling
613 remove_breakpoints are removed, as remove_breakpoint
614 won't touch uninserted breakpoints. In a number of places,
615 we're interested if a breakpoint is inserted at particular
616 PC, and we now use breakpoint_inserted_here_p. In a few
617 places, insert_breakpoints can be called unconditionally,
618 since it won't try to insert already inserted breakpoint.
620 * breakpoint.h (regular_breakpoint_inserted_here_p): New
622 * breakpoint.c (regular_breakpoint_inserted_here_p): New.
623 (breakpoint_inserted_here_p): Use
624 regular_breakpoint_inserted_here_p.
625 * infrun.c (breakpoints_inserted): Remove.
626 (resume): Don't check for breakpoints_inserted before
627 remove_hw_watchpoints. Use breakpoint_inserted_here_p.
628 (proceed, init_wait_for_inferior): Don't set breakpoints_inserted.
629 (handle_inferior_event): Don't use breakpoints_inserted.
630 Use breakpoints_meant_to_be_inserted and
631 breakpoints_inserted_here_p.
632 (insert_step_resume_breakpoint_at_sal, keep_going): Use
633 breakpoints_meant_to_be_inserted. Don't set breakpoints_inserted.
634 (normal_stop): Don't check for breakpoints_inserted. Don't
635 set breakpoints_inserted.
636 (keep_going): Don't check for breakpoints_inserted.
637 (insert_step_resume_breakpoint_at_sal): Don't insert
640 2007-11-28 Jim Blandy <jimb@codesourcery.com>
642 * breakpoint.c (watch_command_1): When the watchpoint isn't local
643 to any frame, initialize watchpoint_frame using null_frame_id, not
646 2007-11-28 Vladimir Prus <vladimir@codesourcery.com>
648 * infrun.c (resume): Set right thread even if
649 stepping over breakpoint using software single step.
651 2007-11-28 Nick Roberts <nickrob@snap.net.nz>
653 * mi/mi-cmd-var.c (print_varobj): Revert change from 2007-08-31.
654 (mi_print_value_p): Guard against type = NULL.
656 2007-11-27 Thiago Jung Bauermann <bauerman@br.ibm.com>
658 * dfp.c (decimal_from_string): Remove superfluous newline from
660 (decimal_to_string): Likewise.
661 * printcmd.c (printf_command): Change string buffer to use
662 MAX_DECIMAL_STRING constant.
663 * value.c (value_from_decfloat): Likewise.
665 2007-11-27 Ulrich Weigand <uweigand@de.ibm.com>
667 * Makefile.in (ALL_TARGET_OBS): Remove object files that require
668 64-bit CORE_ADDR and BFD support, move them to ...
669 (ALL_64_TARGET_OBS): ... this new variable.
670 * configure.ac: Check for --enable-64-bit-bfd option. Only add
671 64-bit targets with --enable-targets=all if BFD supports 64-bit.
672 * configure: Regenerate.
674 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Do not claim
675 all elf32-i386 executables, only cygwin core files.
677 2007-11-25 Jan Kratochvil <jan.kratochvil@redhat.com>
679 * dwarf2read.c (dwarf2_get_pc_bounds): Moved the `DW_AT_ranges' parsing
680 code with its variables OBJFILE, CU_HEADER and OBFD into ...
681 (dwarf2_ranges_read): ... a new function.
682 (read_partial_die): Implemented the parsing of `DW_AT_ranges'.
684 2007-11-24 Pedro Alves <pedro_alves@portugalmail.pt>
686 * win32-nat.c (DR6_CLEAR_VALUE): New define.
687 (thread_info_struct): Rename suspend_count to suspended, to be
689 (thread_rec): Only suspend the thread if it wasn't suspended by
690 gdb before. Warn if suspending failed.
691 (win32_add_thread): Set Dr6 to DR6_CLEAR_VALUE.
692 (win32_continue): Set Dr6 to DR6_CLEAR_VALUE. Update usage of the
693 `suspended' flag. Do ContinueDebugEvent after resuming the
694 suspended threads, not before. Set threads' contexts before
695 resuming them, not after.
696 (win32_resume): Set Dr6 to DR6_CLEAR_VALUE.
698 2007-11-23 Vladimir Prus <vladimir@codesourcery.com>
700 * breakpoint.c (insert_breakpoints)
701 (insert_bp_location): Remove stale comments.
703 2007-11-23 Maciej W. Rozycki <macro@mips.com>
705 * mips-linux-tdep.h: Fix some formatting.
707 2007-11-21 Markus Deuling <deuling@de.ibm.com>
709 * stack.c (print_args_stub): Use get_frame_arch to get at the current
710 architecture and replace current_gdbarch.
711 (frame_info): Likewise.
713 2007-11-21 Nick Roberts <nickrob@snap.net.nz>
715 * varobj.c (c_variable_editable, cplus_variable_editable)
716 (java_variable_editable, variable_editable): Delete.
717 (varobj_editable_p): Replace above functions with one language
718 independent function. Check for an lvalue.
719 (varobj_get_attributes, varobj_set_value): Use varobj_editable_p.
720 (struct language_specific): Delete variable_editable field.
722 * mi-cmd-var.c (mi_cmd_var_assign): Simplify.
724 * varobj.h: Add extern for varobj_editable_p.
726 2007-11-20 Vladimir Prus <vladimir@codesourcery.com>
728 Remove unused breakpoint fields.
729 * breakpoint.h (struct breakpoint): Remove
730 from_tty and flag fields.
731 * breakpoint.c (break_command_1): Don't set
732 from_tty and flag field set of breakpoint.
733 (create_ada_exception_breakpoint): Don't set
736 2007-11-20 David Ung <davidu@mips.com>
737 Maciej W. Rozycki <macro@mips.com>
739 * mips-tdep.c (mips16_scan_prologue): Handle the MIPS16e SAVE
742 2007-11-20 Vladimir Prus <vladimir@codesourcery.com>
744 * infrun.c (resume): Clarify logic that
745 decides if a single thread must be resumed. Add
748 2007-11-20 Vladimir Prus <vladimir@codesourcery.com>
750 * breakpoint.c (disable_breakpoints_in_unloaded_shlib):
753 2007-11-19 Markus Deuling <deuling@de.ibm.com>
755 * gdbarch.sh (register_sim_regno): Add gdbarch as parameter.
756 * gdbarch.{c,h}: Regenerate.
758 * arch-utils.h (legacy_register_sim_regno): Add gdbarch as parameter.
759 * score-tdep.c (score_register_sim_regno): Likewise.
760 * sim-regno.h (one2one_register_sim_regno): Likewise.
762 * arch-utils.c (legacy_register_sim_regno): Add gdbarch as parameter.
763 Replace current_gdbarch by gdbarch.
764 * sh-tdep.c (sh_sh2a_register_sim_regno)
765 (sh_dsp_register_sim_regno): Likewise.
766 * rs6000-tdep.c (rs6000_register_sim_regno): Likewise.
767 * mips-tdep.c (mips_register_sim_regno): Likewise.
768 * m32c-tdep.c (m32c_register_sim_regno): Likewise.
769 * frv-tdep.c (frv_register_sim_regno): Likewise.
770 * arm-tdep.c (arm_register_sim_regno): Likewise.
771 * remote-sim.c (one2one_register_sim_regno): Likewise.
773 2007-11-16 Ulrich Weigand <uweigand@de.ibm.com>
775 * configure.ac (--enable-targets): New configure option.
776 Collect gdb_target_obs of multiple targets into TARGET_OBS.
777 Call configure.tgt multiple times, using $targ as operand.
778 * configure.tgt: Operate on $targ instead of $target.
779 * configure: Regenerate.
780 * Makefile.in (ALL_TARGET_OBS): Define.
782 * NEWS: Mention --enable-targets option.
784 2007-11-16 Ulrich Weigand <uweigand@de.ibm.com>
786 * mips-tdep.c (show_mipsfpu_command): Do not crash if called when
787 current architecture is not MIPS.
789 2007-11-16 Ulrich Weigand <uweigand@de.ibm.com>
791 * cli/cli-setshow.c (do_setshow_command): Use dynamically sized buffer
792 to construct error message if no argument was supplied.
794 2007-11-16 Ulrich Weigand <uweigand@de.ibm.com>
796 * i386nbsd-tdep.c (i386nbsd_aout_supply_regset): Remove.
797 (i386nbsd_aout_regset_from_core_section): Likewise.
798 (i386nbsd_aout_init_abi): Likewise.
799 (_initialize_i386nbsd_tdep): Do not register i386nbsd_aout_init_abi.
801 * vaxnbsd-tdep.c (vaxnbsd_aout_init_abi): Remove.
802 (_initialize_vaxnbsd_tdep): Do not register vaxnbsd_aout_init_abi.
804 2007-11-16 Ulrich Weigand <uweigand@de.ibm.com>
806 * amd64fsdb-tdep.c (amd64fbsd_sigtramp_start_addr): Use ULL suffix.
807 (amd64fbsd_sigtramp_end_addr): Likewise.
809 * iq2000-tdep.c (iq2000_pointer_to_address): Fix argument type.
810 (iq2000_address_to_pointer): Likewise.
811 (iq2000_frame_prev_register): Likewise.
812 (iq2000_extract_return_value): Use regcache_cooked_read_unsigned
813 instead of regcache_cooked_read into CORE_ADDR variable.
814 (iq2000_return_value): Fix argument types.
816 * m32r-rom.c (m32r_load_section): Fix printf argument type.
817 (m32r_load): Likewise.
819 * m68kbsd-tdep.c: Include "gdbtypes.h".
820 * Makefile.in: Update dependencies.
822 * mn10300-tdep.c (mn10300_frame_unwind_cache): Fix aliasing violation.
824 * nto-tdep.c (LM_ADDR): Do not refer to no-longer-existing
825 lmo->l_addr_size element.
827 * remote-m32r-sdi.c (m32r_xfer_memory): Use paddr to print address.
828 (m32r_insert_breakpoint): Likewise.
829 (m32r_remove_breakpoint): Likewise.
830 (m32r_insert_watchpoint): Likewise.
831 (m32r_remove_watchpoint): Likewise.
832 (m32r_load): Fix printf argument type.
834 * xtensa-tdep.c (xtensa_regset_from_core_section): Fix printf
836 (xtensa_frame_this_id): Do not cast pointers to "int" for output.
837 (xtensa_frame_prev_register): Likewise.
838 (xtensa_push_dummy_call): Likewise.
840 2007-11-16 Ulrich Weigand <uweigand@de.ibm.com>
842 * config/alpha/alpha-linux.mt: Remove file.
843 * config/alpha/alpha.mt: Remove file.
844 * config/alpha/alpha-osf1.mt: Remove file.
845 * config/alpha/fbsd.mt: Remove file.
846 * config/alpha/nbsd.mt: Remove file.
847 * config/alpha/obsd.mt: Remove file.
848 * config/arm/embed.mt: Remove file.
849 * config/arm/linux.mt: Remove file.
850 * config/arm/nbsd.mt: Remove file.
851 * config/arm/obsd.mt: Remove file.
852 * config/arm/wince.mt: Remove file.
853 * config/avr/avr.mt: Remove file.
854 * config/cris/cris.mt: Remove file.
855 * config/frv/frv.mt: Remove file.
856 * config/h8300/h8300.mt: Remove file.
857 * config/i386/cygwin.mt: Remove file.
858 * config/i386/fbsd64.mt: Remove file.
859 * config/i386/fbsd.mt: Remove file.
860 * config/i386/i386gnu.mt: Remove file.
861 * config/i386/i386.mt: Remove file.
862 * config/i386/i386sol2.mt: Remove file.
863 * config/i386/linux64.mt: Remove file.
864 * config/i386/linux.mt: Remove file.
865 * config/i386/mingw.mt: Remove file.
866 * config/i386/nbsd64.mt: Remove file.
867 * config/i386/nbsd.mt: Remove file.
868 * config/i386/nto.mt: Remove file.
869 * config/i386/obsd64.mt: Remove file.
870 * config/i386/obsd.mt: Remove file.
871 * config/i386/sol2-64.mt: Remove file.
872 * config/ia64/ia64.mt: Remove file.
873 * config/ia64/linux.mt: Remove file.
874 * config/iq2000/iq2000.mt: Remove file.
875 * config/m32c/m32c.mt: Remove file.
876 * config/m32r/linux.mt: Remove file.
877 * config/m32r/m32r.mt: Remove file.
878 * config/m68hc11/m68hc11.mt: Remove file.
879 * config/m68k/linux.mt: Remove file.
880 * config/m68k/monitor.mt: Remove file.
881 * config/m68k/nbsd.mt: Remove file.
882 * config/m68k/obsd.mt: Remove file.
883 * config/m88k/obsd.mt: Remove file.
884 * config/mep/mep.mt: Remove file.
885 * config/mips/embed.mt: Remove file.
886 * config/mips/irix5.mt: Remove file.
887 * config/mips/irix6.mt: Remove file.
888 * config/mips/linux.mt: Remove file.
889 * config/mips/nbsd.mt: Remove file.
890 * config/mips/obsd64.mt: Remove file.
891 * config/mn10300/linux.mt: Remove file.
892 * config/mn10300/mn10300.mt: Remove file.
893 * config/mt/mt.mt: Remove file.
894 * config/pa/hppahpux.mt: Remove file.
895 * config/pa/hppa.mt: Remove file.
896 * config/pa/linux.mt: Remove file.
897 * config/pa/obsd.mt: Remove file.
898 * config/powerpc/aix.mt: Remove file.
899 * config/powerpc/linux.mt: Remove file.
900 * config/powerpc/nbsd.mt: Remove file.
901 * config/powerpc/obsd.mt: Remove file.
902 * config/powerpc/ppc-eabi.mt: Remove file.
903 * config/s390/s390.mt: Remove file.
904 * config/score/embed.mt: Remove file.
905 * config/sh/embed.mt: Remove file.
906 * config/sh/linux.mt: Remove file.
907 * config/sh/nbsd.mt: Remove file.
908 * config/sh/obsd.mt: Remove file.
909 * config/sh/sh64.mt: Remove file.
910 * config/sparc/embed.mt: Remove file.
911 * config/sparc/fbsd.mt: Remove file.
912 * config/sparc/linux64.mt: Remove file.
913 * config/sparc/linux.mt: Remove file.
914 * config/sparc/nbsd64.mt: Remove file.
915 * config/sparc/nbsd.mt: Remove file.
916 * config/sparc/obsd64.mt: Remove file.
917 * config/sparc/obsd.mt: Remove file.
918 * config/sparc/sol2-64.mt: Remove file.
919 * config/sparc/sol2.mt: Remove file.
920 * config/sparc/sparc64.mt: Remove file.
921 * config/sparc/sparc.mt: Remove file.
922 * config/spu/spu.mt: Remove file.
923 * config/v850/v850.mt: Remove file.
924 * config/vax/nbsd.mt: Remove file.
925 * config/vax/obsd.mt: Remove file.
926 * config/vax/vax.mt: Remove file.
927 * config/xstormy16/xstormy16.mt: Remove file.
928 * config/xtensa/xtensa.mt: Remove file.
930 * configure.tgt (gdb_target_cpu): Remove. Do not set anywhere.
931 (gdb_target): Likewise.
932 (gdb_target_obs): Document. Set for every target to contents
933 of TDEPFILES in former .mt makefile fragment.
935 * configure.ac (TARGET_OBS): Define.
936 (target_makefile_frag, gdb_target_cpu): Do not define.
937 * configure: Regenerate.
939 * Makefile.in (MT_FLAGS): Remove.
940 (GLOBAL_CFLAGS): Update.
941 (TARGET_OBS): Substitute from configure.
942 (DEPFILES): Remove TDEPFILES, add TARGET_OBS.
943 (@target_makefile_frag@): Remove.
945 2007-11-16 Ulrich Weigand <uweigand@de.ibm.com>
947 * config/arm/embed.mt (SIM_OBS, SIM): Remove.
948 * config/avr/avr.mt (SIM_OBS, SIM): Remove.
949 * config/frv/frv.mt (SIM_OBS, SIM): Remove.
950 * config/h8300/h8300.mt (SIM_OBS, SIM): Remove.
951 * config/iq2000/iq2000.mt (SIM_OBS, SIM): Remove.
952 * config/m32c/m32c.mt (SIM_OBS, SIM): Remove.
953 * config/m32r/linux.mt (SIM_OBS, SIM): Remove.
954 * config/m32r/m32r.mt (SIM_OBS, SIM): Remove.
955 * config/m68hc11/m68hc11.mt (SIM_OBS, SIM): Remove.
956 * config/mips/embed.mt (SIM_OBS, SIM): Remove.
957 * config/mips/linux.mt (SIM_OBS, SIM): Remove.
958 * config/mips/nbsd.mt (SIM_OBS, SIM): Remove.
959 * config/mn10300/mn10300.mt (SIM_OBS, SIM): Remove.
960 * config/powerpc/linux.mt (SIM_OBS, SIM): Remove.
961 * config/powerpc/nbsd.mt (SIM_OBS, SIM): Remove.
962 * config/powerpc/ppc-sim.mt: Remove file.
963 * config/sh/embed.mt (SIM_OBS, SIM): Remove.
964 * config/sh/linux.mt (SIM_OBS, SIM): Remove.
965 * config/sh/nbsd.mt (SIM_OBS, SIM): Remove.
966 * config/sh/sh64.mt (SIM_OBS, SIM): Remove.
967 * config/sparc/embed.mt (SIM_OBS, SIM): Remove.
968 * config/v850/v850.mt (SIM_OBS, SIM): Remove.
969 * config/xstormy16/xstormy16.mt (SIM_OBS, SIM): Remove.
971 * configure.tgt (gdb_sim): Document variable.
972 (arm*-*-* | thumb*-*-* | strongarm*-*-* | xscale-*-*): Set it.
975 (h8300-*-*): Likewise.
976 (iq2000-*-*): Likewise.
977 (m32c-*-*): Likewise.
978 (m32r*-*-linux*): Likewise.
979 (m32r*-*-*): Likewise.
980 (m68hc11*-*-*|m6811*-*-*): Likewise.
981 (mips*-*-*): Likewise.
982 (mips*-*-linux*): Likewise.
983 (mips*-*-netbsd* | mips*-*-knetbsd*-gnu): Likewise.
984 (mn10300-*-*): Likewise.
985 (powerpc-*-linux* | powerpc64-*-linux*): Likewise.
986 (powerpc-*-netbsd* | powerpc-*-knetbsd*-gnu): Likewise.
987 (powerpc*-*-*): Use ppc-eabi target. Conditionally set gdb_sim.
989 (sh-*-linux*): Likewise.
990 (sh*-*-netbsdelf* | sh*-*-knetbsd*-gnu): Likewise.
991 (sh64-*-elf*): Likewise.
992 (sparc-*-rtems*): Likewise.
993 (v850*-*-elf): Likewise.
994 (xstormy16-*-*): Likewise.
996 * configure.ac (IGNORE_SIM, IGNORE_SIM_OBS): Do not set.
997 (SIM, SIM_OBS): Set depending on ${ignore_sim} and ${gdb_sim}.
998 * configure: Regenerate.
999 * Makefile.in (SIM, SIM_OBS): Substitute from configure.
1000 (@IGNORE_SIM@, @IGNORE_SIM_OBS@): Remove.
1002 2007-11-16 Ulrich Weigand <uweigand@de.ibm.com>
1004 * configure.tgt (gdb_osabi, build_gdbserver): Comment variables.
1005 (arm*-*-*): Do not set obsolete build_rdi_share variable.
1007 (*-*-freebsd* | *-*-kfreebsd*-gnu): Remove generic case, replace by ...
1008 (alpha*-*-freebsd* | alpha*-*-kfreebsd*-gnu)
1009 (i[34567]86-*-freebsd* | i[34567]86-*-kfreebsd*-gnu)
1010 (sparc*-*-freebsd* | sparc*-*-kfreebsd*-gnu): ... specific cases.
1011 (x86_64-*-freebsd* | x86_64-*-kfreebsd*-gnu): Re-sort.
1013 (xscale-*-*): Merge into arm*-*-* case.
1014 (fido-*-elf*): Merge into m68*-*-elf* case.
1015 (m68*-*-aout*, m68*-*-coff*, m68*-*-elf*, m68*-*-rtems*,
1016 m68*-*-uclinux*): Merge cases.
1017 (powerpc-*-linux*, powerpc64-*-linux*): Merge cases.
1018 (sh-*-coff*, sh-*-elf*): Merge into sh* case.
1020 2007-11-16 Ulrich Weigand <uweigand@de.ibm.com>
1022 * configure.tgt: Reformat main case statement.
1024 2007-11-16 Ulrich Weigand <uweigand@de.ibm.com>
1026 * configure.ac (hostfile, targetfile): Remove.
1027 (GDB_XM_FILE, GDB_TM_FILE): Do not define.
1028 (xm_h, tm_h): Likewise.
1029 (DEPRECATED_TM_FILE, XM_FILE): Do not substitute into Makefile.
1030 * configure, config.in: Regenerate.
1032 * Makefile.in (xm_h, tm_h): Remove. Update dependencies.
1033 (TAGS): Do not consider DEPRECATED_TM_FILE or XM_FILE.
1034 (clean, local-maintainer-clean): Do not remove xm.h or tm.h.
1035 * defs.h: Do not include "xm.h" or "tm.h".
1037 * gdbarch.sh (verify_gdbarch): Do not dump GDB_XM_FILE or GDB_TM_FILE.
1038 * gdbarch.c: Regenerate.
1040 * config/score/embed.mt: Remove obsolete comment.
1042 2007-11-16 Markus Deuling <deuling@de.ibm.com>
1044 * gdbarch.sh (cannot_fetch_register, cannot_store_register): Add gdbarch
1046 * gdbarch.{c,h}: Regenerate.
1048 * alpha-tdep.c (alpha_cannot_fetch_register)
1049 (alpha_cannot_store_register): Add gdbarch as parameter. Replace
1050 current_gdbarch by gdbarch.
1051 * cris-tdep.c (cris_cannot_fetch_register, cris_cannot_store_register)
1052 (crisv32_cannot_fetch_register)
1053 (crisv32_cannot_store_register): Likewise.
1054 * arch-utils.c (cannot_register_not): Likewise.
1055 * arch-utils.h (cannot_register_not): Likewise.
1056 * hppa-tdep.c (hppa32_cannot_store_register)
1057 (hppa32_cannot_store_register, hppa64_cannot_store_register)
1058 (hppa64_cannot_fetch_register): Likewise.
1059 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register)
1060 (mipsnbsd_cannot_store_register): Likewise.
1062 2007-11-16 Markus Deuling <deuling@de.ibm.com>
1064 * m32r-rom.c (m32r_supply_register): Use get_regcache_arch to get at
1065 the current architecture by regcache.
1066 * ppcnbsd-nat.c (ppcnbsd_supply_pcb): Likewise.
1067 * ppc-linux-nat.c (fetch_altivec_register, fetch_spe_register)
1068 (fetch_register, supply_vrregset, fetch_ppc_registers)
1069 (store_altivec_register, store_spe_register, store_register)
1070 (fill_vrregset, store_ppc_registers): Likewise.
1071 * ppcobsd-nat.c (ppcobsd_supply_pcb): Likewise.
1072 * win32-nat.c (do_win32_fetch_inferior_registers)
1073 (do_win32_store_inferior_registers): Likewise.
1074 * procfs.c (procfs_fetch_registers, procfs_store_registers): Likewise.
1075 * remote-m32r-sdi.c (m32r_fetch_registers)
1076 (m32r_store_registers): Likewise.
1077 * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register): Likewise.
1079 * trad-frame.c (trad_frame_alloc_saved_regs): Replace current_gdbarch by
1081 * user-regs.c (user_reg_map_name_to_regnum): Likewise.
1082 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call)
1083 (do_ppc_sysv_return_value, ppc64_sysv_abi_push_dummy_call)
1084 (ppc64_sysv_abi_return_value): Likewise.
1085 * m32c-tdep.c (m32c_register_reggroup_p): Likewise.
1086 * m2-lang.c (build_m2_types): Likewise.
1087 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache
1088 * ppcnbsd-tdep.c (ppcnbsd_sigtramp_cache_init): Likewise.
1089 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_cache): Likewise.
1090 * rs6000-tdep.c (ppc_dwarf2_frame_init_reg): Likewise.
1092 * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Use get_frame_arch to
1093 get at the current architecture by frame_info.
1094 * gcore.c (derive_stack_segment): Likewise.
1096 * shnbsd-nat.c (GETREGS_SUPPLIES): Add gdbarch parameter.
1097 (shnbsd_fetch_inferior_registers, shnbsd_store_inferior_registers): Add
1098 gdbarch to GETREGS_SUPPLIES call.
1100 2007-11-16 Ulrich Weigand <uweigand@de.ibm.com>
1102 * elfread.c (ST_REGULAR, ST_DYNAMIC, ST_SYNTHETIC): New defines.
1103 (elf_symtab_read): Rename DYNAMIC argument to TYPE. Do not access
1104 ELF-private symbol data when processing synthetic symbols. Use
1105 udata.p to get at size of ppc64 synthetic 'dot' symbols.
1106 (elf_symfile_read): Pass TYPE argument to elf_symtab_read.
1108 2007-11-15 Doug Evans <dje@google.com>
1110 * buildsym.h (subfiles): Move ...
1111 * buildsym.c (subfiles): ... to here and make static.
1113 * symmisc.c (maintenance_info_symtabs): Print linetable info.
1115 2007-11-15 Markus Deuling <deuling@de.ibm.com>
1117 * mipsnbsd-tdep.h (SIZEOF_STRUCT_REG, SIZEOF_STRUCT_FPREG): Remove
1119 2007-11-15 Markus Deuling <deuling@de.ibm.com>
1121 * arm-tdep.c (arm_prologue_this_id): Replace LOWEST_PC by its
1122 expression and use get_frame_arch to replace current_gdbarch by frame's
1124 * arm-tdep.h (LOWEST_PC): Remove
1126 2007-11-15 Vladimir Prus <vladimir@codesourcery.com>
1128 Apply const qualifier to some users of bp_location.
1129 * breakpoint.h (struct bpstats): Make
1130 the breakpoint_at field point at const bp_location.
1131 * breakpoint.c (bpstat_alloc): Accept const
1133 (breakpoint_here_p, breakpoint_inserted_here_p)
1134 (software_breakpoint_inserted_here_p)
1135 (breakpoint_thread_match, bpstat_stop_status)
1136 (read_memory_nobpt, bpstat_have_active_hw_watchpoints): Use
1137 const bp_location for iteration.
1138 (print_it_typical, print_bp_stop_message): Use
1139 const bp_location variable.
1141 2007-11-15 Vladimir Prus <vladimir@codesourcery.com>
1143 Make mark_breakpoints_out static.
1144 * breakpoint.h (mark_breakpoints_out): Remove
1146 * breakpoint.c (mark_breakpoints_out): Make static.
1148 2007-11-15 Vladimir Prus <vladimir@codesourcery.com>
1150 Prevent clear_command from directly modifying breakpoint list.
1151 * Makefile.in (breakpoint_h): Update dependency.
1152 * breakpoint.c (clear_command): Do not remove
1153 breakpoints from breakpoint_chain. Collect breakpoints
1154 to delete in a vector.
1155 * breakpoint.h (breakpoint_p): New typedef for pointer to
1156 breakpoint. Register vector of breakpoint_p.
1158 2007-11-15 Vladimir Prus <vladimir@codesourcery.com>
1160 Remove 'run_cleanup'.
1161 * defs.h (do_run_cleanups, make_run_cleanup): Remove
1163 * infcmd.c (run_command_1): Call clear_solib instead
1165 * jv-lang.c (java_rerun_cleanup): Remove, for lack of
1167 * solib.c (solib_cleanup_queued, do_clear_solib): Remove.
1168 (update_solib_lib): Don't setup run cleanup.
1169 (no_shared_libraries): Call clear_solib, not do_clear_solib.
1170 * utils.c (run_cleanup_chain, make_run_cleanup)
1171 (do_run_cleanups): Remove.
1173 2007-11-15 Vladimir Prus <vladimir@codesourcery.com>
1175 Remove CLEAR_SOLIB use.
1176 * corelow.c (core_close): Don't check for CLEAR_SOLIB.
1177 * infcmd.c (attach_command): Likewise.
1179 2007-11-14 Doug Evans <dje@google.com>
1181 * buildsym.c (start_subfile,start_symtab): Doc fixes.
1183 2007-11-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
1185 * tui/tui-data.c (tui_prev_win): Guard against NULL.
1187 2007-11-12 Markus Deuling <deuling@de.ibm.com>
1189 * gdbarch.sh (gdbarch_alloc): Replace current_gdbarch by gdbarch. Remove
1191 (verify_gdbarch, gdbarch_dump): Likewise.
1192 (do_read): Update comment.
1193 (addr_bit, bfd_arch_info, target_desc, long_long_bit, floatformat)
1194 (ptr_bit, name_of_malloc): Replace current_gdbarch by gdbarch.
1195 * gdbarch.{c,h}: Regenerate.
1197 2007-11-12 Markus Deuling <deuling@de.ibm.com>
1199 * xtensa-tdep.c (ARG_1ST): Replace ARGS_FIRST_REG by its expression.
1200 (ARGS_FIRST_REG): Remove.
1201 (areg_numer): New function.
1202 (xtensa_pseudo_register_read, xtensa_frame_prev_register)
1203 (xtensa_extract_return_value, xtensa_store_return_value)
1204 (xtensa_frame_cache): Replace AREG_NUMBER by areg_number.
1205 (AREG_NUMBER): Remove.
1206 (XTENSA_IS_ENTRY, ARG_NOF, ARG_1ST): Add gdbarch as parameter.
1207 (xtensa_frame_cache): Update use of XTENSA_IS_ENTRY.
1208 (xtensa_push_dummy_call): Update use of ARG_NOF.
1209 (extract_call_winsize): Add gdbarch as parameter. Replace
1210 current_gdbarch by gdbarch.
1211 (xtensa_extract_return_value, xtensa_store_return_value): Update call
1212 of extract_call_winsize.
1214 2007-11-10 Joel Brobecker <brobecker@adacore.com>
1216 * NEWS: Add entry for new set/show print frame-args command.
1218 2007-11-09 Kevin Buettner <kevinb@redhat.com>
1220 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Add missing
1221 register number to map. Adjust warning check and error/warning
1222 return value code to match expectations of this function's callers.
1224 2007-11-09 Joel Brobecker <brobecker@adacore.com>
1226 * stack.c (print_this_frame_argument_p): Handle arguments passed
1227 by reference properly.
1229 2007-11-09 Joel Brobecker <brobecker@adacore.com>
1231 * stack.c (print_frame_arguments_choices): New static global.
1232 (print_frame_arguments): Likewise.
1233 (print_this_frame_argument_p): New function.
1234 (print_frame_args): Print the argument value only when appropriate.
1235 (_initialize_task): Add new "set/show print frame-arguments" command.
1237 2007-11-09 Luis Machado <luisgpm@br.ibm.com>
1239 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Move
1240 saved_dabr_value assignment to the correct position.
1242 2007-11-09 Markus Deuling <deuling@de.ibm.com>
1244 * arch-utils.c (generic_convert_register_p): Add gdbarch as parameter.
1245 * arch-utils.h (generic_convert_register_p): Likewise.
1247 2007-11-09 Markus Deuling <deuling@de.ibm.com>
1249 * gdbarch.sh (convert_register_p): Add gdbarch as parameter.
1250 * ia64-tdep.c (ia64_convert_register_p): Likewise.
1251 * i387-tdep.c (i387_convert_register_p): Likewise.
1252 * i387-tdep.h (i387_convert_register_p): Likewise.
1253 * alpha-tdep.c (alpha_convert_register_p): Likewise.
1254 * gdbarch.{c,h}: Regenerate.
1256 * rs6000-tdep.c (rs6000_convert_register_p): Add gdbarch as parameter.
1257 Replace current_gdbarch by gdbarch.
1258 * mips-tdep.c (mips_convert_register_p): Likewise.
1259 * m68k-tdep.c (m68k_convert_register_p): Likewise.
1260 * i386-tdep.c (i386_convert_register_p): Likewise.
1262 2007-11-08 Aleksandar Ristovski <aristovski@qnx.com>
1264 * gdb_string.h: Include <strings.h>.
1266 2007-11-08 Vladimir Prus <vladimir@codesourcery.com>
1268 * breakpoint.c (break_command_1): Remove
1269 pending_bp parameter.
1270 (create_breakpoint): Likewise.
1271 (create_breakpoints): Likewise. Adjust call to
1273 (break_command_1): Likewise. Adjust call to
1275 (do_captured_breakpoint): Adjust call to
1277 (break_command, tbreak_command, hbreak_command)
1278 (stopin_command, stopat_command): Adjust call
1281 2007-11-07 Joseph Myers <joseph@codesourcery.com>
1282 Daniel Jacobowitz <dan@codesourcery.com>
1284 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Right-align
1285 struct values smaller than one doubleword; left-align those
1286 larger. Pass structs containing a single floating-point value in
1289 2007-11-07 Joseph Myers <joseph@codesourcery.com>
1290 Daniel Jacobowitz <dan@codesourcery.com>
1292 * gdbtypes.c (floatformats_ibm_long_double): New.
1293 * gdbtypes.h (floatformats_ibm_long_double): Declare.
1294 * ia64-tdep.c (floatformat_ia64_ext): Update for addition of
1296 * mips-tdep.c (n32n64_floatformat_always_valid,
1297 floatformat_n32n64_long_double_big, floatformats_n32n64_long):
1299 (mips_gdbarch_init): Use floatformats_ibm_long_double instead of
1300 floatformats_n32n64_long.
1301 * ppc-linux-tdep.c (ppc_linux_init_abi): Use 128-bit IBM long
1303 * doublest.c (convert_floatformat_to_doublest,
1304 convert_doublest_to_floatformat): Handle split floating-point
1306 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Handle IBM long
1308 (ppc64_sysv_abi_push_dummy_call): Likewise.
1309 (do_ppc_sysv_return_value): Handle IBM long double return.
1311 2007-11-07 Vladimir Prus <vladimir@codesourcery.com>
1313 Fix crash when a variable object being deleted
1314 has any of its children deleted previously.
1316 * varobj.c (delete_variable_1): Don't recurse
1317 into deleted children.
1319 2007-11-07 Markus Deuling <deuling@de.ibm.com>
1321 * gdbarch.sh (legacy_virtual_frame_pointer): Add gdbarch parameter.
1322 * gdbarch.{c,h}: Regenerate.
1323 * arch-utils.c (legacy_virtual_frame_pointer): Add gdbarch parameter.
1324 Replace current_gdbarch by gdbarch.
1325 * m32c-tdep.c (m32c_virtual_frame_pointer): Likewise.
1326 * mips-tdep.c (mips_virtual_frame_pointer): Likewise.
1327 * spu-tdep.c (spu_virtual_frame_pointer): Likewise.
1329 2007-11-07 Markus Deuling <deuling@de.ibm.com>
1331 * shnbsd-tdep.c (shnbsd_supply_gregset, shnbsd_collect_gregset): Use
1332 get_regcache_arch to get at the current architecture by regcache.
1333 * xstormy16-tdep.c (xstormy16_frame_prev_register): Use get_frame_arch
1334 to get at the current architecture by frame_info.
1335 * fbsd-nat.c (fbsd_make_corefile_notes): Use get_regcache_arch to get
1336 at the current architecture by regcache.
1337 * gnu-v3-abi.c (gnuv3_skip_trampoline): Use get_frame_arch to get at
1338 the current architecture by frame_info.
1339 (build_gdb_vtable_type): Replace current_gdbarch by gdbarch.
1340 * aix-thread.c (special_register_p): Add gdbarch as parameter.
1341 (fetch_regs_kernel_thread, store_regs_kernel_thread): Add gdbarch to
1342 caller of special_register_p.
1344 2007-11-07 Markus Deuling <deuling@de.ibm.com>
1346 * infcall.c (call_function_by_hand): Use get_frame_arch to get at the
1347 current architecture by frame_info.
1349 2007-11-07 Markus Deuling <deuling@de.ibm.com>
1351 * xtensa-tdep.h (SIZEOF_GREGSET, XTENSA_ELF_NGREG) Remove.
1353 2007-11-07 Markus Deuling <deuling@de.ibm.com>
1355 * s390-nat.c (supply_gregset, fill_gregset): Use get_regcache_arch to
1356 get at the current architecture by regcache.
1357 (SUBOFF): Add gdbarch to macro definition.
1359 2007-11-07 Markus Deuling <deuling@de.ibm.com>
1361 * gdbarch.sh (breakpoint_from_pc): Add gdbarch parameter.
1362 * gdbarch.{c,h}: Regenerate.
1364 * xtensa-tdep.c (xtensa_breakpoint_from_pc): Add gdbarch parameter.
1365 Replace current_gdbarch by gdbarch.
1366 * sh-tdep.c (sh_breakpoint_from_pc): Likewise.
1367 * sh64-tdep.c (sh64_breakpoint_from_pc): Likewise.
1368 * score-tdep.c (score_breakpoint_from_pc): Likewise.
1369 * mips-tdep.c (mips_breakpoint_from_pc): Likewise.
1370 * m32r-tdep.c (m32r_breakpoint_from_pc): Likewise.
1371 * iq2000-tdep.c (iq2000_breakpoint_from_pc): Likewise.
1372 * arm-tdep.c (arm_breakpoint_from_pc): Likewise.
1374 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Add gdbarch
1376 * vax-tdep.c (vax_breakpoint_from_pc): Likewise.
1377 * v850-tdep.c (v850_breakpoint_from_pc): Likewise.
1378 * spu-tdep.c (spu_breakpoint_from_pc): Likewise.
1379 * sparc-tdep.c (sparc_breakpoint_from_pc): Likewise.
1380 * s390-tdep.c (s390_breakpoint_from_pc): Likewise.
1381 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Likewise.
1382 * mt-tdep.c (mt_breakpoint_from_pc): Likewise.
1383 * mep-tdep.c (mep_breakpoint_from_pc): Likewise.
1384 * m88k-tdep.c (m88k_breakpoint_from_pc): Likewise.
1385 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Likewise.
1386 * m32c-tdep.c (m32c_breakpoint_from_pc): Likewise.
1387 * ia64-tdep.c (ia64_breakpoint_from_pc): Likewise.
1388 * i386-tdep.c (i386_breakpoint_from_pc): Likewise.
1389 * hppa-tdep.c (hppa_breakpoint_from_pc): Likewise.
1390 * h8300-tdep.c (h8300_breakpoint_from_pc): Likewise.
1391 * frv-tdep.c (frv_breakpoint_from_pc): Likewise.
1392 * cris-tdep.c (cris_breakpoint_from_pc): Likewise.
1393 * avr-tdep.c (avr_breakpoint_from_pc): Likewise.
1394 * alpha-tdep.c (alpha_breakpoint_from_pc): Likewise.
1395 * m68k-tdep.c (m68k_local_breakpoint_from_pc): Likewise.
1397 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Add gdbarch parameter.
1398 Replace current_gdbarch by gdbarch.
1399 (rs6000_software_single_step): Use get_frame_arch to get at the
1400 current architecture by frame_info. Add gdbarch to
1401 rs6000_breakpoint_from_pc call.
1403 2007-11-07 Markus Deuling <deuling@de.ibm.com>
1405 * frv-tdep.c (frv_register_name, frv_check_watch_resources): Replace
1406 macro CURRENT_VARIANT by its expression.
1407 (CURRENT_VARIANT): Remove.
1408 (frv_check_watch_resources): Add gdbarch parameter.
1410 2007-11-07 Markus Deuling <deuling@de.ibm.com>
1412 * MAINTAINERS (Write After Approval): Add self.
1414 2007-11-05 Ulrich Weigand <uweigand@de.ibm.com>
1416 * features/rs6000/power-core.xml: Use uint32 as register type.
1417 * features/rs6000/power64-core.xml: Use uint64/uint32 as register type.
1418 * features/rs6000/powerpc-32.c: Regenerate.
1419 * features/rs6000/powerpc-403.c: Regenerate.
1420 * features/rs6000/powerpc-403gc.c: Regenerate.
1421 * features/rs6000/powerpc-505.c: Regenerate.
1422 * features/rs6000/powerpc-602.c: Regenerate.
1423 * features/rs6000/powerpc-603.c: Regenerate.
1424 * features/rs6000/powerpc-604.c: Regenerate.
1425 * features/rs6000/powerpc-64.c: Regenerate.
1426 * features/rs6000/powerpc-7400.c: Regenerate.
1427 * features/rs6000/powerpc-750.c: Regenerate.
1428 * features/rs6000/powerpc-860.c: Regenerate.
1429 * features/rs6000/powerpc-e500.c: Regenerate.
1431 2007-11-05 Joel Brobecker <brobecker@adacore.com>
1433 * breakpoint.c (set_raw_breakpoint_without_location): Make static.
1435 2007-11-05 Joel Brobecker <brobecker@adacore.com>
1437 * breakpoint.h (create_solib_load_event_breakpoint)
1438 (create_solib_unload_event_breakpoint)
1439 (create_fork_event_catchpoint, create_vfork_event_catchpoint)
1440 (create_exec_event_catchpoint): Delete declaration.
1441 * breakpoint.c (create_solib_load_event_breakpoint)
1442 (solib_load_unload_1, create_solib_unload_event_breakpoint): Delete.
1443 (create_fork_event_catchpoint, create_vfork_event_catchpoint)
1444 (create_exec_event_catchpoint): Make static.
1446 2007-11-05 Joel Brobecker <brobecker@adacore.com>
1448 * breakpoint.h (set_breakpoint_sal): Remove declaration.
1449 * breakpoint.c (set_breakpoint_sal): Delete.
1451 2007-11-05 Joel Brobecker <brobecker@adacore.com>
1453 * buildsym.c (finish_block): Remove "#if 1"/"#endif" brackets.
1454 (make_blockvector): Likewise. Remove FIXME comment.
1456 2007-11-05 Luis Machado <luisgpm@br.ibm.com>
1458 * printcmd.c: (printf_command): Add support for new DFP
1459 modifiers %H, %D and %DD.
1460 * configure.ac: Add check for DECFLOAT printf support.
1461 * configure: Regenerated.
1463 2007-11-02 Ulrich Weigand <uweigand@de.ibm.com>
1465 * gdbtypes.h (struct cplus_struct_type): Remove runtime_ptr member.
1466 (TYPE_RUNTIME_PTR, TYPE_VTABLE, TYPE_HAS_VTABLE,
1467 TYPE_PRIMARY_BASE, TYPE_VIRTUAL_BASE_LIST): Remove macros.
1468 (HP_ACC_VFUNC_START, HP_ACC_VBASE_START, HP_ACC_TYPEINFO_OFFSET,
1469 HP_ACC_TOP_OFFSET_OFFSET): Likewise.
1470 (has_vtable, primary_base_class, virtual_base_list_length,
1471 virtual_base_list_length_skip_primaries, virtual_base_index,
1472 virtual_base_index_skip_primaries, class_index_in_primary_list,
1473 count_virtual_fns): Remove prototypes.
1474 * gdbtypes.c (has_vtable, primary_base_class, current_vbase_list,
1475 virtual_base_list_aux, virtual_base_list, virtual_base_list_length,
1476 virtual_base_list_length_skip_primaries, virtual_base_index,
1477 virtual_base_index_skip_primaries, class_index_in_primary_list,
1478 count_virtual_fns): Remove.
1480 * cp-valprint.c (cp_print_hpacc_virtual_table_entries): Remove.
1481 (hpacc_vtbl_ptr_name, hpacc_vtbl_ptr_type_name): Remove.
1482 (cp_print_value_fields): Remove support for HP aCC vtables.
1483 (cp_print_value): Likewise.
1484 * c-typeprint.c (c_type_print_base): Likewise.
1486 * value.h (find_rt_vbase_offset): Remove prototype.
1487 * valops.c (find_rt_vbase_offset): Remove.
1488 (search_struct_method): Remove support for HP aCC vtables.
1489 (find_method_list): Likewise.
1491 2007-11-02 Ulrich Weigand <uweigand@de.ibm.com>
1493 * language.h (struct language_defn): Remove la_builtin_type_vector
1494 and string_char_type members.
1495 * language.c (language_string_char_type): No longer consult
1496 la->string_char_type.
1497 (language_lookup_primitive_type_by_name): No longer consult
1498 current_language->la_builtin_type_vector.
1500 * language.c (unknown_language_defn, auto_language_defn,
1501 local_language_defn): Adapt initializer.
1502 * ada-lang.c (ada_language_defn): Likewise.
1503 * c-lang.c (c_language_defn, cplus_language_defn, asm_language_defn,
1504 minimal_language_defn): Likewise.
1505 * f-lang.c (f_language_defn): Likewise.
1506 * jv-lang.c (java_language_defn): Likewise.
1507 * m2-lang.c (m2_language_defn): Likewise.
1508 * objc-lang.c (objc_language_defn): Likewise.
1509 * p-lang.c (pascal_language_defn): Likewise.
1510 * scm-lang.c (scm_language_defn): Likewise.
1512 2007-11-02 Markus Deuling <deuling@de.ibm.com>
1514 * frame.c (frame_id_inner): Add gdbarch parameter. Replace
1515 current_gdbarch by gdbarch.
1516 (frame_find_by_id, get_prev_frame_1): Use get_frame_arch to get at the
1517 current architecture by frame_info.
1518 * frame.h (frame_id_inner): Add gdbarch parameter.
1519 * stack.c (return_command): Use get_frame_arch to get at the current
1520 architecture by frame_info. Update call of frame_id_inner.
1521 * infrun.c (handle_inferior_event): Likewise.
1522 * dummy-frame.c (dummy_frame_push): Use get_regcache_arch to get at the
1523 current architecture by regcache. Update call of frame_id_inner.
1525 2007-11-02 Markus Deuling <deuling@de.ibm.com>
1527 * gdbarch.sh (register_name): Add gdbarch parameter.
1528 * gdbarch.{c,h}: Regenerate.
1530 * target-descriptions.c (tdesc_register_name): Add gdbarch parameter.
1531 (tdesc_register_name): Replace current_gdbarch by gdbarch.
1532 * target-descriptions.h (tdesc_register_name): Add gdbarch parameter.
1534 * xstormy16-tdep.c (xstormy16_register_name): Add gdbarch parameter.
1535 * vax-tdep.c (vax_register_name): Add gdbarch parameter.
1536 * spu-tdep.c (spu_register_name): Add gdbarch parameter.
1537 * s390-tdep.c (s390_register_name): Add gdbarch parameter.
1538 * mt-tdep.c (mt_register_name): Add gdbarch parameter.
1539 (mt_registers_info): Replace current_gdbarch by gdbarch.
1540 (mt_register_reggroup_p): Add gdbarch to mt_register_name call.
1541 * mips-tdep.c (mips_register_name): Add gdbarch parameter. Replace
1542 current_gdbarch by gdbarch.
1543 (mips_register_name): Add gdbarch to tdesc_register_name call.
1544 * mep-tdep.c (mep_register_name): Add gdbarch parameter. Replace
1545 current_gdbarch by gdbarch.
1546 (mep_register_reggroup_p): Add gdbarch to mep_register_name call.
1547 * m32c-tdep.c (m32c_register_name): Add gdbarch parameter. Replace
1548 current_gdbarch by gdbarch.
1549 * m88k-tdep.c (m88k_register_name): Add gdbarch parameter.
1550 * m68k-tdep.c (m68k_register_name): Add gdbarch parameter.
1551 * m32r-tdep.c (m32r_register_name): Add gdbarch parameter.
1552 (m32r_frame_unwind_cache): Use get_frame_arch to get at the current
1553 architecture by frame_info.
1554 * iq2000-tdep.c (iq2000_register_name): Add gdbarch parameter.
1555 * ia64-tdep.c (ia64_register_name): Add gdbarch parameter.
1556 * hppa-tdep.c (hppa32_register_name, hppa64_register_name): Add gdbarch
1558 * h8300-tdep.c (h8300_register_name, h8300s_register_name)
1559 (h8300sx_register_name): Add gdbarch parameter.
1560 * cris-tdep.c (cris_register_name, crisv32_register_name): Add
1561 gdbarch parameter. Replace current_gdbarch by gdbarch.
1562 (cris_gdbarch_init): Replace current_gdbarch by gdbarch (comment).
1563 * avr-tdep.c (avr_register_name): Add gdbarch parameter.
1564 * arm-tdep.c (arm_register_name): Add gdbarch paramete
1565 * amd64-tdep.c (amd64_register_name): Add gdbarch parameter. Update
1567 * amd64-tdep.h (amd64_register_name): Add gdbarch parameter.
1568 * amd64-linux-tdep.c (amd64_linux_register_name): Add gdbarch parameter.
1569 * alpha-tdep.c (alpha_register_name): Add gdbarch parameter.
1570 (alpha_cannot_fetch_register, alpha_cannot_store_register): Update call
1571 of alpha_register_name.
1572 * frv-tdep.c (frv_register_name): Add gdbarch parameter.
1573 * i386-tdep.c (i386_register_name): Add gdbarch parameter. Replace
1574 current_gdbarch by gdbarch.
1575 (i386_register_type): Replace ?current_gdbarch by gdbarch.
1576 * i386-tdep.h (i386_register_name): Add gdbarch parameter.
1577 * i386-linux-tdep.c (i386_linux_register_name): Add gdbarch parameter.
1579 * m68hc11-tdep.c (m68hc11_register_name): Add gdbarch parameter.
1580 (m68hc11_register_reggroup_p): Add gdbarch to call of
1581 m68hc11_register_name.
1582 * mn10300-tdep.c (mn10300_generic_register_name, am33_register_name)
1583 (am33_2_register_name): Add gdbarch parameter.
1584 (mn10300_frame_unwind_cache): Use get_frame_arch to get at the current
1585 architecture by frame_info.
1586 (mn10300_dump_tdep): Replace current_gdbarch by gdbarch.
1587 * rs6000-tdep.c (rs6000_register_name): Add gdbarch parameter. Replace
1588 current_gdbarch by gdbarch.
1589 * score-tdep.c (score_register_name): Add gdbarch parameter.
1590 (score_return_value, score_push_dummy_call): Replace current_gdbarch
1592 * sh64-tdep.c (sh64_register_name): Add gdbarch parameter.
1593 (sh64_compact_reg_base_num, sh64_register_convert_to_virtual)
1594 (sh64_register_convert_to_raw, sh64_fv_reg_base_num)
1595 (sh64_dr_reg_base_num, sh64_fpp_reg_base_num): Add gdbarch parameter
1596 and update caller. Replace current_gdbarch by gdbarch.
1597 (sh64_extract_return_value, sh64_store_return_value): Use
1598 get_regcache_arch to get at the current architecture by regcache.
1599 * sh-tdep.c (sh_sh_register_name, sh_sh3_register_name)
1600 (sh_sh3e_register_name, sh_sh2e_register_name, sh_sh2a_register_name)
1601 (sh_sh2a_nofpu_register_name, sh_sh_dsp_register_name)
1602 (sh_sh3_dsp_register_name, sh_sh4_register_name)
1603 (sh_sh4_nofpu_register_name, sh_sh4al_dsp_register_name): Add gdbarch
1605 (fv_reg_base_num, dr_reg_base_num, sh_justify_value_in_reg)
1606 (sh_next_flt_argreg): Add gdbarch parameter and update caller. Replace
1607 current_gdbarch by gdbarch.
1608 (sh_extract_return_value_fpu, sh_store_return_value_fpu): Use
1609 get_regcache_arch to get at the current architecture by regcache.
1610 * sparc-tdep.c (sparc32_register_name): Add gdbarch parameter.
1611 * sparc64-tdep.c (sparc64_register_name): Add gdbarch parameter.
1612 * v850-tdep.c (v850_register_name, v850e_register_name): Add gdbarch
1614 (v850_unwind_sp, v850_unwind_pc): Replace current_gdbarch by gdbarch.
1615 * xtensa-tdep.c (xtensa_register_name): Add gdbarch parameter. Replace
1616 current_gdbarch by gdbarch.
1617 (xtensa_pseudo_register_read, xtensa_pseudo_register_write)
1618 (xtensa_frame_prev_register): Add gdbarch parameter to
1619 xtensa_register_name call.
1621 2007-10-31 Ulrich Weigand <uweigand@de.ibm.com>
1623 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Fall back to
1624 find_solib_trampoline_target if PC is not in .plt section.
1626 2007-10-31 Ulrich Weigand <uweigand@de.ibm.com>
1628 * elfread.c (elf_symtab_read): When constructing a solib trampoline
1629 minimal symbol from an undefined dynamic symbol, use proper section.
1631 2007-10-31 Markus Deuling <deuling@de.ibm.com>
1633 * arm-linux-nat.c (fetch_register, fetch_regs): Use get_regcache_arch
1634 to get at the current architecture by regcache.
1636 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1638 * libunwind-frame.c (libunwind_frame_sniffer)
1639 libunwind_frame_prev_register, libunwind_sigtramp_frame_sniffer)
1640 (libunwind_frame_cache): Use get_frame_arch to get at the current
1641 architecture by frame_info.
1642 (libunwind_get_reg_special): Replace current_gdbarch by gdbarch.
1644 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1646 * iq2000-tdep.c (iq2000_frame_prev_register): Use get_frame_arch to get
1647 at the current architecture by frame_info.
1649 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1651 * inf-child.c (inf_child_fetch_inferior_registers): Use
1652 get_regcache_arch to get at the current architecture by regcache.
1654 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1656 * inf-ptrace.c (inf_ptrace_fetch_registers)
1657 (inf_ptrace_fetch_register, inf_ptrace_store_register)
1658 (inf_ptrace_store_registers): Use get_regcache_arch to get at the
1659 current architecture by regcache.
1661 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1663 * hpux-thread.c (hpux_thread_fetch_registers)
1664 (hpux_thread_store_registers): Use get_regcache_arch to get at the
1665 current architecture by regcache.
1667 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1669 * hppa-tdep.c (hppa_frame_cache): Use get_frame_arch to get at the
1670 current architecture by frame_info.
1672 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1674 * go32-nat.c (fetch_register, go32_fetch_registers, store_register)
1675 (go32_store_registers): Use get_regcache_arch to get at the current
1676 architecture by regcache.
1678 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1680 * gdbtypes.c (gdbtypes_post_init): Replace current_gdbarch by gdbarch.
1682 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1684 * frv-linux-tdep.c (frv_linux_sigtramp_frame_cache): Use get_frame_arch
1685 to get at the current architecture by frame_info.
1687 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1689 * f-lang.c (build_fortran_types): Replace current_gdbarch by gdbarch.
1691 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1693 * core-regset.c (fetch_core_registers): Use get_regcache_arch to get at
1694 the current architecture by regcache.
1696 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1698 * corelow.c (get_core_registers): Use get_regcache_arch to get at the
1699 current architecture by regcache.
1701 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1703 * bsd-uthread.c (bsd_uthread_fetch_registers)
1704 (bsd_uthread_store_registers): Use get_regcache_arch to get at the
1705 current architecture by regcache.
1707 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1709 * avr-tdep.c (avr_frame_unwind_cache, avr_frame_prev_register): Use
1710 get_frame_arch to get at the current architecture by frame_info.
1712 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1714 * arm-tdep.c (arm_get_next_pc): Replace current_gdbarch by gdbarch.
1716 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1718 * armnbsd-nat.c (arm_supply_gregset, fetch_register, store_register)
1719 (store_regs): Use get_regcache_arch to get at the current architecture
1722 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1724 * arm-linux-tdep.c (arm_linux_supply_gregset): Use get_regcache_arch
1725 to get at the current architecture by regcache.
1727 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1729 * alphabsd-nat.c (alphabsd_fetch_inferior_registers)
1730 (alphabsd_store_inferior_registers): Use get_regcache_arch to get at
1731 the current architecture by regcache.
1733 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1735 * ada-lang.c (ada_language_arch_info): Replace current_gdbarch by
1738 2007-10-30 Daniel Jacobowitz <dan@codesourcery.com>
1740 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Check the selected
1741 soft float and vector ABIs. Support the generic vector ABI for
1743 (do_ppc_sysv_return_value): Likewise. Correct argument types and
1745 (ppc64_sysv_abi_push_dummy_call): Assert that floating point is
1747 * ppc-tdep.h (enum powerpc_vector_abi): New.
1748 (struct gdbarch_tdep): Add soft_float and vector_abi.
1749 * rs6000-tdep.c (setpowerpccmdlist, showpowerpccmdlist)
1750 (powerpc_soft_float_global, powerpc_vector_strings)
1751 (powerpc_vector_abi_global, powerpc_vector_abi_string): New.
1752 (rs6000_gdbarch_init): Check for soft-float and vector ABI markings.
1753 (set_powerpc_command, show_powerpc_command, powerpc_set_soft_float)
1754 (powerpc_set_vector_abi): New.
1755 (_initialize_rs6000_tdep): Register "set powerpc" and "show powerpc"
1757 * Makefile.in (elf_ppc_h): New.
1758 (rs6000-tdep.o): Update.
1760 2007-10-29 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
1762 * ppc-linux-tdep.c (ppc32_linux_reg_offsets): Corrected
1763 swapped offsets and VRSAVE offset.
1764 (ppc64_linux_reg_offsets): Corrected swapped offsets.
1765 (ppc32_linux_vrregset): Added.
1766 (ppc_linux_regset_from_core_section): Added support for
1767 .reg-ppc-vmx section.
1768 * ppc-tdep.h (ppc_altivec_support_p): Declare.
1769 (ppc_supply_vrregset): Declare.
1770 (ppc_collect_vrregset): Declare.
1771 * rs6000-tdep.c (ppc_altivec_support_p): Added.
1772 (ppc_supply_vrregset): Added.
1773 (ppc_collect_vrregset): Added.
1774 * corelow.c (get_core_registers): Added support for
1775 .reg-ppc-vmx section.
1777 2007-10-29 Joel Brobecker <brobecker@adacore.com>
1781 2007-10-26 Jim Blandy <jimb@codesourcery.com>
1783 * ax-gdb.h (expr_to_address_and_size): Delete declaration for
1786 * tracepoint.c (tracepoint_operation): Report the deletion event
1787 after we have unlinked the tracepoint from the list, and use the
1788 proper tracepoint number.
1790 * ax-gdb.c (expr_to_agent): Delete unused function.
1791 (expr_to_address_and_size): Delete #if 0'd function.
1792 * ax-gdb.h (expr_to_agent): Delete declaration.
1794 * ax-gdb.c (gen_cast): Remove redundant assignment to
1795 value->type. Doc fix.
1797 * ax-general.c (gen_traced_pop, gen_int_literal)
1798 (gen_usual_arithmetic): Check for typedefs.
1800 2007-10-26 Joel Brobecker <brobecker@adacore.com>
1802 * parse.c (prefixify_expression): Minor reformatting.
1804 2007-10-25 Daniel Jacobowitz <dan@codesourcery.com>
1806 * version.in: Use dot instead of dash.
1808 2007-10-25 Daniel Jacobowitz <dan@codesourcery.com>
1810 * linux-thread-db.c (check_for_thread_db): Only print if info_verbose.
1812 2007-10-25 Pedro Alves <pedro_alves@portugalmail.pt>
1814 * memory-map.c (parse_memory_map): Don't use an empty struct
1817 2007-10-25 Pedro Alves <pedro_alves@portugalmail.pt>
1819 * signals/signals.c (signals): Update pointer to enum
1820 target_signal declaration.
1822 2007-10-25 Wu Zhou <woodzltc@cn.ibm.com>
1823 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
1824 Jim Blandy <jimb@codesourcery.com>
1826 * dwarf2read.c (read_partial_die): check the value
1827 of DW_AT_calling_convention in Fortran programs.
1829 2007-10-25 Wu Zhou <woodzltc@cn.ibm.com>
1830 Thiago Jung Bauermann <bauerman@br.ibm.com>
1832 * c-exp.y (YYSTYPE): Add typed_val_decfloat for decimal
1833 floating point in YYSTYPE union.
1834 (DECFLOAT) Add token and expression element handling code.
1835 (parse_number): Parse DFP constants, which end with suffix 'df',
1836 'dd' or 'dl'. Return DECFLOAT.
1837 * eval.c (evaluate_subexp_standard): Call value_from_decfloat to
1839 * expression.h (enum exp_opcode): Add an opcode (OP_DECFLOAT)
1841 (union exp_element): Add decfloatconst to represent DFP
1842 elements, which is 16 bytes by default.
1843 * parse.c (write_exp_elt_decfloatcst): New function to write a
1844 decimal float const into the expression.
1845 (operator_length_standard): Set operator length for OP_DECFLOAT
1847 * parser-defs.h (write_exp_elt_decfloatcst): Prototype.
1848 * valarith.c (value_neg): Add code to handle the negation
1849 operation of DFP values.
1850 * value.c (value_from_decfloat): New function to get the value
1851 from a decimal floating point.
1852 * value.h (value_from_decfloat): Prototype.
1854 2007-10-25 Wu Zhou <woodzltc@cn.ibm.com>
1855 Thiago Jung Bauermann <bauerman@br.ibm.com>
1857 * c-lang.c (c_create_fundamental_type): Create fundamental
1859 * c-typeprint.c (c_type_print_varspec_prefix): Add
1860 TYPE_CODE_DECFLOAT to no prefix needed case.
1861 (c_type_print_varspec_suffix): Add TYPE_CODE_DECFLOAT to no
1863 * c-valprint.c (c_val_print): Call print_decimal_floating to
1865 * dwarf2read.c (read_base_type): Read DW_ATE_decimal_float
1866 attribute code and return TYPE_CODE_DECFLOAT.
1867 (dwarf_base_type): Set dwarf2_fundamental_type for DFP values.
1868 * gdbtypes.c (gdbtypes_post_init): Initialize builtin_decfloat,
1869 builtin_decdouble and builtin_declong.
1870 * gdbtypes.h (enum type_code): Add TYPE_CODE_DECFLOAT as a
1872 (FT_DECFLOAT, FT_DBL_PREC_DECFLOAT, FT_EXT_PREC_DECFLOAT): New
1873 types, for decimal floating point.
1874 (FT_NUM_MEMBERS): Increment, new types added.
1875 (struct builtin_type): Add builtin_decfloat, builtin_decdouble
1876 and builtin_declong.
1877 * valprint.c (print_decimal_floating): New function to print DFP
1879 * value.h (print_decimal_floating): Prototype.
1881 2007-10-25 Wu Zhou <woodzltc@cn.ibm.com>
1882 Thiago Jung Bauermann <bauerman@br.ibm.com>
1884 * Makefile.in (LIBDECNUMBER_DIR, LIBDECNUMBER, LIBDECNUMBER_SRC
1885 LIBDECNUMBER_CFLAGS): New macros for libdecnumber.
1886 (INTERNAL_CFLAGS_BASE): Add LIBDECNUMBER_CFLAGS in.
1887 (INSTALLED_LIBS): Add -ldecnumber in.
1888 (CLIBS): Add LIBDECNUMBER in.
1889 (decimal128_h, decimal64_h, decimal32_h): New macros for decimal
1891 (dfp_h): New macros for decimal floating point.
1892 (dfp.o): New target.
1893 (COMMON_OBS): Add dfp.o in.
1894 (c-exp.o): Add dfp_h as dependency.
1895 (valprint.o): Add dfp_h as dependency.
1896 (value.o): Add dfp_h as dependency.
1897 * dfp.h: New header file for decimal floating point support in
1899 * dfp.c: New source file for decimal floating point support in
1900 GDB. Implement decimal_from_string and decimal_to_string based
1901 on libdecnumber API.
1902 * configure.ac: Add AC_C_BIGENDIAN test.
1903 * config.in, configure: Regenerate.
1905 2007-10-25 David Ung <davidu@mips.com>
1906 Maciej W. Rozycki <macro@mips.com>
1909 * infcmd.c (registers_info): Check for a user register before
1910 calling target's gdbarch_print_registers_info(). If found to be
1911 so, extract the implicit value of user register and call
1912 print_scalar_formatted().
1913 * Makefile.in: (infcmd.o): Add $(user_regs_h).
1915 2007-10-25 Joel Brobecker <brobecker@adacore.com>
1917 * NEWS: Document status of hppa64-hpux support.
1919 2007-10-24 Ulrich Weigand <uweigand@de.ibm.com>
1921 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets): Call
1922 set_solib_ops to install SVR4 operations.
1923 (_initialize_svr4_solib): Do not set current_target_so_ops.
1925 * config/i386/i386gnu.mh (NATDEPFILES): Move solib.o, solib-svr4.o ...
1926 * config/i386/i386gnu.mt (TDEPFILES): ... to here.
1928 2007-10-24 Ulrich Weigand <uweigand@de.ibm.com>
1930 * solib-svr4.c (legacy_svr4_fetch_link_map_offsets_hook): Remove.
1931 (solib_svr4_init): Initialize fetch_link_map_offsets to NULL.
1932 * solib-svr4.h (legacy_svr4_fetch_link_map_offsets_hook): Remove.
1933 * solib-legacy.c: Remove file.
1935 * config/alpha/alpha-linux.mt (TDEPFILES): Remove solib-legacy.o.
1936 * config/arm/linux.mt (TDEPFILES): Likewise.
1937 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
1938 * config/ia64/linux.mt (TDEPFILES): Likewise.
1939 * config/m32r/linux.mt (TDEPFILES): Likewise.
1940 * config/powerpc/linux.mt (TDEPFILES): Likewise.
1941 * config/s390/s390.mt (TDEPFILES): Likewise.
1943 * alpha-linux-tdep.c (alpha_linux_init_abi): Call
1944 set_solib_svr4_fetch_link_map_offsets.
1945 * i386gnu-tdep.c (i386gnu_init_abi): Likewise.
1946 * ia64-linux-tdep.c (ia64_linux_init_abi): Likewise.
1948 * i386gnu-tdep.c: Include "solib-svr4.h".
1949 * Makefile.in: Update dependencies.
1951 2007-10-24 Ulrich Weigand <uweigand@de.ibm.com>
1953 * i386-nto-tdep.c: Include "solib.h".
1954 (i386nto_init_abi): Use set_solib_ops instead of overwriting
1955 current_target_so_ops members.
1956 * solist.h (TARGET_SO_RELOCATE_SECTION_ADDRESSES): Remove.
1957 (TARGET_SO_FIND_AND_OPEN_SOLIB): Remove.
1958 (TARGET_SO_IN_DYNSYM_RESOLVE_CODE): Remove.
1959 * Makefile.in: Update dependencies.
1961 2007-10-24 Ulrich Weigand <uweigand@de.ibm.com>
1963 * arm-wince-tdep.c: Include "solib.h" and "solib-target.h".
1964 (arm_wince_init_abi): Call set_solib_ops.
1965 * i386-cygwin-tdep.c: Include "solib.h" and "solib-target.h".
1966 (i386_cygwin_init_abi): Call set_solib_ops.
1967 * solib-target.c: Include "solib-target.h".
1968 (solib_target_so_ops): Make global.
1969 (_initialize_solib_target): Do not set current_target_so_ops.
1970 * solib-target.h: New file.
1971 * Makefile.in: Update dependencies.
1973 2007-10-24 Ulrich Weigand <uweigand@de.ibm.com>
1975 * mips-irix-tdep.c: Include "gdb_string.h", "solib.h", "solib-irix.h".
1976 (mips_irix_init_abi): Call set_solib_ops.
1977 * solib-irix.c: Include "solib.h" and "solib-irix.h".
1978 (irix_so_ops): Make global.
1979 (_initialize_irix_solib): Do not set current_target_so_ops.
1980 * solib-irix.h: New file.
1981 * Makefile.in: Update dependencies.
1983 2007-10-24 Ulrich Weigand <uweigand@de.ibm.com>
1985 * configure.tgt: Remove hppa*64*-*-hpux11* special case.
1986 * config/pa/hppa64.mt: Delete file.
1987 * config/pa/hppahpux.mt (MT_CFLAGS): Remove.
1988 (TDEPFILES): Move somread.o to ...
1989 * config/pa/hpux.mh (NATDEPFILES): ... here.
1991 * configure.ac: Add check for elf_hp.h header.
1992 Search libdl and libxpdl for dlgetmodinfo.
1993 * config.in, configure: Regenerate.
1994 * solib-pa64.c: Conditionalize compilation on #ifdef HAVE_ELF_HP_H
1995 instead of #ifndef PA_SOM_ONLY. Include "solib.h".
1996 (pa64_solib_select): Take gdbarch instead of tdep argument. Call
1997 set_solib_ops instead of modifying current_target_so_ops.
1998 * solib-pa64.h (pa64_solib_select): Update prototype.
1999 * solib-som.c: Remove include of "som.h". Include "solib.h".
2000 (som_solib_select): Take gdbarch instead of tdep argument. Call
2001 set_solib_ops instead of modifying current_target_so_ops.
2002 * solib-som.h (som_solib_select): Update prototype.
2003 * hppa-hpux-tdep.c (hppa_hpux_som_init_abi): Pass gdbarch instead
2004 of tdep to som_solib_select call.
2005 (hppa_hpux_elf_init_abi): Pass gdbarch instead of tdep to
2006 pa64_solib_select call.
2007 * Makefile.in: Update dependencies.
2009 2007-10-24 Ulrich Weigand <uweigand@de.ibm.com>
2011 * frv-tdep.c: Include "solib.h".
2012 (frv_gdbarch_init): Call set_solib_ops.
2013 * frv-tdep.h (struct target_so_ops): Add forward reference.
2014 (frv_so_ops): Add extern declaration.
2015 * solib-frv.c (frv_so_ops): Make global.
2016 (_initialize_frv_solib): Do not set current_target_so_ops.
2017 * Makefile.in: Update dependencies.
2019 2007-10-24 Ulrich Weigand <uweigand@de.ibm.com>
2021 * solib.c (solib_global_lookup): Use solib_ops instead of global
2022 current_target_so_ops.
2024 2007-10-24 Ulrich Weigand <uweigand@de.ibm.com>
2026 * config/frv/frv.mt (DEPRECATED_TM_FILE): Remove.
2027 * config/frv-tm-frv.h: Delete file.
2029 2007-10-24 Daniel Jacobowitz <dan@codesourcery.com>
2031 * NEWS: Mention gdbserver support for non-libthread_db operation.
2033 2007-10-24 Daniel Jacobowitz <dan@codesourcery.com>
2035 * amd64-tdep.c (amd64_convert_register_p): Delete.
2036 (amd64_init_abi): Use i387_convert_register_p.
2037 * alpha-tdep.c (alpha_convert_register_p): Return zero for
2039 (alpha_register_to_value, alpha_value_to_register): Do not handle
2041 * i386-tdep.c (i386_convert_register_p): Use i387_convert_register_p.
2042 * i387-tdep.c (i387_convert_register_p): New.
2043 (i387_register_to_value, i387_value_to_register): Update comments.
2044 * i387-tdep.h (i387_convert_register_p): Declare.
2045 * ia64-tdep.c (ia64_convert_register_p): Return zero for
2046 builtin_type_ia64_ext.
2047 (ia64_gdbarch_init): Do not initialize builtin_type_ia64_ext here.
2048 (_initialize_ia64_tdep): Initialize builtin_type_ia64_ext here.
2049 * m68k-tdep.c (m68k_convert_register_p): Return zero for
2050 builtin_type_m68881_ext.
2051 (m68k_register_to_value, m68k_value_to_register): Update comments.
2053 2007-10-24 Nathan Sidwell <nathan@codesourcery.com>
2055 * target-memory.c (claim_memory): Propagate baton for split memory
2058 2007-10-24 Pedro Alves <pedro_alves@portugalmail.pt>
2061 * sol-thread.c (sol_thread_fetch_registers): Work around gcc 3.4
2064 2007-10-24 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
2066 * symtab.c (find_line_symtab): scan through psymtabs
2067 when exact_match is zero.
2069 2007-10-23 Atsushi Nemoto <anemo@mba.ocn.ne.jp>
2071 * mips-tdep.c (LL_OPCODE, LLD_OPCODE, SC_OPCODE, SCD_OPCODE): Define.
2072 (deal_with_atomic_sequence): New.
2073 (mips_software_single_step): Use it.
2075 2007-10-23 Daniel Jacobowitz <dan@codesourcery.com>
2078 * configure.ac: Modify $LIBINTL before the BFD check.
2079 * configure: Regenerated.
2081 2007-10-23 Joel Brobecker <brobecker@adacore.com>
2083 * buildsym.c (free_pending_blocks): Remove commented-out code.
2084 (make_blockvector): Likewise. Re-use free_pending_blocks.
2085 (end_symtab): Remove commented-out code.
2087 2007-10-22 Daniel Jacobowitz <dan@codesourcery.com>
2089 * top.c (command_loop): Fix output for shrinkage.
2091 2007-10-22 Daniel Jacobowitz <dan@codesourcery.com>
2093 * cp-name-parser.y (exp1): Add & ( var ) as a reference expression.
2094 (exp): Remove and document function-like casts.
2096 2007-10-22 Daniel Jacobowitz <dan@codesourcery.com>
2098 * cp-support.c: Include "safe-ctype.h".
2099 (cp_already_canonical): New function.
2100 (cp_canonicalize_string): Use it. Return NULL for already canonical
2102 (mangled_name_to_comp): Update call to cp_demangled_name_to_comp.
2103 (cp_func_name, remove_params): Likewise.
2104 (cp_find_first_component_aux): Use ISSPACE.
2105 * cp-support.h (cp_demangled_name_to_comp): Correct comment. Remove
2107 * cp-name-parser.y (ALLOC_CHUNK): Define.
2108 (struct demangle_info): Add PREV and NEXT. Increase the size of
2110 (d_grab): Convert to a function.
2111 (allocate_info): Rewrite.
2112 (cp_demangled_name_to_comp): Remove MEMORY argument. Do not use
2113 strlen. Update call to allocate_info. Do not free it on failure.
2114 (main): Update calls to cp_demangled_name_to_comp.
2115 * Makefile.in (cp-support.o): Update.
2117 2007-10-22 Markus Deuling <deuling@de.ibm.com>
2119 * std-regs.c (value_of_builtin_frame_fp_reg)
2120 value_of_builtin_frame_pc_reg, value_of_builtin_frame_sp_reg)
2121 value_of_builtin_frame_ps_reg): Use get_frame_arch to get at the
2122 current architecture by frame_info.
2124 2007-10-22 Markus Deuling <deuling@de.ibm.com>
2126 * reggroups.c (default_register_reggroup_p): Replace current_gdbarch
2129 2007-10-22 Markus Deuling <deuling@de.ibm.com>
2131 * infcmd.c (default_print_registers_info, print_return_value)
2132 (print_vector_info, print_float_info): Replace current_gdbarch by
2134 (registers_info): Use get_frame_arch to get at the current
2135 architecture by frame_info.
2137 2007-10-22 Markus Deuling <deuling@de.ibm.com>
2139 * i387-tdep.c (i387_collect_fsave, i387_collect_fxsave): Use
2140 get_regcache_arch to get at the current architecture by regcache.
2142 2007-10-22 Markus Deuling <deuling@de.ibm.com>
2144 * target.c (debug_print_register): Use get_regcache_arch to get at the
2145 current architecture by regcache.
2147 2007-10-21 Daniel Jacobowitz <dan@codesourcery.com>
2149 * dwarf2read.c (read_file_scope): Add a comment.
2150 (dwarf2_add_field, dwarf2_add_member_fn, read_structure_type)
2151 (read_enumeration_type, process_enumeration_scope, read_array_type)
2152 (read_typedef, read_base_type, read_subrange_type)
2153 (read_unspecified_type): Use dwarf2_name.
2155 2007-10-21 Daniel Jacobowitz <dan@codesourcery.com>
2157 * coffread.c (coff_symfile_finish): Call dwarf2_free_objfile.
2158 * dwarf2read.c (dwarf2_free_objfile): New.
2159 * elfread.c (elf_symfile_finish): Call dwarf2_free_objfile.
2160 * symfile.h (dwarf2_free_objfile): Declare.
2162 2007-10-21 Joel Brobecker <brobecker@adacore.com>
2164 * hppa-hpux-nat.c (hppa_hpux_store_register): Add missing semi-colon.
2166 2007-10-21 Luis Machado <luisgpm@br.ibm.com>
2168 * rs6000-tdep.c (ppc_dwarf2_frame_init_reg): New function.
2169 * (rs6000_gdbarch_init): Install ppc_dwarf2_frame_init_reg as
2170 default dwarf2_frame_set_init_reg function.
2172 2007-10-21 Pedro Alves <pedro_alves@portugalmail.pt>
2174 * NEWS: Mention native MinGW configuration.
2176 2007-10-19 Ulrich Weigand <uweigand@de.ibm.com>
2178 * gdbarch.sh: Remove "macro" column of input table. Remove handling
2179 of "macro" column throughout the file. Remove (empty) "macro" entry
2180 of all gdbarch functions.
2182 2007-10-19 Ulrich Weigand <uweigand@de.ibm.com>
2184 * gdbarch.sh (sofun_address_maybe_missing): New gdbarch variable.
2185 * gdbarch.c, gdbarch.h: Regenerate.
2186 * dbxread.c (find_stab_function_addr): Define unconditionally.
2187 (read_dbx_symtab): Use gdbarch_sofun_address_maybe_missing
2188 instead of SOFUN_ADDRESS_MAYBE_MISSING.
2189 (end_psymtab): Likewise.
2190 (process_one_symbol): Likewise.
2191 * mdebugread.c (parse_partial_symbols): Likewise.
2193 * symtab.h (struct minimal_symbol): Always define "filename" member.
2194 * elfread.c (elf_symtab_read): Use msym->filename unconditionally.
2195 * minsyms.c (lookup_minimal_symbol): Likewise.
2196 * symmisc.c (dump_msymbols): Likewise.
2198 * config/i386/i386sol2.mt (DEPRECATED_TM_FILE): Remove.
2199 * config/i386/linux.mt (DEPRECATED_TM_FILE): Remove.
2200 * config/i386/tm-i386sol2.h: Remove file.
2201 * config/i386/tm-linux.h: Remove file.
2202 * i386-linux-tdep.c (i386_linux_init_abi): Add call to
2203 set_gdbarch_sofun_address_maybe_missing.
2204 * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
2206 * config/powerpc/linux.mt (DEPRECATED_TM_FILE): Remove.
2207 * config/powerpc/nbsd.mt (DEPRECATED_TM_FILE): Remove.
2208 * config/powerpc/obsd.mt (DEPRECATED_TM_FILE): Remove.
2209 * config/powerpc/ppc-eabi.mt (DEPRECATED_TM_FILE): Remove.
2210 * config/powerpc/ppc-sim.mt (DEPRECATED_TM_FILE): Remove.
2211 * config/powerpc/tm-ppc-eabi.h: Remove file.
2212 * rs6000-tdep.c (rs6000_gdbarch_init): Add call to
2213 set_gdbarch_sofun_address_maybe_missing.
2215 * config/sparc/sol2-64.mt (DEPRECATED_TM_FILE): Remove.
2216 * config/sparc/sol2.mt (DEPRECATED_TM_FILE): Remove.
2217 * config/sparc/tm-sol2.h: Remove file.
2218 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Add call to
2219 set_gdbarch_sofun_address_maybe_missing.
2220 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Likewise.
2222 2007-10-19 Ulrich Weigand <uweigand@de.ibm.com>
2224 * gdbarch.sh (static_transform_name): New gdbarch callback.
2225 * gdbarch.c, gdbarch.h: Regenerate.
2226 * dbxread.c (read_dbx_symtab): Use gdbarch_static_transform_name
2227 instead of STATIC_TRANSFORM_NAME.
2228 * mdebugread.c (parse_partial_symbols): Likewise.
2229 * stabsread.c (define_symbol): Likewise.
2230 * xcoffread.c (scan_xcoff_symtab): Likewise.
2232 * config/i368/tm-i386sol2.h (STATIC_TRANSFORM_NAME): Remove.
2233 (IS_STATIC_TRANSFORM_NAME): Remove.
2234 * i386-tdep.c (sunpro_static_transform_name): Remove, move to ...
2235 * i386-sol2-tdep.c (i386_sol2_static_transform_name): ... here.
2236 (i386_sol2_init_abi): Install it.
2238 * config/sparc/tm-sol2.h (STATIC_TRANSFORM_NAME): Remove.
2239 (IS_STATIC_TRANSFORM_NAME): Remove.
2240 * sparc-tdep.c (sparc_stabs_unglobalize_name): Remove, move to ...
2241 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): ... here.
2242 (sparc32_sol2_init_abi): Install it.
2243 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Likewise.
2244 * sparc-tdep.h (sparc_sol2_static_transform_name): Add prototype.
2246 2007-10-18 Daniel Jacobowitz <dan@codesourcery.com>
2248 * mips-tdep.c (mips_xfer_register): Take a gdbarch argument.
2249 (mips_n32n64_return_value, mips_o32_return_value)
2250 (mips_o64_return_value): Update calls to mips_xfer_register.
2252 2007-10-17 Daniel Jacobowitz <dan@codesourcery.com>
2254 * frame.c (frame_unwind_unsigned_register): Delete.
2255 (frame_sp_unwind): Use frame_unwind_register_unsigned instead.
2256 * frame.h (frame_unwind_unsigned_register): Delete prototype.
2258 * alpha-linux-tdep.c, alpha-mdebug-tdep.c, alpha-tdep.c,
2259 avr-tdep.c, cris-tdep.c, frv-tdep.c, m68hc11-tdep.c, mn10300-tdep.c,
2260 mt-tdep.c: Replace frame_unwind_unsigned_register with
2261 frame_unwind_register_unsigned.
2263 2007-10-16 Pedro Alves <pedro_alves@portugalmail.pt>
2265 * config/i386/mingw.mh, config/i386/mingw.mt: New files.
2266 * configure.tgt (i[34567]86-*-mingw32*): Set gdb_target = mingw.
2267 * win32-nat.c: Only include cygwin.h on Cygwin host. Don't
2269 (cygwin_load_start, cygwin_load_end, cygwin_exceptions): Disable
2270 if not building on Cygwin.
2271 (win32_make_so, handle_output_debug_string, handle_exception)
2272 (do_initial_win32_stuff): Wrap Cygwin specific code in __CYGWIN__.
2273 (win32_attach): Only fallback to Cygwin pids if building on
2275 (win32_pid_to_exec_file): Disable Cygwin specific code, if not
2277 (win32_create_inferior): Disable starting the inferior through a
2278 shell, environment var processing and tty handling if not building
2280 (cygwin_pid_to_str): Rename to ...
2281 (win32_pid_to_str): ... this.
2282 (init_win32_ops): Update use of win32_pid_to_str. Disable "shell"
2283 and "cygwin-exceptions" commands if not building on Cygwin.
2285 2007-10-16 Gaius Mulley <gaius@glam.ac.uk>
2287 * doc/gdb.texinfo: Add TSIZE definition, removed
2288 statement about unbounded arrays being unimplemented.
2289 * m2-valprint.c (m2_print_array_contents): New function.
2290 (m2_print_unbounded_array): New function.
2291 (m2_print_array_contents): New function.
2292 * m2-typeprint.c (m2_unbounded_array): New function.
2293 (m2_is_unbounded_array): New function.
2294 (m2_print_type): Test for unbounded array when walking
2296 * m2-lang.h: Added extern m2_is_unbounded_array.
2297 * m2-lang.c (evaluate_subexp_modula2): New function.
2298 (exp_descriptor_modula2): New structure.
2299 (m2_language_defn): Use exp_descriptor_modula2.
2300 * m2-exp.y: Added TSIZE and binary subscript.
2302 2007-10-16 Daniel Jacobowitz <dan@codesourcery.com>
2304 * mi/mi-main.c (captured_mi_execute_command): Clear mi_error_message
2307 2007-10-16 Kevin Buettner <kevinb@redhat.com>
2309 * m32r-tdep.c (decode_prologue): Sign extend offset for
2311 (m32r_frame_unwind_cache): Likewise.
2313 2007-10-15 Thiago Jung Bauermann <bauerman@br.ibm.com>
2315 * rs6000-tdep.c (skip_prologue): Restore comment with
2316 function description to its proper place.
2318 2007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
2320 * NEWS: Mention gdbserver PowerPC improvements.
2322 2007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
2324 * features/Makefile (WHICH): Add PowerPC register definitions.
2325 (rs6000/powerpc-32-expedite, rs6000/powerpc-e500-expedite)
2326 (rs6000/powerpc-64-expedite): New macros.
2327 ($(outdir)/%.dat): Handle subdirectories.
2328 * regformats/rs6000/powerpc-32.dat, regformats/rs6000/powerpc-64.dat,
2329 regformats/rs6000/powerpc-e500.dat: New generated files.
2331 2007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
2333 * ppc-linux-nat.c (ppc_linux_read_description): New.
2334 (_initialize_ppc_linux_nat): Set to_read_description.
2335 * ppc-tdep.h (tdesc_powerpc_e500): Declare.
2337 2007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
2339 * NEWS: Document target described register support for PowerPC.
2340 * ppc-tdep.h: Remove ppc_spr constants.
2341 (struct gdbarch_tdep): Remove regs, ppc_sr0_regnum, and
2342 ppc_builtin_type_vec128 members.
2343 (PPC_R0_REGNUM, PPC_F0_REGNUM, PPC_PC_REGNUM, PPC_MSR_REGNUM)
2344 (PPC_CR_REGNUM, PPC_LR_REGNUM, PPC_CTR_REGNUM, PPC_XER_REGNUM)
2345 (PPC_FPSCR_REGNUM, PPC_MQ_REGNUM, PPC_SPE_UPPER_GP0_REGNUM)
2346 (PPC_SPE_ACC_REGNUM, PPC_SPE_FSCR_REGNUM, PPC_VR0_REGNUM)
2347 (PPC_VSCR_REGNUM, PPC_VRSAVE_REGNUM, PPC_NUM_REGS): New constants.
2348 * rs6000-tdep.c: Include preparsed descriptions.
2349 (init_sim_regno_table): Do not iterate over pseudo registers.
2350 Look up segment registers by name. Use sim_spr_register_name
2352 (rs6000_register_sim_regno): Call init_sim_regno_table here.
2353 (rs6000_builtin_type_vec128): Delete.
2354 (rs6000_register_name): Only handle SPE pseudo registers and upper
2355 halves. Call tdesc_register_name for everything else.
2356 (rs6000_register_type): Delete. Replace with...
2357 (rs6000_pseudo_register_type): ...this new function. Only handle
2358 SPE pseudo registers.
2359 (rs6000_register_reggroup_p): Delete. Replace with...
2360 (rs6000_pseudo_register_reggroup_p): ...this new function. Only
2361 handle SPE pseudo registers.
2362 (rs6000_convert_register_p): Use ppc_fp0_regnum instead of
2364 (rs6000_register_to_value, rs6000_value_to_register): Remove check
2366 (e500_register_reggroup_p): Delete.
2367 (STR, R, R4, R8, R16, F, P8, R32, R64, R0, A4, S, S4, SN4, S64)
2368 (COMMON_UISA_REGS, PPC_UISA_SPRS, PPC_UISA_NOFP_SPRS)
2369 (PPC_SEGMENT_REGS, PPC_OEA_SPRS, PPC_ALTIVEC_REGS, PPC_SPE_GP_REGS)
2370 (PPC_SPE_UPPER_GP_REGS, PPC_EV_PSEUDO_REGS): Delete macros.
2371 (registers_powerpc, registers_403, registers_403GC, registers_505)
2372 (registers_860, registers_601, registers_602, registers_603)
2373 (registers_604, registers_750, registers_7400, registers_e500): Delete
2375 (struct variant): Delete nregs, npregs, num_tot_regs, and regs. Add
2377 (tot_num_registers, num_registers, num_pseudo_registers): Delete.
2378 (variants): Delete outdated comment. Use standard target descriptions
2379 instead of "struct reg" arrays.
2380 (init_variants): Delete.
2381 (rs6000_gdbarch_init): Do not guess word size from the BFD
2382 architecture if we have a target description. Select a variant
2383 before creating a new architecture. Use the variant's target
2384 description if the target did not define a register layout.
2385 Validate target-supplied registers. Reject mismatches. Use
2386 fixed register numbers and new constants instead of magic
2387 numbers. Call set_gdbarch_ps_regnum. Call tdesc_use_registers.
2388 (_initialize_rs6000_tdep): Initialize the preparsed target
2390 * target-descriptions.c (tdesc_predefined_types): Add int128 and
2392 (tdesc_find_register_early): New function.
2393 (tdesc_numbered_register): Use it.
2394 (tdesc_register_size): New function.
2395 (tdesc_use_registers): Take a target_desc argument. Do not use
2396 gdbarch_target_desc.
2397 * target-descriptions.h (tdesc_use_registers): Update prototype
2399 (tdesc_register_size): New prototype.
2400 * Makefile.in (powerpc_32_c, powerpc_403_c, powerpc_403gc_c)
2401 (powerpc_505_c, powerpc_601_c, powerpc_602_c, powerpc_603_c)
2402 (powerpc_604_c, powerpc_64_c, powerpc_7400_c, powerpc_750_c)
2403 (powerpc_860_c, powerpc_e500_c, rs6000_c): New macros.
2404 (rs6000-tdep.o): Update.
2405 * arm-tdep.c (arm_gdbarch_init): Update call to tdesc_use_registers.
2406 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
2407 * mips-tdep.c (mips_gdbarch_init): Likewise.
2409 2007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
2411 * features/rs6000/powerpc-32.c, features/rs6000/powerpc-403.c,
2412 features/rs6000/powerpc-403gc.c, features/rs6000/powerpc-505.c,
2413 features/rs6000/powerpc-601.c, features/rs6000/powerpc-602.c,
2414 features/rs6000/powerpc-603.c, features/rs6000/powerpc-604.c,
2415 features/rs6000/powerpc-64.c, features/rs6000/powerpc-7400.c,
2416 features/rs6000/powerpc-750.c, features/rs6000/powerpc-860.c,
2417 features/rs6000/powerpc-e500.c, features/rs6000/rs6000.c: New
2420 2007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
2422 * features/rs6000/power-altivec.xml, features/rs6000/power-core.xml,
2423 features/rs6000/power-fpu.xml, features/rs6000/power-oea.xml,
2424 features/rs6000/power-spe.xml, features/rs6000/power64-core.xml: New
2425 feature descriptions for standard PowerPC register sets.
2427 * features/rs6000/powerpc-32.xml, features/rs6000/powerpc-403.xml,
2428 features/rs6000/powerpc-403gc.xml, features/rs6000/powerpc-505.xml,
2429 features/rs6000/powerpc-601.xml, features/rs6000/powerpc-602.xml,
2430 features/rs6000/powerpc-603.xml, features/rs6000/powerpc-604.xml,
2431 features/rs6000/powerpc-64.xml, features/rs6000/powerpc-7400.xml,
2432 features/rs6000/powerpc-750.xml, features/rs6000/powerpc-860.xml,
2433 features/rs6000/powerpc-e500.xml, features/rs6000/rs6000.xml: New
2434 target descriptions for PowerPC processors.
2436 2007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
2438 * target-descriptions.c (tdesc_predefined_types): New.
2439 (tdesc_named_type): Use it.
2440 (tdesc_type_id, maint_print_c_tdesc_cmd): New functions.
2441 (_intialize_target_descriptions): Register "maint print c-tdesc".
2442 * features/Makefile (XMLTOC, CFILES, GDB): New macros.
2443 (cfiles, %.c): New rules.
2444 * features/arm-with-iwmmxt.c, features/mips-linux.c,
2445 features/mips64-linux.c: New generated files.
2447 * arm-linux-nat.c: Include preparsed description instead of
2449 (super_xfer_partial, arm_linux_xfer_partial): Remove.
2450 (arm_linux_read_description): New function.
2451 (_initialize_arm_linux_nat): Set to_read_description instead of
2452 to_xfer_partial. Initialize preparsed description.
2453 * config/arm/linux.mh (TDEP_XML): Delete.
2454 * mips-linux-nat.c: Include preparsed descriptions instead of
2456 (super_xfer_partial, mips_linux_xfer_partial): Remove.
2457 (mips_linux_read_description): New function.
2458 (_initialize_mips_linux_nat): Set to_read_description instead of
2459 to_xfer_partial. Initialize preparsed description.
2460 * config/mips/linux.mh (TDEP_XML): Delete.
2461 * Makefile.in (XMLFILES): Remove $(TDEP_XML).
2462 (features_headers, arm_with_iwmmxt_c, mips_linux_c)
2463 (mips64_linux_c): New macros.
2464 (arm-linux-nat.o, mips-linux-nat.o): Update.
2466 2007-10-15 Pierre Muller <muller@ics.u-strasbg.fr>
2468 * cp-abi.c (set_cp_abi_as_auto_default): ARI fix:
2469 Replace xasprintf by xstrprintf.
2470 symfile-mem.c (add_vsyscall_page): Ditto.
2472 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
2474 * ia64-linux-nat.c (ia64_register_addr): Add gdbarch parameter,
2475 replacing use of global current_gdbarch.
2476 (ia64_cannot_fetch_register, ia64_cannot_store_register): Likewise.
2477 (ia64_linux_fetch_register, ia64_linux_store_register): Update callers.
2479 * ia64-tdep.c (SIGCONTEXT_REGISTER_ADDRESS): Remove macro.
2480 (ia64_sigtramp_frame_init_saved_regs): Add next_frame parameter,
2481 replace uses of SIGCONTEXT_REGISTER_ADDRESS.
2482 (ia64_sigtramp_frame_cache): Update caller.
2484 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
2486 * gdbarch.sh (deprecated_use_struct_convention): Remove.
2487 (extract_return_value, store_return_value): Remove.
2488 (return_value): Remove default implementation.
2489 * gdbarch.c, gdbarch.h: Regenerate.
2491 * stack.c (return_command): Remove compatibility hack.
2492 * arch-utils.c (legacy_return_value): Remove.
2493 * arch-utils.h (legacy_return_value): Likewise.
2495 * arch-utils.c (always_use_struct_convention): Remove.
2496 * arch-utils.h (always_use_struct_convention): Likewise.
2497 * value.c (generic_use_struct_convention): Remove.
2498 * defs.h (generic_use_struct_convention): Likewise.
2500 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
2502 * avr-tdep.c (avr_return_value): New function.
2503 (avr_gdbarch_init): Call set_gdbarch_return_value instead of
2504 set_gdbarch_extract_return_value.
2506 * fvr-tdep.c (frv_return_value): New function.
2507 (frv_gdbarch_init): Call set_gdbarch_return_value instead of
2508 set_gdbarch_extract_return_value, set_gdbarch_store_return_value,
2509 and set_gdbarch_deprecated_use_struct_convention.
2511 * ia64-tdep.c (ia64_use_struct_convention): Make static.
2512 Add check for structure, union, or array types.
2513 (ia64_extract_return_value): Make static.
2514 (ia64_store_return_value): Make static. Support multi-word values.
2515 (ia64_return_value): New function.
2516 (ia64_gdbarch_init): Call set_gdbarch_return_value instead of
2517 set_gdbarch_extract_return_value, set_gdbarch_store_return_value,
2518 and set_gdbarch_deprecated_use_struct_convention.
2520 2007-10-12 Joel Brobecker <brobecker@adacore.com>
2522 * solib-target.c (solib_target_parse_libraries)
2523 [HAVEHAVE_LIBEXPAT not defined]: Fix thinko in return type.
2525 2007-10-12 Jim Blandy <jimb@codesourcery.com>
2527 * serial.h (struct serial_ops): Document read_prim to return zero
2529 * ser-base.c (do_ser_base_readchar): Return SERIAL_EOF when
2530 read_prim returns zero, not SERIAL_TIMEOUT.
2532 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
2534 * alpha-mdebug-tdep.c: Include "gdb_string.h".
2535 (find_proc_desc): Add fix-up code for setjmp procedure descriptor.
2536 * mdebugread.c (parse_procedure): Remove setjmp fix-up code.
2537 * Makefile.in (alpha-mdebug-tdep.o): Update dependencies.
2539 * config/alpha/alpha.mt (DEPRECATED_TM_FILE): Remove.
2540 * config/alpha/alpha-linux.mt (DEPRECATED_TM_FILE): Remove.
2541 * config/alpha/alpha-osf1.mt (DEPRECATED_TM_FILE): Remove.
2542 * config/alpha/fbsd.mt (DEPRECATED_TM_FILE): Remove.
2543 * config/alpha/tm-alpha.h: Remove file.
2545 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
2547 * breakpoint.c (breakpoint_sals_to_pc): Do not check for
2548 DEPRECATED_PC_REQUIRES_RUN_BEFORE_USE.
2550 * config/pa/tm-hppa.h: Delete file.
2551 * config/pa/hppa64.mt: Do not set DEPRECATED_TM_FILE.
2552 * config/pa/hppahpux.mt: Likewise.
2553 * config/pa/hppa.mt: Likewise.
2554 * config/pa/linux.mt: Likewise.
2555 * hppa-tdep.c (hppa_pc_requires_run_before_use): Delete.
2557 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
2559 * config/arm/nm-nbsdaout.h: Remove file.
2560 * config/nm-nbsdaout.h: Likewise.
2561 * config/nm-nbsd.h: Likewise.
2563 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
2565 * block.h (struct block): Remove "gcc_compile_flag" member.
2566 (BLOCK_GCC_COMPILED): Remove.
2567 * block.c (allocate_block): Do not clear BLOCK_GCC_COMPILED.
2568 * buildsym.c (finish_block): Do not set it.
2569 * symmisc.c (dump_symtab_1): Do not dump it.
2571 * value.h (using_struct_return): Remove "gcc_p" argument.
2572 * value.c (using_struct_return): Likewise.
2573 * eval.c (evaluate_subexp_standard): Adapt callers.
2574 * infcall.c (call_function_by_hand): Likewise.
2575 * stack.c (return_command): Likewise.
2576 * sparc-tdep.c (sparc32_push_dummy_code): Likewise.
2578 * gdbarch.sh (push_dummy_code): Remove "using_gcc" parameter.
2579 * gdbarch.c, gdbarch.h: Regenerate.
2580 * cris-tdep.c (cris_push_dummy_code): Adapt prototype.
2581 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Likewise.
2582 * sparc-tdep.c (sparc32_push_dummy_code): Likewise.
2583 * infcall.c (generic_push_dummy_code, push_dummy_code): Likewise.
2584 (push_dummy_code, call_function_by_hand): Adapt callers.
2586 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
2588 * infcmd.c (print_return_value): Remove STRUCT_RETURN argument.
2589 (finish_command_continuation, finish_command): Adapt callers.
2591 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
2593 * infcall.c (call_function_by_hand): Remove special handling
2594 for HP aCC compiled code.
2596 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
2598 * cris-tdep.c (cris_push_dummy_call): Support arguments passed by
2599 reference. Fix endianness bugs.
2600 (cris_reg_struct_has_address): Remove.
2601 (cris_gdbarch_init): Remove set_gdbarch_deprecated_reg_struct_has_addr
2602 and set_gdbarch_deprecated_use_struct_convention calls.
2604 * gdbarch.sh (deprecated_reg_struct_has_addr): Remove.
2605 * gdbarch.c, gdbarch.h: Regenerate.
2606 * infcall.c (call_function_by_hand): Remove handling of
2607 deprecated_reg_struct_has_addr.
2609 2007-10-11 Daniel Jacobowitz <dan@codesourcery.com>
2610 Kazu Hirata <kazu@codesourcery.com>
2612 * breakpoint.c (do_enable_breakpoint): Delay enabling until after
2613 checking watchpoint resources.
2615 2007-10-11 Kazu Hirata <kazu@codesourcery.com>
2617 * memattr.c (inaccessible_by_default): Change the initial
2620 2007-10-11 Daniel Jacobowitz <dan@codesourcery.com>
2623 * coffread.c (read_one_sym): Check for read errors.
2625 2007-10-11 Ulrich Weigand <uweigand@de.ibm.com>
2627 * linux-nat.c (lin_lwp_attach_lwp): Use "Linux kernel 2.6.19"
2628 instead of "Linux 2.6.19" in comment.
2629 (linux_xfer_partial): Use "GNU/Linux target" instead of
2630 "Linux target" in comment.
2631 * m68klinux-tdep.c (m68k_linux_inferior_created): Likewise.
2632 (m68k_linux_get_sigtramp_info): Likewise.
2634 2007-10-11 Daniel Jacobowitz <dan@codesourcery.com>
2636 * MAINTAINERS (language support): List Joel and Paul as
2639 2007-10-11 Daniel Jacobowitz <dan@codesourcery.com>
2641 * dbxread.c (process_one_symbol): Remove VARIABLES_INSIDE_BLOCK
2643 * config/arm/embed.mt, config/arm/linux.mt, config/arm/wince.mt: Do
2644 not set DEPRECATED_TM_FILE.
2645 * config/arm/tm-arm.h: Delete file.
2647 2007-10-11 Luis Machado <luisgpm@br.ibm.com>
2649 * MAINTAINERS (Write After Approval): Add self.
2651 2007-10-11 Daniel Jacobowitz <dan@codesourcery.com>
2653 * buildsym.c (record_line): Remove empty lines followed by
2654 end-of-sequence markers.
2656 2007-10-11 Kazu Hirata <kazu@codesourcery.com>
2658 * configure.tgt: Recognize fido-*-elf.
2660 2007-10-10 Joel Brobecker <brobecker@adacore.com>
2664 2007-10-10 Markus Deuling <deuling@de.ibm.com>
2666 * stack.c (print_frame_args, frame_info, return_command): Use
2667 get_regcache_arch or get_frame_arch to get at the current architecture
2668 by regcache or by frame, respectively.
2670 2007-10-10 Markus Deuling <deuling@de.ibm.com>
2672 * rs6000-nat.c (fetch_register, store_register)
2673 (rs6000_fetch_inferior_registers, rs6000_store_inferior_registers): Use
2674 get_regcache_arch to get at the current architecture by regcache.
2676 * rs6000-tdep.c (rs6000_push_dummy_call, rs6000_return_value)
2677 (rs6000_register_reggroup_p, e500_move_ev_registe, rs6000_unwind_pc)
2678 (rs6000_unwind_dummy_id, rs6000_frame_cache, rs6000_dump_tdep): Replace
2679 current_gdbarch by gdbarch.
2680 (rs6000_skip_trampoline_code, rs6000_register_to_value)
2681 (rs6000_value_to_register): Use get_frame_arch to get at the current
2682 architecture by frame_info.
2684 2007-10-10 Markus Deuling <deuling@de.ibm.com>
2686 * sparc-tdep.c (sparc_supply_rwindow, sparc_collect_rwindow): Use
2687 get_regcache_arch to get at the current architecture by regcache.
2689 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
2690 (sparc64_supply_fpregset, sparc64_collect_fpregset): Use
2691 get_regcache_arch to get at the current architecture by regcache.
2693 * sparc64nbsd-nat. (sparc64nbsd_supply_gregset)
2694 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
2695 (sparc64nbsd_collect_fpregset): Use get_regcache_arch to get at the
2696 current architecture by regcache.
2698 2007-10-10 Markus Deuling <deuling@de.ibm.com>
2700 * remote-mips.c (mips_wait, mips_fetch_registers)
2701 (mips_store_registers): Use get_regcache_arch to get at the
2702 current architecture by regcache.
2704 * mipsnbsd-tdep.c (mipsnbsd_supply_reg, mipsnbsd_fill_reg)
2705 (mipsnbsd_supply_fpreg, mipsnbsd_fill_fpreg): Use get_regcache_arch to
2706 get at the current architecture by regcache.
2707 (mipsnbsd_sigtramp_offset): Use get_frame_arch to get at the current
2708 architecture by frame_info.
2710 * mipsnbsd-nat.c (mipsnbsd_fetch_inferior_registers)
2711 (mipsnbsd_store_inferior_registers): Use get_regcache_arch to get at
2712 the current architecture by regcache.
2714 * mips-linux-tdep.c (mips_linux_get_longjmp_target)
2715 (mips64_linux_get_longjmp_target, mips_linux_o32_sigframe_init)
2716 (mips_linux_n32n64_sigframe_init): Use get_frame_arch to get at the
2717 current architecture by frame_info.
2718 (supply_32bit_reg, mips_supply_gregset, mips_fill_gregset)
2719 (mips_supply_fpregset, mips_fill_fpregset, supply_64bit_reg)
2720 (mips64_supply_gregset, mips64_fill_gregset, mips64_supply_fpregset)
2721 (mips64_fill_fpregset, mips_linux_write_pc): Use get_regcache_arch to
2722 get at the current architecture by regcache.
2724 * mips-linux-nat.c (mips_linux_register_addr)
2725 (mips64_linux_register_addr): Replace current_gdbarch by gdbarch.
2726 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset)
2727 (mips64_linux_regsets_fetch_registers)
2728 (mips64_linux_regsets_store_registers): Use get_regcache_arch to get at
2729 the current architecture by regcache.
2731 * mips64obsd-tdep.c (mips64obsd_sigframe_init): Use get_frame_arch to
2732 get at the current architecture by frame_info.
2734 2007-10-10 Markus Deuling <deuling@de.ibm.com>
2736 * mips-tdep.c (mips_xfer_register): Use get_regcache_arch to get at the
2737 current architecture by regcache.
2738 (mips2_fp_compat, mips32_next_pc, mips16_scan_prologue)
2739 (mips_insn16_frame_cache, mips32_scan_prologue, mips_insn32_frame_cache)
2740 (mips_stub_frame_cache, mips_read_fp_register_single)
2741 (mips_read_fp_register_double, mips_print_fp_register)
2742 (mips_print_register, print_gp_register_row): Use get_frame_arch to get
2743 at the current architecture by frame_info.
2744 (mips_register_reggroup_p, mips_pseudo_register_read, mips_unwind_sp)
2745 (mips_pseudo_register_write, mips_register_type, mips_unwind_pc)
2746 (mips_unwind_dummy_id, mips_eabi_push_dummy_call)
2747 (mips_n32n64_push_dummy_call, mips_n32n64_return_value)
2748 (mips_o32_push_dummy_call, mips_o32_return_value)
2749 (mips_o64_push_dummy_call, mips_o64_return_value)
2750 (mips_print_registers_info, mips_dump_tdep): Replace current_gdbarch by
2753 2007-10-10 Markus Deuling <deuling@de.ibm.com>
2755 * xtensa-tdep.c (xtensa_register_type, xtensa_pseudo_register_read)
2756 (xtensa_pseudo_register_write, xtensa_register_reggroup_p)
2757 (xtensa_unwind_pc, xtensa_unwind_dummy_id, xtensa_push_dummy_call)
2758 (xtensa_dump_tdep): Replace current_gdbarch by gdbarch.
2759 (xtensa_register_write_masked, xtensa_register_read_masked)
2760 (xtensa_supply_gregset, xtensa_store_return_value)
2761 (xtensa_extract_return_value): Use get_regcache_arch to get at the
2762 current architecture by regcache.
2763 (xtensa_frame_cache, call0_frame_get_reg_at_entry, call0_frame_cache)
2764 (xtensa_frame_prev_register): Use get_frame_arch to get at the current
2765 architecture by frame_info.
2767 2007-10-10 Daniel Jacobowitz <dan@codesourcery.com>
2769 * arm-tdep.c (struct arm_prologue_cache): Remove frameoffset.
2770 (thumb_analyze_prologue): Move pv_area_store_would_trash call
2771 out of loop. Do not set cache->frameoffset.
2772 (arm_scan_prologue): Use prologue-value mechanism. Do not set
2773 frameoffset. Simplify framesize.
2774 (arm_make_prologue_cache, arm_normal_frame_base): Do not use
2776 * arm-tdep.h (enum gdb_regnum): Add ARM_IP_REGNUM.
2778 2007-10-10 Daniel Jacobowitz <dan@codesourcery.com>
2780 * target.c (update_current_target): Call setup_target_debug.
2781 (push_target): Do not call it here.
2783 2007-10-09 Michael Snyder <msnyder@specifix.com>
2785 * MAINTAINERS: Update my email address.
2787 2007-10-09 Markus Deuling <deuling@de.ibm.com>
2789 * xtensa-tdep.c: Replace following current-gdbarch based macros by
2791 (xtensa_pseudo_register_read)
2792 (xtensa_pseudo_register_write): XTENSA_TARGET_FLAGS.
2793 (ARG_NOF, ARG_1ST, xtensa_extract_return_value)
2794 (xtensa_store_return_value, xtensa_push_dummy_call): CALL_ABI.
2795 (xtensa_pseudo_register_read)
2796 (xtensa_pseudo_register_write): ISA_USE_WINDOWED_REGISTERS.
2797 (xtensa_breakpoint_from_pc): ISA_USE_DENSITY_INSTRUCTIONS.
2798 (xtensa_register_type, xtensa_supply_gregset, xtensa_frame_cache)
2799 (xtensa_frame_prev_register): NUM_AREGS.
2800 (xtensa_pseudo_register_read, xtensa_pseudo_register_write,
2801 (xtensa_supply_gregset, xtensa_frame_cache, xtensa_frame_prev_register,
2802 (xtensa_extract_return_value, xtensa_store_return_value): WB_REGNUM.
2803 (xtensa_supply_gregset, xtensa_frame_cache)
2804 (xtensa_frame_prev_register): WS_REGNUM.
2805 (xtensa_supply_gregset): LBEG_REGNUM, LEND_REGNUM, LCOUNT_REGNUM,
2806 SAR_REGNUM, EXCCAUSE_REGNUM, EXCVADDR_REGNUM
2807 (xtensa_register_name, xtensa_register_type, xtensa_reg_to_regnum)
2808 (xtensa_pseudo_register_read, xtensa_pseudo_register_write)
2809 (xtensa_register_reggroup_p): REGMAP.
2810 (call0_track_op): LITBASE_REGNUM.
2811 (xtensa_register_type, xtensa_reg_to_regnum, call0_frame_cache):A0_BASE
2812 (xtensa_supply_gregset, call0_frame_get_reg_at_entry)
2813 (xtensa_frame_prev_register, AREG_NUMBER)
2814 (xtensa_register_type): AR_BASE.
2815 (xtensa_pseudo_register_read, xtensa_pseudo_register_write): FP_ALIAS.
2816 (AREG_NUMBER): AREGS_MASK, WB_MASK, A0_REGNUM.
2817 (ARG_1ST, xtensa_pseudo_register_read, xtensa_pseudo_register_write)
2818 (xtensa_frame_cache, xtensa_frame_prev_register)
2819 (xtensa_extract_return_value, xtensa_store_return_value)
2820 (xtensa_push_dummy_call, call0_frame_cache): A0_REGNUM.
2821 (xtensa_register_type, xtensa_pseudo_register_read, xtensa_frame_cache)
2822 (xtensa_pseudo_register_write, xtensa_unwind_dummy_id)
2823 (xtensa_frame_prev_register, xtensa_push_dummy_call)
2824 (call0_frame_cache): A1_REGNUM.
2825 (xtensa_extract_return_value, xtensa_store_return_value): A2_REGNUM.
2826 (xtensa_push_dummy_call): A4_REGNUM.
2827 (ARGS_FIRST_REG): A6_REGNUM.
2828 (xtensa_pseudo_register_read, xtensa_pseudo_register_write)
2829 (xtensa_frame_prev_register): A15_REGNUM.
2830 * xtensa-tdep.h: Delete current_gdbarch based macros after replacing
2831 them in the appropriate source file:
2832 XTENSA_TARGET_FLAGS, SPILL_LOCATION, SPILL_SIZE, CALL_ABI, NUM_AREGS,
2833 ISA_USE_WINDOWED_REGISTERS, ISA_USE_DENSITY_INSTRUCTIONS, WB_REGNUM,
2834 ISA_USE_EXCEPTIONS, ISA_USE_EXT_L32R, DEBUG_DATA_VADDR_TRAP_COUNT,
2835 DEBUG_INST_VADDR_TRAP_COUNT, ISA_MAX_INSN_SIZE, DEBUG_NUM_IBREAKS,
2836 DEBUG_NUM_DBREAKS, WS_REGNUM, LBEG_REGNUM, LEND_REGNUM, SAR_REGNUM,
2837 REGMAP, LITBASE_REGNUM, DEBUGCAUSE_REGNUM, EXCCAUSE_REGNUM, AR_BASE,
2838 EXCVADDR_REGNUM, NUM_IBREAKS, REGMAP_BYTES, NUM_CONTEXTS, FP_ALIAS,
2839 FP_LAYOUT, FP_LAYOUT_BYTES, GREGMAP, AREGS_MASK, WB_MASK, A0_REGNUM,
2840 A1_REGNUM, A2_REGNUM, A3_REGNUM, A4_REGNUM, A5_REGNUM, A6_REGNUM,
2841 A7_REGNUM, A8_REGNUM, A9_REGNUM, A10_REGNUM, A11_REGNUM, A12_REGNUM,
2842 A13_REGNUM, A14_REGNUM, A15_REGNUM.
2844 2007-10-09 Markus Deuling <deuling@de.ibm.com>
2846 * h8300-tdep.c (h8300_frame_cache): Use get_frame_arch to get at
2847 the current architecture by frame_info.
2848 (h8300_frame_prev_register
2849 (h8300_print_register): Replace current_gdbarch by gdbarch.
2850 (h8300_print_registers_info, h8300_register_type)
2851 (h8300_register_type): Likewise.
2853 2007-10-09 Markus Deuling <deuling@de.ibm.com>
2855 * i386-linux-nat.c (fetch_register): Use get_regcache_arch to get at
2856 the current architecture by regcache.
2857 (store_register, supply_gregset, fill_gregset, i386_linux_resume)
2858 (i386_linux_fetch_inferior_registers)
2859 (i386_linux_store_inferior_registers): Likewise.
2860 * i386gnu-nat.c (gnu_fetch_registers, gnu_store_registers): Likewise.
2861 * i386-nto-tdep.c (i386nto_supply_gregset): Likewise.
2862 * i386v4-nat.c (supply_fpregset, fill_fpregset): Likewise.
2863 * i386-tdep.c (i386_unwind_pc): Replace current_gdbarch by gdbarch.
2864 (i386_extract_return_value, i386_store_return_value): Likewise.
2865 * i386-tdep.c (i386_frame_prev_register): Use get_frame_arch to get at
2866 the current architecture by frame_info.
2867 (i386_sigtramp_frame_cache, i386_get_longjmp_target)
2868 (i386_register_to_value, i386_value_to_register): Likewise.
2870 2007-10-09 Markus Deuling <deuling@de.ibm.com>
2872 * monitor.c (monitor_supply_register): Use get_regcache_arch to get at
2873 the current architecture by regcache.
2874 (monitor_store_register, monitor_store_registers): Likewise.
2876 2007-10-09 Markus Deuling <deuling@de.ibm.com>
2878 * dbug-rom.c (dbug_supply_register): Use get_regcache_arch to get at
2879 the current architecture by regcache.
2881 2007-10-09 Markus Deuling <deuling@de.ibm.com>
2883 * arch-utils.c (legacy_return_value): Replace current_gdbarch by
2886 2007-10-09 Markus Deuling <deuling@de.ibm.com>
2888 * frame.c (frame_pc_unwind): Use get_frame_arch to get at the current
2889 architecture by frame.
2890 (frame_save_as_regcache, frame_register_unwind, get_prev_frame_1)
2891 (inside_main_func, frame_sp_unwind): Likewise.
2893 2007-10-09 Daniel Jacobowitz <dan@codesourcery.com>
2895 * solib-svr4.c (enable_break): Add the dynamic linker also if
2898 2007-10-09 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
2900 * MAINTAINERS (Write After Approval): Add self.
2902 2007-10-09 Pedro Alves <pedro_alves@portugalmail.pt>
2904 * stabsread.c (read_huge_number): Initialize local variable to 0.
2906 2007-10-09 Pierre Muller <muller@ics.u-strasbg.fr>
2908 * p-lang.h (pascal_main_name): Add declaration.
2909 * p-lang.c (GPC_P_INITIALIZE, GPC_MAIN_PROGRAM_NAME_1)
2910 (GPC_MAIN_PROGRAM_NAME_2): New constants.
2911 (pascal_main_name): New function.
2912 * symtab.c: Include p-lang.h.
2913 (find_main_name): Add call to pascal_main_name.
2914 * Makefile.in (symtab.o): Add dependency on p-lang.h.
2916 2007-10-09 Pedro Alves <pedro_alves@portugalmail.pt>
2918 * stabsread.c (read_huge_number): Fix handling of octal
2919 representation when the bit width is known.
2920 (read_range_type): Record unsigned integral types with their size,
2921 when the type size is known.
2923 2007-10-08 Thiago Jung Bauermann <bauerman@br.ibm.com>
2925 * MAINTAINERS (Write After Approval): Add self.
2927 2007-10-08 Pierre Muller <muller@ics.u-strasbg.fr>
2929 * breakpoint.c (print_one_breakpoint_location): ARI fix:
2930 Replace asprintf by xstrprintf.
2932 2007-10-08 Pierre Muller <muller@ics.u-strasbg.fr>
2934 * linux-fork.c: ARI fix: include "gdb_dirent.h" instead of <dirent.h>.
2935 Makefile.in (linux-fork.o): Add gdb_dirent.h dependency.
2937 2007-10-08 Pierre Muller <muller@ics.u-strasbg.fr>
2939 * linux-fork.c: Move "gdb_wait.h" include back to the position of
2940 <sys/wait.h> include before last commit.
2942 2007-10-08 Maciej W. Rozycki <macro@mips.com>
2944 * mips-tdep.c (mips32_next_pc): Fix a typo in BGTZL.
2946 2007-10-08 Markus Deuling <deuling@de.ibm.com>
2948 * aix-thread.c (supply_gprs64, supply_fprs, supply_sprs64)
2949 (supply_sprs32, fetch_regs_user_thread, fetch_regs_kernel_thread)
2950 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs64, fill_sprs32)
2951 (store_regs_user_thread, store_regs_kernel_thread): Use
2952 get_regcache_arch or get_frame_arch to get at the current architecture
2953 by regcache or by frame, respectively.
2955 2007-10-08 Markus Deuling <deuling@de.ibm.com>
2957 * sh64-tdep.c (sh64_push_dummy_call, sh64_register_type)
2958 (sh64_pseudo_register_read, sh64_pseudo_register_write)
2959 (sh64_do_fp_register, sh64_do_pseudo_register, sh64_do_register)
2960 (sh64_print_register, sh64_media_print_registers_info)
2961 (sh64_compact_print_registers_info, sh64_unwind_sp)
2962 (sh64_unwind_pc): Replace current_gdbarch by gdbarch.
2963 (sh64_show_media_regs, sh64_show_compact_regs, sh64_frame_cache)
2964 (sh64_frame_prev_register): Use FRAME to recognize current
2967 2007-10-08 Markus Deuling <deuling@de.ibm.com>
2969 * sh-tdep.c (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu)
2970 (sh_sh2a_register_type, sh_sh3e_register_type, sh_sh4_register_type)
2971 (sh_register_reggroup_p, sh_dwarf2_frame_init_reg): Replace
2972 current_gdbarch by gdbarch.
2973 (sh_generic_show_regs, sh3_show_reg, sh2e_show_regs, sh2a_show_regs)
2974 (sh2a_nofpu_show_regs, sh3e_show_regs, sh3_dsp_show_regs)
2975 (sh4_show_regs, sh4_nofpu_show_regs, sh_dsp_show_regs, sh_frame_cache)
2976 (sh_frame_prev_register, sh_unwind_sp, sh_unwind_pc): Use FRAME to
2977 recognize current architecture.
2979 2007-10-08 Markus Deuling <deuling@de.ibm.com>
2981 * remote.c (init_remote_state, fetch_register_using_p)
2982 (process_g_packet, remote_fetch_registers, remote_prepare_to_store)
2983 (store_register_using_P, store_registers_using_G)
2984 (remote_store_registers): Use get_regcache_arch or get_frame_arch to
2985 get at the current architecture by regcache or by frame, respectively.
2987 2007-10-08 Markus Deuling <deuling@de.ibm.com>
2989 * m68k-tdep.c (m68k_register_to_value, m68k_value_to_register)
2990 (m68k_svr4_extract_return_value, m68k_svr4_store_return_value)
2991 (m68k_frame_prev_register, m68k_get_longjmp_target): Use
2992 get_regcache_arch or get_frame_arch to get at the current architecture
2993 by regcache or by frame, respectively.
2994 * m68klinux-tdep.c (m68k_linux_sigtramp_frame_cache): Likewise.
2995 * m68klinux-nat.c (fetch_register, old_fetch_inferior_registers)
2996 (store_register, old_store_inferior_registers, supply_gregset)
2997 (supply_fpregset, fill_fpregset): Likewise.
2998 * m68k-tdep.c (m68k_register_type, m68k_unwind_pc, m68k_dump_tdep):
2999 Replace current_gdbarch by gdbarch.
3001 2007-10-08 Markus Deuling <deuling@de.ibm.com>
3003 * irix5-nat.c (supply_gregset, fill_gregset, supply_fpregset)
3004 (fill_fpregset, fetch_core_registers): Use get_regcache_arch or
3005 get_frame_arch to get at the current architecture by regcache or by
3006 frame, respectively.
3008 2007-10-08 Markus Deuling <deuling@de.ibm.com>
3010 * ia64-tdep.c (ia64_pseudo_register_read, ia64_pseudo_register_write):
3011 Replace current_gdbarch by gdbarch.
3012 * ia64-tdep.c (ia64_frame_prev_register
3013 (ia64_sigtramp_frame_prev_register)
3014 (ia64_libunwind_frame_prev_register): Use get_regcache_arch or
3015 get_frame_arch to get at the current architecture by regcache or by
3016 frame, respectively.
3017 * ia64-linux-nat.c (ia64_linux_fetch_register)
3018 (ia64_linux_fetch_registers, ia64_linux_store_register)
3019 (ia64_linux_store_registers): Likewise.
3021 2007-10-08 Markus Deuling <deuling@de.ibm.com>
3023 * hppa-tdep.c (hppa_stub_unwind_sniffer, hppa_dump_tdep): Replace
3024 current_gdbarch by gdbarch.
3025 * hppa-linux-nat.c (fetch_register, store_register)
3026 (hppa_linux_fetch_inferior_registers)
3027 (hppa_linux_store_inferior_registers): Use get_regcache_arch or
3028 get_frame_arch to get at the current architecture by regcache or by
3029 frame, respectively.
3030 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code
3031 (hppa_hpux_unwind_adjust_stub): Likewise.
3032 * hppa-hpux-nat.c (hppa_hpux_fetch_register, hppa_hpux_store_register)
3033 (hppa_hpux_fetch_inferior_registers)
3034 (hppa_hpux_store_inferior_registers): Likewise.
3036 2007-10-08 Markus Deuling <deuling@de.ibm.com>
3038 * cris-tdep.c (cris_sigcontext_addr, cris_sigtramp_frame_unwind_cache)
3039 (cris_scan_prologue, crisv32_scan_prologue, find_step_target)
3040 (cris_software_single_step, cris_supply_gregset): Use get_regcache_arch
3041 or get_frame_arch to get at the current architecture by regcache or by
3042 frame, respectively.
3043 * cris-tdep.c (crisv32_single_step_through_delay, cris_push_dummy_call)
3044 (cris_unwind_pc, cris_unwind_sp, cris_register_type, cris_dump_tdep)
3045 (crisv32_register_type, cris_dwarf2_frame_init_reg): Replace
3046 current_gdbarch by gdbarch.
3048 2007-10-08 Markus Deuling <deuling@de.ibm.com>
3050 * arm-tdep.c (arm_scan_prologue, arm_make_prologue_cache)
3051 (thumb_get_next_pc, arm_get_next_pc, arm_extract_return_value)
3052 (arm_store_return_value): Use get_regcache_arch or get_frame_arch to
3053 get at the current architecture by regcache or by·frame, respectively.
3054 (arm_push_dummy_call, arm_dump_tdep): Replace current_gdbarch by
3057 2007-10-08 Markus Deuling <deuling@de.ibm.com>
3059 * amd64-tdep.c (amd64_frame_prev_register, amd64_sigtramp_frame_cache):
3060 Use get_regcache_arch or get_frame_arch to get at the current
3061 architecture by regcache or by frame, respectively.
3062 * amd64-linux-tdep.c (amd64_linux_sigcontext_addr): Likewise.
3063 * amd64-nat.c (amd64_supply_native_gregset)
3064 (amd64_collect_native_gregset): Replace current_gdbarch by gdbarch.
3066 2007-10-08 Markus Deuling <deuling@de.ibm.com>
3068 * alpha-tdep.c (alpha_register_reggroup_p): Replace current_gdbarch by
3070 * alpha-linux-nat.c (alpha_linux_register_u_offset): Likewise.
3071 (alpha_sigtramp_frame_unwind_cache, alpha_sigtramp_frame_this_id)
3072 (alpha_sigtramp_frame_sniffer, alpha_next_pc): Use get_regcache_arch or
3073 get_frame_arch to get at the current architecture by regcache or by
3074 frame, respectively.
3075 * alpha-nat.c (fetch_osf_core_registers): Likewise.
3077 2007-10-08 Markus Deuling <deuling@de.ibm.com>
3079 * dwarf2-frame.c (read_reg, execute_cfa_program, dwarf2_frame_cache)
3080 (dwarf2_frame_default_init_reg, dwarf2_frame_prev_register): Replace
3081 current_gdbarch by gdbarch.
3082 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Likewise.
3084 2007-10-08 Markus Deuling <deuling@de.ibm.com>
3086 * regcache.c (init_regcache_descr, register_type, read_pc_pid)
3087 (write_pc_pid, regcache_dump): Replace current_gdbarch by gdbarch.
3088 * regcache.c (regcache_raw_write): Use get_regcache_arch or
3089 get_frame_arch to get at the current architecture by regcache or by
3090 frame, respectively.
3092 2007-10-08 Markus Deuling <deuling@de.ibm.com>
3094 * findvar.c (value_of_register, locate_var_value): Use
3095 get_regcache_arch or get_frame_arch to get at the current architecture
3096 by regcache or by frame, respectively.
3097 * findvar.c (default_value_from_register, value_from_register): Replace
3098 current_gdbarch by gdbarch.
3100 2007-10-08 Pierre Muller <muller@ics.u-strasbg.fr>
3102 * config/i386/nm-i386.h (CHILD_POST_STARTUP_INFERIOR): ARI fix: Remove.
3104 2007-10-08 Pierre Muller <muller@ics.u-strasbg.fr>
3106 * linux-fork.c: ARI fix: include "gdb_wait.h" instead of <sys/wait.h>.
3107 Makefile.in (linux-fork.o): Add gdb_wait.h dependency.
3109 2007-10-05 Daniel Jacobowitz <dan@codesourcery.com>
3111 * remote.c (get_offsets): Only call free_symfile_segment_data if
3114 2007-10-03 Pierre Muller <muller@ics.u-strasbg.fr>
3116 * objc-exp.y: ARI fix: remove 4 PARAMS.
3118 2007-10-03 Daniel Jacobowitz <dan@codesourcery.com>
3120 * NEWS: Use uniform spacing. Correct version number for GDB 6.7
3121 news. Mention XML support for M68K in GDB 6.7.
3123 2007-10-03 Daniel Jacobowitz <dan@codesourcery.com>
3125 * gdbtypes.c (create_range_type): Do not set TYPE_FIELD_TYPE for the
3127 (init_vector_type): Use builtin_type_int32.
3129 2007-10-02 Ulrich Weigand <uweigand@de.ibm.com>
3131 * s390-tdep.c (s390_regset_from_core_section): Allow excess section
3132 size to enable bi-arch generate-core-file support.
3134 2007-10-02 Markus Deuling <deuling@de.ibm.com>
3136 * spu-tdep.c (info_spu_signal_command): Fix output for SPU signal.
3138 2007-10-02 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
3140 * tui/tui-interp.c (tui_init): Initialize tui's SIGWINCH
3142 * tui/tui-win.c (tui_initialize_win): New function for
3143 initializing tui's SIGWINCH signal handler.
3144 * tui/tui-win.h (tui_initialize_win): Declare.
3146 2007-10-02 Ulrich Weigand <uweigand@de.ibm.com>
3148 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Cast
3149 pointer to uintptr_t before casting to CORE_ADDR.
3151 2007-10-02 Markus Deuling <deuling@de.ibm.com>
3153 * linux-nat.c (PTRACE_GETSIGINFO): Add define.
3155 2007-10-02 Mark Mitchell <mark@codesourcery.com>
3157 * mingw-hdep.c (gdb_select): Stop helper threads before returning.
3158 * ser-mingw.c (enum select_thread_state): New type.
3159 (struct ser_console_state): Add have_started and thread_state.
3160 (select_thread_wait): New function.
3161 (thread_fn_type): New type.
3162 (create_select_thread): New function.
3163 (destroy_select_thread): Likewise.
3164 (start_select_thread): Likewise.
3165 (stop_select_thread): Likewise.
3166 (console_select_thread): Use new functions.
3167 (pipe_select_thread): Likewise.
3168 (file_select_thread): Likewise.
3169 (ser_console_wait_handle): Likewise.
3170 (ser_console_done_wait_handle): Likewise.
3171 (ser_console_close): Likewise.
3172 (free_pipe_state): Likewise.
3173 (pipe_wait_handle): Likewise.
3174 (pipe_done_wait_handle): Likewise.
3175 (struct net_windows_state): Derive from ser_console_state.
3176 (net_windows_select_thread): Use new functions.
3177 (net_windows_wait_handle): Likewise.
3178 (net_windows_done_wait_handle): Likewise.
3179 (net_windows_close): Likewise.
3181 2007-10-02 Daniel Jacobowitz <dan@codesourcery.com>
3183 * inflow.c (terminal_ours_1): Remove useless line.
3185 2007-10-02 Daniel Jacobowitz <dan@codesourcery.com>
3187 * mips-tdep.c (mips_read_fp_register_double): Correct check for
3189 (mips_print_fp_register): Correct check for even FP registers.
3190 (mips_virtual_frame_pointer): New function.
3191 (mips_gdbarch_init): Call set_gdbarch_virtual_frame_pointer.
3193 2007-09-30 Mike Frysinger <vapier@gentoo.org>
3195 * value.h (lookup_only_internalvar): New prototype.
3196 (create_internalvar): Likewise.
3197 * value.c (lookup_only_internalvar): New function.
3198 (create_internalvar): Likewise.
3199 (lookup_internalvar): Use new lookup_only_internalvar and
3200 create_internalvar functions.
3201 * parse.c (write_dollar_variable): Look up $ symbols in internal
3202 table first rather than last.
3204 2007-09-30 Daniel Jacobowitz <dan@codesourcery.com>
3206 * linux-nat.c (linux_nat_new_thread): New variable.
3207 (linux_child_follow_fork): Set inferior_ptid to include LWP ID. Use
3208 linux_nat_switch_fork.
3209 (lwp_list): Make public.
3210 (add_lwp): Call linux_nat_new_thread.
3211 (lin_lwp_attach_lwp, linux_nat_attach): Call add_lwp after stopping
3213 (resume_callback): Clear lp->siginfo. Remove unused variable.
3214 (linux_nat_resume): Assert that the LWP list is already initialized.
3216 (save_siginfo): New.
3217 (stop_wait_callback, linux_nat_wait): Call it.
3218 (linux_nat_set_new_thread, linux_nat_get_siginfo): New.
3219 * linux-nat.h (struct lwp_info): Add siginfo.
3220 (lwp_list, linux_nat_set_new_thread, linux_nat_get_siginfo): Declare.
3223 * amd64-linux-nat.c (amd64_linux_dr): New.
3224 (amd64_linux_dr_get): Take a PTID argument. Correct typo.
3225 (amd64_linux_dr_set): Take a PTID argument.
3226 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use ALL_LWPS.
3227 (amd64_linux_dr_reset_addr): Use amd64_linux_dr_set_addr.
3228 (amd64_linux_dr_get_status): Pass inferior_ptid to amd64_linux_dr_get.
3229 (amd64_linux_new_thread): New.
3230 (_initialize_amd64_linux_nat): Call linux_nat_set_new_thread.
3231 * i386-linux-nat.c (i386_linux_dr): New.
3232 (i386_linux_dr_get, i386_linux_dr_set): Take a PTID argument.
3233 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use ALL_LWPS.
3234 (i386_linux_dr_reset_addr): Use i386_linux_dr_set_addr.
3235 (i386_linux_dr_get_status): Pass inferior_ptid to i386_linux_dr_get.
3236 (i386_linux_new_thread): New.
3237 (i386_linux_resume): Remove unnecessary PID check.
3238 (_initialize_i386_linux_nat): Call linux_nat_set_new_thread.
3239 * ia64-linux-nat.c (enable_watchpoints_in_psr): Take PTID argument.
3240 (fetch_debug_register, fetch_debug_register_pair): Delete.
3241 (debug_registers): New.
3242 (ia64_linux_insert_watchpoint, ia64_linux_remove_watchpoint): Use
3243 ALL_LWPS and debug_registers.
3244 (ia64_linux_new_thread): New.
3245 (ia64_linux_stopped_data_address): Use linux_nat_get_siginfo.
3246 (_initialize_ia64_linux_nat): Call linux_nat_set_new_thread.
3247 * ppc-linux-nat.c (last_stopped_data_address): Delete.
3248 (saved_dabr_value): New.
3249 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint): Use
3251 (ppc_linux_new_thread): New.
3252 (ppc_linux_stopped_data_address): Use linux_nat_get_siginfo.
3253 (ppc_linux_stopped_by_watchpoint): Call ppc_linux_stopped_data_address.
3254 (_initialize_ppc_linux_nat): Call linux_nat_set_new_thread.
3255 * s390-nat.c (s390_stopped_by_watchpoint): Clear the watchpoint status
3257 (s390_fix_watch_points): Take a PTID argument.
3258 (s390_insert_watchpoint, s390_remove_watchpoint): Use ALL_LWPS.
3259 (_initialize_s390_nat): Call linux_nat_set_new_thread.
3261 2007-09-30 Daniel Jacobowitz <dan@codesourcery.com>
3262 Jeff Johnston <jjohnstn@redhat.com>
3264 * breakpoint.c (watchpoints_triggered): New.
3265 (bpstat_stop_status): Remove STOPPED_BY_WATCHPOINT argument.
3266 Check watchpoint_triggered instead. Combine handling for software
3267 and hardware watchpoints. Do not use target_stopped_data_address
3268 here. Always check a watchpoint if its scope breakpoint triggers.
3269 Do not stop for thread or overlay events. Improve check for
3270 triggered watchpoints without a value change.
3271 (watch_command_1): Insert the scope breakpoint first. Link the
3272 scope breakpoint to the watchpoint.
3273 * breakpoint.h (enum watchpoint_triggered): New.
3274 (struct breakpoint): Add watchpoint_triggered.
3275 (bpstat_stop_status): Update prototype.
3276 (watchpoints_triggered): Declare.
3277 * infrun.c (enum infwait_status): Add infwait_step_watch_state.
3278 (stepped_after_stopped_by_watchpoint): Delete.
3279 (handle_inferior_event): Make stepped_after_stopped_by_watchpoint
3280 local. Handle infwait_step_watch_state. Update calls to
3281 bpstat_stop_status. Use watchpoints_triggered to check
3283 * remote.c (stepped_after_stopped_by_watchpoint): Remove extern.
3284 (remote_stopped_data_address): Do not check it.
3286 2007-09-29 Daniel Jacobowitz <dan@codesourcery.com>
3288 * configure.ac: Add $LIBINTL when testing libbfd.
3289 * configure: Regenerated.
3291 2007-09-28 Vladimir Prus <vladimir@codesourcery.com>
3293 * NEW: Mention pending breakpoint changes and
3294 support for breakpoints at multiple locations.
3296 2007-09-27 Daniel Jacobowitz <dan@codesourcery.com>
3298 * arm-linux-tdep.c (arm_linux_software_single_step): New.
3299 (arm_linux_init_abi): Use it.
3300 * arm-tdep.c (arm_get_next_pc): Make global. Handle all-ones
3301 condition correctly.
3302 * arm-tdep.h (arm_get_next_pc): Declare.
3303 * Makefile.in (arm-linux-tdep.o): Update.
3305 2007-09-26 Vladimir Prus <vladimir@codesourcery.com>
3307 * varobj.c (install_new_value): Don't
3308 call value_get_print_value when a value is
3309 lazy. Update the print_value member in a
3312 2007-09-26 Vladimir Prus <vladimir@codesourcery.com>
3314 * breakpoint.c (create_breakpoint): Set
3315 condition on each location, not on the first
3316 location of breakpoint.
3318 2007-09-26 Jim Blandy <jimb@codesourcery.com>
3320 * remote.c (getpkt_sane): Fix error message. No animals were
3321 harmed in the making of this debugger.
3323 2007-09-26 Pierre Muller <muller@ics.u-strasbg.fr>
3325 * p-typeprint.c: Fix 11 ARI reported problems.
3326 (pascal_print_type): Fix 4 operator at end of line.
3327 (pascal_type_print_method_args) : Replace 2 DEPRECATED_STREQN macros
3328 using strncmp function.
3329 (pascal_type_print_base): Fix 2 operator at end of line.
3330 (pascal_type_print_base) : Replace 3 DEPRECATED_STREQN macros
3331 using strncmp function.
3334 2007-09-26 Pierre Muller <muller@ics.u-strasbg.fr>
3336 * Fix PR pascal/2231
3337 dwarf2read.c (read_subroutine_type):
3338 All pascal functions are prototyped.
3340 2007-09-26 Pierre Muller <muller@ics.u-strasbg.fr>
3342 * Fix PR pascal/2283
3343 p-valprint.c (pascal_val_print): correct current language check.
3344 Also print array of char as strings.
3347 2007-09-26 David Ung <davidu@mips.com>
3348 Maciej W. Rozycki <macro@mips.com>
3350 * mips-tdep.c (mips_n32n64_return_value): Fix a comment.
3352 2007-09-25 Pierre Muller <muller@ics.u-strasbg.fr>
3354 * p-exp.y: Fix 12 ARI reported problems.
3355 (name_not_typename): Fix 2 operator at end of line issues.
3356 (yylex): Fix 3 operator at end of line issues.
3357 Replace 7 DEPRECATED_STREQ macros using strcmp function.
3359 2007-09-25 David Ung <davidu@mips.com>
3360 Maciej W. Rozycki <macro@mips.com>
3362 * mips-tdep.c (mips_n32n64_return_value): Per N32/N64 ABI
3363 rules return composite types in registers as appropriate.
3365 2007-09-24 Jim Blandy <jimb@codesourcery.com>
3367 * symfile.h (struct symfile_segment_data): Doc fixes.
3368 * symfile.c (symfile_map_offsets_to_segments): Doc fixes.
3369 Assert that we were passed some loaded segment addresses,
3370 and that sections' segment numbers are valid.
3371 Simplify offset calculation.
3372 * remote.c (get_offsets): Clarify selection of relocate-by-segment
3373 strategy, and set num_segments correctly. Delete redundant
3374 assignments to do_sections.
3376 2007-09-24 Daniel Jacobowitz <dan@codesourcery.com>
3378 * frame.c (get_prev_frame_1): Also check for PC in the same register.
3380 2007-09-24 Vladimir Prus <vladimir@codesourcery.com>
3382 * breakpoint.c (remove_sal): New.
3383 (expand_line_sal_maybe): New.
3384 (create_breakpoints): Call expand_line_sal_maybe.
3385 (clear_command): Add comment.
3386 (breakpoint_re_set_one): Call expand_line_sal_maybe.
3387 * linespec.c (decode_indirect): Set explicit_pc to 1.
3388 (decode_all_digits): Set explicit_line to 1.
3389 (append_expanded_sal): New.
3390 (expand_line_sal): New.
3391 * linespec.h (expand_line_sal): Declare.
3392 * symtab.c (init_sal): Initialize explicit_pc
3394 * symtab.h (struct symtab_and_line): New fields
3395 explicit_pc and explicit_line.
3397 2007-09-23 Daniel Jacobowitz <dan@codesourcery.com>
3399 * infcall.c (call_function_by_hand): Handle language-specific
3400 pass and return by reference.
3402 * cp-abi.c (cp_pass_by_reference): New.
3403 * cp-abi.h (cp_pass_by_reference): Declare.
3404 (struct cp_abi_ops): Add pass_by_reference.
3405 * gnu-v3-abi.c (gnuv3_pass_by_reference): New.
3406 (init_gnuv3_ops): Set pass_by_reference.
3408 * language.c (language_pass_by_reference): New.
3409 (default_pass_by_reference): New.
3410 (unknown_language_defn, auto_language_defn, local_language_defn): Add
3411 default_pass_by_reference.
3412 * langauge.h (struct language_defn): Add la_pass_by_reference.
3413 (language_pass_by_reference, default_pass_by_reference): Declare.
3414 * ada-lang.c (ada_language_defn): Add default_pass_by_reference.
3415 * c-lang.c (c_language_defn, asm_language_defn)
3416 (minimal_language_defn): Likewise.
3417 (cplus_language_defn): Add cp_pass_by_reference.
3418 * f-lang.c (f_language_defn): Add default_pass_by_reference.
3419 * jv-lang.c (java_language_defn): Likewise.
3420 * m2-lang.c (m2_language_defn): Likewise.
3421 * objc-lang.c (objc_language_defn): Likewise.
3422 * p-lang.c (pascal_language_defn): Likewise.
3423 * scm-lang.c (scm_language_defn): Likewise
3425 2007-09-23 Vladimir Prus <vladimir@codesourcery.com>
3427 Allow a code breakpoint to have several locations
3429 * breakpoint.h (enum enable_state): Remove the
3430 bp_shlib_disabled enumerator.
3431 (struct bp_location): New members shlib_disabled,
3432 global_next, enabled and function_name.
3433 Rename pending to condition_not_parsed.
3435 * breakpoint.c (ALL_BP_LOCATIONS): Iterate over global_next.
3436 (ALL_BP_LOCATIONS_SAFE): Likewise.
3437 (breakpoint_enabled): Don't check for pending.
3438 (condition_command): Free and update all locations of
3440 (insert_bp_location): Adjust.
3441 (software_breakpoint_inserted_here_p): Don't care
3442 if breakpoint is enabled, as soon as it's inserted.
3443 (print_it_typical): Print bpstat's location, not
3444 bpstat's breakpoint's location.
3445 (bpstat_stop_status): Iterate over all locations, not
3447 (print_breakpoint_location): New.
3448 (print_one_breakpoint): Renamed to
3449 (print_one_breakpoint_location): ...this. Take
3450 parameters to describe which location is being
3451 printed. Modify code to properly print header
3452 for several locations and individual locations.
3453 (print_one_breakpoint): Print all locations.
3454 (breakpoint_has_pc): New.
3455 (describe_other_breakpoints): Use the above.
3456 (check_duplicates): Renamed to...
3457 (check_duplicates_for): .. this.
3458 (check_duplicates): Use check_duplicates_for.
3459 (allocate_bp_location): Adjust.
3460 (set_raw_breakpoint_without_location): New,
3461 extracted from set_raw_breakpoint.
3462 (set_breakpoint_location_function): New.
3463 (set_raw_breakpoint): Use
3464 set_raw_breakpoint_without_location.
3465 (make_breakpoint_permanent): Mark all locations
3467 (disable_breakpoints_in_shlibs): Iterate over
3469 (disable_breakpoints_in_unloaded_shlib): Likewise.
3470 (re_enable_breakpoints_in_shlibs): Likewise.
3471 (mention): Say "pending" when breakpoint has
3472 zero locations. If breakpoint has more than one
3474 (add_location_to_breakpoint): New.
3475 (create_breakpoint): Accept symtabs_and_lines, not
3476 symtab_and_line. Pass extra sals to
3477 add_location_to_breakpoint.
3478 (create_breakpoints): Pass symtabs_and_lines to
3480 (break_command_1): Make pending breakpoints
3481 have zero locations.
3482 (do_captured_breakpoint): Remove wrong allocation.
3483 (clear_command): Iterate over all locations.
3484 (unlink_locations_from_global_list): Renamed
3485 from unlink_location_from_global_list. Remove
3487 (delete_breakpoint): Remove all locations.
3488 Iterate over all locations when deciding which
3489 other location to re-enable.
3490 (all_locations_are_pending): New.
3491 (update_breakpoint_locations): Renamed from
3492 update_breakpoint_location. Try to match old
3493 and new locations using names of containing
3495 (breakpoint_re_set_one): Adjust.
3496 (find_location_by_number): New.
3497 (disable_command): Allow disabling individual location.
3498 (enable_command): Allow enabling individual location.
3499 * breakpoint.c: Adjust all uses of breakpoint's
3500 enable state to for bp_shlib_disabled change.
3502 2007-09-22 Vladimir Prus <vladimir@codesourcery.com>
3504 * breakpoint.c (do_restore_lang_radix_cleanup): Remove.
3505 (resolve_pending_breakpoint): Remove.
3506 (re_enable_breakpoints_in_shlibs): Remove.
3507 (unlink_locations_from_global_list): New.
3508 (update_breakpoint_locations): New.
3509 (breakpoint_re_set_one): Don't bail out on pending breakpoints.
3510 Use parse_condition and update_breakpoint_location to
3511 reset breakpoint. Ignore 'symbol not found' error from
3513 (breakpoint_re_set): Don't emit newline before the
3514 reason why breakpoint is not reset.
3515 (do_enable_breakpoint): Don't specially process pending
3517 (free_bp_location): New.
3518 (break_command_1): For pending breakpoints, initialize
3519 all fields of a sal with zeroes.
3520 * breakpoint.h (re_enable_breakpoints_in_shlibs): Remove.
3521 * infcmd.c (post_create_inferior): Don't call
3522 re_enable_breakpoints_in_shlibs.
3523 * infrun.c (handle_inferior_event): Likewise.
3524 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
3525 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
3526 * win32-nat.c (get_win32_debug_event): Likewise.
3528 2007-09-22 Vladimir Prus <vladimir@codesourcery.com>
3530 * breakpoint.c (create_breakpoint): Split from
3531 create_breakpoints, implementing most of its logic.
3532 Take just a single sal, single address string and
3533 single condition. Do not take parsed condition at
3535 (create_breakpoints): Just call create_breakpoint
3537 (find_condition_and_thread): New.
3538 (break_command_1): Use find_condition_and_thread.
3539 Do not keep parsed conditions.
3540 (do_captured_breakpoint): Don't convert
3541 condition string to struct expression.
3543 2007-09-22 Vladimir Prus <vladimir@codesourcery.com>
3545 * breakpoint.h (struct breakpoint): Move the cond
3547 (struct bp_location): Here.
3548 * breakpoint.c (condition_command, bpstat_stop_status)
3549 (print_one_breakpoint, allocate_bp_location)
3550 (solib_load_unload_1, create_fork_vfork_event_catchpoint)
3551 (create_exec_event_catchpoint, create_breakpoints)
3552 (break_command_1, watch_command_1, handle_gnu_v3_exceptions)
3553 (create_ada_exception_breakpoint, set_breakpoint_sal)
3554 (delete_breakpoint, breakpoint_re_set_one): Adjust.
3555 * tui/tui-winsource.c (tui_update_breakpoint_info): Adjust.
3557 2007-09-22 Vladimir Prus <vladimir@codesourcery.com>
3559 Associate bp_stat with bp_location, not breakpoint.
3560 * breakpoint.h (breakpoint_at): Change type
3562 * breakpoint.c (bpstat_alloc): Take bp_location,
3564 (bpstat_find_breakpoint): Look at bpstat's location's
3565 owner, not at bpstat->breakpoint_at.
3566 (bpstat_find_step_resume_breakpoint): Likewise.
3567 (bpstat_num): Likewise.
3568 (print_it_typical): Likewise.
3569 (print_bp_stop_message): Likewise.
3570 (watchpoint_check): Likewise.
3571 (bpstat_what): Likewise.
3572 (bpstat_get_triggered_catchpoints): Likewise.
3573 (breakpoint_auto_delete): Likewise.
3574 (delete_breakpoint): Likewise.
3575 (bpstat_stop_status): Pass location, not breakpoint,
3576 to bpstat_alloc. Look at bpstat's location's
3577 owner, not at bpstat->breakpoint_at.
3579 2007-09-21 Jim Blandy <jimb@codesourcery.com>
3581 * macrotab.h (new_macro_table): Document that removing information
3582 from an obstack/bcache-managed macro table leaks memory.
3583 * macrotab.c (macro_free, macro_bcache_free): Instead of asserting
3584 that data is never freed in obstack/bcache-managed macro tables,
3585 just leak the storage.
3586 (macro_undef): If we're undefining a macro at exactly the same
3587 source location that we defined it, simply remove the definition
3590 2007-09-21 Joel Brobecker <brobecker@adacore.com>
3592 * symfile.h (struct sym_fns): Add new field sym_read_linetable.
3593 * coffread.c, dbxread.c, elfread.c, mipsread.c somread.c:
3594 Adjust the struct sym_fns object accordingly by setting
3595 the new field to NULL.
3596 * xcoffread.c (aix_process_linenos): Make static.
3597 (xcoff_sym_fns): Set new field to aix_process_linenos.
3598 * buildsym.c (end_symtab): Replace call to PROCESS_LINENUMBER_HOOK
3599 by call to new the new sym_fns sym_read_linetable function.
3600 * config/powerpc/aix.mt (DEPRECATED_TM_FILE): Delete.
3601 * config/rs6000/tm-rs6000.h: Delete.
3603 2007-09-21 David Ung <davidu@mips.com>
3604 Maciej W. Rozycki <macro@mips.com>
3606 * mips-tdep.c (mips_n32n64_push_dummy_call): Per N32/N64 ABI
3607 rules do not treat composite types specially.
3609 2007-09-20 Maciej W. Rozycki <macro@mips.com>
3611 * mips-tdep.c (mips32_in_function_epilogue_p): New function.
3612 (mips16_in_function_epilogue_p): Likewise.
3613 (mips_in_function_epilogue_p): Likewise.
3614 (mips_gdbarch_init): Register mips_in_function_epilogue_p().
3616 2007-09-19 Joel Brobecker <brobecker@adacore.com>
3618 * configure.ac: Add check for "etext".
3619 * configure, config.in: Regenerate.
3620 * maint.c (TEXTEND): Only define if either _etext or etext
3622 Disable the profiling functionality if TEXTEND is not defined.
3624 2007-09-19 Daniel Jacobowitz <dan@codesourcery.com>
3626 * mips-tdep.c (mips_stub_frame_cache): Correct the saved return
3627 address register. Correct the call to frame_id_build.
3628 (mips_stub_frame_sniffer): Use the stub unwinder when the PC
3631 2007-09-18 Joel Brobecker <brobecker@adacore.com>
3633 * ia64-tdep.c (refine_prologue_limit): Make sure we don't scan
3634 the linetable past the function end.
3636 2007-09-18 James E. Wilson <wilson@specifix.com>
3638 * MAINTAINERS: Update my email address.
3640 2007-09-18 Jerome Guitton <guitton@adacore.com>
3642 * inf-ttrace.c (inf_ttrace_private_thread_info): New structure type.
3643 (inf_ttrace_delete_dying_threads_callback): New function.
3644 (inf_ttrace_resume): After resuming the execution, iterate over
3645 the dying threads to delete them for the thread list.
3646 (inf_ttrace_wait): on TTEVT_LWP_EXIT and TTEVT_LWP_TERMINATE,
3647 mark the corresponding thread as dying instead of removing it
3648 from the thread list.
3649 (inf_ttrace_thread_alive): return 0 for dying threads.
3651 2007-09-17 Joel Brobecker <brobecker@adacore.com>
3653 * infrun.c (insert_step_resume_breakpoint_at_frame): Add assertion
3654 that return_frame is not null.
3656 2007-09-17 Joel Brobecker <brobecker@adacore.com>
3658 * solib-svr4.c: Add include of "auxv.h".
3659 (enable_break): Use the AT_BASE auxiliary entry if available.
3660 * Makefile.in (solib-svr4.o): Update dependencies.
3662 2007-09-17 Joel Brobecker <brobecker@adacore.com>
3664 * NEWS: Create a new section for the next release branch.
3665 Rename the section of the current branch, now that it has
3668 2007-09-17 Jerome Guitton <guitton@adacore.com>
3670 * dwarf2loc.c (dwarf_expr_frame_base): Guard against NULL.
3671 * Makefile.in (dwarf2loc.o): Depend on gdb_assert.h.
3673 2007-09-16 Vladimir Prus <vladimir@codesourcery.com>
3675 * mi/mi-cmds.c (mi_cmds): Register -list-features.
3676 * mi/mi-cmds.h (mi_cmd_list_features): New.
3677 * mi/mi-main.c (mi_cmd_list_features): New.
3679 2007-09-11 Joel Brobecker <brobecker@adacore.com>
3681 GDB 6.7 branch created (branch timestamp: 2007-09-07 14:00 UTC)
3682 * version.in: Bump version to 6.7.50-20070911-cvs.
3684 2007-09-10 Daniel Jacobowitz <dan@codesourcery.com>
3686 * thread.c (free_thread): Do not delete the step resume breakpoint
3689 2007-09-10 Daniel Jacobowitz <dan@codesourcery.com>
3691 * arch-utils.c (gdbarch_info_fill): Also try core_bfd.
3692 * corelow.c (core_read_description): New.
3693 (init_core_ops): Set to_read_description.
3694 * gdbarch.sh: Add gdbarch_core_read_description.
3695 * mips-linux-tdep.c (mips_linux_core_read_description): New.
3696 (mips_linux_init_abi): Call set_gdbarch_core_read_description.
3697 * mips-tdep.c (mips_tdesc_gp32, mips_tdesc_gp64): New.
3698 (mips_register_g_packet_guesses): Use them.
3699 (_initialize_mips_tdep): Initialize them.
3700 * mips-tdep.h (mips_tdesc_gp32, mips_tdesc_gp64): Declare.
3701 * gdbarch.h, gdbarch.c: Regenerated.
3703 2007-09-10 Ulrich Weigand <uweigand@de.ibm.com>
3705 * infrun.c (stepping_past_breakpoint): New global variable.
3706 (stepping_past_breakpoint_ptid): Likewise.
3707 (prepare_to_proceed): Add STEP parameter. Do not check for Ctrl-C.
3708 Only switch threads if we need to single-step over a breakpoint hit
3709 in the previously selected thread. If stepping, remember previous
3710 thread to switch back to in STEPPING_PAST_BREAKPOINT[_PTID]. Call
3711 switch_to_thread instead of copying its contents.
3712 (proceed): Pass STEP to prepare_to_proceed. Always set ONEPROC if
3713 prepare_to_proceed returns true.
3714 (init_wait_for_inferior): Reset STEPPING_PAST_BREAKPOINT.
3715 (context_switch): Call switch_to_thread.
3716 (handle_inferior_event): Switch back to previous thread if requested
3717 in STEPPING_PAST_BREAKPOINT[_PTID] by prepare_to_proceed.
3718 * gdbthread.h (switch_to_thread): Add prototype.
3719 * thread.c (switch_to_thread): Make global.
3721 2007-09-07 Pierre Muller <muller@ics.u-strasbg.fr>
3723 * p-valprint.c: Fix 7 ARI reported problems.
3724 (pascal_val_print): Fix one operator at end of line issue.
3725 Use paddress function to remove use of
3726 deprecated_print_address_numeric function (2 times).
3727 Use SYMBOL_LINKAGE_NAME instead of DEPRECATED_SYMBOL_NAME.
3728 (pascal_value_print): Fix 3 operator at end of line issues.
3730 2007-09-07 Daniel Jacobowitz <dan@codesourcery.com>
3733 * arm-tdep.c (arm_in_call_stub): Delete.
3734 (arm_skip_stub): Handle from_arm and from_thumb stubs.
3736 2007-09-06 Daniel Jacobowitz <dan@codesourcery.com>
3738 * ppc-sysv-tdep.c (do_ppc_sysv_return_value): Handle other integer
3741 2007-09-04 Daniel Jacobowitz <dan@codesourcery.com>
3742 Jim Blandy <jimb@codesourcery.com>
3744 * NEWS: Update description of string changes. Mention print/s.
3745 * c-valprint.c (textual_element_type): New.
3746 (c_val_print): Use it. Do not skip address printing for pointers
3747 with a string format.
3748 (c_value_print): Doc update.
3749 * dwarf2read.c (read_array_type): Use make_vector_type.
3750 * gdbtypes.c (make_vector_type): New.
3751 (init_vector_type): Use it.
3752 (gdbtypes_post_init): Initialize builtin_true_unsigned_char.
3753 (_initialize_gdbtypes): Mark int8_t and uint8_t as TYPE_FLAG_NOTTEXT.
3754 * gdbtypes.h (struct builtin_type): Add builtin_true_unsigned_char.
3755 (TYPE_FLAG_NOTTEXT, TYPE_NOTTEXT): New.
3756 (make_vector_type): New.
3757 * printcmd.c (print_formatted): Only handle 's' and 'i' for examine.
3758 Call the language print routine for string format.
3759 (print_scalar_formatted): Call val_print for string format. Handle
3760 unsigned original types for char format.
3761 (validate_format): Do not reject string format.
3762 * stabsread.c (read_type): Use make_vector_type.
3763 * xml-tdesc.c (tdesc_start_vector): Use init_vector_type.
3765 2007-09-04 Michael Snyder <msnyder@access-company.com>
3767 * expprint.c (print_subexp_standard): Check strchr for null.
3768 * Makefile.in (expprint.o): Depend on gdb_assert.h.
3770 * gnu-v2-abi.c (gnuv2_value_rtti_type): Guard against null.
3772 * stabsread.c (patch_block_status): Guard against null.
3773 * Makefile.in (stabsread.o): Depend on gdb_assert.h.
3775 2007-09-04 Daniel Jacobowitz <dan@codesourcery.com>
3777 * printcmd.c (printf_command): Handle ptr_arg. Correct typo
3778 in internal error message.
3780 2007-09-04 Pedro Alves <pedro_alves@portugalmail.pt>
3781 Daniel Jacobowitz <dan@codesourcery.com>
3783 * infcmd.c (post_create_inferior): Update comment.
3784 (run_command_1): Always call post_create_inferior with 0 as
3787 * i386-cygwin-tdep.h: New.
3788 * i386-cygwin-tdep.c: Include "i386-cygwin-tdep.h".
3789 (win32_xfer_shared_library): Make it extern.
3791 * win32-nat.c: Include gdb_obstack.h and xml-support.h and
3793 (win32_so_ops): Delete.
3794 (get_relocated_section_addrs): Delete.
3795 (solib_symbols_add): Delete.
3796 (register_loaded_dll): Delete.
3797 (win32_make_so): New.
3798 (handle_load_dll): Use win32_make_so.
3799 (win32_free_so): Free the passed in so.
3800 (win32_relocate_section_addresses): Delete.
3801 (win32_solib_create_inferior_hook): Delete.
3802 (handle_unload_dll): Don't add PE offset here. Free so with
3803 win32_free_so instead of free_so.
3804 (win32_special_symbol_handling): Delete.
3805 (get_win32_debug_event): Remove unneeded calls. Set state to
3806 TARGET_WAITKIND_LOADED on a dll unload.
3807 (do_initial_win32_stuff): Clear cygwin_load_start and
3809 (map_code_section_args): Delete.
3810 (dll_code_sections_add): Delete.
3811 (core_section_load_dll_symbols): Delete.
3812 (win32_xfer_shared_libraries): New.
3813 (win32_current_sos): Delete.
3814 (win32_xfer_partial): New.
3815 (open_symbol_file_object): Delete.
3816 (in_dynsym_resolve_code): Delete.
3817 (init_win32_ops): Set win32_xfer_partial as to_xfer_partial member
3818 of win32_ops. Remove win32_so_ops settings. Don't set
3819 current_target_so_ops here.
3821 * Makefile.in (i386_cygwin_tdep_h): New variable.
3822 (i386-cygwin-tdep.o): Update dependencies.
3823 (win32-nat.o): Update dependencies.
3825 2007-09-04 Pedro Alves <pedro_alves@portugalmail.pt>
3826 Daniel Jacobowitz <dan@codesourcery.com>
3828 * gdbarch.sh (core_xfer_shared_libraries): New.
3830 * corelow.c (core_xfer_partial): Handle TARGET_OBJECT_LIBRARIES.
3832 * gdb_obstack.h (obstack_grow_str, obstack_grow_str0): New.
3834 * xml-support.c (gdb_xml_parse): Debug output tweaks.
3835 (xml_escape_text): New.
3836 * xml-support.h (xml_escape_text): Declare.
3838 * config/i386/cygwin.mh (NATDEPFILES): Move corelow.o to ...
3839 * config/i386/cygwin.mt (TDEPFILES): ... here.
3841 * win32-nat.c: (fetch_elf_core_registers): Delete.
3842 (win32_elf_core_fn): Delete.
3843 (_initialize_core_win32): Delete.
3845 * i386-cygwin-tdep.c: Include "regset.h", "gdb_objstack.h",
3846 "xml-support.h" and "gdbcore.h".
3847 (i386_win32_gregset_reg_offset): New.
3848 (I386_WIN32_SIZEOF_GREGSET): New.
3849 (i386_win32_regset_from_core_section): New.
3850 (win32_xfer_shared_library): New.
3851 (struct cpms_data): New.
3852 (core_process_module_section): New.
3853 (win32_core_xfer_shared_libraries): New.
3854 (i386_cygwin_skip_trampoline_code): Register gregset_reg_offset,
3855 gregset_num_regs, sizeof_gregset members of tdep. Register
3856 regset_from_core_section and core_xfer_shared_libraries callbacks.
3858 * Makefile.in (i386-cygwin-tdep.o): Update dependencies.
3859 * gdbarch.h, gdbarch.c: Regenerate.
3861 2007-09-03 Daniel Jacobowitz <dan@codesourcery.com>
3863 * corelow.c (core_xfer_partial): Pass writebuf to
3864 deprecated_xfer_memory in TARGET_OBJECT_MEMORY write case.
3866 2007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
3868 * arm-tdep.h (arm_skip_stub): Declare.
3869 * arm-wince-tdep.c: Don't include "solib-svr4.h". Include
3871 (arm_pe_skip_trampoline_code): New function.
3872 (arm_wince_init_abi): Register arm_pe_skip_trampoline_code as
3873 gdbarch_skip_trampoline_code callback.
3874 * Makefile.in (arm-wince-tdep.o): Update dependencies.
3876 2007-09-03 Daniel Jacobowitz <dan@codesourcery.com>
3878 * MAINTAINERS: Move Fred Fish to Past Maintainers.
3880 2007-09-03 Daniel Jacobowitz <dan@codesourcery.com>
3882 * configure.ac: Add --with-expat.
3883 * configure: Regenerated.
3885 2007-09-03 Andreas Schwab <schwab@suse.de>
3887 * configure.ac: Accept --with-system-readline.
3888 (READLINE, READLINE_DEPS, READLINE_CFLAGS): Define and substitute.
3889 * configure: Regenerate.
3890 * Makefile.in (READLINE, READLINE_DEPS, READLINE_CFLAGS): Use
3892 (CDEPS): Use $(READLINE_DEPS) instead of $(READLINE).
3894 2007-09-03 Maxim Grigoriev <maxim2405@gmail.com>
3895 Daniel Jacobowitz <dan@codesourcery.com>
3897 * mi-main.c (mi_load_progress): Handle MI2 and MI3 interpreters.
3899 2007-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3901 * top.c (print_gdb_version): Fixed a string end-of-line compiler error.
3903 2007-09-02 Daniel Jacobowitz <dan@codesourcery.com>
3905 * top.c (print_gdb_version): Update for GPL version 3.
3907 2007-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3909 * NEWS: Mention the build-id .debug files verification.
3911 2007-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3913 * linux-nat.c (linux_nat_make_corefile_notes): Fixed a buffer overflow.
3915 2007-09-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3917 * Makefile.in (symfile.o): Update dependencies.
3918 * symfile.c (symbol_file_add_with_addrs_or_offsets): Initialize the
3919 DEBUGFILE variable. FIND_SEPARATE_DEBUG_FILE called only if !PSYMTABS.
3920 (struct build_id): New structure.
3921 (build_id_bfd_get, build_id_verify, build_id_to_debug_filename): New.
3922 (find_separate_debug_file): New variable BUILD_ID.
3923 Call BUILD_ID_BFD_GET with BUILD_ID_TO_DEBUG_FILENAME as the first try.
3925 2007-08-31 Vladimir Prus <vladimir@codesourcery.com>
3927 * varobj.c (struct varobj): Fix comment
3928 for the type member not to lie when it can be
3931 2007-08-31 Vladimir Prus <vladimir@codesourcery.com>
3933 Implement -var-info-path-expression.
3935 * mi/mi-cmds.h (mi_cmd_var_info_path_expression):
3937 * mi/mi-cmds.c (mi_cmds): Register var-info-path-expression.
3938 * mi/mi-cmd-var.c (mi_cmd_var_info_path_expression): New.
3939 * varobj.c (struct varobj): New field 'path_expr'.
3940 (c_path_expr_of_child, cplus_path_expr_of_child)
3941 (java_path_expr_of_child): New.
3942 (struct language_specific): New field path_expr_of_child.
3943 (varobj_create): Initialize the path_expr field.
3944 (varobj_get_path_expr): New.
3945 (new_variable): Initialize the path_expr field.
3946 (free_variable): Free the path_expr field.
3947 (adjust_value_for_children_access): New parameter
3949 (c_number_of_children): Adjust.
3950 (c_describe_child): New parameter CFULL_EXPRESSION.
3951 Compute full expression.
3952 (c_value_of_child, c_type_of_child): Adjust.
3953 (cplus_number_of_children): Adjust.
3954 (cplus_describe_child): New parameter CFULL_EXPRESSION.
3955 Compute full expression.
3956 (cplus_name_of_child, cplus_value_of_child)
3957 (cplus_type_of_child): Adjust.
3958 * varobj.h (varobj_get_path_expr): Declare.
3960 2007-08-31 Vladimir Prus <vladimir@codesourcery.com>
3962 * mi/mi-cmd-var.c (print_varobj): If a varobj
3963 type is NULL, don't try to print it.
3965 2007-08-30 Alan Modra <amodra@bigpond.net.au>
3967 * ppc-linux-nat.c (right_fill_reg): Delete.
3968 (supply_gregset): Use ppc_supply_gregset.
3969 (supply_fpregset): Use ppc_supply_fpregset.
3970 (fill_gregset): Use ppc_collect_gregset.
3971 (fill_fpregset): Use ppc_collect_fpregset.
3972 * ppc-linux-tdep.c (PPC_LINUX_PT_*): Don't define.
3973 (right_supply_register, ppc_linux_supply_gregset): Delete.
3974 (ppc32_linux_supply_gregset, ppc64_linux_supply_gregset): Delete.
3975 (ppc_linux_supply_fpregset): Delete.
3976 (ppc_linux_collect_gregset): New function.
3977 (ppc32_linux_reg_offsets, ppc64_linux_reg_offsets): New.
3978 (ppc32_linux_gregset, ppc64_linux_gregset): Update to use reg offsets,
3979 ppc_linux_supply_gregset, and ppc_collect_gregset.
3980 (ppc_linux_fpregset): Rename to ppc32_linux_fpregset and update.
3981 (ppc_linux_gregset, ppc_linux_fpregset): New functions.
3982 (ppc_linux_regset_from_core_section): Update.
3983 * ppc-tdep.h (ppc_linux_gregset, ppc_linux_fpregset): Declare.
3984 (ppc_linux_supply_gregset, ppc_linux_supply_fpregset): Delete.
3985 (struct ppc_reg_offsets): Add gpr_size, xr_size, fpscr_size fields.
3986 * ppcobsd-tdep.c (ppcobsd_supply_gregset): Delete FIXME and assert.
3987 (ppcobsd_collect_gregset): Likewise.
3988 (_initialize_ppcnbsd_tdep): Init gpr_size, xr_size, fpscr_size.
3989 * ppcnbsd-tdep.c (_initialize_ppcobsd_tdep): Likewise.
3990 * ppcobsd-nat.c (_initialize_ppcobsd_nat): Likewise.
3991 * rs6000-aix-tdep.c (rs6000_aix32_reg_offsets): Likewise.
3992 (rs6000_aix64_reg_offsets): Likewise.
3993 (rs6000_aix_supply_regset): Call ppc_supply_fpregset without testing
3994 ppc_floating_point_unit_p.
3995 (rs6000_aix_collect_regset): Similarly.
3996 * rs6000-tdep.c (ppc_supply_reg): Add regsize param. Adjust offset
3997 when regsize is larger than regcache register size.
3998 (ppc_collect_reg): Similarly zero pad when regsize is larger than
3999 regcache register size.
4000 (ppc_greg_offset): New function, split out from..
4001 (ppc_supply_gregset): ..here. Separate code handling all regs from
4002 single reg case. Correct xer offset.
4003 (ppc_fpreg_offset): New function, split out from..
4004 (ppc_supply_fpregset): ..here. Separate code handling all regs from
4006 (ppc_collect_gregset, ppc_collect_fpregset): Likewise.
4007 (ppc_supply_fpregset, ppc_collect_fpregset): Don't assert we have
4008 a fp unit, instead return if no fp.
4010 2007-08-29 Jim Blandy <jimb@codesourcery.com>
4012 * breakpoint.c (watch_command_1): Remove '#ifdef HPUXHPPA' block;
4013 this code has not been compiled for two years.
4015 2007-08-29 Michael Snyder <msnyder@access-company.com>
4017 * event-top.c (gdb_readline2): Return after EOF.
4019 2007-08-29 Joel Brobecker <brobecker@adacore.com>
4021 * symtab.c: Remove a function that has been commented out 3 years ago.
4023 2007-08-29 Randolph Chung <tausq@debian.org>
4025 * hppa-tdep.c (hppa32_cannot_fetch_register)
4026 (hppa64_cannot_fetch_register): New functions.
4027 (hppa_gdbarch_init): Set cannot_fetch_register appropriately.
4028 * hppa-tdep.h (hppa_regnum): Add HPPA_CR26_REGNUM.
4030 2007-08-28 Michael Snyder <msnyder@access-company.com>
4032 * mi/mi-cmd-var.c (mi_print_value_p): No longer necessary to
4033 check for null before calling check_typedef.
4035 * NEWS: Mention Coverity bug fixes.
4037 2007-08-27 Markus Deuling <deuling@de.ibm.com>
4039 * spu-tdep.c (spu_pointer_to_address): New function.
4040 (spu_integer_to_address): Likewise.
4041 (spu_gdbarch_init): Add spu_pointer_to_address and
4042 spu_integer_to_address to gdbarch.
4044 2007-08-26 Pedro Alves <pedro_alves@portugalmail.pt>
4046 * arm-wince-tdep.c (ARM_WINCE_JB_PC): Change to 10.
4048 2007-08-23 Joel Brobecker <brobecker@adacore.com>
4050 * Makefile.in (copying.c): Use the top-level COPYING3 as the file
4051 that contains the GDB license.
4052 * copying.awk: Adjust to the GPLv3 wording.
4053 * copying.c: Regenerate.
4055 2007-08-23 Joel Brobecker <brobecker@adacore.com>
4057 * copying.awk: Protoization, and i18n markup.
4059 2007-08-23 Joel Brobecker <brobecker@adacore.com>
4061 * config/djgpp/djconfig.sh: Switch license to GPLv3.
4062 * copyright.sh: Likewise.
4063 * gdb-events.sh: Likewise.
4064 * gdb_gcore.sh: Likewise.
4065 * gdb_mbuild.sh: Likewise.
4066 * gdbarch.sh: Likewise.
4067 * observer.sh: Likewise.
4068 * features/feature_to_c.sh: Likewise.
4069 * regformats/regdat.sh: Likewise.
4071 2007-08-23 Joel Brobecker <brobecker@adacore.com>
4073 Switch the license of all .c files to GPLv3.
4074 Switch the license of all .h files to GPLv3.
4075 Switch the license of all .cc files to GPLv3.
4077 2007-08-23 Joel Brobecker <brobecker@adacore.com>
4079 * configure.ac: Switch license to GPLv3.
4081 2007-08-22 Daniel Jacobowitz <dan@codesourcery.com>
4083 * mips-tdep.c (mips_gdbarch_init): Use Tag_GNU_MIPS_ABI_FP to
4084 determine the file's FPU type.
4086 2007-08-22 Daniel Jacobowitz <dan@codesourcery.com>
4088 * mips-tdep.c (mips_n32n64_fp_arg_chunk_p): New.
4089 (mips_n32n64_push_dummy_call): Always increment float_argreg along
4090 with argreg. Use mips_n32n64_fp_arg_chunk_p.
4092 2007-08-22 Daniel Jacobowitz <dan@codesourcery.com>
4094 * solib-svr4.c (scan_dyntag): Only read target memory when necessary.
4096 (elf_locate_base): Look for DT_MIPS_RLD_MAP first. Expand comments.
4097 (elf_lookup_lib_symbol): Fix formatting.
4099 2007-08-21 Michael Snyder <msnyder@access-company.com>
4101 * dbxread.c (read_dbx_symtab): Guard null deref.
4104 * valops.c (find_overload_match): Guard against NULL.
4106 2007-08-21 Daniel Jacobowitz <dan@codesourcery.com>
4108 * MAINTAINERS (Patch Champions): Remove self.
4110 2007-08-21 Chris Smith <chris.smith@st.com>
4112 * cli/cli-script.c (read_command_lines): Call dont_repeat for each
4115 2007-08-18 Michael Snyder <msnyder@access-company.com>
4117 * stabsread.c (dbx_lookup_type): Memory leak.
4119 * event-loop.c (delete_async_signal_handler): Move pointer null
4120 test to before pointer dereference.
4122 * ui-out.c (append_header_to_list): Possible cut and paste error.
4124 * MAINTAINERS: white space tweak.
4126 2007-08-17 Michael Snyder <msnyder@access-company.com>
4128 * stack.c (print_frame): Memory leak.
4130 * completer.c (filename_completer): Avoid memory leak.
4131 Remove unnecessary nested block.
4133 * c-exp.y (parse_number): Memory leak.
4135 * completer.c (location_completer): Must free 'fn_list', except
4136 in the one case where it is returned (as 'list').
4138 * varobj.c (value_of_root): Memory leak.
4140 * gdbtypes.h (virtual_base_list): Remove export decl.
4141 * gdbtypes.c (virtual_base_list): Make static. Not called outside.
4142 (virtual_base_index): Memory leak.
4143 (virtual_base_index_skip_primaries): Ditto.
4145 2007-08-17 Maxim Grigoriev <maxim2405@gmail.com>
4147 * xtensa-tdep.c (ARG_NOF, ARG_1ST, PS_WOE, PS_EXC, C0_MAXOPDS)
4148 (C0_NREGS, C0_CLESV, C0_SP, C0_FP, C0_RA, C0_ARGS, C0_NARGS)
4149 (C0_CONST, C0_INEXP, C0_NOSTK): New macros.
4150 (xtensa_read_register): New function.
4151 (xtensa_windowed_frame_cache, xtensa_call0_frame_cache, xtensa_c0reg)
4152 (xtensa_insn_kind): New types.
4153 (xtensa_frame_cache, xtensa_alloc_frame_cache, xtensa_frame_cache)
4154 (xtensa_frame_prev_register, xtensa_return_value, xtensa_skip_prologue)
4155 (xtensa_verify_config, xtensa_pseudo_register_read)
4156 (xtensa_pseudo_register_write, xtensa_extract_return_value)
4157 (xtensa_store_return_value)
4158 (xtensa_push_dummy_call): Extended to support Xtensa Call0 ABI.
4159 (windowing_enabled, extract_call_winsize, xtensa_unwind_dummy_id)
4160 (xtensa_frame_this_id, xtensa_frame_prev_register)
4161 (xtensa_register_type, xtensa_reg_to_regnum): Cosmetic changes.
4162 (call0_frame_cache, call0_frame_get_reg_at_entry)
4163 (call0_classify_opcode, call0_track_op)
4164 (call0_analyze_prologue, call0_frame_cache): New functions.
4166 2007-08-17 Vladimir Prus <vladimir@codesourcery.com>
4168 * breakpoint.c (bpstat_free): New.
4169 (bpstat_clear): Use bpstat_free.
4170 (delete_breakpoint): Document why we cannot
4171 remove bpstats from stop_bpstat.
4172 * breakpoint.h (bpstat_free): Declare.
4174 2007-08-16 Michael Snyder <msnyder@access-company.com>
4176 * event-loop.c (gdb_wait_for_event): Move statement into "if" block.
4178 2007-08-15 Paul Hilfinger <hilfinger@adacore.com>
4179 Joel Brobecker <brobecker@adacore.com>
4181 * ada-lang.c (resolve_subexp): Correct arity of binary operators.
4183 2007-08-15 Paul Hilfinger <hilfinger@adacore.com>
4184 Joel Brobecker <brobecker@adacore.com>
4186 * ada-lang.c (possible_user_operator_p): Alternative fix to last
4187 checkin guarding against NULL.
4189 2007-08-14 Michael Snyder <msnyder@access-company.com>
4191 * tui-command.c, tui-data.c, tui-disasm.c, tui-file.c, tui-io.c,
4192 tui-layout.c, tui-regs.c, tui-source.c, tui-win.c, tui-windata.c,
4193 tui-wingeneral.c, tui-winsource.c: Coding standard, && and ||
4194 go at beginning of new line.
4196 * tui-data.c, tui-data.h, tui-disasm.c, tui-disasm.h, tui-hooks.c,
4197 tui-io.c, tui-layout.c, tui-layout.h, tui-out.c, tui-regs.c,
4198 tui-source.c, tui-source.h, tui-stack.c, tui-win.c, tui-win.h,
4199 tui-windata.c, tui-windata.h, tui-wingeneral.c, tui-winsource.c,
4200 tui-winsource.h, tui.c, tui.h: Function declarations and
4201 definitions, wrap long lines.
4203 * tui-command.c, tui-data.c, tui-disasm.c, tui-layout.c,
4204 tui-regs.c, tui-win.c, tui-windata.c, tui-winsource.c, tui.c:
4205 Reformat block comments to GNU standard.
4207 * tui-command.c, tui-data.c, tui-data.h, tui-disasm.c, tui-file.c,
4208 tui-hooks.c, tui-interp.c, tui-io.c, tui-layout.c, tui-out.c,
4209 tui-regs.c, tui-regs.h, tui-source.c, tui-stack.c, tui-win.c,
4210 tui-windata.c, tui-wingeneral.c, tui-winsource.c, tui-winsource.h,
4211 tui.c, tui.h: Comment reformatting to coding standard (capitals,
4212 spaces after periods, etc).
4214 * tui-data.c, tui-data.h, tui-disasm.c, tui-hooks.c, tui-layout.c,
4215 tui-regs.c, tui-source.c, tui-stack.c, tui-win.c, tui-windata.c,
4216 tui-wingeneral.c, tui-wingeneral.h, tui-winsource.c, tui.c,
4217 tui-winsource.h: Whitespace changes, fix pointer declarations
4220 2007-08-14 Joel Brobecker <brobecker@adacore.com>
4221 Michael Snyder <msnyder@access-company.com>
4223 * ada-lang.c (field_alignment): Guard against NULL.
4225 2007-08-14 Joel Brobecker <brobecker@adacore.com>
4227 * MAINTAINERS (Global Maintainers): Add self.
4229 2007-08-14 Michael Snyder <msnyder@access-company.com>
4231 * mi/mi-interp.c (mi_cmd_interpreter_exec): Dead code, dead variable.
4233 * ada-lang.c (possible_user_operator_p): Guard against NULL.
4235 * varobj.c (cplus_describe_child): Guard against null.
4236 Use "NULL" instead of "0" to initialize pointers.
4238 2007-08-14 Daniel Jacobowitz <dan@codesourcery.com>
4240 * arm-tdep.c (arm_gdbarch_init): Allow unknown ABI and FPU settings
4241 to match any gdbarch with matching OSABI. Set default ABI and FPU
4242 after running the OSABI handler.
4244 2007-08-14 Daniel Jacobowitz <dan@codesourcery.com>
4246 * config/i386/linux.mh (NATDEPFILES): Move corelow.o from here...
4247 * config/i386/linux.mt (TDEPFILES): ...to here.
4249 2007-08-14 Vladimir Prus <vladimir@codesourcery.com>
4251 * breakpoint.c (disable_breakpoints_in_shlibs): Remove
4252 the 'silent' parameter and code to implement that.
4253 * breakpoint.h (disable_breakpoints_in_shlibs): Adjust
4255 * win32-nat.c: Adjust.
4258 2007-08-14 Vladimir Prus <vladimir@codesourcery.com>
4260 * breakpoint.c (update_breakpoints_after_exec): Don't
4261 set address to zero.
4263 2007-08-13 Michael Snyder <msnyder@access-company.com>
4265 * valops.c: Whitespace clean-up.
4267 * tui/tui-winsource.c (tui_alloc_source_buffer): Clean up allocation.
4269 * event-top.c (command_line_handler): Memory leak.
4271 * mi/mi-cmd-var.c (mi_cmd_var_set_format): Memory leak.
4272 No need to make copy.
4274 * source.c (find_source_lines): Require symtab 's'.
4276 2007-08-11 Michael Snyder <msnyder@access-company.com>
4278 * completer.c: Spelling fix in comments.
4280 2007-08-10 Michael Snyder <msnyder@access-company.com>
4282 * gdbtypes.c: Coding standard cleanup.
4283 * gdbtypes.c: Comment/whitespace cleanup.
4285 * stabsread.c (read_huge_number): Attempt to compute value before
4286 values that it depends on.
4288 * linespec.c (decode_dollar): Dead code, ptr can't be non-null.
4289 (decode_objc): Use "NULL" instead of 0.
4290 (find_method): Ditto.
4291 (decode_all_digits): Ditto.
4292 (decode_dollar): Ditto.
4294 * mi/mi-main.c (mi_cmd_data_evaluate_expression): Resource leak.
4296 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Memory leak.
4298 * solib-svr4.c (enable_break): Don't free tmp_pathname until
4301 * completer.c: Comment/whitespace cleanup.
4303 2007-08-10 Joel Brobecker <brobecker@adacore.com>
4305 * Makefile.in (i386nbsd-nat.o): Add missing dependency.
4307 2007-08-10 Maxim Grigoriev <maxim2405@gmail.com>
4309 * remote-fileio.c (remote_fileio_resize_fd_map): Initialize newly
4310 allocated file descriptors.
4312 2007-08-10 Joel Brobecker <brobecker@adacore.com>
4314 * Makefile.in: Minor cleanup throughout; add some missing variables,
4315 add some missing rules, remove some rules that are no longer needed,
4316 and fix the dependencies in several rules.
4318 2007-08-10 Ludovic Courtès <ludo@gnu.org>
4320 * Makefile.in (SFILES): Add scm-{exp,lang,valprint}.c.
4321 (scm_lang_h, scm_tags_h): New.
4322 (COMMON_OBS): Add scm-{exp,lang,valprint}.o.
4323 (scm-exp.o, scm-lang.o, scm-valprint.o): New targets.
4324 * defs.h (enum language): Add `language_scm'.
4326 * MAINTAINERS: Add Emacs local variables to use UTF-8 upon
4329 2007-08-09 Ludovic Courtès <ludo@gnu.org>
4331 * MAINTAINERS (Write After Approval): Add myself.
4333 2007-08-09 Michael Snyder <msnyder@access-company.com>
4335 * solib.c (solib_open): Memory leak -- openp returns xmalloc buffer.
4337 2007-08-09 Joel Brobecker <brobecker@adacore.com>
4339 * solib-som.c (som_relocate_section_addresses): Stop saving
4340 the $CODE$ section in the so_list structure.
4342 2007-08-08 Maxim Grigoriev <maxim2405@gmail.com>
4344 * xtensa-tdep.h (XTENSA_MAX_COPROCESSOR): New.
4345 (xtensa_register_group_t): Add entries for coprocessors.
4346 * xtensa-tdep.c (xtensa_init_reggroups): New register groups.
4347 (xtensa_add_reggroups): Likewise.
4348 (xtensa_register_reggroup_p): Likewise.
4349 (xtensa_coprocessor_register_group): New function.
4352 2007-08-08 Jan Kratochvil <jan.kratochvil@redhat.com>
4354 * serial.c (serial_open): Fix the OPEN parameter macro expansion.
4356 2007-08-08 Michael Snyder <msnyder@access-company.com>
4358 * target.c (target_read_string): Guard against null.
4360 * varobj.c (value_of_root): Move alloc after return to avoid leak.
4362 * tui/tui-layout.c (tui_set_layout): Dead code, dead variable.
4363 (tui_set_layout_for_display_command): Mem leak.
4365 * top.c (command_line_input): Memory leak.
4367 * solib-svr4.c (open_symbol_file_object): Memory leak.
4368 (svr4_current_sos): Ditto.
4369 (enable_break): Ditto.
4371 * cp-valprint.c (cp_print_hpacc_virtual_table_entries): Memory leak.
4373 * dwarf2read.c (add_partial_symbol): Memory leak.
4375 2007-08-06 Michael Snyder <msnyder@access-company.com>
4377 * ada-lang.c (desc_bounds): Comparison of function address to NULL.
4379 2007-08-05 Jim Blandy <jimb@codesourcery.com>
4381 * macroexp.c (init_buffer): Remove testing code that overrides the
4382 caller's length guess.
4383 (gather_arguments): Use a larger initial size, now that the vector
4384 growth code has been exercised.
4386 2007-08-05 Pedro Alves <pedro_alves@portugalmail.pt>
4388 * solib-target.c (solib_target_relocate_section_addresses): Add
4389 orig_delta to addr_high.
4391 2007-08-04 Michael Snyder <msnyder@access-company.com>
4393 * remote-fileio.c (remote_fileio_func_write): Memory leak.
4395 * breakpoint.c (print_one_breakpoint): Off by one error.
4397 * tracepoint.c (add_register): Off by one error.
4398 (stringify_collection_list): Free malloc buffer.
4400 2007-08-03 Michael Snyder <msnyder@access-company.com>
4402 * mi-cmd-var.c (mi_cmd_var_delete): Remove unused variable,
4403 stop memory leak, straighten out cleanups.
4405 * jv-lang.c (java_link_class_type): Guard against NULL.
4407 2007-08-02 Michael Snyder <msnyder@access-company.com>
4409 * gdbtypes.c (create_set_type): Test should only be done within
4410 the preceeding if block. Otherwise, variable is uninitialized.
4412 * gdbtypes.c (check_typedef): Guard NULL.
4414 2007-08-01 Michael Snyder <msnyder@access-company.com>
4416 * cli/cli-decode.c (lookup_cmd): Check for null earlier, to
4417 avoid dereference in lookup_cmd_1.
4419 * tui/tui-data.c (tui_alloc_content): Move assign out of if,
4420 clean up long lines.
4421 (tui_alloc_generic_win_info): Tidy by using XMALLOC macro.
4422 (tui_alloc_win_info): Ditto.
4423 (tui_add_content_elements): Ditto.
4424 * tui/tui-file.c (tui_file_magic): Ditto.
4426 2007-07-31 Michael Snyder <msnyder@access-company.com>
4428 * breakpoint.c (breakpoint_init_inferior): Add 'else' to 'if'.
4429 True and false paths are mutually exclusive.
4431 * event-top.c (command_line_handler): Add pedantic return.
4433 * f-valprint.c (info_common_command): Bail out to prevent null
4434 pointer deref. Break up a long line.
4436 * exec.c (xfer_memory): Remove redundant condition from 'if'.
4438 * symfile.c (reread_separate_symbols): Free xmalloced memory.
4440 * printcmd.c (build_address_symbolic): Remove dead code and dead
4443 2007-07-31 Daniel Jacobowitz <dan@codesourcery.com>
4445 * linespec.c (minsym_found): Advance to the next line if possible.
4447 2007-07-31 Pedro Alves <pedro_alves@portugalmail.pt>
4449 * arm-wince-tdep.c (arm_wince_init_abi): Remove svr4 related call.
4450 * config/arm/wince.mt (TDEPFILES): Remove solib-legacy.o and
4451 solib-svr4.o, and add solib-target.o
4453 2007-07-27 Michael Snyder <msnyder@access-company.com>
4455 * tui/tui-data.c (tui_alloc_generic_win_info): Wrong arg for sizeof.
4457 2007-07-26 Maciej W. Rozycki <macro@linux-mips.org>
4459 * MAINTAINERS (Write After Approval): Add myself.
4461 2007-07-26 Maciej W. Rozycki <macro@mips.com>
4463 * Makefile.in (MAKEHTMLFLAGS): Also search the current directory
4466 2007-07-25 Maciej W. Rozycki <macro@mips.com>
4468 * Makefile.in (MAKEHTMLFLAGS): Remove "-glossary".
4470 2007-07-24 Michael Snyder <msnyder@access-company.com>
4472 * solib-svr4.c (svr4_fetch_objfile_link_map): Null pointer check of
4473 'buffer' must cover both branches that call strcmp (Coverity).
4475 * stack.c (print_frame_args): Check return value of lookup_symbol.
4477 * ax-gdb.c (find_field): Guard against null ptr.
4479 2007-07-24 Ulrich Weigand <uweigand@de.ibm.com>
4481 * regformats/reg-spu.dat: Fix order of npc, id registers.
4483 2007-07-24 Ulrich Weigand <uweigand@de.ibm.com>
4485 * target.c (memory_xfer_partial): Accesses to unmapped overlay
4486 sections should always go to the executable file.
4488 2004-07-20 Chris Dearman <chris@mips.com>
4490 * mips-tdep.c (heuristic_proc_start): Add more MIPS16 function
4491 prologue instructions.
4493 2007-07-20 Maciej W. Rozycki <macro@mips.com>
4495 * mips-tdep.c (mips_next_pc): Use is_mips16_addr() instead of
4498 2007-07-20 Chris Dearman <chris@mips.com>
4499 Maciej W. Rozycki <macro@mips.com>
4501 * mips-tdep.c (fetch_mips_16): Fix typos and reformat the
4504 2007-07-17 Pedro Alves <pedro_alves@portugalmail.pt>
4505 Daniel Jacobowitz <dan@codesourcery.com>
4507 * config/i386/cygwin.mt (TDEPFILES): Add solib-target.o.
4508 * coff-pe-read.c (read_pe_exported_syms): Delete verbose
4510 * NEWS: Mention gdbserver DLL support.
4512 2007-07-17 Daniel Jacobowitz <dan@codesourcery.com>
4514 * dwarf2read.c (dwarf_decode_lines): Detect address size mismatches.
4516 2007-07-16 H.J. Lu <hongjiu.lu@intel.com>
4518 * i386-linux-nat.c (fetch_regs): Work around gcc 3.4 alias
4521 2007-07-13 Kevin Buettner <kevinb@redhat.com>
4523 * mep-tdep.c (mep_analyze_prologue): Update comment for BRA
4526 2007-07-12 Kevin Buettner <kevinb@redhat.com>
4528 * mep-tdep.c (IS_BRA, BRA_DISP): New macros.
4529 (mep_analyze_prologue): Add case for BRA instruction.
4531 2007-07-12 Ulrich Weigand <uweigand@de.ibm.com>
4533 * solib-svr4.c (LM_ADDR_CHECK): Relax prelink recognition heuristic.
4535 2007-07-10 Nick Roberts <nickrob@snap.net.nz>
4537 * breakpoint.c: Include "top.h".
4538 (breakpoint_1): Don't set convenience variable $_ if server prefix
4540 (_initialize_breakpoint): Describe this behaviour in command help.
4542 2007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
4544 * solib-target.c (library_list_start_segment): Cast address to
4547 2007-07-06 Mark Kettenis <kettenis@gnu.org>
4549 * bsd-uthread.c (bsd_uthread_wait): Don't try to fetch thread IDs
4550 for terminated processes.
4552 2007-07-05 Michael Snyder <msnyder@access-company.com>
4554 * event-top.c (cli_command_loop): Prompt string can (and should)
4555 be freed after call to readline (Coverity). Also move local var
4556 declarations into block where they are used.
4558 * tui/tui-interp.c (tui_command_loop): Prompt string can (and
4559 should) be freed after call to readline (Coverity). Also move
4560 local var declarations into block where they are used.
4562 2007-07-03 Andreas Schwab <schwab@suse.de>
4564 * linux-nat.c (linux_nat_info_proc_cmd): Fix parsing of columns in
4567 2007-07-03 Paul Gilliam <pgilliam@us.ibm.com>
4568 Thiago Bauermann <bauerman@br.ibm.com>
4569 Joseph S. Myers <joseph@codesourcery.com>
4570 Daniel Jacobowitz <dan@codesourcery.com>
4572 * remote.c (remote_check_symbols): Use
4573 gdbarch_convert_from_func_ptr_addr.
4574 * infcall.c (find_function_addr): Handle function descriptors
4575 without debugging information.
4576 * ppc-linux-tdep.c (ppc_linux_convert_from_func_ptr_addr): Renamed
4577 from ppc64_linux_convert_from_func_ptr_addr. Handle -msecure-plt.
4578 (ppc_linux_init_abi): Always set convert_from_func_ptr_addr.
4579 * solib-svr4.c (solib_break_names): Remove "._dl_debug_state".
4580 (bfd_lookup_symbol): Do not take a SECT_FLAGS argument. Always
4581 allow SEC_CODE and SEC_DATA.
4582 (enable_break): Update calls. Pass current_target to solib_add.
4583 Use gdbarch_convert_from_func_ptr_addr.
4585 2007-07-03 Ilko Iliev <iliev@ronetix.at>
4586 Daniel Jacobowitz <dan@codesourcery.com>
4588 * symfile.c (print_transfer_performance): Avoid integer overflow.
4591 2007-07-03 Markus Deuling <deuling@de.ibm.com>
4593 * cp-namespace.c (lookup_symbol_file): Add block to
4594 lookup_symbol_global call.
4595 * Makefile.in (solist_h): Add dependency on symtab header.
4596 (symtab.o): Add dependency on solist header.
4597 * solib.c (solib_global_lookup): New function.
4598 * solib-svr4.c (scan_dyntag): Likewise.
4599 (elf_locate_base): Call helper routine scan_dyntag.
4600 (elf_lookup_lib_symbol): New function.
4601 (_initialize_svr4_solib): Add elf_lookup_lib_symbol to svr4_so_ops.
4602 * solist.h (symtab.h): New include.
4603 (struct target_so_ops): New member lookup_lib_global_symbol.
4604 (solib_global_lookup): New prototype.
4605 * symtab.c: New include solist.h.
4606 (lookup_objfile_from_block): New function.
4607 (lookup_global_symbol_from_objfile): New function.
4608 (basic_lookup_symbol_nonlocal): Add block to lookup_symbol_global call.
4609 (lookup_symbol_global): Call library-specific lookup procedure.
4610 * symtab.h (lookup_global_symbol_from_objfile): New prototype.
4612 * NEWS: Document framework.
4614 2007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
4616 * target-descriptions.c (tdesc_create_reg): Do not set reg->type
4619 * cli/cli-script.c (build_command_line): Update NULL check.
4621 2007-07-02 Michael Snyder <msnyder@access-company.com>
4623 * p-exp.y (yylex): Memory leak, 'uptokstart' must be freed (Coverity).
4625 2007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
4627 * Makefile.in (XMLFILES): Add library-list.dtd.
4628 (ALLDEPFILES): Add solib-target.o.
4629 (solib-target.o): New rule.
4630 * remote.c (PACKET_qXfer_libraries): New constant.
4631 (remote_protocol_features): Add qXfer:libraries:read.
4632 (remote_wait): Recognize library stop replies.
4633 (remote_async_wait): Likewise. Fix typo.
4634 (remote_xfer_partial): Handle TARGET_OBJECT_LIBRARIES.
4635 (init_remote_async_ops): Fix typo.
4636 (_initialize_remote): Register "set remote library-info-packet".
4637 * solib-som.c (som_current_sos): Set addr_low and addr_high.
4638 * solib-target.c: New file.
4639 * solib.c (solib_map_sections): Use addr_low and addr_high instead
4641 (info_sharedlibrary_command): Likewise.
4642 (solib_add_library, solib_remove_library): New.
4643 * solist.h (struct so_list): Replace textsection with addr_low and
4645 * target.h (enum target_object): Add TARGET_OBJECT_LIBRARIES.
4646 * NEWS: Describe new qXfer:libraries:read and shared library
4648 * features/library-list.dtd: New.
4650 2007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
4652 * infrun.c (inferior_ignoring_startup_exec_events): Delete.
4653 (start_remote): Use STOP_QUIETLY_REMOTE.
4654 (handle_inferior_event): Do not condition TARGET_WAITKIND_LOADED
4655 support on a SOLIB_ADD definition. Update breakpoints_inserted.
4656 Update to match shared library event breakpoint support. Only
4657 resume if appropriate. Handle STOP_QUIETLY_REMOTE.
4658 (normal_stop): Handle TARGET_WAITKIND_LOADED.
4659 * fork-child.c (startup_inferior): Do not set
4660 inferior_ignoring_startup_exec_events
4661 * inferior.h (inferior_ignoring_startup_exec_events): Delete
4663 (enum stop_kind): Improve documentation. Add STOP_QUIETLY_REMOTE.
4665 2007-07-02 Markus Deuling <deuling@de.ibm.com>
4667 * breakpoint.c (insert_bp_location): Remove dead code
4668 (DISABLE_UNSETTABLE_BREAK).
4669 (disable_breakpoints_in_shlibs)
4670 (disable_breakpoints_in_unloaded_shlib): Likewise (comment).
4672 2007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
4674 * breakpoint.c (reattach_breakpoints): Do not use remove_breakpoint.
4675 Call insert_bp_location.
4677 2007-07-01 H.J. Lu <hongjiu.lu@intel.com>
4679 * core-regset.c (fetch_core_registers): Work around gcc 3.4
4682 2007-07-01 Daniel Jacobowitz <dan@codesourcery.com>
4684 * minsyms.c (lookup_minimal_symbol_by_pc_section): Search fewer
4687 2007-07-01 Daniel Jacobowitz <dan@codesourcery.com>
4689 * top.c (gdb_readline_wrapper_line): Call rl_callback_handler_remove.
4690 (struct gdb_readline_wrapper_cleanup): Remove prompt_orig.
4691 (gdb_readline_wrapper_cleanup): Do not reset the prompt.
4692 (gdb_readline_wrapper): Do not save the prompt. Pass our prompt
4693 to display_gdb_prompt.
4695 2007-07-01 Daniel Jacobowitz <dan@codesourcery.com>
4698 * target.c (memory_xfer_partial): Do not continue past targets with
4701 2007-06-30 Andreas Schwab <schwab@suse.de>
4703 * m68k-tdep.c (m68k_ps_type): New.
4704 (m68k_init_types): New.
4705 (m68k_register_type): Use m68k_ps_type for PS register.
4706 (_initialize_m68k_tdep): Call m68k_init_types.
4708 * m68k-tdep.c (m68k_gdbarch_init): Don't infer coldfire flavour
4709 from the generic m68k arch.
4711 2007-06-28 Michael Snyder <msnyder@access-company.com>
4713 * m2-typeprint.c (m2_print_type): Move pointer ref after null test
4716 * linux-thread-db.c (thread_db_get_thread_local_address): Add
4717 gdb_assert before using return value of find_thread_pid (Coverity).
4719 * source.c (unset_substitute_path_command): Plug leak (Coverity).
4721 * cli/cli-script.c (build_command_line): Add null pointer guard
4724 2007-06-27 Daniel Jacobowitz <dan@codesourcery.com>
4726 * linux-thread-db.c (thread_db_attach): Delete.
4727 (thread_db_detach): Typo fix. Call target_mourn_inferior
4728 instead of fixing up proc_handle.
4729 (have_threads_callback, have_threads): New functions.
4730 (thread_db_wait): Remove dead proc_handle.pid check. Only
4731 translate PTIDs if we have registered threads. Check for new
4732 threads if we have none.
4733 (thread_db_create_inferior, thread_db_post_startup_inferior): Delete.
4734 (find_new_threads_callback): Only enable event reporting if TID == 0.
4735 (same_ptid_callback): New.
4736 (thread_db_get_thread_local_address): Check for new threads.
4737 (init_thread_db_ops): Don't set to_attach, to_create_inferior,
4738 or to_post_startup_inferior.
4740 2007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
4742 * infrun.c (adjust_pc_after_break): Do not assume software single-step
4743 is always active if SOFTWARE_SINGLE_STEP_P is true.
4744 (resume): Use gdbarch_software_single_step[_p] instead of
4745 SOFTWARE_SINGLE_STEP[_P].
4746 (handle_inferior_event): Do not check for SOFTWARE_SINGLE_STEP_P.
4748 * gdbarch.sh (software_single_step): Remove target macro.
4749 * gdbarch.h, gdbarch.c: Regenerate.
4751 2007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
4753 * gdbarch.sh (gdbarch_swap_ftype, deprecated_register_gdbarch_swap,
4754 DEPRECATED_REGISTER_GDBARCH_SWAP): Remove.
4755 (struct gdbarch_swap, struct gdbarch_swap_registration,
4756 struct gdbarch_swap_registry, gdbarch_swap_registry,
4757 current_gdbarch_swap_init_hack, current_gdbarch_swap_out_hack,
4758 current_gdbarch_swap_in_hack): Remove.
4759 (find_arch_by_info): Do not call current_gdbarch_swap_init_hack.
4760 (gdbarch_find_by_info): Do not call current_gdbarch_swap_in_hack
4761 and current_gdbarch_swap_out_hack, update current_gdbarch directly.
4762 (deprecated_current_gdbarch_select_hack): Likewise.
4763 * gdbarch.h, gdbarch.c: Regenerate.
4765 2007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
4767 * infrun.c (clear_proceed_status): Clean up stop_registers.
4768 (normal_stop): Allocate regcache for stop_registers.
4769 (struct inferior_status): Remove stop_registers member.
4770 (save_inferior_status): Do not save stop_registers.
4771 (restore_inferior_status): Do not restore stop_registers.
4772 (discard_inferior_status): Do not discard stop_registers.
4773 (build_infrun): Remove.
4774 (_initialize_infrun): Do not swap stop_registers.
4776 2007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
4778 * remote.c (remote_address_masked): If remote_address_size is zero,
4779 default to target address size.
4780 (build_remote_gdbarch_data): Remove.
4781 (_initialize_remote): Do not swap remote_address_size.
4783 2007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
4785 * gdbtypes.h (builtin_type_true_char, builtin_type_void,
4786 builtin_type_char, builtin_type_short, builtin_type_int,
4787 builtin_type_long, builtin_type_signed_char,
4788 builtin_type_unsigned_char, builtin_type_unsigned_short,
4789 builtin_type_unsigned_int, builtin_type_unsigned_long,
4790 builtin_type_float, builtin_type_double, builtin_type_long_double,
4791 builtin_type_complex, builtin_type_double_complex, builtin_type_string,
4792 builtin_type_bool, builtin_type_long_long,
4793 builtin_type_unsigned_long_long, builtin_type_void_data_ptr,
4794 builtin_type_void_func_ptr, builtin_type_CORE_ADDR): Replace global
4795 variable declaration with compatibility macro.
4796 * gdbtypes.c (builtin_type_true_char, builtin_type_void,
4797 builtin_type_char, builtin_type_short, builtin_type_int,
4798 builtin_type_long, builtin_type_signed_char,
4799 builtin_type_unsigned_char, builtin_type_unsigned_short,
4800 builtin_type_unsigned_int, builtin_type_unsigned_long,
4801 builtin_type_float, builtin_type_double, builtin_type_long_double,
4802 builtin_type_complex, builtin_type_double_complex, builtin_type_string,
4803 builtin_type_bool, builtin_type_long_long,
4804 builtin_type_unsigned_long_long, builtin_type_void_data_ptr,
4805 builtin_type_void_func_ptr, builtin_type_CORE_ADDR): Remove.
4806 (build_gdbtypes): Remove.
4807 (_initialize_gdbtypes): Do not call build_gdbtypes, move installing
4808 opaque-type-resolution command here. Do not call
4809 deprecated_register_gdbarch_swap.
4811 2007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
4813 * gdbtypes.h (struct builtin_type): New members nodebug_text_symbol,
4814 nodebug_data_symbol, nodebug_unknown_symbol, and nodebug_tls_symbol.
4815 * gdbtypes.c (gdbtypes_post_init): Initialize nodebug_ default types.
4817 * parse.c (msym_text_symbol_type, msym_data_symbol_type): Remove.
4818 (msym_unknown_symbol_type, msym_tls_symbol_type): Remove.
4819 (write_exp_msymbol): Use builtin nodebug_ types instead of them.
4820 (build_parse): Remove.
4821 (_initialize_parse): Do not call build_parse. Do not register
4822 msym_ types for gdbarch-swapping.
4824 * dwarf2read.c (new_symbol): Use default nodebug_data_symbol type
4825 instead of creating private type.
4827 * xcoffread.c (func_symbol_type, var_symbol_type): Remove.
4828 (_initialize_xcoffread): Do not initialized them.
4829 (process_xcoff_symbol): Use builtin nodebug_ types instead of them.
4831 * mdebugread.c (nodebug_func_symbol_type): Remove.
4832 (nodebug_var_symbol_type): Remove.
4833 (_initialize_mdebugread): Do not initialize them.
4834 (parse_symbol): Use builtin nodebug_ type instead of them.
4835 (parse_procedure): Likewise.
4837 2007-06-21 Chris Dearman <chris@mips.com>
4839 * printcmd.c (do_one_display): If display/i, start with an initial
4840 line feed to avoid bad layout if there is a branch delay slot.
4842 2007-06-21 Nigel Stephens <nigel@mips.com>
4843 Maciej W. Rozycki <macro@mips.com>
4845 * disasm.c (gdb_print_insn): Return the number of branch delay
4846 slot instructions too.
4847 * disasm.h (gdb_print_insn): Update prototype.
4848 * printcmd.c (branch_delay_insns): New variable to record the
4849 number of delay slot instructions after disassembling a branch.
4850 (print_formatted): Record the number of branch delay slot
4852 (do_examine): When disassembling, if the last instruction
4853 disassembled has any branch delay slots, then bump the count so
4854 that they get disassembled too.
4855 * tui/tui-disasm.c (tui_disassemble): Update the call to
4857 * NEWS: Document the new behaviour.
4859 2007-06-21 Andreas Schwab <schwab@suse.de>
4861 * regcache.c (write_pc_pid): Restore missing else.
4863 2007-06-20 Ulrich Weigand <uweigand@de.ibm.com>
4865 * regcache.c (regcache_print): Use get_current_regcache ()
4866 instead of current_regcache.
4868 2007-06-20 H.J. Lu <hongjiu.lu@intel.com>
4871 * gcore.c (gcore_command): Use bfd_make_section_anyway_with_flags
4872 instead of bfd_make_section_anyway.
4873 (gcore_create_callback): Likewise. Also set SEC_NEVER_LOAD
4874 when clearing SEC_LOAD.
4876 2007-06-19 Joseph Myers <joseph@codesourcery.com>
4878 * arm-tdep.c (arm_push_dummy_call): Correct padding of partial
4879 registers for big-endian.
4881 2007-06-19 Markus Deuling <deuling@de.ibm.com>
4883 * gdbarch.sh (TARGET_PRINT_INSN): Replace by gdbarch_print_insn.
4884 * disasm.c (dump_insns, gdb_print_insn): Likewise.
4885 * gdbarch.c, gdbarch.h: Regenerate.
4887 2007-06-19 Markus Deuling <deuling@de.ibm.com>
4889 * gdbarch.sh (BELIEVE_PCC_PROMOTION): Replace by
4890 gdbarch_believe_pcc_promotion.
4891 * stabsread.c (define_symbol): Likewise.
4892 Remove unnecessary definition.
4893 * coffread.c (process_coff_symbol): Remove unnecessary code.
4894 * gdbarch.c, gdbarch.h: Regenerate.
4896 2007-06-19 Daniel Jacobowitz <dan@codesourcery.com>
4898 * configure.ac: Do not use ${objdir}.
4899 * configure: Regenerated.
4901 2007-06-18 Ulrich Weigand <uweigand@de.ibm.com>
4903 * gdbarch.sh (deprecated_register_size): Remove.
4904 * gdbarch.h, gdbarch.c: Regenerate.
4906 * arm-tdep.c (arm_push_dummy_call): Replace DEPRECATED_REGISTER_SIZE
4907 by INT_REGISTER_SIZE.
4908 (thumb_get_next_pc, arm_return_in_memory): Likewise.
4909 (arm_gdbarch_init): Do not call set_gdbarch_deprecated_register_size.
4910 * ia64-tdep.c (ia64_gdbarch_init): Do not call
4911 set_gdbarch_deprecated_register_size.
4913 2007-06-18 Markus Deuling <deuling@de.ibm.com>
4915 * gdbarch.sh (DEPRECATED_FP_REGNUM): Replace by
4916 gdbarch_deprecated_fp_regnum.
4917 * std-regs.c (value_of_builtin_frame_fp_reg): Likewise.
4918 * remote-mips.c (mips_wait, mips_fetch_registers): Likewise.
4919 * arch-utils.c (legacy_virtual_frame_pointer): Likewise.
4920 * arch-utils.h (gdbarch_virtual_frame_pointer_ftype): Likewise
4922 * gdbarch.c, gdbarch.h: Regenerate.
4924 2007-06-18 Markus Deuling <deuling@de.ibm.com>
4926 * gdbarch.sh (EXTRACT_RETURN_VALUE): Replace with
4927 gdbarch_extract_return_value.
4928 * value.c (generic_use_struct_convention): Likewise (comment).
4929 * ia64-tdep.c (ia64_use_struct_convention): Likewise (comment).
4930 * arch-utils.c (legacy_return_value): Likewise.
4931 * arch-utils.h (legacy_return_value): Likewise (comment).
4932 * gdbarch.sh (STORE_RETURN_VALUE): Replace by
4933 gdbarch_store_return_value.
4934 * stack.c (return_command): Likewise (comment).
4935 * arch-utils.h (legacy_return_value): Likewise (comment).
4936 * arch-utils.c (legacy_return_value): Likewise.
4937 * gdbarch.c, gdbarch.h: Regenerate.
4939 2007-06-18 Markus Deuling <deuling@de.ibm.com>
4941 * gdbarch.sh (DEPRECATED_USE_STRUCT_CONVENTION): Replace by
4942 gdbarch_deprecated_use_struct_convention.
4943 * arch-utils.c (legacy_return_value): Likewise.
4944 * gdbarch.c, gdbarch.h: Regenerate.
4946 2007-06-18 Markus Deuling <deuling@de.ibm.com>
4948 * gdbarch.sh (DEPRECATED_FUNCTION_START_OFFSET): Replace by
4949 gdbarch_deprecated_function_start_offset.
4950 * symtab.c (find_function_start_sal)skip_prologue_using_sal): Likewise.
4951 * linespec.c (minsym_found): Likewise.
4952 * infrun.c (handle_inferior_event): Likewise.
4953 * infcall.c (find_function_addr): Likewise.
4954 * cli/cli-cmds.c (disassemble_command): Likewise.
4955 * gdbarch.c, gdbarch.h: Regenerate.
4957 2007-06-18 Markus Deuling <deuling@de.ibm.com>
4959 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Replace by
4960 gdbarch_deprecated_reg_struct_has_addr.
4961 * infcall.c (call_function_by_hand): Likewise.
4962 (DEPRECATED_REG_STRUCT_HAS_ADDR_P): Replace by
4963 * gdbarch_deprecated_reg_struct_has_addr_p.
4964 * infcall.c (call_function_by_hand): Likewise.
4965 * gdbarch.c, gdbarch.h: Regenerate.
4967 2007-06-18 Markus Deuling <deuling@de.ibm.com>
4969 * gdbarch.sh (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
4970 * sh-tdep.c (sh_extract_struct_value_address): Remove.
4971 (sh_gdbarch_init): Remove
4972 set_gdbarch_deprecated_extract_struct_value_address.
4973 * sh64-tdep.c (sh64_extract_struct_value_address): Remove.
4974 (sh64_gdbarch_init): Remove
4975 set_gdbarch_deprecated_extract_struct_value_address.
4976 * ia64-tdep.c (ia64_extract_struct_value_address): Remove.
4977 (ia64_gdbarch_init): Remove
4978 set_gdbarch_deprecated_extract_struct_value_address.
4979 * frv-tdep.c (frv_extract_struct_value_address): Remove.
4980 (frv_gdbarch_init): Remove
4981 set_gdbarch_deprecated_extract_struct_value_address.
4982 * gdbarch.c, gdbarch.h: Regenerate.
4984 2007-06-18 Markus Deuling <deuling@de.ibm.com>
4986 * gdbarch.sh (SP_REGNUM): Replace by gdbarch_sp_regnum.
4987 * v850-tdep.c (v850_unwind_sp): Likewise.
4988 * std-regs.c (value_of_builtin_frame_sp_reg): Likewise.
4989 * stack.c (frame_info): Likewise.
4990 * stabsread.c (define_symbol): Likewise.
4991 * sh-tdep.c (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu)
4992 (sh_dwarf2_frame_init_reg, sh_frame_cache, sh_frame_prev_register)
4993 (sh_unwind_sp): Likewise.
4994 * sh64-tdep.c (sh64_push_dummy_call, sh64_frame_cache)
4995 (sh64_frame_prev_register, sh64_unwind_sp): Likewise.
4996 * rs6000-tdep.c (rs6000_push_dummy_call, rs6000_unwind_dummy_id)
4997 (rs6000_frame_cache): Likewise.
4998 * rs6000-nat.c (store_register): Likewise.
4999 * remote-mips.c (mips_wait): Likewise.
5000 * procfs.c (procfs_fetch_registers, procfs_store_registers): Likewise.
5001 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call)
5002 (ppc64_sysv_abi_push_dummy_call): Likewise.
5003 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_cache): Likewise.
5004 * ppcobsd-nat.c (ppcobsd_supply_pcb): Likewise.
5005 * ppcnbsd-tdep.c (ppcnbsd_sigtramp_cache_init): Likewise.
5006 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache): Likewise.
5007 * m32r-rom.c (m32r_supply_register): Likewise.
5008 * frame.c (frame_sp_unwind): Likewise.
5009 * mips-tdep.c (mips_insn16_frame_cache)
5010 (mips_insn32_frame_cache): Likewise (comment).
5011 * m68klinux-nat.c (supply_gregset): Likewise.
5012 * m68k-tdep.c (m68k_get_longjmp_target): Likewise.
5013 * ia64-tdep.c (ia64_frame_prev_register): Likewise.
5014 * i386-tdep.c (i386_get_longjmp_target): Likewise.
5015 * dwarf2-frame.c (dwarf2_frame_default_init_reg): Likewise.
5016 * cris-tdep.c (cris_regnums, cris_sigcontext_addr)
5017 (cris_sigtramp_frame_unwind_cache, cris_push_dummy_call)
5018 (cris_scan_prologue, crisv32_scan_prologue, cris_unwind_sp)
5019 (cris_register_type, crisv32_register_type)
5020 (cris_dwarf2_frame_init_reg): Likewise.
5021 * arch-utils.c (legacy_virtual_frame_pointer): Likewise.
5022 * amd64-tdep.c (amd64_frame_prev_register): Likewise.
5023 * amd64-linux-tdep.c (amd64_linux_sigcontext_addr): Likewise.
5024 * libunwind-frame.c (libunwind_frame_cache): Likewise.
5026 * gdbarch.sh (PC_REGNUM): Replace by gdbarch_pc_regnum.
5027 * regcache.c (read_pc_pid, generic_target_write_pc): Likewise.
5028 * xtensa-tdep.c (xtensa_register_type, xtensa_supply_gregset)
5029 (xtensa_unwind_pc, xtensa_frame_cache, xtensa_frame_prev_register)
5030 (xtensa_extract_return_value, xtensa_store_return_value): Likewise.
5031 * v850-tdep.c (v850_unwind_pc): Likewise.
5032 * stack.c (frame_info): Likewise.
5033 * sh-tdep.c (sh_generic_show_regs, sh3_show_regs, sh2e_show_regs)
5034 (sh2a_show_regs, sh2a_nofpu_show_regs, sh3e_show_regs)
5035 (sh3_dsp_show_regs, sh4_show_regs, sh4_nofpu_show_regs)
5036 (sh_dwarf2_frame_init_reg, sh_frame_prev_register, sh_unwind_pc)
5037 (sh_dsp_show_regs): Likewise.
5038 * shnbsd-tdep.c (shnbsd_supply_gregset)
5039 (shnbsd_collect_gregset): Likewise.
5040 * shnbsd-nat.c (GETREGS_SUPPLIES): Likewise.
5041 * sh64-tdep.c (sh64_compact_reg_base_num, sh64_show_media_regs)
5042 (sh64_frame_prev_register, sh64_unwind_pc): Likewise.
5043 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset)
5044 (6000_register_reggroup_p, rs6000_unwind_pc)
5045 (rs6000_frame_cache): Likewise.
5046 * rs6000-nat.c (regmap, rs6000_fetch_inferior_registers)
5047 (rs6000_store_inferior_registers): Likewise.
5048 * remote-mips.c (mips_wait, mips_load): Likewise.
5049 * procfs.c (procfs_fetch_registers, procfs_store_registers): Likewise.
5050 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_cache): Likewise.
5051 * ppcobsd-nat.c (ppcobsd_supply_pcb): Likewise.
5052 * ppcnbsd-tdep.c (ppcnbsd_sigtramp_cache_init): Likewise.
5053 * ppcnbsd-nat.c (getregs_supplies, ppcnbsd_supply_pcb): Likewise.
5054 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache): Likewise.
5055 * ppc-linux-nat.c (ppc_register_u_addr, fetch_ppc_registers)
5056 (store_ppc_registers, fill_gregset): Likewise.
5057 * mips-tdep.c (mips_stub_frame_cache, mips_gdbarch_init): Likewise.
5058 * mipsnbsd-tdep.c (mipsnbsd_supply_reg, mipsnbsd_fill_reg): Likewise.
5059 * mipsnbsd-nat.c (getregs_supplies): Likewise.
5060 * m68k-tdep.c (m68k_register_type, m68k_unwind_pc): Likewise.
5061 * m68klinux-nat.c (supply_gregset): Likewise.
5062 * irix5-nat.c (fill_gregset): Likewise.
5063 * i386-tdep.c (i386_unwind_pc): Likewise.
5064 * i386-linux-nat.c (i386_linux_resume): Likewise.
5065 * frame.c (get_prev_frame_1): Likewise.
5066 * dwarf2-frame.c (dwarf2_frame_default_init_reg): Likewise.
5067 * dbug-rom.c (dbug_supply_register): Likewise.
5068 * cris-tdep.c (cris_sigtramp_frame_unwind_cache, cris_scan_prologue)
5069 (crisv32_scan_prologue, cris_unwind_pc, cris_register_size)
5070 (cris_register_type, crisv32_register_type, crisv32_register_name)
5071 (cris_dwarf2_frame_init_reg, find_step_target)
5072 (cris_software_single_step, cris_supply_gregset)
5073 (cris_regnums): Likewise.
5074 * alpha-linux-nat.c (alpha_linux_register_u_offset): Likewise.
5075 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
5076 (fill_sprs64, fill_sprs32, store_regs_user_thread): Likewise.
5077 * std-regs.c (value_of_builtin_frame_pc_reg): Likewise.
5078 * mips-linux-tdep.c (mips_linux_write_pc): Likewise.
5080 * gdbarch.sh (PS_REGNUM): Replace by gdbarch_ps_regnum.
5081 * dbug-rom.c (dbug_supply_register): Likewise.
5082 * xtensa-tdep.c (xtensa_supply_gregset, xtensa_frame_cache)
5083 (xtensa_frame_prev_register, xtensa_push_dummy_call): Likewise.
5084 * win32-nat.c (win32_resume): Likewise.
5085 * std-regs.c (value_of_builtin_frame_ps_reg): Likewise.
5086 * m68k-tdep.c (m68k_register_type): Likewise.
5087 * m68klinux-nat.c (supply_gregset): Likewise.
5089 * gdbarch.sh (FP0_REGNUM): Replace by gdbarch_fp0_regnum.
5090 * sh-tdep.c (sh_extract_return_value_fpu, sh_store_return_value_fpu)
5091 (sh2e_show_regs, sh2a_show_regs, sh3e_show_regs, sh4_show_regs)
5092 (sh_sh2a_register_type, sh_sh3e_register_type, sh_sh4_register_type)
5093 (fv_reg_base_num, dr_reg_base_num): Likewise.
5094 * sh64-tdep.c (sh64_fv_reg_base_num, sh64_dr_reg_base_num)
5095 (sh64_fpp_reg_base_num, sh64_compact_reg_base_num, sh64_push_dummy_call)
5096 (sh64_extract_return_value, sh64_store_return_value)
5097 (sh64_show_media_regs, sh64_show_compact_regs, sh64_register_type)
5098 (sh64_do_fp_register, sh64_media_print_registers_info): Likewise.
5099 * procfs.c (procfs_fetch_registers, procfs_store_registers)
5100 (invalidate_cache): Likewise.
5101 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache): Likewise.
5102 * mipsnbsd-tdep.c (mipsnbsd_supply_fpreg)
5103 (mipsnbsd_fill_fpreg): Likewise.
5104 * mipsnbsd-nat.c (mipsnbsd_fetch_inferior_registers)
5105 (mipsnbsd_store_inferior_registers): Likewise.
5106 * mips-linux-tdep.c (mips_supply_fpregset, mips_fill_fpregset)
5107 (mips64_supply_fpregset, mips64_fill_fpregset): Likewise.
5108 * mips-linux-nat.c (mips64_linux_register_addr): Likewise.
5109 * m68k-tdep.c (m68k_register_type, m68k_convert_register_p): Likewise.
5110 * m68klinux-nat.c (getfpregs_supplies, supply_fpregset)
5111 (fill_fpregset): Likewise.
5112 * irix5-nat.c (supply_fpregset, fill_fpregset): Likewise.
5113 * i386-tdep.h (struct_return): Likewise (comment).
5114 * i386-nto-tdep.c (i386nto_register_area): Likewise.
5115 * go32-nat.c (fetch_register, go32_fetch_registers, store_register)
5116 (go32_store_registers): Likewise.
5117 * alpha-tdep.c (alpha_next_pc): Likewise.
5118 * alpha-linux-nat.c (alpha_linux_register_u_offset): Likewise.
5119 * alphabsd-nat.c (alphabsd_fetch_inferior_registers)
5120 (alphabsd_store_inferior_registers): Likewise.
5121 * core-regset.c (fetch_core_registers): Likewise.
5122 * i386v4-nat.c (supply_fpregset, fill_fpregset): Likewise.
5124 * gdbarch.c, gdbarch.h: Regenerate.
5126 2007-06-18 Daniel Jacobowitz <dan@codesourcery.com>
5128 * coffread.c (coff_sym_fns): Add default_symfile_segments.
5129 * dbxread.c (start_psymtab): Check HAVE_ELF.
5130 (aout_sym_fns): Likewise.
5131 * elfread.c (elf_symfile_segments): New.
5132 (elf_sym_fns): Add elf_symfile_segments.
5133 * mipsread.c (ecoff_sym_fns): Add default_symfile_segments.
5134 * remote.c (get_offsets): Use symfile_map_offsets_to_segments.
5135 Skip if there is no symfile_objfile. Handle TextSeg and DataSeg.
5136 * somread.c (som_sym_fns): Use default_symfile_segments.
5137 * symfile.c (find_sym_fns): Take a BFD and return the sym_fns.
5138 (init_objfile_sect_indices): Call symfile_find_segment_sections.
5139 (default_symfile_segments): New function.
5140 (syms_from_objfile): Update call to find_sym_fns.
5141 (symfile_get_segment_data, free_symfile_segment_data): New.
5142 (symfile_map_offsets_to_segments): New.
5143 (symfile_find_segment_sections): New.
5144 * symfile.h (struct symfile_segment_data): New.
5145 (struct sym_fns): Add sym_segments.
5146 (default_symfile_segments, symfile_get_segment_data)
5147 (free_symfile_segment_data): New prototypes.
5148 (symfile_map_offsets_to_segments): Likewise.
5149 * xcoffread.c (xcoff_sym_fns): Add default_symfile_segments.
5150 * Makefile.in (COMMON_OBS): Remove elfread.o.
5151 (elf_internal_h): New.
5152 (elfread.o): Update.
5153 * configure.ac: Add elfread.o to COMMON_OBS if bfd/elf.o was
5155 * config.in, configure: Regenerated.
5156 * NEWS: Mention qOffsets changes.
5158 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
5160 * gdbtypes.h (builtin_type_m2_char, builtin_type_m2_int,
5161 builtin_type_m2_card, builtin_type_m2_real, builtin_type_m2_bool):
5162 Replace global variable declaration with compatibility macro.
5163 (struct builtin_m2_type): New data type.
5164 (builtin_m2_type): Add prototype.
5165 * m2-lang.c (builtin_type_m2_char, builtin_type_m2_int,
5166 builtin_type_m2_card, builtin_type_m2_real, builtin_type_m2_bool):
5167 Remove global variables.
5168 (m2_language_arch_info): Use builtin_m2_type instead of variables.
5169 (build_m2_types): New function.
5170 (m2_type_data): New variable.
5171 (builtin_m2_type): New function.
5172 (_initialize_m2_language): Do not build data types. Register
5173 m2_type_data per-gdbarch data.
5175 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
5177 * gdbtypes.h (builtin_type_f_character, builtin_type_f_logical,
5178 builtin_type_f_logical_s1, builtin_type_f_logical_s2,
5179 builtin_type_f_integer, builtin_type_f_integer_s2, builtin_type_f_real,
5180 builtin_type_f_real_s8, builtin_type_f_real_s16,
5181 builtin_type_f_complex_s8, builtin_type_f_complex_s16,
5182 builtin_type_f_complex_s32, builtin_type_f_void): Replace global
5183 variable declaration with compatibility macro.
5184 (struct builtin_f_type): New data type.
5185 (builtin_f_type): Add prototype.
5186 * f-lang.c (builtin_type_f_character, builtin_type_f_logical,
5187 builtin_type_f_logical_s1, builtin_type_f_logical_s2,
5188 builtin_type_f_integer, builtin_type_f_integer_s2, builtin_type_f_real,
5189 builtin_type_f_real_s8, builtin_type_f_real_s16,
5190 builtin_type_f_complex_s8, builtin_type_f_complex_s16,
5191 builtin_type_f_complex_s32, builtin_type_f_void): Remove variables.
5192 (f_language_arch_info): Use builtin_f_type instead of variables.
5193 (build_fortran_types): Build builtin_f_type structure instead of
5194 setting global type variables.
5195 (f_type_data): New variable.
5196 (builtin_f_type): New function.
5197 (_initialize_f_language): Do not call build_fortran_types. Do not
5198 swap global type variables. Register f_type_data per-gdbarch data.
5200 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
5202 * f-lang.c (_initialize_f_language): Do not initialize or
5203 swap builtin_type_string.
5205 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
5207 * std-regs.c (builtin_type_frame_reg, build_builtin_type_frame_reg,
5208 value_of_builtin_frame_reg): Remove.
5209 (_initialize_frame_reg): Do not swap builtin_type_frame_reg. Remove
5210 inactive call to value_of_builtin_frame_reg.
5212 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
5214 * gdbarch.sh (bfd_vma_bit): Remove.
5215 * gdbarch.c, gdbarch.h: Regenerate.
5217 * gdbtypes.h (builtin_bfd_vma_type): Remove.
5218 * gdbtypes.h (builtin_bfd_vma_type): Remove.
5219 (build_gdbtypes): Do not initialize it.
5220 (_initialize_gdbtypes): Do not swap it.
5222 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
5224 * gdbtypes.c (builtin_type_v2_double, builtin_type_v4_float,
5225 builtin_type_v2_int64, builtin_type_v4_int32, builtin_type_v8_int16,
5226 builtin_type_v16_int8, builtin_type_v2_float, builtin_type_v2_int32,
5227 builtin_type_v4_int16, builtin_type_v8_int8, builtin_type_v4sf,
5228 builtin_type_v4si, builtin_type_v16qi, builtin_type_v8qi,
5229 builtin_type_v8hi, builtin_type_v4hi, builtin_type_v2si,
5230 builtin_type_vec64, builtin_type_vec128): Remove.
5231 (init_simd_type): Remove.
5232 (init_vector_type): Make global.
5233 (build_builtin_type_vec64, build_builtin_type_vec128): Remove.
5234 (build_gdbtypes): Do not build vector types.
5235 (_initialize_gdbtypes): Do not swap vector types.
5236 * gdbtypes.h (builtin_type_v2_double, builtin_type_v4_float,
5237 builtin_type_v2_int64, builtin_type_v4_int32, builtin_type_v8_int16,
5238 builtin_type_v16_int8, builtin_type_v2_float, builtin_type_v2_int32,
5239 builtin_type_v4_int16, builtin_type_v8_int8, builtin_type_v4sf,
5240 builtin_type_v4si, builtin_type_v16qi, builtin_type_v8qi,
5241 builtin_type_v8hi, builtin_type_v4hi, builtin_type_v2si,
5242 builtin_type_vec64, builtin_type_vec128): Remove declarations.
5243 (init_vector_type): Add prototype.
5245 * i386-tdep.h (struct gdbarch_tdep): Add i386_mmx_type and
5246 i386_sse_type members.
5247 (i386_mmx_type, i386_sse_type): Change from variables to functions.
5248 * i386-tdep.c (i386_mmx_type, i386_sse_type): Remove variables.
5249 (i386_init_types): Do not build vector types.
5250 (i386_mmx_type, i386_sse_type): New functions.
5251 (i386_register_type): Call them instead of using global variables.
5252 (i386_gdbarch_init): Use XCALLOC to allocate tdep structure.
5253 * amd64-tdep.c (amd64_register_type): Call i386_sse_type instead
5254 of using global variable.
5256 * rs6000-tdep.h (struct gdbarch_tdep): Add ppc_builtin_type_vec64
5257 and ppc_builtin_type_vec128 members.
5258 * rs6000-tdep.c (rs6000_builtin_type_vec64): New function.
5259 (rs6000_builtin_type_vec128): Likewise.
5260 (rs6000_register_type): Call them instead of using builtin_type_vec64
5261 and builtin_type_vec128.
5262 (rs6000_gdbarch_init): Use XCALLOC to allocate tdep structure.
5264 * spu-tdep.c (struct gdbarch_tdep): New data type.
5265 (spu_builtin_type_vec128): Remove variable.
5266 (spu_builtin_type_vec128): New function.
5267 (spu_register_type): Call it instead of using global variable.
5268 (spu_gdbarch_init): Allocate tdep structure.
5269 (spu_init_vector_type): Remove function.
5270 (_initialize_spu_tdep): Do not call it.
5272 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
5274 * amd64-tdep.c (struct amd64_register_info): Remove.
5275 (amd64_register_info): Remove.
5276 (amd64_register_names): New static variable.
5277 (AMD64_NUM_REGS): Use amd64_register_names instead of
5278 amd64_register_info.
5279 (amd64_register_name): Likewise.
5280 (amd64_register_type): Do not refer to amd64_register_info.
5282 * s390-tdep.c (struct s390_register_info): Remove.
5283 (s390_register_info): Remove.
5284 (s390_register_name): Do not refer to s390_register_info.
5285 (s390_register_type): Likewise.
5287 * sparc64-tdep.c (struct sparc64_register_info): Remove.
5288 (sparc64_register_info, sparc64_pseudo_register_info): Remove.
5289 (sparc64_register_names, sparc64_pseudo_register_names): New.
5290 (SPARC64_NUM_REGS, SPARC64_NUM_PSEUDO_REGS): Use
5291 sparc64_register_names and sparc64_pseudo_register_names instead of
5292 sparc64_register_info and sparc64_pseudo_register_info.
5293 (sparc64_register_name): Likewise.
5294 (sparc64_register_type): Do not refer to sparc64_register_info
5295 and sparc64_pseudo_register_info.
5297 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
5299 * c-lang.c (cplus_builtin_types): Remove.
5300 (enum cplus_primitive_types): New data type.
5301 (cplus_language_arch_info): New function.
5302 (cplus_language_defn): Set la_language_arch_info member. Do not set
5303 la_builtin_type_vector and string_char_type members.
5305 * f-lang.c (f_builtin_types): Remove.
5306 (enum f_primitive_types): New data type.
5307 (f_language_arch_info): New function.
5308 (f_language_de): Set la_language_arch_info member. Do not set
5309 la_builtin_type_vector and string_char_type members.
5311 * m2-lang.c (m2_builtin_types): Remove.
5312 (enum m2_primitive_types): New data type.
5313 (m2_language_arch_info): New function.
5314 (m2_language_defn): Set la_language_arch_info member. Do not set
5315 la_builtin_type_vector and string_char_type members.
5317 * objc-lang.c (objc_builtin_types): Remove.
5318 (objc_language): Set la_language_arch_info member. Do not set
5319 la_builtin_type_vector and string_char_type members.
5321 * p-lang.c (pascal_builtin_types): Remove.
5322 (enum pascal_primitive_types): New data type.
5323 (pascal_language_arch_info): New function.
5324 (pascal_language_defn): Set la_language_arch_info member. Do not set
5325 la_builtin_type_vector and string_char_type members.
5327 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
5329 * regcache.c (struct regcache): Add ptid_t member.
5330 (regcache_xmalloc): Initialize it.
5331 (regcache_cpy_no_passthrough): Do not refer to current_regcache.
5332 (regcache_dup): Likewise.
5333 (regcache_dup_no_passthrough): Likewise.
5334 (current_regcache): Make static.
5335 (registers_ptid): Remove variable.
5336 (get_thread_regcache): New function.
5337 (get_current_regcache): New function.
5338 (registers_changed): Implement by freeing current regcache.
5339 (regcache_raw_read): Do not refer to current_regcache. Set
5340 inferior_ptid to regcache->ptid while calling target routines.
5341 (regcache_raw_write): Likewise.
5342 (regcache_raw_supply): Do not refer to current_regcache.
5343 (read_pc_pid): Use thread regcache. Do not modify inferior_ptid.
5344 (write_pc_pid): Likewise.
5345 (build_regcache): Remove.
5346 (_initialize_regcache): Do not call DEPRECATED_REGISTER_GDBARCH_SWAP
5347 or deprecated_register_gdbarch_swap. Do not initialize
5349 * regcache.h (get_current_regcache): Add prototype.
5350 (get_thread_regcache): Likewise.
5351 (current_regcache): Remove declaration.
5353 * corelow.c (core_open): Replace current_regcache by
5354 get_current_regcache ().
5355 * frame.c (frame_pop): Likewise.
5356 (put_frame_register): Likewise.
5357 (get_current_frame, create_new_frame): Likewise.
5358 * mi/mi-main.c (mi_cmd_data_write_register_values): Likewise.
5359 * stack.c (return_command): Likewise.
5360 * infcall.c (call_function_by_hand): Likewise.
5361 * infrun.c (resume): Likewise.
5362 (save_inferior_status, restore_inferior_status): Likewise.
5363 * linux-fork.c (fork_load_infrun_state): Likewise.
5364 (fork_save_infrun_state): Likewise.
5365 * win32-nat.c (win32_resume): Likewise.
5366 * i386fbsd-nat.c (i386fbsd_resume): Likewise.
5367 * monitor.c (monitor_wait): Likewise.
5368 * remote.c (remote_wait): Likewise.
5369 * remote-mips.c (mips_wait): Likewise.
5371 * bsd-kvm.c (bsd_kvm_open): Likewise
5372 (bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd): Likewise.
5373 * fbsd-nat.c (fbsd_make_corefile_notes): Likewise.
5374 * i386-linux-nat.c (i386_linux_resume): Likewise.
5375 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Likewise.
5376 (ia64_linux_stopped_data_address): Likewise.
5378 * frv-tdep.c (frv_fdpic_loadmap_addresses): Likewise.
5379 * m32c-tdep.c (m32c_virtual_frame_pointer): Likewise.
5380 * mep-tdep.c (current_me_module, current_options): Likewise.
5381 * mips-tdep.c (deprecated_mips_set_processor_regs_hack): Likewise.
5383 * linux-nat.c (linux_nat_do_thread_registers): Use thread
5384 regcache instead of current_regcache. Call target_fetch_registers.
5385 (linux_nat_corefile_thread_callback): Update call site.
5386 (linux_nat_do_registers): Likewise.
5387 * procfs.c (procfs_do_thread_registers): Use thread regcache instead
5388 of current_regcache.
5389 (procfs_make_note_section): Likewise.
5390 * proc-service.c (ps_lgetregs, ps_lsetregs): Likewise.
5391 (ps_lgetfpregs, ps_lsetfpregs): Likewise.
5392 * sol-thread.c (ps_lgetregs, ps_lsetregs): Likewise.
5393 (ps_lgetfpregs, ps_lsetfpregs): Likewise.
5395 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
5397 * regcache.c (read_register, read_register_pid): Remove.
5398 (write_register, write_register_pid): Likewise.
5399 * regcache.h (read_register, read_register_pid): Remove prototype.
5400 (write_register, write_register_pid): Likewise.
5402 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
5404 * gdbarch.sh (read_pc): Add REGCACHE argument. Remove PTID argument.
5405 (write_pc): Likewise. Remove default implementation, add predicate.
5406 * gdbarch.c, gdbarch.h: Regenerate.
5407 * regcache.c (read_pc_pid): Use current regcache instead of calling
5409 (write_pc_pid): Check gdbarch_write_pc predicate, implement default
5411 (generic_target_write_pc): Remove.
5412 * inferior.h (generic_target_write_pc): Remove.
5413 * frv-tdep.c (frv_gdbarch_init): Do not install it.
5414 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
5415 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
5416 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
5417 * sh-tdep.c (sh_gdbarch_init): Likewise.
5418 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
5420 * avr-tdep.c (avr_read_pc): Add REGCACHE argument. Remove PTID
5421 argument. Use REGCACHE instead of calling read_register_pid.
5422 * hppa-hpux-tdep.c (hppa_hpux_read_pc): Likewise.
5423 * hppa-tdep.c (hppa_read_pc): Likewise.
5424 * hppa-tdep.h (hppa_read_pc): Likewise.
5425 * ia64-tdep.c (ia64_read_pc): Likewise.
5426 * m32r-tdep.c (m32r_read_pc): Likewise.
5427 * mep-tdep.c (mep_read_pc): Likewise.
5428 * mn10300-tdep.c (mn10300_read_pc): Likewise.
5429 * spu-tdep.c (spu_read_pc): Likewise.
5431 * arm-tdep.c (arm_write_pc): Add REGCACHE argument. Remove PTID
5432 argument. Use REGCACHE instead of calling write_register_pid.
5433 * avr-tdep.c (avr_write_pc): Likewise.
5434 * hppa-hpux-tdep.c (hppa_hpux_write_pc): Likewise.
5435 * hppa-tdep.c (hppa_write_pc): Likewise.
5436 * hppa-tdep.h (hppa_write_pc): Likewise.
5437 * i386-linux-tdep.c (i386_linux_write_pc): Likewise.
5438 * amd64-linux-tdep.c (amd64_linux_write_pc): Likewise.
5439 * ia64-linux-tdep.c (ia64_linux_write_pc): Likewise.
5440 * ia64-tdep.c (ia64_write_pc): Likewise.
5441 * ia64-tdep.h (ia64_write_pc): Likewise.
5442 * m32r-tdep.c (m32r_write_pc): Likewise.
5443 * m88k-tdep.c (m88k_write_pc): Likewise.
5444 * mep-tdep.c (mep_write_pc): Likewise.
5445 * mips-tdep.c (mips_write_pc): Likewise.
5446 * mips-linux-tdep.c (mips_linux_write_pc): Likewise.
5447 * mn10300-tdep.c (mn10300_write_pc): Likewise.
5448 * sparc-tdep.c (sparc_write_pc): Likewise.
5449 * spu-tdep.c (spu_write_pc): Likewise.
5451 * mips-tdep.c (read_signed_register): Remove.
5452 (read_signed_register_pid): Likewise.
5453 (mips_read_pc): Add REGCACHE argument. Remove PTID argument.
5454 Use REGCACHE instead of calling read_signed_register_pid.
5456 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
5458 * gdbarch.sh (push_dummy_code): Add REGCACHE argument.
5459 * gdbarch.c, gdbarch.h: Regenerate.
5460 * infcall.c (generic_push_dummy_code): Add REGCACHE argument.
5461 (push_dummy_code): Likewise. Pass it to callee.
5462 (call_function_by_hand): Pass current regcache to push_dummy_code.
5464 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Add REGCACHE
5465 argument. Use it instead of current_regcache.
5467 * cris-tdep.c (cris_push_dummy_code): Add REGCACHE argument.
5468 * sparc-tdep.c (sparc32_push_dummy_code): Likewise.
5470 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
5472 * gdbarch.sh (get_longjmp_target): Add FRAME argument.
5473 * gdbarch.c, gdbarch.h: Regenerate.
5474 * infrun.c (handle_inferior_event): Pass current frame to
5475 gdbarch_get_longjmp_target.
5477 * alpha-tdep.c (alpha_get_longjmp_target): Add FRAME argument.
5478 Read registers from FRAME instead of using read_register.
5479 Use get_frame_arch instead of current_gdbarch.
5480 * arm-tdep.c (arm_get_longjmp_target): Likewise.
5481 * i386-tdep.c (i386_get_longjmp_target): Likewise.
5482 * m68k-tdep.c (m68k_get_longjmp_target): Likewise.
5483 * mips-linux-tdep.c (mips_linux_get_longjmp_target): Likewise.
5484 (mips64_linux_get_longjmp_target): Likewise.
5485 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Likewise.
5487 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
5489 * gdbarch.sh (skip_trampoline_code): Add FRAME argument.
5490 * gdbarch.c, gdbarch.h: Regenerate.
5491 * arch-utils.c (generic_skip_trampoline_code): Add FRAME argument.
5492 * arch-utils.h (generic_skip_trampoline_code): Likewise.
5493 * infrun.c (handle_inferior_event): Pass current frame to
5494 gdbarch_skip_trampoline_code and skip_language_trampoline.
5496 * language.c (unk_lang_trampoline): Add FRAME argument.
5497 (skip_language_trampoline): Add FRAME argument. Pass it to
5498 skip_trampoline callback.
5499 * language.h: Add forward declaration of struct frame_info.
5500 (struct language_defn): Add FRAME argument to skip_trampoline.
5501 (skip_language_trampoline): Add FRAME argument.
5502 * cp-abi.c (cplus_skip_trampoline): Add FRAME argument. Pass it
5503 to skip_trampoline callback.
5504 * cp-abi.h: Add forward declaration of struct frame_info.
5505 (cplus_skip_trampoline): Add FRAME argument.
5506 (struct cp_abi_ops): Add FRAME argument to skip_trampoline callback.
5507 * gnu-v3-abi.c (gnuv3_skip_trampoline): Add FRAME argument. Pass it
5508 to gdbarch_skip_trampoline_code.
5509 * objc-lang.c (objc_skip_trampoline): Add FRAME argument. Pass it
5510 to gdbarch_skip_trampoline_code.
5512 * minsyms.c (find_solib_trampoline_target): Add FRAME argument.
5513 * symtab.h (find_solib_trampoline_target): Likewise.
5514 * obsd-tdep.c (obsd_skip_solib_resolver): Pass current frame to
5515 find_solib_trampoline_target.
5517 * arm-tdep.c (arm_skip_stub): Add FRAME argument. Read registers
5518 from FRAME instead of calling read_register.
5520 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code): Add FRAME
5521 argument. Read registers from FRAME instead of using read_register.
5522 * hppa-tdep.c (hppa_skip_trampoline_code): Likewise.
5523 * hppa-tdep.h (hppa_skip_trampoline_code): Add FRAME argument.
5525 * i386-cygwin-tdep.c (i386_cygwin_skip_trampoline_code): Add FRAME
5528 * m32c-tdep.c (m32c_skip_trampoline_code): Add FRAME argument.
5530 * mips-tdep.c (mips_skip_trampoline_code): Add FRAME argument. Read
5531 registers from FRAME instead of using read_signed_register.
5533 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Add FRAME
5535 (ppc64_standard_linkage_target): Likewise. Read registers from FRAME
5536 instead of using read_register.
5537 (ppc64_skip_trampoline_code): Add FRAME argument. Pass it to
5538 ppc64_standard_linkage_target.
5539 * rs6000-tdep.c (rs6000_skip_trampoline_code): Add FRAME argument.
5540 Pass it to find_solib_trampoline_target. Read registers from FRAME
5541 instead of using read_register.
5543 * xstormy16-tdep.c (xstormy16_skip_trampoline_code): Add FRAME
5546 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
5548 * gdbarch.sh (software_single_step): Replace REGCACHE argument by
5550 * gdbarch.c, gdbarch.h: Regenerate.
5551 * infrun.c (resume): Pass current frame to SOFTWARE_SINGLE_STEP.
5553 * alpha-tdep.c (alpha_next_pc): Add FRAME argument. Retrieve
5554 registers from FRAME instead of using read_register.
5555 (alpha_software_single_step): Replace REGCACHE by FRAME. Pass FRAME
5556 to alpha_next_pc. Use get_frame_pc instead of read_pc.
5557 * alpha-tdep.h (alpha_software_single_step): Replace REGCACHE
5560 * arm-tdep.c (shifted_reg_val): Add FRAME argument. Read registers
5561 from FRAME instead of using read_register.
5562 (thumb_get_next_pc): Likewise.
5563 (arm_get_next_pc): Likewise.
5564 (arm_software_single_step): Replace REGCACHE by FRAME. Pass FRAME
5565 to arm_get_next_pc. Use get_frame_pc instead of read_register.
5566 * arm-tdep.h (arm_software_single_step): Replace REGCACHE
5569 * cris-tdep.c (find_step_target): Add FRAME argument. Read registers
5570 from FRAME instead of using read_register.
5571 (cris_software_single_step): Replace REGCACHE by FRAME. Pass FRAME
5572 to find_step_target.
5574 * mips-tdep.c (mips32_next_pc): Add FRAME argument. Read registers
5575 from FRAME instead of using read_register / read_signed_register.
5576 (extended_mips16_next_pc): Likewise.
5577 (mips16_next_pc): Likewise.
5578 (mips_next_pc): Likewise.
5579 (mips_software_single_step): Replace REGCACHE by FRAME. Pass FRAME
5580 to mips_next_pc. Use get_frame_pc instead of read_pc.
5581 * mips-tdep.h (mips_software_single_step): Replace REGCACHE
5584 * rs6000-tdep.c (branch_dest): Add FRAME argument. Use it instead
5585 of current frame. Read registers from FRAME.
5586 (deal_with_atomic_sequence): Add FRAME argument. Pass it to
5587 branch_dest. Use get_frame_pc instead of read_pc.
5588 (rs6000_software_single_step): Likewise.
5589 (bl_to_blrl_insn_p): Do not call branch_dest.
5590 * rs6000-tdep.h (rs6000_software_single_step): Replace REGCACHE
5593 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Add FRAME argument.
5594 Read registers from FRAME instead of current regcache.
5595 * sparc-linux-tdep.c (sparc32_linux_step_trap): Likewise.
5596 * sparcnbsd-tdep.c (sparcnbsd_step_trap): Likewise.
5597 * sparc-tdep.c (sparc_address_from_register): Remove.
5598 (sparc_analyze_control_transfer): Pass FRAME argument instead of
5599 GDBARCH. Pass FRAME to step_trap callback.
5600 (sparc_step_trap): Add FRAME argument.
5601 (space_software_single_step): Replace REGCACHE by FRAME. Pass FRAME
5602 to sparc_analyze_control_transfer. Read registers from FRAME instead
5603 of calling sparc_address_from_register.
5604 * sparc-tdep.h (struct gdbarch_tdep): Add FRAME argument to
5606 (sparc_address_from_register): Remove prototype.
5607 (sparc_software_single_step): Replace REGCACHE argument by FRAME.
5608 (sparcnbsd_step_trap): Add FRAME argument.
5610 * spu-tdep.c (spu_software_single_step): Replace REGCACHE argument
5611 by FRAME. Read registers from FRAME instead of REGCACHE.
5613 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
5615 * arm-tdep.c (arm_print_float_info): Use register value from FRAME
5616 instead of calling read_register.
5618 * avr-tdep.c (avr_push_dummy_call): Write to REGCACHE instead of
5619 calling write_register.
5621 * hppa-tdep.c (hppa32_push_dummy_call): Write to REGCACHE instead of
5622 calling write_register.
5624 * ia64-tdep.c (find_func_descr): Add REGCACHE parameter. Use it
5625 instead of calling read_register.
5626 (ia64_push_dummy_call): Update call to find_func_descr. Use REGCACHE
5627 instead of calling read_register and write_register.
5629 * m32r-tdep.c (m32r_linux_supply_gregset): Use REGCACHE parameter
5630 instead of current_regcache.
5632 * mn10300-tdep.c (mn10300_push_dummy_call): Write to REGCACHE instead
5633 of calling write_register.
5634 * mn10300-linux-tdep.c (am33_supply_fpregset_method): Use REGCACHE
5635 parameter instead of current_regcache.
5637 * mips-tdep.c (mips2_fp_compat): Add FRAME parameter. Use it
5638 instead of calling read_register.
5639 (mips_read_fp_register_double, mips_print_fp_register): Update calls.
5640 (mips_eabi_push_dummy_call): Use REGCACHE instead of write_register.
5641 (mips_n32n64_push_dummy_call): Likewise.
5642 (mips_o32_push_dummy_call): Likewise.
5643 (mips_o64_push_dummy_call): Likewise.
5645 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Use REGCACHE
5646 parameter instead of current_regcache.
5648 * xtensa-tdep.c (xtensa_register_write_masked): Add REGCACHE parameter.
5649 Use it instead of read_register and write_register.
5650 (xtensa_register_read_masked): Likewise.
5651 (xtensa_pseudo_register_read): Update call.
5652 (xtensa_pseudo_register_write): Likewise.
5653 (xtensa_frame_cache): Use register values unwound from NEXT_FRAME
5654 instead of calling read_register.
5655 (xtensa_push_dummy_call): Update comment.
5657 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
5659 * mips-tdep.c (mips16_scan_prologue): Replace read_next_frame_reg
5660 by frame_unwind_register_signed calls.
5661 (mips32_scan_prologue): Likewise. Skip analysis of alloca stack
5662 frame allocations when called with NULL NEXT_FRAME parameter.
5663 (read_next_frame_reg): Remove.
5665 * sh-tdep.c (sh_analyze_prologue): Add FPSCR parameter. Use it
5666 instead of reading the FPSCR register.
5667 (sh_frame_cache): Pass unwound FPSCR register value to
5668 sh_analyze_prologue.
5669 (sh_skip_prologue): Pass dummy FPSCR value to sh_analyze_prologue.
5671 * v850-tdep.c (v850_analyze_prologue): Add CTBP parameter. Use it
5672 instead of reading the CTBP register.
5673 (v850_frame_cache): Pass unwound CTBP register value to
5674 v850_analyze_prologue.
5676 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
5678 * sh-tdep.h (sh_show_regs): Add FRAME parameter.
5679 * sh-tdep.c (sh_show_regs): Likewise.
5680 (sh_show_regs_command): Pass current frame to sh_show_regs routine.
5681 (sh_generic_show_regs): Add FRAME parameter. Use register
5682 values from that frame instead of calling read_register.
5683 (sh3_show_regs, sh2e_show_regs, sh2a_show_regs, sh2a_nofpu_show_regs,
5684 sh3e_show_regs, sh3_dsp_show_regs, sh4_show_regs, sh4_nofpu_show_regs,
5685 sh_dsp_show_regs): Likewise.
5686 * sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs,
5687 sh64_show_regs): Likewise.
5689 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
5691 * mips-tdep.c (deprecated_mips_set_processor_regs_hack): Read from
5692 current regcache instead of calling read_register.
5694 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
5696 * mep-tdep.c (current_me_module): Read from current regcache
5697 instead of calling read_register.
5698 (current_options): Likewise.
5700 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
5702 * cris-tdep.c (cris_stopped_data_address): Read register values
5703 from current frame instead of calling read_register.
5704 * frv-tdep.c (frv_stopped_data_address): Likewise.
5706 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
5708 * solib-sunos.c (sunos_solib_create_inferior_hook): Use write_pc
5709 instead of write_register (PC_REGNUM, ...).
5711 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
5713 * solib-sunos.c (sunos_solib_create_inferior_hook): Add comment
5714 explaining why the PC adjustment code is necessary.
5716 2007-06-15 Vladimir Prus <vladimir@codesourcery.com>
5718 * m68k-tdep.h (enum m68k_flavour): New.
5719 (struct gdbarch_tdep): New fields
5720 float_return, flavour and fpregs_present.
5721 * m68k-tdep.c (m68k_register_type): Use
5722 fpregs_present and conditionalize floating
5723 registers type on flavour.
5724 (m68k_register_names): New.
5725 (m68k_register_name): Use the above.
5726 (m68k_convert_register_p): Consult fpregs_present.
5727 (m68k_register_to_value, m68k_value_to_register):
5728 Use register_type to obtain the type of floating
5730 (m68k_svr4_extract_return_value): Check tdep->float_return.
5731 Use register_type to get the type of floating
5733 (m68k_svr4_store_return_value): Likewise.
5734 (m68k_dwarf_reg_to_regnum): Check tdep->fpregs_present.
5735 (m68k_analyze_register_saves): Likewise.
5736 (m68k_gdbarch_init): Extract infromation
5737 from XML description, if present. Guess coldfire by
5738 looking at the file, if present. Conditionalize
5739 setting of long double format. Set decr_pc_after_break
5740 to 2 on coldfire and fido. Enable XML-driven
5741 register description.
5742 * m68kbsd-tdep.c (m68kbsd_fpreg_offset): Use
5743 size of tdep->fpreg_type, as opposed to hardcoded value.
5744 * Makefile.in (m68k-tdep.o): Update dependencies.
5746 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
5748 * NEWS: Mention "info spu" commands and qXfer:spu:read and
5749 qXfer:spu:write remote packet types.
5751 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
5753 * xml-tdesc.c (tdesc_start_target): New.
5754 (target_attributes): New.
5755 (tdesc_elements): Use it.
5756 * features/gdb-target.dtd: Add #FIXED version attribute for
5759 2007-06-13 Arthur Huillet <arthur.huillet@free.fr>
5761 * mi/mi-cmd-var.c (mi_cmd_var_assign): Fix typo.
5763 2007-06-13 Claudio Fontana <claudio.fontana@gmail.com>
5765 * fork-child.c (fork_inferior): Update comment.
5767 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
5769 * features/Makefile: Generate regformats for mips-linux and
5771 * features/sort-regs.xsl: Correct typo.
5772 * regformats/reg-mips.dat, regformats/reg-mips64.dat: Delete.
5773 * regformats/mips-linux.dat, regformats/mips64-linux.dat: New generated
5776 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
5778 * config/mips/linux.mh (TDEP_XML): New.
5779 * features/mips-linux.xml, features/mips64-linux.xml: New files.
5780 * mips-linux-nat.c (mips_linux_register_addr): Handle
5781 MIPS_RESTART_REGNUM.
5782 (mips64_linux_register_addr): Likewise.
5783 (super_xfer_partial, mips_linux_xfer_partial): New.
5784 (_initialize_mips_linux_nat): Add them to the target_ops.
5785 * mips-linux-tdep.c (mips_supply_gregset): Handle MIPS_RESTART_REGNUM.
5786 (mips_fill_gregset, mips64_supply_gregset, mips64_fill_gregset)
5787 (mips_linux_o32_sigframe_init)
5788 (mips_linux_n32n64_sigframe_init): Likewise.
5789 (mips_linux_write_pc, mips_linux_restart_reg_p): New.
5790 (mips_linux_init_abi): Use mips_linux_write_pc. Check for the
5791 "org.gnu.gdb.mips.linux" feature.
5792 * mips-linux-tdep.h (MIPS_RESTART_REGNUM): New constant.
5793 (mips_linux_restart_reg_p): New prototype.
5794 * mips-tdep.c (mips_gdbarch_init): Pass tdesc_data to the OS/ABI
5795 initialization routine.
5796 * Makefile.in (mips-linux-tdep.o, mips-linux-nat.o): Update.
5798 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
5800 * Makefile.in (mips-tdep.o): Update.
5801 * mips-tdep.c (struct register_alias, mips_o32_aliases)
5802 (mips_n32_n64_aliases, mips_register_aliases): New.
5803 (mips_register_name): Call tdesc_register_name.
5804 (mips_tdesc_register_reggroup_p): New.
5805 (mips_pseudo_register_type, value_of_mips_user_reg): New.
5806 (mips_gdbarch_init): Add target-described register support.
5807 Register aliases for register names.
5808 * target-descriptions.c (tdesc_register_name): Make global.
5809 (tdesc_register_in_reggroup_p): New function, broken out from
5810 tdesc_register_reggroup_p.
5811 (tdesc_register_reggroup_p): Use it.
5812 * target-descriptions.h (tdesc_register_name)
5813 (tdesc_register_in_reggroup_p): New prototypes.
5814 * NEWS: Correct formatting. Mention MIPS register support.
5815 * features/mips-cp0.xml, features/mips-fpu.xml,
5816 features/mips64-cp0.xml, gdb/features/mips64-fpu.xml, mips-cpu.xml,
5817 features/mips64-cpu.xml: New files.
5819 2007-06-13 Markus Deuling <deuling@de.ibm.com>
5821 * gdbarch.sh (TARGET_ADDR_BIT): Replace by gdbarch_addr_bit.
5822 * valops.c (value_cast): Likewise.
5823 * utils.c (strlen_paddr, paddr, paddr_nz, paddress): Likewise.
5824 * ui-out.c (ui_out_field_core_addr): Likewise.
5825 * tracepoint.c (tracepoints_info): Likewise.
5826 * symtab.c (print_msymbol_info): Likewise.
5827 * solib-irix.c (irix_current_sos)
5828 (irix_open_symbol_file_object): Likewise.
5829 * remote.c (build_remote_gdbarch_data): Likewise.
5830 * prologue-value.c (make_pv_area): Likewise.
5831 * procfs.c (info_mappings_callback): Likewise.
5832 * printcmd.c (print_scalar_formatted)
5833 (deprecated_print_address_numeric): Likewise.
5834 * memattr.c (mem_info_command): Likewise.
5835 * linux-nat.c (linux_nat_info_proc_cmd): Likewise.
5836 * gdbtypes.c (build_flt, gdbtypes_post_init): Likewise.
5837 * exec.c (print_section_info): Likewise.
5838 * dwarf2read.c (read_subrange_type): Likewise.
5839 * dwarf2loc.c (find_location_expression): Likewise.
5840 * dwarf2expr.c (dwarf2_read_address, unsigned_address_type)
5841 (signed_address_type, execute_stack_op): Likewise.
5842 * breakpoint.c (print_one_breakpoint, breakpoint_1): Likewise.
5843 * gdbarch.c, gdbarch.h: Regenerate.
5845 2007-06-13 Markus Deuling <deuling@de.ibm.com>
5847 * gdbarch.sh (TARGET_ARCHITECTURE): Replace by gdbarch_bfd_arch_info.
5848 * arch-utils.c (show_architecture): Likewise.
5849 * remote-mips.c (mips_open): Likewise
5850 * nto-tdep.c (nto_find_and_open_solib)
5851 (nto_init_solib_absolute_prefix): Likewise.
5852 * nto-procfs (procfs_open): Likewise.
5853 * m68hc11-tdep.c (gdb_print_insn_m68hc11): Likewise.
5854 * gcore.c (default_gcore_mach, default_gcore_arch): Likewise.
5855 * gdbarch.c, gdbarch.h: Regenerate.
5857 2007-06-13 Markus Deuling <deuling@de.ibm.com>
5859 * gdbarch.sh (TARGET_BFD_VMA_BIT): Replace by gdbarch_bfd_vma_bit.
5860 * gdbtypes.c (build_flt): Likewise.
5861 * gdbarch.c, gdbarch.h: Regenerate.
5863 2007-06-13 Markus Deuling <deuling@de.ibm.com>
5865 * gdbarch.sh (BREAKPOINT_FROM_PC): Replace by
5866 gdbarch_breakpoint_from_pc.
5867 * s390-tdep.c (s390_gdbarch_init): Likewise (comment).
5868 * remote.c (remote_insert_breakpoint)
5869 (remote_insert_hw_breakpoint): Likewise.
5870 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Likewise.
5871 * mips-tdep.c (mips_breakpoint_from_pc): Likewise (comment).
5872 * breakpoint.h (bp_target_info): Likewise (comment).
5873 * breakpoint.c (read_memory_nobpt): Likewise.
5874 * mem-break.c (default_memory_insert_breakpoint): Likewise.
5875 (symtab.h, breakpoint.h): Remove include. Remove unnecessary comment.
5876 * gdbarch.c, gdbarch.h: Regenerate.
5878 2007-06-13 Markus Deuling <deuling@de.ibm.com>
5880 * gdbarch.sh (TARGET_PTR_BIT): Replace with gdbarch_ptr_bit.
5881 * solib-svr4.c (svr4_truncate_ptr): Likewise.
5882 * solib-pa64.c (read_dynamic_info): Likewise.
5883 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets): Likewise.
5884 * solib.c (info_sharedlibrary_command): Likewise.
5885 * s390-nat.c (SUBOFF): Likewise.
5886 * p-valprint.c (pascal_val_print): Likewise.
5887 * procfs.c (info_proc_mappings): Likewise.
5888 * printcmd.c (decode_format): Likewise.
5889 * nto-tdep.c (nto_truncate_ptr): Likewise.
5890 * mips-linux-tdep.c (mips_linux_get_longjmp_target)
5891 (mips64_linux_get_longjmp_target): Likewise.
5892 * m68k-tdep.c (m68k_get_longjmp_target): Likewise.
5893 * jv-valprint.c (java_value_print): Likewise.
5894 * jv-lang.c (get_java_object_header_size): Likewise.
5895 * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Likewise.
5896 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
5897 (hppa_hpux_unwind_adjust_stub): Likewise.
5898 * gnu-v3-abi.c (build_gdb_vtable_type): Likewise.
5899 * gdbtypes.c (make_pointer_type, make_reference_type)
5900 (smash_to_memberptr_type): Likewise.
5901 * gdbarch.c, gdbarch.h: Regenerate.
5903 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
5905 * mips-tdep.c (mips_print_register): Remove unused ALL argument.
5906 (print_gp_register_row): Stop before printing a register bigger
5907 than the ABI register size.
5908 (mips_print_registers_info): Update call to mips_print_register.
5910 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
5912 * expression.h (enum exp_opcode): Document a register name for
5914 * parse.c (write_dollar_variable): Write the register name for
5916 (operator_length_standard): Expect the register name following
5918 * ada-lang.c (resolve_subexp): Likewise.
5919 * ax-gdb.c (gen_expr): Likewise.
5920 * eval.c (evaluate_subexp_standard): Likewise.
5921 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
5923 * tracepoint.c (encode_actions): Likewise.
5925 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
5927 * utils.c (set_screen_size): Use INT_MAX for default columns.
5929 2007-06-13 Ulrich Weigand <uweigand@de.ibm.com>
5931 * remote.c (remote_protocol_features): Add qXfer:spu:read and
5932 qXfer:spu:write packet types.
5934 2007-06-12 Markus Deuling <deuling@de.ibm.com>
5936 * gdbarch.sh (DEPRECATED_STACK_ALIGN): Remove.
5937 * gdbarch.c, gdbarch.h: Regenerate.
5939 2007-06-12 Markus Deuling <deuling@de.ibm.com>
5941 * gdbarch.sh (STAB_REG_TO_REGNUM): Replace by
5942 gdbarch_stab_reg_to_regnum.
5943 * stabsread.c (define_symbol): Likewise.
5944 * gdbarch.sh (ECOFF_REG_TO_REGNUM): Replace by
5945 gdbarch_ecoff_reg_to_regnum.
5946 * mdebugread.c (parse_symbol): Likewise.
5947 * i386-tdep.c (i386_gdbarch_init): Likewise (comment).
5948 * gdbarch.sh (DWARF_REG_TO_REGNUM): Replace by
5949 gdbarch_dwarf_reg_to_regnum.
5950 * gdbarch.sh (SDB_REG_TO_REGNUM): Replace by gdbarch_sdb_reg_to_regnum.
5951 * coffread.c (process_coff_symbol): Likewise.
5952 * gdbarch.sh (DWARF2_REG_TO_REGNUM): Replace by
5953 gdbarch_dwarf2_reg_to_regnum.
5954 * dwarf2loc.c (dwarf_expr_read_reg,dwarf2_evaluate_loc_desc)
5955 (locexpr_describe_location): Likewise.
5956 * dwarf2-frame.c (read_reg,execute_cfa_program,dwarf2_frame_cache)
5957 (dwarf2_frame_prev_register,dwarf2_signal_frame_this_id): Likewise.
5958 * dwarf2loc.c (DWARF2_REG_TO_REGNUM): Remove macro.
5959 * dwarf2read.c (DWARF2_REG_TO_REGNUM): Remove macro.
5960 * gdbarch.c, gdbarch.h: Regenerate.
5962 2007-06-12 Markus Deuling <deuling@de.ibm.com>
5964 * gdbarch.sh (SMASH_TEXT_ADDRESS): Replace by
5965 gdbarch_smash_text_address.
5966 * somread.c (som_symtab_read): Likewise.
5967 * elfread.c (record_minimal_symbol): Likewise.
5968 * dbxread.c (process_one_symbol): Likewise.
5969 * coffread.c (coff_symtab_read): Likewise.
5970 * gdbarch.c, gdbarch.h: Regenerate.
5972 2007-06-12 Markus Deuling <deuling@de.ibm.com>
5974 * gdbarch.sh (REGISTER_TO_VALUE): Replace by gdbarch_register_to_value.
5975 * findvar.c (value_from_register): Likewise.
5976 * gdbarch.sh (VALUE_TO_REGISTER): Replace by gdbarch_value_to_register.
5977 * valops.c (value_assign): Likewise.
5978 * gdbarch.sh (CONVERT_REGISTER_P): Replace by
5979 gdbarch_convert_register_p.
5980 * findvar.c (value_from_register): Likewise.
5981 * valops.c (value_assign): Likewise.
5982 * gdbarch.c, gdbarch.h: Regenerate.
5984 2007-06-12 Markus Deuling <deuling@de.ibm.com>
5986 * gdbarch.sh (REGISTER_SIM_REGNO): Replace by
5987 gdbarch_register_sim_regno.
5988 * sim-regno.h (sim_regno): Likewise (comment).
5989 * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register): Likewise.
5990 * gdbarch.c, gdbarch.h: Regenerate.
5992 2007-06-12 Markus Deuling <deuling@de.ibm.com>
5994 * gdbarch.sh (TARGET_VIRTUAL_FRAME_POINTER): Replace by
5995 gdbarch_virtual_frame_pointer.
5996 * tracepoint.c (encode_actions): Likewise.
5997 * dwarf2loc.c (dwarf2_loc_desc_needs_frame): Likewise.
5998 * ax-gdb.c (gen_frame_args_address, gen_frame_locals_address): Likewise.
5999 * gdbarch.c, gdbarch.h: Regenerate.
6001 2007-06-12 Markus Deuling <deuling@de.ibm.com>
6003 * gdbarch.sh (TARGET_FLOAT_BIT): Replace by gdbarch_float_bit.
6004 * p-lang.c (pascal_create_fundamental_type): Likewise.
6005 * objc-lang.c (objc_create_fundamental_type): Likewise.
6006 * mdebugread.c (_initialize_mdebugread): Likewise.
6007 * m2-lang.c (m2_create_fundamental_type)
6008 (_initialize_m2_language): Likewise.
6009 * gdbtypes.c (build_gdbtypes): Likewise.
6010 * f-lang.c (f_create_fundamental_type, build_fortran_types): Likewise.
6011 * doublest.c (floatformat_from_length): Likewise.
6012 * c-lang.c (c_create_fundamental_type): Likewise.
6013 * ada-lang.c (ada_create_fundamental_type)
6014 (ada_language_arch_info): Likewise.
6015 * gdbarch.sh (TARGET_FLOAT_FORMAT): Replace by gdbarch_float_format.
6016 * value.c (unpack_double): Likewise (comment).
6017 * gdbtypes.c (build_gdbtypes): Likewise.
6018 * doublest.c (floatformat_from_length): Likewise.
6019 * gdbarch.sh (TARGET_DOUBLE_BIT): Replace by gdbarch_double_bit.
6020 * valarith.c (value_binop): Likewise.
6021 * p-lang.c (pascal_create_fundamental_type): Likewise.
6022 * objc-lang.c (objc_create_fundamental_type): Likewise.
6023 * mdebugread.c (_initialize_mdebugread): Likewise.
6024 * m2-lang.c (m2_create_fundamental_type): Likewise.
6025 * gdbtypes.c (build_gdbtypes): Likewise.
6026 * f-lang.c (f_create_fundamental_type, build_fortran_types): Likewise.
6027 * doublest.c (floatformat_from_length): Likewise.
6028 * cris-tdep.c (cris_gdbarch_init): Likewise (comment).
6029 * c-lang.c (c_create_fundamental_type): Likewise.
6030 * ada-lex.l (processReal): Likewise.
6031 * ada-lang.c (ada_create_fundamental_type)
6032 (ada_language_arch_info): Likewise.
6033 * gdbarch.sh (TARGET_DOUBLE_FORMAT): Replace by gdbarch_double_format.
6034 * value.c (unpack_double): Likewise (comment).
6035 * gdbtypes.c (build_gdbtypes): Likewise.
6036 * doublest.c (floatformat_from_length): Likewise.
6037 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Replace by
6038 gdbarch_long_double_bit.
6039 * p-lang.c (pascal_create_fundamental_type): Likewise.
6040 * objc-lang.c (objc_create_fundamental_type): Likewise.
6041 * m2-lang.c (m2_create_fundamental_type): Likewise.
6042 * gdbtypes.c (build_gdbtypes): Likewise.
6043 * f-lang.c (f_create_fundamental_type, build_fortran_types): Likewise.
6044 * doublest.c (floatformat_from_length): Likewise.
6045 * c-lang.c (c_create_fundamental_type): Likewise.
6046 * ada-lex.l (processReal): Likewise.
6047 * ada-lang.c (ada_create_fundamental_type)
6048 (ada_language_arch_info): Likewise.
6049 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Replace by
6050 gdbarch_long_double_format.
6051 * gdbtypes.c (build_gdbtypes): Likewise.
6052 * doublest.c (floatformat_from_length): Likewise.
6053 * gdbarch.c, gdbarch.h: Regenerate.
6055 2007-06-12 Markus Deuling <deuling@de.ibm.com>
6057 * gdbarch.sh (TARGET_SHORT_BIT): Replace by gdbarch_int_bit.
6058 * ada-lang.c (ada_create_fundamental_type)
6059 (ada_language_arch_info): Likewise.
6060 * c-lang.c (c_create_fundamental_type): Likewise.
6061 * f-lang.c (f_create_fundamental_type, build_fortran_types): Likewise.
6062 * gdbtypes.c (build_gdbtypes, gdbtypes_post_init): Likewise.
6063 * m2-lang.c (m2_create_fundamental_type): Likewise.
6064 * objc-lang.c (objc_create_fundamental_type): Likewise.
6065 * p-lang.c (pascal_create_fundamental_type): Likewise.
6066 * gdbarch.sh (TARGET_INT_BIT): Replace by gdbarch_int_bit.
6067 * c-exp.y (parse_number): Likewise.
6068 * objc-exp.y (parse_number): Likewise.
6069 * ada-lex.l (processInt): Likewise.
6070 * f-exp.y (parse_number): Likewise.
6071 * p-exp.y (parse_number): Likewise.
6072 * ada-lang.c (ada_create_fundamental_type, ada_language_arch_info)
6073 (gdbtypes_post_init, build_gdbtypes): Likewise.
6074 * p-lang.c (pascal_create_fundamental_type): Likewise.
6075 * parse.c (build_parse): Likewise.
6076 * xcoffread.c (_initialize_xcoffread): Likewise.
6077 * stabsread.c (define_symbol, read_one_struct_field, read_enum_type)
6078 (read_range_type): Likewise.
6079 * objc-lang.c (objc_create_fundamental_type): Likewise.
6080 * f-lang.c (build_fortran_types, f_create_fundamental_type): Likewise.
6081 * m2-lang.c (m2_create_fundamental_type, _initialize_m2_language)
6082 (m2_create_fundamental_type): Likewise.
6083 * c-lang.c (c_create_fundamental_type): Likewise.
6084 * coffread.c (coff_read_enum_type): Likewise.
6085 * mdebugread.c (parse_symbol, _initialize_mdebugread): Likewise.
6086 * dwarf2read.c (new_symbol): Likewise.
6087 * gdbarch.sh (TARGET_LONG_BIT): Replace by gdbarch_long_bit.
6088 * c-exp.y (parse_number): Likewise.
6089 * objc-exp.y (parse_number): Likewise.
6090 * ada-lex.l (processInt): Likewise.
6091 * f-exp.y (parse_number): Likewise.
6092 * p-exp.y (parse_number): Likewise.
6093 * valarith.c (value_binop): Likewise.
6094 * symfile.c (read_target_long_array, simple_overlay_update_1): Likewise.
6095 * ada-lang.c (ada_create_fundamental_type)
6096 (ada_language_arch_info): Likewise.
6097 * gdbtypes.c (build_gdbtypes, gdbtypes_post_init): Likewise.
6098 * symfile.c (TARGET_LONG_BYTES): Likewise.
6099 * p-lang.c (pascal_create_fundamental_type): Likewise.
6100 * objc-lang.c (objc_create_fundamental_type): Likewise.
6101 * m2-lang.c (m2_create_fundamental_type): Likewise.
6102 * f-lang.c (f_create_fundamental_type): Likewise.
6103 * c-lang.c (c_create_fundamental_type): Likewise.
6104 * coffread.c (decode_base_type): Likewise.
6105 * gdbarch.sh (TARGET_LONG_LONG_BIT): Replace by gdbarch_long_long_bit.
6106 * c-exp.y (parse_number): Likewise.
6107 * objc-exp.y (parse_number): Likewise.
6108 * p-exp.y (parse_number): Likewise.
6109 * ada-lang.c (ada_create_fundamental_type)
6110 (ada_language_arch_info): Likewise.
6111 * gdbtypes.c (gdbtypes_post_init, build_gdbtypes): Likewise.
6112 * stabsread.c (read_range_type): Likewise.
6113 * p-lang.c (pascal_create_fundamental_type): Likewise.
6114 * objc-lang.c (objc_create_fundamental_type): Likewise.
6115 * m2-lang.c (m2_create_fundamental_type): Likewise.
6116 * f-lang.c (f_create_fundamental_type): Likewise.
6117 * c-lang.c (c_create_fundamental_type): Likewise.
6118 * gdbarch.c, gdbarch.h: Regenerate.
6120 2007-06-12 Andreas Schwab <schwab@suse.de>
6122 * frame-unwind.h (frame_dealloc_cache_ftype): Define.
6123 (struct frame_unwind): Add dealloc_cache.
6124 * frame.c (reinit_frame_cache): Call dealloc_cache on all caches.
6126 * libunwind-frame.h (libunwind_frame_dealloc_cache): Declare.
6127 * libunwind-frame.c (libunwind_frame_dealloc_cache): Define.
6128 (libunwind_frame_unwind): Set dealloc_cache.
6129 * ia64-tdep.c (ia64_libunwind_frame_unwind): Set dealloc_cache.
6131 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
6132 Markus Deuling <deuling@de.ibm.com>
6134 * remote.c (remote_write_qxfer): New function.
6135 (remote_xfer_partial): Add handling for TARGET_OBJECT_SPU.
6136 (remote_read_qxfer): Do not cache empty objects.
6137 (_initialize_remote): Add PACKET_qXfer_spu_read and
6138 PACKET_qXfer_spu_write.
6140 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
6142 * target.h (enum target_object): Add TARGET_OBJECT_SPU.
6143 * spu-linux-nat.c (spu_xfer_partial): Handle TARGET_OBJECT_SPU.
6145 * spu-tdep.h (SPU_NUM_PSEUDO_REGS): Add 5 pseudo registers.
6146 (enum spu_regnum): Add SPU_FPSCR_REGNUM, SPU_SRR0_REGNUM,
6147 SPU_LSLR_REGNUM, SPU_DECR_REGNUM, SPU_DECR_STATUS_REGNUM.
6148 * spu-tdep.c (infospucmdlist): New variable.
6149 (spu_register_name): Handle additional pseudo registers.
6150 (spu_register_type): Likewise.
6151 (spu_pseudo_register_read): Likewise.
6152 (spu_pseudo_register_write): Likewise.
6153 (spu_pseudo_register_read_spu): New function.
6154 (spu_pseudo_register_write_spu): Likewise.
6155 (info_spu_event_command): New function.
6156 (info_spu_signal_command): Likewise.
6157 (info_spu_mailbox_list): Likewise.
6158 (info_spu_mailbox_command): Likewise.
6159 (spu_mfc_get_bitfield): Likewise.
6160 (info_spu_dma_cmdlist): Likewise.
6161 (info_spu_dma_command): Likewise.
6162 (info_spu_proxydma_command): Likewise.
6163 (info_spu_command): Likewise.
6164 (_initialize_spu_tdep): Install "info spu" commands.
6166 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
6168 * spu-linux-nat.c (spu_proc_xfer_spu): Do not return failure when
6169 accessing non-seekable spufs files.
6171 2007-06-09 Markus Deuling <deuling@de.ibm.com>
6173 * gdbarch.sh (SKIP_TRAMPOLINE_CODE): Replace by
6174 gdbarch_skip_trampoline_code.
6175 * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Likewise (comment).
6176 * objc-lang.c (objc_skip_trampoline)
6177 (objc_submethod_helper_data): Likewise.
6178 * m32c-lang.c (m32c_skip_trampoline_code): Likewise (comment).
6179 * infrun.c (handle_inferior_event): Likewise.
6180 * gnu-v3-abi.c (gnuv3_skip_trampoline): Likewise.
6181 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Replace by
6182 gdbarch_in_solib_return_trampoline.
6183 * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Likewise (comment).
6184 * infrun.c (handle_inferior_event): Likewise.
6185 * hppa-tdep.c (hppa_stub_unwind_sniffer): Likewise.
6186 * gdbarch.c, gdbarch.h: Regenerate.
6188 2007-06-09 Markus Deuling <deuling@de.ibm.com>
6190 * gdbarch.sh (SKIP_PROLOGUE): Replace by gdbarch_skip_prologue.
6191 * symtab.c (find_function_start_sal, in_prologue): Likewise.
6192 * linespec.c (minsym_found): Likewise.
6193 * infrun.c (step_into_function): Likewise.
6194 * gdbarch.c, gdbarch.h: Regenerate.
6196 2007-06-09 Markus Deuling <deuling@de.ibm.com>
6198 * gdbarch.sh (NAME_OF_MALLOC): Replace by gdbarch_name_of_malloc.
6199 * valops.c (value_allocate_space_in_inferior): Likewise.
6200 * gdbarch.c, gdbarch.h: Regenerate.
6202 2007-06-09 Markus Deuling <deuling@de.ibm.com>
6204 * gdbarch.sh (MEMORY_INSERT_BREAKPOINT): Replace by
6205 gdbarch_memory_insert_breakpoint.
6206 * mem-break.c (memory_insert_breakpoint): Likewise.
6207 * gdbarch.sh (MEMORY_REMOVE_BREAKPOINT): Replace by
6208 gdbarch_memory_remove_breakpoint.
6209 * mem-break.c (memory_remove_breakpoint): Likewise.
6210 * gdbarch.c, gdbarch.h: Regenerate.
6212 2007-06-09 Markus Deuling <deuling@de.ibm.com>
6214 * gdbarch.sh (FETCH_TLS_LOAD_MODULE_ADDRESS): Replace by
6215 gdbarch_fetch_tls_load_module_address.
6216 * gdbarch.sh (FETCH_TLS_LOAD_MODULE_ADDRESS_P): Replace by
6217 gdbarch_fetch_tls_load_module_address_p.
6218 * gdbarch.c, gdbarch.h: Regenerate.
6220 2007-06-09 Markus Deuling <deuling@de.ibm.com>
6222 * gdbarch.sh (DECR_PC_AFTER_BREAK): Replace by
6223 gdbarch_decr_pc_after_break.
6224 * tracepoint.c (trace_dump_command): Likewise.
6225 * solib-sunos.c (sunos_solib_create_inferior_hook): Likewise.
6226 * linux-thread-db.c (check_event): Likewise.
6227 * linux-nat.c (cancel_breakpoints_callback): Likewise.
6228 * infrun.c (adjust_pc_after_break, normal_stop): Likewise.
6229 * frame.h: Likewise (comment).
6230 * dummy-frame.c (deprecated_pc_in_call_dummy): Likewise.
6231 * aix-thread.c (aix_thread_wait): Likewise.
6232 * gdbarch.c, gdbarch.h: Regenerate.
6234 2007-06-09 Markus Deuling <deuling@de.ibm.com>
6236 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS): Replace by
6237 gdbarch_address_class_type_flags.
6238 * dwarf2read.c (read_tag_pointer_type): Likewise.
6239 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS_P): Replace by
6240 gdbarch_address_class_type_flags_p.
6241 * dwarf2read.c (read_tag_pointer_type): Likewise.
6242 * gdbarch.c, gdbarch.h: Regenerate.
6244 2007-06-09 Markus Deuling <deuling@de.ibm.com>
6246 * gdbarch.sh (ADDR_BITS_REMOVE): Replace by gdbarch_addr_bits_remove.
6247 * value.c (value_as_address): Likewise (comment).
6248 * remote-mips.c (common_breakpoint): Likewise.
6249 * regcache.c (read_pc_pid): Likewise.
6250 * printcmd.c (do_one_display): Likewise.
6251 * monitor.c (monitor_write_memory, monitor_read_memory)
6252 (monitor_insert_breakpoint): Likewise.
6253 * mips-tdep.c (heuristic_proc_start): Likewise.
6254 * infrun.c (insert_step_resume_breakpoint_at_frame)
6255 (insert_step_resume_breakpoint_at_caller): Likewise.
6256 * buildsym.c (record_line): Likewise.
6257 * arm-tdep.c (arm_scan_prologue, thumb_get_next_pc)
6258 (arm_get_next_pc): Likewise.
6259 * armnbsd-nat.c (arm_supply_gregset, fetch_register, store_register)
6260 (store_regs): Likewise.
6261 * arm-linux-tdep.c (arm_linux_supply_gregset): Likewise.
6262 * arm-linux-nat.c (fetch_register, fetch_regs): Likewise.
6263 * gdbarch.c, gdbarch.h: Regenerate.
6265 2007-06-09 Markus Deuling <deuling@de.ibm.com>
6267 * gdbarch.sh (REGISTER_NAME): Replace by gdbarch_register_name.
6268 * tracepoint.c (scope_info): Likewise.
6269 * target.c (debug_print_register): Likewise.
6270 * stack.c (frame_info): Likewise.
6271 * sh-tdep.c (sh_register_reggroup_p): Likewise.
6272 * sh64-tdep.c (sh64_do_fp_register, sh64_do_register)
6273 (sh64_media_print_registers_info)
6274 (sh64_compact_print_registers_info): Likewise.
6275 * rs6000-tdep.c (rs6000_register_reggroup_p): Likewise.
6276 * remote-sim.c (gdbsim_fetch_register): Likewise.
6277 * remote.c (packet_reg): Likewise (comment).
6278 * reggroups.c (default_register_reggroup_p): Likewise.
6279 * regcache.c (regcache_dump): Likewise.
6280 * printcmd.c (address_info): Likewise.
6281 * ppc-linux-nat.c (fetch_register, store_register): Likewise.
6282 * mt-dep.c (mt_registers_info): Likewise.
6283 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Likewise (comment).
6284 * mips-tdep.c (mips_register_reggroup_p, mips_read_fp_register_single)
6285 (mips_read_fp_register_double, mips_print_fp_register)
6286 (mips_print_register, print_gp_register_row, mips_print_registers_info)
6287 (mips_register_sim_regno): Likewise.
6288 * m68klinux-nat.c (regmap, fetch_register, store_register): Likewise.
6289 * inf-ptrace.c (inf_ptrace_fetch_register)
6290 (inf_ptrace_store_register): Likewise.
6291 * infcmd.c (default_print_registers_info): Likewise.
6292 * ia64-linux-nat.c (ia64_linux_fetch_register)
6293 (ia64_linux_store_register): Likewise.
6294 * i386-linux-nat.c (fetch_register, store_register): Likewise.
6295 * i386gnu-nat.c (gnu_fetch_registers, gnu_store_registers): Likewise.
6296 * hppa-linux-nat.c (fetch_register, store_register): Likewise.
6297 * hppa-hpux-nat.c (hppa_hpux_fetch_register)
6298 (hppa_hpux_store_register): Likewise.
6299 * findvar.c (locate_var_value): Likewise.
6300 * dwarf2loc.c (locexpr_describe_location): Likewise.
6301 * dwarf2-frame.c (execute_cfa_program): Likewise.
6302 * arm-tdep.c (arm_push_dummy_call): Likewise.
6303 * arch-utils.c (legacy_register_sim_regno): Likewise.
6304 * alpha-tdep.c (alpha_register_reggroup_p): Likewise.
6305 * alpha-nat.c (fetch_osf_core_registers): Likewise.
6306 * mi/mi-main.c (mi_cmd_data_list_register_names)
6307 (mi_cmd_data_list_changed_registers, mi_cmd_data_list_register_values)
6308 (mi_cmd_data_write_register_values): Likewise.
6309 * gdbarch.c, gdbarch.h: Regenerate.
6311 2007-06-07 Daniel Jacobowitz <dan@codesourcery.com>
6313 * target-memory.c (blocks_to_erase): Correct off-by-one error.
6315 2007-06-06 Vladimir Prus <vladimir@codesourcery.com>
6317 * remote.c (process_g_packet): Don't check size.
6318 * gdbarch.sh: Remove register_bytes_ok.
6319 * gdbarch.c: Regenerated.
6320 * gdbarch.h: Regenerated.
6321 * m68k-tdep.c (REGISTER_BYTES_NOFP): Remove.
6322 (m68k_register_bytes_ok): Remove.
6323 (m68k_gdbarch_init): Don't register m68k_register_bytes_ok.
6325 2007-06-06 Andreas Schwab <schwab@suse.de>
6327 * libunwind-frame.c (unw_destroy_addr_space_p): Define.
6328 (destroy_addr_space_name): Define.
6329 (libunwind_load): Get address of destroy_addr_space function.
6330 (libunwind_frame_cache): Destroy unw_addr_space_t object before
6331 returning unsuccessfully.
6332 (libunwind_frame_sniffer): Destroy unw_addr_space_t object before
6334 (libunwind_sigtramp_frame_sniffer): Likewise.
6335 (libunwind_get_reg_special): Likewise.
6337 2007-06-06 Markus Deuling <deuling@de.ibm.com>
6339 * gdbarch.sh (FETCH_POINTER_ARGUMENT): Replace by
6340 gdbarch_fetch_pointer_argument.
6341 * objc-lang.c (OBJC_FETCH_POINTER_ARGUMENT): Likewise.
6342 * gdbarch.c, gdbarch.h: Regenerate.
6344 2007-06-06 Markus Deuling <deuling@de.ibm.com>
6346 * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Replace by
6347 gdbarch_have_nonsteppable_watchpoint.
6348 * infrun.c (handle_inferior_event, adjust_pc_after_break): Likewise.
6349 * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Replace by
6350 gdbarch_cannot_step_breakpoint.
6351 * infrun.c (resume): Likewise.
6352 * gdbarch.c, gdbarch.h: Regenerate.
6354 2007-06-06 Markus Deuling <deuling@de.ibm.com>
6356 * gdbarch.sh (FRAME_ARGS_SKIP): Replace by gdbarch_frame_args_skip.
6357 * stack.c (print_frame_args): Likewise.
6358 * gdbarch.sh (FRAME_NUM_ARGS): Replace by gdbarch_frame_num_args.
6359 * stack.c (print_args_stub, frame_info): Likewise.
6360 * gdbarch.sh (FRAME_NUM_ARGS_P): Replace by gdbarch_frame_num_args_p.
6361 * stack.c (print_args_stub, frame_info): Likewise.
6362 * gdbarch.c, gdbarch.h: Regenerate.
6364 2007-06-06 Markus Deuling <deuling@de.ibm.com>
6366 * gdbarch.sh (COFF_MAKE_MSYMBOL_SPECIAL): Replace by
6367 gdbarch_coff_make_msymbol_special.
6368 * coffread.c (coff_symtab_read): Likewise.
6369 * gdbarch.sh (ELF_MAKE_MSYMBOL_SPECIAL): Replace by
6370 gdbarch_elf_make_msymbol_special.
6371 * elfread.c (elf_symtab_read): Likewise.
6372 * mips-tdep.c (mips_elf_make_msymbol_special): Likewise (comment).
6373 * sh64-tdep.c (MSYMBOL_IS_SPECIAL): Likewise (comment).
6374 * gdbarch.c, gdbarch.h: Regenerate.
6376 2007-06-06 Markus Deuling <deuling@de.ibm.com>
6378 * gdbarch.sh (FRAME_RED_ZONE_SIZE): Replace by
6379 gdbarch_frame_red_zone_size.
6380 * gdbarch.c, gdbarch.h: Regenerate.
6382 2007-06-06 Markus Deuling <deuling@de.ibm.com>
6384 * gdbarch.sh (INNER_THAN): Replace by gdbarch_inner_than.
6385 * infcall.c (call_function_by_hand): Likewise.
6386 * gcore.c (derive_stack_segment): Likewise.
6387 * frame.c (frame_id_inner): Likewise.
6388 * arch-utils.c (core_addr_lessthan): Likewise (comment).
6389 * ada-lang.c (ensure_lval): Likewise.
6390 * gdbarch.c, gdbarch.h: Regenerate.
6392 2007-06-06 Markus Deuling <deuling@de.ibm.com>
6394 * gdbarch.sh (ADDRESS_TO_POINTER): Replace by
6395 gdbarch_address_to_pointer.
6396 * findvar.c (store_typed_address): Likewise.
6397 * gdbtypes.c (make_pointer_type): Likewise (comment).
6398 * procfs.c (procfs_address_to_host_pointer): Likewise.
6399 * std-regs.c (value_of_builtin_frame_reg): Likewise.
6400 (value_of_builtin_frame_fp_reg): Likewise.
6401 (value_of_builtin_frame_pc_reg): Likewise.
6402 * utils.c (paddress): Likewise (comment).
6403 * gdbarch.sh (POINTER_TO_ADDRESS): Replace by
6404 gdbarch_pointer_to_address.
6405 * findvar.c (extract_typed_address): Likewise.
6406 * gdbtypes.c (make_pointer_type): Likewise (comment).
6407 * valops.c (value_cast): Likewise (comment).
6408 * gdbarch.c, gdbarch.h: Regenerate.
6410 2007-06-06 Markus Deuling <deuling@de.ibm.com>
6412 * gdbarch.sh (GET_LONGJMP_TARGET): Replace by gdbarch_get_longjmp_target.
6413 * infrun.c (handle_inferior_event): Likewise.
6414 * gdbarch.sh (GET_LONGJMP_TARGET_P): Replace by
6415 gdbarch_get_longjmp_target_p.
6416 * breakpoint.c (breakpoint_re_set): Likewise.
6417 * infrun.c (handle_inferior_event): Likewise.
6418 * gdbarch.c, gdbarch.h: Regenerate.
6420 2007-06-06 Ulrich Weigand <uweigand@de.ibm.com>
6422 * hppa-hpux-tdep.c (args_for_find_stub, HP_ACC_EH_notify_hook,
6423 HP_ACC_EH_set_hook_value, HP_ACC_EH_notify_callback, HP_ACC_EH_break,
6424 HP_ACC_EH_catch_throw, HP_ACC_EH_catch_catch, __eh_notification,
6425 hp_cxx_exception_support, hp_cxx_exception_support_initialized,
6426 eh_notify_hook_addr, eh_notify_callback_addr, eh_break_addr,
6427 eh_catch_throw_addr, break_callback_sal, setup_d_pid_in_inferior,
6428 find_stub_with_shl_get, cover_find_stub_with_shl_get,
6429 initialize_hp_cxx_exception_support, child_enable_exception_callback,
6430 current_ex_event, child_get_current_exception_event): Remove.
6431 (hppa_hpux_inferior_created): Remove.
6432 (hppa_hpux_init_abi): Do not install hppa_hpux_inferior_created.
6434 * breakpoint.h (deprecated_exception_catchpoints_are_fragile): Remove.
6435 (deprecated_exception_support_initialized): Remove.
6436 * breakpoint.c (deprecated_exception_catchpoints_are_fragile): Remove.
6437 (deprecated_exception_support_initialized): Remove.
6438 (breakpoint_init_inferior): Remove handling of non-zero
6439 deprecated_exception_catchpoints_are_fragile.
6441 * symtab.h (deprecated_hp_som_som_object_present): Remove.
6442 * symtab.c (deprecated_hp_som_som_object_present): Remove.
6443 * c-typeprint.c (c_type_print_base): Remove handling of non-zero
6444 deprecated_hp_som_som_object_present.
6445 * eval.c (evaluate_subexp_standard): Likewise.
6446 * valops.c (value_cast): Likewise.
6448 * parse.c (parse_nested_classes_for_hpacc, coloncolon): Remove.
6449 * parser-defs.h (parse_nested_classes_for_hpacc): Remove.
6450 * c-exp.y (yylex): Do not call parse_nested_classes_for_hpacc.
6452 2007-06-06 Ulrich Weigand <uweigand@de.ibm.com>
6454 * objfiles.h (ImportEntry, ExportEntry): Remove types.
6455 (struct objfile): Remove import_list, import_list_size,
6456 export_list, export_list_size members.
6457 (is_in_import_list): Remove prototype.
6458 * objfiles.c (is_in_import_list): Remove.
6459 * somread.c (init_import_symbols, init_export_symbols): Remove.
6460 (som_symfile_read): Do not call init_import_symbols. Do not
6461 set objfile->export_list and objfile->export_list_size.
6463 2007-06-05 Daniel Jacobowitz <dan@codesourcery.com>
6465 * dwarf2read.c (dwarf2_symbol_mark_computed): Fix formatting.
6466 Use the original objfile if necessary.
6468 2007-06-04 Daniel Jacobowitz <dan@codesourcery.com>
6470 * defs.h (ldirname): New prototype.
6471 * dwarf2read.c (read_file_scope): Use DW_AT_name if DW_AT_comp_dir is
6473 * utils.c (ldirname): New function.
6474 * xml-tdesc.c (file_read_description_xml): Use ldirname.
6476 2007-06-01 Ulrich Weigand <uweigand@de.ibm.com>
6478 * spu-tdep.c (spu_push_dummy_call): Store stack back chain.
6480 2007-06-01 Joel Brobecker <brobecker@adacore.com>
6482 * solib-svr4.c (svr4_solib_create_inferior_hook): Remove warning.
6484 2007-06-01 Ulrich Weigand <uweigand@de.ibm.com>
6486 * irix5-nat.c (JB_ELEMENT_SIZE, get_longjmp_target): Remove.
6488 2007-06-01 Ulrich Weigand <uweigand@de.ibm.com>
6490 * ppc-linux-tdep.c (INSTR_SC, INSTR_LI_R0_0x6666, INSTR_LI_R0_0x7777,
6491 INSTR_LI_R0_NR_sigreturn, INSTR_LI_R0_NR_rt_sigreturn): Remove.
6492 (PPC_LINUX_SIGNAL_FRAMESIZE, PPC_LINUX_REGS_PTR_OFFSET,
6493 PPC_LINUX_HANDLER_PTR_OFFSET): Remove.
6494 (ppc_linux_in_sigtramp, insn_is_sigreturn,
6495 ppc_linux_at_sigtramp_return_path): Remove.
6497 2007-05-31 Markus Deuling <deuling@de.ibm.com>
6499 * xtensa-tdep.c (XTENSA_IS_ENTRY, extract_call_winsize)
6500 (xtensa_register_write_masked, xtensa_register_read_masked)
6501 (xtensa_extract_return_value, xtensa_store_return_value
6502 (xtensa_push_dummy_call, xtensa_breakpoint_from_pc): Replace
6503 TARGET_BYTE_ORDER by gdbarch_byte_order.
6504 * sh-tdep.c (sh_breakpoint_from_pc, gdb_print_insn_sh)
6505 (sh_justify_value_in_reg, sh_next_flt_argreg, sh_push_dummy_call_fpu)
6506 (sh_extract_return_value_fpu, sh_store_return_value_fpu): Likewise.
6507 * sh64-tdep.c (sh64_breakpoint_from_pc, gdb_print_insn_sh64)
6508 (sh64_push_dummy_call, sh64_extract_return_value)
6509 (sh64_store_return_value, sh64_register_convert_to_virtual)
6510 (sh64_register_convert_to_raw, sh64_pseudo_register_read)
6511 (sh64_pseudo_register_write, sh64_do_fp_register)
6512 (sh64_frame_prev_register): Likewise.
6513 * score-tdep.c (score_print_insn, score_breakpoint_from_pc)
6514 (score_return_value, score_push_dummy_call, score_fetch_inst): Likewise.
6515 * rs6000-tdep.c (rs6000_breakpoint_from_pc, rs6000_push_dummy_call)
6516 (e500_move_ev_register,gdb_print_insn_powerpc): Likewise.
6517 * remote-m32r-sdi.c (m32r_resume, m32r_wait): Likewise.
6518 * ppc-linux-nat.c (store_register): Likewise.
6519 * nto-tdep.c (nto_find_and_open_solib)
6520 (nto_init_solib_absolute_prefix): Likewise.
6521 * mips-tdep.c (mips_pseudo_register_read, mips_pseudo_register_write)
6522 (mips_convert_register_p, mips_eabi_push_dummy_call)
6523 (mips_n32n64_push_dummy_call, mips_n32n64_return_value)
6524 (mips_o32_push_dummy_call, mips_o32_return_value)
6525 (mips_o64_push_dummy_call, mips_o64_return_value, mips_o64_return_value)
6526 (mips_read_fp_register_single, mips_read_fp_register_double)
6527 (mips_print_register, print_gp_register_row, gdb_print_insn_mips)
6528 (mips_breakpoint_from_pc): Likewise.
6529 * mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset): Likewise.
6530 * mips-linux-tdep.c (mips64_supply_fpregset, mips64_fill_fpregset)
6531 (mips_linux_o32_sigframe_init): Likewise.
6532 * m32r-tdep.c (m32r_memory_insert_breakpoint)
6533 (m32r_memory_remove_breakpoint, m32r_breakpoint_from_pc): Likewise.
6534 * libunwind-frame.c (libunwind_frame_cache, libunwind_frame_sniffer)
6535 (libunwind_sigtramp_frame_sniffer, libunwind_get_reg_special): Likewise.
6536 * iq2000-tdep.c (iq2000_breakpoint_from_pc): Likewise.
6537 * coffread.c (process_coff_symbol): Likewise.
6538 * arm-tdep.c (convert_from_extended, convert_to_extended)
6539 (gdb_print_insn_arm): Likewise.
6541 2007-05-31 Markus Deuling <deuling@de.ibm.com>
6543 * gdbarch.sh (NUM_REGS): Replace by gdbarch_num_regs.
6544 * i386-tdep.c (i386_dbx_reg_to_regnum)
6545 (i386_svr4_reg_to_regnum): Likewise.
6546 * inf-ptrace.c (inf_ptrace_fetch_registers)
6547 (inf_ptrace_store_registers): Likewise.
6548 * corelow.c (get_core_registers): Likewise.
6549 * i386-linux-nat.c (supply_gregset, fill_gregset)
6550 (i386_linux_fetch_inferior_registers)
6551 (i386_linux_store_inferior_registers): Likewise.
6552 * remote.c (init_remote_state,packet_reg_from_regnum)
6553 (packet_reg_from_pnum,process_g_packet,remote_fetch_registers)
6554 (remote_prepare_to_store,store_registers_using_G)
6555 (remote_store_registers,remote_arch_state): Likewise.
6556 * tracepoint.c (encode_actions): Likewise.
6557 * mi/mi-main.c (mi_cmd_data_list_register_names)
6558 (mi_cmd_data_list_changed_registers,mi_cmd_data_list_register_values)
6559 (mi_cmd_data_write_register_values): Likewise.
6560 * tui/tui-regs.c (tui_show_register_group)
6561 (tui_show_register_group): Likewise.
6562 * xtensa-tdep.h (FP_ALIAS): Likewise.
6563 * xtensa-tdep.c (xtensa_register_name,xtensa_register_type)
6564 (xtensa_reg_to_regnum,xtensa_pseudo_register_read)
6565 (xtensa_pseudo_register_write,xtensa_register_reggroup_p): Likewise.
6566 * win32-nat.c (do_win32_fetch_inferior_registers)
6567 (do_win32_store_inferior_registers,fetch_elf_core_registers
6568 * user-regs.h: Likewise (comment).
6569 * user-regs.c (user_reg, user_reg_map_name_to_regnum): Likewise.
6570 * trad-frame.c (trad_frame_alloc_saved_regs): Likewise.
6571 * target-descriptions.h: Likewise (comment).
6572 * target-descriptions.c (tdesc_use_registers): Likewise (comment).
6573 * target.c (debug_print_register): Likewise.
6574 * stack.c (frame_info): Likewise.
6575 * stabsread.c (define_symbol): Likewise.
6576 * sh64-tdep.c (sh64_do_pseudo_register,sh64_print_register)
6577 (sh64_media_print_registers_info)
6578 (sh64_compact_print_registers_info): Likewise.
6579 * rs6000-tdep.c (rs6000_register_sim_regno): Likewise.
6580 * rs6000-nat.c (fetch_register,store_register): Likewise.
6581 * remote-sim.c (one2one_register_sim_regno,gdbsim_fetch_register)
6582 (gdbsim_fetch_register,gdbsim_store_register): Likewise.
6583 * remote-mips.c (mips_fetch_registers,mips_store_registers): Likewise.
6584 * remote-m32r-sdi.c (m32r_fetch_registers)
6585 (m32r_store_registers): Likewise.
6586 * reggroups.c (default_register_reggroup_p): Likewise.
6587 * regcache.c (init_regcache_descr,register_size,regcache,regcache_save)
6588 (regcache_restore,regcache_dump): Likewise.
6589 * monitor.c (monitor_fetch_registers,monitor_store_registers): Likewise.
6590 * mips-tdep.c (mips_xfer_register,mips_register_name)
6591 (mips_register_reggroup_p,mips_pseudo_register_read)
6592 (mips_pseudo_register_write,mips_convert_register_p,mips_register_type)
6593 (mips_unwind_pc,mips_unwind_sp,mips_unwind_dummy_id,set_reg_offset)
6594 (mips16_scan_prologue,mips_insn16_frame_cache,reset_saved_regs)
6595 (mips32_scan_prologue,mips_insn32_frame_cache,read_next_frame_reg)
6596 (mips_n32n64_return_value,mips_o32_return_value,mips_o64_return_value)
6597 (print_gp_register_row,mips_print_registers_info)
6598 (mips_stab_reg_to_regnum,mips_dwarf_dwarf2_ecoff_reg_to_regnum)
6599 (mips_register_sim_regno): Likewise.
6600 * mips-linux-tdep.c (mips_linux_o32_sigframe_init)
6601 (mips_linux_n32n64_sigframe_init): Likewise.
6602 * mips-linux-nat.c (mips_linux_register_addr)
6603 (mips64_linux_register_addr): Likewise.
6604 * findvar.c (value_of_register): Likewise.
6605 * infcmd.c (default_print_registers_info,registers_info)
6606 (print_vector_info,print_float_info): Likewise.
6607 * mips64obsd-tdep.c (mips64obsd_sigframe_init): Likewise.
6608 * inf-child.c (inf_child_fetch_inferior_registers): Likewise.
6609 * m68k-tdep.c (m68k_dwarf_reg_to_regnum): Likewise.
6610 * m68hc11-tdep.c (m68hc11_frame_unwind_cache(: Likewise.
6611 * m32r-tdep.c (m32r_frame_unwind_cache): Likewise.
6612 * ia64-linux-nat.c (ia64_register_addr,ia64_cannot_fetch_register)
6613 (ia64_cannot_store_register,ia64_linux_fetch_registers)
6614 (ia64_linux_store_registers): Likewise.
6615 * hpux-thread.c (hpux_thread_fetch_registers)
6616 (hpux_thread_store_registers): Likewise.
6617 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM,E_PSEUDO_EXR_REGNUM)
6618 (h8300_init_frame_cache,h8300_frame_cache,h8300_frame_prev_register)
6619 (h8300_register_type): Likewise.
6620 * dwarf2-frame.c (dwarf2_frame_cache)
6621 (dwarf2_frame_state_alloc_regs): Likewise.
6622 * cris-tdep.c (cris_register_size,cris_cannot_fetch_register)
6623 (cris_cannot_store_register,crisv32_cannot_fetch_register)
6624 (crisv32_cannot_store_register,cris_register_name): Likewise.
6625 * avr-tdep.c (avr_frame_unwind_cache): Likewise.
6626 * arch-utils.c (legacy_register_sim_regno)
6627 (legacy_virtual_frame_pointer): Likewise.
6628 * arm-tdep.c (arm_make_prologue_cache,arm_register_sim_regno):Likewise.
6629 * arm-tdep.h: Likewise (comment).
6630 * frv-tdep.c (frv_register_sim_regno): Likewise.
6631 * m68klinux-nat.c (old_fetch_inferior_registers)
6632 (old_store_inferior_registers): Likewise.
6633 * m32c-tdep.c (m32c_virtual_frame_pointer): Likewise.
6634 * irix5-nat.c (fetch_core_registers): Likewise.
6635 * hppa-tdep.c (hppa_frame_cache): Likewise.
6636 * hppa-linux-nat.c (hppa_linux_register_addr)
6637 (hppa_linux_fetch_inferior_registers)
6638 (hppa_linux_store_inferior_registers): Likewise.
6639 * hppa-hpux-nat.c (hppa_hpux_fetch_inferior_registers)
6640 (hppa_hpux_store_inferior_registers): Likewise.
6641 * amd64-nat.c (amd64_native_gregset_reg_offset)
6642 (amd64_supply_native_gregset,amd64_collect_native_gregset): Likewise.
6643 * dbug-rom.c (dbug_regname): Likewise.
6644 * m68hc11-tdep.c (m68hc11_frame_unwind_cache)
6645 (HARD_PAGE_REGNUM (comment)): Likewise.
6646 * gdbarch.sh (NUM_PSEUDO_REGS): Replace by gdbarch_num_pseudo_regs.
6647 * i386-tdep.c (i386_dbx_reg_to_regnum)
6648 (i386_svr4_reg_to_regnum): Likewise.
6649 * mi/mi-main.c (mi_cmd_data_list_register_names)
6650 (mi_cmd_data_list_changed_registers,mi_cmd_data_list_register_values)
6651 (mi_cmd_data_write_register_values): Likewise.
6652 * gdbarch.c, gdbarch.h: Regenerate.
6653 * tui/tui-regs.c (tui_show_register_group): Likewise.
6654 * xtensa-tdep.h (FP_ALIAS): Likewise.
6655 * user-regs.h: Likewise (comment).
6656 * user-regs.c (user_reg, user_reg_map_name_to_regnum): Likewise.
6657 * trad-frame.c (trad_frame_alloc_saved_regs): Likewise.
6658 * target-descriptions.h: Likewise (comment).
6659 * target.c (debug_print_register): Likewise.
6660 * stack.c (frame_info): Likewise.
6661 * stabsread.c (define_symbol): Likewise.
6662 * sh64-tdep.c (sh64_print_register,sh64_media_print_registers_info)
6663 (sh64_compact_print_registers_info): Likewise.
6664 * rs6000-tdep.c (rs6000_register_sim_regno): Likewise.
6665 * regcache.c (init_regcache_descr,register_size,regcache,regcache_save
6666 (regcache_restore,regcache_dump): Likewise.
6667 * mips-tdep.c (print_gp_register_row,mips_print_registers_info)
6668 (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
6669 (mips_stab_reg_to_regnum): Likewise.
6670 * findvar.c (value_of_register): Likewise.
6671 * infcmd.c (default_print_registers_info,registers_info)
6672 (print_vector_info,print_float_info): Likewise.
6673 * m68k-tdep.c (m68k_dwarf_reg_to_regnum): Likewise.
6674 * h8300-tdep.c (h8300_register_type): Likewise.
6675 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
6676 * frame.h (SIZEOF_FRAME_SAVED_REGS): Likewise.
6677 * xtensa-tdep.c (xtensa_register_type,xtensa_reg_to_regnum)
6678 (xtensa_pseudo_register_read,xtensa_pseudo_register_write): Likewise.
6679 * parse.c: Remove comment.
6680 * gdbarch.c, gdbarch.h: Regenerate
6682 2007-05-31 Markus Deuling <deuling@de.ibm.com>
6684 * gdbarch.sh (CANNOT_FETCH_REGISTER): Replace by
6685 gdbarch_cannot_fetch_register.
6686 * alpha-nat.c (fetch_osf_core_registers): Likewise.
6687 * hppa-linux-nat.c (fetch_register): Likewise.
6688 * inf-ptrace.c (inf_ptrace_fetch_register): Likewise.
6689 * m68klinux-nat.c (fetch_register): Likewise.
6690 * mipsnbsd-tdep.c (mipsnbsd_supply_reg, mipsnbsd_supply_fpreg):
6692 * gdbarch.sh (CANNOT_STORE_REGISTER): Replace by
6693 gdbarch_cannot_store_register.
6694 * hppa-linux-nat.c (store_register): Likewise.
6695 * inf-ptrace.c (inf_ptrace_store_register): Likewise.
6696 * regcache.c (regcache_raw_write): Likewise.
6697 * m68klinux-nat.c (store_register): Likewise.
6698 * mipsnbsd-tdep.c (mipsnbsd_fill_reg, mipsnbsd_fill_fpreg): Likewise.
6699 * gdbarch.c, gdbarch.h: Regenerate.
6701 2007-05-31 Markus Deuling <deuling@de.ibm.com>
6703 * gdbarch.sh (TARGET_OSABI): Replace by gdbarch_osabi.
6704 * gdbarch.c, gdbarch.h: Regenerate.
6706 2007-05-31 Markus Deuling <deuling@de.ibm.com>
6708 * gdbarch.sh (TARGET_CHAR_SIGNED): Replace by gdbarch_char_signed.
6709 * gdbtypes.c (build_gdbtypes, gdbtypes_post_init): Likewise.
6710 * gdbarch.c, gdbarch.h: Regenerate.
6712 2007-05-31 Markus Deuling <deuling@de.ibm.com>
6714 * gdbarch.sh (TARGET_BYTE_ORDER): Replace by gdbarch_byte_order.
6715 * ax-gdb.c (gen_bitfield_ref): Likewise.
6716 * mi/mi-main.c (get_register): Likewise.
6717 * findvar.c (default_value_from_register, extract_signed_integer)
6718 (extract_unsigned_integer, extract_long_unsigned_integer)
6719 (store_signed_integer, store_unsigned_integer): Likewise.
6720 * regcache.c (regcache_dump): Likewise.
6721 * value.c (lookup_internalvar, value_of_internalvar)
6722 (set_internalvar): Likewise.
6724 * valprint.c (print_binary_chars, print_octal_chars)
6725 (print_decimal_chars, print_hex_chars, print_char_chars): Likewise.
6726 * infcmd.c (default_print_registers_info): Likewise.
6727 * arch-utils.c (selected_byte_order, show_endian): Likewise.
6728 * stabsread.c (define_symbol): Likewise.
6729 * doublest.c (floatformat_from_length, floatformat_from_type)
6730 (extract_typed_floating, store_typed_floating): Likewise.
6731 * gdbarch.c, gdbarch.h: Regenerate.
6733 2007-05-31 Markus Deuling <deuling@de.ibm.com>
6735 * gdbarch.sh (CALL_DUMMY_LOCATION): Replace by
6736 gdbarch_call_dummy_location.
6737 * infcall.c (call_function_by_hand): Likewise.
6738 * inferior.h: Change comment.
6739 * arch-utils.c: Change comment.
6740 * gdbarch.c, gdbarch.h: Regenerate.
6742 2007-05-28 Joel Brobecker <brobecker@adacore.com>
6744 * solib-aix5.c: Delete.
6745 * Makefile.in (solib-aix5.o): Delete rule.
6747 2007-05-23 Daniel Jacobowitz <dan@codesourcery.com>
6749 * breakpoint.h (enum bpstat_what_main_action): Remove
6750 BPSTAT_WHAT_THROUGH_SIGTRAMP.
6751 * infrun.c (process_event_stop_test): Do not check for it.
6753 2007-05-22 Chris Dearman <chris@mips.com>
6754 Maciej W. Rozycki <macro@mips.com>
6756 * ser-unix.c (show_serial_hwflow): New function.
6757 (hardwire_raw): Add hardware flow control support.
6758 (_initialize_ser_hardwire): Add "set/show remoteflow".
6759 * Makefile.in (ser-unix.o): Depend on $(gdbcmd_h).
6760 * NEWS: Document the new command.
6762 2007-05-21 Ulrich Weigand <uweigand@de.ibm.com>
6764 * config/i386/tm-linux.h (sys_quotactl): Do not define.
6765 * configure.ac (sys_quotactl, START_INFERIOR_TRAPS_EXPECTED): Do not
6766 define for i[[3456]]86-*-linux* native configurations.
6767 * config.in, configure: Regenerate.
6769 2007-05-19 Joel Brobecker <brobecker@adacore.com>
6771 * rs6000-nat.c (xcoff_relocate_symtab): Do nothing if debugging
6772 a core file. Add comment in the function description.
6774 2007-05-18 Caroline Tice <ctice@apple.com>
6776 * c-valprint.c (c_value_print): If the initialized field of the
6777 value struct is 0, print out "[uninitialized]" before the value.
6778 * dwarf2expr.c (execute_stack_op): Initialize ctx->initialized field;
6779 allow DW_OP_GNU_uninit as legal op following a DW_OP_reg op or a
6780 DW_OP_regx op; add case for DW_OP_GNU_uninit and update
6781 ctx->initialized appropriately. Verify no location op follows
6783 * dwarf2expr.h (struct dwarf_expr_context): New field, initialized.
6784 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Add call to
6785 set_value_initialized.
6786 * dwarf2read.c (dwarf_stack_op_name): Add case for DW_OP_GNU_uninit.
6787 (decode_locdesc): Add case for DW_OP_GNU_uninit.
6788 * value.c (struct value): New field, initialized.
6789 (allocate_value): Initialize new field.
6790 (set_value_initialized): New function.
6791 (value_initialized): New function.
6792 * value.h (value_initialized): New extern declaration.
6793 (set_value_initialized): Likewise.
6795 2007-05-18 Caroline Tice <ctice@apple.com>
6797 * MAINTAINERS (Write After Approval): Add self.
6799 2007-05-17 Joel Brobecker <brobecker@adacore.com>
6801 * gdbtypes.c (make_reference_type): Preserve the type chain
6802 and set the length of all the variants of the pointer type.
6804 2007-05-17 Joel Brobecker <brobecker@adacore.com>
6806 * gdbtypes.c (make_pointer_type): Preserve the pointer type chain
6807 and set the length of all the variants of the pointer type.
6809 2007-05-17 Maciej W. Rozycki <macro@mips.com>
6811 * mips-tdep.c (mips_n32n64_push_dummy_call): Fix and reformat a
6813 (mips_o64_push_dummy_call): Reformat a comment.
6815 2007-05-17 Qinwei <qinwei@sunnorth.com.cn>
6817 * score-tdep.c (score_frame_cache->fp, score_analyze_prologue)
6818 (score_prologue_frame_base_address): Return fp to keep gdb print
6819 local variables correctly when debugging information is stabs.
6821 (score_analyze_prologue): For software watchpoint, fetch all the
6822 instructions from range [startaddr, pc] once and identify them locally
6823 to reduce memory access.
6824 (score_malloc_and_get_memblock, score_free_memblock)
6825 (score_adjust_memblock_ptr): New functions.
6826 (score_fetch_inst): Fetch single instruction or mutiple instructions.
6828 (score_target_can_use_watch, score_stopped_by_watch)
6829 (score_target_insert_watchpoint, score_target_remove_watchpoint)
6830 (score_target_insert_hw_breakpoint, score_target_remove_hw_breakpoint):
6831 New functions for remote & local hw-watchpoint and hw-breakpoint.
6833 2007-05-16 Alfred M. Szmidt <ams@gnu.org>
6835 * reply_mig_hack.awk: Check for `auto const mach_msg_type_t'
6836 declarations as well.
6838 2007-05-16 Ulrich Weigand <uweigand@de.ibm.com>
6840 * config/arm/embed.mt (DEPRECATED_TM_FILE): Set to tm-arm.h.
6841 * config/arm/tm-embed.h: Delete file.
6843 * arm-tdep.h (arm_software_single_step): Declare.
6844 * arm-tdep.c (arm_software_single_step): Make global.
6845 (arm_gdbarch_init): Move set_gdbarch_software_single_step call
6847 * arm-linux-tdep.c (arm_linux_init_abi): ... here ...
6848 * armnbsd-tdep.c (arm_netbsd_init_abi_common): ... here ...
6849 * armobsd-tdep.c (armobsd_init_abi): ... here ...
6850 * arm-wince-tdep.c (arm_wince_init_abi): ... and here.
6852 * arm-tdep.c (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT): No longer
6853 allow defines to be overriden by TM file.
6854 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Likewise. Also,
6855 change default to {0xbe,0xbe}.
6856 * armobsd-tdep.c (arm_obsd_thumb_le_breakpoint,
6857 arm_obsd_thumb_be_breakpoint): New global variables.
6858 (armobsd_init_abi): Override tdep->thumb_breakpoint and
6859 tdep->thumb_breakpoint_size.
6860 * arm-wince-tdep.c (arm_wince_thumb_le_breakpoint): New variable.
6861 (arm_wince_init_abi): Override tdep->thumb_breakpoint and
6862 tdep->thumb_breakpoint_size.
6864 * arm-tdep.c (arm_gdbarch_init): Add set_gdbarch_skip_trampoline_code.
6866 2007-05-16 Daniel Jacobowitz <dan@codesourcery.com>
6868 * NEWS: Mention removed "set mips stack-arg-size" and "set mips
6871 * mips-tdep.c (MIPS32_REGSIZE, MIPS64_REGSIZE): New constants.
6872 (size_auto, size_32, size_64, size_enums, mips_abi_regsize_string)
6873 (mips_stack_argsize_string, mips_stack_argsize): Delete.
6874 (mips_abi_regsize): Simplify.
6875 (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call)
6876 (mips_n32n64_return_value, mips_o32_push_dummy_call)
6877 (mips_o32_return_value, mips_o64_push_dummy_call)
6878 (mips_o64_return_value): Propogate constant register sizes. Use the
6879 ABI register size instead of mips_stack_argsize.
6880 (mips_dump_tdep): Don't print mips_stack_argsize.
6881 (_initialize_mips_tdep): Remove saved-gpreg-size and stack-arg-size
6884 2007-05-16 Daniel Jacobowitz <dan@codesourcery.com>
6886 * config/mips/linux.mt (DEPRECATED_TM_FILE): Delete.
6887 * config/mips/tm-linux.h: Delete.
6888 * mips-linux-tdep.c (mips_svr4_so_ops): New.
6889 (mips_linux_in_dynsym_resolve_code): Make static. Use
6890 svr4_in_dynsym_resolve_code.
6891 (mips_linux_init_abi): Initialize mips_svr4_so_ops. Call
6893 * solib-svr4.c (svr4_in_dynsym_resolve_code, svr4_so_ops): Make
6895 * solib-svr4.h (svr4_so_ops, svr4_in_dynsym_resolve_code): Declare.
6896 * Makefile.in (mips-linux-tdep.o): Update.
6897 * solib.c (set_solib_ops): New.
6898 (current_target_so_ops): Update comment.
6899 * solib.h (set_solib_ops): New prototype.
6901 2007-05-16 Chris Dearman <chris@mips.com>
6903 * printcmd.c (do_examine): Fix typos in a comment.
6905 2007-05-16 Richard Sandiford <richard@codesourcery.com>
6907 * configure.ac: Allow sysroots to be relocated under $prefix as
6908 well as $exec_prefix.
6909 * configure: Regenerate.
6911 2007-05-14 Ulrich Weigand <uweigand@de.ibm.com>
6913 * hppa-hpux-tdep.c: Do not include <dl.h> or <machine/save_state.h>.
6914 (offsetof): Do not define.
6915 (find_stub_with_shl_get): Use numerical value 3 instead of
6916 symbolic value TYPE_PROCEDURE.
6918 2007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
6920 * gdb_proc_service.h (paddr_t): Delete typedef.
6921 * proc-service.c (ps_addr_to_core_addr, core_addr_to_ps_addr): New.
6922 (ps_xfer_memory): Take a psaddr_t. Use ps_addr_to_core_addr.
6923 (ps_pglobal_lookup): Take a psaddr_t *. Use core_addr_to_ps_addr.
6924 (ps_pdread, ps_pdwrite, ps_ptread, ps_ptwrite): Take a psaddr_t.
6925 * sol-thread.c (gdb_ps_addr_t): Use psaddr_t instead of paddr_t.
6926 * Makefile.in (proc-service.o): Update.
6928 2007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
6930 * Makefile.in (mips-tdep.o): Update.
6931 * mips-tdep.c (mips_gdbarch_init): Register the dwarf2 CFI
6934 2007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
6936 * dwarf2-frame.c (dwarf2_frame_prev_register): Use pack_long
6937 instead of store_typed_address.
6938 * value.c (pack_long): New.
6939 (value_from_longest): Use it.
6940 * value.h (pack_long): New prototype.
6942 2007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
6944 * dwarf2-frame.c (read_encoded_value): Correct typo. Use
6945 DW_EH_PE_signed if appropriate.
6947 2007-05-14 Paul Brook <paul@codesourcery.com>
6948 Daniel Jacobowitz <dan@codesourcery.com>
6950 * dwarf2read.c (dwarf2_debug_line_missing_file_complaint): New
6952 (dwarf_decode_lines): Check for line info without a file.
6954 2007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
6956 * linux-thread-db.c (thread_db_pid_to_str): Print thread IDs
6959 2007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
6961 * jv-exp.y (push_fieldnames): Use STRUCTOP_PTR instead of
6963 * jv-lang.c (evaluate_subexp_java): Handle STRUCTOP_PTR instead of
6965 * jv-typeprint.c (java_print_type): Do not crash on NULL varstring.
6967 2007-05-14 Ulrich Weigand <uweigand@de.ibm.com>
6969 * gdbarch.sh (read_sp): Remove.
6970 * gdbarch.c, gdbarch.h: Regenerate.
6971 * frame.c (frame_sp_unwind): Do not call TARGET_READ_SP.
6973 * avr-tdep.c (avr_read_sp): Remove.
6974 (avr_unwind_sp): New function.
6975 (avr_gdbarch_init): Install unwind_sp instead of read_sp callback.
6976 * mips-tdep.c (mips_read_sp): Remove.
6977 (mips_unwind_sp): New function.
6978 (mips_gdbarch_init): Install unwind_sp instead of read_sp callback.
6979 * score-tdep.c (score_read_unsigned_register): Remove.
6980 (score_read_sp): Remove.
6981 (score_unwind_sp): New function.
6982 (score_gdbarch_init): Install unwind_sp instead of read_sp callback.
6984 2007-05-14 Maxim Grigoriev <maxim2405@gmail.com>
6986 * buildsym.c (start_subfile): Handle absolute pathnames
6987 while comparing subfile names.
6989 2007-05-13 Ulrich Weigand <uweigand@de.ibm.com>
6991 * hppa-hpux-tdep.c: Include "regcache.h".
6992 * hppa-linux-tdep.c: Likewise.
6993 * hppa-tdep.c: Include "gdb_stdint.h".
6994 (find_unwind_entry): Cast host pointer to uintptr_t before passing
6996 * Makefile.in: Update dependencies.
6998 2007-05-13 Ulrich Weigand <uweigand@de.ibm.com>
7000 * blockframe.c: Remove obsolete comments.
7001 * alpha-nat.c (fetch_osf_core_registers): Update comment.
7002 * arm-tdep.h (enum gdb_regnum): Remove obsolete part of comment.
7003 * hppa-tdep.h (enum hppa_regnum): Likewise.
7004 * mips-tdep.h: Likewise.
7005 * m68hc11-tdep.c: Likewise.
7007 2007-05-13 Ulrich Weigand <uweigand@de.ibm.com>
7009 * inferior.h (read_sp): Remove prototype.
7010 * regcache.c (read_sp): Remove.
7011 * gcore.c (derive_stack_segment): Use get_frame_sp instead of read_sp.
7012 * infcall.c (call_function_by_hand): Likewise.
7013 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Use regcache instead
7015 * rs6000-tdep.c (rs6000_push_dummy_call): Likewise.
7017 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
7019 * i386-linux-nat.c (i386_linux_resume): Use regcache functions
7020 instead of read_register and read_register_pid.
7022 * ia64-linux-nat.c (enable_watchpoints_in_psr): Use REGCACHE
7023 argument instead of PTID. Use regcache functions instead of
7025 (ia64_linux_insert_watchpoint): Update call.
7026 (ia64_linux_stopped_data_address): Use regcache functions
7027 instead of read_register_pid and write_register_pid.
7029 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
7031 * libunwind-frame.h (struct regcache): Add forward declaration.
7032 (libunwind_get_reg_special): Add REGCACHE argument.
7033 * libunwind-frame.c (libunwind_get_reg_special): Add REGCACHE
7034 argument. Pass it to unw_init_remote_p.
7036 * ia64-tdep.c (ia64_pseudo_register_read): Pass regcache to
7037 libunwind_get_reg_special.
7038 (ia64_access_reg): Remove "write" case.
7039 (ia64_access_fpreg): Likewise. Read from next_frame passed
7040 as callback argument instead of from current_regcache.
7041 (ia64_access_rse_reg): Remove "write" case. Read from regcache
7042 passed as callback argument instead of from current_regcache.
7043 (ia64_access_rse_fpreg): New function.
7044 (ia64_unw_rse_acce): Use it instead of ia64_access_fpreg.
7046 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
7048 * NEWS: Mention SPU overlay support.
7050 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
7052 * spu-tdep.c (spu_frame_unwind_cache): Add comment.
7054 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
7056 * breakpoint.c (remove_breakpoint): Do not remove software
7057 breakpoints in unmapped overlay sections.
7059 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
7061 * spu-tdep.c: Include "observer.h".
7062 (spu_frame_unwind_cache): Unwind PC through overlay return stubs.
7063 (spu_overlay_data): New variable.
7064 (struct spu_overlay_table): New type.
7065 (spu_get_overlay_table, spu_overlay_update_osect, spu_overlay_update,
7066 spu_overlay_new_objfile): New functions.
7067 (spu_gdbarch_init): Install spu_overlay_update.
7068 (_initialize_spu_tdep): Register spu_overlay_new_objfile,
7069 allocate spu_overlay_data objfile data.
7071 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
7073 * gdbarch.sh (overlay_update): New gdbarch function.
7074 (struct obj_section): Add forward declaration.
7075 * gdbarch.c, gdbarch.h: Regenerate.
7077 * symfile.c (simple_overlay_update): Make global.
7078 (target_overlay_update): Remove variable.
7079 (overlay_is_mapped): Call gdbarch_overlay_update instead of
7080 target_overlay_update.
7081 (overlay_load_command): Likewise.
7082 * symfile.h (struct obj_section): Add forward declaration.
7083 (simple_overlay_update): Add prototype.
7085 * m32r-tdep.c (m32r_gdbarch_init): Install simple_overlay_update.
7087 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
7089 * observer.sh: Add "struct objfile" forward declaration.
7090 * target.h (deprecated_target_new_objfile_hook): Remove.
7091 * symfile.c (deprecated_target_new_objfile_hook): Remove.
7092 (clear_symtab_users): Call observer_notify_new_objfile.
7093 (symbol_file_add_with_addrs_or_offsets): Likewise.
7094 * rs6000-nat.c: Include "observer.h".
7095 (vmap_ldinfo): Call observer_notify_new_objfile.
7096 (xcoff_relocate_core): Likewise.
7097 * remote.c (remote_new_objfile_chain): Remove.
7098 (remote_new_objfile): Do not call remote_new_objfile_chain.
7099 (_initialize_remote): Use observer_attach_new_objfile.
7100 * tui/tui-hooks.c (tui_target_new_objfile_chain): Remove.
7101 (tui_new_objfile_hook): Do not call tui_target_new_objfile_chain.
7102 (_initialize_tui_hooks): Use observer_attach_new_objfile.
7103 * aix-thread.c: Include "observer.h".
7104 (target_new_objfile_chain): Remove.
7105 (new_objfile): Do not call target_new_objfile_chain.
7106 (_initialize_aix_thread): Use observer_attach_new_objfile.
7107 * hpux-thread.c: Include "observer.h"
7108 (target_new_objfile_chain): Remove.
7109 (hpux_thread_new_objfile): Make static. Do not call
7110 target_new_objfile_chain.
7111 (_initialize_hpux_thread): Use observer_attach_new_objfile.
7112 * linux-thread-db.c: Include "observer.h".
7113 (target_new_objfile_chain): Remove.
7114 (thread_db_new_objfile): Do not call target_new_objfile_chain.
7115 (_initialize_thread_db): Use observer_attach_new_objfile.
7116 * sol-thread.c: Include "observer.h".
7117 (target_new_objfile_chain): Remove.
7118 (sol_thread_new_objfile): Make static. Do not call
7119 target_new_objfile_chain.
7120 (_initialize_sol_thread): Use observer_attach_new_objfile.
7121 * Makefile.in (aix-thread.o, hpux-thread.o, linux-thread-db.o,
7122 rs6000-nat.o, sol-thread.o, tui-hooks.o): Add dependency on
7125 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
7127 * gdbarch.sh (remote_translate_xfer_address): Remove.
7128 * gdbarch.h, gdbarch.c: Regenerate.
7129 * arch-utils.c (generic_remote_translate_xfer_address): Remove.
7130 * arch-utils.h (generic_remote_translate_xfer_address): Remove.
7131 * remote.c (remote_write_bytes_aux, remote_read_bytes): Do not
7132 call gdbarch_remote_translate_xfer_address.
7133 * frv-tdep.c (frv_gdbarch_init): Do not call
7134 set_gdbarch_remote_translate_xfer_address.
7135 * ia64-tdep.c (ia64_remote_translate_xfer_address): Remove.
7136 (ia64_gdbarch_init): Do not install it.
7138 2007-05-11 Bob Wilson <bob.wilson@acm.org>
7140 * NEWS: Mention change in handling the -tui option.
7142 2007-05-11 Daniel Jacobowitz <dan@codesourcery.com>
7144 * linux-thread-db.c (enable_thread_event_reporting): Fix comment
7147 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
7149 * breakpoint.c (single_step_breakpoint_inserted_here_p): New function.
7150 (breakpoint_inserted_here_p): Call it.
7151 (software_breakpoint_inserted_here_p): Likewise.
7153 2007-05-10 Ulrich Weigand <uweigand@de.ibm.com>
7155 * inf-ptrace.c (inf_ptrace_register_u_offset): Adapt parameter list.
7156 (inf_ptrace_fetch_register): Add register_u_offset callback parameters
7157 GDBARCH and STORE_P. Handle callback (CORE_ADDR) -1 return value.
7158 (inf_ptrace_store_register): Likewise.
7159 (inf_ptrace_trad_target): Adapt register_u_offset parameter list.
7160 * inf-ptrace.h (inf_ptrace_trad_target): Likewise.
7162 * vax-nat.c (vax_register_u_offset): Adapt parameter list.
7164 * linux-nat.c (linux_trad_target): Adapt parameter list.
7165 * linux-nat.h (linux_trad_target): Likewise.
7167 * alpha-linux-nat.c (alpha_linux_register_u_offset): Adapt parameters.
7169 * mips-linux-nat.c (mips_linux_cannot_fetch_register): Remove.
7170 (mips_linux_cannot_store_register): Likewise.
7171 (mips_linux_register_addr): Add GDBARCH and STORE_P parameters.
7172 Return (CORE_ADDR) -1 for registers that cannot be fetched or
7173 stored via ptrace. Use GDBARCH instead of current_gdbarch.
7174 (mips64_linux_register_addr): Likewise.
7175 (mips_linux_register_u_offset): Adapt parameter list. Pass
7176 GDBARCH and STORE_P on to mips{64}_linux_register_addr.
7178 * config/mips/linux.mh (NAT_FILE): Set to config/nm-linux.h.
7179 * config/mips/nm-linux.h: Delete file.
7181 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
7183 * remote.c (remote_detach): Error out if remote can't detach.
7185 2007-05-10 Luis Machado <luisgpm@br.ibm.com>
7187 * rs6000-tdep.c: (deal_with_atomic_sequence) Stores branch
7188 instruction's opcode in the "opcode" variable and declares new
7189 variable "closing_insn".
7191 2007-05-10 Chris Dearman <chris@mips.com>
7192 Maciej W. Rozycki <macro@mips.com>
7194 * cli/cli-setshow.c (do_setshow_command): Remove trailing
7195 whitespace when setting a var_filename.
7197 2007-05-09 Bob Wilson <bob.wilson@acm.org>
7199 * main.c (captured_main): Recognize -tui option and print an error
7200 message when the TUI is not configured.
7202 2007-05-09 Andreas Schwab <schwab@suse.de>
7204 * mipsnbsd-tdep.c (mipsnbsd_ilp32_fetch_link_map_offsets): Don't
7205 set removed members.
7206 (mipsnbsd_lp64_fetch_link_map_offsets): Likewise.
7208 2007-05-08 Ulrich Weigand <uweigand@de.ibm.com>
7210 * gdbarch.sh (deprecated_store_struct_return): Remove.
7211 * gdbarch.c, gdbarch.h: Regenerate.
7212 * frv-tdep.c (frv_store_struct_return): Remove.
7213 (frv_gdbarch_init): Do not install it.
7215 2007-05-08 Ulrich Weigand <uweigand@de.ibm.com>
7217 * config/i386/nm-i386sol2.h (USE_PROC_FS): Do not define.
7218 * config/mips/nm-irix5.h (USE_PROC_FS): Do not define.
7219 * config/nm-linux.h (USE_PROC_FS): Do not undefine.
7221 2007-05-08 Ulrich Weigand <uweigand@de.ibm.com>
7223 * spu-linux-nat.c: Include "gdb_stdint.h".
7224 (fetch_ppc_register): Use uint64_t instead of unsigned long long.
7225 (fetch_ppc_memory_1, store_ppc_memory_1): Likewise.
7226 (fetch_ppc_memory, store_ppc_memory): Fix coding style.
7227 (spu_symbol_file_add_from_memory): Use strtoulst instead of sscanf.
7228 (spu_child_wait): Mark up string for translation.
7230 2007-05-08 Paul Gilliam <pgilliam@us.ibm.com>
7231 Luis Machado <luisgpm@br.ibm.com>
7233 * rs6000-tdep.c: (LWARX_MASK, LWARX_INSTRUCTION, LDARX_INSTRUCTION,
7234 STWCX_MASK, STWCX_INSTRUCTION, STDCX_INSTRUCTION, BC_MASK,
7235 BC_INSTRUCTION): Define.
7236 (deal_with_atomic_sequence): New function.
7237 (rs6000_software_single_step): Call deal_with_atomic_sequence.
7238 (rs6000_gdbarch_init): Install deal_with_atomic_sequence as
7239 gdbarch_software_single_step routine.
7241 2007-05-07 Ulrich Weigand <uweigand@de.ibm.com>
7243 * spu-linux-nat.c (fetch_ppc_register, fetch_ppc_memory_1,
7244 store_ppc_memory_1, fetch_ppc_memory, store_ppc_memory,
7245 parse_spufs_run, spu_bfd_iovec_pread, spu_bfd_open,
7246 spu_symbol_file_add_from_memory, spu_child_post_startup_inferior,
7247 spu_child_post_attach, spu_fetch_inferior_registers,
7248 spu_store_inferior_registers, spu_xfer_partial): Store PPE-side
7249 memory addresses as ULONGEST, not CORE_ADDR.
7251 2007-05-07 Ulrich Weigand <uweigand@de.ibm.com>
7253 * gdbarch.sh: Add skip_permanent_breakpoint callback.
7254 * gdbarch.h, gdbarch.c: Regenerate.
7256 * infrun.c (SKIP_PERMANENT_BREAKPOINT): Remove default definition.
7257 (resume): Call gdbarch_skip_permanent_breakpoint instead of
7258 SKIP_PERMANENT_BREAKPOINT. Inline default case.
7260 * hppa-hpux-tdep.c (hppa_skip_permanent_breakpoint): Make static.
7261 Add REGCACHE argument. Use it instead of read/write_register.
7262 (hppa_hpux_init_abi): Install hppa_skip_permanent_breakpoint.
7264 * config/pa/tm-hppah.h: Delete file.
7265 * config/pa/hppa64.mt (DEPRECATED_TM_FILE): Set to tm-hppa.h.
7266 * config/pa/hppahpux.mt (DEPRECATED_TM_FILE): Likewise.
7268 2007-05-07 Daniel Jacobowitz <dan@codesourcery.com>
7270 * Makefile.in (c-lang.o, gnu-v3-abi.o): Update.
7271 * NEWS: Mention improved C++ thunk support.
7272 * c-lang.c (cplus_language_defn): Mention cplus_skip_trampoline.
7273 * cp-abi.c (cplus_skip_trampoline): New.
7274 * cp-abi.h (cplus_skip_trampoline): New prototype.
7275 (struct cp_abi_ops): Add skip_trampoline member.
7276 * gnu-v3-abi.c (gnuv3_skip_trampoline): New.
7277 (init_gnuv3_ops): Set skip_trampoline.
7279 2007-05-06 Daniel Jacobowitz <dan@codesourcery.com>
7281 * rs6000-tdep.c (struct frame_extra_info): Delete.
7283 2007-05-06 Daniel Jacobowitz <dan@codesourcery.com>
7285 * linux-thread-db.c: Update some FIXME comments.
7286 (thread_db_xfer_partial): Delete.
7287 (init_thread_db_ops): Do not set to_xfer_partial.
7289 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7291 * inftarg.c, infptrace.c: Remove files.
7292 * Makefile.in (ALLDEPFILES): Remove inftarg.c and infptrace.c
7293 (inftarg.o, infptrace.o): Remove rules.
7294 * gdbcore.h (register_addr): Remove prototype.
7295 * inferior.h (kill_inferior, store_inferior_registers,
7296 fetch_inferior_registers, attach, detach, ptrace_wait, child_resume,
7297 call_ptrace, pre_fork_inferior): Remove prototypes.
7298 * target.h (child_xfer_memory, child_pid_to_exec_file,
7299 child_core_file_to_sym_file, child_post_attach,
7300 child_post_startup_inferior, child_acknowledge_created_inferior,
7301 child_insert_fork_catchpoint, child_remove_fork_catchpoint,
7302 child_insert_vfork_catchpoint, child_remove_vfork_catchpoint,
7303 child_insert_exec_catchpoint, child_remove_exec_catchpoint,
7304 child_follow_fork, child_reported_exec_events_per_exec_call,
7305 child_has_exited, child_thread_alive): Remove prototypes.
7307 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7309 * sparc-nat.h (sparc_fetch_inferior_registers): Add prototype.
7310 (sparc_store_inferior_registers): Likewise.
7311 * sparc-nat.c (fetch_inferior_registers): Rename to ...
7312 (sparc_fetch_inferior_registers): ... this.
7313 (store_inferior_registers): Rename to ...
7314 (sparc_store_inferior_registers): ... this.
7315 (sparc_target): Update callback names.
7316 * sparc-linux.nat.c (_initialize_sparc_linux_nat): Likewise.
7317 * sparc64-linux.nat.c (_initialize_sparc64_linux_nat): Likewise.
7319 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7321 * linux-nat.c (child_post_attach): Rename to ...
7322 (linux_child_post_attach): ... this. Make static.
7323 (child_follow_fork): Rename to ...
7324 (linux_child_follow_fork): ... this. Make static.
7325 (child_insert_fork_catchpoint): Rename to ...
7326 (linux_child_insert_fork_catchpoint): ... this. Make static.
7327 (child_insert_vfork_catchpoint): Rename to ...
7328 (linux_child_insert_vfork_catchpoint): ... this. Make static.
7329 (child_insert_exec_catchpoint): Rename to ...
7330 (linux_child_insert_exec_catchpoint): ... this. Make static.
7331 (child_pid_to_exec_file): Rename to ...
7332 (linux_child_pid_to_exec_file): ... this. Make static.
7334 (linux_handle_extended_wait): Update call.
7335 (linux_xfer_partial): Update callback routine names.
7337 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7339 * configure.host (alpha*-*-osf[12]*): Remove support.
7340 * NEWS: Mention removed configurations.
7342 * config/alpha/alpha-osf1.mh: Delete file.
7343 * config/alpha/alpha-osf2.mh: Delete file.
7344 * config/alpha/alpha-osf3.mh (NATDEPFILES): Remove inftarg.o
7346 * config/alpha/nm-osf.h: Delete file.
7347 * config/alpha/nm-osf2.h: Delete file.
7348 * config/alpha/nm-osf3.h: Do not include "nm-osf2.h".
7349 (START_INFERIOR_TRAPS_EXPECTED): Copy from nm-osf.h.
7350 (PROCFS_DONT_TRACE_FAULTS): Copy from nm-osf2.h.
7352 * alpha-nat.c (ALPHA_UNIQUE_PTRACE_ADDR): Do not define.
7353 (register_addr, kernel_u_size): Remove.
7354 Do not check for "defined(USE_PROC_FS) || defined(HAVE_GREGSET_T)".
7356 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7358 * regcache.c (regcache_invalidate): New function.
7359 (register_cached): Remove.
7360 (set_register_cached): Remove.
7361 (deprecated_registers_fetched): Remove.
7362 (registers_changed): Use regcache_invalidate instead
7363 of set_register_cached.
7364 (regcache_raw_read): Update comment.
7366 * regcache.h (regcache_invalidate): Add prototype.
7367 (register_cached): Remove.
7368 (set_register_cached): Remove.
7369 (deprecated_registers_fetched): Remove.
7371 * findvar.c (value_of_register): Do not call register_cached.
7372 * frame.c (frame_register): Likewise.
7373 * tui/tui-regs.c (tui_get_register): Likewise.
7375 * remote.c (fetch_register_using_p): Do not call set_register_cached.
7376 (process_g_packet): Likewise.
7377 (remote_fetch_registers): Likewise.
7378 * remote-sim.c (gdbsim_fetch_register): Likewise.
7379 * mt-tdep.c (mt_select_coprocessor): Replace set_register_cached call
7380 by regcache_invalidate.
7381 (mt_pseudo_register_write): Likewise.
7382 * sh-tdep.c (sh_pseudo_register_write): Likewise.
7384 * corelow.c (get_core_registers): Replace deprecated_registers_fetched
7385 call by loop over regcache_raw_supply (..., NULL).
7387 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7389 * target.h (struct target_ops): Add REGCACHE parameter to
7390 to_prepare_to_store.
7391 (target_prepare_to_store): Likewise.
7392 * target.c (debug_to_prepare_to_store): Add REGCACHE parameter.
7393 (update_current_target): Adapt prepare_to_store de_fault rule.
7395 * regcache.c (regcache_raw_write): Pass regcache to
7396 target_prepare_to_store.
7398 * inftarg.c (child_prepare_to_store): Add REGCACHE parameter.
7399 Do not call CHILD_PREPARE_TO_STORE.
7400 * gnu-nat.c (gnu_prepare_to_store): Likewise.
7401 * procfs.c (procfs_prepare_to_store): Likewise.
7403 * inf-child.c (inf_child_prepare_to_store): Add REGCACHE parameter.
7404 * go32-nat.c (go32_prepare_to_store): Likewise.
7405 * monitor.c (monitor_prepare_to_store): Likewise.
7406 * nto-procfs.c (procfs_prepare_to_store): Likewise.
7407 * remote-m32r-sdi.c (m32r_prepare_to_store): Likewise.
7408 * remote-mips.c (mips_prepare_to_store): Likewise.
7409 * remote-sim.c (gdbsim_prepare_to_store): Likewise.
7410 * win32-nat.c (win32_prepare_to_store): Likewise.
7412 * remote.c (remote_prepare_to_store): Add REGCACHE parameter.
7413 Use it instead of current_regcache.
7415 * hpux-thread.c (hpux_thread_prepare_to_store): Add REGCACHE
7416 parameter. Pass it on to next target.
7417 * sol-thread.c (sol_thread_prepare_to_store): Likewise.
7419 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7421 * target.h (struct regcache): Add forward declaration.
7422 (struct target_ops): Add REGCACHE parameter to to_fetch_registers
7423 and to_store_registers target operations.
7424 (target_fetch_registers, target_store_registers): Update.
7426 * regcache.c (regcache_raw_read): Replace register_cached by
7427 regcache_valid_p. Pass regcache to target_fetch_registers.
7428 (regcache_raw_write): Pass regcache to target_store_registers.
7430 * arm-linux-nat.c (store_fpregister, store_fpregs, store_register,
7431 store_regs, store_wmmx_regs): Replace register_cached by
7434 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd): Pass current_regcache
7435 to target_fetch_registers calls.
7436 * corelow.c (core_open): Likewise.
7437 * linux-nat.c (linux_nat_corefile_thread_callback): Likewise.
7438 * proc-service.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
7439 ps_lsetfpregs): Likewise.
7440 * sol-thread.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
7441 ps_lsetfpregs): Likewise.
7442 * win32-nat.c (win32_resume): Likewise.
7443 * ia64-tdep.c (ia64_store_return_value): Pass current_regcache
7444 to target_store_registers call.
7445 * rs6000-tdep.c (rs6000_push_dummy_call): Likewise.
7447 * inferior.h (store_inferior_registers): Update prototype.
7448 (fetch_inferior_registers): Likewise.
7449 * gnu-nat.c (gnu_store_registers, gnu_fetch_registers): Likewise.
7450 * mips-linux-nat.c (super_fetch_registers, super_store_registers):
7451 Update function pointer signatures.
7453 * aix-thread.c (aix_thread_fetch_registers): Add REGCACHE parameter,
7454 use it instead of current_regcache, update calls.
7455 (aix_thread_store_registers): Likewise.
7456 * alphabsd-nat.c (alphabsd_fetch_inferior_registers): Likewise.
7457 (alphabsd_store_inferior_registers): Likewise.
7458 * amd64bsd-nat.c (amd64bsd_fetch_inferior_registers): Likewise.
7459 (amd64bsd_store_inferior_registers): Likewise.
7460 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers): Likewise.
7461 (amd64_linux_store_inferior_registers): Likewise.
7462 * arm-linux-nat.c (fetch_fpregister, fetch_fpregs, store_fpregister,
7463 store_fpregs, fetch_register, fetch_regs, store_register, store_regs,
7464 fetch_wmmx_regs, store_wmmx_regs): Likewise.
7465 (arm_linux_fetch_inferior_registers): Likewise.
7466 (arm_linux_store_inferior_registers): Likewise.
7467 * armnbsd-nat.c (fetch_register, fetch_regs, fetch_fp_register,
7468 fetch_fp_regs, armnbsd_fetch_registers): Likewise.
7469 (store_register, store_regs, store_fp_register, store_fp_regs,
7470 armnbsd_store_registers): Likewise.
7471 * bsd-kvm.c (bsd_kvm_fetch_pcb, bsd_kvm_fetch_registers): Likewise.
7472 * bsd-uthread.c (bsd_uthread_fetch_registers): Likewise.
7473 (bsd_uthread_store_registers): Likewise.
7474 * corelow.c (get_core_registers): Likewise.
7475 * go32-nat.c (fetch_register, go32_fetch_registers, store_register,
7476 go32_store_registers): Likewise.
7477 * hppabsd-nat.c (hppabsd_fetch_registers): Likewise.
7478 (hppabsd_store_registers): Likewise.
7479 * hppa-hpux-nat.c (hppa_hpux_fetch_register): Likewise.
7480 (hppa_hpux_fetch_inferior_registers): Likewise.
7481 (hppa_hpux_store_register): Likewise.
7482 (hppa_hpux_store_inferior_registers): Likewise.
7483 * hppa-linux-nat.c (fetch_register, store_register): Likewise.
7484 (hppa_linux_fetch_inferior_registers): Likewise.
7485 (hppa_linux_store_inferior_registers): Likewise.
7486 * hpux-thread.c (hpux_thread_fetch_registers): Likewise.
7487 (hpux_thread_store_registers): Likewise.
7488 * i386bsd-nat.c (i386bsd_fetch_inferior_registers): Likewise.
7489 (i386bsd_store_inferior_registers): Likewise.
7490 * i386gnu-nat.c (fetch_fpregs, gnu_fetch_registers, store_fpregs,
7491 gnu_store_registers): Likewise.
7492 * i386-linux-nat.c (fetch_register, store_register, fetch_regs,
7493 store_regs, fetch_fpregs, store_fpregs, fetch_fpxregs, store_fpxregs):
7495 (i386_linux_fetch_inferior_registers): Likewise.
7496 (i386_linux_store_inferior_registers): Likewise.
7497 * ia64-linux-nat.c (ia64_linux_fetch_register): Likewise.
7498 (ia64_linux_fetch_registers): Likewise.
7499 (ia64_linux_store_register): Likewise.
7500 (ia64_linux_store_registers): Likewise.
7501 * inf-child.c (inf_child_fetch_inferior_registers): Likewise.
7502 (inf_child_store_inferior_registers): Likewise.
7503 * inf-ptrace.c (inf_ptrace_fetch_register): Likewise.
7504 (inf_ptrace_fetch_registers): Likewise.
7505 (inf_ptrace_store_register): Likewise.
7506 (inf_ptrace_store_registers): Likewise.
7507 * infptrace.c (fetch_register, store_register): Likewise.
7508 (fetch_inferior_registers, store_inferior_registers): Likewise.
7509 * m32r-linux-nat.c (fetch_regs, store_regs): Likewise.
7510 (m32r_linux_fetch_inferior_registers): Likewise.
7511 (m32r_linux_store_inferior_registers): Likewise.
7512 * m68kbsd-nat.c (m68kbsd_fetch_inferior_registers): Likewise.
7513 (m68kbsd_store_inferior_registers): Likewise.
7514 * m68klinux-nat.c (fetch_register, old_fetch_inferior_registers,
7515 store_register, old_store_inferior_registers, fetch_regs, store_regs,
7516 fetch_fpregs, store_fpregs): Likewise.
7517 (m68k_linux_fetch_inferior_registers): Likewise.
7518 (m68k_linux_store_inferior_registers): Likewise.
7519 * m88kbsd-nat.c (m88kbsd_fetch_inferior_registers): Likewise.
7520 (m88kbsd_store_inferior_registers): Likewise.
7521 * mips64obsd-nat.c (mips64obsd_fetch_inferior_registers): Likewise.
7522 (mips64obsd_store_inferior_registers): Likewise.
7523 * mips-linux-nat.c (mips64_linux_regsets_fetch_registers): Likewise.
7524 (mips64_linux_regsets_store_registers): Likewise.
7525 (mips64_linux_fetch_registers): Likewise.
7526 (mips64_linux_store_registers): Likewise.
7527 * mipsnbsd-nat.c (mipsnbsd_fetch_inferior_registers): Likewise.
7528 (mipsnbsd_store_inferior_registers): Likewise.
7529 * monitor.c (monitor_fetch_register, monitor_store_register): Likewise.
7530 (monitor_fetch_registers, monitor_store_registers): Likewise.
7531 * nto-procfs.c (procfs_fetch_registers): Likewise.
7532 (procfs_store_registers): Likewise.
7533 * ppc-linux-nat.c (fetch_altivec_register, fetch_spe_register,
7534 fetch_register, supply_vrregset, fetch_altivec_registers,
7535 fetch_ppc_registers, ppc_linux_fetch_inferior_registers): Likewise.
7536 (store_altivec_register, store_spe_register, store_register,
7537 fill_vrregset, store_altivec_registers, store_ppc_registers,
7538 ppc_linux_store_inferior_registers): Likewise.
7539 * ppcnbsd-nat.c (ppcnbsd_fetch_inferior_registers): Likewise.
7540 (ppcnbsd_store_inferior_registers): Likewise.
7541 * ppcobsd-nat.c (ppcobsd_fetch_registers): Likewise.
7542 (ppcobsd_store_registers): Likewise.
7543 * procfs.c (procfs_fetch_registers, procfs_store_registers): Likewise.
7544 * remote.c (fetch_register_using_p, process_g_packet,
7545 fetch_registers_using_g, remote_fetch_registers): Likewise.
7546 (store_register_using_P, store_registers_using_G,
7547 remote_store_registers): Likewise.
7548 * remote-m32r-sdi.c (m32r_fetch_registers, m32r_fetch_register,
7549 m32r_store_register, m32r_store_register): Likewise.
7550 * remote-mips.c (mips_fetch_registers, mips_store_registers): Likewise.
7551 * remote-sim.c (gdbsim_fetch_register): Likewise.
7552 (gdbsim_store_register): Likewise.
7553 * rs6000-nat.c (fetch_register, store_register): Likewise.
7554 (rs6000_fetch_inferior_registers): Likewise.
7555 (rs6000_store_inferior_registers): Likewise.
7556 * s390-nat.c (fetch_regs, store_regs): Likewise.
7557 (fetch_fpregs, store_fpregs): Likewise.
7558 (s390_linux_fetch_inferior_registers): Likewise.
7559 (s390_linux_store_inferior_registers): Likewise.
7560 * shnbsd-nat.c (shnbsd_fetch_inferior_registers): Likewise.
7561 (shnbsd_store_inferior_registers): Likewise.
7562 * sol-thread.c (sol_thread_fetch_registers): Likewise.
7563 (sol_thread_store_registers): Likewise.
7564 * sparc-nat.c (fetch_inferior_registers): Likewise.
7565 (store_inferior_registers): Likewise.
7566 * spu-linux-nat.c (spu_fetch_inferior_registers): Likewise.
7567 (spu_store_inferior_registers): Likewise.
7568 * target.c (debug_print_register): Likewise.
7569 (debug_to_fetch_registers, debug_to_store_registers): Likewise.
7570 * vaxbsd-nat.c (vaxbsd_fetch_inferior_registers): Likewise.
7571 (vaxbsd_store_inferior_registers): Likewise.
7572 * win32-nat.c (do_win32_fetch_inferior_registers): Likewise.
7573 (win32_fetch_inferior_registers): Likewise.
7574 (win32_store_inferior_registers): Likewise.
7576 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7578 * gdbcore.h (struct regcache): Add forward declaration.
7579 (struct core_fns): Add REGCACHE argument to core_read_registers
7581 * corelow.c (get_core_register_section): Add REGCACHE argument,
7582 use it instead of current_regcache, pass it to core_read_registers
7584 (get_core_registers): Add current_regcache as parameter to
7585 get_core_register_section calls.
7587 * alpha-nat.c (fetch_osf_core_registers): Add REGCACHE argument,
7588 use it instead of current_regcache.
7589 * armnbsd-nat.c (fetch_core_registers): Likewise.
7590 (fetch_elfcore_registers): Likewise.
7591 * core-regset.c (fetch_core_registers): Likewise.
7592 * cris-tdep.c (fetch_core_registers): Likewise.
7593 * irix5-nat.c (fetch_core_registers): Likewise.
7594 * m68klinux-nat.c (fetch_core_registers): Likewise.
7595 * mips-linux-tdep.c (fetch_core_registers): Likewise.
7596 * win32-nat.c (fetch_elf_core_registers): Likewise.
7598 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7600 * gregset.h (struct regcache): Add forward declaration.
7601 (supply_gregset): Add REGCACHE parameter, make GREGS const.
7602 (supply_fpregset): Add REGCACHE parameter, make FPREGS const.
7603 (supply_fpxregset): Add REGCACHE parameter, make FPXREGS const.
7604 (fill_gregset): Add REGCACHE parameter.
7605 (fill_fpregset): Likewise.
7606 (fill_fpxregset): Likewise.
7608 Update all definitions accordingly:
7609 * alphabsd-nat.c, alpha-linux-nat.c, alpha-nat.c, amd64-linux-nat.c,
7610 arm-linux-nat.c, hppa-linux-nat.c, i386gnu-nat.c, i386-linux-nat.c,
7611 i386-sol2-nat.c, i386v4-nat.c, ia64-linux-nat.c, irix5-nat.c,
7612 m32r-linux-nat.c, m68klinux-nat.c, mips-linux-nat.c, ppc-linux-nat.c,
7613 s390-nat.c, sparc64-linux-nat.c, sparc-linux-nat.c, sparc-sol2-nat.c
7614 (supply_gregset): Add REGCACHE parameter, use it instead of
7615 current_regcache. Make GREGSETP parameter const, adapt casts.
7616 (supply_fpregset): Add REGCACHE parameter, use it instead of
7617 current_regcache. Make FPREGSETP parameter const, adapt casts.
7618 (fill_gregset): Add REGCACHE parameter, use it instead of
7620 (fill_fpregset): Likewise.
7622 Update all callers to pass in current_regcache as the new argument:
7623 * core-regset.c: Include "regcache.h".
7624 (fetch_core_registers): Update supply_gregset,and supply_fpregset calls.
7625 * procfs.c: Include "regcache.h".
7626 (procfs_fetch_registers): Update supply_gregset, supply_fpregset calls.
7627 (procfs_store_registers): Update fill_gregset, fill_fpregset calls.
7628 (procfs_do_thread_registers): Likewise.
7629 (procfs_make_note_section): Likewise.
7630 * proc-service.c: Include "regcache.h".
7631 (ps_lgetregs): Update fill_gregset call.
7632 (ps_lsetregs): Update supply_gregset call.
7633 (ps_lgetfpregs): Update fill_fpregset call.
7634 (ps_lsetfpregs): Update supply_fpregset call.
7635 * sol-thread.c (sol_thread_fetch_registers): Update supply_gregset,
7636 supply_fpregset calls.
7637 (sol_thread_store_registers): Update fill_gregset, fill_fpregset calls.
7638 (ps_lgetregs): Update fill_gregset call.
7639 (ps_lsetregs): Update supply_gregset call.
7640 (ps_lgetfpregs): Update fill_fpregset call.
7641 (ps_lsetfpregs): Update supply_fpregset call.
7643 * linux-nat.c (linux_nat_do_thread_registers): Update fill_gregset,
7644 fill_fpregset, and fill_fpxregset calls.
7645 * i386-linux-nat.c (fetch_regs): Update supply_gregset call.
7646 (store_regs): Update fill_gregset call.
7647 (fetch_fpregs): Update supply_fpregset call.
7648 (store_fpregs): Update fill_fpregset call.
7649 (fetch_fpxregs): Update supply_fpxregset call.
7650 (store_fpxregs): Update fill_fpxregset call.
7651 * m32r-linux-nat.c (fetch_regs): Update supply_gregset call.
7652 (store_regs): Update fill_gregset call.
7653 * m68klinux-nat.c (fetch_regs): Update supply_gregset call.
7654 (store_regs): Update fill_gregset call.
7655 (fetch_fpregs): Update supply_fpregset call.
7656 (store_fpregs): Update fill_fpregset call.
7657 (fetch_core_registers): Update supply_gregset, supply_fpregset calls.
7658 * s390-nat.c (fetch_regs): Update supply_gregset call.
7659 (store_regs): Update fill_gregset call.
7660 (fetch_fpregs): Update supply_fpregset call.
7661 (store_fpregs): Update fill_fpregset call.
7663 * Makefile.in (core-regset.o, procfs.o, proc-service.o): Update
7666 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7668 * monitor.c (monitor_supply_register): Add REGCACHE parameter, use
7669 it instead of current_regcache.
7670 (parse_register_dump): Add REGCACHE parameter, pass it to
7671 supply_register callback.
7672 (monitor_dump_reg_block): Add REGCACHE parameter, pass it to
7673 parse_register_dump.
7674 (monitor_dump_regs): Add REGCACHE parameter, pass it to
7675 parse_register_dump and dumpregs callback.
7676 (monitor_wait): Pass current_regcache to parse_register_dump and
7678 (monitor_fetch_register): Pass current_regcache to
7679 monitor_supply_register.
7680 (monitor_fetch_registers): Pass current_regcache to
7682 * monitor.h (struct monitor_ops): Add REGCACHE parameter to
7683 supply_register and dumpregs callbacks.
7684 (monitor_supply_register, monitor_dump_reg_block): Update
7686 * dbug-rom.c (dbug_supply_register): Add REGCACHE parameter. Pass
7687 it to monitor_supply_register.
7688 * dink32-rom.c (dink32_supply_register): Likewise.
7689 * ppcbug-rom.c (ppcbug_supply_register): Likewise.
7690 * m32r-rom.c (m32r_supply_register): Likewise. Also, use REGCACHE
7691 instead of current_regcache.
7693 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7695 * i386-nto-tdep.c (i386nto_supply_gregset, i386nto_supply_fpregset):
7696 Add REGCACHE parameter. Use it instead of current_regcache.
7697 (i386nto_supply_regset): Add REGCACHE parameter, pass it to
7698 i386nto_supply_gregset and i386nto_supply_fpregset.
7699 (i386nto_regset_fill): Add REGCACHE parameter; use it instead
7700 of current_regcache.
7702 * nto-procfs.c (procfs_fetch_registers): Pass current_regcache to
7703 nto_supply_ helper functions.
7704 (procfs_store_registers): Pass current_regcache to nto_regset_fill.
7706 * nto-tdep.c (nto_dummy_supply_regset): Add REGCACHE parameter.
7708 * nto-tdep.h (struct nto_target_ops): Add REGCACHE parameter to
7709 supply_greget, supply_fpregset, supply_altregset, supply_regset,
7710 and regset_fill member function pointers.
7711 (nto_dummy_supply_regset): Adapt prototype.
7713 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7715 * shnbsd-tdep.c (shnbsd_supply_reg): Add REGCACHE parameter, use it
7716 instead of current_regcache. Make REGS const.
7717 (shnbsd_fill_reg): Add REGCACHE parameter; replace current_regcache.
7718 * shnbsd-tdep.h (shnbsd_supply_reg, shnbsd_fill_reg): Update
7720 * shnbsd-nat.c: Include "regcache.h".
7721 (shnbsd_fetch_inferior_registers): Pass current_regcache to
7723 (shnbsd_store_inferior_registers): Pass current_regcache to
7725 * Makefile.in (shbsd-nat.o): Update dependencies.
7727 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7729 * mips-linux-tdep.c (supply_32bit_reg): Add REGCACHE parameter. Use it
7730 instead of current_regcache.
7731 (mips_supply_gregset): Likewise. Pass REGCACHE to supply_32bit_reg.
7732 Make GREGSETP const, remove superfluous casts.
7733 (mips_fill_gregset): Add REGCACHE parameter; replace current_regcache.
7734 (mips_supply_fpregset): Likewise. Make FPREGSETP const, remove
7736 (mips_fill_fpregset): Add REGCACHE parameter; replace current_regcache.
7737 (supply_64bit_reg): Likewise
7738 (mips64_supply_gregset): Likewise. Pass REGCACHE to supply_64bit_reg.
7739 Make GREGSETP const, adapt casts accordingly.
7740 (mips64_fill_gregset): Add REGCACHE parameter; replace current_regcache.
7741 (mips64_supply_fpregset): Likewise. Make FPREGSET const, adapt
7743 (mips64_fill_fpregset): Add REGCACHE parameter; replace current_regcache.
7744 (fetch_core_registers): Pass current_regcache to mips{64}_(supply|fill)_
7746 * mips-linux-tdep.h (mips_supply_gregset, mips_fill_gregset,
7747 mips_supply_fpregset, mips_fill_fpregset, mips64_supply_gregset,
7748 mips64_fill_gregset, mips64_supply_fpregset, mips64_fill_fpregset):
7750 * mips-linux-nat.c: Include "regcache.h".
7751 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): Pass
7752 current_regcache to mips{64}_(supply|fill)_ helper routines.
7753 (mips64_linux_regsets_fetch_registers): Likewise.
7754 (mips64_linux_regsets_store_registers): Likewise.
7756 * mipsnbsd-tdep.c (mipsnbsd_supply_reg, mipsnbsd_supply_fpreg): Add
7757 REGCACHE argument; replace current_regcache. Make REGS const.
7758 (mipsnbds_fill_reg, mipsnbsd_fill_fpreg): Add REGCACHE argument;
7759 replace current_regcache.
7760 * mipsnbsd-tdep.h (ipsnbsd_supply_reg, mipsnbsd_supply_fpreg,
7761 mipsnbds_fill_reg, mipsnbsd_fill_fpreg): Adapt prototypes.
7762 * mipsnbsd-nat.c (mipsnbsd_fetch_inferior_registers,
7763 mipsnbsd_store_inferior_registers): Pass current_regcache to
7764 mipsnbsd_(supply|fill)_... helper routines.
7766 * Makefile.in (mips-linux-nat.o): Update dependencies.
7768 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7770 * i387-tdep.c (i387_fill_fsave, i387_fill_fxsave): Remove.
7771 * i387-tdep.h (i387_fill_fsave, i387_fill_fxsave): Remove prototypes.
7772 * i368-linux-nat.c (supply_fpregset, supply_fpxregset): Replace
7773 i387_fill_fsave and i387_fill_fxsave calls by inline copies.
7774 * i386-nto-tdep.c (i386nto_regset_fill): Likewise.
7775 * i386gnu-nat.c (store_fpregs): Likewise.
7776 * i386v4-nat.c (fill_fpregset): Likewise.
7777 * go32-nat.c (store_register, go32_store_registers): Likewise.
7779 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7781 * cris-tdep.c (supply_gregset): Rename to ...
7782 (cris_supply_gregset): ... this. Add REGCACHE parameter. Use it
7783 instead of current_regcache.
7784 (fetch_core_registers): Update call. Pass current_regcache.
7786 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7788 * arnmnbsd-nat.c (supply_gregset): Rename to ...
7789 (arm_supply_gregset): ... this. Add REGCACHE parameter.
7790 Use it instead of current_regcache.
7791 (supply_fparegset): Rename to ...
7792 (arm_supply_fparegset): ... this. Add REGCACHE parameter.
7793 Use it instead of current_regcache.
7794 (fetch_regs, fetch_fp_regs): Update calls. Pass current_regcache.
7795 (fetch_core_registers, fetch_elfcore_registers): Likewise.
7797 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7799 * alpha-tdep.c (alpha_supply_int_regs, alpha_fill_int_regs,
7800 alpha_supply_fp_regs, alpha_fill_fp_regs): Add REGCACHE parameter,
7801 use it instead of current_regcache.
7802 * alpha-tdep.h (struct regcache): Add forward declaration.
7803 (alpha_supply_int_regs, alpha_fill_int_regs, alpha_supply_fp_regs,
7804 alpha_fill_fp_regs): Update prototypes.
7806 * alpha-nat.c: (supply_gregset, fill_gregset, supply_fpregset,
7807 fill_fpregset): Pass current_regcache to alpha_supply/fill_ routines.
7808 * alpha-linux-nat.c: Include "regcache.h".
7809 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): Pass
7810 current_regcache to alpha_supply/fill_ routines.
7812 * alphabsd-tdep.c: Include "regcache.h".
7813 (alphabsd_supply_reg, alphabsd_supply_fpreg): Add REGCACHE paramter,
7814 pass it to alpha_supply_ routines. Make REGS const.
7815 (alphabsd_fill_reg, alphabsd_fill_fpreg): Add REGCACHE parameter,
7816 pass it to alpha_fill_ routines.
7817 * alphabsd-tdep.h (struct regcache): Add forward declaration.
7818 (alphabsd_supply_reg, alphabsd_fill_reg, alphabsd_supply_fpreg,
7819 alphabsd_fill_fpreg): Update prototypes.
7821 * alphanbsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
7822 fill_fpregset, alphabsd_fetch_inferior_registers,
7823 alphabsd_store_inferior_registers): Pass current_regcache to
7824 alphabsd_supply/fill_ routines.
7826 * Makefile.in (alpha-linux-nat.o, alphabsd-tdep.o): Update
7829 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7831 * aix-thread.c (supply_gprs64, supply_reg32, supply_fprs,
7832 supply_sprs64, supply_sprs32): Add REGCACHE parameter, use it
7833 instead of current_regcache.
7834 (fetch_regs_user_thread, fetch_regs_kernel_thread): Add
7835 REGCACHE parameter, pass it to supply_ routines.
7836 (aix_thread_fetch_registers): Pass current_regcache to
7837 fetch_regs_user_thread and fetch_regs_kernel_thread.
7839 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs64, fill_sprs32):
7840 Add REGCACHE parameter, use it instead of current_regcache.
7841 Call regcache_valid_p instead of register_cached.
7842 (store_regs_user_thread, store_regs_kernel_thread): Likewise.
7843 Also, pass REGCACHE to fill_ routines.
7844 (aix_thread_store_registers): Pass current_regcache to
7845 store_regs_user_thread and store_regs_kernel_thread.
7847 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7849 * m32r-linux-nat.c (supply_gregset): Do not modify contents
7850 pointed to by GREGSETP.
7852 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7854 * irix5-nat.c (fill_gregset): Use regcache_raw_collect instead
7855 of regcache_raw_read_signed.
7856 (fill_fpregset): Use regcache_raw_collect instead of
7859 2007-05-03 Kevin Buettner <kevinb@redhat.com>
7861 * mips-tdep.c (mips_eabi_push_dummy_call): When pushing floating
7862 point arguments, test explicitly for use of the EABI32 ABI
7863 instead of inferring this condition from tests on register
7866 2007-05-03 Kevin Buettner <kevinb@redhat.com>
7868 * breakpoint.c (set_raw_breakpoint): Adjust breakpoint's address
7869 prior to allocating its location.
7871 2007-05-02 Maciej W. Rozycki <macro@mips.com>
7873 * mips-tdep.c (mips_o32_push_dummy_call): Remove conditions
7874 based on mips_abi_regsize() whose result is known in advance.
7875 (mips_o64_push_dummy_call): Likewise.
7877 2007-04-29 Ulrich Weigand <uweigand@de.ibm.com>
7879 * m68klinux-nat.c: Remove #ifndef USE_PROC_FS check.
7880 * m68k-tdep.c: Remove code within #ifdef USE_PROC_FS.
7882 * mips-linux-nat.c: Include "gregset.h".
7883 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): Move
7884 from mips-linux-tdep.c. Change parameter type to gdb_gregset_t.
7885 * mips-linux-tdep.c (supply_gregset, fill_gregset, supply_fpregset,
7886 fill_fpregset): Move to mips-linux-nat.c.
7888 * Makefile.in (m68k-tdep.o, mips-linux-nat.o): Update dependencies.
7890 2007-04-28 Ulrich Weigand <uweigand@de.ibm.com>
7892 * regcache.c (deprecated_read_register_gen): Remove, inline ...
7893 (read_register): ... here.
7894 (deprecated_write_register_gen): Remove, inline ...
7895 (write_register): ... here.
7896 * regcache.h (deprecated_read_register_gen): Remove prototype.
7897 (deprecated_write_register_gen): Likewise.
7899 * remote-sim.c (gdbsim_store_register): Replace call to
7900 deprecated_read_register_gen with regcache_cooked_read.
7901 * target.c (debug_print_register): Replace calls to
7902 deprecated_read_register_gen and read_register with
7903 regcache_cooked_read.
7905 2007-04-28 Ulrich Weigand <uweigand@de.ibm.com>
7907 * hpux-thread.c (hpux_thread_store_registers): Use
7908 regcache_raw_collect, not regcache_raw_read.
7909 * irix5-nat.c (fetch_core_registers): Use regcache_raw_supply,
7910 not regcache_raw_write.
7912 2007-04-28 Ulrich Weigand <uweigand@de.ibm.com>
7914 * gdbarch.sh: Remove deprecated_register_byte.
7915 * gdbarch.c, gdbarch.h: Regenerate.
7916 * arch-utils.h (generic_register_size, generic_register_byte): Remove.
7917 * arch-utils.c (generic_register_size, generic_register_byte): Remove.
7919 * regcache.h (regcache_valid_p): Make REGCACHE parameter const.
7920 * regcache.c (regcache_valid_p): Allow to query cooked registers in
7921 read-only register caches. Make REGCACHE parameter const.
7922 (regcache_dump): Do not check DEPRECATED_REGISTER_BYTE.
7924 * mi/mi-main.c (old_regs): Remove.
7925 (mi_setup_architecture_data, _initialize_mi_main): Remove.
7926 (register_changed_p): Reimplement to compare two register caches.
7927 (mi_cmd_data_list_changed_registers): Update caller.
7928 * mi/mi-main.h (mi_setup_architecture_data): Remove.
7929 * mi/mi-interp.c (mi_interpreter_init): Do not call
7930 mi_setup_architecture_data.
7932 2007-04-28 Ulrich Weigand <uweigand@de.ibm.com>
7934 * alpha-nat.c (ALPHA_REGSET_BASE, ALPHA_REGSET_UNIQUE): Do not define,
7935 inline definition at the places the macros are used.
7936 * alpha-linux-nat.c (ALPHA_REGSET_BASE, ALPHA_REGSET_UNIQUE): Likewise.
7938 2007-04-28 Ulrich Weigand <uweigand@de.ibm.com>
7940 * rs6000-aix-tdep.c: Include "regcache.h", "regset.h", and
7942 (rs6000_aix32_reg_offsets, rs6000_aix64_reg_offsets): New variables.
7943 (rs6000_aix_supply_regset, rs6000_aix_collect_regset): New functions.
7944 (rs6000_aix32_regset, rs6000_aix64_regset): New variables.
7945 (rs6000_aix_regset_from_core_section): New function.
7946 (rs6000_aix_init_osabi): Register it.
7947 (_initialize_rs6000_aix_tdep): Register GDB_OSABI_AIX osabi and
7948 sniffer for bfd_arch_powerpc as well as bfd_arch_rs6000.
7949 * rs6000-nat.c (CoreRegs): Do not define type.
7950 (fetch_core_registers, rs6000_core_fns): Remove.
7951 (_initialize_core_rs6000): Do not register it. Rename to ...
7952 (_initialize_rs6000_nat): ... this.
7953 * Makefile.in (rs6000-aix-tdep.o): Update dependencies.
7955 2007-04-27 Kevin Buettner <kevinb@redhat.com>
7957 * dwarf2expr.c (unsigned_address_type): Add forward declaration.
7958 (dwarf2_read_address): Sign extend return address as required by
7959 target architecture.
7961 2007-04-27 Kevin Buettner <kevinb@redhat.com>
7963 * solib-frv.c (lm_base): Bail out if the main executable has
7966 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
7968 * alpha-linux-tdep.c (alpha_linux_supply_fpregset): Correct location
7969 of FPCR register in fpregset.
7971 2007-04-27 Maciej W. Rozycki <macro@mips.com>
7973 * Makefile.in (gdbtk-wrapper.o): Update dependencies.
7974 (gdbtk-varobj.o, gdbtk-cmds.o, gdbtk-stack.o): Likewise.
7976 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
7978 * config/rs6000/nm-rs6000.h (CHILD_SPECIAL_WAITSTATUS): Remove.
7979 * rs6000-nat.c (rs6000_wait): New function.
7980 (_initialize_core_rs6000): Install it as to_wait target method.
7981 * target.c (store_waitstatus): Don't check CHILD_SPECIAL_WAITSTATUS.
7983 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
7985 * config/rs6000/nm-rs6000.h (TARGET_CREATE_INFERIOR_HOOK): Remove.
7986 * fork-child.c (fork_inferior): Don't call TARGET_CREATE_INFERIOR_HOOK.
7987 * rs6000-nat.c (super_create_inferior): New variable.
7988 (rs6000_create_inferior): Make static. Adapt argument list. Call
7989 original version of create_inferior via super_create_inferior.
7990 (_initialize_core_rs6000): Install to_create_inferior target method.
7992 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
7994 * aix-thread.c (aix_thread_xfer_memory): Replace by ...
7995 (aix_thread_xfer_partial): ... this.
7996 (init_aix_thread_ops): Install to_xfer_partial instead
7997 of deprecated_xfer_memory target method.
7999 * config/powerpc/aix.mh (NATDEPFILES): Remove infptrace.o
8000 and inftarg.o, add inf-ptrace.o.
8001 * config/rs6000/nm-rs6000.h (FETCH_INFERIOR_REGISTERS,
8002 CHILD_XFER_MEMORY, KERNEL_U_SIZE, kernel_u_size): Remove.
8003 * rs6000-nat.c: Include "inf-ptrace.h" and "gdb_stdint.h".
8004 (fetch_inferior_registers): Rename to ...
8005 (rs6000_fetch_inferior_registers): ... this. Make static.
8006 (store_inferior_registers): Rename to ...
8007 (rs6000_store_inferior_registers): ... this. Make static.
8008 (read_word, child_xfer_memory): Remove.
8009 (rs6000_xfer_partial): New function.
8010 (kernel_u_size): Remove.
8011 (_initialize_core_rs6000): Add inf_ptrace-based target.
8012 * Makefile.in (rs6000-nat.o): Update dependencies.
8014 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
8016 * inf-ptrace.c: Include "gdb_stdint.h".
8017 (inf_ptrace_xfer_partial): Use "uintptr_t" instead of "long" as
8018 intermediate type when casting CORE_ADDR to PTRACE_TYPE_ARG3.
8019 (inf_ptrace_fetch_register): Add intermediate cast to "uintptr_t"
8020 before casting CORE_ADDR to PTRACE_TYPE_ARG3.
8021 (inf_ptrace_store_register): Likewise.
8022 * Makefile.in (inf-ptrace.o): Update dependencies.
8024 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
8026 * configure.host (rs6000-*-*): Merge with powerpc-*-aix* rules.
8027 * configure.tgt (rs6000-*-*): Likewise.
8028 * config/rs6000/aix4.mh: Delete file.
8029 * config/rs6000/aix4.mt: Delete file.
8030 * config/rs6000/rs6000.mh: Delete file.
8031 * config/rs6000/rs6000.mt: Delete file.
8033 * config/powerpc/nm-aix.h: Delete file.
8034 * config/powerpc/aix.mh (NAT_FILE): Set to config/rs6000/nm-rs6000.h.
8036 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
8038 * aix-thread.c (fill_sprs32): Change argument types to "uint32_t *".
8039 Remove obsolete part of comment.
8040 (store_regs_user_thread): Use uint32_t temporaries when calling
8042 (store_regs_kernel_thread): Likewise. Add assertion to verify
8043 correct size of struct ptsprs members.
8044 (aix_thread_xfer_memory): Fix type of myaddr.
8045 (aix_thread_extra_thread_info): Fix compiler warning.
8046 * rs6000-nat.c (rs6000_ptrace64): Change type of buf to "void *".
8047 (fetch_register, store_register): Adapt callers.
8049 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
8051 * vec.h (vec_free): Rename to vec_free_. Adapt users.
8053 2007-04-25 Ulrich Weigand <uweigand@de.ibm.com>
8055 * alpha-linux-tdep.c: Include "gdb_string.h", "regset.h",
8057 (alpha_linux_supply_gregset, alpha_linux_supply_fpregset): New.
8058 (alpha_linux_gregset, alpha_linux_fpregset): New variables.
8059 (alpha_linux_regset_from_core_section): New function.
8060 (alpha_linux_init_abi): Install it.
8061 * alpha-linux-nat.c: Do not include "gdbcore.h". Include
8062 "alpha-tdep.h", <sys/ptrace.h>, <alpha/ptrace.h>,
8063 <sys/procfs.h>, and "gregset.h".
8064 (ALPHA_REGSET_BASE, ALPHA_REGSET_UNIQUE, ALPHA_UNIQUE_PTRACE_ADDR):
8065 Move from config/alpha/nm-linux.h.
8066 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): Copy
8068 (alpha_linux_register_u_offset): Inline register_addr from alpha-nat.c.
8069 * alpha-nat.c: Remove #ifdef __linux__ section.
8070 (fetch_elf_core_registers, alpha_elf_core_fns): Remove.
8071 (_initialize_core_alpha): Do not register alpha_elf_core_fns.
8072 (ALPHA_UNIQUE_PTRACE_ADDR, ALPHA_REGSET_UNIQUE): Define unconditionally.
8073 (ALPHA_REGSET_BASE): Move from config/alpha/nm-osf.h.
8074 * config/alpha/alpha-linux.mh (NAT_FILE): Set to config/nm-linux.h.
8075 (NATDEPFILES): Remove alpha-nat.o.
8076 * config/alpha/nm-linux.h: Delete file.
8077 * config/alpha/nm-osf.h (ALPHA_REGSET_BASE): Move to alpha-nat.c.
8078 * Makefile.in (alpha-linux-nat.o): Update dependencies.
8079 (alpha-linux-tdep.o): Likewise.
8081 2007-04-25 Ulrich Weigand <uweigand@de.ibm.com>
8083 * mips-linux-nat.c: No longer include "gdbcore.h".
8084 (mips_linux_register_addr): Move from mips-linux-tdep.c.
8085 (mips64_linux_register_addr): Likewise.
8086 (mips_linux_register_u_offset): Call mips_linux_register_addr or
8087 mips64_linux_register_addr instead of register_addr.
8088 * mips-linux-tdep.c (mips_linux_register_addr,
8089 mips64_linux_register_addr): Move to mips-linux-nat.c.
8090 (register_addr): Remove.
8091 (register_addr_data, init_register_addr_data): Remove.
8092 (_initialize_mips_linux_tdep): Do not initialize register_addr_data.
8093 (set_mips_linux_register_addr): Remove.
8094 (mips_linux_init_abi): Do not call set_mips_linux_register_addr.
8095 * Makefile.in (mips-linux-nat.o): Update dependencies.
8097 2007-04-25 Ulrich Weigand <uweigand@de.ibm.com>
8099 * linux-nat.c (linux_register_u_offset): Remove.
8100 (linux_target_install_ops): New function.
8101 (linux_target): Use it.
8102 (linux_trad_target): New function.
8103 * linux-nat.h (linux_trad_target): Declare.
8105 * alpha-linux-nat.c: Include "gdbcore.h".
8106 (alpha_linux_register_u_offset): New function.
8107 (_initialize_alpha_linux_nat): Use linux_trad_target.
8109 * mips-linux-nat.c: Include "gdbcore.h".
8110 (mips_linux_register_u_offset): New function.
8111 (_initialize_mips_linux_nat): Use linux_trad_target.
8113 * config/arm/linux.mh (NAT_FILE): Set to config/nm-linux.h.
8114 * config/arm/nm-linux.h: Delete file.
8116 * config/i386/nm-linux64.h (FETCH_INFERIOR_REGISTERS): Remove.
8117 * config/i386/nm-linux.h (FETCH_INFERIOR_REGISTERS): Remove.
8119 * config/ia64/linux.mh (NAT_FILE): Set to config/nm-linux.h.
8120 * config/ia64/nm-linux.h: Delete file.
8122 * config/m32r/linux.mh (NAT_FILE): Set to config/nm-linux.h.
8123 * config/m32r/nm-linux.h: Delete file.
8125 * config/m68k/linux.mh (NAT_FILE): Set to config/nm-linux.h.
8126 * config/m68k/nm-linux.h: Delete file.
8128 * config/pa/linux.mh (NAT_FILE): Set to config/nm-linux.h.
8129 * config/pa/nm-linux.h: Delete file.
8131 * config/powerpc/linux.mh (NAT_FILE): Set to config/nm-linux.h.
8132 * config/powerpc/ppc64-linux.mh (NAT_FILE): Likewise.
8133 * config/powerpc/nm-linux.h: Delete file.
8135 * config/s390/s390.mh (NAT_FILE): Set to config/nm-linux.h.
8136 * config/s390/nm-linux.h: Delete file.
8138 * config/sparc/linux.mh (NAT_FILE): Set to config/nm-linux.h.
8139 * config/sparc/linux64.mh (NAT_FILE): Likewise.
8140 * config/sparc/nm-linux.h: Delete file.
8142 * Makefile.in (alpha-linux-nat.o): Update dependencies.
8143 (mips-linux-nat.o): Likewise.
8145 2007-04-25 Ulrich Weigand <uweigand@de.ibm.com>
8147 * core-aout.c: Delete file.
8148 * Makefile.in (ALLDEPFILES): Remove core-aout.c.
8149 (core-aout.o): Delete rule.
8150 * gdbcore.h (kernel_u_addr, KERNEL_U_ADDR): Remove.
8152 * config/alpha/nm-linux.h (U_REGS_OFFSET): Remove.
8154 * arm-linux-nat.c (arm_linux_kernel_u_size): Remove.
8155 * config/arm/nm-linux.h (U_REGS_OFFSET, KERNEL_U_SIZE,
8156 KERNEL_U_ADDR): Remove.
8158 * i386-linux-nat.c (register_u_addr, kernel_u_size): Remove.
8159 (cannot_fetch_register, cannot_store_register): Remove.
8160 (fetch_register): Inline cannot_fetch_register and register_addr.
8161 (store_register): Inline cannot_store_register and register_addr.
8162 * config/i386/linux.mh (NATDEPFILES): Remove core-aout.o.
8163 * config/i386/nm-linux.h (KERNEL_U_SIZE, KERNEL_U_ADDR,
8164 REGISTER_U_ADDR, CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER):
8167 * m68klinux-nat.c (m68k_linux_register_u_addr, kernel_u_size): Remove.
8168 (fetch_register): Inline register_addr.
8169 (store_register): Inline register_addr.
8170 * config/m68k/linux.mh (NATDEPFILES): Remove core-aout.o.
8171 * config/m68k/nm-linux.h (KERNEL_U_SIZE, KERNEL_U_ADDR,
8172 U_REGS_OFFSET, REGISTER_U_ADDR): Remove.
8174 * config/mips/nm-irix5.h (REGISTER_U_ADDR): Remove.
8175 * config/mips/nm-linux.h (KERNEL_U_SIZE, U_REGS_OFFSET,
8176 REGISTER_U_ADDR): Remove.
8178 * hppa-linux-nat.c (register_addr): Rename to ...
8179 (hppa_linux_register_addr): ... this. Make static.
8180 (fetch_register, store_register): Adapt callers.
8181 * config/pa/nm-linux.h (U_REGS_OFFSET): Remove.
8183 * ppc-linux-nat.c (kernel_u_size): Remove.
8184 * config/powerpc/nm-linux.h (KERNEL_U_SIZE, KERNEL_U_ADDR): Remove.
8186 * vax-nat.c (vax_kernel_u_addr, vax_register_u_addr): Make static.
8187 * config/vax/vax.mh (NATDEPFILES): Remove core-aout.o.
8189 * config/vax/nm-vax.h: Delete file.
8191 2007-04-20 Mark Shinwell <shinwell@codesourcery.com>
8193 * MAINTAINERS (Write After Approval): Add myself.
8195 2007-04-20 Mark Shinwell <shinwell@codesourcery.com>
8197 * Makefile.in: Adjust dependencies of m68klinux-tdep.c.
8198 * m68klinux-tdep.c (m68k_uclinux_sigcontext_reg_offset): New.
8199 (m68k_linux_sigcontext_reg_offset): Fix typo.
8200 (target_is_uclinux): New.
8201 (m68k_linux_inferior_created): New.
8202 (m68k_linux_get_sigtramp_info): Check for uClinux or
8203 normal Linux. Use m68k_uclinux_sigcontext_reg_offset for
8205 (_initialize_m68k_linux_tdep): Register
8206 m68k_linux_inferior_created.
8208 2007-04-19 Pedro Alves <pedro_alves@portugalmail.pt>
8210 * win32-nat.c (win32_detach): Remove delete_command call.
8211 Resume inferior with win32_resume instead of win32_continue.
8213 2007-04-19 Jerome Guitton <guitton@adacore.com>
8215 * ser-mingw.c (fd_is_file): New function.
8216 (file_select_thread): New function.
8217 (ser_console_wait_handle): Add special handling for files.
8219 2007-04-18 Denis Pilat <denis.pilat@st.com>
8221 * dwarf2read.c (read_subrange_type): Use DW_ATE_signed default type
8222 when missing from DW_TAG_subrange_type. Remove the handling of null
8223 return from die_type.
8225 2007-04-18 Maciej W. Rozycki <macro@mips.com>
8227 * mips-tdep.c (mips_eabi_push_dummy_call): Revert the last
8228 change to rearrange some brackets.
8229 (mips_n32n64_push_dummy_call): Likewise.
8230 (mips_o32_push_dummy_call): Likewise.
8231 (mips_o64_push_dummy_call): Likewise.
8233 2007-04-18 Denis Pilat <denis.pilat@st.com>
8235 * infcmd.c (post_create_inferior): Start with a call to
8236 target_terminal_ours.
8238 2007-04-17 Maciej W. Rozycki <macro@mips.com>
8240 * mips-tdep.c (mips_eabi_push_dummy_call): Rearrange some
8242 (mips_n32n64_push_dummy_call): Likewise. Reformat some
8244 (mips_o32_push_dummy_call): Likewise.
8245 (mips_o64_push_dummy_call): Likewise.
8247 2007-04-17 Maciej W. Rozycki <macro@mips.com>
8249 * mips-tdep.c (mips_n32n64_push_dummy_call): Fix a typo in a
8252 2007-04-17 Maciej W. Rozycki <macro@mips.com>
8254 * mips-tdep.c (mips_n32n64_push_dummy_call): Fix a typo in a
8256 (mips_o32_push_dummy_call): Likewise.
8258 2007-04-17 Andreas Schwab <schwab@suse.de>
8260 * symtab.c (skip_prologue_using_sal): Allow the end of the prologue
8261 sal to be bigger than the end of the function.
8263 2007-04-17 Maciej W. Rozycki <macro@mips.com>
8264 Nigel Stephens <nigel@mips.com>
8266 * mips-tdep.c (mips_o32_push_dummy_call): Take account of
8267 argument alignment requirements when calculating stack space
8268 required. When aligning an arg register to eight bytes
8269 boundary, align stack_offset too. Write floating-point
8270 arguments to the appropriate integer register if need go there.
8271 (mips_o64_push_dummy_call): Likewise.
8273 2007-04-14 Ulrich Weigand <uweigand@de.ibm.com>
8275 * gdbarch.sh (software_single_step): Remove "insert_breakpoints_p" and
8276 "sig" arguments, add "regcache" argument.
8277 * gdbarch.c, gdbarch.h: Regenerate.
8279 * infrun.c (resume): Update SOFTWARE_SINGLE_STEP call arguments.
8280 (handle_inferior_event): Call remove_single_step_breakpoints directly
8281 instead of calling SOFTWARE_SINGLE_STEP to remove breakpoints.
8283 * alpha-tdep.c (alpha_software_single_step): Update argument list.
8284 Remove handling of !insert_breakpoints_p case.
8285 * arm-tdep.c (arm_software_single_step): Likewise.
8286 * cris-tdep.c (cris_software_single_step): Likewise.
8287 * mips-tdep.c (mips_software_single_step): Likewise.
8288 * rs6000-tdep.c (rs6000_software_single_step): Likewise.
8289 * sparc-tdep.c (sparc_software_single_step): Likewise.
8290 * spu-tdep.c (spu_software_single_step): Likewise.
8292 * alpha-tdep.h (alpha_software_single_step): Update prototype.
8293 * mips-tdep.h (mips_software_single_step): Likewise.
8294 * rs6000-tdep.h (rs6000_software_single_step): Likewise.
8295 * sparc-tdep.h (sparc_software_single_step): Likewise.
8297 2007-04-14 Ulrich Weigand <uweigand@de.ibm.com>
8299 * alpha-tdep.c (alpha_software_single_step): Do not call write_pc
8300 when removing single-step breakpoints.
8302 2007-04-14 Vladimir Prus <vladimir@codesourcery.com>
8304 * varobj.h (varobj_set_frozen): New
8305 (varobj_get_frozen): New.
8306 (varobj_update): New parameter explicit.
8307 * varobj.c (struct varobj): New fields frozen
8309 (varobj_set_frozen, varobj_get_frozen): New.
8310 (install_new_value): Don't fetch values for
8311 frozen variable object, or children thereof. Allow
8312 a frozen variable object to have non-fetched value.
8313 (varobj_update): Allow updating child variables.
8314 Don't traverse frozen children.
8315 (new_variable): Initialize the frozen field.
8316 (c_value_of_variable): Return NULL for frozen
8317 variable without any value yet.
8318 * mi/mi-cmd-var.c (varobj_update_one): New parameter
8320 (mi_cmd_var_create): Output the 'frozen' field,
8321 as soon as testsuite is adjusted to expect that field.
8322 (mi_cmd_var_set_frozen): New.
8323 (mi_cmd_var_update): Pass the 'explicit' parameter to
8325 * mi/mi-cmds.c (mi_cmds): Register '-var-set-frozen'.
8326 * mi/mi-cmds.h (mi_cmd_var_set_frozen): Declare.
8328 2007-04-13 Paul Brook <paul@codesourcery.com>
8330 * target-descriptions.c (tdesc_named_type): Add ieee_single and
8332 * doc/gdb.texinfo: Document ieee_single and ieee_double target types.
8334 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
8336 * mips-mdebug-tdep.c, mips-mdebug-tdep.h, ocd.c, ocd.h, ppc-bdm.c,
8337 remote-e7000.c, remote-hms.c, remote-utils.c, remote-utils.h,
8338 scm-exp.c, scm-lang.c, scm-lang.h, scm-tags.h, scm-valprint.c,
8339 ser-e7kpc.c, sh3-rom.c, stop-gdb.c: Delete.
8340 * Makefile.in: Remove references to deleted files.
8341 * README: Do not mention deleted ROM monitor interfaces.
8342 * defs.h (enum language): Delete language_scm.
8343 * expprint.c (print_subexp_standard): Do not handle OP_EXPRSTRING.
8344 (dump_subexp_body_standard): Likewise.
8345 * parse.c (operator_length_standard): Likewise.
8346 * expression.h (enum exp_opcode): Delete OP_EXPRSTRING.
8347 * remote-mips.c: Do not include remote-utils.h.
8348 * remote-sim.c: Likewise. Use remote_debug instead of sr_get_debug
8350 * value.c: Do not include scm-lang.h.
8351 (unpack_long): Delete scm_unpack call.
8352 * config/h8300/h8300.mt, config/mips/embed.mt,
8353 config/powerpc/ppc-eabi.mt, config/powerpc/ppc-sim.mt,
8354 config/sh/embed.mt, config/sh/linux.mt: Remove references to
8356 * NEWS: Mention removed files.
8358 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
8360 * symfile.c (add_psymbol_with_dem_name_to_list): Remove.
8361 * symfile.h (add_psymbol_with_dem_name_to_list): Remove prototype.
8363 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
8365 * NEWS: Mention removal of HP aCC support.
8367 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
8369 * solib-svr4.c (IGNORE_FIRST_LINK_MAP_ENTRY): Do not ignore the
8370 first entry for static executables.
8371 (breakpoint_addr): Delete unused variable.
8372 (elf_locate_base): Search for _r_debug in static executables.
8373 (enable_break): Do not set breakpoint_addr. Scan solib_break_names
8376 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
8378 * breakpoint.c (update_breakpoints_after_exec, print_it_typical)
8379 (bpstat_what, print_one_breakpoint, allocate_bp_location)
8380 (mention): Remove bp_through_sigtramp support.
8381 * breakpoint.h (enum bptype): Remove bp_through_sigtramp.
8383 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
8385 * breakpoint.c (bpstat_what): Give step-resume higher priority than
8388 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
8390 * infrun.c: Doc fixes.
8391 (handle_inferior_event): Clarify debug message.
8392 (insert_step_resume_breakpoint_at_sal): Print a debug message.
8394 2007-04-12 Ulrich Weigand <uweigand@de.ibm.com>
8396 * configure.tgt (arm-*-nto*, sh-*-nto*): Remove.
8398 2007-04-12 Ulrich Weigand <uweigand@de.ibm.com>
8400 * config/m68k/tm-monitor.h: Delete file.
8401 * config/m68k/monitor.mt (DEPRECATED_TM_FILE): Remove.
8402 * m68k-tdep.c (m68k_gdbarch_init): set_gdbarch_decr_pc_after_break
8404 * m68kbsd-tdep.c (m68kbsd_init_abi): ... here and ...
8405 * m68klinux-tdep.c (m68k_linux_init_abi): ... here.
8407 2007-04-12 Luis Machado <luisgpm@br.ibm.com>
8409 * gdbarch.sh (software_single_step): Change the return type
8410 from void to int and reformatted some comments to <= 80
8412 * gdbarch.c, gdbarch.h: Regenerated.
8413 * alpha-tdep.c (alpha_software_single_step): Likewise.
8414 * alpha-tdep.h (alpha_software_single_step): Likewise.
8415 * arm-tdep.c (arm_software_single_step): Likewise.
8416 * cris-tdep.c (cris_software_single_step): Likewise.
8417 * mips-tdep.c (mips_software_single_step): Likewise.
8418 * mips-tdep.h (mips_software_single_step): Likewise.
8419 * rs6000-tdep.c (rs6000_software_single_step): Likewise.
8420 * rs6000-tdep.h (rs6000_software_single_step): Likewise.
8421 * sparc-tdep.c (sparc_software_single_step): Likewise.
8422 * sparc-tdep.h (sparc_software_single_step): Likewise.
8423 * spu-tdep.c (spu_software_single_step): Likewise.
8424 * infrun.c (resume): Check the return value from SOFTWARE_SINGLE_STEP
8425 and act accordingly.
8427 2007-04-11 Steve Ellcey <sje@cup.hp.com>
8429 * configure.ac (build_warnings): Add -Wno-char-subscripts.
8430 * configure: Regenerate.
8431 * doc/gdbint.texinfo (warning flags): Add -Wno-char-subscripts.
8433 2007-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
8435 * libunwind-frame.c (LIBUNWIND_SO): Use major version number for `.so'.
8437 2007-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
8439 * gdbtypes.h (TYPE_FLAG_STUB_SUPPORTED, TYPE_STUB_SUPPORTED): New
8441 (TYPE_IS_OPAQUE): Empty vs. opaque structures are now
8442 distinct on the TYPE_STUB_SUPPORTED debug targets.
8443 * dwarf2read.c (read_structure_type): Set TYPE_FLAG_STUB_SUPPORTED.
8445 2007-04-11 Joel Brobecker <brobecker@adacore.com>
8447 * sparc-tdep.c (X_RS2): New macro.
8448 (sparc_skip_stack_check): New function.
8449 (sparc_analyze_prologue): Adjust PC past stack probing
8450 sequence if necessary.
8452 2007-04-10 Andreas Schwab <schwab@suse.de>
8454 * rs6000-tdep.c (rs6000_dwarf2_reg_to_regnum): Decode 64 as CR
8457 2007-04-10 Daniel Jacobowitz <dan@codesourcery.com>
8459 * breakpoint.c (gdb_breakpoint_query): Really return an
8461 (gdb_breakpoint): Likewise.
8462 * thread.c (gdb_list_thread_ids): Likewise.
8463 (gdb_thread_select): Likewise.
8464 * mi/mi-main.c (mi_cmd_thread_select): Expect an enum gdb_rc.
8465 (mi_cmd_thread_list_ids): Remove bogus initialization.
8467 2007-04-10 Daniel Jacobowitz <dan@codesourcery.com>
8469 * Makefile.in (SFILES): Remove hpacc-abi.c.
8470 (COMMON_OBS): Remove hpacc-abi.o.
8471 (ALLDEPFILES): Remove hpread.c and $(HPREAD_SOURCE).
8472 (hpacc-abi.o, hpread.o): Delete rules.
8473 * somread.c: Delete extern declarations from hpread.c.
8474 (som_symfile_read): Do not call do_pxdb or hpread_build_psymtabs.
8475 (som_symfile_finish): Do not call hpread_symfile_finish.
8476 (som_symfile_init): Do not call hpread_symfile_init.
8477 * config/pa/hppa64.mt (TDEPFILES): Remove hpread.o.
8478 * config/pa/hppahpux.mt (TDEPFILES): Likewise.
8479 * hpacc-abi.c, hpread.c: Deleted.
8481 2007-04-10 Daniel Jacobowitz <dan@codesourcery.com>
8483 * solib-svr4.c (enable_break): Simplify return value.
8484 (svr4_solib_create_inferior_hook): Do not warn if enable_break fails.
8486 2007-04-10 Andreas Schwab <schwab@suse.de>
8488 * solib-svr4.h (struct link_map_offsets): Remove l_addr_size,
8489 l_ld_size, l_next_size, l_prev_size, l_name_size.
8491 * solib-svr4.c (LM_ADDR_FROM_LINK_MAP): Use extract_typed_address
8492 to extract addresses from link map.
8493 (LM_DYNAMIC_FROM_LINK_MAP): Likewise.
8494 (LM_NEXT): Likewise.
8495 (LM_NAME): Likewise.
8496 (IGNORE_FIRST_LINK_MAP_ENTRY): Likewise.
8497 (elf_locate_base): Likewise.
8498 (open_symbol_file_object): Likewise.
8499 (svr4_fetch_objfile_link_map): Likewise.
8500 (SOLIB_EXTRACT_ADDRESS): Remove unused macro.
8501 (HAS_LM_DYNAMIC_FROM_LINK_MAP): Test l_ld_offset instead of
8503 (svr4_ilp32_fetch_link_map_offsets): Don't set removed members.
8504 (svr4_lp64_fetch_link_map_offsets): Likewise.
8506 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets): Don't set
8507 removed members. Set l_ld_offset to -1 if not present.
8509 2007-04-08 Vladimir Prus <vladimir@codesourcery.com>
8511 Pass stderr of program run with "target remote |"
8513 * serial.c (serial_open): Set error_fd to -1.
8514 * serial.h (struct serial): New field error_fd.
8515 (struct serial_opts): New field avail.
8516 * ser-pipe.c (pipe_open): Create another pair
8517 of sockets. Pass stderr to gdb.
8518 * ser-mingw.c (pipe_windows_open): Pass
8519 PEX_STDERR_TO_PIPE to pex_run. Initialize
8522 (_initialize_ser_windows): Hook pipe_avail.
8523 * ser-base.c (generic_readchar): Check if there's
8524 anything in stderr channel and route that to gdb_stderr.
8526 2007-04-03 Pedro Alves <pedro_alves@portugalmail.pt>
8528 * dbxread.c (read_ofile_symtab): Move current_objfile
8529 clearing to after end_stabs.
8531 2007-04-01 Andreas Schwab <schwab@suse.de>
8533 * rs6000-tdep.c (rs6000_convert_from_func_ptr_addr): Use parameter
8534 gdbarch instead of current_gdbarch.
8536 2007-04-01 Vladimir Prus <vladimir@codesourcery.com>
8538 * varobj.c (varobj_create): Keep varobj value
8539 NULL when evaluating the type.
8541 2007-03-31 Pedro Alves <pedro_alves@portugalmail.pt>
8543 * NEWS: Mention new Windows CE support.
8545 2007-03-30 Pedro Alves <pedro_alves@portugalmail.pt>
8547 * configure.tgt: Move mips*-*-pe and sh*-*-pe to
8548 the obsoletion stanza.
8549 * NEWS: Mention deleted targets.
8551 * config/sh/tm-wince.h: Remove.
8552 * config/sh/wince.mt: Remove.
8553 * config/mips/tm-wince.h: Remove.
8554 * config/mips/wince.mt: Remove.
8557 * wince-stub.c: Remove.
8558 * wince-stub.h: Remove.
8559 * Makefile.in (wince.o): Remove rule.
8560 (wince-stub.o): Likewise.
8562 * mips-tdep.c (mips_next_pc): Make static.
8563 * mips-tdep.h (mips_next_pc): Remove declaration.
8564 * arm-tdep.c (arm_pc_is_thumb): Make static.
8565 (thumb_get_next_pc): Likewise.
8566 (arm_get_next_pc): Likewise.
8567 * arm-tdep.h (arm_pc_is_thumb_dummy): Remove declaration.
8568 (arm_pc_is_thumb): Likewise.
8569 (thumb_get_next_pc): Likewise.
8570 (arm_get_next_pc): Likewise.
8572 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
8574 * MAINTAINERS: Remove d10v entry.
8575 * Makefile.in (SFILES): Remove dwarfread.c.
8576 (COMMON_OBS): Remove dwarfread.o.
8577 (gdb_sim_d10v_h, abug-rom.o, cpu32bug-rom.o, d10v-tdep.o, dwarfread.o)
8578 (remote-est.o, rom68k-rom.o): Delete.
8579 * NEWS: Mention removal of d10v, target abug, target cpu32bug,
8580 target est, target rom68k, and DWARF 1.
8581 * configure.tgt: Mark d10v as removed.
8582 * dwarf2read.c: Doc update.
8583 * elfread.c (struct elfinfo): Remove dboffset, dbsize, lnoffset,
8585 (elf_locate_sections): Do not set them.
8586 (elf_symfile_read): Do not call dwarf_build_psymtabs.
8587 * symfile.h (dwarf_build_psymtabs): Delete prototype.
8588 * config/m68k/monitor.mt (TDEPFILES): Prune.
8589 * abug-rom.c, cpu32bug-rom.c, d10v-tdep.c, dwarfread.c,
8590 remote-est.c, rom68k-rom.c, config/d10v/d10v.mt: Delete.
8592 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
8594 * doublest.c (convert_floatformat_to_doublest): Use
8595 floatformat_classify.
8596 (floatformat_is_nan): Rename to...
8597 (floatformat_classify): ...this. Return more information.
8598 * doublest.h (enum float_kind): New.
8599 (floatformat_is_nan): Replace prototype...
8600 (floatformat_classify): ...with this one.
8601 * valprint.c (print_floating): Use floatformat_classify. Handle
8604 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
8606 * README: Mention ISO C library requirement.
8608 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
8610 * Makefile.in (SFILES): Remove nlmread.c.
8611 (COMMON_OBS): Remove nlmread.o.
8612 (nlmread.o): Delete rule.
8613 * README: Delete reference to remote-st.c.
8614 * acinclude.m4 (CY_AC_TCL_LYNX_POSIX): Delete.
8615 * defs.h (enum gdb_osabi): Delete GDB_OSABI_NETWARE and
8617 * i386-tdep.c (i386_nw_init_abi, i386_nlm_osabi_sniffer): Delete.
8618 (_initialize_i386_tdep): Do not reference them.
8619 * nlmread.c: Delete file.
8620 * osabi.c (gdb_osabi_names): Remove NetWare and LynxOS.
8621 * target.c: Doc update.
8622 * thread.c: Delete commented include.
8623 * config/alpha/tm-alpha.h: Doc update.
8625 2007-03-30 Chris Dearman <chris@mips.com>
8627 * utils.c (string_to_core_addr): Comment typo.
8629 2007-03-30 Chris Dearman <chris@mips.com>
8631 * mips-tdep.c: Comment typo.
8633 2007-03-29 Ulrich Weigand <uweigand@de.ibm.com>
8635 * config/alpha/nm-osf.h (PTRACE_XFER_TYPE): Remove.
8636 * config/mips/nm-linux.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Remove.
8637 * config/sparc/nm-linux.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Remove.
8638 * config/powerpc/nm-ppc64-linux.h: Remove file.
8639 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Set to nm-linux.h.
8640 * inferior.h (PTRACE_ARG3_TYPE): Do not define.
8641 (call_ptrace): Change type of third argument to PTRACE_TYPE_ARG3.
8642 * infptrace.c (call_ptrace): Likewise.
8643 * m68klinux-nat.c (PTRACE_XFER_TYPE): Do not define.
8644 (fetch_register): Replace PTRACE_ARG3_TYPE by PTRACE_TYPE_ARG3
8645 and PTRACE_XFER_TYPE by PTRACE_TYPE_RET.
8646 (store_register): Likewise.
8648 2007-03-29 Joel Brobecker <brobecker@adacore.com>
8650 * Makefile.in (varobj.o): Add missing dependency.
8652 2007-03-29 Michael Snyder <msnyder@access-company.com>
8654 * MAINTAINERS: Update my email address.
8656 2007-03-29 Joel Brobecker <brobecker@adacore.com>
8658 Add support for exception handling with multiple versions of
8660 * ada-lang.c: Update general comments on how Ada exception catchpoints
8662 (raise_sym_name, raise_unhandled_sym_name, raise_assert_sym_name)
8663 (__gnat_raise_nodefer_with_msg): Delete.
8664 (ada_unhandled_exception_name_addr_ftype): New type.
8665 (exception_support_info): New type.
8666 (ada_unhandled_exception_name_addr): Add forward declaration.
8667 (ada_unhandled_exception_name_addr_from_raise): Likewise.
8668 (default_exception_support_info): New constant.
8669 (exception_support_info_fallback): Likewise.
8670 (exception_info): New global variable.
8671 (ada_exception_support_info_sniffer): New function.
8672 (ada_executable_changed_observer): Likewise.
8673 (ada_unhandled_exception_name_addr_from_raise): Renamed from
8674 ada_unhandled_exception_name_addr.
8675 (ada_unhandled_exception_name_addr): Reimplement to match the
8676 latest Ada runtime implementation.
8677 (error_breakpoint_runtime_sym_not_found): Delete.
8678 (ada_exception_sym_name): Get the exception sym name from
8679 exception_info rather than hardcoding it.
8680 (ada_exception_sal): Add call to ada_exception_support_info_sniffer.
8681 Update error handling.
8682 * Makefile.in (ada-lang.o): Add dependency on observer.h.
8684 2007-03-29 Daniel Jacobowitz <dan@codesourcery.com>
8686 * Makefile.in (coff_solib_h, coff-solib.o, i386v-nat.o, lynx-nat.o)
8687 (remote-st.o, uw-thread.o): Delete.
8688 (HFILES_NO_SRCDIR, ALLDEPFILES): Update.
8689 * configure.host: Move hppa*-*-hiux*, i[34567]86-ncr-*,
8690 i[34567]86-*-dgux*, i[34567]86-*-lynxos*, i[34567]86-*-sco3.2v5*,
8691 i[34567]86-*-sco3.2v4*, i[34567]86-*-sco*, i[34567]86-*-sysv4.2*,
8692 i[34567]86-*-sysv4*, i[34567]86-*-sysv5*, i[34567]86-*-unixware2*,
8693 i[34567]86-*-unixware*, i[34567]86-*-sysv*, i[34567]86-*-isc*, and
8694 rs6000-*-lynxos* to an obsoletion stanza.
8695 * configure.tgt: Move hppa*-*-hiux*, i[34567]86-ncr-*,
8696 i[34567]86-*-lynxos*, m68*-cisco*-*, m68*-tandem-*, m68*-*-os68k*,
8697 and rs6000-*-lynxos* to an obsoletion stanza. Do not mention
8698 i[34567]86-*-netware*.
8699 * NEWS: Mention deleted targets.
8701 * coff-solib.c, coff-solib.h, i386v-nat.c, lynx-nat.c, remote-st.c,
8702 uw-thread.c, config/nm-lynx.h, config/i386/i386sco.mh,
8703 config/i386/i386sco4.mh, config/i386/i386sco5.mh, config/i386/i386v.mh,
8704 config/i386/i386v4.mh, config/i386/i386v42mp.mh,
8705 config/i386/ncr3000.mh, config/i386/ncr3000.mt,
8706 config/i386/nm-i386sco.h, config/i386/nm-i386sco4.h,
8707 config/i386/nm-i386sco5.h, config/i386/nm-i386v.h,
8708 config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h,
8709 config/m68k/cisco.mt, config/m68k/os68k.mt, config/m68k/st2000.mt,
8710 config/m68k/tm-cisco.h, config/m68k/tm-os68k.h,
8711 config/rs6000/rs6000lynx.mh, config/rs6000/rs6000lynx.mt,
8712 config/rs6000/tm-rs6000ly.h: Delete files.
8714 2007-03-29 Daniel Jacobowitz <dan@codesourcery.com>
8716 * defs.h (deprecated_registers_changed_hook): Delete declaration.
8717 * interps.c (clear_interpreter_hooks): Do not clear
8718 deprecated_registers_changed_hook.
8719 * regcache.c (registers_changed): Do not call it.
8720 * top.c (deprecated_registers_changed_hook): Do not define it.
8721 * mi/mi-interp.c (mi_command_loop): Do not clear it.
8722 * tui/tui-hooks.c (tui_install_hooks): Do not install it.
8723 (tui_remove_hooks): Do not remove it.
8724 (tui_selected_frame_level_changed_hook): Check for negative level.
8725 Use get_selected_frame.
8726 (tui_registers_changed_hook): Deleted.
8728 2007-03-29 Joel Brobecker <brobecker@adacore.com>
8730 * stabsread.c (add_undefined_type): Add extra parameter.
8731 Now handles nameless types separately.
8732 (struct nat): New type.
8733 (noname_undefs, noname_undefs_allocated, noname_undefs_length):
8734 New static variables.
8735 (read_type): Update calls to add_undefined_type.
8736 (add_undefined_type_noname): New function.
8737 (add_undefined_type_1): Renames from add_undefined_type.
8738 (cleanup_undefined_types_noname): New function.
8739 (cleanup_undefined_types_1): Renames cleanup_undefined_types.
8740 (cleanup_undefined_types): New handles nameless types separately.
8741 (_initialize_stabsread): Initialize our new static constants.
8743 2007-03-29 Denis Pilat <denis.pilat@st.com>
8745 * configure.ac: Test for signal.h.
8746 * configure, config.in: Regenerate.
8748 2007-03-29 Denis Pilat <denis.pilat@st.com>
8750 * stack.c (print_stack_frame): Always use LOC_AND_ADDRESS in MI output.
8751 * infrun.c (normal_stop): Remove MI specific frame printing treatment.
8753 2007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
8755 * arm-wince-tdep.c: New.
8756 * config/arm/wince.mt (DEPRECATED_TM_FILE): Use tm-arm.h.
8757 (MT_CFLAGS): Delete.
8759 (TDEPFILES): Add arm-wince-tdep.o, corelow.o, solib.o,
8760 solib-legacy.o, solib-svr4.o, and remove wince.o.
8761 * configure.tgt (arm*-*-mingw32ce*): Add.
8762 * signals/signals.c [HAVE_SIGNAL_H]: Check.
8763 (do_target_signal_to_host): Silence 'not used' warning.
8764 * config/arm/tm-wince.h: Remove.
8766 2007-03-28 Ulrich Weigand <uweigand@de.ibm.com>
8768 * arch-utils.c (legacy_pc_in_sigtramp): Remove.
8769 * arch-utils.h (legacy_pc_in_sigtramp): Remove.
8771 * config/ia64/linux.mt (DEPRECATED_TM_FILE): Remove.
8772 * config/ia64/tm-linux.h: Remove file.
8773 * ia64-tdep.h (struct gdbarch_tdep): Add pc_in_sigtramp callback.
8774 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Use it instead of
8775 legacy_pc_in_sigtramp.
8776 (ia64_gdbarch_init): Initialize tdep->pc_in_sigtramp.
8777 * ia64-linux-tdep.c (ia64_linux_pc_in_sigtramp): Make static.
8778 Remove func_name argument.
8779 (ia64_linux_init_abi): Install it as tdep->pc_in_sigtramp.
8781 * infrun.c (HAVE_STEPPABLE_WATCHPOINT): Do not redefine.
8782 * target.c (update_current_target): Add to_have_steppable_watchpoint.
8783 * target.h (struct target_ops): Add to_have_steppable_watchpoint.
8784 (HAVE_STEPPABLE_WATCHPOINT): Define.
8786 * config/ia64/linux.mh (NATDEPFILES): Remove core-aout.o.
8787 * config/ia64/nm-linux.h (KERNEL_U_ADDR, U_REGS_OFFSET,
8788 CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER,
8789 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_STEPPABLE_WATCHPOINT,
8790 STOPPED_BY_WATCHPOINT, target_stopped_data_address,
8791 target_insert_watchpoint, target_remove_watchpoint): Remove.
8792 (FETCH_INFERIOR_REGISTERS): Define.
8793 * ia64-linux-nat.c (ia64_register_addr): Make static.
8794 (ia64_cannot_fetch_register, ia64_cannot_store_register): Likewise.
8795 (ia64_linux_insert_watchpoint): Make static. Remove ptid_p argument.
8796 (ia64_linux_remove_watchpoint): Likewise. Add type argument.
8797 (ia64_linux_stopped_data_address): Make static. Add target_ops.
8798 (ia64_linux_stopped_by_watchpoint): Make static.
8799 (ia64_linux_can_use_hw_breakpoint): New function.
8800 (ia64_linux_fetch_register, ia64_linux_fetch_registers): Likewise.
8801 (ia64_linux_store_register, ia64_linux_store_registers): Likewise.
8802 (_initialize_ia64_linux_nat): Install register and watchpoint ops.
8804 2007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
8806 * linespec.c: Include language.h.
8807 (find_methods): Add language parameter. Call
8808 lookup_symbol_in_language. Pass language down.
8809 (add_matching_methods): Likewise. Call
8810 lookup_symbol_in_language.
8811 (add_constructors): Likewise.
8812 (find_method): Pass sym_class to collect_methods.
8813 (collect_methods): Add sym_class parameter. Pass language
8815 * symtab.c (lookup_symbol): Rename to ...
8816 (lookup_symbol_in_language): ... this. Add language
8817 parameter. Use passed language instead of current_language.
8818 (lookup_symbol): New as wrapper around
8819 lookup_symbol_in_language.
8820 (lookup_symbol_aux): Add language parameter. Use passed
8821 language instead of current_language.
8822 (search_symbols): Indent.
8823 * symtab.h (enum language): Forward declare.
8824 (lookup_symbol_in_language): Declare.
8825 (lookup_symbol): Update description.
8826 * ada-lang.h (lookup_symbol_in_language): Remove declaration.
8827 * ada-lang.c (restore_language): Remove.
8828 (lookup_symbol_in_language): Remove.
8830 2007-03-27 Pedro Alves <pedro_alves@portugalmail.pt>
8832 * breakpoint.c (bpstat_num): Add int *num parameter.
8833 * breakpoint.h (bpstat_num): Likewise.
8834 * infcmd.c (continue_command): Adjust to new bpstat_num
8836 (program_info): Likewise.
8838 2007-03-27 Ulrich Weigand <uweigand@de.ibm.com>
8840 * config/sh/tm-sh.h: Remove file.
8841 * config/sh/embed.mt (DEPRECATED_TM_FILE): Remove.
8842 * config/sh/linux.mt (DEPRECATED_TM_FILE): Remove.
8843 * config/sh/nbsd.mt (DEPRECATED_TM_FILE): Remove.
8844 * config/sh/tm-wince.h: Do not include "sh/tm-sh.h".
8846 2007-03-27 Ulrich Weigand <uweigand@de.ibm.com>
8848 * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT,
8849 DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Remove.
8850 * remote.c: Remove code under #ifdef DEPRECATED_REMOTE_BREAKPOINT,
8851 DEPRECATED_BIG_REMOTE_BREAKPOINT, DEPRECATED_LITTLE_REMOTE_BREAKPOINT.
8852 * sh-tdep.c (sh_breakpoint_from_pc): Return remote breakpoint
8853 sequence if target_shortname is "remote".
8855 2007-03-27 Anton Blanchard <anton@samba.org>
8857 * rs6000-tdep.c (rs6000_frame_cache): Use tdep->lr_frame_offset
8858 instead of wordsize when looking for the LR in a stack frame.
8860 2007-03-27 Andreas Schwab <schwab@suse.de>
8861 Daniel Jacobowitz <dan@codesourcery.com>
8863 * dwarf2-frame.c (dwarf2_frame_eh_frame_regnum): Rename to...
8864 (dwarf2_frame_adjust_regnum): ...this. Make static. Add eh_frame_p
8865 argument. Update all callers.
8866 (struct dwarf2_frame_ops): Replace eh_frame_regnum with adjust_regnum.
8867 (dwarf2_frame_set_eh_frame_regnum): Rename to...
8868 (dwarf2_frame_set_adjust_regnum): ...this. Update argument type.
8869 * dwarf2frame.h (dwarf2_frame_set_eh_frame_regnum): Rename to...
8870 (dwarf2_frame_set_adjust_regnum): ...this.
8871 (dwarf2_frame_eh_frame_regnum): Delete prototype.
8872 * rs6000-tdep.c: Include "dwarf2-frame.h".
8873 (rs6000_adjust_frame_regnum): Define.
8874 (rs6000_gdbarch_init): Enable use of DWARF CFI frame unwinder.
8875 Register rs6000_adjust_frame_regnum.
8877 * Makefile.in (rs6000-tdep.o): Update dependencies.
8879 2007-03-27 Brooks Moses <brooks.moses@codesourcery.com>
8881 * Makefile.in: Add support for a "pdf" target.
8883 2007-03-27 Daniel Jacobowitz <dan@codesourcery.com>
8885 * amd64-tdep.c (amd64_init_frame_cache): New function.
8886 (amd64_alloc_frame_cache, amd64_skip_prologue): Use it.
8888 2007-03-26 Nigel Stephens <nigel@mips.com>
8889 Maciej W. Rozycki <macro@mips.com>
8891 * ui-out.c (ui_out_field_core_addr): Truncate address to
8892 TARGET_ADDR_BIT size before printing.
8894 2007-03-22 Nigel Stephens <nigel@mips.com>
8895 Maciej W. Rozycki <macro@mips.com>
8897 * remote-mips.c (mips_xfer_memory): Update prototype.
8899 2007-03-22 Joel Brobecker <brobecker@adacore.com>
8901 * symfile.h: #include "symtab.h"
8903 2007-03-22 Denis Pilat <denis.pilat@st.com>
8905 * utils.c (pagination_on_command, pagination_off_command):
8906 Remove useless prototypes.
8908 2007-03-21 Pierre Muller <muller@ics.u-strasbg.fr>
8911 * p-valprint.c (pascal_object_print_value): Use type_name_no_tag
8912 instead of TYPE_NAME for object base class name.
8915 2007-03-19 Kevin Buettner <kevinb@redhat.com>
8917 * mep-tdep.c (mep_analyze_frame_prologue, mep_frame_this_id):
8918 Specify frame type in calls to frame_func_unwind().
8920 2007-03-13 Daniel Jacobowitz <dan@codesourcery.com>
8922 * rs6000-tdep.c (rs6000_skip_prologue): Use skip_prologue_using_sal.
8923 (rs6000_in_function_epilogue_p): Use extract_unsigned_integer.
8924 (refine_prologue_limit): Delete.
8925 (skip_prologue): Don't call it. Use extract_unsigned_integer.
8926 Assume lim_pc is set. Correct check for incomplete prologues.
8927 Do not skip clobbers of the frame pointer.
8928 * symtab.c (skip_prologue_using_sal): Fail if there is only one
8931 2007-03-13 Nathan Froyd <froydnj@codesourcery.com>
8933 * frame.c (frame_pop): Check to see whether there's a frame to
8934 which we can pop first.
8936 2007-03-13 Nathan Froyd <froydnj@codesourcery.com>
8938 * MAINTAINERS (Write After Approval): Add myself.
8940 2007-03-09 Markus Deuling <deuling@de.ibm.com>
8942 * infrun.c (breakpoints_failed): Remove unnecessary variable.
8943 (handle_inferior_event): Remove unnecessary braces.
8944 * breakpoint.c (bpstat_what): Remove wrong comment.
8946 2007-03-09 Ulrich Weigand <uweigand@de.ibm.com>
8948 * spu-tdep.c (spu_in_function_epilogue_p): New function.
8949 (spu_gdbarch_init): Install it.
8951 2007-03-08 Ulrich Weigand <uweigand@de.ibm.com>
8953 * spu-linux-nat.c (spu_xfer_partial): Return -1 for unsupported
8954 object types, not 0.
8956 2007-03-08 Ulrich Weigand <uweigand@de.ibm.com>
8958 * spu-tdep.c (spu_frame_align): New function.
8959 (spu_gdbarch_init): Install it. Set call dummy location to ON_STACK.
8961 2007-03-08 Ulrich Weigand <uweigand@de.ibm.com>
8963 * spu-tdep.c (spu_unwind_pc): Mask off interrupt enable bit.
8964 (spu_software_single_step): Likewise.
8965 (spu_read_pc, spu_write_pc): New functions.
8966 (spu_gdbarch_init): Install them.
8968 2007-03-08 Ulrich Weigand <uweigand@de.ibm.com>
8970 * cli/cli-dump.c (struct callback_data): load_offset needs to
8971 have signed long type.
8973 2007-03-07 Joel Brobecker <brobecker@adacore.com>
8975 * mips-tdep.c (mips_insn16_frame_cache, mips_insn32_frame_sniffer):
8976 Revert the previous change that had some unexpected side-effects
8978 (mips_insn16_frame_cache, mips_insn32_frame_cache): Use the proper
8979 function to get the address of the calling instruction.
8981 2007-03-07 Denis Pilat <denis.pilat@st.com>
8983 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Replace
8984 get_selected_frame by deprecated_safe_get_selected_frame.
8986 2007-03-02 Mark Kettenis <kettenis@gnu.org>
8988 * shnbsd-tdep.c: Include "regset.h", "gdb_assert.h" and
8989 "gdb_string.h". Don't include "nbsd-tdep.h".
8990 (SIZEOF_STRUCT_REG): Remove.
8991 (SHNBSD_SIZEOF_GREGS): New.
8992 (shnbsd_supply_gregset, shnbsd_collect_gregset)
8993 (shnbsd_regset_from_core_section): New functions.
8994 (fetch_core_registers, fetch_elfcore_registers): Remove functions.
8995 (shnbsd_supply_reg, shnbsd_fill_reg): Simply call
8996 shnbsd_supply_gregset, shnbsd_collect_gregset.
8997 (shnbsd_gregset): New variable.
8998 (shnbsd_init_abi): Set regset_from_core_section.
8999 (GDB_OSABI_NETBSD_CORE): New define.
9000 (shnbsd_core_osabi_sniffer): New function.
9001 (_initialize_shnbsd_tdep): Register shnbsd_core_osabi_sniffer.
9002 * Makefile.in (shnbsd-tdep.o): Update dependencies.
9003 * config/sh/nbsd.mt (TDEPFILES): Add corelow.o, remove
9005 * config/sh/obsd.mt (TDEPFILES): Remove nbsd-tdep.o.
9007 2007-02-28 Joel Brobecker <brobecker@adacore.com>
9009 * gdbtypes.c (replace_type): Fix typo that caused us to not update
9010 length of the types referenced by the new type CV ring.
9012 2007-02-28 Daniel Jacobowitz <dan@codesourcery.com>
9014 * frame.c (frame_pop, frame_observer_target_changed): Call
9016 (flush_cached_frames): Rename to reinit_frame_cache and delete
9018 * frame.h (flush_cached_frames): Delete prototype and update comment.
9020 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd): Call
9021 reinit_frame_cache instead of flush_cached_frames. Do not call
9022 select_frame after reinit_frame_cache.
9023 * corelow.c (core_open): Likewise.
9024 * gdbarch.sh (deprecated_current_gdbarch_select_hack): Likewise.
9025 * infrun.c (prepare_to_proceed, context_switch)
9026 (handle_inferior_event): Likewise.
9027 * linux-fork.c (fork_load_infrun_state): Likewise.
9028 * ocd.c (ocd_start_remote): Likewise.
9029 * remote-e7000.c (e7000_start_remote): Likewise.
9030 * remote-mips.c (device): Likewise.
9031 * thread.c (switch_to_thread): Likewise.
9032 * tracepoint.c (finish_tfind_command): Likewise.
9033 * gdbarch.c: Regenerated.
9035 2007-02-28 Jerome Guitton <guitton@adacore.com>
9036 Joel Brobecker <brobecker@adacore.com>
9038 * gdbtypes.c (check_typedef): Do not replace stub type if
9039 the resolved type is not defined in the same objfile.
9041 2007-02-28 Daniel Jacobowitz <dan@codesourcery.com>
9043 * top.c (gdb_readline_wrapper_cleanup): Remove invalid assertion.
9045 2007-02-28 Joel Brobecker <brobecker@adacore.com>
9047 * stabsread.c (define_symbol): Create an associated STRUCT_DOMAIN
9048 symbol for Ada units when the symbol is defined using 't' rather
9049 than 'Tt' as symbol descriptor.
9051 2007-02-28 Ulrich Weigand <uweigand@de.ibm.com>
9053 * config/mips/tm-nbsd.h: Delete file.
9054 * config/mips/nbsd.mt (DEPRECATED_TM_FILE): Remove.
9055 * config/sh/tm-nbsd.h: Delete file.
9056 * config/sh/nbsd.mt (DEPRECATED_TM_FILE): Set to tm-sh.h.
9058 2007-02-28 Joel Brobecker <brobecker@adacore.com>
9060 * mi/mi-cmd-var.c (varobj_update_one): Remove reference to
9061 unused WRONG_PARAM value since it was recently deleted.
9063 2007-02-28 Vladimir Prus <vladimir@codesourcery.com>
9065 * varobj.c (varobj_update): Free temporary vectors.
9067 2007-02-28 Ulrich Weigand <uweigand@de.ibm.com>
9069 * config/powerpc/linux.mt (DEPRECATED_TM_FILE): Set to tm-ppc-eabi.h.
9070 * config/powerpc/tm-linux.h: Delete file.
9071 * config/powerpc/tm-ppc-eabi.h: Do not include "rs6000/tm-rs6000.h".
9072 (PROCESS_LINENUMBER_HOOK): Do not undefine.
9073 (TEXT_SEGMENT_BASE): Do not redefine.
9074 * config/rs6000/nm-rs6000.h (CHILD_SPECIAL_WAITSTATUS): Move here
9075 from config/rs6000/tm-rs6000.h.
9076 (TARGET_CREATE_INFERIOR_HOOK, rs6000_create_inferior): Likewise.
9077 * config/rs6000/tm-rs6000.h (struct frame_info): Remove declaration.
9078 (TEXT_SEGMENT_BASE): Remove.
9079 (IN_SOLIB_RETURN_TRAMPOLINE): Remove.
9080 (rs6000_in_solib_return_trampoline): Remove.
9081 (SKIP_TRAMPOLINE_CODE): Remove.
9082 (rs6000_skip_trampoline_code): Remove.
9083 (CHILD_SPECIAL_WAITSTATUS): Move to config/rs6000/nm-rs6000.h.
9084 (TARGET_CREATE_INFERIOR_HOOK, rs6000_create_inferior): Likewise.
9085 (FP0_REGNUM): Remove.
9086 (rs6000_find_toc_address_hook): Move to rs6000-tdep.h.
9087 (rs6000_set_host_arch_hook): Remove.
9088 * Makefile.in (rs6000-nat.o): Add dependency on $(rs6000_tdep_h).
9089 (rs6000-aix-tdep.o): Add dependency on $(ppc_tdep_h).
9090 * ppc-tdep.h (struct gdbarch_tdep): Add field text_segment_base.
9091 * rs6000-aix-tdep.c: Include "ppc-tdep.h".
9092 (rs6000_aix_init_osabi): Set text_segment_base tdep field.
9093 * rs6000-nat.c: Include "rs6000-tdep.h".
9094 (exec_one_dummy_insn): Replace TEXT_SEGMENT_BASE by tdep field.
9095 (set_host_arch): Rename to ...
9096 (rs6000_create_inferior): ... this. Make public.
9097 (_initialize_core_rs6000): Do not set rs6000_set_host_arch_hook.
9098 * rs6000-tdep.c (rs6000_set_host_arch_hook): Remove.
9099 (rs6000_create_inferior): Remove.
9100 (branch_dest): Replace TEXT_SEGMENT_BASE by tdep field.
9101 (rs6000_gdbarch_init): Call set_gdbarch_fp0_regnum,
9102 set_gdbarch_in_solib_return_trampoline, and
9103 set_gdbarch_skip_trampoline_code.
9104 * rs6000-tdep.h (rs6000_find_toc_address_hook): Move here
9105 from config/rs6000/tm-rs6000.h.
9107 2007-02-27 Joel Brobecker <brobecker@adacore.com>
9109 * buildsym.c (record_producer): Do nothing if no producer is provided.
9111 2007-02-27 Nick Roberts <nickrob@snap.net.nz>
9113 * varobj.c (varobj_update): Remove unused local. Use gdb_assert
9114 to check changelist is non-NULL. Call error if the frontend tries
9115 to update a non-root variable.
9117 * varobj.h (enum varobj_update_error): Delete WRONG_PARAM value.
9119 2007-02-27 Daniel Jacobowitz <dan@codesourcery.com>
9121 * dwarf2-frame.c (dwarf2_frame_cache, dwarf2_frame_this_id)
9122 (dwarf2_frame_sniffer): Update.
9123 (dwarf2_signal_frame_this_id): New function.
9124 (dwarf2_signal_frame_unwind): Use it.
9125 (dwarf2_frame_base_sniffer): Use frame_unwind_address_in_block.
9126 * frame.c (frame_func_unwind): Add this_type argument.
9127 (get_frame_func): Update.
9128 (frame_unwind_address_in_block): Add this_type argument and check it.
9130 (get_frame_address_in_block): Update.
9131 * frame.h (enum frame_type): Move higher in the file.
9132 (frame_unwind_address_in_block, frame_func_unwind): Add enum frame_type
9135 * alpha-mdebug-tdep.c, alpha-tdep.c, amd64-tdep.c, amd64obsd-tdep.c,
9136 arm-tdep.c, avr-tdep.c, cris-tdep.c, frv-tdep.c, h8300-tdep.c,
9137 hppa-tdep.c, i386-tdep.c, i386obsd-tdep.c, ia64-tdep.c,
9138 libunwind-frame.c, m32c-tdep.c, m32r-linux-tdep.c, m32r-tdep.c,
9139 m68hc11-tdep.c, m68k-tdep.c, m88k-tdep.c, mips-mdebug-tdep.c,
9140 mips-tdep.c, mn10300-tdep.c, mt-tdep.c, rs6000-tdep.c, s390-tdep.c,
9141 score-tdep.c, sh-tdep.c, sh64-tdep.c, sparc-tdep.c,
9142 sparc64obsd-tdep.c, spu-tdep.c, v850-tdep.c, vax-tdep.c,
9143 xstormy16-tdep.c, xtensa-tdep.c: Update calls to
9144 frame_func_unwind and frame_unwind_address_in_block to specify
9145 the frame type. Use frame_unwind_address_in_block instead of
9146 frame_pc_unwind in sniffers.
9148 2007-02-27 Daniel Jacobowitz <dan@codesourcery.com>
9150 * frame.c (deprecated_selected_frame): Rename to...
9151 (selected_frame): ...this. Make static.
9152 (get_selected_frame, select_frame): Update.
9153 * frame.h (deprected_select_frame): Delete.
9154 (deprecated_safe_get_selected_frame): Update comments.
9156 * breakpoint.c, cli/cli-cmds.c, f-valprint.c, infcmd.c, inflow.c,
9157 infrun.c, stack.c, tui/tui-disasm.c, tui/tui-source.c,
9158 tui/tui-winsource.c, valops.c, varobj.c, findvar.c, macroscope.c,
9159 parse.c, regcache.h, sh64-tdep.c, tui/tui-hooks.c, tui/tui-win.c,
9160 tui/tui.c: Replace references to deprecated_selected_frame.
9162 2007-02-27 Fred Fish <fnf@specifix.com>
9164 * rs6000-tdep.c (skip_prologue): Recognize addi instructions that
9165 directly decrement the stack pointer, accumulate their operand into
9166 the stack offset, and mark the function as not being frameless.
9168 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
9170 * arch-utils.c (selected_byte_order): New.
9171 * arch-utils.h (selected_byte_order): New prototype.
9172 * remote-sim.c (gdbsim_open): Use selected_byte_order.
9174 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
9176 * symfile.c (place_section): Check SEC_ALLOC. Do not check VMA.
9177 (default_symfile_offsets): Check VMA here. Update section VMAs.
9179 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
9181 * remote.c (init_remote_state): Add special handling for placeholder
9184 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
9186 * Makefile.in (XMLFILES): Include $(TDEP_XML).
9187 (filenames_h): New variable.
9188 (clean): Clean up xml-builtin.c and stamp-xml.
9189 (arm-linux-nat.o): Update.
9190 * config/arm/linux.mh (TDEP_XML): Define.
9191 * arm-linux-nat.c (PTRACE_GETWMMXREGS, PTRACE_SETWMMXREGS): Define.
9192 (arm_linux_has_wmmx_registers): New.
9193 (GET_THREAD_ID): Fix typo.
9194 (IWMMXT_REGS_SIZE): Define.
9195 (fetch_wmmx_regs, store_wmmx_regs): New.
9196 (arm_linux_fetch_inferior_registers): Use fetch_wmmx_regs.
9197 (arm_linux_store_inferior_registers): Use store_wmmx_regs.
9198 (super_xfer_partial, arm_linux_xfer_partial): New.
9199 (_initialize_arm_linux_nat): Use them.
9200 * xml-support.c (fetch_xml_builtin): Move outside HAVE_LIBEXPAT.
9201 (xml_builtin_xfer_partial): New function.
9202 * xml-support.h (xml_builtin_xfer_partial): New prototype.
9203 * NEWS: Update mention of iWMMXt support.
9205 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
9207 * arm-tdep.c (arm_scan_prologue): Do not record FPA register saves
9208 if there are no FPA registers.
9209 (arm_dwarf_reg_to_regnum): New function.
9210 (arm_register_type, arm_register_name): Return minimal values for
9211 unsupported registers.
9212 (arm_register_sim_regno): Handle iWMMXt registers.
9213 (arm_gdbarch_init): Record missing FPA registers if indicated by
9214 a target description. Recognize iWMMXt registers. Only register
9215 "info float" for FPA. Use ARM_NUM_REGS. Register
9216 arm_dwarf_reg_to_regnum.
9217 * arm-tdep.h (enum gdb_regnum): Add ARM_NUM_REGS and iWMMXt
9219 (struct gdbarch_tdep): Add have_fpa_registers.
9220 * features/xscale-iwmmxt.xml: Update capitalization.
9221 * regformats/arm-with-iwmmxt.dat: Regenerated.
9223 2007-02-24 Kevin Buettner <kevinb@redhat.com>
9225 * NEWS (New targets): Add entry for the Toshiba Media Processor.
9227 2007-02-23 Kevin Buettner <kevinb@redhat.com>
9229 * MAINTAINERS (mep): New target.
9231 2007-02-23 Kevin Buettner <kevinb@redhat.com>
9233 From Jim Blandy, Dave Brolley, Kevin Buettner, Don Howard, and
9235 * Makefile.in (elf_mep_h, mep_desc_h, mep_opc_h): New variables.
9236 (mep-tdep.o): New rule.
9237 * configure.tgt (mep-*-*): New target.
9238 * mep-tdep.c: New file.
9239 * config/mep/mep.mt: New file.
9241 2007-02-22 Markus Deuling <deuling@de.ibm.com>
9243 * infrun.c (inferior_stop_reason, print_stop_reason): Remove
9244 BREAKPOINT_HIT and STOP_UNKNOWN.
9246 2007-02-22 Markus Deuling <deuling@de.ibm.com>
9248 * valops.c (value_ind): Fix unary * handling of TYPE_CODE_INT.
9250 2007-02-20 Joel Brobecker <brobecker@adacore.com>
9252 * gdb_expat.h (XMLCALL): Define if not already defined.
9254 2007-02-20 Andreas Schwab <schwab@suse.de>
9256 * Makefile.in (symfile.o): Update dependencies.
9258 2007-02-20 Daniel Jacobowitz <dan@codesourcery.com>
9260 * MAINTAINERS: Disable -Werror for cris simulator. Build
9261 sparc64-solaris2.10 instead of the broken sparc-elf.
9262 * solib-frv.c: Include "solib.h".
9263 * Makefile.in (solib-frv.o): Update.
9264 * mt-tdep.c (mt_gdbarch_init): Correct typo in floatformats patch.
9265 * xtensa-tdep.c (xtensa_regset_from_core_section): Cast size_t to int.
9266 (xtensa_frame_this_id, xtensa_frame_prev_register)
9267 (xtensa_push_dummy_call): Use %p.
9269 2007-02-16 Daniel Jacobowitz <dan@codesourcery.com>
9271 * avr-tdep.c, hppa-tdep.c, hppabsd-tdep.c, i386-tdep.c,
9272 ia64-tdep.c, m68k-tdep.c, mips-linux-tdep.c, ppcobsd-tdep.c,
9273 sparc-linux-tdep.c: Include "gdbtypes.h" instead of "floatformat.h".
9274 * Makefile.in (avr-tdep.o, hppabsd-tdep.o, hppa-tdep.o, i386-tdep.o)
9275 (ia64-tdep.o, m68k-tdep.o, mips-linux-tdep.o, ppcobsd-tdep.o)
9276 (sparc-linux-tdep.o): Update.
9278 2007-02-15 Maxim Grigoriev <maxim2405@gmail.com>
9280 * xtensa-tdep.h (xtensa_reg_mask_t): New.
9281 (xtensa_mask_t): Change mask field to be a separate array.
9282 * xtensa-tdep.c (extract_call_winsize, xtensa_pseudo_register_read)
9283 (xtensa_pseudo_register_write, xtensa_unwind_pc)
9284 (xtensa_unwind_dummy_id, xtensa_push_dummy_call)
9285 (xtensa_breakpoint_from_pc): Remove implicit type casting.
9286 * xtensa-config.c (mask0, mask1, mask2, mask3, mask4, mask5)
9287 (mask6, mask7, mask8, mask9, mask10, mask11, mask12, mask13)
9288 (mask14, mask15): Rename to
9289 (xtensa_mask0, xtensa_mask1, xtensa_mask2, xtensa_mask3)
9290 (xtensa_mask4, xtensa_mask5, xtensa_mask6, xtensa_mask7)
9291 (xtensa_mask8, xtensa_mask9, xtensa_mask10, xtensa_mask11)
9292 (xtensa_mask12, xtensa_mask13, xtensa_mask14, xtensa_mask15): this.
9293 (xtensa_submask0, xtensa_submask1, xtensa_submask2, xtensa_submask3)
9294 (xtensa_submask4, xtensa_submask5, xtensa_submask6, xtensa_submask7)
9295 (xtensa_submask8, xtensa_submask9, xtensa_submask10)
9296 (xtensa_submask11, xtensa_submask12, xtensa_submask13)
9297 (xtensa_submask14, xtensa_submask15): New.
9298 (rmap): Follow strict aliasing rules doing static initialization.
9300 2007-02-13 Daniel Jacobowitz <dan@codesourcery.com>
9302 * target-descriptions.c (tdesc_named_type): Move code_ptr and data_ptr
9303 handling from here...
9304 (tdesc_register_type): ...to here.
9305 * xml-tdesc.c (tdesc_start_reg): Allow code_ptr and data_ptr.
9306 * features/arm-core.xml: Use code_ptr and data_ptr.
9308 2007-02-13 Denis Pilat <denis.pilat@st.com>
9310 * varobj.h (enum varobj_update_error): New enum.
9311 * varobj.c (struct varobj_root): Add is_valid member.
9312 (varobj_get_type): Check for invalid varobj.
9313 (varobj_get_attributes): Likewise.
9314 (variable_editable):Likewise.
9315 (varobj_update): Likewise. Use varobj_update_error.
9316 (new_root_variable): Set root varobj as valid by default.
9317 (varobj_invalidate): New function.
9318 * symfile.c (clear_symtab_users): Use varobj_invalidate.
9319 * mi/mi-cmd-var.c (varobj_update_one): Change return type to void.
9320 Use varobj_update_error.
9322 2007-02-12 Pierre Muller <muller@ics.u-strasbg.fr>
9325 * dwarfread.c (set_cu_language): Recognize DW_LANG_Pascal83 as
9326 Pascal language marker.
9327 * dwarf2read.c (set_cu_language): Likewise.
9329 2007-02-12 Corinna Vinschen <vinschen@redhat.com>
9331 * win32-nat.c (win32_wait): Reset terminal pgrp to GDB.
9332 (do_initial_win32_stuff): Call terminal_init_inferior_with_pgrp
9333 instead of target_terminal_init since inferior_ptid isn't set yet.
9335 2007-02-10 Pedro Alves <pedro_alves@portugalmail.pt>
9337 * MAINTAINERS (Write After Approval): Add myself.
9339 2007-02-09 Fred Fish <fnf@specifix.com>
9341 Based on work by Apple Computer, Inc.
9342 * event-top.c (async_request_quit): Call quit() whenever either
9343 quit_flag is set or immediate_quit is set.
9345 2007-02-09 Gabriel Dos Reis <gdr@integrable-solutions.net>
9347 * ada-lang.c (remove_out_of_scope_renamings): Change third parameter's
9348 type to a pointer to const struct block.
9349 (ada_lookup_symbol_list): Don't cast away constness when calling
9350 remove_out_of_scope_renamings.
9352 2007-02-09 Gabriel Dos Reis <gdr@integrable-solutions.net>
9354 * linux-nat.c (linux_nat_find_memory_regions): Don't check the
9355 address of 'filename'; it is always non null.
9357 2007-02-09 Joel Brobecker <brobecker@adacore.com>
9359 * exec.c (add_to_section_table): Do not discard empty sections.
9361 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
9363 * features/Makefile, features/arm-with-iwmmxt.xml,
9364 features/gdbserver-regs.xsl, features/number-regs.xsl,
9365 features/sort-regs.xsl, features/xscale-iwmmxt.xml: New files.
9366 * regformats/arm-with-iwmmxt.dat: Generate.
9367 * NEWS: Mention iWMMXt.
9369 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
9371 * Makefile.in (arm-tdep.o, eval.o, target-descriptions.o)
9372 (xml-tdesc.o): Update.
9373 * xml-support.c: Add a comment.
9374 (gdb_xml_enums_boolean): New variable.
9375 (gdb_xml_parse_attr_enum): Use strcasecmp.
9376 * xml-support.h (gdb_xml_enums_boolean): Declare.
9377 * xml-tdesc.c (struct tdesc_parsing_data): Record current_feature,
9378 next_regnum, and current_union.
9379 (tdesc_start_feature, tdesc_start_reg, tdesc_start_union)
9380 (tdesc_end_union, tdesc_start_field, tdesc_start_vector)
9381 (field_attributes, union_children, reg_attributes, union_attributes)
9382 (vector_attributes, feature_attributes, feature_children): New.
9383 (target_children): Make static. Add <feature>.
9384 (tdesc_elements): Make static.
9385 * target-descriptions.c (struct tdesc_reg, tdesc_reg_p, type_p)
9386 (struct tdesc_feature, tdesc_feature_p): New types.
9387 (struct target_desc): Add features member.
9388 (struct tdesc_arch_data, tdesc_data): New.
9389 (target_find_description): Clarify error message. Warn about
9390 ignored register descriptions.
9391 (tdesc_has_registers, tdesc_find_feature, tdesc_feature_name)
9392 (tdesc_named_type, tdesc_data_init, tdesc_data_alloc)
9393 (tdesc_data_cleanup, tdesc_numbered_register)
9394 (tdesc_numbered_register_choices, tdesc_find_register)
9395 (tdesc_register_name, tdesc_register_type)
9396 (tdesc_remote_register_number, tdesc_register_reggroup_p)
9397 (set_tdesc_pseudo_register_name, set_tdesc_pseudo_register_type)
9398 (set_tdesc_pseudo_register_reggroup_p, tdesc_use_registers)
9399 (tdesc_free_reg, tdesc_create_reg, tdesc_free_feature)
9400 (tdesc_create_feature, tdesc_record_type): New.
9401 (free_target_description): Free features.
9402 (_initialize_target_descriptions): Initialize tdesc_data.
9403 * arch-utils.c (default_remote_register_number): New.
9404 * arch-utils.h (default_remote_register_number): New prototype.
9405 * target-descriptions.h (set_tdesc_pseudo_register_name)
9406 (set_tdesc_pseudo_register_type, set_tdesc_pseudo_register_reggroup_p)
9407 (tdesc_use_registers, tdesc_data_alloc, tdesc_data_cleanup)
9408 (tdesc_numbered_register, tdesc_numbered_register_choices)
9409 (tdesc_has_registers, tdesc_find_feature, tdesc_feature_name)
9410 (tdesc_named_type, tdesc_create_feature, tdesc_record_type)
9411 (tdesc_create_reg): Declare.
9412 * gdbarch.sh (remote_register_number): New entry.
9413 * gdbarch.c, gdbarch.h: Regenerate.
9414 * remote.c (init_remote_state): Use gdbarch_remote_register_number.
9415 * features/gdb-target.dtd: Add feature, reg, vector, union, and field.
9417 * arm-tdep.c (arm_register_aliases): New.
9418 (arm_register_name_strings): Rename to...
9419 (arm_register_names): ...this. Make const. Delete the old version.
9420 (current_option, arm_register_byte): Delete.
9421 (set_disassembly_style): Simplify. Do not adjust arm_register_names.
9422 (value_of_arm_user_reg): New.
9423 (arm_gdbarch_init): Verify any described registers. Call
9424 tdesc_use_registers. Don't use arm_register_byte. Create aliases
9425 for standard register names.
9426 (_initialize_arm_tdep): Do not adjust arm_register_names.
9427 * user-regs.c (struct user_reg): Add baton member.
9428 (append_user_reg, user_reg_add_builtin, user_regs_init)
9429 (user_reg_add, value_of_user_reg): Use a baton for user
9431 * std-regs.c: Update.
9432 * user-regs.h (user_reg_read_ftype, user_reg_add_builtin)
9433 (user_reg_add): Add baton argument.
9434 * NEWS: Mention target description register support.
9435 * features/arm-core.xml, features/arm-fpa.xml: New.
9436 * eval.c (evaluate_subexp_standard): Allow ptype $register
9437 when the program is not running.
9439 2007-02-09 Nick Roberts <nickrob@snap.net.nz>
9441 * mi/mi-cmd-var.c (mi_cmd_var_create): Add value field.
9443 2007-02-08 Thiago Jung Bauermann <bauerman@br.ibm.com>
9445 * rs6000-tdep.c (gdb_print_insn_powerpc): Set
9446 info->disassembler_options to "any".
9448 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
9450 * varobj.c (install_new_value): Only call value_get_print_value
9453 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
9455 Reported by timeless@gmail.com:
9456 * gdb/target.c (target_flash_erase): Do not return void value.
9457 (target_flash_done): Likewise.
9458 * gdb/cli/cli-cmds.c (source_command): Likewise.
9460 2007-02-08 Fred Fish <fnf@specifix.com>
9462 Based on work by Apple Computer, Inc.
9463 * event-top.c (handle_sigint): Set quit_flag.
9464 (async_request_quit): Don't set quit_flag. Avoid calling quit()
9465 if quit_flag has already been reset.
9467 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
9469 * ser-mingw.c (pipe_windows_close): Move variable initialization back
9472 2007-02-08 Fred Fish <fnf@specifix.com>
9474 * defs.h (request_quit): Remove declaration.
9475 * utils.c (request_quit): Remove definition.
9477 2007-02-08 Joel Brobecker <brobecker@gnat.com>
9478 Jan Kratochvil <jan.kratochvil@redhat.com>
9479 Daniel Jacobowitz <dan@codesourcery.com>
9481 * rs6000-tdep.c (bl_to_blrl_insn_p): New function.
9482 (skip_prologue): Allow bl->blrl used by PIC code.
9484 2007-02-08 Mark Kettenis <kettenis@gnu.org>
9485 Daniel Jacobowitz <dan@codesourcery.com>
9487 * cp-valprint.c (cp_print_value_fields, cp_print_value): Always
9488 initialize tmp_obstack.
9489 * p-valprint.c (pascal_object_print_value_fields)
9490 (pascal_object_print_value): Likewise.
9492 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
9494 * features/feature_to_c.sh: Use %s to avoid problems with nawk.
9496 2007-02-08 Mark Kettenis <kettenis@gnu.org>
9498 * sparcnbsd-tdep.c: Include "gdbtypes.h" instead of "floatformat.h".
9499 * Makefile.in (sparcnbsd-tdep.o): Update dependencies.
9501 2007-02-07 Daniel Jacobowitz <dan@codesourcery.com>
9503 * xml-tdesc.c (struct tdesc_xml_cache, tdesc_xml_cache_s)
9505 (tdesc_parse_xml): Cache expanded descriptions.
9507 2007-02-07 Daniel Jacobowitz <dan@codesourcery.com>
9509 * Makefile.in (XMLFILES): New.
9510 (COMMON_OBS): Add xml-builtin.o.
9511 (xml-builtin.c, stamp-xml): New rules.
9512 (xml-tdesc.o): Update.
9513 * features/feature_to_c.sh: New file.
9514 * xml-support.c (MAX_XINCLUDE_DEPTH): Define.
9515 (struct gdb_xml_parser): Add dtd_name and is_xinclude.
9516 (gdb_xml_start_element): Initialize scope after possibly reallocating
9517 scopes. Move cleanup later. Handle the XInclude description
9519 (gdb_xml_end_element): Only parse the body if there is a current element.
9520 Call XML_DefaultCurrent if there is no element.
9521 (gdb_xml_fetch_external_entity, gdb_xml_use_dtd): New.
9522 (struct xinclude_parsing_data, xinclude_start_include)
9523 (xinclude_end_include, xml_xinclude_default)
9524 (xml_xinclude_start_doctype, xml_xinclude_end_doctype)
9525 (xml_xinclude_xml_decl, xml_xinclude_cleanup, xinclude_attributes)
9526 (xinclude_elements, xml_process_xincludes, fetch_xml_builtin): New.
9527 * xml-support.h (xml_fetch_another, xml_process_xincludes)
9528 (fetch_xml_builtin, xml_builtin, gdb_xml_use_dtd): New declarations.
9529 * xml-tdesc.c (tdesc_parse_xml): Add fetcher_baton argument. Expand
9530 XInclude directives. Use the compiled in DTD.
9531 (fetch_xml_from_file): Add baton argument. Treat it as a containing
9532 directory name. Do not warn here.
9533 (file_read_description_xml): Update call. Warn here instead. Pass
9535 (fetch_available_features_from_target): New.
9536 (target_read_description_xml): Use it.
9537 * features/gdb-target.dtd: Add copyright notice. Use xinclude.dtd
9539 * features/xinclude.dtd: New file.
9541 2007-02-05 Daniel Jacobowitz <dan@codesourcery.com>
9543 * linux-thread-db.c (check_for_thread_db): Return early if we have
9544 no libthread_db support.
9546 2007-02-05 Daniel Jacobowitz <dan@codesourcery.com>
9548 * mi/mi-parse.h: Include <sys/time.h>.
9550 2007-02-05 Nick Roberts <nickrob@snap.net.nz>
9552 * mi/mi-cmd-stack.c (list_args_or_locals): Use common_val_print
9553 instead of print_variable_value to print values.
9555 2007-02-03 Nick Roberts <nickrob@snap.net.nz>
9557 * mi/mi-main.c: Numerous formatting changes.
9558 (mi_cmd_data_write_register_values): Replace clause inadvertantly
9559 removed in my previous change.
9561 2007-02-03 Eli Zaretskii <eliz@gnu.org>
9563 * mi/mi-main.c (mi_load_progress, timestamp, print_diff_now):
9564 Use 1000000L instead of 1000000.
9566 2007-02-03 Nick Roberts <nickrob@snap.net.nz>
9568 Based on work by Apple Computer, Inc.
9570 * configure.ac: Test for sys/resource.h and getrusage.
9571 * configure, config.in: Regenerate.
9573 * mi/mi-main.c: Include <sys/resource.h> if present.
9574 (rusage): Declare if HAVE_GETRUSAGE.
9575 (current_command_ts, do_timings): New static variables.
9576 (timestamp, print_diff_now, print_diff, timeval_diff):
9577 New static timing functions.
9578 (mi_cmd_enable_timings): New function for new MI command.
9579 (captured_mi_execute_command, mi_execute_async_cli_command):
9580 Call timing functions.
9582 * mi/mi-cmds.c (mi_cmds): Add entry for new MI command
9585 * mi/mi-cmds.h (mi_cmd_enable_timings): New extern.
9587 * mi/mi-parse.h: (mi_timestamp): New structure.
9588 (mi_parse): Add mi_timestamp* member.
9590 2007-02-02 Denis Pilat <denis.pilat@st.com>
9592 * thread.c (make_cleanup_restore_current_thread): New function.
9593 (info_threads_command): Use of make_cleanup_restore_current_thread
9594 to restore the current thread and the selected frame.
9595 (restore_selected_frame): New function.
9596 (struct current_thread_cleanup): Add frame_id field.
9597 (do_restore_current_thread_cleanup): Add restoring of the selected
9599 (make_cleanup_restore_current_thread): Likewise.
9600 (thread_apply_all_command): backup the selected frame while
9601 entering the function and restore it at exit.
9602 (thread_apply_command): Likewise.
9604 2007-02-02 Denis Pilat <denis.pilat@st.com>
9606 * MAINTAINERS (Write After Approval): Add myself to the list.
9608 2007-02-01 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
9610 * gdb/remote-m32r.sdi.c (m32r_fetch_register): Change PWD mask.
9611 (m32r_store_register): Ditto.
9613 2007-01-30 Vladimir Prus <vladimir@codesourcery.com>
9615 * ser-mingw.c (pipe_windows_open)
9616 (pipe_windows_read, pipe_windows_write): Declare
9617 variables at the top of the function.
9619 2007-01-29 Daniel Jacobowitz <dan@codesourcery.com>
9621 * doublest.c (floatformat_from_length): Use the right element from
9622 gdbarch floatformats.
9623 (floatformat_from_type, extract_typed_floating)
9624 (store_typed_floating): Likewise.
9625 * doublest.h: Remove declarations for undefined floatformat arrays.
9626 * gdbarch.sh (float_format, double_format, long_double_format): Change
9628 (pformat): Update for pairs.
9629 * gdbarch.c, gdbarch.h: Regenerated.
9630 * gdbtypes.c (floatformats_ieee_single, floatformats_ieee_double)
9631 (floatformats_ieee_double_littlebyte_bigword)
9632 (floatformats_i387_ext, floatformats_m68881_ext, floatformats_arm_ext)
9633 (floatformats_ia64_spill, floatformats_ia64_quad, floatformats_vax_f)
9634 (floatformats_vax_d): New variables.
9635 (builtin_type_ieee_single, builtin_type_ieee_double)
9636 (builtin_type_arm_ext, builtin_type_ia64_spill)
9637 (builtin_type_ia64_quad): Replace arrays with individual types.
9638 (builtin_type_ieee_single_big, builtin_type_ieee_single_little)
9639 (builtin_type_ieee_double_big, builtin_type_ieee_double_little)
9640 (builtin_type_ieee_double_littlebyte_bigword, builtin_type_i960_ext)
9641 (builtin_type_m88110_ext, builtin_type_m88110_harris_ext)
9642 (builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword)
9643 (builtin_type_ia64_spill_big, builtin_type_ia64_spill_little)
9644 (builtin_type_ia64_quad_big, builtin_type_ia64_quad_little): Delete
9645 unused and endian-specific types.
9646 (recursive_dump_type): Update for floatformat pairs.
9647 (build_flt): Move higher. Handle bit == -1. Take a floatformat pair.
9648 (build_gdbtypes): Use build_flt.
9649 (_initialize_gdbtypes): Update set of initialized types.
9650 * gdbtypes.h: Update declarations to match gdbtypes.c.
9651 (struct main_type): Store a pointer to two floatformats.
9652 * arch-utils.c (default_float_format, default_double_format): Delete.
9653 * arch-utils.h (default_float_format, default_double_format): Delete.
9655 * arm-tdep.c, avr-tdep.c, hppa-tdep.c, hppabsd-tdep.c, i386-tdep.c,
9656 ia64-tdep.c, iq2000-tdep.c, m68k-tdep.c, m88k-tdep.c,
9657 mips-linux-tdep.c, mips-tdep.c, mt-tdep.c, ppcobsd-tdep.c,
9658 sparc-linux-tdep.c, sparc-tdep.c, sparcnbsd-tdep.c, spu-tdep.c,
9659 vax-tdep.c, alpha-tdep.c, ppc-sysv-tdep.c: Update.
9661 2007-01-29 Joel Brobecker <brobecker@adacore.com>
9663 * target.c (maintenance_print_target_stack): New function.
9664 (initialize_targets): Add new "maintenance print target-stack"
9667 2007-01-28 Mark Kettenis <kettenis@gnu.org>
9669 * dwarf2read.c (new_symbol): Handle DW_AT_decl_file being zero.
9671 2007-01-27 Daniel Jacobowitz <dan@codesourcery.com>
9673 * dwarf2loc.h (struct dwarf2_locexpr_baton): Change size to a long.
9674 (struct dwarf2_loclist_baton): Likewise.
9676 2007-01-27 Eli Zaretskii <eliz@gnu.org>
9678 * cli/cli-script.c: Include breakpoint.h.
9679 (build_command_line): Require arguments only for if and while
9681 (get_command_line, execute_user_command, execute_control_command):
9682 Fix wording of warning messages.
9683 (print_command_lines): Print breakpoint commands.
9684 (execute_control_command): Call commands_from_control_command to
9685 handle the `commands' command inside a body of a flow-control
9687 (read_next_line): Recognize the `commands' command and build a
9688 command line structure for it.
9689 (recurse_read_control_structure, read_command_lines): Handle
9690 `commands' similarly to `if' and `while'.
9692 * breakpoint.c (get_number_trailer): Document the special meaning
9693 of NULL as the first argument PP.
9694 (commands_from_control_command): New function.
9696 * breakpoint.h (commands_from_control_command): Add prototype.
9698 * defs.h (commands_control): New enumerated value for enum
9699 command_control_type.
9701 2007-01-26 Joel Brobecker <brobecker@adacore.com>
9703 * ada-lang.c (ada_exception_breakpoint_ops): Fix typo in function name.
9704 (ada_exception_sal): Update accordingly.
9706 2007-01-26 Jan Kratochvil <jan.kratochvil@redhat.com>
9708 * c-valprint.c (c_val_print): Require strings to be of no-signed CHARs.
9709 * NEWS: Describe CHAR array vs. string identifcation rules.
9711 2007-01-25 Paul Brook <paul@codesourcery.com>
9713 * arm-tdep.c (arm_get_next_pc): Fix bitfield off-by-one error.
9715 2007-01-24 Jim Blandy <jimb@codesourcery.com>
9717 * dwarf2loc.c (dwarf2_evaluate_loc_desc): When the location
9718 expression is empty, bother to return the 'optimized out' value we
9719 construct. (Thanks to Carl Burch.)
9721 2007-01-24 Vladimir Prus <vladimir@codesourcery.com>
9723 * varobj.c (c_value_of_root, c_value_of_child)
9724 (cplus_describe_child): Don't call release_value.
9726 2007-01-24 Thiemo Seufer <ths@mips.com>
9728 * mips-linux-tdep.c (mips_linux_n64_rt_sigframe): Fix struct
9731 2007-01-24 Vladimir Prus <vladimir@codesourcery.com>
9733 Refactor getting children name, value and type access
9735 * varobj.c (get_type_deref): Remove.
9736 (adjust_value_for_child_access): New.
9737 (c_number_of_children): Use the above.
9738 (c_describe_child): Likewise.
9739 (enum accessibility): New.
9740 (match_accessibility): New function.
9741 (cplus_describe_child): New function.
9742 (cplus_name_of_child, cplus_value_of_child)
9743 (cplus_type_of_child): Reimplement in terms
9744 of cplus_describe_child.
9745 (cplus_number_of_children): Use
9746 adjust_value_for_child_access.
9748 2007-01-24 Vladimir Prus <vladimir@codesourcery.com>
9750 Fix computation of the 'editable' attribute and
9751 value changeability for for references.
9752 * varobj.c (get_value_type): New function.
9753 (c_variable_editable): Use get_value_type.
9754 (varobj_value_is_changeable): Likewise.
9756 2007-01-24 Joel Brobecker <brobecker@adacore.com>
9758 * source.c (find_and_open_source): Try rewriting the source
9759 path inside filename if dirname is NULL.
9761 2007-01-24 Joel Brobecker <brobecker@adacore.com>
9763 * dwarf2read.c (add_partial_symbol): Create an extra partial
9764 symbol in the VAR_DOMAIN for Ada structures, unions or enums.
9765 (new_symbol): Likewise for symbols.
9767 2007-01-24 Nick Roberts <nickrob@snap.net.nz>
9769 * mi/mi-main.c (mi_cmd_execute): Call free_all_values.
9771 2007-01-23 Vladimir Prus <vladimir@codesourcery.com>
9773 * value.c (value_primitive_field): Copy the full 'location'
9774 contents, instead of assuming that copying ADDRESS will
9775 bring over everything in the union. Remove obsolete comment.
9777 2007-01-23 Masaki Muranaka <monaka@monami-software.com>
9779 * m32c-tdep.c (make_regs, m32c_analyze_prologue)
9780 (m32c_skip_trampoline_code, m32c_m16c_address_to_pointer)
9781 (m32c_m16c_pointer_to_address): Separate code from declarations.
9783 2007-01-23 Nick Hudson <nick.hudson@dsl.pipex.com>
9785 * target.c (update_current_target): Correct typo.
9787 2007-01-22 Masaki Muranaka <monaka@monami-software.com>
9789 * xstormy16-tdep.c (xstormy16_skip_prologue): Separate code from a
9792 2007-01-11 Andrew Cagney <cagney@redhat.com>
9793 Daniel Jacobowitz <dan@codesourcery.com>
9794 Jan Kratochvil <jan.kratochvil@redhat.com>
9796 * dwarf2-frame.c (execute_cfa_program): New support of
9797 `DW_CFA_GNU_negative_offset_extended'.
9799 2007-01-21 Daniel Jacobowitz <dan@codesourcery.com>
9801 * NEWS: Mention flash support for "load" and new remote packets.
9803 2007-01-21 Markus Deuling <deuling@de.ibm.com>
9805 * breakpoint.c (delete_command): Skip redundant loop iterations.
9807 2007-01-21 Daniel Jacobowitz <dan@codesourcery.com>
9809 * gdbarch.sh (register_type): Update comment.
9810 * gdbarch.h: Regenerated.
9811 * arch-utils.c (generic_register_size): Call register_type.
9812 * ia64-tdep.c (ia64_extract_return_value): Likewise.
9813 * m32c-tdep.c (check_for_saved): Likewise.
9814 * mips-tdep.c (mips_print_register, print_gp_register_row)
9815 (mips_print_registers_info): Likewise.
9816 * sh-tdep.c (sh_pseudo_register_read, sh_pseudo_register_write):
9818 * sh64-tdep.c (sh64_pseudo_register_read, sh64_pseudo_register_write)
9819 (sh64_do_register, sh64_print_register)
9820 (sh64_media_print_registers_info): Likewise.
9821 * tui/tui-regs.c (tui_register_format): Likewise.
9823 2007-01-21 Daniel Jacobowitz <dan@codesourcery.com>
9825 * objfiles.h (ALL_PRIMARY_SYMTABS): Define.
9827 * ada-lang.c (symtab_for_sym, ada_lookup_symbol_list)
9828 (ada_lookup_symbol): Use ALL_PRIMARY_SYMTABS.
9829 * cp-support.c (make_symbol_overload_list_qualified): Likewise.
9830 * symtab.c (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
9831 (basic_lookup_transparent_type, find_pc_sect_symtab, search_symbols)
9832 (make_symbol_completion_list): Likewise.
9834 2007-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
9835 Daniel Jacobowitz <dan@codesourcery.com>
9837 * buildsym.c (end_symtab): Use preallocated symtab if available.
9838 Fill in SYMBOL_SYMTAB.
9839 * buildsym.h (struct subfile): Add symtab member.
9840 * dwarf2read.c (struct dwarf2_cu): Add line_header.
9841 (struct file_entry): Add symtab.
9842 (free_cu_line_header): New function.
9843 (read_file_scope): Use it. Save line_header in the cu. Process
9845 (add_file_name): Initialize new symtab member.
9846 (dwarf_decode_lines): Create symtabs for included files.
9847 (new_symbol): Set SYMBOL_SYMTAB.
9848 * symtab.c (lookup_symbol): Use SYMBOL_SYMTAB.
9849 (search_symbols): Likewise.
9850 * symtab.h (struct symbol): Add symtab member.
9851 (SYMBOL_SYMTAB): Define.
9853 2007-01-20 Daniel Jacobowitz <dan@codesourcery.com>
9855 * symfile.c (allocate_symtab): Remove INIT_EXTRA_SYMTAB_INFO.
9857 2007-01-20 Daniel Jacobowitz <dan@codesourcery.com>
9859 * arch-utils.c (show_endian): Correct reversed condition.
9861 2007-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
9863 * MAINTAINERS (Write After Approval): Add myself.
9865 2007-01-16 Daniel Jacobowitz <dan@codesourcery.com>
9866 Vladimir Prus <vladimir@codesourcery.com>
9868 Fix 'selected frame' varobjs.
9869 * varobj.c (struct varobj): Remove the error field.
9870 (varobj_set_value): Don't check var->error.
9871 (install_new_value): Don't set var->error.
9872 (varobj_update): Always pass the new value
9873 of the root via install_new_value.
9874 (create_child): Don't set error field.
9875 (new_variable): Likewise.
9876 (c_value_of_root): Always reevaluate the value
9877 of selected frame varobjs in the selected frame.
9878 Don't call reinit_frame_cache.
9880 2007-01-15 Joel Brobecker <brobecker@adacore.com>
9882 * source.c (_initialize_source): Improve the help text of
9883 the substitute-path commands.
9885 2007-01-14 Mark Kettenis <kettenis@gnu.org>
9887 * frv-tdep.c (frv_gdbarch_init, frv_register_name)
9888 (frv_breakpoint_from_pc, frv_gdbarch_adjust_breakpoint_address)
9889 (frv_skip_prologue): Remove prototypes.
9890 (frv_adjust_breakpoint_address): Renamed from
9891 frv_gdbarch_adjust_breakpoint_address.
9892 (frv_gdbarch_init): Adjust.
9894 2007-01-13 Mark Kettenis <kettenis@gnu.org>
9896 * gdbarch.sh (deprecated_extract_return_value)
9897 (deprecated_store_return_value): Remove.
9898 (extract_return_value, store_return_value): Remove default values.
9899 * gdbarch.c, gdbarch.h: Regenerate.
9900 * arch-utils.c, arch-utils.h (legacy_extract_return_value)
9901 (legacy_store_return_value): Remove.
9902 * regcache.c, regcache.h (deprecated_grub_regcache_for_registers):
9905 * mi/mi-main.c: Remove obsolete comment.
9907 * regcache.c, regcache.h (deprecated_register_bytes)
9908 (deprecated_read_register_bytes)
9909 (deprecated_write_register_bytes): Remove.
9911 * frame.c (get_frame_register_bytes, put_frame_register_bytes):
9912 Don't forget to move destination pointer.
9914 2007-01-01 Mark Kettenis <kettenis@gnu.org>
9916 * config/i386/nm-i386gnu.h (CHILD_PREPARE_TO_STORE): Remove.
9918 2007-01-11 Ulrich Weigand <uweigand@de.ibm.com>
9920 * spu-tdep.c (spu_analyze_prologue): Fix erroneous backtrace
9921 past entry function with recent newlib.
9923 2007-01-11 Vladimir Prus <vladimir@codesourcery.com>
9925 * gdb.texinfo (GDB/MI Variable Objects): Improve the
9926 introduction. Specify -var-update more exactly.
9928 2007-01-11 Daniel Jacobowitz <dan@codesourcery.com>
9930 * frame.c (get_prev_frame_1): Check PC_REGNUM before using it.
9932 2007-01-10 Jim Blandy <jimb@codesourcery.com>
9934 * MAINTAINERS (Global Maintainers): Ulrich Weigand has accepted
9935 the Global Maintainers' invitation to be a global maintainer.
9937 2007-01-10 Daniel Jacobowitz <dan@codesourcery.com>
9939 * infrun.c (singlestep_pc): New variable.
9940 (resume): Set singlestep_pc.
9941 (context_switch): Add a debugging message. Flush the frame cache.
9942 (handle_inferior_event): Add debugging messages. Handle thread
9943 hops when a software single step has completed. Let context_switch
9944 handle flushing the frame cache.
9946 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
9948 * NEWS: Mention target descriptions, "set tdesc filename",
9949 "unset tdesc filename", "show tdesc filename", and
9950 qXfer:features:read.
9951 * arch-utils.c (choose_architecture_for_target): New function.
9952 (gdbarch_info_fill): Call it.
9953 * target-descriptions.c (struct property): Make members non-const.
9954 (struct target_desc): Add arch member.
9955 (target_description_filename): New variable.
9956 (target_find_description): Try via XML first.
9957 (tdesc_architecture): New.
9958 (free_target_description, make_cleanup_free_target_description): New.
9959 (set_tdesc_property): Call xstrdup.
9960 (set_tdesc_architecture, tdesc_set_cmdlist, tdesc_show_cmdlist)
9961 (tdesc_unset_cmdlist, unset_tdesc_cmd, unset_tdesc_filename_cmd)
9962 (set_tdesc_cmd, show_tdesc_cmd, set_tdesc_filename_cmd)
9963 (show_tdesc_filename_cmd, _initialize_target_descriptions): New.
9964 * target-descriptions.h (tdesc_architecture)
9965 (make_cleanup_free_target_description, set_tdesc_architecture): New
9967 * Makefile.in (SFILES): Add xml-tdesc.c.
9968 (COMMON_OBS): Add xml-tdesc.o.
9969 (target-descriptions.o): Update.
9970 (xml-tdesc.o): New rule.
9971 * xml-tdesc.c, xml-tdesc.h: New files.
9972 * remote.c (PACKET_qXfer_features): New enum.
9973 (remote_protocol_features): Add qXfer:features:read.
9974 (remote_xfer_partial): Handle TARGET_OBJECT_AVAILABLE_FEATURES.
9975 (_initialize_remote): Register qXfer:features:read.
9976 * target.h (enum target_object): Add TARGET_OBJECT_AVAILABLE_FEATURES.
9977 * features/gdb-target.dtd: New file.
9979 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
9981 * copyright.sh: Clarify error.
9983 2007-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
9985 * symtab.c (matching_bfd_sections): Fix VMA matching for
9988 2007-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
9990 * minsyms.c (lookup_minimal_symbol_by_pc_section): Handle
9993 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
9995 Updated copyright notices for most files.
9997 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
9999 * copyright.sh (prunes): Add step-line.inp and step-line.c.
10001 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
10003 * configure.ac (DEBUGDIR_RELOCATABLE): Define for debugdir inside
10005 (TARGET_SYSTEM_ROOT_RELOCATABLE): Allow for exec_prefix being
10007 * configure, config.in: Regenerate.
10008 * defs.h (debug_file_directory): Declare.
10009 * main.c (captured_main): Canonicalize gdb_sysroot. Assume
10010 TARGET_SYSTEM_ROOT is defined. Initialize debug_file_directory and
10011 relocate it if DEBUGDIR_RELOCATABLE.
10012 * symfile.c (debug_file_directory): Make non-static.
10013 (find_separate_debug_file): Look for debug info for SYSROOT/PATH
10014 in DEBUGDIR/PATH if DEBUGDIR is inside SYSROOT.
10015 (_initialize_symfile): Don't initialize debug_file_directory here.
10017 2007-01-09 Jim Blandy <jimb@codesourcery.com>
10019 * score-tdep.c (score_push_dummy_call): Don't mix declarations and
10022 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
10024 * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Use
10025 frame_unwind_register to recurse.
10026 * alpha-tdep.c (alpha_sigtramp_frame_prev_register): Likewise.
10027 (alpha_heuristic_frame_prev_register): Likewise.
10028 * h8300-tdep.c (h8300_frame_prev_register): Likewise.
10029 * m32c-tdep.c (m32c_prev_register): Likewise.
10030 * frame.c (frame_register_unwind_location): Remove FIXME.
10032 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
10033 Eli Zaretskii <eliz@gnu.org>
10035 * copyright.sh: New file.
10037 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
10039 * configure.ac: Check for XML_StopParser.
10040 * xml-support.c (gdb_xml_body_text): Check for an error.
10041 (gdb_xml_start_element_wrapper): Conditionalize call to XML_StopParser.
10042 (gdb_xml_end_element_wrapper): Likewise.
10043 * config.in, configure: Regenerated.
10045 2007-01-08 Daniel Jacobowitz <dan@codesourcery.com>
10047 * varobj.c (install_new_value): Always update print_value.
10048 (value_get_print_value): Immediately return NULL for missing
10051 2007-01-08 Jim Blandy <jimb@codesourcery.com>
10053 * configure.ac: Tighten pattern for extracting value of
10054 DEPRECATED_TM_FILE from the target makefile fragment.
10055 * configure: Regenerated.
10057 2007-01-08 Daniel Jacobowitz <dan@codesourcery.com>
10059 * linux-nat.c (struct simple_pid_list): Add status.
10060 (add_to_pid_list): Record the PID's status.
10061 (linux_record_stopped_pid): Likewise. Make static.
10062 (pull_pid_from_list): Return the saved status.
10063 (linux_nat_handle_extended): Deleted.
10064 (linux_handle_extended_wait): Combine with linux_nat_handle_extended.
10065 Make static. Handle non-SIGSTOP for a new thread's first signal.
10066 (flush_callback): Handle unexpected pending signals.
10067 (linux_nat_wait): Update calls to changed functions.
10068 * linux-nat.h (linux_record_stopped_pid, linux_handle_extended_wait):
10069 Remove prototypes for newly static functions.
10071 2007-01-08 Ulrich Weigand <uweigand@de.ibm.com>
10073 * gdbarch.sh (value_from_register): New gdbarch function.
10074 * gdbarch.c, gdbarch.h: Regenerate.
10075 * findvar.c (default_value_from_register): New function.
10076 (value_from_register): Use gdbarch_value_from_register.
10077 * value.h (default_value_from_register): Declare.
10078 * spu-tdep.c (spu_convert_register_p, spu_register_to_value,
10079 spu_value_to_register): Remove.
10080 (spu_value_from_register): New function.
10081 (spu_gdbarch_init): Do not call set_gdbarch_convert_register_p,
10082 set_gdbarch_register_to_value, set_gdbarch_value_to_register.
10083 Call set_gdbarch_value_from_register.
10084 * s390-tdep.c (s390_convert_register_p, s390_register_to_value,
10085 s390_value_to_register): Remove.
10086 (s390_value_from_register): New function.
10087 (s390_gdbarch_init): Do not call set_gdbarch_convert_register_p,
10088 set_gdbarch_register_to_value, set_gdbarch_value_to_register.
10089 Call set_gdbarch_value_from_register.
10091 2007-01-08 Daniel Jacobowitz <dan@codesourcery.com>
10093 * NEWS: Add "set sysroot" and "show sysroot".
10094 * solib.c (solib_absolute_prefix): Delete. Replace
10095 all uses with gdb_sysroot.
10096 (_initialize_solib): Add "set sysroot" and "show sysroot".
10097 Make "solib-absolute-prefix" an alias to it.
10099 2007-01-08 Ulrich Weigand <uweigand@de.ibm.com>
10101 * frame.c (get_frame_register_bytes): New function.
10102 (put_frame_register_bytes): Likewise.
10103 * frame.h (get_frame_register_bytes): Declare.
10104 (put_frame_register_bytes): Likewise.
10105 * findvar.c (value_from_register): Always construct lval_register
10106 values. Use get_frame_register_bytes.
10107 * valops.c (value_assign): Use get_frame_register_bytes and
10108 put_frame_register_bytes.
10110 2007-01-08 Jim Blandy <jimb@codesourcery.com>
10112 * MAINTAINERS: Update Stan Shebs' email address.
10114 2007-01-07 Joel Brobecker <brobecker@adacore.com>
10116 * ada-lang.c (is_known_support_routine): Improve the implementation.
10118 2007-01-06 Joel Brobecker <brobecker@adacore.com>
10120 * ada-lang.c: Add include of source.h.
10121 (is_known_support_routine): Improve the check verifying that the file
10122 associated to this frame exists.
10123 * Makefile.in (ada-lang.o): Add dependency on source.h.
10125 2007-01-07 Jim Blandy <jimb@codesourcery.com>
10127 * ax-general.c (ax_const_l): Select proper opcode for the given
10130 2007-01-05 Vladimir Prus <vladimir@codesourcery.com>
10132 * varobj.c (c_value_of_root): Don't select frame if variable
10133 object is out of scope.
10135 2007-01-05 Nick Roberts <nickrob@snap.net.nz>
10137 * varobj.c (struct varobj): New member print_value.
10138 (install_new_value): Compare last printed value with current one
10139 instead of contents.
10140 (new_variable): Initialize var->print_value to NULL.
10141 (free_variable): Free var->print_value.
10142 (value_get_print_value): New function derived from
10143 c_value_of_variable.
10144 (c_value_of_variable): Use value_get_print_value.
10146 2007-01-05 Joel Brobecker <brobecker@adacore.com>
10148 * i386-tdep.c (i386_analyze_stack_align): Add comment.
10150 2007-01-05 Joel Brobecker <brobecker@adacore.com>
10152 * NEWS: Add entries for new catch commands.
10154 2007-01-05 Joel Brobecker <brobecker@adacore.com>
10156 * dwarf2read.c (partial_die_info): Add field has_byte_size.
10157 (add_partial_symbol): Correct identification of external references.
10158 (process_structure_scope): Likewise.
10159 (read_partial_die): Handle DW_AT_byte_size attribute.
10161 2007-01-05 Daniel Jacobowitz <dan@codesourcery.com>
10163 * xml-support.c (gdb_xml_end_element): Remove wrong backslashes.
10165 2007-01-05 Nick Roberts <nickrob@snap.net.nz>
10167 * varobj.c (get_type_deref): Fix variable objects for references to
10170 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
10172 * symtab.c (find_pc_sect_psymtab): Add comments. Handle psymtabs
10175 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
10177 * memory-map.c (struct_memory_map_parsing_data): Remove most
10178 members. Make property_name an array.
10179 (free_memory_map_parsing_data, memory_map_start_element)
10180 (memory_map_end_element, memory_map_character_data): Delete.
10181 (memory_map_start_memory, memory_map_end_memory)
10182 (memory_map_start_property, memory_map_end_property): New functions.
10183 (property_attributes, memory_children, memory_type_enum)
10184 (memory_attributes, memory_map_children, memory_map_elements): New.
10185 (parse_memory_map): Rewrite.
10186 * xml-support.c (debug_xml): New.
10187 (xml_get_required_attribute, xml_get_integer_attribute)
10188 (xml_get_enum_value, free_xml_parser, make_cleanup_free_xml_parser):
10190 (struct scope_level, struct gdb_xml_parser, gdb_xml_body_text)
10191 (gdb_xml_debug, gdb_xml_error, gdb_xml_values_cleanup)
10192 (gdb_xml_start_element, gdb_xml_start_element_wrapper)
10193 (gdb_xml_end_element, gdb_xml_end_element_wrapper, gdb_xml_cleanup)
10194 (gdb_xml_create_parser_and_cleanup, gdb_xml_parse)
10195 (gdb_xml_parse_ulongest, gdb_xml_parse_attr_ulongest)
10196 (gdb_xml_parse_attr_enum, show_debug_xml, _initialize_xml_support):
10198 * xml-support.h (struct gdb_xml_value, gdb_xml_attribute_handler)
10199 (enum gdb_xml_attribute_flag, struct gdb_xml_attribute)
10200 (enum gdb_xml_element_flag, struct gdb_xml_element)
10201 (gdb_xml_element_start_handler, gdb_xml_element_end_handler)
10202 (struct gdb_xml_enum): New.
10203 (gdb_xml_create_parser_and_cleanup, gdb_xml_parse, gdb_xml_debug)
10204 (gdb_xml_error, gdb_xml_parse_attr_ulongest)
10205 (gdb_xml_parse_attr_enum, gdb_xml_parse_ulongest): New prototypes.
10206 (xml_get_required_attribute, xml_get_integer_attribute)
10207 (xml_get_enum_value, make_cleanup_free_xml_parser): Delete prototypes.
10208 * Makefile.in (xml_support_h, xml-support.o): Update.
10210 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
10212 * Makefile.in (eval.o): Update dependencies.
10213 * eval.c: Include "ui-out.h" and "exceptions.h".
10214 (evaluate_subexp_standard): Use TRY_CATCH around value_of_variable.
10215 Use value_zero if an error occurs when avoiding side effects.
10216 * varobj.c (c_value_of_root): Initialize new_val.
10218 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
10220 * varobj.c (varobj_list_children): Stop if the number of children is
10222 (c_number_of_children):
10224 2007-01-04 Mark Kettenis <kettenis@gnu.org>
10226 * alpha-tdep.c (alpha_register_name): Use ARRAY_SIZE.
10227 (alpha_read_insn, alpha_skip_prologue, alpha_heuristic_proc_start)
10228 (alpha_heuristic_frame_unwind_cache, alpha_next_pc)
10229 (alpha_gdbarch_init): Use ALPHA_INSN_SIZE, ALPHA_REGISTER_SIZE and
10230 sizeof, instead of hardcoded constants.
10232 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
10234 * CONTRIBUTE: Use sourceware.org.
10236 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
10238 * buildsym.c (start_subfile): Handle producer.
10239 (record_producer): New function.
10240 * buildsym.h (struct subfile): Include producer.
10241 (record_producer): New prototype.
10242 * dwarf2-frame.c (struct dwarf2_cie): Add version and augmentation.
10243 (struct dwarf2_frame_state): Add armcc_cfa_offsets_sf and
10244 armcc_cfa_offsets_reversed.
10245 (execute_cfa_program): Handle armcc_cfa_offsets_sf.
10246 (dwarf2_frame_find_quirks): New function.
10247 (dwarf2_frame_cache): Call it. Handle armcc_cfa_offsets_reversed.
10248 (decode_frame_entry_1): Record the CIE version. Record the
10249 augmentation. Skip armcc augmentations.
10250 * dwarf2read.c (read_file_scope): Save the producer.
10251 * symtab.h (struct symtab): Rename unused version member to
10254 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
10256 * configure.ac (build_warnings): Use -Wall and
10257 -Wdeclaration-after-statement.
10258 * configure: Regenerated.
10260 2007-01-04 Vladimir Prus <vladimir@codesourcery.com>
10262 Simplify access to variours properties of child
10263 variable objects in C.
10264 * varobj.c (value_struct_element_index): New function.
10265 (c_describe_child): New function.
10266 (c_name_of_child, c_value_of_child)
10267 (c_type_of_child): Rewrite to use c_describe_child.
10269 2007-01-04 Vladimir Prus <vladimir@codesourcery.com>
10272 * varobj.c: Include "vec.h".
10273 (varobj_p): New typedef, declare vector of those.
10274 (struct varobj): Use vector for the 'children' member.
10275 (child_exists): Remove.
10276 (save_child_in_parent): Remove.
10277 (remove_child_from_parent): Remove.
10278 (struct varobj_child): Remove.
10279 (struct vstack): Remove.
10280 (vpush, vpop): Remove.
10281 (varobj_list_children): Adjust to work work vector.
10282 (varobj_update): Likewise. Use vectors for
10283 working stack and result.
10284 (delete_variable_1): Likewise.
10285 * Makefile.in (varobj.o): Update dependencies.
10287 2007-01-04 Vladimir Prus <vladimir@codesourcery.com>
10289 Port from Apple's version.
10291 * varobj.c (type_changeable): Rename to...
10292 (varobj_value_is_changeable_p): ...this. Adjust all callers.
10293 (is_root_p): New function. Use it everywhere.
10295 2007-01-04 Jim Blandy <jimb@codesourcery.com>
10297 * glibc-tdep.c (glibc_skip_solib_resolver): Look for '_dl_fixup',
10298 then plain 'fixup'.
10300 2007-01-04 Joel Brobecker <brobecker@adacore.com>
10302 * hpread.c (hpread_start_psymtab): Remove unnecessary extern.
10304 2007-01-04 Joel Brobecker <brobecker@adacore.com>
10306 * hpread.c (hpread_type_lookup): Fix compilation failure.
10308 2007-01-04 Qinwei <qinwei@sunnorth.com.cn>
10310 * NEWS: New port to S+core.
10311 * MAINTAINERS (Write After Approval, Responsible Maintainers):
10314 * Makefile.in: Add dependencies for S+core files.
10315 * configure.tgt (score*, score-*-*): Add S+core target.
10316 * config/score/embed.mt: New file.
10317 * score-tdep.c: New file.
10318 * score-tdep.h: New file.
10320 2007-01-04 Joel Brobecker <brobecker@adacore.com>
10322 * ada-lang.c (ada_evaluate_subexp) [OP_TYPE]: Return a value with
10323 the appropriate type rather than a bogus void type.
10325 2007-01-04 Joel Brobecker <brobecker@adacore.com>
10327 * ada-lang.h (ada_find_printable_frame): Remove.
10328 (ada_exception_catchpoint_p, ada_decode_exception_location)
10329 (ada_decode_assert_location): Add declaration.
10330 * ada-lang.c: Add include of annotate.h and valprint.h.
10331 (exception_catchpoint_kind): New enum.
10332 (function_name_from_pc, is_known_support_routine)
10333 (ada_find_printable_frame, ada_unhandled_exception_name_addr)
10334 (ada_exception_name_addr_1, ada_exception_name_addr)
10335 (print_it_exception, print_one_exception, print_mention_exception)
10336 (print_it_catch_exception, print_one_catch_exception)
10337 (print_mention_catch_exception, catch_exception_breakpoint_ops)
10338 (print_it_catch_exception_unhandled)
10339 (print_one_catch_exception_unhandled)
10340 (print_mention_catch_exception_unhandled, print_it_catch_assert)
10341 (print_one_catch_assert, print_mention_catch_assert)
10342 (ada_exception_catchpoint_p, error_breakpoint_runtime_sym_not_found)
10343 (ada_get_next_arg, catch_ada_exception_command_split)
10344 (ada_exception_sym_name, ada_exception_sym_name)
10345 (ada_exception_breakption_ops, ada_exception_catchpoint_cond_string)
10346 (ada_parse_catchpoint_condition, ada_exception_sal)
10347 (ada_decode_exception_location)
10348 (ada_decode_assert_location): New function.
10349 (catch_exception_unhandled_breakpoint_ops): New global variable.
10350 (catch_assert_breakpoint_ops): New global variable.
10351 * breakpoint.c: Add include of ada-lang.h.
10352 (print_one_breakpoint): Do not print the condition for Ada
10353 exception catchpoints.
10354 (create_ada_exception_breakpoint): New function.
10355 (catch_ada_exception_command, catch_assert_command): New function.
10356 (catch_command_1): Add support for the new "catch exception" and
10357 "catch assert" commands.
10358 (_initialize_breakpoint): Add help description for the new catch
10360 * Makefile.in (ada-lang.o): Add dependency on annotate.h and
10362 (breakpoint.o): Add dependency on ada-lang.h.
10364 2007-01-03 Pedro Alves <pedro_alves@portugalmail.pt>
10366 * coffread.c (cs_to_section): If bfd_section is found, always
10367 return its section index.
10368 (coff_symtab_read): Determine the minimal_symbol_type using the
10371 2007-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10372 Daniel Jacobowitz <dan@codesourcery.com>
10374 * Makefile.in (top.o): Update.
10375 * top.c (gdb_readline_wrapper_done, gdb_readline_wrapper_result)
10376 (saved_after_char_processing_hook, gdb_readline_wrapper_line)
10377 (struct gdb_readline_wrapper_cleanup, gdb_readline_wrapper_cleanup):
10379 (gdb_readline_wrapper): Rewrite to use asynchronous readline.
10381 2007-01-03 Mark Kettenis <kettenis@gnu.org>
10383 * arm-linux-tdep.c (arm_linux_extract_return_value): Remove.
10384 (arm_linux_init_abi): Don't set deprecated_extract_return_value.
10386 2007-01-03 Daniel Jacobowitz <dan@codesourcery.com>
10388 * ada-lang.c (find_struct_field): Initialize *byte_offset_p.
10389 * breakpoint.c (do_enable_breakpoint): Ignore both mem_cnt and i.
10390 * c-typeprint.c (c_type_print_varspec_suffix): Don't test length
10391 greater than or equal to zero.
10392 * m2-typeprint.c (m2_array): Likewise.
10393 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
10394 * gdbtypes.c (copy_type_recursive): Correct == typo.
10395 * i386-tdep.c (i386_skip_prologue): Remove stray semicolon.
10396 * linux-nat.c (linux_nat_info_proc_cmd): Don't compare a pointer
10398 * macroscope.c (sal_macro_scope): Don't name a local variable "main".
10399 (default_macro_scope): Remove unused variable.
10400 * prologue-value.h (pv_area_find_reg): Don't name an argument
10402 * remote-fileio.c (remote_fio_func_map): Add missing braces.
10403 * remote.c (sigint_remote_twice_token, sigint_remote_token): Change
10405 (cleanup_sigint_signal_handler): Remove casts.
10406 * valprint.c (val_print): Use a volatile local for the modified
10408 * varobj.c (languages): Remove extra array dimension.
10409 (varobj_create): Correct access to languages array.
10410 * mi/mi-cmd-break.c (mi_cmd_break_insert, mi_cmd_break_watch): Add
10412 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise.
10413 * mi/mi-cmd-env.c (mi_cmd_env_path, mi_cmd_env_dir): Likewise.
10414 * mi/mi-getopt.c (mi_valid_noargs): Likewise.
10415 * mi/mi-main.c (mi_cmd_data_read_memory): Likewise.
10416 (mi_cmd_data_write_memory): Likewise.
10417 * signals/signals.c (target_signal_to_string): Cast to int before
10419 * tui/tui-layout.c (init_and_make_win): Take and return a void *.
10420 Update all callers.
10422 2007-01-03 Daniel Jacobowitz <dan@codesourcery.com>
10424 * NEWS: Mention pointer to member improvements.
10425 * Makefile.in (gnu-v3-abi.o): Delete special rule.
10426 (eval.o, gnu-v3-abi.o, ia64-tdep.o): Update.
10427 * ada-valprint.c (ada_print_scalar): Update for new type codes.
10428 * c-typeprint.c (c_print_type): Update for new type codes.
10429 (c_type_print_varspec_prefix, c_type_print_varspec_suffix)
10430 (c_type_print_base): Likewise.
10431 (c_type_print_args): Rewrite.
10432 * c-valprint.c (c_val_print): Update for new type codes. Remove
10433 support for references to members. Treat methods like functions.
10434 * cp-abi.c (cplus_print_method_ptr, cplus_method_ptr_size)
10435 (cplus_make_method_ptr, cplus_method_ptr_to_value): New.
10436 * cp-abi.h (cplus_print_method_ptr, cplus_method_ptr_size)
10437 (cplus_make_method_ptr, cplus_method_ptr_to_value): New prototypes.
10438 (struct cp_abi_ops): Add corresponding members.
10439 * cp-valprint.c (cp_print_class_method): Delete.
10440 (cp_find_class_member): New function.
10441 (cp_print_class_member): Use it. Simplify support for bogus
10443 * dwarf2read.c (quirk_gcc_member_function_pointer): Use
10444 lookup_methodptr_type.
10445 (read_tag_ptr_to_member_type): Likewise, and lookup_memberptr_type.
10446 * eval.c (evaluate_subexp_standard): Implement EVAL_SKIP for
10447 OP_SCOPE. Update call to value_aggregate_elt. Rewrite member
10449 (evaluate_subexp_for_address): Handle OP_SCOPE explicitly. Handle
10450 references returned by user defined operators.
10451 * f-typeprint.c (f_print_type, f_type_print_varspec_prefix)
10452 (f_type_print_varspec_suffix): Remove support for member pointers.
10453 * gdbtypes.c (lookup_memberptr_type): Renamed from lookup_member_type
10455 (smash_to_memberptr_type): Likewise, from smash_to_member_type.
10456 (lookup_methodptr_type): New.
10457 (rank_one_type): Adjust for TYPE_CODE_MEMBERPTR.
10458 (recursive_dump_type): Update for new types.
10459 * gdbtypes.h (enum type_code): Replace TYPE_CODE_MEMBER with
10460 TYPE_CODE_MEMBERPTR and TYPE_CODE_METHODPTR.
10461 (lookup_memberptr_type, lookup_methodptr_type)
10462 (smash_to_memberptr_type): New prototypes.
10463 (smash_to_method_type): Formatting fix.
10464 (lookup_member_type, smash_to_member_type): Delete prototypes.
10465 * gnu-v3-abi.c (gnuv3_get_vtable, gnuv3_get_virtual_fn): New.
10466 Do not rely on debug information for the vptr or the method's
10467 enclosing type. Handle function descriptors for IA64.
10468 (gnuv3_virtual_fn_field): Rewrite using the new functions.
10469 (gnuv3_find_method_in, gnuv3_print_method_ptr)
10470 (gnuv3_method_ptr_size, gnuv3_make_method_ptr)
10471 (gnuv3_method_ptr_to_value): New.
10472 (init_gnuv3_ops): Set new members of gnu_v3_abi_ops.
10473 * hpread.c (hpread_type_lookup): Update for new types.
10474 * infcall.c (value_arg_coerce): Likewise.
10475 * m2-typeprint.c (m2_print_type): Remove explicit support
10476 for member pointers.
10477 * m2-valprint.c (m2_val_print): Likewise.
10478 * p-typeprint.c (pascal_type_print_varspec_prefix)
10479 (pascal_type_print_varspec_suffix, pascal_type_print_base): Likewise.
10480 * p-valprint.c (pascal_val_print): Likewise.
10481 (pascal_object_print_class_method, pascal_object_print_class_member):
10483 * p-lang.h (pascal_object_print_class_method)
10484 (pascal_object_print_class_member): Delete prototypes.
10485 * stabsread.c (read_type): Update for new types.
10486 * typeprint.c (print_type_scalar): Likewise.
10487 * valops.c (value_struct_elt_for_reference, value_namespace_elt)
10488 (value_maybe_namespace_elt, value_aggregate_elt): Add want_address
10489 argument. Construct a pointer to member if the address of a
10490 function or data member is requested.
10491 (value_cast_pointers): Don't modify the input value.
10492 (value_cast): Adjust pointer to member handling for new types.
10493 Allow null pointer to member constants. Don't modify the input
10495 (value_ind): Remove pointer to member check. Handle function
10496 descriptors for function pointers.
10497 (value_struct_elt, value_find_oload_method_list, check_field):
10498 Remove pointer to member checks.
10499 * value.c (unpack_long): Allow pointers to data members.
10500 (value_from_longest): Allow member pointers.
10501 * value.h (value_aggregate_elt): Add want_address.
10502 * varobj.c (c_variable_editable): Remove check for members.
10503 * gdbarch.sh: Add vtable_function_descriptors and vbit_in_delta.
10504 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Handle descriptors
10506 (ia64_gdbarch_init): Call set_gdbarch_vtable_function_descriptors.
10507 * c-lang.h (cp_print_class_method): Delete prototype.
10508 * arm-tdep.c (arm_gdbarch_init): Call set_gdbarch_vbit_in_delta.
10509 * mips-tdep.c (mips_gdbarch_init): Likewise.
10510 * gdbarch.c, gdbarch.h: Regenerated.
10512 2007-01-01 Mark Kettenis <kettenis@gnu.org>
10514 * rs6000-tdep.c (rs6000_use_struct_convention)
10515 (rs6000_extract_return_value, rs6000_store_return_value)
10516 (rs6000_extract_struct_value_address): Remove.
10517 (rs6000_return_value): New function.
10518 (rs6000_gdbarch_init): Don't set deprecated_extract_return_value,
10519 store_return_value, deprecated_extract_struct_value_address and
10520 deprecated_use_struct_convention. Use rs6000_return_value
10523 2007-01-02 Nick Roberts <nickrob@snap.net.nz>
10525 * mi/mi-cmds.c (mi_cmds): Remove entries for -display-delete,
10526 -display-disable, -display-enable, -display-insert and
10529 2007-01-01 Joel Brobecker <brobecker@adacore.com>
10531 * breakpoint.c (remove_breakpoint): Remove dead code.
10533 2007-01-01 Nick Roberts <nickrob@snap.net.nz>
10535 * varobj.c: Include block.h.
10536 (c_value_of_root): Check scope within nested statements.
10538 2007-01-01 Mark Kettenis <kettenis@gnu.org>
10540 * mi/mi-main.c (mi_cmd_data_write_register_values): Use
10541 regcache_cooked_write_signed instead of
10542 deprecated_write_register_bytes.
10544 2007-01-01 Joel Brobecker <brobecker@adacore.com>
10546 * config/djgpp/fnchange.lst: Add entry for ChangeLog-2006.
10548 2007-01-01 Joel Brobecker <brobecker@adacore.com>
10550 Followed the Start of New Year Procedure:
10551 * ChangeLog-2006: New file, containing all the entries for 2006.
10552 * ChangeLog: Removed all 2006 entries, and changed the reference
10553 to the previous ChangeLog to point to ChangeLog 2006.
10554 * top.c (print_gdb_version): Update copyright year.
10556 2007-01-01 Mark Kettenis <kettenis@gnu.org>
10558 * Makefile.in (remote-sds.o): Remove.
10559 * remote-sds.c: Delete.
10561 For older changes see ChangeLog-2006.
10567 version-control: never