1 2007-12-21 Denis Pilat <denis.pilat@st.com>
3 * tui/tui-data.h (MAX_LOCATOR_ELEMENT_LEN): Defined to a bigger
4 value or to PATH_MAX when possible.
6 2007-12-20 Joel Brobecker <brobecker@adacore.com>
8 * rs6000-tdep.h: Remove defs.h #include.
9 * Makefile.in (rs6000_tdep_h): Update dependencies.
11 2007-12-20 Thiago Jung Bauermann <bauerman@br.ibm.com>
13 * gdbtypes.c (gdbtypes_post_init): Change names of decimal float types
14 to conform to C extension for decimal float.
15 * c-lang.c (enum c_primitive_types): Add entries for Decimal Floating
17 (enum cplus_primitive_types): Likewise.
18 (c_language_arch_info): Add Decimal Floating Point builtin types to
19 the primitive_type_vector.
20 (cplus_language_arch_info): Likewise.
22 2007-12-20 David Ung <davidu@mips.com>
23 Maciej W. Rozycki <macro@mips.com>
25 * mips-tdep.c (mips_n32n64_push_dummy_call): Sign-extend
26 integers and 32-bit pointers as required by the ABI.
28 2007-12-20 Joel Brobecker <brobecker@adacore.com>
30 * symtab.h: Remove "defs.h" #include.
31 * Makefile.in (symtab_h): Update dependencies.
33 2007-12-19 Joel Brobecker <brobecker@adacore.com>
35 * symtab.h: #include "defs.h".
36 (enum language): Remove opaque declaration.
37 * Makefile.in (symtab_h): Update dependencies.
39 2007-12-19 Joel Brobecker <brobecker@adacore.com>
41 * language.h (enum exp_opcode): Remove commented out forward
43 (op_error): Delete declaration.
45 2007-12-19 Joel Brobecker <brobecker@adacore.com>
47 * infrun.c (handle_inferior_event): Fix spelling in comment.
49 2007-12-18 Daniel Jacobowitz <dan@codesourcery.com>
51 * minsyms.c (lookup_minimal_symbol): Also check the separate
53 (lookup_minimal_symbol_text): Likewise.
54 (lookup_minimal_symbol_solib_trampoline): Likewise.
55 * symtab.c (lookup_global_symbol_from_objfile): Likewise.
57 2007-12-18 Vladimir Prus <vladimir@codesourcery.com>
59 * mi/mi-main.c (mi_cmd_list_features): Announce
60 the 'pending-breakpoints' feature.
62 2007-12-17 Jim Blandy <jimb@codesourcery.com>
64 * dwarf2read.c (dwarf2_add_field): Correctly scale all byte
65 offsets obtained from DW_AT_data_member_location before recording
66 them in FIELD_BITPOS (*fp).
68 * dwarf2read.c (attr_form_is_section_offset): Doc fixes.
70 2007-12-17 Nigel Stephens <nigel@mips.com>
71 Maciej W. Rozycki <macro@mips.com>
73 * utils.c (string_to_core_addr): If the executable format
74 indicates that addresses should be sign-extended and there are
75 only 8 hex digits in the address, then do so.
76 * Makefile.in (utils.o): Depend on $(gdbcore_h).
78 2007-12-17 Chris Dearman <chris@mips.com>
80 * symfile.c (init_filename_language_table): Recognise .sx as
83 2007-12-17 Joel Brobecker <brobecker@adacore.com>
85 * language.h (enum exp_opcode): Comment out this declaration,
86 undoing the previous change.
88 2007-12-17 Luis Machado <luisgpm@br.ibm.com>
90 * breakpoint.c: (watch_command_1): Parse additional optional
91 "thread" parameter to the watchpoint command and set the
92 "thread" member of the breakpoint struct.
94 2007-12-17 Luis Machado <luisgpm@br.ibm.com>
96 * breakpoint.c (bpstat_stop_status): Check an additional
97 condition before evaluating an expression value.
99 2007-12-17 Joel Brobecker <brobecker@adacore.com>
101 * language.h (enum exp_opcode): Add forward declaration.
102 (language_string_char_type, language_lookup_primitive_type_by_name):
103 Move declaration past declaration of language_defn.
105 2007-12-16 Daniel Jacobowitz <dan@codesourcery.com>
106 Joseph Myers <joseph@codesourcery.com>
108 * configure.ac: Check for *-*-solaris2.1[[0-9]]* instead of
109 *-*-solaris2.1[[0-9]].
110 * configure: Regenerate.
111 * procfs.c (proc_set_current_signal): If redelivering a signal,
112 reuse the current siginfo if possible.
114 2007-12-16 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
116 * f-typeprint.c (print_equivalent_f77_float_type): Remove function.
117 (f_type_print_base): Output the type names directly for real and
120 2007-12-16 Vladimir Prus <vladimir@codesourcery.com>
122 * breakpoint.c (bpstat_have_active_hw_watchpoints):
124 (bpstat_stop_status): Remove unused variable
126 * breakpoint.h (bpstat_have_active_hw_watchpoints):
129 2007-12-16 Vladimir Prus <vladimir@codesourcery.com>
131 * target.h (target_pid_or_tid_to_str): Remove.
132 * infrun.c (handle_inferior_event):
133 Use target_pid_to_str instead of
134 target_pid_or_tid_to_str.
135 (normal_stop): Likewise.
137 2007-12-16 Jan Kratochvil <jan.kratochvil@redhat.com>
139 * dwarf2read.c (dwarf_attr_name): Rename `DW_AT_stride_size' to its
140 DWARF3 equivalent `DW_AT_bit_stride'.
141 Rename `DW_AT_stride' to its DWARF3 equivalent `DW_AT_byte_stride'.
143 2007-12-16 Joel Brobecker <brobecker@adacore.com>
145 * mi/mi-main.c: Remove code that was commented out in 1999.
147 2007-12-16 Joel Brobecker <brobecker@adacore.com>
149 * expression.h (parse_expression_in_context): Delete prototype.
150 * parse.c (parse_expression_in_context): Delete.
152 2007-12-14 Vladimir Prus <vladimir@codesourcery.com>
154 Add support for pending breakpoints in MI.
155 * gdb.h (gdb_breakpoint): Add parameter pending.
156 * breakpoint.c (gdb_breakpoint): Add parameter pending.
157 * mi/mi-cmd-break.c (mi_break_insert): Change
158 comment to refer to manual. Add support for
159 the -f flag, for pending breakpoint.
161 2007-12-14 Vladimir Prus <vladimir@codesourcery.com>
163 * breakpoint.c (break_command_really): New, copied
164 from break_command_1. New parameters COND_STRING, THREAD
165 PARSE_CONDITITION_AND_THREAD and PENDING_BREAK_SUPPORT.
166 The previous FLAG parameter split into TEMPFLAG and
168 When PARSE_CONDITION_AND_THREAD is not set, duplicate
169 the passed condition string.
170 (struct captured_breakpoint_args): Remove
171 (do_captured_breakpoint): Remove.
172 (break_command_1): Relay to break_command_really.
173 (gdb_breakpoint): Relay to break_command_really.
175 2007-12-13 Michael Snyder <msnyder@specifix.com>
177 * mips-linux-tdep.c (mips64_fill_gregset): Remove unused variable.
179 2007-12-13 Jim Blandy <jimb@codesourcery.com>
181 * dwarf2read.c (attr_form_is_constant): New function.
182 (dwarf2_add_field): Use it and attr_form_is_section_offset to
183 recognize DW_AT_data_member_location attributes. Use
184 dwarf2_get_attr_constant_value when the attribute is a constant.
186 * dwarf2read.c (attr_form_is_section_offset): New function.
187 (dwarf_add_member_fn, read_common_block, read_partial_die)
188 (dwarf2_symbol_mark_computed): Use it, instead of writing it out.
190 2007-12-12 Jim Blandy <jimb@codesourcery.com>
192 Remove unused support for target-based exception catching.
193 * target.h (struct target_ops): Delete
194 to_enable_exception_callback and to_get_current_exception_event
196 (target_enable_exception_callback)
197 (target_get_current_exception_event): Delete macros.
198 * target.c (update_current_target): Remove code to inherit and
199 default those members.
200 (debug_to_enable_exception_callback)
201 (debug_to_get_current_exception_event): Delete functions.
202 (setup_target_debug): Don't install those methods.
203 * inf-child.c (inf_child_enable_exception_callback)
204 (inf_child_get_current_exception_event): Delete dummy functions.
205 (inf_child_target): Don't install them in the target vector.
206 * breakpoint.h (enum bptype): Delete bp_catch_catch,
208 * breakpoint.c (cover_target_enable_exception_callback)
209 (ep_is_exception_catchpoint, create_exception_catchpoint): Delete
211 (insert_bp_location, update_breakpoints_after_exec)
212 (remove_breakpoint, ep_is_catchpoint, print_it_typical)
213 (bpstat_stop_status, bpstat_what)
214 (bpstat_get_triggered_catchpoints, print_one_breakpoint_location)
215 (user_settable_breakpoint, allocate_bp_location)
216 (disable_watchpoints_before_interactive_call_start)
217 (enable_watchpoints_after_interactive_call_stop, mention)
218 (delete_breakpoint, breakpoint_re_set_one, disable_command)
219 (enable_command): Remove exception catchpoint cases.
220 (catch_exception_command_1): Don't try target-based exception
222 * stack.c (catch_info): Call print_frame_label_vars
225 2007-12-12 Nigel Stephens <nigel@mips.com>
226 Maciej W. Rozycki <macro@mips.com>
228 * remote-mips.c (mips_load): Use regcache_set_valid_p() instead
229 of setting deprecated_register_valid array directly.
231 2007-12-07 Maciej W. Rozycki <macro@mips.com>
233 * mips-tdep.c (extended_offset): Fix a comment.
235 2007-12-07 Maciej W. Rozycki <macro@mips.com>
237 * target.c (update_current_target): Inherit to_log_command.
238 * target.h (struct target_ops). Add to_log_command.
239 (target_log_command): New macro.
240 * top.c (execute_command): Call target_log_command() rather than
241 serial_log_command().
242 * monitor.c (init_base_monitor_ops): Initialize to_log_command.
243 * remote-m32r-sdi.c (init_m32r_ops): Likewise.
244 * remote-mips.c (_initialize_remote_mips): Likewise.
245 * remote.c (init_remote_ops): Likewise.
247 2007-12-06 Daniel Jacobowitz <dan@codesourcery.com>
249 * infrun.c (init_wait_for_inferior): Reset target_last_wait_ptid.
250 (handle_inferior_event): Clear stop_stack_dummy earlier.
252 2007-12-06 Jim Blandy <jimb@codesourcery.com>
254 * addrmap.c (addrmap_splay_tree_remove): New function.
255 (addrmap_mutable_set_empty): Use it.
257 * addrmap.c, addrmap.h: Update to GPLv3.
259 * addrmap.c (struct addrmap): Make the referenced function table
261 (addrmap_fixed_funcs, addrmap_mutable_funcs): Declare const.
262 Don't use designated initializers.
264 * addrmap.c (addrmap_fixed_create_fixed, addrmap_mutable_find)
265 (addrmap_mutable_relocate): Use internal_error, not abort.
267 * NEWS: Mention support for non-contiguous lexical blocks and
270 2007-12-06 Markus Deuling <deuling@de.ibm.com>
272 * gdbarch.sh (stab_reg_to_regnum, dwarf_reg_to_regnum)
273 ( dwarf2_reg_to_regnum, sdb_reg_to_regnum, ecoff_reg_to_regnum): Add
274 gdbarch as parameter.
275 * gdbarch.{c,h}: Regenerate.
277 * xtensa-tdep.c (xtensa_reg_to_regnum): Add gdbarch as parameter.
278 Replace current_gdbarch by gdbarch.
279 * s390-tdep.c (s390_dwarf_reg_to_regnum): Likewise.
280 * rs6000-tdep.c (rs6000_stab_reg_to_regnum)
281 (rs6000_dwarf2_reg_to_regnum): Likewise.
282 * mips-tdep.c (mips_stab_reg_to_regnum)
283 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Likewise.
284 * mep-tdep.c (mep_debug_reg_to_regnum): Likewise.
285 * m32c-tdep.c (m32c_debug_info_reg_to_regnum): Likewise.
286 * i386-tdep.c (i386_dbx_reg_to_regnum)
287 (i386_svr4_reg_to_regnum): Likewise
288 * h8300-tdep.c (h8300s_dbg_reg_to_regnum)
289 (h8300_dbg_reg_to_regnum): Likewise.
290 * amd64-tdep.c (amd64_dwarf_reg_to_regnum): Likewise.
291 * arch-utils.c (no_op_reg_to_regnum): Likewise.
292 * arch-utils.h (no_op_reg_to_regnum): Likewise.
293 * arm-tdep.c (arm_dwarf_reg_to_regnum): Likewise.
294 * cris-tdep.c (cris_dwarf2_reg_to_regnum): Likewise.
295 * hppa-tdep.c (hppa64_dwarf_reg_to_regnum): Likewise.
296 * ia64-tdep.c (ia64_dwarf_reg_to_regnum): Likewise.
297 * m68k-tdep.c (m68k_dwarf_reg_to_regnum): Likewise.
299 2007-12-06 Vladimir Prus <vladimir@codesourcery.com>
301 Localize infrun use of remove_breakpoints.
302 * infrun.c (handle_inferior_event): Remove
303 calls to remove_breakpoints, except where needed to
304 communicate change of breakpoint locations to inferior.
305 (keep_going): If steppping over breakpoint, remove
308 2007-12-06 Vladimir Prus <vladimir@codesourcery.com>
310 Clarify infrun variable naming.
311 * infrun.c (trap_expected): Rename
312 to stepping_over_breakpoint. Document.
313 (stepping_past_breakpoint): Remove.
314 (stepping_past_breakpoint_ptdi): Renamed
315 to deferred_step_ptid.
316 (struct execution_control_state): Rename
317 the another_trap field to stepping_over_breakpoint.
318 (struct inferior_status): Rename the trap_expected
319 field to stepping_over_breakpoint.
320 (clear_proceed_status, proceed)
321 (init_execution_control_state, context_switch)
322 (handle_inferior_event, currently_stepping)
323 (keep_going, save_inferior_status)
324 (restore_inferior_status, prepare_to_proceed): Adjust.
325 * gdbthread.h (struct thread_info): Rename the
326 trap_expected field to stepping_over_breakpoint.
327 * thread.c (load_infrun_state, save_infrun_state):
330 2007-12-06 Pierre Muller <muller@ics.u-strasbg.fr>
332 * win32-nat.c: Allow compilation if CORE_ADDR is 8 byte long.
333 Add "gdb_stdint.h" dependency required for uintptr_t type use.
334 (handle_output_debug_string): Use uintptr_t typecast.
335 (handle_exception): Ditto.
336 (win32_xfer_memory): Ditto.
337 * Makefile.in (win32-nat.o): Add dependency to gdb_stdint header.
339 2007-12-04 Jim Blandy <jimb@codesourcery.com>
341 Support lexical blocks and function bodies that occupy
342 non-contiguous address ranges.
343 * addrmap.c, addrmap.h: New files.
344 * block.h (struct addrmap): New forward declaration.
345 (struct blockvector): New member, 'map'.
346 (BLOCKVECTOR_MAP): New accessor macro.
347 * block.c: #include "addrmap.h"
348 (blockvector_for_pc_sect): If the blockvector we've found has
349 an address map, use it instead of searching the blocks.
350 * buildsym.c: #include "addrmap.h"
351 (pending_addrmap_obstack, pending_addrmap_interesting): New static
353 (really_free_pendings): If we have a pending addrmap, free it too.
354 (record_block_range): New function.
355 (make_blockvector): If we have an interesting pending addrmap,
356 record it in the new blockvector.
357 (start_symtab, buildsym_init): Assert that there is no pending
358 addrmap now; we should have cleaned up any addrmaps we'd built
360 (end_symtab): If there is a pending addrmap left over that didn't
361 get included in the blockvector, free it.
362 * buildsym.h (struct addrmap): New forward declaration.
363 (record_block_range): New prototype.
364 * objfiles.c: #include "addrmap.h".
365 (objfile_relocate): Relocate the blockvector's address map, if
367 * dwarf2read.c (dwarf2_record_block_ranges): New function.
368 (read_func_scope, read_lexical_block_scope): Call it.
369 * Makefile.in (SFILES): Add addrmap.c.
370 (addrmap_h): New header dependency variable.
371 (COMMON_OBS): Add addrmap.o.
372 (addrmap.o): New rule.l
373 (block.o, objfiles.o, buildsym.o): Depend on $(addrmap_h).
375 * block.c (blockvector_for_pc, blockvector_for_pc_sect): Return a
376 pointer to the block, not its index in the blockvector.
377 (block_for_pc_sect): Use the returned block, instead of looking it
379 * block.h (blockvector_for_pc, blockvector_for_pc_sect): Update
381 * breakpoint.c (resolve_sal_pc): Use returned block, instead of
382 looking it up ourselves.
383 * stack.c (print_frame_label_vars): Disable function, which
384 depends on the block's index.
386 * buildsym.c (finish_block): Return the block we've built.
387 * buildsym.h (finish_block): Update prototype.
389 * defs.h (CORE_ADDR_MAX): New constant.
391 2007-12-04 Ulrich Weigand <uweigand@de.ibm.com>
393 * coffread.c (decode_type): Use builtin_type_int32 instead
394 of FT_INTEGER fundamental type for array range index type.
395 (decode_base_type): Use builtin types of current_gdbarch
396 instead of fundamental types.
398 * dwarf2read.c (struct dwarf2_cu): Remove ftypes member.
399 (read_file_scope): Do not initialize ftypes member.
400 (dwarf_base_type, dwarf2_fundamental_types): Remove functions.
401 (read_array_type): Use builtin_type_int32 instead of FT_INTEGER
402 fundamental type for array range index type.
403 (read_tag_string_type): Likewise for string range index type.
404 Also, do not overwrite FT_CHAR type with new string type.
405 (read_base_type): If DW_AT_name is missing, create unnamed type
406 with given properties instead of looking for a fundamental type.
407 Create new types as TYPE_TARGET_TYPE for DW_ATE_address and
408 DW_ATE_complex_float types.
409 (read_subrange_type): Create new type to represent missing
410 DW_AT_type instead of looking for a fundamental type.
411 (die_type): Use builtin type to represent "void" instead of
412 looking for a fundamental type.
414 * stabsread.c (define_symbol): Use builtin types to represent
415 'r' and 'i' floating-point and integer constants.
417 * gdbtypes.c (lookup_fundamental_type): Remove.
418 * gdbtypes.h (lookup_fundamental_type): Remove prototype.
419 (FT_VOID, FT_BOOLEAN, FT_CHAR, FT_SIGNED_CHAR, FT_UNSIGNED_CHAR,
420 FT_SHORT, FT_SIGNED_SHORT, FT_UNSIGNED_SHORT, FT_INTEGER,
421 FT_SIGNED_INTEGER, FT_UNSIGNED_INTEGER, FT_LONG, FT_SIGNED_LONG,
422 FT_UNSIGNED_LONG, FT_LONG_LONG, FT_SIGNED_LONG_LONG,
423 FT_UNSIGNED_LONG_LONG, FT_FLOAT, FT_DBL_PREC_FLOAT, FT_EXT_PREC_FLOAT,
424 FT_COMPLEX, FT_DBL_PREC_COMPLEX, FT_EXT_PREC_COMPLEX, FT_STRING,
425 FT_FIXED_DECIMAL, FT_FLOAT_DECIMAL, FT_BYTE, FT_UNSIGNED_BYTE,
426 FT_TEMPLATE_ARG, FT_DECFLOAT, FT_DBL_PREC_DECFLOAT,
427 FT_EXT_PREC_DECFLOAT, FT_NUM_MEMBERS): Remove macros.
428 * objfiles.c (struct objfile): Remove fundamental_types member.
429 * symfile.c (reread_symbols): Do not clear fundamental_types.
431 * language.h (struct language_defn): Remove la_fund_type member.
432 (create_fundamental_type): Remove.
433 * language.c (unk_lang_create_fundamental_type): Remove.
434 (unknown_language_defn, auto_language_defn,
435 local_language_defn): Adapt initializer.
436 * ada-lang.c (ada_create_fundamental_type): Remove.
437 (ada_language_defn): Adapt initializer.
438 * c-lang.h (c_create_fundamental_type): Remove prototype.
439 * c-lang.c (c_create_fundamental_type): Remove.
440 (c_language_defn, cplus_language_defn, asm_language_defn,
441 minimal_language_defn): Adapt initializer.
442 * f-lang.c (f_create_fundamental_type): Remove.
443 (f_language_defn): Adapt initializer.
444 * jv-lang.c (java_create_fundamental_type): Remove.
445 (java_language_defn): Adapt initializer.
446 * m2-lang.c (m2_create_fundamental_type): Remove.
447 (m2_language_defn): Adapt initializer.
448 * objc-lang.c (objc_create_fundamental_type): Remove.
449 (objc_language_defn): Adapt initializer.
450 * p-lang.h (pascal_create_fundamental_type): Remove prototype.
451 * p-lang.c (pascal_create_fundamental_type): Remove.
452 (pascal_language_defn): Adapt initializer.
453 * scm-lang.c (scm_language_defn): Adapt initializer.
455 2007-12-04 Maciej W. Rozycki <macro@mips.com>
457 * features/mips-cpu.xml: Specify "regnum" for "r0" explicitly.
458 * features/mips64-cpu.xml: Likewise.
459 * features/mips-fpu.xml: Specify "regnum" for "f0" explicitly.
460 * features/mips64-fpu.xml: Likewise.
461 * features/mips-linux.c: Regenerate.
462 * features/mips64-linux.c: Regenerate.
464 2007-12-04 Maciej W. Rozycki <macro@mips.com>
466 * target.h (target_find_new_threads): Fix definition.
468 2007-12-02 Pierre Muller <muller@ics.u-strasbg.fr>
470 * win32-nat.c (win32_resume): Set the trace bit
471 in the thread identified by inferior_ptid.
474 2007-12-02 Pierre Muller <muller@ics.u-strasbg.fr>
476 * win32-nat.c (open_process_used): New static variable.
477 (win32_init_thread_list): Remove call to CloseHandle for thread.
478 (win32_delete_thread): Ditto.
479 (fake_create_process): Set open_process_used if OpenProcess call is
481 (get_win32_debug_event): Do not close process handle.
482 (do_initial_win32_stuff): Set open_process_used to zero.
483 (win32_mourn_inferior): Call CloseHandle for current_process_handle if
484 open_process_used is set.
485 (win32_kill_inferior): Do not close process and main_thread handles.
487 2007-11-30 Daniel Jacobowitz <dan@codesourcery.com>
489 * remote.c (remote_cmdlist): New variable.
490 (PACKET_vFile_open, PACKET_vFile_pread, PACKET_vFile_pwrite)
491 (PACKET_vFile_close, PACKET_vFile_unlink): New constants.
492 (remote_buffer_add_string, remote_buffer_add_bytes)
493 (remote_buffer_add_int, remote_hostio_parse_result)
494 (remote_hostio_send_command, remote_hostio_open, remote_hostio_pwrite)
495 (remote_hostio_pread, remote_hostio_close, remote_hostio_unlink)
496 (remote_fileio_errno_to_host, remote_hostio_error, fclose_cleanup)
497 (remote_hostio_close_cleanup, remote_file_put, remote_file_get)
498 (remote_file_delete, remote_put_command, remote_get_command)
499 (remote_delete_command, remote_command): New functions.
500 (_initialize_remote): Register new packets and commands.
501 * Makefile.in (gdb_fileio_h): New variable.
503 (SUBDIR_MI_OBS): Add mi-cmd-target.o.
504 (SUBDIR_MI_SRCS): Add mi/mi-cmd-target.c.
505 (mi-cmd-target.o): New rule.
506 * mi/mi-cmd-target.c: New file.
507 * mi/mi-cmds.c (mi_cmds): Add target-file-delete, target-file-get,
509 * mi/mi-cmds.h (mi_cmd_target_file_get, mi_cmd_target_file_put)
510 (mi_cmd_target_file_delete): Declare.
511 * remote.h (remote_file_put, remote_file_get, remote_file_delete):
513 * NEWS: Describe new file transfer support.
515 2007-11-30 Vladimir Prus <vladimir@codesourcery.com>
517 * infrun.c (handle_inferior_event): Don't
518 ignore beakpoints if trap_expected is set.
520 2007-11-30 Vladimir Prus <vladimir@codesourcery.com>
522 Make insert_breakpoints return void.
523 * breakpoint.h (insert_breakpoints): Change
525 * breakpoint.c (insert_breakpoints): Change
526 return type to void. Rename local return_val
528 * infrun.c (keep_going): Instead of checking
529 return value from insert_breakpoints, catch exception.
531 2007-11-29 Vladimir Prus <vladimir@codesourcery.com>
533 Stop infrun from tracking breakpoint insertion status.
535 The checks of breakpoints_inserted before calling
536 remove_breakpoints are removed, as remove_breakpoint
537 won't touch uninserted breakpoints. In a number of places,
538 we're interested if a breakpoint is inserted at particular
539 PC, and we now use breakpoint_inserted_here_p. In a few
540 places, insert_breakpoints can be called unconditionally,
541 since it won't try to insert already inserted breakpoint.
543 * breakpoint.h (regular_breakpoint_inserted_here_p): New
545 * breakpoint.c (regular_breakpoint_inserted_here_p): New.
546 (breakpoint_inserted_here_p): Use
547 regular_breakpoint_inserted_here_p.
548 * infrun.c (breakpoints_inserted): Remove.
549 (resume): Don't check for breakpoints_inserted before
550 remove_hw_watchpoints. Use breakpoint_inserted_here_p.
551 (proceed, init_wait_for_inferior): Don't set breakpoints_inserted.
552 (handle_inferior_event): Don't use breakpoints_inserted.
553 Use breakpoints_meant_to_be_inserted and
554 breakpoints_inserted_here_p.
555 (insert_step_resume_breakpoint_at_sal, keep_going): Use
556 breakpoints_meant_to_be_inserted. Don't set breakpoints_inserted.
557 (normal_stop): Don't check for breakpoints_inserted. Don't
558 set breakpoints_inserted.
559 (keep_going): Don't check for breakpoints_inserted.
560 (insert_step_resume_breakpoint_at_sal): Don't insert
563 2007-11-28 Jim Blandy <jimb@codesourcery.com>
565 * breakpoint.c (watch_command_1): When the watchpoint isn't local
566 to any frame, initialize watchpoint_frame using null_frame_id, not
569 2007-11-28 Vladimir Prus <vladimir@codesourcery.com>
571 * infrun.c (resume): Set right thread even if
572 stepping over breakpoint using software single step.
574 2007-11-28 Nick Roberts <nickrob@snap.net.nz>
576 * mi/mi-cmd-var.c (print_varobj): Revert change from 2007-08-31.
577 (mi_print_value_p): Guard against type = NULL.
579 2007-11-27 Thiago Jung Bauermann <bauerman@br.ibm.com>
581 * dfp.c (decimal_from_string): Remove superfluous newline from
583 (decimal_to_string): Likewise.
584 * printcmd.c (printf_command): Change string buffer to use
585 MAX_DECIMAL_STRING constant.
586 * value.c (value_from_decfloat): Likewise.
588 2007-11-27 Ulrich Weigand <uweigand@de.ibm.com>
590 * Makefile.in (ALL_TARGET_OBS): Remove object files that require
591 64-bit CORE_ADDR and BFD support, move them to ...
592 (ALL_64_TARGET_OBS): ... this new variable.
593 * configure.ac: Check for --enable-64-bit-bfd option. Only add
594 64-bit targets with --enable-targets=all if BFD supports 64-bit.
595 * configure: Regenerate.
597 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Do not claim
598 all elf32-i386 executables, only cygwin core files.
600 2007-11-25 Jan Kratochvil <jan.kratochvil@redhat.com>
602 * dwarf2read.c (dwarf2_get_pc_bounds): Moved the `DW_AT_ranges' parsing
603 code with its variables OBJFILE, CU_HEADER and OBFD into ...
604 (dwarf2_ranges_read): ... a new function.
605 (read_partial_die): Implemented the parsing of `DW_AT_ranges'.
607 2007-11-24 Pedro Alves <pedro_alves@portugalmail.pt>
609 * win32-nat.c (DR6_CLEAR_VALUE): New define.
610 (thread_info_struct): Rename suspend_count to suspended, to be
612 (thread_rec): Only suspend the thread if it wasn't suspended by
613 gdb before. Warn if suspending failed.
614 (win32_add_thread): Set Dr6 to DR6_CLEAR_VALUE.
615 (win32_continue): Set Dr6 to DR6_CLEAR_VALUE. Update usage of the
616 `suspended' flag. Do ContinueDebugEvent after resuming the
617 suspended threads, not before. Set threads' contexts before
618 resuming them, not after.
619 (win32_resume): Set Dr6 to DR6_CLEAR_VALUE.
621 2007-11-23 Vladimir Prus <vladimir@codesourcery.com>
623 * breakpoint.c (insert_breakpoints)
624 (insert_bp_location): Remove stale comments.
626 2007-11-23 Maciej W. Rozycki <macro@mips.com>
628 * mips-linux-tdep.h: Fix some formatting.
630 2007-11-21 Markus Deuling <deuling@de.ibm.com>
632 * stack.c (print_args_stub): Use get_frame_arch to get at the current
633 architecture and replace current_gdbarch.
634 (frame_info): Likewise.
636 2007-11-21 Nick Roberts <nickrob@snap.net.nz>
638 * varobj.c (c_variable_editable, cplus_variable_editable)
639 (java_variable_editable, variable_editable): Delete.
640 (varobj_editable_p): Replace above functions with one language
641 independent function. Check for an lvalue.
642 (varobj_get_attributes, varobj_set_value): Use varobj_editable_p.
643 (struct language_specific): Delete variable_editable field.
645 * mi-cmd-var.c (mi_cmd_var_assign): Simplify.
647 * varobj.h: Add extern for varobj_editable_p.
649 2007-11-20 Vladimir Prus <vladimir@codesourcery.com>
651 Remove unused breakpoint fields.
652 * breakpoint.h (struct breakpoint): Remove
653 from_tty and flag fields.
654 * breakpoint.c (break_command_1): Don't set
655 from_tty and flag field set of breakpoint.
656 (create_ada_exception_breakpoint): Don't set
659 2007-11-20 David Ung <davidu@mips.com>
660 Maciej W. Rozycki <macro@mips.com>
662 * mips-tdep.c (mips16_scan_prologue): Handle the MIPS16e SAVE
665 2007-11-20 Vladimir Prus <vladimir@codesourcery.com>
667 * infrun.c (resume): Clarify logic that
668 decides if a single thread must be resumed. Add
671 2007-11-20 Vladimir Prus <vladimir@codesourcery.com>
673 * breakpoint.c (disable_breakpoints_in_unloaded_shlib):
676 2007-11-19 Markus Deuling <deuling@de.ibm.com>
678 * gdbarch.sh (register_sim_regno): Add gdbarch as parameter.
679 * gdbarch.{c,h}: Regenerate.
681 * arch-utils.h (legacy_register_sim_regno): Add gdbarch as parameter.
682 * score-tdep.c (score_register_sim_regno): Likewise.
683 * sim-regno.h (one2one_register_sim_regno): Likewise.
685 * arch-utils.c (legacy_register_sim_regno): Add gdbarch as parameter.
686 Replace current_gdbarch by gdbarch.
687 * sh-tdep.c (sh_sh2a_register_sim_regno)
688 (sh_dsp_register_sim_regno): Likewise.
689 * rs6000-tdep.c (rs6000_register_sim_regno): Likewise.
690 * mips-tdep.c (mips_register_sim_regno): Likewise.
691 * m32c-tdep.c (m32c_register_sim_regno): Likewise.
692 * frv-tdep.c (frv_register_sim_regno): Likewise.
693 * arm-tdep.c (arm_register_sim_regno): Likewise.
694 * remote-sim.c (one2one_register_sim_regno): Likewise.
696 2007-11-16 Ulrich Weigand <uweigand@de.ibm.com>
698 * configure.ac (--enable-targets): New configure option.
699 Collect gdb_target_obs of multiple targets into TARGET_OBS.
700 Call configure.tgt multiple times, using $targ as operand.
701 * configure.tgt: Operate on $targ instead of $target.
702 * configure: Regenerate.
703 * Makefile.in (ALL_TARGET_OBS): Define.
705 * NEWS: Mention --enable-targets option.
707 2007-11-16 Ulrich Weigand <uweigand@de.ibm.com>
709 * mips-tdep.c (show_mipsfpu_command): Do not crash if called when
710 current architecture is not MIPS.
712 2007-11-16 Ulrich Weigand <uweigand@de.ibm.com>
714 * cli/cli-setshow.c (do_setshow_command): Use dynamically sized buffer
715 to construct error message if no argument was supplied.
717 2007-11-16 Ulrich Weigand <uweigand@de.ibm.com>
719 * i386nbsd-tdep.c (i386nbsd_aout_supply_regset): Remove.
720 (i386nbsd_aout_regset_from_core_section): Likewise.
721 (i386nbsd_aout_init_abi): Likewise.
722 (_initialize_i386nbsd_tdep): Do not register i386nbsd_aout_init_abi.
724 * vaxnbsd-tdep.c (vaxnbsd_aout_init_abi): Remove.
725 (_initialize_vaxnbsd_tdep): Do not register vaxnbsd_aout_init_abi.
727 2007-11-16 Ulrich Weigand <uweigand@de.ibm.com>
729 * amd64fsdb-tdep.c (amd64fbsd_sigtramp_start_addr): Use ULL suffix.
730 (amd64fbsd_sigtramp_end_addr): Likewise.
732 * iq2000-tdep.c (iq2000_pointer_to_address): Fix argument type.
733 (iq2000_address_to_pointer): Likewise.
734 (iq2000_frame_prev_register): Likewise.
735 (iq2000_extract_return_value): Use regcache_cooked_read_unsigned
736 instead of regcache_cooked_read into CORE_ADDR variable.
737 (iq2000_return_value): Fix argument types.
739 * m32r-rom.c (m32r_load_section): Fix printf argument type.
740 (m32r_load): Likewise.
742 * m68kbsd-tdep.c: Include "gdbtypes.h".
743 * Makefile.in: Update dependencies.
745 * mn10300-tdep.c (mn10300_frame_unwind_cache): Fix aliasing violation.
747 * nto-tdep.c (LM_ADDR): Do not refer to no-longer-existing
748 lmo->l_addr_size element.
750 * remote-m32r-sdi.c (m32r_xfer_memory): Use paddr to print address.
751 (m32r_insert_breakpoint): Likewise.
752 (m32r_remove_breakpoint): Likewise.
753 (m32r_insert_watchpoint): Likewise.
754 (m32r_remove_watchpoint): Likewise.
755 (m32r_load): Fix printf argument type.
757 * xtensa-tdep.c (xtensa_regset_from_core_section): Fix printf
759 (xtensa_frame_this_id): Do not cast pointers to "int" for output.
760 (xtensa_frame_prev_register): Likewise.
761 (xtensa_push_dummy_call): Likewise.
763 2007-11-16 Ulrich Weigand <uweigand@de.ibm.com>
765 * config/alpha/alpha-linux.mt: Remove file.
766 * config/alpha/alpha.mt: Remove file.
767 * config/alpha/alpha-osf1.mt: Remove file.
768 * config/alpha/fbsd.mt: Remove file.
769 * config/alpha/nbsd.mt: Remove file.
770 * config/alpha/obsd.mt: Remove file.
771 * config/arm/embed.mt: Remove file.
772 * config/arm/linux.mt: Remove file.
773 * config/arm/nbsd.mt: Remove file.
774 * config/arm/obsd.mt: Remove file.
775 * config/arm/wince.mt: Remove file.
776 * config/avr/avr.mt: Remove file.
777 * config/cris/cris.mt: Remove file.
778 * config/frv/frv.mt: Remove file.
779 * config/h8300/h8300.mt: Remove file.
780 * config/i386/cygwin.mt: Remove file.
781 * config/i386/fbsd64.mt: Remove file.
782 * config/i386/fbsd.mt: Remove file.
783 * config/i386/i386gnu.mt: Remove file.
784 * config/i386/i386.mt: Remove file.
785 * config/i386/i386sol2.mt: Remove file.
786 * config/i386/linux64.mt: Remove file.
787 * config/i386/linux.mt: Remove file.
788 * config/i386/mingw.mt: Remove file.
789 * config/i386/nbsd64.mt: Remove file.
790 * config/i386/nbsd.mt: Remove file.
791 * config/i386/nto.mt: Remove file.
792 * config/i386/obsd64.mt: Remove file.
793 * config/i386/obsd.mt: Remove file.
794 * config/i386/sol2-64.mt: Remove file.
795 * config/ia64/ia64.mt: Remove file.
796 * config/ia64/linux.mt: Remove file.
797 * config/iq2000/iq2000.mt: Remove file.
798 * config/m32c/m32c.mt: Remove file.
799 * config/m32r/linux.mt: Remove file.
800 * config/m32r/m32r.mt: Remove file.
801 * config/m68hc11/m68hc11.mt: Remove file.
802 * config/m68k/linux.mt: Remove file.
803 * config/m68k/monitor.mt: Remove file.
804 * config/m68k/nbsd.mt: Remove file.
805 * config/m68k/obsd.mt: Remove file.
806 * config/m88k/obsd.mt: Remove file.
807 * config/mep/mep.mt: Remove file.
808 * config/mips/embed.mt: Remove file.
809 * config/mips/irix5.mt: Remove file.
810 * config/mips/irix6.mt: Remove file.
811 * config/mips/linux.mt: Remove file.
812 * config/mips/nbsd.mt: Remove file.
813 * config/mips/obsd64.mt: Remove file.
814 * config/mn10300/linux.mt: Remove file.
815 * config/mn10300/mn10300.mt: Remove file.
816 * config/mt/mt.mt: Remove file.
817 * config/pa/hppahpux.mt: Remove file.
818 * config/pa/hppa.mt: Remove file.
819 * config/pa/linux.mt: Remove file.
820 * config/pa/obsd.mt: Remove file.
821 * config/powerpc/aix.mt: Remove file.
822 * config/powerpc/linux.mt: Remove file.
823 * config/powerpc/nbsd.mt: Remove file.
824 * config/powerpc/obsd.mt: Remove file.
825 * config/powerpc/ppc-eabi.mt: Remove file.
826 * config/s390/s390.mt: Remove file.
827 * config/score/embed.mt: Remove file.
828 * config/sh/embed.mt: Remove file.
829 * config/sh/linux.mt: Remove file.
830 * config/sh/nbsd.mt: Remove file.
831 * config/sh/obsd.mt: Remove file.
832 * config/sh/sh64.mt: Remove file.
833 * config/sparc/embed.mt: Remove file.
834 * config/sparc/fbsd.mt: Remove file.
835 * config/sparc/linux64.mt: Remove file.
836 * config/sparc/linux.mt: Remove file.
837 * config/sparc/nbsd64.mt: Remove file.
838 * config/sparc/nbsd.mt: Remove file.
839 * config/sparc/obsd64.mt: Remove file.
840 * config/sparc/obsd.mt: Remove file.
841 * config/sparc/sol2-64.mt: Remove file.
842 * config/sparc/sol2.mt: Remove file.
843 * config/sparc/sparc64.mt: Remove file.
844 * config/sparc/sparc.mt: Remove file.
845 * config/spu/spu.mt: Remove file.
846 * config/v850/v850.mt: Remove file.
847 * config/vax/nbsd.mt: Remove file.
848 * config/vax/obsd.mt: Remove file.
849 * config/vax/vax.mt: Remove file.
850 * config/xstormy16/xstormy16.mt: Remove file.
851 * config/xtensa/xtensa.mt: Remove file.
853 * configure.tgt (gdb_target_cpu): Remove. Do not set anywhere.
854 (gdb_target): Likewise.
855 (gdb_target_obs): Document. Set for every target to contents
856 of TDEPFILES in former .mt makefile fragment.
858 * configure.ac (TARGET_OBS): Define.
859 (target_makefile_frag, gdb_target_cpu): Do not define.
860 * configure: Regenerate.
862 * Makefile.in (MT_FLAGS): Remove.
863 (GLOBAL_CFLAGS): Update.
864 (TARGET_OBS): Substitute from configure.
865 (DEPFILES): Remove TDEPFILES, add TARGET_OBS.
866 (@target_makefile_frag@): Remove.
868 2007-11-16 Ulrich Weigand <uweigand@de.ibm.com>
870 * config/arm/embed.mt (SIM_OBS, SIM): Remove.
871 * config/avr/avr.mt (SIM_OBS, SIM): Remove.
872 * config/frv/frv.mt (SIM_OBS, SIM): Remove.
873 * config/h8300/h8300.mt (SIM_OBS, SIM): Remove.
874 * config/iq2000/iq2000.mt (SIM_OBS, SIM): Remove.
875 * config/m32c/m32c.mt (SIM_OBS, SIM): Remove.
876 * config/m32r/linux.mt (SIM_OBS, SIM): Remove.
877 * config/m32r/m32r.mt (SIM_OBS, SIM): Remove.
878 * config/m68hc11/m68hc11.mt (SIM_OBS, SIM): Remove.
879 * config/mips/embed.mt (SIM_OBS, SIM): Remove.
880 * config/mips/linux.mt (SIM_OBS, SIM): Remove.
881 * config/mips/nbsd.mt (SIM_OBS, SIM): Remove.
882 * config/mn10300/mn10300.mt (SIM_OBS, SIM): Remove.
883 * config/powerpc/linux.mt (SIM_OBS, SIM): Remove.
884 * config/powerpc/nbsd.mt (SIM_OBS, SIM): Remove.
885 * config/powerpc/ppc-sim.mt: Remove file.
886 * config/sh/embed.mt (SIM_OBS, SIM): Remove.
887 * config/sh/linux.mt (SIM_OBS, SIM): Remove.
888 * config/sh/nbsd.mt (SIM_OBS, SIM): Remove.
889 * config/sh/sh64.mt (SIM_OBS, SIM): Remove.
890 * config/sparc/embed.mt (SIM_OBS, SIM): Remove.
891 * config/v850/v850.mt (SIM_OBS, SIM): Remove.
892 * config/xstormy16/xstormy16.mt (SIM_OBS, SIM): Remove.
894 * configure.tgt (gdb_sim): Document variable.
895 (arm*-*-* | thumb*-*-* | strongarm*-*-* | xscale-*-*): Set it.
898 (h8300-*-*): Likewise.
899 (iq2000-*-*): Likewise.
900 (m32c-*-*): Likewise.
901 (m32r*-*-linux*): Likewise.
902 (m32r*-*-*): Likewise.
903 (m68hc11*-*-*|m6811*-*-*): Likewise.
904 (mips*-*-*): Likewise.
905 (mips*-*-linux*): Likewise.
906 (mips*-*-netbsd* | mips*-*-knetbsd*-gnu): Likewise.
907 (mn10300-*-*): Likewise.
908 (powerpc-*-linux* | powerpc64-*-linux*): Likewise.
909 (powerpc-*-netbsd* | powerpc-*-knetbsd*-gnu): Likewise.
910 (powerpc*-*-*): Use ppc-eabi target. Conditionally set gdb_sim.
912 (sh-*-linux*): Likewise.
913 (sh*-*-netbsdelf* | sh*-*-knetbsd*-gnu): Likewise.
914 (sh64-*-elf*): Likewise.
915 (sparc-*-rtems*): Likewise.
916 (v850*-*-elf): Likewise.
917 (xstormy16-*-*): Likewise.
919 * configure.ac (IGNORE_SIM, IGNORE_SIM_OBS): Do not set.
920 (SIM, SIM_OBS): Set depending on ${ignore_sim} and ${gdb_sim}.
921 * configure: Regenerate.
922 * Makefile.in (SIM, SIM_OBS): Substitute from configure.
923 (@IGNORE_SIM@, @IGNORE_SIM_OBS@): Remove.
925 2007-11-16 Ulrich Weigand <uweigand@de.ibm.com>
927 * configure.tgt (gdb_osabi, build_gdbserver): Comment variables.
928 (arm*-*-*): Do not set obsolete build_rdi_share variable.
930 (*-*-freebsd* | *-*-kfreebsd*-gnu): Remove generic case, replace by ...
931 (alpha*-*-freebsd* | alpha*-*-kfreebsd*-gnu)
932 (i[34567]86-*-freebsd* | i[34567]86-*-kfreebsd*-gnu)
933 (sparc*-*-freebsd* | sparc*-*-kfreebsd*-gnu): ... specific cases.
934 (x86_64-*-freebsd* | x86_64-*-kfreebsd*-gnu): Re-sort.
936 (xscale-*-*): Merge into arm*-*-* case.
937 (fido-*-elf*): Merge into m68*-*-elf* case.
938 (m68*-*-aout*, m68*-*-coff*, m68*-*-elf*, m68*-*-rtems*,
939 m68*-*-uclinux*): Merge cases.
940 (powerpc-*-linux*, powerpc64-*-linux*): Merge cases.
941 (sh-*-coff*, sh-*-elf*): Merge into sh* case.
943 2007-11-16 Ulrich Weigand <uweigand@de.ibm.com>
945 * configure.tgt: Reformat main case statement.
947 2007-11-16 Ulrich Weigand <uweigand@de.ibm.com>
949 * configure.ac (hostfile, targetfile): Remove.
950 (GDB_XM_FILE, GDB_TM_FILE): Do not define.
951 (xm_h, tm_h): Likewise.
952 (DEPRECATED_TM_FILE, XM_FILE): Do not substitute into Makefile.
953 * configure, config.in: Regenerate.
955 * Makefile.in (xm_h, tm_h): Remove. Update dependencies.
956 (TAGS): Do not consider DEPRECATED_TM_FILE or XM_FILE.
957 (clean, local-maintainer-clean): Do not remove xm.h or tm.h.
958 * defs.h: Do not include "xm.h" or "tm.h".
960 * gdbarch.sh (verify_gdbarch): Do not dump GDB_XM_FILE or GDB_TM_FILE.
961 * gdbarch.c: Regenerate.
963 * config/score/embed.mt: Remove obsolete comment.
965 2007-11-16 Markus Deuling <deuling@de.ibm.com>
967 * gdbarch.sh (cannot_fetch_register, cannot_store_register): Add gdbarch
969 * gdbarch.{c,h}: Regenerate.
971 * alpha-tdep.c (alpha_cannot_fetch_register)
972 (alpha_cannot_store_register): Add gdbarch as parameter. Replace
973 current_gdbarch by gdbarch.
974 * cris-tdep.c (cris_cannot_fetch_register, cris_cannot_store_register)
975 (crisv32_cannot_fetch_register)
976 (crisv32_cannot_store_register): Likewise.
977 * arch-utils.c (cannot_register_not): Likewise.
978 * arch-utils.h (cannot_register_not): Likewise.
979 * hppa-tdep.c (hppa32_cannot_store_register)
980 (hppa32_cannot_store_register, hppa64_cannot_store_register)
981 (hppa64_cannot_fetch_register): Likewise.
982 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register)
983 (mipsnbsd_cannot_store_register): Likewise.
985 2007-11-16 Markus Deuling <deuling@de.ibm.com>
987 * m32r-rom.c (m32r_supply_register): Use get_regcache_arch to get at
988 the current architecture by regcache.
989 * ppcnbsd-nat.c (ppcnbsd_supply_pcb): Likewise.
990 * ppc-linux-nat.c (fetch_altivec_register, fetch_spe_register)
991 (fetch_register, supply_vrregset, fetch_ppc_registers)
992 (store_altivec_register, store_spe_register, store_register)
993 (fill_vrregset, store_ppc_registers): Likewise.
994 * ppcobsd-nat.c (ppcobsd_supply_pcb): Likewise.
995 * win32-nat.c (do_win32_fetch_inferior_registers)
996 (do_win32_store_inferior_registers): Likewise.
997 * procfs.c (procfs_fetch_registers, procfs_store_registers): Likewise.
998 * remote-m32r-sdi.c (m32r_fetch_registers)
999 (m32r_store_registers): Likewise.
1000 * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register): Likewise.
1002 * trad-frame.c (trad_frame_alloc_saved_regs): Replace current_gdbarch by
1004 * user-regs.c (user_reg_map_name_to_regnum): Likewise.
1005 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call)
1006 (do_ppc_sysv_return_value, ppc64_sysv_abi_push_dummy_call)
1007 (ppc64_sysv_abi_return_value): Likewise.
1008 * m32c-tdep.c (m32c_register_reggroup_p): Likewise.
1009 * m2-lang.c (build_m2_types): Likewise.
1010 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache
1011 * ppcnbsd-tdep.c (ppcnbsd_sigtramp_cache_init): Likewise.
1012 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_cache): Likewise.
1013 * rs6000-tdep.c (ppc_dwarf2_frame_init_reg): Likewise.
1015 * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Use get_frame_arch to
1016 get at the current architecture by frame_info.
1017 * gcore.c (derive_stack_segment): Likewise.
1019 * shnbsd-nat.c (GETREGS_SUPPLIES): Add gdbarch parameter.
1020 (shnbsd_fetch_inferior_registers, shnbsd_store_inferior_registers): Add
1021 gdbarch to GETREGS_SUPPLIES call.
1023 2007-11-16 Ulrich Weigand <uweigand@de.ibm.com>
1025 * elfread.c (ST_REGULAR, ST_DYNAMIC, ST_SYNTHETIC): New defines.
1026 (elf_symtab_read): Rename DYNAMIC argument to TYPE. Do not access
1027 ELF-private symbol data when processing synthetic symbols. Use
1028 udata.p to get at size of ppc64 synthetic 'dot' symbols.
1029 (elf_symfile_read): Pass TYPE argument to elf_symtab_read.
1031 2007-11-15 Doug Evans <dje@google.com>
1033 * buildsym.h (subfiles): Move ...
1034 * buildsym.c (subfiles): ... to here and make static.
1036 * symmisc.c (maintenance_info_symtabs): Print linetable info.
1038 2007-11-15 Markus Deuling <deuling@de.ibm.com>
1040 * mipsnbsd-tdep.h (SIZEOF_STRUCT_REG, SIZEOF_STRUCT_FPREG): Remove
1042 2007-11-15 Markus Deuling <deuling@de.ibm.com>
1044 * arm-tdep.c (arm_prologue_this_id): Replace LOWEST_PC by its
1045 expression and use get_frame_arch to replace current_gdbarch by frame's
1047 * arm-tdep.h (LOWEST_PC): Remove
1049 2007-11-15 Vladimir Prus <vladimir@codesourcery.com>
1051 Apply const qualifier to some users of bp_location.
1052 * breakpoint.h (struct bpstats): Make
1053 the breakpoint_at field point at const bp_location.
1054 * breakpoint.c (bpstat_alloc): Accept const
1056 (breakpoint_here_p, breakpoint_inserted_here_p)
1057 (software_breakpoint_inserted_here_p)
1058 (breakpoint_thread_match, bpstat_stop_status)
1059 (read_memory_nobpt, bpstat_have_active_hw_watchpoints): Use
1060 const bp_location for iteration.
1061 (print_it_typical, print_bp_stop_message): Use
1062 const bp_location variable.
1064 2007-11-15 Vladimir Prus <vladimir@codesourcery.com>
1066 Make mark_breakpoints_out static.
1067 * breakpoint.h (mark_breakpoints_out): Remove
1069 * breakpoint.c (mark_breakpoints_out): Make static.
1071 2007-11-15 Vladimir Prus <vladimir@codesourcery.com>
1073 Prevent clear_command from directly modifying breakpoint list.
1074 * Makefile.in (breakpoint_h): Update dependency.
1075 * breakpoint.c (clear_command): Do not remove
1076 breakpoints from breakpoint_chain. Collect breakpoints
1077 to delete in a vector.
1078 * breakpoint.h (breakpoint_p): New typedef for pointer to
1079 breakpoint. Register vector of breakpoint_p.
1081 2007-11-15 Vladimir Prus <vladimir@codesourcery.com>
1083 Remove 'run_cleanup'.
1084 * defs.h (do_run_cleanups, make_run_cleanup): Remove
1086 * infcmd.c (run_command_1): Call clear_solib instead
1088 * jv-lang.c (java_rerun_cleanup): Remove, for lack of
1090 * solib.c (solib_cleanup_queued, do_clear_solib): Remove.
1091 (update_solib_lib): Don't setup run cleanup.
1092 (no_shared_libraries): Call clear_solib, not do_clear_solib.
1093 * utils.c (run_cleanup_chain, make_run_cleanup)
1094 (do_run_cleanups): Remove.
1096 2007-11-15 Vladimir Prus <vladimir@codesourcery.com>
1098 Remove CLEAR_SOLIB use.
1099 * corelow.c (core_close): Don't check for CLEAR_SOLIB.
1100 * infcmd.c (attach_command): Likewise.
1102 2007-11-14 Doug Evans <dje@google.com>
1104 * buildsym.c (start_subfile,start_symtab): Doc fixes.
1106 2007-11-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
1108 * tui/tui-data.c (tui_prev_win): Guard against NULL.
1110 2007-11-12 Markus Deuling <deuling@de.ibm.com>
1112 * gdbarch.sh (gdbarch_alloc): Replace current_gdbarch by gdbarch. Remove
1114 (verify_gdbarch, gdbarch_dump): Likewise.
1115 (do_read): Update comment.
1116 (addr_bit, bfd_arch_info, target_desc, long_long_bit, floatformat)
1117 (ptr_bit, name_of_malloc): Replace current_gdbarch by gdbarch.
1118 * gdbarch.{c,h}: Regenerate.
1120 2007-11-12 Markus Deuling <deuling@de.ibm.com>
1122 * xtensa-tdep.c (ARG_1ST): Replace ARGS_FIRST_REG by its expression.
1123 (ARGS_FIRST_REG): Remove.
1124 (areg_numer): New function.
1125 (xtensa_pseudo_register_read, xtensa_frame_prev_register)
1126 (xtensa_extract_return_value, xtensa_store_return_value)
1127 (xtensa_frame_cache): Replace AREG_NUMBER by areg_number.
1128 (AREG_NUMBER): Remove.
1129 (XTENSA_IS_ENTRY, ARG_NOF, ARG_1ST): Add gdbarch as parameter.
1130 (xtensa_frame_cache): Update use of XTENSA_IS_ENTRY.
1131 (xtensa_push_dummy_call): Update use of ARG_NOF.
1132 (extract_call_winsize): Add gdbarch as parameter. Replace
1133 current_gdbarch by gdbarch.
1134 (xtensa_extract_return_value, xtensa_store_return_value): Update call
1135 of extract_call_winsize.
1137 2007-11-10 Joel Brobecker <brobecker@adacore.com>
1139 * NEWS: Add entry for new set/show print frame-args command.
1141 2007-11-09 Kevin Buettner <kevinb@redhat.com>
1143 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Add missing
1144 register number to map. Adjust warning check and error/warning
1145 return value code to match expectations of this function's callers.
1147 2007-11-09 Joel Brobecker <brobecker@adacore.com>
1149 * stack.c (print_this_frame_argument_p): Handle arguments passed
1150 by reference properly.
1152 2007-11-09 Joel Brobecker <brobecker@adacore.com>
1154 * stack.c (print_frame_arguments_choices): New static global.
1155 (print_frame_arguments): Likewise.
1156 (print_this_frame_argument_p): New function.
1157 (print_frame_args): Print the argument value only when appropriate.
1158 (_initialize_task): Add new "set/show print frame-arguments" command.
1160 2007-11-09 Luis Machado <luisgpm@br.ibm.com>
1162 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Move
1163 saved_dabr_value assignment to the correct position.
1165 2007-11-09 Markus Deuling <deuling@de.ibm.com>
1167 * arch-utils.c (generic_convert_register_p): Add gdbarch as parameter.
1168 * arch-utils.h (generic_convert_register_p): Likewise.
1170 2007-11-09 Markus Deuling <deuling@de.ibm.com>
1172 * gdbarch.sh (convert_register_p): Add gdbarch as parameter.
1173 * ia64-tdep.c (ia64_convert_register_p): Likewise.
1174 * i387-tdep.c (i387_convert_register_p): Likewise.
1175 * i387-tdep.h (i387_convert_register_p): Likewise.
1176 * alpha-tdep.c (alpha_convert_register_p): Likewise.
1177 * gdbarch.{c,h}: Regenerate.
1179 * rs6000-tdep.c (rs6000_convert_register_p): Add gdbarch as parameter.
1180 Replace current_gdbarch by gdbarch.
1181 * mips-tdep.c (mips_convert_register_p): Likewise.
1182 * m68k-tdep.c (m68k_convert_register_p): Likewise.
1183 * i386-tdep.c (i386_convert_register_p): Likewise.
1185 2007-11-08 Aleksandar Ristovski <aristovski@qnx.com>
1187 * gdb_string.h: Include <strings.h>.
1189 2007-11-08 Vladimir Prus <vladimir@codesourcery.com>
1191 * breakpoint.c (break_command_1): Remove
1192 pending_bp parameter.
1193 (create_breakpoint): Likewise.
1194 (create_breakpoints): Likewise. Adjust call to
1196 (break_command_1): Likewise. Adjust call to
1198 (do_captured_breakpoint): Adjust call to
1200 (break_command, tbreak_command, hbreak_command)
1201 (stopin_command, stopat_command): Adjust call
1204 2007-11-07 Joseph Myers <joseph@codesourcery.com>
1205 Daniel Jacobowitz <dan@codesourcery.com>
1207 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Right-align
1208 struct values smaller than one doubleword; left-align those
1209 larger. Pass structs containing a single floating-point value in
1212 2007-11-07 Joseph Myers <joseph@codesourcery.com>
1213 Daniel Jacobowitz <dan@codesourcery.com>
1215 * gdbtypes.c (floatformats_ibm_long_double): New.
1216 * gdbtypes.h (floatformats_ibm_long_double): Declare.
1217 * ia64-tdep.c (floatformat_ia64_ext): Update for addition of
1219 * mips-tdep.c (n32n64_floatformat_always_valid,
1220 floatformat_n32n64_long_double_big, floatformats_n32n64_long):
1222 (mips_gdbarch_init): Use floatformats_ibm_long_double instead of
1223 floatformats_n32n64_long.
1224 * ppc-linux-tdep.c (ppc_linux_init_abi): Use 128-bit IBM long
1226 * doublest.c (convert_floatformat_to_doublest,
1227 convert_doublest_to_floatformat): Handle split floating-point
1229 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Handle IBM long
1231 (ppc64_sysv_abi_push_dummy_call): Likewise.
1232 (do_ppc_sysv_return_value): Handle IBM long double return.
1234 2007-11-07 Vladimir Prus <vladimir@codesourcery.com>
1236 Fix crash when a variable object being deleted
1237 has any of its children deleted previously.
1239 * varobj.c (delete_variable_1): Don't recurse
1240 into deleted children.
1242 2007-11-07 Markus Deuling <deuling@de.ibm.com>
1244 * gdbarch.sh (legacy_virtual_frame_pointer): Add gdbarch parameter.
1245 * gdbarch.{c,h}: Regenerate.
1246 * arch-utils.c (legacy_virtual_frame_pointer): Add gdbarch parameter.
1247 Replace current_gdbarch by gdbarch.
1248 * m32c-tdep.c (m32c_virtual_frame_pointer): Likewise.
1249 * mips-tdep.c (mips_virtual_frame_pointer): Likewise.
1250 * spu-tdep.c (spu_virtual_frame_pointer): Likewise.
1252 2007-11-07 Markus Deuling <deuling@de.ibm.com>
1254 * shnbsd-tdep.c (shnbsd_supply_gregset, shnbsd_collect_gregset): Use
1255 get_regcache_arch to get at the current architecture by regcache.
1256 * xstormy16-tdep.c (xstormy16_frame_prev_register): Use get_frame_arch
1257 to get at the current architecture by frame_info.
1258 * fbsd-nat.c (fbsd_make_corefile_notes): Use get_regcache_arch to get
1259 at the current architecture by regcache.
1260 * gnu-v3-abi.c (gnuv3_skip_trampoline): Use get_frame_arch to get at
1261 the current architecture by frame_info.
1262 (build_gdb_vtable_type): Replace current_gdbarch by gdbarch.
1263 * aix-thread.c (special_register_p): Add gdbarch as parameter.
1264 (fetch_regs_kernel_thread, store_regs_kernel_thread): Add gdbarch to
1265 caller of special_register_p.
1267 2007-11-07 Markus Deuling <deuling@de.ibm.com>
1269 * infcall.c (call_function_by_hand): Use get_frame_arch to get at the
1270 current architecture by frame_info.
1272 2007-11-07 Markus Deuling <deuling@de.ibm.com>
1274 * xtensa-tdep.h (SIZEOF_GREGSET, XTENSA_ELF_NGREG) Remove.
1276 2007-11-07 Markus Deuling <deuling@de.ibm.com>
1278 * s390-nat.c (supply_gregset, fill_gregset): Use get_regcache_arch to
1279 get at the current architecture by regcache.
1280 (SUBOFF): Add gdbarch to macro definition.
1282 2007-11-07 Markus Deuling <deuling@de.ibm.com>
1284 * gdbarch.sh (breakpoint_from_pc): Add gdbarch parameter.
1285 * gdbarch.{c,h}: Regenerate.
1287 * xtensa-tdep.c (xtensa_breakpoint_from_pc): Add gdbarch parameter.
1288 Replace current_gdbarch by gdbarch.
1289 * sh-tdep.c (sh_breakpoint_from_pc): Likewise.
1290 * sh64-tdep.c (sh64_breakpoint_from_pc): Likewise.
1291 * score-tdep.c (score_breakpoint_from_pc): Likewise.
1292 * mips-tdep.c (mips_breakpoint_from_pc): Likewise.
1293 * m32r-tdep.c (m32r_breakpoint_from_pc): Likewise.
1294 * iq2000-tdep.c (iq2000_breakpoint_from_pc): Likewise.
1295 * arm-tdep.c (arm_breakpoint_from_pc): Likewise.
1297 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Add gdbarch
1299 * vax-tdep.c (vax_breakpoint_from_pc): Likewise.
1300 * v850-tdep.c (v850_breakpoint_from_pc): Likewise.
1301 * spu-tdep.c (spu_breakpoint_from_pc): Likewise.
1302 * sparc-tdep.c (sparc_breakpoint_from_pc): Likewise.
1303 * s390-tdep.c (s390_breakpoint_from_pc): Likewise.
1304 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Likewise.
1305 * mt-tdep.c (mt_breakpoint_from_pc): Likewise.
1306 * mep-tdep.c (mep_breakpoint_from_pc): Likewise.
1307 * m88k-tdep.c (m88k_breakpoint_from_pc): Likewise.
1308 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Likewise.
1309 * m32c-tdep.c (m32c_breakpoint_from_pc): Likewise.
1310 * ia64-tdep.c (ia64_breakpoint_from_pc): Likewise.
1311 * i386-tdep.c (i386_breakpoint_from_pc): Likewise.
1312 * hppa-tdep.c (hppa_breakpoint_from_pc): Likewise.
1313 * h8300-tdep.c (h8300_breakpoint_from_pc): Likewise.
1314 * frv-tdep.c (frv_breakpoint_from_pc): Likewise.
1315 * cris-tdep.c (cris_breakpoint_from_pc): Likewise.
1316 * avr-tdep.c (avr_breakpoint_from_pc): Likewise.
1317 * alpha-tdep.c (alpha_breakpoint_from_pc): Likewise.
1318 * m68k-tdep.c (m68k_local_breakpoint_from_pc): Likewise.
1320 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Add gdbarch parameter.
1321 Replace current_gdbarch by gdbarch.
1322 (rs6000_software_single_step): Use get_frame_arch to get at the
1323 current architecture by frame_info. Add gdbarch to
1324 rs6000_breakpoint_from_pc call.
1326 2007-11-07 Markus Deuling <deuling@de.ibm.com>
1328 * frv-tdep.c (frv_register_name, frv_check_watch_resources): Replace
1329 macro CURRENT_VARIANT by its expression.
1330 (CURRENT_VARIANT): Remove.
1331 (frv_check_watch_resources): Add gdbarch parameter.
1333 2007-11-07 Markus Deuling <deuling@de.ibm.com>
1335 * MAINTAINERS (Write After Approval): Add self.
1337 2007-11-05 Ulrich Weigand <uweigand@de.ibm.com>
1339 * features/rs6000/power-core.xml: Use uint32 as register type.
1340 * features/rs6000/power64-core.xml: Use uint64/uint32 as register type.
1341 * features/rs6000/powerpc-32.c: Regenerate.
1342 * features/rs6000/powerpc-403.c: Regenerate.
1343 * features/rs6000/powerpc-403gc.c: Regenerate.
1344 * features/rs6000/powerpc-505.c: Regenerate.
1345 * features/rs6000/powerpc-602.c: Regenerate.
1346 * features/rs6000/powerpc-603.c: Regenerate.
1347 * features/rs6000/powerpc-604.c: Regenerate.
1348 * features/rs6000/powerpc-64.c: Regenerate.
1349 * features/rs6000/powerpc-7400.c: Regenerate.
1350 * features/rs6000/powerpc-750.c: Regenerate.
1351 * features/rs6000/powerpc-860.c: Regenerate.
1352 * features/rs6000/powerpc-e500.c: Regenerate.
1354 2007-11-05 Joel Brobecker <brobecker@adacore.com>
1356 * breakpoint.c (set_raw_breakpoint_without_location): Make static.
1358 2007-11-05 Joel Brobecker <brobecker@adacore.com>
1360 * breakpoint.h (create_solib_load_event_breakpoint)
1361 (create_solib_unload_event_breakpoint)
1362 (create_fork_event_catchpoint, create_vfork_event_catchpoint)
1363 (create_exec_event_catchpoint): Delete declaration.
1364 * breakpoint.c (create_solib_load_event_breakpoint)
1365 (solib_load_unload_1, create_solib_unload_event_breakpoint): Delete.
1366 (create_fork_event_catchpoint, create_vfork_event_catchpoint)
1367 (create_exec_event_catchpoint): Make static.
1369 2007-11-05 Joel Brobecker <brobecker@adacore.com>
1371 * breakpoint.h (set_breakpoint_sal): Remove declaration.
1372 * breakpoint.c (set_breakpoint_sal): Delete.
1374 2007-11-05 Joel Brobecker <brobecker@adacore.com>
1376 * buildsym.c (finish_block): Remove "#if 1"/"#endif" brackets.
1377 (make_blockvector): Likewise. Remove FIXME comment.
1379 2007-11-05 Luis Machado <luisgpm@br.ibm.com>
1381 * printcmd.c: (printf_command): Add support for new DFP
1382 modifiers %H, %D and %DD.
1383 * configure.ac: Add check for DECFLOAT printf support.
1384 * configure: Regenerated.
1386 2007-11-02 Ulrich Weigand <uweigand@de.ibm.com>
1388 * gdbtypes.h (struct cplus_struct_type): Remove runtime_ptr member.
1389 (TYPE_RUNTIME_PTR, TYPE_VTABLE, TYPE_HAS_VTABLE,
1390 TYPE_PRIMARY_BASE, TYPE_VIRTUAL_BASE_LIST): Remove macros.
1391 (HP_ACC_VFUNC_START, HP_ACC_VBASE_START, HP_ACC_TYPEINFO_OFFSET,
1392 HP_ACC_TOP_OFFSET_OFFSET): Likewise.
1393 (has_vtable, primary_base_class, virtual_base_list_length,
1394 virtual_base_list_length_skip_primaries, virtual_base_index,
1395 virtual_base_index_skip_primaries, class_index_in_primary_list,
1396 count_virtual_fns): Remove prototypes.
1397 * gdbtypes.c (has_vtable, primary_base_class, current_vbase_list,
1398 virtual_base_list_aux, virtual_base_list, virtual_base_list_length,
1399 virtual_base_list_length_skip_primaries, virtual_base_index,
1400 virtual_base_index_skip_primaries, class_index_in_primary_list,
1401 count_virtual_fns): Remove.
1403 * cp-valprint.c (cp_print_hpacc_virtual_table_entries): Remove.
1404 (hpacc_vtbl_ptr_name, hpacc_vtbl_ptr_type_name): Remove.
1405 (cp_print_value_fields): Remove support for HP aCC vtables.
1406 (cp_print_value): Likewise.
1407 * c-typeprint.c (c_type_print_base): Likewise.
1409 * value.h (find_rt_vbase_offset): Remove prototype.
1410 * valops.c (find_rt_vbase_offset): Remove.
1411 (search_struct_method): Remove support for HP aCC vtables.
1412 (find_method_list): Likewise.
1414 2007-11-02 Ulrich Weigand <uweigand@de.ibm.com>
1416 * language.h (struct language_defn): Remove la_builtin_type_vector
1417 and string_char_type members.
1418 * language.c (language_string_char_type): No longer consult
1419 la->string_char_type.
1420 (language_lookup_primitive_type_by_name): No longer consult
1421 current_language->la_builtin_type_vector.
1423 * language.c (unknown_language_defn, auto_language_defn,
1424 local_language_defn): Adapt initializer.
1425 * ada-lang.c (ada_language_defn): Likewise.
1426 * c-lang.c (c_language_defn, cplus_language_defn, asm_language_defn,
1427 minimal_language_defn): Likewise.
1428 * f-lang.c (f_language_defn): Likewise.
1429 * jv-lang.c (java_language_defn): Likewise.
1430 * m2-lang.c (m2_language_defn): Likewise.
1431 * objc-lang.c (objc_language_defn): Likewise.
1432 * p-lang.c (pascal_language_defn): Likewise.
1433 * scm-lang.c (scm_language_defn): Likewise.
1435 2007-11-02 Markus Deuling <deuling@de.ibm.com>
1437 * frame.c (frame_id_inner): Add gdbarch parameter. Replace
1438 current_gdbarch by gdbarch.
1439 (frame_find_by_id, get_prev_frame_1): Use get_frame_arch to get at the
1440 current architecture by frame_info.
1441 * frame.h (frame_id_inner): Add gdbarch parameter.
1442 * stack.c (return_command): Use get_frame_arch to get at the current
1443 architecture by frame_info. Update call of frame_id_inner.
1444 * infrun.c (handle_inferior_event): Likewise.
1445 * dummy-frame.c (dummy_frame_push): Use get_regcache_arch to get at the
1446 current architecture by regcache. Update call of frame_id_inner.
1448 2007-11-02 Markus Deuling <deuling@de.ibm.com>
1450 * gdbarch.sh (register_name): Add gdbarch parameter.
1451 * gdbarch.{c,h}: Regenerate.
1453 * target-descriptions.c (tdesc_register_name): Add gdbarch parameter.
1454 (tdesc_register_name): Replace current_gdbarch by gdbarch.
1455 * target-descriptions.h (tdesc_register_name): Add gdbarch parameter.
1457 * xstormy16-tdep.c (xstormy16_register_name): Add gdbarch parameter.
1458 * vax-tdep.c (vax_register_name): Add gdbarch parameter.
1459 * spu-tdep.c (spu_register_name): Add gdbarch parameter.
1460 * s390-tdep.c (s390_register_name): Add gdbarch parameter.
1461 * mt-tdep.c (mt_register_name): Add gdbarch parameter.
1462 (mt_registers_info): Replace current_gdbarch by gdbarch.
1463 (mt_register_reggroup_p): Add gdbarch to mt_register_name call.
1464 * mips-tdep.c (mips_register_name): Add gdbarch parameter. Replace
1465 current_gdbarch by gdbarch.
1466 (mips_register_name): Add gdbarch to tdesc_register_name call.
1467 * mep-tdep.c (mep_register_name): Add gdbarch parameter. Replace
1468 current_gdbarch by gdbarch.
1469 (mep_register_reggroup_p): Add gdbarch to mep_register_name call.
1470 * m32c-tdep.c (m32c_register_name): Add gdbarch parameter. Replace
1471 current_gdbarch by gdbarch.
1472 * m88k-tdep.c (m88k_register_name): Add gdbarch parameter.
1473 * m68k-tdep.c (m68k_register_name): Add gdbarch parameter.
1474 * m32r-tdep.c (m32r_register_name): Add gdbarch parameter.
1475 (m32r_frame_unwind_cache): Use get_frame_arch to get at the current
1476 architecture by frame_info.
1477 * iq2000-tdep.c (iq2000_register_name): Add gdbarch parameter.
1478 * ia64-tdep.c (ia64_register_name): Add gdbarch parameter.
1479 * hppa-tdep.c (hppa32_register_name, hppa64_register_name): Add gdbarch
1481 * h8300-tdep.c (h8300_register_name, h8300s_register_name)
1482 (h8300sx_register_name): Add gdbarch parameter.
1483 * cris-tdep.c (cris_register_name, crisv32_register_name): Add
1484 gdbarch parameter. Replace current_gdbarch by gdbarch.
1485 (cris_gdbarch_init): Replace current_gdbarch by gdbarch (comment).
1486 * avr-tdep.c (avr_register_name): Add gdbarch parameter.
1487 * arm-tdep.c (arm_register_name): Add gdbarch paramete
1488 * amd64-tdep.c (amd64_register_name): Add gdbarch parameter. Update
1490 * amd64-tdep.h (amd64_register_name): Add gdbarch parameter.
1491 * amd64-linux-tdep.c (amd64_linux_register_name): Add gdbarch parameter.
1492 * alpha-tdep.c (alpha_register_name): Add gdbarch parameter.
1493 (alpha_cannot_fetch_register, alpha_cannot_store_register): Update call
1494 of alpha_register_name.
1495 * frv-tdep.c (frv_register_name): Add gdbarch parameter.
1496 * i386-tdep.c (i386_register_name): Add gdbarch parameter. Replace
1497 current_gdbarch by gdbarch.
1498 (i386_register_type): Replace ?current_gdbarch by gdbarch.
1499 * i386-tdep.h (i386_register_name): Add gdbarch parameter.
1500 * i386-linux-tdep.c (i386_linux_register_name): Add gdbarch parameter.
1502 * m68hc11-tdep.c (m68hc11_register_name): Add gdbarch parameter.
1503 (m68hc11_register_reggroup_p): Add gdbarch to call of
1504 m68hc11_register_name.
1505 * mn10300-tdep.c (mn10300_generic_register_name, am33_register_name)
1506 (am33_2_register_name): Add gdbarch parameter.
1507 (mn10300_frame_unwind_cache): Use get_frame_arch to get at the current
1508 architecture by frame_info.
1509 (mn10300_dump_tdep): Replace current_gdbarch by gdbarch.
1510 * rs6000-tdep.c (rs6000_register_name): Add gdbarch parameter. Replace
1511 current_gdbarch by gdbarch.
1512 * score-tdep.c (score_register_name): Add gdbarch parameter.
1513 (score_return_value, score_push_dummy_call): Replace current_gdbarch
1515 * sh64-tdep.c (sh64_register_name): Add gdbarch parameter.
1516 (sh64_compact_reg_base_num, sh64_register_convert_to_virtual)
1517 (sh64_register_convert_to_raw, sh64_fv_reg_base_num)
1518 (sh64_dr_reg_base_num, sh64_fpp_reg_base_num): Add gdbarch parameter
1519 and update caller. Replace current_gdbarch by gdbarch.
1520 (sh64_extract_return_value, sh64_store_return_value): Use
1521 get_regcache_arch to get at the current architecture by regcache.
1522 * sh-tdep.c (sh_sh_register_name, sh_sh3_register_name)
1523 (sh_sh3e_register_name, sh_sh2e_register_name, sh_sh2a_register_name)
1524 (sh_sh2a_nofpu_register_name, sh_sh_dsp_register_name)
1525 (sh_sh3_dsp_register_name, sh_sh4_register_name)
1526 (sh_sh4_nofpu_register_name, sh_sh4al_dsp_register_name): Add gdbarch
1528 (fv_reg_base_num, dr_reg_base_num, sh_justify_value_in_reg)
1529 (sh_next_flt_argreg): Add gdbarch parameter and update caller. Replace
1530 current_gdbarch by gdbarch.
1531 (sh_extract_return_value_fpu, sh_store_return_value_fpu): Use
1532 get_regcache_arch to get at the current architecture by regcache.
1533 * sparc-tdep.c (sparc32_register_name): Add gdbarch parameter.
1534 * sparc64-tdep.c (sparc64_register_name): Add gdbarch parameter.
1535 * v850-tdep.c (v850_register_name, v850e_register_name): Add gdbarch
1537 (v850_unwind_sp, v850_unwind_pc): Replace current_gdbarch by gdbarch.
1538 * xtensa-tdep.c (xtensa_register_name): Add gdbarch parameter. Replace
1539 current_gdbarch by gdbarch.
1540 (xtensa_pseudo_register_read, xtensa_pseudo_register_write)
1541 (xtensa_frame_prev_register): Add gdbarch parameter to
1542 xtensa_register_name call.
1544 2007-10-31 Ulrich Weigand <uweigand@de.ibm.com>
1546 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Fall back to
1547 find_solib_trampoline_target if PC is not in .plt section.
1549 2007-10-31 Ulrich Weigand <uweigand@de.ibm.com>
1551 * elfread.c (elf_symtab_read): When constructing a solib trampoline
1552 minimal symbol from an undefined dynamic symbol, use proper section.
1554 2007-10-31 Markus Deuling <deuling@de.ibm.com>
1556 * arm-linux-nat.c (fetch_register, fetch_regs): Use get_regcache_arch
1557 to get at the current architecture by regcache.
1559 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1561 * libunwind-frame.c (libunwind_frame_sniffer)
1562 libunwind_frame_prev_register, libunwind_sigtramp_frame_sniffer)
1563 (libunwind_frame_cache): Use get_frame_arch to get at the current
1564 architecture by frame_info.
1565 (libunwind_get_reg_special): Replace current_gdbarch by gdbarch.
1567 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1569 * iq2000-tdep.c (iq2000_frame_prev_register): Use get_frame_arch to get
1570 at the current architecture by frame_info.
1572 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1574 * inf-child.c (inf_child_fetch_inferior_registers): Use
1575 get_regcache_arch to get at the current architecture by regcache.
1577 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1579 * inf-ptrace.c (inf_ptrace_fetch_registers)
1580 (inf_ptrace_fetch_register, inf_ptrace_store_register)
1581 (inf_ptrace_store_registers): Use get_regcache_arch to get at the
1582 current architecture by regcache.
1584 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1586 * hpux-thread.c (hpux_thread_fetch_registers)
1587 (hpux_thread_store_registers): Use get_regcache_arch to get at the
1588 current architecture by regcache.
1590 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1592 * hppa-tdep.c (hppa_frame_cache): Use get_frame_arch to get at the
1593 current architecture by frame_info.
1595 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1597 * go32-nat.c (fetch_register, go32_fetch_registers, store_register)
1598 (go32_store_registers): Use get_regcache_arch to get at the current
1599 architecture by regcache.
1601 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1603 * gdbtypes.c (gdbtypes_post_init): Replace current_gdbarch by gdbarch.
1605 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1607 * frv-linux-tdep.c (frv_linux_sigtramp_frame_cache): Use get_frame_arch
1608 to get at the current architecture by frame_info.
1610 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1612 * f-lang.c (build_fortran_types): Replace current_gdbarch by gdbarch.
1614 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1616 * core-regset.c (fetch_core_registers): Use get_regcache_arch to get at
1617 the current architecture by regcache.
1619 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1621 * corelow.c (get_core_registers): Use get_regcache_arch to get at the
1622 current architecture by regcache.
1624 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1626 * bsd-uthread.c (bsd_uthread_fetch_registers)
1627 (bsd_uthread_store_registers): Use get_regcache_arch to get at the
1628 current architecture by regcache.
1630 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1632 * avr-tdep.c (avr_frame_unwind_cache, avr_frame_prev_register): Use
1633 get_frame_arch to get at the current architecture by frame_info.
1635 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1637 * arm-tdep.c (arm_get_next_pc): Replace current_gdbarch by gdbarch.
1639 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1641 * armnbsd-nat.c (arm_supply_gregset, fetch_register, store_register)
1642 (store_regs): Use get_regcache_arch to get at the current architecture
1645 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1647 * arm-linux-tdep.c (arm_linux_supply_gregset): Use get_regcache_arch
1648 to get at the current architecture by regcache.
1650 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1652 * alphabsd-nat.c (alphabsd_fetch_inferior_registers)
1653 (alphabsd_store_inferior_registers): Use get_regcache_arch to get at
1654 the current architecture by regcache.
1656 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1658 * ada-lang.c (ada_language_arch_info): Replace current_gdbarch by
1661 2007-10-30 Daniel Jacobowitz <dan@codesourcery.com>
1663 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Check the selected
1664 soft float and vector ABIs. Support the generic vector ABI for
1666 (do_ppc_sysv_return_value): Likewise. Correct argument types and
1668 (ppc64_sysv_abi_push_dummy_call): Assert that floating point is
1670 * ppc-tdep.h (enum powerpc_vector_abi): New.
1671 (struct gdbarch_tdep): Add soft_float and vector_abi.
1672 * rs6000-tdep.c (setpowerpccmdlist, showpowerpccmdlist)
1673 (powerpc_soft_float_global, powerpc_vector_strings)
1674 (powerpc_vector_abi_global, powerpc_vector_abi_string): New.
1675 (rs6000_gdbarch_init): Check for soft-float and vector ABI markings.
1676 (set_powerpc_command, show_powerpc_command, powerpc_set_soft_float)
1677 (powerpc_set_vector_abi): New.
1678 (_initialize_rs6000_tdep): Register "set powerpc" and "show powerpc"
1680 * Makefile.in (elf_ppc_h): New.
1681 (rs6000-tdep.o): Update.
1683 2007-10-29 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
1685 * ppc-linux-tdep.c (ppc32_linux_reg_offsets): Corrected
1686 swapped offsets and VRSAVE offset.
1687 (ppc64_linux_reg_offsets): Corrected swapped offsets.
1688 (ppc32_linux_vrregset): Added.
1689 (ppc_linux_regset_from_core_section): Added support for
1690 .reg-ppc-vmx section.
1691 * ppc-tdep.h (ppc_altivec_support_p): Declare.
1692 (ppc_supply_vrregset): Declare.
1693 (ppc_collect_vrregset): Declare.
1694 * rs6000-tdep.c (ppc_altivec_support_p): Added.
1695 (ppc_supply_vrregset): Added.
1696 (ppc_collect_vrregset): Added.
1697 * corelow.c (get_core_registers): Added support for
1698 .reg-ppc-vmx section.
1700 2007-10-29 Joel Brobecker <brobecker@adacore.com>
1704 2007-10-26 Jim Blandy <jimb@codesourcery.com>
1706 * ax-gdb.h (expr_to_address_and_size): Delete declaration for
1709 * tracepoint.c (tracepoint_operation): Report the deletion event
1710 after we have unlinked the tracepoint from the list, and use the
1711 proper tracepoint number.
1713 * ax-gdb.c (expr_to_agent): Delete unused function.
1714 (expr_to_address_and_size): Delete #if 0'd function.
1715 * ax-gdb.h (expr_to_agent): Delete declaration.
1717 * ax-gdb.c (gen_cast): Remove redundant assignment to
1718 value->type. Doc fix.
1720 * ax-general.c (gen_traced_pop, gen_int_literal)
1721 (gen_usual_arithmetic): Check for typedefs.
1723 2007-10-26 Joel Brobecker <brobecker@adacore.com>
1725 * parse.c (prefixify_expression): Minor reformatting.
1727 2007-10-25 Daniel Jacobowitz <dan@codesourcery.com>
1729 * version.in: Use dot instead of dash.
1731 2007-10-25 Daniel Jacobowitz <dan@codesourcery.com>
1733 * linux-thread-db.c (check_for_thread_db): Only print if info_verbose.
1735 2007-10-25 Pedro Alves <pedro_alves@portugalmail.pt>
1737 * memory-map.c (parse_memory_map): Don't use an empty struct
1740 2007-10-25 Pedro Alves <pedro_alves@portugalmail.pt>
1742 * signals/signals.c (signals): Update pointer to enum
1743 target_signal declaration.
1745 2007-10-25 Wu Zhou <woodzltc@cn.ibm.com>
1746 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
1747 Jim Blandy <jimb@codesourcery.com>
1749 * dwarf2read.c (read_partial_die): check the value
1750 of DW_AT_calling_convention in Fortran programs.
1752 2007-10-25 Wu Zhou <woodzltc@cn.ibm.com>
1753 Thiago Jung Bauermann <bauerman@br.ibm.com>
1755 * c-exp.y (YYSTYPE): Add typed_val_decfloat for decimal
1756 floating point in YYSTYPE union.
1757 (DECFLOAT) Add token and expression element handling code.
1758 (parse_number): Parse DFP constants, which end with suffix 'df',
1759 'dd' or 'dl'. Return DECFLOAT.
1760 * eval.c (evaluate_subexp_standard): Call value_from_decfloat to
1762 * expression.h (enum exp_opcode): Add an opcode (OP_DECFLOAT)
1764 (union exp_element): Add decfloatconst to represent DFP
1765 elements, which is 16 bytes by default.
1766 * parse.c (write_exp_elt_decfloatcst): New function to write a
1767 decimal float const into the expression.
1768 (operator_length_standard): Set operator length for OP_DECFLOAT
1770 * parser-defs.h (write_exp_elt_decfloatcst): Prototype.
1771 * valarith.c (value_neg): Add code to handle the negation
1772 operation of DFP values.
1773 * value.c (value_from_decfloat): New function to get the value
1774 from a decimal floating point.
1775 * value.h (value_from_decfloat): Prototype.
1777 2007-10-25 Wu Zhou <woodzltc@cn.ibm.com>
1778 Thiago Jung Bauermann <bauerman@br.ibm.com>
1780 * c-lang.c (c_create_fundamental_type): Create fundamental
1782 * c-typeprint.c (c_type_print_varspec_prefix): Add
1783 TYPE_CODE_DECFLOAT to no prefix needed case.
1784 (c_type_print_varspec_suffix): Add TYPE_CODE_DECFLOAT to no
1786 * c-valprint.c (c_val_print): Call print_decimal_floating to
1788 * dwarf2read.c (read_base_type): Read DW_ATE_decimal_float
1789 attribute code and return TYPE_CODE_DECFLOAT.
1790 (dwarf_base_type): Set dwarf2_fundamental_type for DFP values.
1791 * gdbtypes.c (gdbtypes_post_init): Initialize builtin_decfloat,
1792 builtin_decdouble and builtin_declong.
1793 * gdbtypes.h (enum type_code): Add TYPE_CODE_DECFLOAT as a
1795 (FT_DECFLOAT, FT_DBL_PREC_DECFLOAT, FT_EXT_PREC_DECFLOAT): New
1796 types, for decimal floating point.
1797 (FT_NUM_MEMBERS): Increment, new types added.
1798 (struct builtin_type): Add builtin_decfloat, builtin_decdouble
1799 and builtin_declong.
1800 * valprint.c (print_decimal_floating): New function to print DFP
1802 * value.h (print_decimal_floating): Prototype.
1804 2007-10-25 Wu Zhou <woodzltc@cn.ibm.com>
1805 Thiago Jung Bauermann <bauerman@br.ibm.com>
1807 * Makefile.in (LIBDECNUMBER_DIR, LIBDECNUMBER, LIBDECNUMBER_SRC
1808 LIBDECNUMBER_CFLAGS): New macros for libdecnumber.
1809 (INTERNAL_CFLAGS_BASE): Add LIBDECNUMBER_CFLAGS in.
1810 (INSTALLED_LIBS): Add -ldecnumber in.
1811 (CLIBS): Add LIBDECNUMBER in.
1812 (decimal128_h, decimal64_h, decimal32_h): New macros for decimal
1814 (dfp_h): New macros for decimal floating point.
1815 (dfp.o): New target.
1816 (COMMON_OBS): Add dfp.o in.
1817 (c-exp.o): Add dfp_h as dependency.
1818 (valprint.o): Add dfp_h as dependency.
1819 (value.o): Add dfp_h as dependency.
1820 * dfp.h: New header file for decimal floating point support in
1822 * dfp.c: New source file for decimal floating point support in
1823 GDB. Implement decimal_from_string and decimal_to_string based
1824 on libdecnumber API.
1825 * configure.ac: Add AC_C_BIGENDIAN test.
1826 * config.in, configure: Regenerate.
1828 2007-10-25 David Ung <davidu@mips.com>
1829 Maciej W. Rozycki <macro@mips.com>
1832 * infcmd.c (registers_info): Check for a user register before
1833 calling target's gdbarch_print_registers_info(). If found to be
1834 so, extract the implicit value of user register and call
1835 print_scalar_formatted().
1836 * Makefile.in: (infcmd.o): Add $(user_regs_h).
1838 2007-10-25 Joel Brobecker <brobecker@adacore.com>
1840 * NEWS: Document status of hppa64-hpux support.
1842 2007-10-24 Ulrich Weigand <uweigand@de.ibm.com>
1844 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets): Call
1845 set_solib_ops to install SVR4 operations.
1846 (_initialize_svr4_solib): Do not set current_target_so_ops.
1848 * config/i386/i386gnu.mh (NATDEPFILES): Move solib.o, solib-svr4.o ...
1849 * config/i386/i386gnu.mt (TDEPFILES): ... to here.
1851 2007-10-24 Ulrich Weigand <uweigand@de.ibm.com>
1853 * solib-svr4.c (legacy_svr4_fetch_link_map_offsets_hook): Remove.
1854 (solib_svr4_init): Initialize fetch_link_map_offsets to NULL.
1855 * solib-svr4.h (legacy_svr4_fetch_link_map_offsets_hook): Remove.
1856 * solib-legacy.c: Remove file.
1858 * config/alpha/alpha-linux.mt (TDEPFILES): Remove solib-legacy.o.
1859 * config/arm/linux.mt (TDEPFILES): Likewise.
1860 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
1861 * config/ia64/linux.mt (TDEPFILES): Likewise.
1862 * config/m32r/linux.mt (TDEPFILES): Likewise.
1863 * config/powerpc/linux.mt (TDEPFILES): Likewise.
1864 * config/s390/s390.mt (TDEPFILES): Likewise.
1866 * alpha-linux-tdep.c (alpha_linux_init_abi): Call
1867 set_solib_svr4_fetch_link_map_offsets.
1868 * i386gnu-tdep.c (i386gnu_init_abi): Likewise.
1869 * ia64-linux-tdep.c (ia64_linux_init_abi): Likewise.
1871 * i386gnu-tdep.c: Include "solib-svr4.h".
1872 * Makefile.in: Update dependencies.
1874 2007-10-24 Ulrich Weigand <uweigand@de.ibm.com>
1876 * i386-nto-tdep.c: Include "solib.h".
1877 (i386nto_init_abi): Use set_solib_ops instead of overwriting
1878 current_target_so_ops members.
1879 * solist.h (TARGET_SO_RELOCATE_SECTION_ADDRESSES): Remove.
1880 (TARGET_SO_FIND_AND_OPEN_SOLIB): Remove.
1881 (TARGET_SO_IN_DYNSYM_RESOLVE_CODE): Remove.
1882 * Makefile.in: Update dependencies.
1884 2007-10-24 Ulrich Weigand <uweigand@de.ibm.com>
1886 * arm-wince-tdep.c: Include "solib.h" and "solib-target.h".
1887 (arm_wince_init_abi): Call set_solib_ops.
1888 * i386-cygwin-tdep.c: Include "solib.h" and "solib-target.h".
1889 (i386_cygwin_init_abi): Call set_solib_ops.
1890 * solib-target.c: Include "solib-target.h".
1891 (solib_target_so_ops): Make global.
1892 (_initialize_solib_target): Do not set current_target_so_ops.
1893 * solib-target.h: New file.
1894 * Makefile.in: Update dependencies.
1896 2007-10-24 Ulrich Weigand <uweigand@de.ibm.com>
1898 * mips-irix-tdep.c: Include "gdb_string.h", "solib.h", "solib-irix.h".
1899 (mips_irix_init_abi): Call set_solib_ops.
1900 * solib-irix.c: Include "solib.h" and "solib-irix.h".
1901 (irix_so_ops): Make global.
1902 (_initialize_irix_solib): Do not set current_target_so_ops.
1903 * solib-irix.h: New file.
1904 * Makefile.in: Update dependencies.
1906 2007-10-24 Ulrich Weigand <uweigand@de.ibm.com>
1908 * configure.tgt: Remove hppa*64*-*-hpux11* special case.
1909 * config/pa/hppa64.mt: Delete file.
1910 * config/pa/hppahpux.mt (MT_CFLAGS): Remove.
1911 (TDEPFILES): Move somread.o to ...
1912 * config/pa/hpux.mh (NATDEPFILES): ... here.
1914 * configure.ac: Add check for elf_hp.h header.
1915 Search libdl and libxpdl for dlgetmodinfo.
1916 * config.in, configure: Regenerate.
1917 * solib-pa64.c: Conditionalize compilation on #ifdef HAVE_ELF_HP_H
1918 instead of #ifndef PA_SOM_ONLY. Include "solib.h".
1919 (pa64_solib_select): Take gdbarch instead of tdep argument. Call
1920 set_solib_ops instead of modifying current_target_so_ops.
1921 * solib-pa64.h (pa64_solib_select): Update prototype.
1922 * solib-som.c: Remove include of "som.h". Include "solib.h".
1923 (som_solib_select): Take gdbarch instead of tdep argument. Call
1924 set_solib_ops instead of modifying current_target_so_ops.
1925 * solib-som.h (som_solib_select): Update prototype.
1926 * hppa-hpux-tdep.c (hppa_hpux_som_init_abi): Pass gdbarch instead
1927 of tdep to som_solib_select call.
1928 (hppa_hpux_elf_init_abi): Pass gdbarch instead of tdep to
1929 pa64_solib_select call.
1930 * Makefile.in: Update dependencies.
1932 2007-10-24 Ulrich Weigand <uweigand@de.ibm.com>
1934 * frv-tdep.c: Include "solib.h".
1935 (frv_gdbarch_init): Call set_solib_ops.
1936 * frv-tdep.h (struct target_so_ops): Add forward reference.
1937 (frv_so_ops): Add extern declaration.
1938 * solib-frv.c (frv_so_ops): Make global.
1939 (_initialize_frv_solib): Do not set current_target_so_ops.
1940 * Makefile.in: Update dependencies.
1942 2007-10-24 Ulrich Weigand <uweigand@de.ibm.com>
1944 * solib.c (solib_global_lookup): Use solib_ops instead of global
1945 current_target_so_ops.
1947 2007-10-24 Ulrich Weigand <uweigand@de.ibm.com>
1949 * config/frv/frv.mt (DEPRECATED_TM_FILE): Remove.
1950 * config/frv-tm-frv.h: Delete file.
1952 2007-10-24 Daniel Jacobowitz <dan@codesourcery.com>
1954 * NEWS: Mention gdbserver support for non-libthread_db operation.
1956 2007-10-24 Daniel Jacobowitz <dan@codesourcery.com>
1958 * amd64-tdep.c (amd64_convert_register_p): Delete.
1959 (amd64_init_abi): Use i387_convert_register_p.
1960 * alpha-tdep.c (alpha_convert_register_p): Return zero for
1962 (alpha_register_to_value, alpha_value_to_register): Do not handle
1964 * i386-tdep.c (i386_convert_register_p): Use i387_convert_register_p.
1965 * i387-tdep.c (i387_convert_register_p): New.
1966 (i387_register_to_value, i387_value_to_register): Update comments.
1967 * i387-tdep.h (i387_convert_register_p): Declare.
1968 * ia64-tdep.c (ia64_convert_register_p): Return zero for
1969 builtin_type_ia64_ext.
1970 (ia64_gdbarch_init): Do not initialize builtin_type_ia64_ext here.
1971 (_initialize_ia64_tdep): Initialize builtin_type_ia64_ext here.
1972 * m68k-tdep.c (m68k_convert_register_p): Return zero for
1973 builtin_type_m68881_ext.
1974 (m68k_register_to_value, m68k_value_to_register): Update comments.
1976 2007-10-24 Nathan Sidwell <nathan@codesourcery.com>
1978 * target-memory.c (claim_memory): Propagate baton for split memory
1981 2007-10-24 Pedro Alves <pedro_alves@portugalmail.pt>
1984 * sol-thread.c (sol_thread_fetch_registers): Work around gcc 3.4
1987 2007-10-24 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
1989 * symtab.c (find_line_symtab): scan through psymtabs
1990 when exact_match is zero.
1992 2007-10-23 Atsushi Nemoto <anemo@mba.ocn.ne.jp>
1994 * mips-tdep.c (LL_OPCODE, LLD_OPCODE, SC_OPCODE, SCD_OPCODE): Define.
1995 (deal_with_atomic_sequence): New.
1996 (mips_software_single_step): Use it.
1998 2007-10-23 Daniel Jacobowitz <dan@codesourcery.com>
2001 * configure.ac: Modify $LIBINTL before the BFD check.
2002 * configure: Regenerated.
2004 2007-10-23 Joel Brobecker <brobecker@adacore.com>
2006 * buildsym.c (free_pending_blocks): Remove commented-out code.
2007 (make_blockvector): Likewise. Re-use free_pending_blocks.
2008 (end_symtab): Remove commented-out code.
2010 2007-10-22 Daniel Jacobowitz <dan@codesourcery.com>
2012 * top.c (command_loop): Fix output for shrinkage.
2014 2007-10-22 Daniel Jacobowitz <dan@codesourcery.com>
2016 * cp-name-parser.y (exp1): Add & ( var ) as a reference expression.
2017 (exp): Remove and document function-like casts.
2019 2007-10-22 Daniel Jacobowitz <dan@codesourcery.com>
2021 * cp-support.c: Include "safe-ctype.h".
2022 (cp_already_canonical): New function.
2023 (cp_canonicalize_string): Use it. Return NULL for already canonical
2025 (mangled_name_to_comp): Update call to cp_demangled_name_to_comp.
2026 (cp_func_name, remove_params): Likewise.
2027 (cp_find_first_component_aux): Use ISSPACE.
2028 * cp-support.h (cp_demangled_name_to_comp): Correct comment. Remove
2030 * cp-name-parser.y (ALLOC_CHUNK): Define.
2031 (struct demangle_info): Add PREV and NEXT. Increase the size of
2033 (d_grab): Convert to a function.
2034 (allocate_info): Rewrite.
2035 (cp_demangled_name_to_comp): Remove MEMORY argument. Do not use
2036 strlen. Update call to allocate_info. Do not free it on failure.
2037 (main): Update calls to cp_demangled_name_to_comp.
2038 * Makefile.in (cp-support.o): Update.
2040 2007-10-22 Markus Deuling <deuling@de.ibm.com>
2042 * std-regs.c (value_of_builtin_frame_fp_reg)
2043 value_of_builtin_frame_pc_reg, value_of_builtin_frame_sp_reg)
2044 value_of_builtin_frame_ps_reg): Use get_frame_arch to get at the
2045 current architecture by frame_info.
2047 2007-10-22 Markus Deuling <deuling@de.ibm.com>
2049 * reggroups.c (default_register_reggroup_p): Replace current_gdbarch
2052 2007-10-22 Markus Deuling <deuling@de.ibm.com>
2054 * infcmd.c (default_print_registers_info, print_return_value)
2055 (print_vector_info, print_float_info): Replace current_gdbarch by
2057 (registers_info): Use get_frame_arch to get at the current
2058 architecture by frame_info.
2060 2007-10-22 Markus Deuling <deuling@de.ibm.com>
2062 * i387-tdep.c (i387_collect_fsave, i387_collect_fxsave): Use
2063 get_regcache_arch to get at the current architecture by regcache.
2065 2007-10-22 Markus Deuling <deuling@de.ibm.com>
2067 * target.c (debug_print_register): Use get_regcache_arch to get at the
2068 current architecture by regcache.
2070 2007-10-21 Daniel Jacobowitz <dan@codesourcery.com>
2072 * dwarf2read.c (read_file_scope): Add a comment.
2073 (dwarf2_add_field, dwarf2_add_member_fn, read_structure_type)
2074 (read_enumeration_type, process_enumeration_scope, read_array_type)
2075 (read_typedef, read_base_type, read_subrange_type)
2076 (read_unspecified_type): Use dwarf2_name.
2078 2007-10-21 Daniel Jacobowitz <dan@codesourcery.com>
2080 * coffread.c (coff_symfile_finish): Call dwarf2_free_objfile.
2081 * dwarf2read.c (dwarf2_free_objfile): New.
2082 * elfread.c (elf_symfile_finish): Call dwarf2_free_objfile.
2083 * symfile.h (dwarf2_free_objfile): Declare.
2085 2007-10-21 Joel Brobecker <brobecker@adacore.com>
2087 * hppa-hpux-nat.c (hppa_hpux_store_register): Add missing semi-colon.
2089 2007-10-21 Luis Machado <luisgpm@br.ibm.com>
2091 * rs6000-tdep.c (ppc_dwarf2_frame_init_reg): New function.
2092 * (rs6000_gdbarch_init): Install ppc_dwarf2_frame_init_reg as
2093 default dwarf2_frame_set_init_reg function.
2095 2007-10-21 Pedro Alves <pedro_alves@portugalmail.pt>
2097 * NEWS: Mention native MinGW configuration.
2099 2007-10-19 Ulrich Weigand <uweigand@de.ibm.com>
2101 * gdbarch.sh: Remove "macro" column of input table. Remove handling
2102 of "macro" column throughout the file. Remove (empty) "macro" entry
2103 of all gdbarch functions.
2105 2007-10-19 Ulrich Weigand <uweigand@de.ibm.com>
2107 * gdbarch.sh (sofun_address_maybe_missing): New gdbarch variable.
2108 * gdbarch.c, gdbarch.h: Regenerate.
2109 * dbxread.c (find_stab_function_addr): Define unconditionally.
2110 (read_dbx_symtab): Use gdbarch_sofun_address_maybe_missing
2111 instead of SOFUN_ADDRESS_MAYBE_MISSING.
2112 (end_psymtab): Likewise.
2113 (process_one_symbol): Likewise.
2114 * mdebugread.c (parse_partial_symbols): Likewise.
2116 * symtab.h (struct minimal_symbol): Always define "filename" member.
2117 * elfread.c (elf_symtab_read): Use msym->filename unconditionally.
2118 * minsyms.c (lookup_minimal_symbol): Likewise.
2119 * symmisc.c (dump_msymbols): Likewise.
2121 * config/i386/i386sol2.mt (DEPRECATED_TM_FILE): Remove.
2122 * config/i386/linux.mt (DEPRECATED_TM_FILE): Remove.
2123 * config/i386/tm-i386sol2.h: Remove file.
2124 * config/i386/tm-linux.h: Remove file.
2125 * i386-linux-tdep.c (i386_linux_init_abi): Add call to
2126 set_gdbarch_sofun_address_maybe_missing.
2127 * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
2129 * config/powerpc/linux.mt (DEPRECATED_TM_FILE): Remove.
2130 * config/powerpc/nbsd.mt (DEPRECATED_TM_FILE): Remove.
2131 * config/powerpc/obsd.mt (DEPRECATED_TM_FILE): Remove.
2132 * config/powerpc/ppc-eabi.mt (DEPRECATED_TM_FILE): Remove.
2133 * config/powerpc/ppc-sim.mt (DEPRECATED_TM_FILE): Remove.
2134 * config/powerpc/tm-ppc-eabi.h: Remove file.
2135 * rs6000-tdep.c (rs6000_gdbarch_init): Add call to
2136 set_gdbarch_sofun_address_maybe_missing.
2138 * config/sparc/sol2-64.mt (DEPRECATED_TM_FILE): Remove.
2139 * config/sparc/sol2.mt (DEPRECATED_TM_FILE): Remove.
2140 * config/sparc/tm-sol2.h: Remove file.
2141 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Add call to
2142 set_gdbarch_sofun_address_maybe_missing.
2143 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Likewise.
2145 2007-10-19 Ulrich Weigand <uweigand@de.ibm.com>
2147 * gdbarch.sh (static_transform_name): New gdbarch callback.
2148 * gdbarch.c, gdbarch.h: Regenerate.
2149 * dbxread.c (read_dbx_symtab): Use gdbarch_static_transform_name
2150 instead of STATIC_TRANSFORM_NAME.
2151 * mdebugread.c (parse_partial_symbols): Likewise.
2152 * stabsread.c (define_symbol): Likewise.
2153 * xcoffread.c (scan_xcoff_symtab): Likewise.
2155 * config/i368/tm-i386sol2.h (STATIC_TRANSFORM_NAME): Remove.
2156 (IS_STATIC_TRANSFORM_NAME): Remove.
2157 * i386-tdep.c (sunpro_static_transform_name): Remove, move to ...
2158 * i386-sol2-tdep.c (i386_sol2_static_transform_name): ... here.
2159 (i386_sol2_init_abi): Install it.
2161 * config/sparc/tm-sol2.h (STATIC_TRANSFORM_NAME): Remove.
2162 (IS_STATIC_TRANSFORM_NAME): Remove.
2163 * sparc-tdep.c (sparc_stabs_unglobalize_name): Remove, move to ...
2164 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): ... here.
2165 (sparc32_sol2_init_abi): Install it.
2166 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Likewise.
2167 * sparc-tdep.h (sparc_sol2_static_transform_name): Add prototype.
2169 2007-10-18 Daniel Jacobowitz <dan@codesourcery.com>
2171 * mips-tdep.c (mips_xfer_register): Take a gdbarch argument.
2172 (mips_n32n64_return_value, mips_o32_return_value)
2173 (mips_o64_return_value): Update calls to mips_xfer_register.
2175 2007-10-17 Daniel Jacobowitz <dan@codesourcery.com>
2177 * frame.c (frame_unwind_unsigned_register): Delete.
2178 (frame_sp_unwind): Use frame_unwind_register_unsigned instead.
2179 * frame.h (frame_unwind_unsigned_register): Delete prototype.
2181 * alpha-linux-tdep.c, alpha-mdebug-tdep.c, alpha-tdep.c,
2182 avr-tdep.c, cris-tdep.c, frv-tdep.c, m68hc11-tdep.c, mn10300-tdep.c,
2183 mt-tdep.c: Replace frame_unwind_unsigned_register with
2184 frame_unwind_register_unsigned.
2186 2007-10-16 Pedro Alves <pedro_alves@portugalmail.pt>
2188 * config/i386/mingw.mh, config/i386/mingw.mt: New files.
2189 * configure.tgt (i[34567]86-*-mingw32*): Set gdb_target = mingw.
2190 * win32-nat.c: Only include cygwin.h on Cygwin host. Don't
2192 (cygwin_load_start, cygwin_load_end, cygwin_exceptions): Disable
2193 if not building on Cygwin.
2194 (win32_make_so, handle_output_debug_string, handle_exception)
2195 (do_initial_win32_stuff): Wrap Cygwin specific code in __CYGWIN__.
2196 (win32_attach): Only fallback to Cygwin pids if building on
2198 (win32_pid_to_exec_file): Disable Cygwin specific code, if not
2200 (win32_create_inferior): Disable starting the inferior through a
2201 shell, environment var processing and tty handling if not building
2203 (cygwin_pid_to_str): Rename to ...
2204 (win32_pid_to_str): ... this.
2205 (init_win32_ops): Update use of win32_pid_to_str. Disable "shell"
2206 and "cygwin-exceptions" commands if not building on Cygwin.
2208 2007-10-16 Gaius Mulley <gaius@glam.ac.uk>
2210 * doc/gdb.texinfo: Add TSIZE definition, removed
2211 statement about unbounded arrays being unimplemented.
2212 * m2-valprint.c (m2_print_array_contents): New function.
2213 (m2_print_unbounded_array): New function.
2214 (m2_print_array_contents): New function.
2215 * m2-typeprint.c (m2_unbounded_array): New function.
2216 (m2_is_unbounded_array): New function.
2217 (m2_print_type): Test for unbounded array when walking
2219 * m2-lang.h: Added extern m2_is_unbounded_array.
2220 * m2-lang.c (evaluate_subexp_modula2): New function.
2221 (exp_descriptor_modula2): New structure.
2222 (m2_language_defn): Use exp_descriptor_modula2.
2223 * m2-exp.y: Added TSIZE and binary subscript.
2225 2007-10-16 Daniel Jacobowitz <dan@codesourcery.com>
2227 * mi/mi-main.c (captured_mi_execute_command): Clear mi_error_message
2230 2007-10-16 Kevin Buettner <kevinb@redhat.com>
2232 * m32r-tdep.c (decode_prologue): Sign extend offset for
2234 (m32r_frame_unwind_cache): Likewise.
2236 2007-10-15 Thiago Jung Bauermann <bauerman@br.ibm.com>
2238 * rs6000-tdep.c (skip_prologue): Restore comment with
2239 function description to its proper place.
2241 2007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
2243 * NEWS: Mention gdbserver PowerPC improvements.
2245 2007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
2247 * features/Makefile (WHICH): Add PowerPC register definitions.
2248 (rs6000/powerpc-32-expedite, rs6000/powerpc-e500-expedite)
2249 (rs6000/powerpc-64-expedite): New macros.
2250 ($(outdir)/%.dat): Handle subdirectories.
2251 * regformats/rs6000/powerpc-32.dat, regformats/rs6000/powerpc-64.dat,
2252 regformats/rs6000/powerpc-e500.dat: New generated files.
2254 2007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
2256 * ppc-linux-nat.c (ppc_linux_read_description): New.
2257 (_initialize_ppc_linux_nat): Set to_read_description.
2258 * ppc-tdep.h (tdesc_powerpc_e500): Declare.
2260 2007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
2262 * NEWS: Document target described register support for PowerPC.
2263 * ppc-tdep.h: Remove ppc_spr constants.
2264 (struct gdbarch_tdep): Remove regs, ppc_sr0_regnum, and
2265 ppc_builtin_type_vec128 members.
2266 (PPC_R0_REGNUM, PPC_F0_REGNUM, PPC_PC_REGNUM, PPC_MSR_REGNUM)
2267 (PPC_CR_REGNUM, PPC_LR_REGNUM, PPC_CTR_REGNUM, PPC_XER_REGNUM)
2268 (PPC_FPSCR_REGNUM, PPC_MQ_REGNUM, PPC_SPE_UPPER_GP0_REGNUM)
2269 (PPC_SPE_ACC_REGNUM, PPC_SPE_FSCR_REGNUM, PPC_VR0_REGNUM)
2270 (PPC_VSCR_REGNUM, PPC_VRSAVE_REGNUM, PPC_NUM_REGS): New constants.
2271 * rs6000-tdep.c: Include preparsed descriptions.
2272 (init_sim_regno_table): Do not iterate over pseudo registers.
2273 Look up segment registers by name. Use sim_spr_register_name
2275 (rs6000_register_sim_regno): Call init_sim_regno_table here.
2276 (rs6000_builtin_type_vec128): Delete.
2277 (rs6000_register_name): Only handle SPE pseudo registers and upper
2278 halves. Call tdesc_register_name for everything else.
2279 (rs6000_register_type): Delete. Replace with...
2280 (rs6000_pseudo_register_type): ...this new function. Only handle
2281 SPE pseudo registers.
2282 (rs6000_register_reggroup_p): Delete. Replace with...
2283 (rs6000_pseudo_register_reggroup_p): ...this new function. Only
2284 handle SPE pseudo registers.
2285 (rs6000_convert_register_p): Use ppc_fp0_regnum instead of
2287 (rs6000_register_to_value, rs6000_value_to_register): Remove check
2289 (e500_register_reggroup_p): Delete.
2290 (STR, R, R4, R8, R16, F, P8, R32, R64, R0, A4, S, S4, SN4, S64)
2291 (COMMON_UISA_REGS, PPC_UISA_SPRS, PPC_UISA_NOFP_SPRS)
2292 (PPC_SEGMENT_REGS, PPC_OEA_SPRS, PPC_ALTIVEC_REGS, PPC_SPE_GP_REGS)
2293 (PPC_SPE_UPPER_GP_REGS, PPC_EV_PSEUDO_REGS): Delete macros.
2294 (registers_powerpc, registers_403, registers_403GC, registers_505)
2295 (registers_860, registers_601, registers_602, registers_603)
2296 (registers_604, registers_750, registers_7400, registers_e500): Delete
2298 (struct variant): Delete nregs, npregs, num_tot_regs, and regs. Add
2300 (tot_num_registers, num_registers, num_pseudo_registers): Delete.
2301 (variants): Delete outdated comment. Use standard target descriptions
2302 instead of "struct reg" arrays.
2303 (init_variants): Delete.
2304 (rs6000_gdbarch_init): Do not guess word size from the BFD
2305 architecture if we have a target description. Select a variant
2306 before creating a new architecture. Use the variant's target
2307 description if the target did not define a register layout.
2308 Validate target-supplied registers. Reject mismatches. Use
2309 fixed register numbers and new constants instead of magic
2310 numbers. Call set_gdbarch_ps_regnum. Call tdesc_use_registers.
2311 (_initialize_rs6000_tdep): Initialize the preparsed target
2313 * target-descriptions.c (tdesc_predefined_types): Add int128 and
2315 (tdesc_find_register_early): New function.
2316 (tdesc_numbered_register): Use it.
2317 (tdesc_register_size): New function.
2318 (tdesc_use_registers): Take a target_desc argument. Do not use
2319 gdbarch_target_desc.
2320 * target-descriptions.h (tdesc_use_registers): Update prototype
2322 (tdesc_register_size): New prototype.
2323 * Makefile.in (powerpc_32_c, powerpc_403_c, powerpc_403gc_c)
2324 (powerpc_505_c, powerpc_601_c, powerpc_602_c, powerpc_603_c)
2325 (powerpc_604_c, powerpc_64_c, powerpc_7400_c, powerpc_750_c)
2326 (powerpc_860_c, powerpc_e500_c, rs6000_c): New macros.
2327 (rs6000-tdep.o): Update.
2328 * arm-tdep.c (arm_gdbarch_init): Update call to tdesc_use_registers.
2329 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
2330 * mips-tdep.c (mips_gdbarch_init): Likewise.
2332 2007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
2334 * features/rs6000/powerpc-32.c, features/rs6000/powerpc-403.c,
2335 features/rs6000/powerpc-403gc.c, features/rs6000/powerpc-505.c,
2336 features/rs6000/powerpc-601.c, features/rs6000/powerpc-602.c,
2337 features/rs6000/powerpc-603.c, features/rs6000/powerpc-604.c,
2338 features/rs6000/powerpc-64.c, features/rs6000/powerpc-7400.c,
2339 features/rs6000/powerpc-750.c, features/rs6000/powerpc-860.c,
2340 features/rs6000/powerpc-e500.c, features/rs6000/rs6000.c: New
2343 2007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
2345 * features/rs6000/power-altivec.xml, features/rs6000/power-core.xml,
2346 features/rs6000/power-fpu.xml, features/rs6000/power-oea.xml,
2347 features/rs6000/power-spe.xml, features/rs6000/power64-core.xml: New
2348 feature descriptions for standard PowerPC register sets.
2350 * features/rs6000/powerpc-32.xml, features/rs6000/powerpc-403.xml,
2351 features/rs6000/powerpc-403gc.xml, features/rs6000/powerpc-505.xml,
2352 features/rs6000/powerpc-601.xml, features/rs6000/powerpc-602.xml,
2353 features/rs6000/powerpc-603.xml, features/rs6000/powerpc-604.xml,
2354 features/rs6000/powerpc-64.xml, features/rs6000/powerpc-7400.xml,
2355 features/rs6000/powerpc-750.xml, features/rs6000/powerpc-860.xml,
2356 features/rs6000/powerpc-e500.xml, features/rs6000/rs6000.xml: New
2357 target descriptions for PowerPC processors.
2359 2007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
2361 * target-descriptions.c (tdesc_predefined_types): New.
2362 (tdesc_named_type): Use it.
2363 (tdesc_type_id, maint_print_c_tdesc_cmd): New functions.
2364 (_intialize_target_descriptions): Register "maint print c-tdesc".
2365 * features/Makefile (XMLTOC, CFILES, GDB): New macros.
2366 (cfiles, %.c): New rules.
2367 * features/arm-with-iwmmxt.c, features/mips-linux.c,
2368 features/mips64-linux.c: New generated files.
2370 * arm-linux-nat.c: Include preparsed description instead of
2372 (super_xfer_partial, arm_linux_xfer_partial): Remove.
2373 (arm_linux_read_description): New function.
2374 (_initialize_arm_linux_nat): Set to_read_description instead of
2375 to_xfer_partial. Initialize preparsed description.
2376 * config/arm/linux.mh (TDEP_XML): Delete.
2377 * mips-linux-nat.c: Include preparsed descriptions instead of
2379 (super_xfer_partial, mips_linux_xfer_partial): Remove.
2380 (mips_linux_read_description): New function.
2381 (_initialize_mips_linux_nat): Set to_read_description instead of
2382 to_xfer_partial. Initialize preparsed description.
2383 * config/mips/linux.mh (TDEP_XML): Delete.
2384 * Makefile.in (XMLFILES): Remove $(TDEP_XML).
2385 (features_headers, arm_with_iwmmxt_c, mips_linux_c)
2386 (mips64_linux_c): New macros.
2387 (arm-linux-nat.o, mips-linux-nat.o): Update.
2389 2007-10-15 Pierre Muller <muller@ics.u-strasbg.fr>
2391 * cp-abi.c (set_cp_abi_as_auto_default): ARI fix:
2392 Replace xasprintf by xstrprintf.
2393 symfile-mem.c (add_vsyscall_page): Ditto.
2395 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
2397 * ia64-linux-nat.c (ia64_register_addr): Add gdbarch parameter,
2398 replacing use of global current_gdbarch.
2399 (ia64_cannot_fetch_register, ia64_cannot_store_register): Likewise.
2400 (ia64_linux_fetch_register, ia64_linux_store_register): Update callers.
2402 * ia64-tdep.c (SIGCONTEXT_REGISTER_ADDRESS): Remove macro.
2403 (ia64_sigtramp_frame_init_saved_regs): Add next_frame parameter,
2404 replace uses of SIGCONTEXT_REGISTER_ADDRESS.
2405 (ia64_sigtramp_frame_cache): Update caller.
2407 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
2409 * gdbarch.sh (deprecated_use_struct_convention): Remove.
2410 (extract_return_value, store_return_value): Remove.
2411 (return_value): Remove default implementation.
2412 * gdbarch.c, gdbarch.h: Regenerate.
2414 * stack.c (return_command): Remove compatibility hack.
2415 * arch-utils.c (legacy_return_value): Remove.
2416 * arch-utils.h (legacy_return_value): Likewise.
2418 * arch-utils.c (always_use_struct_convention): Remove.
2419 * arch-utils.h (always_use_struct_convention): Likewise.
2420 * value.c (generic_use_struct_convention): Remove.
2421 * defs.h (generic_use_struct_convention): Likewise.
2423 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
2425 * avr-tdep.c (avr_return_value): New function.
2426 (avr_gdbarch_init): Call set_gdbarch_return_value instead of
2427 set_gdbarch_extract_return_value.
2429 * fvr-tdep.c (frv_return_value): New function.
2430 (frv_gdbarch_init): Call set_gdbarch_return_value instead of
2431 set_gdbarch_extract_return_value, set_gdbarch_store_return_value,
2432 and set_gdbarch_deprecated_use_struct_convention.
2434 * ia64-tdep.c (ia64_use_struct_convention): Make static.
2435 Add check for structure, union, or array types.
2436 (ia64_extract_return_value): Make static.
2437 (ia64_store_return_value): Make static. Support multi-word values.
2438 (ia64_return_value): New function.
2439 (ia64_gdbarch_init): Call set_gdbarch_return_value instead of
2440 set_gdbarch_extract_return_value, set_gdbarch_store_return_value,
2441 and set_gdbarch_deprecated_use_struct_convention.
2443 2007-10-12 Joel Brobecker <brobecker@adacore.com>
2445 * solib-target.c (solib_target_parse_libraries)
2446 [HAVEHAVE_LIBEXPAT not defined]: Fix thinko in return type.
2448 2007-10-12 Jim Blandy <jimb@codesourcery.com>
2450 * serial.h (struct serial_ops): Document read_prim to return zero
2452 * ser-base.c (do_ser_base_readchar): Return SERIAL_EOF when
2453 read_prim returns zero, not SERIAL_TIMEOUT.
2455 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
2457 * alpha-mdebug-tdep.c: Include "gdb_string.h".
2458 (find_proc_desc): Add fix-up code for setjmp procedure descriptor.
2459 * mdebugread.c (parse_procedure): Remove setjmp fix-up code.
2460 * Makefile.in (alpha-mdebug-tdep.o): Update dependencies.
2462 * config/alpha/alpha.mt (DEPRECATED_TM_FILE): Remove.
2463 * config/alpha/alpha-linux.mt (DEPRECATED_TM_FILE): Remove.
2464 * config/alpha/alpha-osf1.mt (DEPRECATED_TM_FILE): Remove.
2465 * config/alpha/fbsd.mt (DEPRECATED_TM_FILE): Remove.
2466 * config/alpha/tm-alpha.h: Remove file.
2468 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
2470 * breakpoint.c (breakpoint_sals_to_pc): Do not check for
2471 DEPRECATED_PC_REQUIRES_RUN_BEFORE_USE.
2473 * config/pa/tm-hppa.h: Delete file.
2474 * config/pa/hppa64.mt: Do not set DEPRECATED_TM_FILE.
2475 * config/pa/hppahpux.mt: Likewise.
2476 * config/pa/hppa.mt: Likewise.
2477 * config/pa/linux.mt: Likewise.
2478 * hppa-tdep.c (hppa_pc_requires_run_before_use): Delete.
2480 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
2482 * config/arm/nm-nbsdaout.h: Remove file.
2483 * config/nm-nbsdaout.h: Likewise.
2484 * config/nm-nbsd.h: Likewise.
2486 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
2488 * block.h (struct block): Remove "gcc_compile_flag" member.
2489 (BLOCK_GCC_COMPILED): Remove.
2490 * block.c (allocate_block): Do not clear BLOCK_GCC_COMPILED.
2491 * buildsym.c (finish_block): Do not set it.
2492 * symmisc.c (dump_symtab_1): Do not dump it.
2494 * value.h (using_struct_return): Remove "gcc_p" argument.
2495 * value.c (using_struct_return): Likewise.
2496 * eval.c (evaluate_subexp_standard): Adapt callers.
2497 * infcall.c (call_function_by_hand): Likewise.
2498 * stack.c (return_command): Likewise.
2499 * sparc-tdep.c (sparc32_push_dummy_code): Likewise.
2501 * gdbarch.sh (push_dummy_code): Remove "using_gcc" parameter.
2502 * gdbarch.c, gdbarch.h: Regenerate.
2503 * cris-tdep.c (cris_push_dummy_code): Adapt prototype.
2504 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Likewise.
2505 * sparc-tdep.c (sparc32_push_dummy_code): Likewise.
2506 * infcall.c (generic_push_dummy_code, push_dummy_code): Likewise.
2507 (push_dummy_code, call_function_by_hand): Adapt callers.
2509 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
2511 * infcmd.c (print_return_value): Remove STRUCT_RETURN argument.
2512 (finish_command_continuation, finish_command): Adapt callers.
2514 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
2516 * infcall.c (call_function_by_hand): Remove special handling
2517 for HP aCC compiled code.
2519 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
2521 * cris-tdep.c (cris_push_dummy_call): Support arguments passed by
2522 reference. Fix endianness bugs.
2523 (cris_reg_struct_has_address): Remove.
2524 (cris_gdbarch_init): Remove set_gdbarch_deprecated_reg_struct_has_addr
2525 and set_gdbarch_deprecated_use_struct_convention calls.
2527 * gdbarch.sh (deprecated_reg_struct_has_addr): Remove.
2528 * gdbarch.c, gdbarch.h: Regenerate.
2529 * infcall.c (call_function_by_hand): Remove handling of
2530 deprecated_reg_struct_has_addr.
2532 2007-10-11 Daniel Jacobowitz <dan@codesourcery.com>
2533 Kazu Hirata <kazu@codesourcery.com>
2535 * breakpoint.c (do_enable_breakpoint): Delay enabling until after
2536 checking watchpoint resources.
2538 2007-10-11 Kazu Hirata <kazu@codesourcery.com>
2540 * memattr.c (inaccessible_by_default): Change the initial
2543 2007-10-11 Daniel Jacobowitz <dan@codesourcery.com>
2546 * coffread.c (read_one_sym): Check for read errors.
2548 2007-10-11 Ulrich Weigand <uweigand@de.ibm.com>
2550 * linux-nat.c (lin_lwp_attach_lwp): Use "Linux kernel 2.6.19"
2551 instead of "Linux 2.6.19" in comment.
2552 (linux_xfer_partial): Use "GNU/Linux target" instead of
2553 "Linux target" in comment.
2554 * m68klinux-tdep.c (m68k_linux_inferior_created): Likewise.
2555 (m68k_linux_get_sigtramp_info): Likewise.
2557 2007-10-11 Daniel Jacobowitz <dan@codesourcery.com>
2559 * MAINTAINERS (language support): List Joel and Paul as
2562 2007-10-11 Daniel Jacobowitz <dan@codesourcery.com>
2564 * dbxread.c (process_one_symbol): Remove VARIABLES_INSIDE_BLOCK
2566 * config/arm/embed.mt, config/arm/linux.mt, config/arm/wince.mt: Do
2567 not set DEPRECATED_TM_FILE.
2568 * config/arm/tm-arm.h: Delete file.
2570 2007-10-11 Luis Machado <luisgpm@br.ibm.com>
2572 * MAINTAINERS (Write After Approval): Add self.
2574 2007-10-11 Daniel Jacobowitz <dan@codesourcery.com>
2576 * buildsym.c (record_line): Remove empty lines followed by
2577 end-of-sequence markers.
2579 2007-10-11 Kazu Hirata <kazu@codesourcery.com>
2581 * configure.tgt: Recognize fido-*-elf.
2583 2007-10-10 Joel Brobecker <brobecker@adacore.com>
2587 2007-10-10 Markus Deuling <deuling@de.ibm.com>
2589 * stack.c (print_frame_args, frame_info, return_command): Use
2590 get_regcache_arch or get_frame_arch to get at the current architecture
2591 by regcache or by frame, respectively.
2593 2007-10-10 Markus Deuling <deuling@de.ibm.com>
2595 * rs6000-nat.c (fetch_register, store_register)
2596 (rs6000_fetch_inferior_registers, rs6000_store_inferior_registers): Use
2597 get_regcache_arch to get at the current architecture by regcache.
2599 * rs6000-tdep.c (rs6000_push_dummy_call, rs6000_return_value)
2600 (rs6000_register_reggroup_p, e500_move_ev_registe, rs6000_unwind_pc)
2601 (rs6000_unwind_dummy_id, rs6000_frame_cache, rs6000_dump_tdep): Replace
2602 current_gdbarch by gdbarch.
2603 (rs6000_skip_trampoline_code, rs6000_register_to_value)
2604 (rs6000_value_to_register): Use get_frame_arch to get at the current
2605 architecture by frame_info.
2607 2007-10-10 Markus Deuling <deuling@de.ibm.com>
2609 * sparc-tdep.c (sparc_supply_rwindow, sparc_collect_rwindow): Use
2610 get_regcache_arch to get at the current architecture by regcache.
2612 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
2613 (sparc64_supply_fpregset, sparc64_collect_fpregset): Use
2614 get_regcache_arch to get at the current architecture by regcache.
2616 * sparc64nbsd-nat. (sparc64nbsd_supply_gregset)
2617 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
2618 (sparc64nbsd_collect_fpregset): Use get_regcache_arch to get at the
2619 current architecture by regcache.
2621 2007-10-10 Markus Deuling <deuling@de.ibm.com>
2623 * remote-mips.c (mips_wait, mips_fetch_registers)
2624 (mips_store_registers): Use get_regcache_arch to get at the
2625 current architecture by regcache.
2627 * mipsnbsd-tdep.c (mipsnbsd_supply_reg, mipsnbsd_fill_reg)
2628 (mipsnbsd_supply_fpreg, mipsnbsd_fill_fpreg): Use get_regcache_arch to
2629 get at the current architecture by regcache.
2630 (mipsnbsd_sigtramp_offset): Use get_frame_arch to get at the current
2631 architecture by frame_info.
2633 * mipsnbsd-nat.c (mipsnbsd_fetch_inferior_registers)
2634 (mipsnbsd_store_inferior_registers): Use get_regcache_arch to get at
2635 the current architecture by regcache.
2637 * mips-linux-tdep.c (mips_linux_get_longjmp_target)
2638 (mips64_linux_get_longjmp_target, mips_linux_o32_sigframe_init)
2639 (mips_linux_n32n64_sigframe_init): Use get_frame_arch to get at the
2640 current architecture by frame_info.
2641 (supply_32bit_reg, mips_supply_gregset, mips_fill_gregset)
2642 (mips_supply_fpregset, mips_fill_fpregset, supply_64bit_reg)
2643 (mips64_supply_gregset, mips64_fill_gregset, mips64_supply_fpregset)
2644 (mips64_fill_fpregset, mips_linux_write_pc): Use get_regcache_arch to
2645 get at the current architecture by regcache.
2647 * mips-linux-nat.c (mips_linux_register_addr)
2648 (mips64_linux_register_addr): Replace current_gdbarch by gdbarch.
2649 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset)
2650 (mips64_linux_regsets_fetch_registers)
2651 (mips64_linux_regsets_store_registers): Use get_regcache_arch to get at
2652 the current architecture by regcache.
2654 * mips64obsd-tdep.c (mips64obsd_sigframe_init): Use get_frame_arch to
2655 get at the current architecture by frame_info.
2657 2007-10-10 Markus Deuling <deuling@de.ibm.com>
2659 * mips-tdep.c (mips_xfer_register): Use get_regcache_arch to get at the
2660 current architecture by regcache.
2661 (mips2_fp_compat, mips32_next_pc, mips16_scan_prologue)
2662 (mips_insn16_frame_cache, mips32_scan_prologue, mips_insn32_frame_cache)
2663 (mips_stub_frame_cache, mips_read_fp_register_single)
2664 (mips_read_fp_register_double, mips_print_fp_register)
2665 (mips_print_register, print_gp_register_row): Use get_frame_arch to get
2666 at the current architecture by frame_info.
2667 (mips_register_reggroup_p, mips_pseudo_register_read, mips_unwind_sp)
2668 (mips_pseudo_register_write, mips_register_type, mips_unwind_pc)
2669 (mips_unwind_dummy_id, mips_eabi_push_dummy_call)
2670 (mips_n32n64_push_dummy_call, mips_n32n64_return_value)
2671 (mips_o32_push_dummy_call, mips_o32_return_value)
2672 (mips_o64_push_dummy_call, mips_o64_return_value)
2673 (mips_print_registers_info, mips_dump_tdep): Replace current_gdbarch by
2676 2007-10-10 Markus Deuling <deuling@de.ibm.com>
2678 * xtensa-tdep.c (xtensa_register_type, xtensa_pseudo_register_read)
2679 (xtensa_pseudo_register_write, xtensa_register_reggroup_p)
2680 (xtensa_unwind_pc, xtensa_unwind_dummy_id, xtensa_push_dummy_call)
2681 (xtensa_dump_tdep): Replace current_gdbarch by gdbarch.
2682 (xtensa_register_write_masked, xtensa_register_read_masked)
2683 (xtensa_supply_gregset, xtensa_store_return_value)
2684 (xtensa_extract_return_value): Use get_regcache_arch to get at the
2685 current architecture by regcache.
2686 (xtensa_frame_cache, call0_frame_get_reg_at_entry, call0_frame_cache)
2687 (xtensa_frame_prev_register): Use get_frame_arch to get at the current
2688 architecture by frame_info.
2690 2007-10-10 Daniel Jacobowitz <dan@codesourcery.com>
2692 * arm-tdep.c (struct arm_prologue_cache): Remove frameoffset.
2693 (thumb_analyze_prologue): Move pv_area_store_would_trash call
2694 out of loop. Do not set cache->frameoffset.
2695 (arm_scan_prologue): Use prologue-value mechanism. Do not set
2696 frameoffset. Simplify framesize.
2697 (arm_make_prologue_cache, arm_normal_frame_base): Do not use
2699 * arm-tdep.h (enum gdb_regnum): Add ARM_IP_REGNUM.
2701 2007-10-10 Daniel Jacobowitz <dan@codesourcery.com>
2703 * target.c (update_current_target): Call setup_target_debug.
2704 (push_target): Do not call it here.
2706 2007-10-09 Michael Snyder <msnyder@specifix.com>
2708 * MAINTAINERS: Update my email address.
2710 2007-10-09 Markus Deuling <deuling@de.ibm.com>
2712 * xtensa-tdep.c: Replace following current-gdbarch based macros by
2714 (xtensa_pseudo_register_read)
2715 (xtensa_pseudo_register_write): XTENSA_TARGET_FLAGS.
2716 (ARG_NOF, ARG_1ST, xtensa_extract_return_value)
2717 (xtensa_store_return_value, xtensa_push_dummy_call): CALL_ABI.
2718 (xtensa_pseudo_register_read)
2719 (xtensa_pseudo_register_write): ISA_USE_WINDOWED_REGISTERS.
2720 (xtensa_breakpoint_from_pc): ISA_USE_DENSITY_INSTRUCTIONS.
2721 (xtensa_register_type, xtensa_supply_gregset, xtensa_frame_cache)
2722 (xtensa_frame_prev_register): NUM_AREGS.
2723 (xtensa_pseudo_register_read, xtensa_pseudo_register_write,
2724 (xtensa_supply_gregset, xtensa_frame_cache, xtensa_frame_prev_register,
2725 (xtensa_extract_return_value, xtensa_store_return_value): WB_REGNUM.
2726 (xtensa_supply_gregset, xtensa_frame_cache)
2727 (xtensa_frame_prev_register): WS_REGNUM.
2728 (xtensa_supply_gregset): LBEG_REGNUM, LEND_REGNUM, LCOUNT_REGNUM,
2729 SAR_REGNUM, EXCCAUSE_REGNUM, EXCVADDR_REGNUM
2730 (xtensa_register_name, xtensa_register_type, xtensa_reg_to_regnum)
2731 (xtensa_pseudo_register_read, xtensa_pseudo_register_write)
2732 (xtensa_register_reggroup_p): REGMAP.
2733 (call0_track_op): LITBASE_REGNUM.
2734 (xtensa_register_type, xtensa_reg_to_regnum, call0_frame_cache):A0_BASE
2735 (xtensa_supply_gregset, call0_frame_get_reg_at_entry)
2736 (xtensa_frame_prev_register, AREG_NUMBER)
2737 (xtensa_register_type): AR_BASE.
2738 (xtensa_pseudo_register_read, xtensa_pseudo_register_write): FP_ALIAS.
2739 (AREG_NUMBER): AREGS_MASK, WB_MASK, A0_REGNUM.
2740 (ARG_1ST, xtensa_pseudo_register_read, xtensa_pseudo_register_write)
2741 (xtensa_frame_cache, xtensa_frame_prev_register)
2742 (xtensa_extract_return_value, xtensa_store_return_value)
2743 (xtensa_push_dummy_call, call0_frame_cache): A0_REGNUM.
2744 (xtensa_register_type, xtensa_pseudo_register_read, xtensa_frame_cache)
2745 (xtensa_pseudo_register_write, xtensa_unwind_dummy_id)
2746 (xtensa_frame_prev_register, xtensa_push_dummy_call)
2747 (call0_frame_cache): A1_REGNUM.
2748 (xtensa_extract_return_value, xtensa_store_return_value): A2_REGNUM.
2749 (xtensa_push_dummy_call): A4_REGNUM.
2750 (ARGS_FIRST_REG): A6_REGNUM.
2751 (xtensa_pseudo_register_read, xtensa_pseudo_register_write)
2752 (xtensa_frame_prev_register): A15_REGNUM.
2753 * xtensa-tdep.h: Delete current_gdbarch based macros after replacing
2754 them in the appropriate source file:
2755 XTENSA_TARGET_FLAGS, SPILL_LOCATION, SPILL_SIZE, CALL_ABI, NUM_AREGS,
2756 ISA_USE_WINDOWED_REGISTERS, ISA_USE_DENSITY_INSTRUCTIONS, WB_REGNUM,
2757 ISA_USE_EXCEPTIONS, ISA_USE_EXT_L32R, DEBUG_DATA_VADDR_TRAP_COUNT,
2758 DEBUG_INST_VADDR_TRAP_COUNT, ISA_MAX_INSN_SIZE, DEBUG_NUM_IBREAKS,
2759 DEBUG_NUM_DBREAKS, WS_REGNUM, LBEG_REGNUM, LEND_REGNUM, SAR_REGNUM,
2760 REGMAP, LITBASE_REGNUM, DEBUGCAUSE_REGNUM, EXCCAUSE_REGNUM, AR_BASE,
2761 EXCVADDR_REGNUM, NUM_IBREAKS, REGMAP_BYTES, NUM_CONTEXTS, FP_ALIAS,
2762 FP_LAYOUT, FP_LAYOUT_BYTES, GREGMAP, AREGS_MASK, WB_MASK, A0_REGNUM,
2763 A1_REGNUM, A2_REGNUM, A3_REGNUM, A4_REGNUM, A5_REGNUM, A6_REGNUM,
2764 A7_REGNUM, A8_REGNUM, A9_REGNUM, A10_REGNUM, A11_REGNUM, A12_REGNUM,
2765 A13_REGNUM, A14_REGNUM, A15_REGNUM.
2767 2007-10-09 Markus Deuling <deuling@de.ibm.com>
2769 * h8300-tdep.c (h8300_frame_cache): Use get_frame_arch to get at
2770 the current architecture by frame_info.
2771 (h8300_frame_prev_register
2772 (h8300_print_register): Replace current_gdbarch by gdbarch.
2773 (h8300_print_registers_info, h8300_register_type)
2774 (h8300_register_type): Likewise.
2776 2007-10-09 Markus Deuling <deuling@de.ibm.com>
2778 * i386-linux-nat.c (fetch_register): Use get_regcache_arch to get at
2779 the current architecture by regcache.
2780 (store_register, supply_gregset, fill_gregset, i386_linux_resume)
2781 (i386_linux_fetch_inferior_registers)
2782 (i386_linux_store_inferior_registers): Likewise.
2783 * i386gnu-nat.c (gnu_fetch_registers, gnu_store_registers): Likewise.
2784 * i386-nto-tdep.c (i386nto_supply_gregset): Likewise.
2785 * i386v4-nat.c (supply_fpregset, fill_fpregset): Likewise.
2786 * i386-tdep.c (i386_unwind_pc): Replace current_gdbarch by gdbarch.
2787 (i386_extract_return_value, i386_store_return_value): Likewise.
2788 * i386-tdep.c (i386_frame_prev_register): Use get_frame_arch to get at
2789 the current architecture by frame_info.
2790 (i386_sigtramp_frame_cache, i386_get_longjmp_target)
2791 (i386_register_to_value, i386_value_to_register): Likewise.
2793 2007-10-09 Markus Deuling <deuling@de.ibm.com>
2795 * monitor.c (monitor_supply_register): Use get_regcache_arch to get at
2796 the current architecture by regcache.
2797 (monitor_store_register, monitor_store_registers): Likewise.
2799 2007-10-09 Markus Deuling <deuling@de.ibm.com>
2801 * dbug-rom.c (dbug_supply_register): Use get_regcache_arch to get at
2802 the current architecture by regcache.
2804 2007-10-09 Markus Deuling <deuling@de.ibm.com>
2806 * arch-utils.c (legacy_return_value): Replace current_gdbarch by
2809 2007-10-09 Markus Deuling <deuling@de.ibm.com>
2811 * frame.c (frame_pc_unwind): Use get_frame_arch to get at the current
2812 architecture by frame.
2813 (frame_save_as_regcache, frame_register_unwind, get_prev_frame_1)
2814 (inside_main_func, frame_sp_unwind): Likewise.
2816 2007-10-09 Daniel Jacobowitz <dan@codesourcery.com>
2818 * solib-svr4.c (enable_break): Add the dynamic linker also if
2821 2007-10-09 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
2823 * MAINTAINERS (Write After Approval): Add self.
2825 2007-10-09 Pedro Alves <pedro_alves@portugalmail.pt>
2827 * stabsread.c (read_huge_number): Initialize local variable to 0.
2829 2007-10-09 Pierre Muller <muller@ics.u-strasbg.fr>
2831 * p-lang.h (pascal_main_name): Add declaration.
2832 * p-lang.c (GPC_P_INITIALIZE, GPC_MAIN_PROGRAM_NAME_1)
2833 (GPC_MAIN_PROGRAM_NAME_2): New constants.
2834 (pascal_main_name): New function.
2835 * symtab.c: Include p-lang.h.
2836 (find_main_name): Add call to pascal_main_name.
2837 * Makefile.in (symtab.o): Add dependency on p-lang.h.
2839 2007-10-09 Pedro Alves <pedro_alves@portugalmail.pt>
2841 * stabsread.c (read_huge_number): Fix handling of octal
2842 representation when the bit width is known.
2843 (read_range_type): Record unsigned integral types with their size,
2844 when the type size is known.
2846 2007-10-08 Thiago Jung Bauermann <bauerman@br.ibm.com>
2848 * MAINTAINERS (Write After Approval): Add self.
2850 2007-10-08 Pierre Muller <muller@ics.u-strasbg.fr>
2852 * breakpoint.c (print_one_breakpoint_location): ARI fix:
2853 Replace asprintf by xstrprintf.
2855 2007-10-08 Pierre Muller <muller@ics.u-strasbg.fr>
2857 * linux-fork.c: ARI fix: include "gdb_dirent.h" instead of <dirent.h>.
2858 Makefile.in (linux-fork.o): Add gdb_dirent.h dependency.
2860 2007-10-08 Pierre Muller <muller@ics.u-strasbg.fr>
2862 * linux-fork.c: Move "gdb_wait.h" include back to the position of
2863 <sys/wait.h> include before last commit.
2865 2007-10-08 Maciej W. Rozycki <macro@mips.com>
2867 * mips-tdep.c (mips32_next_pc): Fix a typo in BGTZL.
2869 2007-10-08 Markus Deuling <deuling@de.ibm.com>
2871 * aix-thread.c (supply_gprs64, supply_fprs, supply_sprs64)
2872 (supply_sprs32, fetch_regs_user_thread, fetch_regs_kernel_thread)
2873 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs64, fill_sprs32)
2874 (store_regs_user_thread, store_regs_kernel_thread): Use
2875 get_regcache_arch or get_frame_arch to get at the current architecture
2876 by regcache or by frame, respectively.
2878 2007-10-08 Markus Deuling <deuling@de.ibm.com>
2880 * sh64-tdep.c (sh64_push_dummy_call, sh64_register_type)
2881 (sh64_pseudo_register_read, sh64_pseudo_register_write)
2882 (sh64_do_fp_register, sh64_do_pseudo_register, sh64_do_register)
2883 (sh64_print_register, sh64_media_print_registers_info)
2884 (sh64_compact_print_registers_info, sh64_unwind_sp)
2885 (sh64_unwind_pc): Replace current_gdbarch by gdbarch.
2886 (sh64_show_media_regs, sh64_show_compact_regs, sh64_frame_cache)
2887 (sh64_frame_prev_register): Use FRAME to recognize current
2890 2007-10-08 Markus Deuling <deuling@de.ibm.com>
2892 * sh-tdep.c (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu)
2893 (sh_sh2a_register_type, sh_sh3e_register_type, sh_sh4_register_type)
2894 (sh_register_reggroup_p, sh_dwarf2_frame_init_reg): Replace
2895 current_gdbarch by gdbarch.
2896 (sh_generic_show_regs, sh3_show_reg, sh2e_show_regs, sh2a_show_regs)
2897 (sh2a_nofpu_show_regs, sh3e_show_regs, sh3_dsp_show_regs)
2898 (sh4_show_regs, sh4_nofpu_show_regs, sh_dsp_show_regs, sh_frame_cache)
2899 (sh_frame_prev_register, sh_unwind_sp, sh_unwind_pc): Use FRAME to
2900 recognize current architecture.
2902 2007-10-08 Markus Deuling <deuling@de.ibm.com>
2904 * remote.c (init_remote_state, fetch_register_using_p)
2905 (process_g_packet, remote_fetch_registers, remote_prepare_to_store)
2906 (store_register_using_P, store_registers_using_G)
2907 (remote_store_registers): Use get_regcache_arch or get_frame_arch to
2908 get at the current architecture by regcache or by frame, respectively.
2910 2007-10-08 Markus Deuling <deuling@de.ibm.com>
2912 * m68k-tdep.c (m68k_register_to_value, m68k_value_to_register)
2913 (m68k_svr4_extract_return_value, m68k_svr4_store_return_value)
2914 (m68k_frame_prev_register, m68k_get_longjmp_target): Use
2915 get_regcache_arch or get_frame_arch to get at the current architecture
2916 by regcache or by frame, respectively.
2917 * m68klinux-tdep.c (m68k_linux_sigtramp_frame_cache): Likewise.
2918 * m68klinux-nat.c (fetch_register, old_fetch_inferior_registers)
2919 (store_register, old_store_inferior_registers, supply_gregset)
2920 (supply_fpregset, fill_fpregset): Likewise.
2921 * m68k-tdep.c (m68k_register_type, m68k_unwind_pc, m68k_dump_tdep):
2922 Replace current_gdbarch by gdbarch.
2924 2007-10-08 Markus Deuling <deuling@de.ibm.com>
2926 * irix5-nat.c (supply_gregset, fill_gregset, supply_fpregset)
2927 (fill_fpregset, fetch_core_registers): Use get_regcache_arch or
2928 get_frame_arch to get at the current architecture by regcache or by
2929 frame, respectively.
2931 2007-10-08 Markus Deuling <deuling@de.ibm.com>
2933 * ia64-tdep.c (ia64_pseudo_register_read, ia64_pseudo_register_write):
2934 Replace current_gdbarch by gdbarch.
2935 * ia64-tdep.c (ia64_frame_prev_register
2936 (ia64_sigtramp_frame_prev_register)
2937 (ia64_libunwind_frame_prev_register): Use get_regcache_arch or
2938 get_frame_arch to get at the current architecture by regcache or by
2939 frame, respectively.
2940 * ia64-linux-nat.c (ia64_linux_fetch_register)
2941 (ia64_linux_fetch_registers, ia64_linux_store_register)
2942 (ia64_linux_store_registers): Likewise.
2944 2007-10-08 Markus Deuling <deuling@de.ibm.com>
2946 * hppa-tdep.c (hppa_stub_unwind_sniffer, hppa_dump_tdep): Replace
2947 current_gdbarch by gdbarch.
2948 * hppa-linux-nat.c (fetch_register, store_register)
2949 (hppa_linux_fetch_inferior_registers)
2950 (hppa_linux_store_inferior_registers): Use get_regcache_arch or
2951 get_frame_arch to get at the current architecture by regcache or by
2952 frame, respectively.
2953 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code
2954 (hppa_hpux_unwind_adjust_stub): Likewise.
2955 * hppa-hpux-nat.c (hppa_hpux_fetch_register, hppa_hpux_store_register)
2956 (hppa_hpux_fetch_inferior_registers)
2957 (hppa_hpux_store_inferior_registers): Likewise.
2959 2007-10-08 Markus Deuling <deuling@de.ibm.com>
2961 * cris-tdep.c (cris_sigcontext_addr, cris_sigtramp_frame_unwind_cache)
2962 (cris_scan_prologue, crisv32_scan_prologue, find_step_target)
2963 (cris_software_single_step, cris_supply_gregset): Use get_regcache_arch
2964 or get_frame_arch to get at the current architecture by regcache or by
2965 frame, respectively.
2966 * cris-tdep.c (crisv32_single_step_through_delay, cris_push_dummy_call)
2967 (cris_unwind_pc, cris_unwind_sp, cris_register_type, cris_dump_tdep)
2968 (crisv32_register_type, cris_dwarf2_frame_init_reg): Replace
2969 current_gdbarch by gdbarch.
2971 2007-10-08 Markus Deuling <deuling@de.ibm.com>
2973 * arm-tdep.c (arm_scan_prologue, arm_make_prologue_cache)
2974 (thumb_get_next_pc, arm_get_next_pc, arm_extract_return_value)
2975 (arm_store_return_value): Use get_regcache_arch or get_frame_arch to
2976 get at the current architecture by regcache or by·frame, respectively.
2977 (arm_push_dummy_call, arm_dump_tdep): Replace current_gdbarch by
2980 2007-10-08 Markus Deuling <deuling@de.ibm.com>
2982 * amd64-tdep.c (amd64_frame_prev_register, amd64_sigtramp_frame_cache):
2983 Use get_regcache_arch or get_frame_arch to get at the current
2984 architecture by regcache or by frame, respectively.
2985 * amd64-linux-tdep.c (amd64_linux_sigcontext_addr): Likewise.
2986 * amd64-nat.c (amd64_supply_native_gregset)
2987 (amd64_collect_native_gregset): Replace current_gdbarch by gdbarch.
2989 2007-10-08 Markus Deuling <deuling@de.ibm.com>
2991 * alpha-tdep.c (alpha_register_reggroup_p): Replace current_gdbarch by
2993 * alpha-linux-nat.c (alpha_linux_register_u_offset): Likewise.
2994 (alpha_sigtramp_frame_unwind_cache, alpha_sigtramp_frame_this_id)
2995 (alpha_sigtramp_frame_sniffer, alpha_next_pc): Use get_regcache_arch or
2996 get_frame_arch to get at the current architecture by regcache or by
2997 frame, respectively.
2998 * alpha-nat.c (fetch_osf_core_registers): Likewise.
3000 2007-10-08 Markus Deuling <deuling@de.ibm.com>
3002 * dwarf2-frame.c (read_reg, execute_cfa_program, dwarf2_frame_cache)
3003 (dwarf2_frame_default_init_reg, dwarf2_frame_prev_register): Replace
3004 current_gdbarch by gdbarch.
3005 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Likewise.
3007 2007-10-08 Markus Deuling <deuling@de.ibm.com>
3009 * regcache.c (init_regcache_descr, register_type, read_pc_pid)
3010 (write_pc_pid, regcache_dump): Replace current_gdbarch by gdbarch.
3011 * regcache.c (regcache_raw_write): Use get_regcache_arch or
3012 get_frame_arch to get at the current architecture by regcache or by
3013 frame, respectively.
3015 2007-10-08 Markus Deuling <deuling@de.ibm.com>
3017 * findvar.c (value_of_register, locate_var_value): Use
3018 get_regcache_arch or get_frame_arch to get at the current architecture
3019 by regcache or by frame, respectively.
3020 * findvar.c (default_value_from_register, value_from_register): Replace
3021 current_gdbarch by gdbarch.
3023 2007-10-08 Pierre Muller <muller@ics.u-strasbg.fr>
3025 * config/i386/nm-i386.h (CHILD_POST_STARTUP_INFERIOR): ARI fix: Remove.
3027 2007-10-08 Pierre Muller <muller@ics.u-strasbg.fr>
3029 * linux-fork.c: ARI fix: include "gdb_wait.h" instead of <sys/wait.h>.
3030 Makefile.in (linux-fork.o): Add gdb_wait.h dependency.
3032 2007-10-05 Daniel Jacobowitz <dan@codesourcery.com>
3034 * remote.c (get_offsets): Only call free_symfile_segment_data if
3037 2007-10-03 Pierre Muller <muller@ics.u-strasbg.fr>
3039 * objc-exp.y: ARI fix: remove 4 PARAMS.
3041 2007-10-03 Daniel Jacobowitz <dan@codesourcery.com>
3043 * NEWS: Use uniform spacing. Correct version number for GDB 6.7
3044 news. Mention XML support for M68K in GDB 6.7.
3046 2007-10-03 Daniel Jacobowitz <dan@codesourcery.com>
3048 * gdbtypes.c (create_range_type): Do not set TYPE_FIELD_TYPE for the
3050 (init_vector_type): Use builtin_type_int32.
3052 2007-10-02 Ulrich Weigand <uweigand@de.ibm.com>
3054 * s390-tdep.c (s390_regset_from_core_section): Allow excess section
3055 size to enable bi-arch generate-core-file support.
3057 2007-10-02 Markus Deuling <deuling@de.ibm.com>
3059 * spu-tdep.c (info_spu_signal_command): Fix output for SPU signal.
3061 2007-10-02 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
3063 * tui/tui-interp.c (tui_init): Initialize tui's SIGWINCH
3065 * tui/tui-win.c (tui_initialize_win): New function for
3066 initializing tui's SIGWINCH signal handler.
3067 * tui/tui-win.h (tui_initialize_win): Declare.
3069 2007-10-02 Ulrich Weigand <uweigand@de.ibm.com>
3071 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Cast
3072 pointer to uintptr_t before casting to CORE_ADDR.
3074 2007-10-02 Markus Deuling <deuling@de.ibm.com>
3076 * linux-nat.c (PTRACE_GETSIGINFO): Add define.
3078 2007-10-02 Mark Mitchell <mark@codesourcery.com>
3080 * mingw-hdep.c (gdb_select): Stop helper threads before returning.
3081 * ser-mingw.c (enum select_thread_state): New type.
3082 (struct ser_console_state): Add have_started and thread_state.
3083 (select_thread_wait): New function.
3084 (thread_fn_type): New type.
3085 (create_select_thread): New function.
3086 (destroy_select_thread): Likewise.
3087 (start_select_thread): Likewise.
3088 (stop_select_thread): Likewise.
3089 (console_select_thread): Use new functions.
3090 (pipe_select_thread): Likewise.
3091 (file_select_thread): Likewise.
3092 (ser_console_wait_handle): Likewise.
3093 (ser_console_done_wait_handle): Likewise.
3094 (ser_console_close): Likewise.
3095 (free_pipe_state): Likewise.
3096 (pipe_wait_handle): Likewise.
3097 (pipe_done_wait_handle): Likewise.
3098 (struct net_windows_state): Derive from ser_console_state.
3099 (net_windows_select_thread): Use new functions.
3100 (net_windows_wait_handle): Likewise.
3101 (net_windows_done_wait_handle): Likewise.
3102 (net_windows_close): Likewise.
3104 2007-10-02 Daniel Jacobowitz <dan@codesourcery.com>
3106 * inflow.c (terminal_ours_1): Remove useless line.
3108 2007-10-02 Daniel Jacobowitz <dan@codesourcery.com>
3110 * mips-tdep.c (mips_read_fp_register_double): Correct check for
3112 (mips_print_fp_register): Correct check for even FP registers.
3113 (mips_virtual_frame_pointer): New function.
3114 (mips_gdbarch_init): Call set_gdbarch_virtual_frame_pointer.
3116 2007-09-30 Mike Frysinger <vapier@gentoo.org>
3118 * value.h (lookup_only_internalvar): New prototype.
3119 (create_internalvar): Likewise.
3120 * value.c (lookup_only_internalvar): New function.
3121 (create_internalvar): Likewise.
3122 (lookup_internalvar): Use new lookup_only_internalvar and
3123 create_internalvar functions.
3124 * parse.c (write_dollar_variable): Look up $ symbols in internal
3125 table first rather than last.
3127 2007-09-30 Daniel Jacobowitz <dan@codesourcery.com>
3129 * linux-nat.c (linux_nat_new_thread): New variable.
3130 (linux_child_follow_fork): Set inferior_ptid to include LWP ID. Use
3131 linux_nat_switch_fork.
3132 (lwp_list): Make public.
3133 (add_lwp): Call linux_nat_new_thread.
3134 (lin_lwp_attach_lwp, linux_nat_attach): Call add_lwp after stopping
3136 (resume_callback): Clear lp->siginfo. Remove unused variable.
3137 (linux_nat_resume): Assert that the LWP list is already initialized.
3139 (save_siginfo): New.
3140 (stop_wait_callback, linux_nat_wait): Call it.
3141 (linux_nat_set_new_thread, linux_nat_get_siginfo): New.
3142 * linux-nat.h (struct lwp_info): Add siginfo.
3143 (lwp_list, linux_nat_set_new_thread, linux_nat_get_siginfo): Declare.
3146 * amd64-linux-nat.c (amd64_linux_dr): New.
3147 (amd64_linux_dr_get): Take a PTID argument. Correct typo.
3148 (amd64_linux_dr_set): Take a PTID argument.
3149 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use ALL_LWPS.
3150 (amd64_linux_dr_reset_addr): Use amd64_linux_dr_set_addr.
3151 (amd64_linux_dr_get_status): Pass inferior_ptid to amd64_linux_dr_get.
3152 (amd64_linux_new_thread): New.
3153 (_initialize_amd64_linux_nat): Call linux_nat_set_new_thread.
3154 * i386-linux-nat.c (i386_linux_dr): New.
3155 (i386_linux_dr_get, i386_linux_dr_set): Take a PTID argument.
3156 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use ALL_LWPS.
3157 (i386_linux_dr_reset_addr): Use i386_linux_dr_set_addr.
3158 (i386_linux_dr_get_status): Pass inferior_ptid to i386_linux_dr_get.
3159 (i386_linux_new_thread): New.
3160 (i386_linux_resume): Remove unnecessary PID check.
3161 (_initialize_i386_linux_nat): Call linux_nat_set_new_thread.
3162 * ia64-linux-nat.c (enable_watchpoints_in_psr): Take PTID argument.
3163 (fetch_debug_register, fetch_debug_register_pair): Delete.
3164 (debug_registers): New.
3165 (ia64_linux_insert_watchpoint, ia64_linux_remove_watchpoint): Use
3166 ALL_LWPS and debug_registers.
3167 (ia64_linux_new_thread): New.
3168 (ia64_linux_stopped_data_address): Use linux_nat_get_siginfo.
3169 (_initialize_ia64_linux_nat): Call linux_nat_set_new_thread.
3170 * ppc-linux-nat.c (last_stopped_data_address): Delete.
3171 (saved_dabr_value): New.
3172 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint): Use
3174 (ppc_linux_new_thread): New.
3175 (ppc_linux_stopped_data_address): Use linux_nat_get_siginfo.
3176 (ppc_linux_stopped_by_watchpoint): Call ppc_linux_stopped_data_address.
3177 (_initialize_ppc_linux_nat): Call linux_nat_set_new_thread.
3178 * s390-nat.c (s390_stopped_by_watchpoint): Clear the watchpoint status
3180 (s390_fix_watch_points): Take a PTID argument.
3181 (s390_insert_watchpoint, s390_remove_watchpoint): Use ALL_LWPS.
3182 (_initialize_s390_nat): Call linux_nat_set_new_thread.
3184 2007-09-30 Daniel Jacobowitz <dan@codesourcery.com>
3185 Jeff Johnston <jjohnstn@redhat.com>
3187 * breakpoint.c (watchpoints_triggered): New.
3188 (bpstat_stop_status): Remove STOPPED_BY_WATCHPOINT argument.
3189 Check watchpoint_triggered instead. Combine handling for software
3190 and hardware watchpoints. Do not use target_stopped_data_address
3191 here. Always check a watchpoint if its scope breakpoint triggers.
3192 Do not stop for thread or overlay events. Improve check for
3193 triggered watchpoints without a value change.
3194 (watch_command_1): Insert the scope breakpoint first. Link the
3195 scope breakpoint to the watchpoint.
3196 * breakpoint.h (enum watchpoint_triggered): New.
3197 (struct breakpoint): Add watchpoint_triggered.
3198 (bpstat_stop_status): Update prototype.
3199 (watchpoints_triggered): Declare.
3200 * infrun.c (enum infwait_status): Add infwait_step_watch_state.
3201 (stepped_after_stopped_by_watchpoint): Delete.
3202 (handle_inferior_event): Make stepped_after_stopped_by_watchpoint
3203 local. Handle infwait_step_watch_state. Update calls to
3204 bpstat_stop_status. Use watchpoints_triggered to check
3206 * remote.c (stepped_after_stopped_by_watchpoint): Remove extern.
3207 (remote_stopped_data_address): Do not check it.
3209 2007-09-29 Daniel Jacobowitz <dan@codesourcery.com>
3211 * configure.ac: Add $LIBINTL when testing libbfd.
3212 * configure: Regenerated.
3214 2007-09-28 Vladimir Prus <vladimir@codesourcery.com>
3216 * NEW: Mention pending breakpoint changes and
3217 support for breakpoints at multiple locations.
3219 2007-09-27 Daniel Jacobowitz <dan@codesourcery.com>
3221 * arm-linux-tdep.c (arm_linux_software_single_step): New.
3222 (arm_linux_init_abi): Use it.
3223 * arm-tdep.c (arm_get_next_pc): Make global. Handle all-ones
3224 condition correctly.
3225 * arm-tdep.h (arm_get_next_pc): Declare.
3226 * Makefile.in (arm-linux-tdep.o): Update.
3228 2007-09-26 Vladimir Prus <vladimir@codesourcery.com>
3230 * varobj.c (install_new_value): Don't
3231 call value_get_print_value when a value is
3232 lazy. Update the print_value member in a
3235 2007-09-26 Vladimir Prus <vladimir@codesourcery.com>
3237 * breakpoint.c (create_breakpoint): Set
3238 condition on each location, not on the first
3239 location of breakpoint.
3241 2007-09-26 Jim Blandy <jimb@codesourcery.com>
3243 * remote.c (getpkt_sane): Fix error message. No animals were
3244 harmed in the making of this debugger.
3246 2007-09-26 Pierre Muller <muller@ics.u-strasbg.fr>
3248 * p-typeprint.c: Fix 11 ARI reported problems.
3249 (pascal_print_type): Fix 4 operator at end of line.
3250 (pascal_type_print_method_args) : Replace 2 DEPRECATED_STREQN macros
3251 using strncmp function.
3252 (pascal_type_print_base): Fix 2 operator at end of line.
3253 (pascal_type_print_base) : Replace 3 DEPRECATED_STREQN macros
3254 using strncmp function.
3257 2007-09-26 Pierre Muller <muller@ics.u-strasbg.fr>
3259 * Fix PR pascal/2231
3260 dwarf2read.c (read_subroutine_type):
3261 All pascal functions are prototyped.
3263 2007-09-26 Pierre Muller <muller@ics.u-strasbg.fr>
3265 * Fix PR pascal/2283
3266 p-valprint.c (pascal_val_print): correct current language check.
3267 Also print array of char as strings.
3270 2007-09-26 David Ung <davidu@mips.com>
3271 Maciej W. Rozycki <macro@mips.com>
3273 * mips-tdep.c (mips_n32n64_return_value): Fix a comment.
3275 2007-09-25 Pierre Muller <muller@ics.u-strasbg.fr>
3277 * p-exp.y: Fix 12 ARI reported problems.
3278 (name_not_typename): Fix 2 operator at end of line issues.
3279 (yylex): Fix 3 operator at end of line issues.
3280 Replace 7 DEPRECATED_STREQ macros using strcmp function.
3282 2007-09-25 David Ung <davidu@mips.com>
3283 Maciej W. Rozycki <macro@mips.com>
3285 * mips-tdep.c (mips_n32n64_return_value): Per N32/N64 ABI
3286 rules return composite types in registers as appropriate.
3288 2007-09-24 Jim Blandy <jimb@codesourcery.com>
3290 * symfile.h (struct symfile_segment_data): Doc fixes.
3291 * symfile.c (symfile_map_offsets_to_segments): Doc fixes.
3292 Assert that we were passed some loaded segment addresses,
3293 and that sections' segment numbers are valid.
3294 Simplify offset calculation.
3295 * remote.c (get_offsets): Clarify selection of relocate-by-segment
3296 strategy, and set num_segments correctly. Delete redundant
3297 assignments to do_sections.
3299 2007-09-24 Daniel Jacobowitz <dan@codesourcery.com>
3301 * frame.c (get_prev_frame_1): Also check for PC in the same register.
3303 2007-09-24 Vladimir Prus <vladimir@codesourcery.com>
3305 * breakpoint.c (remove_sal): New.
3306 (expand_line_sal_maybe): New.
3307 (create_breakpoints): Call expand_line_sal_maybe.
3308 (clear_command): Add comment.
3309 (breakpoint_re_set_one): Call expand_line_sal_maybe.
3310 * linespec.c (decode_indirect): Set explicit_pc to 1.
3311 (decode_all_digits): Set explicit_line to 1.
3312 (append_expanded_sal): New.
3313 (expand_line_sal): New.
3314 * linespec.h (expand_line_sal): Declare.
3315 * symtab.c (init_sal): Initialize explicit_pc
3317 * symtab.h (struct symtab_and_line): New fields
3318 explicit_pc and explicit_line.
3320 2007-09-23 Daniel Jacobowitz <dan@codesourcery.com>
3322 * infcall.c (call_function_by_hand): Handle language-specific
3323 pass and return by reference.
3325 * cp-abi.c (cp_pass_by_reference): New.
3326 * cp-abi.h (cp_pass_by_reference): Declare.
3327 (struct cp_abi_ops): Add pass_by_reference.
3328 * gnu-v3-abi.c (gnuv3_pass_by_reference): New.
3329 (init_gnuv3_ops): Set pass_by_reference.
3331 * language.c (language_pass_by_reference): New.
3332 (default_pass_by_reference): New.
3333 (unknown_language_defn, auto_language_defn, local_language_defn): Add
3334 default_pass_by_reference.
3335 * langauge.h (struct language_defn): Add la_pass_by_reference.
3336 (language_pass_by_reference, default_pass_by_reference): Declare.
3337 * ada-lang.c (ada_language_defn): Add default_pass_by_reference.
3338 * c-lang.c (c_language_defn, asm_language_defn)
3339 (minimal_language_defn): Likewise.
3340 (cplus_language_defn): Add cp_pass_by_reference.
3341 * f-lang.c (f_language_defn): Add default_pass_by_reference.
3342 * jv-lang.c (java_language_defn): Likewise.
3343 * m2-lang.c (m2_language_defn): Likewise.
3344 * objc-lang.c (objc_language_defn): Likewise.
3345 * p-lang.c (pascal_language_defn): Likewise.
3346 * scm-lang.c (scm_language_defn): Likewise
3348 2007-09-23 Vladimir Prus <vladimir@codesourcery.com>
3350 Allow a code breakpoint to have several locations
3352 * breakpoint.h (enum enable_state): Remove the
3353 bp_shlib_disabled enumerator.
3354 (struct bp_location): New members shlib_disabled,
3355 global_next, enabled and function_name.
3356 Rename pending to condition_not_parsed.
3358 * breakpoint.c (ALL_BP_LOCATIONS): Iterate over global_next.
3359 (ALL_BP_LOCATIONS_SAFE): Likewise.
3360 (breakpoint_enabled): Don't check for pending.
3361 (condition_command): Free and update all locations of
3363 (insert_bp_location): Adjust.
3364 (software_breakpoint_inserted_here_p): Don't care
3365 if breakpoint is enabled, as soon as it's inserted.
3366 (print_it_typical): Print bpstat's location, not
3367 bpstat's breakpoint's location.
3368 (bpstat_stop_status): Iterate over all locations, not
3370 (print_breakpoint_location): New.
3371 (print_one_breakpoint): Renamed to
3372 (print_one_breakpoint_location): ...this. Take
3373 parameters to describe which location is being
3374 printed. Modify code to properly print header
3375 for several locations and individual locations.
3376 (print_one_breakpoint): Print all locations.
3377 (breakpoint_has_pc): New.
3378 (describe_other_breakpoints): Use the above.
3379 (check_duplicates): Renamed to...
3380 (check_duplicates_for): .. this.
3381 (check_duplicates): Use check_duplicates_for.
3382 (allocate_bp_location): Adjust.
3383 (set_raw_breakpoint_without_location): New,
3384 extracted from set_raw_breakpoint.
3385 (set_breakpoint_location_function): New.
3386 (set_raw_breakpoint): Use
3387 set_raw_breakpoint_without_location.
3388 (make_breakpoint_permanent): Mark all locations
3390 (disable_breakpoints_in_shlibs): Iterate over
3392 (disable_breakpoints_in_unloaded_shlib): Likewise.
3393 (re_enable_breakpoints_in_shlibs): Likewise.
3394 (mention): Say "pending" when breakpoint has
3395 zero locations. If breakpoint has more than one
3397 (add_location_to_breakpoint): New.
3398 (create_breakpoint): Accept symtabs_and_lines, not
3399 symtab_and_line. Pass extra sals to
3400 add_location_to_breakpoint.
3401 (create_breakpoints): Pass symtabs_and_lines to
3403 (break_command_1): Make pending breakpoints
3404 have zero locations.
3405 (do_captured_breakpoint): Remove wrong allocation.
3406 (clear_command): Iterate over all locations.
3407 (unlink_locations_from_global_list): Renamed
3408 from unlink_location_from_global_list. Remove
3410 (delete_breakpoint): Remove all locations.
3411 Iterate over all locations when deciding which
3412 other location to re-enable.
3413 (all_locations_are_pending): New.
3414 (update_breakpoint_locations): Renamed from
3415 update_breakpoint_location. Try to match old
3416 and new locations using names of containing
3418 (breakpoint_re_set_one): Adjust.
3419 (find_location_by_number): New.
3420 (disable_command): Allow disabling individual location.
3421 (enable_command): Allow enabling individual location.
3422 * breakpoint.c: Adjust all uses of breakpoint's
3423 enable state to for bp_shlib_disabled change.
3425 2007-09-22 Vladimir Prus <vladimir@codesourcery.com>
3427 * breakpoint.c (do_restore_lang_radix_cleanup): Remove.
3428 (resolve_pending_breakpoint): Remove.
3429 (re_enable_breakpoints_in_shlibs): Remove.
3430 (unlink_locations_from_global_list): New.
3431 (update_breakpoint_locations): New.
3432 (breakpoint_re_set_one): Don't bail out on pending breakpoints.
3433 Use parse_condition and update_breakpoint_location to
3434 reset breakpoint. Ignore 'symbol not found' error from
3436 (breakpoint_re_set): Don't emit newline before the
3437 reason why breakpoint is not reset.
3438 (do_enable_breakpoint): Don't specially process pending
3440 (free_bp_location): New.
3441 (break_command_1): For pending breakpoints, initialize
3442 all fields of a sal with zeroes.
3443 * breakpoint.h (re_enable_breakpoints_in_shlibs): Remove.
3444 * infcmd.c (post_create_inferior): Don't call
3445 re_enable_breakpoints_in_shlibs.
3446 * infrun.c (handle_inferior_event): Likewise.
3447 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
3448 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
3449 * win32-nat.c (get_win32_debug_event): Likewise.
3451 2007-09-22 Vladimir Prus <vladimir@codesourcery.com>
3453 * breakpoint.c (create_breakpoint): Split from
3454 create_breakpoints, implementing most of its logic.
3455 Take just a single sal, single address string and
3456 single condition. Do not take parsed condition at
3458 (create_breakpoints): Just call create_breakpoint
3460 (find_condition_and_thread): New.
3461 (break_command_1): Use find_condition_and_thread.
3462 Do not keep parsed conditions.
3463 (do_captured_breakpoint): Don't convert
3464 condition string to struct expression.
3466 2007-09-22 Vladimir Prus <vladimir@codesourcery.com>
3468 * breakpoint.h (struct breakpoint): Move the cond
3470 (struct bp_location): Here.
3471 * breakpoint.c (condition_command, bpstat_stop_status)
3472 (print_one_breakpoint, allocate_bp_location)
3473 (solib_load_unload_1, create_fork_vfork_event_catchpoint)
3474 (create_exec_event_catchpoint, create_breakpoints)
3475 (break_command_1, watch_command_1, handle_gnu_v3_exceptions)
3476 (create_ada_exception_breakpoint, set_breakpoint_sal)
3477 (delete_breakpoint, breakpoint_re_set_one): Adjust.
3478 * tui/tui-winsource.c (tui_update_breakpoint_info): Adjust.
3480 2007-09-22 Vladimir Prus <vladimir@codesourcery.com>
3482 Associate bp_stat with bp_location, not breakpoint.
3483 * breakpoint.h (breakpoint_at): Change type
3485 * breakpoint.c (bpstat_alloc): Take bp_location,
3487 (bpstat_find_breakpoint): Look at bpstat's location's
3488 owner, not at bpstat->breakpoint_at.
3489 (bpstat_find_step_resume_breakpoint): Likewise.
3490 (bpstat_num): Likewise.
3491 (print_it_typical): Likewise.
3492 (print_bp_stop_message): Likewise.
3493 (watchpoint_check): Likewise.
3494 (bpstat_what): Likewise.
3495 (bpstat_get_triggered_catchpoints): Likewise.
3496 (breakpoint_auto_delete): Likewise.
3497 (delete_breakpoint): Likewise.
3498 (bpstat_stop_status): Pass location, not breakpoint,
3499 to bpstat_alloc. Look at bpstat's location's
3500 owner, not at bpstat->breakpoint_at.
3502 2007-09-21 Jim Blandy <jimb@codesourcery.com>
3504 * macrotab.h (new_macro_table): Document that removing information
3505 from an obstack/bcache-managed macro table leaks memory.
3506 * macrotab.c (macro_free, macro_bcache_free): Instead of asserting
3507 that data is never freed in obstack/bcache-managed macro tables,
3508 just leak the storage.
3509 (macro_undef): If we're undefining a macro at exactly the same
3510 source location that we defined it, simply remove the definition
3513 2007-09-21 Joel Brobecker <brobecker@adacore.com>
3515 * symfile.h (struct sym_fns): Add new field sym_read_linetable.
3516 * coffread.c, dbxread.c, elfread.c, mipsread.c somread.c:
3517 Adjust the struct sym_fns object accordingly by setting
3518 the new field to NULL.
3519 * xcoffread.c (aix_process_linenos): Make static.
3520 (xcoff_sym_fns): Set new field to aix_process_linenos.
3521 * buildsym.c (end_symtab): Replace call to PROCESS_LINENUMBER_HOOK
3522 by call to new the new sym_fns sym_read_linetable function.
3523 * config/powerpc/aix.mt (DEPRECATED_TM_FILE): Delete.
3524 * config/rs6000/tm-rs6000.h: Delete.
3526 2007-09-21 David Ung <davidu@mips.com>
3527 Maciej W. Rozycki <macro@mips.com>
3529 * mips-tdep.c (mips_n32n64_push_dummy_call): Per N32/N64 ABI
3530 rules do not treat composite types specially.
3532 2007-09-20 Maciej W. Rozycki <macro@mips.com>
3534 * mips-tdep.c (mips32_in_function_epilogue_p): New function.
3535 (mips16_in_function_epilogue_p): Likewise.
3536 (mips_in_function_epilogue_p): Likewise.
3537 (mips_gdbarch_init): Register mips_in_function_epilogue_p().
3539 2007-09-19 Joel Brobecker <brobecker@adacore.com>
3541 * configure.ac: Add check for "etext".
3542 * configure, config.in: Regenerate.
3543 * maint.c (TEXTEND): Only define if either _etext or etext
3545 Disable the profiling functionality if TEXTEND is not defined.
3547 2007-09-19 Daniel Jacobowitz <dan@codesourcery.com>
3549 * mips-tdep.c (mips_stub_frame_cache): Correct the saved return
3550 address register. Correct the call to frame_id_build.
3551 (mips_stub_frame_sniffer): Use the stub unwinder when the PC
3554 2007-09-18 Joel Brobecker <brobecker@adacore.com>
3556 * ia64-tdep.c (refine_prologue_limit): Make sure we don't scan
3557 the linetable past the function end.
3559 2007-09-18 James E. Wilson <wilson@specifix.com>
3561 * MAINTAINERS: Update my email address.
3563 2007-09-18 Jerome Guitton <guitton@adacore.com>
3565 * inf-ttrace.c (inf_ttrace_private_thread_info): New structure type.
3566 (inf_ttrace_delete_dying_threads_callback): New function.
3567 (inf_ttrace_resume): After resuming the execution, iterate over
3568 the dying threads to delete them for the thread list.
3569 (inf_ttrace_wait): on TTEVT_LWP_EXIT and TTEVT_LWP_TERMINATE,
3570 mark the corresponding thread as dying instead of removing it
3571 from the thread list.
3572 (inf_ttrace_thread_alive): return 0 for dying threads.
3574 2007-09-17 Joel Brobecker <brobecker@adacore.com>
3576 * infrun.c (insert_step_resume_breakpoint_at_frame): Add assertion
3577 that return_frame is not null.
3579 2007-09-17 Joel Brobecker <brobecker@adacore.com>
3581 * solib-svr4.c: Add include of "auxv.h".
3582 (enable_break): Use the AT_BASE auxiliary entry if available.
3583 * Makefile.in (solib-svr4.o): Update dependencies.
3585 2007-09-17 Joel Brobecker <brobecker@adacore.com>
3587 * NEWS: Create a new section for the next release branch.
3588 Rename the section of the current branch, now that it has
3591 2007-09-17 Jerome Guitton <guitton@adacore.com>
3593 * dwarf2loc.c (dwarf_expr_frame_base): Guard against NULL.
3594 * Makefile.in (dwarf2loc.o): Depend on gdb_assert.h.
3596 2007-09-16 Vladimir Prus <vladimir@codesourcery.com>
3598 * mi/mi-cmds.c (mi_cmds): Register -list-features.
3599 * mi/mi-cmds.h (mi_cmd_list_features): New.
3600 * mi/mi-main.c (mi_cmd_list_features): New.
3602 2007-09-11 Joel Brobecker <brobecker@adacore.com>
3604 GDB 6.7 branch created (branch timestamp: 2007-09-07 14:00 UTC)
3605 * version.in: Bump version to 6.7.50-20070911-cvs.
3607 2007-09-10 Daniel Jacobowitz <dan@codesourcery.com>
3609 * thread.c (free_thread): Do not delete the step resume breakpoint
3612 2007-09-10 Daniel Jacobowitz <dan@codesourcery.com>
3614 * arch-utils.c (gdbarch_info_fill): Also try core_bfd.
3615 * corelow.c (core_read_description): New.
3616 (init_core_ops): Set to_read_description.
3617 * gdbarch.sh: Add gdbarch_core_read_description.
3618 * mips-linux-tdep.c (mips_linux_core_read_description): New.
3619 (mips_linux_init_abi): Call set_gdbarch_core_read_description.
3620 * mips-tdep.c (mips_tdesc_gp32, mips_tdesc_gp64): New.
3621 (mips_register_g_packet_guesses): Use them.
3622 (_initialize_mips_tdep): Initialize them.
3623 * mips-tdep.h (mips_tdesc_gp32, mips_tdesc_gp64): Declare.
3624 * gdbarch.h, gdbarch.c: Regenerated.
3626 2007-09-10 Ulrich Weigand <uweigand@de.ibm.com>
3628 * infrun.c (stepping_past_breakpoint): New global variable.
3629 (stepping_past_breakpoint_ptid): Likewise.
3630 (prepare_to_proceed): Add STEP parameter. Do not check for Ctrl-C.
3631 Only switch threads if we need to single-step over a breakpoint hit
3632 in the previously selected thread. If stepping, remember previous
3633 thread to switch back to in STEPPING_PAST_BREAKPOINT[_PTID]. Call
3634 switch_to_thread instead of copying its contents.
3635 (proceed): Pass STEP to prepare_to_proceed. Always set ONEPROC if
3636 prepare_to_proceed returns true.
3637 (init_wait_for_inferior): Reset STEPPING_PAST_BREAKPOINT.
3638 (context_switch): Call switch_to_thread.
3639 (handle_inferior_event): Switch back to previous thread if requested
3640 in STEPPING_PAST_BREAKPOINT[_PTID] by prepare_to_proceed.
3641 * gdbthread.h (switch_to_thread): Add prototype.
3642 * thread.c (switch_to_thread): Make global.
3644 2007-09-07 Pierre Muller <muller@ics.u-strasbg.fr>
3646 * p-valprint.c: Fix 7 ARI reported problems.
3647 (pascal_val_print): Fix one operator at end of line issue.
3648 Use paddress function to remove use of
3649 deprecated_print_address_numeric function (2 times).
3650 Use SYMBOL_LINKAGE_NAME instead of DEPRECATED_SYMBOL_NAME.
3651 (pascal_value_print): Fix 3 operator at end of line issues.
3653 2007-09-07 Daniel Jacobowitz <dan@codesourcery.com>
3656 * arm-tdep.c (arm_in_call_stub): Delete.
3657 (arm_skip_stub): Handle from_arm and from_thumb stubs.
3659 2007-09-06 Daniel Jacobowitz <dan@codesourcery.com>
3661 * ppc-sysv-tdep.c (do_ppc_sysv_return_value): Handle other integer
3664 2007-09-04 Daniel Jacobowitz <dan@codesourcery.com>
3665 Jim Blandy <jimb@codesourcery.com>
3667 * NEWS: Update description of string changes. Mention print/s.
3668 * c-valprint.c (textual_element_type): New.
3669 (c_val_print): Use it. Do not skip address printing for pointers
3670 with a string format.
3671 (c_value_print): Doc update.
3672 * dwarf2read.c (read_array_type): Use make_vector_type.
3673 * gdbtypes.c (make_vector_type): New.
3674 (init_vector_type): Use it.
3675 (gdbtypes_post_init): Initialize builtin_true_unsigned_char.
3676 (_initialize_gdbtypes): Mark int8_t and uint8_t as TYPE_FLAG_NOTTEXT.
3677 * gdbtypes.h (struct builtin_type): Add builtin_true_unsigned_char.
3678 (TYPE_FLAG_NOTTEXT, TYPE_NOTTEXT): New.
3679 (make_vector_type): New.
3680 * printcmd.c (print_formatted): Only handle 's' and 'i' for examine.
3681 Call the language print routine for string format.
3682 (print_scalar_formatted): Call val_print for string format. Handle
3683 unsigned original types for char format.
3684 (validate_format): Do not reject string format.
3685 * stabsread.c (read_type): Use make_vector_type.
3686 * xml-tdesc.c (tdesc_start_vector): Use init_vector_type.
3688 2007-09-04 Michael Snyder <msnyder@access-company.com>
3690 * expprint.c (print_subexp_standard): Check strchr for null.
3691 * Makefile.in (expprint.o): Depend on gdb_assert.h.
3693 * gnu-v2-abi.c (gnuv2_value_rtti_type): Guard against null.
3695 * stabsread.c (patch_block_status): Guard against null.
3696 * Makefile.in (stabsread.o): Depend on gdb_assert.h.
3698 2007-09-04 Daniel Jacobowitz <dan@codesourcery.com>
3700 * printcmd.c (printf_command): Handle ptr_arg. Correct typo
3701 in internal error message.
3703 2007-09-04 Pedro Alves <pedro_alves@portugalmail.pt>
3704 Daniel Jacobowitz <dan@codesourcery.com>
3706 * infcmd.c (post_create_inferior): Update comment.
3707 (run_command_1): Always call post_create_inferior with 0 as
3710 * i386-cygwin-tdep.h: New.
3711 * i386-cygwin-tdep.c: Include "i386-cygwin-tdep.h".
3712 (win32_xfer_shared_library): Make it extern.
3714 * win32-nat.c: Include gdb_obstack.h and xml-support.h and
3716 (win32_so_ops): Delete.
3717 (get_relocated_section_addrs): Delete.
3718 (solib_symbols_add): Delete.
3719 (register_loaded_dll): Delete.
3720 (win32_make_so): New.
3721 (handle_load_dll): Use win32_make_so.
3722 (win32_free_so): Free the passed in so.
3723 (win32_relocate_section_addresses): Delete.
3724 (win32_solib_create_inferior_hook): Delete.
3725 (handle_unload_dll): Don't add PE offset here. Free so with
3726 win32_free_so instead of free_so.
3727 (win32_special_symbol_handling): Delete.
3728 (get_win32_debug_event): Remove unneeded calls. Set state to
3729 TARGET_WAITKIND_LOADED on a dll unload.
3730 (do_initial_win32_stuff): Clear cygwin_load_start and
3732 (map_code_section_args): Delete.
3733 (dll_code_sections_add): Delete.
3734 (core_section_load_dll_symbols): Delete.
3735 (win32_xfer_shared_libraries): New.
3736 (win32_current_sos): Delete.
3737 (win32_xfer_partial): New.
3738 (open_symbol_file_object): Delete.
3739 (in_dynsym_resolve_code): Delete.
3740 (init_win32_ops): Set win32_xfer_partial as to_xfer_partial member
3741 of win32_ops. Remove win32_so_ops settings. Don't set
3742 current_target_so_ops here.
3744 * Makefile.in (i386_cygwin_tdep_h): New variable.
3745 (i386-cygwin-tdep.o): Update dependencies.
3746 (win32-nat.o): Update dependencies.
3748 2007-09-04 Pedro Alves <pedro_alves@portugalmail.pt>
3749 Daniel Jacobowitz <dan@codesourcery.com>
3751 * gdbarch.sh (core_xfer_shared_libraries): New.
3753 * corelow.c (core_xfer_partial): Handle TARGET_OBJECT_LIBRARIES.
3755 * gdb_obstack.h (obstack_grow_str, obstack_grow_str0): New.
3757 * xml-support.c (gdb_xml_parse): Debug output tweaks.
3758 (xml_escape_text): New.
3759 * xml-support.h (xml_escape_text): Declare.
3761 * config/i386/cygwin.mh (NATDEPFILES): Move corelow.o to ...
3762 * config/i386/cygwin.mt (TDEPFILES): ... here.
3764 * win32-nat.c: (fetch_elf_core_registers): Delete.
3765 (win32_elf_core_fn): Delete.
3766 (_initialize_core_win32): Delete.
3768 * i386-cygwin-tdep.c: Include "regset.h", "gdb_objstack.h",
3769 "xml-support.h" and "gdbcore.h".
3770 (i386_win32_gregset_reg_offset): New.
3771 (I386_WIN32_SIZEOF_GREGSET): New.
3772 (i386_win32_regset_from_core_section): New.
3773 (win32_xfer_shared_library): New.
3774 (struct cpms_data): New.
3775 (core_process_module_section): New.
3776 (win32_core_xfer_shared_libraries): New.
3777 (i386_cygwin_skip_trampoline_code): Register gregset_reg_offset,
3778 gregset_num_regs, sizeof_gregset members of tdep. Register
3779 regset_from_core_section and core_xfer_shared_libraries callbacks.
3781 * Makefile.in (i386-cygwin-tdep.o): Update dependencies.
3782 * gdbarch.h, gdbarch.c: Regenerate.
3784 2007-09-03 Daniel Jacobowitz <dan@codesourcery.com>
3786 * corelow.c (core_xfer_partial): Pass writebuf to
3787 deprecated_xfer_memory in TARGET_OBJECT_MEMORY write case.
3789 2007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
3791 * arm-tdep.h (arm_skip_stub): Declare.
3792 * arm-wince-tdep.c: Don't include "solib-svr4.h". Include
3794 (arm_pe_skip_trampoline_code): New function.
3795 (arm_wince_init_abi): Register arm_pe_skip_trampoline_code as
3796 gdbarch_skip_trampoline_code callback.
3797 * Makefile.in (arm-wince-tdep.o): Update dependencies.
3799 2007-09-03 Daniel Jacobowitz <dan@codesourcery.com>
3801 * MAINTAINERS: Move Fred Fish to Past Maintainers.
3803 2007-09-03 Daniel Jacobowitz <dan@codesourcery.com>
3805 * configure.ac: Add --with-expat.
3806 * configure: Regenerated.
3808 2007-09-03 Andreas Schwab <schwab@suse.de>
3810 * configure.ac: Accept --with-system-readline.
3811 (READLINE, READLINE_DEPS, READLINE_CFLAGS): Define and substitute.
3812 * configure: Regenerate.
3813 * Makefile.in (READLINE, READLINE_DEPS, READLINE_CFLAGS): Use
3815 (CDEPS): Use $(READLINE_DEPS) instead of $(READLINE).
3817 2007-09-03 Maxim Grigoriev <maxim2405@gmail.com>
3818 Daniel Jacobowitz <dan@codesourcery.com>
3820 * mi-main.c (mi_load_progress): Handle MI2 and MI3 interpreters.
3822 2007-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3824 * top.c (print_gdb_version): Fixed a string end-of-line compiler error.
3826 2007-09-02 Daniel Jacobowitz <dan@codesourcery.com>
3828 * top.c (print_gdb_version): Update for GPL version 3.
3830 2007-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3832 * NEWS: Mention the build-id .debug files verification.
3834 2007-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3836 * linux-nat.c (linux_nat_make_corefile_notes): Fixed a buffer overflow.
3838 2007-09-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3840 * Makefile.in (symfile.o): Update dependencies.
3841 * symfile.c (symbol_file_add_with_addrs_or_offsets): Initialize the
3842 DEBUGFILE variable. FIND_SEPARATE_DEBUG_FILE called only if !PSYMTABS.
3843 (struct build_id): New structure.
3844 (build_id_bfd_get, build_id_verify, build_id_to_debug_filename): New.
3845 (find_separate_debug_file): New variable BUILD_ID.
3846 Call BUILD_ID_BFD_GET with BUILD_ID_TO_DEBUG_FILENAME as the first try.
3848 2007-08-31 Vladimir Prus <vladimir@codesourcery.com>
3850 * varobj.c (struct varobj): Fix comment
3851 for the type member not to lie when it can be
3854 2007-08-31 Vladimir Prus <vladimir@codesourcery.com>
3856 Implement -var-info-path-expression.
3858 * mi/mi-cmds.h (mi_cmd_var_info_path_expression):
3860 * mi/mi-cmds.c (mi_cmds): Register var-info-path-expression.
3861 * mi/mi-cmd-var.c (mi_cmd_var_info_path_expression): New.
3862 * varobj.c (struct varobj): New field 'path_expr'.
3863 (c_path_expr_of_child, cplus_path_expr_of_child)
3864 (java_path_expr_of_child): New.
3865 (struct language_specific): New field path_expr_of_child.
3866 (varobj_create): Initialize the path_expr field.
3867 (varobj_get_path_expr): New.
3868 (new_variable): Initialize the path_expr field.
3869 (free_variable): Free the path_expr field.
3870 (adjust_value_for_children_access): New parameter
3872 (c_number_of_children): Adjust.
3873 (c_describe_child): New parameter CFULL_EXPRESSION.
3874 Compute full expression.
3875 (c_value_of_child, c_type_of_child): Adjust.
3876 (cplus_number_of_children): Adjust.
3877 (cplus_describe_child): New parameter CFULL_EXPRESSION.
3878 Compute full expression.
3879 (cplus_name_of_child, cplus_value_of_child)
3880 (cplus_type_of_child): Adjust.
3881 * varobj.h (varobj_get_path_expr): Declare.
3883 2007-08-31 Vladimir Prus <vladimir@codesourcery.com>
3885 * mi/mi-cmd-var.c (print_varobj): If a varobj
3886 type is NULL, don't try to print it.
3888 2007-08-30 Alan Modra <amodra@bigpond.net.au>
3890 * ppc-linux-nat.c (right_fill_reg): Delete.
3891 (supply_gregset): Use ppc_supply_gregset.
3892 (supply_fpregset): Use ppc_supply_fpregset.
3893 (fill_gregset): Use ppc_collect_gregset.
3894 (fill_fpregset): Use ppc_collect_fpregset.
3895 * ppc-linux-tdep.c (PPC_LINUX_PT_*): Don't define.
3896 (right_supply_register, ppc_linux_supply_gregset): Delete.
3897 (ppc32_linux_supply_gregset, ppc64_linux_supply_gregset): Delete.
3898 (ppc_linux_supply_fpregset): Delete.
3899 (ppc_linux_collect_gregset): New function.
3900 (ppc32_linux_reg_offsets, ppc64_linux_reg_offsets): New.
3901 (ppc32_linux_gregset, ppc64_linux_gregset): Update to use reg offsets,
3902 ppc_linux_supply_gregset, and ppc_collect_gregset.
3903 (ppc_linux_fpregset): Rename to ppc32_linux_fpregset and update.
3904 (ppc_linux_gregset, ppc_linux_fpregset): New functions.
3905 (ppc_linux_regset_from_core_section): Update.
3906 * ppc-tdep.h (ppc_linux_gregset, ppc_linux_fpregset): Declare.
3907 (ppc_linux_supply_gregset, ppc_linux_supply_fpregset): Delete.
3908 (struct ppc_reg_offsets): Add gpr_size, xr_size, fpscr_size fields.
3909 * ppcobsd-tdep.c (ppcobsd_supply_gregset): Delete FIXME and assert.
3910 (ppcobsd_collect_gregset): Likewise.
3911 (_initialize_ppcnbsd_tdep): Init gpr_size, xr_size, fpscr_size.
3912 * ppcnbsd-tdep.c (_initialize_ppcobsd_tdep): Likewise.
3913 * ppcobsd-nat.c (_initialize_ppcobsd_nat): Likewise.
3914 * rs6000-aix-tdep.c (rs6000_aix32_reg_offsets): Likewise.
3915 (rs6000_aix64_reg_offsets): Likewise.
3916 (rs6000_aix_supply_regset): Call ppc_supply_fpregset without testing
3917 ppc_floating_point_unit_p.
3918 (rs6000_aix_collect_regset): Similarly.
3919 * rs6000-tdep.c (ppc_supply_reg): Add regsize param. Adjust offset
3920 when regsize is larger than regcache register size.
3921 (ppc_collect_reg): Similarly zero pad when regsize is larger than
3922 regcache register size.
3923 (ppc_greg_offset): New function, split out from..
3924 (ppc_supply_gregset): ..here. Separate code handling all regs from
3925 single reg case. Correct xer offset.
3926 (ppc_fpreg_offset): New function, split out from..
3927 (ppc_supply_fpregset): ..here. Separate code handling all regs from
3929 (ppc_collect_gregset, ppc_collect_fpregset): Likewise.
3930 (ppc_supply_fpregset, ppc_collect_fpregset): Don't assert we have
3931 a fp unit, instead return if no fp.
3933 2007-08-29 Jim Blandy <jimb@codesourcery.com>
3935 * breakpoint.c (watch_command_1): Remove '#ifdef HPUXHPPA' block;
3936 this code has not been compiled for two years.
3938 2007-08-29 Michael Snyder <msnyder@access-company.com>
3940 * event-top.c (gdb_readline2): Return after EOF.
3942 2007-08-29 Joel Brobecker <brobecker@adacore.com>
3944 * symtab.c: Remove a function that has been commented out 3 years ago.
3946 2007-08-29 Randolph Chung <tausq@debian.org>
3948 * hppa-tdep.c (hppa32_cannot_fetch_register)
3949 (hppa64_cannot_fetch_register): New functions.
3950 (hppa_gdbarch_init): Set cannot_fetch_register appropriately.
3951 * hppa-tdep.h (hppa_regnum): Add HPPA_CR26_REGNUM.
3953 2007-08-28 Michael Snyder <msnyder@access-company.com>
3955 * mi/mi-cmd-var.c (mi_print_value_p): No longer necessary to
3956 check for null before calling check_typedef.
3958 * NEWS: Mention Coverity bug fixes.
3960 2007-08-27 Markus Deuling <deuling@de.ibm.com>
3962 * spu-tdep.c (spu_pointer_to_address): New function.
3963 (spu_integer_to_address): Likewise.
3964 (spu_gdbarch_init): Add spu_pointer_to_address and
3965 spu_integer_to_address to gdbarch.
3967 2007-08-26 Pedro Alves <pedro_alves@portugalmail.pt>
3969 * arm-wince-tdep.c (ARM_WINCE_JB_PC): Change to 10.
3971 2007-08-23 Joel Brobecker <brobecker@adacore.com>
3973 * Makefile.in (copying.c): Use the top-level COPYING3 as the file
3974 that contains the GDB license.
3975 * copying.awk: Adjust to the GPLv3 wording.
3976 * copying.c: Regenerate.
3978 2007-08-23 Joel Brobecker <brobecker@adacore.com>
3980 * copying.awk: Protoization, and i18n markup.
3982 2007-08-23 Joel Brobecker <brobecker@adacore.com>
3984 * config/djgpp/djconfig.sh: Switch license to GPLv3.
3985 * copyright.sh: Likewise.
3986 * gdb-events.sh: Likewise.
3987 * gdb_gcore.sh: Likewise.
3988 * gdb_mbuild.sh: Likewise.
3989 * gdbarch.sh: Likewise.
3990 * observer.sh: Likewise.
3991 * features/feature_to_c.sh: Likewise.
3992 * regformats/regdat.sh: Likewise.
3994 2007-08-23 Joel Brobecker <brobecker@adacore.com>
3996 Switch the license of all .c files to GPLv3.
3997 Switch the license of all .h files to GPLv3.
3998 Switch the license of all .cc files to GPLv3.
4000 2007-08-23 Joel Brobecker <brobecker@adacore.com>
4002 * configure.ac: Switch license to GPLv3.
4004 2007-08-22 Daniel Jacobowitz <dan@codesourcery.com>
4006 * mips-tdep.c (mips_gdbarch_init): Use Tag_GNU_MIPS_ABI_FP to
4007 determine the file's FPU type.
4009 2007-08-22 Daniel Jacobowitz <dan@codesourcery.com>
4011 * mips-tdep.c (mips_n32n64_fp_arg_chunk_p): New.
4012 (mips_n32n64_push_dummy_call): Always increment float_argreg along
4013 with argreg. Use mips_n32n64_fp_arg_chunk_p.
4015 2007-08-22 Daniel Jacobowitz <dan@codesourcery.com>
4017 * solib-svr4.c (scan_dyntag): Only read target memory when necessary.
4019 (elf_locate_base): Look for DT_MIPS_RLD_MAP first. Expand comments.
4020 (elf_lookup_lib_symbol): Fix formatting.
4022 2007-08-21 Michael Snyder <msnyder@access-company.com>
4024 * dbxread.c (read_dbx_symtab): Guard null deref.
4027 * valops.c (find_overload_match): Guard against NULL.
4029 2007-08-21 Daniel Jacobowitz <dan@codesourcery.com>
4031 * MAINTAINERS (Patch Champions): Remove self.
4033 2007-08-21 Chris Smith <chris.smith@st.com>
4035 * cli/cli-script.c (read_command_lines): Call dont_repeat for each
4038 2007-08-18 Michael Snyder <msnyder@access-company.com>
4040 * stabsread.c (dbx_lookup_type): Memory leak.
4042 * event-loop.c (delete_async_signal_handler): Move pointer null
4043 test to before pointer dereference.
4045 * ui-out.c (append_header_to_list): Possible cut and paste error.
4047 * MAINTAINERS: white space tweak.
4049 2007-08-17 Michael Snyder <msnyder@access-company.com>
4051 * stack.c (print_frame): Memory leak.
4053 * completer.c (filename_completer): Avoid memory leak.
4054 Remove unnecessary nested block.
4056 * c-exp.y (parse_number): Memory leak.
4058 * completer.c (location_completer): Must free 'fn_list', except
4059 in the one case where it is returned (as 'list').
4061 * varobj.c (value_of_root): Memory leak.
4063 * gdbtypes.h (virtual_base_list): Remove export decl.
4064 * gdbtypes.c (virtual_base_list): Make static. Not called outside.
4065 (virtual_base_index): Memory leak.
4066 (virtual_base_index_skip_primaries): Ditto.
4068 2007-08-17 Maxim Grigoriev <maxim2405@gmail.com>
4070 * xtensa-tdep.c (ARG_NOF, ARG_1ST, PS_WOE, PS_EXC, C0_MAXOPDS)
4071 (C0_NREGS, C0_CLESV, C0_SP, C0_FP, C0_RA, C0_ARGS, C0_NARGS)
4072 (C0_CONST, C0_INEXP, C0_NOSTK): New macros.
4073 (xtensa_read_register): New function.
4074 (xtensa_windowed_frame_cache, xtensa_call0_frame_cache, xtensa_c0reg)
4075 (xtensa_insn_kind): New types.
4076 (xtensa_frame_cache, xtensa_alloc_frame_cache, xtensa_frame_cache)
4077 (xtensa_frame_prev_register, xtensa_return_value, xtensa_skip_prologue)
4078 (xtensa_verify_config, xtensa_pseudo_register_read)
4079 (xtensa_pseudo_register_write, xtensa_extract_return_value)
4080 (xtensa_store_return_value)
4081 (xtensa_push_dummy_call): Extended to support Xtensa Call0 ABI.
4082 (windowing_enabled, extract_call_winsize, xtensa_unwind_dummy_id)
4083 (xtensa_frame_this_id, xtensa_frame_prev_register)
4084 (xtensa_register_type, xtensa_reg_to_regnum): Cosmetic changes.
4085 (call0_frame_cache, call0_frame_get_reg_at_entry)
4086 (call0_classify_opcode, call0_track_op)
4087 (call0_analyze_prologue, call0_frame_cache): New functions.
4089 2007-08-17 Vladimir Prus <vladimir@codesourcery.com>
4091 * breakpoint.c (bpstat_free): New.
4092 (bpstat_clear): Use bpstat_free.
4093 (delete_breakpoint): Document why we cannot
4094 remove bpstats from stop_bpstat.
4095 * breakpoint.h (bpstat_free): Declare.
4097 2007-08-16 Michael Snyder <msnyder@access-company.com>
4099 * event-loop.c (gdb_wait_for_event): Move statement into "if" block.
4101 2007-08-15 Paul Hilfinger <hilfinger@adacore.com>
4102 Joel Brobecker <brobecker@adacore.com>
4104 * ada-lang.c (resolve_subexp): Correct arity of binary operators.
4106 2007-08-15 Paul Hilfinger <hilfinger@adacore.com>
4107 Joel Brobecker <brobecker@adacore.com>
4109 * ada-lang.c (possible_user_operator_p): Alternative fix to last
4110 checkin guarding against NULL.
4112 2007-08-14 Michael Snyder <msnyder@access-company.com>
4114 * tui-command.c, tui-data.c, tui-disasm.c, tui-file.c, tui-io.c,
4115 tui-layout.c, tui-regs.c, tui-source.c, tui-win.c, tui-windata.c,
4116 tui-wingeneral.c, tui-winsource.c: Coding standard, && and ||
4117 go at beginning of new line.
4119 * tui-data.c, tui-data.h, tui-disasm.c, tui-disasm.h, tui-hooks.c,
4120 tui-io.c, tui-layout.c, tui-layout.h, tui-out.c, tui-regs.c,
4121 tui-source.c, tui-source.h, tui-stack.c, tui-win.c, tui-win.h,
4122 tui-windata.c, tui-windata.h, tui-wingeneral.c, tui-winsource.c,
4123 tui-winsource.h, tui.c, tui.h: Function declarations and
4124 definitions, wrap long lines.
4126 * tui-command.c, tui-data.c, tui-disasm.c, tui-layout.c,
4127 tui-regs.c, tui-win.c, tui-windata.c, tui-winsource.c, tui.c:
4128 Reformat block comments to GNU standard.
4130 * tui-command.c, tui-data.c, tui-data.h, tui-disasm.c, tui-file.c,
4131 tui-hooks.c, tui-interp.c, tui-io.c, tui-layout.c, tui-out.c,
4132 tui-regs.c, tui-regs.h, tui-source.c, tui-stack.c, tui-win.c,
4133 tui-windata.c, tui-wingeneral.c, tui-winsource.c, tui-winsource.h,
4134 tui.c, tui.h: Comment reformatting to coding standard (capitals,
4135 spaces after periods, etc).
4137 * tui-data.c, tui-data.h, tui-disasm.c, tui-hooks.c, tui-layout.c,
4138 tui-regs.c, tui-source.c, tui-stack.c, tui-win.c, tui-windata.c,
4139 tui-wingeneral.c, tui-wingeneral.h, tui-winsource.c, tui.c,
4140 tui-winsource.h: Whitespace changes, fix pointer declarations
4143 2007-08-14 Joel Brobecker <brobecker@adacore.com>
4144 Michael Snyder <msnyder@access-company.com>
4146 * ada-lang.c (field_alignment): Guard against NULL.
4148 2007-08-14 Joel Brobecker <brobecker@adacore.com>
4150 * MAINTAINERS (Global Maintainers): Add self.
4152 2007-08-14 Michael Snyder <msnyder@access-company.com>
4154 * mi/mi-interp.c (mi_cmd_interpreter_exec): Dead code, dead variable.
4156 * ada-lang.c (possible_user_operator_p): Guard against NULL.
4158 * varobj.c (cplus_describe_child): Guard against null.
4159 Use "NULL" instead of "0" to initialize pointers.
4161 2007-08-14 Daniel Jacobowitz <dan@codesourcery.com>
4163 * arm-tdep.c (arm_gdbarch_init): Allow unknown ABI and FPU settings
4164 to match any gdbarch with matching OSABI. Set default ABI and FPU
4165 after running the OSABI handler.
4167 2007-08-14 Daniel Jacobowitz <dan@codesourcery.com>
4169 * config/i386/linux.mh (NATDEPFILES): Move corelow.o from here...
4170 * config/i386/linux.mt (TDEPFILES): ...to here.
4172 2007-08-14 Vladimir Prus <vladimir@codesourcery.com>
4174 * breakpoint.c (disable_breakpoints_in_shlibs): Remove
4175 the 'silent' parameter and code to implement that.
4176 * breakpoint.h (disable_breakpoints_in_shlibs): Adjust
4178 * win32-nat.c: Adjust.
4181 2007-08-14 Vladimir Prus <vladimir@codesourcery.com>
4183 * breakpoint.c (update_breakpoints_after_exec): Don't
4184 set address to zero.
4186 2007-08-13 Michael Snyder <msnyder@access-company.com>
4188 * valops.c: Whitespace clean-up.
4190 * tui/tui-winsource.c (tui_alloc_source_buffer): Clean up allocation.
4192 * event-top.c (command_line_handler): Memory leak.
4194 * mi/mi-cmd-var.c (mi_cmd_var_set_format): Memory leak.
4195 No need to make copy.
4197 * source.c (find_source_lines): Require symtab 's'.
4199 2007-08-11 Michael Snyder <msnyder@access-company.com>
4201 * completer.c: Spelling fix in comments.
4203 2007-08-10 Michael Snyder <msnyder@access-company.com>
4205 * gdbtypes.c: Coding standard cleanup.
4206 * gdbtypes.c: Comment/whitespace cleanup.
4208 * stabsread.c (read_huge_number): Attempt to compute value before
4209 values that it depends on.
4211 * linespec.c (decode_dollar): Dead code, ptr can't be non-null.
4212 (decode_objc): Use "NULL" instead of 0.
4213 (find_method): Ditto.
4214 (decode_all_digits): Ditto.
4215 (decode_dollar): Ditto.
4217 * mi/mi-main.c (mi_cmd_data_evaluate_expression): Resource leak.
4219 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Memory leak.
4221 * solib-svr4.c (enable_break): Don't free tmp_pathname until
4224 * completer.c: Comment/whitespace cleanup.
4226 2007-08-10 Joel Brobecker <brobecker@adacore.com>
4228 * Makefile.in (i386nbsd-nat.o): Add missing dependency.
4230 2007-08-10 Maxim Grigoriev <maxim2405@gmail.com>
4232 * remote-fileio.c (remote_fileio_resize_fd_map): Initialize newly
4233 allocated file descriptors.
4235 2007-08-10 Joel Brobecker <brobecker@adacore.com>
4237 * Makefile.in: Minor cleanup throughout; add some missing variables,
4238 add some missing rules, remove some rules that are no longer needed,
4239 and fix the dependencies in several rules.
4241 2007-08-10 Ludovic Courtès <ludo@gnu.org>
4243 * Makefile.in (SFILES): Add scm-{exp,lang,valprint}.c.
4244 (scm_lang_h, scm_tags_h): New.
4245 (COMMON_OBS): Add scm-{exp,lang,valprint}.o.
4246 (scm-exp.o, scm-lang.o, scm-valprint.o): New targets.
4247 * defs.h (enum language): Add `language_scm'.
4249 * MAINTAINERS: Add Emacs local variables to use UTF-8 upon
4252 2007-08-09 Ludovic Courtès <ludo@gnu.org>
4254 * MAINTAINERS (Write After Approval): Add myself.
4256 2007-08-09 Michael Snyder <msnyder@access-company.com>
4258 * solib.c (solib_open): Memory leak -- openp returns xmalloc buffer.
4260 2007-08-09 Joel Brobecker <brobecker@adacore.com>
4262 * solib-som.c (som_relocate_section_addresses): Stop saving
4263 the $CODE$ section in the so_list structure.
4265 2007-08-08 Maxim Grigoriev <maxim2405@gmail.com>
4267 * xtensa-tdep.h (XTENSA_MAX_COPROCESSOR): New.
4268 (xtensa_register_group_t): Add entries for coprocessors.
4269 * xtensa-tdep.c (xtensa_init_reggroups): New register groups.
4270 (xtensa_add_reggroups): Likewise.
4271 (xtensa_register_reggroup_p): Likewise.
4272 (xtensa_coprocessor_register_group): New function.
4275 2007-08-08 Jan Kratochvil <jan.kratochvil@redhat.com>
4277 * serial.c (serial_open): Fix the OPEN parameter macro expansion.
4279 2007-08-08 Michael Snyder <msnyder@access-company.com>
4281 * target.c (target_read_string): Guard against null.
4283 * varobj.c (value_of_root): Move alloc after return to avoid leak.
4285 * tui/tui-layout.c (tui_set_layout): Dead code, dead variable.
4286 (tui_set_layout_for_display_command): Mem leak.
4288 * top.c (command_line_input): Memory leak.
4290 * solib-svr4.c (open_symbol_file_object): Memory leak.
4291 (svr4_current_sos): Ditto.
4292 (enable_break): Ditto.
4294 * cp-valprint.c (cp_print_hpacc_virtual_table_entries): Memory leak.
4296 * dwarf2read.c (add_partial_symbol): Memory leak.
4298 2007-08-06 Michael Snyder <msnyder@access-company.com>
4300 * ada-lang.c (desc_bounds): Comparison of function address to NULL.
4302 2007-08-05 Jim Blandy <jimb@codesourcery.com>
4304 * macroexp.c (init_buffer): Remove testing code that overrides the
4305 caller's length guess.
4306 (gather_arguments): Use a larger initial size, now that the vector
4307 growth code has been exercised.
4309 2007-08-05 Pedro Alves <pedro_alves@portugalmail.pt>
4311 * solib-target.c (solib_target_relocate_section_addresses): Add
4312 orig_delta to addr_high.
4314 2007-08-04 Michael Snyder <msnyder@access-company.com>
4316 * remote-fileio.c (remote_fileio_func_write): Memory leak.
4318 * breakpoint.c (print_one_breakpoint): Off by one error.
4320 * tracepoint.c (add_register): Off by one error.
4321 (stringify_collection_list): Free malloc buffer.
4323 2007-08-03 Michael Snyder <msnyder@access-company.com>
4325 * mi-cmd-var.c (mi_cmd_var_delete): Remove unused variable,
4326 stop memory leak, straighten out cleanups.
4328 * jv-lang.c (java_link_class_type): Guard against NULL.
4330 2007-08-02 Michael Snyder <msnyder@access-company.com>
4332 * gdbtypes.c (create_set_type): Test should only be done within
4333 the preceeding if block. Otherwise, variable is uninitialized.
4335 * gdbtypes.c (check_typedef): Guard NULL.
4337 2007-08-01 Michael Snyder <msnyder@access-company.com>
4339 * cli/cli-decode.c (lookup_cmd): Check for null earlier, to
4340 avoid dereference in lookup_cmd_1.
4342 * tui/tui-data.c (tui_alloc_content): Move assign out of if,
4343 clean up long lines.
4344 (tui_alloc_generic_win_info): Tidy by using XMALLOC macro.
4345 (tui_alloc_win_info): Ditto.
4346 (tui_add_content_elements): Ditto.
4347 * tui/tui-file.c (tui_file_magic): Ditto.
4349 2007-07-31 Michael Snyder <msnyder@access-company.com>
4351 * breakpoint.c (breakpoint_init_inferior): Add 'else' to 'if'.
4352 True and false paths are mutually exclusive.
4354 * event-top.c (command_line_handler): Add pedantic return.
4356 * f-valprint.c (info_common_command): Bail out to prevent null
4357 pointer deref. Break up a long line.
4359 * exec.c (xfer_memory): Remove redundant condition from 'if'.
4361 * symfile.c (reread_separate_symbols): Free xmalloced memory.
4363 * printcmd.c (build_address_symbolic): Remove dead code and dead
4366 2007-07-31 Daniel Jacobowitz <dan@codesourcery.com>
4368 * linespec.c (minsym_found): Advance to the next line if possible.
4370 2007-07-31 Pedro Alves <pedro_alves@portugalmail.pt>
4372 * arm-wince-tdep.c (arm_wince_init_abi): Remove svr4 related call.
4373 * config/arm/wince.mt (TDEPFILES): Remove solib-legacy.o and
4374 solib-svr4.o, and add solib-target.o
4376 2007-07-27 Michael Snyder <msnyder@access-company.com>
4378 * tui/tui-data.c (tui_alloc_generic_win_info): Wrong arg for sizeof.
4380 2007-07-26 Maciej W. Rozycki <macro@linux-mips.org>
4382 * MAINTAINERS (Write After Approval): Add myself.
4384 2007-07-26 Maciej W. Rozycki <macro@mips.com>
4386 * Makefile.in (MAKEHTMLFLAGS): Also search the current directory
4389 2007-07-25 Maciej W. Rozycki <macro@mips.com>
4391 * Makefile.in (MAKEHTMLFLAGS): Remove "-glossary".
4393 2007-07-24 Michael Snyder <msnyder@access-company.com>
4395 * solib-svr4.c (svr4_fetch_objfile_link_map): Null pointer check of
4396 'buffer' must cover both branches that call strcmp (Coverity).
4398 * stack.c (print_frame_args): Check return value of lookup_symbol.
4400 * ax-gdb.c (find_field): Guard against null ptr.
4402 2007-07-24 Ulrich Weigand <uweigand@de.ibm.com>
4404 * regformats/reg-spu.dat: Fix order of npc, id registers.
4406 2007-07-24 Ulrich Weigand <uweigand@de.ibm.com>
4408 * target.c (memory_xfer_partial): Accesses to unmapped overlay
4409 sections should always go to the executable file.
4411 2004-07-20 Chris Dearman <chris@mips.com>
4413 * mips-tdep.c (heuristic_proc_start): Add more MIPS16 function
4414 prologue instructions.
4416 2007-07-20 Maciej W. Rozycki <macro@mips.com>
4418 * mips-tdep.c (mips_next_pc): Use is_mips16_addr() instead of
4421 2007-07-20 Chris Dearman <chris@mips.com>
4422 Maciej W. Rozycki <macro@mips.com>
4424 * mips-tdep.c (fetch_mips_16): Fix typos and reformat the
4427 2007-07-17 Pedro Alves <pedro_alves@portugalmail.pt>
4428 Daniel Jacobowitz <dan@codesourcery.com>
4430 * config/i386/cygwin.mt (TDEPFILES): Add solib-target.o.
4431 * coff-pe-read.c (read_pe_exported_syms): Delete verbose
4433 * NEWS: Mention gdbserver DLL support.
4435 2007-07-17 Daniel Jacobowitz <dan@codesourcery.com>
4437 * dwarf2read.c (dwarf_decode_lines): Detect address size mismatches.
4439 2007-07-16 H.J. Lu <hongjiu.lu@intel.com>
4441 * i386-linux-nat.c (fetch_regs): Work around gcc 3.4 alias
4444 2007-07-13 Kevin Buettner <kevinb@redhat.com>
4446 * mep-tdep.c (mep_analyze_prologue): Update comment for BRA
4449 2007-07-12 Kevin Buettner <kevinb@redhat.com>
4451 * mep-tdep.c (IS_BRA, BRA_DISP): New macros.
4452 (mep_analyze_prologue): Add case for BRA instruction.
4454 2007-07-12 Ulrich Weigand <uweigand@de.ibm.com>
4456 * solib-svr4.c (LM_ADDR_CHECK): Relax prelink recognition heuristic.
4458 2007-07-10 Nick Roberts <nickrob@snap.net.nz>
4460 * breakpoint.c: Include "top.h".
4461 (breakpoint_1): Don't set convenience variable $_ if server prefix
4463 (_initialize_breakpoint): Describe this behaviour in command help.
4465 2007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
4467 * solib-target.c (library_list_start_segment): Cast address to
4470 2007-07-06 Mark Kettenis <kettenis@gnu.org>
4472 * bsd-uthread.c (bsd_uthread_wait): Don't try to fetch thread IDs
4473 for terminated processes.
4475 2007-07-05 Michael Snyder <msnyder@access-company.com>
4477 * event-top.c (cli_command_loop): Prompt string can (and should)
4478 be freed after call to readline (Coverity). Also move local var
4479 declarations into block where they are used.
4481 * tui/tui-interp.c (tui_command_loop): Prompt string can (and
4482 should) be freed after call to readline (Coverity). Also move
4483 local var declarations into block where they are used.
4485 2007-07-03 Andreas Schwab <schwab@suse.de>
4487 * linux-nat.c (linux_nat_info_proc_cmd): Fix parsing of columns in
4490 2007-07-03 Paul Gilliam <pgilliam@us.ibm.com>
4491 Thiago Bauermann <bauerman@br.ibm.com>
4492 Joseph S. Myers <joseph@codesourcery.com>
4493 Daniel Jacobowitz <dan@codesourcery.com>
4495 * remote.c (remote_check_symbols): Use
4496 gdbarch_convert_from_func_ptr_addr.
4497 * infcall.c (find_function_addr): Handle function descriptors
4498 without debugging information.
4499 * ppc-linux-tdep.c (ppc_linux_convert_from_func_ptr_addr): Renamed
4500 from ppc64_linux_convert_from_func_ptr_addr. Handle -msecure-plt.
4501 (ppc_linux_init_abi): Always set convert_from_func_ptr_addr.
4502 * solib-svr4.c (solib_break_names): Remove "._dl_debug_state".
4503 (bfd_lookup_symbol): Do not take a SECT_FLAGS argument. Always
4504 allow SEC_CODE and SEC_DATA.
4505 (enable_break): Update calls. Pass current_target to solib_add.
4506 Use gdbarch_convert_from_func_ptr_addr.
4508 2007-07-03 Ilko Iliev <iliev@ronetix.at>
4509 Daniel Jacobowitz <dan@codesourcery.com>
4511 * symfile.c (print_transfer_performance): Avoid integer overflow.
4514 2007-07-03 Markus Deuling <deuling@de.ibm.com>
4516 * cp-namespace.c (lookup_symbol_file): Add block to
4517 lookup_symbol_global call.
4518 * Makefile.in (solist_h): Add dependency on symtab header.
4519 (symtab.o): Add dependency on solist header.
4520 * solib.c (solib_global_lookup): New function.
4521 * solib-svr4.c (scan_dyntag): Likewise.
4522 (elf_locate_base): Call helper routine scan_dyntag.
4523 (elf_lookup_lib_symbol): New function.
4524 (_initialize_svr4_solib): Add elf_lookup_lib_symbol to svr4_so_ops.
4525 * solist.h (symtab.h): New include.
4526 (struct target_so_ops): New member lookup_lib_global_symbol.
4527 (solib_global_lookup): New prototype.
4528 * symtab.c: New include solist.h.
4529 (lookup_objfile_from_block): New function.
4530 (lookup_global_symbol_from_objfile): New function.
4531 (basic_lookup_symbol_nonlocal): Add block to lookup_symbol_global call.
4532 (lookup_symbol_global): Call library-specific lookup procedure.
4533 * symtab.h (lookup_global_symbol_from_objfile): New prototype.
4535 * NEWS: Document framework.
4537 2007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
4539 * target-descriptions.c (tdesc_create_reg): Do not set reg->type
4542 * cli/cli-script.c (build_command_line): Update NULL check.
4544 2007-07-02 Michael Snyder <msnyder@access-company.com>
4546 * p-exp.y (yylex): Memory leak, 'uptokstart' must be freed (Coverity).
4548 2007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
4550 * Makefile.in (XMLFILES): Add library-list.dtd.
4551 (ALLDEPFILES): Add solib-target.o.
4552 (solib-target.o): New rule.
4553 * remote.c (PACKET_qXfer_libraries): New constant.
4554 (remote_protocol_features): Add qXfer:libraries:read.
4555 (remote_wait): Recognize library stop replies.
4556 (remote_async_wait): Likewise. Fix typo.
4557 (remote_xfer_partial): Handle TARGET_OBJECT_LIBRARIES.
4558 (init_remote_async_ops): Fix typo.
4559 (_initialize_remote): Register "set remote library-info-packet".
4560 * solib-som.c (som_current_sos): Set addr_low and addr_high.
4561 * solib-target.c: New file.
4562 * solib.c (solib_map_sections): Use addr_low and addr_high instead
4564 (info_sharedlibrary_command): Likewise.
4565 (solib_add_library, solib_remove_library): New.
4566 * solist.h (struct so_list): Replace textsection with addr_low and
4568 * target.h (enum target_object): Add TARGET_OBJECT_LIBRARIES.
4569 * NEWS: Describe new qXfer:libraries:read and shared library
4571 * features/library-list.dtd: New.
4573 2007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
4575 * infrun.c (inferior_ignoring_startup_exec_events): Delete.
4576 (start_remote): Use STOP_QUIETLY_REMOTE.
4577 (handle_inferior_event): Do not condition TARGET_WAITKIND_LOADED
4578 support on a SOLIB_ADD definition. Update breakpoints_inserted.
4579 Update to match shared library event breakpoint support. Only
4580 resume if appropriate. Handle STOP_QUIETLY_REMOTE.
4581 (normal_stop): Handle TARGET_WAITKIND_LOADED.
4582 * fork-child.c (startup_inferior): Do not set
4583 inferior_ignoring_startup_exec_events
4584 * inferior.h (inferior_ignoring_startup_exec_events): Delete
4586 (enum stop_kind): Improve documentation. Add STOP_QUIETLY_REMOTE.
4588 2007-07-02 Markus Deuling <deuling@de.ibm.com>
4590 * breakpoint.c (insert_bp_location): Remove dead code
4591 (DISABLE_UNSETTABLE_BREAK).
4592 (disable_breakpoints_in_shlibs)
4593 (disable_breakpoints_in_unloaded_shlib): Likewise (comment).
4595 2007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
4597 * breakpoint.c (reattach_breakpoints): Do not use remove_breakpoint.
4598 Call insert_bp_location.
4600 2007-07-01 H.J. Lu <hongjiu.lu@intel.com>
4602 * core-regset.c (fetch_core_registers): Work around gcc 3.4
4605 2007-07-01 Daniel Jacobowitz <dan@codesourcery.com>
4607 * minsyms.c (lookup_minimal_symbol_by_pc_section): Search fewer
4610 2007-07-01 Daniel Jacobowitz <dan@codesourcery.com>
4612 * top.c (gdb_readline_wrapper_line): Call rl_callback_handler_remove.
4613 (struct gdb_readline_wrapper_cleanup): Remove prompt_orig.
4614 (gdb_readline_wrapper_cleanup): Do not reset the prompt.
4615 (gdb_readline_wrapper): Do not save the prompt. Pass our prompt
4616 to display_gdb_prompt.
4618 2007-07-01 Daniel Jacobowitz <dan@codesourcery.com>
4621 * target.c (memory_xfer_partial): Do not continue past targets with
4624 2007-06-30 Andreas Schwab <schwab@suse.de>
4626 * m68k-tdep.c (m68k_ps_type): New.
4627 (m68k_init_types): New.
4628 (m68k_register_type): Use m68k_ps_type for PS register.
4629 (_initialize_m68k_tdep): Call m68k_init_types.
4631 * m68k-tdep.c (m68k_gdbarch_init): Don't infer coldfire flavour
4632 from the generic m68k arch.
4634 2007-06-28 Michael Snyder <msnyder@access-company.com>
4636 * m2-typeprint.c (m2_print_type): Move pointer ref after null test
4639 * linux-thread-db.c (thread_db_get_thread_local_address): Add
4640 gdb_assert before using return value of find_thread_pid (Coverity).
4642 * source.c (unset_substitute_path_command): Plug leak (Coverity).
4644 * cli/cli-script.c (build_command_line): Add null pointer guard
4647 2007-06-27 Daniel Jacobowitz <dan@codesourcery.com>
4649 * linux-thread-db.c (thread_db_attach): Delete.
4650 (thread_db_detach): Typo fix. Call target_mourn_inferior
4651 instead of fixing up proc_handle.
4652 (have_threads_callback, have_threads): New functions.
4653 (thread_db_wait): Remove dead proc_handle.pid check. Only
4654 translate PTIDs if we have registered threads. Check for new
4655 threads if we have none.
4656 (thread_db_create_inferior, thread_db_post_startup_inferior): Delete.
4657 (find_new_threads_callback): Only enable event reporting if TID == 0.
4658 (same_ptid_callback): New.
4659 (thread_db_get_thread_local_address): Check for new threads.
4660 (init_thread_db_ops): Don't set to_attach, to_create_inferior,
4661 or to_post_startup_inferior.
4663 2007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
4665 * infrun.c (adjust_pc_after_break): Do not assume software single-step
4666 is always active if SOFTWARE_SINGLE_STEP_P is true.
4667 (resume): Use gdbarch_software_single_step[_p] instead of
4668 SOFTWARE_SINGLE_STEP[_P].
4669 (handle_inferior_event): Do not check for SOFTWARE_SINGLE_STEP_P.
4671 * gdbarch.sh (software_single_step): Remove target macro.
4672 * gdbarch.h, gdbarch.c: Regenerate.
4674 2007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
4676 * gdbarch.sh (gdbarch_swap_ftype, deprecated_register_gdbarch_swap,
4677 DEPRECATED_REGISTER_GDBARCH_SWAP): Remove.
4678 (struct gdbarch_swap, struct gdbarch_swap_registration,
4679 struct gdbarch_swap_registry, gdbarch_swap_registry,
4680 current_gdbarch_swap_init_hack, current_gdbarch_swap_out_hack,
4681 current_gdbarch_swap_in_hack): Remove.
4682 (find_arch_by_info): Do not call current_gdbarch_swap_init_hack.
4683 (gdbarch_find_by_info): Do not call current_gdbarch_swap_in_hack
4684 and current_gdbarch_swap_out_hack, update current_gdbarch directly.
4685 (deprecated_current_gdbarch_select_hack): Likewise.
4686 * gdbarch.h, gdbarch.c: Regenerate.
4688 2007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
4690 * infrun.c (clear_proceed_status): Clean up stop_registers.
4691 (normal_stop): Allocate regcache for stop_registers.
4692 (struct inferior_status): Remove stop_registers member.
4693 (save_inferior_status): Do not save stop_registers.
4694 (restore_inferior_status): Do not restore stop_registers.
4695 (discard_inferior_status): Do not discard stop_registers.
4696 (build_infrun): Remove.
4697 (_initialize_infrun): Do not swap stop_registers.
4699 2007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
4701 * remote.c (remote_address_masked): If remote_address_size is zero,
4702 default to target address size.
4703 (build_remote_gdbarch_data): Remove.
4704 (_initialize_remote): Do not swap remote_address_size.
4706 2007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
4708 * gdbtypes.h (builtin_type_true_char, builtin_type_void,
4709 builtin_type_char, builtin_type_short, builtin_type_int,
4710 builtin_type_long, builtin_type_signed_char,
4711 builtin_type_unsigned_char, builtin_type_unsigned_short,
4712 builtin_type_unsigned_int, builtin_type_unsigned_long,
4713 builtin_type_float, builtin_type_double, builtin_type_long_double,
4714 builtin_type_complex, builtin_type_double_complex, builtin_type_string,
4715 builtin_type_bool, builtin_type_long_long,
4716 builtin_type_unsigned_long_long, builtin_type_void_data_ptr,
4717 builtin_type_void_func_ptr, builtin_type_CORE_ADDR): Replace global
4718 variable declaration with compatibility macro.
4719 * gdbtypes.c (builtin_type_true_char, builtin_type_void,
4720 builtin_type_char, builtin_type_short, builtin_type_int,
4721 builtin_type_long, builtin_type_signed_char,
4722 builtin_type_unsigned_char, builtin_type_unsigned_short,
4723 builtin_type_unsigned_int, builtin_type_unsigned_long,
4724 builtin_type_float, builtin_type_double, builtin_type_long_double,
4725 builtin_type_complex, builtin_type_double_complex, builtin_type_string,
4726 builtin_type_bool, builtin_type_long_long,
4727 builtin_type_unsigned_long_long, builtin_type_void_data_ptr,
4728 builtin_type_void_func_ptr, builtin_type_CORE_ADDR): Remove.
4729 (build_gdbtypes): Remove.
4730 (_initialize_gdbtypes): Do not call build_gdbtypes, move installing
4731 opaque-type-resolution command here. Do not call
4732 deprecated_register_gdbarch_swap.
4734 2007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
4736 * gdbtypes.h (struct builtin_type): New members nodebug_text_symbol,
4737 nodebug_data_symbol, nodebug_unknown_symbol, and nodebug_tls_symbol.
4738 * gdbtypes.c (gdbtypes_post_init): Initialize nodebug_ default types.
4740 * parse.c (msym_text_symbol_type, msym_data_symbol_type): Remove.
4741 (msym_unknown_symbol_type, msym_tls_symbol_type): Remove.
4742 (write_exp_msymbol): Use builtin nodebug_ types instead of them.
4743 (build_parse): Remove.
4744 (_initialize_parse): Do not call build_parse. Do not register
4745 msym_ types for gdbarch-swapping.
4747 * dwarf2read.c (new_symbol): Use default nodebug_data_symbol type
4748 instead of creating private type.
4750 * xcoffread.c (func_symbol_type, var_symbol_type): Remove.
4751 (_initialize_xcoffread): Do not initialized them.
4752 (process_xcoff_symbol): Use builtin nodebug_ types instead of them.
4754 * mdebugread.c (nodebug_func_symbol_type): Remove.
4755 (nodebug_var_symbol_type): Remove.
4756 (_initialize_mdebugread): Do not initialize them.
4757 (parse_symbol): Use builtin nodebug_ type instead of them.
4758 (parse_procedure): Likewise.
4760 2007-06-21 Chris Dearman <chris@mips.com>
4762 * printcmd.c (do_one_display): If display/i, start with an initial
4763 line feed to avoid bad layout if there is a branch delay slot.
4765 2007-06-21 Nigel Stephens <nigel@mips.com>
4766 Maciej W. Rozycki <macro@mips.com>
4768 * disasm.c (gdb_print_insn): Return the number of branch delay
4769 slot instructions too.
4770 * disasm.h (gdb_print_insn): Update prototype.
4771 * printcmd.c (branch_delay_insns): New variable to record the
4772 number of delay slot instructions after disassembling a branch.
4773 (print_formatted): Record the number of branch delay slot
4775 (do_examine): When disassembling, if the last instruction
4776 disassembled has any branch delay slots, then bump the count so
4777 that they get disassembled too.
4778 * tui/tui-disasm.c (tui_disassemble): Update the call to
4780 * NEWS: Document the new behaviour.
4782 2007-06-21 Andreas Schwab <schwab@suse.de>
4784 * regcache.c (write_pc_pid): Restore missing else.
4786 2007-06-20 Ulrich Weigand <uweigand@de.ibm.com>
4788 * regcache.c (regcache_print): Use get_current_regcache ()
4789 instead of current_regcache.
4791 2007-06-20 H.J. Lu <hongjiu.lu@intel.com>
4794 * gcore.c (gcore_command): Use bfd_make_section_anyway_with_flags
4795 instead of bfd_make_section_anyway.
4796 (gcore_create_callback): Likewise. Also set SEC_NEVER_LOAD
4797 when clearing SEC_LOAD.
4799 2007-06-19 Joseph Myers <joseph@codesourcery.com>
4801 * arm-tdep.c (arm_push_dummy_call): Correct padding of partial
4802 registers for big-endian.
4804 2007-06-19 Markus Deuling <deuling@de.ibm.com>
4806 * gdbarch.sh (TARGET_PRINT_INSN): Replace by gdbarch_print_insn.
4807 * disasm.c (dump_insns, gdb_print_insn): Likewise.
4808 * gdbarch.c, gdbarch.h: Regenerate.
4810 2007-06-19 Markus Deuling <deuling@de.ibm.com>
4812 * gdbarch.sh (BELIEVE_PCC_PROMOTION): Replace by
4813 gdbarch_believe_pcc_promotion.
4814 * stabsread.c (define_symbol): Likewise.
4815 Remove unnecessary definition.
4816 * coffread.c (process_coff_symbol): Remove unnecessary code.
4817 * gdbarch.c, gdbarch.h: Regenerate.
4819 2007-06-19 Daniel Jacobowitz <dan@codesourcery.com>
4821 * configure.ac: Do not use ${objdir}.
4822 * configure: Regenerated.
4824 2007-06-18 Ulrich Weigand <uweigand@de.ibm.com>
4826 * gdbarch.sh (deprecated_register_size): Remove.
4827 * gdbarch.h, gdbarch.c: Regenerate.
4829 * arm-tdep.c (arm_push_dummy_call): Replace DEPRECATED_REGISTER_SIZE
4830 by INT_REGISTER_SIZE.
4831 (thumb_get_next_pc, arm_return_in_memory): Likewise.
4832 (arm_gdbarch_init): Do not call set_gdbarch_deprecated_register_size.
4833 * ia64-tdep.c (ia64_gdbarch_init): Do not call
4834 set_gdbarch_deprecated_register_size.
4836 2007-06-18 Markus Deuling <deuling@de.ibm.com>
4838 * gdbarch.sh (DEPRECATED_FP_REGNUM): Replace by
4839 gdbarch_deprecated_fp_regnum.
4840 * std-regs.c (value_of_builtin_frame_fp_reg): Likewise.
4841 * remote-mips.c (mips_wait, mips_fetch_registers): Likewise.
4842 * arch-utils.c (legacy_virtual_frame_pointer): Likewise.
4843 * arch-utils.h (gdbarch_virtual_frame_pointer_ftype): Likewise
4845 * gdbarch.c, gdbarch.h: Regenerate.
4847 2007-06-18 Markus Deuling <deuling@de.ibm.com>
4849 * gdbarch.sh (EXTRACT_RETURN_VALUE): Replace with
4850 gdbarch_extract_return_value.
4851 * value.c (generic_use_struct_convention): Likewise (comment).
4852 * ia64-tdep.c (ia64_use_struct_convention): Likewise (comment).
4853 * arch-utils.c (legacy_return_value): Likewise.
4854 * arch-utils.h (legacy_return_value): Likewise (comment).
4855 * gdbarch.sh (STORE_RETURN_VALUE): Replace by
4856 gdbarch_store_return_value.
4857 * stack.c (return_command): Likewise (comment).
4858 * arch-utils.h (legacy_return_value): Likewise (comment).
4859 * arch-utils.c (legacy_return_value): Likewise.
4860 * gdbarch.c, gdbarch.h: Regenerate.
4862 2007-06-18 Markus Deuling <deuling@de.ibm.com>
4864 * gdbarch.sh (DEPRECATED_USE_STRUCT_CONVENTION): Replace by
4865 gdbarch_deprecated_use_struct_convention.
4866 * arch-utils.c (legacy_return_value): Likewise.
4867 * gdbarch.c, gdbarch.h: Regenerate.
4869 2007-06-18 Markus Deuling <deuling@de.ibm.com>
4871 * gdbarch.sh (DEPRECATED_FUNCTION_START_OFFSET): Replace by
4872 gdbarch_deprecated_function_start_offset.
4873 * symtab.c (find_function_start_sal)skip_prologue_using_sal): Likewise.
4874 * linespec.c (minsym_found): Likewise.
4875 * infrun.c (handle_inferior_event): Likewise.
4876 * infcall.c (find_function_addr): Likewise.
4877 * cli/cli-cmds.c (disassemble_command): Likewise.
4878 * gdbarch.c, gdbarch.h: Regenerate.
4880 2007-06-18 Markus Deuling <deuling@de.ibm.com>
4882 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Replace by
4883 gdbarch_deprecated_reg_struct_has_addr.
4884 * infcall.c (call_function_by_hand): Likewise.
4885 (DEPRECATED_REG_STRUCT_HAS_ADDR_P): Replace by
4886 * gdbarch_deprecated_reg_struct_has_addr_p.
4887 * infcall.c (call_function_by_hand): Likewise.
4888 * gdbarch.c, gdbarch.h: Regenerate.
4890 2007-06-18 Markus Deuling <deuling@de.ibm.com>
4892 * gdbarch.sh (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
4893 * sh-tdep.c (sh_extract_struct_value_address): Remove.
4894 (sh_gdbarch_init): Remove
4895 set_gdbarch_deprecated_extract_struct_value_address.
4896 * sh64-tdep.c (sh64_extract_struct_value_address): Remove.
4897 (sh64_gdbarch_init): Remove
4898 set_gdbarch_deprecated_extract_struct_value_address.
4899 * ia64-tdep.c (ia64_extract_struct_value_address): Remove.
4900 (ia64_gdbarch_init): Remove
4901 set_gdbarch_deprecated_extract_struct_value_address.
4902 * frv-tdep.c (frv_extract_struct_value_address): Remove.
4903 (frv_gdbarch_init): Remove
4904 set_gdbarch_deprecated_extract_struct_value_address.
4905 * gdbarch.c, gdbarch.h: Regenerate.
4907 2007-06-18 Markus Deuling <deuling@de.ibm.com>
4909 * gdbarch.sh (SP_REGNUM): Replace by gdbarch_sp_regnum.
4910 * v850-tdep.c (v850_unwind_sp): Likewise.
4911 * std-regs.c (value_of_builtin_frame_sp_reg): Likewise.
4912 * stack.c (frame_info): Likewise.
4913 * stabsread.c (define_symbol): Likewise.
4914 * sh-tdep.c (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu)
4915 (sh_dwarf2_frame_init_reg, sh_frame_cache, sh_frame_prev_register)
4916 (sh_unwind_sp): Likewise.
4917 * sh64-tdep.c (sh64_push_dummy_call, sh64_frame_cache)
4918 (sh64_frame_prev_register, sh64_unwind_sp): Likewise.
4919 * rs6000-tdep.c (rs6000_push_dummy_call, rs6000_unwind_dummy_id)
4920 (rs6000_frame_cache): Likewise.
4921 * rs6000-nat.c (store_register): Likewise.
4922 * remote-mips.c (mips_wait): Likewise.
4923 * procfs.c (procfs_fetch_registers, procfs_store_registers): Likewise.
4924 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call)
4925 (ppc64_sysv_abi_push_dummy_call): Likewise.
4926 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_cache): Likewise.
4927 * ppcobsd-nat.c (ppcobsd_supply_pcb): Likewise.
4928 * ppcnbsd-tdep.c (ppcnbsd_sigtramp_cache_init): Likewise.
4929 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache): Likewise.
4930 * m32r-rom.c (m32r_supply_register): Likewise.
4931 * frame.c (frame_sp_unwind): Likewise.
4932 * mips-tdep.c (mips_insn16_frame_cache)
4933 (mips_insn32_frame_cache): Likewise (comment).
4934 * m68klinux-nat.c (supply_gregset): Likewise.
4935 * m68k-tdep.c (m68k_get_longjmp_target): Likewise.
4936 * ia64-tdep.c (ia64_frame_prev_register): Likewise.
4937 * i386-tdep.c (i386_get_longjmp_target): Likewise.
4938 * dwarf2-frame.c (dwarf2_frame_default_init_reg): Likewise.
4939 * cris-tdep.c (cris_regnums, cris_sigcontext_addr)
4940 (cris_sigtramp_frame_unwind_cache, cris_push_dummy_call)
4941 (cris_scan_prologue, crisv32_scan_prologue, cris_unwind_sp)
4942 (cris_register_type, crisv32_register_type)
4943 (cris_dwarf2_frame_init_reg): Likewise.
4944 * arch-utils.c (legacy_virtual_frame_pointer): Likewise.
4945 * amd64-tdep.c (amd64_frame_prev_register): Likewise.
4946 * amd64-linux-tdep.c (amd64_linux_sigcontext_addr): Likewise.
4947 * libunwind-frame.c (libunwind_frame_cache): Likewise.
4949 * gdbarch.sh (PC_REGNUM): Replace by gdbarch_pc_regnum.
4950 * regcache.c (read_pc_pid, generic_target_write_pc): Likewise.
4951 * xtensa-tdep.c (xtensa_register_type, xtensa_supply_gregset)
4952 (xtensa_unwind_pc, xtensa_frame_cache, xtensa_frame_prev_register)
4953 (xtensa_extract_return_value, xtensa_store_return_value): Likewise.
4954 * v850-tdep.c (v850_unwind_pc): Likewise.
4955 * stack.c (frame_info): Likewise.
4956 * sh-tdep.c (sh_generic_show_regs, sh3_show_regs, sh2e_show_regs)
4957 (sh2a_show_regs, sh2a_nofpu_show_regs, sh3e_show_regs)
4958 (sh3_dsp_show_regs, sh4_show_regs, sh4_nofpu_show_regs)
4959 (sh_dwarf2_frame_init_reg, sh_frame_prev_register, sh_unwind_pc)
4960 (sh_dsp_show_regs): Likewise.
4961 * shnbsd-tdep.c (shnbsd_supply_gregset)
4962 (shnbsd_collect_gregset): Likewise.
4963 * shnbsd-nat.c (GETREGS_SUPPLIES): Likewise.
4964 * sh64-tdep.c (sh64_compact_reg_base_num, sh64_show_media_regs)
4965 (sh64_frame_prev_register, sh64_unwind_pc): Likewise.
4966 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset)
4967 (6000_register_reggroup_p, rs6000_unwind_pc)
4968 (rs6000_frame_cache): Likewise.
4969 * rs6000-nat.c (regmap, rs6000_fetch_inferior_registers)
4970 (rs6000_store_inferior_registers): Likewise.
4971 * remote-mips.c (mips_wait, mips_load): Likewise.
4972 * procfs.c (procfs_fetch_registers, procfs_store_registers): Likewise.
4973 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_cache): Likewise.
4974 * ppcobsd-nat.c (ppcobsd_supply_pcb): Likewise.
4975 * ppcnbsd-tdep.c (ppcnbsd_sigtramp_cache_init): Likewise.
4976 * ppcnbsd-nat.c (getregs_supplies, ppcnbsd_supply_pcb): Likewise.
4977 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache): Likewise.
4978 * ppc-linux-nat.c (ppc_register_u_addr, fetch_ppc_registers)
4979 (store_ppc_registers, fill_gregset): Likewise.
4980 * mips-tdep.c (mips_stub_frame_cache, mips_gdbarch_init): Likewise.
4981 * mipsnbsd-tdep.c (mipsnbsd_supply_reg, mipsnbsd_fill_reg): Likewise.
4982 * mipsnbsd-nat.c (getregs_supplies): Likewise.
4983 * m68k-tdep.c (m68k_register_type, m68k_unwind_pc): Likewise.
4984 * m68klinux-nat.c (supply_gregset): Likewise.
4985 * irix5-nat.c (fill_gregset): Likewise.
4986 * i386-tdep.c (i386_unwind_pc): Likewise.
4987 * i386-linux-nat.c (i386_linux_resume): Likewise.
4988 * frame.c (get_prev_frame_1): Likewise.
4989 * dwarf2-frame.c (dwarf2_frame_default_init_reg): Likewise.
4990 * dbug-rom.c (dbug_supply_register): Likewise.
4991 * cris-tdep.c (cris_sigtramp_frame_unwind_cache, cris_scan_prologue)
4992 (crisv32_scan_prologue, cris_unwind_pc, cris_register_size)
4993 (cris_register_type, crisv32_register_type, crisv32_register_name)
4994 (cris_dwarf2_frame_init_reg, find_step_target)
4995 (cris_software_single_step, cris_supply_gregset)
4996 (cris_regnums): Likewise.
4997 * alpha-linux-nat.c (alpha_linux_register_u_offset): Likewise.
4998 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
4999 (fill_sprs64, fill_sprs32, store_regs_user_thread): Likewise.
5000 * std-regs.c (value_of_builtin_frame_pc_reg): Likewise.
5001 * mips-linux-tdep.c (mips_linux_write_pc): Likewise.
5003 * gdbarch.sh (PS_REGNUM): Replace by gdbarch_ps_regnum.
5004 * dbug-rom.c (dbug_supply_register): Likewise.
5005 * xtensa-tdep.c (xtensa_supply_gregset, xtensa_frame_cache)
5006 (xtensa_frame_prev_register, xtensa_push_dummy_call): Likewise.
5007 * win32-nat.c (win32_resume): Likewise.
5008 * std-regs.c (value_of_builtin_frame_ps_reg): Likewise.
5009 * m68k-tdep.c (m68k_register_type): Likewise.
5010 * m68klinux-nat.c (supply_gregset): Likewise.
5012 * gdbarch.sh (FP0_REGNUM): Replace by gdbarch_fp0_regnum.
5013 * sh-tdep.c (sh_extract_return_value_fpu, sh_store_return_value_fpu)
5014 (sh2e_show_regs, sh2a_show_regs, sh3e_show_regs, sh4_show_regs)
5015 (sh_sh2a_register_type, sh_sh3e_register_type, sh_sh4_register_type)
5016 (fv_reg_base_num, dr_reg_base_num): Likewise.
5017 * sh64-tdep.c (sh64_fv_reg_base_num, sh64_dr_reg_base_num)
5018 (sh64_fpp_reg_base_num, sh64_compact_reg_base_num, sh64_push_dummy_call)
5019 (sh64_extract_return_value, sh64_store_return_value)
5020 (sh64_show_media_regs, sh64_show_compact_regs, sh64_register_type)
5021 (sh64_do_fp_register, sh64_media_print_registers_info): Likewise.
5022 * procfs.c (procfs_fetch_registers, procfs_store_registers)
5023 (invalidate_cache): Likewise.
5024 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache): Likewise.
5025 * mipsnbsd-tdep.c (mipsnbsd_supply_fpreg)
5026 (mipsnbsd_fill_fpreg): Likewise.
5027 * mipsnbsd-nat.c (mipsnbsd_fetch_inferior_registers)
5028 (mipsnbsd_store_inferior_registers): Likewise.
5029 * mips-linux-tdep.c (mips_supply_fpregset, mips_fill_fpregset)
5030 (mips64_supply_fpregset, mips64_fill_fpregset): Likewise.
5031 * mips-linux-nat.c (mips64_linux_register_addr): Likewise.
5032 * m68k-tdep.c (m68k_register_type, m68k_convert_register_p): Likewise.
5033 * m68klinux-nat.c (getfpregs_supplies, supply_fpregset)
5034 (fill_fpregset): Likewise.
5035 * irix5-nat.c (supply_fpregset, fill_fpregset): Likewise.
5036 * i386-tdep.h (struct_return): Likewise (comment).
5037 * i386-nto-tdep.c (i386nto_register_area): Likewise.
5038 * go32-nat.c (fetch_register, go32_fetch_registers, store_register)
5039 (go32_store_registers): Likewise.
5040 * alpha-tdep.c (alpha_next_pc): Likewise.
5041 * alpha-linux-nat.c (alpha_linux_register_u_offset): Likewise.
5042 * alphabsd-nat.c (alphabsd_fetch_inferior_registers)
5043 (alphabsd_store_inferior_registers): Likewise.
5044 * core-regset.c (fetch_core_registers): Likewise.
5045 * i386v4-nat.c (supply_fpregset, fill_fpregset): Likewise.
5047 * gdbarch.c, gdbarch.h: Regenerate.
5049 2007-06-18 Daniel Jacobowitz <dan@codesourcery.com>
5051 * coffread.c (coff_sym_fns): Add default_symfile_segments.
5052 * dbxread.c (start_psymtab): Check HAVE_ELF.
5053 (aout_sym_fns): Likewise.
5054 * elfread.c (elf_symfile_segments): New.
5055 (elf_sym_fns): Add elf_symfile_segments.
5056 * mipsread.c (ecoff_sym_fns): Add default_symfile_segments.
5057 * remote.c (get_offsets): Use symfile_map_offsets_to_segments.
5058 Skip if there is no symfile_objfile. Handle TextSeg and DataSeg.
5059 * somread.c (som_sym_fns): Use default_symfile_segments.
5060 * symfile.c (find_sym_fns): Take a BFD and return the sym_fns.
5061 (init_objfile_sect_indices): Call symfile_find_segment_sections.
5062 (default_symfile_segments): New function.
5063 (syms_from_objfile): Update call to find_sym_fns.
5064 (symfile_get_segment_data, free_symfile_segment_data): New.
5065 (symfile_map_offsets_to_segments): New.
5066 (symfile_find_segment_sections): New.
5067 * symfile.h (struct symfile_segment_data): New.
5068 (struct sym_fns): Add sym_segments.
5069 (default_symfile_segments, symfile_get_segment_data)
5070 (free_symfile_segment_data): New prototypes.
5071 (symfile_map_offsets_to_segments): Likewise.
5072 * xcoffread.c (xcoff_sym_fns): Add default_symfile_segments.
5073 * Makefile.in (COMMON_OBS): Remove elfread.o.
5074 (elf_internal_h): New.
5075 (elfread.o): Update.
5076 * configure.ac: Add elfread.o to COMMON_OBS if bfd/elf.o was
5078 * config.in, configure: Regenerated.
5079 * NEWS: Mention qOffsets changes.
5081 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
5083 * gdbtypes.h (builtin_type_m2_char, builtin_type_m2_int,
5084 builtin_type_m2_card, builtin_type_m2_real, builtin_type_m2_bool):
5085 Replace global variable declaration with compatibility macro.
5086 (struct builtin_m2_type): New data type.
5087 (builtin_m2_type): Add prototype.
5088 * m2-lang.c (builtin_type_m2_char, builtin_type_m2_int,
5089 builtin_type_m2_card, builtin_type_m2_real, builtin_type_m2_bool):
5090 Remove global variables.
5091 (m2_language_arch_info): Use builtin_m2_type instead of variables.
5092 (build_m2_types): New function.
5093 (m2_type_data): New variable.
5094 (builtin_m2_type): New function.
5095 (_initialize_m2_language): Do not build data types. Register
5096 m2_type_data per-gdbarch data.
5098 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
5100 * gdbtypes.h (builtin_type_f_character, builtin_type_f_logical,
5101 builtin_type_f_logical_s1, builtin_type_f_logical_s2,
5102 builtin_type_f_integer, builtin_type_f_integer_s2, builtin_type_f_real,
5103 builtin_type_f_real_s8, builtin_type_f_real_s16,
5104 builtin_type_f_complex_s8, builtin_type_f_complex_s16,
5105 builtin_type_f_complex_s32, builtin_type_f_void): Replace global
5106 variable declaration with compatibility macro.
5107 (struct builtin_f_type): New data type.
5108 (builtin_f_type): Add prototype.
5109 * f-lang.c (builtin_type_f_character, builtin_type_f_logical,
5110 builtin_type_f_logical_s1, builtin_type_f_logical_s2,
5111 builtin_type_f_integer, builtin_type_f_integer_s2, builtin_type_f_real,
5112 builtin_type_f_real_s8, builtin_type_f_real_s16,
5113 builtin_type_f_complex_s8, builtin_type_f_complex_s16,
5114 builtin_type_f_complex_s32, builtin_type_f_void): Remove variables.
5115 (f_language_arch_info): Use builtin_f_type instead of variables.
5116 (build_fortran_types): Build builtin_f_type structure instead of
5117 setting global type variables.
5118 (f_type_data): New variable.
5119 (builtin_f_type): New function.
5120 (_initialize_f_language): Do not call build_fortran_types. Do not
5121 swap global type variables. Register f_type_data per-gdbarch data.
5123 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
5125 * f-lang.c (_initialize_f_language): Do not initialize or
5126 swap builtin_type_string.
5128 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
5130 * std-regs.c (builtin_type_frame_reg, build_builtin_type_frame_reg,
5131 value_of_builtin_frame_reg): Remove.
5132 (_initialize_frame_reg): Do not swap builtin_type_frame_reg. Remove
5133 inactive call to value_of_builtin_frame_reg.
5135 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
5137 * gdbarch.sh (bfd_vma_bit): Remove.
5138 * gdbarch.c, gdbarch.h: Regenerate.
5140 * gdbtypes.h (builtin_bfd_vma_type): Remove.
5141 * gdbtypes.h (builtin_bfd_vma_type): Remove.
5142 (build_gdbtypes): Do not initialize it.
5143 (_initialize_gdbtypes): Do not swap it.
5145 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
5147 * gdbtypes.c (builtin_type_v2_double, builtin_type_v4_float,
5148 builtin_type_v2_int64, builtin_type_v4_int32, builtin_type_v8_int16,
5149 builtin_type_v16_int8, builtin_type_v2_float, builtin_type_v2_int32,
5150 builtin_type_v4_int16, builtin_type_v8_int8, builtin_type_v4sf,
5151 builtin_type_v4si, builtin_type_v16qi, builtin_type_v8qi,
5152 builtin_type_v8hi, builtin_type_v4hi, builtin_type_v2si,
5153 builtin_type_vec64, builtin_type_vec128): Remove.
5154 (init_simd_type): Remove.
5155 (init_vector_type): Make global.
5156 (build_builtin_type_vec64, build_builtin_type_vec128): Remove.
5157 (build_gdbtypes): Do not build vector types.
5158 (_initialize_gdbtypes): Do not swap vector types.
5159 * gdbtypes.h (builtin_type_v2_double, builtin_type_v4_float,
5160 builtin_type_v2_int64, builtin_type_v4_int32, builtin_type_v8_int16,
5161 builtin_type_v16_int8, builtin_type_v2_float, builtin_type_v2_int32,
5162 builtin_type_v4_int16, builtin_type_v8_int8, builtin_type_v4sf,
5163 builtin_type_v4si, builtin_type_v16qi, builtin_type_v8qi,
5164 builtin_type_v8hi, builtin_type_v4hi, builtin_type_v2si,
5165 builtin_type_vec64, builtin_type_vec128): Remove declarations.
5166 (init_vector_type): Add prototype.
5168 * i386-tdep.h (struct gdbarch_tdep): Add i386_mmx_type and
5169 i386_sse_type members.
5170 (i386_mmx_type, i386_sse_type): Change from variables to functions.
5171 * i386-tdep.c (i386_mmx_type, i386_sse_type): Remove variables.
5172 (i386_init_types): Do not build vector types.
5173 (i386_mmx_type, i386_sse_type): New functions.
5174 (i386_register_type): Call them instead of using global variables.
5175 (i386_gdbarch_init): Use XCALLOC to allocate tdep structure.
5176 * amd64-tdep.c (amd64_register_type): Call i386_sse_type instead
5177 of using global variable.
5179 * rs6000-tdep.h (struct gdbarch_tdep): Add ppc_builtin_type_vec64
5180 and ppc_builtin_type_vec128 members.
5181 * rs6000-tdep.c (rs6000_builtin_type_vec64): New function.
5182 (rs6000_builtin_type_vec128): Likewise.
5183 (rs6000_register_type): Call them instead of using builtin_type_vec64
5184 and builtin_type_vec128.
5185 (rs6000_gdbarch_init): Use XCALLOC to allocate tdep structure.
5187 * spu-tdep.c (struct gdbarch_tdep): New data type.
5188 (spu_builtin_type_vec128): Remove variable.
5189 (spu_builtin_type_vec128): New function.
5190 (spu_register_type): Call it instead of using global variable.
5191 (spu_gdbarch_init): Allocate tdep structure.
5192 (spu_init_vector_type): Remove function.
5193 (_initialize_spu_tdep): Do not call it.
5195 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
5197 * amd64-tdep.c (struct amd64_register_info): Remove.
5198 (amd64_register_info): Remove.
5199 (amd64_register_names): New static variable.
5200 (AMD64_NUM_REGS): Use amd64_register_names instead of
5201 amd64_register_info.
5202 (amd64_register_name): Likewise.
5203 (amd64_register_type): Do not refer to amd64_register_info.
5205 * s390-tdep.c (struct s390_register_info): Remove.
5206 (s390_register_info): Remove.
5207 (s390_register_name): Do not refer to s390_register_info.
5208 (s390_register_type): Likewise.
5210 * sparc64-tdep.c (struct sparc64_register_info): Remove.
5211 (sparc64_register_info, sparc64_pseudo_register_info): Remove.
5212 (sparc64_register_names, sparc64_pseudo_register_names): New.
5213 (SPARC64_NUM_REGS, SPARC64_NUM_PSEUDO_REGS): Use
5214 sparc64_register_names and sparc64_pseudo_register_names instead of
5215 sparc64_register_info and sparc64_pseudo_register_info.
5216 (sparc64_register_name): Likewise.
5217 (sparc64_register_type): Do not refer to sparc64_register_info
5218 and sparc64_pseudo_register_info.
5220 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
5222 * c-lang.c (cplus_builtin_types): Remove.
5223 (enum cplus_primitive_types): New data type.
5224 (cplus_language_arch_info): New function.
5225 (cplus_language_defn): Set la_language_arch_info member. Do not set
5226 la_builtin_type_vector and string_char_type members.
5228 * f-lang.c (f_builtin_types): Remove.
5229 (enum f_primitive_types): New data type.
5230 (f_language_arch_info): New function.
5231 (f_language_de): Set la_language_arch_info member. Do not set
5232 la_builtin_type_vector and string_char_type members.
5234 * m2-lang.c (m2_builtin_types): Remove.
5235 (enum m2_primitive_types): New data type.
5236 (m2_language_arch_info): New function.
5237 (m2_language_defn): Set la_language_arch_info member. Do not set
5238 la_builtin_type_vector and string_char_type members.
5240 * objc-lang.c (objc_builtin_types): Remove.
5241 (objc_language): Set la_language_arch_info member. Do not set
5242 la_builtin_type_vector and string_char_type members.
5244 * p-lang.c (pascal_builtin_types): Remove.
5245 (enum pascal_primitive_types): New data type.
5246 (pascal_language_arch_info): New function.
5247 (pascal_language_defn): Set la_language_arch_info member. Do not set
5248 la_builtin_type_vector and string_char_type members.
5250 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
5252 * regcache.c (struct regcache): Add ptid_t member.
5253 (regcache_xmalloc): Initialize it.
5254 (regcache_cpy_no_passthrough): Do not refer to current_regcache.
5255 (regcache_dup): Likewise.
5256 (regcache_dup_no_passthrough): Likewise.
5257 (current_regcache): Make static.
5258 (registers_ptid): Remove variable.
5259 (get_thread_regcache): New function.
5260 (get_current_regcache): New function.
5261 (registers_changed): Implement by freeing current regcache.
5262 (regcache_raw_read): Do not refer to current_regcache. Set
5263 inferior_ptid to regcache->ptid while calling target routines.
5264 (regcache_raw_write): Likewise.
5265 (regcache_raw_supply): Do not refer to current_regcache.
5266 (read_pc_pid): Use thread regcache. Do not modify inferior_ptid.
5267 (write_pc_pid): Likewise.
5268 (build_regcache): Remove.
5269 (_initialize_regcache): Do not call DEPRECATED_REGISTER_GDBARCH_SWAP
5270 or deprecated_register_gdbarch_swap. Do not initialize
5272 * regcache.h (get_current_regcache): Add prototype.
5273 (get_thread_regcache): Likewise.
5274 (current_regcache): Remove declaration.
5276 * corelow.c (core_open): Replace current_regcache by
5277 get_current_regcache ().
5278 * frame.c (frame_pop): Likewise.
5279 (put_frame_register): Likewise.
5280 (get_current_frame, create_new_frame): Likewise.
5281 * mi/mi-main.c (mi_cmd_data_write_register_values): Likewise.
5282 * stack.c (return_command): Likewise.
5283 * infcall.c (call_function_by_hand): Likewise.
5284 * infrun.c (resume): Likewise.
5285 (save_inferior_status, restore_inferior_status): Likewise.
5286 * linux-fork.c (fork_load_infrun_state): Likewise.
5287 (fork_save_infrun_state): Likewise.
5288 * win32-nat.c (win32_resume): Likewise.
5289 * i386fbsd-nat.c (i386fbsd_resume): Likewise.
5290 * monitor.c (monitor_wait): Likewise.
5291 * remote.c (remote_wait): Likewise.
5292 * remote-mips.c (mips_wait): Likewise.
5294 * bsd-kvm.c (bsd_kvm_open): Likewise
5295 (bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd): Likewise.
5296 * fbsd-nat.c (fbsd_make_corefile_notes): Likewise.
5297 * i386-linux-nat.c (i386_linux_resume): Likewise.
5298 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Likewise.
5299 (ia64_linux_stopped_data_address): Likewise.
5301 * frv-tdep.c (frv_fdpic_loadmap_addresses): Likewise.
5302 * m32c-tdep.c (m32c_virtual_frame_pointer): Likewise.
5303 * mep-tdep.c (current_me_module, current_options): Likewise.
5304 * mips-tdep.c (deprecated_mips_set_processor_regs_hack): Likewise.
5306 * linux-nat.c (linux_nat_do_thread_registers): Use thread
5307 regcache instead of current_regcache. Call target_fetch_registers.
5308 (linux_nat_corefile_thread_callback): Update call site.
5309 (linux_nat_do_registers): Likewise.
5310 * procfs.c (procfs_do_thread_registers): Use thread regcache instead
5311 of current_regcache.
5312 (procfs_make_note_section): Likewise.
5313 * proc-service.c (ps_lgetregs, ps_lsetregs): Likewise.
5314 (ps_lgetfpregs, ps_lsetfpregs): Likewise.
5315 * sol-thread.c (ps_lgetregs, ps_lsetregs): Likewise.
5316 (ps_lgetfpregs, ps_lsetfpregs): Likewise.
5318 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
5320 * regcache.c (read_register, read_register_pid): Remove.
5321 (write_register, write_register_pid): Likewise.
5322 * regcache.h (read_register, read_register_pid): Remove prototype.
5323 (write_register, write_register_pid): Likewise.
5325 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
5327 * gdbarch.sh (read_pc): Add REGCACHE argument. Remove PTID argument.
5328 (write_pc): Likewise. Remove default implementation, add predicate.
5329 * gdbarch.c, gdbarch.h: Regenerate.
5330 * regcache.c (read_pc_pid): Use current regcache instead of calling
5332 (write_pc_pid): Check gdbarch_write_pc predicate, implement default
5334 (generic_target_write_pc): Remove.
5335 * inferior.h (generic_target_write_pc): Remove.
5336 * frv-tdep.c (frv_gdbarch_init): Do not install it.
5337 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
5338 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
5339 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
5340 * sh-tdep.c (sh_gdbarch_init): Likewise.
5341 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
5343 * avr-tdep.c (avr_read_pc): Add REGCACHE argument. Remove PTID
5344 argument. Use REGCACHE instead of calling read_register_pid.
5345 * hppa-hpux-tdep.c (hppa_hpux_read_pc): Likewise.
5346 * hppa-tdep.c (hppa_read_pc): Likewise.
5347 * hppa-tdep.h (hppa_read_pc): Likewise.
5348 * ia64-tdep.c (ia64_read_pc): Likewise.
5349 * m32r-tdep.c (m32r_read_pc): Likewise.
5350 * mep-tdep.c (mep_read_pc): Likewise.
5351 * mn10300-tdep.c (mn10300_read_pc): Likewise.
5352 * spu-tdep.c (spu_read_pc): Likewise.
5354 * arm-tdep.c (arm_write_pc): Add REGCACHE argument. Remove PTID
5355 argument. Use REGCACHE instead of calling write_register_pid.
5356 * avr-tdep.c (avr_write_pc): Likewise.
5357 * hppa-hpux-tdep.c (hppa_hpux_write_pc): Likewise.
5358 * hppa-tdep.c (hppa_write_pc): Likewise.
5359 * hppa-tdep.h (hppa_write_pc): Likewise.
5360 * i386-linux-tdep.c (i386_linux_write_pc): Likewise.
5361 * amd64-linux-tdep.c (amd64_linux_write_pc): Likewise.
5362 * ia64-linux-tdep.c (ia64_linux_write_pc): Likewise.
5363 * ia64-tdep.c (ia64_write_pc): Likewise.
5364 * ia64-tdep.h (ia64_write_pc): Likewise.
5365 * m32r-tdep.c (m32r_write_pc): Likewise.
5366 * m88k-tdep.c (m88k_write_pc): Likewise.
5367 * mep-tdep.c (mep_write_pc): Likewise.
5368 * mips-tdep.c (mips_write_pc): Likewise.
5369 * mips-linux-tdep.c (mips_linux_write_pc): Likewise.
5370 * mn10300-tdep.c (mn10300_write_pc): Likewise.
5371 * sparc-tdep.c (sparc_write_pc): Likewise.
5372 * spu-tdep.c (spu_write_pc): Likewise.
5374 * mips-tdep.c (read_signed_register): Remove.
5375 (read_signed_register_pid): Likewise.
5376 (mips_read_pc): Add REGCACHE argument. Remove PTID argument.
5377 Use REGCACHE instead of calling read_signed_register_pid.
5379 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
5381 * gdbarch.sh (push_dummy_code): Add REGCACHE argument.
5382 * gdbarch.c, gdbarch.h: Regenerate.
5383 * infcall.c (generic_push_dummy_code): Add REGCACHE argument.
5384 (push_dummy_code): Likewise. Pass it to callee.
5385 (call_function_by_hand): Pass current regcache to push_dummy_code.
5387 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Add REGCACHE
5388 argument. Use it instead of current_regcache.
5390 * cris-tdep.c (cris_push_dummy_code): Add REGCACHE argument.
5391 * sparc-tdep.c (sparc32_push_dummy_code): Likewise.
5393 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
5395 * gdbarch.sh (get_longjmp_target): Add FRAME argument.
5396 * gdbarch.c, gdbarch.h: Regenerate.
5397 * infrun.c (handle_inferior_event): Pass current frame to
5398 gdbarch_get_longjmp_target.
5400 * alpha-tdep.c (alpha_get_longjmp_target): Add FRAME argument.
5401 Read registers from FRAME instead of using read_register.
5402 Use get_frame_arch instead of current_gdbarch.
5403 * arm-tdep.c (arm_get_longjmp_target): Likewise.
5404 * i386-tdep.c (i386_get_longjmp_target): Likewise.
5405 * m68k-tdep.c (m68k_get_longjmp_target): Likewise.
5406 * mips-linux-tdep.c (mips_linux_get_longjmp_target): Likewise.
5407 (mips64_linux_get_longjmp_target): Likewise.
5408 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Likewise.
5410 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
5412 * gdbarch.sh (skip_trampoline_code): Add FRAME argument.
5413 * gdbarch.c, gdbarch.h: Regenerate.
5414 * arch-utils.c (generic_skip_trampoline_code): Add FRAME argument.
5415 * arch-utils.h (generic_skip_trampoline_code): Likewise.
5416 * infrun.c (handle_inferior_event): Pass current frame to
5417 gdbarch_skip_trampoline_code and skip_language_trampoline.
5419 * language.c (unk_lang_trampoline): Add FRAME argument.
5420 (skip_language_trampoline): Add FRAME argument. Pass it to
5421 skip_trampoline callback.
5422 * language.h: Add forward declaration of struct frame_info.
5423 (struct language_defn): Add FRAME argument to skip_trampoline.
5424 (skip_language_trampoline): Add FRAME argument.
5425 * cp-abi.c (cplus_skip_trampoline): Add FRAME argument. Pass it
5426 to skip_trampoline callback.
5427 * cp-abi.h: Add forward declaration of struct frame_info.
5428 (cplus_skip_trampoline): Add FRAME argument.
5429 (struct cp_abi_ops): Add FRAME argument to skip_trampoline callback.
5430 * gnu-v3-abi.c (gnuv3_skip_trampoline): Add FRAME argument. Pass it
5431 to gdbarch_skip_trampoline_code.
5432 * objc-lang.c (objc_skip_trampoline): Add FRAME argument. Pass it
5433 to gdbarch_skip_trampoline_code.
5435 * minsyms.c (find_solib_trampoline_target): Add FRAME argument.
5436 * symtab.h (find_solib_trampoline_target): Likewise.
5437 * obsd-tdep.c (obsd_skip_solib_resolver): Pass current frame to
5438 find_solib_trampoline_target.
5440 * arm-tdep.c (arm_skip_stub): Add FRAME argument. Read registers
5441 from FRAME instead of calling read_register.
5443 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code): Add FRAME
5444 argument. Read registers from FRAME instead of using read_register.
5445 * hppa-tdep.c (hppa_skip_trampoline_code): Likewise.
5446 * hppa-tdep.h (hppa_skip_trampoline_code): Add FRAME argument.
5448 * i386-cygwin-tdep.c (i386_cygwin_skip_trampoline_code): Add FRAME
5451 * m32c-tdep.c (m32c_skip_trampoline_code): Add FRAME argument.
5453 * mips-tdep.c (mips_skip_trampoline_code): Add FRAME argument. Read
5454 registers from FRAME instead of using read_signed_register.
5456 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Add FRAME
5458 (ppc64_standard_linkage_target): Likewise. Read registers from FRAME
5459 instead of using read_register.
5460 (ppc64_skip_trampoline_code): Add FRAME argument. Pass it to
5461 ppc64_standard_linkage_target.
5462 * rs6000-tdep.c (rs6000_skip_trampoline_code): Add FRAME argument.
5463 Pass it to find_solib_trampoline_target. Read registers from FRAME
5464 instead of using read_register.
5466 * xstormy16-tdep.c (xstormy16_skip_trampoline_code): Add FRAME
5469 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
5471 * gdbarch.sh (software_single_step): Replace REGCACHE argument by
5473 * gdbarch.c, gdbarch.h: Regenerate.
5474 * infrun.c (resume): Pass current frame to SOFTWARE_SINGLE_STEP.
5476 * alpha-tdep.c (alpha_next_pc): Add FRAME argument. Retrieve
5477 registers from FRAME instead of using read_register.
5478 (alpha_software_single_step): Replace REGCACHE by FRAME. Pass FRAME
5479 to alpha_next_pc. Use get_frame_pc instead of read_pc.
5480 * alpha-tdep.h (alpha_software_single_step): Replace REGCACHE
5483 * arm-tdep.c (shifted_reg_val): Add FRAME argument. Read registers
5484 from FRAME instead of using read_register.
5485 (thumb_get_next_pc): Likewise.
5486 (arm_get_next_pc): Likewise.
5487 (arm_software_single_step): Replace REGCACHE by FRAME. Pass FRAME
5488 to arm_get_next_pc. Use get_frame_pc instead of read_register.
5489 * arm-tdep.h (arm_software_single_step): Replace REGCACHE
5492 * cris-tdep.c (find_step_target): Add FRAME argument. Read registers
5493 from FRAME instead of using read_register.
5494 (cris_software_single_step): Replace REGCACHE by FRAME. Pass FRAME
5495 to find_step_target.
5497 * mips-tdep.c (mips32_next_pc): Add FRAME argument. Read registers
5498 from FRAME instead of using read_register / read_signed_register.
5499 (extended_mips16_next_pc): Likewise.
5500 (mips16_next_pc): Likewise.
5501 (mips_next_pc): Likewise.
5502 (mips_software_single_step): Replace REGCACHE by FRAME. Pass FRAME
5503 to mips_next_pc. Use get_frame_pc instead of read_pc.
5504 * mips-tdep.h (mips_software_single_step): Replace REGCACHE
5507 * rs6000-tdep.c (branch_dest): Add FRAME argument. Use it instead
5508 of current frame. Read registers from FRAME.
5509 (deal_with_atomic_sequence): Add FRAME argument. Pass it to
5510 branch_dest. Use get_frame_pc instead of read_pc.
5511 (rs6000_software_single_step): Likewise.
5512 (bl_to_blrl_insn_p): Do not call branch_dest.
5513 * rs6000-tdep.h (rs6000_software_single_step): Replace REGCACHE
5516 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Add FRAME argument.
5517 Read registers from FRAME instead of current regcache.
5518 * sparc-linux-tdep.c (sparc32_linux_step_trap): Likewise.
5519 * sparcnbsd-tdep.c (sparcnbsd_step_trap): Likewise.
5520 * sparc-tdep.c (sparc_address_from_register): Remove.
5521 (sparc_analyze_control_transfer): Pass FRAME argument instead of
5522 GDBARCH. Pass FRAME to step_trap callback.
5523 (sparc_step_trap): Add FRAME argument.
5524 (space_software_single_step): Replace REGCACHE by FRAME. Pass FRAME
5525 to sparc_analyze_control_transfer. Read registers from FRAME instead
5526 of calling sparc_address_from_register.
5527 * sparc-tdep.h (struct gdbarch_tdep): Add FRAME argument to
5529 (sparc_address_from_register): Remove prototype.
5530 (sparc_software_single_step): Replace REGCACHE argument by FRAME.
5531 (sparcnbsd_step_trap): Add FRAME argument.
5533 * spu-tdep.c (spu_software_single_step): Replace REGCACHE argument
5534 by FRAME. Read registers from FRAME instead of REGCACHE.
5536 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
5538 * arm-tdep.c (arm_print_float_info): Use register value from FRAME
5539 instead of calling read_register.
5541 * avr-tdep.c (avr_push_dummy_call): Write to REGCACHE instead of
5542 calling write_register.
5544 * hppa-tdep.c (hppa32_push_dummy_call): Write to REGCACHE instead of
5545 calling write_register.
5547 * ia64-tdep.c (find_func_descr): Add REGCACHE parameter. Use it
5548 instead of calling read_register.
5549 (ia64_push_dummy_call): Update call to find_func_descr. Use REGCACHE
5550 instead of calling read_register and write_register.
5552 * m32r-tdep.c (m32r_linux_supply_gregset): Use REGCACHE parameter
5553 instead of current_regcache.
5555 * mn10300-tdep.c (mn10300_push_dummy_call): Write to REGCACHE instead
5556 of calling write_register.
5557 * mn10300-linux-tdep.c (am33_supply_fpregset_method): Use REGCACHE
5558 parameter instead of current_regcache.
5560 * mips-tdep.c (mips2_fp_compat): Add FRAME parameter. Use it
5561 instead of calling read_register.
5562 (mips_read_fp_register_double, mips_print_fp_register): Update calls.
5563 (mips_eabi_push_dummy_call): Use REGCACHE instead of write_register.
5564 (mips_n32n64_push_dummy_call): Likewise.
5565 (mips_o32_push_dummy_call): Likewise.
5566 (mips_o64_push_dummy_call): Likewise.
5568 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Use REGCACHE
5569 parameter instead of current_regcache.
5571 * xtensa-tdep.c (xtensa_register_write_masked): Add REGCACHE parameter.
5572 Use it instead of read_register and write_register.
5573 (xtensa_register_read_masked): Likewise.
5574 (xtensa_pseudo_register_read): Update call.
5575 (xtensa_pseudo_register_write): Likewise.
5576 (xtensa_frame_cache): Use register values unwound from NEXT_FRAME
5577 instead of calling read_register.
5578 (xtensa_push_dummy_call): Update comment.
5580 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
5582 * mips-tdep.c (mips16_scan_prologue): Replace read_next_frame_reg
5583 by frame_unwind_register_signed calls.
5584 (mips32_scan_prologue): Likewise. Skip analysis of alloca stack
5585 frame allocations when called with NULL NEXT_FRAME parameter.
5586 (read_next_frame_reg): Remove.
5588 * sh-tdep.c (sh_analyze_prologue): Add FPSCR parameter. Use it
5589 instead of reading the FPSCR register.
5590 (sh_frame_cache): Pass unwound FPSCR register value to
5591 sh_analyze_prologue.
5592 (sh_skip_prologue): Pass dummy FPSCR value to sh_analyze_prologue.
5594 * v850-tdep.c (v850_analyze_prologue): Add CTBP parameter. Use it
5595 instead of reading the CTBP register.
5596 (v850_frame_cache): Pass unwound CTBP register value to
5597 v850_analyze_prologue.
5599 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
5601 * sh-tdep.h (sh_show_regs): Add FRAME parameter.
5602 * sh-tdep.c (sh_show_regs): Likewise.
5603 (sh_show_regs_command): Pass current frame to sh_show_regs routine.
5604 (sh_generic_show_regs): Add FRAME parameter. Use register
5605 values from that frame instead of calling read_register.
5606 (sh3_show_regs, sh2e_show_regs, sh2a_show_regs, sh2a_nofpu_show_regs,
5607 sh3e_show_regs, sh3_dsp_show_regs, sh4_show_regs, sh4_nofpu_show_regs,
5608 sh_dsp_show_regs): Likewise.
5609 * sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs,
5610 sh64_show_regs): Likewise.
5612 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
5614 * mips-tdep.c (deprecated_mips_set_processor_regs_hack): Read from
5615 current regcache instead of calling read_register.
5617 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
5619 * mep-tdep.c (current_me_module): Read from current regcache
5620 instead of calling read_register.
5621 (current_options): Likewise.
5623 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
5625 * cris-tdep.c (cris_stopped_data_address): Read register values
5626 from current frame instead of calling read_register.
5627 * frv-tdep.c (frv_stopped_data_address): Likewise.
5629 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
5631 * solib-sunos.c (sunos_solib_create_inferior_hook): Use write_pc
5632 instead of write_register (PC_REGNUM, ...).
5634 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
5636 * solib-sunos.c (sunos_solib_create_inferior_hook): Add comment
5637 explaining why the PC adjustment code is necessary.
5639 2007-06-15 Vladimir Prus <vladimir@codesourcery.com>
5641 * m68k-tdep.h (enum m68k_flavour): New.
5642 (struct gdbarch_tdep): New fields
5643 float_return, flavour and fpregs_present.
5644 * m68k-tdep.c (m68k_register_type): Use
5645 fpregs_present and conditionalize floating
5646 registers type on flavour.
5647 (m68k_register_names): New.
5648 (m68k_register_name): Use the above.
5649 (m68k_convert_register_p): Consult fpregs_present.
5650 (m68k_register_to_value, m68k_value_to_register):
5651 Use register_type to obtain the type of floating
5653 (m68k_svr4_extract_return_value): Check tdep->float_return.
5654 Use register_type to get the type of floating
5656 (m68k_svr4_store_return_value): Likewise.
5657 (m68k_dwarf_reg_to_regnum): Check tdep->fpregs_present.
5658 (m68k_analyze_register_saves): Likewise.
5659 (m68k_gdbarch_init): Extract infromation
5660 from XML description, if present. Guess coldfire by
5661 looking at the file, if present. Conditionalize
5662 setting of long double format. Set decr_pc_after_break
5663 to 2 on coldfire and fido. Enable XML-driven
5664 register description.
5665 * m68kbsd-tdep.c (m68kbsd_fpreg_offset): Use
5666 size of tdep->fpreg_type, as opposed to hardcoded value.
5667 * Makefile.in (m68k-tdep.o): Update dependencies.
5669 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
5671 * NEWS: Mention "info spu" commands and qXfer:spu:read and
5672 qXfer:spu:write remote packet types.
5674 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
5676 * xml-tdesc.c (tdesc_start_target): New.
5677 (target_attributes): New.
5678 (tdesc_elements): Use it.
5679 * features/gdb-target.dtd: Add #FIXED version attribute for
5682 2007-06-13 Arthur Huillet <arthur.huillet@free.fr>
5684 * mi/mi-cmd-var.c (mi_cmd_var_assign): Fix typo.
5686 2007-06-13 Claudio Fontana <claudio.fontana@gmail.com>
5688 * fork-child.c (fork_inferior): Update comment.
5690 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
5692 * features/Makefile: Generate regformats for mips-linux and
5694 * features/sort-regs.xsl: Correct typo.
5695 * regformats/reg-mips.dat, regformats/reg-mips64.dat: Delete.
5696 * regformats/mips-linux.dat, regformats/mips64-linux.dat: New generated
5699 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
5701 * config/mips/linux.mh (TDEP_XML): New.
5702 * features/mips-linux.xml, features/mips64-linux.xml: New files.
5703 * mips-linux-nat.c (mips_linux_register_addr): Handle
5704 MIPS_RESTART_REGNUM.
5705 (mips64_linux_register_addr): Likewise.
5706 (super_xfer_partial, mips_linux_xfer_partial): New.
5707 (_initialize_mips_linux_nat): Add them to the target_ops.
5708 * mips-linux-tdep.c (mips_supply_gregset): Handle MIPS_RESTART_REGNUM.
5709 (mips_fill_gregset, mips64_supply_gregset, mips64_fill_gregset)
5710 (mips_linux_o32_sigframe_init)
5711 (mips_linux_n32n64_sigframe_init): Likewise.
5712 (mips_linux_write_pc, mips_linux_restart_reg_p): New.
5713 (mips_linux_init_abi): Use mips_linux_write_pc. Check for the
5714 "org.gnu.gdb.mips.linux" feature.
5715 * mips-linux-tdep.h (MIPS_RESTART_REGNUM): New constant.
5716 (mips_linux_restart_reg_p): New prototype.
5717 * mips-tdep.c (mips_gdbarch_init): Pass tdesc_data to the OS/ABI
5718 initialization routine.
5719 * Makefile.in (mips-linux-tdep.o, mips-linux-nat.o): Update.
5721 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
5723 * Makefile.in (mips-tdep.o): Update.
5724 * mips-tdep.c (struct register_alias, mips_o32_aliases)
5725 (mips_n32_n64_aliases, mips_register_aliases): New.
5726 (mips_register_name): Call tdesc_register_name.
5727 (mips_tdesc_register_reggroup_p): New.
5728 (mips_pseudo_register_type, value_of_mips_user_reg): New.
5729 (mips_gdbarch_init): Add target-described register support.
5730 Register aliases for register names.
5731 * target-descriptions.c (tdesc_register_name): Make global.
5732 (tdesc_register_in_reggroup_p): New function, broken out from
5733 tdesc_register_reggroup_p.
5734 (tdesc_register_reggroup_p): Use it.
5735 * target-descriptions.h (tdesc_register_name)
5736 (tdesc_register_in_reggroup_p): New prototypes.
5737 * NEWS: Correct formatting. Mention MIPS register support.
5738 * features/mips-cp0.xml, features/mips-fpu.xml,
5739 features/mips64-cp0.xml, gdb/features/mips64-fpu.xml, mips-cpu.xml,
5740 features/mips64-cpu.xml: New files.
5742 2007-06-13 Markus Deuling <deuling@de.ibm.com>
5744 * gdbarch.sh (TARGET_ADDR_BIT): Replace by gdbarch_addr_bit.
5745 * valops.c (value_cast): Likewise.
5746 * utils.c (strlen_paddr, paddr, paddr_nz, paddress): Likewise.
5747 * ui-out.c (ui_out_field_core_addr): Likewise.
5748 * tracepoint.c (tracepoints_info): Likewise.
5749 * symtab.c (print_msymbol_info): Likewise.
5750 * solib-irix.c (irix_current_sos)
5751 (irix_open_symbol_file_object): Likewise.
5752 * remote.c (build_remote_gdbarch_data): Likewise.
5753 * prologue-value.c (make_pv_area): Likewise.
5754 * procfs.c (info_mappings_callback): Likewise.
5755 * printcmd.c (print_scalar_formatted)
5756 (deprecated_print_address_numeric): Likewise.
5757 * memattr.c (mem_info_command): Likewise.
5758 * linux-nat.c (linux_nat_info_proc_cmd): Likewise.
5759 * gdbtypes.c (build_flt, gdbtypes_post_init): Likewise.
5760 * exec.c (print_section_info): Likewise.
5761 * dwarf2read.c (read_subrange_type): Likewise.
5762 * dwarf2loc.c (find_location_expression): Likewise.
5763 * dwarf2expr.c (dwarf2_read_address, unsigned_address_type)
5764 (signed_address_type, execute_stack_op): Likewise.
5765 * breakpoint.c (print_one_breakpoint, breakpoint_1): Likewise.
5766 * gdbarch.c, gdbarch.h: Regenerate.
5768 2007-06-13 Markus Deuling <deuling@de.ibm.com>
5770 * gdbarch.sh (TARGET_ARCHITECTURE): Replace by gdbarch_bfd_arch_info.
5771 * arch-utils.c (show_architecture): Likewise.
5772 * remote-mips.c (mips_open): Likewise
5773 * nto-tdep.c (nto_find_and_open_solib)
5774 (nto_init_solib_absolute_prefix): Likewise.
5775 * nto-procfs (procfs_open): Likewise.
5776 * m68hc11-tdep.c (gdb_print_insn_m68hc11): Likewise.
5777 * gcore.c (default_gcore_mach, default_gcore_arch): Likewise.
5778 * gdbarch.c, gdbarch.h: Regenerate.
5780 2007-06-13 Markus Deuling <deuling@de.ibm.com>
5782 * gdbarch.sh (TARGET_BFD_VMA_BIT): Replace by gdbarch_bfd_vma_bit.
5783 * gdbtypes.c (build_flt): Likewise.
5784 * gdbarch.c, gdbarch.h: Regenerate.
5786 2007-06-13 Markus Deuling <deuling@de.ibm.com>
5788 * gdbarch.sh (BREAKPOINT_FROM_PC): Replace by
5789 gdbarch_breakpoint_from_pc.
5790 * s390-tdep.c (s390_gdbarch_init): Likewise (comment).
5791 * remote.c (remote_insert_breakpoint)
5792 (remote_insert_hw_breakpoint): Likewise.
5793 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Likewise.
5794 * mips-tdep.c (mips_breakpoint_from_pc): Likewise (comment).
5795 * breakpoint.h (bp_target_info): Likewise (comment).
5796 * breakpoint.c (read_memory_nobpt): Likewise.
5797 * mem-break.c (default_memory_insert_breakpoint): Likewise.
5798 (symtab.h, breakpoint.h): Remove include. Remove unnecessary comment.
5799 * gdbarch.c, gdbarch.h: Regenerate.
5801 2007-06-13 Markus Deuling <deuling@de.ibm.com>
5803 * gdbarch.sh (TARGET_PTR_BIT): Replace with gdbarch_ptr_bit.
5804 * solib-svr4.c (svr4_truncate_ptr): Likewise.
5805 * solib-pa64.c (read_dynamic_info): Likewise.
5806 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets): Likewise.
5807 * solib.c (info_sharedlibrary_command): Likewise.
5808 * s390-nat.c (SUBOFF): Likewise.
5809 * p-valprint.c (pascal_val_print): Likewise.
5810 * procfs.c (info_proc_mappings): Likewise.
5811 * printcmd.c (decode_format): Likewise.
5812 * nto-tdep.c (nto_truncate_ptr): Likewise.
5813 * mips-linux-tdep.c (mips_linux_get_longjmp_target)
5814 (mips64_linux_get_longjmp_target): Likewise.
5815 * m68k-tdep.c (m68k_get_longjmp_target): Likewise.
5816 * jv-valprint.c (java_value_print): Likewise.
5817 * jv-lang.c (get_java_object_header_size): Likewise.
5818 * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Likewise.
5819 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
5820 (hppa_hpux_unwind_adjust_stub): Likewise.
5821 * gnu-v3-abi.c (build_gdb_vtable_type): Likewise.
5822 * gdbtypes.c (make_pointer_type, make_reference_type)
5823 (smash_to_memberptr_type): Likewise.
5824 * gdbarch.c, gdbarch.h: Regenerate.
5826 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
5828 * mips-tdep.c (mips_print_register): Remove unused ALL argument.
5829 (print_gp_register_row): Stop before printing a register bigger
5830 than the ABI register size.
5831 (mips_print_registers_info): Update call to mips_print_register.
5833 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
5835 * expression.h (enum exp_opcode): Document a register name for
5837 * parse.c (write_dollar_variable): Write the register name for
5839 (operator_length_standard): Expect the register name following
5841 * ada-lang.c (resolve_subexp): Likewise.
5842 * ax-gdb.c (gen_expr): Likewise.
5843 * eval.c (evaluate_subexp_standard): Likewise.
5844 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
5846 * tracepoint.c (encode_actions): Likewise.
5848 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
5850 * utils.c (set_screen_size): Use INT_MAX for default columns.
5852 2007-06-13 Ulrich Weigand <uweigand@de.ibm.com>
5854 * remote.c (remote_protocol_features): Add qXfer:spu:read and
5855 qXfer:spu:write packet types.
5857 2007-06-12 Markus Deuling <deuling@de.ibm.com>
5859 * gdbarch.sh (DEPRECATED_STACK_ALIGN): Remove.
5860 * gdbarch.c, gdbarch.h: Regenerate.
5862 2007-06-12 Markus Deuling <deuling@de.ibm.com>
5864 * gdbarch.sh (STAB_REG_TO_REGNUM): Replace by
5865 gdbarch_stab_reg_to_regnum.
5866 * stabsread.c (define_symbol): Likewise.
5867 * gdbarch.sh (ECOFF_REG_TO_REGNUM): Replace by
5868 gdbarch_ecoff_reg_to_regnum.
5869 * mdebugread.c (parse_symbol): Likewise.
5870 * i386-tdep.c (i386_gdbarch_init): Likewise (comment).
5871 * gdbarch.sh (DWARF_REG_TO_REGNUM): Replace by
5872 gdbarch_dwarf_reg_to_regnum.
5873 * gdbarch.sh (SDB_REG_TO_REGNUM): Replace by gdbarch_sdb_reg_to_regnum.
5874 * coffread.c (process_coff_symbol): Likewise.
5875 * gdbarch.sh (DWARF2_REG_TO_REGNUM): Replace by
5876 gdbarch_dwarf2_reg_to_regnum.
5877 * dwarf2loc.c (dwarf_expr_read_reg,dwarf2_evaluate_loc_desc)
5878 (locexpr_describe_location): Likewise.
5879 * dwarf2-frame.c (read_reg,execute_cfa_program,dwarf2_frame_cache)
5880 (dwarf2_frame_prev_register,dwarf2_signal_frame_this_id): Likewise.
5881 * dwarf2loc.c (DWARF2_REG_TO_REGNUM): Remove macro.
5882 * dwarf2read.c (DWARF2_REG_TO_REGNUM): Remove macro.
5883 * gdbarch.c, gdbarch.h: Regenerate.
5885 2007-06-12 Markus Deuling <deuling@de.ibm.com>
5887 * gdbarch.sh (SMASH_TEXT_ADDRESS): Replace by
5888 gdbarch_smash_text_address.
5889 * somread.c (som_symtab_read): Likewise.
5890 * elfread.c (record_minimal_symbol): Likewise.
5891 * dbxread.c (process_one_symbol): Likewise.
5892 * coffread.c (coff_symtab_read): Likewise.
5893 * gdbarch.c, gdbarch.h: Regenerate.
5895 2007-06-12 Markus Deuling <deuling@de.ibm.com>
5897 * gdbarch.sh (REGISTER_TO_VALUE): Replace by gdbarch_register_to_value.
5898 * findvar.c (value_from_register): Likewise.
5899 * gdbarch.sh (VALUE_TO_REGISTER): Replace by gdbarch_value_to_register.
5900 * valops.c (value_assign): Likewise.
5901 * gdbarch.sh (CONVERT_REGISTER_P): Replace by
5902 gdbarch_convert_register_p.
5903 * findvar.c (value_from_register): Likewise.
5904 * valops.c (value_assign): Likewise.
5905 * gdbarch.c, gdbarch.h: Regenerate.
5907 2007-06-12 Markus Deuling <deuling@de.ibm.com>
5909 * gdbarch.sh (REGISTER_SIM_REGNO): Replace by
5910 gdbarch_register_sim_regno.
5911 * sim-regno.h (sim_regno): Likewise (comment).
5912 * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register): Likewise.
5913 * gdbarch.c, gdbarch.h: Regenerate.
5915 2007-06-12 Markus Deuling <deuling@de.ibm.com>
5917 * gdbarch.sh (TARGET_VIRTUAL_FRAME_POINTER): Replace by
5918 gdbarch_virtual_frame_pointer.
5919 * tracepoint.c (encode_actions): Likewise.
5920 * dwarf2loc.c (dwarf2_loc_desc_needs_frame): Likewise.
5921 * ax-gdb.c (gen_frame_args_address, gen_frame_locals_address): Likewise.
5922 * gdbarch.c, gdbarch.h: Regenerate.
5924 2007-06-12 Markus Deuling <deuling@de.ibm.com>
5926 * gdbarch.sh (TARGET_FLOAT_BIT): Replace by gdbarch_float_bit.
5927 * p-lang.c (pascal_create_fundamental_type): Likewise.
5928 * objc-lang.c (objc_create_fundamental_type): Likewise.
5929 * mdebugread.c (_initialize_mdebugread): Likewise.
5930 * m2-lang.c (m2_create_fundamental_type)
5931 (_initialize_m2_language): Likewise.
5932 * gdbtypes.c (build_gdbtypes): Likewise.
5933 * f-lang.c (f_create_fundamental_type, build_fortran_types): Likewise.
5934 * doublest.c (floatformat_from_length): Likewise.
5935 * c-lang.c (c_create_fundamental_type): Likewise.
5936 * ada-lang.c (ada_create_fundamental_type)
5937 (ada_language_arch_info): Likewise.
5938 * gdbarch.sh (TARGET_FLOAT_FORMAT): Replace by gdbarch_float_format.
5939 * value.c (unpack_double): Likewise (comment).
5940 * gdbtypes.c (build_gdbtypes): Likewise.
5941 * doublest.c (floatformat_from_length): Likewise.
5942 * gdbarch.sh (TARGET_DOUBLE_BIT): Replace by gdbarch_double_bit.
5943 * valarith.c (value_binop): Likewise.
5944 * p-lang.c (pascal_create_fundamental_type): Likewise.
5945 * objc-lang.c (objc_create_fundamental_type): Likewise.
5946 * mdebugread.c (_initialize_mdebugread): Likewise.
5947 * m2-lang.c (m2_create_fundamental_type): Likewise.
5948 * gdbtypes.c (build_gdbtypes): Likewise.
5949 * f-lang.c (f_create_fundamental_type, build_fortran_types): Likewise.
5950 * doublest.c (floatformat_from_length): Likewise.
5951 * cris-tdep.c (cris_gdbarch_init): Likewise (comment).
5952 * c-lang.c (c_create_fundamental_type): Likewise.
5953 * ada-lex.l (processReal): Likewise.
5954 * ada-lang.c (ada_create_fundamental_type)
5955 (ada_language_arch_info): Likewise.
5956 * gdbarch.sh (TARGET_DOUBLE_FORMAT): Replace by gdbarch_double_format.
5957 * value.c (unpack_double): Likewise (comment).
5958 * gdbtypes.c (build_gdbtypes): Likewise.
5959 * doublest.c (floatformat_from_length): Likewise.
5960 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Replace by
5961 gdbarch_long_double_bit.
5962 * p-lang.c (pascal_create_fundamental_type): Likewise.
5963 * objc-lang.c (objc_create_fundamental_type): Likewise.
5964 * m2-lang.c (m2_create_fundamental_type): Likewise.
5965 * gdbtypes.c (build_gdbtypes): Likewise.
5966 * f-lang.c (f_create_fundamental_type, build_fortran_types): Likewise.
5967 * doublest.c (floatformat_from_length): Likewise.
5968 * c-lang.c (c_create_fundamental_type): Likewise.
5969 * ada-lex.l (processReal): Likewise.
5970 * ada-lang.c (ada_create_fundamental_type)
5971 (ada_language_arch_info): Likewise.
5972 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Replace by
5973 gdbarch_long_double_format.
5974 * gdbtypes.c (build_gdbtypes): Likewise.
5975 * doublest.c (floatformat_from_length): Likewise.
5976 * gdbarch.c, gdbarch.h: Regenerate.
5978 2007-06-12 Markus Deuling <deuling@de.ibm.com>
5980 * gdbarch.sh (TARGET_SHORT_BIT): Replace by gdbarch_int_bit.
5981 * ada-lang.c (ada_create_fundamental_type)
5982 (ada_language_arch_info): Likewise.
5983 * c-lang.c (c_create_fundamental_type): Likewise.
5984 * f-lang.c (f_create_fundamental_type, build_fortran_types): Likewise.
5985 * gdbtypes.c (build_gdbtypes, gdbtypes_post_init): Likewise.
5986 * m2-lang.c (m2_create_fundamental_type): Likewise.
5987 * objc-lang.c (objc_create_fundamental_type): Likewise.
5988 * p-lang.c (pascal_create_fundamental_type): Likewise.
5989 * gdbarch.sh (TARGET_INT_BIT): Replace by gdbarch_int_bit.
5990 * c-exp.y (parse_number): Likewise.
5991 * objc-exp.y (parse_number): Likewise.
5992 * ada-lex.l (processInt): Likewise.
5993 * f-exp.y (parse_number): Likewise.
5994 * p-exp.y (parse_number): Likewise.
5995 * ada-lang.c (ada_create_fundamental_type, ada_language_arch_info)
5996 (gdbtypes_post_init, build_gdbtypes): Likewise.
5997 * p-lang.c (pascal_create_fundamental_type): Likewise.
5998 * parse.c (build_parse): Likewise.
5999 * xcoffread.c (_initialize_xcoffread): Likewise.
6000 * stabsread.c (define_symbol, read_one_struct_field, read_enum_type)
6001 (read_range_type): Likewise.
6002 * objc-lang.c (objc_create_fundamental_type): Likewise.
6003 * f-lang.c (build_fortran_types, f_create_fundamental_type): Likewise.
6004 * m2-lang.c (m2_create_fundamental_type, _initialize_m2_language)
6005 (m2_create_fundamental_type): Likewise.
6006 * c-lang.c (c_create_fundamental_type): Likewise.
6007 * coffread.c (coff_read_enum_type): Likewise.
6008 * mdebugread.c (parse_symbol, _initialize_mdebugread): Likewise.
6009 * dwarf2read.c (new_symbol): Likewise.
6010 * gdbarch.sh (TARGET_LONG_BIT): Replace by gdbarch_long_bit.
6011 * c-exp.y (parse_number): Likewise.
6012 * objc-exp.y (parse_number): Likewise.
6013 * ada-lex.l (processInt): Likewise.
6014 * f-exp.y (parse_number): Likewise.
6015 * p-exp.y (parse_number): Likewise.
6016 * valarith.c (value_binop): Likewise.
6017 * symfile.c (read_target_long_array, simple_overlay_update_1): Likewise.
6018 * ada-lang.c (ada_create_fundamental_type)
6019 (ada_language_arch_info): Likewise.
6020 * gdbtypes.c (build_gdbtypes, gdbtypes_post_init): Likewise.
6021 * symfile.c (TARGET_LONG_BYTES): Likewise.
6022 * p-lang.c (pascal_create_fundamental_type): Likewise.
6023 * objc-lang.c (objc_create_fundamental_type): Likewise.
6024 * m2-lang.c (m2_create_fundamental_type): Likewise.
6025 * f-lang.c (f_create_fundamental_type): Likewise.
6026 * c-lang.c (c_create_fundamental_type): Likewise.
6027 * coffread.c (decode_base_type): Likewise.
6028 * gdbarch.sh (TARGET_LONG_LONG_BIT): Replace by gdbarch_long_long_bit.
6029 * c-exp.y (parse_number): Likewise.
6030 * objc-exp.y (parse_number): Likewise.
6031 * p-exp.y (parse_number): Likewise.
6032 * ada-lang.c (ada_create_fundamental_type)
6033 (ada_language_arch_info): Likewise.
6034 * gdbtypes.c (gdbtypes_post_init, build_gdbtypes): Likewise.
6035 * stabsread.c (read_range_type): Likewise.
6036 * p-lang.c (pascal_create_fundamental_type): Likewise.
6037 * objc-lang.c (objc_create_fundamental_type): Likewise.
6038 * m2-lang.c (m2_create_fundamental_type): Likewise.
6039 * f-lang.c (f_create_fundamental_type): Likewise.
6040 * c-lang.c (c_create_fundamental_type): Likewise.
6041 * gdbarch.c, gdbarch.h: Regenerate.
6043 2007-06-12 Andreas Schwab <schwab@suse.de>
6045 * frame-unwind.h (frame_dealloc_cache_ftype): Define.
6046 (struct frame_unwind): Add dealloc_cache.
6047 * frame.c (reinit_frame_cache): Call dealloc_cache on all caches.
6049 * libunwind-frame.h (libunwind_frame_dealloc_cache): Declare.
6050 * libunwind-frame.c (libunwind_frame_dealloc_cache): Define.
6051 (libunwind_frame_unwind): Set dealloc_cache.
6052 * ia64-tdep.c (ia64_libunwind_frame_unwind): Set dealloc_cache.
6054 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
6055 Markus Deuling <deuling@de.ibm.com>
6057 * remote.c (remote_write_qxfer): New function.
6058 (remote_xfer_partial): Add handling for TARGET_OBJECT_SPU.
6059 (remote_read_qxfer): Do not cache empty objects.
6060 (_initialize_remote): Add PACKET_qXfer_spu_read and
6061 PACKET_qXfer_spu_write.
6063 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
6065 * target.h (enum target_object): Add TARGET_OBJECT_SPU.
6066 * spu-linux-nat.c (spu_xfer_partial): Handle TARGET_OBJECT_SPU.
6068 * spu-tdep.h (SPU_NUM_PSEUDO_REGS): Add 5 pseudo registers.
6069 (enum spu_regnum): Add SPU_FPSCR_REGNUM, SPU_SRR0_REGNUM,
6070 SPU_LSLR_REGNUM, SPU_DECR_REGNUM, SPU_DECR_STATUS_REGNUM.
6071 * spu-tdep.c (infospucmdlist): New variable.
6072 (spu_register_name): Handle additional pseudo registers.
6073 (spu_register_type): Likewise.
6074 (spu_pseudo_register_read): Likewise.
6075 (spu_pseudo_register_write): Likewise.
6076 (spu_pseudo_register_read_spu): New function.
6077 (spu_pseudo_register_write_spu): Likewise.
6078 (info_spu_event_command): New function.
6079 (info_spu_signal_command): Likewise.
6080 (info_spu_mailbox_list): Likewise.
6081 (info_spu_mailbox_command): Likewise.
6082 (spu_mfc_get_bitfield): Likewise.
6083 (info_spu_dma_cmdlist): Likewise.
6084 (info_spu_dma_command): Likewise.
6085 (info_spu_proxydma_command): Likewise.
6086 (info_spu_command): Likewise.
6087 (_initialize_spu_tdep): Install "info spu" commands.
6089 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
6091 * spu-linux-nat.c (spu_proc_xfer_spu): Do not return failure when
6092 accessing non-seekable spufs files.
6094 2007-06-09 Markus Deuling <deuling@de.ibm.com>
6096 * gdbarch.sh (SKIP_TRAMPOLINE_CODE): Replace by
6097 gdbarch_skip_trampoline_code.
6098 * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Likewise (comment).
6099 * objc-lang.c (objc_skip_trampoline)
6100 (objc_submethod_helper_data): Likewise.
6101 * m32c-lang.c (m32c_skip_trampoline_code): Likewise (comment).
6102 * infrun.c (handle_inferior_event): Likewise.
6103 * gnu-v3-abi.c (gnuv3_skip_trampoline): Likewise.
6104 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Replace by
6105 gdbarch_in_solib_return_trampoline.
6106 * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Likewise (comment).
6107 * infrun.c (handle_inferior_event): Likewise.
6108 * hppa-tdep.c (hppa_stub_unwind_sniffer): Likewise.
6109 * gdbarch.c, gdbarch.h: Regenerate.
6111 2007-06-09 Markus Deuling <deuling@de.ibm.com>
6113 * gdbarch.sh (SKIP_PROLOGUE): Replace by gdbarch_skip_prologue.
6114 * symtab.c (find_function_start_sal, in_prologue): Likewise.
6115 * linespec.c (minsym_found): Likewise.
6116 * infrun.c (step_into_function): Likewise.
6117 * gdbarch.c, gdbarch.h: Regenerate.
6119 2007-06-09 Markus Deuling <deuling@de.ibm.com>
6121 * gdbarch.sh (NAME_OF_MALLOC): Replace by gdbarch_name_of_malloc.
6122 * valops.c (value_allocate_space_in_inferior): Likewise.
6123 * gdbarch.c, gdbarch.h: Regenerate.
6125 2007-06-09 Markus Deuling <deuling@de.ibm.com>
6127 * gdbarch.sh (MEMORY_INSERT_BREAKPOINT): Replace by
6128 gdbarch_memory_insert_breakpoint.
6129 * mem-break.c (memory_insert_breakpoint): Likewise.
6130 * gdbarch.sh (MEMORY_REMOVE_BREAKPOINT): Replace by
6131 gdbarch_memory_remove_breakpoint.
6132 * mem-break.c (memory_remove_breakpoint): Likewise.
6133 * gdbarch.c, gdbarch.h: Regenerate.
6135 2007-06-09 Markus Deuling <deuling@de.ibm.com>
6137 * gdbarch.sh (FETCH_TLS_LOAD_MODULE_ADDRESS): Replace by
6138 gdbarch_fetch_tls_load_module_address.
6139 * gdbarch.sh (FETCH_TLS_LOAD_MODULE_ADDRESS_P): Replace by
6140 gdbarch_fetch_tls_load_module_address_p.
6141 * gdbarch.c, gdbarch.h: Regenerate.
6143 2007-06-09 Markus Deuling <deuling@de.ibm.com>
6145 * gdbarch.sh (DECR_PC_AFTER_BREAK): Replace by
6146 gdbarch_decr_pc_after_break.
6147 * tracepoint.c (trace_dump_command): Likewise.
6148 * solib-sunos.c (sunos_solib_create_inferior_hook): Likewise.
6149 * linux-thread-db.c (check_event): Likewise.
6150 * linux-nat.c (cancel_breakpoints_callback): Likewise.
6151 * infrun.c (adjust_pc_after_break, normal_stop): Likewise.
6152 * frame.h: Likewise (comment).
6153 * dummy-frame.c (deprecated_pc_in_call_dummy): Likewise.
6154 * aix-thread.c (aix_thread_wait): Likewise.
6155 * gdbarch.c, gdbarch.h: Regenerate.
6157 2007-06-09 Markus Deuling <deuling@de.ibm.com>
6159 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS): Replace by
6160 gdbarch_address_class_type_flags.
6161 * dwarf2read.c (read_tag_pointer_type): Likewise.
6162 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS_P): Replace by
6163 gdbarch_address_class_type_flags_p.
6164 * dwarf2read.c (read_tag_pointer_type): Likewise.
6165 * gdbarch.c, gdbarch.h: Regenerate.
6167 2007-06-09 Markus Deuling <deuling@de.ibm.com>
6169 * gdbarch.sh (ADDR_BITS_REMOVE): Replace by gdbarch_addr_bits_remove.
6170 * value.c (value_as_address): Likewise (comment).
6171 * remote-mips.c (common_breakpoint): Likewise.
6172 * regcache.c (read_pc_pid): Likewise.
6173 * printcmd.c (do_one_display): Likewise.
6174 * monitor.c (monitor_write_memory, monitor_read_memory)
6175 (monitor_insert_breakpoint): Likewise.
6176 * mips-tdep.c (heuristic_proc_start): Likewise.
6177 * infrun.c (insert_step_resume_breakpoint_at_frame)
6178 (insert_step_resume_breakpoint_at_caller): Likewise.
6179 * buildsym.c (record_line): Likewise.
6180 * arm-tdep.c (arm_scan_prologue, thumb_get_next_pc)
6181 (arm_get_next_pc): Likewise.
6182 * armnbsd-nat.c (arm_supply_gregset, fetch_register, store_register)
6183 (store_regs): Likewise.
6184 * arm-linux-tdep.c (arm_linux_supply_gregset): Likewise.
6185 * arm-linux-nat.c (fetch_register, fetch_regs): Likewise.
6186 * gdbarch.c, gdbarch.h: Regenerate.
6188 2007-06-09 Markus Deuling <deuling@de.ibm.com>
6190 * gdbarch.sh (REGISTER_NAME): Replace by gdbarch_register_name.
6191 * tracepoint.c (scope_info): Likewise.
6192 * target.c (debug_print_register): Likewise.
6193 * stack.c (frame_info): Likewise.
6194 * sh-tdep.c (sh_register_reggroup_p): Likewise.
6195 * sh64-tdep.c (sh64_do_fp_register, sh64_do_register)
6196 (sh64_media_print_registers_info)
6197 (sh64_compact_print_registers_info): Likewise.
6198 * rs6000-tdep.c (rs6000_register_reggroup_p): Likewise.
6199 * remote-sim.c (gdbsim_fetch_register): Likewise.
6200 * remote.c (packet_reg): Likewise (comment).
6201 * reggroups.c (default_register_reggroup_p): Likewise.
6202 * regcache.c (regcache_dump): Likewise.
6203 * printcmd.c (address_info): Likewise.
6204 * ppc-linux-nat.c (fetch_register, store_register): Likewise.
6205 * mt-dep.c (mt_registers_info): Likewise.
6206 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Likewise (comment).
6207 * mips-tdep.c (mips_register_reggroup_p, mips_read_fp_register_single)
6208 (mips_read_fp_register_double, mips_print_fp_register)
6209 (mips_print_register, print_gp_register_row, mips_print_registers_info)
6210 (mips_register_sim_regno): Likewise.
6211 * m68klinux-nat.c (regmap, fetch_register, store_register): Likewise.
6212 * inf-ptrace.c (inf_ptrace_fetch_register)
6213 (inf_ptrace_store_register): Likewise.
6214 * infcmd.c (default_print_registers_info): Likewise.
6215 * ia64-linux-nat.c (ia64_linux_fetch_register)
6216 (ia64_linux_store_register): Likewise.
6217 * i386-linux-nat.c (fetch_register, store_register): Likewise.
6218 * i386gnu-nat.c (gnu_fetch_registers, gnu_store_registers): Likewise.
6219 * hppa-linux-nat.c (fetch_register, store_register): Likewise.
6220 * hppa-hpux-nat.c (hppa_hpux_fetch_register)
6221 (hppa_hpux_store_register): Likewise.
6222 * findvar.c (locate_var_value): Likewise.
6223 * dwarf2loc.c (locexpr_describe_location): Likewise.
6224 * dwarf2-frame.c (execute_cfa_program): Likewise.
6225 * arm-tdep.c (arm_push_dummy_call): Likewise.
6226 * arch-utils.c (legacy_register_sim_regno): Likewise.
6227 * alpha-tdep.c (alpha_register_reggroup_p): Likewise.
6228 * alpha-nat.c (fetch_osf_core_registers): Likewise.
6229 * mi/mi-main.c (mi_cmd_data_list_register_names)
6230 (mi_cmd_data_list_changed_registers, mi_cmd_data_list_register_values)
6231 (mi_cmd_data_write_register_values): Likewise.
6232 * gdbarch.c, gdbarch.h: Regenerate.
6234 2007-06-07 Daniel Jacobowitz <dan@codesourcery.com>
6236 * target-memory.c (blocks_to_erase): Correct off-by-one error.
6238 2007-06-06 Vladimir Prus <vladimir@codesourcery.com>
6240 * remote.c (process_g_packet): Don't check size.
6241 * gdbarch.sh: Remove register_bytes_ok.
6242 * gdbarch.c: Regenerated.
6243 * gdbarch.h: Regenerated.
6244 * m68k-tdep.c (REGISTER_BYTES_NOFP): Remove.
6245 (m68k_register_bytes_ok): Remove.
6246 (m68k_gdbarch_init): Don't register m68k_register_bytes_ok.
6248 2007-06-06 Andreas Schwab <schwab@suse.de>
6250 * libunwind-frame.c (unw_destroy_addr_space_p): Define.
6251 (destroy_addr_space_name): Define.
6252 (libunwind_load): Get address of destroy_addr_space function.
6253 (libunwind_frame_cache): Destroy unw_addr_space_t object before
6254 returning unsuccessfully.
6255 (libunwind_frame_sniffer): Destroy unw_addr_space_t object before
6257 (libunwind_sigtramp_frame_sniffer): Likewise.
6258 (libunwind_get_reg_special): Likewise.
6260 2007-06-06 Markus Deuling <deuling@de.ibm.com>
6262 * gdbarch.sh (FETCH_POINTER_ARGUMENT): Replace by
6263 gdbarch_fetch_pointer_argument.
6264 * objc-lang.c (OBJC_FETCH_POINTER_ARGUMENT): Likewise.
6265 * gdbarch.c, gdbarch.h: Regenerate.
6267 2007-06-06 Markus Deuling <deuling@de.ibm.com>
6269 * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Replace by
6270 gdbarch_have_nonsteppable_watchpoint.
6271 * infrun.c (handle_inferior_event, adjust_pc_after_break): Likewise.
6272 * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Replace by
6273 gdbarch_cannot_step_breakpoint.
6274 * infrun.c (resume): Likewise.
6275 * gdbarch.c, gdbarch.h: Regenerate.
6277 2007-06-06 Markus Deuling <deuling@de.ibm.com>
6279 * gdbarch.sh (FRAME_ARGS_SKIP): Replace by gdbarch_frame_args_skip.
6280 * stack.c (print_frame_args): Likewise.
6281 * gdbarch.sh (FRAME_NUM_ARGS): Replace by gdbarch_frame_num_args.
6282 * stack.c (print_args_stub, frame_info): Likewise.
6283 * gdbarch.sh (FRAME_NUM_ARGS_P): Replace by gdbarch_frame_num_args_p.
6284 * stack.c (print_args_stub, frame_info): Likewise.
6285 * gdbarch.c, gdbarch.h: Regenerate.
6287 2007-06-06 Markus Deuling <deuling@de.ibm.com>
6289 * gdbarch.sh (COFF_MAKE_MSYMBOL_SPECIAL): Replace by
6290 gdbarch_coff_make_msymbol_special.
6291 * coffread.c (coff_symtab_read): Likewise.
6292 * gdbarch.sh (ELF_MAKE_MSYMBOL_SPECIAL): Replace by
6293 gdbarch_elf_make_msymbol_special.
6294 * elfread.c (elf_symtab_read): Likewise.
6295 * mips-tdep.c (mips_elf_make_msymbol_special): Likewise (comment).
6296 * sh64-tdep.c (MSYMBOL_IS_SPECIAL): Likewise (comment).
6297 * gdbarch.c, gdbarch.h: Regenerate.
6299 2007-06-06 Markus Deuling <deuling@de.ibm.com>
6301 * gdbarch.sh (FRAME_RED_ZONE_SIZE): Replace by
6302 gdbarch_frame_red_zone_size.
6303 * gdbarch.c, gdbarch.h: Regenerate.
6305 2007-06-06 Markus Deuling <deuling@de.ibm.com>
6307 * gdbarch.sh (INNER_THAN): Replace by gdbarch_inner_than.
6308 * infcall.c (call_function_by_hand): Likewise.
6309 * gcore.c (derive_stack_segment): Likewise.
6310 * frame.c (frame_id_inner): Likewise.
6311 * arch-utils.c (core_addr_lessthan): Likewise (comment).
6312 * ada-lang.c (ensure_lval): Likewise.
6313 * gdbarch.c, gdbarch.h: Regenerate.
6315 2007-06-06 Markus Deuling <deuling@de.ibm.com>
6317 * gdbarch.sh (ADDRESS_TO_POINTER): Replace by
6318 gdbarch_address_to_pointer.
6319 * findvar.c (store_typed_address): Likewise.
6320 * gdbtypes.c (make_pointer_type): Likewise (comment).
6321 * procfs.c (procfs_address_to_host_pointer): Likewise.
6322 * std-regs.c (value_of_builtin_frame_reg): Likewise.
6323 (value_of_builtin_frame_fp_reg): Likewise.
6324 (value_of_builtin_frame_pc_reg): Likewise.
6325 * utils.c (paddress): Likewise (comment).
6326 * gdbarch.sh (POINTER_TO_ADDRESS): Replace by
6327 gdbarch_pointer_to_address.
6328 * findvar.c (extract_typed_address): Likewise.
6329 * gdbtypes.c (make_pointer_type): Likewise (comment).
6330 * valops.c (value_cast): Likewise (comment).
6331 * gdbarch.c, gdbarch.h: Regenerate.
6333 2007-06-06 Markus Deuling <deuling@de.ibm.com>
6335 * gdbarch.sh (GET_LONGJMP_TARGET): Replace by gdbarch_get_longjmp_target.
6336 * infrun.c (handle_inferior_event): Likewise.
6337 * gdbarch.sh (GET_LONGJMP_TARGET_P): Replace by
6338 gdbarch_get_longjmp_target_p.
6339 * breakpoint.c (breakpoint_re_set): Likewise.
6340 * infrun.c (handle_inferior_event): Likewise.
6341 * gdbarch.c, gdbarch.h: Regenerate.
6343 2007-06-06 Ulrich Weigand <uweigand@de.ibm.com>
6345 * hppa-hpux-tdep.c (args_for_find_stub, HP_ACC_EH_notify_hook,
6346 HP_ACC_EH_set_hook_value, HP_ACC_EH_notify_callback, HP_ACC_EH_break,
6347 HP_ACC_EH_catch_throw, HP_ACC_EH_catch_catch, __eh_notification,
6348 hp_cxx_exception_support, hp_cxx_exception_support_initialized,
6349 eh_notify_hook_addr, eh_notify_callback_addr, eh_break_addr,
6350 eh_catch_throw_addr, break_callback_sal, setup_d_pid_in_inferior,
6351 find_stub_with_shl_get, cover_find_stub_with_shl_get,
6352 initialize_hp_cxx_exception_support, child_enable_exception_callback,
6353 current_ex_event, child_get_current_exception_event): Remove.
6354 (hppa_hpux_inferior_created): Remove.
6355 (hppa_hpux_init_abi): Do not install hppa_hpux_inferior_created.
6357 * breakpoint.h (deprecated_exception_catchpoints_are_fragile): Remove.
6358 (deprecated_exception_support_initialized): Remove.
6359 * breakpoint.c (deprecated_exception_catchpoints_are_fragile): Remove.
6360 (deprecated_exception_support_initialized): Remove.
6361 (breakpoint_init_inferior): Remove handling of non-zero
6362 deprecated_exception_catchpoints_are_fragile.
6364 * symtab.h (deprecated_hp_som_som_object_present): Remove.
6365 * symtab.c (deprecated_hp_som_som_object_present): Remove.
6366 * c-typeprint.c (c_type_print_base): Remove handling of non-zero
6367 deprecated_hp_som_som_object_present.
6368 * eval.c (evaluate_subexp_standard): Likewise.
6369 * valops.c (value_cast): Likewise.
6371 * parse.c (parse_nested_classes_for_hpacc, coloncolon): Remove.
6372 * parser-defs.h (parse_nested_classes_for_hpacc): Remove.
6373 * c-exp.y (yylex): Do not call parse_nested_classes_for_hpacc.
6375 2007-06-06 Ulrich Weigand <uweigand@de.ibm.com>
6377 * objfiles.h (ImportEntry, ExportEntry): Remove types.
6378 (struct objfile): Remove import_list, import_list_size,
6379 export_list, export_list_size members.
6380 (is_in_import_list): Remove prototype.
6381 * objfiles.c (is_in_import_list): Remove.
6382 * somread.c (init_import_symbols, init_export_symbols): Remove.
6383 (som_symfile_read): Do not call init_import_symbols. Do not
6384 set objfile->export_list and objfile->export_list_size.
6386 2007-06-05 Daniel Jacobowitz <dan@codesourcery.com>
6388 * dwarf2read.c (dwarf2_symbol_mark_computed): Fix formatting.
6389 Use the original objfile if necessary.
6391 2007-06-04 Daniel Jacobowitz <dan@codesourcery.com>
6393 * defs.h (ldirname): New prototype.
6394 * dwarf2read.c (read_file_scope): Use DW_AT_name if DW_AT_comp_dir is
6396 * utils.c (ldirname): New function.
6397 * xml-tdesc.c (file_read_description_xml): Use ldirname.
6399 2007-06-01 Ulrich Weigand <uweigand@de.ibm.com>
6401 * spu-tdep.c (spu_push_dummy_call): Store stack back chain.
6403 2007-06-01 Joel Brobecker <brobecker@adacore.com>
6405 * solib-svr4.c (svr4_solib_create_inferior_hook): Remove warning.
6407 2007-06-01 Ulrich Weigand <uweigand@de.ibm.com>
6409 * irix5-nat.c (JB_ELEMENT_SIZE, get_longjmp_target): Remove.
6411 2007-06-01 Ulrich Weigand <uweigand@de.ibm.com>
6413 * ppc-linux-tdep.c (INSTR_SC, INSTR_LI_R0_0x6666, INSTR_LI_R0_0x7777,
6414 INSTR_LI_R0_NR_sigreturn, INSTR_LI_R0_NR_rt_sigreturn): Remove.
6415 (PPC_LINUX_SIGNAL_FRAMESIZE, PPC_LINUX_REGS_PTR_OFFSET,
6416 PPC_LINUX_HANDLER_PTR_OFFSET): Remove.
6417 (ppc_linux_in_sigtramp, insn_is_sigreturn,
6418 ppc_linux_at_sigtramp_return_path): Remove.
6420 2007-05-31 Markus Deuling <deuling@de.ibm.com>
6422 * xtensa-tdep.c (XTENSA_IS_ENTRY, extract_call_winsize)
6423 (xtensa_register_write_masked, xtensa_register_read_masked)
6424 (xtensa_extract_return_value, xtensa_store_return_value
6425 (xtensa_push_dummy_call, xtensa_breakpoint_from_pc): Replace
6426 TARGET_BYTE_ORDER by gdbarch_byte_order.
6427 * sh-tdep.c (sh_breakpoint_from_pc, gdb_print_insn_sh)
6428 (sh_justify_value_in_reg, sh_next_flt_argreg, sh_push_dummy_call_fpu)
6429 (sh_extract_return_value_fpu, sh_store_return_value_fpu): Likewise.
6430 * sh64-tdep.c (sh64_breakpoint_from_pc, gdb_print_insn_sh64)
6431 (sh64_push_dummy_call, sh64_extract_return_value)
6432 (sh64_store_return_value, sh64_register_convert_to_virtual)
6433 (sh64_register_convert_to_raw, sh64_pseudo_register_read)
6434 (sh64_pseudo_register_write, sh64_do_fp_register)
6435 (sh64_frame_prev_register): Likewise.
6436 * score-tdep.c (score_print_insn, score_breakpoint_from_pc)
6437 (score_return_value, score_push_dummy_call, score_fetch_inst): Likewise.
6438 * rs6000-tdep.c (rs6000_breakpoint_from_pc, rs6000_push_dummy_call)
6439 (e500_move_ev_register,gdb_print_insn_powerpc): Likewise.
6440 * remote-m32r-sdi.c (m32r_resume, m32r_wait): Likewise.
6441 * ppc-linux-nat.c (store_register): Likewise.
6442 * nto-tdep.c (nto_find_and_open_solib)
6443 (nto_init_solib_absolute_prefix): Likewise.
6444 * mips-tdep.c (mips_pseudo_register_read, mips_pseudo_register_write)
6445 (mips_convert_register_p, mips_eabi_push_dummy_call)
6446 (mips_n32n64_push_dummy_call, mips_n32n64_return_value)
6447 (mips_o32_push_dummy_call, mips_o32_return_value)
6448 (mips_o64_push_dummy_call, mips_o64_return_value, mips_o64_return_value)
6449 (mips_read_fp_register_single, mips_read_fp_register_double)
6450 (mips_print_register, print_gp_register_row, gdb_print_insn_mips)
6451 (mips_breakpoint_from_pc): Likewise.
6452 * mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset): Likewise.
6453 * mips-linux-tdep.c (mips64_supply_fpregset, mips64_fill_fpregset)
6454 (mips_linux_o32_sigframe_init): Likewise.
6455 * m32r-tdep.c (m32r_memory_insert_breakpoint)
6456 (m32r_memory_remove_breakpoint, m32r_breakpoint_from_pc): Likewise.
6457 * libunwind-frame.c (libunwind_frame_cache, libunwind_frame_sniffer)
6458 (libunwind_sigtramp_frame_sniffer, libunwind_get_reg_special): Likewise.
6459 * iq2000-tdep.c (iq2000_breakpoint_from_pc): Likewise.
6460 * coffread.c (process_coff_symbol): Likewise.
6461 * arm-tdep.c (convert_from_extended, convert_to_extended)
6462 (gdb_print_insn_arm): Likewise.
6464 2007-05-31 Markus Deuling <deuling@de.ibm.com>
6466 * gdbarch.sh (NUM_REGS): Replace by gdbarch_num_regs.
6467 * i386-tdep.c (i386_dbx_reg_to_regnum)
6468 (i386_svr4_reg_to_regnum): Likewise.
6469 * inf-ptrace.c (inf_ptrace_fetch_registers)
6470 (inf_ptrace_store_registers): Likewise.
6471 * corelow.c (get_core_registers): Likewise.
6472 * i386-linux-nat.c (supply_gregset, fill_gregset)
6473 (i386_linux_fetch_inferior_registers)
6474 (i386_linux_store_inferior_registers): Likewise.
6475 * remote.c (init_remote_state,packet_reg_from_regnum)
6476 (packet_reg_from_pnum,process_g_packet,remote_fetch_registers)
6477 (remote_prepare_to_store,store_registers_using_G)
6478 (remote_store_registers,remote_arch_state): Likewise.
6479 * tracepoint.c (encode_actions): Likewise.
6480 * mi/mi-main.c (mi_cmd_data_list_register_names)
6481 (mi_cmd_data_list_changed_registers,mi_cmd_data_list_register_values)
6482 (mi_cmd_data_write_register_values): Likewise.
6483 * tui/tui-regs.c (tui_show_register_group)
6484 (tui_show_register_group): Likewise.
6485 * xtensa-tdep.h (FP_ALIAS): Likewise.
6486 * xtensa-tdep.c (xtensa_register_name,xtensa_register_type)
6487 (xtensa_reg_to_regnum,xtensa_pseudo_register_read)
6488 (xtensa_pseudo_register_write,xtensa_register_reggroup_p): Likewise.
6489 * win32-nat.c (do_win32_fetch_inferior_registers)
6490 (do_win32_store_inferior_registers,fetch_elf_core_registers
6491 * user-regs.h: Likewise (comment).
6492 * user-regs.c (user_reg, user_reg_map_name_to_regnum): Likewise.
6493 * trad-frame.c (trad_frame_alloc_saved_regs): Likewise.
6494 * target-descriptions.h: Likewise (comment).
6495 * target-descriptions.c (tdesc_use_registers): Likewise (comment).
6496 * target.c (debug_print_register): Likewise.
6497 * stack.c (frame_info): Likewise.
6498 * stabsread.c (define_symbol): Likewise.
6499 * sh64-tdep.c (sh64_do_pseudo_register,sh64_print_register)
6500 (sh64_media_print_registers_info)
6501 (sh64_compact_print_registers_info): Likewise.
6502 * rs6000-tdep.c (rs6000_register_sim_regno): Likewise.
6503 * rs6000-nat.c (fetch_register,store_register): Likewise.
6504 * remote-sim.c (one2one_register_sim_regno,gdbsim_fetch_register)
6505 (gdbsim_fetch_register,gdbsim_store_register): Likewise.
6506 * remote-mips.c (mips_fetch_registers,mips_store_registers): Likewise.
6507 * remote-m32r-sdi.c (m32r_fetch_registers)
6508 (m32r_store_registers): Likewise.
6509 * reggroups.c (default_register_reggroup_p): Likewise.
6510 * regcache.c (init_regcache_descr,register_size,regcache,regcache_save)
6511 (regcache_restore,regcache_dump): Likewise.
6512 * monitor.c (monitor_fetch_registers,monitor_store_registers): Likewise.
6513 * mips-tdep.c (mips_xfer_register,mips_register_name)
6514 (mips_register_reggroup_p,mips_pseudo_register_read)
6515 (mips_pseudo_register_write,mips_convert_register_p,mips_register_type)
6516 (mips_unwind_pc,mips_unwind_sp,mips_unwind_dummy_id,set_reg_offset)
6517 (mips16_scan_prologue,mips_insn16_frame_cache,reset_saved_regs)
6518 (mips32_scan_prologue,mips_insn32_frame_cache,read_next_frame_reg)
6519 (mips_n32n64_return_value,mips_o32_return_value,mips_o64_return_value)
6520 (print_gp_register_row,mips_print_registers_info)
6521 (mips_stab_reg_to_regnum,mips_dwarf_dwarf2_ecoff_reg_to_regnum)
6522 (mips_register_sim_regno): Likewise.
6523 * mips-linux-tdep.c (mips_linux_o32_sigframe_init)
6524 (mips_linux_n32n64_sigframe_init): Likewise.
6525 * mips-linux-nat.c (mips_linux_register_addr)
6526 (mips64_linux_register_addr): Likewise.
6527 * findvar.c (value_of_register): Likewise.
6528 * infcmd.c (default_print_registers_info,registers_info)
6529 (print_vector_info,print_float_info): Likewise.
6530 * mips64obsd-tdep.c (mips64obsd_sigframe_init): Likewise.
6531 * inf-child.c (inf_child_fetch_inferior_registers): Likewise.
6532 * m68k-tdep.c (m68k_dwarf_reg_to_regnum): Likewise.
6533 * m68hc11-tdep.c (m68hc11_frame_unwind_cache(: Likewise.
6534 * m32r-tdep.c (m32r_frame_unwind_cache): Likewise.
6535 * ia64-linux-nat.c (ia64_register_addr,ia64_cannot_fetch_register)
6536 (ia64_cannot_store_register,ia64_linux_fetch_registers)
6537 (ia64_linux_store_registers): Likewise.
6538 * hpux-thread.c (hpux_thread_fetch_registers)
6539 (hpux_thread_store_registers): Likewise.
6540 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM,E_PSEUDO_EXR_REGNUM)
6541 (h8300_init_frame_cache,h8300_frame_cache,h8300_frame_prev_register)
6542 (h8300_register_type): Likewise.
6543 * dwarf2-frame.c (dwarf2_frame_cache)
6544 (dwarf2_frame_state_alloc_regs): Likewise.
6545 * cris-tdep.c (cris_register_size,cris_cannot_fetch_register)
6546 (cris_cannot_store_register,crisv32_cannot_fetch_register)
6547 (crisv32_cannot_store_register,cris_register_name): Likewise.
6548 * avr-tdep.c (avr_frame_unwind_cache): Likewise.
6549 * arch-utils.c (legacy_register_sim_regno)
6550 (legacy_virtual_frame_pointer): Likewise.
6551 * arm-tdep.c (arm_make_prologue_cache,arm_register_sim_regno):Likewise.
6552 * arm-tdep.h: Likewise (comment).
6553 * frv-tdep.c (frv_register_sim_regno): Likewise.
6554 * m68klinux-nat.c (old_fetch_inferior_registers)
6555 (old_store_inferior_registers): Likewise.
6556 * m32c-tdep.c (m32c_virtual_frame_pointer): Likewise.
6557 * irix5-nat.c (fetch_core_registers): Likewise.
6558 * hppa-tdep.c (hppa_frame_cache): Likewise.
6559 * hppa-linux-nat.c (hppa_linux_register_addr)
6560 (hppa_linux_fetch_inferior_registers)
6561 (hppa_linux_store_inferior_registers): Likewise.
6562 * hppa-hpux-nat.c (hppa_hpux_fetch_inferior_registers)
6563 (hppa_hpux_store_inferior_registers): Likewise.
6564 * amd64-nat.c (amd64_native_gregset_reg_offset)
6565 (amd64_supply_native_gregset,amd64_collect_native_gregset): Likewise.
6566 * dbug-rom.c (dbug_regname): Likewise.
6567 * m68hc11-tdep.c (m68hc11_frame_unwind_cache)
6568 (HARD_PAGE_REGNUM (comment)): Likewise.
6569 * gdbarch.sh (NUM_PSEUDO_REGS): Replace by gdbarch_num_pseudo_regs.
6570 * i386-tdep.c (i386_dbx_reg_to_regnum)
6571 (i386_svr4_reg_to_regnum): Likewise.
6572 * mi/mi-main.c (mi_cmd_data_list_register_names)
6573 (mi_cmd_data_list_changed_registers,mi_cmd_data_list_register_values)
6574 (mi_cmd_data_write_register_values): Likewise.
6575 * gdbarch.c, gdbarch.h: Regenerate.
6576 * tui/tui-regs.c (tui_show_register_group): Likewise.
6577 * xtensa-tdep.h (FP_ALIAS): Likewise.
6578 * user-regs.h: Likewise (comment).
6579 * user-regs.c (user_reg, user_reg_map_name_to_regnum): Likewise.
6580 * trad-frame.c (trad_frame_alloc_saved_regs): Likewise.
6581 * target-descriptions.h: Likewise (comment).
6582 * target.c (debug_print_register): Likewise.
6583 * stack.c (frame_info): Likewise.
6584 * stabsread.c (define_symbol): Likewise.
6585 * sh64-tdep.c (sh64_print_register,sh64_media_print_registers_info)
6586 (sh64_compact_print_registers_info): Likewise.
6587 * rs6000-tdep.c (rs6000_register_sim_regno): Likewise.
6588 * regcache.c (init_regcache_descr,register_size,regcache,regcache_save
6589 (regcache_restore,regcache_dump): Likewise.
6590 * mips-tdep.c (print_gp_register_row,mips_print_registers_info)
6591 (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
6592 (mips_stab_reg_to_regnum): 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 * m68k-tdep.c (m68k_dwarf_reg_to_regnum): Likewise.
6597 * h8300-tdep.c (h8300_register_type): Likewise.
6598 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
6599 * frame.h (SIZEOF_FRAME_SAVED_REGS): Likewise.
6600 * xtensa-tdep.c (xtensa_register_type,xtensa_reg_to_regnum)
6601 (xtensa_pseudo_register_read,xtensa_pseudo_register_write): Likewise.
6602 * parse.c: Remove comment.
6603 * gdbarch.c, gdbarch.h: Regenerate
6605 2007-05-31 Markus Deuling <deuling@de.ibm.com>
6607 * gdbarch.sh (CANNOT_FETCH_REGISTER): Replace by
6608 gdbarch_cannot_fetch_register.
6609 * alpha-nat.c (fetch_osf_core_registers): Likewise.
6610 * hppa-linux-nat.c (fetch_register): Likewise.
6611 * inf-ptrace.c (inf_ptrace_fetch_register): Likewise.
6612 * m68klinux-nat.c (fetch_register): Likewise.
6613 * mipsnbsd-tdep.c (mipsnbsd_supply_reg, mipsnbsd_supply_fpreg):
6615 * gdbarch.sh (CANNOT_STORE_REGISTER): Replace by
6616 gdbarch_cannot_store_register.
6617 * hppa-linux-nat.c (store_register): Likewise.
6618 * inf-ptrace.c (inf_ptrace_store_register): Likewise.
6619 * regcache.c (regcache_raw_write): Likewise.
6620 * m68klinux-nat.c (store_register): Likewise.
6621 * mipsnbsd-tdep.c (mipsnbsd_fill_reg, mipsnbsd_fill_fpreg): Likewise.
6622 * gdbarch.c, gdbarch.h: Regenerate.
6624 2007-05-31 Markus Deuling <deuling@de.ibm.com>
6626 * gdbarch.sh (TARGET_OSABI): Replace by gdbarch_osabi.
6627 * gdbarch.c, gdbarch.h: Regenerate.
6629 2007-05-31 Markus Deuling <deuling@de.ibm.com>
6631 * gdbarch.sh (TARGET_CHAR_SIGNED): Replace by gdbarch_char_signed.
6632 * gdbtypes.c (build_gdbtypes, gdbtypes_post_init): Likewise.
6633 * gdbarch.c, gdbarch.h: Regenerate.
6635 2007-05-31 Markus Deuling <deuling@de.ibm.com>
6637 * gdbarch.sh (TARGET_BYTE_ORDER): Replace by gdbarch_byte_order.
6638 * ax-gdb.c (gen_bitfield_ref): Likewise.
6639 * mi/mi-main.c (get_register): Likewise.
6640 * findvar.c (default_value_from_register, extract_signed_integer)
6641 (extract_unsigned_integer, extract_long_unsigned_integer)
6642 (store_signed_integer, store_unsigned_integer): Likewise.
6643 * regcache.c (regcache_dump): Likewise.
6644 * value.c (lookup_internalvar, value_of_internalvar)
6645 (set_internalvar): Likewise.
6647 * valprint.c (print_binary_chars, print_octal_chars)
6648 (print_decimal_chars, print_hex_chars, print_char_chars): Likewise.
6649 * infcmd.c (default_print_registers_info): Likewise.
6650 * arch-utils.c (selected_byte_order, show_endian): Likewise.
6651 * stabsread.c (define_symbol): Likewise.
6652 * doublest.c (floatformat_from_length, floatformat_from_type)
6653 (extract_typed_floating, store_typed_floating): Likewise.
6654 * gdbarch.c, gdbarch.h: Regenerate.
6656 2007-05-31 Markus Deuling <deuling@de.ibm.com>
6658 * gdbarch.sh (CALL_DUMMY_LOCATION): Replace by
6659 gdbarch_call_dummy_location.
6660 * infcall.c (call_function_by_hand): Likewise.
6661 * inferior.h: Change comment.
6662 * arch-utils.c: Change comment.
6663 * gdbarch.c, gdbarch.h: Regenerate.
6665 2007-05-28 Joel Brobecker <brobecker@adacore.com>
6667 * solib-aix5.c: Delete.
6668 * Makefile.in (solib-aix5.o): Delete rule.
6670 2007-05-23 Daniel Jacobowitz <dan@codesourcery.com>
6672 * breakpoint.h (enum bpstat_what_main_action): Remove
6673 BPSTAT_WHAT_THROUGH_SIGTRAMP.
6674 * infrun.c (process_event_stop_test): Do not check for it.
6676 2007-05-22 Chris Dearman <chris@mips.com>
6677 Maciej W. Rozycki <macro@mips.com>
6679 * ser-unix.c (show_serial_hwflow): New function.
6680 (hardwire_raw): Add hardware flow control support.
6681 (_initialize_ser_hardwire): Add "set/show remoteflow".
6682 * Makefile.in (ser-unix.o): Depend on $(gdbcmd_h).
6683 * NEWS: Document the new command.
6685 2007-05-21 Ulrich Weigand <uweigand@de.ibm.com>
6687 * config/i386/tm-linux.h (sys_quotactl): Do not define.
6688 * configure.ac (sys_quotactl, START_INFERIOR_TRAPS_EXPECTED): Do not
6689 define for i[[3456]]86-*-linux* native configurations.
6690 * config.in, configure: Regenerate.
6692 2007-05-19 Joel Brobecker <brobecker@adacore.com>
6694 * rs6000-nat.c (xcoff_relocate_symtab): Do nothing if debugging
6695 a core file. Add comment in the function description.
6697 2007-05-18 Caroline Tice <ctice@apple.com>
6699 * c-valprint.c (c_value_print): If the initialized field of the
6700 value struct is 0, print out "[uninitialized]" before the value.
6701 * dwarf2expr.c (execute_stack_op): Initialize ctx->initialized field;
6702 allow DW_OP_GNU_uninit as legal op following a DW_OP_reg op or a
6703 DW_OP_regx op; add case for DW_OP_GNU_uninit and update
6704 ctx->initialized appropriately. Verify no location op follows
6706 * dwarf2expr.h (struct dwarf_expr_context): New field, initialized.
6707 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Add call to
6708 set_value_initialized.
6709 * dwarf2read.c (dwarf_stack_op_name): Add case for DW_OP_GNU_uninit.
6710 (decode_locdesc): Add case for DW_OP_GNU_uninit.
6711 * value.c (struct value): New field, initialized.
6712 (allocate_value): Initialize new field.
6713 (set_value_initialized): New function.
6714 (value_initialized): New function.
6715 * value.h (value_initialized): New extern declaration.
6716 (set_value_initialized): Likewise.
6718 2007-05-18 Caroline Tice <ctice@apple.com>
6720 * MAINTAINERS (Write After Approval): Add self.
6722 2007-05-17 Joel Brobecker <brobecker@adacore.com>
6724 * gdbtypes.c (make_reference_type): Preserve the type chain
6725 and set the length of all the variants of the pointer type.
6727 2007-05-17 Joel Brobecker <brobecker@adacore.com>
6729 * gdbtypes.c (make_pointer_type): Preserve the pointer type chain
6730 and set the length of all the variants of the pointer type.
6732 2007-05-17 Maciej W. Rozycki <macro@mips.com>
6734 * mips-tdep.c (mips_n32n64_push_dummy_call): Fix and reformat a
6736 (mips_o64_push_dummy_call): Reformat a comment.
6738 2007-05-17 Qinwei <qinwei@sunnorth.com.cn>
6740 * score-tdep.c (score_frame_cache->fp, score_analyze_prologue)
6741 (score_prologue_frame_base_address): Return fp to keep gdb print
6742 local variables correctly when debugging information is stabs.
6744 (score_analyze_prologue): For software watchpoint, fetch all the
6745 instructions from range [startaddr, pc] once and identify them locally
6746 to reduce memory access.
6747 (score_malloc_and_get_memblock, score_free_memblock)
6748 (score_adjust_memblock_ptr): New functions.
6749 (score_fetch_inst): Fetch single instruction or mutiple instructions.
6751 (score_target_can_use_watch, score_stopped_by_watch)
6752 (score_target_insert_watchpoint, score_target_remove_watchpoint)
6753 (score_target_insert_hw_breakpoint, score_target_remove_hw_breakpoint):
6754 New functions for remote & local hw-watchpoint and hw-breakpoint.
6756 2007-05-16 Alfred M. Szmidt <ams@gnu.org>
6758 * reply_mig_hack.awk: Check for `auto const mach_msg_type_t'
6759 declarations as well.
6761 2007-05-16 Ulrich Weigand <uweigand@de.ibm.com>
6763 * config/arm/embed.mt (DEPRECATED_TM_FILE): Set to tm-arm.h.
6764 * config/arm/tm-embed.h: Delete file.
6766 * arm-tdep.h (arm_software_single_step): Declare.
6767 * arm-tdep.c (arm_software_single_step): Make global.
6768 (arm_gdbarch_init): Move set_gdbarch_software_single_step call
6770 * arm-linux-tdep.c (arm_linux_init_abi): ... here ...
6771 * armnbsd-tdep.c (arm_netbsd_init_abi_common): ... here ...
6772 * armobsd-tdep.c (armobsd_init_abi): ... here ...
6773 * arm-wince-tdep.c (arm_wince_init_abi): ... and here.
6775 * arm-tdep.c (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT): No longer
6776 allow defines to be overriden by TM file.
6777 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Likewise. Also,
6778 change default to {0xbe,0xbe}.
6779 * armobsd-tdep.c (arm_obsd_thumb_le_breakpoint,
6780 arm_obsd_thumb_be_breakpoint): New global variables.
6781 (armobsd_init_abi): Override tdep->thumb_breakpoint and
6782 tdep->thumb_breakpoint_size.
6783 * arm-wince-tdep.c (arm_wince_thumb_le_breakpoint): New variable.
6784 (arm_wince_init_abi): Override tdep->thumb_breakpoint and
6785 tdep->thumb_breakpoint_size.
6787 * arm-tdep.c (arm_gdbarch_init): Add set_gdbarch_skip_trampoline_code.
6789 2007-05-16 Daniel Jacobowitz <dan@codesourcery.com>
6791 * NEWS: Mention removed "set mips stack-arg-size" and "set mips
6794 * mips-tdep.c (MIPS32_REGSIZE, MIPS64_REGSIZE): New constants.
6795 (size_auto, size_32, size_64, size_enums, mips_abi_regsize_string)
6796 (mips_stack_argsize_string, mips_stack_argsize): Delete.
6797 (mips_abi_regsize): Simplify.
6798 (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call)
6799 (mips_n32n64_return_value, mips_o32_push_dummy_call)
6800 (mips_o32_return_value, mips_o64_push_dummy_call)
6801 (mips_o64_return_value): Propogate constant register sizes. Use the
6802 ABI register size instead of mips_stack_argsize.
6803 (mips_dump_tdep): Don't print mips_stack_argsize.
6804 (_initialize_mips_tdep): Remove saved-gpreg-size and stack-arg-size
6807 2007-05-16 Daniel Jacobowitz <dan@codesourcery.com>
6809 * config/mips/linux.mt (DEPRECATED_TM_FILE): Delete.
6810 * config/mips/tm-linux.h: Delete.
6811 * mips-linux-tdep.c (mips_svr4_so_ops): New.
6812 (mips_linux_in_dynsym_resolve_code): Make static. Use
6813 svr4_in_dynsym_resolve_code.
6814 (mips_linux_init_abi): Initialize mips_svr4_so_ops. Call
6816 * solib-svr4.c (svr4_in_dynsym_resolve_code, svr4_so_ops): Make
6818 * solib-svr4.h (svr4_so_ops, svr4_in_dynsym_resolve_code): Declare.
6819 * Makefile.in (mips-linux-tdep.o): Update.
6820 * solib.c (set_solib_ops): New.
6821 (current_target_so_ops): Update comment.
6822 * solib.h (set_solib_ops): New prototype.
6824 2007-05-16 Chris Dearman <chris@mips.com>
6826 * printcmd.c (do_examine): Fix typos in a comment.
6828 2007-05-16 Richard Sandiford <richard@codesourcery.com>
6830 * configure.ac: Allow sysroots to be relocated under $prefix as
6831 well as $exec_prefix.
6832 * configure: Regenerate.
6834 2007-05-14 Ulrich Weigand <uweigand@de.ibm.com>
6836 * hppa-hpux-tdep.c: Do not include <dl.h> or <machine/save_state.h>.
6837 (offsetof): Do not define.
6838 (find_stub_with_shl_get): Use numerical value 3 instead of
6839 symbolic value TYPE_PROCEDURE.
6841 2007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
6843 * gdb_proc_service.h (paddr_t): Delete typedef.
6844 * proc-service.c (ps_addr_to_core_addr, core_addr_to_ps_addr): New.
6845 (ps_xfer_memory): Take a psaddr_t. Use ps_addr_to_core_addr.
6846 (ps_pglobal_lookup): Take a psaddr_t *. Use core_addr_to_ps_addr.
6847 (ps_pdread, ps_pdwrite, ps_ptread, ps_ptwrite): Take a psaddr_t.
6848 * sol-thread.c (gdb_ps_addr_t): Use psaddr_t instead of paddr_t.
6849 * Makefile.in (proc-service.o): Update.
6851 2007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
6853 * Makefile.in (mips-tdep.o): Update.
6854 * mips-tdep.c (mips_gdbarch_init): Register the dwarf2 CFI
6857 2007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
6859 * dwarf2-frame.c (dwarf2_frame_prev_register): Use pack_long
6860 instead of store_typed_address.
6861 * value.c (pack_long): New.
6862 (value_from_longest): Use it.
6863 * value.h (pack_long): New prototype.
6865 2007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
6867 * dwarf2-frame.c (read_encoded_value): Correct typo. Use
6868 DW_EH_PE_signed if appropriate.
6870 2007-05-14 Paul Brook <paul@codesourcery.com>
6871 Daniel Jacobowitz <dan@codesourcery.com>
6873 * dwarf2read.c (dwarf2_debug_line_missing_file_complaint): New
6875 (dwarf_decode_lines): Check for line info without a file.
6877 2007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
6879 * linux-thread-db.c (thread_db_pid_to_str): Print thread IDs
6882 2007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
6884 * jv-exp.y (push_fieldnames): Use STRUCTOP_PTR instead of
6886 * jv-lang.c (evaluate_subexp_java): Handle STRUCTOP_PTR instead of
6888 * jv-typeprint.c (java_print_type): Do not crash on NULL varstring.
6890 2007-05-14 Ulrich Weigand <uweigand@de.ibm.com>
6892 * gdbarch.sh (read_sp): Remove.
6893 * gdbarch.c, gdbarch.h: Regenerate.
6894 * frame.c (frame_sp_unwind): Do not call TARGET_READ_SP.
6896 * avr-tdep.c (avr_read_sp): Remove.
6897 (avr_unwind_sp): New function.
6898 (avr_gdbarch_init): Install unwind_sp instead of read_sp callback.
6899 * mips-tdep.c (mips_read_sp): Remove.
6900 (mips_unwind_sp): New function.
6901 (mips_gdbarch_init): Install unwind_sp instead of read_sp callback.
6902 * score-tdep.c (score_read_unsigned_register): Remove.
6903 (score_read_sp): Remove.
6904 (score_unwind_sp): New function.
6905 (score_gdbarch_init): Install unwind_sp instead of read_sp callback.
6907 2007-05-14 Maxim Grigoriev <maxim2405@gmail.com>
6909 * buildsym.c (start_subfile): Handle absolute pathnames
6910 while comparing subfile names.
6912 2007-05-13 Ulrich Weigand <uweigand@de.ibm.com>
6914 * hppa-hpux-tdep.c: Include "regcache.h".
6915 * hppa-linux-tdep.c: Likewise.
6916 * hppa-tdep.c: Include "gdb_stdint.h".
6917 (find_unwind_entry): Cast host pointer to uintptr_t before passing
6919 * Makefile.in: Update dependencies.
6921 2007-05-13 Ulrich Weigand <uweigand@de.ibm.com>
6923 * blockframe.c: Remove obsolete comments.
6924 * alpha-nat.c (fetch_osf_core_registers): Update comment.
6925 * arm-tdep.h (enum gdb_regnum): Remove obsolete part of comment.
6926 * hppa-tdep.h (enum hppa_regnum): Likewise.
6927 * mips-tdep.h: Likewise.
6928 * m68hc11-tdep.c: Likewise.
6930 2007-05-13 Ulrich Weigand <uweigand@de.ibm.com>
6932 * inferior.h (read_sp): Remove prototype.
6933 * regcache.c (read_sp): Remove.
6934 * gcore.c (derive_stack_segment): Use get_frame_sp instead of read_sp.
6935 * infcall.c (call_function_by_hand): Likewise.
6936 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Use regcache instead
6938 * rs6000-tdep.c (rs6000_push_dummy_call): Likewise.
6940 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
6942 * i386-linux-nat.c (i386_linux_resume): Use regcache functions
6943 instead of read_register and read_register_pid.
6945 * ia64-linux-nat.c (enable_watchpoints_in_psr): Use REGCACHE
6946 argument instead of PTID. Use regcache functions instead of
6948 (ia64_linux_insert_watchpoint): Update call.
6949 (ia64_linux_stopped_data_address): Use regcache functions
6950 instead of read_register_pid and write_register_pid.
6952 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
6954 * libunwind-frame.h (struct regcache): Add forward declaration.
6955 (libunwind_get_reg_special): Add REGCACHE argument.
6956 * libunwind-frame.c (libunwind_get_reg_special): Add REGCACHE
6957 argument. Pass it to unw_init_remote_p.
6959 * ia64-tdep.c (ia64_pseudo_register_read): Pass regcache to
6960 libunwind_get_reg_special.
6961 (ia64_access_reg): Remove "write" case.
6962 (ia64_access_fpreg): Likewise. Read from next_frame passed
6963 as callback argument instead of from current_regcache.
6964 (ia64_access_rse_reg): Remove "write" case. Read from regcache
6965 passed as callback argument instead of from current_regcache.
6966 (ia64_access_rse_fpreg): New function.
6967 (ia64_unw_rse_acce): Use it instead of ia64_access_fpreg.
6969 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
6971 * NEWS: Mention SPU overlay support.
6973 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
6975 * spu-tdep.c (spu_frame_unwind_cache): Add comment.
6977 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
6979 * breakpoint.c (remove_breakpoint): Do not remove software
6980 breakpoints in unmapped overlay sections.
6982 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
6984 * spu-tdep.c: Include "observer.h".
6985 (spu_frame_unwind_cache): Unwind PC through overlay return stubs.
6986 (spu_overlay_data): New variable.
6987 (struct spu_overlay_table): New type.
6988 (spu_get_overlay_table, spu_overlay_update_osect, spu_overlay_update,
6989 spu_overlay_new_objfile): New functions.
6990 (spu_gdbarch_init): Install spu_overlay_update.
6991 (_initialize_spu_tdep): Register spu_overlay_new_objfile,
6992 allocate spu_overlay_data objfile data.
6994 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
6996 * gdbarch.sh (overlay_update): New gdbarch function.
6997 (struct obj_section): Add forward declaration.
6998 * gdbarch.c, gdbarch.h: Regenerate.
7000 * symfile.c (simple_overlay_update): Make global.
7001 (target_overlay_update): Remove variable.
7002 (overlay_is_mapped): Call gdbarch_overlay_update instead of
7003 target_overlay_update.
7004 (overlay_load_command): Likewise.
7005 * symfile.h (struct obj_section): Add forward declaration.
7006 (simple_overlay_update): Add prototype.
7008 * m32r-tdep.c (m32r_gdbarch_init): Install simple_overlay_update.
7010 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
7012 * observer.sh: Add "struct objfile" forward declaration.
7013 * target.h (deprecated_target_new_objfile_hook): Remove.
7014 * symfile.c (deprecated_target_new_objfile_hook): Remove.
7015 (clear_symtab_users): Call observer_notify_new_objfile.
7016 (symbol_file_add_with_addrs_or_offsets): Likewise.
7017 * rs6000-nat.c: Include "observer.h".
7018 (vmap_ldinfo): Call observer_notify_new_objfile.
7019 (xcoff_relocate_core): Likewise.
7020 * remote.c (remote_new_objfile_chain): Remove.
7021 (remote_new_objfile): Do not call remote_new_objfile_chain.
7022 (_initialize_remote): Use observer_attach_new_objfile.
7023 * tui/tui-hooks.c (tui_target_new_objfile_chain): Remove.
7024 (tui_new_objfile_hook): Do not call tui_target_new_objfile_chain.
7025 (_initialize_tui_hooks): Use observer_attach_new_objfile.
7026 * aix-thread.c: Include "observer.h".
7027 (target_new_objfile_chain): Remove.
7028 (new_objfile): Do not call target_new_objfile_chain.
7029 (_initialize_aix_thread): Use observer_attach_new_objfile.
7030 * hpux-thread.c: Include "observer.h"
7031 (target_new_objfile_chain): Remove.
7032 (hpux_thread_new_objfile): Make static. Do not call
7033 target_new_objfile_chain.
7034 (_initialize_hpux_thread): Use observer_attach_new_objfile.
7035 * linux-thread-db.c: Include "observer.h".
7036 (target_new_objfile_chain): Remove.
7037 (thread_db_new_objfile): Do not call target_new_objfile_chain.
7038 (_initialize_thread_db): Use observer_attach_new_objfile.
7039 * sol-thread.c: Include "observer.h".
7040 (target_new_objfile_chain): Remove.
7041 (sol_thread_new_objfile): Make static. Do not call
7042 target_new_objfile_chain.
7043 (_initialize_sol_thread): Use observer_attach_new_objfile.
7044 * Makefile.in (aix-thread.o, hpux-thread.o, linux-thread-db.o,
7045 rs6000-nat.o, sol-thread.o, tui-hooks.o): Add dependency on
7048 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
7050 * gdbarch.sh (remote_translate_xfer_address): Remove.
7051 * gdbarch.h, gdbarch.c: Regenerate.
7052 * arch-utils.c (generic_remote_translate_xfer_address): Remove.
7053 * arch-utils.h (generic_remote_translate_xfer_address): Remove.
7054 * remote.c (remote_write_bytes_aux, remote_read_bytes): Do not
7055 call gdbarch_remote_translate_xfer_address.
7056 * frv-tdep.c (frv_gdbarch_init): Do not call
7057 set_gdbarch_remote_translate_xfer_address.
7058 * ia64-tdep.c (ia64_remote_translate_xfer_address): Remove.
7059 (ia64_gdbarch_init): Do not install it.
7061 2007-05-11 Bob Wilson <bob.wilson@acm.org>
7063 * NEWS: Mention change in handling the -tui option.
7065 2007-05-11 Daniel Jacobowitz <dan@codesourcery.com>
7067 * linux-thread-db.c (enable_thread_event_reporting): Fix comment
7070 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
7072 * breakpoint.c (single_step_breakpoint_inserted_here_p): New function.
7073 (breakpoint_inserted_here_p): Call it.
7074 (software_breakpoint_inserted_here_p): Likewise.
7076 2007-05-10 Ulrich Weigand <uweigand@de.ibm.com>
7078 * inf-ptrace.c (inf_ptrace_register_u_offset): Adapt parameter list.
7079 (inf_ptrace_fetch_register): Add register_u_offset callback parameters
7080 GDBARCH and STORE_P. Handle callback (CORE_ADDR) -1 return value.
7081 (inf_ptrace_store_register): Likewise.
7082 (inf_ptrace_trad_target): Adapt register_u_offset parameter list.
7083 * inf-ptrace.h (inf_ptrace_trad_target): Likewise.
7085 * vax-nat.c (vax_register_u_offset): Adapt parameter list.
7087 * linux-nat.c (linux_trad_target): Adapt parameter list.
7088 * linux-nat.h (linux_trad_target): Likewise.
7090 * alpha-linux-nat.c (alpha_linux_register_u_offset): Adapt parameters.
7092 * mips-linux-nat.c (mips_linux_cannot_fetch_register): Remove.
7093 (mips_linux_cannot_store_register): Likewise.
7094 (mips_linux_register_addr): Add GDBARCH and STORE_P parameters.
7095 Return (CORE_ADDR) -1 for registers that cannot be fetched or
7096 stored via ptrace. Use GDBARCH instead of current_gdbarch.
7097 (mips64_linux_register_addr): Likewise.
7098 (mips_linux_register_u_offset): Adapt parameter list. Pass
7099 GDBARCH and STORE_P on to mips{64}_linux_register_addr.
7101 * config/mips/linux.mh (NAT_FILE): Set to config/nm-linux.h.
7102 * config/mips/nm-linux.h: Delete file.
7104 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
7106 * remote.c (remote_detach): Error out if remote can't detach.
7108 2007-05-10 Luis Machado <luisgpm@br.ibm.com>
7110 * rs6000-tdep.c: (deal_with_atomic_sequence) Stores branch
7111 instruction's opcode in the "opcode" variable and declares new
7112 variable "closing_insn".
7114 2007-05-10 Chris Dearman <chris@mips.com>
7115 Maciej W. Rozycki <macro@mips.com>
7117 * cli/cli-setshow.c (do_setshow_command): Remove trailing
7118 whitespace when setting a var_filename.
7120 2007-05-09 Bob Wilson <bob.wilson@acm.org>
7122 * main.c (captured_main): Recognize -tui option and print an error
7123 message when the TUI is not configured.
7125 2007-05-09 Andreas Schwab <schwab@suse.de>
7127 * mipsnbsd-tdep.c (mipsnbsd_ilp32_fetch_link_map_offsets): Don't
7128 set removed members.
7129 (mipsnbsd_lp64_fetch_link_map_offsets): Likewise.
7131 2007-05-08 Ulrich Weigand <uweigand@de.ibm.com>
7133 * gdbarch.sh (deprecated_store_struct_return): Remove.
7134 * gdbarch.c, gdbarch.h: Regenerate.
7135 * frv-tdep.c (frv_store_struct_return): Remove.
7136 (frv_gdbarch_init): Do not install it.
7138 2007-05-08 Ulrich Weigand <uweigand@de.ibm.com>
7140 * config/i386/nm-i386sol2.h (USE_PROC_FS): Do not define.
7141 * config/mips/nm-irix5.h (USE_PROC_FS): Do not define.
7142 * config/nm-linux.h (USE_PROC_FS): Do not undefine.
7144 2007-05-08 Ulrich Weigand <uweigand@de.ibm.com>
7146 * spu-linux-nat.c: Include "gdb_stdint.h".
7147 (fetch_ppc_register): Use uint64_t instead of unsigned long long.
7148 (fetch_ppc_memory_1, store_ppc_memory_1): Likewise.
7149 (fetch_ppc_memory, store_ppc_memory): Fix coding style.
7150 (spu_symbol_file_add_from_memory): Use strtoulst instead of sscanf.
7151 (spu_child_wait): Mark up string for translation.
7153 2007-05-08 Paul Gilliam <pgilliam@us.ibm.com>
7154 Luis Machado <luisgpm@br.ibm.com>
7156 * rs6000-tdep.c: (LWARX_MASK, LWARX_INSTRUCTION, LDARX_INSTRUCTION,
7157 STWCX_MASK, STWCX_INSTRUCTION, STDCX_INSTRUCTION, BC_MASK,
7158 BC_INSTRUCTION): Define.
7159 (deal_with_atomic_sequence): New function.
7160 (rs6000_software_single_step): Call deal_with_atomic_sequence.
7161 (rs6000_gdbarch_init): Install deal_with_atomic_sequence as
7162 gdbarch_software_single_step routine.
7164 2007-05-07 Ulrich Weigand <uweigand@de.ibm.com>
7166 * spu-linux-nat.c (fetch_ppc_register, fetch_ppc_memory_1,
7167 store_ppc_memory_1, fetch_ppc_memory, store_ppc_memory,
7168 parse_spufs_run, spu_bfd_iovec_pread, spu_bfd_open,
7169 spu_symbol_file_add_from_memory, spu_child_post_startup_inferior,
7170 spu_child_post_attach, spu_fetch_inferior_registers,
7171 spu_store_inferior_registers, spu_xfer_partial): Store PPE-side
7172 memory addresses as ULONGEST, not CORE_ADDR.
7174 2007-05-07 Ulrich Weigand <uweigand@de.ibm.com>
7176 * gdbarch.sh: Add skip_permanent_breakpoint callback.
7177 * gdbarch.h, gdbarch.c: Regenerate.
7179 * infrun.c (SKIP_PERMANENT_BREAKPOINT): Remove default definition.
7180 (resume): Call gdbarch_skip_permanent_breakpoint instead of
7181 SKIP_PERMANENT_BREAKPOINT. Inline default case.
7183 * hppa-hpux-tdep.c (hppa_skip_permanent_breakpoint): Make static.
7184 Add REGCACHE argument. Use it instead of read/write_register.
7185 (hppa_hpux_init_abi): Install hppa_skip_permanent_breakpoint.
7187 * config/pa/tm-hppah.h: Delete file.
7188 * config/pa/hppa64.mt (DEPRECATED_TM_FILE): Set to tm-hppa.h.
7189 * config/pa/hppahpux.mt (DEPRECATED_TM_FILE): Likewise.
7191 2007-05-07 Daniel Jacobowitz <dan@codesourcery.com>
7193 * Makefile.in (c-lang.o, gnu-v3-abi.o): Update.
7194 * NEWS: Mention improved C++ thunk support.
7195 * c-lang.c (cplus_language_defn): Mention cplus_skip_trampoline.
7196 * cp-abi.c (cplus_skip_trampoline): New.
7197 * cp-abi.h (cplus_skip_trampoline): New prototype.
7198 (struct cp_abi_ops): Add skip_trampoline member.
7199 * gnu-v3-abi.c (gnuv3_skip_trampoline): New.
7200 (init_gnuv3_ops): Set skip_trampoline.
7202 2007-05-06 Daniel Jacobowitz <dan@codesourcery.com>
7204 * rs6000-tdep.c (struct frame_extra_info): Delete.
7206 2007-05-06 Daniel Jacobowitz <dan@codesourcery.com>
7208 * linux-thread-db.c: Update some FIXME comments.
7209 (thread_db_xfer_partial): Delete.
7210 (init_thread_db_ops): Do not set to_xfer_partial.
7212 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7214 * inftarg.c, infptrace.c: Remove files.
7215 * Makefile.in (ALLDEPFILES): Remove inftarg.c and infptrace.c
7216 (inftarg.o, infptrace.o): Remove rules.
7217 * gdbcore.h (register_addr): Remove prototype.
7218 * inferior.h (kill_inferior, store_inferior_registers,
7219 fetch_inferior_registers, attach, detach, ptrace_wait, child_resume,
7220 call_ptrace, pre_fork_inferior): Remove prototypes.
7221 * target.h (child_xfer_memory, child_pid_to_exec_file,
7222 child_core_file_to_sym_file, child_post_attach,
7223 child_post_startup_inferior, child_acknowledge_created_inferior,
7224 child_insert_fork_catchpoint, child_remove_fork_catchpoint,
7225 child_insert_vfork_catchpoint, child_remove_vfork_catchpoint,
7226 child_insert_exec_catchpoint, child_remove_exec_catchpoint,
7227 child_follow_fork, child_reported_exec_events_per_exec_call,
7228 child_has_exited, child_thread_alive): Remove prototypes.
7230 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7232 * sparc-nat.h (sparc_fetch_inferior_registers): Add prototype.
7233 (sparc_store_inferior_registers): Likewise.
7234 * sparc-nat.c (fetch_inferior_registers): Rename to ...
7235 (sparc_fetch_inferior_registers): ... this.
7236 (store_inferior_registers): Rename to ...
7237 (sparc_store_inferior_registers): ... this.
7238 (sparc_target): Update callback names.
7239 * sparc-linux.nat.c (_initialize_sparc_linux_nat): Likewise.
7240 * sparc64-linux.nat.c (_initialize_sparc64_linux_nat): Likewise.
7242 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7244 * linux-nat.c (child_post_attach): Rename to ...
7245 (linux_child_post_attach): ... this. Make static.
7246 (child_follow_fork): Rename to ...
7247 (linux_child_follow_fork): ... this. Make static.
7248 (child_insert_fork_catchpoint): Rename to ...
7249 (linux_child_insert_fork_catchpoint): ... this. Make static.
7250 (child_insert_vfork_catchpoint): Rename to ...
7251 (linux_child_insert_vfork_catchpoint): ... this. Make static.
7252 (child_insert_exec_catchpoint): Rename to ...
7253 (linux_child_insert_exec_catchpoint): ... this. Make static.
7254 (child_pid_to_exec_file): Rename to ...
7255 (linux_child_pid_to_exec_file): ... this. Make static.
7257 (linux_handle_extended_wait): Update call.
7258 (linux_xfer_partial): Update callback routine names.
7260 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7262 * configure.host (alpha*-*-osf[12]*): Remove support.
7263 * NEWS: Mention removed configurations.
7265 * config/alpha/alpha-osf1.mh: Delete file.
7266 * config/alpha/alpha-osf2.mh: Delete file.
7267 * config/alpha/alpha-osf3.mh (NATDEPFILES): Remove inftarg.o
7269 * config/alpha/nm-osf.h: Delete file.
7270 * config/alpha/nm-osf2.h: Delete file.
7271 * config/alpha/nm-osf3.h: Do not include "nm-osf2.h".
7272 (START_INFERIOR_TRAPS_EXPECTED): Copy from nm-osf.h.
7273 (PROCFS_DONT_TRACE_FAULTS): Copy from nm-osf2.h.
7275 * alpha-nat.c (ALPHA_UNIQUE_PTRACE_ADDR): Do not define.
7276 (register_addr, kernel_u_size): Remove.
7277 Do not check for "defined(USE_PROC_FS) || defined(HAVE_GREGSET_T)".
7279 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7281 * regcache.c (regcache_invalidate): New function.
7282 (register_cached): Remove.
7283 (set_register_cached): Remove.
7284 (deprecated_registers_fetched): Remove.
7285 (registers_changed): Use regcache_invalidate instead
7286 of set_register_cached.
7287 (regcache_raw_read): Update comment.
7289 * regcache.h (regcache_invalidate): Add prototype.
7290 (register_cached): Remove.
7291 (set_register_cached): Remove.
7292 (deprecated_registers_fetched): Remove.
7294 * findvar.c (value_of_register): Do not call register_cached.
7295 * frame.c (frame_register): Likewise.
7296 * tui/tui-regs.c (tui_get_register): Likewise.
7298 * remote.c (fetch_register_using_p): Do not call set_register_cached.
7299 (process_g_packet): Likewise.
7300 (remote_fetch_registers): Likewise.
7301 * remote-sim.c (gdbsim_fetch_register): Likewise.
7302 * mt-tdep.c (mt_select_coprocessor): Replace set_register_cached call
7303 by regcache_invalidate.
7304 (mt_pseudo_register_write): Likewise.
7305 * sh-tdep.c (sh_pseudo_register_write): Likewise.
7307 * corelow.c (get_core_registers): Replace deprecated_registers_fetched
7308 call by loop over regcache_raw_supply (..., NULL).
7310 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7312 * target.h (struct target_ops): Add REGCACHE parameter to
7313 to_prepare_to_store.
7314 (target_prepare_to_store): Likewise.
7315 * target.c (debug_to_prepare_to_store): Add REGCACHE parameter.
7316 (update_current_target): Adapt prepare_to_store de_fault rule.
7318 * regcache.c (regcache_raw_write): Pass regcache to
7319 target_prepare_to_store.
7321 * inftarg.c (child_prepare_to_store): Add REGCACHE parameter.
7322 Do not call CHILD_PREPARE_TO_STORE.
7323 * gnu-nat.c (gnu_prepare_to_store): Likewise.
7324 * procfs.c (procfs_prepare_to_store): Likewise.
7326 * inf-child.c (inf_child_prepare_to_store): Add REGCACHE parameter.
7327 * go32-nat.c (go32_prepare_to_store): Likewise.
7328 * monitor.c (monitor_prepare_to_store): Likewise.
7329 * nto-procfs.c (procfs_prepare_to_store): Likewise.
7330 * remote-m32r-sdi.c (m32r_prepare_to_store): Likewise.
7331 * remote-mips.c (mips_prepare_to_store): Likewise.
7332 * remote-sim.c (gdbsim_prepare_to_store): Likewise.
7333 * win32-nat.c (win32_prepare_to_store): Likewise.
7335 * remote.c (remote_prepare_to_store): Add REGCACHE parameter.
7336 Use it instead of current_regcache.
7338 * hpux-thread.c (hpux_thread_prepare_to_store): Add REGCACHE
7339 parameter. Pass it on to next target.
7340 * sol-thread.c (sol_thread_prepare_to_store): Likewise.
7342 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7344 * target.h (struct regcache): Add forward declaration.
7345 (struct target_ops): Add REGCACHE parameter to to_fetch_registers
7346 and to_store_registers target operations.
7347 (target_fetch_registers, target_store_registers): Update.
7349 * regcache.c (regcache_raw_read): Replace register_cached by
7350 regcache_valid_p. Pass regcache to target_fetch_registers.
7351 (regcache_raw_write): Pass regcache to target_store_registers.
7353 * arm-linux-nat.c (store_fpregister, store_fpregs, store_register,
7354 store_regs, store_wmmx_regs): Replace register_cached by
7357 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd): Pass current_regcache
7358 to target_fetch_registers calls.
7359 * corelow.c (core_open): Likewise.
7360 * linux-nat.c (linux_nat_corefile_thread_callback): Likewise.
7361 * proc-service.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
7362 ps_lsetfpregs): Likewise.
7363 * sol-thread.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
7364 ps_lsetfpregs): Likewise.
7365 * win32-nat.c (win32_resume): Likewise.
7366 * ia64-tdep.c (ia64_store_return_value): Pass current_regcache
7367 to target_store_registers call.
7368 * rs6000-tdep.c (rs6000_push_dummy_call): Likewise.
7370 * inferior.h (store_inferior_registers): Update prototype.
7371 (fetch_inferior_registers): Likewise.
7372 * gnu-nat.c (gnu_store_registers, gnu_fetch_registers): Likewise.
7373 * mips-linux-nat.c (super_fetch_registers, super_store_registers):
7374 Update function pointer signatures.
7376 * aix-thread.c (aix_thread_fetch_registers): Add REGCACHE parameter,
7377 use it instead of current_regcache, update calls.
7378 (aix_thread_store_registers): Likewise.
7379 * alphabsd-nat.c (alphabsd_fetch_inferior_registers): Likewise.
7380 (alphabsd_store_inferior_registers): Likewise.
7381 * amd64bsd-nat.c (amd64bsd_fetch_inferior_registers): Likewise.
7382 (amd64bsd_store_inferior_registers): Likewise.
7383 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers): Likewise.
7384 (amd64_linux_store_inferior_registers): Likewise.
7385 * arm-linux-nat.c (fetch_fpregister, fetch_fpregs, store_fpregister,
7386 store_fpregs, fetch_register, fetch_regs, store_register, store_regs,
7387 fetch_wmmx_regs, store_wmmx_regs): Likewise.
7388 (arm_linux_fetch_inferior_registers): Likewise.
7389 (arm_linux_store_inferior_registers): Likewise.
7390 * armnbsd-nat.c (fetch_register, fetch_regs, fetch_fp_register,
7391 fetch_fp_regs, armnbsd_fetch_registers): Likewise.
7392 (store_register, store_regs, store_fp_register, store_fp_regs,
7393 armnbsd_store_registers): Likewise.
7394 * bsd-kvm.c (bsd_kvm_fetch_pcb, bsd_kvm_fetch_registers): Likewise.
7395 * bsd-uthread.c (bsd_uthread_fetch_registers): Likewise.
7396 (bsd_uthread_store_registers): Likewise.
7397 * corelow.c (get_core_registers): Likewise.
7398 * go32-nat.c (fetch_register, go32_fetch_registers, store_register,
7399 go32_store_registers): Likewise.
7400 * hppabsd-nat.c (hppabsd_fetch_registers): Likewise.
7401 (hppabsd_store_registers): Likewise.
7402 * hppa-hpux-nat.c (hppa_hpux_fetch_register): Likewise.
7403 (hppa_hpux_fetch_inferior_registers): Likewise.
7404 (hppa_hpux_store_register): Likewise.
7405 (hppa_hpux_store_inferior_registers): Likewise.
7406 * hppa-linux-nat.c (fetch_register, store_register): Likewise.
7407 (hppa_linux_fetch_inferior_registers): Likewise.
7408 (hppa_linux_store_inferior_registers): Likewise.
7409 * hpux-thread.c (hpux_thread_fetch_registers): Likewise.
7410 (hpux_thread_store_registers): Likewise.
7411 * i386bsd-nat.c (i386bsd_fetch_inferior_registers): Likewise.
7412 (i386bsd_store_inferior_registers): Likewise.
7413 * i386gnu-nat.c (fetch_fpregs, gnu_fetch_registers, store_fpregs,
7414 gnu_store_registers): Likewise.
7415 * i386-linux-nat.c (fetch_register, store_register, fetch_regs,
7416 store_regs, fetch_fpregs, store_fpregs, fetch_fpxregs, store_fpxregs):
7418 (i386_linux_fetch_inferior_registers): Likewise.
7419 (i386_linux_store_inferior_registers): Likewise.
7420 * ia64-linux-nat.c (ia64_linux_fetch_register): Likewise.
7421 (ia64_linux_fetch_registers): Likewise.
7422 (ia64_linux_store_register): Likewise.
7423 (ia64_linux_store_registers): Likewise.
7424 * inf-child.c (inf_child_fetch_inferior_registers): Likewise.
7425 (inf_child_store_inferior_registers): Likewise.
7426 * inf-ptrace.c (inf_ptrace_fetch_register): Likewise.
7427 (inf_ptrace_fetch_registers): Likewise.
7428 (inf_ptrace_store_register): Likewise.
7429 (inf_ptrace_store_registers): Likewise.
7430 * infptrace.c (fetch_register, store_register): Likewise.
7431 (fetch_inferior_registers, store_inferior_registers): Likewise.
7432 * m32r-linux-nat.c (fetch_regs, store_regs): Likewise.
7433 (m32r_linux_fetch_inferior_registers): Likewise.
7434 (m32r_linux_store_inferior_registers): Likewise.
7435 * m68kbsd-nat.c (m68kbsd_fetch_inferior_registers): Likewise.
7436 (m68kbsd_store_inferior_registers): Likewise.
7437 * m68klinux-nat.c (fetch_register, old_fetch_inferior_registers,
7438 store_register, old_store_inferior_registers, fetch_regs, store_regs,
7439 fetch_fpregs, store_fpregs): Likewise.
7440 (m68k_linux_fetch_inferior_registers): Likewise.
7441 (m68k_linux_store_inferior_registers): Likewise.
7442 * m88kbsd-nat.c (m88kbsd_fetch_inferior_registers): Likewise.
7443 (m88kbsd_store_inferior_registers): Likewise.
7444 * mips64obsd-nat.c (mips64obsd_fetch_inferior_registers): Likewise.
7445 (mips64obsd_store_inferior_registers): Likewise.
7446 * mips-linux-nat.c (mips64_linux_regsets_fetch_registers): Likewise.
7447 (mips64_linux_regsets_store_registers): Likewise.
7448 (mips64_linux_fetch_registers): Likewise.
7449 (mips64_linux_store_registers): Likewise.
7450 * mipsnbsd-nat.c (mipsnbsd_fetch_inferior_registers): Likewise.
7451 (mipsnbsd_store_inferior_registers): Likewise.
7452 * monitor.c (monitor_fetch_register, monitor_store_register): Likewise.
7453 (monitor_fetch_registers, monitor_store_registers): Likewise.
7454 * nto-procfs.c (procfs_fetch_registers): Likewise.
7455 (procfs_store_registers): Likewise.
7456 * ppc-linux-nat.c (fetch_altivec_register, fetch_spe_register,
7457 fetch_register, supply_vrregset, fetch_altivec_registers,
7458 fetch_ppc_registers, ppc_linux_fetch_inferior_registers): Likewise.
7459 (store_altivec_register, store_spe_register, store_register,
7460 fill_vrregset, store_altivec_registers, store_ppc_registers,
7461 ppc_linux_store_inferior_registers): Likewise.
7462 * ppcnbsd-nat.c (ppcnbsd_fetch_inferior_registers): Likewise.
7463 (ppcnbsd_store_inferior_registers): Likewise.
7464 * ppcobsd-nat.c (ppcobsd_fetch_registers): Likewise.
7465 (ppcobsd_store_registers): Likewise.
7466 * procfs.c (procfs_fetch_registers, procfs_store_registers): Likewise.
7467 * remote.c (fetch_register_using_p, process_g_packet,
7468 fetch_registers_using_g, remote_fetch_registers): Likewise.
7469 (store_register_using_P, store_registers_using_G,
7470 remote_store_registers): Likewise.
7471 * remote-m32r-sdi.c (m32r_fetch_registers, m32r_fetch_register,
7472 m32r_store_register, m32r_store_register): Likewise.
7473 * remote-mips.c (mips_fetch_registers, mips_store_registers): Likewise.
7474 * remote-sim.c (gdbsim_fetch_register): Likewise.
7475 (gdbsim_store_register): Likewise.
7476 * rs6000-nat.c (fetch_register, store_register): Likewise.
7477 (rs6000_fetch_inferior_registers): Likewise.
7478 (rs6000_store_inferior_registers): Likewise.
7479 * s390-nat.c (fetch_regs, store_regs): Likewise.
7480 (fetch_fpregs, store_fpregs): Likewise.
7481 (s390_linux_fetch_inferior_registers): Likewise.
7482 (s390_linux_store_inferior_registers): Likewise.
7483 * shnbsd-nat.c (shnbsd_fetch_inferior_registers): Likewise.
7484 (shnbsd_store_inferior_registers): Likewise.
7485 * sol-thread.c (sol_thread_fetch_registers): Likewise.
7486 (sol_thread_store_registers): Likewise.
7487 * sparc-nat.c (fetch_inferior_registers): Likewise.
7488 (store_inferior_registers): Likewise.
7489 * spu-linux-nat.c (spu_fetch_inferior_registers): Likewise.
7490 (spu_store_inferior_registers): Likewise.
7491 * target.c (debug_print_register): Likewise.
7492 (debug_to_fetch_registers, debug_to_store_registers): Likewise.
7493 * vaxbsd-nat.c (vaxbsd_fetch_inferior_registers): Likewise.
7494 (vaxbsd_store_inferior_registers): Likewise.
7495 * win32-nat.c (do_win32_fetch_inferior_registers): Likewise.
7496 (win32_fetch_inferior_registers): Likewise.
7497 (win32_store_inferior_registers): Likewise.
7499 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7501 * gdbcore.h (struct regcache): Add forward declaration.
7502 (struct core_fns): Add REGCACHE argument to core_read_registers
7504 * corelow.c (get_core_register_section): Add REGCACHE argument,
7505 use it instead of current_regcache, pass it to core_read_registers
7507 (get_core_registers): Add current_regcache as parameter to
7508 get_core_register_section calls.
7510 * alpha-nat.c (fetch_osf_core_registers): Add REGCACHE argument,
7511 use it instead of current_regcache.
7512 * armnbsd-nat.c (fetch_core_registers): Likewise.
7513 (fetch_elfcore_registers): Likewise.
7514 * core-regset.c (fetch_core_registers): Likewise.
7515 * cris-tdep.c (fetch_core_registers): Likewise.
7516 * irix5-nat.c (fetch_core_registers): Likewise.
7517 * m68klinux-nat.c (fetch_core_registers): Likewise.
7518 * mips-linux-tdep.c (fetch_core_registers): Likewise.
7519 * win32-nat.c (fetch_elf_core_registers): Likewise.
7521 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7523 * gregset.h (struct regcache): Add forward declaration.
7524 (supply_gregset): Add REGCACHE parameter, make GREGS const.
7525 (supply_fpregset): Add REGCACHE parameter, make FPREGS const.
7526 (supply_fpxregset): Add REGCACHE parameter, make FPXREGS const.
7527 (fill_gregset): Add REGCACHE parameter.
7528 (fill_fpregset): Likewise.
7529 (fill_fpxregset): Likewise.
7531 Update all definitions accordingly:
7532 * alphabsd-nat.c, alpha-linux-nat.c, alpha-nat.c, amd64-linux-nat.c,
7533 arm-linux-nat.c, hppa-linux-nat.c, i386gnu-nat.c, i386-linux-nat.c,
7534 i386-sol2-nat.c, i386v4-nat.c, ia64-linux-nat.c, irix5-nat.c,
7535 m32r-linux-nat.c, m68klinux-nat.c, mips-linux-nat.c, ppc-linux-nat.c,
7536 s390-nat.c, sparc64-linux-nat.c, sparc-linux-nat.c, sparc-sol2-nat.c
7537 (supply_gregset): Add REGCACHE parameter, use it instead of
7538 current_regcache. Make GREGSETP parameter const, adapt casts.
7539 (supply_fpregset): Add REGCACHE parameter, use it instead of
7540 current_regcache. Make FPREGSETP parameter const, adapt casts.
7541 (fill_gregset): Add REGCACHE parameter, use it instead of
7543 (fill_fpregset): Likewise.
7545 Update all callers to pass in current_regcache as the new argument:
7546 * core-regset.c: Include "regcache.h".
7547 (fetch_core_registers): Update supply_gregset,and supply_fpregset calls.
7548 * procfs.c: Include "regcache.h".
7549 (procfs_fetch_registers): Update supply_gregset, supply_fpregset calls.
7550 (procfs_store_registers): Update fill_gregset, fill_fpregset calls.
7551 (procfs_do_thread_registers): Likewise.
7552 (procfs_make_note_section): Likewise.
7553 * proc-service.c: Include "regcache.h".
7554 (ps_lgetregs): Update fill_gregset call.
7555 (ps_lsetregs): Update supply_gregset call.
7556 (ps_lgetfpregs): Update fill_fpregset call.
7557 (ps_lsetfpregs): Update supply_fpregset call.
7558 * sol-thread.c (sol_thread_fetch_registers): Update supply_gregset,
7559 supply_fpregset calls.
7560 (sol_thread_store_registers): Update fill_gregset, fill_fpregset calls.
7561 (ps_lgetregs): Update fill_gregset call.
7562 (ps_lsetregs): Update supply_gregset call.
7563 (ps_lgetfpregs): Update fill_fpregset call.
7564 (ps_lsetfpregs): Update supply_fpregset call.
7566 * linux-nat.c (linux_nat_do_thread_registers): Update fill_gregset,
7567 fill_fpregset, and fill_fpxregset calls.
7568 * i386-linux-nat.c (fetch_regs): Update supply_gregset call.
7569 (store_regs): Update fill_gregset call.
7570 (fetch_fpregs): Update supply_fpregset call.
7571 (store_fpregs): Update fill_fpregset call.
7572 (fetch_fpxregs): Update supply_fpxregset call.
7573 (store_fpxregs): Update fill_fpxregset call.
7574 * m32r-linux-nat.c (fetch_regs): Update supply_gregset call.
7575 (store_regs): Update fill_gregset call.
7576 * m68klinux-nat.c (fetch_regs): Update supply_gregset call.
7577 (store_regs): Update fill_gregset call.
7578 (fetch_fpregs): Update supply_fpregset call.
7579 (store_fpregs): Update fill_fpregset call.
7580 (fetch_core_registers): Update supply_gregset, supply_fpregset calls.
7581 * s390-nat.c (fetch_regs): Update supply_gregset call.
7582 (store_regs): Update fill_gregset call.
7583 (fetch_fpregs): Update supply_fpregset call.
7584 (store_fpregs): Update fill_fpregset call.
7586 * Makefile.in (core-regset.o, procfs.o, proc-service.o): Update
7589 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7591 * monitor.c (monitor_supply_register): Add REGCACHE parameter, use
7592 it instead of current_regcache.
7593 (parse_register_dump): Add REGCACHE parameter, pass it to
7594 supply_register callback.
7595 (monitor_dump_reg_block): Add REGCACHE parameter, pass it to
7596 parse_register_dump.
7597 (monitor_dump_regs): Add REGCACHE parameter, pass it to
7598 parse_register_dump and dumpregs callback.
7599 (monitor_wait): Pass current_regcache to parse_register_dump and
7601 (monitor_fetch_register): Pass current_regcache to
7602 monitor_supply_register.
7603 (monitor_fetch_registers): Pass current_regcache to
7605 * monitor.h (struct monitor_ops): Add REGCACHE parameter to
7606 supply_register and dumpregs callbacks.
7607 (monitor_supply_register, monitor_dump_reg_block): Update
7609 * dbug-rom.c (dbug_supply_register): Add REGCACHE parameter. Pass
7610 it to monitor_supply_register.
7611 * dink32-rom.c (dink32_supply_register): Likewise.
7612 * ppcbug-rom.c (ppcbug_supply_register): Likewise.
7613 * m32r-rom.c (m32r_supply_register): Likewise. Also, use REGCACHE
7614 instead of current_regcache.
7616 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7618 * i386-nto-tdep.c (i386nto_supply_gregset, i386nto_supply_fpregset):
7619 Add REGCACHE parameter. Use it instead of current_regcache.
7620 (i386nto_supply_regset): Add REGCACHE parameter, pass it to
7621 i386nto_supply_gregset and i386nto_supply_fpregset.
7622 (i386nto_regset_fill): Add REGCACHE parameter; use it instead
7623 of current_regcache.
7625 * nto-procfs.c (procfs_fetch_registers): Pass current_regcache to
7626 nto_supply_ helper functions.
7627 (procfs_store_registers): Pass current_regcache to nto_regset_fill.
7629 * nto-tdep.c (nto_dummy_supply_regset): Add REGCACHE parameter.
7631 * nto-tdep.h (struct nto_target_ops): Add REGCACHE parameter to
7632 supply_greget, supply_fpregset, supply_altregset, supply_regset,
7633 and regset_fill member function pointers.
7634 (nto_dummy_supply_regset): Adapt prototype.
7636 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7638 * shnbsd-tdep.c (shnbsd_supply_reg): Add REGCACHE parameter, use it
7639 instead of current_regcache. Make REGS const.
7640 (shnbsd_fill_reg): Add REGCACHE parameter; replace current_regcache.
7641 * shnbsd-tdep.h (shnbsd_supply_reg, shnbsd_fill_reg): Update
7643 * shnbsd-nat.c: Include "regcache.h".
7644 (shnbsd_fetch_inferior_registers): Pass current_regcache to
7646 (shnbsd_store_inferior_registers): Pass current_regcache to
7648 * Makefile.in (shbsd-nat.o): Update dependencies.
7650 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7652 * mips-linux-tdep.c (supply_32bit_reg): Add REGCACHE parameter. Use it
7653 instead of current_regcache.
7654 (mips_supply_gregset): Likewise. Pass REGCACHE to supply_32bit_reg.
7655 Make GREGSETP const, remove superfluous casts.
7656 (mips_fill_gregset): Add REGCACHE parameter; replace current_regcache.
7657 (mips_supply_fpregset): Likewise. Make FPREGSETP const, remove
7659 (mips_fill_fpregset): Add REGCACHE parameter; replace current_regcache.
7660 (supply_64bit_reg): Likewise
7661 (mips64_supply_gregset): Likewise. Pass REGCACHE to supply_64bit_reg.
7662 Make GREGSETP const, adapt casts accordingly.
7663 (mips64_fill_gregset): Add REGCACHE parameter; replace current_regcache.
7664 (mips64_supply_fpregset): Likewise. Make FPREGSET const, adapt
7666 (mips64_fill_fpregset): Add REGCACHE parameter; replace current_regcache.
7667 (fetch_core_registers): Pass current_regcache to mips{64}_(supply|fill)_
7669 * mips-linux-tdep.h (mips_supply_gregset, mips_fill_gregset,
7670 mips_supply_fpregset, mips_fill_fpregset, mips64_supply_gregset,
7671 mips64_fill_gregset, mips64_supply_fpregset, mips64_fill_fpregset):
7673 * mips-linux-nat.c: Include "regcache.h".
7674 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): Pass
7675 current_regcache to mips{64}_(supply|fill)_ helper routines.
7676 (mips64_linux_regsets_fetch_registers): Likewise.
7677 (mips64_linux_regsets_store_registers): Likewise.
7679 * mipsnbsd-tdep.c (mipsnbsd_supply_reg, mipsnbsd_supply_fpreg): Add
7680 REGCACHE argument; replace current_regcache. Make REGS const.
7681 (mipsnbds_fill_reg, mipsnbsd_fill_fpreg): Add REGCACHE argument;
7682 replace current_regcache.
7683 * mipsnbsd-tdep.h (ipsnbsd_supply_reg, mipsnbsd_supply_fpreg,
7684 mipsnbds_fill_reg, mipsnbsd_fill_fpreg): Adapt prototypes.
7685 * mipsnbsd-nat.c (mipsnbsd_fetch_inferior_registers,
7686 mipsnbsd_store_inferior_registers): Pass current_regcache to
7687 mipsnbsd_(supply|fill)_... helper routines.
7689 * Makefile.in (mips-linux-nat.o): Update dependencies.
7691 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7693 * i387-tdep.c (i387_fill_fsave, i387_fill_fxsave): Remove.
7694 * i387-tdep.h (i387_fill_fsave, i387_fill_fxsave): Remove prototypes.
7695 * i368-linux-nat.c (supply_fpregset, supply_fpxregset): Replace
7696 i387_fill_fsave and i387_fill_fxsave calls by inline copies.
7697 * i386-nto-tdep.c (i386nto_regset_fill): Likewise.
7698 * i386gnu-nat.c (store_fpregs): Likewise.
7699 * i386v4-nat.c (fill_fpregset): Likewise.
7700 * go32-nat.c (store_register, go32_store_registers): Likewise.
7702 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7704 * cris-tdep.c (supply_gregset): Rename to ...
7705 (cris_supply_gregset): ... this. Add REGCACHE parameter. Use it
7706 instead of current_regcache.
7707 (fetch_core_registers): Update call. Pass current_regcache.
7709 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7711 * arnmnbsd-nat.c (supply_gregset): Rename to ...
7712 (arm_supply_gregset): ... this. Add REGCACHE parameter.
7713 Use it instead of current_regcache.
7714 (supply_fparegset): Rename to ...
7715 (arm_supply_fparegset): ... this. Add REGCACHE parameter.
7716 Use it instead of current_regcache.
7717 (fetch_regs, fetch_fp_regs): Update calls. Pass current_regcache.
7718 (fetch_core_registers, fetch_elfcore_registers): Likewise.
7720 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7722 * alpha-tdep.c (alpha_supply_int_regs, alpha_fill_int_regs,
7723 alpha_supply_fp_regs, alpha_fill_fp_regs): Add REGCACHE parameter,
7724 use it instead of current_regcache.
7725 * alpha-tdep.h (struct regcache): Add forward declaration.
7726 (alpha_supply_int_regs, alpha_fill_int_regs, alpha_supply_fp_regs,
7727 alpha_fill_fp_regs): Update prototypes.
7729 * alpha-nat.c: (supply_gregset, fill_gregset, supply_fpregset,
7730 fill_fpregset): Pass current_regcache to alpha_supply/fill_ routines.
7731 * alpha-linux-nat.c: Include "regcache.h".
7732 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): Pass
7733 current_regcache to alpha_supply/fill_ routines.
7735 * alphabsd-tdep.c: Include "regcache.h".
7736 (alphabsd_supply_reg, alphabsd_supply_fpreg): Add REGCACHE paramter,
7737 pass it to alpha_supply_ routines. Make REGS const.
7738 (alphabsd_fill_reg, alphabsd_fill_fpreg): Add REGCACHE parameter,
7739 pass it to alpha_fill_ routines.
7740 * alphabsd-tdep.h (struct regcache): Add forward declaration.
7741 (alphabsd_supply_reg, alphabsd_fill_reg, alphabsd_supply_fpreg,
7742 alphabsd_fill_fpreg): Update prototypes.
7744 * alphanbsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
7745 fill_fpregset, alphabsd_fetch_inferior_registers,
7746 alphabsd_store_inferior_registers): Pass current_regcache to
7747 alphabsd_supply/fill_ routines.
7749 * Makefile.in (alpha-linux-nat.o, alphabsd-tdep.o): Update
7752 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7754 * aix-thread.c (supply_gprs64, supply_reg32, supply_fprs,
7755 supply_sprs64, supply_sprs32): Add REGCACHE parameter, use it
7756 instead of current_regcache.
7757 (fetch_regs_user_thread, fetch_regs_kernel_thread): Add
7758 REGCACHE parameter, pass it to supply_ routines.
7759 (aix_thread_fetch_registers): Pass current_regcache to
7760 fetch_regs_user_thread and fetch_regs_kernel_thread.
7762 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs64, fill_sprs32):
7763 Add REGCACHE parameter, use it instead of current_regcache.
7764 Call regcache_valid_p instead of register_cached.
7765 (store_regs_user_thread, store_regs_kernel_thread): Likewise.
7766 Also, pass REGCACHE to fill_ routines.
7767 (aix_thread_store_registers): Pass current_regcache to
7768 store_regs_user_thread and store_regs_kernel_thread.
7770 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7772 * m32r-linux-nat.c (supply_gregset): Do not modify contents
7773 pointed to by GREGSETP.
7775 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7777 * irix5-nat.c (fill_gregset): Use regcache_raw_collect instead
7778 of regcache_raw_read_signed.
7779 (fill_fpregset): Use regcache_raw_collect instead of
7782 2007-05-03 Kevin Buettner <kevinb@redhat.com>
7784 * mips-tdep.c (mips_eabi_push_dummy_call): When pushing floating
7785 point arguments, test explicitly for use of the EABI32 ABI
7786 instead of inferring this condition from tests on register
7789 2007-05-03 Kevin Buettner <kevinb@redhat.com>
7791 * breakpoint.c (set_raw_breakpoint): Adjust breakpoint's address
7792 prior to allocating its location.
7794 2007-05-02 Maciej W. Rozycki <macro@mips.com>
7796 * mips-tdep.c (mips_o32_push_dummy_call): Remove conditions
7797 based on mips_abi_regsize() whose result is known in advance.
7798 (mips_o64_push_dummy_call): Likewise.
7800 2007-04-29 Ulrich Weigand <uweigand@de.ibm.com>
7802 * m68klinux-nat.c: Remove #ifndef USE_PROC_FS check.
7803 * m68k-tdep.c: Remove code within #ifdef USE_PROC_FS.
7805 * mips-linux-nat.c: Include "gregset.h".
7806 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): Move
7807 from mips-linux-tdep.c. Change parameter type to gdb_gregset_t.
7808 * mips-linux-tdep.c (supply_gregset, fill_gregset, supply_fpregset,
7809 fill_fpregset): Move to mips-linux-nat.c.
7811 * Makefile.in (m68k-tdep.o, mips-linux-nat.o): Update dependencies.
7813 2007-04-28 Ulrich Weigand <uweigand@de.ibm.com>
7815 * regcache.c (deprecated_read_register_gen): Remove, inline ...
7816 (read_register): ... here.
7817 (deprecated_write_register_gen): Remove, inline ...
7818 (write_register): ... here.
7819 * regcache.h (deprecated_read_register_gen): Remove prototype.
7820 (deprecated_write_register_gen): Likewise.
7822 * remote-sim.c (gdbsim_store_register): Replace call to
7823 deprecated_read_register_gen with regcache_cooked_read.
7824 * target.c (debug_print_register): Replace calls to
7825 deprecated_read_register_gen and read_register with
7826 regcache_cooked_read.
7828 2007-04-28 Ulrich Weigand <uweigand@de.ibm.com>
7830 * hpux-thread.c (hpux_thread_store_registers): Use
7831 regcache_raw_collect, not regcache_raw_read.
7832 * irix5-nat.c (fetch_core_registers): Use regcache_raw_supply,
7833 not regcache_raw_write.
7835 2007-04-28 Ulrich Weigand <uweigand@de.ibm.com>
7837 * gdbarch.sh: Remove deprecated_register_byte.
7838 * gdbarch.c, gdbarch.h: Regenerate.
7839 * arch-utils.h (generic_register_size, generic_register_byte): Remove.
7840 * arch-utils.c (generic_register_size, generic_register_byte): Remove.
7842 * regcache.h (regcache_valid_p): Make REGCACHE parameter const.
7843 * regcache.c (regcache_valid_p): Allow to query cooked registers in
7844 read-only register caches. Make REGCACHE parameter const.
7845 (regcache_dump): Do not check DEPRECATED_REGISTER_BYTE.
7847 * mi/mi-main.c (old_regs): Remove.
7848 (mi_setup_architecture_data, _initialize_mi_main): Remove.
7849 (register_changed_p): Reimplement to compare two register caches.
7850 (mi_cmd_data_list_changed_registers): Update caller.
7851 * mi/mi-main.h (mi_setup_architecture_data): Remove.
7852 * mi/mi-interp.c (mi_interpreter_init): Do not call
7853 mi_setup_architecture_data.
7855 2007-04-28 Ulrich Weigand <uweigand@de.ibm.com>
7857 * alpha-nat.c (ALPHA_REGSET_BASE, ALPHA_REGSET_UNIQUE): Do not define,
7858 inline definition at the places the macros are used.
7859 * alpha-linux-nat.c (ALPHA_REGSET_BASE, ALPHA_REGSET_UNIQUE): Likewise.
7861 2007-04-28 Ulrich Weigand <uweigand@de.ibm.com>
7863 * rs6000-aix-tdep.c: Include "regcache.h", "regset.h", and
7865 (rs6000_aix32_reg_offsets, rs6000_aix64_reg_offsets): New variables.
7866 (rs6000_aix_supply_regset, rs6000_aix_collect_regset): New functions.
7867 (rs6000_aix32_regset, rs6000_aix64_regset): New variables.
7868 (rs6000_aix_regset_from_core_section): New function.
7869 (rs6000_aix_init_osabi): Register it.
7870 (_initialize_rs6000_aix_tdep): Register GDB_OSABI_AIX osabi and
7871 sniffer for bfd_arch_powerpc as well as bfd_arch_rs6000.
7872 * rs6000-nat.c (CoreRegs): Do not define type.
7873 (fetch_core_registers, rs6000_core_fns): Remove.
7874 (_initialize_core_rs6000): Do not register it. Rename to ...
7875 (_initialize_rs6000_nat): ... this.
7876 * Makefile.in (rs6000-aix-tdep.o): Update dependencies.
7878 2007-04-27 Kevin Buettner <kevinb@redhat.com>
7880 * dwarf2expr.c (unsigned_address_type): Add forward declaration.
7881 (dwarf2_read_address): Sign extend return address as required by
7882 target architecture.
7884 2007-04-27 Kevin Buettner <kevinb@redhat.com>
7886 * solib-frv.c (lm_base): Bail out if the main executable has
7889 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
7891 * alpha-linux-tdep.c (alpha_linux_supply_fpregset): Correct location
7892 of FPCR register in fpregset.
7894 2007-04-27 Maciej W. Rozycki <macro@mips.com>
7896 * Makefile.in (gdbtk-wrapper.o): Update dependencies.
7897 (gdbtk-varobj.o, gdbtk-cmds.o, gdbtk-stack.o): Likewise.
7899 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
7901 * config/rs6000/nm-rs6000.h (CHILD_SPECIAL_WAITSTATUS): Remove.
7902 * rs6000-nat.c (rs6000_wait): New function.
7903 (_initialize_core_rs6000): Install it as to_wait target method.
7904 * target.c (store_waitstatus): Don't check CHILD_SPECIAL_WAITSTATUS.
7906 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
7908 * config/rs6000/nm-rs6000.h (TARGET_CREATE_INFERIOR_HOOK): Remove.
7909 * fork-child.c (fork_inferior): Don't call TARGET_CREATE_INFERIOR_HOOK.
7910 * rs6000-nat.c (super_create_inferior): New variable.
7911 (rs6000_create_inferior): Make static. Adapt argument list. Call
7912 original version of create_inferior via super_create_inferior.
7913 (_initialize_core_rs6000): Install to_create_inferior target method.
7915 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
7917 * aix-thread.c (aix_thread_xfer_memory): Replace by ...
7918 (aix_thread_xfer_partial): ... this.
7919 (init_aix_thread_ops): Install to_xfer_partial instead
7920 of deprecated_xfer_memory target method.
7922 * config/powerpc/aix.mh (NATDEPFILES): Remove infptrace.o
7923 and inftarg.o, add inf-ptrace.o.
7924 * config/rs6000/nm-rs6000.h (FETCH_INFERIOR_REGISTERS,
7925 CHILD_XFER_MEMORY, KERNEL_U_SIZE, kernel_u_size): Remove.
7926 * rs6000-nat.c: Include "inf-ptrace.h" and "gdb_stdint.h".
7927 (fetch_inferior_registers): Rename to ...
7928 (rs6000_fetch_inferior_registers): ... this. Make static.
7929 (store_inferior_registers): Rename to ...
7930 (rs6000_store_inferior_registers): ... this. Make static.
7931 (read_word, child_xfer_memory): Remove.
7932 (rs6000_xfer_partial): New function.
7933 (kernel_u_size): Remove.
7934 (_initialize_core_rs6000): Add inf_ptrace-based target.
7935 * Makefile.in (rs6000-nat.o): Update dependencies.
7937 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
7939 * inf-ptrace.c: Include "gdb_stdint.h".
7940 (inf_ptrace_xfer_partial): Use "uintptr_t" instead of "long" as
7941 intermediate type when casting CORE_ADDR to PTRACE_TYPE_ARG3.
7942 (inf_ptrace_fetch_register): Add intermediate cast to "uintptr_t"
7943 before casting CORE_ADDR to PTRACE_TYPE_ARG3.
7944 (inf_ptrace_store_register): Likewise.
7945 * Makefile.in (inf-ptrace.o): Update dependencies.
7947 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
7949 * configure.host (rs6000-*-*): Merge with powerpc-*-aix* rules.
7950 * configure.tgt (rs6000-*-*): Likewise.
7951 * config/rs6000/aix4.mh: Delete file.
7952 * config/rs6000/aix4.mt: Delete file.
7953 * config/rs6000/rs6000.mh: Delete file.
7954 * config/rs6000/rs6000.mt: Delete file.
7956 * config/powerpc/nm-aix.h: Delete file.
7957 * config/powerpc/aix.mh (NAT_FILE): Set to config/rs6000/nm-rs6000.h.
7959 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
7961 * aix-thread.c (fill_sprs32): Change argument types to "uint32_t *".
7962 Remove obsolete part of comment.
7963 (store_regs_user_thread): Use uint32_t temporaries when calling
7965 (store_regs_kernel_thread): Likewise. Add assertion to verify
7966 correct size of struct ptsprs members.
7967 (aix_thread_xfer_memory): Fix type of myaddr.
7968 (aix_thread_extra_thread_info): Fix compiler warning.
7969 * rs6000-nat.c (rs6000_ptrace64): Change type of buf to "void *".
7970 (fetch_register, store_register): Adapt callers.
7972 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
7974 * vec.h (vec_free): Rename to vec_free_. Adapt users.
7976 2007-04-25 Ulrich Weigand <uweigand@de.ibm.com>
7978 * alpha-linux-tdep.c: Include "gdb_string.h", "regset.h",
7980 (alpha_linux_supply_gregset, alpha_linux_supply_fpregset): New.
7981 (alpha_linux_gregset, alpha_linux_fpregset): New variables.
7982 (alpha_linux_regset_from_core_section): New function.
7983 (alpha_linux_init_abi): Install it.
7984 * alpha-linux-nat.c: Do not include "gdbcore.h". Include
7985 "alpha-tdep.h", <sys/ptrace.h>, <alpha/ptrace.h>,
7986 <sys/procfs.h>, and "gregset.h".
7987 (ALPHA_REGSET_BASE, ALPHA_REGSET_UNIQUE, ALPHA_UNIQUE_PTRACE_ADDR):
7988 Move from config/alpha/nm-linux.h.
7989 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): Copy
7991 (alpha_linux_register_u_offset): Inline register_addr from alpha-nat.c.
7992 * alpha-nat.c: Remove #ifdef __linux__ section.
7993 (fetch_elf_core_registers, alpha_elf_core_fns): Remove.
7994 (_initialize_core_alpha): Do not register alpha_elf_core_fns.
7995 (ALPHA_UNIQUE_PTRACE_ADDR, ALPHA_REGSET_UNIQUE): Define unconditionally.
7996 (ALPHA_REGSET_BASE): Move from config/alpha/nm-osf.h.
7997 * config/alpha/alpha-linux.mh (NAT_FILE): Set to config/nm-linux.h.
7998 (NATDEPFILES): Remove alpha-nat.o.
7999 * config/alpha/nm-linux.h: Delete file.
8000 * config/alpha/nm-osf.h (ALPHA_REGSET_BASE): Move to alpha-nat.c.
8001 * Makefile.in (alpha-linux-nat.o): Update dependencies.
8002 (alpha-linux-tdep.o): Likewise.
8004 2007-04-25 Ulrich Weigand <uweigand@de.ibm.com>
8006 * mips-linux-nat.c: No longer include "gdbcore.h".
8007 (mips_linux_register_addr): Move from mips-linux-tdep.c.
8008 (mips64_linux_register_addr): Likewise.
8009 (mips_linux_register_u_offset): Call mips_linux_register_addr or
8010 mips64_linux_register_addr instead of register_addr.
8011 * mips-linux-tdep.c (mips_linux_register_addr,
8012 mips64_linux_register_addr): Move to mips-linux-nat.c.
8013 (register_addr): Remove.
8014 (register_addr_data, init_register_addr_data): Remove.
8015 (_initialize_mips_linux_tdep): Do not initialize register_addr_data.
8016 (set_mips_linux_register_addr): Remove.
8017 (mips_linux_init_abi): Do not call set_mips_linux_register_addr.
8018 * Makefile.in (mips-linux-nat.o): Update dependencies.
8020 2007-04-25 Ulrich Weigand <uweigand@de.ibm.com>
8022 * linux-nat.c (linux_register_u_offset): Remove.
8023 (linux_target_install_ops): New function.
8024 (linux_target): Use it.
8025 (linux_trad_target): New function.
8026 * linux-nat.h (linux_trad_target): Declare.
8028 * alpha-linux-nat.c: Include "gdbcore.h".
8029 (alpha_linux_register_u_offset): New function.
8030 (_initialize_alpha_linux_nat): Use linux_trad_target.
8032 * mips-linux-nat.c: Include "gdbcore.h".
8033 (mips_linux_register_u_offset): New function.
8034 (_initialize_mips_linux_nat): Use linux_trad_target.
8036 * config/arm/linux.mh (NAT_FILE): Set to config/nm-linux.h.
8037 * config/arm/nm-linux.h: Delete file.
8039 * config/i386/nm-linux64.h (FETCH_INFERIOR_REGISTERS): Remove.
8040 * config/i386/nm-linux.h (FETCH_INFERIOR_REGISTERS): Remove.
8042 * config/ia64/linux.mh (NAT_FILE): Set to config/nm-linux.h.
8043 * config/ia64/nm-linux.h: Delete file.
8045 * config/m32r/linux.mh (NAT_FILE): Set to config/nm-linux.h.
8046 * config/m32r/nm-linux.h: Delete file.
8048 * config/m68k/linux.mh (NAT_FILE): Set to config/nm-linux.h.
8049 * config/m68k/nm-linux.h: Delete file.
8051 * config/pa/linux.mh (NAT_FILE): Set to config/nm-linux.h.
8052 * config/pa/nm-linux.h: Delete file.
8054 * config/powerpc/linux.mh (NAT_FILE): Set to config/nm-linux.h.
8055 * config/powerpc/ppc64-linux.mh (NAT_FILE): Likewise.
8056 * config/powerpc/nm-linux.h: Delete file.
8058 * config/s390/s390.mh (NAT_FILE): Set to config/nm-linux.h.
8059 * config/s390/nm-linux.h: Delete file.
8061 * config/sparc/linux.mh (NAT_FILE): Set to config/nm-linux.h.
8062 * config/sparc/linux64.mh (NAT_FILE): Likewise.
8063 * config/sparc/nm-linux.h: Delete file.
8065 * Makefile.in (alpha-linux-nat.o): Update dependencies.
8066 (mips-linux-nat.o): Likewise.
8068 2007-04-25 Ulrich Weigand <uweigand@de.ibm.com>
8070 * core-aout.c: Delete file.
8071 * Makefile.in (ALLDEPFILES): Remove core-aout.c.
8072 (core-aout.o): Delete rule.
8073 * gdbcore.h (kernel_u_addr, KERNEL_U_ADDR): Remove.
8075 * config/alpha/nm-linux.h (U_REGS_OFFSET): Remove.
8077 * arm-linux-nat.c (arm_linux_kernel_u_size): Remove.
8078 * config/arm/nm-linux.h (U_REGS_OFFSET, KERNEL_U_SIZE,
8079 KERNEL_U_ADDR): Remove.
8081 * i386-linux-nat.c (register_u_addr, kernel_u_size): Remove.
8082 (cannot_fetch_register, cannot_store_register): Remove.
8083 (fetch_register): Inline cannot_fetch_register and register_addr.
8084 (store_register): Inline cannot_store_register and register_addr.
8085 * config/i386/linux.mh (NATDEPFILES): Remove core-aout.o.
8086 * config/i386/nm-linux.h (KERNEL_U_SIZE, KERNEL_U_ADDR,
8087 REGISTER_U_ADDR, CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER):
8090 * m68klinux-nat.c (m68k_linux_register_u_addr, kernel_u_size): Remove.
8091 (fetch_register): Inline register_addr.
8092 (store_register): Inline register_addr.
8093 * config/m68k/linux.mh (NATDEPFILES): Remove core-aout.o.
8094 * config/m68k/nm-linux.h (KERNEL_U_SIZE, KERNEL_U_ADDR,
8095 U_REGS_OFFSET, REGISTER_U_ADDR): Remove.
8097 * config/mips/nm-irix5.h (REGISTER_U_ADDR): Remove.
8098 * config/mips/nm-linux.h (KERNEL_U_SIZE, U_REGS_OFFSET,
8099 REGISTER_U_ADDR): Remove.
8101 * hppa-linux-nat.c (register_addr): Rename to ...
8102 (hppa_linux_register_addr): ... this. Make static.
8103 (fetch_register, store_register): Adapt callers.
8104 * config/pa/nm-linux.h (U_REGS_OFFSET): Remove.
8106 * ppc-linux-nat.c (kernel_u_size): Remove.
8107 * config/powerpc/nm-linux.h (KERNEL_U_SIZE, KERNEL_U_ADDR): Remove.
8109 * vax-nat.c (vax_kernel_u_addr, vax_register_u_addr): Make static.
8110 * config/vax/vax.mh (NATDEPFILES): Remove core-aout.o.
8112 * config/vax/nm-vax.h: Delete file.
8114 2007-04-20 Mark Shinwell <shinwell@codesourcery.com>
8116 * MAINTAINERS (Write After Approval): Add myself.
8118 2007-04-20 Mark Shinwell <shinwell@codesourcery.com>
8120 * Makefile.in: Adjust dependencies of m68klinux-tdep.c.
8121 * m68klinux-tdep.c (m68k_uclinux_sigcontext_reg_offset): New.
8122 (m68k_linux_sigcontext_reg_offset): Fix typo.
8123 (target_is_uclinux): New.
8124 (m68k_linux_inferior_created): New.
8125 (m68k_linux_get_sigtramp_info): Check for uClinux or
8126 normal Linux. Use m68k_uclinux_sigcontext_reg_offset for
8128 (_initialize_m68k_linux_tdep): Register
8129 m68k_linux_inferior_created.
8131 2007-04-19 Pedro Alves <pedro_alves@portugalmail.pt>
8133 * win32-nat.c (win32_detach): Remove delete_command call.
8134 Resume inferior with win32_resume instead of win32_continue.
8136 2007-04-19 Jerome Guitton <guitton@adacore.com>
8138 * ser-mingw.c (fd_is_file): New function.
8139 (file_select_thread): New function.
8140 (ser_console_wait_handle): Add special handling for files.
8142 2007-04-18 Denis Pilat <denis.pilat@st.com>
8144 * dwarf2read.c (read_subrange_type): Use DW_ATE_signed default type
8145 when missing from DW_TAG_subrange_type. Remove the handling of null
8146 return from die_type.
8148 2007-04-18 Maciej W. Rozycki <macro@mips.com>
8150 * mips-tdep.c (mips_eabi_push_dummy_call): Revert the last
8151 change to rearrange some brackets.
8152 (mips_n32n64_push_dummy_call): Likewise.
8153 (mips_o32_push_dummy_call): Likewise.
8154 (mips_o64_push_dummy_call): Likewise.
8156 2007-04-18 Denis Pilat <denis.pilat@st.com>
8158 * infcmd.c (post_create_inferior): Start with a call to
8159 target_terminal_ours.
8161 2007-04-17 Maciej W. Rozycki <macro@mips.com>
8163 * mips-tdep.c (mips_eabi_push_dummy_call): Rearrange some
8165 (mips_n32n64_push_dummy_call): Likewise. Reformat some
8167 (mips_o32_push_dummy_call): Likewise.
8168 (mips_o64_push_dummy_call): Likewise.
8170 2007-04-17 Maciej W. Rozycki <macro@mips.com>
8172 * mips-tdep.c (mips_n32n64_push_dummy_call): Fix a typo in a
8175 2007-04-17 Maciej W. Rozycki <macro@mips.com>
8177 * mips-tdep.c (mips_n32n64_push_dummy_call): Fix a typo in a
8179 (mips_o32_push_dummy_call): Likewise.
8181 2007-04-17 Andreas Schwab <schwab@suse.de>
8183 * symtab.c (skip_prologue_using_sal): Allow the end of the prologue
8184 sal to be bigger than the end of the function.
8186 2007-04-17 Maciej W. Rozycki <macro@mips.com>
8187 Nigel Stephens <nigel@mips.com>
8189 * mips-tdep.c (mips_o32_push_dummy_call): Take account of
8190 argument alignment requirements when calculating stack space
8191 required. When aligning an arg register to eight bytes
8192 boundary, align stack_offset too. Write floating-point
8193 arguments to the appropriate integer register if need go there.
8194 (mips_o64_push_dummy_call): Likewise.
8196 2007-04-14 Ulrich Weigand <uweigand@de.ibm.com>
8198 * gdbarch.sh (software_single_step): Remove "insert_breakpoints_p" and
8199 "sig" arguments, add "regcache" argument.
8200 * gdbarch.c, gdbarch.h: Regenerate.
8202 * infrun.c (resume): Update SOFTWARE_SINGLE_STEP call arguments.
8203 (handle_inferior_event): Call remove_single_step_breakpoints directly
8204 instead of calling SOFTWARE_SINGLE_STEP to remove breakpoints.
8206 * alpha-tdep.c (alpha_software_single_step): Update argument list.
8207 Remove handling of !insert_breakpoints_p case.
8208 * arm-tdep.c (arm_software_single_step): Likewise.
8209 * cris-tdep.c (cris_software_single_step): Likewise.
8210 * mips-tdep.c (mips_software_single_step): Likewise.
8211 * rs6000-tdep.c (rs6000_software_single_step): Likewise.
8212 * sparc-tdep.c (sparc_software_single_step): Likewise.
8213 * spu-tdep.c (spu_software_single_step): Likewise.
8215 * alpha-tdep.h (alpha_software_single_step): Update prototype.
8216 * mips-tdep.h (mips_software_single_step): Likewise.
8217 * rs6000-tdep.h (rs6000_software_single_step): Likewise.
8218 * sparc-tdep.h (sparc_software_single_step): Likewise.
8220 2007-04-14 Ulrich Weigand <uweigand@de.ibm.com>
8222 * alpha-tdep.c (alpha_software_single_step): Do not call write_pc
8223 when removing single-step breakpoints.
8225 2007-04-14 Vladimir Prus <vladimir@codesourcery.com>
8227 * varobj.h (varobj_set_frozen): New
8228 (varobj_get_frozen): New.
8229 (varobj_update): New parameter explicit.
8230 * varobj.c (struct varobj): New fields frozen
8232 (varobj_set_frozen, varobj_get_frozen): New.
8233 (install_new_value): Don't fetch values for
8234 frozen variable object, or children thereof. Allow
8235 a frozen variable object to have non-fetched value.
8236 (varobj_update): Allow updating child variables.
8237 Don't traverse frozen children.
8238 (new_variable): Initialize the frozen field.
8239 (c_value_of_variable): Return NULL for frozen
8240 variable without any value yet.
8241 * mi/mi-cmd-var.c (varobj_update_one): New parameter
8243 (mi_cmd_var_create): Output the 'frozen' field,
8244 as soon as testsuite is adjusted to expect that field.
8245 (mi_cmd_var_set_frozen): New.
8246 (mi_cmd_var_update): Pass the 'explicit' parameter to
8248 * mi/mi-cmds.c (mi_cmds): Register '-var-set-frozen'.
8249 * mi/mi-cmds.h (mi_cmd_var_set_frozen): Declare.
8251 2007-04-13 Paul Brook <paul@codesourcery.com>
8253 * target-descriptions.c (tdesc_named_type): Add ieee_single and
8255 * doc/gdb.texinfo: Document ieee_single and ieee_double target types.
8257 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
8259 * mips-mdebug-tdep.c, mips-mdebug-tdep.h, ocd.c, ocd.h, ppc-bdm.c,
8260 remote-e7000.c, remote-hms.c, remote-utils.c, remote-utils.h,
8261 scm-exp.c, scm-lang.c, scm-lang.h, scm-tags.h, scm-valprint.c,
8262 ser-e7kpc.c, sh3-rom.c, stop-gdb.c: Delete.
8263 * Makefile.in: Remove references to deleted files.
8264 * README: Do not mention deleted ROM monitor interfaces.
8265 * defs.h (enum language): Delete language_scm.
8266 * expprint.c (print_subexp_standard): Do not handle OP_EXPRSTRING.
8267 (dump_subexp_body_standard): Likewise.
8268 * parse.c (operator_length_standard): Likewise.
8269 * expression.h (enum exp_opcode): Delete OP_EXPRSTRING.
8270 * remote-mips.c: Do not include remote-utils.h.
8271 * remote-sim.c: Likewise. Use remote_debug instead of sr_get_debug
8273 * value.c: Do not include scm-lang.h.
8274 (unpack_long): Delete scm_unpack call.
8275 * config/h8300/h8300.mt, config/mips/embed.mt,
8276 config/powerpc/ppc-eabi.mt, config/powerpc/ppc-sim.mt,
8277 config/sh/embed.mt, config/sh/linux.mt: Remove references to
8279 * NEWS: Mention removed files.
8281 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
8283 * symfile.c (add_psymbol_with_dem_name_to_list): Remove.
8284 * symfile.h (add_psymbol_with_dem_name_to_list): Remove prototype.
8286 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
8288 * NEWS: Mention removal of HP aCC support.
8290 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
8292 * solib-svr4.c (IGNORE_FIRST_LINK_MAP_ENTRY): Do not ignore the
8293 first entry for static executables.
8294 (breakpoint_addr): Delete unused variable.
8295 (elf_locate_base): Search for _r_debug in static executables.
8296 (enable_break): Do not set breakpoint_addr. Scan solib_break_names
8299 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
8301 * breakpoint.c (update_breakpoints_after_exec, print_it_typical)
8302 (bpstat_what, print_one_breakpoint, allocate_bp_location)
8303 (mention): Remove bp_through_sigtramp support.
8304 * breakpoint.h (enum bptype): Remove bp_through_sigtramp.
8306 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
8308 * breakpoint.c (bpstat_what): Give step-resume higher priority than
8311 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
8313 * infrun.c: Doc fixes.
8314 (handle_inferior_event): Clarify debug message.
8315 (insert_step_resume_breakpoint_at_sal): Print a debug message.
8317 2007-04-12 Ulrich Weigand <uweigand@de.ibm.com>
8319 * configure.tgt (arm-*-nto*, sh-*-nto*): Remove.
8321 2007-04-12 Ulrich Weigand <uweigand@de.ibm.com>
8323 * config/m68k/tm-monitor.h: Delete file.
8324 * config/m68k/monitor.mt (DEPRECATED_TM_FILE): Remove.
8325 * m68k-tdep.c (m68k_gdbarch_init): set_gdbarch_decr_pc_after_break
8327 * m68kbsd-tdep.c (m68kbsd_init_abi): ... here and ...
8328 * m68klinux-tdep.c (m68k_linux_init_abi): ... here.
8330 2007-04-12 Luis Machado <luisgpm@br.ibm.com>
8332 * gdbarch.sh (software_single_step): Change the return type
8333 from void to int and reformatted some comments to <= 80
8335 * gdbarch.c, gdbarch.h: Regenerated.
8336 * alpha-tdep.c (alpha_software_single_step): Likewise.
8337 * alpha-tdep.h (alpha_software_single_step): Likewise.
8338 * arm-tdep.c (arm_software_single_step): Likewise.
8339 * cris-tdep.c (cris_software_single_step): Likewise.
8340 * mips-tdep.c (mips_software_single_step): Likewise.
8341 * mips-tdep.h (mips_software_single_step): Likewise.
8342 * rs6000-tdep.c (rs6000_software_single_step): Likewise.
8343 * rs6000-tdep.h (rs6000_software_single_step): Likewise.
8344 * sparc-tdep.c (sparc_software_single_step): Likewise.
8345 * sparc-tdep.h (sparc_software_single_step): Likewise.
8346 * spu-tdep.c (spu_software_single_step): Likewise.
8347 * infrun.c (resume): Check the return value from SOFTWARE_SINGLE_STEP
8348 and act accordingly.
8350 2007-04-11 Steve Ellcey <sje@cup.hp.com>
8352 * configure.ac (build_warnings): Add -Wno-char-subscripts.
8353 * configure: Regenerate.
8354 * doc/gdbint.texinfo (warning flags): Add -Wno-char-subscripts.
8356 2007-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
8358 * libunwind-frame.c (LIBUNWIND_SO): Use major version number for `.so'.
8360 2007-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
8362 * gdbtypes.h (TYPE_FLAG_STUB_SUPPORTED, TYPE_STUB_SUPPORTED): New
8364 (TYPE_IS_OPAQUE): Empty vs. opaque structures are now
8365 distinct on the TYPE_STUB_SUPPORTED debug targets.
8366 * dwarf2read.c (read_structure_type): Set TYPE_FLAG_STUB_SUPPORTED.
8368 2007-04-11 Joel Brobecker <brobecker@adacore.com>
8370 * sparc-tdep.c (X_RS2): New macro.
8371 (sparc_skip_stack_check): New function.
8372 (sparc_analyze_prologue): Adjust PC past stack probing
8373 sequence if necessary.
8375 2007-04-10 Andreas Schwab <schwab@suse.de>
8377 * rs6000-tdep.c (rs6000_dwarf2_reg_to_regnum): Decode 64 as CR
8380 2007-04-10 Daniel Jacobowitz <dan@codesourcery.com>
8382 * breakpoint.c (gdb_breakpoint_query): Really return an
8384 (gdb_breakpoint): Likewise.
8385 * thread.c (gdb_list_thread_ids): Likewise.
8386 (gdb_thread_select): Likewise.
8387 * mi/mi-main.c (mi_cmd_thread_select): Expect an enum gdb_rc.
8388 (mi_cmd_thread_list_ids): Remove bogus initialization.
8390 2007-04-10 Daniel Jacobowitz <dan@codesourcery.com>
8392 * Makefile.in (SFILES): Remove hpacc-abi.c.
8393 (COMMON_OBS): Remove hpacc-abi.o.
8394 (ALLDEPFILES): Remove hpread.c and $(HPREAD_SOURCE).
8395 (hpacc-abi.o, hpread.o): Delete rules.
8396 * somread.c: Delete extern declarations from hpread.c.
8397 (som_symfile_read): Do not call do_pxdb or hpread_build_psymtabs.
8398 (som_symfile_finish): Do not call hpread_symfile_finish.
8399 (som_symfile_init): Do not call hpread_symfile_init.
8400 * config/pa/hppa64.mt (TDEPFILES): Remove hpread.o.
8401 * config/pa/hppahpux.mt (TDEPFILES): Likewise.
8402 * hpacc-abi.c, hpread.c: Deleted.
8404 2007-04-10 Daniel Jacobowitz <dan@codesourcery.com>
8406 * solib-svr4.c (enable_break): Simplify return value.
8407 (svr4_solib_create_inferior_hook): Do not warn if enable_break fails.
8409 2007-04-10 Andreas Schwab <schwab@suse.de>
8411 * solib-svr4.h (struct link_map_offsets): Remove l_addr_size,
8412 l_ld_size, l_next_size, l_prev_size, l_name_size.
8414 * solib-svr4.c (LM_ADDR_FROM_LINK_MAP): Use extract_typed_address
8415 to extract addresses from link map.
8416 (LM_DYNAMIC_FROM_LINK_MAP): Likewise.
8417 (LM_NEXT): Likewise.
8418 (LM_NAME): Likewise.
8419 (IGNORE_FIRST_LINK_MAP_ENTRY): Likewise.
8420 (elf_locate_base): Likewise.
8421 (open_symbol_file_object): Likewise.
8422 (svr4_fetch_objfile_link_map): Likewise.
8423 (SOLIB_EXTRACT_ADDRESS): Remove unused macro.
8424 (HAS_LM_DYNAMIC_FROM_LINK_MAP): Test l_ld_offset instead of
8426 (svr4_ilp32_fetch_link_map_offsets): Don't set removed members.
8427 (svr4_lp64_fetch_link_map_offsets): Likewise.
8429 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets): Don't set
8430 removed members. Set l_ld_offset to -1 if not present.
8432 2007-04-08 Vladimir Prus <vladimir@codesourcery.com>
8434 Pass stderr of program run with "target remote |"
8436 * serial.c (serial_open): Set error_fd to -1.
8437 * serial.h (struct serial): New field error_fd.
8438 (struct serial_opts): New field avail.
8439 * ser-pipe.c (pipe_open): Create another pair
8440 of sockets. Pass stderr to gdb.
8441 * ser-mingw.c (pipe_windows_open): Pass
8442 PEX_STDERR_TO_PIPE to pex_run. Initialize
8445 (_initialize_ser_windows): Hook pipe_avail.
8446 * ser-base.c (generic_readchar): Check if there's
8447 anything in stderr channel and route that to gdb_stderr.
8449 2007-04-03 Pedro Alves <pedro_alves@portugalmail.pt>
8451 * dbxread.c (read_ofile_symtab): Move current_objfile
8452 clearing to after end_stabs.
8454 2007-04-01 Andreas Schwab <schwab@suse.de>
8456 * rs6000-tdep.c (rs6000_convert_from_func_ptr_addr): Use parameter
8457 gdbarch instead of current_gdbarch.
8459 2007-04-01 Vladimir Prus <vladimir@codesourcery.com>
8461 * varobj.c (varobj_create): Keep varobj value
8462 NULL when evaluating the type.
8464 2007-03-31 Pedro Alves <pedro_alves@portugalmail.pt>
8466 * NEWS: Mention new Windows CE support.
8468 2007-03-30 Pedro Alves <pedro_alves@portugalmail.pt>
8470 * configure.tgt: Move mips*-*-pe and sh*-*-pe to
8471 the obsoletion stanza.
8472 * NEWS: Mention deleted targets.
8474 * config/sh/tm-wince.h: Remove.
8475 * config/sh/wince.mt: Remove.
8476 * config/mips/tm-wince.h: Remove.
8477 * config/mips/wince.mt: Remove.
8480 * wince-stub.c: Remove.
8481 * wince-stub.h: Remove.
8482 * Makefile.in (wince.o): Remove rule.
8483 (wince-stub.o): Likewise.
8485 * mips-tdep.c (mips_next_pc): Make static.
8486 * mips-tdep.h (mips_next_pc): Remove declaration.
8487 * arm-tdep.c (arm_pc_is_thumb): Make static.
8488 (thumb_get_next_pc): Likewise.
8489 (arm_get_next_pc): Likewise.
8490 * arm-tdep.h (arm_pc_is_thumb_dummy): Remove declaration.
8491 (arm_pc_is_thumb): Likewise.
8492 (thumb_get_next_pc): Likewise.
8493 (arm_get_next_pc): Likewise.
8495 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
8497 * MAINTAINERS: Remove d10v entry.
8498 * Makefile.in (SFILES): Remove dwarfread.c.
8499 (COMMON_OBS): Remove dwarfread.o.
8500 (gdb_sim_d10v_h, abug-rom.o, cpu32bug-rom.o, d10v-tdep.o, dwarfread.o)
8501 (remote-est.o, rom68k-rom.o): Delete.
8502 * NEWS: Mention removal of d10v, target abug, target cpu32bug,
8503 target est, target rom68k, and DWARF 1.
8504 * configure.tgt: Mark d10v as removed.
8505 * dwarf2read.c: Doc update.
8506 * elfread.c (struct elfinfo): Remove dboffset, dbsize, lnoffset,
8508 (elf_locate_sections): Do not set them.
8509 (elf_symfile_read): Do not call dwarf_build_psymtabs.
8510 * symfile.h (dwarf_build_psymtabs): Delete prototype.
8511 * config/m68k/monitor.mt (TDEPFILES): Prune.
8512 * abug-rom.c, cpu32bug-rom.c, d10v-tdep.c, dwarfread.c,
8513 remote-est.c, rom68k-rom.c, config/d10v/d10v.mt: Delete.
8515 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
8517 * doublest.c (convert_floatformat_to_doublest): Use
8518 floatformat_classify.
8519 (floatformat_is_nan): Rename to...
8520 (floatformat_classify): ...this. Return more information.
8521 * doublest.h (enum float_kind): New.
8522 (floatformat_is_nan): Replace prototype...
8523 (floatformat_classify): ...with this one.
8524 * valprint.c (print_floating): Use floatformat_classify. Handle
8527 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
8529 * README: Mention ISO C library requirement.
8531 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
8533 * Makefile.in (SFILES): Remove nlmread.c.
8534 (COMMON_OBS): Remove nlmread.o.
8535 (nlmread.o): Delete rule.
8536 * README: Delete reference to remote-st.c.
8537 * acinclude.m4 (CY_AC_TCL_LYNX_POSIX): Delete.
8538 * defs.h (enum gdb_osabi): Delete GDB_OSABI_NETWARE and
8540 * i386-tdep.c (i386_nw_init_abi, i386_nlm_osabi_sniffer): Delete.
8541 (_initialize_i386_tdep): Do not reference them.
8542 * nlmread.c: Delete file.
8543 * osabi.c (gdb_osabi_names): Remove NetWare and LynxOS.
8544 * target.c: Doc update.
8545 * thread.c: Delete commented include.
8546 * config/alpha/tm-alpha.h: Doc update.
8548 2007-03-30 Chris Dearman <chris@mips.com>
8550 * utils.c (string_to_core_addr): Comment typo.
8552 2007-03-30 Chris Dearman <chris@mips.com>
8554 * mips-tdep.c: Comment typo.
8556 2007-03-29 Ulrich Weigand <uweigand@de.ibm.com>
8558 * config/alpha/nm-osf.h (PTRACE_XFER_TYPE): Remove.
8559 * config/mips/nm-linux.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Remove.
8560 * config/sparc/nm-linux.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Remove.
8561 * config/powerpc/nm-ppc64-linux.h: Remove file.
8562 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Set to nm-linux.h.
8563 * inferior.h (PTRACE_ARG3_TYPE): Do not define.
8564 (call_ptrace): Change type of third argument to PTRACE_TYPE_ARG3.
8565 * infptrace.c (call_ptrace): Likewise.
8566 * m68klinux-nat.c (PTRACE_XFER_TYPE): Do not define.
8567 (fetch_register): Replace PTRACE_ARG3_TYPE by PTRACE_TYPE_ARG3
8568 and PTRACE_XFER_TYPE by PTRACE_TYPE_RET.
8569 (store_register): Likewise.
8571 2007-03-29 Joel Brobecker <brobecker@adacore.com>
8573 * Makefile.in (varobj.o): Add missing dependency.
8575 2007-03-29 Michael Snyder <msnyder@access-company.com>
8577 * MAINTAINERS: Update my email address.
8579 2007-03-29 Joel Brobecker <brobecker@adacore.com>
8581 Add support for exception handling with multiple versions of
8583 * ada-lang.c: Update general comments on how Ada exception catchpoints
8585 (raise_sym_name, raise_unhandled_sym_name, raise_assert_sym_name)
8586 (__gnat_raise_nodefer_with_msg): Delete.
8587 (ada_unhandled_exception_name_addr_ftype): New type.
8588 (exception_support_info): New type.
8589 (ada_unhandled_exception_name_addr): Add forward declaration.
8590 (ada_unhandled_exception_name_addr_from_raise): Likewise.
8591 (default_exception_support_info): New constant.
8592 (exception_support_info_fallback): Likewise.
8593 (exception_info): New global variable.
8594 (ada_exception_support_info_sniffer): New function.
8595 (ada_executable_changed_observer): Likewise.
8596 (ada_unhandled_exception_name_addr_from_raise): Renamed from
8597 ada_unhandled_exception_name_addr.
8598 (ada_unhandled_exception_name_addr): Reimplement to match the
8599 latest Ada runtime implementation.
8600 (error_breakpoint_runtime_sym_not_found): Delete.
8601 (ada_exception_sym_name): Get the exception sym name from
8602 exception_info rather than hardcoding it.
8603 (ada_exception_sal): Add call to ada_exception_support_info_sniffer.
8604 Update error handling.
8605 * Makefile.in (ada-lang.o): Add dependency on observer.h.
8607 2007-03-29 Daniel Jacobowitz <dan@codesourcery.com>
8609 * Makefile.in (coff_solib_h, coff-solib.o, i386v-nat.o, lynx-nat.o)
8610 (remote-st.o, uw-thread.o): Delete.
8611 (HFILES_NO_SRCDIR, ALLDEPFILES): Update.
8612 * configure.host: Move hppa*-*-hiux*, i[34567]86-ncr-*,
8613 i[34567]86-*-dgux*, i[34567]86-*-lynxos*, i[34567]86-*-sco3.2v5*,
8614 i[34567]86-*-sco3.2v4*, i[34567]86-*-sco*, i[34567]86-*-sysv4.2*,
8615 i[34567]86-*-sysv4*, i[34567]86-*-sysv5*, i[34567]86-*-unixware2*,
8616 i[34567]86-*-unixware*, i[34567]86-*-sysv*, i[34567]86-*-isc*, and
8617 rs6000-*-lynxos* to an obsoletion stanza.
8618 * configure.tgt: Move hppa*-*-hiux*, i[34567]86-ncr-*,
8619 i[34567]86-*-lynxos*, m68*-cisco*-*, m68*-tandem-*, m68*-*-os68k*,
8620 and rs6000-*-lynxos* to an obsoletion stanza. Do not mention
8621 i[34567]86-*-netware*.
8622 * NEWS: Mention deleted targets.
8624 * coff-solib.c, coff-solib.h, i386v-nat.c, lynx-nat.c, remote-st.c,
8625 uw-thread.c, config/nm-lynx.h, config/i386/i386sco.mh,
8626 config/i386/i386sco4.mh, config/i386/i386sco5.mh, config/i386/i386v.mh,
8627 config/i386/i386v4.mh, config/i386/i386v42mp.mh,
8628 config/i386/ncr3000.mh, config/i386/ncr3000.mt,
8629 config/i386/nm-i386sco.h, config/i386/nm-i386sco4.h,
8630 config/i386/nm-i386sco5.h, config/i386/nm-i386v.h,
8631 config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h,
8632 config/m68k/cisco.mt, config/m68k/os68k.mt, config/m68k/st2000.mt,
8633 config/m68k/tm-cisco.h, config/m68k/tm-os68k.h,
8634 config/rs6000/rs6000lynx.mh, config/rs6000/rs6000lynx.mt,
8635 config/rs6000/tm-rs6000ly.h: Delete files.
8637 2007-03-29 Daniel Jacobowitz <dan@codesourcery.com>
8639 * defs.h (deprecated_registers_changed_hook): Delete declaration.
8640 * interps.c (clear_interpreter_hooks): Do not clear
8641 deprecated_registers_changed_hook.
8642 * regcache.c (registers_changed): Do not call it.
8643 * top.c (deprecated_registers_changed_hook): Do not define it.
8644 * mi/mi-interp.c (mi_command_loop): Do not clear it.
8645 * tui/tui-hooks.c (tui_install_hooks): Do not install it.
8646 (tui_remove_hooks): Do not remove it.
8647 (tui_selected_frame_level_changed_hook): Check for negative level.
8648 Use get_selected_frame.
8649 (tui_registers_changed_hook): Deleted.
8651 2007-03-29 Joel Brobecker <brobecker@adacore.com>
8653 * stabsread.c (add_undefined_type): Add extra parameter.
8654 Now handles nameless types separately.
8655 (struct nat): New type.
8656 (noname_undefs, noname_undefs_allocated, noname_undefs_length):
8657 New static variables.
8658 (read_type): Update calls to add_undefined_type.
8659 (add_undefined_type_noname): New function.
8660 (add_undefined_type_1): Renames from add_undefined_type.
8661 (cleanup_undefined_types_noname): New function.
8662 (cleanup_undefined_types_1): Renames cleanup_undefined_types.
8663 (cleanup_undefined_types): New handles nameless types separately.
8664 (_initialize_stabsread): Initialize our new static constants.
8666 2007-03-29 Denis Pilat <denis.pilat@st.com>
8668 * configure.ac: Test for signal.h.
8669 * configure, config.in: Regenerate.
8671 2007-03-29 Denis Pilat <denis.pilat@st.com>
8673 * stack.c (print_stack_frame): Always use LOC_AND_ADDRESS in MI output.
8674 * infrun.c (normal_stop): Remove MI specific frame printing treatment.
8676 2007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
8678 * arm-wince-tdep.c: New.
8679 * config/arm/wince.mt (DEPRECATED_TM_FILE): Use tm-arm.h.
8680 (MT_CFLAGS): Delete.
8682 (TDEPFILES): Add arm-wince-tdep.o, corelow.o, solib.o,
8683 solib-legacy.o, solib-svr4.o, and remove wince.o.
8684 * configure.tgt (arm*-*-mingw32ce*): Add.
8685 * signals/signals.c [HAVE_SIGNAL_H]: Check.
8686 (do_target_signal_to_host): Silence 'not used' warning.
8687 * config/arm/tm-wince.h: Remove.
8689 2007-03-28 Ulrich Weigand <uweigand@de.ibm.com>
8691 * arch-utils.c (legacy_pc_in_sigtramp): Remove.
8692 * arch-utils.h (legacy_pc_in_sigtramp): Remove.
8694 * config/ia64/linux.mt (DEPRECATED_TM_FILE): Remove.
8695 * config/ia64/tm-linux.h: Remove file.
8696 * ia64-tdep.h (struct gdbarch_tdep): Add pc_in_sigtramp callback.
8697 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Use it instead of
8698 legacy_pc_in_sigtramp.
8699 (ia64_gdbarch_init): Initialize tdep->pc_in_sigtramp.
8700 * ia64-linux-tdep.c (ia64_linux_pc_in_sigtramp): Make static.
8701 Remove func_name argument.
8702 (ia64_linux_init_abi): Install it as tdep->pc_in_sigtramp.
8704 * infrun.c (HAVE_STEPPABLE_WATCHPOINT): Do not redefine.
8705 * target.c (update_current_target): Add to_have_steppable_watchpoint.
8706 * target.h (struct target_ops): Add to_have_steppable_watchpoint.
8707 (HAVE_STEPPABLE_WATCHPOINT): Define.
8709 * config/ia64/linux.mh (NATDEPFILES): Remove core-aout.o.
8710 * config/ia64/nm-linux.h (KERNEL_U_ADDR, U_REGS_OFFSET,
8711 CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER,
8712 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_STEPPABLE_WATCHPOINT,
8713 STOPPED_BY_WATCHPOINT, target_stopped_data_address,
8714 target_insert_watchpoint, target_remove_watchpoint): Remove.
8715 (FETCH_INFERIOR_REGISTERS): Define.
8716 * ia64-linux-nat.c (ia64_register_addr): Make static.
8717 (ia64_cannot_fetch_register, ia64_cannot_store_register): Likewise.
8718 (ia64_linux_insert_watchpoint): Make static. Remove ptid_p argument.
8719 (ia64_linux_remove_watchpoint): Likewise. Add type argument.
8720 (ia64_linux_stopped_data_address): Make static. Add target_ops.
8721 (ia64_linux_stopped_by_watchpoint): Make static.
8722 (ia64_linux_can_use_hw_breakpoint): New function.
8723 (ia64_linux_fetch_register, ia64_linux_fetch_registers): Likewise.
8724 (ia64_linux_store_register, ia64_linux_store_registers): Likewise.
8725 (_initialize_ia64_linux_nat): Install register and watchpoint ops.
8727 2007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
8729 * linespec.c: Include language.h.
8730 (find_methods): Add language parameter. Call
8731 lookup_symbol_in_language. Pass language down.
8732 (add_matching_methods): Likewise. Call
8733 lookup_symbol_in_language.
8734 (add_constructors): Likewise.
8735 (find_method): Pass sym_class to collect_methods.
8736 (collect_methods): Add sym_class parameter. Pass language
8738 * symtab.c (lookup_symbol): Rename to ...
8739 (lookup_symbol_in_language): ... this. Add language
8740 parameter. Use passed language instead of current_language.
8741 (lookup_symbol): New as wrapper around
8742 lookup_symbol_in_language.
8743 (lookup_symbol_aux): Add language parameter. Use passed
8744 language instead of current_language.
8745 (search_symbols): Indent.
8746 * symtab.h (enum language): Forward declare.
8747 (lookup_symbol_in_language): Declare.
8748 (lookup_symbol): Update description.
8749 * ada-lang.h (lookup_symbol_in_language): Remove declaration.
8750 * ada-lang.c (restore_language): Remove.
8751 (lookup_symbol_in_language): Remove.
8753 2007-03-27 Pedro Alves <pedro_alves@portugalmail.pt>
8755 * breakpoint.c (bpstat_num): Add int *num parameter.
8756 * breakpoint.h (bpstat_num): Likewise.
8757 * infcmd.c (continue_command): Adjust to new bpstat_num
8759 (program_info): Likewise.
8761 2007-03-27 Ulrich Weigand <uweigand@de.ibm.com>
8763 * config/sh/tm-sh.h: Remove file.
8764 * config/sh/embed.mt (DEPRECATED_TM_FILE): Remove.
8765 * config/sh/linux.mt (DEPRECATED_TM_FILE): Remove.
8766 * config/sh/nbsd.mt (DEPRECATED_TM_FILE): Remove.
8767 * config/sh/tm-wince.h: Do not include "sh/tm-sh.h".
8769 2007-03-27 Ulrich Weigand <uweigand@de.ibm.com>
8771 * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT,
8772 DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Remove.
8773 * remote.c: Remove code under #ifdef DEPRECATED_REMOTE_BREAKPOINT,
8774 DEPRECATED_BIG_REMOTE_BREAKPOINT, DEPRECATED_LITTLE_REMOTE_BREAKPOINT.
8775 * sh-tdep.c (sh_breakpoint_from_pc): Return remote breakpoint
8776 sequence if target_shortname is "remote".
8778 2007-03-27 Anton Blanchard <anton@samba.org>
8780 * rs6000-tdep.c (rs6000_frame_cache): Use tdep->lr_frame_offset
8781 instead of wordsize when looking for the LR in a stack frame.
8783 2007-03-27 Andreas Schwab <schwab@suse.de>
8784 Daniel Jacobowitz <dan@codesourcery.com>
8786 * dwarf2-frame.c (dwarf2_frame_eh_frame_regnum): Rename to...
8787 (dwarf2_frame_adjust_regnum): ...this. Make static. Add eh_frame_p
8788 argument. Update all callers.
8789 (struct dwarf2_frame_ops): Replace eh_frame_regnum with adjust_regnum.
8790 (dwarf2_frame_set_eh_frame_regnum): Rename to...
8791 (dwarf2_frame_set_adjust_regnum): ...this. Update argument type.
8792 * dwarf2frame.h (dwarf2_frame_set_eh_frame_regnum): Rename to...
8793 (dwarf2_frame_set_adjust_regnum): ...this.
8794 (dwarf2_frame_eh_frame_regnum): Delete prototype.
8795 * rs6000-tdep.c: Include "dwarf2-frame.h".
8796 (rs6000_adjust_frame_regnum): Define.
8797 (rs6000_gdbarch_init): Enable use of DWARF CFI frame unwinder.
8798 Register rs6000_adjust_frame_regnum.
8800 * Makefile.in (rs6000-tdep.o): Update dependencies.
8802 2007-03-27 Brooks Moses <brooks.moses@codesourcery.com>
8804 * Makefile.in: Add support for a "pdf" target.
8806 2007-03-27 Daniel Jacobowitz <dan@codesourcery.com>
8808 * amd64-tdep.c (amd64_init_frame_cache): New function.
8809 (amd64_alloc_frame_cache, amd64_skip_prologue): Use it.
8811 2007-03-26 Nigel Stephens <nigel@mips.com>
8812 Maciej W. Rozycki <macro@mips.com>
8814 * ui-out.c (ui_out_field_core_addr): Truncate address to
8815 TARGET_ADDR_BIT size before printing.
8817 2007-03-22 Nigel Stephens <nigel@mips.com>
8818 Maciej W. Rozycki <macro@mips.com>
8820 * remote-mips.c (mips_xfer_memory): Update prototype.
8822 2007-03-22 Joel Brobecker <brobecker@adacore.com>
8824 * symfile.h: #include "symtab.h"
8826 2007-03-22 Denis Pilat <denis.pilat@st.com>
8828 * utils.c (pagination_on_command, pagination_off_command):
8829 Remove useless prototypes.
8831 2007-03-21 Pierre Muller <muller@ics.u-strasbg.fr>
8834 * p-valprint.c (pascal_object_print_value): Use type_name_no_tag
8835 instead of TYPE_NAME for object base class name.
8838 2007-03-19 Kevin Buettner <kevinb@redhat.com>
8840 * mep-tdep.c (mep_analyze_frame_prologue, mep_frame_this_id):
8841 Specify frame type in calls to frame_func_unwind().
8843 2007-03-13 Daniel Jacobowitz <dan@codesourcery.com>
8845 * rs6000-tdep.c (rs6000_skip_prologue): Use skip_prologue_using_sal.
8846 (rs6000_in_function_epilogue_p): Use extract_unsigned_integer.
8847 (refine_prologue_limit): Delete.
8848 (skip_prologue): Don't call it. Use extract_unsigned_integer.
8849 Assume lim_pc is set. Correct check for incomplete prologues.
8850 Do not skip clobbers of the frame pointer.
8851 * symtab.c (skip_prologue_using_sal): Fail if there is only one
8854 2007-03-13 Nathan Froyd <froydnj@codesourcery.com>
8856 * frame.c (frame_pop): Check to see whether there's a frame to
8857 which we can pop first.
8859 2007-03-13 Nathan Froyd <froydnj@codesourcery.com>
8861 * MAINTAINERS (Write After Approval): Add myself.
8863 2007-03-09 Markus Deuling <deuling@de.ibm.com>
8865 * infrun.c (breakpoints_failed): Remove unnecessary variable.
8866 (handle_inferior_event): Remove unnecessary braces.
8867 * breakpoint.c (bpstat_what): Remove wrong comment.
8869 2007-03-09 Ulrich Weigand <uweigand@de.ibm.com>
8871 * spu-tdep.c (spu_in_function_epilogue_p): New function.
8872 (spu_gdbarch_init): Install it.
8874 2007-03-08 Ulrich Weigand <uweigand@de.ibm.com>
8876 * spu-linux-nat.c (spu_xfer_partial): Return -1 for unsupported
8877 object types, not 0.
8879 2007-03-08 Ulrich Weigand <uweigand@de.ibm.com>
8881 * spu-tdep.c (spu_frame_align): New function.
8882 (spu_gdbarch_init): Install it. Set call dummy location to ON_STACK.
8884 2007-03-08 Ulrich Weigand <uweigand@de.ibm.com>
8886 * spu-tdep.c (spu_unwind_pc): Mask off interrupt enable bit.
8887 (spu_software_single_step): Likewise.
8888 (spu_read_pc, spu_write_pc): New functions.
8889 (spu_gdbarch_init): Install them.
8891 2007-03-08 Ulrich Weigand <uweigand@de.ibm.com>
8893 * cli/cli-dump.c (struct callback_data): load_offset needs to
8894 have signed long type.
8896 2007-03-07 Joel Brobecker <brobecker@adacore.com>
8898 * mips-tdep.c (mips_insn16_frame_cache, mips_insn32_frame_sniffer):
8899 Revert the previous change that had some unexpected side-effects
8901 (mips_insn16_frame_cache, mips_insn32_frame_cache): Use the proper
8902 function to get the address of the calling instruction.
8904 2007-03-07 Denis Pilat <denis.pilat@st.com>
8906 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Replace
8907 get_selected_frame by deprecated_safe_get_selected_frame.
8909 2007-03-02 Mark Kettenis <kettenis@gnu.org>
8911 * shnbsd-tdep.c: Include "regset.h", "gdb_assert.h" and
8912 "gdb_string.h". Don't include "nbsd-tdep.h".
8913 (SIZEOF_STRUCT_REG): Remove.
8914 (SHNBSD_SIZEOF_GREGS): New.
8915 (shnbsd_supply_gregset, shnbsd_collect_gregset)
8916 (shnbsd_regset_from_core_section): New functions.
8917 (fetch_core_registers, fetch_elfcore_registers): Remove functions.
8918 (shnbsd_supply_reg, shnbsd_fill_reg): Simply call
8919 shnbsd_supply_gregset, shnbsd_collect_gregset.
8920 (shnbsd_gregset): New variable.
8921 (shnbsd_init_abi): Set regset_from_core_section.
8922 (GDB_OSABI_NETBSD_CORE): New define.
8923 (shnbsd_core_osabi_sniffer): New function.
8924 (_initialize_shnbsd_tdep): Register shnbsd_core_osabi_sniffer.
8925 * Makefile.in (shnbsd-tdep.o): Update dependencies.
8926 * config/sh/nbsd.mt (TDEPFILES): Add corelow.o, remove
8928 * config/sh/obsd.mt (TDEPFILES): Remove nbsd-tdep.o.
8930 2007-02-28 Joel Brobecker <brobecker@adacore.com>
8932 * gdbtypes.c (replace_type): Fix typo that caused us to not update
8933 length of the types referenced by the new type CV ring.
8935 2007-02-28 Daniel Jacobowitz <dan@codesourcery.com>
8937 * frame.c (frame_pop, frame_observer_target_changed): Call
8939 (flush_cached_frames): Rename to reinit_frame_cache and delete
8941 * frame.h (flush_cached_frames): Delete prototype and update comment.
8943 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd): Call
8944 reinit_frame_cache instead of flush_cached_frames. Do not call
8945 select_frame after reinit_frame_cache.
8946 * corelow.c (core_open): Likewise.
8947 * gdbarch.sh (deprecated_current_gdbarch_select_hack): Likewise.
8948 * infrun.c (prepare_to_proceed, context_switch)
8949 (handle_inferior_event): Likewise.
8950 * linux-fork.c (fork_load_infrun_state): Likewise.
8951 * ocd.c (ocd_start_remote): Likewise.
8952 * remote-e7000.c (e7000_start_remote): Likewise.
8953 * remote-mips.c (device): Likewise.
8954 * thread.c (switch_to_thread): Likewise.
8955 * tracepoint.c (finish_tfind_command): Likewise.
8956 * gdbarch.c: Regenerated.
8958 2007-02-28 Jerome Guitton <guitton@adacore.com>
8959 Joel Brobecker <brobecker@adacore.com>
8961 * gdbtypes.c (check_typedef): Do not replace stub type if
8962 the resolved type is not defined in the same objfile.
8964 2007-02-28 Daniel Jacobowitz <dan@codesourcery.com>
8966 * top.c (gdb_readline_wrapper_cleanup): Remove invalid assertion.
8968 2007-02-28 Joel Brobecker <brobecker@adacore.com>
8970 * stabsread.c (define_symbol): Create an associated STRUCT_DOMAIN
8971 symbol for Ada units when the symbol is defined using 't' rather
8972 than 'Tt' as symbol descriptor.
8974 2007-02-28 Ulrich Weigand <uweigand@de.ibm.com>
8976 * config/mips/tm-nbsd.h: Delete file.
8977 * config/mips/nbsd.mt (DEPRECATED_TM_FILE): Remove.
8978 * config/sh/tm-nbsd.h: Delete file.
8979 * config/sh/nbsd.mt (DEPRECATED_TM_FILE): Set to tm-sh.h.
8981 2007-02-28 Joel Brobecker <brobecker@adacore.com>
8983 * mi/mi-cmd-var.c (varobj_update_one): Remove reference to
8984 unused WRONG_PARAM value since it was recently deleted.
8986 2007-02-28 Vladimir Prus <vladimir@codesourcery.com>
8988 * varobj.c (varobj_update): Free temporary vectors.
8990 2007-02-28 Ulrich Weigand <uweigand@de.ibm.com>
8992 * config/powerpc/linux.mt (DEPRECATED_TM_FILE): Set to tm-ppc-eabi.h.
8993 * config/powerpc/tm-linux.h: Delete file.
8994 * config/powerpc/tm-ppc-eabi.h: Do not include "rs6000/tm-rs6000.h".
8995 (PROCESS_LINENUMBER_HOOK): Do not undefine.
8996 (TEXT_SEGMENT_BASE): Do not redefine.
8997 * config/rs6000/nm-rs6000.h (CHILD_SPECIAL_WAITSTATUS): Move here
8998 from config/rs6000/tm-rs6000.h.
8999 (TARGET_CREATE_INFERIOR_HOOK, rs6000_create_inferior): Likewise.
9000 * config/rs6000/tm-rs6000.h (struct frame_info): Remove declaration.
9001 (TEXT_SEGMENT_BASE): Remove.
9002 (IN_SOLIB_RETURN_TRAMPOLINE): Remove.
9003 (rs6000_in_solib_return_trampoline): Remove.
9004 (SKIP_TRAMPOLINE_CODE): Remove.
9005 (rs6000_skip_trampoline_code): Remove.
9006 (CHILD_SPECIAL_WAITSTATUS): Move to config/rs6000/nm-rs6000.h.
9007 (TARGET_CREATE_INFERIOR_HOOK, rs6000_create_inferior): Likewise.
9008 (FP0_REGNUM): Remove.
9009 (rs6000_find_toc_address_hook): Move to rs6000-tdep.h.
9010 (rs6000_set_host_arch_hook): Remove.
9011 * Makefile.in (rs6000-nat.o): Add dependency on $(rs6000_tdep_h).
9012 (rs6000-aix-tdep.o): Add dependency on $(ppc_tdep_h).
9013 * ppc-tdep.h (struct gdbarch_tdep): Add field text_segment_base.
9014 * rs6000-aix-tdep.c: Include "ppc-tdep.h".
9015 (rs6000_aix_init_osabi): Set text_segment_base tdep field.
9016 * rs6000-nat.c: Include "rs6000-tdep.h".
9017 (exec_one_dummy_insn): Replace TEXT_SEGMENT_BASE by tdep field.
9018 (set_host_arch): Rename to ...
9019 (rs6000_create_inferior): ... this. Make public.
9020 (_initialize_core_rs6000): Do not set rs6000_set_host_arch_hook.
9021 * rs6000-tdep.c (rs6000_set_host_arch_hook): Remove.
9022 (rs6000_create_inferior): Remove.
9023 (branch_dest): Replace TEXT_SEGMENT_BASE by tdep field.
9024 (rs6000_gdbarch_init): Call set_gdbarch_fp0_regnum,
9025 set_gdbarch_in_solib_return_trampoline, and
9026 set_gdbarch_skip_trampoline_code.
9027 * rs6000-tdep.h (rs6000_find_toc_address_hook): Move here
9028 from config/rs6000/tm-rs6000.h.
9030 2007-02-27 Joel Brobecker <brobecker@adacore.com>
9032 * buildsym.c (record_producer): Do nothing if no producer is provided.
9034 2007-02-27 Nick Roberts <nickrob@snap.net.nz>
9036 * varobj.c (varobj_update): Remove unused local. Use gdb_assert
9037 to check changelist is non-NULL. Call error if the frontend tries
9038 to update a non-root variable.
9040 * varobj.h (enum varobj_update_error): Delete WRONG_PARAM value.
9042 2007-02-27 Daniel Jacobowitz <dan@codesourcery.com>
9044 * dwarf2-frame.c (dwarf2_frame_cache, dwarf2_frame_this_id)
9045 (dwarf2_frame_sniffer): Update.
9046 (dwarf2_signal_frame_this_id): New function.
9047 (dwarf2_signal_frame_unwind): Use it.
9048 (dwarf2_frame_base_sniffer): Use frame_unwind_address_in_block.
9049 * frame.c (frame_func_unwind): Add this_type argument.
9050 (get_frame_func): Update.
9051 (frame_unwind_address_in_block): Add this_type argument and check it.
9053 (get_frame_address_in_block): Update.
9054 * frame.h (enum frame_type): Move higher in the file.
9055 (frame_unwind_address_in_block, frame_func_unwind): Add enum frame_type
9058 * alpha-mdebug-tdep.c, alpha-tdep.c, amd64-tdep.c, amd64obsd-tdep.c,
9059 arm-tdep.c, avr-tdep.c, cris-tdep.c, frv-tdep.c, h8300-tdep.c,
9060 hppa-tdep.c, i386-tdep.c, i386obsd-tdep.c, ia64-tdep.c,
9061 libunwind-frame.c, m32c-tdep.c, m32r-linux-tdep.c, m32r-tdep.c,
9062 m68hc11-tdep.c, m68k-tdep.c, m88k-tdep.c, mips-mdebug-tdep.c,
9063 mips-tdep.c, mn10300-tdep.c, mt-tdep.c, rs6000-tdep.c, s390-tdep.c,
9064 score-tdep.c, sh-tdep.c, sh64-tdep.c, sparc-tdep.c,
9065 sparc64obsd-tdep.c, spu-tdep.c, v850-tdep.c, vax-tdep.c,
9066 xstormy16-tdep.c, xtensa-tdep.c: Update calls to
9067 frame_func_unwind and frame_unwind_address_in_block to specify
9068 the frame type. Use frame_unwind_address_in_block instead of
9069 frame_pc_unwind in sniffers.
9071 2007-02-27 Daniel Jacobowitz <dan@codesourcery.com>
9073 * frame.c (deprecated_selected_frame): Rename to...
9074 (selected_frame): ...this. Make static.
9075 (get_selected_frame, select_frame): Update.
9076 * frame.h (deprected_select_frame): Delete.
9077 (deprecated_safe_get_selected_frame): Update comments.
9079 * breakpoint.c, cli/cli-cmds.c, f-valprint.c, infcmd.c, inflow.c,
9080 infrun.c, stack.c, tui/tui-disasm.c, tui/tui-source.c,
9081 tui/tui-winsource.c, valops.c, varobj.c, findvar.c, macroscope.c,
9082 parse.c, regcache.h, sh64-tdep.c, tui/tui-hooks.c, tui/tui-win.c,
9083 tui/tui.c: Replace references to deprecated_selected_frame.
9085 2007-02-27 Fred Fish <fnf@specifix.com>
9087 * rs6000-tdep.c (skip_prologue): Recognize addi instructions that
9088 directly decrement the stack pointer, accumulate their operand into
9089 the stack offset, and mark the function as not being frameless.
9091 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
9093 * arch-utils.c (selected_byte_order): New.
9094 * arch-utils.h (selected_byte_order): New prototype.
9095 * remote-sim.c (gdbsim_open): Use selected_byte_order.
9097 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
9099 * symfile.c (place_section): Check SEC_ALLOC. Do not check VMA.
9100 (default_symfile_offsets): Check VMA here. Update section VMAs.
9102 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
9104 * remote.c (init_remote_state): Add special handling for placeholder
9107 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
9109 * Makefile.in (XMLFILES): Include $(TDEP_XML).
9110 (filenames_h): New variable.
9111 (clean): Clean up xml-builtin.c and stamp-xml.
9112 (arm-linux-nat.o): Update.
9113 * config/arm/linux.mh (TDEP_XML): Define.
9114 * arm-linux-nat.c (PTRACE_GETWMMXREGS, PTRACE_SETWMMXREGS): Define.
9115 (arm_linux_has_wmmx_registers): New.
9116 (GET_THREAD_ID): Fix typo.
9117 (IWMMXT_REGS_SIZE): Define.
9118 (fetch_wmmx_regs, store_wmmx_regs): New.
9119 (arm_linux_fetch_inferior_registers): Use fetch_wmmx_regs.
9120 (arm_linux_store_inferior_registers): Use store_wmmx_regs.
9121 (super_xfer_partial, arm_linux_xfer_partial): New.
9122 (_initialize_arm_linux_nat): Use them.
9123 * xml-support.c (fetch_xml_builtin): Move outside HAVE_LIBEXPAT.
9124 (xml_builtin_xfer_partial): New function.
9125 * xml-support.h (xml_builtin_xfer_partial): New prototype.
9126 * NEWS: Update mention of iWMMXt support.
9128 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
9130 * arm-tdep.c (arm_scan_prologue): Do not record FPA register saves
9131 if there are no FPA registers.
9132 (arm_dwarf_reg_to_regnum): New function.
9133 (arm_register_type, arm_register_name): Return minimal values for
9134 unsupported registers.
9135 (arm_register_sim_regno): Handle iWMMXt registers.
9136 (arm_gdbarch_init): Record missing FPA registers if indicated by
9137 a target description. Recognize iWMMXt registers. Only register
9138 "info float" for FPA. Use ARM_NUM_REGS. Register
9139 arm_dwarf_reg_to_regnum.
9140 * arm-tdep.h (enum gdb_regnum): Add ARM_NUM_REGS and iWMMXt
9142 (struct gdbarch_tdep): Add have_fpa_registers.
9143 * features/xscale-iwmmxt.xml: Update capitalization.
9144 * regformats/arm-with-iwmmxt.dat: Regenerated.
9146 2007-02-24 Kevin Buettner <kevinb@redhat.com>
9148 * NEWS (New targets): Add entry for the Toshiba Media Processor.
9150 2007-02-23 Kevin Buettner <kevinb@redhat.com>
9152 * MAINTAINERS (mep): New target.
9154 2007-02-23 Kevin Buettner <kevinb@redhat.com>
9156 From Jim Blandy, Dave Brolley, Kevin Buettner, Don Howard, and
9158 * Makefile.in (elf_mep_h, mep_desc_h, mep_opc_h): New variables.
9159 (mep-tdep.o): New rule.
9160 * configure.tgt (mep-*-*): New target.
9161 * mep-tdep.c: New file.
9162 * config/mep/mep.mt: New file.
9164 2007-02-22 Markus Deuling <deuling@de.ibm.com>
9166 * infrun.c (inferior_stop_reason, print_stop_reason): Remove
9167 BREAKPOINT_HIT and STOP_UNKNOWN.
9169 2007-02-22 Markus Deuling <deuling@de.ibm.com>
9171 * valops.c (value_ind): Fix unary * handling of TYPE_CODE_INT.
9173 2007-02-20 Joel Brobecker <brobecker@adacore.com>
9175 * gdb_expat.h (XMLCALL): Define if not already defined.
9177 2007-02-20 Andreas Schwab <schwab@suse.de>
9179 * Makefile.in (symfile.o): Update dependencies.
9181 2007-02-20 Daniel Jacobowitz <dan@codesourcery.com>
9183 * MAINTAINERS: Disable -Werror for cris simulator. Build
9184 sparc64-solaris2.10 instead of the broken sparc-elf.
9185 * solib-frv.c: Include "solib.h".
9186 * Makefile.in (solib-frv.o): Update.
9187 * mt-tdep.c (mt_gdbarch_init): Correct typo in floatformats patch.
9188 * xtensa-tdep.c (xtensa_regset_from_core_section): Cast size_t to int.
9189 (xtensa_frame_this_id, xtensa_frame_prev_register)
9190 (xtensa_push_dummy_call): Use %p.
9192 2007-02-16 Daniel Jacobowitz <dan@codesourcery.com>
9194 * avr-tdep.c, hppa-tdep.c, hppabsd-tdep.c, i386-tdep.c,
9195 ia64-tdep.c, m68k-tdep.c, mips-linux-tdep.c, ppcobsd-tdep.c,
9196 sparc-linux-tdep.c: Include "gdbtypes.h" instead of "floatformat.h".
9197 * Makefile.in (avr-tdep.o, hppabsd-tdep.o, hppa-tdep.o, i386-tdep.o)
9198 (ia64-tdep.o, m68k-tdep.o, mips-linux-tdep.o, ppcobsd-tdep.o)
9199 (sparc-linux-tdep.o): Update.
9201 2007-02-15 Maxim Grigoriev <maxim2405@gmail.com>
9203 * xtensa-tdep.h (xtensa_reg_mask_t): New.
9204 (xtensa_mask_t): Change mask field to be a separate array.
9205 * xtensa-tdep.c (extract_call_winsize, xtensa_pseudo_register_read)
9206 (xtensa_pseudo_register_write, xtensa_unwind_pc)
9207 (xtensa_unwind_dummy_id, xtensa_push_dummy_call)
9208 (xtensa_breakpoint_from_pc): Remove implicit type casting.
9209 * xtensa-config.c (mask0, mask1, mask2, mask3, mask4, mask5)
9210 (mask6, mask7, mask8, mask9, mask10, mask11, mask12, mask13)
9211 (mask14, mask15): Rename to
9212 (xtensa_mask0, xtensa_mask1, xtensa_mask2, xtensa_mask3)
9213 (xtensa_mask4, xtensa_mask5, xtensa_mask6, xtensa_mask7)
9214 (xtensa_mask8, xtensa_mask9, xtensa_mask10, xtensa_mask11)
9215 (xtensa_mask12, xtensa_mask13, xtensa_mask14, xtensa_mask15): this.
9216 (xtensa_submask0, xtensa_submask1, xtensa_submask2, xtensa_submask3)
9217 (xtensa_submask4, xtensa_submask5, xtensa_submask6, xtensa_submask7)
9218 (xtensa_submask8, xtensa_submask9, xtensa_submask10)
9219 (xtensa_submask11, xtensa_submask12, xtensa_submask13)
9220 (xtensa_submask14, xtensa_submask15): New.
9221 (rmap): Follow strict aliasing rules doing static initialization.
9223 2007-02-13 Daniel Jacobowitz <dan@codesourcery.com>
9225 * target-descriptions.c (tdesc_named_type): Move code_ptr and data_ptr
9226 handling from here...
9227 (tdesc_register_type): ...to here.
9228 * xml-tdesc.c (tdesc_start_reg): Allow code_ptr and data_ptr.
9229 * features/arm-core.xml: Use code_ptr and data_ptr.
9231 2007-02-13 Denis Pilat <denis.pilat@st.com>
9233 * varobj.h (enum varobj_update_error): New enum.
9234 * varobj.c (struct varobj_root): Add is_valid member.
9235 (varobj_get_type): Check for invalid varobj.
9236 (varobj_get_attributes): Likewise.
9237 (variable_editable):Likewise.
9238 (varobj_update): Likewise. Use varobj_update_error.
9239 (new_root_variable): Set root varobj as valid by default.
9240 (varobj_invalidate): New function.
9241 * symfile.c (clear_symtab_users): Use varobj_invalidate.
9242 * mi/mi-cmd-var.c (varobj_update_one): Change return type to void.
9243 Use varobj_update_error.
9245 2007-02-12 Pierre Muller <muller@ics.u-strasbg.fr>
9248 * dwarfread.c (set_cu_language): Recognize DW_LANG_Pascal83 as
9249 Pascal language marker.
9250 * dwarf2read.c (set_cu_language): Likewise.
9252 2007-02-12 Corinna Vinschen <vinschen@redhat.com>
9254 * win32-nat.c (win32_wait): Reset terminal pgrp to GDB.
9255 (do_initial_win32_stuff): Call terminal_init_inferior_with_pgrp
9256 instead of target_terminal_init since inferior_ptid isn't set yet.
9258 2007-02-10 Pedro Alves <pedro_alves@portugalmail.pt>
9260 * MAINTAINERS (Write After Approval): Add myself.
9262 2007-02-09 Fred Fish <fnf@specifix.com>
9264 Based on work by Apple Computer, Inc.
9265 * event-top.c (async_request_quit): Call quit() whenever either
9266 quit_flag is set or immediate_quit is set.
9268 2007-02-09 Gabriel Dos Reis <gdr@integrable-solutions.net>
9270 * ada-lang.c (remove_out_of_scope_renamings): Change third parameter's
9271 type to a pointer to const struct block.
9272 (ada_lookup_symbol_list): Don't cast away constness when calling
9273 remove_out_of_scope_renamings.
9275 2007-02-09 Gabriel Dos Reis <gdr@integrable-solutions.net>
9277 * linux-nat.c (linux_nat_find_memory_regions): Don't check the
9278 address of 'filename'; it is always non null.
9280 2007-02-09 Joel Brobecker <brobecker@adacore.com>
9282 * exec.c (add_to_section_table): Do not discard empty sections.
9284 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
9286 * features/Makefile, features/arm-with-iwmmxt.xml,
9287 features/gdbserver-regs.xsl, features/number-regs.xsl,
9288 features/sort-regs.xsl, features/xscale-iwmmxt.xml: New files.
9289 * regformats/arm-with-iwmmxt.dat: Generate.
9290 * NEWS: Mention iWMMXt.
9292 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
9294 * Makefile.in (arm-tdep.o, eval.o, target-descriptions.o)
9295 (xml-tdesc.o): Update.
9296 * xml-support.c: Add a comment.
9297 (gdb_xml_enums_boolean): New variable.
9298 (gdb_xml_parse_attr_enum): Use strcasecmp.
9299 * xml-support.h (gdb_xml_enums_boolean): Declare.
9300 * xml-tdesc.c (struct tdesc_parsing_data): Record current_feature,
9301 next_regnum, and current_union.
9302 (tdesc_start_feature, tdesc_start_reg, tdesc_start_union)
9303 (tdesc_end_union, tdesc_start_field, tdesc_start_vector)
9304 (field_attributes, union_children, reg_attributes, union_attributes)
9305 (vector_attributes, feature_attributes, feature_children): New.
9306 (target_children): Make static. Add <feature>.
9307 (tdesc_elements): Make static.
9308 * target-descriptions.c (struct tdesc_reg, tdesc_reg_p, type_p)
9309 (struct tdesc_feature, tdesc_feature_p): New types.
9310 (struct target_desc): Add features member.
9311 (struct tdesc_arch_data, tdesc_data): New.
9312 (target_find_description): Clarify error message. Warn about
9313 ignored register descriptions.
9314 (tdesc_has_registers, tdesc_find_feature, tdesc_feature_name)
9315 (tdesc_named_type, tdesc_data_init, tdesc_data_alloc)
9316 (tdesc_data_cleanup, tdesc_numbered_register)
9317 (tdesc_numbered_register_choices, tdesc_find_register)
9318 (tdesc_register_name, tdesc_register_type)
9319 (tdesc_remote_register_number, tdesc_register_reggroup_p)
9320 (set_tdesc_pseudo_register_name, set_tdesc_pseudo_register_type)
9321 (set_tdesc_pseudo_register_reggroup_p, tdesc_use_registers)
9322 (tdesc_free_reg, tdesc_create_reg, tdesc_free_feature)
9323 (tdesc_create_feature, tdesc_record_type): New.
9324 (free_target_description): Free features.
9325 (_initialize_target_descriptions): Initialize tdesc_data.
9326 * arch-utils.c (default_remote_register_number): New.
9327 * arch-utils.h (default_remote_register_number): New prototype.
9328 * target-descriptions.h (set_tdesc_pseudo_register_name)
9329 (set_tdesc_pseudo_register_type, set_tdesc_pseudo_register_reggroup_p)
9330 (tdesc_use_registers, tdesc_data_alloc, tdesc_data_cleanup)
9331 (tdesc_numbered_register, tdesc_numbered_register_choices)
9332 (tdesc_has_registers, tdesc_find_feature, tdesc_feature_name)
9333 (tdesc_named_type, tdesc_create_feature, tdesc_record_type)
9334 (tdesc_create_reg): Declare.
9335 * gdbarch.sh (remote_register_number): New entry.
9336 * gdbarch.c, gdbarch.h: Regenerate.
9337 * remote.c (init_remote_state): Use gdbarch_remote_register_number.
9338 * features/gdb-target.dtd: Add feature, reg, vector, union, and field.
9340 * arm-tdep.c (arm_register_aliases): New.
9341 (arm_register_name_strings): Rename to...
9342 (arm_register_names): ...this. Make const. Delete the old version.
9343 (current_option, arm_register_byte): Delete.
9344 (set_disassembly_style): Simplify. Do not adjust arm_register_names.
9345 (value_of_arm_user_reg): New.
9346 (arm_gdbarch_init): Verify any described registers. Call
9347 tdesc_use_registers. Don't use arm_register_byte. Create aliases
9348 for standard register names.
9349 (_initialize_arm_tdep): Do not adjust arm_register_names.
9350 * user-regs.c (struct user_reg): Add baton member.
9351 (append_user_reg, user_reg_add_builtin, user_regs_init)
9352 (user_reg_add, value_of_user_reg): Use a baton for user
9354 * std-regs.c: Update.
9355 * user-regs.h (user_reg_read_ftype, user_reg_add_builtin)
9356 (user_reg_add): Add baton argument.
9357 * NEWS: Mention target description register support.
9358 * features/arm-core.xml, features/arm-fpa.xml: New.
9359 * eval.c (evaluate_subexp_standard): Allow ptype $register
9360 when the program is not running.
9362 2007-02-09 Nick Roberts <nickrob@snap.net.nz>
9364 * mi/mi-cmd-var.c (mi_cmd_var_create): Add value field.
9366 2007-02-08 Thiago Jung Bauermann <bauerman@br.ibm.com>
9368 * rs6000-tdep.c (gdb_print_insn_powerpc): Set
9369 info->disassembler_options to "any".
9371 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
9373 * varobj.c (install_new_value): Only call value_get_print_value
9376 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
9378 Reported by timeless@gmail.com:
9379 * gdb/target.c (target_flash_erase): Do not return void value.
9380 (target_flash_done): Likewise.
9381 * gdb/cli/cli-cmds.c (source_command): Likewise.
9383 2007-02-08 Fred Fish <fnf@specifix.com>
9385 Based on work by Apple Computer, Inc.
9386 * event-top.c (handle_sigint): Set quit_flag.
9387 (async_request_quit): Don't set quit_flag. Avoid calling quit()
9388 if quit_flag has already been reset.
9390 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
9392 * ser-mingw.c (pipe_windows_close): Move variable initialization back
9395 2007-02-08 Fred Fish <fnf@specifix.com>
9397 * defs.h (request_quit): Remove declaration.
9398 * utils.c (request_quit): Remove definition.
9400 2007-02-08 Joel Brobecker <brobecker@gnat.com>
9401 Jan Kratochvil <jan.kratochvil@redhat.com>
9402 Daniel Jacobowitz <dan@codesourcery.com>
9404 * rs6000-tdep.c (bl_to_blrl_insn_p): New function.
9405 (skip_prologue): Allow bl->blrl used by PIC code.
9407 2007-02-08 Mark Kettenis <kettenis@gnu.org>
9408 Daniel Jacobowitz <dan@codesourcery.com>
9410 * cp-valprint.c (cp_print_value_fields, cp_print_value): Always
9411 initialize tmp_obstack.
9412 * p-valprint.c (pascal_object_print_value_fields)
9413 (pascal_object_print_value): Likewise.
9415 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
9417 * features/feature_to_c.sh: Use %s to avoid problems with nawk.
9419 2007-02-08 Mark Kettenis <kettenis@gnu.org>
9421 * sparcnbsd-tdep.c: Include "gdbtypes.h" instead of "floatformat.h".
9422 * Makefile.in (sparcnbsd-tdep.o): Update dependencies.
9424 2007-02-07 Daniel Jacobowitz <dan@codesourcery.com>
9426 * xml-tdesc.c (struct tdesc_xml_cache, tdesc_xml_cache_s)
9428 (tdesc_parse_xml): Cache expanded descriptions.
9430 2007-02-07 Daniel Jacobowitz <dan@codesourcery.com>
9432 * Makefile.in (XMLFILES): New.
9433 (COMMON_OBS): Add xml-builtin.o.
9434 (xml-builtin.c, stamp-xml): New rules.
9435 (xml-tdesc.o): Update.
9436 * features/feature_to_c.sh: New file.
9437 * xml-support.c (MAX_XINCLUDE_DEPTH): Define.
9438 (struct gdb_xml_parser): Add dtd_name and is_xinclude.
9439 (gdb_xml_start_element): Initialize scope after possibly reallocating
9440 scopes. Move cleanup later. Handle the XInclude description
9442 (gdb_xml_end_element): Only parse the body if there is a current element.
9443 Call XML_DefaultCurrent if there is no element.
9444 (gdb_xml_fetch_external_entity, gdb_xml_use_dtd): New.
9445 (struct xinclude_parsing_data, xinclude_start_include)
9446 (xinclude_end_include, xml_xinclude_default)
9447 (xml_xinclude_start_doctype, xml_xinclude_end_doctype)
9448 (xml_xinclude_xml_decl, xml_xinclude_cleanup, xinclude_attributes)
9449 (xinclude_elements, xml_process_xincludes, fetch_xml_builtin): New.
9450 * xml-support.h (xml_fetch_another, xml_process_xincludes)
9451 (fetch_xml_builtin, xml_builtin, gdb_xml_use_dtd): New declarations.
9452 * xml-tdesc.c (tdesc_parse_xml): Add fetcher_baton argument. Expand
9453 XInclude directives. Use the compiled in DTD.
9454 (fetch_xml_from_file): Add baton argument. Treat it as a containing
9455 directory name. Do not warn here.
9456 (file_read_description_xml): Update call. Warn here instead. Pass
9458 (fetch_available_features_from_target): New.
9459 (target_read_description_xml): Use it.
9460 * features/gdb-target.dtd: Add copyright notice. Use xinclude.dtd
9462 * features/xinclude.dtd: New file.
9464 2007-02-05 Daniel Jacobowitz <dan@codesourcery.com>
9466 * linux-thread-db.c (check_for_thread_db): Return early if we have
9467 no libthread_db support.
9469 2007-02-05 Daniel Jacobowitz <dan@codesourcery.com>
9471 * mi/mi-parse.h: Include <sys/time.h>.
9473 2007-02-05 Nick Roberts <nickrob@snap.net.nz>
9475 * mi/mi-cmd-stack.c (list_args_or_locals): Use common_val_print
9476 instead of print_variable_value to print values.
9478 2007-02-03 Nick Roberts <nickrob@snap.net.nz>
9480 * mi/mi-main.c: Numerous formatting changes.
9481 (mi_cmd_data_write_register_values): Replace clause inadvertantly
9482 removed in my previous change.
9484 2007-02-03 Eli Zaretskii <eliz@gnu.org>
9486 * mi/mi-main.c (mi_load_progress, timestamp, print_diff_now):
9487 Use 1000000L instead of 1000000.
9489 2007-02-03 Nick Roberts <nickrob@snap.net.nz>
9491 Based on work by Apple Computer, Inc.
9493 * configure.ac: Test for sys/resource.h and getrusage.
9494 * configure, config.in: Regenerate.
9496 * mi/mi-main.c: Include <sys/resource.h> if present.
9497 (rusage): Declare if HAVE_GETRUSAGE.
9498 (current_command_ts, do_timings): New static variables.
9499 (timestamp, print_diff_now, print_diff, timeval_diff):
9500 New static timing functions.
9501 (mi_cmd_enable_timings): New function for new MI command.
9502 (captured_mi_execute_command, mi_execute_async_cli_command):
9503 Call timing functions.
9505 * mi/mi-cmds.c (mi_cmds): Add entry for new MI command
9508 * mi/mi-cmds.h (mi_cmd_enable_timings): New extern.
9510 * mi/mi-parse.h: (mi_timestamp): New structure.
9511 (mi_parse): Add mi_timestamp* member.
9513 2007-02-02 Denis Pilat <denis.pilat@st.com>
9515 * thread.c (make_cleanup_restore_current_thread): New function.
9516 (info_threads_command): Use of make_cleanup_restore_current_thread
9517 to restore the current thread and the selected frame.
9518 (restore_selected_frame): New function.
9519 (struct current_thread_cleanup): Add frame_id field.
9520 (do_restore_current_thread_cleanup): Add restoring of the selected
9522 (make_cleanup_restore_current_thread): Likewise.
9523 (thread_apply_all_command): backup the selected frame while
9524 entering the function and restore it at exit.
9525 (thread_apply_command): Likewise.
9527 2007-02-02 Denis Pilat <denis.pilat@st.com>
9529 * MAINTAINERS (Write After Approval): Add myself to the list.
9531 2007-02-01 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
9533 * gdb/remote-m32r.sdi.c (m32r_fetch_register): Change PWD mask.
9534 (m32r_store_register): Ditto.
9536 2007-01-30 Vladimir Prus <vladimir@codesourcery.com>
9538 * ser-mingw.c (pipe_windows_open)
9539 (pipe_windows_read, pipe_windows_write): Declare
9540 variables at the top of the function.
9542 2007-01-29 Daniel Jacobowitz <dan@codesourcery.com>
9544 * doublest.c (floatformat_from_length): Use the right element from
9545 gdbarch floatformats.
9546 (floatformat_from_type, extract_typed_floating)
9547 (store_typed_floating): Likewise.
9548 * doublest.h: Remove declarations for undefined floatformat arrays.
9549 * gdbarch.sh (float_format, double_format, long_double_format): Change
9551 (pformat): Update for pairs.
9552 * gdbarch.c, gdbarch.h: Regenerated.
9553 * gdbtypes.c (floatformats_ieee_single, floatformats_ieee_double)
9554 (floatformats_ieee_double_littlebyte_bigword)
9555 (floatformats_i387_ext, floatformats_m68881_ext, floatformats_arm_ext)
9556 (floatformats_ia64_spill, floatformats_ia64_quad, floatformats_vax_f)
9557 (floatformats_vax_d): New variables.
9558 (builtin_type_ieee_single, builtin_type_ieee_double)
9559 (builtin_type_arm_ext, builtin_type_ia64_spill)
9560 (builtin_type_ia64_quad): Replace arrays with individual types.
9561 (builtin_type_ieee_single_big, builtin_type_ieee_single_little)
9562 (builtin_type_ieee_double_big, builtin_type_ieee_double_little)
9563 (builtin_type_ieee_double_littlebyte_bigword, builtin_type_i960_ext)
9564 (builtin_type_m88110_ext, builtin_type_m88110_harris_ext)
9565 (builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword)
9566 (builtin_type_ia64_spill_big, builtin_type_ia64_spill_little)
9567 (builtin_type_ia64_quad_big, builtin_type_ia64_quad_little): Delete
9568 unused and endian-specific types.
9569 (recursive_dump_type): Update for floatformat pairs.
9570 (build_flt): Move higher. Handle bit == -1. Take a floatformat pair.
9571 (build_gdbtypes): Use build_flt.
9572 (_initialize_gdbtypes): Update set of initialized types.
9573 * gdbtypes.h: Update declarations to match gdbtypes.c.
9574 (struct main_type): Store a pointer to two floatformats.
9575 * arch-utils.c (default_float_format, default_double_format): Delete.
9576 * arch-utils.h (default_float_format, default_double_format): Delete.
9578 * arm-tdep.c, avr-tdep.c, hppa-tdep.c, hppabsd-tdep.c, i386-tdep.c,
9579 ia64-tdep.c, iq2000-tdep.c, m68k-tdep.c, m88k-tdep.c,
9580 mips-linux-tdep.c, mips-tdep.c, mt-tdep.c, ppcobsd-tdep.c,
9581 sparc-linux-tdep.c, sparc-tdep.c, sparcnbsd-tdep.c, spu-tdep.c,
9582 vax-tdep.c, alpha-tdep.c, ppc-sysv-tdep.c: Update.
9584 2007-01-29 Joel Brobecker <brobecker@adacore.com>
9586 * target.c (maintenance_print_target_stack): New function.
9587 (initialize_targets): Add new "maintenance print target-stack"
9590 2007-01-28 Mark Kettenis <kettenis@gnu.org>
9592 * dwarf2read.c (new_symbol): Handle DW_AT_decl_file being zero.
9594 2007-01-27 Daniel Jacobowitz <dan@codesourcery.com>
9596 * dwarf2loc.h (struct dwarf2_locexpr_baton): Change size to a long.
9597 (struct dwarf2_loclist_baton): Likewise.
9599 2007-01-27 Eli Zaretskii <eliz@gnu.org>
9601 * cli/cli-script.c: Include breakpoint.h.
9602 (build_command_line): Require arguments only for if and while
9604 (get_command_line, execute_user_command, execute_control_command):
9605 Fix wording of warning messages.
9606 (print_command_lines): Print breakpoint commands.
9607 (execute_control_command): Call commands_from_control_command to
9608 handle the `commands' command inside a body of a flow-control
9610 (read_next_line): Recognize the `commands' command and build a
9611 command line structure for it.
9612 (recurse_read_control_structure, read_command_lines): Handle
9613 `commands' similarly to `if' and `while'.
9615 * breakpoint.c (get_number_trailer): Document the special meaning
9616 of NULL as the first argument PP.
9617 (commands_from_control_command): New function.
9619 * breakpoint.h (commands_from_control_command): Add prototype.
9621 * defs.h (commands_control): New enumerated value for enum
9622 command_control_type.
9624 2007-01-26 Joel Brobecker <brobecker@adacore.com>
9626 * ada-lang.c (ada_exception_breakpoint_ops): Fix typo in function name.
9627 (ada_exception_sal): Update accordingly.
9629 2007-01-26 Jan Kratochvil <jan.kratochvil@redhat.com>
9631 * c-valprint.c (c_val_print): Require strings to be of no-signed CHARs.
9632 * NEWS: Describe CHAR array vs. string identifcation rules.
9634 2007-01-25 Paul Brook <paul@codesourcery.com>
9636 * arm-tdep.c (arm_get_next_pc): Fix bitfield off-by-one error.
9638 2007-01-24 Jim Blandy <jimb@codesourcery.com>
9640 * dwarf2loc.c (dwarf2_evaluate_loc_desc): When the location
9641 expression is empty, bother to return the 'optimized out' value we
9642 construct. (Thanks to Carl Burch.)
9644 2007-01-24 Vladimir Prus <vladimir@codesourcery.com>
9646 * varobj.c (c_value_of_root, c_value_of_child)
9647 (cplus_describe_child): Don't call release_value.
9649 2007-01-24 Thiemo Seufer <ths@mips.com>
9651 * mips-linux-tdep.c (mips_linux_n64_rt_sigframe): Fix struct
9654 2007-01-24 Vladimir Prus <vladimir@codesourcery.com>
9656 Refactor getting children name, value and type access
9658 * varobj.c (get_type_deref): Remove.
9659 (adjust_value_for_child_access): New.
9660 (c_number_of_children): Use the above.
9661 (c_describe_child): Likewise.
9662 (enum accessibility): New.
9663 (match_accessibility): New function.
9664 (cplus_describe_child): New function.
9665 (cplus_name_of_child, cplus_value_of_child)
9666 (cplus_type_of_child): Reimplement in terms
9667 of cplus_describe_child.
9668 (cplus_number_of_children): Use
9669 adjust_value_for_child_access.
9671 2007-01-24 Vladimir Prus <vladimir@codesourcery.com>
9673 Fix computation of the 'editable' attribute and
9674 value changeability for for references.
9675 * varobj.c (get_value_type): New function.
9676 (c_variable_editable): Use get_value_type.
9677 (varobj_value_is_changeable): Likewise.
9679 2007-01-24 Joel Brobecker <brobecker@adacore.com>
9681 * source.c (find_and_open_source): Try rewriting the source
9682 path inside filename if dirname is NULL.
9684 2007-01-24 Joel Brobecker <brobecker@adacore.com>
9686 * dwarf2read.c (add_partial_symbol): Create an extra partial
9687 symbol in the VAR_DOMAIN for Ada structures, unions or enums.
9688 (new_symbol): Likewise for symbols.
9690 2007-01-24 Nick Roberts <nickrob@snap.net.nz>
9692 * mi/mi-main.c (mi_cmd_execute): Call free_all_values.
9694 2007-01-23 Vladimir Prus <vladimir@codesourcery.com>
9696 * value.c (value_primitive_field): Copy the full 'location'
9697 contents, instead of assuming that copying ADDRESS will
9698 bring over everything in the union. Remove obsolete comment.
9700 2007-01-23 Masaki Muranaka <monaka@monami-software.com>
9702 * m32c-tdep.c (make_regs, m32c_analyze_prologue)
9703 (m32c_skip_trampoline_code, m32c_m16c_address_to_pointer)
9704 (m32c_m16c_pointer_to_address): Separate code from declarations.
9706 2007-01-23 Nick Hudson <nick.hudson@dsl.pipex.com>
9708 * target.c (update_current_target): Correct typo.
9710 2007-01-22 Masaki Muranaka <monaka@monami-software.com>
9712 * xstormy16-tdep.c (xstormy16_skip_prologue): Separate code from a
9715 2007-01-11 Andrew Cagney <cagney@redhat.com>
9716 Daniel Jacobowitz <dan@codesourcery.com>
9717 Jan Kratochvil <jan.kratochvil@redhat.com>
9719 * dwarf2-frame.c (execute_cfa_program): New support of
9720 `DW_CFA_GNU_negative_offset_extended'.
9722 2007-01-21 Daniel Jacobowitz <dan@codesourcery.com>
9724 * NEWS: Mention flash support for "load" and new remote packets.
9726 2007-01-21 Markus Deuling <deuling@de.ibm.com>
9728 * breakpoint.c (delete_command): Skip redundant loop iterations.
9730 2007-01-21 Daniel Jacobowitz <dan@codesourcery.com>
9732 * gdbarch.sh (register_type): Update comment.
9733 * gdbarch.h: Regenerated.
9734 * arch-utils.c (generic_register_size): Call register_type.
9735 * ia64-tdep.c (ia64_extract_return_value): Likewise.
9736 * m32c-tdep.c (check_for_saved): Likewise.
9737 * mips-tdep.c (mips_print_register, print_gp_register_row)
9738 (mips_print_registers_info): Likewise.
9739 * sh-tdep.c (sh_pseudo_register_read, sh_pseudo_register_write):
9741 * sh64-tdep.c (sh64_pseudo_register_read, sh64_pseudo_register_write)
9742 (sh64_do_register, sh64_print_register)
9743 (sh64_media_print_registers_info): Likewise.
9744 * tui/tui-regs.c (tui_register_format): Likewise.
9746 2007-01-21 Daniel Jacobowitz <dan@codesourcery.com>
9748 * objfiles.h (ALL_PRIMARY_SYMTABS): Define.
9750 * ada-lang.c (symtab_for_sym, ada_lookup_symbol_list)
9751 (ada_lookup_symbol): Use ALL_PRIMARY_SYMTABS.
9752 * cp-support.c (make_symbol_overload_list_qualified): Likewise.
9753 * symtab.c (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
9754 (basic_lookup_transparent_type, find_pc_sect_symtab, search_symbols)
9755 (make_symbol_completion_list): Likewise.
9757 2007-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
9758 Daniel Jacobowitz <dan@codesourcery.com>
9760 * buildsym.c (end_symtab): Use preallocated symtab if available.
9761 Fill in SYMBOL_SYMTAB.
9762 * buildsym.h (struct subfile): Add symtab member.
9763 * dwarf2read.c (struct dwarf2_cu): Add line_header.
9764 (struct file_entry): Add symtab.
9765 (free_cu_line_header): New function.
9766 (read_file_scope): Use it. Save line_header in the cu. Process
9768 (add_file_name): Initialize new symtab member.
9769 (dwarf_decode_lines): Create symtabs for included files.
9770 (new_symbol): Set SYMBOL_SYMTAB.
9771 * symtab.c (lookup_symbol): Use SYMBOL_SYMTAB.
9772 (search_symbols): Likewise.
9773 * symtab.h (struct symbol): Add symtab member.
9774 (SYMBOL_SYMTAB): Define.
9776 2007-01-20 Daniel Jacobowitz <dan@codesourcery.com>
9778 * symfile.c (allocate_symtab): Remove INIT_EXTRA_SYMTAB_INFO.
9780 2007-01-20 Daniel Jacobowitz <dan@codesourcery.com>
9782 * arch-utils.c (show_endian): Correct reversed condition.
9784 2007-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
9786 * MAINTAINERS (Write After Approval): Add myself.
9788 2007-01-16 Daniel Jacobowitz <dan@codesourcery.com>
9789 Vladimir Prus <vladimir@codesourcery.com>
9791 Fix 'selected frame' varobjs.
9792 * varobj.c (struct varobj): Remove the error field.
9793 (varobj_set_value): Don't check var->error.
9794 (install_new_value): Don't set var->error.
9795 (varobj_update): Always pass the new value
9796 of the root via install_new_value.
9797 (create_child): Don't set error field.
9798 (new_variable): Likewise.
9799 (c_value_of_root): Always reevaluate the value
9800 of selected frame varobjs in the selected frame.
9801 Don't call reinit_frame_cache.
9803 2007-01-15 Joel Brobecker <brobecker@adacore.com>
9805 * source.c (_initialize_source): Improve the help text of
9806 the substitute-path commands.
9808 2007-01-14 Mark Kettenis <kettenis@gnu.org>
9810 * frv-tdep.c (frv_gdbarch_init, frv_register_name)
9811 (frv_breakpoint_from_pc, frv_gdbarch_adjust_breakpoint_address)
9812 (frv_skip_prologue): Remove prototypes.
9813 (frv_adjust_breakpoint_address): Renamed from
9814 frv_gdbarch_adjust_breakpoint_address.
9815 (frv_gdbarch_init): Adjust.
9817 2007-01-13 Mark Kettenis <kettenis@gnu.org>
9819 * gdbarch.sh (deprecated_extract_return_value)
9820 (deprecated_store_return_value): Remove.
9821 (extract_return_value, store_return_value): Remove default values.
9822 * gdbarch.c, gdbarch.h: Regenerate.
9823 * arch-utils.c, arch-utils.h (legacy_extract_return_value)
9824 (legacy_store_return_value): Remove.
9825 * regcache.c, regcache.h (deprecated_grub_regcache_for_registers):
9828 * mi/mi-main.c: Remove obsolete comment.
9830 * regcache.c, regcache.h (deprecated_register_bytes)
9831 (deprecated_read_register_bytes)
9832 (deprecated_write_register_bytes): Remove.
9834 * frame.c (get_frame_register_bytes, put_frame_register_bytes):
9835 Don't forget to move destination pointer.
9837 2007-01-01 Mark Kettenis <kettenis@gnu.org>
9839 * config/i386/nm-i386gnu.h (CHILD_PREPARE_TO_STORE): Remove.
9841 2007-01-11 Ulrich Weigand <uweigand@de.ibm.com>
9843 * spu-tdep.c (spu_analyze_prologue): Fix erroneous backtrace
9844 past entry function with recent newlib.
9846 2007-01-11 Vladimir Prus <vladimir@codesourcery.com>
9848 * gdb.texinfo (GDB/MI Variable Objects): Improve the
9849 introduction. Specify -var-update more exactly.
9851 2007-01-11 Daniel Jacobowitz <dan@codesourcery.com>
9853 * frame.c (get_prev_frame_1): Check PC_REGNUM before using it.
9855 2007-01-10 Jim Blandy <jimb@codesourcery.com>
9857 * MAINTAINERS (Global Maintainers): Ulrich Weigand has accepted
9858 the Global Maintainers' invitation to be a global maintainer.
9860 2007-01-10 Daniel Jacobowitz <dan@codesourcery.com>
9862 * infrun.c (singlestep_pc): New variable.
9863 (resume): Set singlestep_pc.
9864 (context_switch): Add a debugging message. Flush the frame cache.
9865 (handle_inferior_event): Add debugging messages. Handle thread
9866 hops when a software single step has completed. Let context_switch
9867 handle flushing the frame cache.
9869 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
9871 * NEWS: Mention target descriptions, "set tdesc filename",
9872 "unset tdesc filename", "show tdesc filename", and
9873 qXfer:features:read.
9874 * arch-utils.c (choose_architecture_for_target): New function.
9875 (gdbarch_info_fill): Call it.
9876 * target-descriptions.c (struct property): Make members non-const.
9877 (struct target_desc): Add arch member.
9878 (target_description_filename): New variable.
9879 (target_find_description): Try via XML first.
9880 (tdesc_architecture): New.
9881 (free_target_description, make_cleanup_free_target_description): New.
9882 (set_tdesc_property): Call xstrdup.
9883 (set_tdesc_architecture, tdesc_set_cmdlist, tdesc_show_cmdlist)
9884 (tdesc_unset_cmdlist, unset_tdesc_cmd, unset_tdesc_filename_cmd)
9885 (set_tdesc_cmd, show_tdesc_cmd, set_tdesc_filename_cmd)
9886 (show_tdesc_filename_cmd, _initialize_target_descriptions): New.
9887 * target-descriptions.h (tdesc_architecture)
9888 (make_cleanup_free_target_description, set_tdesc_architecture): New
9890 * Makefile.in (SFILES): Add xml-tdesc.c.
9891 (COMMON_OBS): Add xml-tdesc.o.
9892 (target-descriptions.o): Update.
9893 (xml-tdesc.o): New rule.
9894 * xml-tdesc.c, xml-tdesc.h: New files.
9895 * remote.c (PACKET_qXfer_features): New enum.
9896 (remote_protocol_features): Add qXfer:features:read.
9897 (remote_xfer_partial): Handle TARGET_OBJECT_AVAILABLE_FEATURES.
9898 (_initialize_remote): Register qXfer:features:read.
9899 * target.h (enum target_object): Add TARGET_OBJECT_AVAILABLE_FEATURES.
9900 * features/gdb-target.dtd: New file.
9902 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
9904 * copyright.sh: Clarify error.
9906 2007-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
9908 * symtab.c (matching_bfd_sections): Fix VMA matching for
9911 2007-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
9913 * minsyms.c (lookup_minimal_symbol_by_pc_section): Handle
9916 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
9918 Updated copyright notices for most files.
9920 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
9922 * copyright.sh (prunes): Add step-line.inp and step-line.c.
9924 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
9926 * configure.ac (DEBUGDIR_RELOCATABLE): Define for debugdir inside
9928 (TARGET_SYSTEM_ROOT_RELOCATABLE): Allow for exec_prefix being
9930 * configure, config.in: Regenerate.
9931 * defs.h (debug_file_directory): Declare.
9932 * main.c (captured_main): Canonicalize gdb_sysroot. Assume
9933 TARGET_SYSTEM_ROOT is defined. Initialize debug_file_directory and
9934 relocate it if DEBUGDIR_RELOCATABLE.
9935 * symfile.c (debug_file_directory): Make non-static.
9936 (find_separate_debug_file): Look for debug info for SYSROOT/PATH
9937 in DEBUGDIR/PATH if DEBUGDIR is inside SYSROOT.
9938 (_initialize_symfile): Don't initialize debug_file_directory here.
9940 2007-01-09 Jim Blandy <jimb@codesourcery.com>
9942 * score-tdep.c (score_push_dummy_call): Don't mix declarations and
9945 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
9947 * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Use
9948 frame_unwind_register to recurse.
9949 * alpha-tdep.c (alpha_sigtramp_frame_prev_register): Likewise.
9950 (alpha_heuristic_frame_prev_register): Likewise.
9951 * h8300-tdep.c (h8300_frame_prev_register): Likewise.
9952 * m32c-tdep.c (m32c_prev_register): Likewise.
9953 * frame.c (frame_register_unwind_location): Remove FIXME.
9955 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
9956 Eli Zaretskii <eliz@gnu.org>
9958 * copyright.sh: New file.
9960 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
9962 * configure.ac: Check for XML_StopParser.
9963 * xml-support.c (gdb_xml_body_text): Check for an error.
9964 (gdb_xml_start_element_wrapper): Conditionalize call to XML_StopParser.
9965 (gdb_xml_end_element_wrapper): Likewise.
9966 * config.in, configure: Regenerated.
9968 2007-01-08 Daniel Jacobowitz <dan@codesourcery.com>
9970 * varobj.c (install_new_value): Always update print_value.
9971 (value_get_print_value): Immediately return NULL for missing
9974 2007-01-08 Jim Blandy <jimb@codesourcery.com>
9976 * configure.ac: Tighten pattern for extracting value of
9977 DEPRECATED_TM_FILE from the target makefile fragment.
9978 * configure: Regenerated.
9980 2007-01-08 Daniel Jacobowitz <dan@codesourcery.com>
9982 * linux-nat.c (struct simple_pid_list): Add status.
9983 (add_to_pid_list): Record the PID's status.
9984 (linux_record_stopped_pid): Likewise. Make static.
9985 (pull_pid_from_list): Return the saved status.
9986 (linux_nat_handle_extended): Deleted.
9987 (linux_handle_extended_wait): Combine with linux_nat_handle_extended.
9988 Make static. Handle non-SIGSTOP for a new thread's first signal.
9989 (flush_callback): Handle unexpected pending signals.
9990 (linux_nat_wait): Update calls to changed functions.
9991 * linux-nat.h (linux_record_stopped_pid, linux_handle_extended_wait):
9992 Remove prototypes for newly static functions.
9994 2007-01-08 Ulrich Weigand <uweigand@de.ibm.com>
9996 * gdbarch.sh (value_from_register): New gdbarch function.
9997 * gdbarch.c, gdbarch.h: Regenerate.
9998 * findvar.c (default_value_from_register): New function.
9999 (value_from_register): Use gdbarch_value_from_register.
10000 * value.h (default_value_from_register): Declare.
10001 * spu-tdep.c (spu_convert_register_p, spu_register_to_value,
10002 spu_value_to_register): Remove.
10003 (spu_value_from_register): New function.
10004 (spu_gdbarch_init): Do not call set_gdbarch_convert_register_p,
10005 set_gdbarch_register_to_value, set_gdbarch_value_to_register.
10006 Call set_gdbarch_value_from_register.
10007 * s390-tdep.c (s390_convert_register_p, s390_register_to_value,
10008 s390_value_to_register): Remove.
10009 (s390_value_from_register): New function.
10010 (s390_gdbarch_init): Do not call set_gdbarch_convert_register_p,
10011 set_gdbarch_register_to_value, set_gdbarch_value_to_register.
10012 Call set_gdbarch_value_from_register.
10014 2007-01-08 Daniel Jacobowitz <dan@codesourcery.com>
10016 * NEWS: Add "set sysroot" and "show sysroot".
10017 * solib.c (solib_absolute_prefix): Delete. Replace
10018 all uses with gdb_sysroot.
10019 (_initialize_solib): Add "set sysroot" and "show sysroot".
10020 Make "solib-absolute-prefix" an alias to it.
10022 2007-01-08 Ulrich Weigand <uweigand@de.ibm.com>
10024 * frame.c (get_frame_register_bytes): New function.
10025 (put_frame_register_bytes): Likewise.
10026 * frame.h (get_frame_register_bytes): Declare.
10027 (put_frame_register_bytes): Likewise.
10028 * findvar.c (value_from_register): Always construct lval_register
10029 values. Use get_frame_register_bytes.
10030 * valops.c (value_assign): Use get_frame_register_bytes and
10031 put_frame_register_bytes.
10033 2007-01-08 Jim Blandy <jimb@codesourcery.com>
10035 * MAINTAINERS: Update Stan Shebs' email address.
10037 2007-01-07 Joel Brobecker <brobecker@adacore.com>
10039 * ada-lang.c (is_known_support_routine): Improve the implementation.
10041 2007-01-06 Joel Brobecker <brobecker@adacore.com>
10043 * ada-lang.c: Add include of source.h.
10044 (is_known_support_routine): Improve the check verifying that the file
10045 associated to this frame exists.
10046 * Makefile.in (ada-lang.o): Add dependency on source.h.
10048 2007-01-07 Jim Blandy <jimb@codesourcery.com>
10050 * ax-general.c (ax_const_l): Select proper opcode for the given
10053 2007-01-05 Vladimir Prus <vladimir@codesourcery.com>
10055 * varobj.c (c_value_of_root): Don't select frame if variable
10056 object is out of scope.
10058 2007-01-05 Nick Roberts <nickrob@snap.net.nz>
10060 * varobj.c (struct varobj): New member print_value.
10061 (install_new_value): Compare last printed value with current one
10062 instead of contents.
10063 (new_variable): Initialize var->print_value to NULL.
10064 (free_variable): Free var->print_value.
10065 (value_get_print_value): New function derived from
10066 c_value_of_variable.
10067 (c_value_of_variable): Use value_get_print_value.
10069 2007-01-05 Joel Brobecker <brobecker@adacore.com>
10071 * i386-tdep.c (i386_analyze_stack_align): Add comment.
10073 2007-01-05 Joel Brobecker <brobecker@adacore.com>
10075 * NEWS: Add entries for new catch commands.
10077 2007-01-05 Joel Brobecker <brobecker@adacore.com>
10079 * dwarf2read.c (partial_die_info): Add field has_byte_size.
10080 (add_partial_symbol): Correct identification of external references.
10081 (process_structure_scope): Likewise.
10082 (read_partial_die): Handle DW_AT_byte_size attribute.
10084 2007-01-05 Daniel Jacobowitz <dan@codesourcery.com>
10086 * xml-support.c (gdb_xml_end_element): Remove wrong backslashes.
10088 2007-01-05 Nick Roberts <nickrob@snap.net.nz>
10090 * varobj.c (get_type_deref): Fix variable objects for references to
10093 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
10095 * symtab.c (find_pc_sect_psymtab): Add comments. Handle psymtabs
10098 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
10100 * memory-map.c (struct_memory_map_parsing_data): Remove most
10101 members. Make property_name an array.
10102 (free_memory_map_parsing_data, memory_map_start_element)
10103 (memory_map_end_element, memory_map_character_data): Delete.
10104 (memory_map_start_memory, memory_map_end_memory)
10105 (memory_map_start_property, memory_map_end_property): New functions.
10106 (property_attributes, memory_children, memory_type_enum)
10107 (memory_attributes, memory_map_children, memory_map_elements): New.
10108 (parse_memory_map): Rewrite.
10109 * xml-support.c (debug_xml): New.
10110 (xml_get_required_attribute, xml_get_integer_attribute)
10111 (xml_get_enum_value, free_xml_parser, make_cleanup_free_xml_parser):
10113 (struct scope_level, struct gdb_xml_parser, gdb_xml_body_text)
10114 (gdb_xml_debug, gdb_xml_error, gdb_xml_values_cleanup)
10115 (gdb_xml_start_element, gdb_xml_start_element_wrapper)
10116 (gdb_xml_end_element, gdb_xml_end_element_wrapper, gdb_xml_cleanup)
10117 (gdb_xml_create_parser_and_cleanup, gdb_xml_parse)
10118 (gdb_xml_parse_ulongest, gdb_xml_parse_attr_ulongest)
10119 (gdb_xml_parse_attr_enum, show_debug_xml, _initialize_xml_support):
10121 * xml-support.h (struct gdb_xml_value, gdb_xml_attribute_handler)
10122 (enum gdb_xml_attribute_flag, struct gdb_xml_attribute)
10123 (enum gdb_xml_element_flag, struct gdb_xml_element)
10124 (gdb_xml_element_start_handler, gdb_xml_element_end_handler)
10125 (struct gdb_xml_enum): New.
10126 (gdb_xml_create_parser_and_cleanup, gdb_xml_parse, gdb_xml_debug)
10127 (gdb_xml_error, gdb_xml_parse_attr_ulongest)
10128 (gdb_xml_parse_attr_enum, gdb_xml_parse_ulongest): New prototypes.
10129 (xml_get_required_attribute, xml_get_integer_attribute)
10130 (xml_get_enum_value, make_cleanup_free_xml_parser): Delete prototypes.
10131 * Makefile.in (xml_support_h, xml-support.o): Update.
10133 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
10135 * Makefile.in (eval.o): Update dependencies.
10136 * eval.c: Include "ui-out.h" and "exceptions.h".
10137 (evaluate_subexp_standard): Use TRY_CATCH around value_of_variable.
10138 Use value_zero if an error occurs when avoiding side effects.
10139 * varobj.c (c_value_of_root): Initialize new_val.
10141 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
10143 * varobj.c (varobj_list_children): Stop if the number of children is
10145 (c_number_of_children):
10147 2007-01-04 Mark Kettenis <kettenis@gnu.org>
10149 * alpha-tdep.c (alpha_register_name): Use ARRAY_SIZE.
10150 (alpha_read_insn, alpha_skip_prologue, alpha_heuristic_proc_start)
10151 (alpha_heuristic_frame_unwind_cache, alpha_next_pc)
10152 (alpha_gdbarch_init): Use ALPHA_INSN_SIZE, ALPHA_REGISTER_SIZE and
10153 sizeof, instead of hardcoded constants.
10155 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
10157 * CONTRIBUTE: Use sourceware.org.
10159 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
10161 * buildsym.c (start_subfile): Handle producer.
10162 (record_producer): New function.
10163 * buildsym.h (struct subfile): Include producer.
10164 (record_producer): New prototype.
10165 * dwarf2-frame.c (struct dwarf2_cie): Add version and augmentation.
10166 (struct dwarf2_frame_state): Add armcc_cfa_offsets_sf and
10167 armcc_cfa_offsets_reversed.
10168 (execute_cfa_program): Handle armcc_cfa_offsets_sf.
10169 (dwarf2_frame_find_quirks): New function.
10170 (dwarf2_frame_cache): Call it. Handle armcc_cfa_offsets_reversed.
10171 (decode_frame_entry_1): Record the CIE version. Record the
10172 augmentation. Skip armcc augmentations.
10173 * dwarf2read.c (read_file_scope): Save the producer.
10174 * symtab.h (struct symtab): Rename unused version member to
10177 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
10179 * configure.ac (build_warnings): Use -Wall and
10180 -Wdeclaration-after-statement.
10181 * configure: Regenerated.
10183 2007-01-04 Vladimir Prus <vladimir@codesourcery.com>
10185 Simplify access to variours properties of child
10186 variable objects in C.
10187 * varobj.c (value_struct_element_index): New function.
10188 (c_describe_child): New function.
10189 (c_name_of_child, c_value_of_child)
10190 (c_type_of_child): Rewrite to use c_describe_child.
10192 2007-01-04 Vladimir Prus <vladimir@codesourcery.com>
10195 * varobj.c: Include "vec.h".
10196 (varobj_p): New typedef, declare vector of those.
10197 (struct varobj): Use vector for the 'children' member.
10198 (child_exists): Remove.
10199 (save_child_in_parent): Remove.
10200 (remove_child_from_parent): Remove.
10201 (struct varobj_child): Remove.
10202 (struct vstack): Remove.
10203 (vpush, vpop): Remove.
10204 (varobj_list_children): Adjust to work work vector.
10205 (varobj_update): Likewise. Use vectors for
10206 working stack and result.
10207 (delete_variable_1): Likewise.
10208 * Makefile.in (varobj.o): Update dependencies.
10210 2007-01-04 Vladimir Prus <vladimir@codesourcery.com>
10212 Port from Apple's version.
10214 * varobj.c (type_changeable): Rename to...
10215 (varobj_value_is_changeable_p): ...this. Adjust all callers.
10216 (is_root_p): New function. Use it everywhere.
10218 2007-01-04 Jim Blandy <jimb@codesourcery.com>
10220 * glibc-tdep.c (glibc_skip_solib_resolver): Look for '_dl_fixup',
10221 then plain 'fixup'.
10223 2007-01-04 Joel Brobecker <brobecker@adacore.com>
10225 * hpread.c (hpread_start_psymtab): Remove unnecessary extern.
10227 2007-01-04 Joel Brobecker <brobecker@adacore.com>
10229 * hpread.c (hpread_type_lookup): Fix compilation failure.
10231 2007-01-04 Qinwei <qinwei@sunnorth.com.cn>
10233 * NEWS: New port to S+core.
10234 * MAINTAINERS (Write After Approval, Responsible Maintainers):
10237 * Makefile.in: Add dependencies for S+core files.
10238 * configure.tgt (score*, score-*-*): Add S+core target.
10239 * config/score/embed.mt: New file.
10240 * score-tdep.c: New file.
10241 * score-tdep.h: New file.
10243 2007-01-04 Joel Brobecker <brobecker@adacore.com>
10245 * ada-lang.c (ada_evaluate_subexp) [OP_TYPE]: Return a value with
10246 the appropriate type rather than a bogus void type.
10248 2007-01-04 Joel Brobecker <brobecker@adacore.com>
10250 * ada-lang.h (ada_find_printable_frame): Remove.
10251 (ada_exception_catchpoint_p, ada_decode_exception_location)
10252 (ada_decode_assert_location): Add declaration.
10253 * ada-lang.c: Add include of annotate.h and valprint.h.
10254 (exception_catchpoint_kind): New enum.
10255 (function_name_from_pc, is_known_support_routine)
10256 (ada_find_printable_frame, ada_unhandled_exception_name_addr)
10257 (ada_exception_name_addr_1, ada_exception_name_addr)
10258 (print_it_exception, print_one_exception, print_mention_exception)
10259 (print_it_catch_exception, print_one_catch_exception)
10260 (print_mention_catch_exception, catch_exception_breakpoint_ops)
10261 (print_it_catch_exception_unhandled)
10262 (print_one_catch_exception_unhandled)
10263 (print_mention_catch_exception_unhandled, print_it_catch_assert)
10264 (print_one_catch_assert, print_mention_catch_assert)
10265 (ada_exception_catchpoint_p, error_breakpoint_runtime_sym_not_found)
10266 (ada_get_next_arg, catch_ada_exception_command_split)
10267 (ada_exception_sym_name, ada_exception_sym_name)
10268 (ada_exception_breakption_ops, ada_exception_catchpoint_cond_string)
10269 (ada_parse_catchpoint_condition, ada_exception_sal)
10270 (ada_decode_exception_location)
10271 (ada_decode_assert_location): New function.
10272 (catch_exception_unhandled_breakpoint_ops): New global variable.
10273 (catch_assert_breakpoint_ops): New global variable.
10274 * breakpoint.c: Add include of ada-lang.h.
10275 (print_one_breakpoint): Do not print the condition for Ada
10276 exception catchpoints.
10277 (create_ada_exception_breakpoint): New function.
10278 (catch_ada_exception_command, catch_assert_command): New function.
10279 (catch_command_1): Add support for the new "catch exception" and
10280 "catch assert" commands.
10281 (_initialize_breakpoint): Add help description for the new catch
10283 * Makefile.in (ada-lang.o): Add dependency on annotate.h and
10285 (breakpoint.o): Add dependency on ada-lang.h.
10287 2007-01-03 Pedro Alves <pedro_alves@portugalmail.pt>
10289 * coffread.c (cs_to_section): If bfd_section is found, always
10290 return its section index.
10291 (coff_symtab_read): Determine the minimal_symbol_type using the
10294 2007-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10295 Daniel Jacobowitz <dan@codesourcery.com>
10297 * Makefile.in (top.o): Update.
10298 * top.c (gdb_readline_wrapper_done, gdb_readline_wrapper_result)
10299 (saved_after_char_processing_hook, gdb_readline_wrapper_line)
10300 (struct gdb_readline_wrapper_cleanup, gdb_readline_wrapper_cleanup):
10302 (gdb_readline_wrapper): Rewrite to use asynchronous readline.
10304 2007-01-03 Mark Kettenis <kettenis@gnu.org>
10306 * arm-linux-tdep.c (arm_linux_extract_return_value): Remove.
10307 (arm_linux_init_abi): Don't set deprecated_extract_return_value.
10309 2007-01-03 Daniel Jacobowitz <dan@codesourcery.com>
10311 * ada-lang.c (find_struct_field): Initialize *byte_offset_p.
10312 * breakpoint.c (do_enable_breakpoint): Ignore both mem_cnt and i.
10313 * c-typeprint.c (c_type_print_varspec_suffix): Don't test length
10314 greater than or equal to zero.
10315 * m2-typeprint.c (m2_array): Likewise.
10316 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
10317 * gdbtypes.c (copy_type_recursive): Correct == typo.
10318 * i386-tdep.c (i386_skip_prologue): Remove stray semicolon.
10319 * linux-nat.c (linux_nat_info_proc_cmd): Don't compare a pointer
10321 * macroscope.c (sal_macro_scope): Don't name a local variable "main".
10322 (default_macro_scope): Remove unused variable.
10323 * prologue-value.h (pv_area_find_reg): Don't name an argument
10325 * remote-fileio.c (remote_fio_func_map): Add missing braces.
10326 * remote.c (sigint_remote_twice_token, sigint_remote_token): Change
10328 (cleanup_sigint_signal_handler): Remove casts.
10329 * valprint.c (val_print): Use a volatile local for the modified
10331 * varobj.c (languages): Remove extra array dimension.
10332 (varobj_create): Correct access to languages array.
10333 * mi/mi-cmd-break.c (mi_cmd_break_insert, mi_cmd_break_watch): Add
10335 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise.
10336 * mi/mi-cmd-env.c (mi_cmd_env_path, mi_cmd_env_dir): Likewise.
10337 * mi/mi-getopt.c (mi_valid_noargs): Likewise.
10338 * mi/mi-main.c (mi_cmd_data_read_memory): Likewise.
10339 (mi_cmd_data_write_memory): Likewise.
10340 * signals/signals.c (target_signal_to_string): Cast to int before
10342 * tui/tui-layout.c (init_and_make_win): Take and return a void *.
10343 Update all callers.
10345 2007-01-03 Daniel Jacobowitz <dan@codesourcery.com>
10347 * NEWS: Mention pointer to member improvements.
10348 * Makefile.in (gnu-v3-abi.o): Delete special rule.
10349 (eval.o, gnu-v3-abi.o, ia64-tdep.o): Update.
10350 * ada-valprint.c (ada_print_scalar): Update for new type codes.
10351 * c-typeprint.c (c_print_type): Update for new type codes.
10352 (c_type_print_varspec_prefix, c_type_print_varspec_suffix)
10353 (c_type_print_base): Likewise.
10354 (c_type_print_args): Rewrite.
10355 * c-valprint.c (c_val_print): Update for new type codes. Remove
10356 support for references to members. Treat methods like functions.
10357 * cp-abi.c (cplus_print_method_ptr, cplus_method_ptr_size)
10358 (cplus_make_method_ptr, cplus_method_ptr_to_value): New.
10359 * cp-abi.h (cplus_print_method_ptr, cplus_method_ptr_size)
10360 (cplus_make_method_ptr, cplus_method_ptr_to_value): New prototypes.
10361 (struct cp_abi_ops): Add corresponding members.
10362 * cp-valprint.c (cp_print_class_method): Delete.
10363 (cp_find_class_member): New function.
10364 (cp_print_class_member): Use it. Simplify support for bogus
10366 * dwarf2read.c (quirk_gcc_member_function_pointer): Use
10367 lookup_methodptr_type.
10368 (read_tag_ptr_to_member_type): Likewise, and lookup_memberptr_type.
10369 * eval.c (evaluate_subexp_standard): Implement EVAL_SKIP for
10370 OP_SCOPE. Update call to value_aggregate_elt. Rewrite member
10372 (evaluate_subexp_for_address): Handle OP_SCOPE explicitly. Handle
10373 references returned by user defined operators.
10374 * f-typeprint.c (f_print_type, f_type_print_varspec_prefix)
10375 (f_type_print_varspec_suffix): Remove support for member pointers.
10376 * gdbtypes.c (lookup_memberptr_type): Renamed from lookup_member_type
10378 (smash_to_memberptr_type): Likewise, from smash_to_member_type.
10379 (lookup_methodptr_type): New.
10380 (rank_one_type): Adjust for TYPE_CODE_MEMBERPTR.
10381 (recursive_dump_type): Update for new types.
10382 * gdbtypes.h (enum type_code): Replace TYPE_CODE_MEMBER with
10383 TYPE_CODE_MEMBERPTR and TYPE_CODE_METHODPTR.
10384 (lookup_memberptr_type, lookup_methodptr_type)
10385 (smash_to_memberptr_type): New prototypes.
10386 (smash_to_method_type): Formatting fix.
10387 (lookup_member_type, smash_to_member_type): Delete prototypes.
10388 * gnu-v3-abi.c (gnuv3_get_vtable, gnuv3_get_virtual_fn): New.
10389 Do not rely on debug information for the vptr or the method's
10390 enclosing type. Handle function descriptors for IA64.
10391 (gnuv3_virtual_fn_field): Rewrite using the new functions.
10392 (gnuv3_find_method_in, gnuv3_print_method_ptr)
10393 (gnuv3_method_ptr_size, gnuv3_make_method_ptr)
10394 (gnuv3_method_ptr_to_value): New.
10395 (init_gnuv3_ops): Set new members of gnu_v3_abi_ops.
10396 * hpread.c (hpread_type_lookup): Update for new types.
10397 * infcall.c (value_arg_coerce): Likewise.
10398 * m2-typeprint.c (m2_print_type): Remove explicit support
10399 for member pointers.
10400 * m2-valprint.c (m2_val_print): Likewise.
10401 * p-typeprint.c (pascal_type_print_varspec_prefix)
10402 (pascal_type_print_varspec_suffix, pascal_type_print_base): Likewise.
10403 * p-valprint.c (pascal_val_print): Likewise.
10404 (pascal_object_print_class_method, pascal_object_print_class_member):
10406 * p-lang.h (pascal_object_print_class_method)
10407 (pascal_object_print_class_member): Delete prototypes.
10408 * stabsread.c (read_type): Update for new types.
10409 * typeprint.c (print_type_scalar): Likewise.
10410 * valops.c (value_struct_elt_for_reference, value_namespace_elt)
10411 (value_maybe_namespace_elt, value_aggregate_elt): Add want_address
10412 argument. Construct a pointer to member if the address of a
10413 function or data member is requested.
10414 (value_cast_pointers): Don't modify the input value.
10415 (value_cast): Adjust pointer to member handling for new types.
10416 Allow null pointer to member constants. Don't modify the input
10418 (value_ind): Remove pointer to member check. Handle function
10419 descriptors for function pointers.
10420 (value_struct_elt, value_find_oload_method_list, check_field):
10421 Remove pointer to member checks.
10422 * value.c (unpack_long): Allow pointers to data members.
10423 (value_from_longest): Allow member pointers.
10424 * value.h (value_aggregate_elt): Add want_address.
10425 * varobj.c (c_variable_editable): Remove check for members.
10426 * gdbarch.sh: Add vtable_function_descriptors and vbit_in_delta.
10427 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Handle descriptors
10429 (ia64_gdbarch_init): Call set_gdbarch_vtable_function_descriptors.
10430 * c-lang.h (cp_print_class_method): Delete prototype.
10431 * arm-tdep.c (arm_gdbarch_init): Call set_gdbarch_vbit_in_delta.
10432 * mips-tdep.c (mips_gdbarch_init): Likewise.
10433 * gdbarch.c, gdbarch.h: Regenerated.
10435 2007-01-01 Mark Kettenis <kettenis@gnu.org>
10437 * rs6000-tdep.c (rs6000_use_struct_convention)
10438 (rs6000_extract_return_value, rs6000_store_return_value)
10439 (rs6000_extract_struct_value_address): Remove.
10440 (rs6000_return_value): New function.
10441 (rs6000_gdbarch_init): Don't set deprecated_extract_return_value,
10442 store_return_value, deprecated_extract_struct_value_address and
10443 deprecated_use_struct_convention. Use rs6000_return_value
10446 2007-01-02 Nick Roberts <nickrob@snap.net.nz>
10448 * mi/mi-cmds.c (mi_cmds): Remove entries for -display-delete,
10449 -display-disable, -display-enable, -display-insert and
10452 2007-01-01 Joel Brobecker <brobecker@adacore.com>
10454 * breakpoint.c (remove_breakpoint): Remove dead code.
10456 2007-01-01 Nick Roberts <nickrob@snap.net.nz>
10458 * varobj.c: Include block.h.
10459 (c_value_of_root): Check scope within nested statements.
10461 2007-01-01 Mark Kettenis <kettenis@gnu.org>
10463 * mi/mi-main.c (mi_cmd_data_write_register_values): Use
10464 regcache_cooked_write_signed instead of
10465 deprecated_write_register_bytes.
10467 2007-01-01 Joel Brobecker <brobecker@adacore.com>
10469 * config/djgpp/fnchange.lst: Add entry for ChangeLog-2006.
10471 2007-01-01 Joel Brobecker <brobecker@adacore.com>
10473 Followed the Start of New Year Procedure:
10474 * ChangeLog-2006: New file, containing all the entries for 2006.
10475 * ChangeLog: Removed all 2006 entries, and changed the reference
10476 to the previous ChangeLog to point to ChangeLog 2006.
10477 * top.c (print_gdb_version): Update copyright year.
10479 2007-01-01 Mark Kettenis <kettenis@gnu.org>
10481 * Makefile.in (remote-sds.o): Remove.
10482 * remote-sds.c: Delete.
10484 For older changes see ChangeLog-2006.
10490 version-control: never