1 2007-12-24 Joel Brobecker <brobecker@adacore.com>
3 * ada-lang.c (ada_is_character_type): Add recognition of type
6 2007-12-24 Joel Brobecker <brobecker@adacore.com>
8 * dwarf2read.c (read_base_type): Set code to TYPE_CODE_CHAR
9 for char and unsigned char types of Ada compilation units.
10 * ada-lang.c (ada_is_character_type): Always return true if
11 the type code is TYPE_CODE_CHAR.
13 2007-12-23 Joel Brobecker <brobecker@adacore.com>
15 * infrun.c (handle_inferior_event): Remove code that made us
16 stop when stepping into the last line of the current function.
18 2007-12-22 Pierre Muller <muller@ics.u-strasbg.fr>
20 * win32-nat.c: Fix PR gdb/2388.
21 (do_win32_fetch_inferior_registers): Do not overwrite debug register
22 array dr if debug_registers_changed variable is set.
24 2007-12-22 Jan Kratochvil <jan.kratochvil@redhat.com>
26 * dwarf2read.c (scan_partial_symbols partial_die_parent_scope)
27 (add_partial_symbol, pdi_needs_namespace, process_die)
28 (is_type_tag_for_partial, load_partial_dies, new_symbol)
29 (read_type_die, determine_prefix): Extend the current code of
30 `DW_TAG_class_type' also for `DW_TAG_interface_type'.
32 2007-12-21 Paul N. Hilfinger <hilfinger@adacore.com>
34 * ada-lang.h (ada_renaming_category): New enumerated type.
35 (ada_lookup_encoded_symbol): Declare.
36 (ada_parse_renaming): Declare.
37 (ada_renaming_type,ada_is_object_renaming)
38 (ada_simple_renamed_entity): Delete declarations.
39 * ada-lang.c (ada_parse_renaming): New function to concentrate
40 extraction of information from renaming symbols.
41 (parse_old_style_renaming): New function to concentrate
42 extraction of old-style (purely type-based) renaming information.
43 (renaming_is_visible): Rename to...
44 (old_renaming_is_invisible): Rename and change sense of
46 (remove_out_of_scope_renamings): Rename to...
47 (remove_irrelevant_renamings): Renames remove_out_of_scope_renamings
48 and augments with additional logic to handle cases where the same
49 object renaming is encoded both as a reference variable and an
51 (ada_renaming_type,ada_is_object_renaming)
52 (ada_simple_renamed_entity): Delete definitions.
53 (ada_lookup_encoded_symbol): New function factored out of
55 (ada_lookup_symbol): Reimplement to call ada_lookup_encoded_symbol.
56 (wild_match): Don't reject perfect match of prefix.
57 (ada_find_renaming_symbol): Factor old-style renaming logic into
58 find_old_style_renaming_symbol.
59 (find_old_style_renaming_symbol): New name for content of old
60 ada_find_renaming_symbol.
61 (ada_prefer_type): Reimplement not to use ada_renaming_type.
62 * ada-exp.y (write_object_renaming): Change interface. Reimplement
63 to use new arguments and ada_parse_renaming.
64 Correct blocks used to find array index.
65 (write_var_or_type): Reimplement to use ada_parse_renaming.
67 2007-12-21 Denis Pilat <denis.pilat@st.com>
69 * tui/tui-data.h (MAX_LOCATOR_ELEMENT_LEN): Defined to a bigger
70 value or to PATH_MAX when possible.
72 2007-12-20 Joel Brobecker <brobecker@adacore.com>
74 * rs6000-tdep.h: Remove defs.h #include.
75 * Makefile.in (rs6000_tdep_h): Update dependencies.
77 2007-12-20 Thiago Jung Bauermann <bauerman@br.ibm.com>
79 * gdbtypes.c (gdbtypes_post_init): Change names of decimal float types
80 to conform to C extension for decimal float.
81 * c-lang.c (enum c_primitive_types): Add entries for Decimal Floating
83 (enum cplus_primitive_types): Likewise.
84 (c_language_arch_info): Add Decimal Floating Point builtin types to
85 the primitive_type_vector.
86 (cplus_language_arch_info): Likewise.
88 2007-12-20 David Ung <davidu@mips.com>
89 Maciej W. Rozycki <macro@mips.com>
91 * mips-tdep.c (mips_n32n64_push_dummy_call): Sign-extend
92 integers and 32-bit pointers as required by the ABI.
94 2007-12-20 Joel Brobecker <brobecker@adacore.com>
96 * symtab.h: Remove "defs.h" #include.
97 * Makefile.in (symtab_h): Update dependencies.
99 2007-12-19 Joel Brobecker <brobecker@adacore.com>
101 * symtab.h: #include "defs.h".
102 (enum language): Remove opaque declaration.
103 * Makefile.in (symtab_h): Update dependencies.
105 2007-12-19 Joel Brobecker <brobecker@adacore.com>
107 * language.h (enum exp_opcode): Remove commented out forward
109 (op_error): Delete declaration.
111 2007-12-19 Joel Brobecker <brobecker@adacore.com>
113 * infrun.c (handle_inferior_event): Fix spelling in comment.
115 2007-12-18 Daniel Jacobowitz <dan@codesourcery.com>
117 * minsyms.c (lookup_minimal_symbol): Also check the separate
119 (lookup_minimal_symbol_text): Likewise.
120 (lookup_minimal_symbol_solib_trampoline): Likewise.
121 * symtab.c (lookup_global_symbol_from_objfile): Likewise.
123 2007-12-18 Vladimir Prus <vladimir@codesourcery.com>
125 * mi/mi-main.c (mi_cmd_list_features): Announce
126 the 'pending-breakpoints' feature.
128 2007-12-17 Jim Blandy <jimb@codesourcery.com>
130 * dwarf2read.c (dwarf2_add_field): Correctly scale all byte
131 offsets obtained from DW_AT_data_member_location before recording
132 them in FIELD_BITPOS (*fp).
134 * dwarf2read.c (attr_form_is_section_offset): Doc fixes.
136 2007-12-17 Nigel Stephens <nigel@mips.com>
137 Maciej W. Rozycki <macro@mips.com>
139 * utils.c (string_to_core_addr): If the executable format
140 indicates that addresses should be sign-extended and there are
141 only 8 hex digits in the address, then do so.
142 * Makefile.in (utils.o): Depend on $(gdbcore_h).
144 2007-12-17 Chris Dearman <chris@mips.com>
146 * symfile.c (init_filename_language_table): Recognise .sx as
149 2007-12-17 Joel Brobecker <brobecker@adacore.com>
151 * language.h (enum exp_opcode): Comment out this declaration,
152 undoing the previous change.
154 2007-12-17 Luis Machado <luisgpm@br.ibm.com>
156 * breakpoint.c: (watch_command_1): Parse additional optional
157 "thread" parameter to the watchpoint command and set the
158 "thread" member of the breakpoint struct.
160 2007-12-17 Luis Machado <luisgpm@br.ibm.com>
162 * breakpoint.c (bpstat_stop_status): Check an additional
163 condition before evaluating an expression value.
165 2007-12-17 Joel Brobecker <brobecker@adacore.com>
167 * language.h (enum exp_opcode): Add forward declaration.
168 (language_string_char_type, language_lookup_primitive_type_by_name):
169 Move declaration past declaration of language_defn.
171 2007-12-16 Daniel Jacobowitz <dan@codesourcery.com>
172 Joseph Myers <joseph@codesourcery.com>
174 * configure.ac: Check for *-*-solaris2.1[[0-9]]* instead of
175 *-*-solaris2.1[[0-9]].
176 * configure: Regenerate.
177 * procfs.c (proc_set_current_signal): If redelivering a signal,
178 reuse the current siginfo if possible.
180 2007-12-16 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
182 * f-typeprint.c (print_equivalent_f77_float_type): Remove function.
183 (f_type_print_base): Output the type names directly for real and
186 2007-12-16 Vladimir Prus <vladimir@codesourcery.com>
188 * breakpoint.c (bpstat_have_active_hw_watchpoints):
190 (bpstat_stop_status): Remove unused variable
192 * breakpoint.h (bpstat_have_active_hw_watchpoints):
195 2007-12-16 Vladimir Prus <vladimir@codesourcery.com>
197 * target.h (target_pid_or_tid_to_str): Remove.
198 * infrun.c (handle_inferior_event):
199 Use target_pid_to_str instead of
200 target_pid_or_tid_to_str.
201 (normal_stop): Likewise.
203 2007-12-16 Jan Kratochvil <jan.kratochvil@redhat.com>
205 * dwarf2read.c (dwarf_attr_name): Rename `DW_AT_stride_size' to its
206 DWARF3 equivalent `DW_AT_bit_stride'.
207 Rename `DW_AT_stride' to its DWARF3 equivalent `DW_AT_byte_stride'.
209 2007-12-16 Joel Brobecker <brobecker@adacore.com>
211 * mi/mi-main.c: Remove code that was commented out in 1999.
213 2007-12-16 Joel Brobecker <brobecker@adacore.com>
215 * expression.h (parse_expression_in_context): Delete prototype.
216 * parse.c (parse_expression_in_context): Delete.
218 2007-12-14 Vladimir Prus <vladimir@codesourcery.com>
220 Add support for pending breakpoints in MI.
221 * gdb.h (gdb_breakpoint): Add parameter pending.
222 * breakpoint.c (gdb_breakpoint): Add parameter pending.
223 * mi/mi-cmd-break.c (mi_break_insert): Change
224 comment to refer to manual. Add support for
225 the -f flag, for pending breakpoint.
227 2007-12-14 Vladimir Prus <vladimir@codesourcery.com>
229 * breakpoint.c (break_command_really): New, copied
230 from break_command_1. New parameters COND_STRING, THREAD
231 PARSE_CONDITITION_AND_THREAD and PENDING_BREAK_SUPPORT.
232 The previous FLAG parameter split into TEMPFLAG and
234 When PARSE_CONDITION_AND_THREAD is not set, duplicate
235 the passed condition string.
236 (struct captured_breakpoint_args): Remove
237 (do_captured_breakpoint): Remove.
238 (break_command_1): Relay to break_command_really.
239 (gdb_breakpoint): Relay to break_command_really.
241 2007-12-13 Michael Snyder <msnyder@specifix.com>
243 * mips-linux-tdep.c (mips64_fill_gregset): Remove unused variable.
245 2007-12-13 Jim Blandy <jimb@codesourcery.com>
247 * dwarf2read.c (attr_form_is_constant): New function.
248 (dwarf2_add_field): Use it and attr_form_is_section_offset to
249 recognize DW_AT_data_member_location attributes. Use
250 dwarf2_get_attr_constant_value when the attribute is a constant.
252 * dwarf2read.c (attr_form_is_section_offset): New function.
253 (dwarf_add_member_fn, read_common_block, read_partial_die)
254 (dwarf2_symbol_mark_computed): Use it, instead of writing it out.
256 2007-12-12 Jim Blandy <jimb@codesourcery.com>
258 Remove unused support for target-based exception catching.
259 * target.h (struct target_ops): Delete
260 to_enable_exception_callback and to_get_current_exception_event
262 (target_enable_exception_callback)
263 (target_get_current_exception_event): Delete macros.
264 * target.c (update_current_target): Remove code to inherit and
265 default those members.
266 (debug_to_enable_exception_callback)
267 (debug_to_get_current_exception_event): Delete functions.
268 (setup_target_debug): Don't install those methods.
269 * inf-child.c (inf_child_enable_exception_callback)
270 (inf_child_get_current_exception_event): Delete dummy functions.
271 (inf_child_target): Don't install them in the target vector.
272 * breakpoint.h (enum bptype): Delete bp_catch_catch,
274 * breakpoint.c (cover_target_enable_exception_callback)
275 (ep_is_exception_catchpoint, create_exception_catchpoint): Delete
277 (insert_bp_location, update_breakpoints_after_exec)
278 (remove_breakpoint, ep_is_catchpoint, print_it_typical)
279 (bpstat_stop_status, bpstat_what)
280 (bpstat_get_triggered_catchpoints, print_one_breakpoint_location)
281 (user_settable_breakpoint, allocate_bp_location)
282 (disable_watchpoints_before_interactive_call_start)
283 (enable_watchpoints_after_interactive_call_stop, mention)
284 (delete_breakpoint, breakpoint_re_set_one, disable_command)
285 (enable_command): Remove exception catchpoint cases.
286 (catch_exception_command_1): Don't try target-based exception
288 * stack.c (catch_info): Call print_frame_label_vars
291 2007-12-12 Nigel Stephens <nigel@mips.com>
292 Maciej W. Rozycki <macro@mips.com>
294 * remote-mips.c (mips_load): Use regcache_set_valid_p() instead
295 of setting deprecated_register_valid array directly.
297 2007-12-07 Maciej W. Rozycki <macro@mips.com>
299 * mips-tdep.c (extended_offset): Fix a comment.
301 2007-12-07 Maciej W. Rozycki <macro@mips.com>
303 * target.c (update_current_target): Inherit to_log_command.
304 * target.h (struct target_ops). Add to_log_command.
305 (target_log_command): New macro.
306 * top.c (execute_command): Call target_log_command() rather than
307 serial_log_command().
308 * monitor.c (init_base_monitor_ops): Initialize to_log_command.
309 * remote-m32r-sdi.c (init_m32r_ops): Likewise.
310 * remote-mips.c (_initialize_remote_mips): Likewise.
311 * remote.c (init_remote_ops): Likewise.
313 2007-12-06 Daniel Jacobowitz <dan@codesourcery.com>
315 * infrun.c (init_wait_for_inferior): Reset target_last_wait_ptid.
316 (handle_inferior_event): Clear stop_stack_dummy earlier.
318 2007-12-06 Jim Blandy <jimb@codesourcery.com>
320 * addrmap.c (addrmap_splay_tree_remove): New function.
321 (addrmap_mutable_set_empty): Use it.
323 * addrmap.c, addrmap.h: Update to GPLv3.
325 * addrmap.c (struct addrmap): Make the referenced function table
327 (addrmap_fixed_funcs, addrmap_mutable_funcs): Declare const.
328 Don't use designated initializers.
330 * addrmap.c (addrmap_fixed_create_fixed, addrmap_mutable_find)
331 (addrmap_mutable_relocate): Use internal_error, not abort.
333 * NEWS: Mention support for non-contiguous lexical blocks and
336 2007-12-06 Markus Deuling <deuling@de.ibm.com>
338 * gdbarch.sh (stab_reg_to_regnum, dwarf_reg_to_regnum)
339 ( dwarf2_reg_to_regnum, sdb_reg_to_regnum, ecoff_reg_to_regnum): Add
340 gdbarch as parameter.
341 * gdbarch.{c,h}: Regenerate.
343 * xtensa-tdep.c (xtensa_reg_to_regnum): Add gdbarch as parameter.
344 Replace current_gdbarch by gdbarch.
345 * s390-tdep.c (s390_dwarf_reg_to_regnum): Likewise.
346 * rs6000-tdep.c (rs6000_stab_reg_to_regnum)
347 (rs6000_dwarf2_reg_to_regnum): Likewise.
348 * mips-tdep.c (mips_stab_reg_to_regnum)
349 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Likewise.
350 * mep-tdep.c (mep_debug_reg_to_regnum): Likewise.
351 * m32c-tdep.c (m32c_debug_info_reg_to_regnum): Likewise.
352 * i386-tdep.c (i386_dbx_reg_to_regnum)
353 (i386_svr4_reg_to_regnum): Likewise
354 * h8300-tdep.c (h8300s_dbg_reg_to_regnum)
355 (h8300_dbg_reg_to_regnum): Likewise.
356 * amd64-tdep.c (amd64_dwarf_reg_to_regnum): Likewise.
357 * arch-utils.c (no_op_reg_to_regnum): Likewise.
358 * arch-utils.h (no_op_reg_to_regnum): Likewise.
359 * arm-tdep.c (arm_dwarf_reg_to_regnum): Likewise.
360 * cris-tdep.c (cris_dwarf2_reg_to_regnum): Likewise.
361 * hppa-tdep.c (hppa64_dwarf_reg_to_regnum): Likewise.
362 * ia64-tdep.c (ia64_dwarf_reg_to_regnum): Likewise.
363 * m68k-tdep.c (m68k_dwarf_reg_to_regnum): Likewise.
365 2007-12-06 Vladimir Prus <vladimir@codesourcery.com>
367 Localize infrun use of remove_breakpoints.
368 * infrun.c (handle_inferior_event): Remove
369 calls to remove_breakpoints, except where needed to
370 communicate change of breakpoint locations to inferior.
371 (keep_going): If steppping over breakpoint, remove
374 2007-12-06 Vladimir Prus <vladimir@codesourcery.com>
376 Clarify infrun variable naming.
377 * infrun.c (trap_expected): Rename
378 to stepping_over_breakpoint. Document.
379 (stepping_past_breakpoint): Remove.
380 (stepping_past_breakpoint_ptdi): Renamed
381 to deferred_step_ptid.
382 (struct execution_control_state): Rename
383 the another_trap field to stepping_over_breakpoint.
384 (struct inferior_status): Rename the trap_expected
385 field to stepping_over_breakpoint.
386 (clear_proceed_status, proceed)
387 (init_execution_control_state, context_switch)
388 (handle_inferior_event, currently_stepping)
389 (keep_going, save_inferior_status)
390 (restore_inferior_status, prepare_to_proceed): Adjust.
391 * gdbthread.h (struct thread_info): Rename the
392 trap_expected field to stepping_over_breakpoint.
393 * thread.c (load_infrun_state, save_infrun_state):
396 2007-12-06 Pierre Muller <muller@ics.u-strasbg.fr>
398 * win32-nat.c: Allow compilation if CORE_ADDR is 8 byte long.
399 Add "gdb_stdint.h" dependency required for uintptr_t type use.
400 (handle_output_debug_string): Use uintptr_t typecast.
401 (handle_exception): Ditto.
402 (win32_xfer_memory): Ditto.
403 * Makefile.in (win32-nat.o): Add dependency to gdb_stdint header.
405 2007-12-04 Jim Blandy <jimb@codesourcery.com>
407 Support lexical blocks and function bodies that occupy
408 non-contiguous address ranges.
409 * addrmap.c, addrmap.h: New files.
410 * block.h (struct addrmap): New forward declaration.
411 (struct blockvector): New member, 'map'.
412 (BLOCKVECTOR_MAP): New accessor macro.
413 * block.c: #include "addrmap.h"
414 (blockvector_for_pc_sect): If the blockvector we've found has
415 an address map, use it instead of searching the blocks.
416 * buildsym.c: #include "addrmap.h"
417 (pending_addrmap_obstack, pending_addrmap_interesting): New static
419 (really_free_pendings): If we have a pending addrmap, free it too.
420 (record_block_range): New function.
421 (make_blockvector): If we have an interesting pending addrmap,
422 record it in the new blockvector.
423 (start_symtab, buildsym_init): Assert that there is no pending
424 addrmap now; we should have cleaned up any addrmaps we'd built
426 (end_symtab): If there is a pending addrmap left over that didn't
427 get included in the blockvector, free it.
428 * buildsym.h (struct addrmap): New forward declaration.
429 (record_block_range): New prototype.
430 * objfiles.c: #include "addrmap.h".
431 (objfile_relocate): Relocate the blockvector's address map, if
433 * dwarf2read.c (dwarf2_record_block_ranges): New function.
434 (read_func_scope, read_lexical_block_scope): Call it.
435 * Makefile.in (SFILES): Add addrmap.c.
436 (addrmap_h): New header dependency variable.
437 (COMMON_OBS): Add addrmap.o.
438 (addrmap.o): New rule.l
439 (block.o, objfiles.o, buildsym.o): Depend on $(addrmap_h).
441 * block.c (blockvector_for_pc, blockvector_for_pc_sect): Return a
442 pointer to the block, not its index in the blockvector.
443 (block_for_pc_sect): Use the returned block, instead of looking it
445 * block.h (blockvector_for_pc, blockvector_for_pc_sect): Update
447 * breakpoint.c (resolve_sal_pc): Use returned block, instead of
448 looking it up ourselves.
449 * stack.c (print_frame_label_vars): Disable function, which
450 depends on the block's index.
452 * buildsym.c (finish_block): Return the block we've built.
453 * buildsym.h (finish_block): Update prototype.
455 * defs.h (CORE_ADDR_MAX): New constant.
457 2007-12-04 Ulrich Weigand <uweigand@de.ibm.com>
459 * coffread.c (decode_type): Use builtin_type_int32 instead
460 of FT_INTEGER fundamental type for array range index type.
461 (decode_base_type): Use builtin types of current_gdbarch
462 instead of fundamental types.
464 * dwarf2read.c (struct dwarf2_cu): Remove ftypes member.
465 (read_file_scope): Do not initialize ftypes member.
466 (dwarf_base_type, dwarf2_fundamental_types): Remove functions.
467 (read_array_type): Use builtin_type_int32 instead of FT_INTEGER
468 fundamental type for array range index type.
469 (read_tag_string_type): Likewise for string range index type.
470 Also, do not overwrite FT_CHAR type with new string type.
471 (read_base_type): If DW_AT_name is missing, create unnamed type
472 with given properties instead of looking for a fundamental type.
473 Create new types as TYPE_TARGET_TYPE for DW_ATE_address and
474 DW_ATE_complex_float types.
475 (read_subrange_type): Create new type to represent missing
476 DW_AT_type instead of looking for a fundamental type.
477 (die_type): Use builtin type to represent "void" instead of
478 looking for a fundamental type.
480 * stabsread.c (define_symbol): Use builtin types to represent
481 'r' and 'i' floating-point and integer constants.
483 * gdbtypes.c (lookup_fundamental_type): Remove.
484 * gdbtypes.h (lookup_fundamental_type): Remove prototype.
485 (FT_VOID, FT_BOOLEAN, FT_CHAR, FT_SIGNED_CHAR, FT_UNSIGNED_CHAR,
486 FT_SHORT, FT_SIGNED_SHORT, FT_UNSIGNED_SHORT, FT_INTEGER,
487 FT_SIGNED_INTEGER, FT_UNSIGNED_INTEGER, FT_LONG, FT_SIGNED_LONG,
488 FT_UNSIGNED_LONG, FT_LONG_LONG, FT_SIGNED_LONG_LONG,
489 FT_UNSIGNED_LONG_LONG, FT_FLOAT, FT_DBL_PREC_FLOAT, FT_EXT_PREC_FLOAT,
490 FT_COMPLEX, FT_DBL_PREC_COMPLEX, FT_EXT_PREC_COMPLEX, FT_STRING,
491 FT_FIXED_DECIMAL, FT_FLOAT_DECIMAL, FT_BYTE, FT_UNSIGNED_BYTE,
492 FT_TEMPLATE_ARG, FT_DECFLOAT, FT_DBL_PREC_DECFLOAT,
493 FT_EXT_PREC_DECFLOAT, FT_NUM_MEMBERS): Remove macros.
494 * objfiles.c (struct objfile): Remove fundamental_types member.
495 * symfile.c (reread_symbols): Do not clear fundamental_types.
497 * language.h (struct language_defn): Remove la_fund_type member.
498 (create_fundamental_type): Remove.
499 * language.c (unk_lang_create_fundamental_type): Remove.
500 (unknown_language_defn, auto_language_defn,
501 local_language_defn): Adapt initializer.
502 * ada-lang.c (ada_create_fundamental_type): Remove.
503 (ada_language_defn): Adapt initializer.
504 * c-lang.h (c_create_fundamental_type): Remove prototype.
505 * c-lang.c (c_create_fundamental_type): Remove.
506 (c_language_defn, cplus_language_defn, asm_language_defn,
507 minimal_language_defn): Adapt initializer.
508 * f-lang.c (f_create_fundamental_type): Remove.
509 (f_language_defn): Adapt initializer.
510 * jv-lang.c (java_create_fundamental_type): Remove.
511 (java_language_defn): Adapt initializer.
512 * m2-lang.c (m2_create_fundamental_type): Remove.
513 (m2_language_defn): Adapt initializer.
514 * objc-lang.c (objc_create_fundamental_type): Remove.
515 (objc_language_defn): Adapt initializer.
516 * p-lang.h (pascal_create_fundamental_type): Remove prototype.
517 * p-lang.c (pascal_create_fundamental_type): Remove.
518 (pascal_language_defn): Adapt initializer.
519 * scm-lang.c (scm_language_defn): Adapt initializer.
521 2007-12-04 Maciej W. Rozycki <macro@mips.com>
523 * features/mips-cpu.xml: Specify "regnum" for "r0" explicitly.
524 * features/mips64-cpu.xml: Likewise.
525 * features/mips-fpu.xml: Specify "regnum" for "f0" explicitly.
526 * features/mips64-fpu.xml: Likewise.
527 * features/mips-linux.c: Regenerate.
528 * features/mips64-linux.c: Regenerate.
530 2007-12-04 Maciej W. Rozycki <macro@mips.com>
532 * target.h (target_find_new_threads): Fix definition.
534 2007-12-02 Pierre Muller <muller@ics.u-strasbg.fr>
536 * win32-nat.c (win32_resume): Set the trace bit
537 in the thread identified by inferior_ptid.
540 2007-12-02 Pierre Muller <muller@ics.u-strasbg.fr>
542 * win32-nat.c (open_process_used): New static variable.
543 (win32_init_thread_list): Remove call to CloseHandle for thread.
544 (win32_delete_thread): Ditto.
545 (fake_create_process): Set open_process_used if OpenProcess call is
547 (get_win32_debug_event): Do not close process handle.
548 (do_initial_win32_stuff): Set open_process_used to zero.
549 (win32_mourn_inferior): Call CloseHandle for current_process_handle if
550 open_process_used is set.
551 (win32_kill_inferior): Do not close process and main_thread handles.
553 2007-11-30 Daniel Jacobowitz <dan@codesourcery.com>
555 * remote.c (remote_cmdlist): New variable.
556 (PACKET_vFile_open, PACKET_vFile_pread, PACKET_vFile_pwrite)
557 (PACKET_vFile_close, PACKET_vFile_unlink): New constants.
558 (remote_buffer_add_string, remote_buffer_add_bytes)
559 (remote_buffer_add_int, remote_hostio_parse_result)
560 (remote_hostio_send_command, remote_hostio_open, remote_hostio_pwrite)
561 (remote_hostio_pread, remote_hostio_close, remote_hostio_unlink)
562 (remote_fileio_errno_to_host, remote_hostio_error, fclose_cleanup)
563 (remote_hostio_close_cleanup, remote_file_put, remote_file_get)
564 (remote_file_delete, remote_put_command, remote_get_command)
565 (remote_delete_command, remote_command): New functions.
566 (_initialize_remote): Register new packets and commands.
567 * Makefile.in (gdb_fileio_h): New variable.
569 (SUBDIR_MI_OBS): Add mi-cmd-target.o.
570 (SUBDIR_MI_SRCS): Add mi/mi-cmd-target.c.
571 (mi-cmd-target.o): New rule.
572 * mi/mi-cmd-target.c: New file.
573 * mi/mi-cmds.c (mi_cmds): Add target-file-delete, target-file-get,
575 * mi/mi-cmds.h (mi_cmd_target_file_get, mi_cmd_target_file_put)
576 (mi_cmd_target_file_delete): Declare.
577 * remote.h (remote_file_put, remote_file_get, remote_file_delete):
579 * NEWS: Describe new file transfer support.
581 2007-11-30 Vladimir Prus <vladimir@codesourcery.com>
583 * infrun.c (handle_inferior_event): Don't
584 ignore beakpoints if trap_expected is set.
586 2007-11-30 Vladimir Prus <vladimir@codesourcery.com>
588 Make insert_breakpoints return void.
589 * breakpoint.h (insert_breakpoints): Change
591 * breakpoint.c (insert_breakpoints): Change
592 return type to void. Rename local return_val
594 * infrun.c (keep_going): Instead of checking
595 return value from insert_breakpoints, catch exception.
597 2007-11-29 Vladimir Prus <vladimir@codesourcery.com>
599 Stop infrun from tracking breakpoint insertion status.
601 The checks of breakpoints_inserted before calling
602 remove_breakpoints are removed, as remove_breakpoint
603 won't touch uninserted breakpoints. In a number of places,
604 we're interested if a breakpoint is inserted at particular
605 PC, and we now use breakpoint_inserted_here_p. In a few
606 places, insert_breakpoints can be called unconditionally,
607 since it won't try to insert already inserted breakpoint.
609 * breakpoint.h (regular_breakpoint_inserted_here_p): New
611 * breakpoint.c (regular_breakpoint_inserted_here_p): New.
612 (breakpoint_inserted_here_p): Use
613 regular_breakpoint_inserted_here_p.
614 * infrun.c (breakpoints_inserted): Remove.
615 (resume): Don't check for breakpoints_inserted before
616 remove_hw_watchpoints. Use breakpoint_inserted_here_p.
617 (proceed, init_wait_for_inferior): Don't set breakpoints_inserted.
618 (handle_inferior_event): Don't use breakpoints_inserted.
619 Use breakpoints_meant_to_be_inserted and
620 breakpoints_inserted_here_p.
621 (insert_step_resume_breakpoint_at_sal, keep_going): Use
622 breakpoints_meant_to_be_inserted. Don't set breakpoints_inserted.
623 (normal_stop): Don't check for breakpoints_inserted. Don't
624 set breakpoints_inserted.
625 (keep_going): Don't check for breakpoints_inserted.
626 (insert_step_resume_breakpoint_at_sal): Don't insert
629 2007-11-28 Jim Blandy <jimb@codesourcery.com>
631 * breakpoint.c (watch_command_1): When the watchpoint isn't local
632 to any frame, initialize watchpoint_frame using null_frame_id, not
635 2007-11-28 Vladimir Prus <vladimir@codesourcery.com>
637 * infrun.c (resume): Set right thread even if
638 stepping over breakpoint using software single step.
640 2007-11-28 Nick Roberts <nickrob@snap.net.nz>
642 * mi/mi-cmd-var.c (print_varobj): Revert change from 2007-08-31.
643 (mi_print_value_p): Guard against type = NULL.
645 2007-11-27 Thiago Jung Bauermann <bauerman@br.ibm.com>
647 * dfp.c (decimal_from_string): Remove superfluous newline from
649 (decimal_to_string): Likewise.
650 * printcmd.c (printf_command): Change string buffer to use
651 MAX_DECIMAL_STRING constant.
652 * value.c (value_from_decfloat): Likewise.
654 2007-11-27 Ulrich Weigand <uweigand@de.ibm.com>
656 * Makefile.in (ALL_TARGET_OBS): Remove object files that require
657 64-bit CORE_ADDR and BFD support, move them to ...
658 (ALL_64_TARGET_OBS): ... this new variable.
659 * configure.ac: Check for --enable-64-bit-bfd option. Only add
660 64-bit targets with --enable-targets=all if BFD supports 64-bit.
661 * configure: Regenerate.
663 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Do not claim
664 all elf32-i386 executables, only cygwin core files.
666 2007-11-25 Jan Kratochvil <jan.kratochvil@redhat.com>
668 * dwarf2read.c (dwarf2_get_pc_bounds): Moved the `DW_AT_ranges' parsing
669 code with its variables OBJFILE, CU_HEADER and OBFD into ...
670 (dwarf2_ranges_read): ... a new function.
671 (read_partial_die): Implemented the parsing of `DW_AT_ranges'.
673 2007-11-24 Pedro Alves <pedro_alves@portugalmail.pt>
675 * win32-nat.c (DR6_CLEAR_VALUE): New define.
676 (thread_info_struct): Rename suspend_count to suspended, to be
678 (thread_rec): Only suspend the thread if it wasn't suspended by
679 gdb before. Warn if suspending failed.
680 (win32_add_thread): Set Dr6 to DR6_CLEAR_VALUE.
681 (win32_continue): Set Dr6 to DR6_CLEAR_VALUE. Update usage of the
682 `suspended' flag. Do ContinueDebugEvent after resuming the
683 suspended threads, not before. Set threads' contexts before
684 resuming them, not after.
685 (win32_resume): Set Dr6 to DR6_CLEAR_VALUE.
687 2007-11-23 Vladimir Prus <vladimir@codesourcery.com>
689 * breakpoint.c (insert_breakpoints)
690 (insert_bp_location): Remove stale comments.
692 2007-11-23 Maciej W. Rozycki <macro@mips.com>
694 * mips-linux-tdep.h: Fix some formatting.
696 2007-11-21 Markus Deuling <deuling@de.ibm.com>
698 * stack.c (print_args_stub): Use get_frame_arch to get at the current
699 architecture and replace current_gdbarch.
700 (frame_info): Likewise.
702 2007-11-21 Nick Roberts <nickrob@snap.net.nz>
704 * varobj.c (c_variable_editable, cplus_variable_editable)
705 (java_variable_editable, variable_editable): Delete.
706 (varobj_editable_p): Replace above functions with one language
707 independent function. Check for an lvalue.
708 (varobj_get_attributes, varobj_set_value): Use varobj_editable_p.
709 (struct language_specific): Delete variable_editable field.
711 * mi-cmd-var.c (mi_cmd_var_assign): Simplify.
713 * varobj.h: Add extern for varobj_editable_p.
715 2007-11-20 Vladimir Prus <vladimir@codesourcery.com>
717 Remove unused breakpoint fields.
718 * breakpoint.h (struct breakpoint): Remove
719 from_tty and flag fields.
720 * breakpoint.c (break_command_1): Don't set
721 from_tty and flag field set of breakpoint.
722 (create_ada_exception_breakpoint): Don't set
725 2007-11-20 David Ung <davidu@mips.com>
726 Maciej W. Rozycki <macro@mips.com>
728 * mips-tdep.c (mips16_scan_prologue): Handle the MIPS16e SAVE
731 2007-11-20 Vladimir Prus <vladimir@codesourcery.com>
733 * infrun.c (resume): Clarify logic that
734 decides if a single thread must be resumed. Add
737 2007-11-20 Vladimir Prus <vladimir@codesourcery.com>
739 * breakpoint.c (disable_breakpoints_in_unloaded_shlib):
742 2007-11-19 Markus Deuling <deuling@de.ibm.com>
744 * gdbarch.sh (register_sim_regno): Add gdbarch as parameter.
745 * gdbarch.{c,h}: Regenerate.
747 * arch-utils.h (legacy_register_sim_regno): Add gdbarch as parameter.
748 * score-tdep.c (score_register_sim_regno): Likewise.
749 * sim-regno.h (one2one_register_sim_regno): Likewise.
751 * arch-utils.c (legacy_register_sim_regno): Add gdbarch as parameter.
752 Replace current_gdbarch by gdbarch.
753 * sh-tdep.c (sh_sh2a_register_sim_regno)
754 (sh_dsp_register_sim_regno): Likewise.
755 * rs6000-tdep.c (rs6000_register_sim_regno): Likewise.
756 * mips-tdep.c (mips_register_sim_regno): Likewise.
757 * m32c-tdep.c (m32c_register_sim_regno): Likewise.
758 * frv-tdep.c (frv_register_sim_regno): Likewise.
759 * arm-tdep.c (arm_register_sim_regno): Likewise.
760 * remote-sim.c (one2one_register_sim_regno): Likewise.
762 2007-11-16 Ulrich Weigand <uweigand@de.ibm.com>
764 * configure.ac (--enable-targets): New configure option.
765 Collect gdb_target_obs of multiple targets into TARGET_OBS.
766 Call configure.tgt multiple times, using $targ as operand.
767 * configure.tgt: Operate on $targ instead of $target.
768 * configure: Regenerate.
769 * Makefile.in (ALL_TARGET_OBS): Define.
771 * NEWS: Mention --enable-targets option.
773 2007-11-16 Ulrich Weigand <uweigand@de.ibm.com>
775 * mips-tdep.c (show_mipsfpu_command): Do not crash if called when
776 current architecture is not MIPS.
778 2007-11-16 Ulrich Weigand <uweigand@de.ibm.com>
780 * cli/cli-setshow.c (do_setshow_command): Use dynamically sized buffer
781 to construct error message if no argument was supplied.
783 2007-11-16 Ulrich Weigand <uweigand@de.ibm.com>
785 * i386nbsd-tdep.c (i386nbsd_aout_supply_regset): Remove.
786 (i386nbsd_aout_regset_from_core_section): Likewise.
787 (i386nbsd_aout_init_abi): Likewise.
788 (_initialize_i386nbsd_tdep): Do not register i386nbsd_aout_init_abi.
790 * vaxnbsd-tdep.c (vaxnbsd_aout_init_abi): Remove.
791 (_initialize_vaxnbsd_tdep): Do not register vaxnbsd_aout_init_abi.
793 2007-11-16 Ulrich Weigand <uweigand@de.ibm.com>
795 * amd64fsdb-tdep.c (amd64fbsd_sigtramp_start_addr): Use ULL suffix.
796 (amd64fbsd_sigtramp_end_addr): Likewise.
798 * iq2000-tdep.c (iq2000_pointer_to_address): Fix argument type.
799 (iq2000_address_to_pointer): Likewise.
800 (iq2000_frame_prev_register): Likewise.
801 (iq2000_extract_return_value): Use regcache_cooked_read_unsigned
802 instead of regcache_cooked_read into CORE_ADDR variable.
803 (iq2000_return_value): Fix argument types.
805 * m32r-rom.c (m32r_load_section): Fix printf argument type.
806 (m32r_load): Likewise.
808 * m68kbsd-tdep.c: Include "gdbtypes.h".
809 * Makefile.in: Update dependencies.
811 * mn10300-tdep.c (mn10300_frame_unwind_cache): Fix aliasing violation.
813 * nto-tdep.c (LM_ADDR): Do not refer to no-longer-existing
814 lmo->l_addr_size element.
816 * remote-m32r-sdi.c (m32r_xfer_memory): Use paddr to print address.
817 (m32r_insert_breakpoint): Likewise.
818 (m32r_remove_breakpoint): Likewise.
819 (m32r_insert_watchpoint): Likewise.
820 (m32r_remove_watchpoint): Likewise.
821 (m32r_load): Fix printf argument type.
823 * xtensa-tdep.c (xtensa_regset_from_core_section): Fix printf
825 (xtensa_frame_this_id): Do not cast pointers to "int" for output.
826 (xtensa_frame_prev_register): Likewise.
827 (xtensa_push_dummy_call): Likewise.
829 2007-11-16 Ulrich Weigand <uweigand@de.ibm.com>
831 * config/alpha/alpha-linux.mt: Remove file.
832 * config/alpha/alpha.mt: Remove file.
833 * config/alpha/alpha-osf1.mt: Remove file.
834 * config/alpha/fbsd.mt: Remove file.
835 * config/alpha/nbsd.mt: Remove file.
836 * config/alpha/obsd.mt: Remove file.
837 * config/arm/embed.mt: Remove file.
838 * config/arm/linux.mt: Remove file.
839 * config/arm/nbsd.mt: Remove file.
840 * config/arm/obsd.mt: Remove file.
841 * config/arm/wince.mt: Remove file.
842 * config/avr/avr.mt: Remove file.
843 * config/cris/cris.mt: Remove file.
844 * config/frv/frv.mt: Remove file.
845 * config/h8300/h8300.mt: Remove file.
846 * config/i386/cygwin.mt: Remove file.
847 * config/i386/fbsd64.mt: Remove file.
848 * config/i386/fbsd.mt: Remove file.
849 * config/i386/i386gnu.mt: Remove file.
850 * config/i386/i386.mt: Remove file.
851 * config/i386/i386sol2.mt: Remove file.
852 * config/i386/linux64.mt: Remove file.
853 * config/i386/linux.mt: Remove file.
854 * config/i386/mingw.mt: Remove file.
855 * config/i386/nbsd64.mt: Remove file.
856 * config/i386/nbsd.mt: Remove file.
857 * config/i386/nto.mt: Remove file.
858 * config/i386/obsd64.mt: Remove file.
859 * config/i386/obsd.mt: Remove file.
860 * config/i386/sol2-64.mt: Remove file.
861 * config/ia64/ia64.mt: Remove file.
862 * config/ia64/linux.mt: Remove file.
863 * config/iq2000/iq2000.mt: Remove file.
864 * config/m32c/m32c.mt: Remove file.
865 * config/m32r/linux.mt: Remove file.
866 * config/m32r/m32r.mt: Remove file.
867 * config/m68hc11/m68hc11.mt: Remove file.
868 * config/m68k/linux.mt: Remove file.
869 * config/m68k/monitor.mt: Remove file.
870 * config/m68k/nbsd.mt: Remove file.
871 * config/m68k/obsd.mt: Remove file.
872 * config/m88k/obsd.mt: Remove file.
873 * config/mep/mep.mt: Remove file.
874 * config/mips/embed.mt: Remove file.
875 * config/mips/irix5.mt: Remove file.
876 * config/mips/irix6.mt: Remove file.
877 * config/mips/linux.mt: Remove file.
878 * config/mips/nbsd.mt: Remove file.
879 * config/mips/obsd64.mt: Remove file.
880 * config/mn10300/linux.mt: Remove file.
881 * config/mn10300/mn10300.mt: Remove file.
882 * config/mt/mt.mt: Remove file.
883 * config/pa/hppahpux.mt: Remove file.
884 * config/pa/hppa.mt: Remove file.
885 * config/pa/linux.mt: Remove file.
886 * config/pa/obsd.mt: Remove file.
887 * config/powerpc/aix.mt: Remove file.
888 * config/powerpc/linux.mt: Remove file.
889 * config/powerpc/nbsd.mt: Remove file.
890 * config/powerpc/obsd.mt: Remove file.
891 * config/powerpc/ppc-eabi.mt: Remove file.
892 * config/s390/s390.mt: Remove file.
893 * config/score/embed.mt: Remove file.
894 * config/sh/embed.mt: Remove file.
895 * config/sh/linux.mt: Remove file.
896 * config/sh/nbsd.mt: Remove file.
897 * config/sh/obsd.mt: Remove file.
898 * config/sh/sh64.mt: Remove file.
899 * config/sparc/embed.mt: Remove file.
900 * config/sparc/fbsd.mt: Remove file.
901 * config/sparc/linux64.mt: Remove file.
902 * config/sparc/linux.mt: Remove file.
903 * config/sparc/nbsd64.mt: Remove file.
904 * config/sparc/nbsd.mt: Remove file.
905 * config/sparc/obsd64.mt: Remove file.
906 * config/sparc/obsd.mt: Remove file.
907 * config/sparc/sol2-64.mt: Remove file.
908 * config/sparc/sol2.mt: Remove file.
909 * config/sparc/sparc64.mt: Remove file.
910 * config/sparc/sparc.mt: Remove file.
911 * config/spu/spu.mt: Remove file.
912 * config/v850/v850.mt: Remove file.
913 * config/vax/nbsd.mt: Remove file.
914 * config/vax/obsd.mt: Remove file.
915 * config/vax/vax.mt: Remove file.
916 * config/xstormy16/xstormy16.mt: Remove file.
917 * config/xtensa/xtensa.mt: Remove file.
919 * configure.tgt (gdb_target_cpu): Remove. Do not set anywhere.
920 (gdb_target): Likewise.
921 (gdb_target_obs): Document. Set for every target to contents
922 of TDEPFILES in former .mt makefile fragment.
924 * configure.ac (TARGET_OBS): Define.
925 (target_makefile_frag, gdb_target_cpu): Do not define.
926 * configure: Regenerate.
928 * Makefile.in (MT_FLAGS): Remove.
929 (GLOBAL_CFLAGS): Update.
930 (TARGET_OBS): Substitute from configure.
931 (DEPFILES): Remove TDEPFILES, add TARGET_OBS.
932 (@target_makefile_frag@): Remove.
934 2007-11-16 Ulrich Weigand <uweigand@de.ibm.com>
936 * config/arm/embed.mt (SIM_OBS, SIM): Remove.
937 * config/avr/avr.mt (SIM_OBS, SIM): Remove.
938 * config/frv/frv.mt (SIM_OBS, SIM): Remove.
939 * config/h8300/h8300.mt (SIM_OBS, SIM): Remove.
940 * config/iq2000/iq2000.mt (SIM_OBS, SIM): Remove.
941 * config/m32c/m32c.mt (SIM_OBS, SIM): Remove.
942 * config/m32r/linux.mt (SIM_OBS, SIM): Remove.
943 * config/m32r/m32r.mt (SIM_OBS, SIM): Remove.
944 * config/m68hc11/m68hc11.mt (SIM_OBS, SIM): Remove.
945 * config/mips/embed.mt (SIM_OBS, SIM): Remove.
946 * config/mips/linux.mt (SIM_OBS, SIM): Remove.
947 * config/mips/nbsd.mt (SIM_OBS, SIM): Remove.
948 * config/mn10300/mn10300.mt (SIM_OBS, SIM): Remove.
949 * config/powerpc/linux.mt (SIM_OBS, SIM): Remove.
950 * config/powerpc/nbsd.mt (SIM_OBS, SIM): Remove.
951 * config/powerpc/ppc-sim.mt: Remove file.
952 * config/sh/embed.mt (SIM_OBS, SIM): Remove.
953 * config/sh/linux.mt (SIM_OBS, SIM): Remove.
954 * config/sh/nbsd.mt (SIM_OBS, SIM): Remove.
955 * config/sh/sh64.mt (SIM_OBS, SIM): Remove.
956 * config/sparc/embed.mt (SIM_OBS, SIM): Remove.
957 * config/v850/v850.mt (SIM_OBS, SIM): Remove.
958 * config/xstormy16/xstormy16.mt (SIM_OBS, SIM): Remove.
960 * configure.tgt (gdb_sim): Document variable.
961 (arm*-*-* | thumb*-*-* | strongarm*-*-* | xscale-*-*): Set it.
964 (h8300-*-*): Likewise.
965 (iq2000-*-*): Likewise.
966 (m32c-*-*): Likewise.
967 (m32r*-*-linux*): Likewise.
968 (m32r*-*-*): Likewise.
969 (m68hc11*-*-*|m6811*-*-*): Likewise.
970 (mips*-*-*): Likewise.
971 (mips*-*-linux*): Likewise.
972 (mips*-*-netbsd* | mips*-*-knetbsd*-gnu): Likewise.
973 (mn10300-*-*): Likewise.
974 (powerpc-*-linux* | powerpc64-*-linux*): Likewise.
975 (powerpc-*-netbsd* | powerpc-*-knetbsd*-gnu): Likewise.
976 (powerpc*-*-*): Use ppc-eabi target. Conditionally set gdb_sim.
978 (sh-*-linux*): Likewise.
979 (sh*-*-netbsdelf* | sh*-*-knetbsd*-gnu): Likewise.
980 (sh64-*-elf*): Likewise.
981 (sparc-*-rtems*): Likewise.
982 (v850*-*-elf): Likewise.
983 (xstormy16-*-*): Likewise.
985 * configure.ac (IGNORE_SIM, IGNORE_SIM_OBS): Do not set.
986 (SIM, SIM_OBS): Set depending on ${ignore_sim} and ${gdb_sim}.
987 * configure: Regenerate.
988 * Makefile.in (SIM, SIM_OBS): Substitute from configure.
989 (@IGNORE_SIM@, @IGNORE_SIM_OBS@): Remove.
991 2007-11-16 Ulrich Weigand <uweigand@de.ibm.com>
993 * configure.tgt (gdb_osabi, build_gdbserver): Comment variables.
994 (arm*-*-*): Do not set obsolete build_rdi_share variable.
996 (*-*-freebsd* | *-*-kfreebsd*-gnu): Remove generic case, replace by ...
997 (alpha*-*-freebsd* | alpha*-*-kfreebsd*-gnu)
998 (i[34567]86-*-freebsd* | i[34567]86-*-kfreebsd*-gnu)
999 (sparc*-*-freebsd* | sparc*-*-kfreebsd*-gnu): ... specific cases.
1000 (x86_64-*-freebsd* | x86_64-*-kfreebsd*-gnu): Re-sort.
1002 (xscale-*-*): Merge into arm*-*-* case.
1003 (fido-*-elf*): Merge into m68*-*-elf* case.
1004 (m68*-*-aout*, m68*-*-coff*, m68*-*-elf*, m68*-*-rtems*,
1005 m68*-*-uclinux*): Merge cases.
1006 (powerpc-*-linux*, powerpc64-*-linux*): Merge cases.
1007 (sh-*-coff*, sh-*-elf*): Merge into sh* case.
1009 2007-11-16 Ulrich Weigand <uweigand@de.ibm.com>
1011 * configure.tgt: Reformat main case statement.
1013 2007-11-16 Ulrich Weigand <uweigand@de.ibm.com>
1015 * configure.ac (hostfile, targetfile): Remove.
1016 (GDB_XM_FILE, GDB_TM_FILE): Do not define.
1017 (xm_h, tm_h): Likewise.
1018 (DEPRECATED_TM_FILE, XM_FILE): Do not substitute into Makefile.
1019 * configure, config.in: Regenerate.
1021 * Makefile.in (xm_h, tm_h): Remove. Update dependencies.
1022 (TAGS): Do not consider DEPRECATED_TM_FILE or XM_FILE.
1023 (clean, local-maintainer-clean): Do not remove xm.h or tm.h.
1024 * defs.h: Do not include "xm.h" or "tm.h".
1026 * gdbarch.sh (verify_gdbarch): Do not dump GDB_XM_FILE or GDB_TM_FILE.
1027 * gdbarch.c: Regenerate.
1029 * config/score/embed.mt: Remove obsolete comment.
1031 2007-11-16 Markus Deuling <deuling@de.ibm.com>
1033 * gdbarch.sh (cannot_fetch_register, cannot_store_register): Add gdbarch
1035 * gdbarch.{c,h}: Regenerate.
1037 * alpha-tdep.c (alpha_cannot_fetch_register)
1038 (alpha_cannot_store_register): Add gdbarch as parameter. Replace
1039 current_gdbarch by gdbarch.
1040 * cris-tdep.c (cris_cannot_fetch_register, cris_cannot_store_register)
1041 (crisv32_cannot_fetch_register)
1042 (crisv32_cannot_store_register): Likewise.
1043 * arch-utils.c (cannot_register_not): Likewise.
1044 * arch-utils.h (cannot_register_not): Likewise.
1045 * hppa-tdep.c (hppa32_cannot_store_register)
1046 (hppa32_cannot_store_register, hppa64_cannot_store_register)
1047 (hppa64_cannot_fetch_register): Likewise.
1048 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register)
1049 (mipsnbsd_cannot_store_register): Likewise.
1051 2007-11-16 Markus Deuling <deuling@de.ibm.com>
1053 * m32r-rom.c (m32r_supply_register): Use get_regcache_arch to get at
1054 the current architecture by regcache.
1055 * ppcnbsd-nat.c (ppcnbsd_supply_pcb): Likewise.
1056 * ppc-linux-nat.c (fetch_altivec_register, fetch_spe_register)
1057 (fetch_register, supply_vrregset, fetch_ppc_registers)
1058 (store_altivec_register, store_spe_register, store_register)
1059 (fill_vrregset, store_ppc_registers): Likewise.
1060 * ppcobsd-nat.c (ppcobsd_supply_pcb): Likewise.
1061 * win32-nat.c (do_win32_fetch_inferior_registers)
1062 (do_win32_store_inferior_registers): Likewise.
1063 * procfs.c (procfs_fetch_registers, procfs_store_registers): Likewise.
1064 * remote-m32r-sdi.c (m32r_fetch_registers)
1065 (m32r_store_registers): Likewise.
1066 * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register): Likewise.
1068 * trad-frame.c (trad_frame_alloc_saved_regs): Replace current_gdbarch by
1070 * user-regs.c (user_reg_map_name_to_regnum): Likewise.
1071 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call)
1072 (do_ppc_sysv_return_value, ppc64_sysv_abi_push_dummy_call)
1073 (ppc64_sysv_abi_return_value): Likewise.
1074 * m32c-tdep.c (m32c_register_reggroup_p): Likewise.
1075 * m2-lang.c (build_m2_types): Likewise.
1076 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache
1077 * ppcnbsd-tdep.c (ppcnbsd_sigtramp_cache_init): Likewise.
1078 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_cache): Likewise.
1079 * rs6000-tdep.c (ppc_dwarf2_frame_init_reg): Likewise.
1081 * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Use get_frame_arch to
1082 get at the current architecture by frame_info.
1083 * gcore.c (derive_stack_segment): Likewise.
1085 * shnbsd-nat.c (GETREGS_SUPPLIES): Add gdbarch parameter.
1086 (shnbsd_fetch_inferior_registers, shnbsd_store_inferior_registers): Add
1087 gdbarch to GETREGS_SUPPLIES call.
1089 2007-11-16 Ulrich Weigand <uweigand@de.ibm.com>
1091 * elfread.c (ST_REGULAR, ST_DYNAMIC, ST_SYNTHETIC): New defines.
1092 (elf_symtab_read): Rename DYNAMIC argument to TYPE. Do not access
1093 ELF-private symbol data when processing synthetic symbols. Use
1094 udata.p to get at size of ppc64 synthetic 'dot' symbols.
1095 (elf_symfile_read): Pass TYPE argument to elf_symtab_read.
1097 2007-11-15 Doug Evans <dje@google.com>
1099 * buildsym.h (subfiles): Move ...
1100 * buildsym.c (subfiles): ... to here and make static.
1102 * symmisc.c (maintenance_info_symtabs): Print linetable info.
1104 2007-11-15 Markus Deuling <deuling@de.ibm.com>
1106 * mipsnbsd-tdep.h (SIZEOF_STRUCT_REG, SIZEOF_STRUCT_FPREG): Remove
1108 2007-11-15 Markus Deuling <deuling@de.ibm.com>
1110 * arm-tdep.c (arm_prologue_this_id): Replace LOWEST_PC by its
1111 expression and use get_frame_arch to replace current_gdbarch by frame's
1113 * arm-tdep.h (LOWEST_PC): Remove
1115 2007-11-15 Vladimir Prus <vladimir@codesourcery.com>
1117 Apply const qualifier to some users of bp_location.
1118 * breakpoint.h (struct bpstats): Make
1119 the breakpoint_at field point at const bp_location.
1120 * breakpoint.c (bpstat_alloc): Accept const
1122 (breakpoint_here_p, breakpoint_inserted_here_p)
1123 (software_breakpoint_inserted_here_p)
1124 (breakpoint_thread_match, bpstat_stop_status)
1125 (read_memory_nobpt, bpstat_have_active_hw_watchpoints): Use
1126 const bp_location for iteration.
1127 (print_it_typical, print_bp_stop_message): Use
1128 const bp_location variable.
1130 2007-11-15 Vladimir Prus <vladimir@codesourcery.com>
1132 Make mark_breakpoints_out static.
1133 * breakpoint.h (mark_breakpoints_out): Remove
1135 * breakpoint.c (mark_breakpoints_out): Make static.
1137 2007-11-15 Vladimir Prus <vladimir@codesourcery.com>
1139 Prevent clear_command from directly modifying breakpoint list.
1140 * Makefile.in (breakpoint_h): Update dependency.
1141 * breakpoint.c (clear_command): Do not remove
1142 breakpoints from breakpoint_chain. Collect breakpoints
1143 to delete in a vector.
1144 * breakpoint.h (breakpoint_p): New typedef for pointer to
1145 breakpoint. Register vector of breakpoint_p.
1147 2007-11-15 Vladimir Prus <vladimir@codesourcery.com>
1149 Remove 'run_cleanup'.
1150 * defs.h (do_run_cleanups, make_run_cleanup): Remove
1152 * infcmd.c (run_command_1): Call clear_solib instead
1154 * jv-lang.c (java_rerun_cleanup): Remove, for lack of
1156 * solib.c (solib_cleanup_queued, do_clear_solib): Remove.
1157 (update_solib_lib): Don't setup run cleanup.
1158 (no_shared_libraries): Call clear_solib, not do_clear_solib.
1159 * utils.c (run_cleanup_chain, make_run_cleanup)
1160 (do_run_cleanups): Remove.
1162 2007-11-15 Vladimir Prus <vladimir@codesourcery.com>
1164 Remove CLEAR_SOLIB use.
1165 * corelow.c (core_close): Don't check for CLEAR_SOLIB.
1166 * infcmd.c (attach_command): Likewise.
1168 2007-11-14 Doug Evans <dje@google.com>
1170 * buildsym.c (start_subfile,start_symtab): Doc fixes.
1172 2007-11-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
1174 * tui/tui-data.c (tui_prev_win): Guard against NULL.
1176 2007-11-12 Markus Deuling <deuling@de.ibm.com>
1178 * gdbarch.sh (gdbarch_alloc): Replace current_gdbarch by gdbarch. Remove
1180 (verify_gdbarch, gdbarch_dump): Likewise.
1181 (do_read): Update comment.
1182 (addr_bit, bfd_arch_info, target_desc, long_long_bit, floatformat)
1183 (ptr_bit, name_of_malloc): Replace current_gdbarch by gdbarch.
1184 * gdbarch.{c,h}: Regenerate.
1186 2007-11-12 Markus Deuling <deuling@de.ibm.com>
1188 * xtensa-tdep.c (ARG_1ST): Replace ARGS_FIRST_REG by its expression.
1189 (ARGS_FIRST_REG): Remove.
1190 (areg_numer): New function.
1191 (xtensa_pseudo_register_read, xtensa_frame_prev_register)
1192 (xtensa_extract_return_value, xtensa_store_return_value)
1193 (xtensa_frame_cache): Replace AREG_NUMBER by areg_number.
1194 (AREG_NUMBER): Remove.
1195 (XTENSA_IS_ENTRY, ARG_NOF, ARG_1ST): Add gdbarch as parameter.
1196 (xtensa_frame_cache): Update use of XTENSA_IS_ENTRY.
1197 (xtensa_push_dummy_call): Update use of ARG_NOF.
1198 (extract_call_winsize): Add gdbarch as parameter. Replace
1199 current_gdbarch by gdbarch.
1200 (xtensa_extract_return_value, xtensa_store_return_value): Update call
1201 of extract_call_winsize.
1203 2007-11-10 Joel Brobecker <brobecker@adacore.com>
1205 * NEWS: Add entry for new set/show print frame-args command.
1207 2007-11-09 Kevin Buettner <kevinb@redhat.com>
1209 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Add missing
1210 register number to map. Adjust warning check and error/warning
1211 return value code to match expectations of this function's callers.
1213 2007-11-09 Joel Brobecker <brobecker@adacore.com>
1215 * stack.c (print_this_frame_argument_p): Handle arguments passed
1216 by reference properly.
1218 2007-11-09 Joel Brobecker <brobecker@adacore.com>
1220 * stack.c (print_frame_arguments_choices): New static global.
1221 (print_frame_arguments): Likewise.
1222 (print_this_frame_argument_p): New function.
1223 (print_frame_args): Print the argument value only when appropriate.
1224 (_initialize_task): Add new "set/show print frame-arguments" command.
1226 2007-11-09 Luis Machado <luisgpm@br.ibm.com>
1228 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Move
1229 saved_dabr_value assignment to the correct position.
1231 2007-11-09 Markus Deuling <deuling@de.ibm.com>
1233 * arch-utils.c (generic_convert_register_p): Add gdbarch as parameter.
1234 * arch-utils.h (generic_convert_register_p): Likewise.
1236 2007-11-09 Markus Deuling <deuling@de.ibm.com>
1238 * gdbarch.sh (convert_register_p): Add gdbarch as parameter.
1239 * ia64-tdep.c (ia64_convert_register_p): Likewise.
1240 * i387-tdep.c (i387_convert_register_p): Likewise.
1241 * i387-tdep.h (i387_convert_register_p): Likewise.
1242 * alpha-tdep.c (alpha_convert_register_p): Likewise.
1243 * gdbarch.{c,h}: Regenerate.
1245 * rs6000-tdep.c (rs6000_convert_register_p): Add gdbarch as parameter.
1246 Replace current_gdbarch by gdbarch.
1247 * mips-tdep.c (mips_convert_register_p): Likewise.
1248 * m68k-tdep.c (m68k_convert_register_p): Likewise.
1249 * i386-tdep.c (i386_convert_register_p): Likewise.
1251 2007-11-08 Aleksandar Ristovski <aristovski@qnx.com>
1253 * gdb_string.h: Include <strings.h>.
1255 2007-11-08 Vladimir Prus <vladimir@codesourcery.com>
1257 * breakpoint.c (break_command_1): Remove
1258 pending_bp parameter.
1259 (create_breakpoint): Likewise.
1260 (create_breakpoints): Likewise. Adjust call to
1262 (break_command_1): Likewise. Adjust call to
1264 (do_captured_breakpoint): Adjust call to
1266 (break_command, tbreak_command, hbreak_command)
1267 (stopin_command, stopat_command): Adjust call
1270 2007-11-07 Joseph Myers <joseph@codesourcery.com>
1271 Daniel Jacobowitz <dan@codesourcery.com>
1273 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Right-align
1274 struct values smaller than one doubleword; left-align those
1275 larger. Pass structs containing a single floating-point value in
1278 2007-11-07 Joseph Myers <joseph@codesourcery.com>
1279 Daniel Jacobowitz <dan@codesourcery.com>
1281 * gdbtypes.c (floatformats_ibm_long_double): New.
1282 * gdbtypes.h (floatformats_ibm_long_double): Declare.
1283 * ia64-tdep.c (floatformat_ia64_ext): Update for addition of
1285 * mips-tdep.c (n32n64_floatformat_always_valid,
1286 floatformat_n32n64_long_double_big, floatformats_n32n64_long):
1288 (mips_gdbarch_init): Use floatformats_ibm_long_double instead of
1289 floatformats_n32n64_long.
1290 * ppc-linux-tdep.c (ppc_linux_init_abi): Use 128-bit IBM long
1292 * doublest.c (convert_floatformat_to_doublest,
1293 convert_doublest_to_floatformat): Handle split floating-point
1295 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Handle IBM long
1297 (ppc64_sysv_abi_push_dummy_call): Likewise.
1298 (do_ppc_sysv_return_value): Handle IBM long double return.
1300 2007-11-07 Vladimir Prus <vladimir@codesourcery.com>
1302 Fix crash when a variable object being deleted
1303 has any of its children deleted previously.
1305 * varobj.c (delete_variable_1): Don't recurse
1306 into deleted children.
1308 2007-11-07 Markus Deuling <deuling@de.ibm.com>
1310 * gdbarch.sh (legacy_virtual_frame_pointer): Add gdbarch parameter.
1311 * gdbarch.{c,h}: Regenerate.
1312 * arch-utils.c (legacy_virtual_frame_pointer): Add gdbarch parameter.
1313 Replace current_gdbarch by gdbarch.
1314 * m32c-tdep.c (m32c_virtual_frame_pointer): Likewise.
1315 * mips-tdep.c (mips_virtual_frame_pointer): Likewise.
1316 * spu-tdep.c (spu_virtual_frame_pointer): Likewise.
1318 2007-11-07 Markus Deuling <deuling@de.ibm.com>
1320 * shnbsd-tdep.c (shnbsd_supply_gregset, shnbsd_collect_gregset): Use
1321 get_regcache_arch to get at the current architecture by regcache.
1322 * xstormy16-tdep.c (xstormy16_frame_prev_register): Use get_frame_arch
1323 to get at the current architecture by frame_info.
1324 * fbsd-nat.c (fbsd_make_corefile_notes): Use get_regcache_arch to get
1325 at the current architecture by regcache.
1326 * gnu-v3-abi.c (gnuv3_skip_trampoline): Use get_frame_arch to get at
1327 the current architecture by frame_info.
1328 (build_gdb_vtable_type): Replace current_gdbarch by gdbarch.
1329 * aix-thread.c (special_register_p): Add gdbarch as parameter.
1330 (fetch_regs_kernel_thread, store_regs_kernel_thread): Add gdbarch to
1331 caller of special_register_p.
1333 2007-11-07 Markus Deuling <deuling@de.ibm.com>
1335 * infcall.c (call_function_by_hand): Use get_frame_arch to get at the
1336 current architecture by frame_info.
1338 2007-11-07 Markus Deuling <deuling@de.ibm.com>
1340 * xtensa-tdep.h (SIZEOF_GREGSET, XTENSA_ELF_NGREG) Remove.
1342 2007-11-07 Markus Deuling <deuling@de.ibm.com>
1344 * s390-nat.c (supply_gregset, fill_gregset): Use get_regcache_arch to
1345 get at the current architecture by regcache.
1346 (SUBOFF): Add gdbarch to macro definition.
1348 2007-11-07 Markus Deuling <deuling@de.ibm.com>
1350 * gdbarch.sh (breakpoint_from_pc): Add gdbarch parameter.
1351 * gdbarch.{c,h}: Regenerate.
1353 * xtensa-tdep.c (xtensa_breakpoint_from_pc): Add gdbarch parameter.
1354 Replace current_gdbarch by gdbarch.
1355 * sh-tdep.c (sh_breakpoint_from_pc): Likewise.
1356 * sh64-tdep.c (sh64_breakpoint_from_pc): Likewise.
1357 * score-tdep.c (score_breakpoint_from_pc): Likewise.
1358 * mips-tdep.c (mips_breakpoint_from_pc): Likewise.
1359 * m32r-tdep.c (m32r_breakpoint_from_pc): Likewise.
1360 * iq2000-tdep.c (iq2000_breakpoint_from_pc): Likewise.
1361 * arm-tdep.c (arm_breakpoint_from_pc): Likewise.
1363 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Add gdbarch
1365 * vax-tdep.c (vax_breakpoint_from_pc): Likewise.
1366 * v850-tdep.c (v850_breakpoint_from_pc): Likewise.
1367 * spu-tdep.c (spu_breakpoint_from_pc): Likewise.
1368 * sparc-tdep.c (sparc_breakpoint_from_pc): Likewise.
1369 * s390-tdep.c (s390_breakpoint_from_pc): Likewise.
1370 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Likewise.
1371 * mt-tdep.c (mt_breakpoint_from_pc): Likewise.
1372 * mep-tdep.c (mep_breakpoint_from_pc): Likewise.
1373 * m88k-tdep.c (m88k_breakpoint_from_pc): Likewise.
1374 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Likewise.
1375 * m32c-tdep.c (m32c_breakpoint_from_pc): Likewise.
1376 * ia64-tdep.c (ia64_breakpoint_from_pc): Likewise.
1377 * i386-tdep.c (i386_breakpoint_from_pc): Likewise.
1378 * hppa-tdep.c (hppa_breakpoint_from_pc): Likewise.
1379 * h8300-tdep.c (h8300_breakpoint_from_pc): Likewise.
1380 * frv-tdep.c (frv_breakpoint_from_pc): Likewise.
1381 * cris-tdep.c (cris_breakpoint_from_pc): Likewise.
1382 * avr-tdep.c (avr_breakpoint_from_pc): Likewise.
1383 * alpha-tdep.c (alpha_breakpoint_from_pc): Likewise.
1384 * m68k-tdep.c (m68k_local_breakpoint_from_pc): Likewise.
1386 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Add gdbarch parameter.
1387 Replace current_gdbarch by gdbarch.
1388 (rs6000_software_single_step): Use get_frame_arch to get at the
1389 current architecture by frame_info. Add gdbarch to
1390 rs6000_breakpoint_from_pc call.
1392 2007-11-07 Markus Deuling <deuling@de.ibm.com>
1394 * frv-tdep.c (frv_register_name, frv_check_watch_resources): Replace
1395 macro CURRENT_VARIANT by its expression.
1396 (CURRENT_VARIANT): Remove.
1397 (frv_check_watch_resources): Add gdbarch parameter.
1399 2007-11-07 Markus Deuling <deuling@de.ibm.com>
1401 * MAINTAINERS (Write After Approval): Add self.
1403 2007-11-05 Ulrich Weigand <uweigand@de.ibm.com>
1405 * features/rs6000/power-core.xml: Use uint32 as register type.
1406 * features/rs6000/power64-core.xml: Use uint64/uint32 as register type.
1407 * features/rs6000/powerpc-32.c: Regenerate.
1408 * features/rs6000/powerpc-403.c: Regenerate.
1409 * features/rs6000/powerpc-403gc.c: Regenerate.
1410 * features/rs6000/powerpc-505.c: Regenerate.
1411 * features/rs6000/powerpc-602.c: Regenerate.
1412 * features/rs6000/powerpc-603.c: Regenerate.
1413 * features/rs6000/powerpc-604.c: Regenerate.
1414 * features/rs6000/powerpc-64.c: Regenerate.
1415 * features/rs6000/powerpc-7400.c: Regenerate.
1416 * features/rs6000/powerpc-750.c: Regenerate.
1417 * features/rs6000/powerpc-860.c: Regenerate.
1418 * features/rs6000/powerpc-e500.c: Regenerate.
1420 2007-11-05 Joel Brobecker <brobecker@adacore.com>
1422 * breakpoint.c (set_raw_breakpoint_without_location): Make static.
1424 2007-11-05 Joel Brobecker <brobecker@adacore.com>
1426 * breakpoint.h (create_solib_load_event_breakpoint)
1427 (create_solib_unload_event_breakpoint)
1428 (create_fork_event_catchpoint, create_vfork_event_catchpoint)
1429 (create_exec_event_catchpoint): Delete declaration.
1430 * breakpoint.c (create_solib_load_event_breakpoint)
1431 (solib_load_unload_1, create_solib_unload_event_breakpoint): Delete.
1432 (create_fork_event_catchpoint, create_vfork_event_catchpoint)
1433 (create_exec_event_catchpoint): Make static.
1435 2007-11-05 Joel Brobecker <brobecker@adacore.com>
1437 * breakpoint.h (set_breakpoint_sal): Remove declaration.
1438 * breakpoint.c (set_breakpoint_sal): Delete.
1440 2007-11-05 Joel Brobecker <brobecker@adacore.com>
1442 * buildsym.c (finish_block): Remove "#if 1"/"#endif" brackets.
1443 (make_blockvector): Likewise. Remove FIXME comment.
1445 2007-11-05 Luis Machado <luisgpm@br.ibm.com>
1447 * printcmd.c: (printf_command): Add support for new DFP
1448 modifiers %H, %D and %DD.
1449 * configure.ac: Add check for DECFLOAT printf support.
1450 * configure: Regenerated.
1452 2007-11-02 Ulrich Weigand <uweigand@de.ibm.com>
1454 * gdbtypes.h (struct cplus_struct_type): Remove runtime_ptr member.
1455 (TYPE_RUNTIME_PTR, TYPE_VTABLE, TYPE_HAS_VTABLE,
1456 TYPE_PRIMARY_BASE, TYPE_VIRTUAL_BASE_LIST): Remove macros.
1457 (HP_ACC_VFUNC_START, HP_ACC_VBASE_START, HP_ACC_TYPEINFO_OFFSET,
1458 HP_ACC_TOP_OFFSET_OFFSET): Likewise.
1459 (has_vtable, primary_base_class, 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 prototypes.
1463 * gdbtypes.c (has_vtable, primary_base_class, current_vbase_list,
1464 virtual_base_list_aux, virtual_base_list, virtual_base_list_length,
1465 virtual_base_list_length_skip_primaries, virtual_base_index,
1466 virtual_base_index_skip_primaries, class_index_in_primary_list,
1467 count_virtual_fns): Remove.
1469 * cp-valprint.c (cp_print_hpacc_virtual_table_entries): Remove.
1470 (hpacc_vtbl_ptr_name, hpacc_vtbl_ptr_type_name): Remove.
1471 (cp_print_value_fields): Remove support for HP aCC vtables.
1472 (cp_print_value): Likewise.
1473 * c-typeprint.c (c_type_print_base): Likewise.
1475 * value.h (find_rt_vbase_offset): Remove prototype.
1476 * valops.c (find_rt_vbase_offset): Remove.
1477 (search_struct_method): Remove support for HP aCC vtables.
1478 (find_method_list): Likewise.
1480 2007-11-02 Ulrich Weigand <uweigand@de.ibm.com>
1482 * language.h (struct language_defn): Remove la_builtin_type_vector
1483 and string_char_type members.
1484 * language.c (language_string_char_type): No longer consult
1485 la->string_char_type.
1486 (language_lookup_primitive_type_by_name): No longer consult
1487 current_language->la_builtin_type_vector.
1489 * language.c (unknown_language_defn, auto_language_defn,
1490 local_language_defn): Adapt initializer.
1491 * ada-lang.c (ada_language_defn): Likewise.
1492 * c-lang.c (c_language_defn, cplus_language_defn, asm_language_defn,
1493 minimal_language_defn): Likewise.
1494 * f-lang.c (f_language_defn): Likewise.
1495 * jv-lang.c (java_language_defn): Likewise.
1496 * m2-lang.c (m2_language_defn): Likewise.
1497 * objc-lang.c (objc_language_defn): Likewise.
1498 * p-lang.c (pascal_language_defn): Likewise.
1499 * scm-lang.c (scm_language_defn): Likewise.
1501 2007-11-02 Markus Deuling <deuling@de.ibm.com>
1503 * frame.c (frame_id_inner): Add gdbarch parameter. Replace
1504 current_gdbarch by gdbarch.
1505 (frame_find_by_id, get_prev_frame_1): Use get_frame_arch to get at the
1506 current architecture by frame_info.
1507 * frame.h (frame_id_inner): Add gdbarch parameter.
1508 * stack.c (return_command): Use get_frame_arch to get at the current
1509 architecture by frame_info. Update call of frame_id_inner.
1510 * infrun.c (handle_inferior_event): Likewise.
1511 * dummy-frame.c (dummy_frame_push): Use get_regcache_arch to get at the
1512 current architecture by regcache. Update call of frame_id_inner.
1514 2007-11-02 Markus Deuling <deuling@de.ibm.com>
1516 * gdbarch.sh (register_name): Add gdbarch parameter.
1517 * gdbarch.{c,h}: Regenerate.
1519 * target-descriptions.c (tdesc_register_name): Add gdbarch parameter.
1520 (tdesc_register_name): Replace current_gdbarch by gdbarch.
1521 * target-descriptions.h (tdesc_register_name): Add gdbarch parameter.
1523 * xstormy16-tdep.c (xstormy16_register_name): Add gdbarch parameter.
1524 * vax-tdep.c (vax_register_name): Add gdbarch parameter.
1525 * spu-tdep.c (spu_register_name): Add gdbarch parameter.
1526 * s390-tdep.c (s390_register_name): Add gdbarch parameter.
1527 * mt-tdep.c (mt_register_name): Add gdbarch parameter.
1528 (mt_registers_info): Replace current_gdbarch by gdbarch.
1529 (mt_register_reggroup_p): Add gdbarch to mt_register_name call.
1530 * mips-tdep.c (mips_register_name): Add gdbarch parameter. Replace
1531 current_gdbarch by gdbarch.
1532 (mips_register_name): Add gdbarch to tdesc_register_name call.
1533 * mep-tdep.c (mep_register_name): Add gdbarch parameter. Replace
1534 current_gdbarch by gdbarch.
1535 (mep_register_reggroup_p): Add gdbarch to mep_register_name call.
1536 * m32c-tdep.c (m32c_register_name): Add gdbarch parameter. Replace
1537 current_gdbarch by gdbarch.
1538 * m88k-tdep.c (m88k_register_name): Add gdbarch parameter.
1539 * m68k-tdep.c (m68k_register_name): Add gdbarch parameter.
1540 * m32r-tdep.c (m32r_register_name): Add gdbarch parameter.
1541 (m32r_frame_unwind_cache): Use get_frame_arch to get at the current
1542 architecture by frame_info.
1543 * iq2000-tdep.c (iq2000_register_name): Add gdbarch parameter.
1544 * ia64-tdep.c (ia64_register_name): Add gdbarch parameter.
1545 * hppa-tdep.c (hppa32_register_name, hppa64_register_name): Add gdbarch
1547 * h8300-tdep.c (h8300_register_name, h8300s_register_name)
1548 (h8300sx_register_name): Add gdbarch parameter.
1549 * cris-tdep.c (cris_register_name, crisv32_register_name): Add
1550 gdbarch parameter. Replace current_gdbarch by gdbarch.
1551 (cris_gdbarch_init): Replace current_gdbarch by gdbarch (comment).
1552 * avr-tdep.c (avr_register_name): Add gdbarch parameter.
1553 * arm-tdep.c (arm_register_name): Add gdbarch paramete
1554 * amd64-tdep.c (amd64_register_name): Add gdbarch parameter. Update
1556 * amd64-tdep.h (amd64_register_name): Add gdbarch parameter.
1557 * amd64-linux-tdep.c (amd64_linux_register_name): Add gdbarch parameter.
1558 * alpha-tdep.c (alpha_register_name): Add gdbarch parameter.
1559 (alpha_cannot_fetch_register, alpha_cannot_store_register): Update call
1560 of alpha_register_name.
1561 * frv-tdep.c (frv_register_name): Add gdbarch parameter.
1562 * i386-tdep.c (i386_register_name): Add gdbarch parameter. Replace
1563 current_gdbarch by gdbarch.
1564 (i386_register_type): Replace ?current_gdbarch by gdbarch.
1565 * i386-tdep.h (i386_register_name): Add gdbarch parameter.
1566 * i386-linux-tdep.c (i386_linux_register_name): Add gdbarch parameter.
1568 * m68hc11-tdep.c (m68hc11_register_name): Add gdbarch parameter.
1569 (m68hc11_register_reggroup_p): Add gdbarch to call of
1570 m68hc11_register_name.
1571 * mn10300-tdep.c (mn10300_generic_register_name, am33_register_name)
1572 (am33_2_register_name): Add gdbarch parameter.
1573 (mn10300_frame_unwind_cache): Use get_frame_arch to get at the current
1574 architecture by frame_info.
1575 (mn10300_dump_tdep): Replace current_gdbarch by gdbarch.
1576 * rs6000-tdep.c (rs6000_register_name): Add gdbarch parameter. Replace
1577 current_gdbarch by gdbarch.
1578 * score-tdep.c (score_register_name): Add gdbarch parameter.
1579 (score_return_value, score_push_dummy_call): Replace current_gdbarch
1581 * sh64-tdep.c (sh64_register_name): Add gdbarch parameter.
1582 (sh64_compact_reg_base_num, sh64_register_convert_to_virtual)
1583 (sh64_register_convert_to_raw, sh64_fv_reg_base_num)
1584 (sh64_dr_reg_base_num, sh64_fpp_reg_base_num): Add gdbarch parameter
1585 and update caller. Replace current_gdbarch by gdbarch.
1586 (sh64_extract_return_value, sh64_store_return_value): Use
1587 get_regcache_arch to get at the current architecture by regcache.
1588 * sh-tdep.c (sh_sh_register_name, sh_sh3_register_name)
1589 (sh_sh3e_register_name, sh_sh2e_register_name, sh_sh2a_register_name)
1590 (sh_sh2a_nofpu_register_name, sh_sh_dsp_register_name)
1591 (sh_sh3_dsp_register_name, sh_sh4_register_name)
1592 (sh_sh4_nofpu_register_name, sh_sh4al_dsp_register_name): Add gdbarch
1594 (fv_reg_base_num, dr_reg_base_num, sh_justify_value_in_reg)
1595 (sh_next_flt_argreg): Add gdbarch parameter and update caller. Replace
1596 current_gdbarch by gdbarch.
1597 (sh_extract_return_value_fpu, sh_store_return_value_fpu): Use
1598 get_regcache_arch to get at the current architecture by regcache.
1599 * sparc-tdep.c (sparc32_register_name): Add gdbarch parameter.
1600 * sparc64-tdep.c (sparc64_register_name): Add gdbarch parameter.
1601 * v850-tdep.c (v850_register_name, v850e_register_name): Add gdbarch
1603 (v850_unwind_sp, v850_unwind_pc): Replace current_gdbarch by gdbarch.
1604 * xtensa-tdep.c (xtensa_register_name): Add gdbarch parameter. Replace
1605 current_gdbarch by gdbarch.
1606 (xtensa_pseudo_register_read, xtensa_pseudo_register_write)
1607 (xtensa_frame_prev_register): Add gdbarch parameter to
1608 xtensa_register_name call.
1610 2007-10-31 Ulrich Weigand <uweigand@de.ibm.com>
1612 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Fall back to
1613 find_solib_trampoline_target if PC is not in .plt section.
1615 2007-10-31 Ulrich Weigand <uweigand@de.ibm.com>
1617 * elfread.c (elf_symtab_read): When constructing a solib trampoline
1618 minimal symbol from an undefined dynamic symbol, use proper section.
1620 2007-10-31 Markus Deuling <deuling@de.ibm.com>
1622 * arm-linux-nat.c (fetch_register, fetch_regs): Use get_regcache_arch
1623 to get at the current architecture by regcache.
1625 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1627 * libunwind-frame.c (libunwind_frame_sniffer)
1628 libunwind_frame_prev_register, libunwind_sigtramp_frame_sniffer)
1629 (libunwind_frame_cache): Use get_frame_arch to get at the current
1630 architecture by frame_info.
1631 (libunwind_get_reg_special): Replace current_gdbarch by gdbarch.
1633 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1635 * iq2000-tdep.c (iq2000_frame_prev_register): Use get_frame_arch to get
1636 at the current architecture by frame_info.
1638 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1640 * inf-child.c (inf_child_fetch_inferior_registers): Use
1641 get_regcache_arch to get at the current architecture by regcache.
1643 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1645 * inf-ptrace.c (inf_ptrace_fetch_registers)
1646 (inf_ptrace_fetch_register, inf_ptrace_store_register)
1647 (inf_ptrace_store_registers): Use get_regcache_arch to get at the
1648 current architecture by regcache.
1650 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1652 * hpux-thread.c (hpux_thread_fetch_registers)
1653 (hpux_thread_store_registers): Use get_regcache_arch to get at the
1654 current architecture by regcache.
1656 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1658 * hppa-tdep.c (hppa_frame_cache): Use get_frame_arch to get at the
1659 current architecture by frame_info.
1661 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1663 * go32-nat.c (fetch_register, go32_fetch_registers, store_register)
1664 (go32_store_registers): Use get_regcache_arch to get at the current
1665 architecture by regcache.
1667 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1669 * gdbtypes.c (gdbtypes_post_init): Replace current_gdbarch by gdbarch.
1671 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1673 * frv-linux-tdep.c (frv_linux_sigtramp_frame_cache): Use get_frame_arch
1674 to get at the current architecture by frame_info.
1676 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1678 * f-lang.c (build_fortran_types): Replace current_gdbarch by gdbarch.
1680 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1682 * core-regset.c (fetch_core_registers): Use get_regcache_arch to get at
1683 the current architecture by regcache.
1685 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1687 * corelow.c (get_core_registers): Use get_regcache_arch to get at the
1688 current architecture by regcache.
1690 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1692 * bsd-uthread.c (bsd_uthread_fetch_registers)
1693 (bsd_uthread_store_registers): Use get_regcache_arch to get at the
1694 current architecture by regcache.
1696 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1698 * avr-tdep.c (avr_frame_unwind_cache, avr_frame_prev_register): Use
1699 get_frame_arch to get at the current architecture by frame_info.
1701 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1703 * arm-tdep.c (arm_get_next_pc): Replace current_gdbarch by gdbarch.
1705 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1707 * armnbsd-nat.c (arm_supply_gregset, fetch_register, store_register)
1708 (store_regs): Use get_regcache_arch to get at the current architecture
1711 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1713 * arm-linux-tdep.c (arm_linux_supply_gregset): Use get_regcache_arch
1714 to get at the current architecture by regcache.
1716 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1718 * alphabsd-nat.c (alphabsd_fetch_inferior_registers)
1719 (alphabsd_store_inferior_registers): Use get_regcache_arch to get at
1720 the current architecture by regcache.
1722 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1724 * ada-lang.c (ada_language_arch_info): Replace current_gdbarch by
1727 2007-10-30 Daniel Jacobowitz <dan@codesourcery.com>
1729 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Check the selected
1730 soft float and vector ABIs. Support the generic vector ABI for
1732 (do_ppc_sysv_return_value): Likewise. Correct argument types and
1734 (ppc64_sysv_abi_push_dummy_call): Assert that floating point is
1736 * ppc-tdep.h (enum powerpc_vector_abi): New.
1737 (struct gdbarch_tdep): Add soft_float and vector_abi.
1738 * rs6000-tdep.c (setpowerpccmdlist, showpowerpccmdlist)
1739 (powerpc_soft_float_global, powerpc_vector_strings)
1740 (powerpc_vector_abi_global, powerpc_vector_abi_string): New.
1741 (rs6000_gdbarch_init): Check for soft-float and vector ABI markings.
1742 (set_powerpc_command, show_powerpc_command, powerpc_set_soft_float)
1743 (powerpc_set_vector_abi): New.
1744 (_initialize_rs6000_tdep): Register "set powerpc" and "show powerpc"
1746 * Makefile.in (elf_ppc_h): New.
1747 (rs6000-tdep.o): Update.
1749 2007-10-29 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
1751 * ppc-linux-tdep.c (ppc32_linux_reg_offsets): Corrected
1752 swapped offsets and VRSAVE offset.
1753 (ppc64_linux_reg_offsets): Corrected swapped offsets.
1754 (ppc32_linux_vrregset): Added.
1755 (ppc_linux_regset_from_core_section): Added support for
1756 .reg-ppc-vmx section.
1757 * ppc-tdep.h (ppc_altivec_support_p): Declare.
1758 (ppc_supply_vrregset): Declare.
1759 (ppc_collect_vrregset): Declare.
1760 * rs6000-tdep.c (ppc_altivec_support_p): Added.
1761 (ppc_supply_vrregset): Added.
1762 (ppc_collect_vrregset): Added.
1763 * corelow.c (get_core_registers): Added support for
1764 .reg-ppc-vmx section.
1766 2007-10-29 Joel Brobecker <brobecker@adacore.com>
1770 2007-10-26 Jim Blandy <jimb@codesourcery.com>
1772 * ax-gdb.h (expr_to_address_and_size): Delete declaration for
1775 * tracepoint.c (tracepoint_operation): Report the deletion event
1776 after we have unlinked the tracepoint from the list, and use the
1777 proper tracepoint number.
1779 * ax-gdb.c (expr_to_agent): Delete unused function.
1780 (expr_to_address_and_size): Delete #if 0'd function.
1781 * ax-gdb.h (expr_to_agent): Delete declaration.
1783 * ax-gdb.c (gen_cast): Remove redundant assignment to
1784 value->type. Doc fix.
1786 * ax-general.c (gen_traced_pop, gen_int_literal)
1787 (gen_usual_arithmetic): Check for typedefs.
1789 2007-10-26 Joel Brobecker <brobecker@adacore.com>
1791 * parse.c (prefixify_expression): Minor reformatting.
1793 2007-10-25 Daniel Jacobowitz <dan@codesourcery.com>
1795 * version.in: Use dot instead of dash.
1797 2007-10-25 Daniel Jacobowitz <dan@codesourcery.com>
1799 * linux-thread-db.c (check_for_thread_db): Only print if info_verbose.
1801 2007-10-25 Pedro Alves <pedro_alves@portugalmail.pt>
1803 * memory-map.c (parse_memory_map): Don't use an empty struct
1806 2007-10-25 Pedro Alves <pedro_alves@portugalmail.pt>
1808 * signals/signals.c (signals): Update pointer to enum
1809 target_signal declaration.
1811 2007-10-25 Wu Zhou <woodzltc@cn.ibm.com>
1812 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
1813 Jim Blandy <jimb@codesourcery.com>
1815 * dwarf2read.c (read_partial_die): check the value
1816 of DW_AT_calling_convention in Fortran programs.
1818 2007-10-25 Wu Zhou <woodzltc@cn.ibm.com>
1819 Thiago Jung Bauermann <bauerman@br.ibm.com>
1821 * c-exp.y (YYSTYPE): Add typed_val_decfloat for decimal
1822 floating point in YYSTYPE union.
1823 (DECFLOAT) Add token and expression element handling code.
1824 (parse_number): Parse DFP constants, which end with suffix 'df',
1825 'dd' or 'dl'. Return DECFLOAT.
1826 * eval.c (evaluate_subexp_standard): Call value_from_decfloat to
1828 * expression.h (enum exp_opcode): Add an opcode (OP_DECFLOAT)
1830 (union exp_element): Add decfloatconst to represent DFP
1831 elements, which is 16 bytes by default.
1832 * parse.c (write_exp_elt_decfloatcst): New function to write a
1833 decimal float const into the expression.
1834 (operator_length_standard): Set operator length for OP_DECFLOAT
1836 * parser-defs.h (write_exp_elt_decfloatcst): Prototype.
1837 * valarith.c (value_neg): Add code to handle the negation
1838 operation of DFP values.
1839 * value.c (value_from_decfloat): New function to get the value
1840 from a decimal floating point.
1841 * value.h (value_from_decfloat): Prototype.
1843 2007-10-25 Wu Zhou <woodzltc@cn.ibm.com>
1844 Thiago Jung Bauermann <bauerman@br.ibm.com>
1846 * c-lang.c (c_create_fundamental_type): Create fundamental
1848 * c-typeprint.c (c_type_print_varspec_prefix): Add
1849 TYPE_CODE_DECFLOAT to no prefix needed case.
1850 (c_type_print_varspec_suffix): Add TYPE_CODE_DECFLOAT to no
1852 * c-valprint.c (c_val_print): Call print_decimal_floating to
1854 * dwarf2read.c (read_base_type): Read DW_ATE_decimal_float
1855 attribute code and return TYPE_CODE_DECFLOAT.
1856 (dwarf_base_type): Set dwarf2_fundamental_type for DFP values.
1857 * gdbtypes.c (gdbtypes_post_init): Initialize builtin_decfloat,
1858 builtin_decdouble and builtin_declong.
1859 * gdbtypes.h (enum type_code): Add TYPE_CODE_DECFLOAT as a
1861 (FT_DECFLOAT, FT_DBL_PREC_DECFLOAT, FT_EXT_PREC_DECFLOAT): New
1862 types, for decimal floating point.
1863 (FT_NUM_MEMBERS): Increment, new types added.
1864 (struct builtin_type): Add builtin_decfloat, builtin_decdouble
1865 and builtin_declong.
1866 * valprint.c (print_decimal_floating): New function to print DFP
1868 * value.h (print_decimal_floating): Prototype.
1870 2007-10-25 Wu Zhou <woodzltc@cn.ibm.com>
1871 Thiago Jung Bauermann <bauerman@br.ibm.com>
1873 * Makefile.in (LIBDECNUMBER_DIR, LIBDECNUMBER, LIBDECNUMBER_SRC
1874 LIBDECNUMBER_CFLAGS): New macros for libdecnumber.
1875 (INTERNAL_CFLAGS_BASE): Add LIBDECNUMBER_CFLAGS in.
1876 (INSTALLED_LIBS): Add -ldecnumber in.
1877 (CLIBS): Add LIBDECNUMBER in.
1878 (decimal128_h, decimal64_h, decimal32_h): New macros for decimal
1880 (dfp_h): New macros for decimal floating point.
1881 (dfp.o): New target.
1882 (COMMON_OBS): Add dfp.o in.
1883 (c-exp.o): Add dfp_h as dependency.
1884 (valprint.o): Add dfp_h as dependency.
1885 (value.o): Add dfp_h as dependency.
1886 * dfp.h: New header file for decimal floating point support in
1888 * dfp.c: New source file for decimal floating point support in
1889 GDB. Implement decimal_from_string and decimal_to_string based
1890 on libdecnumber API.
1891 * configure.ac: Add AC_C_BIGENDIAN test.
1892 * config.in, configure: Regenerate.
1894 2007-10-25 David Ung <davidu@mips.com>
1895 Maciej W. Rozycki <macro@mips.com>
1898 * infcmd.c (registers_info): Check for a user register before
1899 calling target's gdbarch_print_registers_info(). If found to be
1900 so, extract the implicit value of user register and call
1901 print_scalar_formatted().
1902 * Makefile.in: (infcmd.o): Add $(user_regs_h).
1904 2007-10-25 Joel Brobecker <brobecker@adacore.com>
1906 * NEWS: Document status of hppa64-hpux support.
1908 2007-10-24 Ulrich Weigand <uweigand@de.ibm.com>
1910 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets): Call
1911 set_solib_ops to install SVR4 operations.
1912 (_initialize_svr4_solib): Do not set current_target_so_ops.
1914 * config/i386/i386gnu.mh (NATDEPFILES): Move solib.o, solib-svr4.o ...
1915 * config/i386/i386gnu.mt (TDEPFILES): ... to here.
1917 2007-10-24 Ulrich Weigand <uweigand@de.ibm.com>
1919 * solib-svr4.c (legacy_svr4_fetch_link_map_offsets_hook): Remove.
1920 (solib_svr4_init): Initialize fetch_link_map_offsets to NULL.
1921 * solib-svr4.h (legacy_svr4_fetch_link_map_offsets_hook): Remove.
1922 * solib-legacy.c: Remove file.
1924 * config/alpha/alpha-linux.mt (TDEPFILES): Remove solib-legacy.o.
1925 * config/arm/linux.mt (TDEPFILES): Likewise.
1926 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
1927 * config/ia64/linux.mt (TDEPFILES): Likewise.
1928 * config/m32r/linux.mt (TDEPFILES): Likewise.
1929 * config/powerpc/linux.mt (TDEPFILES): Likewise.
1930 * config/s390/s390.mt (TDEPFILES): Likewise.
1932 * alpha-linux-tdep.c (alpha_linux_init_abi): Call
1933 set_solib_svr4_fetch_link_map_offsets.
1934 * i386gnu-tdep.c (i386gnu_init_abi): Likewise.
1935 * ia64-linux-tdep.c (ia64_linux_init_abi): Likewise.
1937 * i386gnu-tdep.c: Include "solib-svr4.h".
1938 * Makefile.in: Update dependencies.
1940 2007-10-24 Ulrich Weigand <uweigand@de.ibm.com>
1942 * i386-nto-tdep.c: Include "solib.h".
1943 (i386nto_init_abi): Use set_solib_ops instead of overwriting
1944 current_target_so_ops members.
1945 * solist.h (TARGET_SO_RELOCATE_SECTION_ADDRESSES): Remove.
1946 (TARGET_SO_FIND_AND_OPEN_SOLIB): Remove.
1947 (TARGET_SO_IN_DYNSYM_RESOLVE_CODE): Remove.
1948 * Makefile.in: Update dependencies.
1950 2007-10-24 Ulrich Weigand <uweigand@de.ibm.com>
1952 * arm-wince-tdep.c: Include "solib.h" and "solib-target.h".
1953 (arm_wince_init_abi): Call set_solib_ops.
1954 * i386-cygwin-tdep.c: Include "solib.h" and "solib-target.h".
1955 (i386_cygwin_init_abi): Call set_solib_ops.
1956 * solib-target.c: Include "solib-target.h".
1957 (solib_target_so_ops): Make global.
1958 (_initialize_solib_target): Do not set current_target_so_ops.
1959 * solib-target.h: New file.
1960 * Makefile.in: Update dependencies.
1962 2007-10-24 Ulrich Weigand <uweigand@de.ibm.com>
1964 * mips-irix-tdep.c: Include "gdb_string.h", "solib.h", "solib-irix.h".
1965 (mips_irix_init_abi): Call set_solib_ops.
1966 * solib-irix.c: Include "solib.h" and "solib-irix.h".
1967 (irix_so_ops): Make global.
1968 (_initialize_irix_solib): Do not set current_target_so_ops.
1969 * solib-irix.h: New file.
1970 * Makefile.in: Update dependencies.
1972 2007-10-24 Ulrich Weigand <uweigand@de.ibm.com>
1974 * configure.tgt: Remove hppa*64*-*-hpux11* special case.
1975 * config/pa/hppa64.mt: Delete file.
1976 * config/pa/hppahpux.mt (MT_CFLAGS): Remove.
1977 (TDEPFILES): Move somread.o to ...
1978 * config/pa/hpux.mh (NATDEPFILES): ... here.
1980 * configure.ac: Add check for elf_hp.h header.
1981 Search libdl and libxpdl for dlgetmodinfo.
1982 * config.in, configure: Regenerate.
1983 * solib-pa64.c: Conditionalize compilation on #ifdef HAVE_ELF_HP_H
1984 instead of #ifndef PA_SOM_ONLY. Include "solib.h".
1985 (pa64_solib_select): Take gdbarch instead of tdep argument. Call
1986 set_solib_ops instead of modifying current_target_so_ops.
1987 * solib-pa64.h (pa64_solib_select): Update prototype.
1988 * solib-som.c: Remove include of "som.h". Include "solib.h".
1989 (som_solib_select): Take gdbarch instead of tdep argument. Call
1990 set_solib_ops instead of modifying current_target_so_ops.
1991 * solib-som.h (som_solib_select): Update prototype.
1992 * hppa-hpux-tdep.c (hppa_hpux_som_init_abi): Pass gdbarch instead
1993 of tdep to som_solib_select call.
1994 (hppa_hpux_elf_init_abi): Pass gdbarch instead of tdep to
1995 pa64_solib_select call.
1996 * Makefile.in: Update dependencies.
1998 2007-10-24 Ulrich Weigand <uweigand@de.ibm.com>
2000 * frv-tdep.c: Include "solib.h".
2001 (frv_gdbarch_init): Call set_solib_ops.
2002 * frv-tdep.h (struct target_so_ops): Add forward reference.
2003 (frv_so_ops): Add extern declaration.
2004 * solib-frv.c (frv_so_ops): Make global.
2005 (_initialize_frv_solib): Do not set current_target_so_ops.
2006 * Makefile.in: Update dependencies.
2008 2007-10-24 Ulrich Weigand <uweigand@de.ibm.com>
2010 * solib.c (solib_global_lookup): Use solib_ops instead of global
2011 current_target_so_ops.
2013 2007-10-24 Ulrich Weigand <uweigand@de.ibm.com>
2015 * config/frv/frv.mt (DEPRECATED_TM_FILE): Remove.
2016 * config/frv-tm-frv.h: Delete file.
2018 2007-10-24 Daniel Jacobowitz <dan@codesourcery.com>
2020 * NEWS: Mention gdbserver support for non-libthread_db operation.
2022 2007-10-24 Daniel Jacobowitz <dan@codesourcery.com>
2024 * amd64-tdep.c (amd64_convert_register_p): Delete.
2025 (amd64_init_abi): Use i387_convert_register_p.
2026 * alpha-tdep.c (alpha_convert_register_p): Return zero for
2028 (alpha_register_to_value, alpha_value_to_register): Do not handle
2030 * i386-tdep.c (i386_convert_register_p): Use i387_convert_register_p.
2031 * i387-tdep.c (i387_convert_register_p): New.
2032 (i387_register_to_value, i387_value_to_register): Update comments.
2033 * i387-tdep.h (i387_convert_register_p): Declare.
2034 * ia64-tdep.c (ia64_convert_register_p): Return zero for
2035 builtin_type_ia64_ext.
2036 (ia64_gdbarch_init): Do not initialize builtin_type_ia64_ext here.
2037 (_initialize_ia64_tdep): Initialize builtin_type_ia64_ext here.
2038 * m68k-tdep.c (m68k_convert_register_p): Return zero for
2039 builtin_type_m68881_ext.
2040 (m68k_register_to_value, m68k_value_to_register): Update comments.
2042 2007-10-24 Nathan Sidwell <nathan@codesourcery.com>
2044 * target-memory.c (claim_memory): Propagate baton for split memory
2047 2007-10-24 Pedro Alves <pedro_alves@portugalmail.pt>
2050 * sol-thread.c (sol_thread_fetch_registers): Work around gcc 3.4
2053 2007-10-24 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
2055 * symtab.c (find_line_symtab): scan through psymtabs
2056 when exact_match is zero.
2058 2007-10-23 Atsushi Nemoto <anemo@mba.ocn.ne.jp>
2060 * mips-tdep.c (LL_OPCODE, LLD_OPCODE, SC_OPCODE, SCD_OPCODE): Define.
2061 (deal_with_atomic_sequence): New.
2062 (mips_software_single_step): Use it.
2064 2007-10-23 Daniel Jacobowitz <dan@codesourcery.com>
2067 * configure.ac: Modify $LIBINTL before the BFD check.
2068 * configure: Regenerated.
2070 2007-10-23 Joel Brobecker <brobecker@adacore.com>
2072 * buildsym.c (free_pending_blocks): Remove commented-out code.
2073 (make_blockvector): Likewise. Re-use free_pending_blocks.
2074 (end_symtab): Remove commented-out code.
2076 2007-10-22 Daniel Jacobowitz <dan@codesourcery.com>
2078 * top.c (command_loop): Fix output for shrinkage.
2080 2007-10-22 Daniel Jacobowitz <dan@codesourcery.com>
2082 * cp-name-parser.y (exp1): Add & ( var ) as a reference expression.
2083 (exp): Remove and document function-like casts.
2085 2007-10-22 Daniel Jacobowitz <dan@codesourcery.com>
2087 * cp-support.c: Include "safe-ctype.h".
2088 (cp_already_canonical): New function.
2089 (cp_canonicalize_string): Use it. Return NULL for already canonical
2091 (mangled_name_to_comp): Update call to cp_demangled_name_to_comp.
2092 (cp_func_name, remove_params): Likewise.
2093 (cp_find_first_component_aux): Use ISSPACE.
2094 * cp-support.h (cp_demangled_name_to_comp): Correct comment. Remove
2096 * cp-name-parser.y (ALLOC_CHUNK): Define.
2097 (struct demangle_info): Add PREV and NEXT. Increase the size of
2099 (d_grab): Convert to a function.
2100 (allocate_info): Rewrite.
2101 (cp_demangled_name_to_comp): Remove MEMORY argument. Do not use
2102 strlen. Update call to allocate_info. Do not free it on failure.
2103 (main): Update calls to cp_demangled_name_to_comp.
2104 * Makefile.in (cp-support.o): Update.
2106 2007-10-22 Markus Deuling <deuling@de.ibm.com>
2108 * std-regs.c (value_of_builtin_frame_fp_reg)
2109 value_of_builtin_frame_pc_reg, value_of_builtin_frame_sp_reg)
2110 value_of_builtin_frame_ps_reg): Use get_frame_arch to get at the
2111 current architecture by frame_info.
2113 2007-10-22 Markus Deuling <deuling@de.ibm.com>
2115 * reggroups.c (default_register_reggroup_p): Replace current_gdbarch
2118 2007-10-22 Markus Deuling <deuling@de.ibm.com>
2120 * infcmd.c (default_print_registers_info, print_return_value)
2121 (print_vector_info, print_float_info): Replace current_gdbarch by
2123 (registers_info): Use get_frame_arch to get at the current
2124 architecture by frame_info.
2126 2007-10-22 Markus Deuling <deuling@de.ibm.com>
2128 * i387-tdep.c (i387_collect_fsave, i387_collect_fxsave): Use
2129 get_regcache_arch to get at the current architecture by regcache.
2131 2007-10-22 Markus Deuling <deuling@de.ibm.com>
2133 * target.c (debug_print_register): Use get_regcache_arch to get at the
2134 current architecture by regcache.
2136 2007-10-21 Daniel Jacobowitz <dan@codesourcery.com>
2138 * dwarf2read.c (read_file_scope): Add a comment.
2139 (dwarf2_add_field, dwarf2_add_member_fn, read_structure_type)
2140 (read_enumeration_type, process_enumeration_scope, read_array_type)
2141 (read_typedef, read_base_type, read_subrange_type)
2142 (read_unspecified_type): Use dwarf2_name.
2144 2007-10-21 Daniel Jacobowitz <dan@codesourcery.com>
2146 * coffread.c (coff_symfile_finish): Call dwarf2_free_objfile.
2147 * dwarf2read.c (dwarf2_free_objfile): New.
2148 * elfread.c (elf_symfile_finish): Call dwarf2_free_objfile.
2149 * symfile.h (dwarf2_free_objfile): Declare.
2151 2007-10-21 Joel Brobecker <brobecker@adacore.com>
2153 * hppa-hpux-nat.c (hppa_hpux_store_register): Add missing semi-colon.
2155 2007-10-21 Luis Machado <luisgpm@br.ibm.com>
2157 * rs6000-tdep.c (ppc_dwarf2_frame_init_reg): New function.
2158 * (rs6000_gdbarch_init): Install ppc_dwarf2_frame_init_reg as
2159 default dwarf2_frame_set_init_reg function.
2161 2007-10-21 Pedro Alves <pedro_alves@portugalmail.pt>
2163 * NEWS: Mention native MinGW configuration.
2165 2007-10-19 Ulrich Weigand <uweigand@de.ibm.com>
2167 * gdbarch.sh: Remove "macro" column of input table. Remove handling
2168 of "macro" column throughout the file. Remove (empty) "macro" entry
2169 of all gdbarch functions.
2171 2007-10-19 Ulrich Weigand <uweigand@de.ibm.com>
2173 * gdbarch.sh (sofun_address_maybe_missing): New gdbarch variable.
2174 * gdbarch.c, gdbarch.h: Regenerate.
2175 * dbxread.c (find_stab_function_addr): Define unconditionally.
2176 (read_dbx_symtab): Use gdbarch_sofun_address_maybe_missing
2177 instead of SOFUN_ADDRESS_MAYBE_MISSING.
2178 (end_psymtab): Likewise.
2179 (process_one_symbol): Likewise.
2180 * mdebugread.c (parse_partial_symbols): Likewise.
2182 * symtab.h (struct minimal_symbol): Always define "filename" member.
2183 * elfread.c (elf_symtab_read): Use msym->filename unconditionally.
2184 * minsyms.c (lookup_minimal_symbol): Likewise.
2185 * symmisc.c (dump_msymbols): Likewise.
2187 * config/i386/i386sol2.mt (DEPRECATED_TM_FILE): Remove.
2188 * config/i386/linux.mt (DEPRECATED_TM_FILE): Remove.
2189 * config/i386/tm-i386sol2.h: Remove file.
2190 * config/i386/tm-linux.h: Remove file.
2191 * i386-linux-tdep.c (i386_linux_init_abi): Add call to
2192 set_gdbarch_sofun_address_maybe_missing.
2193 * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
2195 * config/powerpc/linux.mt (DEPRECATED_TM_FILE): Remove.
2196 * config/powerpc/nbsd.mt (DEPRECATED_TM_FILE): Remove.
2197 * config/powerpc/obsd.mt (DEPRECATED_TM_FILE): Remove.
2198 * config/powerpc/ppc-eabi.mt (DEPRECATED_TM_FILE): Remove.
2199 * config/powerpc/ppc-sim.mt (DEPRECATED_TM_FILE): Remove.
2200 * config/powerpc/tm-ppc-eabi.h: Remove file.
2201 * rs6000-tdep.c (rs6000_gdbarch_init): Add call to
2202 set_gdbarch_sofun_address_maybe_missing.
2204 * config/sparc/sol2-64.mt (DEPRECATED_TM_FILE): Remove.
2205 * config/sparc/sol2.mt (DEPRECATED_TM_FILE): Remove.
2206 * config/sparc/tm-sol2.h: Remove file.
2207 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Add call to
2208 set_gdbarch_sofun_address_maybe_missing.
2209 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Likewise.
2211 2007-10-19 Ulrich Weigand <uweigand@de.ibm.com>
2213 * gdbarch.sh (static_transform_name): New gdbarch callback.
2214 * gdbarch.c, gdbarch.h: Regenerate.
2215 * dbxread.c (read_dbx_symtab): Use gdbarch_static_transform_name
2216 instead of STATIC_TRANSFORM_NAME.
2217 * mdebugread.c (parse_partial_symbols): Likewise.
2218 * stabsread.c (define_symbol): Likewise.
2219 * xcoffread.c (scan_xcoff_symtab): Likewise.
2221 * config/i368/tm-i386sol2.h (STATIC_TRANSFORM_NAME): Remove.
2222 (IS_STATIC_TRANSFORM_NAME): Remove.
2223 * i386-tdep.c (sunpro_static_transform_name): Remove, move to ...
2224 * i386-sol2-tdep.c (i386_sol2_static_transform_name): ... here.
2225 (i386_sol2_init_abi): Install it.
2227 * config/sparc/tm-sol2.h (STATIC_TRANSFORM_NAME): Remove.
2228 (IS_STATIC_TRANSFORM_NAME): Remove.
2229 * sparc-tdep.c (sparc_stabs_unglobalize_name): Remove, move to ...
2230 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): ... here.
2231 (sparc32_sol2_init_abi): Install it.
2232 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Likewise.
2233 * sparc-tdep.h (sparc_sol2_static_transform_name): Add prototype.
2235 2007-10-18 Daniel Jacobowitz <dan@codesourcery.com>
2237 * mips-tdep.c (mips_xfer_register): Take a gdbarch argument.
2238 (mips_n32n64_return_value, mips_o32_return_value)
2239 (mips_o64_return_value): Update calls to mips_xfer_register.
2241 2007-10-17 Daniel Jacobowitz <dan@codesourcery.com>
2243 * frame.c (frame_unwind_unsigned_register): Delete.
2244 (frame_sp_unwind): Use frame_unwind_register_unsigned instead.
2245 * frame.h (frame_unwind_unsigned_register): Delete prototype.
2247 * alpha-linux-tdep.c, alpha-mdebug-tdep.c, alpha-tdep.c,
2248 avr-tdep.c, cris-tdep.c, frv-tdep.c, m68hc11-tdep.c, mn10300-tdep.c,
2249 mt-tdep.c: Replace frame_unwind_unsigned_register with
2250 frame_unwind_register_unsigned.
2252 2007-10-16 Pedro Alves <pedro_alves@portugalmail.pt>
2254 * config/i386/mingw.mh, config/i386/mingw.mt: New files.
2255 * configure.tgt (i[34567]86-*-mingw32*): Set gdb_target = mingw.
2256 * win32-nat.c: Only include cygwin.h on Cygwin host. Don't
2258 (cygwin_load_start, cygwin_load_end, cygwin_exceptions): Disable
2259 if not building on Cygwin.
2260 (win32_make_so, handle_output_debug_string, handle_exception)
2261 (do_initial_win32_stuff): Wrap Cygwin specific code in __CYGWIN__.
2262 (win32_attach): Only fallback to Cygwin pids if building on
2264 (win32_pid_to_exec_file): Disable Cygwin specific code, if not
2266 (win32_create_inferior): Disable starting the inferior through a
2267 shell, environment var processing and tty handling if not building
2269 (cygwin_pid_to_str): Rename to ...
2270 (win32_pid_to_str): ... this.
2271 (init_win32_ops): Update use of win32_pid_to_str. Disable "shell"
2272 and "cygwin-exceptions" commands if not building on Cygwin.
2274 2007-10-16 Gaius Mulley <gaius@glam.ac.uk>
2276 * doc/gdb.texinfo: Add TSIZE definition, removed
2277 statement about unbounded arrays being unimplemented.
2278 * m2-valprint.c (m2_print_array_contents): New function.
2279 (m2_print_unbounded_array): New function.
2280 (m2_print_array_contents): New function.
2281 * m2-typeprint.c (m2_unbounded_array): New function.
2282 (m2_is_unbounded_array): New function.
2283 (m2_print_type): Test for unbounded array when walking
2285 * m2-lang.h: Added extern m2_is_unbounded_array.
2286 * m2-lang.c (evaluate_subexp_modula2): New function.
2287 (exp_descriptor_modula2): New structure.
2288 (m2_language_defn): Use exp_descriptor_modula2.
2289 * m2-exp.y: Added TSIZE and binary subscript.
2291 2007-10-16 Daniel Jacobowitz <dan@codesourcery.com>
2293 * mi/mi-main.c (captured_mi_execute_command): Clear mi_error_message
2296 2007-10-16 Kevin Buettner <kevinb@redhat.com>
2298 * m32r-tdep.c (decode_prologue): Sign extend offset for
2300 (m32r_frame_unwind_cache): Likewise.
2302 2007-10-15 Thiago Jung Bauermann <bauerman@br.ibm.com>
2304 * rs6000-tdep.c (skip_prologue): Restore comment with
2305 function description to its proper place.
2307 2007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
2309 * NEWS: Mention gdbserver PowerPC improvements.
2311 2007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
2313 * features/Makefile (WHICH): Add PowerPC register definitions.
2314 (rs6000/powerpc-32-expedite, rs6000/powerpc-e500-expedite)
2315 (rs6000/powerpc-64-expedite): New macros.
2316 ($(outdir)/%.dat): Handle subdirectories.
2317 * regformats/rs6000/powerpc-32.dat, regformats/rs6000/powerpc-64.dat,
2318 regformats/rs6000/powerpc-e500.dat: New generated files.
2320 2007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
2322 * ppc-linux-nat.c (ppc_linux_read_description): New.
2323 (_initialize_ppc_linux_nat): Set to_read_description.
2324 * ppc-tdep.h (tdesc_powerpc_e500): Declare.
2326 2007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
2328 * NEWS: Document target described register support for PowerPC.
2329 * ppc-tdep.h: Remove ppc_spr constants.
2330 (struct gdbarch_tdep): Remove regs, ppc_sr0_regnum, and
2331 ppc_builtin_type_vec128 members.
2332 (PPC_R0_REGNUM, PPC_F0_REGNUM, PPC_PC_REGNUM, PPC_MSR_REGNUM)
2333 (PPC_CR_REGNUM, PPC_LR_REGNUM, PPC_CTR_REGNUM, PPC_XER_REGNUM)
2334 (PPC_FPSCR_REGNUM, PPC_MQ_REGNUM, PPC_SPE_UPPER_GP0_REGNUM)
2335 (PPC_SPE_ACC_REGNUM, PPC_SPE_FSCR_REGNUM, PPC_VR0_REGNUM)
2336 (PPC_VSCR_REGNUM, PPC_VRSAVE_REGNUM, PPC_NUM_REGS): New constants.
2337 * rs6000-tdep.c: Include preparsed descriptions.
2338 (init_sim_regno_table): Do not iterate over pseudo registers.
2339 Look up segment registers by name. Use sim_spr_register_name
2341 (rs6000_register_sim_regno): Call init_sim_regno_table here.
2342 (rs6000_builtin_type_vec128): Delete.
2343 (rs6000_register_name): Only handle SPE pseudo registers and upper
2344 halves. Call tdesc_register_name for everything else.
2345 (rs6000_register_type): Delete. Replace with...
2346 (rs6000_pseudo_register_type): ...this new function. Only handle
2347 SPE pseudo registers.
2348 (rs6000_register_reggroup_p): Delete. Replace with...
2349 (rs6000_pseudo_register_reggroup_p): ...this new function. Only
2350 handle SPE pseudo registers.
2351 (rs6000_convert_register_p): Use ppc_fp0_regnum instead of
2353 (rs6000_register_to_value, rs6000_value_to_register): Remove check
2355 (e500_register_reggroup_p): Delete.
2356 (STR, R, R4, R8, R16, F, P8, R32, R64, R0, A4, S, S4, SN4, S64)
2357 (COMMON_UISA_REGS, PPC_UISA_SPRS, PPC_UISA_NOFP_SPRS)
2358 (PPC_SEGMENT_REGS, PPC_OEA_SPRS, PPC_ALTIVEC_REGS, PPC_SPE_GP_REGS)
2359 (PPC_SPE_UPPER_GP_REGS, PPC_EV_PSEUDO_REGS): Delete macros.
2360 (registers_powerpc, registers_403, registers_403GC, registers_505)
2361 (registers_860, registers_601, registers_602, registers_603)
2362 (registers_604, registers_750, registers_7400, registers_e500): Delete
2364 (struct variant): Delete nregs, npregs, num_tot_regs, and regs. Add
2366 (tot_num_registers, num_registers, num_pseudo_registers): Delete.
2367 (variants): Delete outdated comment. Use standard target descriptions
2368 instead of "struct reg" arrays.
2369 (init_variants): Delete.
2370 (rs6000_gdbarch_init): Do not guess word size from the BFD
2371 architecture if we have a target description. Select a variant
2372 before creating a new architecture. Use the variant's target
2373 description if the target did not define a register layout.
2374 Validate target-supplied registers. Reject mismatches. Use
2375 fixed register numbers and new constants instead of magic
2376 numbers. Call set_gdbarch_ps_regnum. Call tdesc_use_registers.
2377 (_initialize_rs6000_tdep): Initialize the preparsed target
2379 * target-descriptions.c (tdesc_predefined_types): Add int128 and
2381 (tdesc_find_register_early): New function.
2382 (tdesc_numbered_register): Use it.
2383 (tdesc_register_size): New function.
2384 (tdesc_use_registers): Take a target_desc argument. Do not use
2385 gdbarch_target_desc.
2386 * target-descriptions.h (tdesc_use_registers): Update prototype
2388 (tdesc_register_size): New prototype.
2389 * Makefile.in (powerpc_32_c, powerpc_403_c, powerpc_403gc_c)
2390 (powerpc_505_c, powerpc_601_c, powerpc_602_c, powerpc_603_c)
2391 (powerpc_604_c, powerpc_64_c, powerpc_7400_c, powerpc_750_c)
2392 (powerpc_860_c, powerpc_e500_c, rs6000_c): New macros.
2393 (rs6000-tdep.o): Update.
2394 * arm-tdep.c (arm_gdbarch_init): Update call to tdesc_use_registers.
2395 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
2396 * mips-tdep.c (mips_gdbarch_init): Likewise.
2398 2007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
2400 * features/rs6000/powerpc-32.c, features/rs6000/powerpc-403.c,
2401 features/rs6000/powerpc-403gc.c, features/rs6000/powerpc-505.c,
2402 features/rs6000/powerpc-601.c, features/rs6000/powerpc-602.c,
2403 features/rs6000/powerpc-603.c, features/rs6000/powerpc-604.c,
2404 features/rs6000/powerpc-64.c, features/rs6000/powerpc-7400.c,
2405 features/rs6000/powerpc-750.c, features/rs6000/powerpc-860.c,
2406 features/rs6000/powerpc-e500.c, features/rs6000/rs6000.c: New
2409 2007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
2411 * features/rs6000/power-altivec.xml, features/rs6000/power-core.xml,
2412 features/rs6000/power-fpu.xml, features/rs6000/power-oea.xml,
2413 features/rs6000/power-spe.xml, features/rs6000/power64-core.xml: New
2414 feature descriptions for standard PowerPC register sets.
2416 * features/rs6000/powerpc-32.xml, features/rs6000/powerpc-403.xml,
2417 features/rs6000/powerpc-403gc.xml, features/rs6000/powerpc-505.xml,
2418 features/rs6000/powerpc-601.xml, features/rs6000/powerpc-602.xml,
2419 features/rs6000/powerpc-603.xml, features/rs6000/powerpc-604.xml,
2420 features/rs6000/powerpc-64.xml, features/rs6000/powerpc-7400.xml,
2421 features/rs6000/powerpc-750.xml, features/rs6000/powerpc-860.xml,
2422 features/rs6000/powerpc-e500.xml, features/rs6000/rs6000.xml: New
2423 target descriptions for PowerPC processors.
2425 2007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
2427 * target-descriptions.c (tdesc_predefined_types): New.
2428 (tdesc_named_type): Use it.
2429 (tdesc_type_id, maint_print_c_tdesc_cmd): New functions.
2430 (_intialize_target_descriptions): Register "maint print c-tdesc".
2431 * features/Makefile (XMLTOC, CFILES, GDB): New macros.
2432 (cfiles, %.c): New rules.
2433 * features/arm-with-iwmmxt.c, features/mips-linux.c,
2434 features/mips64-linux.c: New generated files.
2436 * arm-linux-nat.c: Include preparsed description instead of
2438 (super_xfer_partial, arm_linux_xfer_partial): Remove.
2439 (arm_linux_read_description): New function.
2440 (_initialize_arm_linux_nat): Set to_read_description instead of
2441 to_xfer_partial. Initialize preparsed description.
2442 * config/arm/linux.mh (TDEP_XML): Delete.
2443 * mips-linux-nat.c: Include preparsed descriptions instead of
2445 (super_xfer_partial, mips_linux_xfer_partial): Remove.
2446 (mips_linux_read_description): New function.
2447 (_initialize_mips_linux_nat): Set to_read_description instead of
2448 to_xfer_partial. Initialize preparsed description.
2449 * config/mips/linux.mh (TDEP_XML): Delete.
2450 * Makefile.in (XMLFILES): Remove $(TDEP_XML).
2451 (features_headers, arm_with_iwmmxt_c, mips_linux_c)
2452 (mips64_linux_c): New macros.
2453 (arm-linux-nat.o, mips-linux-nat.o): Update.
2455 2007-10-15 Pierre Muller <muller@ics.u-strasbg.fr>
2457 * cp-abi.c (set_cp_abi_as_auto_default): ARI fix:
2458 Replace xasprintf by xstrprintf.
2459 symfile-mem.c (add_vsyscall_page): Ditto.
2461 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
2463 * ia64-linux-nat.c (ia64_register_addr): Add gdbarch parameter,
2464 replacing use of global current_gdbarch.
2465 (ia64_cannot_fetch_register, ia64_cannot_store_register): Likewise.
2466 (ia64_linux_fetch_register, ia64_linux_store_register): Update callers.
2468 * ia64-tdep.c (SIGCONTEXT_REGISTER_ADDRESS): Remove macro.
2469 (ia64_sigtramp_frame_init_saved_regs): Add next_frame parameter,
2470 replace uses of SIGCONTEXT_REGISTER_ADDRESS.
2471 (ia64_sigtramp_frame_cache): Update caller.
2473 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
2475 * gdbarch.sh (deprecated_use_struct_convention): Remove.
2476 (extract_return_value, store_return_value): Remove.
2477 (return_value): Remove default implementation.
2478 * gdbarch.c, gdbarch.h: Regenerate.
2480 * stack.c (return_command): Remove compatibility hack.
2481 * arch-utils.c (legacy_return_value): Remove.
2482 * arch-utils.h (legacy_return_value): Likewise.
2484 * arch-utils.c (always_use_struct_convention): Remove.
2485 * arch-utils.h (always_use_struct_convention): Likewise.
2486 * value.c (generic_use_struct_convention): Remove.
2487 * defs.h (generic_use_struct_convention): Likewise.
2489 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
2491 * avr-tdep.c (avr_return_value): New function.
2492 (avr_gdbarch_init): Call set_gdbarch_return_value instead of
2493 set_gdbarch_extract_return_value.
2495 * fvr-tdep.c (frv_return_value): New function.
2496 (frv_gdbarch_init): Call set_gdbarch_return_value instead of
2497 set_gdbarch_extract_return_value, set_gdbarch_store_return_value,
2498 and set_gdbarch_deprecated_use_struct_convention.
2500 * ia64-tdep.c (ia64_use_struct_convention): Make static.
2501 Add check for structure, union, or array types.
2502 (ia64_extract_return_value): Make static.
2503 (ia64_store_return_value): Make static. Support multi-word values.
2504 (ia64_return_value): New function.
2505 (ia64_gdbarch_init): Call set_gdbarch_return_value instead of
2506 set_gdbarch_extract_return_value, set_gdbarch_store_return_value,
2507 and set_gdbarch_deprecated_use_struct_convention.
2509 2007-10-12 Joel Brobecker <brobecker@adacore.com>
2511 * solib-target.c (solib_target_parse_libraries)
2512 [HAVEHAVE_LIBEXPAT not defined]: Fix thinko in return type.
2514 2007-10-12 Jim Blandy <jimb@codesourcery.com>
2516 * serial.h (struct serial_ops): Document read_prim to return zero
2518 * ser-base.c (do_ser_base_readchar): Return SERIAL_EOF when
2519 read_prim returns zero, not SERIAL_TIMEOUT.
2521 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
2523 * alpha-mdebug-tdep.c: Include "gdb_string.h".
2524 (find_proc_desc): Add fix-up code for setjmp procedure descriptor.
2525 * mdebugread.c (parse_procedure): Remove setjmp fix-up code.
2526 * Makefile.in (alpha-mdebug-tdep.o): Update dependencies.
2528 * config/alpha/alpha.mt (DEPRECATED_TM_FILE): Remove.
2529 * config/alpha/alpha-linux.mt (DEPRECATED_TM_FILE): Remove.
2530 * config/alpha/alpha-osf1.mt (DEPRECATED_TM_FILE): Remove.
2531 * config/alpha/fbsd.mt (DEPRECATED_TM_FILE): Remove.
2532 * config/alpha/tm-alpha.h: Remove file.
2534 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
2536 * breakpoint.c (breakpoint_sals_to_pc): Do not check for
2537 DEPRECATED_PC_REQUIRES_RUN_BEFORE_USE.
2539 * config/pa/tm-hppa.h: Delete file.
2540 * config/pa/hppa64.mt: Do not set DEPRECATED_TM_FILE.
2541 * config/pa/hppahpux.mt: Likewise.
2542 * config/pa/hppa.mt: Likewise.
2543 * config/pa/linux.mt: Likewise.
2544 * hppa-tdep.c (hppa_pc_requires_run_before_use): Delete.
2546 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
2548 * config/arm/nm-nbsdaout.h: Remove file.
2549 * config/nm-nbsdaout.h: Likewise.
2550 * config/nm-nbsd.h: Likewise.
2552 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
2554 * block.h (struct block): Remove "gcc_compile_flag" member.
2555 (BLOCK_GCC_COMPILED): Remove.
2556 * block.c (allocate_block): Do not clear BLOCK_GCC_COMPILED.
2557 * buildsym.c (finish_block): Do not set it.
2558 * symmisc.c (dump_symtab_1): Do not dump it.
2560 * value.h (using_struct_return): Remove "gcc_p" argument.
2561 * value.c (using_struct_return): Likewise.
2562 * eval.c (evaluate_subexp_standard): Adapt callers.
2563 * infcall.c (call_function_by_hand): Likewise.
2564 * stack.c (return_command): Likewise.
2565 * sparc-tdep.c (sparc32_push_dummy_code): Likewise.
2567 * gdbarch.sh (push_dummy_code): Remove "using_gcc" parameter.
2568 * gdbarch.c, gdbarch.h: Regenerate.
2569 * cris-tdep.c (cris_push_dummy_code): Adapt prototype.
2570 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Likewise.
2571 * sparc-tdep.c (sparc32_push_dummy_code): Likewise.
2572 * infcall.c (generic_push_dummy_code, push_dummy_code): Likewise.
2573 (push_dummy_code, call_function_by_hand): Adapt callers.
2575 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
2577 * infcmd.c (print_return_value): Remove STRUCT_RETURN argument.
2578 (finish_command_continuation, finish_command): Adapt callers.
2580 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
2582 * infcall.c (call_function_by_hand): Remove special handling
2583 for HP aCC compiled code.
2585 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
2587 * cris-tdep.c (cris_push_dummy_call): Support arguments passed by
2588 reference. Fix endianness bugs.
2589 (cris_reg_struct_has_address): Remove.
2590 (cris_gdbarch_init): Remove set_gdbarch_deprecated_reg_struct_has_addr
2591 and set_gdbarch_deprecated_use_struct_convention calls.
2593 * gdbarch.sh (deprecated_reg_struct_has_addr): Remove.
2594 * gdbarch.c, gdbarch.h: Regenerate.
2595 * infcall.c (call_function_by_hand): Remove handling of
2596 deprecated_reg_struct_has_addr.
2598 2007-10-11 Daniel Jacobowitz <dan@codesourcery.com>
2599 Kazu Hirata <kazu@codesourcery.com>
2601 * breakpoint.c (do_enable_breakpoint): Delay enabling until after
2602 checking watchpoint resources.
2604 2007-10-11 Kazu Hirata <kazu@codesourcery.com>
2606 * memattr.c (inaccessible_by_default): Change the initial
2609 2007-10-11 Daniel Jacobowitz <dan@codesourcery.com>
2612 * coffread.c (read_one_sym): Check for read errors.
2614 2007-10-11 Ulrich Weigand <uweigand@de.ibm.com>
2616 * linux-nat.c (lin_lwp_attach_lwp): Use "Linux kernel 2.6.19"
2617 instead of "Linux 2.6.19" in comment.
2618 (linux_xfer_partial): Use "GNU/Linux target" instead of
2619 "Linux target" in comment.
2620 * m68klinux-tdep.c (m68k_linux_inferior_created): Likewise.
2621 (m68k_linux_get_sigtramp_info): Likewise.
2623 2007-10-11 Daniel Jacobowitz <dan@codesourcery.com>
2625 * MAINTAINERS (language support): List Joel and Paul as
2628 2007-10-11 Daniel Jacobowitz <dan@codesourcery.com>
2630 * dbxread.c (process_one_symbol): Remove VARIABLES_INSIDE_BLOCK
2632 * config/arm/embed.mt, config/arm/linux.mt, config/arm/wince.mt: Do
2633 not set DEPRECATED_TM_FILE.
2634 * config/arm/tm-arm.h: Delete file.
2636 2007-10-11 Luis Machado <luisgpm@br.ibm.com>
2638 * MAINTAINERS (Write After Approval): Add self.
2640 2007-10-11 Daniel Jacobowitz <dan@codesourcery.com>
2642 * buildsym.c (record_line): Remove empty lines followed by
2643 end-of-sequence markers.
2645 2007-10-11 Kazu Hirata <kazu@codesourcery.com>
2647 * configure.tgt: Recognize fido-*-elf.
2649 2007-10-10 Joel Brobecker <brobecker@adacore.com>
2653 2007-10-10 Markus Deuling <deuling@de.ibm.com>
2655 * stack.c (print_frame_args, frame_info, return_command): Use
2656 get_regcache_arch or get_frame_arch to get at the current architecture
2657 by regcache or by frame, respectively.
2659 2007-10-10 Markus Deuling <deuling@de.ibm.com>
2661 * rs6000-nat.c (fetch_register, store_register)
2662 (rs6000_fetch_inferior_registers, rs6000_store_inferior_registers): Use
2663 get_regcache_arch to get at the current architecture by regcache.
2665 * rs6000-tdep.c (rs6000_push_dummy_call, rs6000_return_value)
2666 (rs6000_register_reggroup_p, e500_move_ev_registe, rs6000_unwind_pc)
2667 (rs6000_unwind_dummy_id, rs6000_frame_cache, rs6000_dump_tdep): Replace
2668 current_gdbarch by gdbarch.
2669 (rs6000_skip_trampoline_code, rs6000_register_to_value)
2670 (rs6000_value_to_register): Use get_frame_arch to get at the current
2671 architecture by frame_info.
2673 2007-10-10 Markus Deuling <deuling@de.ibm.com>
2675 * sparc-tdep.c (sparc_supply_rwindow, sparc_collect_rwindow): Use
2676 get_regcache_arch to get at the current architecture by regcache.
2678 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
2679 (sparc64_supply_fpregset, sparc64_collect_fpregset): Use
2680 get_regcache_arch to get at the current architecture by regcache.
2682 * sparc64nbsd-nat. (sparc64nbsd_supply_gregset)
2683 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
2684 (sparc64nbsd_collect_fpregset): Use get_regcache_arch to get at the
2685 current architecture by regcache.
2687 2007-10-10 Markus Deuling <deuling@de.ibm.com>
2689 * remote-mips.c (mips_wait, mips_fetch_registers)
2690 (mips_store_registers): Use get_regcache_arch to get at the
2691 current architecture by regcache.
2693 * mipsnbsd-tdep.c (mipsnbsd_supply_reg, mipsnbsd_fill_reg)
2694 (mipsnbsd_supply_fpreg, mipsnbsd_fill_fpreg): Use get_regcache_arch to
2695 get at the current architecture by regcache.
2696 (mipsnbsd_sigtramp_offset): Use get_frame_arch to get at the current
2697 architecture by frame_info.
2699 * mipsnbsd-nat.c (mipsnbsd_fetch_inferior_registers)
2700 (mipsnbsd_store_inferior_registers): Use get_regcache_arch to get at
2701 the current architecture by regcache.
2703 * mips-linux-tdep.c (mips_linux_get_longjmp_target)
2704 (mips64_linux_get_longjmp_target, mips_linux_o32_sigframe_init)
2705 (mips_linux_n32n64_sigframe_init): Use get_frame_arch to get at the
2706 current architecture by frame_info.
2707 (supply_32bit_reg, mips_supply_gregset, mips_fill_gregset)
2708 (mips_supply_fpregset, mips_fill_fpregset, supply_64bit_reg)
2709 (mips64_supply_gregset, mips64_fill_gregset, mips64_supply_fpregset)
2710 (mips64_fill_fpregset, mips_linux_write_pc): Use get_regcache_arch to
2711 get at the current architecture by regcache.
2713 * mips-linux-nat.c (mips_linux_register_addr)
2714 (mips64_linux_register_addr): Replace current_gdbarch by gdbarch.
2715 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset)
2716 (mips64_linux_regsets_fetch_registers)
2717 (mips64_linux_regsets_store_registers): Use get_regcache_arch to get at
2718 the current architecture by regcache.
2720 * mips64obsd-tdep.c (mips64obsd_sigframe_init): Use get_frame_arch to
2721 get at the current architecture by frame_info.
2723 2007-10-10 Markus Deuling <deuling@de.ibm.com>
2725 * mips-tdep.c (mips_xfer_register): Use get_regcache_arch to get at the
2726 current architecture by regcache.
2727 (mips2_fp_compat, mips32_next_pc, mips16_scan_prologue)
2728 (mips_insn16_frame_cache, mips32_scan_prologue, mips_insn32_frame_cache)
2729 (mips_stub_frame_cache, mips_read_fp_register_single)
2730 (mips_read_fp_register_double, mips_print_fp_register)
2731 (mips_print_register, print_gp_register_row): Use get_frame_arch to get
2732 at the current architecture by frame_info.
2733 (mips_register_reggroup_p, mips_pseudo_register_read, mips_unwind_sp)
2734 (mips_pseudo_register_write, mips_register_type, mips_unwind_pc)
2735 (mips_unwind_dummy_id, mips_eabi_push_dummy_call)
2736 (mips_n32n64_push_dummy_call, mips_n32n64_return_value)
2737 (mips_o32_push_dummy_call, mips_o32_return_value)
2738 (mips_o64_push_dummy_call, mips_o64_return_value)
2739 (mips_print_registers_info, mips_dump_tdep): Replace current_gdbarch by
2742 2007-10-10 Markus Deuling <deuling@de.ibm.com>
2744 * xtensa-tdep.c (xtensa_register_type, xtensa_pseudo_register_read)
2745 (xtensa_pseudo_register_write, xtensa_register_reggroup_p)
2746 (xtensa_unwind_pc, xtensa_unwind_dummy_id, xtensa_push_dummy_call)
2747 (xtensa_dump_tdep): Replace current_gdbarch by gdbarch.
2748 (xtensa_register_write_masked, xtensa_register_read_masked)
2749 (xtensa_supply_gregset, xtensa_store_return_value)
2750 (xtensa_extract_return_value): Use get_regcache_arch to get at the
2751 current architecture by regcache.
2752 (xtensa_frame_cache, call0_frame_get_reg_at_entry, call0_frame_cache)
2753 (xtensa_frame_prev_register): Use get_frame_arch to get at the current
2754 architecture by frame_info.
2756 2007-10-10 Daniel Jacobowitz <dan@codesourcery.com>
2758 * arm-tdep.c (struct arm_prologue_cache): Remove frameoffset.
2759 (thumb_analyze_prologue): Move pv_area_store_would_trash call
2760 out of loop. Do not set cache->frameoffset.
2761 (arm_scan_prologue): Use prologue-value mechanism. Do not set
2762 frameoffset. Simplify framesize.
2763 (arm_make_prologue_cache, arm_normal_frame_base): Do not use
2765 * arm-tdep.h (enum gdb_regnum): Add ARM_IP_REGNUM.
2767 2007-10-10 Daniel Jacobowitz <dan@codesourcery.com>
2769 * target.c (update_current_target): Call setup_target_debug.
2770 (push_target): Do not call it here.
2772 2007-10-09 Michael Snyder <msnyder@specifix.com>
2774 * MAINTAINERS: Update my email address.
2776 2007-10-09 Markus Deuling <deuling@de.ibm.com>
2778 * xtensa-tdep.c: Replace following current-gdbarch based macros by
2780 (xtensa_pseudo_register_read)
2781 (xtensa_pseudo_register_write): XTENSA_TARGET_FLAGS.
2782 (ARG_NOF, ARG_1ST, xtensa_extract_return_value)
2783 (xtensa_store_return_value, xtensa_push_dummy_call): CALL_ABI.
2784 (xtensa_pseudo_register_read)
2785 (xtensa_pseudo_register_write): ISA_USE_WINDOWED_REGISTERS.
2786 (xtensa_breakpoint_from_pc): ISA_USE_DENSITY_INSTRUCTIONS.
2787 (xtensa_register_type, xtensa_supply_gregset, xtensa_frame_cache)
2788 (xtensa_frame_prev_register): NUM_AREGS.
2789 (xtensa_pseudo_register_read, xtensa_pseudo_register_write,
2790 (xtensa_supply_gregset, xtensa_frame_cache, xtensa_frame_prev_register,
2791 (xtensa_extract_return_value, xtensa_store_return_value): WB_REGNUM.
2792 (xtensa_supply_gregset, xtensa_frame_cache)
2793 (xtensa_frame_prev_register): WS_REGNUM.
2794 (xtensa_supply_gregset): LBEG_REGNUM, LEND_REGNUM, LCOUNT_REGNUM,
2795 SAR_REGNUM, EXCCAUSE_REGNUM, EXCVADDR_REGNUM
2796 (xtensa_register_name, xtensa_register_type, xtensa_reg_to_regnum)
2797 (xtensa_pseudo_register_read, xtensa_pseudo_register_write)
2798 (xtensa_register_reggroup_p): REGMAP.
2799 (call0_track_op): LITBASE_REGNUM.
2800 (xtensa_register_type, xtensa_reg_to_regnum, call0_frame_cache):A0_BASE
2801 (xtensa_supply_gregset, call0_frame_get_reg_at_entry)
2802 (xtensa_frame_prev_register, AREG_NUMBER)
2803 (xtensa_register_type): AR_BASE.
2804 (xtensa_pseudo_register_read, xtensa_pseudo_register_write): FP_ALIAS.
2805 (AREG_NUMBER): AREGS_MASK, WB_MASK, A0_REGNUM.
2806 (ARG_1ST, xtensa_pseudo_register_read, xtensa_pseudo_register_write)
2807 (xtensa_frame_cache, xtensa_frame_prev_register)
2808 (xtensa_extract_return_value, xtensa_store_return_value)
2809 (xtensa_push_dummy_call, call0_frame_cache): A0_REGNUM.
2810 (xtensa_register_type, xtensa_pseudo_register_read, xtensa_frame_cache)
2811 (xtensa_pseudo_register_write, xtensa_unwind_dummy_id)
2812 (xtensa_frame_prev_register, xtensa_push_dummy_call)
2813 (call0_frame_cache): A1_REGNUM.
2814 (xtensa_extract_return_value, xtensa_store_return_value): A2_REGNUM.
2815 (xtensa_push_dummy_call): A4_REGNUM.
2816 (ARGS_FIRST_REG): A6_REGNUM.
2817 (xtensa_pseudo_register_read, xtensa_pseudo_register_write)
2818 (xtensa_frame_prev_register): A15_REGNUM.
2819 * xtensa-tdep.h: Delete current_gdbarch based macros after replacing
2820 them in the appropriate source file:
2821 XTENSA_TARGET_FLAGS, SPILL_LOCATION, SPILL_SIZE, CALL_ABI, NUM_AREGS,
2822 ISA_USE_WINDOWED_REGISTERS, ISA_USE_DENSITY_INSTRUCTIONS, WB_REGNUM,
2823 ISA_USE_EXCEPTIONS, ISA_USE_EXT_L32R, DEBUG_DATA_VADDR_TRAP_COUNT,
2824 DEBUG_INST_VADDR_TRAP_COUNT, ISA_MAX_INSN_SIZE, DEBUG_NUM_IBREAKS,
2825 DEBUG_NUM_DBREAKS, WS_REGNUM, LBEG_REGNUM, LEND_REGNUM, SAR_REGNUM,
2826 REGMAP, LITBASE_REGNUM, DEBUGCAUSE_REGNUM, EXCCAUSE_REGNUM, AR_BASE,
2827 EXCVADDR_REGNUM, NUM_IBREAKS, REGMAP_BYTES, NUM_CONTEXTS, FP_ALIAS,
2828 FP_LAYOUT, FP_LAYOUT_BYTES, GREGMAP, AREGS_MASK, WB_MASK, A0_REGNUM,
2829 A1_REGNUM, A2_REGNUM, A3_REGNUM, A4_REGNUM, A5_REGNUM, A6_REGNUM,
2830 A7_REGNUM, A8_REGNUM, A9_REGNUM, A10_REGNUM, A11_REGNUM, A12_REGNUM,
2831 A13_REGNUM, A14_REGNUM, A15_REGNUM.
2833 2007-10-09 Markus Deuling <deuling@de.ibm.com>
2835 * h8300-tdep.c (h8300_frame_cache): Use get_frame_arch to get at
2836 the current architecture by frame_info.
2837 (h8300_frame_prev_register
2838 (h8300_print_register): Replace current_gdbarch by gdbarch.
2839 (h8300_print_registers_info, h8300_register_type)
2840 (h8300_register_type): Likewise.
2842 2007-10-09 Markus Deuling <deuling@de.ibm.com>
2844 * i386-linux-nat.c (fetch_register): Use get_regcache_arch to get at
2845 the current architecture by regcache.
2846 (store_register, supply_gregset, fill_gregset, i386_linux_resume)
2847 (i386_linux_fetch_inferior_registers)
2848 (i386_linux_store_inferior_registers): Likewise.
2849 * i386gnu-nat.c (gnu_fetch_registers, gnu_store_registers): Likewise.
2850 * i386-nto-tdep.c (i386nto_supply_gregset): Likewise.
2851 * i386v4-nat.c (supply_fpregset, fill_fpregset): Likewise.
2852 * i386-tdep.c (i386_unwind_pc): Replace current_gdbarch by gdbarch.
2853 (i386_extract_return_value, i386_store_return_value): Likewise.
2854 * i386-tdep.c (i386_frame_prev_register): Use get_frame_arch to get at
2855 the current architecture by frame_info.
2856 (i386_sigtramp_frame_cache, i386_get_longjmp_target)
2857 (i386_register_to_value, i386_value_to_register): Likewise.
2859 2007-10-09 Markus Deuling <deuling@de.ibm.com>
2861 * monitor.c (monitor_supply_register): Use get_regcache_arch to get at
2862 the current architecture by regcache.
2863 (monitor_store_register, monitor_store_registers): Likewise.
2865 2007-10-09 Markus Deuling <deuling@de.ibm.com>
2867 * dbug-rom.c (dbug_supply_register): Use get_regcache_arch to get at
2868 the current architecture by regcache.
2870 2007-10-09 Markus Deuling <deuling@de.ibm.com>
2872 * arch-utils.c (legacy_return_value): Replace current_gdbarch by
2875 2007-10-09 Markus Deuling <deuling@de.ibm.com>
2877 * frame.c (frame_pc_unwind): Use get_frame_arch to get at the current
2878 architecture by frame.
2879 (frame_save_as_regcache, frame_register_unwind, get_prev_frame_1)
2880 (inside_main_func, frame_sp_unwind): Likewise.
2882 2007-10-09 Daniel Jacobowitz <dan@codesourcery.com>
2884 * solib-svr4.c (enable_break): Add the dynamic linker also if
2887 2007-10-09 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
2889 * MAINTAINERS (Write After Approval): Add self.
2891 2007-10-09 Pedro Alves <pedro_alves@portugalmail.pt>
2893 * stabsread.c (read_huge_number): Initialize local variable to 0.
2895 2007-10-09 Pierre Muller <muller@ics.u-strasbg.fr>
2897 * p-lang.h (pascal_main_name): Add declaration.
2898 * p-lang.c (GPC_P_INITIALIZE, GPC_MAIN_PROGRAM_NAME_1)
2899 (GPC_MAIN_PROGRAM_NAME_2): New constants.
2900 (pascal_main_name): New function.
2901 * symtab.c: Include p-lang.h.
2902 (find_main_name): Add call to pascal_main_name.
2903 * Makefile.in (symtab.o): Add dependency on p-lang.h.
2905 2007-10-09 Pedro Alves <pedro_alves@portugalmail.pt>
2907 * stabsread.c (read_huge_number): Fix handling of octal
2908 representation when the bit width is known.
2909 (read_range_type): Record unsigned integral types with their size,
2910 when the type size is known.
2912 2007-10-08 Thiago Jung Bauermann <bauerman@br.ibm.com>
2914 * MAINTAINERS (Write After Approval): Add self.
2916 2007-10-08 Pierre Muller <muller@ics.u-strasbg.fr>
2918 * breakpoint.c (print_one_breakpoint_location): ARI fix:
2919 Replace asprintf by xstrprintf.
2921 2007-10-08 Pierre Muller <muller@ics.u-strasbg.fr>
2923 * linux-fork.c: ARI fix: include "gdb_dirent.h" instead of <dirent.h>.
2924 Makefile.in (linux-fork.o): Add gdb_dirent.h dependency.
2926 2007-10-08 Pierre Muller <muller@ics.u-strasbg.fr>
2928 * linux-fork.c: Move "gdb_wait.h" include back to the position of
2929 <sys/wait.h> include before last commit.
2931 2007-10-08 Maciej W. Rozycki <macro@mips.com>
2933 * mips-tdep.c (mips32_next_pc): Fix a typo in BGTZL.
2935 2007-10-08 Markus Deuling <deuling@de.ibm.com>
2937 * aix-thread.c (supply_gprs64, supply_fprs, supply_sprs64)
2938 (supply_sprs32, fetch_regs_user_thread, fetch_regs_kernel_thread)
2939 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs64, fill_sprs32)
2940 (store_regs_user_thread, store_regs_kernel_thread): Use
2941 get_regcache_arch or get_frame_arch to get at the current architecture
2942 by regcache or by frame, respectively.
2944 2007-10-08 Markus Deuling <deuling@de.ibm.com>
2946 * sh64-tdep.c (sh64_push_dummy_call, sh64_register_type)
2947 (sh64_pseudo_register_read, sh64_pseudo_register_write)
2948 (sh64_do_fp_register, sh64_do_pseudo_register, sh64_do_register)
2949 (sh64_print_register, sh64_media_print_registers_info)
2950 (sh64_compact_print_registers_info, sh64_unwind_sp)
2951 (sh64_unwind_pc): Replace current_gdbarch by gdbarch.
2952 (sh64_show_media_regs, sh64_show_compact_regs, sh64_frame_cache)
2953 (sh64_frame_prev_register): Use FRAME to recognize current
2956 2007-10-08 Markus Deuling <deuling@de.ibm.com>
2958 * sh-tdep.c (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu)
2959 (sh_sh2a_register_type, sh_sh3e_register_type, sh_sh4_register_type)
2960 (sh_register_reggroup_p, sh_dwarf2_frame_init_reg): Replace
2961 current_gdbarch by gdbarch.
2962 (sh_generic_show_regs, sh3_show_reg, sh2e_show_regs, sh2a_show_regs)
2963 (sh2a_nofpu_show_regs, sh3e_show_regs, sh3_dsp_show_regs)
2964 (sh4_show_regs, sh4_nofpu_show_regs, sh_dsp_show_regs, sh_frame_cache)
2965 (sh_frame_prev_register, sh_unwind_sp, sh_unwind_pc): Use FRAME to
2966 recognize current architecture.
2968 2007-10-08 Markus Deuling <deuling@de.ibm.com>
2970 * remote.c (init_remote_state, fetch_register_using_p)
2971 (process_g_packet, remote_fetch_registers, remote_prepare_to_store)
2972 (store_register_using_P, store_registers_using_G)
2973 (remote_store_registers): Use get_regcache_arch or get_frame_arch to
2974 get at the current architecture by regcache or by frame, respectively.
2976 2007-10-08 Markus Deuling <deuling@de.ibm.com>
2978 * m68k-tdep.c (m68k_register_to_value, m68k_value_to_register)
2979 (m68k_svr4_extract_return_value, m68k_svr4_store_return_value)
2980 (m68k_frame_prev_register, m68k_get_longjmp_target): Use
2981 get_regcache_arch or get_frame_arch to get at the current architecture
2982 by regcache or by frame, respectively.
2983 * m68klinux-tdep.c (m68k_linux_sigtramp_frame_cache): Likewise.
2984 * m68klinux-nat.c (fetch_register, old_fetch_inferior_registers)
2985 (store_register, old_store_inferior_registers, supply_gregset)
2986 (supply_fpregset, fill_fpregset): Likewise.
2987 * m68k-tdep.c (m68k_register_type, m68k_unwind_pc, m68k_dump_tdep):
2988 Replace current_gdbarch by gdbarch.
2990 2007-10-08 Markus Deuling <deuling@de.ibm.com>
2992 * irix5-nat.c (supply_gregset, fill_gregset, supply_fpregset)
2993 (fill_fpregset, fetch_core_registers): Use get_regcache_arch or
2994 get_frame_arch to get at the current architecture by regcache or by
2995 frame, respectively.
2997 2007-10-08 Markus Deuling <deuling@de.ibm.com>
2999 * ia64-tdep.c (ia64_pseudo_register_read, ia64_pseudo_register_write):
3000 Replace current_gdbarch by gdbarch.
3001 * ia64-tdep.c (ia64_frame_prev_register
3002 (ia64_sigtramp_frame_prev_register)
3003 (ia64_libunwind_frame_prev_register): Use get_regcache_arch or
3004 get_frame_arch to get at the current architecture by regcache or by
3005 frame, respectively.
3006 * ia64-linux-nat.c (ia64_linux_fetch_register)
3007 (ia64_linux_fetch_registers, ia64_linux_store_register)
3008 (ia64_linux_store_registers): Likewise.
3010 2007-10-08 Markus Deuling <deuling@de.ibm.com>
3012 * hppa-tdep.c (hppa_stub_unwind_sniffer, hppa_dump_tdep): Replace
3013 current_gdbarch by gdbarch.
3014 * hppa-linux-nat.c (fetch_register, store_register)
3015 (hppa_linux_fetch_inferior_registers)
3016 (hppa_linux_store_inferior_registers): Use get_regcache_arch or
3017 get_frame_arch to get at the current architecture by regcache or by
3018 frame, respectively.
3019 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code
3020 (hppa_hpux_unwind_adjust_stub): Likewise.
3021 * hppa-hpux-nat.c (hppa_hpux_fetch_register, hppa_hpux_store_register)
3022 (hppa_hpux_fetch_inferior_registers)
3023 (hppa_hpux_store_inferior_registers): Likewise.
3025 2007-10-08 Markus Deuling <deuling@de.ibm.com>
3027 * cris-tdep.c (cris_sigcontext_addr, cris_sigtramp_frame_unwind_cache)
3028 (cris_scan_prologue, crisv32_scan_prologue, find_step_target)
3029 (cris_software_single_step, cris_supply_gregset): Use get_regcache_arch
3030 or get_frame_arch to get at the current architecture by regcache or by
3031 frame, respectively.
3032 * cris-tdep.c (crisv32_single_step_through_delay, cris_push_dummy_call)
3033 (cris_unwind_pc, cris_unwind_sp, cris_register_type, cris_dump_tdep)
3034 (crisv32_register_type, cris_dwarf2_frame_init_reg): Replace
3035 current_gdbarch by gdbarch.
3037 2007-10-08 Markus Deuling <deuling@de.ibm.com>
3039 * arm-tdep.c (arm_scan_prologue, arm_make_prologue_cache)
3040 (thumb_get_next_pc, arm_get_next_pc, arm_extract_return_value)
3041 (arm_store_return_value): Use get_regcache_arch or get_frame_arch to
3042 get at the current architecture by regcache or by·frame, respectively.
3043 (arm_push_dummy_call, arm_dump_tdep): Replace current_gdbarch by
3046 2007-10-08 Markus Deuling <deuling@de.ibm.com>
3048 * amd64-tdep.c (amd64_frame_prev_register, amd64_sigtramp_frame_cache):
3049 Use get_regcache_arch or get_frame_arch to get at the current
3050 architecture by regcache or by frame, respectively.
3051 * amd64-linux-tdep.c (amd64_linux_sigcontext_addr): Likewise.
3052 * amd64-nat.c (amd64_supply_native_gregset)
3053 (amd64_collect_native_gregset): Replace current_gdbarch by gdbarch.
3055 2007-10-08 Markus Deuling <deuling@de.ibm.com>
3057 * alpha-tdep.c (alpha_register_reggroup_p): Replace current_gdbarch by
3059 * alpha-linux-nat.c (alpha_linux_register_u_offset): Likewise.
3060 (alpha_sigtramp_frame_unwind_cache, alpha_sigtramp_frame_this_id)
3061 (alpha_sigtramp_frame_sniffer, alpha_next_pc): Use get_regcache_arch or
3062 get_frame_arch to get at the current architecture by regcache or by
3063 frame, respectively.
3064 * alpha-nat.c (fetch_osf_core_registers): Likewise.
3066 2007-10-08 Markus Deuling <deuling@de.ibm.com>
3068 * dwarf2-frame.c (read_reg, execute_cfa_program, dwarf2_frame_cache)
3069 (dwarf2_frame_default_init_reg, dwarf2_frame_prev_register): Replace
3070 current_gdbarch by gdbarch.
3071 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Likewise.
3073 2007-10-08 Markus Deuling <deuling@de.ibm.com>
3075 * regcache.c (init_regcache_descr, register_type, read_pc_pid)
3076 (write_pc_pid, regcache_dump): Replace current_gdbarch by gdbarch.
3077 * regcache.c (regcache_raw_write): Use get_regcache_arch or
3078 get_frame_arch to get at the current architecture by regcache or by
3079 frame, respectively.
3081 2007-10-08 Markus Deuling <deuling@de.ibm.com>
3083 * findvar.c (value_of_register, locate_var_value): Use
3084 get_regcache_arch or get_frame_arch to get at the current architecture
3085 by regcache or by frame, respectively.
3086 * findvar.c (default_value_from_register, value_from_register): Replace
3087 current_gdbarch by gdbarch.
3089 2007-10-08 Pierre Muller <muller@ics.u-strasbg.fr>
3091 * config/i386/nm-i386.h (CHILD_POST_STARTUP_INFERIOR): ARI fix: Remove.
3093 2007-10-08 Pierre Muller <muller@ics.u-strasbg.fr>
3095 * linux-fork.c: ARI fix: include "gdb_wait.h" instead of <sys/wait.h>.
3096 Makefile.in (linux-fork.o): Add gdb_wait.h dependency.
3098 2007-10-05 Daniel Jacobowitz <dan@codesourcery.com>
3100 * remote.c (get_offsets): Only call free_symfile_segment_data if
3103 2007-10-03 Pierre Muller <muller@ics.u-strasbg.fr>
3105 * objc-exp.y: ARI fix: remove 4 PARAMS.
3107 2007-10-03 Daniel Jacobowitz <dan@codesourcery.com>
3109 * NEWS: Use uniform spacing. Correct version number for GDB 6.7
3110 news. Mention XML support for M68K in GDB 6.7.
3112 2007-10-03 Daniel Jacobowitz <dan@codesourcery.com>
3114 * gdbtypes.c (create_range_type): Do not set TYPE_FIELD_TYPE for the
3116 (init_vector_type): Use builtin_type_int32.
3118 2007-10-02 Ulrich Weigand <uweigand@de.ibm.com>
3120 * s390-tdep.c (s390_regset_from_core_section): Allow excess section
3121 size to enable bi-arch generate-core-file support.
3123 2007-10-02 Markus Deuling <deuling@de.ibm.com>
3125 * spu-tdep.c (info_spu_signal_command): Fix output for SPU signal.
3127 2007-10-02 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
3129 * tui/tui-interp.c (tui_init): Initialize tui's SIGWINCH
3131 * tui/tui-win.c (tui_initialize_win): New function for
3132 initializing tui's SIGWINCH signal handler.
3133 * tui/tui-win.h (tui_initialize_win): Declare.
3135 2007-10-02 Ulrich Weigand <uweigand@de.ibm.com>
3137 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Cast
3138 pointer to uintptr_t before casting to CORE_ADDR.
3140 2007-10-02 Markus Deuling <deuling@de.ibm.com>
3142 * linux-nat.c (PTRACE_GETSIGINFO): Add define.
3144 2007-10-02 Mark Mitchell <mark@codesourcery.com>
3146 * mingw-hdep.c (gdb_select): Stop helper threads before returning.
3147 * ser-mingw.c (enum select_thread_state): New type.
3148 (struct ser_console_state): Add have_started and thread_state.
3149 (select_thread_wait): New function.
3150 (thread_fn_type): New type.
3151 (create_select_thread): New function.
3152 (destroy_select_thread): Likewise.
3153 (start_select_thread): Likewise.
3154 (stop_select_thread): Likewise.
3155 (console_select_thread): Use new functions.
3156 (pipe_select_thread): Likewise.
3157 (file_select_thread): Likewise.
3158 (ser_console_wait_handle): Likewise.
3159 (ser_console_done_wait_handle): Likewise.
3160 (ser_console_close): Likewise.
3161 (free_pipe_state): Likewise.
3162 (pipe_wait_handle): Likewise.
3163 (pipe_done_wait_handle): Likewise.
3164 (struct net_windows_state): Derive from ser_console_state.
3165 (net_windows_select_thread): Use new functions.
3166 (net_windows_wait_handle): Likewise.
3167 (net_windows_done_wait_handle): Likewise.
3168 (net_windows_close): Likewise.
3170 2007-10-02 Daniel Jacobowitz <dan@codesourcery.com>
3172 * inflow.c (terminal_ours_1): Remove useless line.
3174 2007-10-02 Daniel Jacobowitz <dan@codesourcery.com>
3176 * mips-tdep.c (mips_read_fp_register_double): Correct check for
3178 (mips_print_fp_register): Correct check for even FP registers.
3179 (mips_virtual_frame_pointer): New function.
3180 (mips_gdbarch_init): Call set_gdbarch_virtual_frame_pointer.
3182 2007-09-30 Mike Frysinger <vapier@gentoo.org>
3184 * value.h (lookup_only_internalvar): New prototype.
3185 (create_internalvar): Likewise.
3186 * value.c (lookup_only_internalvar): New function.
3187 (create_internalvar): Likewise.
3188 (lookup_internalvar): Use new lookup_only_internalvar and
3189 create_internalvar functions.
3190 * parse.c (write_dollar_variable): Look up $ symbols in internal
3191 table first rather than last.
3193 2007-09-30 Daniel Jacobowitz <dan@codesourcery.com>
3195 * linux-nat.c (linux_nat_new_thread): New variable.
3196 (linux_child_follow_fork): Set inferior_ptid to include LWP ID. Use
3197 linux_nat_switch_fork.
3198 (lwp_list): Make public.
3199 (add_lwp): Call linux_nat_new_thread.
3200 (lin_lwp_attach_lwp, linux_nat_attach): Call add_lwp after stopping
3202 (resume_callback): Clear lp->siginfo. Remove unused variable.
3203 (linux_nat_resume): Assert that the LWP list is already initialized.
3205 (save_siginfo): New.
3206 (stop_wait_callback, linux_nat_wait): Call it.
3207 (linux_nat_set_new_thread, linux_nat_get_siginfo): New.
3208 * linux-nat.h (struct lwp_info): Add siginfo.
3209 (lwp_list, linux_nat_set_new_thread, linux_nat_get_siginfo): Declare.
3212 * amd64-linux-nat.c (amd64_linux_dr): New.
3213 (amd64_linux_dr_get): Take a PTID argument. Correct typo.
3214 (amd64_linux_dr_set): Take a PTID argument.
3215 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use ALL_LWPS.
3216 (amd64_linux_dr_reset_addr): Use amd64_linux_dr_set_addr.
3217 (amd64_linux_dr_get_status): Pass inferior_ptid to amd64_linux_dr_get.
3218 (amd64_linux_new_thread): New.
3219 (_initialize_amd64_linux_nat): Call linux_nat_set_new_thread.
3220 * i386-linux-nat.c (i386_linux_dr): New.
3221 (i386_linux_dr_get, i386_linux_dr_set): Take a PTID argument.
3222 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use ALL_LWPS.
3223 (i386_linux_dr_reset_addr): Use i386_linux_dr_set_addr.
3224 (i386_linux_dr_get_status): Pass inferior_ptid to i386_linux_dr_get.
3225 (i386_linux_new_thread): New.
3226 (i386_linux_resume): Remove unnecessary PID check.
3227 (_initialize_i386_linux_nat): Call linux_nat_set_new_thread.
3228 * ia64-linux-nat.c (enable_watchpoints_in_psr): Take PTID argument.
3229 (fetch_debug_register, fetch_debug_register_pair): Delete.
3230 (debug_registers): New.
3231 (ia64_linux_insert_watchpoint, ia64_linux_remove_watchpoint): Use
3232 ALL_LWPS and debug_registers.
3233 (ia64_linux_new_thread): New.
3234 (ia64_linux_stopped_data_address): Use linux_nat_get_siginfo.
3235 (_initialize_ia64_linux_nat): Call linux_nat_set_new_thread.
3236 * ppc-linux-nat.c (last_stopped_data_address): Delete.
3237 (saved_dabr_value): New.
3238 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint): Use
3240 (ppc_linux_new_thread): New.
3241 (ppc_linux_stopped_data_address): Use linux_nat_get_siginfo.
3242 (ppc_linux_stopped_by_watchpoint): Call ppc_linux_stopped_data_address.
3243 (_initialize_ppc_linux_nat): Call linux_nat_set_new_thread.
3244 * s390-nat.c (s390_stopped_by_watchpoint): Clear the watchpoint status
3246 (s390_fix_watch_points): Take a PTID argument.
3247 (s390_insert_watchpoint, s390_remove_watchpoint): Use ALL_LWPS.
3248 (_initialize_s390_nat): Call linux_nat_set_new_thread.
3250 2007-09-30 Daniel Jacobowitz <dan@codesourcery.com>
3251 Jeff Johnston <jjohnstn@redhat.com>
3253 * breakpoint.c (watchpoints_triggered): New.
3254 (bpstat_stop_status): Remove STOPPED_BY_WATCHPOINT argument.
3255 Check watchpoint_triggered instead. Combine handling for software
3256 and hardware watchpoints. Do not use target_stopped_data_address
3257 here. Always check a watchpoint if its scope breakpoint triggers.
3258 Do not stop for thread or overlay events. Improve check for
3259 triggered watchpoints without a value change.
3260 (watch_command_1): Insert the scope breakpoint first. Link the
3261 scope breakpoint to the watchpoint.
3262 * breakpoint.h (enum watchpoint_triggered): New.
3263 (struct breakpoint): Add watchpoint_triggered.
3264 (bpstat_stop_status): Update prototype.
3265 (watchpoints_triggered): Declare.
3266 * infrun.c (enum infwait_status): Add infwait_step_watch_state.
3267 (stepped_after_stopped_by_watchpoint): Delete.
3268 (handle_inferior_event): Make stepped_after_stopped_by_watchpoint
3269 local. Handle infwait_step_watch_state. Update calls to
3270 bpstat_stop_status. Use watchpoints_triggered to check
3272 * remote.c (stepped_after_stopped_by_watchpoint): Remove extern.
3273 (remote_stopped_data_address): Do not check it.
3275 2007-09-29 Daniel Jacobowitz <dan@codesourcery.com>
3277 * configure.ac: Add $LIBINTL when testing libbfd.
3278 * configure: Regenerated.
3280 2007-09-28 Vladimir Prus <vladimir@codesourcery.com>
3282 * NEW: Mention pending breakpoint changes and
3283 support for breakpoints at multiple locations.
3285 2007-09-27 Daniel Jacobowitz <dan@codesourcery.com>
3287 * arm-linux-tdep.c (arm_linux_software_single_step): New.
3288 (arm_linux_init_abi): Use it.
3289 * arm-tdep.c (arm_get_next_pc): Make global. Handle all-ones
3290 condition correctly.
3291 * arm-tdep.h (arm_get_next_pc): Declare.
3292 * Makefile.in (arm-linux-tdep.o): Update.
3294 2007-09-26 Vladimir Prus <vladimir@codesourcery.com>
3296 * varobj.c (install_new_value): Don't
3297 call value_get_print_value when a value is
3298 lazy. Update the print_value member in a
3301 2007-09-26 Vladimir Prus <vladimir@codesourcery.com>
3303 * breakpoint.c (create_breakpoint): Set
3304 condition on each location, not on the first
3305 location of breakpoint.
3307 2007-09-26 Jim Blandy <jimb@codesourcery.com>
3309 * remote.c (getpkt_sane): Fix error message. No animals were
3310 harmed in the making of this debugger.
3312 2007-09-26 Pierre Muller <muller@ics.u-strasbg.fr>
3314 * p-typeprint.c: Fix 11 ARI reported problems.
3315 (pascal_print_type): Fix 4 operator at end of line.
3316 (pascal_type_print_method_args) : Replace 2 DEPRECATED_STREQN macros
3317 using strncmp function.
3318 (pascal_type_print_base): Fix 2 operator at end of line.
3319 (pascal_type_print_base) : Replace 3 DEPRECATED_STREQN macros
3320 using strncmp function.
3323 2007-09-26 Pierre Muller <muller@ics.u-strasbg.fr>
3325 * Fix PR pascal/2231
3326 dwarf2read.c (read_subroutine_type):
3327 All pascal functions are prototyped.
3329 2007-09-26 Pierre Muller <muller@ics.u-strasbg.fr>
3331 * Fix PR pascal/2283
3332 p-valprint.c (pascal_val_print): correct current language check.
3333 Also print array of char as strings.
3336 2007-09-26 David Ung <davidu@mips.com>
3337 Maciej W. Rozycki <macro@mips.com>
3339 * mips-tdep.c (mips_n32n64_return_value): Fix a comment.
3341 2007-09-25 Pierre Muller <muller@ics.u-strasbg.fr>
3343 * p-exp.y: Fix 12 ARI reported problems.
3344 (name_not_typename): Fix 2 operator at end of line issues.
3345 (yylex): Fix 3 operator at end of line issues.
3346 Replace 7 DEPRECATED_STREQ macros using strcmp function.
3348 2007-09-25 David Ung <davidu@mips.com>
3349 Maciej W. Rozycki <macro@mips.com>
3351 * mips-tdep.c (mips_n32n64_return_value): Per N32/N64 ABI
3352 rules return composite types in registers as appropriate.
3354 2007-09-24 Jim Blandy <jimb@codesourcery.com>
3356 * symfile.h (struct symfile_segment_data): Doc fixes.
3357 * symfile.c (symfile_map_offsets_to_segments): Doc fixes.
3358 Assert that we were passed some loaded segment addresses,
3359 and that sections' segment numbers are valid.
3360 Simplify offset calculation.
3361 * remote.c (get_offsets): Clarify selection of relocate-by-segment
3362 strategy, and set num_segments correctly. Delete redundant
3363 assignments to do_sections.
3365 2007-09-24 Daniel Jacobowitz <dan@codesourcery.com>
3367 * frame.c (get_prev_frame_1): Also check for PC in the same register.
3369 2007-09-24 Vladimir Prus <vladimir@codesourcery.com>
3371 * breakpoint.c (remove_sal): New.
3372 (expand_line_sal_maybe): New.
3373 (create_breakpoints): Call expand_line_sal_maybe.
3374 (clear_command): Add comment.
3375 (breakpoint_re_set_one): Call expand_line_sal_maybe.
3376 * linespec.c (decode_indirect): Set explicit_pc to 1.
3377 (decode_all_digits): Set explicit_line to 1.
3378 (append_expanded_sal): New.
3379 (expand_line_sal): New.
3380 * linespec.h (expand_line_sal): Declare.
3381 * symtab.c (init_sal): Initialize explicit_pc
3383 * symtab.h (struct symtab_and_line): New fields
3384 explicit_pc and explicit_line.
3386 2007-09-23 Daniel Jacobowitz <dan@codesourcery.com>
3388 * infcall.c (call_function_by_hand): Handle language-specific
3389 pass and return by reference.
3391 * cp-abi.c (cp_pass_by_reference): New.
3392 * cp-abi.h (cp_pass_by_reference): Declare.
3393 (struct cp_abi_ops): Add pass_by_reference.
3394 * gnu-v3-abi.c (gnuv3_pass_by_reference): New.
3395 (init_gnuv3_ops): Set pass_by_reference.
3397 * language.c (language_pass_by_reference): New.
3398 (default_pass_by_reference): New.
3399 (unknown_language_defn, auto_language_defn, local_language_defn): Add
3400 default_pass_by_reference.
3401 * langauge.h (struct language_defn): Add la_pass_by_reference.
3402 (language_pass_by_reference, default_pass_by_reference): Declare.
3403 * ada-lang.c (ada_language_defn): Add default_pass_by_reference.
3404 * c-lang.c (c_language_defn, asm_language_defn)
3405 (minimal_language_defn): Likewise.
3406 (cplus_language_defn): Add cp_pass_by_reference.
3407 * f-lang.c (f_language_defn): Add default_pass_by_reference.
3408 * jv-lang.c (java_language_defn): Likewise.
3409 * m2-lang.c (m2_language_defn): Likewise.
3410 * objc-lang.c (objc_language_defn): Likewise.
3411 * p-lang.c (pascal_language_defn): Likewise.
3412 * scm-lang.c (scm_language_defn): Likewise
3414 2007-09-23 Vladimir Prus <vladimir@codesourcery.com>
3416 Allow a code breakpoint to have several locations
3418 * breakpoint.h (enum enable_state): Remove the
3419 bp_shlib_disabled enumerator.
3420 (struct bp_location): New members shlib_disabled,
3421 global_next, enabled and function_name.
3422 Rename pending to condition_not_parsed.
3424 * breakpoint.c (ALL_BP_LOCATIONS): Iterate over global_next.
3425 (ALL_BP_LOCATIONS_SAFE): Likewise.
3426 (breakpoint_enabled): Don't check for pending.
3427 (condition_command): Free and update all locations of
3429 (insert_bp_location): Adjust.
3430 (software_breakpoint_inserted_here_p): Don't care
3431 if breakpoint is enabled, as soon as it's inserted.
3432 (print_it_typical): Print bpstat's location, not
3433 bpstat's breakpoint's location.
3434 (bpstat_stop_status): Iterate over all locations, not
3436 (print_breakpoint_location): New.
3437 (print_one_breakpoint): Renamed to
3438 (print_one_breakpoint_location): ...this. Take
3439 parameters to describe which location is being
3440 printed. Modify code to properly print header
3441 for several locations and individual locations.
3442 (print_one_breakpoint): Print all locations.
3443 (breakpoint_has_pc): New.
3444 (describe_other_breakpoints): Use the above.
3445 (check_duplicates): Renamed to...
3446 (check_duplicates_for): .. this.
3447 (check_duplicates): Use check_duplicates_for.
3448 (allocate_bp_location): Adjust.
3449 (set_raw_breakpoint_without_location): New,
3450 extracted from set_raw_breakpoint.
3451 (set_breakpoint_location_function): New.
3452 (set_raw_breakpoint): Use
3453 set_raw_breakpoint_without_location.
3454 (make_breakpoint_permanent): Mark all locations
3456 (disable_breakpoints_in_shlibs): Iterate over
3458 (disable_breakpoints_in_unloaded_shlib): Likewise.
3459 (re_enable_breakpoints_in_shlibs): Likewise.
3460 (mention): Say "pending" when breakpoint has
3461 zero locations. If breakpoint has more than one
3463 (add_location_to_breakpoint): New.
3464 (create_breakpoint): Accept symtabs_and_lines, not
3465 symtab_and_line. Pass extra sals to
3466 add_location_to_breakpoint.
3467 (create_breakpoints): Pass symtabs_and_lines to
3469 (break_command_1): Make pending breakpoints
3470 have zero locations.
3471 (do_captured_breakpoint): Remove wrong allocation.
3472 (clear_command): Iterate over all locations.
3473 (unlink_locations_from_global_list): Renamed
3474 from unlink_location_from_global_list. Remove
3476 (delete_breakpoint): Remove all locations.
3477 Iterate over all locations when deciding which
3478 other location to re-enable.
3479 (all_locations_are_pending): New.
3480 (update_breakpoint_locations): Renamed from
3481 update_breakpoint_location. Try to match old
3482 and new locations using names of containing
3484 (breakpoint_re_set_one): Adjust.
3485 (find_location_by_number): New.
3486 (disable_command): Allow disabling individual location.
3487 (enable_command): Allow enabling individual location.
3488 * breakpoint.c: Adjust all uses of breakpoint's
3489 enable state to for bp_shlib_disabled change.
3491 2007-09-22 Vladimir Prus <vladimir@codesourcery.com>
3493 * breakpoint.c (do_restore_lang_radix_cleanup): Remove.
3494 (resolve_pending_breakpoint): Remove.
3495 (re_enable_breakpoints_in_shlibs): Remove.
3496 (unlink_locations_from_global_list): New.
3497 (update_breakpoint_locations): New.
3498 (breakpoint_re_set_one): Don't bail out on pending breakpoints.
3499 Use parse_condition and update_breakpoint_location to
3500 reset breakpoint. Ignore 'symbol not found' error from
3502 (breakpoint_re_set): Don't emit newline before the
3503 reason why breakpoint is not reset.
3504 (do_enable_breakpoint): Don't specially process pending
3506 (free_bp_location): New.
3507 (break_command_1): For pending breakpoints, initialize
3508 all fields of a sal with zeroes.
3509 * breakpoint.h (re_enable_breakpoints_in_shlibs): Remove.
3510 * infcmd.c (post_create_inferior): Don't call
3511 re_enable_breakpoints_in_shlibs.
3512 * infrun.c (handle_inferior_event): Likewise.
3513 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
3514 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
3515 * win32-nat.c (get_win32_debug_event): Likewise.
3517 2007-09-22 Vladimir Prus <vladimir@codesourcery.com>
3519 * breakpoint.c (create_breakpoint): Split from
3520 create_breakpoints, implementing most of its logic.
3521 Take just a single sal, single address string and
3522 single condition. Do not take parsed condition at
3524 (create_breakpoints): Just call create_breakpoint
3526 (find_condition_and_thread): New.
3527 (break_command_1): Use find_condition_and_thread.
3528 Do not keep parsed conditions.
3529 (do_captured_breakpoint): Don't convert
3530 condition string to struct expression.
3532 2007-09-22 Vladimir Prus <vladimir@codesourcery.com>
3534 * breakpoint.h (struct breakpoint): Move the cond
3536 (struct bp_location): Here.
3537 * breakpoint.c (condition_command, bpstat_stop_status)
3538 (print_one_breakpoint, allocate_bp_location)
3539 (solib_load_unload_1, create_fork_vfork_event_catchpoint)
3540 (create_exec_event_catchpoint, create_breakpoints)
3541 (break_command_1, watch_command_1, handle_gnu_v3_exceptions)
3542 (create_ada_exception_breakpoint, set_breakpoint_sal)
3543 (delete_breakpoint, breakpoint_re_set_one): Adjust.
3544 * tui/tui-winsource.c (tui_update_breakpoint_info): Adjust.
3546 2007-09-22 Vladimir Prus <vladimir@codesourcery.com>
3548 Associate bp_stat with bp_location, not breakpoint.
3549 * breakpoint.h (breakpoint_at): Change type
3551 * breakpoint.c (bpstat_alloc): Take bp_location,
3553 (bpstat_find_breakpoint): Look at bpstat's location's
3554 owner, not at bpstat->breakpoint_at.
3555 (bpstat_find_step_resume_breakpoint): Likewise.
3556 (bpstat_num): Likewise.
3557 (print_it_typical): Likewise.
3558 (print_bp_stop_message): Likewise.
3559 (watchpoint_check): Likewise.
3560 (bpstat_what): Likewise.
3561 (bpstat_get_triggered_catchpoints): Likewise.
3562 (breakpoint_auto_delete): Likewise.
3563 (delete_breakpoint): Likewise.
3564 (bpstat_stop_status): Pass location, not breakpoint,
3565 to bpstat_alloc. Look at bpstat's location's
3566 owner, not at bpstat->breakpoint_at.
3568 2007-09-21 Jim Blandy <jimb@codesourcery.com>
3570 * macrotab.h (new_macro_table): Document that removing information
3571 from an obstack/bcache-managed macro table leaks memory.
3572 * macrotab.c (macro_free, macro_bcache_free): Instead of asserting
3573 that data is never freed in obstack/bcache-managed macro tables,
3574 just leak the storage.
3575 (macro_undef): If we're undefining a macro at exactly the same
3576 source location that we defined it, simply remove the definition
3579 2007-09-21 Joel Brobecker <brobecker@adacore.com>
3581 * symfile.h (struct sym_fns): Add new field sym_read_linetable.
3582 * coffread.c, dbxread.c, elfread.c, mipsread.c somread.c:
3583 Adjust the struct sym_fns object accordingly by setting
3584 the new field to NULL.
3585 * xcoffread.c (aix_process_linenos): Make static.
3586 (xcoff_sym_fns): Set new field to aix_process_linenos.
3587 * buildsym.c (end_symtab): Replace call to PROCESS_LINENUMBER_HOOK
3588 by call to new the new sym_fns sym_read_linetable function.
3589 * config/powerpc/aix.mt (DEPRECATED_TM_FILE): Delete.
3590 * config/rs6000/tm-rs6000.h: Delete.
3592 2007-09-21 David Ung <davidu@mips.com>
3593 Maciej W. Rozycki <macro@mips.com>
3595 * mips-tdep.c (mips_n32n64_push_dummy_call): Per N32/N64 ABI
3596 rules do not treat composite types specially.
3598 2007-09-20 Maciej W. Rozycki <macro@mips.com>
3600 * mips-tdep.c (mips32_in_function_epilogue_p): New function.
3601 (mips16_in_function_epilogue_p): Likewise.
3602 (mips_in_function_epilogue_p): Likewise.
3603 (mips_gdbarch_init): Register mips_in_function_epilogue_p().
3605 2007-09-19 Joel Brobecker <brobecker@adacore.com>
3607 * configure.ac: Add check for "etext".
3608 * configure, config.in: Regenerate.
3609 * maint.c (TEXTEND): Only define if either _etext or etext
3611 Disable the profiling functionality if TEXTEND is not defined.
3613 2007-09-19 Daniel Jacobowitz <dan@codesourcery.com>
3615 * mips-tdep.c (mips_stub_frame_cache): Correct the saved return
3616 address register. Correct the call to frame_id_build.
3617 (mips_stub_frame_sniffer): Use the stub unwinder when the PC
3620 2007-09-18 Joel Brobecker <brobecker@adacore.com>
3622 * ia64-tdep.c (refine_prologue_limit): Make sure we don't scan
3623 the linetable past the function end.
3625 2007-09-18 James E. Wilson <wilson@specifix.com>
3627 * MAINTAINERS: Update my email address.
3629 2007-09-18 Jerome Guitton <guitton@adacore.com>
3631 * inf-ttrace.c (inf_ttrace_private_thread_info): New structure type.
3632 (inf_ttrace_delete_dying_threads_callback): New function.
3633 (inf_ttrace_resume): After resuming the execution, iterate over
3634 the dying threads to delete them for the thread list.
3635 (inf_ttrace_wait): on TTEVT_LWP_EXIT and TTEVT_LWP_TERMINATE,
3636 mark the corresponding thread as dying instead of removing it
3637 from the thread list.
3638 (inf_ttrace_thread_alive): return 0 for dying threads.
3640 2007-09-17 Joel Brobecker <brobecker@adacore.com>
3642 * infrun.c (insert_step_resume_breakpoint_at_frame): Add assertion
3643 that return_frame is not null.
3645 2007-09-17 Joel Brobecker <brobecker@adacore.com>
3647 * solib-svr4.c: Add include of "auxv.h".
3648 (enable_break): Use the AT_BASE auxiliary entry if available.
3649 * Makefile.in (solib-svr4.o): Update dependencies.
3651 2007-09-17 Joel Brobecker <brobecker@adacore.com>
3653 * NEWS: Create a new section for the next release branch.
3654 Rename the section of the current branch, now that it has
3657 2007-09-17 Jerome Guitton <guitton@adacore.com>
3659 * dwarf2loc.c (dwarf_expr_frame_base): Guard against NULL.
3660 * Makefile.in (dwarf2loc.o): Depend on gdb_assert.h.
3662 2007-09-16 Vladimir Prus <vladimir@codesourcery.com>
3664 * mi/mi-cmds.c (mi_cmds): Register -list-features.
3665 * mi/mi-cmds.h (mi_cmd_list_features): New.
3666 * mi/mi-main.c (mi_cmd_list_features): New.
3668 2007-09-11 Joel Brobecker <brobecker@adacore.com>
3670 GDB 6.7 branch created (branch timestamp: 2007-09-07 14:00 UTC)
3671 * version.in: Bump version to 6.7.50-20070911-cvs.
3673 2007-09-10 Daniel Jacobowitz <dan@codesourcery.com>
3675 * thread.c (free_thread): Do not delete the step resume breakpoint
3678 2007-09-10 Daniel Jacobowitz <dan@codesourcery.com>
3680 * arch-utils.c (gdbarch_info_fill): Also try core_bfd.
3681 * corelow.c (core_read_description): New.
3682 (init_core_ops): Set to_read_description.
3683 * gdbarch.sh: Add gdbarch_core_read_description.
3684 * mips-linux-tdep.c (mips_linux_core_read_description): New.
3685 (mips_linux_init_abi): Call set_gdbarch_core_read_description.
3686 * mips-tdep.c (mips_tdesc_gp32, mips_tdesc_gp64): New.
3687 (mips_register_g_packet_guesses): Use them.
3688 (_initialize_mips_tdep): Initialize them.
3689 * mips-tdep.h (mips_tdesc_gp32, mips_tdesc_gp64): Declare.
3690 * gdbarch.h, gdbarch.c: Regenerated.
3692 2007-09-10 Ulrich Weigand <uweigand@de.ibm.com>
3694 * infrun.c (stepping_past_breakpoint): New global variable.
3695 (stepping_past_breakpoint_ptid): Likewise.
3696 (prepare_to_proceed): Add STEP parameter. Do not check for Ctrl-C.
3697 Only switch threads if we need to single-step over a breakpoint hit
3698 in the previously selected thread. If stepping, remember previous
3699 thread to switch back to in STEPPING_PAST_BREAKPOINT[_PTID]. Call
3700 switch_to_thread instead of copying its contents.
3701 (proceed): Pass STEP to prepare_to_proceed. Always set ONEPROC if
3702 prepare_to_proceed returns true.
3703 (init_wait_for_inferior): Reset STEPPING_PAST_BREAKPOINT.
3704 (context_switch): Call switch_to_thread.
3705 (handle_inferior_event): Switch back to previous thread if requested
3706 in STEPPING_PAST_BREAKPOINT[_PTID] by prepare_to_proceed.
3707 * gdbthread.h (switch_to_thread): Add prototype.
3708 * thread.c (switch_to_thread): Make global.
3710 2007-09-07 Pierre Muller <muller@ics.u-strasbg.fr>
3712 * p-valprint.c: Fix 7 ARI reported problems.
3713 (pascal_val_print): Fix one operator at end of line issue.
3714 Use paddress function to remove use of
3715 deprecated_print_address_numeric function (2 times).
3716 Use SYMBOL_LINKAGE_NAME instead of DEPRECATED_SYMBOL_NAME.
3717 (pascal_value_print): Fix 3 operator at end of line issues.
3719 2007-09-07 Daniel Jacobowitz <dan@codesourcery.com>
3722 * arm-tdep.c (arm_in_call_stub): Delete.
3723 (arm_skip_stub): Handle from_arm and from_thumb stubs.
3725 2007-09-06 Daniel Jacobowitz <dan@codesourcery.com>
3727 * ppc-sysv-tdep.c (do_ppc_sysv_return_value): Handle other integer
3730 2007-09-04 Daniel Jacobowitz <dan@codesourcery.com>
3731 Jim Blandy <jimb@codesourcery.com>
3733 * NEWS: Update description of string changes. Mention print/s.
3734 * c-valprint.c (textual_element_type): New.
3735 (c_val_print): Use it. Do not skip address printing for pointers
3736 with a string format.
3737 (c_value_print): Doc update.
3738 * dwarf2read.c (read_array_type): Use make_vector_type.
3739 * gdbtypes.c (make_vector_type): New.
3740 (init_vector_type): Use it.
3741 (gdbtypes_post_init): Initialize builtin_true_unsigned_char.
3742 (_initialize_gdbtypes): Mark int8_t and uint8_t as TYPE_FLAG_NOTTEXT.
3743 * gdbtypes.h (struct builtin_type): Add builtin_true_unsigned_char.
3744 (TYPE_FLAG_NOTTEXT, TYPE_NOTTEXT): New.
3745 (make_vector_type): New.
3746 * printcmd.c (print_formatted): Only handle 's' and 'i' for examine.
3747 Call the language print routine for string format.
3748 (print_scalar_formatted): Call val_print for string format. Handle
3749 unsigned original types for char format.
3750 (validate_format): Do not reject string format.
3751 * stabsread.c (read_type): Use make_vector_type.
3752 * xml-tdesc.c (tdesc_start_vector): Use init_vector_type.
3754 2007-09-04 Michael Snyder <msnyder@access-company.com>
3756 * expprint.c (print_subexp_standard): Check strchr for null.
3757 * Makefile.in (expprint.o): Depend on gdb_assert.h.
3759 * gnu-v2-abi.c (gnuv2_value_rtti_type): Guard against null.
3761 * stabsread.c (patch_block_status): Guard against null.
3762 * Makefile.in (stabsread.o): Depend on gdb_assert.h.
3764 2007-09-04 Daniel Jacobowitz <dan@codesourcery.com>
3766 * printcmd.c (printf_command): Handle ptr_arg. Correct typo
3767 in internal error message.
3769 2007-09-04 Pedro Alves <pedro_alves@portugalmail.pt>
3770 Daniel Jacobowitz <dan@codesourcery.com>
3772 * infcmd.c (post_create_inferior): Update comment.
3773 (run_command_1): Always call post_create_inferior with 0 as
3776 * i386-cygwin-tdep.h: New.
3777 * i386-cygwin-tdep.c: Include "i386-cygwin-tdep.h".
3778 (win32_xfer_shared_library): Make it extern.
3780 * win32-nat.c: Include gdb_obstack.h and xml-support.h and
3782 (win32_so_ops): Delete.
3783 (get_relocated_section_addrs): Delete.
3784 (solib_symbols_add): Delete.
3785 (register_loaded_dll): Delete.
3786 (win32_make_so): New.
3787 (handle_load_dll): Use win32_make_so.
3788 (win32_free_so): Free the passed in so.
3789 (win32_relocate_section_addresses): Delete.
3790 (win32_solib_create_inferior_hook): Delete.
3791 (handle_unload_dll): Don't add PE offset here. Free so with
3792 win32_free_so instead of free_so.
3793 (win32_special_symbol_handling): Delete.
3794 (get_win32_debug_event): Remove unneeded calls. Set state to
3795 TARGET_WAITKIND_LOADED on a dll unload.
3796 (do_initial_win32_stuff): Clear cygwin_load_start and
3798 (map_code_section_args): Delete.
3799 (dll_code_sections_add): Delete.
3800 (core_section_load_dll_symbols): Delete.
3801 (win32_xfer_shared_libraries): New.
3802 (win32_current_sos): Delete.
3803 (win32_xfer_partial): New.
3804 (open_symbol_file_object): Delete.
3805 (in_dynsym_resolve_code): Delete.
3806 (init_win32_ops): Set win32_xfer_partial as to_xfer_partial member
3807 of win32_ops. Remove win32_so_ops settings. Don't set
3808 current_target_so_ops here.
3810 * Makefile.in (i386_cygwin_tdep_h): New variable.
3811 (i386-cygwin-tdep.o): Update dependencies.
3812 (win32-nat.o): Update dependencies.
3814 2007-09-04 Pedro Alves <pedro_alves@portugalmail.pt>
3815 Daniel Jacobowitz <dan@codesourcery.com>
3817 * gdbarch.sh (core_xfer_shared_libraries): New.
3819 * corelow.c (core_xfer_partial): Handle TARGET_OBJECT_LIBRARIES.
3821 * gdb_obstack.h (obstack_grow_str, obstack_grow_str0): New.
3823 * xml-support.c (gdb_xml_parse): Debug output tweaks.
3824 (xml_escape_text): New.
3825 * xml-support.h (xml_escape_text): Declare.
3827 * config/i386/cygwin.mh (NATDEPFILES): Move corelow.o to ...
3828 * config/i386/cygwin.mt (TDEPFILES): ... here.
3830 * win32-nat.c: (fetch_elf_core_registers): Delete.
3831 (win32_elf_core_fn): Delete.
3832 (_initialize_core_win32): Delete.
3834 * i386-cygwin-tdep.c: Include "regset.h", "gdb_objstack.h",
3835 "xml-support.h" and "gdbcore.h".
3836 (i386_win32_gregset_reg_offset): New.
3837 (I386_WIN32_SIZEOF_GREGSET): New.
3838 (i386_win32_regset_from_core_section): New.
3839 (win32_xfer_shared_library): New.
3840 (struct cpms_data): New.
3841 (core_process_module_section): New.
3842 (win32_core_xfer_shared_libraries): New.
3843 (i386_cygwin_skip_trampoline_code): Register gregset_reg_offset,
3844 gregset_num_regs, sizeof_gregset members of tdep. Register
3845 regset_from_core_section and core_xfer_shared_libraries callbacks.
3847 * Makefile.in (i386-cygwin-tdep.o): Update dependencies.
3848 * gdbarch.h, gdbarch.c: Regenerate.
3850 2007-09-03 Daniel Jacobowitz <dan@codesourcery.com>
3852 * corelow.c (core_xfer_partial): Pass writebuf to
3853 deprecated_xfer_memory in TARGET_OBJECT_MEMORY write case.
3855 2007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
3857 * arm-tdep.h (arm_skip_stub): Declare.
3858 * arm-wince-tdep.c: Don't include "solib-svr4.h". Include
3860 (arm_pe_skip_trampoline_code): New function.
3861 (arm_wince_init_abi): Register arm_pe_skip_trampoline_code as
3862 gdbarch_skip_trampoline_code callback.
3863 * Makefile.in (arm-wince-tdep.o): Update dependencies.
3865 2007-09-03 Daniel Jacobowitz <dan@codesourcery.com>
3867 * MAINTAINERS: Move Fred Fish to Past Maintainers.
3869 2007-09-03 Daniel Jacobowitz <dan@codesourcery.com>
3871 * configure.ac: Add --with-expat.
3872 * configure: Regenerated.
3874 2007-09-03 Andreas Schwab <schwab@suse.de>
3876 * configure.ac: Accept --with-system-readline.
3877 (READLINE, READLINE_DEPS, READLINE_CFLAGS): Define and substitute.
3878 * configure: Regenerate.
3879 * Makefile.in (READLINE, READLINE_DEPS, READLINE_CFLAGS): Use
3881 (CDEPS): Use $(READLINE_DEPS) instead of $(READLINE).
3883 2007-09-03 Maxim Grigoriev <maxim2405@gmail.com>
3884 Daniel Jacobowitz <dan@codesourcery.com>
3886 * mi-main.c (mi_load_progress): Handle MI2 and MI3 interpreters.
3888 2007-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3890 * top.c (print_gdb_version): Fixed a string end-of-line compiler error.
3892 2007-09-02 Daniel Jacobowitz <dan@codesourcery.com>
3894 * top.c (print_gdb_version): Update for GPL version 3.
3896 2007-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3898 * NEWS: Mention the build-id .debug files verification.
3900 2007-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3902 * linux-nat.c (linux_nat_make_corefile_notes): Fixed a buffer overflow.
3904 2007-09-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3906 * Makefile.in (symfile.o): Update dependencies.
3907 * symfile.c (symbol_file_add_with_addrs_or_offsets): Initialize the
3908 DEBUGFILE variable. FIND_SEPARATE_DEBUG_FILE called only if !PSYMTABS.
3909 (struct build_id): New structure.
3910 (build_id_bfd_get, build_id_verify, build_id_to_debug_filename): New.
3911 (find_separate_debug_file): New variable BUILD_ID.
3912 Call BUILD_ID_BFD_GET with BUILD_ID_TO_DEBUG_FILENAME as the first try.
3914 2007-08-31 Vladimir Prus <vladimir@codesourcery.com>
3916 * varobj.c (struct varobj): Fix comment
3917 for the type member not to lie when it can be
3920 2007-08-31 Vladimir Prus <vladimir@codesourcery.com>
3922 Implement -var-info-path-expression.
3924 * mi/mi-cmds.h (mi_cmd_var_info_path_expression):
3926 * mi/mi-cmds.c (mi_cmds): Register var-info-path-expression.
3927 * mi/mi-cmd-var.c (mi_cmd_var_info_path_expression): New.
3928 * varobj.c (struct varobj): New field 'path_expr'.
3929 (c_path_expr_of_child, cplus_path_expr_of_child)
3930 (java_path_expr_of_child): New.
3931 (struct language_specific): New field path_expr_of_child.
3932 (varobj_create): Initialize the path_expr field.
3933 (varobj_get_path_expr): New.
3934 (new_variable): Initialize the path_expr field.
3935 (free_variable): Free the path_expr field.
3936 (adjust_value_for_children_access): New parameter
3938 (c_number_of_children): Adjust.
3939 (c_describe_child): New parameter CFULL_EXPRESSION.
3940 Compute full expression.
3941 (c_value_of_child, c_type_of_child): Adjust.
3942 (cplus_number_of_children): Adjust.
3943 (cplus_describe_child): New parameter CFULL_EXPRESSION.
3944 Compute full expression.
3945 (cplus_name_of_child, cplus_value_of_child)
3946 (cplus_type_of_child): Adjust.
3947 * varobj.h (varobj_get_path_expr): Declare.
3949 2007-08-31 Vladimir Prus <vladimir@codesourcery.com>
3951 * mi/mi-cmd-var.c (print_varobj): If a varobj
3952 type is NULL, don't try to print it.
3954 2007-08-30 Alan Modra <amodra@bigpond.net.au>
3956 * ppc-linux-nat.c (right_fill_reg): Delete.
3957 (supply_gregset): Use ppc_supply_gregset.
3958 (supply_fpregset): Use ppc_supply_fpregset.
3959 (fill_gregset): Use ppc_collect_gregset.
3960 (fill_fpregset): Use ppc_collect_fpregset.
3961 * ppc-linux-tdep.c (PPC_LINUX_PT_*): Don't define.
3962 (right_supply_register, ppc_linux_supply_gregset): Delete.
3963 (ppc32_linux_supply_gregset, ppc64_linux_supply_gregset): Delete.
3964 (ppc_linux_supply_fpregset): Delete.
3965 (ppc_linux_collect_gregset): New function.
3966 (ppc32_linux_reg_offsets, ppc64_linux_reg_offsets): New.
3967 (ppc32_linux_gregset, ppc64_linux_gregset): Update to use reg offsets,
3968 ppc_linux_supply_gregset, and ppc_collect_gregset.
3969 (ppc_linux_fpregset): Rename to ppc32_linux_fpregset and update.
3970 (ppc_linux_gregset, ppc_linux_fpregset): New functions.
3971 (ppc_linux_regset_from_core_section): Update.
3972 * ppc-tdep.h (ppc_linux_gregset, ppc_linux_fpregset): Declare.
3973 (ppc_linux_supply_gregset, ppc_linux_supply_fpregset): Delete.
3974 (struct ppc_reg_offsets): Add gpr_size, xr_size, fpscr_size fields.
3975 * ppcobsd-tdep.c (ppcobsd_supply_gregset): Delete FIXME and assert.
3976 (ppcobsd_collect_gregset): Likewise.
3977 (_initialize_ppcnbsd_tdep): Init gpr_size, xr_size, fpscr_size.
3978 * ppcnbsd-tdep.c (_initialize_ppcobsd_tdep): Likewise.
3979 * ppcobsd-nat.c (_initialize_ppcobsd_nat): Likewise.
3980 * rs6000-aix-tdep.c (rs6000_aix32_reg_offsets): Likewise.
3981 (rs6000_aix64_reg_offsets): Likewise.
3982 (rs6000_aix_supply_regset): Call ppc_supply_fpregset without testing
3983 ppc_floating_point_unit_p.
3984 (rs6000_aix_collect_regset): Similarly.
3985 * rs6000-tdep.c (ppc_supply_reg): Add regsize param. Adjust offset
3986 when regsize is larger than regcache register size.
3987 (ppc_collect_reg): Similarly zero pad when regsize is larger than
3988 regcache register size.
3989 (ppc_greg_offset): New function, split out from..
3990 (ppc_supply_gregset): ..here. Separate code handling all regs from
3991 single reg case. Correct xer offset.
3992 (ppc_fpreg_offset): New function, split out from..
3993 (ppc_supply_fpregset): ..here. Separate code handling all regs from
3995 (ppc_collect_gregset, ppc_collect_fpregset): Likewise.
3996 (ppc_supply_fpregset, ppc_collect_fpregset): Don't assert we have
3997 a fp unit, instead return if no fp.
3999 2007-08-29 Jim Blandy <jimb@codesourcery.com>
4001 * breakpoint.c (watch_command_1): Remove '#ifdef HPUXHPPA' block;
4002 this code has not been compiled for two years.
4004 2007-08-29 Michael Snyder <msnyder@access-company.com>
4006 * event-top.c (gdb_readline2): Return after EOF.
4008 2007-08-29 Joel Brobecker <brobecker@adacore.com>
4010 * symtab.c: Remove a function that has been commented out 3 years ago.
4012 2007-08-29 Randolph Chung <tausq@debian.org>
4014 * hppa-tdep.c (hppa32_cannot_fetch_register)
4015 (hppa64_cannot_fetch_register): New functions.
4016 (hppa_gdbarch_init): Set cannot_fetch_register appropriately.
4017 * hppa-tdep.h (hppa_regnum): Add HPPA_CR26_REGNUM.
4019 2007-08-28 Michael Snyder <msnyder@access-company.com>
4021 * mi/mi-cmd-var.c (mi_print_value_p): No longer necessary to
4022 check for null before calling check_typedef.
4024 * NEWS: Mention Coverity bug fixes.
4026 2007-08-27 Markus Deuling <deuling@de.ibm.com>
4028 * spu-tdep.c (spu_pointer_to_address): New function.
4029 (spu_integer_to_address): Likewise.
4030 (spu_gdbarch_init): Add spu_pointer_to_address and
4031 spu_integer_to_address to gdbarch.
4033 2007-08-26 Pedro Alves <pedro_alves@portugalmail.pt>
4035 * arm-wince-tdep.c (ARM_WINCE_JB_PC): Change to 10.
4037 2007-08-23 Joel Brobecker <brobecker@adacore.com>
4039 * Makefile.in (copying.c): Use the top-level COPYING3 as the file
4040 that contains the GDB license.
4041 * copying.awk: Adjust to the GPLv3 wording.
4042 * copying.c: Regenerate.
4044 2007-08-23 Joel Brobecker <brobecker@adacore.com>
4046 * copying.awk: Protoization, and i18n markup.
4048 2007-08-23 Joel Brobecker <brobecker@adacore.com>
4050 * config/djgpp/djconfig.sh: Switch license to GPLv3.
4051 * copyright.sh: Likewise.
4052 * gdb-events.sh: Likewise.
4053 * gdb_gcore.sh: Likewise.
4054 * gdb_mbuild.sh: Likewise.
4055 * gdbarch.sh: Likewise.
4056 * observer.sh: Likewise.
4057 * features/feature_to_c.sh: Likewise.
4058 * regformats/regdat.sh: Likewise.
4060 2007-08-23 Joel Brobecker <brobecker@adacore.com>
4062 Switch the license of all .c files to GPLv3.
4063 Switch the license of all .h files to GPLv3.
4064 Switch the license of all .cc files to GPLv3.
4066 2007-08-23 Joel Brobecker <brobecker@adacore.com>
4068 * configure.ac: Switch license to GPLv3.
4070 2007-08-22 Daniel Jacobowitz <dan@codesourcery.com>
4072 * mips-tdep.c (mips_gdbarch_init): Use Tag_GNU_MIPS_ABI_FP to
4073 determine the file's FPU type.
4075 2007-08-22 Daniel Jacobowitz <dan@codesourcery.com>
4077 * mips-tdep.c (mips_n32n64_fp_arg_chunk_p): New.
4078 (mips_n32n64_push_dummy_call): Always increment float_argreg along
4079 with argreg. Use mips_n32n64_fp_arg_chunk_p.
4081 2007-08-22 Daniel Jacobowitz <dan@codesourcery.com>
4083 * solib-svr4.c (scan_dyntag): Only read target memory when necessary.
4085 (elf_locate_base): Look for DT_MIPS_RLD_MAP first. Expand comments.
4086 (elf_lookup_lib_symbol): Fix formatting.
4088 2007-08-21 Michael Snyder <msnyder@access-company.com>
4090 * dbxread.c (read_dbx_symtab): Guard null deref.
4093 * valops.c (find_overload_match): Guard against NULL.
4095 2007-08-21 Daniel Jacobowitz <dan@codesourcery.com>
4097 * MAINTAINERS (Patch Champions): Remove self.
4099 2007-08-21 Chris Smith <chris.smith@st.com>
4101 * cli/cli-script.c (read_command_lines): Call dont_repeat for each
4104 2007-08-18 Michael Snyder <msnyder@access-company.com>
4106 * stabsread.c (dbx_lookup_type): Memory leak.
4108 * event-loop.c (delete_async_signal_handler): Move pointer null
4109 test to before pointer dereference.
4111 * ui-out.c (append_header_to_list): Possible cut and paste error.
4113 * MAINTAINERS: white space tweak.
4115 2007-08-17 Michael Snyder <msnyder@access-company.com>
4117 * stack.c (print_frame): Memory leak.
4119 * completer.c (filename_completer): Avoid memory leak.
4120 Remove unnecessary nested block.
4122 * c-exp.y (parse_number): Memory leak.
4124 * completer.c (location_completer): Must free 'fn_list', except
4125 in the one case where it is returned (as 'list').
4127 * varobj.c (value_of_root): Memory leak.
4129 * gdbtypes.h (virtual_base_list): Remove export decl.
4130 * gdbtypes.c (virtual_base_list): Make static. Not called outside.
4131 (virtual_base_index): Memory leak.
4132 (virtual_base_index_skip_primaries): Ditto.
4134 2007-08-17 Maxim Grigoriev <maxim2405@gmail.com>
4136 * xtensa-tdep.c (ARG_NOF, ARG_1ST, PS_WOE, PS_EXC, C0_MAXOPDS)
4137 (C0_NREGS, C0_CLESV, C0_SP, C0_FP, C0_RA, C0_ARGS, C0_NARGS)
4138 (C0_CONST, C0_INEXP, C0_NOSTK): New macros.
4139 (xtensa_read_register): New function.
4140 (xtensa_windowed_frame_cache, xtensa_call0_frame_cache, xtensa_c0reg)
4141 (xtensa_insn_kind): New types.
4142 (xtensa_frame_cache, xtensa_alloc_frame_cache, xtensa_frame_cache)
4143 (xtensa_frame_prev_register, xtensa_return_value, xtensa_skip_prologue)
4144 (xtensa_verify_config, xtensa_pseudo_register_read)
4145 (xtensa_pseudo_register_write, xtensa_extract_return_value)
4146 (xtensa_store_return_value)
4147 (xtensa_push_dummy_call): Extended to support Xtensa Call0 ABI.
4148 (windowing_enabled, extract_call_winsize, xtensa_unwind_dummy_id)
4149 (xtensa_frame_this_id, xtensa_frame_prev_register)
4150 (xtensa_register_type, xtensa_reg_to_regnum): Cosmetic changes.
4151 (call0_frame_cache, call0_frame_get_reg_at_entry)
4152 (call0_classify_opcode, call0_track_op)
4153 (call0_analyze_prologue, call0_frame_cache): New functions.
4155 2007-08-17 Vladimir Prus <vladimir@codesourcery.com>
4157 * breakpoint.c (bpstat_free): New.
4158 (bpstat_clear): Use bpstat_free.
4159 (delete_breakpoint): Document why we cannot
4160 remove bpstats from stop_bpstat.
4161 * breakpoint.h (bpstat_free): Declare.
4163 2007-08-16 Michael Snyder <msnyder@access-company.com>
4165 * event-loop.c (gdb_wait_for_event): Move statement into "if" block.
4167 2007-08-15 Paul Hilfinger <hilfinger@adacore.com>
4168 Joel Brobecker <brobecker@adacore.com>
4170 * ada-lang.c (resolve_subexp): Correct arity of binary operators.
4172 2007-08-15 Paul Hilfinger <hilfinger@adacore.com>
4173 Joel Brobecker <brobecker@adacore.com>
4175 * ada-lang.c (possible_user_operator_p): Alternative fix to last
4176 checkin guarding against NULL.
4178 2007-08-14 Michael Snyder <msnyder@access-company.com>
4180 * tui-command.c, tui-data.c, tui-disasm.c, tui-file.c, tui-io.c,
4181 tui-layout.c, tui-regs.c, tui-source.c, tui-win.c, tui-windata.c,
4182 tui-wingeneral.c, tui-winsource.c: Coding standard, && and ||
4183 go at beginning of new line.
4185 * tui-data.c, tui-data.h, tui-disasm.c, tui-disasm.h, tui-hooks.c,
4186 tui-io.c, tui-layout.c, tui-layout.h, tui-out.c, tui-regs.c,
4187 tui-source.c, tui-source.h, tui-stack.c, tui-win.c, tui-win.h,
4188 tui-windata.c, tui-windata.h, tui-wingeneral.c, tui-winsource.c,
4189 tui-winsource.h, tui.c, tui.h: Function declarations and
4190 definitions, wrap long lines.
4192 * tui-command.c, tui-data.c, tui-disasm.c, tui-layout.c,
4193 tui-regs.c, tui-win.c, tui-windata.c, tui-winsource.c, tui.c:
4194 Reformat block comments to GNU standard.
4196 * tui-command.c, tui-data.c, tui-data.h, tui-disasm.c, tui-file.c,
4197 tui-hooks.c, tui-interp.c, tui-io.c, tui-layout.c, tui-out.c,
4198 tui-regs.c, tui-regs.h, tui-source.c, tui-stack.c, tui-win.c,
4199 tui-windata.c, tui-wingeneral.c, tui-winsource.c, tui-winsource.h,
4200 tui.c, tui.h: Comment reformatting to coding standard (capitals,
4201 spaces after periods, etc).
4203 * tui-data.c, tui-data.h, tui-disasm.c, tui-hooks.c, tui-layout.c,
4204 tui-regs.c, tui-source.c, tui-stack.c, tui-win.c, tui-windata.c,
4205 tui-wingeneral.c, tui-wingeneral.h, tui-winsource.c, tui.c,
4206 tui-winsource.h: Whitespace changes, fix pointer declarations
4209 2007-08-14 Joel Brobecker <brobecker@adacore.com>
4210 Michael Snyder <msnyder@access-company.com>
4212 * ada-lang.c (field_alignment): Guard against NULL.
4214 2007-08-14 Joel Brobecker <brobecker@adacore.com>
4216 * MAINTAINERS (Global Maintainers): Add self.
4218 2007-08-14 Michael Snyder <msnyder@access-company.com>
4220 * mi/mi-interp.c (mi_cmd_interpreter_exec): Dead code, dead variable.
4222 * ada-lang.c (possible_user_operator_p): Guard against NULL.
4224 * varobj.c (cplus_describe_child): Guard against null.
4225 Use "NULL" instead of "0" to initialize pointers.
4227 2007-08-14 Daniel Jacobowitz <dan@codesourcery.com>
4229 * arm-tdep.c (arm_gdbarch_init): Allow unknown ABI and FPU settings
4230 to match any gdbarch with matching OSABI. Set default ABI and FPU
4231 after running the OSABI handler.
4233 2007-08-14 Daniel Jacobowitz <dan@codesourcery.com>
4235 * config/i386/linux.mh (NATDEPFILES): Move corelow.o from here...
4236 * config/i386/linux.mt (TDEPFILES): ...to here.
4238 2007-08-14 Vladimir Prus <vladimir@codesourcery.com>
4240 * breakpoint.c (disable_breakpoints_in_shlibs): Remove
4241 the 'silent' parameter and code to implement that.
4242 * breakpoint.h (disable_breakpoints_in_shlibs): Adjust
4244 * win32-nat.c: Adjust.
4247 2007-08-14 Vladimir Prus <vladimir@codesourcery.com>
4249 * breakpoint.c (update_breakpoints_after_exec): Don't
4250 set address to zero.
4252 2007-08-13 Michael Snyder <msnyder@access-company.com>
4254 * valops.c: Whitespace clean-up.
4256 * tui/tui-winsource.c (tui_alloc_source_buffer): Clean up allocation.
4258 * event-top.c (command_line_handler): Memory leak.
4260 * mi/mi-cmd-var.c (mi_cmd_var_set_format): Memory leak.
4261 No need to make copy.
4263 * source.c (find_source_lines): Require symtab 's'.
4265 2007-08-11 Michael Snyder <msnyder@access-company.com>
4267 * completer.c: Spelling fix in comments.
4269 2007-08-10 Michael Snyder <msnyder@access-company.com>
4271 * gdbtypes.c: Coding standard cleanup.
4272 * gdbtypes.c: Comment/whitespace cleanup.
4274 * stabsread.c (read_huge_number): Attempt to compute value before
4275 values that it depends on.
4277 * linespec.c (decode_dollar): Dead code, ptr can't be non-null.
4278 (decode_objc): Use "NULL" instead of 0.
4279 (find_method): Ditto.
4280 (decode_all_digits): Ditto.
4281 (decode_dollar): Ditto.
4283 * mi/mi-main.c (mi_cmd_data_evaluate_expression): Resource leak.
4285 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Memory leak.
4287 * solib-svr4.c (enable_break): Don't free tmp_pathname until
4290 * completer.c: Comment/whitespace cleanup.
4292 2007-08-10 Joel Brobecker <brobecker@adacore.com>
4294 * Makefile.in (i386nbsd-nat.o): Add missing dependency.
4296 2007-08-10 Maxim Grigoriev <maxim2405@gmail.com>
4298 * remote-fileio.c (remote_fileio_resize_fd_map): Initialize newly
4299 allocated file descriptors.
4301 2007-08-10 Joel Brobecker <brobecker@adacore.com>
4303 * Makefile.in: Minor cleanup throughout; add some missing variables,
4304 add some missing rules, remove some rules that are no longer needed,
4305 and fix the dependencies in several rules.
4307 2007-08-10 Ludovic Courtès <ludo@gnu.org>
4309 * Makefile.in (SFILES): Add scm-{exp,lang,valprint}.c.
4310 (scm_lang_h, scm_tags_h): New.
4311 (COMMON_OBS): Add scm-{exp,lang,valprint}.o.
4312 (scm-exp.o, scm-lang.o, scm-valprint.o): New targets.
4313 * defs.h (enum language): Add `language_scm'.
4315 * MAINTAINERS: Add Emacs local variables to use UTF-8 upon
4318 2007-08-09 Ludovic Courtès <ludo@gnu.org>
4320 * MAINTAINERS (Write After Approval): Add myself.
4322 2007-08-09 Michael Snyder <msnyder@access-company.com>
4324 * solib.c (solib_open): Memory leak -- openp returns xmalloc buffer.
4326 2007-08-09 Joel Brobecker <brobecker@adacore.com>
4328 * solib-som.c (som_relocate_section_addresses): Stop saving
4329 the $CODE$ section in the so_list structure.
4331 2007-08-08 Maxim Grigoriev <maxim2405@gmail.com>
4333 * xtensa-tdep.h (XTENSA_MAX_COPROCESSOR): New.
4334 (xtensa_register_group_t): Add entries for coprocessors.
4335 * xtensa-tdep.c (xtensa_init_reggroups): New register groups.
4336 (xtensa_add_reggroups): Likewise.
4337 (xtensa_register_reggroup_p): Likewise.
4338 (xtensa_coprocessor_register_group): New function.
4341 2007-08-08 Jan Kratochvil <jan.kratochvil@redhat.com>
4343 * serial.c (serial_open): Fix the OPEN parameter macro expansion.
4345 2007-08-08 Michael Snyder <msnyder@access-company.com>
4347 * target.c (target_read_string): Guard against null.
4349 * varobj.c (value_of_root): Move alloc after return to avoid leak.
4351 * tui/tui-layout.c (tui_set_layout): Dead code, dead variable.
4352 (tui_set_layout_for_display_command): Mem leak.
4354 * top.c (command_line_input): Memory leak.
4356 * solib-svr4.c (open_symbol_file_object): Memory leak.
4357 (svr4_current_sos): Ditto.
4358 (enable_break): Ditto.
4360 * cp-valprint.c (cp_print_hpacc_virtual_table_entries): Memory leak.
4362 * dwarf2read.c (add_partial_symbol): Memory leak.
4364 2007-08-06 Michael Snyder <msnyder@access-company.com>
4366 * ada-lang.c (desc_bounds): Comparison of function address to NULL.
4368 2007-08-05 Jim Blandy <jimb@codesourcery.com>
4370 * macroexp.c (init_buffer): Remove testing code that overrides the
4371 caller's length guess.
4372 (gather_arguments): Use a larger initial size, now that the vector
4373 growth code has been exercised.
4375 2007-08-05 Pedro Alves <pedro_alves@portugalmail.pt>
4377 * solib-target.c (solib_target_relocate_section_addresses): Add
4378 orig_delta to addr_high.
4380 2007-08-04 Michael Snyder <msnyder@access-company.com>
4382 * remote-fileio.c (remote_fileio_func_write): Memory leak.
4384 * breakpoint.c (print_one_breakpoint): Off by one error.
4386 * tracepoint.c (add_register): Off by one error.
4387 (stringify_collection_list): Free malloc buffer.
4389 2007-08-03 Michael Snyder <msnyder@access-company.com>
4391 * mi-cmd-var.c (mi_cmd_var_delete): Remove unused variable,
4392 stop memory leak, straighten out cleanups.
4394 * jv-lang.c (java_link_class_type): Guard against NULL.
4396 2007-08-02 Michael Snyder <msnyder@access-company.com>
4398 * gdbtypes.c (create_set_type): Test should only be done within
4399 the preceeding if block. Otherwise, variable is uninitialized.
4401 * gdbtypes.c (check_typedef): Guard NULL.
4403 2007-08-01 Michael Snyder <msnyder@access-company.com>
4405 * cli/cli-decode.c (lookup_cmd): Check for null earlier, to
4406 avoid dereference in lookup_cmd_1.
4408 * tui/tui-data.c (tui_alloc_content): Move assign out of if,
4409 clean up long lines.
4410 (tui_alloc_generic_win_info): Tidy by using XMALLOC macro.
4411 (tui_alloc_win_info): Ditto.
4412 (tui_add_content_elements): Ditto.
4413 * tui/tui-file.c (tui_file_magic): Ditto.
4415 2007-07-31 Michael Snyder <msnyder@access-company.com>
4417 * breakpoint.c (breakpoint_init_inferior): Add 'else' to 'if'.
4418 True and false paths are mutually exclusive.
4420 * event-top.c (command_line_handler): Add pedantic return.
4422 * f-valprint.c (info_common_command): Bail out to prevent null
4423 pointer deref. Break up a long line.
4425 * exec.c (xfer_memory): Remove redundant condition from 'if'.
4427 * symfile.c (reread_separate_symbols): Free xmalloced memory.
4429 * printcmd.c (build_address_symbolic): Remove dead code and dead
4432 2007-07-31 Daniel Jacobowitz <dan@codesourcery.com>
4434 * linespec.c (minsym_found): Advance to the next line if possible.
4436 2007-07-31 Pedro Alves <pedro_alves@portugalmail.pt>
4438 * arm-wince-tdep.c (arm_wince_init_abi): Remove svr4 related call.
4439 * config/arm/wince.mt (TDEPFILES): Remove solib-legacy.o and
4440 solib-svr4.o, and add solib-target.o
4442 2007-07-27 Michael Snyder <msnyder@access-company.com>
4444 * tui/tui-data.c (tui_alloc_generic_win_info): Wrong arg for sizeof.
4446 2007-07-26 Maciej W. Rozycki <macro@linux-mips.org>
4448 * MAINTAINERS (Write After Approval): Add myself.
4450 2007-07-26 Maciej W. Rozycki <macro@mips.com>
4452 * Makefile.in (MAKEHTMLFLAGS): Also search the current directory
4455 2007-07-25 Maciej W. Rozycki <macro@mips.com>
4457 * Makefile.in (MAKEHTMLFLAGS): Remove "-glossary".
4459 2007-07-24 Michael Snyder <msnyder@access-company.com>
4461 * solib-svr4.c (svr4_fetch_objfile_link_map): Null pointer check of
4462 'buffer' must cover both branches that call strcmp (Coverity).
4464 * stack.c (print_frame_args): Check return value of lookup_symbol.
4466 * ax-gdb.c (find_field): Guard against null ptr.
4468 2007-07-24 Ulrich Weigand <uweigand@de.ibm.com>
4470 * regformats/reg-spu.dat: Fix order of npc, id registers.
4472 2007-07-24 Ulrich Weigand <uweigand@de.ibm.com>
4474 * target.c (memory_xfer_partial): Accesses to unmapped overlay
4475 sections should always go to the executable file.
4477 2004-07-20 Chris Dearman <chris@mips.com>
4479 * mips-tdep.c (heuristic_proc_start): Add more MIPS16 function
4480 prologue instructions.
4482 2007-07-20 Maciej W. Rozycki <macro@mips.com>
4484 * mips-tdep.c (mips_next_pc): Use is_mips16_addr() instead of
4487 2007-07-20 Chris Dearman <chris@mips.com>
4488 Maciej W. Rozycki <macro@mips.com>
4490 * mips-tdep.c (fetch_mips_16): Fix typos and reformat the
4493 2007-07-17 Pedro Alves <pedro_alves@portugalmail.pt>
4494 Daniel Jacobowitz <dan@codesourcery.com>
4496 * config/i386/cygwin.mt (TDEPFILES): Add solib-target.o.
4497 * coff-pe-read.c (read_pe_exported_syms): Delete verbose
4499 * NEWS: Mention gdbserver DLL support.
4501 2007-07-17 Daniel Jacobowitz <dan@codesourcery.com>
4503 * dwarf2read.c (dwarf_decode_lines): Detect address size mismatches.
4505 2007-07-16 H.J. Lu <hongjiu.lu@intel.com>
4507 * i386-linux-nat.c (fetch_regs): Work around gcc 3.4 alias
4510 2007-07-13 Kevin Buettner <kevinb@redhat.com>
4512 * mep-tdep.c (mep_analyze_prologue): Update comment for BRA
4515 2007-07-12 Kevin Buettner <kevinb@redhat.com>
4517 * mep-tdep.c (IS_BRA, BRA_DISP): New macros.
4518 (mep_analyze_prologue): Add case for BRA instruction.
4520 2007-07-12 Ulrich Weigand <uweigand@de.ibm.com>
4522 * solib-svr4.c (LM_ADDR_CHECK): Relax prelink recognition heuristic.
4524 2007-07-10 Nick Roberts <nickrob@snap.net.nz>
4526 * breakpoint.c: Include "top.h".
4527 (breakpoint_1): Don't set convenience variable $_ if server prefix
4529 (_initialize_breakpoint): Describe this behaviour in command help.
4531 2007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
4533 * solib-target.c (library_list_start_segment): Cast address to
4536 2007-07-06 Mark Kettenis <kettenis@gnu.org>
4538 * bsd-uthread.c (bsd_uthread_wait): Don't try to fetch thread IDs
4539 for terminated processes.
4541 2007-07-05 Michael Snyder <msnyder@access-company.com>
4543 * event-top.c (cli_command_loop): Prompt string can (and should)
4544 be freed after call to readline (Coverity). Also move local var
4545 declarations into block where they are used.
4547 * tui/tui-interp.c (tui_command_loop): Prompt string can (and
4548 should) be freed after call to readline (Coverity). Also move
4549 local var declarations into block where they are used.
4551 2007-07-03 Andreas Schwab <schwab@suse.de>
4553 * linux-nat.c (linux_nat_info_proc_cmd): Fix parsing of columns in
4556 2007-07-03 Paul Gilliam <pgilliam@us.ibm.com>
4557 Thiago Bauermann <bauerman@br.ibm.com>
4558 Joseph S. Myers <joseph@codesourcery.com>
4559 Daniel Jacobowitz <dan@codesourcery.com>
4561 * remote.c (remote_check_symbols): Use
4562 gdbarch_convert_from_func_ptr_addr.
4563 * infcall.c (find_function_addr): Handle function descriptors
4564 without debugging information.
4565 * ppc-linux-tdep.c (ppc_linux_convert_from_func_ptr_addr): Renamed
4566 from ppc64_linux_convert_from_func_ptr_addr. Handle -msecure-plt.
4567 (ppc_linux_init_abi): Always set convert_from_func_ptr_addr.
4568 * solib-svr4.c (solib_break_names): Remove "._dl_debug_state".
4569 (bfd_lookup_symbol): Do not take a SECT_FLAGS argument. Always
4570 allow SEC_CODE and SEC_DATA.
4571 (enable_break): Update calls. Pass current_target to solib_add.
4572 Use gdbarch_convert_from_func_ptr_addr.
4574 2007-07-03 Ilko Iliev <iliev@ronetix.at>
4575 Daniel Jacobowitz <dan@codesourcery.com>
4577 * symfile.c (print_transfer_performance): Avoid integer overflow.
4580 2007-07-03 Markus Deuling <deuling@de.ibm.com>
4582 * cp-namespace.c (lookup_symbol_file): Add block to
4583 lookup_symbol_global call.
4584 * Makefile.in (solist_h): Add dependency on symtab header.
4585 (symtab.o): Add dependency on solist header.
4586 * solib.c (solib_global_lookup): New function.
4587 * solib-svr4.c (scan_dyntag): Likewise.
4588 (elf_locate_base): Call helper routine scan_dyntag.
4589 (elf_lookup_lib_symbol): New function.
4590 (_initialize_svr4_solib): Add elf_lookup_lib_symbol to svr4_so_ops.
4591 * solist.h (symtab.h): New include.
4592 (struct target_so_ops): New member lookup_lib_global_symbol.
4593 (solib_global_lookup): New prototype.
4594 * symtab.c: New include solist.h.
4595 (lookup_objfile_from_block): New function.
4596 (lookup_global_symbol_from_objfile): New function.
4597 (basic_lookup_symbol_nonlocal): Add block to lookup_symbol_global call.
4598 (lookup_symbol_global): Call library-specific lookup procedure.
4599 * symtab.h (lookup_global_symbol_from_objfile): New prototype.
4601 * NEWS: Document framework.
4603 2007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
4605 * target-descriptions.c (tdesc_create_reg): Do not set reg->type
4608 * cli/cli-script.c (build_command_line): Update NULL check.
4610 2007-07-02 Michael Snyder <msnyder@access-company.com>
4612 * p-exp.y (yylex): Memory leak, 'uptokstart' must be freed (Coverity).
4614 2007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
4616 * Makefile.in (XMLFILES): Add library-list.dtd.
4617 (ALLDEPFILES): Add solib-target.o.
4618 (solib-target.o): New rule.
4619 * remote.c (PACKET_qXfer_libraries): New constant.
4620 (remote_protocol_features): Add qXfer:libraries:read.
4621 (remote_wait): Recognize library stop replies.
4622 (remote_async_wait): Likewise. Fix typo.
4623 (remote_xfer_partial): Handle TARGET_OBJECT_LIBRARIES.
4624 (init_remote_async_ops): Fix typo.
4625 (_initialize_remote): Register "set remote library-info-packet".
4626 * solib-som.c (som_current_sos): Set addr_low and addr_high.
4627 * solib-target.c: New file.
4628 * solib.c (solib_map_sections): Use addr_low and addr_high instead
4630 (info_sharedlibrary_command): Likewise.
4631 (solib_add_library, solib_remove_library): New.
4632 * solist.h (struct so_list): Replace textsection with addr_low and
4634 * target.h (enum target_object): Add TARGET_OBJECT_LIBRARIES.
4635 * NEWS: Describe new qXfer:libraries:read and shared library
4637 * features/library-list.dtd: New.
4639 2007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
4641 * infrun.c (inferior_ignoring_startup_exec_events): Delete.
4642 (start_remote): Use STOP_QUIETLY_REMOTE.
4643 (handle_inferior_event): Do not condition TARGET_WAITKIND_LOADED
4644 support on a SOLIB_ADD definition. Update breakpoints_inserted.
4645 Update to match shared library event breakpoint support. Only
4646 resume if appropriate. Handle STOP_QUIETLY_REMOTE.
4647 (normal_stop): Handle TARGET_WAITKIND_LOADED.
4648 * fork-child.c (startup_inferior): Do not set
4649 inferior_ignoring_startup_exec_events
4650 * inferior.h (inferior_ignoring_startup_exec_events): Delete
4652 (enum stop_kind): Improve documentation. Add STOP_QUIETLY_REMOTE.
4654 2007-07-02 Markus Deuling <deuling@de.ibm.com>
4656 * breakpoint.c (insert_bp_location): Remove dead code
4657 (DISABLE_UNSETTABLE_BREAK).
4658 (disable_breakpoints_in_shlibs)
4659 (disable_breakpoints_in_unloaded_shlib): Likewise (comment).
4661 2007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
4663 * breakpoint.c (reattach_breakpoints): Do not use remove_breakpoint.
4664 Call insert_bp_location.
4666 2007-07-01 H.J. Lu <hongjiu.lu@intel.com>
4668 * core-regset.c (fetch_core_registers): Work around gcc 3.4
4671 2007-07-01 Daniel Jacobowitz <dan@codesourcery.com>
4673 * minsyms.c (lookup_minimal_symbol_by_pc_section): Search fewer
4676 2007-07-01 Daniel Jacobowitz <dan@codesourcery.com>
4678 * top.c (gdb_readline_wrapper_line): Call rl_callback_handler_remove.
4679 (struct gdb_readline_wrapper_cleanup): Remove prompt_orig.
4680 (gdb_readline_wrapper_cleanup): Do not reset the prompt.
4681 (gdb_readline_wrapper): Do not save the prompt. Pass our prompt
4682 to display_gdb_prompt.
4684 2007-07-01 Daniel Jacobowitz <dan@codesourcery.com>
4687 * target.c (memory_xfer_partial): Do not continue past targets with
4690 2007-06-30 Andreas Schwab <schwab@suse.de>
4692 * m68k-tdep.c (m68k_ps_type): New.
4693 (m68k_init_types): New.
4694 (m68k_register_type): Use m68k_ps_type for PS register.
4695 (_initialize_m68k_tdep): Call m68k_init_types.
4697 * m68k-tdep.c (m68k_gdbarch_init): Don't infer coldfire flavour
4698 from the generic m68k arch.
4700 2007-06-28 Michael Snyder <msnyder@access-company.com>
4702 * m2-typeprint.c (m2_print_type): Move pointer ref after null test
4705 * linux-thread-db.c (thread_db_get_thread_local_address): Add
4706 gdb_assert before using return value of find_thread_pid (Coverity).
4708 * source.c (unset_substitute_path_command): Plug leak (Coverity).
4710 * cli/cli-script.c (build_command_line): Add null pointer guard
4713 2007-06-27 Daniel Jacobowitz <dan@codesourcery.com>
4715 * linux-thread-db.c (thread_db_attach): Delete.
4716 (thread_db_detach): Typo fix. Call target_mourn_inferior
4717 instead of fixing up proc_handle.
4718 (have_threads_callback, have_threads): New functions.
4719 (thread_db_wait): Remove dead proc_handle.pid check. Only
4720 translate PTIDs if we have registered threads. Check for new
4721 threads if we have none.
4722 (thread_db_create_inferior, thread_db_post_startup_inferior): Delete.
4723 (find_new_threads_callback): Only enable event reporting if TID == 0.
4724 (same_ptid_callback): New.
4725 (thread_db_get_thread_local_address): Check for new threads.
4726 (init_thread_db_ops): Don't set to_attach, to_create_inferior,
4727 or to_post_startup_inferior.
4729 2007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
4731 * infrun.c (adjust_pc_after_break): Do not assume software single-step
4732 is always active if SOFTWARE_SINGLE_STEP_P is true.
4733 (resume): Use gdbarch_software_single_step[_p] instead of
4734 SOFTWARE_SINGLE_STEP[_P].
4735 (handle_inferior_event): Do not check for SOFTWARE_SINGLE_STEP_P.
4737 * gdbarch.sh (software_single_step): Remove target macro.
4738 * gdbarch.h, gdbarch.c: Regenerate.
4740 2007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
4742 * gdbarch.sh (gdbarch_swap_ftype, deprecated_register_gdbarch_swap,
4743 DEPRECATED_REGISTER_GDBARCH_SWAP): Remove.
4744 (struct gdbarch_swap, struct gdbarch_swap_registration,
4745 struct gdbarch_swap_registry, gdbarch_swap_registry,
4746 current_gdbarch_swap_init_hack, current_gdbarch_swap_out_hack,
4747 current_gdbarch_swap_in_hack): Remove.
4748 (find_arch_by_info): Do not call current_gdbarch_swap_init_hack.
4749 (gdbarch_find_by_info): Do not call current_gdbarch_swap_in_hack
4750 and current_gdbarch_swap_out_hack, update current_gdbarch directly.
4751 (deprecated_current_gdbarch_select_hack): Likewise.
4752 * gdbarch.h, gdbarch.c: Regenerate.
4754 2007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
4756 * infrun.c (clear_proceed_status): Clean up stop_registers.
4757 (normal_stop): Allocate regcache for stop_registers.
4758 (struct inferior_status): Remove stop_registers member.
4759 (save_inferior_status): Do not save stop_registers.
4760 (restore_inferior_status): Do not restore stop_registers.
4761 (discard_inferior_status): Do not discard stop_registers.
4762 (build_infrun): Remove.
4763 (_initialize_infrun): Do not swap stop_registers.
4765 2007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
4767 * remote.c (remote_address_masked): If remote_address_size is zero,
4768 default to target address size.
4769 (build_remote_gdbarch_data): Remove.
4770 (_initialize_remote): Do not swap remote_address_size.
4772 2007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
4774 * gdbtypes.h (builtin_type_true_char, builtin_type_void,
4775 builtin_type_char, builtin_type_short, builtin_type_int,
4776 builtin_type_long, builtin_type_signed_char,
4777 builtin_type_unsigned_char, builtin_type_unsigned_short,
4778 builtin_type_unsigned_int, builtin_type_unsigned_long,
4779 builtin_type_float, builtin_type_double, builtin_type_long_double,
4780 builtin_type_complex, builtin_type_double_complex, builtin_type_string,
4781 builtin_type_bool, builtin_type_long_long,
4782 builtin_type_unsigned_long_long, builtin_type_void_data_ptr,
4783 builtin_type_void_func_ptr, builtin_type_CORE_ADDR): Replace global
4784 variable declaration with compatibility macro.
4785 * gdbtypes.c (builtin_type_true_char, builtin_type_void,
4786 builtin_type_char, builtin_type_short, builtin_type_int,
4787 builtin_type_long, builtin_type_signed_char,
4788 builtin_type_unsigned_char, builtin_type_unsigned_short,
4789 builtin_type_unsigned_int, builtin_type_unsigned_long,
4790 builtin_type_float, builtin_type_double, builtin_type_long_double,
4791 builtin_type_complex, builtin_type_double_complex, builtin_type_string,
4792 builtin_type_bool, builtin_type_long_long,
4793 builtin_type_unsigned_long_long, builtin_type_void_data_ptr,
4794 builtin_type_void_func_ptr, builtin_type_CORE_ADDR): Remove.
4795 (build_gdbtypes): Remove.
4796 (_initialize_gdbtypes): Do not call build_gdbtypes, move installing
4797 opaque-type-resolution command here. Do not call
4798 deprecated_register_gdbarch_swap.
4800 2007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
4802 * gdbtypes.h (struct builtin_type): New members nodebug_text_symbol,
4803 nodebug_data_symbol, nodebug_unknown_symbol, and nodebug_tls_symbol.
4804 * gdbtypes.c (gdbtypes_post_init): Initialize nodebug_ default types.
4806 * parse.c (msym_text_symbol_type, msym_data_symbol_type): Remove.
4807 (msym_unknown_symbol_type, msym_tls_symbol_type): Remove.
4808 (write_exp_msymbol): Use builtin nodebug_ types instead of them.
4809 (build_parse): Remove.
4810 (_initialize_parse): Do not call build_parse. Do not register
4811 msym_ types for gdbarch-swapping.
4813 * dwarf2read.c (new_symbol): Use default nodebug_data_symbol type
4814 instead of creating private type.
4816 * xcoffread.c (func_symbol_type, var_symbol_type): Remove.
4817 (_initialize_xcoffread): Do not initialized them.
4818 (process_xcoff_symbol): Use builtin nodebug_ types instead of them.
4820 * mdebugread.c (nodebug_func_symbol_type): Remove.
4821 (nodebug_var_symbol_type): Remove.
4822 (_initialize_mdebugread): Do not initialize them.
4823 (parse_symbol): Use builtin nodebug_ type instead of them.
4824 (parse_procedure): Likewise.
4826 2007-06-21 Chris Dearman <chris@mips.com>
4828 * printcmd.c (do_one_display): If display/i, start with an initial
4829 line feed to avoid bad layout if there is a branch delay slot.
4831 2007-06-21 Nigel Stephens <nigel@mips.com>
4832 Maciej W. Rozycki <macro@mips.com>
4834 * disasm.c (gdb_print_insn): Return the number of branch delay
4835 slot instructions too.
4836 * disasm.h (gdb_print_insn): Update prototype.
4837 * printcmd.c (branch_delay_insns): New variable to record the
4838 number of delay slot instructions after disassembling a branch.
4839 (print_formatted): Record the number of branch delay slot
4841 (do_examine): When disassembling, if the last instruction
4842 disassembled has any branch delay slots, then bump the count so
4843 that they get disassembled too.
4844 * tui/tui-disasm.c (tui_disassemble): Update the call to
4846 * NEWS: Document the new behaviour.
4848 2007-06-21 Andreas Schwab <schwab@suse.de>
4850 * regcache.c (write_pc_pid): Restore missing else.
4852 2007-06-20 Ulrich Weigand <uweigand@de.ibm.com>
4854 * regcache.c (regcache_print): Use get_current_regcache ()
4855 instead of current_regcache.
4857 2007-06-20 H.J. Lu <hongjiu.lu@intel.com>
4860 * gcore.c (gcore_command): Use bfd_make_section_anyway_with_flags
4861 instead of bfd_make_section_anyway.
4862 (gcore_create_callback): Likewise. Also set SEC_NEVER_LOAD
4863 when clearing SEC_LOAD.
4865 2007-06-19 Joseph Myers <joseph@codesourcery.com>
4867 * arm-tdep.c (arm_push_dummy_call): Correct padding of partial
4868 registers for big-endian.
4870 2007-06-19 Markus Deuling <deuling@de.ibm.com>
4872 * gdbarch.sh (TARGET_PRINT_INSN): Replace by gdbarch_print_insn.
4873 * disasm.c (dump_insns, gdb_print_insn): Likewise.
4874 * gdbarch.c, gdbarch.h: Regenerate.
4876 2007-06-19 Markus Deuling <deuling@de.ibm.com>
4878 * gdbarch.sh (BELIEVE_PCC_PROMOTION): Replace by
4879 gdbarch_believe_pcc_promotion.
4880 * stabsread.c (define_symbol): Likewise.
4881 Remove unnecessary definition.
4882 * coffread.c (process_coff_symbol): Remove unnecessary code.
4883 * gdbarch.c, gdbarch.h: Regenerate.
4885 2007-06-19 Daniel Jacobowitz <dan@codesourcery.com>
4887 * configure.ac: Do not use ${objdir}.
4888 * configure: Regenerated.
4890 2007-06-18 Ulrich Weigand <uweigand@de.ibm.com>
4892 * gdbarch.sh (deprecated_register_size): Remove.
4893 * gdbarch.h, gdbarch.c: Regenerate.
4895 * arm-tdep.c (arm_push_dummy_call): Replace DEPRECATED_REGISTER_SIZE
4896 by INT_REGISTER_SIZE.
4897 (thumb_get_next_pc, arm_return_in_memory): Likewise.
4898 (arm_gdbarch_init): Do not call set_gdbarch_deprecated_register_size.
4899 * ia64-tdep.c (ia64_gdbarch_init): Do not call
4900 set_gdbarch_deprecated_register_size.
4902 2007-06-18 Markus Deuling <deuling@de.ibm.com>
4904 * gdbarch.sh (DEPRECATED_FP_REGNUM): Replace by
4905 gdbarch_deprecated_fp_regnum.
4906 * std-regs.c (value_of_builtin_frame_fp_reg): Likewise.
4907 * remote-mips.c (mips_wait, mips_fetch_registers): Likewise.
4908 * arch-utils.c (legacy_virtual_frame_pointer): Likewise.
4909 * arch-utils.h (gdbarch_virtual_frame_pointer_ftype): Likewise
4911 * gdbarch.c, gdbarch.h: Regenerate.
4913 2007-06-18 Markus Deuling <deuling@de.ibm.com>
4915 * gdbarch.sh (EXTRACT_RETURN_VALUE): Replace with
4916 gdbarch_extract_return_value.
4917 * value.c (generic_use_struct_convention): Likewise (comment).
4918 * ia64-tdep.c (ia64_use_struct_convention): Likewise (comment).
4919 * arch-utils.c (legacy_return_value): Likewise.
4920 * arch-utils.h (legacy_return_value): Likewise (comment).
4921 * gdbarch.sh (STORE_RETURN_VALUE): Replace by
4922 gdbarch_store_return_value.
4923 * stack.c (return_command): Likewise (comment).
4924 * arch-utils.h (legacy_return_value): Likewise (comment).
4925 * arch-utils.c (legacy_return_value): Likewise.
4926 * gdbarch.c, gdbarch.h: Regenerate.
4928 2007-06-18 Markus Deuling <deuling@de.ibm.com>
4930 * gdbarch.sh (DEPRECATED_USE_STRUCT_CONVENTION): Replace by
4931 gdbarch_deprecated_use_struct_convention.
4932 * arch-utils.c (legacy_return_value): Likewise.
4933 * gdbarch.c, gdbarch.h: Regenerate.
4935 2007-06-18 Markus Deuling <deuling@de.ibm.com>
4937 * gdbarch.sh (DEPRECATED_FUNCTION_START_OFFSET): Replace by
4938 gdbarch_deprecated_function_start_offset.
4939 * symtab.c (find_function_start_sal)skip_prologue_using_sal): Likewise.
4940 * linespec.c (minsym_found): Likewise.
4941 * infrun.c (handle_inferior_event): Likewise.
4942 * infcall.c (find_function_addr): Likewise.
4943 * cli/cli-cmds.c (disassemble_command): Likewise.
4944 * gdbarch.c, gdbarch.h: Regenerate.
4946 2007-06-18 Markus Deuling <deuling@de.ibm.com>
4948 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Replace by
4949 gdbarch_deprecated_reg_struct_has_addr.
4950 * infcall.c (call_function_by_hand): Likewise.
4951 (DEPRECATED_REG_STRUCT_HAS_ADDR_P): Replace by
4952 * gdbarch_deprecated_reg_struct_has_addr_p.
4953 * infcall.c (call_function_by_hand): Likewise.
4954 * gdbarch.c, gdbarch.h: Regenerate.
4956 2007-06-18 Markus Deuling <deuling@de.ibm.com>
4958 * gdbarch.sh (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
4959 * sh-tdep.c (sh_extract_struct_value_address): Remove.
4960 (sh_gdbarch_init): Remove
4961 set_gdbarch_deprecated_extract_struct_value_address.
4962 * sh64-tdep.c (sh64_extract_struct_value_address): Remove.
4963 (sh64_gdbarch_init): Remove
4964 set_gdbarch_deprecated_extract_struct_value_address.
4965 * ia64-tdep.c (ia64_extract_struct_value_address): Remove.
4966 (ia64_gdbarch_init): Remove
4967 set_gdbarch_deprecated_extract_struct_value_address.
4968 * frv-tdep.c (frv_extract_struct_value_address): Remove.
4969 (frv_gdbarch_init): Remove
4970 set_gdbarch_deprecated_extract_struct_value_address.
4971 * gdbarch.c, gdbarch.h: Regenerate.
4973 2007-06-18 Markus Deuling <deuling@de.ibm.com>
4975 * gdbarch.sh (SP_REGNUM): Replace by gdbarch_sp_regnum.
4976 * v850-tdep.c (v850_unwind_sp): Likewise.
4977 * std-regs.c (value_of_builtin_frame_sp_reg): Likewise.
4978 * stack.c (frame_info): Likewise.
4979 * stabsread.c (define_symbol): Likewise.
4980 * sh-tdep.c (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu)
4981 (sh_dwarf2_frame_init_reg, sh_frame_cache, sh_frame_prev_register)
4982 (sh_unwind_sp): Likewise.
4983 * sh64-tdep.c (sh64_push_dummy_call, sh64_frame_cache)
4984 (sh64_frame_prev_register, sh64_unwind_sp): Likewise.
4985 * rs6000-tdep.c (rs6000_push_dummy_call, rs6000_unwind_dummy_id)
4986 (rs6000_frame_cache): Likewise.
4987 * rs6000-nat.c (store_register): Likewise.
4988 * remote-mips.c (mips_wait): Likewise.
4989 * procfs.c (procfs_fetch_registers, procfs_store_registers): Likewise.
4990 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call)
4991 (ppc64_sysv_abi_push_dummy_call): Likewise.
4992 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_cache): Likewise.
4993 * ppcobsd-nat.c (ppcobsd_supply_pcb): Likewise.
4994 * ppcnbsd-tdep.c (ppcnbsd_sigtramp_cache_init): Likewise.
4995 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache): Likewise.
4996 * m32r-rom.c (m32r_supply_register): Likewise.
4997 * frame.c (frame_sp_unwind): Likewise.
4998 * mips-tdep.c (mips_insn16_frame_cache)
4999 (mips_insn32_frame_cache): Likewise (comment).
5000 * m68klinux-nat.c (supply_gregset): Likewise.
5001 * m68k-tdep.c (m68k_get_longjmp_target): Likewise.
5002 * ia64-tdep.c (ia64_frame_prev_register): Likewise.
5003 * i386-tdep.c (i386_get_longjmp_target): Likewise.
5004 * dwarf2-frame.c (dwarf2_frame_default_init_reg): Likewise.
5005 * cris-tdep.c (cris_regnums, cris_sigcontext_addr)
5006 (cris_sigtramp_frame_unwind_cache, cris_push_dummy_call)
5007 (cris_scan_prologue, crisv32_scan_prologue, cris_unwind_sp)
5008 (cris_register_type, crisv32_register_type)
5009 (cris_dwarf2_frame_init_reg): Likewise.
5010 * arch-utils.c (legacy_virtual_frame_pointer): Likewise.
5011 * amd64-tdep.c (amd64_frame_prev_register): Likewise.
5012 * amd64-linux-tdep.c (amd64_linux_sigcontext_addr): Likewise.
5013 * libunwind-frame.c (libunwind_frame_cache): Likewise.
5015 * gdbarch.sh (PC_REGNUM): Replace by gdbarch_pc_regnum.
5016 * regcache.c (read_pc_pid, generic_target_write_pc): Likewise.
5017 * xtensa-tdep.c (xtensa_register_type, xtensa_supply_gregset)
5018 (xtensa_unwind_pc, xtensa_frame_cache, xtensa_frame_prev_register)
5019 (xtensa_extract_return_value, xtensa_store_return_value): Likewise.
5020 * v850-tdep.c (v850_unwind_pc): Likewise.
5021 * stack.c (frame_info): Likewise.
5022 * sh-tdep.c (sh_generic_show_regs, sh3_show_regs, sh2e_show_regs)
5023 (sh2a_show_regs, sh2a_nofpu_show_regs, sh3e_show_regs)
5024 (sh3_dsp_show_regs, sh4_show_regs, sh4_nofpu_show_regs)
5025 (sh_dwarf2_frame_init_reg, sh_frame_prev_register, sh_unwind_pc)
5026 (sh_dsp_show_regs): Likewise.
5027 * shnbsd-tdep.c (shnbsd_supply_gregset)
5028 (shnbsd_collect_gregset): Likewise.
5029 * shnbsd-nat.c (GETREGS_SUPPLIES): Likewise.
5030 * sh64-tdep.c (sh64_compact_reg_base_num, sh64_show_media_regs)
5031 (sh64_frame_prev_register, sh64_unwind_pc): Likewise.
5032 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset)
5033 (6000_register_reggroup_p, rs6000_unwind_pc)
5034 (rs6000_frame_cache): Likewise.
5035 * rs6000-nat.c (regmap, rs6000_fetch_inferior_registers)
5036 (rs6000_store_inferior_registers): Likewise.
5037 * remote-mips.c (mips_wait, mips_load): Likewise.
5038 * procfs.c (procfs_fetch_registers, procfs_store_registers): Likewise.
5039 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_cache): Likewise.
5040 * ppcobsd-nat.c (ppcobsd_supply_pcb): Likewise.
5041 * ppcnbsd-tdep.c (ppcnbsd_sigtramp_cache_init): Likewise.
5042 * ppcnbsd-nat.c (getregs_supplies, ppcnbsd_supply_pcb): Likewise.
5043 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache): Likewise.
5044 * ppc-linux-nat.c (ppc_register_u_addr, fetch_ppc_registers)
5045 (store_ppc_registers, fill_gregset): Likewise.
5046 * mips-tdep.c (mips_stub_frame_cache, mips_gdbarch_init): Likewise.
5047 * mipsnbsd-tdep.c (mipsnbsd_supply_reg, mipsnbsd_fill_reg): Likewise.
5048 * mipsnbsd-nat.c (getregs_supplies): Likewise.
5049 * m68k-tdep.c (m68k_register_type, m68k_unwind_pc): Likewise.
5050 * m68klinux-nat.c (supply_gregset): Likewise.
5051 * irix5-nat.c (fill_gregset): Likewise.
5052 * i386-tdep.c (i386_unwind_pc): Likewise.
5053 * i386-linux-nat.c (i386_linux_resume): Likewise.
5054 * frame.c (get_prev_frame_1): Likewise.
5055 * dwarf2-frame.c (dwarf2_frame_default_init_reg): Likewise.
5056 * dbug-rom.c (dbug_supply_register): Likewise.
5057 * cris-tdep.c (cris_sigtramp_frame_unwind_cache, cris_scan_prologue)
5058 (crisv32_scan_prologue, cris_unwind_pc, cris_register_size)
5059 (cris_register_type, crisv32_register_type, crisv32_register_name)
5060 (cris_dwarf2_frame_init_reg, find_step_target)
5061 (cris_software_single_step, cris_supply_gregset)
5062 (cris_regnums): Likewise.
5063 * alpha-linux-nat.c (alpha_linux_register_u_offset): Likewise.
5064 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
5065 (fill_sprs64, fill_sprs32, store_regs_user_thread): Likewise.
5066 * std-regs.c (value_of_builtin_frame_pc_reg): Likewise.
5067 * mips-linux-tdep.c (mips_linux_write_pc): Likewise.
5069 * gdbarch.sh (PS_REGNUM): Replace by gdbarch_ps_regnum.
5070 * dbug-rom.c (dbug_supply_register): Likewise.
5071 * xtensa-tdep.c (xtensa_supply_gregset, xtensa_frame_cache)
5072 (xtensa_frame_prev_register, xtensa_push_dummy_call): Likewise.
5073 * win32-nat.c (win32_resume): Likewise.
5074 * std-regs.c (value_of_builtin_frame_ps_reg): Likewise.
5075 * m68k-tdep.c (m68k_register_type): Likewise.
5076 * m68klinux-nat.c (supply_gregset): Likewise.
5078 * gdbarch.sh (FP0_REGNUM): Replace by gdbarch_fp0_regnum.
5079 * sh-tdep.c (sh_extract_return_value_fpu, sh_store_return_value_fpu)
5080 (sh2e_show_regs, sh2a_show_regs, sh3e_show_regs, sh4_show_regs)
5081 (sh_sh2a_register_type, sh_sh3e_register_type, sh_sh4_register_type)
5082 (fv_reg_base_num, dr_reg_base_num): Likewise.
5083 * sh64-tdep.c (sh64_fv_reg_base_num, sh64_dr_reg_base_num)
5084 (sh64_fpp_reg_base_num, sh64_compact_reg_base_num, sh64_push_dummy_call)
5085 (sh64_extract_return_value, sh64_store_return_value)
5086 (sh64_show_media_regs, sh64_show_compact_regs, sh64_register_type)
5087 (sh64_do_fp_register, sh64_media_print_registers_info): Likewise.
5088 * procfs.c (procfs_fetch_registers, procfs_store_registers)
5089 (invalidate_cache): Likewise.
5090 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache): Likewise.
5091 * mipsnbsd-tdep.c (mipsnbsd_supply_fpreg)
5092 (mipsnbsd_fill_fpreg): Likewise.
5093 * mipsnbsd-nat.c (mipsnbsd_fetch_inferior_registers)
5094 (mipsnbsd_store_inferior_registers): Likewise.
5095 * mips-linux-tdep.c (mips_supply_fpregset, mips_fill_fpregset)
5096 (mips64_supply_fpregset, mips64_fill_fpregset): Likewise.
5097 * mips-linux-nat.c (mips64_linux_register_addr): Likewise.
5098 * m68k-tdep.c (m68k_register_type, m68k_convert_register_p): Likewise.
5099 * m68klinux-nat.c (getfpregs_supplies, supply_fpregset)
5100 (fill_fpregset): Likewise.
5101 * irix5-nat.c (supply_fpregset, fill_fpregset): Likewise.
5102 * i386-tdep.h (struct_return): Likewise (comment).
5103 * i386-nto-tdep.c (i386nto_register_area): Likewise.
5104 * go32-nat.c (fetch_register, go32_fetch_registers, store_register)
5105 (go32_store_registers): Likewise.
5106 * alpha-tdep.c (alpha_next_pc): Likewise.
5107 * alpha-linux-nat.c (alpha_linux_register_u_offset): Likewise.
5108 * alphabsd-nat.c (alphabsd_fetch_inferior_registers)
5109 (alphabsd_store_inferior_registers): Likewise.
5110 * core-regset.c (fetch_core_registers): Likewise.
5111 * i386v4-nat.c (supply_fpregset, fill_fpregset): Likewise.
5113 * gdbarch.c, gdbarch.h: Regenerate.
5115 2007-06-18 Daniel Jacobowitz <dan@codesourcery.com>
5117 * coffread.c (coff_sym_fns): Add default_symfile_segments.
5118 * dbxread.c (start_psymtab): Check HAVE_ELF.
5119 (aout_sym_fns): Likewise.
5120 * elfread.c (elf_symfile_segments): New.
5121 (elf_sym_fns): Add elf_symfile_segments.
5122 * mipsread.c (ecoff_sym_fns): Add default_symfile_segments.
5123 * remote.c (get_offsets): Use symfile_map_offsets_to_segments.
5124 Skip if there is no symfile_objfile. Handle TextSeg and DataSeg.
5125 * somread.c (som_sym_fns): Use default_symfile_segments.
5126 * symfile.c (find_sym_fns): Take a BFD and return the sym_fns.
5127 (init_objfile_sect_indices): Call symfile_find_segment_sections.
5128 (default_symfile_segments): New function.
5129 (syms_from_objfile): Update call to find_sym_fns.
5130 (symfile_get_segment_data, free_symfile_segment_data): New.
5131 (symfile_map_offsets_to_segments): New.
5132 (symfile_find_segment_sections): New.
5133 * symfile.h (struct symfile_segment_data): New.
5134 (struct sym_fns): Add sym_segments.
5135 (default_symfile_segments, symfile_get_segment_data)
5136 (free_symfile_segment_data): New prototypes.
5137 (symfile_map_offsets_to_segments): Likewise.
5138 * xcoffread.c (xcoff_sym_fns): Add default_symfile_segments.
5139 * Makefile.in (COMMON_OBS): Remove elfread.o.
5140 (elf_internal_h): New.
5141 (elfread.o): Update.
5142 * configure.ac: Add elfread.o to COMMON_OBS if bfd/elf.o was
5144 * config.in, configure: Regenerated.
5145 * NEWS: Mention qOffsets changes.
5147 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
5149 * gdbtypes.h (builtin_type_m2_char, builtin_type_m2_int,
5150 builtin_type_m2_card, builtin_type_m2_real, builtin_type_m2_bool):
5151 Replace global variable declaration with compatibility macro.
5152 (struct builtin_m2_type): New data type.
5153 (builtin_m2_type): Add prototype.
5154 * m2-lang.c (builtin_type_m2_char, builtin_type_m2_int,
5155 builtin_type_m2_card, builtin_type_m2_real, builtin_type_m2_bool):
5156 Remove global variables.
5157 (m2_language_arch_info): Use builtin_m2_type instead of variables.
5158 (build_m2_types): New function.
5159 (m2_type_data): New variable.
5160 (builtin_m2_type): New function.
5161 (_initialize_m2_language): Do not build data types. Register
5162 m2_type_data per-gdbarch data.
5164 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
5166 * gdbtypes.h (builtin_type_f_character, builtin_type_f_logical,
5167 builtin_type_f_logical_s1, builtin_type_f_logical_s2,
5168 builtin_type_f_integer, builtin_type_f_integer_s2, builtin_type_f_real,
5169 builtin_type_f_real_s8, builtin_type_f_real_s16,
5170 builtin_type_f_complex_s8, builtin_type_f_complex_s16,
5171 builtin_type_f_complex_s32, builtin_type_f_void): Replace global
5172 variable declaration with compatibility macro.
5173 (struct builtin_f_type): New data type.
5174 (builtin_f_type): Add prototype.
5175 * f-lang.c (builtin_type_f_character, builtin_type_f_logical,
5176 builtin_type_f_logical_s1, builtin_type_f_logical_s2,
5177 builtin_type_f_integer, builtin_type_f_integer_s2, builtin_type_f_real,
5178 builtin_type_f_real_s8, builtin_type_f_real_s16,
5179 builtin_type_f_complex_s8, builtin_type_f_complex_s16,
5180 builtin_type_f_complex_s32, builtin_type_f_void): Remove variables.
5181 (f_language_arch_info): Use builtin_f_type instead of variables.
5182 (build_fortran_types): Build builtin_f_type structure instead of
5183 setting global type variables.
5184 (f_type_data): New variable.
5185 (builtin_f_type): New function.
5186 (_initialize_f_language): Do not call build_fortran_types. Do not
5187 swap global type variables. Register f_type_data per-gdbarch data.
5189 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
5191 * f-lang.c (_initialize_f_language): Do not initialize or
5192 swap builtin_type_string.
5194 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
5196 * std-regs.c (builtin_type_frame_reg, build_builtin_type_frame_reg,
5197 value_of_builtin_frame_reg): Remove.
5198 (_initialize_frame_reg): Do not swap builtin_type_frame_reg. Remove
5199 inactive call to value_of_builtin_frame_reg.
5201 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
5203 * gdbarch.sh (bfd_vma_bit): Remove.
5204 * gdbarch.c, gdbarch.h: Regenerate.
5206 * gdbtypes.h (builtin_bfd_vma_type): Remove.
5207 * gdbtypes.h (builtin_bfd_vma_type): Remove.
5208 (build_gdbtypes): Do not initialize it.
5209 (_initialize_gdbtypes): Do not swap it.
5211 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
5213 * gdbtypes.c (builtin_type_v2_double, builtin_type_v4_float,
5214 builtin_type_v2_int64, builtin_type_v4_int32, builtin_type_v8_int16,
5215 builtin_type_v16_int8, builtin_type_v2_float, builtin_type_v2_int32,
5216 builtin_type_v4_int16, builtin_type_v8_int8, builtin_type_v4sf,
5217 builtin_type_v4si, builtin_type_v16qi, builtin_type_v8qi,
5218 builtin_type_v8hi, builtin_type_v4hi, builtin_type_v2si,
5219 builtin_type_vec64, builtin_type_vec128): Remove.
5220 (init_simd_type): Remove.
5221 (init_vector_type): Make global.
5222 (build_builtin_type_vec64, build_builtin_type_vec128): Remove.
5223 (build_gdbtypes): Do not build vector types.
5224 (_initialize_gdbtypes): Do not swap vector types.
5225 * gdbtypes.h (builtin_type_v2_double, builtin_type_v4_float,
5226 builtin_type_v2_int64, builtin_type_v4_int32, builtin_type_v8_int16,
5227 builtin_type_v16_int8, builtin_type_v2_float, builtin_type_v2_int32,
5228 builtin_type_v4_int16, builtin_type_v8_int8, builtin_type_v4sf,
5229 builtin_type_v4si, builtin_type_v16qi, builtin_type_v8qi,
5230 builtin_type_v8hi, builtin_type_v4hi, builtin_type_v2si,
5231 builtin_type_vec64, builtin_type_vec128): Remove declarations.
5232 (init_vector_type): Add prototype.
5234 * i386-tdep.h (struct gdbarch_tdep): Add i386_mmx_type and
5235 i386_sse_type members.
5236 (i386_mmx_type, i386_sse_type): Change from variables to functions.
5237 * i386-tdep.c (i386_mmx_type, i386_sse_type): Remove variables.
5238 (i386_init_types): Do not build vector types.
5239 (i386_mmx_type, i386_sse_type): New functions.
5240 (i386_register_type): Call them instead of using global variables.
5241 (i386_gdbarch_init): Use XCALLOC to allocate tdep structure.
5242 * amd64-tdep.c (amd64_register_type): Call i386_sse_type instead
5243 of using global variable.
5245 * rs6000-tdep.h (struct gdbarch_tdep): Add ppc_builtin_type_vec64
5246 and ppc_builtin_type_vec128 members.
5247 * rs6000-tdep.c (rs6000_builtin_type_vec64): New function.
5248 (rs6000_builtin_type_vec128): Likewise.
5249 (rs6000_register_type): Call them instead of using builtin_type_vec64
5250 and builtin_type_vec128.
5251 (rs6000_gdbarch_init): Use XCALLOC to allocate tdep structure.
5253 * spu-tdep.c (struct gdbarch_tdep): New data type.
5254 (spu_builtin_type_vec128): Remove variable.
5255 (spu_builtin_type_vec128): New function.
5256 (spu_register_type): Call it instead of using global variable.
5257 (spu_gdbarch_init): Allocate tdep structure.
5258 (spu_init_vector_type): Remove function.
5259 (_initialize_spu_tdep): Do not call it.
5261 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
5263 * amd64-tdep.c (struct amd64_register_info): Remove.
5264 (amd64_register_info): Remove.
5265 (amd64_register_names): New static variable.
5266 (AMD64_NUM_REGS): Use amd64_register_names instead of
5267 amd64_register_info.
5268 (amd64_register_name): Likewise.
5269 (amd64_register_type): Do not refer to amd64_register_info.
5271 * s390-tdep.c (struct s390_register_info): Remove.
5272 (s390_register_info): Remove.
5273 (s390_register_name): Do not refer to s390_register_info.
5274 (s390_register_type): Likewise.
5276 * sparc64-tdep.c (struct sparc64_register_info): Remove.
5277 (sparc64_register_info, sparc64_pseudo_register_info): Remove.
5278 (sparc64_register_names, sparc64_pseudo_register_names): New.
5279 (SPARC64_NUM_REGS, SPARC64_NUM_PSEUDO_REGS): Use
5280 sparc64_register_names and sparc64_pseudo_register_names instead of
5281 sparc64_register_info and sparc64_pseudo_register_info.
5282 (sparc64_register_name): Likewise.
5283 (sparc64_register_type): Do not refer to sparc64_register_info
5284 and sparc64_pseudo_register_info.
5286 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
5288 * c-lang.c (cplus_builtin_types): Remove.
5289 (enum cplus_primitive_types): New data type.
5290 (cplus_language_arch_info): New function.
5291 (cplus_language_defn): Set la_language_arch_info member. Do not set
5292 la_builtin_type_vector and string_char_type members.
5294 * f-lang.c (f_builtin_types): Remove.
5295 (enum f_primitive_types): New data type.
5296 (f_language_arch_info): New function.
5297 (f_language_de): Set la_language_arch_info member. Do not set
5298 la_builtin_type_vector and string_char_type members.
5300 * m2-lang.c (m2_builtin_types): Remove.
5301 (enum m2_primitive_types): New data type.
5302 (m2_language_arch_info): New function.
5303 (m2_language_defn): Set la_language_arch_info member. Do not set
5304 la_builtin_type_vector and string_char_type members.
5306 * objc-lang.c (objc_builtin_types): Remove.
5307 (objc_language): Set la_language_arch_info member. Do not set
5308 la_builtin_type_vector and string_char_type members.
5310 * p-lang.c (pascal_builtin_types): Remove.
5311 (enum pascal_primitive_types): New data type.
5312 (pascal_language_arch_info): New function.
5313 (pascal_language_defn): Set la_language_arch_info member. Do not set
5314 la_builtin_type_vector and string_char_type members.
5316 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
5318 * regcache.c (struct regcache): Add ptid_t member.
5319 (regcache_xmalloc): Initialize it.
5320 (regcache_cpy_no_passthrough): Do not refer to current_regcache.
5321 (regcache_dup): Likewise.
5322 (regcache_dup_no_passthrough): Likewise.
5323 (current_regcache): Make static.
5324 (registers_ptid): Remove variable.
5325 (get_thread_regcache): New function.
5326 (get_current_regcache): New function.
5327 (registers_changed): Implement by freeing current regcache.
5328 (regcache_raw_read): Do not refer to current_regcache. Set
5329 inferior_ptid to regcache->ptid while calling target routines.
5330 (regcache_raw_write): Likewise.
5331 (regcache_raw_supply): Do not refer to current_regcache.
5332 (read_pc_pid): Use thread regcache. Do not modify inferior_ptid.
5333 (write_pc_pid): Likewise.
5334 (build_regcache): Remove.
5335 (_initialize_regcache): Do not call DEPRECATED_REGISTER_GDBARCH_SWAP
5336 or deprecated_register_gdbarch_swap. Do not initialize
5338 * regcache.h (get_current_regcache): Add prototype.
5339 (get_thread_regcache): Likewise.
5340 (current_regcache): Remove declaration.
5342 * corelow.c (core_open): Replace current_regcache by
5343 get_current_regcache ().
5344 * frame.c (frame_pop): Likewise.
5345 (put_frame_register): Likewise.
5346 (get_current_frame, create_new_frame): Likewise.
5347 * mi/mi-main.c (mi_cmd_data_write_register_values): Likewise.
5348 * stack.c (return_command): Likewise.
5349 * infcall.c (call_function_by_hand): Likewise.
5350 * infrun.c (resume): Likewise.
5351 (save_inferior_status, restore_inferior_status): Likewise.
5352 * linux-fork.c (fork_load_infrun_state): Likewise.
5353 (fork_save_infrun_state): Likewise.
5354 * win32-nat.c (win32_resume): Likewise.
5355 * i386fbsd-nat.c (i386fbsd_resume): Likewise.
5356 * monitor.c (monitor_wait): Likewise.
5357 * remote.c (remote_wait): Likewise.
5358 * remote-mips.c (mips_wait): Likewise.
5360 * bsd-kvm.c (bsd_kvm_open): Likewise
5361 (bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd): Likewise.
5362 * fbsd-nat.c (fbsd_make_corefile_notes): Likewise.
5363 * i386-linux-nat.c (i386_linux_resume): Likewise.
5364 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Likewise.
5365 (ia64_linux_stopped_data_address): Likewise.
5367 * frv-tdep.c (frv_fdpic_loadmap_addresses): Likewise.
5368 * m32c-tdep.c (m32c_virtual_frame_pointer): Likewise.
5369 * mep-tdep.c (current_me_module, current_options): Likewise.
5370 * mips-tdep.c (deprecated_mips_set_processor_regs_hack): Likewise.
5372 * linux-nat.c (linux_nat_do_thread_registers): Use thread
5373 regcache instead of current_regcache. Call target_fetch_registers.
5374 (linux_nat_corefile_thread_callback): Update call site.
5375 (linux_nat_do_registers): Likewise.
5376 * procfs.c (procfs_do_thread_registers): Use thread regcache instead
5377 of current_regcache.
5378 (procfs_make_note_section): Likewise.
5379 * proc-service.c (ps_lgetregs, ps_lsetregs): Likewise.
5380 (ps_lgetfpregs, ps_lsetfpregs): Likewise.
5381 * sol-thread.c (ps_lgetregs, ps_lsetregs): Likewise.
5382 (ps_lgetfpregs, ps_lsetfpregs): Likewise.
5384 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
5386 * regcache.c (read_register, read_register_pid): Remove.
5387 (write_register, write_register_pid): Likewise.
5388 * regcache.h (read_register, read_register_pid): Remove prototype.
5389 (write_register, write_register_pid): Likewise.
5391 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
5393 * gdbarch.sh (read_pc): Add REGCACHE argument. Remove PTID argument.
5394 (write_pc): Likewise. Remove default implementation, add predicate.
5395 * gdbarch.c, gdbarch.h: Regenerate.
5396 * regcache.c (read_pc_pid): Use current regcache instead of calling
5398 (write_pc_pid): Check gdbarch_write_pc predicate, implement default
5400 (generic_target_write_pc): Remove.
5401 * inferior.h (generic_target_write_pc): Remove.
5402 * frv-tdep.c (frv_gdbarch_init): Do not install it.
5403 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
5404 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
5405 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
5406 * sh-tdep.c (sh_gdbarch_init): Likewise.
5407 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
5409 * avr-tdep.c (avr_read_pc): Add REGCACHE argument. Remove PTID
5410 argument. Use REGCACHE instead of calling read_register_pid.
5411 * hppa-hpux-tdep.c (hppa_hpux_read_pc): Likewise.
5412 * hppa-tdep.c (hppa_read_pc): Likewise.
5413 * hppa-tdep.h (hppa_read_pc): Likewise.
5414 * ia64-tdep.c (ia64_read_pc): Likewise.
5415 * m32r-tdep.c (m32r_read_pc): Likewise.
5416 * mep-tdep.c (mep_read_pc): Likewise.
5417 * mn10300-tdep.c (mn10300_read_pc): Likewise.
5418 * spu-tdep.c (spu_read_pc): Likewise.
5420 * arm-tdep.c (arm_write_pc): Add REGCACHE argument. Remove PTID
5421 argument. Use REGCACHE instead of calling write_register_pid.
5422 * avr-tdep.c (avr_write_pc): Likewise.
5423 * hppa-hpux-tdep.c (hppa_hpux_write_pc): Likewise.
5424 * hppa-tdep.c (hppa_write_pc): Likewise.
5425 * hppa-tdep.h (hppa_write_pc): Likewise.
5426 * i386-linux-tdep.c (i386_linux_write_pc): Likewise.
5427 * amd64-linux-tdep.c (amd64_linux_write_pc): Likewise.
5428 * ia64-linux-tdep.c (ia64_linux_write_pc): Likewise.
5429 * ia64-tdep.c (ia64_write_pc): Likewise.
5430 * ia64-tdep.h (ia64_write_pc): Likewise.
5431 * m32r-tdep.c (m32r_write_pc): Likewise.
5432 * m88k-tdep.c (m88k_write_pc): Likewise.
5433 * mep-tdep.c (mep_write_pc): Likewise.
5434 * mips-tdep.c (mips_write_pc): Likewise.
5435 * mips-linux-tdep.c (mips_linux_write_pc): Likewise.
5436 * mn10300-tdep.c (mn10300_write_pc): Likewise.
5437 * sparc-tdep.c (sparc_write_pc): Likewise.
5438 * spu-tdep.c (spu_write_pc): Likewise.
5440 * mips-tdep.c (read_signed_register): Remove.
5441 (read_signed_register_pid): Likewise.
5442 (mips_read_pc): Add REGCACHE argument. Remove PTID argument.
5443 Use REGCACHE instead of calling read_signed_register_pid.
5445 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
5447 * gdbarch.sh (push_dummy_code): Add REGCACHE argument.
5448 * gdbarch.c, gdbarch.h: Regenerate.
5449 * infcall.c (generic_push_dummy_code): Add REGCACHE argument.
5450 (push_dummy_code): Likewise. Pass it to callee.
5451 (call_function_by_hand): Pass current regcache to push_dummy_code.
5453 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Add REGCACHE
5454 argument. Use it instead of current_regcache.
5456 * cris-tdep.c (cris_push_dummy_code): Add REGCACHE argument.
5457 * sparc-tdep.c (sparc32_push_dummy_code): Likewise.
5459 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
5461 * gdbarch.sh (get_longjmp_target): Add FRAME argument.
5462 * gdbarch.c, gdbarch.h: Regenerate.
5463 * infrun.c (handle_inferior_event): Pass current frame to
5464 gdbarch_get_longjmp_target.
5466 * alpha-tdep.c (alpha_get_longjmp_target): Add FRAME argument.
5467 Read registers from FRAME instead of using read_register.
5468 Use get_frame_arch instead of current_gdbarch.
5469 * arm-tdep.c (arm_get_longjmp_target): Likewise.
5470 * i386-tdep.c (i386_get_longjmp_target): Likewise.
5471 * m68k-tdep.c (m68k_get_longjmp_target): Likewise.
5472 * mips-linux-tdep.c (mips_linux_get_longjmp_target): Likewise.
5473 (mips64_linux_get_longjmp_target): Likewise.
5474 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Likewise.
5476 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
5478 * gdbarch.sh (skip_trampoline_code): Add FRAME argument.
5479 * gdbarch.c, gdbarch.h: Regenerate.
5480 * arch-utils.c (generic_skip_trampoline_code): Add FRAME argument.
5481 * arch-utils.h (generic_skip_trampoline_code): Likewise.
5482 * infrun.c (handle_inferior_event): Pass current frame to
5483 gdbarch_skip_trampoline_code and skip_language_trampoline.
5485 * language.c (unk_lang_trampoline): Add FRAME argument.
5486 (skip_language_trampoline): Add FRAME argument. Pass it to
5487 skip_trampoline callback.
5488 * language.h: Add forward declaration of struct frame_info.
5489 (struct language_defn): Add FRAME argument to skip_trampoline.
5490 (skip_language_trampoline): Add FRAME argument.
5491 * cp-abi.c (cplus_skip_trampoline): Add FRAME argument. Pass it
5492 to skip_trampoline callback.
5493 * cp-abi.h: Add forward declaration of struct frame_info.
5494 (cplus_skip_trampoline): Add FRAME argument.
5495 (struct cp_abi_ops): Add FRAME argument to skip_trampoline callback.
5496 * gnu-v3-abi.c (gnuv3_skip_trampoline): Add FRAME argument. Pass it
5497 to gdbarch_skip_trampoline_code.
5498 * objc-lang.c (objc_skip_trampoline): Add FRAME argument. Pass it
5499 to gdbarch_skip_trampoline_code.
5501 * minsyms.c (find_solib_trampoline_target): Add FRAME argument.
5502 * symtab.h (find_solib_trampoline_target): Likewise.
5503 * obsd-tdep.c (obsd_skip_solib_resolver): Pass current frame to
5504 find_solib_trampoline_target.
5506 * arm-tdep.c (arm_skip_stub): Add FRAME argument. Read registers
5507 from FRAME instead of calling read_register.
5509 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code): Add FRAME
5510 argument. Read registers from FRAME instead of using read_register.
5511 * hppa-tdep.c (hppa_skip_trampoline_code): Likewise.
5512 * hppa-tdep.h (hppa_skip_trampoline_code): Add FRAME argument.
5514 * i386-cygwin-tdep.c (i386_cygwin_skip_trampoline_code): Add FRAME
5517 * m32c-tdep.c (m32c_skip_trampoline_code): Add FRAME argument.
5519 * mips-tdep.c (mips_skip_trampoline_code): Add FRAME argument. Read
5520 registers from FRAME instead of using read_signed_register.
5522 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Add FRAME
5524 (ppc64_standard_linkage_target): Likewise. Read registers from FRAME
5525 instead of using read_register.
5526 (ppc64_skip_trampoline_code): Add FRAME argument. Pass it to
5527 ppc64_standard_linkage_target.
5528 * rs6000-tdep.c (rs6000_skip_trampoline_code): Add FRAME argument.
5529 Pass it to find_solib_trampoline_target. Read registers from FRAME
5530 instead of using read_register.
5532 * xstormy16-tdep.c (xstormy16_skip_trampoline_code): Add FRAME
5535 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
5537 * gdbarch.sh (software_single_step): Replace REGCACHE argument by
5539 * gdbarch.c, gdbarch.h: Regenerate.
5540 * infrun.c (resume): Pass current frame to SOFTWARE_SINGLE_STEP.
5542 * alpha-tdep.c (alpha_next_pc): Add FRAME argument. Retrieve
5543 registers from FRAME instead of using read_register.
5544 (alpha_software_single_step): Replace REGCACHE by FRAME. Pass FRAME
5545 to alpha_next_pc. Use get_frame_pc instead of read_pc.
5546 * alpha-tdep.h (alpha_software_single_step): Replace REGCACHE
5549 * arm-tdep.c (shifted_reg_val): Add FRAME argument. Read registers
5550 from FRAME instead of using read_register.
5551 (thumb_get_next_pc): Likewise.
5552 (arm_get_next_pc): Likewise.
5553 (arm_software_single_step): Replace REGCACHE by FRAME. Pass FRAME
5554 to arm_get_next_pc. Use get_frame_pc instead of read_register.
5555 * arm-tdep.h (arm_software_single_step): Replace REGCACHE
5558 * cris-tdep.c (find_step_target): Add FRAME argument. Read registers
5559 from FRAME instead of using read_register.
5560 (cris_software_single_step): Replace REGCACHE by FRAME. Pass FRAME
5561 to find_step_target.
5563 * mips-tdep.c (mips32_next_pc): Add FRAME argument. Read registers
5564 from FRAME instead of using read_register / read_signed_register.
5565 (extended_mips16_next_pc): Likewise.
5566 (mips16_next_pc): Likewise.
5567 (mips_next_pc): Likewise.
5568 (mips_software_single_step): Replace REGCACHE by FRAME. Pass FRAME
5569 to mips_next_pc. Use get_frame_pc instead of read_pc.
5570 * mips-tdep.h (mips_software_single_step): Replace REGCACHE
5573 * rs6000-tdep.c (branch_dest): Add FRAME argument. Use it instead
5574 of current frame. Read registers from FRAME.
5575 (deal_with_atomic_sequence): Add FRAME argument. Pass it to
5576 branch_dest. Use get_frame_pc instead of read_pc.
5577 (rs6000_software_single_step): Likewise.
5578 (bl_to_blrl_insn_p): Do not call branch_dest.
5579 * rs6000-tdep.h (rs6000_software_single_step): Replace REGCACHE
5582 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Add FRAME argument.
5583 Read registers from FRAME instead of current regcache.
5584 * sparc-linux-tdep.c (sparc32_linux_step_trap): Likewise.
5585 * sparcnbsd-tdep.c (sparcnbsd_step_trap): Likewise.
5586 * sparc-tdep.c (sparc_address_from_register): Remove.
5587 (sparc_analyze_control_transfer): Pass FRAME argument instead of
5588 GDBARCH. Pass FRAME to step_trap callback.
5589 (sparc_step_trap): Add FRAME argument.
5590 (space_software_single_step): Replace REGCACHE by FRAME. Pass FRAME
5591 to sparc_analyze_control_transfer. Read registers from FRAME instead
5592 of calling sparc_address_from_register.
5593 * sparc-tdep.h (struct gdbarch_tdep): Add FRAME argument to
5595 (sparc_address_from_register): Remove prototype.
5596 (sparc_software_single_step): Replace REGCACHE argument by FRAME.
5597 (sparcnbsd_step_trap): Add FRAME argument.
5599 * spu-tdep.c (spu_software_single_step): Replace REGCACHE argument
5600 by FRAME. Read registers from FRAME instead of REGCACHE.
5602 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
5604 * arm-tdep.c (arm_print_float_info): Use register value from FRAME
5605 instead of calling read_register.
5607 * avr-tdep.c (avr_push_dummy_call): Write to REGCACHE instead of
5608 calling write_register.
5610 * hppa-tdep.c (hppa32_push_dummy_call): Write to REGCACHE instead of
5611 calling write_register.
5613 * ia64-tdep.c (find_func_descr): Add REGCACHE parameter. Use it
5614 instead of calling read_register.
5615 (ia64_push_dummy_call): Update call to find_func_descr. Use REGCACHE
5616 instead of calling read_register and write_register.
5618 * m32r-tdep.c (m32r_linux_supply_gregset): Use REGCACHE parameter
5619 instead of current_regcache.
5621 * mn10300-tdep.c (mn10300_push_dummy_call): Write to REGCACHE instead
5622 of calling write_register.
5623 * mn10300-linux-tdep.c (am33_supply_fpregset_method): Use REGCACHE
5624 parameter instead of current_regcache.
5626 * mips-tdep.c (mips2_fp_compat): Add FRAME parameter. Use it
5627 instead of calling read_register.
5628 (mips_read_fp_register_double, mips_print_fp_register): Update calls.
5629 (mips_eabi_push_dummy_call): Use REGCACHE instead of write_register.
5630 (mips_n32n64_push_dummy_call): Likewise.
5631 (mips_o32_push_dummy_call): Likewise.
5632 (mips_o64_push_dummy_call): Likewise.
5634 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Use REGCACHE
5635 parameter instead of current_regcache.
5637 * xtensa-tdep.c (xtensa_register_write_masked): Add REGCACHE parameter.
5638 Use it instead of read_register and write_register.
5639 (xtensa_register_read_masked): Likewise.
5640 (xtensa_pseudo_register_read): Update call.
5641 (xtensa_pseudo_register_write): Likewise.
5642 (xtensa_frame_cache): Use register values unwound from NEXT_FRAME
5643 instead of calling read_register.
5644 (xtensa_push_dummy_call): Update comment.
5646 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
5648 * mips-tdep.c (mips16_scan_prologue): Replace read_next_frame_reg
5649 by frame_unwind_register_signed calls.
5650 (mips32_scan_prologue): Likewise. Skip analysis of alloca stack
5651 frame allocations when called with NULL NEXT_FRAME parameter.
5652 (read_next_frame_reg): Remove.
5654 * sh-tdep.c (sh_analyze_prologue): Add FPSCR parameter. Use it
5655 instead of reading the FPSCR register.
5656 (sh_frame_cache): Pass unwound FPSCR register value to
5657 sh_analyze_prologue.
5658 (sh_skip_prologue): Pass dummy FPSCR value to sh_analyze_prologue.
5660 * v850-tdep.c (v850_analyze_prologue): Add CTBP parameter. Use it
5661 instead of reading the CTBP register.
5662 (v850_frame_cache): Pass unwound CTBP register value to
5663 v850_analyze_prologue.
5665 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
5667 * sh-tdep.h (sh_show_regs): Add FRAME parameter.
5668 * sh-tdep.c (sh_show_regs): Likewise.
5669 (sh_show_regs_command): Pass current frame to sh_show_regs routine.
5670 (sh_generic_show_regs): Add FRAME parameter. Use register
5671 values from that frame instead of calling read_register.
5672 (sh3_show_regs, sh2e_show_regs, sh2a_show_regs, sh2a_nofpu_show_regs,
5673 sh3e_show_regs, sh3_dsp_show_regs, sh4_show_regs, sh4_nofpu_show_regs,
5674 sh_dsp_show_regs): Likewise.
5675 * sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs,
5676 sh64_show_regs): Likewise.
5678 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
5680 * mips-tdep.c (deprecated_mips_set_processor_regs_hack): Read from
5681 current regcache instead of calling read_register.
5683 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
5685 * mep-tdep.c (current_me_module): Read from current regcache
5686 instead of calling read_register.
5687 (current_options): Likewise.
5689 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
5691 * cris-tdep.c (cris_stopped_data_address): Read register values
5692 from current frame instead of calling read_register.
5693 * frv-tdep.c (frv_stopped_data_address): Likewise.
5695 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
5697 * solib-sunos.c (sunos_solib_create_inferior_hook): Use write_pc
5698 instead of write_register (PC_REGNUM, ...).
5700 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
5702 * solib-sunos.c (sunos_solib_create_inferior_hook): Add comment
5703 explaining why the PC adjustment code is necessary.
5705 2007-06-15 Vladimir Prus <vladimir@codesourcery.com>
5707 * m68k-tdep.h (enum m68k_flavour): New.
5708 (struct gdbarch_tdep): New fields
5709 float_return, flavour and fpregs_present.
5710 * m68k-tdep.c (m68k_register_type): Use
5711 fpregs_present and conditionalize floating
5712 registers type on flavour.
5713 (m68k_register_names): New.
5714 (m68k_register_name): Use the above.
5715 (m68k_convert_register_p): Consult fpregs_present.
5716 (m68k_register_to_value, m68k_value_to_register):
5717 Use register_type to obtain the type of floating
5719 (m68k_svr4_extract_return_value): Check tdep->float_return.
5720 Use register_type to get the type of floating
5722 (m68k_svr4_store_return_value): Likewise.
5723 (m68k_dwarf_reg_to_regnum): Check tdep->fpregs_present.
5724 (m68k_analyze_register_saves): Likewise.
5725 (m68k_gdbarch_init): Extract infromation
5726 from XML description, if present. Guess coldfire by
5727 looking at the file, if present. Conditionalize
5728 setting of long double format. Set decr_pc_after_break
5729 to 2 on coldfire and fido. Enable XML-driven
5730 register description.
5731 * m68kbsd-tdep.c (m68kbsd_fpreg_offset): Use
5732 size of tdep->fpreg_type, as opposed to hardcoded value.
5733 * Makefile.in (m68k-tdep.o): Update dependencies.
5735 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
5737 * NEWS: Mention "info spu" commands and qXfer:spu:read and
5738 qXfer:spu:write remote packet types.
5740 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
5742 * xml-tdesc.c (tdesc_start_target): New.
5743 (target_attributes): New.
5744 (tdesc_elements): Use it.
5745 * features/gdb-target.dtd: Add #FIXED version attribute for
5748 2007-06-13 Arthur Huillet <arthur.huillet@free.fr>
5750 * mi/mi-cmd-var.c (mi_cmd_var_assign): Fix typo.
5752 2007-06-13 Claudio Fontana <claudio.fontana@gmail.com>
5754 * fork-child.c (fork_inferior): Update comment.
5756 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
5758 * features/Makefile: Generate regformats for mips-linux and
5760 * features/sort-regs.xsl: Correct typo.
5761 * regformats/reg-mips.dat, regformats/reg-mips64.dat: Delete.
5762 * regformats/mips-linux.dat, regformats/mips64-linux.dat: New generated
5765 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
5767 * config/mips/linux.mh (TDEP_XML): New.
5768 * features/mips-linux.xml, features/mips64-linux.xml: New files.
5769 * mips-linux-nat.c (mips_linux_register_addr): Handle
5770 MIPS_RESTART_REGNUM.
5771 (mips64_linux_register_addr): Likewise.
5772 (super_xfer_partial, mips_linux_xfer_partial): New.
5773 (_initialize_mips_linux_nat): Add them to the target_ops.
5774 * mips-linux-tdep.c (mips_supply_gregset): Handle MIPS_RESTART_REGNUM.
5775 (mips_fill_gregset, mips64_supply_gregset, mips64_fill_gregset)
5776 (mips_linux_o32_sigframe_init)
5777 (mips_linux_n32n64_sigframe_init): Likewise.
5778 (mips_linux_write_pc, mips_linux_restart_reg_p): New.
5779 (mips_linux_init_abi): Use mips_linux_write_pc. Check for the
5780 "org.gnu.gdb.mips.linux" feature.
5781 * mips-linux-tdep.h (MIPS_RESTART_REGNUM): New constant.
5782 (mips_linux_restart_reg_p): New prototype.
5783 * mips-tdep.c (mips_gdbarch_init): Pass tdesc_data to the OS/ABI
5784 initialization routine.
5785 * Makefile.in (mips-linux-tdep.o, mips-linux-nat.o): Update.
5787 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
5789 * Makefile.in (mips-tdep.o): Update.
5790 * mips-tdep.c (struct register_alias, mips_o32_aliases)
5791 (mips_n32_n64_aliases, mips_register_aliases): New.
5792 (mips_register_name): Call tdesc_register_name.
5793 (mips_tdesc_register_reggroup_p): New.
5794 (mips_pseudo_register_type, value_of_mips_user_reg): New.
5795 (mips_gdbarch_init): Add target-described register support.
5796 Register aliases for register names.
5797 * target-descriptions.c (tdesc_register_name): Make global.
5798 (tdesc_register_in_reggroup_p): New function, broken out from
5799 tdesc_register_reggroup_p.
5800 (tdesc_register_reggroup_p): Use it.
5801 * target-descriptions.h (tdesc_register_name)
5802 (tdesc_register_in_reggroup_p): New prototypes.
5803 * NEWS: Correct formatting. Mention MIPS register support.
5804 * features/mips-cp0.xml, features/mips-fpu.xml,
5805 features/mips64-cp0.xml, gdb/features/mips64-fpu.xml, mips-cpu.xml,
5806 features/mips64-cpu.xml: New files.
5808 2007-06-13 Markus Deuling <deuling@de.ibm.com>
5810 * gdbarch.sh (TARGET_ADDR_BIT): Replace by gdbarch_addr_bit.
5811 * valops.c (value_cast): Likewise.
5812 * utils.c (strlen_paddr, paddr, paddr_nz, paddress): Likewise.
5813 * ui-out.c (ui_out_field_core_addr): Likewise.
5814 * tracepoint.c (tracepoints_info): Likewise.
5815 * symtab.c (print_msymbol_info): Likewise.
5816 * solib-irix.c (irix_current_sos)
5817 (irix_open_symbol_file_object): Likewise.
5818 * remote.c (build_remote_gdbarch_data): Likewise.
5819 * prologue-value.c (make_pv_area): Likewise.
5820 * procfs.c (info_mappings_callback): Likewise.
5821 * printcmd.c (print_scalar_formatted)
5822 (deprecated_print_address_numeric): Likewise.
5823 * memattr.c (mem_info_command): Likewise.
5824 * linux-nat.c (linux_nat_info_proc_cmd): Likewise.
5825 * gdbtypes.c (build_flt, gdbtypes_post_init): Likewise.
5826 * exec.c (print_section_info): Likewise.
5827 * dwarf2read.c (read_subrange_type): Likewise.
5828 * dwarf2loc.c (find_location_expression): Likewise.
5829 * dwarf2expr.c (dwarf2_read_address, unsigned_address_type)
5830 (signed_address_type, execute_stack_op): Likewise.
5831 * breakpoint.c (print_one_breakpoint, breakpoint_1): Likewise.
5832 * gdbarch.c, gdbarch.h: Regenerate.
5834 2007-06-13 Markus Deuling <deuling@de.ibm.com>
5836 * gdbarch.sh (TARGET_ARCHITECTURE): Replace by gdbarch_bfd_arch_info.
5837 * arch-utils.c (show_architecture): Likewise.
5838 * remote-mips.c (mips_open): Likewise
5839 * nto-tdep.c (nto_find_and_open_solib)
5840 (nto_init_solib_absolute_prefix): Likewise.
5841 * nto-procfs (procfs_open): Likewise.
5842 * m68hc11-tdep.c (gdb_print_insn_m68hc11): Likewise.
5843 * gcore.c (default_gcore_mach, default_gcore_arch): Likewise.
5844 * gdbarch.c, gdbarch.h: Regenerate.
5846 2007-06-13 Markus Deuling <deuling@de.ibm.com>
5848 * gdbarch.sh (TARGET_BFD_VMA_BIT): Replace by gdbarch_bfd_vma_bit.
5849 * gdbtypes.c (build_flt): Likewise.
5850 * gdbarch.c, gdbarch.h: Regenerate.
5852 2007-06-13 Markus Deuling <deuling@de.ibm.com>
5854 * gdbarch.sh (BREAKPOINT_FROM_PC): Replace by
5855 gdbarch_breakpoint_from_pc.
5856 * s390-tdep.c (s390_gdbarch_init): Likewise (comment).
5857 * remote.c (remote_insert_breakpoint)
5858 (remote_insert_hw_breakpoint): Likewise.
5859 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Likewise.
5860 * mips-tdep.c (mips_breakpoint_from_pc): Likewise (comment).
5861 * breakpoint.h (bp_target_info): Likewise (comment).
5862 * breakpoint.c (read_memory_nobpt): Likewise.
5863 * mem-break.c (default_memory_insert_breakpoint): Likewise.
5864 (symtab.h, breakpoint.h): Remove include. Remove unnecessary comment.
5865 * gdbarch.c, gdbarch.h: Regenerate.
5867 2007-06-13 Markus Deuling <deuling@de.ibm.com>
5869 * gdbarch.sh (TARGET_PTR_BIT): Replace with gdbarch_ptr_bit.
5870 * solib-svr4.c (svr4_truncate_ptr): Likewise.
5871 * solib-pa64.c (read_dynamic_info): Likewise.
5872 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets): Likewise.
5873 * solib.c (info_sharedlibrary_command): Likewise.
5874 * s390-nat.c (SUBOFF): Likewise.
5875 * p-valprint.c (pascal_val_print): Likewise.
5876 * procfs.c (info_proc_mappings): Likewise.
5877 * printcmd.c (decode_format): Likewise.
5878 * nto-tdep.c (nto_truncate_ptr): Likewise.
5879 * mips-linux-tdep.c (mips_linux_get_longjmp_target)
5880 (mips64_linux_get_longjmp_target): Likewise.
5881 * m68k-tdep.c (m68k_get_longjmp_target): Likewise.
5882 * jv-valprint.c (java_value_print): Likewise.
5883 * jv-lang.c (get_java_object_header_size): Likewise.
5884 * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Likewise.
5885 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
5886 (hppa_hpux_unwind_adjust_stub): Likewise.
5887 * gnu-v3-abi.c (build_gdb_vtable_type): Likewise.
5888 * gdbtypes.c (make_pointer_type, make_reference_type)
5889 (smash_to_memberptr_type): Likewise.
5890 * gdbarch.c, gdbarch.h: Regenerate.
5892 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
5894 * mips-tdep.c (mips_print_register): Remove unused ALL argument.
5895 (print_gp_register_row): Stop before printing a register bigger
5896 than the ABI register size.
5897 (mips_print_registers_info): Update call to mips_print_register.
5899 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
5901 * expression.h (enum exp_opcode): Document a register name for
5903 * parse.c (write_dollar_variable): Write the register name for
5905 (operator_length_standard): Expect the register name following
5907 * ada-lang.c (resolve_subexp): Likewise.
5908 * ax-gdb.c (gen_expr): Likewise.
5909 * eval.c (evaluate_subexp_standard): Likewise.
5910 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
5912 * tracepoint.c (encode_actions): Likewise.
5914 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
5916 * utils.c (set_screen_size): Use INT_MAX for default columns.
5918 2007-06-13 Ulrich Weigand <uweigand@de.ibm.com>
5920 * remote.c (remote_protocol_features): Add qXfer:spu:read and
5921 qXfer:spu:write packet types.
5923 2007-06-12 Markus Deuling <deuling@de.ibm.com>
5925 * gdbarch.sh (DEPRECATED_STACK_ALIGN): Remove.
5926 * gdbarch.c, gdbarch.h: Regenerate.
5928 2007-06-12 Markus Deuling <deuling@de.ibm.com>
5930 * gdbarch.sh (STAB_REG_TO_REGNUM): Replace by
5931 gdbarch_stab_reg_to_regnum.
5932 * stabsread.c (define_symbol): Likewise.
5933 * gdbarch.sh (ECOFF_REG_TO_REGNUM): Replace by
5934 gdbarch_ecoff_reg_to_regnum.
5935 * mdebugread.c (parse_symbol): Likewise.
5936 * i386-tdep.c (i386_gdbarch_init): Likewise (comment).
5937 * gdbarch.sh (DWARF_REG_TO_REGNUM): Replace by
5938 gdbarch_dwarf_reg_to_regnum.
5939 * gdbarch.sh (SDB_REG_TO_REGNUM): Replace by gdbarch_sdb_reg_to_regnum.
5940 * coffread.c (process_coff_symbol): Likewise.
5941 * gdbarch.sh (DWARF2_REG_TO_REGNUM): Replace by
5942 gdbarch_dwarf2_reg_to_regnum.
5943 * dwarf2loc.c (dwarf_expr_read_reg,dwarf2_evaluate_loc_desc)
5944 (locexpr_describe_location): Likewise.
5945 * dwarf2-frame.c (read_reg,execute_cfa_program,dwarf2_frame_cache)
5946 (dwarf2_frame_prev_register,dwarf2_signal_frame_this_id): Likewise.
5947 * dwarf2loc.c (DWARF2_REG_TO_REGNUM): Remove macro.
5948 * dwarf2read.c (DWARF2_REG_TO_REGNUM): Remove macro.
5949 * gdbarch.c, gdbarch.h: Regenerate.
5951 2007-06-12 Markus Deuling <deuling@de.ibm.com>
5953 * gdbarch.sh (SMASH_TEXT_ADDRESS): Replace by
5954 gdbarch_smash_text_address.
5955 * somread.c (som_symtab_read): Likewise.
5956 * elfread.c (record_minimal_symbol): Likewise.
5957 * dbxread.c (process_one_symbol): Likewise.
5958 * coffread.c (coff_symtab_read): Likewise.
5959 * gdbarch.c, gdbarch.h: Regenerate.
5961 2007-06-12 Markus Deuling <deuling@de.ibm.com>
5963 * gdbarch.sh (REGISTER_TO_VALUE): Replace by gdbarch_register_to_value.
5964 * findvar.c (value_from_register): Likewise.
5965 * gdbarch.sh (VALUE_TO_REGISTER): Replace by gdbarch_value_to_register.
5966 * valops.c (value_assign): Likewise.
5967 * gdbarch.sh (CONVERT_REGISTER_P): Replace by
5968 gdbarch_convert_register_p.
5969 * findvar.c (value_from_register): Likewise.
5970 * valops.c (value_assign): Likewise.
5971 * gdbarch.c, gdbarch.h: Regenerate.
5973 2007-06-12 Markus Deuling <deuling@de.ibm.com>
5975 * gdbarch.sh (REGISTER_SIM_REGNO): Replace by
5976 gdbarch_register_sim_regno.
5977 * sim-regno.h (sim_regno): Likewise (comment).
5978 * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register): Likewise.
5979 * gdbarch.c, gdbarch.h: Regenerate.
5981 2007-06-12 Markus Deuling <deuling@de.ibm.com>
5983 * gdbarch.sh (TARGET_VIRTUAL_FRAME_POINTER): Replace by
5984 gdbarch_virtual_frame_pointer.
5985 * tracepoint.c (encode_actions): Likewise.
5986 * dwarf2loc.c (dwarf2_loc_desc_needs_frame): Likewise.
5987 * ax-gdb.c (gen_frame_args_address, gen_frame_locals_address): Likewise.
5988 * gdbarch.c, gdbarch.h: Regenerate.
5990 2007-06-12 Markus Deuling <deuling@de.ibm.com>
5992 * gdbarch.sh (TARGET_FLOAT_BIT): Replace by gdbarch_float_bit.
5993 * p-lang.c (pascal_create_fundamental_type): Likewise.
5994 * objc-lang.c (objc_create_fundamental_type): Likewise.
5995 * mdebugread.c (_initialize_mdebugread): Likewise.
5996 * m2-lang.c (m2_create_fundamental_type)
5997 (_initialize_m2_language): Likewise.
5998 * gdbtypes.c (build_gdbtypes): Likewise.
5999 * f-lang.c (f_create_fundamental_type, build_fortran_types): Likewise.
6000 * doublest.c (floatformat_from_length): Likewise.
6001 * c-lang.c (c_create_fundamental_type): Likewise.
6002 * ada-lang.c (ada_create_fundamental_type)
6003 (ada_language_arch_info): Likewise.
6004 * gdbarch.sh (TARGET_FLOAT_FORMAT): Replace by gdbarch_float_format.
6005 * value.c (unpack_double): Likewise (comment).
6006 * gdbtypes.c (build_gdbtypes): Likewise.
6007 * doublest.c (floatformat_from_length): Likewise.
6008 * gdbarch.sh (TARGET_DOUBLE_BIT): Replace by gdbarch_double_bit.
6009 * valarith.c (value_binop): Likewise.
6010 * p-lang.c (pascal_create_fundamental_type): Likewise.
6011 * objc-lang.c (objc_create_fundamental_type): Likewise.
6012 * mdebugread.c (_initialize_mdebugread): Likewise.
6013 * m2-lang.c (m2_create_fundamental_type): Likewise.
6014 * gdbtypes.c (build_gdbtypes): Likewise.
6015 * f-lang.c (f_create_fundamental_type, build_fortran_types): Likewise.
6016 * doublest.c (floatformat_from_length): Likewise.
6017 * cris-tdep.c (cris_gdbarch_init): Likewise (comment).
6018 * c-lang.c (c_create_fundamental_type): Likewise.
6019 * ada-lex.l (processReal): Likewise.
6020 * ada-lang.c (ada_create_fundamental_type)
6021 (ada_language_arch_info): Likewise.
6022 * gdbarch.sh (TARGET_DOUBLE_FORMAT): Replace by gdbarch_double_format.
6023 * value.c (unpack_double): Likewise (comment).
6024 * gdbtypes.c (build_gdbtypes): Likewise.
6025 * doublest.c (floatformat_from_length): Likewise.
6026 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Replace by
6027 gdbarch_long_double_bit.
6028 * p-lang.c (pascal_create_fundamental_type): Likewise.
6029 * objc-lang.c (objc_create_fundamental_type): Likewise.
6030 * m2-lang.c (m2_create_fundamental_type): Likewise.
6031 * gdbtypes.c (build_gdbtypes): Likewise.
6032 * f-lang.c (f_create_fundamental_type, build_fortran_types): Likewise.
6033 * doublest.c (floatformat_from_length): Likewise.
6034 * c-lang.c (c_create_fundamental_type): Likewise.
6035 * ada-lex.l (processReal): Likewise.
6036 * ada-lang.c (ada_create_fundamental_type)
6037 (ada_language_arch_info): Likewise.
6038 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Replace by
6039 gdbarch_long_double_format.
6040 * gdbtypes.c (build_gdbtypes): Likewise.
6041 * doublest.c (floatformat_from_length): Likewise.
6042 * gdbarch.c, gdbarch.h: Regenerate.
6044 2007-06-12 Markus Deuling <deuling@de.ibm.com>
6046 * gdbarch.sh (TARGET_SHORT_BIT): Replace by gdbarch_int_bit.
6047 * ada-lang.c (ada_create_fundamental_type)
6048 (ada_language_arch_info): Likewise.
6049 * c-lang.c (c_create_fundamental_type): Likewise.
6050 * f-lang.c (f_create_fundamental_type, build_fortran_types): Likewise.
6051 * gdbtypes.c (build_gdbtypes, gdbtypes_post_init): Likewise.
6052 * m2-lang.c (m2_create_fundamental_type): Likewise.
6053 * objc-lang.c (objc_create_fundamental_type): Likewise.
6054 * p-lang.c (pascal_create_fundamental_type): Likewise.
6055 * gdbarch.sh (TARGET_INT_BIT): Replace by gdbarch_int_bit.
6056 * c-exp.y (parse_number): Likewise.
6057 * objc-exp.y (parse_number): Likewise.
6058 * ada-lex.l (processInt): Likewise.
6059 * f-exp.y (parse_number): Likewise.
6060 * p-exp.y (parse_number): Likewise.
6061 * ada-lang.c (ada_create_fundamental_type, ada_language_arch_info)
6062 (gdbtypes_post_init, build_gdbtypes): Likewise.
6063 * p-lang.c (pascal_create_fundamental_type): Likewise.
6064 * parse.c (build_parse): Likewise.
6065 * xcoffread.c (_initialize_xcoffread): Likewise.
6066 * stabsread.c (define_symbol, read_one_struct_field, read_enum_type)
6067 (read_range_type): Likewise.
6068 * objc-lang.c (objc_create_fundamental_type): Likewise.
6069 * f-lang.c (build_fortran_types, f_create_fundamental_type): Likewise.
6070 * m2-lang.c (m2_create_fundamental_type, _initialize_m2_language)
6071 (m2_create_fundamental_type): Likewise.
6072 * c-lang.c (c_create_fundamental_type): Likewise.
6073 * coffread.c (coff_read_enum_type): Likewise.
6074 * mdebugread.c (parse_symbol, _initialize_mdebugread): Likewise.
6075 * dwarf2read.c (new_symbol): Likewise.
6076 * gdbarch.sh (TARGET_LONG_BIT): Replace by gdbarch_long_bit.
6077 * c-exp.y (parse_number): Likewise.
6078 * objc-exp.y (parse_number): Likewise.
6079 * ada-lex.l (processInt): Likewise.
6080 * f-exp.y (parse_number): Likewise.
6081 * p-exp.y (parse_number): Likewise.
6082 * valarith.c (value_binop): Likewise.
6083 * symfile.c (read_target_long_array, simple_overlay_update_1): Likewise.
6084 * ada-lang.c (ada_create_fundamental_type)
6085 (ada_language_arch_info): Likewise.
6086 * gdbtypes.c (build_gdbtypes, gdbtypes_post_init): Likewise.
6087 * symfile.c (TARGET_LONG_BYTES): Likewise.
6088 * p-lang.c (pascal_create_fundamental_type): Likewise.
6089 * objc-lang.c (objc_create_fundamental_type): Likewise.
6090 * m2-lang.c (m2_create_fundamental_type): Likewise.
6091 * f-lang.c (f_create_fundamental_type): Likewise.
6092 * c-lang.c (c_create_fundamental_type): Likewise.
6093 * coffread.c (decode_base_type): Likewise.
6094 * gdbarch.sh (TARGET_LONG_LONG_BIT): Replace by gdbarch_long_long_bit.
6095 * c-exp.y (parse_number): Likewise.
6096 * objc-exp.y (parse_number): Likewise.
6097 * p-exp.y (parse_number): Likewise.
6098 * ada-lang.c (ada_create_fundamental_type)
6099 (ada_language_arch_info): Likewise.
6100 * gdbtypes.c (gdbtypes_post_init, build_gdbtypes): Likewise.
6101 * stabsread.c (read_range_type): Likewise.
6102 * p-lang.c (pascal_create_fundamental_type): Likewise.
6103 * objc-lang.c (objc_create_fundamental_type): Likewise.
6104 * m2-lang.c (m2_create_fundamental_type): Likewise.
6105 * f-lang.c (f_create_fundamental_type): Likewise.
6106 * c-lang.c (c_create_fundamental_type): Likewise.
6107 * gdbarch.c, gdbarch.h: Regenerate.
6109 2007-06-12 Andreas Schwab <schwab@suse.de>
6111 * frame-unwind.h (frame_dealloc_cache_ftype): Define.
6112 (struct frame_unwind): Add dealloc_cache.
6113 * frame.c (reinit_frame_cache): Call dealloc_cache on all caches.
6115 * libunwind-frame.h (libunwind_frame_dealloc_cache): Declare.
6116 * libunwind-frame.c (libunwind_frame_dealloc_cache): Define.
6117 (libunwind_frame_unwind): Set dealloc_cache.
6118 * ia64-tdep.c (ia64_libunwind_frame_unwind): Set dealloc_cache.
6120 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
6121 Markus Deuling <deuling@de.ibm.com>
6123 * remote.c (remote_write_qxfer): New function.
6124 (remote_xfer_partial): Add handling for TARGET_OBJECT_SPU.
6125 (remote_read_qxfer): Do not cache empty objects.
6126 (_initialize_remote): Add PACKET_qXfer_spu_read and
6127 PACKET_qXfer_spu_write.
6129 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
6131 * target.h (enum target_object): Add TARGET_OBJECT_SPU.
6132 * spu-linux-nat.c (spu_xfer_partial): Handle TARGET_OBJECT_SPU.
6134 * spu-tdep.h (SPU_NUM_PSEUDO_REGS): Add 5 pseudo registers.
6135 (enum spu_regnum): Add SPU_FPSCR_REGNUM, SPU_SRR0_REGNUM,
6136 SPU_LSLR_REGNUM, SPU_DECR_REGNUM, SPU_DECR_STATUS_REGNUM.
6137 * spu-tdep.c (infospucmdlist): New variable.
6138 (spu_register_name): Handle additional pseudo registers.
6139 (spu_register_type): Likewise.
6140 (spu_pseudo_register_read): Likewise.
6141 (spu_pseudo_register_write): Likewise.
6142 (spu_pseudo_register_read_spu): New function.
6143 (spu_pseudo_register_write_spu): Likewise.
6144 (info_spu_event_command): New function.
6145 (info_spu_signal_command): Likewise.
6146 (info_spu_mailbox_list): Likewise.
6147 (info_spu_mailbox_command): Likewise.
6148 (spu_mfc_get_bitfield): Likewise.
6149 (info_spu_dma_cmdlist): Likewise.
6150 (info_spu_dma_command): Likewise.
6151 (info_spu_proxydma_command): Likewise.
6152 (info_spu_command): Likewise.
6153 (_initialize_spu_tdep): Install "info spu" commands.
6155 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
6157 * spu-linux-nat.c (spu_proc_xfer_spu): Do not return failure when
6158 accessing non-seekable spufs files.
6160 2007-06-09 Markus Deuling <deuling@de.ibm.com>
6162 * gdbarch.sh (SKIP_TRAMPOLINE_CODE): Replace by
6163 gdbarch_skip_trampoline_code.
6164 * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Likewise (comment).
6165 * objc-lang.c (objc_skip_trampoline)
6166 (objc_submethod_helper_data): Likewise.
6167 * m32c-lang.c (m32c_skip_trampoline_code): Likewise (comment).
6168 * infrun.c (handle_inferior_event): Likewise.
6169 * gnu-v3-abi.c (gnuv3_skip_trampoline): Likewise.
6170 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Replace by
6171 gdbarch_in_solib_return_trampoline.
6172 * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Likewise (comment).
6173 * infrun.c (handle_inferior_event): Likewise.
6174 * hppa-tdep.c (hppa_stub_unwind_sniffer): Likewise.
6175 * gdbarch.c, gdbarch.h: Regenerate.
6177 2007-06-09 Markus Deuling <deuling@de.ibm.com>
6179 * gdbarch.sh (SKIP_PROLOGUE): Replace by gdbarch_skip_prologue.
6180 * symtab.c (find_function_start_sal, in_prologue): Likewise.
6181 * linespec.c (minsym_found): Likewise.
6182 * infrun.c (step_into_function): Likewise.
6183 * gdbarch.c, gdbarch.h: Regenerate.
6185 2007-06-09 Markus Deuling <deuling@de.ibm.com>
6187 * gdbarch.sh (NAME_OF_MALLOC): Replace by gdbarch_name_of_malloc.
6188 * valops.c (value_allocate_space_in_inferior): Likewise.
6189 * gdbarch.c, gdbarch.h: Regenerate.
6191 2007-06-09 Markus Deuling <deuling@de.ibm.com>
6193 * gdbarch.sh (MEMORY_INSERT_BREAKPOINT): Replace by
6194 gdbarch_memory_insert_breakpoint.
6195 * mem-break.c (memory_insert_breakpoint): Likewise.
6196 * gdbarch.sh (MEMORY_REMOVE_BREAKPOINT): Replace by
6197 gdbarch_memory_remove_breakpoint.
6198 * mem-break.c (memory_remove_breakpoint): Likewise.
6199 * gdbarch.c, gdbarch.h: Regenerate.
6201 2007-06-09 Markus Deuling <deuling@de.ibm.com>
6203 * gdbarch.sh (FETCH_TLS_LOAD_MODULE_ADDRESS): Replace by
6204 gdbarch_fetch_tls_load_module_address.
6205 * gdbarch.sh (FETCH_TLS_LOAD_MODULE_ADDRESS_P): Replace by
6206 gdbarch_fetch_tls_load_module_address_p.
6207 * gdbarch.c, gdbarch.h: Regenerate.
6209 2007-06-09 Markus Deuling <deuling@de.ibm.com>
6211 * gdbarch.sh (DECR_PC_AFTER_BREAK): Replace by
6212 gdbarch_decr_pc_after_break.
6213 * tracepoint.c (trace_dump_command): Likewise.
6214 * solib-sunos.c (sunos_solib_create_inferior_hook): Likewise.
6215 * linux-thread-db.c (check_event): Likewise.
6216 * linux-nat.c (cancel_breakpoints_callback): Likewise.
6217 * infrun.c (adjust_pc_after_break, normal_stop): Likewise.
6218 * frame.h: Likewise (comment).
6219 * dummy-frame.c (deprecated_pc_in_call_dummy): Likewise.
6220 * aix-thread.c (aix_thread_wait): Likewise.
6221 * gdbarch.c, gdbarch.h: Regenerate.
6223 2007-06-09 Markus Deuling <deuling@de.ibm.com>
6225 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS): Replace by
6226 gdbarch_address_class_type_flags.
6227 * dwarf2read.c (read_tag_pointer_type): Likewise.
6228 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS_P): Replace by
6229 gdbarch_address_class_type_flags_p.
6230 * dwarf2read.c (read_tag_pointer_type): Likewise.
6231 * gdbarch.c, gdbarch.h: Regenerate.
6233 2007-06-09 Markus Deuling <deuling@de.ibm.com>
6235 * gdbarch.sh (ADDR_BITS_REMOVE): Replace by gdbarch_addr_bits_remove.
6236 * value.c (value_as_address): Likewise (comment).
6237 * remote-mips.c (common_breakpoint): Likewise.
6238 * regcache.c (read_pc_pid): Likewise.
6239 * printcmd.c (do_one_display): Likewise.
6240 * monitor.c (monitor_write_memory, monitor_read_memory)
6241 (monitor_insert_breakpoint): Likewise.
6242 * mips-tdep.c (heuristic_proc_start): Likewise.
6243 * infrun.c (insert_step_resume_breakpoint_at_frame)
6244 (insert_step_resume_breakpoint_at_caller): Likewise.
6245 * buildsym.c (record_line): Likewise.
6246 * arm-tdep.c (arm_scan_prologue, thumb_get_next_pc)
6247 (arm_get_next_pc): Likewise.
6248 * armnbsd-nat.c (arm_supply_gregset, fetch_register, store_register)
6249 (store_regs): Likewise.
6250 * arm-linux-tdep.c (arm_linux_supply_gregset): Likewise.
6251 * arm-linux-nat.c (fetch_register, fetch_regs): Likewise.
6252 * gdbarch.c, gdbarch.h: Regenerate.
6254 2007-06-09 Markus Deuling <deuling@de.ibm.com>
6256 * gdbarch.sh (REGISTER_NAME): Replace by gdbarch_register_name.
6257 * tracepoint.c (scope_info): Likewise.
6258 * target.c (debug_print_register): Likewise.
6259 * stack.c (frame_info): Likewise.
6260 * sh-tdep.c (sh_register_reggroup_p): Likewise.
6261 * sh64-tdep.c (sh64_do_fp_register, sh64_do_register)
6262 (sh64_media_print_registers_info)
6263 (sh64_compact_print_registers_info): Likewise.
6264 * rs6000-tdep.c (rs6000_register_reggroup_p): Likewise.
6265 * remote-sim.c (gdbsim_fetch_register): Likewise.
6266 * remote.c (packet_reg): Likewise (comment).
6267 * reggroups.c (default_register_reggroup_p): Likewise.
6268 * regcache.c (regcache_dump): Likewise.
6269 * printcmd.c (address_info): Likewise.
6270 * ppc-linux-nat.c (fetch_register, store_register): Likewise.
6271 * mt-dep.c (mt_registers_info): Likewise.
6272 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Likewise (comment).
6273 * mips-tdep.c (mips_register_reggroup_p, mips_read_fp_register_single)
6274 (mips_read_fp_register_double, mips_print_fp_register)
6275 (mips_print_register, print_gp_register_row, mips_print_registers_info)
6276 (mips_register_sim_regno): Likewise.
6277 * m68klinux-nat.c (regmap, fetch_register, store_register): Likewise.
6278 * inf-ptrace.c (inf_ptrace_fetch_register)
6279 (inf_ptrace_store_register): Likewise.
6280 * infcmd.c (default_print_registers_info): Likewise.
6281 * ia64-linux-nat.c (ia64_linux_fetch_register)
6282 (ia64_linux_store_register): Likewise.
6283 * i386-linux-nat.c (fetch_register, store_register): Likewise.
6284 * i386gnu-nat.c (gnu_fetch_registers, gnu_store_registers): Likewise.
6285 * hppa-linux-nat.c (fetch_register, store_register): Likewise.
6286 * hppa-hpux-nat.c (hppa_hpux_fetch_register)
6287 (hppa_hpux_store_register): Likewise.
6288 * findvar.c (locate_var_value): Likewise.
6289 * dwarf2loc.c (locexpr_describe_location): Likewise.
6290 * dwarf2-frame.c (execute_cfa_program): Likewise.
6291 * arm-tdep.c (arm_push_dummy_call): Likewise.
6292 * arch-utils.c (legacy_register_sim_regno): Likewise.
6293 * alpha-tdep.c (alpha_register_reggroup_p): Likewise.
6294 * alpha-nat.c (fetch_osf_core_registers): Likewise.
6295 * mi/mi-main.c (mi_cmd_data_list_register_names)
6296 (mi_cmd_data_list_changed_registers, mi_cmd_data_list_register_values)
6297 (mi_cmd_data_write_register_values): Likewise.
6298 * gdbarch.c, gdbarch.h: Regenerate.
6300 2007-06-07 Daniel Jacobowitz <dan@codesourcery.com>
6302 * target-memory.c (blocks_to_erase): Correct off-by-one error.
6304 2007-06-06 Vladimir Prus <vladimir@codesourcery.com>
6306 * remote.c (process_g_packet): Don't check size.
6307 * gdbarch.sh: Remove register_bytes_ok.
6308 * gdbarch.c: Regenerated.
6309 * gdbarch.h: Regenerated.
6310 * m68k-tdep.c (REGISTER_BYTES_NOFP): Remove.
6311 (m68k_register_bytes_ok): Remove.
6312 (m68k_gdbarch_init): Don't register m68k_register_bytes_ok.
6314 2007-06-06 Andreas Schwab <schwab@suse.de>
6316 * libunwind-frame.c (unw_destroy_addr_space_p): Define.
6317 (destroy_addr_space_name): Define.
6318 (libunwind_load): Get address of destroy_addr_space function.
6319 (libunwind_frame_cache): Destroy unw_addr_space_t object before
6320 returning unsuccessfully.
6321 (libunwind_frame_sniffer): Destroy unw_addr_space_t object before
6323 (libunwind_sigtramp_frame_sniffer): Likewise.
6324 (libunwind_get_reg_special): Likewise.
6326 2007-06-06 Markus Deuling <deuling@de.ibm.com>
6328 * gdbarch.sh (FETCH_POINTER_ARGUMENT): Replace by
6329 gdbarch_fetch_pointer_argument.
6330 * objc-lang.c (OBJC_FETCH_POINTER_ARGUMENT): Likewise.
6331 * gdbarch.c, gdbarch.h: Regenerate.
6333 2007-06-06 Markus Deuling <deuling@de.ibm.com>
6335 * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Replace by
6336 gdbarch_have_nonsteppable_watchpoint.
6337 * infrun.c (handle_inferior_event, adjust_pc_after_break): Likewise.
6338 * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Replace by
6339 gdbarch_cannot_step_breakpoint.
6340 * infrun.c (resume): Likewise.
6341 * gdbarch.c, gdbarch.h: Regenerate.
6343 2007-06-06 Markus Deuling <deuling@de.ibm.com>
6345 * gdbarch.sh (FRAME_ARGS_SKIP): Replace by gdbarch_frame_args_skip.
6346 * stack.c (print_frame_args): Likewise.
6347 * gdbarch.sh (FRAME_NUM_ARGS): Replace by gdbarch_frame_num_args.
6348 * stack.c (print_args_stub, frame_info): Likewise.
6349 * gdbarch.sh (FRAME_NUM_ARGS_P): Replace by gdbarch_frame_num_args_p.
6350 * stack.c (print_args_stub, frame_info): Likewise.
6351 * gdbarch.c, gdbarch.h: Regenerate.
6353 2007-06-06 Markus Deuling <deuling@de.ibm.com>
6355 * gdbarch.sh (COFF_MAKE_MSYMBOL_SPECIAL): Replace by
6356 gdbarch_coff_make_msymbol_special.
6357 * coffread.c (coff_symtab_read): Likewise.
6358 * gdbarch.sh (ELF_MAKE_MSYMBOL_SPECIAL): Replace by
6359 gdbarch_elf_make_msymbol_special.
6360 * elfread.c (elf_symtab_read): Likewise.
6361 * mips-tdep.c (mips_elf_make_msymbol_special): Likewise (comment).
6362 * sh64-tdep.c (MSYMBOL_IS_SPECIAL): Likewise (comment).
6363 * gdbarch.c, gdbarch.h: Regenerate.
6365 2007-06-06 Markus Deuling <deuling@de.ibm.com>
6367 * gdbarch.sh (FRAME_RED_ZONE_SIZE): Replace by
6368 gdbarch_frame_red_zone_size.
6369 * gdbarch.c, gdbarch.h: Regenerate.
6371 2007-06-06 Markus Deuling <deuling@de.ibm.com>
6373 * gdbarch.sh (INNER_THAN): Replace by gdbarch_inner_than.
6374 * infcall.c (call_function_by_hand): Likewise.
6375 * gcore.c (derive_stack_segment): Likewise.
6376 * frame.c (frame_id_inner): Likewise.
6377 * arch-utils.c (core_addr_lessthan): Likewise (comment).
6378 * ada-lang.c (ensure_lval): Likewise.
6379 * gdbarch.c, gdbarch.h: Regenerate.
6381 2007-06-06 Markus Deuling <deuling@de.ibm.com>
6383 * gdbarch.sh (ADDRESS_TO_POINTER): Replace by
6384 gdbarch_address_to_pointer.
6385 * findvar.c (store_typed_address): Likewise.
6386 * gdbtypes.c (make_pointer_type): Likewise (comment).
6387 * procfs.c (procfs_address_to_host_pointer): Likewise.
6388 * std-regs.c (value_of_builtin_frame_reg): Likewise.
6389 (value_of_builtin_frame_fp_reg): Likewise.
6390 (value_of_builtin_frame_pc_reg): Likewise.
6391 * utils.c (paddress): Likewise (comment).
6392 * gdbarch.sh (POINTER_TO_ADDRESS): Replace by
6393 gdbarch_pointer_to_address.
6394 * findvar.c (extract_typed_address): Likewise.
6395 * gdbtypes.c (make_pointer_type): Likewise (comment).
6396 * valops.c (value_cast): Likewise (comment).
6397 * gdbarch.c, gdbarch.h: Regenerate.
6399 2007-06-06 Markus Deuling <deuling@de.ibm.com>
6401 * gdbarch.sh (GET_LONGJMP_TARGET): Replace by gdbarch_get_longjmp_target.
6402 * infrun.c (handle_inferior_event): Likewise.
6403 * gdbarch.sh (GET_LONGJMP_TARGET_P): Replace by
6404 gdbarch_get_longjmp_target_p.
6405 * breakpoint.c (breakpoint_re_set): Likewise.
6406 * infrun.c (handle_inferior_event): Likewise.
6407 * gdbarch.c, gdbarch.h: Regenerate.
6409 2007-06-06 Ulrich Weigand <uweigand@de.ibm.com>
6411 * hppa-hpux-tdep.c (args_for_find_stub, HP_ACC_EH_notify_hook,
6412 HP_ACC_EH_set_hook_value, HP_ACC_EH_notify_callback, HP_ACC_EH_break,
6413 HP_ACC_EH_catch_throw, HP_ACC_EH_catch_catch, __eh_notification,
6414 hp_cxx_exception_support, hp_cxx_exception_support_initialized,
6415 eh_notify_hook_addr, eh_notify_callback_addr, eh_break_addr,
6416 eh_catch_throw_addr, break_callback_sal, setup_d_pid_in_inferior,
6417 find_stub_with_shl_get, cover_find_stub_with_shl_get,
6418 initialize_hp_cxx_exception_support, child_enable_exception_callback,
6419 current_ex_event, child_get_current_exception_event): Remove.
6420 (hppa_hpux_inferior_created): Remove.
6421 (hppa_hpux_init_abi): Do not install hppa_hpux_inferior_created.
6423 * breakpoint.h (deprecated_exception_catchpoints_are_fragile): Remove.
6424 (deprecated_exception_support_initialized): Remove.
6425 * breakpoint.c (deprecated_exception_catchpoints_are_fragile): Remove.
6426 (deprecated_exception_support_initialized): Remove.
6427 (breakpoint_init_inferior): Remove handling of non-zero
6428 deprecated_exception_catchpoints_are_fragile.
6430 * symtab.h (deprecated_hp_som_som_object_present): Remove.
6431 * symtab.c (deprecated_hp_som_som_object_present): Remove.
6432 * c-typeprint.c (c_type_print_base): Remove handling of non-zero
6433 deprecated_hp_som_som_object_present.
6434 * eval.c (evaluate_subexp_standard): Likewise.
6435 * valops.c (value_cast): Likewise.
6437 * parse.c (parse_nested_classes_for_hpacc, coloncolon): Remove.
6438 * parser-defs.h (parse_nested_classes_for_hpacc): Remove.
6439 * c-exp.y (yylex): Do not call parse_nested_classes_for_hpacc.
6441 2007-06-06 Ulrich Weigand <uweigand@de.ibm.com>
6443 * objfiles.h (ImportEntry, ExportEntry): Remove types.
6444 (struct objfile): Remove import_list, import_list_size,
6445 export_list, export_list_size members.
6446 (is_in_import_list): Remove prototype.
6447 * objfiles.c (is_in_import_list): Remove.
6448 * somread.c (init_import_symbols, init_export_symbols): Remove.
6449 (som_symfile_read): Do not call init_import_symbols. Do not
6450 set objfile->export_list and objfile->export_list_size.
6452 2007-06-05 Daniel Jacobowitz <dan@codesourcery.com>
6454 * dwarf2read.c (dwarf2_symbol_mark_computed): Fix formatting.
6455 Use the original objfile if necessary.
6457 2007-06-04 Daniel Jacobowitz <dan@codesourcery.com>
6459 * defs.h (ldirname): New prototype.
6460 * dwarf2read.c (read_file_scope): Use DW_AT_name if DW_AT_comp_dir is
6462 * utils.c (ldirname): New function.
6463 * xml-tdesc.c (file_read_description_xml): Use ldirname.
6465 2007-06-01 Ulrich Weigand <uweigand@de.ibm.com>
6467 * spu-tdep.c (spu_push_dummy_call): Store stack back chain.
6469 2007-06-01 Joel Brobecker <brobecker@adacore.com>
6471 * solib-svr4.c (svr4_solib_create_inferior_hook): Remove warning.
6473 2007-06-01 Ulrich Weigand <uweigand@de.ibm.com>
6475 * irix5-nat.c (JB_ELEMENT_SIZE, get_longjmp_target): Remove.
6477 2007-06-01 Ulrich Weigand <uweigand@de.ibm.com>
6479 * ppc-linux-tdep.c (INSTR_SC, INSTR_LI_R0_0x6666, INSTR_LI_R0_0x7777,
6480 INSTR_LI_R0_NR_sigreturn, INSTR_LI_R0_NR_rt_sigreturn): Remove.
6481 (PPC_LINUX_SIGNAL_FRAMESIZE, PPC_LINUX_REGS_PTR_OFFSET,
6482 PPC_LINUX_HANDLER_PTR_OFFSET): Remove.
6483 (ppc_linux_in_sigtramp, insn_is_sigreturn,
6484 ppc_linux_at_sigtramp_return_path): Remove.
6486 2007-05-31 Markus Deuling <deuling@de.ibm.com>
6488 * xtensa-tdep.c (XTENSA_IS_ENTRY, extract_call_winsize)
6489 (xtensa_register_write_masked, xtensa_register_read_masked)
6490 (xtensa_extract_return_value, xtensa_store_return_value
6491 (xtensa_push_dummy_call, xtensa_breakpoint_from_pc): Replace
6492 TARGET_BYTE_ORDER by gdbarch_byte_order.
6493 * sh-tdep.c (sh_breakpoint_from_pc, gdb_print_insn_sh)
6494 (sh_justify_value_in_reg, sh_next_flt_argreg, sh_push_dummy_call_fpu)
6495 (sh_extract_return_value_fpu, sh_store_return_value_fpu): Likewise.
6496 * sh64-tdep.c (sh64_breakpoint_from_pc, gdb_print_insn_sh64)
6497 (sh64_push_dummy_call, sh64_extract_return_value)
6498 (sh64_store_return_value, sh64_register_convert_to_virtual)
6499 (sh64_register_convert_to_raw, sh64_pseudo_register_read)
6500 (sh64_pseudo_register_write, sh64_do_fp_register)
6501 (sh64_frame_prev_register): Likewise.
6502 * score-tdep.c (score_print_insn, score_breakpoint_from_pc)
6503 (score_return_value, score_push_dummy_call, score_fetch_inst): Likewise.
6504 * rs6000-tdep.c (rs6000_breakpoint_from_pc, rs6000_push_dummy_call)
6505 (e500_move_ev_register,gdb_print_insn_powerpc): Likewise.
6506 * remote-m32r-sdi.c (m32r_resume, m32r_wait): Likewise.
6507 * ppc-linux-nat.c (store_register): Likewise.
6508 * nto-tdep.c (nto_find_and_open_solib)
6509 (nto_init_solib_absolute_prefix): Likewise.
6510 * mips-tdep.c (mips_pseudo_register_read, mips_pseudo_register_write)
6511 (mips_convert_register_p, mips_eabi_push_dummy_call)
6512 (mips_n32n64_push_dummy_call, mips_n32n64_return_value)
6513 (mips_o32_push_dummy_call, mips_o32_return_value)
6514 (mips_o64_push_dummy_call, mips_o64_return_value, mips_o64_return_value)
6515 (mips_read_fp_register_single, mips_read_fp_register_double)
6516 (mips_print_register, print_gp_register_row, gdb_print_insn_mips)
6517 (mips_breakpoint_from_pc): Likewise.
6518 * mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset): Likewise.
6519 * mips-linux-tdep.c (mips64_supply_fpregset, mips64_fill_fpregset)
6520 (mips_linux_o32_sigframe_init): Likewise.
6521 * m32r-tdep.c (m32r_memory_insert_breakpoint)
6522 (m32r_memory_remove_breakpoint, m32r_breakpoint_from_pc): Likewise.
6523 * libunwind-frame.c (libunwind_frame_cache, libunwind_frame_sniffer)
6524 (libunwind_sigtramp_frame_sniffer, libunwind_get_reg_special): Likewise.
6525 * iq2000-tdep.c (iq2000_breakpoint_from_pc): Likewise.
6526 * coffread.c (process_coff_symbol): Likewise.
6527 * arm-tdep.c (convert_from_extended, convert_to_extended)
6528 (gdb_print_insn_arm): Likewise.
6530 2007-05-31 Markus Deuling <deuling@de.ibm.com>
6532 * gdbarch.sh (NUM_REGS): Replace by gdbarch_num_regs.
6533 * i386-tdep.c (i386_dbx_reg_to_regnum)
6534 (i386_svr4_reg_to_regnum): Likewise.
6535 * inf-ptrace.c (inf_ptrace_fetch_registers)
6536 (inf_ptrace_store_registers): Likewise.
6537 * corelow.c (get_core_registers): Likewise.
6538 * i386-linux-nat.c (supply_gregset, fill_gregset)
6539 (i386_linux_fetch_inferior_registers)
6540 (i386_linux_store_inferior_registers): Likewise.
6541 * remote.c (init_remote_state,packet_reg_from_regnum)
6542 (packet_reg_from_pnum,process_g_packet,remote_fetch_registers)
6543 (remote_prepare_to_store,store_registers_using_G)
6544 (remote_store_registers,remote_arch_state): Likewise.
6545 * tracepoint.c (encode_actions): Likewise.
6546 * mi/mi-main.c (mi_cmd_data_list_register_names)
6547 (mi_cmd_data_list_changed_registers,mi_cmd_data_list_register_values)
6548 (mi_cmd_data_write_register_values): Likewise.
6549 * tui/tui-regs.c (tui_show_register_group)
6550 (tui_show_register_group): Likewise.
6551 * xtensa-tdep.h (FP_ALIAS): Likewise.
6552 * xtensa-tdep.c (xtensa_register_name,xtensa_register_type)
6553 (xtensa_reg_to_regnum,xtensa_pseudo_register_read)
6554 (xtensa_pseudo_register_write,xtensa_register_reggroup_p): Likewise.
6555 * win32-nat.c (do_win32_fetch_inferior_registers)
6556 (do_win32_store_inferior_registers,fetch_elf_core_registers
6557 * user-regs.h: Likewise (comment).
6558 * user-regs.c (user_reg, user_reg_map_name_to_regnum): Likewise.
6559 * trad-frame.c (trad_frame_alloc_saved_regs): Likewise.
6560 * target-descriptions.h: Likewise (comment).
6561 * target-descriptions.c (tdesc_use_registers): Likewise (comment).
6562 * target.c (debug_print_register): Likewise.
6563 * stack.c (frame_info): Likewise.
6564 * stabsread.c (define_symbol): Likewise.
6565 * sh64-tdep.c (sh64_do_pseudo_register,sh64_print_register)
6566 (sh64_media_print_registers_info)
6567 (sh64_compact_print_registers_info): Likewise.
6568 * rs6000-tdep.c (rs6000_register_sim_regno): Likewise.
6569 * rs6000-nat.c (fetch_register,store_register): Likewise.
6570 * remote-sim.c (one2one_register_sim_regno,gdbsim_fetch_register)
6571 (gdbsim_fetch_register,gdbsim_store_register): Likewise.
6572 * remote-mips.c (mips_fetch_registers,mips_store_registers): Likewise.
6573 * remote-m32r-sdi.c (m32r_fetch_registers)
6574 (m32r_store_registers): Likewise.
6575 * reggroups.c (default_register_reggroup_p): Likewise.
6576 * regcache.c (init_regcache_descr,register_size,regcache,regcache_save)
6577 (regcache_restore,regcache_dump): Likewise.
6578 * monitor.c (monitor_fetch_registers,monitor_store_registers): Likewise.
6579 * mips-tdep.c (mips_xfer_register,mips_register_name)
6580 (mips_register_reggroup_p,mips_pseudo_register_read)
6581 (mips_pseudo_register_write,mips_convert_register_p,mips_register_type)
6582 (mips_unwind_pc,mips_unwind_sp,mips_unwind_dummy_id,set_reg_offset)
6583 (mips16_scan_prologue,mips_insn16_frame_cache,reset_saved_regs)
6584 (mips32_scan_prologue,mips_insn32_frame_cache,read_next_frame_reg)
6585 (mips_n32n64_return_value,mips_o32_return_value,mips_o64_return_value)
6586 (print_gp_register_row,mips_print_registers_info)
6587 (mips_stab_reg_to_regnum,mips_dwarf_dwarf2_ecoff_reg_to_regnum)
6588 (mips_register_sim_regno): Likewise.
6589 * mips-linux-tdep.c (mips_linux_o32_sigframe_init)
6590 (mips_linux_n32n64_sigframe_init): Likewise.
6591 * mips-linux-nat.c (mips_linux_register_addr)
6592 (mips64_linux_register_addr): Likewise.
6593 * findvar.c (value_of_register): Likewise.
6594 * infcmd.c (default_print_registers_info,registers_info)
6595 (print_vector_info,print_float_info): Likewise.
6596 * mips64obsd-tdep.c (mips64obsd_sigframe_init): Likewise.
6597 * inf-child.c (inf_child_fetch_inferior_registers): Likewise.
6598 * m68k-tdep.c (m68k_dwarf_reg_to_regnum): Likewise.
6599 * m68hc11-tdep.c (m68hc11_frame_unwind_cache(: Likewise.
6600 * m32r-tdep.c (m32r_frame_unwind_cache): Likewise.
6601 * ia64-linux-nat.c (ia64_register_addr,ia64_cannot_fetch_register)
6602 (ia64_cannot_store_register,ia64_linux_fetch_registers)
6603 (ia64_linux_store_registers): Likewise.
6604 * hpux-thread.c (hpux_thread_fetch_registers)
6605 (hpux_thread_store_registers): Likewise.
6606 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM,E_PSEUDO_EXR_REGNUM)
6607 (h8300_init_frame_cache,h8300_frame_cache,h8300_frame_prev_register)
6608 (h8300_register_type): Likewise.
6609 * dwarf2-frame.c (dwarf2_frame_cache)
6610 (dwarf2_frame_state_alloc_regs): Likewise.
6611 * cris-tdep.c (cris_register_size,cris_cannot_fetch_register)
6612 (cris_cannot_store_register,crisv32_cannot_fetch_register)
6613 (crisv32_cannot_store_register,cris_register_name): Likewise.
6614 * avr-tdep.c (avr_frame_unwind_cache): Likewise.
6615 * arch-utils.c (legacy_register_sim_regno)
6616 (legacy_virtual_frame_pointer): Likewise.
6617 * arm-tdep.c (arm_make_prologue_cache,arm_register_sim_regno):Likewise.
6618 * arm-tdep.h: Likewise (comment).
6619 * frv-tdep.c (frv_register_sim_regno): Likewise.
6620 * m68klinux-nat.c (old_fetch_inferior_registers)
6621 (old_store_inferior_registers): Likewise.
6622 * m32c-tdep.c (m32c_virtual_frame_pointer): Likewise.
6623 * irix5-nat.c (fetch_core_registers): Likewise.
6624 * hppa-tdep.c (hppa_frame_cache): Likewise.
6625 * hppa-linux-nat.c (hppa_linux_register_addr)
6626 (hppa_linux_fetch_inferior_registers)
6627 (hppa_linux_store_inferior_registers): Likewise.
6628 * hppa-hpux-nat.c (hppa_hpux_fetch_inferior_registers)
6629 (hppa_hpux_store_inferior_registers): Likewise.
6630 * amd64-nat.c (amd64_native_gregset_reg_offset)
6631 (amd64_supply_native_gregset,amd64_collect_native_gregset): Likewise.
6632 * dbug-rom.c (dbug_regname): Likewise.
6633 * m68hc11-tdep.c (m68hc11_frame_unwind_cache)
6634 (HARD_PAGE_REGNUM (comment)): Likewise.
6635 * gdbarch.sh (NUM_PSEUDO_REGS): Replace by gdbarch_num_pseudo_regs.
6636 * i386-tdep.c (i386_dbx_reg_to_regnum)
6637 (i386_svr4_reg_to_regnum): Likewise.
6638 * mi/mi-main.c (mi_cmd_data_list_register_names)
6639 (mi_cmd_data_list_changed_registers,mi_cmd_data_list_register_values)
6640 (mi_cmd_data_write_register_values): Likewise.
6641 * gdbarch.c, gdbarch.h: Regenerate.
6642 * tui/tui-regs.c (tui_show_register_group): Likewise.
6643 * xtensa-tdep.h (FP_ALIAS): Likewise.
6644 * user-regs.h: Likewise (comment).
6645 * user-regs.c (user_reg, user_reg_map_name_to_regnum): Likewise.
6646 * trad-frame.c (trad_frame_alloc_saved_regs): Likewise.
6647 * target-descriptions.h: Likewise (comment).
6648 * target.c (debug_print_register): Likewise.
6649 * stack.c (frame_info): Likewise.
6650 * stabsread.c (define_symbol): Likewise.
6651 * sh64-tdep.c (sh64_print_register,sh64_media_print_registers_info)
6652 (sh64_compact_print_registers_info): Likewise.
6653 * rs6000-tdep.c (rs6000_register_sim_regno): Likewise.
6654 * regcache.c (init_regcache_descr,register_size,regcache,regcache_save
6655 (regcache_restore,regcache_dump): Likewise.
6656 * mips-tdep.c (print_gp_register_row,mips_print_registers_info)
6657 (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
6658 (mips_stab_reg_to_regnum): Likewise.
6659 * findvar.c (value_of_register): Likewise.
6660 * infcmd.c (default_print_registers_info,registers_info)
6661 (print_vector_info,print_float_info): Likewise.
6662 * m68k-tdep.c (m68k_dwarf_reg_to_regnum): Likewise.
6663 * h8300-tdep.c (h8300_register_type): Likewise.
6664 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
6665 * frame.h (SIZEOF_FRAME_SAVED_REGS): Likewise.
6666 * xtensa-tdep.c (xtensa_register_type,xtensa_reg_to_regnum)
6667 (xtensa_pseudo_register_read,xtensa_pseudo_register_write): Likewise.
6668 * parse.c: Remove comment.
6669 * gdbarch.c, gdbarch.h: Regenerate
6671 2007-05-31 Markus Deuling <deuling@de.ibm.com>
6673 * gdbarch.sh (CANNOT_FETCH_REGISTER): Replace by
6674 gdbarch_cannot_fetch_register.
6675 * alpha-nat.c (fetch_osf_core_registers): Likewise.
6676 * hppa-linux-nat.c (fetch_register): Likewise.
6677 * inf-ptrace.c (inf_ptrace_fetch_register): Likewise.
6678 * m68klinux-nat.c (fetch_register): Likewise.
6679 * mipsnbsd-tdep.c (mipsnbsd_supply_reg, mipsnbsd_supply_fpreg):
6681 * gdbarch.sh (CANNOT_STORE_REGISTER): Replace by
6682 gdbarch_cannot_store_register.
6683 * hppa-linux-nat.c (store_register): Likewise.
6684 * inf-ptrace.c (inf_ptrace_store_register): Likewise.
6685 * regcache.c (regcache_raw_write): Likewise.
6686 * m68klinux-nat.c (store_register): Likewise.
6687 * mipsnbsd-tdep.c (mipsnbsd_fill_reg, mipsnbsd_fill_fpreg): Likewise.
6688 * gdbarch.c, gdbarch.h: Regenerate.
6690 2007-05-31 Markus Deuling <deuling@de.ibm.com>
6692 * gdbarch.sh (TARGET_OSABI): Replace by gdbarch_osabi.
6693 * gdbarch.c, gdbarch.h: Regenerate.
6695 2007-05-31 Markus Deuling <deuling@de.ibm.com>
6697 * gdbarch.sh (TARGET_CHAR_SIGNED): Replace by gdbarch_char_signed.
6698 * gdbtypes.c (build_gdbtypes, gdbtypes_post_init): Likewise.
6699 * gdbarch.c, gdbarch.h: Regenerate.
6701 2007-05-31 Markus Deuling <deuling@de.ibm.com>
6703 * gdbarch.sh (TARGET_BYTE_ORDER): Replace by gdbarch_byte_order.
6704 * ax-gdb.c (gen_bitfield_ref): Likewise.
6705 * mi/mi-main.c (get_register): Likewise.
6706 * findvar.c (default_value_from_register, extract_signed_integer)
6707 (extract_unsigned_integer, extract_long_unsigned_integer)
6708 (store_signed_integer, store_unsigned_integer): Likewise.
6709 * regcache.c (regcache_dump): Likewise.
6710 * value.c (lookup_internalvar, value_of_internalvar)
6711 (set_internalvar): Likewise.
6713 * valprint.c (print_binary_chars, print_octal_chars)
6714 (print_decimal_chars, print_hex_chars, print_char_chars): Likewise.
6715 * infcmd.c (default_print_registers_info): Likewise.
6716 * arch-utils.c (selected_byte_order, show_endian): Likewise.
6717 * stabsread.c (define_symbol): Likewise.
6718 * doublest.c (floatformat_from_length, floatformat_from_type)
6719 (extract_typed_floating, store_typed_floating): Likewise.
6720 * gdbarch.c, gdbarch.h: Regenerate.
6722 2007-05-31 Markus Deuling <deuling@de.ibm.com>
6724 * gdbarch.sh (CALL_DUMMY_LOCATION): Replace by
6725 gdbarch_call_dummy_location.
6726 * infcall.c (call_function_by_hand): Likewise.
6727 * inferior.h: Change comment.
6728 * arch-utils.c: Change comment.
6729 * gdbarch.c, gdbarch.h: Regenerate.
6731 2007-05-28 Joel Brobecker <brobecker@adacore.com>
6733 * solib-aix5.c: Delete.
6734 * Makefile.in (solib-aix5.o): Delete rule.
6736 2007-05-23 Daniel Jacobowitz <dan@codesourcery.com>
6738 * breakpoint.h (enum bpstat_what_main_action): Remove
6739 BPSTAT_WHAT_THROUGH_SIGTRAMP.
6740 * infrun.c (process_event_stop_test): Do not check for it.
6742 2007-05-22 Chris Dearman <chris@mips.com>
6743 Maciej W. Rozycki <macro@mips.com>
6745 * ser-unix.c (show_serial_hwflow): New function.
6746 (hardwire_raw): Add hardware flow control support.
6747 (_initialize_ser_hardwire): Add "set/show remoteflow".
6748 * Makefile.in (ser-unix.o): Depend on $(gdbcmd_h).
6749 * NEWS: Document the new command.
6751 2007-05-21 Ulrich Weigand <uweigand@de.ibm.com>
6753 * config/i386/tm-linux.h (sys_quotactl): Do not define.
6754 * configure.ac (sys_quotactl, START_INFERIOR_TRAPS_EXPECTED): Do not
6755 define for i[[3456]]86-*-linux* native configurations.
6756 * config.in, configure: Regenerate.
6758 2007-05-19 Joel Brobecker <brobecker@adacore.com>
6760 * rs6000-nat.c (xcoff_relocate_symtab): Do nothing if debugging
6761 a core file. Add comment in the function description.
6763 2007-05-18 Caroline Tice <ctice@apple.com>
6765 * c-valprint.c (c_value_print): If the initialized field of the
6766 value struct is 0, print out "[uninitialized]" before the value.
6767 * dwarf2expr.c (execute_stack_op): Initialize ctx->initialized field;
6768 allow DW_OP_GNU_uninit as legal op following a DW_OP_reg op or a
6769 DW_OP_regx op; add case for DW_OP_GNU_uninit and update
6770 ctx->initialized appropriately. Verify no location op follows
6772 * dwarf2expr.h (struct dwarf_expr_context): New field, initialized.
6773 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Add call to
6774 set_value_initialized.
6775 * dwarf2read.c (dwarf_stack_op_name): Add case for DW_OP_GNU_uninit.
6776 (decode_locdesc): Add case for DW_OP_GNU_uninit.
6777 * value.c (struct value): New field, initialized.
6778 (allocate_value): Initialize new field.
6779 (set_value_initialized): New function.
6780 (value_initialized): New function.
6781 * value.h (value_initialized): New extern declaration.
6782 (set_value_initialized): Likewise.
6784 2007-05-18 Caroline Tice <ctice@apple.com>
6786 * MAINTAINERS (Write After Approval): Add self.
6788 2007-05-17 Joel Brobecker <brobecker@adacore.com>
6790 * gdbtypes.c (make_reference_type): Preserve the type chain
6791 and set the length of all the variants of the pointer type.
6793 2007-05-17 Joel Brobecker <brobecker@adacore.com>
6795 * gdbtypes.c (make_pointer_type): Preserve the pointer type chain
6796 and set the length of all the variants of the pointer type.
6798 2007-05-17 Maciej W. Rozycki <macro@mips.com>
6800 * mips-tdep.c (mips_n32n64_push_dummy_call): Fix and reformat a
6802 (mips_o64_push_dummy_call): Reformat a comment.
6804 2007-05-17 Qinwei <qinwei@sunnorth.com.cn>
6806 * score-tdep.c (score_frame_cache->fp, score_analyze_prologue)
6807 (score_prologue_frame_base_address): Return fp to keep gdb print
6808 local variables correctly when debugging information is stabs.
6810 (score_analyze_prologue): For software watchpoint, fetch all the
6811 instructions from range [startaddr, pc] once and identify them locally
6812 to reduce memory access.
6813 (score_malloc_and_get_memblock, score_free_memblock)
6814 (score_adjust_memblock_ptr): New functions.
6815 (score_fetch_inst): Fetch single instruction or mutiple instructions.
6817 (score_target_can_use_watch, score_stopped_by_watch)
6818 (score_target_insert_watchpoint, score_target_remove_watchpoint)
6819 (score_target_insert_hw_breakpoint, score_target_remove_hw_breakpoint):
6820 New functions for remote & local hw-watchpoint and hw-breakpoint.
6822 2007-05-16 Alfred M. Szmidt <ams@gnu.org>
6824 * reply_mig_hack.awk: Check for `auto const mach_msg_type_t'
6825 declarations as well.
6827 2007-05-16 Ulrich Weigand <uweigand@de.ibm.com>
6829 * config/arm/embed.mt (DEPRECATED_TM_FILE): Set to tm-arm.h.
6830 * config/arm/tm-embed.h: Delete file.
6832 * arm-tdep.h (arm_software_single_step): Declare.
6833 * arm-tdep.c (arm_software_single_step): Make global.
6834 (arm_gdbarch_init): Move set_gdbarch_software_single_step call
6836 * arm-linux-tdep.c (arm_linux_init_abi): ... here ...
6837 * armnbsd-tdep.c (arm_netbsd_init_abi_common): ... here ...
6838 * armobsd-tdep.c (armobsd_init_abi): ... here ...
6839 * arm-wince-tdep.c (arm_wince_init_abi): ... and here.
6841 * arm-tdep.c (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT): No longer
6842 allow defines to be overriden by TM file.
6843 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Likewise. Also,
6844 change default to {0xbe,0xbe}.
6845 * armobsd-tdep.c (arm_obsd_thumb_le_breakpoint,
6846 arm_obsd_thumb_be_breakpoint): New global variables.
6847 (armobsd_init_abi): Override tdep->thumb_breakpoint and
6848 tdep->thumb_breakpoint_size.
6849 * arm-wince-tdep.c (arm_wince_thumb_le_breakpoint): New variable.
6850 (arm_wince_init_abi): Override tdep->thumb_breakpoint and
6851 tdep->thumb_breakpoint_size.
6853 * arm-tdep.c (arm_gdbarch_init): Add set_gdbarch_skip_trampoline_code.
6855 2007-05-16 Daniel Jacobowitz <dan@codesourcery.com>
6857 * NEWS: Mention removed "set mips stack-arg-size" and "set mips
6860 * mips-tdep.c (MIPS32_REGSIZE, MIPS64_REGSIZE): New constants.
6861 (size_auto, size_32, size_64, size_enums, mips_abi_regsize_string)
6862 (mips_stack_argsize_string, mips_stack_argsize): Delete.
6863 (mips_abi_regsize): Simplify.
6864 (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call)
6865 (mips_n32n64_return_value, mips_o32_push_dummy_call)
6866 (mips_o32_return_value, mips_o64_push_dummy_call)
6867 (mips_o64_return_value): Propogate constant register sizes. Use the
6868 ABI register size instead of mips_stack_argsize.
6869 (mips_dump_tdep): Don't print mips_stack_argsize.
6870 (_initialize_mips_tdep): Remove saved-gpreg-size and stack-arg-size
6873 2007-05-16 Daniel Jacobowitz <dan@codesourcery.com>
6875 * config/mips/linux.mt (DEPRECATED_TM_FILE): Delete.
6876 * config/mips/tm-linux.h: Delete.
6877 * mips-linux-tdep.c (mips_svr4_so_ops): New.
6878 (mips_linux_in_dynsym_resolve_code): Make static. Use
6879 svr4_in_dynsym_resolve_code.
6880 (mips_linux_init_abi): Initialize mips_svr4_so_ops. Call
6882 * solib-svr4.c (svr4_in_dynsym_resolve_code, svr4_so_ops): Make
6884 * solib-svr4.h (svr4_so_ops, svr4_in_dynsym_resolve_code): Declare.
6885 * Makefile.in (mips-linux-tdep.o): Update.
6886 * solib.c (set_solib_ops): New.
6887 (current_target_so_ops): Update comment.
6888 * solib.h (set_solib_ops): New prototype.
6890 2007-05-16 Chris Dearman <chris@mips.com>
6892 * printcmd.c (do_examine): Fix typos in a comment.
6894 2007-05-16 Richard Sandiford <richard@codesourcery.com>
6896 * configure.ac: Allow sysroots to be relocated under $prefix as
6897 well as $exec_prefix.
6898 * configure: Regenerate.
6900 2007-05-14 Ulrich Weigand <uweigand@de.ibm.com>
6902 * hppa-hpux-tdep.c: Do not include <dl.h> or <machine/save_state.h>.
6903 (offsetof): Do not define.
6904 (find_stub_with_shl_get): Use numerical value 3 instead of
6905 symbolic value TYPE_PROCEDURE.
6907 2007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
6909 * gdb_proc_service.h (paddr_t): Delete typedef.
6910 * proc-service.c (ps_addr_to_core_addr, core_addr_to_ps_addr): New.
6911 (ps_xfer_memory): Take a psaddr_t. Use ps_addr_to_core_addr.
6912 (ps_pglobal_lookup): Take a psaddr_t *. Use core_addr_to_ps_addr.
6913 (ps_pdread, ps_pdwrite, ps_ptread, ps_ptwrite): Take a psaddr_t.
6914 * sol-thread.c (gdb_ps_addr_t): Use psaddr_t instead of paddr_t.
6915 * Makefile.in (proc-service.o): Update.
6917 2007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
6919 * Makefile.in (mips-tdep.o): Update.
6920 * mips-tdep.c (mips_gdbarch_init): Register the dwarf2 CFI
6923 2007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
6925 * dwarf2-frame.c (dwarf2_frame_prev_register): Use pack_long
6926 instead of store_typed_address.
6927 * value.c (pack_long): New.
6928 (value_from_longest): Use it.
6929 * value.h (pack_long): New prototype.
6931 2007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
6933 * dwarf2-frame.c (read_encoded_value): Correct typo. Use
6934 DW_EH_PE_signed if appropriate.
6936 2007-05-14 Paul Brook <paul@codesourcery.com>
6937 Daniel Jacobowitz <dan@codesourcery.com>
6939 * dwarf2read.c (dwarf2_debug_line_missing_file_complaint): New
6941 (dwarf_decode_lines): Check for line info without a file.
6943 2007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
6945 * linux-thread-db.c (thread_db_pid_to_str): Print thread IDs
6948 2007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
6950 * jv-exp.y (push_fieldnames): Use STRUCTOP_PTR instead of
6952 * jv-lang.c (evaluate_subexp_java): Handle STRUCTOP_PTR instead of
6954 * jv-typeprint.c (java_print_type): Do not crash on NULL varstring.
6956 2007-05-14 Ulrich Weigand <uweigand@de.ibm.com>
6958 * gdbarch.sh (read_sp): Remove.
6959 * gdbarch.c, gdbarch.h: Regenerate.
6960 * frame.c (frame_sp_unwind): Do not call TARGET_READ_SP.
6962 * avr-tdep.c (avr_read_sp): Remove.
6963 (avr_unwind_sp): New function.
6964 (avr_gdbarch_init): Install unwind_sp instead of read_sp callback.
6965 * mips-tdep.c (mips_read_sp): Remove.
6966 (mips_unwind_sp): New function.
6967 (mips_gdbarch_init): Install unwind_sp instead of read_sp callback.
6968 * score-tdep.c (score_read_unsigned_register): Remove.
6969 (score_read_sp): Remove.
6970 (score_unwind_sp): New function.
6971 (score_gdbarch_init): Install unwind_sp instead of read_sp callback.
6973 2007-05-14 Maxim Grigoriev <maxim2405@gmail.com>
6975 * buildsym.c (start_subfile): Handle absolute pathnames
6976 while comparing subfile names.
6978 2007-05-13 Ulrich Weigand <uweigand@de.ibm.com>
6980 * hppa-hpux-tdep.c: Include "regcache.h".
6981 * hppa-linux-tdep.c: Likewise.
6982 * hppa-tdep.c: Include "gdb_stdint.h".
6983 (find_unwind_entry): Cast host pointer to uintptr_t before passing
6985 * Makefile.in: Update dependencies.
6987 2007-05-13 Ulrich Weigand <uweigand@de.ibm.com>
6989 * blockframe.c: Remove obsolete comments.
6990 * alpha-nat.c (fetch_osf_core_registers): Update comment.
6991 * arm-tdep.h (enum gdb_regnum): Remove obsolete part of comment.
6992 * hppa-tdep.h (enum hppa_regnum): Likewise.
6993 * mips-tdep.h: Likewise.
6994 * m68hc11-tdep.c: Likewise.
6996 2007-05-13 Ulrich Weigand <uweigand@de.ibm.com>
6998 * inferior.h (read_sp): Remove prototype.
6999 * regcache.c (read_sp): Remove.
7000 * gcore.c (derive_stack_segment): Use get_frame_sp instead of read_sp.
7001 * infcall.c (call_function_by_hand): Likewise.
7002 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Use regcache instead
7004 * rs6000-tdep.c (rs6000_push_dummy_call): Likewise.
7006 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
7008 * i386-linux-nat.c (i386_linux_resume): Use regcache functions
7009 instead of read_register and read_register_pid.
7011 * ia64-linux-nat.c (enable_watchpoints_in_psr): Use REGCACHE
7012 argument instead of PTID. Use regcache functions instead of
7014 (ia64_linux_insert_watchpoint): Update call.
7015 (ia64_linux_stopped_data_address): Use regcache functions
7016 instead of read_register_pid and write_register_pid.
7018 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
7020 * libunwind-frame.h (struct regcache): Add forward declaration.
7021 (libunwind_get_reg_special): Add REGCACHE argument.
7022 * libunwind-frame.c (libunwind_get_reg_special): Add REGCACHE
7023 argument. Pass it to unw_init_remote_p.
7025 * ia64-tdep.c (ia64_pseudo_register_read): Pass regcache to
7026 libunwind_get_reg_special.
7027 (ia64_access_reg): Remove "write" case.
7028 (ia64_access_fpreg): Likewise. Read from next_frame passed
7029 as callback argument instead of from current_regcache.
7030 (ia64_access_rse_reg): Remove "write" case. Read from regcache
7031 passed as callback argument instead of from current_regcache.
7032 (ia64_access_rse_fpreg): New function.
7033 (ia64_unw_rse_acce): Use it instead of ia64_access_fpreg.
7035 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
7037 * NEWS: Mention SPU overlay support.
7039 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
7041 * spu-tdep.c (spu_frame_unwind_cache): Add comment.
7043 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
7045 * breakpoint.c (remove_breakpoint): Do not remove software
7046 breakpoints in unmapped overlay sections.
7048 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
7050 * spu-tdep.c: Include "observer.h".
7051 (spu_frame_unwind_cache): Unwind PC through overlay return stubs.
7052 (spu_overlay_data): New variable.
7053 (struct spu_overlay_table): New type.
7054 (spu_get_overlay_table, spu_overlay_update_osect, spu_overlay_update,
7055 spu_overlay_new_objfile): New functions.
7056 (spu_gdbarch_init): Install spu_overlay_update.
7057 (_initialize_spu_tdep): Register spu_overlay_new_objfile,
7058 allocate spu_overlay_data objfile data.
7060 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
7062 * gdbarch.sh (overlay_update): New gdbarch function.
7063 (struct obj_section): Add forward declaration.
7064 * gdbarch.c, gdbarch.h: Regenerate.
7066 * symfile.c (simple_overlay_update): Make global.
7067 (target_overlay_update): Remove variable.
7068 (overlay_is_mapped): Call gdbarch_overlay_update instead of
7069 target_overlay_update.
7070 (overlay_load_command): Likewise.
7071 * symfile.h (struct obj_section): Add forward declaration.
7072 (simple_overlay_update): Add prototype.
7074 * m32r-tdep.c (m32r_gdbarch_init): Install simple_overlay_update.
7076 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
7078 * observer.sh: Add "struct objfile" forward declaration.
7079 * target.h (deprecated_target_new_objfile_hook): Remove.
7080 * symfile.c (deprecated_target_new_objfile_hook): Remove.
7081 (clear_symtab_users): Call observer_notify_new_objfile.
7082 (symbol_file_add_with_addrs_or_offsets): Likewise.
7083 * rs6000-nat.c: Include "observer.h".
7084 (vmap_ldinfo): Call observer_notify_new_objfile.
7085 (xcoff_relocate_core): Likewise.
7086 * remote.c (remote_new_objfile_chain): Remove.
7087 (remote_new_objfile): Do not call remote_new_objfile_chain.
7088 (_initialize_remote): Use observer_attach_new_objfile.
7089 * tui/tui-hooks.c (tui_target_new_objfile_chain): Remove.
7090 (tui_new_objfile_hook): Do not call tui_target_new_objfile_chain.
7091 (_initialize_tui_hooks): Use observer_attach_new_objfile.
7092 * aix-thread.c: Include "observer.h".
7093 (target_new_objfile_chain): Remove.
7094 (new_objfile): Do not call target_new_objfile_chain.
7095 (_initialize_aix_thread): Use observer_attach_new_objfile.
7096 * hpux-thread.c: Include "observer.h"
7097 (target_new_objfile_chain): Remove.
7098 (hpux_thread_new_objfile): Make static. Do not call
7099 target_new_objfile_chain.
7100 (_initialize_hpux_thread): Use observer_attach_new_objfile.
7101 * linux-thread-db.c: Include "observer.h".
7102 (target_new_objfile_chain): Remove.
7103 (thread_db_new_objfile): Do not call target_new_objfile_chain.
7104 (_initialize_thread_db): Use observer_attach_new_objfile.
7105 * sol-thread.c: Include "observer.h".
7106 (target_new_objfile_chain): Remove.
7107 (sol_thread_new_objfile): Make static. Do not call
7108 target_new_objfile_chain.
7109 (_initialize_sol_thread): Use observer_attach_new_objfile.
7110 * Makefile.in (aix-thread.o, hpux-thread.o, linux-thread-db.o,
7111 rs6000-nat.o, sol-thread.o, tui-hooks.o): Add dependency on
7114 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
7116 * gdbarch.sh (remote_translate_xfer_address): Remove.
7117 * gdbarch.h, gdbarch.c: Regenerate.
7118 * arch-utils.c (generic_remote_translate_xfer_address): Remove.
7119 * arch-utils.h (generic_remote_translate_xfer_address): Remove.
7120 * remote.c (remote_write_bytes_aux, remote_read_bytes): Do not
7121 call gdbarch_remote_translate_xfer_address.
7122 * frv-tdep.c (frv_gdbarch_init): Do not call
7123 set_gdbarch_remote_translate_xfer_address.
7124 * ia64-tdep.c (ia64_remote_translate_xfer_address): Remove.
7125 (ia64_gdbarch_init): Do not install it.
7127 2007-05-11 Bob Wilson <bob.wilson@acm.org>
7129 * NEWS: Mention change in handling the -tui option.
7131 2007-05-11 Daniel Jacobowitz <dan@codesourcery.com>
7133 * linux-thread-db.c (enable_thread_event_reporting): Fix comment
7136 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
7138 * breakpoint.c (single_step_breakpoint_inserted_here_p): New function.
7139 (breakpoint_inserted_here_p): Call it.
7140 (software_breakpoint_inserted_here_p): Likewise.
7142 2007-05-10 Ulrich Weigand <uweigand@de.ibm.com>
7144 * inf-ptrace.c (inf_ptrace_register_u_offset): Adapt parameter list.
7145 (inf_ptrace_fetch_register): Add register_u_offset callback parameters
7146 GDBARCH and STORE_P. Handle callback (CORE_ADDR) -1 return value.
7147 (inf_ptrace_store_register): Likewise.
7148 (inf_ptrace_trad_target): Adapt register_u_offset parameter list.
7149 * inf-ptrace.h (inf_ptrace_trad_target): Likewise.
7151 * vax-nat.c (vax_register_u_offset): Adapt parameter list.
7153 * linux-nat.c (linux_trad_target): Adapt parameter list.
7154 * linux-nat.h (linux_trad_target): Likewise.
7156 * alpha-linux-nat.c (alpha_linux_register_u_offset): Adapt parameters.
7158 * mips-linux-nat.c (mips_linux_cannot_fetch_register): Remove.
7159 (mips_linux_cannot_store_register): Likewise.
7160 (mips_linux_register_addr): Add GDBARCH and STORE_P parameters.
7161 Return (CORE_ADDR) -1 for registers that cannot be fetched or
7162 stored via ptrace. Use GDBARCH instead of current_gdbarch.
7163 (mips64_linux_register_addr): Likewise.
7164 (mips_linux_register_u_offset): Adapt parameter list. Pass
7165 GDBARCH and STORE_P on to mips{64}_linux_register_addr.
7167 * config/mips/linux.mh (NAT_FILE): Set to config/nm-linux.h.
7168 * config/mips/nm-linux.h: Delete file.
7170 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
7172 * remote.c (remote_detach): Error out if remote can't detach.
7174 2007-05-10 Luis Machado <luisgpm@br.ibm.com>
7176 * rs6000-tdep.c: (deal_with_atomic_sequence) Stores branch
7177 instruction's opcode in the "opcode" variable and declares new
7178 variable "closing_insn".
7180 2007-05-10 Chris Dearman <chris@mips.com>
7181 Maciej W. Rozycki <macro@mips.com>
7183 * cli/cli-setshow.c (do_setshow_command): Remove trailing
7184 whitespace when setting a var_filename.
7186 2007-05-09 Bob Wilson <bob.wilson@acm.org>
7188 * main.c (captured_main): Recognize -tui option and print an error
7189 message when the TUI is not configured.
7191 2007-05-09 Andreas Schwab <schwab@suse.de>
7193 * mipsnbsd-tdep.c (mipsnbsd_ilp32_fetch_link_map_offsets): Don't
7194 set removed members.
7195 (mipsnbsd_lp64_fetch_link_map_offsets): Likewise.
7197 2007-05-08 Ulrich Weigand <uweigand@de.ibm.com>
7199 * gdbarch.sh (deprecated_store_struct_return): Remove.
7200 * gdbarch.c, gdbarch.h: Regenerate.
7201 * frv-tdep.c (frv_store_struct_return): Remove.
7202 (frv_gdbarch_init): Do not install it.
7204 2007-05-08 Ulrich Weigand <uweigand@de.ibm.com>
7206 * config/i386/nm-i386sol2.h (USE_PROC_FS): Do not define.
7207 * config/mips/nm-irix5.h (USE_PROC_FS): Do not define.
7208 * config/nm-linux.h (USE_PROC_FS): Do not undefine.
7210 2007-05-08 Ulrich Weigand <uweigand@de.ibm.com>
7212 * spu-linux-nat.c: Include "gdb_stdint.h".
7213 (fetch_ppc_register): Use uint64_t instead of unsigned long long.
7214 (fetch_ppc_memory_1, store_ppc_memory_1): Likewise.
7215 (fetch_ppc_memory, store_ppc_memory): Fix coding style.
7216 (spu_symbol_file_add_from_memory): Use strtoulst instead of sscanf.
7217 (spu_child_wait): Mark up string for translation.
7219 2007-05-08 Paul Gilliam <pgilliam@us.ibm.com>
7220 Luis Machado <luisgpm@br.ibm.com>
7222 * rs6000-tdep.c: (LWARX_MASK, LWARX_INSTRUCTION, LDARX_INSTRUCTION,
7223 STWCX_MASK, STWCX_INSTRUCTION, STDCX_INSTRUCTION, BC_MASK,
7224 BC_INSTRUCTION): Define.
7225 (deal_with_atomic_sequence): New function.
7226 (rs6000_software_single_step): Call deal_with_atomic_sequence.
7227 (rs6000_gdbarch_init): Install deal_with_atomic_sequence as
7228 gdbarch_software_single_step routine.
7230 2007-05-07 Ulrich Weigand <uweigand@de.ibm.com>
7232 * spu-linux-nat.c (fetch_ppc_register, fetch_ppc_memory_1,
7233 store_ppc_memory_1, fetch_ppc_memory, store_ppc_memory,
7234 parse_spufs_run, spu_bfd_iovec_pread, spu_bfd_open,
7235 spu_symbol_file_add_from_memory, spu_child_post_startup_inferior,
7236 spu_child_post_attach, spu_fetch_inferior_registers,
7237 spu_store_inferior_registers, spu_xfer_partial): Store PPE-side
7238 memory addresses as ULONGEST, not CORE_ADDR.
7240 2007-05-07 Ulrich Weigand <uweigand@de.ibm.com>
7242 * gdbarch.sh: Add skip_permanent_breakpoint callback.
7243 * gdbarch.h, gdbarch.c: Regenerate.
7245 * infrun.c (SKIP_PERMANENT_BREAKPOINT): Remove default definition.
7246 (resume): Call gdbarch_skip_permanent_breakpoint instead of
7247 SKIP_PERMANENT_BREAKPOINT. Inline default case.
7249 * hppa-hpux-tdep.c (hppa_skip_permanent_breakpoint): Make static.
7250 Add REGCACHE argument. Use it instead of read/write_register.
7251 (hppa_hpux_init_abi): Install hppa_skip_permanent_breakpoint.
7253 * config/pa/tm-hppah.h: Delete file.
7254 * config/pa/hppa64.mt (DEPRECATED_TM_FILE): Set to tm-hppa.h.
7255 * config/pa/hppahpux.mt (DEPRECATED_TM_FILE): Likewise.
7257 2007-05-07 Daniel Jacobowitz <dan@codesourcery.com>
7259 * Makefile.in (c-lang.o, gnu-v3-abi.o): Update.
7260 * NEWS: Mention improved C++ thunk support.
7261 * c-lang.c (cplus_language_defn): Mention cplus_skip_trampoline.
7262 * cp-abi.c (cplus_skip_trampoline): New.
7263 * cp-abi.h (cplus_skip_trampoline): New prototype.
7264 (struct cp_abi_ops): Add skip_trampoline member.
7265 * gnu-v3-abi.c (gnuv3_skip_trampoline): New.
7266 (init_gnuv3_ops): Set skip_trampoline.
7268 2007-05-06 Daniel Jacobowitz <dan@codesourcery.com>
7270 * rs6000-tdep.c (struct frame_extra_info): Delete.
7272 2007-05-06 Daniel Jacobowitz <dan@codesourcery.com>
7274 * linux-thread-db.c: Update some FIXME comments.
7275 (thread_db_xfer_partial): Delete.
7276 (init_thread_db_ops): Do not set to_xfer_partial.
7278 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7280 * inftarg.c, infptrace.c: Remove files.
7281 * Makefile.in (ALLDEPFILES): Remove inftarg.c and infptrace.c
7282 (inftarg.o, infptrace.o): Remove rules.
7283 * gdbcore.h (register_addr): Remove prototype.
7284 * inferior.h (kill_inferior, store_inferior_registers,
7285 fetch_inferior_registers, attach, detach, ptrace_wait, child_resume,
7286 call_ptrace, pre_fork_inferior): Remove prototypes.
7287 * target.h (child_xfer_memory, child_pid_to_exec_file,
7288 child_core_file_to_sym_file, child_post_attach,
7289 child_post_startup_inferior, child_acknowledge_created_inferior,
7290 child_insert_fork_catchpoint, child_remove_fork_catchpoint,
7291 child_insert_vfork_catchpoint, child_remove_vfork_catchpoint,
7292 child_insert_exec_catchpoint, child_remove_exec_catchpoint,
7293 child_follow_fork, child_reported_exec_events_per_exec_call,
7294 child_has_exited, child_thread_alive): Remove prototypes.
7296 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7298 * sparc-nat.h (sparc_fetch_inferior_registers): Add prototype.
7299 (sparc_store_inferior_registers): Likewise.
7300 * sparc-nat.c (fetch_inferior_registers): Rename to ...
7301 (sparc_fetch_inferior_registers): ... this.
7302 (store_inferior_registers): Rename to ...
7303 (sparc_store_inferior_registers): ... this.
7304 (sparc_target): Update callback names.
7305 * sparc-linux.nat.c (_initialize_sparc_linux_nat): Likewise.
7306 * sparc64-linux.nat.c (_initialize_sparc64_linux_nat): Likewise.
7308 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7310 * linux-nat.c (child_post_attach): Rename to ...
7311 (linux_child_post_attach): ... this. Make static.
7312 (child_follow_fork): Rename to ...
7313 (linux_child_follow_fork): ... this. Make static.
7314 (child_insert_fork_catchpoint): Rename to ...
7315 (linux_child_insert_fork_catchpoint): ... this. Make static.
7316 (child_insert_vfork_catchpoint): Rename to ...
7317 (linux_child_insert_vfork_catchpoint): ... this. Make static.
7318 (child_insert_exec_catchpoint): Rename to ...
7319 (linux_child_insert_exec_catchpoint): ... this. Make static.
7320 (child_pid_to_exec_file): Rename to ...
7321 (linux_child_pid_to_exec_file): ... this. Make static.
7323 (linux_handle_extended_wait): Update call.
7324 (linux_xfer_partial): Update callback routine names.
7326 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7328 * configure.host (alpha*-*-osf[12]*): Remove support.
7329 * NEWS: Mention removed configurations.
7331 * config/alpha/alpha-osf1.mh: Delete file.
7332 * config/alpha/alpha-osf2.mh: Delete file.
7333 * config/alpha/alpha-osf3.mh (NATDEPFILES): Remove inftarg.o
7335 * config/alpha/nm-osf.h: Delete file.
7336 * config/alpha/nm-osf2.h: Delete file.
7337 * config/alpha/nm-osf3.h: Do not include "nm-osf2.h".
7338 (START_INFERIOR_TRAPS_EXPECTED): Copy from nm-osf.h.
7339 (PROCFS_DONT_TRACE_FAULTS): Copy from nm-osf2.h.
7341 * alpha-nat.c (ALPHA_UNIQUE_PTRACE_ADDR): Do not define.
7342 (register_addr, kernel_u_size): Remove.
7343 Do not check for "defined(USE_PROC_FS) || defined(HAVE_GREGSET_T)".
7345 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7347 * regcache.c (regcache_invalidate): New function.
7348 (register_cached): Remove.
7349 (set_register_cached): Remove.
7350 (deprecated_registers_fetched): Remove.
7351 (registers_changed): Use regcache_invalidate instead
7352 of set_register_cached.
7353 (regcache_raw_read): Update comment.
7355 * regcache.h (regcache_invalidate): Add prototype.
7356 (register_cached): Remove.
7357 (set_register_cached): Remove.
7358 (deprecated_registers_fetched): Remove.
7360 * findvar.c (value_of_register): Do not call register_cached.
7361 * frame.c (frame_register): Likewise.
7362 * tui/tui-regs.c (tui_get_register): Likewise.
7364 * remote.c (fetch_register_using_p): Do not call set_register_cached.
7365 (process_g_packet): Likewise.
7366 (remote_fetch_registers): Likewise.
7367 * remote-sim.c (gdbsim_fetch_register): Likewise.
7368 * mt-tdep.c (mt_select_coprocessor): Replace set_register_cached call
7369 by regcache_invalidate.
7370 (mt_pseudo_register_write): Likewise.
7371 * sh-tdep.c (sh_pseudo_register_write): Likewise.
7373 * corelow.c (get_core_registers): Replace deprecated_registers_fetched
7374 call by loop over regcache_raw_supply (..., NULL).
7376 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7378 * target.h (struct target_ops): Add REGCACHE parameter to
7379 to_prepare_to_store.
7380 (target_prepare_to_store): Likewise.
7381 * target.c (debug_to_prepare_to_store): Add REGCACHE parameter.
7382 (update_current_target): Adapt prepare_to_store de_fault rule.
7384 * regcache.c (regcache_raw_write): Pass regcache to
7385 target_prepare_to_store.
7387 * inftarg.c (child_prepare_to_store): Add REGCACHE parameter.
7388 Do not call CHILD_PREPARE_TO_STORE.
7389 * gnu-nat.c (gnu_prepare_to_store): Likewise.
7390 * procfs.c (procfs_prepare_to_store): Likewise.
7392 * inf-child.c (inf_child_prepare_to_store): Add REGCACHE parameter.
7393 * go32-nat.c (go32_prepare_to_store): Likewise.
7394 * monitor.c (monitor_prepare_to_store): Likewise.
7395 * nto-procfs.c (procfs_prepare_to_store): Likewise.
7396 * remote-m32r-sdi.c (m32r_prepare_to_store): Likewise.
7397 * remote-mips.c (mips_prepare_to_store): Likewise.
7398 * remote-sim.c (gdbsim_prepare_to_store): Likewise.
7399 * win32-nat.c (win32_prepare_to_store): Likewise.
7401 * remote.c (remote_prepare_to_store): Add REGCACHE parameter.
7402 Use it instead of current_regcache.
7404 * hpux-thread.c (hpux_thread_prepare_to_store): Add REGCACHE
7405 parameter. Pass it on to next target.
7406 * sol-thread.c (sol_thread_prepare_to_store): Likewise.
7408 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7410 * target.h (struct regcache): Add forward declaration.
7411 (struct target_ops): Add REGCACHE parameter to to_fetch_registers
7412 and to_store_registers target operations.
7413 (target_fetch_registers, target_store_registers): Update.
7415 * regcache.c (regcache_raw_read): Replace register_cached by
7416 regcache_valid_p. Pass regcache to target_fetch_registers.
7417 (regcache_raw_write): Pass regcache to target_store_registers.
7419 * arm-linux-nat.c (store_fpregister, store_fpregs, store_register,
7420 store_regs, store_wmmx_regs): Replace register_cached by
7423 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd): Pass current_regcache
7424 to target_fetch_registers calls.
7425 * corelow.c (core_open): Likewise.
7426 * linux-nat.c (linux_nat_corefile_thread_callback): Likewise.
7427 * proc-service.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
7428 ps_lsetfpregs): Likewise.
7429 * sol-thread.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
7430 ps_lsetfpregs): Likewise.
7431 * win32-nat.c (win32_resume): Likewise.
7432 * ia64-tdep.c (ia64_store_return_value): Pass current_regcache
7433 to target_store_registers call.
7434 * rs6000-tdep.c (rs6000_push_dummy_call): Likewise.
7436 * inferior.h (store_inferior_registers): Update prototype.
7437 (fetch_inferior_registers): Likewise.
7438 * gnu-nat.c (gnu_store_registers, gnu_fetch_registers): Likewise.
7439 * mips-linux-nat.c (super_fetch_registers, super_store_registers):
7440 Update function pointer signatures.
7442 * aix-thread.c (aix_thread_fetch_registers): Add REGCACHE parameter,
7443 use it instead of current_regcache, update calls.
7444 (aix_thread_store_registers): Likewise.
7445 * alphabsd-nat.c (alphabsd_fetch_inferior_registers): Likewise.
7446 (alphabsd_store_inferior_registers): Likewise.
7447 * amd64bsd-nat.c (amd64bsd_fetch_inferior_registers): Likewise.
7448 (amd64bsd_store_inferior_registers): Likewise.
7449 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers): Likewise.
7450 (amd64_linux_store_inferior_registers): Likewise.
7451 * arm-linux-nat.c (fetch_fpregister, fetch_fpregs, store_fpregister,
7452 store_fpregs, fetch_register, fetch_regs, store_register, store_regs,
7453 fetch_wmmx_regs, store_wmmx_regs): Likewise.
7454 (arm_linux_fetch_inferior_registers): Likewise.
7455 (arm_linux_store_inferior_registers): Likewise.
7456 * armnbsd-nat.c (fetch_register, fetch_regs, fetch_fp_register,
7457 fetch_fp_regs, armnbsd_fetch_registers): Likewise.
7458 (store_register, store_regs, store_fp_register, store_fp_regs,
7459 armnbsd_store_registers): Likewise.
7460 * bsd-kvm.c (bsd_kvm_fetch_pcb, bsd_kvm_fetch_registers): Likewise.
7461 * bsd-uthread.c (bsd_uthread_fetch_registers): Likewise.
7462 (bsd_uthread_store_registers): Likewise.
7463 * corelow.c (get_core_registers): Likewise.
7464 * go32-nat.c (fetch_register, go32_fetch_registers, store_register,
7465 go32_store_registers): Likewise.
7466 * hppabsd-nat.c (hppabsd_fetch_registers): Likewise.
7467 (hppabsd_store_registers): Likewise.
7468 * hppa-hpux-nat.c (hppa_hpux_fetch_register): Likewise.
7469 (hppa_hpux_fetch_inferior_registers): Likewise.
7470 (hppa_hpux_store_register): Likewise.
7471 (hppa_hpux_store_inferior_registers): Likewise.
7472 * hppa-linux-nat.c (fetch_register, store_register): Likewise.
7473 (hppa_linux_fetch_inferior_registers): Likewise.
7474 (hppa_linux_store_inferior_registers): Likewise.
7475 * hpux-thread.c (hpux_thread_fetch_registers): Likewise.
7476 (hpux_thread_store_registers): Likewise.
7477 * i386bsd-nat.c (i386bsd_fetch_inferior_registers): Likewise.
7478 (i386bsd_store_inferior_registers): Likewise.
7479 * i386gnu-nat.c (fetch_fpregs, gnu_fetch_registers, store_fpregs,
7480 gnu_store_registers): Likewise.
7481 * i386-linux-nat.c (fetch_register, store_register, fetch_regs,
7482 store_regs, fetch_fpregs, store_fpregs, fetch_fpxregs, store_fpxregs):
7484 (i386_linux_fetch_inferior_registers): Likewise.
7485 (i386_linux_store_inferior_registers): Likewise.
7486 * ia64-linux-nat.c (ia64_linux_fetch_register): Likewise.
7487 (ia64_linux_fetch_registers): Likewise.
7488 (ia64_linux_store_register): Likewise.
7489 (ia64_linux_store_registers): Likewise.
7490 * inf-child.c (inf_child_fetch_inferior_registers): Likewise.
7491 (inf_child_store_inferior_registers): Likewise.
7492 * inf-ptrace.c (inf_ptrace_fetch_register): Likewise.
7493 (inf_ptrace_fetch_registers): Likewise.
7494 (inf_ptrace_store_register): Likewise.
7495 (inf_ptrace_store_registers): Likewise.
7496 * infptrace.c (fetch_register, store_register): Likewise.
7497 (fetch_inferior_registers, store_inferior_registers): Likewise.
7498 * m32r-linux-nat.c (fetch_regs, store_regs): Likewise.
7499 (m32r_linux_fetch_inferior_registers): Likewise.
7500 (m32r_linux_store_inferior_registers): Likewise.
7501 * m68kbsd-nat.c (m68kbsd_fetch_inferior_registers): Likewise.
7502 (m68kbsd_store_inferior_registers): Likewise.
7503 * m68klinux-nat.c (fetch_register, old_fetch_inferior_registers,
7504 store_register, old_store_inferior_registers, fetch_regs, store_regs,
7505 fetch_fpregs, store_fpregs): Likewise.
7506 (m68k_linux_fetch_inferior_registers): Likewise.
7507 (m68k_linux_store_inferior_registers): Likewise.
7508 * m88kbsd-nat.c (m88kbsd_fetch_inferior_registers): Likewise.
7509 (m88kbsd_store_inferior_registers): Likewise.
7510 * mips64obsd-nat.c (mips64obsd_fetch_inferior_registers): Likewise.
7511 (mips64obsd_store_inferior_registers): Likewise.
7512 * mips-linux-nat.c (mips64_linux_regsets_fetch_registers): Likewise.
7513 (mips64_linux_regsets_store_registers): Likewise.
7514 (mips64_linux_fetch_registers): Likewise.
7515 (mips64_linux_store_registers): Likewise.
7516 * mipsnbsd-nat.c (mipsnbsd_fetch_inferior_registers): Likewise.
7517 (mipsnbsd_store_inferior_registers): Likewise.
7518 * monitor.c (monitor_fetch_register, monitor_store_register): Likewise.
7519 (monitor_fetch_registers, monitor_store_registers): Likewise.
7520 * nto-procfs.c (procfs_fetch_registers): Likewise.
7521 (procfs_store_registers): Likewise.
7522 * ppc-linux-nat.c (fetch_altivec_register, fetch_spe_register,
7523 fetch_register, supply_vrregset, fetch_altivec_registers,
7524 fetch_ppc_registers, ppc_linux_fetch_inferior_registers): Likewise.
7525 (store_altivec_register, store_spe_register, store_register,
7526 fill_vrregset, store_altivec_registers, store_ppc_registers,
7527 ppc_linux_store_inferior_registers): Likewise.
7528 * ppcnbsd-nat.c (ppcnbsd_fetch_inferior_registers): Likewise.
7529 (ppcnbsd_store_inferior_registers): Likewise.
7530 * ppcobsd-nat.c (ppcobsd_fetch_registers): Likewise.
7531 (ppcobsd_store_registers): Likewise.
7532 * procfs.c (procfs_fetch_registers, procfs_store_registers): Likewise.
7533 * remote.c (fetch_register_using_p, process_g_packet,
7534 fetch_registers_using_g, remote_fetch_registers): Likewise.
7535 (store_register_using_P, store_registers_using_G,
7536 remote_store_registers): Likewise.
7537 * remote-m32r-sdi.c (m32r_fetch_registers, m32r_fetch_register,
7538 m32r_store_register, m32r_store_register): Likewise.
7539 * remote-mips.c (mips_fetch_registers, mips_store_registers): Likewise.
7540 * remote-sim.c (gdbsim_fetch_register): Likewise.
7541 (gdbsim_store_register): Likewise.
7542 * rs6000-nat.c (fetch_register, store_register): Likewise.
7543 (rs6000_fetch_inferior_registers): Likewise.
7544 (rs6000_store_inferior_registers): Likewise.
7545 * s390-nat.c (fetch_regs, store_regs): Likewise.
7546 (fetch_fpregs, store_fpregs): Likewise.
7547 (s390_linux_fetch_inferior_registers): Likewise.
7548 (s390_linux_store_inferior_registers): Likewise.
7549 * shnbsd-nat.c (shnbsd_fetch_inferior_registers): Likewise.
7550 (shnbsd_store_inferior_registers): Likewise.
7551 * sol-thread.c (sol_thread_fetch_registers): Likewise.
7552 (sol_thread_store_registers): Likewise.
7553 * sparc-nat.c (fetch_inferior_registers): Likewise.
7554 (store_inferior_registers): Likewise.
7555 * spu-linux-nat.c (spu_fetch_inferior_registers): Likewise.
7556 (spu_store_inferior_registers): Likewise.
7557 * target.c (debug_print_register): Likewise.
7558 (debug_to_fetch_registers, debug_to_store_registers): Likewise.
7559 * vaxbsd-nat.c (vaxbsd_fetch_inferior_registers): Likewise.
7560 (vaxbsd_store_inferior_registers): Likewise.
7561 * win32-nat.c (do_win32_fetch_inferior_registers): Likewise.
7562 (win32_fetch_inferior_registers): Likewise.
7563 (win32_store_inferior_registers): Likewise.
7565 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7567 * gdbcore.h (struct regcache): Add forward declaration.
7568 (struct core_fns): Add REGCACHE argument to core_read_registers
7570 * corelow.c (get_core_register_section): Add REGCACHE argument,
7571 use it instead of current_regcache, pass it to core_read_registers
7573 (get_core_registers): Add current_regcache as parameter to
7574 get_core_register_section calls.
7576 * alpha-nat.c (fetch_osf_core_registers): Add REGCACHE argument,
7577 use it instead of current_regcache.
7578 * armnbsd-nat.c (fetch_core_registers): Likewise.
7579 (fetch_elfcore_registers): Likewise.
7580 * core-regset.c (fetch_core_registers): Likewise.
7581 * cris-tdep.c (fetch_core_registers): Likewise.
7582 * irix5-nat.c (fetch_core_registers): Likewise.
7583 * m68klinux-nat.c (fetch_core_registers): Likewise.
7584 * mips-linux-tdep.c (fetch_core_registers): Likewise.
7585 * win32-nat.c (fetch_elf_core_registers): Likewise.
7587 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7589 * gregset.h (struct regcache): Add forward declaration.
7590 (supply_gregset): Add REGCACHE parameter, make GREGS const.
7591 (supply_fpregset): Add REGCACHE parameter, make FPREGS const.
7592 (supply_fpxregset): Add REGCACHE parameter, make FPXREGS const.
7593 (fill_gregset): Add REGCACHE parameter.
7594 (fill_fpregset): Likewise.
7595 (fill_fpxregset): Likewise.
7597 Update all definitions accordingly:
7598 * alphabsd-nat.c, alpha-linux-nat.c, alpha-nat.c, amd64-linux-nat.c,
7599 arm-linux-nat.c, hppa-linux-nat.c, i386gnu-nat.c, i386-linux-nat.c,
7600 i386-sol2-nat.c, i386v4-nat.c, ia64-linux-nat.c, irix5-nat.c,
7601 m32r-linux-nat.c, m68klinux-nat.c, mips-linux-nat.c, ppc-linux-nat.c,
7602 s390-nat.c, sparc64-linux-nat.c, sparc-linux-nat.c, sparc-sol2-nat.c
7603 (supply_gregset): Add REGCACHE parameter, use it instead of
7604 current_regcache. Make GREGSETP parameter const, adapt casts.
7605 (supply_fpregset): Add REGCACHE parameter, use it instead of
7606 current_regcache. Make FPREGSETP parameter const, adapt casts.
7607 (fill_gregset): Add REGCACHE parameter, use it instead of
7609 (fill_fpregset): Likewise.
7611 Update all callers to pass in current_regcache as the new argument:
7612 * core-regset.c: Include "regcache.h".
7613 (fetch_core_registers): Update supply_gregset,and supply_fpregset calls.
7614 * procfs.c: Include "regcache.h".
7615 (procfs_fetch_registers): Update supply_gregset, supply_fpregset calls.
7616 (procfs_store_registers): Update fill_gregset, fill_fpregset calls.
7617 (procfs_do_thread_registers): Likewise.
7618 (procfs_make_note_section): Likewise.
7619 * proc-service.c: Include "regcache.h".
7620 (ps_lgetregs): Update fill_gregset call.
7621 (ps_lsetregs): Update supply_gregset call.
7622 (ps_lgetfpregs): Update fill_fpregset call.
7623 (ps_lsetfpregs): Update supply_fpregset call.
7624 * sol-thread.c (sol_thread_fetch_registers): Update supply_gregset,
7625 supply_fpregset calls.
7626 (sol_thread_store_registers): Update fill_gregset, fill_fpregset calls.
7627 (ps_lgetregs): Update fill_gregset call.
7628 (ps_lsetregs): Update supply_gregset call.
7629 (ps_lgetfpregs): Update fill_fpregset call.
7630 (ps_lsetfpregs): Update supply_fpregset call.
7632 * linux-nat.c (linux_nat_do_thread_registers): Update fill_gregset,
7633 fill_fpregset, and fill_fpxregset calls.
7634 * i386-linux-nat.c (fetch_regs): Update supply_gregset call.
7635 (store_regs): Update fill_gregset call.
7636 (fetch_fpregs): Update supply_fpregset call.
7637 (store_fpregs): Update fill_fpregset call.
7638 (fetch_fpxregs): Update supply_fpxregset call.
7639 (store_fpxregs): Update fill_fpxregset call.
7640 * m32r-linux-nat.c (fetch_regs): Update supply_gregset call.
7641 (store_regs): Update fill_gregset call.
7642 * m68klinux-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.
7646 (fetch_core_registers): Update supply_gregset, supply_fpregset calls.
7647 * s390-nat.c (fetch_regs): Update supply_gregset call.
7648 (store_regs): Update fill_gregset call.
7649 (fetch_fpregs): Update supply_fpregset call.
7650 (store_fpregs): Update fill_fpregset call.
7652 * Makefile.in (core-regset.o, procfs.o, proc-service.o): Update
7655 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7657 * monitor.c (monitor_supply_register): Add REGCACHE parameter, use
7658 it instead of current_regcache.
7659 (parse_register_dump): Add REGCACHE parameter, pass it to
7660 supply_register callback.
7661 (monitor_dump_reg_block): Add REGCACHE parameter, pass it to
7662 parse_register_dump.
7663 (monitor_dump_regs): Add REGCACHE parameter, pass it to
7664 parse_register_dump and dumpregs callback.
7665 (monitor_wait): Pass current_regcache to parse_register_dump and
7667 (monitor_fetch_register): Pass current_regcache to
7668 monitor_supply_register.
7669 (monitor_fetch_registers): Pass current_regcache to
7671 * monitor.h (struct monitor_ops): Add REGCACHE parameter to
7672 supply_register and dumpregs callbacks.
7673 (monitor_supply_register, monitor_dump_reg_block): Update
7675 * dbug-rom.c (dbug_supply_register): Add REGCACHE parameter. Pass
7676 it to monitor_supply_register.
7677 * dink32-rom.c (dink32_supply_register): Likewise.
7678 * ppcbug-rom.c (ppcbug_supply_register): Likewise.
7679 * m32r-rom.c (m32r_supply_register): Likewise. Also, use REGCACHE
7680 instead of current_regcache.
7682 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7684 * i386-nto-tdep.c (i386nto_supply_gregset, i386nto_supply_fpregset):
7685 Add REGCACHE parameter. Use it instead of current_regcache.
7686 (i386nto_supply_regset): Add REGCACHE parameter, pass it to
7687 i386nto_supply_gregset and i386nto_supply_fpregset.
7688 (i386nto_regset_fill): Add REGCACHE parameter; use it instead
7689 of current_regcache.
7691 * nto-procfs.c (procfs_fetch_registers): Pass current_regcache to
7692 nto_supply_ helper functions.
7693 (procfs_store_registers): Pass current_regcache to nto_regset_fill.
7695 * nto-tdep.c (nto_dummy_supply_regset): Add REGCACHE parameter.
7697 * nto-tdep.h (struct nto_target_ops): Add REGCACHE parameter to
7698 supply_greget, supply_fpregset, supply_altregset, supply_regset,
7699 and regset_fill member function pointers.
7700 (nto_dummy_supply_regset): Adapt prototype.
7702 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7704 * shnbsd-tdep.c (shnbsd_supply_reg): Add REGCACHE parameter, use it
7705 instead of current_regcache. Make REGS const.
7706 (shnbsd_fill_reg): Add REGCACHE parameter; replace current_regcache.
7707 * shnbsd-tdep.h (shnbsd_supply_reg, shnbsd_fill_reg): Update
7709 * shnbsd-nat.c: Include "regcache.h".
7710 (shnbsd_fetch_inferior_registers): Pass current_regcache to
7712 (shnbsd_store_inferior_registers): Pass current_regcache to
7714 * Makefile.in (shbsd-nat.o): Update dependencies.
7716 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7718 * mips-linux-tdep.c (supply_32bit_reg): Add REGCACHE parameter. Use it
7719 instead of current_regcache.
7720 (mips_supply_gregset): Likewise. Pass REGCACHE to supply_32bit_reg.
7721 Make GREGSETP const, remove superfluous casts.
7722 (mips_fill_gregset): Add REGCACHE parameter; replace current_regcache.
7723 (mips_supply_fpregset): Likewise. Make FPREGSETP const, remove
7725 (mips_fill_fpregset): Add REGCACHE parameter; replace current_regcache.
7726 (supply_64bit_reg): Likewise
7727 (mips64_supply_gregset): Likewise. Pass REGCACHE to supply_64bit_reg.
7728 Make GREGSETP const, adapt casts accordingly.
7729 (mips64_fill_gregset): Add REGCACHE parameter; replace current_regcache.
7730 (mips64_supply_fpregset): Likewise. Make FPREGSET const, adapt
7732 (mips64_fill_fpregset): Add REGCACHE parameter; replace current_regcache.
7733 (fetch_core_registers): Pass current_regcache to mips{64}_(supply|fill)_
7735 * mips-linux-tdep.h (mips_supply_gregset, mips_fill_gregset,
7736 mips_supply_fpregset, mips_fill_fpregset, mips64_supply_gregset,
7737 mips64_fill_gregset, mips64_supply_fpregset, mips64_fill_fpregset):
7739 * mips-linux-nat.c: Include "regcache.h".
7740 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): Pass
7741 current_regcache to mips{64}_(supply|fill)_ helper routines.
7742 (mips64_linux_regsets_fetch_registers): Likewise.
7743 (mips64_linux_regsets_store_registers): Likewise.
7745 * mipsnbsd-tdep.c (mipsnbsd_supply_reg, mipsnbsd_supply_fpreg): Add
7746 REGCACHE argument; replace current_regcache. Make REGS const.
7747 (mipsnbds_fill_reg, mipsnbsd_fill_fpreg): Add REGCACHE argument;
7748 replace current_regcache.
7749 * mipsnbsd-tdep.h (ipsnbsd_supply_reg, mipsnbsd_supply_fpreg,
7750 mipsnbds_fill_reg, mipsnbsd_fill_fpreg): Adapt prototypes.
7751 * mipsnbsd-nat.c (mipsnbsd_fetch_inferior_registers,
7752 mipsnbsd_store_inferior_registers): Pass current_regcache to
7753 mipsnbsd_(supply|fill)_... helper routines.
7755 * Makefile.in (mips-linux-nat.o): Update dependencies.
7757 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7759 * i387-tdep.c (i387_fill_fsave, i387_fill_fxsave): Remove.
7760 * i387-tdep.h (i387_fill_fsave, i387_fill_fxsave): Remove prototypes.
7761 * i368-linux-nat.c (supply_fpregset, supply_fpxregset): Replace
7762 i387_fill_fsave and i387_fill_fxsave calls by inline copies.
7763 * i386-nto-tdep.c (i386nto_regset_fill): Likewise.
7764 * i386gnu-nat.c (store_fpregs): Likewise.
7765 * i386v4-nat.c (fill_fpregset): Likewise.
7766 * go32-nat.c (store_register, go32_store_registers): Likewise.
7768 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7770 * cris-tdep.c (supply_gregset): Rename to ...
7771 (cris_supply_gregset): ... this. Add REGCACHE parameter. Use it
7772 instead of current_regcache.
7773 (fetch_core_registers): Update call. Pass current_regcache.
7775 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7777 * arnmnbsd-nat.c (supply_gregset): Rename to ...
7778 (arm_supply_gregset): ... this. Add REGCACHE parameter.
7779 Use it instead of current_regcache.
7780 (supply_fparegset): Rename to ...
7781 (arm_supply_fparegset): ... this. Add REGCACHE parameter.
7782 Use it instead of current_regcache.
7783 (fetch_regs, fetch_fp_regs): Update calls. Pass current_regcache.
7784 (fetch_core_registers, fetch_elfcore_registers): Likewise.
7786 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7788 * alpha-tdep.c (alpha_supply_int_regs, alpha_fill_int_regs,
7789 alpha_supply_fp_regs, alpha_fill_fp_regs): Add REGCACHE parameter,
7790 use it instead of current_regcache.
7791 * alpha-tdep.h (struct regcache): Add forward declaration.
7792 (alpha_supply_int_regs, alpha_fill_int_regs, alpha_supply_fp_regs,
7793 alpha_fill_fp_regs): Update prototypes.
7795 * alpha-nat.c: (supply_gregset, fill_gregset, supply_fpregset,
7796 fill_fpregset): Pass current_regcache to alpha_supply/fill_ routines.
7797 * alpha-linux-nat.c: Include "regcache.h".
7798 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): Pass
7799 current_regcache to alpha_supply/fill_ routines.
7801 * alphabsd-tdep.c: Include "regcache.h".
7802 (alphabsd_supply_reg, alphabsd_supply_fpreg): Add REGCACHE paramter,
7803 pass it to alpha_supply_ routines. Make REGS const.
7804 (alphabsd_fill_reg, alphabsd_fill_fpreg): Add REGCACHE parameter,
7805 pass it to alpha_fill_ routines.
7806 * alphabsd-tdep.h (struct regcache): Add forward declaration.
7807 (alphabsd_supply_reg, alphabsd_fill_reg, alphabsd_supply_fpreg,
7808 alphabsd_fill_fpreg): Update prototypes.
7810 * alphanbsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
7811 fill_fpregset, alphabsd_fetch_inferior_registers,
7812 alphabsd_store_inferior_registers): Pass current_regcache to
7813 alphabsd_supply/fill_ routines.
7815 * Makefile.in (alpha-linux-nat.o, alphabsd-tdep.o): Update
7818 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7820 * aix-thread.c (supply_gprs64, supply_reg32, supply_fprs,
7821 supply_sprs64, supply_sprs32): Add REGCACHE parameter, use it
7822 instead of current_regcache.
7823 (fetch_regs_user_thread, fetch_regs_kernel_thread): Add
7824 REGCACHE parameter, pass it to supply_ routines.
7825 (aix_thread_fetch_registers): Pass current_regcache to
7826 fetch_regs_user_thread and fetch_regs_kernel_thread.
7828 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs64, fill_sprs32):
7829 Add REGCACHE parameter, use it instead of current_regcache.
7830 Call regcache_valid_p instead of register_cached.
7831 (store_regs_user_thread, store_regs_kernel_thread): Likewise.
7832 Also, pass REGCACHE to fill_ routines.
7833 (aix_thread_store_registers): Pass current_regcache to
7834 store_regs_user_thread and store_regs_kernel_thread.
7836 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7838 * m32r-linux-nat.c (supply_gregset): Do not modify contents
7839 pointed to by GREGSETP.
7841 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7843 * irix5-nat.c (fill_gregset): Use regcache_raw_collect instead
7844 of regcache_raw_read_signed.
7845 (fill_fpregset): Use regcache_raw_collect instead of
7848 2007-05-03 Kevin Buettner <kevinb@redhat.com>
7850 * mips-tdep.c (mips_eabi_push_dummy_call): When pushing floating
7851 point arguments, test explicitly for use of the EABI32 ABI
7852 instead of inferring this condition from tests on register
7855 2007-05-03 Kevin Buettner <kevinb@redhat.com>
7857 * breakpoint.c (set_raw_breakpoint): Adjust breakpoint's address
7858 prior to allocating its location.
7860 2007-05-02 Maciej W. Rozycki <macro@mips.com>
7862 * mips-tdep.c (mips_o32_push_dummy_call): Remove conditions
7863 based on mips_abi_regsize() whose result is known in advance.
7864 (mips_o64_push_dummy_call): Likewise.
7866 2007-04-29 Ulrich Weigand <uweigand@de.ibm.com>
7868 * m68klinux-nat.c: Remove #ifndef USE_PROC_FS check.
7869 * m68k-tdep.c: Remove code within #ifdef USE_PROC_FS.
7871 * mips-linux-nat.c: Include "gregset.h".
7872 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): Move
7873 from mips-linux-tdep.c. Change parameter type to gdb_gregset_t.
7874 * mips-linux-tdep.c (supply_gregset, fill_gregset, supply_fpregset,
7875 fill_fpregset): Move to mips-linux-nat.c.
7877 * Makefile.in (m68k-tdep.o, mips-linux-nat.o): Update dependencies.
7879 2007-04-28 Ulrich Weigand <uweigand@de.ibm.com>
7881 * regcache.c (deprecated_read_register_gen): Remove, inline ...
7882 (read_register): ... here.
7883 (deprecated_write_register_gen): Remove, inline ...
7884 (write_register): ... here.
7885 * regcache.h (deprecated_read_register_gen): Remove prototype.
7886 (deprecated_write_register_gen): Likewise.
7888 * remote-sim.c (gdbsim_store_register): Replace call to
7889 deprecated_read_register_gen with regcache_cooked_read.
7890 * target.c (debug_print_register): Replace calls to
7891 deprecated_read_register_gen and read_register with
7892 regcache_cooked_read.
7894 2007-04-28 Ulrich Weigand <uweigand@de.ibm.com>
7896 * hpux-thread.c (hpux_thread_store_registers): Use
7897 regcache_raw_collect, not regcache_raw_read.
7898 * irix5-nat.c (fetch_core_registers): Use regcache_raw_supply,
7899 not regcache_raw_write.
7901 2007-04-28 Ulrich Weigand <uweigand@de.ibm.com>
7903 * gdbarch.sh: Remove deprecated_register_byte.
7904 * gdbarch.c, gdbarch.h: Regenerate.
7905 * arch-utils.h (generic_register_size, generic_register_byte): Remove.
7906 * arch-utils.c (generic_register_size, generic_register_byte): Remove.
7908 * regcache.h (regcache_valid_p): Make REGCACHE parameter const.
7909 * regcache.c (regcache_valid_p): Allow to query cooked registers in
7910 read-only register caches. Make REGCACHE parameter const.
7911 (regcache_dump): Do not check DEPRECATED_REGISTER_BYTE.
7913 * mi/mi-main.c (old_regs): Remove.
7914 (mi_setup_architecture_data, _initialize_mi_main): Remove.
7915 (register_changed_p): Reimplement to compare two register caches.
7916 (mi_cmd_data_list_changed_registers): Update caller.
7917 * mi/mi-main.h (mi_setup_architecture_data): Remove.
7918 * mi/mi-interp.c (mi_interpreter_init): Do not call
7919 mi_setup_architecture_data.
7921 2007-04-28 Ulrich Weigand <uweigand@de.ibm.com>
7923 * alpha-nat.c (ALPHA_REGSET_BASE, ALPHA_REGSET_UNIQUE): Do not define,
7924 inline definition at the places the macros are used.
7925 * alpha-linux-nat.c (ALPHA_REGSET_BASE, ALPHA_REGSET_UNIQUE): Likewise.
7927 2007-04-28 Ulrich Weigand <uweigand@de.ibm.com>
7929 * rs6000-aix-tdep.c: Include "regcache.h", "regset.h", and
7931 (rs6000_aix32_reg_offsets, rs6000_aix64_reg_offsets): New variables.
7932 (rs6000_aix_supply_regset, rs6000_aix_collect_regset): New functions.
7933 (rs6000_aix32_regset, rs6000_aix64_regset): New variables.
7934 (rs6000_aix_regset_from_core_section): New function.
7935 (rs6000_aix_init_osabi): Register it.
7936 (_initialize_rs6000_aix_tdep): Register GDB_OSABI_AIX osabi and
7937 sniffer for bfd_arch_powerpc as well as bfd_arch_rs6000.
7938 * rs6000-nat.c (CoreRegs): Do not define type.
7939 (fetch_core_registers, rs6000_core_fns): Remove.
7940 (_initialize_core_rs6000): Do not register it. Rename to ...
7941 (_initialize_rs6000_nat): ... this.
7942 * Makefile.in (rs6000-aix-tdep.o): Update dependencies.
7944 2007-04-27 Kevin Buettner <kevinb@redhat.com>
7946 * dwarf2expr.c (unsigned_address_type): Add forward declaration.
7947 (dwarf2_read_address): Sign extend return address as required by
7948 target architecture.
7950 2007-04-27 Kevin Buettner <kevinb@redhat.com>
7952 * solib-frv.c (lm_base): Bail out if the main executable has
7955 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
7957 * alpha-linux-tdep.c (alpha_linux_supply_fpregset): Correct location
7958 of FPCR register in fpregset.
7960 2007-04-27 Maciej W. Rozycki <macro@mips.com>
7962 * Makefile.in (gdbtk-wrapper.o): Update dependencies.
7963 (gdbtk-varobj.o, gdbtk-cmds.o, gdbtk-stack.o): Likewise.
7965 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
7967 * config/rs6000/nm-rs6000.h (CHILD_SPECIAL_WAITSTATUS): Remove.
7968 * rs6000-nat.c (rs6000_wait): New function.
7969 (_initialize_core_rs6000): Install it as to_wait target method.
7970 * target.c (store_waitstatus): Don't check CHILD_SPECIAL_WAITSTATUS.
7972 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
7974 * config/rs6000/nm-rs6000.h (TARGET_CREATE_INFERIOR_HOOK): Remove.
7975 * fork-child.c (fork_inferior): Don't call TARGET_CREATE_INFERIOR_HOOK.
7976 * rs6000-nat.c (super_create_inferior): New variable.
7977 (rs6000_create_inferior): Make static. Adapt argument list. Call
7978 original version of create_inferior via super_create_inferior.
7979 (_initialize_core_rs6000): Install to_create_inferior target method.
7981 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
7983 * aix-thread.c (aix_thread_xfer_memory): Replace by ...
7984 (aix_thread_xfer_partial): ... this.
7985 (init_aix_thread_ops): Install to_xfer_partial instead
7986 of deprecated_xfer_memory target method.
7988 * config/powerpc/aix.mh (NATDEPFILES): Remove infptrace.o
7989 and inftarg.o, add inf-ptrace.o.
7990 * config/rs6000/nm-rs6000.h (FETCH_INFERIOR_REGISTERS,
7991 CHILD_XFER_MEMORY, KERNEL_U_SIZE, kernel_u_size): Remove.
7992 * rs6000-nat.c: Include "inf-ptrace.h" and "gdb_stdint.h".
7993 (fetch_inferior_registers): Rename to ...
7994 (rs6000_fetch_inferior_registers): ... this. Make static.
7995 (store_inferior_registers): Rename to ...
7996 (rs6000_store_inferior_registers): ... this. Make static.
7997 (read_word, child_xfer_memory): Remove.
7998 (rs6000_xfer_partial): New function.
7999 (kernel_u_size): Remove.
8000 (_initialize_core_rs6000): Add inf_ptrace-based target.
8001 * Makefile.in (rs6000-nat.o): Update dependencies.
8003 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
8005 * inf-ptrace.c: Include "gdb_stdint.h".
8006 (inf_ptrace_xfer_partial): Use "uintptr_t" instead of "long" as
8007 intermediate type when casting CORE_ADDR to PTRACE_TYPE_ARG3.
8008 (inf_ptrace_fetch_register): Add intermediate cast to "uintptr_t"
8009 before casting CORE_ADDR to PTRACE_TYPE_ARG3.
8010 (inf_ptrace_store_register): Likewise.
8011 * Makefile.in (inf-ptrace.o): Update dependencies.
8013 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
8015 * configure.host (rs6000-*-*): Merge with powerpc-*-aix* rules.
8016 * configure.tgt (rs6000-*-*): Likewise.
8017 * config/rs6000/aix4.mh: Delete file.
8018 * config/rs6000/aix4.mt: Delete file.
8019 * config/rs6000/rs6000.mh: Delete file.
8020 * config/rs6000/rs6000.mt: Delete file.
8022 * config/powerpc/nm-aix.h: Delete file.
8023 * config/powerpc/aix.mh (NAT_FILE): Set to config/rs6000/nm-rs6000.h.
8025 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
8027 * aix-thread.c (fill_sprs32): Change argument types to "uint32_t *".
8028 Remove obsolete part of comment.
8029 (store_regs_user_thread): Use uint32_t temporaries when calling
8031 (store_regs_kernel_thread): Likewise. Add assertion to verify
8032 correct size of struct ptsprs members.
8033 (aix_thread_xfer_memory): Fix type of myaddr.
8034 (aix_thread_extra_thread_info): Fix compiler warning.
8035 * rs6000-nat.c (rs6000_ptrace64): Change type of buf to "void *".
8036 (fetch_register, store_register): Adapt callers.
8038 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
8040 * vec.h (vec_free): Rename to vec_free_. Adapt users.
8042 2007-04-25 Ulrich Weigand <uweigand@de.ibm.com>
8044 * alpha-linux-tdep.c: Include "gdb_string.h", "regset.h",
8046 (alpha_linux_supply_gregset, alpha_linux_supply_fpregset): New.
8047 (alpha_linux_gregset, alpha_linux_fpregset): New variables.
8048 (alpha_linux_regset_from_core_section): New function.
8049 (alpha_linux_init_abi): Install it.
8050 * alpha-linux-nat.c: Do not include "gdbcore.h". Include
8051 "alpha-tdep.h", <sys/ptrace.h>, <alpha/ptrace.h>,
8052 <sys/procfs.h>, and "gregset.h".
8053 (ALPHA_REGSET_BASE, ALPHA_REGSET_UNIQUE, ALPHA_UNIQUE_PTRACE_ADDR):
8054 Move from config/alpha/nm-linux.h.
8055 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): Copy
8057 (alpha_linux_register_u_offset): Inline register_addr from alpha-nat.c.
8058 * alpha-nat.c: Remove #ifdef __linux__ section.
8059 (fetch_elf_core_registers, alpha_elf_core_fns): Remove.
8060 (_initialize_core_alpha): Do not register alpha_elf_core_fns.
8061 (ALPHA_UNIQUE_PTRACE_ADDR, ALPHA_REGSET_UNIQUE): Define unconditionally.
8062 (ALPHA_REGSET_BASE): Move from config/alpha/nm-osf.h.
8063 * config/alpha/alpha-linux.mh (NAT_FILE): Set to config/nm-linux.h.
8064 (NATDEPFILES): Remove alpha-nat.o.
8065 * config/alpha/nm-linux.h: Delete file.
8066 * config/alpha/nm-osf.h (ALPHA_REGSET_BASE): Move to alpha-nat.c.
8067 * Makefile.in (alpha-linux-nat.o): Update dependencies.
8068 (alpha-linux-tdep.o): Likewise.
8070 2007-04-25 Ulrich Weigand <uweigand@de.ibm.com>
8072 * mips-linux-nat.c: No longer include "gdbcore.h".
8073 (mips_linux_register_addr): Move from mips-linux-tdep.c.
8074 (mips64_linux_register_addr): Likewise.
8075 (mips_linux_register_u_offset): Call mips_linux_register_addr or
8076 mips64_linux_register_addr instead of register_addr.
8077 * mips-linux-tdep.c (mips_linux_register_addr,
8078 mips64_linux_register_addr): Move to mips-linux-nat.c.
8079 (register_addr): Remove.
8080 (register_addr_data, init_register_addr_data): Remove.
8081 (_initialize_mips_linux_tdep): Do not initialize register_addr_data.
8082 (set_mips_linux_register_addr): Remove.
8083 (mips_linux_init_abi): Do not call set_mips_linux_register_addr.
8084 * Makefile.in (mips-linux-nat.o): Update dependencies.
8086 2007-04-25 Ulrich Weigand <uweigand@de.ibm.com>
8088 * linux-nat.c (linux_register_u_offset): Remove.
8089 (linux_target_install_ops): New function.
8090 (linux_target): Use it.
8091 (linux_trad_target): New function.
8092 * linux-nat.h (linux_trad_target): Declare.
8094 * alpha-linux-nat.c: Include "gdbcore.h".
8095 (alpha_linux_register_u_offset): New function.
8096 (_initialize_alpha_linux_nat): Use linux_trad_target.
8098 * mips-linux-nat.c: Include "gdbcore.h".
8099 (mips_linux_register_u_offset): New function.
8100 (_initialize_mips_linux_nat): Use linux_trad_target.
8102 * config/arm/linux.mh (NAT_FILE): Set to config/nm-linux.h.
8103 * config/arm/nm-linux.h: Delete file.
8105 * config/i386/nm-linux64.h (FETCH_INFERIOR_REGISTERS): Remove.
8106 * config/i386/nm-linux.h (FETCH_INFERIOR_REGISTERS): Remove.
8108 * config/ia64/linux.mh (NAT_FILE): Set to config/nm-linux.h.
8109 * config/ia64/nm-linux.h: Delete file.
8111 * config/m32r/linux.mh (NAT_FILE): Set to config/nm-linux.h.
8112 * config/m32r/nm-linux.h: Delete file.
8114 * config/m68k/linux.mh (NAT_FILE): Set to config/nm-linux.h.
8115 * config/m68k/nm-linux.h: Delete file.
8117 * config/pa/linux.mh (NAT_FILE): Set to config/nm-linux.h.
8118 * config/pa/nm-linux.h: Delete file.
8120 * config/powerpc/linux.mh (NAT_FILE): Set to config/nm-linux.h.
8121 * config/powerpc/ppc64-linux.mh (NAT_FILE): Likewise.
8122 * config/powerpc/nm-linux.h: Delete file.
8124 * config/s390/s390.mh (NAT_FILE): Set to config/nm-linux.h.
8125 * config/s390/nm-linux.h: Delete file.
8127 * config/sparc/linux.mh (NAT_FILE): Set to config/nm-linux.h.
8128 * config/sparc/linux64.mh (NAT_FILE): Likewise.
8129 * config/sparc/nm-linux.h: Delete file.
8131 * Makefile.in (alpha-linux-nat.o): Update dependencies.
8132 (mips-linux-nat.o): Likewise.
8134 2007-04-25 Ulrich Weigand <uweigand@de.ibm.com>
8136 * core-aout.c: Delete file.
8137 * Makefile.in (ALLDEPFILES): Remove core-aout.c.
8138 (core-aout.o): Delete rule.
8139 * gdbcore.h (kernel_u_addr, KERNEL_U_ADDR): Remove.
8141 * config/alpha/nm-linux.h (U_REGS_OFFSET): Remove.
8143 * arm-linux-nat.c (arm_linux_kernel_u_size): Remove.
8144 * config/arm/nm-linux.h (U_REGS_OFFSET, KERNEL_U_SIZE,
8145 KERNEL_U_ADDR): Remove.
8147 * i386-linux-nat.c (register_u_addr, kernel_u_size): Remove.
8148 (cannot_fetch_register, cannot_store_register): Remove.
8149 (fetch_register): Inline cannot_fetch_register and register_addr.
8150 (store_register): Inline cannot_store_register and register_addr.
8151 * config/i386/linux.mh (NATDEPFILES): Remove core-aout.o.
8152 * config/i386/nm-linux.h (KERNEL_U_SIZE, KERNEL_U_ADDR,
8153 REGISTER_U_ADDR, CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER):
8156 * m68klinux-nat.c (m68k_linux_register_u_addr, kernel_u_size): Remove.
8157 (fetch_register): Inline register_addr.
8158 (store_register): Inline register_addr.
8159 * config/m68k/linux.mh (NATDEPFILES): Remove core-aout.o.
8160 * config/m68k/nm-linux.h (KERNEL_U_SIZE, KERNEL_U_ADDR,
8161 U_REGS_OFFSET, REGISTER_U_ADDR): Remove.
8163 * config/mips/nm-irix5.h (REGISTER_U_ADDR): Remove.
8164 * config/mips/nm-linux.h (KERNEL_U_SIZE, U_REGS_OFFSET,
8165 REGISTER_U_ADDR): Remove.
8167 * hppa-linux-nat.c (register_addr): Rename to ...
8168 (hppa_linux_register_addr): ... this. Make static.
8169 (fetch_register, store_register): Adapt callers.
8170 * config/pa/nm-linux.h (U_REGS_OFFSET): Remove.
8172 * ppc-linux-nat.c (kernel_u_size): Remove.
8173 * config/powerpc/nm-linux.h (KERNEL_U_SIZE, KERNEL_U_ADDR): Remove.
8175 * vax-nat.c (vax_kernel_u_addr, vax_register_u_addr): Make static.
8176 * config/vax/vax.mh (NATDEPFILES): Remove core-aout.o.
8178 * config/vax/nm-vax.h: Delete file.
8180 2007-04-20 Mark Shinwell <shinwell@codesourcery.com>
8182 * MAINTAINERS (Write After Approval): Add myself.
8184 2007-04-20 Mark Shinwell <shinwell@codesourcery.com>
8186 * Makefile.in: Adjust dependencies of m68klinux-tdep.c.
8187 * m68klinux-tdep.c (m68k_uclinux_sigcontext_reg_offset): New.
8188 (m68k_linux_sigcontext_reg_offset): Fix typo.
8189 (target_is_uclinux): New.
8190 (m68k_linux_inferior_created): New.
8191 (m68k_linux_get_sigtramp_info): Check for uClinux or
8192 normal Linux. Use m68k_uclinux_sigcontext_reg_offset for
8194 (_initialize_m68k_linux_tdep): Register
8195 m68k_linux_inferior_created.
8197 2007-04-19 Pedro Alves <pedro_alves@portugalmail.pt>
8199 * win32-nat.c (win32_detach): Remove delete_command call.
8200 Resume inferior with win32_resume instead of win32_continue.
8202 2007-04-19 Jerome Guitton <guitton@adacore.com>
8204 * ser-mingw.c (fd_is_file): New function.
8205 (file_select_thread): New function.
8206 (ser_console_wait_handle): Add special handling for files.
8208 2007-04-18 Denis Pilat <denis.pilat@st.com>
8210 * dwarf2read.c (read_subrange_type): Use DW_ATE_signed default type
8211 when missing from DW_TAG_subrange_type. Remove the handling of null
8212 return from die_type.
8214 2007-04-18 Maciej W. Rozycki <macro@mips.com>
8216 * mips-tdep.c (mips_eabi_push_dummy_call): Revert the last
8217 change to rearrange some brackets.
8218 (mips_n32n64_push_dummy_call): Likewise.
8219 (mips_o32_push_dummy_call): Likewise.
8220 (mips_o64_push_dummy_call): Likewise.
8222 2007-04-18 Denis Pilat <denis.pilat@st.com>
8224 * infcmd.c (post_create_inferior): Start with a call to
8225 target_terminal_ours.
8227 2007-04-17 Maciej W. Rozycki <macro@mips.com>
8229 * mips-tdep.c (mips_eabi_push_dummy_call): Rearrange some
8231 (mips_n32n64_push_dummy_call): Likewise. Reformat some
8233 (mips_o32_push_dummy_call): Likewise.
8234 (mips_o64_push_dummy_call): Likewise.
8236 2007-04-17 Maciej W. Rozycki <macro@mips.com>
8238 * mips-tdep.c (mips_n32n64_push_dummy_call): Fix a typo in a
8241 2007-04-17 Maciej W. Rozycki <macro@mips.com>
8243 * mips-tdep.c (mips_n32n64_push_dummy_call): Fix a typo in a
8245 (mips_o32_push_dummy_call): Likewise.
8247 2007-04-17 Andreas Schwab <schwab@suse.de>
8249 * symtab.c (skip_prologue_using_sal): Allow the end of the prologue
8250 sal to be bigger than the end of the function.
8252 2007-04-17 Maciej W. Rozycki <macro@mips.com>
8253 Nigel Stephens <nigel@mips.com>
8255 * mips-tdep.c (mips_o32_push_dummy_call): Take account of
8256 argument alignment requirements when calculating stack space
8257 required. When aligning an arg register to eight bytes
8258 boundary, align stack_offset too. Write floating-point
8259 arguments to the appropriate integer register if need go there.
8260 (mips_o64_push_dummy_call): Likewise.
8262 2007-04-14 Ulrich Weigand <uweigand@de.ibm.com>
8264 * gdbarch.sh (software_single_step): Remove "insert_breakpoints_p" and
8265 "sig" arguments, add "regcache" argument.
8266 * gdbarch.c, gdbarch.h: Regenerate.
8268 * infrun.c (resume): Update SOFTWARE_SINGLE_STEP call arguments.
8269 (handle_inferior_event): Call remove_single_step_breakpoints directly
8270 instead of calling SOFTWARE_SINGLE_STEP to remove breakpoints.
8272 * alpha-tdep.c (alpha_software_single_step): Update argument list.
8273 Remove handling of !insert_breakpoints_p case.
8274 * arm-tdep.c (arm_software_single_step): Likewise.
8275 * cris-tdep.c (cris_software_single_step): Likewise.
8276 * mips-tdep.c (mips_software_single_step): Likewise.
8277 * rs6000-tdep.c (rs6000_software_single_step): Likewise.
8278 * sparc-tdep.c (sparc_software_single_step): Likewise.
8279 * spu-tdep.c (spu_software_single_step): Likewise.
8281 * alpha-tdep.h (alpha_software_single_step): Update prototype.
8282 * mips-tdep.h (mips_software_single_step): Likewise.
8283 * rs6000-tdep.h (rs6000_software_single_step): Likewise.
8284 * sparc-tdep.h (sparc_software_single_step): Likewise.
8286 2007-04-14 Ulrich Weigand <uweigand@de.ibm.com>
8288 * alpha-tdep.c (alpha_software_single_step): Do not call write_pc
8289 when removing single-step breakpoints.
8291 2007-04-14 Vladimir Prus <vladimir@codesourcery.com>
8293 * varobj.h (varobj_set_frozen): New
8294 (varobj_get_frozen): New.
8295 (varobj_update): New parameter explicit.
8296 * varobj.c (struct varobj): New fields frozen
8298 (varobj_set_frozen, varobj_get_frozen): New.
8299 (install_new_value): Don't fetch values for
8300 frozen variable object, or children thereof. Allow
8301 a frozen variable object to have non-fetched value.
8302 (varobj_update): Allow updating child variables.
8303 Don't traverse frozen children.
8304 (new_variable): Initialize the frozen field.
8305 (c_value_of_variable): Return NULL for frozen
8306 variable without any value yet.
8307 * mi/mi-cmd-var.c (varobj_update_one): New parameter
8309 (mi_cmd_var_create): Output the 'frozen' field,
8310 as soon as testsuite is adjusted to expect that field.
8311 (mi_cmd_var_set_frozen): New.
8312 (mi_cmd_var_update): Pass the 'explicit' parameter to
8314 * mi/mi-cmds.c (mi_cmds): Register '-var-set-frozen'.
8315 * mi/mi-cmds.h (mi_cmd_var_set_frozen): Declare.
8317 2007-04-13 Paul Brook <paul@codesourcery.com>
8319 * target-descriptions.c (tdesc_named_type): Add ieee_single and
8321 * doc/gdb.texinfo: Document ieee_single and ieee_double target types.
8323 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
8325 * mips-mdebug-tdep.c, mips-mdebug-tdep.h, ocd.c, ocd.h, ppc-bdm.c,
8326 remote-e7000.c, remote-hms.c, remote-utils.c, remote-utils.h,
8327 scm-exp.c, scm-lang.c, scm-lang.h, scm-tags.h, scm-valprint.c,
8328 ser-e7kpc.c, sh3-rom.c, stop-gdb.c: Delete.
8329 * Makefile.in: Remove references to deleted files.
8330 * README: Do not mention deleted ROM monitor interfaces.
8331 * defs.h (enum language): Delete language_scm.
8332 * expprint.c (print_subexp_standard): Do not handle OP_EXPRSTRING.
8333 (dump_subexp_body_standard): Likewise.
8334 * parse.c (operator_length_standard): Likewise.
8335 * expression.h (enum exp_opcode): Delete OP_EXPRSTRING.
8336 * remote-mips.c: Do not include remote-utils.h.
8337 * remote-sim.c: Likewise. Use remote_debug instead of sr_get_debug
8339 * value.c: Do not include scm-lang.h.
8340 (unpack_long): Delete scm_unpack call.
8341 * config/h8300/h8300.mt, config/mips/embed.mt,
8342 config/powerpc/ppc-eabi.mt, config/powerpc/ppc-sim.mt,
8343 config/sh/embed.mt, config/sh/linux.mt: Remove references to
8345 * NEWS: Mention removed files.
8347 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
8349 * symfile.c (add_psymbol_with_dem_name_to_list): Remove.
8350 * symfile.h (add_psymbol_with_dem_name_to_list): Remove prototype.
8352 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
8354 * NEWS: Mention removal of HP aCC support.
8356 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
8358 * solib-svr4.c (IGNORE_FIRST_LINK_MAP_ENTRY): Do not ignore the
8359 first entry for static executables.
8360 (breakpoint_addr): Delete unused variable.
8361 (elf_locate_base): Search for _r_debug in static executables.
8362 (enable_break): Do not set breakpoint_addr. Scan solib_break_names
8365 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
8367 * breakpoint.c (update_breakpoints_after_exec, print_it_typical)
8368 (bpstat_what, print_one_breakpoint, allocate_bp_location)
8369 (mention): Remove bp_through_sigtramp support.
8370 * breakpoint.h (enum bptype): Remove bp_through_sigtramp.
8372 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
8374 * breakpoint.c (bpstat_what): Give step-resume higher priority than
8377 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
8379 * infrun.c: Doc fixes.
8380 (handle_inferior_event): Clarify debug message.
8381 (insert_step_resume_breakpoint_at_sal): Print a debug message.
8383 2007-04-12 Ulrich Weigand <uweigand@de.ibm.com>
8385 * configure.tgt (arm-*-nto*, sh-*-nto*): Remove.
8387 2007-04-12 Ulrich Weigand <uweigand@de.ibm.com>
8389 * config/m68k/tm-monitor.h: Delete file.
8390 * config/m68k/monitor.mt (DEPRECATED_TM_FILE): Remove.
8391 * m68k-tdep.c (m68k_gdbarch_init): set_gdbarch_decr_pc_after_break
8393 * m68kbsd-tdep.c (m68kbsd_init_abi): ... here and ...
8394 * m68klinux-tdep.c (m68k_linux_init_abi): ... here.
8396 2007-04-12 Luis Machado <luisgpm@br.ibm.com>
8398 * gdbarch.sh (software_single_step): Change the return type
8399 from void to int and reformatted some comments to <= 80
8401 * gdbarch.c, gdbarch.h: Regenerated.
8402 * alpha-tdep.c (alpha_software_single_step): Likewise.
8403 * alpha-tdep.h (alpha_software_single_step): Likewise.
8404 * arm-tdep.c (arm_software_single_step): Likewise.
8405 * cris-tdep.c (cris_software_single_step): Likewise.
8406 * mips-tdep.c (mips_software_single_step): Likewise.
8407 * mips-tdep.h (mips_software_single_step): Likewise.
8408 * rs6000-tdep.c (rs6000_software_single_step): Likewise.
8409 * rs6000-tdep.h (rs6000_software_single_step): Likewise.
8410 * sparc-tdep.c (sparc_software_single_step): Likewise.
8411 * sparc-tdep.h (sparc_software_single_step): Likewise.
8412 * spu-tdep.c (spu_software_single_step): Likewise.
8413 * infrun.c (resume): Check the return value from SOFTWARE_SINGLE_STEP
8414 and act accordingly.
8416 2007-04-11 Steve Ellcey <sje@cup.hp.com>
8418 * configure.ac (build_warnings): Add -Wno-char-subscripts.
8419 * configure: Regenerate.
8420 * doc/gdbint.texinfo (warning flags): Add -Wno-char-subscripts.
8422 2007-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
8424 * libunwind-frame.c (LIBUNWIND_SO): Use major version number for `.so'.
8426 2007-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
8428 * gdbtypes.h (TYPE_FLAG_STUB_SUPPORTED, TYPE_STUB_SUPPORTED): New
8430 (TYPE_IS_OPAQUE): Empty vs. opaque structures are now
8431 distinct on the TYPE_STUB_SUPPORTED debug targets.
8432 * dwarf2read.c (read_structure_type): Set TYPE_FLAG_STUB_SUPPORTED.
8434 2007-04-11 Joel Brobecker <brobecker@adacore.com>
8436 * sparc-tdep.c (X_RS2): New macro.
8437 (sparc_skip_stack_check): New function.
8438 (sparc_analyze_prologue): Adjust PC past stack probing
8439 sequence if necessary.
8441 2007-04-10 Andreas Schwab <schwab@suse.de>
8443 * rs6000-tdep.c (rs6000_dwarf2_reg_to_regnum): Decode 64 as CR
8446 2007-04-10 Daniel Jacobowitz <dan@codesourcery.com>
8448 * breakpoint.c (gdb_breakpoint_query): Really return an
8450 (gdb_breakpoint): Likewise.
8451 * thread.c (gdb_list_thread_ids): Likewise.
8452 (gdb_thread_select): Likewise.
8453 * mi/mi-main.c (mi_cmd_thread_select): Expect an enum gdb_rc.
8454 (mi_cmd_thread_list_ids): Remove bogus initialization.
8456 2007-04-10 Daniel Jacobowitz <dan@codesourcery.com>
8458 * Makefile.in (SFILES): Remove hpacc-abi.c.
8459 (COMMON_OBS): Remove hpacc-abi.o.
8460 (ALLDEPFILES): Remove hpread.c and $(HPREAD_SOURCE).
8461 (hpacc-abi.o, hpread.o): Delete rules.
8462 * somread.c: Delete extern declarations from hpread.c.
8463 (som_symfile_read): Do not call do_pxdb or hpread_build_psymtabs.
8464 (som_symfile_finish): Do not call hpread_symfile_finish.
8465 (som_symfile_init): Do not call hpread_symfile_init.
8466 * config/pa/hppa64.mt (TDEPFILES): Remove hpread.o.
8467 * config/pa/hppahpux.mt (TDEPFILES): Likewise.
8468 * hpacc-abi.c, hpread.c: Deleted.
8470 2007-04-10 Daniel Jacobowitz <dan@codesourcery.com>
8472 * solib-svr4.c (enable_break): Simplify return value.
8473 (svr4_solib_create_inferior_hook): Do not warn if enable_break fails.
8475 2007-04-10 Andreas Schwab <schwab@suse.de>
8477 * solib-svr4.h (struct link_map_offsets): Remove l_addr_size,
8478 l_ld_size, l_next_size, l_prev_size, l_name_size.
8480 * solib-svr4.c (LM_ADDR_FROM_LINK_MAP): Use extract_typed_address
8481 to extract addresses from link map.
8482 (LM_DYNAMIC_FROM_LINK_MAP): Likewise.
8483 (LM_NEXT): Likewise.
8484 (LM_NAME): Likewise.
8485 (IGNORE_FIRST_LINK_MAP_ENTRY): Likewise.
8486 (elf_locate_base): Likewise.
8487 (open_symbol_file_object): Likewise.
8488 (svr4_fetch_objfile_link_map): Likewise.
8489 (SOLIB_EXTRACT_ADDRESS): Remove unused macro.
8490 (HAS_LM_DYNAMIC_FROM_LINK_MAP): Test l_ld_offset instead of
8492 (svr4_ilp32_fetch_link_map_offsets): Don't set removed members.
8493 (svr4_lp64_fetch_link_map_offsets): Likewise.
8495 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets): Don't set
8496 removed members. Set l_ld_offset to -1 if not present.
8498 2007-04-08 Vladimir Prus <vladimir@codesourcery.com>
8500 Pass stderr of program run with "target remote |"
8502 * serial.c (serial_open): Set error_fd to -1.
8503 * serial.h (struct serial): New field error_fd.
8504 (struct serial_opts): New field avail.
8505 * ser-pipe.c (pipe_open): Create another pair
8506 of sockets. Pass stderr to gdb.
8507 * ser-mingw.c (pipe_windows_open): Pass
8508 PEX_STDERR_TO_PIPE to pex_run. Initialize
8511 (_initialize_ser_windows): Hook pipe_avail.
8512 * ser-base.c (generic_readchar): Check if there's
8513 anything in stderr channel and route that to gdb_stderr.
8515 2007-04-03 Pedro Alves <pedro_alves@portugalmail.pt>
8517 * dbxread.c (read_ofile_symtab): Move current_objfile
8518 clearing to after end_stabs.
8520 2007-04-01 Andreas Schwab <schwab@suse.de>
8522 * rs6000-tdep.c (rs6000_convert_from_func_ptr_addr): Use parameter
8523 gdbarch instead of current_gdbarch.
8525 2007-04-01 Vladimir Prus <vladimir@codesourcery.com>
8527 * varobj.c (varobj_create): Keep varobj value
8528 NULL when evaluating the type.
8530 2007-03-31 Pedro Alves <pedro_alves@portugalmail.pt>
8532 * NEWS: Mention new Windows CE support.
8534 2007-03-30 Pedro Alves <pedro_alves@portugalmail.pt>
8536 * configure.tgt: Move mips*-*-pe and sh*-*-pe to
8537 the obsoletion stanza.
8538 * NEWS: Mention deleted targets.
8540 * config/sh/tm-wince.h: Remove.
8541 * config/sh/wince.mt: Remove.
8542 * config/mips/tm-wince.h: Remove.
8543 * config/mips/wince.mt: Remove.
8546 * wince-stub.c: Remove.
8547 * wince-stub.h: Remove.
8548 * Makefile.in (wince.o): Remove rule.
8549 (wince-stub.o): Likewise.
8551 * mips-tdep.c (mips_next_pc): Make static.
8552 * mips-tdep.h (mips_next_pc): Remove declaration.
8553 * arm-tdep.c (arm_pc_is_thumb): Make static.
8554 (thumb_get_next_pc): Likewise.
8555 (arm_get_next_pc): Likewise.
8556 * arm-tdep.h (arm_pc_is_thumb_dummy): Remove declaration.
8557 (arm_pc_is_thumb): Likewise.
8558 (thumb_get_next_pc): Likewise.
8559 (arm_get_next_pc): Likewise.
8561 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
8563 * MAINTAINERS: Remove d10v entry.
8564 * Makefile.in (SFILES): Remove dwarfread.c.
8565 (COMMON_OBS): Remove dwarfread.o.
8566 (gdb_sim_d10v_h, abug-rom.o, cpu32bug-rom.o, d10v-tdep.o, dwarfread.o)
8567 (remote-est.o, rom68k-rom.o): Delete.
8568 * NEWS: Mention removal of d10v, target abug, target cpu32bug,
8569 target est, target rom68k, and DWARF 1.
8570 * configure.tgt: Mark d10v as removed.
8571 * dwarf2read.c: Doc update.
8572 * elfread.c (struct elfinfo): Remove dboffset, dbsize, lnoffset,
8574 (elf_locate_sections): Do not set them.
8575 (elf_symfile_read): Do not call dwarf_build_psymtabs.
8576 * symfile.h (dwarf_build_psymtabs): Delete prototype.
8577 * config/m68k/monitor.mt (TDEPFILES): Prune.
8578 * abug-rom.c, cpu32bug-rom.c, d10v-tdep.c, dwarfread.c,
8579 remote-est.c, rom68k-rom.c, config/d10v/d10v.mt: Delete.
8581 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
8583 * doublest.c (convert_floatformat_to_doublest): Use
8584 floatformat_classify.
8585 (floatformat_is_nan): Rename to...
8586 (floatformat_classify): ...this. Return more information.
8587 * doublest.h (enum float_kind): New.
8588 (floatformat_is_nan): Replace prototype...
8589 (floatformat_classify): ...with this one.
8590 * valprint.c (print_floating): Use floatformat_classify. Handle
8593 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
8595 * README: Mention ISO C library requirement.
8597 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
8599 * Makefile.in (SFILES): Remove nlmread.c.
8600 (COMMON_OBS): Remove nlmread.o.
8601 (nlmread.o): Delete rule.
8602 * README: Delete reference to remote-st.c.
8603 * acinclude.m4 (CY_AC_TCL_LYNX_POSIX): Delete.
8604 * defs.h (enum gdb_osabi): Delete GDB_OSABI_NETWARE and
8606 * i386-tdep.c (i386_nw_init_abi, i386_nlm_osabi_sniffer): Delete.
8607 (_initialize_i386_tdep): Do not reference them.
8608 * nlmread.c: Delete file.
8609 * osabi.c (gdb_osabi_names): Remove NetWare and LynxOS.
8610 * target.c: Doc update.
8611 * thread.c: Delete commented include.
8612 * config/alpha/tm-alpha.h: Doc update.
8614 2007-03-30 Chris Dearman <chris@mips.com>
8616 * utils.c (string_to_core_addr): Comment typo.
8618 2007-03-30 Chris Dearman <chris@mips.com>
8620 * mips-tdep.c: Comment typo.
8622 2007-03-29 Ulrich Weigand <uweigand@de.ibm.com>
8624 * config/alpha/nm-osf.h (PTRACE_XFER_TYPE): Remove.
8625 * config/mips/nm-linux.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Remove.
8626 * config/sparc/nm-linux.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Remove.
8627 * config/powerpc/nm-ppc64-linux.h: Remove file.
8628 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Set to nm-linux.h.
8629 * inferior.h (PTRACE_ARG3_TYPE): Do not define.
8630 (call_ptrace): Change type of third argument to PTRACE_TYPE_ARG3.
8631 * infptrace.c (call_ptrace): Likewise.
8632 * m68klinux-nat.c (PTRACE_XFER_TYPE): Do not define.
8633 (fetch_register): Replace PTRACE_ARG3_TYPE by PTRACE_TYPE_ARG3
8634 and PTRACE_XFER_TYPE by PTRACE_TYPE_RET.
8635 (store_register): Likewise.
8637 2007-03-29 Joel Brobecker <brobecker@adacore.com>
8639 * Makefile.in (varobj.o): Add missing dependency.
8641 2007-03-29 Michael Snyder <msnyder@access-company.com>
8643 * MAINTAINERS: Update my email address.
8645 2007-03-29 Joel Brobecker <brobecker@adacore.com>
8647 Add support for exception handling with multiple versions of
8649 * ada-lang.c: Update general comments on how Ada exception catchpoints
8651 (raise_sym_name, raise_unhandled_sym_name, raise_assert_sym_name)
8652 (__gnat_raise_nodefer_with_msg): Delete.
8653 (ada_unhandled_exception_name_addr_ftype): New type.
8654 (exception_support_info): New type.
8655 (ada_unhandled_exception_name_addr): Add forward declaration.
8656 (ada_unhandled_exception_name_addr_from_raise): Likewise.
8657 (default_exception_support_info): New constant.
8658 (exception_support_info_fallback): Likewise.
8659 (exception_info): New global variable.
8660 (ada_exception_support_info_sniffer): New function.
8661 (ada_executable_changed_observer): Likewise.
8662 (ada_unhandled_exception_name_addr_from_raise): Renamed from
8663 ada_unhandled_exception_name_addr.
8664 (ada_unhandled_exception_name_addr): Reimplement to match the
8665 latest Ada runtime implementation.
8666 (error_breakpoint_runtime_sym_not_found): Delete.
8667 (ada_exception_sym_name): Get the exception sym name from
8668 exception_info rather than hardcoding it.
8669 (ada_exception_sal): Add call to ada_exception_support_info_sniffer.
8670 Update error handling.
8671 * Makefile.in (ada-lang.o): Add dependency on observer.h.
8673 2007-03-29 Daniel Jacobowitz <dan@codesourcery.com>
8675 * Makefile.in (coff_solib_h, coff-solib.o, i386v-nat.o, lynx-nat.o)
8676 (remote-st.o, uw-thread.o): Delete.
8677 (HFILES_NO_SRCDIR, ALLDEPFILES): Update.
8678 * configure.host: Move hppa*-*-hiux*, i[34567]86-ncr-*,
8679 i[34567]86-*-dgux*, i[34567]86-*-lynxos*, i[34567]86-*-sco3.2v5*,
8680 i[34567]86-*-sco3.2v4*, i[34567]86-*-sco*, i[34567]86-*-sysv4.2*,
8681 i[34567]86-*-sysv4*, i[34567]86-*-sysv5*, i[34567]86-*-unixware2*,
8682 i[34567]86-*-unixware*, i[34567]86-*-sysv*, i[34567]86-*-isc*, and
8683 rs6000-*-lynxos* to an obsoletion stanza.
8684 * configure.tgt: Move hppa*-*-hiux*, i[34567]86-ncr-*,
8685 i[34567]86-*-lynxos*, m68*-cisco*-*, m68*-tandem-*, m68*-*-os68k*,
8686 and rs6000-*-lynxos* to an obsoletion stanza. Do not mention
8687 i[34567]86-*-netware*.
8688 * NEWS: Mention deleted targets.
8690 * coff-solib.c, coff-solib.h, i386v-nat.c, lynx-nat.c, remote-st.c,
8691 uw-thread.c, config/nm-lynx.h, config/i386/i386sco.mh,
8692 config/i386/i386sco4.mh, config/i386/i386sco5.mh, config/i386/i386v.mh,
8693 config/i386/i386v4.mh, config/i386/i386v42mp.mh,
8694 config/i386/ncr3000.mh, config/i386/ncr3000.mt,
8695 config/i386/nm-i386sco.h, config/i386/nm-i386sco4.h,
8696 config/i386/nm-i386sco5.h, config/i386/nm-i386v.h,
8697 config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h,
8698 config/m68k/cisco.mt, config/m68k/os68k.mt, config/m68k/st2000.mt,
8699 config/m68k/tm-cisco.h, config/m68k/tm-os68k.h,
8700 config/rs6000/rs6000lynx.mh, config/rs6000/rs6000lynx.mt,
8701 config/rs6000/tm-rs6000ly.h: Delete files.
8703 2007-03-29 Daniel Jacobowitz <dan@codesourcery.com>
8705 * defs.h (deprecated_registers_changed_hook): Delete declaration.
8706 * interps.c (clear_interpreter_hooks): Do not clear
8707 deprecated_registers_changed_hook.
8708 * regcache.c (registers_changed): Do not call it.
8709 * top.c (deprecated_registers_changed_hook): Do not define it.
8710 * mi/mi-interp.c (mi_command_loop): Do not clear it.
8711 * tui/tui-hooks.c (tui_install_hooks): Do not install it.
8712 (tui_remove_hooks): Do not remove it.
8713 (tui_selected_frame_level_changed_hook): Check for negative level.
8714 Use get_selected_frame.
8715 (tui_registers_changed_hook): Deleted.
8717 2007-03-29 Joel Brobecker <brobecker@adacore.com>
8719 * stabsread.c (add_undefined_type): Add extra parameter.
8720 Now handles nameless types separately.
8721 (struct nat): New type.
8722 (noname_undefs, noname_undefs_allocated, noname_undefs_length):
8723 New static variables.
8724 (read_type): Update calls to add_undefined_type.
8725 (add_undefined_type_noname): New function.
8726 (add_undefined_type_1): Renames from add_undefined_type.
8727 (cleanup_undefined_types_noname): New function.
8728 (cleanup_undefined_types_1): Renames cleanup_undefined_types.
8729 (cleanup_undefined_types): New handles nameless types separately.
8730 (_initialize_stabsread): Initialize our new static constants.
8732 2007-03-29 Denis Pilat <denis.pilat@st.com>
8734 * configure.ac: Test for signal.h.
8735 * configure, config.in: Regenerate.
8737 2007-03-29 Denis Pilat <denis.pilat@st.com>
8739 * stack.c (print_stack_frame): Always use LOC_AND_ADDRESS in MI output.
8740 * infrun.c (normal_stop): Remove MI specific frame printing treatment.
8742 2007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
8744 * arm-wince-tdep.c: New.
8745 * config/arm/wince.mt (DEPRECATED_TM_FILE): Use tm-arm.h.
8746 (MT_CFLAGS): Delete.
8748 (TDEPFILES): Add arm-wince-tdep.o, corelow.o, solib.o,
8749 solib-legacy.o, solib-svr4.o, and remove wince.o.
8750 * configure.tgt (arm*-*-mingw32ce*): Add.
8751 * signals/signals.c [HAVE_SIGNAL_H]: Check.
8752 (do_target_signal_to_host): Silence 'not used' warning.
8753 * config/arm/tm-wince.h: Remove.
8755 2007-03-28 Ulrich Weigand <uweigand@de.ibm.com>
8757 * arch-utils.c (legacy_pc_in_sigtramp): Remove.
8758 * arch-utils.h (legacy_pc_in_sigtramp): Remove.
8760 * config/ia64/linux.mt (DEPRECATED_TM_FILE): Remove.
8761 * config/ia64/tm-linux.h: Remove file.
8762 * ia64-tdep.h (struct gdbarch_tdep): Add pc_in_sigtramp callback.
8763 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Use it instead of
8764 legacy_pc_in_sigtramp.
8765 (ia64_gdbarch_init): Initialize tdep->pc_in_sigtramp.
8766 * ia64-linux-tdep.c (ia64_linux_pc_in_sigtramp): Make static.
8767 Remove func_name argument.
8768 (ia64_linux_init_abi): Install it as tdep->pc_in_sigtramp.
8770 * infrun.c (HAVE_STEPPABLE_WATCHPOINT): Do not redefine.
8771 * target.c (update_current_target): Add to_have_steppable_watchpoint.
8772 * target.h (struct target_ops): Add to_have_steppable_watchpoint.
8773 (HAVE_STEPPABLE_WATCHPOINT): Define.
8775 * config/ia64/linux.mh (NATDEPFILES): Remove core-aout.o.
8776 * config/ia64/nm-linux.h (KERNEL_U_ADDR, U_REGS_OFFSET,
8777 CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER,
8778 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_STEPPABLE_WATCHPOINT,
8779 STOPPED_BY_WATCHPOINT, target_stopped_data_address,
8780 target_insert_watchpoint, target_remove_watchpoint): Remove.
8781 (FETCH_INFERIOR_REGISTERS): Define.
8782 * ia64-linux-nat.c (ia64_register_addr): Make static.
8783 (ia64_cannot_fetch_register, ia64_cannot_store_register): Likewise.
8784 (ia64_linux_insert_watchpoint): Make static. Remove ptid_p argument.
8785 (ia64_linux_remove_watchpoint): Likewise. Add type argument.
8786 (ia64_linux_stopped_data_address): Make static. Add target_ops.
8787 (ia64_linux_stopped_by_watchpoint): Make static.
8788 (ia64_linux_can_use_hw_breakpoint): New function.
8789 (ia64_linux_fetch_register, ia64_linux_fetch_registers): Likewise.
8790 (ia64_linux_store_register, ia64_linux_store_registers): Likewise.
8791 (_initialize_ia64_linux_nat): Install register and watchpoint ops.
8793 2007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
8795 * linespec.c: Include language.h.
8796 (find_methods): Add language parameter. Call
8797 lookup_symbol_in_language. Pass language down.
8798 (add_matching_methods): Likewise. Call
8799 lookup_symbol_in_language.
8800 (add_constructors): Likewise.
8801 (find_method): Pass sym_class to collect_methods.
8802 (collect_methods): Add sym_class parameter. Pass language
8804 * symtab.c (lookup_symbol): Rename to ...
8805 (lookup_symbol_in_language): ... this. Add language
8806 parameter. Use passed language instead of current_language.
8807 (lookup_symbol): New as wrapper around
8808 lookup_symbol_in_language.
8809 (lookup_symbol_aux): Add language parameter. Use passed
8810 language instead of current_language.
8811 (search_symbols): Indent.
8812 * symtab.h (enum language): Forward declare.
8813 (lookup_symbol_in_language): Declare.
8814 (lookup_symbol): Update description.
8815 * ada-lang.h (lookup_symbol_in_language): Remove declaration.
8816 * ada-lang.c (restore_language): Remove.
8817 (lookup_symbol_in_language): Remove.
8819 2007-03-27 Pedro Alves <pedro_alves@portugalmail.pt>
8821 * breakpoint.c (bpstat_num): Add int *num parameter.
8822 * breakpoint.h (bpstat_num): Likewise.
8823 * infcmd.c (continue_command): Adjust to new bpstat_num
8825 (program_info): Likewise.
8827 2007-03-27 Ulrich Weigand <uweigand@de.ibm.com>
8829 * config/sh/tm-sh.h: Remove file.
8830 * config/sh/embed.mt (DEPRECATED_TM_FILE): Remove.
8831 * config/sh/linux.mt (DEPRECATED_TM_FILE): Remove.
8832 * config/sh/nbsd.mt (DEPRECATED_TM_FILE): Remove.
8833 * config/sh/tm-wince.h: Do not include "sh/tm-sh.h".
8835 2007-03-27 Ulrich Weigand <uweigand@de.ibm.com>
8837 * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT,
8838 DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Remove.
8839 * remote.c: Remove code under #ifdef DEPRECATED_REMOTE_BREAKPOINT,
8840 DEPRECATED_BIG_REMOTE_BREAKPOINT, DEPRECATED_LITTLE_REMOTE_BREAKPOINT.
8841 * sh-tdep.c (sh_breakpoint_from_pc): Return remote breakpoint
8842 sequence if target_shortname is "remote".
8844 2007-03-27 Anton Blanchard <anton@samba.org>
8846 * rs6000-tdep.c (rs6000_frame_cache): Use tdep->lr_frame_offset
8847 instead of wordsize when looking for the LR in a stack frame.
8849 2007-03-27 Andreas Schwab <schwab@suse.de>
8850 Daniel Jacobowitz <dan@codesourcery.com>
8852 * dwarf2-frame.c (dwarf2_frame_eh_frame_regnum): Rename to...
8853 (dwarf2_frame_adjust_regnum): ...this. Make static. Add eh_frame_p
8854 argument. Update all callers.
8855 (struct dwarf2_frame_ops): Replace eh_frame_regnum with adjust_regnum.
8856 (dwarf2_frame_set_eh_frame_regnum): Rename to...
8857 (dwarf2_frame_set_adjust_regnum): ...this. Update argument type.
8858 * dwarf2frame.h (dwarf2_frame_set_eh_frame_regnum): Rename to...
8859 (dwarf2_frame_set_adjust_regnum): ...this.
8860 (dwarf2_frame_eh_frame_regnum): Delete prototype.
8861 * rs6000-tdep.c: Include "dwarf2-frame.h".
8862 (rs6000_adjust_frame_regnum): Define.
8863 (rs6000_gdbarch_init): Enable use of DWARF CFI frame unwinder.
8864 Register rs6000_adjust_frame_regnum.
8866 * Makefile.in (rs6000-tdep.o): Update dependencies.
8868 2007-03-27 Brooks Moses <brooks.moses@codesourcery.com>
8870 * Makefile.in: Add support for a "pdf" target.
8872 2007-03-27 Daniel Jacobowitz <dan@codesourcery.com>
8874 * amd64-tdep.c (amd64_init_frame_cache): New function.
8875 (amd64_alloc_frame_cache, amd64_skip_prologue): Use it.
8877 2007-03-26 Nigel Stephens <nigel@mips.com>
8878 Maciej W. Rozycki <macro@mips.com>
8880 * ui-out.c (ui_out_field_core_addr): Truncate address to
8881 TARGET_ADDR_BIT size before printing.
8883 2007-03-22 Nigel Stephens <nigel@mips.com>
8884 Maciej W. Rozycki <macro@mips.com>
8886 * remote-mips.c (mips_xfer_memory): Update prototype.
8888 2007-03-22 Joel Brobecker <brobecker@adacore.com>
8890 * symfile.h: #include "symtab.h"
8892 2007-03-22 Denis Pilat <denis.pilat@st.com>
8894 * utils.c (pagination_on_command, pagination_off_command):
8895 Remove useless prototypes.
8897 2007-03-21 Pierre Muller <muller@ics.u-strasbg.fr>
8900 * p-valprint.c (pascal_object_print_value): Use type_name_no_tag
8901 instead of TYPE_NAME for object base class name.
8904 2007-03-19 Kevin Buettner <kevinb@redhat.com>
8906 * mep-tdep.c (mep_analyze_frame_prologue, mep_frame_this_id):
8907 Specify frame type in calls to frame_func_unwind().
8909 2007-03-13 Daniel Jacobowitz <dan@codesourcery.com>
8911 * rs6000-tdep.c (rs6000_skip_prologue): Use skip_prologue_using_sal.
8912 (rs6000_in_function_epilogue_p): Use extract_unsigned_integer.
8913 (refine_prologue_limit): Delete.
8914 (skip_prologue): Don't call it. Use extract_unsigned_integer.
8915 Assume lim_pc is set. Correct check for incomplete prologues.
8916 Do not skip clobbers of the frame pointer.
8917 * symtab.c (skip_prologue_using_sal): Fail if there is only one
8920 2007-03-13 Nathan Froyd <froydnj@codesourcery.com>
8922 * frame.c (frame_pop): Check to see whether there's a frame to
8923 which we can pop first.
8925 2007-03-13 Nathan Froyd <froydnj@codesourcery.com>
8927 * MAINTAINERS (Write After Approval): Add myself.
8929 2007-03-09 Markus Deuling <deuling@de.ibm.com>
8931 * infrun.c (breakpoints_failed): Remove unnecessary variable.
8932 (handle_inferior_event): Remove unnecessary braces.
8933 * breakpoint.c (bpstat_what): Remove wrong comment.
8935 2007-03-09 Ulrich Weigand <uweigand@de.ibm.com>
8937 * spu-tdep.c (spu_in_function_epilogue_p): New function.
8938 (spu_gdbarch_init): Install it.
8940 2007-03-08 Ulrich Weigand <uweigand@de.ibm.com>
8942 * spu-linux-nat.c (spu_xfer_partial): Return -1 for unsupported
8943 object types, not 0.
8945 2007-03-08 Ulrich Weigand <uweigand@de.ibm.com>
8947 * spu-tdep.c (spu_frame_align): New function.
8948 (spu_gdbarch_init): Install it. Set call dummy location to ON_STACK.
8950 2007-03-08 Ulrich Weigand <uweigand@de.ibm.com>
8952 * spu-tdep.c (spu_unwind_pc): Mask off interrupt enable bit.
8953 (spu_software_single_step): Likewise.
8954 (spu_read_pc, spu_write_pc): New functions.
8955 (spu_gdbarch_init): Install them.
8957 2007-03-08 Ulrich Weigand <uweigand@de.ibm.com>
8959 * cli/cli-dump.c (struct callback_data): load_offset needs to
8960 have signed long type.
8962 2007-03-07 Joel Brobecker <brobecker@adacore.com>
8964 * mips-tdep.c (mips_insn16_frame_cache, mips_insn32_frame_sniffer):
8965 Revert the previous change that had some unexpected side-effects
8967 (mips_insn16_frame_cache, mips_insn32_frame_cache): Use the proper
8968 function to get the address of the calling instruction.
8970 2007-03-07 Denis Pilat <denis.pilat@st.com>
8972 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Replace
8973 get_selected_frame by deprecated_safe_get_selected_frame.
8975 2007-03-02 Mark Kettenis <kettenis@gnu.org>
8977 * shnbsd-tdep.c: Include "regset.h", "gdb_assert.h" and
8978 "gdb_string.h". Don't include "nbsd-tdep.h".
8979 (SIZEOF_STRUCT_REG): Remove.
8980 (SHNBSD_SIZEOF_GREGS): New.
8981 (shnbsd_supply_gregset, shnbsd_collect_gregset)
8982 (shnbsd_regset_from_core_section): New functions.
8983 (fetch_core_registers, fetch_elfcore_registers): Remove functions.
8984 (shnbsd_supply_reg, shnbsd_fill_reg): Simply call
8985 shnbsd_supply_gregset, shnbsd_collect_gregset.
8986 (shnbsd_gregset): New variable.
8987 (shnbsd_init_abi): Set regset_from_core_section.
8988 (GDB_OSABI_NETBSD_CORE): New define.
8989 (shnbsd_core_osabi_sniffer): New function.
8990 (_initialize_shnbsd_tdep): Register shnbsd_core_osabi_sniffer.
8991 * Makefile.in (shnbsd-tdep.o): Update dependencies.
8992 * config/sh/nbsd.mt (TDEPFILES): Add corelow.o, remove
8994 * config/sh/obsd.mt (TDEPFILES): Remove nbsd-tdep.o.
8996 2007-02-28 Joel Brobecker <brobecker@adacore.com>
8998 * gdbtypes.c (replace_type): Fix typo that caused us to not update
8999 length of the types referenced by the new type CV ring.
9001 2007-02-28 Daniel Jacobowitz <dan@codesourcery.com>
9003 * frame.c (frame_pop, frame_observer_target_changed): Call
9005 (flush_cached_frames): Rename to reinit_frame_cache and delete
9007 * frame.h (flush_cached_frames): Delete prototype and update comment.
9009 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd): Call
9010 reinit_frame_cache instead of flush_cached_frames. Do not call
9011 select_frame after reinit_frame_cache.
9012 * corelow.c (core_open): Likewise.
9013 * gdbarch.sh (deprecated_current_gdbarch_select_hack): Likewise.
9014 * infrun.c (prepare_to_proceed, context_switch)
9015 (handle_inferior_event): Likewise.
9016 * linux-fork.c (fork_load_infrun_state): Likewise.
9017 * ocd.c (ocd_start_remote): Likewise.
9018 * remote-e7000.c (e7000_start_remote): Likewise.
9019 * remote-mips.c (device): Likewise.
9020 * thread.c (switch_to_thread): Likewise.
9021 * tracepoint.c (finish_tfind_command): Likewise.
9022 * gdbarch.c: Regenerated.
9024 2007-02-28 Jerome Guitton <guitton@adacore.com>
9025 Joel Brobecker <brobecker@adacore.com>
9027 * gdbtypes.c (check_typedef): Do not replace stub type if
9028 the resolved type is not defined in the same objfile.
9030 2007-02-28 Daniel Jacobowitz <dan@codesourcery.com>
9032 * top.c (gdb_readline_wrapper_cleanup): Remove invalid assertion.
9034 2007-02-28 Joel Brobecker <brobecker@adacore.com>
9036 * stabsread.c (define_symbol): Create an associated STRUCT_DOMAIN
9037 symbol for Ada units when the symbol is defined using 't' rather
9038 than 'Tt' as symbol descriptor.
9040 2007-02-28 Ulrich Weigand <uweigand@de.ibm.com>
9042 * config/mips/tm-nbsd.h: Delete file.
9043 * config/mips/nbsd.mt (DEPRECATED_TM_FILE): Remove.
9044 * config/sh/tm-nbsd.h: Delete file.
9045 * config/sh/nbsd.mt (DEPRECATED_TM_FILE): Set to tm-sh.h.
9047 2007-02-28 Joel Brobecker <brobecker@adacore.com>
9049 * mi/mi-cmd-var.c (varobj_update_one): Remove reference to
9050 unused WRONG_PARAM value since it was recently deleted.
9052 2007-02-28 Vladimir Prus <vladimir@codesourcery.com>
9054 * varobj.c (varobj_update): Free temporary vectors.
9056 2007-02-28 Ulrich Weigand <uweigand@de.ibm.com>
9058 * config/powerpc/linux.mt (DEPRECATED_TM_FILE): Set to tm-ppc-eabi.h.
9059 * config/powerpc/tm-linux.h: Delete file.
9060 * config/powerpc/tm-ppc-eabi.h: Do not include "rs6000/tm-rs6000.h".
9061 (PROCESS_LINENUMBER_HOOK): Do not undefine.
9062 (TEXT_SEGMENT_BASE): Do not redefine.
9063 * config/rs6000/nm-rs6000.h (CHILD_SPECIAL_WAITSTATUS): Move here
9064 from config/rs6000/tm-rs6000.h.
9065 (TARGET_CREATE_INFERIOR_HOOK, rs6000_create_inferior): Likewise.
9066 * config/rs6000/tm-rs6000.h (struct frame_info): Remove declaration.
9067 (TEXT_SEGMENT_BASE): Remove.
9068 (IN_SOLIB_RETURN_TRAMPOLINE): Remove.
9069 (rs6000_in_solib_return_trampoline): Remove.
9070 (SKIP_TRAMPOLINE_CODE): Remove.
9071 (rs6000_skip_trampoline_code): Remove.
9072 (CHILD_SPECIAL_WAITSTATUS): Move to config/rs6000/nm-rs6000.h.
9073 (TARGET_CREATE_INFERIOR_HOOK, rs6000_create_inferior): Likewise.
9074 (FP0_REGNUM): Remove.
9075 (rs6000_find_toc_address_hook): Move to rs6000-tdep.h.
9076 (rs6000_set_host_arch_hook): Remove.
9077 * Makefile.in (rs6000-nat.o): Add dependency on $(rs6000_tdep_h).
9078 (rs6000-aix-tdep.o): Add dependency on $(ppc_tdep_h).
9079 * ppc-tdep.h (struct gdbarch_tdep): Add field text_segment_base.
9080 * rs6000-aix-tdep.c: Include "ppc-tdep.h".
9081 (rs6000_aix_init_osabi): Set text_segment_base tdep field.
9082 * rs6000-nat.c: Include "rs6000-tdep.h".
9083 (exec_one_dummy_insn): Replace TEXT_SEGMENT_BASE by tdep field.
9084 (set_host_arch): Rename to ...
9085 (rs6000_create_inferior): ... this. Make public.
9086 (_initialize_core_rs6000): Do not set rs6000_set_host_arch_hook.
9087 * rs6000-tdep.c (rs6000_set_host_arch_hook): Remove.
9088 (rs6000_create_inferior): Remove.
9089 (branch_dest): Replace TEXT_SEGMENT_BASE by tdep field.
9090 (rs6000_gdbarch_init): Call set_gdbarch_fp0_regnum,
9091 set_gdbarch_in_solib_return_trampoline, and
9092 set_gdbarch_skip_trampoline_code.
9093 * rs6000-tdep.h (rs6000_find_toc_address_hook): Move here
9094 from config/rs6000/tm-rs6000.h.
9096 2007-02-27 Joel Brobecker <brobecker@adacore.com>
9098 * buildsym.c (record_producer): Do nothing if no producer is provided.
9100 2007-02-27 Nick Roberts <nickrob@snap.net.nz>
9102 * varobj.c (varobj_update): Remove unused local. Use gdb_assert
9103 to check changelist is non-NULL. Call error if the frontend tries
9104 to update a non-root variable.
9106 * varobj.h (enum varobj_update_error): Delete WRONG_PARAM value.
9108 2007-02-27 Daniel Jacobowitz <dan@codesourcery.com>
9110 * dwarf2-frame.c (dwarf2_frame_cache, dwarf2_frame_this_id)
9111 (dwarf2_frame_sniffer): Update.
9112 (dwarf2_signal_frame_this_id): New function.
9113 (dwarf2_signal_frame_unwind): Use it.
9114 (dwarf2_frame_base_sniffer): Use frame_unwind_address_in_block.
9115 * frame.c (frame_func_unwind): Add this_type argument.
9116 (get_frame_func): Update.
9117 (frame_unwind_address_in_block): Add this_type argument and check it.
9119 (get_frame_address_in_block): Update.
9120 * frame.h (enum frame_type): Move higher in the file.
9121 (frame_unwind_address_in_block, frame_func_unwind): Add enum frame_type
9124 * alpha-mdebug-tdep.c, alpha-tdep.c, amd64-tdep.c, amd64obsd-tdep.c,
9125 arm-tdep.c, avr-tdep.c, cris-tdep.c, frv-tdep.c, h8300-tdep.c,
9126 hppa-tdep.c, i386-tdep.c, i386obsd-tdep.c, ia64-tdep.c,
9127 libunwind-frame.c, m32c-tdep.c, m32r-linux-tdep.c, m32r-tdep.c,
9128 m68hc11-tdep.c, m68k-tdep.c, m88k-tdep.c, mips-mdebug-tdep.c,
9129 mips-tdep.c, mn10300-tdep.c, mt-tdep.c, rs6000-tdep.c, s390-tdep.c,
9130 score-tdep.c, sh-tdep.c, sh64-tdep.c, sparc-tdep.c,
9131 sparc64obsd-tdep.c, spu-tdep.c, v850-tdep.c, vax-tdep.c,
9132 xstormy16-tdep.c, xtensa-tdep.c: Update calls to
9133 frame_func_unwind and frame_unwind_address_in_block to specify
9134 the frame type. Use frame_unwind_address_in_block instead of
9135 frame_pc_unwind in sniffers.
9137 2007-02-27 Daniel Jacobowitz <dan@codesourcery.com>
9139 * frame.c (deprecated_selected_frame): Rename to...
9140 (selected_frame): ...this. Make static.
9141 (get_selected_frame, select_frame): Update.
9142 * frame.h (deprected_select_frame): Delete.
9143 (deprecated_safe_get_selected_frame): Update comments.
9145 * breakpoint.c, cli/cli-cmds.c, f-valprint.c, infcmd.c, inflow.c,
9146 infrun.c, stack.c, tui/tui-disasm.c, tui/tui-source.c,
9147 tui/tui-winsource.c, valops.c, varobj.c, findvar.c, macroscope.c,
9148 parse.c, regcache.h, sh64-tdep.c, tui/tui-hooks.c, tui/tui-win.c,
9149 tui/tui.c: Replace references to deprecated_selected_frame.
9151 2007-02-27 Fred Fish <fnf@specifix.com>
9153 * rs6000-tdep.c (skip_prologue): Recognize addi instructions that
9154 directly decrement the stack pointer, accumulate their operand into
9155 the stack offset, and mark the function as not being frameless.
9157 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
9159 * arch-utils.c (selected_byte_order): New.
9160 * arch-utils.h (selected_byte_order): New prototype.
9161 * remote-sim.c (gdbsim_open): Use selected_byte_order.
9163 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
9165 * symfile.c (place_section): Check SEC_ALLOC. Do not check VMA.
9166 (default_symfile_offsets): Check VMA here. Update section VMAs.
9168 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
9170 * remote.c (init_remote_state): Add special handling for placeholder
9173 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
9175 * Makefile.in (XMLFILES): Include $(TDEP_XML).
9176 (filenames_h): New variable.
9177 (clean): Clean up xml-builtin.c and stamp-xml.
9178 (arm-linux-nat.o): Update.
9179 * config/arm/linux.mh (TDEP_XML): Define.
9180 * arm-linux-nat.c (PTRACE_GETWMMXREGS, PTRACE_SETWMMXREGS): Define.
9181 (arm_linux_has_wmmx_registers): New.
9182 (GET_THREAD_ID): Fix typo.
9183 (IWMMXT_REGS_SIZE): Define.
9184 (fetch_wmmx_regs, store_wmmx_regs): New.
9185 (arm_linux_fetch_inferior_registers): Use fetch_wmmx_regs.
9186 (arm_linux_store_inferior_registers): Use store_wmmx_regs.
9187 (super_xfer_partial, arm_linux_xfer_partial): New.
9188 (_initialize_arm_linux_nat): Use them.
9189 * xml-support.c (fetch_xml_builtin): Move outside HAVE_LIBEXPAT.
9190 (xml_builtin_xfer_partial): New function.
9191 * xml-support.h (xml_builtin_xfer_partial): New prototype.
9192 * NEWS: Update mention of iWMMXt support.
9194 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
9196 * arm-tdep.c (arm_scan_prologue): Do not record FPA register saves
9197 if there are no FPA registers.
9198 (arm_dwarf_reg_to_regnum): New function.
9199 (arm_register_type, arm_register_name): Return minimal values for
9200 unsupported registers.
9201 (arm_register_sim_regno): Handle iWMMXt registers.
9202 (arm_gdbarch_init): Record missing FPA registers if indicated by
9203 a target description. Recognize iWMMXt registers. Only register
9204 "info float" for FPA. Use ARM_NUM_REGS. Register
9205 arm_dwarf_reg_to_regnum.
9206 * arm-tdep.h (enum gdb_regnum): Add ARM_NUM_REGS and iWMMXt
9208 (struct gdbarch_tdep): Add have_fpa_registers.
9209 * features/xscale-iwmmxt.xml: Update capitalization.
9210 * regformats/arm-with-iwmmxt.dat: Regenerated.
9212 2007-02-24 Kevin Buettner <kevinb@redhat.com>
9214 * NEWS (New targets): Add entry for the Toshiba Media Processor.
9216 2007-02-23 Kevin Buettner <kevinb@redhat.com>
9218 * MAINTAINERS (mep): New target.
9220 2007-02-23 Kevin Buettner <kevinb@redhat.com>
9222 From Jim Blandy, Dave Brolley, Kevin Buettner, Don Howard, and
9224 * Makefile.in (elf_mep_h, mep_desc_h, mep_opc_h): New variables.
9225 (mep-tdep.o): New rule.
9226 * configure.tgt (mep-*-*): New target.
9227 * mep-tdep.c: New file.
9228 * config/mep/mep.mt: New file.
9230 2007-02-22 Markus Deuling <deuling@de.ibm.com>
9232 * infrun.c (inferior_stop_reason, print_stop_reason): Remove
9233 BREAKPOINT_HIT and STOP_UNKNOWN.
9235 2007-02-22 Markus Deuling <deuling@de.ibm.com>
9237 * valops.c (value_ind): Fix unary * handling of TYPE_CODE_INT.
9239 2007-02-20 Joel Brobecker <brobecker@adacore.com>
9241 * gdb_expat.h (XMLCALL): Define if not already defined.
9243 2007-02-20 Andreas Schwab <schwab@suse.de>
9245 * Makefile.in (symfile.o): Update dependencies.
9247 2007-02-20 Daniel Jacobowitz <dan@codesourcery.com>
9249 * MAINTAINERS: Disable -Werror for cris simulator. Build
9250 sparc64-solaris2.10 instead of the broken sparc-elf.
9251 * solib-frv.c: Include "solib.h".
9252 * Makefile.in (solib-frv.o): Update.
9253 * mt-tdep.c (mt_gdbarch_init): Correct typo in floatformats patch.
9254 * xtensa-tdep.c (xtensa_regset_from_core_section): Cast size_t to int.
9255 (xtensa_frame_this_id, xtensa_frame_prev_register)
9256 (xtensa_push_dummy_call): Use %p.
9258 2007-02-16 Daniel Jacobowitz <dan@codesourcery.com>
9260 * avr-tdep.c, hppa-tdep.c, hppabsd-tdep.c, i386-tdep.c,
9261 ia64-tdep.c, m68k-tdep.c, mips-linux-tdep.c, ppcobsd-tdep.c,
9262 sparc-linux-tdep.c: Include "gdbtypes.h" instead of "floatformat.h".
9263 * Makefile.in (avr-tdep.o, hppabsd-tdep.o, hppa-tdep.o, i386-tdep.o)
9264 (ia64-tdep.o, m68k-tdep.o, mips-linux-tdep.o, ppcobsd-tdep.o)
9265 (sparc-linux-tdep.o): Update.
9267 2007-02-15 Maxim Grigoriev <maxim2405@gmail.com>
9269 * xtensa-tdep.h (xtensa_reg_mask_t): New.
9270 (xtensa_mask_t): Change mask field to be a separate array.
9271 * xtensa-tdep.c (extract_call_winsize, xtensa_pseudo_register_read)
9272 (xtensa_pseudo_register_write, xtensa_unwind_pc)
9273 (xtensa_unwind_dummy_id, xtensa_push_dummy_call)
9274 (xtensa_breakpoint_from_pc): Remove implicit type casting.
9275 * xtensa-config.c (mask0, mask1, mask2, mask3, mask4, mask5)
9276 (mask6, mask7, mask8, mask9, mask10, mask11, mask12, mask13)
9277 (mask14, mask15): Rename to
9278 (xtensa_mask0, xtensa_mask1, xtensa_mask2, xtensa_mask3)
9279 (xtensa_mask4, xtensa_mask5, xtensa_mask6, xtensa_mask7)
9280 (xtensa_mask8, xtensa_mask9, xtensa_mask10, xtensa_mask11)
9281 (xtensa_mask12, xtensa_mask13, xtensa_mask14, xtensa_mask15): this.
9282 (xtensa_submask0, xtensa_submask1, xtensa_submask2, xtensa_submask3)
9283 (xtensa_submask4, xtensa_submask5, xtensa_submask6, xtensa_submask7)
9284 (xtensa_submask8, xtensa_submask9, xtensa_submask10)
9285 (xtensa_submask11, xtensa_submask12, xtensa_submask13)
9286 (xtensa_submask14, xtensa_submask15): New.
9287 (rmap): Follow strict aliasing rules doing static initialization.
9289 2007-02-13 Daniel Jacobowitz <dan@codesourcery.com>
9291 * target-descriptions.c (tdesc_named_type): Move code_ptr and data_ptr
9292 handling from here...
9293 (tdesc_register_type): ...to here.
9294 * xml-tdesc.c (tdesc_start_reg): Allow code_ptr and data_ptr.
9295 * features/arm-core.xml: Use code_ptr and data_ptr.
9297 2007-02-13 Denis Pilat <denis.pilat@st.com>
9299 * varobj.h (enum varobj_update_error): New enum.
9300 * varobj.c (struct varobj_root): Add is_valid member.
9301 (varobj_get_type): Check for invalid varobj.
9302 (varobj_get_attributes): Likewise.
9303 (variable_editable):Likewise.
9304 (varobj_update): Likewise. Use varobj_update_error.
9305 (new_root_variable): Set root varobj as valid by default.
9306 (varobj_invalidate): New function.
9307 * symfile.c (clear_symtab_users): Use varobj_invalidate.
9308 * mi/mi-cmd-var.c (varobj_update_one): Change return type to void.
9309 Use varobj_update_error.
9311 2007-02-12 Pierre Muller <muller@ics.u-strasbg.fr>
9314 * dwarfread.c (set_cu_language): Recognize DW_LANG_Pascal83 as
9315 Pascal language marker.
9316 * dwarf2read.c (set_cu_language): Likewise.
9318 2007-02-12 Corinna Vinschen <vinschen@redhat.com>
9320 * win32-nat.c (win32_wait): Reset terminal pgrp to GDB.
9321 (do_initial_win32_stuff): Call terminal_init_inferior_with_pgrp
9322 instead of target_terminal_init since inferior_ptid isn't set yet.
9324 2007-02-10 Pedro Alves <pedro_alves@portugalmail.pt>
9326 * MAINTAINERS (Write After Approval): Add myself.
9328 2007-02-09 Fred Fish <fnf@specifix.com>
9330 Based on work by Apple Computer, Inc.
9331 * event-top.c (async_request_quit): Call quit() whenever either
9332 quit_flag is set or immediate_quit is set.
9334 2007-02-09 Gabriel Dos Reis <gdr@integrable-solutions.net>
9336 * ada-lang.c (remove_out_of_scope_renamings): Change third parameter's
9337 type to a pointer to const struct block.
9338 (ada_lookup_symbol_list): Don't cast away constness when calling
9339 remove_out_of_scope_renamings.
9341 2007-02-09 Gabriel Dos Reis <gdr@integrable-solutions.net>
9343 * linux-nat.c (linux_nat_find_memory_regions): Don't check the
9344 address of 'filename'; it is always non null.
9346 2007-02-09 Joel Brobecker <brobecker@adacore.com>
9348 * exec.c (add_to_section_table): Do not discard empty sections.
9350 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
9352 * features/Makefile, features/arm-with-iwmmxt.xml,
9353 features/gdbserver-regs.xsl, features/number-regs.xsl,
9354 features/sort-regs.xsl, features/xscale-iwmmxt.xml: New files.
9355 * regformats/arm-with-iwmmxt.dat: Generate.
9356 * NEWS: Mention iWMMXt.
9358 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
9360 * Makefile.in (arm-tdep.o, eval.o, target-descriptions.o)
9361 (xml-tdesc.o): Update.
9362 * xml-support.c: Add a comment.
9363 (gdb_xml_enums_boolean): New variable.
9364 (gdb_xml_parse_attr_enum): Use strcasecmp.
9365 * xml-support.h (gdb_xml_enums_boolean): Declare.
9366 * xml-tdesc.c (struct tdesc_parsing_data): Record current_feature,
9367 next_regnum, and current_union.
9368 (tdesc_start_feature, tdesc_start_reg, tdesc_start_union)
9369 (tdesc_end_union, tdesc_start_field, tdesc_start_vector)
9370 (field_attributes, union_children, reg_attributes, union_attributes)
9371 (vector_attributes, feature_attributes, feature_children): New.
9372 (target_children): Make static. Add <feature>.
9373 (tdesc_elements): Make static.
9374 * target-descriptions.c (struct tdesc_reg, tdesc_reg_p, type_p)
9375 (struct tdesc_feature, tdesc_feature_p): New types.
9376 (struct target_desc): Add features member.
9377 (struct tdesc_arch_data, tdesc_data): New.
9378 (target_find_description): Clarify error message. Warn about
9379 ignored register descriptions.
9380 (tdesc_has_registers, tdesc_find_feature, tdesc_feature_name)
9381 (tdesc_named_type, tdesc_data_init, tdesc_data_alloc)
9382 (tdesc_data_cleanup, tdesc_numbered_register)
9383 (tdesc_numbered_register_choices, tdesc_find_register)
9384 (tdesc_register_name, tdesc_register_type)
9385 (tdesc_remote_register_number, tdesc_register_reggroup_p)
9386 (set_tdesc_pseudo_register_name, set_tdesc_pseudo_register_type)
9387 (set_tdesc_pseudo_register_reggroup_p, tdesc_use_registers)
9388 (tdesc_free_reg, tdesc_create_reg, tdesc_free_feature)
9389 (tdesc_create_feature, tdesc_record_type): New.
9390 (free_target_description): Free features.
9391 (_initialize_target_descriptions): Initialize tdesc_data.
9392 * arch-utils.c (default_remote_register_number): New.
9393 * arch-utils.h (default_remote_register_number): New prototype.
9394 * target-descriptions.h (set_tdesc_pseudo_register_name)
9395 (set_tdesc_pseudo_register_type, set_tdesc_pseudo_register_reggroup_p)
9396 (tdesc_use_registers, tdesc_data_alloc, tdesc_data_cleanup)
9397 (tdesc_numbered_register, tdesc_numbered_register_choices)
9398 (tdesc_has_registers, tdesc_find_feature, tdesc_feature_name)
9399 (tdesc_named_type, tdesc_create_feature, tdesc_record_type)
9400 (tdesc_create_reg): Declare.
9401 * gdbarch.sh (remote_register_number): New entry.
9402 * gdbarch.c, gdbarch.h: Regenerate.
9403 * remote.c (init_remote_state): Use gdbarch_remote_register_number.
9404 * features/gdb-target.dtd: Add feature, reg, vector, union, and field.
9406 * arm-tdep.c (arm_register_aliases): New.
9407 (arm_register_name_strings): Rename to...
9408 (arm_register_names): ...this. Make const. Delete the old version.
9409 (current_option, arm_register_byte): Delete.
9410 (set_disassembly_style): Simplify. Do not adjust arm_register_names.
9411 (value_of_arm_user_reg): New.
9412 (arm_gdbarch_init): Verify any described registers. Call
9413 tdesc_use_registers. Don't use arm_register_byte. Create aliases
9414 for standard register names.
9415 (_initialize_arm_tdep): Do not adjust arm_register_names.
9416 * user-regs.c (struct user_reg): Add baton member.
9417 (append_user_reg, user_reg_add_builtin, user_regs_init)
9418 (user_reg_add, value_of_user_reg): Use a baton for user
9420 * std-regs.c: Update.
9421 * user-regs.h (user_reg_read_ftype, user_reg_add_builtin)
9422 (user_reg_add): Add baton argument.
9423 * NEWS: Mention target description register support.
9424 * features/arm-core.xml, features/arm-fpa.xml: New.
9425 * eval.c (evaluate_subexp_standard): Allow ptype $register
9426 when the program is not running.
9428 2007-02-09 Nick Roberts <nickrob@snap.net.nz>
9430 * mi/mi-cmd-var.c (mi_cmd_var_create): Add value field.
9432 2007-02-08 Thiago Jung Bauermann <bauerman@br.ibm.com>
9434 * rs6000-tdep.c (gdb_print_insn_powerpc): Set
9435 info->disassembler_options to "any".
9437 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
9439 * varobj.c (install_new_value): Only call value_get_print_value
9442 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
9444 Reported by timeless@gmail.com:
9445 * gdb/target.c (target_flash_erase): Do not return void value.
9446 (target_flash_done): Likewise.
9447 * gdb/cli/cli-cmds.c (source_command): Likewise.
9449 2007-02-08 Fred Fish <fnf@specifix.com>
9451 Based on work by Apple Computer, Inc.
9452 * event-top.c (handle_sigint): Set quit_flag.
9453 (async_request_quit): Don't set quit_flag. Avoid calling quit()
9454 if quit_flag has already been reset.
9456 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
9458 * ser-mingw.c (pipe_windows_close): Move variable initialization back
9461 2007-02-08 Fred Fish <fnf@specifix.com>
9463 * defs.h (request_quit): Remove declaration.
9464 * utils.c (request_quit): Remove definition.
9466 2007-02-08 Joel Brobecker <brobecker@gnat.com>
9467 Jan Kratochvil <jan.kratochvil@redhat.com>
9468 Daniel Jacobowitz <dan@codesourcery.com>
9470 * rs6000-tdep.c (bl_to_blrl_insn_p): New function.
9471 (skip_prologue): Allow bl->blrl used by PIC code.
9473 2007-02-08 Mark Kettenis <kettenis@gnu.org>
9474 Daniel Jacobowitz <dan@codesourcery.com>
9476 * cp-valprint.c (cp_print_value_fields, cp_print_value): Always
9477 initialize tmp_obstack.
9478 * p-valprint.c (pascal_object_print_value_fields)
9479 (pascal_object_print_value): Likewise.
9481 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
9483 * features/feature_to_c.sh: Use %s to avoid problems with nawk.
9485 2007-02-08 Mark Kettenis <kettenis@gnu.org>
9487 * sparcnbsd-tdep.c: Include "gdbtypes.h" instead of "floatformat.h".
9488 * Makefile.in (sparcnbsd-tdep.o): Update dependencies.
9490 2007-02-07 Daniel Jacobowitz <dan@codesourcery.com>
9492 * xml-tdesc.c (struct tdesc_xml_cache, tdesc_xml_cache_s)
9494 (tdesc_parse_xml): Cache expanded descriptions.
9496 2007-02-07 Daniel Jacobowitz <dan@codesourcery.com>
9498 * Makefile.in (XMLFILES): New.
9499 (COMMON_OBS): Add xml-builtin.o.
9500 (xml-builtin.c, stamp-xml): New rules.
9501 (xml-tdesc.o): Update.
9502 * features/feature_to_c.sh: New file.
9503 * xml-support.c (MAX_XINCLUDE_DEPTH): Define.
9504 (struct gdb_xml_parser): Add dtd_name and is_xinclude.
9505 (gdb_xml_start_element): Initialize scope after possibly reallocating
9506 scopes. Move cleanup later. Handle the XInclude description
9508 (gdb_xml_end_element): Only parse the body if there is a current element.
9509 Call XML_DefaultCurrent if there is no element.
9510 (gdb_xml_fetch_external_entity, gdb_xml_use_dtd): New.
9511 (struct xinclude_parsing_data, xinclude_start_include)
9512 (xinclude_end_include, xml_xinclude_default)
9513 (xml_xinclude_start_doctype, xml_xinclude_end_doctype)
9514 (xml_xinclude_xml_decl, xml_xinclude_cleanup, xinclude_attributes)
9515 (xinclude_elements, xml_process_xincludes, fetch_xml_builtin): New.
9516 * xml-support.h (xml_fetch_another, xml_process_xincludes)
9517 (fetch_xml_builtin, xml_builtin, gdb_xml_use_dtd): New declarations.
9518 * xml-tdesc.c (tdesc_parse_xml): Add fetcher_baton argument. Expand
9519 XInclude directives. Use the compiled in DTD.
9520 (fetch_xml_from_file): Add baton argument. Treat it as a containing
9521 directory name. Do not warn here.
9522 (file_read_description_xml): Update call. Warn here instead. Pass
9524 (fetch_available_features_from_target): New.
9525 (target_read_description_xml): Use it.
9526 * features/gdb-target.dtd: Add copyright notice. Use xinclude.dtd
9528 * features/xinclude.dtd: New file.
9530 2007-02-05 Daniel Jacobowitz <dan@codesourcery.com>
9532 * linux-thread-db.c (check_for_thread_db): Return early if we have
9533 no libthread_db support.
9535 2007-02-05 Daniel Jacobowitz <dan@codesourcery.com>
9537 * mi/mi-parse.h: Include <sys/time.h>.
9539 2007-02-05 Nick Roberts <nickrob@snap.net.nz>
9541 * mi/mi-cmd-stack.c (list_args_or_locals): Use common_val_print
9542 instead of print_variable_value to print values.
9544 2007-02-03 Nick Roberts <nickrob@snap.net.nz>
9546 * mi/mi-main.c: Numerous formatting changes.
9547 (mi_cmd_data_write_register_values): Replace clause inadvertantly
9548 removed in my previous change.
9550 2007-02-03 Eli Zaretskii <eliz@gnu.org>
9552 * mi/mi-main.c (mi_load_progress, timestamp, print_diff_now):
9553 Use 1000000L instead of 1000000.
9555 2007-02-03 Nick Roberts <nickrob@snap.net.nz>
9557 Based on work by Apple Computer, Inc.
9559 * configure.ac: Test for sys/resource.h and getrusage.
9560 * configure, config.in: Regenerate.
9562 * mi/mi-main.c: Include <sys/resource.h> if present.
9563 (rusage): Declare if HAVE_GETRUSAGE.
9564 (current_command_ts, do_timings): New static variables.
9565 (timestamp, print_diff_now, print_diff, timeval_diff):
9566 New static timing functions.
9567 (mi_cmd_enable_timings): New function for new MI command.
9568 (captured_mi_execute_command, mi_execute_async_cli_command):
9569 Call timing functions.
9571 * mi/mi-cmds.c (mi_cmds): Add entry for new MI command
9574 * mi/mi-cmds.h (mi_cmd_enable_timings): New extern.
9576 * mi/mi-parse.h: (mi_timestamp): New structure.
9577 (mi_parse): Add mi_timestamp* member.
9579 2007-02-02 Denis Pilat <denis.pilat@st.com>
9581 * thread.c (make_cleanup_restore_current_thread): New function.
9582 (info_threads_command): Use of make_cleanup_restore_current_thread
9583 to restore the current thread and the selected frame.
9584 (restore_selected_frame): New function.
9585 (struct current_thread_cleanup): Add frame_id field.
9586 (do_restore_current_thread_cleanup): Add restoring of the selected
9588 (make_cleanup_restore_current_thread): Likewise.
9589 (thread_apply_all_command): backup the selected frame while
9590 entering the function and restore it at exit.
9591 (thread_apply_command): Likewise.
9593 2007-02-02 Denis Pilat <denis.pilat@st.com>
9595 * MAINTAINERS (Write After Approval): Add myself to the list.
9597 2007-02-01 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
9599 * gdb/remote-m32r.sdi.c (m32r_fetch_register): Change PWD mask.
9600 (m32r_store_register): Ditto.
9602 2007-01-30 Vladimir Prus <vladimir@codesourcery.com>
9604 * ser-mingw.c (pipe_windows_open)
9605 (pipe_windows_read, pipe_windows_write): Declare
9606 variables at the top of the function.
9608 2007-01-29 Daniel Jacobowitz <dan@codesourcery.com>
9610 * doublest.c (floatformat_from_length): Use the right element from
9611 gdbarch floatformats.
9612 (floatformat_from_type, extract_typed_floating)
9613 (store_typed_floating): Likewise.
9614 * doublest.h: Remove declarations for undefined floatformat arrays.
9615 * gdbarch.sh (float_format, double_format, long_double_format): Change
9617 (pformat): Update for pairs.
9618 * gdbarch.c, gdbarch.h: Regenerated.
9619 * gdbtypes.c (floatformats_ieee_single, floatformats_ieee_double)
9620 (floatformats_ieee_double_littlebyte_bigword)
9621 (floatformats_i387_ext, floatformats_m68881_ext, floatformats_arm_ext)
9622 (floatformats_ia64_spill, floatformats_ia64_quad, floatformats_vax_f)
9623 (floatformats_vax_d): New variables.
9624 (builtin_type_ieee_single, builtin_type_ieee_double)
9625 (builtin_type_arm_ext, builtin_type_ia64_spill)
9626 (builtin_type_ia64_quad): Replace arrays with individual types.
9627 (builtin_type_ieee_single_big, builtin_type_ieee_single_little)
9628 (builtin_type_ieee_double_big, builtin_type_ieee_double_little)
9629 (builtin_type_ieee_double_littlebyte_bigword, builtin_type_i960_ext)
9630 (builtin_type_m88110_ext, builtin_type_m88110_harris_ext)
9631 (builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword)
9632 (builtin_type_ia64_spill_big, builtin_type_ia64_spill_little)
9633 (builtin_type_ia64_quad_big, builtin_type_ia64_quad_little): Delete
9634 unused and endian-specific types.
9635 (recursive_dump_type): Update for floatformat pairs.
9636 (build_flt): Move higher. Handle bit == -1. Take a floatformat pair.
9637 (build_gdbtypes): Use build_flt.
9638 (_initialize_gdbtypes): Update set of initialized types.
9639 * gdbtypes.h: Update declarations to match gdbtypes.c.
9640 (struct main_type): Store a pointer to two floatformats.
9641 * arch-utils.c (default_float_format, default_double_format): Delete.
9642 * arch-utils.h (default_float_format, default_double_format): Delete.
9644 * arm-tdep.c, avr-tdep.c, hppa-tdep.c, hppabsd-tdep.c, i386-tdep.c,
9645 ia64-tdep.c, iq2000-tdep.c, m68k-tdep.c, m88k-tdep.c,
9646 mips-linux-tdep.c, mips-tdep.c, mt-tdep.c, ppcobsd-tdep.c,
9647 sparc-linux-tdep.c, sparc-tdep.c, sparcnbsd-tdep.c, spu-tdep.c,
9648 vax-tdep.c, alpha-tdep.c, ppc-sysv-tdep.c: Update.
9650 2007-01-29 Joel Brobecker <brobecker@adacore.com>
9652 * target.c (maintenance_print_target_stack): New function.
9653 (initialize_targets): Add new "maintenance print target-stack"
9656 2007-01-28 Mark Kettenis <kettenis@gnu.org>
9658 * dwarf2read.c (new_symbol): Handle DW_AT_decl_file being zero.
9660 2007-01-27 Daniel Jacobowitz <dan@codesourcery.com>
9662 * dwarf2loc.h (struct dwarf2_locexpr_baton): Change size to a long.
9663 (struct dwarf2_loclist_baton): Likewise.
9665 2007-01-27 Eli Zaretskii <eliz@gnu.org>
9667 * cli/cli-script.c: Include breakpoint.h.
9668 (build_command_line): Require arguments only for if and while
9670 (get_command_line, execute_user_command, execute_control_command):
9671 Fix wording of warning messages.
9672 (print_command_lines): Print breakpoint commands.
9673 (execute_control_command): Call commands_from_control_command to
9674 handle the `commands' command inside a body of a flow-control
9676 (read_next_line): Recognize the `commands' command and build a
9677 command line structure for it.
9678 (recurse_read_control_structure, read_command_lines): Handle
9679 `commands' similarly to `if' and `while'.
9681 * breakpoint.c (get_number_trailer): Document the special meaning
9682 of NULL as the first argument PP.
9683 (commands_from_control_command): New function.
9685 * breakpoint.h (commands_from_control_command): Add prototype.
9687 * defs.h (commands_control): New enumerated value for enum
9688 command_control_type.
9690 2007-01-26 Joel Brobecker <brobecker@adacore.com>
9692 * ada-lang.c (ada_exception_breakpoint_ops): Fix typo in function name.
9693 (ada_exception_sal): Update accordingly.
9695 2007-01-26 Jan Kratochvil <jan.kratochvil@redhat.com>
9697 * c-valprint.c (c_val_print): Require strings to be of no-signed CHARs.
9698 * NEWS: Describe CHAR array vs. string identifcation rules.
9700 2007-01-25 Paul Brook <paul@codesourcery.com>
9702 * arm-tdep.c (arm_get_next_pc): Fix bitfield off-by-one error.
9704 2007-01-24 Jim Blandy <jimb@codesourcery.com>
9706 * dwarf2loc.c (dwarf2_evaluate_loc_desc): When the location
9707 expression is empty, bother to return the 'optimized out' value we
9708 construct. (Thanks to Carl Burch.)
9710 2007-01-24 Vladimir Prus <vladimir@codesourcery.com>
9712 * varobj.c (c_value_of_root, c_value_of_child)
9713 (cplus_describe_child): Don't call release_value.
9715 2007-01-24 Thiemo Seufer <ths@mips.com>
9717 * mips-linux-tdep.c (mips_linux_n64_rt_sigframe): Fix struct
9720 2007-01-24 Vladimir Prus <vladimir@codesourcery.com>
9722 Refactor getting children name, value and type access
9724 * varobj.c (get_type_deref): Remove.
9725 (adjust_value_for_child_access): New.
9726 (c_number_of_children): Use the above.
9727 (c_describe_child): Likewise.
9728 (enum accessibility): New.
9729 (match_accessibility): New function.
9730 (cplus_describe_child): New function.
9731 (cplus_name_of_child, cplus_value_of_child)
9732 (cplus_type_of_child): Reimplement in terms
9733 of cplus_describe_child.
9734 (cplus_number_of_children): Use
9735 adjust_value_for_child_access.
9737 2007-01-24 Vladimir Prus <vladimir@codesourcery.com>
9739 Fix computation of the 'editable' attribute and
9740 value changeability for for references.
9741 * varobj.c (get_value_type): New function.
9742 (c_variable_editable): Use get_value_type.
9743 (varobj_value_is_changeable): Likewise.
9745 2007-01-24 Joel Brobecker <brobecker@adacore.com>
9747 * source.c (find_and_open_source): Try rewriting the source
9748 path inside filename if dirname is NULL.
9750 2007-01-24 Joel Brobecker <brobecker@adacore.com>
9752 * dwarf2read.c (add_partial_symbol): Create an extra partial
9753 symbol in the VAR_DOMAIN for Ada structures, unions or enums.
9754 (new_symbol): Likewise for symbols.
9756 2007-01-24 Nick Roberts <nickrob@snap.net.nz>
9758 * mi/mi-main.c (mi_cmd_execute): Call free_all_values.
9760 2007-01-23 Vladimir Prus <vladimir@codesourcery.com>
9762 * value.c (value_primitive_field): Copy the full 'location'
9763 contents, instead of assuming that copying ADDRESS will
9764 bring over everything in the union. Remove obsolete comment.
9766 2007-01-23 Masaki Muranaka <monaka@monami-software.com>
9768 * m32c-tdep.c (make_regs, m32c_analyze_prologue)
9769 (m32c_skip_trampoline_code, m32c_m16c_address_to_pointer)
9770 (m32c_m16c_pointer_to_address): Separate code from declarations.
9772 2007-01-23 Nick Hudson <nick.hudson@dsl.pipex.com>
9774 * target.c (update_current_target): Correct typo.
9776 2007-01-22 Masaki Muranaka <monaka@monami-software.com>
9778 * xstormy16-tdep.c (xstormy16_skip_prologue): Separate code from a
9781 2007-01-11 Andrew Cagney <cagney@redhat.com>
9782 Daniel Jacobowitz <dan@codesourcery.com>
9783 Jan Kratochvil <jan.kratochvil@redhat.com>
9785 * dwarf2-frame.c (execute_cfa_program): New support of
9786 `DW_CFA_GNU_negative_offset_extended'.
9788 2007-01-21 Daniel Jacobowitz <dan@codesourcery.com>
9790 * NEWS: Mention flash support for "load" and new remote packets.
9792 2007-01-21 Markus Deuling <deuling@de.ibm.com>
9794 * breakpoint.c (delete_command): Skip redundant loop iterations.
9796 2007-01-21 Daniel Jacobowitz <dan@codesourcery.com>
9798 * gdbarch.sh (register_type): Update comment.
9799 * gdbarch.h: Regenerated.
9800 * arch-utils.c (generic_register_size): Call register_type.
9801 * ia64-tdep.c (ia64_extract_return_value): Likewise.
9802 * m32c-tdep.c (check_for_saved): Likewise.
9803 * mips-tdep.c (mips_print_register, print_gp_register_row)
9804 (mips_print_registers_info): Likewise.
9805 * sh-tdep.c (sh_pseudo_register_read, sh_pseudo_register_write):
9807 * sh64-tdep.c (sh64_pseudo_register_read, sh64_pseudo_register_write)
9808 (sh64_do_register, sh64_print_register)
9809 (sh64_media_print_registers_info): Likewise.
9810 * tui/tui-regs.c (tui_register_format): Likewise.
9812 2007-01-21 Daniel Jacobowitz <dan@codesourcery.com>
9814 * objfiles.h (ALL_PRIMARY_SYMTABS): Define.
9816 * ada-lang.c (symtab_for_sym, ada_lookup_symbol_list)
9817 (ada_lookup_symbol): Use ALL_PRIMARY_SYMTABS.
9818 * cp-support.c (make_symbol_overload_list_qualified): Likewise.
9819 * symtab.c (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
9820 (basic_lookup_transparent_type, find_pc_sect_symtab, search_symbols)
9821 (make_symbol_completion_list): Likewise.
9823 2007-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
9824 Daniel Jacobowitz <dan@codesourcery.com>
9826 * buildsym.c (end_symtab): Use preallocated symtab if available.
9827 Fill in SYMBOL_SYMTAB.
9828 * buildsym.h (struct subfile): Add symtab member.
9829 * dwarf2read.c (struct dwarf2_cu): Add line_header.
9830 (struct file_entry): Add symtab.
9831 (free_cu_line_header): New function.
9832 (read_file_scope): Use it. Save line_header in the cu. Process
9834 (add_file_name): Initialize new symtab member.
9835 (dwarf_decode_lines): Create symtabs for included files.
9836 (new_symbol): Set SYMBOL_SYMTAB.
9837 * symtab.c (lookup_symbol): Use SYMBOL_SYMTAB.
9838 (search_symbols): Likewise.
9839 * symtab.h (struct symbol): Add symtab member.
9840 (SYMBOL_SYMTAB): Define.
9842 2007-01-20 Daniel Jacobowitz <dan@codesourcery.com>
9844 * symfile.c (allocate_symtab): Remove INIT_EXTRA_SYMTAB_INFO.
9846 2007-01-20 Daniel Jacobowitz <dan@codesourcery.com>
9848 * arch-utils.c (show_endian): Correct reversed condition.
9850 2007-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
9852 * MAINTAINERS (Write After Approval): Add myself.
9854 2007-01-16 Daniel Jacobowitz <dan@codesourcery.com>
9855 Vladimir Prus <vladimir@codesourcery.com>
9857 Fix 'selected frame' varobjs.
9858 * varobj.c (struct varobj): Remove the error field.
9859 (varobj_set_value): Don't check var->error.
9860 (install_new_value): Don't set var->error.
9861 (varobj_update): Always pass the new value
9862 of the root via install_new_value.
9863 (create_child): Don't set error field.
9864 (new_variable): Likewise.
9865 (c_value_of_root): Always reevaluate the value
9866 of selected frame varobjs in the selected frame.
9867 Don't call reinit_frame_cache.
9869 2007-01-15 Joel Brobecker <brobecker@adacore.com>
9871 * source.c (_initialize_source): Improve the help text of
9872 the substitute-path commands.
9874 2007-01-14 Mark Kettenis <kettenis@gnu.org>
9876 * frv-tdep.c (frv_gdbarch_init, frv_register_name)
9877 (frv_breakpoint_from_pc, frv_gdbarch_adjust_breakpoint_address)
9878 (frv_skip_prologue): Remove prototypes.
9879 (frv_adjust_breakpoint_address): Renamed from
9880 frv_gdbarch_adjust_breakpoint_address.
9881 (frv_gdbarch_init): Adjust.
9883 2007-01-13 Mark Kettenis <kettenis@gnu.org>
9885 * gdbarch.sh (deprecated_extract_return_value)
9886 (deprecated_store_return_value): Remove.
9887 (extract_return_value, store_return_value): Remove default values.
9888 * gdbarch.c, gdbarch.h: Regenerate.
9889 * arch-utils.c, arch-utils.h (legacy_extract_return_value)
9890 (legacy_store_return_value): Remove.
9891 * regcache.c, regcache.h (deprecated_grub_regcache_for_registers):
9894 * mi/mi-main.c: Remove obsolete comment.
9896 * regcache.c, regcache.h (deprecated_register_bytes)
9897 (deprecated_read_register_bytes)
9898 (deprecated_write_register_bytes): Remove.
9900 * frame.c (get_frame_register_bytes, put_frame_register_bytes):
9901 Don't forget to move destination pointer.
9903 2007-01-01 Mark Kettenis <kettenis@gnu.org>
9905 * config/i386/nm-i386gnu.h (CHILD_PREPARE_TO_STORE): Remove.
9907 2007-01-11 Ulrich Weigand <uweigand@de.ibm.com>
9909 * spu-tdep.c (spu_analyze_prologue): Fix erroneous backtrace
9910 past entry function with recent newlib.
9912 2007-01-11 Vladimir Prus <vladimir@codesourcery.com>
9914 * gdb.texinfo (GDB/MI Variable Objects): Improve the
9915 introduction. Specify -var-update more exactly.
9917 2007-01-11 Daniel Jacobowitz <dan@codesourcery.com>
9919 * frame.c (get_prev_frame_1): Check PC_REGNUM before using it.
9921 2007-01-10 Jim Blandy <jimb@codesourcery.com>
9923 * MAINTAINERS (Global Maintainers): Ulrich Weigand has accepted
9924 the Global Maintainers' invitation to be a global maintainer.
9926 2007-01-10 Daniel Jacobowitz <dan@codesourcery.com>
9928 * infrun.c (singlestep_pc): New variable.
9929 (resume): Set singlestep_pc.
9930 (context_switch): Add a debugging message. Flush the frame cache.
9931 (handle_inferior_event): Add debugging messages. Handle thread
9932 hops when a software single step has completed. Let context_switch
9933 handle flushing the frame cache.
9935 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
9937 * NEWS: Mention target descriptions, "set tdesc filename",
9938 "unset tdesc filename", "show tdesc filename", and
9939 qXfer:features:read.
9940 * arch-utils.c (choose_architecture_for_target): New function.
9941 (gdbarch_info_fill): Call it.
9942 * target-descriptions.c (struct property): Make members non-const.
9943 (struct target_desc): Add arch member.
9944 (target_description_filename): New variable.
9945 (target_find_description): Try via XML first.
9946 (tdesc_architecture): New.
9947 (free_target_description, make_cleanup_free_target_description): New.
9948 (set_tdesc_property): Call xstrdup.
9949 (set_tdesc_architecture, tdesc_set_cmdlist, tdesc_show_cmdlist)
9950 (tdesc_unset_cmdlist, unset_tdesc_cmd, unset_tdesc_filename_cmd)
9951 (set_tdesc_cmd, show_tdesc_cmd, set_tdesc_filename_cmd)
9952 (show_tdesc_filename_cmd, _initialize_target_descriptions): New.
9953 * target-descriptions.h (tdesc_architecture)
9954 (make_cleanup_free_target_description, set_tdesc_architecture): New
9956 * Makefile.in (SFILES): Add xml-tdesc.c.
9957 (COMMON_OBS): Add xml-tdesc.o.
9958 (target-descriptions.o): Update.
9959 (xml-tdesc.o): New rule.
9960 * xml-tdesc.c, xml-tdesc.h: New files.
9961 * remote.c (PACKET_qXfer_features): New enum.
9962 (remote_protocol_features): Add qXfer:features:read.
9963 (remote_xfer_partial): Handle TARGET_OBJECT_AVAILABLE_FEATURES.
9964 (_initialize_remote): Register qXfer:features:read.
9965 * target.h (enum target_object): Add TARGET_OBJECT_AVAILABLE_FEATURES.
9966 * features/gdb-target.dtd: New file.
9968 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
9970 * copyright.sh: Clarify error.
9972 2007-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
9974 * symtab.c (matching_bfd_sections): Fix VMA matching for
9977 2007-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
9979 * minsyms.c (lookup_minimal_symbol_by_pc_section): Handle
9982 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
9984 Updated copyright notices for most files.
9986 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
9988 * copyright.sh (prunes): Add step-line.inp and step-line.c.
9990 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
9992 * configure.ac (DEBUGDIR_RELOCATABLE): Define for debugdir inside
9994 (TARGET_SYSTEM_ROOT_RELOCATABLE): Allow for exec_prefix being
9996 * configure, config.in: Regenerate.
9997 * defs.h (debug_file_directory): Declare.
9998 * main.c (captured_main): Canonicalize gdb_sysroot. Assume
9999 TARGET_SYSTEM_ROOT is defined. Initialize debug_file_directory and
10000 relocate it if DEBUGDIR_RELOCATABLE.
10001 * symfile.c (debug_file_directory): Make non-static.
10002 (find_separate_debug_file): Look for debug info for SYSROOT/PATH
10003 in DEBUGDIR/PATH if DEBUGDIR is inside SYSROOT.
10004 (_initialize_symfile): Don't initialize debug_file_directory here.
10006 2007-01-09 Jim Blandy <jimb@codesourcery.com>
10008 * score-tdep.c (score_push_dummy_call): Don't mix declarations and
10011 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
10013 * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Use
10014 frame_unwind_register to recurse.
10015 * alpha-tdep.c (alpha_sigtramp_frame_prev_register): Likewise.
10016 (alpha_heuristic_frame_prev_register): Likewise.
10017 * h8300-tdep.c (h8300_frame_prev_register): Likewise.
10018 * m32c-tdep.c (m32c_prev_register): Likewise.
10019 * frame.c (frame_register_unwind_location): Remove FIXME.
10021 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
10022 Eli Zaretskii <eliz@gnu.org>
10024 * copyright.sh: New file.
10026 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
10028 * configure.ac: Check for XML_StopParser.
10029 * xml-support.c (gdb_xml_body_text): Check for an error.
10030 (gdb_xml_start_element_wrapper): Conditionalize call to XML_StopParser.
10031 (gdb_xml_end_element_wrapper): Likewise.
10032 * config.in, configure: Regenerated.
10034 2007-01-08 Daniel Jacobowitz <dan@codesourcery.com>
10036 * varobj.c (install_new_value): Always update print_value.
10037 (value_get_print_value): Immediately return NULL for missing
10040 2007-01-08 Jim Blandy <jimb@codesourcery.com>
10042 * configure.ac: Tighten pattern for extracting value of
10043 DEPRECATED_TM_FILE from the target makefile fragment.
10044 * configure: Regenerated.
10046 2007-01-08 Daniel Jacobowitz <dan@codesourcery.com>
10048 * linux-nat.c (struct simple_pid_list): Add status.
10049 (add_to_pid_list): Record the PID's status.
10050 (linux_record_stopped_pid): Likewise. Make static.
10051 (pull_pid_from_list): Return the saved status.
10052 (linux_nat_handle_extended): Deleted.
10053 (linux_handle_extended_wait): Combine with linux_nat_handle_extended.
10054 Make static. Handle non-SIGSTOP for a new thread's first signal.
10055 (flush_callback): Handle unexpected pending signals.
10056 (linux_nat_wait): Update calls to changed functions.
10057 * linux-nat.h (linux_record_stopped_pid, linux_handle_extended_wait):
10058 Remove prototypes for newly static functions.
10060 2007-01-08 Ulrich Weigand <uweigand@de.ibm.com>
10062 * gdbarch.sh (value_from_register): New gdbarch function.
10063 * gdbarch.c, gdbarch.h: Regenerate.
10064 * findvar.c (default_value_from_register): New function.
10065 (value_from_register): Use gdbarch_value_from_register.
10066 * value.h (default_value_from_register): Declare.
10067 * spu-tdep.c (spu_convert_register_p, spu_register_to_value,
10068 spu_value_to_register): Remove.
10069 (spu_value_from_register): New function.
10070 (spu_gdbarch_init): Do not call set_gdbarch_convert_register_p,
10071 set_gdbarch_register_to_value, set_gdbarch_value_to_register.
10072 Call set_gdbarch_value_from_register.
10073 * s390-tdep.c (s390_convert_register_p, s390_register_to_value,
10074 s390_value_to_register): Remove.
10075 (s390_value_from_register): New function.
10076 (s390_gdbarch_init): Do not call set_gdbarch_convert_register_p,
10077 set_gdbarch_register_to_value, set_gdbarch_value_to_register.
10078 Call set_gdbarch_value_from_register.
10080 2007-01-08 Daniel Jacobowitz <dan@codesourcery.com>
10082 * NEWS: Add "set sysroot" and "show sysroot".
10083 * solib.c (solib_absolute_prefix): Delete. Replace
10084 all uses with gdb_sysroot.
10085 (_initialize_solib): Add "set sysroot" and "show sysroot".
10086 Make "solib-absolute-prefix" an alias to it.
10088 2007-01-08 Ulrich Weigand <uweigand@de.ibm.com>
10090 * frame.c (get_frame_register_bytes): New function.
10091 (put_frame_register_bytes): Likewise.
10092 * frame.h (get_frame_register_bytes): Declare.
10093 (put_frame_register_bytes): Likewise.
10094 * findvar.c (value_from_register): Always construct lval_register
10095 values. Use get_frame_register_bytes.
10096 * valops.c (value_assign): Use get_frame_register_bytes and
10097 put_frame_register_bytes.
10099 2007-01-08 Jim Blandy <jimb@codesourcery.com>
10101 * MAINTAINERS: Update Stan Shebs' email address.
10103 2007-01-07 Joel Brobecker <brobecker@adacore.com>
10105 * ada-lang.c (is_known_support_routine): Improve the implementation.
10107 2007-01-06 Joel Brobecker <brobecker@adacore.com>
10109 * ada-lang.c: Add include of source.h.
10110 (is_known_support_routine): Improve the check verifying that the file
10111 associated to this frame exists.
10112 * Makefile.in (ada-lang.o): Add dependency on source.h.
10114 2007-01-07 Jim Blandy <jimb@codesourcery.com>
10116 * ax-general.c (ax_const_l): Select proper opcode for the given
10119 2007-01-05 Vladimir Prus <vladimir@codesourcery.com>
10121 * varobj.c (c_value_of_root): Don't select frame if variable
10122 object is out of scope.
10124 2007-01-05 Nick Roberts <nickrob@snap.net.nz>
10126 * varobj.c (struct varobj): New member print_value.
10127 (install_new_value): Compare last printed value with current one
10128 instead of contents.
10129 (new_variable): Initialize var->print_value to NULL.
10130 (free_variable): Free var->print_value.
10131 (value_get_print_value): New function derived from
10132 c_value_of_variable.
10133 (c_value_of_variable): Use value_get_print_value.
10135 2007-01-05 Joel Brobecker <brobecker@adacore.com>
10137 * i386-tdep.c (i386_analyze_stack_align): Add comment.
10139 2007-01-05 Joel Brobecker <brobecker@adacore.com>
10141 * NEWS: Add entries for new catch commands.
10143 2007-01-05 Joel Brobecker <brobecker@adacore.com>
10145 * dwarf2read.c (partial_die_info): Add field has_byte_size.
10146 (add_partial_symbol): Correct identification of external references.
10147 (process_structure_scope): Likewise.
10148 (read_partial_die): Handle DW_AT_byte_size attribute.
10150 2007-01-05 Daniel Jacobowitz <dan@codesourcery.com>
10152 * xml-support.c (gdb_xml_end_element): Remove wrong backslashes.
10154 2007-01-05 Nick Roberts <nickrob@snap.net.nz>
10156 * varobj.c (get_type_deref): Fix variable objects for references to
10159 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
10161 * symtab.c (find_pc_sect_psymtab): Add comments. Handle psymtabs
10164 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
10166 * memory-map.c (struct_memory_map_parsing_data): Remove most
10167 members. Make property_name an array.
10168 (free_memory_map_parsing_data, memory_map_start_element)
10169 (memory_map_end_element, memory_map_character_data): Delete.
10170 (memory_map_start_memory, memory_map_end_memory)
10171 (memory_map_start_property, memory_map_end_property): New functions.
10172 (property_attributes, memory_children, memory_type_enum)
10173 (memory_attributes, memory_map_children, memory_map_elements): New.
10174 (parse_memory_map): Rewrite.
10175 * xml-support.c (debug_xml): New.
10176 (xml_get_required_attribute, xml_get_integer_attribute)
10177 (xml_get_enum_value, free_xml_parser, make_cleanup_free_xml_parser):
10179 (struct scope_level, struct gdb_xml_parser, gdb_xml_body_text)
10180 (gdb_xml_debug, gdb_xml_error, gdb_xml_values_cleanup)
10181 (gdb_xml_start_element, gdb_xml_start_element_wrapper)
10182 (gdb_xml_end_element, gdb_xml_end_element_wrapper, gdb_xml_cleanup)
10183 (gdb_xml_create_parser_and_cleanup, gdb_xml_parse)
10184 (gdb_xml_parse_ulongest, gdb_xml_parse_attr_ulongest)
10185 (gdb_xml_parse_attr_enum, show_debug_xml, _initialize_xml_support):
10187 * xml-support.h (struct gdb_xml_value, gdb_xml_attribute_handler)
10188 (enum gdb_xml_attribute_flag, struct gdb_xml_attribute)
10189 (enum gdb_xml_element_flag, struct gdb_xml_element)
10190 (gdb_xml_element_start_handler, gdb_xml_element_end_handler)
10191 (struct gdb_xml_enum): New.
10192 (gdb_xml_create_parser_and_cleanup, gdb_xml_parse, gdb_xml_debug)
10193 (gdb_xml_error, gdb_xml_parse_attr_ulongest)
10194 (gdb_xml_parse_attr_enum, gdb_xml_parse_ulongest): New prototypes.
10195 (xml_get_required_attribute, xml_get_integer_attribute)
10196 (xml_get_enum_value, make_cleanup_free_xml_parser): Delete prototypes.
10197 * Makefile.in (xml_support_h, xml-support.o): Update.
10199 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
10201 * Makefile.in (eval.o): Update dependencies.
10202 * eval.c: Include "ui-out.h" and "exceptions.h".
10203 (evaluate_subexp_standard): Use TRY_CATCH around value_of_variable.
10204 Use value_zero if an error occurs when avoiding side effects.
10205 * varobj.c (c_value_of_root): Initialize new_val.
10207 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
10209 * varobj.c (varobj_list_children): Stop if the number of children is
10211 (c_number_of_children):
10213 2007-01-04 Mark Kettenis <kettenis@gnu.org>
10215 * alpha-tdep.c (alpha_register_name): Use ARRAY_SIZE.
10216 (alpha_read_insn, alpha_skip_prologue, alpha_heuristic_proc_start)
10217 (alpha_heuristic_frame_unwind_cache, alpha_next_pc)
10218 (alpha_gdbarch_init): Use ALPHA_INSN_SIZE, ALPHA_REGISTER_SIZE and
10219 sizeof, instead of hardcoded constants.
10221 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
10223 * CONTRIBUTE: Use sourceware.org.
10225 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
10227 * buildsym.c (start_subfile): Handle producer.
10228 (record_producer): New function.
10229 * buildsym.h (struct subfile): Include producer.
10230 (record_producer): New prototype.
10231 * dwarf2-frame.c (struct dwarf2_cie): Add version and augmentation.
10232 (struct dwarf2_frame_state): Add armcc_cfa_offsets_sf and
10233 armcc_cfa_offsets_reversed.
10234 (execute_cfa_program): Handle armcc_cfa_offsets_sf.
10235 (dwarf2_frame_find_quirks): New function.
10236 (dwarf2_frame_cache): Call it. Handle armcc_cfa_offsets_reversed.
10237 (decode_frame_entry_1): Record the CIE version. Record the
10238 augmentation. Skip armcc augmentations.
10239 * dwarf2read.c (read_file_scope): Save the producer.
10240 * symtab.h (struct symtab): Rename unused version member to
10243 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
10245 * configure.ac (build_warnings): Use -Wall and
10246 -Wdeclaration-after-statement.
10247 * configure: Regenerated.
10249 2007-01-04 Vladimir Prus <vladimir@codesourcery.com>
10251 Simplify access to variours properties of child
10252 variable objects in C.
10253 * varobj.c (value_struct_element_index): New function.
10254 (c_describe_child): New function.
10255 (c_name_of_child, c_value_of_child)
10256 (c_type_of_child): Rewrite to use c_describe_child.
10258 2007-01-04 Vladimir Prus <vladimir@codesourcery.com>
10261 * varobj.c: Include "vec.h".
10262 (varobj_p): New typedef, declare vector of those.
10263 (struct varobj): Use vector for the 'children' member.
10264 (child_exists): Remove.
10265 (save_child_in_parent): Remove.
10266 (remove_child_from_parent): Remove.
10267 (struct varobj_child): Remove.
10268 (struct vstack): Remove.
10269 (vpush, vpop): Remove.
10270 (varobj_list_children): Adjust to work work vector.
10271 (varobj_update): Likewise. Use vectors for
10272 working stack and result.
10273 (delete_variable_1): Likewise.
10274 * Makefile.in (varobj.o): Update dependencies.
10276 2007-01-04 Vladimir Prus <vladimir@codesourcery.com>
10278 Port from Apple's version.
10280 * varobj.c (type_changeable): Rename to...
10281 (varobj_value_is_changeable_p): ...this. Adjust all callers.
10282 (is_root_p): New function. Use it everywhere.
10284 2007-01-04 Jim Blandy <jimb@codesourcery.com>
10286 * glibc-tdep.c (glibc_skip_solib_resolver): Look for '_dl_fixup',
10287 then plain 'fixup'.
10289 2007-01-04 Joel Brobecker <brobecker@adacore.com>
10291 * hpread.c (hpread_start_psymtab): Remove unnecessary extern.
10293 2007-01-04 Joel Brobecker <brobecker@adacore.com>
10295 * hpread.c (hpread_type_lookup): Fix compilation failure.
10297 2007-01-04 Qinwei <qinwei@sunnorth.com.cn>
10299 * NEWS: New port to S+core.
10300 * MAINTAINERS (Write After Approval, Responsible Maintainers):
10303 * Makefile.in: Add dependencies for S+core files.
10304 * configure.tgt (score*, score-*-*): Add S+core target.
10305 * config/score/embed.mt: New file.
10306 * score-tdep.c: New file.
10307 * score-tdep.h: New file.
10309 2007-01-04 Joel Brobecker <brobecker@adacore.com>
10311 * ada-lang.c (ada_evaluate_subexp) [OP_TYPE]: Return a value with
10312 the appropriate type rather than a bogus void type.
10314 2007-01-04 Joel Brobecker <brobecker@adacore.com>
10316 * ada-lang.h (ada_find_printable_frame): Remove.
10317 (ada_exception_catchpoint_p, ada_decode_exception_location)
10318 (ada_decode_assert_location): Add declaration.
10319 * ada-lang.c: Add include of annotate.h and valprint.h.
10320 (exception_catchpoint_kind): New enum.
10321 (function_name_from_pc, is_known_support_routine)
10322 (ada_find_printable_frame, ada_unhandled_exception_name_addr)
10323 (ada_exception_name_addr_1, ada_exception_name_addr)
10324 (print_it_exception, print_one_exception, print_mention_exception)
10325 (print_it_catch_exception, print_one_catch_exception)
10326 (print_mention_catch_exception, catch_exception_breakpoint_ops)
10327 (print_it_catch_exception_unhandled)
10328 (print_one_catch_exception_unhandled)
10329 (print_mention_catch_exception_unhandled, print_it_catch_assert)
10330 (print_one_catch_assert, print_mention_catch_assert)
10331 (ada_exception_catchpoint_p, error_breakpoint_runtime_sym_not_found)
10332 (ada_get_next_arg, catch_ada_exception_command_split)
10333 (ada_exception_sym_name, ada_exception_sym_name)
10334 (ada_exception_breakption_ops, ada_exception_catchpoint_cond_string)
10335 (ada_parse_catchpoint_condition, ada_exception_sal)
10336 (ada_decode_exception_location)
10337 (ada_decode_assert_location): New function.
10338 (catch_exception_unhandled_breakpoint_ops): New global variable.
10339 (catch_assert_breakpoint_ops): New global variable.
10340 * breakpoint.c: Add include of ada-lang.h.
10341 (print_one_breakpoint): Do not print the condition for Ada
10342 exception catchpoints.
10343 (create_ada_exception_breakpoint): New function.
10344 (catch_ada_exception_command, catch_assert_command): New function.
10345 (catch_command_1): Add support for the new "catch exception" and
10346 "catch assert" commands.
10347 (_initialize_breakpoint): Add help description for the new catch
10349 * Makefile.in (ada-lang.o): Add dependency on annotate.h and
10351 (breakpoint.o): Add dependency on ada-lang.h.
10353 2007-01-03 Pedro Alves <pedro_alves@portugalmail.pt>
10355 * coffread.c (cs_to_section): If bfd_section is found, always
10356 return its section index.
10357 (coff_symtab_read): Determine the minimal_symbol_type using the
10360 2007-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10361 Daniel Jacobowitz <dan@codesourcery.com>
10363 * Makefile.in (top.o): Update.
10364 * top.c (gdb_readline_wrapper_done, gdb_readline_wrapper_result)
10365 (saved_after_char_processing_hook, gdb_readline_wrapper_line)
10366 (struct gdb_readline_wrapper_cleanup, gdb_readline_wrapper_cleanup):
10368 (gdb_readline_wrapper): Rewrite to use asynchronous readline.
10370 2007-01-03 Mark Kettenis <kettenis@gnu.org>
10372 * arm-linux-tdep.c (arm_linux_extract_return_value): Remove.
10373 (arm_linux_init_abi): Don't set deprecated_extract_return_value.
10375 2007-01-03 Daniel Jacobowitz <dan@codesourcery.com>
10377 * ada-lang.c (find_struct_field): Initialize *byte_offset_p.
10378 * breakpoint.c (do_enable_breakpoint): Ignore both mem_cnt and i.
10379 * c-typeprint.c (c_type_print_varspec_suffix): Don't test length
10380 greater than or equal to zero.
10381 * m2-typeprint.c (m2_array): Likewise.
10382 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
10383 * gdbtypes.c (copy_type_recursive): Correct == typo.
10384 * i386-tdep.c (i386_skip_prologue): Remove stray semicolon.
10385 * linux-nat.c (linux_nat_info_proc_cmd): Don't compare a pointer
10387 * macroscope.c (sal_macro_scope): Don't name a local variable "main".
10388 (default_macro_scope): Remove unused variable.
10389 * prologue-value.h (pv_area_find_reg): Don't name an argument
10391 * remote-fileio.c (remote_fio_func_map): Add missing braces.
10392 * remote.c (sigint_remote_twice_token, sigint_remote_token): Change
10394 (cleanup_sigint_signal_handler): Remove casts.
10395 * valprint.c (val_print): Use a volatile local for the modified
10397 * varobj.c (languages): Remove extra array dimension.
10398 (varobj_create): Correct access to languages array.
10399 * mi/mi-cmd-break.c (mi_cmd_break_insert, mi_cmd_break_watch): Add
10401 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise.
10402 * mi/mi-cmd-env.c (mi_cmd_env_path, mi_cmd_env_dir): Likewise.
10403 * mi/mi-getopt.c (mi_valid_noargs): Likewise.
10404 * mi/mi-main.c (mi_cmd_data_read_memory): Likewise.
10405 (mi_cmd_data_write_memory): Likewise.
10406 * signals/signals.c (target_signal_to_string): Cast to int before
10408 * tui/tui-layout.c (init_and_make_win): Take and return a void *.
10409 Update all callers.
10411 2007-01-03 Daniel Jacobowitz <dan@codesourcery.com>
10413 * NEWS: Mention pointer to member improvements.
10414 * Makefile.in (gnu-v3-abi.o): Delete special rule.
10415 (eval.o, gnu-v3-abi.o, ia64-tdep.o): Update.
10416 * ada-valprint.c (ada_print_scalar): Update for new type codes.
10417 * c-typeprint.c (c_print_type): Update for new type codes.
10418 (c_type_print_varspec_prefix, c_type_print_varspec_suffix)
10419 (c_type_print_base): Likewise.
10420 (c_type_print_args): Rewrite.
10421 * c-valprint.c (c_val_print): Update for new type codes. Remove
10422 support for references to members. Treat methods like functions.
10423 * cp-abi.c (cplus_print_method_ptr, cplus_method_ptr_size)
10424 (cplus_make_method_ptr, cplus_method_ptr_to_value): New.
10425 * cp-abi.h (cplus_print_method_ptr, cplus_method_ptr_size)
10426 (cplus_make_method_ptr, cplus_method_ptr_to_value): New prototypes.
10427 (struct cp_abi_ops): Add corresponding members.
10428 * cp-valprint.c (cp_print_class_method): Delete.
10429 (cp_find_class_member): New function.
10430 (cp_print_class_member): Use it. Simplify support for bogus
10432 * dwarf2read.c (quirk_gcc_member_function_pointer): Use
10433 lookup_methodptr_type.
10434 (read_tag_ptr_to_member_type): Likewise, and lookup_memberptr_type.
10435 * eval.c (evaluate_subexp_standard): Implement EVAL_SKIP for
10436 OP_SCOPE. Update call to value_aggregate_elt. Rewrite member
10438 (evaluate_subexp_for_address): Handle OP_SCOPE explicitly. Handle
10439 references returned by user defined operators.
10440 * f-typeprint.c (f_print_type, f_type_print_varspec_prefix)
10441 (f_type_print_varspec_suffix): Remove support for member pointers.
10442 * gdbtypes.c (lookup_memberptr_type): Renamed from lookup_member_type
10444 (smash_to_memberptr_type): Likewise, from smash_to_member_type.
10445 (lookup_methodptr_type): New.
10446 (rank_one_type): Adjust for TYPE_CODE_MEMBERPTR.
10447 (recursive_dump_type): Update for new types.
10448 * gdbtypes.h (enum type_code): Replace TYPE_CODE_MEMBER with
10449 TYPE_CODE_MEMBERPTR and TYPE_CODE_METHODPTR.
10450 (lookup_memberptr_type, lookup_methodptr_type)
10451 (smash_to_memberptr_type): New prototypes.
10452 (smash_to_method_type): Formatting fix.
10453 (lookup_member_type, smash_to_member_type): Delete prototypes.
10454 * gnu-v3-abi.c (gnuv3_get_vtable, gnuv3_get_virtual_fn): New.
10455 Do not rely on debug information for the vptr or the method's
10456 enclosing type. Handle function descriptors for IA64.
10457 (gnuv3_virtual_fn_field): Rewrite using the new functions.
10458 (gnuv3_find_method_in, gnuv3_print_method_ptr)
10459 (gnuv3_method_ptr_size, gnuv3_make_method_ptr)
10460 (gnuv3_method_ptr_to_value): New.
10461 (init_gnuv3_ops): Set new members of gnu_v3_abi_ops.
10462 * hpread.c (hpread_type_lookup): Update for new types.
10463 * infcall.c (value_arg_coerce): Likewise.
10464 * m2-typeprint.c (m2_print_type): Remove explicit support
10465 for member pointers.
10466 * m2-valprint.c (m2_val_print): Likewise.
10467 * p-typeprint.c (pascal_type_print_varspec_prefix)
10468 (pascal_type_print_varspec_suffix, pascal_type_print_base): Likewise.
10469 * p-valprint.c (pascal_val_print): Likewise.
10470 (pascal_object_print_class_method, pascal_object_print_class_member):
10472 * p-lang.h (pascal_object_print_class_method)
10473 (pascal_object_print_class_member): Delete prototypes.
10474 * stabsread.c (read_type): Update for new types.
10475 * typeprint.c (print_type_scalar): Likewise.
10476 * valops.c (value_struct_elt_for_reference, value_namespace_elt)
10477 (value_maybe_namespace_elt, value_aggregate_elt): Add want_address
10478 argument. Construct a pointer to member if the address of a
10479 function or data member is requested.
10480 (value_cast_pointers): Don't modify the input value.
10481 (value_cast): Adjust pointer to member handling for new types.
10482 Allow null pointer to member constants. Don't modify the input
10484 (value_ind): Remove pointer to member check. Handle function
10485 descriptors for function pointers.
10486 (value_struct_elt, value_find_oload_method_list, check_field):
10487 Remove pointer to member checks.
10488 * value.c (unpack_long): Allow pointers to data members.
10489 (value_from_longest): Allow member pointers.
10490 * value.h (value_aggregate_elt): Add want_address.
10491 * varobj.c (c_variable_editable): Remove check for members.
10492 * gdbarch.sh: Add vtable_function_descriptors and vbit_in_delta.
10493 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Handle descriptors
10495 (ia64_gdbarch_init): Call set_gdbarch_vtable_function_descriptors.
10496 * c-lang.h (cp_print_class_method): Delete prototype.
10497 * arm-tdep.c (arm_gdbarch_init): Call set_gdbarch_vbit_in_delta.
10498 * mips-tdep.c (mips_gdbarch_init): Likewise.
10499 * gdbarch.c, gdbarch.h: Regenerated.
10501 2007-01-01 Mark Kettenis <kettenis@gnu.org>
10503 * rs6000-tdep.c (rs6000_use_struct_convention)
10504 (rs6000_extract_return_value, rs6000_store_return_value)
10505 (rs6000_extract_struct_value_address): Remove.
10506 (rs6000_return_value): New function.
10507 (rs6000_gdbarch_init): Don't set deprecated_extract_return_value,
10508 store_return_value, deprecated_extract_struct_value_address and
10509 deprecated_use_struct_convention. Use rs6000_return_value
10512 2007-01-02 Nick Roberts <nickrob@snap.net.nz>
10514 * mi/mi-cmds.c (mi_cmds): Remove entries for -display-delete,
10515 -display-disable, -display-enable, -display-insert and
10518 2007-01-01 Joel Brobecker <brobecker@adacore.com>
10520 * breakpoint.c (remove_breakpoint): Remove dead code.
10522 2007-01-01 Nick Roberts <nickrob@snap.net.nz>
10524 * varobj.c: Include block.h.
10525 (c_value_of_root): Check scope within nested statements.
10527 2007-01-01 Mark Kettenis <kettenis@gnu.org>
10529 * mi/mi-main.c (mi_cmd_data_write_register_values): Use
10530 regcache_cooked_write_signed instead of
10531 deprecated_write_register_bytes.
10533 2007-01-01 Joel Brobecker <brobecker@adacore.com>
10535 * config/djgpp/fnchange.lst: Add entry for ChangeLog-2006.
10537 2007-01-01 Joel Brobecker <brobecker@adacore.com>
10539 Followed the Start of New Year Procedure:
10540 * ChangeLog-2006: New file, containing all the entries for 2006.
10541 * ChangeLog: Removed all 2006 entries, and changed the reference
10542 to the previous ChangeLog to point to ChangeLog 2006.
10543 * top.c (print_gdb_version): Update copyright year.
10545 2007-01-01 Mark Kettenis <kettenis@gnu.org>
10547 * Makefile.in (remote-sds.o): Remove.
10548 * remote-sds.c: Delete.
10550 For older changes see ChangeLog-2006.
10556 version-control: never