1 2007-12-17 Luis Machado <luisgpm@br.ibm.com>
3 * breakpoint.c (bpstat_stop_status): Check an additional
4 condition before evaluating an expression value.
6 2007-12-17 Joel Brobecker <brobecker@adacore.com>
8 * language.h (enum exp_opcode): Add forward declaration.
9 (language_string_char_type, language_lookup_primitive_type_by_name):
10 Move declaration past declaration of language_defn.
12 2007-12-16 Daniel Jacobowitz <dan@codesourcery.com>
13 Joseph Myers <joseph@codesourcery.com>
15 * configure.ac: Check for *-*-solaris2.1[[0-9]]* instead of
16 *-*-solaris2.1[[0-9]].
17 * configure: Regenerate.
18 * procfs.c (proc_set_current_signal): If redelivering a signal,
19 reuse the current siginfo if possible.
21 2007-12-16 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
23 * f-typeprint.c (print_equivalent_f77_float_type): Remove function.
24 (f_type_print_base): Output the type names directly for real and
27 2007-12-16 Vladimir Prus <vladimir@codesourcery.com>
29 * breakpoint.c (bpstat_have_active_hw_watchpoints):
31 (bpstat_stop_status): Remove unused variable
33 * breakpoint.h (bpstat_have_active_hw_watchpoints):
36 2007-12-16 Vladimir Prus <vladimir@codesourcery.com>
38 * target.h (target_pid_or_tid_to_str): Remove.
39 * infrun.c (handle_inferior_event):
40 Use target_pid_to_str instead of
41 target_pid_or_tid_to_str.
42 (normal_stop): Likewise.
44 2007-12-16 Jan Kratochvil <jan.kratochvil@redhat.com>
46 * dwarf2read.c (dwarf_attr_name): Rename `DW_AT_stride_size' to its
47 DWARF3 equivalent `DW_AT_bit_stride'.
48 Rename `DW_AT_stride' to its DWARF3 equivalent `DW_AT_byte_stride'.
50 2007-12-16 Joel Brobecker <brobecker@adacore.com>
52 * mi/mi-main.c: Remove code that was commented out in 1999.
54 2007-12-16 Joel Brobecker <brobecker@adacore.com>
56 * expression.h (parse_expression_in_context): Delete prototype.
57 * parse.c (parse_expression_in_context): Delete.
59 2007-12-14 Vladimir Prus <vladimir@codesourcery.com>
61 Add support for pending breakpoints in MI.
62 * gdb.h (gdb_breakpoint): Add parameter pending.
63 * breakpoint.c (gdb_breakpoint): Add parameter pending.
64 * mi/mi-cmd-break.c (mi_break_insert): Change
65 comment to refer to manual. Add support for
66 the -f flag, for pending breakpoint.
68 2007-12-14 Vladimir Prus <vladimir@codesourcery.com>
70 * breakpoint.c (break_command_really): New, copied
71 from break_command_1. New parameters COND_STRING, THREAD
72 PARSE_CONDITITION_AND_THREAD and PENDING_BREAK_SUPPORT.
73 The previous FLAG parameter split into TEMPFLAG and
75 When PARSE_CONDITION_AND_THREAD is not set, duplicate
76 the passed condition string.
77 (struct captured_breakpoint_args): Remove
78 (do_captured_breakpoint): Remove.
79 (break_command_1): Relay to break_command_really.
80 (gdb_breakpoint): Relay to break_command_really.
82 2007-12-13 Michael Snyder <msnyder@specifix.com>
84 * mips-linux-tdep.c (mips64_fill_gregset): Remove unused variable.
86 2007-12-13 Jim Blandy <jimb@codesourcery.com>
88 * dwarf2read.c (attr_form_is_constant): New function.
89 (dwarf2_add_field): Use it and attr_form_is_section_offset to
90 recognize DW_AT_data_member_location attributes. Use
91 dwarf2_get_attr_constant_value when the attribute is a constant.
93 * dwarf2read.c (attr_form_is_section_offset): New function.
94 (dwarf_add_member_fn, read_common_block, read_partial_die)
95 (dwarf2_symbol_mark_computed): Use it, instead of writing it out.
97 2007-12-12 Jim Blandy <jimb@codesourcery.com>
99 Remove unused support for target-based exception catching.
100 * target.h (struct target_ops): Delete
101 to_enable_exception_callback and to_get_current_exception_event
103 (target_enable_exception_callback)
104 (target_get_current_exception_event): Delete macros.
105 * target.c (update_current_target): Remove code to inherit and
106 default those members.
107 (debug_to_enable_exception_callback)
108 (debug_to_get_current_exception_event): Delete functions.
109 (setup_target_debug): Don't install those methods.
110 * inf-child.c (inf_child_enable_exception_callback)
111 (inf_child_get_current_exception_event): Delete dummy functions.
112 (inf_child_target): Don't install them in the target vector.
113 * breakpoint.h (enum bptype): Delete bp_catch_catch,
115 * breakpoint.c (cover_target_enable_exception_callback)
116 (ep_is_exception_catchpoint, create_exception_catchpoint): Delete
118 (insert_bp_location, update_breakpoints_after_exec)
119 (remove_breakpoint, ep_is_catchpoint, print_it_typical)
120 (bpstat_stop_status, bpstat_what)
121 (bpstat_get_triggered_catchpoints, print_one_breakpoint_location)
122 (user_settable_breakpoint, allocate_bp_location)
123 (disable_watchpoints_before_interactive_call_start)
124 (enable_watchpoints_after_interactive_call_stop, mention)
125 (delete_breakpoint, breakpoint_re_set_one, disable_command)
126 (enable_command): Remove exception catchpoint cases.
127 (catch_exception_command_1): Don't try target-based exception
129 * stack.c (catch_info): Call print_frame_label_vars
132 2007-12-12 Nigel Stephens <nigel@mips.com>
133 Maciej W. Rozycki <macro@mips.com>
135 * remote-mips.c (mips_load): Use regcache_set_valid_p() instead
136 of setting deprecated_register_valid array directly.
138 2007-12-07 Maciej W. Rozycki <macro@mips.com>
140 * mips-tdep.c (extended_offset): Fix a comment.
142 2007-12-07 Maciej W. Rozycki <macro@mips.com>
144 * target.c (update_current_target): Inherit to_log_command.
145 * target.h (struct target_ops). Add to_log_command.
146 (target_log_command): New macro.
147 * top.c (execute_command): Call target_log_command() rather than
148 serial_log_command().
149 * monitor.c (init_base_monitor_ops): Initialize to_log_command.
150 * remote-m32r-sdi.c (init_m32r_ops): Likewise.
151 * remote-mips.c (_initialize_remote_mips): Likewise.
152 * remote.c (init_remote_ops): Likewise.
154 2007-12-06 Daniel Jacobowitz <dan@codesourcery.com>
156 * infrun.c (init_wait_for_inferior): Reset target_last_wait_ptid.
157 (handle_inferior_event): Clear stop_stack_dummy earlier.
159 2007-12-06 Jim Blandy <jimb@codesourcery.com>
161 * addrmap.c (addrmap_splay_tree_remove): New function.
162 (addrmap_mutable_set_empty): Use it.
164 * addrmap.c, addrmap.h: Update to GPLv3.
166 * addrmap.c (struct addrmap): Make the referenced function table
168 (addrmap_fixed_funcs, addrmap_mutable_funcs): Declare const.
169 Don't use designated initializers.
171 * addrmap.c (addrmap_fixed_create_fixed, addrmap_mutable_find)
172 (addrmap_mutable_relocate): Use internal_error, not abort.
174 * NEWS: Mention support for non-contiguous lexical blocks and
177 2007-12-06 Markus Deuling <deuling@de.ibm.com>
179 * gdbarch.sh (stab_reg_to_regnum, dwarf_reg_to_regnum)
180 ( dwarf2_reg_to_regnum, sdb_reg_to_regnum, ecoff_reg_to_regnum): Add
181 gdbarch as parameter.
182 * gdbarch.{c,h}: Regenerate.
184 * xtensa-tdep.c (xtensa_reg_to_regnum): Add gdbarch as parameter.
185 Replace current_gdbarch by gdbarch.
186 * s390-tdep.c (s390_dwarf_reg_to_regnum): Likewise.
187 * rs6000-tdep.c (rs6000_stab_reg_to_regnum)
188 (rs6000_dwarf2_reg_to_regnum): Likewise.
189 * mips-tdep.c (mips_stab_reg_to_regnum)
190 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Likewise.
191 * mep-tdep.c (mep_debug_reg_to_regnum): Likewise.
192 * m32c-tdep.c (m32c_debug_info_reg_to_regnum): Likewise.
193 * i386-tdep.c (i386_dbx_reg_to_regnum)
194 (i386_svr4_reg_to_regnum): Likewise
195 * h8300-tdep.c (h8300s_dbg_reg_to_regnum)
196 (h8300_dbg_reg_to_regnum): Likewise.
197 * amd64-tdep.c (amd64_dwarf_reg_to_regnum): Likewise.
198 * arch-utils.c (no_op_reg_to_regnum): Likewise.
199 * arch-utils.h (no_op_reg_to_regnum): Likewise.
200 * arm-tdep.c (arm_dwarf_reg_to_regnum): Likewise.
201 * cris-tdep.c (cris_dwarf2_reg_to_regnum): Likewise.
202 * hppa-tdep.c (hppa64_dwarf_reg_to_regnum): Likewise.
203 * ia64-tdep.c (ia64_dwarf_reg_to_regnum): Likewise.
204 * m68k-tdep.c (m68k_dwarf_reg_to_regnum): Likewise.
206 2007-12-06 Vladimir Prus <vladimir@codesourcery.com>
208 Localize infrun use of remove_breakpoints.
209 * infrun.c (handle_inferior_event): Remove
210 calls to remove_breakpoints, except where needed to
211 communicate change of breakpoint locations to inferior.
212 (keep_going): If steppping over breakpoint, remove
215 2007-12-06 Vladimir Prus <vladimir@codesourcery.com>
217 Clarify infrun variable naming.
218 * infrun.c (trap_expected): Rename
219 to stepping_over_breakpoint. Document.
220 (stepping_past_breakpoint): Remove.
221 (stepping_past_breakpoint_ptdi): Renamed
222 to deferred_step_ptid.
223 (struct execution_control_state): Rename
224 the another_trap field to stepping_over_breakpoint.
225 (struct inferior_status): Rename the trap_expected
226 field to stepping_over_breakpoint.
227 (clear_proceed_status, proceed)
228 (init_execution_control_state, context_switch)
229 (handle_inferior_event, currently_stepping)
230 (keep_going, save_inferior_status)
231 (restore_inferior_status, prepare_to_proceed): Adjust.
232 * gdbthread.h (struct thread_info): Rename the
233 trap_expected field to stepping_over_breakpoint.
234 * thread.c (load_infrun_state, save_infrun_state):
237 2007-12-06 Pierre Muller <muller@ics.u-strasbg.fr>
239 * win32-nat.c: Allow compilation if CORE_ADDR is 8 byte long.
240 Add "gdb_stdint.h" dependency required for uintptr_t type use.
241 (handle_output_debug_string): Use uintptr_t typecast.
242 (handle_exception): Ditto.
243 (win32_xfer_memory): Ditto.
244 * Makefile.in (win32-nat.o): Add dependency to gdb_stdint header.
246 2007-12-04 Jim Blandy <jimb@codesourcery.com>
248 Support lexical blocks and function bodies that occupy
249 non-contiguous address ranges.
250 * addrmap.c, addrmap.h: New files.
251 * block.h (struct addrmap): New forward declaration.
252 (struct blockvector): New member, 'map'.
253 (BLOCKVECTOR_MAP): New accessor macro.
254 * block.c: #include "addrmap.h"
255 (blockvector_for_pc_sect): If the blockvector we've found has
256 an address map, use it instead of searching the blocks.
257 * buildsym.c: #include "addrmap.h"
258 (pending_addrmap_obstack, pending_addrmap_interesting): New static
260 (really_free_pendings): If we have a pending addrmap, free it too.
261 (record_block_range): New function.
262 (make_blockvector): If we have an interesting pending addrmap,
263 record it in the new blockvector.
264 (start_symtab, buildsym_init): Assert that there is no pending
265 addrmap now; we should have cleaned up any addrmaps we'd built
267 (end_symtab): If there is a pending addrmap left over that didn't
268 get included in the blockvector, free it.
269 * buildsym.h (struct addrmap): New forward declaration.
270 (record_block_range): New prototype.
271 * objfiles.c: #include "addrmap.h".
272 (objfile_relocate): Relocate the blockvector's address map, if
274 * dwarf2read.c (dwarf2_record_block_ranges): New function.
275 (read_func_scope, read_lexical_block_scope): Call it.
276 * Makefile.in (SFILES): Add addrmap.c.
277 (addrmap_h): New header dependency variable.
278 (COMMON_OBS): Add addrmap.o.
279 (addrmap.o): New rule.l
280 (block.o, objfiles.o, buildsym.o): Depend on $(addrmap_h).
282 * block.c (blockvector_for_pc, blockvector_for_pc_sect): Return a
283 pointer to the block, not its index in the blockvector.
284 (block_for_pc_sect): Use the returned block, instead of looking it
286 * block.h (blockvector_for_pc, blockvector_for_pc_sect): Update
288 * breakpoint.c (resolve_sal_pc): Use returned block, instead of
289 looking it up ourselves.
290 * stack.c (print_frame_label_vars): Disable function, which
291 depends on the block's index.
293 * buildsym.c (finish_block): Return the block we've built.
294 * buildsym.h (finish_block): Update prototype.
296 * defs.h (CORE_ADDR_MAX): New constant.
298 2007-12-04 Ulrich Weigand <uweigand@de.ibm.com>
300 * coffread.c (decode_type): Use builtin_type_int32 instead
301 of FT_INTEGER fundamental type for array range index type.
302 (decode_base_type): Use builtin types of current_gdbarch
303 instead of fundamental types.
305 * dwarf2read.c (struct dwarf2_cu): Remove ftypes member.
306 (read_file_scope): Do not initialize ftypes member.
307 (dwarf_base_type, dwarf2_fundamental_types): Remove functions.
308 (read_array_type): Use builtin_type_int32 instead of FT_INTEGER
309 fundamental type for array range index type.
310 (read_tag_string_type): Likewise for string range index type.
311 Also, do not overwrite FT_CHAR type with new string type.
312 (read_base_type): If DW_AT_name is missing, create unnamed type
313 with given properties instead of looking for a fundamental type.
314 Create new types as TYPE_TARGET_TYPE for DW_ATE_address and
315 DW_ATE_complex_float types.
316 (read_subrange_type): Create new type to represent missing
317 DW_AT_type instead of looking for a fundamental type.
318 (die_type): Use builtin type to represent "void" instead of
319 looking for a fundamental type.
321 * stabsread.c (define_symbol): Use builtin types to represent
322 'r' and 'i' floating-point and integer constants.
324 * gdbtypes.c (lookup_fundamental_type): Remove.
325 * gdbtypes.h (lookup_fundamental_type): Remove prototype.
326 (FT_VOID, FT_BOOLEAN, FT_CHAR, FT_SIGNED_CHAR, FT_UNSIGNED_CHAR,
327 FT_SHORT, FT_SIGNED_SHORT, FT_UNSIGNED_SHORT, FT_INTEGER,
328 FT_SIGNED_INTEGER, FT_UNSIGNED_INTEGER, FT_LONG, FT_SIGNED_LONG,
329 FT_UNSIGNED_LONG, FT_LONG_LONG, FT_SIGNED_LONG_LONG,
330 FT_UNSIGNED_LONG_LONG, FT_FLOAT, FT_DBL_PREC_FLOAT, FT_EXT_PREC_FLOAT,
331 FT_COMPLEX, FT_DBL_PREC_COMPLEX, FT_EXT_PREC_COMPLEX, FT_STRING,
332 FT_FIXED_DECIMAL, FT_FLOAT_DECIMAL, FT_BYTE, FT_UNSIGNED_BYTE,
333 FT_TEMPLATE_ARG, FT_DECFLOAT, FT_DBL_PREC_DECFLOAT,
334 FT_EXT_PREC_DECFLOAT, FT_NUM_MEMBERS): Remove macros.
335 * objfiles.c (struct objfile): Remove fundamental_types member.
336 * symfile.c (reread_symbols): Do not clear fundamental_types.
338 * language.h (struct language_defn): Remove la_fund_type member.
339 (create_fundamental_type): Remove.
340 * language.c (unk_lang_create_fundamental_type): Remove.
341 (unknown_language_defn, auto_language_defn,
342 local_language_defn): Adapt initializer.
343 * ada-lang.c (ada_create_fundamental_type): Remove.
344 (ada_language_defn): Adapt initializer.
345 * c-lang.h (c_create_fundamental_type): Remove prototype.
346 * c-lang.c (c_create_fundamental_type): Remove.
347 (c_language_defn, cplus_language_defn, asm_language_defn,
348 minimal_language_defn): Adapt initializer.
349 * f-lang.c (f_create_fundamental_type): Remove.
350 (f_language_defn): Adapt initializer.
351 * jv-lang.c (java_create_fundamental_type): Remove.
352 (java_language_defn): Adapt initializer.
353 * m2-lang.c (m2_create_fundamental_type): Remove.
354 (m2_language_defn): Adapt initializer.
355 * objc-lang.c (objc_create_fundamental_type): Remove.
356 (objc_language_defn): Adapt initializer.
357 * p-lang.h (pascal_create_fundamental_type): Remove prototype.
358 * p-lang.c (pascal_create_fundamental_type): Remove.
359 (pascal_language_defn): Adapt initializer.
360 * scm-lang.c (scm_language_defn): Adapt initializer.
362 2007-12-04 Maciej W. Rozycki <macro@mips.com>
364 * features/mips-cpu.xml: Specify "regnum" for "r0" explicitly.
365 * features/mips64-cpu.xml: Likewise.
366 * features/mips-fpu.xml: Specify "regnum" for "f0" explicitly.
367 * features/mips64-fpu.xml: Likewise.
368 * features/mips-linux.c: Regenerate.
369 * features/mips64-linux.c: Regenerate.
371 2007-12-04 Maciej W. Rozycki <macro@mips.com>
373 * target.h (target_find_new_threads): Fix definition.
375 2007-12-02 Pierre Muller <muller@ics.u-strasbg.fr>
377 * win32-nat.c (win32_resume): Set the trace bit
378 in the thread identified by inferior_ptid.
381 2007-12-02 Pierre Muller <muller@ics.u-strasbg.fr>
383 * win32-nat.c (open_process_used): New static variable.
384 (win32_init_thread_list): Remove call to CloseHandle for thread.
385 (win32_delete_thread): Ditto.
386 (fake_create_process): Set open_process_used if OpenProcess call is
388 (get_win32_debug_event): Do not close process handle.
389 (do_initial_win32_stuff): Set open_process_used to zero.
390 (win32_mourn_inferior): Call CloseHandle for current_process_handle if
391 open_process_used is set.
392 (win32_kill_inferior): Do not close process and main_thread handles.
394 2007-11-30 Daniel Jacobowitz <dan@codesourcery.com>
396 * remote.c (remote_cmdlist): New variable.
397 (PACKET_vFile_open, PACKET_vFile_pread, PACKET_vFile_pwrite)
398 (PACKET_vFile_close, PACKET_vFile_unlink): New constants.
399 (remote_buffer_add_string, remote_buffer_add_bytes)
400 (remote_buffer_add_int, remote_hostio_parse_result)
401 (remote_hostio_send_command, remote_hostio_open, remote_hostio_pwrite)
402 (remote_hostio_pread, remote_hostio_close, remote_hostio_unlink)
403 (remote_fileio_errno_to_host, remote_hostio_error, fclose_cleanup)
404 (remote_hostio_close_cleanup, remote_file_put, remote_file_get)
405 (remote_file_delete, remote_put_command, remote_get_command)
406 (remote_delete_command, remote_command): New functions.
407 (_initialize_remote): Register new packets and commands.
408 * Makefile.in (gdb_fileio_h): New variable.
410 (SUBDIR_MI_OBS): Add mi-cmd-target.o.
411 (SUBDIR_MI_SRCS): Add mi/mi-cmd-target.c.
412 (mi-cmd-target.o): New rule.
413 * mi/mi-cmd-target.c: New file.
414 * mi/mi-cmds.c (mi_cmds): Add target-file-delete, target-file-get,
416 * mi/mi-cmds.h (mi_cmd_target_file_get, mi_cmd_target_file_put)
417 (mi_cmd_target_file_delete): Declare.
418 * remote.h (remote_file_put, remote_file_get, remote_file_delete):
420 * NEWS: Describe new file transfer support.
422 2007-11-30 Vladimir Prus <vladimir@codesourcery.com>
424 * infrun.c (handle_inferior_event): Don't
425 ignore beakpoints if trap_expected is set.
427 2007-11-30 Vladimir Prus <vladimir@codesourcery.com>
429 Make insert_breakpoints return void.
430 * breakpoint.h (insert_breakpoints): Change
432 * breakpoint.c (insert_breakpoints): Change
433 return type to void. Rename local return_val
435 * infrun.c (keep_going): Instead of checking
436 return value from insert_breakpoints, catch exception.
438 2007-11-29 Vladimir Prus <vladimir@codesourcery.com>
440 Stop infrun from tracking breakpoint insertion status.
442 The checks of breakpoints_inserted before calling
443 remove_breakpoints are removed, as remove_breakpoint
444 won't touch uninserted breakpoints. In a number of places,
445 we're interested if a breakpoint is inserted at particular
446 PC, and we now use breakpoint_inserted_here_p. In a few
447 places, insert_breakpoints can be called unconditionally,
448 since it won't try to insert already inserted breakpoint.
450 * breakpoint.h (regular_breakpoint_inserted_here_p): New
452 * breakpoint.c (regular_breakpoint_inserted_here_p): New.
453 (breakpoint_inserted_here_p): Use
454 regular_breakpoint_inserted_here_p.
455 * infrun.c (breakpoints_inserted): Remove.
456 (resume): Don't check for breakpoints_inserted before
457 remove_hw_watchpoints. Use breakpoint_inserted_here_p.
458 (proceed, init_wait_for_inferior): Don't set breakpoints_inserted.
459 (handle_inferior_event): Don't use breakpoints_inserted.
460 Use breakpoints_meant_to_be_inserted and
461 breakpoints_inserted_here_p.
462 (insert_step_resume_breakpoint_at_sal, keep_going): Use
463 breakpoints_meant_to_be_inserted. Don't set breakpoints_inserted.
464 (normal_stop): Don't check for breakpoints_inserted. Don't
465 set breakpoints_inserted.
466 (keep_going): Don't check for breakpoints_inserted.
467 (insert_step_resume_breakpoint_at_sal): Don't insert
470 2007-11-28 Jim Blandy <jimb@codesourcery.com>
472 * breakpoint.c (watch_command_1): When the watchpoint isn't local
473 to any frame, initialize watchpoint_frame using null_frame_id, not
476 2007-11-28 Vladimir Prus <vladimir@codesourcery.com>
478 * infrun.c (resume): Set right thread even if
479 stepping over breakpoint using software single step.
481 2007-11-28 Nick Roberts <nickrob@snap.net.nz>
483 * mi/mi-cmd-var.c (print_varobj): Revert change from 2007-08-31.
484 (mi_print_value_p): Guard against type = NULL.
486 2007-11-27 Thiago Jung Bauermann <bauerman@br.ibm.com>
488 * dfp.c (decimal_from_string): Remove superfluous newline from
490 (decimal_to_string): Likewise.
491 * printcmd.c (printf_command): Change string buffer to use
492 MAX_DECIMAL_STRING constant.
493 * value.c (value_from_decfloat): Likewise.
495 2007-11-27 Ulrich Weigand <uweigand@de.ibm.com>
497 * Makefile.in (ALL_TARGET_OBS): Remove object files that require
498 64-bit CORE_ADDR and BFD support, move them to ...
499 (ALL_64_TARGET_OBS): ... this new variable.
500 * configure.ac: Check for --enable-64-bit-bfd option. Only add
501 64-bit targets with --enable-targets=all if BFD supports 64-bit.
502 * configure: Regenerate.
504 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Do not claim
505 all elf32-i386 executables, only cygwin core files.
507 2007-11-25 Jan Kratochvil <jan.kratochvil@redhat.com>
509 * dwarf2read.c (dwarf2_get_pc_bounds): Moved the `DW_AT_ranges' parsing
510 code with its variables OBJFILE, CU_HEADER and OBFD into ...
511 (dwarf2_ranges_read): ... a new function.
512 (read_partial_die): Implemented the parsing of `DW_AT_ranges'.
514 2007-11-24 Pedro Alves <pedro_alves@portugalmail.pt>
516 * win32-nat.c (DR6_CLEAR_VALUE): New define.
517 (thread_info_struct): Rename suspend_count to suspended, to be
519 (thread_rec): Only suspend the thread if it wasn't suspended by
520 gdb before. Warn if suspending failed.
521 (win32_add_thread): Set Dr6 to DR6_CLEAR_VALUE.
522 (win32_continue): Set Dr6 to DR6_CLEAR_VALUE. Update usage of the
523 `suspended' flag. Do ContinueDebugEvent after resuming the
524 suspended threads, not before. Set threads' contexts before
525 resuming them, not after.
526 (win32_resume): Set Dr6 to DR6_CLEAR_VALUE.
528 2007-11-23 Vladimir Prus <vladimir@codesourcery.com>
530 * breakpoint.c (insert_breakpoints)
531 (insert_bp_location): Remove stale comments.
533 2007-11-23 Maciej W. Rozycki <macro@mips.com>
535 * mips-linux-tdep.h: Fix some formatting.
537 2007-11-21 Markus Deuling <deuling@de.ibm.com>
539 * stack.c (print_args_stub): Use get_frame_arch to get at the current
540 architecture and replace current_gdbarch.
541 (frame_info): Likewise.
543 2007-11-21 Nick Roberts <nickrob@snap.net.nz>
545 * varobj.c (c_variable_editable, cplus_variable_editable)
546 (java_variable_editable, variable_editable): Delete.
547 (varobj_editable_p): Replace above functions with one language
548 independent function. Check for an lvalue.
549 (varobj_get_attributes, varobj_set_value): Use varobj_editable_p.
550 (struct language_specific): Delete variable_editable field.
552 * mi-cmd-var.c (mi_cmd_var_assign): Simplify.
554 * varobj.h: Add extern for varobj_editable_p.
556 2007-11-20 Vladimir Prus <vladimir@codesourcery.com>
558 Remove unused breakpoint fields.
559 * breakpoint.h (struct breakpoint): Remove
560 from_tty and flag fields.
561 * breakpoint.c (break_command_1): Don't set
562 from_tty and flag field set of breakpoint.
563 (create_ada_exception_breakpoint): Don't set
566 2007-11-20 David Ung <davidu@mips.com>
567 Maciej W. Rozycki <macro@mips.com>
569 * mips-tdep.c (mips16_scan_prologue): Handle the MIPS16e SAVE
572 2007-11-20 Vladimir Prus <vladimir@codesourcery.com>
574 * infrun.c (resume): Clarify logic that
575 decides if a single thread must be resumed. Add
578 2007-11-20 Vladimir Prus <vladimir@codesourcery.com>
580 * breakpoint.c (disable_breakpoints_in_unloaded_shlib):
583 2007-11-19 Markus Deuling <deuling@de.ibm.com>
585 * gdbarch.sh (register_sim_regno): Add gdbarch as parameter.
586 * gdbarch.{c,h}: Regenerate.
588 * arch-utils.h (legacy_register_sim_regno): Add gdbarch as parameter.
589 * score-tdep.c (score_register_sim_regno): Likewise.
590 * sim-regno.h (one2one_register_sim_regno): Likewise.
592 * arch-utils.c (legacy_register_sim_regno): Add gdbarch as parameter.
593 Replace current_gdbarch by gdbarch.
594 * sh-tdep.c (sh_sh2a_register_sim_regno)
595 (sh_dsp_register_sim_regno): Likewise.
596 * rs6000-tdep.c (rs6000_register_sim_regno): Likewise.
597 * mips-tdep.c (mips_register_sim_regno): Likewise.
598 * m32c-tdep.c (m32c_register_sim_regno): Likewise.
599 * frv-tdep.c (frv_register_sim_regno): Likewise.
600 * arm-tdep.c (arm_register_sim_regno): Likewise.
601 * remote-sim.c (one2one_register_sim_regno): Likewise.
603 2007-11-16 Ulrich Weigand <uweigand@de.ibm.com>
605 * configure.ac (--enable-targets): New configure option.
606 Collect gdb_target_obs of multiple targets into TARGET_OBS.
607 Call configure.tgt multiple times, using $targ as operand.
608 * configure.tgt: Operate on $targ instead of $target.
609 * configure: Regenerate.
610 * Makefile.in (ALL_TARGET_OBS): Define.
612 * NEWS: Mention --enable-targets option.
614 2007-11-16 Ulrich Weigand <uweigand@de.ibm.com>
616 * mips-tdep.c (show_mipsfpu_command): Do not crash if called when
617 current architecture is not MIPS.
619 2007-11-16 Ulrich Weigand <uweigand@de.ibm.com>
621 * cli/cli-setshow.c (do_setshow_command): Use dynamically sized buffer
622 to construct error message if no argument was supplied.
624 2007-11-16 Ulrich Weigand <uweigand@de.ibm.com>
626 * i386nbsd-tdep.c (i386nbsd_aout_supply_regset): Remove.
627 (i386nbsd_aout_regset_from_core_section): Likewise.
628 (i386nbsd_aout_init_abi): Likewise.
629 (_initialize_i386nbsd_tdep): Do not register i386nbsd_aout_init_abi.
631 * vaxnbsd-tdep.c (vaxnbsd_aout_init_abi): Remove.
632 (_initialize_vaxnbsd_tdep): Do not register vaxnbsd_aout_init_abi.
634 2007-11-16 Ulrich Weigand <uweigand@de.ibm.com>
636 * amd64fsdb-tdep.c (amd64fbsd_sigtramp_start_addr): Use ULL suffix.
637 (amd64fbsd_sigtramp_end_addr): Likewise.
639 * iq2000-tdep.c (iq2000_pointer_to_address): Fix argument type.
640 (iq2000_address_to_pointer): Likewise.
641 (iq2000_frame_prev_register): Likewise.
642 (iq2000_extract_return_value): Use regcache_cooked_read_unsigned
643 instead of regcache_cooked_read into CORE_ADDR variable.
644 (iq2000_return_value): Fix argument types.
646 * m32r-rom.c (m32r_load_section): Fix printf argument type.
647 (m32r_load): Likewise.
649 * m68kbsd-tdep.c: Include "gdbtypes.h".
650 * Makefile.in: Update dependencies.
652 * mn10300-tdep.c (mn10300_frame_unwind_cache): Fix aliasing violation.
654 * nto-tdep.c (LM_ADDR): Do not refer to no-longer-existing
655 lmo->l_addr_size element.
657 * remote-m32r-sdi.c (m32r_xfer_memory): Use paddr to print address.
658 (m32r_insert_breakpoint): Likewise.
659 (m32r_remove_breakpoint): Likewise.
660 (m32r_insert_watchpoint): Likewise.
661 (m32r_remove_watchpoint): Likewise.
662 (m32r_load): Fix printf argument type.
664 * xtensa-tdep.c (xtensa_regset_from_core_section): Fix printf
666 (xtensa_frame_this_id): Do not cast pointers to "int" for output.
667 (xtensa_frame_prev_register): Likewise.
668 (xtensa_push_dummy_call): Likewise.
670 2007-11-16 Ulrich Weigand <uweigand@de.ibm.com>
672 * config/alpha/alpha-linux.mt: Remove file.
673 * config/alpha/alpha.mt: Remove file.
674 * config/alpha/alpha-osf1.mt: Remove file.
675 * config/alpha/fbsd.mt: Remove file.
676 * config/alpha/nbsd.mt: Remove file.
677 * config/alpha/obsd.mt: Remove file.
678 * config/arm/embed.mt: Remove file.
679 * config/arm/linux.mt: Remove file.
680 * config/arm/nbsd.mt: Remove file.
681 * config/arm/obsd.mt: Remove file.
682 * config/arm/wince.mt: Remove file.
683 * config/avr/avr.mt: Remove file.
684 * config/cris/cris.mt: Remove file.
685 * config/frv/frv.mt: Remove file.
686 * config/h8300/h8300.mt: Remove file.
687 * config/i386/cygwin.mt: Remove file.
688 * config/i386/fbsd64.mt: Remove file.
689 * config/i386/fbsd.mt: Remove file.
690 * config/i386/i386gnu.mt: Remove file.
691 * config/i386/i386.mt: Remove file.
692 * config/i386/i386sol2.mt: Remove file.
693 * config/i386/linux64.mt: Remove file.
694 * config/i386/linux.mt: Remove file.
695 * config/i386/mingw.mt: Remove file.
696 * config/i386/nbsd64.mt: Remove file.
697 * config/i386/nbsd.mt: Remove file.
698 * config/i386/nto.mt: Remove file.
699 * config/i386/obsd64.mt: Remove file.
700 * config/i386/obsd.mt: Remove file.
701 * config/i386/sol2-64.mt: Remove file.
702 * config/ia64/ia64.mt: Remove file.
703 * config/ia64/linux.mt: Remove file.
704 * config/iq2000/iq2000.mt: Remove file.
705 * config/m32c/m32c.mt: Remove file.
706 * config/m32r/linux.mt: Remove file.
707 * config/m32r/m32r.mt: Remove file.
708 * config/m68hc11/m68hc11.mt: Remove file.
709 * config/m68k/linux.mt: Remove file.
710 * config/m68k/monitor.mt: Remove file.
711 * config/m68k/nbsd.mt: Remove file.
712 * config/m68k/obsd.mt: Remove file.
713 * config/m88k/obsd.mt: Remove file.
714 * config/mep/mep.mt: Remove file.
715 * config/mips/embed.mt: Remove file.
716 * config/mips/irix5.mt: Remove file.
717 * config/mips/irix6.mt: Remove file.
718 * config/mips/linux.mt: Remove file.
719 * config/mips/nbsd.mt: Remove file.
720 * config/mips/obsd64.mt: Remove file.
721 * config/mn10300/linux.mt: Remove file.
722 * config/mn10300/mn10300.mt: Remove file.
723 * config/mt/mt.mt: Remove file.
724 * config/pa/hppahpux.mt: Remove file.
725 * config/pa/hppa.mt: Remove file.
726 * config/pa/linux.mt: Remove file.
727 * config/pa/obsd.mt: Remove file.
728 * config/powerpc/aix.mt: Remove file.
729 * config/powerpc/linux.mt: Remove file.
730 * config/powerpc/nbsd.mt: Remove file.
731 * config/powerpc/obsd.mt: Remove file.
732 * config/powerpc/ppc-eabi.mt: Remove file.
733 * config/s390/s390.mt: Remove file.
734 * config/score/embed.mt: Remove file.
735 * config/sh/embed.mt: Remove file.
736 * config/sh/linux.mt: Remove file.
737 * config/sh/nbsd.mt: Remove file.
738 * config/sh/obsd.mt: Remove file.
739 * config/sh/sh64.mt: Remove file.
740 * config/sparc/embed.mt: Remove file.
741 * config/sparc/fbsd.mt: Remove file.
742 * config/sparc/linux64.mt: Remove file.
743 * config/sparc/linux.mt: Remove file.
744 * config/sparc/nbsd64.mt: Remove file.
745 * config/sparc/nbsd.mt: Remove file.
746 * config/sparc/obsd64.mt: Remove file.
747 * config/sparc/obsd.mt: Remove file.
748 * config/sparc/sol2-64.mt: Remove file.
749 * config/sparc/sol2.mt: Remove file.
750 * config/sparc/sparc64.mt: Remove file.
751 * config/sparc/sparc.mt: Remove file.
752 * config/spu/spu.mt: Remove file.
753 * config/v850/v850.mt: Remove file.
754 * config/vax/nbsd.mt: Remove file.
755 * config/vax/obsd.mt: Remove file.
756 * config/vax/vax.mt: Remove file.
757 * config/xstormy16/xstormy16.mt: Remove file.
758 * config/xtensa/xtensa.mt: Remove file.
760 * configure.tgt (gdb_target_cpu): Remove. Do not set anywhere.
761 (gdb_target): Likewise.
762 (gdb_target_obs): Document. Set for every target to contents
763 of TDEPFILES in former .mt makefile fragment.
765 * configure.ac (TARGET_OBS): Define.
766 (target_makefile_frag, gdb_target_cpu): Do not define.
767 * configure: Regenerate.
769 * Makefile.in (MT_FLAGS): Remove.
770 (GLOBAL_CFLAGS): Update.
771 (TARGET_OBS): Substitute from configure.
772 (DEPFILES): Remove TDEPFILES, add TARGET_OBS.
773 (@target_makefile_frag@): Remove.
775 2007-11-16 Ulrich Weigand <uweigand@de.ibm.com>
777 * config/arm/embed.mt (SIM_OBS, SIM): Remove.
778 * config/avr/avr.mt (SIM_OBS, SIM): Remove.
779 * config/frv/frv.mt (SIM_OBS, SIM): Remove.
780 * config/h8300/h8300.mt (SIM_OBS, SIM): Remove.
781 * config/iq2000/iq2000.mt (SIM_OBS, SIM): Remove.
782 * config/m32c/m32c.mt (SIM_OBS, SIM): Remove.
783 * config/m32r/linux.mt (SIM_OBS, SIM): Remove.
784 * config/m32r/m32r.mt (SIM_OBS, SIM): Remove.
785 * config/m68hc11/m68hc11.mt (SIM_OBS, SIM): Remove.
786 * config/mips/embed.mt (SIM_OBS, SIM): Remove.
787 * config/mips/linux.mt (SIM_OBS, SIM): Remove.
788 * config/mips/nbsd.mt (SIM_OBS, SIM): Remove.
789 * config/mn10300/mn10300.mt (SIM_OBS, SIM): Remove.
790 * config/powerpc/linux.mt (SIM_OBS, SIM): Remove.
791 * config/powerpc/nbsd.mt (SIM_OBS, SIM): Remove.
792 * config/powerpc/ppc-sim.mt: Remove file.
793 * config/sh/embed.mt (SIM_OBS, SIM): Remove.
794 * config/sh/linux.mt (SIM_OBS, SIM): Remove.
795 * config/sh/nbsd.mt (SIM_OBS, SIM): Remove.
796 * config/sh/sh64.mt (SIM_OBS, SIM): Remove.
797 * config/sparc/embed.mt (SIM_OBS, SIM): Remove.
798 * config/v850/v850.mt (SIM_OBS, SIM): Remove.
799 * config/xstormy16/xstormy16.mt (SIM_OBS, SIM): Remove.
801 * configure.tgt (gdb_sim): Document variable.
802 (arm*-*-* | thumb*-*-* | strongarm*-*-* | xscale-*-*): Set it.
805 (h8300-*-*): Likewise.
806 (iq2000-*-*): Likewise.
807 (m32c-*-*): Likewise.
808 (m32r*-*-linux*): Likewise.
809 (m32r*-*-*): Likewise.
810 (m68hc11*-*-*|m6811*-*-*): Likewise.
811 (mips*-*-*): Likewise.
812 (mips*-*-linux*): Likewise.
813 (mips*-*-netbsd* | mips*-*-knetbsd*-gnu): Likewise.
814 (mn10300-*-*): Likewise.
815 (powerpc-*-linux* | powerpc64-*-linux*): Likewise.
816 (powerpc-*-netbsd* | powerpc-*-knetbsd*-gnu): Likewise.
817 (powerpc*-*-*): Use ppc-eabi target. Conditionally set gdb_sim.
819 (sh-*-linux*): Likewise.
820 (sh*-*-netbsdelf* | sh*-*-knetbsd*-gnu): Likewise.
821 (sh64-*-elf*): Likewise.
822 (sparc-*-rtems*): Likewise.
823 (v850*-*-elf): Likewise.
824 (xstormy16-*-*): Likewise.
826 * configure.ac (IGNORE_SIM, IGNORE_SIM_OBS): Do not set.
827 (SIM, SIM_OBS): Set depending on ${ignore_sim} and ${gdb_sim}.
828 * configure: Regenerate.
829 * Makefile.in (SIM, SIM_OBS): Substitute from configure.
830 (@IGNORE_SIM@, @IGNORE_SIM_OBS@): Remove.
832 2007-11-16 Ulrich Weigand <uweigand@de.ibm.com>
834 * configure.tgt (gdb_osabi, build_gdbserver): Comment variables.
835 (arm*-*-*): Do not set obsolete build_rdi_share variable.
837 (*-*-freebsd* | *-*-kfreebsd*-gnu): Remove generic case, replace by ...
838 (alpha*-*-freebsd* | alpha*-*-kfreebsd*-gnu)
839 (i[34567]86-*-freebsd* | i[34567]86-*-kfreebsd*-gnu)
840 (sparc*-*-freebsd* | sparc*-*-kfreebsd*-gnu): ... specific cases.
841 (x86_64-*-freebsd* | x86_64-*-kfreebsd*-gnu): Re-sort.
843 (xscale-*-*): Merge into arm*-*-* case.
844 (fido-*-elf*): Merge into m68*-*-elf* case.
845 (m68*-*-aout*, m68*-*-coff*, m68*-*-elf*, m68*-*-rtems*,
846 m68*-*-uclinux*): Merge cases.
847 (powerpc-*-linux*, powerpc64-*-linux*): Merge cases.
848 (sh-*-coff*, sh-*-elf*): Merge into sh* case.
850 2007-11-16 Ulrich Weigand <uweigand@de.ibm.com>
852 * configure.tgt: Reformat main case statement.
854 2007-11-16 Ulrich Weigand <uweigand@de.ibm.com>
856 * configure.ac (hostfile, targetfile): Remove.
857 (GDB_XM_FILE, GDB_TM_FILE): Do not define.
858 (xm_h, tm_h): Likewise.
859 (DEPRECATED_TM_FILE, XM_FILE): Do not substitute into Makefile.
860 * configure, config.in: Regenerate.
862 * Makefile.in (xm_h, tm_h): Remove. Update dependencies.
863 (TAGS): Do not consider DEPRECATED_TM_FILE or XM_FILE.
864 (clean, local-maintainer-clean): Do not remove xm.h or tm.h.
865 * defs.h: Do not include "xm.h" or "tm.h".
867 * gdbarch.sh (verify_gdbarch): Do not dump GDB_XM_FILE or GDB_TM_FILE.
868 * gdbarch.c: Regenerate.
870 * config/score/embed.mt: Remove obsolete comment.
872 2007-11-16 Markus Deuling <deuling@de.ibm.com>
874 * gdbarch.sh (cannot_fetch_register, cannot_store_register): Add gdbarch
876 * gdbarch.{c,h}: Regenerate.
878 * alpha-tdep.c (alpha_cannot_fetch_register)
879 (alpha_cannot_store_register): Add gdbarch as parameter. Replace
880 current_gdbarch by gdbarch.
881 * cris-tdep.c (cris_cannot_fetch_register, cris_cannot_store_register)
882 (crisv32_cannot_fetch_register)
883 (crisv32_cannot_store_register): Likewise.
884 * arch-utils.c (cannot_register_not): Likewise.
885 * arch-utils.h (cannot_register_not): Likewise.
886 * hppa-tdep.c (hppa32_cannot_store_register)
887 (hppa32_cannot_store_register, hppa64_cannot_store_register)
888 (hppa64_cannot_fetch_register): Likewise.
889 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register)
890 (mipsnbsd_cannot_store_register): Likewise.
892 2007-11-16 Markus Deuling <deuling@de.ibm.com>
894 * m32r-rom.c (m32r_supply_register): Use get_regcache_arch to get at
895 the current architecture by regcache.
896 * ppcnbsd-nat.c (ppcnbsd_supply_pcb): Likewise.
897 * ppc-linux-nat.c (fetch_altivec_register, fetch_spe_register)
898 (fetch_register, supply_vrregset, fetch_ppc_registers)
899 (store_altivec_register, store_spe_register, store_register)
900 (fill_vrregset, store_ppc_registers): Likewise.
901 * ppcobsd-nat.c (ppcobsd_supply_pcb): Likewise.
902 * win32-nat.c (do_win32_fetch_inferior_registers)
903 (do_win32_store_inferior_registers): Likewise.
904 * procfs.c (procfs_fetch_registers, procfs_store_registers): Likewise.
905 * remote-m32r-sdi.c (m32r_fetch_registers)
906 (m32r_store_registers): Likewise.
907 * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register): Likewise.
909 * trad-frame.c (trad_frame_alloc_saved_regs): Replace current_gdbarch by
911 * user-regs.c (user_reg_map_name_to_regnum): Likewise.
912 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call)
913 (do_ppc_sysv_return_value, ppc64_sysv_abi_push_dummy_call)
914 (ppc64_sysv_abi_return_value): Likewise.
915 * m32c-tdep.c (m32c_register_reggroup_p): Likewise.
916 * m2-lang.c (build_m2_types): Likewise.
917 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache
918 * ppcnbsd-tdep.c (ppcnbsd_sigtramp_cache_init): Likewise.
919 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_cache): Likewise.
920 * rs6000-tdep.c (ppc_dwarf2_frame_init_reg): Likewise.
922 * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Use get_frame_arch to
923 get at the current architecture by frame_info.
924 * gcore.c (derive_stack_segment): Likewise.
926 * shnbsd-nat.c (GETREGS_SUPPLIES): Add gdbarch parameter.
927 (shnbsd_fetch_inferior_registers, shnbsd_store_inferior_registers): Add
928 gdbarch to GETREGS_SUPPLIES call.
930 2007-11-16 Ulrich Weigand <uweigand@de.ibm.com>
932 * elfread.c (ST_REGULAR, ST_DYNAMIC, ST_SYNTHETIC): New defines.
933 (elf_symtab_read): Rename DYNAMIC argument to TYPE. Do not access
934 ELF-private symbol data when processing synthetic symbols. Use
935 udata.p to get at size of ppc64 synthetic 'dot' symbols.
936 (elf_symfile_read): Pass TYPE argument to elf_symtab_read.
938 2007-11-15 Doug Evans <dje@google.com>
940 * buildsym.h (subfiles): Move ...
941 * buildsym.c (subfiles): ... to here and make static.
943 * symmisc.c (maintenance_info_symtabs): Print linetable info.
945 2007-11-15 Markus Deuling <deuling@de.ibm.com>
947 * mipsnbsd-tdep.h (SIZEOF_STRUCT_REG, SIZEOF_STRUCT_FPREG): Remove
949 2007-11-15 Markus Deuling <deuling@de.ibm.com>
951 * arm-tdep.c (arm_prologue_this_id): Replace LOWEST_PC by its
952 expression and use get_frame_arch to replace current_gdbarch by frame's
954 * arm-tdep.h (LOWEST_PC): Remove
956 2007-11-15 Vladimir Prus <vladimir@codesourcery.com>
958 Apply const qualifier to some users of bp_location.
959 * breakpoint.h (struct bpstats): Make
960 the breakpoint_at field point at const bp_location.
961 * breakpoint.c (bpstat_alloc): Accept const
963 (breakpoint_here_p, breakpoint_inserted_here_p)
964 (software_breakpoint_inserted_here_p)
965 (breakpoint_thread_match, bpstat_stop_status)
966 (read_memory_nobpt, bpstat_have_active_hw_watchpoints): Use
967 const bp_location for iteration.
968 (print_it_typical, print_bp_stop_message): Use
969 const bp_location variable.
971 2007-11-15 Vladimir Prus <vladimir@codesourcery.com>
973 Make mark_breakpoints_out static.
974 * breakpoint.h (mark_breakpoints_out): Remove
976 * breakpoint.c (mark_breakpoints_out): Make static.
978 2007-11-15 Vladimir Prus <vladimir@codesourcery.com>
980 Prevent clear_command from directly modifying breakpoint list.
981 * Makefile.in (breakpoint_h): Update dependency.
982 * breakpoint.c (clear_command): Do not remove
983 breakpoints from breakpoint_chain. Collect breakpoints
984 to delete in a vector.
985 * breakpoint.h (breakpoint_p): New typedef for pointer to
986 breakpoint. Register vector of breakpoint_p.
988 2007-11-15 Vladimir Prus <vladimir@codesourcery.com>
990 Remove 'run_cleanup'.
991 * defs.h (do_run_cleanups, make_run_cleanup): Remove
993 * infcmd.c (run_command_1): Call clear_solib instead
995 * jv-lang.c (java_rerun_cleanup): Remove, for lack of
997 * solib.c (solib_cleanup_queued, do_clear_solib): Remove.
998 (update_solib_lib): Don't setup run cleanup.
999 (no_shared_libraries): Call clear_solib, not do_clear_solib.
1000 * utils.c (run_cleanup_chain, make_run_cleanup)
1001 (do_run_cleanups): Remove.
1003 2007-11-15 Vladimir Prus <vladimir@codesourcery.com>
1005 Remove CLEAR_SOLIB use.
1006 * corelow.c (core_close): Don't check for CLEAR_SOLIB.
1007 * infcmd.c (attach_command): Likewise.
1009 2007-11-14 Doug Evans <dje@google.com>
1011 * buildsym.c (start_subfile,start_symtab): Doc fixes.
1013 2007-11-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
1015 * tui/tui-data.c (tui_prev_win): Guard against NULL.
1017 2007-11-12 Markus Deuling <deuling@de.ibm.com>
1019 * gdbarch.sh (gdbarch_alloc): Replace current_gdbarch by gdbarch. Remove
1021 (verify_gdbarch, gdbarch_dump): Likewise.
1022 (do_read): Update comment.
1023 (addr_bit, bfd_arch_info, target_desc, long_long_bit, floatformat)
1024 (ptr_bit, name_of_malloc): Replace current_gdbarch by gdbarch.
1025 * gdbarch.{c,h}: Regenerate.
1027 2007-11-12 Markus Deuling <deuling@de.ibm.com>
1029 * xtensa-tdep.c (ARG_1ST): Replace ARGS_FIRST_REG by its expression.
1030 (ARGS_FIRST_REG): Remove.
1031 (areg_numer): New function.
1032 (xtensa_pseudo_register_read, xtensa_frame_prev_register)
1033 (xtensa_extract_return_value, xtensa_store_return_value)
1034 (xtensa_frame_cache): Replace AREG_NUMBER by areg_number.
1035 (AREG_NUMBER): Remove.
1036 (XTENSA_IS_ENTRY, ARG_NOF, ARG_1ST): Add gdbarch as parameter.
1037 (xtensa_frame_cache): Update use of XTENSA_IS_ENTRY.
1038 (xtensa_push_dummy_call): Update use of ARG_NOF.
1039 (extract_call_winsize): Add gdbarch as parameter. Replace
1040 current_gdbarch by gdbarch.
1041 (xtensa_extract_return_value, xtensa_store_return_value): Update call
1042 of extract_call_winsize.
1044 2007-11-10 Joel Brobecker <brobecker@adacore.com>
1046 * NEWS: Add entry for new set/show print frame-args command.
1048 2007-11-09 Kevin Buettner <kevinb@redhat.com>
1050 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Add missing
1051 register number to map. Adjust warning check and error/warning
1052 return value code to match expectations of this function's callers.
1054 2007-11-09 Joel Brobecker <brobecker@adacore.com>
1056 * stack.c (print_this_frame_argument_p): Handle arguments passed
1057 by reference properly.
1059 2007-11-09 Joel Brobecker <brobecker@adacore.com>
1061 * stack.c (print_frame_arguments_choices): New static global.
1062 (print_frame_arguments): Likewise.
1063 (print_this_frame_argument_p): New function.
1064 (print_frame_args): Print the argument value only when appropriate.
1065 (_initialize_task): Add new "set/show print frame-arguments" command.
1067 2007-11-09 Luis Machado <luisgpm@br.ibm.com>
1069 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Move
1070 saved_dabr_value assignment to the correct position.
1072 2007-11-09 Markus Deuling <deuling@de.ibm.com>
1074 * arch-utils.c (generic_convert_register_p): Add gdbarch as parameter.
1075 * arch-utils.h (generic_convert_register_p): Likewise.
1077 2007-11-09 Markus Deuling <deuling@de.ibm.com>
1079 * gdbarch.sh (convert_register_p): Add gdbarch as parameter.
1080 * ia64-tdep.c (ia64_convert_register_p): Likewise.
1081 * i387-tdep.c (i387_convert_register_p): Likewise.
1082 * i387-tdep.h (i387_convert_register_p): Likewise.
1083 * alpha-tdep.c (alpha_convert_register_p): Likewise.
1084 * gdbarch.{c,h}: Regenerate.
1086 * rs6000-tdep.c (rs6000_convert_register_p): Add gdbarch as parameter.
1087 Replace current_gdbarch by gdbarch.
1088 * mips-tdep.c (mips_convert_register_p): Likewise.
1089 * m68k-tdep.c (m68k_convert_register_p): Likewise.
1090 * i386-tdep.c (i386_convert_register_p): Likewise.
1092 2007-11-08 Aleksandar Ristovski <aristovski@qnx.com>
1094 * gdb_string.h: Include <strings.h>.
1096 2007-11-08 Vladimir Prus <vladimir@codesourcery.com>
1098 * breakpoint.c (break_command_1): Remove
1099 pending_bp parameter.
1100 (create_breakpoint): Likewise.
1101 (create_breakpoints): Likewise. Adjust call to
1103 (break_command_1): Likewise. Adjust call to
1105 (do_captured_breakpoint): Adjust call to
1107 (break_command, tbreak_command, hbreak_command)
1108 (stopin_command, stopat_command): Adjust call
1111 2007-11-07 Joseph Myers <joseph@codesourcery.com>
1112 Daniel Jacobowitz <dan@codesourcery.com>
1114 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Right-align
1115 struct values smaller than one doubleword; left-align those
1116 larger. Pass structs containing a single floating-point value in
1119 2007-11-07 Joseph Myers <joseph@codesourcery.com>
1120 Daniel Jacobowitz <dan@codesourcery.com>
1122 * gdbtypes.c (floatformats_ibm_long_double): New.
1123 * gdbtypes.h (floatformats_ibm_long_double): Declare.
1124 * ia64-tdep.c (floatformat_ia64_ext): Update for addition of
1126 * mips-tdep.c (n32n64_floatformat_always_valid,
1127 floatformat_n32n64_long_double_big, floatformats_n32n64_long):
1129 (mips_gdbarch_init): Use floatformats_ibm_long_double instead of
1130 floatformats_n32n64_long.
1131 * ppc-linux-tdep.c (ppc_linux_init_abi): Use 128-bit IBM long
1133 * doublest.c (convert_floatformat_to_doublest,
1134 convert_doublest_to_floatformat): Handle split floating-point
1136 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Handle IBM long
1138 (ppc64_sysv_abi_push_dummy_call): Likewise.
1139 (do_ppc_sysv_return_value): Handle IBM long double return.
1141 2007-11-07 Vladimir Prus <vladimir@codesourcery.com>
1143 Fix crash when a variable object being deleted
1144 has any of its children deleted previously.
1146 * varobj.c (delete_variable_1): Don't recurse
1147 into deleted children.
1149 2007-11-07 Markus Deuling <deuling@de.ibm.com>
1151 * gdbarch.sh (legacy_virtual_frame_pointer): Add gdbarch parameter.
1152 * gdbarch.{c,h}: Regenerate.
1153 * arch-utils.c (legacy_virtual_frame_pointer): Add gdbarch parameter.
1154 Replace current_gdbarch by gdbarch.
1155 * m32c-tdep.c (m32c_virtual_frame_pointer): Likewise.
1156 * mips-tdep.c (mips_virtual_frame_pointer): Likewise.
1157 * spu-tdep.c (spu_virtual_frame_pointer): Likewise.
1159 2007-11-07 Markus Deuling <deuling@de.ibm.com>
1161 * shnbsd-tdep.c (shnbsd_supply_gregset, shnbsd_collect_gregset): Use
1162 get_regcache_arch to get at the current architecture by regcache.
1163 * xstormy16-tdep.c (xstormy16_frame_prev_register): Use get_frame_arch
1164 to get at the current architecture by frame_info.
1165 * fbsd-nat.c (fbsd_make_corefile_notes): Use get_regcache_arch to get
1166 at the current architecture by regcache.
1167 * gnu-v3-abi.c (gnuv3_skip_trampoline): Use get_frame_arch to get at
1168 the current architecture by frame_info.
1169 (build_gdb_vtable_type): Replace current_gdbarch by gdbarch.
1170 * aix-thread.c (special_register_p): Add gdbarch as parameter.
1171 (fetch_regs_kernel_thread, store_regs_kernel_thread): Add gdbarch to
1172 caller of special_register_p.
1174 2007-11-07 Markus Deuling <deuling@de.ibm.com>
1176 * infcall.c (call_function_by_hand): Use get_frame_arch to get at the
1177 current architecture by frame_info.
1179 2007-11-07 Markus Deuling <deuling@de.ibm.com>
1181 * xtensa-tdep.h (SIZEOF_GREGSET, XTENSA_ELF_NGREG) Remove.
1183 2007-11-07 Markus Deuling <deuling@de.ibm.com>
1185 * s390-nat.c (supply_gregset, fill_gregset): Use get_regcache_arch to
1186 get at the current architecture by regcache.
1187 (SUBOFF): Add gdbarch to macro definition.
1189 2007-11-07 Markus Deuling <deuling@de.ibm.com>
1191 * gdbarch.sh (breakpoint_from_pc): Add gdbarch parameter.
1192 * gdbarch.{c,h}: Regenerate.
1194 * xtensa-tdep.c (xtensa_breakpoint_from_pc): Add gdbarch parameter.
1195 Replace current_gdbarch by gdbarch.
1196 * sh-tdep.c (sh_breakpoint_from_pc): Likewise.
1197 * sh64-tdep.c (sh64_breakpoint_from_pc): Likewise.
1198 * score-tdep.c (score_breakpoint_from_pc): Likewise.
1199 * mips-tdep.c (mips_breakpoint_from_pc): Likewise.
1200 * m32r-tdep.c (m32r_breakpoint_from_pc): Likewise.
1201 * iq2000-tdep.c (iq2000_breakpoint_from_pc): Likewise.
1202 * arm-tdep.c (arm_breakpoint_from_pc): Likewise.
1204 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Add gdbarch
1206 * vax-tdep.c (vax_breakpoint_from_pc): Likewise.
1207 * v850-tdep.c (v850_breakpoint_from_pc): Likewise.
1208 * spu-tdep.c (spu_breakpoint_from_pc): Likewise.
1209 * sparc-tdep.c (sparc_breakpoint_from_pc): Likewise.
1210 * s390-tdep.c (s390_breakpoint_from_pc): Likewise.
1211 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Likewise.
1212 * mt-tdep.c (mt_breakpoint_from_pc): Likewise.
1213 * mep-tdep.c (mep_breakpoint_from_pc): Likewise.
1214 * m88k-tdep.c (m88k_breakpoint_from_pc): Likewise.
1215 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Likewise.
1216 * m32c-tdep.c (m32c_breakpoint_from_pc): Likewise.
1217 * ia64-tdep.c (ia64_breakpoint_from_pc): Likewise.
1218 * i386-tdep.c (i386_breakpoint_from_pc): Likewise.
1219 * hppa-tdep.c (hppa_breakpoint_from_pc): Likewise.
1220 * h8300-tdep.c (h8300_breakpoint_from_pc): Likewise.
1221 * frv-tdep.c (frv_breakpoint_from_pc): Likewise.
1222 * cris-tdep.c (cris_breakpoint_from_pc): Likewise.
1223 * avr-tdep.c (avr_breakpoint_from_pc): Likewise.
1224 * alpha-tdep.c (alpha_breakpoint_from_pc): Likewise.
1225 * m68k-tdep.c (m68k_local_breakpoint_from_pc): Likewise.
1227 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Add gdbarch parameter.
1228 Replace current_gdbarch by gdbarch.
1229 (rs6000_software_single_step): Use get_frame_arch to get at the
1230 current architecture by frame_info. Add gdbarch to
1231 rs6000_breakpoint_from_pc call.
1233 2007-11-07 Markus Deuling <deuling@de.ibm.com>
1235 * frv-tdep.c (frv_register_name, frv_check_watch_resources): Replace
1236 macro CURRENT_VARIANT by its expression.
1237 (CURRENT_VARIANT): Remove.
1238 (frv_check_watch_resources): Add gdbarch parameter.
1240 2007-11-07 Markus Deuling <deuling@de.ibm.com>
1242 * MAINTAINERS (Write After Approval): Add self.
1244 2007-11-05 Ulrich Weigand <uweigand@de.ibm.com>
1246 * features/rs6000/power-core.xml: Use uint32 as register type.
1247 * features/rs6000/power64-core.xml: Use uint64/uint32 as register type.
1248 * features/rs6000/powerpc-32.c: Regenerate.
1249 * features/rs6000/powerpc-403.c: Regenerate.
1250 * features/rs6000/powerpc-403gc.c: Regenerate.
1251 * features/rs6000/powerpc-505.c: Regenerate.
1252 * features/rs6000/powerpc-602.c: Regenerate.
1253 * features/rs6000/powerpc-603.c: Regenerate.
1254 * features/rs6000/powerpc-604.c: Regenerate.
1255 * features/rs6000/powerpc-64.c: Regenerate.
1256 * features/rs6000/powerpc-7400.c: Regenerate.
1257 * features/rs6000/powerpc-750.c: Regenerate.
1258 * features/rs6000/powerpc-860.c: Regenerate.
1259 * features/rs6000/powerpc-e500.c: Regenerate.
1261 2007-11-05 Joel Brobecker <brobecker@adacore.com>
1263 * breakpoint.c (set_raw_breakpoint_without_location): Make static.
1265 2007-11-05 Joel Brobecker <brobecker@adacore.com>
1267 * breakpoint.h (create_solib_load_event_breakpoint)
1268 (create_solib_unload_event_breakpoint)
1269 (create_fork_event_catchpoint, create_vfork_event_catchpoint)
1270 (create_exec_event_catchpoint): Delete declaration.
1271 * breakpoint.c (create_solib_load_event_breakpoint)
1272 (solib_load_unload_1, create_solib_unload_event_breakpoint): Delete.
1273 (create_fork_event_catchpoint, create_vfork_event_catchpoint)
1274 (create_exec_event_catchpoint): Make static.
1276 2007-11-05 Joel Brobecker <brobecker@adacore.com>
1278 * breakpoint.h (set_breakpoint_sal): Remove declaration.
1279 * breakpoint.c (set_breakpoint_sal): Delete.
1281 2007-11-05 Joel Brobecker <brobecker@adacore.com>
1283 * buildsym.c (finish_block): Remove "#if 1"/"#endif" brackets.
1284 (make_blockvector): Likewise. Remove FIXME comment.
1286 2007-11-05 Luis Machado <luisgpm@br.ibm.com>
1288 * printcmd.c: (printf_command): Add support for new DFP
1289 modifiers %H, %D and %DD.
1290 * configure.ac: Add check for DECFLOAT printf support.
1291 * configure: Regenerated.
1293 2007-11-02 Ulrich Weigand <uweigand@de.ibm.com>
1295 * gdbtypes.h (struct cplus_struct_type): Remove runtime_ptr member.
1296 (TYPE_RUNTIME_PTR, TYPE_VTABLE, TYPE_HAS_VTABLE,
1297 TYPE_PRIMARY_BASE, TYPE_VIRTUAL_BASE_LIST): Remove macros.
1298 (HP_ACC_VFUNC_START, HP_ACC_VBASE_START, HP_ACC_TYPEINFO_OFFSET,
1299 HP_ACC_TOP_OFFSET_OFFSET): Likewise.
1300 (has_vtable, primary_base_class, 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 prototypes.
1304 * gdbtypes.c (has_vtable, primary_base_class, current_vbase_list,
1305 virtual_base_list_aux, virtual_base_list, virtual_base_list_length,
1306 virtual_base_list_length_skip_primaries, virtual_base_index,
1307 virtual_base_index_skip_primaries, class_index_in_primary_list,
1308 count_virtual_fns): Remove.
1310 * cp-valprint.c (cp_print_hpacc_virtual_table_entries): Remove.
1311 (hpacc_vtbl_ptr_name, hpacc_vtbl_ptr_type_name): Remove.
1312 (cp_print_value_fields): Remove support for HP aCC vtables.
1313 (cp_print_value): Likewise.
1314 * c-typeprint.c (c_type_print_base): Likewise.
1316 * value.h (find_rt_vbase_offset): Remove prototype.
1317 * valops.c (find_rt_vbase_offset): Remove.
1318 (search_struct_method): Remove support for HP aCC vtables.
1319 (find_method_list): Likewise.
1321 2007-11-02 Ulrich Weigand <uweigand@de.ibm.com>
1323 * language.h (struct language_defn): Remove la_builtin_type_vector
1324 and string_char_type members.
1325 * language.c (language_string_char_type): No longer consult
1326 la->string_char_type.
1327 (language_lookup_primitive_type_by_name): No longer consult
1328 current_language->la_builtin_type_vector.
1330 * language.c (unknown_language_defn, auto_language_defn,
1331 local_language_defn): Adapt initializer.
1332 * ada-lang.c (ada_language_defn): Likewise.
1333 * c-lang.c (c_language_defn, cplus_language_defn, asm_language_defn,
1334 minimal_language_defn): Likewise.
1335 * f-lang.c (f_language_defn): Likewise.
1336 * jv-lang.c (java_language_defn): Likewise.
1337 * m2-lang.c (m2_language_defn): Likewise.
1338 * objc-lang.c (objc_language_defn): Likewise.
1339 * p-lang.c (pascal_language_defn): Likewise.
1340 * scm-lang.c (scm_language_defn): Likewise.
1342 2007-11-02 Markus Deuling <deuling@de.ibm.com>
1344 * frame.c (frame_id_inner): Add gdbarch parameter. Replace
1345 current_gdbarch by gdbarch.
1346 (frame_find_by_id, get_prev_frame_1): Use get_frame_arch to get at the
1347 current architecture by frame_info.
1348 * frame.h (frame_id_inner): Add gdbarch parameter.
1349 * stack.c (return_command): Use get_frame_arch to get at the current
1350 architecture by frame_info. Update call of frame_id_inner.
1351 * infrun.c (handle_inferior_event): Likewise.
1352 * dummy-frame.c (dummy_frame_push): Use get_regcache_arch to get at the
1353 current architecture by regcache. Update call of frame_id_inner.
1355 2007-11-02 Markus Deuling <deuling@de.ibm.com>
1357 * gdbarch.sh (register_name): Add gdbarch parameter.
1358 * gdbarch.{c,h}: Regenerate.
1360 * target-descriptions.c (tdesc_register_name): Add gdbarch parameter.
1361 (tdesc_register_name): Replace current_gdbarch by gdbarch.
1362 * target-descriptions.h (tdesc_register_name): Add gdbarch parameter.
1364 * xstormy16-tdep.c (xstormy16_register_name): Add gdbarch parameter.
1365 * vax-tdep.c (vax_register_name): Add gdbarch parameter.
1366 * spu-tdep.c (spu_register_name): Add gdbarch parameter.
1367 * s390-tdep.c (s390_register_name): Add gdbarch parameter.
1368 * mt-tdep.c (mt_register_name): Add gdbarch parameter.
1369 (mt_registers_info): Replace current_gdbarch by gdbarch.
1370 (mt_register_reggroup_p): Add gdbarch to mt_register_name call.
1371 * mips-tdep.c (mips_register_name): Add gdbarch parameter. Replace
1372 current_gdbarch by gdbarch.
1373 (mips_register_name): Add gdbarch to tdesc_register_name call.
1374 * mep-tdep.c (mep_register_name): Add gdbarch parameter. Replace
1375 current_gdbarch by gdbarch.
1376 (mep_register_reggroup_p): Add gdbarch to mep_register_name call.
1377 * m32c-tdep.c (m32c_register_name): Add gdbarch parameter. Replace
1378 current_gdbarch by gdbarch.
1379 * m88k-tdep.c (m88k_register_name): Add gdbarch parameter.
1380 * m68k-tdep.c (m68k_register_name): Add gdbarch parameter.
1381 * m32r-tdep.c (m32r_register_name): Add gdbarch parameter.
1382 (m32r_frame_unwind_cache): Use get_frame_arch to get at the current
1383 architecture by frame_info.
1384 * iq2000-tdep.c (iq2000_register_name): Add gdbarch parameter.
1385 * ia64-tdep.c (ia64_register_name): Add gdbarch parameter.
1386 * hppa-tdep.c (hppa32_register_name, hppa64_register_name): Add gdbarch
1388 * h8300-tdep.c (h8300_register_name, h8300s_register_name)
1389 (h8300sx_register_name): Add gdbarch parameter.
1390 * cris-tdep.c (cris_register_name, crisv32_register_name): Add
1391 gdbarch parameter. Replace current_gdbarch by gdbarch.
1392 (cris_gdbarch_init): Replace current_gdbarch by gdbarch (comment).
1393 * avr-tdep.c (avr_register_name): Add gdbarch parameter.
1394 * arm-tdep.c (arm_register_name): Add gdbarch paramete
1395 * amd64-tdep.c (amd64_register_name): Add gdbarch parameter. Update
1397 * amd64-tdep.h (amd64_register_name): Add gdbarch parameter.
1398 * amd64-linux-tdep.c (amd64_linux_register_name): Add gdbarch parameter.
1399 * alpha-tdep.c (alpha_register_name): Add gdbarch parameter.
1400 (alpha_cannot_fetch_register, alpha_cannot_store_register): Update call
1401 of alpha_register_name.
1402 * frv-tdep.c (frv_register_name): Add gdbarch parameter.
1403 * i386-tdep.c (i386_register_name): Add gdbarch parameter. Replace
1404 current_gdbarch by gdbarch.
1405 (i386_register_type): Replace ?current_gdbarch by gdbarch.
1406 * i386-tdep.h (i386_register_name): Add gdbarch parameter.
1407 * i386-linux-tdep.c (i386_linux_register_name): Add gdbarch parameter.
1409 * m68hc11-tdep.c (m68hc11_register_name): Add gdbarch parameter.
1410 (m68hc11_register_reggroup_p): Add gdbarch to call of
1411 m68hc11_register_name.
1412 * mn10300-tdep.c (mn10300_generic_register_name, am33_register_name)
1413 (am33_2_register_name): Add gdbarch parameter.
1414 (mn10300_frame_unwind_cache): Use get_frame_arch to get at the current
1415 architecture by frame_info.
1416 (mn10300_dump_tdep): Replace current_gdbarch by gdbarch.
1417 * rs6000-tdep.c (rs6000_register_name): Add gdbarch parameter. Replace
1418 current_gdbarch by gdbarch.
1419 * score-tdep.c (score_register_name): Add gdbarch parameter.
1420 (score_return_value, score_push_dummy_call): Replace current_gdbarch
1422 * sh64-tdep.c (sh64_register_name): Add gdbarch parameter.
1423 (sh64_compact_reg_base_num, sh64_register_convert_to_virtual)
1424 (sh64_register_convert_to_raw, sh64_fv_reg_base_num)
1425 (sh64_dr_reg_base_num, sh64_fpp_reg_base_num): Add gdbarch parameter
1426 and update caller. Replace current_gdbarch by gdbarch.
1427 (sh64_extract_return_value, sh64_store_return_value): Use
1428 get_regcache_arch to get at the current architecture by regcache.
1429 * sh-tdep.c (sh_sh_register_name, sh_sh3_register_name)
1430 (sh_sh3e_register_name, sh_sh2e_register_name, sh_sh2a_register_name)
1431 (sh_sh2a_nofpu_register_name, sh_sh_dsp_register_name)
1432 (sh_sh3_dsp_register_name, sh_sh4_register_name)
1433 (sh_sh4_nofpu_register_name, sh_sh4al_dsp_register_name): Add gdbarch
1435 (fv_reg_base_num, dr_reg_base_num, sh_justify_value_in_reg)
1436 (sh_next_flt_argreg): Add gdbarch parameter and update caller. Replace
1437 current_gdbarch by gdbarch.
1438 (sh_extract_return_value_fpu, sh_store_return_value_fpu): Use
1439 get_regcache_arch to get at the current architecture by regcache.
1440 * sparc-tdep.c (sparc32_register_name): Add gdbarch parameter.
1441 * sparc64-tdep.c (sparc64_register_name): Add gdbarch parameter.
1442 * v850-tdep.c (v850_register_name, v850e_register_name): Add gdbarch
1444 (v850_unwind_sp, v850_unwind_pc): Replace current_gdbarch by gdbarch.
1445 * xtensa-tdep.c (xtensa_register_name): Add gdbarch parameter. Replace
1446 current_gdbarch by gdbarch.
1447 (xtensa_pseudo_register_read, xtensa_pseudo_register_write)
1448 (xtensa_frame_prev_register): Add gdbarch parameter to
1449 xtensa_register_name call.
1451 2007-10-31 Ulrich Weigand <uweigand@de.ibm.com>
1453 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Fall back to
1454 find_solib_trampoline_target if PC is not in .plt section.
1456 2007-10-31 Ulrich Weigand <uweigand@de.ibm.com>
1458 * elfread.c (elf_symtab_read): When constructing a solib trampoline
1459 minimal symbol from an undefined dynamic symbol, use proper section.
1461 2007-10-31 Markus Deuling <deuling@de.ibm.com>
1463 * arm-linux-nat.c (fetch_register, fetch_regs): Use get_regcache_arch
1464 to get at the current architecture by regcache.
1466 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1468 * libunwind-frame.c (libunwind_frame_sniffer)
1469 libunwind_frame_prev_register, libunwind_sigtramp_frame_sniffer)
1470 (libunwind_frame_cache): Use get_frame_arch to get at the current
1471 architecture by frame_info.
1472 (libunwind_get_reg_special): Replace current_gdbarch by gdbarch.
1474 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1476 * iq2000-tdep.c (iq2000_frame_prev_register): Use get_frame_arch to get
1477 at the current architecture by frame_info.
1479 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1481 * inf-child.c (inf_child_fetch_inferior_registers): Use
1482 get_regcache_arch to get at the current architecture by regcache.
1484 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1486 * inf-ptrace.c (inf_ptrace_fetch_registers)
1487 (inf_ptrace_fetch_register, inf_ptrace_store_register)
1488 (inf_ptrace_store_registers): Use get_regcache_arch to get at the
1489 current architecture by regcache.
1491 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1493 * hpux-thread.c (hpux_thread_fetch_registers)
1494 (hpux_thread_store_registers): Use get_regcache_arch to get at the
1495 current architecture by regcache.
1497 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1499 * hppa-tdep.c (hppa_frame_cache): Use get_frame_arch to get at the
1500 current architecture by frame_info.
1502 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1504 * go32-nat.c (fetch_register, go32_fetch_registers, store_register)
1505 (go32_store_registers): Use get_regcache_arch to get at the current
1506 architecture by regcache.
1508 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1510 * gdbtypes.c (gdbtypes_post_init): Replace current_gdbarch by gdbarch.
1512 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1514 * frv-linux-tdep.c (frv_linux_sigtramp_frame_cache): Use get_frame_arch
1515 to get at the current architecture by frame_info.
1517 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1519 * f-lang.c (build_fortran_types): Replace current_gdbarch by gdbarch.
1521 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1523 * core-regset.c (fetch_core_registers): Use get_regcache_arch to get at
1524 the current architecture by regcache.
1526 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1528 * corelow.c (get_core_registers): Use get_regcache_arch to get at the
1529 current architecture by regcache.
1531 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1533 * bsd-uthread.c (bsd_uthread_fetch_registers)
1534 (bsd_uthread_store_registers): Use get_regcache_arch to get at the
1535 current architecture by regcache.
1537 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1539 * avr-tdep.c (avr_frame_unwind_cache, avr_frame_prev_register): Use
1540 get_frame_arch to get at the current architecture by frame_info.
1542 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1544 * arm-tdep.c (arm_get_next_pc): Replace current_gdbarch by gdbarch.
1546 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1548 * armnbsd-nat.c (arm_supply_gregset, fetch_register, store_register)
1549 (store_regs): Use get_regcache_arch to get at the current architecture
1552 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1554 * arm-linux-tdep.c (arm_linux_supply_gregset): Use get_regcache_arch
1555 to get at the current architecture by regcache.
1557 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1559 * alphabsd-nat.c (alphabsd_fetch_inferior_registers)
1560 (alphabsd_store_inferior_registers): Use get_regcache_arch to get at
1561 the current architecture by regcache.
1563 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1565 * ada-lang.c (ada_language_arch_info): Replace current_gdbarch by
1568 2007-10-30 Daniel Jacobowitz <dan@codesourcery.com>
1570 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Check the selected
1571 soft float and vector ABIs. Support the generic vector ABI for
1573 (do_ppc_sysv_return_value): Likewise. Correct argument types and
1575 (ppc64_sysv_abi_push_dummy_call): Assert that floating point is
1577 * ppc-tdep.h (enum powerpc_vector_abi): New.
1578 (struct gdbarch_tdep): Add soft_float and vector_abi.
1579 * rs6000-tdep.c (setpowerpccmdlist, showpowerpccmdlist)
1580 (powerpc_soft_float_global, powerpc_vector_strings)
1581 (powerpc_vector_abi_global, powerpc_vector_abi_string): New.
1582 (rs6000_gdbarch_init): Check for soft-float and vector ABI markings.
1583 (set_powerpc_command, show_powerpc_command, powerpc_set_soft_float)
1584 (powerpc_set_vector_abi): New.
1585 (_initialize_rs6000_tdep): Register "set powerpc" and "show powerpc"
1587 * Makefile.in (elf_ppc_h): New.
1588 (rs6000-tdep.o): Update.
1590 2007-10-29 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
1592 * ppc-linux-tdep.c (ppc32_linux_reg_offsets): Corrected
1593 swapped offsets and VRSAVE offset.
1594 (ppc64_linux_reg_offsets): Corrected swapped offsets.
1595 (ppc32_linux_vrregset): Added.
1596 (ppc_linux_regset_from_core_section): Added support for
1597 .reg-ppc-vmx section.
1598 * ppc-tdep.h (ppc_altivec_support_p): Declare.
1599 (ppc_supply_vrregset): Declare.
1600 (ppc_collect_vrregset): Declare.
1601 * rs6000-tdep.c (ppc_altivec_support_p): Added.
1602 (ppc_supply_vrregset): Added.
1603 (ppc_collect_vrregset): Added.
1604 * corelow.c (get_core_registers): Added support for
1605 .reg-ppc-vmx section.
1607 2007-10-29 Joel Brobecker <brobecker@adacore.com>
1611 2007-10-26 Jim Blandy <jimb@codesourcery.com>
1613 * ax-gdb.h (expr_to_address_and_size): Delete declaration for
1616 * tracepoint.c (tracepoint_operation): Report the deletion event
1617 after we have unlinked the tracepoint from the list, and use the
1618 proper tracepoint number.
1620 * ax-gdb.c (expr_to_agent): Delete unused function.
1621 (expr_to_address_and_size): Delete #if 0'd function.
1622 * ax-gdb.h (expr_to_agent): Delete declaration.
1624 * ax-gdb.c (gen_cast): Remove redundant assignment to
1625 value->type. Doc fix.
1627 * ax-general.c (gen_traced_pop, gen_int_literal)
1628 (gen_usual_arithmetic): Check for typedefs.
1630 2007-10-26 Joel Brobecker <brobecker@adacore.com>
1632 * parse.c (prefixify_expression): Minor reformatting.
1634 2007-10-25 Daniel Jacobowitz <dan@codesourcery.com>
1636 * version.in: Use dot instead of dash.
1638 2007-10-25 Daniel Jacobowitz <dan@codesourcery.com>
1640 * linux-thread-db.c (check_for_thread_db): Only print if info_verbose.
1642 2007-10-25 Pedro Alves <pedro_alves@portugalmail.pt>
1644 * memory-map.c (parse_memory_map): Don't use an empty struct
1647 2007-10-25 Pedro Alves <pedro_alves@portugalmail.pt>
1649 * signals/signals.c (signals): Update pointer to enum
1650 target_signal declaration.
1652 2007-10-25 Wu Zhou <woodzltc@cn.ibm.com>
1653 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
1654 Jim Blandy <jimb@codesourcery.com>
1656 * dwarf2read.c (read_partial_die): check the value
1657 of DW_AT_calling_convention in Fortran programs.
1659 2007-10-25 Wu Zhou <woodzltc@cn.ibm.com>
1660 Thiago Jung Bauermann <bauerman@br.ibm.com>
1662 * c-exp.y (YYSTYPE): Add typed_val_decfloat for decimal
1663 floating point in YYSTYPE union.
1664 (DECFLOAT) Add token and expression element handling code.
1665 (parse_number): Parse DFP constants, which end with suffix 'df',
1666 'dd' or 'dl'. Return DECFLOAT.
1667 * eval.c (evaluate_subexp_standard): Call value_from_decfloat to
1669 * expression.h (enum exp_opcode): Add an opcode (OP_DECFLOAT)
1671 (union exp_element): Add decfloatconst to represent DFP
1672 elements, which is 16 bytes by default.
1673 * parse.c (write_exp_elt_decfloatcst): New function to write a
1674 decimal float const into the expression.
1675 (operator_length_standard): Set operator length for OP_DECFLOAT
1677 * parser-defs.h (write_exp_elt_decfloatcst): Prototype.
1678 * valarith.c (value_neg): Add code to handle the negation
1679 operation of DFP values.
1680 * value.c (value_from_decfloat): New function to get the value
1681 from a decimal floating point.
1682 * value.h (value_from_decfloat): Prototype.
1684 2007-10-25 Wu Zhou <woodzltc@cn.ibm.com>
1685 Thiago Jung Bauermann <bauerman@br.ibm.com>
1687 * c-lang.c (c_create_fundamental_type): Create fundamental
1689 * c-typeprint.c (c_type_print_varspec_prefix): Add
1690 TYPE_CODE_DECFLOAT to no prefix needed case.
1691 (c_type_print_varspec_suffix): Add TYPE_CODE_DECFLOAT to no
1693 * c-valprint.c (c_val_print): Call print_decimal_floating to
1695 * dwarf2read.c (read_base_type): Read DW_ATE_decimal_float
1696 attribute code and return TYPE_CODE_DECFLOAT.
1697 (dwarf_base_type): Set dwarf2_fundamental_type for DFP values.
1698 * gdbtypes.c (gdbtypes_post_init): Initialize builtin_decfloat,
1699 builtin_decdouble and builtin_declong.
1700 * gdbtypes.h (enum type_code): Add TYPE_CODE_DECFLOAT as a
1702 (FT_DECFLOAT, FT_DBL_PREC_DECFLOAT, FT_EXT_PREC_DECFLOAT): New
1703 types, for decimal floating point.
1704 (FT_NUM_MEMBERS): Increment, new types added.
1705 (struct builtin_type): Add builtin_decfloat, builtin_decdouble
1706 and builtin_declong.
1707 * valprint.c (print_decimal_floating): New function to print DFP
1709 * value.h (print_decimal_floating): Prototype.
1711 2007-10-25 Wu Zhou <woodzltc@cn.ibm.com>
1712 Thiago Jung Bauermann <bauerman@br.ibm.com>
1714 * Makefile.in (LIBDECNUMBER_DIR, LIBDECNUMBER, LIBDECNUMBER_SRC
1715 LIBDECNUMBER_CFLAGS): New macros for libdecnumber.
1716 (INTERNAL_CFLAGS_BASE): Add LIBDECNUMBER_CFLAGS in.
1717 (INSTALLED_LIBS): Add -ldecnumber in.
1718 (CLIBS): Add LIBDECNUMBER in.
1719 (decimal128_h, decimal64_h, decimal32_h): New macros for decimal
1721 (dfp_h): New macros for decimal floating point.
1722 (dfp.o): New target.
1723 (COMMON_OBS): Add dfp.o in.
1724 (c-exp.o): Add dfp_h as dependency.
1725 (valprint.o): Add dfp_h as dependency.
1726 (value.o): Add dfp_h as dependency.
1727 * dfp.h: New header file for decimal floating point support in
1729 * dfp.c: New source file for decimal floating point support in
1730 GDB. Implement decimal_from_string and decimal_to_string based
1731 on libdecnumber API.
1732 * configure.ac: Add AC_C_BIGENDIAN test.
1733 * config.in, configure: Regenerate.
1735 2007-10-25 David Ung <davidu@mips.com>
1736 Maciej W. Rozycki <macro@mips.com>
1739 * infcmd.c (registers_info): Check for a user register before
1740 calling target's gdbarch_print_registers_info(). If found to be
1741 so, extract the implicit value of user register and call
1742 print_scalar_formatted().
1743 * Makefile.in: (infcmd.o): Add $(user_regs_h).
1745 2007-10-25 Joel Brobecker <brobecker@adacore.com>
1747 * NEWS: Document status of hppa64-hpux support.
1749 2007-10-24 Ulrich Weigand <uweigand@de.ibm.com>
1751 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets): Call
1752 set_solib_ops to install SVR4 operations.
1753 (_initialize_svr4_solib): Do not set current_target_so_ops.
1755 * config/i386/i386gnu.mh (NATDEPFILES): Move solib.o, solib-svr4.o ...
1756 * config/i386/i386gnu.mt (TDEPFILES): ... to here.
1758 2007-10-24 Ulrich Weigand <uweigand@de.ibm.com>
1760 * solib-svr4.c (legacy_svr4_fetch_link_map_offsets_hook): Remove.
1761 (solib_svr4_init): Initialize fetch_link_map_offsets to NULL.
1762 * solib-svr4.h (legacy_svr4_fetch_link_map_offsets_hook): Remove.
1763 * solib-legacy.c: Remove file.
1765 * config/alpha/alpha-linux.mt (TDEPFILES): Remove solib-legacy.o.
1766 * config/arm/linux.mt (TDEPFILES): Likewise.
1767 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
1768 * config/ia64/linux.mt (TDEPFILES): Likewise.
1769 * config/m32r/linux.mt (TDEPFILES): Likewise.
1770 * config/powerpc/linux.mt (TDEPFILES): Likewise.
1771 * config/s390/s390.mt (TDEPFILES): Likewise.
1773 * alpha-linux-tdep.c (alpha_linux_init_abi): Call
1774 set_solib_svr4_fetch_link_map_offsets.
1775 * i386gnu-tdep.c (i386gnu_init_abi): Likewise.
1776 * ia64-linux-tdep.c (ia64_linux_init_abi): Likewise.
1778 * i386gnu-tdep.c: Include "solib-svr4.h".
1779 * Makefile.in: Update dependencies.
1781 2007-10-24 Ulrich Weigand <uweigand@de.ibm.com>
1783 * i386-nto-tdep.c: Include "solib.h".
1784 (i386nto_init_abi): Use set_solib_ops instead of overwriting
1785 current_target_so_ops members.
1786 * solist.h (TARGET_SO_RELOCATE_SECTION_ADDRESSES): Remove.
1787 (TARGET_SO_FIND_AND_OPEN_SOLIB): Remove.
1788 (TARGET_SO_IN_DYNSYM_RESOLVE_CODE): Remove.
1789 * Makefile.in: Update dependencies.
1791 2007-10-24 Ulrich Weigand <uweigand@de.ibm.com>
1793 * arm-wince-tdep.c: Include "solib.h" and "solib-target.h".
1794 (arm_wince_init_abi): Call set_solib_ops.
1795 * i386-cygwin-tdep.c: Include "solib.h" and "solib-target.h".
1796 (i386_cygwin_init_abi): Call set_solib_ops.
1797 * solib-target.c: Include "solib-target.h".
1798 (solib_target_so_ops): Make global.
1799 (_initialize_solib_target): Do not set current_target_so_ops.
1800 * solib-target.h: New file.
1801 * Makefile.in: Update dependencies.
1803 2007-10-24 Ulrich Weigand <uweigand@de.ibm.com>
1805 * mips-irix-tdep.c: Include "gdb_string.h", "solib.h", "solib-irix.h".
1806 (mips_irix_init_abi): Call set_solib_ops.
1807 * solib-irix.c: Include "solib.h" and "solib-irix.h".
1808 (irix_so_ops): Make global.
1809 (_initialize_irix_solib): Do not set current_target_so_ops.
1810 * solib-irix.h: New file.
1811 * Makefile.in: Update dependencies.
1813 2007-10-24 Ulrich Weigand <uweigand@de.ibm.com>
1815 * configure.tgt: Remove hppa*64*-*-hpux11* special case.
1816 * config/pa/hppa64.mt: Delete file.
1817 * config/pa/hppahpux.mt (MT_CFLAGS): Remove.
1818 (TDEPFILES): Move somread.o to ...
1819 * config/pa/hpux.mh (NATDEPFILES): ... here.
1821 * configure.ac: Add check for elf_hp.h header.
1822 Search libdl and libxpdl for dlgetmodinfo.
1823 * config.in, configure: Regenerate.
1824 * solib-pa64.c: Conditionalize compilation on #ifdef HAVE_ELF_HP_H
1825 instead of #ifndef PA_SOM_ONLY. Include "solib.h".
1826 (pa64_solib_select): Take gdbarch instead of tdep argument. Call
1827 set_solib_ops instead of modifying current_target_so_ops.
1828 * solib-pa64.h (pa64_solib_select): Update prototype.
1829 * solib-som.c: Remove include of "som.h". Include "solib.h".
1830 (som_solib_select): Take gdbarch instead of tdep argument. Call
1831 set_solib_ops instead of modifying current_target_so_ops.
1832 * solib-som.h (som_solib_select): Update prototype.
1833 * hppa-hpux-tdep.c (hppa_hpux_som_init_abi): Pass gdbarch instead
1834 of tdep to som_solib_select call.
1835 (hppa_hpux_elf_init_abi): Pass gdbarch instead of tdep to
1836 pa64_solib_select call.
1837 * Makefile.in: Update dependencies.
1839 2007-10-24 Ulrich Weigand <uweigand@de.ibm.com>
1841 * frv-tdep.c: Include "solib.h".
1842 (frv_gdbarch_init): Call set_solib_ops.
1843 * frv-tdep.h (struct target_so_ops): Add forward reference.
1844 (frv_so_ops): Add extern declaration.
1845 * solib-frv.c (frv_so_ops): Make global.
1846 (_initialize_frv_solib): Do not set current_target_so_ops.
1847 * Makefile.in: Update dependencies.
1849 2007-10-24 Ulrich Weigand <uweigand@de.ibm.com>
1851 * solib.c (solib_global_lookup): Use solib_ops instead of global
1852 current_target_so_ops.
1854 2007-10-24 Ulrich Weigand <uweigand@de.ibm.com>
1856 * config/frv/frv.mt (DEPRECATED_TM_FILE): Remove.
1857 * config/frv-tm-frv.h: Delete file.
1859 2007-10-24 Daniel Jacobowitz <dan@codesourcery.com>
1861 * NEWS: Mention gdbserver support for non-libthread_db operation.
1863 2007-10-24 Daniel Jacobowitz <dan@codesourcery.com>
1865 * amd64-tdep.c (amd64_convert_register_p): Delete.
1866 (amd64_init_abi): Use i387_convert_register_p.
1867 * alpha-tdep.c (alpha_convert_register_p): Return zero for
1869 (alpha_register_to_value, alpha_value_to_register): Do not handle
1871 * i386-tdep.c (i386_convert_register_p): Use i387_convert_register_p.
1872 * i387-tdep.c (i387_convert_register_p): New.
1873 (i387_register_to_value, i387_value_to_register): Update comments.
1874 * i387-tdep.h (i387_convert_register_p): Declare.
1875 * ia64-tdep.c (ia64_convert_register_p): Return zero for
1876 builtin_type_ia64_ext.
1877 (ia64_gdbarch_init): Do not initialize builtin_type_ia64_ext here.
1878 (_initialize_ia64_tdep): Initialize builtin_type_ia64_ext here.
1879 * m68k-tdep.c (m68k_convert_register_p): Return zero for
1880 builtin_type_m68881_ext.
1881 (m68k_register_to_value, m68k_value_to_register): Update comments.
1883 2007-10-24 Nathan Sidwell <nathan@codesourcery.com>
1885 * target-memory.c (claim_memory): Propagate baton for split memory
1888 2007-10-24 Pedro Alves <pedro_alves@portugalmail.pt>
1891 * sol-thread.c (sol_thread_fetch_registers): Work around gcc 3.4
1894 2007-10-24 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
1896 * symtab.c (find_line_symtab): scan through psymtabs
1897 when exact_match is zero.
1899 2007-10-23 Atsushi Nemoto <anemo@mba.ocn.ne.jp>
1901 * mips-tdep.c (LL_OPCODE, LLD_OPCODE, SC_OPCODE, SCD_OPCODE): Define.
1902 (deal_with_atomic_sequence): New.
1903 (mips_software_single_step): Use it.
1905 2007-10-23 Daniel Jacobowitz <dan@codesourcery.com>
1908 * configure.ac: Modify $LIBINTL before the BFD check.
1909 * configure: Regenerated.
1911 2007-10-23 Joel Brobecker <brobecker@adacore.com>
1913 * buildsym.c (free_pending_blocks): Remove commented-out code.
1914 (make_blockvector): Likewise. Re-use free_pending_blocks.
1915 (end_symtab): Remove commented-out code.
1917 2007-10-22 Daniel Jacobowitz <dan@codesourcery.com>
1919 * top.c (command_loop): Fix output for shrinkage.
1921 2007-10-22 Daniel Jacobowitz <dan@codesourcery.com>
1923 * cp-name-parser.y (exp1): Add & ( var ) as a reference expression.
1924 (exp): Remove and document function-like casts.
1926 2007-10-22 Daniel Jacobowitz <dan@codesourcery.com>
1928 * cp-support.c: Include "safe-ctype.h".
1929 (cp_already_canonical): New function.
1930 (cp_canonicalize_string): Use it. Return NULL for already canonical
1932 (mangled_name_to_comp): Update call to cp_demangled_name_to_comp.
1933 (cp_func_name, remove_params): Likewise.
1934 (cp_find_first_component_aux): Use ISSPACE.
1935 * cp-support.h (cp_demangled_name_to_comp): Correct comment. Remove
1937 * cp-name-parser.y (ALLOC_CHUNK): Define.
1938 (struct demangle_info): Add PREV and NEXT. Increase the size of
1940 (d_grab): Convert to a function.
1941 (allocate_info): Rewrite.
1942 (cp_demangled_name_to_comp): Remove MEMORY argument. Do not use
1943 strlen. Update call to allocate_info. Do not free it on failure.
1944 (main): Update calls to cp_demangled_name_to_comp.
1945 * Makefile.in (cp-support.o): Update.
1947 2007-10-22 Markus Deuling <deuling@de.ibm.com>
1949 * std-regs.c (value_of_builtin_frame_fp_reg)
1950 value_of_builtin_frame_pc_reg, value_of_builtin_frame_sp_reg)
1951 value_of_builtin_frame_ps_reg): Use get_frame_arch to get at the
1952 current architecture by frame_info.
1954 2007-10-22 Markus Deuling <deuling@de.ibm.com>
1956 * reggroups.c (default_register_reggroup_p): Replace current_gdbarch
1959 2007-10-22 Markus Deuling <deuling@de.ibm.com>
1961 * infcmd.c (default_print_registers_info, print_return_value)
1962 (print_vector_info, print_float_info): Replace current_gdbarch by
1964 (registers_info): Use get_frame_arch to get at the current
1965 architecture by frame_info.
1967 2007-10-22 Markus Deuling <deuling@de.ibm.com>
1969 * i387-tdep.c (i387_collect_fsave, i387_collect_fxsave): Use
1970 get_regcache_arch to get at the current architecture by regcache.
1972 2007-10-22 Markus Deuling <deuling@de.ibm.com>
1974 * target.c (debug_print_register): Use get_regcache_arch to get at the
1975 current architecture by regcache.
1977 2007-10-21 Daniel Jacobowitz <dan@codesourcery.com>
1979 * dwarf2read.c (read_file_scope): Add a comment.
1980 (dwarf2_add_field, dwarf2_add_member_fn, read_structure_type)
1981 (read_enumeration_type, process_enumeration_scope, read_array_type)
1982 (read_typedef, read_base_type, read_subrange_type)
1983 (read_unspecified_type): Use dwarf2_name.
1985 2007-10-21 Daniel Jacobowitz <dan@codesourcery.com>
1987 * coffread.c (coff_symfile_finish): Call dwarf2_free_objfile.
1988 * dwarf2read.c (dwarf2_free_objfile): New.
1989 * elfread.c (elf_symfile_finish): Call dwarf2_free_objfile.
1990 * symfile.h (dwarf2_free_objfile): Declare.
1992 2007-10-21 Joel Brobecker <brobecker@adacore.com>
1994 * hppa-hpux-nat.c (hppa_hpux_store_register): Add missing semi-colon.
1996 2007-10-21 Luis Machado <luisgpm@br.ibm.com>
1998 * rs6000-tdep.c (ppc_dwarf2_frame_init_reg): New function.
1999 * (rs6000_gdbarch_init): Install ppc_dwarf2_frame_init_reg as
2000 default dwarf2_frame_set_init_reg function.
2002 2007-10-21 Pedro Alves <pedro_alves@portugalmail.pt>
2004 * NEWS: Mention native MinGW configuration.
2006 2007-10-19 Ulrich Weigand <uweigand@de.ibm.com>
2008 * gdbarch.sh: Remove "macro" column of input table. Remove handling
2009 of "macro" column throughout the file. Remove (empty) "macro" entry
2010 of all gdbarch functions.
2012 2007-10-19 Ulrich Weigand <uweigand@de.ibm.com>
2014 * gdbarch.sh (sofun_address_maybe_missing): New gdbarch variable.
2015 * gdbarch.c, gdbarch.h: Regenerate.
2016 * dbxread.c (find_stab_function_addr): Define unconditionally.
2017 (read_dbx_symtab): Use gdbarch_sofun_address_maybe_missing
2018 instead of SOFUN_ADDRESS_MAYBE_MISSING.
2019 (end_psymtab): Likewise.
2020 (process_one_symbol): Likewise.
2021 * mdebugread.c (parse_partial_symbols): Likewise.
2023 * symtab.h (struct minimal_symbol): Always define "filename" member.
2024 * elfread.c (elf_symtab_read): Use msym->filename unconditionally.
2025 * minsyms.c (lookup_minimal_symbol): Likewise.
2026 * symmisc.c (dump_msymbols): Likewise.
2028 * config/i386/i386sol2.mt (DEPRECATED_TM_FILE): Remove.
2029 * config/i386/linux.mt (DEPRECATED_TM_FILE): Remove.
2030 * config/i386/tm-i386sol2.h: Remove file.
2031 * config/i386/tm-linux.h: Remove file.
2032 * i386-linux-tdep.c (i386_linux_init_abi): Add call to
2033 set_gdbarch_sofun_address_maybe_missing.
2034 * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
2036 * config/powerpc/linux.mt (DEPRECATED_TM_FILE): Remove.
2037 * config/powerpc/nbsd.mt (DEPRECATED_TM_FILE): Remove.
2038 * config/powerpc/obsd.mt (DEPRECATED_TM_FILE): Remove.
2039 * config/powerpc/ppc-eabi.mt (DEPRECATED_TM_FILE): Remove.
2040 * config/powerpc/ppc-sim.mt (DEPRECATED_TM_FILE): Remove.
2041 * config/powerpc/tm-ppc-eabi.h: Remove file.
2042 * rs6000-tdep.c (rs6000_gdbarch_init): Add call to
2043 set_gdbarch_sofun_address_maybe_missing.
2045 * config/sparc/sol2-64.mt (DEPRECATED_TM_FILE): Remove.
2046 * config/sparc/sol2.mt (DEPRECATED_TM_FILE): Remove.
2047 * config/sparc/tm-sol2.h: Remove file.
2048 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Add call to
2049 set_gdbarch_sofun_address_maybe_missing.
2050 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Likewise.
2052 2007-10-19 Ulrich Weigand <uweigand@de.ibm.com>
2054 * gdbarch.sh (static_transform_name): New gdbarch callback.
2055 * gdbarch.c, gdbarch.h: Regenerate.
2056 * dbxread.c (read_dbx_symtab): Use gdbarch_static_transform_name
2057 instead of STATIC_TRANSFORM_NAME.
2058 * mdebugread.c (parse_partial_symbols): Likewise.
2059 * stabsread.c (define_symbol): Likewise.
2060 * xcoffread.c (scan_xcoff_symtab): Likewise.
2062 * config/i368/tm-i386sol2.h (STATIC_TRANSFORM_NAME): Remove.
2063 (IS_STATIC_TRANSFORM_NAME): Remove.
2064 * i386-tdep.c (sunpro_static_transform_name): Remove, move to ...
2065 * i386-sol2-tdep.c (i386_sol2_static_transform_name): ... here.
2066 (i386_sol2_init_abi): Install it.
2068 * config/sparc/tm-sol2.h (STATIC_TRANSFORM_NAME): Remove.
2069 (IS_STATIC_TRANSFORM_NAME): Remove.
2070 * sparc-tdep.c (sparc_stabs_unglobalize_name): Remove, move to ...
2071 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): ... here.
2072 (sparc32_sol2_init_abi): Install it.
2073 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Likewise.
2074 * sparc-tdep.h (sparc_sol2_static_transform_name): Add prototype.
2076 2007-10-18 Daniel Jacobowitz <dan@codesourcery.com>
2078 * mips-tdep.c (mips_xfer_register): Take a gdbarch argument.
2079 (mips_n32n64_return_value, mips_o32_return_value)
2080 (mips_o64_return_value): Update calls to mips_xfer_register.
2082 2007-10-17 Daniel Jacobowitz <dan@codesourcery.com>
2084 * frame.c (frame_unwind_unsigned_register): Delete.
2085 (frame_sp_unwind): Use frame_unwind_register_unsigned instead.
2086 * frame.h (frame_unwind_unsigned_register): Delete prototype.
2088 * alpha-linux-tdep.c, alpha-mdebug-tdep.c, alpha-tdep.c,
2089 avr-tdep.c, cris-tdep.c, frv-tdep.c, m68hc11-tdep.c, mn10300-tdep.c,
2090 mt-tdep.c: Replace frame_unwind_unsigned_register with
2091 frame_unwind_register_unsigned.
2093 2007-10-16 Pedro Alves <pedro_alves@portugalmail.pt>
2095 * config/i386/mingw.mh, config/i386/mingw.mt: New files.
2096 * configure.tgt (i[34567]86-*-mingw32*): Set gdb_target = mingw.
2097 * win32-nat.c: Only include cygwin.h on Cygwin host. Don't
2099 (cygwin_load_start, cygwin_load_end, cygwin_exceptions): Disable
2100 if not building on Cygwin.
2101 (win32_make_so, handle_output_debug_string, handle_exception)
2102 (do_initial_win32_stuff): Wrap Cygwin specific code in __CYGWIN__.
2103 (win32_attach): Only fallback to Cygwin pids if building on
2105 (win32_pid_to_exec_file): Disable Cygwin specific code, if not
2107 (win32_create_inferior): Disable starting the inferior through a
2108 shell, environment var processing and tty handling if not building
2110 (cygwin_pid_to_str): Rename to ...
2111 (win32_pid_to_str): ... this.
2112 (init_win32_ops): Update use of win32_pid_to_str. Disable "shell"
2113 and "cygwin-exceptions" commands if not building on Cygwin.
2115 2007-10-16 Gaius Mulley <gaius@glam.ac.uk>
2117 * doc/gdb.texinfo: Add TSIZE definition, removed
2118 statement about unbounded arrays being unimplemented.
2119 * m2-valprint.c (m2_print_array_contents): New function.
2120 (m2_print_unbounded_array): New function.
2121 (m2_print_array_contents): New function.
2122 * m2-typeprint.c (m2_unbounded_array): New function.
2123 (m2_is_unbounded_array): New function.
2124 (m2_print_type): Test for unbounded array when walking
2126 * m2-lang.h: Added extern m2_is_unbounded_array.
2127 * m2-lang.c (evaluate_subexp_modula2): New function.
2128 (exp_descriptor_modula2): New structure.
2129 (m2_language_defn): Use exp_descriptor_modula2.
2130 * m2-exp.y: Added TSIZE and binary subscript.
2132 2007-10-16 Daniel Jacobowitz <dan@codesourcery.com>
2134 * mi/mi-main.c (captured_mi_execute_command): Clear mi_error_message
2137 2007-10-16 Kevin Buettner <kevinb@redhat.com>
2139 * m32r-tdep.c (decode_prologue): Sign extend offset for
2141 (m32r_frame_unwind_cache): Likewise.
2143 2007-10-15 Thiago Jung Bauermann <bauerman@br.ibm.com>
2145 * rs6000-tdep.c (skip_prologue): Restore comment with
2146 function description to its proper place.
2148 2007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
2150 * NEWS: Mention gdbserver PowerPC improvements.
2152 2007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
2154 * features/Makefile (WHICH): Add PowerPC register definitions.
2155 (rs6000/powerpc-32-expedite, rs6000/powerpc-e500-expedite)
2156 (rs6000/powerpc-64-expedite): New macros.
2157 ($(outdir)/%.dat): Handle subdirectories.
2158 * regformats/rs6000/powerpc-32.dat, regformats/rs6000/powerpc-64.dat,
2159 regformats/rs6000/powerpc-e500.dat: New generated files.
2161 2007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
2163 * ppc-linux-nat.c (ppc_linux_read_description): New.
2164 (_initialize_ppc_linux_nat): Set to_read_description.
2165 * ppc-tdep.h (tdesc_powerpc_e500): Declare.
2167 2007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
2169 * NEWS: Document target described register support for PowerPC.
2170 * ppc-tdep.h: Remove ppc_spr constants.
2171 (struct gdbarch_tdep): Remove regs, ppc_sr0_regnum, and
2172 ppc_builtin_type_vec128 members.
2173 (PPC_R0_REGNUM, PPC_F0_REGNUM, PPC_PC_REGNUM, PPC_MSR_REGNUM)
2174 (PPC_CR_REGNUM, PPC_LR_REGNUM, PPC_CTR_REGNUM, PPC_XER_REGNUM)
2175 (PPC_FPSCR_REGNUM, PPC_MQ_REGNUM, PPC_SPE_UPPER_GP0_REGNUM)
2176 (PPC_SPE_ACC_REGNUM, PPC_SPE_FSCR_REGNUM, PPC_VR0_REGNUM)
2177 (PPC_VSCR_REGNUM, PPC_VRSAVE_REGNUM, PPC_NUM_REGS): New constants.
2178 * rs6000-tdep.c: Include preparsed descriptions.
2179 (init_sim_regno_table): Do not iterate over pseudo registers.
2180 Look up segment registers by name. Use sim_spr_register_name
2182 (rs6000_register_sim_regno): Call init_sim_regno_table here.
2183 (rs6000_builtin_type_vec128): Delete.
2184 (rs6000_register_name): Only handle SPE pseudo registers and upper
2185 halves. Call tdesc_register_name for everything else.
2186 (rs6000_register_type): Delete. Replace with...
2187 (rs6000_pseudo_register_type): ...this new function. Only handle
2188 SPE pseudo registers.
2189 (rs6000_register_reggroup_p): Delete. Replace with...
2190 (rs6000_pseudo_register_reggroup_p): ...this new function. Only
2191 handle SPE pseudo registers.
2192 (rs6000_convert_register_p): Use ppc_fp0_regnum instead of
2194 (rs6000_register_to_value, rs6000_value_to_register): Remove check
2196 (e500_register_reggroup_p): Delete.
2197 (STR, R, R4, R8, R16, F, P8, R32, R64, R0, A4, S, S4, SN4, S64)
2198 (COMMON_UISA_REGS, PPC_UISA_SPRS, PPC_UISA_NOFP_SPRS)
2199 (PPC_SEGMENT_REGS, PPC_OEA_SPRS, PPC_ALTIVEC_REGS, PPC_SPE_GP_REGS)
2200 (PPC_SPE_UPPER_GP_REGS, PPC_EV_PSEUDO_REGS): Delete macros.
2201 (registers_powerpc, registers_403, registers_403GC, registers_505)
2202 (registers_860, registers_601, registers_602, registers_603)
2203 (registers_604, registers_750, registers_7400, registers_e500): Delete
2205 (struct variant): Delete nregs, npregs, num_tot_regs, and regs. Add
2207 (tot_num_registers, num_registers, num_pseudo_registers): Delete.
2208 (variants): Delete outdated comment. Use standard target descriptions
2209 instead of "struct reg" arrays.
2210 (init_variants): Delete.
2211 (rs6000_gdbarch_init): Do not guess word size from the BFD
2212 architecture if we have a target description. Select a variant
2213 before creating a new architecture. Use the variant's target
2214 description if the target did not define a register layout.
2215 Validate target-supplied registers. Reject mismatches. Use
2216 fixed register numbers and new constants instead of magic
2217 numbers. Call set_gdbarch_ps_regnum. Call tdesc_use_registers.
2218 (_initialize_rs6000_tdep): Initialize the preparsed target
2220 * target-descriptions.c (tdesc_predefined_types): Add int128 and
2222 (tdesc_find_register_early): New function.
2223 (tdesc_numbered_register): Use it.
2224 (tdesc_register_size): New function.
2225 (tdesc_use_registers): Take a target_desc argument. Do not use
2226 gdbarch_target_desc.
2227 * target-descriptions.h (tdesc_use_registers): Update prototype
2229 (tdesc_register_size): New prototype.
2230 * Makefile.in (powerpc_32_c, powerpc_403_c, powerpc_403gc_c)
2231 (powerpc_505_c, powerpc_601_c, powerpc_602_c, powerpc_603_c)
2232 (powerpc_604_c, powerpc_64_c, powerpc_7400_c, powerpc_750_c)
2233 (powerpc_860_c, powerpc_e500_c, rs6000_c): New macros.
2234 (rs6000-tdep.o): Update.
2235 * arm-tdep.c (arm_gdbarch_init): Update call to tdesc_use_registers.
2236 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
2237 * mips-tdep.c (mips_gdbarch_init): Likewise.
2239 2007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
2241 * features/rs6000/powerpc-32.c, features/rs6000/powerpc-403.c,
2242 features/rs6000/powerpc-403gc.c, features/rs6000/powerpc-505.c,
2243 features/rs6000/powerpc-601.c, features/rs6000/powerpc-602.c,
2244 features/rs6000/powerpc-603.c, features/rs6000/powerpc-604.c,
2245 features/rs6000/powerpc-64.c, features/rs6000/powerpc-7400.c,
2246 features/rs6000/powerpc-750.c, features/rs6000/powerpc-860.c,
2247 features/rs6000/powerpc-e500.c, features/rs6000/rs6000.c: New
2250 2007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
2252 * features/rs6000/power-altivec.xml, features/rs6000/power-core.xml,
2253 features/rs6000/power-fpu.xml, features/rs6000/power-oea.xml,
2254 features/rs6000/power-spe.xml, features/rs6000/power64-core.xml: New
2255 feature descriptions for standard PowerPC register sets.
2257 * features/rs6000/powerpc-32.xml, features/rs6000/powerpc-403.xml,
2258 features/rs6000/powerpc-403gc.xml, features/rs6000/powerpc-505.xml,
2259 features/rs6000/powerpc-601.xml, features/rs6000/powerpc-602.xml,
2260 features/rs6000/powerpc-603.xml, features/rs6000/powerpc-604.xml,
2261 features/rs6000/powerpc-64.xml, features/rs6000/powerpc-7400.xml,
2262 features/rs6000/powerpc-750.xml, features/rs6000/powerpc-860.xml,
2263 features/rs6000/powerpc-e500.xml, features/rs6000/rs6000.xml: New
2264 target descriptions for PowerPC processors.
2266 2007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
2268 * target-descriptions.c (tdesc_predefined_types): New.
2269 (tdesc_named_type): Use it.
2270 (tdesc_type_id, maint_print_c_tdesc_cmd): New functions.
2271 (_intialize_target_descriptions): Register "maint print c-tdesc".
2272 * features/Makefile (XMLTOC, CFILES, GDB): New macros.
2273 (cfiles, %.c): New rules.
2274 * features/arm-with-iwmmxt.c, features/mips-linux.c,
2275 features/mips64-linux.c: New generated files.
2277 * arm-linux-nat.c: Include preparsed description instead of
2279 (super_xfer_partial, arm_linux_xfer_partial): Remove.
2280 (arm_linux_read_description): New function.
2281 (_initialize_arm_linux_nat): Set to_read_description instead of
2282 to_xfer_partial. Initialize preparsed description.
2283 * config/arm/linux.mh (TDEP_XML): Delete.
2284 * mips-linux-nat.c: Include preparsed descriptions instead of
2286 (super_xfer_partial, mips_linux_xfer_partial): Remove.
2287 (mips_linux_read_description): New function.
2288 (_initialize_mips_linux_nat): Set to_read_description instead of
2289 to_xfer_partial. Initialize preparsed description.
2290 * config/mips/linux.mh (TDEP_XML): Delete.
2291 * Makefile.in (XMLFILES): Remove $(TDEP_XML).
2292 (features_headers, arm_with_iwmmxt_c, mips_linux_c)
2293 (mips64_linux_c): New macros.
2294 (arm-linux-nat.o, mips-linux-nat.o): Update.
2296 2007-10-15 Pierre Muller <muller@ics.u-strasbg.fr>
2298 * cp-abi.c (set_cp_abi_as_auto_default): ARI fix:
2299 Replace xasprintf by xstrprintf.
2300 symfile-mem.c (add_vsyscall_page): Ditto.
2302 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
2304 * ia64-linux-nat.c (ia64_register_addr): Add gdbarch parameter,
2305 replacing use of global current_gdbarch.
2306 (ia64_cannot_fetch_register, ia64_cannot_store_register): Likewise.
2307 (ia64_linux_fetch_register, ia64_linux_store_register): Update callers.
2309 * ia64-tdep.c (SIGCONTEXT_REGISTER_ADDRESS): Remove macro.
2310 (ia64_sigtramp_frame_init_saved_regs): Add next_frame parameter,
2311 replace uses of SIGCONTEXT_REGISTER_ADDRESS.
2312 (ia64_sigtramp_frame_cache): Update caller.
2314 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
2316 * gdbarch.sh (deprecated_use_struct_convention): Remove.
2317 (extract_return_value, store_return_value): Remove.
2318 (return_value): Remove default implementation.
2319 * gdbarch.c, gdbarch.h: Regenerate.
2321 * stack.c (return_command): Remove compatibility hack.
2322 * arch-utils.c (legacy_return_value): Remove.
2323 * arch-utils.h (legacy_return_value): Likewise.
2325 * arch-utils.c (always_use_struct_convention): Remove.
2326 * arch-utils.h (always_use_struct_convention): Likewise.
2327 * value.c (generic_use_struct_convention): Remove.
2328 * defs.h (generic_use_struct_convention): Likewise.
2330 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
2332 * avr-tdep.c (avr_return_value): New function.
2333 (avr_gdbarch_init): Call set_gdbarch_return_value instead of
2334 set_gdbarch_extract_return_value.
2336 * fvr-tdep.c (frv_return_value): New function.
2337 (frv_gdbarch_init): Call set_gdbarch_return_value instead of
2338 set_gdbarch_extract_return_value, set_gdbarch_store_return_value,
2339 and set_gdbarch_deprecated_use_struct_convention.
2341 * ia64-tdep.c (ia64_use_struct_convention): Make static.
2342 Add check for structure, union, or array types.
2343 (ia64_extract_return_value): Make static.
2344 (ia64_store_return_value): Make static. Support multi-word values.
2345 (ia64_return_value): New function.
2346 (ia64_gdbarch_init): Call set_gdbarch_return_value instead of
2347 set_gdbarch_extract_return_value, set_gdbarch_store_return_value,
2348 and set_gdbarch_deprecated_use_struct_convention.
2350 2007-10-12 Joel Brobecker <brobecker@adacore.com>
2352 * solib-target.c (solib_target_parse_libraries)
2353 [HAVEHAVE_LIBEXPAT not defined]: Fix thinko in return type.
2355 2007-10-12 Jim Blandy <jimb@codesourcery.com>
2357 * serial.h (struct serial_ops): Document read_prim to return zero
2359 * ser-base.c (do_ser_base_readchar): Return SERIAL_EOF when
2360 read_prim returns zero, not SERIAL_TIMEOUT.
2362 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
2364 * alpha-mdebug-tdep.c: Include "gdb_string.h".
2365 (find_proc_desc): Add fix-up code for setjmp procedure descriptor.
2366 * mdebugread.c (parse_procedure): Remove setjmp fix-up code.
2367 * Makefile.in (alpha-mdebug-tdep.o): Update dependencies.
2369 * config/alpha/alpha.mt (DEPRECATED_TM_FILE): Remove.
2370 * config/alpha/alpha-linux.mt (DEPRECATED_TM_FILE): Remove.
2371 * config/alpha/alpha-osf1.mt (DEPRECATED_TM_FILE): Remove.
2372 * config/alpha/fbsd.mt (DEPRECATED_TM_FILE): Remove.
2373 * config/alpha/tm-alpha.h: Remove file.
2375 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
2377 * breakpoint.c (breakpoint_sals_to_pc): Do not check for
2378 DEPRECATED_PC_REQUIRES_RUN_BEFORE_USE.
2380 * config/pa/tm-hppa.h: Delete file.
2381 * config/pa/hppa64.mt: Do not set DEPRECATED_TM_FILE.
2382 * config/pa/hppahpux.mt: Likewise.
2383 * config/pa/hppa.mt: Likewise.
2384 * config/pa/linux.mt: Likewise.
2385 * hppa-tdep.c (hppa_pc_requires_run_before_use): Delete.
2387 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
2389 * config/arm/nm-nbsdaout.h: Remove file.
2390 * config/nm-nbsdaout.h: Likewise.
2391 * config/nm-nbsd.h: Likewise.
2393 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
2395 * block.h (struct block): Remove "gcc_compile_flag" member.
2396 (BLOCK_GCC_COMPILED): Remove.
2397 * block.c (allocate_block): Do not clear BLOCK_GCC_COMPILED.
2398 * buildsym.c (finish_block): Do not set it.
2399 * symmisc.c (dump_symtab_1): Do not dump it.
2401 * value.h (using_struct_return): Remove "gcc_p" argument.
2402 * value.c (using_struct_return): Likewise.
2403 * eval.c (evaluate_subexp_standard): Adapt callers.
2404 * infcall.c (call_function_by_hand): Likewise.
2405 * stack.c (return_command): Likewise.
2406 * sparc-tdep.c (sparc32_push_dummy_code): Likewise.
2408 * gdbarch.sh (push_dummy_code): Remove "using_gcc" parameter.
2409 * gdbarch.c, gdbarch.h: Regenerate.
2410 * cris-tdep.c (cris_push_dummy_code): Adapt prototype.
2411 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Likewise.
2412 * sparc-tdep.c (sparc32_push_dummy_code): Likewise.
2413 * infcall.c (generic_push_dummy_code, push_dummy_code): Likewise.
2414 (push_dummy_code, call_function_by_hand): Adapt callers.
2416 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
2418 * infcmd.c (print_return_value): Remove STRUCT_RETURN argument.
2419 (finish_command_continuation, finish_command): Adapt callers.
2421 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
2423 * infcall.c (call_function_by_hand): Remove special handling
2424 for HP aCC compiled code.
2426 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
2428 * cris-tdep.c (cris_push_dummy_call): Support arguments passed by
2429 reference. Fix endianness bugs.
2430 (cris_reg_struct_has_address): Remove.
2431 (cris_gdbarch_init): Remove set_gdbarch_deprecated_reg_struct_has_addr
2432 and set_gdbarch_deprecated_use_struct_convention calls.
2434 * gdbarch.sh (deprecated_reg_struct_has_addr): Remove.
2435 * gdbarch.c, gdbarch.h: Regenerate.
2436 * infcall.c (call_function_by_hand): Remove handling of
2437 deprecated_reg_struct_has_addr.
2439 2007-10-11 Daniel Jacobowitz <dan@codesourcery.com>
2440 Kazu Hirata <kazu@codesourcery.com>
2442 * breakpoint.c (do_enable_breakpoint): Delay enabling until after
2443 checking watchpoint resources.
2445 2007-10-11 Kazu Hirata <kazu@codesourcery.com>
2447 * memattr.c (inaccessible_by_default): Change the initial
2450 2007-10-11 Daniel Jacobowitz <dan@codesourcery.com>
2453 * coffread.c (read_one_sym): Check for read errors.
2455 2007-10-11 Ulrich Weigand <uweigand@de.ibm.com>
2457 * linux-nat.c (lin_lwp_attach_lwp): Use "Linux kernel 2.6.19"
2458 instead of "Linux 2.6.19" in comment.
2459 (linux_xfer_partial): Use "GNU/Linux target" instead of
2460 "Linux target" in comment.
2461 * m68klinux-tdep.c (m68k_linux_inferior_created): Likewise.
2462 (m68k_linux_get_sigtramp_info): Likewise.
2464 2007-10-11 Daniel Jacobowitz <dan@codesourcery.com>
2466 * MAINTAINERS (language support): List Joel and Paul as
2469 2007-10-11 Daniel Jacobowitz <dan@codesourcery.com>
2471 * dbxread.c (process_one_symbol): Remove VARIABLES_INSIDE_BLOCK
2473 * config/arm/embed.mt, config/arm/linux.mt, config/arm/wince.mt: Do
2474 not set DEPRECATED_TM_FILE.
2475 * config/arm/tm-arm.h: Delete file.
2477 2007-10-11 Luis Machado <luisgpm@br.ibm.com>
2479 * MAINTAINERS (Write After Approval): Add self.
2481 2007-10-11 Daniel Jacobowitz <dan@codesourcery.com>
2483 * buildsym.c (record_line): Remove empty lines followed by
2484 end-of-sequence markers.
2486 2007-10-11 Kazu Hirata <kazu@codesourcery.com>
2488 * configure.tgt: Recognize fido-*-elf.
2490 2007-10-10 Joel Brobecker <brobecker@adacore.com>
2494 2007-10-10 Markus Deuling <deuling@de.ibm.com>
2496 * stack.c (print_frame_args, frame_info, return_command): Use
2497 get_regcache_arch or get_frame_arch to get at the current architecture
2498 by regcache or by frame, respectively.
2500 2007-10-10 Markus Deuling <deuling@de.ibm.com>
2502 * rs6000-nat.c (fetch_register, store_register)
2503 (rs6000_fetch_inferior_registers, rs6000_store_inferior_registers): Use
2504 get_regcache_arch to get at the current architecture by regcache.
2506 * rs6000-tdep.c (rs6000_push_dummy_call, rs6000_return_value)
2507 (rs6000_register_reggroup_p, e500_move_ev_registe, rs6000_unwind_pc)
2508 (rs6000_unwind_dummy_id, rs6000_frame_cache, rs6000_dump_tdep): Replace
2509 current_gdbarch by gdbarch.
2510 (rs6000_skip_trampoline_code, rs6000_register_to_value)
2511 (rs6000_value_to_register): Use get_frame_arch to get at the current
2512 architecture by frame_info.
2514 2007-10-10 Markus Deuling <deuling@de.ibm.com>
2516 * sparc-tdep.c (sparc_supply_rwindow, sparc_collect_rwindow): Use
2517 get_regcache_arch to get at the current architecture by regcache.
2519 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
2520 (sparc64_supply_fpregset, sparc64_collect_fpregset): Use
2521 get_regcache_arch to get at the current architecture by regcache.
2523 * sparc64nbsd-nat. (sparc64nbsd_supply_gregset)
2524 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
2525 (sparc64nbsd_collect_fpregset): Use get_regcache_arch to get at the
2526 current architecture by regcache.
2528 2007-10-10 Markus Deuling <deuling@de.ibm.com>
2530 * remote-mips.c (mips_wait, mips_fetch_registers)
2531 (mips_store_registers): Use get_regcache_arch to get at the
2532 current architecture by regcache.
2534 * mipsnbsd-tdep.c (mipsnbsd_supply_reg, mipsnbsd_fill_reg)
2535 (mipsnbsd_supply_fpreg, mipsnbsd_fill_fpreg): Use get_regcache_arch to
2536 get at the current architecture by regcache.
2537 (mipsnbsd_sigtramp_offset): Use get_frame_arch to get at the current
2538 architecture by frame_info.
2540 * mipsnbsd-nat.c (mipsnbsd_fetch_inferior_registers)
2541 (mipsnbsd_store_inferior_registers): Use get_regcache_arch to get at
2542 the current architecture by regcache.
2544 * mips-linux-tdep.c (mips_linux_get_longjmp_target)
2545 (mips64_linux_get_longjmp_target, mips_linux_o32_sigframe_init)
2546 (mips_linux_n32n64_sigframe_init): Use get_frame_arch to get at the
2547 current architecture by frame_info.
2548 (supply_32bit_reg, mips_supply_gregset, mips_fill_gregset)
2549 (mips_supply_fpregset, mips_fill_fpregset, supply_64bit_reg)
2550 (mips64_supply_gregset, mips64_fill_gregset, mips64_supply_fpregset)
2551 (mips64_fill_fpregset, mips_linux_write_pc): Use get_regcache_arch to
2552 get at the current architecture by regcache.
2554 * mips-linux-nat.c (mips_linux_register_addr)
2555 (mips64_linux_register_addr): Replace current_gdbarch by gdbarch.
2556 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset)
2557 (mips64_linux_regsets_fetch_registers)
2558 (mips64_linux_regsets_store_registers): Use get_regcache_arch to get at
2559 the current architecture by regcache.
2561 * mips64obsd-tdep.c (mips64obsd_sigframe_init): Use get_frame_arch to
2562 get at the current architecture by frame_info.
2564 2007-10-10 Markus Deuling <deuling@de.ibm.com>
2566 * mips-tdep.c (mips_xfer_register): Use get_regcache_arch to get at the
2567 current architecture by regcache.
2568 (mips2_fp_compat, mips32_next_pc, mips16_scan_prologue)
2569 (mips_insn16_frame_cache, mips32_scan_prologue, mips_insn32_frame_cache)
2570 (mips_stub_frame_cache, mips_read_fp_register_single)
2571 (mips_read_fp_register_double, mips_print_fp_register)
2572 (mips_print_register, print_gp_register_row): Use get_frame_arch to get
2573 at the current architecture by frame_info.
2574 (mips_register_reggroup_p, mips_pseudo_register_read, mips_unwind_sp)
2575 (mips_pseudo_register_write, mips_register_type, mips_unwind_pc)
2576 (mips_unwind_dummy_id, mips_eabi_push_dummy_call)
2577 (mips_n32n64_push_dummy_call, mips_n32n64_return_value)
2578 (mips_o32_push_dummy_call, mips_o32_return_value)
2579 (mips_o64_push_dummy_call, mips_o64_return_value)
2580 (mips_print_registers_info, mips_dump_tdep): Replace current_gdbarch by
2583 2007-10-10 Markus Deuling <deuling@de.ibm.com>
2585 * xtensa-tdep.c (xtensa_register_type, xtensa_pseudo_register_read)
2586 (xtensa_pseudo_register_write, xtensa_register_reggroup_p)
2587 (xtensa_unwind_pc, xtensa_unwind_dummy_id, xtensa_push_dummy_call)
2588 (xtensa_dump_tdep): Replace current_gdbarch by gdbarch.
2589 (xtensa_register_write_masked, xtensa_register_read_masked)
2590 (xtensa_supply_gregset, xtensa_store_return_value)
2591 (xtensa_extract_return_value): Use get_regcache_arch to get at the
2592 current architecture by regcache.
2593 (xtensa_frame_cache, call0_frame_get_reg_at_entry, call0_frame_cache)
2594 (xtensa_frame_prev_register): Use get_frame_arch to get at the current
2595 architecture by frame_info.
2597 2007-10-10 Daniel Jacobowitz <dan@codesourcery.com>
2599 * arm-tdep.c (struct arm_prologue_cache): Remove frameoffset.
2600 (thumb_analyze_prologue): Move pv_area_store_would_trash call
2601 out of loop. Do not set cache->frameoffset.
2602 (arm_scan_prologue): Use prologue-value mechanism. Do not set
2603 frameoffset. Simplify framesize.
2604 (arm_make_prologue_cache, arm_normal_frame_base): Do not use
2606 * arm-tdep.h (enum gdb_regnum): Add ARM_IP_REGNUM.
2608 2007-10-10 Daniel Jacobowitz <dan@codesourcery.com>
2610 * target.c (update_current_target): Call setup_target_debug.
2611 (push_target): Do not call it here.
2613 2007-10-09 Michael Snyder <msnyder@specifix.com>
2615 * MAINTAINERS: Update my email address.
2617 2007-10-09 Markus Deuling <deuling@de.ibm.com>
2619 * xtensa-tdep.c: Replace following current-gdbarch based macros by
2621 (xtensa_pseudo_register_read)
2622 (xtensa_pseudo_register_write): XTENSA_TARGET_FLAGS.
2623 (ARG_NOF, ARG_1ST, xtensa_extract_return_value)
2624 (xtensa_store_return_value, xtensa_push_dummy_call): CALL_ABI.
2625 (xtensa_pseudo_register_read)
2626 (xtensa_pseudo_register_write): ISA_USE_WINDOWED_REGISTERS.
2627 (xtensa_breakpoint_from_pc): ISA_USE_DENSITY_INSTRUCTIONS.
2628 (xtensa_register_type, xtensa_supply_gregset, xtensa_frame_cache)
2629 (xtensa_frame_prev_register): NUM_AREGS.
2630 (xtensa_pseudo_register_read, xtensa_pseudo_register_write,
2631 (xtensa_supply_gregset, xtensa_frame_cache, xtensa_frame_prev_register,
2632 (xtensa_extract_return_value, xtensa_store_return_value): WB_REGNUM.
2633 (xtensa_supply_gregset, xtensa_frame_cache)
2634 (xtensa_frame_prev_register): WS_REGNUM.
2635 (xtensa_supply_gregset): LBEG_REGNUM, LEND_REGNUM, LCOUNT_REGNUM,
2636 SAR_REGNUM, EXCCAUSE_REGNUM, EXCVADDR_REGNUM
2637 (xtensa_register_name, xtensa_register_type, xtensa_reg_to_regnum)
2638 (xtensa_pseudo_register_read, xtensa_pseudo_register_write)
2639 (xtensa_register_reggroup_p): REGMAP.
2640 (call0_track_op): LITBASE_REGNUM.
2641 (xtensa_register_type, xtensa_reg_to_regnum, call0_frame_cache):A0_BASE
2642 (xtensa_supply_gregset, call0_frame_get_reg_at_entry)
2643 (xtensa_frame_prev_register, AREG_NUMBER)
2644 (xtensa_register_type): AR_BASE.
2645 (xtensa_pseudo_register_read, xtensa_pseudo_register_write): FP_ALIAS.
2646 (AREG_NUMBER): AREGS_MASK, WB_MASK, A0_REGNUM.
2647 (ARG_1ST, xtensa_pseudo_register_read, xtensa_pseudo_register_write)
2648 (xtensa_frame_cache, xtensa_frame_prev_register)
2649 (xtensa_extract_return_value, xtensa_store_return_value)
2650 (xtensa_push_dummy_call, call0_frame_cache): A0_REGNUM.
2651 (xtensa_register_type, xtensa_pseudo_register_read, xtensa_frame_cache)
2652 (xtensa_pseudo_register_write, xtensa_unwind_dummy_id)
2653 (xtensa_frame_prev_register, xtensa_push_dummy_call)
2654 (call0_frame_cache): A1_REGNUM.
2655 (xtensa_extract_return_value, xtensa_store_return_value): A2_REGNUM.
2656 (xtensa_push_dummy_call): A4_REGNUM.
2657 (ARGS_FIRST_REG): A6_REGNUM.
2658 (xtensa_pseudo_register_read, xtensa_pseudo_register_write)
2659 (xtensa_frame_prev_register): A15_REGNUM.
2660 * xtensa-tdep.h: Delete current_gdbarch based macros after replacing
2661 them in the appropriate source file:
2662 XTENSA_TARGET_FLAGS, SPILL_LOCATION, SPILL_SIZE, CALL_ABI, NUM_AREGS,
2663 ISA_USE_WINDOWED_REGISTERS, ISA_USE_DENSITY_INSTRUCTIONS, WB_REGNUM,
2664 ISA_USE_EXCEPTIONS, ISA_USE_EXT_L32R, DEBUG_DATA_VADDR_TRAP_COUNT,
2665 DEBUG_INST_VADDR_TRAP_COUNT, ISA_MAX_INSN_SIZE, DEBUG_NUM_IBREAKS,
2666 DEBUG_NUM_DBREAKS, WS_REGNUM, LBEG_REGNUM, LEND_REGNUM, SAR_REGNUM,
2667 REGMAP, LITBASE_REGNUM, DEBUGCAUSE_REGNUM, EXCCAUSE_REGNUM, AR_BASE,
2668 EXCVADDR_REGNUM, NUM_IBREAKS, REGMAP_BYTES, NUM_CONTEXTS, FP_ALIAS,
2669 FP_LAYOUT, FP_LAYOUT_BYTES, GREGMAP, AREGS_MASK, WB_MASK, A0_REGNUM,
2670 A1_REGNUM, A2_REGNUM, A3_REGNUM, A4_REGNUM, A5_REGNUM, A6_REGNUM,
2671 A7_REGNUM, A8_REGNUM, A9_REGNUM, A10_REGNUM, A11_REGNUM, A12_REGNUM,
2672 A13_REGNUM, A14_REGNUM, A15_REGNUM.
2674 2007-10-09 Markus Deuling <deuling@de.ibm.com>
2676 * h8300-tdep.c (h8300_frame_cache): Use get_frame_arch to get at
2677 the current architecture by frame_info.
2678 (h8300_frame_prev_register
2679 (h8300_print_register): Replace current_gdbarch by gdbarch.
2680 (h8300_print_registers_info, h8300_register_type)
2681 (h8300_register_type): Likewise.
2683 2007-10-09 Markus Deuling <deuling@de.ibm.com>
2685 * i386-linux-nat.c (fetch_register): Use get_regcache_arch to get at
2686 the current architecture by regcache.
2687 (store_register, supply_gregset, fill_gregset, i386_linux_resume)
2688 (i386_linux_fetch_inferior_registers)
2689 (i386_linux_store_inferior_registers): Likewise.
2690 * i386gnu-nat.c (gnu_fetch_registers, gnu_store_registers): Likewise.
2691 * i386-nto-tdep.c (i386nto_supply_gregset): Likewise.
2692 * i386v4-nat.c (supply_fpregset, fill_fpregset): Likewise.
2693 * i386-tdep.c (i386_unwind_pc): Replace current_gdbarch by gdbarch.
2694 (i386_extract_return_value, i386_store_return_value): Likewise.
2695 * i386-tdep.c (i386_frame_prev_register): Use get_frame_arch to get at
2696 the current architecture by frame_info.
2697 (i386_sigtramp_frame_cache, i386_get_longjmp_target)
2698 (i386_register_to_value, i386_value_to_register): Likewise.
2700 2007-10-09 Markus Deuling <deuling@de.ibm.com>
2702 * monitor.c (monitor_supply_register): Use get_regcache_arch to get at
2703 the current architecture by regcache.
2704 (monitor_store_register, monitor_store_registers): Likewise.
2706 2007-10-09 Markus Deuling <deuling@de.ibm.com>
2708 * dbug-rom.c (dbug_supply_register): Use get_regcache_arch to get at
2709 the current architecture by regcache.
2711 2007-10-09 Markus Deuling <deuling@de.ibm.com>
2713 * arch-utils.c (legacy_return_value): Replace current_gdbarch by
2716 2007-10-09 Markus Deuling <deuling@de.ibm.com>
2718 * frame.c (frame_pc_unwind): Use get_frame_arch to get at the current
2719 architecture by frame.
2720 (frame_save_as_regcache, frame_register_unwind, get_prev_frame_1)
2721 (inside_main_func, frame_sp_unwind): Likewise.
2723 2007-10-09 Daniel Jacobowitz <dan@codesourcery.com>
2725 * solib-svr4.c (enable_break): Add the dynamic linker also if
2728 2007-10-09 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
2730 * MAINTAINERS (Write After Approval): Add self.
2732 2007-10-09 Pedro Alves <pedro_alves@portugalmail.pt>
2734 * stabsread.c (read_huge_number): Initialize local variable to 0.
2736 2007-10-09 Pierre Muller <muller@ics.u-strasbg.fr>
2738 * p-lang.h (pascal_main_name): Add declaration.
2739 * p-lang.c (GPC_P_INITIALIZE, GPC_MAIN_PROGRAM_NAME_1)
2740 (GPC_MAIN_PROGRAM_NAME_2): New constants.
2741 (pascal_main_name): New function.
2742 * symtab.c: Include p-lang.h.
2743 (find_main_name): Add call to pascal_main_name.
2744 * Makefile.in (symtab.o): Add dependency on p-lang.h.
2746 2007-10-09 Pedro Alves <pedro_alves@portugalmail.pt>
2748 * stabsread.c (read_huge_number): Fix handling of octal
2749 representation when the bit width is known.
2750 (read_range_type): Record unsigned integral types with their size,
2751 when the type size is known.
2753 2007-10-08 Thiago Jung Bauermann <bauerman@br.ibm.com>
2755 * MAINTAINERS (Write After Approval): Add self.
2757 2007-10-08 Pierre Muller <muller@ics.u-strasbg.fr>
2759 * breakpoint.c (print_one_breakpoint_location): ARI fix:
2760 Replace asprintf by xstrprintf.
2762 2007-10-08 Pierre Muller <muller@ics.u-strasbg.fr>
2764 * linux-fork.c: ARI fix: include "gdb_dirent.h" instead of <dirent.h>.
2765 Makefile.in (linux-fork.o): Add gdb_dirent.h dependency.
2767 2007-10-08 Pierre Muller <muller@ics.u-strasbg.fr>
2769 * linux-fork.c: Move "gdb_wait.h" include back to the position of
2770 <sys/wait.h> include before last commit.
2772 2007-10-08 Maciej W. Rozycki <macro@mips.com>
2774 * mips-tdep.c (mips32_next_pc): Fix a typo in BGTZL.
2776 2007-10-08 Markus Deuling <deuling@de.ibm.com>
2778 * aix-thread.c (supply_gprs64, supply_fprs, supply_sprs64)
2779 (supply_sprs32, fetch_regs_user_thread, fetch_regs_kernel_thread)
2780 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs64, fill_sprs32)
2781 (store_regs_user_thread, store_regs_kernel_thread): Use
2782 get_regcache_arch or get_frame_arch to get at the current architecture
2783 by regcache or by frame, respectively.
2785 2007-10-08 Markus Deuling <deuling@de.ibm.com>
2787 * sh64-tdep.c (sh64_push_dummy_call, sh64_register_type)
2788 (sh64_pseudo_register_read, sh64_pseudo_register_write)
2789 (sh64_do_fp_register, sh64_do_pseudo_register, sh64_do_register)
2790 (sh64_print_register, sh64_media_print_registers_info)
2791 (sh64_compact_print_registers_info, sh64_unwind_sp)
2792 (sh64_unwind_pc): Replace current_gdbarch by gdbarch.
2793 (sh64_show_media_regs, sh64_show_compact_regs, sh64_frame_cache)
2794 (sh64_frame_prev_register): Use FRAME to recognize current
2797 2007-10-08 Markus Deuling <deuling@de.ibm.com>
2799 * sh-tdep.c (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu)
2800 (sh_sh2a_register_type, sh_sh3e_register_type, sh_sh4_register_type)
2801 (sh_register_reggroup_p, sh_dwarf2_frame_init_reg): Replace
2802 current_gdbarch by gdbarch.
2803 (sh_generic_show_regs, sh3_show_reg, sh2e_show_regs, sh2a_show_regs)
2804 (sh2a_nofpu_show_regs, sh3e_show_regs, sh3_dsp_show_regs)
2805 (sh4_show_regs, sh4_nofpu_show_regs, sh_dsp_show_regs, sh_frame_cache)
2806 (sh_frame_prev_register, sh_unwind_sp, sh_unwind_pc): Use FRAME to
2807 recognize current architecture.
2809 2007-10-08 Markus Deuling <deuling@de.ibm.com>
2811 * remote.c (init_remote_state, fetch_register_using_p)
2812 (process_g_packet, remote_fetch_registers, remote_prepare_to_store)
2813 (store_register_using_P, store_registers_using_G)
2814 (remote_store_registers): Use get_regcache_arch or get_frame_arch to
2815 get at the current architecture by regcache or by frame, respectively.
2817 2007-10-08 Markus Deuling <deuling@de.ibm.com>
2819 * m68k-tdep.c (m68k_register_to_value, m68k_value_to_register)
2820 (m68k_svr4_extract_return_value, m68k_svr4_store_return_value)
2821 (m68k_frame_prev_register, m68k_get_longjmp_target): Use
2822 get_regcache_arch or get_frame_arch to get at the current architecture
2823 by regcache or by frame, respectively.
2824 * m68klinux-tdep.c (m68k_linux_sigtramp_frame_cache): Likewise.
2825 * m68klinux-nat.c (fetch_register, old_fetch_inferior_registers)
2826 (store_register, old_store_inferior_registers, supply_gregset)
2827 (supply_fpregset, fill_fpregset): Likewise.
2828 * m68k-tdep.c (m68k_register_type, m68k_unwind_pc, m68k_dump_tdep):
2829 Replace current_gdbarch by gdbarch.
2831 2007-10-08 Markus Deuling <deuling@de.ibm.com>
2833 * irix5-nat.c (supply_gregset, fill_gregset, supply_fpregset)
2834 (fill_fpregset, fetch_core_registers): Use get_regcache_arch or
2835 get_frame_arch to get at the current architecture by regcache or by
2836 frame, respectively.
2838 2007-10-08 Markus Deuling <deuling@de.ibm.com>
2840 * ia64-tdep.c (ia64_pseudo_register_read, ia64_pseudo_register_write):
2841 Replace current_gdbarch by gdbarch.
2842 * ia64-tdep.c (ia64_frame_prev_register
2843 (ia64_sigtramp_frame_prev_register)
2844 (ia64_libunwind_frame_prev_register): Use get_regcache_arch or
2845 get_frame_arch to get at the current architecture by regcache or by
2846 frame, respectively.
2847 * ia64-linux-nat.c (ia64_linux_fetch_register)
2848 (ia64_linux_fetch_registers, ia64_linux_store_register)
2849 (ia64_linux_store_registers): Likewise.
2851 2007-10-08 Markus Deuling <deuling@de.ibm.com>
2853 * hppa-tdep.c (hppa_stub_unwind_sniffer, hppa_dump_tdep): Replace
2854 current_gdbarch by gdbarch.
2855 * hppa-linux-nat.c (fetch_register, store_register)
2856 (hppa_linux_fetch_inferior_registers)
2857 (hppa_linux_store_inferior_registers): Use get_regcache_arch or
2858 get_frame_arch to get at the current architecture by regcache or by
2859 frame, respectively.
2860 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code
2861 (hppa_hpux_unwind_adjust_stub): Likewise.
2862 * hppa-hpux-nat.c (hppa_hpux_fetch_register, hppa_hpux_store_register)
2863 (hppa_hpux_fetch_inferior_registers)
2864 (hppa_hpux_store_inferior_registers): Likewise.
2866 2007-10-08 Markus Deuling <deuling@de.ibm.com>
2868 * cris-tdep.c (cris_sigcontext_addr, cris_sigtramp_frame_unwind_cache)
2869 (cris_scan_prologue, crisv32_scan_prologue, find_step_target)
2870 (cris_software_single_step, cris_supply_gregset): Use get_regcache_arch
2871 or get_frame_arch to get at the current architecture by regcache or by
2872 frame, respectively.
2873 * cris-tdep.c (crisv32_single_step_through_delay, cris_push_dummy_call)
2874 (cris_unwind_pc, cris_unwind_sp, cris_register_type, cris_dump_tdep)
2875 (crisv32_register_type, cris_dwarf2_frame_init_reg): Replace
2876 current_gdbarch by gdbarch.
2878 2007-10-08 Markus Deuling <deuling@de.ibm.com>
2880 * arm-tdep.c (arm_scan_prologue, arm_make_prologue_cache)
2881 (thumb_get_next_pc, arm_get_next_pc, arm_extract_return_value)
2882 (arm_store_return_value): Use get_regcache_arch or get_frame_arch to
2883 get at the current architecture by regcache or by·frame, respectively.
2884 (arm_push_dummy_call, arm_dump_tdep): Replace current_gdbarch by
2887 2007-10-08 Markus Deuling <deuling@de.ibm.com>
2889 * amd64-tdep.c (amd64_frame_prev_register, amd64_sigtramp_frame_cache):
2890 Use get_regcache_arch or get_frame_arch to get at the current
2891 architecture by regcache or by frame, respectively.
2892 * amd64-linux-tdep.c (amd64_linux_sigcontext_addr): Likewise.
2893 * amd64-nat.c (amd64_supply_native_gregset)
2894 (amd64_collect_native_gregset): Replace current_gdbarch by gdbarch.
2896 2007-10-08 Markus Deuling <deuling@de.ibm.com>
2898 * alpha-tdep.c (alpha_register_reggroup_p): Replace current_gdbarch by
2900 * alpha-linux-nat.c (alpha_linux_register_u_offset): Likewise.
2901 (alpha_sigtramp_frame_unwind_cache, alpha_sigtramp_frame_this_id)
2902 (alpha_sigtramp_frame_sniffer, alpha_next_pc): Use get_regcache_arch or
2903 get_frame_arch to get at the current architecture by regcache or by
2904 frame, respectively.
2905 * alpha-nat.c (fetch_osf_core_registers): Likewise.
2907 2007-10-08 Markus Deuling <deuling@de.ibm.com>
2909 * dwarf2-frame.c (read_reg, execute_cfa_program, dwarf2_frame_cache)
2910 (dwarf2_frame_default_init_reg, dwarf2_frame_prev_register): Replace
2911 current_gdbarch by gdbarch.
2912 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Likewise.
2914 2007-10-08 Markus Deuling <deuling@de.ibm.com>
2916 * regcache.c (init_regcache_descr, register_type, read_pc_pid)
2917 (write_pc_pid, regcache_dump): Replace current_gdbarch by gdbarch.
2918 * regcache.c (regcache_raw_write): Use get_regcache_arch or
2919 get_frame_arch to get at the current architecture by regcache or by
2920 frame, respectively.
2922 2007-10-08 Markus Deuling <deuling@de.ibm.com>
2924 * findvar.c (value_of_register, locate_var_value): Use
2925 get_regcache_arch or get_frame_arch to get at the current architecture
2926 by regcache or by frame, respectively.
2927 * findvar.c (default_value_from_register, value_from_register): Replace
2928 current_gdbarch by gdbarch.
2930 2007-10-08 Pierre Muller <muller@ics.u-strasbg.fr>
2932 * config/i386/nm-i386.h (CHILD_POST_STARTUP_INFERIOR): ARI fix: Remove.
2934 2007-10-08 Pierre Muller <muller@ics.u-strasbg.fr>
2936 * linux-fork.c: ARI fix: include "gdb_wait.h" instead of <sys/wait.h>.
2937 Makefile.in (linux-fork.o): Add gdb_wait.h dependency.
2939 2007-10-05 Daniel Jacobowitz <dan@codesourcery.com>
2941 * remote.c (get_offsets): Only call free_symfile_segment_data if
2944 2007-10-03 Pierre Muller <muller@ics.u-strasbg.fr>
2946 * objc-exp.y: ARI fix: remove 4 PARAMS.
2948 2007-10-03 Daniel Jacobowitz <dan@codesourcery.com>
2950 * NEWS: Use uniform spacing. Correct version number for GDB 6.7
2951 news. Mention XML support for M68K in GDB 6.7.
2953 2007-10-03 Daniel Jacobowitz <dan@codesourcery.com>
2955 * gdbtypes.c (create_range_type): Do not set TYPE_FIELD_TYPE for the
2957 (init_vector_type): Use builtin_type_int32.
2959 2007-10-02 Ulrich Weigand <uweigand@de.ibm.com>
2961 * s390-tdep.c (s390_regset_from_core_section): Allow excess section
2962 size to enable bi-arch generate-core-file support.
2964 2007-10-02 Markus Deuling <deuling@de.ibm.com>
2966 * spu-tdep.c (info_spu_signal_command): Fix output for SPU signal.
2968 2007-10-02 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
2970 * tui/tui-interp.c (tui_init): Initialize tui's SIGWINCH
2972 * tui/tui-win.c (tui_initialize_win): New function for
2973 initializing tui's SIGWINCH signal handler.
2974 * tui/tui-win.h (tui_initialize_win): Declare.
2976 2007-10-02 Ulrich Weigand <uweigand@de.ibm.com>
2978 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Cast
2979 pointer to uintptr_t before casting to CORE_ADDR.
2981 2007-10-02 Markus Deuling <deuling@de.ibm.com>
2983 * linux-nat.c (PTRACE_GETSIGINFO): Add define.
2985 2007-10-02 Mark Mitchell <mark@codesourcery.com>
2987 * mingw-hdep.c (gdb_select): Stop helper threads before returning.
2988 * ser-mingw.c (enum select_thread_state): New type.
2989 (struct ser_console_state): Add have_started and thread_state.
2990 (select_thread_wait): New function.
2991 (thread_fn_type): New type.
2992 (create_select_thread): New function.
2993 (destroy_select_thread): Likewise.
2994 (start_select_thread): Likewise.
2995 (stop_select_thread): Likewise.
2996 (console_select_thread): Use new functions.
2997 (pipe_select_thread): Likewise.
2998 (file_select_thread): Likewise.
2999 (ser_console_wait_handle): Likewise.
3000 (ser_console_done_wait_handle): Likewise.
3001 (ser_console_close): Likewise.
3002 (free_pipe_state): Likewise.
3003 (pipe_wait_handle): Likewise.
3004 (pipe_done_wait_handle): Likewise.
3005 (struct net_windows_state): Derive from ser_console_state.
3006 (net_windows_select_thread): Use new functions.
3007 (net_windows_wait_handle): Likewise.
3008 (net_windows_done_wait_handle): Likewise.
3009 (net_windows_close): Likewise.
3011 2007-10-02 Daniel Jacobowitz <dan@codesourcery.com>
3013 * inflow.c (terminal_ours_1): Remove useless line.
3015 2007-10-02 Daniel Jacobowitz <dan@codesourcery.com>
3017 * mips-tdep.c (mips_read_fp_register_double): Correct check for
3019 (mips_print_fp_register): Correct check for even FP registers.
3020 (mips_virtual_frame_pointer): New function.
3021 (mips_gdbarch_init): Call set_gdbarch_virtual_frame_pointer.
3023 2007-09-30 Mike Frysinger <vapier@gentoo.org>
3025 * value.h (lookup_only_internalvar): New prototype.
3026 (create_internalvar): Likewise.
3027 * value.c (lookup_only_internalvar): New function.
3028 (create_internalvar): Likewise.
3029 (lookup_internalvar): Use new lookup_only_internalvar and
3030 create_internalvar functions.
3031 * parse.c (write_dollar_variable): Look up $ symbols in internal
3032 table first rather than last.
3034 2007-09-30 Daniel Jacobowitz <dan@codesourcery.com>
3036 * linux-nat.c (linux_nat_new_thread): New variable.
3037 (linux_child_follow_fork): Set inferior_ptid to include LWP ID. Use
3038 linux_nat_switch_fork.
3039 (lwp_list): Make public.
3040 (add_lwp): Call linux_nat_new_thread.
3041 (lin_lwp_attach_lwp, linux_nat_attach): Call add_lwp after stopping
3043 (resume_callback): Clear lp->siginfo. Remove unused variable.
3044 (linux_nat_resume): Assert that the LWP list is already initialized.
3046 (save_siginfo): New.
3047 (stop_wait_callback, linux_nat_wait): Call it.
3048 (linux_nat_set_new_thread, linux_nat_get_siginfo): New.
3049 * linux-nat.h (struct lwp_info): Add siginfo.
3050 (lwp_list, linux_nat_set_new_thread, linux_nat_get_siginfo): Declare.
3053 * amd64-linux-nat.c (amd64_linux_dr): New.
3054 (amd64_linux_dr_get): Take a PTID argument. Correct typo.
3055 (amd64_linux_dr_set): Take a PTID argument.
3056 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use ALL_LWPS.
3057 (amd64_linux_dr_reset_addr): Use amd64_linux_dr_set_addr.
3058 (amd64_linux_dr_get_status): Pass inferior_ptid to amd64_linux_dr_get.
3059 (amd64_linux_new_thread): New.
3060 (_initialize_amd64_linux_nat): Call linux_nat_set_new_thread.
3061 * i386-linux-nat.c (i386_linux_dr): New.
3062 (i386_linux_dr_get, i386_linux_dr_set): Take a PTID argument.
3063 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use ALL_LWPS.
3064 (i386_linux_dr_reset_addr): Use i386_linux_dr_set_addr.
3065 (i386_linux_dr_get_status): Pass inferior_ptid to i386_linux_dr_get.
3066 (i386_linux_new_thread): New.
3067 (i386_linux_resume): Remove unnecessary PID check.
3068 (_initialize_i386_linux_nat): Call linux_nat_set_new_thread.
3069 * ia64-linux-nat.c (enable_watchpoints_in_psr): Take PTID argument.
3070 (fetch_debug_register, fetch_debug_register_pair): Delete.
3071 (debug_registers): New.
3072 (ia64_linux_insert_watchpoint, ia64_linux_remove_watchpoint): Use
3073 ALL_LWPS and debug_registers.
3074 (ia64_linux_new_thread): New.
3075 (ia64_linux_stopped_data_address): Use linux_nat_get_siginfo.
3076 (_initialize_ia64_linux_nat): Call linux_nat_set_new_thread.
3077 * ppc-linux-nat.c (last_stopped_data_address): Delete.
3078 (saved_dabr_value): New.
3079 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint): Use
3081 (ppc_linux_new_thread): New.
3082 (ppc_linux_stopped_data_address): Use linux_nat_get_siginfo.
3083 (ppc_linux_stopped_by_watchpoint): Call ppc_linux_stopped_data_address.
3084 (_initialize_ppc_linux_nat): Call linux_nat_set_new_thread.
3085 * s390-nat.c (s390_stopped_by_watchpoint): Clear the watchpoint status
3087 (s390_fix_watch_points): Take a PTID argument.
3088 (s390_insert_watchpoint, s390_remove_watchpoint): Use ALL_LWPS.
3089 (_initialize_s390_nat): Call linux_nat_set_new_thread.
3091 2007-09-30 Daniel Jacobowitz <dan@codesourcery.com>
3092 Jeff Johnston <jjohnstn@redhat.com>
3094 * breakpoint.c (watchpoints_triggered): New.
3095 (bpstat_stop_status): Remove STOPPED_BY_WATCHPOINT argument.
3096 Check watchpoint_triggered instead. Combine handling for software
3097 and hardware watchpoints. Do not use target_stopped_data_address
3098 here. Always check a watchpoint if its scope breakpoint triggers.
3099 Do not stop for thread or overlay events. Improve check for
3100 triggered watchpoints without a value change.
3101 (watch_command_1): Insert the scope breakpoint first. Link the
3102 scope breakpoint to the watchpoint.
3103 * breakpoint.h (enum watchpoint_triggered): New.
3104 (struct breakpoint): Add watchpoint_triggered.
3105 (bpstat_stop_status): Update prototype.
3106 (watchpoints_triggered): Declare.
3107 * infrun.c (enum infwait_status): Add infwait_step_watch_state.
3108 (stepped_after_stopped_by_watchpoint): Delete.
3109 (handle_inferior_event): Make stepped_after_stopped_by_watchpoint
3110 local. Handle infwait_step_watch_state. Update calls to
3111 bpstat_stop_status. Use watchpoints_triggered to check
3113 * remote.c (stepped_after_stopped_by_watchpoint): Remove extern.
3114 (remote_stopped_data_address): Do not check it.
3116 2007-09-29 Daniel Jacobowitz <dan@codesourcery.com>
3118 * configure.ac: Add $LIBINTL when testing libbfd.
3119 * configure: Regenerated.
3121 2007-09-28 Vladimir Prus <vladimir@codesourcery.com>
3123 * NEW: Mention pending breakpoint changes and
3124 support for breakpoints at multiple locations.
3126 2007-09-27 Daniel Jacobowitz <dan@codesourcery.com>
3128 * arm-linux-tdep.c (arm_linux_software_single_step): New.
3129 (arm_linux_init_abi): Use it.
3130 * arm-tdep.c (arm_get_next_pc): Make global. Handle all-ones
3131 condition correctly.
3132 * arm-tdep.h (arm_get_next_pc): Declare.
3133 * Makefile.in (arm-linux-tdep.o): Update.
3135 2007-09-26 Vladimir Prus <vladimir@codesourcery.com>
3137 * varobj.c (install_new_value): Don't
3138 call value_get_print_value when a value is
3139 lazy. Update the print_value member in a
3142 2007-09-26 Vladimir Prus <vladimir@codesourcery.com>
3144 * breakpoint.c (create_breakpoint): Set
3145 condition on each location, not on the first
3146 location of breakpoint.
3148 2007-09-26 Jim Blandy <jimb@codesourcery.com>
3150 * remote.c (getpkt_sane): Fix error message. No animals were
3151 harmed in the making of this debugger.
3153 2007-09-26 Pierre Muller <muller@ics.u-strasbg.fr>
3155 * p-typeprint.c: Fix 11 ARI reported problems.
3156 (pascal_print_type): Fix 4 operator at end of line.
3157 (pascal_type_print_method_args) : Replace 2 DEPRECATED_STREQN macros
3158 using strncmp function.
3159 (pascal_type_print_base): Fix 2 operator at end of line.
3160 (pascal_type_print_base) : Replace 3 DEPRECATED_STREQN macros
3161 using strncmp function.
3164 2007-09-26 Pierre Muller <muller@ics.u-strasbg.fr>
3166 * Fix PR pascal/2231
3167 dwarf2read.c (read_subroutine_type):
3168 All pascal functions are prototyped.
3170 2007-09-26 Pierre Muller <muller@ics.u-strasbg.fr>
3172 * Fix PR pascal/2283
3173 p-valprint.c (pascal_val_print): correct current language check.
3174 Also print array of char as strings.
3177 2007-09-26 David Ung <davidu@mips.com>
3178 Maciej W. Rozycki <macro@mips.com>
3180 * mips-tdep.c (mips_n32n64_return_value): Fix a comment.
3182 2007-09-25 Pierre Muller <muller@ics.u-strasbg.fr>
3184 * p-exp.y: Fix 12 ARI reported problems.
3185 (name_not_typename): Fix 2 operator at end of line issues.
3186 (yylex): Fix 3 operator at end of line issues.
3187 Replace 7 DEPRECATED_STREQ macros using strcmp function.
3189 2007-09-25 David Ung <davidu@mips.com>
3190 Maciej W. Rozycki <macro@mips.com>
3192 * mips-tdep.c (mips_n32n64_return_value): Per N32/N64 ABI
3193 rules return composite types in registers as appropriate.
3195 2007-09-24 Jim Blandy <jimb@codesourcery.com>
3197 * symfile.h (struct symfile_segment_data): Doc fixes.
3198 * symfile.c (symfile_map_offsets_to_segments): Doc fixes.
3199 Assert that we were passed some loaded segment addresses,
3200 and that sections' segment numbers are valid.
3201 Simplify offset calculation.
3202 * remote.c (get_offsets): Clarify selection of relocate-by-segment
3203 strategy, and set num_segments correctly. Delete redundant
3204 assignments to do_sections.
3206 2007-09-24 Daniel Jacobowitz <dan@codesourcery.com>
3208 * frame.c (get_prev_frame_1): Also check for PC in the same register.
3210 2007-09-24 Vladimir Prus <vladimir@codesourcery.com>
3212 * breakpoint.c (remove_sal): New.
3213 (expand_line_sal_maybe): New.
3214 (create_breakpoints): Call expand_line_sal_maybe.
3215 (clear_command): Add comment.
3216 (breakpoint_re_set_one): Call expand_line_sal_maybe.
3217 * linespec.c (decode_indirect): Set explicit_pc to 1.
3218 (decode_all_digits): Set explicit_line to 1.
3219 (append_expanded_sal): New.
3220 (expand_line_sal): New.
3221 * linespec.h (expand_line_sal): Declare.
3222 * symtab.c (init_sal): Initialize explicit_pc
3224 * symtab.h (struct symtab_and_line): New fields
3225 explicit_pc and explicit_line.
3227 2007-09-23 Daniel Jacobowitz <dan@codesourcery.com>
3229 * infcall.c (call_function_by_hand): Handle language-specific
3230 pass and return by reference.
3232 * cp-abi.c (cp_pass_by_reference): New.
3233 * cp-abi.h (cp_pass_by_reference): Declare.
3234 (struct cp_abi_ops): Add pass_by_reference.
3235 * gnu-v3-abi.c (gnuv3_pass_by_reference): New.
3236 (init_gnuv3_ops): Set pass_by_reference.
3238 * language.c (language_pass_by_reference): New.
3239 (default_pass_by_reference): New.
3240 (unknown_language_defn, auto_language_defn, local_language_defn): Add
3241 default_pass_by_reference.
3242 * langauge.h (struct language_defn): Add la_pass_by_reference.
3243 (language_pass_by_reference, default_pass_by_reference): Declare.
3244 * ada-lang.c (ada_language_defn): Add default_pass_by_reference.
3245 * c-lang.c (c_language_defn, asm_language_defn)
3246 (minimal_language_defn): Likewise.
3247 (cplus_language_defn): Add cp_pass_by_reference.
3248 * f-lang.c (f_language_defn): Add default_pass_by_reference.
3249 * jv-lang.c (java_language_defn): Likewise.
3250 * m2-lang.c (m2_language_defn): Likewise.
3251 * objc-lang.c (objc_language_defn): Likewise.
3252 * p-lang.c (pascal_language_defn): Likewise.
3253 * scm-lang.c (scm_language_defn): Likewise
3255 2007-09-23 Vladimir Prus <vladimir@codesourcery.com>
3257 Allow a code breakpoint to have several locations
3259 * breakpoint.h (enum enable_state): Remove the
3260 bp_shlib_disabled enumerator.
3261 (struct bp_location): New members shlib_disabled,
3262 global_next, enabled and function_name.
3263 Rename pending to condition_not_parsed.
3265 * breakpoint.c (ALL_BP_LOCATIONS): Iterate over global_next.
3266 (ALL_BP_LOCATIONS_SAFE): Likewise.
3267 (breakpoint_enabled): Don't check for pending.
3268 (condition_command): Free and update all locations of
3270 (insert_bp_location): Adjust.
3271 (software_breakpoint_inserted_here_p): Don't care
3272 if breakpoint is enabled, as soon as it's inserted.
3273 (print_it_typical): Print bpstat's location, not
3274 bpstat's breakpoint's location.
3275 (bpstat_stop_status): Iterate over all locations, not
3277 (print_breakpoint_location): New.
3278 (print_one_breakpoint): Renamed to
3279 (print_one_breakpoint_location): ...this. Take
3280 parameters to describe which location is being
3281 printed. Modify code to properly print header
3282 for several locations and individual locations.
3283 (print_one_breakpoint): Print all locations.
3284 (breakpoint_has_pc): New.
3285 (describe_other_breakpoints): Use the above.
3286 (check_duplicates): Renamed to...
3287 (check_duplicates_for): .. this.
3288 (check_duplicates): Use check_duplicates_for.
3289 (allocate_bp_location): Adjust.
3290 (set_raw_breakpoint_without_location): New,
3291 extracted from set_raw_breakpoint.
3292 (set_breakpoint_location_function): New.
3293 (set_raw_breakpoint): Use
3294 set_raw_breakpoint_without_location.
3295 (make_breakpoint_permanent): Mark all locations
3297 (disable_breakpoints_in_shlibs): Iterate over
3299 (disable_breakpoints_in_unloaded_shlib): Likewise.
3300 (re_enable_breakpoints_in_shlibs): Likewise.
3301 (mention): Say "pending" when breakpoint has
3302 zero locations. If breakpoint has more than one
3304 (add_location_to_breakpoint): New.
3305 (create_breakpoint): Accept symtabs_and_lines, not
3306 symtab_and_line. Pass extra sals to
3307 add_location_to_breakpoint.
3308 (create_breakpoints): Pass symtabs_and_lines to
3310 (break_command_1): Make pending breakpoints
3311 have zero locations.
3312 (do_captured_breakpoint): Remove wrong allocation.
3313 (clear_command): Iterate over all locations.
3314 (unlink_locations_from_global_list): Renamed
3315 from unlink_location_from_global_list. Remove
3317 (delete_breakpoint): Remove all locations.
3318 Iterate over all locations when deciding which
3319 other location to re-enable.
3320 (all_locations_are_pending): New.
3321 (update_breakpoint_locations): Renamed from
3322 update_breakpoint_location. Try to match old
3323 and new locations using names of containing
3325 (breakpoint_re_set_one): Adjust.
3326 (find_location_by_number): New.
3327 (disable_command): Allow disabling individual location.
3328 (enable_command): Allow enabling individual location.
3329 * breakpoint.c: Adjust all uses of breakpoint's
3330 enable state to for bp_shlib_disabled change.
3332 2007-09-22 Vladimir Prus <vladimir@codesourcery.com>
3334 * breakpoint.c (do_restore_lang_radix_cleanup): Remove.
3335 (resolve_pending_breakpoint): Remove.
3336 (re_enable_breakpoints_in_shlibs): Remove.
3337 (unlink_locations_from_global_list): New.
3338 (update_breakpoint_locations): New.
3339 (breakpoint_re_set_one): Don't bail out on pending breakpoints.
3340 Use parse_condition and update_breakpoint_location to
3341 reset breakpoint. Ignore 'symbol not found' error from
3343 (breakpoint_re_set): Don't emit newline before the
3344 reason why breakpoint is not reset.
3345 (do_enable_breakpoint): Don't specially process pending
3347 (free_bp_location): New.
3348 (break_command_1): For pending breakpoints, initialize
3349 all fields of a sal with zeroes.
3350 * breakpoint.h (re_enable_breakpoints_in_shlibs): Remove.
3351 * infcmd.c (post_create_inferior): Don't call
3352 re_enable_breakpoints_in_shlibs.
3353 * infrun.c (handle_inferior_event): Likewise.
3354 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
3355 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
3356 * win32-nat.c (get_win32_debug_event): Likewise.
3358 2007-09-22 Vladimir Prus <vladimir@codesourcery.com>
3360 * breakpoint.c (create_breakpoint): Split from
3361 create_breakpoints, implementing most of its logic.
3362 Take just a single sal, single address string and
3363 single condition. Do not take parsed condition at
3365 (create_breakpoints): Just call create_breakpoint
3367 (find_condition_and_thread): New.
3368 (break_command_1): Use find_condition_and_thread.
3369 Do not keep parsed conditions.
3370 (do_captured_breakpoint): Don't convert
3371 condition string to struct expression.
3373 2007-09-22 Vladimir Prus <vladimir@codesourcery.com>
3375 * breakpoint.h (struct breakpoint): Move the cond
3377 (struct bp_location): Here.
3378 * breakpoint.c (condition_command, bpstat_stop_status)
3379 (print_one_breakpoint, allocate_bp_location)
3380 (solib_load_unload_1, create_fork_vfork_event_catchpoint)
3381 (create_exec_event_catchpoint, create_breakpoints)
3382 (break_command_1, watch_command_1, handle_gnu_v3_exceptions)
3383 (create_ada_exception_breakpoint, set_breakpoint_sal)
3384 (delete_breakpoint, breakpoint_re_set_one): Adjust.
3385 * tui/tui-winsource.c (tui_update_breakpoint_info): Adjust.
3387 2007-09-22 Vladimir Prus <vladimir@codesourcery.com>
3389 Associate bp_stat with bp_location, not breakpoint.
3390 * breakpoint.h (breakpoint_at): Change type
3392 * breakpoint.c (bpstat_alloc): Take bp_location,
3394 (bpstat_find_breakpoint): Look at bpstat's location's
3395 owner, not at bpstat->breakpoint_at.
3396 (bpstat_find_step_resume_breakpoint): Likewise.
3397 (bpstat_num): Likewise.
3398 (print_it_typical): Likewise.
3399 (print_bp_stop_message): Likewise.
3400 (watchpoint_check): Likewise.
3401 (bpstat_what): Likewise.
3402 (bpstat_get_triggered_catchpoints): Likewise.
3403 (breakpoint_auto_delete): Likewise.
3404 (delete_breakpoint): Likewise.
3405 (bpstat_stop_status): Pass location, not breakpoint,
3406 to bpstat_alloc. Look at bpstat's location's
3407 owner, not at bpstat->breakpoint_at.
3409 2007-09-21 Jim Blandy <jimb@codesourcery.com>
3411 * macrotab.h (new_macro_table): Document that removing information
3412 from an obstack/bcache-managed macro table leaks memory.
3413 * macrotab.c (macro_free, macro_bcache_free): Instead of asserting
3414 that data is never freed in obstack/bcache-managed macro tables,
3415 just leak the storage.
3416 (macro_undef): If we're undefining a macro at exactly the same
3417 source location that we defined it, simply remove the definition
3420 2007-09-21 Joel Brobecker <brobecker@adacore.com>
3422 * symfile.h (struct sym_fns): Add new field sym_read_linetable.
3423 * coffread.c, dbxread.c, elfread.c, mipsread.c somread.c:
3424 Adjust the struct sym_fns object accordingly by setting
3425 the new field to NULL.
3426 * xcoffread.c (aix_process_linenos): Make static.
3427 (xcoff_sym_fns): Set new field to aix_process_linenos.
3428 * buildsym.c (end_symtab): Replace call to PROCESS_LINENUMBER_HOOK
3429 by call to new the new sym_fns sym_read_linetable function.
3430 * config/powerpc/aix.mt (DEPRECATED_TM_FILE): Delete.
3431 * config/rs6000/tm-rs6000.h: Delete.
3433 2007-09-21 David Ung <davidu@mips.com>
3434 Maciej W. Rozycki <macro@mips.com>
3436 * mips-tdep.c (mips_n32n64_push_dummy_call): Per N32/N64 ABI
3437 rules do not treat composite types specially.
3439 2007-09-20 Maciej W. Rozycki <macro@mips.com>
3441 * mips-tdep.c (mips32_in_function_epilogue_p): New function.
3442 (mips16_in_function_epilogue_p): Likewise.
3443 (mips_in_function_epilogue_p): Likewise.
3444 (mips_gdbarch_init): Register mips_in_function_epilogue_p().
3446 2007-09-19 Joel Brobecker <brobecker@adacore.com>
3448 * configure.ac: Add check for "etext".
3449 * configure, config.in: Regenerate.
3450 * maint.c (TEXTEND): Only define if either _etext or etext
3452 Disable the profiling functionality if TEXTEND is not defined.
3454 2007-09-19 Daniel Jacobowitz <dan@codesourcery.com>
3456 * mips-tdep.c (mips_stub_frame_cache): Correct the saved return
3457 address register. Correct the call to frame_id_build.
3458 (mips_stub_frame_sniffer): Use the stub unwinder when the PC
3461 2007-09-18 Joel Brobecker <brobecker@adacore.com>
3463 * ia64-tdep.c (refine_prologue_limit): Make sure we don't scan
3464 the linetable past the function end.
3466 2007-09-18 James E. Wilson <wilson@specifix.com>
3468 * MAINTAINERS: Update my email address.
3470 2007-09-18 Jerome Guitton <guitton@adacore.com>
3472 * inf-ttrace.c (inf_ttrace_private_thread_info): New structure type.
3473 (inf_ttrace_delete_dying_threads_callback): New function.
3474 (inf_ttrace_resume): After resuming the execution, iterate over
3475 the dying threads to delete them for the thread list.
3476 (inf_ttrace_wait): on TTEVT_LWP_EXIT and TTEVT_LWP_TERMINATE,
3477 mark the corresponding thread as dying instead of removing it
3478 from the thread list.
3479 (inf_ttrace_thread_alive): return 0 for dying threads.
3481 2007-09-17 Joel Brobecker <brobecker@adacore.com>
3483 * infrun.c (insert_step_resume_breakpoint_at_frame): Add assertion
3484 that return_frame is not null.
3486 2007-09-17 Joel Brobecker <brobecker@adacore.com>
3488 * solib-svr4.c: Add include of "auxv.h".
3489 (enable_break): Use the AT_BASE auxiliary entry if available.
3490 * Makefile.in (solib-svr4.o): Update dependencies.
3492 2007-09-17 Joel Brobecker <brobecker@adacore.com>
3494 * NEWS: Create a new section for the next release branch.
3495 Rename the section of the current branch, now that it has
3498 2007-09-17 Jerome Guitton <guitton@adacore.com>
3500 * dwarf2loc.c (dwarf_expr_frame_base): Guard against NULL.
3501 * Makefile.in (dwarf2loc.o): Depend on gdb_assert.h.
3503 2007-09-16 Vladimir Prus <vladimir@codesourcery.com>
3505 * mi/mi-cmds.c (mi_cmds): Register -list-features.
3506 * mi/mi-cmds.h (mi_cmd_list_features): New.
3507 * mi/mi-main.c (mi_cmd_list_features): New.
3509 2007-09-11 Joel Brobecker <brobecker@adacore.com>
3511 GDB 6.7 branch created (branch timestamp: 2007-09-07 14:00 UTC)
3512 * version.in: Bump version to 6.7.50-20070911-cvs.
3514 2007-09-10 Daniel Jacobowitz <dan@codesourcery.com>
3516 * thread.c (free_thread): Do not delete the step resume breakpoint
3519 2007-09-10 Daniel Jacobowitz <dan@codesourcery.com>
3521 * arch-utils.c (gdbarch_info_fill): Also try core_bfd.
3522 * corelow.c (core_read_description): New.
3523 (init_core_ops): Set to_read_description.
3524 * gdbarch.sh: Add gdbarch_core_read_description.
3525 * mips-linux-tdep.c (mips_linux_core_read_description): New.
3526 (mips_linux_init_abi): Call set_gdbarch_core_read_description.
3527 * mips-tdep.c (mips_tdesc_gp32, mips_tdesc_gp64): New.
3528 (mips_register_g_packet_guesses): Use them.
3529 (_initialize_mips_tdep): Initialize them.
3530 * mips-tdep.h (mips_tdesc_gp32, mips_tdesc_gp64): Declare.
3531 * gdbarch.h, gdbarch.c: Regenerated.
3533 2007-09-10 Ulrich Weigand <uweigand@de.ibm.com>
3535 * infrun.c (stepping_past_breakpoint): New global variable.
3536 (stepping_past_breakpoint_ptid): Likewise.
3537 (prepare_to_proceed): Add STEP parameter. Do not check for Ctrl-C.
3538 Only switch threads if we need to single-step over a breakpoint hit
3539 in the previously selected thread. If stepping, remember previous
3540 thread to switch back to in STEPPING_PAST_BREAKPOINT[_PTID]. Call
3541 switch_to_thread instead of copying its contents.
3542 (proceed): Pass STEP to prepare_to_proceed. Always set ONEPROC if
3543 prepare_to_proceed returns true.
3544 (init_wait_for_inferior): Reset STEPPING_PAST_BREAKPOINT.
3545 (context_switch): Call switch_to_thread.
3546 (handle_inferior_event): Switch back to previous thread if requested
3547 in STEPPING_PAST_BREAKPOINT[_PTID] by prepare_to_proceed.
3548 * gdbthread.h (switch_to_thread): Add prototype.
3549 * thread.c (switch_to_thread): Make global.
3551 2007-09-07 Pierre Muller <muller@ics.u-strasbg.fr>
3553 * p-valprint.c: Fix 7 ARI reported problems.
3554 (pascal_val_print): Fix one operator at end of line issue.
3555 Use paddress function to remove use of
3556 deprecated_print_address_numeric function (2 times).
3557 Use SYMBOL_LINKAGE_NAME instead of DEPRECATED_SYMBOL_NAME.
3558 (pascal_value_print): Fix 3 operator at end of line issues.
3560 2007-09-07 Daniel Jacobowitz <dan@codesourcery.com>
3563 * arm-tdep.c (arm_in_call_stub): Delete.
3564 (arm_skip_stub): Handle from_arm and from_thumb stubs.
3566 2007-09-06 Daniel Jacobowitz <dan@codesourcery.com>
3568 * ppc-sysv-tdep.c (do_ppc_sysv_return_value): Handle other integer
3571 2007-09-04 Daniel Jacobowitz <dan@codesourcery.com>
3572 Jim Blandy <jimb@codesourcery.com>
3574 * NEWS: Update description of string changes. Mention print/s.
3575 * c-valprint.c (textual_element_type): New.
3576 (c_val_print): Use it. Do not skip address printing for pointers
3577 with a string format.
3578 (c_value_print): Doc update.
3579 * dwarf2read.c (read_array_type): Use make_vector_type.
3580 * gdbtypes.c (make_vector_type): New.
3581 (init_vector_type): Use it.
3582 (gdbtypes_post_init): Initialize builtin_true_unsigned_char.
3583 (_initialize_gdbtypes): Mark int8_t and uint8_t as TYPE_FLAG_NOTTEXT.
3584 * gdbtypes.h (struct builtin_type): Add builtin_true_unsigned_char.
3585 (TYPE_FLAG_NOTTEXT, TYPE_NOTTEXT): New.
3586 (make_vector_type): New.
3587 * printcmd.c (print_formatted): Only handle 's' and 'i' for examine.
3588 Call the language print routine for string format.
3589 (print_scalar_formatted): Call val_print for string format. Handle
3590 unsigned original types for char format.
3591 (validate_format): Do not reject string format.
3592 * stabsread.c (read_type): Use make_vector_type.
3593 * xml-tdesc.c (tdesc_start_vector): Use init_vector_type.
3595 2007-09-04 Michael Snyder <msnyder@access-company.com>
3597 * expprint.c (print_subexp_standard): Check strchr for null.
3598 * Makefile.in (expprint.o): Depend on gdb_assert.h.
3600 * gnu-v2-abi.c (gnuv2_value_rtti_type): Guard against null.
3602 * stabsread.c (patch_block_status): Guard against null.
3603 * Makefile.in (stabsread.o): Depend on gdb_assert.h.
3605 2007-09-04 Daniel Jacobowitz <dan@codesourcery.com>
3607 * printcmd.c (printf_command): Handle ptr_arg. Correct typo
3608 in internal error message.
3610 2007-09-04 Pedro Alves <pedro_alves@portugalmail.pt>
3611 Daniel Jacobowitz <dan@codesourcery.com>
3613 * infcmd.c (post_create_inferior): Update comment.
3614 (run_command_1): Always call post_create_inferior with 0 as
3617 * i386-cygwin-tdep.h: New.
3618 * i386-cygwin-tdep.c: Include "i386-cygwin-tdep.h".
3619 (win32_xfer_shared_library): Make it extern.
3621 * win32-nat.c: Include gdb_obstack.h and xml-support.h and
3623 (win32_so_ops): Delete.
3624 (get_relocated_section_addrs): Delete.
3625 (solib_symbols_add): Delete.
3626 (register_loaded_dll): Delete.
3627 (win32_make_so): New.
3628 (handle_load_dll): Use win32_make_so.
3629 (win32_free_so): Free the passed in so.
3630 (win32_relocate_section_addresses): Delete.
3631 (win32_solib_create_inferior_hook): Delete.
3632 (handle_unload_dll): Don't add PE offset here. Free so with
3633 win32_free_so instead of free_so.
3634 (win32_special_symbol_handling): Delete.
3635 (get_win32_debug_event): Remove unneeded calls. Set state to
3636 TARGET_WAITKIND_LOADED on a dll unload.
3637 (do_initial_win32_stuff): Clear cygwin_load_start and
3639 (map_code_section_args): Delete.
3640 (dll_code_sections_add): Delete.
3641 (core_section_load_dll_symbols): Delete.
3642 (win32_xfer_shared_libraries): New.
3643 (win32_current_sos): Delete.
3644 (win32_xfer_partial): New.
3645 (open_symbol_file_object): Delete.
3646 (in_dynsym_resolve_code): Delete.
3647 (init_win32_ops): Set win32_xfer_partial as to_xfer_partial member
3648 of win32_ops. Remove win32_so_ops settings. Don't set
3649 current_target_so_ops here.
3651 * Makefile.in (i386_cygwin_tdep_h): New variable.
3652 (i386-cygwin-tdep.o): Update dependencies.
3653 (win32-nat.o): Update dependencies.
3655 2007-09-04 Pedro Alves <pedro_alves@portugalmail.pt>
3656 Daniel Jacobowitz <dan@codesourcery.com>
3658 * gdbarch.sh (core_xfer_shared_libraries): New.
3660 * corelow.c (core_xfer_partial): Handle TARGET_OBJECT_LIBRARIES.
3662 * gdb_obstack.h (obstack_grow_str, obstack_grow_str0): New.
3664 * xml-support.c (gdb_xml_parse): Debug output tweaks.
3665 (xml_escape_text): New.
3666 * xml-support.h (xml_escape_text): Declare.
3668 * config/i386/cygwin.mh (NATDEPFILES): Move corelow.o to ...
3669 * config/i386/cygwin.mt (TDEPFILES): ... here.
3671 * win32-nat.c: (fetch_elf_core_registers): Delete.
3672 (win32_elf_core_fn): Delete.
3673 (_initialize_core_win32): Delete.
3675 * i386-cygwin-tdep.c: Include "regset.h", "gdb_objstack.h",
3676 "xml-support.h" and "gdbcore.h".
3677 (i386_win32_gregset_reg_offset): New.
3678 (I386_WIN32_SIZEOF_GREGSET): New.
3679 (i386_win32_regset_from_core_section): New.
3680 (win32_xfer_shared_library): New.
3681 (struct cpms_data): New.
3682 (core_process_module_section): New.
3683 (win32_core_xfer_shared_libraries): New.
3684 (i386_cygwin_skip_trampoline_code): Register gregset_reg_offset,
3685 gregset_num_regs, sizeof_gregset members of tdep. Register
3686 regset_from_core_section and core_xfer_shared_libraries callbacks.
3688 * Makefile.in (i386-cygwin-tdep.o): Update dependencies.
3689 * gdbarch.h, gdbarch.c: Regenerate.
3691 2007-09-03 Daniel Jacobowitz <dan@codesourcery.com>
3693 * corelow.c (core_xfer_partial): Pass writebuf to
3694 deprecated_xfer_memory in TARGET_OBJECT_MEMORY write case.
3696 2007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
3698 * arm-tdep.h (arm_skip_stub): Declare.
3699 * arm-wince-tdep.c: Don't include "solib-svr4.h". Include
3701 (arm_pe_skip_trampoline_code): New function.
3702 (arm_wince_init_abi): Register arm_pe_skip_trampoline_code as
3703 gdbarch_skip_trampoline_code callback.
3704 * Makefile.in (arm-wince-tdep.o): Update dependencies.
3706 2007-09-03 Daniel Jacobowitz <dan@codesourcery.com>
3708 * MAINTAINERS: Move Fred Fish to Past Maintainers.
3710 2007-09-03 Daniel Jacobowitz <dan@codesourcery.com>
3712 * configure.ac: Add --with-expat.
3713 * configure: Regenerated.
3715 2007-09-03 Andreas Schwab <schwab@suse.de>
3717 * configure.ac: Accept --with-system-readline.
3718 (READLINE, READLINE_DEPS, READLINE_CFLAGS): Define and substitute.
3719 * configure: Regenerate.
3720 * Makefile.in (READLINE, READLINE_DEPS, READLINE_CFLAGS): Use
3722 (CDEPS): Use $(READLINE_DEPS) instead of $(READLINE).
3724 2007-09-03 Maxim Grigoriev <maxim2405@gmail.com>
3725 Daniel Jacobowitz <dan@codesourcery.com>
3727 * mi-main.c (mi_load_progress): Handle MI2 and MI3 interpreters.
3729 2007-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3731 * top.c (print_gdb_version): Fixed a string end-of-line compiler error.
3733 2007-09-02 Daniel Jacobowitz <dan@codesourcery.com>
3735 * top.c (print_gdb_version): Update for GPL version 3.
3737 2007-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3739 * NEWS: Mention the build-id .debug files verification.
3741 2007-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3743 * linux-nat.c (linux_nat_make_corefile_notes): Fixed a buffer overflow.
3745 2007-09-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3747 * Makefile.in (symfile.o): Update dependencies.
3748 * symfile.c (symbol_file_add_with_addrs_or_offsets): Initialize the
3749 DEBUGFILE variable. FIND_SEPARATE_DEBUG_FILE called only if !PSYMTABS.
3750 (struct build_id): New structure.
3751 (build_id_bfd_get, build_id_verify, build_id_to_debug_filename): New.
3752 (find_separate_debug_file): New variable BUILD_ID.
3753 Call BUILD_ID_BFD_GET with BUILD_ID_TO_DEBUG_FILENAME as the first try.
3755 2007-08-31 Vladimir Prus <vladimir@codesourcery.com>
3757 * varobj.c (struct varobj): Fix comment
3758 for the type member not to lie when it can be
3761 2007-08-31 Vladimir Prus <vladimir@codesourcery.com>
3763 Implement -var-info-path-expression.
3765 * mi/mi-cmds.h (mi_cmd_var_info_path_expression):
3767 * mi/mi-cmds.c (mi_cmds): Register var-info-path-expression.
3768 * mi/mi-cmd-var.c (mi_cmd_var_info_path_expression): New.
3769 * varobj.c (struct varobj): New field 'path_expr'.
3770 (c_path_expr_of_child, cplus_path_expr_of_child)
3771 (java_path_expr_of_child): New.
3772 (struct language_specific): New field path_expr_of_child.
3773 (varobj_create): Initialize the path_expr field.
3774 (varobj_get_path_expr): New.
3775 (new_variable): Initialize the path_expr field.
3776 (free_variable): Free the path_expr field.
3777 (adjust_value_for_children_access): New parameter
3779 (c_number_of_children): Adjust.
3780 (c_describe_child): New parameter CFULL_EXPRESSION.
3781 Compute full expression.
3782 (c_value_of_child, c_type_of_child): Adjust.
3783 (cplus_number_of_children): Adjust.
3784 (cplus_describe_child): New parameter CFULL_EXPRESSION.
3785 Compute full expression.
3786 (cplus_name_of_child, cplus_value_of_child)
3787 (cplus_type_of_child): Adjust.
3788 * varobj.h (varobj_get_path_expr): Declare.
3790 2007-08-31 Vladimir Prus <vladimir@codesourcery.com>
3792 * mi/mi-cmd-var.c (print_varobj): If a varobj
3793 type is NULL, don't try to print it.
3795 2007-08-30 Alan Modra <amodra@bigpond.net.au>
3797 * ppc-linux-nat.c (right_fill_reg): Delete.
3798 (supply_gregset): Use ppc_supply_gregset.
3799 (supply_fpregset): Use ppc_supply_fpregset.
3800 (fill_gregset): Use ppc_collect_gregset.
3801 (fill_fpregset): Use ppc_collect_fpregset.
3802 * ppc-linux-tdep.c (PPC_LINUX_PT_*): Don't define.
3803 (right_supply_register, ppc_linux_supply_gregset): Delete.
3804 (ppc32_linux_supply_gregset, ppc64_linux_supply_gregset): Delete.
3805 (ppc_linux_supply_fpregset): Delete.
3806 (ppc_linux_collect_gregset): New function.
3807 (ppc32_linux_reg_offsets, ppc64_linux_reg_offsets): New.
3808 (ppc32_linux_gregset, ppc64_linux_gregset): Update to use reg offsets,
3809 ppc_linux_supply_gregset, and ppc_collect_gregset.
3810 (ppc_linux_fpregset): Rename to ppc32_linux_fpregset and update.
3811 (ppc_linux_gregset, ppc_linux_fpregset): New functions.
3812 (ppc_linux_regset_from_core_section): Update.
3813 * ppc-tdep.h (ppc_linux_gregset, ppc_linux_fpregset): Declare.
3814 (ppc_linux_supply_gregset, ppc_linux_supply_fpregset): Delete.
3815 (struct ppc_reg_offsets): Add gpr_size, xr_size, fpscr_size fields.
3816 * ppcobsd-tdep.c (ppcobsd_supply_gregset): Delete FIXME and assert.
3817 (ppcobsd_collect_gregset): Likewise.
3818 (_initialize_ppcnbsd_tdep): Init gpr_size, xr_size, fpscr_size.
3819 * ppcnbsd-tdep.c (_initialize_ppcobsd_tdep): Likewise.
3820 * ppcobsd-nat.c (_initialize_ppcobsd_nat): Likewise.
3821 * rs6000-aix-tdep.c (rs6000_aix32_reg_offsets): Likewise.
3822 (rs6000_aix64_reg_offsets): Likewise.
3823 (rs6000_aix_supply_regset): Call ppc_supply_fpregset without testing
3824 ppc_floating_point_unit_p.
3825 (rs6000_aix_collect_regset): Similarly.
3826 * rs6000-tdep.c (ppc_supply_reg): Add regsize param. Adjust offset
3827 when regsize is larger than regcache register size.
3828 (ppc_collect_reg): Similarly zero pad when regsize is larger than
3829 regcache register size.
3830 (ppc_greg_offset): New function, split out from..
3831 (ppc_supply_gregset): ..here. Separate code handling all regs from
3832 single reg case. Correct xer offset.
3833 (ppc_fpreg_offset): New function, split out from..
3834 (ppc_supply_fpregset): ..here. Separate code handling all regs from
3836 (ppc_collect_gregset, ppc_collect_fpregset): Likewise.
3837 (ppc_supply_fpregset, ppc_collect_fpregset): Don't assert we have
3838 a fp unit, instead return if no fp.
3840 2007-08-29 Jim Blandy <jimb@codesourcery.com>
3842 * breakpoint.c (watch_command_1): Remove '#ifdef HPUXHPPA' block;
3843 this code has not been compiled for two years.
3845 2007-08-29 Michael Snyder <msnyder@access-company.com>
3847 * event-top.c (gdb_readline2): Return after EOF.
3849 2007-08-29 Joel Brobecker <brobecker@adacore.com>
3851 * symtab.c: Remove a function that has been commented out 3 years ago.
3853 2007-08-29 Randolph Chung <tausq@debian.org>
3855 * hppa-tdep.c (hppa32_cannot_fetch_register)
3856 (hppa64_cannot_fetch_register): New functions.
3857 (hppa_gdbarch_init): Set cannot_fetch_register appropriately.
3858 * hppa-tdep.h (hppa_regnum): Add HPPA_CR26_REGNUM.
3860 2007-08-28 Michael Snyder <msnyder@access-company.com>
3862 * mi/mi-cmd-var.c (mi_print_value_p): No longer necessary to
3863 check for null before calling check_typedef.
3865 * NEWS: Mention Coverity bug fixes.
3867 2007-08-27 Markus Deuling <deuling@de.ibm.com>
3869 * spu-tdep.c (spu_pointer_to_address): New function.
3870 (spu_integer_to_address): Likewise.
3871 (spu_gdbarch_init): Add spu_pointer_to_address and
3872 spu_integer_to_address to gdbarch.
3874 2007-08-26 Pedro Alves <pedro_alves@portugalmail.pt>
3876 * arm-wince-tdep.c (ARM_WINCE_JB_PC): Change to 10.
3878 2007-08-23 Joel Brobecker <brobecker@adacore.com>
3880 * Makefile.in (copying.c): Use the top-level COPYING3 as the file
3881 that contains the GDB license.
3882 * copying.awk: Adjust to the GPLv3 wording.
3883 * copying.c: Regenerate.
3885 2007-08-23 Joel Brobecker <brobecker@adacore.com>
3887 * copying.awk: Protoization, and i18n markup.
3889 2007-08-23 Joel Brobecker <brobecker@adacore.com>
3891 * config/djgpp/djconfig.sh: Switch license to GPLv3.
3892 * copyright.sh: Likewise.
3893 * gdb-events.sh: Likewise.
3894 * gdb_gcore.sh: Likewise.
3895 * gdb_mbuild.sh: Likewise.
3896 * gdbarch.sh: Likewise.
3897 * observer.sh: Likewise.
3898 * features/feature_to_c.sh: Likewise.
3899 * regformats/regdat.sh: Likewise.
3901 2007-08-23 Joel Brobecker <brobecker@adacore.com>
3903 Switch the license of all .c files to GPLv3.
3904 Switch the license of all .h files to GPLv3.
3905 Switch the license of all .cc files to GPLv3.
3907 2007-08-23 Joel Brobecker <brobecker@adacore.com>
3909 * configure.ac: Switch license to GPLv3.
3911 2007-08-22 Daniel Jacobowitz <dan@codesourcery.com>
3913 * mips-tdep.c (mips_gdbarch_init): Use Tag_GNU_MIPS_ABI_FP to
3914 determine the file's FPU type.
3916 2007-08-22 Daniel Jacobowitz <dan@codesourcery.com>
3918 * mips-tdep.c (mips_n32n64_fp_arg_chunk_p): New.
3919 (mips_n32n64_push_dummy_call): Always increment float_argreg along
3920 with argreg. Use mips_n32n64_fp_arg_chunk_p.
3922 2007-08-22 Daniel Jacobowitz <dan@codesourcery.com>
3924 * solib-svr4.c (scan_dyntag): Only read target memory when necessary.
3926 (elf_locate_base): Look for DT_MIPS_RLD_MAP first. Expand comments.
3927 (elf_lookup_lib_symbol): Fix formatting.
3929 2007-08-21 Michael Snyder <msnyder@access-company.com>
3931 * dbxread.c (read_dbx_symtab): Guard null deref.
3934 * valops.c (find_overload_match): Guard against NULL.
3936 2007-08-21 Daniel Jacobowitz <dan@codesourcery.com>
3938 * MAINTAINERS (Patch Champions): Remove self.
3940 2007-08-21 Chris Smith <chris.smith@st.com>
3942 * cli/cli-script.c (read_command_lines): Call dont_repeat for each
3945 2007-08-18 Michael Snyder <msnyder@access-company.com>
3947 * stabsread.c (dbx_lookup_type): Memory leak.
3949 * event-loop.c (delete_async_signal_handler): Move pointer null
3950 test to before pointer dereference.
3952 * ui-out.c (append_header_to_list): Possible cut and paste error.
3954 * MAINTAINERS: white space tweak.
3956 2007-08-17 Michael Snyder <msnyder@access-company.com>
3958 * stack.c (print_frame): Memory leak.
3960 * completer.c (filename_completer): Avoid memory leak.
3961 Remove unnecessary nested block.
3963 * c-exp.y (parse_number): Memory leak.
3965 * completer.c (location_completer): Must free 'fn_list', except
3966 in the one case where it is returned (as 'list').
3968 * varobj.c (value_of_root): Memory leak.
3970 * gdbtypes.h (virtual_base_list): Remove export decl.
3971 * gdbtypes.c (virtual_base_list): Make static. Not called outside.
3972 (virtual_base_index): Memory leak.
3973 (virtual_base_index_skip_primaries): Ditto.
3975 2007-08-17 Maxim Grigoriev <maxim2405@gmail.com>
3977 * xtensa-tdep.c (ARG_NOF, ARG_1ST, PS_WOE, PS_EXC, C0_MAXOPDS)
3978 (C0_NREGS, C0_CLESV, C0_SP, C0_FP, C0_RA, C0_ARGS, C0_NARGS)
3979 (C0_CONST, C0_INEXP, C0_NOSTK): New macros.
3980 (xtensa_read_register): New function.
3981 (xtensa_windowed_frame_cache, xtensa_call0_frame_cache, xtensa_c0reg)
3982 (xtensa_insn_kind): New types.
3983 (xtensa_frame_cache, xtensa_alloc_frame_cache, xtensa_frame_cache)
3984 (xtensa_frame_prev_register, xtensa_return_value, xtensa_skip_prologue)
3985 (xtensa_verify_config, xtensa_pseudo_register_read)
3986 (xtensa_pseudo_register_write, xtensa_extract_return_value)
3987 (xtensa_store_return_value)
3988 (xtensa_push_dummy_call): Extended to support Xtensa Call0 ABI.
3989 (windowing_enabled, extract_call_winsize, xtensa_unwind_dummy_id)
3990 (xtensa_frame_this_id, xtensa_frame_prev_register)
3991 (xtensa_register_type, xtensa_reg_to_regnum): Cosmetic changes.
3992 (call0_frame_cache, call0_frame_get_reg_at_entry)
3993 (call0_classify_opcode, call0_track_op)
3994 (call0_analyze_prologue, call0_frame_cache): New functions.
3996 2007-08-17 Vladimir Prus <vladimir@codesourcery.com>
3998 * breakpoint.c (bpstat_free): New.
3999 (bpstat_clear): Use bpstat_free.
4000 (delete_breakpoint): Document why we cannot
4001 remove bpstats from stop_bpstat.
4002 * breakpoint.h (bpstat_free): Declare.
4004 2007-08-16 Michael Snyder <msnyder@access-company.com>
4006 * event-loop.c (gdb_wait_for_event): Move statement into "if" block.
4008 2007-08-15 Paul Hilfinger <hilfinger@adacore.com>
4009 Joel Brobecker <brobecker@adacore.com>
4011 * ada-lang.c (resolve_subexp): Correct arity of binary operators.
4013 2007-08-15 Paul Hilfinger <hilfinger@adacore.com>
4014 Joel Brobecker <brobecker@adacore.com>
4016 * ada-lang.c (possible_user_operator_p): Alternative fix to last
4017 checkin guarding against NULL.
4019 2007-08-14 Michael Snyder <msnyder@access-company.com>
4021 * tui-command.c, tui-data.c, tui-disasm.c, tui-file.c, tui-io.c,
4022 tui-layout.c, tui-regs.c, tui-source.c, tui-win.c, tui-windata.c,
4023 tui-wingeneral.c, tui-winsource.c: Coding standard, && and ||
4024 go at beginning of new line.
4026 * tui-data.c, tui-data.h, tui-disasm.c, tui-disasm.h, tui-hooks.c,
4027 tui-io.c, tui-layout.c, tui-layout.h, tui-out.c, tui-regs.c,
4028 tui-source.c, tui-source.h, tui-stack.c, tui-win.c, tui-win.h,
4029 tui-windata.c, tui-windata.h, tui-wingeneral.c, tui-winsource.c,
4030 tui-winsource.h, tui.c, tui.h: Function declarations and
4031 definitions, wrap long lines.
4033 * tui-command.c, tui-data.c, tui-disasm.c, tui-layout.c,
4034 tui-regs.c, tui-win.c, tui-windata.c, tui-winsource.c, tui.c:
4035 Reformat block comments to GNU standard.
4037 * tui-command.c, tui-data.c, tui-data.h, tui-disasm.c, tui-file.c,
4038 tui-hooks.c, tui-interp.c, tui-io.c, tui-layout.c, tui-out.c,
4039 tui-regs.c, tui-regs.h, tui-source.c, tui-stack.c, tui-win.c,
4040 tui-windata.c, tui-wingeneral.c, tui-winsource.c, tui-winsource.h,
4041 tui.c, tui.h: Comment reformatting to coding standard (capitals,
4042 spaces after periods, etc).
4044 * tui-data.c, tui-data.h, tui-disasm.c, tui-hooks.c, tui-layout.c,
4045 tui-regs.c, tui-source.c, tui-stack.c, tui-win.c, tui-windata.c,
4046 tui-wingeneral.c, tui-wingeneral.h, tui-winsource.c, tui.c,
4047 tui-winsource.h: Whitespace changes, fix pointer declarations
4050 2007-08-14 Joel Brobecker <brobecker@adacore.com>
4051 Michael Snyder <msnyder@access-company.com>
4053 * ada-lang.c (field_alignment): Guard against NULL.
4055 2007-08-14 Joel Brobecker <brobecker@adacore.com>
4057 * MAINTAINERS (Global Maintainers): Add self.
4059 2007-08-14 Michael Snyder <msnyder@access-company.com>
4061 * mi/mi-interp.c (mi_cmd_interpreter_exec): Dead code, dead variable.
4063 * ada-lang.c (possible_user_operator_p): Guard against NULL.
4065 * varobj.c (cplus_describe_child): Guard against null.
4066 Use "NULL" instead of "0" to initialize pointers.
4068 2007-08-14 Daniel Jacobowitz <dan@codesourcery.com>
4070 * arm-tdep.c (arm_gdbarch_init): Allow unknown ABI and FPU settings
4071 to match any gdbarch with matching OSABI. Set default ABI and FPU
4072 after running the OSABI handler.
4074 2007-08-14 Daniel Jacobowitz <dan@codesourcery.com>
4076 * config/i386/linux.mh (NATDEPFILES): Move corelow.o from here...
4077 * config/i386/linux.mt (TDEPFILES): ...to here.
4079 2007-08-14 Vladimir Prus <vladimir@codesourcery.com>
4081 * breakpoint.c (disable_breakpoints_in_shlibs): Remove
4082 the 'silent' parameter and code to implement that.
4083 * breakpoint.h (disable_breakpoints_in_shlibs): Adjust
4085 * win32-nat.c: Adjust.
4088 2007-08-14 Vladimir Prus <vladimir@codesourcery.com>
4090 * breakpoint.c (update_breakpoints_after_exec): Don't
4091 set address to zero.
4093 2007-08-13 Michael Snyder <msnyder@access-company.com>
4095 * valops.c: Whitespace clean-up.
4097 * tui/tui-winsource.c (tui_alloc_source_buffer): Clean up allocation.
4099 * event-top.c (command_line_handler): Memory leak.
4101 * mi/mi-cmd-var.c (mi_cmd_var_set_format): Memory leak.
4102 No need to make copy.
4104 * source.c (find_source_lines): Require symtab 's'.
4106 2007-08-11 Michael Snyder <msnyder@access-company.com>
4108 * completer.c: Spelling fix in comments.
4110 2007-08-10 Michael Snyder <msnyder@access-company.com>
4112 * gdbtypes.c: Coding standard cleanup.
4113 * gdbtypes.c: Comment/whitespace cleanup.
4115 * stabsread.c (read_huge_number): Attempt to compute value before
4116 values that it depends on.
4118 * linespec.c (decode_dollar): Dead code, ptr can't be non-null.
4119 (decode_objc): Use "NULL" instead of 0.
4120 (find_method): Ditto.
4121 (decode_all_digits): Ditto.
4122 (decode_dollar): Ditto.
4124 * mi/mi-main.c (mi_cmd_data_evaluate_expression): Resource leak.
4126 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Memory leak.
4128 * solib-svr4.c (enable_break): Don't free tmp_pathname until
4131 * completer.c: Comment/whitespace cleanup.
4133 2007-08-10 Joel Brobecker <brobecker@adacore.com>
4135 * Makefile.in (i386nbsd-nat.o): Add missing dependency.
4137 2007-08-10 Maxim Grigoriev <maxim2405@gmail.com>
4139 * remote-fileio.c (remote_fileio_resize_fd_map): Initialize newly
4140 allocated file descriptors.
4142 2007-08-10 Joel Brobecker <brobecker@adacore.com>
4144 * Makefile.in: Minor cleanup throughout; add some missing variables,
4145 add some missing rules, remove some rules that are no longer needed,
4146 and fix the dependencies in several rules.
4148 2007-08-10 Ludovic Courtès <ludo@gnu.org>
4150 * Makefile.in (SFILES): Add scm-{exp,lang,valprint}.c.
4151 (scm_lang_h, scm_tags_h): New.
4152 (COMMON_OBS): Add scm-{exp,lang,valprint}.o.
4153 (scm-exp.o, scm-lang.o, scm-valprint.o): New targets.
4154 * defs.h (enum language): Add `language_scm'.
4156 * MAINTAINERS: Add Emacs local variables to use UTF-8 upon
4159 2007-08-09 Ludovic Courtès <ludo@gnu.org>
4161 * MAINTAINERS (Write After Approval): Add myself.
4163 2007-08-09 Michael Snyder <msnyder@access-company.com>
4165 * solib.c (solib_open): Memory leak -- openp returns xmalloc buffer.
4167 2007-08-09 Joel Brobecker <brobecker@adacore.com>
4169 * solib-som.c (som_relocate_section_addresses): Stop saving
4170 the $CODE$ section in the so_list structure.
4172 2007-08-08 Maxim Grigoriev <maxim2405@gmail.com>
4174 * xtensa-tdep.h (XTENSA_MAX_COPROCESSOR): New.
4175 (xtensa_register_group_t): Add entries for coprocessors.
4176 * xtensa-tdep.c (xtensa_init_reggroups): New register groups.
4177 (xtensa_add_reggroups): Likewise.
4178 (xtensa_register_reggroup_p): Likewise.
4179 (xtensa_coprocessor_register_group): New function.
4182 2007-08-08 Jan Kratochvil <jan.kratochvil@redhat.com>
4184 * serial.c (serial_open): Fix the OPEN parameter macro expansion.
4186 2007-08-08 Michael Snyder <msnyder@access-company.com>
4188 * target.c (target_read_string): Guard against null.
4190 * varobj.c (value_of_root): Move alloc after return to avoid leak.
4192 * tui/tui-layout.c (tui_set_layout): Dead code, dead variable.
4193 (tui_set_layout_for_display_command): Mem leak.
4195 * top.c (command_line_input): Memory leak.
4197 * solib-svr4.c (open_symbol_file_object): Memory leak.
4198 (svr4_current_sos): Ditto.
4199 (enable_break): Ditto.
4201 * cp-valprint.c (cp_print_hpacc_virtual_table_entries): Memory leak.
4203 * dwarf2read.c (add_partial_symbol): Memory leak.
4205 2007-08-06 Michael Snyder <msnyder@access-company.com>
4207 * ada-lang.c (desc_bounds): Comparison of function address to NULL.
4209 2007-08-05 Jim Blandy <jimb@codesourcery.com>
4211 * macroexp.c (init_buffer): Remove testing code that overrides the
4212 caller's length guess.
4213 (gather_arguments): Use a larger initial size, now that the vector
4214 growth code has been exercised.
4216 2007-08-05 Pedro Alves <pedro_alves@portugalmail.pt>
4218 * solib-target.c (solib_target_relocate_section_addresses): Add
4219 orig_delta to addr_high.
4221 2007-08-04 Michael Snyder <msnyder@access-company.com>
4223 * remote-fileio.c (remote_fileio_func_write): Memory leak.
4225 * breakpoint.c (print_one_breakpoint): Off by one error.
4227 * tracepoint.c (add_register): Off by one error.
4228 (stringify_collection_list): Free malloc buffer.
4230 2007-08-03 Michael Snyder <msnyder@access-company.com>
4232 * mi-cmd-var.c (mi_cmd_var_delete): Remove unused variable,
4233 stop memory leak, straighten out cleanups.
4235 * jv-lang.c (java_link_class_type): Guard against NULL.
4237 2007-08-02 Michael Snyder <msnyder@access-company.com>
4239 * gdbtypes.c (create_set_type): Test should only be done within
4240 the preceeding if block. Otherwise, variable is uninitialized.
4242 * gdbtypes.c (check_typedef): Guard NULL.
4244 2007-08-01 Michael Snyder <msnyder@access-company.com>
4246 * cli/cli-decode.c (lookup_cmd): Check for null earlier, to
4247 avoid dereference in lookup_cmd_1.
4249 * tui/tui-data.c (tui_alloc_content): Move assign out of if,
4250 clean up long lines.
4251 (tui_alloc_generic_win_info): Tidy by using XMALLOC macro.
4252 (tui_alloc_win_info): Ditto.
4253 (tui_add_content_elements): Ditto.
4254 * tui/tui-file.c (tui_file_magic): Ditto.
4256 2007-07-31 Michael Snyder <msnyder@access-company.com>
4258 * breakpoint.c (breakpoint_init_inferior): Add 'else' to 'if'.
4259 True and false paths are mutually exclusive.
4261 * event-top.c (command_line_handler): Add pedantic return.
4263 * f-valprint.c (info_common_command): Bail out to prevent null
4264 pointer deref. Break up a long line.
4266 * exec.c (xfer_memory): Remove redundant condition from 'if'.
4268 * symfile.c (reread_separate_symbols): Free xmalloced memory.
4270 * printcmd.c (build_address_symbolic): Remove dead code and dead
4273 2007-07-31 Daniel Jacobowitz <dan@codesourcery.com>
4275 * linespec.c (minsym_found): Advance to the next line if possible.
4277 2007-07-31 Pedro Alves <pedro_alves@portugalmail.pt>
4279 * arm-wince-tdep.c (arm_wince_init_abi): Remove svr4 related call.
4280 * config/arm/wince.mt (TDEPFILES): Remove solib-legacy.o and
4281 solib-svr4.o, and add solib-target.o
4283 2007-07-27 Michael Snyder <msnyder@access-company.com>
4285 * tui/tui-data.c (tui_alloc_generic_win_info): Wrong arg for sizeof.
4287 2007-07-26 Maciej W. Rozycki <macro@linux-mips.org>
4289 * MAINTAINERS (Write After Approval): Add myself.
4291 2007-07-26 Maciej W. Rozycki <macro@mips.com>
4293 * Makefile.in (MAKEHTMLFLAGS): Also search the current directory
4296 2007-07-25 Maciej W. Rozycki <macro@mips.com>
4298 * Makefile.in (MAKEHTMLFLAGS): Remove "-glossary".
4300 2007-07-24 Michael Snyder <msnyder@access-company.com>
4302 * solib-svr4.c (svr4_fetch_objfile_link_map): Null pointer check of
4303 'buffer' must cover both branches that call strcmp (Coverity).
4305 * stack.c (print_frame_args): Check return value of lookup_symbol.
4307 * ax-gdb.c (find_field): Guard against null ptr.
4309 2007-07-24 Ulrich Weigand <uweigand@de.ibm.com>
4311 * regformats/reg-spu.dat: Fix order of npc, id registers.
4313 2007-07-24 Ulrich Weigand <uweigand@de.ibm.com>
4315 * target.c (memory_xfer_partial): Accesses to unmapped overlay
4316 sections should always go to the executable file.
4318 2004-07-20 Chris Dearman <chris@mips.com>
4320 * mips-tdep.c (heuristic_proc_start): Add more MIPS16 function
4321 prologue instructions.
4323 2007-07-20 Maciej W. Rozycki <macro@mips.com>
4325 * mips-tdep.c (mips_next_pc): Use is_mips16_addr() instead of
4328 2007-07-20 Chris Dearman <chris@mips.com>
4329 Maciej W. Rozycki <macro@mips.com>
4331 * mips-tdep.c (fetch_mips_16): Fix typos and reformat the
4334 2007-07-17 Pedro Alves <pedro_alves@portugalmail.pt>
4335 Daniel Jacobowitz <dan@codesourcery.com>
4337 * config/i386/cygwin.mt (TDEPFILES): Add solib-target.o.
4338 * coff-pe-read.c (read_pe_exported_syms): Delete verbose
4340 * NEWS: Mention gdbserver DLL support.
4342 2007-07-17 Daniel Jacobowitz <dan@codesourcery.com>
4344 * dwarf2read.c (dwarf_decode_lines): Detect address size mismatches.
4346 2007-07-16 H.J. Lu <hongjiu.lu@intel.com>
4348 * i386-linux-nat.c (fetch_regs): Work around gcc 3.4 alias
4351 2007-07-13 Kevin Buettner <kevinb@redhat.com>
4353 * mep-tdep.c (mep_analyze_prologue): Update comment for BRA
4356 2007-07-12 Kevin Buettner <kevinb@redhat.com>
4358 * mep-tdep.c (IS_BRA, BRA_DISP): New macros.
4359 (mep_analyze_prologue): Add case for BRA instruction.
4361 2007-07-12 Ulrich Weigand <uweigand@de.ibm.com>
4363 * solib-svr4.c (LM_ADDR_CHECK): Relax prelink recognition heuristic.
4365 2007-07-10 Nick Roberts <nickrob@snap.net.nz>
4367 * breakpoint.c: Include "top.h".
4368 (breakpoint_1): Don't set convenience variable $_ if server prefix
4370 (_initialize_breakpoint): Describe this behaviour in command help.
4372 2007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
4374 * solib-target.c (library_list_start_segment): Cast address to
4377 2007-07-06 Mark Kettenis <kettenis@gnu.org>
4379 * bsd-uthread.c (bsd_uthread_wait): Don't try to fetch thread IDs
4380 for terminated processes.
4382 2007-07-05 Michael Snyder <msnyder@access-company.com>
4384 * event-top.c (cli_command_loop): Prompt string can (and should)
4385 be freed after call to readline (Coverity). Also move local var
4386 declarations into block where they are used.
4388 * tui/tui-interp.c (tui_command_loop): Prompt string can (and
4389 should) be freed after call to readline (Coverity). Also move
4390 local var declarations into block where they are used.
4392 2007-07-03 Andreas Schwab <schwab@suse.de>
4394 * linux-nat.c (linux_nat_info_proc_cmd): Fix parsing of columns in
4397 2007-07-03 Paul Gilliam <pgilliam@us.ibm.com>
4398 Thiago Bauermann <bauerman@br.ibm.com>
4399 Joseph S. Myers <joseph@codesourcery.com>
4400 Daniel Jacobowitz <dan@codesourcery.com>
4402 * remote.c (remote_check_symbols): Use
4403 gdbarch_convert_from_func_ptr_addr.
4404 * infcall.c (find_function_addr): Handle function descriptors
4405 without debugging information.
4406 * ppc-linux-tdep.c (ppc_linux_convert_from_func_ptr_addr): Renamed
4407 from ppc64_linux_convert_from_func_ptr_addr. Handle -msecure-plt.
4408 (ppc_linux_init_abi): Always set convert_from_func_ptr_addr.
4409 * solib-svr4.c (solib_break_names): Remove "._dl_debug_state".
4410 (bfd_lookup_symbol): Do not take a SECT_FLAGS argument. Always
4411 allow SEC_CODE and SEC_DATA.
4412 (enable_break): Update calls. Pass current_target to solib_add.
4413 Use gdbarch_convert_from_func_ptr_addr.
4415 2007-07-03 Ilko Iliev <iliev@ronetix.at>
4416 Daniel Jacobowitz <dan@codesourcery.com>
4418 * symfile.c (print_transfer_performance): Avoid integer overflow.
4421 2007-07-03 Markus Deuling <deuling@de.ibm.com>
4423 * cp-namespace.c (lookup_symbol_file): Add block to
4424 lookup_symbol_global call.
4425 * Makefile.in (solist_h): Add dependency on symtab header.
4426 (symtab.o): Add dependency on solist header.
4427 * solib.c (solib_global_lookup): New function.
4428 * solib-svr4.c (scan_dyntag): Likewise.
4429 (elf_locate_base): Call helper routine scan_dyntag.
4430 (elf_lookup_lib_symbol): New function.
4431 (_initialize_svr4_solib): Add elf_lookup_lib_symbol to svr4_so_ops.
4432 * solist.h (symtab.h): New include.
4433 (struct target_so_ops): New member lookup_lib_global_symbol.
4434 (solib_global_lookup): New prototype.
4435 * symtab.c: New include solist.h.
4436 (lookup_objfile_from_block): New function.
4437 (lookup_global_symbol_from_objfile): New function.
4438 (basic_lookup_symbol_nonlocal): Add block to lookup_symbol_global call.
4439 (lookup_symbol_global): Call library-specific lookup procedure.
4440 * symtab.h (lookup_global_symbol_from_objfile): New prototype.
4442 * NEWS: Document framework.
4444 2007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
4446 * target-descriptions.c (tdesc_create_reg): Do not set reg->type
4449 * cli/cli-script.c (build_command_line): Update NULL check.
4451 2007-07-02 Michael Snyder <msnyder@access-company.com>
4453 * p-exp.y (yylex): Memory leak, 'uptokstart' must be freed (Coverity).
4455 2007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
4457 * Makefile.in (XMLFILES): Add library-list.dtd.
4458 (ALLDEPFILES): Add solib-target.o.
4459 (solib-target.o): New rule.
4460 * remote.c (PACKET_qXfer_libraries): New constant.
4461 (remote_protocol_features): Add qXfer:libraries:read.
4462 (remote_wait): Recognize library stop replies.
4463 (remote_async_wait): Likewise. Fix typo.
4464 (remote_xfer_partial): Handle TARGET_OBJECT_LIBRARIES.
4465 (init_remote_async_ops): Fix typo.
4466 (_initialize_remote): Register "set remote library-info-packet".
4467 * solib-som.c (som_current_sos): Set addr_low and addr_high.
4468 * solib-target.c: New file.
4469 * solib.c (solib_map_sections): Use addr_low and addr_high instead
4471 (info_sharedlibrary_command): Likewise.
4472 (solib_add_library, solib_remove_library): New.
4473 * solist.h (struct so_list): Replace textsection with addr_low and
4475 * target.h (enum target_object): Add TARGET_OBJECT_LIBRARIES.
4476 * NEWS: Describe new qXfer:libraries:read and shared library
4478 * features/library-list.dtd: New.
4480 2007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
4482 * infrun.c (inferior_ignoring_startup_exec_events): Delete.
4483 (start_remote): Use STOP_QUIETLY_REMOTE.
4484 (handle_inferior_event): Do not condition TARGET_WAITKIND_LOADED
4485 support on a SOLIB_ADD definition. Update breakpoints_inserted.
4486 Update to match shared library event breakpoint support. Only
4487 resume if appropriate. Handle STOP_QUIETLY_REMOTE.
4488 (normal_stop): Handle TARGET_WAITKIND_LOADED.
4489 * fork-child.c (startup_inferior): Do not set
4490 inferior_ignoring_startup_exec_events
4491 * inferior.h (inferior_ignoring_startup_exec_events): Delete
4493 (enum stop_kind): Improve documentation. Add STOP_QUIETLY_REMOTE.
4495 2007-07-02 Markus Deuling <deuling@de.ibm.com>
4497 * breakpoint.c (insert_bp_location): Remove dead code
4498 (DISABLE_UNSETTABLE_BREAK).
4499 (disable_breakpoints_in_shlibs)
4500 (disable_breakpoints_in_unloaded_shlib): Likewise (comment).
4502 2007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
4504 * breakpoint.c (reattach_breakpoints): Do not use remove_breakpoint.
4505 Call insert_bp_location.
4507 2007-07-01 H.J. Lu <hongjiu.lu@intel.com>
4509 * core-regset.c (fetch_core_registers): Work around gcc 3.4
4512 2007-07-01 Daniel Jacobowitz <dan@codesourcery.com>
4514 * minsyms.c (lookup_minimal_symbol_by_pc_section): Search fewer
4517 2007-07-01 Daniel Jacobowitz <dan@codesourcery.com>
4519 * top.c (gdb_readline_wrapper_line): Call rl_callback_handler_remove.
4520 (struct gdb_readline_wrapper_cleanup): Remove prompt_orig.
4521 (gdb_readline_wrapper_cleanup): Do not reset the prompt.
4522 (gdb_readline_wrapper): Do not save the prompt. Pass our prompt
4523 to display_gdb_prompt.
4525 2007-07-01 Daniel Jacobowitz <dan@codesourcery.com>
4528 * target.c (memory_xfer_partial): Do not continue past targets with
4531 2007-06-30 Andreas Schwab <schwab@suse.de>
4533 * m68k-tdep.c (m68k_ps_type): New.
4534 (m68k_init_types): New.
4535 (m68k_register_type): Use m68k_ps_type for PS register.
4536 (_initialize_m68k_tdep): Call m68k_init_types.
4538 * m68k-tdep.c (m68k_gdbarch_init): Don't infer coldfire flavour
4539 from the generic m68k arch.
4541 2007-06-28 Michael Snyder <msnyder@access-company.com>
4543 * m2-typeprint.c (m2_print_type): Move pointer ref after null test
4546 * linux-thread-db.c (thread_db_get_thread_local_address): Add
4547 gdb_assert before using return value of find_thread_pid (Coverity).
4549 * source.c (unset_substitute_path_command): Plug leak (Coverity).
4551 * cli/cli-script.c (build_command_line): Add null pointer guard
4554 2007-06-27 Daniel Jacobowitz <dan@codesourcery.com>
4556 * linux-thread-db.c (thread_db_attach): Delete.
4557 (thread_db_detach): Typo fix. Call target_mourn_inferior
4558 instead of fixing up proc_handle.
4559 (have_threads_callback, have_threads): New functions.
4560 (thread_db_wait): Remove dead proc_handle.pid check. Only
4561 translate PTIDs if we have registered threads. Check for new
4562 threads if we have none.
4563 (thread_db_create_inferior, thread_db_post_startup_inferior): Delete.
4564 (find_new_threads_callback): Only enable event reporting if TID == 0.
4565 (same_ptid_callback): New.
4566 (thread_db_get_thread_local_address): Check for new threads.
4567 (init_thread_db_ops): Don't set to_attach, to_create_inferior,
4568 or to_post_startup_inferior.
4570 2007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
4572 * infrun.c (adjust_pc_after_break): Do not assume software single-step
4573 is always active if SOFTWARE_SINGLE_STEP_P is true.
4574 (resume): Use gdbarch_software_single_step[_p] instead of
4575 SOFTWARE_SINGLE_STEP[_P].
4576 (handle_inferior_event): Do not check for SOFTWARE_SINGLE_STEP_P.
4578 * gdbarch.sh (software_single_step): Remove target macro.
4579 * gdbarch.h, gdbarch.c: Regenerate.
4581 2007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
4583 * gdbarch.sh (gdbarch_swap_ftype, deprecated_register_gdbarch_swap,
4584 DEPRECATED_REGISTER_GDBARCH_SWAP): Remove.
4585 (struct gdbarch_swap, struct gdbarch_swap_registration,
4586 struct gdbarch_swap_registry, gdbarch_swap_registry,
4587 current_gdbarch_swap_init_hack, current_gdbarch_swap_out_hack,
4588 current_gdbarch_swap_in_hack): Remove.
4589 (find_arch_by_info): Do not call current_gdbarch_swap_init_hack.
4590 (gdbarch_find_by_info): Do not call current_gdbarch_swap_in_hack
4591 and current_gdbarch_swap_out_hack, update current_gdbarch directly.
4592 (deprecated_current_gdbarch_select_hack): Likewise.
4593 * gdbarch.h, gdbarch.c: Regenerate.
4595 2007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
4597 * infrun.c (clear_proceed_status): Clean up stop_registers.
4598 (normal_stop): Allocate regcache for stop_registers.
4599 (struct inferior_status): Remove stop_registers member.
4600 (save_inferior_status): Do not save stop_registers.
4601 (restore_inferior_status): Do not restore stop_registers.
4602 (discard_inferior_status): Do not discard stop_registers.
4603 (build_infrun): Remove.
4604 (_initialize_infrun): Do not swap stop_registers.
4606 2007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
4608 * remote.c (remote_address_masked): If remote_address_size is zero,
4609 default to target address size.
4610 (build_remote_gdbarch_data): Remove.
4611 (_initialize_remote): Do not swap remote_address_size.
4613 2007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
4615 * gdbtypes.h (builtin_type_true_char, builtin_type_void,
4616 builtin_type_char, builtin_type_short, builtin_type_int,
4617 builtin_type_long, builtin_type_signed_char,
4618 builtin_type_unsigned_char, builtin_type_unsigned_short,
4619 builtin_type_unsigned_int, builtin_type_unsigned_long,
4620 builtin_type_float, builtin_type_double, builtin_type_long_double,
4621 builtin_type_complex, builtin_type_double_complex, builtin_type_string,
4622 builtin_type_bool, builtin_type_long_long,
4623 builtin_type_unsigned_long_long, builtin_type_void_data_ptr,
4624 builtin_type_void_func_ptr, builtin_type_CORE_ADDR): Replace global
4625 variable declaration with compatibility macro.
4626 * gdbtypes.c (builtin_type_true_char, builtin_type_void,
4627 builtin_type_char, builtin_type_short, builtin_type_int,
4628 builtin_type_long, builtin_type_signed_char,
4629 builtin_type_unsigned_char, builtin_type_unsigned_short,
4630 builtin_type_unsigned_int, builtin_type_unsigned_long,
4631 builtin_type_float, builtin_type_double, builtin_type_long_double,
4632 builtin_type_complex, builtin_type_double_complex, builtin_type_string,
4633 builtin_type_bool, builtin_type_long_long,
4634 builtin_type_unsigned_long_long, builtin_type_void_data_ptr,
4635 builtin_type_void_func_ptr, builtin_type_CORE_ADDR): Remove.
4636 (build_gdbtypes): Remove.
4637 (_initialize_gdbtypes): Do not call build_gdbtypes, move installing
4638 opaque-type-resolution command here. Do not call
4639 deprecated_register_gdbarch_swap.
4641 2007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
4643 * gdbtypes.h (struct builtin_type): New members nodebug_text_symbol,
4644 nodebug_data_symbol, nodebug_unknown_symbol, and nodebug_tls_symbol.
4645 * gdbtypes.c (gdbtypes_post_init): Initialize nodebug_ default types.
4647 * parse.c (msym_text_symbol_type, msym_data_symbol_type): Remove.
4648 (msym_unknown_symbol_type, msym_tls_symbol_type): Remove.
4649 (write_exp_msymbol): Use builtin nodebug_ types instead of them.
4650 (build_parse): Remove.
4651 (_initialize_parse): Do not call build_parse. Do not register
4652 msym_ types for gdbarch-swapping.
4654 * dwarf2read.c (new_symbol): Use default nodebug_data_symbol type
4655 instead of creating private type.
4657 * xcoffread.c (func_symbol_type, var_symbol_type): Remove.
4658 (_initialize_xcoffread): Do not initialized them.
4659 (process_xcoff_symbol): Use builtin nodebug_ types instead of them.
4661 * mdebugread.c (nodebug_func_symbol_type): Remove.
4662 (nodebug_var_symbol_type): Remove.
4663 (_initialize_mdebugread): Do not initialize them.
4664 (parse_symbol): Use builtin nodebug_ type instead of them.
4665 (parse_procedure): Likewise.
4667 2007-06-21 Chris Dearman <chris@mips.com>
4669 * printcmd.c (do_one_display): If display/i, start with an initial
4670 line feed to avoid bad layout if there is a branch delay slot.
4672 2007-06-21 Nigel Stephens <nigel@mips.com>
4673 Maciej W. Rozycki <macro@mips.com>
4675 * disasm.c (gdb_print_insn): Return the number of branch delay
4676 slot instructions too.
4677 * disasm.h (gdb_print_insn): Update prototype.
4678 * printcmd.c (branch_delay_insns): New variable to record the
4679 number of delay slot instructions after disassembling a branch.
4680 (print_formatted): Record the number of branch delay slot
4682 (do_examine): When disassembling, if the last instruction
4683 disassembled has any branch delay slots, then bump the count so
4684 that they get disassembled too.
4685 * tui/tui-disasm.c (tui_disassemble): Update the call to
4687 * NEWS: Document the new behaviour.
4689 2007-06-21 Andreas Schwab <schwab@suse.de>
4691 * regcache.c (write_pc_pid): Restore missing else.
4693 2007-06-20 Ulrich Weigand <uweigand@de.ibm.com>
4695 * regcache.c (regcache_print): Use get_current_regcache ()
4696 instead of current_regcache.
4698 2007-06-20 H.J. Lu <hongjiu.lu@intel.com>
4701 * gcore.c (gcore_command): Use bfd_make_section_anyway_with_flags
4702 instead of bfd_make_section_anyway.
4703 (gcore_create_callback): Likewise. Also set SEC_NEVER_LOAD
4704 when clearing SEC_LOAD.
4706 2007-06-19 Joseph Myers <joseph@codesourcery.com>
4708 * arm-tdep.c (arm_push_dummy_call): Correct padding of partial
4709 registers for big-endian.
4711 2007-06-19 Markus Deuling <deuling@de.ibm.com>
4713 * gdbarch.sh (TARGET_PRINT_INSN): Replace by gdbarch_print_insn.
4714 * disasm.c (dump_insns, gdb_print_insn): Likewise.
4715 * gdbarch.c, gdbarch.h: Regenerate.
4717 2007-06-19 Markus Deuling <deuling@de.ibm.com>
4719 * gdbarch.sh (BELIEVE_PCC_PROMOTION): Replace by
4720 gdbarch_believe_pcc_promotion.
4721 * stabsread.c (define_symbol): Likewise.
4722 Remove unnecessary definition.
4723 * coffread.c (process_coff_symbol): Remove unnecessary code.
4724 * gdbarch.c, gdbarch.h: Regenerate.
4726 2007-06-19 Daniel Jacobowitz <dan@codesourcery.com>
4728 * configure.ac: Do not use ${objdir}.
4729 * configure: Regenerated.
4731 2007-06-18 Ulrich Weigand <uweigand@de.ibm.com>
4733 * gdbarch.sh (deprecated_register_size): Remove.
4734 * gdbarch.h, gdbarch.c: Regenerate.
4736 * arm-tdep.c (arm_push_dummy_call): Replace DEPRECATED_REGISTER_SIZE
4737 by INT_REGISTER_SIZE.
4738 (thumb_get_next_pc, arm_return_in_memory): Likewise.
4739 (arm_gdbarch_init): Do not call set_gdbarch_deprecated_register_size.
4740 * ia64-tdep.c (ia64_gdbarch_init): Do not call
4741 set_gdbarch_deprecated_register_size.
4743 2007-06-18 Markus Deuling <deuling@de.ibm.com>
4745 * gdbarch.sh (DEPRECATED_FP_REGNUM): Replace by
4746 gdbarch_deprecated_fp_regnum.
4747 * std-regs.c (value_of_builtin_frame_fp_reg): Likewise.
4748 * remote-mips.c (mips_wait, mips_fetch_registers): Likewise.
4749 * arch-utils.c (legacy_virtual_frame_pointer): Likewise.
4750 * arch-utils.h (gdbarch_virtual_frame_pointer_ftype): Likewise
4752 * gdbarch.c, gdbarch.h: Regenerate.
4754 2007-06-18 Markus Deuling <deuling@de.ibm.com>
4756 * gdbarch.sh (EXTRACT_RETURN_VALUE): Replace with
4757 gdbarch_extract_return_value.
4758 * value.c (generic_use_struct_convention): Likewise (comment).
4759 * ia64-tdep.c (ia64_use_struct_convention): Likewise (comment).
4760 * arch-utils.c (legacy_return_value): Likewise.
4761 * arch-utils.h (legacy_return_value): Likewise (comment).
4762 * gdbarch.sh (STORE_RETURN_VALUE): Replace by
4763 gdbarch_store_return_value.
4764 * stack.c (return_command): Likewise (comment).
4765 * arch-utils.h (legacy_return_value): Likewise (comment).
4766 * arch-utils.c (legacy_return_value): Likewise.
4767 * gdbarch.c, gdbarch.h: Regenerate.
4769 2007-06-18 Markus Deuling <deuling@de.ibm.com>
4771 * gdbarch.sh (DEPRECATED_USE_STRUCT_CONVENTION): Replace by
4772 gdbarch_deprecated_use_struct_convention.
4773 * arch-utils.c (legacy_return_value): Likewise.
4774 * gdbarch.c, gdbarch.h: Regenerate.
4776 2007-06-18 Markus Deuling <deuling@de.ibm.com>
4778 * gdbarch.sh (DEPRECATED_FUNCTION_START_OFFSET): Replace by
4779 gdbarch_deprecated_function_start_offset.
4780 * symtab.c (find_function_start_sal)skip_prologue_using_sal): Likewise.
4781 * linespec.c (minsym_found): Likewise.
4782 * infrun.c (handle_inferior_event): Likewise.
4783 * infcall.c (find_function_addr): Likewise.
4784 * cli/cli-cmds.c (disassemble_command): Likewise.
4785 * gdbarch.c, gdbarch.h: Regenerate.
4787 2007-06-18 Markus Deuling <deuling@de.ibm.com>
4789 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Replace by
4790 gdbarch_deprecated_reg_struct_has_addr.
4791 * infcall.c (call_function_by_hand): Likewise.
4792 (DEPRECATED_REG_STRUCT_HAS_ADDR_P): Replace by
4793 * gdbarch_deprecated_reg_struct_has_addr_p.
4794 * infcall.c (call_function_by_hand): Likewise.
4795 * gdbarch.c, gdbarch.h: Regenerate.
4797 2007-06-18 Markus Deuling <deuling@de.ibm.com>
4799 * gdbarch.sh (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
4800 * sh-tdep.c (sh_extract_struct_value_address): Remove.
4801 (sh_gdbarch_init): Remove
4802 set_gdbarch_deprecated_extract_struct_value_address.
4803 * sh64-tdep.c (sh64_extract_struct_value_address): Remove.
4804 (sh64_gdbarch_init): Remove
4805 set_gdbarch_deprecated_extract_struct_value_address.
4806 * ia64-tdep.c (ia64_extract_struct_value_address): Remove.
4807 (ia64_gdbarch_init): Remove
4808 set_gdbarch_deprecated_extract_struct_value_address.
4809 * frv-tdep.c (frv_extract_struct_value_address): Remove.
4810 (frv_gdbarch_init): Remove
4811 set_gdbarch_deprecated_extract_struct_value_address.
4812 * gdbarch.c, gdbarch.h: Regenerate.
4814 2007-06-18 Markus Deuling <deuling@de.ibm.com>
4816 * gdbarch.sh (SP_REGNUM): Replace by gdbarch_sp_regnum.
4817 * v850-tdep.c (v850_unwind_sp): Likewise.
4818 * std-regs.c (value_of_builtin_frame_sp_reg): Likewise.
4819 * stack.c (frame_info): Likewise.
4820 * stabsread.c (define_symbol): Likewise.
4821 * sh-tdep.c (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu)
4822 (sh_dwarf2_frame_init_reg, sh_frame_cache, sh_frame_prev_register)
4823 (sh_unwind_sp): Likewise.
4824 * sh64-tdep.c (sh64_push_dummy_call, sh64_frame_cache)
4825 (sh64_frame_prev_register, sh64_unwind_sp): Likewise.
4826 * rs6000-tdep.c (rs6000_push_dummy_call, rs6000_unwind_dummy_id)
4827 (rs6000_frame_cache): Likewise.
4828 * rs6000-nat.c (store_register): Likewise.
4829 * remote-mips.c (mips_wait): Likewise.
4830 * procfs.c (procfs_fetch_registers, procfs_store_registers): Likewise.
4831 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call)
4832 (ppc64_sysv_abi_push_dummy_call): Likewise.
4833 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_cache): Likewise.
4834 * ppcobsd-nat.c (ppcobsd_supply_pcb): Likewise.
4835 * ppcnbsd-tdep.c (ppcnbsd_sigtramp_cache_init): Likewise.
4836 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache): Likewise.
4837 * m32r-rom.c (m32r_supply_register): Likewise.
4838 * frame.c (frame_sp_unwind): Likewise.
4839 * mips-tdep.c (mips_insn16_frame_cache)
4840 (mips_insn32_frame_cache): Likewise (comment).
4841 * m68klinux-nat.c (supply_gregset): Likewise.
4842 * m68k-tdep.c (m68k_get_longjmp_target): Likewise.
4843 * ia64-tdep.c (ia64_frame_prev_register): Likewise.
4844 * i386-tdep.c (i386_get_longjmp_target): Likewise.
4845 * dwarf2-frame.c (dwarf2_frame_default_init_reg): Likewise.
4846 * cris-tdep.c (cris_regnums, cris_sigcontext_addr)
4847 (cris_sigtramp_frame_unwind_cache, cris_push_dummy_call)
4848 (cris_scan_prologue, crisv32_scan_prologue, cris_unwind_sp)
4849 (cris_register_type, crisv32_register_type)
4850 (cris_dwarf2_frame_init_reg): Likewise.
4851 * arch-utils.c (legacy_virtual_frame_pointer): Likewise.
4852 * amd64-tdep.c (amd64_frame_prev_register): Likewise.
4853 * amd64-linux-tdep.c (amd64_linux_sigcontext_addr): Likewise.
4854 * libunwind-frame.c (libunwind_frame_cache): Likewise.
4856 * gdbarch.sh (PC_REGNUM): Replace by gdbarch_pc_regnum.
4857 * regcache.c (read_pc_pid, generic_target_write_pc): Likewise.
4858 * xtensa-tdep.c (xtensa_register_type, xtensa_supply_gregset)
4859 (xtensa_unwind_pc, xtensa_frame_cache, xtensa_frame_prev_register)
4860 (xtensa_extract_return_value, xtensa_store_return_value): Likewise.
4861 * v850-tdep.c (v850_unwind_pc): Likewise.
4862 * stack.c (frame_info): Likewise.
4863 * sh-tdep.c (sh_generic_show_regs, sh3_show_regs, sh2e_show_regs)
4864 (sh2a_show_regs, sh2a_nofpu_show_regs, sh3e_show_regs)
4865 (sh3_dsp_show_regs, sh4_show_regs, sh4_nofpu_show_regs)
4866 (sh_dwarf2_frame_init_reg, sh_frame_prev_register, sh_unwind_pc)
4867 (sh_dsp_show_regs): Likewise.
4868 * shnbsd-tdep.c (shnbsd_supply_gregset)
4869 (shnbsd_collect_gregset): Likewise.
4870 * shnbsd-nat.c (GETREGS_SUPPLIES): Likewise.
4871 * sh64-tdep.c (sh64_compact_reg_base_num, sh64_show_media_regs)
4872 (sh64_frame_prev_register, sh64_unwind_pc): Likewise.
4873 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset)
4874 (6000_register_reggroup_p, rs6000_unwind_pc)
4875 (rs6000_frame_cache): Likewise.
4876 * rs6000-nat.c (regmap, rs6000_fetch_inferior_registers)
4877 (rs6000_store_inferior_registers): Likewise.
4878 * remote-mips.c (mips_wait, mips_load): Likewise.
4879 * procfs.c (procfs_fetch_registers, procfs_store_registers): Likewise.
4880 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_cache): Likewise.
4881 * ppcobsd-nat.c (ppcobsd_supply_pcb): Likewise.
4882 * ppcnbsd-tdep.c (ppcnbsd_sigtramp_cache_init): Likewise.
4883 * ppcnbsd-nat.c (getregs_supplies, ppcnbsd_supply_pcb): Likewise.
4884 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache): Likewise.
4885 * ppc-linux-nat.c (ppc_register_u_addr, fetch_ppc_registers)
4886 (store_ppc_registers, fill_gregset): Likewise.
4887 * mips-tdep.c (mips_stub_frame_cache, mips_gdbarch_init): Likewise.
4888 * mipsnbsd-tdep.c (mipsnbsd_supply_reg, mipsnbsd_fill_reg): Likewise.
4889 * mipsnbsd-nat.c (getregs_supplies): Likewise.
4890 * m68k-tdep.c (m68k_register_type, m68k_unwind_pc): Likewise.
4891 * m68klinux-nat.c (supply_gregset): Likewise.
4892 * irix5-nat.c (fill_gregset): Likewise.
4893 * i386-tdep.c (i386_unwind_pc): Likewise.
4894 * i386-linux-nat.c (i386_linux_resume): Likewise.
4895 * frame.c (get_prev_frame_1): Likewise.
4896 * dwarf2-frame.c (dwarf2_frame_default_init_reg): Likewise.
4897 * dbug-rom.c (dbug_supply_register): Likewise.
4898 * cris-tdep.c (cris_sigtramp_frame_unwind_cache, cris_scan_prologue)
4899 (crisv32_scan_prologue, cris_unwind_pc, cris_register_size)
4900 (cris_register_type, crisv32_register_type, crisv32_register_name)
4901 (cris_dwarf2_frame_init_reg, find_step_target)
4902 (cris_software_single_step, cris_supply_gregset)
4903 (cris_regnums): Likewise.
4904 * alpha-linux-nat.c (alpha_linux_register_u_offset): Likewise.
4905 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
4906 (fill_sprs64, fill_sprs32, store_regs_user_thread): Likewise.
4907 * std-regs.c (value_of_builtin_frame_pc_reg): Likewise.
4908 * mips-linux-tdep.c (mips_linux_write_pc): Likewise.
4910 * gdbarch.sh (PS_REGNUM): Replace by gdbarch_ps_regnum.
4911 * dbug-rom.c (dbug_supply_register): Likewise.
4912 * xtensa-tdep.c (xtensa_supply_gregset, xtensa_frame_cache)
4913 (xtensa_frame_prev_register, xtensa_push_dummy_call): Likewise.
4914 * win32-nat.c (win32_resume): Likewise.
4915 * std-regs.c (value_of_builtin_frame_ps_reg): Likewise.
4916 * m68k-tdep.c (m68k_register_type): Likewise.
4917 * m68klinux-nat.c (supply_gregset): Likewise.
4919 * gdbarch.sh (FP0_REGNUM): Replace by gdbarch_fp0_regnum.
4920 * sh-tdep.c (sh_extract_return_value_fpu, sh_store_return_value_fpu)
4921 (sh2e_show_regs, sh2a_show_regs, sh3e_show_regs, sh4_show_regs)
4922 (sh_sh2a_register_type, sh_sh3e_register_type, sh_sh4_register_type)
4923 (fv_reg_base_num, dr_reg_base_num): Likewise.
4924 * sh64-tdep.c (sh64_fv_reg_base_num, sh64_dr_reg_base_num)
4925 (sh64_fpp_reg_base_num, sh64_compact_reg_base_num, sh64_push_dummy_call)
4926 (sh64_extract_return_value, sh64_store_return_value)
4927 (sh64_show_media_regs, sh64_show_compact_regs, sh64_register_type)
4928 (sh64_do_fp_register, sh64_media_print_registers_info): Likewise.
4929 * procfs.c (procfs_fetch_registers, procfs_store_registers)
4930 (invalidate_cache): Likewise.
4931 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache): Likewise.
4932 * mipsnbsd-tdep.c (mipsnbsd_supply_fpreg)
4933 (mipsnbsd_fill_fpreg): Likewise.
4934 * mipsnbsd-nat.c (mipsnbsd_fetch_inferior_registers)
4935 (mipsnbsd_store_inferior_registers): Likewise.
4936 * mips-linux-tdep.c (mips_supply_fpregset, mips_fill_fpregset)
4937 (mips64_supply_fpregset, mips64_fill_fpregset): Likewise.
4938 * mips-linux-nat.c (mips64_linux_register_addr): Likewise.
4939 * m68k-tdep.c (m68k_register_type, m68k_convert_register_p): Likewise.
4940 * m68klinux-nat.c (getfpregs_supplies, supply_fpregset)
4941 (fill_fpregset): Likewise.
4942 * irix5-nat.c (supply_fpregset, fill_fpregset): Likewise.
4943 * i386-tdep.h (struct_return): Likewise (comment).
4944 * i386-nto-tdep.c (i386nto_register_area): Likewise.
4945 * go32-nat.c (fetch_register, go32_fetch_registers, store_register)
4946 (go32_store_registers): Likewise.
4947 * alpha-tdep.c (alpha_next_pc): Likewise.
4948 * alpha-linux-nat.c (alpha_linux_register_u_offset): Likewise.
4949 * alphabsd-nat.c (alphabsd_fetch_inferior_registers)
4950 (alphabsd_store_inferior_registers): Likewise.
4951 * core-regset.c (fetch_core_registers): Likewise.
4952 * i386v4-nat.c (supply_fpregset, fill_fpregset): Likewise.
4954 * gdbarch.c, gdbarch.h: Regenerate.
4956 2007-06-18 Daniel Jacobowitz <dan@codesourcery.com>
4958 * coffread.c (coff_sym_fns): Add default_symfile_segments.
4959 * dbxread.c (start_psymtab): Check HAVE_ELF.
4960 (aout_sym_fns): Likewise.
4961 * elfread.c (elf_symfile_segments): New.
4962 (elf_sym_fns): Add elf_symfile_segments.
4963 * mipsread.c (ecoff_sym_fns): Add default_symfile_segments.
4964 * remote.c (get_offsets): Use symfile_map_offsets_to_segments.
4965 Skip if there is no symfile_objfile. Handle TextSeg and DataSeg.
4966 * somread.c (som_sym_fns): Use default_symfile_segments.
4967 * symfile.c (find_sym_fns): Take a BFD and return the sym_fns.
4968 (init_objfile_sect_indices): Call symfile_find_segment_sections.
4969 (default_symfile_segments): New function.
4970 (syms_from_objfile): Update call to find_sym_fns.
4971 (symfile_get_segment_data, free_symfile_segment_data): New.
4972 (symfile_map_offsets_to_segments): New.
4973 (symfile_find_segment_sections): New.
4974 * symfile.h (struct symfile_segment_data): New.
4975 (struct sym_fns): Add sym_segments.
4976 (default_symfile_segments, symfile_get_segment_data)
4977 (free_symfile_segment_data): New prototypes.
4978 (symfile_map_offsets_to_segments): Likewise.
4979 * xcoffread.c (xcoff_sym_fns): Add default_symfile_segments.
4980 * Makefile.in (COMMON_OBS): Remove elfread.o.
4981 (elf_internal_h): New.
4982 (elfread.o): Update.
4983 * configure.ac: Add elfread.o to COMMON_OBS if bfd/elf.o was
4985 * config.in, configure: Regenerated.
4986 * NEWS: Mention qOffsets changes.
4988 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
4990 * gdbtypes.h (builtin_type_m2_char, builtin_type_m2_int,
4991 builtin_type_m2_card, builtin_type_m2_real, builtin_type_m2_bool):
4992 Replace global variable declaration with compatibility macro.
4993 (struct builtin_m2_type): New data type.
4994 (builtin_m2_type): Add prototype.
4995 * m2-lang.c (builtin_type_m2_char, builtin_type_m2_int,
4996 builtin_type_m2_card, builtin_type_m2_real, builtin_type_m2_bool):
4997 Remove global variables.
4998 (m2_language_arch_info): Use builtin_m2_type instead of variables.
4999 (build_m2_types): New function.
5000 (m2_type_data): New variable.
5001 (builtin_m2_type): New function.
5002 (_initialize_m2_language): Do not build data types. Register
5003 m2_type_data per-gdbarch data.
5005 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
5007 * gdbtypes.h (builtin_type_f_character, builtin_type_f_logical,
5008 builtin_type_f_logical_s1, builtin_type_f_logical_s2,
5009 builtin_type_f_integer, builtin_type_f_integer_s2, builtin_type_f_real,
5010 builtin_type_f_real_s8, builtin_type_f_real_s16,
5011 builtin_type_f_complex_s8, builtin_type_f_complex_s16,
5012 builtin_type_f_complex_s32, builtin_type_f_void): Replace global
5013 variable declaration with compatibility macro.
5014 (struct builtin_f_type): New data type.
5015 (builtin_f_type): Add prototype.
5016 * f-lang.c (builtin_type_f_character, builtin_type_f_logical,
5017 builtin_type_f_logical_s1, builtin_type_f_logical_s2,
5018 builtin_type_f_integer, builtin_type_f_integer_s2, builtin_type_f_real,
5019 builtin_type_f_real_s8, builtin_type_f_real_s16,
5020 builtin_type_f_complex_s8, builtin_type_f_complex_s16,
5021 builtin_type_f_complex_s32, builtin_type_f_void): Remove variables.
5022 (f_language_arch_info): Use builtin_f_type instead of variables.
5023 (build_fortran_types): Build builtin_f_type structure instead of
5024 setting global type variables.
5025 (f_type_data): New variable.
5026 (builtin_f_type): New function.
5027 (_initialize_f_language): Do not call build_fortran_types. Do not
5028 swap global type variables. Register f_type_data per-gdbarch data.
5030 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
5032 * f-lang.c (_initialize_f_language): Do not initialize or
5033 swap builtin_type_string.
5035 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
5037 * std-regs.c (builtin_type_frame_reg, build_builtin_type_frame_reg,
5038 value_of_builtin_frame_reg): Remove.
5039 (_initialize_frame_reg): Do not swap builtin_type_frame_reg. Remove
5040 inactive call to value_of_builtin_frame_reg.
5042 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
5044 * gdbarch.sh (bfd_vma_bit): Remove.
5045 * gdbarch.c, gdbarch.h: Regenerate.
5047 * gdbtypes.h (builtin_bfd_vma_type): Remove.
5048 * gdbtypes.h (builtin_bfd_vma_type): Remove.
5049 (build_gdbtypes): Do not initialize it.
5050 (_initialize_gdbtypes): Do not swap it.
5052 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
5054 * gdbtypes.c (builtin_type_v2_double, builtin_type_v4_float,
5055 builtin_type_v2_int64, builtin_type_v4_int32, builtin_type_v8_int16,
5056 builtin_type_v16_int8, builtin_type_v2_float, builtin_type_v2_int32,
5057 builtin_type_v4_int16, builtin_type_v8_int8, builtin_type_v4sf,
5058 builtin_type_v4si, builtin_type_v16qi, builtin_type_v8qi,
5059 builtin_type_v8hi, builtin_type_v4hi, builtin_type_v2si,
5060 builtin_type_vec64, builtin_type_vec128): Remove.
5061 (init_simd_type): Remove.
5062 (init_vector_type): Make global.
5063 (build_builtin_type_vec64, build_builtin_type_vec128): Remove.
5064 (build_gdbtypes): Do not build vector types.
5065 (_initialize_gdbtypes): Do not swap vector types.
5066 * gdbtypes.h (builtin_type_v2_double, builtin_type_v4_float,
5067 builtin_type_v2_int64, builtin_type_v4_int32, builtin_type_v8_int16,
5068 builtin_type_v16_int8, builtin_type_v2_float, builtin_type_v2_int32,
5069 builtin_type_v4_int16, builtin_type_v8_int8, builtin_type_v4sf,
5070 builtin_type_v4si, builtin_type_v16qi, builtin_type_v8qi,
5071 builtin_type_v8hi, builtin_type_v4hi, builtin_type_v2si,
5072 builtin_type_vec64, builtin_type_vec128): Remove declarations.
5073 (init_vector_type): Add prototype.
5075 * i386-tdep.h (struct gdbarch_tdep): Add i386_mmx_type and
5076 i386_sse_type members.
5077 (i386_mmx_type, i386_sse_type): Change from variables to functions.
5078 * i386-tdep.c (i386_mmx_type, i386_sse_type): Remove variables.
5079 (i386_init_types): Do not build vector types.
5080 (i386_mmx_type, i386_sse_type): New functions.
5081 (i386_register_type): Call them instead of using global variables.
5082 (i386_gdbarch_init): Use XCALLOC to allocate tdep structure.
5083 * amd64-tdep.c (amd64_register_type): Call i386_sse_type instead
5084 of using global variable.
5086 * rs6000-tdep.h (struct gdbarch_tdep): Add ppc_builtin_type_vec64
5087 and ppc_builtin_type_vec128 members.
5088 * rs6000-tdep.c (rs6000_builtin_type_vec64): New function.
5089 (rs6000_builtin_type_vec128): Likewise.
5090 (rs6000_register_type): Call them instead of using builtin_type_vec64
5091 and builtin_type_vec128.
5092 (rs6000_gdbarch_init): Use XCALLOC to allocate tdep structure.
5094 * spu-tdep.c (struct gdbarch_tdep): New data type.
5095 (spu_builtin_type_vec128): Remove variable.
5096 (spu_builtin_type_vec128): New function.
5097 (spu_register_type): Call it instead of using global variable.
5098 (spu_gdbarch_init): Allocate tdep structure.
5099 (spu_init_vector_type): Remove function.
5100 (_initialize_spu_tdep): Do not call it.
5102 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
5104 * amd64-tdep.c (struct amd64_register_info): Remove.
5105 (amd64_register_info): Remove.
5106 (amd64_register_names): New static variable.
5107 (AMD64_NUM_REGS): Use amd64_register_names instead of
5108 amd64_register_info.
5109 (amd64_register_name): Likewise.
5110 (amd64_register_type): Do not refer to amd64_register_info.
5112 * s390-tdep.c (struct s390_register_info): Remove.
5113 (s390_register_info): Remove.
5114 (s390_register_name): Do not refer to s390_register_info.
5115 (s390_register_type): Likewise.
5117 * sparc64-tdep.c (struct sparc64_register_info): Remove.
5118 (sparc64_register_info, sparc64_pseudo_register_info): Remove.
5119 (sparc64_register_names, sparc64_pseudo_register_names): New.
5120 (SPARC64_NUM_REGS, SPARC64_NUM_PSEUDO_REGS): Use
5121 sparc64_register_names and sparc64_pseudo_register_names instead of
5122 sparc64_register_info and sparc64_pseudo_register_info.
5123 (sparc64_register_name): Likewise.
5124 (sparc64_register_type): Do not refer to sparc64_register_info
5125 and sparc64_pseudo_register_info.
5127 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
5129 * c-lang.c (cplus_builtin_types): Remove.
5130 (enum cplus_primitive_types): New data type.
5131 (cplus_language_arch_info): New function.
5132 (cplus_language_defn): Set la_language_arch_info member. Do not set
5133 la_builtin_type_vector and string_char_type members.
5135 * f-lang.c (f_builtin_types): Remove.
5136 (enum f_primitive_types): New data type.
5137 (f_language_arch_info): New function.
5138 (f_language_de): Set la_language_arch_info member. Do not set
5139 la_builtin_type_vector and string_char_type members.
5141 * m2-lang.c (m2_builtin_types): Remove.
5142 (enum m2_primitive_types): New data type.
5143 (m2_language_arch_info): New function.
5144 (m2_language_defn): Set la_language_arch_info member. Do not set
5145 la_builtin_type_vector and string_char_type members.
5147 * objc-lang.c (objc_builtin_types): Remove.
5148 (objc_language): Set la_language_arch_info member. Do not set
5149 la_builtin_type_vector and string_char_type members.
5151 * p-lang.c (pascal_builtin_types): Remove.
5152 (enum pascal_primitive_types): New data type.
5153 (pascal_language_arch_info): New function.
5154 (pascal_language_defn): Set la_language_arch_info member. Do not set
5155 la_builtin_type_vector and string_char_type members.
5157 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
5159 * regcache.c (struct regcache): Add ptid_t member.
5160 (regcache_xmalloc): Initialize it.
5161 (regcache_cpy_no_passthrough): Do not refer to current_regcache.
5162 (regcache_dup): Likewise.
5163 (regcache_dup_no_passthrough): Likewise.
5164 (current_regcache): Make static.
5165 (registers_ptid): Remove variable.
5166 (get_thread_regcache): New function.
5167 (get_current_regcache): New function.
5168 (registers_changed): Implement by freeing current regcache.
5169 (regcache_raw_read): Do not refer to current_regcache. Set
5170 inferior_ptid to regcache->ptid while calling target routines.
5171 (regcache_raw_write): Likewise.
5172 (regcache_raw_supply): Do not refer to current_regcache.
5173 (read_pc_pid): Use thread regcache. Do not modify inferior_ptid.
5174 (write_pc_pid): Likewise.
5175 (build_regcache): Remove.
5176 (_initialize_regcache): Do not call DEPRECATED_REGISTER_GDBARCH_SWAP
5177 or deprecated_register_gdbarch_swap. Do not initialize
5179 * regcache.h (get_current_regcache): Add prototype.
5180 (get_thread_regcache): Likewise.
5181 (current_regcache): Remove declaration.
5183 * corelow.c (core_open): Replace current_regcache by
5184 get_current_regcache ().
5185 * frame.c (frame_pop): Likewise.
5186 (put_frame_register): Likewise.
5187 (get_current_frame, create_new_frame): Likewise.
5188 * mi/mi-main.c (mi_cmd_data_write_register_values): Likewise.
5189 * stack.c (return_command): Likewise.
5190 * infcall.c (call_function_by_hand): Likewise.
5191 * infrun.c (resume): Likewise.
5192 (save_inferior_status, restore_inferior_status): Likewise.
5193 * linux-fork.c (fork_load_infrun_state): Likewise.
5194 (fork_save_infrun_state): Likewise.
5195 * win32-nat.c (win32_resume): Likewise.
5196 * i386fbsd-nat.c (i386fbsd_resume): Likewise.
5197 * monitor.c (monitor_wait): Likewise.
5198 * remote.c (remote_wait): Likewise.
5199 * remote-mips.c (mips_wait): Likewise.
5201 * bsd-kvm.c (bsd_kvm_open): Likewise
5202 (bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd): Likewise.
5203 * fbsd-nat.c (fbsd_make_corefile_notes): Likewise.
5204 * i386-linux-nat.c (i386_linux_resume): Likewise.
5205 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Likewise.
5206 (ia64_linux_stopped_data_address): Likewise.
5208 * frv-tdep.c (frv_fdpic_loadmap_addresses): Likewise.
5209 * m32c-tdep.c (m32c_virtual_frame_pointer): Likewise.
5210 * mep-tdep.c (current_me_module, current_options): Likewise.
5211 * mips-tdep.c (deprecated_mips_set_processor_regs_hack): Likewise.
5213 * linux-nat.c (linux_nat_do_thread_registers): Use thread
5214 regcache instead of current_regcache. Call target_fetch_registers.
5215 (linux_nat_corefile_thread_callback): Update call site.
5216 (linux_nat_do_registers): Likewise.
5217 * procfs.c (procfs_do_thread_registers): Use thread regcache instead
5218 of current_regcache.
5219 (procfs_make_note_section): Likewise.
5220 * proc-service.c (ps_lgetregs, ps_lsetregs): Likewise.
5221 (ps_lgetfpregs, ps_lsetfpregs): Likewise.
5222 * sol-thread.c (ps_lgetregs, ps_lsetregs): Likewise.
5223 (ps_lgetfpregs, ps_lsetfpregs): Likewise.
5225 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
5227 * regcache.c (read_register, read_register_pid): Remove.
5228 (write_register, write_register_pid): Likewise.
5229 * regcache.h (read_register, read_register_pid): Remove prototype.
5230 (write_register, write_register_pid): Likewise.
5232 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
5234 * gdbarch.sh (read_pc): Add REGCACHE argument. Remove PTID argument.
5235 (write_pc): Likewise. Remove default implementation, add predicate.
5236 * gdbarch.c, gdbarch.h: Regenerate.
5237 * regcache.c (read_pc_pid): Use current regcache instead of calling
5239 (write_pc_pid): Check gdbarch_write_pc predicate, implement default
5241 (generic_target_write_pc): Remove.
5242 * inferior.h (generic_target_write_pc): Remove.
5243 * frv-tdep.c (frv_gdbarch_init): Do not install it.
5244 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
5245 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
5246 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
5247 * sh-tdep.c (sh_gdbarch_init): Likewise.
5248 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
5250 * avr-tdep.c (avr_read_pc): Add REGCACHE argument. Remove PTID
5251 argument. Use REGCACHE instead of calling read_register_pid.
5252 * hppa-hpux-tdep.c (hppa_hpux_read_pc): Likewise.
5253 * hppa-tdep.c (hppa_read_pc): Likewise.
5254 * hppa-tdep.h (hppa_read_pc): Likewise.
5255 * ia64-tdep.c (ia64_read_pc): Likewise.
5256 * m32r-tdep.c (m32r_read_pc): Likewise.
5257 * mep-tdep.c (mep_read_pc): Likewise.
5258 * mn10300-tdep.c (mn10300_read_pc): Likewise.
5259 * spu-tdep.c (spu_read_pc): Likewise.
5261 * arm-tdep.c (arm_write_pc): Add REGCACHE argument. Remove PTID
5262 argument. Use REGCACHE instead of calling write_register_pid.
5263 * avr-tdep.c (avr_write_pc): Likewise.
5264 * hppa-hpux-tdep.c (hppa_hpux_write_pc): Likewise.
5265 * hppa-tdep.c (hppa_write_pc): Likewise.
5266 * hppa-tdep.h (hppa_write_pc): Likewise.
5267 * i386-linux-tdep.c (i386_linux_write_pc): Likewise.
5268 * amd64-linux-tdep.c (amd64_linux_write_pc): Likewise.
5269 * ia64-linux-tdep.c (ia64_linux_write_pc): Likewise.
5270 * ia64-tdep.c (ia64_write_pc): Likewise.
5271 * ia64-tdep.h (ia64_write_pc): Likewise.
5272 * m32r-tdep.c (m32r_write_pc): Likewise.
5273 * m88k-tdep.c (m88k_write_pc): Likewise.
5274 * mep-tdep.c (mep_write_pc): Likewise.
5275 * mips-tdep.c (mips_write_pc): Likewise.
5276 * mips-linux-tdep.c (mips_linux_write_pc): Likewise.
5277 * mn10300-tdep.c (mn10300_write_pc): Likewise.
5278 * sparc-tdep.c (sparc_write_pc): Likewise.
5279 * spu-tdep.c (spu_write_pc): Likewise.
5281 * mips-tdep.c (read_signed_register): Remove.
5282 (read_signed_register_pid): Likewise.
5283 (mips_read_pc): Add REGCACHE argument. Remove PTID argument.
5284 Use REGCACHE instead of calling read_signed_register_pid.
5286 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
5288 * gdbarch.sh (push_dummy_code): Add REGCACHE argument.
5289 * gdbarch.c, gdbarch.h: Regenerate.
5290 * infcall.c (generic_push_dummy_code): Add REGCACHE argument.
5291 (push_dummy_code): Likewise. Pass it to callee.
5292 (call_function_by_hand): Pass current regcache to push_dummy_code.
5294 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Add REGCACHE
5295 argument. Use it instead of current_regcache.
5297 * cris-tdep.c (cris_push_dummy_code): Add REGCACHE argument.
5298 * sparc-tdep.c (sparc32_push_dummy_code): Likewise.
5300 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
5302 * gdbarch.sh (get_longjmp_target): Add FRAME argument.
5303 * gdbarch.c, gdbarch.h: Regenerate.
5304 * infrun.c (handle_inferior_event): Pass current frame to
5305 gdbarch_get_longjmp_target.
5307 * alpha-tdep.c (alpha_get_longjmp_target): Add FRAME argument.
5308 Read registers from FRAME instead of using read_register.
5309 Use get_frame_arch instead of current_gdbarch.
5310 * arm-tdep.c (arm_get_longjmp_target): Likewise.
5311 * i386-tdep.c (i386_get_longjmp_target): Likewise.
5312 * m68k-tdep.c (m68k_get_longjmp_target): Likewise.
5313 * mips-linux-tdep.c (mips_linux_get_longjmp_target): Likewise.
5314 (mips64_linux_get_longjmp_target): Likewise.
5315 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Likewise.
5317 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
5319 * gdbarch.sh (skip_trampoline_code): Add FRAME argument.
5320 * gdbarch.c, gdbarch.h: Regenerate.
5321 * arch-utils.c (generic_skip_trampoline_code): Add FRAME argument.
5322 * arch-utils.h (generic_skip_trampoline_code): Likewise.
5323 * infrun.c (handle_inferior_event): Pass current frame to
5324 gdbarch_skip_trampoline_code and skip_language_trampoline.
5326 * language.c (unk_lang_trampoline): Add FRAME argument.
5327 (skip_language_trampoline): Add FRAME argument. Pass it to
5328 skip_trampoline callback.
5329 * language.h: Add forward declaration of struct frame_info.
5330 (struct language_defn): Add FRAME argument to skip_trampoline.
5331 (skip_language_trampoline): Add FRAME argument.
5332 * cp-abi.c (cplus_skip_trampoline): Add FRAME argument. Pass it
5333 to skip_trampoline callback.
5334 * cp-abi.h: Add forward declaration of struct frame_info.
5335 (cplus_skip_trampoline): Add FRAME argument.
5336 (struct cp_abi_ops): Add FRAME argument to skip_trampoline callback.
5337 * gnu-v3-abi.c (gnuv3_skip_trampoline): Add FRAME argument. Pass it
5338 to gdbarch_skip_trampoline_code.
5339 * objc-lang.c (objc_skip_trampoline): Add FRAME argument. Pass it
5340 to gdbarch_skip_trampoline_code.
5342 * minsyms.c (find_solib_trampoline_target): Add FRAME argument.
5343 * symtab.h (find_solib_trampoline_target): Likewise.
5344 * obsd-tdep.c (obsd_skip_solib_resolver): Pass current frame to
5345 find_solib_trampoline_target.
5347 * arm-tdep.c (arm_skip_stub): Add FRAME argument. Read registers
5348 from FRAME instead of calling read_register.
5350 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code): Add FRAME
5351 argument. Read registers from FRAME instead of using read_register.
5352 * hppa-tdep.c (hppa_skip_trampoline_code): Likewise.
5353 * hppa-tdep.h (hppa_skip_trampoline_code): Add FRAME argument.
5355 * i386-cygwin-tdep.c (i386_cygwin_skip_trampoline_code): Add FRAME
5358 * m32c-tdep.c (m32c_skip_trampoline_code): Add FRAME argument.
5360 * mips-tdep.c (mips_skip_trampoline_code): Add FRAME argument. Read
5361 registers from FRAME instead of using read_signed_register.
5363 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Add FRAME
5365 (ppc64_standard_linkage_target): Likewise. Read registers from FRAME
5366 instead of using read_register.
5367 (ppc64_skip_trampoline_code): Add FRAME argument. Pass it to
5368 ppc64_standard_linkage_target.
5369 * rs6000-tdep.c (rs6000_skip_trampoline_code): Add FRAME argument.
5370 Pass it to find_solib_trampoline_target. Read registers from FRAME
5371 instead of using read_register.
5373 * xstormy16-tdep.c (xstormy16_skip_trampoline_code): Add FRAME
5376 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
5378 * gdbarch.sh (software_single_step): Replace REGCACHE argument by
5380 * gdbarch.c, gdbarch.h: Regenerate.
5381 * infrun.c (resume): Pass current frame to SOFTWARE_SINGLE_STEP.
5383 * alpha-tdep.c (alpha_next_pc): Add FRAME argument. Retrieve
5384 registers from FRAME instead of using read_register.
5385 (alpha_software_single_step): Replace REGCACHE by FRAME. Pass FRAME
5386 to alpha_next_pc. Use get_frame_pc instead of read_pc.
5387 * alpha-tdep.h (alpha_software_single_step): Replace REGCACHE
5390 * arm-tdep.c (shifted_reg_val): Add FRAME argument. Read registers
5391 from FRAME instead of using read_register.
5392 (thumb_get_next_pc): Likewise.
5393 (arm_get_next_pc): Likewise.
5394 (arm_software_single_step): Replace REGCACHE by FRAME. Pass FRAME
5395 to arm_get_next_pc. Use get_frame_pc instead of read_register.
5396 * arm-tdep.h (arm_software_single_step): Replace REGCACHE
5399 * cris-tdep.c (find_step_target): Add FRAME argument. Read registers
5400 from FRAME instead of using read_register.
5401 (cris_software_single_step): Replace REGCACHE by FRAME. Pass FRAME
5402 to find_step_target.
5404 * mips-tdep.c (mips32_next_pc): Add FRAME argument. Read registers
5405 from FRAME instead of using read_register / read_signed_register.
5406 (extended_mips16_next_pc): Likewise.
5407 (mips16_next_pc): Likewise.
5408 (mips_next_pc): Likewise.
5409 (mips_software_single_step): Replace REGCACHE by FRAME. Pass FRAME
5410 to mips_next_pc. Use get_frame_pc instead of read_pc.
5411 * mips-tdep.h (mips_software_single_step): Replace REGCACHE
5414 * rs6000-tdep.c (branch_dest): Add FRAME argument. Use it instead
5415 of current frame. Read registers from FRAME.
5416 (deal_with_atomic_sequence): Add FRAME argument. Pass it to
5417 branch_dest. Use get_frame_pc instead of read_pc.
5418 (rs6000_software_single_step): Likewise.
5419 (bl_to_blrl_insn_p): Do not call branch_dest.
5420 * rs6000-tdep.h (rs6000_software_single_step): Replace REGCACHE
5423 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Add FRAME argument.
5424 Read registers from FRAME instead of current regcache.
5425 * sparc-linux-tdep.c (sparc32_linux_step_trap): Likewise.
5426 * sparcnbsd-tdep.c (sparcnbsd_step_trap): Likewise.
5427 * sparc-tdep.c (sparc_address_from_register): Remove.
5428 (sparc_analyze_control_transfer): Pass FRAME argument instead of
5429 GDBARCH. Pass FRAME to step_trap callback.
5430 (sparc_step_trap): Add FRAME argument.
5431 (space_software_single_step): Replace REGCACHE by FRAME. Pass FRAME
5432 to sparc_analyze_control_transfer. Read registers from FRAME instead
5433 of calling sparc_address_from_register.
5434 * sparc-tdep.h (struct gdbarch_tdep): Add FRAME argument to
5436 (sparc_address_from_register): Remove prototype.
5437 (sparc_software_single_step): Replace REGCACHE argument by FRAME.
5438 (sparcnbsd_step_trap): Add FRAME argument.
5440 * spu-tdep.c (spu_software_single_step): Replace REGCACHE argument
5441 by FRAME. Read registers from FRAME instead of REGCACHE.
5443 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
5445 * arm-tdep.c (arm_print_float_info): Use register value from FRAME
5446 instead of calling read_register.
5448 * avr-tdep.c (avr_push_dummy_call): Write to REGCACHE instead of
5449 calling write_register.
5451 * hppa-tdep.c (hppa32_push_dummy_call): Write to REGCACHE instead of
5452 calling write_register.
5454 * ia64-tdep.c (find_func_descr): Add REGCACHE parameter. Use it
5455 instead of calling read_register.
5456 (ia64_push_dummy_call): Update call to find_func_descr. Use REGCACHE
5457 instead of calling read_register and write_register.
5459 * m32r-tdep.c (m32r_linux_supply_gregset): Use REGCACHE parameter
5460 instead of current_regcache.
5462 * mn10300-tdep.c (mn10300_push_dummy_call): Write to REGCACHE instead
5463 of calling write_register.
5464 * mn10300-linux-tdep.c (am33_supply_fpregset_method): Use REGCACHE
5465 parameter instead of current_regcache.
5467 * mips-tdep.c (mips2_fp_compat): Add FRAME parameter. Use it
5468 instead of calling read_register.
5469 (mips_read_fp_register_double, mips_print_fp_register): Update calls.
5470 (mips_eabi_push_dummy_call): Use REGCACHE instead of write_register.
5471 (mips_n32n64_push_dummy_call): Likewise.
5472 (mips_o32_push_dummy_call): Likewise.
5473 (mips_o64_push_dummy_call): Likewise.
5475 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Use REGCACHE
5476 parameter instead of current_regcache.
5478 * xtensa-tdep.c (xtensa_register_write_masked): Add REGCACHE parameter.
5479 Use it instead of read_register and write_register.
5480 (xtensa_register_read_masked): Likewise.
5481 (xtensa_pseudo_register_read): Update call.
5482 (xtensa_pseudo_register_write): Likewise.
5483 (xtensa_frame_cache): Use register values unwound from NEXT_FRAME
5484 instead of calling read_register.
5485 (xtensa_push_dummy_call): Update comment.
5487 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
5489 * mips-tdep.c (mips16_scan_prologue): Replace read_next_frame_reg
5490 by frame_unwind_register_signed calls.
5491 (mips32_scan_prologue): Likewise. Skip analysis of alloca stack
5492 frame allocations when called with NULL NEXT_FRAME parameter.
5493 (read_next_frame_reg): Remove.
5495 * sh-tdep.c (sh_analyze_prologue): Add FPSCR parameter. Use it
5496 instead of reading the FPSCR register.
5497 (sh_frame_cache): Pass unwound FPSCR register value to
5498 sh_analyze_prologue.
5499 (sh_skip_prologue): Pass dummy FPSCR value to sh_analyze_prologue.
5501 * v850-tdep.c (v850_analyze_prologue): Add CTBP parameter. Use it
5502 instead of reading the CTBP register.
5503 (v850_frame_cache): Pass unwound CTBP register value to
5504 v850_analyze_prologue.
5506 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
5508 * sh-tdep.h (sh_show_regs): Add FRAME parameter.
5509 * sh-tdep.c (sh_show_regs): Likewise.
5510 (sh_show_regs_command): Pass current frame to sh_show_regs routine.
5511 (sh_generic_show_regs): Add FRAME parameter. Use register
5512 values from that frame instead of calling read_register.
5513 (sh3_show_regs, sh2e_show_regs, sh2a_show_regs, sh2a_nofpu_show_regs,
5514 sh3e_show_regs, sh3_dsp_show_regs, sh4_show_regs, sh4_nofpu_show_regs,
5515 sh_dsp_show_regs): Likewise.
5516 * sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs,
5517 sh64_show_regs): Likewise.
5519 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
5521 * mips-tdep.c (deprecated_mips_set_processor_regs_hack): Read from
5522 current regcache instead of calling read_register.
5524 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
5526 * mep-tdep.c (current_me_module): Read from current regcache
5527 instead of calling read_register.
5528 (current_options): Likewise.
5530 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
5532 * cris-tdep.c (cris_stopped_data_address): Read register values
5533 from current frame instead of calling read_register.
5534 * frv-tdep.c (frv_stopped_data_address): Likewise.
5536 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
5538 * solib-sunos.c (sunos_solib_create_inferior_hook): Use write_pc
5539 instead of write_register (PC_REGNUM, ...).
5541 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
5543 * solib-sunos.c (sunos_solib_create_inferior_hook): Add comment
5544 explaining why the PC adjustment code is necessary.
5546 2007-06-15 Vladimir Prus <vladimir@codesourcery.com>
5548 * m68k-tdep.h (enum m68k_flavour): New.
5549 (struct gdbarch_tdep): New fields
5550 float_return, flavour and fpregs_present.
5551 * m68k-tdep.c (m68k_register_type): Use
5552 fpregs_present and conditionalize floating
5553 registers type on flavour.
5554 (m68k_register_names): New.
5555 (m68k_register_name): Use the above.
5556 (m68k_convert_register_p): Consult fpregs_present.
5557 (m68k_register_to_value, m68k_value_to_register):
5558 Use register_type to obtain the type of floating
5560 (m68k_svr4_extract_return_value): Check tdep->float_return.
5561 Use register_type to get the type of floating
5563 (m68k_svr4_store_return_value): Likewise.
5564 (m68k_dwarf_reg_to_regnum): Check tdep->fpregs_present.
5565 (m68k_analyze_register_saves): Likewise.
5566 (m68k_gdbarch_init): Extract infromation
5567 from XML description, if present. Guess coldfire by
5568 looking at the file, if present. Conditionalize
5569 setting of long double format. Set decr_pc_after_break
5570 to 2 on coldfire and fido. Enable XML-driven
5571 register description.
5572 * m68kbsd-tdep.c (m68kbsd_fpreg_offset): Use
5573 size of tdep->fpreg_type, as opposed to hardcoded value.
5574 * Makefile.in (m68k-tdep.o): Update dependencies.
5576 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
5578 * NEWS: Mention "info spu" commands and qXfer:spu:read and
5579 qXfer:spu:write remote packet types.
5581 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
5583 * xml-tdesc.c (tdesc_start_target): New.
5584 (target_attributes): New.
5585 (tdesc_elements): Use it.
5586 * features/gdb-target.dtd: Add #FIXED version attribute for
5589 2007-06-13 Arthur Huillet <arthur.huillet@free.fr>
5591 * mi/mi-cmd-var.c (mi_cmd_var_assign): Fix typo.
5593 2007-06-13 Claudio Fontana <claudio.fontana@gmail.com>
5595 * fork-child.c (fork_inferior): Update comment.
5597 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
5599 * features/Makefile: Generate regformats for mips-linux and
5601 * features/sort-regs.xsl: Correct typo.
5602 * regformats/reg-mips.dat, regformats/reg-mips64.dat: Delete.
5603 * regformats/mips-linux.dat, regformats/mips64-linux.dat: New generated
5606 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
5608 * config/mips/linux.mh (TDEP_XML): New.
5609 * features/mips-linux.xml, features/mips64-linux.xml: New files.
5610 * mips-linux-nat.c (mips_linux_register_addr): Handle
5611 MIPS_RESTART_REGNUM.
5612 (mips64_linux_register_addr): Likewise.
5613 (super_xfer_partial, mips_linux_xfer_partial): New.
5614 (_initialize_mips_linux_nat): Add them to the target_ops.
5615 * mips-linux-tdep.c (mips_supply_gregset): Handle MIPS_RESTART_REGNUM.
5616 (mips_fill_gregset, mips64_supply_gregset, mips64_fill_gregset)
5617 (mips_linux_o32_sigframe_init)
5618 (mips_linux_n32n64_sigframe_init): Likewise.
5619 (mips_linux_write_pc, mips_linux_restart_reg_p): New.
5620 (mips_linux_init_abi): Use mips_linux_write_pc. Check for the
5621 "org.gnu.gdb.mips.linux" feature.
5622 * mips-linux-tdep.h (MIPS_RESTART_REGNUM): New constant.
5623 (mips_linux_restart_reg_p): New prototype.
5624 * mips-tdep.c (mips_gdbarch_init): Pass tdesc_data to the OS/ABI
5625 initialization routine.
5626 * Makefile.in (mips-linux-tdep.o, mips-linux-nat.o): Update.
5628 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
5630 * Makefile.in (mips-tdep.o): Update.
5631 * mips-tdep.c (struct register_alias, mips_o32_aliases)
5632 (mips_n32_n64_aliases, mips_register_aliases): New.
5633 (mips_register_name): Call tdesc_register_name.
5634 (mips_tdesc_register_reggroup_p): New.
5635 (mips_pseudo_register_type, value_of_mips_user_reg): New.
5636 (mips_gdbarch_init): Add target-described register support.
5637 Register aliases for register names.
5638 * target-descriptions.c (tdesc_register_name): Make global.
5639 (tdesc_register_in_reggroup_p): New function, broken out from
5640 tdesc_register_reggroup_p.
5641 (tdesc_register_reggroup_p): Use it.
5642 * target-descriptions.h (tdesc_register_name)
5643 (tdesc_register_in_reggroup_p): New prototypes.
5644 * NEWS: Correct formatting. Mention MIPS register support.
5645 * features/mips-cp0.xml, features/mips-fpu.xml,
5646 features/mips64-cp0.xml, gdb/features/mips64-fpu.xml, mips-cpu.xml,
5647 features/mips64-cpu.xml: New files.
5649 2007-06-13 Markus Deuling <deuling@de.ibm.com>
5651 * gdbarch.sh (TARGET_ADDR_BIT): Replace by gdbarch_addr_bit.
5652 * valops.c (value_cast): Likewise.
5653 * utils.c (strlen_paddr, paddr, paddr_nz, paddress): Likewise.
5654 * ui-out.c (ui_out_field_core_addr): Likewise.
5655 * tracepoint.c (tracepoints_info): Likewise.
5656 * symtab.c (print_msymbol_info): Likewise.
5657 * solib-irix.c (irix_current_sos)
5658 (irix_open_symbol_file_object): Likewise.
5659 * remote.c (build_remote_gdbarch_data): Likewise.
5660 * prologue-value.c (make_pv_area): Likewise.
5661 * procfs.c (info_mappings_callback): Likewise.
5662 * printcmd.c (print_scalar_formatted)
5663 (deprecated_print_address_numeric): Likewise.
5664 * memattr.c (mem_info_command): Likewise.
5665 * linux-nat.c (linux_nat_info_proc_cmd): Likewise.
5666 * gdbtypes.c (build_flt, gdbtypes_post_init): Likewise.
5667 * exec.c (print_section_info): Likewise.
5668 * dwarf2read.c (read_subrange_type): Likewise.
5669 * dwarf2loc.c (find_location_expression): Likewise.
5670 * dwarf2expr.c (dwarf2_read_address, unsigned_address_type)
5671 (signed_address_type, execute_stack_op): Likewise.
5672 * breakpoint.c (print_one_breakpoint, breakpoint_1): Likewise.
5673 * gdbarch.c, gdbarch.h: Regenerate.
5675 2007-06-13 Markus Deuling <deuling@de.ibm.com>
5677 * gdbarch.sh (TARGET_ARCHITECTURE): Replace by gdbarch_bfd_arch_info.
5678 * arch-utils.c (show_architecture): Likewise.
5679 * remote-mips.c (mips_open): Likewise
5680 * nto-tdep.c (nto_find_and_open_solib)
5681 (nto_init_solib_absolute_prefix): Likewise.
5682 * nto-procfs (procfs_open): Likewise.
5683 * m68hc11-tdep.c (gdb_print_insn_m68hc11): Likewise.
5684 * gcore.c (default_gcore_mach, default_gcore_arch): Likewise.
5685 * gdbarch.c, gdbarch.h: Regenerate.
5687 2007-06-13 Markus Deuling <deuling@de.ibm.com>
5689 * gdbarch.sh (TARGET_BFD_VMA_BIT): Replace by gdbarch_bfd_vma_bit.
5690 * gdbtypes.c (build_flt): Likewise.
5691 * gdbarch.c, gdbarch.h: Regenerate.
5693 2007-06-13 Markus Deuling <deuling@de.ibm.com>
5695 * gdbarch.sh (BREAKPOINT_FROM_PC): Replace by
5696 gdbarch_breakpoint_from_pc.
5697 * s390-tdep.c (s390_gdbarch_init): Likewise (comment).
5698 * remote.c (remote_insert_breakpoint)
5699 (remote_insert_hw_breakpoint): Likewise.
5700 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Likewise.
5701 * mips-tdep.c (mips_breakpoint_from_pc): Likewise (comment).
5702 * breakpoint.h (bp_target_info): Likewise (comment).
5703 * breakpoint.c (read_memory_nobpt): Likewise.
5704 * mem-break.c (default_memory_insert_breakpoint): Likewise.
5705 (symtab.h, breakpoint.h): Remove include. Remove unnecessary comment.
5706 * gdbarch.c, gdbarch.h: Regenerate.
5708 2007-06-13 Markus Deuling <deuling@de.ibm.com>
5710 * gdbarch.sh (TARGET_PTR_BIT): Replace with gdbarch_ptr_bit.
5711 * solib-svr4.c (svr4_truncate_ptr): Likewise.
5712 * solib-pa64.c (read_dynamic_info): Likewise.
5713 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets): Likewise.
5714 * solib.c (info_sharedlibrary_command): Likewise.
5715 * s390-nat.c (SUBOFF): Likewise.
5716 * p-valprint.c (pascal_val_print): Likewise.
5717 * procfs.c (info_proc_mappings): Likewise.
5718 * printcmd.c (decode_format): Likewise.
5719 * nto-tdep.c (nto_truncate_ptr): Likewise.
5720 * mips-linux-tdep.c (mips_linux_get_longjmp_target)
5721 (mips64_linux_get_longjmp_target): Likewise.
5722 * m68k-tdep.c (m68k_get_longjmp_target): Likewise.
5723 * jv-valprint.c (java_value_print): Likewise.
5724 * jv-lang.c (get_java_object_header_size): Likewise.
5725 * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Likewise.
5726 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
5727 (hppa_hpux_unwind_adjust_stub): Likewise.
5728 * gnu-v3-abi.c (build_gdb_vtable_type): Likewise.
5729 * gdbtypes.c (make_pointer_type, make_reference_type)
5730 (smash_to_memberptr_type): Likewise.
5731 * gdbarch.c, gdbarch.h: Regenerate.
5733 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
5735 * mips-tdep.c (mips_print_register): Remove unused ALL argument.
5736 (print_gp_register_row): Stop before printing a register bigger
5737 than the ABI register size.
5738 (mips_print_registers_info): Update call to mips_print_register.
5740 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
5742 * expression.h (enum exp_opcode): Document a register name for
5744 * parse.c (write_dollar_variable): Write the register name for
5746 (operator_length_standard): Expect the register name following
5748 * ada-lang.c (resolve_subexp): Likewise.
5749 * ax-gdb.c (gen_expr): Likewise.
5750 * eval.c (evaluate_subexp_standard): Likewise.
5751 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
5753 * tracepoint.c (encode_actions): Likewise.
5755 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
5757 * utils.c (set_screen_size): Use INT_MAX for default columns.
5759 2007-06-13 Ulrich Weigand <uweigand@de.ibm.com>
5761 * remote.c (remote_protocol_features): Add qXfer:spu:read and
5762 qXfer:spu:write packet types.
5764 2007-06-12 Markus Deuling <deuling@de.ibm.com>
5766 * gdbarch.sh (DEPRECATED_STACK_ALIGN): Remove.
5767 * gdbarch.c, gdbarch.h: Regenerate.
5769 2007-06-12 Markus Deuling <deuling@de.ibm.com>
5771 * gdbarch.sh (STAB_REG_TO_REGNUM): Replace by
5772 gdbarch_stab_reg_to_regnum.
5773 * stabsread.c (define_symbol): Likewise.
5774 * gdbarch.sh (ECOFF_REG_TO_REGNUM): Replace by
5775 gdbarch_ecoff_reg_to_regnum.
5776 * mdebugread.c (parse_symbol): Likewise.
5777 * i386-tdep.c (i386_gdbarch_init): Likewise (comment).
5778 * gdbarch.sh (DWARF_REG_TO_REGNUM): Replace by
5779 gdbarch_dwarf_reg_to_regnum.
5780 * gdbarch.sh (SDB_REG_TO_REGNUM): Replace by gdbarch_sdb_reg_to_regnum.
5781 * coffread.c (process_coff_symbol): Likewise.
5782 * gdbarch.sh (DWARF2_REG_TO_REGNUM): Replace by
5783 gdbarch_dwarf2_reg_to_regnum.
5784 * dwarf2loc.c (dwarf_expr_read_reg,dwarf2_evaluate_loc_desc)
5785 (locexpr_describe_location): Likewise.
5786 * dwarf2-frame.c (read_reg,execute_cfa_program,dwarf2_frame_cache)
5787 (dwarf2_frame_prev_register,dwarf2_signal_frame_this_id): Likewise.
5788 * dwarf2loc.c (DWARF2_REG_TO_REGNUM): Remove macro.
5789 * dwarf2read.c (DWARF2_REG_TO_REGNUM): Remove macro.
5790 * gdbarch.c, gdbarch.h: Regenerate.
5792 2007-06-12 Markus Deuling <deuling@de.ibm.com>
5794 * gdbarch.sh (SMASH_TEXT_ADDRESS): Replace by
5795 gdbarch_smash_text_address.
5796 * somread.c (som_symtab_read): Likewise.
5797 * elfread.c (record_minimal_symbol): Likewise.
5798 * dbxread.c (process_one_symbol): Likewise.
5799 * coffread.c (coff_symtab_read): Likewise.
5800 * gdbarch.c, gdbarch.h: Regenerate.
5802 2007-06-12 Markus Deuling <deuling@de.ibm.com>
5804 * gdbarch.sh (REGISTER_TO_VALUE): Replace by gdbarch_register_to_value.
5805 * findvar.c (value_from_register): Likewise.
5806 * gdbarch.sh (VALUE_TO_REGISTER): Replace by gdbarch_value_to_register.
5807 * valops.c (value_assign): Likewise.
5808 * gdbarch.sh (CONVERT_REGISTER_P): Replace by
5809 gdbarch_convert_register_p.
5810 * findvar.c (value_from_register): Likewise.
5811 * valops.c (value_assign): Likewise.
5812 * gdbarch.c, gdbarch.h: Regenerate.
5814 2007-06-12 Markus Deuling <deuling@de.ibm.com>
5816 * gdbarch.sh (REGISTER_SIM_REGNO): Replace by
5817 gdbarch_register_sim_regno.
5818 * sim-regno.h (sim_regno): Likewise (comment).
5819 * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register): Likewise.
5820 * gdbarch.c, gdbarch.h: Regenerate.
5822 2007-06-12 Markus Deuling <deuling@de.ibm.com>
5824 * gdbarch.sh (TARGET_VIRTUAL_FRAME_POINTER): Replace by
5825 gdbarch_virtual_frame_pointer.
5826 * tracepoint.c (encode_actions): Likewise.
5827 * dwarf2loc.c (dwarf2_loc_desc_needs_frame): Likewise.
5828 * ax-gdb.c (gen_frame_args_address, gen_frame_locals_address): Likewise.
5829 * gdbarch.c, gdbarch.h: Regenerate.
5831 2007-06-12 Markus Deuling <deuling@de.ibm.com>
5833 * gdbarch.sh (TARGET_FLOAT_BIT): Replace by gdbarch_float_bit.
5834 * p-lang.c (pascal_create_fundamental_type): Likewise.
5835 * objc-lang.c (objc_create_fundamental_type): Likewise.
5836 * mdebugread.c (_initialize_mdebugread): Likewise.
5837 * m2-lang.c (m2_create_fundamental_type)
5838 (_initialize_m2_language): Likewise.
5839 * gdbtypes.c (build_gdbtypes): Likewise.
5840 * f-lang.c (f_create_fundamental_type, build_fortran_types): Likewise.
5841 * doublest.c (floatformat_from_length): Likewise.
5842 * c-lang.c (c_create_fundamental_type): Likewise.
5843 * ada-lang.c (ada_create_fundamental_type)
5844 (ada_language_arch_info): Likewise.
5845 * gdbarch.sh (TARGET_FLOAT_FORMAT): Replace by gdbarch_float_format.
5846 * value.c (unpack_double): Likewise (comment).
5847 * gdbtypes.c (build_gdbtypes): Likewise.
5848 * doublest.c (floatformat_from_length): Likewise.
5849 * gdbarch.sh (TARGET_DOUBLE_BIT): Replace by gdbarch_double_bit.
5850 * valarith.c (value_binop): Likewise.
5851 * p-lang.c (pascal_create_fundamental_type): Likewise.
5852 * objc-lang.c (objc_create_fundamental_type): Likewise.
5853 * mdebugread.c (_initialize_mdebugread): Likewise.
5854 * m2-lang.c (m2_create_fundamental_type): Likewise.
5855 * gdbtypes.c (build_gdbtypes): Likewise.
5856 * f-lang.c (f_create_fundamental_type, build_fortran_types): Likewise.
5857 * doublest.c (floatformat_from_length): Likewise.
5858 * cris-tdep.c (cris_gdbarch_init): Likewise (comment).
5859 * c-lang.c (c_create_fundamental_type): Likewise.
5860 * ada-lex.l (processReal): Likewise.
5861 * ada-lang.c (ada_create_fundamental_type)
5862 (ada_language_arch_info): Likewise.
5863 * gdbarch.sh (TARGET_DOUBLE_FORMAT): Replace by gdbarch_double_format.
5864 * value.c (unpack_double): Likewise (comment).
5865 * gdbtypes.c (build_gdbtypes): Likewise.
5866 * doublest.c (floatformat_from_length): Likewise.
5867 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Replace by
5868 gdbarch_long_double_bit.
5869 * p-lang.c (pascal_create_fundamental_type): Likewise.
5870 * objc-lang.c (objc_create_fundamental_type): Likewise.
5871 * m2-lang.c (m2_create_fundamental_type): Likewise.
5872 * gdbtypes.c (build_gdbtypes): Likewise.
5873 * f-lang.c (f_create_fundamental_type, build_fortran_types): Likewise.
5874 * doublest.c (floatformat_from_length): Likewise.
5875 * c-lang.c (c_create_fundamental_type): Likewise.
5876 * ada-lex.l (processReal): Likewise.
5877 * ada-lang.c (ada_create_fundamental_type)
5878 (ada_language_arch_info): Likewise.
5879 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Replace by
5880 gdbarch_long_double_format.
5881 * gdbtypes.c (build_gdbtypes): Likewise.
5882 * doublest.c (floatformat_from_length): Likewise.
5883 * gdbarch.c, gdbarch.h: Regenerate.
5885 2007-06-12 Markus Deuling <deuling@de.ibm.com>
5887 * gdbarch.sh (TARGET_SHORT_BIT): Replace by gdbarch_int_bit.
5888 * ada-lang.c (ada_create_fundamental_type)
5889 (ada_language_arch_info): Likewise.
5890 * c-lang.c (c_create_fundamental_type): Likewise.
5891 * f-lang.c (f_create_fundamental_type, build_fortran_types): Likewise.
5892 * gdbtypes.c (build_gdbtypes, gdbtypes_post_init): Likewise.
5893 * m2-lang.c (m2_create_fundamental_type): Likewise.
5894 * objc-lang.c (objc_create_fundamental_type): Likewise.
5895 * p-lang.c (pascal_create_fundamental_type): Likewise.
5896 * gdbarch.sh (TARGET_INT_BIT): Replace by gdbarch_int_bit.
5897 * c-exp.y (parse_number): Likewise.
5898 * objc-exp.y (parse_number): Likewise.
5899 * ada-lex.l (processInt): Likewise.
5900 * f-exp.y (parse_number): Likewise.
5901 * p-exp.y (parse_number): Likewise.
5902 * ada-lang.c (ada_create_fundamental_type, ada_language_arch_info)
5903 (gdbtypes_post_init, build_gdbtypes): Likewise.
5904 * p-lang.c (pascal_create_fundamental_type): Likewise.
5905 * parse.c (build_parse): Likewise.
5906 * xcoffread.c (_initialize_xcoffread): Likewise.
5907 * stabsread.c (define_symbol, read_one_struct_field, read_enum_type)
5908 (read_range_type): Likewise.
5909 * objc-lang.c (objc_create_fundamental_type): Likewise.
5910 * f-lang.c (build_fortran_types, f_create_fundamental_type): Likewise.
5911 * m2-lang.c (m2_create_fundamental_type, _initialize_m2_language)
5912 (m2_create_fundamental_type): Likewise.
5913 * c-lang.c (c_create_fundamental_type): Likewise.
5914 * coffread.c (coff_read_enum_type): Likewise.
5915 * mdebugread.c (parse_symbol, _initialize_mdebugread): Likewise.
5916 * dwarf2read.c (new_symbol): Likewise.
5917 * gdbarch.sh (TARGET_LONG_BIT): Replace by gdbarch_long_bit.
5918 * c-exp.y (parse_number): Likewise.
5919 * objc-exp.y (parse_number): Likewise.
5920 * ada-lex.l (processInt): Likewise.
5921 * f-exp.y (parse_number): Likewise.
5922 * p-exp.y (parse_number): Likewise.
5923 * valarith.c (value_binop): Likewise.
5924 * symfile.c (read_target_long_array, simple_overlay_update_1): Likewise.
5925 * ada-lang.c (ada_create_fundamental_type)
5926 (ada_language_arch_info): Likewise.
5927 * gdbtypes.c (build_gdbtypes, gdbtypes_post_init): Likewise.
5928 * symfile.c (TARGET_LONG_BYTES): Likewise.
5929 * p-lang.c (pascal_create_fundamental_type): Likewise.
5930 * objc-lang.c (objc_create_fundamental_type): Likewise.
5931 * m2-lang.c (m2_create_fundamental_type): Likewise.
5932 * f-lang.c (f_create_fundamental_type): Likewise.
5933 * c-lang.c (c_create_fundamental_type): Likewise.
5934 * coffread.c (decode_base_type): Likewise.
5935 * gdbarch.sh (TARGET_LONG_LONG_BIT): Replace by gdbarch_long_long_bit.
5936 * c-exp.y (parse_number): Likewise.
5937 * objc-exp.y (parse_number): Likewise.
5938 * p-exp.y (parse_number): Likewise.
5939 * ada-lang.c (ada_create_fundamental_type)
5940 (ada_language_arch_info): Likewise.
5941 * gdbtypes.c (gdbtypes_post_init, build_gdbtypes): Likewise.
5942 * stabsread.c (read_range_type): Likewise.
5943 * p-lang.c (pascal_create_fundamental_type): Likewise.
5944 * objc-lang.c (objc_create_fundamental_type): Likewise.
5945 * m2-lang.c (m2_create_fundamental_type): Likewise.
5946 * f-lang.c (f_create_fundamental_type): Likewise.
5947 * c-lang.c (c_create_fundamental_type): Likewise.
5948 * gdbarch.c, gdbarch.h: Regenerate.
5950 2007-06-12 Andreas Schwab <schwab@suse.de>
5952 * frame-unwind.h (frame_dealloc_cache_ftype): Define.
5953 (struct frame_unwind): Add dealloc_cache.
5954 * frame.c (reinit_frame_cache): Call dealloc_cache on all caches.
5956 * libunwind-frame.h (libunwind_frame_dealloc_cache): Declare.
5957 * libunwind-frame.c (libunwind_frame_dealloc_cache): Define.
5958 (libunwind_frame_unwind): Set dealloc_cache.
5959 * ia64-tdep.c (ia64_libunwind_frame_unwind): Set dealloc_cache.
5961 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
5962 Markus Deuling <deuling@de.ibm.com>
5964 * remote.c (remote_write_qxfer): New function.
5965 (remote_xfer_partial): Add handling for TARGET_OBJECT_SPU.
5966 (remote_read_qxfer): Do not cache empty objects.
5967 (_initialize_remote): Add PACKET_qXfer_spu_read and
5968 PACKET_qXfer_spu_write.
5970 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
5972 * target.h (enum target_object): Add TARGET_OBJECT_SPU.
5973 * spu-linux-nat.c (spu_xfer_partial): Handle TARGET_OBJECT_SPU.
5975 * spu-tdep.h (SPU_NUM_PSEUDO_REGS): Add 5 pseudo registers.
5976 (enum spu_regnum): Add SPU_FPSCR_REGNUM, SPU_SRR0_REGNUM,
5977 SPU_LSLR_REGNUM, SPU_DECR_REGNUM, SPU_DECR_STATUS_REGNUM.
5978 * spu-tdep.c (infospucmdlist): New variable.
5979 (spu_register_name): Handle additional pseudo registers.
5980 (spu_register_type): Likewise.
5981 (spu_pseudo_register_read): Likewise.
5982 (spu_pseudo_register_write): Likewise.
5983 (spu_pseudo_register_read_spu): New function.
5984 (spu_pseudo_register_write_spu): Likewise.
5985 (info_spu_event_command): New function.
5986 (info_spu_signal_command): Likewise.
5987 (info_spu_mailbox_list): Likewise.
5988 (info_spu_mailbox_command): Likewise.
5989 (spu_mfc_get_bitfield): Likewise.
5990 (info_spu_dma_cmdlist): Likewise.
5991 (info_spu_dma_command): Likewise.
5992 (info_spu_proxydma_command): Likewise.
5993 (info_spu_command): Likewise.
5994 (_initialize_spu_tdep): Install "info spu" commands.
5996 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
5998 * spu-linux-nat.c (spu_proc_xfer_spu): Do not return failure when
5999 accessing non-seekable spufs files.
6001 2007-06-09 Markus Deuling <deuling@de.ibm.com>
6003 * gdbarch.sh (SKIP_TRAMPOLINE_CODE): Replace by
6004 gdbarch_skip_trampoline_code.
6005 * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Likewise (comment).
6006 * objc-lang.c (objc_skip_trampoline)
6007 (objc_submethod_helper_data): Likewise.
6008 * m32c-lang.c (m32c_skip_trampoline_code): Likewise (comment).
6009 * infrun.c (handle_inferior_event): Likewise.
6010 * gnu-v3-abi.c (gnuv3_skip_trampoline): Likewise.
6011 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Replace by
6012 gdbarch_in_solib_return_trampoline.
6013 * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Likewise (comment).
6014 * infrun.c (handle_inferior_event): Likewise.
6015 * hppa-tdep.c (hppa_stub_unwind_sniffer): Likewise.
6016 * gdbarch.c, gdbarch.h: Regenerate.
6018 2007-06-09 Markus Deuling <deuling@de.ibm.com>
6020 * gdbarch.sh (SKIP_PROLOGUE): Replace by gdbarch_skip_prologue.
6021 * symtab.c (find_function_start_sal, in_prologue): Likewise.
6022 * linespec.c (minsym_found): Likewise.
6023 * infrun.c (step_into_function): Likewise.
6024 * gdbarch.c, gdbarch.h: Regenerate.
6026 2007-06-09 Markus Deuling <deuling@de.ibm.com>
6028 * gdbarch.sh (NAME_OF_MALLOC): Replace by gdbarch_name_of_malloc.
6029 * valops.c (value_allocate_space_in_inferior): Likewise.
6030 * gdbarch.c, gdbarch.h: Regenerate.
6032 2007-06-09 Markus Deuling <deuling@de.ibm.com>
6034 * gdbarch.sh (MEMORY_INSERT_BREAKPOINT): Replace by
6035 gdbarch_memory_insert_breakpoint.
6036 * mem-break.c (memory_insert_breakpoint): Likewise.
6037 * gdbarch.sh (MEMORY_REMOVE_BREAKPOINT): Replace by
6038 gdbarch_memory_remove_breakpoint.
6039 * mem-break.c (memory_remove_breakpoint): Likewise.
6040 * gdbarch.c, gdbarch.h: Regenerate.
6042 2007-06-09 Markus Deuling <deuling@de.ibm.com>
6044 * gdbarch.sh (FETCH_TLS_LOAD_MODULE_ADDRESS): Replace by
6045 gdbarch_fetch_tls_load_module_address.
6046 * gdbarch.sh (FETCH_TLS_LOAD_MODULE_ADDRESS_P): Replace by
6047 gdbarch_fetch_tls_load_module_address_p.
6048 * gdbarch.c, gdbarch.h: Regenerate.
6050 2007-06-09 Markus Deuling <deuling@de.ibm.com>
6052 * gdbarch.sh (DECR_PC_AFTER_BREAK): Replace by
6053 gdbarch_decr_pc_after_break.
6054 * tracepoint.c (trace_dump_command): Likewise.
6055 * solib-sunos.c (sunos_solib_create_inferior_hook): Likewise.
6056 * linux-thread-db.c (check_event): Likewise.
6057 * linux-nat.c (cancel_breakpoints_callback): Likewise.
6058 * infrun.c (adjust_pc_after_break, normal_stop): Likewise.
6059 * frame.h: Likewise (comment).
6060 * dummy-frame.c (deprecated_pc_in_call_dummy): Likewise.
6061 * aix-thread.c (aix_thread_wait): Likewise.
6062 * gdbarch.c, gdbarch.h: Regenerate.
6064 2007-06-09 Markus Deuling <deuling@de.ibm.com>
6066 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS): Replace by
6067 gdbarch_address_class_type_flags.
6068 * dwarf2read.c (read_tag_pointer_type): Likewise.
6069 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS_P): Replace by
6070 gdbarch_address_class_type_flags_p.
6071 * dwarf2read.c (read_tag_pointer_type): Likewise.
6072 * gdbarch.c, gdbarch.h: Regenerate.
6074 2007-06-09 Markus Deuling <deuling@de.ibm.com>
6076 * gdbarch.sh (ADDR_BITS_REMOVE): Replace by gdbarch_addr_bits_remove.
6077 * value.c (value_as_address): Likewise (comment).
6078 * remote-mips.c (common_breakpoint): Likewise.
6079 * regcache.c (read_pc_pid): Likewise.
6080 * printcmd.c (do_one_display): Likewise.
6081 * monitor.c (monitor_write_memory, monitor_read_memory)
6082 (monitor_insert_breakpoint): Likewise.
6083 * mips-tdep.c (heuristic_proc_start): Likewise.
6084 * infrun.c (insert_step_resume_breakpoint_at_frame)
6085 (insert_step_resume_breakpoint_at_caller): Likewise.
6086 * buildsym.c (record_line): Likewise.
6087 * arm-tdep.c (arm_scan_prologue, thumb_get_next_pc)
6088 (arm_get_next_pc): Likewise.
6089 * armnbsd-nat.c (arm_supply_gregset, fetch_register, store_register)
6090 (store_regs): Likewise.
6091 * arm-linux-tdep.c (arm_linux_supply_gregset): Likewise.
6092 * arm-linux-nat.c (fetch_register, fetch_regs): Likewise.
6093 * gdbarch.c, gdbarch.h: Regenerate.
6095 2007-06-09 Markus Deuling <deuling@de.ibm.com>
6097 * gdbarch.sh (REGISTER_NAME): Replace by gdbarch_register_name.
6098 * tracepoint.c (scope_info): Likewise.
6099 * target.c (debug_print_register): Likewise.
6100 * stack.c (frame_info): Likewise.
6101 * sh-tdep.c (sh_register_reggroup_p): Likewise.
6102 * sh64-tdep.c (sh64_do_fp_register, sh64_do_register)
6103 (sh64_media_print_registers_info)
6104 (sh64_compact_print_registers_info): Likewise.
6105 * rs6000-tdep.c (rs6000_register_reggroup_p): Likewise.
6106 * remote-sim.c (gdbsim_fetch_register): Likewise.
6107 * remote.c (packet_reg): Likewise (comment).
6108 * reggroups.c (default_register_reggroup_p): Likewise.
6109 * regcache.c (regcache_dump): Likewise.
6110 * printcmd.c (address_info): Likewise.
6111 * ppc-linux-nat.c (fetch_register, store_register): Likewise.
6112 * mt-dep.c (mt_registers_info): Likewise.
6113 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Likewise (comment).
6114 * mips-tdep.c (mips_register_reggroup_p, mips_read_fp_register_single)
6115 (mips_read_fp_register_double, mips_print_fp_register)
6116 (mips_print_register, print_gp_register_row, mips_print_registers_info)
6117 (mips_register_sim_regno): Likewise.
6118 * m68klinux-nat.c (regmap, fetch_register, store_register): Likewise.
6119 * inf-ptrace.c (inf_ptrace_fetch_register)
6120 (inf_ptrace_store_register): Likewise.
6121 * infcmd.c (default_print_registers_info): Likewise.
6122 * ia64-linux-nat.c (ia64_linux_fetch_register)
6123 (ia64_linux_store_register): Likewise.
6124 * i386-linux-nat.c (fetch_register, store_register): Likewise.
6125 * i386gnu-nat.c (gnu_fetch_registers, gnu_store_registers): Likewise.
6126 * hppa-linux-nat.c (fetch_register, store_register): Likewise.
6127 * hppa-hpux-nat.c (hppa_hpux_fetch_register)
6128 (hppa_hpux_store_register): Likewise.
6129 * findvar.c (locate_var_value): Likewise.
6130 * dwarf2loc.c (locexpr_describe_location): Likewise.
6131 * dwarf2-frame.c (execute_cfa_program): Likewise.
6132 * arm-tdep.c (arm_push_dummy_call): Likewise.
6133 * arch-utils.c (legacy_register_sim_regno): Likewise.
6134 * alpha-tdep.c (alpha_register_reggroup_p): Likewise.
6135 * alpha-nat.c (fetch_osf_core_registers): Likewise.
6136 * mi/mi-main.c (mi_cmd_data_list_register_names)
6137 (mi_cmd_data_list_changed_registers, mi_cmd_data_list_register_values)
6138 (mi_cmd_data_write_register_values): Likewise.
6139 * gdbarch.c, gdbarch.h: Regenerate.
6141 2007-06-07 Daniel Jacobowitz <dan@codesourcery.com>
6143 * target-memory.c (blocks_to_erase): Correct off-by-one error.
6145 2007-06-06 Vladimir Prus <vladimir@codesourcery.com>
6147 * remote.c (process_g_packet): Don't check size.
6148 * gdbarch.sh: Remove register_bytes_ok.
6149 * gdbarch.c: Regenerated.
6150 * gdbarch.h: Regenerated.
6151 * m68k-tdep.c (REGISTER_BYTES_NOFP): Remove.
6152 (m68k_register_bytes_ok): Remove.
6153 (m68k_gdbarch_init): Don't register m68k_register_bytes_ok.
6155 2007-06-06 Andreas Schwab <schwab@suse.de>
6157 * libunwind-frame.c (unw_destroy_addr_space_p): Define.
6158 (destroy_addr_space_name): Define.
6159 (libunwind_load): Get address of destroy_addr_space function.
6160 (libunwind_frame_cache): Destroy unw_addr_space_t object before
6161 returning unsuccessfully.
6162 (libunwind_frame_sniffer): Destroy unw_addr_space_t object before
6164 (libunwind_sigtramp_frame_sniffer): Likewise.
6165 (libunwind_get_reg_special): Likewise.
6167 2007-06-06 Markus Deuling <deuling@de.ibm.com>
6169 * gdbarch.sh (FETCH_POINTER_ARGUMENT): Replace by
6170 gdbarch_fetch_pointer_argument.
6171 * objc-lang.c (OBJC_FETCH_POINTER_ARGUMENT): Likewise.
6172 * gdbarch.c, gdbarch.h: Regenerate.
6174 2007-06-06 Markus Deuling <deuling@de.ibm.com>
6176 * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Replace by
6177 gdbarch_have_nonsteppable_watchpoint.
6178 * infrun.c (handle_inferior_event, adjust_pc_after_break): Likewise.
6179 * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Replace by
6180 gdbarch_cannot_step_breakpoint.
6181 * infrun.c (resume): Likewise.
6182 * gdbarch.c, gdbarch.h: Regenerate.
6184 2007-06-06 Markus Deuling <deuling@de.ibm.com>
6186 * gdbarch.sh (FRAME_ARGS_SKIP): Replace by gdbarch_frame_args_skip.
6187 * stack.c (print_frame_args): Likewise.
6188 * gdbarch.sh (FRAME_NUM_ARGS): Replace by gdbarch_frame_num_args.
6189 * stack.c (print_args_stub, frame_info): Likewise.
6190 * gdbarch.sh (FRAME_NUM_ARGS_P): Replace by gdbarch_frame_num_args_p.
6191 * stack.c (print_args_stub, frame_info): Likewise.
6192 * gdbarch.c, gdbarch.h: Regenerate.
6194 2007-06-06 Markus Deuling <deuling@de.ibm.com>
6196 * gdbarch.sh (COFF_MAKE_MSYMBOL_SPECIAL): Replace by
6197 gdbarch_coff_make_msymbol_special.
6198 * coffread.c (coff_symtab_read): Likewise.
6199 * gdbarch.sh (ELF_MAKE_MSYMBOL_SPECIAL): Replace by
6200 gdbarch_elf_make_msymbol_special.
6201 * elfread.c (elf_symtab_read): Likewise.
6202 * mips-tdep.c (mips_elf_make_msymbol_special): Likewise (comment).
6203 * sh64-tdep.c (MSYMBOL_IS_SPECIAL): Likewise (comment).
6204 * gdbarch.c, gdbarch.h: Regenerate.
6206 2007-06-06 Markus Deuling <deuling@de.ibm.com>
6208 * gdbarch.sh (FRAME_RED_ZONE_SIZE): Replace by
6209 gdbarch_frame_red_zone_size.
6210 * gdbarch.c, gdbarch.h: Regenerate.
6212 2007-06-06 Markus Deuling <deuling@de.ibm.com>
6214 * gdbarch.sh (INNER_THAN): Replace by gdbarch_inner_than.
6215 * infcall.c (call_function_by_hand): Likewise.
6216 * gcore.c (derive_stack_segment): Likewise.
6217 * frame.c (frame_id_inner): Likewise.
6218 * arch-utils.c (core_addr_lessthan): Likewise (comment).
6219 * ada-lang.c (ensure_lval): Likewise.
6220 * gdbarch.c, gdbarch.h: Regenerate.
6222 2007-06-06 Markus Deuling <deuling@de.ibm.com>
6224 * gdbarch.sh (ADDRESS_TO_POINTER): Replace by
6225 gdbarch_address_to_pointer.
6226 * findvar.c (store_typed_address): Likewise.
6227 * gdbtypes.c (make_pointer_type): Likewise (comment).
6228 * procfs.c (procfs_address_to_host_pointer): Likewise.
6229 * std-regs.c (value_of_builtin_frame_reg): Likewise.
6230 (value_of_builtin_frame_fp_reg): Likewise.
6231 (value_of_builtin_frame_pc_reg): Likewise.
6232 * utils.c (paddress): Likewise (comment).
6233 * gdbarch.sh (POINTER_TO_ADDRESS): Replace by
6234 gdbarch_pointer_to_address.
6235 * findvar.c (extract_typed_address): Likewise.
6236 * gdbtypes.c (make_pointer_type): Likewise (comment).
6237 * valops.c (value_cast): Likewise (comment).
6238 * gdbarch.c, gdbarch.h: Regenerate.
6240 2007-06-06 Markus Deuling <deuling@de.ibm.com>
6242 * gdbarch.sh (GET_LONGJMP_TARGET): Replace by gdbarch_get_longjmp_target.
6243 * infrun.c (handle_inferior_event): Likewise.
6244 * gdbarch.sh (GET_LONGJMP_TARGET_P): Replace by
6245 gdbarch_get_longjmp_target_p.
6246 * breakpoint.c (breakpoint_re_set): Likewise.
6247 * infrun.c (handle_inferior_event): Likewise.
6248 * gdbarch.c, gdbarch.h: Regenerate.
6250 2007-06-06 Ulrich Weigand <uweigand@de.ibm.com>
6252 * hppa-hpux-tdep.c (args_for_find_stub, HP_ACC_EH_notify_hook,
6253 HP_ACC_EH_set_hook_value, HP_ACC_EH_notify_callback, HP_ACC_EH_break,
6254 HP_ACC_EH_catch_throw, HP_ACC_EH_catch_catch, __eh_notification,
6255 hp_cxx_exception_support, hp_cxx_exception_support_initialized,
6256 eh_notify_hook_addr, eh_notify_callback_addr, eh_break_addr,
6257 eh_catch_throw_addr, break_callback_sal, setup_d_pid_in_inferior,
6258 find_stub_with_shl_get, cover_find_stub_with_shl_get,
6259 initialize_hp_cxx_exception_support, child_enable_exception_callback,
6260 current_ex_event, child_get_current_exception_event): Remove.
6261 (hppa_hpux_inferior_created): Remove.
6262 (hppa_hpux_init_abi): Do not install hppa_hpux_inferior_created.
6264 * breakpoint.h (deprecated_exception_catchpoints_are_fragile): Remove.
6265 (deprecated_exception_support_initialized): Remove.
6266 * breakpoint.c (deprecated_exception_catchpoints_are_fragile): Remove.
6267 (deprecated_exception_support_initialized): Remove.
6268 (breakpoint_init_inferior): Remove handling of non-zero
6269 deprecated_exception_catchpoints_are_fragile.
6271 * symtab.h (deprecated_hp_som_som_object_present): Remove.
6272 * symtab.c (deprecated_hp_som_som_object_present): Remove.
6273 * c-typeprint.c (c_type_print_base): Remove handling of non-zero
6274 deprecated_hp_som_som_object_present.
6275 * eval.c (evaluate_subexp_standard): Likewise.
6276 * valops.c (value_cast): Likewise.
6278 * parse.c (parse_nested_classes_for_hpacc, coloncolon): Remove.
6279 * parser-defs.h (parse_nested_classes_for_hpacc): Remove.
6280 * c-exp.y (yylex): Do not call parse_nested_classes_for_hpacc.
6282 2007-06-06 Ulrich Weigand <uweigand@de.ibm.com>
6284 * objfiles.h (ImportEntry, ExportEntry): Remove types.
6285 (struct objfile): Remove import_list, import_list_size,
6286 export_list, export_list_size members.
6287 (is_in_import_list): Remove prototype.
6288 * objfiles.c (is_in_import_list): Remove.
6289 * somread.c (init_import_symbols, init_export_symbols): Remove.
6290 (som_symfile_read): Do not call init_import_symbols. Do not
6291 set objfile->export_list and objfile->export_list_size.
6293 2007-06-05 Daniel Jacobowitz <dan@codesourcery.com>
6295 * dwarf2read.c (dwarf2_symbol_mark_computed): Fix formatting.
6296 Use the original objfile if necessary.
6298 2007-06-04 Daniel Jacobowitz <dan@codesourcery.com>
6300 * defs.h (ldirname): New prototype.
6301 * dwarf2read.c (read_file_scope): Use DW_AT_name if DW_AT_comp_dir is
6303 * utils.c (ldirname): New function.
6304 * xml-tdesc.c (file_read_description_xml): Use ldirname.
6306 2007-06-01 Ulrich Weigand <uweigand@de.ibm.com>
6308 * spu-tdep.c (spu_push_dummy_call): Store stack back chain.
6310 2007-06-01 Joel Brobecker <brobecker@adacore.com>
6312 * solib-svr4.c (svr4_solib_create_inferior_hook): Remove warning.
6314 2007-06-01 Ulrich Weigand <uweigand@de.ibm.com>
6316 * irix5-nat.c (JB_ELEMENT_SIZE, get_longjmp_target): Remove.
6318 2007-06-01 Ulrich Weigand <uweigand@de.ibm.com>
6320 * ppc-linux-tdep.c (INSTR_SC, INSTR_LI_R0_0x6666, INSTR_LI_R0_0x7777,
6321 INSTR_LI_R0_NR_sigreturn, INSTR_LI_R0_NR_rt_sigreturn): Remove.
6322 (PPC_LINUX_SIGNAL_FRAMESIZE, PPC_LINUX_REGS_PTR_OFFSET,
6323 PPC_LINUX_HANDLER_PTR_OFFSET): Remove.
6324 (ppc_linux_in_sigtramp, insn_is_sigreturn,
6325 ppc_linux_at_sigtramp_return_path): Remove.
6327 2007-05-31 Markus Deuling <deuling@de.ibm.com>
6329 * xtensa-tdep.c (XTENSA_IS_ENTRY, extract_call_winsize)
6330 (xtensa_register_write_masked, xtensa_register_read_masked)
6331 (xtensa_extract_return_value, xtensa_store_return_value
6332 (xtensa_push_dummy_call, xtensa_breakpoint_from_pc): Replace
6333 TARGET_BYTE_ORDER by gdbarch_byte_order.
6334 * sh-tdep.c (sh_breakpoint_from_pc, gdb_print_insn_sh)
6335 (sh_justify_value_in_reg, sh_next_flt_argreg, sh_push_dummy_call_fpu)
6336 (sh_extract_return_value_fpu, sh_store_return_value_fpu): Likewise.
6337 * sh64-tdep.c (sh64_breakpoint_from_pc, gdb_print_insn_sh64)
6338 (sh64_push_dummy_call, sh64_extract_return_value)
6339 (sh64_store_return_value, sh64_register_convert_to_virtual)
6340 (sh64_register_convert_to_raw, sh64_pseudo_register_read)
6341 (sh64_pseudo_register_write, sh64_do_fp_register)
6342 (sh64_frame_prev_register): Likewise.
6343 * score-tdep.c (score_print_insn, score_breakpoint_from_pc)
6344 (score_return_value, score_push_dummy_call, score_fetch_inst): Likewise.
6345 * rs6000-tdep.c (rs6000_breakpoint_from_pc, rs6000_push_dummy_call)
6346 (e500_move_ev_register,gdb_print_insn_powerpc): Likewise.
6347 * remote-m32r-sdi.c (m32r_resume, m32r_wait): Likewise.
6348 * ppc-linux-nat.c (store_register): Likewise.
6349 * nto-tdep.c (nto_find_and_open_solib)
6350 (nto_init_solib_absolute_prefix): Likewise.
6351 * mips-tdep.c (mips_pseudo_register_read, mips_pseudo_register_write)
6352 (mips_convert_register_p, mips_eabi_push_dummy_call)
6353 (mips_n32n64_push_dummy_call, mips_n32n64_return_value)
6354 (mips_o32_push_dummy_call, mips_o32_return_value)
6355 (mips_o64_push_dummy_call, mips_o64_return_value, mips_o64_return_value)
6356 (mips_read_fp_register_single, mips_read_fp_register_double)
6357 (mips_print_register, print_gp_register_row, gdb_print_insn_mips)
6358 (mips_breakpoint_from_pc): Likewise.
6359 * mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset): Likewise.
6360 * mips-linux-tdep.c (mips64_supply_fpregset, mips64_fill_fpregset)
6361 (mips_linux_o32_sigframe_init): Likewise.
6362 * m32r-tdep.c (m32r_memory_insert_breakpoint)
6363 (m32r_memory_remove_breakpoint, m32r_breakpoint_from_pc): Likewise.
6364 * libunwind-frame.c (libunwind_frame_cache, libunwind_frame_sniffer)
6365 (libunwind_sigtramp_frame_sniffer, libunwind_get_reg_special): Likewise.
6366 * iq2000-tdep.c (iq2000_breakpoint_from_pc): Likewise.
6367 * coffread.c (process_coff_symbol): Likewise.
6368 * arm-tdep.c (convert_from_extended, convert_to_extended)
6369 (gdb_print_insn_arm): Likewise.
6371 2007-05-31 Markus Deuling <deuling@de.ibm.com>
6373 * gdbarch.sh (NUM_REGS): Replace by gdbarch_num_regs.
6374 * i386-tdep.c (i386_dbx_reg_to_regnum)
6375 (i386_svr4_reg_to_regnum): Likewise.
6376 * inf-ptrace.c (inf_ptrace_fetch_registers)
6377 (inf_ptrace_store_registers): Likewise.
6378 * corelow.c (get_core_registers): Likewise.
6379 * i386-linux-nat.c (supply_gregset, fill_gregset)
6380 (i386_linux_fetch_inferior_registers)
6381 (i386_linux_store_inferior_registers): Likewise.
6382 * remote.c (init_remote_state,packet_reg_from_regnum)
6383 (packet_reg_from_pnum,process_g_packet,remote_fetch_registers)
6384 (remote_prepare_to_store,store_registers_using_G)
6385 (remote_store_registers,remote_arch_state): Likewise.
6386 * tracepoint.c (encode_actions): Likewise.
6387 * mi/mi-main.c (mi_cmd_data_list_register_names)
6388 (mi_cmd_data_list_changed_registers,mi_cmd_data_list_register_values)
6389 (mi_cmd_data_write_register_values): Likewise.
6390 * tui/tui-regs.c (tui_show_register_group)
6391 (tui_show_register_group): Likewise.
6392 * xtensa-tdep.h (FP_ALIAS): Likewise.
6393 * xtensa-tdep.c (xtensa_register_name,xtensa_register_type)
6394 (xtensa_reg_to_regnum,xtensa_pseudo_register_read)
6395 (xtensa_pseudo_register_write,xtensa_register_reggroup_p): Likewise.
6396 * win32-nat.c (do_win32_fetch_inferior_registers)
6397 (do_win32_store_inferior_registers,fetch_elf_core_registers
6398 * user-regs.h: Likewise (comment).
6399 * user-regs.c (user_reg, user_reg_map_name_to_regnum): Likewise.
6400 * trad-frame.c (trad_frame_alloc_saved_regs): Likewise.
6401 * target-descriptions.h: Likewise (comment).
6402 * target-descriptions.c (tdesc_use_registers): Likewise (comment).
6403 * target.c (debug_print_register): Likewise.
6404 * stack.c (frame_info): Likewise.
6405 * stabsread.c (define_symbol): Likewise.
6406 * sh64-tdep.c (sh64_do_pseudo_register,sh64_print_register)
6407 (sh64_media_print_registers_info)
6408 (sh64_compact_print_registers_info): Likewise.
6409 * rs6000-tdep.c (rs6000_register_sim_regno): Likewise.
6410 * rs6000-nat.c (fetch_register,store_register): Likewise.
6411 * remote-sim.c (one2one_register_sim_regno,gdbsim_fetch_register)
6412 (gdbsim_fetch_register,gdbsim_store_register): Likewise.
6413 * remote-mips.c (mips_fetch_registers,mips_store_registers): Likewise.
6414 * remote-m32r-sdi.c (m32r_fetch_registers)
6415 (m32r_store_registers): Likewise.
6416 * reggroups.c (default_register_reggroup_p): Likewise.
6417 * regcache.c (init_regcache_descr,register_size,regcache,regcache_save)
6418 (regcache_restore,regcache_dump): Likewise.
6419 * monitor.c (monitor_fetch_registers,monitor_store_registers): Likewise.
6420 * mips-tdep.c (mips_xfer_register,mips_register_name)
6421 (mips_register_reggroup_p,mips_pseudo_register_read)
6422 (mips_pseudo_register_write,mips_convert_register_p,mips_register_type)
6423 (mips_unwind_pc,mips_unwind_sp,mips_unwind_dummy_id,set_reg_offset)
6424 (mips16_scan_prologue,mips_insn16_frame_cache,reset_saved_regs)
6425 (mips32_scan_prologue,mips_insn32_frame_cache,read_next_frame_reg)
6426 (mips_n32n64_return_value,mips_o32_return_value,mips_o64_return_value)
6427 (print_gp_register_row,mips_print_registers_info)
6428 (mips_stab_reg_to_regnum,mips_dwarf_dwarf2_ecoff_reg_to_regnum)
6429 (mips_register_sim_regno): Likewise.
6430 * mips-linux-tdep.c (mips_linux_o32_sigframe_init)
6431 (mips_linux_n32n64_sigframe_init): Likewise.
6432 * mips-linux-nat.c (mips_linux_register_addr)
6433 (mips64_linux_register_addr): Likewise.
6434 * findvar.c (value_of_register): Likewise.
6435 * infcmd.c (default_print_registers_info,registers_info)
6436 (print_vector_info,print_float_info): Likewise.
6437 * mips64obsd-tdep.c (mips64obsd_sigframe_init): Likewise.
6438 * inf-child.c (inf_child_fetch_inferior_registers): Likewise.
6439 * m68k-tdep.c (m68k_dwarf_reg_to_regnum): Likewise.
6440 * m68hc11-tdep.c (m68hc11_frame_unwind_cache(: Likewise.
6441 * m32r-tdep.c (m32r_frame_unwind_cache): Likewise.
6442 * ia64-linux-nat.c (ia64_register_addr,ia64_cannot_fetch_register)
6443 (ia64_cannot_store_register,ia64_linux_fetch_registers)
6444 (ia64_linux_store_registers): Likewise.
6445 * hpux-thread.c (hpux_thread_fetch_registers)
6446 (hpux_thread_store_registers): Likewise.
6447 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM,E_PSEUDO_EXR_REGNUM)
6448 (h8300_init_frame_cache,h8300_frame_cache,h8300_frame_prev_register)
6449 (h8300_register_type): Likewise.
6450 * dwarf2-frame.c (dwarf2_frame_cache)
6451 (dwarf2_frame_state_alloc_regs): Likewise.
6452 * cris-tdep.c (cris_register_size,cris_cannot_fetch_register)
6453 (cris_cannot_store_register,crisv32_cannot_fetch_register)
6454 (crisv32_cannot_store_register,cris_register_name): Likewise.
6455 * avr-tdep.c (avr_frame_unwind_cache): Likewise.
6456 * arch-utils.c (legacy_register_sim_regno)
6457 (legacy_virtual_frame_pointer): Likewise.
6458 * arm-tdep.c (arm_make_prologue_cache,arm_register_sim_regno):Likewise.
6459 * arm-tdep.h: Likewise (comment).
6460 * frv-tdep.c (frv_register_sim_regno): Likewise.
6461 * m68klinux-nat.c (old_fetch_inferior_registers)
6462 (old_store_inferior_registers): Likewise.
6463 * m32c-tdep.c (m32c_virtual_frame_pointer): Likewise.
6464 * irix5-nat.c (fetch_core_registers): Likewise.
6465 * hppa-tdep.c (hppa_frame_cache): Likewise.
6466 * hppa-linux-nat.c (hppa_linux_register_addr)
6467 (hppa_linux_fetch_inferior_registers)
6468 (hppa_linux_store_inferior_registers): Likewise.
6469 * hppa-hpux-nat.c (hppa_hpux_fetch_inferior_registers)
6470 (hppa_hpux_store_inferior_registers): Likewise.
6471 * amd64-nat.c (amd64_native_gregset_reg_offset)
6472 (amd64_supply_native_gregset,amd64_collect_native_gregset): Likewise.
6473 * dbug-rom.c (dbug_regname): Likewise.
6474 * m68hc11-tdep.c (m68hc11_frame_unwind_cache)
6475 (HARD_PAGE_REGNUM (comment)): Likewise.
6476 * gdbarch.sh (NUM_PSEUDO_REGS): Replace by gdbarch_num_pseudo_regs.
6477 * i386-tdep.c (i386_dbx_reg_to_regnum)
6478 (i386_svr4_reg_to_regnum): Likewise.
6479 * mi/mi-main.c (mi_cmd_data_list_register_names)
6480 (mi_cmd_data_list_changed_registers,mi_cmd_data_list_register_values)
6481 (mi_cmd_data_write_register_values): Likewise.
6482 * gdbarch.c, gdbarch.h: Regenerate.
6483 * tui/tui-regs.c (tui_show_register_group): Likewise.
6484 * xtensa-tdep.h (FP_ALIAS): Likewise.
6485 * user-regs.h: Likewise (comment).
6486 * user-regs.c (user_reg, user_reg_map_name_to_regnum): Likewise.
6487 * trad-frame.c (trad_frame_alloc_saved_regs): Likewise.
6488 * target-descriptions.h: Likewise (comment).
6489 * target.c (debug_print_register): Likewise.
6490 * stack.c (frame_info): Likewise.
6491 * stabsread.c (define_symbol): Likewise.
6492 * sh64-tdep.c (sh64_print_register,sh64_media_print_registers_info)
6493 (sh64_compact_print_registers_info): Likewise.
6494 * rs6000-tdep.c (rs6000_register_sim_regno): Likewise.
6495 * regcache.c (init_regcache_descr,register_size,regcache,regcache_save
6496 (regcache_restore,regcache_dump): Likewise.
6497 * mips-tdep.c (print_gp_register_row,mips_print_registers_info)
6498 (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
6499 (mips_stab_reg_to_regnum): Likewise.
6500 * findvar.c (value_of_register): Likewise.
6501 * infcmd.c (default_print_registers_info,registers_info)
6502 (print_vector_info,print_float_info): Likewise.
6503 * m68k-tdep.c (m68k_dwarf_reg_to_regnum): Likewise.
6504 * h8300-tdep.c (h8300_register_type): Likewise.
6505 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
6506 * frame.h (SIZEOF_FRAME_SAVED_REGS): Likewise.
6507 * xtensa-tdep.c (xtensa_register_type,xtensa_reg_to_regnum)
6508 (xtensa_pseudo_register_read,xtensa_pseudo_register_write): Likewise.
6509 * parse.c: Remove comment.
6510 * gdbarch.c, gdbarch.h: Regenerate
6512 2007-05-31 Markus Deuling <deuling@de.ibm.com>
6514 * gdbarch.sh (CANNOT_FETCH_REGISTER): Replace by
6515 gdbarch_cannot_fetch_register.
6516 * alpha-nat.c (fetch_osf_core_registers): Likewise.
6517 * hppa-linux-nat.c (fetch_register): Likewise.
6518 * inf-ptrace.c (inf_ptrace_fetch_register): Likewise.
6519 * m68klinux-nat.c (fetch_register): Likewise.
6520 * mipsnbsd-tdep.c (mipsnbsd_supply_reg, mipsnbsd_supply_fpreg):
6522 * gdbarch.sh (CANNOT_STORE_REGISTER): Replace by
6523 gdbarch_cannot_store_register.
6524 * hppa-linux-nat.c (store_register): Likewise.
6525 * inf-ptrace.c (inf_ptrace_store_register): Likewise.
6526 * regcache.c (regcache_raw_write): Likewise.
6527 * m68klinux-nat.c (store_register): Likewise.
6528 * mipsnbsd-tdep.c (mipsnbsd_fill_reg, mipsnbsd_fill_fpreg): Likewise.
6529 * gdbarch.c, gdbarch.h: Regenerate.
6531 2007-05-31 Markus Deuling <deuling@de.ibm.com>
6533 * gdbarch.sh (TARGET_OSABI): Replace by gdbarch_osabi.
6534 * gdbarch.c, gdbarch.h: Regenerate.
6536 2007-05-31 Markus Deuling <deuling@de.ibm.com>
6538 * gdbarch.sh (TARGET_CHAR_SIGNED): Replace by gdbarch_char_signed.
6539 * gdbtypes.c (build_gdbtypes, gdbtypes_post_init): Likewise.
6540 * gdbarch.c, gdbarch.h: Regenerate.
6542 2007-05-31 Markus Deuling <deuling@de.ibm.com>
6544 * gdbarch.sh (TARGET_BYTE_ORDER): Replace by gdbarch_byte_order.
6545 * ax-gdb.c (gen_bitfield_ref): Likewise.
6546 * mi/mi-main.c (get_register): Likewise.
6547 * findvar.c (default_value_from_register, extract_signed_integer)
6548 (extract_unsigned_integer, extract_long_unsigned_integer)
6549 (store_signed_integer, store_unsigned_integer): Likewise.
6550 * regcache.c (regcache_dump): Likewise.
6551 * value.c (lookup_internalvar, value_of_internalvar)
6552 (set_internalvar): Likewise.
6554 * valprint.c (print_binary_chars, print_octal_chars)
6555 (print_decimal_chars, print_hex_chars, print_char_chars): Likewise.
6556 * infcmd.c (default_print_registers_info): Likewise.
6557 * arch-utils.c (selected_byte_order, show_endian): Likewise.
6558 * stabsread.c (define_symbol): Likewise.
6559 * doublest.c (floatformat_from_length, floatformat_from_type)
6560 (extract_typed_floating, store_typed_floating): Likewise.
6561 * gdbarch.c, gdbarch.h: Regenerate.
6563 2007-05-31 Markus Deuling <deuling@de.ibm.com>
6565 * gdbarch.sh (CALL_DUMMY_LOCATION): Replace by
6566 gdbarch_call_dummy_location.
6567 * infcall.c (call_function_by_hand): Likewise.
6568 * inferior.h: Change comment.
6569 * arch-utils.c: Change comment.
6570 * gdbarch.c, gdbarch.h: Regenerate.
6572 2007-05-28 Joel Brobecker <brobecker@adacore.com>
6574 * solib-aix5.c: Delete.
6575 * Makefile.in (solib-aix5.o): Delete rule.
6577 2007-05-23 Daniel Jacobowitz <dan@codesourcery.com>
6579 * breakpoint.h (enum bpstat_what_main_action): Remove
6580 BPSTAT_WHAT_THROUGH_SIGTRAMP.
6581 * infrun.c (process_event_stop_test): Do not check for it.
6583 2007-05-22 Chris Dearman <chris@mips.com>
6584 Maciej W. Rozycki <macro@mips.com>
6586 * ser-unix.c (show_serial_hwflow): New function.
6587 (hardwire_raw): Add hardware flow control support.
6588 (_initialize_ser_hardwire): Add "set/show remoteflow".
6589 * Makefile.in (ser-unix.o): Depend on $(gdbcmd_h).
6590 * NEWS: Document the new command.
6592 2007-05-21 Ulrich Weigand <uweigand@de.ibm.com>
6594 * config/i386/tm-linux.h (sys_quotactl): Do not define.
6595 * configure.ac (sys_quotactl, START_INFERIOR_TRAPS_EXPECTED): Do not
6596 define for i[[3456]]86-*-linux* native configurations.
6597 * config.in, configure: Regenerate.
6599 2007-05-19 Joel Brobecker <brobecker@adacore.com>
6601 * rs6000-nat.c (xcoff_relocate_symtab): Do nothing if debugging
6602 a core file. Add comment in the function description.
6604 2007-05-18 Caroline Tice <ctice@apple.com>
6606 * c-valprint.c (c_value_print): If the initialized field of the
6607 value struct is 0, print out "[uninitialized]" before the value.
6608 * dwarf2expr.c (execute_stack_op): Initialize ctx->initialized field;
6609 allow DW_OP_GNU_uninit as legal op following a DW_OP_reg op or a
6610 DW_OP_regx op; add case for DW_OP_GNU_uninit and update
6611 ctx->initialized appropriately. Verify no location op follows
6613 * dwarf2expr.h (struct dwarf_expr_context): New field, initialized.
6614 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Add call to
6615 set_value_initialized.
6616 * dwarf2read.c (dwarf_stack_op_name): Add case for DW_OP_GNU_uninit.
6617 (decode_locdesc): Add case for DW_OP_GNU_uninit.
6618 * value.c (struct value): New field, initialized.
6619 (allocate_value): Initialize new field.
6620 (set_value_initialized): New function.
6621 (value_initialized): New function.
6622 * value.h (value_initialized): New extern declaration.
6623 (set_value_initialized): Likewise.
6625 2007-05-18 Caroline Tice <ctice@apple.com>
6627 * MAINTAINERS (Write After Approval): Add self.
6629 2007-05-17 Joel Brobecker <brobecker@adacore.com>
6631 * gdbtypes.c (make_reference_type): Preserve the type chain
6632 and set the length of all the variants of the pointer type.
6634 2007-05-17 Joel Brobecker <brobecker@adacore.com>
6636 * gdbtypes.c (make_pointer_type): Preserve the pointer type chain
6637 and set the length of all the variants of the pointer type.
6639 2007-05-17 Maciej W. Rozycki <macro@mips.com>
6641 * mips-tdep.c (mips_n32n64_push_dummy_call): Fix and reformat a
6643 (mips_o64_push_dummy_call): Reformat a comment.
6645 2007-05-17 Qinwei <qinwei@sunnorth.com.cn>
6647 * score-tdep.c (score_frame_cache->fp, score_analyze_prologue)
6648 (score_prologue_frame_base_address): Return fp to keep gdb print
6649 local variables correctly when debugging information is stabs.
6651 (score_analyze_prologue): For software watchpoint, fetch all the
6652 instructions from range [startaddr, pc] once and identify them locally
6653 to reduce memory access.
6654 (score_malloc_and_get_memblock, score_free_memblock)
6655 (score_adjust_memblock_ptr): New functions.
6656 (score_fetch_inst): Fetch single instruction or mutiple instructions.
6658 (score_target_can_use_watch, score_stopped_by_watch)
6659 (score_target_insert_watchpoint, score_target_remove_watchpoint)
6660 (score_target_insert_hw_breakpoint, score_target_remove_hw_breakpoint):
6661 New functions for remote & local hw-watchpoint and hw-breakpoint.
6663 2007-05-16 Alfred M. Szmidt <ams@gnu.org>
6665 * reply_mig_hack.awk: Check for `auto const mach_msg_type_t'
6666 declarations as well.
6668 2007-05-16 Ulrich Weigand <uweigand@de.ibm.com>
6670 * config/arm/embed.mt (DEPRECATED_TM_FILE): Set to tm-arm.h.
6671 * config/arm/tm-embed.h: Delete file.
6673 * arm-tdep.h (arm_software_single_step): Declare.
6674 * arm-tdep.c (arm_software_single_step): Make global.
6675 (arm_gdbarch_init): Move set_gdbarch_software_single_step call
6677 * arm-linux-tdep.c (arm_linux_init_abi): ... here ...
6678 * armnbsd-tdep.c (arm_netbsd_init_abi_common): ... here ...
6679 * armobsd-tdep.c (armobsd_init_abi): ... here ...
6680 * arm-wince-tdep.c (arm_wince_init_abi): ... and here.
6682 * arm-tdep.c (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT): No longer
6683 allow defines to be overriden by TM file.
6684 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Likewise. Also,
6685 change default to {0xbe,0xbe}.
6686 * armobsd-tdep.c (arm_obsd_thumb_le_breakpoint,
6687 arm_obsd_thumb_be_breakpoint): New global variables.
6688 (armobsd_init_abi): Override tdep->thumb_breakpoint and
6689 tdep->thumb_breakpoint_size.
6690 * arm-wince-tdep.c (arm_wince_thumb_le_breakpoint): New variable.
6691 (arm_wince_init_abi): Override tdep->thumb_breakpoint and
6692 tdep->thumb_breakpoint_size.
6694 * arm-tdep.c (arm_gdbarch_init): Add set_gdbarch_skip_trampoline_code.
6696 2007-05-16 Daniel Jacobowitz <dan@codesourcery.com>
6698 * NEWS: Mention removed "set mips stack-arg-size" and "set mips
6701 * mips-tdep.c (MIPS32_REGSIZE, MIPS64_REGSIZE): New constants.
6702 (size_auto, size_32, size_64, size_enums, mips_abi_regsize_string)
6703 (mips_stack_argsize_string, mips_stack_argsize): Delete.
6704 (mips_abi_regsize): Simplify.
6705 (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call)
6706 (mips_n32n64_return_value, mips_o32_push_dummy_call)
6707 (mips_o32_return_value, mips_o64_push_dummy_call)
6708 (mips_o64_return_value): Propogate constant register sizes. Use the
6709 ABI register size instead of mips_stack_argsize.
6710 (mips_dump_tdep): Don't print mips_stack_argsize.
6711 (_initialize_mips_tdep): Remove saved-gpreg-size and stack-arg-size
6714 2007-05-16 Daniel Jacobowitz <dan@codesourcery.com>
6716 * config/mips/linux.mt (DEPRECATED_TM_FILE): Delete.
6717 * config/mips/tm-linux.h: Delete.
6718 * mips-linux-tdep.c (mips_svr4_so_ops): New.
6719 (mips_linux_in_dynsym_resolve_code): Make static. Use
6720 svr4_in_dynsym_resolve_code.
6721 (mips_linux_init_abi): Initialize mips_svr4_so_ops. Call
6723 * solib-svr4.c (svr4_in_dynsym_resolve_code, svr4_so_ops): Make
6725 * solib-svr4.h (svr4_so_ops, svr4_in_dynsym_resolve_code): Declare.
6726 * Makefile.in (mips-linux-tdep.o): Update.
6727 * solib.c (set_solib_ops): New.
6728 (current_target_so_ops): Update comment.
6729 * solib.h (set_solib_ops): New prototype.
6731 2007-05-16 Chris Dearman <chris@mips.com>
6733 * printcmd.c (do_examine): Fix typos in a comment.
6735 2007-05-16 Richard Sandiford <richard@codesourcery.com>
6737 * configure.ac: Allow sysroots to be relocated under $prefix as
6738 well as $exec_prefix.
6739 * configure: Regenerate.
6741 2007-05-14 Ulrich Weigand <uweigand@de.ibm.com>
6743 * hppa-hpux-tdep.c: Do not include <dl.h> or <machine/save_state.h>.
6744 (offsetof): Do not define.
6745 (find_stub_with_shl_get): Use numerical value 3 instead of
6746 symbolic value TYPE_PROCEDURE.
6748 2007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
6750 * gdb_proc_service.h (paddr_t): Delete typedef.
6751 * proc-service.c (ps_addr_to_core_addr, core_addr_to_ps_addr): New.
6752 (ps_xfer_memory): Take a psaddr_t. Use ps_addr_to_core_addr.
6753 (ps_pglobal_lookup): Take a psaddr_t *. Use core_addr_to_ps_addr.
6754 (ps_pdread, ps_pdwrite, ps_ptread, ps_ptwrite): Take a psaddr_t.
6755 * sol-thread.c (gdb_ps_addr_t): Use psaddr_t instead of paddr_t.
6756 * Makefile.in (proc-service.o): Update.
6758 2007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
6760 * Makefile.in (mips-tdep.o): Update.
6761 * mips-tdep.c (mips_gdbarch_init): Register the dwarf2 CFI
6764 2007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
6766 * dwarf2-frame.c (dwarf2_frame_prev_register): Use pack_long
6767 instead of store_typed_address.
6768 * value.c (pack_long): New.
6769 (value_from_longest): Use it.
6770 * value.h (pack_long): New prototype.
6772 2007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
6774 * dwarf2-frame.c (read_encoded_value): Correct typo. Use
6775 DW_EH_PE_signed if appropriate.
6777 2007-05-14 Paul Brook <paul@codesourcery.com>
6778 Daniel Jacobowitz <dan@codesourcery.com>
6780 * dwarf2read.c (dwarf2_debug_line_missing_file_complaint): New
6782 (dwarf_decode_lines): Check for line info without a file.
6784 2007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
6786 * linux-thread-db.c (thread_db_pid_to_str): Print thread IDs
6789 2007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
6791 * jv-exp.y (push_fieldnames): Use STRUCTOP_PTR instead of
6793 * jv-lang.c (evaluate_subexp_java): Handle STRUCTOP_PTR instead of
6795 * jv-typeprint.c (java_print_type): Do not crash on NULL varstring.
6797 2007-05-14 Ulrich Weigand <uweigand@de.ibm.com>
6799 * gdbarch.sh (read_sp): Remove.
6800 * gdbarch.c, gdbarch.h: Regenerate.
6801 * frame.c (frame_sp_unwind): Do not call TARGET_READ_SP.
6803 * avr-tdep.c (avr_read_sp): Remove.
6804 (avr_unwind_sp): New function.
6805 (avr_gdbarch_init): Install unwind_sp instead of read_sp callback.
6806 * mips-tdep.c (mips_read_sp): Remove.
6807 (mips_unwind_sp): New function.
6808 (mips_gdbarch_init): Install unwind_sp instead of read_sp callback.
6809 * score-tdep.c (score_read_unsigned_register): Remove.
6810 (score_read_sp): Remove.
6811 (score_unwind_sp): New function.
6812 (score_gdbarch_init): Install unwind_sp instead of read_sp callback.
6814 2007-05-14 Maxim Grigoriev <maxim2405@gmail.com>
6816 * buildsym.c (start_subfile): Handle absolute pathnames
6817 while comparing subfile names.
6819 2007-05-13 Ulrich Weigand <uweigand@de.ibm.com>
6821 * hppa-hpux-tdep.c: Include "regcache.h".
6822 * hppa-linux-tdep.c: Likewise.
6823 * hppa-tdep.c: Include "gdb_stdint.h".
6824 (find_unwind_entry): Cast host pointer to uintptr_t before passing
6826 * Makefile.in: Update dependencies.
6828 2007-05-13 Ulrich Weigand <uweigand@de.ibm.com>
6830 * blockframe.c: Remove obsolete comments.
6831 * alpha-nat.c (fetch_osf_core_registers): Update comment.
6832 * arm-tdep.h (enum gdb_regnum): Remove obsolete part of comment.
6833 * hppa-tdep.h (enum hppa_regnum): Likewise.
6834 * mips-tdep.h: Likewise.
6835 * m68hc11-tdep.c: Likewise.
6837 2007-05-13 Ulrich Weigand <uweigand@de.ibm.com>
6839 * inferior.h (read_sp): Remove prototype.
6840 * regcache.c (read_sp): Remove.
6841 * gcore.c (derive_stack_segment): Use get_frame_sp instead of read_sp.
6842 * infcall.c (call_function_by_hand): Likewise.
6843 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Use regcache instead
6845 * rs6000-tdep.c (rs6000_push_dummy_call): Likewise.
6847 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
6849 * i386-linux-nat.c (i386_linux_resume): Use regcache functions
6850 instead of read_register and read_register_pid.
6852 * ia64-linux-nat.c (enable_watchpoints_in_psr): Use REGCACHE
6853 argument instead of PTID. Use regcache functions instead of
6855 (ia64_linux_insert_watchpoint): Update call.
6856 (ia64_linux_stopped_data_address): Use regcache functions
6857 instead of read_register_pid and write_register_pid.
6859 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
6861 * libunwind-frame.h (struct regcache): Add forward declaration.
6862 (libunwind_get_reg_special): Add REGCACHE argument.
6863 * libunwind-frame.c (libunwind_get_reg_special): Add REGCACHE
6864 argument. Pass it to unw_init_remote_p.
6866 * ia64-tdep.c (ia64_pseudo_register_read): Pass regcache to
6867 libunwind_get_reg_special.
6868 (ia64_access_reg): Remove "write" case.
6869 (ia64_access_fpreg): Likewise. Read from next_frame passed
6870 as callback argument instead of from current_regcache.
6871 (ia64_access_rse_reg): Remove "write" case. Read from regcache
6872 passed as callback argument instead of from current_regcache.
6873 (ia64_access_rse_fpreg): New function.
6874 (ia64_unw_rse_acce): Use it instead of ia64_access_fpreg.
6876 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
6878 * NEWS: Mention SPU overlay support.
6880 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
6882 * spu-tdep.c (spu_frame_unwind_cache): Add comment.
6884 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
6886 * breakpoint.c (remove_breakpoint): Do not remove software
6887 breakpoints in unmapped overlay sections.
6889 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
6891 * spu-tdep.c: Include "observer.h".
6892 (spu_frame_unwind_cache): Unwind PC through overlay return stubs.
6893 (spu_overlay_data): New variable.
6894 (struct spu_overlay_table): New type.
6895 (spu_get_overlay_table, spu_overlay_update_osect, spu_overlay_update,
6896 spu_overlay_new_objfile): New functions.
6897 (spu_gdbarch_init): Install spu_overlay_update.
6898 (_initialize_spu_tdep): Register spu_overlay_new_objfile,
6899 allocate spu_overlay_data objfile data.
6901 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
6903 * gdbarch.sh (overlay_update): New gdbarch function.
6904 (struct obj_section): Add forward declaration.
6905 * gdbarch.c, gdbarch.h: Regenerate.
6907 * symfile.c (simple_overlay_update): Make global.
6908 (target_overlay_update): Remove variable.
6909 (overlay_is_mapped): Call gdbarch_overlay_update instead of
6910 target_overlay_update.
6911 (overlay_load_command): Likewise.
6912 * symfile.h (struct obj_section): Add forward declaration.
6913 (simple_overlay_update): Add prototype.
6915 * m32r-tdep.c (m32r_gdbarch_init): Install simple_overlay_update.
6917 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
6919 * observer.sh: Add "struct objfile" forward declaration.
6920 * target.h (deprecated_target_new_objfile_hook): Remove.
6921 * symfile.c (deprecated_target_new_objfile_hook): Remove.
6922 (clear_symtab_users): Call observer_notify_new_objfile.
6923 (symbol_file_add_with_addrs_or_offsets): Likewise.
6924 * rs6000-nat.c: Include "observer.h".
6925 (vmap_ldinfo): Call observer_notify_new_objfile.
6926 (xcoff_relocate_core): Likewise.
6927 * remote.c (remote_new_objfile_chain): Remove.
6928 (remote_new_objfile): Do not call remote_new_objfile_chain.
6929 (_initialize_remote): Use observer_attach_new_objfile.
6930 * tui/tui-hooks.c (tui_target_new_objfile_chain): Remove.
6931 (tui_new_objfile_hook): Do not call tui_target_new_objfile_chain.
6932 (_initialize_tui_hooks): Use observer_attach_new_objfile.
6933 * aix-thread.c: Include "observer.h".
6934 (target_new_objfile_chain): Remove.
6935 (new_objfile): Do not call target_new_objfile_chain.
6936 (_initialize_aix_thread): Use observer_attach_new_objfile.
6937 * hpux-thread.c: Include "observer.h"
6938 (target_new_objfile_chain): Remove.
6939 (hpux_thread_new_objfile): Make static. Do not call
6940 target_new_objfile_chain.
6941 (_initialize_hpux_thread): Use observer_attach_new_objfile.
6942 * linux-thread-db.c: Include "observer.h".
6943 (target_new_objfile_chain): Remove.
6944 (thread_db_new_objfile): Do not call target_new_objfile_chain.
6945 (_initialize_thread_db): Use observer_attach_new_objfile.
6946 * sol-thread.c: Include "observer.h".
6947 (target_new_objfile_chain): Remove.
6948 (sol_thread_new_objfile): Make static. Do not call
6949 target_new_objfile_chain.
6950 (_initialize_sol_thread): Use observer_attach_new_objfile.
6951 * Makefile.in (aix-thread.o, hpux-thread.o, linux-thread-db.o,
6952 rs6000-nat.o, sol-thread.o, tui-hooks.o): Add dependency on
6955 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
6957 * gdbarch.sh (remote_translate_xfer_address): Remove.
6958 * gdbarch.h, gdbarch.c: Regenerate.
6959 * arch-utils.c (generic_remote_translate_xfer_address): Remove.
6960 * arch-utils.h (generic_remote_translate_xfer_address): Remove.
6961 * remote.c (remote_write_bytes_aux, remote_read_bytes): Do not
6962 call gdbarch_remote_translate_xfer_address.
6963 * frv-tdep.c (frv_gdbarch_init): Do not call
6964 set_gdbarch_remote_translate_xfer_address.
6965 * ia64-tdep.c (ia64_remote_translate_xfer_address): Remove.
6966 (ia64_gdbarch_init): Do not install it.
6968 2007-05-11 Bob Wilson <bob.wilson@acm.org>
6970 * NEWS: Mention change in handling the -tui option.
6972 2007-05-11 Daniel Jacobowitz <dan@codesourcery.com>
6974 * linux-thread-db.c (enable_thread_event_reporting): Fix comment
6977 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
6979 * breakpoint.c (single_step_breakpoint_inserted_here_p): New function.
6980 (breakpoint_inserted_here_p): Call it.
6981 (software_breakpoint_inserted_here_p): Likewise.
6983 2007-05-10 Ulrich Weigand <uweigand@de.ibm.com>
6985 * inf-ptrace.c (inf_ptrace_register_u_offset): Adapt parameter list.
6986 (inf_ptrace_fetch_register): Add register_u_offset callback parameters
6987 GDBARCH and STORE_P. Handle callback (CORE_ADDR) -1 return value.
6988 (inf_ptrace_store_register): Likewise.
6989 (inf_ptrace_trad_target): Adapt register_u_offset parameter list.
6990 * inf-ptrace.h (inf_ptrace_trad_target): Likewise.
6992 * vax-nat.c (vax_register_u_offset): Adapt parameter list.
6994 * linux-nat.c (linux_trad_target): Adapt parameter list.
6995 * linux-nat.h (linux_trad_target): Likewise.
6997 * alpha-linux-nat.c (alpha_linux_register_u_offset): Adapt parameters.
6999 * mips-linux-nat.c (mips_linux_cannot_fetch_register): Remove.
7000 (mips_linux_cannot_store_register): Likewise.
7001 (mips_linux_register_addr): Add GDBARCH and STORE_P parameters.
7002 Return (CORE_ADDR) -1 for registers that cannot be fetched or
7003 stored via ptrace. Use GDBARCH instead of current_gdbarch.
7004 (mips64_linux_register_addr): Likewise.
7005 (mips_linux_register_u_offset): Adapt parameter list. Pass
7006 GDBARCH and STORE_P on to mips{64}_linux_register_addr.
7008 * config/mips/linux.mh (NAT_FILE): Set to config/nm-linux.h.
7009 * config/mips/nm-linux.h: Delete file.
7011 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
7013 * remote.c (remote_detach): Error out if remote can't detach.
7015 2007-05-10 Luis Machado <luisgpm@br.ibm.com>
7017 * rs6000-tdep.c: (deal_with_atomic_sequence) Stores branch
7018 instruction's opcode in the "opcode" variable and declares new
7019 variable "closing_insn".
7021 2007-05-10 Chris Dearman <chris@mips.com>
7022 Maciej W. Rozycki <macro@mips.com>
7024 * cli/cli-setshow.c (do_setshow_command): Remove trailing
7025 whitespace when setting a var_filename.
7027 2007-05-09 Bob Wilson <bob.wilson@acm.org>
7029 * main.c (captured_main): Recognize -tui option and print an error
7030 message when the TUI is not configured.
7032 2007-05-09 Andreas Schwab <schwab@suse.de>
7034 * mipsnbsd-tdep.c (mipsnbsd_ilp32_fetch_link_map_offsets): Don't
7035 set removed members.
7036 (mipsnbsd_lp64_fetch_link_map_offsets): Likewise.
7038 2007-05-08 Ulrich Weigand <uweigand@de.ibm.com>
7040 * gdbarch.sh (deprecated_store_struct_return): Remove.
7041 * gdbarch.c, gdbarch.h: Regenerate.
7042 * frv-tdep.c (frv_store_struct_return): Remove.
7043 (frv_gdbarch_init): Do not install it.
7045 2007-05-08 Ulrich Weigand <uweigand@de.ibm.com>
7047 * config/i386/nm-i386sol2.h (USE_PROC_FS): Do not define.
7048 * config/mips/nm-irix5.h (USE_PROC_FS): Do not define.
7049 * config/nm-linux.h (USE_PROC_FS): Do not undefine.
7051 2007-05-08 Ulrich Weigand <uweigand@de.ibm.com>
7053 * spu-linux-nat.c: Include "gdb_stdint.h".
7054 (fetch_ppc_register): Use uint64_t instead of unsigned long long.
7055 (fetch_ppc_memory_1, store_ppc_memory_1): Likewise.
7056 (fetch_ppc_memory, store_ppc_memory): Fix coding style.
7057 (spu_symbol_file_add_from_memory): Use strtoulst instead of sscanf.
7058 (spu_child_wait): Mark up string for translation.
7060 2007-05-08 Paul Gilliam <pgilliam@us.ibm.com>
7061 Luis Machado <luisgpm@br.ibm.com>
7063 * rs6000-tdep.c: (LWARX_MASK, LWARX_INSTRUCTION, LDARX_INSTRUCTION,
7064 STWCX_MASK, STWCX_INSTRUCTION, STDCX_INSTRUCTION, BC_MASK,
7065 BC_INSTRUCTION): Define.
7066 (deal_with_atomic_sequence): New function.
7067 (rs6000_software_single_step): Call deal_with_atomic_sequence.
7068 (rs6000_gdbarch_init): Install deal_with_atomic_sequence as
7069 gdbarch_software_single_step routine.
7071 2007-05-07 Ulrich Weigand <uweigand@de.ibm.com>
7073 * spu-linux-nat.c (fetch_ppc_register, fetch_ppc_memory_1,
7074 store_ppc_memory_1, fetch_ppc_memory, store_ppc_memory,
7075 parse_spufs_run, spu_bfd_iovec_pread, spu_bfd_open,
7076 spu_symbol_file_add_from_memory, spu_child_post_startup_inferior,
7077 spu_child_post_attach, spu_fetch_inferior_registers,
7078 spu_store_inferior_registers, spu_xfer_partial): Store PPE-side
7079 memory addresses as ULONGEST, not CORE_ADDR.
7081 2007-05-07 Ulrich Weigand <uweigand@de.ibm.com>
7083 * gdbarch.sh: Add skip_permanent_breakpoint callback.
7084 * gdbarch.h, gdbarch.c: Regenerate.
7086 * infrun.c (SKIP_PERMANENT_BREAKPOINT): Remove default definition.
7087 (resume): Call gdbarch_skip_permanent_breakpoint instead of
7088 SKIP_PERMANENT_BREAKPOINT. Inline default case.
7090 * hppa-hpux-tdep.c (hppa_skip_permanent_breakpoint): Make static.
7091 Add REGCACHE argument. Use it instead of read/write_register.
7092 (hppa_hpux_init_abi): Install hppa_skip_permanent_breakpoint.
7094 * config/pa/tm-hppah.h: Delete file.
7095 * config/pa/hppa64.mt (DEPRECATED_TM_FILE): Set to tm-hppa.h.
7096 * config/pa/hppahpux.mt (DEPRECATED_TM_FILE): Likewise.
7098 2007-05-07 Daniel Jacobowitz <dan@codesourcery.com>
7100 * Makefile.in (c-lang.o, gnu-v3-abi.o): Update.
7101 * NEWS: Mention improved C++ thunk support.
7102 * c-lang.c (cplus_language_defn): Mention cplus_skip_trampoline.
7103 * cp-abi.c (cplus_skip_trampoline): New.
7104 * cp-abi.h (cplus_skip_trampoline): New prototype.
7105 (struct cp_abi_ops): Add skip_trampoline member.
7106 * gnu-v3-abi.c (gnuv3_skip_trampoline): New.
7107 (init_gnuv3_ops): Set skip_trampoline.
7109 2007-05-06 Daniel Jacobowitz <dan@codesourcery.com>
7111 * rs6000-tdep.c (struct frame_extra_info): Delete.
7113 2007-05-06 Daniel Jacobowitz <dan@codesourcery.com>
7115 * linux-thread-db.c: Update some FIXME comments.
7116 (thread_db_xfer_partial): Delete.
7117 (init_thread_db_ops): Do not set to_xfer_partial.
7119 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7121 * inftarg.c, infptrace.c: Remove files.
7122 * Makefile.in (ALLDEPFILES): Remove inftarg.c and infptrace.c
7123 (inftarg.o, infptrace.o): Remove rules.
7124 * gdbcore.h (register_addr): Remove prototype.
7125 * inferior.h (kill_inferior, store_inferior_registers,
7126 fetch_inferior_registers, attach, detach, ptrace_wait, child_resume,
7127 call_ptrace, pre_fork_inferior): Remove prototypes.
7128 * target.h (child_xfer_memory, child_pid_to_exec_file,
7129 child_core_file_to_sym_file, child_post_attach,
7130 child_post_startup_inferior, child_acknowledge_created_inferior,
7131 child_insert_fork_catchpoint, child_remove_fork_catchpoint,
7132 child_insert_vfork_catchpoint, child_remove_vfork_catchpoint,
7133 child_insert_exec_catchpoint, child_remove_exec_catchpoint,
7134 child_follow_fork, child_reported_exec_events_per_exec_call,
7135 child_has_exited, child_thread_alive): Remove prototypes.
7137 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7139 * sparc-nat.h (sparc_fetch_inferior_registers): Add prototype.
7140 (sparc_store_inferior_registers): Likewise.
7141 * sparc-nat.c (fetch_inferior_registers): Rename to ...
7142 (sparc_fetch_inferior_registers): ... this.
7143 (store_inferior_registers): Rename to ...
7144 (sparc_store_inferior_registers): ... this.
7145 (sparc_target): Update callback names.
7146 * sparc-linux.nat.c (_initialize_sparc_linux_nat): Likewise.
7147 * sparc64-linux.nat.c (_initialize_sparc64_linux_nat): Likewise.
7149 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7151 * linux-nat.c (child_post_attach): Rename to ...
7152 (linux_child_post_attach): ... this. Make static.
7153 (child_follow_fork): Rename to ...
7154 (linux_child_follow_fork): ... this. Make static.
7155 (child_insert_fork_catchpoint): Rename to ...
7156 (linux_child_insert_fork_catchpoint): ... this. Make static.
7157 (child_insert_vfork_catchpoint): Rename to ...
7158 (linux_child_insert_vfork_catchpoint): ... this. Make static.
7159 (child_insert_exec_catchpoint): Rename to ...
7160 (linux_child_insert_exec_catchpoint): ... this. Make static.
7161 (child_pid_to_exec_file): Rename to ...
7162 (linux_child_pid_to_exec_file): ... this. Make static.
7164 (linux_handle_extended_wait): Update call.
7165 (linux_xfer_partial): Update callback routine names.
7167 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7169 * configure.host (alpha*-*-osf[12]*): Remove support.
7170 * NEWS: Mention removed configurations.
7172 * config/alpha/alpha-osf1.mh: Delete file.
7173 * config/alpha/alpha-osf2.mh: Delete file.
7174 * config/alpha/alpha-osf3.mh (NATDEPFILES): Remove inftarg.o
7176 * config/alpha/nm-osf.h: Delete file.
7177 * config/alpha/nm-osf2.h: Delete file.
7178 * config/alpha/nm-osf3.h: Do not include "nm-osf2.h".
7179 (START_INFERIOR_TRAPS_EXPECTED): Copy from nm-osf.h.
7180 (PROCFS_DONT_TRACE_FAULTS): Copy from nm-osf2.h.
7182 * alpha-nat.c (ALPHA_UNIQUE_PTRACE_ADDR): Do not define.
7183 (register_addr, kernel_u_size): Remove.
7184 Do not check for "defined(USE_PROC_FS) || defined(HAVE_GREGSET_T)".
7186 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7188 * regcache.c (regcache_invalidate): New function.
7189 (register_cached): Remove.
7190 (set_register_cached): Remove.
7191 (deprecated_registers_fetched): Remove.
7192 (registers_changed): Use regcache_invalidate instead
7193 of set_register_cached.
7194 (regcache_raw_read): Update comment.
7196 * regcache.h (regcache_invalidate): Add prototype.
7197 (register_cached): Remove.
7198 (set_register_cached): Remove.
7199 (deprecated_registers_fetched): Remove.
7201 * findvar.c (value_of_register): Do not call register_cached.
7202 * frame.c (frame_register): Likewise.
7203 * tui/tui-regs.c (tui_get_register): Likewise.
7205 * remote.c (fetch_register_using_p): Do not call set_register_cached.
7206 (process_g_packet): Likewise.
7207 (remote_fetch_registers): Likewise.
7208 * remote-sim.c (gdbsim_fetch_register): Likewise.
7209 * mt-tdep.c (mt_select_coprocessor): Replace set_register_cached call
7210 by regcache_invalidate.
7211 (mt_pseudo_register_write): Likewise.
7212 * sh-tdep.c (sh_pseudo_register_write): Likewise.
7214 * corelow.c (get_core_registers): Replace deprecated_registers_fetched
7215 call by loop over regcache_raw_supply (..., NULL).
7217 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7219 * target.h (struct target_ops): Add REGCACHE parameter to
7220 to_prepare_to_store.
7221 (target_prepare_to_store): Likewise.
7222 * target.c (debug_to_prepare_to_store): Add REGCACHE parameter.
7223 (update_current_target): Adapt prepare_to_store de_fault rule.
7225 * regcache.c (regcache_raw_write): Pass regcache to
7226 target_prepare_to_store.
7228 * inftarg.c (child_prepare_to_store): Add REGCACHE parameter.
7229 Do not call CHILD_PREPARE_TO_STORE.
7230 * gnu-nat.c (gnu_prepare_to_store): Likewise.
7231 * procfs.c (procfs_prepare_to_store): Likewise.
7233 * inf-child.c (inf_child_prepare_to_store): Add REGCACHE parameter.
7234 * go32-nat.c (go32_prepare_to_store): Likewise.
7235 * monitor.c (monitor_prepare_to_store): Likewise.
7236 * nto-procfs.c (procfs_prepare_to_store): Likewise.
7237 * remote-m32r-sdi.c (m32r_prepare_to_store): Likewise.
7238 * remote-mips.c (mips_prepare_to_store): Likewise.
7239 * remote-sim.c (gdbsim_prepare_to_store): Likewise.
7240 * win32-nat.c (win32_prepare_to_store): Likewise.
7242 * remote.c (remote_prepare_to_store): Add REGCACHE parameter.
7243 Use it instead of current_regcache.
7245 * hpux-thread.c (hpux_thread_prepare_to_store): Add REGCACHE
7246 parameter. Pass it on to next target.
7247 * sol-thread.c (sol_thread_prepare_to_store): Likewise.
7249 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7251 * target.h (struct regcache): Add forward declaration.
7252 (struct target_ops): Add REGCACHE parameter to to_fetch_registers
7253 and to_store_registers target operations.
7254 (target_fetch_registers, target_store_registers): Update.
7256 * regcache.c (regcache_raw_read): Replace register_cached by
7257 regcache_valid_p. Pass regcache to target_fetch_registers.
7258 (regcache_raw_write): Pass regcache to target_store_registers.
7260 * arm-linux-nat.c (store_fpregister, store_fpregs, store_register,
7261 store_regs, store_wmmx_regs): Replace register_cached by
7264 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd): Pass current_regcache
7265 to target_fetch_registers calls.
7266 * corelow.c (core_open): Likewise.
7267 * linux-nat.c (linux_nat_corefile_thread_callback): Likewise.
7268 * proc-service.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
7269 ps_lsetfpregs): Likewise.
7270 * sol-thread.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
7271 ps_lsetfpregs): Likewise.
7272 * win32-nat.c (win32_resume): Likewise.
7273 * ia64-tdep.c (ia64_store_return_value): Pass current_regcache
7274 to target_store_registers call.
7275 * rs6000-tdep.c (rs6000_push_dummy_call): Likewise.
7277 * inferior.h (store_inferior_registers): Update prototype.
7278 (fetch_inferior_registers): Likewise.
7279 * gnu-nat.c (gnu_store_registers, gnu_fetch_registers): Likewise.
7280 * mips-linux-nat.c (super_fetch_registers, super_store_registers):
7281 Update function pointer signatures.
7283 * aix-thread.c (aix_thread_fetch_registers): Add REGCACHE parameter,
7284 use it instead of current_regcache, update calls.
7285 (aix_thread_store_registers): Likewise.
7286 * alphabsd-nat.c (alphabsd_fetch_inferior_registers): Likewise.
7287 (alphabsd_store_inferior_registers): Likewise.
7288 * amd64bsd-nat.c (amd64bsd_fetch_inferior_registers): Likewise.
7289 (amd64bsd_store_inferior_registers): Likewise.
7290 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers): Likewise.
7291 (amd64_linux_store_inferior_registers): Likewise.
7292 * arm-linux-nat.c (fetch_fpregister, fetch_fpregs, store_fpregister,
7293 store_fpregs, fetch_register, fetch_regs, store_register, store_regs,
7294 fetch_wmmx_regs, store_wmmx_regs): Likewise.
7295 (arm_linux_fetch_inferior_registers): Likewise.
7296 (arm_linux_store_inferior_registers): Likewise.
7297 * armnbsd-nat.c (fetch_register, fetch_regs, fetch_fp_register,
7298 fetch_fp_regs, armnbsd_fetch_registers): Likewise.
7299 (store_register, store_regs, store_fp_register, store_fp_regs,
7300 armnbsd_store_registers): Likewise.
7301 * bsd-kvm.c (bsd_kvm_fetch_pcb, bsd_kvm_fetch_registers): Likewise.
7302 * bsd-uthread.c (bsd_uthread_fetch_registers): Likewise.
7303 (bsd_uthread_store_registers): Likewise.
7304 * corelow.c (get_core_registers): Likewise.
7305 * go32-nat.c (fetch_register, go32_fetch_registers, store_register,
7306 go32_store_registers): Likewise.
7307 * hppabsd-nat.c (hppabsd_fetch_registers): Likewise.
7308 (hppabsd_store_registers): Likewise.
7309 * hppa-hpux-nat.c (hppa_hpux_fetch_register): Likewise.
7310 (hppa_hpux_fetch_inferior_registers): Likewise.
7311 (hppa_hpux_store_register): Likewise.
7312 (hppa_hpux_store_inferior_registers): Likewise.
7313 * hppa-linux-nat.c (fetch_register, store_register): Likewise.
7314 (hppa_linux_fetch_inferior_registers): Likewise.
7315 (hppa_linux_store_inferior_registers): Likewise.
7316 * hpux-thread.c (hpux_thread_fetch_registers): Likewise.
7317 (hpux_thread_store_registers): Likewise.
7318 * i386bsd-nat.c (i386bsd_fetch_inferior_registers): Likewise.
7319 (i386bsd_store_inferior_registers): Likewise.
7320 * i386gnu-nat.c (fetch_fpregs, gnu_fetch_registers, store_fpregs,
7321 gnu_store_registers): Likewise.
7322 * i386-linux-nat.c (fetch_register, store_register, fetch_regs,
7323 store_regs, fetch_fpregs, store_fpregs, fetch_fpxregs, store_fpxregs):
7325 (i386_linux_fetch_inferior_registers): Likewise.
7326 (i386_linux_store_inferior_registers): Likewise.
7327 * ia64-linux-nat.c (ia64_linux_fetch_register): Likewise.
7328 (ia64_linux_fetch_registers): Likewise.
7329 (ia64_linux_store_register): Likewise.
7330 (ia64_linux_store_registers): Likewise.
7331 * inf-child.c (inf_child_fetch_inferior_registers): Likewise.
7332 (inf_child_store_inferior_registers): Likewise.
7333 * inf-ptrace.c (inf_ptrace_fetch_register): Likewise.
7334 (inf_ptrace_fetch_registers): Likewise.
7335 (inf_ptrace_store_register): Likewise.
7336 (inf_ptrace_store_registers): Likewise.
7337 * infptrace.c (fetch_register, store_register): Likewise.
7338 (fetch_inferior_registers, store_inferior_registers): Likewise.
7339 * m32r-linux-nat.c (fetch_regs, store_regs): Likewise.
7340 (m32r_linux_fetch_inferior_registers): Likewise.
7341 (m32r_linux_store_inferior_registers): Likewise.
7342 * m68kbsd-nat.c (m68kbsd_fetch_inferior_registers): Likewise.
7343 (m68kbsd_store_inferior_registers): Likewise.
7344 * m68klinux-nat.c (fetch_register, old_fetch_inferior_registers,
7345 store_register, old_store_inferior_registers, fetch_regs, store_regs,
7346 fetch_fpregs, store_fpregs): Likewise.
7347 (m68k_linux_fetch_inferior_registers): Likewise.
7348 (m68k_linux_store_inferior_registers): Likewise.
7349 * m88kbsd-nat.c (m88kbsd_fetch_inferior_registers): Likewise.
7350 (m88kbsd_store_inferior_registers): Likewise.
7351 * mips64obsd-nat.c (mips64obsd_fetch_inferior_registers): Likewise.
7352 (mips64obsd_store_inferior_registers): Likewise.
7353 * mips-linux-nat.c (mips64_linux_regsets_fetch_registers): Likewise.
7354 (mips64_linux_regsets_store_registers): Likewise.
7355 (mips64_linux_fetch_registers): Likewise.
7356 (mips64_linux_store_registers): Likewise.
7357 * mipsnbsd-nat.c (mipsnbsd_fetch_inferior_registers): Likewise.
7358 (mipsnbsd_store_inferior_registers): Likewise.
7359 * monitor.c (monitor_fetch_register, monitor_store_register): Likewise.
7360 (monitor_fetch_registers, monitor_store_registers): Likewise.
7361 * nto-procfs.c (procfs_fetch_registers): Likewise.
7362 (procfs_store_registers): Likewise.
7363 * ppc-linux-nat.c (fetch_altivec_register, fetch_spe_register,
7364 fetch_register, supply_vrregset, fetch_altivec_registers,
7365 fetch_ppc_registers, ppc_linux_fetch_inferior_registers): Likewise.
7366 (store_altivec_register, store_spe_register, store_register,
7367 fill_vrregset, store_altivec_registers, store_ppc_registers,
7368 ppc_linux_store_inferior_registers): Likewise.
7369 * ppcnbsd-nat.c (ppcnbsd_fetch_inferior_registers): Likewise.
7370 (ppcnbsd_store_inferior_registers): Likewise.
7371 * ppcobsd-nat.c (ppcobsd_fetch_registers): Likewise.
7372 (ppcobsd_store_registers): Likewise.
7373 * procfs.c (procfs_fetch_registers, procfs_store_registers): Likewise.
7374 * remote.c (fetch_register_using_p, process_g_packet,
7375 fetch_registers_using_g, remote_fetch_registers): Likewise.
7376 (store_register_using_P, store_registers_using_G,
7377 remote_store_registers): Likewise.
7378 * remote-m32r-sdi.c (m32r_fetch_registers, m32r_fetch_register,
7379 m32r_store_register, m32r_store_register): Likewise.
7380 * remote-mips.c (mips_fetch_registers, mips_store_registers): Likewise.
7381 * remote-sim.c (gdbsim_fetch_register): Likewise.
7382 (gdbsim_store_register): Likewise.
7383 * rs6000-nat.c (fetch_register, store_register): Likewise.
7384 (rs6000_fetch_inferior_registers): Likewise.
7385 (rs6000_store_inferior_registers): Likewise.
7386 * s390-nat.c (fetch_regs, store_regs): Likewise.
7387 (fetch_fpregs, store_fpregs): Likewise.
7388 (s390_linux_fetch_inferior_registers): Likewise.
7389 (s390_linux_store_inferior_registers): Likewise.
7390 * shnbsd-nat.c (shnbsd_fetch_inferior_registers): Likewise.
7391 (shnbsd_store_inferior_registers): Likewise.
7392 * sol-thread.c (sol_thread_fetch_registers): Likewise.
7393 (sol_thread_store_registers): Likewise.
7394 * sparc-nat.c (fetch_inferior_registers): Likewise.
7395 (store_inferior_registers): Likewise.
7396 * spu-linux-nat.c (spu_fetch_inferior_registers): Likewise.
7397 (spu_store_inferior_registers): Likewise.
7398 * target.c (debug_print_register): Likewise.
7399 (debug_to_fetch_registers, debug_to_store_registers): Likewise.
7400 * vaxbsd-nat.c (vaxbsd_fetch_inferior_registers): Likewise.
7401 (vaxbsd_store_inferior_registers): Likewise.
7402 * win32-nat.c (do_win32_fetch_inferior_registers): Likewise.
7403 (win32_fetch_inferior_registers): Likewise.
7404 (win32_store_inferior_registers): Likewise.
7406 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7408 * gdbcore.h (struct regcache): Add forward declaration.
7409 (struct core_fns): Add REGCACHE argument to core_read_registers
7411 * corelow.c (get_core_register_section): Add REGCACHE argument,
7412 use it instead of current_regcache, pass it to core_read_registers
7414 (get_core_registers): Add current_regcache as parameter to
7415 get_core_register_section calls.
7417 * alpha-nat.c (fetch_osf_core_registers): Add REGCACHE argument,
7418 use it instead of current_regcache.
7419 * armnbsd-nat.c (fetch_core_registers): Likewise.
7420 (fetch_elfcore_registers): Likewise.
7421 * core-regset.c (fetch_core_registers): Likewise.
7422 * cris-tdep.c (fetch_core_registers): Likewise.
7423 * irix5-nat.c (fetch_core_registers): Likewise.
7424 * m68klinux-nat.c (fetch_core_registers): Likewise.
7425 * mips-linux-tdep.c (fetch_core_registers): Likewise.
7426 * win32-nat.c (fetch_elf_core_registers): Likewise.
7428 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7430 * gregset.h (struct regcache): Add forward declaration.
7431 (supply_gregset): Add REGCACHE parameter, make GREGS const.
7432 (supply_fpregset): Add REGCACHE parameter, make FPREGS const.
7433 (supply_fpxregset): Add REGCACHE parameter, make FPXREGS const.
7434 (fill_gregset): Add REGCACHE parameter.
7435 (fill_fpregset): Likewise.
7436 (fill_fpxregset): Likewise.
7438 Update all definitions accordingly:
7439 * alphabsd-nat.c, alpha-linux-nat.c, alpha-nat.c, amd64-linux-nat.c,
7440 arm-linux-nat.c, hppa-linux-nat.c, i386gnu-nat.c, i386-linux-nat.c,
7441 i386-sol2-nat.c, i386v4-nat.c, ia64-linux-nat.c, irix5-nat.c,
7442 m32r-linux-nat.c, m68klinux-nat.c, mips-linux-nat.c, ppc-linux-nat.c,
7443 s390-nat.c, sparc64-linux-nat.c, sparc-linux-nat.c, sparc-sol2-nat.c
7444 (supply_gregset): Add REGCACHE parameter, use it instead of
7445 current_regcache. Make GREGSETP parameter const, adapt casts.
7446 (supply_fpregset): Add REGCACHE parameter, use it instead of
7447 current_regcache. Make FPREGSETP parameter const, adapt casts.
7448 (fill_gregset): Add REGCACHE parameter, use it instead of
7450 (fill_fpregset): Likewise.
7452 Update all callers to pass in current_regcache as the new argument:
7453 * core-regset.c: Include "regcache.h".
7454 (fetch_core_registers): Update supply_gregset,and supply_fpregset calls.
7455 * procfs.c: Include "regcache.h".
7456 (procfs_fetch_registers): Update supply_gregset, supply_fpregset calls.
7457 (procfs_store_registers): Update fill_gregset, fill_fpregset calls.
7458 (procfs_do_thread_registers): Likewise.
7459 (procfs_make_note_section): Likewise.
7460 * proc-service.c: Include "regcache.h".
7461 (ps_lgetregs): Update fill_gregset call.
7462 (ps_lsetregs): Update supply_gregset call.
7463 (ps_lgetfpregs): Update fill_fpregset call.
7464 (ps_lsetfpregs): Update supply_fpregset call.
7465 * sol-thread.c (sol_thread_fetch_registers): Update supply_gregset,
7466 supply_fpregset calls.
7467 (sol_thread_store_registers): Update fill_gregset, fill_fpregset calls.
7468 (ps_lgetregs): Update fill_gregset call.
7469 (ps_lsetregs): Update supply_gregset call.
7470 (ps_lgetfpregs): Update fill_fpregset call.
7471 (ps_lsetfpregs): Update supply_fpregset call.
7473 * linux-nat.c (linux_nat_do_thread_registers): Update fill_gregset,
7474 fill_fpregset, and fill_fpxregset calls.
7475 * i386-linux-nat.c (fetch_regs): Update supply_gregset call.
7476 (store_regs): Update fill_gregset call.
7477 (fetch_fpregs): Update supply_fpregset call.
7478 (store_fpregs): Update fill_fpregset call.
7479 (fetch_fpxregs): Update supply_fpxregset call.
7480 (store_fpxregs): Update fill_fpxregset call.
7481 * m32r-linux-nat.c (fetch_regs): Update supply_gregset call.
7482 (store_regs): Update fill_gregset call.
7483 * m68klinux-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.
7487 (fetch_core_registers): Update supply_gregset, supply_fpregset calls.
7488 * s390-nat.c (fetch_regs): Update supply_gregset call.
7489 (store_regs): Update fill_gregset call.
7490 (fetch_fpregs): Update supply_fpregset call.
7491 (store_fpregs): Update fill_fpregset call.
7493 * Makefile.in (core-regset.o, procfs.o, proc-service.o): Update
7496 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7498 * monitor.c (monitor_supply_register): Add REGCACHE parameter, use
7499 it instead of current_regcache.
7500 (parse_register_dump): Add REGCACHE parameter, pass it to
7501 supply_register callback.
7502 (monitor_dump_reg_block): Add REGCACHE parameter, pass it to
7503 parse_register_dump.
7504 (monitor_dump_regs): Add REGCACHE parameter, pass it to
7505 parse_register_dump and dumpregs callback.
7506 (monitor_wait): Pass current_regcache to parse_register_dump and
7508 (monitor_fetch_register): Pass current_regcache to
7509 monitor_supply_register.
7510 (monitor_fetch_registers): Pass current_regcache to
7512 * monitor.h (struct monitor_ops): Add REGCACHE parameter to
7513 supply_register and dumpregs callbacks.
7514 (monitor_supply_register, monitor_dump_reg_block): Update
7516 * dbug-rom.c (dbug_supply_register): Add REGCACHE parameter. Pass
7517 it to monitor_supply_register.
7518 * dink32-rom.c (dink32_supply_register): Likewise.
7519 * ppcbug-rom.c (ppcbug_supply_register): Likewise.
7520 * m32r-rom.c (m32r_supply_register): Likewise. Also, use REGCACHE
7521 instead of current_regcache.
7523 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7525 * i386-nto-tdep.c (i386nto_supply_gregset, i386nto_supply_fpregset):
7526 Add REGCACHE parameter. Use it instead of current_regcache.
7527 (i386nto_supply_regset): Add REGCACHE parameter, pass it to
7528 i386nto_supply_gregset and i386nto_supply_fpregset.
7529 (i386nto_regset_fill): Add REGCACHE parameter; use it instead
7530 of current_regcache.
7532 * nto-procfs.c (procfs_fetch_registers): Pass current_regcache to
7533 nto_supply_ helper functions.
7534 (procfs_store_registers): Pass current_regcache to nto_regset_fill.
7536 * nto-tdep.c (nto_dummy_supply_regset): Add REGCACHE parameter.
7538 * nto-tdep.h (struct nto_target_ops): Add REGCACHE parameter to
7539 supply_greget, supply_fpregset, supply_altregset, supply_regset,
7540 and regset_fill member function pointers.
7541 (nto_dummy_supply_regset): Adapt prototype.
7543 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7545 * shnbsd-tdep.c (shnbsd_supply_reg): Add REGCACHE parameter, use it
7546 instead of current_regcache. Make REGS const.
7547 (shnbsd_fill_reg): Add REGCACHE parameter; replace current_regcache.
7548 * shnbsd-tdep.h (shnbsd_supply_reg, shnbsd_fill_reg): Update
7550 * shnbsd-nat.c: Include "regcache.h".
7551 (shnbsd_fetch_inferior_registers): Pass current_regcache to
7553 (shnbsd_store_inferior_registers): Pass current_regcache to
7555 * Makefile.in (shbsd-nat.o): Update dependencies.
7557 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7559 * mips-linux-tdep.c (supply_32bit_reg): Add REGCACHE parameter. Use it
7560 instead of current_regcache.
7561 (mips_supply_gregset): Likewise. Pass REGCACHE to supply_32bit_reg.
7562 Make GREGSETP const, remove superfluous casts.
7563 (mips_fill_gregset): Add REGCACHE parameter; replace current_regcache.
7564 (mips_supply_fpregset): Likewise. Make FPREGSETP const, remove
7566 (mips_fill_fpregset): Add REGCACHE parameter; replace current_regcache.
7567 (supply_64bit_reg): Likewise
7568 (mips64_supply_gregset): Likewise. Pass REGCACHE to supply_64bit_reg.
7569 Make GREGSETP const, adapt casts accordingly.
7570 (mips64_fill_gregset): Add REGCACHE parameter; replace current_regcache.
7571 (mips64_supply_fpregset): Likewise. Make FPREGSET const, adapt
7573 (mips64_fill_fpregset): Add REGCACHE parameter; replace current_regcache.
7574 (fetch_core_registers): Pass current_regcache to mips{64}_(supply|fill)_
7576 * mips-linux-tdep.h (mips_supply_gregset, mips_fill_gregset,
7577 mips_supply_fpregset, mips_fill_fpregset, mips64_supply_gregset,
7578 mips64_fill_gregset, mips64_supply_fpregset, mips64_fill_fpregset):
7580 * mips-linux-nat.c: Include "regcache.h".
7581 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): Pass
7582 current_regcache to mips{64}_(supply|fill)_ helper routines.
7583 (mips64_linux_regsets_fetch_registers): Likewise.
7584 (mips64_linux_regsets_store_registers): Likewise.
7586 * mipsnbsd-tdep.c (mipsnbsd_supply_reg, mipsnbsd_supply_fpreg): Add
7587 REGCACHE argument; replace current_regcache. Make REGS const.
7588 (mipsnbds_fill_reg, mipsnbsd_fill_fpreg): Add REGCACHE argument;
7589 replace current_regcache.
7590 * mipsnbsd-tdep.h (ipsnbsd_supply_reg, mipsnbsd_supply_fpreg,
7591 mipsnbds_fill_reg, mipsnbsd_fill_fpreg): Adapt prototypes.
7592 * mipsnbsd-nat.c (mipsnbsd_fetch_inferior_registers,
7593 mipsnbsd_store_inferior_registers): Pass current_regcache to
7594 mipsnbsd_(supply|fill)_... helper routines.
7596 * Makefile.in (mips-linux-nat.o): Update dependencies.
7598 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7600 * i387-tdep.c (i387_fill_fsave, i387_fill_fxsave): Remove.
7601 * i387-tdep.h (i387_fill_fsave, i387_fill_fxsave): Remove prototypes.
7602 * i368-linux-nat.c (supply_fpregset, supply_fpxregset): Replace
7603 i387_fill_fsave and i387_fill_fxsave calls by inline copies.
7604 * i386-nto-tdep.c (i386nto_regset_fill): Likewise.
7605 * i386gnu-nat.c (store_fpregs): Likewise.
7606 * i386v4-nat.c (fill_fpregset): Likewise.
7607 * go32-nat.c (store_register, go32_store_registers): Likewise.
7609 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7611 * cris-tdep.c (supply_gregset): Rename to ...
7612 (cris_supply_gregset): ... this. Add REGCACHE parameter. Use it
7613 instead of current_regcache.
7614 (fetch_core_registers): Update call. Pass current_regcache.
7616 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7618 * arnmnbsd-nat.c (supply_gregset): Rename to ...
7619 (arm_supply_gregset): ... this. Add REGCACHE parameter.
7620 Use it instead of current_regcache.
7621 (supply_fparegset): Rename to ...
7622 (arm_supply_fparegset): ... this. Add REGCACHE parameter.
7623 Use it instead of current_regcache.
7624 (fetch_regs, fetch_fp_regs): Update calls. Pass current_regcache.
7625 (fetch_core_registers, fetch_elfcore_registers): Likewise.
7627 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7629 * alpha-tdep.c (alpha_supply_int_regs, alpha_fill_int_regs,
7630 alpha_supply_fp_regs, alpha_fill_fp_regs): Add REGCACHE parameter,
7631 use it instead of current_regcache.
7632 * alpha-tdep.h (struct regcache): Add forward declaration.
7633 (alpha_supply_int_regs, alpha_fill_int_regs, alpha_supply_fp_regs,
7634 alpha_fill_fp_regs): Update prototypes.
7636 * alpha-nat.c: (supply_gregset, fill_gregset, supply_fpregset,
7637 fill_fpregset): Pass current_regcache to alpha_supply/fill_ routines.
7638 * alpha-linux-nat.c: Include "regcache.h".
7639 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): Pass
7640 current_regcache to alpha_supply/fill_ routines.
7642 * alphabsd-tdep.c: Include "regcache.h".
7643 (alphabsd_supply_reg, alphabsd_supply_fpreg): Add REGCACHE paramter,
7644 pass it to alpha_supply_ routines. Make REGS const.
7645 (alphabsd_fill_reg, alphabsd_fill_fpreg): Add REGCACHE parameter,
7646 pass it to alpha_fill_ routines.
7647 * alphabsd-tdep.h (struct regcache): Add forward declaration.
7648 (alphabsd_supply_reg, alphabsd_fill_reg, alphabsd_supply_fpreg,
7649 alphabsd_fill_fpreg): Update prototypes.
7651 * alphanbsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
7652 fill_fpregset, alphabsd_fetch_inferior_registers,
7653 alphabsd_store_inferior_registers): Pass current_regcache to
7654 alphabsd_supply/fill_ routines.
7656 * Makefile.in (alpha-linux-nat.o, alphabsd-tdep.o): Update
7659 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7661 * aix-thread.c (supply_gprs64, supply_reg32, supply_fprs,
7662 supply_sprs64, supply_sprs32): Add REGCACHE parameter, use it
7663 instead of current_regcache.
7664 (fetch_regs_user_thread, fetch_regs_kernel_thread): Add
7665 REGCACHE parameter, pass it to supply_ routines.
7666 (aix_thread_fetch_registers): Pass current_regcache to
7667 fetch_regs_user_thread and fetch_regs_kernel_thread.
7669 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs64, fill_sprs32):
7670 Add REGCACHE parameter, use it instead of current_regcache.
7671 Call regcache_valid_p instead of register_cached.
7672 (store_regs_user_thread, store_regs_kernel_thread): Likewise.
7673 Also, pass REGCACHE to fill_ routines.
7674 (aix_thread_store_registers): Pass current_regcache to
7675 store_regs_user_thread and store_regs_kernel_thread.
7677 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7679 * m32r-linux-nat.c (supply_gregset): Do not modify contents
7680 pointed to by GREGSETP.
7682 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7684 * irix5-nat.c (fill_gregset): Use regcache_raw_collect instead
7685 of regcache_raw_read_signed.
7686 (fill_fpregset): Use regcache_raw_collect instead of
7689 2007-05-03 Kevin Buettner <kevinb@redhat.com>
7691 * mips-tdep.c (mips_eabi_push_dummy_call): When pushing floating
7692 point arguments, test explicitly for use of the EABI32 ABI
7693 instead of inferring this condition from tests on register
7696 2007-05-03 Kevin Buettner <kevinb@redhat.com>
7698 * breakpoint.c (set_raw_breakpoint): Adjust breakpoint's address
7699 prior to allocating its location.
7701 2007-05-02 Maciej W. Rozycki <macro@mips.com>
7703 * mips-tdep.c (mips_o32_push_dummy_call): Remove conditions
7704 based on mips_abi_regsize() whose result is known in advance.
7705 (mips_o64_push_dummy_call): Likewise.
7707 2007-04-29 Ulrich Weigand <uweigand@de.ibm.com>
7709 * m68klinux-nat.c: Remove #ifndef USE_PROC_FS check.
7710 * m68k-tdep.c: Remove code within #ifdef USE_PROC_FS.
7712 * mips-linux-nat.c: Include "gregset.h".
7713 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): Move
7714 from mips-linux-tdep.c. Change parameter type to gdb_gregset_t.
7715 * mips-linux-tdep.c (supply_gregset, fill_gregset, supply_fpregset,
7716 fill_fpregset): Move to mips-linux-nat.c.
7718 * Makefile.in (m68k-tdep.o, mips-linux-nat.o): Update dependencies.
7720 2007-04-28 Ulrich Weigand <uweigand@de.ibm.com>
7722 * regcache.c (deprecated_read_register_gen): Remove, inline ...
7723 (read_register): ... here.
7724 (deprecated_write_register_gen): Remove, inline ...
7725 (write_register): ... here.
7726 * regcache.h (deprecated_read_register_gen): Remove prototype.
7727 (deprecated_write_register_gen): Likewise.
7729 * remote-sim.c (gdbsim_store_register): Replace call to
7730 deprecated_read_register_gen with regcache_cooked_read.
7731 * target.c (debug_print_register): Replace calls to
7732 deprecated_read_register_gen and read_register with
7733 regcache_cooked_read.
7735 2007-04-28 Ulrich Weigand <uweigand@de.ibm.com>
7737 * hpux-thread.c (hpux_thread_store_registers): Use
7738 regcache_raw_collect, not regcache_raw_read.
7739 * irix5-nat.c (fetch_core_registers): Use regcache_raw_supply,
7740 not regcache_raw_write.
7742 2007-04-28 Ulrich Weigand <uweigand@de.ibm.com>
7744 * gdbarch.sh: Remove deprecated_register_byte.
7745 * gdbarch.c, gdbarch.h: Regenerate.
7746 * arch-utils.h (generic_register_size, generic_register_byte): Remove.
7747 * arch-utils.c (generic_register_size, generic_register_byte): Remove.
7749 * regcache.h (regcache_valid_p): Make REGCACHE parameter const.
7750 * regcache.c (regcache_valid_p): Allow to query cooked registers in
7751 read-only register caches. Make REGCACHE parameter const.
7752 (regcache_dump): Do not check DEPRECATED_REGISTER_BYTE.
7754 * mi/mi-main.c (old_regs): Remove.
7755 (mi_setup_architecture_data, _initialize_mi_main): Remove.
7756 (register_changed_p): Reimplement to compare two register caches.
7757 (mi_cmd_data_list_changed_registers): Update caller.
7758 * mi/mi-main.h (mi_setup_architecture_data): Remove.
7759 * mi/mi-interp.c (mi_interpreter_init): Do not call
7760 mi_setup_architecture_data.
7762 2007-04-28 Ulrich Weigand <uweigand@de.ibm.com>
7764 * alpha-nat.c (ALPHA_REGSET_BASE, ALPHA_REGSET_UNIQUE): Do not define,
7765 inline definition at the places the macros are used.
7766 * alpha-linux-nat.c (ALPHA_REGSET_BASE, ALPHA_REGSET_UNIQUE): Likewise.
7768 2007-04-28 Ulrich Weigand <uweigand@de.ibm.com>
7770 * rs6000-aix-tdep.c: Include "regcache.h", "regset.h", and
7772 (rs6000_aix32_reg_offsets, rs6000_aix64_reg_offsets): New variables.
7773 (rs6000_aix_supply_regset, rs6000_aix_collect_regset): New functions.
7774 (rs6000_aix32_regset, rs6000_aix64_regset): New variables.
7775 (rs6000_aix_regset_from_core_section): New function.
7776 (rs6000_aix_init_osabi): Register it.
7777 (_initialize_rs6000_aix_tdep): Register GDB_OSABI_AIX osabi and
7778 sniffer for bfd_arch_powerpc as well as bfd_arch_rs6000.
7779 * rs6000-nat.c (CoreRegs): Do not define type.
7780 (fetch_core_registers, rs6000_core_fns): Remove.
7781 (_initialize_core_rs6000): Do not register it. Rename to ...
7782 (_initialize_rs6000_nat): ... this.
7783 * Makefile.in (rs6000-aix-tdep.o): Update dependencies.
7785 2007-04-27 Kevin Buettner <kevinb@redhat.com>
7787 * dwarf2expr.c (unsigned_address_type): Add forward declaration.
7788 (dwarf2_read_address): Sign extend return address as required by
7789 target architecture.
7791 2007-04-27 Kevin Buettner <kevinb@redhat.com>
7793 * solib-frv.c (lm_base): Bail out if the main executable has
7796 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
7798 * alpha-linux-tdep.c (alpha_linux_supply_fpregset): Correct location
7799 of FPCR register in fpregset.
7801 2007-04-27 Maciej W. Rozycki <macro@mips.com>
7803 * Makefile.in (gdbtk-wrapper.o): Update dependencies.
7804 (gdbtk-varobj.o, gdbtk-cmds.o, gdbtk-stack.o): Likewise.
7806 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
7808 * config/rs6000/nm-rs6000.h (CHILD_SPECIAL_WAITSTATUS): Remove.
7809 * rs6000-nat.c (rs6000_wait): New function.
7810 (_initialize_core_rs6000): Install it as to_wait target method.
7811 * target.c (store_waitstatus): Don't check CHILD_SPECIAL_WAITSTATUS.
7813 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
7815 * config/rs6000/nm-rs6000.h (TARGET_CREATE_INFERIOR_HOOK): Remove.
7816 * fork-child.c (fork_inferior): Don't call TARGET_CREATE_INFERIOR_HOOK.
7817 * rs6000-nat.c (super_create_inferior): New variable.
7818 (rs6000_create_inferior): Make static. Adapt argument list. Call
7819 original version of create_inferior via super_create_inferior.
7820 (_initialize_core_rs6000): Install to_create_inferior target method.
7822 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
7824 * aix-thread.c (aix_thread_xfer_memory): Replace by ...
7825 (aix_thread_xfer_partial): ... this.
7826 (init_aix_thread_ops): Install to_xfer_partial instead
7827 of deprecated_xfer_memory target method.
7829 * config/powerpc/aix.mh (NATDEPFILES): Remove infptrace.o
7830 and inftarg.o, add inf-ptrace.o.
7831 * config/rs6000/nm-rs6000.h (FETCH_INFERIOR_REGISTERS,
7832 CHILD_XFER_MEMORY, KERNEL_U_SIZE, kernel_u_size): Remove.
7833 * rs6000-nat.c: Include "inf-ptrace.h" and "gdb_stdint.h".
7834 (fetch_inferior_registers): Rename to ...
7835 (rs6000_fetch_inferior_registers): ... this. Make static.
7836 (store_inferior_registers): Rename to ...
7837 (rs6000_store_inferior_registers): ... this. Make static.
7838 (read_word, child_xfer_memory): Remove.
7839 (rs6000_xfer_partial): New function.
7840 (kernel_u_size): Remove.
7841 (_initialize_core_rs6000): Add inf_ptrace-based target.
7842 * Makefile.in (rs6000-nat.o): Update dependencies.
7844 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
7846 * inf-ptrace.c: Include "gdb_stdint.h".
7847 (inf_ptrace_xfer_partial): Use "uintptr_t" instead of "long" as
7848 intermediate type when casting CORE_ADDR to PTRACE_TYPE_ARG3.
7849 (inf_ptrace_fetch_register): Add intermediate cast to "uintptr_t"
7850 before casting CORE_ADDR to PTRACE_TYPE_ARG3.
7851 (inf_ptrace_store_register): Likewise.
7852 * Makefile.in (inf-ptrace.o): Update dependencies.
7854 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
7856 * configure.host (rs6000-*-*): Merge with powerpc-*-aix* rules.
7857 * configure.tgt (rs6000-*-*): Likewise.
7858 * config/rs6000/aix4.mh: Delete file.
7859 * config/rs6000/aix4.mt: Delete file.
7860 * config/rs6000/rs6000.mh: Delete file.
7861 * config/rs6000/rs6000.mt: Delete file.
7863 * config/powerpc/nm-aix.h: Delete file.
7864 * config/powerpc/aix.mh (NAT_FILE): Set to config/rs6000/nm-rs6000.h.
7866 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
7868 * aix-thread.c (fill_sprs32): Change argument types to "uint32_t *".
7869 Remove obsolete part of comment.
7870 (store_regs_user_thread): Use uint32_t temporaries when calling
7872 (store_regs_kernel_thread): Likewise. Add assertion to verify
7873 correct size of struct ptsprs members.
7874 (aix_thread_xfer_memory): Fix type of myaddr.
7875 (aix_thread_extra_thread_info): Fix compiler warning.
7876 * rs6000-nat.c (rs6000_ptrace64): Change type of buf to "void *".
7877 (fetch_register, store_register): Adapt callers.
7879 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
7881 * vec.h (vec_free): Rename to vec_free_. Adapt users.
7883 2007-04-25 Ulrich Weigand <uweigand@de.ibm.com>
7885 * alpha-linux-tdep.c: Include "gdb_string.h", "regset.h",
7887 (alpha_linux_supply_gregset, alpha_linux_supply_fpregset): New.
7888 (alpha_linux_gregset, alpha_linux_fpregset): New variables.
7889 (alpha_linux_regset_from_core_section): New function.
7890 (alpha_linux_init_abi): Install it.
7891 * alpha-linux-nat.c: Do not include "gdbcore.h". Include
7892 "alpha-tdep.h", <sys/ptrace.h>, <alpha/ptrace.h>,
7893 <sys/procfs.h>, and "gregset.h".
7894 (ALPHA_REGSET_BASE, ALPHA_REGSET_UNIQUE, ALPHA_UNIQUE_PTRACE_ADDR):
7895 Move from config/alpha/nm-linux.h.
7896 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): Copy
7898 (alpha_linux_register_u_offset): Inline register_addr from alpha-nat.c.
7899 * alpha-nat.c: Remove #ifdef __linux__ section.
7900 (fetch_elf_core_registers, alpha_elf_core_fns): Remove.
7901 (_initialize_core_alpha): Do not register alpha_elf_core_fns.
7902 (ALPHA_UNIQUE_PTRACE_ADDR, ALPHA_REGSET_UNIQUE): Define unconditionally.
7903 (ALPHA_REGSET_BASE): Move from config/alpha/nm-osf.h.
7904 * config/alpha/alpha-linux.mh (NAT_FILE): Set to config/nm-linux.h.
7905 (NATDEPFILES): Remove alpha-nat.o.
7906 * config/alpha/nm-linux.h: Delete file.
7907 * config/alpha/nm-osf.h (ALPHA_REGSET_BASE): Move to alpha-nat.c.
7908 * Makefile.in (alpha-linux-nat.o): Update dependencies.
7909 (alpha-linux-tdep.o): Likewise.
7911 2007-04-25 Ulrich Weigand <uweigand@de.ibm.com>
7913 * mips-linux-nat.c: No longer include "gdbcore.h".
7914 (mips_linux_register_addr): Move from mips-linux-tdep.c.
7915 (mips64_linux_register_addr): Likewise.
7916 (mips_linux_register_u_offset): Call mips_linux_register_addr or
7917 mips64_linux_register_addr instead of register_addr.
7918 * mips-linux-tdep.c (mips_linux_register_addr,
7919 mips64_linux_register_addr): Move to mips-linux-nat.c.
7920 (register_addr): Remove.
7921 (register_addr_data, init_register_addr_data): Remove.
7922 (_initialize_mips_linux_tdep): Do not initialize register_addr_data.
7923 (set_mips_linux_register_addr): Remove.
7924 (mips_linux_init_abi): Do not call set_mips_linux_register_addr.
7925 * Makefile.in (mips-linux-nat.o): Update dependencies.
7927 2007-04-25 Ulrich Weigand <uweigand@de.ibm.com>
7929 * linux-nat.c (linux_register_u_offset): Remove.
7930 (linux_target_install_ops): New function.
7931 (linux_target): Use it.
7932 (linux_trad_target): New function.
7933 * linux-nat.h (linux_trad_target): Declare.
7935 * alpha-linux-nat.c: Include "gdbcore.h".
7936 (alpha_linux_register_u_offset): New function.
7937 (_initialize_alpha_linux_nat): Use linux_trad_target.
7939 * mips-linux-nat.c: Include "gdbcore.h".
7940 (mips_linux_register_u_offset): New function.
7941 (_initialize_mips_linux_nat): Use linux_trad_target.
7943 * config/arm/linux.mh (NAT_FILE): Set to config/nm-linux.h.
7944 * config/arm/nm-linux.h: Delete file.
7946 * config/i386/nm-linux64.h (FETCH_INFERIOR_REGISTERS): Remove.
7947 * config/i386/nm-linux.h (FETCH_INFERIOR_REGISTERS): Remove.
7949 * config/ia64/linux.mh (NAT_FILE): Set to config/nm-linux.h.
7950 * config/ia64/nm-linux.h: Delete file.
7952 * config/m32r/linux.mh (NAT_FILE): Set to config/nm-linux.h.
7953 * config/m32r/nm-linux.h: Delete file.
7955 * config/m68k/linux.mh (NAT_FILE): Set to config/nm-linux.h.
7956 * config/m68k/nm-linux.h: Delete file.
7958 * config/pa/linux.mh (NAT_FILE): Set to config/nm-linux.h.
7959 * config/pa/nm-linux.h: Delete file.
7961 * config/powerpc/linux.mh (NAT_FILE): Set to config/nm-linux.h.
7962 * config/powerpc/ppc64-linux.mh (NAT_FILE): Likewise.
7963 * config/powerpc/nm-linux.h: Delete file.
7965 * config/s390/s390.mh (NAT_FILE): Set to config/nm-linux.h.
7966 * config/s390/nm-linux.h: Delete file.
7968 * config/sparc/linux.mh (NAT_FILE): Set to config/nm-linux.h.
7969 * config/sparc/linux64.mh (NAT_FILE): Likewise.
7970 * config/sparc/nm-linux.h: Delete file.
7972 * Makefile.in (alpha-linux-nat.o): Update dependencies.
7973 (mips-linux-nat.o): Likewise.
7975 2007-04-25 Ulrich Weigand <uweigand@de.ibm.com>
7977 * core-aout.c: Delete file.
7978 * Makefile.in (ALLDEPFILES): Remove core-aout.c.
7979 (core-aout.o): Delete rule.
7980 * gdbcore.h (kernel_u_addr, KERNEL_U_ADDR): Remove.
7982 * config/alpha/nm-linux.h (U_REGS_OFFSET): Remove.
7984 * arm-linux-nat.c (arm_linux_kernel_u_size): Remove.
7985 * config/arm/nm-linux.h (U_REGS_OFFSET, KERNEL_U_SIZE,
7986 KERNEL_U_ADDR): Remove.
7988 * i386-linux-nat.c (register_u_addr, kernel_u_size): Remove.
7989 (cannot_fetch_register, cannot_store_register): Remove.
7990 (fetch_register): Inline cannot_fetch_register and register_addr.
7991 (store_register): Inline cannot_store_register and register_addr.
7992 * config/i386/linux.mh (NATDEPFILES): Remove core-aout.o.
7993 * config/i386/nm-linux.h (KERNEL_U_SIZE, KERNEL_U_ADDR,
7994 REGISTER_U_ADDR, CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER):
7997 * m68klinux-nat.c (m68k_linux_register_u_addr, kernel_u_size): Remove.
7998 (fetch_register): Inline register_addr.
7999 (store_register): Inline register_addr.
8000 * config/m68k/linux.mh (NATDEPFILES): Remove core-aout.o.
8001 * config/m68k/nm-linux.h (KERNEL_U_SIZE, KERNEL_U_ADDR,
8002 U_REGS_OFFSET, REGISTER_U_ADDR): Remove.
8004 * config/mips/nm-irix5.h (REGISTER_U_ADDR): Remove.
8005 * config/mips/nm-linux.h (KERNEL_U_SIZE, U_REGS_OFFSET,
8006 REGISTER_U_ADDR): Remove.
8008 * hppa-linux-nat.c (register_addr): Rename to ...
8009 (hppa_linux_register_addr): ... this. Make static.
8010 (fetch_register, store_register): Adapt callers.
8011 * config/pa/nm-linux.h (U_REGS_OFFSET): Remove.
8013 * ppc-linux-nat.c (kernel_u_size): Remove.
8014 * config/powerpc/nm-linux.h (KERNEL_U_SIZE, KERNEL_U_ADDR): Remove.
8016 * vax-nat.c (vax_kernel_u_addr, vax_register_u_addr): Make static.
8017 * config/vax/vax.mh (NATDEPFILES): Remove core-aout.o.
8019 * config/vax/nm-vax.h: Delete file.
8021 2007-04-20 Mark Shinwell <shinwell@codesourcery.com>
8023 * MAINTAINERS (Write After Approval): Add myself.
8025 2007-04-20 Mark Shinwell <shinwell@codesourcery.com>
8027 * Makefile.in: Adjust dependencies of m68klinux-tdep.c.
8028 * m68klinux-tdep.c (m68k_uclinux_sigcontext_reg_offset): New.
8029 (m68k_linux_sigcontext_reg_offset): Fix typo.
8030 (target_is_uclinux): New.
8031 (m68k_linux_inferior_created): New.
8032 (m68k_linux_get_sigtramp_info): Check for uClinux or
8033 normal Linux. Use m68k_uclinux_sigcontext_reg_offset for
8035 (_initialize_m68k_linux_tdep): Register
8036 m68k_linux_inferior_created.
8038 2007-04-19 Pedro Alves <pedro_alves@portugalmail.pt>
8040 * win32-nat.c (win32_detach): Remove delete_command call.
8041 Resume inferior with win32_resume instead of win32_continue.
8043 2007-04-19 Jerome Guitton <guitton@adacore.com>
8045 * ser-mingw.c (fd_is_file): New function.
8046 (file_select_thread): New function.
8047 (ser_console_wait_handle): Add special handling for files.
8049 2007-04-18 Denis Pilat <denis.pilat@st.com>
8051 * dwarf2read.c (read_subrange_type): Use DW_ATE_signed default type
8052 when missing from DW_TAG_subrange_type. Remove the handling of null
8053 return from die_type.
8055 2007-04-18 Maciej W. Rozycki <macro@mips.com>
8057 * mips-tdep.c (mips_eabi_push_dummy_call): Revert the last
8058 change to rearrange some brackets.
8059 (mips_n32n64_push_dummy_call): Likewise.
8060 (mips_o32_push_dummy_call): Likewise.
8061 (mips_o64_push_dummy_call): Likewise.
8063 2007-04-18 Denis Pilat <denis.pilat@st.com>
8065 * infcmd.c (post_create_inferior): Start with a call to
8066 target_terminal_ours.
8068 2007-04-17 Maciej W. Rozycki <macro@mips.com>
8070 * mips-tdep.c (mips_eabi_push_dummy_call): Rearrange some
8072 (mips_n32n64_push_dummy_call): Likewise. Reformat some
8074 (mips_o32_push_dummy_call): Likewise.
8075 (mips_o64_push_dummy_call): Likewise.
8077 2007-04-17 Maciej W. Rozycki <macro@mips.com>
8079 * mips-tdep.c (mips_n32n64_push_dummy_call): Fix a typo in a
8082 2007-04-17 Maciej W. Rozycki <macro@mips.com>
8084 * mips-tdep.c (mips_n32n64_push_dummy_call): Fix a typo in a
8086 (mips_o32_push_dummy_call): Likewise.
8088 2007-04-17 Andreas Schwab <schwab@suse.de>
8090 * symtab.c (skip_prologue_using_sal): Allow the end of the prologue
8091 sal to be bigger than the end of the function.
8093 2007-04-17 Maciej W. Rozycki <macro@mips.com>
8094 Nigel Stephens <nigel@mips.com>
8096 * mips-tdep.c (mips_o32_push_dummy_call): Take account of
8097 argument alignment requirements when calculating stack space
8098 required. When aligning an arg register to eight bytes
8099 boundary, align stack_offset too. Write floating-point
8100 arguments to the appropriate integer register if need go there.
8101 (mips_o64_push_dummy_call): Likewise.
8103 2007-04-14 Ulrich Weigand <uweigand@de.ibm.com>
8105 * gdbarch.sh (software_single_step): Remove "insert_breakpoints_p" and
8106 "sig" arguments, add "regcache" argument.
8107 * gdbarch.c, gdbarch.h: Regenerate.
8109 * infrun.c (resume): Update SOFTWARE_SINGLE_STEP call arguments.
8110 (handle_inferior_event): Call remove_single_step_breakpoints directly
8111 instead of calling SOFTWARE_SINGLE_STEP to remove breakpoints.
8113 * alpha-tdep.c (alpha_software_single_step): Update argument list.
8114 Remove handling of !insert_breakpoints_p case.
8115 * arm-tdep.c (arm_software_single_step): Likewise.
8116 * cris-tdep.c (cris_software_single_step): Likewise.
8117 * mips-tdep.c (mips_software_single_step): Likewise.
8118 * rs6000-tdep.c (rs6000_software_single_step): Likewise.
8119 * sparc-tdep.c (sparc_software_single_step): Likewise.
8120 * spu-tdep.c (spu_software_single_step): Likewise.
8122 * alpha-tdep.h (alpha_software_single_step): Update prototype.
8123 * mips-tdep.h (mips_software_single_step): Likewise.
8124 * rs6000-tdep.h (rs6000_software_single_step): Likewise.
8125 * sparc-tdep.h (sparc_software_single_step): Likewise.
8127 2007-04-14 Ulrich Weigand <uweigand@de.ibm.com>
8129 * alpha-tdep.c (alpha_software_single_step): Do not call write_pc
8130 when removing single-step breakpoints.
8132 2007-04-14 Vladimir Prus <vladimir@codesourcery.com>
8134 * varobj.h (varobj_set_frozen): New
8135 (varobj_get_frozen): New.
8136 (varobj_update): New parameter explicit.
8137 * varobj.c (struct varobj): New fields frozen
8139 (varobj_set_frozen, varobj_get_frozen): New.
8140 (install_new_value): Don't fetch values for
8141 frozen variable object, or children thereof. Allow
8142 a frozen variable object to have non-fetched value.
8143 (varobj_update): Allow updating child variables.
8144 Don't traverse frozen children.
8145 (new_variable): Initialize the frozen field.
8146 (c_value_of_variable): Return NULL for frozen
8147 variable without any value yet.
8148 * mi/mi-cmd-var.c (varobj_update_one): New parameter
8150 (mi_cmd_var_create): Output the 'frozen' field,
8151 as soon as testsuite is adjusted to expect that field.
8152 (mi_cmd_var_set_frozen): New.
8153 (mi_cmd_var_update): Pass the 'explicit' parameter to
8155 * mi/mi-cmds.c (mi_cmds): Register '-var-set-frozen'.
8156 * mi/mi-cmds.h (mi_cmd_var_set_frozen): Declare.
8158 2007-04-13 Paul Brook <paul@codesourcery.com>
8160 * target-descriptions.c (tdesc_named_type): Add ieee_single and
8162 * doc/gdb.texinfo: Document ieee_single and ieee_double target types.
8164 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
8166 * mips-mdebug-tdep.c, mips-mdebug-tdep.h, ocd.c, ocd.h, ppc-bdm.c,
8167 remote-e7000.c, remote-hms.c, remote-utils.c, remote-utils.h,
8168 scm-exp.c, scm-lang.c, scm-lang.h, scm-tags.h, scm-valprint.c,
8169 ser-e7kpc.c, sh3-rom.c, stop-gdb.c: Delete.
8170 * Makefile.in: Remove references to deleted files.
8171 * README: Do not mention deleted ROM monitor interfaces.
8172 * defs.h (enum language): Delete language_scm.
8173 * expprint.c (print_subexp_standard): Do not handle OP_EXPRSTRING.
8174 (dump_subexp_body_standard): Likewise.
8175 * parse.c (operator_length_standard): Likewise.
8176 * expression.h (enum exp_opcode): Delete OP_EXPRSTRING.
8177 * remote-mips.c: Do not include remote-utils.h.
8178 * remote-sim.c: Likewise. Use remote_debug instead of sr_get_debug
8180 * value.c: Do not include scm-lang.h.
8181 (unpack_long): Delete scm_unpack call.
8182 * config/h8300/h8300.mt, config/mips/embed.mt,
8183 config/powerpc/ppc-eabi.mt, config/powerpc/ppc-sim.mt,
8184 config/sh/embed.mt, config/sh/linux.mt: Remove references to
8186 * NEWS: Mention removed files.
8188 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
8190 * symfile.c (add_psymbol_with_dem_name_to_list): Remove.
8191 * symfile.h (add_psymbol_with_dem_name_to_list): Remove prototype.
8193 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
8195 * NEWS: Mention removal of HP aCC support.
8197 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
8199 * solib-svr4.c (IGNORE_FIRST_LINK_MAP_ENTRY): Do not ignore the
8200 first entry for static executables.
8201 (breakpoint_addr): Delete unused variable.
8202 (elf_locate_base): Search for _r_debug in static executables.
8203 (enable_break): Do not set breakpoint_addr. Scan solib_break_names
8206 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
8208 * breakpoint.c (update_breakpoints_after_exec, print_it_typical)
8209 (bpstat_what, print_one_breakpoint, allocate_bp_location)
8210 (mention): Remove bp_through_sigtramp support.
8211 * breakpoint.h (enum bptype): Remove bp_through_sigtramp.
8213 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
8215 * breakpoint.c (bpstat_what): Give step-resume higher priority than
8218 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
8220 * infrun.c: Doc fixes.
8221 (handle_inferior_event): Clarify debug message.
8222 (insert_step_resume_breakpoint_at_sal): Print a debug message.
8224 2007-04-12 Ulrich Weigand <uweigand@de.ibm.com>
8226 * configure.tgt (arm-*-nto*, sh-*-nto*): Remove.
8228 2007-04-12 Ulrich Weigand <uweigand@de.ibm.com>
8230 * config/m68k/tm-monitor.h: Delete file.
8231 * config/m68k/monitor.mt (DEPRECATED_TM_FILE): Remove.
8232 * m68k-tdep.c (m68k_gdbarch_init): set_gdbarch_decr_pc_after_break
8234 * m68kbsd-tdep.c (m68kbsd_init_abi): ... here and ...
8235 * m68klinux-tdep.c (m68k_linux_init_abi): ... here.
8237 2007-04-12 Luis Machado <luisgpm@br.ibm.com>
8239 * gdbarch.sh (software_single_step): Change the return type
8240 from void to int and reformatted some comments to <= 80
8242 * gdbarch.c, gdbarch.h: Regenerated.
8243 * alpha-tdep.c (alpha_software_single_step): Likewise.
8244 * alpha-tdep.h (alpha_software_single_step): Likewise.
8245 * arm-tdep.c (arm_software_single_step): Likewise.
8246 * cris-tdep.c (cris_software_single_step): Likewise.
8247 * mips-tdep.c (mips_software_single_step): Likewise.
8248 * mips-tdep.h (mips_software_single_step): Likewise.
8249 * rs6000-tdep.c (rs6000_software_single_step): Likewise.
8250 * rs6000-tdep.h (rs6000_software_single_step): Likewise.
8251 * sparc-tdep.c (sparc_software_single_step): Likewise.
8252 * sparc-tdep.h (sparc_software_single_step): Likewise.
8253 * spu-tdep.c (spu_software_single_step): Likewise.
8254 * infrun.c (resume): Check the return value from SOFTWARE_SINGLE_STEP
8255 and act accordingly.
8257 2007-04-11 Steve Ellcey <sje@cup.hp.com>
8259 * configure.ac (build_warnings): Add -Wno-char-subscripts.
8260 * configure: Regenerate.
8261 * doc/gdbint.texinfo (warning flags): Add -Wno-char-subscripts.
8263 2007-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
8265 * libunwind-frame.c (LIBUNWIND_SO): Use major version number for `.so'.
8267 2007-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
8269 * gdbtypes.h (TYPE_FLAG_STUB_SUPPORTED, TYPE_STUB_SUPPORTED): New
8271 (TYPE_IS_OPAQUE): Empty vs. opaque structures are now
8272 distinct on the TYPE_STUB_SUPPORTED debug targets.
8273 * dwarf2read.c (read_structure_type): Set TYPE_FLAG_STUB_SUPPORTED.
8275 2007-04-11 Joel Brobecker <brobecker@adacore.com>
8277 * sparc-tdep.c (X_RS2): New macro.
8278 (sparc_skip_stack_check): New function.
8279 (sparc_analyze_prologue): Adjust PC past stack probing
8280 sequence if necessary.
8282 2007-04-10 Andreas Schwab <schwab@suse.de>
8284 * rs6000-tdep.c (rs6000_dwarf2_reg_to_regnum): Decode 64 as CR
8287 2007-04-10 Daniel Jacobowitz <dan@codesourcery.com>
8289 * breakpoint.c (gdb_breakpoint_query): Really return an
8291 (gdb_breakpoint): Likewise.
8292 * thread.c (gdb_list_thread_ids): Likewise.
8293 (gdb_thread_select): Likewise.
8294 * mi/mi-main.c (mi_cmd_thread_select): Expect an enum gdb_rc.
8295 (mi_cmd_thread_list_ids): Remove bogus initialization.
8297 2007-04-10 Daniel Jacobowitz <dan@codesourcery.com>
8299 * Makefile.in (SFILES): Remove hpacc-abi.c.
8300 (COMMON_OBS): Remove hpacc-abi.o.
8301 (ALLDEPFILES): Remove hpread.c and $(HPREAD_SOURCE).
8302 (hpacc-abi.o, hpread.o): Delete rules.
8303 * somread.c: Delete extern declarations from hpread.c.
8304 (som_symfile_read): Do not call do_pxdb or hpread_build_psymtabs.
8305 (som_symfile_finish): Do not call hpread_symfile_finish.
8306 (som_symfile_init): Do not call hpread_symfile_init.
8307 * config/pa/hppa64.mt (TDEPFILES): Remove hpread.o.
8308 * config/pa/hppahpux.mt (TDEPFILES): Likewise.
8309 * hpacc-abi.c, hpread.c: Deleted.
8311 2007-04-10 Daniel Jacobowitz <dan@codesourcery.com>
8313 * solib-svr4.c (enable_break): Simplify return value.
8314 (svr4_solib_create_inferior_hook): Do not warn if enable_break fails.
8316 2007-04-10 Andreas Schwab <schwab@suse.de>
8318 * solib-svr4.h (struct link_map_offsets): Remove l_addr_size,
8319 l_ld_size, l_next_size, l_prev_size, l_name_size.
8321 * solib-svr4.c (LM_ADDR_FROM_LINK_MAP): Use extract_typed_address
8322 to extract addresses from link map.
8323 (LM_DYNAMIC_FROM_LINK_MAP): Likewise.
8324 (LM_NEXT): Likewise.
8325 (LM_NAME): Likewise.
8326 (IGNORE_FIRST_LINK_MAP_ENTRY): Likewise.
8327 (elf_locate_base): Likewise.
8328 (open_symbol_file_object): Likewise.
8329 (svr4_fetch_objfile_link_map): Likewise.
8330 (SOLIB_EXTRACT_ADDRESS): Remove unused macro.
8331 (HAS_LM_DYNAMIC_FROM_LINK_MAP): Test l_ld_offset instead of
8333 (svr4_ilp32_fetch_link_map_offsets): Don't set removed members.
8334 (svr4_lp64_fetch_link_map_offsets): Likewise.
8336 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets): Don't set
8337 removed members. Set l_ld_offset to -1 if not present.
8339 2007-04-08 Vladimir Prus <vladimir@codesourcery.com>
8341 Pass stderr of program run with "target remote |"
8343 * serial.c (serial_open): Set error_fd to -1.
8344 * serial.h (struct serial): New field error_fd.
8345 (struct serial_opts): New field avail.
8346 * ser-pipe.c (pipe_open): Create another pair
8347 of sockets. Pass stderr to gdb.
8348 * ser-mingw.c (pipe_windows_open): Pass
8349 PEX_STDERR_TO_PIPE to pex_run. Initialize
8352 (_initialize_ser_windows): Hook pipe_avail.
8353 * ser-base.c (generic_readchar): Check if there's
8354 anything in stderr channel and route that to gdb_stderr.
8356 2007-04-03 Pedro Alves <pedro_alves@portugalmail.pt>
8358 * dbxread.c (read_ofile_symtab): Move current_objfile
8359 clearing to after end_stabs.
8361 2007-04-01 Andreas Schwab <schwab@suse.de>
8363 * rs6000-tdep.c (rs6000_convert_from_func_ptr_addr): Use parameter
8364 gdbarch instead of current_gdbarch.
8366 2007-04-01 Vladimir Prus <vladimir@codesourcery.com>
8368 * varobj.c (varobj_create): Keep varobj value
8369 NULL when evaluating the type.
8371 2007-03-31 Pedro Alves <pedro_alves@portugalmail.pt>
8373 * NEWS: Mention new Windows CE support.
8375 2007-03-30 Pedro Alves <pedro_alves@portugalmail.pt>
8377 * configure.tgt: Move mips*-*-pe and sh*-*-pe to
8378 the obsoletion stanza.
8379 * NEWS: Mention deleted targets.
8381 * config/sh/tm-wince.h: Remove.
8382 * config/sh/wince.mt: Remove.
8383 * config/mips/tm-wince.h: Remove.
8384 * config/mips/wince.mt: Remove.
8387 * wince-stub.c: Remove.
8388 * wince-stub.h: Remove.
8389 * Makefile.in (wince.o): Remove rule.
8390 (wince-stub.o): Likewise.
8392 * mips-tdep.c (mips_next_pc): Make static.
8393 * mips-tdep.h (mips_next_pc): Remove declaration.
8394 * arm-tdep.c (arm_pc_is_thumb): Make static.
8395 (thumb_get_next_pc): Likewise.
8396 (arm_get_next_pc): Likewise.
8397 * arm-tdep.h (arm_pc_is_thumb_dummy): Remove declaration.
8398 (arm_pc_is_thumb): Likewise.
8399 (thumb_get_next_pc): Likewise.
8400 (arm_get_next_pc): Likewise.
8402 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
8404 * MAINTAINERS: Remove d10v entry.
8405 * Makefile.in (SFILES): Remove dwarfread.c.
8406 (COMMON_OBS): Remove dwarfread.o.
8407 (gdb_sim_d10v_h, abug-rom.o, cpu32bug-rom.o, d10v-tdep.o, dwarfread.o)
8408 (remote-est.o, rom68k-rom.o): Delete.
8409 * NEWS: Mention removal of d10v, target abug, target cpu32bug,
8410 target est, target rom68k, and DWARF 1.
8411 * configure.tgt: Mark d10v as removed.
8412 * dwarf2read.c: Doc update.
8413 * elfread.c (struct elfinfo): Remove dboffset, dbsize, lnoffset,
8415 (elf_locate_sections): Do not set them.
8416 (elf_symfile_read): Do not call dwarf_build_psymtabs.
8417 * symfile.h (dwarf_build_psymtabs): Delete prototype.
8418 * config/m68k/monitor.mt (TDEPFILES): Prune.
8419 * abug-rom.c, cpu32bug-rom.c, d10v-tdep.c, dwarfread.c,
8420 remote-est.c, rom68k-rom.c, config/d10v/d10v.mt: Delete.
8422 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
8424 * doublest.c (convert_floatformat_to_doublest): Use
8425 floatformat_classify.
8426 (floatformat_is_nan): Rename to...
8427 (floatformat_classify): ...this. Return more information.
8428 * doublest.h (enum float_kind): New.
8429 (floatformat_is_nan): Replace prototype...
8430 (floatformat_classify): ...with this one.
8431 * valprint.c (print_floating): Use floatformat_classify. Handle
8434 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
8436 * README: Mention ISO C library requirement.
8438 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
8440 * Makefile.in (SFILES): Remove nlmread.c.
8441 (COMMON_OBS): Remove nlmread.o.
8442 (nlmread.o): Delete rule.
8443 * README: Delete reference to remote-st.c.
8444 * acinclude.m4 (CY_AC_TCL_LYNX_POSIX): Delete.
8445 * defs.h (enum gdb_osabi): Delete GDB_OSABI_NETWARE and
8447 * i386-tdep.c (i386_nw_init_abi, i386_nlm_osabi_sniffer): Delete.
8448 (_initialize_i386_tdep): Do not reference them.
8449 * nlmread.c: Delete file.
8450 * osabi.c (gdb_osabi_names): Remove NetWare and LynxOS.
8451 * target.c: Doc update.
8452 * thread.c: Delete commented include.
8453 * config/alpha/tm-alpha.h: Doc update.
8455 2007-03-30 Chris Dearman <chris@mips.com>
8457 * utils.c (string_to_core_addr): Comment typo.
8459 2007-03-30 Chris Dearman <chris@mips.com>
8461 * mips-tdep.c: Comment typo.
8463 2007-03-29 Ulrich Weigand <uweigand@de.ibm.com>
8465 * config/alpha/nm-osf.h (PTRACE_XFER_TYPE): Remove.
8466 * config/mips/nm-linux.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Remove.
8467 * config/sparc/nm-linux.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Remove.
8468 * config/powerpc/nm-ppc64-linux.h: Remove file.
8469 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Set to nm-linux.h.
8470 * inferior.h (PTRACE_ARG3_TYPE): Do not define.
8471 (call_ptrace): Change type of third argument to PTRACE_TYPE_ARG3.
8472 * infptrace.c (call_ptrace): Likewise.
8473 * m68klinux-nat.c (PTRACE_XFER_TYPE): Do not define.
8474 (fetch_register): Replace PTRACE_ARG3_TYPE by PTRACE_TYPE_ARG3
8475 and PTRACE_XFER_TYPE by PTRACE_TYPE_RET.
8476 (store_register): Likewise.
8478 2007-03-29 Joel Brobecker <brobecker@adacore.com>
8480 * Makefile.in (varobj.o): Add missing dependency.
8482 2007-03-29 Michael Snyder <msnyder@access-company.com>
8484 * MAINTAINERS: Update my email address.
8486 2007-03-29 Joel Brobecker <brobecker@adacore.com>
8488 Add support for exception handling with multiple versions of
8490 * ada-lang.c: Update general comments on how Ada exception catchpoints
8492 (raise_sym_name, raise_unhandled_sym_name, raise_assert_sym_name)
8493 (__gnat_raise_nodefer_with_msg): Delete.
8494 (ada_unhandled_exception_name_addr_ftype): New type.
8495 (exception_support_info): New type.
8496 (ada_unhandled_exception_name_addr): Add forward declaration.
8497 (ada_unhandled_exception_name_addr_from_raise): Likewise.
8498 (default_exception_support_info): New constant.
8499 (exception_support_info_fallback): Likewise.
8500 (exception_info): New global variable.
8501 (ada_exception_support_info_sniffer): New function.
8502 (ada_executable_changed_observer): Likewise.
8503 (ada_unhandled_exception_name_addr_from_raise): Renamed from
8504 ada_unhandled_exception_name_addr.
8505 (ada_unhandled_exception_name_addr): Reimplement to match the
8506 latest Ada runtime implementation.
8507 (error_breakpoint_runtime_sym_not_found): Delete.
8508 (ada_exception_sym_name): Get the exception sym name from
8509 exception_info rather than hardcoding it.
8510 (ada_exception_sal): Add call to ada_exception_support_info_sniffer.
8511 Update error handling.
8512 * Makefile.in (ada-lang.o): Add dependency on observer.h.
8514 2007-03-29 Daniel Jacobowitz <dan@codesourcery.com>
8516 * Makefile.in (coff_solib_h, coff-solib.o, i386v-nat.o, lynx-nat.o)
8517 (remote-st.o, uw-thread.o): Delete.
8518 (HFILES_NO_SRCDIR, ALLDEPFILES): Update.
8519 * configure.host: Move hppa*-*-hiux*, i[34567]86-ncr-*,
8520 i[34567]86-*-dgux*, i[34567]86-*-lynxos*, i[34567]86-*-sco3.2v5*,
8521 i[34567]86-*-sco3.2v4*, i[34567]86-*-sco*, i[34567]86-*-sysv4.2*,
8522 i[34567]86-*-sysv4*, i[34567]86-*-sysv5*, i[34567]86-*-unixware2*,
8523 i[34567]86-*-unixware*, i[34567]86-*-sysv*, i[34567]86-*-isc*, and
8524 rs6000-*-lynxos* to an obsoletion stanza.
8525 * configure.tgt: Move hppa*-*-hiux*, i[34567]86-ncr-*,
8526 i[34567]86-*-lynxos*, m68*-cisco*-*, m68*-tandem-*, m68*-*-os68k*,
8527 and rs6000-*-lynxos* to an obsoletion stanza. Do not mention
8528 i[34567]86-*-netware*.
8529 * NEWS: Mention deleted targets.
8531 * coff-solib.c, coff-solib.h, i386v-nat.c, lynx-nat.c, remote-st.c,
8532 uw-thread.c, config/nm-lynx.h, config/i386/i386sco.mh,
8533 config/i386/i386sco4.mh, config/i386/i386sco5.mh, config/i386/i386v.mh,
8534 config/i386/i386v4.mh, config/i386/i386v42mp.mh,
8535 config/i386/ncr3000.mh, config/i386/ncr3000.mt,
8536 config/i386/nm-i386sco.h, config/i386/nm-i386sco4.h,
8537 config/i386/nm-i386sco5.h, config/i386/nm-i386v.h,
8538 config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h,
8539 config/m68k/cisco.mt, config/m68k/os68k.mt, config/m68k/st2000.mt,
8540 config/m68k/tm-cisco.h, config/m68k/tm-os68k.h,
8541 config/rs6000/rs6000lynx.mh, config/rs6000/rs6000lynx.mt,
8542 config/rs6000/tm-rs6000ly.h: Delete files.
8544 2007-03-29 Daniel Jacobowitz <dan@codesourcery.com>
8546 * defs.h (deprecated_registers_changed_hook): Delete declaration.
8547 * interps.c (clear_interpreter_hooks): Do not clear
8548 deprecated_registers_changed_hook.
8549 * regcache.c (registers_changed): Do not call it.
8550 * top.c (deprecated_registers_changed_hook): Do not define it.
8551 * mi/mi-interp.c (mi_command_loop): Do not clear it.
8552 * tui/tui-hooks.c (tui_install_hooks): Do not install it.
8553 (tui_remove_hooks): Do not remove it.
8554 (tui_selected_frame_level_changed_hook): Check for negative level.
8555 Use get_selected_frame.
8556 (tui_registers_changed_hook): Deleted.
8558 2007-03-29 Joel Brobecker <brobecker@adacore.com>
8560 * stabsread.c (add_undefined_type): Add extra parameter.
8561 Now handles nameless types separately.
8562 (struct nat): New type.
8563 (noname_undefs, noname_undefs_allocated, noname_undefs_length):
8564 New static variables.
8565 (read_type): Update calls to add_undefined_type.
8566 (add_undefined_type_noname): New function.
8567 (add_undefined_type_1): Renames from add_undefined_type.
8568 (cleanup_undefined_types_noname): New function.
8569 (cleanup_undefined_types_1): Renames cleanup_undefined_types.
8570 (cleanup_undefined_types): New handles nameless types separately.
8571 (_initialize_stabsread): Initialize our new static constants.
8573 2007-03-29 Denis Pilat <denis.pilat@st.com>
8575 * configure.ac: Test for signal.h.
8576 * configure, config.in: Regenerate.
8578 2007-03-29 Denis Pilat <denis.pilat@st.com>
8580 * stack.c (print_stack_frame): Always use LOC_AND_ADDRESS in MI output.
8581 * infrun.c (normal_stop): Remove MI specific frame printing treatment.
8583 2007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
8585 * arm-wince-tdep.c: New.
8586 * config/arm/wince.mt (DEPRECATED_TM_FILE): Use tm-arm.h.
8587 (MT_CFLAGS): Delete.
8589 (TDEPFILES): Add arm-wince-tdep.o, corelow.o, solib.o,
8590 solib-legacy.o, solib-svr4.o, and remove wince.o.
8591 * configure.tgt (arm*-*-mingw32ce*): Add.
8592 * signals/signals.c [HAVE_SIGNAL_H]: Check.
8593 (do_target_signal_to_host): Silence 'not used' warning.
8594 * config/arm/tm-wince.h: Remove.
8596 2007-03-28 Ulrich Weigand <uweigand@de.ibm.com>
8598 * arch-utils.c (legacy_pc_in_sigtramp): Remove.
8599 * arch-utils.h (legacy_pc_in_sigtramp): Remove.
8601 * config/ia64/linux.mt (DEPRECATED_TM_FILE): Remove.
8602 * config/ia64/tm-linux.h: Remove file.
8603 * ia64-tdep.h (struct gdbarch_tdep): Add pc_in_sigtramp callback.
8604 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Use it instead of
8605 legacy_pc_in_sigtramp.
8606 (ia64_gdbarch_init): Initialize tdep->pc_in_sigtramp.
8607 * ia64-linux-tdep.c (ia64_linux_pc_in_sigtramp): Make static.
8608 Remove func_name argument.
8609 (ia64_linux_init_abi): Install it as tdep->pc_in_sigtramp.
8611 * infrun.c (HAVE_STEPPABLE_WATCHPOINT): Do not redefine.
8612 * target.c (update_current_target): Add to_have_steppable_watchpoint.
8613 * target.h (struct target_ops): Add to_have_steppable_watchpoint.
8614 (HAVE_STEPPABLE_WATCHPOINT): Define.
8616 * config/ia64/linux.mh (NATDEPFILES): Remove core-aout.o.
8617 * config/ia64/nm-linux.h (KERNEL_U_ADDR, U_REGS_OFFSET,
8618 CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER,
8619 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_STEPPABLE_WATCHPOINT,
8620 STOPPED_BY_WATCHPOINT, target_stopped_data_address,
8621 target_insert_watchpoint, target_remove_watchpoint): Remove.
8622 (FETCH_INFERIOR_REGISTERS): Define.
8623 * ia64-linux-nat.c (ia64_register_addr): Make static.
8624 (ia64_cannot_fetch_register, ia64_cannot_store_register): Likewise.
8625 (ia64_linux_insert_watchpoint): Make static. Remove ptid_p argument.
8626 (ia64_linux_remove_watchpoint): Likewise. Add type argument.
8627 (ia64_linux_stopped_data_address): Make static. Add target_ops.
8628 (ia64_linux_stopped_by_watchpoint): Make static.
8629 (ia64_linux_can_use_hw_breakpoint): New function.
8630 (ia64_linux_fetch_register, ia64_linux_fetch_registers): Likewise.
8631 (ia64_linux_store_register, ia64_linux_store_registers): Likewise.
8632 (_initialize_ia64_linux_nat): Install register and watchpoint ops.
8634 2007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
8636 * linespec.c: Include language.h.
8637 (find_methods): Add language parameter. Call
8638 lookup_symbol_in_language. Pass language down.
8639 (add_matching_methods): Likewise. Call
8640 lookup_symbol_in_language.
8641 (add_constructors): Likewise.
8642 (find_method): Pass sym_class to collect_methods.
8643 (collect_methods): Add sym_class parameter. Pass language
8645 * symtab.c (lookup_symbol): Rename to ...
8646 (lookup_symbol_in_language): ... this. Add language
8647 parameter. Use passed language instead of current_language.
8648 (lookup_symbol): New as wrapper around
8649 lookup_symbol_in_language.
8650 (lookup_symbol_aux): Add language parameter. Use passed
8651 language instead of current_language.
8652 (search_symbols): Indent.
8653 * symtab.h (enum language): Forward declare.
8654 (lookup_symbol_in_language): Declare.
8655 (lookup_symbol): Update description.
8656 * ada-lang.h (lookup_symbol_in_language): Remove declaration.
8657 * ada-lang.c (restore_language): Remove.
8658 (lookup_symbol_in_language): Remove.
8660 2007-03-27 Pedro Alves <pedro_alves@portugalmail.pt>
8662 * breakpoint.c (bpstat_num): Add int *num parameter.
8663 * breakpoint.h (bpstat_num): Likewise.
8664 * infcmd.c (continue_command): Adjust to new bpstat_num
8666 (program_info): Likewise.
8668 2007-03-27 Ulrich Weigand <uweigand@de.ibm.com>
8670 * config/sh/tm-sh.h: Remove file.
8671 * config/sh/embed.mt (DEPRECATED_TM_FILE): Remove.
8672 * config/sh/linux.mt (DEPRECATED_TM_FILE): Remove.
8673 * config/sh/nbsd.mt (DEPRECATED_TM_FILE): Remove.
8674 * config/sh/tm-wince.h: Do not include "sh/tm-sh.h".
8676 2007-03-27 Ulrich Weigand <uweigand@de.ibm.com>
8678 * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT,
8679 DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Remove.
8680 * remote.c: Remove code under #ifdef DEPRECATED_REMOTE_BREAKPOINT,
8681 DEPRECATED_BIG_REMOTE_BREAKPOINT, DEPRECATED_LITTLE_REMOTE_BREAKPOINT.
8682 * sh-tdep.c (sh_breakpoint_from_pc): Return remote breakpoint
8683 sequence if target_shortname is "remote".
8685 2007-03-27 Anton Blanchard <anton@samba.org>
8687 * rs6000-tdep.c (rs6000_frame_cache): Use tdep->lr_frame_offset
8688 instead of wordsize when looking for the LR in a stack frame.
8690 2007-03-27 Andreas Schwab <schwab@suse.de>
8691 Daniel Jacobowitz <dan@codesourcery.com>
8693 * dwarf2-frame.c (dwarf2_frame_eh_frame_regnum): Rename to...
8694 (dwarf2_frame_adjust_regnum): ...this. Make static. Add eh_frame_p
8695 argument. Update all callers.
8696 (struct dwarf2_frame_ops): Replace eh_frame_regnum with adjust_regnum.
8697 (dwarf2_frame_set_eh_frame_regnum): Rename to...
8698 (dwarf2_frame_set_adjust_regnum): ...this. Update argument type.
8699 * dwarf2frame.h (dwarf2_frame_set_eh_frame_regnum): Rename to...
8700 (dwarf2_frame_set_adjust_regnum): ...this.
8701 (dwarf2_frame_eh_frame_regnum): Delete prototype.
8702 * rs6000-tdep.c: Include "dwarf2-frame.h".
8703 (rs6000_adjust_frame_regnum): Define.
8704 (rs6000_gdbarch_init): Enable use of DWARF CFI frame unwinder.
8705 Register rs6000_adjust_frame_regnum.
8707 * Makefile.in (rs6000-tdep.o): Update dependencies.
8709 2007-03-27 Brooks Moses <brooks.moses@codesourcery.com>
8711 * Makefile.in: Add support for a "pdf" target.
8713 2007-03-27 Daniel Jacobowitz <dan@codesourcery.com>
8715 * amd64-tdep.c (amd64_init_frame_cache): New function.
8716 (amd64_alloc_frame_cache, amd64_skip_prologue): Use it.
8718 2007-03-26 Nigel Stephens <nigel@mips.com>
8719 Maciej W. Rozycki <macro@mips.com>
8721 * ui-out.c (ui_out_field_core_addr): Truncate address to
8722 TARGET_ADDR_BIT size before printing.
8724 2007-03-22 Nigel Stephens <nigel@mips.com>
8725 Maciej W. Rozycki <macro@mips.com>
8727 * remote-mips.c (mips_xfer_memory): Update prototype.
8729 2007-03-22 Joel Brobecker <brobecker@adacore.com>
8731 * symfile.h: #include "symtab.h"
8733 2007-03-22 Denis Pilat <denis.pilat@st.com>
8735 * utils.c (pagination_on_command, pagination_off_command):
8736 Remove useless prototypes.
8738 2007-03-21 Pierre Muller <muller@ics.u-strasbg.fr>
8741 * p-valprint.c (pascal_object_print_value): Use type_name_no_tag
8742 instead of TYPE_NAME for object base class name.
8745 2007-03-19 Kevin Buettner <kevinb@redhat.com>
8747 * mep-tdep.c (mep_analyze_frame_prologue, mep_frame_this_id):
8748 Specify frame type in calls to frame_func_unwind().
8750 2007-03-13 Daniel Jacobowitz <dan@codesourcery.com>
8752 * rs6000-tdep.c (rs6000_skip_prologue): Use skip_prologue_using_sal.
8753 (rs6000_in_function_epilogue_p): Use extract_unsigned_integer.
8754 (refine_prologue_limit): Delete.
8755 (skip_prologue): Don't call it. Use extract_unsigned_integer.
8756 Assume lim_pc is set. Correct check for incomplete prologues.
8757 Do not skip clobbers of the frame pointer.
8758 * symtab.c (skip_prologue_using_sal): Fail if there is only one
8761 2007-03-13 Nathan Froyd <froydnj@codesourcery.com>
8763 * frame.c (frame_pop): Check to see whether there's a frame to
8764 which we can pop first.
8766 2007-03-13 Nathan Froyd <froydnj@codesourcery.com>
8768 * MAINTAINERS (Write After Approval): Add myself.
8770 2007-03-09 Markus Deuling <deuling@de.ibm.com>
8772 * infrun.c (breakpoints_failed): Remove unnecessary variable.
8773 (handle_inferior_event): Remove unnecessary braces.
8774 * breakpoint.c (bpstat_what): Remove wrong comment.
8776 2007-03-09 Ulrich Weigand <uweigand@de.ibm.com>
8778 * spu-tdep.c (spu_in_function_epilogue_p): New function.
8779 (spu_gdbarch_init): Install it.
8781 2007-03-08 Ulrich Weigand <uweigand@de.ibm.com>
8783 * spu-linux-nat.c (spu_xfer_partial): Return -1 for unsupported
8784 object types, not 0.
8786 2007-03-08 Ulrich Weigand <uweigand@de.ibm.com>
8788 * spu-tdep.c (spu_frame_align): New function.
8789 (spu_gdbarch_init): Install it. Set call dummy location to ON_STACK.
8791 2007-03-08 Ulrich Weigand <uweigand@de.ibm.com>
8793 * spu-tdep.c (spu_unwind_pc): Mask off interrupt enable bit.
8794 (spu_software_single_step): Likewise.
8795 (spu_read_pc, spu_write_pc): New functions.
8796 (spu_gdbarch_init): Install them.
8798 2007-03-08 Ulrich Weigand <uweigand@de.ibm.com>
8800 * cli/cli-dump.c (struct callback_data): load_offset needs to
8801 have signed long type.
8803 2007-03-07 Joel Brobecker <brobecker@adacore.com>
8805 * mips-tdep.c (mips_insn16_frame_cache, mips_insn32_frame_sniffer):
8806 Revert the previous change that had some unexpected side-effects
8808 (mips_insn16_frame_cache, mips_insn32_frame_cache): Use the proper
8809 function to get the address of the calling instruction.
8811 2007-03-07 Denis Pilat <denis.pilat@st.com>
8813 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Replace
8814 get_selected_frame by deprecated_safe_get_selected_frame.
8816 2007-03-02 Mark Kettenis <kettenis@gnu.org>
8818 * shnbsd-tdep.c: Include "regset.h", "gdb_assert.h" and
8819 "gdb_string.h". Don't include "nbsd-tdep.h".
8820 (SIZEOF_STRUCT_REG): Remove.
8821 (SHNBSD_SIZEOF_GREGS): New.
8822 (shnbsd_supply_gregset, shnbsd_collect_gregset)
8823 (shnbsd_regset_from_core_section): New functions.
8824 (fetch_core_registers, fetch_elfcore_registers): Remove functions.
8825 (shnbsd_supply_reg, shnbsd_fill_reg): Simply call
8826 shnbsd_supply_gregset, shnbsd_collect_gregset.
8827 (shnbsd_gregset): New variable.
8828 (shnbsd_init_abi): Set regset_from_core_section.
8829 (GDB_OSABI_NETBSD_CORE): New define.
8830 (shnbsd_core_osabi_sniffer): New function.
8831 (_initialize_shnbsd_tdep): Register shnbsd_core_osabi_sniffer.
8832 * Makefile.in (shnbsd-tdep.o): Update dependencies.
8833 * config/sh/nbsd.mt (TDEPFILES): Add corelow.o, remove
8835 * config/sh/obsd.mt (TDEPFILES): Remove nbsd-tdep.o.
8837 2007-02-28 Joel Brobecker <brobecker@adacore.com>
8839 * gdbtypes.c (replace_type): Fix typo that caused us to not update
8840 length of the types referenced by the new type CV ring.
8842 2007-02-28 Daniel Jacobowitz <dan@codesourcery.com>
8844 * frame.c (frame_pop, frame_observer_target_changed): Call
8846 (flush_cached_frames): Rename to reinit_frame_cache and delete
8848 * frame.h (flush_cached_frames): Delete prototype and update comment.
8850 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd): Call
8851 reinit_frame_cache instead of flush_cached_frames. Do not call
8852 select_frame after reinit_frame_cache.
8853 * corelow.c (core_open): Likewise.
8854 * gdbarch.sh (deprecated_current_gdbarch_select_hack): Likewise.
8855 * infrun.c (prepare_to_proceed, context_switch)
8856 (handle_inferior_event): Likewise.
8857 * linux-fork.c (fork_load_infrun_state): Likewise.
8858 * ocd.c (ocd_start_remote): Likewise.
8859 * remote-e7000.c (e7000_start_remote): Likewise.
8860 * remote-mips.c (device): Likewise.
8861 * thread.c (switch_to_thread): Likewise.
8862 * tracepoint.c (finish_tfind_command): Likewise.
8863 * gdbarch.c: Regenerated.
8865 2007-02-28 Jerome Guitton <guitton@adacore.com>
8866 Joel Brobecker <brobecker@adacore.com>
8868 * gdbtypes.c (check_typedef): Do not replace stub type if
8869 the resolved type is not defined in the same objfile.
8871 2007-02-28 Daniel Jacobowitz <dan@codesourcery.com>
8873 * top.c (gdb_readline_wrapper_cleanup): Remove invalid assertion.
8875 2007-02-28 Joel Brobecker <brobecker@adacore.com>
8877 * stabsread.c (define_symbol): Create an associated STRUCT_DOMAIN
8878 symbol for Ada units when the symbol is defined using 't' rather
8879 than 'Tt' as symbol descriptor.
8881 2007-02-28 Ulrich Weigand <uweigand@de.ibm.com>
8883 * config/mips/tm-nbsd.h: Delete file.
8884 * config/mips/nbsd.mt (DEPRECATED_TM_FILE): Remove.
8885 * config/sh/tm-nbsd.h: Delete file.
8886 * config/sh/nbsd.mt (DEPRECATED_TM_FILE): Set to tm-sh.h.
8888 2007-02-28 Joel Brobecker <brobecker@adacore.com>
8890 * mi/mi-cmd-var.c (varobj_update_one): Remove reference to
8891 unused WRONG_PARAM value since it was recently deleted.
8893 2007-02-28 Vladimir Prus <vladimir@codesourcery.com>
8895 * varobj.c (varobj_update): Free temporary vectors.
8897 2007-02-28 Ulrich Weigand <uweigand@de.ibm.com>
8899 * config/powerpc/linux.mt (DEPRECATED_TM_FILE): Set to tm-ppc-eabi.h.
8900 * config/powerpc/tm-linux.h: Delete file.
8901 * config/powerpc/tm-ppc-eabi.h: Do not include "rs6000/tm-rs6000.h".
8902 (PROCESS_LINENUMBER_HOOK): Do not undefine.
8903 (TEXT_SEGMENT_BASE): Do not redefine.
8904 * config/rs6000/nm-rs6000.h (CHILD_SPECIAL_WAITSTATUS): Move here
8905 from config/rs6000/tm-rs6000.h.
8906 (TARGET_CREATE_INFERIOR_HOOK, rs6000_create_inferior): Likewise.
8907 * config/rs6000/tm-rs6000.h (struct frame_info): Remove declaration.
8908 (TEXT_SEGMENT_BASE): Remove.
8909 (IN_SOLIB_RETURN_TRAMPOLINE): Remove.
8910 (rs6000_in_solib_return_trampoline): Remove.
8911 (SKIP_TRAMPOLINE_CODE): Remove.
8912 (rs6000_skip_trampoline_code): Remove.
8913 (CHILD_SPECIAL_WAITSTATUS): Move to config/rs6000/nm-rs6000.h.
8914 (TARGET_CREATE_INFERIOR_HOOK, rs6000_create_inferior): Likewise.
8915 (FP0_REGNUM): Remove.
8916 (rs6000_find_toc_address_hook): Move to rs6000-tdep.h.
8917 (rs6000_set_host_arch_hook): Remove.
8918 * Makefile.in (rs6000-nat.o): Add dependency on $(rs6000_tdep_h).
8919 (rs6000-aix-tdep.o): Add dependency on $(ppc_tdep_h).
8920 * ppc-tdep.h (struct gdbarch_tdep): Add field text_segment_base.
8921 * rs6000-aix-tdep.c: Include "ppc-tdep.h".
8922 (rs6000_aix_init_osabi): Set text_segment_base tdep field.
8923 * rs6000-nat.c: Include "rs6000-tdep.h".
8924 (exec_one_dummy_insn): Replace TEXT_SEGMENT_BASE by tdep field.
8925 (set_host_arch): Rename to ...
8926 (rs6000_create_inferior): ... this. Make public.
8927 (_initialize_core_rs6000): Do not set rs6000_set_host_arch_hook.
8928 * rs6000-tdep.c (rs6000_set_host_arch_hook): Remove.
8929 (rs6000_create_inferior): Remove.
8930 (branch_dest): Replace TEXT_SEGMENT_BASE by tdep field.
8931 (rs6000_gdbarch_init): Call set_gdbarch_fp0_regnum,
8932 set_gdbarch_in_solib_return_trampoline, and
8933 set_gdbarch_skip_trampoline_code.
8934 * rs6000-tdep.h (rs6000_find_toc_address_hook): Move here
8935 from config/rs6000/tm-rs6000.h.
8937 2007-02-27 Joel Brobecker <brobecker@adacore.com>
8939 * buildsym.c (record_producer): Do nothing if no producer is provided.
8941 2007-02-27 Nick Roberts <nickrob@snap.net.nz>
8943 * varobj.c (varobj_update): Remove unused local. Use gdb_assert
8944 to check changelist is non-NULL. Call error if the frontend tries
8945 to update a non-root variable.
8947 * varobj.h (enum varobj_update_error): Delete WRONG_PARAM value.
8949 2007-02-27 Daniel Jacobowitz <dan@codesourcery.com>
8951 * dwarf2-frame.c (dwarf2_frame_cache, dwarf2_frame_this_id)
8952 (dwarf2_frame_sniffer): Update.
8953 (dwarf2_signal_frame_this_id): New function.
8954 (dwarf2_signal_frame_unwind): Use it.
8955 (dwarf2_frame_base_sniffer): Use frame_unwind_address_in_block.
8956 * frame.c (frame_func_unwind): Add this_type argument.
8957 (get_frame_func): Update.
8958 (frame_unwind_address_in_block): Add this_type argument and check it.
8960 (get_frame_address_in_block): Update.
8961 * frame.h (enum frame_type): Move higher in the file.
8962 (frame_unwind_address_in_block, frame_func_unwind): Add enum frame_type
8965 * alpha-mdebug-tdep.c, alpha-tdep.c, amd64-tdep.c, amd64obsd-tdep.c,
8966 arm-tdep.c, avr-tdep.c, cris-tdep.c, frv-tdep.c, h8300-tdep.c,
8967 hppa-tdep.c, i386-tdep.c, i386obsd-tdep.c, ia64-tdep.c,
8968 libunwind-frame.c, m32c-tdep.c, m32r-linux-tdep.c, m32r-tdep.c,
8969 m68hc11-tdep.c, m68k-tdep.c, m88k-tdep.c, mips-mdebug-tdep.c,
8970 mips-tdep.c, mn10300-tdep.c, mt-tdep.c, rs6000-tdep.c, s390-tdep.c,
8971 score-tdep.c, sh-tdep.c, sh64-tdep.c, sparc-tdep.c,
8972 sparc64obsd-tdep.c, spu-tdep.c, v850-tdep.c, vax-tdep.c,
8973 xstormy16-tdep.c, xtensa-tdep.c: Update calls to
8974 frame_func_unwind and frame_unwind_address_in_block to specify
8975 the frame type. Use frame_unwind_address_in_block instead of
8976 frame_pc_unwind in sniffers.
8978 2007-02-27 Daniel Jacobowitz <dan@codesourcery.com>
8980 * frame.c (deprecated_selected_frame): Rename to...
8981 (selected_frame): ...this. Make static.
8982 (get_selected_frame, select_frame): Update.
8983 * frame.h (deprected_select_frame): Delete.
8984 (deprecated_safe_get_selected_frame): Update comments.
8986 * breakpoint.c, cli/cli-cmds.c, f-valprint.c, infcmd.c, inflow.c,
8987 infrun.c, stack.c, tui/tui-disasm.c, tui/tui-source.c,
8988 tui/tui-winsource.c, valops.c, varobj.c, findvar.c, macroscope.c,
8989 parse.c, regcache.h, sh64-tdep.c, tui/tui-hooks.c, tui/tui-win.c,
8990 tui/tui.c: Replace references to deprecated_selected_frame.
8992 2007-02-27 Fred Fish <fnf@specifix.com>
8994 * rs6000-tdep.c (skip_prologue): Recognize addi instructions that
8995 directly decrement the stack pointer, accumulate their operand into
8996 the stack offset, and mark the function as not being frameless.
8998 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
9000 * arch-utils.c (selected_byte_order): New.
9001 * arch-utils.h (selected_byte_order): New prototype.
9002 * remote-sim.c (gdbsim_open): Use selected_byte_order.
9004 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
9006 * symfile.c (place_section): Check SEC_ALLOC. Do not check VMA.
9007 (default_symfile_offsets): Check VMA here. Update section VMAs.
9009 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
9011 * remote.c (init_remote_state): Add special handling for placeholder
9014 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
9016 * Makefile.in (XMLFILES): Include $(TDEP_XML).
9017 (filenames_h): New variable.
9018 (clean): Clean up xml-builtin.c and stamp-xml.
9019 (arm-linux-nat.o): Update.
9020 * config/arm/linux.mh (TDEP_XML): Define.
9021 * arm-linux-nat.c (PTRACE_GETWMMXREGS, PTRACE_SETWMMXREGS): Define.
9022 (arm_linux_has_wmmx_registers): New.
9023 (GET_THREAD_ID): Fix typo.
9024 (IWMMXT_REGS_SIZE): Define.
9025 (fetch_wmmx_regs, store_wmmx_regs): New.
9026 (arm_linux_fetch_inferior_registers): Use fetch_wmmx_regs.
9027 (arm_linux_store_inferior_registers): Use store_wmmx_regs.
9028 (super_xfer_partial, arm_linux_xfer_partial): New.
9029 (_initialize_arm_linux_nat): Use them.
9030 * xml-support.c (fetch_xml_builtin): Move outside HAVE_LIBEXPAT.
9031 (xml_builtin_xfer_partial): New function.
9032 * xml-support.h (xml_builtin_xfer_partial): New prototype.
9033 * NEWS: Update mention of iWMMXt support.
9035 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
9037 * arm-tdep.c (arm_scan_prologue): Do not record FPA register saves
9038 if there are no FPA registers.
9039 (arm_dwarf_reg_to_regnum): New function.
9040 (arm_register_type, arm_register_name): Return minimal values for
9041 unsupported registers.
9042 (arm_register_sim_regno): Handle iWMMXt registers.
9043 (arm_gdbarch_init): Record missing FPA registers if indicated by
9044 a target description. Recognize iWMMXt registers. Only register
9045 "info float" for FPA. Use ARM_NUM_REGS. Register
9046 arm_dwarf_reg_to_regnum.
9047 * arm-tdep.h (enum gdb_regnum): Add ARM_NUM_REGS and iWMMXt
9049 (struct gdbarch_tdep): Add have_fpa_registers.
9050 * features/xscale-iwmmxt.xml: Update capitalization.
9051 * regformats/arm-with-iwmmxt.dat: Regenerated.
9053 2007-02-24 Kevin Buettner <kevinb@redhat.com>
9055 * NEWS (New targets): Add entry for the Toshiba Media Processor.
9057 2007-02-23 Kevin Buettner <kevinb@redhat.com>
9059 * MAINTAINERS (mep): New target.
9061 2007-02-23 Kevin Buettner <kevinb@redhat.com>
9063 From Jim Blandy, Dave Brolley, Kevin Buettner, Don Howard, and
9065 * Makefile.in (elf_mep_h, mep_desc_h, mep_opc_h): New variables.
9066 (mep-tdep.o): New rule.
9067 * configure.tgt (mep-*-*): New target.
9068 * mep-tdep.c: New file.
9069 * config/mep/mep.mt: New file.
9071 2007-02-22 Markus Deuling <deuling@de.ibm.com>
9073 * infrun.c (inferior_stop_reason, print_stop_reason): Remove
9074 BREAKPOINT_HIT and STOP_UNKNOWN.
9076 2007-02-22 Markus Deuling <deuling@de.ibm.com>
9078 * valops.c (value_ind): Fix unary * handling of TYPE_CODE_INT.
9080 2007-02-20 Joel Brobecker <brobecker@adacore.com>
9082 * gdb_expat.h (XMLCALL): Define if not already defined.
9084 2007-02-20 Andreas Schwab <schwab@suse.de>
9086 * Makefile.in (symfile.o): Update dependencies.
9088 2007-02-20 Daniel Jacobowitz <dan@codesourcery.com>
9090 * MAINTAINERS: Disable -Werror for cris simulator. Build
9091 sparc64-solaris2.10 instead of the broken sparc-elf.
9092 * solib-frv.c: Include "solib.h".
9093 * Makefile.in (solib-frv.o): Update.
9094 * mt-tdep.c (mt_gdbarch_init): Correct typo in floatformats patch.
9095 * xtensa-tdep.c (xtensa_regset_from_core_section): Cast size_t to int.
9096 (xtensa_frame_this_id, xtensa_frame_prev_register)
9097 (xtensa_push_dummy_call): Use %p.
9099 2007-02-16 Daniel Jacobowitz <dan@codesourcery.com>
9101 * avr-tdep.c, hppa-tdep.c, hppabsd-tdep.c, i386-tdep.c,
9102 ia64-tdep.c, m68k-tdep.c, mips-linux-tdep.c, ppcobsd-tdep.c,
9103 sparc-linux-tdep.c: Include "gdbtypes.h" instead of "floatformat.h".
9104 * Makefile.in (avr-tdep.o, hppabsd-tdep.o, hppa-tdep.o, i386-tdep.o)
9105 (ia64-tdep.o, m68k-tdep.o, mips-linux-tdep.o, ppcobsd-tdep.o)
9106 (sparc-linux-tdep.o): Update.
9108 2007-02-15 Maxim Grigoriev <maxim2405@gmail.com>
9110 * xtensa-tdep.h (xtensa_reg_mask_t): New.
9111 (xtensa_mask_t): Change mask field to be a separate array.
9112 * xtensa-tdep.c (extract_call_winsize, xtensa_pseudo_register_read)
9113 (xtensa_pseudo_register_write, xtensa_unwind_pc)
9114 (xtensa_unwind_dummy_id, xtensa_push_dummy_call)
9115 (xtensa_breakpoint_from_pc): Remove implicit type casting.
9116 * xtensa-config.c (mask0, mask1, mask2, mask3, mask4, mask5)
9117 (mask6, mask7, mask8, mask9, mask10, mask11, mask12, mask13)
9118 (mask14, mask15): Rename to
9119 (xtensa_mask0, xtensa_mask1, xtensa_mask2, xtensa_mask3)
9120 (xtensa_mask4, xtensa_mask5, xtensa_mask6, xtensa_mask7)
9121 (xtensa_mask8, xtensa_mask9, xtensa_mask10, xtensa_mask11)
9122 (xtensa_mask12, xtensa_mask13, xtensa_mask14, xtensa_mask15): this.
9123 (xtensa_submask0, xtensa_submask1, xtensa_submask2, xtensa_submask3)
9124 (xtensa_submask4, xtensa_submask5, xtensa_submask6, xtensa_submask7)
9125 (xtensa_submask8, xtensa_submask9, xtensa_submask10)
9126 (xtensa_submask11, xtensa_submask12, xtensa_submask13)
9127 (xtensa_submask14, xtensa_submask15): New.
9128 (rmap): Follow strict aliasing rules doing static initialization.
9130 2007-02-13 Daniel Jacobowitz <dan@codesourcery.com>
9132 * target-descriptions.c (tdesc_named_type): Move code_ptr and data_ptr
9133 handling from here...
9134 (tdesc_register_type): ...to here.
9135 * xml-tdesc.c (tdesc_start_reg): Allow code_ptr and data_ptr.
9136 * features/arm-core.xml: Use code_ptr and data_ptr.
9138 2007-02-13 Denis Pilat <denis.pilat@st.com>
9140 * varobj.h (enum varobj_update_error): New enum.
9141 * varobj.c (struct varobj_root): Add is_valid member.
9142 (varobj_get_type): Check for invalid varobj.
9143 (varobj_get_attributes): Likewise.
9144 (variable_editable):Likewise.
9145 (varobj_update): Likewise. Use varobj_update_error.
9146 (new_root_variable): Set root varobj as valid by default.
9147 (varobj_invalidate): New function.
9148 * symfile.c (clear_symtab_users): Use varobj_invalidate.
9149 * mi/mi-cmd-var.c (varobj_update_one): Change return type to void.
9150 Use varobj_update_error.
9152 2007-02-12 Pierre Muller <muller@ics.u-strasbg.fr>
9155 * dwarfread.c (set_cu_language): Recognize DW_LANG_Pascal83 as
9156 Pascal language marker.
9157 * dwarf2read.c (set_cu_language): Likewise.
9159 2007-02-12 Corinna Vinschen <vinschen@redhat.com>
9161 * win32-nat.c (win32_wait): Reset terminal pgrp to GDB.
9162 (do_initial_win32_stuff): Call terminal_init_inferior_with_pgrp
9163 instead of target_terminal_init since inferior_ptid isn't set yet.
9165 2007-02-10 Pedro Alves <pedro_alves@portugalmail.pt>
9167 * MAINTAINERS (Write After Approval): Add myself.
9169 2007-02-09 Fred Fish <fnf@specifix.com>
9171 Based on work by Apple Computer, Inc.
9172 * event-top.c (async_request_quit): Call quit() whenever either
9173 quit_flag is set or immediate_quit is set.
9175 2007-02-09 Gabriel Dos Reis <gdr@integrable-solutions.net>
9177 * ada-lang.c (remove_out_of_scope_renamings): Change third parameter's
9178 type to a pointer to const struct block.
9179 (ada_lookup_symbol_list): Don't cast away constness when calling
9180 remove_out_of_scope_renamings.
9182 2007-02-09 Gabriel Dos Reis <gdr@integrable-solutions.net>
9184 * linux-nat.c (linux_nat_find_memory_regions): Don't check the
9185 address of 'filename'; it is always non null.
9187 2007-02-09 Joel Brobecker <brobecker@adacore.com>
9189 * exec.c (add_to_section_table): Do not discard empty sections.
9191 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
9193 * features/Makefile, features/arm-with-iwmmxt.xml,
9194 features/gdbserver-regs.xsl, features/number-regs.xsl,
9195 features/sort-regs.xsl, features/xscale-iwmmxt.xml: New files.
9196 * regformats/arm-with-iwmmxt.dat: Generate.
9197 * NEWS: Mention iWMMXt.
9199 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
9201 * Makefile.in (arm-tdep.o, eval.o, target-descriptions.o)
9202 (xml-tdesc.o): Update.
9203 * xml-support.c: Add a comment.
9204 (gdb_xml_enums_boolean): New variable.
9205 (gdb_xml_parse_attr_enum): Use strcasecmp.
9206 * xml-support.h (gdb_xml_enums_boolean): Declare.
9207 * xml-tdesc.c (struct tdesc_parsing_data): Record current_feature,
9208 next_regnum, and current_union.
9209 (tdesc_start_feature, tdesc_start_reg, tdesc_start_union)
9210 (tdesc_end_union, tdesc_start_field, tdesc_start_vector)
9211 (field_attributes, union_children, reg_attributes, union_attributes)
9212 (vector_attributes, feature_attributes, feature_children): New.
9213 (target_children): Make static. Add <feature>.
9214 (tdesc_elements): Make static.
9215 * target-descriptions.c (struct tdesc_reg, tdesc_reg_p, type_p)
9216 (struct tdesc_feature, tdesc_feature_p): New types.
9217 (struct target_desc): Add features member.
9218 (struct tdesc_arch_data, tdesc_data): New.
9219 (target_find_description): Clarify error message. Warn about
9220 ignored register descriptions.
9221 (tdesc_has_registers, tdesc_find_feature, tdesc_feature_name)
9222 (tdesc_named_type, tdesc_data_init, tdesc_data_alloc)
9223 (tdesc_data_cleanup, tdesc_numbered_register)
9224 (tdesc_numbered_register_choices, tdesc_find_register)
9225 (tdesc_register_name, tdesc_register_type)
9226 (tdesc_remote_register_number, tdesc_register_reggroup_p)
9227 (set_tdesc_pseudo_register_name, set_tdesc_pseudo_register_type)
9228 (set_tdesc_pseudo_register_reggroup_p, tdesc_use_registers)
9229 (tdesc_free_reg, tdesc_create_reg, tdesc_free_feature)
9230 (tdesc_create_feature, tdesc_record_type): New.
9231 (free_target_description): Free features.
9232 (_initialize_target_descriptions): Initialize tdesc_data.
9233 * arch-utils.c (default_remote_register_number): New.
9234 * arch-utils.h (default_remote_register_number): New prototype.
9235 * target-descriptions.h (set_tdesc_pseudo_register_name)
9236 (set_tdesc_pseudo_register_type, set_tdesc_pseudo_register_reggroup_p)
9237 (tdesc_use_registers, tdesc_data_alloc, tdesc_data_cleanup)
9238 (tdesc_numbered_register, tdesc_numbered_register_choices)
9239 (tdesc_has_registers, tdesc_find_feature, tdesc_feature_name)
9240 (tdesc_named_type, tdesc_create_feature, tdesc_record_type)
9241 (tdesc_create_reg): Declare.
9242 * gdbarch.sh (remote_register_number): New entry.
9243 * gdbarch.c, gdbarch.h: Regenerate.
9244 * remote.c (init_remote_state): Use gdbarch_remote_register_number.
9245 * features/gdb-target.dtd: Add feature, reg, vector, union, and field.
9247 * arm-tdep.c (arm_register_aliases): New.
9248 (arm_register_name_strings): Rename to...
9249 (arm_register_names): ...this. Make const. Delete the old version.
9250 (current_option, arm_register_byte): Delete.
9251 (set_disassembly_style): Simplify. Do not adjust arm_register_names.
9252 (value_of_arm_user_reg): New.
9253 (arm_gdbarch_init): Verify any described registers. Call
9254 tdesc_use_registers. Don't use arm_register_byte. Create aliases
9255 for standard register names.
9256 (_initialize_arm_tdep): Do not adjust arm_register_names.
9257 * user-regs.c (struct user_reg): Add baton member.
9258 (append_user_reg, user_reg_add_builtin, user_regs_init)
9259 (user_reg_add, value_of_user_reg): Use a baton for user
9261 * std-regs.c: Update.
9262 * user-regs.h (user_reg_read_ftype, user_reg_add_builtin)
9263 (user_reg_add): Add baton argument.
9264 * NEWS: Mention target description register support.
9265 * features/arm-core.xml, features/arm-fpa.xml: New.
9266 * eval.c (evaluate_subexp_standard): Allow ptype $register
9267 when the program is not running.
9269 2007-02-09 Nick Roberts <nickrob@snap.net.nz>
9271 * mi/mi-cmd-var.c (mi_cmd_var_create): Add value field.
9273 2007-02-08 Thiago Jung Bauermann <bauerman@br.ibm.com>
9275 * rs6000-tdep.c (gdb_print_insn_powerpc): Set
9276 info->disassembler_options to "any".
9278 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
9280 * varobj.c (install_new_value): Only call value_get_print_value
9283 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
9285 Reported by timeless@gmail.com:
9286 * gdb/target.c (target_flash_erase): Do not return void value.
9287 (target_flash_done): Likewise.
9288 * gdb/cli/cli-cmds.c (source_command): Likewise.
9290 2007-02-08 Fred Fish <fnf@specifix.com>
9292 Based on work by Apple Computer, Inc.
9293 * event-top.c (handle_sigint): Set quit_flag.
9294 (async_request_quit): Don't set quit_flag. Avoid calling quit()
9295 if quit_flag has already been reset.
9297 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
9299 * ser-mingw.c (pipe_windows_close): Move variable initialization back
9302 2007-02-08 Fred Fish <fnf@specifix.com>
9304 * defs.h (request_quit): Remove declaration.
9305 * utils.c (request_quit): Remove definition.
9307 2007-02-08 Joel Brobecker <brobecker@gnat.com>
9308 Jan Kratochvil <jan.kratochvil@redhat.com>
9309 Daniel Jacobowitz <dan@codesourcery.com>
9311 * rs6000-tdep.c (bl_to_blrl_insn_p): New function.
9312 (skip_prologue): Allow bl->blrl used by PIC code.
9314 2007-02-08 Mark Kettenis <kettenis@gnu.org>
9315 Daniel Jacobowitz <dan@codesourcery.com>
9317 * cp-valprint.c (cp_print_value_fields, cp_print_value): Always
9318 initialize tmp_obstack.
9319 * p-valprint.c (pascal_object_print_value_fields)
9320 (pascal_object_print_value): Likewise.
9322 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
9324 * features/feature_to_c.sh: Use %s to avoid problems with nawk.
9326 2007-02-08 Mark Kettenis <kettenis@gnu.org>
9328 * sparcnbsd-tdep.c: Include "gdbtypes.h" instead of "floatformat.h".
9329 * Makefile.in (sparcnbsd-tdep.o): Update dependencies.
9331 2007-02-07 Daniel Jacobowitz <dan@codesourcery.com>
9333 * xml-tdesc.c (struct tdesc_xml_cache, tdesc_xml_cache_s)
9335 (tdesc_parse_xml): Cache expanded descriptions.
9337 2007-02-07 Daniel Jacobowitz <dan@codesourcery.com>
9339 * Makefile.in (XMLFILES): New.
9340 (COMMON_OBS): Add xml-builtin.o.
9341 (xml-builtin.c, stamp-xml): New rules.
9342 (xml-tdesc.o): Update.
9343 * features/feature_to_c.sh: New file.
9344 * xml-support.c (MAX_XINCLUDE_DEPTH): Define.
9345 (struct gdb_xml_parser): Add dtd_name and is_xinclude.
9346 (gdb_xml_start_element): Initialize scope after possibly reallocating
9347 scopes. Move cleanup later. Handle the XInclude description
9349 (gdb_xml_end_element): Only parse the body if there is a current element.
9350 Call XML_DefaultCurrent if there is no element.
9351 (gdb_xml_fetch_external_entity, gdb_xml_use_dtd): New.
9352 (struct xinclude_parsing_data, xinclude_start_include)
9353 (xinclude_end_include, xml_xinclude_default)
9354 (xml_xinclude_start_doctype, xml_xinclude_end_doctype)
9355 (xml_xinclude_xml_decl, xml_xinclude_cleanup, xinclude_attributes)
9356 (xinclude_elements, xml_process_xincludes, fetch_xml_builtin): New.
9357 * xml-support.h (xml_fetch_another, xml_process_xincludes)
9358 (fetch_xml_builtin, xml_builtin, gdb_xml_use_dtd): New declarations.
9359 * xml-tdesc.c (tdesc_parse_xml): Add fetcher_baton argument. Expand
9360 XInclude directives. Use the compiled in DTD.
9361 (fetch_xml_from_file): Add baton argument. Treat it as a containing
9362 directory name. Do not warn here.
9363 (file_read_description_xml): Update call. Warn here instead. Pass
9365 (fetch_available_features_from_target): New.
9366 (target_read_description_xml): Use it.
9367 * features/gdb-target.dtd: Add copyright notice. Use xinclude.dtd
9369 * features/xinclude.dtd: New file.
9371 2007-02-05 Daniel Jacobowitz <dan@codesourcery.com>
9373 * linux-thread-db.c (check_for_thread_db): Return early if we have
9374 no libthread_db support.
9376 2007-02-05 Daniel Jacobowitz <dan@codesourcery.com>
9378 * mi/mi-parse.h: Include <sys/time.h>.
9380 2007-02-05 Nick Roberts <nickrob@snap.net.nz>
9382 * mi/mi-cmd-stack.c (list_args_or_locals): Use common_val_print
9383 instead of print_variable_value to print values.
9385 2007-02-03 Nick Roberts <nickrob@snap.net.nz>
9387 * mi/mi-main.c: Numerous formatting changes.
9388 (mi_cmd_data_write_register_values): Replace clause inadvertantly
9389 removed in my previous change.
9391 2007-02-03 Eli Zaretskii <eliz@gnu.org>
9393 * mi/mi-main.c (mi_load_progress, timestamp, print_diff_now):
9394 Use 1000000L instead of 1000000.
9396 2007-02-03 Nick Roberts <nickrob@snap.net.nz>
9398 Based on work by Apple Computer, Inc.
9400 * configure.ac: Test for sys/resource.h and getrusage.
9401 * configure, config.in: Regenerate.
9403 * mi/mi-main.c: Include <sys/resource.h> if present.
9404 (rusage): Declare if HAVE_GETRUSAGE.
9405 (current_command_ts, do_timings): New static variables.
9406 (timestamp, print_diff_now, print_diff, timeval_diff):
9407 New static timing functions.
9408 (mi_cmd_enable_timings): New function for new MI command.
9409 (captured_mi_execute_command, mi_execute_async_cli_command):
9410 Call timing functions.
9412 * mi/mi-cmds.c (mi_cmds): Add entry for new MI command
9415 * mi/mi-cmds.h (mi_cmd_enable_timings): New extern.
9417 * mi/mi-parse.h: (mi_timestamp): New structure.
9418 (mi_parse): Add mi_timestamp* member.
9420 2007-02-02 Denis Pilat <denis.pilat@st.com>
9422 * thread.c (make_cleanup_restore_current_thread): New function.
9423 (info_threads_command): Use of make_cleanup_restore_current_thread
9424 to restore the current thread and the selected frame.
9425 (restore_selected_frame): New function.
9426 (struct current_thread_cleanup): Add frame_id field.
9427 (do_restore_current_thread_cleanup): Add restoring of the selected
9429 (make_cleanup_restore_current_thread): Likewise.
9430 (thread_apply_all_command): backup the selected frame while
9431 entering the function and restore it at exit.
9432 (thread_apply_command): Likewise.
9434 2007-02-02 Denis Pilat <denis.pilat@st.com>
9436 * MAINTAINERS (Write After Approval): Add myself to the list.
9438 2007-02-01 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
9440 * gdb/remote-m32r.sdi.c (m32r_fetch_register): Change PWD mask.
9441 (m32r_store_register): Ditto.
9443 2007-01-30 Vladimir Prus <vladimir@codesourcery.com>
9445 * ser-mingw.c (pipe_windows_open)
9446 (pipe_windows_read, pipe_windows_write): Declare
9447 variables at the top of the function.
9449 2007-01-29 Daniel Jacobowitz <dan@codesourcery.com>
9451 * doublest.c (floatformat_from_length): Use the right element from
9452 gdbarch floatformats.
9453 (floatformat_from_type, extract_typed_floating)
9454 (store_typed_floating): Likewise.
9455 * doublest.h: Remove declarations for undefined floatformat arrays.
9456 * gdbarch.sh (float_format, double_format, long_double_format): Change
9458 (pformat): Update for pairs.
9459 * gdbarch.c, gdbarch.h: Regenerated.
9460 * gdbtypes.c (floatformats_ieee_single, floatformats_ieee_double)
9461 (floatformats_ieee_double_littlebyte_bigword)
9462 (floatformats_i387_ext, floatformats_m68881_ext, floatformats_arm_ext)
9463 (floatformats_ia64_spill, floatformats_ia64_quad, floatformats_vax_f)
9464 (floatformats_vax_d): New variables.
9465 (builtin_type_ieee_single, builtin_type_ieee_double)
9466 (builtin_type_arm_ext, builtin_type_ia64_spill)
9467 (builtin_type_ia64_quad): Replace arrays with individual types.
9468 (builtin_type_ieee_single_big, builtin_type_ieee_single_little)
9469 (builtin_type_ieee_double_big, builtin_type_ieee_double_little)
9470 (builtin_type_ieee_double_littlebyte_bigword, builtin_type_i960_ext)
9471 (builtin_type_m88110_ext, builtin_type_m88110_harris_ext)
9472 (builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword)
9473 (builtin_type_ia64_spill_big, builtin_type_ia64_spill_little)
9474 (builtin_type_ia64_quad_big, builtin_type_ia64_quad_little): Delete
9475 unused and endian-specific types.
9476 (recursive_dump_type): Update for floatformat pairs.
9477 (build_flt): Move higher. Handle bit == -1. Take a floatformat pair.
9478 (build_gdbtypes): Use build_flt.
9479 (_initialize_gdbtypes): Update set of initialized types.
9480 * gdbtypes.h: Update declarations to match gdbtypes.c.
9481 (struct main_type): Store a pointer to two floatformats.
9482 * arch-utils.c (default_float_format, default_double_format): Delete.
9483 * arch-utils.h (default_float_format, default_double_format): Delete.
9485 * arm-tdep.c, avr-tdep.c, hppa-tdep.c, hppabsd-tdep.c, i386-tdep.c,
9486 ia64-tdep.c, iq2000-tdep.c, m68k-tdep.c, m88k-tdep.c,
9487 mips-linux-tdep.c, mips-tdep.c, mt-tdep.c, ppcobsd-tdep.c,
9488 sparc-linux-tdep.c, sparc-tdep.c, sparcnbsd-tdep.c, spu-tdep.c,
9489 vax-tdep.c, alpha-tdep.c, ppc-sysv-tdep.c: Update.
9491 2007-01-29 Joel Brobecker <brobecker@adacore.com>
9493 * target.c (maintenance_print_target_stack): New function.
9494 (initialize_targets): Add new "maintenance print target-stack"
9497 2007-01-28 Mark Kettenis <kettenis@gnu.org>
9499 * dwarf2read.c (new_symbol): Handle DW_AT_decl_file being zero.
9501 2007-01-27 Daniel Jacobowitz <dan@codesourcery.com>
9503 * dwarf2loc.h (struct dwarf2_locexpr_baton): Change size to a long.
9504 (struct dwarf2_loclist_baton): Likewise.
9506 2007-01-27 Eli Zaretskii <eliz@gnu.org>
9508 * cli/cli-script.c: Include breakpoint.h.
9509 (build_command_line): Require arguments only for if and while
9511 (get_command_line, execute_user_command, execute_control_command):
9512 Fix wording of warning messages.
9513 (print_command_lines): Print breakpoint commands.
9514 (execute_control_command): Call commands_from_control_command to
9515 handle the `commands' command inside a body of a flow-control
9517 (read_next_line): Recognize the `commands' command and build a
9518 command line structure for it.
9519 (recurse_read_control_structure, read_command_lines): Handle
9520 `commands' similarly to `if' and `while'.
9522 * breakpoint.c (get_number_trailer): Document the special meaning
9523 of NULL as the first argument PP.
9524 (commands_from_control_command): New function.
9526 * breakpoint.h (commands_from_control_command): Add prototype.
9528 * defs.h (commands_control): New enumerated value for enum
9529 command_control_type.
9531 2007-01-26 Joel Brobecker <brobecker@adacore.com>
9533 * ada-lang.c (ada_exception_breakpoint_ops): Fix typo in function name.
9534 (ada_exception_sal): Update accordingly.
9536 2007-01-26 Jan Kratochvil <jan.kratochvil@redhat.com>
9538 * c-valprint.c (c_val_print): Require strings to be of no-signed CHARs.
9539 * NEWS: Describe CHAR array vs. string identifcation rules.
9541 2007-01-25 Paul Brook <paul@codesourcery.com>
9543 * arm-tdep.c (arm_get_next_pc): Fix bitfield off-by-one error.
9545 2007-01-24 Jim Blandy <jimb@codesourcery.com>
9547 * dwarf2loc.c (dwarf2_evaluate_loc_desc): When the location
9548 expression is empty, bother to return the 'optimized out' value we
9549 construct. (Thanks to Carl Burch.)
9551 2007-01-24 Vladimir Prus <vladimir@codesourcery.com>
9553 * varobj.c (c_value_of_root, c_value_of_child)
9554 (cplus_describe_child): Don't call release_value.
9556 2007-01-24 Thiemo Seufer <ths@mips.com>
9558 * mips-linux-tdep.c (mips_linux_n64_rt_sigframe): Fix struct
9561 2007-01-24 Vladimir Prus <vladimir@codesourcery.com>
9563 Refactor getting children name, value and type access
9565 * varobj.c (get_type_deref): Remove.
9566 (adjust_value_for_child_access): New.
9567 (c_number_of_children): Use the above.
9568 (c_describe_child): Likewise.
9569 (enum accessibility): New.
9570 (match_accessibility): New function.
9571 (cplus_describe_child): New function.
9572 (cplus_name_of_child, cplus_value_of_child)
9573 (cplus_type_of_child): Reimplement in terms
9574 of cplus_describe_child.
9575 (cplus_number_of_children): Use
9576 adjust_value_for_child_access.
9578 2007-01-24 Vladimir Prus <vladimir@codesourcery.com>
9580 Fix computation of the 'editable' attribute and
9581 value changeability for for references.
9582 * varobj.c (get_value_type): New function.
9583 (c_variable_editable): Use get_value_type.
9584 (varobj_value_is_changeable): Likewise.
9586 2007-01-24 Joel Brobecker <brobecker@adacore.com>
9588 * source.c (find_and_open_source): Try rewriting the source
9589 path inside filename if dirname is NULL.
9591 2007-01-24 Joel Brobecker <brobecker@adacore.com>
9593 * dwarf2read.c (add_partial_symbol): Create an extra partial
9594 symbol in the VAR_DOMAIN for Ada structures, unions or enums.
9595 (new_symbol): Likewise for symbols.
9597 2007-01-24 Nick Roberts <nickrob@snap.net.nz>
9599 * mi/mi-main.c (mi_cmd_execute): Call free_all_values.
9601 2007-01-23 Vladimir Prus <vladimir@codesourcery.com>
9603 * value.c (value_primitive_field): Copy the full 'location'
9604 contents, instead of assuming that copying ADDRESS will
9605 bring over everything in the union. Remove obsolete comment.
9607 2007-01-23 Masaki Muranaka <monaka@monami-software.com>
9609 * m32c-tdep.c (make_regs, m32c_analyze_prologue)
9610 (m32c_skip_trampoline_code, m32c_m16c_address_to_pointer)
9611 (m32c_m16c_pointer_to_address): Separate code from declarations.
9613 2007-01-23 Nick Hudson <nick.hudson@dsl.pipex.com>
9615 * target.c (update_current_target): Correct typo.
9617 2007-01-22 Masaki Muranaka <monaka@monami-software.com>
9619 * xstormy16-tdep.c (xstormy16_skip_prologue): Separate code from a
9622 2007-01-11 Andrew Cagney <cagney@redhat.com>
9623 Daniel Jacobowitz <dan@codesourcery.com>
9624 Jan Kratochvil <jan.kratochvil@redhat.com>
9626 * dwarf2-frame.c (execute_cfa_program): New support of
9627 `DW_CFA_GNU_negative_offset_extended'.
9629 2007-01-21 Daniel Jacobowitz <dan@codesourcery.com>
9631 * NEWS: Mention flash support for "load" and new remote packets.
9633 2007-01-21 Markus Deuling <deuling@de.ibm.com>
9635 * breakpoint.c (delete_command): Skip redundant loop iterations.
9637 2007-01-21 Daniel Jacobowitz <dan@codesourcery.com>
9639 * gdbarch.sh (register_type): Update comment.
9640 * gdbarch.h: Regenerated.
9641 * arch-utils.c (generic_register_size): Call register_type.
9642 * ia64-tdep.c (ia64_extract_return_value): Likewise.
9643 * m32c-tdep.c (check_for_saved): Likewise.
9644 * mips-tdep.c (mips_print_register, print_gp_register_row)
9645 (mips_print_registers_info): Likewise.
9646 * sh-tdep.c (sh_pseudo_register_read, sh_pseudo_register_write):
9648 * sh64-tdep.c (sh64_pseudo_register_read, sh64_pseudo_register_write)
9649 (sh64_do_register, sh64_print_register)
9650 (sh64_media_print_registers_info): Likewise.
9651 * tui/tui-regs.c (tui_register_format): Likewise.
9653 2007-01-21 Daniel Jacobowitz <dan@codesourcery.com>
9655 * objfiles.h (ALL_PRIMARY_SYMTABS): Define.
9657 * ada-lang.c (symtab_for_sym, ada_lookup_symbol_list)
9658 (ada_lookup_symbol): Use ALL_PRIMARY_SYMTABS.
9659 * cp-support.c (make_symbol_overload_list_qualified): Likewise.
9660 * symtab.c (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
9661 (basic_lookup_transparent_type, find_pc_sect_symtab, search_symbols)
9662 (make_symbol_completion_list): Likewise.
9664 2007-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
9665 Daniel Jacobowitz <dan@codesourcery.com>
9667 * buildsym.c (end_symtab): Use preallocated symtab if available.
9668 Fill in SYMBOL_SYMTAB.
9669 * buildsym.h (struct subfile): Add symtab member.
9670 * dwarf2read.c (struct dwarf2_cu): Add line_header.
9671 (struct file_entry): Add symtab.
9672 (free_cu_line_header): New function.
9673 (read_file_scope): Use it. Save line_header in the cu. Process
9675 (add_file_name): Initialize new symtab member.
9676 (dwarf_decode_lines): Create symtabs for included files.
9677 (new_symbol): Set SYMBOL_SYMTAB.
9678 * symtab.c (lookup_symbol): Use SYMBOL_SYMTAB.
9679 (search_symbols): Likewise.
9680 * symtab.h (struct symbol): Add symtab member.
9681 (SYMBOL_SYMTAB): Define.
9683 2007-01-20 Daniel Jacobowitz <dan@codesourcery.com>
9685 * symfile.c (allocate_symtab): Remove INIT_EXTRA_SYMTAB_INFO.
9687 2007-01-20 Daniel Jacobowitz <dan@codesourcery.com>
9689 * arch-utils.c (show_endian): Correct reversed condition.
9691 2007-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
9693 * MAINTAINERS (Write After Approval): Add myself.
9695 2007-01-16 Daniel Jacobowitz <dan@codesourcery.com>
9696 Vladimir Prus <vladimir@codesourcery.com>
9698 Fix 'selected frame' varobjs.
9699 * varobj.c (struct varobj): Remove the error field.
9700 (varobj_set_value): Don't check var->error.
9701 (install_new_value): Don't set var->error.
9702 (varobj_update): Always pass the new value
9703 of the root via install_new_value.
9704 (create_child): Don't set error field.
9705 (new_variable): Likewise.
9706 (c_value_of_root): Always reevaluate the value
9707 of selected frame varobjs in the selected frame.
9708 Don't call reinit_frame_cache.
9710 2007-01-15 Joel Brobecker <brobecker@adacore.com>
9712 * source.c (_initialize_source): Improve the help text of
9713 the substitute-path commands.
9715 2007-01-14 Mark Kettenis <kettenis@gnu.org>
9717 * frv-tdep.c (frv_gdbarch_init, frv_register_name)
9718 (frv_breakpoint_from_pc, frv_gdbarch_adjust_breakpoint_address)
9719 (frv_skip_prologue): Remove prototypes.
9720 (frv_adjust_breakpoint_address): Renamed from
9721 frv_gdbarch_adjust_breakpoint_address.
9722 (frv_gdbarch_init): Adjust.
9724 2007-01-13 Mark Kettenis <kettenis@gnu.org>
9726 * gdbarch.sh (deprecated_extract_return_value)
9727 (deprecated_store_return_value): Remove.
9728 (extract_return_value, store_return_value): Remove default values.
9729 * gdbarch.c, gdbarch.h: Regenerate.
9730 * arch-utils.c, arch-utils.h (legacy_extract_return_value)
9731 (legacy_store_return_value): Remove.
9732 * regcache.c, regcache.h (deprecated_grub_regcache_for_registers):
9735 * mi/mi-main.c: Remove obsolete comment.
9737 * regcache.c, regcache.h (deprecated_register_bytes)
9738 (deprecated_read_register_bytes)
9739 (deprecated_write_register_bytes): Remove.
9741 * frame.c (get_frame_register_bytes, put_frame_register_bytes):
9742 Don't forget to move destination pointer.
9744 2007-01-01 Mark Kettenis <kettenis@gnu.org>
9746 * config/i386/nm-i386gnu.h (CHILD_PREPARE_TO_STORE): Remove.
9748 2007-01-11 Ulrich Weigand <uweigand@de.ibm.com>
9750 * spu-tdep.c (spu_analyze_prologue): Fix erroneous backtrace
9751 past entry function with recent newlib.
9753 2007-01-11 Vladimir Prus <vladimir@codesourcery.com>
9755 * gdb.texinfo (GDB/MI Variable Objects): Improve the
9756 introduction. Specify -var-update more exactly.
9758 2007-01-11 Daniel Jacobowitz <dan@codesourcery.com>
9760 * frame.c (get_prev_frame_1): Check PC_REGNUM before using it.
9762 2007-01-10 Jim Blandy <jimb@codesourcery.com>
9764 * MAINTAINERS (Global Maintainers): Ulrich Weigand has accepted
9765 the Global Maintainers' invitation to be a global maintainer.
9767 2007-01-10 Daniel Jacobowitz <dan@codesourcery.com>
9769 * infrun.c (singlestep_pc): New variable.
9770 (resume): Set singlestep_pc.
9771 (context_switch): Add a debugging message. Flush the frame cache.
9772 (handle_inferior_event): Add debugging messages. Handle thread
9773 hops when a software single step has completed. Let context_switch
9774 handle flushing the frame cache.
9776 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
9778 * NEWS: Mention target descriptions, "set tdesc filename",
9779 "unset tdesc filename", "show tdesc filename", and
9780 qXfer:features:read.
9781 * arch-utils.c (choose_architecture_for_target): New function.
9782 (gdbarch_info_fill): Call it.
9783 * target-descriptions.c (struct property): Make members non-const.
9784 (struct target_desc): Add arch member.
9785 (target_description_filename): New variable.
9786 (target_find_description): Try via XML first.
9787 (tdesc_architecture): New.
9788 (free_target_description, make_cleanup_free_target_description): New.
9789 (set_tdesc_property): Call xstrdup.
9790 (set_tdesc_architecture, tdesc_set_cmdlist, tdesc_show_cmdlist)
9791 (tdesc_unset_cmdlist, unset_tdesc_cmd, unset_tdesc_filename_cmd)
9792 (set_tdesc_cmd, show_tdesc_cmd, set_tdesc_filename_cmd)
9793 (show_tdesc_filename_cmd, _initialize_target_descriptions): New.
9794 * target-descriptions.h (tdesc_architecture)
9795 (make_cleanup_free_target_description, set_tdesc_architecture): New
9797 * Makefile.in (SFILES): Add xml-tdesc.c.
9798 (COMMON_OBS): Add xml-tdesc.o.
9799 (target-descriptions.o): Update.
9800 (xml-tdesc.o): New rule.
9801 * xml-tdesc.c, xml-tdesc.h: New files.
9802 * remote.c (PACKET_qXfer_features): New enum.
9803 (remote_protocol_features): Add qXfer:features:read.
9804 (remote_xfer_partial): Handle TARGET_OBJECT_AVAILABLE_FEATURES.
9805 (_initialize_remote): Register qXfer:features:read.
9806 * target.h (enum target_object): Add TARGET_OBJECT_AVAILABLE_FEATURES.
9807 * features/gdb-target.dtd: New file.
9809 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
9811 * copyright.sh: Clarify error.
9813 2007-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
9815 * symtab.c (matching_bfd_sections): Fix VMA matching for
9818 2007-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
9820 * minsyms.c (lookup_minimal_symbol_by_pc_section): Handle
9823 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
9825 Updated copyright notices for most files.
9827 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
9829 * copyright.sh (prunes): Add step-line.inp and step-line.c.
9831 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
9833 * configure.ac (DEBUGDIR_RELOCATABLE): Define for debugdir inside
9835 (TARGET_SYSTEM_ROOT_RELOCATABLE): Allow for exec_prefix being
9837 * configure, config.in: Regenerate.
9838 * defs.h (debug_file_directory): Declare.
9839 * main.c (captured_main): Canonicalize gdb_sysroot. Assume
9840 TARGET_SYSTEM_ROOT is defined. Initialize debug_file_directory and
9841 relocate it if DEBUGDIR_RELOCATABLE.
9842 * symfile.c (debug_file_directory): Make non-static.
9843 (find_separate_debug_file): Look for debug info for SYSROOT/PATH
9844 in DEBUGDIR/PATH if DEBUGDIR is inside SYSROOT.
9845 (_initialize_symfile): Don't initialize debug_file_directory here.
9847 2007-01-09 Jim Blandy <jimb@codesourcery.com>
9849 * score-tdep.c (score_push_dummy_call): Don't mix declarations and
9852 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
9854 * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Use
9855 frame_unwind_register to recurse.
9856 * alpha-tdep.c (alpha_sigtramp_frame_prev_register): Likewise.
9857 (alpha_heuristic_frame_prev_register): Likewise.
9858 * h8300-tdep.c (h8300_frame_prev_register): Likewise.
9859 * m32c-tdep.c (m32c_prev_register): Likewise.
9860 * frame.c (frame_register_unwind_location): Remove FIXME.
9862 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
9863 Eli Zaretskii <eliz@gnu.org>
9865 * copyright.sh: New file.
9867 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
9869 * configure.ac: Check for XML_StopParser.
9870 * xml-support.c (gdb_xml_body_text): Check for an error.
9871 (gdb_xml_start_element_wrapper): Conditionalize call to XML_StopParser.
9872 (gdb_xml_end_element_wrapper): Likewise.
9873 * config.in, configure: Regenerated.
9875 2007-01-08 Daniel Jacobowitz <dan@codesourcery.com>
9877 * varobj.c (install_new_value): Always update print_value.
9878 (value_get_print_value): Immediately return NULL for missing
9881 2007-01-08 Jim Blandy <jimb@codesourcery.com>
9883 * configure.ac: Tighten pattern for extracting value of
9884 DEPRECATED_TM_FILE from the target makefile fragment.
9885 * configure: Regenerated.
9887 2007-01-08 Daniel Jacobowitz <dan@codesourcery.com>
9889 * linux-nat.c (struct simple_pid_list): Add status.
9890 (add_to_pid_list): Record the PID's status.
9891 (linux_record_stopped_pid): Likewise. Make static.
9892 (pull_pid_from_list): Return the saved status.
9893 (linux_nat_handle_extended): Deleted.
9894 (linux_handle_extended_wait): Combine with linux_nat_handle_extended.
9895 Make static. Handle non-SIGSTOP for a new thread's first signal.
9896 (flush_callback): Handle unexpected pending signals.
9897 (linux_nat_wait): Update calls to changed functions.
9898 * linux-nat.h (linux_record_stopped_pid, linux_handle_extended_wait):
9899 Remove prototypes for newly static functions.
9901 2007-01-08 Ulrich Weigand <uweigand@de.ibm.com>
9903 * gdbarch.sh (value_from_register): New gdbarch function.
9904 * gdbarch.c, gdbarch.h: Regenerate.
9905 * findvar.c (default_value_from_register): New function.
9906 (value_from_register): Use gdbarch_value_from_register.
9907 * value.h (default_value_from_register): Declare.
9908 * spu-tdep.c (spu_convert_register_p, spu_register_to_value,
9909 spu_value_to_register): Remove.
9910 (spu_value_from_register): New function.
9911 (spu_gdbarch_init): Do not call set_gdbarch_convert_register_p,
9912 set_gdbarch_register_to_value, set_gdbarch_value_to_register.
9913 Call set_gdbarch_value_from_register.
9914 * s390-tdep.c (s390_convert_register_p, s390_register_to_value,
9915 s390_value_to_register): Remove.
9916 (s390_value_from_register): New function.
9917 (s390_gdbarch_init): Do not call set_gdbarch_convert_register_p,
9918 set_gdbarch_register_to_value, set_gdbarch_value_to_register.
9919 Call set_gdbarch_value_from_register.
9921 2007-01-08 Daniel Jacobowitz <dan@codesourcery.com>
9923 * NEWS: Add "set sysroot" and "show sysroot".
9924 * solib.c (solib_absolute_prefix): Delete. Replace
9925 all uses with gdb_sysroot.
9926 (_initialize_solib): Add "set sysroot" and "show sysroot".
9927 Make "solib-absolute-prefix" an alias to it.
9929 2007-01-08 Ulrich Weigand <uweigand@de.ibm.com>
9931 * frame.c (get_frame_register_bytes): New function.
9932 (put_frame_register_bytes): Likewise.
9933 * frame.h (get_frame_register_bytes): Declare.
9934 (put_frame_register_bytes): Likewise.
9935 * findvar.c (value_from_register): Always construct lval_register
9936 values. Use get_frame_register_bytes.
9937 * valops.c (value_assign): Use get_frame_register_bytes and
9938 put_frame_register_bytes.
9940 2007-01-08 Jim Blandy <jimb@codesourcery.com>
9942 * MAINTAINERS: Update Stan Shebs' email address.
9944 2007-01-07 Joel Brobecker <brobecker@adacore.com>
9946 * ada-lang.c (is_known_support_routine): Improve the implementation.
9948 2007-01-06 Joel Brobecker <brobecker@adacore.com>
9950 * ada-lang.c: Add include of source.h.
9951 (is_known_support_routine): Improve the check verifying that the file
9952 associated to this frame exists.
9953 * Makefile.in (ada-lang.o): Add dependency on source.h.
9955 2007-01-07 Jim Blandy <jimb@codesourcery.com>
9957 * ax-general.c (ax_const_l): Select proper opcode for the given
9960 2007-01-05 Vladimir Prus <vladimir@codesourcery.com>
9962 * varobj.c (c_value_of_root): Don't select frame if variable
9963 object is out of scope.
9965 2007-01-05 Nick Roberts <nickrob@snap.net.nz>
9967 * varobj.c (struct varobj): New member print_value.
9968 (install_new_value): Compare last printed value with current one
9969 instead of contents.
9970 (new_variable): Initialize var->print_value to NULL.
9971 (free_variable): Free var->print_value.
9972 (value_get_print_value): New function derived from
9973 c_value_of_variable.
9974 (c_value_of_variable): Use value_get_print_value.
9976 2007-01-05 Joel Brobecker <brobecker@adacore.com>
9978 * i386-tdep.c (i386_analyze_stack_align): Add comment.
9980 2007-01-05 Joel Brobecker <brobecker@adacore.com>
9982 * NEWS: Add entries for new catch commands.
9984 2007-01-05 Joel Brobecker <brobecker@adacore.com>
9986 * dwarf2read.c (partial_die_info): Add field has_byte_size.
9987 (add_partial_symbol): Correct identification of external references.
9988 (process_structure_scope): Likewise.
9989 (read_partial_die): Handle DW_AT_byte_size attribute.
9991 2007-01-05 Daniel Jacobowitz <dan@codesourcery.com>
9993 * xml-support.c (gdb_xml_end_element): Remove wrong backslashes.
9995 2007-01-05 Nick Roberts <nickrob@snap.net.nz>
9997 * varobj.c (get_type_deref): Fix variable objects for references to
10000 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
10002 * symtab.c (find_pc_sect_psymtab): Add comments. Handle psymtabs
10005 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
10007 * memory-map.c (struct_memory_map_parsing_data): Remove most
10008 members. Make property_name an array.
10009 (free_memory_map_parsing_data, memory_map_start_element)
10010 (memory_map_end_element, memory_map_character_data): Delete.
10011 (memory_map_start_memory, memory_map_end_memory)
10012 (memory_map_start_property, memory_map_end_property): New functions.
10013 (property_attributes, memory_children, memory_type_enum)
10014 (memory_attributes, memory_map_children, memory_map_elements): New.
10015 (parse_memory_map): Rewrite.
10016 * xml-support.c (debug_xml): New.
10017 (xml_get_required_attribute, xml_get_integer_attribute)
10018 (xml_get_enum_value, free_xml_parser, make_cleanup_free_xml_parser):
10020 (struct scope_level, struct gdb_xml_parser, gdb_xml_body_text)
10021 (gdb_xml_debug, gdb_xml_error, gdb_xml_values_cleanup)
10022 (gdb_xml_start_element, gdb_xml_start_element_wrapper)
10023 (gdb_xml_end_element, gdb_xml_end_element_wrapper, gdb_xml_cleanup)
10024 (gdb_xml_create_parser_and_cleanup, gdb_xml_parse)
10025 (gdb_xml_parse_ulongest, gdb_xml_parse_attr_ulongest)
10026 (gdb_xml_parse_attr_enum, show_debug_xml, _initialize_xml_support):
10028 * xml-support.h (struct gdb_xml_value, gdb_xml_attribute_handler)
10029 (enum gdb_xml_attribute_flag, struct gdb_xml_attribute)
10030 (enum gdb_xml_element_flag, struct gdb_xml_element)
10031 (gdb_xml_element_start_handler, gdb_xml_element_end_handler)
10032 (struct gdb_xml_enum): New.
10033 (gdb_xml_create_parser_and_cleanup, gdb_xml_parse, gdb_xml_debug)
10034 (gdb_xml_error, gdb_xml_parse_attr_ulongest)
10035 (gdb_xml_parse_attr_enum, gdb_xml_parse_ulongest): New prototypes.
10036 (xml_get_required_attribute, xml_get_integer_attribute)
10037 (xml_get_enum_value, make_cleanup_free_xml_parser): Delete prototypes.
10038 * Makefile.in (xml_support_h, xml-support.o): Update.
10040 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
10042 * Makefile.in (eval.o): Update dependencies.
10043 * eval.c: Include "ui-out.h" and "exceptions.h".
10044 (evaluate_subexp_standard): Use TRY_CATCH around value_of_variable.
10045 Use value_zero if an error occurs when avoiding side effects.
10046 * varobj.c (c_value_of_root): Initialize new_val.
10048 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
10050 * varobj.c (varobj_list_children): Stop if the number of children is
10052 (c_number_of_children):
10054 2007-01-04 Mark Kettenis <kettenis@gnu.org>
10056 * alpha-tdep.c (alpha_register_name): Use ARRAY_SIZE.
10057 (alpha_read_insn, alpha_skip_prologue, alpha_heuristic_proc_start)
10058 (alpha_heuristic_frame_unwind_cache, alpha_next_pc)
10059 (alpha_gdbarch_init): Use ALPHA_INSN_SIZE, ALPHA_REGISTER_SIZE and
10060 sizeof, instead of hardcoded constants.
10062 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
10064 * CONTRIBUTE: Use sourceware.org.
10066 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
10068 * buildsym.c (start_subfile): Handle producer.
10069 (record_producer): New function.
10070 * buildsym.h (struct subfile): Include producer.
10071 (record_producer): New prototype.
10072 * dwarf2-frame.c (struct dwarf2_cie): Add version and augmentation.
10073 (struct dwarf2_frame_state): Add armcc_cfa_offsets_sf and
10074 armcc_cfa_offsets_reversed.
10075 (execute_cfa_program): Handle armcc_cfa_offsets_sf.
10076 (dwarf2_frame_find_quirks): New function.
10077 (dwarf2_frame_cache): Call it. Handle armcc_cfa_offsets_reversed.
10078 (decode_frame_entry_1): Record the CIE version. Record the
10079 augmentation. Skip armcc augmentations.
10080 * dwarf2read.c (read_file_scope): Save the producer.
10081 * symtab.h (struct symtab): Rename unused version member to
10084 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
10086 * configure.ac (build_warnings): Use -Wall and
10087 -Wdeclaration-after-statement.
10088 * configure: Regenerated.
10090 2007-01-04 Vladimir Prus <vladimir@codesourcery.com>
10092 Simplify access to variours properties of child
10093 variable objects in C.
10094 * varobj.c (value_struct_element_index): New function.
10095 (c_describe_child): New function.
10096 (c_name_of_child, c_value_of_child)
10097 (c_type_of_child): Rewrite to use c_describe_child.
10099 2007-01-04 Vladimir Prus <vladimir@codesourcery.com>
10102 * varobj.c: Include "vec.h".
10103 (varobj_p): New typedef, declare vector of those.
10104 (struct varobj): Use vector for the 'children' member.
10105 (child_exists): Remove.
10106 (save_child_in_parent): Remove.
10107 (remove_child_from_parent): Remove.
10108 (struct varobj_child): Remove.
10109 (struct vstack): Remove.
10110 (vpush, vpop): Remove.
10111 (varobj_list_children): Adjust to work work vector.
10112 (varobj_update): Likewise. Use vectors for
10113 working stack and result.
10114 (delete_variable_1): Likewise.
10115 * Makefile.in (varobj.o): Update dependencies.
10117 2007-01-04 Vladimir Prus <vladimir@codesourcery.com>
10119 Port from Apple's version.
10121 * varobj.c (type_changeable): Rename to...
10122 (varobj_value_is_changeable_p): ...this. Adjust all callers.
10123 (is_root_p): New function. Use it everywhere.
10125 2007-01-04 Jim Blandy <jimb@codesourcery.com>
10127 * glibc-tdep.c (glibc_skip_solib_resolver): Look for '_dl_fixup',
10128 then plain 'fixup'.
10130 2007-01-04 Joel Brobecker <brobecker@adacore.com>
10132 * hpread.c (hpread_start_psymtab): Remove unnecessary extern.
10134 2007-01-04 Joel Brobecker <brobecker@adacore.com>
10136 * hpread.c (hpread_type_lookup): Fix compilation failure.
10138 2007-01-04 Qinwei <qinwei@sunnorth.com.cn>
10140 * NEWS: New port to S+core.
10141 * MAINTAINERS (Write After Approval, Responsible Maintainers):
10144 * Makefile.in: Add dependencies for S+core files.
10145 * configure.tgt (score*, score-*-*): Add S+core target.
10146 * config/score/embed.mt: New file.
10147 * score-tdep.c: New file.
10148 * score-tdep.h: New file.
10150 2007-01-04 Joel Brobecker <brobecker@adacore.com>
10152 * ada-lang.c (ada_evaluate_subexp) [OP_TYPE]: Return a value with
10153 the appropriate type rather than a bogus void type.
10155 2007-01-04 Joel Brobecker <brobecker@adacore.com>
10157 * ada-lang.h (ada_find_printable_frame): Remove.
10158 (ada_exception_catchpoint_p, ada_decode_exception_location)
10159 (ada_decode_assert_location): Add declaration.
10160 * ada-lang.c: Add include of annotate.h and valprint.h.
10161 (exception_catchpoint_kind): New enum.
10162 (function_name_from_pc, is_known_support_routine)
10163 (ada_find_printable_frame, ada_unhandled_exception_name_addr)
10164 (ada_exception_name_addr_1, ada_exception_name_addr)
10165 (print_it_exception, print_one_exception, print_mention_exception)
10166 (print_it_catch_exception, print_one_catch_exception)
10167 (print_mention_catch_exception, catch_exception_breakpoint_ops)
10168 (print_it_catch_exception_unhandled)
10169 (print_one_catch_exception_unhandled)
10170 (print_mention_catch_exception_unhandled, print_it_catch_assert)
10171 (print_one_catch_assert, print_mention_catch_assert)
10172 (ada_exception_catchpoint_p, error_breakpoint_runtime_sym_not_found)
10173 (ada_get_next_arg, catch_ada_exception_command_split)
10174 (ada_exception_sym_name, ada_exception_sym_name)
10175 (ada_exception_breakption_ops, ada_exception_catchpoint_cond_string)
10176 (ada_parse_catchpoint_condition, ada_exception_sal)
10177 (ada_decode_exception_location)
10178 (ada_decode_assert_location): New function.
10179 (catch_exception_unhandled_breakpoint_ops): New global variable.
10180 (catch_assert_breakpoint_ops): New global variable.
10181 * breakpoint.c: Add include of ada-lang.h.
10182 (print_one_breakpoint): Do not print the condition for Ada
10183 exception catchpoints.
10184 (create_ada_exception_breakpoint): New function.
10185 (catch_ada_exception_command, catch_assert_command): New function.
10186 (catch_command_1): Add support for the new "catch exception" and
10187 "catch assert" commands.
10188 (_initialize_breakpoint): Add help description for the new catch
10190 * Makefile.in (ada-lang.o): Add dependency on annotate.h and
10192 (breakpoint.o): Add dependency on ada-lang.h.
10194 2007-01-03 Pedro Alves <pedro_alves@portugalmail.pt>
10196 * coffread.c (cs_to_section): If bfd_section is found, always
10197 return its section index.
10198 (coff_symtab_read): Determine the minimal_symbol_type using the
10201 2007-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10202 Daniel Jacobowitz <dan@codesourcery.com>
10204 * Makefile.in (top.o): Update.
10205 * top.c (gdb_readline_wrapper_done, gdb_readline_wrapper_result)
10206 (saved_after_char_processing_hook, gdb_readline_wrapper_line)
10207 (struct gdb_readline_wrapper_cleanup, gdb_readline_wrapper_cleanup):
10209 (gdb_readline_wrapper): Rewrite to use asynchronous readline.
10211 2007-01-03 Mark Kettenis <kettenis@gnu.org>
10213 * arm-linux-tdep.c (arm_linux_extract_return_value): Remove.
10214 (arm_linux_init_abi): Don't set deprecated_extract_return_value.
10216 2007-01-03 Daniel Jacobowitz <dan@codesourcery.com>
10218 * ada-lang.c (find_struct_field): Initialize *byte_offset_p.
10219 * breakpoint.c (do_enable_breakpoint): Ignore both mem_cnt and i.
10220 * c-typeprint.c (c_type_print_varspec_suffix): Don't test length
10221 greater than or equal to zero.
10222 * m2-typeprint.c (m2_array): Likewise.
10223 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
10224 * gdbtypes.c (copy_type_recursive): Correct == typo.
10225 * i386-tdep.c (i386_skip_prologue): Remove stray semicolon.
10226 * linux-nat.c (linux_nat_info_proc_cmd): Don't compare a pointer
10228 * macroscope.c (sal_macro_scope): Don't name a local variable "main".
10229 (default_macro_scope): Remove unused variable.
10230 * prologue-value.h (pv_area_find_reg): Don't name an argument
10232 * remote-fileio.c (remote_fio_func_map): Add missing braces.
10233 * remote.c (sigint_remote_twice_token, sigint_remote_token): Change
10235 (cleanup_sigint_signal_handler): Remove casts.
10236 * valprint.c (val_print): Use a volatile local for the modified
10238 * varobj.c (languages): Remove extra array dimension.
10239 (varobj_create): Correct access to languages array.
10240 * mi/mi-cmd-break.c (mi_cmd_break_insert, mi_cmd_break_watch): Add
10242 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise.
10243 * mi/mi-cmd-env.c (mi_cmd_env_path, mi_cmd_env_dir): Likewise.
10244 * mi/mi-getopt.c (mi_valid_noargs): Likewise.
10245 * mi/mi-main.c (mi_cmd_data_read_memory): Likewise.
10246 (mi_cmd_data_write_memory): Likewise.
10247 * signals/signals.c (target_signal_to_string): Cast to int before
10249 * tui/tui-layout.c (init_and_make_win): Take and return a void *.
10250 Update all callers.
10252 2007-01-03 Daniel Jacobowitz <dan@codesourcery.com>
10254 * NEWS: Mention pointer to member improvements.
10255 * Makefile.in (gnu-v3-abi.o): Delete special rule.
10256 (eval.o, gnu-v3-abi.o, ia64-tdep.o): Update.
10257 * ada-valprint.c (ada_print_scalar): Update for new type codes.
10258 * c-typeprint.c (c_print_type): Update for new type codes.
10259 (c_type_print_varspec_prefix, c_type_print_varspec_suffix)
10260 (c_type_print_base): Likewise.
10261 (c_type_print_args): Rewrite.
10262 * c-valprint.c (c_val_print): Update for new type codes. Remove
10263 support for references to members. Treat methods like functions.
10264 * cp-abi.c (cplus_print_method_ptr, cplus_method_ptr_size)
10265 (cplus_make_method_ptr, cplus_method_ptr_to_value): New.
10266 * cp-abi.h (cplus_print_method_ptr, cplus_method_ptr_size)
10267 (cplus_make_method_ptr, cplus_method_ptr_to_value): New prototypes.
10268 (struct cp_abi_ops): Add corresponding members.
10269 * cp-valprint.c (cp_print_class_method): Delete.
10270 (cp_find_class_member): New function.
10271 (cp_print_class_member): Use it. Simplify support for bogus
10273 * dwarf2read.c (quirk_gcc_member_function_pointer): Use
10274 lookup_methodptr_type.
10275 (read_tag_ptr_to_member_type): Likewise, and lookup_memberptr_type.
10276 * eval.c (evaluate_subexp_standard): Implement EVAL_SKIP for
10277 OP_SCOPE. Update call to value_aggregate_elt. Rewrite member
10279 (evaluate_subexp_for_address): Handle OP_SCOPE explicitly. Handle
10280 references returned by user defined operators.
10281 * f-typeprint.c (f_print_type, f_type_print_varspec_prefix)
10282 (f_type_print_varspec_suffix): Remove support for member pointers.
10283 * gdbtypes.c (lookup_memberptr_type): Renamed from lookup_member_type
10285 (smash_to_memberptr_type): Likewise, from smash_to_member_type.
10286 (lookup_methodptr_type): New.
10287 (rank_one_type): Adjust for TYPE_CODE_MEMBERPTR.
10288 (recursive_dump_type): Update for new types.
10289 * gdbtypes.h (enum type_code): Replace TYPE_CODE_MEMBER with
10290 TYPE_CODE_MEMBERPTR and TYPE_CODE_METHODPTR.
10291 (lookup_memberptr_type, lookup_methodptr_type)
10292 (smash_to_memberptr_type): New prototypes.
10293 (smash_to_method_type): Formatting fix.
10294 (lookup_member_type, smash_to_member_type): Delete prototypes.
10295 * gnu-v3-abi.c (gnuv3_get_vtable, gnuv3_get_virtual_fn): New.
10296 Do not rely on debug information for the vptr or the method's
10297 enclosing type. Handle function descriptors for IA64.
10298 (gnuv3_virtual_fn_field): Rewrite using the new functions.
10299 (gnuv3_find_method_in, gnuv3_print_method_ptr)
10300 (gnuv3_method_ptr_size, gnuv3_make_method_ptr)
10301 (gnuv3_method_ptr_to_value): New.
10302 (init_gnuv3_ops): Set new members of gnu_v3_abi_ops.
10303 * hpread.c (hpread_type_lookup): Update for new types.
10304 * infcall.c (value_arg_coerce): Likewise.
10305 * m2-typeprint.c (m2_print_type): Remove explicit support
10306 for member pointers.
10307 * m2-valprint.c (m2_val_print): Likewise.
10308 * p-typeprint.c (pascal_type_print_varspec_prefix)
10309 (pascal_type_print_varspec_suffix, pascal_type_print_base): Likewise.
10310 * p-valprint.c (pascal_val_print): Likewise.
10311 (pascal_object_print_class_method, pascal_object_print_class_member):
10313 * p-lang.h (pascal_object_print_class_method)
10314 (pascal_object_print_class_member): Delete prototypes.
10315 * stabsread.c (read_type): Update for new types.
10316 * typeprint.c (print_type_scalar): Likewise.
10317 * valops.c (value_struct_elt_for_reference, value_namespace_elt)
10318 (value_maybe_namespace_elt, value_aggregate_elt): Add want_address
10319 argument. Construct a pointer to member if the address of a
10320 function or data member is requested.
10321 (value_cast_pointers): Don't modify the input value.
10322 (value_cast): Adjust pointer to member handling for new types.
10323 Allow null pointer to member constants. Don't modify the input
10325 (value_ind): Remove pointer to member check. Handle function
10326 descriptors for function pointers.
10327 (value_struct_elt, value_find_oload_method_list, check_field):
10328 Remove pointer to member checks.
10329 * value.c (unpack_long): Allow pointers to data members.
10330 (value_from_longest): Allow member pointers.
10331 * value.h (value_aggregate_elt): Add want_address.
10332 * varobj.c (c_variable_editable): Remove check for members.
10333 * gdbarch.sh: Add vtable_function_descriptors and vbit_in_delta.
10334 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Handle descriptors
10336 (ia64_gdbarch_init): Call set_gdbarch_vtable_function_descriptors.
10337 * c-lang.h (cp_print_class_method): Delete prototype.
10338 * arm-tdep.c (arm_gdbarch_init): Call set_gdbarch_vbit_in_delta.
10339 * mips-tdep.c (mips_gdbarch_init): Likewise.
10340 * gdbarch.c, gdbarch.h: Regenerated.
10342 2007-01-01 Mark Kettenis <kettenis@gnu.org>
10344 * rs6000-tdep.c (rs6000_use_struct_convention)
10345 (rs6000_extract_return_value, rs6000_store_return_value)
10346 (rs6000_extract_struct_value_address): Remove.
10347 (rs6000_return_value): New function.
10348 (rs6000_gdbarch_init): Don't set deprecated_extract_return_value,
10349 store_return_value, deprecated_extract_struct_value_address and
10350 deprecated_use_struct_convention. Use rs6000_return_value
10353 2007-01-02 Nick Roberts <nickrob@snap.net.nz>
10355 * mi/mi-cmds.c (mi_cmds): Remove entries for -display-delete,
10356 -display-disable, -display-enable, -display-insert and
10359 2007-01-01 Joel Brobecker <brobecker@adacore.com>
10361 * breakpoint.c (remove_breakpoint): Remove dead code.
10363 2007-01-01 Nick Roberts <nickrob@snap.net.nz>
10365 * varobj.c: Include block.h.
10366 (c_value_of_root): Check scope within nested statements.
10368 2007-01-01 Mark Kettenis <kettenis@gnu.org>
10370 * mi/mi-main.c (mi_cmd_data_write_register_values): Use
10371 regcache_cooked_write_signed instead of
10372 deprecated_write_register_bytes.
10374 2007-01-01 Joel Brobecker <brobecker@adacore.com>
10376 * config/djgpp/fnchange.lst: Add entry for ChangeLog-2006.
10378 2007-01-01 Joel Brobecker <brobecker@adacore.com>
10380 Followed the Start of New Year Procedure:
10381 * ChangeLog-2006: New file, containing all the entries for 2006.
10382 * ChangeLog: Removed all 2006 entries, and changed the reference
10383 to the previous ChangeLog to point to ChangeLog 2006.
10384 * top.c (print_gdb_version): Update copyright year.
10386 2007-01-01 Mark Kettenis <kettenis@gnu.org>
10388 * Makefile.in (remote-sds.o): Remove.
10389 * remote-sds.c: Delete.
10391 For older changes see ChangeLog-2006.
10397 version-control: never