1 2007-12-24 Joel Brobecker <brobecker@adacore.com>
3 * dwarf2read.c (read_base_type): Set code to TYPE_CODE_CHAR
4 for char and unsigned char types of Ada compilation units.
5 * ada-lang.c (ada_is_character_type): Always return true if
6 the type code is TYPE_CODE_CHAR.
8 2007-12-23 Joel Brobecker <brobecker@adacore.com>
10 * infrun.c (handle_inferior_event): Remove code that made us
11 stop when stepping into the last line of the current function.
13 2007-12-22 Pierre Muller <muller@ics.u-strasbg.fr>
15 * win32-nat.c: Fix PR gdb/2388.
16 (do_win32_fetch_inferior_registers): Do not overwrite debug register
17 array dr if debug_registers_changed variable is set.
19 2007-12-22 Jan Kratochvil <jan.kratochvil@redhat.com>
21 * dwarf2read.c (scan_partial_symbols partial_die_parent_scope)
22 (add_partial_symbol, pdi_needs_namespace, process_die)
23 (is_type_tag_for_partial, load_partial_dies, new_symbol)
24 (read_type_die, determine_prefix): Extend the current code of
25 `DW_TAG_class_type' also for `DW_TAG_interface_type'.
27 2007-12-21 Paul N. Hilfinger <hilfinger@adacore.com>
29 * ada-lang.h (ada_renaming_category): New enumerated type.
30 (ada_lookup_encoded_symbol): Declare.
31 (ada_parse_renaming): Declare.
32 (ada_renaming_type,ada_is_object_renaming)
33 (ada_simple_renamed_entity): Delete declarations.
34 * ada-lang.c (ada_parse_renaming): New function to concentrate
35 extraction of information from renaming symbols.
36 (parse_old_style_renaming): New function to concentrate
37 extraction of old-style (purely type-based) renaming information.
38 (renaming_is_visible): Rename to...
39 (old_renaming_is_invisible): Rename and change sense of
41 (remove_out_of_scope_renamings): Rename to...
42 (remove_irrelevant_renamings): Renames remove_out_of_scope_renamings
43 and augments with additional logic to handle cases where the same
44 object renaming is encoded both as a reference variable and an
46 (ada_renaming_type,ada_is_object_renaming)
47 (ada_simple_renamed_entity): Delete definitions.
48 (ada_lookup_encoded_symbol): New function factored out of
50 (ada_lookup_symbol): Reimplement to call ada_lookup_encoded_symbol.
51 (wild_match): Don't reject perfect match of prefix.
52 (ada_find_renaming_symbol): Factor old-style renaming logic into
53 find_old_style_renaming_symbol.
54 (find_old_style_renaming_symbol): New name for content of old
55 ada_find_renaming_symbol.
56 (ada_prefer_type): Reimplement not to use ada_renaming_type.
57 * ada-exp.y (write_object_renaming): Change interface. Reimplement
58 to use new arguments and ada_parse_renaming.
59 Correct blocks used to find array index.
60 (write_var_or_type): Reimplement to use ada_parse_renaming.
62 2007-12-21 Denis Pilat <denis.pilat@st.com>
64 * tui/tui-data.h (MAX_LOCATOR_ELEMENT_LEN): Defined to a bigger
65 value or to PATH_MAX when possible.
67 2007-12-20 Joel Brobecker <brobecker@adacore.com>
69 * rs6000-tdep.h: Remove defs.h #include.
70 * Makefile.in (rs6000_tdep_h): Update dependencies.
72 2007-12-20 Thiago Jung Bauermann <bauerman@br.ibm.com>
74 * gdbtypes.c (gdbtypes_post_init): Change names of decimal float types
75 to conform to C extension for decimal float.
76 * c-lang.c (enum c_primitive_types): Add entries for Decimal Floating
78 (enum cplus_primitive_types): Likewise.
79 (c_language_arch_info): Add Decimal Floating Point builtin types to
80 the primitive_type_vector.
81 (cplus_language_arch_info): Likewise.
83 2007-12-20 David Ung <davidu@mips.com>
84 Maciej W. Rozycki <macro@mips.com>
86 * mips-tdep.c (mips_n32n64_push_dummy_call): Sign-extend
87 integers and 32-bit pointers as required by the ABI.
89 2007-12-20 Joel Brobecker <brobecker@adacore.com>
91 * symtab.h: Remove "defs.h" #include.
92 * Makefile.in (symtab_h): Update dependencies.
94 2007-12-19 Joel Brobecker <brobecker@adacore.com>
96 * symtab.h: #include "defs.h".
97 (enum language): Remove opaque declaration.
98 * Makefile.in (symtab_h): Update dependencies.
100 2007-12-19 Joel Brobecker <brobecker@adacore.com>
102 * language.h (enum exp_opcode): Remove commented out forward
104 (op_error): Delete declaration.
106 2007-12-19 Joel Brobecker <brobecker@adacore.com>
108 * infrun.c (handle_inferior_event): Fix spelling in comment.
110 2007-12-18 Daniel Jacobowitz <dan@codesourcery.com>
112 * minsyms.c (lookup_minimal_symbol): Also check the separate
114 (lookup_minimal_symbol_text): Likewise.
115 (lookup_minimal_symbol_solib_trampoline): Likewise.
116 * symtab.c (lookup_global_symbol_from_objfile): Likewise.
118 2007-12-18 Vladimir Prus <vladimir@codesourcery.com>
120 * mi/mi-main.c (mi_cmd_list_features): Announce
121 the 'pending-breakpoints' feature.
123 2007-12-17 Jim Blandy <jimb@codesourcery.com>
125 * dwarf2read.c (dwarf2_add_field): Correctly scale all byte
126 offsets obtained from DW_AT_data_member_location before recording
127 them in FIELD_BITPOS (*fp).
129 * dwarf2read.c (attr_form_is_section_offset): Doc fixes.
131 2007-12-17 Nigel Stephens <nigel@mips.com>
132 Maciej W. Rozycki <macro@mips.com>
134 * utils.c (string_to_core_addr): If the executable format
135 indicates that addresses should be sign-extended and there are
136 only 8 hex digits in the address, then do so.
137 * Makefile.in (utils.o): Depend on $(gdbcore_h).
139 2007-12-17 Chris Dearman <chris@mips.com>
141 * symfile.c (init_filename_language_table): Recognise .sx as
144 2007-12-17 Joel Brobecker <brobecker@adacore.com>
146 * language.h (enum exp_opcode): Comment out this declaration,
147 undoing the previous change.
149 2007-12-17 Luis Machado <luisgpm@br.ibm.com>
151 * breakpoint.c: (watch_command_1): Parse additional optional
152 "thread" parameter to the watchpoint command and set the
153 "thread" member of the breakpoint struct.
155 2007-12-17 Luis Machado <luisgpm@br.ibm.com>
157 * breakpoint.c (bpstat_stop_status): Check an additional
158 condition before evaluating an expression value.
160 2007-12-17 Joel Brobecker <brobecker@adacore.com>
162 * language.h (enum exp_opcode): Add forward declaration.
163 (language_string_char_type, language_lookup_primitive_type_by_name):
164 Move declaration past declaration of language_defn.
166 2007-12-16 Daniel Jacobowitz <dan@codesourcery.com>
167 Joseph Myers <joseph@codesourcery.com>
169 * configure.ac: Check for *-*-solaris2.1[[0-9]]* instead of
170 *-*-solaris2.1[[0-9]].
171 * configure: Regenerate.
172 * procfs.c (proc_set_current_signal): If redelivering a signal,
173 reuse the current siginfo if possible.
175 2007-12-16 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
177 * f-typeprint.c (print_equivalent_f77_float_type): Remove function.
178 (f_type_print_base): Output the type names directly for real and
181 2007-12-16 Vladimir Prus <vladimir@codesourcery.com>
183 * breakpoint.c (bpstat_have_active_hw_watchpoints):
185 (bpstat_stop_status): Remove unused variable
187 * breakpoint.h (bpstat_have_active_hw_watchpoints):
190 2007-12-16 Vladimir Prus <vladimir@codesourcery.com>
192 * target.h (target_pid_or_tid_to_str): Remove.
193 * infrun.c (handle_inferior_event):
194 Use target_pid_to_str instead of
195 target_pid_or_tid_to_str.
196 (normal_stop): Likewise.
198 2007-12-16 Jan Kratochvil <jan.kratochvil@redhat.com>
200 * dwarf2read.c (dwarf_attr_name): Rename `DW_AT_stride_size' to its
201 DWARF3 equivalent `DW_AT_bit_stride'.
202 Rename `DW_AT_stride' to its DWARF3 equivalent `DW_AT_byte_stride'.
204 2007-12-16 Joel Brobecker <brobecker@adacore.com>
206 * mi/mi-main.c: Remove code that was commented out in 1999.
208 2007-12-16 Joel Brobecker <brobecker@adacore.com>
210 * expression.h (parse_expression_in_context): Delete prototype.
211 * parse.c (parse_expression_in_context): Delete.
213 2007-12-14 Vladimir Prus <vladimir@codesourcery.com>
215 Add support for pending breakpoints in MI.
216 * gdb.h (gdb_breakpoint): Add parameter pending.
217 * breakpoint.c (gdb_breakpoint): Add parameter pending.
218 * mi/mi-cmd-break.c (mi_break_insert): Change
219 comment to refer to manual. Add support for
220 the -f flag, for pending breakpoint.
222 2007-12-14 Vladimir Prus <vladimir@codesourcery.com>
224 * breakpoint.c (break_command_really): New, copied
225 from break_command_1. New parameters COND_STRING, THREAD
226 PARSE_CONDITITION_AND_THREAD and PENDING_BREAK_SUPPORT.
227 The previous FLAG parameter split into TEMPFLAG and
229 When PARSE_CONDITION_AND_THREAD is not set, duplicate
230 the passed condition string.
231 (struct captured_breakpoint_args): Remove
232 (do_captured_breakpoint): Remove.
233 (break_command_1): Relay to break_command_really.
234 (gdb_breakpoint): Relay to break_command_really.
236 2007-12-13 Michael Snyder <msnyder@specifix.com>
238 * mips-linux-tdep.c (mips64_fill_gregset): Remove unused variable.
240 2007-12-13 Jim Blandy <jimb@codesourcery.com>
242 * dwarf2read.c (attr_form_is_constant): New function.
243 (dwarf2_add_field): Use it and attr_form_is_section_offset to
244 recognize DW_AT_data_member_location attributes. Use
245 dwarf2_get_attr_constant_value when the attribute is a constant.
247 * dwarf2read.c (attr_form_is_section_offset): New function.
248 (dwarf_add_member_fn, read_common_block, read_partial_die)
249 (dwarf2_symbol_mark_computed): Use it, instead of writing it out.
251 2007-12-12 Jim Blandy <jimb@codesourcery.com>
253 Remove unused support for target-based exception catching.
254 * target.h (struct target_ops): Delete
255 to_enable_exception_callback and to_get_current_exception_event
257 (target_enable_exception_callback)
258 (target_get_current_exception_event): Delete macros.
259 * target.c (update_current_target): Remove code to inherit and
260 default those members.
261 (debug_to_enable_exception_callback)
262 (debug_to_get_current_exception_event): Delete functions.
263 (setup_target_debug): Don't install those methods.
264 * inf-child.c (inf_child_enable_exception_callback)
265 (inf_child_get_current_exception_event): Delete dummy functions.
266 (inf_child_target): Don't install them in the target vector.
267 * breakpoint.h (enum bptype): Delete bp_catch_catch,
269 * breakpoint.c (cover_target_enable_exception_callback)
270 (ep_is_exception_catchpoint, create_exception_catchpoint): Delete
272 (insert_bp_location, update_breakpoints_after_exec)
273 (remove_breakpoint, ep_is_catchpoint, print_it_typical)
274 (bpstat_stop_status, bpstat_what)
275 (bpstat_get_triggered_catchpoints, print_one_breakpoint_location)
276 (user_settable_breakpoint, allocate_bp_location)
277 (disable_watchpoints_before_interactive_call_start)
278 (enable_watchpoints_after_interactive_call_stop, mention)
279 (delete_breakpoint, breakpoint_re_set_one, disable_command)
280 (enable_command): Remove exception catchpoint cases.
281 (catch_exception_command_1): Don't try target-based exception
283 * stack.c (catch_info): Call print_frame_label_vars
286 2007-12-12 Nigel Stephens <nigel@mips.com>
287 Maciej W. Rozycki <macro@mips.com>
289 * remote-mips.c (mips_load): Use regcache_set_valid_p() instead
290 of setting deprecated_register_valid array directly.
292 2007-12-07 Maciej W. Rozycki <macro@mips.com>
294 * mips-tdep.c (extended_offset): Fix a comment.
296 2007-12-07 Maciej W. Rozycki <macro@mips.com>
298 * target.c (update_current_target): Inherit to_log_command.
299 * target.h (struct target_ops). Add to_log_command.
300 (target_log_command): New macro.
301 * top.c (execute_command): Call target_log_command() rather than
302 serial_log_command().
303 * monitor.c (init_base_monitor_ops): Initialize to_log_command.
304 * remote-m32r-sdi.c (init_m32r_ops): Likewise.
305 * remote-mips.c (_initialize_remote_mips): Likewise.
306 * remote.c (init_remote_ops): Likewise.
308 2007-12-06 Daniel Jacobowitz <dan@codesourcery.com>
310 * infrun.c (init_wait_for_inferior): Reset target_last_wait_ptid.
311 (handle_inferior_event): Clear stop_stack_dummy earlier.
313 2007-12-06 Jim Blandy <jimb@codesourcery.com>
315 * addrmap.c (addrmap_splay_tree_remove): New function.
316 (addrmap_mutable_set_empty): Use it.
318 * addrmap.c, addrmap.h: Update to GPLv3.
320 * addrmap.c (struct addrmap): Make the referenced function table
322 (addrmap_fixed_funcs, addrmap_mutable_funcs): Declare const.
323 Don't use designated initializers.
325 * addrmap.c (addrmap_fixed_create_fixed, addrmap_mutable_find)
326 (addrmap_mutable_relocate): Use internal_error, not abort.
328 * NEWS: Mention support for non-contiguous lexical blocks and
331 2007-12-06 Markus Deuling <deuling@de.ibm.com>
333 * gdbarch.sh (stab_reg_to_regnum, dwarf_reg_to_regnum)
334 ( dwarf2_reg_to_regnum, sdb_reg_to_regnum, ecoff_reg_to_regnum): Add
335 gdbarch as parameter.
336 * gdbarch.{c,h}: Regenerate.
338 * xtensa-tdep.c (xtensa_reg_to_regnum): Add gdbarch as parameter.
339 Replace current_gdbarch by gdbarch.
340 * s390-tdep.c (s390_dwarf_reg_to_regnum): Likewise.
341 * rs6000-tdep.c (rs6000_stab_reg_to_regnum)
342 (rs6000_dwarf2_reg_to_regnum): Likewise.
343 * mips-tdep.c (mips_stab_reg_to_regnum)
344 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Likewise.
345 * mep-tdep.c (mep_debug_reg_to_regnum): Likewise.
346 * m32c-tdep.c (m32c_debug_info_reg_to_regnum): Likewise.
347 * i386-tdep.c (i386_dbx_reg_to_regnum)
348 (i386_svr4_reg_to_regnum): Likewise
349 * h8300-tdep.c (h8300s_dbg_reg_to_regnum)
350 (h8300_dbg_reg_to_regnum): Likewise.
351 * amd64-tdep.c (amd64_dwarf_reg_to_regnum): Likewise.
352 * arch-utils.c (no_op_reg_to_regnum): Likewise.
353 * arch-utils.h (no_op_reg_to_regnum): Likewise.
354 * arm-tdep.c (arm_dwarf_reg_to_regnum): Likewise.
355 * cris-tdep.c (cris_dwarf2_reg_to_regnum): Likewise.
356 * hppa-tdep.c (hppa64_dwarf_reg_to_regnum): Likewise.
357 * ia64-tdep.c (ia64_dwarf_reg_to_regnum): Likewise.
358 * m68k-tdep.c (m68k_dwarf_reg_to_regnum): Likewise.
360 2007-12-06 Vladimir Prus <vladimir@codesourcery.com>
362 Localize infrun use of remove_breakpoints.
363 * infrun.c (handle_inferior_event): Remove
364 calls to remove_breakpoints, except where needed to
365 communicate change of breakpoint locations to inferior.
366 (keep_going): If steppping over breakpoint, remove
369 2007-12-06 Vladimir Prus <vladimir@codesourcery.com>
371 Clarify infrun variable naming.
372 * infrun.c (trap_expected): Rename
373 to stepping_over_breakpoint. Document.
374 (stepping_past_breakpoint): Remove.
375 (stepping_past_breakpoint_ptdi): Renamed
376 to deferred_step_ptid.
377 (struct execution_control_state): Rename
378 the another_trap field to stepping_over_breakpoint.
379 (struct inferior_status): Rename the trap_expected
380 field to stepping_over_breakpoint.
381 (clear_proceed_status, proceed)
382 (init_execution_control_state, context_switch)
383 (handle_inferior_event, currently_stepping)
384 (keep_going, save_inferior_status)
385 (restore_inferior_status, prepare_to_proceed): Adjust.
386 * gdbthread.h (struct thread_info): Rename the
387 trap_expected field to stepping_over_breakpoint.
388 * thread.c (load_infrun_state, save_infrun_state):
391 2007-12-06 Pierre Muller <muller@ics.u-strasbg.fr>
393 * win32-nat.c: Allow compilation if CORE_ADDR is 8 byte long.
394 Add "gdb_stdint.h" dependency required for uintptr_t type use.
395 (handle_output_debug_string): Use uintptr_t typecast.
396 (handle_exception): Ditto.
397 (win32_xfer_memory): Ditto.
398 * Makefile.in (win32-nat.o): Add dependency to gdb_stdint header.
400 2007-12-04 Jim Blandy <jimb@codesourcery.com>
402 Support lexical blocks and function bodies that occupy
403 non-contiguous address ranges.
404 * addrmap.c, addrmap.h: New files.
405 * block.h (struct addrmap): New forward declaration.
406 (struct blockvector): New member, 'map'.
407 (BLOCKVECTOR_MAP): New accessor macro.
408 * block.c: #include "addrmap.h"
409 (blockvector_for_pc_sect): If the blockvector we've found has
410 an address map, use it instead of searching the blocks.
411 * buildsym.c: #include "addrmap.h"
412 (pending_addrmap_obstack, pending_addrmap_interesting): New static
414 (really_free_pendings): If we have a pending addrmap, free it too.
415 (record_block_range): New function.
416 (make_blockvector): If we have an interesting pending addrmap,
417 record it in the new blockvector.
418 (start_symtab, buildsym_init): Assert that there is no pending
419 addrmap now; we should have cleaned up any addrmaps we'd built
421 (end_symtab): If there is a pending addrmap left over that didn't
422 get included in the blockvector, free it.
423 * buildsym.h (struct addrmap): New forward declaration.
424 (record_block_range): New prototype.
425 * objfiles.c: #include "addrmap.h".
426 (objfile_relocate): Relocate the blockvector's address map, if
428 * dwarf2read.c (dwarf2_record_block_ranges): New function.
429 (read_func_scope, read_lexical_block_scope): Call it.
430 * Makefile.in (SFILES): Add addrmap.c.
431 (addrmap_h): New header dependency variable.
432 (COMMON_OBS): Add addrmap.o.
433 (addrmap.o): New rule.l
434 (block.o, objfiles.o, buildsym.o): Depend on $(addrmap_h).
436 * block.c (blockvector_for_pc, blockvector_for_pc_sect): Return a
437 pointer to the block, not its index in the blockvector.
438 (block_for_pc_sect): Use the returned block, instead of looking it
440 * block.h (blockvector_for_pc, blockvector_for_pc_sect): Update
442 * breakpoint.c (resolve_sal_pc): Use returned block, instead of
443 looking it up ourselves.
444 * stack.c (print_frame_label_vars): Disable function, which
445 depends on the block's index.
447 * buildsym.c (finish_block): Return the block we've built.
448 * buildsym.h (finish_block): Update prototype.
450 * defs.h (CORE_ADDR_MAX): New constant.
452 2007-12-04 Ulrich Weigand <uweigand@de.ibm.com>
454 * coffread.c (decode_type): Use builtin_type_int32 instead
455 of FT_INTEGER fundamental type for array range index type.
456 (decode_base_type): Use builtin types of current_gdbarch
457 instead of fundamental types.
459 * dwarf2read.c (struct dwarf2_cu): Remove ftypes member.
460 (read_file_scope): Do not initialize ftypes member.
461 (dwarf_base_type, dwarf2_fundamental_types): Remove functions.
462 (read_array_type): Use builtin_type_int32 instead of FT_INTEGER
463 fundamental type for array range index type.
464 (read_tag_string_type): Likewise for string range index type.
465 Also, do not overwrite FT_CHAR type with new string type.
466 (read_base_type): If DW_AT_name is missing, create unnamed type
467 with given properties instead of looking for a fundamental type.
468 Create new types as TYPE_TARGET_TYPE for DW_ATE_address and
469 DW_ATE_complex_float types.
470 (read_subrange_type): Create new type to represent missing
471 DW_AT_type instead of looking for a fundamental type.
472 (die_type): Use builtin type to represent "void" instead of
473 looking for a fundamental type.
475 * stabsread.c (define_symbol): Use builtin types to represent
476 'r' and 'i' floating-point and integer constants.
478 * gdbtypes.c (lookup_fundamental_type): Remove.
479 * gdbtypes.h (lookup_fundamental_type): Remove prototype.
480 (FT_VOID, FT_BOOLEAN, FT_CHAR, FT_SIGNED_CHAR, FT_UNSIGNED_CHAR,
481 FT_SHORT, FT_SIGNED_SHORT, FT_UNSIGNED_SHORT, FT_INTEGER,
482 FT_SIGNED_INTEGER, FT_UNSIGNED_INTEGER, FT_LONG, FT_SIGNED_LONG,
483 FT_UNSIGNED_LONG, FT_LONG_LONG, FT_SIGNED_LONG_LONG,
484 FT_UNSIGNED_LONG_LONG, FT_FLOAT, FT_DBL_PREC_FLOAT, FT_EXT_PREC_FLOAT,
485 FT_COMPLEX, FT_DBL_PREC_COMPLEX, FT_EXT_PREC_COMPLEX, FT_STRING,
486 FT_FIXED_DECIMAL, FT_FLOAT_DECIMAL, FT_BYTE, FT_UNSIGNED_BYTE,
487 FT_TEMPLATE_ARG, FT_DECFLOAT, FT_DBL_PREC_DECFLOAT,
488 FT_EXT_PREC_DECFLOAT, FT_NUM_MEMBERS): Remove macros.
489 * objfiles.c (struct objfile): Remove fundamental_types member.
490 * symfile.c (reread_symbols): Do not clear fundamental_types.
492 * language.h (struct language_defn): Remove la_fund_type member.
493 (create_fundamental_type): Remove.
494 * language.c (unk_lang_create_fundamental_type): Remove.
495 (unknown_language_defn, auto_language_defn,
496 local_language_defn): Adapt initializer.
497 * ada-lang.c (ada_create_fundamental_type): Remove.
498 (ada_language_defn): Adapt initializer.
499 * c-lang.h (c_create_fundamental_type): Remove prototype.
500 * c-lang.c (c_create_fundamental_type): Remove.
501 (c_language_defn, cplus_language_defn, asm_language_defn,
502 minimal_language_defn): Adapt initializer.
503 * f-lang.c (f_create_fundamental_type): Remove.
504 (f_language_defn): Adapt initializer.
505 * jv-lang.c (java_create_fundamental_type): Remove.
506 (java_language_defn): Adapt initializer.
507 * m2-lang.c (m2_create_fundamental_type): Remove.
508 (m2_language_defn): Adapt initializer.
509 * objc-lang.c (objc_create_fundamental_type): Remove.
510 (objc_language_defn): Adapt initializer.
511 * p-lang.h (pascal_create_fundamental_type): Remove prototype.
512 * p-lang.c (pascal_create_fundamental_type): Remove.
513 (pascal_language_defn): Adapt initializer.
514 * scm-lang.c (scm_language_defn): Adapt initializer.
516 2007-12-04 Maciej W. Rozycki <macro@mips.com>
518 * features/mips-cpu.xml: Specify "regnum" for "r0" explicitly.
519 * features/mips64-cpu.xml: Likewise.
520 * features/mips-fpu.xml: Specify "regnum" for "f0" explicitly.
521 * features/mips64-fpu.xml: Likewise.
522 * features/mips-linux.c: Regenerate.
523 * features/mips64-linux.c: Regenerate.
525 2007-12-04 Maciej W. Rozycki <macro@mips.com>
527 * target.h (target_find_new_threads): Fix definition.
529 2007-12-02 Pierre Muller <muller@ics.u-strasbg.fr>
531 * win32-nat.c (win32_resume): Set the trace bit
532 in the thread identified by inferior_ptid.
535 2007-12-02 Pierre Muller <muller@ics.u-strasbg.fr>
537 * win32-nat.c (open_process_used): New static variable.
538 (win32_init_thread_list): Remove call to CloseHandle for thread.
539 (win32_delete_thread): Ditto.
540 (fake_create_process): Set open_process_used if OpenProcess call is
542 (get_win32_debug_event): Do not close process handle.
543 (do_initial_win32_stuff): Set open_process_used to zero.
544 (win32_mourn_inferior): Call CloseHandle for current_process_handle if
545 open_process_used is set.
546 (win32_kill_inferior): Do not close process and main_thread handles.
548 2007-11-30 Daniel Jacobowitz <dan@codesourcery.com>
550 * remote.c (remote_cmdlist): New variable.
551 (PACKET_vFile_open, PACKET_vFile_pread, PACKET_vFile_pwrite)
552 (PACKET_vFile_close, PACKET_vFile_unlink): New constants.
553 (remote_buffer_add_string, remote_buffer_add_bytes)
554 (remote_buffer_add_int, remote_hostio_parse_result)
555 (remote_hostio_send_command, remote_hostio_open, remote_hostio_pwrite)
556 (remote_hostio_pread, remote_hostio_close, remote_hostio_unlink)
557 (remote_fileio_errno_to_host, remote_hostio_error, fclose_cleanup)
558 (remote_hostio_close_cleanup, remote_file_put, remote_file_get)
559 (remote_file_delete, remote_put_command, remote_get_command)
560 (remote_delete_command, remote_command): New functions.
561 (_initialize_remote): Register new packets and commands.
562 * Makefile.in (gdb_fileio_h): New variable.
564 (SUBDIR_MI_OBS): Add mi-cmd-target.o.
565 (SUBDIR_MI_SRCS): Add mi/mi-cmd-target.c.
566 (mi-cmd-target.o): New rule.
567 * mi/mi-cmd-target.c: New file.
568 * mi/mi-cmds.c (mi_cmds): Add target-file-delete, target-file-get,
570 * mi/mi-cmds.h (mi_cmd_target_file_get, mi_cmd_target_file_put)
571 (mi_cmd_target_file_delete): Declare.
572 * remote.h (remote_file_put, remote_file_get, remote_file_delete):
574 * NEWS: Describe new file transfer support.
576 2007-11-30 Vladimir Prus <vladimir@codesourcery.com>
578 * infrun.c (handle_inferior_event): Don't
579 ignore beakpoints if trap_expected is set.
581 2007-11-30 Vladimir Prus <vladimir@codesourcery.com>
583 Make insert_breakpoints return void.
584 * breakpoint.h (insert_breakpoints): Change
586 * breakpoint.c (insert_breakpoints): Change
587 return type to void. Rename local return_val
589 * infrun.c (keep_going): Instead of checking
590 return value from insert_breakpoints, catch exception.
592 2007-11-29 Vladimir Prus <vladimir@codesourcery.com>
594 Stop infrun from tracking breakpoint insertion status.
596 The checks of breakpoints_inserted before calling
597 remove_breakpoints are removed, as remove_breakpoint
598 won't touch uninserted breakpoints. In a number of places,
599 we're interested if a breakpoint is inserted at particular
600 PC, and we now use breakpoint_inserted_here_p. In a few
601 places, insert_breakpoints can be called unconditionally,
602 since it won't try to insert already inserted breakpoint.
604 * breakpoint.h (regular_breakpoint_inserted_here_p): New
606 * breakpoint.c (regular_breakpoint_inserted_here_p): New.
607 (breakpoint_inserted_here_p): Use
608 regular_breakpoint_inserted_here_p.
609 * infrun.c (breakpoints_inserted): Remove.
610 (resume): Don't check for breakpoints_inserted before
611 remove_hw_watchpoints. Use breakpoint_inserted_here_p.
612 (proceed, init_wait_for_inferior): Don't set breakpoints_inserted.
613 (handle_inferior_event): Don't use breakpoints_inserted.
614 Use breakpoints_meant_to_be_inserted and
615 breakpoints_inserted_here_p.
616 (insert_step_resume_breakpoint_at_sal, keep_going): Use
617 breakpoints_meant_to_be_inserted. Don't set breakpoints_inserted.
618 (normal_stop): Don't check for breakpoints_inserted. Don't
619 set breakpoints_inserted.
620 (keep_going): Don't check for breakpoints_inserted.
621 (insert_step_resume_breakpoint_at_sal): Don't insert
624 2007-11-28 Jim Blandy <jimb@codesourcery.com>
626 * breakpoint.c (watch_command_1): When the watchpoint isn't local
627 to any frame, initialize watchpoint_frame using null_frame_id, not
630 2007-11-28 Vladimir Prus <vladimir@codesourcery.com>
632 * infrun.c (resume): Set right thread even if
633 stepping over breakpoint using software single step.
635 2007-11-28 Nick Roberts <nickrob@snap.net.nz>
637 * mi/mi-cmd-var.c (print_varobj): Revert change from 2007-08-31.
638 (mi_print_value_p): Guard against type = NULL.
640 2007-11-27 Thiago Jung Bauermann <bauerman@br.ibm.com>
642 * dfp.c (decimal_from_string): Remove superfluous newline from
644 (decimal_to_string): Likewise.
645 * printcmd.c (printf_command): Change string buffer to use
646 MAX_DECIMAL_STRING constant.
647 * value.c (value_from_decfloat): Likewise.
649 2007-11-27 Ulrich Weigand <uweigand@de.ibm.com>
651 * Makefile.in (ALL_TARGET_OBS): Remove object files that require
652 64-bit CORE_ADDR and BFD support, move them to ...
653 (ALL_64_TARGET_OBS): ... this new variable.
654 * configure.ac: Check for --enable-64-bit-bfd option. Only add
655 64-bit targets with --enable-targets=all if BFD supports 64-bit.
656 * configure: Regenerate.
658 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Do not claim
659 all elf32-i386 executables, only cygwin core files.
661 2007-11-25 Jan Kratochvil <jan.kratochvil@redhat.com>
663 * dwarf2read.c (dwarf2_get_pc_bounds): Moved the `DW_AT_ranges' parsing
664 code with its variables OBJFILE, CU_HEADER and OBFD into ...
665 (dwarf2_ranges_read): ... a new function.
666 (read_partial_die): Implemented the parsing of `DW_AT_ranges'.
668 2007-11-24 Pedro Alves <pedro_alves@portugalmail.pt>
670 * win32-nat.c (DR6_CLEAR_VALUE): New define.
671 (thread_info_struct): Rename suspend_count to suspended, to be
673 (thread_rec): Only suspend the thread if it wasn't suspended by
674 gdb before. Warn if suspending failed.
675 (win32_add_thread): Set Dr6 to DR6_CLEAR_VALUE.
676 (win32_continue): Set Dr6 to DR6_CLEAR_VALUE. Update usage of the
677 `suspended' flag. Do ContinueDebugEvent after resuming the
678 suspended threads, not before. Set threads' contexts before
679 resuming them, not after.
680 (win32_resume): Set Dr6 to DR6_CLEAR_VALUE.
682 2007-11-23 Vladimir Prus <vladimir@codesourcery.com>
684 * breakpoint.c (insert_breakpoints)
685 (insert_bp_location): Remove stale comments.
687 2007-11-23 Maciej W. Rozycki <macro@mips.com>
689 * mips-linux-tdep.h: Fix some formatting.
691 2007-11-21 Markus Deuling <deuling@de.ibm.com>
693 * stack.c (print_args_stub): Use get_frame_arch to get at the current
694 architecture and replace current_gdbarch.
695 (frame_info): Likewise.
697 2007-11-21 Nick Roberts <nickrob@snap.net.nz>
699 * varobj.c (c_variable_editable, cplus_variable_editable)
700 (java_variable_editable, variable_editable): Delete.
701 (varobj_editable_p): Replace above functions with one language
702 independent function. Check for an lvalue.
703 (varobj_get_attributes, varobj_set_value): Use varobj_editable_p.
704 (struct language_specific): Delete variable_editable field.
706 * mi-cmd-var.c (mi_cmd_var_assign): Simplify.
708 * varobj.h: Add extern for varobj_editable_p.
710 2007-11-20 Vladimir Prus <vladimir@codesourcery.com>
712 Remove unused breakpoint fields.
713 * breakpoint.h (struct breakpoint): Remove
714 from_tty and flag fields.
715 * breakpoint.c (break_command_1): Don't set
716 from_tty and flag field set of breakpoint.
717 (create_ada_exception_breakpoint): Don't set
720 2007-11-20 David Ung <davidu@mips.com>
721 Maciej W. Rozycki <macro@mips.com>
723 * mips-tdep.c (mips16_scan_prologue): Handle the MIPS16e SAVE
726 2007-11-20 Vladimir Prus <vladimir@codesourcery.com>
728 * infrun.c (resume): Clarify logic that
729 decides if a single thread must be resumed. Add
732 2007-11-20 Vladimir Prus <vladimir@codesourcery.com>
734 * breakpoint.c (disable_breakpoints_in_unloaded_shlib):
737 2007-11-19 Markus Deuling <deuling@de.ibm.com>
739 * gdbarch.sh (register_sim_regno): Add gdbarch as parameter.
740 * gdbarch.{c,h}: Regenerate.
742 * arch-utils.h (legacy_register_sim_regno): Add gdbarch as parameter.
743 * score-tdep.c (score_register_sim_regno): Likewise.
744 * sim-regno.h (one2one_register_sim_regno): Likewise.
746 * arch-utils.c (legacy_register_sim_regno): Add gdbarch as parameter.
747 Replace current_gdbarch by gdbarch.
748 * sh-tdep.c (sh_sh2a_register_sim_regno)
749 (sh_dsp_register_sim_regno): Likewise.
750 * rs6000-tdep.c (rs6000_register_sim_regno): Likewise.
751 * mips-tdep.c (mips_register_sim_regno): Likewise.
752 * m32c-tdep.c (m32c_register_sim_regno): Likewise.
753 * frv-tdep.c (frv_register_sim_regno): Likewise.
754 * arm-tdep.c (arm_register_sim_regno): Likewise.
755 * remote-sim.c (one2one_register_sim_regno): Likewise.
757 2007-11-16 Ulrich Weigand <uweigand@de.ibm.com>
759 * configure.ac (--enable-targets): New configure option.
760 Collect gdb_target_obs of multiple targets into TARGET_OBS.
761 Call configure.tgt multiple times, using $targ as operand.
762 * configure.tgt: Operate on $targ instead of $target.
763 * configure: Regenerate.
764 * Makefile.in (ALL_TARGET_OBS): Define.
766 * NEWS: Mention --enable-targets option.
768 2007-11-16 Ulrich Weigand <uweigand@de.ibm.com>
770 * mips-tdep.c (show_mipsfpu_command): Do not crash if called when
771 current architecture is not MIPS.
773 2007-11-16 Ulrich Weigand <uweigand@de.ibm.com>
775 * cli/cli-setshow.c (do_setshow_command): Use dynamically sized buffer
776 to construct error message if no argument was supplied.
778 2007-11-16 Ulrich Weigand <uweigand@de.ibm.com>
780 * i386nbsd-tdep.c (i386nbsd_aout_supply_regset): Remove.
781 (i386nbsd_aout_regset_from_core_section): Likewise.
782 (i386nbsd_aout_init_abi): Likewise.
783 (_initialize_i386nbsd_tdep): Do not register i386nbsd_aout_init_abi.
785 * vaxnbsd-tdep.c (vaxnbsd_aout_init_abi): Remove.
786 (_initialize_vaxnbsd_tdep): Do not register vaxnbsd_aout_init_abi.
788 2007-11-16 Ulrich Weigand <uweigand@de.ibm.com>
790 * amd64fsdb-tdep.c (amd64fbsd_sigtramp_start_addr): Use ULL suffix.
791 (amd64fbsd_sigtramp_end_addr): Likewise.
793 * iq2000-tdep.c (iq2000_pointer_to_address): Fix argument type.
794 (iq2000_address_to_pointer): Likewise.
795 (iq2000_frame_prev_register): Likewise.
796 (iq2000_extract_return_value): Use regcache_cooked_read_unsigned
797 instead of regcache_cooked_read into CORE_ADDR variable.
798 (iq2000_return_value): Fix argument types.
800 * m32r-rom.c (m32r_load_section): Fix printf argument type.
801 (m32r_load): Likewise.
803 * m68kbsd-tdep.c: Include "gdbtypes.h".
804 * Makefile.in: Update dependencies.
806 * mn10300-tdep.c (mn10300_frame_unwind_cache): Fix aliasing violation.
808 * nto-tdep.c (LM_ADDR): Do not refer to no-longer-existing
809 lmo->l_addr_size element.
811 * remote-m32r-sdi.c (m32r_xfer_memory): Use paddr to print address.
812 (m32r_insert_breakpoint): Likewise.
813 (m32r_remove_breakpoint): Likewise.
814 (m32r_insert_watchpoint): Likewise.
815 (m32r_remove_watchpoint): Likewise.
816 (m32r_load): Fix printf argument type.
818 * xtensa-tdep.c (xtensa_regset_from_core_section): Fix printf
820 (xtensa_frame_this_id): Do not cast pointers to "int" for output.
821 (xtensa_frame_prev_register): Likewise.
822 (xtensa_push_dummy_call): Likewise.
824 2007-11-16 Ulrich Weigand <uweigand@de.ibm.com>
826 * config/alpha/alpha-linux.mt: Remove file.
827 * config/alpha/alpha.mt: Remove file.
828 * config/alpha/alpha-osf1.mt: Remove file.
829 * config/alpha/fbsd.mt: Remove file.
830 * config/alpha/nbsd.mt: Remove file.
831 * config/alpha/obsd.mt: Remove file.
832 * config/arm/embed.mt: Remove file.
833 * config/arm/linux.mt: Remove file.
834 * config/arm/nbsd.mt: Remove file.
835 * config/arm/obsd.mt: Remove file.
836 * config/arm/wince.mt: Remove file.
837 * config/avr/avr.mt: Remove file.
838 * config/cris/cris.mt: Remove file.
839 * config/frv/frv.mt: Remove file.
840 * config/h8300/h8300.mt: Remove file.
841 * config/i386/cygwin.mt: Remove file.
842 * config/i386/fbsd64.mt: Remove file.
843 * config/i386/fbsd.mt: Remove file.
844 * config/i386/i386gnu.mt: Remove file.
845 * config/i386/i386.mt: Remove file.
846 * config/i386/i386sol2.mt: Remove file.
847 * config/i386/linux64.mt: Remove file.
848 * config/i386/linux.mt: Remove file.
849 * config/i386/mingw.mt: Remove file.
850 * config/i386/nbsd64.mt: Remove file.
851 * config/i386/nbsd.mt: Remove file.
852 * config/i386/nto.mt: Remove file.
853 * config/i386/obsd64.mt: Remove file.
854 * config/i386/obsd.mt: Remove file.
855 * config/i386/sol2-64.mt: Remove file.
856 * config/ia64/ia64.mt: Remove file.
857 * config/ia64/linux.mt: Remove file.
858 * config/iq2000/iq2000.mt: Remove file.
859 * config/m32c/m32c.mt: Remove file.
860 * config/m32r/linux.mt: Remove file.
861 * config/m32r/m32r.mt: Remove file.
862 * config/m68hc11/m68hc11.mt: Remove file.
863 * config/m68k/linux.mt: Remove file.
864 * config/m68k/monitor.mt: Remove file.
865 * config/m68k/nbsd.mt: Remove file.
866 * config/m68k/obsd.mt: Remove file.
867 * config/m88k/obsd.mt: Remove file.
868 * config/mep/mep.mt: Remove file.
869 * config/mips/embed.mt: Remove file.
870 * config/mips/irix5.mt: Remove file.
871 * config/mips/irix6.mt: Remove file.
872 * config/mips/linux.mt: Remove file.
873 * config/mips/nbsd.mt: Remove file.
874 * config/mips/obsd64.mt: Remove file.
875 * config/mn10300/linux.mt: Remove file.
876 * config/mn10300/mn10300.mt: Remove file.
877 * config/mt/mt.mt: Remove file.
878 * config/pa/hppahpux.mt: Remove file.
879 * config/pa/hppa.mt: Remove file.
880 * config/pa/linux.mt: Remove file.
881 * config/pa/obsd.mt: Remove file.
882 * config/powerpc/aix.mt: Remove file.
883 * config/powerpc/linux.mt: Remove file.
884 * config/powerpc/nbsd.mt: Remove file.
885 * config/powerpc/obsd.mt: Remove file.
886 * config/powerpc/ppc-eabi.mt: Remove file.
887 * config/s390/s390.mt: Remove file.
888 * config/score/embed.mt: Remove file.
889 * config/sh/embed.mt: Remove file.
890 * config/sh/linux.mt: Remove file.
891 * config/sh/nbsd.mt: Remove file.
892 * config/sh/obsd.mt: Remove file.
893 * config/sh/sh64.mt: Remove file.
894 * config/sparc/embed.mt: Remove file.
895 * config/sparc/fbsd.mt: Remove file.
896 * config/sparc/linux64.mt: Remove file.
897 * config/sparc/linux.mt: Remove file.
898 * config/sparc/nbsd64.mt: Remove file.
899 * config/sparc/nbsd.mt: Remove file.
900 * config/sparc/obsd64.mt: Remove file.
901 * config/sparc/obsd.mt: Remove file.
902 * config/sparc/sol2-64.mt: Remove file.
903 * config/sparc/sol2.mt: Remove file.
904 * config/sparc/sparc64.mt: Remove file.
905 * config/sparc/sparc.mt: Remove file.
906 * config/spu/spu.mt: Remove file.
907 * config/v850/v850.mt: Remove file.
908 * config/vax/nbsd.mt: Remove file.
909 * config/vax/obsd.mt: Remove file.
910 * config/vax/vax.mt: Remove file.
911 * config/xstormy16/xstormy16.mt: Remove file.
912 * config/xtensa/xtensa.mt: Remove file.
914 * configure.tgt (gdb_target_cpu): Remove. Do not set anywhere.
915 (gdb_target): Likewise.
916 (gdb_target_obs): Document. Set for every target to contents
917 of TDEPFILES in former .mt makefile fragment.
919 * configure.ac (TARGET_OBS): Define.
920 (target_makefile_frag, gdb_target_cpu): Do not define.
921 * configure: Regenerate.
923 * Makefile.in (MT_FLAGS): Remove.
924 (GLOBAL_CFLAGS): Update.
925 (TARGET_OBS): Substitute from configure.
926 (DEPFILES): Remove TDEPFILES, add TARGET_OBS.
927 (@target_makefile_frag@): Remove.
929 2007-11-16 Ulrich Weigand <uweigand@de.ibm.com>
931 * config/arm/embed.mt (SIM_OBS, SIM): Remove.
932 * config/avr/avr.mt (SIM_OBS, SIM): Remove.
933 * config/frv/frv.mt (SIM_OBS, SIM): Remove.
934 * config/h8300/h8300.mt (SIM_OBS, SIM): Remove.
935 * config/iq2000/iq2000.mt (SIM_OBS, SIM): Remove.
936 * config/m32c/m32c.mt (SIM_OBS, SIM): Remove.
937 * config/m32r/linux.mt (SIM_OBS, SIM): Remove.
938 * config/m32r/m32r.mt (SIM_OBS, SIM): Remove.
939 * config/m68hc11/m68hc11.mt (SIM_OBS, SIM): Remove.
940 * config/mips/embed.mt (SIM_OBS, SIM): Remove.
941 * config/mips/linux.mt (SIM_OBS, SIM): Remove.
942 * config/mips/nbsd.mt (SIM_OBS, SIM): Remove.
943 * config/mn10300/mn10300.mt (SIM_OBS, SIM): Remove.
944 * config/powerpc/linux.mt (SIM_OBS, SIM): Remove.
945 * config/powerpc/nbsd.mt (SIM_OBS, SIM): Remove.
946 * config/powerpc/ppc-sim.mt: Remove file.
947 * config/sh/embed.mt (SIM_OBS, SIM): Remove.
948 * config/sh/linux.mt (SIM_OBS, SIM): Remove.
949 * config/sh/nbsd.mt (SIM_OBS, SIM): Remove.
950 * config/sh/sh64.mt (SIM_OBS, SIM): Remove.
951 * config/sparc/embed.mt (SIM_OBS, SIM): Remove.
952 * config/v850/v850.mt (SIM_OBS, SIM): Remove.
953 * config/xstormy16/xstormy16.mt (SIM_OBS, SIM): Remove.
955 * configure.tgt (gdb_sim): Document variable.
956 (arm*-*-* | thumb*-*-* | strongarm*-*-* | xscale-*-*): Set it.
959 (h8300-*-*): Likewise.
960 (iq2000-*-*): Likewise.
961 (m32c-*-*): Likewise.
962 (m32r*-*-linux*): Likewise.
963 (m32r*-*-*): Likewise.
964 (m68hc11*-*-*|m6811*-*-*): Likewise.
965 (mips*-*-*): Likewise.
966 (mips*-*-linux*): Likewise.
967 (mips*-*-netbsd* | mips*-*-knetbsd*-gnu): Likewise.
968 (mn10300-*-*): Likewise.
969 (powerpc-*-linux* | powerpc64-*-linux*): Likewise.
970 (powerpc-*-netbsd* | powerpc-*-knetbsd*-gnu): Likewise.
971 (powerpc*-*-*): Use ppc-eabi target. Conditionally set gdb_sim.
973 (sh-*-linux*): Likewise.
974 (sh*-*-netbsdelf* | sh*-*-knetbsd*-gnu): Likewise.
975 (sh64-*-elf*): Likewise.
976 (sparc-*-rtems*): Likewise.
977 (v850*-*-elf): Likewise.
978 (xstormy16-*-*): Likewise.
980 * configure.ac (IGNORE_SIM, IGNORE_SIM_OBS): Do not set.
981 (SIM, SIM_OBS): Set depending on ${ignore_sim} and ${gdb_sim}.
982 * configure: Regenerate.
983 * Makefile.in (SIM, SIM_OBS): Substitute from configure.
984 (@IGNORE_SIM@, @IGNORE_SIM_OBS@): Remove.
986 2007-11-16 Ulrich Weigand <uweigand@de.ibm.com>
988 * configure.tgt (gdb_osabi, build_gdbserver): Comment variables.
989 (arm*-*-*): Do not set obsolete build_rdi_share variable.
991 (*-*-freebsd* | *-*-kfreebsd*-gnu): Remove generic case, replace by ...
992 (alpha*-*-freebsd* | alpha*-*-kfreebsd*-gnu)
993 (i[34567]86-*-freebsd* | i[34567]86-*-kfreebsd*-gnu)
994 (sparc*-*-freebsd* | sparc*-*-kfreebsd*-gnu): ... specific cases.
995 (x86_64-*-freebsd* | x86_64-*-kfreebsd*-gnu): Re-sort.
997 (xscale-*-*): Merge into arm*-*-* case.
998 (fido-*-elf*): Merge into m68*-*-elf* case.
999 (m68*-*-aout*, m68*-*-coff*, m68*-*-elf*, m68*-*-rtems*,
1000 m68*-*-uclinux*): Merge cases.
1001 (powerpc-*-linux*, powerpc64-*-linux*): Merge cases.
1002 (sh-*-coff*, sh-*-elf*): Merge into sh* case.
1004 2007-11-16 Ulrich Weigand <uweigand@de.ibm.com>
1006 * configure.tgt: Reformat main case statement.
1008 2007-11-16 Ulrich Weigand <uweigand@de.ibm.com>
1010 * configure.ac (hostfile, targetfile): Remove.
1011 (GDB_XM_FILE, GDB_TM_FILE): Do not define.
1012 (xm_h, tm_h): Likewise.
1013 (DEPRECATED_TM_FILE, XM_FILE): Do not substitute into Makefile.
1014 * configure, config.in: Regenerate.
1016 * Makefile.in (xm_h, tm_h): Remove. Update dependencies.
1017 (TAGS): Do not consider DEPRECATED_TM_FILE or XM_FILE.
1018 (clean, local-maintainer-clean): Do not remove xm.h or tm.h.
1019 * defs.h: Do not include "xm.h" or "tm.h".
1021 * gdbarch.sh (verify_gdbarch): Do not dump GDB_XM_FILE or GDB_TM_FILE.
1022 * gdbarch.c: Regenerate.
1024 * config/score/embed.mt: Remove obsolete comment.
1026 2007-11-16 Markus Deuling <deuling@de.ibm.com>
1028 * gdbarch.sh (cannot_fetch_register, cannot_store_register): Add gdbarch
1030 * gdbarch.{c,h}: Regenerate.
1032 * alpha-tdep.c (alpha_cannot_fetch_register)
1033 (alpha_cannot_store_register): Add gdbarch as parameter. Replace
1034 current_gdbarch by gdbarch.
1035 * cris-tdep.c (cris_cannot_fetch_register, cris_cannot_store_register)
1036 (crisv32_cannot_fetch_register)
1037 (crisv32_cannot_store_register): Likewise.
1038 * arch-utils.c (cannot_register_not): Likewise.
1039 * arch-utils.h (cannot_register_not): Likewise.
1040 * hppa-tdep.c (hppa32_cannot_store_register)
1041 (hppa32_cannot_store_register, hppa64_cannot_store_register)
1042 (hppa64_cannot_fetch_register): Likewise.
1043 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register)
1044 (mipsnbsd_cannot_store_register): Likewise.
1046 2007-11-16 Markus Deuling <deuling@de.ibm.com>
1048 * m32r-rom.c (m32r_supply_register): Use get_regcache_arch to get at
1049 the current architecture by regcache.
1050 * ppcnbsd-nat.c (ppcnbsd_supply_pcb): Likewise.
1051 * ppc-linux-nat.c (fetch_altivec_register, fetch_spe_register)
1052 (fetch_register, supply_vrregset, fetch_ppc_registers)
1053 (store_altivec_register, store_spe_register, store_register)
1054 (fill_vrregset, store_ppc_registers): Likewise.
1055 * ppcobsd-nat.c (ppcobsd_supply_pcb): Likewise.
1056 * win32-nat.c (do_win32_fetch_inferior_registers)
1057 (do_win32_store_inferior_registers): Likewise.
1058 * procfs.c (procfs_fetch_registers, procfs_store_registers): Likewise.
1059 * remote-m32r-sdi.c (m32r_fetch_registers)
1060 (m32r_store_registers): Likewise.
1061 * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register): Likewise.
1063 * trad-frame.c (trad_frame_alloc_saved_regs): Replace current_gdbarch by
1065 * user-regs.c (user_reg_map_name_to_regnum): Likewise.
1066 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call)
1067 (do_ppc_sysv_return_value, ppc64_sysv_abi_push_dummy_call)
1068 (ppc64_sysv_abi_return_value): Likewise.
1069 * m32c-tdep.c (m32c_register_reggroup_p): Likewise.
1070 * m2-lang.c (build_m2_types): Likewise.
1071 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache
1072 * ppcnbsd-tdep.c (ppcnbsd_sigtramp_cache_init): Likewise.
1073 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_cache): Likewise.
1074 * rs6000-tdep.c (ppc_dwarf2_frame_init_reg): Likewise.
1076 * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Use get_frame_arch to
1077 get at the current architecture by frame_info.
1078 * gcore.c (derive_stack_segment): Likewise.
1080 * shnbsd-nat.c (GETREGS_SUPPLIES): Add gdbarch parameter.
1081 (shnbsd_fetch_inferior_registers, shnbsd_store_inferior_registers): Add
1082 gdbarch to GETREGS_SUPPLIES call.
1084 2007-11-16 Ulrich Weigand <uweigand@de.ibm.com>
1086 * elfread.c (ST_REGULAR, ST_DYNAMIC, ST_SYNTHETIC): New defines.
1087 (elf_symtab_read): Rename DYNAMIC argument to TYPE. Do not access
1088 ELF-private symbol data when processing synthetic symbols. Use
1089 udata.p to get at size of ppc64 synthetic 'dot' symbols.
1090 (elf_symfile_read): Pass TYPE argument to elf_symtab_read.
1092 2007-11-15 Doug Evans <dje@google.com>
1094 * buildsym.h (subfiles): Move ...
1095 * buildsym.c (subfiles): ... to here and make static.
1097 * symmisc.c (maintenance_info_symtabs): Print linetable info.
1099 2007-11-15 Markus Deuling <deuling@de.ibm.com>
1101 * mipsnbsd-tdep.h (SIZEOF_STRUCT_REG, SIZEOF_STRUCT_FPREG): Remove
1103 2007-11-15 Markus Deuling <deuling@de.ibm.com>
1105 * arm-tdep.c (arm_prologue_this_id): Replace LOWEST_PC by its
1106 expression and use get_frame_arch to replace current_gdbarch by frame's
1108 * arm-tdep.h (LOWEST_PC): Remove
1110 2007-11-15 Vladimir Prus <vladimir@codesourcery.com>
1112 Apply const qualifier to some users of bp_location.
1113 * breakpoint.h (struct bpstats): Make
1114 the breakpoint_at field point at const bp_location.
1115 * breakpoint.c (bpstat_alloc): Accept const
1117 (breakpoint_here_p, breakpoint_inserted_here_p)
1118 (software_breakpoint_inserted_here_p)
1119 (breakpoint_thread_match, bpstat_stop_status)
1120 (read_memory_nobpt, bpstat_have_active_hw_watchpoints): Use
1121 const bp_location for iteration.
1122 (print_it_typical, print_bp_stop_message): Use
1123 const bp_location variable.
1125 2007-11-15 Vladimir Prus <vladimir@codesourcery.com>
1127 Make mark_breakpoints_out static.
1128 * breakpoint.h (mark_breakpoints_out): Remove
1130 * breakpoint.c (mark_breakpoints_out): Make static.
1132 2007-11-15 Vladimir Prus <vladimir@codesourcery.com>
1134 Prevent clear_command from directly modifying breakpoint list.
1135 * Makefile.in (breakpoint_h): Update dependency.
1136 * breakpoint.c (clear_command): Do not remove
1137 breakpoints from breakpoint_chain. Collect breakpoints
1138 to delete in a vector.
1139 * breakpoint.h (breakpoint_p): New typedef for pointer to
1140 breakpoint. Register vector of breakpoint_p.
1142 2007-11-15 Vladimir Prus <vladimir@codesourcery.com>
1144 Remove 'run_cleanup'.
1145 * defs.h (do_run_cleanups, make_run_cleanup): Remove
1147 * infcmd.c (run_command_1): Call clear_solib instead
1149 * jv-lang.c (java_rerun_cleanup): Remove, for lack of
1151 * solib.c (solib_cleanup_queued, do_clear_solib): Remove.
1152 (update_solib_lib): Don't setup run cleanup.
1153 (no_shared_libraries): Call clear_solib, not do_clear_solib.
1154 * utils.c (run_cleanup_chain, make_run_cleanup)
1155 (do_run_cleanups): Remove.
1157 2007-11-15 Vladimir Prus <vladimir@codesourcery.com>
1159 Remove CLEAR_SOLIB use.
1160 * corelow.c (core_close): Don't check for CLEAR_SOLIB.
1161 * infcmd.c (attach_command): Likewise.
1163 2007-11-14 Doug Evans <dje@google.com>
1165 * buildsym.c (start_subfile,start_symtab): Doc fixes.
1167 2007-11-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
1169 * tui/tui-data.c (tui_prev_win): Guard against NULL.
1171 2007-11-12 Markus Deuling <deuling@de.ibm.com>
1173 * gdbarch.sh (gdbarch_alloc): Replace current_gdbarch by gdbarch. Remove
1175 (verify_gdbarch, gdbarch_dump): Likewise.
1176 (do_read): Update comment.
1177 (addr_bit, bfd_arch_info, target_desc, long_long_bit, floatformat)
1178 (ptr_bit, name_of_malloc): Replace current_gdbarch by gdbarch.
1179 * gdbarch.{c,h}: Regenerate.
1181 2007-11-12 Markus Deuling <deuling@de.ibm.com>
1183 * xtensa-tdep.c (ARG_1ST): Replace ARGS_FIRST_REG by its expression.
1184 (ARGS_FIRST_REG): Remove.
1185 (areg_numer): New function.
1186 (xtensa_pseudo_register_read, xtensa_frame_prev_register)
1187 (xtensa_extract_return_value, xtensa_store_return_value)
1188 (xtensa_frame_cache): Replace AREG_NUMBER by areg_number.
1189 (AREG_NUMBER): Remove.
1190 (XTENSA_IS_ENTRY, ARG_NOF, ARG_1ST): Add gdbarch as parameter.
1191 (xtensa_frame_cache): Update use of XTENSA_IS_ENTRY.
1192 (xtensa_push_dummy_call): Update use of ARG_NOF.
1193 (extract_call_winsize): Add gdbarch as parameter. Replace
1194 current_gdbarch by gdbarch.
1195 (xtensa_extract_return_value, xtensa_store_return_value): Update call
1196 of extract_call_winsize.
1198 2007-11-10 Joel Brobecker <brobecker@adacore.com>
1200 * NEWS: Add entry for new set/show print frame-args command.
1202 2007-11-09 Kevin Buettner <kevinb@redhat.com>
1204 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Add missing
1205 register number to map. Adjust warning check and error/warning
1206 return value code to match expectations of this function's callers.
1208 2007-11-09 Joel Brobecker <brobecker@adacore.com>
1210 * stack.c (print_this_frame_argument_p): Handle arguments passed
1211 by reference properly.
1213 2007-11-09 Joel Brobecker <brobecker@adacore.com>
1215 * stack.c (print_frame_arguments_choices): New static global.
1216 (print_frame_arguments): Likewise.
1217 (print_this_frame_argument_p): New function.
1218 (print_frame_args): Print the argument value only when appropriate.
1219 (_initialize_task): Add new "set/show print frame-arguments" command.
1221 2007-11-09 Luis Machado <luisgpm@br.ibm.com>
1223 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Move
1224 saved_dabr_value assignment to the correct position.
1226 2007-11-09 Markus Deuling <deuling@de.ibm.com>
1228 * arch-utils.c (generic_convert_register_p): Add gdbarch as parameter.
1229 * arch-utils.h (generic_convert_register_p): Likewise.
1231 2007-11-09 Markus Deuling <deuling@de.ibm.com>
1233 * gdbarch.sh (convert_register_p): Add gdbarch as parameter.
1234 * ia64-tdep.c (ia64_convert_register_p): Likewise.
1235 * i387-tdep.c (i387_convert_register_p): Likewise.
1236 * i387-tdep.h (i387_convert_register_p): Likewise.
1237 * alpha-tdep.c (alpha_convert_register_p): Likewise.
1238 * gdbarch.{c,h}: Regenerate.
1240 * rs6000-tdep.c (rs6000_convert_register_p): Add gdbarch as parameter.
1241 Replace current_gdbarch by gdbarch.
1242 * mips-tdep.c (mips_convert_register_p): Likewise.
1243 * m68k-tdep.c (m68k_convert_register_p): Likewise.
1244 * i386-tdep.c (i386_convert_register_p): Likewise.
1246 2007-11-08 Aleksandar Ristovski <aristovski@qnx.com>
1248 * gdb_string.h: Include <strings.h>.
1250 2007-11-08 Vladimir Prus <vladimir@codesourcery.com>
1252 * breakpoint.c (break_command_1): Remove
1253 pending_bp parameter.
1254 (create_breakpoint): Likewise.
1255 (create_breakpoints): Likewise. Adjust call to
1257 (break_command_1): Likewise. Adjust call to
1259 (do_captured_breakpoint): Adjust call to
1261 (break_command, tbreak_command, hbreak_command)
1262 (stopin_command, stopat_command): Adjust call
1265 2007-11-07 Joseph Myers <joseph@codesourcery.com>
1266 Daniel Jacobowitz <dan@codesourcery.com>
1268 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Right-align
1269 struct values smaller than one doubleword; left-align those
1270 larger. Pass structs containing a single floating-point value in
1273 2007-11-07 Joseph Myers <joseph@codesourcery.com>
1274 Daniel Jacobowitz <dan@codesourcery.com>
1276 * gdbtypes.c (floatformats_ibm_long_double): New.
1277 * gdbtypes.h (floatformats_ibm_long_double): Declare.
1278 * ia64-tdep.c (floatformat_ia64_ext): Update for addition of
1280 * mips-tdep.c (n32n64_floatformat_always_valid,
1281 floatformat_n32n64_long_double_big, floatformats_n32n64_long):
1283 (mips_gdbarch_init): Use floatformats_ibm_long_double instead of
1284 floatformats_n32n64_long.
1285 * ppc-linux-tdep.c (ppc_linux_init_abi): Use 128-bit IBM long
1287 * doublest.c (convert_floatformat_to_doublest,
1288 convert_doublest_to_floatformat): Handle split floating-point
1290 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Handle IBM long
1292 (ppc64_sysv_abi_push_dummy_call): Likewise.
1293 (do_ppc_sysv_return_value): Handle IBM long double return.
1295 2007-11-07 Vladimir Prus <vladimir@codesourcery.com>
1297 Fix crash when a variable object being deleted
1298 has any of its children deleted previously.
1300 * varobj.c (delete_variable_1): Don't recurse
1301 into deleted children.
1303 2007-11-07 Markus Deuling <deuling@de.ibm.com>
1305 * gdbarch.sh (legacy_virtual_frame_pointer): Add gdbarch parameter.
1306 * gdbarch.{c,h}: Regenerate.
1307 * arch-utils.c (legacy_virtual_frame_pointer): Add gdbarch parameter.
1308 Replace current_gdbarch by gdbarch.
1309 * m32c-tdep.c (m32c_virtual_frame_pointer): Likewise.
1310 * mips-tdep.c (mips_virtual_frame_pointer): Likewise.
1311 * spu-tdep.c (spu_virtual_frame_pointer): Likewise.
1313 2007-11-07 Markus Deuling <deuling@de.ibm.com>
1315 * shnbsd-tdep.c (shnbsd_supply_gregset, shnbsd_collect_gregset): Use
1316 get_regcache_arch to get at the current architecture by regcache.
1317 * xstormy16-tdep.c (xstormy16_frame_prev_register): Use get_frame_arch
1318 to get at the current architecture by frame_info.
1319 * fbsd-nat.c (fbsd_make_corefile_notes): Use get_regcache_arch to get
1320 at the current architecture by regcache.
1321 * gnu-v3-abi.c (gnuv3_skip_trampoline): Use get_frame_arch to get at
1322 the current architecture by frame_info.
1323 (build_gdb_vtable_type): Replace current_gdbarch by gdbarch.
1324 * aix-thread.c (special_register_p): Add gdbarch as parameter.
1325 (fetch_regs_kernel_thread, store_regs_kernel_thread): Add gdbarch to
1326 caller of special_register_p.
1328 2007-11-07 Markus Deuling <deuling@de.ibm.com>
1330 * infcall.c (call_function_by_hand): Use get_frame_arch to get at the
1331 current architecture by frame_info.
1333 2007-11-07 Markus Deuling <deuling@de.ibm.com>
1335 * xtensa-tdep.h (SIZEOF_GREGSET, XTENSA_ELF_NGREG) Remove.
1337 2007-11-07 Markus Deuling <deuling@de.ibm.com>
1339 * s390-nat.c (supply_gregset, fill_gregset): Use get_regcache_arch to
1340 get at the current architecture by regcache.
1341 (SUBOFF): Add gdbarch to macro definition.
1343 2007-11-07 Markus Deuling <deuling@de.ibm.com>
1345 * gdbarch.sh (breakpoint_from_pc): Add gdbarch parameter.
1346 * gdbarch.{c,h}: Regenerate.
1348 * xtensa-tdep.c (xtensa_breakpoint_from_pc): Add gdbarch parameter.
1349 Replace current_gdbarch by gdbarch.
1350 * sh-tdep.c (sh_breakpoint_from_pc): Likewise.
1351 * sh64-tdep.c (sh64_breakpoint_from_pc): Likewise.
1352 * score-tdep.c (score_breakpoint_from_pc): Likewise.
1353 * mips-tdep.c (mips_breakpoint_from_pc): Likewise.
1354 * m32r-tdep.c (m32r_breakpoint_from_pc): Likewise.
1355 * iq2000-tdep.c (iq2000_breakpoint_from_pc): Likewise.
1356 * arm-tdep.c (arm_breakpoint_from_pc): Likewise.
1358 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Add gdbarch
1360 * vax-tdep.c (vax_breakpoint_from_pc): Likewise.
1361 * v850-tdep.c (v850_breakpoint_from_pc): Likewise.
1362 * spu-tdep.c (spu_breakpoint_from_pc): Likewise.
1363 * sparc-tdep.c (sparc_breakpoint_from_pc): Likewise.
1364 * s390-tdep.c (s390_breakpoint_from_pc): Likewise.
1365 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Likewise.
1366 * mt-tdep.c (mt_breakpoint_from_pc): Likewise.
1367 * mep-tdep.c (mep_breakpoint_from_pc): Likewise.
1368 * m88k-tdep.c (m88k_breakpoint_from_pc): Likewise.
1369 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Likewise.
1370 * m32c-tdep.c (m32c_breakpoint_from_pc): Likewise.
1371 * ia64-tdep.c (ia64_breakpoint_from_pc): Likewise.
1372 * i386-tdep.c (i386_breakpoint_from_pc): Likewise.
1373 * hppa-tdep.c (hppa_breakpoint_from_pc): Likewise.
1374 * h8300-tdep.c (h8300_breakpoint_from_pc): Likewise.
1375 * frv-tdep.c (frv_breakpoint_from_pc): Likewise.
1376 * cris-tdep.c (cris_breakpoint_from_pc): Likewise.
1377 * avr-tdep.c (avr_breakpoint_from_pc): Likewise.
1378 * alpha-tdep.c (alpha_breakpoint_from_pc): Likewise.
1379 * m68k-tdep.c (m68k_local_breakpoint_from_pc): Likewise.
1381 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Add gdbarch parameter.
1382 Replace current_gdbarch by gdbarch.
1383 (rs6000_software_single_step): Use get_frame_arch to get at the
1384 current architecture by frame_info. Add gdbarch to
1385 rs6000_breakpoint_from_pc call.
1387 2007-11-07 Markus Deuling <deuling@de.ibm.com>
1389 * frv-tdep.c (frv_register_name, frv_check_watch_resources): Replace
1390 macro CURRENT_VARIANT by its expression.
1391 (CURRENT_VARIANT): Remove.
1392 (frv_check_watch_resources): Add gdbarch parameter.
1394 2007-11-07 Markus Deuling <deuling@de.ibm.com>
1396 * MAINTAINERS (Write After Approval): Add self.
1398 2007-11-05 Ulrich Weigand <uweigand@de.ibm.com>
1400 * features/rs6000/power-core.xml: Use uint32 as register type.
1401 * features/rs6000/power64-core.xml: Use uint64/uint32 as register type.
1402 * features/rs6000/powerpc-32.c: Regenerate.
1403 * features/rs6000/powerpc-403.c: Regenerate.
1404 * features/rs6000/powerpc-403gc.c: Regenerate.
1405 * features/rs6000/powerpc-505.c: Regenerate.
1406 * features/rs6000/powerpc-602.c: Regenerate.
1407 * features/rs6000/powerpc-603.c: Regenerate.
1408 * features/rs6000/powerpc-604.c: Regenerate.
1409 * features/rs6000/powerpc-64.c: Regenerate.
1410 * features/rs6000/powerpc-7400.c: Regenerate.
1411 * features/rs6000/powerpc-750.c: Regenerate.
1412 * features/rs6000/powerpc-860.c: Regenerate.
1413 * features/rs6000/powerpc-e500.c: Regenerate.
1415 2007-11-05 Joel Brobecker <brobecker@adacore.com>
1417 * breakpoint.c (set_raw_breakpoint_without_location): Make static.
1419 2007-11-05 Joel Brobecker <brobecker@adacore.com>
1421 * breakpoint.h (create_solib_load_event_breakpoint)
1422 (create_solib_unload_event_breakpoint)
1423 (create_fork_event_catchpoint, create_vfork_event_catchpoint)
1424 (create_exec_event_catchpoint): Delete declaration.
1425 * breakpoint.c (create_solib_load_event_breakpoint)
1426 (solib_load_unload_1, create_solib_unload_event_breakpoint): Delete.
1427 (create_fork_event_catchpoint, create_vfork_event_catchpoint)
1428 (create_exec_event_catchpoint): Make static.
1430 2007-11-05 Joel Brobecker <brobecker@adacore.com>
1432 * breakpoint.h (set_breakpoint_sal): Remove declaration.
1433 * breakpoint.c (set_breakpoint_sal): Delete.
1435 2007-11-05 Joel Brobecker <brobecker@adacore.com>
1437 * buildsym.c (finish_block): Remove "#if 1"/"#endif" brackets.
1438 (make_blockvector): Likewise. Remove FIXME comment.
1440 2007-11-05 Luis Machado <luisgpm@br.ibm.com>
1442 * printcmd.c: (printf_command): Add support for new DFP
1443 modifiers %H, %D and %DD.
1444 * configure.ac: Add check for DECFLOAT printf support.
1445 * configure: Regenerated.
1447 2007-11-02 Ulrich Weigand <uweigand@de.ibm.com>
1449 * gdbtypes.h (struct cplus_struct_type): Remove runtime_ptr member.
1450 (TYPE_RUNTIME_PTR, TYPE_VTABLE, TYPE_HAS_VTABLE,
1451 TYPE_PRIMARY_BASE, TYPE_VIRTUAL_BASE_LIST): Remove macros.
1452 (HP_ACC_VFUNC_START, HP_ACC_VBASE_START, HP_ACC_TYPEINFO_OFFSET,
1453 HP_ACC_TOP_OFFSET_OFFSET): Likewise.
1454 (has_vtable, primary_base_class, virtual_base_list_length,
1455 virtual_base_list_length_skip_primaries, virtual_base_index,
1456 virtual_base_index_skip_primaries, class_index_in_primary_list,
1457 count_virtual_fns): Remove prototypes.
1458 * gdbtypes.c (has_vtable, primary_base_class, current_vbase_list,
1459 virtual_base_list_aux, virtual_base_list, virtual_base_list_length,
1460 virtual_base_list_length_skip_primaries, virtual_base_index,
1461 virtual_base_index_skip_primaries, class_index_in_primary_list,
1462 count_virtual_fns): Remove.
1464 * cp-valprint.c (cp_print_hpacc_virtual_table_entries): Remove.
1465 (hpacc_vtbl_ptr_name, hpacc_vtbl_ptr_type_name): Remove.
1466 (cp_print_value_fields): Remove support for HP aCC vtables.
1467 (cp_print_value): Likewise.
1468 * c-typeprint.c (c_type_print_base): Likewise.
1470 * value.h (find_rt_vbase_offset): Remove prototype.
1471 * valops.c (find_rt_vbase_offset): Remove.
1472 (search_struct_method): Remove support for HP aCC vtables.
1473 (find_method_list): Likewise.
1475 2007-11-02 Ulrich Weigand <uweigand@de.ibm.com>
1477 * language.h (struct language_defn): Remove la_builtin_type_vector
1478 and string_char_type members.
1479 * language.c (language_string_char_type): No longer consult
1480 la->string_char_type.
1481 (language_lookup_primitive_type_by_name): No longer consult
1482 current_language->la_builtin_type_vector.
1484 * language.c (unknown_language_defn, auto_language_defn,
1485 local_language_defn): Adapt initializer.
1486 * ada-lang.c (ada_language_defn): Likewise.
1487 * c-lang.c (c_language_defn, cplus_language_defn, asm_language_defn,
1488 minimal_language_defn): Likewise.
1489 * f-lang.c (f_language_defn): Likewise.
1490 * jv-lang.c (java_language_defn): Likewise.
1491 * m2-lang.c (m2_language_defn): Likewise.
1492 * objc-lang.c (objc_language_defn): Likewise.
1493 * p-lang.c (pascal_language_defn): Likewise.
1494 * scm-lang.c (scm_language_defn): Likewise.
1496 2007-11-02 Markus Deuling <deuling@de.ibm.com>
1498 * frame.c (frame_id_inner): Add gdbarch parameter. Replace
1499 current_gdbarch by gdbarch.
1500 (frame_find_by_id, get_prev_frame_1): Use get_frame_arch to get at the
1501 current architecture by frame_info.
1502 * frame.h (frame_id_inner): Add gdbarch parameter.
1503 * stack.c (return_command): Use get_frame_arch to get at the current
1504 architecture by frame_info. Update call of frame_id_inner.
1505 * infrun.c (handle_inferior_event): Likewise.
1506 * dummy-frame.c (dummy_frame_push): Use get_regcache_arch to get at the
1507 current architecture by regcache. Update call of frame_id_inner.
1509 2007-11-02 Markus Deuling <deuling@de.ibm.com>
1511 * gdbarch.sh (register_name): Add gdbarch parameter.
1512 * gdbarch.{c,h}: Regenerate.
1514 * target-descriptions.c (tdesc_register_name): Add gdbarch parameter.
1515 (tdesc_register_name): Replace current_gdbarch by gdbarch.
1516 * target-descriptions.h (tdesc_register_name): Add gdbarch parameter.
1518 * xstormy16-tdep.c (xstormy16_register_name): Add gdbarch parameter.
1519 * vax-tdep.c (vax_register_name): Add gdbarch parameter.
1520 * spu-tdep.c (spu_register_name): Add gdbarch parameter.
1521 * s390-tdep.c (s390_register_name): Add gdbarch parameter.
1522 * mt-tdep.c (mt_register_name): Add gdbarch parameter.
1523 (mt_registers_info): Replace current_gdbarch by gdbarch.
1524 (mt_register_reggroup_p): Add gdbarch to mt_register_name call.
1525 * mips-tdep.c (mips_register_name): Add gdbarch parameter. Replace
1526 current_gdbarch by gdbarch.
1527 (mips_register_name): Add gdbarch to tdesc_register_name call.
1528 * mep-tdep.c (mep_register_name): Add gdbarch parameter. Replace
1529 current_gdbarch by gdbarch.
1530 (mep_register_reggroup_p): Add gdbarch to mep_register_name call.
1531 * m32c-tdep.c (m32c_register_name): Add gdbarch parameter. Replace
1532 current_gdbarch by gdbarch.
1533 * m88k-tdep.c (m88k_register_name): Add gdbarch parameter.
1534 * m68k-tdep.c (m68k_register_name): Add gdbarch parameter.
1535 * m32r-tdep.c (m32r_register_name): Add gdbarch parameter.
1536 (m32r_frame_unwind_cache): Use get_frame_arch to get at the current
1537 architecture by frame_info.
1538 * iq2000-tdep.c (iq2000_register_name): Add gdbarch parameter.
1539 * ia64-tdep.c (ia64_register_name): Add gdbarch parameter.
1540 * hppa-tdep.c (hppa32_register_name, hppa64_register_name): Add gdbarch
1542 * h8300-tdep.c (h8300_register_name, h8300s_register_name)
1543 (h8300sx_register_name): Add gdbarch parameter.
1544 * cris-tdep.c (cris_register_name, crisv32_register_name): Add
1545 gdbarch parameter. Replace current_gdbarch by gdbarch.
1546 (cris_gdbarch_init): Replace current_gdbarch by gdbarch (comment).
1547 * avr-tdep.c (avr_register_name): Add gdbarch parameter.
1548 * arm-tdep.c (arm_register_name): Add gdbarch paramete
1549 * amd64-tdep.c (amd64_register_name): Add gdbarch parameter. Update
1551 * amd64-tdep.h (amd64_register_name): Add gdbarch parameter.
1552 * amd64-linux-tdep.c (amd64_linux_register_name): Add gdbarch parameter.
1553 * alpha-tdep.c (alpha_register_name): Add gdbarch parameter.
1554 (alpha_cannot_fetch_register, alpha_cannot_store_register): Update call
1555 of alpha_register_name.
1556 * frv-tdep.c (frv_register_name): Add gdbarch parameter.
1557 * i386-tdep.c (i386_register_name): Add gdbarch parameter. Replace
1558 current_gdbarch by gdbarch.
1559 (i386_register_type): Replace ?current_gdbarch by gdbarch.
1560 * i386-tdep.h (i386_register_name): Add gdbarch parameter.
1561 * i386-linux-tdep.c (i386_linux_register_name): Add gdbarch parameter.
1563 * m68hc11-tdep.c (m68hc11_register_name): Add gdbarch parameter.
1564 (m68hc11_register_reggroup_p): Add gdbarch to call of
1565 m68hc11_register_name.
1566 * mn10300-tdep.c (mn10300_generic_register_name, am33_register_name)
1567 (am33_2_register_name): Add gdbarch parameter.
1568 (mn10300_frame_unwind_cache): Use get_frame_arch to get at the current
1569 architecture by frame_info.
1570 (mn10300_dump_tdep): Replace current_gdbarch by gdbarch.
1571 * rs6000-tdep.c (rs6000_register_name): Add gdbarch parameter. Replace
1572 current_gdbarch by gdbarch.
1573 * score-tdep.c (score_register_name): Add gdbarch parameter.
1574 (score_return_value, score_push_dummy_call): Replace current_gdbarch
1576 * sh64-tdep.c (sh64_register_name): Add gdbarch parameter.
1577 (sh64_compact_reg_base_num, sh64_register_convert_to_virtual)
1578 (sh64_register_convert_to_raw, sh64_fv_reg_base_num)
1579 (sh64_dr_reg_base_num, sh64_fpp_reg_base_num): Add gdbarch parameter
1580 and update caller. Replace current_gdbarch by gdbarch.
1581 (sh64_extract_return_value, sh64_store_return_value): Use
1582 get_regcache_arch to get at the current architecture by regcache.
1583 * sh-tdep.c (sh_sh_register_name, sh_sh3_register_name)
1584 (sh_sh3e_register_name, sh_sh2e_register_name, sh_sh2a_register_name)
1585 (sh_sh2a_nofpu_register_name, sh_sh_dsp_register_name)
1586 (sh_sh3_dsp_register_name, sh_sh4_register_name)
1587 (sh_sh4_nofpu_register_name, sh_sh4al_dsp_register_name): Add gdbarch
1589 (fv_reg_base_num, dr_reg_base_num, sh_justify_value_in_reg)
1590 (sh_next_flt_argreg): Add gdbarch parameter and update caller. Replace
1591 current_gdbarch by gdbarch.
1592 (sh_extract_return_value_fpu, sh_store_return_value_fpu): Use
1593 get_regcache_arch to get at the current architecture by regcache.
1594 * sparc-tdep.c (sparc32_register_name): Add gdbarch parameter.
1595 * sparc64-tdep.c (sparc64_register_name): Add gdbarch parameter.
1596 * v850-tdep.c (v850_register_name, v850e_register_name): Add gdbarch
1598 (v850_unwind_sp, v850_unwind_pc): Replace current_gdbarch by gdbarch.
1599 * xtensa-tdep.c (xtensa_register_name): Add gdbarch parameter. Replace
1600 current_gdbarch by gdbarch.
1601 (xtensa_pseudo_register_read, xtensa_pseudo_register_write)
1602 (xtensa_frame_prev_register): Add gdbarch parameter to
1603 xtensa_register_name call.
1605 2007-10-31 Ulrich Weigand <uweigand@de.ibm.com>
1607 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Fall back to
1608 find_solib_trampoline_target if PC is not in .plt section.
1610 2007-10-31 Ulrich Weigand <uweigand@de.ibm.com>
1612 * elfread.c (elf_symtab_read): When constructing a solib trampoline
1613 minimal symbol from an undefined dynamic symbol, use proper section.
1615 2007-10-31 Markus Deuling <deuling@de.ibm.com>
1617 * arm-linux-nat.c (fetch_register, fetch_regs): Use get_regcache_arch
1618 to get at the current architecture by regcache.
1620 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1622 * libunwind-frame.c (libunwind_frame_sniffer)
1623 libunwind_frame_prev_register, libunwind_sigtramp_frame_sniffer)
1624 (libunwind_frame_cache): Use get_frame_arch to get at the current
1625 architecture by frame_info.
1626 (libunwind_get_reg_special): Replace current_gdbarch by gdbarch.
1628 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1630 * iq2000-tdep.c (iq2000_frame_prev_register): Use get_frame_arch to get
1631 at the current architecture by frame_info.
1633 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1635 * inf-child.c (inf_child_fetch_inferior_registers): Use
1636 get_regcache_arch to get at the current architecture by regcache.
1638 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1640 * inf-ptrace.c (inf_ptrace_fetch_registers)
1641 (inf_ptrace_fetch_register, inf_ptrace_store_register)
1642 (inf_ptrace_store_registers): Use get_regcache_arch to get at the
1643 current architecture by regcache.
1645 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1647 * hpux-thread.c (hpux_thread_fetch_registers)
1648 (hpux_thread_store_registers): Use get_regcache_arch to get at the
1649 current architecture by regcache.
1651 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1653 * hppa-tdep.c (hppa_frame_cache): Use get_frame_arch to get at the
1654 current architecture by frame_info.
1656 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1658 * go32-nat.c (fetch_register, go32_fetch_registers, store_register)
1659 (go32_store_registers): Use get_regcache_arch to get at the current
1660 architecture by regcache.
1662 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1664 * gdbtypes.c (gdbtypes_post_init): Replace current_gdbarch by gdbarch.
1666 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1668 * frv-linux-tdep.c (frv_linux_sigtramp_frame_cache): Use get_frame_arch
1669 to get at the current architecture by frame_info.
1671 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1673 * f-lang.c (build_fortran_types): Replace current_gdbarch by gdbarch.
1675 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1677 * core-regset.c (fetch_core_registers): Use get_regcache_arch to get at
1678 the current architecture by regcache.
1680 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1682 * corelow.c (get_core_registers): Use get_regcache_arch to get at the
1683 current architecture by regcache.
1685 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1687 * bsd-uthread.c (bsd_uthread_fetch_registers)
1688 (bsd_uthread_store_registers): Use get_regcache_arch to get at the
1689 current architecture by regcache.
1691 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1693 * avr-tdep.c (avr_frame_unwind_cache, avr_frame_prev_register): Use
1694 get_frame_arch to get at the current architecture by frame_info.
1696 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1698 * arm-tdep.c (arm_get_next_pc): Replace current_gdbarch by gdbarch.
1700 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1702 * armnbsd-nat.c (arm_supply_gregset, fetch_register, store_register)
1703 (store_regs): Use get_regcache_arch to get at the current architecture
1706 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1708 * arm-linux-tdep.c (arm_linux_supply_gregset): Use get_regcache_arch
1709 to get at the current architecture by regcache.
1711 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1713 * alphabsd-nat.c (alphabsd_fetch_inferior_registers)
1714 (alphabsd_store_inferior_registers): Use get_regcache_arch to get at
1715 the current architecture by regcache.
1717 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1719 * ada-lang.c (ada_language_arch_info): Replace current_gdbarch by
1722 2007-10-30 Daniel Jacobowitz <dan@codesourcery.com>
1724 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Check the selected
1725 soft float and vector ABIs. Support the generic vector ABI for
1727 (do_ppc_sysv_return_value): Likewise. Correct argument types and
1729 (ppc64_sysv_abi_push_dummy_call): Assert that floating point is
1731 * ppc-tdep.h (enum powerpc_vector_abi): New.
1732 (struct gdbarch_tdep): Add soft_float and vector_abi.
1733 * rs6000-tdep.c (setpowerpccmdlist, showpowerpccmdlist)
1734 (powerpc_soft_float_global, powerpc_vector_strings)
1735 (powerpc_vector_abi_global, powerpc_vector_abi_string): New.
1736 (rs6000_gdbarch_init): Check for soft-float and vector ABI markings.
1737 (set_powerpc_command, show_powerpc_command, powerpc_set_soft_float)
1738 (powerpc_set_vector_abi): New.
1739 (_initialize_rs6000_tdep): Register "set powerpc" and "show powerpc"
1741 * Makefile.in (elf_ppc_h): New.
1742 (rs6000-tdep.o): Update.
1744 2007-10-29 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
1746 * ppc-linux-tdep.c (ppc32_linux_reg_offsets): Corrected
1747 swapped offsets and VRSAVE offset.
1748 (ppc64_linux_reg_offsets): Corrected swapped offsets.
1749 (ppc32_linux_vrregset): Added.
1750 (ppc_linux_regset_from_core_section): Added support for
1751 .reg-ppc-vmx section.
1752 * ppc-tdep.h (ppc_altivec_support_p): Declare.
1753 (ppc_supply_vrregset): Declare.
1754 (ppc_collect_vrregset): Declare.
1755 * rs6000-tdep.c (ppc_altivec_support_p): Added.
1756 (ppc_supply_vrregset): Added.
1757 (ppc_collect_vrregset): Added.
1758 * corelow.c (get_core_registers): Added support for
1759 .reg-ppc-vmx section.
1761 2007-10-29 Joel Brobecker <brobecker@adacore.com>
1765 2007-10-26 Jim Blandy <jimb@codesourcery.com>
1767 * ax-gdb.h (expr_to_address_and_size): Delete declaration for
1770 * tracepoint.c (tracepoint_operation): Report the deletion event
1771 after we have unlinked the tracepoint from the list, and use the
1772 proper tracepoint number.
1774 * ax-gdb.c (expr_to_agent): Delete unused function.
1775 (expr_to_address_and_size): Delete #if 0'd function.
1776 * ax-gdb.h (expr_to_agent): Delete declaration.
1778 * ax-gdb.c (gen_cast): Remove redundant assignment to
1779 value->type. Doc fix.
1781 * ax-general.c (gen_traced_pop, gen_int_literal)
1782 (gen_usual_arithmetic): Check for typedefs.
1784 2007-10-26 Joel Brobecker <brobecker@adacore.com>
1786 * parse.c (prefixify_expression): Minor reformatting.
1788 2007-10-25 Daniel Jacobowitz <dan@codesourcery.com>
1790 * version.in: Use dot instead of dash.
1792 2007-10-25 Daniel Jacobowitz <dan@codesourcery.com>
1794 * linux-thread-db.c (check_for_thread_db): Only print if info_verbose.
1796 2007-10-25 Pedro Alves <pedro_alves@portugalmail.pt>
1798 * memory-map.c (parse_memory_map): Don't use an empty struct
1801 2007-10-25 Pedro Alves <pedro_alves@portugalmail.pt>
1803 * signals/signals.c (signals): Update pointer to enum
1804 target_signal declaration.
1806 2007-10-25 Wu Zhou <woodzltc@cn.ibm.com>
1807 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
1808 Jim Blandy <jimb@codesourcery.com>
1810 * dwarf2read.c (read_partial_die): check the value
1811 of DW_AT_calling_convention in Fortran programs.
1813 2007-10-25 Wu Zhou <woodzltc@cn.ibm.com>
1814 Thiago Jung Bauermann <bauerman@br.ibm.com>
1816 * c-exp.y (YYSTYPE): Add typed_val_decfloat for decimal
1817 floating point in YYSTYPE union.
1818 (DECFLOAT) Add token and expression element handling code.
1819 (parse_number): Parse DFP constants, which end with suffix 'df',
1820 'dd' or 'dl'. Return DECFLOAT.
1821 * eval.c (evaluate_subexp_standard): Call value_from_decfloat to
1823 * expression.h (enum exp_opcode): Add an opcode (OP_DECFLOAT)
1825 (union exp_element): Add decfloatconst to represent DFP
1826 elements, which is 16 bytes by default.
1827 * parse.c (write_exp_elt_decfloatcst): New function to write a
1828 decimal float const into the expression.
1829 (operator_length_standard): Set operator length for OP_DECFLOAT
1831 * parser-defs.h (write_exp_elt_decfloatcst): Prototype.
1832 * valarith.c (value_neg): Add code to handle the negation
1833 operation of DFP values.
1834 * value.c (value_from_decfloat): New function to get the value
1835 from a decimal floating point.
1836 * value.h (value_from_decfloat): Prototype.
1838 2007-10-25 Wu Zhou <woodzltc@cn.ibm.com>
1839 Thiago Jung Bauermann <bauerman@br.ibm.com>
1841 * c-lang.c (c_create_fundamental_type): Create fundamental
1843 * c-typeprint.c (c_type_print_varspec_prefix): Add
1844 TYPE_CODE_DECFLOAT to no prefix needed case.
1845 (c_type_print_varspec_suffix): Add TYPE_CODE_DECFLOAT to no
1847 * c-valprint.c (c_val_print): Call print_decimal_floating to
1849 * dwarf2read.c (read_base_type): Read DW_ATE_decimal_float
1850 attribute code and return TYPE_CODE_DECFLOAT.
1851 (dwarf_base_type): Set dwarf2_fundamental_type for DFP values.
1852 * gdbtypes.c (gdbtypes_post_init): Initialize builtin_decfloat,
1853 builtin_decdouble and builtin_declong.
1854 * gdbtypes.h (enum type_code): Add TYPE_CODE_DECFLOAT as a
1856 (FT_DECFLOAT, FT_DBL_PREC_DECFLOAT, FT_EXT_PREC_DECFLOAT): New
1857 types, for decimal floating point.
1858 (FT_NUM_MEMBERS): Increment, new types added.
1859 (struct builtin_type): Add builtin_decfloat, builtin_decdouble
1860 and builtin_declong.
1861 * valprint.c (print_decimal_floating): New function to print DFP
1863 * value.h (print_decimal_floating): Prototype.
1865 2007-10-25 Wu Zhou <woodzltc@cn.ibm.com>
1866 Thiago Jung Bauermann <bauerman@br.ibm.com>
1868 * Makefile.in (LIBDECNUMBER_DIR, LIBDECNUMBER, LIBDECNUMBER_SRC
1869 LIBDECNUMBER_CFLAGS): New macros for libdecnumber.
1870 (INTERNAL_CFLAGS_BASE): Add LIBDECNUMBER_CFLAGS in.
1871 (INSTALLED_LIBS): Add -ldecnumber in.
1872 (CLIBS): Add LIBDECNUMBER in.
1873 (decimal128_h, decimal64_h, decimal32_h): New macros for decimal
1875 (dfp_h): New macros for decimal floating point.
1876 (dfp.o): New target.
1877 (COMMON_OBS): Add dfp.o in.
1878 (c-exp.o): Add dfp_h as dependency.
1879 (valprint.o): Add dfp_h as dependency.
1880 (value.o): Add dfp_h as dependency.
1881 * dfp.h: New header file for decimal floating point support in
1883 * dfp.c: New source file for decimal floating point support in
1884 GDB. Implement decimal_from_string and decimal_to_string based
1885 on libdecnumber API.
1886 * configure.ac: Add AC_C_BIGENDIAN test.
1887 * config.in, configure: Regenerate.
1889 2007-10-25 David Ung <davidu@mips.com>
1890 Maciej W. Rozycki <macro@mips.com>
1893 * infcmd.c (registers_info): Check for a user register before
1894 calling target's gdbarch_print_registers_info(). If found to be
1895 so, extract the implicit value of user register and call
1896 print_scalar_formatted().
1897 * Makefile.in: (infcmd.o): Add $(user_regs_h).
1899 2007-10-25 Joel Brobecker <brobecker@adacore.com>
1901 * NEWS: Document status of hppa64-hpux support.
1903 2007-10-24 Ulrich Weigand <uweigand@de.ibm.com>
1905 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets): Call
1906 set_solib_ops to install SVR4 operations.
1907 (_initialize_svr4_solib): Do not set current_target_so_ops.
1909 * config/i386/i386gnu.mh (NATDEPFILES): Move solib.o, solib-svr4.o ...
1910 * config/i386/i386gnu.mt (TDEPFILES): ... to here.
1912 2007-10-24 Ulrich Weigand <uweigand@de.ibm.com>
1914 * solib-svr4.c (legacy_svr4_fetch_link_map_offsets_hook): Remove.
1915 (solib_svr4_init): Initialize fetch_link_map_offsets to NULL.
1916 * solib-svr4.h (legacy_svr4_fetch_link_map_offsets_hook): Remove.
1917 * solib-legacy.c: Remove file.
1919 * config/alpha/alpha-linux.mt (TDEPFILES): Remove solib-legacy.o.
1920 * config/arm/linux.mt (TDEPFILES): Likewise.
1921 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
1922 * config/ia64/linux.mt (TDEPFILES): Likewise.
1923 * config/m32r/linux.mt (TDEPFILES): Likewise.
1924 * config/powerpc/linux.mt (TDEPFILES): Likewise.
1925 * config/s390/s390.mt (TDEPFILES): Likewise.
1927 * alpha-linux-tdep.c (alpha_linux_init_abi): Call
1928 set_solib_svr4_fetch_link_map_offsets.
1929 * i386gnu-tdep.c (i386gnu_init_abi): Likewise.
1930 * ia64-linux-tdep.c (ia64_linux_init_abi): Likewise.
1932 * i386gnu-tdep.c: Include "solib-svr4.h".
1933 * Makefile.in: Update dependencies.
1935 2007-10-24 Ulrich Weigand <uweigand@de.ibm.com>
1937 * i386-nto-tdep.c: Include "solib.h".
1938 (i386nto_init_abi): Use set_solib_ops instead of overwriting
1939 current_target_so_ops members.
1940 * solist.h (TARGET_SO_RELOCATE_SECTION_ADDRESSES): Remove.
1941 (TARGET_SO_FIND_AND_OPEN_SOLIB): Remove.
1942 (TARGET_SO_IN_DYNSYM_RESOLVE_CODE): Remove.
1943 * Makefile.in: Update dependencies.
1945 2007-10-24 Ulrich Weigand <uweigand@de.ibm.com>
1947 * arm-wince-tdep.c: Include "solib.h" and "solib-target.h".
1948 (arm_wince_init_abi): Call set_solib_ops.
1949 * i386-cygwin-tdep.c: Include "solib.h" and "solib-target.h".
1950 (i386_cygwin_init_abi): Call set_solib_ops.
1951 * solib-target.c: Include "solib-target.h".
1952 (solib_target_so_ops): Make global.
1953 (_initialize_solib_target): Do not set current_target_so_ops.
1954 * solib-target.h: New file.
1955 * Makefile.in: Update dependencies.
1957 2007-10-24 Ulrich Weigand <uweigand@de.ibm.com>
1959 * mips-irix-tdep.c: Include "gdb_string.h", "solib.h", "solib-irix.h".
1960 (mips_irix_init_abi): Call set_solib_ops.
1961 * solib-irix.c: Include "solib.h" and "solib-irix.h".
1962 (irix_so_ops): Make global.
1963 (_initialize_irix_solib): Do not set current_target_so_ops.
1964 * solib-irix.h: New file.
1965 * Makefile.in: Update dependencies.
1967 2007-10-24 Ulrich Weigand <uweigand@de.ibm.com>
1969 * configure.tgt: Remove hppa*64*-*-hpux11* special case.
1970 * config/pa/hppa64.mt: Delete file.
1971 * config/pa/hppahpux.mt (MT_CFLAGS): Remove.
1972 (TDEPFILES): Move somread.o to ...
1973 * config/pa/hpux.mh (NATDEPFILES): ... here.
1975 * configure.ac: Add check for elf_hp.h header.
1976 Search libdl and libxpdl for dlgetmodinfo.
1977 * config.in, configure: Regenerate.
1978 * solib-pa64.c: Conditionalize compilation on #ifdef HAVE_ELF_HP_H
1979 instead of #ifndef PA_SOM_ONLY. Include "solib.h".
1980 (pa64_solib_select): Take gdbarch instead of tdep argument. Call
1981 set_solib_ops instead of modifying current_target_so_ops.
1982 * solib-pa64.h (pa64_solib_select): Update prototype.
1983 * solib-som.c: Remove include of "som.h". Include "solib.h".
1984 (som_solib_select): Take gdbarch instead of tdep argument. Call
1985 set_solib_ops instead of modifying current_target_so_ops.
1986 * solib-som.h (som_solib_select): Update prototype.
1987 * hppa-hpux-tdep.c (hppa_hpux_som_init_abi): Pass gdbarch instead
1988 of tdep to som_solib_select call.
1989 (hppa_hpux_elf_init_abi): Pass gdbarch instead of tdep to
1990 pa64_solib_select call.
1991 * Makefile.in: Update dependencies.
1993 2007-10-24 Ulrich Weigand <uweigand@de.ibm.com>
1995 * frv-tdep.c: Include "solib.h".
1996 (frv_gdbarch_init): Call set_solib_ops.
1997 * frv-tdep.h (struct target_so_ops): Add forward reference.
1998 (frv_so_ops): Add extern declaration.
1999 * solib-frv.c (frv_so_ops): Make global.
2000 (_initialize_frv_solib): Do not set current_target_so_ops.
2001 * Makefile.in: Update dependencies.
2003 2007-10-24 Ulrich Weigand <uweigand@de.ibm.com>
2005 * solib.c (solib_global_lookup): Use solib_ops instead of global
2006 current_target_so_ops.
2008 2007-10-24 Ulrich Weigand <uweigand@de.ibm.com>
2010 * config/frv/frv.mt (DEPRECATED_TM_FILE): Remove.
2011 * config/frv-tm-frv.h: Delete file.
2013 2007-10-24 Daniel Jacobowitz <dan@codesourcery.com>
2015 * NEWS: Mention gdbserver support for non-libthread_db operation.
2017 2007-10-24 Daniel Jacobowitz <dan@codesourcery.com>
2019 * amd64-tdep.c (amd64_convert_register_p): Delete.
2020 (amd64_init_abi): Use i387_convert_register_p.
2021 * alpha-tdep.c (alpha_convert_register_p): Return zero for
2023 (alpha_register_to_value, alpha_value_to_register): Do not handle
2025 * i386-tdep.c (i386_convert_register_p): Use i387_convert_register_p.
2026 * i387-tdep.c (i387_convert_register_p): New.
2027 (i387_register_to_value, i387_value_to_register): Update comments.
2028 * i387-tdep.h (i387_convert_register_p): Declare.
2029 * ia64-tdep.c (ia64_convert_register_p): Return zero for
2030 builtin_type_ia64_ext.
2031 (ia64_gdbarch_init): Do not initialize builtin_type_ia64_ext here.
2032 (_initialize_ia64_tdep): Initialize builtin_type_ia64_ext here.
2033 * m68k-tdep.c (m68k_convert_register_p): Return zero for
2034 builtin_type_m68881_ext.
2035 (m68k_register_to_value, m68k_value_to_register): Update comments.
2037 2007-10-24 Nathan Sidwell <nathan@codesourcery.com>
2039 * target-memory.c (claim_memory): Propagate baton for split memory
2042 2007-10-24 Pedro Alves <pedro_alves@portugalmail.pt>
2045 * sol-thread.c (sol_thread_fetch_registers): Work around gcc 3.4
2048 2007-10-24 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
2050 * symtab.c (find_line_symtab): scan through psymtabs
2051 when exact_match is zero.
2053 2007-10-23 Atsushi Nemoto <anemo@mba.ocn.ne.jp>
2055 * mips-tdep.c (LL_OPCODE, LLD_OPCODE, SC_OPCODE, SCD_OPCODE): Define.
2056 (deal_with_atomic_sequence): New.
2057 (mips_software_single_step): Use it.
2059 2007-10-23 Daniel Jacobowitz <dan@codesourcery.com>
2062 * configure.ac: Modify $LIBINTL before the BFD check.
2063 * configure: Regenerated.
2065 2007-10-23 Joel Brobecker <brobecker@adacore.com>
2067 * buildsym.c (free_pending_blocks): Remove commented-out code.
2068 (make_blockvector): Likewise. Re-use free_pending_blocks.
2069 (end_symtab): Remove commented-out code.
2071 2007-10-22 Daniel Jacobowitz <dan@codesourcery.com>
2073 * top.c (command_loop): Fix output for shrinkage.
2075 2007-10-22 Daniel Jacobowitz <dan@codesourcery.com>
2077 * cp-name-parser.y (exp1): Add & ( var ) as a reference expression.
2078 (exp): Remove and document function-like casts.
2080 2007-10-22 Daniel Jacobowitz <dan@codesourcery.com>
2082 * cp-support.c: Include "safe-ctype.h".
2083 (cp_already_canonical): New function.
2084 (cp_canonicalize_string): Use it. Return NULL for already canonical
2086 (mangled_name_to_comp): Update call to cp_demangled_name_to_comp.
2087 (cp_func_name, remove_params): Likewise.
2088 (cp_find_first_component_aux): Use ISSPACE.
2089 * cp-support.h (cp_demangled_name_to_comp): Correct comment. Remove
2091 * cp-name-parser.y (ALLOC_CHUNK): Define.
2092 (struct demangle_info): Add PREV and NEXT. Increase the size of
2094 (d_grab): Convert to a function.
2095 (allocate_info): Rewrite.
2096 (cp_demangled_name_to_comp): Remove MEMORY argument. Do not use
2097 strlen. Update call to allocate_info. Do not free it on failure.
2098 (main): Update calls to cp_demangled_name_to_comp.
2099 * Makefile.in (cp-support.o): Update.
2101 2007-10-22 Markus Deuling <deuling@de.ibm.com>
2103 * std-regs.c (value_of_builtin_frame_fp_reg)
2104 value_of_builtin_frame_pc_reg, value_of_builtin_frame_sp_reg)
2105 value_of_builtin_frame_ps_reg): Use get_frame_arch to get at the
2106 current architecture by frame_info.
2108 2007-10-22 Markus Deuling <deuling@de.ibm.com>
2110 * reggroups.c (default_register_reggroup_p): Replace current_gdbarch
2113 2007-10-22 Markus Deuling <deuling@de.ibm.com>
2115 * infcmd.c (default_print_registers_info, print_return_value)
2116 (print_vector_info, print_float_info): Replace current_gdbarch by
2118 (registers_info): Use get_frame_arch to get at the current
2119 architecture by frame_info.
2121 2007-10-22 Markus Deuling <deuling@de.ibm.com>
2123 * i387-tdep.c (i387_collect_fsave, i387_collect_fxsave): Use
2124 get_regcache_arch to get at the current architecture by regcache.
2126 2007-10-22 Markus Deuling <deuling@de.ibm.com>
2128 * target.c (debug_print_register): Use get_regcache_arch to get at the
2129 current architecture by regcache.
2131 2007-10-21 Daniel Jacobowitz <dan@codesourcery.com>
2133 * dwarf2read.c (read_file_scope): Add a comment.
2134 (dwarf2_add_field, dwarf2_add_member_fn, read_structure_type)
2135 (read_enumeration_type, process_enumeration_scope, read_array_type)
2136 (read_typedef, read_base_type, read_subrange_type)
2137 (read_unspecified_type): Use dwarf2_name.
2139 2007-10-21 Daniel Jacobowitz <dan@codesourcery.com>
2141 * coffread.c (coff_symfile_finish): Call dwarf2_free_objfile.
2142 * dwarf2read.c (dwarf2_free_objfile): New.
2143 * elfread.c (elf_symfile_finish): Call dwarf2_free_objfile.
2144 * symfile.h (dwarf2_free_objfile): Declare.
2146 2007-10-21 Joel Brobecker <brobecker@adacore.com>
2148 * hppa-hpux-nat.c (hppa_hpux_store_register): Add missing semi-colon.
2150 2007-10-21 Luis Machado <luisgpm@br.ibm.com>
2152 * rs6000-tdep.c (ppc_dwarf2_frame_init_reg): New function.
2153 * (rs6000_gdbarch_init): Install ppc_dwarf2_frame_init_reg as
2154 default dwarf2_frame_set_init_reg function.
2156 2007-10-21 Pedro Alves <pedro_alves@portugalmail.pt>
2158 * NEWS: Mention native MinGW configuration.
2160 2007-10-19 Ulrich Weigand <uweigand@de.ibm.com>
2162 * gdbarch.sh: Remove "macro" column of input table. Remove handling
2163 of "macro" column throughout the file. Remove (empty) "macro" entry
2164 of all gdbarch functions.
2166 2007-10-19 Ulrich Weigand <uweigand@de.ibm.com>
2168 * gdbarch.sh (sofun_address_maybe_missing): New gdbarch variable.
2169 * gdbarch.c, gdbarch.h: Regenerate.
2170 * dbxread.c (find_stab_function_addr): Define unconditionally.
2171 (read_dbx_symtab): Use gdbarch_sofun_address_maybe_missing
2172 instead of SOFUN_ADDRESS_MAYBE_MISSING.
2173 (end_psymtab): Likewise.
2174 (process_one_symbol): Likewise.
2175 * mdebugread.c (parse_partial_symbols): Likewise.
2177 * symtab.h (struct minimal_symbol): Always define "filename" member.
2178 * elfread.c (elf_symtab_read): Use msym->filename unconditionally.
2179 * minsyms.c (lookup_minimal_symbol): Likewise.
2180 * symmisc.c (dump_msymbols): Likewise.
2182 * config/i386/i386sol2.mt (DEPRECATED_TM_FILE): Remove.
2183 * config/i386/linux.mt (DEPRECATED_TM_FILE): Remove.
2184 * config/i386/tm-i386sol2.h: Remove file.
2185 * config/i386/tm-linux.h: Remove file.
2186 * i386-linux-tdep.c (i386_linux_init_abi): Add call to
2187 set_gdbarch_sofun_address_maybe_missing.
2188 * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
2190 * config/powerpc/linux.mt (DEPRECATED_TM_FILE): Remove.
2191 * config/powerpc/nbsd.mt (DEPRECATED_TM_FILE): Remove.
2192 * config/powerpc/obsd.mt (DEPRECATED_TM_FILE): Remove.
2193 * config/powerpc/ppc-eabi.mt (DEPRECATED_TM_FILE): Remove.
2194 * config/powerpc/ppc-sim.mt (DEPRECATED_TM_FILE): Remove.
2195 * config/powerpc/tm-ppc-eabi.h: Remove file.
2196 * rs6000-tdep.c (rs6000_gdbarch_init): Add call to
2197 set_gdbarch_sofun_address_maybe_missing.
2199 * config/sparc/sol2-64.mt (DEPRECATED_TM_FILE): Remove.
2200 * config/sparc/sol2.mt (DEPRECATED_TM_FILE): Remove.
2201 * config/sparc/tm-sol2.h: Remove file.
2202 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Add call to
2203 set_gdbarch_sofun_address_maybe_missing.
2204 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Likewise.
2206 2007-10-19 Ulrich Weigand <uweigand@de.ibm.com>
2208 * gdbarch.sh (static_transform_name): New gdbarch callback.
2209 * gdbarch.c, gdbarch.h: Regenerate.
2210 * dbxread.c (read_dbx_symtab): Use gdbarch_static_transform_name
2211 instead of STATIC_TRANSFORM_NAME.
2212 * mdebugread.c (parse_partial_symbols): Likewise.
2213 * stabsread.c (define_symbol): Likewise.
2214 * xcoffread.c (scan_xcoff_symtab): Likewise.
2216 * config/i368/tm-i386sol2.h (STATIC_TRANSFORM_NAME): Remove.
2217 (IS_STATIC_TRANSFORM_NAME): Remove.
2218 * i386-tdep.c (sunpro_static_transform_name): Remove, move to ...
2219 * i386-sol2-tdep.c (i386_sol2_static_transform_name): ... here.
2220 (i386_sol2_init_abi): Install it.
2222 * config/sparc/tm-sol2.h (STATIC_TRANSFORM_NAME): Remove.
2223 (IS_STATIC_TRANSFORM_NAME): Remove.
2224 * sparc-tdep.c (sparc_stabs_unglobalize_name): Remove, move to ...
2225 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): ... here.
2226 (sparc32_sol2_init_abi): Install it.
2227 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Likewise.
2228 * sparc-tdep.h (sparc_sol2_static_transform_name): Add prototype.
2230 2007-10-18 Daniel Jacobowitz <dan@codesourcery.com>
2232 * mips-tdep.c (mips_xfer_register): Take a gdbarch argument.
2233 (mips_n32n64_return_value, mips_o32_return_value)
2234 (mips_o64_return_value): Update calls to mips_xfer_register.
2236 2007-10-17 Daniel Jacobowitz <dan@codesourcery.com>
2238 * frame.c (frame_unwind_unsigned_register): Delete.
2239 (frame_sp_unwind): Use frame_unwind_register_unsigned instead.
2240 * frame.h (frame_unwind_unsigned_register): Delete prototype.
2242 * alpha-linux-tdep.c, alpha-mdebug-tdep.c, alpha-tdep.c,
2243 avr-tdep.c, cris-tdep.c, frv-tdep.c, m68hc11-tdep.c, mn10300-tdep.c,
2244 mt-tdep.c: Replace frame_unwind_unsigned_register with
2245 frame_unwind_register_unsigned.
2247 2007-10-16 Pedro Alves <pedro_alves@portugalmail.pt>
2249 * config/i386/mingw.mh, config/i386/mingw.mt: New files.
2250 * configure.tgt (i[34567]86-*-mingw32*): Set gdb_target = mingw.
2251 * win32-nat.c: Only include cygwin.h on Cygwin host. Don't
2253 (cygwin_load_start, cygwin_load_end, cygwin_exceptions): Disable
2254 if not building on Cygwin.
2255 (win32_make_so, handle_output_debug_string, handle_exception)
2256 (do_initial_win32_stuff): Wrap Cygwin specific code in __CYGWIN__.
2257 (win32_attach): Only fallback to Cygwin pids if building on
2259 (win32_pid_to_exec_file): Disable Cygwin specific code, if not
2261 (win32_create_inferior): Disable starting the inferior through a
2262 shell, environment var processing and tty handling if not building
2264 (cygwin_pid_to_str): Rename to ...
2265 (win32_pid_to_str): ... this.
2266 (init_win32_ops): Update use of win32_pid_to_str. Disable "shell"
2267 and "cygwin-exceptions" commands if not building on Cygwin.
2269 2007-10-16 Gaius Mulley <gaius@glam.ac.uk>
2271 * doc/gdb.texinfo: Add TSIZE definition, removed
2272 statement about unbounded arrays being unimplemented.
2273 * m2-valprint.c (m2_print_array_contents): New function.
2274 (m2_print_unbounded_array): New function.
2275 (m2_print_array_contents): New function.
2276 * m2-typeprint.c (m2_unbounded_array): New function.
2277 (m2_is_unbounded_array): New function.
2278 (m2_print_type): Test for unbounded array when walking
2280 * m2-lang.h: Added extern m2_is_unbounded_array.
2281 * m2-lang.c (evaluate_subexp_modula2): New function.
2282 (exp_descriptor_modula2): New structure.
2283 (m2_language_defn): Use exp_descriptor_modula2.
2284 * m2-exp.y: Added TSIZE and binary subscript.
2286 2007-10-16 Daniel Jacobowitz <dan@codesourcery.com>
2288 * mi/mi-main.c (captured_mi_execute_command): Clear mi_error_message
2291 2007-10-16 Kevin Buettner <kevinb@redhat.com>
2293 * m32r-tdep.c (decode_prologue): Sign extend offset for
2295 (m32r_frame_unwind_cache): Likewise.
2297 2007-10-15 Thiago Jung Bauermann <bauerman@br.ibm.com>
2299 * rs6000-tdep.c (skip_prologue): Restore comment with
2300 function description to its proper place.
2302 2007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
2304 * NEWS: Mention gdbserver PowerPC improvements.
2306 2007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
2308 * features/Makefile (WHICH): Add PowerPC register definitions.
2309 (rs6000/powerpc-32-expedite, rs6000/powerpc-e500-expedite)
2310 (rs6000/powerpc-64-expedite): New macros.
2311 ($(outdir)/%.dat): Handle subdirectories.
2312 * regformats/rs6000/powerpc-32.dat, regformats/rs6000/powerpc-64.dat,
2313 regformats/rs6000/powerpc-e500.dat: New generated files.
2315 2007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
2317 * ppc-linux-nat.c (ppc_linux_read_description): New.
2318 (_initialize_ppc_linux_nat): Set to_read_description.
2319 * ppc-tdep.h (tdesc_powerpc_e500): Declare.
2321 2007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
2323 * NEWS: Document target described register support for PowerPC.
2324 * ppc-tdep.h: Remove ppc_spr constants.
2325 (struct gdbarch_tdep): Remove regs, ppc_sr0_regnum, and
2326 ppc_builtin_type_vec128 members.
2327 (PPC_R0_REGNUM, PPC_F0_REGNUM, PPC_PC_REGNUM, PPC_MSR_REGNUM)
2328 (PPC_CR_REGNUM, PPC_LR_REGNUM, PPC_CTR_REGNUM, PPC_XER_REGNUM)
2329 (PPC_FPSCR_REGNUM, PPC_MQ_REGNUM, PPC_SPE_UPPER_GP0_REGNUM)
2330 (PPC_SPE_ACC_REGNUM, PPC_SPE_FSCR_REGNUM, PPC_VR0_REGNUM)
2331 (PPC_VSCR_REGNUM, PPC_VRSAVE_REGNUM, PPC_NUM_REGS): New constants.
2332 * rs6000-tdep.c: Include preparsed descriptions.
2333 (init_sim_regno_table): Do not iterate over pseudo registers.
2334 Look up segment registers by name. Use sim_spr_register_name
2336 (rs6000_register_sim_regno): Call init_sim_regno_table here.
2337 (rs6000_builtin_type_vec128): Delete.
2338 (rs6000_register_name): Only handle SPE pseudo registers and upper
2339 halves. Call tdesc_register_name for everything else.
2340 (rs6000_register_type): Delete. Replace with...
2341 (rs6000_pseudo_register_type): ...this new function. Only handle
2342 SPE pseudo registers.
2343 (rs6000_register_reggroup_p): Delete. Replace with...
2344 (rs6000_pseudo_register_reggroup_p): ...this new function. Only
2345 handle SPE pseudo registers.
2346 (rs6000_convert_register_p): Use ppc_fp0_regnum instead of
2348 (rs6000_register_to_value, rs6000_value_to_register): Remove check
2350 (e500_register_reggroup_p): Delete.
2351 (STR, R, R4, R8, R16, F, P8, R32, R64, R0, A4, S, S4, SN4, S64)
2352 (COMMON_UISA_REGS, PPC_UISA_SPRS, PPC_UISA_NOFP_SPRS)
2353 (PPC_SEGMENT_REGS, PPC_OEA_SPRS, PPC_ALTIVEC_REGS, PPC_SPE_GP_REGS)
2354 (PPC_SPE_UPPER_GP_REGS, PPC_EV_PSEUDO_REGS): Delete macros.
2355 (registers_powerpc, registers_403, registers_403GC, registers_505)
2356 (registers_860, registers_601, registers_602, registers_603)
2357 (registers_604, registers_750, registers_7400, registers_e500): Delete
2359 (struct variant): Delete nregs, npregs, num_tot_regs, and regs. Add
2361 (tot_num_registers, num_registers, num_pseudo_registers): Delete.
2362 (variants): Delete outdated comment. Use standard target descriptions
2363 instead of "struct reg" arrays.
2364 (init_variants): Delete.
2365 (rs6000_gdbarch_init): Do not guess word size from the BFD
2366 architecture if we have a target description. Select a variant
2367 before creating a new architecture. Use the variant's target
2368 description if the target did not define a register layout.
2369 Validate target-supplied registers. Reject mismatches. Use
2370 fixed register numbers and new constants instead of magic
2371 numbers. Call set_gdbarch_ps_regnum. Call tdesc_use_registers.
2372 (_initialize_rs6000_tdep): Initialize the preparsed target
2374 * target-descriptions.c (tdesc_predefined_types): Add int128 and
2376 (tdesc_find_register_early): New function.
2377 (tdesc_numbered_register): Use it.
2378 (tdesc_register_size): New function.
2379 (tdesc_use_registers): Take a target_desc argument. Do not use
2380 gdbarch_target_desc.
2381 * target-descriptions.h (tdesc_use_registers): Update prototype
2383 (tdesc_register_size): New prototype.
2384 * Makefile.in (powerpc_32_c, powerpc_403_c, powerpc_403gc_c)
2385 (powerpc_505_c, powerpc_601_c, powerpc_602_c, powerpc_603_c)
2386 (powerpc_604_c, powerpc_64_c, powerpc_7400_c, powerpc_750_c)
2387 (powerpc_860_c, powerpc_e500_c, rs6000_c): New macros.
2388 (rs6000-tdep.o): Update.
2389 * arm-tdep.c (arm_gdbarch_init): Update call to tdesc_use_registers.
2390 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
2391 * mips-tdep.c (mips_gdbarch_init): Likewise.
2393 2007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
2395 * features/rs6000/powerpc-32.c, features/rs6000/powerpc-403.c,
2396 features/rs6000/powerpc-403gc.c, features/rs6000/powerpc-505.c,
2397 features/rs6000/powerpc-601.c, features/rs6000/powerpc-602.c,
2398 features/rs6000/powerpc-603.c, features/rs6000/powerpc-604.c,
2399 features/rs6000/powerpc-64.c, features/rs6000/powerpc-7400.c,
2400 features/rs6000/powerpc-750.c, features/rs6000/powerpc-860.c,
2401 features/rs6000/powerpc-e500.c, features/rs6000/rs6000.c: New
2404 2007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
2406 * features/rs6000/power-altivec.xml, features/rs6000/power-core.xml,
2407 features/rs6000/power-fpu.xml, features/rs6000/power-oea.xml,
2408 features/rs6000/power-spe.xml, features/rs6000/power64-core.xml: New
2409 feature descriptions for standard PowerPC register sets.
2411 * features/rs6000/powerpc-32.xml, features/rs6000/powerpc-403.xml,
2412 features/rs6000/powerpc-403gc.xml, features/rs6000/powerpc-505.xml,
2413 features/rs6000/powerpc-601.xml, features/rs6000/powerpc-602.xml,
2414 features/rs6000/powerpc-603.xml, features/rs6000/powerpc-604.xml,
2415 features/rs6000/powerpc-64.xml, features/rs6000/powerpc-7400.xml,
2416 features/rs6000/powerpc-750.xml, features/rs6000/powerpc-860.xml,
2417 features/rs6000/powerpc-e500.xml, features/rs6000/rs6000.xml: New
2418 target descriptions for PowerPC processors.
2420 2007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
2422 * target-descriptions.c (tdesc_predefined_types): New.
2423 (tdesc_named_type): Use it.
2424 (tdesc_type_id, maint_print_c_tdesc_cmd): New functions.
2425 (_intialize_target_descriptions): Register "maint print c-tdesc".
2426 * features/Makefile (XMLTOC, CFILES, GDB): New macros.
2427 (cfiles, %.c): New rules.
2428 * features/arm-with-iwmmxt.c, features/mips-linux.c,
2429 features/mips64-linux.c: New generated files.
2431 * arm-linux-nat.c: Include preparsed description instead of
2433 (super_xfer_partial, arm_linux_xfer_partial): Remove.
2434 (arm_linux_read_description): New function.
2435 (_initialize_arm_linux_nat): Set to_read_description instead of
2436 to_xfer_partial. Initialize preparsed description.
2437 * config/arm/linux.mh (TDEP_XML): Delete.
2438 * mips-linux-nat.c: Include preparsed descriptions instead of
2440 (super_xfer_partial, mips_linux_xfer_partial): Remove.
2441 (mips_linux_read_description): New function.
2442 (_initialize_mips_linux_nat): Set to_read_description instead of
2443 to_xfer_partial. Initialize preparsed description.
2444 * config/mips/linux.mh (TDEP_XML): Delete.
2445 * Makefile.in (XMLFILES): Remove $(TDEP_XML).
2446 (features_headers, arm_with_iwmmxt_c, mips_linux_c)
2447 (mips64_linux_c): New macros.
2448 (arm-linux-nat.o, mips-linux-nat.o): Update.
2450 2007-10-15 Pierre Muller <muller@ics.u-strasbg.fr>
2452 * cp-abi.c (set_cp_abi_as_auto_default): ARI fix:
2453 Replace xasprintf by xstrprintf.
2454 symfile-mem.c (add_vsyscall_page): Ditto.
2456 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
2458 * ia64-linux-nat.c (ia64_register_addr): Add gdbarch parameter,
2459 replacing use of global current_gdbarch.
2460 (ia64_cannot_fetch_register, ia64_cannot_store_register): Likewise.
2461 (ia64_linux_fetch_register, ia64_linux_store_register): Update callers.
2463 * ia64-tdep.c (SIGCONTEXT_REGISTER_ADDRESS): Remove macro.
2464 (ia64_sigtramp_frame_init_saved_regs): Add next_frame parameter,
2465 replace uses of SIGCONTEXT_REGISTER_ADDRESS.
2466 (ia64_sigtramp_frame_cache): Update caller.
2468 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
2470 * gdbarch.sh (deprecated_use_struct_convention): Remove.
2471 (extract_return_value, store_return_value): Remove.
2472 (return_value): Remove default implementation.
2473 * gdbarch.c, gdbarch.h: Regenerate.
2475 * stack.c (return_command): Remove compatibility hack.
2476 * arch-utils.c (legacy_return_value): Remove.
2477 * arch-utils.h (legacy_return_value): Likewise.
2479 * arch-utils.c (always_use_struct_convention): Remove.
2480 * arch-utils.h (always_use_struct_convention): Likewise.
2481 * value.c (generic_use_struct_convention): Remove.
2482 * defs.h (generic_use_struct_convention): Likewise.
2484 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
2486 * avr-tdep.c (avr_return_value): New function.
2487 (avr_gdbarch_init): Call set_gdbarch_return_value instead of
2488 set_gdbarch_extract_return_value.
2490 * fvr-tdep.c (frv_return_value): New function.
2491 (frv_gdbarch_init): Call set_gdbarch_return_value instead of
2492 set_gdbarch_extract_return_value, set_gdbarch_store_return_value,
2493 and set_gdbarch_deprecated_use_struct_convention.
2495 * ia64-tdep.c (ia64_use_struct_convention): Make static.
2496 Add check for structure, union, or array types.
2497 (ia64_extract_return_value): Make static.
2498 (ia64_store_return_value): Make static. Support multi-word values.
2499 (ia64_return_value): New function.
2500 (ia64_gdbarch_init): Call set_gdbarch_return_value instead of
2501 set_gdbarch_extract_return_value, set_gdbarch_store_return_value,
2502 and set_gdbarch_deprecated_use_struct_convention.
2504 2007-10-12 Joel Brobecker <brobecker@adacore.com>
2506 * solib-target.c (solib_target_parse_libraries)
2507 [HAVEHAVE_LIBEXPAT not defined]: Fix thinko in return type.
2509 2007-10-12 Jim Blandy <jimb@codesourcery.com>
2511 * serial.h (struct serial_ops): Document read_prim to return zero
2513 * ser-base.c (do_ser_base_readchar): Return SERIAL_EOF when
2514 read_prim returns zero, not SERIAL_TIMEOUT.
2516 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
2518 * alpha-mdebug-tdep.c: Include "gdb_string.h".
2519 (find_proc_desc): Add fix-up code for setjmp procedure descriptor.
2520 * mdebugread.c (parse_procedure): Remove setjmp fix-up code.
2521 * Makefile.in (alpha-mdebug-tdep.o): Update dependencies.
2523 * config/alpha/alpha.mt (DEPRECATED_TM_FILE): Remove.
2524 * config/alpha/alpha-linux.mt (DEPRECATED_TM_FILE): Remove.
2525 * config/alpha/alpha-osf1.mt (DEPRECATED_TM_FILE): Remove.
2526 * config/alpha/fbsd.mt (DEPRECATED_TM_FILE): Remove.
2527 * config/alpha/tm-alpha.h: Remove file.
2529 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
2531 * breakpoint.c (breakpoint_sals_to_pc): Do not check for
2532 DEPRECATED_PC_REQUIRES_RUN_BEFORE_USE.
2534 * config/pa/tm-hppa.h: Delete file.
2535 * config/pa/hppa64.mt: Do not set DEPRECATED_TM_FILE.
2536 * config/pa/hppahpux.mt: Likewise.
2537 * config/pa/hppa.mt: Likewise.
2538 * config/pa/linux.mt: Likewise.
2539 * hppa-tdep.c (hppa_pc_requires_run_before_use): Delete.
2541 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
2543 * config/arm/nm-nbsdaout.h: Remove file.
2544 * config/nm-nbsdaout.h: Likewise.
2545 * config/nm-nbsd.h: Likewise.
2547 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
2549 * block.h (struct block): Remove "gcc_compile_flag" member.
2550 (BLOCK_GCC_COMPILED): Remove.
2551 * block.c (allocate_block): Do not clear BLOCK_GCC_COMPILED.
2552 * buildsym.c (finish_block): Do not set it.
2553 * symmisc.c (dump_symtab_1): Do not dump it.
2555 * value.h (using_struct_return): Remove "gcc_p" argument.
2556 * value.c (using_struct_return): Likewise.
2557 * eval.c (evaluate_subexp_standard): Adapt callers.
2558 * infcall.c (call_function_by_hand): Likewise.
2559 * stack.c (return_command): Likewise.
2560 * sparc-tdep.c (sparc32_push_dummy_code): Likewise.
2562 * gdbarch.sh (push_dummy_code): Remove "using_gcc" parameter.
2563 * gdbarch.c, gdbarch.h: Regenerate.
2564 * cris-tdep.c (cris_push_dummy_code): Adapt prototype.
2565 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Likewise.
2566 * sparc-tdep.c (sparc32_push_dummy_code): Likewise.
2567 * infcall.c (generic_push_dummy_code, push_dummy_code): Likewise.
2568 (push_dummy_code, call_function_by_hand): Adapt callers.
2570 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
2572 * infcmd.c (print_return_value): Remove STRUCT_RETURN argument.
2573 (finish_command_continuation, finish_command): Adapt callers.
2575 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
2577 * infcall.c (call_function_by_hand): Remove special handling
2578 for HP aCC compiled code.
2580 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
2582 * cris-tdep.c (cris_push_dummy_call): Support arguments passed by
2583 reference. Fix endianness bugs.
2584 (cris_reg_struct_has_address): Remove.
2585 (cris_gdbarch_init): Remove set_gdbarch_deprecated_reg_struct_has_addr
2586 and set_gdbarch_deprecated_use_struct_convention calls.
2588 * gdbarch.sh (deprecated_reg_struct_has_addr): Remove.
2589 * gdbarch.c, gdbarch.h: Regenerate.
2590 * infcall.c (call_function_by_hand): Remove handling of
2591 deprecated_reg_struct_has_addr.
2593 2007-10-11 Daniel Jacobowitz <dan@codesourcery.com>
2594 Kazu Hirata <kazu@codesourcery.com>
2596 * breakpoint.c (do_enable_breakpoint): Delay enabling until after
2597 checking watchpoint resources.
2599 2007-10-11 Kazu Hirata <kazu@codesourcery.com>
2601 * memattr.c (inaccessible_by_default): Change the initial
2604 2007-10-11 Daniel Jacobowitz <dan@codesourcery.com>
2607 * coffread.c (read_one_sym): Check for read errors.
2609 2007-10-11 Ulrich Weigand <uweigand@de.ibm.com>
2611 * linux-nat.c (lin_lwp_attach_lwp): Use "Linux kernel 2.6.19"
2612 instead of "Linux 2.6.19" in comment.
2613 (linux_xfer_partial): Use "GNU/Linux target" instead of
2614 "Linux target" in comment.
2615 * m68klinux-tdep.c (m68k_linux_inferior_created): Likewise.
2616 (m68k_linux_get_sigtramp_info): Likewise.
2618 2007-10-11 Daniel Jacobowitz <dan@codesourcery.com>
2620 * MAINTAINERS (language support): List Joel and Paul as
2623 2007-10-11 Daniel Jacobowitz <dan@codesourcery.com>
2625 * dbxread.c (process_one_symbol): Remove VARIABLES_INSIDE_BLOCK
2627 * config/arm/embed.mt, config/arm/linux.mt, config/arm/wince.mt: Do
2628 not set DEPRECATED_TM_FILE.
2629 * config/arm/tm-arm.h: Delete file.
2631 2007-10-11 Luis Machado <luisgpm@br.ibm.com>
2633 * MAINTAINERS (Write After Approval): Add self.
2635 2007-10-11 Daniel Jacobowitz <dan@codesourcery.com>
2637 * buildsym.c (record_line): Remove empty lines followed by
2638 end-of-sequence markers.
2640 2007-10-11 Kazu Hirata <kazu@codesourcery.com>
2642 * configure.tgt: Recognize fido-*-elf.
2644 2007-10-10 Joel Brobecker <brobecker@adacore.com>
2648 2007-10-10 Markus Deuling <deuling@de.ibm.com>
2650 * stack.c (print_frame_args, frame_info, return_command): Use
2651 get_regcache_arch or get_frame_arch to get at the current architecture
2652 by regcache or by frame, respectively.
2654 2007-10-10 Markus Deuling <deuling@de.ibm.com>
2656 * rs6000-nat.c (fetch_register, store_register)
2657 (rs6000_fetch_inferior_registers, rs6000_store_inferior_registers): Use
2658 get_regcache_arch to get at the current architecture by regcache.
2660 * rs6000-tdep.c (rs6000_push_dummy_call, rs6000_return_value)
2661 (rs6000_register_reggroup_p, e500_move_ev_registe, rs6000_unwind_pc)
2662 (rs6000_unwind_dummy_id, rs6000_frame_cache, rs6000_dump_tdep): Replace
2663 current_gdbarch by gdbarch.
2664 (rs6000_skip_trampoline_code, rs6000_register_to_value)
2665 (rs6000_value_to_register): Use get_frame_arch to get at the current
2666 architecture by frame_info.
2668 2007-10-10 Markus Deuling <deuling@de.ibm.com>
2670 * sparc-tdep.c (sparc_supply_rwindow, sparc_collect_rwindow): Use
2671 get_regcache_arch to get at the current architecture by regcache.
2673 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
2674 (sparc64_supply_fpregset, sparc64_collect_fpregset): Use
2675 get_regcache_arch to get at the current architecture by regcache.
2677 * sparc64nbsd-nat. (sparc64nbsd_supply_gregset)
2678 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
2679 (sparc64nbsd_collect_fpregset): Use get_regcache_arch to get at the
2680 current architecture by regcache.
2682 2007-10-10 Markus Deuling <deuling@de.ibm.com>
2684 * remote-mips.c (mips_wait, mips_fetch_registers)
2685 (mips_store_registers): Use get_regcache_arch to get at the
2686 current architecture by regcache.
2688 * mipsnbsd-tdep.c (mipsnbsd_supply_reg, mipsnbsd_fill_reg)
2689 (mipsnbsd_supply_fpreg, mipsnbsd_fill_fpreg): Use get_regcache_arch to
2690 get at the current architecture by regcache.
2691 (mipsnbsd_sigtramp_offset): Use get_frame_arch to get at the current
2692 architecture by frame_info.
2694 * mipsnbsd-nat.c (mipsnbsd_fetch_inferior_registers)
2695 (mipsnbsd_store_inferior_registers): Use get_regcache_arch to get at
2696 the current architecture by regcache.
2698 * mips-linux-tdep.c (mips_linux_get_longjmp_target)
2699 (mips64_linux_get_longjmp_target, mips_linux_o32_sigframe_init)
2700 (mips_linux_n32n64_sigframe_init): Use get_frame_arch to get at the
2701 current architecture by frame_info.
2702 (supply_32bit_reg, mips_supply_gregset, mips_fill_gregset)
2703 (mips_supply_fpregset, mips_fill_fpregset, supply_64bit_reg)
2704 (mips64_supply_gregset, mips64_fill_gregset, mips64_supply_fpregset)
2705 (mips64_fill_fpregset, mips_linux_write_pc): Use get_regcache_arch to
2706 get at the current architecture by regcache.
2708 * mips-linux-nat.c (mips_linux_register_addr)
2709 (mips64_linux_register_addr): Replace current_gdbarch by gdbarch.
2710 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset)
2711 (mips64_linux_regsets_fetch_registers)
2712 (mips64_linux_regsets_store_registers): Use get_regcache_arch to get at
2713 the current architecture by regcache.
2715 * mips64obsd-tdep.c (mips64obsd_sigframe_init): Use get_frame_arch to
2716 get at the current architecture by frame_info.
2718 2007-10-10 Markus Deuling <deuling@de.ibm.com>
2720 * mips-tdep.c (mips_xfer_register): Use get_regcache_arch to get at the
2721 current architecture by regcache.
2722 (mips2_fp_compat, mips32_next_pc, mips16_scan_prologue)
2723 (mips_insn16_frame_cache, mips32_scan_prologue, mips_insn32_frame_cache)
2724 (mips_stub_frame_cache, mips_read_fp_register_single)
2725 (mips_read_fp_register_double, mips_print_fp_register)
2726 (mips_print_register, print_gp_register_row): Use get_frame_arch to get
2727 at the current architecture by frame_info.
2728 (mips_register_reggroup_p, mips_pseudo_register_read, mips_unwind_sp)
2729 (mips_pseudo_register_write, mips_register_type, mips_unwind_pc)
2730 (mips_unwind_dummy_id, mips_eabi_push_dummy_call)
2731 (mips_n32n64_push_dummy_call, mips_n32n64_return_value)
2732 (mips_o32_push_dummy_call, mips_o32_return_value)
2733 (mips_o64_push_dummy_call, mips_o64_return_value)
2734 (mips_print_registers_info, mips_dump_tdep): Replace current_gdbarch by
2737 2007-10-10 Markus Deuling <deuling@de.ibm.com>
2739 * xtensa-tdep.c (xtensa_register_type, xtensa_pseudo_register_read)
2740 (xtensa_pseudo_register_write, xtensa_register_reggroup_p)
2741 (xtensa_unwind_pc, xtensa_unwind_dummy_id, xtensa_push_dummy_call)
2742 (xtensa_dump_tdep): Replace current_gdbarch by gdbarch.
2743 (xtensa_register_write_masked, xtensa_register_read_masked)
2744 (xtensa_supply_gregset, xtensa_store_return_value)
2745 (xtensa_extract_return_value): Use get_regcache_arch to get at the
2746 current architecture by regcache.
2747 (xtensa_frame_cache, call0_frame_get_reg_at_entry, call0_frame_cache)
2748 (xtensa_frame_prev_register): Use get_frame_arch to get at the current
2749 architecture by frame_info.
2751 2007-10-10 Daniel Jacobowitz <dan@codesourcery.com>
2753 * arm-tdep.c (struct arm_prologue_cache): Remove frameoffset.
2754 (thumb_analyze_prologue): Move pv_area_store_would_trash call
2755 out of loop. Do not set cache->frameoffset.
2756 (arm_scan_prologue): Use prologue-value mechanism. Do not set
2757 frameoffset. Simplify framesize.
2758 (arm_make_prologue_cache, arm_normal_frame_base): Do not use
2760 * arm-tdep.h (enum gdb_regnum): Add ARM_IP_REGNUM.
2762 2007-10-10 Daniel Jacobowitz <dan@codesourcery.com>
2764 * target.c (update_current_target): Call setup_target_debug.
2765 (push_target): Do not call it here.
2767 2007-10-09 Michael Snyder <msnyder@specifix.com>
2769 * MAINTAINERS: Update my email address.
2771 2007-10-09 Markus Deuling <deuling@de.ibm.com>
2773 * xtensa-tdep.c: Replace following current-gdbarch based macros by
2775 (xtensa_pseudo_register_read)
2776 (xtensa_pseudo_register_write): XTENSA_TARGET_FLAGS.
2777 (ARG_NOF, ARG_1ST, xtensa_extract_return_value)
2778 (xtensa_store_return_value, xtensa_push_dummy_call): CALL_ABI.
2779 (xtensa_pseudo_register_read)
2780 (xtensa_pseudo_register_write): ISA_USE_WINDOWED_REGISTERS.
2781 (xtensa_breakpoint_from_pc): ISA_USE_DENSITY_INSTRUCTIONS.
2782 (xtensa_register_type, xtensa_supply_gregset, xtensa_frame_cache)
2783 (xtensa_frame_prev_register): NUM_AREGS.
2784 (xtensa_pseudo_register_read, xtensa_pseudo_register_write,
2785 (xtensa_supply_gregset, xtensa_frame_cache, xtensa_frame_prev_register,
2786 (xtensa_extract_return_value, xtensa_store_return_value): WB_REGNUM.
2787 (xtensa_supply_gregset, xtensa_frame_cache)
2788 (xtensa_frame_prev_register): WS_REGNUM.
2789 (xtensa_supply_gregset): LBEG_REGNUM, LEND_REGNUM, LCOUNT_REGNUM,
2790 SAR_REGNUM, EXCCAUSE_REGNUM, EXCVADDR_REGNUM
2791 (xtensa_register_name, xtensa_register_type, xtensa_reg_to_regnum)
2792 (xtensa_pseudo_register_read, xtensa_pseudo_register_write)
2793 (xtensa_register_reggroup_p): REGMAP.
2794 (call0_track_op): LITBASE_REGNUM.
2795 (xtensa_register_type, xtensa_reg_to_regnum, call0_frame_cache):A0_BASE
2796 (xtensa_supply_gregset, call0_frame_get_reg_at_entry)
2797 (xtensa_frame_prev_register, AREG_NUMBER)
2798 (xtensa_register_type): AR_BASE.
2799 (xtensa_pseudo_register_read, xtensa_pseudo_register_write): FP_ALIAS.
2800 (AREG_NUMBER): AREGS_MASK, WB_MASK, A0_REGNUM.
2801 (ARG_1ST, xtensa_pseudo_register_read, xtensa_pseudo_register_write)
2802 (xtensa_frame_cache, xtensa_frame_prev_register)
2803 (xtensa_extract_return_value, xtensa_store_return_value)
2804 (xtensa_push_dummy_call, call0_frame_cache): A0_REGNUM.
2805 (xtensa_register_type, xtensa_pseudo_register_read, xtensa_frame_cache)
2806 (xtensa_pseudo_register_write, xtensa_unwind_dummy_id)
2807 (xtensa_frame_prev_register, xtensa_push_dummy_call)
2808 (call0_frame_cache): A1_REGNUM.
2809 (xtensa_extract_return_value, xtensa_store_return_value): A2_REGNUM.
2810 (xtensa_push_dummy_call): A4_REGNUM.
2811 (ARGS_FIRST_REG): A6_REGNUM.
2812 (xtensa_pseudo_register_read, xtensa_pseudo_register_write)
2813 (xtensa_frame_prev_register): A15_REGNUM.
2814 * xtensa-tdep.h: Delete current_gdbarch based macros after replacing
2815 them in the appropriate source file:
2816 XTENSA_TARGET_FLAGS, SPILL_LOCATION, SPILL_SIZE, CALL_ABI, NUM_AREGS,
2817 ISA_USE_WINDOWED_REGISTERS, ISA_USE_DENSITY_INSTRUCTIONS, WB_REGNUM,
2818 ISA_USE_EXCEPTIONS, ISA_USE_EXT_L32R, DEBUG_DATA_VADDR_TRAP_COUNT,
2819 DEBUG_INST_VADDR_TRAP_COUNT, ISA_MAX_INSN_SIZE, DEBUG_NUM_IBREAKS,
2820 DEBUG_NUM_DBREAKS, WS_REGNUM, LBEG_REGNUM, LEND_REGNUM, SAR_REGNUM,
2821 REGMAP, LITBASE_REGNUM, DEBUGCAUSE_REGNUM, EXCCAUSE_REGNUM, AR_BASE,
2822 EXCVADDR_REGNUM, NUM_IBREAKS, REGMAP_BYTES, NUM_CONTEXTS, FP_ALIAS,
2823 FP_LAYOUT, FP_LAYOUT_BYTES, GREGMAP, AREGS_MASK, WB_MASK, A0_REGNUM,
2824 A1_REGNUM, A2_REGNUM, A3_REGNUM, A4_REGNUM, A5_REGNUM, A6_REGNUM,
2825 A7_REGNUM, A8_REGNUM, A9_REGNUM, A10_REGNUM, A11_REGNUM, A12_REGNUM,
2826 A13_REGNUM, A14_REGNUM, A15_REGNUM.
2828 2007-10-09 Markus Deuling <deuling@de.ibm.com>
2830 * h8300-tdep.c (h8300_frame_cache): Use get_frame_arch to get at
2831 the current architecture by frame_info.
2832 (h8300_frame_prev_register
2833 (h8300_print_register): Replace current_gdbarch by gdbarch.
2834 (h8300_print_registers_info, h8300_register_type)
2835 (h8300_register_type): Likewise.
2837 2007-10-09 Markus Deuling <deuling@de.ibm.com>
2839 * i386-linux-nat.c (fetch_register): Use get_regcache_arch to get at
2840 the current architecture by regcache.
2841 (store_register, supply_gregset, fill_gregset, i386_linux_resume)
2842 (i386_linux_fetch_inferior_registers)
2843 (i386_linux_store_inferior_registers): Likewise.
2844 * i386gnu-nat.c (gnu_fetch_registers, gnu_store_registers): Likewise.
2845 * i386-nto-tdep.c (i386nto_supply_gregset): Likewise.
2846 * i386v4-nat.c (supply_fpregset, fill_fpregset): Likewise.
2847 * i386-tdep.c (i386_unwind_pc): Replace current_gdbarch by gdbarch.
2848 (i386_extract_return_value, i386_store_return_value): Likewise.
2849 * i386-tdep.c (i386_frame_prev_register): Use get_frame_arch to get at
2850 the current architecture by frame_info.
2851 (i386_sigtramp_frame_cache, i386_get_longjmp_target)
2852 (i386_register_to_value, i386_value_to_register): Likewise.
2854 2007-10-09 Markus Deuling <deuling@de.ibm.com>
2856 * monitor.c (monitor_supply_register): Use get_regcache_arch to get at
2857 the current architecture by regcache.
2858 (monitor_store_register, monitor_store_registers): Likewise.
2860 2007-10-09 Markus Deuling <deuling@de.ibm.com>
2862 * dbug-rom.c (dbug_supply_register): Use get_regcache_arch to get at
2863 the current architecture by regcache.
2865 2007-10-09 Markus Deuling <deuling@de.ibm.com>
2867 * arch-utils.c (legacy_return_value): Replace current_gdbarch by
2870 2007-10-09 Markus Deuling <deuling@de.ibm.com>
2872 * frame.c (frame_pc_unwind): Use get_frame_arch to get at the current
2873 architecture by frame.
2874 (frame_save_as_regcache, frame_register_unwind, get_prev_frame_1)
2875 (inside_main_func, frame_sp_unwind): Likewise.
2877 2007-10-09 Daniel Jacobowitz <dan@codesourcery.com>
2879 * solib-svr4.c (enable_break): Add the dynamic linker also if
2882 2007-10-09 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
2884 * MAINTAINERS (Write After Approval): Add self.
2886 2007-10-09 Pedro Alves <pedro_alves@portugalmail.pt>
2888 * stabsread.c (read_huge_number): Initialize local variable to 0.
2890 2007-10-09 Pierre Muller <muller@ics.u-strasbg.fr>
2892 * p-lang.h (pascal_main_name): Add declaration.
2893 * p-lang.c (GPC_P_INITIALIZE, GPC_MAIN_PROGRAM_NAME_1)
2894 (GPC_MAIN_PROGRAM_NAME_2): New constants.
2895 (pascal_main_name): New function.
2896 * symtab.c: Include p-lang.h.
2897 (find_main_name): Add call to pascal_main_name.
2898 * Makefile.in (symtab.o): Add dependency on p-lang.h.
2900 2007-10-09 Pedro Alves <pedro_alves@portugalmail.pt>
2902 * stabsread.c (read_huge_number): Fix handling of octal
2903 representation when the bit width is known.
2904 (read_range_type): Record unsigned integral types with their size,
2905 when the type size is known.
2907 2007-10-08 Thiago Jung Bauermann <bauerman@br.ibm.com>
2909 * MAINTAINERS (Write After Approval): Add self.
2911 2007-10-08 Pierre Muller <muller@ics.u-strasbg.fr>
2913 * breakpoint.c (print_one_breakpoint_location): ARI fix:
2914 Replace asprintf by xstrprintf.
2916 2007-10-08 Pierre Muller <muller@ics.u-strasbg.fr>
2918 * linux-fork.c: ARI fix: include "gdb_dirent.h" instead of <dirent.h>.
2919 Makefile.in (linux-fork.o): Add gdb_dirent.h dependency.
2921 2007-10-08 Pierre Muller <muller@ics.u-strasbg.fr>
2923 * linux-fork.c: Move "gdb_wait.h" include back to the position of
2924 <sys/wait.h> include before last commit.
2926 2007-10-08 Maciej W. Rozycki <macro@mips.com>
2928 * mips-tdep.c (mips32_next_pc): Fix a typo in BGTZL.
2930 2007-10-08 Markus Deuling <deuling@de.ibm.com>
2932 * aix-thread.c (supply_gprs64, supply_fprs, supply_sprs64)
2933 (supply_sprs32, fetch_regs_user_thread, fetch_regs_kernel_thread)
2934 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs64, fill_sprs32)
2935 (store_regs_user_thread, store_regs_kernel_thread): Use
2936 get_regcache_arch or get_frame_arch to get at the current architecture
2937 by regcache or by frame, respectively.
2939 2007-10-08 Markus Deuling <deuling@de.ibm.com>
2941 * sh64-tdep.c (sh64_push_dummy_call, sh64_register_type)
2942 (sh64_pseudo_register_read, sh64_pseudo_register_write)
2943 (sh64_do_fp_register, sh64_do_pseudo_register, sh64_do_register)
2944 (sh64_print_register, sh64_media_print_registers_info)
2945 (sh64_compact_print_registers_info, sh64_unwind_sp)
2946 (sh64_unwind_pc): Replace current_gdbarch by gdbarch.
2947 (sh64_show_media_regs, sh64_show_compact_regs, sh64_frame_cache)
2948 (sh64_frame_prev_register): Use FRAME to recognize current
2951 2007-10-08 Markus Deuling <deuling@de.ibm.com>
2953 * sh-tdep.c (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu)
2954 (sh_sh2a_register_type, sh_sh3e_register_type, sh_sh4_register_type)
2955 (sh_register_reggroup_p, sh_dwarf2_frame_init_reg): Replace
2956 current_gdbarch by gdbarch.
2957 (sh_generic_show_regs, sh3_show_reg, sh2e_show_regs, sh2a_show_regs)
2958 (sh2a_nofpu_show_regs, sh3e_show_regs, sh3_dsp_show_regs)
2959 (sh4_show_regs, sh4_nofpu_show_regs, sh_dsp_show_regs, sh_frame_cache)
2960 (sh_frame_prev_register, sh_unwind_sp, sh_unwind_pc): Use FRAME to
2961 recognize current architecture.
2963 2007-10-08 Markus Deuling <deuling@de.ibm.com>
2965 * remote.c (init_remote_state, fetch_register_using_p)
2966 (process_g_packet, remote_fetch_registers, remote_prepare_to_store)
2967 (store_register_using_P, store_registers_using_G)
2968 (remote_store_registers): Use get_regcache_arch or get_frame_arch to
2969 get at the current architecture by regcache or by frame, respectively.
2971 2007-10-08 Markus Deuling <deuling@de.ibm.com>
2973 * m68k-tdep.c (m68k_register_to_value, m68k_value_to_register)
2974 (m68k_svr4_extract_return_value, m68k_svr4_store_return_value)
2975 (m68k_frame_prev_register, m68k_get_longjmp_target): Use
2976 get_regcache_arch or get_frame_arch to get at the current architecture
2977 by regcache or by frame, respectively.
2978 * m68klinux-tdep.c (m68k_linux_sigtramp_frame_cache): Likewise.
2979 * m68klinux-nat.c (fetch_register, old_fetch_inferior_registers)
2980 (store_register, old_store_inferior_registers, supply_gregset)
2981 (supply_fpregset, fill_fpregset): Likewise.
2982 * m68k-tdep.c (m68k_register_type, m68k_unwind_pc, m68k_dump_tdep):
2983 Replace current_gdbarch by gdbarch.
2985 2007-10-08 Markus Deuling <deuling@de.ibm.com>
2987 * irix5-nat.c (supply_gregset, fill_gregset, supply_fpregset)
2988 (fill_fpregset, fetch_core_registers): Use get_regcache_arch or
2989 get_frame_arch to get at the current architecture by regcache or by
2990 frame, respectively.
2992 2007-10-08 Markus Deuling <deuling@de.ibm.com>
2994 * ia64-tdep.c (ia64_pseudo_register_read, ia64_pseudo_register_write):
2995 Replace current_gdbarch by gdbarch.
2996 * ia64-tdep.c (ia64_frame_prev_register
2997 (ia64_sigtramp_frame_prev_register)
2998 (ia64_libunwind_frame_prev_register): Use get_regcache_arch or
2999 get_frame_arch to get at the current architecture by regcache or by
3000 frame, respectively.
3001 * ia64-linux-nat.c (ia64_linux_fetch_register)
3002 (ia64_linux_fetch_registers, ia64_linux_store_register)
3003 (ia64_linux_store_registers): Likewise.
3005 2007-10-08 Markus Deuling <deuling@de.ibm.com>
3007 * hppa-tdep.c (hppa_stub_unwind_sniffer, hppa_dump_tdep): Replace
3008 current_gdbarch by gdbarch.
3009 * hppa-linux-nat.c (fetch_register, store_register)
3010 (hppa_linux_fetch_inferior_registers)
3011 (hppa_linux_store_inferior_registers): Use get_regcache_arch or
3012 get_frame_arch to get at the current architecture by regcache or by
3013 frame, respectively.
3014 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code
3015 (hppa_hpux_unwind_adjust_stub): Likewise.
3016 * hppa-hpux-nat.c (hppa_hpux_fetch_register, hppa_hpux_store_register)
3017 (hppa_hpux_fetch_inferior_registers)
3018 (hppa_hpux_store_inferior_registers): Likewise.
3020 2007-10-08 Markus Deuling <deuling@de.ibm.com>
3022 * cris-tdep.c (cris_sigcontext_addr, cris_sigtramp_frame_unwind_cache)
3023 (cris_scan_prologue, crisv32_scan_prologue, find_step_target)
3024 (cris_software_single_step, cris_supply_gregset): Use get_regcache_arch
3025 or get_frame_arch to get at the current architecture by regcache or by
3026 frame, respectively.
3027 * cris-tdep.c (crisv32_single_step_through_delay, cris_push_dummy_call)
3028 (cris_unwind_pc, cris_unwind_sp, cris_register_type, cris_dump_tdep)
3029 (crisv32_register_type, cris_dwarf2_frame_init_reg): Replace
3030 current_gdbarch by gdbarch.
3032 2007-10-08 Markus Deuling <deuling@de.ibm.com>
3034 * arm-tdep.c (arm_scan_prologue, arm_make_prologue_cache)
3035 (thumb_get_next_pc, arm_get_next_pc, arm_extract_return_value)
3036 (arm_store_return_value): Use get_regcache_arch or get_frame_arch to
3037 get at the current architecture by regcache or by·frame, respectively.
3038 (arm_push_dummy_call, arm_dump_tdep): Replace current_gdbarch by
3041 2007-10-08 Markus Deuling <deuling@de.ibm.com>
3043 * amd64-tdep.c (amd64_frame_prev_register, amd64_sigtramp_frame_cache):
3044 Use get_regcache_arch or get_frame_arch to get at the current
3045 architecture by regcache or by frame, respectively.
3046 * amd64-linux-tdep.c (amd64_linux_sigcontext_addr): Likewise.
3047 * amd64-nat.c (amd64_supply_native_gregset)
3048 (amd64_collect_native_gregset): Replace current_gdbarch by gdbarch.
3050 2007-10-08 Markus Deuling <deuling@de.ibm.com>
3052 * alpha-tdep.c (alpha_register_reggroup_p): Replace current_gdbarch by
3054 * alpha-linux-nat.c (alpha_linux_register_u_offset): Likewise.
3055 (alpha_sigtramp_frame_unwind_cache, alpha_sigtramp_frame_this_id)
3056 (alpha_sigtramp_frame_sniffer, alpha_next_pc): Use get_regcache_arch or
3057 get_frame_arch to get at the current architecture by regcache or by
3058 frame, respectively.
3059 * alpha-nat.c (fetch_osf_core_registers): Likewise.
3061 2007-10-08 Markus Deuling <deuling@de.ibm.com>
3063 * dwarf2-frame.c (read_reg, execute_cfa_program, dwarf2_frame_cache)
3064 (dwarf2_frame_default_init_reg, dwarf2_frame_prev_register): Replace
3065 current_gdbarch by gdbarch.
3066 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Likewise.
3068 2007-10-08 Markus Deuling <deuling@de.ibm.com>
3070 * regcache.c (init_regcache_descr, register_type, read_pc_pid)
3071 (write_pc_pid, regcache_dump): Replace current_gdbarch by gdbarch.
3072 * regcache.c (regcache_raw_write): Use get_regcache_arch or
3073 get_frame_arch to get at the current architecture by regcache or by
3074 frame, respectively.
3076 2007-10-08 Markus Deuling <deuling@de.ibm.com>
3078 * findvar.c (value_of_register, locate_var_value): Use
3079 get_regcache_arch or get_frame_arch to get at the current architecture
3080 by regcache or by frame, respectively.
3081 * findvar.c (default_value_from_register, value_from_register): Replace
3082 current_gdbarch by gdbarch.
3084 2007-10-08 Pierre Muller <muller@ics.u-strasbg.fr>
3086 * config/i386/nm-i386.h (CHILD_POST_STARTUP_INFERIOR): ARI fix: Remove.
3088 2007-10-08 Pierre Muller <muller@ics.u-strasbg.fr>
3090 * linux-fork.c: ARI fix: include "gdb_wait.h" instead of <sys/wait.h>.
3091 Makefile.in (linux-fork.o): Add gdb_wait.h dependency.
3093 2007-10-05 Daniel Jacobowitz <dan@codesourcery.com>
3095 * remote.c (get_offsets): Only call free_symfile_segment_data if
3098 2007-10-03 Pierre Muller <muller@ics.u-strasbg.fr>
3100 * objc-exp.y: ARI fix: remove 4 PARAMS.
3102 2007-10-03 Daniel Jacobowitz <dan@codesourcery.com>
3104 * NEWS: Use uniform spacing. Correct version number for GDB 6.7
3105 news. Mention XML support for M68K in GDB 6.7.
3107 2007-10-03 Daniel Jacobowitz <dan@codesourcery.com>
3109 * gdbtypes.c (create_range_type): Do not set TYPE_FIELD_TYPE for the
3111 (init_vector_type): Use builtin_type_int32.
3113 2007-10-02 Ulrich Weigand <uweigand@de.ibm.com>
3115 * s390-tdep.c (s390_regset_from_core_section): Allow excess section
3116 size to enable bi-arch generate-core-file support.
3118 2007-10-02 Markus Deuling <deuling@de.ibm.com>
3120 * spu-tdep.c (info_spu_signal_command): Fix output for SPU signal.
3122 2007-10-02 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
3124 * tui/tui-interp.c (tui_init): Initialize tui's SIGWINCH
3126 * tui/tui-win.c (tui_initialize_win): New function for
3127 initializing tui's SIGWINCH signal handler.
3128 * tui/tui-win.h (tui_initialize_win): Declare.
3130 2007-10-02 Ulrich Weigand <uweigand@de.ibm.com>
3132 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Cast
3133 pointer to uintptr_t before casting to CORE_ADDR.
3135 2007-10-02 Markus Deuling <deuling@de.ibm.com>
3137 * linux-nat.c (PTRACE_GETSIGINFO): Add define.
3139 2007-10-02 Mark Mitchell <mark@codesourcery.com>
3141 * mingw-hdep.c (gdb_select): Stop helper threads before returning.
3142 * ser-mingw.c (enum select_thread_state): New type.
3143 (struct ser_console_state): Add have_started and thread_state.
3144 (select_thread_wait): New function.
3145 (thread_fn_type): New type.
3146 (create_select_thread): New function.
3147 (destroy_select_thread): Likewise.
3148 (start_select_thread): Likewise.
3149 (stop_select_thread): Likewise.
3150 (console_select_thread): Use new functions.
3151 (pipe_select_thread): Likewise.
3152 (file_select_thread): Likewise.
3153 (ser_console_wait_handle): Likewise.
3154 (ser_console_done_wait_handle): Likewise.
3155 (ser_console_close): Likewise.
3156 (free_pipe_state): Likewise.
3157 (pipe_wait_handle): Likewise.
3158 (pipe_done_wait_handle): Likewise.
3159 (struct net_windows_state): Derive from ser_console_state.
3160 (net_windows_select_thread): Use new functions.
3161 (net_windows_wait_handle): Likewise.
3162 (net_windows_done_wait_handle): Likewise.
3163 (net_windows_close): Likewise.
3165 2007-10-02 Daniel Jacobowitz <dan@codesourcery.com>
3167 * inflow.c (terminal_ours_1): Remove useless line.
3169 2007-10-02 Daniel Jacobowitz <dan@codesourcery.com>
3171 * mips-tdep.c (mips_read_fp_register_double): Correct check for
3173 (mips_print_fp_register): Correct check for even FP registers.
3174 (mips_virtual_frame_pointer): New function.
3175 (mips_gdbarch_init): Call set_gdbarch_virtual_frame_pointer.
3177 2007-09-30 Mike Frysinger <vapier@gentoo.org>
3179 * value.h (lookup_only_internalvar): New prototype.
3180 (create_internalvar): Likewise.
3181 * value.c (lookup_only_internalvar): New function.
3182 (create_internalvar): Likewise.
3183 (lookup_internalvar): Use new lookup_only_internalvar and
3184 create_internalvar functions.
3185 * parse.c (write_dollar_variable): Look up $ symbols in internal
3186 table first rather than last.
3188 2007-09-30 Daniel Jacobowitz <dan@codesourcery.com>
3190 * linux-nat.c (linux_nat_new_thread): New variable.
3191 (linux_child_follow_fork): Set inferior_ptid to include LWP ID. Use
3192 linux_nat_switch_fork.
3193 (lwp_list): Make public.
3194 (add_lwp): Call linux_nat_new_thread.
3195 (lin_lwp_attach_lwp, linux_nat_attach): Call add_lwp after stopping
3197 (resume_callback): Clear lp->siginfo. Remove unused variable.
3198 (linux_nat_resume): Assert that the LWP list is already initialized.
3200 (save_siginfo): New.
3201 (stop_wait_callback, linux_nat_wait): Call it.
3202 (linux_nat_set_new_thread, linux_nat_get_siginfo): New.
3203 * linux-nat.h (struct lwp_info): Add siginfo.
3204 (lwp_list, linux_nat_set_new_thread, linux_nat_get_siginfo): Declare.
3207 * amd64-linux-nat.c (amd64_linux_dr): New.
3208 (amd64_linux_dr_get): Take a PTID argument. Correct typo.
3209 (amd64_linux_dr_set): Take a PTID argument.
3210 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use ALL_LWPS.
3211 (amd64_linux_dr_reset_addr): Use amd64_linux_dr_set_addr.
3212 (amd64_linux_dr_get_status): Pass inferior_ptid to amd64_linux_dr_get.
3213 (amd64_linux_new_thread): New.
3214 (_initialize_amd64_linux_nat): Call linux_nat_set_new_thread.
3215 * i386-linux-nat.c (i386_linux_dr): New.
3216 (i386_linux_dr_get, i386_linux_dr_set): Take a PTID argument.
3217 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use ALL_LWPS.
3218 (i386_linux_dr_reset_addr): Use i386_linux_dr_set_addr.
3219 (i386_linux_dr_get_status): Pass inferior_ptid to i386_linux_dr_get.
3220 (i386_linux_new_thread): New.
3221 (i386_linux_resume): Remove unnecessary PID check.
3222 (_initialize_i386_linux_nat): Call linux_nat_set_new_thread.
3223 * ia64-linux-nat.c (enable_watchpoints_in_psr): Take PTID argument.
3224 (fetch_debug_register, fetch_debug_register_pair): Delete.
3225 (debug_registers): New.
3226 (ia64_linux_insert_watchpoint, ia64_linux_remove_watchpoint): Use
3227 ALL_LWPS and debug_registers.
3228 (ia64_linux_new_thread): New.
3229 (ia64_linux_stopped_data_address): Use linux_nat_get_siginfo.
3230 (_initialize_ia64_linux_nat): Call linux_nat_set_new_thread.
3231 * ppc-linux-nat.c (last_stopped_data_address): Delete.
3232 (saved_dabr_value): New.
3233 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint): Use
3235 (ppc_linux_new_thread): New.
3236 (ppc_linux_stopped_data_address): Use linux_nat_get_siginfo.
3237 (ppc_linux_stopped_by_watchpoint): Call ppc_linux_stopped_data_address.
3238 (_initialize_ppc_linux_nat): Call linux_nat_set_new_thread.
3239 * s390-nat.c (s390_stopped_by_watchpoint): Clear the watchpoint status
3241 (s390_fix_watch_points): Take a PTID argument.
3242 (s390_insert_watchpoint, s390_remove_watchpoint): Use ALL_LWPS.
3243 (_initialize_s390_nat): Call linux_nat_set_new_thread.
3245 2007-09-30 Daniel Jacobowitz <dan@codesourcery.com>
3246 Jeff Johnston <jjohnstn@redhat.com>
3248 * breakpoint.c (watchpoints_triggered): New.
3249 (bpstat_stop_status): Remove STOPPED_BY_WATCHPOINT argument.
3250 Check watchpoint_triggered instead. Combine handling for software
3251 and hardware watchpoints. Do not use target_stopped_data_address
3252 here. Always check a watchpoint if its scope breakpoint triggers.
3253 Do not stop for thread or overlay events. Improve check for
3254 triggered watchpoints without a value change.
3255 (watch_command_1): Insert the scope breakpoint first. Link the
3256 scope breakpoint to the watchpoint.
3257 * breakpoint.h (enum watchpoint_triggered): New.
3258 (struct breakpoint): Add watchpoint_triggered.
3259 (bpstat_stop_status): Update prototype.
3260 (watchpoints_triggered): Declare.
3261 * infrun.c (enum infwait_status): Add infwait_step_watch_state.
3262 (stepped_after_stopped_by_watchpoint): Delete.
3263 (handle_inferior_event): Make stepped_after_stopped_by_watchpoint
3264 local. Handle infwait_step_watch_state. Update calls to
3265 bpstat_stop_status. Use watchpoints_triggered to check
3267 * remote.c (stepped_after_stopped_by_watchpoint): Remove extern.
3268 (remote_stopped_data_address): Do not check it.
3270 2007-09-29 Daniel Jacobowitz <dan@codesourcery.com>
3272 * configure.ac: Add $LIBINTL when testing libbfd.
3273 * configure: Regenerated.
3275 2007-09-28 Vladimir Prus <vladimir@codesourcery.com>
3277 * NEW: Mention pending breakpoint changes and
3278 support for breakpoints at multiple locations.
3280 2007-09-27 Daniel Jacobowitz <dan@codesourcery.com>
3282 * arm-linux-tdep.c (arm_linux_software_single_step): New.
3283 (arm_linux_init_abi): Use it.
3284 * arm-tdep.c (arm_get_next_pc): Make global. Handle all-ones
3285 condition correctly.
3286 * arm-tdep.h (arm_get_next_pc): Declare.
3287 * Makefile.in (arm-linux-tdep.o): Update.
3289 2007-09-26 Vladimir Prus <vladimir@codesourcery.com>
3291 * varobj.c (install_new_value): Don't
3292 call value_get_print_value when a value is
3293 lazy. Update the print_value member in a
3296 2007-09-26 Vladimir Prus <vladimir@codesourcery.com>
3298 * breakpoint.c (create_breakpoint): Set
3299 condition on each location, not on the first
3300 location of breakpoint.
3302 2007-09-26 Jim Blandy <jimb@codesourcery.com>
3304 * remote.c (getpkt_sane): Fix error message. No animals were
3305 harmed in the making of this debugger.
3307 2007-09-26 Pierre Muller <muller@ics.u-strasbg.fr>
3309 * p-typeprint.c: Fix 11 ARI reported problems.
3310 (pascal_print_type): Fix 4 operator at end of line.
3311 (pascal_type_print_method_args) : Replace 2 DEPRECATED_STREQN macros
3312 using strncmp function.
3313 (pascal_type_print_base): Fix 2 operator at end of line.
3314 (pascal_type_print_base) : Replace 3 DEPRECATED_STREQN macros
3315 using strncmp function.
3318 2007-09-26 Pierre Muller <muller@ics.u-strasbg.fr>
3320 * Fix PR pascal/2231
3321 dwarf2read.c (read_subroutine_type):
3322 All pascal functions are prototyped.
3324 2007-09-26 Pierre Muller <muller@ics.u-strasbg.fr>
3326 * Fix PR pascal/2283
3327 p-valprint.c (pascal_val_print): correct current language check.
3328 Also print array of char as strings.
3331 2007-09-26 David Ung <davidu@mips.com>
3332 Maciej W. Rozycki <macro@mips.com>
3334 * mips-tdep.c (mips_n32n64_return_value): Fix a comment.
3336 2007-09-25 Pierre Muller <muller@ics.u-strasbg.fr>
3338 * p-exp.y: Fix 12 ARI reported problems.
3339 (name_not_typename): Fix 2 operator at end of line issues.
3340 (yylex): Fix 3 operator at end of line issues.
3341 Replace 7 DEPRECATED_STREQ macros using strcmp function.
3343 2007-09-25 David Ung <davidu@mips.com>
3344 Maciej W. Rozycki <macro@mips.com>
3346 * mips-tdep.c (mips_n32n64_return_value): Per N32/N64 ABI
3347 rules return composite types in registers as appropriate.
3349 2007-09-24 Jim Blandy <jimb@codesourcery.com>
3351 * symfile.h (struct symfile_segment_data): Doc fixes.
3352 * symfile.c (symfile_map_offsets_to_segments): Doc fixes.
3353 Assert that we were passed some loaded segment addresses,
3354 and that sections' segment numbers are valid.
3355 Simplify offset calculation.
3356 * remote.c (get_offsets): Clarify selection of relocate-by-segment
3357 strategy, and set num_segments correctly. Delete redundant
3358 assignments to do_sections.
3360 2007-09-24 Daniel Jacobowitz <dan@codesourcery.com>
3362 * frame.c (get_prev_frame_1): Also check for PC in the same register.
3364 2007-09-24 Vladimir Prus <vladimir@codesourcery.com>
3366 * breakpoint.c (remove_sal): New.
3367 (expand_line_sal_maybe): New.
3368 (create_breakpoints): Call expand_line_sal_maybe.
3369 (clear_command): Add comment.
3370 (breakpoint_re_set_one): Call expand_line_sal_maybe.
3371 * linespec.c (decode_indirect): Set explicit_pc to 1.
3372 (decode_all_digits): Set explicit_line to 1.
3373 (append_expanded_sal): New.
3374 (expand_line_sal): New.
3375 * linespec.h (expand_line_sal): Declare.
3376 * symtab.c (init_sal): Initialize explicit_pc
3378 * symtab.h (struct symtab_and_line): New fields
3379 explicit_pc and explicit_line.
3381 2007-09-23 Daniel Jacobowitz <dan@codesourcery.com>
3383 * infcall.c (call_function_by_hand): Handle language-specific
3384 pass and return by reference.
3386 * cp-abi.c (cp_pass_by_reference): New.
3387 * cp-abi.h (cp_pass_by_reference): Declare.
3388 (struct cp_abi_ops): Add pass_by_reference.
3389 * gnu-v3-abi.c (gnuv3_pass_by_reference): New.
3390 (init_gnuv3_ops): Set pass_by_reference.
3392 * language.c (language_pass_by_reference): New.
3393 (default_pass_by_reference): New.
3394 (unknown_language_defn, auto_language_defn, local_language_defn): Add
3395 default_pass_by_reference.
3396 * langauge.h (struct language_defn): Add la_pass_by_reference.
3397 (language_pass_by_reference, default_pass_by_reference): Declare.
3398 * ada-lang.c (ada_language_defn): Add default_pass_by_reference.
3399 * c-lang.c (c_language_defn, asm_language_defn)
3400 (minimal_language_defn): Likewise.
3401 (cplus_language_defn): Add cp_pass_by_reference.
3402 * f-lang.c (f_language_defn): Add default_pass_by_reference.
3403 * jv-lang.c (java_language_defn): Likewise.
3404 * m2-lang.c (m2_language_defn): Likewise.
3405 * objc-lang.c (objc_language_defn): Likewise.
3406 * p-lang.c (pascal_language_defn): Likewise.
3407 * scm-lang.c (scm_language_defn): Likewise
3409 2007-09-23 Vladimir Prus <vladimir@codesourcery.com>
3411 Allow a code breakpoint to have several locations
3413 * breakpoint.h (enum enable_state): Remove the
3414 bp_shlib_disabled enumerator.
3415 (struct bp_location): New members shlib_disabled,
3416 global_next, enabled and function_name.
3417 Rename pending to condition_not_parsed.
3419 * breakpoint.c (ALL_BP_LOCATIONS): Iterate over global_next.
3420 (ALL_BP_LOCATIONS_SAFE): Likewise.
3421 (breakpoint_enabled): Don't check for pending.
3422 (condition_command): Free and update all locations of
3424 (insert_bp_location): Adjust.
3425 (software_breakpoint_inserted_here_p): Don't care
3426 if breakpoint is enabled, as soon as it's inserted.
3427 (print_it_typical): Print bpstat's location, not
3428 bpstat's breakpoint's location.
3429 (bpstat_stop_status): Iterate over all locations, not
3431 (print_breakpoint_location): New.
3432 (print_one_breakpoint): Renamed to
3433 (print_one_breakpoint_location): ...this. Take
3434 parameters to describe which location is being
3435 printed. Modify code to properly print header
3436 for several locations and individual locations.
3437 (print_one_breakpoint): Print all locations.
3438 (breakpoint_has_pc): New.
3439 (describe_other_breakpoints): Use the above.
3440 (check_duplicates): Renamed to...
3441 (check_duplicates_for): .. this.
3442 (check_duplicates): Use check_duplicates_for.
3443 (allocate_bp_location): Adjust.
3444 (set_raw_breakpoint_without_location): New,
3445 extracted from set_raw_breakpoint.
3446 (set_breakpoint_location_function): New.
3447 (set_raw_breakpoint): Use
3448 set_raw_breakpoint_without_location.
3449 (make_breakpoint_permanent): Mark all locations
3451 (disable_breakpoints_in_shlibs): Iterate over
3453 (disable_breakpoints_in_unloaded_shlib): Likewise.
3454 (re_enable_breakpoints_in_shlibs): Likewise.
3455 (mention): Say "pending" when breakpoint has
3456 zero locations. If breakpoint has more than one
3458 (add_location_to_breakpoint): New.
3459 (create_breakpoint): Accept symtabs_and_lines, not
3460 symtab_and_line. Pass extra sals to
3461 add_location_to_breakpoint.
3462 (create_breakpoints): Pass symtabs_and_lines to
3464 (break_command_1): Make pending breakpoints
3465 have zero locations.
3466 (do_captured_breakpoint): Remove wrong allocation.
3467 (clear_command): Iterate over all locations.
3468 (unlink_locations_from_global_list): Renamed
3469 from unlink_location_from_global_list. Remove
3471 (delete_breakpoint): Remove all locations.
3472 Iterate over all locations when deciding which
3473 other location to re-enable.
3474 (all_locations_are_pending): New.
3475 (update_breakpoint_locations): Renamed from
3476 update_breakpoint_location. Try to match old
3477 and new locations using names of containing
3479 (breakpoint_re_set_one): Adjust.
3480 (find_location_by_number): New.
3481 (disable_command): Allow disabling individual location.
3482 (enable_command): Allow enabling individual location.
3483 * breakpoint.c: Adjust all uses of breakpoint's
3484 enable state to for bp_shlib_disabled change.
3486 2007-09-22 Vladimir Prus <vladimir@codesourcery.com>
3488 * breakpoint.c (do_restore_lang_radix_cleanup): Remove.
3489 (resolve_pending_breakpoint): Remove.
3490 (re_enable_breakpoints_in_shlibs): Remove.
3491 (unlink_locations_from_global_list): New.
3492 (update_breakpoint_locations): New.
3493 (breakpoint_re_set_one): Don't bail out on pending breakpoints.
3494 Use parse_condition and update_breakpoint_location to
3495 reset breakpoint. Ignore 'symbol not found' error from
3497 (breakpoint_re_set): Don't emit newline before the
3498 reason why breakpoint is not reset.
3499 (do_enable_breakpoint): Don't specially process pending
3501 (free_bp_location): New.
3502 (break_command_1): For pending breakpoints, initialize
3503 all fields of a sal with zeroes.
3504 * breakpoint.h (re_enable_breakpoints_in_shlibs): Remove.
3505 * infcmd.c (post_create_inferior): Don't call
3506 re_enable_breakpoints_in_shlibs.
3507 * infrun.c (handle_inferior_event): Likewise.
3508 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
3509 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
3510 * win32-nat.c (get_win32_debug_event): Likewise.
3512 2007-09-22 Vladimir Prus <vladimir@codesourcery.com>
3514 * breakpoint.c (create_breakpoint): Split from
3515 create_breakpoints, implementing most of its logic.
3516 Take just a single sal, single address string and
3517 single condition. Do not take parsed condition at
3519 (create_breakpoints): Just call create_breakpoint
3521 (find_condition_and_thread): New.
3522 (break_command_1): Use find_condition_and_thread.
3523 Do not keep parsed conditions.
3524 (do_captured_breakpoint): Don't convert
3525 condition string to struct expression.
3527 2007-09-22 Vladimir Prus <vladimir@codesourcery.com>
3529 * breakpoint.h (struct breakpoint): Move the cond
3531 (struct bp_location): Here.
3532 * breakpoint.c (condition_command, bpstat_stop_status)
3533 (print_one_breakpoint, allocate_bp_location)
3534 (solib_load_unload_1, create_fork_vfork_event_catchpoint)
3535 (create_exec_event_catchpoint, create_breakpoints)
3536 (break_command_1, watch_command_1, handle_gnu_v3_exceptions)
3537 (create_ada_exception_breakpoint, set_breakpoint_sal)
3538 (delete_breakpoint, breakpoint_re_set_one): Adjust.
3539 * tui/tui-winsource.c (tui_update_breakpoint_info): Adjust.
3541 2007-09-22 Vladimir Prus <vladimir@codesourcery.com>
3543 Associate bp_stat with bp_location, not breakpoint.
3544 * breakpoint.h (breakpoint_at): Change type
3546 * breakpoint.c (bpstat_alloc): Take bp_location,
3548 (bpstat_find_breakpoint): Look at bpstat's location's
3549 owner, not at bpstat->breakpoint_at.
3550 (bpstat_find_step_resume_breakpoint): Likewise.
3551 (bpstat_num): Likewise.
3552 (print_it_typical): Likewise.
3553 (print_bp_stop_message): Likewise.
3554 (watchpoint_check): Likewise.
3555 (bpstat_what): Likewise.
3556 (bpstat_get_triggered_catchpoints): Likewise.
3557 (breakpoint_auto_delete): Likewise.
3558 (delete_breakpoint): Likewise.
3559 (bpstat_stop_status): Pass location, not breakpoint,
3560 to bpstat_alloc. Look at bpstat's location's
3561 owner, not at bpstat->breakpoint_at.
3563 2007-09-21 Jim Blandy <jimb@codesourcery.com>
3565 * macrotab.h (new_macro_table): Document that removing information
3566 from an obstack/bcache-managed macro table leaks memory.
3567 * macrotab.c (macro_free, macro_bcache_free): Instead of asserting
3568 that data is never freed in obstack/bcache-managed macro tables,
3569 just leak the storage.
3570 (macro_undef): If we're undefining a macro at exactly the same
3571 source location that we defined it, simply remove the definition
3574 2007-09-21 Joel Brobecker <brobecker@adacore.com>
3576 * symfile.h (struct sym_fns): Add new field sym_read_linetable.
3577 * coffread.c, dbxread.c, elfread.c, mipsread.c somread.c:
3578 Adjust the struct sym_fns object accordingly by setting
3579 the new field to NULL.
3580 * xcoffread.c (aix_process_linenos): Make static.
3581 (xcoff_sym_fns): Set new field to aix_process_linenos.
3582 * buildsym.c (end_symtab): Replace call to PROCESS_LINENUMBER_HOOK
3583 by call to new the new sym_fns sym_read_linetable function.
3584 * config/powerpc/aix.mt (DEPRECATED_TM_FILE): Delete.
3585 * config/rs6000/tm-rs6000.h: Delete.
3587 2007-09-21 David Ung <davidu@mips.com>
3588 Maciej W. Rozycki <macro@mips.com>
3590 * mips-tdep.c (mips_n32n64_push_dummy_call): Per N32/N64 ABI
3591 rules do not treat composite types specially.
3593 2007-09-20 Maciej W. Rozycki <macro@mips.com>
3595 * mips-tdep.c (mips32_in_function_epilogue_p): New function.
3596 (mips16_in_function_epilogue_p): Likewise.
3597 (mips_in_function_epilogue_p): Likewise.
3598 (mips_gdbarch_init): Register mips_in_function_epilogue_p().
3600 2007-09-19 Joel Brobecker <brobecker@adacore.com>
3602 * configure.ac: Add check for "etext".
3603 * configure, config.in: Regenerate.
3604 * maint.c (TEXTEND): Only define if either _etext or etext
3606 Disable the profiling functionality if TEXTEND is not defined.
3608 2007-09-19 Daniel Jacobowitz <dan@codesourcery.com>
3610 * mips-tdep.c (mips_stub_frame_cache): Correct the saved return
3611 address register. Correct the call to frame_id_build.
3612 (mips_stub_frame_sniffer): Use the stub unwinder when the PC
3615 2007-09-18 Joel Brobecker <brobecker@adacore.com>
3617 * ia64-tdep.c (refine_prologue_limit): Make sure we don't scan
3618 the linetable past the function end.
3620 2007-09-18 James E. Wilson <wilson@specifix.com>
3622 * MAINTAINERS: Update my email address.
3624 2007-09-18 Jerome Guitton <guitton@adacore.com>
3626 * inf-ttrace.c (inf_ttrace_private_thread_info): New structure type.
3627 (inf_ttrace_delete_dying_threads_callback): New function.
3628 (inf_ttrace_resume): After resuming the execution, iterate over
3629 the dying threads to delete them for the thread list.
3630 (inf_ttrace_wait): on TTEVT_LWP_EXIT and TTEVT_LWP_TERMINATE,
3631 mark the corresponding thread as dying instead of removing it
3632 from the thread list.
3633 (inf_ttrace_thread_alive): return 0 for dying threads.
3635 2007-09-17 Joel Brobecker <brobecker@adacore.com>
3637 * infrun.c (insert_step_resume_breakpoint_at_frame): Add assertion
3638 that return_frame is not null.
3640 2007-09-17 Joel Brobecker <brobecker@adacore.com>
3642 * solib-svr4.c: Add include of "auxv.h".
3643 (enable_break): Use the AT_BASE auxiliary entry if available.
3644 * Makefile.in (solib-svr4.o): Update dependencies.
3646 2007-09-17 Joel Brobecker <brobecker@adacore.com>
3648 * NEWS: Create a new section for the next release branch.
3649 Rename the section of the current branch, now that it has
3652 2007-09-17 Jerome Guitton <guitton@adacore.com>
3654 * dwarf2loc.c (dwarf_expr_frame_base): Guard against NULL.
3655 * Makefile.in (dwarf2loc.o): Depend on gdb_assert.h.
3657 2007-09-16 Vladimir Prus <vladimir@codesourcery.com>
3659 * mi/mi-cmds.c (mi_cmds): Register -list-features.
3660 * mi/mi-cmds.h (mi_cmd_list_features): New.
3661 * mi/mi-main.c (mi_cmd_list_features): New.
3663 2007-09-11 Joel Brobecker <brobecker@adacore.com>
3665 GDB 6.7 branch created (branch timestamp: 2007-09-07 14:00 UTC)
3666 * version.in: Bump version to 6.7.50-20070911-cvs.
3668 2007-09-10 Daniel Jacobowitz <dan@codesourcery.com>
3670 * thread.c (free_thread): Do not delete the step resume breakpoint
3673 2007-09-10 Daniel Jacobowitz <dan@codesourcery.com>
3675 * arch-utils.c (gdbarch_info_fill): Also try core_bfd.
3676 * corelow.c (core_read_description): New.
3677 (init_core_ops): Set to_read_description.
3678 * gdbarch.sh: Add gdbarch_core_read_description.
3679 * mips-linux-tdep.c (mips_linux_core_read_description): New.
3680 (mips_linux_init_abi): Call set_gdbarch_core_read_description.
3681 * mips-tdep.c (mips_tdesc_gp32, mips_tdesc_gp64): New.
3682 (mips_register_g_packet_guesses): Use them.
3683 (_initialize_mips_tdep): Initialize them.
3684 * mips-tdep.h (mips_tdesc_gp32, mips_tdesc_gp64): Declare.
3685 * gdbarch.h, gdbarch.c: Regenerated.
3687 2007-09-10 Ulrich Weigand <uweigand@de.ibm.com>
3689 * infrun.c (stepping_past_breakpoint): New global variable.
3690 (stepping_past_breakpoint_ptid): Likewise.
3691 (prepare_to_proceed): Add STEP parameter. Do not check for Ctrl-C.
3692 Only switch threads if we need to single-step over a breakpoint hit
3693 in the previously selected thread. If stepping, remember previous
3694 thread to switch back to in STEPPING_PAST_BREAKPOINT[_PTID]. Call
3695 switch_to_thread instead of copying its contents.
3696 (proceed): Pass STEP to prepare_to_proceed. Always set ONEPROC if
3697 prepare_to_proceed returns true.
3698 (init_wait_for_inferior): Reset STEPPING_PAST_BREAKPOINT.
3699 (context_switch): Call switch_to_thread.
3700 (handle_inferior_event): Switch back to previous thread if requested
3701 in STEPPING_PAST_BREAKPOINT[_PTID] by prepare_to_proceed.
3702 * gdbthread.h (switch_to_thread): Add prototype.
3703 * thread.c (switch_to_thread): Make global.
3705 2007-09-07 Pierre Muller <muller@ics.u-strasbg.fr>
3707 * p-valprint.c: Fix 7 ARI reported problems.
3708 (pascal_val_print): Fix one operator at end of line issue.
3709 Use paddress function to remove use of
3710 deprecated_print_address_numeric function (2 times).
3711 Use SYMBOL_LINKAGE_NAME instead of DEPRECATED_SYMBOL_NAME.
3712 (pascal_value_print): Fix 3 operator at end of line issues.
3714 2007-09-07 Daniel Jacobowitz <dan@codesourcery.com>
3717 * arm-tdep.c (arm_in_call_stub): Delete.
3718 (arm_skip_stub): Handle from_arm and from_thumb stubs.
3720 2007-09-06 Daniel Jacobowitz <dan@codesourcery.com>
3722 * ppc-sysv-tdep.c (do_ppc_sysv_return_value): Handle other integer
3725 2007-09-04 Daniel Jacobowitz <dan@codesourcery.com>
3726 Jim Blandy <jimb@codesourcery.com>
3728 * NEWS: Update description of string changes. Mention print/s.
3729 * c-valprint.c (textual_element_type): New.
3730 (c_val_print): Use it. Do not skip address printing for pointers
3731 with a string format.
3732 (c_value_print): Doc update.
3733 * dwarf2read.c (read_array_type): Use make_vector_type.
3734 * gdbtypes.c (make_vector_type): New.
3735 (init_vector_type): Use it.
3736 (gdbtypes_post_init): Initialize builtin_true_unsigned_char.
3737 (_initialize_gdbtypes): Mark int8_t and uint8_t as TYPE_FLAG_NOTTEXT.
3738 * gdbtypes.h (struct builtin_type): Add builtin_true_unsigned_char.
3739 (TYPE_FLAG_NOTTEXT, TYPE_NOTTEXT): New.
3740 (make_vector_type): New.
3741 * printcmd.c (print_formatted): Only handle 's' and 'i' for examine.
3742 Call the language print routine for string format.
3743 (print_scalar_formatted): Call val_print for string format. Handle
3744 unsigned original types for char format.
3745 (validate_format): Do not reject string format.
3746 * stabsread.c (read_type): Use make_vector_type.
3747 * xml-tdesc.c (tdesc_start_vector): Use init_vector_type.
3749 2007-09-04 Michael Snyder <msnyder@access-company.com>
3751 * expprint.c (print_subexp_standard): Check strchr for null.
3752 * Makefile.in (expprint.o): Depend on gdb_assert.h.
3754 * gnu-v2-abi.c (gnuv2_value_rtti_type): Guard against null.
3756 * stabsread.c (patch_block_status): Guard against null.
3757 * Makefile.in (stabsread.o): Depend on gdb_assert.h.
3759 2007-09-04 Daniel Jacobowitz <dan@codesourcery.com>
3761 * printcmd.c (printf_command): Handle ptr_arg. Correct typo
3762 in internal error message.
3764 2007-09-04 Pedro Alves <pedro_alves@portugalmail.pt>
3765 Daniel Jacobowitz <dan@codesourcery.com>
3767 * infcmd.c (post_create_inferior): Update comment.
3768 (run_command_1): Always call post_create_inferior with 0 as
3771 * i386-cygwin-tdep.h: New.
3772 * i386-cygwin-tdep.c: Include "i386-cygwin-tdep.h".
3773 (win32_xfer_shared_library): Make it extern.
3775 * win32-nat.c: Include gdb_obstack.h and xml-support.h and
3777 (win32_so_ops): Delete.
3778 (get_relocated_section_addrs): Delete.
3779 (solib_symbols_add): Delete.
3780 (register_loaded_dll): Delete.
3781 (win32_make_so): New.
3782 (handle_load_dll): Use win32_make_so.
3783 (win32_free_so): Free the passed in so.
3784 (win32_relocate_section_addresses): Delete.
3785 (win32_solib_create_inferior_hook): Delete.
3786 (handle_unload_dll): Don't add PE offset here. Free so with
3787 win32_free_so instead of free_so.
3788 (win32_special_symbol_handling): Delete.
3789 (get_win32_debug_event): Remove unneeded calls. Set state to
3790 TARGET_WAITKIND_LOADED on a dll unload.
3791 (do_initial_win32_stuff): Clear cygwin_load_start and
3793 (map_code_section_args): Delete.
3794 (dll_code_sections_add): Delete.
3795 (core_section_load_dll_symbols): Delete.
3796 (win32_xfer_shared_libraries): New.
3797 (win32_current_sos): Delete.
3798 (win32_xfer_partial): New.
3799 (open_symbol_file_object): Delete.
3800 (in_dynsym_resolve_code): Delete.
3801 (init_win32_ops): Set win32_xfer_partial as to_xfer_partial member
3802 of win32_ops. Remove win32_so_ops settings. Don't set
3803 current_target_so_ops here.
3805 * Makefile.in (i386_cygwin_tdep_h): New variable.
3806 (i386-cygwin-tdep.o): Update dependencies.
3807 (win32-nat.o): Update dependencies.
3809 2007-09-04 Pedro Alves <pedro_alves@portugalmail.pt>
3810 Daniel Jacobowitz <dan@codesourcery.com>
3812 * gdbarch.sh (core_xfer_shared_libraries): New.
3814 * corelow.c (core_xfer_partial): Handle TARGET_OBJECT_LIBRARIES.
3816 * gdb_obstack.h (obstack_grow_str, obstack_grow_str0): New.
3818 * xml-support.c (gdb_xml_parse): Debug output tweaks.
3819 (xml_escape_text): New.
3820 * xml-support.h (xml_escape_text): Declare.
3822 * config/i386/cygwin.mh (NATDEPFILES): Move corelow.o to ...
3823 * config/i386/cygwin.mt (TDEPFILES): ... here.
3825 * win32-nat.c: (fetch_elf_core_registers): Delete.
3826 (win32_elf_core_fn): Delete.
3827 (_initialize_core_win32): Delete.
3829 * i386-cygwin-tdep.c: Include "regset.h", "gdb_objstack.h",
3830 "xml-support.h" and "gdbcore.h".
3831 (i386_win32_gregset_reg_offset): New.
3832 (I386_WIN32_SIZEOF_GREGSET): New.
3833 (i386_win32_regset_from_core_section): New.
3834 (win32_xfer_shared_library): New.
3835 (struct cpms_data): New.
3836 (core_process_module_section): New.
3837 (win32_core_xfer_shared_libraries): New.
3838 (i386_cygwin_skip_trampoline_code): Register gregset_reg_offset,
3839 gregset_num_regs, sizeof_gregset members of tdep. Register
3840 regset_from_core_section and core_xfer_shared_libraries callbacks.
3842 * Makefile.in (i386-cygwin-tdep.o): Update dependencies.
3843 * gdbarch.h, gdbarch.c: Regenerate.
3845 2007-09-03 Daniel Jacobowitz <dan@codesourcery.com>
3847 * corelow.c (core_xfer_partial): Pass writebuf to
3848 deprecated_xfer_memory in TARGET_OBJECT_MEMORY write case.
3850 2007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
3852 * arm-tdep.h (arm_skip_stub): Declare.
3853 * arm-wince-tdep.c: Don't include "solib-svr4.h". Include
3855 (arm_pe_skip_trampoline_code): New function.
3856 (arm_wince_init_abi): Register arm_pe_skip_trampoline_code as
3857 gdbarch_skip_trampoline_code callback.
3858 * Makefile.in (arm-wince-tdep.o): Update dependencies.
3860 2007-09-03 Daniel Jacobowitz <dan@codesourcery.com>
3862 * MAINTAINERS: Move Fred Fish to Past Maintainers.
3864 2007-09-03 Daniel Jacobowitz <dan@codesourcery.com>
3866 * configure.ac: Add --with-expat.
3867 * configure: Regenerated.
3869 2007-09-03 Andreas Schwab <schwab@suse.de>
3871 * configure.ac: Accept --with-system-readline.
3872 (READLINE, READLINE_DEPS, READLINE_CFLAGS): Define and substitute.
3873 * configure: Regenerate.
3874 * Makefile.in (READLINE, READLINE_DEPS, READLINE_CFLAGS): Use
3876 (CDEPS): Use $(READLINE_DEPS) instead of $(READLINE).
3878 2007-09-03 Maxim Grigoriev <maxim2405@gmail.com>
3879 Daniel Jacobowitz <dan@codesourcery.com>
3881 * mi-main.c (mi_load_progress): Handle MI2 and MI3 interpreters.
3883 2007-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3885 * top.c (print_gdb_version): Fixed a string end-of-line compiler error.
3887 2007-09-02 Daniel Jacobowitz <dan@codesourcery.com>
3889 * top.c (print_gdb_version): Update for GPL version 3.
3891 2007-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3893 * NEWS: Mention the build-id .debug files verification.
3895 2007-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3897 * linux-nat.c (linux_nat_make_corefile_notes): Fixed a buffer overflow.
3899 2007-09-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3901 * Makefile.in (symfile.o): Update dependencies.
3902 * symfile.c (symbol_file_add_with_addrs_or_offsets): Initialize the
3903 DEBUGFILE variable. FIND_SEPARATE_DEBUG_FILE called only if !PSYMTABS.
3904 (struct build_id): New structure.
3905 (build_id_bfd_get, build_id_verify, build_id_to_debug_filename): New.
3906 (find_separate_debug_file): New variable BUILD_ID.
3907 Call BUILD_ID_BFD_GET with BUILD_ID_TO_DEBUG_FILENAME as the first try.
3909 2007-08-31 Vladimir Prus <vladimir@codesourcery.com>
3911 * varobj.c (struct varobj): Fix comment
3912 for the type member not to lie when it can be
3915 2007-08-31 Vladimir Prus <vladimir@codesourcery.com>
3917 Implement -var-info-path-expression.
3919 * mi/mi-cmds.h (mi_cmd_var_info_path_expression):
3921 * mi/mi-cmds.c (mi_cmds): Register var-info-path-expression.
3922 * mi/mi-cmd-var.c (mi_cmd_var_info_path_expression): New.
3923 * varobj.c (struct varobj): New field 'path_expr'.
3924 (c_path_expr_of_child, cplus_path_expr_of_child)
3925 (java_path_expr_of_child): New.
3926 (struct language_specific): New field path_expr_of_child.
3927 (varobj_create): Initialize the path_expr field.
3928 (varobj_get_path_expr): New.
3929 (new_variable): Initialize the path_expr field.
3930 (free_variable): Free the path_expr field.
3931 (adjust_value_for_children_access): New parameter
3933 (c_number_of_children): Adjust.
3934 (c_describe_child): New parameter CFULL_EXPRESSION.
3935 Compute full expression.
3936 (c_value_of_child, c_type_of_child): Adjust.
3937 (cplus_number_of_children): Adjust.
3938 (cplus_describe_child): New parameter CFULL_EXPRESSION.
3939 Compute full expression.
3940 (cplus_name_of_child, cplus_value_of_child)
3941 (cplus_type_of_child): Adjust.
3942 * varobj.h (varobj_get_path_expr): Declare.
3944 2007-08-31 Vladimir Prus <vladimir@codesourcery.com>
3946 * mi/mi-cmd-var.c (print_varobj): If a varobj
3947 type is NULL, don't try to print it.
3949 2007-08-30 Alan Modra <amodra@bigpond.net.au>
3951 * ppc-linux-nat.c (right_fill_reg): Delete.
3952 (supply_gregset): Use ppc_supply_gregset.
3953 (supply_fpregset): Use ppc_supply_fpregset.
3954 (fill_gregset): Use ppc_collect_gregset.
3955 (fill_fpregset): Use ppc_collect_fpregset.
3956 * ppc-linux-tdep.c (PPC_LINUX_PT_*): Don't define.
3957 (right_supply_register, ppc_linux_supply_gregset): Delete.
3958 (ppc32_linux_supply_gregset, ppc64_linux_supply_gregset): Delete.
3959 (ppc_linux_supply_fpregset): Delete.
3960 (ppc_linux_collect_gregset): New function.
3961 (ppc32_linux_reg_offsets, ppc64_linux_reg_offsets): New.
3962 (ppc32_linux_gregset, ppc64_linux_gregset): Update to use reg offsets,
3963 ppc_linux_supply_gregset, and ppc_collect_gregset.
3964 (ppc_linux_fpregset): Rename to ppc32_linux_fpregset and update.
3965 (ppc_linux_gregset, ppc_linux_fpregset): New functions.
3966 (ppc_linux_regset_from_core_section): Update.
3967 * ppc-tdep.h (ppc_linux_gregset, ppc_linux_fpregset): Declare.
3968 (ppc_linux_supply_gregset, ppc_linux_supply_fpregset): Delete.
3969 (struct ppc_reg_offsets): Add gpr_size, xr_size, fpscr_size fields.
3970 * ppcobsd-tdep.c (ppcobsd_supply_gregset): Delete FIXME and assert.
3971 (ppcobsd_collect_gregset): Likewise.
3972 (_initialize_ppcnbsd_tdep): Init gpr_size, xr_size, fpscr_size.
3973 * ppcnbsd-tdep.c (_initialize_ppcobsd_tdep): Likewise.
3974 * ppcobsd-nat.c (_initialize_ppcobsd_nat): Likewise.
3975 * rs6000-aix-tdep.c (rs6000_aix32_reg_offsets): Likewise.
3976 (rs6000_aix64_reg_offsets): Likewise.
3977 (rs6000_aix_supply_regset): Call ppc_supply_fpregset without testing
3978 ppc_floating_point_unit_p.
3979 (rs6000_aix_collect_regset): Similarly.
3980 * rs6000-tdep.c (ppc_supply_reg): Add regsize param. Adjust offset
3981 when regsize is larger than regcache register size.
3982 (ppc_collect_reg): Similarly zero pad when regsize is larger than
3983 regcache register size.
3984 (ppc_greg_offset): New function, split out from..
3985 (ppc_supply_gregset): ..here. Separate code handling all regs from
3986 single reg case. Correct xer offset.
3987 (ppc_fpreg_offset): New function, split out from..
3988 (ppc_supply_fpregset): ..here. Separate code handling all regs from
3990 (ppc_collect_gregset, ppc_collect_fpregset): Likewise.
3991 (ppc_supply_fpregset, ppc_collect_fpregset): Don't assert we have
3992 a fp unit, instead return if no fp.
3994 2007-08-29 Jim Blandy <jimb@codesourcery.com>
3996 * breakpoint.c (watch_command_1): Remove '#ifdef HPUXHPPA' block;
3997 this code has not been compiled for two years.
3999 2007-08-29 Michael Snyder <msnyder@access-company.com>
4001 * event-top.c (gdb_readline2): Return after EOF.
4003 2007-08-29 Joel Brobecker <brobecker@adacore.com>
4005 * symtab.c: Remove a function that has been commented out 3 years ago.
4007 2007-08-29 Randolph Chung <tausq@debian.org>
4009 * hppa-tdep.c (hppa32_cannot_fetch_register)
4010 (hppa64_cannot_fetch_register): New functions.
4011 (hppa_gdbarch_init): Set cannot_fetch_register appropriately.
4012 * hppa-tdep.h (hppa_regnum): Add HPPA_CR26_REGNUM.
4014 2007-08-28 Michael Snyder <msnyder@access-company.com>
4016 * mi/mi-cmd-var.c (mi_print_value_p): No longer necessary to
4017 check for null before calling check_typedef.
4019 * NEWS: Mention Coverity bug fixes.
4021 2007-08-27 Markus Deuling <deuling@de.ibm.com>
4023 * spu-tdep.c (spu_pointer_to_address): New function.
4024 (spu_integer_to_address): Likewise.
4025 (spu_gdbarch_init): Add spu_pointer_to_address and
4026 spu_integer_to_address to gdbarch.
4028 2007-08-26 Pedro Alves <pedro_alves@portugalmail.pt>
4030 * arm-wince-tdep.c (ARM_WINCE_JB_PC): Change to 10.
4032 2007-08-23 Joel Brobecker <brobecker@adacore.com>
4034 * Makefile.in (copying.c): Use the top-level COPYING3 as the file
4035 that contains the GDB license.
4036 * copying.awk: Adjust to the GPLv3 wording.
4037 * copying.c: Regenerate.
4039 2007-08-23 Joel Brobecker <brobecker@adacore.com>
4041 * copying.awk: Protoization, and i18n markup.
4043 2007-08-23 Joel Brobecker <brobecker@adacore.com>
4045 * config/djgpp/djconfig.sh: Switch license to GPLv3.
4046 * copyright.sh: Likewise.
4047 * gdb-events.sh: Likewise.
4048 * gdb_gcore.sh: Likewise.
4049 * gdb_mbuild.sh: Likewise.
4050 * gdbarch.sh: Likewise.
4051 * observer.sh: Likewise.
4052 * features/feature_to_c.sh: Likewise.
4053 * regformats/regdat.sh: Likewise.
4055 2007-08-23 Joel Brobecker <brobecker@adacore.com>
4057 Switch the license of all .c files to GPLv3.
4058 Switch the license of all .h files to GPLv3.
4059 Switch the license of all .cc files to GPLv3.
4061 2007-08-23 Joel Brobecker <brobecker@adacore.com>
4063 * configure.ac: Switch license to GPLv3.
4065 2007-08-22 Daniel Jacobowitz <dan@codesourcery.com>
4067 * mips-tdep.c (mips_gdbarch_init): Use Tag_GNU_MIPS_ABI_FP to
4068 determine the file's FPU type.
4070 2007-08-22 Daniel Jacobowitz <dan@codesourcery.com>
4072 * mips-tdep.c (mips_n32n64_fp_arg_chunk_p): New.
4073 (mips_n32n64_push_dummy_call): Always increment float_argreg along
4074 with argreg. Use mips_n32n64_fp_arg_chunk_p.
4076 2007-08-22 Daniel Jacobowitz <dan@codesourcery.com>
4078 * solib-svr4.c (scan_dyntag): Only read target memory when necessary.
4080 (elf_locate_base): Look for DT_MIPS_RLD_MAP first. Expand comments.
4081 (elf_lookup_lib_symbol): Fix formatting.
4083 2007-08-21 Michael Snyder <msnyder@access-company.com>
4085 * dbxread.c (read_dbx_symtab): Guard null deref.
4088 * valops.c (find_overload_match): Guard against NULL.
4090 2007-08-21 Daniel Jacobowitz <dan@codesourcery.com>
4092 * MAINTAINERS (Patch Champions): Remove self.
4094 2007-08-21 Chris Smith <chris.smith@st.com>
4096 * cli/cli-script.c (read_command_lines): Call dont_repeat for each
4099 2007-08-18 Michael Snyder <msnyder@access-company.com>
4101 * stabsread.c (dbx_lookup_type): Memory leak.
4103 * event-loop.c (delete_async_signal_handler): Move pointer null
4104 test to before pointer dereference.
4106 * ui-out.c (append_header_to_list): Possible cut and paste error.
4108 * MAINTAINERS: white space tweak.
4110 2007-08-17 Michael Snyder <msnyder@access-company.com>
4112 * stack.c (print_frame): Memory leak.
4114 * completer.c (filename_completer): Avoid memory leak.
4115 Remove unnecessary nested block.
4117 * c-exp.y (parse_number): Memory leak.
4119 * completer.c (location_completer): Must free 'fn_list', except
4120 in the one case where it is returned (as 'list').
4122 * varobj.c (value_of_root): Memory leak.
4124 * gdbtypes.h (virtual_base_list): Remove export decl.
4125 * gdbtypes.c (virtual_base_list): Make static. Not called outside.
4126 (virtual_base_index): Memory leak.
4127 (virtual_base_index_skip_primaries): Ditto.
4129 2007-08-17 Maxim Grigoriev <maxim2405@gmail.com>
4131 * xtensa-tdep.c (ARG_NOF, ARG_1ST, PS_WOE, PS_EXC, C0_MAXOPDS)
4132 (C0_NREGS, C0_CLESV, C0_SP, C0_FP, C0_RA, C0_ARGS, C0_NARGS)
4133 (C0_CONST, C0_INEXP, C0_NOSTK): New macros.
4134 (xtensa_read_register): New function.
4135 (xtensa_windowed_frame_cache, xtensa_call0_frame_cache, xtensa_c0reg)
4136 (xtensa_insn_kind): New types.
4137 (xtensa_frame_cache, xtensa_alloc_frame_cache, xtensa_frame_cache)
4138 (xtensa_frame_prev_register, xtensa_return_value, xtensa_skip_prologue)
4139 (xtensa_verify_config, xtensa_pseudo_register_read)
4140 (xtensa_pseudo_register_write, xtensa_extract_return_value)
4141 (xtensa_store_return_value)
4142 (xtensa_push_dummy_call): Extended to support Xtensa Call0 ABI.
4143 (windowing_enabled, extract_call_winsize, xtensa_unwind_dummy_id)
4144 (xtensa_frame_this_id, xtensa_frame_prev_register)
4145 (xtensa_register_type, xtensa_reg_to_regnum): Cosmetic changes.
4146 (call0_frame_cache, call0_frame_get_reg_at_entry)
4147 (call0_classify_opcode, call0_track_op)
4148 (call0_analyze_prologue, call0_frame_cache): New functions.
4150 2007-08-17 Vladimir Prus <vladimir@codesourcery.com>
4152 * breakpoint.c (bpstat_free): New.
4153 (bpstat_clear): Use bpstat_free.
4154 (delete_breakpoint): Document why we cannot
4155 remove bpstats from stop_bpstat.
4156 * breakpoint.h (bpstat_free): Declare.
4158 2007-08-16 Michael Snyder <msnyder@access-company.com>
4160 * event-loop.c (gdb_wait_for_event): Move statement into "if" block.
4162 2007-08-15 Paul Hilfinger <hilfinger@adacore.com>
4163 Joel Brobecker <brobecker@adacore.com>
4165 * ada-lang.c (resolve_subexp): Correct arity of binary operators.
4167 2007-08-15 Paul Hilfinger <hilfinger@adacore.com>
4168 Joel Brobecker <brobecker@adacore.com>
4170 * ada-lang.c (possible_user_operator_p): Alternative fix to last
4171 checkin guarding against NULL.
4173 2007-08-14 Michael Snyder <msnyder@access-company.com>
4175 * tui-command.c, tui-data.c, tui-disasm.c, tui-file.c, tui-io.c,
4176 tui-layout.c, tui-regs.c, tui-source.c, tui-win.c, tui-windata.c,
4177 tui-wingeneral.c, tui-winsource.c: Coding standard, && and ||
4178 go at beginning of new line.
4180 * tui-data.c, tui-data.h, tui-disasm.c, tui-disasm.h, tui-hooks.c,
4181 tui-io.c, tui-layout.c, tui-layout.h, tui-out.c, tui-regs.c,
4182 tui-source.c, tui-source.h, tui-stack.c, tui-win.c, tui-win.h,
4183 tui-windata.c, tui-windata.h, tui-wingeneral.c, tui-winsource.c,
4184 tui-winsource.h, tui.c, tui.h: Function declarations and
4185 definitions, wrap long lines.
4187 * tui-command.c, tui-data.c, tui-disasm.c, tui-layout.c,
4188 tui-regs.c, tui-win.c, tui-windata.c, tui-winsource.c, tui.c:
4189 Reformat block comments to GNU standard.
4191 * tui-command.c, tui-data.c, tui-data.h, tui-disasm.c, tui-file.c,
4192 tui-hooks.c, tui-interp.c, tui-io.c, tui-layout.c, tui-out.c,
4193 tui-regs.c, tui-regs.h, tui-source.c, tui-stack.c, tui-win.c,
4194 tui-windata.c, tui-wingeneral.c, tui-winsource.c, tui-winsource.h,
4195 tui.c, tui.h: Comment reformatting to coding standard (capitals,
4196 spaces after periods, etc).
4198 * tui-data.c, tui-data.h, tui-disasm.c, tui-hooks.c, tui-layout.c,
4199 tui-regs.c, tui-source.c, tui-stack.c, tui-win.c, tui-windata.c,
4200 tui-wingeneral.c, tui-wingeneral.h, tui-winsource.c, tui.c,
4201 tui-winsource.h: Whitespace changes, fix pointer declarations
4204 2007-08-14 Joel Brobecker <brobecker@adacore.com>
4205 Michael Snyder <msnyder@access-company.com>
4207 * ada-lang.c (field_alignment): Guard against NULL.
4209 2007-08-14 Joel Brobecker <brobecker@adacore.com>
4211 * MAINTAINERS (Global Maintainers): Add self.
4213 2007-08-14 Michael Snyder <msnyder@access-company.com>
4215 * mi/mi-interp.c (mi_cmd_interpreter_exec): Dead code, dead variable.
4217 * ada-lang.c (possible_user_operator_p): Guard against NULL.
4219 * varobj.c (cplus_describe_child): Guard against null.
4220 Use "NULL" instead of "0" to initialize pointers.
4222 2007-08-14 Daniel Jacobowitz <dan@codesourcery.com>
4224 * arm-tdep.c (arm_gdbarch_init): Allow unknown ABI and FPU settings
4225 to match any gdbarch with matching OSABI. Set default ABI and FPU
4226 after running the OSABI handler.
4228 2007-08-14 Daniel Jacobowitz <dan@codesourcery.com>
4230 * config/i386/linux.mh (NATDEPFILES): Move corelow.o from here...
4231 * config/i386/linux.mt (TDEPFILES): ...to here.
4233 2007-08-14 Vladimir Prus <vladimir@codesourcery.com>
4235 * breakpoint.c (disable_breakpoints_in_shlibs): Remove
4236 the 'silent' parameter and code to implement that.
4237 * breakpoint.h (disable_breakpoints_in_shlibs): Adjust
4239 * win32-nat.c: Adjust.
4242 2007-08-14 Vladimir Prus <vladimir@codesourcery.com>
4244 * breakpoint.c (update_breakpoints_after_exec): Don't
4245 set address to zero.
4247 2007-08-13 Michael Snyder <msnyder@access-company.com>
4249 * valops.c: Whitespace clean-up.
4251 * tui/tui-winsource.c (tui_alloc_source_buffer): Clean up allocation.
4253 * event-top.c (command_line_handler): Memory leak.
4255 * mi/mi-cmd-var.c (mi_cmd_var_set_format): Memory leak.
4256 No need to make copy.
4258 * source.c (find_source_lines): Require symtab 's'.
4260 2007-08-11 Michael Snyder <msnyder@access-company.com>
4262 * completer.c: Spelling fix in comments.
4264 2007-08-10 Michael Snyder <msnyder@access-company.com>
4266 * gdbtypes.c: Coding standard cleanup.
4267 * gdbtypes.c: Comment/whitespace cleanup.
4269 * stabsread.c (read_huge_number): Attempt to compute value before
4270 values that it depends on.
4272 * linespec.c (decode_dollar): Dead code, ptr can't be non-null.
4273 (decode_objc): Use "NULL" instead of 0.
4274 (find_method): Ditto.
4275 (decode_all_digits): Ditto.
4276 (decode_dollar): Ditto.
4278 * mi/mi-main.c (mi_cmd_data_evaluate_expression): Resource leak.
4280 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Memory leak.
4282 * solib-svr4.c (enable_break): Don't free tmp_pathname until
4285 * completer.c: Comment/whitespace cleanup.
4287 2007-08-10 Joel Brobecker <brobecker@adacore.com>
4289 * Makefile.in (i386nbsd-nat.o): Add missing dependency.
4291 2007-08-10 Maxim Grigoriev <maxim2405@gmail.com>
4293 * remote-fileio.c (remote_fileio_resize_fd_map): Initialize newly
4294 allocated file descriptors.
4296 2007-08-10 Joel Brobecker <brobecker@adacore.com>
4298 * Makefile.in: Minor cleanup throughout; add some missing variables,
4299 add some missing rules, remove some rules that are no longer needed,
4300 and fix the dependencies in several rules.
4302 2007-08-10 Ludovic Courtès <ludo@gnu.org>
4304 * Makefile.in (SFILES): Add scm-{exp,lang,valprint}.c.
4305 (scm_lang_h, scm_tags_h): New.
4306 (COMMON_OBS): Add scm-{exp,lang,valprint}.o.
4307 (scm-exp.o, scm-lang.o, scm-valprint.o): New targets.
4308 * defs.h (enum language): Add `language_scm'.
4310 * MAINTAINERS: Add Emacs local variables to use UTF-8 upon
4313 2007-08-09 Ludovic Courtès <ludo@gnu.org>
4315 * MAINTAINERS (Write After Approval): Add myself.
4317 2007-08-09 Michael Snyder <msnyder@access-company.com>
4319 * solib.c (solib_open): Memory leak -- openp returns xmalloc buffer.
4321 2007-08-09 Joel Brobecker <brobecker@adacore.com>
4323 * solib-som.c (som_relocate_section_addresses): Stop saving
4324 the $CODE$ section in the so_list structure.
4326 2007-08-08 Maxim Grigoriev <maxim2405@gmail.com>
4328 * xtensa-tdep.h (XTENSA_MAX_COPROCESSOR): New.
4329 (xtensa_register_group_t): Add entries for coprocessors.
4330 * xtensa-tdep.c (xtensa_init_reggroups): New register groups.
4331 (xtensa_add_reggroups): Likewise.
4332 (xtensa_register_reggroup_p): Likewise.
4333 (xtensa_coprocessor_register_group): New function.
4336 2007-08-08 Jan Kratochvil <jan.kratochvil@redhat.com>
4338 * serial.c (serial_open): Fix the OPEN parameter macro expansion.
4340 2007-08-08 Michael Snyder <msnyder@access-company.com>
4342 * target.c (target_read_string): Guard against null.
4344 * varobj.c (value_of_root): Move alloc after return to avoid leak.
4346 * tui/tui-layout.c (tui_set_layout): Dead code, dead variable.
4347 (tui_set_layout_for_display_command): Mem leak.
4349 * top.c (command_line_input): Memory leak.
4351 * solib-svr4.c (open_symbol_file_object): Memory leak.
4352 (svr4_current_sos): Ditto.
4353 (enable_break): Ditto.
4355 * cp-valprint.c (cp_print_hpacc_virtual_table_entries): Memory leak.
4357 * dwarf2read.c (add_partial_symbol): Memory leak.
4359 2007-08-06 Michael Snyder <msnyder@access-company.com>
4361 * ada-lang.c (desc_bounds): Comparison of function address to NULL.
4363 2007-08-05 Jim Blandy <jimb@codesourcery.com>
4365 * macroexp.c (init_buffer): Remove testing code that overrides the
4366 caller's length guess.
4367 (gather_arguments): Use a larger initial size, now that the vector
4368 growth code has been exercised.
4370 2007-08-05 Pedro Alves <pedro_alves@portugalmail.pt>
4372 * solib-target.c (solib_target_relocate_section_addresses): Add
4373 orig_delta to addr_high.
4375 2007-08-04 Michael Snyder <msnyder@access-company.com>
4377 * remote-fileio.c (remote_fileio_func_write): Memory leak.
4379 * breakpoint.c (print_one_breakpoint): Off by one error.
4381 * tracepoint.c (add_register): Off by one error.
4382 (stringify_collection_list): Free malloc buffer.
4384 2007-08-03 Michael Snyder <msnyder@access-company.com>
4386 * mi-cmd-var.c (mi_cmd_var_delete): Remove unused variable,
4387 stop memory leak, straighten out cleanups.
4389 * jv-lang.c (java_link_class_type): Guard against NULL.
4391 2007-08-02 Michael Snyder <msnyder@access-company.com>
4393 * gdbtypes.c (create_set_type): Test should only be done within
4394 the preceeding if block. Otherwise, variable is uninitialized.
4396 * gdbtypes.c (check_typedef): Guard NULL.
4398 2007-08-01 Michael Snyder <msnyder@access-company.com>
4400 * cli/cli-decode.c (lookup_cmd): Check for null earlier, to
4401 avoid dereference in lookup_cmd_1.
4403 * tui/tui-data.c (tui_alloc_content): Move assign out of if,
4404 clean up long lines.
4405 (tui_alloc_generic_win_info): Tidy by using XMALLOC macro.
4406 (tui_alloc_win_info): Ditto.
4407 (tui_add_content_elements): Ditto.
4408 * tui/tui-file.c (tui_file_magic): Ditto.
4410 2007-07-31 Michael Snyder <msnyder@access-company.com>
4412 * breakpoint.c (breakpoint_init_inferior): Add 'else' to 'if'.
4413 True and false paths are mutually exclusive.
4415 * event-top.c (command_line_handler): Add pedantic return.
4417 * f-valprint.c (info_common_command): Bail out to prevent null
4418 pointer deref. Break up a long line.
4420 * exec.c (xfer_memory): Remove redundant condition from 'if'.
4422 * symfile.c (reread_separate_symbols): Free xmalloced memory.
4424 * printcmd.c (build_address_symbolic): Remove dead code and dead
4427 2007-07-31 Daniel Jacobowitz <dan@codesourcery.com>
4429 * linespec.c (minsym_found): Advance to the next line if possible.
4431 2007-07-31 Pedro Alves <pedro_alves@portugalmail.pt>
4433 * arm-wince-tdep.c (arm_wince_init_abi): Remove svr4 related call.
4434 * config/arm/wince.mt (TDEPFILES): Remove solib-legacy.o and
4435 solib-svr4.o, and add solib-target.o
4437 2007-07-27 Michael Snyder <msnyder@access-company.com>
4439 * tui/tui-data.c (tui_alloc_generic_win_info): Wrong arg for sizeof.
4441 2007-07-26 Maciej W. Rozycki <macro@linux-mips.org>
4443 * MAINTAINERS (Write After Approval): Add myself.
4445 2007-07-26 Maciej W. Rozycki <macro@mips.com>
4447 * Makefile.in (MAKEHTMLFLAGS): Also search the current directory
4450 2007-07-25 Maciej W. Rozycki <macro@mips.com>
4452 * Makefile.in (MAKEHTMLFLAGS): Remove "-glossary".
4454 2007-07-24 Michael Snyder <msnyder@access-company.com>
4456 * solib-svr4.c (svr4_fetch_objfile_link_map): Null pointer check of
4457 'buffer' must cover both branches that call strcmp (Coverity).
4459 * stack.c (print_frame_args): Check return value of lookup_symbol.
4461 * ax-gdb.c (find_field): Guard against null ptr.
4463 2007-07-24 Ulrich Weigand <uweigand@de.ibm.com>
4465 * regformats/reg-spu.dat: Fix order of npc, id registers.
4467 2007-07-24 Ulrich Weigand <uweigand@de.ibm.com>
4469 * target.c (memory_xfer_partial): Accesses to unmapped overlay
4470 sections should always go to the executable file.
4472 2004-07-20 Chris Dearman <chris@mips.com>
4474 * mips-tdep.c (heuristic_proc_start): Add more MIPS16 function
4475 prologue instructions.
4477 2007-07-20 Maciej W. Rozycki <macro@mips.com>
4479 * mips-tdep.c (mips_next_pc): Use is_mips16_addr() instead of
4482 2007-07-20 Chris Dearman <chris@mips.com>
4483 Maciej W. Rozycki <macro@mips.com>
4485 * mips-tdep.c (fetch_mips_16): Fix typos and reformat the
4488 2007-07-17 Pedro Alves <pedro_alves@portugalmail.pt>
4489 Daniel Jacobowitz <dan@codesourcery.com>
4491 * config/i386/cygwin.mt (TDEPFILES): Add solib-target.o.
4492 * coff-pe-read.c (read_pe_exported_syms): Delete verbose
4494 * NEWS: Mention gdbserver DLL support.
4496 2007-07-17 Daniel Jacobowitz <dan@codesourcery.com>
4498 * dwarf2read.c (dwarf_decode_lines): Detect address size mismatches.
4500 2007-07-16 H.J. Lu <hongjiu.lu@intel.com>
4502 * i386-linux-nat.c (fetch_regs): Work around gcc 3.4 alias
4505 2007-07-13 Kevin Buettner <kevinb@redhat.com>
4507 * mep-tdep.c (mep_analyze_prologue): Update comment for BRA
4510 2007-07-12 Kevin Buettner <kevinb@redhat.com>
4512 * mep-tdep.c (IS_BRA, BRA_DISP): New macros.
4513 (mep_analyze_prologue): Add case for BRA instruction.
4515 2007-07-12 Ulrich Weigand <uweigand@de.ibm.com>
4517 * solib-svr4.c (LM_ADDR_CHECK): Relax prelink recognition heuristic.
4519 2007-07-10 Nick Roberts <nickrob@snap.net.nz>
4521 * breakpoint.c: Include "top.h".
4522 (breakpoint_1): Don't set convenience variable $_ if server prefix
4524 (_initialize_breakpoint): Describe this behaviour in command help.
4526 2007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
4528 * solib-target.c (library_list_start_segment): Cast address to
4531 2007-07-06 Mark Kettenis <kettenis@gnu.org>
4533 * bsd-uthread.c (bsd_uthread_wait): Don't try to fetch thread IDs
4534 for terminated processes.
4536 2007-07-05 Michael Snyder <msnyder@access-company.com>
4538 * event-top.c (cli_command_loop): Prompt string can (and should)
4539 be freed after call to readline (Coverity). Also move local var
4540 declarations into block where they are used.
4542 * tui/tui-interp.c (tui_command_loop): Prompt string can (and
4543 should) be freed after call to readline (Coverity). Also move
4544 local var declarations into block where they are used.
4546 2007-07-03 Andreas Schwab <schwab@suse.de>
4548 * linux-nat.c (linux_nat_info_proc_cmd): Fix parsing of columns in
4551 2007-07-03 Paul Gilliam <pgilliam@us.ibm.com>
4552 Thiago Bauermann <bauerman@br.ibm.com>
4553 Joseph S. Myers <joseph@codesourcery.com>
4554 Daniel Jacobowitz <dan@codesourcery.com>
4556 * remote.c (remote_check_symbols): Use
4557 gdbarch_convert_from_func_ptr_addr.
4558 * infcall.c (find_function_addr): Handle function descriptors
4559 without debugging information.
4560 * ppc-linux-tdep.c (ppc_linux_convert_from_func_ptr_addr): Renamed
4561 from ppc64_linux_convert_from_func_ptr_addr. Handle -msecure-plt.
4562 (ppc_linux_init_abi): Always set convert_from_func_ptr_addr.
4563 * solib-svr4.c (solib_break_names): Remove "._dl_debug_state".
4564 (bfd_lookup_symbol): Do not take a SECT_FLAGS argument. Always
4565 allow SEC_CODE and SEC_DATA.
4566 (enable_break): Update calls. Pass current_target to solib_add.
4567 Use gdbarch_convert_from_func_ptr_addr.
4569 2007-07-03 Ilko Iliev <iliev@ronetix.at>
4570 Daniel Jacobowitz <dan@codesourcery.com>
4572 * symfile.c (print_transfer_performance): Avoid integer overflow.
4575 2007-07-03 Markus Deuling <deuling@de.ibm.com>
4577 * cp-namespace.c (lookup_symbol_file): Add block to
4578 lookup_symbol_global call.
4579 * Makefile.in (solist_h): Add dependency on symtab header.
4580 (symtab.o): Add dependency on solist header.
4581 * solib.c (solib_global_lookup): New function.
4582 * solib-svr4.c (scan_dyntag): Likewise.
4583 (elf_locate_base): Call helper routine scan_dyntag.
4584 (elf_lookup_lib_symbol): New function.
4585 (_initialize_svr4_solib): Add elf_lookup_lib_symbol to svr4_so_ops.
4586 * solist.h (symtab.h): New include.
4587 (struct target_so_ops): New member lookup_lib_global_symbol.
4588 (solib_global_lookup): New prototype.
4589 * symtab.c: New include solist.h.
4590 (lookup_objfile_from_block): New function.
4591 (lookup_global_symbol_from_objfile): New function.
4592 (basic_lookup_symbol_nonlocal): Add block to lookup_symbol_global call.
4593 (lookup_symbol_global): Call library-specific lookup procedure.
4594 * symtab.h (lookup_global_symbol_from_objfile): New prototype.
4596 * NEWS: Document framework.
4598 2007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
4600 * target-descriptions.c (tdesc_create_reg): Do not set reg->type
4603 * cli/cli-script.c (build_command_line): Update NULL check.
4605 2007-07-02 Michael Snyder <msnyder@access-company.com>
4607 * p-exp.y (yylex): Memory leak, 'uptokstart' must be freed (Coverity).
4609 2007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
4611 * Makefile.in (XMLFILES): Add library-list.dtd.
4612 (ALLDEPFILES): Add solib-target.o.
4613 (solib-target.o): New rule.
4614 * remote.c (PACKET_qXfer_libraries): New constant.
4615 (remote_protocol_features): Add qXfer:libraries:read.
4616 (remote_wait): Recognize library stop replies.
4617 (remote_async_wait): Likewise. Fix typo.
4618 (remote_xfer_partial): Handle TARGET_OBJECT_LIBRARIES.
4619 (init_remote_async_ops): Fix typo.
4620 (_initialize_remote): Register "set remote library-info-packet".
4621 * solib-som.c (som_current_sos): Set addr_low and addr_high.
4622 * solib-target.c: New file.
4623 * solib.c (solib_map_sections): Use addr_low and addr_high instead
4625 (info_sharedlibrary_command): Likewise.
4626 (solib_add_library, solib_remove_library): New.
4627 * solist.h (struct so_list): Replace textsection with addr_low and
4629 * target.h (enum target_object): Add TARGET_OBJECT_LIBRARIES.
4630 * NEWS: Describe new qXfer:libraries:read and shared library
4632 * features/library-list.dtd: New.
4634 2007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
4636 * infrun.c (inferior_ignoring_startup_exec_events): Delete.
4637 (start_remote): Use STOP_QUIETLY_REMOTE.
4638 (handle_inferior_event): Do not condition TARGET_WAITKIND_LOADED
4639 support on a SOLIB_ADD definition. Update breakpoints_inserted.
4640 Update to match shared library event breakpoint support. Only
4641 resume if appropriate. Handle STOP_QUIETLY_REMOTE.
4642 (normal_stop): Handle TARGET_WAITKIND_LOADED.
4643 * fork-child.c (startup_inferior): Do not set
4644 inferior_ignoring_startup_exec_events
4645 * inferior.h (inferior_ignoring_startup_exec_events): Delete
4647 (enum stop_kind): Improve documentation. Add STOP_QUIETLY_REMOTE.
4649 2007-07-02 Markus Deuling <deuling@de.ibm.com>
4651 * breakpoint.c (insert_bp_location): Remove dead code
4652 (DISABLE_UNSETTABLE_BREAK).
4653 (disable_breakpoints_in_shlibs)
4654 (disable_breakpoints_in_unloaded_shlib): Likewise (comment).
4656 2007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
4658 * breakpoint.c (reattach_breakpoints): Do not use remove_breakpoint.
4659 Call insert_bp_location.
4661 2007-07-01 H.J. Lu <hongjiu.lu@intel.com>
4663 * core-regset.c (fetch_core_registers): Work around gcc 3.4
4666 2007-07-01 Daniel Jacobowitz <dan@codesourcery.com>
4668 * minsyms.c (lookup_minimal_symbol_by_pc_section): Search fewer
4671 2007-07-01 Daniel Jacobowitz <dan@codesourcery.com>
4673 * top.c (gdb_readline_wrapper_line): Call rl_callback_handler_remove.
4674 (struct gdb_readline_wrapper_cleanup): Remove prompt_orig.
4675 (gdb_readline_wrapper_cleanup): Do not reset the prompt.
4676 (gdb_readline_wrapper): Do not save the prompt. Pass our prompt
4677 to display_gdb_prompt.
4679 2007-07-01 Daniel Jacobowitz <dan@codesourcery.com>
4682 * target.c (memory_xfer_partial): Do not continue past targets with
4685 2007-06-30 Andreas Schwab <schwab@suse.de>
4687 * m68k-tdep.c (m68k_ps_type): New.
4688 (m68k_init_types): New.
4689 (m68k_register_type): Use m68k_ps_type for PS register.
4690 (_initialize_m68k_tdep): Call m68k_init_types.
4692 * m68k-tdep.c (m68k_gdbarch_init): Don't infer coldfire flavour
4693 from the generic m68k arch.
4695 2007-06-28 Michael Snyder <msnyder@access-company.com>
4697 * m2-typeprint.c (m2_print_type): Move pointer ref after null test
4700 * linux-thread-db.c (thread_db_get_thread_local_address): Add
4701 gdb_assert before using return value of find_thread_pid (Coverity).
4703 * source.c (unset_substitute_path_command): Plug leak (Coverity).
4705 * cli/cli-script.c (build_command_line): Add null pointer guard
4708 2007-06-27 Daniel Jacobowitz <dan@codesourcery.com>
4710 * linux-thread-db.c (thread_db_attach): Delete.
4711 (thread_db_detach): Typo fix. Call target_mourn_inferior
4712 instead of fixing up proc_handle.
4713 (have_threads_callback, have_threads): New functions.
4714 (thread_db_wait): Remove dead proc_handle.pid check. Only
4715 translate PTIDs if we have registered threads. Check for new
4716 threads if we have none.
4717 (thread_db_create_inferior, thread_db_post_startup_inferior): Delete.
4718 (find_new_threads_callback): Only enable event reporting if TID == 0.
4719 (same_ptid_callback): New.
4720 (thread_db_get_thread_local_address): Check for new threads.
4721 (init_thread_db_ops): Don't set to_attach, to_create_inferior,
4722 or to_post_startup_inferior.
4724 2007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
4726 * infrun.c (adjust_pc_after_break): Do not assume software single-step
4727 is always active if SOFTWARE_SINGLE_STEP_P is true.
4728 (resume): Use gdbarch_software_single_step[_p] instead of
4729 SOFTWARE_SINGLE_STEP[_P].
4730 (handle_inferior_event): Do not check for SOFTWARE_SINGLE_STEP_P.
4732 * gdbarch.sh (software_single_step): Remove target macro.
4733 * gdbarch.h, gdbarch.c: Regenerate.
4735 2007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
4737 * gdbarch.sh (gdbarch_swap_ftype, deprecated_register_gdbarch_swap,
4738 DEPRECATED_REGISTER_GDBARCH_SWAP): Remove.
4739 (struct gdbarch_swap, struct gdbarch_swap_registration,
4740 struct gdbarch_swap_registry, gdbarch_swap_registry,
4741 current_gdbarch_swap_init_hack, current_gdbarch_swap_out_hack,
4742 current_gdbarch_swap_in_hack): Remove.
4743 (find_arch_by_info): Do not call current_gdbarch_swap_init_hack.
4744 (gdbarch_find_by_info): Do not call current_gdbarch_swap_in_hack
4745 and current_gdbarch_swap_out_hack, update current_gdbarch directly.
4746 (deprecated_current_gdbarch_select_hack): Likewise.
4747 * gdbarch.h, gdbarch.c: Regenerate.
4749 2007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
4751 * infrun.c (clear_proceed_status): Clean up stop_registers.
4752 (normal_stop): Allocate regcache for stop_registers.
4753 (struct inferior_status): Remove stop_registers member.
4754 (save_inferior_status): Do not save stop_registers.
4755 (restore_inferior_status): Do not restore stop_registers.
4756 (discard_inferior_status): Do not discard stop_registers.
4757 (build_infrun): Remove.
4758 (_initialize_infrun): Do not swap stop_registers.
4760 2007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
4762 * remote.c (remote_address_masked): If remote_address_size is zero,
4763 default to target address size.
4764 (build_remote_gdbarch_data): Remove.
4765 (_initialize_remote): Do not swap remote_address_size.
4767 2007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
4769 * gdbtypes.h (builtin_type_true_char, builtin_type_void,
4770 builtin_type_char, builtin_type_short, builtin_type_int,
4771 builtin_type_long, builtin_type_signed_char,
4772 builtin_type_unsigned_char, builtin_type_unsigned_short,
4773 builtin_type_unsigned_int, builtin_type_unsigned_long,
4774 builtin_type_float, builtin_type_double, builtin_type_long_double,
4775 builtin_type_complex, builtin_type_double_complex, builtin_type_string,
4776 builtin_type_bool, builtin_type_long_long,
4777 builtin_type_unsigned_long_long, builtin_type_void_data_ptr,
4778 builtin_type_void_func_ptr, builtin_type_CORE_ADDR): Replace global
4779 variable declaration with compatibility macro.
4780 * gdbtypes.c (builtin_type_true_char, builtin_type_void,
4781 builtin_type_char, builtin_type_short, builtin_type_int,
4782 builtin_type_long, builtin_type_signed_char,
4783 builtin_type_unsigned_char, builtin_type_unsigned_short,
4784 builtin_type_unsigned_int, builtin_type_unsigned_long,
4785 builtin_type_float, builtin_type_double, builtin_type_long_double,
4786 builtin_type_complex, builtin_type_double_complex, builtin_type_string,
4787 builtin_type_bool, builtin_type_long_long,
4788 builtin_type_unsigned_long_long, builtin_type_void_data_ptr,
4789 builtin_type_void_func_ptr, builtin_type_CORE_ADDR): Remove.
4790 (build_gdbtypes): Remove.
4791 (_initialize_gdbtypes): Do not call build_gdbtypes, move installing
4792 opaque-type-resolution command here. Do not call
4793 deprecated_register_gdbarch_swap.
4795 2007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
4797 * gdbtypes.h (struct builtin_type): New members nodebug_text_symbol,
4798 nodebug_data_symbol, nodebug_unknown_symbol, and nodebug_tls_symbol.
4799 * gdbtypes.c (gdbtypes_post_init): Initialize nodebug_ default types.
4801 * parse.c (msym_text_symbol_type, msym_data_symbol_type): Remove.
4802 (msym_unknown_symbol_type, msym_tls_symbol_type): Remove.
4803 (write_exp_msymbol): Use builtin nodebug_ types instead of them.
4804 (build_parse): Remove.
4805 (_initialize_parse): Do not call build_parse. Do not register
4806 msym_ types for gdbarch-swapping.
4808 * dwarf2read.c (new_symbol): Use default nodebug_data_symbol type
4809 instead of creating private type.
4811 * xcoffread.c (func_symbol_type, var_symbol_type): Remove.
4812 (_initialize_xcoffread): Do not initialized them.
4813 (process_xcoff_symbol): Use builtin nodebug_ types instead of them.
4815 * mdebugread.c (nodebug_func_symbol_type): Remove.
4816 (nodebug_var_symbol_type): Remove.
4817 (_initialize_mdebugread): Do not initialize them.
4818 (parse_symbol): Use builtin nodebug_ type instead of them.
4819 (parse_procedure): Likewise.
4821 2007-06-21 Chris Dearman <chris@mips.com>
4823 * printcmd.c (do_one_display): If display/i, start with an initial
4824 line feed to avoid bad layout if there is a branch delay slot.
4826 2007-06-21 Nigel Stephens <nigel@mips.com>
4827 Maciej W. Rozycki <macro@mips.com>
4829 * disasm.c (gdb_print_insn): Return the number of branch delay
4830 slot instructions too.
4831 * disasm.h (gdb_print_insn): Update prototype.
4832 * printcmd.c (branch_delay_insns): New variable to record the
4833 number of delay slot instructions after disassembling a branch.
4834 (print_formatted): Record the number of branch delay slot
4836 (do_examine): When disassembling, if the last instruction
4837 disassembled has any branch delay slots, then bump the count so
4838 that they get disassembled too.
4839 * tui/tui-disasm.c (tui_disassemble): Update the call to
4841 * NEWS: Document the new behaviour.
4843 2007-06-21 Andreas Schwab <schwab@suse.de>
4845 * regcache.c (write_pc_pid): Restore missing else.
4847 2007-06-20 Ulrich Weigand <uweigand@de.ibm.com>
4849 * regcache.c (regcache_print): Use get_current_regcache ()
4850 instead of current_regcache.
4852 2007-06-20 H.J. Lu <hongjiu.lu@intel.com>
4855 * gcore.c (gcore_command): Use bfd_make_section_anyway_with_flags
4856 instead of bfd_make_section_anyway.
4857 (gcore_create_callback): Likewise. Also set SEC_NEVER_LOAD
4858 when clearing SEC_LOAD.
4860 2007-06-19 Joseph Myers <joseph@codesourcery.com>
4862 * arm-tdep.c (arm_push_dummy_call): Correct padding of partial
4863 registers for big-endian.
4865 2007-06-19 Markus Deuling <deuling@de.ibm.com>
4867 * gdbarch.sh (TARGET_PRINT_INSN): Replace by gdbarch_print_insn.
4868 * disasm.c (dump_insns, gdb_print_insn): Likewise.
4869 * gdbarch.c, gdbarch.h: Regenerate.
4871 2007-06-19 Markus Deuling <deuling@de.ibm.com>
4873 * gdbarch.sh (BELIEVE_PCC_PROMOTION): Replace by
4874 gdbarch_believe_pcc_promotion.
4875 * stabsread.c (define_symbol): Likewise.
4876 Remove unnecessary definition.
4877 * coffread.c (process_coff_symbol): Remove unnecessary code.
4878 * gdbarch.c, gdbarch.h: Regenerate.
4880 2007-06-19 Daniel Jacobowitz <dan@codesourcery.com>
4882 * configure.ac: Do not use ${objdir}.
4883 * configure: Regenerated.
4885 2007-06-18 Ulrich Weigand <uweigand@de.ibm.com>
4887 * gdbarch.sh (deprecated_register_size): Remove.
4888 * gdbarch.h, gdbarch.c: Regenerate.
4890 * arm-tdep.c (arm_push_dummy_call): Replace DEPRECATED_REGISTER_SIZE
4891 by INT_REGISTER_SIZE.
4892 (thumb_get_next_pc, arm_return_in_memory): Likewise.
4893 (arm_gdbarch_init): Do not call set_gdbarch_deprecated_register_size.
4894 * ia64-tdep.c (ia64_gdbarch_init): Do not call
4895 set_gdbarch_deprecated_register_size.
4897 2007-06-18 Markus Deuling <deuling@de.ibm.com>
4899 * gdbarch.sh (DEPRECATED_FP_REGNUM): Replace by
4900 gdbarch_deprecated_fp_regnum.
4901 * std-regs.c (value_of_builtin_frame_fp_reg): Likewise.
4902 * remote-mips.c (mips_wait, mips_fetch_registers): Likewise.
4903 * arch-utils.c (legacy_virtual_frame_pointer): Likewise.
4904 * arch-utils.h (gdbarch_virtual_frame_pointer_ftype): Likewise
4906 * gdbarch.c, gdbarch.h: Regenerate.
4908 2007-06-18 Markus Deuling <deuling@de.ibm.com>
4910 * gdbarch.sh (EXTRACT_RETURN_VALUE): Replace with
4911 gdbarch_extract_return_value.
4912 * value.c (generic_use_struct_convention): Likewise (comment).
4913 * ia64-tdep.c (ia64_use_struct_convention): Likewise (comment).
4914 * arch-utils.c (legacy_return_value): Likewise.
4915 * arch-utils.h (legacy_return_value): Likewise (comment).
4916 * gdbarch.sh (STORE_RETURN_VALUE): Replace by
4917 gdbarch_store_return_value.
4918 * stack.c (return_command): Likewise (comment).
4919 * arch-utils.h (legacy_return_value): Likewise (comment).
4920 * arch-utils.c (legacy_return_value): Likewise.
4921 * gdbarch.c, gdbarch.h: Regenerate.
4923 2007-06-18 Markus Deuling <deuling@de.ibm.com>
4925 * gdbarch.sh (DEPRECATED_USE_STRUCT_CONVENTION): Replace by
4926 gdbarch_deprecated_use_struct_convention.
4927 * arch-utils.c (legacy_return_value): Likewise.
4928 * gdbarch.c, gdbarch.h: Regenerate.
4930 2007-06-18 Markus Deuling <deuling@de.ibm.com>
4932 * gdbarch.sh (DEPRECATED_FUNCTION_START_OFFSET): Replace by
4933 gdbarch_deprecated_function_start_offset.
4934 * symtab.c (find_function_start_sal)skip_prologue_using_sal): Likewise.
4935 * linespec.c (minsym_found): Likewise.
4936 * infrun.c (handle_inferior_event): Likewise.
4937 * infcall.c (find_function_addr): Likewise.
4938 * cli/cli-cmds.c (disassemble_command): Likewise.
4939 * gdbarch.c, gdbarch.h: Regenerate.
4941 2007-06-18 Markus Deuling <deuling@de.ibm.com>
4943 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Replace by
4944 gdbarch_deprecated_reg_struct_has_addr.
4945 * infcall.c (call_function_by_hand): Likewise.
4946 (DEPRECATED_REG_STRUCT_HAS_ADDR_P): Replace by
4947 * gdbarch_deprecated_reg_struct_has_addr_p.
4948 * infcall.c (call_function_by_hand): Likewise.
4949 * gdbarch.c, gdbarch.h: Regenerate.
4951 2007-06-18 Markus Deuling <deuling@de.ibm.com>
4953 * gdbarch.sh (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
4954 * sh-tdep.c (sh_extract_struct_value_address): Remove.
4955 (sh_gdbarch_init): Remove
4956 set_gdbarch_deprecated_extract_struct_value_address.
4957 * sh64-tdep.c (sh64_extract_struct_value_address): Remove.
4958 (sh64_gdbarch_init): Remove
4959 set_gdbarch_deprecated_extract_struct_value_address.
4960 * ia64-tdep.c (ia64_extract_struct_value_address): Remove.
4961 (ia64_gdbarch_init): Remove
4962 set_gdbarch_deprecated_extract_struct_value_address.
4963 * frv-tdep.c (frv_extract_struct_value_address): Remove.
4964 (frv_gdbarch_init): Remove
4965 set_gdbarch_deprecated_extract_struct_value_address.
4966 * gdbarch.c, gdbarch.h: Regenerate.
4968 2007-06-18 Markus Deuling <deuling@de.ibm.com>
4970 * gdbarch.sh (SP_REGNUM): Replace by gdbarch_sp_regnum.
4971 * v850-tdep.c (v850_unwind_sp): Likewise.
4972 * std-regs.c (value_of_builtin_frame_sp_reg): Likewise.
4973 * stack.c (frame_info): Likewise.
4974 * stabsread.c (define_symbol): Likewise.
4975 * sh-tdep.c (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu)
4976 (sh_dwarf2_frame_init_reg, sh_frame_cache, sh_frame_prev_register)
4977 (sh_unwind_sp): Likewise.
4978 * sh64-tdep.c (sh64_push_dummy_call, sh64_frame_cache)
4979 (sh64_frame_prev_register, sh64_unwind_sp): Likewise.
4980 * rs6000-tdep.c (rs6000_push_dummy_call, rs6000_unwind_dummy_id)
4981 (rs6000_frame_cache): Likewise.
4982 * rs6000-nat.c (store_register): Likewise.
4983 * remote-mips.c (mips_wait): Likewise.
4984 * procfs.c (procfs_fetch_registers, procfs_store_registers): Likewise.
4985 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call)
4986 (ppc64_sysv_abi_push_dummy_call): Likewise.
4987 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_cache): Likewise.
4988 * ppcobsd-nat.c (ppcobsd_supply_pcb): Likewise.
4989 * ppcnbsd-tdep.c (ppcnbsd_sigtramp_cache_init): Likewise.
4990 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache): Likewise.
4991 * m32r-rom.c (m32r_supply_register): Likewise.
4992 * frame.c (frame_sp_unwind): Likewise.
4993 * mips-tdep.c (mips_insn16_frame_cache)
4994 (mips_insn32_frame_cache): Likewise (comment).
4995 * m68klinux-nat.c (supply_gregset): Likewise.
4996 * m68k-tdep.c (m68k_get_longjmp_target): Likewise.
4997 * ia64-tdep.c (ia64_frame_prev_register): Likewise.
4998 * i386-tdep.c (i386_get_longjmp_target): Likewise.
4999 * dwarf2-frame.c (dwarf2_frame_default_init_reg): Likewise.
5000 * cris-tdep.c (cris_regnums, cris_sigcontext_addr)
5001 (cris_sigtramp_frame_unwind_cache, cris_push_dummy_call)
5002 (cris_scan_prologue, crisv32_scan_prologue, cris_unwind_sp)
5003 (cris_register_type, crisv32_register_type)
5004 (cris_dwarf2_frame_init_reg): Likewise.
5005 * arch-utils.c (legacy_virtual_frame_pointer): Likewise.
5006 * amd64-tdep.c (amd64_frame_prev_register): Likewise.
5007 * amd64-linux-tdep.c (amd64_linux_sigcontext_addr): Likewise.
5008 * libunwind-frame.c (libunwind_frame_cache): Likewise.
5010 * gdbarch.sh (PC_REGNUM): Replace by gdbarch_pc_regnum.
5011 * regcache.c (read_pc_pid, generic_target_write_pc): Likewise.
5012 * xtensa-tdep.c (xtensa_register_type, xtensa_supply_gregset)
5013 (xtensa_unwind_pc, xtensa_frame_cache, xtensa_frame_prev_register)
5014 (xtensa_extract_return_value, xtensa_store_return_value): Likewise.
5015 * v850-tdep.c (v850_unwind_pc): Likewise.
5016 * stack.c (frame_info): Likewise.
5017 * sh-tdep.c (sh_generic_show_regs, sh3_show_regs, sh2e_show_regs)
5018 (sh2a_show_regs, sh2a_nofpu_show_regs, sh3e_show_regs)
5019 (sh3_dsp_show_regs, sh4_show_regs, sh4_nofpu_show_regs)
5020 (sh_dwarf2_frame_init_reg, sh_frame_prev_register, sh_unwind_pc)
5021 (sh_dsp_show_regs): Likewise.
5022 * shnbsd-tdep.c (shnbsd_supply_gregset)
5023 (shnbsd_collect_gregset): Likewise.
5024 * shnbsd-nat.c (GETREGS_SUPPLIES): Likewise.
5025 * sh64-tdep.c (sh64_compact_reg_base_num, sh64_show_media_regs)
5026 (sh64_frame_prev_register, sh64_unwind_pc): Likewise.
5027 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset)
5028 (6000_register_reggroup_p, rs6000_unwind_pc)
5029 (rs6000_frame_cache): Likewise.
5030 * rs6000-nat.c (regmap, rs6000_fetch_inferior_registers)
5031 (rs6000_store_inferior_registers): Likewise.
5032 * remote-mips.c (mips_wait, mips_load): Likewise.
5033 * procfs.c (procfs_fetch_registers, procfs_store_registers): Likewise.
5034 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_cache): Likewise.
5035 * ppcobsd-nat.c (ppcobsd_supply_pcb): Likewise.
5036 * ppcnbsd-tdep.c (ppcnbsd_sigtramp_cache_init): Likewise.
5037 * ppcnbsd-nat.c (getregs_supplies, ppcnbsd_supply_pcb): Likewise.
5038 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache): Likewise.
5039 * ppc-linux-nat.c (ppc_register_u_addr, fetch_ppc_registers)
5040 (store_ppc_registers, fill_gregset): Likewise.
5041 * mips-tdep.c (mips_stub_frame_cache, mips_gdbarch_init): Likewise.
5042 * mipsnbsd-tdep.c (mipsnbsd_supply_reg, mipsnbsd_fill_reg): Likewise.
5043 * mipsnbsd-nat.c (getregs_supplies): Likewise.
5044 * m68k-tdep.c (m68k_register_type, m68k_unwind_pc): Likewise.
5045 * m68klinux-nat.c (supply_gregset): Likewise.
5046 * irix5-nat.c (fill_gregset): Likewise.
5047 * i386-tdep.c (i386_unwind_pc): Likewise.
5048 * i386-linux-nat.c (i386_linux_resume): Likewise.
5049 * frame.c (get_prev_frame_1): Likewise.
5050 * dwarf2-frame.c (dwarf2_frame_default_init_reg): Likewise.
5051 * dbug-rom.c (dbug_supply_register): Likewise.
5052 * cris-tdep.c (cris_sigtramp_frame_unwind_cache, cris_scan_prologue)
5053 (crisv32_scan_prologue, cris_unwind_pc, cris_register_size)
5054 (cris_register_type, crisv32_register_type, crisv32_register_name)
5055 (cris_dwarf2_frame_init_reg, find_step_target)
5056 (cris_software_single_step, cris_supply_gregset)
5057 (cris_regnums): Likewise.
5058 * alpha-linux-nat.c (alpha_linux_register_u_offset): Likewise.
5059 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
5060 (fill_sprs64, fill_sprs32, store_regs_user_thread): Likewise.
5061 * std-regs.c (value_of_builtin_frame_pc_reg): Likewise.
5062 * mips-linux-tdep.c (mips_linux_write_pc): Likewise.
5064 * gdbarch.sh (PS_REGNUM): Replace by gdbarch_ps_regnum.
5065 * dbug-rom.c (dbug_supply_register): Likewise.
5066 * xtensa-tdep.c (xtensa_supply_gregset, xtensa_frame_cache)
5067 (xtensa_frame_prev_register, xtensa_push_dummy_call): Likewise.
5068 * win32-nat.c (win32_resume): Likewise.
5069 * std-regs.c (value_of_builtin_frame_ps_reg): Likewise.
5070 * m68k-tdep.c (m68k_register_type): Likewise.
5071 * m68klinux-nat.c (supply_gregset): Likewise.
5073 * gdbarch.sh (FP0_REGNUM): Replace by gdbarch_fp0_regnum.
5074 * sh-tdep.c (sh_extract_return_value_fpu, sh_store_return_value_fpu)
5075 (sh2e_show_regs, sh2a_show_regs, sh3e_show_regs, sh4_show_regs)
5076 (sh_sh2a_register_type, sh_sh3e_register_type, sh_sh4_register_type)
5077 (fv_reg_base_num, dr_reg_base_num): Likewise.
5078 * sh64-tdep.c (sh64_fv_reg_base_num, sh64_dr_reg_base_num)
5079 (sh64_fpp_reg_base_num, sh64_compact_reg_base_num, sh64_push_dummy_call)
5080 (sh64_extract_return_value, sh64_store_return_value)
5081 (sh64_show_media_regs, sh64_show_compact_regs, sh64_register_type)
5082 (sh64_do_fp_register, sh64_media_print_registers_info): Likewise.
5083 * procfs.c (procfs_fetch_registers, procfs_store_registers)
5084 (invalidate_cache): Likewise.
5085 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache): Likewise.
5086 * mipsnbsd-tdep.c (mipsnbsd_supply_fpreg)
5087 (mipsnbsd_fill_fpreg): Likewise.
5088 * mipsnbsd-nat.c (mipsnbsd_fetch_inferior_registers)
5089 (mipsnbsd_store_inferior_registers): Likewise.
5090 * mips-linux-tdep.c (mips_supply_fpregset, mips_fill_fpregset)
5091 (mips64_supply_fpregset, mips64_fill_fpregset): Likewise.
5092 * mips-linux-nat.c (mips64_linux_register_addr): Likewise.
5093 * m68k-tdep.c (m68k_register_type, m68k_convert_register_p): Likewise.
5094 * m68klinux-nat.c (getfpregs_supplies, supply_fpregset)
5095 (fill_fpregset): Likewise.
5096 * irix5-nat.c (supply_fpregset, fill_fpregset): Likewise.
5097 * i386-tdep.h (struct_return): Likewise (comment).
5098 * i386-nto-tdep.c (i386nto_register_area): Likewise.
5099 * go32-nat.c (fetch_register, go32_fetch_registers, store_register)
5100 (go32_store_registers): Likewise.
5101 * alpha-tdep.c (alpha_next_pc): Likewise.
5102 * alpha-linux-nat.c (alpha_linux_register_u_offset): Likewise.
5103 * alphabsd-nat.c (alphabsd_fetch_inferior_registers)
5104 (alphabsd_store_inferior_registers): Likewise.
5105 * core-regset.c (fetch_core_registers): Likewise.
5106 * i386v4-nat.c (supply_fpregset, fill_fpregset): Likewise.
5108 * gdbarch.c, gdbarch.h: Regenerate.
5110 2007-06-18 Daniel Jacobowitz <dan@codesourcery.com>
5112 * coffread.c (coff_sym_fns): Add default_symfile_segments.
5113 * dbxread.c (start_psymtab): Check HAVE_ELF.
5114 (aout_sym_fns): Likewise.
5115 * elfread.c (elf_symfile_segments): New.
5116 (elf_sym_fns): Add elf_symfile_segments.
5117 * mipsread.c (ecoff_sym_fns): Add default_symfile_segments.
5118 * remote.c (get_offsets): Use symfile_map_offsets_to_segments.
5119 Skip if there is no symfile_objfile. Handle TextSeg and DataSeg.
5120 * somread.c (som_sym_fns): Use default_symfile_segments.
5121 * symfile.c (find_sym_fns): Take a BFD and return the sym_fns.
5122 (init_objfile_sect_indices): Call symfile_find_segment_sections.
5123 (default_symfile_segments): New function.
5124 (syms_from_objfile): Update call to find_sym_fns.
5125 (symfile_get_segment_data, free_symfile_segment_data): New.
5126 (symfile_map_offsets_to_segments): New.
5127 (symfile_find_segment_sections): New.
5128 * symfile.h (struct symfile_segment_data): New.
5129 (struct sym_fns): Add sym_segments.
5130 (default_symfile_segments, symfile_get_segment_data)
5131 (free_symfile_segment_data): New prototypes.
5132 (symfile_map_offsets_to_segments): Likewise.
5133 * xcoffread.c (xcoff_sym_fns): Add default_symfile_segments.
5134 * Makefile.in (COMMON_OBS): Remove elfread.o.
5135 (elf_internal_h): New.
5136 (elfread.o): Update.
5137 * configure.ac: Add elfread.o to COMMON_OBS if bfd/elf.o was
5139 * config.in, configure: Regenerated.
5140 * NEWS: Mention qOffsets changes.
5142 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
5144 * gdbtypes.h (builtin_type_m2_char, builtin_type_m2_int,
5145 builtin_type_m2_card, builtin_type_m2_real, builtin_type_m2_bool):
5146 Replace global variable declaration with compatibility macro.
5147 (struct builtin_m2_type): New data type.
5148 (builtin_m2_type): Add prototype.
5149 * m2-lang.c (builtin_type_m2_char, builtin_type_m2_int,
5150 builtin_type_m2_card, builtin_type_m2_real, builtin_type_m2_bool):
5151 Remove global variables.
5152 (m2_language_arch_info): Use builtin_m2_type instead of variables.
5153 (build_m2_types): New function.
5154 (m2_type_data): New variable.
5155 (builtin_m2_type): New function.
5156 (_initialize_m2_language): Do not build data types. Register
5157 m2_type_data per-gdbarch data.
5159 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
5161 * gdbtypes.h (builtin_type_f_character, builtin_type_f_logical,
5162 builtin_type_f_logical_s1, builtin_type_f_logical_s2,
5163 builtin_type_f_integer, builtin_type_f_integer_s2, builtin_type_f_real,
5164 builtin_type_f_real_s8, builtin_type_f_real_s16,
5165 builtin_type_f_complex_s8, builtin_type_f_complex_s16,
5166 builtin_type_f_complex_s32, builtin_type_f_void): Replace global
5167 variable declaration with compatibility macro.
5168 (struct builtin_f_type): New data type.
5169 (builtin_f_type): Add prototype.
5170 * f-lang.c (builtin_type_f_character, builtin_type_f_logical,
5171 builtin_type_f_logical_s1, builtin_type_f_logical_s2,
5172 builtin_type_f_integer, builtin_type_f_integer_s2, builtin_type_f_real,
5173 builtin_type_f_real_s8, builtin_type_f_real_s16,
5174 builtin_type_f_complex_s8, builtin_type_f_complex_s16,
5175 builtin_type_f_complex_s32, builtin_type_f_void): Remove variables.
5176 (f_language_arch_info): Use builtin_f_type instead of variables.
5177 (build_fortran_types): Build builtin_f_type structure instead of
5178 setting global type variables.
5179 (f_type_data): New variable.
5180 (builtin_f_type): New function.
5181 (_initialize_f_language): Do not call build_fortran_types. Do not
5182 swap global type variables. Register f_type_data per-gdbarch data.
5184 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
5186 * f-lang.c (_initialize_f_language): Do not initialize or
5187 swap builtin_type_string.
5189 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
5191 * std-regs.c (builtin_type_frame_reg, build_builtin_type_frame_reg,
5192 value_of_builtin_frame_reg): Remove.
5193 (_initialize_frame_reg): Do not swap builtin_type_frame_reg. Remove
5194 inactive call to value_of_builtin_frame_reg.
5196 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
5198 * gdbarch.sh (bfd_vma_bit): Remove.
5199 * gdbarch.c, gdbarch.h: Regenerate.
5201 * gdbtypes.h (builtin_bfd_vma_type): Remove.
5202 * gdbtypes.h (builtin_bfd_vma_type): Remove.
5203 (build_gdbtypes): Do not initialize it.
5204 (_initialize_gdbtypes): Do not swap it.
5206 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
5208 * gdbtypes.c (builtin_type_v2_double, builtin_type_v4_float,
5209 builtin_type_v2_int64, builtin_type_v4_int32, builtin_type_v8_int16,
5210 builtin_type_v16_int8, builtin_type_v2_float, builtin_type_v2_int32,
5211 builtin_type_v4_int16, builtin_type_v8_int8, builtin_type_v4sf,
5212 builtin_type_v4si, builtin_type_v16qi, builtin_type_v8qi,
5213 builtin_type_v8hi, builtin_type_v4hi, builtin_type_v2si,
5214 builtin_type_vec64, builtin_type_vec128): Remove.
5215 (init_simd_type): Remove.
5216 (init_vector_type): Make global.
5217 (build_builtin_type_vec64, build_builtin_type_vec128): Remove.
5218 (build_gdbtypes): Do not build vector types.
5219 (_initialize_gdbtypes): Do not swap vector types.
5220 * gdbtypes.h (builtin_type_v2_double, builtin_type_v4_float,
5221 builtin_type_v2_int64, builtin_type_v4_int32, builtin_type_v8_int16,
5222 builtin_type_v16_int8, builtin_type_v2_float, builtin_type_v2_int32,
5223 builtin_type_v4_int16, builtin_type_v8_int8, builtin_type_v4sf,
5224 builtin_type_v4si, builtin_type_v16qi, builtin_type_v8qi,
5225 builtin_type_v8hi, builtin_type_v4hi, builtin_type_v2si,
5226 builtin_type_vec64, builtin_type_vec128): Remove declarations.
5227 (init_vector_type): Add prototype.
5229 * i386-tdep.h (struct gdbarch_tdep): Add i386_mmx_type and
5230 i386_sse_type members.
5231 (i386_mmx_type, i386_sse_type): Change from variables to functions.
5232 * i386-tdep.c (i386_mmx_type, i386_sse_type): Remove variables.
5233 (i386_init_types): Do not build vector types.
5234 (i386_mmx_type, i386_sse_type): New functions.
5235 (i386_register_type): Call them instead of using global variables.
5236 (i386_gdbarch_init): Use XCALLOC to allocate tdep structure.
5237 * amd64-tdep.c (amd64_register_type): Call i386_sse_type instead
5238 of using global variable.
5240 * rs6000-tdep.h (struct gdbarch_tdep): Add ppc_builtin_type_vec64
5241 and ppc_builtin_type_vec128 members.
5242 * rs6000-tdep.c (rs6000_builtin_type_vec64): New function.
5243 (rs6000_builtin_type_vec128): Likewise.
5244 (rs6000_register_type): Call them instead of using builtin_type_vec64
5245 and builtin_type_vec128.
5246 (rs6000_gdbarch_init): Use XCALLOC to allocate tdep structure.
5248 * spu-tdep.c (struct gdbarch_tdep): New data type.
5249 (spu_builtin_type_vec128): Remove variable.
5250 (spu_builtin_type_vec128): New function.
5251 (spu_register_type): Call it instead of using global variable.
5252 (spu_gdbarch_init): Allocate tdep structure.
5253 (spu_init_vector_type): Remove function.
5254 (_initialize_spu_tdep): Do not call it.
5256 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
5258 * amd64-tdep.c (struct amd64_register_info): Remove.
5259 (amd64_register_info): Remove.
5260 (amd64_register_names): New static variable.
5261 (AMD64_NUM_REGS): Use amd64_register_names instead of
5262 amd64_register_info.
5263 (amd64_register_name): Likewise.
5264 (amd64_register_type): Do not refer to amd64_register_info.
5266 * s390-tdep.c (struct s390_register_info): Remove.
5267 (s390_register_info): Remove.
5268 (s390_register_name): Do not refer to s390_register_info.
5269 (s390_register_type): Likewise.
5271 * sparc64-tdep.c (struct sparc64_register_info): Remove.
5272 (sparc64_register_info, sparc64_pseudo_register_info): Remove.
5273 (sparc64_register_names, sparc64_pseudo_register_names): New.
5274 (SPARC64_NUM_REGS, SPARC64_NUM_PSEUDO_REGS): Use
5275 sparc64_register_names and sparc64_pseudo_register_names instead of
5276 sparc64_register_info and sparc64_pseudo_register_info.
5277 (sparc64_register_name): Likewise.
5278 (sparc64_register_type): Do not refer to sparc64_register_info
5279 and sparc64_pseudo_register_info.
5281 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
5283 * c-lang.c (cplus_builtin_types): Remove.
5284 (enum cplus_primitive_types): New data type.
5285 (cplus_language_arch_info): New function.
5286 (cplus_language_defn): Set la_language_arch_info member. Do not set
5287 la_builtin_type_vector and string_char_type members.
5289 * f-lang.c (f_builtin_types): Remove.
5290 (enum f_primitive_types): New data type.
5291 (f_language_arch_info): New function.
5292 (f_language_de): Set la_language_arch_info member. Do not set
5293 la_builtin_type_vector and string_char_type members.
5295 * m2-lang.c (m2_builtin_types): Remove.
5296 (enum m2_primitive_types): New data type.
5297 (m2_language_arch_info): New function.
5298 (m2_language_defn): Set la_language_arch_info member. Do not set
5299 la_builtin_type_vector and string_char_type members.
5301 * objc-lang.c (objc_builtin_types): Remove.
5302 (objc_language): Set la_language_arch_info member. Do not set
5303 la_builtin_type_vector and string_char_type members.
5305 * p-lang.c (pascal_builtin_types): Remove.
5306 (enum pascal_primitive_types): New data type.
5307 (pascal_language_arch_info): New function.
5308 (pascal_language_defn): Set la_language_arch_info member. Do not set
5309 la_builtin_type_vector and string_char_type members.
5311 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
5313 * regcache.c (struct regcache): Add ptid_t member.
5314 (regcache_xmalloc): Initialize it.
5315 (regcache_cpy_no_passthrough): Do not refer to current_regcache.
5316 (regcache_dup): Likewise.
5317 (regcache_dup_no_passthrough): Likewise.
5318 (current_regcache): Make static.
5319 (registers_ptid): Remove variable.
5320 (get_thread_regcache): New function.
5321 (get_current_regcache): New function.
5322 (registers_changed): Implement by freeing current regcache.
5323 (regcache_raw_read): Do not refer to current_regcache. Set
5324 inferior_ptid to regcache->ptid while calling target routines.
5325 (regcache_raw_write): Likewise.
5326 (regcache_raw_supply): Do not refer to current_regcache.
5327 (read_pc_pid): Use thread regcache. Do not modify inferior_ptid.
5328 (write_pc_pid): Likewise.
5329 (build_regcache): Remove.
5330 (_initialize_regcache): Do not call DEPRECATED_REGISTER_GDBARCH_SWAP
5331 or deprecated_register_gdbarch_swap. Do not initialize
5333 * regcache.h (get_current_regcache): Add prototype.
5334 (get_thread_regcache): Likewise.
5335 (current_regcache): Remove declaration.
5337 * corelow.c (core_open): Replace current_regcache by
5338 get_current_regcache ().
5339 * frame.c (frame_pop): Likewise.
5340 (put_frame_register): Likewise.
5341 (get_current_frame, create_new_frame): Likewise.
5342 * mi/mi-main.c (mi_cmd_data_write_register_values): Likewise.
5343 * stack.c (return_command): Likewise.
5344 * infcall.c (call_function_by_hand): Likewise.
5345 * infrun.c (resume): Likewise.
5346 (save_inferior_status, restore_inferior_status): Likewise.
5347 * linux-fork.c (fork_load_infrun_state): Likewise.
5348 (fork_save_infrun_state): Likewise.
5349 * win32-nat.c (win32_resume): Likewise.
5350 * i386fbsd-nat.c (i386fbsd_resume): Likewise.
5351 * monitor.c (monitor_wait): Likewise.
5352 * remote.c (remote_wait): Likewise.
5353 * remote-mips.c (mips_wait): Likewise.
5355 * bsd-kvm.c (bsd_kvm_open): Likewise
5356 (bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd): Likewise.
5357 * fbsd-nat.c (fbsd_make_corefile_notes): Likewise.
5358 * i386-linux-nat.c (i386_linux_resume): Likewise.
5359 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Likewise.
5360 (ia64_linux_stopped_data_address): Likewise.
5362 * frv-tdep.c (frv_fdpic_loadmap_addresses): Likewise.
5363 * m32c-tdep.c (m32c_virtual_frame_pointer): Likewise.
5364 * mep-tdep.c (current_me_module, current_options): Likewise.
5365 * mips-tdep.c (deprecated_mips_set_processor_regs_hack): Likewise.
5367 * linux-nat.c (linux_nat_do_thread_registers): Use thread
5368 regcache instead of current_regcache. Call target_fetch_registers.
5369 (linux_nat_corefile_thread_callback): Update call site.
5370 (linux_nat_do_registers): Likewise.
5371 * procfs.c (procfs_do_thread_registers): Use thread regcache instead
5372 of current_regcache.
5373 (procfs_make_note_section): Likewise.
5374 * proc-service.c (ps_lgetregs, ps_lsetregs): Likewise.
5375 (ps_lgetfpregs, ps_lsetfpregs): Likewise.
5376 * sol-thread.c (ps_lgetregs, ps_lsetregs): Likewise.
5377 (ps_lgetfpregs, ps_lsetfpregs): Likewise.
5379 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
5381 * regcache.c (read_register, read_register_pid): Remove.
5382 (write_register, write_register_pid): Likewise.
5383 * regcache.h (read_register, read_register_pid): Remove prototype.
5384 (write_register, write_register_pid): Likewise.
5386 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
5388 * gdbarch.sh (read_pc): Add REGCACHE argument. Remove PTID argument.
5389 (write_pc): Likewise. Remove default implementation, add predicate.
5390 * gdbarch.c, gdbarch.h: Regenerate.
5391 * regcache.c (read_pc_pid): Use current regcache instead of calling
5393 (write_pc_pid): Check gdbarch_write_pc predicate, implement default
5395 (generic_target_write_pc): Remove.
5396 * inferior.h (generic_target_write_pc): Remove.
5397 * frv-tdep.c (frv_gdbarch_init): Do not install it.
5398 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
5399 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
5400 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
5401 * sh-tdep.c (sh_gdbarch_init): Likewise.
5402 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
5404 * avr-tdep.c (avr_read_pc): Add REGCACHE argument. Remove PTID
5405 argument. Use REGCACHE instead of calling read_register_pid.
5406 * hppa-hpux-tdep.c (hppa_hpux_read_pc): Likewise.
5407 * hppa-tdep.c (hppa_read_pc): Likewise.
5408 * hppa-tdep.h (hppa_read_pc): Likewise.
5409 * ia64-tdep.c (ia64_read_pc): Likewise.
5410 * m32r-tdep.c (m32r_read_pc): Likewise.
5411 * mep-tdep.c (mep_read_pc): Likewise.
5412 * mn10300-tdep.c (mn10300_read_pc): Likewise.
5413 * spu-tdep.c (spu_read_pc): Likewise.
5415 * arm-tdep.c (arm_write_pc): Add REGCACHE argument. Remove PTID
5416 argument. Use REGCACHE instead of calling write_register_pid.
5417 * avr-tdep.c (avr_write_pc): Likewise.
5418 * hppa-hpux-tdep.c (hppa_hpux_write_pc): Likewise.
5419 * hppa-tdep.c (hppa_write_pc): Likewise.
5420 * hppa-tdep.h (hppa_write_pc): Likewise.
5421 * i386-linux-tdep.c (i386_linux_write_pc): Likewise.
5422 * amd64-linux-tdep.c (amd64_linux_write_pc): Likewise.
5423 * ia64-linux-tdep.c (ia64_linux_write_pc): Likewise.
5424 * ia64-tdep.c (ia64_write_pc): Likewise.
5425 * ia64-tdep.h (ia64_write_pc): Likewise.
5426 * m32r-tdep.c (m32r_write_pc): Likewise.
5427 * m88k-tdep.c (m88k_write_pc): Likewise.
5428 * mep-tdep.c (mep_write_pc): Likewise.
5429 * mips-tdep.c (mips_write_pc): Likewise.
5430 * mips-linux-tdep.c (mips_linux_write_pc): Likewise.
5431 * mn10300-tdep.c (mn10300_write_pc): Likewise.
5432 * sparc-tdep.c (sparc_write_pc): Likewise.
5433 * spu-tdep.c (spu_write_pc): Likewise.
5435 * mips-tdep.c (read_signed_register): Remove.
5436 (read_signed_register_pid): Likewise.
5437 (mips_read_pc): Add REGCACHE argument. Remove PTID argument.
5438 Use REGCACHE instead of calling read_signed_register_pid.
5440 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
5442 * gdbarch.sh (push_dummy_code): Add REGCACHE argument.
5443 * gdbarch.c, gdbarch.h: Regenerate.
5444 * infcall.c (generic_push_dummy_code): Add REGCACHE argument.
5445 (push_dummy_code): Likewise. Pass it to callee.
5446 (call_function_by_hand): Pass current regcache to push_dummy_code.
5448 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Add REGCACHE
5449 argument. Use it instead of current_regcache.
5451 * cris-tdep.c (cris_push_dummy_code): Add REGCACHE argument.
5452 * sparc-tdep.c (sparc32_push_dummy_code): Likewise.
5454 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
5456 * gdbarch.sh (get_longjmp_target): Add FRAME argument.
5457 * gdbarch.c, gdbarch.h: Regenerate.
5458 * infrun.c (handle_inferior_event): Pass current frame to
5459 gdbarch_get_longjmp_target.
5461 * alpha-tdep.c (alpha_get_longjmp_target): Add FRAME argument.
5462 Read registers from FRAME instead of using read_register.
5463 Use get_frame_arch instead of current_gdbarch.
5464 * arm-tdep.c (arm_get_longjmp_target): Likewise.
5465 * i386-tdep.c (i386_get_longjmp_target): Likewise.
5466 * m68k-tdep.c (m68k_get_longjmp_target): Likewise.
5467 * mips-linux-tdep.c (mips_linux_get_longjmp_target): Likewise.
5468 (mips64_linux_get_longjmp_target): Likewise.
5469 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Likewise.
5471 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
5473 * gdbarch.sh (skip_trampoline_code): Add FRAME argument.
5474 * gdbarch.c, gdbarch.h: Regenerate.
5475 * arch-utils.c (generic_skip_trampoline_code): Add FRAME argument.
5476 * arch-utils.h (generic_skip_trampoline_code): Likewise.
5477 * infrun.c (handle_inferior_event): Pass current frame to
5478 gdbarch_skip_trampoline_code and skip_language_trampoline.
5480 * language.c (unk_lang_trampoline): Add FRAME argument.
5481 (skip_language_trampoline): Add FRAME argument. Pass it to
5482 skip_trampoline callback.
5483 * language.h: Add forward declaration of struct frame_info.
5484 (struct language_defn): Add FRAME argument to skip_trampoline.
5485 (skip_language_trampoline): Add FRAME argument.
5486 * cp-abi.c (cplus_skip_trampoline): Add FRAME argument. Pass it
5487 to skip_trampoline callback.
5488 * cp-abi.h: Add forward declaration of struct frame_info.
5489 (cplus_skip_trampoline): Add FRAME argument.
5490 (struct cp_abi_ops): Add FRAME argument to skip_trampoline callback.
5491 * gnu-v3-abi.c (gnuv3_skip_trampoline): Add FRAME argument. Pass it
5492 to gdbarch_skip_trampoline_code.
5493 * objc-lang.c (objc_skip_trampoline): Add FRAME argument. Pass it
5494 to gdbarch_skip_trampoline_code.
5496 * minsyms.c (find_solib_trampoline_target): Add FRAME argument.
5497 * symtab.h (find_solib_trampoline_target): Likewise.
5498 * obsd-tdep.c (obsd_skip_solib_resolver): Pass current frame to
5499 find_solib_trampoline_target.
5501 * arm-tdep.c (arm_skip_stub): Add FRAME argument. Read registers
5502 from FRAME instead of calling read_register.
5504 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code): Add FRAME
5505 argument. Read registers from FRAME instead of using read_register.
5506 * hppa-tdep.c (hppa_skip_trampoline_code): Likewise.
5507 * hppa-tdep.h (hppa_skip_trampoline_code): Add FRAME argument.
5509 * i386-cygwin-tdep.c (i386_cygwin_skip_trampoline_code): Add FRAME
5512 * m32c-tdep.c (m32c_skip_trampoline_code): Add FRAME argument.
5514 * mips-tdep.c (mips_skip_trampoline_code): Add FRAME argument. Read
5515 registers from FRAME instead of using read_signed_register.
5517 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Add FRAME
5519 (ppc64_standard_linkage_target): Likewise. Read registers from FRAME
5520 instead of using read_register.
5521 (ppc64_skip_trampoline_code): Add FRAME argument. Pass it to
5522 ppc64_standard_linkage_target.
5523 * rs6000-tdep.c (rs6000_skip_trampoline_code): Add FRAME argument.
5524 Pass it to find_solib_trampoline_target. Read registers from FRAME
5525 instead of using read_register.
5527 * xstormy16-tdep.c (xstormy16_skip_trampoline_code): Add FRAME
5530 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
5532 * gdbarch.sh (software_single_step): Replace REGCACHE argument by
5534 * gdbarch.c, gdbarch.h: Regenerate.
5535 * infrun.c (resume): Pass current frame to SOFTWARE_SINGLE_STEP.
5537 * alpha-tdep.c (alpha_next_pc): Add FRAME argument. Retrieve
5538 registers from FRAME instead of using read_register.
5539 (alpha_software_single_step): Replace REGCACHE by FRAME. Pass FRAME
5540 to alpha_next_pc. Use get_frame_pc instead of read_pc.
5541 * alpha-tdep.h (alpha_software_single_step): Replace REGCACHE
5544 * arm-tdep.c (shifted_reg_val): Add FRAME argument. Read registers
5545 from FRAME instead of using read_register.
5546 (thumb_get_next_pc): Likewise.
5547 (arm_get_next_pc): Likewise.
5548 (arm_software_single_step): Replace REGCACHE by FRAME. Pass FRAME
5549 to arm_get_next_pc. Use get_frame_pc instead of read_register.
5550 * arm-tdep.h (arm_software_single_step): Replace REGCACHE
5553 * cris-tdep.c (find_step_target): Add FRAME argument. Read registers
5554 from FRAME instead of using read_register.
5555 (cris_software_single_step): Replace REGCACHE by FRAME. Pass FRAME
5556 to find_step_target.
5558 * mips-tdep.c (mips32_next_pc): Add FRAME argument. Read registers
5559 from FRAME instead of using read_register / read_signed_register.
5560 (extended_mips16_next_pc): Likewise.
5561 (mips16_next_pc): Likewise.
5562 (mips_next_pc): Likewise.
5563 (mips_software_single_step): Replace REGCACHE by FRAME. Pass FRAME
5564 to mips_next_pc. Use get_frame_pc instead of read_pc.
5565 * mips-tdep.h (mips_software_single_step): Replace REGCACHE
5568 * rs6000-tdep.c (branch_dest): Add FRAME argument. Use it instead
5569 of current frame. Read registers from FRAME.
5570 (deal_with_atomic_sequence): Add FRAME argument. Pass it to
5571 branch_dest. Use get_frame_pc instead of read_pc.
5572 (rs6000_software_single_step): Likewise.
5573 (bl_to_blrl_insn_p): Do not call branch_dest.
5574 * rs6000-tdep.h (rs6000_software_single_step): Replace REGCACHE
5577 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Add FRAME argument.
5578 Read registers from FRAME instead of current regcache.
5579 * sparc-linux-tdep.c (sparc32_linux_step_trap): Likewise.
5580 * sparcnbsd-tdep.c (sparcnbsd_step_trap): Likewise.
5581 * sparc-tdep.c (sparc_address_from_register): Remove.
5582 (sparc_analyze_control_transfer): Pass FRAME argument instead of
5583 GDBARCH. Pass FRAME to step_trap callback.
5584 (sparc_step_trap): Add FRAME argument.
5585 (space_software_single_step): Replace REGCACHE by FRAME. Pass FRAME
5586 to sparc_analyze_control_transfer. Read registers from FRAME instead
5587 of calling sparc_address_from_register.
5588 * sparc-tdep.h (struct gdbarch_tdep): Add FRAME argument to
5590 (sparc_address_from_register): Remove prototype.
5591 (sparc_software_single_step): Replace REGCACHE argument by FRAME.
5592 (sparcnbsd_step_trap): Add FRAME argument.
5594 * spu-tdep.c (spu_software_single_step): Replace REGCACHE argument
5595 by FRAME. Read registers from FRAME instead of REGCACHE.
5597 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
5599 * arm-tdep.c (arm_print_float_info): Use register value from FRAME
5600 instead of calling read_register.
5602 * avr-tdep.c (avr_push_dummy_call): Write to REGCACHE instead of
5603 calling write_register.
5605 * hppa-tdep.c (hppa32_push_dummy_call): Write to REGCACHE instead of
5606 calling write_register.
5608 * ia64-tdep.c (find_func_descr): Add REGCACHE parameter. Use it
5609 instead of calling read_register.
5610 (ia64_push_dummy_call): Update call to find_func_descr. Use REGCACHE
5611 instead of calling read_register and write_register.
5613 * m32r-tdep.c (m32r_linux_supply_gregset): Use REGCACHE parameter
5614 instead of current_regcache.
5616 * mn10300-tdep.c (mn10300_push_dummy_call): Write to REGCACHE instead
5617 of calling write_register.
5618 * mn10300-linux-tdep.c (am33_supply_fpregset_method): Use REGCACHE
5619 parameter instead of current_regcache.
5621 * mips-tdep.c (mips2_fp_compat): Add FRAME parameter. Use it
5622 instead of calling read_register.
5623 (mips_read_fp_register_double, mips_print_fp_register): Update calls.
5624 (mips_eabi_push_dummy_call): Use REGCACHE instead of write_register.
5625 (mips_n32n64_push_dummy_call): Likewise.
5626 (mips_o32_push_dummy_call): Likewise.
5627 (mips_o64_push_dummy_call): Likewise.
5629 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Use REGCACHE
5630 parameter instead of current_regcache.
5632 * xtensa-tdep.c (xtensa_register_write_masked): Add REGCACHE parameter.
5633 Use it instead of read_register and write_register.
5634 (xtensa_register_read_masked): Likewise.
5635 (xtensa_pseudo_register_read): Update call.
5636 (xtensa_pseudo_register_write): Likewise.
5637 (xtensa_frame_cache): Use register values unwound from NEXT_FRAME
5638 instead of calling read_register.
5639 (xtensa_push_dummy_call): Update comment.
5641 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
5643 * mips-tdep.c (mips16_scan_prologue): Replace read_next_frame_reg
5644 by frame_unwind_register_signed calls.
5645 (mips32_scan_prologue): Likewise. Skip analysis of alloca stack
5646 frame allocations when called with NULL NEXT_FRAME parameter.
5647 (read_next_frame_reg): Remove.
5649 * sh-tdep.c (sh_analyze_prologue): Add FPSCR parameter. Use it
5650 instead of reading the FPSCR register.
5651 (sh_frame_cache): Pass unwound FPSCR register value to
5652 sh_analyze_prologue.
5653 (sh_skip_prologue): Pass dummy FPSCR value to sh_analyze_prologue.
5655 * v850-tdep.c (v850_analyze_prologue): Add CTBP parameter. Use it
5656 instead of reading the CTBP register.
5657 (v850_frame_cache): Pass unwound CTBP register value to
5658 v850_analyze_prologue.
5660 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
5662 * sh-tdep.h (sh_show_regs): Add FRAME parameter.
5663 * sh-tdep.c (sh_show_regs): Likewise.
5664 (sh_show_regs_command): Pass current frame to sh_show_regs routine.
5665 (sh_generic_show_regs): Add FRAME parameter. Use register
5666 values from that frame instead of calling read_register.
5667 (sh3_show_regs, sh2e_show_regs, sh2a_show_regs, sh2a_nofpu_show_regs,
5668 sh3e_show_regs, sh3_dsp_show_regs, sh4_show_regs, sh4_nofpu_show_regs,
5669 sh_dsp_show_regs): Likewise.
5670 * sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs,
5671 sh64_show_regs): Likewise.
5673 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
5675 * mips-tdep.c (deprecated_mips_set_processor_regs_hack): Read from
5676 current regcache instead of calling read_register.
5678 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
5680 * mep-tdep.c (current_me_module): Read from current regcache
5681 instead of calling read_register.
5682 (current_options): Likewise.
5684 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
5686 * cris-tdep.c (cris_stopped_data_address): Read register values
5687 from current frame instead of calling read_register.
5688 * frv-tdep.c (frv_stopped_data_address): Likewise.
5690 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
5692 * solib-sunos.c (sunos_solib_create_inferior_hook): Use write_pc
5693 instead of write_register (PC_REGNUM, ...).
5695 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
5697 * solib-sunos.c (sunos_solib_create_inferior_hook): Add comment
5698 explaining why the PC adjustment code is necessary.
5700 2007-06-15 Vladimir Prus <vladimir@codesourcery.com>
5702 * m68k-tdep.h (enum m68k_flavour): New.
5703 (struct gdbarch_tdep): New fields
5704 float_return, flavour and fpregs_present.
5705 * m68k-tdep.c (m68k_register_type): Use
5706 fpregs_present and conditionalize floating
5707 registers type on flavour.
5708 (m68k_register_names): New.
5709 (m68k_register_name): Use the above.
5710 (m68k_convert_register_p): Consult fpregs_present.
5711 (m68k_register_to_value, m68k_value_to_register):
5712 Use register_type to obtain the type of floating
5714 (m68k_svr4_extract_return_value): Check tdep->float_return.
5715 Use register_type to get the type of floating
5717 (m68k_svr4_store_return_value): Likewise.
5718 (m68k_dwarf_reg_to_regnum): Check tdep->fpregs_present.
5719 (m68k_analyze_register_saves): Likewise.
5720 (m68k_gdbarch_init): Extract infromation
5721 from XML description, if present. Guess coldfire by
5722 looking at the file, if present. Conditionalize
5723 setting of long double format. Set decr_pc_after_break
5724 to 2 on coldfire and fido. Enable XML-driven
5725 register description.
5726 * m68kbsd-tdep.c (m68kbsd_fpreg_offset): Use
5727 size of tdep->fpreg_type, as opposed to hardcoded value.
5728 * Makefile.in (m68k-tdep.o): Update dependencies.
5730 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
5732 * NEWS: Mention "info spu" commands and qXfer:spu:read and
5733 qXfer:spu:write remote packet types.
5735 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
5737 * xml-tdesc.c (tdesc_start_target): New.
5738 (target_attributes): New.
5739 (tdesc_elements): Use it.
5740 * features/gdb-target.dtd: Add #FIXED version attribute for
5743 2007-06-13 Arthur Huillet <arthur.huillet@free.fr>
5745 * mi/mi-cmd-var.c (mi_cmd_var_assign): Fix typo.
5747 2007-06-13 Claudio Fontana <claudio.fontana@gmail.com>
5749 * fork-child.c (fork_inferior): Update comment.
5751 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
5753 * features/Makefile: Generate regformats for mips-linux and
5755 * features/sort-regs.xsl: Correct typo.
5756 * regformats/reg-mips.dat, regformats/reg-mips64.dat: Delete.
5757 * regformats/mips-linux.dat, regformats/mips64-linux.dat: New generated
5760 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
5762 * config/mips/linux.mh (TDEP_XML): New.
5763 * features/mips-linux.xml, features/mips64-linux.xml: New files.
5764 * mips-linux-nat.c (mips_linux_register_addr): Handle
5765 MIPS_RESTART_REGNUM.
5766 (mips64_linux_register_addr): Likewise.
5767 (super_xfer_partial, mips_linux_xfer_partial): New.
5768 (_initialize_mips_linux_nat): Add them to the target_ops.
5769 * mips-linux-tdep.c (mips_supply_gregset): Handle MIPS_RESTART_REGNUM.
5770 (mips_fill_gregset, mips64_supply_gregset, mips64_fill_gregset)
5771 (mips_linux_o32_sigframe_init)
5772 (mips_linux_n32n64_sigframe_init): Likewise.
5773 (mips_linux_write_pc, mips_linux_restart_reg_p): New.
5774 (mips_linux_init_abi): Use mips_linux_write_pc. Check for the
5775 "org.gnu.gdb.mips.linux" feature.
5776 * mips-linux-tdep.h (MIPS_RESTART_REGNUM): New constant.
5777 (mips_linux_restart_reg_p): New prototype.
5778 * mips-tdep.c (mips_gdbarch_init): Pass tdesc_data to the OS/ABI
5779 initialization routine.
5780 * Makefile.in (mips-linux-tdep.o, mips-linux-nat.o): Update.
5782 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
5784 * Makefile.in (mips-tdep.o): Update.
5785 * mips-tdep.c (struct register_alias, mips_o32_aliases)
5786 (mips_n32_n64_aliases, mips_register_aliases): New.
5787 (mips_register_name): Call tdesc_register_name.
5788 (mips_tdesc_register_reggroup_p): New.
5789 (mips_pseudo_register_type, value_of_mips_user_reg): New.
5790 (mips_gdbarch_init): Add target-described register support.
5791 Register aliases for register names.
5792 * target-descriptions.c (tdesc_register_name): Make global.
5793 (tdesc_register_in_reggroup_p): New function, broken out from
5794 tdesc_register_reggroup_p.
5795 (tdesc_register_reggroup_p): Use it.
5796 * target-descriptions.h (tdesc_register_name)
5797 (tdesc_register_in_reggroup_p): New prototypes.
5798 * NEWS: Correct formatting. Mention MIPS register support.
5799 * features/mips-cp0.xml, features/mips-fpu.xml,
5800 features/mips64-cp0.xml, gdb/features/mips64-fpu.xml, mips-cpu.xml,
5801 features/mips64-cpu.xml: New files.
5803 2007-06-13 Markus Deuling <deuling@de.ibm.com>
5805 * gdbarch.sh (TARGET_ADDR_BIT): Replace by gdbarch_addr_bit.
5806 * valops.c (value_cast): Likewise.
5807 * utils.c (strlen_paddr, paddr, paddr_nz, paddress): Likewise.
5808 * ui-out.c (ui_out_field_core_addr): Likewise.
5809 * tracepoint.c (tracepoints_info): Likewise.
5810 * symtab.c (print_msymbol_info): Likewise.
5811 * solib-irix.c (irix_current_sos)
5812 (irix_open_symbol_file_object): Likewise.
5813 * remote.c (build_remote_gdbarch_data): Likewise.
5814 * prologue-value.c (make_pv_area): Likewise.
5815 * procfs.c (info_mappings_callback): Likewise.
5816 * printcmd.c (print_scalar_formatted)
5817 (deprecated_print_address_numeric): Likewise.
5818 * memattr.c (mem_info_command): Likewise.
5819 * linux-nat.c (linux_nat_info_proc_cmd): Likewise.
5820 * gdbtypes.c (build_flt, gdbtypes_post_init): Likewise.
5821 * exec.c (print_section_info): Likewise.
5822 * dwarf2read.c (read_subrange_type): Likewise.
5823 * dwarf2loc.c (find_location_expression): Likewise.
5824 * dwarf2expr.c (dwarf2_read_address, unsigned_address_type)
5825 (signed_address_type, execute_stack_op): Likewise.
5826 * breakpoint.c (print_one_breakpoint, breakpoint_1): Likewise.
5827 * gdbarch.c, gdbarch.h: Regenerate.
5829 2007-06-13 Markus Deuling <deuling@de.ibm.com>
5831 * gdbarch.sh (TARGET_ARCHITECTURE): Replace by gdbarch_bfd_arch_info.
5832 * arch-utils.c (show_architecture): Likewise.
5833 * remote-mips.c (mips_open): Likewise
5834 * nto-tdep.c (nto_find_and_open_solib)
5835 (nto_init_solib_absolute_prefix): Likewise.
5836 * nto-procfs (procfs_open): Likewise.
5837 * m68hc11-tdep.c (gdb_print_insn_m68hc11): Likewise.
5838 * gcore.c (default_gcore_mach, default_gcore_arch): Likewise.
5839 * gdbarch.c, gdbarch.h: Regenerate.
5841 2007-06-13 Markus Deuling <deuling@de.ibm.com>
5843 * gdbarch.sh (TARGET_BFD_VMA_BIT): Replace by gdbarch_bfd_vma_bit.
5844 * gdbtypes.c (build_flt): Likewise.
5845 * gdbarch.c, gdbarch.h: Regenerate.
5847 2007-06-13 Markus Deuling <deuling@de.ibm.com>
5849 * gdbarch.sh (BREAKPOINT_FROM_PC): Replace by
5850 gdbarch_breakpoint_from_pc.
5851 * s390-tdep.c (s390_gdbarch_init): Likewise (comment).
5852 * remote.c (remote_insert_breakpoint)
5853 (remote_insert_hw_breakpoint): Likewise.
5854 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Likewise.
5855 * mips-tdep.c (mips_breakpoint_from_pc): Likewise (comment).
5856 * breakpoint.h (bp_target_info): Likewise (comment).
5857 * breakpoint.c (read_memory_nobpt): Likewise.
5858 * mem-break.c (default_memory_insert_breakpoint): Likewise.
5859 (symtab.h, breakpoint.h): Remove include. Remove unnecessary comment.
5860 * gdbarch.c, gdbarch.h: Regenerate.
5862 2007-06-13 Markus Deuling <deuling@de.ibm.com>
5864 * gdbarch.sh (TARGET_PTR_BIT): Replace with gdbarch_ptr_bit.
5865 * solib-svr4.c (svr4_truncate_ptr): Likewise.
5866 * solib-pa64.c (read_dynamic_info): Likewise.
5867 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets): Likewise.
5868 * solib.c (info_sharedlibrary_command): Likewise.
5869 * s390-nat.c (SUBOFF): Likewise.
5870 * p-valprint.c (pascal_val_print): Likewise.
5871 * procfs.c (info_proc_mappings): Likewise.
5872 * printcmd.c (decode_format): Likewise.
5873 * nto-tdep.c (nto_truncate_ptr): Likewise.
5874 * mips-linux-tdep.c (mips_linux_get_longjmp_target)
5875 (mips64_linux_get_longjmp_target): Likewise.
5876 * m68k-tdep.c (m68k_get_longjmp_target): Likewise.
5877 * jv-valprint.c (java_value_print): Likewise.
5878 * jv-lang.c (get_java_object_header_size): Likewise.
5879 * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Likewise.
5880 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
5881 (hppa_hpux_unwind_adjust_stub): Likewise.
5882 * gnu-v3-abi.c (build_gdb_vtable_type): Likewise.
5883 * gdbtypes.c (make_pointer_type, make_reference_type)
5884 (smash_to_memberptr_type): Likewise.
5885 * gdbarch.c, gdbarch.h: Regenerate.
5887 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
5889 * mips-tdep.c (mips_print_register): Remove unused ALL argument.
5890 (print_gp_register_row): Stop before printing a register bigger
5891 than the ABI register size.
5892 (mips_print_registers_info): Update call to mips_print_register.
5894 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
5896 * expression.h (enum exp_opcode): Document a register name for
5898 * parse.c (write_dollar_variable): Write the register name for
5900 (operator_length_standard): Expect the register name following
5902 * ada-lang.c (resolve_subexp): Likewise.
5903 * ax-gdb.c (gen_expr): Likewise.
5904 * eval.c (evaluate_subexp_standard): Likewise.
5905 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
5907 * tracepoint.c (encode_actions): Likewise.
5909 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
5911 * utils.c (set_screen_size): Use INT_MAX for default columns.
5913 2007-06-13 Ulrich Weigand <uweigand@de.ibm.com>
5915 * remote.c (remote_protocol_features): Add qXfer:spu:read and
5916 qXfer:spu:write packet types.
5918 2007-06-12 Markus Deuling <deuling@de.ibm.com>
5920 * gdbarch.sh (DEPRECATED_STACK_ALIGN): Remove.
5921 * gdbarch.c, gdbarch.h: Regenerate.
5923 2007-06-12 Markus Deuling <deuling@de.ibm.com>
5925 * gdbarch.sh (STAB_REG_TO_REGNUM): Replace by
5926 gdbarch_stab_reg_to_regnum.
5927 * stabsread.c (define_symbol): Likewise.
5928 * gdbarch.sh (ECOFF_REG_TO_REGNUM): Replace by
5929 gdbarch_ecoff_reg_to_regnum.
5930 * mdebugread.c (parse_symbol): Likewise.
5931 * i386-tdep.c (i386_gdbarch_init): Likewise (comment).
5932 * gdbarch.sh (DWARF_REG_TO_REGNUM): Replace by
5933 gdbarch_dwarf_reg_to_regnum.
5934 * gdbarch.sh (SDB_REG_TO_REGNUM): Replace by gdbarch_sdb_reg_to_regnum.
5935 * coffread.c (process_coff_symbol): Likewise.
5936 * gdbarch.sh (DWARF2_REG_TO_REGNUM): Replace by
5937 gdbarch_dwarf2_reg_to_regnum.
5938 * dwarf2loc.c (dwarf_expr_read_reg,dwarf2_evaluate_loc_desc)
5939 (locexpr_describe_location): Likewise.
5940 * dwarf2-frame.c (read_reg,execute_cfa_program,dwarf2_frame_cache)
5941 (dwarf2_frame_prev_register,dwarf2_signal_frame_this_id): Likewise.
5942 * dwarf2loc.c (DWARF2_REG_TO_REGNUM): Remove macro.
5943 * dwarf2read.c (DWARF2_REG_TO_REGNUM): Remove macro.
5944 * gdbarch.c, gdbarch.h: Regenerate.
5946 2007-06-12 Markus Deuling <deuling@de.ibm.com>
5948 * gdbarch.sh (SMASH_TEXT_ADDRESS): Replace by
5949 gdbarch_smash_text_address.
5950 * somread.c (som_symtab_read): Likewise.
5951 * elfread.c (record_minimal_symbol): Likewise.
5952 * dbxread.c (process_one_symbol): Likewise.
5953 * coffread.c (coff_symtab_read): Likewise.
5954 * gdbarch.c, gdbarch.h: Regenerate.
5956 2007-06-12 Markus Deuling <deuling@de.ibm.com>
5958 * gdbarch.sh (REGISTER_TO_VALUE): Replace by gdbarch_register_to_value.
5959 * findvar.c (value_from_register): Likewise.
5960 * gdbarch.sh (VALUE_TO_REGISTER): Replace by gdbarch_value_to_register.
5961 * valops.c (value_assign): Likewise.
5962 * gdbarch.sh (CONVERT_REGISTER_P): Replace by
5963 gdbarch_convert_register_p.
5964 * findvar.c (value_from_register): Likewise.
5965 * valops.c (value_assign): Likewise.
5966 * gdbarch.c, gdbarch.h: Regenerate.
5968 2007-06-12 Markus Deuling <deuling@de.ibm.com>
5970 * gdbarch.sh (REGISTER_SIM_REGNO): Replace by
5971 gdbarch_register_sim_regno.
5972 * sim-regno.h (sim_regno): Likewise (comment).
5973 * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register): Likewise.
5974 * gdbarch.c, gdbarch.h: Regenerate.
5976 2007-06-12 Markus Deuling <deuling@de.ibm.com>
5978 * gdbarch.sh (TARGET_VIRTUAL_FRAME_POINTER): Replace by
5979 gdbarch_virtual_frame_pointer.
5980 * tracepoint.c (encode_actions): Likewise.
5981 * dwarf2loc.c (dwarf2_loc_desc_needs_frame): Likewise.
5982 * ax-gdb.c (gen_frame_args_address, gen_frame_locals_address): Likewise.
5983 * gdbarch.c, gdbarch.h: Regenerate.
5985 2007-06-12 Markus Deuling <deuling@de.ibm.com>
5987 * gdbarch.sh (TARGET_FLOAT_BIT): Replace by gdbarch_float_bit.
5988 * p-lang.c (pascal_create_fundamental_type): Likewise.
5989 * objc-lang.c (objc_create_fundamental_type): Likewise.
5990 * mdebugread.c (_initialize_mdebugread): Likewise.
5991 * m2-lang.c (m2_create_fundamental_type)
5992 (_initialize_m2_language): Likewise.
5993 * gdbtypes.c (build_gdbtypes): Likewise.
5994 * f-lang.c (f_create_fundamental_type, build_fortran_types): Likewise.
5995 * doublest.c (floatformat_from_length): Likewise.
5996 * c-lang.c (c_create_fundamental_type): Likewise.
5997 * ada-lang.c (ada_create_fundamental_type)
5998 (ada_language_arch_info): Likewise.
5999 * gdbarch.sh (TARGET_FLOAT_FORMAT): Replace by gdbarch_float_format.
6000 * value.c (unpack_double): Likewise (comment).
6001 * gdbtypes.c (build_gdbtypes): Likewise.
6002 * doublest.c (floatformat_from_length): Likewise.
6003 * gdbarch.sh (TARGET_DOUBLE_BIT): Replace by gdbarch_double_bit.
6004 * valarith.c (value_binop): Likewise.
6005 * p-lang.c (pascal_create_fundamental_type): Likewise.
6006 * objc-lang.c (objc_create_fundamental_type): Likewise.
6007 * mdebugread.c (_initialize_mdebugread): Likewise.
6008 * m2-lang.c (m2_create_fundamental_type): 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 * cris-tdep.c (cris_gdbarch_init): Likewise (comment).
6013 * c-lang.c (c_create_fundamental_type): Likewise.
6014 * ada-lex.l (processReal): Likewise.
6015 * ada-lang.c (ada_create_fundamental_type)
6016 (ada_language_arch_info): Likewise.
6017 * gdbarch.sh (TARGET_DOUBLE_FORMAT): Replace by gdbarch_double_format.
6018 * value.c (unpack_double): Likewise (comment).
6019 * gdbtypes.c (build_gdbtypes): Likewise.
6020 * doublest.c (floatformat_from_length): Likewise.
6021 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Replace by
6022 gdbarch_long_double_bit.
6023 * p-lang.c (pascal_create_fundamental_type): Likewise.
6024 * objc-lang.c (objc_create_fundamental_type): Likewise.
6025 * m2-lang.c (m2_create_fundamental_type): Likewise.
6026 * gdbtypes.c (build_gdbtypes): Likewise.
6027 * f-lang.c (f_create_fundamental_type, build_fortran_types): Likewise.
6028 * doublest.c (floatformat_from_length): Likewise.
6029 * c-lang.c (c_create_fundamental_type): Likewise.
6030 * ada-lex.l (processReal): Likewise.
6031 * ada-lang.c (ada_create_fundamental_type)
6032 (ada_language_arch_info): Likewise.
6033 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Replace by
6034 gdbarch_long_double_format.
6035 * gdbtypes.c (build_gdbtypes): Likewise.
6036 * doublest.c (floatformat_from_length): Likewise.
6037 * gdbarch.c, gdbarch.h: Regenerate.
6039 2007-06-12 Markus Deuling <deuling@de.ibm.com>
6041 * gdbarch.sh (TARGET_SHORT_BIT): Replace by gdbarch_int_bit.
6042 * ada-lang.c (ada_create_fundamental_type)
6043 (ada_language_arch_info): Likewise.
6044 * c-lang.c (c_create_fundamental_type): Likewise.
6045 * f-lang.c (f_create_fundamental_type, build_fortran_types): Likewise.
6046 * gdbtypes.c (build_gdbtypes, gdbtypes_post_init): Likewise.
6047 * m2-lang.c (m2_create_fundamental_type): Likewise.
6048 * objc-lang.c (objc_create_fundamental_type): Likewise.
6049 * p-lang.c (pascal_create_fundamental_type): Likewise.
6050 * gdbarch.sh (TARGET_INT_BIT): Replace by gdbarch_int_bit.
6051 * c-exp.y (parse_number): Likewise.
6052 * objc-exp.y (parse_number): Likewise.
6053 * ada-lex.l (processInt): Likewise.
6054 * f-exp.y (parse_number): Likewise.
6055 * p-exp.y (parse_number): Likewise.
6056 * ada-lang.c (ada_create_fundamental_type, ada_language_arch_info)
6057 (gdbtypes_post_init, build_gdbtypes): Likewise.
6058 * p-lang.c (pascal_create_fundamental_type): Likewise.
6059 * parse.c (build_parse): Likewise.
6060 * xcoffread.c (_initialize_xcoffread): Likewise.
6061 * stabsread.c (define_symbol, read_one_struct_field, read_enum_type)
6062 (read_range_type): Likewise.
6063 * objc-lang.c (objc_create_fundamental_type): Likewise.
6064 * f-lang.c (build_fortran_types, f_create_fundamental_type): Likewise.
6065 * m2-lang.c (m2_create_fundamental_type, _initialize_m2_language)
6066 (m2_create_fundamental_type): Likewise.
6067 * c-lang.c (c_create_fundamental_type): Likewise.
6068 * coffread.c (coff_read_enum_type): Likewise.
6069 * mdebugread.c (parse_symbol, _initialize_mdebugread): Likewise.
6070 * dwarf2read.c (new_symbol): Likewise.
6071 * gdbarch.sh (TARGET_LONG_BIT): Replace by gdbarch_long_bit.
6072 * c-exp.y (parse_number): Likewise.
6073 * objc-exp.y (parse_number): Likewise.
6074 * ada-lex.l (processInt): Likewise.
6075 * f-exp.y (parse_number): Likewise.
6076 * p-exp.y (parse_number): Likewise.
6077 * valarith.c (value_binop): Likewise.
6078 * symfile.c (read_target_long_array, simple_overlay_update_1): Likewise.
6079 * ada-lang.c (ada_create_fundamental_type)
6080 (ada_language_arch_info): Likewise.
6081 * gdbtypes.c (build_gdbtypes, gdbtypes_post_init): Likewise.
6082 * symfile.c (TARGET_LONG_BYTES): Likewise.
6083 * p-lang.c (pascal_create_fundamental_type): Likewise.
6084 * objc-lang.c (objc_create_fundamental_type): Likewise.
6085 * m2-lang.c (m2_create_fundamental_type): Likewise.
6086 * f-lang.c (f_create_fundamental_type): Likewise.
6087 * c-lang.c (c_create_fundamental_type): Likewise.
6088 * coffread.c (decode_base_type): Likewise.
6089 * gdbarch.sh (TARGET_LONG_LONG_BIT): Replace by gdbarch_long_long_bit.
6090 * c-exp.y (parse_number): Likewise.
6091 * objc-exp.y (parse_number): Likewise.
6092 * p-exp.y (parse_number): Likewise.
6093 * ada-lang.c (ada_create_fundamental_type)
6094 (ada_language_arch_info): Likewise.
6095 * gdbtypes.c (gdbtypes_post_init, build_gdbtypes): Likewise.
6096 * stabsread.c (read_range_type): Likewise.
6097 * p-lang.c (pascal_create_fundamental_type): Likewise.
6098 * objc-lang.c (objc_create_fundamental_type): Likewise.
6099 * m2-lang.c (m2_create_fundamental_type): Likewise.
6100 * f-lang.c (f_create_fundamental_type): Likewise.
6101 * c-lang.c (c_create_fundamental_type): Likewise.
6102 * gdbarch.c, gdbarch.h: Regenerate.
6104 2007-06-12 Andreas Schwab <schwab@suse.de>
6106 * frame-unwind.h (frame_dealloc_cache_ftype): Define.
6107 (struct frame_unwind): Add dealloc_cache.
6108 * frame.c (reinit_frame_cache): Call dealloc_cache on all caches.
6110 * libunwind-frame.h (libunwind_frame_dealloc_cache): Declare.
6111 * libunwind-frame.c (libunwind_frame_dealloc_cache): Define.
6112 (libunwind_frame_unwind): Set dealloc_cache.
6113 * ia64-tdep.c (ia64_libunwind_frame_unwind): Set dealloc_cache.
6115 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
6116 Markus Deuling <deuling@de.ibm.com>
6118 * remote.c (remote_write_qxfer): New function.
6119 (remote_xfer_partial): Add handling for TARGET_OBJECT_SPU.
6120 (remote_read_qxfer): Do not cache empty objects.
6121 (_initialize_remote): Add PACKET_qXfer_spu_read and
6122 PACKET_qXfer_spu_write.
6124 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
6126 * target.h (enum target_object): Add TARGET_OBJECT_SPU.
6127 * spu-linux-nat.c (spu_xfer_partial): Handle TARGET_OBJECT_SPU.
6129 * spu-tdep.h (SPU_NUM_PSEUDO_REGS): Add 5 pseudo registers.
6130 (enum spu_regnum): Add SPU_FPSCR_REGNUM, SPU_SRR0_REGNUM,
6131 SPU_LSLR_REGNUM, SPU_DECR_REGNUM, SPU_DECR_STATUS_REGNUM.
6132 * spu-tdep.c (infospucmdlist): New variable.
6133 (spu_register_name): Handle additional pseudo registers.
6134 (spu_register_type): Likewise.
6135 (spu_pseudo_register_read): Likewise.
6136 (spu_pseudo_register_write): Likewise.
6137 (spu_pseudo_register_read_spu): New function.
6138 (spu_pseudo_register_write_spu): Likewise.
6139 (info_spu_event_command): New function.
6140 (info_spu_signal_command): Likewise.
6141 (info_spu_mailbox_list): Likewise.
6142 (info_spu_mailbox_command): Likewise.
6143 (spu_mfc_get_bitfield): Likewise.
6144 (info_spu_dma_cmdlist): Likewise.
6145 (info_spu_dma_command): Likewise.
6146 (info_spu_proxydma_command): Likewise.
6147 (info_spu_command): Likewise.
6148 (_initialize_spu_tdep): Install "info spu" commands.
6150 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
6152 * spu-linux-nat.c (spu_proc_xfer_spu): Do not return failure when
6153 accessing non-seekable spufs files.
6155 2007-06-09 Markus Deuling <deuling@de.ibm.com>
6157 * gdbarch.sh (SKIP_TRAMPOLINE_CODE): Replace by
6158 gdbarch_skip_trampoline_code.
6159 * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Likewise (comment).
6160 * objc-lang.c (objc_skip_trampoline)
6161 (objc_submethod_helper_data): Likewise.
6162 * m32c-lang.c (m32c_skip_trampoline_code): Likewise (comment).
6163 * infrun.c (handle_inferior_event): Likewise.
6164 * gnu-v3-abi.c (gnuv3_skip_trampoline): Likewise.
6165 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Replace by
6166 gdbarch_in_solib_return_trampoline.
6167 * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Likewise (comment).
6168 * infrun.c (handle_inferior_event): Likewise.
6169 * hppa-tdep.c (hppa_stub_unwind_sniffer): Likewise.
6170 * gdbarch.c, gdbarch.h: Regenerate.
6172 2007-06-09 Markus Deuling <deuling@de.ibm.com>
6174 * gdbarch.sh (SKIP_PROLOGUE): Replace by gdbarch_skip_prologue.
6175 * symtab.c (find_function_start_sal, in_prologue): Likewise.
6176 * linespec.c (minsym_found): Likewise.
6177 * infrun.c (step_into_function): Likewise.
6178 * gdbarch.c, gdbarch.h: Regenerate.
6180 2007-06-09 Markus Deuling <deuling@de.ibm.com>
6182 * gdbarch.sh (NAME_OF_MALLOC): Replace by gdbarch_name_of_malloc.
6183 * valops.c (value_allocate_space_in_inferior): Likewise.
6184 * gdbarch.c, gdbarch.h: Regenerate.
6186 2007-06-09 Markus Deuling <deuling@de.ibm.com>
6188 * gdbarch.sh (MEMORY_INSERT_BREAKPOINT): Replace by
6189 gdbarch_memory_insert_breakpoint.
6190 * mem-break.c (memory_insert_breakpoint): Likewise.
6191 * gdbarch.sh (MEMORY_REMOVE_BREAKPOINT): Replace by
6192 gdbarch_memory_remove_breakpoint.
6193 * mem-break.c (memory_remove_breakpoint): Likewise.
6194 * gdbarch.c, gdbarch.h: Regenerate.
6196 2007-06-09 Markus Deuling <deuling@de.ibm.com>
6198 * gdbarch.sh (FETCH_TLS_LOAD_MODULE_ADDRESS): Replace by
6199 gdbarch_fetch_tls_load_module_address.
6200 * gdbarch.sh (FETCH_TLS_LOAD_MODULE_ADDRESS_P): Replace by
6201 gdbarch_fetch_tls_load_module_address_p.
6202 * gdbarch.c, gdbarch.h: Regenerate.
6204 2007-06-09 Markus Deuling <deuling@de.ibm.com>
6206 * gdbarch.sh (DECR_PC_AFTER_BREAK): Replace by
6207 gdbarch_decr_pc_after_break.
6208 * tracepoint.c (trace_dump_command): Likewise.
6209 * solib-sunos.c (sunos_solib_create_inferior_hook): Likewise.
6210 * linux-thread-db.c (check_event): Likewise.
6211 * linux-nat.c (cancel_breakpoints_callback): Likewise.
6212 * infrun.c (adjust_pc_after_break, normal_stop): Likewise.
6213 * frame.h: Likewise (comment).
6214 * dummy-frame.c (deprecated_pc_in_call_dummy): Likewise.
6215 * aix-thread.c (aix_thread_wait): Likewise.
6216 * gdbarch.c, gdbarch.h: Regenerate.
6218 2007-06-09 Markus Deuling <deuling@de.ibm.com>
6220 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS): Replace by
6221 gdbarch_address_class_type_flags.
6222 * dwarf2read.c (read_tag_pointer_type): Likewise.
6223 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS_P): Replace by
6224 gdbarch_address_class_type_flags_p.
6225 * dwarf2read.c (read_tag_pointer_type): Likewise.
6226 * gdbarch.c, gdbarch.h: Regenerate.
6228 2007-06-09 Markus Deuling <deuling@de.ibm.com>
6230 * gdbarch.sh (ADDR_BITS_REMOVE): Replace by gdbarch_addr_bits_remove.
6231 * value.c (value_as_address): Likewise (comment).
6232 * remote-mips.c (common_breakpoint): Likewise.
6233 * regcache.c (read_pc_pid): Likewise.
6234 * printcmd.c (do_one_display): Likewise.
6235 * monitor.c (monitor_write_memory, monitor_read_memory)
6236 (monitor_insert_breakpoint): Likewise.
6237 * mips-tdep.c (heuristic_proc_start): Likewise.
6238 * infrun.c (insert_step_resume_breakpoint_at_frame)
6239 (insert_step_resume_breakpoint_at_caller): Likewise.
6240 * buildsym.c (record_line): Likewise.
6241 * arm-tdep.c (arm_scan_prologue, thumb_get_next_pc)
6242 (arm_get_next_pc): Likewise.
6243 * armnbsd-nat.c (arm_supply_gregset, fetch_register, store_register)
6244 (store_regs): Likewise.
6245 * arm-linux-tdep.c (arm_linux_supply_gregset): Likewise.
6246 * arm-linux-nat.c (fetch_register, fetch_regs): Likewise.
6247 * gdbarch.c, gdbarch.h: Regenerate.
6249 2007-06-09 Markus Deuling <deuling@de.ibm.com>
6251 * gdbarch.sh (REGISTER_NAME): Replace by gdbarch_register_name.
6252 * tracepoint.c (scope_info): Likewise.
6253 * target.c (debug_print_register): Likewise.
6254 * stack.c (frame_info): Likewise.
6255 * sh-tdep.c (sh_register_reggroup_p): Likewise.
6256 * sh64-tdep.c (sh64_do_fp_register, sh64_do_register)
6257 (sh64_media_print_registers_info)
6258 (sh64_compact_print_registers_info): Likewise.
6259 * rs6000-tdep.c (rs6000_register_reggroup_p): Likewise.
6260 * remote-sim.c (gdbsim_fetch_register): Likewise.
6261 * remote.c (packet_reg): Likewise (comment).
6262 * reggroups.c (default_register_reggroup_p): Likewise.
6263 * regcache.c (regcache_dump): Likewise.
6264 * printcmd.c (address_info): Likewise.
6265 * ppc-linux-nat.c (fetch_register, store_register): Likewise.
6266 * mt-dep.c (mt_registers_info): Likewise.
6267 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Likewise (comment).
6268 * mips-tdep.c (mips_register_reggroup_p, mips_read_fp_register_single)
6269 (mips_read_fp_register_double, mips_print_fp_register)
6270 (mips_print_register, print_gp_register_row, mips_print_registers_info)
6271 (mips_register_sim_regno): Likewise.
6272 * m68klinux-nat.c (regmap, fetch_register, store_register): Likewise.
6273 * inf-ptrace.c (inf_ptrace_fetch_register)
6274 (inf_ptrace_store_register): Likewise.
6275 * infcmd.c (default_print_registers_info): Likewise.
6276 * ia64-linux-nat.c (ia64_linux_fetch_register)
6277 (ia64_linux_store_register): Likewise.
6278 * i386-linux-nat.c (fetch_register, store_register): Likewise.
6279 * i386gnu-nat.c (gnu_fetch_registers, gnu_store_registers): Likewise.
6280 * hppa-linux-nat.c (fetch_register, store_register): Likewise.
6281 * hppa-hpux-nat.c (hppa_hpux_fetch_register)
6282 (hppa_hpux_store_register): Likewise.
6283 * findvar.c (locate_var_value): Likewise.
6284 * dwarf2loc.c (locexpr_describe_location): Likewise.
6285 * dwarf2-frame.c (execute_cfa_program): Likewise.
6286 * arm-tdep.c (arm_push_dummy_call): Likewise.
6287 * arch-utils.c (legacy_register_sim_regno): Likewise.
6288 * alpha-tdep.c (alpha_register_reggroup_p): Likewise.
6289 * alpha-nat.c (fetch_osf_core_registers): Likewise.
6290 * mi/mi-main.c (mi_cmd_data_list_register_names)
6291 (mi_cmd_data_list_changed_registers, mi_cmd_data_list_register_values)
6292 (mi_cmd_data_write_register_values): Likewise.
6293 * gdbarch.c, gdbarch.h: Regenerate.
6295 2007-06-07 Daniel Jacobowitz <dan@codesourcery.com>
6297 * target-memory.c (blocks_to_erase): Correct off-by-one error.
6299 2007-06-06 Vladimir Prus <vladimir@codesourcery.com>
6301 * remote.c (process_g_packet): Don't check size.
6302 * gdbarch.sh: Remove register_bytes_ok.
6303 * gdbarch.c: Regenerated.
6304 * gdbarch.h: Regenerated.
6305 * m68k-tdep.c (REGISTER_BYTES_NOFP): Remove.
6306 (m68k_register_bytes_ok): Remove.
6307 (m68k_gdbarch_init): Don't register m68k_register_bytes_ok.
6309 2007-06-06 Andreas Schwab <schwab@suse.de>
6311 * libunwind-frame.c (unw_destroy_addr_space_p): Define.
6312 (destroy_addr_space_name): Define.
6313 (libunwind_load): Get address of destroy_addr_space function.
6314 (libunwind_frame_cache): Destroy unw_addr_space_t object before
6315 returning unsuccessfully.
6316 (libunwind_frame_sniffer): Destroy unw_addr_space_t object before
6318 (libunwind_sigtramp_frame_sniffer): Likewise.
6319 (libunwind_get_reg_special): Likewise.
6321 2007-06-06 Markus Deuling <deuling@de.ibm.com>
6323 * gdbarch.sh (FETCH_POINTER_ARGUMENT): Replace by
6324 gdbarch_fetch_pointer_argument.
6325 * objc-lang.c (OBJC_FETCH_POINTER_ARGUMENT): Likewise.
6326 * gdbarch.c, gdbarch.h: Regenerate.
6328 2007-06-06 Markus Deuling <deuling@de.ibm.com>
6330 * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Replace by
6331 gdbarch_have_nonsteppable_watchpoint.
6332 * infrun.c (handle_inferior_event, adjust_pc_after_break): Likewise.
6333 * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Replace by
6334 gdbarch_cannot_step_breakpoint.
6335 * infrun.c (resume): Likewise.
6336 * gdbarch.c, gdbarch.h: Regenerate.
6338 2007-06-06 Markus Deuling <deuling@de.ibm.com>
6340 * gdbarch.sh (FRAME_ARGS_SKIP): Replace by gdbarch_frame_args_skip.
6341 * stack.c (print_frame_args): Likewise.
6342 * gdbarch.sh (FRAME_NUM_ARGS): Replace by gdbarch_frame_num_args.
6343 * stack.c (print_args_stub, frame_info): Likewise.
6344 * gdbarch.sh (FRAME_NUM_ARGS_P): Replace by gdbarch_frame_num_args_p.
6345 * stack.c (print_args_stub, frame_info): Likewise.
6346 * gdbarch.c, gdbarch.h: Regenerate.
6348 2007-06-06 Markus Deuling <deuling@de.ibm.com>
6350 * gdbarch.sh (COFF_MAKE_MSYMBOL_SPECIAL): Replace by
6351 gdbarch_coff_make_msymbol_special.
6352 * coffread.c (coff_symtab_read): Likewise.
6353 * gdbarch.sh (ELF_MAKE_MSYMBOL_SPECIAL): Replace by
6354 gdbarch_elf_make_msymbol_special.
6355 * elfread.c (elf_symtab_read): Likewise.
6356 * mips-tdep.c (mips_elf_make_msymbol_special): Likewise (comment).
6357 * sh64-tdep.c (MSYMBOL_IS_SPECIAL): Likewise (comment).
6358 * gdbarch.c, gdbarch.h: Regenerate.
6360 2007-06-06 Markus Deuling <deuling@de.ibm.com>
6362 * gdbarch.sh (FRAME_RED_ZONE_SIZE): Replace by
6363 gdbarch_frame_red_zone_size.
6364 * gdbarch.c, gdbarch.h: Regenerate.
6366 2007-06-06 Markus Deuling <deuling@de.ibm.com>
6368 * gdbarch.sh (INNER_THAN): Replace by gdbarch_inner_than.
6369 * infcall.c (call_function_by_hand): Likewise.
6370 * gcore.c (derive_stack_segment): Likewise.
6371 * frame.c (frame_id_inner): Likewise.
6372 * arch-utils.c (core_addr_lessthan): Likewise (comment).
6373 * ada-lang.c (ensure_lval): Likewise.
6374 * gdbarch.c, gdbarch.h: Regenerate.
6376 2007-06-06 Markus Deuling <deuling@de.ibm.com>
6378 * gdbarch.sh (ADDRESS_TO_POINTER): Replace by
6379 gdbarch_address_to_pointer.
6380 * findvar.c (store_typed_address): Likewise.
6381 * gdbtypes.c (make_pointer_type): Likewise (comment).
6382 * procfs.c (procfs_address_to_host_pointer): Likewise.
6383 * std-regs.c (value_of_builtin_frame_reg): Likewise.
6384 (value_of_builtin_frame_fp_reg): Likewise.
6385 (value_of_builtin_frame_pc_reg): Likewise.
6386 * utils.c (paddress): Likewise (comment).
6387 * gdbarch.sh (POINTER_TO_ADDRESS): Replace by
6388 gdbarch_pointer_to_address.
6389 * findvar.c (extract_typed_address): Likewise.
6390 * gdbtypes.c (make_pointer_type): Likewise (comment).
6391 * valops.c (value_cast): Likewise (comment).
6392 * gdbarch.c, gdbarch.h: Regenerate.
6394 2007-06-06 Markus Deuling <deuling@de.ibm.com>
6396 * gdbarch.sh (GET_LONGJMP_TARGET): Replace by gdbarch_get_longjmp_target.
6397 * infrun.c (handle_inferior_event): Likewise.
6398 * gdbarch.sh (GET_LONGJMP_TARGET_P): Replace by
6399 gdbarch_get_longjmp_target_p.
6400 * breakpoint.c (breakpoint_re_set): Likewise.
6401 * infrun.c (handle_inferior_event): Likewise.
6402 * gdbarch.c, gdbarch.h: Regenerate.
6404 2007-06-06 Ulrich Weigand <uweigand@de.ibm.com>
6406 * hppa-hpux-tdep.c (args_for_find_stub, HP_ACC_EH_notify_hook,
6407 HP_ACC_EH_set_hook_value, HP_ACC_EH_notify_callback, HP_ACC_EH_break,
6408 HP_ACC_EH_catch_throw, HP_ACC_EH_catch_catch, __eh_notification,
6409 hp_cxx_exception_support, hp_cxx_exception_support_initialized,
6410 eh_notify_hook_addr, eh_notify_callback_addr, eh_break_addr,
6411 eh_catch_throw_addr, break_callback_sal, setup_d_pid_in_inferior,
6412 find_stub_with_shl_get, cover_find_stub_with_shl_get,
6413 initialize_hp_cxx_exception_support, child_enable_exception_callback,
6414 current_ex_event, child_get_current_exception_event): Remove.
6415 (hppa_hpux_inferior_created): Remove.
6416 (hppa_hpux_init_abi): Do not install hppa_hpux_inferior_created.
6418 * breakpoint.h (deprecated_exception_catchpoints_are_fragile): Remove.
6419 (deprecated_exception_support_initialized): Remove.
6420 * breakpoint.c (deprecated_exception_catchpoints_are_fragile): Remove.
6421 (deprecated_exception_support_initialized): Remove.
6422 (breakpoint_init_inferior): Remove handling of non-zero
6423 deprecated_exception_catchpoints_are_fragile.
6425 * symtab.h (deprecated_hp_som_som_object_present): Remove.
6426 * symtab.c (deprecated_hp_som_som_object_present): Remove.
6427 * c-typeprint.c (c_type_print_base): Remove handling of non-zero
6428 deprecated_hp_som_som_object_present.
6429 * eval.c (evaluate_subexp_standard): Likewise.
6430 * valops.c (value_cast): Likewise.
6432 * parse.c (parse_nested_classes_for_hpacc, coloncolon): Remove.
6433 * parser-defs.h (parse_nested_classes_for_hpacc): Remove.
6434 * c-exp.y (yylex): Do not call parse_nested_classes_for_hpacc.
6436 2007-06-06 Ulrich Weigand <uweigand@de.ibm.com>
6438 * objfiles.h (ImportEntry, ExportEntry): Remove types.
6439 (struct objfile): Remove import_list, import_list_size,
6440 export_list, export_list_size members.
6441 (is_in_import_list): Remove prototype.
6442 * objfiles.c (is_in_import_list): Remove.
6443 * somread.c (init_import_symbols, init_export_symbols): Remove.
6444 (som_symfile_read): Do not call init_import_symbols. Do not
6445 set objfile->export_list and objfile->export_list_size.
6447 2007-06-05 Daniel Jacobowitz <dan@codesourcery.com>
6449 * dwarf2read.c (dwarf2_symbol_mark_computed): Fix formatting.
6450 Use the original objfile if necessary.
6452 2007-06-04 Daniel Jacobowitz <dan@codesourcery.com>
6454 * defs.h (ldirname): New prototype.
6455 * dwarf2read.c (read_file_scope): Use DW_AT_name if DW_AT_comp_dir is
6457 * utils.c (ldirname): New function.
6458 * xml-tdesc.c (file_read_description_xml): Use ldirname.
6460 2007-06-01 Ulrich Weigand <uweigand@de.ibm.com>
6462 * spu-tdep.c (spu_push_dummy_call): Store stack back chain.
6464 2007-06-01 Joel Brobecker <brobecker@adacore.com>
6466 * solib-svr4.c (svr4_solib_create_inferior_hook): Remove warning.
6468 2007-06-01 Ulrich Weigand <uweigand@de.ibm.com>
6470 * irix5-nat.c (JB_ELEMENT_SIZE, get_longjmp_target): Remove.
6472 2007-06-01 Ulrich Weigand <uweigand@de.ibm.com>
6474 * ppc-linux-tdep.c (INSTR_SC, INSTR_LI_R0_0x6666, INSTR_LI_R0_0x7777,
6475 INSTR_LI_R0_NR_sigreturn, INSTR_LI_R0_NR_rt_sigreturn): Remove.
6476 (PPC_LINUX_SIGNAL_FRAMESIZE, PPC_LINUX_REGS_PTR_OFFSET,
6477 PPC_LINUX_HANDLER_PTR_OFFSET): Remove.
6478 (ppc_linux_in_sigtramp, insn_is_sigreturn,
6479 ppc_linux_at_sigtramp_return_path): Remove.
6481 2007-05-31 Markus Deuling <deuling@de.ibm.com>
6483 * xtensa-tdep.c (XTENSA_IS_ENTRY, extract_call_winsize)
6484 (xtensa_register_write_masked, xtensa_register_read_masked)
6485 (xtensa_extract_return_value, xtensa_store_return_value
6486 (xtensa_push_dummy_call, xtensa_breakpoint_from_pc): Replace
6487 TARGET_BYTE_ORDER by gdbarch_byte_order.
6488 * sh-tdep.c (sh_breakpoint_from_pc, gdb_print_insn_sh)
6489 (sh_justify_value_in_reg, sh_next_flt_argreg, sh_push_dummy_call_fpu)
6490 (sh_extract_return_value_fpu, sh_store_return_value_fpu): Likewise.
6491 * sh64-tdep.c (sh64_breakpoint_from_pc, gdb_print_insn_sh64)
6492 (sh64_push_dummy_call, sh64_extract_return_value)
6493 (sh64_store_return_value, sh64_register_convert_to_virtual)
6494 (sh64_register_convert_to_raw, sh64_pseudo_register_read)
6495 (sh64_pseudo_register_write, sh64_do_fp_register)
6496 (sh64_frame_prev_register): Likewise.
6497 * score-tdep.c (score_print_insn, score_breakpoint_from_pc)
6498 (score_return_value, score_push_dummy_call, score_fetch_inst): Likewise.
6499 * rs6000-tdep.c (rs6000_breakpoint_from_pc, rs6000_push_dummy_call)
6500 (e500_move_ev_register,gdb_print_insn_powerpc): Likewise.
6501 * remote-m32r-sdi.c (m32r_resume, m32r_wait): Likewise.
6502 * ppc-linux-nat.c (store_register): Likewise.
6503 * nto-tdep.c (nto_find_and_open_solib)
6504 (nto_init_solib_absolute_prefix): Likewise.
6505 * mips-tdep.c (mips_pseudo_register_read, mips_pseudo_register_write)
6506 (mips_convert_register_p, mips_eabi_push_dummy_call)
6507 (mips_n32n64_push_dummy_call, mips_n32n64_return_value)
6508 (mips_o32_push_dummy_call, mips_o32_return_value)
6509 (mips_o64_push_dummy_call, mips_o64_return_value, mips_o64_return_value)
6510 (mips_read_fp_register_single, mips_read_fp_register_double)
6511 (mips_print_register, print_gp_register_row, gdb_print_insn_mips)
6512 (mips_breakpoint_from_pc): Likewise.
6513 * mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset): Likewise.
6514 * mips-linux-tdep.c (mips64_supply_fpregset, mips64_fill_fpregset)
6515 (mips_linux_o32_sigframe_init): Likewise.
6516 * m32r-tdep.c (m32r_memory_insert_breakpoint)
6517 (m32r_memory_remove_breakpoint, m32r_breakpoint_from_pc): Likewise.
6518 * libunwind-frame.c (libunwind_frame_cache, libunwind_frame_sniffer)
6519 (libunwind_sigtramp_frame_sniffer, libunwind_get_reg_special): Likewise.
6520 * iq2000-tdep.c (iq2000_breakpoint_from_pc): Likewise.
6521 * coffread.c (process_coff_symbol): Likewise.
6522 * arm-tdep.c (convert_from_extended, convert_to_extended)
6523 (gdb_print_insn_arm): Likewise.
6525 2007-05-31 Markus Deuling <deuling@de.ibm.com>
6527 * gdbarch.sh (NUM_REGS): Replace by gdbarch_num_regs.
6528 * i386-tdep.c (i386_dbx_reg_to_regnum)
6529 (i386_svr4_reg_to_regnum): Likewise.
6530 * inf-ptrace.c (inf_ptrace_fetch_registers)
6531 (inf_ptrace_store_registers): Likewise.
6532 * corelow.c (get_core_registers): Likewise.
6533 * i386-linux-nat.c (supply_gregset, fill_gregset)
6534 (i386_linux_fetch_inferior_registers)
6535 (i386_linux_store_inferior_registers): Likewise.
6536 * remote.c (init_remote_state,packet_reg_from_regnum)
6537 (packet_reg_from_pnum,process_g_packet,remote_fetch_registers)
6538 (remote_prepare_to_store,store_registers_using_G)
6539 (remote_store_registers,remote_arch_state): Likewise.
6540 * tracepoint.c (encode_actions): Likewise.
6541 * mi/mi-main.c (mi_cmd_data_list_register_names)
6542 (mi_cmd_data_list_changed_registers,mi_cmd_data_list_register_values)
6543 (mi_cmd_data_write_register_values): Likewise.
6544 * tui/tui-regs.c (tui_show_register_group)
6545 (tui_show_register_group): Likewise.
6546 * xtensa-tdep.h (FP_ALIAS): Likewise.
6547 * xtensa-tdep.c (xtensa_register_name,xtensa_register_type)
6548 (xtensa_reg_to_regnum,xtensa_pseudo_register_read)
6549 (xtensa_pseudo_register_write,xtensa_register_reggroup_p): Likewise.
6550 * win32-nat.c (do_win32_fetch_inferior_registers)
6551 (do_win32_store_inferior_registers,fetch_elf_core_registers
6552 * user-regs.h: Likewise (comment).
6553 * user-regs.c (user_reg, user_reg_map_name_to_regnum): Likewise.
6554 * trad-frame.c (trad_frame_alloc_saved_regs): Likewise.
6555 * target-descriptions.h: Likewise (comment).
6556 * target-descriptions.c (tdesc_use_registers): Likewise (comment).
6557 * target.c (debug_print_register): Likewise.
6558 * stack.c (frame_info): Likewise.
6559 * stabsread.c (define_symbol): Likewise.
6560 * sh64-tdep.c (sh64_do_pseudo_register,sh64_print_register)
6561 (sh64_media_print_registers_info)
6562 (sh64_compact_print_registers_info): Likewise.
6563 * rs6000-tdep.c (rs6000_register_sim_regno): Likewise.
6564 * rs6000-nat.c (fetch_register,store_register): Likewise.
6565 * remote-sim.c (one2one_register_sim_regno,gdbsim_fetch_register)
6566 (gdbsim_fetch_register,gdbsim_store_register): Likewise.
6567 * remote-mips.c (mips_fetch_registers,mips_store_registers): Likewise.
6568 * remote-m32r-sdi.c (m32r_fetch_registers)
6569 (m32r_store_registers): Likewise.
6570 * reggroups.c (default_register_reggroup_p): Likewise.
6571 * regcache.c (init_regcache_descr,register_size,regcache,regcache_save)
6572 (regcache_restore,regcache_dump): Likewise.
6573 * monitor.c (monitor_fetch_registers,monitor_store_registers): Likewise.
6574 * mips-tdep.c (mips_xfer_register,mips_register_name)
6575 (mips_register_reggroup_p,mips_pseudo_register_read)
6576 (mips_pseudo_register_write,mips_convert_register_p,mips_register_type)
6577 (mips_unwind_pc,mips_unwind_sp,mips_unwind_dummy_id,set_reg_offset)
6578 (mips16_scan_prologue,mips_insn16_frame_cache,reset_saved_regs)
6579 (mips32_scan_prologue,mips_insn32_frame_cache,read_next_frame_reg)
6580 (mips_n32n64_return_value,mips_o32_return_value,mips_o64_return_value)
6581 (print_gp_register_row,mips_print_registers_info)
6582 (mips_stab_reg_to_regnum,mips_dwarf_dwarf2_ecoff_reg_to_regnum)
6583 (mips_register_sim_regno): Likewise.
6584 * mips-linux-tdep.c (mips_linux_o32_sigframe_init)
6585 (mips_linux_n32n64_sigframe_init): Likewise.
6586 * mips-linux-nat.c (mips_linux_register_addr)
6587 (mips64_linux_register_addr): Likewise.
6588 * findvar.c (value_of_register): Likewise.
6589 * infcmd.c (default_print_registers_info,registers_info)
6590 (print_vector_info,print_float_info): Likewise.
6591 * mips64obsd-tdep.c (mips64obsd_sigframe_init): Likewise.
6592 * inf-child.c (inf_child_fetch_inferior_registers): Likewise.
6593 * m68k-tdep.c (m68k_dwarf_reg_to_regnum): Likewise.
6594 * m68hc11-tdep.c (m68hc11_frame_unwind_cache(: Likewise.
6595 * m32r-tdep.c (m32r_frame_unwind_cache): Likewise.
6596 * ia64-linux-nat.c (ia64_register_addr,ia64_cannot_fetch_register)
6597 (ia64_cannot_store_register,ia64_linux_fetch_registers)
6598 (ia64_linux_store_registers): Likewise.
6599 * hpux-thread.c (hpux_thread_fetch_registers)
6600 (hpux_thread_store_registers): Likewise.
6601 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM,E_PSEUDO_EXR_REGNUM)
6602 (h8300_init_frame_cache,h8300_frame_cache,h8300_frame_prev_register)
6603 (h8300_register_type): Likewise.
6604 * dwarf2-frame.c (dwarf2_frame_cache)
6605 (dwarf2_frame_state_alloc_regs): Likewise.
6606 * cris-tdep.c (cris_register_size,cris_cannot_fetch_register)
6607 (cris_cannot_store_register,crisv32_cannot_fetch_register)
6608 (crisv32_cannot_store_register,cris_register_name): Likewise.
6609 * avr-tdep.c (avr_frame_unwind_cache): Likewise.
6610 * arch-utils.c (legacy_register_sim_regno)
6611 (legacy_virtual_frame_pointer): Likewise.
6612 * arm-tdep.c (arm_make_prologue_cache,arm_register_sim_regno):Likewise.
6613 * arm-tdep.h: Likewise (comment).
6614 * frv-tdep.c (frv_register_sim_regno): Likewise.
6615 * m68klinux-nat.c (old_fetch_inferior_registers)
6616 (old_store_inferior_registers): Likewise.
6617 * m32c-tdep.c (m32c_virtual_frame_pointer): Likewise.
6618 * irix5-nat.c (fetch_core_registers): Likewise.
6619 * hppa-tdep.c (hppa_frame_cache): Likewise.
6620 * hppa-linux-nat.c (hppa_linux_register_addr)
6621 (hppa_linux_fetch_inferior_registers)
6622 (hppa_linux_store_inferior_registers): Likewise.
6623 * hppa-hpux-nat.c (hppa_hpux_fetch_inferior_registers)
6624 (hppa_hpux_store_inferior_registers): Likewise.
6625 * amd64-nat.c (amd64_native_gregset_reg_offset)
6626 (amd64_supply_native_gregset,amd64_collect_native_gregset): Likewise.
6627 * dbug-rom.c (dbug_regname): Likewise.
6628 * m68hc11-tdep.c (m68hc11_frame_unwind_cache)
6629 (HARD_PAGE_REGNUM (comment)): Likewise.
6630 * gdbarch.sh (NUM_PSEUDO_REGS): Replace by gdbarch_num_pseudo_regs.
6631 * i386-tdep.c (i386_dbx_reg_to_regnum)
6632 (i386_svr4_reg_to_regnum): Likewise.
6633 * mi/mi-main.c (mi_cmd_data_list_register_names)
6634 (mi_cmd_data_list_changed_registers,mi_cmd_data_list_register_values)
6635 (mi_cmd_data_write_register_values): Likewise.
6636 * gdbarch.c, gdbarch.h: Regenerate.
6637 * tui/tui-regs.c (tui_show_register_group): Likewise.
6638 * xtensa-tdep.h (FP_ALIAS): Likewise.
6639 * user-regs.h: Likewise (comment).
6640 * user-regs.c (user_reg, user_reg_map_name_to_regnum): Likewise.
6641 * trad-frame.c (trad_frame_alloc_saved_regs): Likewise.
6642 * target-descriptions.h: Likewise (comment).
6643 * target.c (debug_print_register): Likewise.
6644 * stack.c (frame_info): Likewise.
6645 * stabsread.c (define_symbol): Likewise.
6646 * sh64-tdep.c (sh64_print_register,sh64_media_print_registers_info)
6647 (sh64_compact_print_registers_info): Likewise.
6648 * rs6000-tdep.c (rs6000_register_sim_regno): Likewise.
6649 * regcache.c (init_regcache_descr,register_size,regcache,regcache_save
6650 (regcache_restore,regcache_dump): Likewise.
6651 * mips-tdep.c (print_gp_register_row,mips_print_registers_info)
6652 (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
6653 (mips_stab_reg_to_regnum): Likewise.
6654 * findvar.c (value_of_register): Likewise.
6655 * infcmd.c (default_print_registers_info,registers_info)
6656 (print_vector_info,print_float_info): Likewise.
6657 * m68k-tdep.c (m68k_dwarf_reg_to_regnum): Likewise.
6658 * h8300-tdep.c (h8300_register_type): Likewise.
6659 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
6660 * frame.h (SIZEOF_FRAME_SAVED_REGS): Likewise.
6661 * xtensa-tdep.c (xtensa_register_type,xtensa_reg_to_regnum)
6662 (xtensa_pseudo_register_read,xtensa_pseudo_register_write): Likewise.
6663 * parse.c: Remove comment.
6664 * gdbarch.c, gdbarch.h: Regenerate
6666 2007-05-31 Markus Deuling <deuling@de.ibm.com>
6668 * gdbarch.sh (CANNOT_FETCH_REGISTER): Replace by
6669 gdbarch_cannot_fetch_register.
6670 * alpha-nat.c (fetch_osf_core_registers): Likewise.
6671 * hppa-linux-nat.c (fetch_register): Likewise.
6672 * inf-ptrace.c (inf_ptrace_fetch_register): Likewise.
6673 * m68klinux-nat.c (fetch_register): Likewise.
6674 * mipsnbsd-tdep.c (mipsnbsd_supply_reg, mipsnbsd_supply_fpreg):
6676 * gdbarch.sh (CANNOT_STORE_REGISTER): Replace by
6677 gdbarch_cannot_store_register.
6678 * hppa-linux-nat.c (store_register): Likewise.
6679 * inf-ptrace.c (inf_ptrace_store_register): Likewise.
6680 * regcache.c (regcache_raw_write): Likewise.
6681 * m68klinux-nat.c (store_register): Likewise.
6682 * mipsnbsd-tdep.c (mipsnbsd_fill_reg, mipsnbsd_fill_fpreg): Likewise.
6683 * gdbarch.c, gdbarch.h: Regenerate.
6685 2007-05-31 Markus Deuling <deuling@de.ibm.com>
6687 * gdbarch.sh (TARGET_OSABI): Replace by gdbarch_osabi.
6688 * gdbarch.c, gdbarch.h: Regenerate.
6690 2007-05-31 Markus Deuling <deuling@de.ibm.com>
6692 * gdbarch.sh (TARGET_CHAR_SIGNED): Replace by gdbarch_char_signed.
6693 * gdbtypes.c (build_gdbtypes, gdbtypes_post_init): Likewise.
6694 * gdbarch.c, gdbarch.h: Regenerate.
6696 2007-05-31 Markus Deuling <deuling@de.ibm.com>
6698 * gdbarch.sh (TARGET_BYTE_ORDER): Replace by gdbarch_byte_order.
6699 * ax-gdb.c (gen_bitfield_ref): Likewise.
6700 * mi/mi-main.c (get_register): Likewise.
6701 * findvar.c (default_value_from_register, extract_signed_integer)
6702 (extract_unsigned_integer, extract_long_unsigned_integer)
6703 (store_signed_integer, store_unsigned_integer): Likewise.
6704 * regcache.c (regcache_dump): Likewise.
6705 * value.c (lookup_internalvar, value_of_internalvar)
6706 (set_internalvar): Likewise.
6708 * valprint.c (print_binary_chars, print_octal_chars)
6709 (print_decimal_chars, print_hex_chars, print_char_chars): Likewise.
6710 * infcmd.c (default_print_registers_info): Likewise.
6711 * arch-utils.c (selected_byte_order, show_endian): Likewise.
6712 * stabsread.c (define_symbol): Likewise.
6713 * doublest.c (floatformat_from_length, floatformat_from_type)
6714 (extract_typed_floating, store_typed_floating): Likewise.
6715 * gdbarch.c, gdbarch.h: Regenerate.
6717 2007-05-31 Markus Deuling <deuling@de.ibm.com>
6719 * gdbarch.sh (CALL_DUMMY_LOCATION): Replace by
6720 gdbarch_call_dummy_location.
6721 * infcall.c (call_function_by_hand): Likewise.
6722 * inferior.h: Change comment.
6723 * arch-utils.c: Change comment.
6724 * gdbarch.c, gdbarch.h: Regenerate.
6726 2007-05-28 Joel Brobecker <brobecker@adacore.com>
6728 * solib-aix5.c: Delete.
6729 * Makefile.in (solib-aix5.o): Delete rule.
6731 2007-05-23 Daniel Jacobowitz <dan@codesourcery.com>
6733 * breakpoint.h (enum bpstat_what_main_action): Remove
6734 BPSTAT_WHAT_THROUGH_SIGTRAMP.
6735 * infrun.c (process_event_stop_test): Do not check for it.
6737 2007-05-22 Chris Dearman <chris@mips.com>
6738 Maciej W. Rozycki <macro@mips.com>
6740 * ser-unix.c (show_serial_hwflow): New function.
6741 (hardwire_raw): Add hardware flow control support.
6742 (_initialize_ser_hardwire): Add "set/show remoteflow".
6743 * Makefile.in (ser-unix.o): Depend on $(gdbcmd_h).
6744 * NEWS: Document the new command.
6746 2007-05-21 Ulrich Weigand <uweigand@de.ibm.com>
6748 * config/i386/tm-linux.h (sys_quotactl): Do not define.
6749 * configure.ac (sys_quotactl, START_INFERIOR_TRAPS_EXPECTED): Do not
6750 define for i[[3456]]86-*-linux* native configurations.
6751 * config.in, configure: Regenerate.
6753 2007-05-19 Joel Brobecker <brobecker@adacore.com>
6755 * rs6000-nat.c (xcoff_relocate_symtab): Do nothing if debugging
6756 a core file. Add comment in the function description.
6758 2007-05-18 Caroline Tice <ctice@apple.com>
6760 * c-valprint.c (c_value_print): If the initialized field of the
6761 value struct is 0, print out "[uninitialized]" before the value.
6762 * dwarf2expr.c (execute_stack_op): Initialize ctx->initialized field;
6763 allow DW_OP_GNU_uninit as legal op following a DW_OP_reg op or a
6764 DW_OP_regx op; add case for DW_OP_GNU_uninit and update
6765 ctx->initialized appropriately. Verify no location op follows
6767 * dwarf2expr.h (struct dwarf_expr_context): New field, initialized.
6768 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Add call to
6769 set_value_initialized.
6770 * dwarf2read.c (dwarf_stack_op_name): Add case for DW_OP_GNU_uninit.
6771 (decode_locdesc): Add case for DW_OP_GNU_uninit.
6772 * value.c (struct value): New field, initialized.
6773 (allocate_value): Initialize new field.
6774 (set_value_initialized): New function.
6775 (value_initialized): New function.
6776 * value.h (value_initialized): New extern declaration.
6777 (set_value_initialized): Likewise.
6779 2007-05-18 Caroline Tice <ctice@apple.com>
6781 * MAINTAINERS (Write After Approval): Add self.
6783 2007-05-17 Joel Brobecker <brobecker@adacore.com>
6785 * gdbtypes.c (make_reference_type): Preserve the type chain
6786 and set the length of all the variants of the pointer type.
6788 2007-05-17 Joel Brobecker <brobecker@adacore.com>
6790 * gdbtypes.c (make_pointer_type): Preserve the pointer type chain
6791 and set the length of all the variants of the pointer type.
6793 2007-05-17 Maciej W. Rozycki <macro@mips.com>
6795 * mips-tdep.c (mips_n32n64_push_dummy_call): Fix and reformat a
6797 (mips_o64_push_dummy_call): Reformat a comment.
6799 2007-05-17 Qinwei <qinwei@sunnorth.com.cn>
6801 * score-tdep.c (score_frame_cache->fp, score_analyze_prologue)
6802 (score_prologue_frame_base_address): Return fp to keep gdb print
6803 local variables correctly when debugging information is stabs.
6805 (score_analyze_prologue): For software watchpoint, fetch all the
6806 instructions from range [startaddr, pc] once and identify them locally
6807 to reduce memory access.
6808 (score_malloc_and_get_memblock, score_free_memblock)
6809 (score_adjust_memblock_ptr): New functions.
6810 (score_fetch_inst): Fetch single instruction or mutiple instructions.
6812 (score_target_can_use_watch, score_stopped_by_watch)
6813 (score_target_insert_watchpoint, score_target_remove_watchpoint)
6814 (score_target_insert_hw_breakpoint, score_target_remove_hw_breakpoint):
6815 New functions for remote & local hw-watchpoint and hw-breakpoint.
6817 2007-05-16 Alfred M. Szmidt <ams@gnu.org>
6819 * reply_mig_hack.awk: Check for `auto const mach_msg_type_t'
6820 declarations as well.
6822 2007-05-16 Ulrich Weigand <uweigand@de.ibm.com>
6824 * config/arm/embed.mt (DEPRECATED_TM_FILE): Set to tm-arm.h.
6825 * config/arm/tm-embed.h: Delete file.
6827 * arm-tdep.h (arm_software_single_step): Declare.
6828 * arm-tdep.c (arm_software_single_step): Make global.
6829 (arm_gdbarch_init): Move set_gdbarch_software_single_step call
6831 * arm-linux-tdep.c (arm_linux_init_abi): ... here ...
6832 * armnbsd-tdep.c (arm_netbsd_init_abi_common): ... here ...
6833 * armobsd-tdep.c (armobsd_init_abi): ... here ...
6834 * arm-wince-tdep.c (arm_wince_init_abi): ... and here.
6836 * arm-tdep.c (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT): No longer
6837 allow defines to be overriden by TM file.
6838 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Likewise. Also,
6839 change default to {0xbe,0xbe}.
6840 * armobsd-tdep.c (arm_obsd_thumb_le_breakpoint,
6841 arm_obsd_thumb_be_breakpoint): New global variables.
6842 (armobsd_init_abi): Override tdep->thumb_breakpoint and
6843 tdep->thumb_breakpoint_size.
6844 * arm-wince-tdep.c (arm_wince_thumb_le_breakpoint): New variable.
6845 (arm_wince_init_abi): Override tdep->thumb_breakpoint and
6846 tdep->thumb_breakpoint_size.
6848 * arm-tdep.c (arm_gdbarch_init): Add set_gdbarch_skip_trampoline_code.
6850 2007-05-16 Daniel Jacobowitz <dan@codesourcery.com>
6852 * NEWS: Mention removed "set mips stack-arg-size" and "set mips
6855 * mips-tdep.c (MIPS32_REGSIZE, MIPS64_REGSIZE): New constants.
6856 (size_auto, size_32, size_64, size_enums, mips_abi_regsize_string)
6857 (mips_stack_argsize_string, mips_stack_argsize): Delete.
6858 (mips_abi_regsize): Simplify.
6859 (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call)
6860 (mips_n32n64_return_value, mips_o32_push_dummy_call)
6861 (mips_o32_return_value, mips_o64_push_dummy_call)
6862 (mips_o64_return_value): Propogate constant register sizes. Use the
6863 ABI register size instead of mips_stack_argsize.
6864 (mips_dump_tdep): Don't print mips_stack_argsize.
6865 (_initialize_mips_tdep): Remove saved-gpreg-size and stack-arg-size
6868 2007-05-16 Daniel Jacobowitz <dan@codesourcery.com>
6870 * config/mips/linux.mt (DEPRECATED_TM_FILE): Delete.
6871 * config/mips/tm-linux.h: Delete.
6872 * mips-linux-tdep.c (mips_svr4_so_ops): New.
6873 (mips_linux_in_dynsym_resolve_code): Make static. Use
6874 svr4_in_dynsym_resolve_code.
6875 (mips_linux_init_abi): Initialize mips_svr4_so_ops. Call
6877 * solib-svr4.c (svr4_in_dynsym_resolve_code, svr4_so_ops): Make
6879 * solib-svr4.h (svr4_so_ops, svr4_in_dynsym_resolve_code): Declare.
6880 * Makefile.in (mips-linux-tdep.o): Update.
6881 * solib.c (set_solib_ops): New.
6882 (current_target_so_ops): Update comment.
6883 * solib.h (set_solib_ops): New prototype.
6885 2007-05-16 Chris Dearman <chris@mips.com>
6887 * printcmd.c (do_examine): Fix typos in a comment.
6889 2007-05-16 Richard Sandiford <richard@codesourcery.com>
6891 * configure.ac: Allow sysroots to be relocated under $prefix as
6892 well as $exec_prefix.
6893 * configure: Regenerate.
6895 2007-05-14 Ulrich Weigand <uweigand@de.ibm.com>
6897 * hppa-hpux-tdep.c: Do not include <dl.h> or <machine/save_state.h>.
6898 (offsetof): Do not define.
6899 (find_stub_with_shl_get): Use numerical value 3 instead of
6900 symbolic value TYPE_PROCEDURE.
6902 2007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
6904 * gdb_proc_service.h (paddr_t): Delete typedef.
6905 * proc-service.c (ps_addr_to_core_addr, core_addr_to_ps_addr): New.
6906 (ps_xfer_memory): Take a psaddr_t. Use ps_addr_to_core_addr.
6907 (ps_pglobal_lookup): Take a psaddr_t *. Use core_addr_to_ps_addr.
6908 (ps_pdread, ps_pdwrite, ps_ptread, ps_ptwrite): Take a psaddr_t.
6909 * sol-thread.c (gdb_ps_addr_t): Use psaddr_t instead of paddr_t.
6910 * Makefile.in (proc-service.o): Update.
6912 2007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
6914 * Makefile.in (mips-tdep.o): Update.
6915 * mips-tdep.c (mips_gdbarch_init): Register the dwarf2 CFI
6918 2007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
6920 * dwarf2-frame.c (dwarf2_frame_prev_register): Use pack_long
6921 instead of store_typed_address.
6922 * value.c (pack_long): New.
6923 (value_from_longest): Use it.
6924 * value.h (pack_long): New prototype.
6926 2007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
6928 * dwarf2-frame.c (read_encoded_value): Correct typo. Use
6929 DW_EH_PE_signed if appropriate.
6931 2007-05-14 Paul Brook <paul@codesourcery.com>
6932 Daniel Jacobowitz <dan@codesourcery.com>
6934 * dwarf2read.c (dwarf2_debug_line_missing_file_complaint): New
6936 (dwarf_decode_lines): Check for line info without a file.
6938 2007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
6940 * linux-thread-db.c (thread_db_pid_to_str): Print thread IDs
6943 2007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
6945 * jv-exp.y (push_fieldnames): Use STRUCTOP_PTR instead of
6947 * jv-lang.c (evaluate_subexp_java): Handle STRUCTOP_PTR instead of
6949 * jv-typeprint.c (java_print_type): Do not crash on NULL varstring.
6951 2007-05-14 Ulrich Weigand <uweigand@de.ibm.com>
6953 * gdbarch.sh (read_sp): Remove.
6954 * gdbarch.c, gdbarch.h: Regenerate.
6955 * frame.c (frame_sp_unwind): Do not call TARGET_READ_SP.
6957 * avr-tdep.c (avr_read_sp): Remove.
6958 (avr_unwind_sp): New function.
6959 (avr_gdbarch_init): Install unwind_sp instead of read_sp callback.
6960 * mips-tdep.c (mips_read_sp): Remove.
6961 (mips_unwind_sp): New function.
6962 (mips_gdbarch_init): Install unwind_sp instead of read_sp callback.
6963 * score-tdep.c (score_read_unsigned_register): Remove.
6964 (score_read_sp): Remove.
6965 (score_unwind_sp): New function.
6966 (score_gdbarch_init): Install unwind_sp instead of read_sp callback.
6968 2007-05-14 Maxim Grigoriev <maxim2405@gmail.com>
6970 * buildsym.c (start_subfile): Handle absolute pathnames
6971 while comparing subfile names.
6973 2007-05-13 Ulrich Weigand <uweigand@de.ibm.com>
6975 * hppa-hpux-tdep.c: Include "regcache.h".
6976 * hppa-linux-tdep.c: Likewise.
6977 * hppa-tdep.c: Include "gdb_stdint.h".
6978 (find_unwind_entry): Cast host pointer to uintptr_t before passing
6980 * Makefile.in: Update dependencies.
6982 2007-05-13 Ulrich Weigand <uweigand@de.ibm.com>
6984 * blockframe.c: Remove obsolete comments.
6985 * alpha-nat.c (fetch_osf_core_registers): Update comment.
6986 * arm-tdep.h (enum gdb_regnum): Remove obsolete part of comment.
6987 * hppa-tdep.h (enum hppa_regnum): Likewise.
6988 * mips-tdep.h: Likewise.
6989 * m68hc11-tdep.c: Likewise.
6991 2007-05-13 Ulrich Weigand <uweigand@de.ibm.com>
6993 * inferior.h (read_sp): Remove prototype.
6994 * regcache.c (read_sp): Remove.
6995 * gcore.c (derive_stack_segment): Use get_frame_sp instead of read_sp.
6996 * infcall.c (call_function_by_hand): Likewise.
6997 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Use regcache instead
6999 * rs6000-tdep.c (rs6000_push_dummy_call): Likewise.
7001 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
7003 * i386-linux-nat.c (i386_linux_resume): Use regcache functions
7004 instead of read_register and read_register_pid.
7006 * ia64-linux-nat.c (enable_watchpoints_in_psr): Use REGCACHE
7007 argument instead of PTID. Use regcache functions instead of
7009 (ia64_linux_insert_watchpoint): Update call.
7010 (ia64_linux_stopped_data_address): Use regcache functions
7011 instead of read_register_pid and write_register_pid.
7013 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
7015 * libunwind-frame.h (struct regcache): Add forward declaration.
7016 (libunwind_get_reg_special): Add REGCACHE argument.
7017 * libunwind-frame.c (libunwind_get_reg_special): Add REGCACHE
7018 argument. Pass it to unw_init_remote_p.
7020 * ia64-tdep.c (ia64_pseudo_register_read): Pass regcache to
7021 libunwind_get_reg_special.
7022 (ia64_access_reg): Remove "write" case.
7023 (ia64_access_fpreg): Likewise. Read from next_frame passed
7024 as callback argument instead of from current_regcache.
7025 (ia64_access_rse_reg): Remove "write" case. Read from regcache
7026 passed as callback argument instead of from current_regcache.
7027 (ia64_access_rse_fpreg): New function.
7028 (ia64_unw_rse_acce): Use it instead of ia64_access_fpreg.
7030 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
7032 * NEWS: Mention SPU overlay support.
7034 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
7036 * spu-tdep.c (spu_frame_unwind_cache): Add comment.
7038 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
7040 * breakpoint.c (remove_breakpoint): Do not remove software
7041 breakpoints in unmapped overlay sections.
7043 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
7045 * spu-tdep.c: Include "observer.h".
7046 (spu_frame_unwind_cache): Unwind PC through overlay return stubs.
7047 (spu_overlay_data): New variable.
7048 (struct spu_overlay_table): New type.
7049 (spu_get_overlay_table, spu_overlay_update_osect, spu_overlay_update,
7050 spu_overlay_new_objfile): New functions.
7051 (spu_gdbarch_init): Install spu_overlay_update.
7052 (_initialize_spu_tdep): Register spu_overlay_new_objfile,
7053 allocate spu_overlay_data objfile data.
7055 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
7057 * gdbarch.sh (overlay_update): New gdbarch function.
7058 (struct obj_section): Add forward declaration.
7059 * gdbarch.c, gdbarch.h: Regenerate.
7061 * symfile.c (simple_overlay_update): Make global.
7062 (target_overlay_update): Remove variable.
7063 (overlay_is_mapped): Call gdbarch_overlay_update instead of
7064 target_overlay_update.
7065 (overlay_load_command): Likewise.
7066 * symfile.h (struct obj_section): Add forward declaration.
7067 (simple_overlay_update): Add prototype.
7069 * m32r-tdep.c (m32r_gdbarch_init): Install simple_overlay_update.
7071 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
7073 * observer.sh: Add "struct objfile" forward declaration.
7074 * target.h (deprecated_target_new_objfile_hook): Remove.
7075 * symfile.c (deprecated_target_new_objfile_hook): Remove.
7076 (clear_symtab_users): Call observer_notify_new_objfile.
7077 (symbol_file_add_with_addrs_or_offsets): Likewise.
7078 * rs6000-nat.c: Include "observer.h".
7079 (vmap_ldinfo): Call observer_notify_new_objfile.
7080 (xcoff_relocate_core): Likewise.
7081 * remote.c (remote_new_objfile_chain): Remove.
7082 (remote_new_objfile): Do not call remote_new_objfile_chain.
7083 (_initialize_remote): Use observer_attach_new_objfile.
7084 * tui/tui-hooks.c (tui_target_new_objfile_chain): Remove.
7085 (tui_new_objfile_hook): Do not call tui_target_new_objfile_chain.
7086 (_initialize_tui_hooks): Use observer_attach_new_objfile.
7087 * aix-thread.c: Include "observer.h".
7088 (target_new_objfile_chain): Remove.
7089 (new_objfile): Do not call target_new_objfile_chain.
7090 (_initialize_aix_thread): Use observer_attach_new_objfile.
7091 * hpux-thread.c: Include "observer.h"
7092 (target_new_objfile_chain): Remove.
7093 (hpux_thread_new_objfile): Make static. Do not call
7094 target_new_objfile_chain.
7095 (_initialize_hpux_thread): Use observer_attach_new_objfile.
7096 * linux-thread-db.c: Include "observer.h".
7097 (target_new_objfile_chain): Remove.
7098 (thread_db_new_objfile): Do not call target_new_objfile_chain.
7099 (_initialize_thread_db): Use observer_attach_new_objfile.
7100 * sol-thread.c: Include "observer.h".
7101 (target_new_objfile_chain): Remove.
7102 (sol_thread_new_objfile): Make static. Do not call
7103 target_new_objfile_chain.
7104 (_initialize_sol_thread): Use observer_attach_new_objfile.
7105 * Makefile.in (aix-thread.o, hpux-thread.o, linux-thread-db.o,
7106 rs6000-nat.o, sol-thread.o, tui-hooks.o): Add dependency on
7109 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
7111 * gdbarch.sh (remote_translate_xfer_address): Remove.
7112 * gdbarch.h, gdbarch.c: Regenerate.
7113 * arch-utils.c (generic_remote_translate_xfer_address): Remove.
7114 * arch-utils.h (generic_remote_translate_xfer_address): Remove.
7115 * remote.c (remote_write_bytes_aux, remote_read_bytes): Do not
7116 call gdbarch_remote_translate_xfer_address.
7117 * frv-tdep.c (frv_gdbarch_init): Do not call
7118 set_gdbarch_remote_translate_xfer_address.
7119 * ia64-tdep.c (ia64_remote_translate_xfer_address): Remove.
7120 (ia64_gdbarch_init): Do not install it.
7122 2007-05-11 Bob Wilson <bob.wilson@acm.org>
7124 * NEWS: Mention change in handling the -tui option.
7126 2007-05-11 Daniel Jacobowitz <dan@codesourcery.com>
7128 * linux-thread-db.c (enable_thread_event_reporting): Fix comment
7131 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
7133 * breakpoint.c (single_step_breakpoint_inserted_here_p): New function.
7134 (breakpoint_inserted_here_p): Call it.
7135 (software_breakpoint_inserted_here_p): Likewise.
7137 2007-05-10 Ulrich Weigand <uweigand@de.ibm.com>
7139 * inf-ptrace.c (inf_ptrace_register_u_offset): Adapt parameter list.
7140 (inf_ptrace_fetch_register): Add register_u_offset callback parameters
7141 GDBARCH and STORE_P. Handle callback (CORE_ADDR) -1 return value.
7142 (inf_ptrace_store_register): Likewise.
7143 (inf_ptrace_trad_target): Adapt register_u_offset parameter list.
7144 * inf-ptrace.h (inf_ptrace_trad_target): Likewise.
7146 * vax-nat.c (vax_register_u_offset): Adapt parameter list.
7148 * linux-nat.c (linux_trad_target): Adapt parameter list.
7149 * linux-nat.h (linux_trad_target): Likewise.
7151 * alpha-linux-nat.c (alpha_linux_register_u_offset): Adapt parameters.
7153 * mips-linux-nat.c (mips_linux_cannot_fetch_register): Remove.
7154 (mips_linux_cannot_store_register): Likewise.
7155 (mips_linux_register_addr): Add GDBARCH and STORE_P parameters.
7156 Return (CORE_ADDR) -1 for registers that cannot be fetched or
7157 stored via ptrace. Use GDBARCH instead of current_gdbarch.
7158 (mips64_linux_register_addr): Likewise.
7159 (mips_linux_register_u_offset): Adapt parameter list. Pass
7160 GDBARCH and STORE_P on to mips{64}_linux_register_addr.
7162 * config/mips/linux.mh (NAT_FILE): Set to config/nm-linux.h.
7163 * config/mips/nm-linux.h: Delete file.
7165 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
7167 * remote.c (remote_detach): Error out if remote can't detach.
7169 2007-05-10 Luis Machado <luisgpm@br.ibm.com>
7171 * rs6000-tdep.c: (deal_with_atomic_sequence) Stores branch
7172 instruction's opcode in the "opcode" variable and declares new
7173 variable "closing_insn".
7175 2007-05-10 Chris Dearman <chris@mips.com>
7176 Maciej W. Rozycki <macro@mips.com>
7178 * cli/cli-setshow.c (do_setshow_command): Remove trailing
7179 whitespace when setting a var_filename.
7181 2007-05-09 Bob Wilson <bob.wilson@acm.org>
7183 * main.c (captured_main): Recognize -tui option and print an error
7184 message when the TUI is not configured.
7186 2007-05-09 Andreas Schwab <schwab@suse.de>
7188 * mipsnbsd-tdep.c (mipsnbsd_ilp32_fetch_link_map_offsets): Don't
7189 set removed members.
7190 (mipsnbsd_lp64_fetch_link_map_offsets): Likewise.
7192 2007-05-08 Ulrich Weigand <uweigand@de.ibm.com>
7194 * gdbarch.sh (deprecated_store_struct_return): Remove.
7195 * gdbarch.c, gdbarch.h: Regenerate.
7196 * frv-tdep.c (frv_store_struct_return): Remove.
7197 (frv_gdbarch_init): Do not install it.
7199 2007-05-08 Ulrich Weigand <uweigand@de.ibm.com>
7201 * config/i386/nm-i386sol2.h (USE_PROC_FS): Do not define.
7202 * config/mips/nm-irix5.h (USE_PROC_FS): Do not define.
7203 * config/nm-linux.h (USE_PROC_FS): Do not undefine.
7205 2007-05-08 Ulrich Weigand <uweigand@de.ibm.com>
7207 * spu-linux-nat.c: Include "gdb_stdint.h".
7208 (fetch_ppc_register): Use uint64_t instead of unsigned long long.
7209 (fetch_ppc_memory_1, store_ppc_memory_1): Likewise.
7210 (fetch_ppc_memory, store_ppc_memory): Fix coding style.
7211 (spu_symbol_file_add_from_memory): Use strtoulst instead of sscanf.
7212 (spu_child_wait): Mark up string for translation.
7214 2007-05-08 Paul Gilliam <pgilliam@us.ibm.com>
7215 Luis Machado <luisgpm@br.ibm.com>
7217 * rs6000-tdep.c: (LWARX_MASK, LWARX_INSTRUCTION, LDARX_INSTRUCTION,
7218 STWCX_MASK, STWCX_INSTRUCTION, STDCX_INSTRUCTION, BC_MASK,
7219 BC_INSTRUCTION): Define.
7220 (deal_with_atomic_sequence): New function.
7221 (rs6000_software_single_step): Call deal_with_atomic_sequence.
7222 (rs6000_gdbarch_init): Install deal_with_atomic_sequence as
7223 gdbarch_software_single_step routine.
7225 2007-05-07 Ulrich Weigand <uweigand@de.ibm.com>
7227 * spu-linux-nat.c (fetch_ppc_register, fetch_ppc_memory_1,
7228 store_ppc_memory_1, fetch_ppc_memory, store_ppc_memory,
7229 parse_spufs_run, spu_bfd_iovec_pread, spu_bfd_open,
7230 spu_symbol_file_add_from_memory, spu_child_post_startup_inferior,
7231 spu_child_post_attach, spu_fetch_inferior_registers,
7232 spu_store_inferior_registers, spu_xfer_partial): Store PPE-side
7233 memory addresses as ULONGEST, not CORE_ADDR.
7235 2007-05-07 Ulrich Weigand <uweigand@de.ibm.com>
7237 * gdbarch.sh: Add skip_permanent_breakpoint callback.
7238 * gdbarch.h, gdbarch.c: Regenerate.
7240 * infrun.c (SKIP_PERMANENT_BREAKPOINT): Remove default definition.
7241 (resume): Call gdbarch_skip_permanent_breakpoint instead of
7242 SKIP_PERMANENT_BREAKPOINT. Inline default case.
7244 * hppa-hpux-tdep.c (hppa_skip_permanent_breakpoint): Make static.
7245 Add REGCACHE argument. Use it instead of read/write_register.
7246 (hppa_hpux_init_abi): Install hppa_skip_permanent_breakpoint.
7248 * config/pa/tm-hppah.h: Delete file.
7249 * config/pa/hppa64.mt (DEPRECATED_TM_FILE): Set to tm-hppa.h.
7250 * config/pa/hppahpux.mt (DEPRECATED_TM_FILE): Likewise.
7252 2007-05-07 Daniel Jacobowitz <dan@codesourcery.com>
7254 * Makefile.in (c-lang.o, gnu-v3-abi.o): Update.
7255 * NEWS: Mention improved C++ thunk support.
7256 * c-lang.c (cplus_language_defn): Mention cplus_skip_trampoline.
7257 * cp-abi.c (cplus_skip_trampoline): New.
7258 * cp-abi.h (cplus_skip_trampoline): New prototype.
7259 (struct cp_abi_ops): Add skip_trampoline member.
7260 * gnu-v3-abi.c (gnuv3_skip_trampoline): New.
7261 (init_gnuv3_ops): Set skip_trampoline.
7263 2007-05-06 Daniel Jacobowitz <dan@codesourcery.com>
7265 * rs6000-tdep.c (struct frame_extra_info): Delete.
7267 2007-05-06 Daniel Jacobowitz <dan@codesourcery.com>
7269 * linux-thread-db.c: Update some FIXME comments.
7270 (thread_db_xfer_partial): Delete.
7271 (init_thread_db_ops): Do not set to_xfer_partial.
7273 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7275 * inftarg.c, infptrace.c: Remove files.
7276 * Makefile.in (ALLDEPFILES): Remove inftarg.c and infptrace.c
7277 (inftarg.o, infptrace.o): Remove rules.
7278 * gdbcore.h (register_addr): Remove prototype.
7279 * inferior.h (kill_inferior, store_inferior_registers,
7280 fetch_inferior_registers, attach, detach, ptrace_wait, child_resume,
7281 call_ptrace, pre_fork_inferior): Remove prototypes.
7282 * target.h (child_xfer_memory, child_pid_to_exec_file,
7283 child_core_file_to_sym_file, child_post_attach,
7284 child_post_startup_inferior, child_acknowledge_created_inferior,
7285 child_insert_fork_catchpoint, child_remove_fork_catchpoint,
7286 child_insert_vfork_catchpoint, child_remove_vfork_catchpoint,
7287 child_insert_exec_catchpoint, child_remove_exec_catchpoint,
7288 child_follow_fork, child_reported_exec_events_per_exec_call,
7289 child_has_exited, child_thread_alive): Remove prototypes.
7291 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7293 * sparc-nat.h (sparc_fetch_inferior_registers): Add prototype.
7294 (sparc_store_inferior_registers): Likewise.
7295 * sparc-nat.c (fetch_inferior_registers): Rename to ...
7296 (sparc_fetch_inferior_registers): ... this.
7297 (store_inferior_registers): Rename to ...
7298 (sparc_store_inferior_registers): ... this.
7299 (sparc_target): Update callback names.
7300 * sparc-linux.nat.c (_initialize_sparc_linux_nat): Likewise.
7301 * sparc64-linux.nat.c (_initialize_sparc64_linux_nat): Likewise.
7303 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7305 * linux-nat.c (child_post_attach): Rename to ...
7306 (linux_child_post_attach): ... this. Make static.
7307 (child_follow_fork): Rename to ...
7308 (linux_child_follow_fork): ... this. Make static.
7309 (child_insert_fork_catchpoint): Rename to ...
7310 (linux_child_insert_fork_catchpoint): ... this. Make static.
7311 (child_insert_vfork_catchpoint): Rename to ...
7312 (linux_child_insert_vfork_catchpoint): ... this. Make static.
7313 (child_insert_exec_catchpoint): Rename to ...
7314 (linux_child_insert_exec_catchpoint): ... this. Make static.
7315 (child_pid_to_exec_file): Rename to ...
7316 (linux_child_pid_to_exec_file): ... this. Make static.
7318 (linux_handle_extended_wait): Update call.
7319 (linux_xfer_partial): Update callback routine names.
7321 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7323 * configure.host (alpha*-*-osf[12]*): Remove support.
7324 * NEWS: Mention removed configurations.
7326 * config/alpha/alpha-osf1.mh: Delete file.
7327 * config/alpha/alpha-osf2.mh: Delete file.
7328 * config/alpha/alpha-osf3.mh (NATDEPFILES): Remove inftarg.o
7330 * config/alpha/nm-osf.h: Delete file.
7331 * config/alpha/nm-osf2.h: Delete file.
7332 * config/alpha/nm-osf3.h: Do not include "nm-osf2.h".
7333 (START_INFERIOR_TRAPS_EXPECTED): Copy from nm-osf.h.
7334 (PROCFS_DONT_TRACE_FAULTS): Copy from nm-osf2.h.
7336 * alpha-nat.c (ALPHA_UNIQUE_PTRACE_ADDR): Do not define.
7337 (register_addr, kernel_u_size): Remove.
7338 Do not check for "defined(USE_PROC_FS) || defined(HAVE_GREGSET_T)".
7340 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7342 * regcache.c (regcache_invalidate): New function.
7343 (register_cached): Remove.
7344 (set_register_cached): Remove.
7345 (deprecated_registers_fetched): Remove.
7346 (registers_changed): Use regcache_invalidate instead
7347 of set_register_cached.
7348 (regcache_raw_read): Update comment.
7350 * regcache.h (regcache_invalidate): Add prototype.
7351 (register_cached): Remove.
7352 (set_register_cached): Remove.
7353 (deprecated_registers_fetched): Remove.
7355 * findvar.c (value_of_register): Do not call register_cached.
7356 * frame.c (frame_register): Likewise.
7357 * tui/tui-regs.c (tui_get_register): Likewise.
7359 * remote.c (fetch_register_using_p): Do not call set_register_cached.
7360 (process_g_packet): Likewise.
7361 (remote_fetch_registers): Likewise.
7362 * remote-sim.c (gdbsim_fetch_register): Likewise.
7363 * mt-tdep.c (mt_select_coprocessor): Replace set_register_cached call
7364 by regcache_invalidate.
7365 (mt_pseudo_register_write): Likewise.
7366 * sh-tdep.c (sh_pseudo_register_write): Likewise.
7368 * corelow.c (get_core_registers): Replace deprecated_registers_fetched
7369 call by loop over regcache_raw_supply (..., NULL).
7371 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7373 * target.h (struct target_ops): Add REGCACHE parameter to
7374 to_prepare_to_store.
7375 (target_prepare_to_store): Likewise.
7376 * target.c (debug_to_prepare_to_store): Add REGCACHE parameter.
7377 (update_current_target): Adapt prepare_to_store de_fault rule.
7379 * regcache.c (regcache_raw_write): Pass regcache to
7380 target_prepare_to_store.
7382 * inftarg.c (child_prepare_to_store): Add REGCACHE parameter.
7383 Do not call CHILD_PREPARE_TO_STORE.
7384 * gnu-nat.c (gnu_prepare_to_store): Likewise.
7385 * procfs.c (procfs_prepare_to_store): Likewise.
7387 * inf-child.c (inf_child_prepare_to_store): Add REGCACHE parameter.
7388 * go32-nat.c (go32_prepare_to_store): Likewise.
7389 * monitor.c (monitor_prepare_to_store): Likewise.
7390 * nto-procfs.c (procfs_prepare_to_store): Likewise.
7391 * remote-m32r-sdi.c (m32r_prepare_to_store): Likewise.
7392 * remote-mips.c (mips_prepare_to_store): Likewise.
7393 * remote-sim.c (gdbsim_prepare_to_store): Likewise.
7394 * win32-nat.c (win32_prepare_to_store): Likewise.
7396 * remote.c (remote_prepare_to_store): Add REGCACHE parameter.
7397 Use it instead of current_regcache.
7399 * hpux-thread.c (hpux_thread_prepare_to_store): Add REGCACHE
7400 parameter. Pass it on to next target.
7401 * sol-thread.c (sol_thread_prepare_to_store): Likewise.
7403 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7405 * target.h (struct regcache): Add forward declaration.
7406 (struct target_ops): Add REGCACHE parameter to to_fetch_registers
7407 and to_store_registers target operations.
7408 (target_fetch_registers, target_store_registers): Update.
7410 * regcache.c (regcache_raw_read): Replace register_cached by
7411 regcache_valid_p. Pass regcache to target_fetch_registers.
7412 (regcache_raw_write): Pass regcache to target_store_registers.
7414 * arm-linux-nat.c (store_fpregister, store_fpregs, store_register,
7415 store_regs, store_wmmx_regs): Replace register_cached by
7418 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd): Pass current_regcache
7419 to target_fetch_registers calls.
7420 * corelow.c (core_open): Likewise.
7421 * linux-nat.c (linux_nat_corefile_thread_callback): Likewise.
7422 * proc-service.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
7423 ps_lsetfpregs): Likewise.
7424 * sol-thread.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
7425 ps_lsetfpregs): Likewise.
7426 * win32-nat.c (win32_resume): Likewise.
7427 * ia64-tdep.c (ia64_store_return_value): Pass current_regcache
7428 to target_store_registers call.
7429 * rs6000-tdep.c (rs6000_push_dummy_call): Likewise.
7431 * inferior.h (store_inferior_registers): Update prototype.
7432 (fetch_inferior_registers): Likewise.
7433 * gnu-nat.c (gnu_store_registers, gnu_fetch_registers): Likewise.
7434 * mips-linux-nat.c (super_fetch_registers, super_store_registers):
7435 Update function pointer signatures.
7437 * aix-thread.c (aix_thread_fetch_registers): Add REGCACHE parameter,
7438 use it instead of current_regcache, update calls.
7439 (aix_thread_store_registers): Likewise.
7440 * alphabsd-nat.c (alphabsd_fetch_inferior_registers): Likewise.
7441 (alphabsd_store_inferior_registers): Likewise.
7442 * amd64bsd-nat.c (amd64bsd_fetch_inferior_registers): Likewise.
7443 (amd64bsd_store_inferior_registers): Likewise.
7444 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers): Likewise.
7445 (amd64_linux_store_inferior_registers): Likewise.
7446 * arm-linux-nat.c (fetch_fpregister, fetch_fpregs, store_fpregister,
7447 store_fpregs, fetch_register, fetch_regs, store_register, store_regs,
7448 fetch_wmmx_regs, store_wmmx_regs): Likewise.
7449 (arm_linux_fetch_inferior_registers): Likewise.
7450 (arm_linux_store_inferior_registers): Likewise.
7451 * armnbsd-nat.c (fetch_register, fetch_regs, fetch_fp_register,
7452 fetch_fp_regs, armnbsd_fetch_registers): Likewise.
7453 (store_register, store_regs, store_fp_register, store_fp_regs,
7454 armnbsd_store_registers): Likewise.
7455 * bsd-kvm.c (bsd_kvm_fetch_pcb, bsd_kvm_fetch_registers): Likewise.
7456 * bsd-uthread.c (bsd_uthread_fetch_registers): Likewise.
7457 (bsd_uthread_store_registers): Likewise.
7458 * corelow.c (get_core_registers): Likewise.
7459 * go32-nat.c (fetch_register, go32_fetch_registers, store_register,
7460 go32_store_registers): Likewise.
7461 * hppabsd-nat.c (hppabsd_fetch_registers): Likewise.
7462 (hppabsd_store_registers): Likewise.
7463 * hppa-hpux-nat.c (hppa_hpux_fetch_register): Likewise.
7464 (hppa_hpux_fetch_inferior_registers): Likewise.
7465 (hppa_hpux_store_register): Likewise.
7466 (hppa_hpux_store_inferior_registers): Likewise.
7467 * hppa-linux-nat.c (fetch_register, store_register): Likewise.
7468 (hppa_linux_fetch_inferior_registers): Likewise.
7469 (hppa_linux_store_inferior_registers): Likewise.
7470 * hpux-thread.c (hpux_thread_fetch_registers): Likewise.
7471 (hpux_thread_store_registers): Likewise.
7472 * i386bsd-nat.c (i386bsd_fetch_inferior_registers): Likewise.
7473 (i386bsd_store_inferior_registers): Likewise.
7474 * i386gnu-nat.c (fetch_fpregs, gnu_fetch_registers, store_fpregs,
7475 gnu_store_registers): Likewise.
7476 * i386-linux-nat.c (fetch_register, store_register, fetch_regs,
7477 store_regs, fetch_fpregs, store_fpregs, fetch_fpxregs, store_fpxregs):
7479 (i386_linux_fetch_inferior_registers): Likewise.
7480 (i386_linux_store_inferior_registers): Likewise.
7481 * ia64-linux-nat.c (ia64_linux_fetch_register): Likewise.
7482 (ia64_linux_fetch_registers): Likewise.
7483 (ia64_linux_store_register): Likewise.
7484 (ia64_linux_store_registers): Likewise.
7485 * inf-child.c (inf_child_fetch_inferior_registers): Likewise.
7486 (inf_child_store_inferior_registers): Likewise.
7487 * inf-ptrace.c (inf_ptrace_fetch_register): Likewise.
7488 (inf_ptrace_fetch_registers): Likewise.
7489 (inf_ptrace_store_register): Likewise.
7490 (inf_ptrace_store_registers): Likewise.
7491 * infptrace.c (fetch_register, store_register): Likewise.
7492 (fetch_inferior_registers, store_inferior_registers): Likewise.
7493 * m32r-linux-nat.c (fetch_regs, store_regs): Likewise.
7494 (m32r_linux_fetch_inferior_registers): Likewise.
7495 (m32r_linux_store_inferior_registers): Likewise.
7496 * m68kbsd-nat.c (m68kbsd_fetch_inferior_registers): Likewise.
7497 (m68kbsd_store_inferior_registers): Likewise.
7498 * m68klinux-nat.c (fetch_register, old_fetch_inferior_registers,
7499 store_register, old_store_inferior_registers, fetch_regs, store_regs,
7500 fetch_fpregs, store_fpregs): Likewise.
7501 (m68k_linux_fetch_inferior_registers): Likewise.
7502 (m68k_linux_store_inferior_registers): Likewise.
7503 * m88kbsd-nat.c (m88kbsd_fetch_inferior_registers): Likewise.
7504 (m88kbsd_store_inferior_registers): Likewise.
7505 * mips64obsd-nat.c (mips64obsd_fetch_inferior_registers): Likewise.
7506 (mips64obsd_store_inferior_registers): Likewise.
7507 * mips-linux-nat.c (mips64_linux_regsets_fetch_registers): Likewise.
7508 (mips64_linux_regsets_store_registers): Likewise.
7509 (mips64_linux_fetch_registers): Likewise.
7510 (mips64_linux_store_registers): Likewise.
7511 * mipsnbsd-nat.c (mipsnbsd_fetch_inferior_registers): Likewise.
7512 (mipsnbsd_store_inferior_registers): Likewise.
7513 * monitor.c (monitor_fetch_register, monitor_store_register): Likewise.
7514 (monitor_fetch_registers, monitor_store_registers): Likewise.
7515 * nto-procfs.c (procfs_fetch_registers): Likewise.
7516 (procfs_store_registers): Likewise.
7517 * ppc-linux-nat.c (fetch_altivec_register, fetch_spe_register,
7518 fetch_register, supply_vrregset, fetch_altivec_registers,
7519 fetch_ppc_registers, ppc_linux_fetch_inferior_registers): Likewise.
7520 (store_altivec_register, store_spe_register, store_register,
7521 fill_vrregset, store_altivec_registers, store_ppc_registers,
7522 ppc_linux_store_inferior_registers): Likewise.
7523 * ppcnbsd-nat.c (ppcnbsd_fetch_inferior_registers): Likewise.
7524 (ppcnbsd_store_inferior_registers): Likewise.
7525 * ppcobsd-nat.c (ppcobsd_fetch_registers): Likewise.
7526 (ppcobsd_store_registers): Likewise.
7527 * procfs.c (procfs_fetch_registers, procfs_store_registers): Likewise.
7528 * remote.c (fetch_register_using_p, process_g_packet,
7529 fetch_registers_using_g, remote_fetch_registers): Likewise.
7530 (store_register_using_P, store_registers_using_G,
7531 remote_store_registers): Likewise.
7532 * remote-m32r-sdi.c (m32r_fetch_registers, m32r_fetch_register,
7533 m32r_store_register, m32r_store_register): Likewise.
7534 * remote-mips.c (mips_fetch_registers, mips_store_registers): Likewise.
7535 * remote-sim.c (gdbsim_fetch_register): Likewise.
7536 (gdbsim_store_register): Likewise.
7537 * rs6000-nat.c (fetch_register, store_register): Likewise.
7538 (rs6000_fetch_inferior_registers): Likewise.
7539 (rs6000_store_inferior_registers): Likewise.
7540 * s390-nat.c (fetch_regs, store_regs): Likewise.
7541 (fetch_fpregs, store_fpregs): Likewise.
7542 (s390_linux_fetch_inferior_registers): Likewise.
7543 (s390_linux_store_inferior_registers): Likewise.
7544 * shnbsd-nat.c (shnbsd_fetch_inferior_registers): Likewise.
7545 (shnbsd_store_inferior_registers): Likewise.
7546 * sol-thread.c (sol_thread_fetch_registers): Likewise.
7547 (sol_thread_store_registers): Likewise.
7548 * sparc-nat.c (fetch_inferior_registers): Likewise.
7549 (store_inferior_registers): Likewise.
7550 * spu-linux-nat.c (spu_fetch_inferior_registers): Likewise.
7551 (spu_store_inferior_registers): Likewise.
7552 * target.c (debug_print_register): Likewise.
7553 (debug_to_fetch_registers, debug_to_store_registers): Likewise.
7554 * vaxbsd-nat.c (vaxbsd_fetch_inferior_registers): Likewise.
7555 (vaxbsd_store_inferior_registers): Likewise.
7556 * win32-nat.c (do_win32_fetch_inferior_registers): Likewise.
7557 (win32_fetch_inferior_registers): Likewise.
7558 (win32_store_inferior_registers): Likewise.
7560 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7562 * gdbcore.h (struct regcache): Add forward declaration.
7563 (struct core_fns): Add REGCACHE argument to core_read_registers
7565 * corelow.c (get_core_register_section): Add REGCACHE argument,
7566 use it instead of current_regcache, pass it to core_read_registers
7568 (get_core_registers): Add current_regcache as parameter to
7569 get_core_register_section calls.
7571 * alpha-nat.c (fetch_osf_core_registers): Add REGCACHE argument,
7572 use it instead of current_regcache.
7573 * armnbsd-nat.c (fetch_core_registers): Likewise.
7574 (fetch_elfcore_registers): Likewise.
7575 * core-regset.c (fetch_core_registers): Likewise.
7576 * cris-tdep.c (fetch_core_registers): Likewise.
7577 * irix5-nat.c (fetch_core_registers): Likewise.
7578 * m68klinux-nat.c (fetch_core_registers): Likewise.
7579 * mips-linux-tdep.c (fetch_core_registers): Likewise.
7580 * win32-nat.c (fetch_elf_core_registers): Likewise.
7582 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7584 * gregset.h (struct regcache): Add forward declaration.
7585 (supply_gregset): Add REGCACHE parameter, make GREGS const.
7586 (supply_fpregset): Add REGCACHE parameter, make FPREGS const.
7587 (supply_fpxregset): Add REGCACHE parameter, make FPXREGS const.
7588 (fill_gregset): Add REGCACHE parameter.
7589 (fill_fpregset): Likewise.
7590 (fill_fpxregset): Likewise.
7592 Update all definitions accordingly:
7593 * alphabsd-nat.c, alpha-linux-nat.c, alpha-nat.c, amd64-linux-nat.c,
7594 arm-linux-nat.c, hppa-linux-nat.c, i386gnu-nat.c, i386-linux-nat.c,
7595 i386-sol2-nat.c, i386v4-nat.c, ia64-linux-nat.c, irix5-nat.c,
7596 m32r-linux-nat.c, m68klinux-nat.c, mips-linux-nat.c, ppc-linux-nat.c,
7597 s390-nat.c, sparc64-linux-nat.c, sparc-linux-nat.c, sparc-sol2-nat.c
7598 (supply_gregset): Add REGCACHE parameter, use it instead of
7599 current_regcache. Make GREGSETP parameter const, adapt casts.
7600 (supply_fpregset): Add REGCACHE parameter, use it instead of
7601 current_regcache. Make FPREGSETP parameter const, adapt casts.
7602 (fill_gregset): Add REGCACHE parameter, use it instead of
7604 (fill_fpregset): Likewise.
7606 Update all callers to pass in current_regcache as the new argument:
7607 * core-regset.c: Include "regcache.h".
7608 (fetch_core_registers): Update supply_gregset,and supply_fpregset calls.
7609 * procfs.c: Include "regcache.h".
7610 (procfs_fetch_registers): Update supply_gregset, supply_fpregset calls.
7611 (procfs_store_registers): Update fill_gregset, fill_fpregset calls.
7612 (procfs_do_thread_registers): Likewise.
7613 (procfs_make_note_section): Likewise.
7614 * proc-service.c: Include "regcache.h".
7615 (ps_lgetregs): Update fill_gregset call.
7616 (ps_lsetregs): Update supply_gregset call.
7617 (ps_lgetfpregs): Update fill_fpregset call.
7618 (ps_lsetfpregs): Update supply_fpregset call.
7619 * sol-thread.c (sol_thread_fetch_registers): Update supply_gregset,
7620 supply_fpregset calls.
7621 (sol_thread_store_registers): Update fill_gregset, fill_fpregset calls.
7622 (ps_lgetregs): Update fill_gregset call.
7623 (ps_lsetregs): Update supply_gregset call.
7624 (ps_lgetfpregs): Update fill_fpregset call.
7625 (ps_lsetfpregs): Update supply_fpregset call.
7627 * linux-nat.c (linux_nat_do_thread_registers): Update fill_gregset,
7628 fill_fpregset, and fill_fpxregset calls.
7629 * i386-linux-nat.c (fetch_regs): Update supply_gregset call.
7630 (store_regs): Update fill_gregset call.
7631 (fetch_fpregs): Update supply_fpregset call.
7632 (store_fpregs): Update fill_fpregset call.
7633 (fetch_fpxregs): Update supply_fpxregset call.
7634 (store_fpxregs): Update fill_fpxregset call.
7635 * m32r-linux-nat.c (fetch_regs): Update supply_gregset call.
7636 (store_regs): Update fill_gregset call.
7637 * m68klinux-nat.c (fetch_regs): Update supply_gregset call.
7638 (store_regs): Update fill_gregset call.
7639 (fetch_fpregs): Update supply_fpregset call.
7640 (store_fpregs): Update fill_fpregset call.
7641 (fetch_core_registers): Update supply_gregset, supply_fpregset calls.
7642 * s390-nat.c (fetch_regs): Update supply_gregset call.
7643 (store_regs): Update fill_gregset call.
7644 (fetch_fpregs): Update supply_fpregset call.
7645 (store_fpregs): Update fill_fpregset call.
7647 * Makefile.in (core-regset.o, procfs.o, proc-service.o): Update
7650 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7652 * monitor.c (monitor_supply_register): Add REGCACHE parameter, use
7653 it instead of current_regcache.
7654 (parse_register_dump): Add REGCACHE parameter, pass it to
7655 supply_register callback.
7656 (monitor_dump_reg_block): Add REGCACHE parameter, pass it to
7657 parse_register_dump.
7658 (monitor_dump_regs): Add REGCACHE parameter, pass it to
7659 parse_register_dump and dumpregs callback.
7660 (monitor_wait): Pass current_regcache to parse_register_dump and
7662 (monitor_fetch_register): Pass current_regcache to
7663 monitor_supply_register.
7664 (monitor_fetch_registers): Pass current_regcache to
7666 * monitor.h (struct monitor_ops): Add REGCACHE parameter to
7667 supply_register and dumpregs callbacks.
7668 (monitor_supply_register, monitor_dump_reg_block): Update
7670 * dbug-rom.c (dbug_supply_register): Add REGCACHE parameter. Pass
7671 it to monitor_supply_register.
7672 * dink32-rom.c (dink32_supply_register): Likewise.
7673 * ppcbug-rom.c (ppcbug_supply_register): Likewise.
7674 * m32r-rom.c (m32r_supply_register): Likewise. Also, use REGCACHE
7675 instead of current_regcache.
7677 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7679 * i386-nto-tdep.c (i386nto_supply_gregset, i386nto_supply_fpregset):
7680 Add REGCACHE parameter. Use it instead of current_regcache.
7681 (i386nto_supply_regset): Add REGCACHE parameter, pass it to
7682 i386nto_supply_gregset and i386nto_supply_fpregset.
7683 (i386nto_regset_fill): Add REGCACHE parameter; use it instead
7684 of current_regcache.
7686 * nto-procfs.c (procfs_fetch_registers): Pass current_regcache to
7687 nto_supply_ helper functions.
7688 (procfs_store_registers): Pass current_regcache to nto_regset_fill.
7690 * nto-tdep.c (nto_dummy_supply_regset): Add REGCACHE parameter.
7692 * nto-tdep.h (struct nto_target_ops): Add REGCACHE parameter to
7693 supply_greget, supply_fpregset, supply_altregset, supply_regset,
7694 and regset_fill member function pointers.
7695 (nto_dummy_supply_regset): Adapt prototype.
7697 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7699 * shnbsd-tdep.c (shnbsd_supply_reg): Add REGCACHE parameter, use it
7700 instead of current_regcache. Make REGS const.
7701 (shnbsd_fill_reg): Add REGCACHE parameter; replace current_regcache.
7702 * shnbsd-tdep.h (shnbsd_supply_reg, shnbsd_fill_reg): Update
7704 * shnbsd-nat.c: Include "regcache.h".
7705 (shnbsd_fetch_inferior_registers): Pass current_regcache to
7707 (shnbsd_store_inferior_registers): Pass current_regcache to
7709 * Makefile.in (shbsd-nat.o): Update dependencies.
7711 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7713 * mips-linux-tdep.c (supply_32bit_reg): Add REGCACHE parameter. Use it
7714 instead of current_regcache.
7715 (mips_supply_gregset): Likewise. Pass REGCACHE to supply_32bit_reg.
7716 Make GREGSETP const, remove superfluous casts.
7717 (mips_fill_gregset): Add REGCACHE parameter; replace current_regcache.
7718 (mips_supply_fpregset): Likewise. Make FPREGSETP const, remove
7720 (mips_fill_fpregset): Add REGCACHE parameter; replace current_regcache.
7721 (supply_64bit_reg): Likewise
7722 (mips64_supply_gregset): Likewise. Pass REGCACHE to supply_64bit_reg.
7723 Make GREGSETP const, adapt casts accordingly.
7724 (mips64_fill_gregset): Add REGCACHE parameter; replace current_regcache.
7725 (mips64_supply_fpregset): Likewise. Make FPREGSET const, adapt
7727 (mips64_fill_fpregset): Add REGCACHE parameter; replace current_regcache.
7728 (fetch_core_registers): Pass current_regcache to mips{64}_(supply|fill)_
7730 * mips-linux-tdep.h (mips_supply_gregset, mips_fill_gregset,
7731 mips_supply_fpregset, mips_fill_fpregset, mips64_supply_gregset,
7732 mips64_fill_gregset, mips64_supply_fpregset, mips64_fill_fpregset):
7734 * mips-linux-nat.c: Include "regcache.h".
7735 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): Pass
7736 current_regcache to mips{64}_(supply|fill)_ helper routines.
7737 (mips64_linux_regsets_fetch_registers): Likewise.
7738 (mips64_linux_regsets_store_registers): Likewise.
7740 * mipsnbsd-tdep.c (mipsnbsd_supply_reg, mipsnbsd_supply_fpreg): Add
7741 REGCACHE argument; replace current_regcache. Make REGS const.
7742 (mipsnbds_fill_reg, mipsnbsd_fill_fpreg): Add REGCACHE argument;
7743 replace current_regcache.
7744 * mipsnbsd-tdep.h (ipsnbsd_supply_reg, mipsnbsd_supply_fpreg,
7745 mipsnbds_fill_reg, mipsnbsd_fill_fpreg): Adapt prototypes.
7746 * mipsnbsd-nat.c (mipsnbsd_fetch_inferior_registers,
7747 mipsnbsd_store_inferior_registers): Pass current_regcache to
7748 mipsnbsd_(supply|fill)_... helper routines.
7750 * Makefile.in (mips-linux-nat.o): Update dependencies.
7752 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7754 * i387-tdep.c (i387_fill_fsave, i387_fill_fxsave): Remove.
7755 * i387-tdep.h (i387_fill_fsave, i387_fill_fxsave): Remove prototypes.
7756 * i368-linux-nat.c (supply_fpregset, supply_fpxregset): Replace
7757 i387_fill_fsave and i387_fill_fxsave calls by inline copies.
7758 * i386-nto-tdep.c (i386nto_regset_fill): Likewise.
7759 * i386gnu-nat.c (store_fpregs): Likewise.
7760 * i386v4-nat.c (fill_fpregset): Likewise.
7761 * go32-nat.c (store_register, go32_store_registers): Likewise.
7763 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7765 * cris-tdep.c (supply_gregset): Rename to ...
7766 (cris_supply_gregset): ... this. Add REGCACHE parameter. Use it
7767 instead of current_regcache.
7768 (fetch_core_registers): Update call. Pass current_regcache.
7770 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7772 * arnmnbsd-nat.c (supply_gregset): Rename to ...
7773 (arm_supply_gregset): ... this. Add REGCACHE parameter.
7774 Use it instead of current_regcache.
7775 (supply_fparegset): Rename to ...
7776 (arm_supply_fparegset): ... this. Add REGCACHE parameter.
7777 Use it instead of current_regcache.
7778 (fetch_regs, fetch_fp_regs): Update calls. Pass current_regcache.
7779 (fetch_core_registers, fetch_elfcore_registers): Likewise.
7781 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7783 * alpha-tdep.c (alpha_supply_int_regs, alpha_fill_int_regs,
7784 alpha_supply_fp_regs, alpha_fill_fp_regs): Add REGCACHE parameter,
7785 use it instead of current_regcache.
7786 * alpha-tdep.h (struct regcache): Add forward declaration.
7787 (alpha_supply_int_regs, alpha_fill_int_regs, alpha_supply_fp_regs,
7788 alpha_fill_fp_regs): Update prototypes.
7790 * alpha-nat.c: (supply_gregset, fill_gregset, supply_fpregset,
7791 fill_fpregset): Pass current_regcache to alpha_supply/fill_ routines.
7792 * alpha-linux-nat.c: Include "regcache.h".
7793 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): Pass
7794 current_regcache to alpha_supply/fill_ routines.
7796 * alphabsd-tdep.c: Include "regcache.h".
7797 (alphabsd_supply_reg, alphabsd_supply_fpreg): Add REGCACHE paramter,
7798 pass it to alpha_supply_ routines. Make REGS const.
7799 (alphabsd_fill_reg, alphabsd_fill_fpreg): Add REGCACHE parameter,
7800 pass it to alpha_fill_ routines.
7801 * alphabsd-tdep.h (struct regcache): Add forward declaration.
7802 (alphabsd_supply_reg, alphabsd_fill_reg, alphabsd_supply_fpreg,
7803 alphabsd_fill_fpreg): Update prototypes.
7805 * alphanbsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
7806 fill_fpregset, alphabsd_fetch_inferior_registers,
7807 alphabsd_store_inferior_registers): Pass current_regcache to
7808 alphabsd_supply/fill_ routines.
7810 * Makefile.in (alpha-linux-nat.o, alphabsd-tdep.o): Update
7813 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7815 * aix-thread.c (supply_gprs64, supply_reg32, supply_fprs,
7816 supply_sprs64, supply_sprs32): Add REGCACHE parameter, use it
7817 instead of current_regcache.
7818 (fetch_regs_user_thread, fetch_regs_kernel_thread): Add
7819 REGCACHE parameter, pass it to supply_ routines.
7820 (aix_thread_fetch_registers): Pass current_regcache to
7821 fetch_regs_user_thread and fetch_regs_kernel_thread.
7823 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs64, fill_sprs32):
7824 Add REGCACHE parameter, use it instead of current_regcache.
7825 Call regcache_valid_p instead of register_cached.
7826 (store_regs_user_thread, store_regs_kernel_thread): Likewise.
7827 Also, pass REGCACHE to fill_ routines.
7828 (aix_thread_store_registers): Pass current_regcache to
7829 store_regs_user_thread and store_regs_kernel_thread.
7831 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7833 * m32r-linux-nat.c (supply_gregset): Do not modify contents
7834 pointed to by GREGSETP.
7836 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7838 * irix5-nat.c (fill_gregset): Use regcache_raw_collect instead
7839 of regcache_raw_read_signed.
7840 (fill_fpregset): Use regcache_raw_collect instead of
7843 2007-05-03 Kevin Buettner <kevinb@redhat.com>
7845 * mips-tdep.c (mips_eabi_push_dummy_call): When pushing floating
7846 point arguments, test explicitly for use of the EABI32 ABI
7847 instead of inferring this condition from tests on register
7850 2007-05-03 Kevin Buettner <kevinb@redhat.com>
7852 * breakpoint.c (set_raw_breakpoint): Adjust breakpoint's address
7853 prior to allocating its location.
7855 2007-05-02 Maciej W. Rozycki <macro@mips.com>
7857 * mips-tdep.c (mips_o32_push_dummy_call): Remove conditions
7858 based on mips_abi_regsize() whose result is known in advance.
7859 (mips_o64_push_dummy_call): Likewise.
7861 2007-04-29 Ulrich Weigand <uweigand@de.ibm.com>
7863 * m68klinux-nat.c: Remove #ifndef USE_PROC_FS check.
7864 * m68k-tdep.c: Remove code within #ifdef USE_PROC_FS.
7866 * mips-linux-nat.c: Include "gregset.h".
7867 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): Move
7868 from mips-linux-tdep.c. Change parameter type to gdb_gregset_t.
7869 * mips-linux-tdep.c (supply_gregset, fill_gregset, supply_fpregset,
7870 fill_fpregset): Move to mips-linux-nat.c.
7872 * Makefile.in (m68k-tdep.o, mips-linux-nat.o): Update dependencies.
7874 2007-04-28 Ulrich Weigand <uweigand@de.ibm.com>
7876 * regcache.c (deprecated_read_register_gen): Remove, inline ...
7877 (read_register): ... here.
7878 (deprecated_write_register_gen): Remove, inline ...
7879 (write_register): ... here.
7880 * regcache.h (deprecated_read_register_gen): Remove prototype.
7881 (deprecated_write_register_gen): Likewise.
7883 * remote-sim.c (gdbsim_store_register): Replace call to
7884 deprecated_read_register_gen with regcache_cooked_read.
7885 * target.c (debug_print_register): Replace calls to
7886 deprecated_read_register_gen and read_register with
7887 regcache_cooked_read.
7889 2007-04-28 Ulrich Weigand <uweigand@de.ibm.com>
7891 * hpux-thread.c (hpux_thread_store_registers): Use
7892 regcache_raw_collect, not regcache_raw_read.
7893 * irix5-nat.c (fetch_core_registers): Use regcache_raw_supply,
7894 not regcache_raw_write.
7896 2007-04-28 Ulrich Weigand <uweigand@de.ibm.com>
7898 * gdbarch.sh: Remove deprecated_register_byte.
7899 * gdbarch.c, gdbarch.h: Regenerate.
7900 * arch-utils.h (generic_register_size, generic_register_byte): Remove.
7901 * arch-utils.c (generic_register_size, generic_register_byte): Remove.
7903 * regcache.h (regcache_valid_p): Make REGCACHE parameter const.
7904 * regcache.c (regcache_valid_p): Allow to query cooked registers in
7905 read-only register caches. Make REGCACHE parameter const.
7906 (regcache_dump): Do not check DEPRECATED_REGISTER_BYTE.
7908 * mi/mi-main.c (old_regs): Remove.
7909 (mi_setup_architecture_data, _initialize_mi_main): Remove.
7910 (register_changed_p): Reimplement to compare two register caches.
7911 (mi_cmd_data_list_changed_registers): Update caller.
7912 * mi/mi-main.h (mi_setup_architecture_data): Remove.
7913 * mi/mi-interp.c (mi_interpreter_init): Do not call
7914 mi_setup_architecture_data.
7916 2007-04-28 Ulrich Weigand <uweigand@de.ibm.com>
7918 * alpha-nat.c (ALPHA_REGSET_BASE, ALPHA_REGSET_UNIQUE): Do not define,
7919 inline definition at the places the macros are used.
7920 * alpha-linux-nat.c (ALPHA_REGSET_BASE, ALPHA_REGSET_UNIQUE): Likewise.
7922 2007-04-28 Ulrich Weigand <uweigand@de.ibm.com>
7924 * rs6000-aix-tdep.c: Include "regcache.h", "regset.h", and
7926 (rs6000_aix32_reg_offsets, rs6000_aix64_reg_offsets): New variables.
7927 (rs6000_aix_supply_regset, rs6000_aix_collect_regset): New functions.
7928 (rs6000_aix32_regset, rs6000_aix64_regset): New variables.
7929 (rs6000_aix_regset_from_core_section): New function.
7930 (rs6000_aix_init_osabi): Register it.
7931 (_initialize_rs6000_aix_tdep): Register GDB_OSABI_AIX osabi and
7932 sniffer for bfd_arch_powerpc as well as bfd_arch_rs6000.
7933 * rs6000-nat.c (CoreRegs): Do not define type.
7934 (fetch_core_registers, rs6000_core_fns): Remove.
7935 (_initialize_core_rs6000): Do not register it. Rename to ...
7936 (_initialize_rs6000_nat): ... this.
7937 * Makefile.in (rs6000-aix-tdep.o): Update dependencies.
7939 2007-04-27 Kevin Buettner <kevinb@redhat.com>
7941 * dwarf2expr.c (unsigned_address_type): Add forward declaration.
7942 (dwarf2_read_address): Sign extend return address as required by
7943 target architecture.
7945 2007-04-27 Kevin Buettner <kevinb@redhat.com>
7947 * solib-frv.c (lm_base): Bail out if the main executable has
7950 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
7952 * alpha-linux-tdep.c (alpha_linux_supply_fpregset): Correct location
7953 of FPCR register in fpregset.
7955 2007-04-27 Maciej W. Rozycki <macro@mips.com>
7957 * Makefile.in (gdbtk-wrapper.o): Update dependencies.
7958 (gdbtk-varobj.o, gdbtk-cmds.o, gdbtk-stack.o): Likewise.
7960 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
7962 * config/rs6000/nm-rs6000.h (CHILD_SPECIAL_WAITSTATUS): Remove.
7963 * rs6000-nat.c (rs6000_wait): New function.
7964 (_initialize_core_rs6000): Install it as to_wait target method.
7965 * target.c (store_waitstatus): Don't check CHILD_SPECIAL_WAITSTATUS.
7967 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
7969 * config/rs6000/nm-rs6000.h (TARGET_CREATE_INFERIOR_HOOK): Remove.
7970 * fork-child.c (fork_inferior): Don't call TARGET_CREATE_INFERIOR_HOOK.
7971 * rs6000-nat.c (super_create_inferior): New variable.
7972 (rs6000_create_inferior): Make static. Adapt argument list. Call
7973 original version of create_inferior via super_create_inferior.
7974 (_initialize_core_rs6000): Install to_create_inferior target method.
7976 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
7978 * aix-thread.c (aix_thread_xfer_memory): Replace by ...
7979 (aix_thread_xfer_partial): ... this.
7980 (init_aix_thread_ops): Install to_xfer_partial instead
7981 of deprecated_xfer_memory target method.
7983 * config/powerpc/aix.mh (NATDEPFILES): Remove infptrace.o
7984 and inftarg.o, add inf-ptrace.o.
7985 * config/rs6000/nm-rs6000.h (FETCH_INFERIOR_REGISTERS,
7986 CHILD_XFER_MEMORY, KERNEL_U_SIZE, kernel_u_size): Remove.
7987 * rs6000-nat.c: Include "inf-ptrace.h" and "gdb_stdint.h".
7988 (fetch_inferior_registers): Rename to ...
7989 (rs6000_fetch_inferior_registers): ... this. Make static.
7990 (store_inferior_registers): Rename to ...
7991 (rs6000_store_inferior_registers): ... this. Make static.
7992 (read_word, child_xfer_memory): Remove.
7993 (rs6000_xfer_partial): New function.
7994 (kernel_u_size): Remove.
7995 (_initialize_core_rs6000): Add inf_ptrace-based target.
7996 * Makefile.in (rs6000-nat.o): Update dependencies.
7998 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
8000 * inf-ptrace.c: Include "gdb_stdint.h".
8001 (inf_ptrace_xfer_partial): Use "uintptr_t" instead of "long" as
8002 intermediate type when casting CORE_ADDR to PTRACE_TYPE_ARG3.
8003 (inf_ptrace_fetch_register): Add intermediate cast to "uintptr_t"
8004 before casting CORE_ADDR to PTRACE_TYPE_ARG3.
8005 (inf_ptrace_store_register): Likewise.
8006 * Makefile.in (inf-ptrace.o): Update dependencies.
8008 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
8010 * configure.host (rs6000-*-*): Merge with powerpc-*-aix* rules.
8011 * configure.tgt (rs6000-*-*): Likewise.
8012 * config/rs6000/aix4.mh: Delete file.
8013 * config/rs6000/aix4.mt: Delete file.
8014 * config/rs6000/rs6000.mh: Delete file.
8015 * config/rs6000/rs6000.mt: Delete file.
8017 * config/powerpc/nm-aix.h: Delete file.
8018 * config/powerpc/aix.mh (NAT_FILE): Set to config/rs6000/nm-rs6000.h.
8020 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
8022 * aix-thread.c (fill_sprs32): Change argument types to "uint32_t *".
8023 Remove obsolete part of comment.
8024 (store_regs_user_thread): Use uint32_t temporaries when calling
8026 (store_regs_kernel_thread): Likewise. Add assertion to verify
8027 correct size of struct ptsprs members.
8028 (aix_thread_xfer_memory): Fix type of myaddr.
8029 (aix_thread_extra_thread_info): Fix compiler warning.
8030 * rs6000-nat.c (rs6000_ptrace64): Change type of buf to "void *".
8031 (fetch_register, store_register): Adapt callers.
8033 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
8035 * vec.h (vec_free): Rename to vec_free_. Adapt users.
8037 2007-04-25 Ulrich Weigand <uweigand@de.ibm.com>
8039 * alpha-linux-tdep.c: Include "gdb_string.h", "regset.h",
8041 (alpha_linux_supply_gregset, alpha_linux_supply_fpregset): New.
8042 (alpha_linux_gregset, alpha_linux_fpregset): New variables.
8043 (alpha_linux_regset_from_core_section): New function.
8044 (alpha_linux_init_abi): Install it.
8045 * alpha-linux-nat.c: Do not include "gdbcore.h". Include
8046 "alpha-tdep.h", <sys/ptrace.h>, <alpha/ptrace.h>,
8047 <sys/procfs.h>, and "gregset.h".
8048 (ALPHA_REGSET_BASE, ALPHA_REGSET_UNIQUE, ALPHA_UNIQUE_PTRACE_ADDR):
8049 Move from config/alpha/nm-linux.h.
8050 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): Copy
8052 (alpha_linux_register_u_offset): Inline register_addr from alpha-nat.c.
8053 * alpha-nat.c: Remove #ifdef __linux__ section.
8054 (fetch_elf_core_registers, alpha_elf_core_fns): Remove.
8055 (_initialize_core_alpha): Do not register alpha_elf_core_fns.
8056 (ALPHA_UNIQUE_PTRACE_ADDR, ALPHA_REGSET_UNIQUE): Define unconditionally.
8057 (ALPHA_REGSET_BASE): Move from config/alpha/nm-osf.h.
8058 * config/alpha/alpha-linux.mh (NAT_FILE): Set to config/nm-linux.h.
8059 (NATDEPFILES): Remove alpha-nat.o.
8060 * config/alpha/nm-linux.h: Delete file.
8061 * config/alpha/nm-osf.h (ALPHA_REGSET_BASE): Move to alpha-nat.c.
8062 * Makefile.in (alpha-linux-nat.o): Update dependencies.
8063 (alpha-linux-tdep.o): Likewise.
8065 2007-04-25 Ulrich Weigand <uweigand@de.ibm.com>
8067 * mips-linux-nat.c: No longer include "gdbcore.h".
8068 (mips_linux_register_addr): Move from mips-linux-tdep.c.
8069 (mips64_linux_register_addr): Likewise.
8070 (mips_linux_register_u_offset): Call mips_linux_register_addr or
8071 mips64_linux_register_addr instead of register_addr.
8072 * mips-linux-tdep.c (mips_linux_register_addr,
8073 mips64_linux_register_addr): Move to mips-linux-nat.c.
8074 (register_addr): Remove.
8075 (register_addr_data, init_register_addr_data): Remove.
8076 (_initialize_mips_linux_tdep): Do not initialize register_addr_data.
8077 (set_mips_linux_register_addr): Remove.
8078 (mips_linux_init_abi): Do not call set_mips_linux_register_addr.
8079 * Makefile.in (mips-linux-nat.o): Update dependencies.
8081 2007-04-25 Ulrich Weigand <uweigand@de.ibm.com>
8083 * linux-nat.c (linux_register_u_offset): Remove.
8084 (linux_target_install_ops): New function.
8085 (linux_target): Use it.
8086 (linux_trad_target): New function.
8087 * linux-nat.h (linux_trad_target): Declare.
8089 * alpha-linux-nat.c: Include "gdbcore.h".
8090 (alpha_linux_register_u_offset): New function.
8091 (_initialize_alpha_linux_nat): Use linux_trad_target.
8093 * mips-linux-nat.c: Include "gdbcore.h".
8094 (mips_linux_register_u_offset): New function.
8095 (_initialize_mips_linux_nat): Use linux_trad_target.
8097 * config/arm/linux.mh (NAT_FILE): Set to config/nm-linux.h.
8098 * config/arm/nm-linux.h: Delete file.
8100 * config/i386/nm-linux64.h (FETCH_INFERIOR_REGISTERS): Remove.
8101 * config/i386/nm-linux.h (FETCH_INFERIOR_REGISTERS): Remove.
8103 * config/ia64/linux.mh (NAT_FILE): Set to config/nm-linux.h.
8104 * config/ia64/nm-linux.h: Delete file.
8106 * config/m32r/linux.mh (NAT_FILE): Set to config/nm-linux.h.
8107 * config/m32r/nm-linux.h: Delete file.
8109 * config/m68k/linux.mh (NAT_FILE): Set to config/nm-linux.h.
8110 * config/m68k/nm-linux.h: Delete file.
8112 * config/pa/linux.mh (NAT_FILE): Set to config/nm-linux.h.
8113 * config/pa/nm-linux.h: Delete file.
8115 * config/powerpc/linux.mh (NAT_FILE): Set to config/nm-linux.h.
8116 * config/powerpc/ppc64-linux.mh (NAT_FILE): Likewise.
8117 * config/powerpc/nm-linux.h: Delete file.
8119 * config/s390/s390.mh (NAT_FILE): Set to config/nm-linux.h.
8120 * config/s390/nm-linux.h: Delete file.
8122 * config/sparc/linux.mh (NAT_FILE): Set to config/nm-linux.h.
8123 * config/sparc/linux64.mh (NAT_FILE): Likewise.
8124 * config/sparc/nm-linux.h: Delete file.
8126 * Makefile.in (alpha-linux-nat.o): Update dependencies.
8127 (mips-linux-nat.o): Likewise.
8129 2007-04-25 Ulrich Weigand <uweigand@de.ibm.com>
8131 * core-aout.c: Delete file.
8132 * Makefile.in (ALLDEPFILES): Remove core-aout.c.
8133 (core-aout.o): Delete rule.
8134 * gdbcore.h (kernel_u_addr, KERNEL_U_ADDR): Remove.
8136 * config/alpha/nm-linux.h (U_REGS_OFFSET): Remove.
8138 * arm-linux-nat.c (arm_linux_kernel_u_size): Remove.
8139 * config/arm/nm-linux.h (U_REGS_OFFSET, KERNEL_U_SIZE,
8140 KERNEL_U_ADDR): Remove.
8142 * i386-linux-nat.c (register_u_addr, kernel_u_size): Remove.
8143 (cannot_fetch_register, cannot_store_register): Remove.
8144 (fetch_register): Inline cannot_fetch_register and register_addr.
8145 (store_register): Inline cannot_store_register and register_addr.
8146 * config/i386/linux.mh (NATDEPFILES): Remove core-aout.o.
8147 * config/i386/nm-linux.h (KERNEL_U_SIZE, KERNEL_U_ADDR,
8148 REGISTER_U_ADDR, CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER):
8151 * m68klinux-nat.c (m68k_linux_register_u_addr, kernel_u_size): Remove.
8152 (fetch_register): Inline register_addr.
8153 (store_register): Inline register_addr.
8154 * config/m68k/linux.mh (NATDEPFILES): Remove core-aout.o.
8155 * config/m68k/nm-linux.h (KERNEL_U_SIZE, KERNEL_U_ADDR,
8156 U_REGS_OFFSET, REGISTER_U_ADDR): Remove.
8158 * config/mips/nm-irix5.h (REGISTER_U_ADDR): Remove.
8159 * config/mips/nm-linux.h (KERNEL_U_SIZE, U_REGS_OFFSET,
8160 REGISTER_U_ADDR): Remove.
8162 * hppa-linux-nat.c (register_addr): Rename to ...
8163 (hppa_linux_register_addr): ... this. Make static.
8164 (fetch_register, store_register): Adapt callers.
8165 * config/pa/nm-linux.h (U_REGS_OFFSET): Remove.
8167 * ppc-linux-nat.c (kernel_u_size): Remove.
8168 * config/powerpc/nm-linux.h (KERNEL_U_SIZE, KERNEL_U_ADDR): Remove.
8170 * vax-nat.c (vax_kernel_u_addr, vax_register_u_addr): Make static.
8171 * config/vax/vax.mh (NATDEPFILES): Remove core-aout.o.
8173 * config/vax/nm-vax.h: Delete file.
8175 2007-04-20 Mark Shinwell <shinwell@codesourcery.com>
8177 * MAINTAINERS (Write After Approval): Add myself.
8179 2007-04-20 Mark Shinwell <shinwell@codesourcery.com>
8181 * Makefile.in: Adjust dependencies of m68klinux-tdep.c.
8182 * m68klinux-tdep.c (m68k_uclinux_sigcontext_reg_offset): New.
8183 (m68k_linux_sigcontext_reg_offset): Fix typo.
8184 (target_is_uclinux): New.
8185 (m68k_linux_inferior_created): New.
8186 (m68k_linux_get_sigtramp_info): Check for uClinux or
8187 normal Linux. Use m68k_uclinux_sigcontext_reg_offset for
8189 (_initialize_m68k_linux_tdep): Register
8190 m68k_linux_inferior_created.
8192 2007-04-19 Pedro Alves <pedro_alves@portugalmail.pt>
8194 * win32-nat.c (win32_detach): Remove delete_command call.
8195 Resume inferior with win32_resume instead of win32_continue.
8197 2007-04-19 Jerome Guitton <guitton@adacore.com>
8199 * ser-mingw.c (fd_is_file): New function.
8200 (file_select_thread): New function.
8201 (ser_console_wait_handle): Add special handling for files.
8203 2007-04-18 Denis Pilat <denis.pilat@st.com>
8205 * dwarf2read.c (read_subrange_type): Use DW_ATE_signed default type
8206 when missing from DW_TAG_subrange_type. Remove the handling of null
8207 return from die_type.
8209 2007-04-18 Maciej W. Rozycki <macro@mips.com>
8211 * mips-tdep.c (mips_eabi_push_dummy_call): Revert the last
8212 change to rearrange some brackets.
8213 (mips_n32n64_push_dummy_call): Likewise.
8214 (mips_o32_push_dummy_call): Likewise.
8215 (mips_o64_push_dummy_call): Likewise.
8217 2007-04-18 Denis Pilat <denis.pilat@st.com>
8219 * infcmd.c (post_create_inferior): Start with a call to
8220 target_terminal_ours.
8222 2007-04-17 Maciej W. Rozycki <macro@mips.com>
8224 * mips-tdep.c (mips_eabi_push_dummy_call): Rearrange some
8226 (mips_n32n64_push_dummy_call): Likewise. Reformat some
8228 (mips_o32_push_dummy_call): Likewise.
8229 (mips_o64_push_dummy_call): Likewise.
8231 2007-04-17 Maciej W. Rozycki <macro@mips.com>
8233 * mips-tdep.c (mips_n32n64_push_dummy_call): Fix a typo in a
8236 2007-04-17 Maciej W. Rozycki <macro@mips.com>
8238 * mips-tdep.c (mips_n32n64_push_dummy_call): Fix a typo in a
8240 (mips_o32_push_dummy_call): Likewise.
8242 2007-04-17 Andreas Schwab <schwab@suse.de>
8244 * symtab.c (skip_prologue_using_sal): Allow the end of the prologue
8245 sal to be bigger than the end of the function.
8247 2007-04-17 Maciej W. Rozycki <macro@mips.com>
8248 Nigel Stephens <nigel@mips.com>
8250 * mips-tdep.c (mips_o32_push_dummy_call): Take account of
8251 argument alignment requirements when calculating stack space
8252 required. When aligning an arg register to eight bytes
8253 boundary, align stack_offset too. Write floating-point
8254 arguments to the appropriate integer register if need go there.
8255 (mips_o64_push_dummy_call): Likewise.
8257 2007-04-14 Ulrich Weigand <uweigand@de.ibm.com>
8259 * gdbarch.sh (software_single_step): Remove "insert_breakpoints_p" and
8260 "sig" arguments, add "regcache" argument.
8261 * gdbarch.c, gdbarch.h: Regenerate.
8263 * infrun.c (resume): Update SOFTWARE_SINGLE_STEP call arguments.
8264 (handle_inferior_event): Call remove_single_step_breakpoints directly
8265 instead of calling SOFTWARE_SINGLE_STEP to remove breakpoints.
8267 * alpha-tdep.c (alpha_software_single_step): Update argument list.
8268 Remove handling of !insert_breakpoints_p case.
8269 * arm-tdep.c (arm_software_single_step): Likewise.
8270 * cris-tdep.c (cris_software_single_step): Likewise.
8271 * mips-tdep.c (mips_software_single_step): Likewise.
8272 * rs6000-tdep.c (rs6000_software_single_step): Likewise.
8273 * sparc-tdep.c (sparc_software_single_step): Likewise.
8274 * spu-tdep.c (spu_software_single_step): Likewise.
8276 * alpha-tdep.h (alpha_software_single_step): Update prototype.
8277 * mips-tdep.h (mips_software_single_step): Likewise.
8278 * rs6000-tdep.h (rs6000_software_single_step): Likewise.
8279 * sparc-tdep.h (sparc_software_single_step): Likewise.
8281 2007-04-14 Ulrich Weigand <uweigand@de.ibm.com>
8283 * alpha-tdep.c (alpha_software_single_step): Do not call write_pc
8284 when removing single-step breakpoints.
8286 2007-04-14 Vladimir Prus <vladimir@codesourcery.com>
8288 * varobj.h (varobj_set_frozen): New
8289 (varobj_get_frozen): New.
8290 (varobj_update): New parameter explicit.
8291 * varobj.c (struct varobj): New fields frozen
8293 (varobj_set_frozen, varobj_get_frozen): New.
8294 (install_new_value): Don't fetch values for
8295 frozen variable object, or children thereof. Allow
8296 a frozen variable object to have non-fetched value.
8297 (varobj_update): Allow updating child variables.
8298 Don't traverse frozen children.
8299 (new_variable): Initialize the frozen field.
8300 (c_value_of_variable): Return NULL for frozen
8301 variable without any value yet.
8302 * mi/mi-cmd-var.c (varobj_update_one): New parameter
8304 (mi_cmd_var_create): Output the 'frozen' field,
8305 as soon as testsuite is adjusted to expect that field.
8306 (mi_cmd_var_set_frozen): New.
8307 (mi_cmd_var_update): Pass the 'explicit' parameter to
8309 * mi/mi-cmds.c (mi_cmds): Register '-var-set-frozen'.
8310 * mi/mi-cmds.h (mi_cmd_var_set_frozen): Declare.
8312 2007-04-13 Paul Brook <paul@codesourcery.com>
8314 * target-descriptions.c (tdesc_named_type): Add ieee_single and
8316 * doc/gdb.texinfo: Document ieee_single and ieee_double target types.
8318 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
8320 * mips-mdebug-tdep.c, mips-mdebug-tdep.h, ocd.c, ocd.h, ppc-bdm.c,
8321 remote-e7000.c, remote-hms.c, remote-utils.c, remote-utils.h,
8322 scm-exp.c, scm-lang.c, scm-lang.h, scm-tags.h, scm-valprint.c,
8323 ser-e7kpc.c, sh3-rom.c, stop-gdb.c: Delete.
8324 * Makefile.in: Remove references to deleted files.
8325 * README: Do not mention deleted ROM monitor interfaces.
8326 * defs.h (enum language): Delete language_scm.
8327 * expprint.c (print_subexp_standard): Do not handle OP_EXPRSTRING.
8328 (dump_subexp_body_standard): Likewise.
8329 * parse.c (operator_length_standard): Likewise.
8330 * expression.h (enum exp_opcode): Delete OP_EXPRSTRING.
8331 * remote-mips.c: Do not include remote-utils.h.
8332 * remote-sim.c: Likewise. Use remote_debug instead of sr_get_debug
8334 * value.c: Do not include scm-lang.h.
8335 (unpack_long): Delete scm_unpack call.
8336 * config/h8300/h8300.mt, config/mips/embed.mt,
8337 config/powerpc/ppc-eabi.mt, config/powerpc/ppc-sim.mt,
8338 config/sh/embed.mt, config/sh/linux.mt: Remove references to
8340 * NEWS: Mention removed files.
8342 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
8344 * symfile.c (add_psymbol_with_dem_name_to_list): Remove.
8345 * symfile.h (add_psymbol_with_dem_name_to_list): Remove prototype.
8347 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
8349 * NEWS: Mention removal of HP aCC support.
8351 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
8353 * solib-svr4.c (IGNORE_FIRST_LINK_MAP_ENTRY): Do not ignore the
8354 first entry for static executables.
8355 (breakpoint_addr): Delete unused variable.
8356 (elf_locate_base): Search for _r_debug in static executables.
8357 (enable_break): Do not set breakpoint_addr. Scan solib_break_names
8360 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
8362 * breakpoint.c (update_breakpoints_after_exec, print_it_typical)
8363 (bpstat_what, print_one_breakpoint, allocate_bp_location)
8364 (mention): Remove bp_through_sigtramp support.
8365 * breakpoint.h (enum bptype): Remove bp_through_sigtramp.
8367 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
8369 * breakpoint.c (bpstat_what): Give step-resume higher priority than
8372 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
8374 * infrun.c: Doc fixes.
8375 (handle_inferior_event): Clarify debug message.
8376 (insert_step_resume_breakpoint_at_sal): Print a debug message.
8378 2007-04-12 Ulrich Weigand <uweigand@de.ibm.com>
8380 * configure.tgt (arm-*-nto*, sh-*-nto*): Remove.
8382 2007-04-12 Ulrich Weigand <uweigand@de.ibm.com>
8384 * config/m68k/tm-monitor.h: Delete file.
8385 * config/m68k/monitor.mt (DEPRECATED_TM_FILE): Remove.
8386 * m68k-tdep.c (m68k_gdbarch_init): set_gdbarch_decr_pc_after_break
8388 * m68kbsd-tdep.c (m68kbsd_init_abi): ... here and ...
8389 * m68klinux-tdep.c (m68k_linux_init_abi): ... here.
8391 2007-04-12 Luis Machado <luisgpm@br.ibm.com>
8393 * gdbarch.sh (software_single_step): Change the return type
8394 from void to int and reformatted some comments to <= 80
8396 * gdbarch.c, gdbarch.h: Regenerated.
8397 * alpha-tdep.c (alpha_software_single_step): Likewise.
8398 * alpha-tdep.h (alpha_software_single_step): Likewise.
8399 * arm-tdep.c (arm_software_single_step): Likewise.
8400 * cris-tdep.c (cris_software_single_step): Likewise.
8401 * mips-tdep.c (mips_software_single_step): Likewise.
8402 * mips-tdep.h (mips_software_single_step): Likewise.
8403 * rs6000-tdep.c (rs6000_software_single_step): Likewise.
8404 * rs6000-tdep.h (rs6000_software_single_step): Likewise.
8405 * sparc-tdep.c (sparc_software_single_step): Likewise.
8406 * sparc-tdep.h (sparc_software_single_step): Likewise.
8407 * spu-tdep.c (spu_software_single_step): Likewise.
8408 * infrun.c (resume): Check the return value from SOFTWARE_SINGLE_STEP
8409 and act accordingly.
8411 2007-04-11 Steve Ellcey <sje@cup.hp.com>
8413 * configure.ac (build_warnings): Add -Wno-char-subscripts.
8414 * configure: Regenerate.
8415 * doc/gdbint.texinfo (warning flags): Add -Wno-char-subscripts.
8417 2007-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
8419 * libunwind-frame.c (LIBUNWIND_SO): Use major version number for `.so'.
8421 2007-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
8423 * gdbtypes.h (TYPE_FLAG_STUB_SUPPORTED, TYPE_STUB_SUPPORTED): New
8425 (TYPE_IS_OPAQUE): Empty vs. opaque structures are now
8426 distinct on the TYPE_STUB_SUPPORTED debug targets.
8427 * dwarf2read.c (read_structure_type): Set TYPE_FLAG_STUB_SUPPORTED.
8429 2007-04-11 Joel Brobecker <brobecker@adacore.com>
8431 * sparc-tdep.c (X_RS2): New macro.
8432 (sparc_skip_stack_check): New function.
8433 (sparc_analyze_prologue): Adjust PC past stack probing
8434 sequence if necessary.
8436 2007-04-10 Andreas Schwab <schwab@suse.de>
8438 * rs6000-tdep.c (rs6000_dwarf2_reg_to_regnum): Decode 64 as CR
8441 2007-04-10 Daniel Jacobowitz <dan@codesourcery.com>
8443 * breakpoint.c (gdb_breakpoint_query): Really return an
8445 (gdb_breakpoint): Likewise.
8446 * thread.c (gdb_list_thread_ids): Likewise.
8447 (gdb_thread_select): Likewise.
8448 * mi/mi-main.c (mi_cmd_thread_select): Expect an enum gdb_rc.
8449 (mi_cmd_thread_list_ids): Remove bogus initialization.
8451 2007-04-10 Daniel Jacobowitz <dan@codesourcery.com>
8453 * Makefile.in (SFILES): Remove hpacc-abi.c.
8454 (COMMON_OBS): Remove hpacc-abi.o.
8455 (ALLDEPFILES): Remove hpread.c and $(HPREAD_SOURCE).
8456 (hpacc-abi.o, hpread.o): Delete rules.
8457 * somread.c: Delete extern declarations from hpread.c.
8458 (som_symfile_read): Do not call do_pxdb or hpread_build_psymtabs.
8459 (som_symfile_finish): Do not call hpread_symfile_finish.
8460 (som_symfile_init): Do not call hpread_symfile_init.
8461 * config/pa/hppa64.mt (TDEPFILES): Remove hpread.o.
8462 * config/pa/hppahpux.mt (TDEPFILES): Likewise.
8463 * hpacc-abi.c, hpread.c: Deleted.
8465 2007-04-10 Daniel Jacobowitz <dan@codesourcery.com>
8467 * solib-svr4.c (enable_break): Simplify return value.
8468 (svr4_solib_create_inferior_hook): Do not warn if enable_break fails.
8470 2007-04-10 Andreas Schwab <schwab@suse.de>
8472 * solib-svr4.h (struct link_map_offsets): Remove l_addr_size,
8473 l_ld_size, l_next_size, l_prev_size, l_name_size.
8475 * solib-svr4.c (LM_ADDR_FROM_LINK_MAP): Use extract_typed_address
8476 to extract addresses from link map.
8477 (LM_DYNAMIC_FROM_LINK_MAP): Likewise.
8478 (LM_NEXT): Likewise.
8479 (LM_NAME): Likewise.
8480 (IGNORE_FIRST_LINK_MAP_ENTRY): Likewise.
8481 (elf_locate_base): Likewise.
8482 (open_symbol_file_object): Likewise.
8483 (svr4_fetch_objfile_link_map): Likewise.
8484 (SOLIB_EXTRACT_ADDRESS): Remove unused macro.
8485 (HAS_LM_DYNAMIC_FROM_LINK_MAP): Test l_ld_offset instead of
8487 (svr4_ilp32_fetch_link_map_offsets): Don't set removed members.
8488 (svr4_lp64_fetch_link_map_offsets): Likewise.
8490 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets): Don't set
8491 removed members. Set l_ld_offset to -1 if not present.
8493 2007-04-08 Vladimir Prus <vladimir@codesourcery.com>
8495 Pass stderr of program run with "target remote |"
8497 * serial.c (serial_open): Set error_fd to -1.
8498 * serial.h (struct serial): New field error_fd.
8499 (struct serial_opts): New field avail.
8500 * ser-pipe.c (pipe_open): Create another pair
8501 of sockets. Pass stderr to gdb.
8502 * ser-mingw.c (pipe_windows_open): Pass
8503 PEX_STDERR_TO_PIPE to pex_run. Initialize
8506 (_initialize_ser_windows): Hook pipe_avail.
8507 * ser-base.c (generic_readchar): Check if there's
8508 anything in stderr channel and route that to gdb_stderr.
8510 2007-04-03 Pedro Alves <pedro_alves@portugalmail.pt>
8512 * dbxread.c (read_ofile_symtab): Move current_objfile
8513 clearing to after end_stabs.
8515 2007-04-01 Andreas Schwab <schwab@suse.de>
8517 * rs6000-tdep.c (rs6000_convert_from_func_ptr_addr): Use parameter
8518 gdbarch instead of current_gdbarch.
8520 2007-04-01 Vladimir Prus <vladimir@codesourcery.com>
8522 * varobj.c (varobj_create): Keep varobj value
8523 NULL when evaluating the type.
8525 2007-03-31 Pedro Alves <pedro_alves@portugalmail.pt>
8527 * NEWS: Mention new Windows CE support.
8529 2007-03-30 Pedro Alves <pedro_alves@portugalmail.pt>
8531 * configure.tgt: Move mips*-*-pe and sh*-*-pe to
8532 the obsoletion stanza.
8533 * NEWS: Mention deleted targets.
8535 * config/sh/tm-wince.h: Remove.
8536 * config/sh/wince.mt: Remove.
8537 * config/mips/tm-wince.h: Remove.
8538 * config/mips/wince.mt: Remove.
8541 * wince-stub.c: Remove.
8542 * wince-stub.h: Remove.
8543 * Makefile.in (wince.o): Remove rule.
8544 (wince-stub.o): Likewise.
8546 * mips-tdep.c (mips_next_pc): Make static.
8547 * mips-tdep.h (mips_next_pc): Remove declaration.
8548 * arm-tdep.c (arm_pc_is_thumb): Make static.
8549 (thumb_get_next_pc): Likewise.
8550 (arm_get_next_pc): Likewise.
8551 * arm-tdep.h (arm_pc_is_thumb_dummy): Remove declaration.
8552 (arm_pc_is_thumb): Likewise.
8553 (thumb_get_next_pc): Likewise.
8554 (arm_get_next_pc): Likewise.
8556 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
8558 * MAINTAINERS: Remove d10v entry.
8559 * Makefile.in (SFILES): Remove dwarfread.c.
8560 (COMMON_OBS): Remove dwarfread.o.
8561 (gdb_sim_d10v_h, abug-rom.o, cpu32bug-rom.o, d10v-tdep.o, dwarfread.o)
8562 (remote-est.o, rom68k-rom.o): Delete.
8563 * NEWS: Mention removal of d10v, target abug, target cpu32bug,
8564 target est, target rom68k, and DWARF 1.
8565 * configure.tgt: Mark d10v as removed.
8566 * dwarf2read.c: Doc update.
8567 * elfread.c (struct elfinfo): Remove dboffset, dbsize, lnoffset,
8569 (elf_locate_sections): Do not set them.
8570 (elf_symfile_read): Do not call dwarf_build_psymtabs.
8571 * symfile.h (dwarf_build_psymtabs): Delete prototype.
8572 * config/m68k/monitor.mt (TDEPFILES): Prune.
8573 * abug-rom.c, cpu32bug-rom.c, d10v-tdep.c, dwarfread.c,
8574 remote-est.c, rom68k-rom.c, config/d10v/d10v.mt: Delete.
8576 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
8578 * doublest.c (convert_floatformat_to_doublest): Use
8579 floatformat_classify.
8580 (floatformat_is_nan): Rename to...
8581 (floatformat_classify): ...this. Return more information.
8582 * doublest.h (enum float_kind): New.
8583 (floatformat_is_nan): Replace prototype...
8584 (floatformat_classify): ...with this one.
8585 * valprint.c (print_floating): Use floatformat_classify. Handle
8588 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
8590 * README: Mention ISO C library requirement.
8592 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
8594 * Makefile.in (SFILES): Remove nlmread.c.
8595 (COMMON_OBS): Remove nlmread.o.
8596 (nlmread.o): Delete rule.
8597 * README: Delete reference to remote-st.c.
8598 * acinclude.m4 (CY_AC_TCL_LYNX_POSIX): Delete.
8599 * defs.h (enum gdb_osabi): Delete GDB_OSABI_NETWARE and
8601 * i386-tdep.c (i386_nw_init_abi, i386_nlm_osabi_sniffer): Delete.
8602 (_initialize_i386_tdep): Do not reference them.
8603 * nlmread.c: Delete file.
8604 * osabi.c (gdb_osabi_names): Remove NetWare and LynxOS.
8605 * target.c: Doc update.
8606 * thread.c: Delete commented include.
8607 * config/alpha/tm-alpha.h: Doc update.
8609 2007-03-30 Chris Dearman <chris@mips.com>
8611 * utils.c (string_to_core_addr): Comment typo.
8613 2007-03-30 Chris Dearman <chris@mips.com>
8615 * mips-tdep.c: Comment typo.
8617 2007-03-29 Ulrich Weigand <uweigand@de.ibm.com>
8619 * config/alpha/nm-osf.h (PTRACE_XFER_TYPE): Remove.
8620 * config/mips/nm-linux.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Remove.
8621 * config/sparc/nm-linux.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Remove.
8622 * config/powerpc/nm-ppc64-linux.h: Remove file.
8623 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Set to nm-linux.h.
8624 * inferior.h (PTRACE_ARG3_TYPE): Do not define.
8625 (call_ptrace): Change type of third argument to PTRACE_TYPE_ARG3.
8626 * infptrace.c (call_ptrace): Likewise.
8627 * m68klinux-nat.c (PTRACE_XFER_TYPE): Do not define.
8628 (fetch_register): Replace PTRACE_ARG3_TYPE by PTRACE_TYPE_ARG3
8629 and PTRACE_XFER_TYPE by PTRACE_TYPE_RET.
8630 (store_register): Likewise.
8632 2007-03-29 Joel Brobecker <brobecker@adacore.com>
8634 * Makefile.in (varobj.o): Add missing dependency.
8636 2007-03-29 Michael Snyder <msnyder@access-company.com>
8638 * MAINTAINERS: Update my email address.
8640 2007-03-29 Joel Brobecker <brobecker@adacore.com>
8642 Add support for exception handling with multiple versions of
8644 * ada-lang.c: Update general comments on how Ada exception catchpoints
8646 (raise_sym_name, raise_unhandled_sym_name, raise_assert_sym_name)
8647 (__gnat_raise_nodefer_with_msg): Delete.
8648 (ada_unhandled_exception_name_addr_ftype): New type.
8649 (exception_support_info): New type.
8650 (ada_unhandled_exception_name_addr): Add forward declaration.
8651 (ada_unhandled_exception_name_addr_from_raise): Likewise.
8652 (default_exception_support_info): New constant.
8653 (exception_support_info_fallback): Likewise.
8654 (exception_info): New global variable.
8655 (ada_exception_support_info_sniffer): New function.
8656 (ada_executable_changed_observer): Likewise.
8657 (ada_unhandled_exception_name_addr_from_raise): Renamed from
8658 ada_unhandled_exception_name_addr.
8659 (ada_unhandled_exception_name_addr): Reimplement to match the
8660 latest Ada runtime implementation.
8661 (error_breakpoint_runtime_sym_not_found): Delete.
8662 (ada_exception_sym_name): Get the exception sym name from
8663 exception_info rather than hardcoding it.
8664 (ada_exception_sal): Add call to ada_exception_support_info_sniffer.
8665 Update error handling.
8666 * Makefile.in (ada-lang.o): Add dependency on observer.h.
8668 2007-03-29 Daniel Jacobowitz <dan@codesourcery.com>
8670 * Makefile.in (coff_solib_h, coff-solib.o, i386v-nat.o, lynx-nat.o)
8671 (remote-st.o, uw-thread.o): Delete.
8672 (HFILES_NO_SRCDIR, ALLDEPFILES): Update.
8673 * configure.host: Move hppa*-*-hiux*, i[34567]86-ncr-*,
8674 i[34567]86-*-dgux*, i[34567]86-*-lynxos*, i[34567]86-*-sco3.2v5*,
8675 i[34567]86-*-sco3.2v4*, i[34567]86-*-sco*, i[34567]86-*-sysv4.2*,
8676 i[34567]86-*-sysv4*, i[34567]86-*-sysv5*, i[34567]86-*-unixware2*,
8677 i[34567]86-*-unixware*, i[34567]86-*-sysv*, i[34567]86-*-isc*, and
8678 rs6000-*-lynxos* to an obsoletion stanza.
8679 * configure.tgt: Move hppa*-*-hiux*, i[34567]86-ncr-*,
8680 i[34567]86-*-lynxos*, m68*-cisco*-*, m68*-tandem-*, m68*-*-os68k*,
8681 and rs6000-*-lynxos* to an obsoletion stanza. Do not mention
8682 i[34567]86-*-netware*.
8683 * NEWS: Mention deleted targets.
8685 * coff-solib.c, coff-solib.h, i386v-nat.c, lynx-nat.c, remote-st.c,
8686 uw-thread.c, config/nm-lynx.h, config/i386/i386sco.mh,
8687 config/i386/i386sco4.mh, config/i386/i386sco5.mh, config/i386/i386v.mh,
8688 config/i386/i386v4.mh, config/i386/i386v42mp.mh,
8689 config/i386/ncr3000.mh, config/i386/ncr3000.mt,
8690 config/i386/nm-i386sco.h, config/i386/nm-i386sco4.h,
8691 config/i386/nm-i386sco5.h, config/i386/nm-i386v.h,
8692 config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h,
8693 config/m68k/cisco.mt, config/m68k/os68k.mt, config/m68k/st2000.mt,
8694 config/m68k/tm-cisco.h, config/m68k/tm-os68k.h,
8695 config/rs6000/rs6000lynx.mh, config/rs6000/rs6000lynx.mt,
8696 config/rs6000/tm-rs6000ly.h: Delete files.
8698 2007-03-29 Daniel Jacobowitz <dan@codesourcery.com>
8700 * defs.h (deprecated_registers_changed_hook): Delete declaration.
8701 * interps.c (clear_interpreter_hooks): Do not clear
8702 deprecated_registers_changed_hook.
8703 * regcache.c (registers_changed): Do not call it.
8704 * top.c (deprecated_registers_changed_hook): Do not define it.
8705 * mi/mi-interp.c (mi_command_loop): Do not clear it.
8706 * tui/tui-hooks.c (tui_install_hooks): Do not install it.
8707 (tui_remove_hooks): Do not remove it.
8708 (tui_selected_frame_level_changed_hook): Check for negative level.
8709 Use get_selected_frame.
8710 (tui_registers_changed_hook): Deleted.
8712 2007-03-29 Joel Brobecker <brobecker@adacore.com>
8714 * stabsread.c (add_undefined_type): Add extra parameter.
8715 Now handles nameless types separately.
8716 (struct nat): New type.
8717 (noname_undefs, noname_undefs_allocated, noname_undefs_length):
8718 New static variables.
8719 (read_type): Update calls to add_undefined_type.
8720 (add_undefined_type_noname): New function.
8721 (add_undefined_type_1): Renames from add_undefined_type.
8722 (cleanup_undefined_types_noname): New function.
8723 (cleanup_undefined_types_1): Renames cleanup_undefined_types.
8724 (cleanup_undefined_types): New handles nameless types separately.
8725 (_initialize_stabsread): Initialize our new static constants.
8727 2007-03-29 Denis Pilat <denis.pilat@st.com>
8729 * configure.ac: Test for signal.h.
8730 * configure, config.in: Regenerate.
8732 2007-03-29 Denis Pilat <denis.pilat@st.com>
8734 * stack.c (print_stack_frame): Always use LOC_AND_ADDRESS in MI output.
8735 * infrun.c (normal_stop): Remove MI specific frame printing treatment.
8737 2007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
8739 * arm-wince-tdep.c: New.
8740 * config/arm/wince.mt (DEPRECATED_TM_FILE): Use tm-arm.h.
8741 (MT_CFLAGS): Delete.
8743 (TDEPFILES): Add arm-wince-tdep.o, corelow.o, solib.o,
8744 solib-legacy.o, solib-svr4.o, and remove wince.o.
8745 * configure.tgt (arm*-*-mingw32ce*): Add.
8746 * signals/signals.c [HAVE_SIGNAL_H]: Check.
8747 (do_target_signal_to_host): Silence 'not used' warning.
8748 * config/arm/tm-wince.h: Remove.
8750 2007-03-28 Ulrich Weigand <uweigand@de.ibm.com>
8752 * arch-utils.c (legacy_pc_in_sigtramp): Remove.
8753 * arch-utils.h (legacy_pc_in_sigtramp): Remove.
8755 * config/ia64/linux.mt (DEPRECATED_TM_FILE): Remove.
8756 * config/ia64/tm-linux.h: Remove file.
8757 * ia64-tdep.h (struct gdbarch_tdep): Add pc_in_sigtramp callback.
8758 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Use it instead of
8759 legacy_pc_in_sigtramp.
8760 (ia64_gdbarch_init): Initialize tdep->pc_in_sigtramp.
8761 * ia64-linux-tdep.c (ia64_linux_pc_in_sigtramp): Make static.
8762 Remove func_name argument.
8763 (ia64_linux_init_abi): Install it as tdep->pc_in_sigtramp.
8765 * infrun.c (HAVE_STEPPABLE_WATCHPOINT): Do not redefine.
8766 * target.c (update_current_target): Add to_have_steppable_watchpoint.
8767 * target.h (struct target_ops): Add to_have_steppable_watchpoint.
8768 (HAVE_STEPPABLE_WATCHPOINT): Define.
8770 * config/ia64/linux.mh (NATDEPFILES): Remove core-aout.o.
8771 * config/ia64/nm-linux.h (KERNEL_U_ADDR, U_REGS_OFFSET,
8772 CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER,
8773 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_STEPPABLE_WATCHPOINT,
8774 STOPPED_BY_WATCHPOINT, target_stopped_data_address,
8775 target_insert_watchpoint, target_remove_watchpoint): Remove.
8776 (FETCH_INFERIOR_REGISTERS): Define.
8777 * ia64-linux-nat.c (ia64_register_addr): Make static.
8778 (ia64_cannot_fetch_register, ia64_cannot_store_register): Likewise.
8779 (ia64_linux_insert_watchpoint): Make static. Remove ptid_p argument.
8780 (ia64_linux_remove_watchpoint): Likewise. Add type argument.
8781 (ia64_linux_stopped_data_address): Make static. Add target_ops.
8782 (ia64_linux_stopped_by_watchpoint): Make static.
8783 (ia64_linux_can_use_hw_breakpoint): New function.
8784 (ia64_linux_fetch_register, ia64_linux_fetch_registers): Likewise.
8785 (ia64_linux_store_register, ia64_linux_store_registers): Likewise.
8786 (_initialize_ia64_linux_nat): Install register and watchpoint ops.
8788 2007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
8790 * linespec.c: Include language.h.
8791 (find_methods): Add language parameter. Call
8792 lookup_symbol_in_language. Pass language down.
8793 (add_matching_methods): Likewise. Call
8794 lookup_symbol_in_language.
8795 (add_constructors): Likewise.
8796 (find_method): Pass sym_class to collect_methods.
8797 (collect_methods): Add sym_class parameter. Pass language
8799 * symtab.c (lookup_symbol): Rename to ...
8800 (lookup_symbol_in_language): ... this. Add language
8801 parameter. Use passed language instead of current_language.
8802 (lookup_symbol): New as wrapper around
8803 lookup_symbol_in_language.
8804 (lookup_symbol_aux): Add language parameter. Use passed
8805 language instead of current_language.
8806 (search_symbols): Indent.
8807 * symtab.h (enum language): Forward declare.
8808 (lookup_symbol_in_language): Declare.
8809 (lookup_symbol): Update description.
8810 * ada-lang.h (lookup_symbol_in_language): Remove declaration.
8811 * ada-lang.c (restore_language): Remove.
8812 (lookup_symbol_in_language): Remove.
8814 2007-03-27 Pedro Alves <pedro_alves@portugalmail.pt>
8816 * breakpoint.c (bpstat_num): Add int *num parameter.
8817 * breakpoint.h (bpstat_num): Likewise.
8818 * infcmd.c (continue_command): Adjust to new bpstat_num
8820 (program_info): Likewise.
8822 2007-03-27 Ulrich Weigand <uweigand@de.ibm.com>
8824 * config/sh/tm-sh.h: Remove file.
8825 * config/sh/embed.mt (DEPRECATED_TM_FILE): Remove.
8826 * config/sh/linux.mt (DEPRECATED_TM_FILE): Remove.
8827 * config/sh/nbsd.mt (DEPRECATED_TM_FILE): Remove.
8828 * config/sh/tm-wince.h: Do not include "sh/tm-sh.h".
8830 2007-03-27 Ulrich Weigand <uweigand@de.ibm.com>
8832 * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT,
8833 DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Remove.
8834 * remote.c: Remove code under #ifdef DEPRECATED_REMOTE_BREAKPOINT,
8835 DEPRECATED_BIG_REMOTE_BREAKPOINT, DEPRECATED_LITTLE_REMOTE_BREAKPOINT.
8836 * sh-tdep.c (sh_breakpoint_from_pc): Return remote breakpoint
8837 sequence if target_shortname is "remote".
8839 2007-03-27 Anton Blanchard <anton@samba.org>
8841 * rs6000-tdep.c (rs6000_frame_cache): Use tdep->lr_frame_offset
8842 instead of wordsize when looking for the LR in a stack frame.
8844 2007-03-27 Andreas Schwab <schwab@suse.de>
8845 Daniel Jacobowitz <dan@codesourcery.com>
8847 * dwarf2-frame.c (dwarf2_frame_eh_frame_regnum): Rename to...
8848 (dwarf2_frame_adjust_regnum): ...this. Make static. Add eh_frame_p
8849 argument. Update all callers.
8850 (struct dwarf2_frame_ops): Replace eh_frame_regnum with adjust_regnum.
8851 (dwarf2_frame_set_eh_frame_regnum): Rename to...
8852 (dwarf2_frame_set_adjust_regnum): ...this. Update argument type.
8853 * dwarf2frame.h (dwarf2_frame_set_eh_frame_regnum): Rename to...
8854 (dwarf2_frame_set_adjust_regnum): ...this.
8855 (dwarf2_frame_eh_frame_regnum): Delete prototype.
8856 * rs6000-tdep.c: Include "dwarf2-frame.h".
8857 (rs6000_adjust_frame_regnum): Define.
8858 (rs6000_gdbarch_init): Enable use of DWARF CFI frame unwinder.
8859 Register rs6000_adjust_frame_regnum.
8861 * Makefile.in (rs6000-tdep.o): Update dependencies.
8863 2007-03-27 Brooks Moses <brooks.moses@codesourcery.com>
8865 * Makefile.in: Add support for a "pdf" target.
8867 2007-03-27 Daniel Jacobowitz <dan@codesourcery.com>
8869 * amd64-tdep.c (amd64_init_frame_cache): New function.
8870 (amd64_alloc_frame_cache, amd64_skip_prologue): Use it.
8872 2007-03-26 Nigel Stephens <nigel@mips.com>
8873 Maciej W. Rozycki <macro@mips.com>
8875 * ui-out.c (ui_out_field_core_addr): Truncate address to
8876 TARGET_ADDR_BIT size before printing.
8878 2007-03-22 Nigel Stephens <nigel@mips.com>
8879 Maciej W. Rozycki <macro@mips.com>
8881 * remote-mips.c (mips_xfer_memory): Update prototype.
8883 2007-03-22 Joel Brobecker <brobecker@adacore.com>
8885 * symfile.h: #include "symtab.h"
8887 2007-03-22 Denis Pilat <denis.pilat@st.com>
8889 * utils.c (pagination_on_command, pagination_off_command):
8890 Remove useless prototypes.
8892 2007-03-21 Pierre Muller <muller@ics.u-strasbg.fr>
8895 * p-valprint.c (pascal_object_print_value): Use type_name_no_tag
8896 instead of TYPE_NAME for object base class name.
8899 2007-03-19 Kevin Buettner <kevinb@redhat.com>
8901 * mep-tdep.c (mep_analyze_frame_prologue, mep_frame_this_id):
8902 Specify frame type in calls to frame_func_unwind().
8904 2007-03-13 Daniel Jacobowitz <dan@codesourcery.com>
8906 * rs6000-tdep.c (rs6000_skip_prologue): Use skip_prologue_using_sal.
8907 (rs6000_in_function_epilogue_p): Use extract_unsigned_integer.
8908 (refine_prologue_limit): Delete.
8909 (skip_prologue): Don't call it. Use extract_unsigned_integer.
8910 Assume lim_pc is set. Correct check for incomplete prologues.
8911 Do not skip clobbers of the frame pointer.
8912 * symtab.c (skip_prologue_using_sal): Fail if there is only one
8915 2007-03-13 Nathan Froyd <froydnj@codesourcery.com>
8917 * frame.c (frame_pop): Check to see whether there's a frame to
8918 which we can pop first.
8920 2007-03-13 Nathan Froyd <froydnj@codesourcery.com>
8922 * MAINTAINERS (Write After Approval): Add myself.
8924 2007-03-09 Markus Deuling <deuling@de.ibm.com>
8926 * infrun.c (breakpoints_failed): Remove unnecessary variable.
8927 (handle_inferior_event): Remove unnecessary braces.
8928 * breakpoint.c (bpstat_what): Remove wrong comment.
8930 2007-03-09 Ulrich Weigand <uweigand@de.ibm.com>
8932 * spu-tdep.c (spu_in_function_epilogue_p): New function.
8933 (spu_gdbarch_init): Install it.
8935 2007-03-08 Ulrich Weigand <uweigand@de.ibm.com>
8937 * spu-linux-nat.c (spu_xfer_partial): Return -1 for unsupported
8938 object types, not 0.
8940 2007-03-08 Ulrich Weigand <uweigand@de.ibm.com>
8942 * spu-tdep.c (spu_frame_align): New function.
8943 (spu_gdbarch_init): Install it. Set call dummy location to ON_STACK.
8945 2007-03-08 Ulrich Weigand <uweigand@de.ibm.com>
8947 * spu-tdep.c (spu_unwind_pc): Mask off interrupt enable bit.
8948 (spu_software_single_step): Likewise.
8949 (spu_read_pc, spu_write_pc): New functions.
8950 (spu_gdbarch_init): Install them.
8952 2007-03-08 Ulrich Weigand <uweigand@de.ibm.com>
8954 * cli/cli-dump.c (struct callback_data): load_offset needs to
8955 have signed long type.
8957 2007-03-07 Joel Brobecker <brobecker@adacore.com>
8959 * mips-tdep.c (mips_insn16_frame_cache, mips_insn32_frame_sniffer):
8960 Revert the previous change that had some unexpected side-effects
8962 (mips_insn16_frame_cache, mips_insn32_frame_cache): Use the proper
8963 function to get the address of the calling instruction.
8965 2007-03-07 Denis Pilat <denis.pilat@st.com>
8967 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Replace
8968 get_selected_frame by deprecated_safe_get_selected_frame.
8970 2007-03-02 Mark Kettenis <kettenis@gnu.org>
8972 * shnbsd-tdep.c: Include "regset.h", "gdb_assert.h" and
8973 "gdb_string.h". Don't include "nbsd-tdep.h".
8974 (SIZEOF_STRUCT_REG): Remove.
8975 (SHNBSD_SIZEOF_GREGS): New.
8976 (shnbsd_supply_gregset, shnbsd_collect_gregset)
8977 (shnbsd_regset_from_core_section): New functions.
8978 (fetch_core_registers, fetch_elfcore_registers): Remove functions.
8979 (shnbsd_supply_reg, shnbsd_fill_reg): Simply call
8980 shnbsd_supply_gregset, shnbsd_collect_gregset.
8981 (shnbsd_gregset): New variable.
8982 (shnbsd_init_abi): Set regset_from_core_section.
8983 (GDB_OSABI_NETBSD_CORE): New define.
8984 (shnbsd_core_osabi_sniffer): New function.
8985 (_initialize_shnbsd_tdep): Register shnbsd_core_osabi_sniffer.
8986 * Makefile.in (shnbsd-tdep.o): Update dependencies.
8987 * config/sh/nbsd.mt (TDEPFILES): Add corelow.o, remove
8989 * config/sh/obsd.mt (TDEPFILES): Remove nbsd-tdep.o.
8991 2007-02-28 Joel Brobecker <brobecker@adacore.com>
8993 * gdbtypes.c (replace_type): Fix typo that caused us to not update
8994 length of the types referenced by the new type CV ring.
8996 2007-02-28 Daniel Jacobowitz <dan@codesourcery.com>
8998 * frame.c (frame_pop, frame_observer_target_changed): Call
9000 (flush_cached_frames): Rename to reinit_frame_cache and delete
9002 * frame.h (flush_cached_frames): Delete prototype and update comment.
9004 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd): Call
9005 reinit_frame_cache instead of flush_cached_frames. Do not call
9006 select_frame after reinit_frame_cache.
9007 * corelow.c (core_open): Likewise.
9008 * gdbarch.sh (deprecated_current_gdbarch_select_hack): Likewise.
9009 * infrun.c (prepare_to_proceed, context_switch)
9010 (handle_inferior_event): Likewise.
9011 * linux-fork.c (fork_load_infrun_state): Likewise.
9012 * ocd.c (ocd_start_remote): Likewise.
9013 * remote-e7000.c (e7000_start_remote): Likewise.
9014 * remote-mips.c (device): Likewise.
9015 * thread.c (switch_to_thread): Likewise.
9016 * tracepoint.c (finish_tfind_command): Likewise.
9017 * gdbarch.c: Regenerated.
9019 2007-02-28 Jerome Guitton <guitton@adacore.com>
9020 Joel Brobecker <brobecker@adacore.com>
9022 * gdbtypes.c (check_typedef): Do not replace stub type if
9023 the resolved type is not defined in the same objfile.
9025 2007-02-28 Daniel Jacobowitz <dan@codesourcery.com>
9027 * top.c (gdb_readline_wrapper_cleanup): Remove invalid assertion.
9029 2007-02-28 Joel Brobecker <brobecker@adacore.com>
9031 * stabsread.c (define_symbol): Create an associated STRUCT_DOMAIN
9032 symbol for Ada units when the symbol is defined using 't' rather
9033 than 'Tt' as symbol descriptor.
9035 2007-02-28 Ulrich Weigand <uweigand@de.ibm.com>
9037 * config/mips/tm-nbsd.h: Delete file.
9038 * config/mips/nbsd.mt (DEPRECATED_TM_FILE): Remove.
9039 * config/sh/tm-nbsd.h: Delete file.
9040 * config/sh/nbsd.mt (DEPRECATED_TM_FILE): Set to tm-sh.h.
9042 2007-02-28 Joel Brobecker <brobecker@adacore.com>
9044 * mi/mi-cmd-var.c (varobj_update_one): Remove reference to
9045 unused WRONG_PARAM value since it was recently deleted.
9047 2007-02-28 Vladimir Prus <vladimir@codesourcery.com>
9049 * varobj.c (varobj_update): Free temporary vectors.
9051 2007-02-28 Ulrich Weigand <uweigand@de.ibm.com>
9053 * config/powerpc/linux.mt (DEPRECATED_TM_FILE): Set to tm-ppc-eabi.h.
9054 * config/powerpc/tm-linux.h: Delete file.
9055 * config/powerpc/tm-ppc-eabi.h: Do not include "rs6000/tm-rs6000.h".
9056 (PROCESS_LINENUMBER_HOOK): Do not undefine.
9057 (TEXT_SEGMENT_BASE): Do not redefine.
9058 * config/rs6000/nm-rs6000.h (CHILD_SPECIAL_WAITSTATUS): Move here
9059 from config/rs6000/tm-rs6000.h.
9060 (TARGET_CREATE_INFERIOR_HOOK, rs6000_create_inferior): Likewise.
9061 * config/rs6000/tm-rs6000.h (struct frame_info): Remove declaration.
9062 (TEXT_SEGMENT_BASE): Remove.
9063 (IN_SOLIB_RETURN_TRAMPOLINE): Remove.
9064 (rs6000_in_solib_return_trampoline): Remove.
9065 (SKIP_TRAMPOLINE_CODE): Remove.
9066 (rs6000_skip_trampoline_code): Remove.
9067 (CHILD_SPECIAL_WAITSTATUS): Move to config/rs6000/nm-rs6000.h.
9068 (TARGET_CREATE_INFERIOR_HOOK, rs6000_create_inferior): Likewise.
9069 (FP0_REGNUM): Remove.
9070 (rs6000_find_toc_address_hook): Move to rs6000-tdep.h.
9071 (rs6000_set_host_arch_hook): Remove.
9072 * Makefile.in (rs6000-nat.o): Add dependency on $(rs6000_tdep_h).
9073 (rs6000-aix-tdep.o): Add dependency on $(ppc_tdep_h).
9074 * ppc-tdep.h (struct gdbarch_tdep): Add field text_segment_base.
9075 * rs6000-aix-tdep.c: Include "ppc-tdep.h".
9076 (rs6000_aix_init_osabi): Set text_segment_base tdep field.
9077 * rs6000-nat.c: Include "rs6000-tdep.h".
9078 (exec_one_dummy_insn): Replace TEXT_SEGMENT_BASE by tdep field.
9079 (set_host_arch): Rename to ...
9080 (rs6000_create_inferior): ... this. Make public.
9081 (_initialize_core_rs6000): Do not set rs6000_set_host_arch_hook.
9082 * rs6000-tdep.c (rs6000_set_host_arch_hook): Remove.
9083 (rs6000_create_inferior): Remove.
9084 (branch_dest): Replace TEXT_SEGMENT_BASE by tdep field.
9085 (rs6000_gdbarch_init): Call set_gdbarch_fp0_regnum,
9086 set_gdbarch_in_solib_return_trampoline, and
9087 set_gdbarch_skip_trampoline_code.
9088 * rs6000-tdep.h (rs6000_find_toc_address_hook): Move here
9089 from config/rs6000/tm-rs6000.h.
9091 2007-02-27 Joel Brobecker <brobecker@adacore.com>
9093 * buildsym.c (record_producer): Do nothing if no producer is provided.
9095 2007-02-27 Nick Roberts <nickrob@snap.net.nz>
9097 * varobj.c (varobj_update): Remove unused local. Use gdb_assert
9098 to check changelist is non-NULL. Call error if the frontend tries
9099 to update a non-root variable.
9101 * varobj.h (enum varobj_update_error): Delete WRONG_PARAM value.
9103 2007-02-27 Daniel Jacobowitz <dan@codesourcery.com>
9105 * dwarf2-frame.c (dwarf2_frame_cache, dwarf2_frame_this_id)
9106 (dwarf2_frame_sniffer): Update.
9107 (dwarf2_signal_frame_this_id): New function.
9108 (dwarf2_signal_frame_unwind): Use it.
9109 (dwarf2_frame_base_sniffer): Use frame_unwind_address_in_block.
9110 * frame.c (frame_func_unwind): Add this_type argument.
9111 (get_frame_func): Update.
9112 (frame_unwind_address_in_block): Add this_type argument and check it.
9114 (get_frame_address_in_block): Update.
9115 * frame.h (enum frame_type): Move higher in the file.
9116 (frame_unwind_address_in_block, frame_func_unwind): Add enum frame_type
9119 * alpha-mdebug-tdep.c, alpha-tdep.c, amd64-tdep.c, amd64obsd-tdep.c,
9120 arm-tdep.c, avr-tdep.c, cris-tdep.c, frv-tdep.c, h8300-tdep.c,
9121 hppa-tdep.c, i386-tdep.c, i386obsd-tdep.c, ia64-tdep.c,
9122 libunwind-frame.c, m32c-tdep.c, m32r-linux-tdep.c, m32r-tdep.c,
9123 m68hc11-tdep.c, m68k-tdep.c, m88k-tdep.c, mips-mdebug-tdep.c,
9124 mips-tdep.c, mn10300-tdep.c, mt-tdep.c, rs6000-tdep.c, s390-tdep.c,
9125 score-tdep.c, sh-tdep.c, sh64-tdep.c, sparc-tdep.c,
9126 sparc64obsd-tdep.c, spu-tdep.c, v850-tdep.c, vax-tdep.c,
9127 xstormy16-tdep.c, xtensa-tdep.c: Update calls to
9128 frame_func_unwind and frame_unwind_address_in_block to specify
9129 the frame type. Use frame_unwind_address_in_block instead of
9130 frame_pc_unwind in sniffers.
9132 2007-02-27 Daniel Jacobowitz <dan@codesourcery.com>
9134 * frame.c (deprecated_selected_frame): Rename to...
9135 (selected_frame): ...this. Make static.
9136 (get_selected_frame, select_frame): Update.
9137 * frame.h (deprected_select_frame): Delete.
9138 (deprecated_safe_get_selected_frame): Update comments.
9140 * breakpoint.c, cli/cli-cmds.c, f-valprint.c, infcmd.c, inflow.c,
9141 infrun.c, stack.c, tui/tui-disasm.c, tui/tui-source.c,
9142 tui/tui-winsource.c, valops.c, varobj.c, findvar.c, macroscope.c,
9143 parse.c, regcache.h, sh64-tdep.c, tui/tui-hooks.c, tui/tui-win.c,
9144 tui/tui.c: Replace references to deprecated_selected_frame.
9146 2007-02-27 Fred Fish <fnf@specifix.com>
9148 * rs6000-tdep.c (skip_prologue): Recognize addi instructions that
9149 directly decrement the stack pointer, accumulate their operand into
9150 the stack offset, and mark the function as not being frameless.
9152 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
9154 * arch-utils.c (selected_byte_order): New.
9155 * arch-utils.h (selected_byte_order): New prototype.
9156 * remote-sim.c (gdbsim_open): Use selected_byte_order.
9158 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
9160 * symfile.c (place_section): Check SEC_ALLOC. Do not check VMA.
9161 (default_symfile_offsets): Check VMA here. Update section VMAs.
9163 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
9165 * remote.c (init_remote_state): Add special handling for placeholder
9168 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
9170 * Makefile.in (XMLFILES): Include $(TDEP_XML).
9171 (filenames_h): New variable.
9172 (clean): Clean up xml-builtin.c and stamp-xml.
9173 (arm-linux-nat.o): Update.
9174 * config/arm/linux.mh (TDEP_XML): Define.
9175 * arm-linux-nat.c (PTRACE_GETWMMXREGS, PTRACE_SETWMMXREGS): Define.
9176 (arm_linux_has_wmmx_registers): New.
9177 (GET_THREAD_ID): Fix typo.
9178 (IWMMXT_REGS_SIZE): Define.
9179 (fetch_wmmx_regs, store_wmmx_regs): New.
9180 (arm_linux_fetch_inferior_registers): Use fetch_wmmx_regs.
9181 (arm_linux_store_inferior_registers): Use store_wmmx_regs.
9182 (super_xfer_partial, arm_linux_xfer_partial): New.
9183 (_initialize_arm_linux_nat): Use them.
9184 * xml-support.c (fetch_xml_builtin): Move outside HAVE_LIBEXPAT.
9185 (xml_builtin_xfer_partial): New function.
9186 * xml-support.h (xml_builtin_xfer_partial): New prototype.
9187 * NEWS: Update mention of iWMMXt support.
9189 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
9191 * arm-tdep.c (arm_scan_prologue): Do not record FPA register saves
9192 if there are no FPA registers.
9193 (arm_dwarf_reg_to_regnum): New function.
9194 (arm_register_type, arm_register_name): Return minimal values for
9195 unsupported registers.
9196 (arm_register_sim_regno): Handle iWMMXt registers.
9197 (arm_gdbarch_init): Record missing FPA registers if indicated by
9198 a target description. Recognize iWMMXt registers. Only register
9199 "info float" for FPA. Use ARM_NUM_REGS. Register
9200 arm_dwarf_reg_to_regnum.
9201 * arm-tdep.h (enum gdb_regnum): Add ARM_NUM_REGS and iWMMXt
9203 (struct gdbarch_tdep): Add have_fpa_registers.
9204 * features/xscale-iwmmxt.xml: Update capitalization.
9205 * regformats/arm-with-iwmmxt.dat: Regenerated.
9207 2007-02-24 Kevin Buettner <kevinb@redhat.com>
9209 * NEWS (New targets): Add entry for the Toshiba Media Processor.
9211 2007-02-23 Kevin Buettner <kevinb@redhat.com>
9213 * MAINTAINERS (mep): New target.
9215 2007-02-23 Kevin Buettner <kevinb@redhat.com>
9217 From Jim Blandy, Dave Brolley, Kevin Buettner, Don Howard, and
9219 * Makefile.in (elf_mep_h, mep_desc_h, mep_opc_h): New variables.
9220 (mep-tdep.o): New rule.
9221 * configure.tgt (mep-*-*): New target.
9222 * mep-tdep.c: New file.
9223 * config/mep/mep.mt: New file.
9225 2007-02-22 Markus Deuling <deuling@de.ibm.com>
9227 * infrun.c (inferior_stop_reason, print_stop_reason): Remove
9228 BREAKPOINT_HIT and STOP_UNKNOWN.
9230 2007-02-22 Markus Deuling <deuling@de.ibm.com>
9232 * valops.c (value_ind): Fix unary * handling of TYPE_CODE_INT.
9234 2007-02-20 Joel Brobecker <brobecker@adacore.com>
9236 * gdb_expat.h (XMLCALL): Define if not already defined.
9238 2007-02-20 Andreas Schwab <schwab@suse.de>
9240 * Makefile.in (symfile.o): Update dependencies.
9242 2007-02-20 Daniel Jacobowitz <dan@codesourcery.com>
9244 * MAINTAINERS: Disable -Werror for cris simulator. Build
9245 sparc64-solaris2.10 instead of the broken sparc-elf.
9246 * solib-frv.c: Include "solib.h".
9247 * Makefile.in (solib-frv.o): Update.
9248 * mt-tdep.c (mt_gdbarch_init): Correct typo in floatformats patch.
9249 * xtensa-tdep.c (xtensa_regset_from_core_section): Cast size_t to int.
9250 (xtensa_frame_this_id, xtensa_frame_prev_register)
9251 (xtensa_push_dummy_call): Use %p.
9253 2007-02-16 Daniel Jacobowitz <dan@codesourcery.com>
9255 * avr-tdep.c, hppa-tdep.c, hppabsd-tdep.c, i386-tdep.c,
9256 ia64-tdep.c, m68k-tdep.c, mips-linux-tdep.c, ppcobsd-tdep.c,
9257 sparc-linux-tdep.c: Include "gdbtypes.h" instead of "floatformat.h".
9258 * Makefile.in (avr-tdep.o, hppabsd-tdep.o, hppa-tdep.o, i386-tdep.o)
9259 (ia64-tdep.o, m68k-tdep.o, mips-linux-tdep.o, ppcobsd-tdep.o)
9260 (sparc-linux-tdep.o): Update.
9262 2007-02-15 Maxim Grigoriev <maxim2405@gmail.com>
9264 * xtensa-tdep.h (xtensa_reg_mask_t): New.
9265 (xtensa_mask_t): Change mask field to be a separate array.
9266 * xtensa-tdep.c (extract_call_winsize, xtensa_pseudo_register_read)
9267 (xtensa_pseudo_register_write, xtensa_unwind_pc)
9268 (xtensa_unwind_dummy_id, xtensa_push_dummy_call)
9269 (xtensa_breakpoint_from_pc): Remove implicit type casting.
9270 * xtensa-config.c (mask0, mask1, mask2, mask3, mask4, mask5)
9271 (mask6, mask7, mask8, mask9, mask10, mask11, mask12, mask13)
9272 (mask14, mask15): Rename to
9273 (xtensa_mask0, xtensa_mask1, xtensa_mask2, xtensa_mask3)
9274 (xtensa_mask4, xtensa_mask5, xtensa_mask6, xtensa_mask7)
9275 (xtensa_mask8, xtensa_mask9, xtensa_mask10, xtensa_mask11)
9276 (xtensa_mask12, xtensa_mask13, xtensa_mask14, xtensa_mask15): this.
9277 (xtensa_submask0, xtensa_submask1, xtensa_submask2, xtensa_submask3)
9278 (xtensa_submask4, xtensa_submask5, xtensa_submask6, xtensa_submask7)
9279 (xtensa_submask8, xtensa_submask9, xtensa_submask10)
9280 (xtensa_submask11, xtensa_submask12, xtensa_submask13)
9281 (xtensa_submask14, xtensa_submask15): New.
9282 (rmap): Follow strict aliasing rules doing static initialization.
9284 2007-02-13 Daniel Jacobowitz <dan@codesourcery.com>
9286 * target-descriptions.c (tdesc_named_type): Move code_ptr and data_ptr
9287 handling from here...
9288 (tdesc_register_type): ...to here.
9289 * xml-tdesc.c (tdesc_start_reg): Allow code_ptr and data_ptr.
9290 * features/arm-core.xml: Use code_ptr and data_ptr.
9292 2007-02-13 Denis Pilat <denis.pilat@st.com>
9294 * varobj.h (enum varobj_update_error): New enum.
9295 * varobj.c (struct varobj_root): Add is_valid member.
9296 (varobj_get_type): Check for invalid varobj.
9297 (varobj_get_attributes): Likewise.
9298 (variable_editable):Likewise.
9299 (varobj_update): Likewise. Use varobj_update_error.
9300 (new_root_variable): Set root varobj as valid by default.
9301 (varobj_invalidate): New function.
9302 * symfile.c (clear_symtab_users): Use varobj_invalidate.
9303 * mi/mi-cmd-var.c (varobj_update_one): Change return type to void.
9304 Use varobj_update_error.
9306 2007-02-12 Pierre Muller <muller@ics.u-strasbg.fr>
9309 * dwarfread.c (set_cu_language): Recognize DW_LANG_Pascal83 as
9310 Pascal language marker.
9311 * dwarf2read.c (set_cu_language): Likewise.
9313 2007-02-12 Corinna Vinschen <vinschen@redhat.com>
9315 * win32-nat.c (win32_wait): Reset terminal pgrp to GDB.
9316 (do_initial_win32_stuff): Call terminal_init_inferior_with_pgrp
9317 instead of target_terminal_init since inferior_ptid isn't set yet.
9319 2007-02-10 Pedro Alves <pedro_alves@portugalmail.pt>
9321 * MAINTAINERS (Write After Approval): Add myself.
9323 2007-02-09 Fred Fish <fnf@specifix.com>
9325 Based on work by Apple Computer, Inc.
9326 * event-top.c (async_request_quit): Call quit() whenever either
9327 quit_flag is set or immediate_quit is set.
9329 2007-02-09 Gabriel Dos Reis <gdr@integrable-solutions.net>
9331 * ada-lang.c (remove_out_of_scope_renamings): Change third parameter's
9332 type to a pointer to const struct block.
9333 (ada_lookup_symbol_list): Don't cast away constness when calling
9334 remove_out_of_scope_renamings.
9336 2007-02-09 Gabriel Dos Reis <gdr@integrable-solutions.net>
9338 * linux-nat.c (linux_nat_find_memory_regions): Don't check the
9339 address of 'filename'; it is always non null.
9341 2007-02-09 Joel Brobecker <brobecker@adacore.com>
9343 * exec.c (add_to_section_table): Do not discard empty sections.
9345 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
9347 * features/Makefile, features/arm-with-iwmmxt.xml,
9348 features/gdbserver-regs.xsl, features/number-regs.xsl,
9349 features/sort-regs.xsl, features/xscale-iwmmxt.xml: New files.
9350 * regformats/arm-with-iwmmxt.dat: Generate.
9351 * NEWS: Mention iWMMXt.
9353 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
9355 * Makefile.in (arm-tdep.o, eval.o, target-descriptions.o)
9356 (xml-tdesc.o): Update.
9357 * xml-support.c: Add a comment.
9358 (gdb_xml_enums_boolean): New variable.
9359 (gdb_xml_parse_attr_enum): Use strcasecmp.
9360 * xml-support.h (gdb_xml_enums_boolean): Declare.
9361 * xml-tdesc.c (struct tdesc_parsing_data): Record current_feature,
9362 next_regnum, and current_union.
9363 (tdesc_start_feature, tdesc_start_reg, tdesc_start_union)
9364 (tdesc_end_union, tdesc_start_field, tdesc_start_vector)
9365 (field_attributes, union_children, reg_attributes, union_attributes)
9366 (vector_attributes, feature_attributes, feature_children): New.
9367 (target_children): Make static. Add <feature>.
9368 (tdesc_elements): Make static.
9369 * target-descriptions.c (struct tdesc_reg, tdesc_reg_p, type_p)
9370 (struct tdesc_feature, tdesc_feature_p): New types.
9371 (struct target_desc): Add features member.
9372 (struct tdesc_arch_data, tdesc_data): New.
9373 (target_find_description): Clarify error message. Warn about
9374 ignored register descriptions.
9375 (tdesc_has_registers, tdesc_find_feature, tdesc_feature_name)
9376 (tdesc_named_type, tdesc_data_init, tdesc_data_alloc)
9377 (tdesc_data_cleanup, tdesc_numbered_register)
9378 (tdesc_numbered_register_choices, tdesc_find_register)
9379 (tdesc_register_name, tdesc_register_type)
9380 (tdesc_remote_register_number, tdesc_register_reggroup_p)
9381 (set_tdesc_pseudo_register_name, set_tdesc_pseudo_register_type)
9382 (set_tdesc_pseudo_register_reggroup_p, tdesc_use_registers)
9383 (tdesc_free_reg, tdesc_create_reg, tdesc_free_feature)
9384 (tdesc_create_feature, tdesc_record_type): New.
9385 (free_target_description): Free features.
9386 (_initialize_target_descriptions): Initialize tdesc_data.
9387 * arch-utils.c (default_remote_register_number): New.
9388 * arch-utils.h (default_remote_register_number): New prototype.
9389 * target-descriptions.h (set_tdesc_pseudo_register_name)
9390 (set_tdesc_pseudo_register_type, set_tdesc_pseudo_register_reggroup_p)
9391 (tdesc_use_registers, tdesc_data_alloc, tdesc_data_cleanup)
9392 (tdesc_numbered_register, tdesc_numbered_register_choices)
9393 (tdesc_has_registers, tdesc_find_feature, tdesc_feature_name)
9394 (tdesc_named_type, tdesc_create_feature, tdesc_record_type)
9395 (tdesc_create_reg): Declare.
9396 * gdbarch.sh (remote_register_number): New entry.
9397 * gdbarch.c, gdbarch.h: Regenerate.
9398 * remote.c (init_remote_state): Use gdbarch_remote_register_number.
9399 * features/gdb-target.dtd: Add feature, reg, vector, union, and field.
9401 * arm-tdep.c (arm_register_aliases): New.
9402 (arm_register_name_strings): Rename to...
9403 (arm_register_names): ...this. Make const. Delete the old version.
9404 (current_option, arm_register_byte): Delete.
9405 (set_disassembly_style): Simplify. Do not adjust arm_register_names.
9406 (value_of_arm_user_reg): New.
9407 (arm_gdbarch_init): Verify any described registers. Call
9408 tdesc_use_registers. Don't use arm_register_byte. Create aliases
9409 for standard register names.
9410 (_initialize_arm_tdep): Do not adjust arm_register_names.
9411 * user-regs.c (struct user_reg): Add baton member.
9412 (append_user_reg, user_reg_add_builtin, user_regs_init)
9413 (user_reg_add, value_of_user_reg): Use a baton for user
9415 * std-regs.c: Update.
9416 * user-regs.h (user_reg_read_ftype, user_reg_add_builtin)
9417 (user_reg_add): Add baton argument.
9418 * NEWS: Mention target description register support.
9419 * features/arm-core.xml, features/arm-fpa.xml: New.
9420 * eval.c (evaluate_subexp_standard): Allow ptype $register
9421 when the program is not running.
9423 2007-02-09 Nick Roberts <nickrob@snap.net.nz>
9425 * mi/mi-cmd-var.c (mi_cmd_var_create): Add value field.
9427 2007-02-08 Thiago Jung Bauermann <bauerman@br.ibm.com>
9429 * rs6000-tdep.c (gdb_print_insn_powerpc): Set
9430 info->disassembler_options to "any".
9432 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
9434 * varobj.c (install_new_value): Only call value_get_print_value
9437 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
9439 Reported by timeless@gmail.com:
9440 * gdb/target.c (target_flash_erase): Do not return void value.
9441 (target_flash_done): Likewise.
9442 * gdb/cli/cli-cmds.c (source_command): Likewise.
9444 2007-02-08 Fred Fish <fnf@specifix.com>
9446 Based on work by Apple Computer, Inc.
9447 * event-top.c (handle_sigint): Set quit_flag.
9448 (async_request_quit): Don't set quit_flag. Avoid calling quit()
9449 if quit_flag has already been reset.
9451 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
9453 * ser-mingw.c (pipe_windows_close): Move variable initialization back
9456 2007-02-08 Fred Fish <fnf@specifix.com>
9458 * defs.h (request_quit): Remove declaration.
9459 * utils.c (request_quit): Remove definition.
9461 2007-02-08 Joel Brobecker <brobecker@gnat.com>
9462 Jan Kratochvil <jan.kratochvil@redhat.com>
9463 Daniel Jacobowitz <dan@codesourcery.com>
9465 * rs6000-tdep.c (bl_to_blrl_insn_p): New function.
9466 (skip_prologue): Allow bl->blrl used by PIC code.
9468 2007-02-08 Mark Kettenis <kettenis@gnu.org>
9469 Daniel Jacobowitz <dan@codesourcery.com>
9471 * cp-valprint.c (cp_print_value_fields, cp_print_value): Always
9472 initialize tmp_obstack.
9473 * p-valprint.c (pascal_object_print_value_fields)
9474 (pascal_object_print_value): Likewise.
9476 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
9478 * features/feature_to_c.sh: Use %s to avoid problems with nawk.
9480 2007-02-08 Mark Kettenis <kettenis@gnu.org>
9482 * sparcnbsd-tdep.c: Include "gdbtypes.h" instead of "floatformat.h".
9483 * Makefile.in (sparcnbsd-tdep.o): Update dependencies.
9485 2007-02-07 Daniel Jacobowitz <dan@codesourcery.com>
9487 * xml-tdesc.c (struct tdesc_xml_cache, tdesc_xml_cache_s)
9489 (tdesc_parse_xml): Cache expanded descriptions.
9491 2007-02-07 Daniel Jacobowitz <dan@codesourcery.com>
9493 * Makefile.in (XMLFILES): New.
9494 (COMMON_OBS): Add xml-builtin.o.
9495 (xml-builtin.c, stamp-xml): New rules.
9496 (xml-tdesc.o): Update.
9497 * features/feature_to_c.sh: New file.
9498 * xml-support.c (MAX_XINCLUDE_DEPTH): Define.
9499 (struct gdb_xml_parser): Add dtd_name and is_xinclude.
9500 (gdb_xml_start_element): Initialize scope after possibly reallocating
9501 scopes. Move cleanup later. Handle the XInclude description
9503 (gdb_xml_end_element): Only parse the body if there is a current element.
9504 Call XML_DefaultCurrent if there is no element.
9505 (gdb_xml_fetch_external_entity, gdb_xml_use_dtd): New.
9506 (struct xinclude_parsing_data, xinclude_start_include)
9507 (xinclude_end_include, xml_xinclude_default)
9508 (xml_xinclude_start_doctype, xml_xinclude_end_doctype)
9509 (xml_xinclude_xml_decl, xml_xinclude_cleanup, xinclude_attributes)
9510 (xinclude_elements, xml_process_xincludes, fetch_xml_builtin): New.
9511 * xml-support.h (xml_fetch_another, xml_process_xincludes)
9512 (fetch_xml_builtin, xml_builtin, gdb_xml_use_dtd): New declarations.
9513 * xml-tdesc.c (tdesc_parse_xml): Add fetcher_baton argument. Expand
9514 XInclude directives. Use the compiled in DTD.
9515 (fetch_xml_from_file): Add baton argument. Treat it as a containing
9516 directory name. Do not warn here.
9517 (file_read_description_xml): Update call. Warn here instead. Pass
9519 (fetch_available_features_from_target): New.
9520 (target_read_description_xml): Use it.
9521 * features/gdb-target.dtd: Add copyright notice. Use xinclude.dtd
9523 * features/xinclude.dtd: New file.
9525 2007-02-05 Daniel Jacobowitz <dan@codesourcery.com>
9527 * linux-thread-db.c (check_for_thread_db): Return early if we have
9528 no libthread_db support.
9530 2007-02-05 Daniel Jacobowitz <dan@codesourcery.com>
9532 * mi/mi-parse.h: Include <sys/time.h>.
9534 2007-02-05 Nick Roberts <nickrob@snap.net.nz>
9536 * mi/mi-cmd-stack.c (list_args_or_locals): Use common_val_print
9537 instead of print_variable_value to print values.
9539 2007-02-03 Nick Roberts <nickrob@snap.net.nz>
9541 * mi/mi-main.c: Numerous formatting changes.
9542 (mi_cmd_data_write_register_values): Replace clause inadvertantly
9543 removed in my previous change.
9545 2007-02-03 Eli Zaretskii <eliz@gnu.org>
9547 * mi/mi-main.c (mi_load_progress, timestamp, print_diff_now):
9548 Use 1000000L instead of 1000000.
9550 2007-02-03 Nick Roberts <nickrob@snap.net.nz>
9552 Based on work by Apple Computer, Inc.
9554 * configure.ac: Test for sys/resource.h and getrusage.
9555 * configure, config.in: Regenerate.
9557 * mi/mi-main.c: Include <sys/resource.h> if present.
9558 (rusage): Declare if HAVE_GETRUSAGE.
9559 (current_command_ts, do_timings): New static variables.
9560 (timestamp, print_diff_now, print_diff, timeval_diff):
9561 New static timing functions.
9562 (mi_cmd_enable_timings): New function for new MI command.
9563 (captured_mi_execute_command, mi_execute_async_cli_command):
9564 Call timing functions.
9566 * mi/mi-cmds.c (mi_cmds): Add entry for new MI command
9569 * mi/mi-cmds.h (mi_cmd_enable_timings): New extern.
9571 * mi/mi-parse.h: (mi_timestamp): New structure.
9572 (mi_parse): Add mi_timestamp* member.
9574 2007-02-02 Denis Pilat <denis.pilat@st.com>
9576 * thread.c (make_cleanup_restore_current_thread): New function.
9577 (info_threads_command): Use of make_cleanup_restore_current_thread
9578 to restore the current thread and the selected frame.
9579 (restore_selected_frame): New function.
9580 (struct current_thread_cleanup): Add frame_id field.
9581 (do_restore_current_thread_cleanup): Add restoring of the selected
9583 (make_cleanup_restore_current_thread): Likewise.
9584 (thread_apply_all_command): backup the selected frame while
9585 entering the function and restore it at exit.
9586 (thread_apply_command): Likewise.
9588 2007-02-02 Denis Pilat <denis.pilat@st.com>
9590 * MAINTAINERS (Write After Approval): Add myself to the list.
9592 2007-02-01 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
9594 * gdb/remote-m32r.sdi.c (m32r_fetch_register): Change PWD mask.
9595 (m32r_store_register): Ditto.
9597 2007-01-30 Vladimir Prus <vladimir@codesourcery.com>
9599 * ser-mingw.c (pipe_windows_open)
9600 (pipe_windows_read, pipe_windows_write): Declare
9601 variables at the top of the function.
9603 2007-01-29 Daniel Jacobowitz <dan@codesourcery.com>
9605 * doublest.c (floatformat_from_length): Use the right element from
9606 gdbarch floatformats.
9607 (floatformat_from_type, extract_typed_floating)
9608 (store_typed_floating): Likewise.
9609 * doublest.h: Remove declarations for undefined floatformat arrays.
9610 * gdbarch.sh (float_format, double_format, long_double_format): Change
9612 (pformat): Update for pairs.
9613 * gdbarch.c, gdbarch.h: Regenerated.
9614 * gdbtypes.c (floatformats_ieee_single, floatformats_ieee_double)
9615 (floatformats_ieee_double_littlebyte_bigword)
9616 (floatformats_i387_ext, floatformats_m68881_ext, floatformats_arm_ext)
9617 (floatformats_ia64_spill, floatformats_ia64_quad, floatformats_vax_f)
9618 (floatformats_vax_d): New variables.
9619 (builtin_type_ieee_single, builtin_type_ieee_double)
9620 (builtin_type_arm_ext, builtin_type_ia64_spill)
9621 (builtin_type_ia64_quad): Replace arrays with individual types.
9622 (builtin_type_ieee_single_big, builtin_type_ieee_single_little)
9623 (builtin_type_ieee_double_big, builtin_type_ieee_double_little)
9624 (builtin_type_ieee_double_littlebyte_bigword, builtin_type_i960_ext)
9625 (builtin_type_m88110_ext, builtin_type_m88110_harris_ext)
9626 (builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword)
9627 (builtin_type_ia64_spill_big, builtin_type_ia64_spill_little)
9628 (builtin_type_ia64_quad_big, builtin_type_ia64_quad_little): Delete
9629 unused and endian-specific types.
9630 (recursive_dump_type): Update for floatformat pairs.
9631 (build_flt): Move higher. Handle bit == -1. Take a floatformat pair.
9632 (build_gdbtypes): Use build_flt.
9633 (_initialize_gdbtypes): Update set of initialized types.
9634 * gdbtypes.h: Update declarations to match gdbtypes.c.
9635 (struct main_type): Store a pointer to two floatformats.
9636 * arch-utils.c (default_float_format, default_double_format): Delete.
9637 * arch-utils.h (default_float_format, default_double_format): Delete.
9639 * arm-tdep.c, avr-tdep.c, hppa-tdep.c, hppabsd-tdep.c, i386-tdep.c,
9640 ia64-tdep.c, iq2000-tdep.c, m68k-tdep.c, m88k-tdep.c,
9641 mips-linux-tdep.c, mips-tdep.c, mt-tdep.c, ppcobsd-tdep.c,
9642 sparc-linux-tdep.c, sparc-tdep.c, sparcnbsd-tdep.c, spu-tdep.c,
9643 vax-tdep.c, alpha-tdep.c, ppc-sysv-tdep.c: Update.
9645 2007-01-29 Joel Brobecker <brobecker@adacore.com>
9647 * target.c (maintenance_print_target_stack): New function.
9648 (initialize_targets): Add new "maintenance print target-stack"
9651 2007-01-28 Mark Kettenis <kettenis@gnu.org>
9653 * dwarf2read.c (new_symbol): Handle DW_AT_decl_file being zero.
9655 2007-01-27 Daniel Jacobowitz <dan@codesourcery.com>
9657 * dwarf2loc.h (struct dwarf2_locexpr_baton): Change size to a long.
9658 (struct dwarf2_loclist_baton): Likewise.
9660 2007-01-27 Eli Zaretskii <eliz@gnu.org>
9662 * cli/cli-script.c: Include breakpoint.h.
9663 (build_command_line): Require arguments only for if and while
9665 (get_command_line, execute_user_command, execute_control_command):
9666 Fix wording of warning messages.
9667 (print_command_lines): Print breakpoint commands.
9668 (execute_control_command): Call commands_from_control_command to
9669 handle the `commands' command inside a body of a flow-control
9671 (read_next_line): Recognize the `commands' command and build a
9672 command line structure for it.
9673 (recurse_read_control_structure, read_command_lines): Handle
9674 `commands' similarly to `if' and `while'.
9676 * breakpoint.c (get_number_trailer): Document the special meaning
9677 of NULL as the first argument PP.
9678 (commands_from_control_command): New function.
9680 * breakpoint.h (commands_from_control_command): Add prototype.
9682 * defs.h (commands_control): New enumerated value for enum
9683 command_control_type.
9685 2007-01-26 Joel Brobecker <brobecker@adacore.com>
9687 * ada-lang.c (ada_exception_breakpoint_ops): Fix typo in function name.
9688 (ada_exception_sal): Update accordingly.
9690 2007-01-26 Jan Kratochvil <jan.kratochvil@redhat.com>
9692 * c-valprint.c (c_val_print): Require strings to be of no-signed CHARs.
9693 * NEWS: Describe CHAR array vs. string identifcation rules.
9695 2007-01-25 Paul Brook <paul@codesourcery.com>
9697 * arm-tdep.c (arm_get_next_pc): Fix bitfield off-by-one error.
9699 2007-01-24 Jim Blandy <jimb@codesourcery.com>
9701 * dwarf2loc.c (dwarf2_evaluate_loc_desc): When the location
9702 expression is empty, bother to return the 'optimized out' value we
9703 construct. (Thanks to Carl Burch.)
9705 2007-01-24 Vladimir Prus <vladimir@codesourcery.com>
9707 * varobj.c (c_value_of_root, c_value_of_child)
9708 (cplus_describe_child): Don't call release_value.
9710 2007-01-24 Thiemo Seufer <ths@mips.com>
9712 * mips-linux-tdep.c (mips_linux_n64_rt_sigframe): Fix struct
9715 2007-01-24 Vladimir Prus <vladimir@codesourcery.com>
9717 Refactor getting children name, value and type access
9719 * varobj.c (get_type_deref): Remove.
9720 (adjust_value_for_child_access): New.
9721 (c_number_of_children): Use the above.
9722 (c_describe_child): Likewise.
9723 (enum accessibility): New.
9724 (match_accessibility): New function.
9725 (cplus_describe_child): New function.
9726 (cplus_name_of_child, cplus_value_of_child)
9727 (cplus_type_of_child): Reimplement in terms
9728 of cplus_describe_child.
9729 (cplus_number_of_children): Use
9730 adjust_value_for_child_access.
9732 2007-01-24 Vladimir Prus <vladimir@codesourcery.com>
9734 Fix computation of the 'editable' attribute and
9735 value changeability for for references.
9736 * varobj.c (get_value_type): New function.
9737 (c_variable_editable): Use get_value_type.
9738 (varobj_value_is_changeable): Likewise.
9740 2007-01-24 Joel Brobecker <brobecker@adacore.com>
9742 * source.c (find_and_open_source): Try rewriting the source
9743 path inside filename if dirname is NULL.
9745 2007-01-24 Joel Brobecker <brobecker@adacore.com>
9747 * dwarf2read.c (add_partial_symbol): Create an extra partial
9748 symbol in the VAR_DOMAIN for Ada structures, unions or enums.
9749 (new_symbol): Likewise for symbols.
9751 2007-01-24 Nick Roberts <nickrob@snap.net.nz>
9753 * mi/mi-main.c (mi_cmd_execute): Call free_all_values.
9755 2007-01-23 Vladimir Prus <vladimir@codesourcery.com>
9757 * value.c (value_primitive_field): Copy the full 'location'
9758 contents, instead of assuming that copying ADDRESS will
9759 bring over everything in the union. Remove obsolete comment.
9761 2007-01-23 Masaki Muranaka <monaka@monami-software.com>
9763 * m32c-tdep.c (make_regs, m32c_analyze_prologue)
9764 (m32c_skip_trampoline_code, m32c_m16c_address_to_pointer)
9765 (m32c_m16c_pointer_to_address): Separate code from declarations.
9767 2007-01-23 Nick Hudson <nick.hudson@dsl.pipex.com>
9769 * target.c (update_current_target): Correct typo.
9771 2007-01-22 Masaki Muranaka <monaka@monami-software.com>
9773 * xstormy16-tdep.c (xstormy16_skip_prologue): Separate code from a
9776 2007-01-11 Andrew Cagney <cagney@redhat.com>
9777 Daniel Jacobowitz <dan@codesourcery.com>
9778 Jan Kratochvil <jan.kratochvil@redhat.com>
9780 * dwarf2-frame.c (execute_cfa_program): New support of
9781 `DW_CFA_GNU_negative_offset_extended'.
9783 2007-01-21 Daniel Jacobowitz <dan@codesourcery.com>
9785 * NEWS: Mention flash support for "load" and new remote packets.
9787 2007-01-21 Markus Deuling <deuling@de.ibm.com>
9789 * breakpoint.c (delete_command): Skip redundant loop iterations.
9791 2007-01-21 Daniel Jacobowitz <dan@codesourcery.com>
9793 * gdbarch.sh (register_type): Update comment.
9794 * gdbarch.h: Regenerated.
9795 * arch-utils.c (generic_register_size): Call register_type.
9796 * ia64-tdep.c (ia64_extract_return_value): Likewise.
9797 * m32c-tdep.c (check_for_saved): Likewise.
9798 * mips-tdep.c (mips_print_register, print_gp_register_row)
9799 (mips_print_registers_info): Likewise.
9800 * sh-tdep.c (sh_pseudo_register_read, sh_pseudo_register_write):
9802 * sh64-tdep.c (sh64_pseudo_register_read, sh64_pseudo_register_write)
9803 (sh64_do_register, sh64_print_register)
9804 (sh64_media_print_registers_info): Likewise.
9805 * tui/tui-regs.c (tui_register_format): Likewise.
9807 2007-01-21 Daniel Jacobowitz <dan@codesourcery.com>
9809 * objfiles.h (ALL_PRIMARY_SYMTABS): Define.
9811 * ada-lang.c (symtab_for_sym, ada_lookup_symbol_list)
9812 (ada_lookup_symbol): Use ALL_PRIMARY_SYMTABS.
9813 * cp-support.c (make_symbol_overload_list_qualified): Likewise.
9814 * symtab.c (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
9815 (basic_lookup_transparent_type, find_pc_sect_symtab, search_symbols)
9816 (make_symbol_completion_list): Likewise.
9818 2007-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
9819 Daniel Jacobowitz <dan@codesourcery.com>
9821 * buildsym.c (end_symtab): Use preallocated symtab if available.
9822 Fill in SYMBOL_SYMTAB.
9823 * buildsym.h (struct subfile): Add symtab member.
9824 * dwarf2read.c (struct dwarf2_cu): Add line_header.
9825 (struct file_entry): Add symtab.
9826 (free_cu_line_header): New function.
9827 (read_file_scope): Use it. Save line_header in the cu. Process
9829 (add_file_name): Initialize new symtab member.
9830 (dwarf_decode_lines): Create symtabs for included files.
9831 (new_symbol): Set SYMBOL_SYMTAB.
9832 * symtab.c (lookup_symbol): Use SYMBOL_SYMTAB.
9833 (search_symbols): Likewise.
9834 * symtab.h (struct symbol): Add symtab member.
9835 (SYMBOL_SYMTAB): Define.
9837 2007-01-20 Daniel Jacobowitz <dan@codesourcery.com>
9839 * symfile.c (allocate_symtab): Remove INIT_EXTRA_SYMTAB_INFO.
9841 2007-01-20 Daniel Jacobowitz <dan@codesourcery.com>
9843 * arch-utils.c (show_endian): Correct reversed condition.
9845 2007-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
9847 * MAINTAINERS (Write After Approval): Add myself.
9849 2007-01-16 Daniel Jacobowitz <dan@codesourcery.com>
9850 Vladimir Prus <vladimir@codesourcery.com>
9852 Fix 'selected frame' varobjs.
9853 * varobj.c (struct varobj): Remove the error field.
9854 (varobj_set_value): Don't check var->error.
9855 (install_new_value): Don't set var->error.
9856 (varobj_update): Always pass the new value
9857 of the root via install_new_value.
9858 (create_child): Don't set error field.
9859 (new_variable): Likewise.
9860 (c_value_of_root): Always reevaluate the value
9861 of selected frame varobjs in the selected frame.
9862 Don't call reinit_frame_cache.
9864 2007-01-15 Joel Brobecker <brobecker@adacore.com>
9866 * source.c (_initialize_source): Improve the help text of
9867 the substitute-path commands.
9869 2007-01-14 Mark Kettenis <kettenis@gnu.org>
9871 * frv-tdep.c (frv_gdbarch_init, frv_register_name)
9872 (frv_breakpoint_from_pc, frv_gdbarch_adjust_breakpoint_address)
9873 (frv_skip_prologue): Remove prototypes.
9874 (frv_adjust_breakpoint_address): Renamed from
9875 frv_gdbarch_adjust_breakpoint_address.
9876 (frv_gdbarch_init): Adjust.
9878 2007-01-13 Mark Kettenis <kettenis@gnu.org>
9880 * gdbarch.sh (deprecated_extract_return_value)
9881 (deprecated_store_return_value): Remove.
9882 (extract_return_value, store_return_value): Remove default values.
9883 * gdbarch.c, gdbarch.h: Regenerate.
9884 * arch-utils.c, arch-utils.h (legacy_extract_return_value)
9885 (legacy_store_return_value): Remove.
9886 * regcache.c, regcache.h (deprecated_grub_regcache_for_registers):
9889 * mi/mi-main.c: Remove obsolete comment.
9891 * regcache.c, regcache.h (deprecated_register_bytes)
9892 (deprecated_read_register_bytes)
9893 (deprecated_write_register_bytes): Remove.
9895 * frame.c (get_frame_register_bytes, put_frame_register_bytes):
9896 Don't forget to move destination pointer.
9898 2007-01-01 Mark Kettenis <kettenis@gnu.org>
9900 * config/i386/nm-i386gnu.h (CHILD_PREPARE_TO_STORE): Remove.
9902 2007-01-11 Ulrich Weigand <uweigand@de.ibm.com>
9904 * spu-tdep.c (spu_analyze_prologue): Fix erroneous backtrace
9905 past entry function with recent newlib.
9907 2007-01-11 Vladimir Prus <vladimir@codesourcery.com>
9909 * gdb.texinfo (GDB/MI Variable Objects): Improve the
9910 introduction. Specify -var-update more exactly.
9912 2007-01-11 Daniel Jacobowitz <dan@codesourcery.com>
9914 * frame.c (get_prev_frame_1): Check PC_REGNUM before using it.
9916 2007-01-10 Jim Blandy <jimb@codesourcery.com>
9918 * MAINTAINERS (Global Maintainers): Ulrich Weigand has accepted
9919 the Global Maintainers' invitation to be a global maintainer.
9921 2007-01-10 Daniel Jacobowitz <dan@codesourcery.com>
9923 * infrun.c (singlestep_pc): New variable.
9924 (resume): Set singlestep_pc.
9925 (context_switch): Add a debugging message. Flush the frame cache.
9926 (handle_inferior_event): Add debugging messages. Handle thread
9927 hops when a software single step has completed. Let context_switch
9928 handle flushing the frame cache.
9930 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
9932 * NEWS: Mention target descriptions, "set tdesc filename",
9933 "unset tdesc filename", "show tdesc filename", and
9934 qXfer:features:read.
9935 * arch-utils.c (choose_architecture_for_target): New function.
9936 (gdbarch_info_fill): Call it.
9937 * target-descriptions.c (struct property): Make members non-const.
9938 (struct target_desc): Add arch member.
9939 (target_description_filename): New variable.
9940 (target_find_description): Try via XML first.
9941 (tdesc_architecture): New.
9942 (free_target_description, make_cleanup_free_target_description): New.
9943 (set_tdesc_property): Call xstrdup.
9944 (set_tdesc_architecture, tdesc_set_cmdlist, tdesc_show_cmdlist)
9945 (tdesc_unset_cmdlist, unset_tdesc_cmd, unset_tdesc_filename_cmd)
9946 (set_tdesc_cmd, show_tdesc_cmd, set_tdesc_filename_cmd)
9947 (show_tdesc_filename_cmd, _initialize_target_descriptions): New.
9948 * target-descriptions.h (tdesc_architecture)
9949 (make_cleanup_free_target_description, set_tdesc_architecture): New
9951 * Makefile.in (SFILES): Add xml-tdesc.c.
9952 (COMMON_OBS): Add xml-tdesc.o.
9953 (target-descriptions.o): Update.
9954 (xml-tdesc.o): New rule.
9955 * xml-tdesc.c, xml-tdesc.h: New files.
9956 * remote.c (PACKET_qXfer_features): New enum.
9957 (remote_protocol_features): Add qXfer:features:read.
9958 (remote_xfer_partial): Handle TARGET_OBJECT_AVAILABLE_FEATURES.
9959 (_initialize_remote): Register qXfer:features:read.
9960 * target.h (enum target_object): Add TARGET_OBJECT_AVAILABLE_FEATURES.
9961 * features/gdb-target.dtd: New file.
9963 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
9965 * copyright.sh: Clarify error.
9967 2007-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
9969 * symtab.c (matching_bfd_sections): Fix VMA matching for
9972 2007-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
9974 * minsyms.c (lookup_minimal_symbol_by_pc_section): Handle
9977 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
9979 Updated copyright notices for most files.
9981 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
9983 * copyright.sh (prunes): Add step-line.inp and step-line.c.
9985 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
9987 * configure.ac (DEBUGDIR_RELOCATABLE): Define for debugdir inside
9989 (TARGET_SYSTEM_ROOT_RELOCATABLE): Allow for exec_prefix being
9991 * configure, config.in: Regenerate.
9992 * defs.h (debug_file_directory): Declare.
9993 * main.c (captured_main): Canonicalize gdb_sysroot. Assume
9994 TARGET_SYSTEM_ROOT is defined. Initialize debug_file_directory and
9995 relocate it if DEBUGDIR_RELOCATABLE.
9996 * symfile.c (debug_file_directory): Make non-static.
9997 (find_separate_debug_file): Look for debug info for SYSROOT/PATH
9998 in DEBUGDIR/PATH if DEBUGDIR is inside SYSROOT.
9999 (_initialize_symfile): Don't initialize debug_file_directory here.
10001 2007-01-09 Jim Blandy <jimb@codesourcery.com>
10003 * score-tdep.c (score_push_dummy_call): Don't mix declarations and
10006 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
10008 * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Use
10009 frame_unwind_register to recurse.
10010 * alpha-tdep.c (alpha_sigtramp_frame_prev_register): Likewise.
10011 (alpha_heuristic_frame_prev_register): Likewise.
10012 * h8300-tdep.c (h8300_frame_prev_register): Likewise.
10013 * m32c-tdep.c (m32c_prev_register): Likewise.
10014 * frame.c (frame_register_unwind_location): Remove FIXME.
10016 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
10017 Eli Zaretskii <eliz@gnu.org>
10019 * copyright.sh: New file.
10021 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
10023 * configure.ac: Check for XML_StopParser.
10024 * xml-support.c (gdb_xml_body_text): Check for an error.
10025 (gdb_xml_start_element_wrapper): Conditionalize call to XML_StopParser.
10026 (gdb_xml_end_element_wrapper): Likewise.
10027 * config.in, configure: Regenerated.
10029 2007-01-08 Daniel Jacobowitz <dan@codesourcery.com>
10031 * varobj.c (install_new_value): Always update print_value.
10032 (value_get_print_value): Immediately return NULL for missing
10035 2007-01-08 Jim Blandy <jimb@codesourcery.com>
10037 * configure.ac: Tighten pattern for extracting value of
10038 DEPRECATED_TM_FILE from the target makefile fragment.
10039 * configure: Regenerated.
10041 2007-01-08 Daniel Jacobowitz <dan@codesourcery.com>
10043 * linux-nat.c (struct simple_pid_list): Add status.
10044 (add_to_pid_list): Record the PID's status.
10045 (linux_record_stopped_pid): Likewise. Make static.
10046 (pull_pid_from_list): Return the saved status.
10047 (linux_nat_handle_extended): Deleted.
10048 (linux_handle_extended_wait): Combine with linux_nat_handle_extended.
10049 Make static. Handle non-SIGSTOP for a new thread's first signal.
10050 (flush_callback): Handle unexpected pending signals.
10051 (linux_nat_wait): Update calls to changed functions.
10052 * linux-nat.h (linux_record_stopped_pid, linux_handle_extended_wait):
10053 Remove prototypes for newly static functions.
10055 2007-01-08 Ulrich Weigand <uweigand@de.ibm.com>
10057 * gdbarch.sh (value_from_register): New gdbarch function.
10058 * gdbarch.c, gdbarch.h: Regenerate.
10059 * findvar.c (default_value_from_register): New function.
10060 (value_from_register): Use gdbarch_value_from_register.
10061 * value.h (default_value_from_register): Declare.
10062 * spu-tdep.c (spu_convert_register_p, spu_register_to_value,
10063 spu_value_to_register): Remove.
10064 (spu_value_from_register): New function.
10065 (spu_gdbarch_init): Do not call set_gdbarch_convert_register_p,
10066 set_gdbarch_register_to_value, set_gdbarch_value_to_register.
10067 Call set_gdbarch_value_from_register.
10068 * s390-tdep.c (s390_convert_register_p, s390_register_to_value,
10069 s390_value_to_register): Remove.
10070 (s390_value_from_register): New function.
10071 (s390_gdbarch_init): Do not call set_gdbarch_convert_register_p,
10072 set_gdbarch_register_to_value, set_gdbarch_value_to_register.
10073 Call set_gdbarch_value_from_register.
10075 2007-01-08 Daniel Jacobowitz <dan@codesourcery.com>
10077 * NEWS: Add "set sysroot" and "show sysroot".
10078 * solib.c (solib_absolute_prefix): Delete. Replace
10079 all uses with gdb_sysroot.
10080 (_initialize_solib): Add "set sysroot" and "show sysroot".
10081 Make "solib-absolute-prefix" an alias to it.
10083 2007-01-08 Ulrich Weigand <uweigand@de.ibm.com>
10085 * frame.c (get_frame_register_bytes): New function.
10086 (put_frame_register_bytes): Likewise.
10087 * frame.h (get_frame_register_bytes): Declare.
10088 (put_frame_register_bytes): Likewise.
10089 * findvar.c (value_from_register): Always construct lval_register
10090 values. Use get_frame_register_bytes.
10091 * valops.c (value_assign): Use get_frame_register_bytes and
10092 put_frame_register_bytes.
10094 2007-01-08 Jim Blandy <jimb@codesourcery.com>
10096 * MAINTAINERS: Update Stan Shebs' email address.
10098 2007-01-07 Joel Brobecker <brobecker@adacore.com>
10100 * ada-lang.c (is_known_support_routine): Improve the implementation.
10102 2007-01-06 Joel Brobecker <brobecker@adacore.com>
10104 * ada-lang.c: Add include of source.h.
10105 (is_known_support_routine): Improve the check verifying that the file
10106 associated to this frame exists.
10107 * Makefile.in (ada-lang.o): Add dependency on source.h.
10109 2007-01-07 Jim Blandy <jimb@codesourcery.com>
10111 * ax-general.c (ax_const_l): Select proper opcode for the given
10114 2007-01-05 Vladimir Prus <vladimir@codesourcery.com>
10116 * varobj.c (c_value_of_root): Don't select frame if variable
10117 object is out of scope.
10119 2007-01-05 Nick Roberts <nickrob@snap.net.nz>
10121 * varobj.c (struct varobj): New member print_value.
10122 (install_new_value): Compare last printed value with current one
10123 instead of contents.
10124 (new_variable): Initialize var->print_value to NULL.
10125 (free_variable): Free var->print_value.
10126 (value_get_print_value): New function derived from
10127 c_value_of_variable.
10128 (c_value_of_variable): Use value_get_print_value.
10130 2007-01-05 Joel Brobecker <brobecker@adacore.com>
10132 * i386-tdep.c (i386_analyze_stack_align): Add comment.
10134 2007-01-05 Joel Brobecker <brobecker@adacore.com>
10136 * NEWS: Add entries for new catch commands.
10138 2007-01-05 Joel Brobecker <brobecker@adacore.com>
10140 * dwarf2read.c (partial_die_info): Add field has_byte_size.
10141 (add_partial_symbol): Correct identification of external references.
10142 (process_structure_scope): Likewise.
10143 (read_partial_die): Handle DW_AT_byte_size attribute.
10145 2007-01-05 Daniel Jacobowitz <dan@codesourcery.com>
10147 * xml-support.c (gdb_xml_end_element): Remove wrong backslashes.
10149 2007-01-05 Nick Roberts <nickrob@snap.net.nz>
10151 * varobj.c (get_type_deref): Fix variable objects for references to
10154 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
10156 * symtab.c (find_pc_sect_psymtab): Add comments. Handle psymtabs
10159 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
10161 * memory-map.c (struct_memory_map_parsing_data): Remove most
10162 members. Make property_name an array.
10163 (free_memory_map_parsing_data, memory_map_start_element)
10164 (memory_map_end_element, memory_map_character_data): Delete.
10165 (memory_map_start_memory, memory_map_end_memory)
10166 (memory_map_start_property, memory_map_end_property): New functions.
10167 (property_attributes, memory_children, memory_type_enum)
10168 (memory_attributes, memory_map_children, memory_map_elements): New.
10169 (parse_memory_map): Rewrite.
10170 * xml-support.c (debug_xml): New.
10171 (xml_get_required_attribute, xml_get_integer_attribute)
10172 (xml_get_enum_value, free_xml_parser, make_cleanup_free_xml_parser):
10174 (struct scope_level, struct gdb_xml_parser, gdb_xml_body_text)
10175 (gdb_xml_debug, gdb_xml_error, gdb_xml_values_cleanup)
10176 (gdb_xml_start_element, gdb_xml_start_element_wrapper)
10177 (gdb_xml_end_element, gdb_xml_end_element_wrapper, gdb_xml_cleanup)
10178 (gdb_xml_create_parser_and_cleanup, gdb_xml_parse)
10179 (gdb_xml_parse_ulongest, gdb_xml_parse_attr_ulongest)
10180 (gdb_xml_parse_attr_enum, show_debug_xml, _initialize_xml_support):
10182 * xml-support.h (struct gdb_xml_value, gdb_xml_attribute_handler)
10183 (enum gdb_xml_attribute_flag, struct gdb_xml_attribute)
10184 (enum gdb_xml_element_flag, struct gdb_xml_element)
10185 (gdb_xml_element_start_handler, gdb_xml_element_end_handler)
10186 (struct gdb_xml_enum): New.
10187 (gdb_xml_create_parser_and_cleanup, gdb_xml_parse, gdb_xml_debug)
10188 (gdb_xml_error, gdb_xml_parse_attr_ulongest)
10189 (gdb_xml_parse_attr_enum, gdb_xml_parse_ulongest): New prototypes.
10190 (xml_get_required_attribute, xml_get_integer_attribute)
10191 (xml_get_enum_value, make_cleanup_free_xml_parser): Delete prototypes.
10192 * Makefile.in (xml_support_h, xml-support.o): Update.
10194 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
10196 * Makefile.in (eval.o): Update dependencies.
10197 * eval.c: Include "ui-out.h" and "exceptions.h".
10198 (evaluate_subexp_standard): Use TRY_CATCH around value_of_variable.
10199 Use value_zero if an error occurs when avoiding side effects.
10200 * varobj.c (c_value_of_root): Initialize new_val.
10202 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
10204 * varobj.c (varobj_list_children): Stop if the number of children is
10206 (c_number_of_children):
10208 2007-01-04 Mark Kettenis <kettenis@gnu.org>
10210 * alpha-tdep.c (alpha_register_name): Use ARRAY_SIZE.
10211 (alpha_read_insn, alpha_skip_prologue, alpha_heuristic_proc_start)
10212 (alpha_heuristic_frame_unwind_cache, alpha_next_pc)
10213 (alpha_gdbarch_init): Use ALPHA_INSN_SIZE, ALPHA_REGISTER_SIZE and
10214 sizeof, instead of hardcoded constants.
10216 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
10218 * CONTRIBUTE: Use sourceware.org.
10220 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
10222 * buildsym.c (start_subfile): Handle producer.
10223 (record_producer): New function.
10224 * buildsym.h (struct subfile): Include producer.
10225 (record_producer): New prototype.
10226 * dwarf2-frame.c (struct dwarf2_cie): Add version and augmentation.
10227 (struct dwarf2_frame_state): Add armcc_cfa_offsets_sf and
10228 armcc_cfa_offsets_reversed.
10229 (execute_cfa_program): Handle armcc_cfa_offsets_sf.
10230 (dwarf2_frame_find_quirks): New function.
10231 (dwarf2_frame_cache): Call it. Handle armcc_cfa_offsets_reversed.
10232 (decode_frame_entry_1): Record the CIE version. Record the
10233 augmentation. Skip armcc augmentations.
10234 * dwarf2read.c (read_file_scope): Save the producer.
10235 * symtab.h (struct symtab): Rename unused version member to
10238 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
10240 * configure.ac (build_warnings): Use -Wall and
10241 -Wdeclaration-after-statement.
10242 * configure: Regenerated.
10244 2007-01-04 Vladimir Prus <vladimir@codesourcery.com>
10246 Simplify access to variours properties of child
10247 variable objects in C.
10248 * varobj.c (value_struct_element_index): New function.
10249 (c_describe_child): New function.
10250 (c_name_of_child, c_value_of_child)
10251 (c_type_of_child): Rewrite to use c_describe_child.
10253 2007-01-04 Vladimir Prus <vladimir@codesourcery.com>
10256 * varobj.c: Include "vec.h".
10257 (varobj_p): New typedef, declare vector of those.
10258 (struct varobj): Use vector for the 'children' member.
10259 (child_exists): Remove.
10260 (save_child_in_parent): Remove.
10261 (remove_child_from_parent): Remove.
10262 (struct varobj_child): Remove.
10263 (struct vstack): Remove.
10264 (vpush, vpop): Remove.
10265 (varobj_list_children): Adjust to work work vector.
10266 (varobj_update): Likewise. Use vectors for
10267 working stack and result.
10268 (delete_variable_1): Likewise.
10269 * Makefile.in (varobj.o): Update dependencies.
10271 2007-01-04 Vladimir Prus <vladimir@codesourcery.com>
10273 Port from Apple's version.
10275 * varobj.c (type_changeable): Rename to...
10276 (varobj_value_is_changeable_p): ...this. Adjust all callers.
10277 (is_root_p): New function. Use it everywhere.
10279 2007-01-04 Jim Blandy <jimb@codesourcery.com>
10281 * glibc-tdep.c (glibc_skip_solib_resolver): Look for '_dl_fixup',
10282 then plain 'fixup'.
10284 2007-01-04 Joel Brobecker <brobecker@adacore.com>
10286 * hpread.c (hpread_start_psymtab): Remove unnecessary extern.
10288 2007-01-04 Joel Brobecker <brobecker@adacore.com>
10290 * hpread.c (hpread_type_lookup): Fix compilation failure.
10292 2007-01-04 Qinwei <qinwei@sunnorth.com.cn>
10294 * NEWS: New port to S+core.
10295 * MAINTAINERS (Write After Approval, Responsible Maintainers):
10298 * Makefile.in: Add dependencies for S+core files.
10299 * configure.tgt (score*, score-*-*): Add S+core target.
10300 * config/score/embed.mt: New file.
10301 * score-tdep.c: New file.
10302 * score-tdep.h: New file.
10304 2007-01-04 Joel Brobecker <brobecker@adacore.com>
10306 * ada-lang.c (ada_evaluate_subexp) [OP_TYPE]: Return a value with
10307 the appropriate type rather than a bogus void type.
10309 2007-01-04 Joel Brobecker <brobecker@adacore.com>
10311 * ada-lang.h (ada_find_printable_frame): Remove.
10312 (ada_exception_catchpoint_p, ada_decode_exception_location)
10313 (ada_decode_assert_location): Add declaration.
10314 * ada-lang.c: Add include of annotate.h and valprint.h.
10315 (exception_catchpoint_kind): New enum.
10316 (function_name_from_pc, is_known_support_routine)
10317 (ada_find_printable_frame, ada_unhandled_exception_name_addr)
10318 (ada_exception_name_addr_1, ada_exception_name_addr)
10319 (print_it_exception, print_one_exception, print_mention_exception)
10320 (print_it_catch_exception, print_one_catch_exception)
10321 (print_mention_catch_exception, catch_exception_breakpoint_ops)
10322 (print_it_catch_exception_unhandled)
10323 (print_one_catch_exception_unhandled)
10324 (print_mention_catch_exception_unhandled, print_it_catch_assert)
10325 (print_one_catch_assert, print_mention_catch_assert)
10326 (ada_exception_catchpoint_p, error_breakpoint_runtime_sym_not_found)
10327 (ada_get_next_arg, catch_ada_exception_command_split)
10328 (ada_exception_sym_name, ada_exception_sym_name)
10329 (ada_exception_breakption_ops, ada_exception_catchpoint_cond_string)
10330 (ada_parse_catchpoint_condition, ada_exception_sal)
10331 (ada_decode_exception_location)
10332 (ada_decode_assert_location): New function.
10333 (catch_exception_unhandled_breakpoint_ops): New global variable.
10334 (catch_assert_breakpoint_ops): New global variable.
10335 * breakpoint.c: Add include of ada-lang.h.
10336 (print_one_breakpoint): Do not print the condition for Ada
10337 exception catchpoints.
10338 (create_ada_exception_breakpoint): New function.
10339 (catch_ada_exception_command, catch_assert_command): New function.
10340 (catch_command_1): Add support for the new "catch exception" and
10341 "catch assert" commands.
10342 (_initialize_breakpoint): Add help description for the new catch
10344 * Makefile.in (ada-lang.o): Add dependency on annotate.h and
10346 (breakpoint.o): Add dependency on ada-lang.h.
10348 2007-01-03 Pedro Alves <pedro_alves@portugalmail.pt>
10350 * coffread.c (cs_to_section): If bfd_section is found, always
10351 return its section index.
10352 (coff_symtab_read): Determine the minimal_symbol_type using the
10355 2007-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10356 Daniel Jacobowitz <dan@codesourcery.com>
10358 * Makefile.in (top.o): Update.
10359 * top.c (gdb_readline_wrapper_done, gdb_readline_wrapper_result)
10360 (saved_after_char_processing_hook, gdb_readline_wrapper_line)
10361 (struct gdb_readline_wrapper_cleanup, gdb_readline_wrapper_cleanup):
10363 (gdb_readline_wrapper): Rewrite to use asynchronous readline.
10365 2007-01-03 Mark Kettenis <kettenis@gnu.org>
10367 * arm-linux-tdep.c (arm_linux_extract_return_value): Remove.
10368 (arm_linux_init_abi): Don't set deprecated_extract_return_value.
10370 2007-01-03 Daniel Jacobowitz <dan@codesourcery.com>
10372 * ada-lang.c (find_struct_field): Initialize *byte_offset_p.
10373 * breakpoint.c (do_enable_breakpoint): Ignore both mem_cnt and i.
10374 * c-typeprint.c (c_type_print_varspec_suffix): Don't test length
10375 greater than or equal to zero.
10376 * m2-typeprint.c (m2_array): Likewise.
10377 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
10378 * gdbtypes.c (copy_type_recursive): Correct == typo.
10379 * i386-tdep.c (i386_skip_prologue): Remove stray semicolon.
10380 * linux-nat.c (linux_nat_info_proc_cmd): Don't compare a pointer
10382 * macroscope.c (sal_macro_scope): Don't name a local variable "main".
10383 (default_macro_scope): Remove unused variable.
10384 * prologue-value.h (pv_area_find_reg): Don't name an argument
10386 * remote-fileio.c (remote_fio_func_map): Add missing braces.
10387 * remote.c (sigint_remote_twice_token, sigint_remote_token): Change
10389 (cleanup_sigint_signal_handler): Remove casts.
10390 * valprint.c (val_print): Use a volatile local for the modified
10392 * varobj.c (languages): Remove extra array dimension.
10393 (varobj_create): Correct access to languages array.
10394 * mi/mi-cmd-break.c (mi_cmd_break_insert, mi_cmd_break_watch): Add
10396 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise.
10397 * mi/mi-cmd-env.c (mi_cmd_env_path, mi_cmd_env_dir): Likewise.
10398 * mi/mi-getopt.c (mi_valid_noargs): Likewise.
10399 * mi/mi-main.c (mi_cmd_data_read_memory): Likewise.
10400 (mi_cmd_data_write_memory): Likewise.
10401 * signals/signals.c (target_signal_to_string): Cast to int before
10403 * tui/tui-layout.c (init_and_make_win): Take and return a void *.
10404 Update all callers.
10406 2007-01-03 Daniel Jacobowitz <dan@codesourcery.com>
10408 * NEWS: Mention pointer to member improvements.
10409 * Makefile.in (gnu-v3-abi.o): Delete special rule.
10410 (eval.o, gnu-v3-abi.o, ia64-tdep.o): Update.
10411 * ada-valprint.c (ada_print_scalar): Update for new type codes.
10412 * c-typeprint.c (c_print_type): Update for new type codes.
10413 (c_type_print_varspec_prefix, c_type_print_varspec_suffix)
10414 (c_type_print_base): Likewise.
10415 (c_type_print_args): Rewrite.
10416 * c-valprint.c (c_val_print): Update for new type codes. Remove
10417 support for references to members. Treat methods like functions.
10418 * cp-abi.c (cplus_print_method_ptr, cplus_method_ptr_size)
10419 (cplus_make_method_ptr, cplus_method_ptr_to_value): New.
10420 * cp-abi.h (cplus_print_method_ptr, cplus_method_ptr_size)
10421 (cplus_make_method_ptr, cplus_method_ptr_to_value): New prototypes.
10422 (struct cp_abi_ops): Add corresponding members.
10423 * cp-valprint.c (cp_print_class_method): Delete.
10424 (cp_find_class_member): New function.
10425 (cp_print_class_member): Use it. Simplify support for bogus
10427 * dwarf2read.c (quirk_gcc_member_function_pointer): Use
10428 lookup_methodptr_type.
10429 (read_tag_ptr_to_member_type): Likewise, and lookup_memberptr_type.
10430 * eval.c (evaluate_subexp_standard): Implement EVAL_SKIP for
10431 OP_SCOPE. Update call to value_aggregate_elt. Rewrite member
10433 (evaluate_subexp_for_address): Handle OP_SCOPE explicitly. Handle
10434 references returned by user defined operators.
10435 * f-typeprint.c (f_print_type, f_type_print_varspec_prefix)
10436 (f_type_print_varspec_suffix): Remove support for member pointers.
10437 * gdbtypes.c (lookup_memberptr_type): Renamed from lookup_member_type
10439 (smash_to_memberptr_type): Likewise, from smash_to_member_type.
10440 (lookup_methodptr_type): New.
10441 (rank_one_type): Adjust for TYPE_CODE_MEMBERPTR.
10442 (recursive_dump_type): Update for new types.
10443 * gdbtypes.h (enum type_code): Replace TYPE_CODE_MEMBER with
10444 TYPE_CODE_MEMBERPTR and TYPE_CODE_METHODPTR.
10445 (lookup_memberptr_type, lookup_methodptr_type)
10446 (smash_to_memberptr_type): New prototypes.
10447 (smash_to_method_type): Formatting fix.
10448 (lookup_member_type, smash_to_member_type): Delete prototypes.
10449 * gnu-v3-abi.c (gnuv3_get_vtable, gnuv3_get_virtual_fn): New.
10450 Do not rely on debug information for the vptr or the method's
10451 enclosing type. Handle function descriptors for IA64.
10452 (gnuv3_virtual_fn_field): Rewrite using the new functions.
10453 (gnuv3_find_method_in, gnuv3_print_method_ptr)
10454 (gnuv3_method_ptr_size, gnuv3_make_method_ptr)
10455 (gnuv3_method_ptr_to_value): New.
10456 (init_gnuv3_ops): Set new members of gnu_v3_abi_ops.
10457 * hpread.c (hpread_type_lookup): Update for new types.
10458 * infcall.c (value_arg_coerce): Likewise.
10459 * m2-typeprint.c (m2_print_type): Remove explicit support
10460 for member pointers.
10461 * m2-valprint.c (m2_val_print): Likewise.
10462 * p-typeprint.c (pascal_type_print_varspec_prefix)
10463 (pascal_type_print_varspec_suffix, pascal_type_print_base): Likewise.
10464 * p-valprint.c (pascal_val_print): Likewise.
10465 (pascal_object_print_class_method, pascal_object_print_class_member):
10467 * p-lang.h (pascal_object_print_class_method)
10468 (pascal_object_print_class_member): Delete prototypes.
10469 * stabsread.c (read_type): Update for new types.
10470 * typeprint.c (print_type_scalar): Likewise.
10471 * valops.c (value_struct_elt_for_reference, value_namespace_elt)
10472 (value_maybe_namespace_elt, value_aggregate_elt): Add want_address
10473 argument. Construct a pointer to member if the address of a
10474 function or data member is requested.
10475 (value_cast_pointers): Don't modify the input value.
10476 (value_cast): Adjust pointer to member handling for new types.
10477 Allow null pointer to member constants. Don't modify the input
10479 (value_ind): Remove pointer to member check. Handle function
10480 descriptors for function pointers.
10481 (value_struct_elt, value_find_oload_method_list, check_field):
10482 Remove pointer to member checks.
10483 * value.c (unpack_long): Allow pointers to data members.
10484 (value_from_longest): Allow member pointers.
10485 * value.h (value_aggregate_elt): Add want_address.
10486 * varobj.c (c_variable_editable): Remove check for members.
10487 * gdbarch.sh: Add vtable_function_descriptors and vbit_in_delta.
10488 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Handle descriptors
10490 (ia64_gdbarch_init): Call set_gdbarch_vtable_function_descriptors.
10491 * c-lang.h (cp_print_class_method): Delete prototype.
10492 * arm-tdep.c (arm_gdbarch_init): Call set_gdbarch_vbit_in_delta.
10493 * mips-tdep.c (mips_gdbarch_init): Likewise.
10494 * gdbarch.c, gdbarch.h: Regenerated.
10496 2007-01-01 Mark Kettenis <kettenis@gnu.org>
10498 * rs6000-tdep.c (rs6000_use_struct_convention)
10499 (rs6000_extract_return_value, rs6000_store_return_value)
10500 (rs6000_extract_struct_value_address): Remove.
10501 (rs6000_return_value): New function.
10502 (rs6000_gdbarch_init): Don't set deprecated_extract_return_value,
10503 store_return_value, deprecated_extract_struct_value_address and
10504 deprecated_use_struct_convention. Use rs6000_return_value
10507 2007-01-02 Nick Roberts <nickrob@snap.net.nz>
10509 * mi/mi-cmds.c (mi_cmds): Remove entries for -display-delete,
10510 -display-disable, -display-enable, -display-insert and
10513 2007-01-01 Joel Brobecker <brobecker@adacore.com>
10515 * breakpoint.c (remove_breakpoint): Remove dead code.
10517 2007-01-01 Nick Roberts <nickrob@snap.net.nz>
10519 * varobj.c: Include block.h.
10520 (c_value_of_root): Check scope within nested statements.
10522 2007-01-01 Mark Kettenis <kettenis@gnu.org>
10524 * mi/mi-main.c (mi_cmd_data_write_register_values): Use
10525 regcache_cooked_write_signed instead of
10526 deprecated_write_register_bytes.
10528 2007-01-01 Joel Brobecker <brobecker@adacore.com>
10530 * config/djgpp/fnchange.lst: Add entry for ChangeLog-2006.
10532 2007-01-01 Joel Brobecker <brobecker@adacore.com>
10534 Followed the Start of New Year Procedure:
10535 * ChangeLog-2006: New file, containing all the entries for 2006.
10536 * ChangeLog: Removed all 2006 entries, and changed the reference
10537 to the previous ChangeLog to point to ChangeLog 2006.
10538 * top.c (print_gdb_version): Update copyright year.
10540 2007-01-01 Mark Kettenis <kettenis@gnu.org>
10542 * Makefile.in (remote-sds.o): Remove.
10543 * remote-sds.c: Delete.
10545 For older changes see ChangeLog-2006.
10551 version-control: never