1 2007-12-17 Joel Brobecker <brobecker@adacore.com>
3 * language.h (enum exp_opcode): Add forward declaration.
4 (language_string_char_type, language_lookup_primitive_type_by_name):
5 Move declaration past declaration of language_defn.
7 2007-12-16 Daniel Jacobowitz <dan@codesourcery.com>
8 Joseph Myers <joseph@codesourcery.com>
10 * configure.ac: Check for *-*-solaris2.1[[0-9]]* instead of
11 *-*-solaris2.1[[0-9]].
12 * configure: Regenerate.
13 * procfs.c (proc_set_current_signal): If redelivering a signal,
14 reuse the current siginfo if possible.
16 2007-12-16 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
18 * f-typeprint.c (print_equivalent_f77_float_type): Remove function.
19 (f_type_print_base): Output the type names directly for real and
22 2007-12-16 Vladimir Prus <vladimir@codesourcery.com>
24 * breakpoint.c (bpstat_have_active_hw_watchpoints):
26 (bpstat_stop_status): Remove unused variable
28 * breakpoint.h (bpstat_have_active_hw_watchpoints):
31 2007-12-16 Vladimir Prus <vladimir@codesourcery.com>
33 * target.h (target_pid_or_tid_to_str): Remove.
34 * infrun.c (handle_inferior_event):
35 Use target_pid_to_str instead of
36 target_pid_or_tid_to_str.
37 (normal_stop): Likewise.
39 2007-12-16 Jan Kratochvil <jan.kratochvil@redhat.com>
41 * dwarf2read.c (dwarf_attr_name): Rename `DW_AT_stride_size' to its
42 DWARF3 equivalent `DW_AT_bit_stride'.
43 Rename `DW_AT_stride' to its DWARF3 equivalent `DW_AT_byte_stride'.
45 2007-12-16 Joel Brobecker <brobecker@adacore.com>
47 * mi/mi-main.c: Remove code that was commented out in 1999.
49 2007-12-16 Joel Brobecker <brobecker@adacore.com>
51 * expression.h (parse_expression_in_context): Delete prototype.
52 * parse.c (parse_expression_in_context): Delete.
54 2007-12-14 Vladimir Prus <vladimir@codesourcery.com>
56 Add support for pending breakpoints in MI.
57 * gdb.h (gdb_breakpoint): Add parameter pending.
58 * breakpoint.c (gdb_breakpoint): Add parameter pending.
59 * mi/mi-cmd-break.c (mi_break_insert): Change
60 comment to refer to manual. Add support for
61 the -f flag, for pending breakpoint.
63 2007-12-14 Vladimir Prus <vladimir@codesourcery.com>
65 * breakpoint.c (break_command_really): New, copied
66 from break_command_1. New parameters COND_STRING, THREAD
67 PARSE_CONDITITION_AND_THREAD and PENDING_BREAK_SUPPORT.
68 The previous FLAG parameter split into TEMPFLAG and
70 When PARSE_CONDITION_AND_THREAD is not set, duplicate
71 the passed condition string.
72 (struct captured_breakpoint_args): Remove
73 (do_captured_breakpoint): Remove.
74 (break_command_1): Relay to break_command_really.
75 (gdb_breakpoint): Relay to break_command_really.
77 2007-12-13 Michael Snyder <msnyder@specifix.com>
79 * mips-linux-tdep.c (mips64_fill_gregset): Remove unused variable.
81 2007-12-13 Jim Blandy <jimb@codesourcery.com>
83 * dwarf2read.c (attr_form_is_constant): New function.
84 (dwarf2_add_field): Use it and attr_form_is_section_offset to
85 recognize DW_AT_data_member_location attributes. Use
86 dwarf2_get_attr_constant_value when the attribute is a constant.
88 * dwarf2read.c (attr_form_is_section_offset): New function.
89 (dwarf_add_member_fn, read_common_block, read_partial_die)
90 (dwarf2_symbol_mark_computed): Use it, instead of writing it out.
92 2007-12-12 Jim Blandy <jimb@codesourcery.com>
94 Remove unused support for target-based exception catching.
95 * target.h (struct target_ops): Delete
96 to_enable_exception_callback and to_get_current_exception_event
98 (target_enable_exception_callback)
99 (target_get_current_exception_event): Delete macros.
100 * target.c (update_current_target): Remove code to inherit and
101 default those members.
102 (debug_to_enable_exception_callback)
103 (debug_to_get_current_exception_event): Delete functions.
104 (setup_target_debug): Don't install those methods.
105 * inf-child.c (inf_child_enable_exception_callback)
106 (inf_child_get_current_exception_event): Delete dummy functions.
107 (inf_child_target): Don't install them in the target vector.
108 * breakpoint.h (enum bptype): Delete bp_catch_catch,
110 * breakpoint.c (cover_target_enable_exception_callback)
111 (ep_is_exception_catchpoint, create_exception_catchpoint): Delete
113 (insert_bp_location, update_breakpoints_after_exec)
114 (remove_breakpoint, ep_is_catchpoint, print_it_typical)
115 (bpstat_stop_status, bpstat_what)
116 (bpstat_get_triggered_catchpoints, print_one_breakpoint_location)
117 (user_settable_breakpoint, allocate_bp_location)
118 (disable_watchpoints_before_interactive_call_start)
119 (enable_watchpoints_after_interactive_call_stop, mention)
120 (delete_breakpoint, breakpoint_re_set_one, disable_command)
121 (enable_command): Remove exception catchpoint cases.
122 (catch_exception_command_1): Don't try target-based exception
124 * stack.c (catch_info): Call print_frame_label_vars
127 2007-12-12 Nigel Stephens <nigel@mips.com>
128 Maciej W. Rozycki <macro@mips.com>
130 * remote-mips.c (mips_load): Use regcache_set_valid_p() instead
131 of setting deprecated_register_valid array directly.
133 2007-12-07 Maciej W. Rozycki <macro@mips.com>
135 * mips-tdep.c (extended_offset): Fix a comment.
137 2007-12-07 Maciej W. Rozycki <macro@mips.com>
139 * target.c (update_current_target): Inherit to_log_command.
140 * target.h (struct target_ops). Add to_log_command.
141 (target_log_command): New macro.
142 * top.c (execute_command): Call target_log_command() rather than
143 serial_log_command().
144 * monitor.c (init_base_monitor_ops): Initialize to_log_command.
145 * remote-m32r-sdi.c (init_m32r_ops): Likewise.
146 * remote-mips.c (_initialize_remote_mips): Likewise.
147 * remote.c (init_remote_ops): Likewise.
149 2007-12-06 Daniel Jacobowitz <dan@codesourcery.com>
151 * infrun.c (init_wait_for_inferior): Reset target_last_wait_ptid.
152 (handle_inferior_event): Clear stop_stack_dummy earlier.
154 2007-12-06 Jim Blandy <jimb@codesourcery.com>
156 * addrmap.c (addrmap_splay_tree_remove): New function.
157 (addrmap_mutable_set_empty): Use it.
159 * addrmap.c, addrmap.h: Update to GPLv3.
161 * addrmap.c (struct addrmap): Make the referenced function table
163 (addrmap_fixed_funcs, addrmap_mutable_funcs): Declare const.
164 Don't use designated initializers.
166 * addrmap.c (addrmap_fixed_create_fixed, addrmap_mutable_find)
167 (addrmap_mutable_relocate): Use internal_error, not abort.
169 * NEWS: Mention support for non-contiguous lexical blocks and
172 2007-12-06 Markus Deuling <deuling@de.ibm.com>
174 * gdbarch.sh (stab_reg_to_regnum, dwarf_reg_to_regnum)
175 ( dwarf2_reg_to_regnum, sdb_reg_to_regnum, ecoff_reg_to_regnum): Add
176 gdbarch as parameter.
177 * gdbarch.{c,h}: Regenerate.
179 * xtensa-tdep.c (xtensa_reg_to_regnum): Add gdbarch as parameter.
180 Replace current_gdbarch by gdbarch.
181 * s390-tdep.c (s390_dwarf_reg_to_regnum): Likewise.
182 * rs6000-tdep.c (rs6000_stab_reg_to_regnum)
183 (rs6000_dwarf2_reg_to_regnum): Likewise.
184 * mips-tdep.c (mips_stab_reg_to_regnum)
185 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Likewise.
186 * mep-tdep.c (mep_debug_reg_to_regnum): Likewise.
187 * m32c-tdep.c (m32c_debug_info_reg_to_regnum): Likewise.
188 * i386-tdep.c (i386_dbx_reg_to_regnum)
189 (i386_svr4_reg_to_regnum): Likewise
190 * h8300-tdep.c (h8300s_dbg_reg_to_regnum)
191 (h8300_dbg_reg_to_regnum): Likewise.
192 * amd64-tdep.c (amd64_dwarf_reg_to_regnum): Likewise.
193 * arch-utils.c (no_op_reg_to_regnum): Likewise.
194 * arch-utils.h (no_op_reg_to_regnum): Likewise.
195 * arm-tdep.c (arm_dwarf_reg_to_regnum): Likewise.
196 * cris-tdep.c (cris_dwarf2_reg_to_regnum): Likewise.
197 * hppa-tdep.c (hppa64_dwarf_reg_to_regnum): Likewise.
198 * ia64-tdep.c (ia64_dwarf_reg_to_regnum): Likewise.
199 * m68k-tdep.c (m68k_dwarf_reg_to_regnum): Likewise.
201 2007-12-06 Vladimir Prus <vladimir@codesourcery.com>
203 Localize infrun use of remove_breakpoints.
204 * infrun.c (handle_inferior_event): Remove
205 calls to remove_breakpoints, except where needed to
206 communicate change of breakpoint locations to inferior.
207 (keep_going): If steppping over breakpoint, remove
210 2007-12-06 Vladimir Prus <vladimir@codesourcery.com>
212 Clarify infrun variable naming.
213 * infrun.c (trap_expected): Rename
214 to stepping_over_breakpoint. Document.
215 (stepping_past_breakpoint): Remove.
216 (stepping_past_breakpoint_ptdi): Renamed
217 to deferred_step_ptid.
218 (struct execution_control_state): Rename
219 the another_trap field to stepping_over_breakpoint.
220 (struct inferior_status): Rename the trap_expected
221 field to stepping_over_breakpoint.
222 (clear_proceed_status, proceed)
223 (init_execution_control_state, context_switch)
224 (handle_inferior_event, currently_stepping)
225 (keep_going, save_inferior_status)
226 (restore_inferior_status, prepare_to_proceed): Adjust.
227 * gdbthread.h (struct thread_info): Rename the
228 trap_expected field to stepping_over_breakpoint.
229 * thread.c (load_infrun_state, save_infrun_state):
232 2007-12-06 Pierre Muller <muller@ics.u-strasbg.fr>
234 * win32-nat.c: Allow compilation if CORE_ADDR is 8 byte long.
235 Add "gdb_stdint.h" dependency required for uintptr_t type use.
236 (handle_output_debug_string): Use uintptr_t typecast.
237 (handle_exception): Ditto.
238 (win32_xfer_memory): Ditto.
239 * Makefile.in (win32-nat.o): Add dependency to gdb_stdint header.
241 2007-12-04 Jim Blandy <jimb@codesourcery.com>
243 Support lexical blocks and function bodies that occupy
244 non-contiguous address ranges.
245 * addrmap.c, addrmap.h: New files.
246 * block.h (struct addrmap): New forward declaration.
247 (struct blockvector): New member, 'map'.
248 (BLOCKVECTOR_MAP): New accessor macro.
249 * block.c: #include "addrmap.h"
250 (blockvector_for_pc_sect): If the blockvector we've found has
251 an address map, use it instead of searching the blocks.
252 * buildsym.c: #include "addrmap.h"
253 (pending_addrmap_obstack, pending_addrmap_interesting): New static
255 (really_free_pendings): If we have a pending addrmap, free it too.
256 (record_block_range): New function.
257 (make_blockvector): If we have an interesting pending addrmap,
258 record it in the new blockvector.
259 (start_symtab, buildsym_init): Assert that there is no pending
260 addrmap now; we should have cleaned up any addrmaps we'd built
262 (end_symtab): If there is a pending addrmap left over that didn't
263 get included in the blockvector, free it.
264 * buildsym.h (struct addrmap): New forward declaration.
265 (record_block_range): New prototype.
266 * objfiles.c: #include "addrmap.h".
267 (objfile_relocate): Relocate the blockvector's address map, if
269 * dwarf2read.c (dwarf2_record_block_ranges): New function.
270 (read_func_scope, read_lexical_block_scope): Call it.
271 * Makefile.in (SFILES): Add addrmap.c.
272 (addrmap_h): New header dependency variable.
273 (COMMON_OBS): Add addrmap.o.
274 (addrmap.o): New rule.l
275 (block.o, objfiles.o, buildsym.o): Depend on $(addrmap_h).
277 * block.c (blockvector_for_pc, blockvector_for_pc_sect): Return a
278 pointer to the block, not its index in the blockvector.
279 (block_for_pc_sect): Use the returned block, instead of looking it
281 * block.h (blockvector_for_pc, blockvector_for_pc_sect): Update
283 * breakpoint.c (resolve_sal_pc): Use returned block, instead of
284 looking it up ourselves.
285 * stack.c (print_frame_label_vars): Disable function, which
286 depends on the block's index.
288 * buildsym.c (finish_block): Return the block we've built.
289 * buildsym.h (finish_block): Update prototype.
291 * defs.h (CORE_ADDR_MAX): New constant.
293 2007-12-04 Ulrich Weigand <uweigand@de.ibm.com>
295 * coffread.c (decode_type): Use builtin_type_int32 instead
296 of FT_INTEGER fundamental type for array range index type.
297 (decode_base_type): Use builtin types of current_gdbarch
298 instead of fundamental types.
300 * dwarf2read.c (struct dwarf2_cu): Remove ftypes member.
301 (read_file_scope): Do not initialize ftypes member.
302 (dwarf_base_type, dwarf2_fundamental_types): Remove functions.
303 (read_array_type): Use builtin_type_int32 instead of FT_INTEGER
304 fundamental type for array range index type.
305 (read_tag_string_type): Likewise for string range index type.
306 Also, do not overwrite FT_CHAR type with new string type.
307 (read_base_type): If DW_AT_name is missing, create unnamed type
308 with given properties instead of looking for a fundamental type.
309 Create new types as TYPE_TARGET_TYPE for DW_ATE_address and
310 DW_ATE_complex_float types.
311 (read_subrange_type): Create new type to represent missing
312 DW_AT_type instead of looking for a fundamental type.
313 (die_type): Use builtin type to represent "void" instead of
314 looking for a fundamental type.
316 * stabsread.c (define_symbol): Use builtin types to represent
317 'r' and 'i' floating-point and integer constants.
319 * gdbtypes.c (lookup_fundamental_type): Remove.
320 * gdbtypes.h (lookup_fundamental_type): Remove prototype.
321 (FT_VOID, FT_BOOLEAN, FT_CHAR, FT_SIGNED_CHAR, FT_UNSIGNED_CHAR,
322 FT_SHORT, FT_SIGNED_SHORT, FT_UNSIGNED_SHORT, FT_INTEGER,
323 FT_SIGNED_INTEGER, FT_UNSIGNED_INTEGER, FT_LONG, FT_SIGNED_LONG,
324 FT_UNSIGNED_LONG, FT_LONG_LONG, FT_SIGNED_LONG_LONG,
325 FT_UNSIGNED_LONG_LONG, FT_FLOAT, FT_DBL_PREC_FLOAT, FT_EXT_PREC_FLOAT,
326 FT_COMPLEX, FT_DBL_PREC_COMPLEX, FT_EXT_PREC_COMPLEX, FT_STRING,
327 FT_FIXED_DECIMAL, FT_FLOAT_DECIMAL, FT_BYTE, FT_UNSIGNED_BYTE,
328 FT_TEMPLATE_ARG, FT_DECFLOAT, FT_DBL_PREC_DECFLOAT,
329 FT_EXT_PREC_DECFLOAT, FT_NUM_MEMBERS): Remove macros.
330 * objfiles.c (struct objfile): Remove fundamental_types member.
331 * symfile.c (reread_symbols): Do not clear fundamental_types.
333 * language.h (struct language_defn): Remove la_fund_type member.
334 (create_fundamental_type): Remove.
335 * language.c (unk_lang_create_fundamental_type): Remove.
336 (unknown_language_defn, auto_language_defn,
337 local_language_defn): Adapt initializer.
338 * ada-lang.c (ada_create_fundamental_type): Remove.
339 (ada_language_defn): Adapt initializer.
340 * c-lang.h (c_create_fundamental_type): Remove prototype.
341 * c-lang.c (c_create_fundamental_type): Remove.
342 (c_language_defn, cplus_language_defn, asm_language_defn,
343 minimal_language_defn): Adapt initializer.
344 * f-lang.c (f_create_fundamental_type): Remove.
345 (f_language_defn): Adapt initializer.
346 * jv-lang.c (java_create_fundamental_type): Remove.
347 (java_language_defn): Adapt initializer.
348 * m2-lang.c (m2_create_fundamental_type): Remove.
349 (m2_language_defn): Adapt initializer.
350 * objc-lang.c (objc_create_fundamental_type): Remove.
351 (objc_language_defn): Adapt initializer.
352 * p-lang.h (pascal_create_fundamental_type): Remove prototype.
353 * p-lang.c (pascal_create_fundamental_type): Remove.
354 (pascal_language_defn): Adapt initializer.
355 * scm-lang.c (scm_language_defn): Adapt initializer.
357 2007-12-04 Maciej W. Rozycki <macro@mips.com>
359 * features/mips-cpu.xml: Specify "regnum" for "r0" explicitly.
360 * features/mips64-cpu.xml: Likewise.
361 * features/mips-fpu.xml: Specify "regnum" for "f0" explicitly.
362 * features/mips64-fpu.xml: Likewise.
363 * features/mips-linux.c: Regenerate.
364 * features/mips64-linux.c: Regenerate.
366 2007-12-04 Maciej W. Rozycki <macro@mips.com>
368 * target.h (target_find_new_threads): Fix definition.
370 2007-12-02 Pierre Muller <muller@ics.u-strasbg.fr>
372 * win32-nat.c (win32_resume): Set the trace bit
373 in the thread identified by inferior_ptid.
376 2007-12-02 Pierre Muller <muller@ics.u-strasbg.fr>
378 * win32-nat.c (open_process_used): New static variable.
379 (win32_init_thread_list): Remove call to CloseHandle for thread.
380 (win32_delete_thread): Ditto.
381 (fake_create_process): Set open_process_used if OpenProcess call is
383 (get_win32_debug_event): Do not close process handle.
384 (do_initial_win32_stuff): Set open_process_used to zero.
385 (win32_mourn_inferior): Call CloseHandle for current_process_handle if
386 open_process_used is set.
387 (win32_kill_inferior): Do not close process and main_thread handles.
389 2007-11-30 Daniel Jacobowitz <dan@codesourcery.com>
391 * remote.c (remote_cmdlist): New variable.
392 (PACKET_vFile_open, PACKET_vFile_pread, PACKET_vFile_pwrite)
393 (PACKET_vFile_close, PACKET_vFile_unlink): New constants.
394 (remote_buffer_add_string, remote_buffer_add_bytes)
395 (remote_buffer_add_int, remote_hostio_parse_result)
396 (remote_hostio_send_command, remote_hostio_open, remote_hostio_pwrite)
397 (remote_hostio_pread, remote_hostio_close, remote_hostio_unlink)
398 (remote_fileio_errno_to_host, remote_hostio_error, fclose_cleanup)
399 (remote_hostio_close_cleanup, remote_file_put, remote_file_get)
400 (remote_file_delete, remote_put_command, remote_get_command)
401 (remote_delete_command, remote_command): New functions.
402 (_initialize_remote): Register new packets and commands.
403 * Makefile.in (gdb_fileio_h): New variable.
405 (SUBDIR_MI_OBS): Add mi-cmd-target.o.
406 (SUBDIR_MI_SRCS): Add mi/mi-cmd-target.c.
407 (mi-cmd-target.o): New rule.
408 * mi/mi-cmd-target.c: New file.
409 * mi/mi-cmds.c (mi_cmds): Add target-file-delete, target-file-get,
411 * mi/mi-cmds.h (mi_cmd_target_file_get, mi_cmd_target_file_put)
412 (mi_cmd_target_file_delete): Declare.
413 * remote.h (remote_file_put, remote_file_get, remote_file_delete):
415 * NEWS: Describe new file transfer support.
417 2007-11-30 Vladimir Prus <vladimir@codesourcery.com>
419 * infrun.c (handle_inferior_event): Don't
420 ignore beakpoints if trap_expected is set.
422 2007-11-30 Vladimir Prus <vladimir@codesourcery.com>
424 Make insert_breakpoints return void.
425 * breakpoint.h (insert_breakpoints): Change
427 * breakpoint.c (insert_breakpoints): Change
428 return type to void. Rename local return_val
430 * infrun.c (keep_going): Instead of checking
431 return value from insert_breakpoints, catch exception.
433 2007-11-29 Vladimir Prus <vladimir@codesourcery.com>
435 Stop infrun from tracking breakpoint insertion status.
437 The checks of breakpoints_inserted before calling
438 remove_breakpoints are removed, as remove_breakpoint
439 won't touch uninserted breakpoints. In a number of places,
440 we're interested if a breakpoint is inserted at particular
441 PC, and we now use breakpoint_inserted_here_p. In a few
442 places, insert_breakpoints can be called unconditionally,
443 since it won't try to insert already inserted breakpoint.
445 * breakpoint.h (regular_breakpoint_inserted_here_p): New
447 * breakpoint.c (regular_breakpoint_inserted_here_p): New.
448 (breakpoint_inserted_here_p): Use
449 regular_breakpoint_inserted_here_p.
450 * infrun.c (breakpoints_inserted): Remove.
451 (resume): Don't check for breakpoints_inserted before
452 remove_hw_watchpoints. Use breakpoint_inserted_here_p.
453 (proceed, init_wait_for_inferior): Don't set breakpoints_inserted.
454 (handle_inferior_event): Don't use breakpoints_inserted.
455 Use breakpoints_meant_to_be_inserted and
456 breakpoints_inserted_here_p.
457 (insert_step_resume_breakpoint_at_sal, keep_going): Use
458 breakpoints_meant_to_be_inserted. Don't set breakpoints_inserted.
459 (normal_stop): Don't check for breakpoints_inserted. Don't
460 set breakpoints_inserted.
461 (keep_going): Don't check for breakpoints_inserted.
462 (insert_step_resume_breakpoint_at_sal): Don't insert
465 2007-11-28 Jim Blandy <jimb@codesourcery.com>
467 * breakpoint.c (watch_command_1): When the watchpoint isn't local
468 to any frame, initialize watchpoint_frame using null_frame_id, not
471 2007-11-28 Vladimir Prus <vladimir@codesourcery.com>
473 * infrun.c (resume): Set right thread even if
474 stepping over breakpoint using software single step.
476 2007-11-28 Nick Roberts <nickrob@snap.net.nz>
478 * mi/mi-cmd-var.c (print_varobj): Revert change from 2007-08-31.
479 (mi_print_value_p): Guard against type = NULL.
481 2007-11-27 Thiago Jung Bauermann <bauerman@br.ibm.com>
483 * dfp.c (decimal_from_string): Remove superfluous newline from
485 (decimal_to_string): Likewise.
486 * printcmd.c (printf_command): Change string buffer to use
487 MAX_DECIMAL_STRING constant.
488 * value.c (value_from_decfloat): Likewise.
490 2007-11-27 Ulrich Weigand <uweigand@de.ibm.com>
492 * Makefile.in (ALL_TARGET_OBS): Remove object files that require
493 64-bit CORE_ADDR and BFD support, move them to ...
494 (ALL_64_TARGET_OBS): ... this new variable.
495 * configure.ac: Check for --enable-64-bit-bfd option. Only add
496 64-bit targets with --enable-targets=all if BFD supports 64-bit.
497 * configure: Regenerate.
499 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Do not claim
500 all elf32-i386 executables, only cygwin core files.
502 2007-11-25 Jan Kratochvil <jan.kratochvil@redhat.com>
504 * dwarf2read.c (dwarf2_get_pc_bounds): Moved the `DW_AT_ranges' parsing
505 code with its variables OBJFILE, CU_HEADER and OBFD into ...
506 (dwarf2_ranges_read): ... a new function.
507 (read_partial_die): Implemented the parsing of `DW_AT_ranges'.
509 2007-11-24 Pedro Alves <pedro_alves@portugalmail.pt>
511 * win32-nat.c (DR6_CLEAR_VALUE): New define.
512 (thread_info_struct): Rename suspend_count to suspended, to be
514 (thread_rec): Only suspend the thread if it wasn't suspended by
515 gdb before. Warn if suspending failed.
516 (win32_add_thread): Set Dr6 to DR6_CLEAR_VALUE.
517 (win32_continue): Set Dr6 to DR6_CLEAR_VALUE. Update usage of the
518 `suspended' flag. Do ContinueDebugEvent after resuming the
519 suspended threads, not before. Set threads' contexts before
520 resuming them, not after.
521 (win32_resume): Set Dr6 to DR6_CLEAR_VALUE.
523 2007-11-23 Vladimir Prus <vladimir@codesourcery.com>
525 * breakpoint.c (insert_breakpoints)
526 (insert_bp_location): Remove stale comments.
528 2007-11-23 Maciej W. Rozycki <macro@mips.com>
530 * mips-linux-tdep.h: Fix some formatting.
532 2007-11-21 Markus Deuling <deuling@de.ibm.com>
534 * stack.c (print_args_stub): Use get_frame_arch to get at the current
535 architecture and replace current_gdbarch.
536 (frame_info): Likewise.
538 2007-11-21 Nick Roberts <nickrob@snap.net.nz>
540 * varobj.c (c_variable_editable, cplus_variable_editable)
541 (java_variable_editable, variable_editable): Delete.
542 (varobj_editable_p): Replace above functions with one language
543 independent function. Check for an lvalue.
544 (varobj_get_attributes, varobj_set_value): Use varobj_editable_p.
545 (struct language_specific): Delete variable_editable field.
547 * mi-cmd-var.c (mi_cmd_var_assign): Simplify.
549 * varobj.h: Add extern for varobj_editable_p.
551 2007-11-20 Vladimir Prus <vladimir@codesourcery.com>
553 Remove unused breakpoint fields.
554 * breakpoint.h (struct breakpoint): Remove
555 from_tty and flag fields.
556 * breakpoint.c (break_command_1): Don't set
557 from_tty and flag field set of breakpoint.
558 (create_ada_exception_breakpoint): Don't set
561 2007-11-20 David Ung <davidu@mips.com>
562 Maciej W. Rozycki <macro@mips.com>
564 * mips-tdep.c (mips16_scan_prologue): Handle the MIPS16e SAVE
567 2007-11-20 Vladimir Prus <vladimir@codesourcery.com>
569 * infrun.c (resume): Clarify logic that
570 decides if a single thread must be resumed. Add
573 2007-11-20 Vladimir Prus <vladimir@codesourcery.com>
575 * breakpoint.c (disable_breakpoints_in_unloaded_shlib):
578 2007-11-19 Markus Deuling <deuling@de.ibm.com>
580 * gdbarch.sh (register_sim_regno): Add gdbarch as parameter.
581 * gdbarch.{c,h}: Regenerate.
583 * arch-utils.h (legacy_register_sim_regno): Add gdbarch as parameter.
584 * score-tdep.c (score_register_sim_regno): Likewise.
585 * sim-regno.h (one2one_register_sim_regno): Likewise.
587 * arch-utils.c (legacy_register_sim_regno): Add gdbarch as parameter.
588 Replace current_gdbarch by gdbarch.
589 * sh-tdep.c (sh_sh2a_register_sim_regno)
590 (sh_dsp_register_sim_regno): Likewise.
591 * rs6000-tdep.c (rs6000_register_sim_regno): Likewise.
592 * mips-tdep.c (mips_register_sim_regno): Likewise.
593 * m32c-tdep.c (m32c_register_sim_regno): Likewise.
594 * frv-tdep.c (frv_register_sim_regno): Likewise.
595 * arm-tdep.c (arm_register_sim_regno): Likewise.
596 * remote-sim.c (one2one_register_sim_regno): Likewise.
598 2007-11-16 Ulrich Weigand <uweigand@de.ibm.com>
600 * configure.ac (--enable-targets): New configure option.
601 Collect gdb_target_obs of multiple targets into TARGET_OBS.
602 Call configure.tgt multiple times, using $targ as operand.
603 * configure.tgt: Operate on $targ instead of $target.
604 * configure: Regenerate.
605 * Makefile.in (ALL_TARGET_OBS): Define.
607 * NEWS: Mention --enable-targets option.
609 2007-11-16 Ulrich Weigand <uweigand@de.ibm.com>
611 * mips-tdep.c (show_mipsfpu_command): Do not crash if called when
612 current architecture is not MIPS.
614 2007-11-16 Ulrich Weigand <uweigand@de.ibm.com>
616 * cli/cli-setshow.c (do_setshow_command): Use dynamically sized buffer
617 to construct error message if no argument was supplied.
619 2007-11-16 Ulrich Weigand <uweigand@de.ibm.com>
621 * i386nbsd-tdep.c (i386nbsd_aout_supply_regset): Remove.
622 (i386nbsd_aout_regset_from_core_section): Likewise.
623 (i386nbsd_aout_init_abi): Likewise.
624 (_initialize_i386nbsd_tdep): Do not register i386nbsd_aout_init_abi.
626 * vaxnbsd-tdep.c (vaxnbsd_aout_init_abi): Remove.
627 (_initialize_vaxnbsd_tdep): Do not register vaxnbsd_aout_init_abi.
629 2007-11-16 Ulrich Weigand <uweigand@de.ibm.com>
631 * amd64fsdb-tdep.c (amd64fbsd_sigtramp_start_addr): Use ULL suffix.
632 (amd64fbsd_sigtramp_end_addr): Likewise.
634 * iq2000-tdep.c (iq2000_pointer_to_address): Fix argument type.
635 (iq2000_address_to_pointer): Likewise.
636 (iq2000_frame_prev_register): Likewise.
637 (iq2000_extract_return_value): Use regcache_cooked_read_unsigned
638 instead of regcache_cooked_read into CORE_ADDR variable.
639 (iq2000_return_value): Fix argument types.
641 * m32r-rom.c (m32r_load_section): Fix printf argument type.
642 (m32r_load): Likewise.
644 * m68kbsd-tdep.c: Include "gdbtypes.h".
645 * Makefile.in: Update dependencies.
647 * mn10300-tdep.c (mn10300_frame_unwind_cache): Fix aliasing violation.
649 * nto-tdep.c (LM_ADDR): Do not refer to no-longer-existing
650 lmo->l_addr_size element.
652 * remote-m32r-sdi.c (m32r_xfer_memory): Use paddr to print address.
653 (m32r_insert_breakpoint): Likewise.
654 (m32r_remove_breakpoint): Likewise.
655 (m32r_insert_watchpoint): Likewise.
656 (m32r_remove_watchpoint): Likewise.
657 (m32r_load): Fix printf argument type.
659 * xtensa-tdep.c (xtensa_regset_from_core_section): Fix printf
661 (xtensa_frame_this_id): Do not cast pointers to "int" for output.
662 (xtensa_frame_prev_register): Likewise.
663 (xtensa_push_dummy_call): Likewise.
665 2007-11-16 Ulrich Weigand <uweigand@de.ibm.com>
667 * config/alpha/alpha-linux.mt: Remove file.
668 * config/alpha/alpha.mt: Remove file.
669 * config/alpha/alpha-osf1.mt: Remove file.
670 * config/alpha/fbsd.mt: Remove file.
671 * config/alpha/nbsd.mt: Remove file.
672 * config/alpha/obsd.mt: Remove file.
673 * config/arm/embed.mt: Remove file.
674 * config/arm/linux.mt: Remove file.
675 * config/arm/nbsd.mt: Remove file.
676 * config/arm/obsd.mt: Remove file.
677 * config/arm/wince.mt: Remove file.
678 * config/avr/avr.mt: Remove file.
679 * config/cris/cris.mt: Remove file.
680 * config/frv/frv.mt: Remove file.
681 * config/h8300/h8300.mt: Remove file.
682 * config/i386/cygwin.mt: Remove file.
683 * config/i386/fbsd64.mt: Remove file.
684 * config/i386/fbsd.mt: Remove file.
685 * config/i386/i386gnu.mt: Remove file.
686 * config/i386/i386.mt: Remove file.
687 * config/i386/i386sol2.mt: Remove file.
688 * config/i386/linux64.mt: Remove file.
689 * config/i386/linux.mt: Remove file.
690 * config/i386/mingw.mt: Remove file.
691 * config/i386/nbsd64.mt: Remove file.
692 * config/i386/nbsd.mt: Remove file.
693 * config/i386/nto.mt: Remove file.
694 * config/i386/obsd64.mt: Remove file.
695 * config/i386/obsd.mt: Remove file.
696 * config/i386/sol2-64.mt: Remove file.
697 * config/ia64/ia64.mt: Remove file.
698 * config/ia64/linux.mt: Remove file.
699 * config/iq2000/iq2000.mt: Remove file.
700 * config/m32c/m32c.mt: Remove file.
701 * config/m32r/linux.mt: Remove file.
702 * config/m32r/m32r.mt: Remove file.
703 * config/m68hc11/m68hc11.mt: Remove file.
704 * config/m68k/linux.mt: Remove file.
705 * config/m68k/monitor.mt: Remove file.
706 * config/m68k/nbsd.mt: Remove file.
707 * config/m68k/obsd.mt: Remove file.
708 * config/m88k/obsd.mt: Remove file.
709 * config/mep/mep.mt: Remove file.
710 * config/mips/embed.mt: Remove file.
711 * config/mips/irix5.mt: Remove file.
712 * config/mips/irix6.mt: Remove file.
713 * config/mips/linux.mt: Remove file.
714 * config/mips/nbsd.mt: Remove file.
715 * config/mips/obsd64.mt: Remove file.
716 * config/mn10300/linux.mt: Remove file.
717 * config/mn10300/mn10300.mt: Remove file.
718 * config/mt/mt.mt: Remove file.
719 * config/pa/hppahpux.mt: Remove file.
720 * config/pa/hppa.mt: Remove file.
721 * config/pa/linux.mt: Remove file.
722 * config/pa/obsd.mt: Remove file.
723 * config/powerpc/aix.mt: Remove file.
724 * config/powerpc/linux.mt: Remove file.
725 * config/powerpc/nbsd.mt: Remove file.
726 * config/powerpc/obsd.mt: Remove file.
727 * config/powerpc/ppc-eabi.mt: Remove file.
728 * config/s390/s390.mt: Remove file.
729 * config/score/embed.mt: Remove file.
730 * config/sh/embed.mt: Remove file.
731 * config/sh/linux.mt: Remove file.
732 * config/sh/nbsd.mt: Remove file.
733 * config/sh/obsd.mt: Remove file.
734 * config/sh/sh64.mt: Remove file.
735 * config/sparc/embed.mt: Remove file.
736 * config/sparc/fbsd.mt: Remove file.
737 * config/sparc/linux64.mt: Remove file.
738 * config/sparc/linux.mt: Remove file.
739 * config/sparc/nbsd64.mt: Remove file.
740 * config/sparc/nbsd.mt: Remove file.
741 * config/sparc/obsd64.mt: Remove file.
742 * config/sparc/obsd.mt: Remove file.
743 * config/sparc/sol2-64.mt: Remove file.
744 * config/sparc/sol2.mt: Remove file.
745 * config/sparc/sparc64.mt: Remove file.
746 * config/sparc/sparc.mt: Remove file.
747 * config/spu/spu.mt: Remove file.
748 * config/v850/v850.mt: Remove file.
749 * config/vax/nbsd.mt: Remove file.
750 * config/vax/obsd.mt: Remove file.
751 * config/vax/vax.mt: Remove file.
752 * config/xstormy16/xstormy16.mt: Remove file.
753 * config/xtensa/xtensa.mt: Remove file.
755 * configure.tgt (gdb_target_cpu): Remove. Do not set anywhere.
756 (gdb_target): Likewise.
757 (gdb_target_obs): Document. Set for every target to contents
758 of TDEPFILES in former .mt makefile fragment.
760 * configure.ac (TARGET_OBS): Define.
761 (target_makefile_frag, gdb_target_cpu): Do not define.
762 * configure: Regenerate.
764 * Makefile.in (MT_FLAGS): Remove.
765 (GLOBAL_CFLAGS): Update.
766 (TARGET_OBS): Substitute from configure.
767 (DEPFILES): Remove TDEPFILES, add TARGET_OBS.
768 (@target_makefile_frag@): Remove.
770 2007-11-16 Ulrich Weigand <uweigand@de.ibm.com>
772 * config/arm/embed.mt (SIM_OBS, SIM): Remove.
773 * config/avr/avr.mt (SIM_OBS, SIM): Remove.
774 * config/frv/frv.mt (SIM_OBS, SIM): Remove.
775 * config/h8300/h8300.mt (SIM_OBS, SIM): Remove.
776 * config/iq2000/iq2000.mt (SIM_OBS, SIM): Remove.
777 * config/m32c/m32c.mt (SIM_OBS, SIM): Remove.
778 * config/m32r/linux.mt (SIM_OBS, SIM): Remove.
779 * config/m32r/m32r.mt (SIM_OBS, SIM): Remove.
780 * config/m68hc11/m68hc11.mt (SIM_OBS, SIM): Remove.
781 * config/mips/embed.mt (SIM_OBS, SIM): Remove.
782 * config/mips/linux.mt (SIM_OBS, SIM): Remove.
783 * config/mips/nbsd.mt (SIM_OBS, SIM): Remove.
784 * config/mn10300/mn10300.mt (SIM_OBS, SIM): Remove.
785 * config/powerpc/linux.mt (SIM_OBS, SIM): Remove.
786 * config/powerpc/nbsd.mt (SIM_OBS, SIM): Remove.
787 * config/powerpc/ppc-sim.mt: Remove file.
788 * config/sh/embed.mt (SIM_OBS, SIM): Remove.
789 * config/sh/linux.mt (SIM_OBS, SIM): Remove.
790 * config/sh/nbsd.mt (SIM_OBS, SIM): Remove.
791 * config/sh/sh64.mt (SIM_OBS, SIM): Remove.
792 * config/sparc/embed.mt (SIM_OBS, SIM): Remove.
793 * config/v850/v850.mt (SIM_OBS, SIM): Remove.
794 * config/xstormy16/xstormy16.mt (SIM_OBS, SIM): Remove.
796 * configure.tgt (gdb_sim): Document variable.
797 (arm*-*-* | thumb*-*-* | strongarm*-*-* | xscale-*-*): Set it.
800 (h8300-*-*): Likewise.
801 (iq2000-*-*): Likewise.
802 (m32c-*-*): Likewise.
803 (m32r*-*-linux*): Likewise.
804 (m32r*-*-*): Likewise.
805 (m68hc11*-*-*|m6811*-*-*): Likewise.
806 (mips*-*-*): Likewise.
807 (mips*-*-linux*): Likewise.
808 (mips*-*-netbsd* | mips*-*-knetbsd*-gnu): Likewise.
809 (mn10300-*-*): Likewise.
810 (powerpc-*-linux* | powerpc64-*-linux*): Likewise.
811 (powerpc-*-netbsd* | powerpc-*-knetbsd*-gnu): Likewise.
812 (powerpc*-*-*): Use ppc-eabi target. Conditionally set gdb_sim.
814 (sh-*-linux*): Likewise.
815 (sh*-*-netbsdelf* | sh*-*-knetbsd*-gnu): Likewise.
816 (sh64-*-elf*): Likewise.
817 (sparc-*-rtems*): Likewise.
818 (v850*-*-elf): Likewise.
819 (xstormy16-*-*): Likewise.
821 * configure.ac (IGNORE_SIM, IGNORE_SIM_OBS): Do not set.
822 (SIM, SIM_OBS): Set depending on ${ignore_sim} and ${gdb_sim}.
823 * configure: Regenerate.
824 * Makefile.in (SIM, SIM_OBS): Substitute from configure.
825 (@IGNORE_SIM@, @IGNORE_SIM_OBS@): Remove.
827 2007-11-16 Ulrich Weigand <uweigand@de.ibm.com>
829 * configure.tgt (gdb_osabi, build_gdbserver): Comment variables.
830 (arm*-*-*): Do not set obsolete build_rdi_share variable.
832 (*-*-freebsd* | *-*-kfreebsd*-gnu): Remove generic case, replace by ...
833 (alpha*-*-freebsd* | alpha*-*-kfreebsd*-gnu)
834 (i[34567]86-*-freebsd* | i[34567]86-*-kfreebsd*-gnu)
835 (sparc*-*-freebsd* | sparc*-*-kfreebsd*-gnu): ... specific cases.
836 (x86_64-*-freebsd* | x86_64-*-kfreebsd*-gnu): Re-sort.
838 (xscale-*-*): Merge into arm*-*-* case.
839 (fido-*-elf*): Merge into m68*-*-elf* case.
840 (m68*-*-aout*, m68*-*-coff*, m68*-*-elf*, m68*-*-rtems*,
841 m68*-*-uclinux*): Merge cases.
842 (powerpc-*-linux*, powerpc64-*-linux*): Merge cases.
843 (sh-*-coff*, sh-*-elf*): Merge into sh* case.
845 2007-11-16 Ulrich Weigand <uweigand@de.ibm.com>
847 * configure.tgt: Reformat main case statement.
849 2007-11-16 Ulrich Weigand <uweigand@de.ibm.com>
851 * configure.ac (hostfile, targetfile): Remove.
852 (GDB_XM_FILE, GDB_TM_FILE): Do not define.
853 (xm_h, tm_h): Likewise.
854 (DEPRECATED_TM_FILE, XM_FILE): Do not substitute into Makefile.
855 * configure, config.in: Regenerate.
857 * Makefile.in (xm_h, tm_h): Remove. Update dependencies.
858 (TAGS): Do not consider DEPRECATED_TM_FILE or XM_FILE.
859 (clean, local-maintainer-clean): Do not remove xm.h or tm.h.
860 * defs.h: Do not include "xm.h" or "tm.h".
862 * gdbarch.sh (verify_gdbarch): Do not dump GDB_XM_FILE or GDB_TM_FILE.
863 * gdbarch.c: Regenerate.
865 * config/score/embed.mt: Remove obsolete comment.
867 2007-11-16 Markus Deuling <deuling@de.ibm.com>
869 * gdbarch.sh (cannot_fetch_register, cannot_store_register): Add gdbarch
871 * gdbarch.{c,h}: Regenerate.
873 * alpha-tdep.c (alpha_cannot_fetch_register)
874 (alpha_cannot_store_register): Add gdbarch as parameter. Replace
875 current_gdbarch by gdbarch.
876 * cris-tdep.c (cris_cannot_fetch_register, cris_cannot_store_register)
877 (crisv32_cannot_fetch_register)
878 (crisv32_cannot_store_register): Likewise.
879 * arch-utils.c (cannot_register_not): Likewise.
880 * arch-utils.h (cannot_register_not): Likewise.
881 * hppa-tdep.c (hppa32_cannot_store_register)
882 (hppa32_cannot_store_register, hppa64_cannot_store_register)
883 (hppa64_cannot_fetch_register): Likewise.
884 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register)
885 (mipsnbsd_cannot_store_register): Likewise.
887 2007-11-16 Markus Deuling <deuling@de.ibm.com>
889 * m32r-rom.c (m32r_supply_register): Use get_regcache_arch to get at
890 the current architecture by regcache.
891 * ppcnbsd-nat.c (ppcnbsd_supply_pcb): Likewise.
892 * ppc-linux-nat.c (fetch_altivec_register, fetch_spe_register)
893 (fetch_register, supply_vrregset, fetch_ppc_registers)
894 (store_altivec_register, store_spe_register, store_register)
895 (fill_vrregset, store_ppc_registers): Likewise.
896 * ppcobsd-nat.c (ppcobsd_supply_pcb): Likewise.
897 * win32-nat.c (do_win32_fetch_inferior_registers)
898 (do_win32_store_inferior_registers): Likewise.
899 * procfs.c (procfs_fetch_registers, procfs_store_registers): Likewise.
900 * remote-m32r-sdi.c (m32r_fetch_registers)
901 (m32r_store_registers): Likewise.
902 * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register): Likewise.
904 * trad-frame.c (trad_frame_alloc_saved_regs): Replace current_gdbarch by
906 * user-regs.c (user_reg_map_name_to_regnum): Likewise.
907 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call)
908 (do_ppc_sysv_return_value, ppc64_sysv_abi_push_dummy_call)
909 (ppc64_sysv_abi_return_value): Likewise.
910 * m32c-tdep.c (m32c_register_reggroup_p): Likewise.
911 * m2-lang.c (build_m2_types): Likewise.
912 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache
913 * ppcnbsd-tdep.c (ppcnbsd_sigtramp_cache_init): Likewise.
914 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_cache): Likewise.
915 * rs6000-tdep.c (ppc_dwarf2_frame_init_reg): Likewise.
917 * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Use get_frame_arch to
918 get at the current architecture by frame_info.
919 * gcore.c (derive_stack_segment): Likewise.
921 * shnbsd-nat.c (GETREGS_SUPPLIES): Add gdbarch parameter.
922 (shnbsd_fetch_inferior_registers, shnbsd_store_inferior_registers): Add
923 gdbarch to GETREGS_SUPPLIES call.
925 2007-11-16 Ulrich Weigand <uweigand@de.ibm.com>
927 * elfread.c (ST_REGULAR, ST_DYNAMIC, ST_SYNTHETIC): New defines.
928 (elf_symtab_read): Rename DYNAMIC argument to TYPE. Do not access
929 ELF-private symbol data when processing synthetic symbols. Use
930 udata.p to get at size of ppc64 synthetic 'dot' symbols.
931 (elf_symfile_read): Pass TYPE argument to elf_symtab_read.
933 2007-11-15 Doug Evans <dje@google.com>
935 * buildsym.h (subfiles): Move ...
936 * buildsym.c (subfiles): ... to here and make static.
938 * symmisc.c (maintenance_info_symtabs): Print linetable info.
940 2007-11-15 Markus Deuling <deuling@de.ibm.com>
942 * mipsnbsd-tdep.h (SIZEOF_STRUCT_REG, SIZEOF_STRUCT_FPREG): Remove
944 2007-11-15 Markus Deuling <deuling@de.ibm.com>
946 * arm-tdep.c (arm_prologue_this_id): Replace LOWEST_PC by its
947 expression and use get_frame_arch to replace current_gdbarch by frame's
949 * arm-tdep.h (LOWEST_PC): Remove
951 2007-11-15 Vladimir Prus <vladimir@codesourcery.com>
953 Apply const qualifier to some users of bp_location.
954 * breakpoint.h (struct bpstats): Make
955 the breakpoint_at field point at const bp_location.
956 * breakpoint.c (bpstat_alloc): Accept const
958 (breakpoint_here_p, breakpoint_inserted_here_p)
959 (software_breakpoint_inserted_here_p)
960 (breakpoint_thread_match, bpstat_stop_status)
961 (read_memory_nobpt, bpstat_have_active_hw_watchpoints): Use
962 const bp_location for iteration.
963 (print_it_typical, print_bp_stop_message): Use
964 const bp_location variable.
966 2007-11-15 Vladimir Prus <vladimir@codesourcery.com>
968 Make mark_breakpoints_out static.
969 * breakpoint.h (mark_breakpoints_out): Remove
971 * breakpoint.c (mark_breakpoints_out): Make static.
973 2007-11-15 Vladimir Prus <vladimir@codesourcery.com>
975 Prevent clear_command from directly modifying breakpoint list.
976 * Makefile.in (breakpoint_h): Update dependency.
977 * breakpoint.c (clear_command): Do not remove
978 breakpoints from breakpoint_chain. Collect breakpoints
979 to delete in a vector.
980 * breakpoint.h (breakpoint_p): New typedef for pointer to
981 breakpoint. Register vector of breakpoint_p.
983 2007-11-15 Vladimir Prus <vladimir@codesourcery.com>
985 Remove 'run_cleanup'.
986 * defs.h (do_run_cleanups, make_run_cleanup): Remove
988 * infcmd.c (run_command_1): Call clear_solib instead
990 * jv-lang.c (java_rerun_cleanup): Remove, for lack of
992 * solib.c (solib_cleanup_queued, do_clear_solib): Remove.
993 (update_solib_lib): Don't setup run cleanup.
994 (no_shared_libraries): Call clear_solib, not do_clear_solib.
995 * utils.c (run_cleanup_chain, make_run_cleanup)
996 (do_run_cleanups): Remove.
998 2007-11-15 Vladimir Prus <vladimir@codesourcery.com>
1000 Remove CLEAR_SOLIB use.
1001 * corelow.c (core_close): Don't check for CLEAR_SOLIB.
1002 * infcmd.c (attach_command): Likewise.
1004 2007-11-14 Doug Evans <dje@google.com>
1006 * buildsym.c (start_subfile,start_symtab): Doc fixes.
1008 2007-11-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
1010 * tui/tui-data.c (tui_prev_win): Guard against NULL.
1012 2007-11-12 Markus Deuling <deuling@de.ibm.com>
1014 * gdbarch.sh (gdbarch_alloc): Replace current_gdbarch by gdbarch. Remove
1016 (verify_gdbarch, gdbarch_dump): Likewise.
1017 (do_read): Update comment.
1018 (addr_bit, bfd_arch_info, target_desc, long_long_bit, floatformat)
1019 (ptr_bit, name_of_malloc): Replace current_gdbarch by gdbarch.
1020 * gdbarch.{c,h}: Regenerate.
1022 2007-11-12 Markus Deuling <deuling@de.ibm.com>
1024 * xtensa-tdep.c (ARG_1ST): Replace ARGS_FIRST_REG by its expression.
1025 (ARGS_FIRST_REG): Remove.
1026 (areg_numer): New function.
1027 (xtensa_pseudo_register_read, xtensa_frame_prev_register)
1028 (xtensa_extract_return_value, xtensa_store_return_value)
1029 (xtensa_frame_cache): Replace AREG_NUMBER by areg_number.
1030 (AREG_NUMBER): Remove.
1031 (XTENSA_IS_ENTRY, ARG_NOF, ARG_1ST): Add gdbarch as parameter.
1032 (xtensa_frame_cache): Update use of XTENSA_IS_ENTRY.
1033 (xtensa_push_dummy_call): Update use of ARG_NOF.
1034 (extract_call_winsize): Add gdbarch as parameter. Replace
1035 current_gdbarch by gdbarch.
1036 (xtensa_extract_return_value, xtensa_store_return_value): Update call
1037 of extract_call_winsize.
1039 2007-11-10 Joel Brobecker <brobecker@adacore.com>
1041 * NEWS: Add entry for new set/show print frame-args command.
1043 2007-11-09 Kevin Buettner <kevinb@redhat.com>
1045 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Add missing
1046 register number to map. Adjust warning check and error/warning
1047 return value code to match expectations of this function's callers.
1049 2007-11-09 Joel Brobecker <brobecker@adacore.com>
1051 * stack.c (print_this_frame_argument_p): Handle arguments passed
1052 by reference properly.
1054 2007-11-09 Joel Brobecker <brobecker@adacore.com>
1056 * stack.c (print_frame_arguments_choices): New static global.
1057 (print_frame_arguments): Likewise.
1058 (print_this_frame_argument_p): New function.
1059 (print_frame_args): Print the argument value only when appropriate.
1060 (_initialize_task): Add new "set/show print frame-arguments" command.
1062 2007-11-09 Luis Machado <luisgpm@br.ibm.com>
1064 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Move
1065 saved_dabr_value assignment to the correct position.
1067 2007-11-09 Markus Deuling <deuling@de.ibm.com>
1069 * arch-utils.c (generic_convert_register_p): Add gdbarch as parameter.
1070 * arch-utils.h (generic_convert_register_p): Likewise.
1072 2007-11-09 Markus Deuling <deuling@de.ibm.com>
1074 * gdbarch.sh (convert_register_p): Add gdbarch as parameter.
1075 * ia64-tdep.c (ia64_convert_register_p): Likewise.
1076 * i387-tdep.c (i387_convert_register_p): Likewise.
1077 * i387-tdep.h (i387_convert_register_p): Likewise.
1078 * alpha-tdep.c (alpha_convert_register_p): Likewise.
1079 * gdbarch.{c,h}: Regenerate.
1081 * rs6000-tdep.c (rs6000_convert_register_p): Add gdbarch as parameter.
1082 Replace current_gdbarch by gdbarch.
1083 * mips-tdep.c (mips_convert_register_p): Likewise.
1084 * m68k-tdep.c (m68k_convert_register_p): Likewise.
1085 * i386-tdep.c (i386_convert_register_p): Likewise.
1087 2007-11-08 Aleksandar Ristovski <aristovski@qnx.com>
1089 * gdb_string.h: Include <strings.h>.
1091 2007-11-08 Vladimir Prus <vladimir@codesourcery.com>
1093 * breakpoint.c (break_command_1): Remove
1094 pending_bp parameter.
1095 (create_breakpoint): Likewise.
1096 (create_breakpoints): Likewise. Adjust call to
1098 (break_command_1): Likewise. Adjust call to
1100 (do_captured_breakpoint): Adjust call to
1102 (break_command, tbreak_command, hbreak_command)
1103 (stopin_command, stopat_command): Adjust call
1106 2007-11-07 Joseph Myers <joseph@codesourcery.com>
1107 Daniel Jacobowitz <dan@codesourcery.com>
1109 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Right-align
1110 struct values smaller than one doubleword; left-align those
1111 larger. Pass structs containing a single floating-point value in
1114 2007-11-07 Joseph Myers <joseph@codesourcery.com>
1115 Daniel Jacobowitz <dan@codesourcery.com>
1117 * gdbtypes.c (floatformats_ibm_long_double): New.
1118 * gdbtypes.h (floatformats_ibm_long_double): Declare.
1119 * ia64-tdep.c (floatformat_ia64_ext): Update for addition of
1121 * mips-tdep.c (n32n64_floatformat_always_valid,
1122 floatformat_n32n64_long_double_big, floatformats_n32n64_long):
1124 (mips_gdbarch_init): Use floatformats_ibm_long_double instead of
1125 floatformats_n32n64_long.
1126 * ppc-linux-tdep.c (ppc_linux_init_abi): Use 128-bit IBM long
1128 * doublest.c (convert_floatformat_to_doublest,
1129 convert_doublest_to_floatformat): Handle split floating-point
1131 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Handle IBM long
1133 (ppc64_sysv_abi_push_dummy_call): Likewise.
1134 (do_ppc_sysv_return_value): Handle IBM long double return.
1136 2007-11-07 Vladimir Prus <vladimir@codesourcery.com>
1138 Fix crash when a variable object being deleted
1139 has any of its children deleted previously.
1141 * varobj.c (delete_variable_1): Don't recurse
1142 into deleted children.
1144 2007-11-07 Markus Deuling <deuling@de.ibm.com>
1146 * gdbarch.sh (legacy_virtual_frame_pointer): Add gdbarch parameter.
1147 * gdbarch.{c,h}: Regenerate.
1148 * arch-utils.c (legacy_virtual_frame_pointer): Add gdbarch parameter.
1149 Replace current_gdbarch by gdbarch.
1150 * m32c-tdep.c (m32c_virtual_frame_pointer): Likewise.
1151 * mips-tdep.c (mips_virtual_frame_pointer): Likewise.
1152 * spu-tdep.c (spu_virtual_frame_pointer): Likewise.
1154 2007-11-07 Markus Deuling <deuling@de.ibm.com>
1156 * shnbsd-tdep.c (shnbsd_supply_gregset, shnbsd_collect_gregset): Use
1157 get_regcache_arch to get at the current architecture by regcache.
1158 * xstormy16-tdep.c (xstormy16_frame_prev_register): Use get_frame_arch
1159 to get at the current architecture by frame_info.
1160 * fbsd-nat.c (fbsd_make_corefile_notes): Use get_regcache_arch to get
1161 at the current architecture by regcache.
1162 * gnu-v3-abi.c (gnuv3_skip_trampoline): Use get_frame_arch to get at
1163 the current architecture by frame_info.
1164 (build_gdb_vtable_type): Replace current_gdbarch by gdbarch.
1165 * aix-thread.c (special_register_p): Add gdbarch as parameter.
1166 (fetch_regs_kernel_thread, store_regs_kernel_thread): Add gdbarch to
1167 caller of special_register_p.
1169 2007-11-07 Markus Deuling <deuling@de.ibm.com>
1171 * infcall.c (call_function_by_hand): Use get_frame_arch to get at the
1172 current architecture by frame_info.
1174 2007-11-07 Markus Deuling <deuling@de.ibm.com>
1176 * xtensa-tdep.h (SIZEOF_GREGSET, XTENSA_ELF_NGREG) Remove.
1178 2007-11-07 Markus Deuling <deuling@de.ibm.com>
1180 * s390-nat.c (supply_gregset, fill_gregset): Use get_regcache_arch to
1181 get at the current architecture by regcache.
1182 (SUBOFF): Add gdbarch to macro definition.
1184 2007-11-07 Markus Deuling <deuling@de.ibm.com>
1186 * gdbarch.sh (breakpoint_from_pc): Add gdbarch parameter.
1187 * gdbarch.{c,h}: Regenerate.
1189 * xtensa-tdep.c (xtensa_breakpoint_from_pc): Add gdbarch parameter.
1190 Replace current_gdbarch by gdbarch.
1191 * sh-tdep.c (sh_breakpoint_from_pc): Likewise.
1192 * sh64-tdep.c (sh64_breakpoint_from_pc): Likewise.
1193 * score-tdep.c (score_breakpoint_from_pc): Likewise.
1194 * mips-tdep.c (mips_breakpoint_from_pc): Likewise.
1195 * m32r-tdep.c (m32r_breakpoint_from_pc): Likewise.
1196 * iq2000-tdep.c (iq2000_breakpoint_from_pc): Likewise.
1197 * arm-tdep.c (arm_breakpoint_from_pc): Likewise.
1199 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Add gdbarch
1201 * vax-tdep.c (vax_breakpoint_from_pc): Likewise.
1202 * v850-tdep.c (v850_breakpoint_from_pc): Likewise.
1203 * spu-tdep.c (spu_breakpoint_from_pc): Likewise.
1204 * sparc-tdep.c (sparc_breakpoint_from_pc): Likewise.
1205 * s390-tdep.c (s390_breakpoint_from_pc): Likewise.
1206 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Likewise.
1207 * mt-tdep.c (mt_breakpoint_from_pc): Likewise.
1208 * mep-tdep.c (mep_breakpoint_from_pc): Likewise.
1209 * m88k-tdep.c (m88k_breakpoint_from_pc): Likewise.
1210 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Likewise.
1211 * m32c-tdep.c (m32c_breakpoint_from_pc): Likewise.
1212 * ia64-tdep.c (ia64_breakpoint_from_pc): Likewise.
1213 * i386-tdep.c (i386_breakpoint_from_pc): Likewise.
1214 * hppa-tdep.c (hppa_breakpoint_from_pc): Likewise.
1215 * h8300-tdep.c (h8300_breakpoint_from_pc): Likewise.
1216 * frv-tdep.c (frv_breakpoint_from_pc): Likewise.
1217 * cris-tdep.c (cris_breakpoint_from_pc): Likewise.
1218 * avr-tdep.c (avr_breakpoint_from_pc): Likewise.
1219 * alpha-tdep.c (alpha_breakpoint_from_pc): Likewise.
1220 * m68k-tdep.c (m68k_local_breakpoint_from_pc): Likewise.
1222 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Add gdbarch parameter.
1223 Replace current_gdbarch by gdbarch.
1224 (rs6000_software_single_step): Use get_frame_arch to get at the
1225 current architecture by frame_info. Add gdbarch to
1226 rs6000_breakpoint_from_pc call.
1228 2007-11-07 Markus Deuling <deuling@de.ibm.com>
1230 * frv-tdep.c (frv_register_name, frv_check_watch_resources): Replace
1231 macro CURRENT_VARIANT by its expression.
1232 (CURRENT_VARIANT): Remove.
1233 (frv_check_watch_resources): Add gdbarch parameter.
1235 2007-11-07 Markus Deuling <deuling@de.ibm.com>
1237 * MAINTAINERS (Write After Approval): Add self.
1239 2007-11-05 Ulrich Weigand <uweigand@de.ibm.com>
1241 * features/rs6000/power-core.xml: Use uint32 as register type.
1242 * features/rs6000/power64-core.xml: Use uint64/uint32 as register type.
1243 * features/rs6000/powerpc-32.c: Regenerate.
1244 * features/rs6000/powerpc-403.c: Regenerate.
1245 * features/rs6000/powerpc-403gc.c: Regenerate.
1246 * features/rs6000/powerpc-505.c: Regenerate.
1247 * features/rs6000/powerpc-602.c: Regenerate.
1248 * features/rs6000/powerpc-603.c: Regenerate.
1249 * features/rs6000/powerpc-604.c: Regenerate.
1250 * features/rs6000/powerpc-64.c: Regenerate.
1251 * features/rs6000/powerpc-7400.c: Regenerate.
1252 * features/rs6000/powerpc-750.c: Regenerate.
1253 * features/rs6000/powerpc-860.c: Regenerate.
1254 * features/rs6000/powerpc-e500.c: Regenerate.
1256 2007-11-05 Joel Brobecker <brobecker@adacore.com>
1258 * breakpoint.c (set_raw_breakpoint_without_location): Make static.
1260 2007-11-05 Joel Brobecker <brobecker@adacore.com>
1262 * breakpoint.h (create_solib_load_event_breakpoint)
1263 (create_solib_unload_event_breakpoint)
1264 (create_fork_event_catchpoint, create_vfork_event_catchpoint)
1265 (create_exec_event_catchpoint): Delete declaration.
1266 * breakpoint.c (create_solib_load_event_breakpoint)
1267 (solib_load_unload_1, create_solib_unload_event_breakpoint): Delete.
1268 (create_fork_event_catchpoint, create_vfork_event_catchpoint)
1269 (create_exec_event_catchpoint): Make static.
1271 2007-11-05 Joel Brobecker <brobecker@adacore.com>
1273 * breakpoint.h (set_breakpoint_sal): Remove declaration.
1274 * breakpoint.c (set_breakpoint_sal): Delete.
1276 2007-11-05 Joel Brobecker <brobecker@adacore.com>
1278 * buildsym.c (finish_block): Remove "#if 1"/"#endif" brackets.
1279 (make_blockvector): Likewise. Remove FIXME comment.
1281 2007-11-05 Luis Machado <luisgpm@br.ibm.com>
1283 * printcmd.c: (printf_command): Add support for new DFP
1284 modifiers %H, %D and %DD.
1285 * configure.ac: Add check for DECFLOAT printf support.
1286 * configure: Regenerated.
1288 2007-11-02 Ulrich Weigand <uweigand@de.ibm.com>
1290 * gdbtypes.h (struct cplus_struct_type): Remove runtime_ptr member.
1291 (TYPE_RUNTIME_PTR, TYPE_VTABLE, TYPE_HAS_VTABLE,
1292 TYPE_PRIMARY_BASE, TYPE_VIRTUAL_BASE_LIST): Remove macros.
1293 (HP_ACC_VFUNC_START, HP_ACC_VBASE_START, HP_ACC_TYPEINFO_OFFSET,
1294 HP_ACC_TOP_OFFSET_OFFSET): Likewise.
1295 (has_vtable, primary_base_class, virtual_base_list_length,
1296 virtual_base_list_length_skip_primaries, virtual_base_index,
1297 virtual_base_index_skip_primaries, class_index_in_primary_list,
1298 count_virtual_fns): Remove prototypes.
1299 * gdbtypes.c (has_vtable, primary_base_class, current_vbase_list,
1300 virtual_base_list_aux, virtual_base_list, virtual_base_list_length,
1301 virtual_base_list_length_skip_primaries, virtual_base_index,
1302 virtual_base_index_skip_primaries, class_index_in_primary_list,
1303 count_virtual_fns): Remove.
1305 * cp-valprint.c (cp_print_hpacc_virtual_table_entries): Remove.
1306 (hpacc_vtbl_ptr_name, hpacc_vtbl_ptr_type_name): Remove.
1307 (cp_print_value_fields): Remove support for HP aCC vtables.
1308 (cp_print_value): Likewise.
1309 * c-typeprint.c (c_type_print_base): Likewise.
1311 * value.h (find_rt_vbase_offset): Remove prototype.
1312 * valops.c (find_rt_vbase_offset): Remove.
1313 (search_struct_method): Remove support for HP aCC vtables.
1314 (find_method_list): Likewise.
1316 2007-11-02 Ulrich Weigand <uweigand@de.ibm.com>
1318 * language.h (struct language_defn): Remove la_builtin_type_vector
1319 and string_char_type members.
1320 * language.c (language_string_char_type): No longer consult
1321 la->string_char_type.
1322 (language_lookup_primitive_type_by_name): No longer consult
1323 current_language->la_builtin_type_vector.
1325 * language.c (unknown_language_defn, auto_language_defn,
1326 local_language_defn): Adapt initializer.
1327 * ada-lang.c (ada_language_defn): Likewise.
1328 * c-lang.c (c_language_defn, cplus_language_defn, asm_language_defn,
1329 minimal_language_defn): Likewise.
1330 * f-lang.c (f_language_defn): Likewise.
1331 * jv-lang.c (java_language_defn): Likewise.
1332 * m2-lang.c (m2_language_defn): Likewise.
1333 * objc-lang.c (objc_language_defn): Likewise.
1334 * p-lang.c (pascal_language_defn): Likewise.
1335 * scm-lang.c (scm_language_defn): Likewise.
1337 2007-11-02 Markus Deuling <deuling@de.ibm.com>
1339 * frame.c (frame_id_inner): Add gdbarch parameter. Replace
1340 current_gdbarch by gdbarch.
1341 (frame_find_by_id, get_prev_frame_1): Use get_frame_arch to get at the
1342 current architecture by frame_info.
1343 * frame.h (frame_id_inner): Add gdbarch parameter.
1344 * stack.c (return_command): Use get_frame_arch to get at the current
1345 architecture by frame_info. Update call of frame_id_inner.
1346 * infrun.c (handle_inferior_event): Likewise.
1347 * dummy-frame.c (dummy_frame_push): Use get_regcache_arch to get at the
1348 current architecture by regcache. Update call of frame_id_inner.
1350 2007-11-02 Markus Deuling <deuling@de.ibm.com>
1352 * gdbarch.sh (register_name): Add gdbarch parameter.
1353 * gdbarch.{c,h}: Regenerate.
1355 * target-descriptions.c (tdesc_register_name): Add gdbarch parameter.
1356 (tdesc_register_name): Replace current_gdbarch by gdbarch.
1357 * target-descriptions.h (tdesc_register_name): Add gdbarch parameter.
1359 * xstormy16-tdep.c (xstormy16_register_name): Add gdbarch parameter.
1360 * vax-tdep.c (vax_register_name): Add gdbarch parameter.
1361 * spu-tdep.c (spu_register_name): Add gdbarch parameter.
1362 * s390-tdep.c (s390_register_name): Add gdbarch parameter.
1363 * mt-tdep.c (mt_register_name): Add gdbarch parameter.
1364 (mt_registers_info): Replace current_gdbarch by gdbarch.
1365 (mt_register_reggroup_p): Add gdbarch to mt_register_name call.
1366 * mips-tdep.c (mips_register_name): Add gdbarch parameter. Replace
1367 current_gdbarch by gdbarch.
1368 (mips_register_name): Add gdbarch to tdesc_register_name call.
1369 * mep-tdep.c (mep_register_name): Add gdbarch parameter. Replace
1370 current_gdbarch by gdbarch.
1371 (mep_register_reggroup_p): Add gdbarch to mep_register_name call.
1372 * m32c-tdep.c (m32c_register_name): Add gdbarch parameter. Replace
1373 current_gdbarch by gdbarch.
1374 * m88k-tdep.c (m88k_register_name): Add gdbarch parameter.
1375 * m68k-tdep.c (m68k_register_name): Add gdbarch parameter.
1376 * m32r-tdep.c (m32r_register_name): Add gdbarch parameter.
1377 (m32r_frame_unwind_cache): Use get_frame_arch to get at the current
1378 architecture by frame_info.
1379 * iq2000-tdep.c (iq2000_register_name): Add gdbarch parameter.
1380 * ia64-tdep.c (ia64_register_name): Add gdbarch parameter.
1381 * hppa-tdep.c (hppa32_register_name, hppa64_register_name): Add gdbarch
1383 * h8300-tdep.c (h8300_register_name, h8300s_register_name)
1384 (h8300sx_register_name): Add gdbarch parameter.
1385 * cris-tdep.c (cris_register_name, crisv32_register_name): Add
1386 gdbarch parameter. Replace current_gdbarch by gdbarch.
1387 (cris_gdbarch_init): Replace current_gdbarch by gdbarch (comment).
1388 * avr-tdep.c (avr_register_name): Add gdbarch parameter.
1389 * arm-tdep.c (arm_register_name): Add gdbarch paramete
1390 * amd64-tdep.c (amd64_register_name): Add gdbarch parameter. Update
1392 * amd64-tdep.h (amd64_register_name): Add gdbarch parameter.
1393 * amd64-linux-tdep.c (amd64_linux_register_name): Add gdbarch parameter.
1394 * alpha-tdep.c (alpha_register_name): Add gdbarch parameter.
1395 (alpha_cannot_fetch_register, alpha_cannot_store_register): Update call
1396 of alpha_register_name.
1397 * frv-tdep.c (frv_register_name): Add gdbarch parameter.
1398 * i386-tdep.c (i386_register_name): Add gdbarch parameter. Replace
1399 current_gdbarch by gdbarch.
1400 (i386_register_type): Replace ?current_gdbarch by gdbarch.
1401 * i386-tdep.h (i386_register_name): Add gdbarch parameter.
1402 * i386-linux-tdep.c (i386_linux_register_name): Add gdbarch parameter.
1404 * m68hc11-tdep.c (m68hc11_register_name): Add gdbarch parameter.
1405 (m68hc11_register_reggroup_p): Add gdbarch to call of
1406 m68hc11_register_name.
1407 * mn10300-tdep.c (mn10300_generic_register_name, am33_register_name)
1408 (am33_2_register_name): Add gdbarch parameter.
1409 (mn10300_frame_unwind_cache): Use get_frame_arch to get at the current
1410 architecture by frame_info.
1411 (mn10300_dump_tdep): Replace current_gdbarch by gdbarch.
1412 * rs6000-tdep.c (rs6000_register_name): Add gdbarch parameter. Replace
1413 current_gdbarch by gdbarch.
1414 * score-tdep.c (score_register_name): Add gdbarch parameter.
1415 (score_return_value, score_push_dummy_call): Replace current_gdbarch
1417 * sh64-tdep.c (sh64_register_name): Add gdbarch parameter.
1418 (sh64_compact_reg_base_num, sh64_register_convert_to_virtual)
1419 (sh64_register_convert_to_raw, sh64_fv_reg_base_num)
1420 (sh64_dr_reg_base_num, sh64_fpp_reg_base_num): Add gdbarch parameter
1421 and update caller. Replace current_gdbarch by gdbarch.
1422 (sh64_extract_return_value, sh64_store_return_value): Use
1423 get_regcache_arch to get at the current architecture by regcache.
1424 * sh-tdep.c (sh_sh_register_name, sh_sh3_register_name)
1425 (sh_sh3e_register_name, sh_sh2e_register_name, sh_sh2a_register_name)
1426 (sh_sh2a_nofpu_register_name, sh_sh_dsp_register_name)
1427 (sh_sh3_dsp_register_name, sh_sh4_register_name)
1428 (sh_sh4_nofpu_register_name, sh_sh4al_dsp_register_name): Add gdbarch
1430 (fv_reg_base_num, dr_reg_base_num, sh_justify_value_in_reg)
1431 (sh_next_flt_argreg): Add gdbarch parameter and update caller. Replace
1432 current_gdbarch by gdbarch.
1433 (sh_extract_return_value_fpu, sh_store_return_value_fpu): Use
1434 get_regcache_arch to get at the current architecture by regcache.
1435 * sparc-tdep.c (sparc32_register_name): Add gdbarch parameter.
1436 * sparc64-tdep.c (sparc64_register_name): Add gdbarch parameter.
1437 * v850-tdep.c (v850_register_name, v850e_register_name): Add gdbarch
1439 (v850_unwind_sp, v850_unwind_pc): Replace current_gdbarch by gdbarch.
1440 * xtensa-tdep.c (xtensa_register_name): Add gdbarch parameter. Replace
1441 current_gdbarch by gdbarch.
1442 (xtensa_pseudo_register_read, xtensa_pseudo_register_write)
1443 (xtensa_frame_prev_register): Add gdbarch parameter to
1444 xtensa_register_name call.
1446 2007-10-31 Ulrich Weigand <uweigand@de.ibm.com>
1448 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Fall back to
1449 find_solib_trampoline_target if PC is not in .plt section.
1451 2007-10-31 Ulrich Weigand <uweigand@de.ibm.com>
1453 * elfread.c (elf_symtab_read): When constructing a solib trampoline
1454 minimal symbol from an undefined dynamic symbol, use proper section.
1456 2007-10-31 Markus Deuling <deuling@de.ibm.com>
1458 * arm-linux-nat.c (fetch_register, fetch_regs): Use get_regcache_arch
1459 to get at the current architecture by regcache.
1461 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1463 * libunwind-frame.c (libunwind_frame_sniffer)
1464 libunwind_frame_prev_register, libunwind_sigtramp_frame_sniffer)
1465 (libunwind_frame_cache): Use get_frame_arch to get at the current
1466 architecture by frame_info.
1467 (libunwind_get_reg_special): Replace current_gdbarch by gdbarch.
1469 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1471 * iq2000-tdep.c (iq2000_frame_prev_register): Use get_frame_arch to get
1472 at the current architecture by frame_info.
1474 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1476 * inf-child.c (inf_child_fetch_inferior_registers): Use
1477 get_regcache_arch to get at the current architecture by regcache.
1479 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1481 * inf-ptrace.c (inf_ptrace_fetch_registers)
1482 (inf_ptrace_fetch_register, inf_ptrace_store_register)
1483 (inf_ptrace_store_registers): Use get_regcache_arch to get at the
1484 current architecture by regcache.
1486 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1488 * hpux-thread.c (hpux_thread_fetch_registers)
1489 (hpux_thread_store_registers): Use get_regcache_arch to get at the
1490 current architecture by regcache.
1492 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1494 * hppa-tdep.c (hppa_frame_cache): Use get_frame_arch to get at the
1495 current architecture by frame_info.
1497 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1499 * go32-nat.c (fetch_register, go32_fetch_registers, store_register)
1500 (go32_store_registers): Use get_regcache_arch to get at the current
1501 architecture by regcache.
1503 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1505 * gdbtypes.c (gdbtypes_post_init): Replace current_gdbarch by gdbarch.
1507 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1509 * frv-linux-tdep.c (frv_linux_sigtramp_frame_cache): Use get_frame_arch
1510 to get at the current architecture by frame_info.
1512 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1514 * f-lang.c (build_fortran_types): Replace current_gdbarch by gdbarch.
1516 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1518 * core-regset.c (fetch_core_registers): Use get_regcache_arch to get at
1519 the current architecture by regcache.
1521 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1523 * corelow.c (get_core_registers): Use get_regcache_arch to get at the
1524 current architecture by regcache.
1526 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1528 * bsd-uthread.c (bsd_uthread_fetch_registers)
1529 (bsd_uthread_store_registers): Use get_regcache_arch to get at the
1530 current architecture by regcache.
1532 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1534 * avr-tdep.c (avr_frame_unwind_cache, avr_frame_prev_register): Use
1535 get_frame_arch to get at the current architecture by frame_info.
1537 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1539 * arm-tdep.c (arm_get_next_pc): Replace current_gdbarch by gdbarch.
1541 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1543 * armnbsd-nat.c (arm_supply_gregset, fetch_register, store_register)
1544 (store_regs): Use get_regcache_arch to get at the current architecture
1547 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1549 * arm-linux-tdep.c (arm_linux_supply_gregset): Use get_regcache_arch
1550 to get at the current architecture by regcache.
1552 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1554 * alphabsd-nat.c (alphabsd_fetch_inferior_registers)
1555 (alphabsd_store_inferior_registers): Use get_regcache_arch to get at
1556 the current architecture by regcache.
1558 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1560 * ada-lang.c (ada_language_arch_info): Replace current_gdbarch by
1563 2007-10-30 Daniel Jacobowitz <dan@codesourcery.com>
1565 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Check the selected
1566 soft float and vector ABIs. Support the generic vector ABI for
1568 (do_ppc_sysv_return_value): Likewise. Correct argument types and
1570 (ppc64_sysv_abi_push_dummy_call): Assert that floating point is
1572 * ppc-tdep.h (enum powerpc_vector_abi): New.
1573 (struct gdbarch_tdep): Add soft_float and vector_abi.
1574 * rs6000-tdep.c (setpowerpccmdlist, showpowerpccmdlist)
1575 (powerpc_soft_float_global, powerpc_vector_strings)
1576 (powerpc_vector_abi_global, powerpc_vector_abi_string): New.
1577 (rs6000_gdbarch_init): Check for soft-float and vector ABI markings.
1578 (set_powerpc_command, show_powerpc_command, powerpc_set_soft_float)
1579 (powerpc_set_vector_abi): New.
1580 (_initialize_rs6000_tdep): Register "set powerpc" and "show powerpc"
1582 * Makefile.in (elf_ppc_h): New.
1583 (rs6000-tdep.o): Update.
1585 2007-10-29 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
1587 * ppc-linux-tdep.c (ppc32_linux_reg_offsets): Corrected
1588 swapped offsets and VRSAVE offset.
1589 (ppc64_linux_reg_offsets): Corrected swapped offsets.
1590 (ppc32_linux_vrregset): Added.
1591 (ppc_linux_regset_from_core_section): Added support for
1592 .reg-ppc-vmx section.
1593 * ppc-tdep.h (ppc_altivec_support_p): Declare.
1594 (ppc_supply_vrregset): Declare.
1595 (ppc_collect_vrregset): Declare.
1596 * rs6000-tdep.c (ppc_altivec_support_p): Added.
1597 (ppc_supply_vrregset): Added.
1598 (ppc_collect_vrregset): Added.
1599 * corelow.c (get_core_registers): Added support for
1600 .reg-ppc-vmx section.
1602 2007-10-29 Joel Brobecker <brobecker@adacore.com>
1606 2007-10-26 Jim Blandy <jimb@codesourcery.com>
1608 * ax-gdb.h (expr_to_address_and_size): Delete declaration for
1611 * tracepoint.c (tracepoint_operation): Report the deletion event
1612 after we have unlinked the tracepoint from the list, and use the
1613 proper tracepoint number.
1615 * ax-gdb.c (expr_to_agent): Delete unused function.
1616 (expr_to_address_and_size): Delete #if 0'd function.
1617 * ax-gdb.h (expr_to_agent): Delete declaration.
1619 * ax-gdb.c (gen_cast): Remove redundant assignment to
1620 value->type. Doc fix.
1622 * ax-general.c (gen_traced_pop, gen_int_literal)
1623 (gen_usual_arithmetic): Check for typedefs.
1625 2007-10-26 Joel Brobecker <brobecker@adacore.com>
1627 * parse.c (prefixify_expression): Minor reformatting.
1629 2007-10-25 Daniel Jacobowitz <dan@codesourcery.com>
1631 * version.in: Use dot instead of dash.
1633 2007-10-25 Daniel Jacobowitz <dan@codesourcery.com>
1635 * linux-thread-db.c (check_for_thread_db): Only print if info_verbose.
1637 2007-10-25 Pedro Alves <pedro_alves@portugalmail.pt>
1639 * memory-map.c (parse_memory_map): Don't use an empty struct
1642 2007-10-25 Pedro Alves <pedro_alves@portugalmail.pt>
1644 * signals/signals.c (signals): Update pointer to enum
1645 target_signal declaration.
1647 2007-10-25 Wu Zhou <woodzltc@cn.ibm.com>
1648 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
1649 Jim Blandy <jimb@codesourcery.com>
1651 * dwarf2read.c (read_partial_die): check the value
1652 of DW_AT_calling_convention in Fortran programs.
1654 2007-10-25 Wu Zhou <woodzltc@cn.ibm.com>
1655 Thiago Jung Bauermann <bauerman@br.ibm.com>
1657 * c-exp.y (YYSTYPE): Add typed_val_decfloat for decimal
1658 floating point in YYSTYPE union.
1659 (DECFLOAT) Add token and expression element handling code.
1660 (parse_number): Parse DFP constants, which end with suffix 'df',
1661 'dd' or 'dl'. Return DECFLOAT.
1662 * eval.c (evaluate_subexp_standard): Call value_from_decfloat to
1664 * expression.h (enum exp_opcode): Add an opcode (OP_DECFLOAT)
1666 (union exp_element): Add decfloatconst to represent DFP
1667 elements, which is 16 bytes by default.
1668 * parse.c (write_exp_elt_decfloatcst): New function to write a
1669 decimal float const into the expression.
1670 (operator_length_standard): Set operator length for OP_DECFLOAT
1672 * parser-defs.h (write_exp_elt_decfloatcst): Prototype.
1673 * valarith.c (value_neg): Add code to handle the negation
1674 operation of DFP values.
1675 * value.c (value_from_decfloat): New function to get the value
1676 from a decimal floating point.
1677 * value.h (value_from_decfloat): Prototype.
1679 2007-10-25 Wu Zhou <woodzltc@cn.ibm.com>
1680 Thiago Jung Bauermann <bauerman@br.ibm.com>
1682 * c-lang.c (c_create_fundamental_type): Create fundamental
1684 * c-typeprint.c (c_type_print_varspec_prefix): Add
1685 TYPE_CODE_DECFLOAT to no prefix needed case.
1686 (c_type_print_varspec_suffix): Add TYPE_CODE_DECFLOAT to no
1688 * c-valprint.c (c_val_print): Call print_decimal_floating to
1690 * dwarf2read.c (read_base_type): Read DW_ATE_decimal_float
1691 attribute code and return TYPE_CODE_DECFLOAT.
1692 (dwarf_base_type): Set dwarf2_fundamental_type for DFP values.
1693 * gdbtypes.c (gdbtypes_post_init): Initialize builtin_decfloat,
1694 builtin_decdouble and builtin_declong.
1695 * gdbtypes.h (enum type_code): Add TYPE_CODE_DECFLOAT as a
1697 (FT_DECFLOAT, FT_DBL_PREC_DECFLOAT, FT_EXT_PREC_DECFLOAT): New
1698 types, for decimal floating point.
1699 (FT_NUM_MEMBERS): Increment, new types added.
1700 (struct builtin_type): Add builtin_decfloat, builtin_decdouble
1701 and builtin_declong.
1702 * valprint.c (print_decimal_floating): New function to print DFP
1704 * value.h (print_decimal_floating): Prototype.
1706 2007-10-25 Wu Zhou <woodzltc@cn.ibm.com>
1707 Thiago Jung Bauermann <bauerman@br.ibm.com>
1709 * Makefile.in (LIBDECNUMBER_DIR, LIBDECNUMBER, LIBDECNUMBER_SRC
1710 LIBDECNUMBER_CFLAGS): New macros for libdecnumber.
1711 (INTERNAL_CFLAGS_BASE): Add LIBDECNUMBER_CFLAGS in.
1712 (INSTALLED_LIBS): Add -ldecnumber in.
1713 (CLIBS): Add LIBDECNUMBER in.
1714 (decimal128_h, decimal64_h, decimal32_h): New macros for decimal
1716 (dfp_h): New macros for decimal floating point.
1717 (dfp.o): New target.
1718 (COMMON_OBS): Add dfp.o in.
1719 (c-exp.o): Add dfp_h as dependency.
1720 (valprint.o): Add dfp_h as dependency.
1721 (value.o): Add dfp_h as dependency.
1722 * dfp.h: New header file for decimal floating point support in
1724 * dfp.c: New source file for decimal floating point support in
1725 GDB. Implement decimal_from_string and decimal_to_string based
1726 on libdecnumber API.
1727 * configure.ac: Add AC_C_BIGENDIAN test.
1728 * config.in, configure: Regenerate.
1730 2007-10-25 David Ung <davidu@mips.com>
1731 Maciej W. Rozycki <macro@mips.com>
1734 * infcmd.c (registers_info): Check for a user register before
1735 calling target's gdbarch_print_registers_info(). If found to be
1736 so, extract the implicit value of user register and call
1737 print_scalar_formatted().
1738 * Makefile.in: (infcmd.o): Add $(user_regs_h).
1740 2007-10-25 Joel Brobecker <brobecker@adacore.com>
1742 * NEWS: Document status of hppa64-hpux support.
1744 2007-10-24 Ulrich Weigand <uweigand@de.ibm.com>
1746 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets): Call
1747 set_solib_ops to install SVR4 operations.
1748 (_initialize_svr4_solib): Do not set current_target_so_ops.
1750 * config/i386/i386gnu.mh (NATDEPFILES): Move solib.o, solib-svr4.o ...
1751 * config/i386/i386gnu.mt (TDEPFILES): ... to here.
1753 2007-10-24 Ulrich Weigand <uweigand@de.ibm.com>
1755 * solib-svr4.c (legacy_svr4_fetch_link_map_offsets_hook): Remove.
1756 (solib_svr4_init): Initialize fetch_link_map_offsets to NULL.
1757 * solib-svr4.h (legacy_svr4_fetch_link_map_offsets_hook): Remove.
1758 * solib-legacy.c: Remove file.
1760 * config/alpha/alpha-linux.mt (TDEPFILES): Remove solib-legacy.o.
1761 * config/arm/linux.mt (TDEPFILES): Likewise.
1762 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
1763 * config/ia64/linux.mt (TDEPFILES): Likewise.
1764 * config/m32r/linux.mt (TDEPFILES): Likewise.
1765 * config/powerpc/linux.mt (TDEPFILES): Likewise.
1766 * config/s390/s390.mt (TDEPFILES): Likewise.
1768 * alpha-linux-tdep.c (alpha_linux_init_abi): Call
1769 set_solib_svr4_fetch_link_map_offsets.
1770 * i386gnu-tdep.c (i386gnu_init_abi): Likewise.
1771 * ia64-linux-tdep.c (ia64_linux_init_abi): Likewise.
1773 * i386gnu-tdep.c: Include "solib-svr4.h".
1774 * Makefile.in: Update dependencies.
1776 2007-10-24 Ulrich Weigand <uweigand@de.ibm.com>
1778 * i386-nto-tdep.c: Include "solib.h".
1779 (i386nto_init_abi): Use set_solib_ops instead of overwriting
1780 current_target_so_ops members.
1781 * solist.h (TARGET_SO_RELOCATE_SECTION_ADDRESSES): Remove.
1782 (TARGET_SO_FIND_AND_OPEN_SOLIB): Remove.
1783 (TARGET_SO_IN_DYNSYM_RESOLVE_CODE): Remove.
1784 * Makefile.in: Update dependencies.
1786 2007-10-24 Ulrich Weigand <uweigand@de.ibm.com>
1788 * arm-wince-tdep.c: Include "solib.h" and "solib-target.h".
1789 (arm_wince_init_abi): Call set_solib_ops.
1790 * i386-cygwin-tdep.c: Include "solib.h" and "solib-target.h".
1791 (i386_cygwin_init_abi): Call set_solib_ops.
1792 * solib-target.c: Include "solib-target.h".
1793 (solib_target_so_ops): Make global.
1794 (_initialize_solib_target): Do not set current_target_so_ops.
1795 * solib-target.h: New file.
1796 * Makefile.in: Update dependencies.
1798 2007-10-24 Ulrich Weigand <uweigand@de.ibm.com>
1800 * mips-irix-tdep.c: Include "gdb_string.h", "solib.h", "solib-irix.h".
1801 (mips_irix_init_abi): Call set_solib_ops.
1802 * solib-irix.c: Include "solib.h" and "solib-irix.h".
1803 (irix_so_ops): Make global.
1804 (_initialize_irix_solib): Do not set current_target_so_ops.
1805 * solib-irix.h: New file.
1806 * Makefile.in: Update dependencies.
1808 2007-10-24 Ulrich Weigand <uweigand@de.ibm.com>
1810 * configure.tgt: Remove hppa*64*-*-hpux11* special case.
1811 * config/pa/hppa64.mt: Delete file.
1812 * config/pa/hppahpux.mt (MT_CFLAGS): Remove.
1813 (TDEPFILES): Move somread.o to ...
1814 * config/pa/hpux.mh (NATDEPFILES): ... here.
1816 * configure.ac: Add check for elf_hp.h header.
1817 Search libdl and libxpdl for dlgetmodinfo.
1818 * config.in, configure: Regenerate.
1819 * solib-pa64.c: Conditionalize compilation on #ifdef HAVE_ELF_HP_H
1820 instead of #ifndef PA_SOM_ONLY. Include "solib.h".
1821 (pa64_solib_select): Take gdbarch instead of tdep argument. Call
1822 set_solib_ops instead of modifying current_target_so_ops.
1823 * solib-pa64.h (pa64_solib_select): Update prototype.
1824 * solib-som.c: Remove include of "som.h". Include "solib.h".
1825 (som_solib_select): Take gdbarch instead of tdep argument. Call
1826 set_solib_ops instead of modifying current_target_so_ops.
1827 * solib-som.h (som_solib_select): Update prototype.
1828 * hppa-hpux-tdep.c (hppa_hpux_som_init_abi): Pass gdbarch instead
1829 of tdep to som_solib_select call.
1830 (hppa_hpux_elf_init_abi): Pass gdbarch instead of tdep to
1831 pa64_solib_select call.
1832 * Makefile.in: Update dependencies.
1834 2007-10-24 Ulrich Weigand <uweigand@de.ibm.com>
1836 * frv-tdep.c: Include "solib.h".
1837 (frv_gdbarch_init): Call set_solib_ops.
1838 * frv-tdep.h (struct target_so_ops): Add forward reference.
1839 (frv_so_ops): Add extern declaration.
1840 * solib-frv.c (frv_so_ops): Make global.
1841 (_initialize_frv_solib): Do not set current_target_so_ops.
1842 * Makefile.in: Update dependencies.
1844 2007-10-24 Ulrich Weigand <uweigand@de.ibm.com>
1846 * solib.c (solib_global_lookup): Use solib_ops instead of global
1847 current_target_so_ops.
1849 2007-10-24 Ulrich Weigand <uweigand@de.ibm.com>
1851 * config/frv/frv.mt (DEPRECATED_TM_FILE): Remove.
1852 * config/frv-tm-frv.h: Delete file.
1854 2007-10-24 Daniel Jacobowitz <dan@codesourcery.com>
1856 * NEWS: Mention gdbserver support for non-libthread_db operation.
1858 2007-10-24 Daniel Jacobowitz <dan@codesourcery.com>
1860 * amd64-tdep.c (amd64_convert_register_p): Delete.
1861 (amd64_init_abi): Use i387_convert_register_p.
1862 * alpha-tdep.c (alpha_convert_register_p): Return zero for
1864 (alpha_register_to_value, alpha_value_to_register): Do not handle
1866 * i386-tdep.c (i386_convert_register_p): Use i387_convert_register_p.
1867 * i387-tdep.c (i387_convert_register_p): New.
1868 (i387_register_to_value, i387_value_to_register): Update comments.
1869 * i387-tdep.h (i387_convert_register_p): Declare.
1870 * ia64-tdep.c (ia64_convert_register_p): Return zero for
1871 builtin_type_ia64_ext.
1872 (ia64_gdbarch_init): Do not initialize builtin_type_ia64_ext here.
1873 (_initialize_ia64_tdep): Initialize builtin_type_ia64_ext here.
1874 * m68k-tdep.c (m68k_convert_register_p): Return zero for
1875 builtin_type_m68881_ext.
1876 (m68k_register_to_value, m68k_value_to_register): Update comments.
1878 2007-10-24 Nathan Sidwell <nathan@codesourcery.com>
1880 * target-memory.c (claim_memory): Propagate baton for split memory
1883 2007-10-24 Pedro Alves <pedro_alves@portugalmail.pt>
1886 * sol-thread.c (sol_thread_fetch_registers): Work around gcc 3.4
1889 2007-10-24 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
1891 * symtab.c (find_line_symtab): scan through psymtabs
1892 when exact_match is zero.
1894 2007-10-23 Atsushi Nemoto <anemo@mba.ocn.ne.jp>
1896 * mips-tdep.c (LL_OPCODE, LLD_OPCODE, SC_OPCODE, SCD_OPCODE): Define.
1897 (deal_with_atomic_sequence): New.
1898 (mips_software_single_step): Use it.
1900 2007-10-23 Daniel Jacobowitz <dan@codesourcery.com>
1903 * configure.ac: Modify $LIBINTL before the BFD check.
1904 * configure: Regenerated.
1906 2007-10-23 Joel Brobecker <brobecker@adacore.com>
1908 * buildsym.c (free_pending_blocks): Remove commented-out code.
1909 (make_blockvector): Likewise. Re-use free_pending_blocks.
1910 (end_symtab): Remove commented-out code.
1912 2007-10-22 Daniel Jacobowitz <dan@codesourcery.com>
1914 * top.c (command_loop): Fix output for shrinkage.
1916 2007-10-22 Daniel Jacobowitz <dan@codesourcery.com>
1918 * cp-name-parser.y (exp1): Add & ( var ) as a reference expression.
1919 (exp): Remove and document function-like casts.
1921 2007-10-22 Daniel Jacobowitz <dan@codesourcery.com>
1923 * cp-support.c: Include "safe-ctype.h".
1924 (cp_already_canonical): New function.
1925 (cp_canonicalize_string): Use it. Return NULL for already canonical
1927 (mangled_name_to_comp): Update call to cp_demangled_name_to_comp.
1928 (cp_func_name, remove_params): Likewise.
1929 (cp_find_first_component_aux): Use ISSPACE.
1930 * cp-support.h (cp_demangled_name_to_comp): Correct comment. Remove
1932 * cp-name-parser.y (ALLOC_CHUNK): Define.
1933 (struct demangle_info): Add PREV and NEXT. Increase the size of
1935 (d_grab): Convert to a function.
1936 (allocate_info): Rewrite.
1937 (cp_demangled_name_to_comp): Remove MEMORY argument. Do not use
1938 strlen. Update call to allocate_info. Do not free it on failure.
1939 (main): Update calls to cp_demangled_name_to_comp.
1940 * Makefile.in (cp-support.o): Update.
1942 2007-10-22 Markus Deuling <deuling@de.ibm.com>
1944 * std-regs.c (value_of_builtin_frame_fp_reg)
1945 value_of_builtin_frame_pc_reg, value_of_builtin_frame_sp_reg)
1946 value_of_builtin_frame_ps_reg): Use get_frame_arch to get at the
1947 current architecture by frame_info.
1949 2007-10-22 Markus Deuling <deuling@de.ibm.com>
1951 * reggroups.c (default_register_reggroup_p): Replace current_gdbarch
1954 2007-10-22 Markus Deuling <deuling@de.ibm.com>
1956 * infcmd.c (default_print_registers_info, print_return_value)
1957 (print_vector_info, print_float_info): Replace current_gdbarch by
1959 (registers_info): Use get_frame_arch to get at the current
1960 architecture by frame_info.
1962 2007-10-22 Markus Deuling <deuling@de.ibm.com>
1964 * i387-tdep.c (i387_collect_fsave, i387_collect_fxsave): Use
1965 get_regcache_arch to get at the current architecture by regcache.
1967 2007-10-22 Markus Deuling <deuling@de.ibm.com>
1969 * target.c (debug_print_register): Use get_regcache_arch to get at the
1970 current architecture by regcache.
1972 2007-10-21 Daniel Jacobowitz <dan@codesourcery.com>
1974 * dwarf2read.c (read_file_scope): Add a comment.
1975 (dwarf2_add_field, dwarf2_add_member_fn, read_structure_type)
1976 (read_enumeration_type, process_enumeration_scope, read_array_type)
1977 (read_typedef, read_base_type, read_subrange_type)
1978 (read_unspecified_type): Use dwarf2_name.
1980 2007-10-21 Daniel Jacobowitz <dan@codesourcery.com>
1982 * coffread.c (coff_symfile_finish): Call dwarf2_free_objfile.
1983 * dwarf2read.c (dwarf2_free_objfile): New.
1984 * elfread.c (elf_symfile_finish): Call dwarf2_free_objfile.
1985 * symfile.h (dwarf2_free_objfile): Declare.
1987 2007-10-21 Joel Brobecker <brobecker@adacore.com>
1989 * hppa-hpux-nat.c (hppa_hpux_store_register): Add missing semi-colon.
1991 2007-10-21 Luis Machado <luisgpm@br.ibm.com>
1993 * rs6000-tdep.c (ppc_dwarf2_frame_init_reg): New function.
1994 * (rs6000_gdbarch_init): Install ppc_dwarf2_frame_init_reg as
1995 default dwarf2_frame_set_init_reg function.
1997 2007-10-21 Pedro Alves <pedro_alves@portugalmail.pt>
1999 * NEWS: Mention native MinGW configuration.
2001 2007-10-19 Ulrich Weigand <uweigand@de.ibm.com>
2003 * gdbarch.sh: Remove "macro" column of input table. Remove handling
2004 of "macro" column throughout the file. Remove (empty) "macro" entry
2005 of all gdbarch functions.
2007 2007-10-19 Ulrich Weigand <uweigand@de.ibm.com>
2009 * gdbarch.sh (sofun_address_maybe_missing): New gdbarch variable.
2010 * gdbarch.c, gdbarch.h: Regenerate.
2011 * dbxread.c (find_stab_function_addr): Define unconditionally.
2012 (read_dbx_symtab): Use gdbarch_sofun_address_maybe_missing
2013 instead of SOFUN_ADDRESS_MAYBE_MISSING.
2014 (end_psymtab): Likewise.
2015 (process_one_symbol): Likewise.
2016 * mdebugread.c (parse_partial_symbols): Likewise.
2018 * symtab.h (struct minimal_symbol): Always define "filename" member.
2019 * elfread.c (elf_symtab_read): Use msym->filename unconditionally.
2020 * minsyms.c (lookup_minimal_symbol): Likewise.
2021 * symmisc.c (dump_msymbols): Likewise.
2023 * config/i386/i386sol2.mt (DEPRECATED_TM_FILE): Remove.
2024 * config/i386/linux.mt (DEPRECATED_TM_FILE): Remove.
2025 * config/i386/tm-i386sol2.h: Remove file.
2026 * config/i386/tm-linux.h: Remove file.
2027 * i386-linux-tdep.c (i386_linux_init_abi): Add call to
2028 set_gdbarch_sofun_address_maybe_missing.
2029 * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
2031 * config/powerpc/linux.mt (DEPRECATED_TM_FILE): Remove.
2032 * config/powerpc/nbsd.mt (DEPRECATED_TM_FILE): Remove.
2033 * config/powerpc/obsd.mt (DEPRECATED_TM_FILE): Remove.
2034 * config/powerpc/ppc-eabi.mt (DEPRECATED_TM_FILE): Remove.
2035 * config/powerpc/ppc-sim.mt (DEPRECATED_TM_FILE): Remove.
2036 * config/powerpc/tm-ppc-eabi.h: Remove file.
2037 * rs6000-tdep.c (rs6000_gdbarch_init): Add call to
2038 set_gdbarch_sofun_address_maybe_missing.
2040 * config/sparc/sol2-64.mt (DEPRECATED_TM_FILE): Remove.
2041 * config/sparc/sol2.mt (DEPRECATED_TM_FILE): Remove.
2042 * config/sparc/tm-sol2.h: Remove file.
2043 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Add call to
2044 set_gdbarch_sofun_address_maybe_missing.
2045 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Likewise.
2047 2007-10-19 Ulrich Weigand <uweigand@de.ibm.com>
2049 * gdbarch.sh (static_transform_name): New gdbarch callback.
2050 * gdbarch.c, gdbarch.h: Regenerate.
2051 * dbxread.c (read_dbx_symtab): Use gdbarch_static_transform_name
2052 instead of STATIC_TRANSFORM_NAME.
2053 * mdebugread.c (parse_partial_symbols): Likewise.
2054 * stabsread.c (define_symbol): Likewise.
2055 * xcoffread.c (scan_xcoff_symtab): Likewise.
2057 * config/i368/tm-i386sol2.h (STATIC_TRANSFORM_NAME): Remove.
2058 (IS_STATIC_TRANSFORM_NAME): Remove.
2059 * i386-tdep.c (sunpro_static_transform_name): Remove, move to ...
2060 * i386-sol2-tdep.c (i386_sol2_static_transform_name): ... here.
2061 (i386_sol2_init_abi): Install it.
2063 * config/sparc/tm-sol2.h (STATIC_TRANSFORM_NAME): Remove.
2064 (IS_STATIC_TRANSFORM_NAME): Remove.
2065 * sparc-tdep.c (sparc_stabs_unglobalize_name): Remove, move to ...
2066 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): ... here.
2067 (sparc32_sol2_init_abi): Install it.
2068 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Likewise.
2069 * sparc-tdep.h (sparc_sol2_static_transform_name): Add prototype.
2071 2007-10-18 Daniel Jacobowitz <dan@codesourcery.com>
2073 * mips-tdep.c (mips_xfer_register): Take a gdbarch argument.
2074 (mips_n32n64_return_value, mips_o32_return_value)
2075 (mips_o64_return_value): Update calls to mips_xfer_register.
2077 2007-10-17 Daniel Jacobowitz <dan@codesourcery.com>
2079 * frame.c (frame_unwind_unsigned_register): Delete.
2080 (frame_sp_unwind): Use frame_unwind_register_unsigned instead.
2081 * frame.h (frame_unwind_unsigned_register): Delete prototype.
2083 * alpha-linux-tdep.c, alpha-mdebug-tdep.c, alpha-tdep.c,
2084 avr-tdep.c, cris-tdep.c, frv-tdep.c, m68hc11-tdep.c, mn10300-tdep.c,
2085 mt-tdep.c: Replace frame_unwind_unsigned_register with
2086 frame_unwind_register_unsigned.
2088 2007-10-16 Pedro Alves <pedro_alves@portugalmail.pt>
2090 * config/i386/mingw.mh, config/i386/mingw.mt: New files.
2091 * configure.tgt (i[34567]86-*-mingw32*): Set gdb_target = mingw.
2092 * win32-nat.c: Only include cygwin.h on Cygwin host. Don't
2094 (cygwin_load_start, cygwin_load_end, cygwin_exceptions): Disable
2095 if not building on Cygwin.
2096 (win32_make_so, handle_output_debug_string, handle_exception)
2097 (do_initial_win32_stuff): Wrap Cygwin specific code in __CYGWIN__.
2098 (win32_attach): Only fallback to Cygwin pids if building on
2100 (win32_pid_to_exec_file): Disable Cygwin specific code, if not
2102 (win32_create_inferior): Disable starting the inferior through a
2103 shell, environment var processing and tty handling if not building
2105 (cygwin_pid_to_str): Rename to ...
2106 (win32_pid_to_str): ... this.
2107 (init_win32_ops): Update use of win32_pid_to_str. Disable "shell"
2108 and "cygwin-exceptions" commands if not building on Cygwin.
2110 2007-10-16 Gaius Mulley <gaius@glam.ac.uk>
2112 * doc/gdb.texinfo: Add TSIZE definition, removed
2113 statement about unbounded arrays being unimplemented.
2114 * m2-valprint.c (m2_print_array_contents): New function.
2115 (m2_print_unbounded_array): New function.
2116 (m2_print_array_contents): New function.
2117 * m2-typeprint.c (m2_unbounded_array): New function.
2118 (m2_is_unbounded_array): New function.
2119 (m2_print_type): Test for unbounded array when walking
2121 * m2-lang.h: Added extern m2_is_unbounded_array.
2122 * m2-lang.c (evaluate_subexp_modula2): New function.
2123 (exp_descriptor_modula2): New structure.
2124 (m2_language_defn): Use exp_descriptor_modula2.
2125 * m2-exp.y: Added TSIZE and binary subscript.
2127 2007-10-16 Daniel Jacobowitz <dan@codesourcery.com>
2129 * mi/mi-main.c (captured_mi_execute_command): Clear mi_error_message
2132 2007-10-16 Kevin Buettner <kevinb@redhat.com>
2134 * m32r-tdep.c (decode_prologue): Sign extend offset for
2136 (m32r_frame_unwind_cache): Likewise.
2138 2007-10-15 Thiago Jung Bauermann <bauerman@br.ibm.com>
2140 * rs6000-tdep.c (skip_prologue): Restore comment with
2141 function description to its proper place.
2143 2007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
2145 * NEWS: Mention gdbserver PowerPC improvements.
2147 2007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
2149 * features/Makefile (WHICH): Add PowerPC register definitions.
2150 (rs6000/powerpc-32-expedite, rs6000/powerpc-e500-expedite)
2151 (rs6000/powerpc-64-expedite): New macros.
2152 ($(outdir)/%.dat): Handle subdirectories.
2153 * regformats/rs6000/powerpc-32.dat, regformats/rs6000/powerpc-64.dat,
2154 regformats/rs6000/powerpc-e500.dat: New generated files.
2156 2007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
2158 * ppc-linux-nat.c (ppc_linux_read_description): New.
2159 (_initialize_ppc_linux_nat): Set to_read_description.
2160 * ppc-tdep.h (tdesc_powerpc_e500): Declare.
2162 2007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
2164 * NEWS: Document target described register support for PowerPC.
2165 * ppc-tdep.h: Remove ppc_spr constants.
2166 (struct gdbarch_tdep): Remove regs, ppc_sr0_regnum, and
2167 ppc_builtin_type_vec128 members.
2168 (PPC_R0_REGNUM, PPC_F0_REGNUM, PPC_PC_REGNUM, PPC_MSR_REGNUM)
2169 (PPC_CR_REGNUM, PPC_LR_REGNUM, PPC_CTR_REGNUM, PPC_XER_REGNUM)
2170 (PPC_FPSCR_REGNUM, PPC_MQ_REGNUM, PPC_SPE_UPPER_GP0_REGNUM)
2171 (PPC_SPE_ACC_REGNUM, PPC_SPE_FSCR_REGNUM, PPC_VR0_REGNUM)
2172 (PPC_VSCR_REGNUM, PPC_VRSAVE_REGNUM, PPC_NUM_REGS): New constants.
2173 * rs6000-tdep.c: Include preparsed descriptions.
2174 (init_sim_regno_table): Do not iterate over pseudo registers.
2175 Look up segment registers by name. Use sim_spr_register_name
2177 (rs6000_register_sim_regno): Call init_sim_regno_table here.
2178 (rs6000_builtin_type_vec128): Delete.
2179 (rs6000_register_name): Only handle SPE pseudo registers and upper
2180 halves. Call tdesc_register_name for everything else.
2181 (rs6000_register_type): Delete. Replace with...
2182 (rs6000_pseudo_register_type): ...this new function. Only handle
2183 SPE pseudo registers.
2184 (rs6000_register_reggroup_p): Delete. Replace with...
2185 (rs6000_pseudo_register_reggroup_p): ...this new function. Only
2186 handle SPE pseudo registers.
2187 (rs6000_convert_register_p): Use ppc_fp0_regnum instead of
2189 (rs6000_register_to_value, rs6000_value_to_register): Remove check
2191 (e500_register_reggroup_p): Delete.
2192 (STR, R, R4, R8, R16, F, P8, R32, R64, R0, A4, S, S4, SN4, S64)
2193 (COMMON_UISA_REGS, PPC_UISA_SPRS, PPC_UISA_NOFP_SPRS)
2194 (PPC_SEGMENT_REGS, PPC_OEA_SPRS, PPC_ALTIVEC_REGS, PPC_SPE_GP_REGS)
2195 (PPC_SPE_UPPER_GP_REGS, PPC_EV_PSEUDO_REGS): Delete macros.
2196 (registers_powerpc, registers_403, registers_403GC, registers_505)
2197 (registers_860, registers_601, registers_602, registers_603)
2198 (registers_604, registers_750, registers_7400, registers_e500): Delete
2200 (struct variant): Delete nregs, npregs, num_tot_regs, and regs. Add
2202 (tot_num_registers, num_registers, num_pseudo_registers): Delete.
2203 (variants): Delete outdated comment. Use standard target descriptions
2204 instead of "struct reg" arrays.
2205 (init_variants): Delete.
2206 (rs6000_gdbarch_init): Do not guess word size from the BFD
2207 architecture if we have a target description. Select a variant
2208 before creating a new architecture. Use the variant's target
2209 description if the target did not define a register layout.
2210 Validate target-supplied registers. Reject mismatches. Use
2211 fixed register numbers and new constants instead of magic
2212 numbers. Call set_gdbarch_ps_regnum. Call tdesc_use_registers.
2213 (_initialize_rs6000_tdep): Initialize the preparsed target
2215 * target-descriptions.c (tdesc_predefined_types): Add int128 and
2217 (tdesc_find_register_early): New function.
2218 (tdesc_numbered_register): Use it.
2219 (tdesc_register_size): New function.
2220 (tdesc_use_registers): Take a target_desc argument. Do not use
2221 gdbarch_target_desc.
2222 * target-descriptions.h (tdesc_use_registers): Update prototype
2224 (tdesc_register_size): New prototype.
2225 * Makefile.in (powerpc_32_c, powerpc_403_c, powerpc_403gc_c)
2226 (powerpc_505_c, powerpc_601_c, powerpc_602_c, powerpc_603_c)
2227 (powerpc_604_c, powerpc_64_c, powerpc_7400_c, powerpc_750_c)
2228 (powerpc_860_c, powerpc_e500_c, rs6000_c): New macros.
2229 (rs6000-tdep.o): Update.
2230 * arm-tdep.c (arm_gdbarch_init): Update call to tdesc_use_registers.
2231 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
2232 * mips-tdep.c (mips_gdbarch_init): Likewise.
2234 2007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
2236 * features/rs6000/powerpc-32.c, features/rs6000/powerpc-403.c,
2237 features/rs6000/powerpc-403gc.c, features/rs6000/powerpc-505.c,
2238 features/rs6000/powerpc-601.c, features/rs6000/powerpc-602.c,
2239 features/rs6000/powerpc-603.c, features/rs6000/powerpc-604.c,
2240 features/rs6000/powerpc-64.c, features/rs6000/powerpc-7400.c,
2241 features/rs6000/powerpc-750.c, features/rs6000/powerpc-860.c,
2242 features/rs6000/powerpc-e500.c, features/rs6000/rs6000.c: New
2245 2007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
2247 * features/rs6000/power-altivec.xml, features/rs6000/power-core.xml,
2248 features/rs6000/power-fpu.xml, features/rs6000/power-oea.xml,
2249 features/rs6000/power-spe.xml, features/rs6000/power64-core.xml: New
2250 feature descriptions for standard PowerPC register sets.
2252 * features/rs6000/powerpc-32.xml, features/rs6000/powerpc-403.xml,
2253 features/rs6000/powerpc-403gc.xml, features/rs6000/powerpc-505.xml,
2254 features/rs6000/powerpc-601.xml, features/rs6000/powerpc-602.xml,
2255 features/rs6000/powerpc-603.xml, features/rs6000/powerpc-604.xml,
2256 features/rs6000/powerpc-64.xml, features/rs6000/powerpc-7400.xml,
2257 features/rs6000/powerpc-750.xml, features/rs6000/powerpc-860.xml,
2258 features/rs6000/powerpc-e500.xml, features/rs6000/rs6000.xml: New
2259 target descriptions for PowerPC processors.
2261 2007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
2263 * target-descriptions.c (tdesc_predefined_types): New.
2264 (tdesc_named_type): Use it.
2265 (tdesc_type_id, maint_print_c_tdesc_cmd): New functions.
2266 (_intialize_target_descriptions): Register "maint print c-tdesc".
2267 * features/Makefile (XMLTOC, CFILES, GDB): New macros.
2268 (cfiles, %.c): New rules.
2269 * features/arm-with-iwmmxt.c, features/mips-linux.c,
2270 features/mips64-linux.c: New generated files.
2272 * arm-linux-nat.c: Include preparsed description instead of
2274 (super_xfer_partial, arm_linux_xfer_partial): Remove.
2275 (arm_linux_read_description): New function.
2276 (_initialize_arm_linux_nat): Set to_read_description instead of
2277 to_xfer_partial. Initialize preparsed description.
2278 * config/arm/linux.mh (TDEP_XML): Delete.
2279 * mips-linux-nat.c: Include preparsed descriptions instead of
2281 (super_xfer_partial, mips_linux_xfer_partial): Remove.
2282 (mips_linux_read_description): New function.
2283 (_initialize_mips_linux_nat): Set to_read_description instead of
2284 to_xfer_partial. Initialize preparsed description.
2285 * config/mips/linux.mh (TDEP_XML): Delete.
2286 * Makefile.in (XMLFILES): Remove $(TDEP_XML).
2287 (features_headers, arm_with_iwmmxt_c, mips_linux_c)
2288 (mips64_linux_c): New macros.
2289 (arm-linux-nat.o, mips-linux-nat.o): Update.
2291 2007-10-15 Pierre Muller <muller@ics.u-strasbg.fr>
2293 * cp-abi.c (set_cp_abi_as_auto_default): ARI fix:
2294 Replace xasprintf by xstrprintf.
2295 symfile-mem.c (add_vsyscall_page): Ditto.
2297 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
2299 * ia64-linux-nat.c (ia64_register_addr): Add gdbarch parameter,
2300 replacing use of global current_gdbarch.
2301 (ia64_cannot_fetch_register, ia64_cannot_store_register): Likewise.
2302 (ia64_linux_fetch_register, ia64_linux_store_register): Update callers.
2304 * ia64-tdep.c (SIGCONTEXT_REGISTER_ADDRESS): Remove macro.
2305 (ia64_sigtramp_frame_init_saved_regs): Add next_frame parameter,
2306 replace uses of SIGCONTEXT_REGISTER_ADDRESS.
2307 (ia64_sigtramp_frame_cache): Update caller.
2309 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
2311 * gdbarch.sh (deprecated_use_struct_convention): Remove.
2312 (extract_return_value, store_return_value): Remove.
2313 (return_value): Remove default implementation.
2314 * gdbarch.c, gdbarch.h: Regenerate.
2316 * stack.c (return_command): Remove compatibility hack.
2317 * arch-utils.c (legacy_return_value): Remove.
2318 * arch-utils.h (legacy_return_value): Likewise.
2320 * arch-utils.c (always_use_struct_convention): Remove.
2321 * arch-utils.h (always_use_struct_convention): Likewise.
2322 * value.c (generic_use_struct_convention): Remove.
2323 * defs.h (generic_use_struct_convention): Likewise.
2325 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
2327 * avr-tdep.c (avr_return_value): New function.
2328 (avr_gdbarch_init): Call set_gdbarch_return_value instead of
2329 set_gdbarch_extract_return_value.
2331 * fvr-tdep.c (frv_return_value): New function.
2332 (frv_gdbarch_init): Call set_gdbarch_return_value instead of
2333 set_gdbarch_extract_return_value, set_gdbarch_store_return_value,
2334 and set_gdbarch_deprecated_use_struct_convention.
2336 * ia64-tdep.c (ia64_use_struct_convention): Make static.
2337 Add check for structure, union, or array types.
2338 (ia64_extract_return_value): Make static.
2339 (ia64_store_return_value): Make static. Support multi-word values.
2340 (ia64_return_value): New function.
2341 (ia64_gdbarch_init): Call set_gdbarch_return_value instead of
2342 set_gdbarch_extract_return_value, set_gdbarch_store_return_value,
2343 and set_gdbarch_deprecated_use_struct_convention.
2345 2007-10-12 Joel Brobecker <brobecker@adacore.com>
2347 * solib-target.c (solib_target_parse_libraries)
2348 [HAVEHAVE_LIBEXPAT not defined]: Fix thinko in return type.
2350 2007-10-12 Jim Blandy <jimb@codesourcery.com>
2352 * serial.h (struct serial_ops): Document read_prim to return zero
2354 * ser-base.c (do_ser_base_readchar): Return SERIAL_EOF when
2355 read_prim returns zero, not SERIAL_TIMEOUT.
2357 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
2359 * alpha-mdebug-tdep.c: Include "gdb_string.h".
2360 (find_proc_desc): Add fix-up code for setjmp procedure descriptor.
2361 * mdebugread.c (parse_procedure): Remove setjmp fix-up code.
2362 * Makefile.in (alpha-mdebug-tdep.o): Update dependencies.
2364 * config/alpha/alpha.mt (DEPRECATED_TM_FILE): Remove.
2365 * config/alpha/alpha-linux.mt (DEPRECATED_TM_FILE): Remove.
2366 * config/alpha/alpha-osf1.mt (DEPRECATED_TM_FILE): Remove.
2367 * config/alpha/fbsd.mt (DEPRECATED_TM_FILE): Remove.
2368 * config/alpha/tm-alpha.h: Remove file.
2370 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
2372 * breakpoint.c (breakpoint_sals_to_pc): Do not check for
2373 DEPRECATED_PC_REQUIRES_RUN_BEFORE_USE.
2375 * config/pa/tm-hppa.h: Delete file.
2376 * config/pa/hppa64.mt: Do not set DEPRECATED_TM_FILE.
2377 * config/pa/hppahpux.mt: Likewise.
2378 * config/pa/hppa.mt: Likewise.
2379 * config/pa/linux.mt: Likewise.
2380 * hppa-tdep.c (hppa_pc_requires_run_before_use): Delete.
2382 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
2384 * config/arm/nm-nbsdaout.h: Remove file.
2385 * config/nm-nbsdaout.h: Likewise.
2386 * config/nm-nbsd.h: Likewise.
2388 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
2390 * block.h (struct block): Remove "gcc_compile_flag" member.
2391 (BLOCK_GCC_COMPILED): Remove.
2392 * block.c (allocate_block): Do not clear BLOCK_GCC_COMPILED.
2393 * buildsym.c (finish_block): Do not set it.
2394 * symmisc.c (dump_symtab_1): Do not dump it.
2396 * value.h (using_struct_return): Remove "gcc_p" argument.
2397 * value.c (using_struct_return): Likewise.
2398 * eval.c (evaluate_subexp_standard): Adapt callers.
2399 * infcall.c (call_function_by_hand): Likewise.
2400 * stack.c (return_command): Likewise.
2401 * sparc-tdep.c (sparc32_push_dummy_code): Likewise.
2403 * gdbarch.sh (push_dummy_code): Remove "using_gcc" parameter.
2404 * gdbarch.c, gdbarch.h: Regenerate.
2405 * cris-tdep.c (cris_push_dummy_code): Adapt prototype.
2406 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Likewise.
2407 * sparc-tdep.c (sparc32_push_dummy_code): Likewise.
2408 * infcall.c (generic_push_dummy_code, push_dummy_code): Likewise.
2409 (push_dummy_code, call_function_by_hand): Adapt callers.
2411 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
2413 * infcmd.c (print_return_value): Remove STRUCT_RETURN argument.
2414 (finish_command_continuation, finish_command): Adapt callers.
2416 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
2418 * infcall.c (call_function_by_hand): Remove special handling
2419 for HP aCC compiled code.
2421 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
2423 * cris-tdep.c (cris_push_dummy_call): Support arguments passed by
2424 reference. Fix endianness bugs.
2425 (cris_reg_struct_has_address): Remove.
2426 (cris_gdbarch_init): Remove set_gdbarch_deprecated_reg_struct_has_addr
2427 and set_gdbarch_deprecated_use_struct_convention calls.
2429 * gdbarch.sh (deprecated_reg_struct_has_addr): Remove.
2430 * gdbarch.c, gdbarch.h: Regenerate.
2431 * infcall.c (call_function_by_hand): Remove handling of
2432 deprecated_reg_struct_has_addr.
2434 2007-10-11 Daniel Jacobowitz <dan@codesourcery.com>
2435 Kazu Hirata <kazu@codesourcery.com>
2437 * breakpoint.c (do_enable_breakpoint): Delay enabling until after
2438 checking watchpoint resources.
2440 2007-10-11 Kazu Hirata <kazu@codesourcery.com>
2442 * memattr.c (inaccessible_by_default): Change the initial
2445 2007-10-11 Daniel Jacobowitz <dan@codesourcery.com>
2448 * coffread.c (read_one_sym): Check for read errors.
2450 2007-10-11 Ulrich Weigand <uweigand@de.ibm.com>
2452 * linux-nat.c (lin_lwp_attach_lwp): Use "Linux kernel 2.6.19"
2453 instead of "Linux 2.6.19" in comment.
2454 (linux_xfer_partial): Use "GNU/Linux target" instead of
2455 "Linux target" in comment.
2456 * m68klinux-tdep.c (m68k_linux_inferior_created): Likewise.
2457 (m68k_linux_get_sigtramp_info): Likewise.
2459 2007-10-11 Daniel Jacobowitz <dan@codesourcery.com>
2461 * MAINTAINERS (language support): List Joel and Paul as
2464 2007-10-11 Daniel Jacobowitz <dan@codesourcery.com>
2466 * dbxread.c (process_one_symbol): Remove VARIABLES_INSIDE_BLOCK
2468 * config/arm/embed.mt, config/arm/linux.mt, config/arm/wince.mt: Do
2469 not set DEPRECATED_TM_FILE.
2470 * config/arm/tm-arm.h: Delete file.
2472 2007-10-11 Luis Machado <luisgpm@br.ibm.com>
2474 * MAINTAINERS (Write After Approval): Add self.
2476 2007-10-11 Daniel Jacobowitz <dan@codesourcery.com>
2478 * buildsym.c (record_line): Remove empty lines followed by
2479 end-of-sequence markers.
2481 2007-10-11 Kazu Hirata <kazu@codesourcery.com>
2483 * configure.tgt: Recognize fido-*-elf.
2485 2007-10-10 Joel Brobecker <brobecker@adacore.com>
2489 2007-10-10 Markus Deuling <deuling@de.ibm.com>
2491 * stack.c (print_frame_args, frame_info, return_command): Use
2492 get_regcache_arch or get_frame_arch to get at the current architecture
2493 by regcache or by frame, respectively.
2495 2007-10-10 Markus Deuling <deuling@de.ibm.com>
2497 * rs6000-nat.c (fetch_register, store_register)
2498 (rs6000_fetch_inferior_registers, rs6000_store_inferior_registers): Use
2499 get_regcache_arch to get at the current architecture by regcache.
2501 * rs6000-tdep.c (rs6000_push_dummy_call, rs6000_return_value)
2502 (rs6000_register_reggroup_p, e500_move_ev_registe, rs6000_unwind_pc)
2503 (rs6000_unwind_dummy_id, rs6000_frame_cache, rs6000_dump_tdep): Replace
2504 current_gdbarch by gdbarch.
2505 (rs6000_skip_trampoline_code, rs6000_register_to_value)
2506 (rs6000_value_to_register): Use get_frame_arch to get at the current
2507 architecture by frame_info.
2509 2007-10-10 Markus Deuling <deuling@de.ibm.com>
2511 * sparc-tdep.c (sparc_supply_rwindow, sparc_collect_rwindow): Use
2512 get_regcache_arch to get at the current architecture by regcache.
2514 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
2515 (sparc64_supply_fpregset, sparc64_collect_fpregset): Use
2516 get_regcache_arch to get at the current architecture by regcache.
2518 * sparc64nbsd-nat. (sparc64nbsd_supply_gregset)
2519 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
2520 (sparc64nbsd_collect_fpregset): Use get_regcache_arch to get at the
2521 current architecture by regcache.
2523 2007-10-10 Markus Deuling <deuling@de.ibm.com>
2525 * remote-mips.c (mips_wait, mips_fetch_registers)
2526 (mips_store_registers): Use get_regcache_arch to get at the
2527 current architecture by regcache.
2529 * mipsnbsd-tdep.c (mipsnbsd_supply_reg, mipsnbsd_fill_reg)
2530 (mipsnbsd_supply_fpreg, mipsnbsd_fill_fpreg): Use get_regcache_arch to
2531 get at the current architecture by regcache.
2532 (mipsnbsd_sigtramp_offset): Use get_frame_arch to get at the current
2533 architecture by frame_info.
2535 * mipsnbsd-nat.c (mipsnbsd_fetch_inferior_registers)
2536 (mipsnbsd_store_inferior_registers): Use get_regcache_arch to get at
2537 the current architecture by regcache.
2539 * mips-linux-tdep.c (mips_linux_get_longjmp_target)
2540 (mips64_linux_get_longjmp_target, mips_linux_o32_sigframe_init)
2541 (mips_linux_n32n64_sigframe_init): Use get_frame_arch to get at the
2542 current architecture by frame_info.
2543 (supply_32bit_reg, mips_supply_gregset, mips_fill_gregset)
2544 (mips_supply_fpregset, mips_fill_fpregset, supply_64bit_reg)
2545 (mips64_supply_gregset, mips64_fill_gregset, mips64_supply_fpregset)
2546 (mips64_fill_fpregset, mips_linux_write_pc): Use get_regcache_arch to
2547 get at the current architecture by regcache.
2549 * mips-linux-nat.c (mips_linux_register_addr)
2550 (mips64_linux_register_addr): Replace current_gdbarch by gdbarch.
2551 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset)
2552 (mips64_linux_regsets_fetch_registers)
2553 (mips64_linux_regsets_store_registers): Use get_regcache_arch to get at
2554 the current architecture by regcache.
2556 * mips64obsd-tdep.c (mips64obsd_sigframe_init): Use get_frame_arch to
2557 get at the current architecture by frame_info.
2559 2007-10-10 Markus Deuling <deuling@de.ibm.com>
2561 * mips-tdep.c (mips_xfer_register): Use get_regcache_arch to get at the
2562 current architecture by regcache.
2563 (mips2_fp_compat, mips32_next_pc, mips16_scan_prologue)
2564 (mips_insn16_frame_cache, mips32_scan_prologue, mips_insn32_frame_cache)
2565 (mips_stub_frame_cache, mips_read_fp_register_single)
2566 (mips_read_fp_register_double, mips_print_fp_register)
2567 (mips_print_register, print_gp_register_row): Use get_frame_arch to get
2568 at the current architecture by frame_info.
2569 (mips_register_reggroup_p, mips_pseudo_register_read, mips_unwind_sp)
2570 (mips_pseudo_register_write, mips_register_type, mips_unwind_pc)
2571 (mips_unwind_dummy_id, mips_eabi_push_dummy_call)
2572 (mips_n32n64_push_dummy_call, mips_n32n64_return_value)
2573 (mips_o32_push_dummy_call, mips_o32_return_value)
2574 (mips_o64_push_dummy_call, mips_o64_return_value)
2575 (mips_print_registers_info, mips_dump_tdep): Replace current_gdbarch by
2578 2007-10-10 Markus Deuling <deuling@de.ibm.com>
2580 * xtensa-tdep.c (xtensa_register_type, xtensa_pseudo_register_read)
2581 (xtensa_pseudo_register_write, xtensa_register_reggroup_p)
2582 (xtensa_unwind_pc, xtensa_unwind_dummy_id, xtensa_push_dummy_call)
2583 (xtensa_dump_tdep): Replace current_gdbarch by gdbarch.
2584 (xtensa_register_write_masked, xtensa_register_read_masked)
2585 (xtensa_supply_gregset, xtensa_store_return_value)
2586 (xtensa_extract_return_value): Use get_regcache_arch to get at the
2587 current architecture by regcache.
2588 (xtensa_frame_cache, call0_frame_get_reg_at_entry, call0_frame_cache)
2589 (xtensa_frame_prev_register): Use get_frame_arch to get at the current
2590 architecture by frame_info.
2592 2007-10-10 Daniel Jacobowitz <dan@codesourcery.com>
2594 * arm-tdep.c (struct arm_prologue_cache): Remove frameoffset.
2595 (thumb_analyze_prologue): Move pv_area_store_would_trash call
2596 out of loop. Do not set cache->frameoffset.
2597 (arm_scan_prologue): Use prologue-value mechanism. Do not set
2598 frameoffset. Simplify framesize.
2599 (arm_make_prologue_cache, arm_normal_frame_base): Do not use
2601 * arm-tdep.h (enum gdb_regnum): Add ARM_IP_REGNUM.
2603 2007-10-10 Daniel Jacobowitz <dan@codesourcery.com>
2605 * target.c (update_current_target): Call setup_target_debug.
2606 (push_target): Do not call it here.
2608 2007-10-09 Michael Snyder <msnyder@specifix.com>
2610 * MAINTAINERS: Update my email address.
2612 2007-10-09 Markus Deuling <deuling@de.ibm.com>
2614 * xtensa-tdep.c: Replace following current-gdbarch based macros by
2616 (xtensa_pseudo_register_read)
2617 (xtensa_pseudo_register_write): XTENSA_TARGET_FLAGS.
2618 (ARG_NOF, ARG_1ST, xtensa_extract_return_value)
2619 (xtensa_store_return_value, xtensa_push_dummy_call): CALL_ABI.
2620 (xtensa_pseudo_register_read)
2621 (xtensa_pseudo_register_write): ISA_USE_WINDOWED_REGISTERS.
2622 (xtensa_breakpoint_from_pc): ISA_USE_DENSITY_INSTRUCTIONS.
2623 (xtensa_register_type, xtensa_supply_gregset, xtensa_frame_cache)
2624 (xtensa_frame_prev_register): NUM_AREGS.
2625 (xtensa_pseudo_register_read, xtensa_pseudo_register_write,
2626 (xtensa_supply_gregset, xtensa_frame_cache, xtensa_frame_prev_register,
2627 (xtensa_extract_return_value, xtensa_store_return_value): WB_REGNUM.
2628 (xtensa_supply_gregset, xtensa_frame_cache)
2629 (xtensa_frame_prev_register): WS_REGNUM.
2630 (xtensa_supply_gregset): LBEG_REGNUM, LEND_REGNUM, LCOUNT_REGNUM,
2631 SAR_REGNUM, EXCCAUSE_REGNUM, EXCVADDR_REGNUM
2632 (xtensa_register_name, xtensa_register_type, xtensa_reg_to_regnum)
2633 (xtensa_pseudo_register_read, xtensa_pseudo_register_write)
2634 (xtensa_register_reggroup_p): REGMAP.
2635 (call0_track_op): LITBASE_REGNUM.
2636 (xtensa_register_type, xtensa_reg_to_regnum, call0_frame_cache):A0_BASE
2637 (xtensa_supply_gregset, call0_frame_get_reg_at_entry)
2638 (xtensa_frame_prev_register, AREG_NUMBER)
2639 (xtensa_register_type): AR_BASE.
2640 (xtensa_pseudo_register_read, xtensa_pseudo_register_write): FP_ALIAS.
2641 (AREG_NUMBER): AREGS_MASK, WB_MASK, A0_REGNUM.
2642 (ARG_1ST, xtensa_pseudo_register_read, xtensa_pseudo_register_write)
2643 (xtensa_frame_cache, xtensa_frame_prev_register)
2644 (xtensa_extract_return_value, xtensa_store_return_value)
2645 (xtensa_push_dummy_call, call0_frame_cache): A0_REGNUM.
2646 (xtensa_register_type, xtensa_pseudo_register_read, xtensa_frame_cache)
2647 (xtensa_pseudo_register_write, xtensa_unwind_dummy_id)
2648 (xtensa_frame_prev_register, xtensa_push_dummy_call)
2649 (call0_frame_cache): A1_REGNUM.
2650 (xtensa_extract_return_value, xtensa_store_return_value): A2_REGNUM.
2651 (xtensa_push_dummy_call): A4_REGNUM.
2652 (ARGS_FIRST_REG): A6_REGNUM.
2653 (xtensa_pseudo_register_read, xtensa_pseudo_register_write)
2654 (xtensa_frame_prev_register): A15_REGNUM.
2655 * xtensa-tdep.h: Delete current_gdbarch based macros after replacing
2656 them in the appropriate source file:
2657 XTENSA_TARGET_FLAGS, SPILL_LOCATION, SPILL_SIZE, CALL_ABI, NUM_AREGS,
2658 ISA_USE_WINDOWED_REGISTERS, ISA_USE_DENSITY_INSTRUCTIONS, WB_REGNUM,
2659 ISA_USE_EXCEPTIONS, ISA_USE_EXT_L32R, DEBUG_DATA_VADDR_TRAP_COUNT,
2660 DEBUG_INST_VADDR_TRAP_COUNT, ISA_MAX_INSN_SIZE, DEBUG_NUM_IBREAKS,
2661 DEBUG_NUM_DBREAKS, WS_REGNUM, LBEG_REGNUM, LEND_REGNUM, SAR_REGNUM,
2662 REGMAP, LITBASE_REGNUM, DEBUGCAUSE_REGNUM, EXCCAUSE_REGNUM, AR_BASE,
2663 EXCVADDR_REGNUM, NUM_IBREAKS, REGMAP_BYTES, NUM_CONTEXTS, FP_ALIAS,
2664 FP_LAYOUT, FP_LAYOUT_BYTES, GREGMAP, AREGS_MASK, WB_MASK, A0_REGNUM,
2665 A1_REGNUM, A2_REGNUM, A3_REGNUM, A4_REGNUM, A5_REGNUM, A6_REGNUM,
2666 A7_REGNUM, A8_REGNUM, A9_REGNUM, A10_REGNUM, A11_REGNUM, A12_REGNUM,
2667 A13_REGNUM, A14_REGNUM, A15_REGNUM.
2669 2007-10-09 Markus Deuling <deuling@de.ibm.com>
2671 * h8300-tdep.c (h8300_frame_cache): Use get_frame_arch to get at
2672 the current architecture by frame_info.
2673 (h8300_frame_prev_register
2674 (h8300_print_register): Replace current_gdbarch by gdbarch.
2675 (h8300_print_registers_info, h8300_register_type)
2676 (h8300_register_type): Likewise.
2678 2007-10-09 Markus Deuling <deuling@de.ibm.com>
2680 * i386-linux-nat.c (fetch_register): Use get_regcache_arch to get at
2681 the current architecture by regcache.
2682 (store_register, supply_gregset, fill_gregset, i386_linux_resume)
2683 (i386_linux_fetch_inferior_registers)
2684 (i386_linux_store_inferior_registers): Likewise.
2685 * i386gnu-nat.c (gnu_fetch_registers, gnu_store_registers): Likewise.
2686 * i386-nto-tdep.c (i386nto_supply_gregset): Likewise.
2687 * i386v4-nat.c (supply_fpregset, fill_fpregset): Likewise.
2688 * i386-tdep.c (i386_unwind_pc): Replace current_gdbarch by gdbarch.
2689 (i386_extract_return_value, i386_store_return_value): Likewise.
2690 * i386-tdep.c (i386_frame_prev_register): Use get_frame_arch to get at
2691 the current architecture by frame_info.
2692 (i386_sigtramp_frame_cache, i386_get_longjmp_target)
2693 (i386_register_to_value, i386_value_to_register): Likewise.
2695 2007-10-09 Markus Deuling <deuling@de.ibm.com>
2697 * monitor.c (monitor_supply_register): Use get_regcache_arch to get at
2698 the current architecture by regcache.
2699 (monitor_store_register, monitor_store_registers): Likewise.
2701 2007-10-09 Markus Deuling <deuling@de.ibm.com>
2703 * dbug-rom.c (dbug_supply_register): Use get_regcache_arch to get at
2704 the current architecture by regcache.
2706 2007-10-09 Markus Deuling <deuling@de.ibm.com>
2708 * arch-utils.c (legacy_return_value): Replace current_gdbarch by
2711 2007-10-09 Markus Deuling <deuling@de.ibm.com>
2713 * frame.c (frame_pc_unwind): Use get_frame_arch to get at the current
2714 architecture by frame.
2715 (frame_save_as_regcache, frame_register_unwind, get_prev_frame_1)
2716 (inside_main_func, frame_sp_unwind): Likewise.
2718 2007-10-09 Daniel Jacobowitz <dan@codesourcery.com>
2720 * solib-svr4.c (enable_break): Add the dynamic linker also if
2723 2007-10-09 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
2725 * MAINTAINERS (Write After Approval): Add self.
2727 2007-10-09 Pedro Alves <pedro_alves@portugalmail.pt>
2729 * stabsread.c (read_huge_number): Initialize local variable to 0.
2731 2007-10-09 Pierre Muller <muller@ics.u-strasbg.fr>
2733 * p-lang.h (pascal_main_name): Add declaration.
2734 * p-lang.c (GPC_P_INITIALIZE, GPC_MAIN_PROGRAM_NAME_1)
2735 (GPC_MAIN_PROGRAM_NAME_2): New constants.
2736 (pascal_main_name): New function.
2737 * symtab.c: Include p-lang.h.
2738 (find_main_name): Add call to pascal_main_name.
2739 * Makefile.in (symtab.o): Add dependency on p-lang.h.
2741 2007-10-09 Pedro Alves <pedro_alves@portugalmail.pt>
2743 * stabsread.c (read_huge_number): Fix handling of octal
2744 representation when the bit width is known.
2745 (read_range_type): Record unsigned integral types with their size,
2746 when the type size is known.
2748 2007-10-08 Thiago Jung Bauermann <bauerman@br.ibm.com>
2750 * MAINTAINERS (Write After Approval): Add self.
2752 2007-10-08 Pierre Muller <muller@ics.u-strasbg.fr>
2754 * breakpoint.c (print_one_breakpoint_location): ARI fix:
2755 Replace asprintf by xstrprintf.
2757 2007-10-08 Pierre Muller <muller@ics.u-strasbg.fr>
2759 * linux-fork.c: ARI fix: include "gdb_dirent.h" instead of <dirent.h>.
2760 Makefile.in (linux-fork.o): Add gdb_dirent.h dependency.
2762 2007-10-08 Pierre Muller <muller@ics.u-strasbg.fr>
2764 * linux-fork.c: Move "gdb_wait.h" include back to the position of
2765 <sys/wait.h> include before last commit.
2767 2007-10-08 Maciej W. Rozycki <macro@mips.com>
2769 * mips-tdep.c (mips32_next_pc): Fix a typo in BGTZL.
2771 2007-10-08 Markus Deuling <deuling@de.ibm.com>
2773 * aix-thread.c (supply_gprs64, supply_fprs, supply_sprs64)
2774 (supply_sprs32, fetch_regs_user_thread, fetch_regs_kernel_thread)
2775 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs64, fill_sprs32)
2776 (store_regs_user_thread, store_regs_kernel_thread): Use
2777 get_regcache_arch or get_frame_arch to get at the current architecture
2778 by regcache or by frame, respectively.
2780 2007-10-08 Markus Deuling <deuling@de.ibm.com>
2782 * sh64-tdep.c (sh64_push_dummy_call, sh64_register_type)
2783 (sh64_pseudo_register_read, sh64_pseudo_register_write)
2784 (sh64_do_fp_register, sh64_do_pseudo_register, sh64_do_register)
2785 (sh64_print_register, sh64_media_print_registers_info)
2786 (sh64_compact_print_registers_info, sh64_unwind_sp)
2787 (sh64_unwind_pc): Replace current_gdbarch by gdbarch.
2788 (sh64_show_media_regs, sh64_show_compact_regs, sh64_frame_cache)
2789 (sh64_frame_prev_register): Use FRAME to recognize current
2792 2007-10-08 Markus Deuling <deuling@de.ibm.com>
2794 * sh-tdep.c (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu)
2795 (sh_sh2a_register_type, sh_sh3e_register_type, sh_sh4_register_type)
2796 (sh_register_reggroup_p, sh_dwarf2_frame_init_reg): Replace
2797 current_gdbarch by gdbarch.
2798 (sh_generic_show_regs, sh3_show_reg, sh2e_show_regs, sh2a_show_regs)
2799 (sh2a_nofpu_show_regs, sh3e_show_regs, sh3_dsp_show_regs)
2800 (sh4_show_regs, sh4_nofpu_show_regs, sh_dsp_show_regs, sh_frame_cache)
2801 (sh_frame_prev_register, sh_unwind_sp, sh_unwind_pc): Use FRAME to
2802 recognize current architecture.
2804 2007-10-08 Markus Deuling <deuling@de.ibm.com>
2806 * remote.c (init_remote_state, fetch_register_using_p)
2807 (process_g_packet, remote_fetch_registers, remote_prepare_to_store)
2808 (store_register_using_P, store_registers_using_G)
2809 (remote_store_registers): Use get_regcache_arch or get_frame_arch to
2810 get at the current architecture by regcache or by frame, respectively.
2812 2007-10-08 Markus Deuling <deuling@de.ibm.com>
2814 * m68k-tdep.c (m68k_register_to_value, m68k_value_to_register)
2815 (m68k_svr4_extract_return_value, m68k_svr4_store_return_value)
2816 (m68k_frame_prev_register, m68k_get_longjmp_target): Use
2817 get_regcache_arch or get_frame_arch to get at the current architecture
2818 by regcache or by frame, respectively.
2819 * m68klinux-tdep.c (m68k_linux_sigtramp_frame_cache): Likewise.
2820 * m68klinux-nat.c (fetch_register, old_fetch_inferior_registers)
2821 (store_register, old_store_inferior_registers, supply_gregset)
2822 (supply_fpregset, fill_fpregset): Likewise.
2823 * m68k-tdep.c (m68k_register_type, m68k_unwind_pc, m68k_dump_tdep):
2824 Replace current_gdbarch by gdbarch.
2826 2007-10-08 Markus Deuling <deuling@de.ibm.com>
2828 * irix5-nat.c (supply_gregset, fill_gregset, supply_fpregset)
2829 (fill_fpregset, fetch_core_registers): Use get_regcache_arch or
2830 get_frame_arch to get at the current architecture by regcache or by
2831 frame, respectively.
2833 2007-10-08 Markus Deuling <deuling@de.ibm.com>
2835 * ia64-tdep.c (ia64_pseudo_register_read, ia64_pseudo_register_write):
2836 Replace current_gdbarch by gdbarch.
2837 * ia64-tdep.c (ia64_frame_prev_register
2838 (ia64_sigtramp_frame_prev_register)
2839 (ia64_libunwind_frame_prev_register): Use get_regcache_arch or
2840 get_frame_arch to get at the current architecture by regcache or by
2841 frame, respectively.
2842 * ia64-linux-nat.c (ia64_linux_fetch_register)
2843 (ia64_linux_fetch_registers, ia64_linux_store_register)
2844 (ia64_linux_store_registers): Likewise.
2846 2007-10-08 Markus Deuling <deuling@de.ibm.com>
2848 * hppa-tdep.c (hppa_stub_unwind_sniffer, hppa_dump_tdep): Replace
2849 current_gdbarch by gdbarch.
2850 * hppa-linux-nat.c (fetch_register, store_register)
2851 (hppa_linux_fetch_inferior_registers)
2852 (hppa_linux_store_inferior_registers): Use get_regcache_arch or
2853 get_frame_arch to get at the current architecture by regcache or by
2854 frame, respectively.
2855 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code
2856 (hppa_hpux_unwind_adjust_stub): Likewise.
2857 * hppa-hpux-nat.c (hppa_hpux_fetch_register, hppa_hpux_store_register)
2858 (hppa_hpux_fetch_inferior_registers)
2859 (hppa_hpux_store_inferior_registers): Likewise.
2861 2007-10-08 Markus Deuling <deuling@de.ibm.com>
2863 * cris-tdep.c (cris_sigcontext_addr, cris_sigtramp_frame_unwind_cache)
2864 (cris_scan_prologue, crisv32_scan_prologue, find_step_target)
2865 (cris_software_single_step, cris_supply_gregset): Use get_regcache_arch
2866 or get_frame_arch to get at the current architecture by regcache or by
2867 frame, respectively.
2868 * cris-tdep.c (crisv32_single_step_through_delay, cris_push_dummy_call)
2869 (cris_unwind_pc, cris_unwind_sp, cris_register_type, cris_dump_tdep)
2870 (crisv32_register_type, cris_dwarf2_frame_init_reg): Replace
2871 current_gdbarch by gdbarch.
2873 2007-10-08 Markus Deuling <deuling@de.ibm.com>
2875 * arm-tdep.c (arm_scan_prologue, arm_make_prologue_cache)
2876 (thumb_get_next_pc, arm_get_next_pc, arm_extract_return_value)
2877 (arm_store_return_value): Use get_regcache_arch or get_frame_arch to
2878 get at the current architecture by regcache or by·frame, respectively.
2879 (arm_push_dummy_call, arm_dump_tdep): Replace current_gdbarch by
2882 2007-10-08 Markus Deuling <deuling@de.ibm.com>
2884 * amd64-tdep.c (amd64_frame_prev_register, amd64_sigtramp_frame_cache):
2885 Use get_regcache_arch or get_frame_arch to get at the current
2886 architecture by regcache or by frame, respectively.
2887 * amd64-linux-tdep.c (amd64_linux_sigcontext_addr): Likewise.
2888 * amd64-nat.c (amd64_supply_native_gregset)
2889 (amd64_collect_native_gregset): Replace current_gdbarch by gdbarch.
2891 2007-10-08 Markus Deuling <deuling@de.ibm.com>
2893 * alpha-tdep.c (alpha_register_reggroup_p): Replace current_gdbarch by
2895 * alpha-linux-nat.c (alpha_linux_register_u_offset): Likewise.
2896 (alpha_sigtramp_frame_unwind_cache, alpha_sigtramp_frame_this_id)
2897 (alpha_sigtramp_frame_sniffer, alpha_next_pc): Use get_regcache_arch or
2898 get_frame_arch to get at the current architecture by regcache or by
2899 frame, respectively.
2900 * alpha-nat.c (fetch_osf_core_registers): Likewise.
2902 2007-10-08 Markus Deuling <deuling@de.ibm.com>
2904 * dwarf2-frame.c (read_reg, execute_cfa_program, dwarf2_frame_cache)
2905 (dwarf2_frame_default_init_reg, dwarf2_frame_prev_register): Replace
2906 current_gdbarch by gdbarch.
2907 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Likewise.
2909 2007-10-08 Markus Deuling <deuling@de.ibm.com>
2911 * regcache.c (init_regcache_descr, register_type, read_pc_pid)
2912 (write_pc_pid, regcache_dump): Replace current_gdbarch by gdbarch.
2913 * regcache.c (regcache_raw_write): Use get_regcache_arch or
2914 get_frame_arch to get at the current architecture by regcache or by
2915 frame, respectively.
2917 2007-10-08 Markus Deuling <deuling@de.ibm.com>
2919 * findvar.c (value_of_register, locate_var_value): Use
2920 get_regcache_arch or get_frame_arch to get at the current architecture
2921 by regcache or by frame, respectively.
2922 * findvar.c (default_value_from_register, value_from_register): Replace
2923 current_gdbarch by gdbarch.
2925 2007-10-08 Pierre Muller <muller@ics.u-strasbg.fr>
2927 * config/i386/nm-i386.h (CHILD_POST_STARTUP_INFERIOR): ARI fix: Remove.
2929 2007-10-08 Pierre Muller <muller@ics.u-strasbg.fr>
2931 * linux-fork.c: ARI fix: include "gdb_wait.h" instead of <sys/wait.h>.
2932 Makefile.in (linux-fork.o): Add gdb_wait.h dependency.
2934 2007-10-05 Daniel Jacobowitz <dan@codesourcery.com>
2936 * remote.c (get_offsets): Only call free_symfile_segment_data if
2939 2007-10-03 Pierre Muller <muller@ics.u-strasbg.fr>
2941 * objc-exp.y: ARI fix: remove 4 PARAMS.
2943 2007-10-03 Daniel Jacobowitz <dan@codesourcery.com>
2945 * NEWS: Use uniform spacing. Correct version number for GDB 6.7
2946 news. Mention XML support for M68K in GDB 6.7.
2948 2007-10-03 Daniel Jacobowitz <dan@codesourcery.com>
2950 * gdbtypes.c (create_range_type): Do not set TYPE_FIELD_TYPE for the
2952 (init_vector_type): Use builtin_type_int32.
2954 2007-10-02 Ulrich Weigand <uweigand@de.ibm.com>
2956 * s390-tdep.c (s390_regset_from_core_section): Allow excess section
2957 size to enable bi-arch generate-core-file support.
2959 2007-10-02 Markus Deuling <deuling@de.ibm.com>
2961 * spu-tdep.c (info_spu_signal_command): Fix output for SPU signal.
2963 2007-10-02 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
2965 * tui/tui-interp.c (tui_init): Initialize tui's SIGWINCH
2967 * tui/tui-win.c (tui_initialize_win): New function for
2968 initializing tui's SIGWINCH signal handler.
2969 * tui/tui-win.h (tui_initialize_win): Declare.
2971 2007-10-02 Ulrich Weigand <uweigand@de.ibm.com>
2973 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Cast
2974 pointer to uintptr_t before casting to CORE_ADDR.
2976 2007-10-02 Markus Deuling <deuling@de.ibm.com>
2978 * linux-nat.c (PTRACE_GETSIGINFO): Add define.
2980 2007-10-02 Mark Mitchell <mark@codesourcery.com>
2982 * mingw-hdep.c (gdb_select): Stop helper threads before returning.
2983 * ser-mingw.c (enum select_thread_state): New type.
2984 (struct ser_console_state): Add have_started and thread_state.
2985 (select_thread_wait): New function.
2986 (thread_fn_type): New type.
2987 (create_select_thread): New function.
2988 (destroy_select_thread): Likewise.
2989 (start_select_thread): Likewise.
2990 (stop_select_thread): Likewise.
2991 (console_select_thread): Use new functions.
2992 (pipe_select_thread): Likewise.
2993 (file_select_thread): Likewise.
2994 (ser_console_wait_handle): Likewise.
2995 (ser_console_done_wait_handle): Likewise.
2996 (ser_console_close): Likewise.
2997 (free_pipe_state): Likewise.
2998 (pipe_wait_handle): Likewise.
2999 (pipe_done_wait_handle): Likewise.
3000 (struct net_windows_state): Derive from ser_console_state.
3001 (net_windows_select_thread): Use new functions.
3002 (net_windows_wait_handle): Likewise.
3003 (net_windows_done_wait_handle): Likewise.
3004 (net_windows_close): Likewise.
3006 2007-10-02 Daniel Jacobowitz <dan@codesourcery.com>
3008 * inflow.c (terminal_ours_1): Remove useless line.
3010 2007-10-02 Daniel Jacobowitz <dan@codesourcery.com>
3012 * mips-tdep.c (mips_read_fp_register_double): Correct check for
3014 (mips_print_fp_register): Correct check for even FP registers.
3015 (mips_virtual_frame_pointer): New function.
3016 (mips_gdbarch_init): Call set_gdbarch_virtual_frame_pointer.
3018 2007-09-30 Mike Frysinger <vapier@gentoo.org>
3020 * value.h (lookup_only_internalvar): New prototype.
3021 (create_internalvar): Likewise.
3022 * value.c (lookup_only_internalvar): New function.
3023 (create_internalvar): Likewise.
3024 (lookup_internalvar): Use new lookup_only_internalvar and
3025 create_internalvar functions.
3026 * parse.c (write_dollar_variable): Look up $ symbols in internal
3027 table first rather than last.
3029 2007-09-30 Daniel Jacobowitz <dan@codesourcery.com>
3031 * linux-nat.c (linux_nat_new_thread): New variable.
3032 (linux_child_follow_fork): Set inferior_ptid to include LWP ID. Use
3033 linux_nat_switch_fork.
3034 (lwp_list): Make public.
3035 (add_lwp): Call linux_nat_new_thread.
3036 (lin_lwp_attach_lwp, linux_nat_attach): Call add_lwp after stopping
3038 (resume_callback): Clear lp->siginfo. Remove unused variable.
3039 (linux_nat_resume): Assert that the LWP list is already initialized.
3041 (save_siginfo): New.
3042 (stop_wait_callback, linux_nat_wait): Call it.
3043 (linux_nat_set_new_thread, linux_nat_get_siginfo): New.
3044 * linux-nat.h (struct lwp_info): Add siginfo.
3045 (lwp_list, linux_nat_set_new_thread, linux_nat_get_siginfo): Declare.
3048 * amd64-linux-nat.c (amd64_linux_dr): New.
3049 (amd64_linux_dr_get): Take a PTID argument. Correct typo.
3050 (amd64_linux_dr_set): Take a PTID argument.
3051 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use ALL_LWPS.
3052 (amd64_linux_dr_reset_addr): Use amd64_linux_dr_set_addr.
3053 (amd64_linux_dr_get_status): Pass inferior_ptid to amd64_linux_dr_get.
3054 (amd64_linux_new_thread): New.
3055 (_initialize_amd64_linux_nat): Call linux_nat_set_new_thread.
3056 * i386-linux-nat.c (i386_linux_dr): New.
3057 (i386_linux_dr_get, i386_linux_dr_set): Take a PTID argument.
3058 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use ALL_LWPS.
3059 (i386_linux_dr_reset_addr): Use i386_linux_dr_set_addr.
3060 (i386_linux_dr_get_status): Pass inferior_ptid to i386_linux_dr_get.
3061 (i386_linux_new_thread): New.
3062 (i386_linux_resume): Remove unnecessary PID check.
3063 (_initialize_i386_linux_nat): Call linux_nat_set_new_thread.
3064 * ia64-linux-nat.c (enable_watchpoints_in_psr): Take PTID argument.
3065 (fetch_debug_register, fetch_debug_register_pair): Delete.
3066 (debug_registers): New.
3067 (ia64_linux_insert_watchpoint, ia64_linux_remove_watchpoint): Use
3068 ALL_LWPS and debug_registers.
3069 (ia64_linux_new_thread): New.
3070 (ia64_linux_stopped_data_address): Use linux_nat_get_siginfo.
3071 (_initialize_ia64_linux_nat): Call linux_nat_set_new_thread.
3072 * ppc-linux-nat.c (last_stopped_data_address): Delete.
3073 (saved_dabr_value): New.
3074 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint): Use
3076 (ppc_linux_new_thread): New.
3077 (ppc_linux_stopped_data_address): Use linux_nat_get_siginfo.
3078 (ppc_linux_stopped_by_watchpoint): Call ppc_linux_stopped_data_address.
3079 (_initialize_ppc_linux_nat): Call linux_nat_set_new_thread.
3080 * s390-nat.c (s390_stopped_by_watchpoint): Clear the watchpoint status
3082 (s390_fix_watch_points): Take a PTID argument.
3083 (s390_insert_watchpoint, s390_remove_watchpoint): Use ALL_LWPS.
3084 (_initialize_s390_nat): Call linux_nat_set_new_thread.
3086 2007-09-30 Daniel Jacobowitz <dan@codesourcery.com>
3087 Jeff Johnston <jjohnstn@redhat.com>
3089 * breakpoint.c (watchpoints_triggered): New.
3090 (bpstat_stop_status): Remove STOPPED_BY_WATCHPOINT argument.
3091 Check watchpoint_triggered instead. Combine handling for software
3092 and hardware watchpoints. Do not use target_stopped_data_address
3093 here. Always check a watchpoint if its scope breakpoint triggers.
3094 Do not stop for thread or overlay events. Improve check for
3095 triggered watchpoints without a value change.
3096 (watch_command_1): Insert the scope breakpoint first. Link the
3097 scope breakpoint to the watchpoint.
3098 * breakpoint.h (enum watchpoint_triggered): New.
3099 (struct breakpoint): Add watchpoint_triggered.
3100 (bpstat_stop_status): Update prototype.
3101 (watchpoints_triggered): Declare.
3102 * infrun.c (enum infwait_status): Add infwait_step_watch_state.
3103 (stepped_after_stopped_by_watchpoint): Delete.
3104 (handle_inferior_event): Make stepped_after_stopped_by_watchpoint
3105 local. Handle infwait_step_watch_state. Update calls to
3106 bpstat_stop_status. Use watchpoints_triggered to check
3108 * remote.c (stepped_after_stopped_by_watchpoint): Remove extern.
3109 (remote_stopped_data_address): Do not check it.
3111 2007-09-29 Daniel Jacobowitz <dan@codesourcery.com>
3113 * configure.ac: Add $LIBINTL when testing libbfd.
3114 * configure: Regenerated.
3116 2007-09-28 Vladimir Prus <vladimir@codesourcery.com>
3118 * NEW: Mention pending breakpoint changes and
3119 support for breakpoints at multiple locations.
3121 2007-09-27 Daniel Jacobowitz <dan@codesourcery.com>
3123 * arm-linux-tdep.c (arm_linux_software_single_step): New.
3124 (arm_linux_init_abi): Use it.
3125 * arm-tdep.c (arm_get_next_pc): Make global. Handle all-ones
3126 condition correctly.
3127 * arm-tdep.h (arm_get_next_pc): Declare.
3128 * Makefile.in (arm-linux-tdep.o): Update.
3130 2007-09-26 Vladimir Prus <vladimir@codesourcery.com>
3132 * varobj.c (install_new_value): Don't
3133 call value_get_print_value when a value is
3134 lazy. Update the print_value member in a
3137 2007-09-26 Vladimir Prus <vladimir@codesourcery.com>
3139 * breakpoint.c (create_breakpoint): Set
3140 condition on each location, not on the first
3141 location of breakpoint.
3143 2007-09-26 Jim Blandy <jimb@codesourcery.com>
3145 * remote.c (getpkt_sane): Fix error message. No animals were
3146 harmed in the making of this debugger.
3148 2007-09-26 Pierre Muller <muller@ics.u-strasbg.fr>
3150 * p-typeprint.c: Fix 11 ARI reported problems.
3151 (pascal_print_type): Fix 4 operator at end of line.
3152 (pascal_type_print_method_args) : Replace 2 DEPRECATED_STREQN macros
3153 using strncmp function.
3154 (pascal_type_print_base): Fix 2 operator at end of line.
3155 (pascal_type_print_base) : Replace 3 DEPRECATED_STREQN macros
3156 using strncmp function.
3159 2007-09-26 Pierre Muller <muller@ics.u-strasbg.fr>
3161 * Fix PR pascal/2231
3162 dwarf2read.c (read_subroutine_type):
3163 All pascal functions are prototyped.
3165 2007-09-26 Pierre Muller <muller@ics.u-strasbg.fr>
3167 * Fix PR pascal/2283
3168 p-valprint.c (pascal_val_print): correct current language check.
3169 Also print array of char as strings.
3172 2007-09-26 David Ung <davidu@mips.com>
3173 Maciej W. Rozycki <macro@mips.com>
3175 * mips-tdep.c (mips_n32n64_return_value): Fix a comment.
3177 2007-09-25 Pierre Muller <muller@ics.u-strasbg.fr>
3179 * p-exp.y: Fix 12 ARI reported problems.
3180 (name_not_typename): Fix 2 operator at end of line issues.
3181 (yylex): Fix 3 operator at end of line issues.
3182 Replace 7 DEPRECATED_STREQ macros using strcmp function.
3184 2007-09-25 David Ung <davidu@mips.com>
3185 Maciej W. Rozycki <macro@mips.com>
3187 * mips-tdep.c (mips_n32n64_return_value): Per N32/N64 ABI
3188 rules return composite types in registers as appropriate.
3190 2007-09-24 Jim Blandy <jimb@codesourcery.com>
3192 * symfile.h (struct symfile_segment_data): Doc fixes.
3193 * symfile.c (symfile_map_offsets_to_segments): Doc fixes.
3194 Assert that we were passed some loaded segment addresses,
3195 and that sections' segment numbers are valid.
3196 Simplify offset calculation.
3197 * remote.c (get_offsets): Clarify selection of relocate-by-segment
3198 strategy, and set num_segments correctly. Delete redundant
3199 assignments to do_sections.
3201 2007-09-24 Daniel Jacobowitz <dan@codesourcery.com>
3203 * frame.c (get_prev_frame_1): Also check for PC in the same register.
3205 2007-09-24 Vladimir Prus <vladimir@codesourcery.com>
3207 * breakpoint.c (remove_sal): New.
3208 (expand_line_sal_maybe): New.
3209 (create_breakpoints): Call expand_line_sal_maybe.
3210 (clear_command): Add comment.
3211 (breakpoint_re_set_one): Call expand_line_sal_maybe.
3212 * linespec.c (decode_indirect): Set explicit_pc to 1.
3213 (decode_all_digits): Set explicit_line to 1.
3214 (append_expanded_sal): New.
3215 (expand_line_sal): New.
3216 * linespec.h (expand_line_sal): Declare.
3217 * symtab.c (init_sal): Initialize explicit_pc
3219 * symtab.h (struct symtab_and_line): New fields
3220 explicit_pc and explicit_line.
3222 2007-09-23 Daniel Jacobowitz <dan@codesourcery.com>
3224 * infcall.c (call_function_by_hand): Handle language-specific
3225 pass and return by reference.
3227 * cp-abi.c (cp_pass_by_reference): New.
3228 * cp-abi.h (cp_pass_by_reference): Declare.
3229 (struct cp_abi_ops): Add pass_by_reference.
3230 * gnu-v3-abi.c (gnuv3_pass_by_reference): New.
3231 (init_gnuv3_ops): Set pass_by_reference.
3233 * language.c (language_pass_by_reference): New.
3234 (default_pass_by_reference): New.
3235 (unknown_language_defn, auto_language_defn, local_language_defn): Add
3236 default_pass_by_reference.
3237 * langauge.h (struct language_defn): Add la_pass_by_reference.
3238 (language_pass_by_reference, default_pass_by_reference): Declare.
3239 * ada-lang.c (ada_language_defn): Add default_pass_by_reference.
3240 * c-lang.c (c_language_defn, asm_language_defn)
3241 (minimal_language_defn): Likewise.
3242 (cplus_language_defn): Add cp_pass_by_reference.
3243 * f-lang.c (f_language_defn): Add default_pass_by_reference.
3244 * jv-lang.c (java_language_defn): Likewise.
3245 * m2-lang.c (m2_language_defn): Likewise.
3246 * objc-lang.c (objc_language_defn): Likewise.
3247 * p-lang.c (pascal_language_defn): Likewise.
3248 * scm-lang.c (scm_language_defn): Likewise
3250 2007-09-23 Vladimir Prus <vladimir@codesourcery.com>
3252 Allow a code breakpoint to have several locations
3254 * breakpoint.h (enum enable_state): Remove the
3255 bp_shlib_disabled enumerator.
3256 (struct bp_location): New members shlib_disabled,
3257 global_next, enabled and function_name.
3258 Rename pending to condition_not_parsed.
3260 * breakpoint.c (ALL_BP_LOCATIONS): Iterate over global_next.
3261 (ALL_BP_LOCATIONS_SAFE): Likewise.
3262 (breakpoint_enabled): Don't check for pending.
3263 (condition_command): Free and update all locations of
3265 (insert_bp_location): Adjust.
3266 (software_breakpoint_inserted_here_p): Don't care
3267 if breakpoint is enabled, as soon as it's inserted.
3268 (print_it_typical): Print bpstat's location, not
3269 bpstat's breakpoint's location.
3270 (bpstat_stop_status): Iterate over all locations, not
3272 (print_breakpoint_location): New.
3273 (print_one_breakpoint): Renamed to
3274 (print_one_breakpoint_location): ...this. Take
3275 parameters to describe which location is being
3276 printed. Modify code to properly print header
3277 for several locations and individual locations.
3278 (print_one_breakpoint): Print all locations.
3279 (breakpoint_has_pc): New.
3280 (describe_other_breakpoints): Use the above.
3281 (check_duplicates): Renamed to...
3282 (check_duplicates_for): .. this.
3283 (check_duplicates): Use check_duplicates_for.
3284 (allocate_bp_location): Adjust.
3285 (set_raw_breakpoint_without_location): New,
3286 extracted from set_raw_breakpoint.
3287 (set_breakpoint_location_function): New.
3288 (set_raw_breakpoint): Use
3289 set_raw_breakpoint_without_location.
3290 (make_breakpoint_permanent): Mark all locations
3292 (disable_breakpoints_in_shlibs): Iterate over
3294 (disable_breakpoints_in_unloaded_shlib): Likewise.
3295 (re_enable_breakpoints_in_shlibs): Likewise.
3296 (mention): Say "pending" when breakpoint has
3297 zero locations. If breakpoint has more than one
3299 (add_location_to_breakpoint): New.
3300 (create_breakpoint): Accept symtabs_and_lines, not
3301 symtab_and_line. Pass extra sals to
3302 add_location_to_breakpoint.
3303 (create_breakpoints): Pass symtabs_and_lines to
3305 (break_command_1): Make pending breakpoints
3306 have zero locations.
3307 (do_captured_breakpoint): Remove wrong allocation.
3308 (clear_command): Iterate over all locations.
3309 (unlink_locations_from_global_list): Renamed
3310 from unlink_location_from_global_list. Remove
3312 (delete_breakpoint): Remove all locations.
3313 Iterate over all locations when deciding which
3314 other location to re-enable.
3315 (all_locations_are_pending): New.
3316 (update_breakpoint_locations): Renamed from
3317 update_breakpoint_location. Try to match old
3318 and new locations using names of containing
3320 (breakpoint_re_set_one): Adjust.
3321 (find_location_by_number): New.
3322 (disable_command): Allow disabling individual location.
3323 (enable_command): Allow enabling individual location.
3324 * breakpoint.c: Adjust all uses of breakpoint's
3325 enable state to for bp_shlib_disabled change.
3327 2007-09-22 Vladimir Prus <vladimir@codesourcery.com>
3329 * breakpoint.c (do_restore_lang_radix_cleanup): Remove.
3330 (resolve_pending_breakpoint): Remove.
3331 (re_enable_breakpoints_in_shlibs): Remove.
3332 (unlink_locations_from_global_list): New.
3333 (update_breakpoint_locations): New.
3334 (breakpoint_re_set_one): Don't bail out on pending breakpoints.
3335 Use parse_condition and update_breakpoint_location to
3336 reset breakpoint. Ignore 'symbol not found' error from
3338 (breakpoint_re_set): Don't emit newline before the
3339 reason why breakpoint is not reset.
3340 (do_enable_breakpoint): Don't specially process pending
3342 (free_bp_location): New.
3343 (break_command_1): For pending breakpoints, initialize
3344 all fields of a sal with zeroes.
3345 * breakpoint.h (re_enable_breakpoints_in_shlibs): Remove.
3346 * infcmd.c (post_create_inferior): Don't call
3347 re_enable_breakpoints_in_shlibs.
3348 * infrun.c (handle_inferior_event): Likewise.
3349 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
3350 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
3351 * win32-nat.c (get_win32_debug_event): Likewise.
3353 2007-09-22 Vladimir Prus <vladimir@codesourcery.com>
3355 * breakpoint.c (create_breakpoint): Split from
3356 create_breakpoints, implementing most of its logic.
3357 Take just a single sal, single address string and
3358 single condition. Do not take parsed condition at
3360 (create_breakpoints): Just call create_breakpoint
3362 (find_condition_and_thread): New.
3363 (break_command_1): Use find_condition_and_thread.
3364 Do not keep parsed conditions.
3365 (do_captured_breakpoint): Don't convert
3366 condition string to struct expression.
3368 2007-09-22 Vladimir Prus <vladimir@codesourcery.com>
3370 * breakpoint.h (struct breakpoint): Move the cond
3372 (struct bp_location): Here.
3373 * breakpoint.c (condition_command, bpstat_stop_status)
3374 (print_one_breakpoint, allocate_bp_location)
3375 (solib_load_unload_1, create_fork_vfork_event_catchpoint)
3376 (create_exec_event_catchpoint, create_breakpoints)
3377 (break_command_1, watch_command_1, handle_gnu_v3_exceptions)
3378 (create_ada_exception_breakpoint, set_breakpoint_sal)
3379 (delete_breakpoint, breakpoint_re_set_one): Adjust.
3380 * tui/tui-winsource.c (tui_update_breakpoint_info): Adjust.
3382 2007-09-22 Vladimir Prus <vladimir@codesourcery.com>
3384 Associate bp_stat with bp_location, not breakpoint.
3385 * breakpoint.h (breakpoint_at): Change type
3387 * breakpoint.c (bpstat_alloc): Take bp_location,
3389 (bpstat_find_breakpoint): Look at bpstat's location's
3390 owner, not at bpstat->breakpoint_at.
3391 (bpstat_find_step_resume_breakpoint): Likewise.
3392 (bpstat_num): Likewise.
3393 (print_it_typical): Likewise.
3394 (print_bp_stop_message): Likewise.
3395 (watchpoint_check): Likewise.
3396 (bpstat_what): Likewise.
3397 (bpstat_get_triggered_catchpoints): Likewise.
3398 (breakpoint_auto_delete): Likewise.
3399 (delete_breakpoint): Likewise.
3400 (bpstat_stop_status): Pass location, not breakpoint,
3401 to bpstat_alloc. Look at bpstat's location's
3402 owner, not at bpstat->breakpoint_at.
3404 2007-09-21 Jim Blandy <jimb@codesourcery.com>
3406 * macrotab.h (new_macro_table): Document that removing information
3407 from an obstack/bcache-managed macro table leaks memory.
3408 * macrotab.c (macro_free, macro_bcache_free): Instead of asserting
3409 that data is never freed in obstack/bcache-managed macro tables,
3410 just leak the storage.
3411 (macro_undef): If we're undefining a macro at exactly the same
3412 source location that we defined it, simply remove the definition
3415 2007-09-21 Joel Brobecker <brobecker@adacore.com>
3417 * symfile.h (struct sym_fns): Add new field sym_read_linetable.
3418 * coffread.c, dbxread.c, elfread.c, mipsread.c somread.c:
3419 Adjust the struct sym_fns object accordingly by setting
3420 the new field to NULL.
3421 * xcoffread.c (aix_process_linenos): Make static.
3422 (xcoff_sym_fns): Set new field to aix_process_linenos.
3423 * buildsym.c (end_symtab): Replace call to PROCESS_LINENUMBER_HOOK
3424 by call to new the new sym_fns sym_read_linetable function.
3425 * config/powerpc/aix.mt (DEPRECATED_TM_FILE): Delete.
3426 * config/rs6000/tm-rs6000.h: Delete.
3428 2007-09-21 David Ung <davidu@mips.com>
3429 Maciej W. Rozycki <macro@mips.com>
3431 * mips-tdep.c (mips_n32n64_push_dummy_call): Per N32/N64 ABI
3432 rules do not treat composite types specially.
3434 2007-09-20 Maciej W. Rozycki <macro@mips.com>
3436 * mips-tdep.c (mips32_in_function_epilogue_p): New function.
3437 (mips16_in_function_epilogue_p): Likewise.
3438 (mips_in_function_epilogue_p): Likewise.
3439 (mips_gdbarch_init): Register mips_in_function_epilogue_p().
3441 2007-09-19 Joel Brobecker <brobecker@adacore.com>
3443 * configure.ac: Add check for "etext".
3444 * configure, config.in: Regenerate.
3445 * maint.c (TEXTEND): Only define if either _etext or etext
3447 Disable the profiling functionality if TEXTEND is not defined.
3449 2007-09-19 Daniel Jacobowitz <dan@codesourcery.com>
3451 * mips-tdep.c (mips_stub_frame_cache): Correct the saved return
3452 address register. Correct the call to frame_id_build.
3453 (mips_stub_frame_sniffer): Use the stub unwinder when the PC
3456 2007-09-18 Joel Brobecker <brobecker@adacore.com>
3458 * ia64-tdep.c (refine_prologue_limit): Make sure we don't scan
3459 the linetable past the function end.
3461 2007-09-18 James E. Wilson <wilson@specifix.com>
3463 * MAINTAINERS: Update my email address.
3465 2007-09-18 Jerome Guitton <guitton@adacore.com>
3467 * inf-ttrace.c (inf_ttrace_private_thread_info): New structure type.
3468 (inf_ttrace_delete_dying_threads_callback): New function.
3469 (inf_ttrace_resume): After resuming the execution, iterate over
3470 the dying threads to delete them for the thread list.
3471 (inf_ttrace_wait): on TTEVT_LWP_EXIT and TTEVT_LWP_TERMINATE,
3472 mark the corresponding thread as dying instead of removing it
3473 from the thread list.
3474 (inf_ttrace_thread_alive): return 0 for dying threads.
3476 2007-09-17 Joel Brobecker <brobecker@adacore.com>
3478 * infrun.c (insert_step_resume_breakpoint_at_frame): Add assertion
3479 that return_frame is not null.
3481 2007-09-17 Joel Brobecker <brobecker@adacore.com>
3483 * solib-svr4.c: Add include of "auxv.h".
3484 (enable_break): Use the AT_BASE auxiliary entry if available.
3485 * Makefile.in (solib-svr4.o): Update dependencies.
3487 2007-09-17 Joel Brobecker <brobecker@adacore.com>
3489 * NEWS: Create a new section for the next release branch.
3490 Rename the section of the current branch, now that it has
3493 2007-09-17 Jerome Guitton <guitton@adacore.com>
3495 * dwarf2loc.c (dwarf_expr_frame_base): Guard against NULL.
3496 * Makefile.in (dwarf2loc.o): Depend on gdb_assert.h.
3498 2007-09-16 Vladimir Prus <vladimir@codesourcery.com>
3500 * mi/mi-cmds.c (mi_cmds): Register -list-features.
3501 * mi/mi-cmds.h (mi_cmd_list_features): New.
3502 * mi/mi-main.c (mi_cmd_list_features): New.
3504 2007-09-11 Joel Brobecker <brobecker@adacore.com>
3506 GDB 6.7 branch created (branch timestamp: 2007-09-07 14:00 UTC)
3507 * version.in: Bump version to 6.7.50-20070911-cvs.
3509 2007-09-10 Daniel Jacobowitz <dan@codesourcery.com>
3511 * thread.c (free_thread): Do not delete the step resume breakpoint
3514 2007-09-10 Daniel Jacobowitz <dan@codesourcery.com>
3516 * arch-utils.c (gdbarch_info_fill): Also try core_bfd.
3517 * corelow.c (core_read_description): New.
3518 (init_core_ops): Set to_read_description.
3519 * gdbarch.sh: Add gdbarch_core_read_description.
3520 * mips-linux-tdep.c (mips_linux_core_read_description): New.
3521 (mips_linux_init_abi): Call set_gdbarch_core_read_description.
3522 * mips-tdep.c (mips_tdesc_gp32, mips_tdesc_gp64): New.
3523 (mips_register_g_packet_guesses): Use them.
3524 (_initialize_mips_tdep): Initialize them.
3525 * mips-tdep.h (mips_tdesc_gp32, mips_tdesc_gp64): Declare.
3526 * gdbarch.h, gdbarch.c: Regenerated.
3528 2007-09-10 Ulrich Weigand <uweigand@de.ibm.com>
3530 * infrun.c (stepping_past_breakpoint): New global variable.
3531 (stepping_past_breakpoint_ptid): Likewise.
3532 (prepare_to_proceed): Add STEP parameter. Do not check for Ctrl-C.
3533 Only switch threads if we need to single-step over a breakpoint hit
3534 in the previously selected thread. If stepping, remember previous
3535 thread to switch back to in STEPPING_PAST_BREAKPOINT[_PTID]. Call
3536 switch_to_thread instead of copying its contents.
3537 (proceed): Pass STEP to prepare_to_proceed. Always set ONEPROC if
3538 prepare_to_proceed returns true.
3539 (init_wait_for_inferior): Reset STEPPING_PAST_BREAKPOINT.
3540 (context_switch): Call switch_to_thread.
3541 (handle_inferior_event): Switch back to previous thread if requested
3542 in STEPPING_PAST_BREAKPOINT[_PTID] by prepare_to_proceed.
3543 * gdbthread.h (switch_to_thread): Add prototype.
3544 * thread.c (switch_to_thread): Make global.
3546 2007-09-07 Pierre Muller <muller@ics.u-strasbg.fr>
3548 * p-valprint.c: Fix 7 ARI reported problems.
3549 (pascal_val_print): Fix one operator at end of line issue.
3550 Use paddress function to remove use of
3551 deprecated_print_address_numeric function (2 times).
3552 Use SYMBOL_LINKAGE_NAME instead of DEPRECATED_SYMBOL_NAME.
3553 (pascal_value_print): Fix 3 operator at end of line issues.
3555 2007-09-07 Daniel Jacobowitz <dan@codesourcery.com>
3558 * arm-tdep.c (arm_in_call_stub): Delete.
3559 (arm_skip_stub): Handle from_arm and from_thumb stubs.
3561 2007-09-06 Daniel Jacobowitz <dan@codesourcery.com>
3563 * ppc-sysv-tdep.c (do_ppc_sysv_return_value): Handle other integer
3566 2007-09-04 Daniel Jacobowitz <dan@codesourcery.com>
3567 Jim Blandy <jimb@codesourcery.com>
3569 * NEWS: Update description of string changes. Mention print/s.
3570 * c-valprint.c (textual_element_type): New.
3571 (c_val_print): Use it. Do not skip address printing for pointers
3572 with a string format.
3573 (c_value_print): Doc update.
3574 * dwarf2read.c (read_array_type): Use make_vector_type.
3575 * gdbtypes.c (make_vector_type): New.
3576 (init_vector_type): Use it.
3577 (gdbtypes_post_init): Initialize builtin_true_unsigned_char.
3578 (_initialize_gdbtypes): Mark int8_t and uint8_t as TYPE_FLAG_NOTTEXT.
3579 * gdbtypes.h (struct builtin_type): Add builtin_true_unsigned_char.
3580 (TYPE_FLAG_NOTTEXT, TYPE_NOTTEXT): New.
3581 (make_vector_type): New.
3582 * printcmd.c (print_formatted): Only handle 's' and 'i' for examine.
3583 Call the language print routine for string format.
3584 (print_scalar_formatted): Call val_print for string format. Handle
3585 unsigned original types for char format.
3586 (validate_format): Do not reject string format.
3587 * stabsread.c (read_type): Use make_vector_type.
3588 * xml-tdesc.c (tdesc_start_vector): Use init_vector_type.
3590 2007-09-04 Michael Snyder <msnyder@access-company.com>
3592 * expprint.c (print_subexp_standard): Check strchr for null.
3593 * Makefile.in (expprint.o): Depend on gdb_assert.h.
3595 * gnu-v2-abi.c (gnuv2_value_rtti_type): Guard against null.
3597 * stabsread.c (patch_block_status): Guard against null.
3598 * Makefile.in (stabsread.o): Depend on gdb_assert.h.
3600 2007-09-04 Daniel Jacobowitz <dan@codesourcery.com>
3602 * printcmd.c (printf_command): Handle ptr_arg. Correct typo
3603 in internal error message.
3605 2007-09-04 Pedro Alves <pedro_alves@portugalmail.pt>
3606 Daniel Jacobowitz <dan@codesourcery.com>
3608 * infcmd.c (post_create_inferior): Update comment.
3609 (run_command_1): Always call post_create_inferior with 0 as
3612 * i386-cygwin-tdep.h: New.
3613 * i386-cygwin-tdep.c: Include "i386-cygwin-tdep.h".
3614 (win32_xfer_shared_library): Make it extern.
3616 * win32-nat.c: Include gdb_obstack.h and xml-support.h and
3618 (win32_so_ops): Delete.
3619 (get_relocated_section_addrs): Delete.
3620 (solib_symbols_add): Delete.
3621 (register_loaded_dll): Delete.
3622 (win32_make_so): New.
3623 (handle_load_dll): Use win32_make_so.
3624 (win32_free_so): Free the passed in so.
3625 (win32_relocate_section_addresses): Delete.
3626 (win32_solib_create_inferior_hook): Delete.
3627 (handle_unload_dll): Don't add PE offset here. Free so with
3628 win32_free_so instead of free_so.
3629 (win32_special_symbol_handling): Delete.
3630 (get_win32_debug_event): Remove unneeded calls. Set state to
3631 TARGET_WAITKIND_LOADED on a dll unload.
3632 (do_initial_win32_stuff): Clear cygwin_load_start and
3634 (map_code_section_args): Delete.
3635 (dll_code_sections_add): Delete.
3636 (core_section_load_dll_symbols): Delete.
3637 (win32_xfer_shared_libraries): New.
3638 (win32_current_sos): Delete.
3639 (win32_xfer_partial): New.
3640 (open_symbol_file_object): Delete.
3641 (in_dynsym_resolve_code): Delete.
3642 (init_win32_ops): Set win32_xfer_partial as to_xfer_partial member
3643 of win32_ops. Remove win32_so_ops settings. Don't set
3644 current_target_so_ops here.
3646 * Makefile.in (i386_cygwin_tdep_h): New variable.
3647 (i386-cygwin-tdep.o): Update dependencies.
3648 (win32-nat.o): Update dependencies.
3650 2007-09-04 Pedro Alves <pedro_alves@portugalmail.pt>
3651 Daniel Jacobowitz <dan@codesourcery.com>
3653 * gdbarch.sh (core_xfer_shared_libraries): New.
3655 * corelow.c (core_xfer_partial): Handle TARGET_OBJECT_LIBRARIES.
3657 * gdb_obstack.h (obstack_grow_str, obstack_grow_str0): New.
3659 * xml-support.c (gdb_xml_parse): Debug output tweaks.
3660 (xml_escape_text): New.
3661 * xml-support.h (xml_escape_text): Declare.
3663 * config/i386/cygwin.mh (NATDEPFILES): Move corelow.o to ...
3664 * config/i386/cygwin.mt (TDEPFILES): ... here.
3666 * win32-nat.c: (fetch_elf_core_registers): Delete.
3667 (win32_elf_core_fn): Delete.
3668 (_initialize_core_win32): Delete.
3670 * i386-cygwin-tdep.c: Include "regset.h", "gdb_objstack.h",
3671 "xml-support.h" and "gdbcore.h".
3672 (i386_win32_gregset_reg_offset): New.
3673 (I386_WIN32_SIZEOF_GREGSET): New.
3674 (i386_win32_regset_from_core_section): New.
3675 (win32_xfer_shared_library): New.
3676 (struct cpms_data): New.
3677 (core_process_module_section): New.
3678 (win32_core_xfer_shared_libraries): New.
3679 (i386_cygwin_skip_trampoline_code): Register gregset_reg_offset,
3680 gregset_num_regs, sizeof_gregset members of tdep. Register
3681 regset_from_core_section and core_xfer_shared_libraries callbacks.
3683 * Makefile.in (i386-cygwin-tdep.o): Update dependencies.
3684 * gdbarch.h, gdbarch.c: Regenerate.
3686 2007-09-03 Daniel Jacobowitz <dan@codesourcery.com>
3688 * corelow.c (core_xfer_partial): Pass writebuf to
3689 deprecated_xfer_memory in TARGET_OBJECT_MEMORY write case.
3691 2007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
3693 * arm-tdep.h (arm_skip_stub): Declare.
3694 * arm-wince-tdep.c: Don't include "solib-svr4.h". Include
3696 (arm_pe_skip_trampoline_code): New function.
3697 (arm_wince_init_abi): Register arm_pe_skip_trampoline_code as
3698 gdbarch_skip_trampoline_code callback.
3699 * Makefile.in (arm-wince-tdep.o): Update dependencies.
3701 2007-09-03 Daniel Jacobowitz <dan@codesourcery.com>
3703 * MAINTAINERS: Move Fred Fish to Past Maintainers.
3705 2007-09-03 Daniel Jacobowitz <dan@codesourcery.com>
3707 * configure.ac: Add --with-expat.
3708 * configure: Regenerated.
3710 2007-09-03 Andreas Schwab <schwab@suse.de>
3712 * configure.ac: Accept --with-system-readline.
3713 (READLINE, READLINE_DEPS, READLINE_CFLAGS): Define and substitute.
3714 * configure: Regenerate.
3715 * Makefile.in (READLINE, READLINE_DEPS, READLINE_CFLAGS): Use
3717 (CDEPS): Use $(READLINE_DEPS) instead of $(READLINE).
3719 2007-09-03 Maxim Grigoriev <maxim2405@gmail.com>
3720 Daniel Jacobowitz <dan@codesourcery.com>
3722 * mi-main.c (mi_load_progress): Handle MI2 and MI3 interpreters.
3724 2007-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3726 * top.c (print_gdb_version): Fixed a string end-of-line compiler error.
3728 2007-09-02 Daniel Jacobowitz <dan@codesourcery.com>
3730 * top.c (print_gdb_version): Update for GPL version 3.
3732 2007-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3734 * NEWS: Mention the build-id .debug files verification.
3736 2007-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3738 * linux-nat.c (linux_nat_make_corefile_notes): Fixed a buffer overflow.
3740 2007-09-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3742 * Makefile.in (symfile.o): Update dependencies.
3743 * symfile.c (symbol_file_add_with_addrs_or_offsets): Initialize the
3744 DEBUGFILE variable. FIND_SEPARATE_DEBUG_FILE called only if !PSYMTABS.
3745 (struct build_id): New structure.
3746 (build_id_bfd_get, build_id_verify, build_id_to_debug_filename): New.
3747 (find_separate_debug_file): New variable BUILD_ID.
3748 Call BUILD_ID_BFD_GET with BUILD_ID_TO_DEBUG_FILENAME as the first try.
3750 2007-08-31 Vladimir Prus <vladimir@codesourcery.com>
3752 * varobj.c (struct varobj): Fix comment
3753 for the type member not to lie when it can be
3756 2007-08-31 Vladimir Prus <vladimir@codesourcery.com>
3758 Implement -var-info-path-expression.
3760 * mi/mi-cmds.h (mi_cmd_var_info_path_expression):
3762 * mi/mi-cmds.c (mi_cmds): Register var-info-path-expression.
3763 * mi/mi-cmd-var.c (mi_cmd_var_info_path_expression): New.
3764 * varobj.c (struct varobj): New field 'path_expr'.
3765 (c_path_expr_of_child, cplus_path_expr_of_child)
3766 (java_path_expr_of_child): New.
3767 (struct language_specific): New field path_expr_of_child.
3768 (varobj_create): Initialize the path_expr field.
3769 (varobj_get_path_expr): New.
3770 (new_variable): Initialize the path_expr field.
3771 (free_variable): Free the path_expr field.
3772 (adjust_value_for_children_access): New parameter
3774 (c_number_of_children): Adjust.
3775 (c_describe_child): New parameter CFULL_EXPRESSION.
3776 Compute full expression.
3777 (c_value_of_child, c_type_of_child): Adjust.
3778 (cplus_number_of_children): Adjust.
3779 (cplus_describe_child): New parameter CFULL_EXPRESSION.
3780 Compute full expression.
3781 (cplus_name_of_child, cplus_value_of_child)
3782 (cplus_type_of_child): Adjust.
3783 * varobj.h (varobj_get_path_expr): Declare.
3785 2007-08-31 Vladimir Prus <vladimir@codesourcery.com>
3787 * mi/mi-cmd-var.c (print_varobj): If a varobj
3788 type is NULL, don't try to print it.
3790 2007-08-30 Alan Modra <amodra@bigpond.net.au>
3792 * ppc-linux-nat.c (right_fill_reg): Delete.
3793 (supply_gregset): Use ppc_supply_gregset.
3794 (supply_fpregset): Use ppc_supply_fpregset.
3795 (fill_gregset): Use ppc_collect_gregset.
3796 (fill_fpregset): Use ppc_collect_fpregset.
3797 * ppc-linux-tdep.c (PPC_LINUX_PT_*): Don't define.
3798 (right_supply_register, ppc_linux_supply_gregset): Delete.
3799 (ppc32_linux_supply_gregset, ppc64_linux_supply_gregset): Delete.
3800 (ppc_linux_supply_fpregset): Delete.
3801 (ppc_linux_collect_gregset): New function.
3802 (ppc32_linux_reg_offsets, ppc64_linux_reg_offsets): New.
3803 (ppc32_linux_gregset, ppc64_linux_gregset): Update to use reg offsets,
3804 ppc_linux_supply_gregset, and ppc_collect_gregset.
3805 (ppc_linux_fpregset): Rename to ppc32_linux_fpregset and update.
3806 (ppc_linux_gregset, ppc_linux_fpregset): New functions.
3807 (ppc_linux_regset_from_core_section): Update.
3808 * ppc-tdep.h (ppc_linux_gregset, ppc_linux_fpregset): Declare.
3809 (ppc_linux_supply_gregset, ppc_linux_supply_fpregset): Delete.
3810 (struct ppc_reg_offsets): Add gpr_size, xr_size, fpscr_size fields.
3811 * ppcobsd-tdep.c (ppcobsd_supply_gregset): Delete FIXME and assert.
3812 (ppcobsd_collect_gregset): Likewise.
3813 (_initialize_ppcnbsd_tdep): Init gpr_size, xr_size, fpscr_size.
3814 * ppcnbsd-tdep.c (_initialize_ppcobsd_tdep): Likewise.
3815 * ppcobsd-nat.c (_initialize_ppcobsd_nat): Likewise.
3816 * rs6000-aix-tdep.c (rs6000_aix32_reg_offsets): Likewise.
3817 (rs6000_aix64_reg_offsets): Likewise.
3818 (rs6000_aix_supply_regset): Call ppc_supply_fpregset without testing
3819 ppc_floating_point_unit_p.
3820 (rs6000_aix_collect_regset): Similarly.
3821 * rs6000-tdep.c (ppc_supply_reg): Add regsize param. Adjust offset
3822 when regsize is larger than regcache register size.
3823 (ppc_collect_reg): Similarly zero pad when regsize is larger than
3824 regcache register size.
3825 (ppc_greg_offset): New function, split out from..
3826 (ppc_supply_gregset): ..here. Separate code handling all regs from
3827 single reg case. Correct xer offset.
3828 (ppc_fpreg_offset): New function, split out from..
3829 (ppc_supply_fpregset): ..here. Separate code handling all regs from
3831 (ppc_collect_gregset, ppc_collect_fpregset): Likewise.
3832 (ppc_supply_fpregset, ppc_collect_fpregset): Don't assert we have
3833 a fp unit, instead return if no fp.
3835 2007-08-29 Jim Blandy <jimb@codesourcery.com>
3837 * breakpoint.c (watch_command_1): Remove '#ifdef HPUXHPPA' block;
3838 this code has not been compiled for two years.
3840 2007-08-29 Michael Snyder <msnyder@access-company.com>
3842 * event-top.c (gdb_readline2): Return after EOF.
3844 2007-08-29 Joel Brobecker <brobecker@adacore.com>
3846 * symtab.c: Remove a function that has been commented out 3 years ago.
3848 2007-08-29 Randolph Chung <tausq@debian.org>
3850 * hppa-tdep.c (hppa32_cannot_fetch_register)
3851 (hppa64_cannot_fetch_register): New functions.
3852 (hppa_gdbarch_init): Set cannot_fetch_register appropriately.
3853 * hppa-tdep.h (hppa_regnum): Add HPPA_CR26_REGNUM.
3855 2007-08-28 Michael Snyder <msnyder@access-company.com>
3857 * mi/mi-cmd-var.c (mi_print_value_p): No longer necessary to
3858 check for null before calling check_typedef.
3860 * NEWS: Mention Coverity bug fixes.
3862 2007-08-27 Markus Deuling <deuling@de.ibm.com>
3864 * spu-tdep.c (spu_pointer_to_address): New function.
3865 (spu_integer_to_address): Likewise.
3866 (spu_gdbarch_init): Add spu_pointer_to_address and
3867 spu_integer_to_address to gdbarch.
3869 2007-08-26 Pedro Alves <pedro_alves@portugalmail.pt>
3871 * arm-wince-tdep.c (ARM_WINCE_JB_PC): Change to 10.
3873 2007-08-23 Joel Brobecker <brobecker@adacore.com>
3875 * Makefile.in (copying.c): Use the top-level COPYING3 as the file
3876 that contains the GDB license.
3877 * copying.awk: Adjust to the GPLv3 wording.
3878 * copying.c: Regenerate.
3880 2007-08-23 Joel Brobecker <brobecker@adacore.com>
3882 * copying.awk: Protoization, and i18n markup.
3884 2007-08-23 Joel Brobecker <brobecker@adacore.com>
3886 * config/djgpp/djconfig.sh: Switch license to GPLv3.
3887 * copyright.sh: Likewise.
3888 * gdb-events.sh: Likewise.
3889 * gdb_gcore.sh: Likewise.
3890 * gdb_mbuild.sh: Likewise.
3891 * gdbarch.sh: Likewise.
3892 * observer.sh: Likewise.
3893 * features/feature_to_c.sh: Likewise.
3894 * regformats/regdat.sh: Likewise.
3896 2007-08-23 Joel Brobecker <brobecker@adacore.com>
3898 Switch the license of all .c files to GPLv3.
3899 Switch the license of all .h files to GPLv3.
3900 Switch the license of all .cc files to GPLv3.
3902 2007-08-23 Joel Brobecker <brobecker@adacore.com>
3904 * configure.ac: Switch license to GPLv3.
3906 2007-08-22 Daniel Jacobowitz <dan@codesourcery.com>
3908 * mips-tdep.c (mips_gdbarch_init): Use Tag_GNU_MIPS_ABI_FP to
3909 determine the file's FPU type.
3911 2007-08-22 Daniel Jacobowitz <dan@codesourcery.com>
3913 * mips-tdep.c (mips_n32n64_fp_arg_chunk_p): New.
3914 (mips_n32n64_push_dummy_call): Always increment float_argreg along
3915 with argreg. Use mips_n32n64_fp_arg_chunk_p.
3917 2007-08-22 Daniel Jacobowitz <dan@codesourcery.com>
3919 * solib-svr4.c (scan_dyntag): Only read target memory when necessary.
3921 (elf_locate_base): Look for DT_MIPS_RLD_MAP first. Expand comments.
3922 (elf_lookup_lib_symbol): Fix formatting.
3924 2007-08-21 Michael Snyder <msnyder@access-company.com>
3926 * dbxread.c (read_dbx_symtab): Guard null deref.
3929 * valops.c (find_overload_match): Guard against NULL.
3931 2007-08-21 Daniel Jacobowitz <dan@codesourcery.com>
3933 * MAINTAINERS (Patch Champions): Remove self.
3935 2007-08-21 Chris Smith <chris.smith@st.com>
3937 * cli/cli-script.c (read_command_lines): Call dont_repeat for each
3940 2007-08-18 Michael Snyder <msnyder@access-company.com>
3942 * stabsread.c (dbx_lookup_type): Memory leak.
3944 * event-loop.c (delete_async_signal_handler): Move pointer null
3945 test to before pointer dereference.
3947 * ui-out.c (append_header_to_list): Possible cut and paste error.
3949 * MAINTAINERS: white space tweak.
3951 2007-08-17 Michael Snyder <msnyder@access-company.com>
3953 * stack.c (print_frame): Memory leak.
3955 * completer.c (filename_completer): Avoid memory leak.
3956 Remove unnecessary nested block.
3958 * c-exp.y (parse_number): Memory leak.
3960 * completer.c (location_completer): Must free 'fn_list', except
3961 in the one case where it is returned (as 'list').
3963 * varobj.c (value_of_root): Memory leak.
3965 * gdbtypes.h (virtual_base_list): Remove export decl.
3966 * gdbtypes.c (virtual_base_list): Make static. Not called outside.
3967 (virtual_base_index): Memory leak.
3968 (virtual_base_index_skip_primaries): Ditto.
3970 2007-08-17 Maxim Grigoriev <maxim2405@gmail.com>
3972 * xtensa-tdep.c (ARG_NOF, ARG_1ST, PS_WOE, PS_EXC, C0_MAXOPDS)
3973 (C0_NREGS, C0_CLESV, C0_SP, C0_FP, C0_RA, C0_ARGS, C0_NARGS)
3974 (C0_CONST, C0_INEXP, C0_NOSTK): New macros.
3975 (xtensa_read_register): New function.
3976 (xtensa_windowed_frame_cache, xtensa_call0_frame_cache, xtensa_c0reg)
3977 (xtensa_insn_kind): New types.
3978 (xtensa_frame_cache, xtensa_alloc_frame_cache, xtensa_frame_cache)
3979 (xtensa_frame_prev_register, xtensa_return_value, xtensa_skip_prologue)
3980 (xtensa_verify_config, xtensa_pseudo_register_read)
3981 (xtensa_pseudo_register_write, xtensa_extract_return_value)
3982 (xtensa_store_return_value)
3983 (xtensa_push_dummy_call): Extended to support Xtensa Call0 ABI.
3984 (windowing_enabled, extract_call_winsize, xtensa_unwind_dummy_id)
3985 (xtensa_frame_this_id, xtensa_frame_prev_register)
3986 (xtensa_register_type, xtensa_reg_to_regnum): Cosmetic changes.
3987 (call0_frame_cache, call0_frame_get_reg_at_entry)
3988 (call0_classify_opcode, call0_track_op)
3989 (call0_analyze_prologue, call0_frame_cache): New functions.
3991 2007-08-17 Vladimir Prus <vladimir@codesourcery.com>
3993 * breakpoint.c (bpstat_free): New.
3994 (bpstat_clear): Use bpstat_free.
3995 (delete_breakpoint): Document why we cannot
3996 remove bpstats from stop_bpstat.
3997 * breakpoint.h (bpstat_free): Declare.
3999 2007-08-16 Michael Snyder <msnyder@access-company.com>
4001 * event-loop.c (gdb_wait_for_event): Move statement into "if" block.
4003 2007-08-15 Paul Hilfinger <hilfinger@adacore.com>
4004 Joel Brobecker <brobecker@adacore.com>
4006 * ada-lang.c (resolve_subexp): Correct arity of binary operators.
4008 2007-08-15 Paul Hilfinger <hilfinger@adacore.com>
4009 Joel Brobecker <brobecker@adacore.com>
4011 * ada-lang.c (possible_user_operator_p): Alternative fix to last
4012 checkin guarding against NULL.
4014 2007-08-14 Michael Snyder <msnyder@access-company.com>
4016 * tui-command.c, tui-data.c, tui-disasm.c, tui-file.c, tui-io.c,
4017 tui-layout.c, tui-regs.c, tui-source.c, tui-win.c, tui-windata.c,
4018 tui-wingeneral.c, tui-winsource.c: Coding standard, && and ||
4019 go at beginning of new line.
4021 * tui-data.c, tui-data.h, tui-disasm.c, tui-disasm.h, tui-hooks.c,
4022 tui-io.c, tui-layout.c, tui-layout.h, tui-out.c, tui-regs.c,
4023 tui-source.c, tui-source.h, tui-stack.c, tui-win.c, tui-win.h,
4024 tui-windata.c, tui-windata.h, tui-wingeneral.c, tui-winsource.c,
4025 tui-winsource.h, tui.c, tui.h: Function declarations and
4026 definitions, wrap long lines.
4028 * tui-command.c, tui-data.c, tui-disasm.c, tui-layout.c,
4029 tui-regs.c, tui-win.c, tui-windata.c, tui-winsource.c, tui.c:
4030 Reformat block comments to GNU standard.
4032 * tui-command.c, tui-data.c, tui-data.h, tui-disasm.c, tui-file.c,
4033 tui-hooks.c, tui-interp.c, tui-io.c, tui-layout.c, tui-out.c,
4034 tui-regs.c, tui-regs.h, tui-source.c, tui-stack.c, tui-win.c,
4035 tui-windata.c, tui-wingeneral.c, tui-winsource.c, tui-winsource.h,
4036 tui.c, tui.h: Comment reformatting to coding standard (capitals,
4037 spaces after periods, etc).
4039 * tui-data.c, tui-data.h, tui-disasm.c, tui-hooks.c, tui-layout.c,
4040 tui-regs.c, tui-source.c, tui-stack.c, tui-win.c, tui-windata.c,
4041 tui-wingeneral.c, tui-wingeneral.h, tui-winsource.c, tui.c,
4042 tui-winsource.h: Whitespace changes, fix pointer declarations
4045 2007-08-14 Joel Brobecker <brobecker@adacore.com>
4046 Michael Snyder <msnyder@access-company.com>
4048 * ada-lang.c (field_alignment): Guard against NULL.
4050 2007-08-14 Joel Brobecker <brobecker@adacore.com>
4052 * MAINTAINERS (Global Maintainers): Add self.
4054 2007-08-14 Michael Snyder <msnyder@access-company.com>
4056 * mi/mi-interp.c (mi_cmd_interpreter_exec): Dead code, dead variable.
4058 * ada-lang.c (possible_user_operator_p): Guard against NULL.
4060 * varobj.c (cplus_describe_child): Guard against null.
4061 Use "NULL" instead of "0" to initialize pointers.
4063 2007-08-14 Daniel Jacobowitz <dan@codesourcery.com>
4065 * arm-tdep.c (arm_gdbarch_init): Allow unknown ABI and FPU settings
4066 to match any gdbarch with matching OSABI. Set default ABI and FPU
4067 after running the OSABI handler.
4069 2007-08-14 Daniel Jacobowitz <dan@codesourcery.com>
4071 * config/i386/linux.mh (NATDEPFILES): Move corelow.o from here...
4072 * config/i386/linux.mt (TDEPFILES): ...to here.
4074 2007-08-14 Vladimir Prus <vladimir@codesourcery.com>
4076 * breakpoint.c (disable_breakpoints_in_shlibs): Remove
4077 the 'silent' parameter and code to implement that.
4078 * breakpoint.h (disable_breakpoints_in_shlibs): Adjust
4080 * win32-nat.c: Adjust.
4083 2007-08-14 Vladimir Prus <vladimir@codesourcery.com>
4085 * breakpoint.c (update_breakpoints_after_exec): Don't
4086 set address to zero.
4088 2007-08-13 Michael Snyder <msnyder@access-company.com>
4090 * valops.c: Whitespace clean-up.
4092 * tui/tui-winsource.c (tui_alloc_source_buffer): Clean up allocation.
4094 * event-top.c (command_line_handler): Memory leak.
4096 * mi/mi-cmd-var.c (mi_cmd_var_set_format): Memory leak.
4097 No need to make copy.
4099 * source.c (find_source_lines): Require symtab 's'.
4101 2007-08-11 Michael Snyder <msnyder@access-company.com>
4103 * completer.c: Spelling fix in comments.
4105 2007-08-10 Michael Snyder <msnyder@access-company.com>
4107 * gdbtypes.c: Coding standard cleanup.
4108 * gdbtypes.c: Comment/whitespace cleanup.
4110 * stabsread.c (read_huge_number): Attempt to compute value before
4111 values that it depends on.
4113 * linespec.c (decode_dollar): Dead code, ptr can't be non-null.
4114 (decode_objc): Use "NULL" instead of 0.
4115 (find_method): Ditto.
4116 (decode_all_digits): Ditto.
4117 (decode_dollar): Ditto.
4119 * mi/mi-main.c (mi_cmd_data_evaluate_expression): Resource leak.
4121 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Memory leak.
4123 * solib-svr4.c (enable_break): Don't free tmp_pathname until
4126 * completer.c: Comment/whitespace cleanup.
4128 2007-08-10 Joel Brobecker <brobecker@adacore.com>
4130 * Makefile.in (i386nbsd-nat.o): Add missing dependency.
4132 2007-08-10 Maxim Grigoriev <maxim2405@gmail.com>
4134 * remote-fileio.c (remote_fileio_resize_fd_map): Initialize newly
4135 allocated file descriptors.
4137 2007-08-10 Joel Brobecker <brobecker@adacore.com>
4139 * Makefile.in: Minor cleanup throughout; add some missing variables,
4140 add some missing rules, remove some rules that are no longer needed,
4141 and fix the dependencies in several rules.
4143 2007-08-10 Ludovic Courtès <ludo@gnu.org>
4145 * Makefile.in (SFILES): Add scm-{exp,lang,valprint}.c.
4146 (scm_lang_h, scm_tags_h): New.
4147 (COMMON_OBS): Add scm-{exp,lang,valprint}.o.
4148 (scm-exp.o, scm-lang.o, scm-valprint.o): New targets.
4149 * defs.h (enum language): Add `language_scm'.
4151 * MAINTAINERS: Add Emacs local variables to use UTF-8 upon
4154 2007-08-09 Ludovic Courtès <ludo@gnu.org>
4156 * MAINTAINERS (Write After Approval): Add myself.
4158 2007-08-09 Michael Snyder <msnyder@access-company.com>
4160 * solib.c (solib_open): Memory leak -- openp returns xmalloc buffer.
4162 2007-08-09 Joel Brobecker <brobecker@adacore.com>
4164 * solib-som.c (som_relocate_section_addresses): Stop saving
4165 the $CODE$ section in the so_list structure.
4167 2007-08-08 Maxim Grigoriev <maxim2405@gmail.com>
4169 * xtensa-tdep.h (XTENSA_MAX_COPROCESSOR): New.
4170 (xtensa_register_group_t): Add entries for coprocessors.
4171 * xtensa-tdep.c (xtensa_init_reggroups): New register groups.
4172 (xtensa_add_reggroups): Likewise.
4173 (xtensa_register_reggroup_p): Likewise.
4174 (xtensa_coprocessor_register_group): New function.
4177 2007-08-08 Jan Kratochvil <jan.kratochvil@redhat.com>
4179 * serial.c (serial_open): Fix the OPEN parameter macro expansion.
4181 2007-08-08 Michael Snyder <msnyder@access-company.com>
4183 * target.c (target_read_string): Guard against null.
4185 * varobj.c (value_of_root): Move alloc after return to avoid leak.
4187 * tui/tui-layout.c (tui_set_layout): Dead code, dead variable.
4188 (tui_set_layout_for_display_command): Mem leak.
4190 * top.c (command_line_input): Memory leak.
4192 * solib-svr4.c (open_symbol_file_object): Memory leak.
4193 (svr4_current_sos): Ditto.
4194 (enable_break): Ditto.
4196 * cp-valprint.c (cp_print_hpacc_virtual_table_entries): Memory leak.
4198 * dwarf2read.c (add_partial_symbol): Memory leak.
4200 2007-08-06 Michael Snyder <msnyder@access-company.com>
4202 * ada-lang.c (desc_bounds): Comparison of function address to NULL.
4204 2007-08-05 Jim Blandy <jimb@codesourcery.com>
4206 * macroexp.c (init_buffer): Remove testing code that overrides the
4207 caller's length guess.
4208 (gather_arguments): Use a larger initial size, now that the vector
4209 growth code has been exercised.
4211 2007-08-05 Pedro Alves <pedro_alves@portugalmail.pt>
4213 * solib-target.c (solib_target_relocate_section_addresses): Add
4214 orig_delta to addr_high.
4216 2007-08-04 Michael Snyder <msnyder@access-company.com>
4218 * remote-fileio.c (remote_fileio_func_write): Memory leak.
4220 * breakpoint.c (print_one_breakpoint): Off by one error.
4222 * tracepoint.c (add_register): Off by one error.
4223 (stringify_collection_list): Free malloc buffer.
4225 2007-08-03 Michael Snyder <msnyder@access-company.com>
4227 * mi-cmd-var.c (mi_cmd_var_delete): Remove unused variable,
4228 stop memory leak, straighten out cleanups.
4230 * jv-lang.c (java_link_class_type): Guard against NULL.
4232 2007-08-02 Michael Snyder <msnyder@access-company.com>
4234 * gdbtypes.c (create_set_type): Test should only be done within
4235 the preceeding if block. Otherwise, variable is uninitialized.
4237 * gdbtypes.c (check_typedef): Guard NULL.
4239 2007-08-01 Michael Snyder <msnyder@access-company.com>
4241 * cli/cli-decode.c (lookup_cmd): Check for null earlier, to
4242 avoid dereference in lookup_cmd_1.
4244 * tui/tui-data.c (tui_alloc_content): Move assign out of if,
4245 clean up long lines.
4246 (tui_alloc_generic_win_info): Tidy by using XMALLOC macro.
4247 (tui_alloc_win_info): Ditto.
4248 (tui_add_content_elements): Ditto.
4249 * tui/tui-file.c (tui_file_magic): Ditto.
4251 2007-07-31 Michael Snyder <msnyder@access-company.com>
4253 * breakpoint.c (breakpoint_init_inferior): Add 'else' to 'if'.
4254 True and false paths are mutually exclusive.
4256 * event-top.c (command_line_handler): Add pedantic return.
4258 * f-valprint.c (info_common_command): Bail out to prevent null
4259 pointer deref. Break up a long line.
4261 * exec.c (xfer_memory): Remove redundant condition from 'if'.
4263 * symfile.c (reread_separate_symbols): Free xmalloced memory.
4265 * printcmd.c (build_address_symbolic): Remove dead code and dead
4268 2007-07-31 Daniel Jacobowitz <dan@codesourcery.com>
4270 * linespec.c (minsym_found): Advance to the next line if possible.
4272 2007-07-31 Pedro Alves <pedro_alves@portugalmail.pt>
4274 * arm-wince-tdep.c (arm_wince_init_abi): Remove svr4 related call.
4275 * config/arm/wince.mt (TDEPFILES): Remove solib-legacy.o and
4276 solib-svr4.o, and add solib-target.o
4278 2007-07-27 Michael Snyder <msnyder@access-company.com>
4280 * tui/tui-data.c (tui_alloc_generic_win_info): Wrong arg for sizeof.
4282 2007-07-26 Maciej W. Rozycki <macro@linux-mips.org>
4284 * MAINTAINERS (Write After Approval): Add myself.
4286 2007-07-26 Maciej W. Rozycki <macro@mips.com>
4288 * Makefile.in (MAKEHTMLFLAGS): Also search the current directory
4291 2007-07-25 Maciej W. Rozycki <macro@mips.com>
4293 * Makefile.in (MAKEHTMLFLAGS): Remove "-glossary".
4295 2007-07-24 Michael Snyder <msnyder@access-company.com>
4297 * solib-svr4.c (svr4_fetch_objfile_link_map): Null pointer check of
4298 'buffer' must cover both branches that call strcmp (Coverity).
4300 * stack.c (print_frame_args): Check return value of lookup_symbol.
4302 * ax-gdb.c (find_field): Guard against null ptr.
4304 2007-07-24 Ulrich Weigand <uweigand@de.ibm.com>
4306 * regformats/reg-spu.dat: Fix order of npc, id registers.
4308 2007-07-24 Ulrich Weigand <uweigand@de.ibm.com>
4310 * target.c (memory_xfer_partial): Accesses to unmapped overlay
4311 sections should always go to the executable file.
4313 2004-07-20 Chris Dearman <chris@mips.com>
4315 * mips-tdep.c (heuristic_proc_start): Add more MIPS16 function
4316 prologue instructions.
4318 2007-07-20 Maciej W. Rozycki <macro@mips.com>
4320 * mips-tdep.c (mips_next_pc): Use is_mips16_addr() instead of
4323 2007-07-20 Chris Dearman <chris@mips.com>
4324 Maciej W. Rozycki <macro@mips.com>
4326 * mips-tdep.c (fetch_mips_16): Fix typos and reformat the
4329 2007-07-17 Pedro Alves <pedro_alves@portugalmail.pt>
4330 Daniel Jacobowitz <dan@codesourcery.com>
4332 * config/i386/cygwin.mt (TDEPFILES): Add solib-target.o.
4333 * coff-pe-read.c (read_pe_exported_syms): Delete verbose
4335 * NEWS: Mention gdbserver DLL support.
4337 2007-07-17 Daniel Jacobowitz <dan@codesourcery.com>
4339 * dwarf2read.c (dwarf_decode_lines): Detect address size mismatches.
4341 2007-07-16 H.J. Lu <hongjiu.lu@intel.com>
4343 * i386-linux-nat.c (fetch_regs): Work around gcc 3.4 alias
4346 2007-07-13 Kevin Buettner <kevinb@redhat.com>
4348 * mep-tdep.c (mep_analyze_prologue): Update comment for BRA
4351 2007-07-12 Kevin Buettner <kevinb@redhat.com>
4353 * mep-tdep.c (IS_BRA, BRA_DISP): New macros.
4354 (mep_analyze_prologue): Add case for BRA instruction.
4356 2007-07-12 Ulrich Weigand <uweigand@de.ibm.com>
4358 * solib-svr4.c (LM_ADDR_CHECK): Relax prelink recognition heuristic.
4360 2007-07-10 Nick Roberts <nickrob@snap.net.nz>
4362 * breakpoint.c: Include "top.h".
4363 (breakpoint_1): Don't set convenience variable $_ if server prefix
4365 (_initialize_breakpoint): Describe this behaviour in command help.
4367 2007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
4369 * solib-target.c (library_list_start_segment): Cast address to
4372 2007-07-06 Mark Kettenis <kettenis@gnu.org>
4374 * bsd-uthread.c (bsd_uthread_wait): Don't try to fetch thread IDs
4375 for terminated processes.
4377 2007-07-05 Michael Snyder <msnyder@access-company.com>
4379 * event-top.c (cli_command_loop): Prompt string can (and should)
4380 be freed after call to readline (Coverity). Also move local var
4381 declarations into block where they are used.
4383 * tui/tui-interp.c (tui_command_loop): Prompt string can (and
4384 should) be freed after call to readline (Coverity). Also move
4385 local var declarations into block where they are used.
4387 2007-07-03 Andreas Schwab <schwab@suse.de>
4389 * linux-nat.c (linux_nat_info_proc_cmd): Fix parsing of columns in
4392 2007-07-03 Paul Gilliam <pgilliam@us.ibm.com>
4393 Thiago Bauermann <bauerman@br.ibm.com>
4394 Joseph S. Myers <joseph@codesourcery.com>
4395 Daniel Jacobowitz <dan@codesourcery.com>
4397 * remote.c (remote_check_symbols): Use
4398 gdbarch_convert_from_func_ptr_addr.
4399 * infcall.c (find_function_addr): Handle function descriptors
4400 without debugging information.
4401 * ppc-linux-tdep.c (ppc_linux_convert_from_func_ptr_addr): Renamed
4402 from ppc64_linux_convert_from_func_ptr_addr. Handle -msecure-plt.
4403 (ppc_linux_init_abi): Always set convert_from_func_ptr_addr.
4404 * solib-svr4.c (solib_break_names): Remove "._dl_debug_state".
4405 (bfd_lookup_symbol): Do not take a SECT_FLAGS argument. Always
4406 allow SEC_CODE and SEC_DATA.
4407 (enable_break): Update calls. Pass current_target to solib_add.
4408 Use gdbarch_convert_from_func_ptr_addr.
4410 2007-07-03 Ilko Iliev <iliev@ronetix.at>
4411 Daniel Jacobowitz <dan@codesourcery.com>
4413 * symfile.c (print_transfer_performance): Avoid integer overflow.
4416 2007-07-03 Markus Deuling <deuling@de.ibm.com>
4418 * cp-namespace.c (lookup_symbol_file): Add block to
4419 lookup_symbol_global call.
4420 * Makefile.in (solist_h): Add dependency on symtab header.
4421 (symtab.o): Add dependency on solist header.
4422 * solib.c (solib_global_lookup): New function.
4423 * solib-svr4.c (scan_dyntag): Likewise.
4424 (elf_locate_base): Call helper routine scan_dyntag.
4425 (elf_lookup_lib_symbol): New function.
4426 (_initialize_svr4_solib): Add elf_lookup_lib_symbol to svr4_so_ops.
4427 * solist.h (symtab.h): New include.
4428 (struct target_so_ops): New member lookup_lib_global_symbol.
4429 (solib_global_lookup): New prototype.
4430 * symtab.c: New include solist.h.
4431 (lookup_objfile_from_block): New function.
4432 (lookup_global_symbol_from_objfile): New function.
4433 (basic_lookup_symbol_nonlocal): Add block to lookup_symbol_global call.
4434 (lookup_symbol_global): Call library-specific lookup procedure.
4435 * symtab.h (lookup_global_symbol_from_objfile): New prototype.
4437 * NEWS: Document framework.
4439 2007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
4441 * target-descriptions.c (tdesc_create_reg): Do not set reg->type
4444 * cli/cli-script.c (build_command_line): Update NULL check.
4446 2007-07-02 Michael Snyder <msnyder@access-company.com>
4448 * p-exp.y (yylex): Memory leak, 'uptokstart' must be freed (Coverity).
4450 2007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
4452 * Makefile.in (XMLFILES): Add library-list.dtd.
4453 (ALLDEPFILES): Add solib-target.o.
4454 (solib-target.o): New rule.
4455 * remote.c (PACKET_qXfer_libraries): New constant.
4456 (remote_protocol_features): Add qXfer:libraries:read.
4457 (remote_wait): Recognize library stop replies.
4458 (remote_async_wait): Likewise. Fix typo.
4459 (remote_xfer_partial): Handle TARGET_OBJECT_LIBRARIES.
4460 (init_remote_async_ops): Fix typo.
4461 (_initialize_remote): Register "set remote library-info-packet".
4462 * solib-som.c (som_current_sos): Set addr_low and addr_high.
4463 * solib-target.c: New file.
4464 * solib.c (solib_map_sections): Use addr_low and addr_high instead
4466 (info_sharedlibrary_command): Likewise.
4467 (solib_add_library, solib_remove_library): New.
4468 * solist.h (struct so_list): Replace textsection with addr_low and
4470 * target.h (enum target_object): Add TARGET_OBJECT_LIBRARIES.
4471 * NEWS: Describe new qXfer:libraries:read and shared library
4473 * features/library-list.dtd: New.
4475 2007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
4477 * infrun.c (inferior_ignoring_startup_exec_events): Delete.
4478 (start_remote): Use STOP_QUIETLY_REMOTE.
4479 (handle_inferior_event): Do not condition TARGET_WAITKIND_LOADED
4480 support on a SOLIB_ADD definition. Update breakpoints_inserted.
4481 Update to match shared library event breakpoint support. Only
4482 resume if appropriate. Handle STOP_QUIETLY_REMOTE.
4483 (normal_stop): Handle TARGET_WAITKIND_LOADED.
4484 * fork-child.c (startup_inferior): Do not set
4485 inferior_ignoring_startup_exec_events
4486 * inferior.h (inferior_ignoring_startup_exec_events): Delete
4488 (enum stop_kind): Improve documentation. Add STOP_QUIETLY_REMOTE.
4490 2007-07-02 Markus Deuling <deuling@de.ibm.com>
4492 * breakpoint.c (insert_bp_location): Remove dead code
4493 (DISABLE_UNSETTABLE_BREAK).
4494 (disable_breakpoints_in_shlibs)
4495 (disable_breakpoints_in_unloaded_shlib): Likewise (comment).
4497 2007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
4499 * breakpoint.c (reattach_breakpoints): Do not use remove_breakpoint.
4500 Call insert_bp_location.
4502 2007-07-01 H.J. Lu <hongjiu.lu@intel.com>
4504 * core-regset.c (fetch_core_registers): Work around gcc 3.4
4507 2007-07-01 Daniel Jacobowitz <dan@codesourcery.com>
4509 * minsyms.c (lookup_minimal_symbol_by_pc_section): Search fewer
4512 2007-07-01 Daniel Jacobowitz <dan@codesourcery.com>
4514 * top.c (gdb_readline_wrapper_line): Call rl_callback_handler_remove.
4515 (struct gdb_readline_wrapper_cleanup): Remove prompt_orig.
4516 (gdb_readline_wrapper_cleanup): Do not reset the prompt.
4517 (gdb_readline_wrapper): Do not save the prompt. Pass our prompt
4518 to display_gdb_prompt.
4520 2007-07-01 Daniel Jacobowitz <dan@codesourcery.com>
4523 * target.c (memory_xfer_partial): Do not continue past targets with
4526 2007-06-30 Andreas Schwab <schwab@suse.de>
4528 * m68k-tdep.c (m68k_ps_type): New.
4529 (m68k_init_types): New.
4530 (m68k_register_type): Use m68k_ps_type for PS register.
4531 (_initialize_m68k_tdep): Call m68k_init_types.
4533 * m68k-tdep.c (m68k_gdbarch_init): Don't infer coldfire flavour
4534 from the generic m68k arch.
4536 2007-06-28 Michael Snyder <msnyder@access-company.com>
4538 * m2-typeprint.c (m2_print_type): Move pointer ref after null test
4541 * linux-thread-db.c (thread_db_get_thread_local_address): Add
4542 gdb_assert before using return value of find_thread_pid (Coverity).
4544 * source.c (unset_substitute_path_command): Plug leak (Coverity).
4546 * cli/cli-script.c (build_command_line): Add null pointer guard
4549 2007-06-27 Daniel Jacobowitz <dan@codesourcery.com>
4551 * linux-thread-db.c (thread_db_attach): Delete.
4552 (thread_db_detach): Typo fix. Call target_mourn_inferior
4553 instead of fixing up proc_handle.
4554 (have_threads_callback, have_threads): New functions.
4555 (thread_db_wait): Remove dead proc_handle.pid check. Only
4556 translate PTIDs if we have registered threads. Check for new
4557 threads if we have none.
4558 (thread_db_create_inferior, thread_db_post_startup_inferior): Delete.
4559 (find_new_threads_callback): Only enable event reporting if TID == 0.
4560 (same_ptid_callback): New.
4561 (thread_db_get_thread_local_address): Check for new threads.
4562 (init_thread_db_ops): Don't set to_attach, to_create_inferior,
4563 or to_post_startup_inferior.
4565 2007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
4567 * infrun.c (adjust_pc_after_break): Do not assume software single-step
4568 is always active if SOFTWARE_SINGLE_STEP_P is true.
4569 (resume): Use gdbarch_software_single_step[_p] instead of
4570 SOFTWARE_SINGLE_STEP[_P].
4571 (handle_inferior_event): Do not check for SOFTWARE_SINGLE_STEP_P.
4573 * gdbarch.sh (software_single_step): Remove target macro.
4574 * gdbarch.h, gdbarch.c: Regenerate.
4576 2007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
4578 * gdbarch.sh (gdbarch_swap_ftype, deprecated_register_gdbarch_swap,
4579 DEPRECATED_REGISTER_GDBARCH_SWAP): Remove.
4580 (struct gdbarch_swap, struct gdbarch_swap_registration,
4581 struct gdbarch_swap_registry, gdbarch_swap_registry,
4582 current_gdbarch_swap_init_hack, current_gdbarch_swap_out_hack,
4583 current_gdbarch_swap_in_hack): Remove.
4584 (find_arch_by_info): Do not call current_gdbarch_swap_init_hack.
4585 (gdbarch_find_by_info): Do not call current_gdbarch_swap_in_hack
4586 and current_gdbarch_swap_out_hack, update current_gdbarch directly.
4587 (deprecated_current_gdbarch_select_hack): Likewise.
4588 * gdbarch.h, gdbarch.c: Regenerate.
4590 2007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
4592 * infrun.c (clear_proceed_status): Clean up stop_registers.
4593 (normal_stop): Allocate regcache for stop_registers.
4594 (struct inferior_status): Remove stop_registers member.
4595 (save_inferior_status): Do not save stop_registers.
4596 (restore_inferior_status): Do not restore stop_registers.
4597 (discard_inferior_status): Do not discard stop_registers.
4598 (build_infrun): Remove.
4599 (_initialize_infrun): Do not swap stop_registers.
4601 2007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
4603 * remote.c (remote_address_masked): If remote_address_size is zero,
4604 default to target address size.
4605 (build_remote_gdbarch_data): Remove.
4606 (_initialize_remote): Do not swap remote_address_size.
4608 2007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
4610 * gdbtypes.h (builtin_type_true_char, builtin_type_void,
4611 builtin_type_char, builtin_type_short, builtin_type_int,
4612 builtin_type_long, builtin_type_signed_char,
4613 builtin_type_unsigned_char, builtin_type_unsigned_short,
4614 builtin_type_unsigned_int, builtin_type_unsigned_long,
4615 builtin_type_float, builtin_type_double, builtin_type_long_double,
4616 builtin_type_complex, builtin_type_double_complex, builtin_type_string,
4617 builtin_type_bool, builtin_type_long_long,
4618 builtin_type_unsigned_long_long, builtin_type_void_data_ptr,
4619 builtin_type_void_func_ptr, builtin_type_CORE_ADDR): Replace global
4620 variable declaration with compatibility macro.
4621 * gdbtypes.c (builtin_type_true_char, builtin_type_void,
4622 builtin_type_char, builtin_type_short, builtin_type_int,
4623 builtin_type_long, builtin_type_signed_char,
4624 builtin_type_unsigned_char, builtin_type_unsigned_short,
4625 builtin_type_unsigned_int, builtin_type_unsigned_long,
4626 builtin_type_float, builtin_type_double, builtin_type_long_double,
4627 builtin_type_complex, builtin_type_double_complex, builtin_type_string,
4628 builtin_type_bool, builtin_type_long_long,
4629 builtin_type_unsigned_long_long, builtin_type_void_data_ptr,
4630 builtin_type_void_func_ptr, builtin_type_CORE_ADDR): Remove.
4631 (build_gdbtypes): Remove.
4632 (_initialize_gdbtypes): Do not call build_gdbtypes, move installing
4633 opaque-type-resolution command here. Do not call
4634 deprecated_register_gdbarch_swap.
4636 2007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
4638 * gdbtypes.h (struct builtin_type): New members nodebug_text_symbol,
4639 nodebug_data_symbol, nodebug_unknown_symbol, and nodebug_tls_symbol.
4640 * gdbtypes.c (gdbtypes_post_init): Initialize nodebug_ default types.
4642 * parse.c (msym_text_symbol_type, msym_data_symbol_type): Remove.
4643 (msym_unknown_symbol_type, msym_tls_symbol_type): Remove.
4644 (write_exp_msymbol): Use builtin nodebug_ types instead of them.
4645 (build_parse): Remove.
4646 (_initialize_parse): Do not call build_parse. Do not register
4647 msym_ types for gdbarch-swapping.
4649 * dwarf2read.c (new_symbol): Use default nodebug_data_symbol type
4650 instead of creating private type.
4652 * xcoffread.c (func_symbol_type, var_symbol_type): Remove.
4653 (_initialize_xcoffread): Do not initialized them.
4654 (process_xcoff_symbol): Use builtin nodebug_ types instead of them.
4656 * mdebugread.c (nodebug_func_symbol_type): Remove.
4657 (nodebug_var_symbol_type): Remove.
4658 (_initialize_mdebugread): Do not initialize them.
4659 (parse_symbol): Use builtin nodebug_ type instead of them.
4660 (parse_procedure): Likewise.
4662 2007-06-21 Chris Dearman <chris@mips.com>
4664 * printcmd.c (do_one_display): If display/i, start with an initial
4665 line feed to avoid bad layout if there is a branch delay slot.
4667 2007-06-21 Nigel Stephens <nigel@mips.com>
4668 Maciej W. Rozycki <macro@mips.com>
4670 * disasm.c (gdb_print_insn): Return the number of branch delay
4671 slot instructions too.
4672 * disasm.h (gdb_print_insn): Update prototype.
4673 * printcmd.c (branch_delay_insns): New variable to record the
4674 number of delay slot instructions after disassembling a branch.
4675 (print_formatted): Record the number of branch delay slot
4677 (do_examine): When disassembling, if the last instruction
4678 disassembled has any branch delay slots, then bump the count so
4679 that they get disassembled too.
4680 * tui/tui-disasm.c (tui_disassemble): Update the call to
4682 * NEWS: Document the new behaviour.
4684 2007-06-21 Andreas Schwab <schwab@suse.de>
4686 * regcache.c (write_pc_pid): Restore missing else.
4688 2007-06-20 Ulrich Weigand <uweigand@de.ibm.com>
4690 * regcache.c (regcache_print): Use get_current_regcache ()
4691 instead of current_regcache.
4693 2007-06-20 H.J. Lu <hongjiu.lu@intel.com>
4696 * gcore.c (gcore_command): Use bfd_make_section_anyway_with_flags
4697 instead of bfd_make_section_anyway.
4698 (gcore_create_callback): Likewise. Also set SEC_NEVER_LOAD
4699 when clearing SEC_LOAD.
4701 2007-06-19 Joseph Myers <joseph@codesourcery.com>
4703 * arm-tdep.c (arm_push_dummy_call): Correct padding of partial
4704 registers for big-endian.
4706 2007-06-19 Markus Deuling <deuling@de.ibm.com>
4708 * gdbarch.sh (TARGET_PRINT_INSN): Replace by gdbarch_print_insn.
4709 * disasm.c (dump_insns, gdb_print_insn): Likewise.
4710 * gdbarch.c, gdbarch.h: Regenerate.
4712 2007-06-19 Markus Deuling <deuling@de.ibm.com>
4714 * gdbarch.sh (BELIEVE_PCC_PROMOTION): Replace by
4715 gdbarch_believe_pcc_promotion.
4716 * stabsread.c (define_symbol): Likewise.
4717 Remove unnecessary definition.
4718 * coffread.c (process_coff_symbol): Remove unnecessary code.
4719 * gdbarch.c, gdbarch.h: Regenerate.
4721 2007-06-19 Daniel Jacobowitz <dan@codesourcery.com>
4723 * configure.ac: Do not use ${objdir}.
4724 * configure: Regenerated.
4726 2007-06-18 Ulrich Weigand <uweigand@de.ibm.com>
4728 * gdbarch.sh (deprecated_register_size): Remove.
4729 * gdbarch.h, gdbarch.c: Regenerate.
4731 * arm-tdep.c (arm_push_dummy_call): Replace DEPRECATED_REGISTER_SIZE
4732 by INT_REGISTER_SIZE.
4733 (thumb_get_next_pc, arm_return_in_memory): Likewise.
4734 (arm_gdbarch_init): Do not call set_gdbarch_deprecated_register_size.
4735 * ia64-tdep.c (ia64_gdbarch_init): Do not call
4736 set_gdbarch_deprecated_register_size.
4738 2007-06-18 Markus Deuling <deuling@de.ibm.com>
4740 * gdbarch.sh (DEPRECATED_FP_REGNUM): Replace by
4741 gdbarch_deprecated_fp_regnum.
4742 * std-regs.c (value_of_builtin_frame_fp_reg): Likewise.
4743 * remote-mips.c (mips_wait, mips_fetch_registers): Likewise.
4744 * arch-utils.c (legacy_virtual_frame_pointer): Likewise.
4745 * arch-utils.h (gdbarch_virtual_frame_pointer_ftype): Likewise
4747 * gdbarch.c, gdbarch.h: Regenerate.
4749 2007-06-18 Markus Deuling <deuling@de.ibm.com>
4751 * gdbarch.sh (EXTRACT_RETURN_VALUE): Replace with
4752 gdbarch_extract_return_value.
4753 * value.c (generic_use_struct_convention): Likewise (comment).
4754 * ia64-tdep.c (ia64_use_struct_convention): Likewise (comment).
4755 * arch-utils.c (legacy_return_value): Likewise.
4756 * arch-utils.h (legacy_return_value): Likewise (comment).
4757 * gdbarch.sh (STORE_RETURN_VALUE): Replace by
4758 gdbarch_store_return_value.
4759 * stack.c (return_command): Likewise (comment).
4760 * arch-utils.h (legacy_return_value): Likewise (comment).
4761 * arch-utils.c (legacy_return_value): Likewise.
4762 * gdbarch.c, gdbarch.h: Regenerate.
4764 2007-06-18 Markus Deuling <deuling@de.ibm.com>
4766 * gdbarch.sh (DEPRECATED_USE_STRUCT_CONVENTION): Replace by
4767 gdbarch_deprecated_use_struct_convention.
4768 * arch-utils.c (legacy_return_value): Likewise.
4769 * gdbarch.c, gdbarch.h: Regenerate.
4771 2007-06-18 Markus Deuling <deuling@de.ibm.com>
4773 * gdbarch.sh (DEPRECATED_FUNCTION_START_OFFSET): Replace by
4774 gdbarch_deprecated_function_start_offset.
4775 * symtab.c (find_function_start_sal)skip_prologue_using_sal): Likewise.
4776 * linespec.c (minsym_found): Likewise.
4777 * infrun.c (handle_inferior_event): Likewise.
4778 * infcall.c (find_function_addr): Likewise.
4779 * cli/cli-cmds.c (disassemble_command): Likewise.
4780 * gdbarch.c, gdbarch.h: Regenerate.
4782 2007-06-18 Markus Deuling <deuling@de.ibm.com>
4784 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Replace by
4785 gdbarch_deprecated_reg_struct_has_addr.
4786 * infcall.c (call_function_by_hand): Likewise.
4787 (DEPRECATED_REG_STRUCT_HAS_ADDR_P): Replace by
4788 * gdbarch_deprecated_reg_struct_has_addr_p.
4789 * infcall.c (call_function_by_hand): Likewise.
4790 * gdbarch.c, gdbarch.h: Regenerate.
4792 2007-06-18 Markus Deuling <deuling@de.ibm.com>
4794 * gdbarch.sh (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
4795 * sh-tdep.c (sh_extract_struct_value_address): Remove.
4796 (sh_gdbarch_init): Remove
4797 set_gdbarch_deprecated_extract_struct_value_address.
4798 * sh64-tdep.c (sh64_extract_struct_value_address): Remove.
4799 (sh64_gdbarch_init): Remove
4800 set_gdbarch_deprecated_extract_struct_value_address.
4801 * ia64-tdep.c (ia64_extract_struct_value_address): Remove.
4802 (ia64_gdbarch_init): Remove
4803 set_gdbarch_deprecated_extract_struct_value_address.
4804 * frv-tdep.c (frv_extract_struct_value_address): Remove.
4805 (frv_gdbarch_init): Remove
4806 set_gdbarch_deprecated_extract_struct_value_address.
4807 * gdbarch.c, gdbarch.h: Regenerate.
4809 2007-06-18 Markus Deuling <deuling@de.ibm.com>
4811 * gdbarch.sh (SP_REGNUM): Replace by gdbarch_sp_regnum.
4812 * v850-tdep.c (v850_unwind_sp): Likewise.
4813 * std-regs.c (value_of_builtin_frame_sp_reg): Likewise.
4814 * stack.c (frame_info): Likewise.
4815 * stabsread.c (define_symbol): Likewise.
4816 * sh-tdep.c (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu)
4817 (sh_dwarf2_frame_init_reg, sh_frame_cache, sh_frame_prev_register)
4818 (sh_unwind_sp): Likewise.
4819 * sh64-tdep.c (sh64_push_dummy_call, sh64_frame_cache)
4820 (sh64_frame_prev_register, sh64_unwind_sp): Likewise.
4821 * rs6000-tdep.c (rs6000_push_dummy_call, rs6000_unwind_dummy_id)
4822 (rs6000_frame_cache): Likewise.
4823 * rs6000-nat.c (store_register): Likewise.
4824 * remote-mips.c (mips_wait): Likewise.
4825 * procfs.c (procfs_fetch_registers, procfs_store_registers): Likewise.
4826 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call)
4827 (ppc64_sysv_abi_push_dummy_call): Likewise.
4828 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_cache): Likewise.
4829 * ppcobsd-nat.c (ppcobsd_supply_pcb): Likewise.
4830 * ppcnbsd-tdep.c (ppcnbsd_sigtramp_cache_init): Likewise.
4831 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache): Likewise.
4832 * m32r-rom.c (m32r_supply_register): Likewise.
4833 * frame.c (frame_sp_unwind): Likewise.
4834 * mips-tdep.c (mips_insn16_frame_cache)
4835 (mips_insn32_frame_cache): Likewise (comment).
4836 * m68klinux-nat.c (supply_gregset): Likewise.
4837 * m68k-tdep.c (m68k_get_longjmp_target): Likewise.
4838 * ia64-tdep.c (ia64_frame_prev_register): Likewise.
4839 * i386-tdep.c (i386_get_longjmp_target): Likewise.
4840 * dwarf2-frame.c (dwarf2_frame_default_init_reg): Likewise.
4841 * cris-tdep.c (cris_regnums, cris_sigcontext_addr)
4842 (cris_sigtramp_frame_unwind_cache, cris_push_dummy_call)
4843 (cris_scan_prologue, crisv32_scan_prologue, cris_unwind_sp)
4844 (cris_register_type, crisv32_register_type)
4845 (cris_dwarf2_frame_init_reg): Likewise.
4846 * arch-utils.c (legacy_virtual_frame_pointer): Likewise.
4847 * amd64-tdep.c (amd64_frame_prev_register): Likewise.
4848 * amd64-linux-tdep.c (amd64_linux_sigcontext_addr): Likewise.
4849 * libunwind-frame.c (libunwind_frame_cache): Likewise.
4851 * gdbarch.sh (PC_REGNUM): Replace by gdbarch_pc_regnum.
4852 * regcache.c (read_pc_pid, generic_target_write_pc): Likewise.
4853 * xtensa-tdep.c (xtensa_register_type, xtensa_supply_gregset)
4854 (xtensa_unwind_pc, xtensa_frame_cache, xtensa_frame_prev_register)
4855 (xtensa_extract_return_value, xtensa_store_return_value): Likewise.
4856 * v850-tdep.c (v850_unwind_pc): Likewise.
4857 * stack.c (frame_info): Likewise.
4858 * sh-tdep.c (sh_generic_show_regs, sh3_show_regs, sh2e_show_regs)
4859 (sh2a_show_regs, sh2a_nofpu_show_regs, sh3e_show_regs)
4860 (sh3_dsp_show_regs, sh4_show_regs, sh4_nofpu_show_regs)
4861 (sh_dwarf2_frame_init_reg, sh_frame_prev_register, sh_unwind_pc)
4862 (sh_dsp_show_regs): Likewise.
4863 * shnbsd-tdep.c (shnbsd_supply_gregset)
4864 (shnbsd_collect_gregset): Likewise.
4865 * shnbsd-nat.c (GETREGS_SUPPLIES): Likewise.
4866 * sh64-tdep.c (sh64_compact_reg_base_num, sh64_show_media_regs)
4867 (sh64_frame_prev_register, sh64_unwind_pc): Likewise.
4868 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset)
4869 (6000_register_reggroup_p, rs6000_unwind_pc)
4870 (rs6000_frame_cache): Likewise.
4871 * rs6000-nat.c (regmap, rs6000_fetch_inferior_registers)
4872 (rs6000_store_inferior_registers): Likewise.
4873 * remote-mips.c (mips_wait, mips_load): Likewise.
4874 * procfs.c (procfs_fetch_registers, procfs_store_registers): Likewise.
4875 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_cache): Likewise.
4876 * ppcobsd-nat.c (ppcobsd_supply_pcb): Likewise.
4877 * ppcnbsd-tdep.c (ppcnbsd_sigtramp_cache_init): Likewise.
4878 * ppcnbsd-nat.c (getregs_supplies, ppcnbsd_supply_pcb): Likewise.
4879 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache): Likewise.
4880 * ppc-linux-nat.c (ppc_register_u_addr, fetch_ppc_registers)
4881 (store_ppc_registers, fill_gregset): Likewise.
4882 * mips-tdep.c (mips_stub_frame_cache, mips_gdbarch_init): Likewise.
4883 * mipsnbsd-tdep.c (mipsnbsd_supply_reg, mipsnbsd_fill_reg): Likewise.
4884 * mipsnbsd-nat.c (getregs_supplies): Likewise.
4885 * m68k-tdep.c (m68k_register_type, m68k_unwind_pc): Likewise.
4886 * m68klinux-nat.c (supply_gregset): Likewise.
4887 * irix5-nat.c (fill_gregset): Likewise.
4888 * i386-tdep.c (i386_unwind_pc): Likewise.
4889 * i386-linux-nat.c (i386_linux_resume): Likewise.
4890 * frame.c (get_prev_frame_1): Likewise.
4891 * dwarf2-frame.c (dwarf2_frame_default_init_reg): Likewise.
4892 * dbug-rom.c (dbug_supply_register): Likewise.
4893 * cris-tdep.c (cris_sigtramp_frame_unwind_cache, cris_scan_prologue)
4894 (crisv32_scan_prologue, cris_unwind_pc, cris_register_size)
4895 (cris_register_type, crisv32_register_type, crisv32_register_name)
4896 (cris_dwarf2_frame_init_reg, find_step_target)
4897 (cris_software_single_step, cris_supply_gregset)
4898 (cris_regnums): Likewise.
4899 * alpha-linux-nat.c (alpha_linux_register_u_offset): Likewise.
4900 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
4901 (fill_sprs64, fill_sprs32, store_regs_user_thread): Likewise.
4902 * std-regs.c (value_of_builtin_frame_pc_reg): Likewise.
4903 * mips-linux-tdep.c (mips_linux_write_pc): Likewise.
4905 * gdbarch.sh (PS_REGNUM): Replace by gdbarch_ps_regnum.
4906 * dbug-rom.c (dbug_supply_register): Likewise.
4907 * xtensa-tdep.c (xtensa_supply_gregset, xtensa_frame_cache)
4908 (xtensa_frame_prev_register, xtensa_push_dummy_call): Likewise.
4909 * win32-nat.c (win32_resume): Likewise.
4910 * std-regs.c (value_of_builtin_frame_ps_reg): Likewise.
4911 * m68k-tdep.c (m68k_register_type): Likewise.
4912 * m68klinux-nat.c (supply_gregset): Likewise.
4914 * gdbarch.sh (FP0_REGNUM): Replace by gdbarch_fp0_regnum.
4915 * sh-tdep.c (sh_extract_return_value_fpu, sh_store_return_value_fpu)
4916 (sh2e_show_regs, sh2a_show_regs, sh3e_show_regs, sh4_show_regs)
4917 (sh_sh2a_register_type, sh_sh3e_register_type, sh_sh4_register_type)
4918 (fv_reg_base_num, dr_reg_base_num): Likewise.
4919 * sh64-tdep.c (sh64_fv_reg_base_num, sh64_dr_reg_base_num)
4920 (sh64_fpp_reg_base_num, sh64_compact_reg_base_num, sh64_push_dummy_call)
4921 (sh64_extract_return_value, sh64_store_return_value)
4922 (sh64_show_media_regs, sh64_show_compact_regs, sh64_register_type)
4923 (sh64_do_fp_register, sh64_media_print_registers_info): Likewise.
4924 * procfs.c (procfs_fetch_registers, procfs_store_registers)
4925 (invalidate_cache): Likewise.
4926 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache): Likewise.
4927 * mipsnbsd-tdep.c (mipsnbsd_supply_fpreg)
4928 (mipsnbsd_fill_fpreg): Likewise.
4929 * mipsnbsd-nat.c (mipsnbsd_fetch_inferior_registers)
4930 (mipsnbsd_store_inferior_registers): Likewise.
4931 * mips-linux-tdep.c (mips_supply_fpregset, mips_fill_fpregset)
4932 (mips64_supply_fpregset, mips64_fill_fpregset): Likewise.
4933 * mips-linux-nat.c (mips64_linux_register_addr): Likewise.
4934 * m68k-tdep.c (m68k_register_type, m68k_convert_register_p): Likewise.
4935 * m68klinux-nat.c (getfpregs_supplies, supply_fpregset)
4936 (fill_fpregset): Likewise.
4937 * irix5-nat.c (supply_fpregset, fill_fpregset): Likewise.
4938 * i386-tdep.h (struct_return): Likewise (comment).
4939 * i386-nto-tdep.c (i386nto_register_area): Likewise.
4940 * go32-nat.c (fetch_register, go32_fetch_registers, store_register)
4941 (go32_store_registers): Likewise.
4942 * alpha-tdep.c (alpha_next_pc): Likewise.
4943 * alpha-linux-nat.c (alpha_linux_register_u_offset): Likewise.
4944 * alphabsd-nat.c (alphabsd_fetch_inferior_registers)
4945 (alphabsd_store_inferior_registers): Likewise.
4946 * core-regset.c (fetch_core_registers): Likewise.
4947 * i386v4-nat.c (supply_fpregset, fill_fpregset): Likewise.
4949 * gdbarch.c, gdbarch.h: Regenerate.
4951 2007-06-18 Daniel Jacobowitz <dan@codesourcery.com>
4953 * coffread.c (coff_sym_fns): Add default_symfile_segments.
4954 * dbxread.c (start_psymtab): Check HAVE_ELF.
4955 (aout_sym_fns): Likewise.
4956 * elfread.c (elf_symfile_segments): New.
4957 (elf_sym_fns): Add elf_symfile_segments.
4958 * mipsread.c (ecoff_sym_fns): Add default_symfile_segments.
4959 * remote.c (get_offsets): Use symfile_map_offsets_to_segments.
4960 Skip if there is no symfile_objfile. Handle TextSeg and DataSeg.
4961 * somread.c (som_sym_fns): Use default_symfile_segments.
4962 * symfile.c (find_sym_fns): Take a BFD and return the sym_fns.
4963 (init_objfile_sect_indices): Call symfile_find_segment_sections.
4964 (default_symfile_segments): New function.
4965 (syms_from_objfile): Update call to find_sym_fns.
4966 (symfile_get_segment_data, free_symfile_segment_data): New.
4967 (symfile_map_offsets_to_segments): New.
4968 (symfile_find_segment_sections): New.
4969 * symfile.h (struct symfile_segment_data): New.
4970 (struct sym_fns): Add sym_segments.
4971 (default_symfile_segments, symfile_get_segment_data)
4972 (free_symfile_segment_data): New prototypes.
4973 (symfile_map_offsets_to_segments): Likewise.
4974 * xcoffread.c (xcoff_sym_fns): Add default_symfile_segments.
4975 * Makefile.in (COMMON_OBS): Remove elfread.o.
4976 (elf_internal_h): New.
4977 (elfread.o): Update.
4978 * configure.ac: Add elfread.o to COMMON_OBS if bfd/elf.o was
4980 * config.in, configure: Regenerated.
4981 * NEWS: Mention qOffsets changes.
4983 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
4985 * gdbtypes.h (builtin_type_m2_char, builtin_type_m2_int,
4986 builtin_type_m2_card, builtin_type_m2_real, builtin_type_m2_bool):
4987 Replace global variable declaration with compatibility macro.
4988 (struct builtin_m2_type): New data type.
4989 (builtin_m2_type): Add prototype.
4990 * m2-lang.c (builtin_type_m2_char, builtin_type_m2_int,
4991 builtin_type_m2_card, builtin_type_m2_real, builtin_type_m2_bool):
4992 Remove global variables.
4993 (m2_language_arch_info): Use builtin_m2_type instead of variables.
4994 (build_m2_types): New function.
4995 (m2_type_data): New variable.
4996 (builtin_m2_type): New function.
4997 (_initialize_m2_language): Do not build data types. Register
4998 m2_type_data per-gdbarch data.
5000 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
5002 * gdbtypes.h (builtin_type_f_character, builtin_type_f_logical,
5003 builtin_type_f_logical_s1, builtin_type_f_logical_s2,
5004 builtin_type_f_integer, builtin_type_f_integer_s2, builtin_type_f_real,
5005 builtin_type_f_real_s8, builtin_type_f_real_s16,
5006 builtin_type_f_complex_s8, builtin_type_f_complex_s16,
5007 builtin_type_f_complex_s32, builtin_type_f_void): Replace global
5008 variable declaration with compatibility macro.
5009 (struct builtin_f_type): New data type.
5010 (builtin_f_type): Add prototype.
5011 * f-lang.c (builtin_type_f_character, builtin_type_f_logical,
5012 builtin_type_f_logical_s1, builtin_type_f_logical_s2,
5013 builtin_type_f_integer, builtin_type_f_integer_s2, builtin_type_f_real,
5014 builtin_type_f_real_s8, builtin_type_f_real_s16,
5015 builtin_type_f_complex_s8, builtin_type_f_complex_s16,
5016 builtin_type_f_complex_s32, builtin_type_f_void): Remove variables.
5017 (f_language_arch_info): Use builtin_f_type instead of variables.
5018 (build_fortran_types): Build builtin_f_type structure instead of
5019 setting global type variables.
5020 (f_type_data): New variable.
5021 (builtin_f_type): New function.
5022 (_initialize_f_language): Do not call build_fortran_types. Do not
5023 swap global type variables. Register f_type_data per-gdbarch data.
5025 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
5027 * f-lang.c (_initialize_f_language): Do not initialize or
5028 swap builtin_type_string.
5030 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
5032 * std-regs.c (builtin_type_frame_reg, build_builtin_type_frame_reg,
5033 value_of_builtin_frame_reg): Remove.
5034 (_initialize_frame_reg): Do not swap builtin_type_frame_reg. Remove
5035 inactive call to value_of_builtin_frame_reg.
5037 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
5039 * gdbarch.sh (bfd_vma_bit): Remove.
5040 * gdbarch.c, gdbarch.h: Regenerate.
5042 * gdbtypes.h (builtin_bfd_vma_type): Remove.
5043 * gdbtypes.h (builtin_bfd_vma_type): Remove.
5044 (build_gdbtypes): Do not initialize it.
5045 (_initialize_gdbtypes): Do not swap it.
5047 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
5049 * gdbtypes.c (builtin_type_v2_double, builtin_type_v4_float,
5050 builtin_type_v2_int64, builtin_type_v4_int32, builtin_type_v8_int16,
5051 builtin_type_v16_int8, builtin_type_v2_float, builtin_type_v2_int32,
5052 builtin_type_v4_int16, builtin_type_v8_int8, builtin_type_v4sf,
5053 builtin_type_v4si, builtin_type_v16qi, builtin_type_v8qi,
5054 builtin_type_v8hi, builtin_type_v4hi, builtin_type_v2si,
5055 builtin_type_vec64, builtin_type_vec128): Remove.
5056 (init_simd_type): Remove.
5057 (init_vector_type): Make global.
5058 (build_builtin_type_vec64, build_builtin_type_vec128): Remove.
5059 (build_gdbtypes): Do not build vector types.
5060 (_initialize_gdbtypes): Do not swap vector types.
5061 * gdbtypes.h (builtin_type_v2_double, builtin_type_v4_float,
5062 builtin_type_v2_int64, builtin_type_v4_int32, builtin_type_v8_int16,
5063 builtin_type_v16_int8, builtin_type_v2_float, builtin_type_v2_int32,
5064 builtin_type_v4_int16, builtin_type_v8_int8, builtin_type_v4sf,
5065 builtin_type_v4si, builtin_type_v16qi, builtin_type_v8qi,
5066 builtin_type_v8hi, builtin_type_v4hi, builtin_type_v2si,
5067 builtin_type_vec64, builtin_type_vec128): Remove declarations.
5068 (init_vector_type): Add prototype.
5070 * i386-tdep.h (struct gdbarch_tdep): Add i386_mmx_type and
5071 i386_sse_type members.
5072 (i386_mmx_type, i386_sse_type): Change from variables to functions.
5073 * i386-tdep.c (i386_mmx_type, i386_sse_type): Remove variables.
5074 (i386_init_types): Do not build vector types.
5075 (i386_mmx_type, i386_sse_type): New functions.
5076 (i386_register_type): Call them instead of using global variables.
5077 (i386_gdbarch_init): Use XCALLOC to allocate tdep structure.
5078 * amd64-tdep.c (amd64_register_type): Call i386_sse_type instead
5079 of using global variable.
5081 * rs6000-tdep.h (struct gdbarch_tdep): Add ppc_builtin_type_vec64
5082 and ppc_builtin_type_vec128 members.
5083 * rs6000-tdep.c (rs6000_builtin_type_vec64): New function.
5084 (rs6000_builtin_type_vec128): Likewise.
5085 (rs6000_register_type): Call them instead of using builtin_type_vec64
5086 and builtin_type_vec128.
5087 (rs6000_gdbarch_init): Use XCALLOC to allocate tdep structure.
5089 * spu-tdep.c (struct gdbarch_tdep): New data type.
5090 (spu_builtin_type_vec128): Remove variable.
5091 (spu_builtin_type_vec128): New function.
5092 (spu_register_type): Call it instead of using global variable.
5093 (spu_gdbarch_init): Allocate tdep structure.
5094 (spu_init_vector_type): Remove function.
5095 (_initialize_spu_tdep): Do not call it.
5097 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
5099 * amd64-tdep.c (struct amd64_register_info): Remove.
5100 (amd64_register_info): Remove.
5101 (amd64_register_names): New static variable.
5102 (AMD64_NUM_REGS): Use amd64_register_names instead of
5103 amd64_register_info.
5104 (amd64_register_name): Likewise.
5105 (amd64_register_type): Do not refer to amd64_register_info.
5107 * s390-tdep.c (struct s390_register_info): Remove.
5108 (s390_register_info): Remove.
5109 (s390_register_name): Do not refer to s390_register_info.
5110 (s390_register_type): Likewise.
5112 * sparc64-tdep.c (struct sparc64_register_info): Remove.
5113 (sparc64_register_info, sparc64_pseudo_register_info): Remove.
5114 (sparc64_register_names, sparc64_pseudo_register_names): New.
5115 (SPARC64_NUM_REGS, SPARC64_NUM_PSEUDO_REGS): Use
5116 sparc64_register_names and sparc64_pseudo_register_names instead of
5117 sparc64_register_info and sparc64_pseudo_register_info.
5118 (sparc64_register_name): Likewise.
5119 (sparc64_register_type): Do not refer to sparc64_register_info
5120 and sparc64_pseudo_register_info.
5122 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
5124 * c-lang.c (cplus_builtin_types): Remove.
5125 (enum cplus_primitive_types): New data type.
5126 (cplus_language_arch_info): New function.
5127 (cplus_language_defn): Set la_language_arch_info member. Do not set
5128 la_builtin_type_vector and string_char_type members.
5130 * f-lang.c (f_builtin_types): Remove.
5131 (enum f_primitive_types): New data type.
5132 (f_language_arch_info): New function.
5133 (f_language_de): Set la_language_arch_info member. Do not set
5134 la_builtin_type_vector and string_char_type members.
5136 * m2-lang.c (m2_builtin_types): Remove.
5137 (enum m2_primitive_types): New data type.
5138 (m2_language_arch_info): New function.
5139 (m2_language_defn): Set la_language_arch_info member. Do not set
5140 la_builtin_type_vector and string_char_type members.
5142 * objc-lang.c (objc_builtin_types): Remove.
5143 (objc_language): Set la_language_arch_info member. Do not set
5144 la_builtin_type_vector and string_char_type members.
5146 * p-lang.c (pascal_builtin_types): Remove.
5147 (enum pascal_primitive_types): New data type.
5148 (pascal_language_arch_info): New function.
5149 (pascal_language_defn): Set la_language_arch_info member. Do not set
5150 la_builtin_type_vector and string_char_type members.
5152 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
5154 * regcache.c (struct regcache): Add ptid_t member.
5155 (regcache_xmalloc): Initialize it.
5156 (regcache_cpy_no_passthrough): Do not refer to current_regcache.
5157 (regcache_dup): Likewise.
5158 (regcache_dup_no_passthrough): Likewise.
5159 (current_regcache): Make static.
5160 (registers_ptid): Remove variable.
5161 (get_thread_regcache): New function.
5162 (get_current_regcache): New function.
5163 (registers_changed): Implement by freeing current regcache.
5164 (regcache_raw_read): Do not refer to current_regcache. Set
5165 inferior_ptid to regcache->ptid while calling target routines.
5166 (regcache_raw_write): Likewise.
5167 (regcache_raw_supply): Do not refer to current_regcache.
5168 (read_pc_pid): Use thread regcache. Do not modify inferior_ptid.
5169 (write_pc_pid): Likewise.
5170 (build_regcache): Remove.
5171 (_initialize_regcache): Do not call DEPRECATED_REGISTER_GDBARCH_SWAP
5172 or deprecated_register_gdbarch_swap. Do not initialize
5174 * regcache.h (get_current_regcache): Add prototype.
5175 (get_thread_regcache): Likewise.
5176 (current_regcache): Remove declaration.
5178 * corelow.c (core_open): Replace current_regcache by
5179 get_current_regcache ().
5180 * frame.c (frame_pop): Likewise.
5181 (put_frame_register): Likewise.
5182 (get_current_frame, create_new_frame): Likewise.
5183 * mi/mi-main.c (mi_cmd_data_write_register_values): Likewise.
5184 * stack.c (return_command): Likewise.
5185 * infcall.c (call_function_by_hand): Likewise.
5186 * infrun.c (resume): Likewise.
5187 (save_inferior_status, restore_inferior_status): Likewise.
5188 * linux-fork.c (fork_load_infrun_state): Likewise.
5189 (fork_save_infrun_state): Likewise.
5190 * win32-nat.c (win32_resume): Likewise.
5191 * i386fbsd-nat.c (i386fbsd_resume): Likewise.
5192 * monitor.c (monitor_wait): Likewise.
5193 * remote.c (remote_wait): Likewise.
5194 * remote-mips.c (mips_wait): Likewise.
5196 * bsd-kvm.c (bsd_kvm_open): Likewise
5197 (bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd): Likewise.
5198 * fbsd-nat.c (fbsd_make_corefile_notes): Likewise.
5199 * i386-linux-nat.c (i386_linux_resume): Likewise.
5200 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Likewise.
5201 (ia64_linux_stopped_data_address): Likewise.
5203 * frv-tdep.c (frv_fdpic_loadmap_addresses): Likewise.
5204 * m32c-tdep.c (m32c_virtual_frame_pointer): Likewise.
5205 * mep-tdep.c (current_me_module, current_options): Likewise.
5206 * mips-tdep.c (deprecated_mips_set_processor_regs_hack): Likewise.
5208 * linux-nat.c (linux_nat_do_thread_registers): Use thread
5209 regcache instead of current_regcache. Call target_fetch_registers.
5210 (linux_nat_corefile_thread_callback): Update call site.
5211 (linux_nat_do_registers): Likewise.
5212 * procfs.c (procfs_do_thread_registers): Use thread regcache instead
5213 of current_regcache.
5214 (procfs_make_note_section): Likewise.
5215 * proc-service.c (ps_lgetregs, ps_lsetregs): Likewise.
5216 (ps_lgetfpregs, ps_lsetfpregs): Likewise.
5217 * sol-thread.c (ps_lgetregs, ps_lsetregs): Likewise.
5218 (ps_lgetfpregs, ps_lsetfpregs): Likewise.
5220 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
5222 * regcache.c (read_register, read_register_pid): Remove.
5223 (write_register, write_register_pid): Likewise.
5224 * regcache.h (read_register, read_register_pid): Remove prototype.
5225 (write_register, write_register_pid): Likewise.
5227 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
5229 * gdbarch.sh (read_pc): Add REGCACHE argument. Remove PTID argument.
5230 (write_pc): Likewise. Remove default implementation, add predicate.
5231 * gdbarch.c, gdbarch.h: Regenerate.
5232 * regcache.c (read_pc_pid): Use current regcache instead of calling
5234 (write_pc_pid): Check gdbarch_write_pc predicate, implement default
5236 (generic_target_write_pc): Remove.
5237 * inferior.h (generic_target_write_pc): Remove.
5238 * frv-tdep.c (frv_gdbarch_init): Do not install it.
5239 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
5240 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
5241 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
5242 * sh-tdep.c (sh_gdbarch_init): Likewise.
5243 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
5245 * avr-tdep.c (avr_read_pc): Add REGCACHE argument. Remove PTID
5246 argument. Use REGCACHE instead of calling read_register_pid.
5247 * hppa-hpux-tdep.c (hppa_hpux_read_pc): Likewise.
5248 * hppa-tdep.c (hppa_read_pc): Likewise.
5249 * hppa-tdep.h (hppa_read_pc): Likewise.
5250 * ia64-tdep.c (ia64_read_pc): Likewise.
5251 * m32r-tdep.c (m32r_read_pc): Likewise.
5252 * mep-tdep.c (mep_read_pc): Likewise.
5253 * mn10300-tdep.c (mn10300_read_pc): Likewise.
5254 * spu-tdep.c (spu_read_pc): Likewise.
5256 * arm-tdep.c (arm_write_pc): Add REGCACHE argument. Remove PTID
5257 argument. Use REGCACHE instead of calling write_register_pid.
5258 * avr-tdep.c (avr_write_pc): Likewise.
5259 * hppa-hpux-tdep.c (hppa_hpux_write_pc): Likewise.
5260 * hppa-tdep.c (hppa_write_pc): Likewise.
5261 * hppa-tdep.h (hppa_write_pc): Likewise.
5262 * i386-linux-tdep.c (i386_linux_write_pc): Likewise.
5263 * amd64-linux-tdep.c (amd64_linux_write_pc): Likewise.
5264 * ia64-linux-tdep.c (ia64_linux_write_pc): Likewise.
5265 * ia64-tdep.c (ia64_write_pc): Likewise.
5266 * ia64-tdep.h (ia64_write_pc): Likewise.
5267 * m32r-tdep.c (m32r_write_pc): Likewise.
5268 * m88k-tdep.c (m88k_write_pc): Likewise.
5269 * mep-tdep.c (mep_write_pc): Likewise.
5270 * mips-tdep.c (mips_write_pc): Likewise.
5271 * mips-linux-tdep.c (mips_linux_write_pc): Likewise.
5272 * mn10300-tdep.c (mn10300_write_pc): Likewise.
5273 * sparc-tdep.c (sparc_write_pc): Likewise.
5274 * spu-tdep.c (spu_write_pc): Likewise.
5276 * mips-tdep.c (read_signed_register): Remove.
5277 (read_signed_register_pid): Likewise.
5278 (mips_read_pc): Add REGCACHE argument. Remove PTID argument.
5279 Use REGCACHE instead of calling read_signed_register_pid.
5281 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
5283 * gdbarch.sh (push_dummy_code): Add REGCACHE argument.
5284 * gdbarch.c, gdbarch.h: Regenerate.
5285 * infcall.c (generic_push_dummy_code): Add REGCACHE argument.
5286 (push_dummy_code): Likewise. Pass it to callee.
5287 (call_function_by_hand): Pass current regcache to push_dummy_code.
5289 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Add REGCACHE
5290 argument. Use it instead of current_regcache.
5292 * cris-tdep.c (cris_push_dummy_code): Add REGCACHE argument.
5293 * sparc-tdep.c (sparc32_push_dummy_code): Likewise.
5295 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
5297 * gdbarch.sh (get_longjmp_target): Add FRAME argument.
5298 * gdbarch.c, gdbarch.h: Regenerate.
5299 * infrun.c (handle_inferior_event): Pass current frame to
5300 gdbarch_get_longjmp_target.
5302 * alpha-tdep.c (alpha_get_longjmp_target): Add FRAME argument.
5303 Read registers from FRAME instead of using read_register.
5304 Use get_frame_arch instead of current_gdbarch.
5305 * arm-tdep.c (arm_get_longjmp_target): Likewise.
5306 * i386-tdep.c (i386_get_longjmp_target): Likewise.
5307 * m68k-tdep.c (m68k_get_longjmp_target): Likewise.
5308 * mips-linux-tdep.c (mips_linux_get_longjmp_target): Likewise.
5309 (mips64_linux_get_longjmp_target): Likewise.
5310 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Likewise.
5312 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
5314 * gdbarch.sh (skip_trampoline_code): Add FRAME argument.
5315 * gdbarch.c, gdbarch.h: Regenerate.
5316 * arch-utils.c (generic_skip_trampoline_code): Add FRAME argument.
5317 * arch-utils.h (generic_skip_trampoline_code): Likewise.
5318 * infrun.c (handle_inferior_event): Pass current frame to
5319 gdbarch_skip_trampoline_code and skip_language_trampoline.
5321 * language.c (unk_lang_trampoline): Add FRAME argument.
5322 (skip_language_trampoline): Add FRAME argument. Pass it to
5323 skip_trampoline callback.
5324 * language.h: Add forward declaration of struct frame_info.
5325 (struct language_defn): Add FRAME argument to skip_trampoline.
5326 (skip_language_trampoline): Add FRAME argument.
5327 * cp-abi.c (cplus_skip_trampoline): Add FRAME argument. Pass it
5328 to skip_trampoline callback.
5329 * cp-abi.h: Add forward declaration of struct frame_info.
5330 (cplus_skip_trampoline): Add FRAME argument.
5331 (struct cp_abi_ops): Add FRAME argument to skip_trampoline callback.
5332 * gnu-v3-abi.c (gnuv3_skip_trampoline): Add FRAME argument. Pass it
5333 to gdbarch_skip_trampoline_code.
5334 * objc-lang.c (objc_skip_trampoline): Add FRAME argument. Pass it
5335 to gdbarch_skip_trampoline_code.
5337 * minsyms.c (find_solib_trampoline_target): Add FRAME argument.
5338 * symtab.h (find_solib_trampoline_target): Likewise.
5339 * obsd-tdep.c (obsd_skip_solib_resolver): Pass current frame to
5340 find_solib_trampoline_target.
5342 * arm-tdep.c (arm_skip_stub): Add FRAME argument. Read registers
5343 from FRAME instead of calling read_register.
5345 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code): Add FRAME
5346 argument. Read registers from FRAME instead of using read_register.
5347 * hppa-tdep.c (hppa_skip_trampoline_code): Likewise.
5348 * hppa-tdep.h (hppa_skip_trampoline_code): Add FRAME argument.
5350 * i386-cygwin-tdep.c (i386_cygwin_skip_trampoline_code): Add FRAME
5353 * m32c-tdep.c (m32c_skip_trampoline_code): Add FRAME argument.
5355 * mips-tdep.c (mips_skip_trampoline_code): Add FRAME argument. Read
5356 registers from FRAME instead of using read_signed_register.
5358 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Add FRAME
5360 (ppc64_standard_linkage_target): Likewise. Read registers from FRAME
5361 instead of using read_register.
5362 (ppc64_skip_trampoline_code): Add FRAME argument. Pass it to
5363 ppc64_standard_linkage_target.
5364 * rs6000-tdep.c (rs6000_skip_trampoline_code): Add FRAME argument.
5365 Pass it to find_solib_trampoline_target. Read registers from FRAME
5366 instead of using read_register.
5368 * xstormy16-tdep.c (xstormy16_skip_trampoline_code): Add FRAME
5371 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
5373 * gdbarch.sh (software_single_step): Replace REGCACHE argument by
5375 * gdbarch.c, gdbarch.h: Regenerate.
5376 * infrun.c (resume): Pass current frame to SOFTWARE_SINGLE_STEP.
5378 * alpha-tdep.c (alpha_next_pc): Add FRAME argument. Retrieve
5379 registers from FRAME instead of using read_register.
5380 (alpha_software_single_step): Replace REGCACHE by FRAME. Pass FRAME
5381 to alpha_next_pc. Use get_frame_pc instead of read_pc.
5382 * alpha-tdep.h (alpha_software_single_step): Replace REGCACHE
5385 * arm-tdep.c (shifted_reg_val): Add FRAME argument. Read registers
5386 from FRAME instead of using read_register.
5387 (thumb_get_next_pc): Likewise.
5388 (arm_get_next_pc): Likewise.
5389 (arm_software_single_step): Replace REGCACHE by FRAME. Pass FRAME
5390 to arm_get_next_pc. Use get_frame_pc instead of read_register.
5391 * arm-tdep.h (arm_software_single_step): Replace REGCACHE
5394 * cris-tdep.c (find_step_target): Add FRAME argument. Read registers
5395 from FRAME instead of using read_register.
5396 (cris_software_single_step): Replace REGCACHE by FRAME. Pass FRAME
5397 to find_step_target.
5399 * mips-tdep.c (mips32_next_pc): Add FRAME argument. Read registers
5400 from FRAME instead of using read_register / read_signed_register.
5401 (extended_mips16_next_pc): Likewise.
5402 (mips16_next_pc): Likewise.
5403 (mips_next_pc): Likewise.
5404 (mips_software_single_step): Replace REGCACHE by FRAME. Pass FRAME
5405 to mips_next_pc. Use get_frame_pc instead of read_pc.
5406 * mips-tdep.h (mips_software_single_step): Replace REGCACHE
5409 * rs6000-tdep.c (branch_dest): Add FRAME argument. Use it instead
5410 of current frame. Read registers from FRAME.
5411 (deal_with_atomic_sequence): Add FRAME argument. Pass it to
5412 branch_dest. Use get_frame_pc instead of read_pc.
5413 (rs6000_software_single_step): Likewise.
5414 (bl_to_blrl_insn_p): Do not call branch_dest.
5415 * rs6000-tdep.h (rs6000_software_single_step): Replace REGCACHE
5418 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Add FRAME argument.
5419 Read registers from FRAME instead of current regcache.
5420 * sparc-linux-tdep.c (sparc32_linux_step_trap): Likewise.
5421 * sparcnbsd-tdep.c (sparcnbsd_step_trap): Likewise.
5422 * sparc-tdep.c (sparc_address_from_register): Remove.
5423 (sparc_analyze_control_transfer): Pass FRAME argument instead of
5424 GDBARCH. Pass FRAME to step_trap callback.
5425 (sparc_step_trap): Add FRAME argument.
5426 (space_software_single_step): Replace REGCACHE by FRAME. Pass FRAME
5427 to sparc_analyze_control_transfer. Read registers from FRAME instead
5428 of calling sparc_address_from_register.
5429 * sparc-tdep.h (struct gdbarch_tdep): Add FRAME argument to
5431 (sparc_address_from_register): Remove prototype.
5432 (sparc_software_single_step): Replace REGCACHE argument by FRAME.
5433 (sparcnbsd_step_trap): Add FRAME argument.
5435 * spu-tdep.c (spu_software_single_step): Replace REGCACHE argument
5436 by FRAME. Read registers from FRAME instead of REGCACHE.
5438 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
5440 * arm-tdep.c (arm_print_float_info): Use register value from FRAME
5441 instead of calling read_register.
5443 * avr-tdep.c (avr_push_dummy_call): Write to REGCACHE instead of
5444 calling write_register.
5446 * hppa-tdep.c (hppa32_push_dummy_call): Write to REGCACHE instead of
5447 calling write_register.
5449 * ia64-tdep.c (find_func_descr): Add REGCACHE parameter. Use it
5450 instead of calling read_register.
5451 (ia64_push_dummy_call): Update call to find_func_descr. Use REGCACHE
5452 instead of calling read_register and write_register.
5454 * m32r-tdep.c (m32r_linux_supply_gregset): Use REGCACHE parameter
5455 instead of current_regcache.
5457 * mn10300-tdep.c (mn10300_push_dummy_call): Write to REGCACHE instead
5458 of calling write_register.
5459 * mn10300-linux-tdep.c (am33_supply_fpregset_method): Use REGCACHE
5460 parameter instead of current_regcache.
5462 * mips-tdep.c (mips2_fp_compat): Add FRAME parameter. Use it
5463 instead of calling read_register.
5464 (mips_read_fp_register_double, mips_print_fp_register): Update calls.
5465 (mips_eabi_push_dummy_call): Use REGCACHE instead of write_register.
5466 (mips_n32n64_push_dummy_call): Likewise.
5467 (mips_o32_push_dummy_call): Likewise.
5468 (mips_o64_push_dummy_call): Likewise.
5470 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Use REGCACHE
5471 parameter instead of current_regcache.
5473 * xtensa-tdep.c (xtensa_register_write_masked): Add REGCACHE parameter.
5474 Use it instead of read_register and write_register.
5475 (xtensa_register_read_masked): Likewise.
5476 (xtensa_pseudo_register_read): Update call.
5477 (xtensa_pseudo_register_write): Likewise.
5478 (xtensa_frame_cache): Use register values unwound from NEXT_FRAME
5479 instead of calling read_register.
5480 (xtensa_push_dummy_call): Update comment.
5482 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
5484 * mips-tdep.c (mips16_scan_prologue): Replace read_next_frame_reg
5485 by frame_unwind_register_signed calls.
5486 (mips32_scan_prologue): Likewise. Skip analysis of alloca stack
5487 frame allocations when called with NULL NEXT_FRAME parameter.
5488 (read_next_frame_reg): Remove.
5490 * sh-tdep.c (sh_analyze_prologue): Add FPSCR parameter. Use it
5491 instead of reading the FPSCR register.
5492 (sh_frame_cache): Pass unwound FPSCR register value to
5493 sh_analyze_prologue.
5494 (sh_skip_prologue): Pass dummy FPSCR value to sh_analyze_prologue.
5496 * v850-tdep.c (v850_analyze_prologue): Add CTBP parameter. Use it
5497 instead of reading the CTBP register.
5498 (v850_frame_cache): Pass unwound CTBP register value to
5499 v850_analyze_prologue.
5501 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
5503 * sh-tdep.h (sh_show_regs): Add FRAME parameter.
5504 * sh-tdep.c (sh_show_regs): Likewise.
5505 (sh_show_regs_command): Pass current frame to sh_show_regs routine.
5506 (sh_generic_show_regs): Add FRAME parameter. Use register
5507 values from that frame instead of calling read_register.
5508 (sh3_show_regs, sh2e_show_regs, sh2a_show_regs, sh2a_nofpu_show_regs,
5509 sh3e_show_regs, sh3_dsp_show_regs, sh4_show_regs, sh4_nofpu_show_regs,
5510 sh_dsp_show_regs): Likewise.
5511 * sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs,
5512 sh64_show_regs): Likewise.
5514 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
5516 * mips-tdep.c (deprecated_mips_set_processor_regs_hack): Read from
5517 current regcache instead of calling read_register.
5519 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
5521 * mep-tdep.c (current_me_module): Read from current regcache
5522 instead of calling read_register.
5523 (current_options): Likewise.
5525 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
5527 * cris-tdep.c (cris_stopped_data_address): Read register values
5528 from current frame instead of calling read_register.
5529 * frv-tdep.c (frv_stopped_data_address): Likewise.
5531 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
5533 * solib-sunos.c (sunos_solib_create_inferior_hook): Use write_pc
5534 instead of write_register (PC_REGNUM, ...).
5536 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
5538 * solib-sunos.c (sunos_solib_create_inferior_hook): Add comment
5539 explaining why the PC adjustment code is necessary.
5541 2007-06-15 Vladimir Prus <vladimir@codesourcery.com>
5543 * m68k-tdep.h (enum m68k_flavour): New.
5544 (struct gdbarch_tdep): New fields
5545 float_return, flavour and fpregs_present.
5546 * m68k-tdep.c (m68k_register_type): Use
5547 fpregs_present and conditionalize floating
5548 registers type on flavour.
5549 (m68k_register_names): New.
5550 (m68k_register_name): Use the above.
5551 (m68k_convert_register_p): Consult fpregs_present.
5552 (m68k_register_to_value, m68k_value_to_register):
5553 Use register_type to obtain the type of floating
5555 (m68k_svr4_extract_return_value): Check tdep->float_return.
5556 Use register_type to get the type of floating
5558 (m68k_svr4_store_return_value): Likewise.
5559 (m68k_dwarf_reg_to_regnum): Check tdep->fpregs_present.
5560 (m68k_analyze_register_saves): Likewise.
5561 (m68k_gdbarch_init): Extract infromation
5562 from XML description, if present. Guess coldfire by
5563 looking at the file, if present. Conditionalize
5564 setting of long double format. Set decr_pc_after_break
5565 to 2 on coldfire and fido. Enable XML-driven
5566 register description.
5567 * m68kbsd-tdep.c (m68kbsd_fpreg_offset): Use
5568 size of tdep->fpreg_type, as opposed to hardcoded value.
5569 * Makefile.in (m68k-tdep.o): Update dependencies.
5571 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
5573 * NEWS: Mention "info spu" commands and qXfer:spu:read and
5574 qXfer:spu:write remote packet types.
5576 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
5578 * xml-tdesc.c (tdesc_start_target): New.
5579 (target_attributes): New.
5580 (tdesc_elements): Use it.
5581 * features/gdb-target.dtd: Add #FIXED version attribute for
5584 2007-06-13 Arthur Huillet <arthur.huillet@free.fr>
5586 * mi/mi-cmd-var.c (mi_cmd_var_assign): Fix typo.
5588 2007-06-13 Claudio Fontana <claudio.fontana@gmail.com>
5590 * fork-child.c (fork_inferior): Update comment.
5592 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
5594 * features/Makefile: Generate regformats for mips-linux and
5596 * features/sort-regs.xsl: Correct typo.
5597 * regformats/reg-mips.dat, regformats/reg-mips64.dat: Delete.
5598 * regformats/mips-linux.dat, regformats/mips64-linux.dat: New generated
5601 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
5603 * config/mips/linux.mh (TDEP_XML): New.
5604 * features/mips-linux.xml, features/mips64-linux.xml: New files.
5605 * mips-linux-nat.c (mips_linux_register_addr): Handle
5606 MIPS_RESTART_REGNUM.
5607 (mips64_linux_register_addr): Likewise.
5608 (super_xfer_partial, mips_linux_xfer_partial): New.
5609 (_initialize_mips_linux_nat): Add them to the target_ops.
5610 * mips-linux-tdep.c (mips_supply_gregset): Handle MIPS_RESTART_REGNUM.
5611 (mips_fill_gregset, mips64_supply_gregset, mips64_fill_gregset)
5612 (mips_linux_o32_sigframe_init)
5613 (mips_linux_n32n64_sigframe_init): Likewise.
5614 (mips_linux_write_pc, mips_linux_restart_reg_p): New.
5615 (mips_linux_init_abi): Use mips_linux_write_pc. Check for the
5616 "org.gnu.gdb.mips.linux" feature.
5617 * mips-linux-tdep.h (MIPS_RESTART_REGNUM): New constant.
5618 (mips_linux_restart_reg_p): New prototype.
5619 * mips-tdep.c (mips_gdbarch_init): Pass tdesc_data to the OS/ABI
5620 initialization routine.
5621 * Makefile.in (mips-linux-tdep.o, mips-linux-nat.o): Update.
5623 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
5625 * Makefile.in (mips-tdep.o): Update.
5626 * mips-tdep.c (struct register_alias, mips_o32_aliases)
5627 (mips_n32_n64_aliases, mips_register_aliases): New.
5628 (mips_register_name): Call tdesc_register_name.
5629 (mips_tdesc_register_reggroup_p): New.
5630 (mips_pseudo_register_type, value_of_mips_user_reg): New.
5631 (mips_gdbarch_init): Add target-described register support.
5632 Register aliases for register names.
5633 * target-descriptions.c (tdesc_register_name): Make global.
5634 (tdesc_register_in_reggroup_p): New function, broken out from
5635 tdesc_register_reggroup_p.
5636 (tdesc_register_reggroup_p): Use it.
5637 * target-descriptions.h (tdesc_register_name)
5638 (tdesc_register_in_reggroup_p): New prototypes.
5639 * NEWS: Correct formatting. Mention MIPS register support.
5640 * features/mips-cp0.xml, features/mips-fpu.xml,
5641 features/mips64-cp0.xml, gdb/features/mips64-fpu.xml, mips-cpu.xml,
5642 features/mips64-cpu.xml: New files.
5644 2007-06-13 Markus Deuling <deuling@de.ibm.com>
5646 * gdbarch.sh (TARGET_ADDR_BIT): Replace by gdbarch_addr_bit.
5647 * valops.c (value_cast): Likewise.
5648 * utils.c (strlen_paddr, paddr, paddr_nz, paddress): Likewise.
5649 * ui-out.c (ui_out_field_core_addr): Likewise.
5650 * tracepoint.c (tracepoints_info): Likewise.
5651 * symtab.c (print_msymbol_info): Likewise.
5652 * solib-irix.c (irix_current_sos)
5653 (irix_open_symbol_file_object): Likewise.
5654 * remote.c (build_remote_gdbarch_data): Likewise.
5655 * prologue-value.c (make_pv_area): Likewise.
5656 * procfs.c (info_mappings_callback): Likewise.
5657 * printcmd.c (print_scalar_formatted)
5658 (deprecated_print_address_numeric): Likewise.
5659 * memattr.c (mem_info_command): Likewise.
5660 * linux-nat.c (linux_nat_info_proc_cmd): Likewise.
5661 * gdbtypes.c (build_flt, gdbtypes_post_init): Likewise.
5662 * exec.c (print_section_info): Likewise.
5663 * dwarf2read.c (read_subrange_type): Likewise.
5664 * dwarf2loc.c (find_location_expression): Likewise.
5665 * dwarf2expr.c (dwarf2_read_address, unsigned_address_type)
5666 (signed_address_type, execute_stack_op): Likewise.
5667 * breakpoint.c (print_one_breakpoint, breakpoint_1): Likewise.
5668 * gdbarch.c, gdbarch.h: Regenerate.
5670 2007-06-13 Markus Deuling <deuling@de.ibm.com>
5672 * gdbarch.sh (TARGET_ARCHITECTURE): Replace by gdbarch_bfd_arch_info.
5673 * arch-utils.c (show_architecture): Likewise.
5674 * remote-mips.c (mips_open): Likewise
5675 * nto-tdep.c (nto_find_and_open_solib)
5676 (nto_init_solib_absolute_prefix): Likewise.
5677 * nto-procfs (procfs_open): Likewise.
5678 * m68hc11-tdep.c (gdb_print_insn_m68hc11): Likewise.
5679 * gcore.c (default_gcore_mach, default_gcore_arch): Likewise.
5680 * gdbarch.c, gdbarch.h: Regenerate.
5682 2007-06-13 Markus Deuling <deuling@de.ibm.com>
5684 * gdbarch.sh (TARGET_BFD_VMA_BIT): Replace by gdbarch_bfd_vma_bit.
5685 * gdbtypes.c (build_flt): Likewise.
5686 * gdbarch.c, gdbarch.h: Regenerate.
5688 2007-06-13 Markus Deuling <deuling@de.ibm.com>
5690 * gdbarch.sh (BREAKPOINT_FROM_PC): Replace by
5691 gdbarch_breakpoint_from_pc.
5692 * s390-tdep.c (s390_gdbarch_init): Likewise (comment).
5693 * remote.c (remote_insert_breakpoint)
5694 (remote_insert_hw_breakpoint): Likewise.
5695 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Likewise.
5696 * mips-tdep.c (mips_breakpoint_from_pc): Likewise (comment).
5697 * breakpoint.h (bp_target_info): Likewise (comment).
5698 * breakpoint.c (read_memory_nobpt): Likewise.
5699 * mem-break.c (default_memory_insert_breakpoint): Likewise.
5700 (symtab.h, breakpoint.h): Remove include. Remove unnecessary comment.
5701 * gdbarch.c, gdbarch.h: Regenerate.
5703 2007-06-13 Markus Deuling <deuling@de.ibm.com>
5705 * gdbarch.sh (TARGET_PTR_BIT): Replace with gdbarch_ptr_bit.
5706 * solib-svr4.c (svr4_truncate_ptr): Likewise.
5707 * solib-pa64.c (read_dynamic_info): Likewise.
5708 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets): Likewise.
5709 * solib.c (info_sharedlibrary_command): Likewise.
5710 * s390-nat.c (SUBOFF): Likewise.
5711 * p-valprint.c (pascal_val_print): Likewise.
5712 * procfs.c (info_proc_mappings): Likewise.
5713 * printcmd.c (decode_format): Likewise.
5714 * nto-tdep.c (nto_truncate_ptr): Likewise.
5715 * mips-linux-tdep.c (mips_linux_get_longjmp_target)
5716 (mips64_linux_get_longjmp_target): Likewise.
5717 * m68k-tdep.c (m68k_get_longjmp_target): Likewise.
5718 * jv-valprint.c (java_value_print): Likewise.
5719 * jv-lang.c (get_java_object_header_size): Likewise.
5720 * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Likewise.
5721 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
5722 (hppa_hpux_unwind_adjust_stub): Likewise.
5723 * gnu-v3-abi.c (build_gdb_vtable_type): Likewise.
5724 * gdbtypes.c (make_pointer_type, make_reference_type)
5725 (smash_to_memberptr_type): Likewise.
5726 * gdbarch.c, gdbarch.h: Regenerate.
5728 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
5730 * mips-tdep.c (mips_print_register): Remove unused ALL argument.
5731 (print_gp_register_row): Stop before printing a register bigger
5732 than the ABI register size.
5733 (mips_print_registers_info): Update call to mips_print_register.
5735 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
5737 * expression.h (enum exp_opcode): Document a register name for
5739 * parse.c (write_dollar_variable): Write the register name for
5741 (operator_length_standard): Expect the register name following
5743 * ada-lang.c (resolve_subexp): Likewise.
5744 * ax-gdb.c (gen_expr): Likewise.
5745 * eval.c (evaluate_subexp_standard): Likewise.
5746 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
5748 * tracepoint.c (encode_actions): Likewise.
5750 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
5752 * utils.c (set_screen_size): Use INT_MAX for default columns.
5754 2007-06-13 Ulrich Weigand <uweigand@de.ibm.com>
5756 * remote.c (remote_protocol_features): Add qXfer:spu:read and
5757 qXfer:spu:write packet types.
5759 2007-06-12 Markus Deuling <deuling@de.ibm.com>
5761 * gdbarch.sh (DEPRECATED_STACK_ALIGN): Remove.
5762 * gdbarch.c, gdbarch.h: Regenerate.
5764 2007-06-12 Markus Deuling <deuling@de.ibm.com>
5766 * gdbarch.sh (STAB_REG_TO_REGNUM): Replace by
5767 gdbarch_stab_reg_to_regnum.
5768 * stabsread.c (define_symbol): Likewise.
5769 * gdbarch.sh (ECOFF_REG_TO_REGNUM): Replace by
5770 gdbarch_ecoff_reg_to_regnum.
5771 * mdebugread.c (parse_symbol): Likewise.
5772 * i386-tdep.c (i386_gdbarch_init): Likewise (comment).
5773 * gdbarch.sh (DWARF_REG_TO_REGNUM): Replace by
5774 gdbarch_dwarf_reg_to_regnum.
5775 * gdbarch.sh (SDB_REG_TO_REGNUM): Replace by gdbarch_sdb_reg_to_regnum.
5776 * coffread.c (process_coff_symbol): Likewise.
5777 * gdbarch.sh (DWARF2_REG_TO_REGNUM): Replace by
5778 gdbarch_dwarf2_reg_to_regnum.
5779 * dwarf2loc.c (dwarf_expr_read_reg,dwarf2_evaluate_loc_desc)
5780 (locexpr_describe_location): Likewise.
5781 * dwarf2-frame.c (read_reg,execute_cfa_program,dwarf2_frame_cache)
5782 (dwarf2_frame_prev_register,dwarf2_signal_frame_this_id): Likewise.
5783 * dwarf2loc.c (DWARF2_REG_TO_REGNUM): Remove macro.
5784 * dwarf2read.c (DWARF2_REG_TO_REGNUM): Remove macro.
5785 * gdbarch.c, gdbarch.h: Regenerate.
5787 2007-06-12 Markus Deuling <deuling@de.ibm.com>
5789 * gdbarch.sh (SMASH_TEXT_ADDRESS): Replace by
5790 gdbarch_smash_text_address.
5791 * somread.c (som_symtab_read): Likewise.
5792 * elfread.c (record_minimal_symbol): Likewise.
5793 * dbxread.c (process_one_symbol): Likewise.
5794 * coffread.c (coff_symtab_read): Likewise.
5795 * gdbarch.c, gdbarch.h: Regenerate.
5797 2007-06-12 Markus Deuling <deuling@de.ibm.com>
5799 * gdbarch.sh (REGISTER_TO_VALUE): Replace by gdbarch_register_to_value.
5800 * findvar.c (value_from_register): Likewise.
5801 * gdbarch.sh (VALUE_TO_REGISTER): Replace by gdbarch_value_to_register.
5802 * valops.c (value_assign): Likewise.
5803 * gdbarch.sh (CONVERT_REGISTER_P): Replace by
5804 gdbarch_convert_register_p.
5805 * findvar.c (value_from_register): Likewise.
5806 * valops.c (value_assign): Likewise.
5807 * gdbarch.c, gdbarch.h: Regenerate.
5809 2007-06-12 Markus Deuling <deuling@de.ibm.com>
5811 * gdbarch.sh (REGISTER_SIM_REGNO): Replace by
5812 gdbarch_register_sim_regno.
5813 * sim-regno.h (sim_regno): Likewise (comment).
5814 * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register): Likewise.
5815 * gdbarch.c, gdbarch.h: Regenerate.
5817 2007-06-12 Markus Deuling <deuling@de.ibm.com>
5819 * gdbarch.sh (TARGET_VIRTUAL_FRAME_POINTER): Replace by
5820 gdbarch_virtual_frame_pointer.
5821 * tracepoint.c (encode_actions): Likewise.
5822 * dwarf2loc.c (dwarf2_loc_desc_needs_frame): Likewise.
5823 * ax-gdb.c (gen_frame_args_address, gen_frame_locals_address): Likewise.
5824 * gdbarch.c, gdbarch.h: Regenerate.
5826 2007-06-12 Markus Deuling <deuling@de.ibm.com>
5828 * gdbarch.sh (TARGET_FLOAT_BIT): Replace by gdbarch_float_bit.
5829 * p-lang.c (pascal_create_fundamental_type): Likewise.
5830 * objc-lang.c (objc_create_fundamental_type): Likewise.
5831 * mdebugread.c (_initialize_mdebugread): Likewise.
5832 * m2-lang.c (m2_create_fundamental_type)
5833 (_initialize_m2_language): Likewise.
5834 * gdbtypes.c (build_gdbtypes): Likewise.
5835 * f-lang.c (f_create_fundamental_type, build_fortran_types): Likewise.
5836 * doublest.c (floatformat_from_length): Likewise.
5837 * c-lang.c (c_create_fundamental_type): Likewise.
5838 * ada-lang.c (ada_create_fundamental_type)
5839 (ada_language_arch_info): Likewise.
5840 * gdbarch.sh (TARGET_FLOAT_FORMAT): Replace by gdbarch_float_format.
5841 * value.c (unpack_double): Likewise (comment).
5842 * gdbtypes.c (build_gdbtypes): Likewise.
5843 * doublest.c (floatformat_from_length): Likewise.
5844 * gdbarch.sh (TARGET_DOUBLE_BIT): Replace by gdbarch_double_bit.
5845 * valarith.c (value_binop): Likewise.
5846 * p-lang.c (pascal_create_fundamental_type): Likewise.
5847 * objc-lang.c (objc_create_fundamental_type): Likewise.
5848 * mdebugread.c (_initialize_mdebugread): Likewise.
5849 * m2-lang.c (m2_create_fundamental_type): Likewise.
5850 * gdbtypes.c (build_gdbtypes): Likewise.
5851 * f-lang.c (f_create_fundamental_type, build_fortran_types): Likewise.
5852 * doublest.c (floatformat_from_length): Likewise.
5853 * cris-tdep.c (cris_gdbarch_init): Likewise (comment).
5854 * c-lang.c (c_create_fundamental_type): Likewise.
5855 * ada-lex.l (processReal): Likewise.
5856 * ada-lang.c (ada_create_fundamental_type)
5857 (ada_language_arch_info): Likewise.
5858 * gdbarch.sh (TARGET_DOUBLE_FORMAT): Replace by gdbarch_double_format.
5859 * value.c (unpack_double): Likewise (comment).
5860 * gdbtypes.c (build_gdbtypes): Likewise.
5861 * doublest.c (floatformat_from_length): Likewise.
5862 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Replace by
5863 gdbarch_long_double_bit.
5864 * p-lang.c (pascal_create_fundamental_type): Likewise.
5865 * objc-lang.c (objc_create_fundamental_type): Likewise.
5866 * m2-lang.c (m2_create_fundamental_type): Likewise.
5867 * gdbtypes.c (build_gdbtypes): Likewise.
5868 * f-lang.c (f_create_fundamental_type, build_fortran_types): Likewise.
5869 * doublest.c (floatformat_from_length): Likewise.
5870 * c-lang.c (c_create_fundamental_type): Likewise.
5871 * ada-lex.l (processReal): Likewise.
5872 * ada-lang.c (ada_create_fundamental_type)
5873 (ada_language_arch_info): Likewise.
5874 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Replace by
5875 gdbarch_long_double_format.
5876 * gdbtypes.c (build_gdbtypes): Likewise.
5877 * doublest.c (floatformat_from_length): Likewise.
5878 * gdbarch.c, gdbarch.h: Regenerate.
5880 2007-06-12 Markus Deuling <deuling@de.ibm.com>
5882 * gdbarch.sh (TARGET_SHORT_BIT): Replace by gdbarch_int_bit.
5883 * ada-lang.c (ada_create_fundamental_type)
5884 (ada_language_arch_info): Likewise.
5885 * c-lang.c (c_create_fundamental_type): Likewise.
5886 * f-lang.c (f_create_fundamental_type, build_fortran_types): Likewise.
5887 * gdbtypes.c (build_gdbtypes, gdbtypes_post_init): Likewise.
5888 * m2-lang.c (m2_create_fundamental_type): Likewise.
5889 * objc-lang.c (objc_create_fundamental_type): Likewise.
5890 * p-lang.c (pascal_create_fundamental_type): Likewise.
5891 * gdbarch.sh (TARGET_INT_BIT): Replace by gdbarch_int_bit.
5892 * c-exp.y (parse_number): Likewise.
5893 * objc-exp.y (parse_number): Likewise.
5894 * ada-lex.l (processInt): Likewise.
5895 * f-exp.y (parse_number): Likewise.
5896 * p-exp.y (parse_number): Likewise.
5897 * ada-lang.c (ada_create_fundamental_type, ada_language_arch_info)
5898 (gdbtypes_post_init, build_gdbtypes): Likewise.
5899 * p-lang.c (pascal_create_fundamental_type): Likewise.
5900 * parse.c (build_parse): Likewise.
5901 * xcoffread.c (_initialize_xcoffread): Likewise.
5902 * stabsread.c (define_symbol, read_one_struct_field, read_enum_type)
5903 (read_range_type): Likewise.
5904 * objc-lang.c (objc_create_fundamental_type): Likewise.
5905 * f-lang.c (build_fortran_types, f_create_fundamental_type): Likewise.
5906 * m2-lang.c (m2_create_fundamental_type, _initialize_m2_language)
5907 (m2_create_fundamental_type): Likewise.
5908 * c-lang.c (c_create_fundamental_type): Likewise.
5909 * coffread.c (coff_read_enum_type): Likewise.
5910 * mdebugread.c (parse_symbol, _initialize_mdebugread): Likewise.
5911 * dwarf2read.c (new_symbol): Likewise.
5912 * gdbarch.sh (TARGET_LONG_BIT): Replace by gdbarch_long_bit.
5913 * c-exp.y (parse_number): Likewise.
5914 * objc-exp.y (parse_number): Likewise.
5915 * ada-lex.l (processInt): Likewise.
5916 * f-exp.y (parse_number): Likewise.
5917 * p-exp.y (parse_number): Likewise.
5918 * valarith.c (value_binop): Likewise.
5919 * symfile.c (read_target_long_array, simple_overlay_update_1): Likewise.
5920 * ada-lang.c (ada_create_fundamental_type)
5921 (ada_language_arch_info): Likewise.
5922 * gdbtypes.c (build_gdbtypes, gdbtypes_post_init): Likewise.
5923 * symfile.c (TARGET_LONG_BYTES): Likewise.
5924 * p-lang.c (pascal_create_fundamental_type): Likewise.
5925 * objc-lang.c (objc_create_fundamental_type): Likewise.
5926 * m2-lang.c (m2_create_fundamental_type): Likewise.
5927 * f-lang.c (f_create_fundamental_type): Likewise.
5928 * c-lang.c (c_create_fundamental_type): Likewise.
5929 * coffread.c (decode_base_type): Likewise.
5930 * gdbarch.sh (TARGET_LONG_LONG_BIT): Replace by gdbarch_long_long_bit.
5931 * c-exp.y (parse_number): Likewise.
5932 * objc-exp.y (parse_number): Likewise.
5933 * p-exp.y (parse_number): Likewise.
5934 * ada-lang.c (ada_create_fundamental_type)
5935 (ada_language_arch_info): Likewise.
5936 * gdbtypes.c (gdbtypes_post_init, build_gdbtypes): Likewise.
5937 * stabsread.c (read_range_type): Likewise.
5938 * p-lang.c (pascal_create_fundamental_type): Likewise.
5939 * objc-lang.c (objc_create_fundamental_type): Likewise.
5940 * m2-lang.c (m2_create_fundamental_type): Likewise.
5941 * f-lang.c (f_create_fundamental_type): Likewise.
5942 * c-lang.c (c_create_fundamental_type): Likewise.
5943 * gdbarch.c, gdbarch.h: Regenerate.
5945 2007-06-12 Andreas Schwab <schwab@suse.de>
5947 * frame-unwind.h (frame_dealloc_cache_ftype): Define.
5948 (struct frame_unwind): Add dealloc_cache.
5949 * frame.c (reinit_frame_cache): Call dealloc_cache on all caches.
5951 * libunwind-frame.h (libunwind_frame_dealloc_cache): Declare.
5952 * libunwind-frame.c (libunwind_frame_dealloc_cache): Define.
5953 (libunwind_frame_unwind): Set dealloc_cache.
5954 * ia64-tdep.c (ia64_libunwind_frame_unwind): Set dealloc_cache.
5956 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
5957 Markus Deuling <deuling@de.ibm.com>
5959 * remote.c (remote_write_qxfer): New function.
5960 (remote_xfer_partial): Add handling for TARGET_OBJECT_SPU.
5961 (remote_read_qxfer): Do not cache empty objects.
5962 (_initialize_remote): Add PACKET_qXfer_spu_read and
5963 PACKET_qXfer_spu_write.
5965 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
5967 * target.h (enum target_object): Add TARGET_OBJECT_SPU.
5968 * spu-linux-nat.c (spu_xfer_partial): Handle TARGET_OBJECT_SPU.
5970 * spu-tdep.h (SPU_NUM_PSEUDO_REGS): Add 5 pseudo registers.
5971 (enum spu_regnum): Add SPU_FPSCR_REGNUM, SPU_SRR0_REGNUM,
5972 SPU_LSLR_REGNUM, SPU_DECR_REGNUM, SPU_DECR_STATUS_REGNUM.
5973 * spu-tdep.c (infospucmdlist): New variable.
5974 (spu_register_name): Handle additional pseudo registers.
5975 (spu_register_type): Likewise.
5976 (spu_pseudo_register_read): Likewise.
5977 (spu_pseudo_register_write): Likewise.
5978 (spu_pseudo_register_read_spu): New function.
5979 (spu_pseudo_register_write_spu): Likewise.
5980 (info_spu_event_command): New function.
5981 (info_spu_signal_command): Likewise.
5982 (info_spu_mailbox_list): Likewise.
5983 (info_spu_mailbox_command): Likewise.
5984 (spu_mfc_get_bitfield): Likewise.
5985 (info_spu_dma_cmdlist): Likewise.
5986 (info_spu_dma_command): Likewise.
5987 (info_spu_proxydma_command): Likewise.
5988 (info_spu_command): Likewise.
5989 (_initialize_spu_tdep): Install "info spu" commands.
5991 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
5993 * spu-linux-nat.c (spu_proc_xfer_spu): Do not return failure when
5994 accessing non-seekable spufs files.
5996 2007-06-09 Markus Deuling <deuling@de.ibm.com>
5998 * gdbarch.sh (SKIP_TRAMPOLINE_CODE): Replace by
5999 gdbarch_skip_trampoline_code.
6000 * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Likewise (comment).
6001 * objc-lang.c (objc_skip_trampoline)
6002 (objc_submethod_helper_data): Likewise.
6003 * m32c-lang.c (m32c_skip_trampoline_code): Likewise (comment).
6004 * infrun.c (handle_inferior_event): Likewise.
6005 * gnu-v3-abi.c (gnuv3_skip_trampoline): Likewise.
6006 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Replace by
6007 gdbarch_in_solib_return_trampoline.
6008 * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Likewise (comment).
6009 * infrun.c (handle_inferior_event): Likewise.
6010 * hppa-tdep.c (hppa_stub_unwind_sniffer): Likewise.
6011 * gdbarch.c, gdbarch.h: Regenerate.
6013 2007-06-09 Markus Deuling <deuling@de.ibm.com>
6015 * gdbarch.sh (SKIP_PROLOGUE): Replace by gdbarch_skip_prologue.
6016 * symtab.c (find_function_start_sal, in_prologue): Likewise.
6017 * linespec.c (minsym_found): Likewise.
6018 * infrun.c (step_into_function): Likewise.
6019 * gdbarch.c, gdbarch.h: Regenerate.
6021 2007-06-09 Markus Deuling <deuling@de.ibm.com>
6023 * gdbarch.sh (NAME_OF_MALLOC): Replace by gdbarch_name_of_malloc.
6024 * valops.c (value_allocate_space_in_inferior): Likewise.
6025 * gdbarch.c, gdbarch.h: Regenerate.
6027 2007-06-09 Markus Deuling <deuling@de.ibm.com>
6029 * gdbarch.sh (MEMORY_INSERT_BREAKPOINT): Replace by
6030 gdbarch_memory_insert_breakpoint.
6031 * mem-break.c (memory_insert_breakpoint): Likewise.
6032 * gdbarch.sh (MEMORY_REMOVE_BREAKPOINT): Replace by
6033 gdbarch_memory_remove_breakpoint.
6034 * mem-break.c (memory_remove_breakpoint): Likewise.
6035 * gdbarch.c, gdbarch.h: Regenerate.
6037 2007-06-09 Markus Deuling <deuling@de.ibm.com>
6039 * gdbarch.sh (FETCH_TLS_LOAD_MODULE_ADDRESS): Replace by
6040 gdbarch_fetch_tls_load_module_address.
6041 * gdbarch.sh (FETCH_TLS_LOAD_MODULE_ADDRESS_P): Replace by
6042 gdbarch_fetch_tls_load_module_address_p.
6043 * gdbarch.c, gdbarch.h: Regenerate.
6045 2007-06-09 Markus Deuling <deuling@de.ibm.com>
6047 * gdbarch.sh (DECR_PC_AFTER_BREAK): Replace by
6048 gdbarch_decr_pc_after_break.
6049 * tracepoint.c (trace_dump_command): Likewise.
6050 * solib-sunos.c (sunos_solib_create_inferior_hook): Likewise.
6051 * linux-thread-db.c (check_event): Likewise.
6052 * linux-nat.c (cancel_breakpoints_callback): Likewise.
6053 * infrun.c (adjust_pc_after_break, normal_stop): Likewise.
6054 * frame.h: Likewise (comment).
6055 * dummy-frame.c (deprecated_pc_in_call_dummy): Likewise.
6056 * aix-thread.c (aix_thread_wait): Likewise.
6057 * gdbarch.c, gdbarch.h: Regenerate.
6059 2007-06-09 Markus Deuling <deuling@de.ibm.com>
6061 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS): Replace by
6062 gdbarch_address_class_type_flags.
6063 * dwarf2read.c (read_tag_pointer_type): Likewise.
6064 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS_P): Replace by
6065 gdbarch_address_class_type_flags_p.
6066 * dwarf2read.c (read_tag_pointer_type): Likewise.
6067 * gdbarch.c, gdbarch.h: Regenerate.
6069 2007-06-09 Markus Deuling <deuling@de.ibm.com>
6071 * gdbarch.sh (ADDR_BITS_REMOVE): Replace by gdbarch_addr_bits_remove.
6072 * value.c (value_as_address): Likewise (comment).
6073 * remote-mips.c (common_breakpoint): Likewise.
6074 * regcache.c (read_pc_pid): Likewise.
6075 * printcmd.c (do_one_display): Likewise.
6076 * monitor.c (monitor_write_memory, monitor_read_memory)
6077 (monitor_insert_breakpoint): Likewise.
6078 * mips-tdep.c (heuristic_proc_start): Likewise.
6079 * infrun.c (insert_step_resume_breakpoint_at_frame)
6080 (insert_step_resume_breakpoint_at_caller): Likewise.
6081 * buildsym.c (record_line): Likewise.
6082 * arm-tdep.c (arm_scan_prologue, thumb_get_next_pc)
6083 (arm_get_next_pc): Likewise.
6084 * armnbsd-nat.c (arm_supply_gregset, fetch_register, store_register)
6085 (store_regs): Likewise.
6086 * arm-linux-tdep.c (arm_linux_supply_gregset): Likewise.
6087 * arm-linux-nat.c (fetch_register, fetch_regs): Likewise.
6088 * gdbarch.c, gdbarch.h: Regenerate.
6090 2007-06-09 Markus Deuling <deuling@de.ibm.com>
6092 * gdbarch.sh (REGISTER_NAME): Replace by gdbarch_register_name.
6093 * tracepoint.c (scope_info): Likewise.
6094 * target.c (debug_print_register): Likewise.
6095 * stack.c (frame_info): Likewise.
6096 * sh-tdep.c (sh_register_reggroup_p): Likewise.
6097 * sh64-tdep.c (sh64_do_fp_register, sh64_do_register)
6098 (sh64_media_print_registers_info)
6099 (sh64_compact_print_registers_info): Likewise.
6100 * rs6000-tdep.c (rs6000_register_reggroup_p): Likewise.
6101 * remote-sim.c (gdbsim_fetch_register): Likewise.
6102 * remote.c (packet_reg): Likewise (comment).
6103 * reggroups.c (default_register_reggroup_p): Likewise.
6104 * regcache.c (regcache_dump): Likewise.
6105 * printcmd.c (address_info): Likewise.
6106 * ppc-linux-nat.c (fetch_register, store_register): Likewise.
6107 * mt-dep.c (mt_registers_info): Likewise.
6108 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Likewise (comment).
6109 * mips-tdep.c (mips_register_reggroup_p, mips_read_fp_register_single)
6110 (mips_read_fp_register_double, mips_print_fp_register)
6111 (mips_print_register, print_gp_register_row, mips_print_registers_info)
6112 (mips_register_sim_regno): Likewise.
6113 * m68klinux-nat.c (regmap, fetch_register, store_register): Likewise.
6114 * inf-ptrace.c (inf_ptrace_fetch_register)
6115 (inf_ptrace_store_register): Likewise.
6116 * infcmd.c (default_print_registers_info): Likewise.
6117 * ia64-linux-nat.c (ia64_linux_fetch_register)
6118 (ia64_linux_store_register): Likewise.
6119 * i386-linux-nat.c (fetch_register, store_register): Likewise.
6120 * i386gnu-nat.c (gnu_fetch_registers, gnu_store_registers): Likewise.
6121 * hppa-linux-nat.c (fetch_register, store_register): Likewise.
6122 * hppa-hpux-nat.c (hppa_hpux_fetch_register)
6123 (hppa_hpux_store_register): Likewise.
6124 * findvar.c (locate_var_value): Likewise.
6125 * dwarf2loc.c (locexpr_describe_location): Likewise.
6126 * dwarf2-frame.c (execute_cfa_program): Likewise.
6127 * arm-tdep.c (arm_push_dummy_call): Likewise.
6128 * arch-utils.c (legacy_register_sim_regno): Likewise.
6129 * alpha-tdep.c (alpha_register_reggroup_p): Likewise.
6130 * alpha-nat.c (fetch_osf_core_registers): Likewise.
6131 * mi/mi-main.c (mi_cmd_data_list_register_names)
6132 (mi_cmd_data_list_changed_registers, mi_cmd_data_list_register_values)
6133 (mi_cmd_data_write_register_values): Likewise.
6134 * gdbarch.c, gdbarch.h: Regenerate.
6136 2007-06-07 Daniel Jacobowitz <dan@codesourcery.com>
6138 * target-memory.c (blocks_to_erase): Correct off-by-one error.
6140 2007-06-06 Vladimir Prus <vladimir@codesourcery.com>
6142 * remote.c (process_g_packet): Don't check size.
6143 * gdbarch.sh: Remove register_bytes_ok.
6144 * gdbarch.c: Regenerated.
6145 * gdbarch.h: Regenerated.
6146 * m68k-tdep.c (REGISTER_BYTES_NOFP): Remove.
6147 (m68k_register_bytes_ok): Remove.
6148 (m68k_gdbarch_init): Don't register m68k_register_bytes_ok.
6150 2007-06-06 Andreas Schwab <schwab@suse.de>
6152 * libunwind-frame.c (unw_destroy_addr_space_p): Define.
6153 (destroy_addr_space_name): Define.
6154 (libunwind_load): Get address of destroy_addr_space function.
6155 (libunwind_frame_cache): Destroy unw_addr_space_t object before
6156 returning unsuccessfully.
6157 (libunwind_frame_sniffer): Destroy unw_addr_space_t object before
6159 (libunwind_sigtramp_frame_sniffer): Likewise.
6160 (libunwind_get_reg_special): Likewise.
6162 2007-06-06 Markus Deuling <deuling@de.ibm.com>
6164 * gdbarch.sh (FETCH_POINTER_ARGUMENT): Replace by
6165 gdbarch_fetch_pointer_argument.
6166 * objc-lang.c (OBJC_FETCH_POINTER_ARGUMENT): Likewise.
6167 * gdbarch.c, gdbarch.h: Regenerate.
6169 2007-06-06 Markus Deuling <deuling@de.ibm.com>
6171 * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Replace by
6172 gdbarch_have_nonsteppable_watchpoint.
6173 * infrun.c (handle_inferior_event, adjust_pc_after_break): Likewise.
6174 * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Replace by
6175 gdbarch_cannot_step_breakpoint.
6176 * infrun.c (resume): Likewise.
6177 * gdbarch.c, gdbarch.h: Regenerate.
6179 2007-06-06 Markus Deuling <deuling@de.ibm.com>
6181 * gdbarch.sh (FRAME_ARGS_SKIP): Replace by gdbarch_frame_args_skip.
6182 * stack.c (print_frame_args): Likewise.
6183 * gdbarch.sh (FRAME_NUM_ARGS): Replace by gdbarch_frame_num_args.
6184 * stack.c (print_args_stub, frame_info): Likewise.
6185 * gdbarch.sh (FRAME_NUM_ARGS_P): Replace by gdbarch_frame_num_args_p.
6186 * stack.c (print_args_stub, frame_info): Likewise.
6187 * gdbarch.c, gdbarch.h: Regenerate.
6189 2007-06-06 Markus Deuling <deuling@de.ibm.com>
6191 * gdbarch.sh (COFF_MAKE_MSYMBOL_SPECIAL): Replace by
6192 gdbarch_coff_make_msymbol_special.
6193 * coffread.c (coff_symtab_read): Likewise.
6194 * gdbarch.sh (ELF_MAKE_MSYMBOL_SPECIAL): Replace by
6195 gdbarch_elf_make_msymbol_special.
6196 * elfread.c (elf_symtab_read): Likewise.
6197 * mips-tdep.c (mips_elf_make_msymbol_special): Likewise (comment).
6198 * sh64-tdep.c (MSYMBOL_IS_SPECIAL): Likewise (comment).
6199 * gdbarch.c, gdbarch.h: Regenerate.
6201 2007-06-06 Markus Deuling <deuling@de.ibm.com>
6203 * gdbarch.sh (FRAME_RED_ZONE_SIZE): Replace by
6204 gdbarch_frame_red_zone_size.
6205 * gdbarch.c, gdbarch.h: Regenerate.
6207 2007-06-06 Markus Deuling <deuling@de.ibm.com>
6209 * gdbarch.sh (INNER_THAN): Replace by gdbarch_inner_than.
6210 * infcall.c (call_function_by_hand): Likewise.
6211 * gcore.c (derive_stack_segment): Likewise.
6212 * frame.c (frame_id_inner): Likewise.
6213 * arch-utils.c (core_addr_lessthan): Likewise (comment).
6214 * ada-lang.c (ensure_lval): Likewise.
6215 * gdbarch.c, gdbarch.h: Regenerate.
6217 2007-06-06 Markus Deuling <deuling@de.ibm.com>
6219 * gdbarch.sh (ADDRESS_TO_POINTER): Replace by
6220 gdbarch_address_to_pointer.
6221 * findvar.c (store_typed_address): Likewise.
6222 * gdbtypes.c (make_pointer_type): Likewise (comment).
6223 * procfs.c (procfs_address_to_host_pointer): Likewise.
6224 * std-regs.c (value_of_builtin_frame_reg): Likewise.
6225 (value_of_builtin_frame_fp_reg): Likewise.
6226 (value_of_builtin_frame_pc_reg): Likewise.
6227 * utils.c (paddress): Likewise (comment).
6228 * gdbarch.sh (POINTER_TO_ADDRESS): Replace by
6229 gdbarch_pointer_to_address.
6230 * findvar.c (extract_typed_address): Likewise.
6231 * gdbtypes.c (make_pointer_type): Likewise (comment).
6232 * valops.c (value_cast): Likewise (comment).
6233 * gdbarch.c, gdbarch.h: Regenerate.
6235 2007-06-06 Markus Deuling <deuling@de.ibm.com>
6237 * gdbarch.sh (GET_LONGJMP_TARGET): Replace by gdbarch_get_longjmp_target.
6238 * infrun.c (handle_inferior_event): Likewise.
6239 * gdbarch.sh (GET_LONGJMP_TARGET_P): Replace by
6240 gdbarch_get_longjmp_target_p.
6241 * breakpoint.c (breakpoint_re_set): Likewise.
6242 * infrun.c (handle_inferior_event): Likewise.
6243 * gdbarch.c, gdbarch.h: Regenerate.
6245 2007-06-06 Ulrich Weigand <uweigand@de.ibm.com>
6247 * hppa-hpux-tdep.c (args_for_find_stub, HP_ACC_EH_notify_hook,
6248 HP_ACC_EH_set_hook_value, HP_ACC_EH_notify_callback, HP_ACC_EH_break,
6249 HP_ACC_EH_catch_throw, HP_ACC_EH_catch_catch, __eh_notification,
6250 hp_cxx_exception_support, hp_cxx_exception_support_initialized,
6251 eh_notify_hook_addr, eh_notify_callback_addr, eh_break_addr,
6252 eh_catch_throw_addr, break_callback_sal, setup_d_pid_in_inferior,
6253 find_stub_with_shl_get, cover_find_stub_with_shl_get,
6254 initialize_hp_cxx_exception_support, child_enable_exception_callback,
6255 current_ex_event, child_get_current_exception_event): Remove.
6256 (hppa_hpux_inferior_created): Remove.
6257 (hppa_hpux_init_abi): Do not install hppa_hpux_inferior_created.
6259 * breakpoint.h (deprecated_exception_catchpoints_are_fragile): Remove.
6260 (deprecated_exception_support_initialized): Remove.
6261 * breakpoint.c (deprecated_exception_catchpoints_are_fragile): Remove.
6262 (deprecated_exception_support_initialized): Remove.
6263 (breakpoint_init_inferior): Remove handling of non-zero
6264 deprecated_exception_catchpoints_are_fragile.
6266 * symtab.h (deprecated_hp_som_som_object_present): Remove.
6267 * symtab.c (deprecated_hp_som_som_object_present): Remove.
6268 * c-typeprint.c (c_type_print_base): Remove handling of non-zero
6269 deprecated_hp_som_som_object_present.
6270 * eval.c (evaluate_subexp_standard): Likewise.
6271 * valops.c (value_cast): Likewise.
6273 * parse.c (parse_nested_classes_for_hpacc, coloncolon): Remove.
6274 * parser-defs.h (parse_nested_classes_for_hpacc): Remove.
6275 * c-exp.y (yylex): Do not call parse_nested_classes_for_hpacc.
6277 2007-06-06 Ulrich Weigand <uweigand@de.ibm.com>
6279 * objfiles.h (ImportEntry, ExportEntry): Remove types.
6280 (struct objfile): Remove import_list, import_list_size,
6281 export_list, export_list_size members.
6282 (is_in_import_list): Remove prototype.
6283 * objfiles.c (is_in_import_list): Remove.
6284 * somread.c (init_import_symbols, init_export_symbols): Remove.
6285 (som_symfile_read): Do not call init_import_symbols. Do not
6286 set objfile->export_list and objfile->export_list_size.
6288 2007-06-05 Daniel Jacobowitz <dan@codesourcery.com>
6290 * dwarf2read.c (dwarf2_symbol_mark_computed): Fix formatting.
6291 Use the original objfile if necessary.
6293 2007-06-04 Daniel Jacobowitz <dan@codesourcery.com>
6295 * defs.h (ldirname): New prototype.
6296 * dwarf2read.c (read_file_scope): Use DW_AT_name if DW_AT_comp_dir is
6298 * utils.c (ldirname): New function.
6299 * xml-tdesc.c (file_read_description_xml): Use ldirname.
6301 2007-06-01 Ulrich Weigand <uweigand@de.ibm.com>
6303 * spu-tdep.c (spu_push_dummy_call): Store stack back chain.
6305 2007-06-01 Joel Brobecker <brobecker@adacore.com>
6307 * solib-svr4.c (svr4_solib_create_inferior_hook): Remove warning.
6309 2007-06-01 Ulrich Weigand <uweigand@de.ibm.com>
6311 * irix5-nat.c (JB_ELEMENT_SIZE, get_longjmp_target): Remove.
6313 2007-06-01 Ulrich Weigand <uweigand@de.ibm.com>
6315 * ppc-linux-tdep.c (INSTR_SC, INSTR_LI_R0_0x6666, INSTR_LI_R0_0x7777,
6316 INSTR_LI_R0_NR_sigreturn, INSTR_LI_R0_NR_rt_sigreturn): Remove.
6317 (PPC_LINUX_SIGNAL_FRAMESIZE, PPC_LINUX_REGS_PTR_OFFSET,
6318 PPC_LINUX_HANDLER_PTR_OFFSET): Remove.
6319 (ppc_linux_in_sigtramp, insn_is_sigreturn,
6320 ppc_linux_at_sigtramp_return_path): Remove.
6322 2007-05-31 Markus Deuling <deuling@de.ibm.com>
6324 * xtensa-tdep.c (XTENSA_IS_ENTRY, extract_call_winsize)
6325 (xtensa_register_write_masked, xtensa_register_read_masked)
6326 (xtensa_extract_return_value, xtensa_store_return_value
6327 (xtensa_push_dummy_call, xtensa_breakpoint_from_pc): Replace
6328 TARGET_BYTE_ORDER by gdbarch_byte_order.
6329 * sh-tdep.c (sh_breakpoint_from_pc, gdb_print_insn_sh)
6330 (sh_justify_value_in_reg, sh_next_flt_argreg, sh_push_dummy_call_fpu)
6331 (sh_extract_return_value_fpu, sh_store_return_value_fpu): Likewise.
6332 * sh64-tdep.c (sh64_breakpoint_from_pc, gdb_print_insn_sh64)
6333 (sh64_push_dummy_call, sh64_extract_return_value)
6334 (sh64_store_return_value, sh64_register_convert_to_virtual)
6335 (sh64_register_convert_to_raw, sh64_pseudo_register_read)
6336 (sh64_pseudo_register_write, sh64_do_fp_register)
6337 (sh64_frame_prev_register): Likewise.
6338 * score-tdep.c (score_print_insn, score_breakpoint_from_pc)
6339 (score_return_value, score_push_dummy_call, score_fetch_inst): Likewise.
6340 * rs6000-tdep.c (rs6000_breakpoint_from_pc, rs6000_push_dummy_call)
6341 (e500_move_ev_register,gdb_print_insn_powerpc): Likewise.
6342 * remote-m32r-sdi.c (m32r_resume, m32r_wait): Likewise.
6343 * ppc-linux-nat.c (store_register): Likewise.
6344 * nto-tdep.c (nto_find_and_open_solib)
6345 (nto_init_solib_absolute_prefix): Likewise.
6346 * mips-tdep.c (mips_pseudo_register_read, mips_pseudo_register_write)
6347 (mips_convert_register_p, mips_eabi_push_dummy_call)
6348 (mips_n32n64_push_dummy_call, mips_n32n64_return_value)
6349 (mips_o32_push_dummy_call, mips_o32_return_value)
6350 (mips_o64_push_dummy_call, mips_o64_return_value, mips_o64_return_value)
6351 (mips_read_fp_register_single, mips_read_fp_register_double)
6352 (mips_print_register, print_gp_register_row, gdb_print_insn_mips)
6353 (mips_breakpoint_from_pc): Likewise.
6354 * mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset): Likewise.
6355 * mips-linux-tdep.c (mips64_supply_fpregset, mips64_fill_fpregset)
6356 (mips_linux_o32_sigframe_init): Likewise.
6357 * m32r-tdep.c (m32r_memory_insert_breakpoint)
6358 (m32r_memory_remove_breakpoint, m32r_breakpoint_from_pc): Likewise.
6359 * libunwind-frame.c (libunwind_frame_cache, libunwind_frame_sniffer)
6360 (libunwind_sigtramp_frame_sniffer, libunwind_get_reg_special): Likewise.
6361 * iq2000-tdep.c (iq2000_breakpoint_from_pc): Likewise.
6362 * coffread.c (process_coff_symbol): Likewise.
6363 * arm-tdep.c (convert_from_extended, convert_to_extended)
6364 (gdb_print_insn_arm): Likewise.
6366 2007-05-31 Markus Deuling <deuling@de.ibm.com>
6368 * gdbarch.sh (NUM_REGS): Replace by gdbarch_num_regs.
6369 * i386-tdep.c (i386_dbx_reg_to_regnum)
6370 (i386_svr4_reg_to_regnum): Likewise.
6371 * inf-ptrace.c (inf_ptrace_fetch_registers)
6372 (inf_ptrace_store_registers): Likewise.
6373 * corelow.c (get_core_registers): Likewise.
6374 * i386-linux-nat.c (supply_gregset, fill_gregset)
6375 (i386_linux_fetch_inferior_registers)
6376 (i386_linux_store_inferior_registers): Likewise.
6377 * remote.c (init_remote_state,packet_reg_from_regnum)
6378 (packet_reg_from_pnum,process_g_packet,remote_fetch_registers)
6379 (remote_prepare_to_store,store_registers_using_G)
6380 (remote_store_registers,remote_arch_state): Likewise.
6381 * tracepoint.c (encode_actions): Likewise.
6382 * mi/mi-main.c (mi_cmd_data_list_register_names)
6383 (mi_cmd_data_list_changed_registers,mi_cmd_data_list_register_values)
6384 (mi_cmd_data_write_register_values): Likewise.
6385 * tui/tui-regs.c (tui_show_register_group)
6386 (tui_show_register_group): Likewise.
6387 * xtensa-tdep.h (FP_ALIAS): Likewise.
6388 * xtensa-tdep.c (xtensa_register_name,xtensa_register_type)
6389 (xtensa_reg_to_regnum,xtensa_pseudo_register_read)
6390 (xtensa_pseudo_register_write,xtensa_register_reggroup_p): Likewise.
6391 * win32-nat.c (do_win32_fetch_inferior_registers)
6392 (do_win32_store_inferior_registers,fetch_elf_core_registers
6393 * user-regs.h: Likewise (comment).
6394 * user-regs.c (user_reg, user_reg_map_name_to_regnum): Likewise.
6395 * trad-frame.c (trad_frame_alloc_saved_regs): Likewise.
6396 * target-descriptions.h: Likewise (comment).
6397 * target-descriptions.c (tdesc_use_registers): Likewise (comment).
6398 * target.c (debug_print_register): Likewise.
6399 * stack.c (frame_info): Likewise.
6400 * stabsread.c (define_symbol): Likewise.
6401 * sh64-tdep.c (sh64_do_pseudo_register,sh64_print_register)
6402 (sh64_media_print_registers_info)
6403 (sh64_compact_print_registers_info): Likewise.
6404 * rs6000-tdep.c (rs6000_register_sim_regno): Likewise.
6405 * rs6000-nat.c (fetch_register,store_register): Likewise.
6406 * remote-sim.c (one2one_register_sim_regno,gdbsim_fetch_register)
6407 (gdbsim_fetch_register,gdbsim_store_register): Likewise.
6408 * remote-mips.c (mips_fetch_registers,mips_store_registers): Likewise.
6409 * remote-m32r-sdi.c (m32r_fetch_registers)
6410 (m32r_store_registers): Likewise.
6411 * reggroups.c (default_register_reggroup_p): Likewise.
6412 * regcache.c (init_regcache_descr,register_size,regcache,regcache_save)
6413 (regcache_restore,regcache_dump): Likewise.
6414 * monitor.c (monitor_fetch_registers,monitor_store_registers): Likewise.
6415 * mips-tdep.c (mips_xfer_register,mips_register_name)
6416 (mips_register_reggroup_p,mips_pseudo_register_read)
6417 (mips_pseudo_register_write,mips_convert_register_p,mips_register_type)
6418 (mips_unwind_pc,mips_unwind_sp,mips_unwind_dummy_id,set_reg_offset)
6419 (mips16_scan_prologue,mips_insn16_frame_cache,reset_saved_regs)
6420 (mips32_scan_prologue,mips_insn32_frame_cache,read_next_frame_reg)
6421 (mips_n32n64_return_value,mips_o32_return_value,mips_o64_return_value)
6422 (print_gp_register_row,mips_print_registers_info)
6423 (mips_stab_reg_to_regnum,mips_dwarf_dwarf2_ecoff_reg_to_regnum)
6424 (mips_register_sim_regno): Likewise.
6425 * mips-linux-tdep.c (mips_linux_o32_sigframe_init)
6426 (mips_linux_n32n64_sigframe_init): Likewise.
6427 * mips-linux-nat.c (mips_linux_register_addr)
6428 (mips64_linux_register_addr): Likewise.
6429 * findvar.c (value_of_register): Likewise.
6430 * infcmd.c (default_print_registers_info,registers_info)
6431 (print_vector_info,print_float_info): Likewise.
6432 * mips64obsd-tdep.c (mips64obsd_sigframe_init): Likewise.
6433 * inf-child.c (inf_child_fetch_inferior_registers): Likewise.
6434 * m68k-tdep.c (m68k_dwarf_reg_to_regnum): Likewise.
6435 * m68hc11-tdep.c (m68hc11_frame_unwind_cache(: Likewise.
6436 * m32r-tdep.c (m32r_frame_unwind_cache): Likewise.
6437 * ia64-linux-nat.c (ia64_register_addr,ia64_cannot_fetch_register)
6438 (ia64_cannot_store_register,ia64_linux_fetch_registers)
6439 (ia64_linux_store_registers): Likewise.
6440 * hpux-thread.c (hpux_thread_fetch_registers)
6441 (hpux_thread_store_registers): Likewise.
6442 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM,E_PSEUDO_EXR_REGNUM)
6443 (h8300_init_frame_cache,h8300_frame_cache,h8300_frame_prev_register)
6444 (h8300_register_type): Likewise.
6445 * dwarf2-frame.c (dwarf2_frame_cache)
6446 (dwarf2_frame_state_alloc_regs): Likewise.
6447 * cris-tdep.c (cris_register_size,cris_cannot_fetch_register)
6448 (cris_cannot_store_register,crisv32_cannot_fetch_register)
6449 (crisv32_cannot_store_register,cris_register_name): Likewise.
6450 * avr-tdep.c (avr_frame_unwind_cache): Likewise.
6451 * arch-utils.c (legacy_register_sim_regno)
6452 (legacy_virtual_frame_pointer): Likewise.
6453 * arm-tdep.c (arm_make_prologue_cache,arm_register_sim_regno):Likewise.
6454 * arm-tdep.h: Likewise (comment).
6455 * frv-tdep.c (frv_register_sim_regno): Likewise.
6456 * m68klinux-nat.c (old_fetch_inferior_registers)
6457 (old_store_inferior_registers): Likewise.
6458 * m32c-tdep.c (m32c_virtual_frame_pointer): Likewise.
6459 * irix5-nat.c (fetch_core_registers): Likewise.
6460 * hppa-tdep.c (hppa_frame_cache): Likewise.
6461 * hppa-linux-nat.c (hppa_linux_register_addr)
6462 (hppa_linux_fetch_inferior_registers)
6463 (hppa_linux_store_inferior_registers): Likewise.
6464 * hppa-hpux-nat.c (hppa_hpux_fetch_inferior_registers)
6465 (hppa_hpux_store_inferior_registers): Likewise.
6466 * amd64-nat.c (amd64_native_gregset_reg_offset)
6467 (amd64_supply_native_gregset,amd64_collect_native_gregset): Likewise.
6468 * dbug-rom.c (dbug_regname): Likewise.
6469 * m68hc11-tdep.c (m68hc11_frame_unwind_cache)
6470 (HARD_PAGE_REGNUM (comment)): Likewise.
6471 * gdbarch.sh (NUM_PSEUDO_REGS): Replace by gdbarch_num_pseudo_regs.
6472 * i386-tdep.c (i386_dbx_reg_to_regnum)
6473 (i386_svr4_reg_to_regnum): Likewise.
6474 * mi/mi-main.c (mi_cmd_data_list_register_names)
6475 (mi_cmd_data_list_changed_registers,mi_cmd_data_list_register_values)
6476 (mi_cmd_data_write_register_values): Likewise.
6477 * gdbarch.c, gdbarch.h: Regenerate.
6478 * tui/tui-regs.c (tui_show_register_group): Likewise.
6479 * xtensa-tdep.h (FP_ALIAS): Likewise.
6480 * user-regs.h: Likewise (comment).
6481 * user-regs.c (user_reg, user_reg_map_name_to_regnum): Likewise.
6482 * trad-frame.c (trad_frame_alloc_saved_regs): Likewise.
6483 * target-descriptions.h: Likewise (comment).
6484 * target.c (debug_print_register): Likewise.
6485 * stack.c (frame_info): Likewise.
6486 * stabsread.c (define_symbol): Likewise.
6487 * sh64-tdep.c (sh64_print_register,sh64_media_print_registers_info)
6488 (sh64_compact_print_registers_info): Likewise.
6489 * rs6000-tdep.c (rs6000_register_sim_regno): Likewise.
6490 * regcache.c (init_regcache_descr,register_size,regcache,regcache_save
6491 (regcache_restore,regcache_dump): Likewise.
6492 * mips-tdep.c (print_gp_register_row,mips_print_registers_info)
6493 (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
6494 (mips_stab_reg_to_regnum): Likewise.
6495 * findvar.c (value_of_register): Likewise.
6496 * infcmd.c (default_print_registers_info,registers_info)
6497 (print_vector_info,print_float_info): Likewise.
6498 * m68k-tdep.c (m68k_dwarf_reg_to_regnum): Likewise.
6499 * h8300-tdep.c (h8300_register_type): Likewise.
6500 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
6501 * frame.h (SIZEOF_FRAME_SAVED_REGS): Likewise.
6502 * xtensa-tdep.c (xtensa_register_type,xtensa_reg_to_regnum)
6503 (xtensa_pseudo_register_read,xtensa_pseudo_register_write): Likewise.
6504 * parse.c: Remove comment.
6505 * gdbarch.c, gdbarch.h: Regenerate
6507 2007-05-31 Markus Deuling <deuling@de.ibm.com>
6509 * gdbarch.sh (CANNOT_FETCH_REGISTER): Replace by
6510 gdbarch_cannot_fetch_register.
6511 * alpha-nat.c (fetch_osf_core_registers): Likewise.
6512 * hppa-linux-nat.c (fetch_register): Likewise.
6513 * inf-ptrace.c (inf_ptrace_fetch_register): Likewise.
6514 * m68klinux-nat.c (fetch_register): Likewise.
6515 * mipsnbsd-tdep.c (mipsnbsd_supply_reg, mipsnbsd_supply_fpreg):
6517 * gdbarch.sh (CANNOT_STORE_REGISTER): Replace by
6518 gdbarch_cannot_store_register.
6519 * hppa-linux-nat.c (store_register): Likewise.
6520 * inf-ptrace.c (inf_ptrace_store_register): Likewise.
6521 * regcache.c (regcache_raw_write): Likewise.
6522 * m68klinux-nat.c (store_register): Likewise.
6523 * mipsnbsd-tdep.c (mipsnbsd_fill_reg, mipsnbsd_fill_fpreg): Likewise.
6524 * gdbarch.c, gdbarch.h: Regenerate.
6526 2007-05-31 Markus Deuling <deuling@de.ibm.com>
6528 * gdbarch.sh (TARGET_OSABI): Replace by gdbarch_osabi.
6529 * gdbarch.c, gdbarch.h: Regenerate.
6531 2007-05-31 Markus Deuling <deuling@de.ibm.com>
6533 * gdbarch.sh (TARGET_CHAR_SIGNED): Replace by gdbarch_char_signed.
6534 * gdbtypes.c (build_gdbtypes, gdbtypes_post_init): Likewise.
6535 * gdbarch.c, gdbarch.h: Regenerate.
6537 2007-05-31 Markus Deuling <deuling@de.ibm.com>
6539 * gdbarch.sh (TARGET_BYTE_ORDER): Replace by gdbarch_byte_order.
6540 * ax-gdb.c (gen_bitfield_ref): Likewise.
6541 * mi/mi-main.c (get_register): Likewise.
6542 * findvar.c (default_value_from_register, extract_signed_integer)
6543 (extract_unsigned_integer, extract_long_unsigned_integer)
6544 (store_signed_integer, store_unsigned_integer): Likewise.
6545 * regcache.c (regcache_dump): Likewise.
6546 * value.c (lookup_internalvar, value_of_internalvar)
6547 (set_internalvar): Likewise.
6549 * valprint.c (print_binary_chars, print_octal_chars)
6550 (print_decimal_chars, print_hex_chars, print_char_chars): Likewise.
6551 * infcmd.c (default_print_registers_info): Likewise.
6552 * arch-utils.c (selected_byte_order, show_endian): Likewise.
6553 * stabsread.c (define_symbol): Likewise.
6554 * doublest.c (floatformat_from_length, floatformat_from_type)
6555 (extract_typed_floating, store_typed_floating): Likewise.
6556 * gdbarch.c, gdbarch.h: Regenerate.
6558 2007-05-31 Markus Deuling <deuling@de.ibm.com>
6560 * gdbarch.sh (CALL_DUMMY_LOCATION): Replace by
6561 gdbarch_call_dummy_location.
6562 * infcall.c (call_function_by_hand): Likewise.
6563 * inferior.h: Change comment.
6564 * arch-utils.c: Change comment.
6565 * gdbarch.c, gdbarch.h: Regenerate.
6567 2007-05-28 Joel Brobecker <brobecker@adacore.com>
6569 * solib-aix5.c: Delete.
6570 * Makefile.in (solib-aix5.o): Delete rule.
6572 2007-05-23 Daniel Jacobowitz <dan@codesourcery.com>
6574 * breakpoint.h (enum bpstat_what_main_action): Remove
6575 BPSTAT_WHAT_THROUGH_SIGTRAMP.
6576 * infrun.c (process_event_stop_test): Do not check for it.
6578 2007-05-22 Chris Dearman <chris@mips.com>
6579 Maciej W. Rozycki <macro@mips.com>
6581 * ser-unix.c (show_serial_hwflow): New function.
6582 (hardwire_raw): Add hardware flow control support.
6583 (_initialize_ser_hardwire): Add "set/show remoteflow".
6584 * Makefile.in (ser-unix.o): Depend on $(gdbcmd_h).
6585 * NEWS: Document the new command.
6587 2007-05-21 Ulrich Weigand <uweigand@de.ibm.com>
6589 * config/i386/tm-linux.h (sys_quotactl): Do not define.
6590 * configure.ac (sys_quotactl, START_INFERIOR_TRAPS_EXPECTED): Do not
6591 define for i[[3456]]86-*-linux* native configurations.
6592 * config.in, configure: Regenerate.
6594 2007-05-19 Joel Brobecker <brobecker@adacore.com>
6596 * rs6000-nat.c (xcoff_relocate_symtab): Do nothing if debugging
6597 a core file. Add comment in the function description.
6599 2007-05-18 Caroline Tice <ctice@apple.com>
6601 * c-valprint.c (c_value_print): If the initialized field of the
6602 value struct is 0, print out "[uninitialized]" before the value.
6603 * dwarf2expr.c (execute_stack_op): Initialize ctx->initialized field;
6604 allow DW_OP_GNU_uninit as legal op following a DW_OP_reg op or a
6605 DW_OP_regx op; add case for DW_OP_GNU_uninit and update
6606 ctx->initialized appropriately. Verify no location op follows
6608 * dwarf2expr.h (struct dwarf_expr_context): New field, initialized.
6609 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Add call to
6610 set_value_initialized.
6611 * dwarf2read.c (dwarf_stack_op_name): Add case for DW_OP_GNU_uninit.
6612 (decode_locdesc): Add case for DW_OP_GNU_uninit.
6613 * value.c (struct value): New field, initialized.
6614 (allocate_value): Initialize new field.
6615 (set_value_initialized): New function.
6616 (value_initialized): New function.
6617 * value.h (value_initialized): New extern declaration.
6618 (set_value_initialized): Likewise.
6620 2007-05-18 Caroline Tice <ctice@apple.com>
6622 * MAINTAINERS (Write After Approval): Add self.
6624 2007-05-17 Joel Brobecker <brobecker@adacore.com>
6626 * gdbtypes.c (make_reference_type): Preserve the type chain
6627 and set the length of all the variants of the pointer type.
6629 2007-05-17 Joel Brobecker <brobecker@adacore.com>
6631 * gdbtypes.c (make_pointer_type): Preserve the pointer type chain
6632 and set the length of all the variants of the pointer type.
6634 2007-05-17 Maciej W. Rozycki <macro@mips.com>
6636 * mips-tdep.c (mips_n32n64_push_dummy_call): Fix and reformat a
6638 (mips_o64_push_dummy_call): Reformat a comment.
6640 2007-05-17 Qinwei <qinwei@sunnorth.com.cn>
6642 * score-tdep.c (score_frame_cache->fp, score_analyze_prologue)
6643 (score_prologue_frame_base_address): Return fp to keep gdb print
6644 local variables correctly when debugging information is stabs.
6646 (score_analyze_prologue): For software watchpoint, fetch all the
6647 instructions from range [startaddr, pc] once and identify them locally
6648 to reduce memory access.
6649 (score_malloc_and_get_memblock, score_free_memblock)
6650 (score_adjust_memblock_ptr): New functions.
6651 (score_fetch_inst): Fetch single instruction or mutiple instructions.
6653 (score_target_can_use_watch, score_stopped_by_watch)
6654 (score_target_insert_watchpoint, score_target_remove_watchpoint)
6655 (score_target_insert_hw_breakpoint, score_target_remove_hw_breakpoint):
6656 New functions for remote & local hw-watchpoint and hw-breakpoint.
6658 2007-05-16 Alfred M. Szmidt <ams@gnu.org>
6660 * reply_mig_hack.awk: Check for `auto const mach_msg_type_t'
6661 declarations as well.
6663 2007-05-16 Ulrich Weigand <uweigand@de.ibm.com>
6665 * config/arm/embed.mt (DEPRECATED_TM_FILE): Set to tm-arm.h.
6666 * config/arm/tm-embed.h: Delete file.
6668 * arm-tdep.h (arm_software_single_step): Declare.
6669 * arm-tdep.c (arm_software_single_step): Make global.
6670 (arm_gdbarch_init): Move set_gdbarch_software_single_step call
6672 * arm-linux-tdep.c (arm_linux_init_abi): ... here ...
6673 * armnbsd-tdep.c (arm_netbsd_init_abi_common): ... here ...
6674 * armobsd-tdep.c (armobsd_init_abi): ... here ...
6675 * arm-wince-tdep.c (arm_wince_init_abi): ... and here.
6677 * arm-tdep.c (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT): No longer
6678 allow defines to be overriden by TM file.
6679 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Likewise. Also,
6680 change default to {0xbe,0xbe}.
6681 * armobsd-tdep.c (arm_obsd_thumb_le_breakpoint,
6682 arm_obsd_thumb_be_breakpoint): New global variables.
6683 (armobsd_init_abi): Override tdep->thumb_breakpoint and
6684 tdep->thumb_breakpoint_size.
6685 * arm-wince-tdep.c (arm_wince_thumb_le_breakpoint): New variable.
6686 (arm_wince_init_abi): Override tdep->thumb_breakpoint and
6687 tdep->thumb_breakpoint_size.
6689 * arm-tdep.c (arm_gdbarch_init): Add set_gdbarch_skip_trampoline_code.
6691 2007-05-16 Daniel Jacobowitz <dan@codesourcery.com>
6693 * NEWS: Mention removed "set mips stack-arg-size" and "set mips
6696 * mips-tdep.c (MIPS32_REGSIZE, MIPS64_REGSIZE): New constants.
6697 (size_auto, size_32, size_64, size_enums, mips_abi_regsize_string)
6698 (mips_stack_argsize_string, mips_stack_argsize): Delete.
6699 (mips_abi_regsize): Simplify.
6700 (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call)
6701 (mips_n32n64_return_value, mips_o32_push_dummy_call)
6702 (mips_o32_return_value, mips_o64_push_dummy_call)
6703 (mips_o64_return_value): Propogate constant register sizes. Use the
6704 ABI register size instead of mips_stack_argsize.
6705 (mips_dump_tdep): Don't print mips_stack_argsize.
6706 (_initialize_mips_tdep): Remove saved-gpreg-size and stack-arg-size
6709 2007-05-16 Daniel Jacobowitz <dan@codesourcery.com>
6711 * config/mips/linux.mt (DEPRECATED_TM_FILE): Delete.
6712 * config/mips/tm-linux.h: Delete.
6713 * mips-linux-tdep.c (mips_svr4_so_ops): New.
6714 (mips_linux_in_dynsym_resolve_code): Make static. Use
6715 svr4_in_dynsym_resolve_code.
6716 (mips_linux_init_abi): Initialize mips_svr4_so_ops. Call
6718 * solib-svr4.c (svr4_in_dynsym_resolve_code, svr4_so_ops): Make
6720 * solib-svr4.h (svr4_so_ops, svr4_in_dynsym_resolve_code): Declare.
6721 * Makefile.in (mips-linux-tdep.o): Update.
6722 * solib.c (set_solib_ops): New.
6723 (current_target_so_ops): Update comment.
6724 * solib.h (set_solib_ops): New prototype.
6726 2007-05-16 Chris Dearman <chris@mips.com>
6728 * printcmd.c (do_examine): Fix typos in a comment.
6730 2007-05-16 Richard Sandiford <richard@codesourcery.com>
6732 * configure.ac: Allow sysroots to be relocated under $prefix as
6733 well as $exec_prefix.
6734 * configure: Regenerate.
6736 2007-05-14 Ulrich Weigand <uweigand@de.ibm.com>
6738 * hppa-hpux-tdep.c: Do not include <dl.h> or <machine/save_state.h>.
6739 (offsetof): Do not define.
6740 (find_stub_with_shl_get): Use numerical value 3 instead of
6741 symbolic value TYPE_PROCEDURE.
6743 2007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
6745 * gdb_proc_service.h (paddr_t): Delete typedef.
6746 * proc-service.c (ps_addr_to_core_addr, core_addr_to_ps_addr): New.
6747 (ps_xfer_memory): Take a psaddr_t. Use ps_addr_to_core_addr.
6748 (ps_pglobal_lookup): Take a psaddr_t *. Use core_addr_to_ps_addr.
6749 (ps_pdread, ps_pdwrite, ps_ptread, ps_ptwrite): Take a psaddr_t.
6750 * sol-thread.c (gdb_ps_addr_t): Use psaddr_t instead of paddr_t.
6751 * Makefile.in (proc-service.o): Update.
6753 2007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
6755 * Makefile.in (mips-tdep.o): Update.
6756 * mips-tdep.c (mips_gdbarch_init): Register the dwarf2 CFI
6759 2007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
6761 * dwarf2-frame.c (dwarf2_frame_prev_register): Use pack_long
6762 instead of store_typed_address.
6763 * value.c (pack_long): New.
6764 (value_from_longest): Use it.
6765 * value.h (pack_long): New prototype.
6767 2007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
6769 * dwarf2-frame.c (read_encoded_value): Correct typo. Use
6770 DW_EH_PE_signed if appropriate.
6772 2007-05-14 Paul Brook <paul@codesourcery.com>
6773 Daniel Jacobowitz <dan@codesourcery.com>
6775 * dwarf2read.c (dwarf2_debug_line_missing_file_complaint): New
6777 (dwarf_decode_lines): Check for line info without a file.
6779 2007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
6781 * linux-thread-db.c (thread_db_pid_to_str): Print thread IDs
6784 2007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
6786 * jv-exp.y (push_fieldnames): Use STRUCTOP_PTR instead of
6788 * jv-lang.c (evaluate_subexp_java): Handle STRUCTOP_PTR instead of
6790 * jv-typeprint.c (java_print_type): Do not crash on NULL varstring.
6792 2007-05-14 Ulrich Weigand <uweigand@de.ibm.com>
6794 * gdbarch.sh (read_sp): Remove.
6795 * gdbarch.c, gdbarch.h: Regenerate.
6796 * frame.c (frame_sp_unwind): Do not call TARGET_READ_SP.
6798 * avr-tdep.c (avr_read_sp): Remove.
6799 (avr_unwind_sp): New function.
6800 (avr_gdbarch_init): Install unwind_sp instead of read_sp callback.
6801 * mips-tdep.c (mips_read_sp): Remove.
6802 (mips_unwind_sp): New function.
6803 (mips_gdbarch_init): Install unwind_sp instead of read_sp callback.
6804 * score-tdep.c (score_read_unsigned_register): Remove.
6805 (score_read_sp): Remove.
6806 (score_unwind_sp): New function.
6807 (score_gdbarch_init): Install unwind_sp instead of read_sp callback.
6809 2007-05-14 Maxim Grigoriev <maxim2405@gmail.com>
6811 * buildsym.c (start_subfile): Handle absolute pathnames
6812 while comparing subfile names.
6814 2007-05-13 Ulrich Weigand <uweigand@de.ibm.com>
6816 * hppa-hpux-tdep.c: Include "regcache.h".
6817 * hppa-linux-tdep.c: Likewise.
6818 * hppa-tdep.c: Include "gdb_stdint.h".
6819 (find_unwind_entry): Cast host pointer to uintptr_t before passing
6821 * Makefile.in: Update dependencies.
6823 2007-05-13 Ulrich Weigand <uweigand@de.ibm.com>
6825 * blockframe.c: Remove obsolete comments.
6826 * alpha-nat.c (fetch_osf_core_registers): Update comment.
6827 * arm-tdep.h (enum gdb_regnum): Remove obsolete part of comment.
6828 * hppa-tdep.h (enum hppa_regnum): Likewise.
6829 * mips-tdep.h: Likewise.
6830 * m68hc11-tdep.c: Likewise.
6832 2007-05-13 Ulrich Weigand <uweigand@de.ibm.com>
6834 * inferior.h (read_sp): Remove prototype.
6835 * regcache.c (read_sp): Remove.
6836 * gcore.c (derive_stack_segment): Use get_frame_sp instead of read_sp.
6837 * infcall.c (call_function_by_hand): Likewise.
6838 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Use regcache instead
6840 * rs6000-tdep.c (rs6000_push_dummy_call): Likewise.
6842 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
6844 * i386-linux-nat.c (i386_linux_resume): Use regcache functions
6845 instead of read_register and read_register_pid.
6847 * ia64-linux-nat.c (enable_watchpoints_in_psr): Use REGCACHE
6848 argument instead of PTID. Use regcache functions instead of
6850 (ia64_linux_insert_watchpoint): Update call.
6851 (ia64_linux_stopped_data_address): Use regcache functions
6852 instead of read_register_pid and write_register_pid.
6854 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
6856 * libunwind-frame.h (struct regcache): Add forward declaration.
6857 (libunwind_get_reg_special): Add REGCACHE argument.
6858 * libunwind-frame.c (libunwind_get_reg_special): Add REGCACHE
6859 argument. Pass it to unw_init_remote_p.
6861 * ia64-tdep.c (ia64_pseudo_register_read): Pass regcache to
6862 libunwind_get_reg_special.
6863 (ia64_access_reg): Remove "write" case.
6864 (ia64_access_fpreg): Likewise. Read from next_frame passed
6865 as callback argument instead of from current_regcache.
6866 (ia64_access_rse_reg): Remove "write" case. Read from regcache
6867 passed as callback argument instead of from current_regcache.
6868 (ia64_access_rse_fpreg): New function.
6869 (ia64_unw_rse_acce): Use it instead of ia64_access_fpreg.
6871 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
6873 * NEWS: Mention SPU overlay support.
6875 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
6877 * spu-tdep.c (spu_frame_unwind_cache): Add comment.
6879 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
6881 * breakpoint.c (remove_breakpoint): Do not remove software
6882 breakpoints in unmapped overlay sections.
6884 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
6886 * spu-tdep.c: Include "observer.h".
6887 (spu_frame_unwind_cache): Unwind PC through overlay return stubs.
6888 (spu_overlay_data): New variable.
6889 (struct spu_overlay_table): New type.
6890 (spu_get_overlay_table, spu_overlay_update_osect, spu_overlay_update,
6891 spu_overlay_new_objfile): New functions.
6892 (spu_gdbarch_init): Install spu_overlay_update.
6893 (_initialize_spu_tdep): Register spu_overlay_new_objfile,
6894 allocate spu_overlay_data objfile data.
6896 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
6898 * gdbarch.sh (overlay_update): New gdbarch function.
6899 (struct obj_section): Add forward declaration.
6900 * gdbarch.c, gdbarch.h: Regenerate.
6902 * symfile.c (simple_overlay_update): Make global.
6903 (target_overlay_update): Remove variable.
6904 (overlay_is_mapped): Call gdbarch_overlay_update instead of
6905 target_overlay_update.
6906 (overlay_load_command): Likewise.
6907 * symfile.h (struct obj_section): Add forward declaration.
6908 (simple_overlay_update): Add prototype.
6910 * m32r-tdep.c (m32r_gdbarch_init): Install simple_overlay_update.
6912 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
6914 * observer.sh: Add "struct objfile" forward declaration.
6915 * target.h (deprecated_target_new_objfile_hook): Remove.
6916 * symfile.c (deprecated_target_new_objfile_hook): Remove.
6917 (clear_symtab_users): Call observer_notify_new_objfile.
6918 (symbol_file_add_with_addrs_or_offsets): Likewise.
6919 * rs6000-nat.c: Include "observer.h".
6920 (vmap_ldinfo): Call observer_notify_new_objfile.
6921 (xcoff_relocate_core): Likewise.
6922 * remote.c (remote_new_objfile_chain): Remove.
6923 (remote_new_objfile): Do not call remote_new_objfile_chain.
6924 (_initialize_remote): Use observer_attach_new_objfile.
6925 * tui/tui-hooks.c (tui_target_new_objfile_chain): Remove.
6926 (tui_new_objfile_hook): Do not call tui_target_new_objfile_chain.
6927 (_initialize_tui_hooks): Use observer_attach_new_objfile.
6928 * aix-thread.c: Include "observer.h".
6929 (target_new_objfile_chain): Remove.
6930 (new_objfile): Do not call target_new_objfile_chain.
6931 (_initialize_aix_thread): Use observer_attach_new_objfile.
6932 * hpux-thread.c: Include "observer.h"
6933 (target_new_objfile_chain): Remove.
6934 (hpux_thread_new_objfile): Make static. Do not call
6935 target_new_objfile_chain.
6936 (_initialize_hpux_thread): Use observer_attach_new_objfile.
6937 * linux-thread-db.c: Include "observer.h".
6938 (target_new_objfile_chain): Remove.
6939 (thread_db_new_objfile): Do not call target_new_objfile_chain.
6940 (_initialize_thread_db): Use observer_attach_new_objfile.
6941 * sol-thread.c: Include "observer.h".
6942 (target_new_objfile_chain): Remove.
6943 (sol_thread_new_objfile): Make static. Do not call
6944 target_new_objfile_chain.
6945 (_initialize_sol_thread): Use observer_attach_new_objfile.
6946 * Makefile.in (aix-thread.o, hpux-thread.o, linux-thread-db.o,
6947 rs6000-nat.o, sol-thread.o, tui-hooks.o): Add dependency on
6950 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
6952 * gdbarch.sh (remote_translate_xfer_address): Remove.
6953 * gdbarch.h, gdbarch.c: Regenerate.
6954 * arch-utils.c (generic_remote_translate_xfer_address): Remove.
6955 * arch-utils.h (generic_remote_translate_xfer_address): Remove.
6956 * remote.c (remote_write_bytes_aux, remote_read_bytes): Do not
6957 call gdbarch_remote_translate_xfer_address.
6958 * frv-tdep.c (frv_gdbarch_init): Do not call
6959 set_gdbarch_remote_translate_xfer_address.
6960 * ia64-tdep.c (ia64_remote_translate_xfer_address): Remove.
6961 (ia64_gdbarch_init): Do not install it.
6963 2007-05-11 Bob Wilson <bob.wilson@acm.org>
6965 * NEWS: Mention change in handling the -tui option.
6967 2007-05-11 Daniel Jacobowitz <dan@codesourcery.com>
6969 * linux-thread-db.c (enable_thread_event_reporting): Fix comment
6972 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
6974 * breakpoint.c (single_step_breakpoint_inserted_here_p): New function.
6975 (breakpoint_inserted_here_p): Call it.
6976 (software_breakpoint_inserted_here_p): Likewise.
6978 2007-05-10 Ulrich Weigand <uweigand@de.ibm.com>
6980 * inf-ptrace.c (inf_ptrace_register_u_offset): Adapt parameter list.
6981 (inf_ptrace_fetch_register): Add register_u_offset callback parameters
6982 GDBARCH and STORE_P. Handle callback (CORE_ADDR) -1 return value.
6983 (inf_ptrace_store_register): Likewise.
6984 (inf_ptrace_trad_target): Adapt register_u_offset parameter list.
6985 * inf-ptrace.h (inf_ptrace_trad_target): Likewise.
6987 * vax-nat.c (vax_register_u_offset): Adapt parameter list.
6989 * linux-nat.c (linux_trad_target): Adapt parameter list.
6990 * linux-nat.h (linux_trad_target): Likewise.
6992 * alpha-linux-nat.c (alpha_linux_register_u_offset): Adapt parameters.
6994 * mips-linux-nat.c (mips_linux_cannot_fetch_register): Remove.
6995 (mips_linux_cannot_store_register): Likewise.
6996 (mips_linux_register_addr): Add GDBARCH and STORE_P parameters.
6997 Return (CORE_ADDR) -1 for registers that cannot be fetched or
6998 stored via ptrace. Use GDBARCH instead of current_gdbarch.
6999 (mips64_linux_register_addr): Likewise.
7000 (mips_linux_register_u_offset): Adapt parameter list. Pass
7001 GDBARCH and STORE_P on to mips{64}_linux_register_addr.
7003 * config/mips/linux.mh (NAT_FILE): Set to config/nm-linux.h.
7004 * config/mips/nm-linux.h: Delete file.
7006 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
7008 * remote.c (remote_detach): Error out if remote can't detach.
7010 2007-05-10 Luis Machado <luisgpm@br.ibm.com>
7012 * rs6000-tdep.c: (deal_with_atomic_sequence) Stores branch
7013 instruction's opcode in the "opcode" variable and declares new
7014 variable "closing_insn".
7016 2007-05-10 Chris Dearman <chris@mips.com>
7017 Maciej W. Rozycki <macro@mips.com>
7019 * cli/cli-setshow.c (do_setshow_command): Remove trailing
7020 whitespace when setting a var_filename.
7022 2007-05-09 Bob Wilson <bob.wilson@acm.org>
7024 * main.c (captured_main): Recognize -tui option and print an error
7025 message when the TUI is not configured.
7027 2007-05-09 Andreas Schwab <schwab@suse.de>
7029 * mipsnbsd-tdep.c (mipsnbsd_ilp32_fetch_link_map_offsets): Don't
7030 set removed members.
7031 (mipsnbsd_lp64_fetch_link_map_offsets): Likewise.
7033 2007-05-08 Ulrich Weigand <uweigand@de.ibm.com>
7035 * gdbarch.sh (deprecated_store_struct_return): Remove.
7036 * gdbarch.c, gdbarch.h: Regenerate.
7037 * frv-tdep.c (frv_store_struct_return): Remove.
7038 (frv_gdbarch_init): Do not install it.
7040 2007-05-08 Ulrich Weigand <uweigand@de.ibm.com>
7042 * config/i386/nm-i386sol2.h (USE_PROC_FS): Do not define.
7043 * config/mips/nm-irix5.h (USE_PROC_FS): Do not define.
7044 * config/nm-linux.h (USE_PROC_FS): Do not undefine.
7046 2007-05-08 Ulrich Weigand <uweigand@de.ibm.com>
7048 * spu-linux-nat.c: Include "gdb_stdint.h".
7049 (fetch_ppc_register): Use uint64_t instead of unsigned long long.
7050 (fetch_ppc_memory_1, store_ppc_memory_1): Likewise.
7051 (fetch_ppc_memory, store_ppc_memory): Fix coding style.
7052 (spu_symbol_file_add_from_memory): Use strtoulst instead of sscanf.
7053 (spu_child_wait): Mark up string for translation.
7055 2007-05-08 Paul Gilliam <pgilliam@us.ibm.com>
7056 Luis Machado <luisgpm@br.ibm.com>
7058 * rs6000-tdep.c: (LWARX_MASK, LWARX_INSTRUCTION, LDARX_INSTRUCTION,
7059 STWCX_MASK, STWCX_INSTRUCTION, STDCX_INSTRUCTION, BC_MASK,
7060 BC_INSTRUCTION): Define.
7061 (deal_with_atomic_sequence): New function.
7062 (rs6000_software_single_step): Call deal_with_atomic_sequence.
7063 (rs6000_gdbarch_init): Install deal_with_atomic_sequence as
7064 gdbarch_software_single_step routine.
7066 2007-05-07 Ulrich Weigand <uweigand@de.ibm.com>
7068 * spu-linux-nat.c (fetch_ppc_register, fetch_ppc_memory_1,
7069 store_ppc_memory_1, fetch_ppc_memory, store_ppc_memory,
7070 parse_spufs_run, spu_bfd_iovec_pread, spu_bfd_open,
7071 spu_symbol_file_add_from_memory, spu_child_post_startup_inferior,
7072 spu_child_post_attach, spu_fetch_inferior_registers,
7073 spu_store_inferior_registers, spu_xfer_partial): Store PPE-side
7074 memory addresses as ULONGEST, not CORE_ADDR.
7076 2007-05-07 Ulrich Weigand <uweigand@de.ibm.com>
7078 * gdbarch.sh: Add skip_permanent_breakpoint callback.
7079 * gdbarch.h, gdbarch.c: Regenerate.
7081 * infrun.c (SKIP_PERMANENT_BREAKPOINT): Remove default definition.
7082 (resume): Call gdbarch_skip_permanent_breakpoint instead of
7083 SKIP_PERMANENT_BREAKPOINT. Inline default case.
7085 * hppa-hpux-tdep.c (hppa_skip_permanent_breakpoint): Make static.
7086 Add REGCACHE argument. Use it instead of read/write_register.
7087 (hppa_hpux_init_abi): Install hppa_skip_permanent_breakpoint.
7089 * config/pa/tm-hppah.h: Delete file.
7090 * config/pa/hppa64.mt (DEPRECATED_TM_FILE): Set to tm-hppa.h.
7091 * config/pa/hppahpux.mt (DEPRECATED_TM_FILE): Likewise.
7093 2007-05-07 Daniel Jacobowitz <dan@codesourcery.com>
7095 * Makefile.in (c-lang.o, gnu-v3-abi.o): Update.
7096 * NEWS: Mention improved C++ thunk support.
7097 * c-lang.c (cplus_language_defn): Mention cplus_skip_trampoline.
7098 * cp-abi.c (cplus_skip_trampoline): New.
7099 * cp-abi.h (cplus_skip_trampoline): New prototype.
7100 (struct cp_abi_ops): Add skip_trampoline member.
7101 * gnu-v3-abi.c (gnuv3_skip_trampoline): New.
7102 (init_gnuv3_ops): Set skip_trampoline.
7104 2007-05-06 Daniel Jacobowitz <dan@codesourcery.com>
7106 * rs6000-tdep.c (struct frame_extra_info): Delete.
7108 2007-05-06 Daniel Jacobowitz <dan@codesourcery.com>
7110 * linux-thread-db.c: Update some FIXME comments.
7111 (thread_db_xfer_partial): Delete.
7112 (init_thread_db_ops): Do not set to_xfer_partial.
7114 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7116 * inftarg.c, infptrace.c: Remove files.
7117 * Makefile.in (ALLDEPFILES): Remove inftarg.c and infptrace.c
7118 (inftarg.o, infptrace.o): Remove rules.
7119 * gdbcore.h (register_addr): Remove prototype.
7120 * inferior.h (kill_inferior, store_inferior_registers,
7121 fetch_inferior_registers, attach, detach, ptrace_wait, child_resume,
7122 call_ptrace, pre_fork_inferior): Remove prototypes.
7123 * target.h (child_xfer_memory, child_pid_to_exec_file,
7124 child_core_file_to_sym_file, child_post_attach,
7125 child_post_startup_inferior, child_acknowledge_created_inferior,
7126 child_insert_fork_catchpoint, child_remove_fork_catchpoint,
7127 child_insert_vfork_catchpoint, child_remove_vfork_catchpoint,
7128 child_insert_exec_catchpoint, child_remove_exec_catchpoint,
7129 child_follow_fork, child_reported_exec_events_per_exec_call,
7130 child_has_exited, child_thread_alive): Remove prototypes.
7132 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7134 * sparc-nat.h (sparc_fetch_inferior_registers): Add prototype.
7135 (sparc_store_inferior_registers): Likewise.
7136 * sparc-nat.c (fetch_inferior_registers): Rename to ...
7137 (sparc_fetch_inferior_registers): ... this.
7138 (store_inferior_registers): Rename to ...
7139 (sparc_store_inferior_registers): ... this.
7140 (sparc_target): Update callback names.
7141 * sparc-linux.nat.c (_initialize_sparc_linux_nat): Likewise.
7142 * sparc64-linux.nat.c (_initialize_sparc64_linux_nat): Likewise.
7144 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7146 * linux-nat.c (child_post_attach): Rename to ...
7147 (linux_child_post_attach): ... this. Make static.
7148 (child_follow_fork): Rename to ...
7149 (linux_child_follow_fork): ... this. Make static.
7150 (child_insert_fork_catchpoint): Rename to ...
7151 (linux_child_insert_fork_catchpoint): ... this. Make static.
7152 (child_insert_vfork_catchpoint): Rename to ...
7153 (linux_child_insert_vfork_catchpoint): ... this. Make static.
7154 (child_insert_exec_catchpoint): Rename to ...
7155 (linux_child_insert_exec_catchpoint): ... this. Make static.
7156 (child_pid_to_exec_file): Rename to ...
7157 (linux_child_pid_to_exec_file): ... this. Make static.
7159 (linux_handle_extended_wait): Update call.
7160 (linux_xfer_partial): Update callback routine names.
7162 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7164 * configure.host (alpha*-*-osf[12]*): Remove support.
7165 * NEWS: Mention removed configurations.
7167 * config/alpha/alpha-osf1.mh: Delete file.
7168 * config/alpha/alpha-osf2.mh: Delete file.
7169 * config/alpha/alpha-osf3.mh (NATDEPFILES): Remove inftarg.o
7171 * config/alpha/nm-osf.h: Delete file.
7172 * config/alpha/nm-osf2.h: Delete file.
7173 * config/alpha/nm-osf3.h: Do not include "nm-osf2.h".
7174 (START_INFERIOR_TRAPS_EXPECTED): Copy from nm-osf.h.
7175 (PROCFS_DONT_TRACE_FAULTS): Copy from nm-osf2.h.
7177 * alpha-nat.c (ALPHA_UNIQUE_PTRACE_ADDR): Do not define.
7178 (register_addr, kernel_u_size): Remove.
7179 Do not check for "defined(USE_PROC_FS) || defined(HAVE_GREGSET_T)".
7181 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7183 * regcache.c (regcache_invalidate): New function.
7184 (register_cached): Remove.
7185 (set_register_cached): Remove.
7186 (deprecated_registers_fetched): Remove.
7187 (registers_changed): Use regcache_invalidate instead
7188 of set_register_cached.
7189 (regcache_raw_read): Update comment.
7191 * regcache.h (regcache_invalidate): Add prototype.
7192 (register_cached): Remove.
7193 (set_register_cached): Remove.
7194 (deprecated_registers_fetched): Remove.
7196 * findvar.c (value_of_register): Do not call register_cached.
7197 * frame.c (frame_register): Likewise.
7198 * tui/tui-regs.c (tui_get_register): Likewise.
7200 * remote.c (fetch_register_using_p): Do not call set_register_cached.
7201 (process_g_packet): Likewise.
7202 (remote_fetch_registers): Likewise.
7203 * remote-sim.c (gdbsim_fetch_register): Likewise.
7204 * mt-tdep.c (mt_select_coprocessor): Replace set_register_cached call
7205 by regcache_invalidate.
7206 (mt_pseudo_register_write): Likewise.
7207 * sh-tdep.c (sh_pseudo_register_write): Likewise.
7209 * corelow.c (get_core_registers): Replace deprecated_registers_fetched
7210 call by loop over regcache_raw_supply (..., NULL).
7212 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7214 * target.h (struct target_ops): Add REGCACHE parameter to
7215 to_prepare_to_store.
7216 (target_prepare_to_store): Likewise.
7217 * target.c (debug_to_prepare_to_store): Add REGCACHE parameter.
7218 (update_current_target): Adapt prepare_to_store de_fault rule.
7220 * regcache.c (regcache_raw_write): Pass regcache to
7221 target_prepare_to_store.
7223 * inftarg.c (child_prepare_to_store): Add REGCACHE parameter.
7224 Do not call CHILD_PREPARE_TO_STORE.
7225 * gnu-nat.c (gnu_prepare_to_store): Likewise.
7226 * procfs.c (procfs_prepare_to_store): Likewise.
7228 * inf-child.c (inf_child_prepare_to_store): Add REGCACHE parameter.
7229 * go32-nat.c (go32_prepare_to_store): Likewise.
7230 * monitor.c (monitor_prepare_to_store): Likewise.
7231 * nto-procfs.c (procfs_prepare_to_store): Likewise.
7232 * remote-m32r-sdi.c (m32r_prepare_to_store): Likewise.
7233 * remote-mips.c (mips_prepare_to_store): Likewise.
7234 * remote-sim.c (gdbsim_prepare_to_store): Likewise.
7235 * win32-nat.c (win32_prepare_to_store): Likewise.
7237 * remote.c (remote_prepare_to_store): Add REGCACHE parameter.
7238 Use it instead of current_regcache.
7240 * hpux-thread.c (hpux_thread_prepare_to_store): Add REGCACHE
7241 parameter. Pass it on to next target.
7242 * sol-thread.c (sol_thread_prepare_to_store): Likewise.
7244 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7246 * target.h (struct regcache): Add forward declaration.
7247 (struct target_ops): Add REGCACHE parameter to to_fetch_registers
7248 and to_store_registers target operations.
7249 (target_fetch_registers, target_store_registers): Update.
7251 * regcache.c (regcache_raw_read): Replace register_cached by
7252 regcache_valid_p. Pass regcache to target_fetch_registers.
7253 (regcache_raw_write): Pass regcache to target_store_registers.
7255 * arm-linux-nat.c (store_fpregister, store_fpregs, store_register,
7256 store_regs, store_wmmx_regs): Replace register_cached by
7259 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd): Pass current_regcache
7260 to target_fetch_registers calls.
7261 * corelow.c (core_open): Likewise.
7262 * linux-nat.c (linux_nat_corefile_thread_callback): Likewise.
7263 * proc-service.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
7264 ps_lsetfpregs): Likewise.
7265 * sol-thread.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
7266 ps_lsetfpregs): Likewise.
7267 * win32-nat.c (win32_resume): Likewise.
7268 * ia64-tdep.c (ia64_store_return_value): Pass current_regcache
7269 to target_store_registers call.
7270 * rs6000-tdep.c (rs6000_push_dummy_call): Likewise.
7272 * inferior.h (store_inferior_registers): Update prototype.
7273 (fetch_inferior_registers): Likewise.
7274 * gnu-nat.c (gnu_store_registers, gnu_fetch_registers): Likewise.
7275 * mips-linux-nat.c (super_fetch_registers, super_store_registers):
7276 Update function pointer signatures.
7278 * aix-thread.c (aix_thread_fetch_registers): Add REGCACHE parameter,
7279 use it instead of current_regcache, update calls.
7280 (aix_thread_store_registers): Likewise.
7281 * alphabsd-nat.c (alphabsd_fetch_inferior_registers): Likewise.
7282 (alphabsd_store_inferior_registers): Likewise.
7283 * amd64bsd-nat.c (amd64bsd_fetch_inferior_registers): Likewise.
7284 (amd64bsd_store_inferior_registers): Likewise.
7285 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers): Likewise.
7286 (amd64_linux_store_inferior_registers): Likewise.
7287 * arm-linux-nat.c (fetch_fpregister, fetch_fpregs, store_fpregister,
7288 store_fpregs, fetch_register, fetch_regs, store_register, store_regs,
7289 fetch_wmmx_regs, store_wmmx_regs): Likewise.
7290 (arm_linux_fetch_inferior_registers): Likewise.
7291 (arm_linux_store_inferior_registers): Likewise.
7292 * armnbsd-nat.c (fetch_register, fetch_regs, fetch_fp_register,
7293 fetch_fp_regs, armnbsd_fetch_registers): Likewise.
7294 (store_register, store_regs, store_fp_register, store_fp_regs,
7295 armnbsd_store_registers): Likewise.
7296 * bsd-kvm.c (bsd_kvm_fetch_pcb, bsd_kvm_fetch_registers): Likewise.
7297 * bsd-uthread.c (bsd_uthread_fetch_registers): Likewise.
7298 (bsd_uthread_store_registers): Likewise.
7299 * corelow.c (get_core_registers): Likewise.
7300 * go32-nat.c (fetch_register, go32_fetch_registers, store_register,
7301 go32_store_registers): Likewise.
7302 * hppabsd-nat.c (hppabsd_fetch_registers): Likewise.
7303 (hppabsd_store_registers): Likewise.
7304 * hppa-hpux-nat.c (hppa_hpux_fetch_register): Likewise.
7305 (hppa_hpux_fetch_inferior_registers): Likewise.
7306 (hppa_hpux_store_register): Likewise.
7307 (hppa_hpux_store_inferior_registers): Likewise.
7308 * hppa-linux-nat.c (fetch_register, store_register): Likewise.
7309 (hppa_linux_fetch_inferior_registers): Likewise.
7310 (hppa_linux_store_inferior_registers): Likewise.
7311 * hpux-thread.c (hpux_thread_fetch_registers): Likewise.
7312 (hpux_thread_store_registers): Likewise.
7313 * i386bsd-nat.c (i386bsd_fetch_inferior_registers): Likewise.
7314 (i386bsd_store_inferior_registers): Likewise.
7315 * i386gnu-nat.c (fetch_fpregs, gnu_fetch_registers, store_fpregs,
7316 gnu_store_registers): Likewise.
7317 * i386-linux-nat.c (fetch_register, store_register, fetch_regs,
7318 store_regs, fetch_fpregs, store_fpregs, fetch_fpxregs, store_fpxregs):
7320 (i386_linux_fetch_inferior_registers): Likewise.
7321 (i386_linux_store_inferior_registers): Likewise.
7322 * ia64-linux-nat.c (ia64_linux_fetch_register): Likewise.
7323 (ia64_linux_fetch_registers): Likewise.
7324 (ia64_linux_store_register): Likewise.
7325 (ia64_linux_store_registers): Likewise.
7326 * inf-child.c (inf_child_fetch_inferior_registers): Likewise.
7327 (inf_child_store_inferior_registers): Likewise.
7328 * inf-ptrace.c (inf_ptrace_fetch_register): Likewise.
7329 (inf_ptrace_fetch_registers): Likewise.
7330 (inf_ptrace_store_register): Likewise.
7331 (inf_ptrace_store_registers): Likewise.
7332 * infptrace.c (fetch_register, store_register): Likewise.
7333 (fetch_inferior_registers, store_inferior_registers): Likewise.
7334 * m32r-linux-nat.c (fetch_regs, store_regs): Likewise.
7335 (m32r_linux_fetch_inferior_registers): Likewise.
7336 (m32r_linux_store_inferior_registers): Likewise.
7337 * m68kbsd-nat.c (m68kbsd_fetch_inferior_registers): Likewise.
7338 (m68kbsd_store_inferior_registers): Likewise.
7339 * m68klinux-nat.c (fetch_register, old_fetch_inferior_registers,
7340 store_register, old_store_inferior_registers, fetch_regs, store_regs,
7341 fetch_fpregs, store_fpregs): Likewise.
7342 (m68k_linux_fetch_inferior_registers): Likewise.
7343 (m68k_linux_store_inferior_registers): Likewise.
7344 * m88kbsd-nat.c (m88kbsd_fetch_inferior_registers): Likewise.
7345 (m88kbsd_store_inferior_registers): Likewise.
7346 * mips64obsd-nat.c (mips64obsd_fetch_inferior_registers): Likewise.
7347 (mips64obsd_store_inferior_registers): Likewise.
7348 * mips-linux-nat.c (mips64_linux_regsets_fetch_registers): Likewise.
7349 (mips64_linux_regsets_store_registers): Likewise.
7350 (mips64_linux_fetch_registers): Likewise.
7351 (mips64_linux_store_registers): Likewise.
7352 * mipsnbsd-nat.c (mipsnbsd_fetch_inferior_registers): Likewise.
7353 (mipsnbsd_store_inferior_registers): Likewise.
7354 * monitor.c (monitor_fetch_register, monitor_store_register): Likewise.
7355 (monitor_fetch_registers, monitor_store_registers): Likewise.
7356 * nto-procfs.c (procfs_fetch_registers): Likewise.
7357 (procfs_store_registers): Likewise.
7358 * ppc-linux-nat.c (fetch_altivec_register, fetch_spe_register,
7359 fetch_register, supply_vrregset, fetch_altivec_registers,
7360 fetch_ppc_registers, ppc_linux_fetch_inferior_registers): Likewise.
7361 (store_altivec_register, store_spe_register, store_register,
7362 fill_vrregset, store_altivec_registers, store_ppc_registers,
7363 ppc_linux_store_inferior_registers): Likewise.
7364 * ppcnbsd-nat.c (ppcnbsd_fetch_inferior_registers): Likewise.
7365 (ppcnbsd_store_inferior_registers): Likewise.
7366 * ppcobsd-nat.c (ppcobsd_fetch_registers): Likewise.
7367 (ppcobsd_store_registers): Likewise.
7368 * procfs.c (procfs_fetch_registers, procfs_store_registers): Likewise.
7369 * remote.c (fetch_register_using_p, process_g_packet,
7370 fetch_registers_using_g, remote_fetch_registers): Likewise.
7371 (store_register_using_P, store_registers_using_G,
7372 remote_store_registers): Likewise.
7373 * remote-m32r-sdi.c (m32r_fetch_registers, m32r_fetch_register,
7374 m32r_store_register, m32r_store_register): Likewise.
7375 * remote-mips.c (mips_fetch_registers, mips_store_registers): Likewise.
7376 * remote-sim.c (gdbsim_fetch_register): Likewise.
7377 (gdbsim_store_register): Likewise.
7378 * rs6000-nat.c (fetch_register, store_register): Likewise.
7379 (rs6000_fetch_inferior_registers): Likewise.
7380 (rs6000_store_inferior_registers): Likewise.
7381 * s390-nat.c (fetch_regs, store_regs): Likewise.
7382 (fetch_fpregs, store_fpregs): Likewise.
7383 (s390_linux_fetch_inferior_registers): Likewise.
7384 (s390_linux_store_inferior_registers): Likewise.
7385 * shnbsd-nat.c (shnbsd_fetch_inferior_registers): Likewise.
7386 (shnbsd_store_inferior_registers): Likewise.
7387 * sol-thread.c (sol_thread_fetch_registers): Likewise.
7388 (sol_thread_store_registers): Likewise.
7389 * sparc-nat.c (fetch_inferior_registers): Likewise.
7390 (store_inferior_registers): Likewise.
7391 * spu-linux-nat.c (spu_fetch_inferior_registers): Likewise.
7392 (spu_store_inferior_registers): Likewise.
7393 * target.c (debug_print_register): Likewise.
7394 (debug_to_fetch_registers, debug_to_store_registers): Likewise.
7395 * vaxbsd-nat.c (vaxbsd_fetch_inferior_registers): Likewise.
7396 (vaxbsd_store_inferior_registers): Likewise.
7397 * win32-nat.c (do_win32_fetch_inferior_registers): Likewise.
7398 (win32_fetch_inferior_registers): Likewise.
7399 (win32_store_inferior_registers): Likewise.
7401 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7403 * gdbcore.h (struct regcache): Add forward declaration.
7404 (struct core_fns): Add REGCACHE argument to core_read_registers
7406 * corelow.c (get_core_register_section): Add REGCACHE argument,
7407 use it instead of current_regcache, pass it to core_read_registers
7409 (get_core_registers): Add current_regcache as parameter to
7410 get_core_register_section calls.
7412 * alpha-nat.c (fetch_osf_core_registers): Add REGCACHE argument,
7413 use it instead of current_regcache.
7414 * armnbsd-nat.c (fetch_core_registers): Likewise.
7415 (fetch_elfcore_registers): Likewise.
7416 * core-regset.c (fetch_core_registers): Likewise.
7417 * cris-tdep.c (fetch_core_registers): Likewise.
7418 * irix5-nat.c (fetch_core_registers): Likewise.
7419 * m68klinux-nat.c (fetch_core_registers): Likewise.
7420 * mips-linux-tdep.c (fetch_core_registers): Likewise.
7421 * win32-nat.c (fetch_elf_core_registers): Likewise.
7423 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7425 * gregset.h (struct regcache): Add forward declaration.
7426 (supply_gregset): Add REGCACHE parameter, make GREGS const.
7427 (supply_fpregset): Add REGCACHE parameter, make FPREGS const.
7428 (supply_fpxregset): Add REGCACHE parameter, make FPXREGS const.
7429 (fill_gregset): Add REGCACHE parameter.
7430 (fill_fpregset): Likewise.
7431 (fill_fpxregset): Likewise.
7433 Update all definitions accordingly:
7434 * alphabsd-nat.c, alpha-linux-nat.c, alpha-nat.c, amd64-linux-nat.c,
7435 arm-linux-nat.c, hppa-linux-nat.c, i386gnu-nat.c, i386-linux-nat.c,
7436 i386-sol2-nat.c, i386v4-nat.c, ia64-linux-nat.c, irix5-nat.c,
7437 m32r-linux-nat.c, m68klinux-nat.c, mips-linux-nat.c, ppc-linux-nat.c,
7438 s390-nat.c, sparc64-linux-nat.c, sparc-linux-nat.c, sparc-sol2-nat.c
7439 (supply_gregset): Add REGCACHE parameter, use it instead of
7440 current_regcache. Make GREGSETP parameter const, adapt casts.
7441 (supply_fpregset): Add REGCACHE parameter, use it instead of
7442 current_regcache. Make FPREGSETP parameter const, adapt casts.
7443 (fill_gregset): Add REGCACHE parameter, use it instead of
7445 (fill_fpregset): Likewise.
7447 Update all callers to pass in current_regcache as the new argument:
7448 * core-regset.c: Include "regcache.h".
7449 (fetch_core_registers): Update supply_gregset,and supply_fpregset calls.
7450 * procfs.c: Include "regcache.h".
7451 (procfs_fetch_registers): Update supply_gregset, supply_fpregset calls.
7452 (procfs_store_registers): Update fill_gregset, fill_fpregset calls.
7453 (procfs_do_thread_registers): Likewise.
7454 (procfs_make_note_section): Likewise.
7455 * proc-service.c: Include "regcache.h".
7456 (ps_lgetregs): Update fill_gregset call.
7457 (ps_lsetregs): Update supply_gregset call.
7458 (ps_lgetfpregs): Update fill_fpregset call.
7459 (ps_lsetfpregs): Update supply_fpregset call.
7460 * sol-thread.c (sol_thread_fetch_registers): Update supply_gregset,
7461 supply_fpregset calls.
7462 (sol_thread_store_registers): Update fill_gregset, fill_fpregset calls.
7463 (ps_lgetregs): Update fill_gregset call.
7464 (ps_lsetregs): Update supply_gregset call.
7465 (ps_lgetfpregs): Update fill_fpregset call.
7466 (ps_lsetfpregs): Update supply_fpregset call.
7468 * linux-nat.c (linux_nat_do_thread_registers): Update fill_gregset,
7469 fill_fpregset, and fill_fpxregset calls.
7470 * i386-linux-nat.c (fetch_regs): Update supply_gregset call.
7471 (store_regs): Update fill_gregset call.
7472 (fetch_fpregs): Update supply_fpregset call.
7473 (store_fpregs): Update fill_fpregset call.
7474 (fetch_fpxregs): Update supply_fpxregset call.
7475 (store_fpxregs): Update fill_fpxregset call.
7476 * m32r-linux-nat.c (fetch_regs): Update supply_gregset call.
7477 (store_regs): Update fill_gregset call.
7478 * m68klinux-nat.c (fetch_regs): Update supply_gregset call.
7479 (store_regs): Update fill_gregset call.
7480 (fetch_fpregs): Update supply_fpregset call.
7481 (store_fpregs): Update fill_fpregset call.
7482 (fetch_core_registers): Update supply_gregset, supply_fpregset calls.
7483 * s390-nat.c (fetch_regs): Update supply_gregset call.
7484 (store_regs): Update fill_gregset call.
7485 (fetch_fpregs): Update supply_fpregset call.
7486 (store_fpregs): Update fill_fpregset call.
7488 * Makefile.in (core-regset.o, procfs.o, proc-service.o): Update
7491 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7493 * monitor.c (monitor_supply_register): Add REGCACHE parameter, use
7494 it instead of current_regcache.
7495 (parse_register_dump): Add REGCACHE parameter, pass it to
7496 supply_register callback.
7497 (monitor_dump_reg_block): Add REGCACHE parameter, pass it to
7498 parse_register_dump.
7499 (monitor_dump_regs): Add REGCACHE parameter, pass it to
7500 parse_register_dump and dumpregs callback.
7501 (monitor_wait): Pass current_regcache to parse_register_dump and
7503 (monitor_fetch_register): Pass current_regcache to
7504 monitor_supply_register.
7505 (monitor_fetch_registers): Pass current_regcache to
7507 * monitor.h (struct monitor_ops): Add REGCACHE parameter to
7508 supply_register and dumpregs callbacks.
7509 (monitor_supply_register, monitor_dump_reg_block): Update
7511 * dbug-rom.c (dbug_supply_register): Add REGCACHE parameter. Pass
7512 it to monitor_supply_register.
7513 * dink32-rom.c (dink32_supply_register): Likewise.
7514 * ppcbug-rom.c (ppcbug_supply_register): Likewise.
7515 * m32r-rom.c (m32r_supply_register): Likewise. Also, use REGCACHE
7516 instead of current_regcache.
7518 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7520 * i386-nto-tdep.c (i386nto_supply_gregset, i386nto_supply_fpregset):
7521 Add REGCACHE parameter. Use it instead of current_regcache.
7522 (i386nto_supply_regset): Add REGCACHE parameter, pass it to
7523 i386nto_supply_gregset and i386nto_supply_fpregset.
7524 (i386nto_regset_fill): Add REGCACHE parameter; use it instead
7525 of current_regcache.
7527 * nto-procfs.c (procfs_fetch_registers): Pass current_regcache to
7528 nto_supply_ helper functions.
7529 (procfs_store_registers): Pass current_regcache to nto_regset_fill.
7531 * nto-tdep.c (nto_dummy_supply_regset): Add REGCACHE parameter.
7533 * nto-tdep.h (struct nto_target_ops): Add REGCACHE parameter to
7534 supply_greget, supply_fpregset, supply_altregset, supply_regset,
7535 and regset_fill member function pointers.
7536 (nto_dummy_supply_regset): Adapt prototype.
7538 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7540 * shnbsd-tdep.c (shnbsd_supply_reg): Add REGCACHE parameter, use it
7541 instead of current_regcache. Make REGS const.
7542 (shnbsd_fill_reg): Add REGCACHE parameter; replace current_regcache.
7543 * shnbsd-tdep.h (shnbsd_supply_reg, shnbsd_fill_reg): Update
7545 * shnbsd-nat.c: Include "regcache.h".
7546 (shnbsd_fetch_inferior_registers): Pass current_regcache to
7548 (shnbsd_store_inferior_registers): Pass current_regcache to
7550 * Makefile.in (shbsd-nat.o): Update dependencies.
7552 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7554 * mips-linux-tdep.c (supply_32bit_reg): Add REGCACHE parameter. Use it
7555 instead of current_regcache.
7556 (mips_supply_gregset): Likewise. Pass REGCACHE to supply_32bit_reg.
7557 Make GREGSETP const, remove superfluous casts.
7558 (mips_fill_gregset): Add REGCACHE parameter; replace current_regcache.
7559 (mips_supply_fpregset): Likewise. Make FPREGSETP const, remove
7561 (mips_fill_fpregset): Add REGCACHE parameter; replace current_regcache.
7562 (supply_64bit_reg): Likewise
7563 (mips64_supply_gregset): Likewise. Pass REGCACHE to supply_64bit_reg.
7564 Make GREGSETP const, adapt casts accordingly.
7565 (mips64_fill_gregset): Add REGCACHE parameter; replace current_regcache.
7566 (mips64_supply_fpregset): Likewise. Make FPREGSET const, adapt
7568 (mips64_fill_fpregset): Add REGCACHE parameter; replace current_regcache.
7569 (fetch_core_registers): Pass current_regcache to mips{64}_(supply|fill)_
7571 * mips-linux-tdep.h (mips_supply_gregset, mips_fill_gregset,
7572 mips_supply_fpregset, mips_fill_fpregset, mips64_supply_gregset,
7573 mips64_fill_gregset, mips64_supply_fpregset, mips64_fill_fpregset):
7575 * mips-linux-nat.c: Include "regcache.h".
7576 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): Pass
7577 current_regcache to mips{64}_(supply|fill)_ helper routines.
7578 (mips64_linux_regsets_fetch_registers): Likewise.
7579 (mips64_linux_regsets_store_registers): Likewise.
7581 * mipsnbsd-tdep.c (mipsnbsd_supply_reg, mipsnbsd_supply_fpreg): Add
7582 REGCACHE argument; replace current_regcache. Make REGS const.
7583 (mipsnbds_fill_reg, mipsnbsd_fill_fpreg): Add REGCACHE argument;
7584 replace current_regcache.
7585 * mipsnbsd-tdep.h (ipsnbsd_supply_reg, mipsnbsd_supply_fpreg,
7586 mipsnbds_fill_reg, mipsnbsd_fill_fpreg): Adapt prototypes.
7587 * mipsnbsd-nat.c (mipsnbsd_fetch_inferior_registers,
7588 mipsnbsd_store_inferior_registers): Pass current_regcache to
7589 mipsnbsd_(supply|fill)_... helper routines.
7591 * Makefile.in (mips-linux-nat.o): Update dependencies.
7593 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7595 * i387-tdep.c (i387_fill_fsave, i387_fill_fxsave): Remove.
7596 * i387-tdep.h (i387_fill_fsave, i387_fill_fxsave): Remove prototypes.
7597 * i368-linux-nat.c (supply_fpregset, supply_fpxregset): Replace
7598 i387_fill_fsave and i387_fill_fxsave calls by inline copies.
7599 * i386-nto-tdep.c (i386nto_regset_fill): Likewise.
7600 * i386gnu-nat.c (store_fpregs): Likewise.
7601 * i386v4-nat.c (fill_fpregset): Likewise.
7602 * go32-nat.c (store_register, go32_store_registers): Likewise.
7604 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7606 * cris-tdep.c (supply_gregset): Rename to ...
7607 (cris_supply_gregset): ... this. Add REGCACHE parameter. Use it
7608 instead of current_regcache.
7609 (fetch_core_registers): Update call. Pass current_regcache.
7611 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7613 * arnmnbsd-nat.c (supply_gregset): Rename to ...
7614 (arm_supply_gregset): ... this. Add REGCACHE parameter.
7615 Use it instead of current_regcache.
7616 (supply_fparegset): Rename to ...
7617 (arm_supply_fparegset): ... this. Add REGCACHE parameter.
7618 Use it instead of current_regcache.
7619 (fetch_regs, fetch_fp_regs): Update calls. Pass current_regcache.
7620 (fetch_core_registers, fetch_elfcore_registers): Likewise.
7622 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7624 * alpha-tdep.c (alpha_supply_int_regs, alpha_fill_int_regs,
7625 alpha_supply_fp_regs, alpha_fill_fp_regs): Add REGCACHE parameter,
7626 use it instead of current_regcache.
7627 * alpha-tdep.h (struct regcache): Add forward declaration.
7628 (alpha_supply_int_regs, alpha_fill_int_regs, alpha_supply_fp_regs,
7629 alpha_fill_fp_regs): Update prototypes.
7631 * alpha-nat.c: (supply_gregset, fill_gregset, supply_fpregset,
7632 fill_fpregset): Pass current_regcache to alpha_supply/fill_ routines.
7633 * alpha-linux-nat.c: Include "regcache.h".
7634 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): Pass
7635 current_regcache to alpha_supply/fill_ routines.
7637 * alphabsd-tdep.c: Include "regcache.h".
7638 (alphabsd_supply_reg, alphabsd_supply_fpreg): Add REGCACHE paramter,
7639 pass it to alpha_supply_ routines. Make REGS const.
7640 (alphabsd_fill_reg, alphabsd_fill_fpreg): Add REGCACHE parameter,
7641 pass it to alpha_fill_ routines.
7642 * alphabsd-tdep.h (struct regcache): Add forward declaration.
7643 (alphabsd_supply_reg, alphabsd_fill_reg, alphabsd_supply_fpreg,
7644 alphabsd_fill_fpreg): Update prototypes.
7646 * alphanbsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
7647 fill_fpregset, alphabsd_fetch_inferior_registers,
7648 alphabsd_store_inferior_registers): Pass current_regcache to
7649 alphabsd_supply/fill_ routines.
7651 * Makefile.in (alpha-linux-nat.o, alphabsd-tdep.o): Update
7654 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7656 * aix-thread.c (supply_gprs64, supply_reg32, supply_fprs,
7657 supply_sprs64, supply_sprs32): Add REGCACHE parameter, use it
7658 instead of current_regcache.
7659 (fetch_regs_user_thread, fetch_regs_kernel_thread): Add
7660 REGCACHE parameter, pass it to supply_ routines.
7661 (aix_thread_fetch_registers): Pass current_regcache to
7662 fetch_regs_user_thread and fetch_regs_kernel_thread.
7664 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs64, fill_sprs32):
7665 Add REGCACHE parameter, use it instead of current_regcache.
7666 Call regcache_valid_p instead of register_cached.
7667 (store_regs_user_thread, store_regs_kernel_thread): Likewise.
7668 Also, pass REGCACHE to fill_ routines.
7669 (aix_thread_store_registers): Pass current_regcache to
7670 store_regs_user_thread and store_regs_kernel_thread.
7672 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7674 * m32r-linux-nat.c (supply_gregset): Do not modify contents
7675 pointed to by GREGSETP.
7677 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7679 * irix5-nat.c (fill_gregset): Use regcache_raw_collect instead
7680 of regcache_raw_read_signed.
7681 (fill_fpregset): Use regcache_raw_collect instead of
7684 2007-05-03 Kevin Buettner <kevinb@redhat.com>
7686 * mips-tdep.c (mips_eabi_push_dummy_call): When pushing floating
7687 point arguments, test explicitly for use of the EABI32 ABI
7688 instead of inferring this condition from tests on register
7691 2007-05-03 Kevin Buettner <kevinb@redhat.com>
7693 * breakpoint.c (set_raw_breakpoint): Adjust breakpoint's address
7694 prior to allocating its location.
7696 2007-05-02 Maciej W. Rozycki <macro@mips.com>
7698 * mips-tdep.c (mips_o32_push_dummy_call): Remove conditions
7699 based on mips_abi_regsize() whose result is known in advance.
7700 (mips_o64_push_dummy_call): Likewise.
7702 2007-04-29 Ulrich Weigand <uweigand@de.ibm.com>
7704 * m68klinux-nat.c: Remove #ifndef USE_PROC_FS check.
7705 * m68k-tdep.c: Remove code within #ifdef USE_PROC_FS.
7707 * mips-linux-nat.c: Include "gregset.h".
7708 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): Move
7709 from mips-linux-tdep.c. Change parameter type to gdb_gregset_t.
7710 * mips-linux-tdep.c (supply_gregset, fill_gregset, supply_fpregset,
7711 fill_fpregset): Move to mips-linux-nat.c.
7713 * Makefile.in (m68k-tdep.o, mips-linux-nat.o): Update dependencies.
7715 2007-04-28 Ulrich Weigand <uweigand@de.ibm.com>
7717 * regcache.c (deprecated_read_register_gen): Remove, inline ...
7718 (read_register): ... here.
7719 (deprecated_write_register_gen): Remove, inline ...
7720 (write_register): ... here.
7721 * regcache.h (deprecated_read_register_gen): Remove prototype.
7722 (deprecated_write_register_gen): Likewise.
7724 * remote-sim.c (gdbsim_store_register): Replace call to
7725 deprecated_read_register_gen with regcache_cooked_read.
7726 * target.c (debug_print_register): Replace calls to
7727 deprecated_read_register_gen and read_register with
7728 regcache_cooked_read.
7730 2007-04-28 Ulrich Weigand <uweigand@de.ibm.com>
7732 * hpux-thread.c (hpux_thread_store_registers): Use
7733 regcache_raw_collect, not regcache_raw_read.
7734 * irix5-nat.c (fetch_core_registers): Use regcache_raw_supply,
7735 not regcache_raw_write.
7737 2007-04-28 Ulrich Weigand <uweigand@de.ibm.com>
7739 * gdbarch.sh: Remove deprecated_register_byte.
7740 * gdbarch.c, gdbarch.h: Regenerate.
7741 * arch-utils.h (generic_register_size, generic_register_byte): Remove.
7742 * arch-utils.c (generic_register_size, generic_register_byte): Remove.
7744 * regcache.h (regcache_valid_p): Make REGCACHE parameter const.
7745 * regcache.c (regcache_valid_p): Allow to query cooked registers in
7746 read-only register caches. Make REGCACHE parameter const.
7747 (regcache_dump): Do not check DEPRECATED_REGISTER_BYTE.
7749 * mi/mi-main.c (old_regs): Remove.
7750 (mi_setup_architecture_data, _initialize_mi_main): Remove.
7751 (register_changed_p): Reimplement to compare two register caches.
7752 (mi_cmd_data_list_changed_registers): Update caller.
7753 * mi/mi-main.h (mi_setup_architecture_data): Remove.
7754 * mi/mi-interp.c (mi_interpreter_init): Do not call
7755 mi_setup_architecture_data.
7757 2007-04-28 Ulrich Weigand <uweigand@de.ibm.com>
7759 * alpha-nat.c (ALPHA_REGSET_BASE, ALPHA_REGSET_UNIQUE): Do not define,
7760 inline definition at the places the macros are used.
7761 * alpha-linux-nat.c (ALPHA_REGSET_BASE, ALPHA_REGSET_UNIQUE): Likewise.
7763 2007-04-28 Ulrich Weigand <uweigand@de.ibm.com>
7765 * rs6000-aix-tdep.c: Include "regcache.h", "regset.h", and
7767 (rs6000_aix32_reg_offsets, rs6000_aix64_reg_offsets): New variables.
7768 (rs6000_aix_supply_regset, rs6000_aix_collect_regset): New functions.
7769 (rs6000_aix32_regset, rs6000_aix64_regset): New variables.
7770 (rs6000_aix_regset_from_core_section): New function.
7771 (rs6000_aix_init_osabi): Register it.
7772 (_initialize_rs6000_aix_tdep): Register GDB_OSABI_AIX osabi and
7773 sniffer for bfd_arch_powerpc as well as bfd_arch_rs6000.
7774 * rs6000-nat.c (CoreRegs): Do not define type.
7775 (fetch_core_registers, rs6000_core_fns): Remove.
7776 (_initialize_core_rs6000): Do not register it. Rename to ...
7777 (_initialize_rs6000_nat): ... this.
7778 * Makefile.in (rs6000-aix-tdep.o): Update dependencies.
7780 2007-04-27 Kevin Buettner <kevinb@redhat.com>
7782 * dwarf2expr.c (unsigned_address_type): Add forward declaration.
7783 (dwarf2_read_address): Sign extend return address as required by
7784 target architecture.
7786 2007-04-27 Kevin Buettner <kevinb@redhat.com>
7788 * solib-frv.c (lm_base): Bail out if the main executable has
7791 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
7793 * alpha-linux-tdep.c (alpha_linux_supply_fpregset): Correct location
7794 of FPCR register in fpregset.
7796 2007-04-27 Maciej W. Rozycki <macro@mips.com>
7798 * Makefile.in (gdbtk-wrapper.o): Update dependencies.
7799 (gdbtk-varobj.o, gdbtk-cmds.o, gdbtk-stack.o): Likewise.
7801 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
7803 * config/rs6000/nm-rs6000.h (CHILD_SPECIAL_WAITSTATUS): Remove.
7804 * rs6000-nat.c (rs6000_wait): New function.
7805 (_initialize_core_rs6000): Install it as to_wait target method.
7806 * target.c (store_waitstatus): Don't check CHILD_SPECIAL_WAITSTATUS.
7808 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
7810 * config/rs6000/nm-rs6000.h (TARGET_CREATE_INFERIOR_HOOK): Remove.
7811 * fork-child.c (fork_inferior): Don't call TARGET_CREATE_INFERIOR_HOOK.
7812 * rs6000-nat.c (super_create_inferior): New variable.
7813 (rs6000_create_inferior): Make static. Adapt argument list. Call
7814 original version of create_inferior via super_create_inferior.
7815 (_initialize_core_rs6000): Install to_create_inferior target method.
7817 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
7819 * aix-thread.c (aix_thread_xfer_memory): Replace by ...
7820 (aix_thread_xfer_partial): ... this.
7821 (init_aix_thread_ops): Install to_xfer_partial instead
7822 of deprecated_xfer_memory target method.
7824 * config/powerpc/aix.mh (NATDEPFILES): Remove infptrace.o
7825 and inftarg.o, add inf-ptrace.o.
7826 * config/rs6000/nm-rs6000.h (FETCH_INFERIOR_REGISTERS,
7827 CHILD_XFER_MEMORY, KERNEL_U_SIZE, kernel_u_size): Remove.
7828 * rs6000-nat.c: Include "inf-ptrace.h" and "gdb_stdint.h".
7829 (fetch_inferior_registers): Rename to ...
7830 (rs6000_fetch_inferior_registers): ... this. Make static.
7831 (store_inferior_registers): Rename to ...
7832 (rs6000_store_inferior_registers): ... this. Make static.
7833 (read_word, child_xfer_memory): Remove.
7834 (rs6000_xfer_partial): New function.
7835 (kernel_u_size): Remove.
7836 (_initialize_core_rs6000): Add inf_ptrace-based target.
7837 * Makefile.in (rs6000-nat.o): Update dependencies.
7839 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
7841 * inf-ptrace.c: Include "gdb_stdint.h".
7842 (inf_ptrace_xfer_partial): Use "uintptr_t" instead of "long" as
7843 intermediate type when casting CORE_ADDR to PTRACE_TYPE_ARG3.
7844 (inf_ptrace_fetch_register): Add intermediate cast to "uintptr_t"
7845 before casting CORE_ADDR to PTRACE_TYPE_ARG3.
7846 (inf_ptrace_store_register): Likewise.
7847 * Makefile.in (inf-ptrace.o): Update dependencies.
7849 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
7851 * configure.host (rs6000-*-*): Merge with powerpc-*-aix* rules.
7852 * configure.tgt (rs6000-*-*): Likewise.
7853 * config/rs6000/aix4.mh: Delete file.
7854 * config/rs6000/aix4.mt: Delete file.
7855 * config/rs6000/rs6000.mh: Delete file.
7856 * config/rs6000/rs6000.mt: Delete file.
7858 * config/powerpc/nm-aix.h: Delete file.
7859 * config/powerpc/aix.mh (NAT_FILE): Set to config/rs6000/nm-rs6000.h.
7861 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
7863 * aix-thread.c (fill_sprs32): Change argument types to "uint32_t *".
7864 Remove obsolete part of comment.
7865 (store_regs_user_thread): Use uint32_t temporaries when calling
7867 (store_regs_kernel_thread): Likewise. Add assertion to verify
7868 correct size of struct ptsprs members.
7869 (aix_thread_xfer_memory): Fix type of myaddr.
7870 (aix_thread_extra_thread_info): Fix compiler warning.
7871 * rs6000-nat.c (rs6000_ptrace64): Change type of buf to "void *".
7872 (fetch_register, store_register): Adapt callers.
7874 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
7876 * vec.h (vec_free): Rename to vec_free_. Adapt users.
7878 2007-04-25 Ulrich Weigand <uweigand@de.ibm.com>
7880 * alpha-linux-tdep.c: Include "gdb_string.h", "regset.h",
7882 (alpha_linux_supply_gregset, alpha_linux_supply_fpregset): New.
7883 (alpha_linux_gregset, alpha_linux_fpregset): New variables.
7884 (alpha_linux_regset_from_core_section): New function.
7885 (alpha_linux_init_abi): Install it.
7886 * alpha-linux-nat.c: Do not include "gdbcore.h". Include
7887 "alpha-tdep.h", <sys/ptrace.h>, <alpha/ptrace.h>,
7888 <sys/procfs.h>, and "gregset.h".
7889 (ALPHA_REGSET_BASE, ALPHA_REGSET_UNIQUE, ALPHA_UNIQUE_PTRACE_ADDR):
7890 Move from config/alpha/nm-linux.h.
7891 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): Copy
7893 (alpha_linux_register_u_offset): Inline register_addr from alpha-nat.c.
7894 * alpha-nat.c: Remove #ifdef __linux__ section.
7895 (fetch_elf_core_registers, alpha_elf_core_fns): Remove.
7896 (_initialize_core_alpha): Do not register alpha_elf_core_fns.
7897 (ALPHA_UNIQUE_PTRACE_ADDR, ALPHA_REGSET_UNIQUE): Define unconditionally.
7898 (ALPHA_REGSET_BASE): Move from config/alpha/nm-osf.h.
7899 * config/alpha/alpha-linux.mh (NAT_FILE): Set to config/nm-linux.h.
7900 (NATDEPFILES): Remove alpha-nat.o.
7901 * config/alpha/nm-linux.h: Delete file.
7902 * config/alpha/nm-osf.h (ALPHA_REGSET_BASE): Move to alpha-nat.c.
7903 * Makefile.in (alpha-linux-nat.o): Update dependencies.
7904 (alpha-linux-tdep.o): Likewise.
7906 2007-04-25 Ulrich Weigand <uweigand@de.ibm.com>
7908 * mips-linux-nat.c: No longer include "gdbcore.h".
7909 (mips_linux_register_addr): Move from mips-linux-tdep.c.
7910 (mips64_linux_register_addr): Likewise.
7911 (mips_linux_register_u_offset): Call mips_linux_register_addr or
7912 mips64_linux_register_addr instead of register_addr.
7913 * mips-linux-tdep.c (mips_linux_register_addr,
7914 mips64_linux_register_addr): Move to mips-linux-nat.c.
7915 (register_addr): Remove.
7916 (register_addr_data, init_register_addr_data): Remove.
7917 (_initialize_mips_linux_tdep): Do not initialize register_addr_data.
7918 (set_mips_linux_register_addr): Remove.
7919 (mips_linux_init_abi): Do not call set_mips_linux_register_addr.
7920 * Makefile.in (mips-linux-nat.o): Update dependencies.
7922 2007-04-25 Ulrich Weigand <uweigand@de.ibm.com>
7924 * linux-nat.c (linux_register_u_offset): Remove.
7925 (linux_target_install_ops): New function.
7926 (linux_target): Use it.
7927 (linux_trad_target): New function.
7928 * linux-nat.h (linux_trad_target): Declare.
7930 * alpha-linux-nat.c: Include "gdbcore.h".
7931 (alpha_linux_register_u_offset): New function.
7932 (_initialize_alpha_linux_nat): Use linux_trad_target.
7934 * mips-linux-nat.c: Include "gdbcore.h".
7935 (mips_linux_register_u_offset): New function.
7936 (_initialize_mips_linux_nat): Use linux_trad_target.
7938 * config/arm/linux.mh (NAT_FILE): Set to config/nm-linux.h.
7939 * config/arm/nm-linux.h: Delete file.
7941 * config/i386/nm-linux64.h (FETCH_INFERIOR_REGISTERS): Remove.
7942 * config/i386/nm-linux.h (FETCH_INFERIOR_REGISTERS): Remove.
7944 * config/ia64/linux.mh (NAT_FILE): Set to config/nm-linux.h.
7945 * config/ia64/nm-linux.h: Delete file.
7947 * config/m32r/linux.mh (NAT_FILE): Set to config/nm-linux.h.
7948 * config/m32r/nm-linux.h: Delete file.
7950 * config/m68k/linux.mh (NAT_FILE): Set to config/nm-linux.h.
7951 * config/m68k/nm-linux.h: Delete file.
7953 * config/pa/linux.mh (NAT_FILE): Set to config/nm-linux.h.
7954 * config/pa/nm-linux.h: Delete file.
7956 * config/powerpc/linux.mh (NAT_FILE): Set to config/nm-linux.h.
7957 * config/powerpc/ppc64-linux.mh (NAT_FILE): Likewise.
7958 * config/powerpc/nm-linux.h: Delete file.
7960 * config/s390/s390.mh (NAT_FILE): Set to config/nm-linux.h.
7961 * config/s390/nm-linux.h: Delete file.
7963 * config/sparc/linux.mh (NAT_FILE): Set to config/nm-linux.h.
7964 * config/sparc/linux64.mh (NAT_FILE): Likewise.
7965 * config/sparc/nm-linux.h: Delete file.
7967 * Makefile.in (alpha-linux-nat.o): Update dependencies.
7968 (mips-linux-nat.o): Likewise.
7970 2007-04-25 Ulrich Weigand <uweigand@de.ibm.com>
7972 * core-aout.c: Delete file.
7973 * Makefile.in (ALLDEPFILES): Remove core-aout.c.
7974 (core-aout.o): Delete rule.
7975 * gdbcore.h (kernel_u_addr, KERNEL_U_ADDR): Remove.
7977 * config/alpha/nm-linux.h (U_REGS_OFFSET): Remove.
7979 * arm-linux-nat.c (arm_linux_kernel_u_size): Remove.
7980 * config/arm/nm-linux.h (U_REGS_OFFSET, KERNEL_U_SIZE,
7981 KERNEL_U_ADDR): Remove.
7983 * i386-linux-nat.c (register_u_addr, kernel_u_size): Remove.
7984 (cannot_fetch_register, cannot_store_register): Remove.
7985 (fetch_register): Inline cannot_fetch_register and register_addr.
7986 (store_register): Inline cannot_store_register and register_addr.
7987 * config/i386/linux.mh (NATDEPFILES): Remove core-aout.o.
7988 * config/i386/nm-linux.h (KERNEL_U_SIZE, KERNEL_U_ADDR,
7989 REGISTER_U_ADDR, CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER):
7992 * m68klinux-nat.c (m68k_linux_register_u_addr, kernel_u_size): Remove.
7993 (fetch_register): Inline register_addr.
7994 (store_register): Inline register_addr.
7995 * config/m68k/linux.mh (NATDEPFILES): Remove core-aout.o.
7996 * config/m68k/nm-linux.h (KERNEL_U_SIZE, KERNEL_U_ADDR,
7997 U_REGS_OFFSET, REGISTER_U_ADDR): Remove.
7999 * config/mips/nm-irix5.h (REGISTER_U_ADDR): Remove.
8000 * config/mips/nm-linux.h (KERNEL_U_SIZE, U_REGS_OFFSET,
8001 REGISTER_U_ADDR): Remove.
8003 * hppa-linux-nat.c (register_addr): Rename to ...
8004 (hppa_linux_register_addr): ... this. Make static.
8005 (fetch_register, store_register): Adapt callers.
8006 * config/pa/nm-linux.h (U_REGS_OFFSET): Remove.
8008 * ppc-linux-nat.c (kernel_u_size): Remove.
8009 * config/powerpc/nm-linux.h (KERNEL_U_SIZE, KERNEL_U_ADDR): Remove.
8011 * vax-nat.c (vax_kernel_u_addr, vax_register_u_addr): Make static.
8012 * config/vax/vax.mh (NATDEPFILES): Remove core-aout.o.
8014 * config/vax/nm-vax.h: Delete file.
8016 2007-04-20 Mark Shinwell <shinwell@codesourcery.com>
8018 * MAINTAINERS (Write After Approval): Add myself.
8020 2007-04-20 Mark Shinwell <shinwell@codesourcery.com>
8022 * Makefile.in: Adjust dependencies of m68klinux-tdep.c.
8023 * m68klinux-tdep.c (m68k_uclinux_sigcontext_reg_offset): New.
8024 (m68k_linux_sigcontext_reg_offset): Fix typo.
8025 (target_is_uclinux): New.
8026 (m68k_linux_inferior_created): New.
8027 (m68k_linux_get_sigtramp_info): Check for uClinux or
8028 normal Linux. Use m68k_uclinux_sigcontext_reg_offset for
8030 (_initialize_m68k_linux_tdep): Register
8031 m68k_linux_inferior_created.
8033 2007-04-19 Pedro Alves <pedro_alves@portugalmail.pt>
8035 * win32-nat.c (win32_detach): Remove delete_command call.
8036 Resume inferior with win32_resume instead of win32_continue.
8038 2007-04-19 Jerome Guitton <guitton@adacore.com>
8040 * ser-mingw.c (fd_is_file): New function.
8041 (file_select_thread): New function.
8042 (ser_console_wait_handle): Add special handling for files.
8044 2007-04-18 Denis Pilat <denis.pilat@st.com>
8046 * dwarf2read.c (read_subrange_type): Use DW_ATE_signed default type
8047 when missing from DW_TAG_subrange_type. Remove the handling of null
8048 return from die_type.
8050 2007-04-18 Maciej W. Rozycki <macro@mips.com>
8052 * mips-tdep.c (mips_eabi_push_dummy_call): Revert the last
8053 change to rearrange some brackets.
8054 (mips_n32n64_push_dummy_call): Likewise.
8055 (mips_o32_push_dummy_call): Likewise.
8056 (mips_o64_push_dummy_call): Likewise.
8058 2007-04-18 Denis Pilat <denis.pilat@st.com>
8060 * infcmd.c (post_create_inferior): Start with a call to
8061 target_terminal_ours.
8063 2007-04-17 Maciej W. Rozycki <macro@mips.com>
8065 * mips-tdep.c (mips_eabi_push_dummy_call): Rearrange some
8067 (mips_n32n64_push_dummy_call): Likewise. Reformat some
8069 (mips_o32_push_dummy_call): Likewise.
8070 (mips_o64_push_dummy_call): Likewise.
8072 2007-04-17 Maciej W. Rozycki <macro@mips.com>
8074 * mips-tdep.c (mips_n32n64_push_dummy_call): Fix a typo in a
8077 2007-04-17 Maciej W. Rozycki <macro@mips.com>
8079 * mips-tdep.c (mips_n32n64_push_dummy_call): Fix a typo in a
8081 (mips_o32_push_dummy_call): Likewise.
8083 2007-04-17 Andreas Schwab <schwab@suse.de>
8085 * symtab.c (skip_prologue_using_sal): Allow the end of the prologue
8086 sal to be bigger than the end of the function.
8088 2007-04-17 Maciej W. Rozycki <macro@mips.com>
8089 Nigel Stephens <nigel@mips.com>
8091 * mips-tdep.c (mips_o32_push_dummy_call): Take account of
8092 argument alignment requirements when calculating stack space
8093 required. When aligning an arg register to eight bytes
8094 boundary, align stack_offset too. Write floating-point
8095 arguments to the appropriate integer register if need go there.
8096 (mips_o64_push_dummy_call): Likewise.
8098 2007-04-14 Ulrich Weigand <uweigand@de.ibm.com>
8100 * gdbarch.sh (software_single_step): Remove "insert_breakpoints_p" and
8101 "sig" arguments, add "regcache" argument.
8102 * gdbarch.c, gdbarch.h: Regenerate.
8104 * infrun.c (resume): Update SOFTWARE_SINGLE_STEP call arguments.
8105 (handle_inferior_event): Call remove_single_step_breakpoints directly
8106 instead of calling SOFTWARE_SINGLE_STEP to remove breakpoints.
8108 * alpha-tdep.c (alpha_software_single_step): Update argument list.
8109 Remove handling of !insert_breakpoints_p case.
8110 * arm-tdep.c (arm_software_single_step): Likewise.
8111 * cris-tdep.c (cris_software_single_step): Likewise.
8112 * mips-tdep.c (mips_software_single_step): Likewise.
8113 * rs6000-tdep.c (rs6000_software_single_step): Likewise.
8114 * sparc-tdep.c (sparc_software_single_step): Likewise.
8115 * spu-tdep.c (spu_software_single_step): Likewise.
8117 * alpha-tdep.h (alpha_software_single_step): Update prototype.
8118 * mips-tdep.h (mips_software_single_step): Likewise.
8119 * rs6000-tdep.h (rs6000_software_single_step): Likewise.
8120 * sparc-tdep.h (sparc_software_single_step): Likewise.
8122 2007-04-14 Ulrich Weigand <uweigand@de.ibm.com>
8124 * alpha-tdep.c (alpha_software_single_step): Do not call write_pc
8125 when removing single-step breakpoints.
8127 2007-04-14 Vladimir Prus <vladimir@codesourcery.com>
8129 * varobj.h (varobj_set_frozen): New
8130 (varobj_get_frozen): New.
8131 (varobj_update): New parameter explicit.
8132 * varobj.c (struct varobj): New fields frozen
8134 (varobj_set_frozen, varobj_get_frozen): New.
8135 (install_new_value): Don't fetch values for
8136 frozen variable object, or children thereof. Allow
8137 a frozen variable object to have non-fetched value.
8138 (varobj_update): Allow updating child variables.
8139 Don't traverse frozen children.
8140 (new_variable): Initialize the frozen field.
8141 (c_value_of_variable): Return NULL for frozen
8142 variable without any value yet.
8143 * mi/mi-cmd-var.c (varobj_update_one): New parameter
8145 (mi_cmd_var_create): Output the 'frozen' field,
8146 as soon as testsuite is adjusted to expect that field.
8147 (mi_cmd_var_set_frozen): New.
8148 (mi_cmd_var_update): Pass the 'explicit' parameter to
8150 * mi/mi-cmds.c (mi_cmds): Register '-var-set-frozen'.
8151 * mi/mi-cmds.h (mi_cmd_var_set_frozen): Declare.
8153 2007-04-13 Paul Brook <paul@codesourcery.com>
8155 * target-descriptions.c (tdesc_named_type): Add ieee_single and
8157 * doc/gdb.texinfo: Document ieee_single and ieee_double target types.
8159 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
8161 * mips-mdebug-tdep.c, mips-mdebug-tdep.h, ocd.c, ocd.h, ppc-bdm.c,
8162 remote-e7000.c, remote-hms.c, remote-utils.c, remote-utils.h,
8163 scm-exp.c, scm-lang.c, scm-lang.h, scm-tags.h, scm-valprint.c,
8164 ser-e7kpc.c, sh3-rom.c, stop-gdb.c: Delete.
8165 * Makefile.in: Remove references to deleted files.
8166 * README: Do not mention deleted ROM monitor interfaces.
8167 * defs.h (enum language): Delete language_scm.
8168 * expprint.c (print_subexp_standard): Do not handle OP_EXPRSTRING.
8169 (dump_subexp_body_standard): Likewise.
8170 * parse.c (operator_length_standard): Likewise.
8171 * expression.h (enum exp_opcode): Delete OP_EXPRSTRING.
8172 * remote-mips.c: Do not include remote-utils.h.
8173 * remote-sim.c: Likewise. Use remote_debug instead of sr_get_debug
8175 * value.c: Do not include scm-lang.h.
8176 (unpack_long): Delete scm_unpack call.
8177 * config/h8300/h8300.mt, config/mips/embed.mt,
8178 config/powerpc/ppc-eabi.mt, config/powerpc/ppc-sim.mt,
8179 config/sh/embed.mt, config/sh/linux.mt: Remove references to
8181 * NEWS: Mention removed files.
8183 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
8185 * symfile.c (add_psymbol_with_dem_name_to_list): Remove.
8186 * symfile.h (add_psymbol_with_dem_name_to_list): Remove prototype.
8188 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
8190 * NEWS: Mention removal of HP aCC support.
8192 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
8194 * solib-svr4.c (IGNORE_FIRST_LINK_MAP_ENTRY): Do not ignore the
8195 first entry for static executables.
8196 (breakpoint_addr): Delete unused variable.
8197 (elf_locate_base): Search for _r_debug in static executables.
8198 (enable_break): Do not set breakpoint_addr. Scan solib_break_names
8201 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
8203 * breakpoint.c (update_breakpoints_after_exec, print_it_typical)
8204 (bpstat_what, print_one_breakpoint, allocate_bp_location)
8205 (mention): Remove bp_through_sigtramp support.
8206 * breakpoint.h (enum bptype): Remove bp_through_sigtramp.
8208 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
8210 * breakpoint.c (bpstat_what): Give step-resume higher priority than
8213 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
8215 * infrun.c: Doc fixes.
8216 (handle_inferior_event): Clarify debug message.
8217 (insert_step_resume_breakpoint_at_sal): Print a debug message.
8219 2007-04-12 Ulrich Weigand <uweigand@de.ibm.com>
8221 * configure.tgt (arm-*-nto*, sh-*-nto*): Remove.
8223 2007-04-12 Ulrich Weigand <uweigand@de.ibm.com>
8225 * config/m68k/tm-monitor.h: Delete file.
8226 * config/m68k/monitor.mt (DEPRECATED_TM_FILE): Remove.
8227 * m68k-tdep.c (m68k_gdbarch_init): set_gdbarch_decr_pc_after_break
8229 * m68kbsd-tdep.c (m68kbsd_init_abi): ... here and ...
8230 * m68klinux-tdep.c (m68k_linux_init_abi): ... here.
8232 2007-04-12 Luis Machado <luisgpm@br.ibm.com>
8234 * gdbarch.sh (software_single_step): Change the return type
8235 from void to int and reformatted some comments to <= 80
8237 * gdbarch.c, gdbarch.h: Regenerated.
8238 * alpha-tdep.c (alpha_software_single_step): Likewise.
8239 * alpha-tdep.h (alpha_software_single_step): Likewise.
8240 * arm-tdep.c (arm_software_single_step): Likewise.
8241 * cris-tdep.c (cris_software_single_step): Likewise.
8242 * mips-tdep.c (mips_software_single_step): Likewise.
8243 * mips-tdep.h (mips_software_single_step): Likewise.
8244 * rs6000-tdep.c (rs6000_software_single_step): Likewise.
8245 * rs6000-tdep.h (rs6000_software_single_step): Likewise.
8246 * sparc-tdep.c (sparc_software_single_step): Likewise.
8247 * sparc-tdep.h (sparc_software_single_step): Likewise.
8248 * spu-tdep.c (spu_software_single_step): Likewise.
8249 * infrun.c (resume): Check the return value from SOFTWARE_SINGLE_STEP
8250 and act accordingly.
8252 2007-04-11 Steve Ellcey <sje@cup.hp.com>
8254 * configure.ac (build_warnings): Add -Wno-char-subscripts.
8255 * configure: Regenerate.
8256 * doc/gdbint.texinfo (warning flags): Add -Wno-char-subscripts.
8258 2007-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
8260 * libunwind-frame.c (LIBUNWIND_SO): Use major version number for `.so'.
8262 2007-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
8264 * gdbtypes.h (TYPE_FLAG_STUB_SUPPORTED, TYPE_STUB_SUPPORTED): New
8266 (TYPE_IS_OPAQUE): Empty vs. opaque structures are now
8267 distinct on the TYPE_STUB_SUPPORTED debug targets.
8268 * dwarf2read.c (read_structure_type): Set TYPE_FLAG_STUB_SUPPORTED.
8270 2007-04-11 Joel Brobecker <brobecker@adacore.com>
8272 * sparc-tdep.c (X_RS2): New macro.
8273 (sparc_skip_stack_check): New function.
8274 (sparc_analyze_prologue): Adjust PC past stack probing
8275 sequence if necessary.
8277 2007-04-10 Andreas Schwab <schwab@suse.de>
8279 * rs6000-tdep.c (rs6000_dwarf2_reg_to_regnum): Decode 64 as CR
8282 2007-04-10 Daniel Jacobowitz <dan@codesourcery.com>
8284 * breakpoint.c (gdb_breakpoint_query): Really return an
8286 (gdb_breakpoint): Likewise.
8287 * thread.c (gdb_list_thread_ids): Likewise.
8288 (gdb_thread_select): Likewise.
8289 * mi/mi-main.c (mi_cmd_thread_select): Expect an enum gdb_rc.
8290 (mi_cmd_thread_list_ids): Remove bogus initialization.
8292 2007-04-10 Daniel Jacobowitz <dan@codesourcery.com>
8294 * Makefile.in (SFILES): Remove hpacc-abi.c.
8295 (COMMON_OBS): Remove hpacc-abi.o.
8296 (ALLDEPFILES): Remove hpread.c and $(HPREAD_SOURCE).
8297 (hpacc-abi.o, hpread.o): Delete rules.
8298 * somread.c: Delete extern declarations from hpread.c.
8299 (som_symfile_read): Do not call do_pxdb or hpread_build_psymtabs.
8300 (som_symfile_finish): Do not call hpread_symfile_finish.
8301 (som_symfile_init): Do not call hpread_symfile_init.
8302 * config/pa/hppa64.mt (TDEPFILES): Remove hpread.o.
8303 * config/pa/hppahpux.mt (TDEPFILES): Likewise.
8304 * hpacc-abi.c, hpread.c: Deleted.
8306 2007-04-10 Daniel Jacobowitz <dan@codesourcery.com>
8308 * solib-svr4.c (enable_break): Simplify return value.
8309 (svr4_solib_create_inferior_hook): Do not warn if enable_break fails.
8311 2007-04-10 Andreas Schwab <schwab@suse.de>
8313 * solib-svr4.h (struct link_map_offsets): Remove l_addr_size,
8314 l_ld_size, l_next_size, l_prev_size, l_name_size.
8316 * solib-svr4.c (LM_ADDR_FROM_LINK_MAP): Use extract_typed_address
8317 to extract addresses from link map.
8318 (LM_DYNAMIC_FROM_LINK_MAP): Likewise.
8319 (LM_NEXT): Likewise.
8320 (LM_NAME): Likewise.
8321 (IGNORE_FIRST_LINK_MAP_ENTRY): Likewise.
8322 (elf_locate_base): Likewise.
8323 (open_symbol_file_object): Likewise.
8324 (svr4_fetch_objfile_link_map): Likewise.
8325 (SOLIB_EXTRACT_ADDRESS): Remove unused macro.
8326 (HAS_LM_DYNAMIC_FROM_LINK_MAP): Test l_ld_offset instead of
8328 (svr4_ilp32_fetch_link_map_offsets): Don't set removed members.
8329 (svr4_lp64_fetch_link_map_offsets): Likewise.
8331 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets): Don't set
8332 removed members. Set l_ld_offset to -1 if not present.
8334 2007-04-08 Vladimir Prus <vladimir@codesourcery.com>
8336 Pass stderr of program run with "target remote |"
8338 * serial.c (serial_open): Set error_fd to -1.
8339 * serial.h (struct serial): New field error_fd.
8340 (struct serial_opts): New field avail.
8341 * ser-pipe.c (pipe_open): Create another pair
8342 of sockets. Pass stderr to gdb.
8343 * ser-mingw.c (pipe_windows_open): Pass
8344 PEX_STDERR_TO_PIPE to pex_run. Initialize
8347 (_initialize_ser_windows): Hook pipe_avail.
8348 * ser-base.c (generic_readchar): Check if there's
8349 anything in stderr channel and route that to gdb_stderr.
8351 2007-04-03 Pedro Alves <pedro_alves@portugalmail.pt>
8353 * dbxread.c (read_ofile_symtab): Move current_objfile
8354 clearing to after end_stabs.
8356 2007-04-01 Andreas Schwab <schwab@suse.de>
8358 * rs6000-tdep.c (rs6000_convert_from_func_ptr_addr): Use parameter
8359 gdbarch instead of current_gdbarch.
8361 2007-04-01 Vladimir Prus <vladimir@codesourcery.com>
8363 * varobj.c (varobj_create): Keep varobj value
8364 NULL when evaluating the type.
8366 2007-03-31 Pedro Alves <pedro_alves@portugalmail.pt>
8368 * NEWS: Mention new Windows CE support.
8370 2007-03-30 Pedro Alves <pedro_alves@portugalmail.pt>
8372 * configure.tgt: Move mips*-*-pe and sh*-*-pe to
8373 the obsoletion stanza.
8374 * NEWS: Mention deleted targets.
8376 * config/sh/tm-wince.h: Remove.
8377 * config/sh/wince.mt: Remove.
8378 * config/mips/tm-wince.h: Remove.
8379 * config/mips/wince.mt: Remove.
8382 * wince-stub.c: Remove.
8383 * wince-stub.h: Remove.
8384 * Makefile.in (wince.o): Remove rule.
8385 (wince-stub.o): Likewise.
8387 * mips-tdep.c (mips_next_pc): Make static.
8388 * mips-tdep.h (mips_next_pc): Remove declaration.
8389 * arm-tdep.c (arm_pc_is_thumb): Make static.
8390 (thumb_get_next_pc): Likewise.
8391 (arm_get_next_pc): Likewise.
8392 * arm-tdep.h (arm_pc_is_thumb_dummy): Remove declaration.
8393 (arm_pc_is_thumb): Likewise.
8394 (thumb_get_next_pc): Likewise.
8395 (arm_get_next_pc): Likewise.
8397 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
8399 * MAINTAINERS: Remove d10v entry.
8400 * Makefile.in (SFILES): Remove dwarfread.c.
8401 (COMMON_OBS): Remove dwarfread.o.
8402 (gdb_sim_d10v_h, abug-rom.o, cpu32bug-rom.o, d10v-tdep.o, dwarfread.o)
8403 (remote-est.o, rom68k-rom.o): Delete.
8404 * NEWS: Mention removal of d10v, target abug, target cpu32bug,
8405 target est, target rom68k, and DWARF 1.
8406 * configure.tgt: Mark d10v as removed.
8407 * dwarf2read.c: Doc update.
8408 * elfread.c (struct elfinfo): Remove dboffset, dbsize, lnoffset,
8410 (elf_locate_sections): Do not set them.
8411 (elf_symfile_read): Do not call dwarf_build_psymtabs.
8412 * symfile.h (dwarf_build_psymtabs): Delete prototype.
8413 * config/m68k/monitor.mt (TDEPFILES): Prune.
8414 * abug-rom.c, cpu32bug-rom.c, d10v-tdep.c, dwarfread.c,
8415 remote-est.c, rom68k-rom.c, config/d10v/d10v.mt: Delete.
8417 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
8419 * doublest.c (convert_floatformat_to_doublest): Use
8420 floatformat_classify.
8421 (floatformat_is_nan): Rename to...
8422 (floatformat_classify): ...this. Return more information.
8423 * doublest.h (enum float_kind): New.
8424 (floatformat_is_nan): Replace prototype...
8425 (floatformat_classify): ...with this one.
8426 * valprint.c (print_floating): Use floatformat_classify. Handle
8429 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
8431 * README: Mention ISO C library requirement.
8433 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
8435 * Makefile.in (SFILES): Remove nlmread.c.
8436 (COMMON_OBS): Remove nlmread.o.
8437 (nlmread.o): Delete rule.
8438 * README: Delete reference to remote-st.c.
8439 * acinclude.m4 (CY_AC_TCL_LYNX_POSIX): Delete.
8440 * defs.h (enum gdb_osabi): Delete GDB_OSABI_NETWARE and
8442 * i386-tdep.c (i386_nw_init_abi, i386_nlm_osabi_sniffer): Delete.
8443 (_initialize_i386_tdep): Do not reference them.
8444 * nlmread.c: Delete file.
8445 * osabi.c (gdb_osabi_names): Remove NetWare and LynxOS.
8446 * target.c: Doc update.
8447 * thread.c: Delete commented include.
8448 * config/alpha/tm-alpha.h: Doc update.
8450 2007-03-30 Chris Dearman <chris@mips.com>
8452 * utils.c (string_to_core_addr): Comment typo.
8454 2007-03-30 Chris Dearman <chris@mips.com>
8456 * mips-tdep.c: Comment typo.
8458 2007-03-29 Ulrich Weigand <uweigand@de.ibm.com>
8460 * config/alpha/nm-osf.h (PTRACE_XFER_TYPE): Remove.
8461 * config/mips/nm-linux.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Remove.
8462 * config/sparc/nm-linux.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Remove.
8463 * config/powerpc/nm-ppc64-linux.h: Remove file.
8464 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Set to nm-linux.h.
8465 * inferior.h (PTRACE_ARG3_TYPE): Do not define.
8466 (call_ptrace): Change type of third argument to PTRACE_TYPE_ARG3.
8467 * infptrace.c (call_ptrace): Likewise.
8468 * m68klinux-nat.c (PTRACE_XFER_TYPE): Do not define.
8469 (fetch_register): Replace PTRACE_ARG3_TYPE by PTRACE_TYPE_ARG3
8470 and PTRACE_XFER_TYPE by PTRACE_TYPE_RET.
8471 (store_register): Likewise.
8473 2007-03-29 Joel Brobecker <brobecker@adacore.com>
8475 * Makefile.in (varobj.o): Add missing dependency.
8477 2007-03-29 Michael Snyder <msnyder@access-company.com>
8479 * MAINTAINERS: Update my email address.
8481 2007-03-29 Joel Brobecker <brobecker@adacore.com>
8483 Add support for exception handling with multiple versions of
8485 * ada-lang.c: Update general comments on how Ada exception catchpoints
8487 (raise_sym_name, raise_unhandled_sym_name, raise_assert_sym_name)
8488 (__gnat_raise_nodefer_with_msg): Delete.
8489 (ada_unhandled_exception_name_addr_ftype): New type.
8490 (exception_support_info): New type.
8491 (ada_unhandled_exception_name_addr): Add forward declaration.
8492 (ada_unhandled_exception_name_addr_from_raise): Likewise.
8493 (default_exception_support_info): New constant.
8494 (exception_support_info_fallback): Likewise.
8495 (exception_info): New global variable.
8496 (ada_exception_support_info_sniffer): New function.
8497 (ada_executable_changed_observer): Likewise.
8498 (ada_unhandled_exception_name_addr_from_raise): Renamed from
8499 ada_unhandled_exception_name_addr.
8500 (ada_unhandled_exception_name_addr): Reimplement to match the
8501 latest Ada runtime implementation.
8502 (error_breakpoint_runtime_sym_not_found): Delete.
8503 (ada_exception_sym_name): Get the exception sym name from
8504 exception_info rather than hardcoding it.
8505 (ada_exception_sal): Add call to ada_exception_support_info_sniffer.
8506 Update error handling.
8507 * Makefile.in (ada-lang.o): Add dependency on observer.h.
8509 2007-03-29 Daniel Jacobowitz <dan@codesourcery.com>
8511 * Makefile.in (coff_solib_h, coff-solib.o, i386v-nat.o, lynx-nat.o)
8512 (remote-st.o, uw-thread.o): Delete.
8513 (HFILES_NO_SRCDIR, ALLDEPFILES): Update.
8514 * configure.host: Move hppa*-*-hiux*, i[34567]86-ncr-*,
8515 i[34567]86-*-dgux*, i[34567]86-*-lynxos*, i[34567]86-*-sco3.2v5*,
8516 i[34567]86-*-sco3.2v4*, i[34567]86-*-sco*, i[34567]86-*-sysv4.2*,
8517 i[34567]86-*-sysv4*, i[34567]86-*-sysv5*, i[34567]86-*-unixware2*,
8518 i[34567]86-*-unixware*, i[34567]86-*-sysv*, i[34567]86-*-isc*, and
8519 rs6000-*-lynxos* to an obsoletion stanza.
8520 * configure.tgt: Move hppa*-*-hiux*, i[34567]86-ncr-*,
8521 i[34567]86-*-lynxos*, m68*-cisco*-*, m68*-tandem-*, m68*-*-os68k*,
8522 and rs6000-*-lynxos* to an obsoletion stanza. Do not mention
8523 i[34567]86-*-netware*.
8524 * NEWS: Mention deleted targets.
8526 * coff-solib.c, coff-solib.h, i386v-nat.c, lynx-nat.c, remote-st.c,
8527 uw-thread.c, config/nm-lynx.h, config/i386/i386sco.mh,
8528 config/i386/i386sco4.mh, config/i386/i386sco5.mh, config/i386/i386v.mh,
8529 config/i386/i386v4.mh, config/i386/i386v42mp.mh,
8530 config/i386/ncr3000.mh, config/i386/ncr3000.mt,
8531 config/i386/nm-i386sco.h, config/i386/nm-i386sco4.h,
8532 config/i386/nm-i386sco5.h, config/i386/nm-i386v.h,
8533 config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h,
8534 config/m68k/cisco.mt, config/m68k/os68k.mt, config/m68k/st2000.mt,
8535 config/m68k/tm-cisco.h, config/m68k/tm-os68k.h,
8536 config/rs6000/rs6000lynx.mh, config/rs6000/rs6000lynx.mt,
8537 config/rs6000/tm-rs6000ly.h: Delete files.
8539 2007-03-29 Daniel Jacobowitz <dan@codesourcery.com>
8541 * defs.h (deprecated_registers_changed_hook): Delete declaration.
8542 * interps.c (clear_interpreter_hooks): Do not clear
8543 deprecated_registers_changed_hook.
8544 * regcache.c (registers_changed): Do not call it.
8545 * top.c (deprecated_registers_changed_hook): Do not define it.
8546 * mi/mi-interp.c (mi_command_loop): Do not clear it.
8547 * tui/tui-hooks.c (tui_install_hooks): Do not install it.
8548 (tui_remove_hooks): Do not remove it.
8549 (tui_selected_frame_level_changed_hook): Check for negative level.
8550 Use get_selected_frame.
8551 (tui_registers_changed_hook): Deleted.
8553 2007-03-29 Joel Brobecker <brobecker@adacore.com>
8555 * stabsread.c (add_undefined_type): Add extra parameter.
8556 Now handles nameless types separately.
8557 (struct nat): New type.
8558 (noname_undefs, noname_undefs_allocated, noname_undefs_length):
8559 New static variables.
8560 (read_type): Update calls to add_undefined_type.
8561 (add_undefined_type_noname): New function.
8562 (add_undefined_type_1): Renames from add_undefined_type.
8563 (cleanup_undefined_types_noname): New function.
8564 (cleanup_undefined_types_1): Renames cleanup_undefined_types.
8565 (cleanup_undefined_types): New handles nameless types separately.
8566 (_initialize_stabsread): Initialize our new static constants.
8568 2007-03-29 Denis Pilat <denis.pilat@st.com>
8570 * configure.ac: Test for signal.h.
8571 * configure, config.in: Regenerate.
8573 2007-03-29 Denis Pilat <denis.pilat@st.com>
8575 * stack.c (print_stack_frame): Always use LOC_AND_ADDRESS in MI output.
8576 * infrun.c (normal_stop): Remove MI specific frame printing treatment.
8578 2007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
8580 * arm-wince-tdep.c: New.
8581 * config/arm/wince.mt (DEPRECATED_TM_FILE): Use tm-arm.h.
8582 (MT_CFLAGS): Delete.
8584 (TDEPFILES): Add arm-wince-tdep.o, corelow.o, solib.o,
8585 solib-legacy.o, solib-svr4.o, and remove wince.o.
8586 * configure.tgt (arm*-*-mingw32ce*): Add.
8587 * signals/signals.c [HAVE_SIGNAL_H]: Check.
8588 (do_target_signal_to_host): Silence 'not used' warning.
8589 * config/arm/tm-wince.h: Remove.
8591 2007-03-28 Ulrich Weigand <uweigand@de.ibm.com>
8593 * arch-utils.c (legacy_pc_in_sigtramp): Remove.
8594 * arch-utils.h (legacy_pc_in_sigtramp): Remove.
8596 * config/ia64/linux.mt (DEPRECATED_TM_FILE): Remove.
8597 * config/ia64/tm-linux.h: Remove file.
8598 * ia64-tdep.h (struct gdbarch_tdep): Add pc_in_sigtramp callback.
8599 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Use it instead of
8600 legacy_pc_in_sigtramp.
8601 (ia64_gdbarch_init): Initialize tdep->pc_in_sigtramp.
8602 * ia64-linux-tdep.c (ia64_linux_pc_in_sigtramp): Make static.
8603 Remove func_name argument.
8604 (ia64_linux_init_abi): Install it as tdep->pc_in_sigtramp.
8606 * infrun.c (HAVE_STEPPABLE_WATCHPOINT): Do not redefine.
8607 * target.c (update_current_target): Add to_have_steppable_watchpoint.
8608 * target.h (struct target_ops): Add to_have_steppable_watchpoint.
8609 (HAVE_STEPPABLE_WATCHPOINT): Define.
8611 * config/ia64/linux.mh (NATDEPFILES): Remove core-aout.o.
8612 * config/ia64/nm-linux.h (KERNEL_U_ADDR, U_REGS_OFFSET,
8613 CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER,
8614 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_STEPPABLE_WATCHPOINT,
8615 STOPPED_BY_WATCHPOINT, target_stopped_data_address,
8616 target_insert_watchpoint, target_remove_watchpoint): Remove.
8617 (FETCH_INFERIOR_REGISTERS): Define.
8618 * ia64-linux-nat.c (ia64_register_addr): Make static.
8619 (ia64_cannot_fetch_register, ia64_cannot_store_register): Likewise.
8620 (ia64_linux_insert_watchpoint): Make static. Remove ptid_p argument.
8621 (ia64_linux_remove_watchpoint): Likewise. Add type argument.
8622 (ia64_linux_stopped_data_address): Make static. Add target_ops.
8623 (ia64_linux_stopped_by_watchpoint): Make static.
8624 (ia64_linux_can_use_hw_breakpoint): New function.
8625 (ia64_linux_fetch_register, ia64_linux_fetch_registers): Likewise.
8626 (ia64_linux_store_register, ia64_linux_store_registers): Likewise.
8627 (_initialize_ia64_linux_nat): Install register and watchpoint ops.
8629 2007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
8631 * linespec.c: Include language.h.
8632 (find_methods): Add language parameter. Call
8633 lookup_symbol_in_language. Pass language down.
8634 (add_matching_methods): Likewise. Call
8635 lookup_symbol_in_language.
8636 (add_constructors): Likewise.
8637 (find_method): Pass sym_class to collect_methods.
8638 (collect_methods): Add sym_class parameter. Pass language
8640 * symtab.c (lookup_symbol): Rename to ...
8641 (lookup_symbol_in_language): ... this. Add language
8642 parameter. Use passed language instead of current_language.
8643 (lookup_symbol): New as wrapper around
8644 lookup_symbol_in_language.
8645 (lookup_symbol_aux): Add language parameter. Use passed
8646 language instead of current_language.
8647 (search_symbols): Indent.
8648 * symtab.h (enum language): Forward declare.
8649 (lookup_symbol_in_language): Declare.
8650 (lookup_symbol): Update description.
8651 * ada-lang.h (lookup_symbol_in_language): Remove declaration.
8652 * ada-lang.c (restore_language): Remove.
8653 (lookup_symbol_in_language): Remove.
8655 2007-03-27 Pedro Alves <pedro_alves@portugalmail.pt>
8657 * breakpoint.c (bpstat_num): Add int *num parameter.
8658 * breakpoint.h (bpstat_num): Likewise.
8659 * infcmd.c (continue_command): Adjust to new bpstat_num
8661 (program_info): Likewise.
8663 2007-03-27 Ulrich Weigand <uweigand@de.ibm.com>
8665 * config/sh/tm-sh.h: Remove file.
8666 * config/sh/embed.mt (DEPRECATED_TM_FILE): Remove.
8667 * config/sh/linux.mt (DEPRECATED_TM_FILE): Remove.
8668 * config/sh/nbsd.mt (DEPRECATED_TM_FILE): Remove.
8669 * config/sh/tm-wince.h: Do not include "sh/tm-sh.h".
8671 2007-03-27 Ulrich Weigand <uweigand@de.ibm.com>
8673 * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT,
8674 DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Remove.
8675 * remote.c: Remove code under #ifdef DEPRECATED_REMOTE_BREAKPOINT,
8676 DEPRECATED_BIG_REMOTE_BREAKPOINT, DEPRECATED_LITTLE_REMOTE_BREAKPOINT.
8677 * sh-tdep.c (sh_breakpoint_from_pc): Return remote breakpoint
8678 sequence if target_shortname is "remote".
8680 2007-03-27 Anton Blanchard <anton@samba.org>
8682 * rs6000-tdep.c (rs6000_frame_cache): Use tdep->lr_frame_offset
8683 instead of wordsize when looking for the LR in a stack frame.
8685 2007-03-27 Andreas Schwab <schwab@suse.de>
8686 Daniel Jacobowitz <dan@codesourcery.com>
8688 * dwarf2-frame.c (dwarf2_frame_eh_frame_regnum): Rename to...
8689 (dwarf2_frame_adjust_regnum): ...this. Make static. Add eh_frame_p
8690 argument. Update all callers.
8691 (struct dwarf2_frame_ops): Replace eh_frame_regnum with adjust_regnum.
8692 (dwarf2_frame_set_eh_frame_regnum): Rename to...
8693 (dwarf2_frame_set_adjust_regnum): ...this. Update argument type.
8694 * dwarf2frame.h (dwarf2_frame_set_eh_frame_regnum): Rename to...
8695 (dwarf2_frame_set_adjust_regnum): ...this.
8696 (dwarf2_frame_eh_frame_regnum): Delete prototype.
8697 * rs6000-tdep.c: Include "dwarf2-frame.h".
8698 (rs6000_adjust_frame_regnum): Define.
8699 (rs6000_gdbarch_init): Enable use of DWARF CFI frame unwinder.
8700 Register rs6000_adjust_frame_regnum.
8702 * Makefile.in (rs6000-tdep.o): Update dependencies.
8704 2007-03-27 Brooks Moses <brooks.moses@codesourcery.com>
8706 * Makefile.in: Add support for a "pdf" target.
8708 2007-03-27 Daniel Jacobowitz <dan@codesourcery.com>
8710 * amd64-tdep.c (amd64_init_frame_cache): New function.
8711 (amd64_alloc_frame_cache, amd64_skip_prologue): Use it.
8713 2007-03-26 Nigel Stephens <nigel@mips.com>
8714 Maciej W. Rozycki <macro@mips.com>
8716 * ui-out.c (ui_out_field_core_addr): Truncate address to
8717 TARGET_ADDR_BIT size before printing.
8719 2007-03-22 Nigel Stephens <nigel@mips.com>
8720 Maciej W. Rozycki <macro@mips.com>
8722 * remote-mips.c (mips_xfer_memory): Update prototype.
8724 2007-03-22 Joel Brobecker <brobecker@adacore.com>
8726 * symfile.h: #include "symtab.h"
8728 2007-03-22 Denis Pilat <denis.pilat@st.com>
8730 * utils.c (pagination_on_command, pagination_off_command):
8731 Remove useless prototypes.
8733 2007-03-21 Pierre Muller <muller@ics.u-strasbg.fr>
8736 * p-valprint.c (pascal_object_print_value): Use type_name_no_tag
8737 instead of TYPE_NAME for object base class name.
8740 2007-03-19 Kevin Buettner <kevinb@redhat.com>
8742 * mep-tdep.c (mep_analyze_frame_prologue, mep_frame_this_id):
8743 Specify frame type in calls to frame_func_unwind().
8745 2007-03-13 Daniel Jacobowitz <dan@codesourcery.com>
8747 * rs6000-tdep.c (rs6000_skip_prologue): Use skip_prologue_using_sal.
8748 (rs6000_in_function_epilogue_p): Use extract_unsigned_integer.
8749 (refine_prologue_limit): Delete.
8750 (skip_prologue): Don't call it. Use extract_unsigned_integer.
8751 Assume lim_pc is set. Correct check for incomplete prologues.
8752 Do not skip clobbers of the frame pointer.
8753 * symtab.c (skip_prologue_using_sal): Fail if there is only one
8756 2007-03-13 Nathan Froyd <froydnj@codesourcery.com>
8758 * frame.c (frame_pop): Check to see whether there's a frame to
8759 which we can pop first.
8761 2007-03-13 Nathan Froyd <froydnj@codesourcery.com>
8763 * MAINTAINERS (Write After Approval): Add myself.
8765 2007-03-09 Markus Deuling <deuling@de.ibm.com>
8767 * infrun.c (breakpoints_failed): Remove unnecessary variable.
8768 (handle_inferior_event): Remove unnecessary braces.
8769 * breakpoint.c (bpstat_what): Remove wrong comment.
8771 2007-03-09 Ulrich Weigand <uweigand@de.ibm.com>
8773 * spu-tdep.c (spu_in_function_epilogue_p): New function.
8774 (spu_gdbarch_init): Install it.
8776 2007-03-08 Ulrich Weigand <uweigand@de.ibm.com>
8778 * spu-linux-nat.c (spu_xfer_partial): Return -1 for unsupported
8779 object types, not 0.
8781 2007-03-08 Ulrich Weigand <uweigand@de.ibm.com>
8783 * spu-tdep.c (spu_frame_align): New function.
8784 (spu_gdbarch_init): Install it. Set call dummy location to ON_STACK.
8786 2007-03-08 Ulrich Weigand <uweigand@de.ibm.com>
8788 * spu-tdep.c (spu_unwind_pc): Mask off interrupt enable bit.
8789 (spu_software_single_step): Likewise.
8790 (spu_read_pc, spu_write_pc): New functions.
8791 (spu_gdbarch_init): Install them.
8793 2007-03-08 Ulrich Weigand <uweigand@de.ibm.com>
8795 * cli/cli-dump.c (struct callback_data): load_offset needs to
8796 have signed long type.
8798 2007-03-07 Joel Brobecker <brobecker@adacore.com>
8800 * mips-tdep.c (mips_insn16_frame_cache, mips_insn32_frame_sniffer):
8801 Revert the previous change that had some unexpected side-effects
8803 (mips_insn16_frame_cache, mips_insn32_frame_cache): Use the proper
8804 function to get the address of the calling instruction.
8806 2007-03-07 Denis Pilat <denis.pilat@st.com>
8808 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Replace
8809 get_selected_frame by deprecated_safe_get_selected_frame.
8811 2007-03-02 Mark Kettenis <kettenis@gnu.org>
8813 * shnbsd-tdep.c: Include "regset.h", "gdb_assert.h" and
8814 "gdb_string.h". Don't include "nbsd-tdep.h".
8815 (SIZEOF_STRUCT_REG): Remove.
8816 (SHNBSD_SIZEOF_GREGS): New.
8817 (shnbsd_supply_gregset, shnbsd_collect_gregset)
8818 (shnbsd_regset_from_core_section): New functions.
8819 (fetch_core_registers, fetch_elfcore_registers): Remove functions.
8820 (shnbsd_supply_reg, shnbsd_fill_reg): Simply call
8821 shnbsd_supply_gregset, shnbsd_collect_gregset.
8822 (shnbsd_gregset): New variable.
8823 (shnbsd_init_abi): Set regset_from_core_section.
8824 (GDB_OSABI_NETBSD_CORE): New define.
8825 (shnbsd_core_osabi_sniffer): New function.
8826 (_initialize_shnbsd_tdep): Register shnbsd_core_osabi_sniffer.
8827 * Makefile.in (shnbsd-tdep.o): Update dependencies.
8828 * config/sh/nbsd.mt (TDEPFILES): Add corelow.o, remove
8830 * config/sh/obsd.mt (TDEPFILES): Remove nbsd-tdep.o.
8832 2007-02-28 Joel Brobecker <brobecker@adacore.com>
8834 * gdbtypes.c (replace_type): Fix typo that caused us to not update
8835 length of the types referenced by the new type CV ring.
8837 2007-02-28 Daniel Jacobowitz <dan@codesourcery.com>
8839 * frame.c (frame_pop, frame_observer_target_changed): Call
8841 (flush_cached_frames): Rename to reinit_frame_cache and delete
8843 * frame.h (flush_cached_frames): Delete prototype and update comment.
8845 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd): Call
8846 reinit_frame_cache instead of flush_cached_frames. Do not call
8847 select_frame after reinit_frame_cache.
8848 * corelow.c (core_open): Likewise.
8849 * gdbarch.sh (deprecated_current_gdbarch_select_hack): Likewise.
8850 * infrun.c (prepare_to_proceed, context_switch)
8851 (handle_inferior_event): Likewise.
8852 * linux-fork.c (fork_load_infrun_state): Likewise.
8853 * ocd.c (ocd_start_remote): Likewise.
8854 * remote-e7000.c (e7000_start_remote): Likewise.
8855 * remote-mips.c (device): Likewise.
8856 * thread.c (switch_to_thread): Likewise.
8857 * tracepoint.c (finish_tfind_command): Likewise.
8858 * gdbarch.c: Regenerated.
8860 2007-02-28 Jerome Guitton <guitton@adacore.com>
8861 Joel Brobecker <brobecker@adacore.com>
8863 * gdbtypes.c (check_typedef): Do not replace stub type if
8864 the resolved type is not defined in the same objfile.
8866 2007-02-28 Daniel Jacobowitz <dan@codesourcery.com>
8868 * top.c (gdb_readline_wrapper_cleanup): Remove invalid assertion.
8870 2007-02-28 Joel Brobecker <brobecker@adacore.com>
8872 * stabsread.c (define_symbol): Create an associated STRUCT_DOMAIN
8873 symbol for Ada units when the symbol is defined using 't' rather
8874 than 'Tt' as symbol descriptor.
8876 2007-02-28 Ulrich Weigand <uweigand@de.ibm.com>
8878 * config/mips/tm-nbsd.h: Delete file.
8879 * config/mips/nbsd.mt (DEPRECATED_TM_FILE): Remove.
8880 * config/sh/tm-nbsd.h: Delete file.
8881 * config/sh/nbsd.mt (DEPRECATED_TM_FILE): Set to tm-sh.h.
8883 2007-02-28 Joel Brobecker <brobecker@adacore.com>
8885 * mi/mi-cmd-var.c (varobj_update_one): Remove reference to
8886 unused WRONG_PARAM value since it was recently deleted.
8888 2007-02-28 Vladimir Prus <vladimir@codesourcery.com>
8890 * varobj.c (varobj_update): Free temporary vectors.
8892 2007-02-28 Ulrich Weigand <uweigand@de.ibm.com>
8894 * config/powerpc/linux.mt (DEPRECATED_TM_FILE): Set to tm-ppc-eabi.h.
8895 * config/powerpc/tm-linux.h: Delete file.
8896 * config/powerpc/tm-ppc-eabi.h: Do not include "rs6000/tm-rs6000.h".
8897 (PROCESS_LINENUMBER_HOOK): Do not undefine.
8898 (TEXT_SEGMENT_BASE): Do not redefine.
8899 * config/rs6000/nm-rs6000.h (CHILD_SPECIAL_WAITSTATUS): Move here
8900 from config/rs6000/tm-rs6000.h.
8901 (TARGET_CREATE_INFERIOR_HOOK, rs6000_create_inferior): Likewise.
8902 * config/rs6000/tm-rs6000.h (struct frame_info): Remove declaration.
8903 (TEXT_SEGMENT_BASE): Remove.
8904 (IN_SOLIB_RETURN_TRAMPOLINE): Remove.
8905 (rs6000_in_solib_return_trampoline): Remove.
8906 (SKIP_TRAMPOLINE_CODE): Remove.
8907 (rs6000_skip_trampoline_code): Remove.
8908 (CHILD_SPECIAL_WAITSTATUS): Move to config/rs6000/nm-rs6000.h.
8909 (TARGET_CREATE_INFERIOR_HOOK, rs6000_create_inferior): Likewise.
8910 (FP0_REGNUM): Remove.
8911 (rs6000_find_toc_address_hook): Move to rs6000-tdep.h.
8912 (rs6000_set_host_arch_hook): Remove.
8913 * Makefile.in (rs6000-nat.o): Add dependency on $(rs6000_tdep_h).
8914 (rs6000-aix-tdep.o): Add dependency on $(ppc_tdep_h).
8915 * ppc-tdep.h (struct gdbarch_tdep): Add field text_segment_base.
8916 * rs6000-aix-tdep.c: Include "ppc-tdep.h".
8917 (rs6000_aix_init_osabi): Set text_segment_base tdep field.
8918 * rs6000-nat.c: Include "rs6000-tdep.h".
8919 (exec_one_dummy_insn): Replace TEXT_SEGMENT_BASE by tdep field.
8920 (set_host_arch): Rename to ...
8921 (rs6000_create_inferior): ... this. Make public.
8922 (_initialize_core_rs6000): Do not set rs6000_set_host_arch_hook.
8923 * rs6000-tdep.c (rs6000_set_host_arch_hook): Remove.
8924 (rs6000_create_inferior): Remove.
8925 (branch_dest): Replace TEXT_SEGMENT_BASE by tdep field.
8926 (rs6000_gdbarch_init): Call set_gdbarch_fp0_regnum,
8927 set_gdbarch_in_solib_return_trampoline, and
8928 set_gdbarch_skip_trampoline_code.
8929 * rs6000-tdep.h (rs6000_find_toc_address_hook): Move here
8930 from config/rs6000/tm-rs6000.h.
8932 2007-02-27 Joel Brobecker <brobecker@adacore.com>
8934 * buildsym.c (record_producer): Do nothing if no producer is provided.
8936 2007-02-27 Nick Roberts <nickrob@snap.net.nz>
8938 * varobj.c (varobj_update): Remove unused local. Use gdb_assert
8939 to check changelist is non-NULL. Call error if the frontend tries
8940 to update a non-root variable.
8942 * varobj.h (enum varobj_update_error): Delete WRONG_PARAM value.
8944 2007-02-27 Daniel Jacobowitz <dan@codesourcery.com>
8946 * dwarf2-frame.c (dwarf2_frame_cache, dwarf2_frame_this_id)
8947 (dwarf2_frame_sniffer): Update.
8948 (dwarf2_signal_frame_this_id): New function.
8949 (dwarf2_signal_frame_unwind): Use it.
8950 (dwarf2_frame_base_sniffer): Use frame_unwind_address_in_block.
8951 * frame.c (frame_func_unwind): Add this_type argument.
8952 (get_frame_func): Update.
8953 (frame_unwind_address_in_block): Add this_type argument and check it.
8955 (get_frame_address_in_block): Update.
8956 * frame.h (enum frame_type): Move higher in the file.
8957 (frame_unwind_address_in_block, frame_func_unwind): Add enum frame_type
8960 * alpha-mdebug-tdep.c, alpha-tdep.c, amd64-tdep.c, amd64obsd-tdep.c,
8961 arm-tdep.c, avr-tdep.c, cris-tdep.c, frv-tdep.c, h8300-tdep.c,
8962 hppa-tdep.c, i386-tdep.c, i386obsd-tdep.c, ia64-tdep.c,
8963 libunwind-frame.c, m32c-tdep.c, m32r-linux-tdep.c, m32r-tdep.c,
8964 m68hc11-tdep.c, m68k-tdep.c, m88k-tdep.c, mips-mdebug-tdep.c,
8965 mips-tdep.c, mn10300-tdep.c, mt-tdep.c, rs6000-tdep.c, s390-tdep.c,
8966 score-tdep.c, sh-tdep.c, sh64-tdep.c, sparc-tdep.c,
8967 sparc64obsd-tdep.c, spu-tdep.c, v850-tdep.c, vax-tdep.c,
8968 xstormy16-tdep.c, xtensa-tdep.c: Update calls to
8969 frame_func_unwind and frame_unwind_address_in_block to specify
8970 the frame type. Use frame_unwind_address_in_block instead of
8971 frame_pc_unwind in sniffers.
8973 2007-02-27 Daniel Jacobowitz <dan@codesourcery.com>
8975 * frame.c (deprecated_selected_frame): Rename to...
8976 (selected_frame): ...this. Make static.
8977 (get_selected_frame, select_frame): Update.
8978 * frame.h (deprected_select_frame): Delete.
8979 (deprecated_safe_get_selected_frame): Update comments.
8981 * breakpoint.c, cli/cli-cmds.c, f-valprint.c, infcmd.c, inflow.c,
8982 infrun.c, stack.c, tui/tui-disasm.c, tui/tui-source.c,
8983 tui/tui-winsource.c, valops.c, varobj.c, findvar.c, macroscope.c,
8984 parse.c, regcache.h, sh64-tdep.c, tui/tui-hooks.c, tui/tui-win.c,
8985 tui/tui.c: Replace references to deprecated_selected_frame.
8987 2007-02-27 Fred Fish <fnf@specifix.com>
8989 * rs6000-tdep.c (skip_prologue): Recognize addi instructions that
8990 directly decrement the stack pointer, accumulate their operand into
8991 the stack offset, and mark the function as not being frameless.
8993 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
8995 * arch-utils.c (selected_byte_order): New.
8996 * arch-utils.h (selected_byte_order): New prototype.
8997 * remote-sim.c (gdbsim_open): Use selected_byte_order.
8999 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
9001 * symfile.c (place_section): Check SEC_ALLOC. Do not check VMA.
9002 (default_symfile_offsets): Check VMA here. Update section VMAs.
9004 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
9006 * remote.c (init_remote_state): Add special handling for placeholder
9009 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
9011 * Makefile.in (XMLFILES): Include $(TDEP_XML).
9012 (filenames_h): New variable.
9013 (clean): Clean up xml-builtin.c and stamp-xml.
9014 (arm-linux-nat.o): Update.
9015 * config/arm/linux.mh (TDEP_XML): Define.
9016 * arm-linux-nat.c (PTRACE_GETWMMXREGS, PTRACE_SETWMMXREGS): Define.
9017 (arm_linux_has_wmmx_registers): New.
9018 (GET_THREAD_ID): Fix typo.
9019 (IWMMXT_REGS_SIZE): Define.
9020 (fetch_wmmx_regs, store_wmmx_regs): New.
9021 (arm_linux_fetch_inferior_registers): Use fetch_wmmx_regs.
9022 (arm_linux_store_inferior_registers): Use store_wmmx_regs.
9023 (super_xfer_partial, arm_linux_xfer_partial): New.
9024 (_initialize_arm_linux_nat): Use them.
9025 * xml-support.c (fetch_xml_builtin): Move outside HAVE_LIBEXPAT.
9026 (xml_builtin_xfer_partial): New function.
9027 * xml-support.h (xml_builtin_xfer_partial): New prototype.
9028 * NEWS: Update mention of iWMMXt support.
9030 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
9032 * arm-tdep.c (arm_scan_prologue): Do not record FPA register saves
9033 if there are no FPA registers.
9034 (arm_dwarf_reg_to_regnum): New function.
9035 (arm_register_type, arm_register_name): Return minimal values for
9036 unsupported registers.
9037 (arm_register_sim_regno): Handle iWMMXt registers.
9038 (arm_gdbarch_init): Record missing FPA registers if indicated by
9039 a target description. Recognize iWMMXt registers. Only register
9040 "info float" for FPA. Use ARM_NUM_REGS. Register
9041 arm_dwarf_reg_to_regnum.
9042 * arm-tdep.h (enum gdb_regnum): Add ARM_NUM_REGS and iWMMXt
9044 (struct gdbarch_tdep): Add have_fpa_registers.
9045 * features/xscale-iwmmxt.xml: Update capitalization.
9046 * regformats/arm-with-iwmmxt.dat: Regenerated.
9048 2007-02-24 Kevin Buettner <kevinb@redhat.com>
9050 * NEWS (New targets): Add entry for the Toshiba Media Processor.
9052 2007-02-23 Kevin Buettner <kevinb@redhat.com>
9054 * MAINTAINERS (mep): New target.
9056 2007-02-23 Kevin Buettner <kevinb@redhat.com>
9058 From Jim Blandy, Dave Brolley, Kevin Buettner, Don Howard, and
9060 * Makefile.in (elf_mep_h, mep_desc_h, mep_opc_h): New variables.
9061 (mep-tdep.o): New rule.
9062 * configure.tgt (mep-*-*): New target.
9063 * mep-tdep.c: New file.
9064 * config/mep/mep.mt: New file.
9066 2007-02-22 Markus Deuling <deuling@de.ibm.com>
9068 * infrun.c (inferior_stop_reason, print_stop_reason): Remove
9069 BREAKPOINT_HIT and STOP_UNKNOWN.
9071 2007-02-22 Markus Deuling <deuling@de.ibm.com>
9073 * valops.c (value_ind): Fix unary * handling of TYPE_CODE_INT.
9075 2007-02-20 Joel Brobecker <brobecker@adacore.com>
9077 * gdb_expat.h (XMLCALL): Define if not already defined.
9079 2007-02-20 Andreas Schwab <schwab@suse.de>
9081 * Makefile.in (symfile.o): Update dependencies.
9083 2007-02-20 Daniel Jacobowitz <dan@codesourcery.com>
9085 * MAINTAINERS: Disable -Werror for cris simulator. Build
9086 sparc64-solaris2.10 instead of the broken sparc-elf.
9087 * solib-frv.c: Include "solib.h".
9088 * Makefile.in (solib-frv.o): Update.
9089 * mt-tdep.c (mt_gdbarch_init): Correct typo in floatformats patch.
9090 * xtensa-tdep.c (xtensa_regset_from_core_section): Cast size_t to int.
9091 (xtensa_frame_this_id, xtensa_frame_prev_register)
9092 (xtensa_push_dummy_call): Use %p.
9094 2007-02-16 Daniel Jacobowitz <dan@codesourcery.com>
9096 * avr-tdep.c, hppa-tdep.c, hppabsd-tdep.c, i386-tdep.c,
9097 ia64-tdep.c, m68k-tdep.c, mips-linux-tdep.c, ppcobsd-tdep.c,
9098 sparc-linux-tdep.c: Include "gdbtypes.h" instead of "floatformat.h".
9099 * Makefile.in (avr-tdep.o, hppabsd-tdep.o, hppa-tdep.o, i386-tdep.o)
9100 (ia64-tdep.o, m68k-tdep.o, mips-linux-tdep.o, ppcobsd-tdep.o)
9101 (sparc-linux-tdep.o): Update.
9103 2007-02-15 Maxim Grigoriev <maxim2405@gmail.com>
9105 * xtensa-tdep.h (xtensa_reg_mask_t): New.
9106 (xtensa_mask_t): Change mask field to be a separate array.
9107 * xtensa-tdep.c (extract_call_winsize, xtensa_pseudo_register_read)
9108 (xtensa_pseudo_register_write, xtensa_unwind_pc)
9109 (xtensa_unwind_dummy_id, xtensa_push_dummy_call)
9110 (xtensa_breakpoint_from_pc): Remove implicit type casting.
9111 * xtensa-config.c (mask0, mask1, mask2, mask3, mask4, mask5)
9112 (mask6, mask7, mask8, mask9, mask10, mask11, mask12, mask13)
9113 (mask14, mask15): Rename to
9114 (xtensa_mask0, xtensa_mask1, xtensa_mask2, xtensa_mask3)
9115 (xtensa_mask4, xtensa_mask5, xtensa_mask6, xtensa_mask7)
9116 (xtensa_mask8, xtensa_mask9, xtensa_mask10, xtensa_mask11)
9117 (xtensa_mask12, xtensa_mask13, xtensa_mask14, xtensa_mask15): this.
9118 (xtensa_submask0, xtensa_submask1, xtensa_submask2, xtensa_submask3)
9119 (xtensa_submask4, xtensa_submask5, xtensa_submask6, xtensa_submask7)
9120 (xtensa_submask8, xtensa_submask9, xtensa_submask10)
9121 (xtensa_submask11, xtensa_submask12, xtensa_submask13)
9122 (xtensa_submask14, xtensa_submask15): New.
9123 (rmap): Follow strict aliasing rules doing static initialization.
9125 2007-02-13 Daniel Jacobowitz <dan@codesourcery.com>
9127 * target-descriptions.c (tdesc_named_type): Move code_ptr and data_ptr
9128 handling from here...
9129 (tdesc_register_type): ...to here.
9130 * xml-tdesc.c (tdesc_start_reg): Allow code_ptr and data_ptr.
9131 * features/arm-core.xml: Use code_ptr and data_ptr.
9133 2007-02-13 Denis Pilat <denis.pilat@st.com>
9135 * varobj.h (enum varobj_update_error): New enum.
9136 * varobj.c (struct varobj_root): Add is_valid member.
9137 (varobj_get_type): Check for invalid varobj.
9138 (varobj_get_attributes): Likewise.
9139 (variable_editable):Likewise.
9140 (varobj_update): Likewise. Use varobj_update_error.
9141 (new_root_variable): Set root varobj as valid by default.
9142 (varobj_invalidate): New function.
9143 * symfile.c (clear_symtab_users): Use varobj_invalidate.
9144 * mi/mi-cmd-var.c (varobj_update_one): Change return type to void.
9145 Use varobj_update_error.
9147 2007-02-12 Pierre Muller <muller@ics.u-strasbg.fr>
9150 * dwarfread.c (set_cu_language): Recognize DW_LANG_Pascal83 as
9151 Pascal language marker.
9152 * dwarf2read.c (set_cu_language): Likewise.
9154 2007-02-12 Corinna Vinschen <vinschen@redhat.com>
9156 * win32-nat.c (win32_wait): Reset terminal pgrp to GDB.
9157 (do_initial_win32_stuff): Call terminal_init_inferior_with_pgrp
9158 instead of target_terminal_init since inferior_ptid isn't set yet.
9160 2007-02-10 Pedro Alves <pedro_alves@portugalmail.pt>
9162 * MAINTAINERS (Write After Approval): Add myself.
9164 2007-02-09 Fred Fish <fnf@specifix.com>
9166 Based on work by Apple Computer, Inc.
9167 * event-top.c (async_request_quit): Call quit() whenever either
9168 quit_flag is set or immediate_quit is set.
9170 2007-02-09 Gabriel Dos Reis <gdr@integrable-solutions.net>
9172 * ada-lang.c (remove_out_of_scope_renamings): Change third parameter's
9173 type to a pointer to const struct block.
9174 (ada_lookup_symbol_list): Don't cast away constness when calling
9175 remove_out_of_scope_renamings.
9177 2007-02-09 Gabriel Dos Reis <gdr@integrable-solutions.net>
9179 * linux-nat.c (linux_nat_find_memory_regions): Don't check the
9180 address of 'filename'; it is always non null.
9182 2007-02-09 Joel Brobecker <brobecker@adacore.com>
9184 * exec.c (add_to_section_table): Do not discard empty sections.
9186 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
9188 * features/Makefile, features/arm-with-iwmmxt.xml,
9189 features/gdbserver-regs.xsl, features/number-regs.xsl,
9190 features/sort-regs.xsl, features/xscale-iwmmxt.xml: New files.
9191 * regformats/arm-with-iwmmxt.dat: Generate.
9192 * NEWS: Mention iWMMXt.
9194 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
9196 * Makefile.in (arm-tdep.o, eval.o, target-descriptions.o)
9197 (xml-tdesc.o): Update.
9198 * xml-support.c: Add a comment.
9199 (gdb_xml_enums_boolean): New variable.
9200 (gdb_xml_parse_attr_enum): Use strcasecmp.
9201 * xml-support.h (gdb_xml_enums_boolean): Declare.
9202 * xml-tdesc.c (struct tdesc_parsing_data): Record current_feature,
9203 next_regnum, and current_union.
9204 (tdesc_start_feature, tdesc_start_reg, tdesc_start_union)
9205 (tdesc_end_union, tdesc_start_field, tdesc_start_vector)
9206 (field_attributes, union_children, reg_attributes, union_attributes)
9207 (vector_attributes, feature_attributes, feature_children): New.
9208 (target_children): Make static. Add <feature>.
9209 (tdesc_elements): Make static.
9210 * target-descriptions.c (struct tdesc_reg, tdesc_reg_p, type_p)
9211 (struct tdesc_feature, tdesc_feature_p): New types.
9212 (struct target_desc): Add features member.
9213 (struct tdesc_arch_data, tdesc_data): New.
9214 (target_find_description): Clarify error message. Warn about
9215 ignored register descriptions.
9216 (tdesc_has_registers, tdesc_find_feature, tdesc_feature_name)
9217 (tdesc_named_type, tdesc_data_init, tdesc_data_alloc)
9218 (tdesc_data_cleanup, tdesc_numbered_register)
9219 (tdesc_numbered_register_choices, tdesc_find_register)
9220 (tdesc_register_name, tdesc_register_type)
9221 (tdesc_remote_register_number, tdesc_register_reggroup_p)
9222 (set_tdesc_pseudo_register_name, set_tdesc_pseudo_register_type)
9223 (set_tdesc_pseudo_register_reggroup_p, tdesc_use_registers)
9224 (tdesc_free_reg, tdesc_create_reg, tdesc_free_feature)
9225 (tdesc_create_feature, tdesc_record_type): New.
9226 (free_target_description): Free features.
9227 (_initialize_target_descriptions): Initialize tdesc_data.
9228 * arch-utils.c (default_remote_register_number): New.
9229 * arch-utils.h (default_remote_register_number): New prototype.
9230 * target-descriptions.h (set_tdesc_pseudo_register_name)
9231 (set_tdesc_pseudo_register_type, set_tdesc_pseudo_register_reggroup_p)
9232 (tdesc_use_registers, tdesc_data_alloc, tdesc_data_cleanup)
9233 (tdesc_numbered_register, tdesc_numbered_register_choices)
9234 (tdesc_has_registers, tdesc_find_feature, tdesc_feature_name)
9235 (tdesc_named_type, tdesc_create_feature, tdesc_record_type)
9236 (tdesc_create_reg): Declare.
9237 * gdbarch.sh (remote_register_number): New entry.
9238 * gdbarch.c, gdbarch.h: Regenerate.
9239 * remote.c (init_remote_state): Use gdbarch_remote_register_number.
9240 * features/gdb-target.dtd: Add feature, reg, vector, union, and field.
9242 * arm-tdep.c (arm_register_aliases): New.
9243 (arm_register_name_strings): Rename to...
9244 (arm_register_names): ...this. Make const. Delete the old version.
9245 (current_option, arm_register_byte): Delete.
9246 (set_disassembly_style): Simplify. Do not adjust arm_register_names.
9247 (value_of_arm_user_reg): New.
9248 (arm_gdbarch_init): Verify any described registers. Call
9249 tdesc_use_registers. Don't use arm_register_byte. Create aliases
9250 for standard register names.
9251 (_initialize_arm_tdep): Do not adjust arm_register_names.
9252 * user-regs.c (struct user_reg): Add baton member.
9253 (append_user_reg, user_reg_add_builtin, user_regs_init)
9254 (user_reg_add, value_of_user_reg): Use a baton for user
9256 * std-regs.c: Update.
9257 * user-regs.h (user_reg_read_ftype, user_reg_add_builtin)
9258 (user_reg_add): Add baton argument.
9259 * NEWS: Mention target description register support.
9260 * features/arm-core.xml, features/arm-fpa.xml: New.
9261 * eval.c (evaluate_subexp_standard): Allow ptype $register
9262 when the program is not running.
9264 2007-02-09 Nick Roberts <nickrob@snap.net.nz>
9266 * mi/mi-cmd-var.c (mi_cmd_var_create): Add value field.
9268 2007-02-08 Thiago Jung Bauermann <bauerman@br.ibm.com>
9270 * rs6000-tdep.c (gdb_print_insn_powerpc): Set
9271 info->disassembler_options to "any".
9273 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
9275 * varobj.c (install_new_value): Only call value_get_print_value
9278 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
9280 Reported by timeless@gmail.com:
9281 * gdb/target.c (target_flash_erase): Do not return void value.
9282 (target_flash_done): Likewise.
9283 * gdb/cli/cli-cmds.c (source_command): Likewise.
9285 2007-02-08 Fred Fish <fnf@specifix.com>
9287 Based on work by Apple Computer, Inc.
9288 * event-top.c (handle_sigint): Set quit_flag.
9289 (async_request_quit): Don't set quit_flag. Avoid calling quit()
9290 if quit_flag has already been reset.
9292 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
9294 * ser-mingw.c (pipe_windows_close): Move variable initialization back
9297 2007-02-08 Fred Fish <fnf@specifix.com>
9299 * defs.h (request_quit): Remove declaration.
9300 * utils.c (request_quit): Remove definition.
9302 2007-02-08 Joel Brobecker <brobecker@gnat.com>
9303 Jan Kratochvil <jan.kratochvil@redhat.com>
9304 Daniel Jacobowitz <dan@codesourcery.com>
9306 * rs6000-tdep.c (bl_to_blrl_insn_p): New function.
9307 (skip_prologue): Allow bl->blrl used by PIC code.
9309 2007-02-08 Mark Kettenis <kettenis@gnu.org>
9310 Daniel Jacobowitz <dan@codesourcery.com>
9312 * cp-valprint.c (cp_print_value_fields, cp_print_value): Always
9313 initialize tmp_obstack.
9314 * p-valprint.c (pascal_object_print_value_fields)
9315 (pascal_object_print_value): Likewise.
9317 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
9319 * features/feature_to_c.sh: Use %s to avoid problems with nawk.
9321 2007-02-08 Mark Kettenis <kettenis@gnu.org>
9323 * sparcnbsd-tdep.c: Include "gdbtypes.h" instead of "floatformat.h".
9324 * Makefile.in (sparcnbsd-tdep.o): Update dependencies.
9326 2007-02-07 Daniel Jacobowitz <dan@codesourcery.com>
9328 * xml-tdesc.c (struct tdesc_xml_cache, tdesc_xml_cache_s)
9330 (tdesc_parse_xml): Cache expanded descriptions.
9332 2007-02-07 Daniel Jacobowitz <dan@codesourcery.com>
9334 * Makefile.in (XMLFILES): New.
9335 (COMMON_OBS): Add xml-builtin.o.
9336 (xml-builtin.c, stamp-xml): New rules.
9337 (xml-tdesc.o): Update.
9338 * features/feature_to_c.sh: New file.
9339 * xml-support.c (MAX_XINCLUDE_DEPTH): Define.
9340 (struct gdb_xml_parser): Add dtd_name and is_xinclude.
9341 (gdb_xml_start_element): Initialize scope after possibly reallocating
9342 scopes. Move cleanup later. Handle the XInclude description
9344 (gdb_xml_end_element): Only parse the body if there is a current element.
9345 Call XML_DefaultCurrent if there is no element.
9346 (gdb_xml_fetch_external_entity, gdb_xml_use_dtd): New.
9347 (struct xinclude_parsing_data, xinclude_start_include)
9348 (xinclude_end_include, xml_xinclude_default)
9349 (xml_xinclude_start_doctype, xml_xinclude_end_doctype)
9350 (xml_xinclude_xml_decl, xml_xinclude_cleanup, xinclude_attributes)
9351 (xinclude_elements, xml_process_xincludes, fetch_xml_builtin): New.
9352 * xml-support.h (xml_fetch_another, xml_process_xincludes)
9353 (fetch_xml_builtin, xml_builtin, gdb_xml_use_dtd): New declarations.
9354 * xml-tdesc.c (tdesc_parse_xml): Add fetcher_baton argument. Expand
9355 XInclude directives. Use the compiled in DTD.
9356 (fetch_xml_from_file): Add baton argument. Treat it as a containing
9357 directory name. Do not warn here.
9358 (file_read_description_xml): Update call. Warn here instead. Pass
9360 (fetch_available_features_from_target): New.
9361 (target_read_description_xml): Use it.
9362 * features/gdb-target.dtd: Add copyright notice. Use xinclude.dtd
9364 * features/xinclude.dtd: New file.
9366 2007-02-05 Daniel Jacobowitz <dan@codesourcery.com>
9368 * linux-thread-db.c (check_for_thread_db): Return early if we have
9369 no libthread_db support.
9371 2007-02-05 Daniel Jacobowitz <dan@codesourcery.com>
9373 * mi/mi-parse.h: Include <sys/time.h>.
9375 2007-02-05 Nick Roberts <nickrob@snap.net.nz>
9377 * mi/mi-cmd-stack.c (list_args_or_locals): Use common_val_print
9378 instead of print_variable_value to print values.
9380 2007-02-03 Nick Roberts <nickrob@snap.net.nz>
9382 * mi/mi-main.c: Numerous formatting changes.
9383 (mi_cmd_data_write_register_values): Replace clause inadvertantly
9384 removed in my previous change.
9386 2007-02-03 Eli Zaretskii <eliz@gnu.org>
9388 * mi/mi-main.c (mi_load_progress, timestamp, print_diff_now):
9389 Use 1000000L instead of 1000000.
9391 2007-02-03 Nick Roberts <nickrob@snap.net.nz>
9393 Based on work by Apple Computer, Inc.
9395 * configure.ac: Test for sys/resource.h and getrusage.
9396 * configure, config.in: Regenerate.
9398 * mi/mi-main.c: Include <sys/resource.h> if present.
9399 (rusage): Declare if HAVE_GETRUSAGE.
9400 (current_command_ts, do_timings): New static variables.
9401 (timestamp, print_diff_now, print_diff, timeval_diff):
9402 New static timing functions.
9403 (mi_cmd_enable_timings): New function for new MI command.
9404 (captured_mi_execute_command, mi_execute_async_cli_command):
9405 Call timing functions.
9407 * mi/mi-cmds.c (mi_cmds): Add entry for new MI command
9410 * mi/mi-cmds.h (mi_cmd_enable_timings): New extern.
9412 * mi/mi-parse.h: (mi_timestamp): New structure.
9413 (mi_parse): Add mi_timestamp* member.
9415 2007-02-02 Denis Pilat <denis.pilat@st.com>
9417 * thread.c (make_cleanup_restore_current_thread): New function.
9418 (info_threads_command): Use of make_cleanup_restore_current_thread
9419 to restore the current thread and the selected frame.
9420 (restore_selected_frame): New function.
9421 (struct current_thread_cleanup): Add frame_id field.
9422 (do_restore_current_thread_cleanup): Add restoring of the selected
9424 (make_cleanup_restore_current_thread): Likewise.
9425 (thread_apply_all_command): backup the selected frame while
9426 entering the function and restore it at exit.
9427 (thread_apply_command): Likewise.
9429 2007-02-02 Denis Pilat <denis.pilat@st.com>
9431 * MAINTAINERS (Write After Approval): Add myself to the list.
9433 2007-02-01 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
9435 * gdb/remote-m32r.sdi.c (m32r_fetch_register): Change PWD mask.
9436 (m32r_store_register): Ditto.
9438 2007-01-30 Vladimir Prus <vladimir@codesourcery.com>
9440 * ser-mingw.c (pipe_windows_open)
9441 (pipe_windows_read, pipe_windows_write): Declare
9442 variables at the top of the function.
9444 2007-01-29 Daniel Jacobowitz <dan@codesourcery.com>
9446 * doublest.c (floatformat_from_length): Use the right element from
9447 gdbarch floatformats.
9448 (floatformat_from_type, extract_typed_floating)
9449 (store_typed_floating): Likewise.
9450 * doublest.h: Remove declarations for undefined floatformat arrays.
9451 * gdbarch.sh (float_format, double_format, long_double_format): Change
9453 (pformat): Update for pairs.
9454 * gdbarch.c, gdbarch.h: Regenerated.
9455 * gdbtypes.c (floatformats_ieee_single, floatformats_ieee_double)
9456 (floatformats_ieee_double_littlebyte_bigword)
9457 (floatformats_i387_ext, floatformats_m68881_ext, floatformats_arm_ext)
9458 (floatformats_ia64_spill, floatformats_ia64_quad, floatformats_vax_f)
9459 (floatformats_vax_d): New variables.
9460 (builtin_type_ieee_single, builtin_type_ieee_double)
9461 (builtin_type_arm_ext, builtin_type_ia64_spill)
9462 (builtin_type_ia64_quad): Replace arrays with individual types.
9463 (builtin_type_ieee_single_big, builtin_type_ieee_single_little)
9464 (builtin_type_ieee_double_big, builtin_type_ieee_double_little)
9465 (builtin_type_ieee_double_littlebyte_bigword, builtin_type_i960_ext)
9466 (builtin_type_m88110_ext, builtin_type_m88110_harris_ext)
9467 (builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword)
9468 (builtin_type_ia64_spill_big, builtin_type_ia64_spill_little)
9469 (builtin_type_ia64_quad_big, builtin_type_ia64_quad_little): Delete
9470 unused and endian-specific types.
9471 (recursive_dump_type): Update for floatformat pairs.
9472 (build_flt): Move higher. Handle bit == -1. Take a floatformat pair.
9473 (build_gdbtypes): Use build_flt.
9474 (_initialize_gdbtypes): Update set of initialized types.
9475 * gdbtypes.h: Update declarations to match gdbtypes.c.
9476 (struct main_type): Store a pointer to two floatformats.
9477 * arch-utils.c (default_float_format, default_double_format): Delete.
9478 * arch-utils.h (default_float_format, default_double_format): Delete.
9480 * arm-tdep.c, avr-tdep.c, hppa-tdep.c, hppabsd-tdep.c, i386-tdep.c,
9481 ia64-tdep.c, iq2000-tdep.c, m68k-tdep.c, m88k-tdep.c,
9482 mips-linux-tdep.c, mips-tdep.c, mt-tdep.c, ppcobsd-tdep.c,
9483 sparc-linux-tdep.c, sparc-tdep.c, sparcnbsd-tdep.c, spu-tdep.c,
9484 vax-tdep.c, alpha-tdep.c, ppc-sysv-tdep.c: Update.
9486 2007-01-29 Joel Brobecker <brobecker@adacore.com>
9488 * target.c (maintenance_print_target_stack): New function.
9489 (initialize_targets): Add new "maintenance print target-stack"
9492 2007-01-28 Mark Kettenis <kettenis@gnu.org>
9494 * dwarf2read.c (new_symbol): Handle DW_AT_decl_file being zero.
9496 2007-01-27 Daniel Jacobowitz <dan@codesourcery.com>
9498 * dwarf2loc.h (struct dwarf2_locexpr_baton): Change size to a long.
9499 (struct dwarf2_loclist_baton): Likewise.
9501 2007-01-27 Eli Zaretskii <eliz@gnu.org>
9503 * cli/cli-script.c: Include breakpoint.h.
9504 (build_command_line): Require arguments only for if and while
9506 (get_command_line, execute_user_command, execute_control_command):
9507 Fix wording of warning messages.
9508 (print_command_lines): Print breakpoint commands.
9509 (execute_control_command): Call commands_from_control_command to
9510 handle the `commands' command inside a body of a flow-control
9512 (read_next_line): Recognize the `commands' command and build a
9513 command line structure for it.
9514 (recurse_read_control_structure, read_command_lines): Handle
9515 `commands' similarly to `if' and `while'.
9517 * breakpoint.c (get_number_trailer): Document the special meaning
9518 of NULL as the first argument PP.
9519 (commands_from_control_command): New function.
9521 * breakpoint.h (commands_from_control_command): Add prototype.
9523 * defs.h (commands_control): New enumerated value for enum
9524 command_control_type.
9526 2007-01-26 Joel Brobecker <brobecker@adacore.com>
9528 * ada-lang.c (ada_exception_breakpoint_ops): Fix typo in function name.
9529 (ada_exception_sal): Update accordingly.
9531 2007-01-26 Jan Kratochvil <jan.kratochvil@redhat.com>
9533 * c-valprint.c (c_val_print): Require strings to be of no-signed CHARs.
9534 * NEWS: Describe CHAR array vs. string identifcation rules.
9536 2007-01-25 Paul Brook <paul@codesourcery.com>
9538 * arm-tdep.c (arm_get_next_pc): Fix bitfield off-by-one error.
9540 2007-01-24 Jim Blandy <jimb@codesourcery.com>
9542 * dwarf2loc.c (dwarf2_evaluate_loc_desc): When the location
9543 expression is empty, bother to return the 'optimized out' value we
9544 construct. (Thanks to Carl Burch.)
9546 2007-01-24 Vladimir Prus <vladimir@codesourcery.com>
9548 * varobj.c (c_value_of_root, c_value_of_child)
9549 (cplus_describe_child): Don't call release_value.
9551 2007-01-24 Thiemo Seufer <ths@mips.com>
9553 * mips-linux-tdep.c (mips_linux_n64_rt_sigframe): Fix struct
9556 2007-01-24 Vladimir Prus <vladimir@codesourcery.com>
9558 Refactor getting children name, value and type access
9560 * varobj.c (get_type_deref): Remove.
9561 (adjust_value_for_child_access): New.
9562 (c_number_of_children): Use the above.
9563 (c_describe_child): Likewise.
9564 (enum accessibility): New.
9565 (match_accessibility): New function.
9566 (cplus_describe_child): New function.
9567 (cplus_name_of_child, cplus_value_of_child)
9568 (cplus_type_of_child): Reimplement in terms
9569 of cplus_describe_child.
9570 (cplus_number_of_children): Use
9571 adjust_value_for_child_access.
9573 2007-01-24 Vladimir Prus <vladimir@codesourcery.com>
9575 Fix computation of the 'editable' attribute and
9576 value changeability for for references.
9577 * varobj.c (get_value_type): New function.
9578 (c_variable_editable): Use get_value_type.
9579 (varobj_value_is_changeable): Likewise.
9581 2007-01-24 Joel Brobecker <brobecker@adacore.com>
9583 * source.c (find_and_open_source): Try rewriting the source
9584 path inside filename if dirname is NULL.
9586 2007-01-24 Joel Brobecker <brobecker@adacore.com>
9588 * dwarf2read.c (add_partial_symbol): Create an extra partial
9589 symbol in the VAR_DOMAIN for Ada structures, unions or enums.
9590 (new_symbol): Likewise for symbols.
9592 2007-01-24 Nick Roberts <nickrob@snap.net.nz>
9594 * mi/mi-main.c (mi_cmd_execute): Call free_all_values.
9596 2007-01-23 Vladimir Prus <vladimir@codesourcery.com>
9598 * value.c (value_primitive_field): Copy the full 'location'
9599 contents, instead of assuming that copying ADDRESS will
9600 bring over everything in the union. Remove obsolete comment.
9602 2007-01-23 Masaki Muranaka <monaka@monami-software.com>
9604 * m32c-tdep.c (make_regs, m32c_analyze_prologue)
9605 (m32c_skip_trampoline_code, m32c_m16c_address_to_pointer)
9606 (m32c_m16c_pointer_to_address): Separate code from declarations.
9608 2007-01-23 Nick Hudson <nick.hudson@dsl.pipex.com>
9610 * target.c (update_current_target): Correct typo.
9612 2007-01-22 Masaki Muranaka <monaka@monami-software.com>
9614 * xstormy16-tdep.c (xstormy16_skip_prologue): Separate code from a
9617 2007-01-11 Andrew Cagney <cagney@redhat.com>
9618 Daniel Jacobowitz <dan@codesourcery.com>
9619 Jan Kratochvil <jan.kratochvil@redhat.com>
9621 * dwarf2-frame.c (execute_cfa_program): New support of
9622 `DW_CFA_GNU_negative_offset_extended'.
9624 2007-01-21 Daniel Jacobowitz <dan@codesourcery.com>
9626 * NEWS: Mention flash support for "load" and new remote packets.
9628 2007-01-21 Markus Deuling <deuling@de.ibm.com>
9630 * breakpoint.c (delete_command): Skip redundant loop iterations.
9632 2007-01-21 Daniel Jacobowitz <dan@codesourcery.com>
9634 * gdbarch.sh (register_type): Update comment.
9635 * gdbarch.h: Regenerated.
9636 * arch-utils.c (generic_register_size): Call register_type.
9637 * ia64-tdep.c (ia64_extract_return_value): Likewise.
9638 * m32c-tdep.c (check_for_saved): Likewise.
9639 * mips-tdep.c (mips_print_register, print_gp_register_row)
9640 (mips_print_registers_info): Likewise.
9641 * sh-tdep.c (sh_pseudo_register_read, sh_pseudo_register_write):
9643 * sh64-tdep.c (sh64_pseudo_register_read, sh64_pseudo_register_write)
9644 (sh64_do_register, sh64_print_register)
9645 (sh64_media_print_registers_info): Likewise.
9646 * tui/tui-regs.c (tui_register_format): Likewise.
9648 2007-01-21 Daniel Jacobowitz <dan@codesourcery.com>
9650 * objfiles.h (ALL_PRIMARY_SYMTABS): Define.
9652 * ada-lang.c (symtab_for_sym, ada_lookup_symbol_list)
9653 (ada_lookup_symbol): Use ALL_PRIMARY_SYMTABS.
9654 * cp-support.c (make_symbol_overload_list_qualified): Likewise.
9655 * symtab.c (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
9656 (basic_lookup_transparent_type, find_pc_sect_symtab, search_symbols)
9657 (make_symbol_completion_list): Likewise.
9659 2007-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
9660 Daniel Jacobowitz <dan@codesourcery.com>
9662 * buildsym.c (end_symtab): Use preallocated symtab if available.
9663 Fill in SYMBOL_SYMTAB.
9664 * buildsym.h (struct subfile): Add symtab member.
9665 * dwarf2read.c (struct dwarf2_cu): Add line_header.
9666 (struct file_entry): Add symtab.
9667 (free_cu_line_header): New function.
9668 (read_file_scope): Use it. Save line_header in the cu. Process
9670 (add_file_name): Initialize new symtab member.
9671 (dwarf_decode_lines): Create symtabs for included files.
9672 (new_symbol): Set SYMBOL_SYMTAB.
9673 * symtab.c (lookup_symbol): Use SYMBOL_SYMTAB.
9674 (search_symbols): Likewise.
9675 * symtab.h (struct symbol): Add symtab member.
9676 (SYMBOL_SYMTAB): Define.
9678 2007-01-20 Daniel Jacobowitz <dan@codesourcery.com>
9680 * symfile.c (allocate_symtab): Remove INIT_EXTRA_SYMTAB_INFO.
9682 2007-01-20 Daniel Jacobowitz <dan@codesourcery.com>
9684 * arch-utils.c (show_endian): Correct reversed condition.
9686 2007-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
9688 * MAINTAINERS (Write After Approval): Add myself.
9690 2007-01-16 Daniel Jacobowitz <dan@codesourcery.com>
9691 Vladimir Prus <vladimir@codesourcery.com>
9693 Fix 'selected frame' varobjs.
9694 * varobj.c (struct varobj): Remove the error field.
9695 (varobj_set_value): Don't check var->error.
9696 (install_new_value): Don't set var->error.
9697 (varobj_update): Always pass the new value
9698 of the root via install_new_value.
9699 (create_child): Don't set error field.
9700 (new_variable): Likewise.
9701 (c_value_of_root): Always reevaluate the value
9702 of selected frame varobjs in the selected frame.
9703 Don't call reinit_frame_cache.
9705 2007-01-15 Joel Brobecker <brobecker@adacore.com>
9707 * source.c (_initialize_source): Improve the help text of
9708 the substitute-path commands.
9710 2007-01-14 Mark Kettenis <kettenis@gnu.org>
9712 * frv-tdep.c (frv_gdbarch_init, frv_register_name)
9713 (frv_breakpoint_from_pc, frv_gdbarch_adjust_breakpoint_address)
9714 (frv_skip_prologue): Remove prototypes.
9715 (frv_adjust_breakpoint_address): Renamed from
9716 frv_gdbarch_adjust_breakpoint_address.
9717 (frv_gdbarch_init): Adjust.
9719 2007-01-13 Mark Kettenis <kettenis@gnu.org>
9721 * gdbarch.sh (deprecated_extract_return_value)
9722 (deprecated_store_return_value): Remove.
9723 (extract_return_value, store_return_value): Remove default values.
9724 * gdbarch.c, gdbarch.h: Regenerate.
9725 * arch-utils.c, arch-utils.h (legacy_extract_return_value)
9726 (legacy_store_return_value): Remove.
9727 * regcache.c, regcache.h (deprecated_grub_regcache_for_registers):
9730 * mi/mi-main.c: Remove obsolete comment.
9732 * regcache.c, regcache.h (deprecated_register_bytes)
9733 (deprecated_read_register_bytes)
9734 (deprecated_write_register_bytes): Remove.
9736 * frame.c (get_frame_register_bytes, put_frame_register_bytes):
9737 Don't forget to move destination pointer.
9739 2007-01-01 Mark Kettenis <kettenis@gnu.org>
9741 * config/i386/nm-i386gnu.h (CHILD_PREPARE_TO_STORE): Remove.
9743 2007-01-11 Ulrich Weigand <uweigand@de.ibm.com>
9745 * spu-tdep.c (spu_analyze_prologue): Fix erroneous backtrace
9746 past entry function with recent newlib.
9748 2007-01-11 Vladimir Prus <vladimir@codesourcery.com>
9750 * gdb.texinfo (GDB/MI Variable Objects): Improve the
9751 introduction. Specify -var-update more exactly.
9753 2007-01-11 Daniel Jacobowitz <dan@codesourcery.com>
9755 * frame.c (get_prev_frame_1): Check PC_REGNUM before using it.
9757 2007-01-10 Jim Blandy <jimb@codesourcery.com>
9759 * MAINTAINERS (Global Maintainers): Ulrich Weigand has accepted
9760 the Global Maintainers' invitation to be a global maintainer.
9762 2007-01-10 Daniel Jacobowitz <dan@codesourcery.com>
9764 * infrun.c (singlestep_pc): New variable.
9765 (resume): Set singlestep_pc.
9766 (context_switch): Add a debugging message. Flush the frame cache.
9767 (handle_inferior_event): Add debugging messages. Handle thread
9768 hops when a software single step has completed. Let context_switch
9769 handle flushing the frame cache.
9771 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
9773 * NEWS: Mention target descriptions, "set tdesc filename",
9774 "unset tdesc filename", "show tdesc filename", and
9775 qXfer:features:read.
9776 * arch-utils.c (choose_architecture_for_target): New function.
9777 (gdbarch_info_fill): Call it.
9778 * target-descriptions.c (struct property): Make members non-const.
9779 (struct target_desc): Add arch member.
9780 (target_description_filename): New variable.
9781 (target_find_description): Try via XML first.
9782 (tdesc_architecture): New.
9783 (free_target_description, make_cleanup_free_target_description): New.
9784 (set_tdesc_property): Call xstrdup.
9785 (set_tdesc_architecture, tdesc_set_cmdlist, tdesc_show_cmdlist)
9786 (tdesc_unset_cmdlist, unset_tdesc_cmd, unset_tdesc_filename_cmd)
9787 (set_tdesc_cmd, show_tdesc_cmd, set_tdesc_filename_cmd)
9788 (show_tdesc_filename_cmd, _initialize_target_descriptions): New.
9789 * target-descriptions.h (tdesc_architecture)
9790 (make_cleanup_free_target_description, set_tdesc_architecture): New
9792 * Makefile.in (SFILES): Add xml-tdesc.c.
9793 (COMMON_OBS): Add xml-tdesc.o.
9794 (target-descriptions.o): Update.
9795 (xml-tdesc.o): New rule.
9796 * xml-tdesc.c, xml-tdesc.h: New files.
9797 * remote.c (PACKET_qXfer_features): New enum.
9798 (remote_protocol_features): Add qXfer:features:read.
9799 (remote_xfer_partial): Handle TARGET_OBJECT_AVAILABLE_FEATURES.
9800 (_initialize_remote): Register qXfer:features:read.
9801 * target.h (enum target_object): Add TARGET_OBJECT_AVAILABLE_FEATURES.
9802 * features/gdb-target.dtd: New file.
9804 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
9806 * copyright.sh: Clarify error.
9808 2007-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
9810 * symtab.c (matching_bfd_sections): Fix VMA matching for
9813 2007-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
9815 * minsyms.c (lookup_minimal_symbol_by_pc_section): Handle
9818 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
9820 Updated copyright notices for most files.
9822 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
9824 * copyright.sh (prunes): Add step-line.inp and step-line.c.
9826 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
9828 * configure.ac (DEBUGDIR_RELOCATABLE): Define for debugdir inside
9830 (TARGET_SYSTEM_ROOT_RELOCATABLE): Allow for exec_prefix being
9832 * configure, config.in: Regenerate.
9833 * defs.h (debug_file_directory): Declare.
9834 * main.c (captured_main): Canonicalize gdb_sysroot. Assume
9835 TARGET_SYSTEM_ROOT is defined. Initialize debug_file_directory and
9836 relocate it if DEBUGDIR_RELOCATABLE.
9837 * symfile.c (debug_file_directory): Make non-static.
9838 (find_separate_debug_file): Look for debug info for SYSROOT/PATH
9839 in DEBUGDIR/PATH if DEBUGDIR is inside SYSROOT.
9840 (_initialize_symfile): Don't initialize debug_file_directory here.
9842 2007-01-09 Jim Blandy <jimb@codesourcery.com>
9844 * score-tdep.c (score_push_dummy_call): Don't mix declarations and
9847 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
9849 * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Use
9850 frame_unwind_register to recurse.
9851 * alpha-tdep.c (alpha_sigtramp_frame_prev_register): Likewise.
9852 (alpha_heuristic_frame_prev_register): Likewise.
9853 * h8300-tdep.c (h8300_frame_prev_register): Likewise.
9854 * m32c-tdep.c (m32c_prev_register): Likewise.
9855 * frame.c (frame_register_unwind_location): Remove FIXME.
9857 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
9858 Eli Zaretskii <eliz@gnu.org>
9860 * copyright.sh: New file.
9862 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
9864 * configure.ac: Check for XML_StopParser.
9865 * xml-support.c (gdb_xml_body_text): Check for an error.
9866 (gdb_xml_start_element_wrapper): Conditionalize call to XML_StopParser.
9867 (gdb_xml_end_element_wrapper): Likewise.
9868 * config.in, configure: Regenerated.
9870 2007-01-08 Daniel Jacobowitz <dan@codesourcery.com>
9872 * varobj.c (install_new_value): Always update print_value.
9873 (value_get_print_value): Immediately return NULL for missing
9876 2007-01-08 Jim Blandy <jimb@codesourcery.com>
9878 * configure.ac: Tighten pattern for extracting value of
9879 DEPRECATED_TM_FILE from the target makefile fragment.
9880 * configure: Regenerated.
9882 2007-01-08 Daniel Jacobowitz <dan@codesourcery.com>
9884 * linux-nat.c (struct simple_pid_list): Add status.
9885 (add_to_pid_list): Record the PID's status.
9886 (linux_record_stopped_pid): Likewise. Make static.
9887 (pull_pid_from_list): Return the saved status.
9888 (linux_nat_handle_extended): Deleted.
9889 (linux_handle_extended_wait): Combine with linux_nat_handle_extended.
9890 Make static. Handle non-SIGSTOP for a new thread's first signal.
9891 (flush_callback): Handle unexpected pending signals.
9892 (linux_nat_wait): Update calls to changed functions.
9893 * linux-nat.h (linux_record_stopped_pid, linux_handle_extended_wait):
9894 Remove prototypes for newly static functions.
9896 2007-01-08 Ulrich Weigand <uweigand@de.ibm.com>
9898 * gdbarch.sh (value_from_register): New gdbarch function.
9899 * gdbarch.c, gdbarch.h: Regenerate.
9900 * findvar.c (default_value_from_register): New function.
9901 (value_from_register): Use gdbarch_value_from_register.
9902 * value.h (default_value_from_register): Declare.
9903 * spu-tdep.c (spu_convert_register_p, spu_register_to_value,
9904 spu_value_to_register): Remove.
9905 (spu_value_from_register): New function.
9906 (spu_gdbarch_init): Do not call set_gdbarch_convert_register_p,
9907 set_gdbarch_register_to_value, set_gdbarch_value_to_register.
9908 Call set_gdbarch_value_from_register.
9909 * s390-tdep.c (s390_convert_register_p, s390_register_to_value,
9910 s390_value_to_register): Remove.
9911 (s390_value_from_register): New function.
9912 (s390_gdbarch_init): Do not call set_gdbarch_convert_register_p,
9913 set_gdbarch_register_to_value, set_gdbarch_value_to_register.
9914 Call set_gdbarch_value_from_register.
9916 2007-01-08 Daniel Jacobowitz <dan@codesourcery.com>
9918 * NEWS: Add "set sysroot" and "show sysroot".
9919 * solib.c (solib_absolute_prefix): Delete. Replace
9920 all uses with gdb_sysroot.
9921 (_initialize_solib): Add "set sysroot" and "show sysroot".
9922 Make "solib-absolute-prefix" an alias to it.
9924 2007-01-08 Ulrich Weigand <uweigand@de.ibm.com>
9926 * frame.c (get_frame_register_bytes): New function.
9927 (put_frame_register_bytes): Likewise.
9928 * frame.h (get_frame_register_bytes): Declare.
9929 (put_frame_register_bytes): Likewise.
9930 * findvar.c (value_from_register): Always construct lval_register
9931 values. Use get_frame_register_bytes.
9932 * valops.c (value_assign): Use get_frame_register_bytes and
9933 put_frame_register_bytes.
9935 2007-01-08 Jim Blandy <jimb@codesourcery.com>
9937 * MAINTAINERS: Update Stan Shebs' email address.
9939 2007-01-07 Joel Brobecker <brobecker@adacore.com>
9941 * ada-lang.c (is_known_support_routine): Improve the implementation.
9943 2007-01-06 Joel Brobecker <brobecker@adacore.com>
9945 * ada-lang.c: Add include of source.h.
9946 (is_known_support_routine): Improve the check verifying that the file
9947 associated to this frame exists.
9948 * Makefile.in (ada-lang.o): Add dependency on source.h.
9950 2007-01-07 Jim Blandy <jimb@codesourcery.com>
9952 * ax-general.c (ax_const_l): Select proper opcode for the given
9955 2007-01-05 Vladimir Prus <vladimir@codesourcery.com>
9957 * varobj.c (c_value_of_root): Don't select frame if variable
9958 object is out of scope.
9960 2007-01-05 Nick Roberts <nickrob@snap.net.nz>
9962 * varobj.c (struct varobj): New member print_value.
9963 (install_new_value): Compare last printed value with current one
9964 instead of contents.
9965 (new_variable): Initialize var->print_value to NULL.
9966 (free_variable): Free var->print_value.
9967 (value_get_print_value): New function derived from
9968 c_value_of_variable.
9969 (c_value_of_variable): Use value_get_print_value.
9971 2007-01-05 Joel Brobecker <brobecker@adacore.com>
9973 * i386-tdep.c (i386_analyze_stack_align): Add comment.
9975 2007-01-05 Joel Brobecker <brobecker@adacore.com>
9977 * NEWS: Add entries for new catch commands.
9979 2007-01-05 Joel Brobecker <brobecker@adacore.com>
9981 * dwarf2read.c (partial_die_info): Add field has_byte_size.
9982 (add_partial_symbol): Correct identification of external references.
9983 (process_structure_scope): Likewise.
9984 (read_partial_die): Handle DW_AT_byte_size attribute.
9986 2007-01-05 Daniel Jacobowitz <dan@codesourcery.com>
9988 * xml-support.c (gdb_xml_end_element): Remove wrong backslashes.
9990 2007-01-05 Nick Roberts <nickrob@snap.net.nz>
9992 * varobj.c (get_type_deref): Fix variable objects for references to
9995 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
9997 * symtab.c (find_pc_sect_psymtab): Add comments. Handle psymtabs
10000 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
10002 * memory-map.c (struct_memory_map_parsing_data): Remove most
10003 members. Make property_name an array.
10004 (free_memory_map_parsing_data, memory_map_start_element)
10005 (memory_map_end_element, memory_map_character_data): Delete.
10006 (memory_map_start_memory, memory_map_end_memory)
10007 (memory_map_start_property, memory_map_end_property): New functions.
10008 (property_attributes, memory_children, memory_type_enum)
10009 (memory_attributes, memory_map_children, memory_map_elements): New.
10010 (parse_memory_map): Rewrite.
10011 * xml-support.c (debug_xml): New.
10012 (xml_get_required_attribute, xml_get_integer_attribute)
10013 (xml_get_enum_value, free_xml_parser, make_cleanup_free_xml_parser):
10015 (struct scope_level, struct gdb_xml_parser, gdb_xml_body_text)
10016 (gdb_xml_debug, gdb_xml_error, gdb_xml_values_cleanup)
10017 (gdb_xml_start_element, gdb_xml_start_element_wrapper)
10018 (gdb_xml_end_element, gdb_xml_end_element_wrapper, gdb_xml_cleanup)
10019 (gdb_xml_create_parser_and_cleanup, gdb_xml_parse)
10020 (gdb_xml_parse_ulongest, gdb_xml_parse_attr_ulongest)
10021 (gdb_xml_parse_attr_enum, show_debug_xml, _initialize_xml_support):
10023 * xml-support.h (struct gdb_xml_value, gdb_xml_attribute_handler)
10024 (enum gdb_xml_attribute_flag, struct gdb_xml_attribute)
10025 (enum gdb_xml_element_flag, struct gdb_xml_element)
10026 (gdb_xml_element_start_handler, gdb_xml_element_end_handler)
10027 (struct gdb_xml_enum): New.
10028 (gdb_xml_create_parser_and_cleanup, gdb_xml_parse, gdb_xml_debug)
10029 (gdb_xml_error, gdb_xml_parse_attr_ulongest)
10030 (gdb_xml_parse_attr_enum, gdb_xml_parse_ulongest): New prototypes.
10031 (xml_get_required_attribute, xml_get_integer_attribute)
10032 (xml_get_enum_value, make_cleanup_free_xml_parser): Delete prototypes.
10033 * Makefile.in (xml_support_h, xml-support.o): Update.
10035 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
10037 * Makefile.in (eval.o): Update dependencies.
10038 * eval.c: Include "ui-out.h" and "exceptions.h".
10039 (evaluate_subexp_standard): Use TRY_CATCH around value_of_variable.
10040 Use value_zero if an error occurs when avoiding side effects.
10041 * varobj.c (c_value_of_root): Initialize new_val.
10043 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
10045 * varobj.c (varobj_list_children): Stop if the number of children is
10047 (c_number_of_children):
10049 2007-01-04 Mark Kettenis <kettenis@gnu.org>
10051 * alpha-tdep.c (alpha_register_name): Use ARRAY_SIZE.
10052 (alpha_read_insn, alpha_skip_prologue, alpha_heuristic_proc_start)
10053 (alpha_heuristic_frame_unwind_cache, alpha_next_pc)
10054 (alpha_gdbarch_init): Use ALPHA_INSN_SIZE, ALPHA_REGISTER_SIZE and
10055 sizeof, instead of hardcoded constants.
10057 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
10059 * CONTRIBUTE: Use sourceware.org.
10061 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
10063 * buildsym.c (start_subfile): Handle producer.
10064 (record_producer): New function.
10065 * buildsym.h (struct subfile): Include producer.
10066 (record_producer): New prototype.
10067 * dwarf2-frame.c (struct dwarf2_cie): Add version and augmentation.
10068 (struct dwarf2_frame_state): Add armcc_cfa_offsets_sf and
10069 armcc_cfa_offsets_reversed.
10070 (execute_cfa_program): Handle armcc_cfa_offsets_sf.
10071 (dwarf2_frame_find_quirks): New function.
10072 (dwarf2_frame_cache): Call it. Handle armcc_cfa_offsets_reversed.
10073 (decode_frame_entry_1): Record the CIE version. Record the
10074 augmentation. Skip armcc augmentations.
10075 * dwarf2read.c (read_file_scope): Save the producer.
10076 * symtab.h (struct symtab): Rename unused version member to
10079 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
10081 * configure.ac (build_warnings): Use -Wall and
10082 -Wdeclaration-after-statement.
10083 * configure: Regenerated.
10085 2007-01-04 Vladimir Prus <vladimir@codesourcery.com>
10087 Simplify access to variours properties of child
10088 variable objects in C.
10089 * varobj.c (value_struct_element_index): New function.
10090 (c_describe_child): New function.
10091 (c_name_of_child, c_value_of_child)
10092 (c_type_of_child): Rewrite to use c_describe_child.
10094 2007-01-04 Vladimir Prus <vladimir@codesourcery.com>
10097 * varobj.c: Include "vec.h".
10098 (varobj_p): New typedef, declare vector of those.
10099 (struct varobj): Use vector for the 'children' member.
10100 (child_exists): Remove.
10101 (save_child_in_parent): Remove.
10102 (remove_child_from_parent): Remove.
10103 (struct varobj_child): Remove.
10104 (struct vstack): Remove.
10105 (vpush, vpop): Remove.
10106 (varobj_list_children): Adjust to work work vector.
10107 (varobj_update): Likewise. Use vectors for
10108 working stack and result.
10109 (delete_variable_1): Likewise.
10110 * Makefile.in (varobj.o): Update dependencies.
10112 2007-01-04 Vladimir Prus <vladimir@codesourcery.com>
10114 Port from Apple's version.
10116 * varobj.c (type_changeable): Rename to...
10117 (varobj_value_is_changeable_p): ...this. Adjust all callers.
10118 (is_root_p): New function. Use it everywhere.
10120 2007-01-04 Jim Blandy <jimb@codesourcery.com>
10122 * glibc-tdep.c (glibc_skip_solib_resolver): Look for '_dl_fixup',
10123 then plain 'fixup'.
10125 2007-01-04 Joel Brobecker <brobecker@adacore.com>
10127 * hpread.c (hpread_start_psymtab): Remove unnecessary extern.
10129 2007-01-04 Joel Brobecker <brobecker@adacore.com>
10131 * hpread.c (hpread_type_lookup): Fix compilation failure.
10133 2007-01-04 Qinwei <qinwei@sunnorth.com.cn>
10135 * NEWS: New port to S+core.
10136 * MAINTAINERS (Write After Approval, Responsible Maintainers):
10139 * Makefile.in: Add dependencies for S+core files.
10140 * configure.tgt (score*, score-*-*): Add S+core target.
10141 * config/score/embed.mt: New file.
10142 * score-tdep.c: New file.
10143 * score-tdep.h: New file.
10145 2007-01-04 Joel Brobecker <brobecker@adacore.com>
10147 * ada-lang.c (ada_evaluate_subexp) [OP_TYPE]: Return a value with
10148 the appropriate type rather than a bogus void type.
10150 2007-01-04 Joel Brobecker <brobecker@adacore.com>
10152 * ada-lang.h (ada_find_printable_frame): Remove.
10153 (ada_exception_catchpoint_p, ada_decode_exception_location)
10154 (ada_decode_assert_location): Add declaration.
10155 * ada-lang.c: Add include of annotate.h and valprint.h.
10156 (exception_catchpoint_kind): New enum.
10157 (function_name_from_pc, is_known_support_routine)
10158 (ada_find_printable_frame, ada_unhandled_exception_name_addr)
10159 (ada_exception_name_addr_1, ada_exception_name_addr)
10160 (print_it_exception, print_one_exception, print_mention_exception)
10161 (print_it_catch_exception, print_one_catch_exception)
10162 (print_mention_catch_exception, catch_exception_breakpoint_ops)
10163 (print_it_catch_exception_unhandled)
10164 (print_one_catch_exception_unhandled)
10165 (print_mention_catch_exception_unhandled, print_it_catch_assert)
10166 (print_one_catch_assert, print_mention_catch_assert)
10167 (ada_exception_catchpoint_p, error_breakpoint_runtime_sym_not_found)
10168 (ada_get_next_arg, catch_ada_exception_command_split)
10169 (ada_exception_sym_name, ada_exception_sym_name)
10170 (ada_exception_breakption_ops, ada_exception_catchpoint_cond_string)
10171 (ada_parse_catchpoint_condition, ada_exception_sal)
10172 (ada_decode_exception_location)
10173 (ada_decode_assert_location): New function.
10174 (catch_exception_unhandled_breakpoint_ops): New global variable.
10175 (catch_assert_breakpoint_ops): New global variable.
10176 * breakpoint.c: Add include of ada-lang.h.
10177 (print_one_breakpoint): Do not print the condition for Ada
10178 exception catchpoints.
10179 (create_ada_exception_breakpoint): New function.
10180 (catch_ada_exception_command, catch_assert_command): New function.
10181 (catch_command_1): Add support for the new "catch exception" and
10182 "catch assert" commands.
10183 (_initialize_breakpoint): Add help description for the new catch
10185 * Makefile.in (ada-lang.o): Add dependency on annotate.h and
10187 (breakpoint.o): Add dependency on ada-lang.h.
10189 2007-01-03 Pedro Alves <pedro_alves@portugalmail.pt>
10191 * coffread.c (cs_to_section): If bfd_section is found, always
10192 return its section index.
10193 (coff_symtab_read): Determine the minimal_symbol_type using the
10196 2007-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10197 Daniel Jacobowitz <dan@codesourcery.com>
10199 * Makefile.in (top.o): Update.
10200 * top.c (gdb_readline_wrapper_done, gdb_readline_wrapper_result)
10201 (saved_after_char_processing_hook, gdb_readline_wrapper_line)
10202 (struct gdb_readline_wrapper_cleanup, gdb_readline_wrapper_cleanup):
10204 (gdb_readline_wrapper): Rewrite to use asynchronous readline.
10206 2007-01-03 Mark Kettenis <kettenis@gnu.org>
10208 * arm-linux-tdep.c (arm_linux_extract_return_value): Remove.
10209 (arm_linux_init_abi): Don't set deprecated_extract_return_value.
10211 2007-01-03 Daniel Jacobowitz <dan@codesourcery.com>
10213 * ada-lang.c (find_struct_field): Initialize *byte_offset_p.
10214 * breakpoint.c (do_enable_breakpoint): Ignore both mem_cnt and i.
10215 * c-typeprint.c (c_type_print_varspec_suffix): Don't test length
10216 greater than or equal to zero.
10217 * m2-typeprint.c (m2_array): Likewise.
10218 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
10219 * gdbtypes.c (copy_type_recursive): Correct == typo.
10220 * i386-tdep.c (i386_skip_prologue): Remove stray semicolon.
10221 * linux-nat.c (linux_nat_info_proc_cmd): Don't compare a pointer
10223 * macroscope.c (sal_macro_scope): Don't name a local variable "main".
10224 (default_macro_scope): Remove unused variable.
10225 * prologue-value.h (pv_area_find_reg): Don't name an argument
10227 * remote-fileio.c (remote_fio_func_map): Add missing braces.
10228 * remote.c (sigint_remote_twice_token, sigint_remote_token): Change
10230 (cleanup_sigint_signal_handler): Remove casts.
10231 * valprint.c (val_print): Use a volatile local for the modified
10233 * varobj.c (languages): Remove extra array dimension.
10234 (varobj_create): Correct access to languages array.
10235 * mi/mi-cmd-break.c (mi_cmd_break_insert, mi_cmd_break_watch): Add
10237 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise.
10238 * mi/mi-cmd-env.c (mi_cmd_env_path, mi_cmd_env_dir): Likewise.
10239 * mi/mi-getopt.c (mi_valid_noargs): Likewise.
10240 * mi/mi-main.c (mi_cmd_data_read_memory): Likewise.
10241 (mi_cmd_data_write_memory): Likewise.
10242 * signals/signals.c (target_signal_to_string): Cast to int before
10244 * tui/tui-layout.c (init_and_make_win): Take and return a void *.
10245 Update all callers.
10247 2007-01-03 Daniel Jacobowitz <dan@codesourcery.com>
10249 * NEWS: Mention pointer to member improvements.
10250 * Makefile.in (gnu-v3-abi.o): Delete special rule.
10251 (eval.o, gnu-v3-abi.o, ia64-tdep.o): Update.
10252 * ada-valprint.c (ada_print_scalar): Update for new type codes.
10253 * c-typeprint.c (c_print_type): Update for new type codes.
10254 (c_type_print_varspec_prefix, c_type_print_varspec_suffix)
10255 (c_type_print_base): Likewise.
10256 (c_type_print_args): Rewrite.
10257 * c-valprint.c (c_val_print): Update for new type codes. Remove
10258 support for references to members. Treat methods like functions.
10259 * cp-abi.c (cplus_print_method_ptr, cplus_method_ptr_size)
10260 (cplus_make_method_ptr, cplus_method_ptr_to_value): New.
10261 * cp-abi.h (cplus_print_method_ptr, cplus_method_ptr_size)
10262 (cplus_make_method_ptr, cplus_method_ptr_to_value): New prototypes.
10263 (struct cp_abi_ops): Add corresponding members.
10264 * cp-valprint.c (cp_print_class_method): Delete.
10265 (cp_find_class_member): New function.
10266 (cp_print_class_member): Use it. Simplify support for bogus
10268 * dwarf2read.c (quirk_gcc_member_function_pointer): Use
10269 lookup_methodptr_type.
10270 (read_tag_ptr_to_member_type): Likewise, and lookup_memberptr_type.
10271 * eval.c (evaluate_subexp_standard): Implement EVAL_SKIP for
10272 OP_SCOPE. Update call to value_aggregate_elt. Rewrite member
10274 (evaluate_subexp_for_address): Handle OP_SCOPE explicitly. Handle
10275 references returned by user defined operators.
10276 * f-typeprint.c (f_print_type, f_type_print_varspec_prefix)
10277 (f_type_print_varspec_suffix): Remove support for member pointers.
10278 * gdbtypes.c (lookup_memberptr_type): Renamed from lookup_member_type
10280 (smash_to_memberptr_type): Likewise, from smash_to_member_type.
10281 (lookup_methodptr_type): New.
10282 (rank_one_type): Adjust for TYPE_CODE_MEMBERPTR.
10283 (recursive_dump_type): Update for new types.
10284 * gdbtypes.h (enum type_code): Replace TYPE_CODE_MEMBER with
10285 TYPE_CODE_MEMBERPTR and TYPE_CODE_METHODPTR.
10286 (lookup_memberptr_type, lookup_methodptr_type)
10287 (smash_to_memberptr_type): New prototypes.
10288 (smash_to_method_type): Formatting fix.
10289 (lookup_member_type, smash_to_member_type): Delete prototypes.
10290 * gnu-v3-abi.c (gnuv3_get_vtable, gnuv3_get_virtual_fn): New.
10291 Do not rely on debug information for the vptr or the method's
10292 enclosing type. Handle function descriptors for IA64.
10293 (gnuv3_virtual_fn_field): Rewrite using the new functions.
10294 (gnuv3_find_method_in, gnuv3_print_method_ptr)
10295 (gnuv3_method_ptr_size, gnuv3_make_method_ptr)
10296 (gnuv3_method_ptr_to_value): New.
10297 (init_gnuv3_ops): Set new members of gnu_v3_abi_ops.
10298 * hpread.c (hpread_type_lookup): Update for new types.
10299 * infcall.c (value_arg_coerce): Likewise.
10300 * m2-typeprint.c (m2_print_type): Remove explicit support
10301 for member pointers.
10302 * m2-valprint.c (m2_val_print): Likewise.
10303 * p-typeprint.c (pascal_type_print_varspec_prefix)
10304 (pascal_type_print_varspec_suffix, pascal_type_print_base): Likewise.
10305 * p-valprint.c (pascal_val_print): Likewise.
10306 (pascal_object_print_class_method, pascal_object_print_class_member):
10308 * p-lang.h (pascal_object_print_class_method)
10309 (pascal_object_print_class_member): Delete prototypes.
10310 * stabsread.c (read_type): Update for new types.
10311 * typeprint.c (print_type_scalar): Likewise.
10312 * valops.c (value_struct_elt_for_reference, value_namespace_elt)
10313 (value_maybe_namespace_elt, value_aggregate_elt): Add want_address
10314 argument. Construct a pointer to member if the address of a
10315 function or data member is requested.
10316 (value_cast_pointers): Don't modify the input value.
10317 (value_cast): Adjust pointer to member handling for new types.
10318 Allow null pointer to member constants. Don't modify the input
10320 (value_ind): Remove pointer to member check. Handle function
10321 descriptors for function pointers.
10322 (value_struct_elt, value_find_oload_method_list, check_field):
10323 Remove pointer to member checks.
10324 * value.c (unpack_long): Allow pointers to data members.
10325 (value_from_longest): Allow member pointers.
10326 * value.h (value_aggregate_elt): Add want_address.
10327 * varobj.c (c_variable_editable): Remove check for members.
10328 * gdbarch.sh: Add vtable_function_descriptors and vbit_in_delta.
10329 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Handle descriptors
10331 (ia64_gdbarch_init): Call set_gdbarch_vtable_function_descriptors.
10332 * c-lang.h (cp_print_class_method): Delete prototype.
10333 * arm-tdep.c (arm_gdbarch_init): Call set_gdbarch_vbit_in_delta.
10334 * mips-tdep.c (mips_gdbarch_init): Likewise.
10335 * gdbarch.c, gdbarch.h: Regenerated.
10337 2007-01-01 Mark Kettenis <kettenis@gnu.org>
10339 * rs6000-tdep.c (rs6000_use_struct_convention)
10340 (rs6000_extract_return_value, rs6000_store_return_value)
10341 (rs6000_extract_struct_value_address): Remove.
10342 (rs6000_return_value): New function.
10343 (rs6000_gdbarch_init): Don't set deprecated_extract_return_value,
10344 store_return_value, deprecated_extract_struct_value_address and
10345 deprecated_use_struct_convention. Use rs6000_return_value
10348 2007-01-02 Nick Roberts <nickrob@snap.net.nz>
10350 * mi/mi-cmds.c (mi_cmds): Remove entries for -display-delete,
10351 -display-disable, -display-enable, -display-insert and
10354 2007-01-01 Joel Brobecker <brobecker@adacore.com>
10356 * breakpoint.c (remove_breakpoint): Remove dead code.
10358 2007-01-01 Nick Roberts <nickrob@snap.net.nz>
10360 * varobj.c: Include block.h.
10361 (c_value_of_root): Check scope within nested statements.
10363 2007-01-01 Mark Kettenis <kettenis@gnu.org>
10365 * mi/mi-main.c (mi_cmd_data_write_register_values): Use
10366 regcache_cooked_write_signed instead of
10367 deprecated_write_register_bytes.
10369 2007-01-01 Joel Brobecker <brobecker@adacore.com>
10371 * config/djgpp/fnchange.lst: Add entry for ChangeLog-2006.
10373 2007-01-01 Joel Brobecker <brobecker@adacore.com>
10375 Followed the Start of New Year Procedure:
10376 * ChangeLog-2006: New file, containing all the entries for 2006.
10377 * ChangeLog: Removed all 2006 entries, and changed the reference
10378 to the previous ChangeLog to point to ChangeLog 2006.
10379 * top.c (print_gdb_version): Update copyright year.
10381 2007-01-01 Mark Kettenis <kettenis@gnu.org>
10383 * Makefile.in (remote-sds.o): Remove.
10384 * remote-sds.c: Delete.
10386 For older changes see ChangeLog-2006.
10392 version-control: never