1 2007-12-17 Chris Dearman <chris@mips.com>
3 * symfile.c (init_filename_language_table): Recognise .sx as
6 2007-12-17 Joel Brobecker <brobecker@adacore.com>
8 * language.h (enum exp_opcode): Comment out this declaration,
9 undoing the previous change.
11 2007-12-17 Luis Machado <luisgpm@br.ibm.com>
13 * breakpoint.c: (watch_command_1): Parse additional optional
14 "thread" parameter to the watchpoint command and set the
15 "thread" member of the breakpoint struct.
17 2007-12-17 Luis Machado <luisgpm@br.ibm.com>
19 * breakpoint.c (bpstat_stop_status): Check an additional
20 condition before evaluating an expression value.
22 2007-12-17 Joel Brobecker <brobecker@adacore.com>
24 * language.h (enum exp_opcode): Add forward declaration.
25 (language_string_char_type, language_lookup_primitive_type_by_name):
26 Move declaration past declaration of language_defn.
28 2007-12-16 Daniel Jacobowitz <dan@codesourcery.com>
29 Joseph Myers <joseph@codesourcery.com>
31 * configure.ac: Check for *-*-solaris2.1[[0-9]]* instead of
32 *-*-solaris2.1[[0-9]].
33 * configure: Regenerate.
34 * procfs.c (proc_set_current_signal): If redelivering a signal,
35 reuse the current siginfo if possible.
37 2007-12-16 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
39 * f-typeprint.c (print_equivalent_f77_float_type): Remove function.
40 (f_type_print_base): Output the type names directly for real and
43 2007-12-16 Vladimir Prus <vladimir@codesourcery.com>
45 * breakpoint.c (bpstat_have_active_hw_watchpoints):
47 (bpstat_stop_status): Remove unused variable
49 * breakpoint.h (bpstat_have_active_hw_watchpoints):
52 2007-12-16 Vladimir Prus <vladimir@codesourcery.com>
54 * target.h (target_pid_or_tid_to_str): Remove.
55 * infrun.c (handle_inferior_event):
56 Use target_pid_to_str instead of
57 target_pid_or_tid_to_str.
58 (normal_stop): Likewise.
60 2007-12-16 Jan Kratochvil <jan.kratochvil@redhat.com>
62 * dwarf2read.c (dwarf_attr_name): Rename `DW_AT_stride_size' to its
63 DWARF3 equivalent `DW_AT_bit_stride'.
64 Rename `DW_AT_stride' to its DWARF3 equivalent `DW_AT_byte_stride'.
66 2007-12-16 Joel Brobecker <brobecker@adacore.com>
68 * mi/mi-main.c: Remove code that was commented out in 1999.
70 2007-12-16 Joel Brobecker <brobecker@adacore.com>
72 * expression.h (parse_expression_in_context): Delete prototype.
73 * parse.c (parse_expression_in_context): Delete.
75 2007-12-14 Vladimir Prus <vladimir@codesourcery.com>
77 Add support for pending breakpoints in MI.
78 * gdb.h (gdb_breakpoint): Add parameter pending.
79 * breakpoint.c (gdb_breakpoint): Add parameter pending.
80 * mi/mi-cmd-break.c (mi_break_insert): Change
81 comment to refer to manual. Add support for
82 the -f flag, for pending breakpoint.
84 2007-12-14 Vladimir Prus <vladimir@codesourcery.com>
86 * breakpoint.c (break_command_really): New, copied
87 from break_command_1. New parameters COND_STRING, THREAD
88 PARSE_CONDITITION_AND_THREAD and PENDING_BREAK_SUPPORT.
89 The previous FLAG parameter split into TEMPFLAG and
91 When PARSE_CONDITION_AND_THREAD is not set, duplicate
92 the passed condition string.
93 (struct captured_breakpoint_args): Remove
94 (do_captured_breakpoint): Remove.
95 (break_command_1): Relay to break_command_really.
96 (gdb_breakpoint): Relay to break_command_really.
98 2007-12-13 Michael Snyder <msnyder@specifix.com>
100 * mips-linux-tdep.c (mips64_fill_gregset): Remove unused variable.
102 2007-12-13 Jim Blandy <jimb@codesourcery.com>
104 * dwarf2read.c (attr_form_is_constant): New function.
105 (dwarf2_add_field): Use it and attr_form_is_section_offset to
106 recognize DW_AT_data_member_location attributes. Use
107 dwarf2_get_attr_constant_value when the attribute is a constant.
109 * dwarf2read.c (attr_form_is_section_offset): New function.
110 (dwarf_add_member_fn, read_common_block, read_partial_die)
111 (dwarf2_symbol_mark_computed): Use it, instead of writing it out.
113 2007-12-12 Jim Blandy <jimb@codesourcery.com>
115 Remove unused support for target-based exception catching.
116 * target.h (struct target_ops): Delete
117 to_enable_exception_callback and to_get_current_exception_event
119 (target_enable_exception_callback)
120 (target_get_current_exception_event): Delete macros.
121 * target.c (update_current_target): Remove code to inherit and
122 default those members.
123 (debug_to_enable_exception_callback)
124 (debug_to_get_current_exception_event): Delete functions.
125 (setup_target_debug): Don't install those methods.
126 * inf-child.c (inf_child_enable_exception_callback)
127 (inf_child_get_current_exception_event): Delete dummy functions.
128 (inf_child_target): Don't install them in the target vector.
129 * breakpoint.h (enum bptype): Delete bp_catch_catch,
131 * breakpoint.c (cover_target_enable_exception_callback)
132 (ep_is_exception_catchpoint, create_exception_catchpoint): Delete
134 (insert_bp_location, update_breakpoints_after_exec)
135 (remove_breakpoint, ep_is_catchpoint, print_it_typical)
136 (bpstat_stop_status, bpstat_what)
137 (bpstat_get_triggered_catchpoints, print_one_breakpoint_location)
138 (user_settable_breakpoint, allocate_bp_location)
139 (disable_watchpoints_before_interactive_call_start)
140 (enable_watchpoints_after_interactive_call_stop, mention)
141 (delete_breakpoint, breakpoint_re_set_one, disable_command)
142 (enable_command): Remove exception catchpoint cases.
143 (catch_exception_command_1): Don't try target-based exception
145 * stack.c (catch_info): Call print_frame_label_vars
148 2007-12-12 Nigel Stephens <nigel@mips.com>
149 Maciej W. Rozycki <macro@mips.com>
151 * remote-mips.c (mips_load): Use regcache_set_valid_p() instead
152 of setting deprecated_register_valid array directly.
154 2007-12-07 Maciej W. Rozycki <macro@mips.com>
156 * mips-tdep.c (extended_offset): Fix a comment.
158 2007-12-07 Maciej W. Rozycki <macro@mips.com>
160 * target.c (update_current_target): Inherit to_log_command.
161 * target.h (struct target_ops). Add to_log_command.
162 (target_log_command): New macro.
163 * top.c (execute_command): Call target_log_command() rather than
164 serial_log_command().
165 * monitor.c (init_base_monitor_ops): Initialize to_log_command.
166 * remote-m32r-sdi.c (init_m32r_ops): Likewise.
167 * remote-mips.c (_initialize_remote_mips): Likewise.
168 * remote.c (init_remote_ops): Likewise.
170 2007-12-06 Daniel Jacobowitz <dan@codesourcery.com>
172 * infrun.c (init_wait_for_inferior): Reset target_last_wait_ptid.
173 (handle_inferior_event): Clear stop_stack_dummy earlier.
175 2007-12-06 Jim Blandy <jimb@codesourcery.com>
177 * addrmap.c (addrmap_splay_tree_remove): New function.
178 (addrmap_mutable_set_empty): Use it.
180 * addrmap.c, addrmap.h: Update to GPLv3.
182 * addrmap.c (struct addrmap): Make the referenced function table
184 (addrmap_fixed_funcs, addrmap_mutable_funcs): Declare const.
185 Don't use designated initializers.
187 * addrmap.c (addrmap_fixed_create_fixed, addrmap_mutable_find)
188 (addrmap_mutable_relocate): Use internal_error, not abort.
190 * NEWS: Mention support for non-contiguous lexical blocks and
193 2007-12-06 Markus Deuling <deuling@de.ibm.com>
195 * gdbarch.sh (stab_reg_to_regnum, dwarf_reg_to_regnum)
196 ( dwarf2_reg_to_regnum, sdb_reg_to_regnum, ecoff_reg_to_regnum): Add
197 gdbarch as parameter.
198 * gdbarch.{c,h}: Regenerate.
200 * xtensa-tdep.c (xtensa_reg_to_regnum): Add gdbarch as parameter.
201 Replace current_gdbarch by gdbarch.
202 * s390-tdep.c (s390_dwarf_reg_to_regnum): Likewise.
203 * rs6000-tdep.c (rs6000_stab_reg_to_regnum)
204 (rs6000_dwarf2_reg_to_regnum): Likewise.
205 * mips-tdep.c (mips_stab_reg_to_regnum)
206 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Likewise.
207 * mep-tdep.c (mep_debug_reg_to_regnum): Likewise.
208 * m32c-tdep.c (m32c_debug_info_reg_to_regnum): Likewise.
209 * i386-tdep.c (i386_dbx_reg_to_regnum)
210 (i386_svr4_reg_to_regnum): Likewise
211 * h8300-tdep.c (h8300s_dbg_reg_to_regnum)
212 (h8300_dbg_reg_to_regnum): Likewise.
213 * amd64-tdep.c (amd64_dwarf_reg_to_regnum): Likewise.
214 * arch-utils.c (no_op_reg_to_regnum): Likewise.
215 * arch-utils.h (no_op_reg_to_regnum): Likewise.
216 * arm-tdep.c (arm_dwarf_reg_to_regnum): Likewise.
217 * cris-tdep.c (cris_dwarf2_reg_to_regnum): Likewise.
218 * hppa-tdep.c (hppa64_dwarf_reg_to_regnum): Likewise.
219 * ia64-tdep.c (ia64_dwarf_reg_to_regnum): Likewise.
220 * m68k-tdep.c (m68k_dwarf_reg_to_regnum): Likewise.
222 2007-12-06 Vladimir Prus <vladimir@codesourcery.com>
224 Localize infrun use of remove_breakpoints.
225 * infrun.c (handle_inferior_event): Remove
226 calls to remove_breakpoints, except where needed to
227 communicate change of breakpoint locations to inferior.
228 (keep_going): If steppping over breakpoint, remove
231 2007-12-06 Vladimir Prus <vladimir@codesourcery.com>
233 Clarify infrun variable naming.
234 * infrun.c (trap_expected): Rename
235 to stepping_over_breakpoint. Document.
236 (stepping_past_breakpoint): Remove.
237 (stepping_past_breakpoint_ptdi): Renamed
238 to deferred_step_ptid.
239 (struct execution_control_state): Rename
240 the another_trap field to stepping_over_breakpoint.
241 (struct inferior_status): Rename the trap_expected
242 field to stepping_over_breakpoint.
243 (clear_proceed_status, proceed)
244 (init_execution_control_state, context_switch)
245 (handle_inferior_event, currently_stepping)
246 (keep_going, save_inferior_status)
247 (restore_inferior_status, prepare_to_proceed): Adjust.
248 * gdbthread.h (struct thread_info): Rename the
249 trap_expected field to stepping_over_breakpoint.
250 * thread.c (load_infrun_state, save_infrun_state):
253 2007-12-06 Pierre Muller <muller@ics.u-strasbg.fr>
255 * win32-nat.c: Allow compilation if CORE_ADDR is 8 byte long.
256 Add "gdb_stdint.h" dependency required for uintptr_t type use.
257 (handle_output_debug_string): Use uintptr_t typecast.
258 (handle_exception): Ditto.
259 (win32_xfer_memory): Ditto.
260 * Makefile.in (win32-nat.o): Add dependency to gdb_stdint header.
262 2007-12-04 Jim Blandy <jimb@codesourcery.com>
264 Support lexical blocks and function bodies that occupy
265 non-contiguous address ranges.
266 * addrmap.c, addrmap.h: New files.
267 * block.h (struct addrmap): New forward declaration.
268 (struct blockvector): New member, 'map'.
269 (BLOCKVECTOR_MAP): New accessor macro.
270 * block.c: #include "addrmap.h"
271 (blockvector_for_pc_sect): If the blockvector we've found has
272 an address map, use it instead of searching the blocks.
273 * buildsym.c: #include "addrmap.h"
274 (pending_addrmap_obstack, pending_addrmap_interesting): New static
276 (really_free_pendings): If we have a pending addrmap, free it too.
277 (record_block_range): New function.
278 (make_blockvector): If we have an interesting pending addrmap,
279 record it in the new blockvector.
280 (start_symtab, buildsym_init): Assert that there is no pending
281 addrmap now; we should have cleaned up any addrmaps we'd built
283 (end_symtab): If there is a pending addrmap left over that didn't
284 get included in the blockvector, free it.
285 * buildsym.h (struct addrmap): New forward declaration.
286 (record_block_range): New prototype.
287 * objfiles.c: #include "addrmap.h".
288 (objfile_relocate): Relocate the blockvector's address map, if
290 * dwarf2read.c (dwarf2_record_block_ranges): New function.
291 (read_func_scope, read_lexical_block_scope): Call it.
292 * Makefile.in (SFILES): Add addrmap.c.
293 (addrmap_h): New header dependency variable.
294 (COMMON_OBS): Add addrmap.o.
295 (addrmap.o): New rule.l
296 (block.o, objfiles.o, buildsym.o): Depend on $(addrmap_h).
298 * block.c (blockvector_for_pc, blockvector_for_pc_sect): Return a
299 pointer to the block, not its index in the blockvector.
300 (block_for_pc_sect): Use the returned block, instead of looking it
302 * block.h (blockvector_for_pc, blockvector_for_pc_sect): Update
304 * breakpoint.c (resolve_sal_pc): Use returned block, instead of
305 looking it up ourselves.
306 * stack.c (print_frame_label_vars): Disable function, which
307 depends on the block's index.
309 * buildsym.c (finish_block): Return the block we've built.
310 * buildsym.h (finish_block): Update prototype.
312 * defs.h (CORE_ADDR_MAX): New constant.
314 2007-12-04 Ulrich Weigand <uweigand@de.ibm.com>
316 * coffread.c (decode_type): Use builtin_type_int32 instead
317 of FT_INTEGER fundamental type for array range index type.
318 (decode_base_type): Use builtin types of current_gdbarch
319 instead of fundamental types.
321 * dwarf2read.c (struct dwarf2_cu): Remove ftypes member.
322 (read_file_scope): Do not initialize ftypes member.
323 (dwarf_base_type, dwarf2_fundamental_types): Remove functions.
324 (read_array_type): Use builtin_type_int32 instead of FT_INTEGER
325 fundamental type for array range index type.
326 (read_tag_string_type): Likewise for string range index type.
327 Also, do not overwrite FT_CHAR type with new string type.
328 (read_base_type): If DW_AT_name is missing, create unnamed type
329 with given properties instead of looking for a fundamental type.
330 Create new types as TYPE_TARGET_TYPE for DW_ATE_address and
331 DW_ATE_complex_float types.
332 (read_subrange_type): Create new type to represent missing
333 DW_AT_type instead of looking for a fundamental type.
334 (die_type): Use builtin type to represent "void" instead of
335 looking for a fundamental type.
337 * stabsread.c (define_symbol): Use builtin types to represent
338 'r' and 'i' floating-point and integer constants.
340 * gdbtypes.c (lookup_fundamental_type): Remove.
341 * gdbtypes.h (lookup_fundamental_type): Remove prototype.
342 (FT_VOID, FT_BOOLEAN, FT_CHAR, FT_SIGNED_CHAR, FT_UNSIGNED_CHAR,
343 FT_SHORT, FT_SIGNED_SHORT, FT_UNSIGNED_SHORT, FT_INTEGER,
344 FT_SIGNED_INTEGER, FT_UNSIGNED_INTEGER, FT_LONG, FT_SIGNED_LONG,
345 FT_UNSIGNED_LONG, FT_LONG_LONG, FT_SIGNED_LONG_LONG,
346 FT_UNSIGNED_LONG_LONG, FT_FLOAT, FT_DBL_PREC_FLOAT, FT_EXT_PREC_FLOAT,
347 FT_COMPLEX, FT_DBL_PREC_COMPLEX, FT_EXT_PREC_COMPLEX, FT_STRING,
348 FT_FIXED_DECIMAL, FT_FLOAT_DECIMAL, FT_BYTE, FT_UNSIGNED_BYTE,
349 FT_TEMPLATE_ARG, FT_DECFLOAT, FT_DBL_PREC_DECFLOAT,
350 FT_EXT_PREC_DECFLOAT, FT_NUM_MEMBERS): Remove macros.
351 * objfiles.c (struct objfile): Remove fundamental_types member.
352 * symfile.c (reread_symbols): Do not clear fundamental_types.
354 * language.h (struct language_defn): Remove la_fund_type member.
355 (create_fundamental_type): Remove.
356 * language.c (unk_lang_create_fundamental_type): Remove.
357 (unknown_language_defn, auto_language_defn,
358 local_language_defn): Adapt initializer.
359 * ada-lang.c (ada_create_fundamental_type): Remove.
360 (ada_language_defn): Adapt initializer.
361 * c-lang.h (c_create_fundamental_type): Remove prototype.
362 * c-lang.c (c_create_fundamental_type): Remove.
363 (c_language_defn, cplus_language_defn, asm_language_defn,
364 minimal_language_defn): Adapt initializer.
365 * f-lang.c (f_create_fundamental_type): Remove.
366 (f_language_defn): Adapt initializer.
367 * jv-lang.c (java_create_fundamental_type): Remove.
368 (java_language_defn): Adapt initializer.
369 * m2-lang.c (m2_create_fundamental_type): Remove.
370 (m2_language_defn): Adapt initializer.
371 * objc-lang.c (objc_create_fundamental_type): Remove.
372 (objc_language_defn): Adapt initializer.
373 * p-lang.h (pascal_create_fundamental_type): Remove prototype.
374 * p-lang.c (pascal_create_fundamental_type): Remove.
375 (pascal_language_defn): Adapt initializer.
376 * scm-lang.c (scm_language_defn): Adapt initializer.
378 2007-12-04 Maciej W. Rozycki <macro@mips.com>
380 * features/mips-cpu.xml: Specify "regnum" for "r0" explicitly.
381 * features/mips64-cpu.xml: Likewise.
382 * features/mips-fpu.xml: Specify "regnum" for "f0" explicitly.
383 * features/mips64-fpu.xml: Likewise.
384 * features/mips-linux.c: Regenerate.
385 * features/mips64-linux.c: Regenerate.
387 2007-12-04 Maciej W. Rozycki <macro@mips.com>
389 * target.h (target_find_new_threads): Fix definition.
391 2007-12-02 Pierre Muller <muller@ics.u-strasbg.fr>
393 * win32-nat.c (win32_resume): Set the trace bit
394 in the thread identified by inferior_ptid.
397 2007-12-02 Pierre Muller <muller@ics.u-strasbg.fr>
399 * win32-nat.c (open_process_used): New static variable.
400 (win32_init_thread_list): Remove call to CloseHandle for thread.
401 (win32_delete_thread): Ditto.
402 (fake_create_process): Set open_process_used if OpenProcess call is
404 (get_win32_debug_event): Do not close process handle.
405 (do_initial_win32_stuff): Set open_process_used to zero.
406 (win32_mourn_inferior): Call CloseHandle for current_process_handle if
407 open_process_used is set.
408 (win32_kill_inferior): Do not close process and main_thread handles.
410 2007-11-30 Daniel Jacobowitz <dan@codesourcery.com>
412 * remote.c (remote_cmdlist): New variable.
413 (PACKET_vFile_open, PACKET_vFile_pread, PACKET_vFile_pwrite)
414 (PACKET_vFile_close, PACKET_vFile_unlink): New constants.
415 (remote_buffer_add_string, remote_buffer_add_bytes)
416 (remote_buffer_add_int, remote_hostio_parse_result)
417 (remote_hostio_send_command, remote_hostio_open, remote_hostio_pwrite)
418 (remote_hostio_pread, remote_hostio_close, remote_hostio_unlink)
419 (remote_fileio_errno_to_host, remote_hostio_error, fclose_cleanup)
420 (remote_hostio_close_cleanup, remote_file_put, remote_file_get)
421 (remote_file_delete, remote_put_command, remote_get_command)
422 (remote_delete_command, remote_command): New functions.
423 (_initialize_remote): Register new packets and commands.
424 * Makefile.in (gdb_fileio_h): New variable.
426 (SUBDIR_MI_OBS): Add mi-cmd-target.o.
427 (SUBDIR_MI_SRCS): Add mi/mi-cmd-target.c.
428 (mi-cmd-target.o): New rule.
429 * mi/mi-cmd-target.c: New file.
430 * mi/mi-cmds.c (mi_cmds): Add target-file-delete, target-file-get,
432 * mi/mi-cmds.h (mi_cmd_target_file_get, mi_cmd_target_file_put)
433 (mi_cmd_target_file_delete): Declare.
434 * remote.h (remote_file_put, remote_file_get, remote_file_delete):
436 * NEWS: Describe new file transfer support.
438 2007-11-30 Vladimir Prus <vladimir@codesourcery.com>
440 * infrun.c (handle_inferior_event): Don't
441 ignore beakpoints if trap_expected is set.
443 2007-11-30 Vladimir Prus <vladimir@codesourcery.com>
445 Make insert_breakpoints return void.
446 * breakpoint.h (insert_breakpoints): Change
448 * breakpoint.c (insert_breakpoints): Change
449 return type to void. Rename local return_val
451 * infrun.c (keep_going): Instead of checking
452 return value from insert_breakpoints, catch exception.
454 2007-11-29 Vladimir Prus <vladimir@codesourcery.com>
456 Stop infrun from tracking breakpoint insertion status.
458 The checks of breakpoints_inserted before calling
459 remove_breakpoints are removed, as remove_breakpoint
460 won't touch uninserted breakpoints. In a number of places,
461 we're interested if a breakpoint is inserted at particular
462 PC, and we now use breakpoint_inserted_here_p. In a few
463 places, insert_breakpoints can be called unconditionally,
464 since it won't try to insert already inserted breakpoint.
466 * breakpoint.h (regular_breakpoint_inserted_here_p): New
468 * breakpoint.c (regular_breakpoint_inserted_here_p): New.
469 (breakpoint_inserted_here_p): Use
470 regular_breakpoint_inserted_here_p.
471 * infrun.c (breakpoints_inserted): Remove.
472 (resume): Don't check for breakpoints_inserted before
473 remove_hw_watchpoints. Use breakpoint_inserted_here_p.
474 (proceed, init_wait_for_inferior): Don't set breakpoints_inserted.
475 (handle_inferior_event): Don't use breakpoints_inserted.
476 Use breakpoints_meant_to_be_inserted and
477 breakpoints_inserted_here_p.
478 (insert_step_resume_breakpoint_at_sal, keep_going): Use
479 breakpoints_meant_to_be_inserted. Don't set breakpoints_inserted.
480 (normal_stop): Don't check for breakpoints_inserted. Don't
481 set breakpoints_inserted.
482 (keep_going): Don't check for breakpoints_inserted.
483 (insert_step_resume_breakpoint_at_sal): Don't insert
486 2007-11-28 Jim Blandy <jimb@codesourcery.com>
488 * breakpoint.c (watch_command_1): When the watchpoint isn't local
489 to any frame, initialize watchpoint_frame using null_frame_id, not
492 2007-11-28 Vladimir Prus <vladimir@codesourcery.com>
494 * infrun.c (resume): Set right thread even if
495 stepping over breakpoint using software single step.
497 2007-11-28 Nick Roberts <nickrob@snap.net.nz>
499 * mi/mi-cmd-var.c (print_varobj): Revert change from 2007-08-31.
500 (mi_print_value_p): Guard against type = NULL.
502 2007-11-27 Thiago Jung Bauermann <bauerman@br.ibm.com>
504 * dfp.c (decimal_from_string): Remove superfluous newline from
506 (decimal_to_string): Likewise.
507 * printcmd.c (printf_command): Change string buffer to use
508 MAX_DECIMAL_STRING constant.
509 * value.c (value_from_decfloat): Likewise.
511 2007-11-27 Ulrich Weigand <uweigand@de.ibm.com>
513 * Makefile.in (ALL_TARGET_OBS): Remove object files that require
514 64-bit CORE_ADDR and BFD support, move them to ...
515 (ALL_64_TARGET_OBS): ... this new variable.
516 * configure.ac: Check for --enable-64-bit-bfd option. Only add
517 64-bit targets with --enable-targets=all if BFD supports 64-bit.
518 * configure: Regenerate.
520 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Do not claim
521 all elf32-i386 executables, only cygwin core files.
523 2007-11-25 Jan Kratochvil <jan.kratochvil@redhat.com>
525 * dwarf2read.c (dwarf2_get_pc_bounds): Moved the `DW_AT_ranges' parsing
526 code with its variables OBJFILE, CU_HEADER and OBFD into ...
527 (dwarf2_ranges_read): ... a new function.
528 (read_partial_die): Implemented the parsing of `DW_AT_ranges'.
530 2007-11-24 Pedro Alves <pedro_alves@portugalmail.pt>
532 * win32-nat.c (DR6_CLEAR_VALUE): New define.
533 (thread_info_struct): Rename suspend_count to suspended, to be
535 (thread_rec): Only suspend the thread if it wasn't suspended by
536 gdb before. Warn if suspending failed.
537 (win32_add_thread): Set Dr6 to DR6_CLEAR_VALUE.
538 (win32_continue): Set Dr6 to DR6_CLEAR_VALUE. Update usage of the
539 `suspended' flag. Do ContinueDebugEvent after resuming the
540 suspended threads, not before. Set threads' contexts before
541 resuming them, not after.
542 (win32_resume): Set Dr6 to DR6_CLEAR_VALUE.
544 2007-11-23 Vladimir Prus <vladimir@codesourcery.com>
546 * breakpoint.c (insert_breakpoints)
547 (insert_bp_location): Remove stale comments.
549 2007-11-23 Maciej W. Rozycki <macro@mips.com>
551 * mips-linux-tdep.h: Fix some formatting.
553 2007-11-21 Markus Deuling <deuling@de.ibm.com>
555 * stack.c (print_args_stub): Use get_frame_arch to get at the current
556 architecture and replace current_gdbarch.
557 (frame_info): Likewise.
559 2007-11-21 Nick Roberts <nickrob@snap.net.nz>
561 * varobj.c (c_variable_editable, cplus_variable_editable)
562 (java_variable_editable, variable_editable): Delete.
563 (varobj_editable_p): Replace above functions with one language
564 independent function. Check for an lvalue.
565 (varobj_get_attributes, varobj_set_value): Use varobj_editable_p.
566 (struct language_specific): Delete variable_editable field.
568 * mi-cmd-var.c (mi_cmd_var_assign): Simplify.
570 * varobj.h: Add extern for varobj_editable_p.
572 2007-11-20 Vladimir Prus <vladimir@codesourcery.com>
574 Remove unused breakpoint fields.
575 * breakpoint.h (struct breakpoint): Remove
576 from_tty and flag fields.
577 * breakpoint.c (break_command_1): Don't set
578 from_tty and flag field set of breakpoint.
579 (create_ada_exception_breakpoint): Don't set
582 2007-11-20 David Ung <davidu@mips.com>
583 Maciej W. Rozycki <macro@mips.com>
585 * mips-tdep.c (mips16_scan_prologue): Handle the MIPS16e SAVE
588 2007-11-20 Vladimir Prus <vladimir@codesourcery.com>
590 * infrun.c (resume): Clarify logic that
591 decides if a single thread must be resumed. Add
594 2007-11-20 Vladimir Prus <vladimir@codesourcery.com>
596 * breakpoint.c (disable_breakpoints_in_unloaded_shlib):
599 2007-11-19 Markus Deuling <deuling@de.ibm.com>
601 * gdbarch.sh (register_sim_regno): Add gdbarch as parameter.
602 * gdbarch.{c,h}: Regenerate.
604 * arch-utils.h (legacy_register_sim_regno): Add gdbarch as parameter.
605 * score-tdep.c (score_register_sim_regno): Likewise.
606 * sim-regno.h (one2one_register_sim_regno): Likewise.
608 * arch-utils.c (legacy_register_sim_regno): Add gdbarch as parameter.
609 Replace current_gdbarch by gdbarch.
610 * sh-tdep.c (sh_sh2a_register_sim_regno)
611 (sh_dsp_register_sim_regno): Likewise.
612 * rs6000-tdep.c (rs6000_register_sim_regno): Likewise.
613 * mips-tdep.c (mips_register_sim_regno): Likewise.
614 * m32c-tdep.c (m32c_register_sim_regno): Likewise.
615 * frv-tdep.c (frv_register_sim_regno): Likewise.
616 * arm-tdep.c (arm_register_sim_regno): Likewise.
617 * remote-sim.c (one2one_register_sim_regno): Likewise.
619 2007-11-16 Ulrich Weigand <uweigand@de.ibm.com>
621 * configure.ac (--enable-targets): New configure option.
622 Collect gdb_target_obs of multiple targets into TARGET_OBS.
623 Call configure.tgt multiple times, using $targ as operand.
624 * configure.tgt: Operate on $targ instead of $target.
625 * configure: Regenerate.
626 * Makefile.in (ALL_TARGET_OBS): Define.
628 * NEWS: Mention --enable-targets option.
630 2007-11-16 Ulrich Weigand <uweigand@de.ibm.com>
632 * mips-tdep.c (show_mipsfpu_command): Do not crash if called when
633 current architecture is not MIPS.
635 2007-11-16 Ulrich Weigand <uweigand@de.ibm.com>
637 * cli/cli-setshow.c (do_setshow_command): Use dynamically sized buffer
638 to construct error message if no argument was supplied.
640 2007-11-16 Ulrich Weigand <uweigand@de.ibm.com>
642 * i386nbsd-tdep.c (i386nbsd_aout_supply_regset): Remove.
643 (i386nbsd_aout_regset_from_core_section): Likewise.
644 (i386nbsd_aout_init_abi): Likewise.
645 (_initialize_i386nbsd_tdep): Do not register i386nbsd_aout_init_abi.
647 * vaxnbsd-tdep.c (vaxnbsd_aout_init_abi): Remove.
648 (_initialize_vaxnbsd_tdep): Do not register vaxnbsd_aout_init_abi.
650 2007-11-16 Ulrich Weigand <uweigand@de.ibm.com>
652 * amd64fsdb-tdep.c (amd64fbsd_sigtramp_start_addr): Use ULL suffix.
653 (amd64fbsd_sigtramp_end_addr): Likewise.
655 * iq2000-tdep.c (iq2000_pointer_to_address): Fix argument type.
656 (iq2000_address_to_pointer): Likewise.
657 (iq2000_frame_prev_register): Likewise.
658 (iq2000_extract_return_value): Use regcache_cooked_read_unsigned
659 instead of regcache_cooked_read into CORE_ADDR variable.
660 (iq2000_return_value): Fix argument types.
662 * m32r-rom.c (m32r_load_section): Fix printf argument type.
663 (m32r_load): Likewise.
665 * m68kbsd-tdep.c: Include "gdbtypes.h".
666 * Makefile.in: Update dependencies.
668 * mn10300-tdep.c (mn10300_frame_unwind_cache): Fix aliasing violation.
670 * nto-tdep.c (LM_ADDR): Do not refer to no-longer-existing
671 lmo->l_addr_size element.
673 * remote-m32r-sdi.c (m32r_xfer_memory): Use paddr to print address.
674 (m32r_insert_breakpoint): Likewise.
675 (m32r_remove_breakpoint): Likewise.
676 (m32r_insert_watchpoint): Likewise.
677 (m32r_remove_watchpoint): Likewise.
678 (m32r_load): Fix printf argument type.
680 * xtensa-tdep.c (xtensa_regset_from_core_section): Fix printf
682 (xtensa_frame_this_id): Do not cast pointers to "int" for output.
683 (xtensa_frame_prev_register): Likewise.
684 (xtensa_push_dummy_call): Likewise.
686 2007-11-16 Ulrich Weigand <uweigand@de.ibm.com>
688 * config/alpha/alpha-linux.mt: Remove file.
689 * config/alpha/alpha.mt: Remove file.
690 * config/alpha/alpha-osf1.mt: Remove file.
691 * config/alpha/fbsd.mt: Remove file.
692 * config/alpha/nbsd.mt: Remove file.
693 * config/alpha/obsd.mt: Remove file.
694 * config/arm/embed.mt: Remove file.
695 * config/arm/linux.mt: Remove file.
696 * config/arm/nbsd.mt: Remove file.
697 * config/arm/obsd.mt: Remove file.
698 * config/arm/wince.mt: Remove file.
699 * config/avr/avr.mt: Remove file.
700 * config/cris/cris.mt: Remove file.
701 * config/frv/frv.mt: Remove file.
702 * config/h8300/h8300.mt: Remove file.
703 * config/i386/cygwin.mt: Remove file.
704 * config/i386/fbsd64.mt: Remove file.
705 * config/i386/fbsd.mt: Remove file.
706 * config/i386/i386gnu.mt: Remove file.
707 * config/i386/i386.mt: Remove file.
708 * config/i386/i386sol2.mt: Remove file.
709 * config/i386/linux64.mt: Remove file.
710 * config/i386/linux.mt: Remove file.
711 * config/i386/mingw.mt: Remove file.
712 * config/i386/nbsd64.mt: Remove file.
713 * config/i386/nbsd.mt: Remove file.
714 * config/i386/nto.mt: Remove file.
715 * config/i386/obsd64.mt: Remove file.
716 * config/i386/obsd.mt: Remove file.
717 * config/i386/sol2-64.mt: Remove file.
718 * config/ia64/ia64.mt: Remove file.
719 * config/ia64/linux.mt: Remove file.
720 * config/iq2000/iq2000.mt: Remove file.
721 * config/m32c/m32c.mt: Remove file.
722 * config/m32r/linux.mt: Remove file.
723 * config/m32r/m32r.mt: Remove file.
724 * config/m68hc11/m68hc11.mt: Remove file.
725 * config/m68k/linux.mt: Remove file.
726 * config/m68k/monitor.mt: Remove file.
727 * config/m68k/nbsd.mt: Remove file.
728 * config/m68k/obsd.mt: Remove file.
729 * config/m88k/obsd.mt: Remove file.
730 * config/mep/mep.mt: Remove file.
731 * config/mips/embed.mt: Remove file.
732 * config/mips/irix5.mt: Remove file.
733 * config/mips/irix6.mt: Remove file.
734 * config/mips/linux.mt: Remove file.
735 * config/mips/nbsd.mt: Remove file.
736 * config/mips/obsd64.mt: Remove file.
737 * config/mn10300/linux.mt: Remove file.
738 * config/mn10300/mn10300.mt: Remove file.
739 * config/mt/mt.mt: Remove file.
740 * config/pa/hppahpux.mt: Remove file.
741 * config/pa/hppa.mt: Remove file.
742 * config/pa/linux.mt: Remove file.
743 * config/pa/obsd.mt: Remove file.
744 * config/powerpc/aix.mt: Remove file.
745 * config/powerpc/linux.mt: Remove file.
746 * config/powerpc/nbsd.mt: Remove file.
747 * config/powerpc/obsd.mt: Remove file.
748 * config/powerpc/ppc-eabi.mt: Remove file.
749 * config/s390/s390.mt: Remove file.
750 * config/score/embed.mt: Remove file.
751 * config/sh/embed.mt: Remove file.
752 * config/sh/linux.mt: Remove file.
753 * config/sh/nbsd.mt: Remove file.
754 * config/sh/obsd.mt: Remove file.
755 * config/sh/sh64.mt: Remove file.
756 * config/sparc/embed.mt: Remove file.
757 * config/sparc/fbsd.mt: Remove file.
758 * config/sparc/linux64.mt: Remove file.
759 * config/sparc/linux.mt: Remove file.
760 * config/sparc/nbsd64.mt: Remove file.
761 * config/sparc/nbsd.mt: Remove file.
762 * config/sparc/obsd64.mt: Remove file.
763 * config/sparc/obsd.mt: Remove file.
764 * config/sparc/sol2-64.mt: Remove file.
765 * config/sparc/sol2.mt: Remove file.
766 * config/sparc/sparc64.mt: Remove file.
767 * config/sparc/sparc.mt: Remove file.
768 * config/spu/spu.mt: Remove file.
769 * config/v850/v850.mt: Remove file.
770 * config/vax/nbsd.mt: Remove file.
771 * config/vax/obsd.mt: Remove file.
772 * config/vax/vax.mt: Remove file.
773 * config/xstormy16/xstormy16.mt: Remove file.
774 * config/xtensa/xtensa.mt: Remove file.
776 * configure.tgt (gdb_target_cpu): Remove. Do not set anywhere.
777 (gdb_target): Likewise.
778 (gdb_target_obs): Document. Set for every target to contents
779 of TDEPFILES in former .mt makefile fragment.
781 * configure.ac (TARGET_OBS): Define.
782 (target_makefile_frag, gdb_target_cpu): Do not define.
783 * configure: Regenerate.
785 * Makefile.in (MT_FLAGS): Remove.
786 (GLOBAL_CFLAGS): Update.
787 (TARGET_OBS): Substitute from configure.
788 (DEPFILES): Remove TDEPFILES, add TARGET_OBS.
789 (@target_makefile_frag@): Remove.
791 2007-11-16 Ulrich Weigand <uweigand@de.ibm.com>
793 * config/arm/embed.mt (SIM_OBS, SIM): Remove.
794 * config/avr/avr.mt (SIM_OBS, SIM): Remove.
795 * config/frv/frv.mt (SIM_OBS, SIM): Remove.
796 * config/h8300/h8300.mt (SIM_OBS, SIM): Remove.
797 * config/iq2000/iq2000.mt (SIM_OBS, SIM): Remove.
798 * config/m32c/m32c.mt (SIM_OBS, SIM): Remove.
799 * config/m32r/linux.mt (SIM_OBS, SIM): Remove.
800 * config/m32r/m32r.mt (SIM_OBS, SIM): Remove.
801 * config/m68hc11/m68hc11.mt (SIM_OBS, SIM): Remove.
802 * config/mips/embed.mt (SIM_OBS, SIM): Remove.
803 * config/mips/linux.mt (SIM_OBS, SIM): Remove.
804 * config/mips/nbsd.mt (SIM_OBS, SIM): Remove.
805 * config/mn10300/mn10300.mt (SIM_OBS, SIM): Remove.
806 * config/powerpc/linux.mt (SIM_OBS, SIM): Remove.
807 * config/powerpc/nbsd.mt (SIM_OBS, SIM): Remove.
808 * config/powerpc/ppc-sim.mt: Remove file.
809 * config/sh/embed.mt (SIM_OBS, SIM): Remove.
810 * config/sh/linux.mt (SIM_OBS, SIM): Remove.
811 * config/sh/nbsd.mt (SIM_OBS, SIM): Remove.
812 * config/sh/sh64.mt (SIM_OBS, SIM): Remove.
813 * config/sparc/embed.mt (SIM_OBS, SIM): Remove.
814 * config/v850/v850.mt (SIM_OBS, SIM): Remove.
815 * config/xstormy16/xstormy16.mt (SIM_OBS, SIM): Remove.
817 * configure.tgt (gdb_sim): Document variable.
818 (arm*-*-* | thumb*-*-* | strongarm*-*-* | xscale-*-*): Set it.
821 (h8300-*-*): Likewise.
822 (iq2000-*-*): Likewise.
823 (m32c-*-*): Likewise.
824 (m32r*-*-linux*): Likewise.
825 (m32r*-*-*): Likewise.
826 (m68hc11*-*-*|m6811*-*-*): Likewise.
827 (mips*-*-*): Likewise.
828 (mips*-*-linux*): Likewise.
829 (mips*-*-netbsd* | mips*-*-knetbsd*-gnu): Likewise.
830 (mn10300-*-*): Likewise.
831 (powerpc-*-linux* | powerpc64-*-linux*): Likewise.
832 (powerpc-*-netbsd* | powerpc-*-knetbsd*-gnu): Likewise.
833 (powerpc*-*-*): Use ppc-eabi target. Conditionally set gdb_sim.
835 (sh-*-linux*): Likewise.
836 (sh*-*-netbsdelf* | sh*-*-knetbsd*-gnu): Likewise.
837 (sh64-*-elf*): Likewise.
838 (sparc-*-rtems*): Likewise.
839 (v850*-*-elf): Likewise.
840 (xstormy16-*-*): Likewise.
842 * configure.ac (IGNORE_SIM, IGNORE_SIM_OBS): Do not set.
843 (SIM, SIM_OBS): Set depending on ${ignore_sim} and ${gdb_sim}.
844 * configure: Regenerate.
845 * Makefile.in (SIM, SIM_OBS): Substitute from configure.
846 (@IGNORE_SIM@, @IGNORE_SIM_OBS@): Remove.
848 2007-11-16 Ulrich Weigand <uweigand@de.ibm.com>
850 * configure.tgt (gdb_osabi, build_gdbserver): Comment variables.
851 (arm*-*-*): Do not set obsolete build_rdi_share variable.
853 (*-*-freebsd* | *-*-kfreebsd*-gnu): Remove generic case, replace by ...
854 (alpha*-*-freebsd* | alpha*-*-kfreebsd*-gnu)
855 (i[34567]86-*-freebsd* | i[34567]86-*-kfreebsd*-gnu)
856 (sparc*-*-freebsd* | sparc*-*-kfreebsd*-gnu): ... specific cases.
857 (x86_64-*-freebsd* | x86_64-*-kfreebsd*-gnu): Re-sort.
859 (xscale-*-*): Merge into arm*-*-* case.
860 (fido-*-elf*): Merge into m68*-*-elf* case.
861 (m68*-*-aout*, m68*-*-coff*, m68*-*-elf*, m68*-*-rtems*,
862 m68*-*-uclinux*): Merge cases.
863 (powerpc-*-linux*, powerpc64-*-linux*): Merge cases.
864 (sh-*-coff*, sh-*-elf*): Merge into sh* case.
866 2007-11-16 Ulrich Weigand <uweigand@de.ibm.com>
868 * configure.tgt: Reformat main case statement.
870 2007-11-16 Ulrich Weigand <uweigand@de.ibm.com>
872 * configure.ac (hostfile, targetfile): Remove.
873 (GDB_XM_FILE, GDB_TM_FILE): Do not define.
874 (xm_h, tm_h): Likewise.
875 (DEPRECATED_TM_FILE, XM_FILE): Do not substitute into Makefile.
876 * configure, config.in: Regenerate.
878 * Makefile.in (xm_h, tm_h): Remove. Update dependencies.
879 (TAGS): Do not consider DEPRECATED_TM_FILE or XM_FILE.
880 (clean, local-maintainer-clean): Do not remove xm.h or tm.h.
881 * defs.h: Do not include "xm.h" or "tm.h".
883 * gdbarch.sh (verify_gdbarch): Do not dump GDB_XM_FILE or GDB_TM_FILE.
884 * gdbarch.c: Regenerate.
886 * config/score/embed.mt: Remove obsolete comment.
888 2007-11-16 Markus Deuling <deuling@de.ibm.com>
890 * gdbarch.sh (cannot_fetch_register, cannot_store_register): Add gdbarch
892 * gdbarch.{c,h}: Regenerate.
894 * alpha-tdep.c (alpha_cannot_fetch_register)
895 (alpha_cannot_store_register): Add gdbarch as parameter. Replace
896 current_gdbarch by gdbarch.
897 * cris-tdep.c (cris_cannot_fetch_register, cris_cannot_store_register)
898 (crisv32_cannot_fetch_register)
899 (crisv32_cannot_store_register): Likewise.
900 * arch-utils.c (cannot_register_not): Likewise.
901 * arch-utils.h (cannot_register_not): Likewise.
902 * hppa-tdep.c (hppa32_cannot_store_register)
903 (hppa32_cannot_store_register, hppa64_cannot_store_register)
904 (hppa64_cannot_fetch_register): Likewise.
905 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register)
906 (mipsnbsd_cannot_store_register): Likewise.
908 2007-11-16 Markus Deuling <deuling@de.ibm.com>
910 * m32r-rom.c (m32r_supply_register): Use get_regcache_arch to get at
911 the current architecture by regcache.
912 * ppcnbsd-nat.c (ppcnbsd_supply_pcb): Likewise.
913 * ppc-linux-nat.c (fetch_altivec_register, fetch_spe_register)
914 (fetch_register, supply_vrregset, fetch_ppc_registers)
915 (store_altivec_register, store_spe_register, store_register)
916 (fill_vrregset, store_ppc_registers): Likewise.
917 * ppcobsd-nat.c (ppcobsd_supply_pcb): Likewise.
918 * win32-nat.c (do_win32_fetch_inferior_registers)
919 (do_win32_store_inferior_registers): Likewise.
920 * procfs.c (procfs_fetch_registers, procfs_store_registers): Likewise.
921 * remote-m32r-sdi.c (m32r_fetch_registers)
922 (m32r_store_registers): Likewise.
923 * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register): Likewise.
925 * trad-frame.c (trad_frame_alloc_saved_regs): Replace current_gdbarch by
927 * user-regs.c (user_reg_map_name_to_regnum): Likewise.
928 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call)
929 (do_ppc_sysv_return_value, ppc64_sysv_abi_push_dummy_call)
930 (ppc64_sysv_abi_return_value): Likewise.
931 * m32c-tdep.c (m32c_register_reggroup_p): Likewise.
932 * m2-lang.c (build_m2_types): Likewise.
933 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache
934 * ppcnbsd-tdep.c (ppcnbsd_sigtramp_cache_init): Likewise.
935 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_cache): Likewise.
936 * rs6000-tdep.c (ppc_dwarf2_frame_init_reg): Likewise.
938 * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Use get_frame_arch to
939 get at the current architecture by frame_info.
940 * gcore.c (derive_stack_segment): Likewise.
942 * shnbsd-nat.c (GETREGS_SUPPLIES): Add gdbarch parameter.
943 (shnbsd_fetch_inferior_registers, shnbsd_store_inferior_registers): Add
944 gdbarch to GETREGS_SUPPLIES call.
946 2007-11-16 Ulrich Weigand <uweigand@de.ibm.com>
948 * elfread.c (ST_REGULAR, ST_DYNAMIC, ST_SYNTHETIC): New defines.
949 (elf_symtab_read): Rename DYNAMIC argument to TYPE. Do not access
950 ELF-private symbol data when processing synthetic symbols. Use
951 udata.p to get at size of ppc64 synthetic 'dot' symbols.
952 (elf_symfile_read): Pass TYPE argument to elf_symtab_read.
954 2007-11-15 Doug Evans <dje@google.com>
956 * buildsym.h (subfiles): Move ...
957 * buildsym.c (subfiles): ... to here and make static.
959 * symmisc.c (maintenance_info_symtabs): Print linetable info.
961 2007-11-15 Markus Deuling <deuling@de.ibm.com>
963 * mipsnbsd-tdep.h (SIZEOF_STRUCT_REG, SIZEOF_STRUCT_FPREG): Remove
965 2007-11-15 Markus Deuling <deuling@de.ibm.com>
967 * arm-tdep.c (arm_prologue_this_id): Replace LOWEST_PC by its
968 expression and use get_frame_arch to replace current_gdbarch by frame's
970 * arm-tdep.h (LOWEST_PC): Remove
972 2007-11-15 Vladimir Prus <vladimir@codesourcery.com>
974 Apply const qualifier to some users of bp_location.
975 * breakpoint.h (struct bpstats): Make
976 the breakpoint_at field point at const bp_location.
977 * breakpoint.c (bpstat_alloc): Accept const
979 (breakpoint_here_p, breakpoint_inserted_here_p)
980 (software_breakpoint_inserted_here_p)
981 (breakpoint_thread_match, bpstat_stop_status)
982 (read_memory_nobpt, bpstat_have_active_hw_watchpoints): Use
983 const bp_location for iteration.
984 (print_it_typical, print_bp_stop_message): Use
985 const bp_location variable.
987 2007-11-15 Vladimir Prus <vladimir@codesourcery.com>
989 Make mark_breakpoints_out static.
990 * breakpoint.h (mark_breakpoints_out): Remove
992 * breakpoint.c (mark_breakpoints_out): Make static.
994 2007-11-15 Vladimir Prus <vladimir@codesourcery.com>
996 Prevent clear_command from directly modifying breakpoint list.
997 * Makefile.in (breakpoint_h): Update dependency.
998 * breakpoint.c (clear_command): Do not remove
999 breakpoints from breakpoint_chain. Collect breakpoints
1000 to delete in a vector.
1001 * breakpoint.h (breakpoint_p): New typedef for pointer to
1002 breakpoint. Register vector of breakpoint_p.
1004 2007-11-15 Vladimir Prus <vladimir@codesourcery.com>
1006 Remove 'run_cleanup'.
1007 * defs.h (do_run_cleanups, make_run_cleanup): Remove
1009 * infcmd.c (run_command_1): Call clear_solib instead
1011 * jv-lang.c (java_rerun_cleanup): Remove, for lack of
1013 * solib.c (solib_cleanup_queued, do_clear_solib): Remove.
1014 (update_solib_lib): Don't setup run cleanup.
1015 (no_shared_libraries): Call clear_solib, not do_clear_solib.
1016 * utils.c (run_cleanup_chain, make_run_cleanup)
1017 (do_run_cleanups): Remove.
1019 2007-11-15 Vladimir Prus <vladimir@codesourcery.com>
1021 Remove CLEAR_SOLIB use.
1022 * corelow.c (core_close): Don't check for CLEAR_SOLIB.
1023 * infcmd.c (attach_command): Likewise.
1025 2007-11-14 Doug Evans <dje@google.com>
1027 * buildsym.c (start_subfile,start_symtab): Doc fixes.
1029 2007-11-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
1031 * tui/tui-data.c (tui_prev_win): Guard against NULL.
1033 2007-11-12 Markus Deuling <deuling@de.ibm.com>
1035 * gdbarch.sh (gdbarch_alloc): Replace current_gdbarch by gdbarch. Remove
1037 (verify_gdbarch, gdbarch_dump): Likewise.
1038 (do_read): Update comment.
1039 (addr_bit, bfd_arch_info, target_desc, long_long_bit, floatformat)
1040 (ptr_bit, name_of_malloc): Replace current_gdbarch by gdbarch.
1041 * gdbarch.{c,h}: Regenerate.
1043 2007-11-12 Markus Deuling <deuling@de.ibm.com>
1045 * xtensa-tdep.c (ARG_1ST): Replace ARGS_FIRST_REG by its expression.
1046 (ARGS_FIRST_REG): Remove.
1047 (areg_numer): New function.
1048 (xtensa_pseudo_register_read, xtensa_frame_prev_register)
1049 (xtensa_extract_return_value, xtensa_store_return_value)
1050 (xtensa_frame_cache): Replace AREG_NUMBER by areg_number.
1051 (AREG_NUMBER): Remove.
1052 (XTENSA_IS_ENTRY, ARG_NOF, ARG_1ST): Add gdbarch as parameter.
1053 (xtensa_frame_cache): Update use of XTENSA_IS_ENTRY.
1054 (xtensa_push_dummy_call): Update use of ARG_NOF.
1055 (extract_call_winsize): Add gdbarch as parameter. Replace
1056 current_gdbarch by gdbarch.
1057 (xtensa_extract_return_value, xtensa_store_return_value): Update call
1058 of extract_call_winsize.
1060 2007-11-10 Joel Brobecker <brobecker@adacore.com>
1062 * NEWS: Add entry for new set/show print frame-args command.
1064 2007-11-09 Kevin Buettner <kevinb@redhat.com>
1066 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Add missing
1067 register number to map. Adjust warning check and error/warning
1068 return value code to match expectations of this function's callers.
1070 2007-11-09 Joel Brobecker <brobecker@adacore.com>
1072 * stack.c (print_this_frame_argument_p): Handle arguments passed
1073 by reference properly.
1075 2007-11-09 Joel Brobecker <brobecker@adacore.com>
1077 * stack.c (print_frame_arguments_choices): New static global.
1078 (print_frame_arguments): Likewise.
1079 (print_this_frame_argument_p): New function.
1080 (print_frame_args): Print the argument value only when appropriate.
1081 (_initialize_task): Add new "set/show print frame-arguments" command.
1083 2007-11-09 Luis Machado <luisgpm@br.ibm.com>
1085 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Move
1086 saved_dabr_value assignment to the correct position.
1088 2007-11-09 Markus Deuling <deuling@de.ibm.com>
1090 * arch-utils.c (generic_convert_register_p): Add gdbarch as parameter.
1091 * arch-utils.h (generic_convert_register_p): Likewise.
1093 2007-11-09 Markus Deuling <deuling@de.ibm.com>
1095 * gdbarch.sh (convert_register_p): Add gdbarch as parameter.
1096 * ia64-tdep.c (ia64_convert_register_p): Likewise.
1097 * i387-tdep.c (i387_convert_register_p): Likewise.
1098 * i387-tdep.h (i387_convert_register_p): Likewise.
1099 * alpha-tdep.c (alpha_convert_register_p): Likewise.
1100 * gdbarch.{c,h}: Regenerate.
1102 * rs6000-tdep.c (rs6000_convert_register_p): Add gdbarch as parameter.
1103 Replace current_gdbarch by gdbarch.
1104 * mips-tdep.c (mips_convert_register_p): Likewise.
1105 * m68k-tdep.c (m68k_convert_register_p): Likewise.
1106 * i386-tdep.c (i386_convert_register_p): Likewise.
1108 2007-11-08 Aleksandar Ristovski <aristovski@qnx.com>
1110 * gdb_string.h: Include <strings.h>.
1112 2007-11-08 Vladimir Prus <vladimir@codesourcery.com>
1114 * breakpoint.c (break_command_1): Remove
1115 pending_bp parameter.
1116 (create_breakpoint): Likewise.
1117 (create_breakpoints): Likewise. Adjust call to
1119 (break_command_1): Likewise. Adjust call to
1121 (do_captured_breakpoint): Adjust call to
1123 (break_command, tbreak_command, hbreak_command)
1124 (stopin_command, stopat_command): Adjust call
1127 2007-11-07 Joseph Myers <joseph@codesourcery.com>
1128 Daniel Jacobowitz <dan@codesourcery.com>
1130 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Right-align
1131 struct values smaller than one doubleword; left-align those
1132 larger. Pass structs containing a single floating-point value in
1135 2007-11-07 Joseph Myers <joseph@codesourcery.com>
1136 Daniel Jacobowitz <dan@codesourcery.com>
1138 * gdbtypes.c (floatformats_ibm_long_double): New.
1139 * gdbtypes.h (floatformats_ibm_long_double): Declare.
1140 * ia64-tdep.c (floatformat_ia64_ext): Update for addition of
1142 * mips-tdep.c (n32n64_floatformat_always_valid,
1143 floatformat_n32n64_long_double_big, floatformats_n32n64_long):
1145 (mips_gdbarch_init): Use floatformats_ibm_long_double instead of
1146 floatformats_n32n64_long.
1147 * ppc-linux-tdep.c (ppc_linux_init_abi): Use 128-bit IBM long
1149 * doublest.c (convert_floatformat_to_doublest,
1150 convert_doublest_to_floatformat): Handle split floating-point
1152 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Handle IBM long
1154 (ppc64_sysv_abi_push_dummy_call): Likewise.
1155 (do_ppc_sysv_return_value): Handle IBM long double return.
1157 2007-11-07 Vladimir Prus <vladimir@codesourcery.com>
1159 Fix crash when a variable object being deleted
1160 has any of its children deleted previously.
1162 * varobj.c (delete_variable_1): Don't recurse
1163 into deleted children.
1165 2007-11-07 Markus Deuling <deuling@de.ibm.com>
1167 * gdbarch.sh (legacy_virtual_frame_pointer): Add gdbarch parameter.
1168 * gdbarch.{c,h}: Regenerate.
1169 * arch-utils.c (legacy_virtual_frame_pointer): Add gdbarch parameter.
1170 Replace current_gdbarch by gdbarch.
1171 * m32c-tdep.c (m32c_virtual_frame_pointer): Likewise.
1172 * mips-tdep.c (mips_virtual_frame_pointer): Likewise.
1173 * spu-tdep.c (spu_virtual_frame_pointer): Likewise.
1175 2007-11-07 Markus Deuling <deuling@de.ibm.com>
1177 * shnbsd-tdep.c (shnbsd_supply_gregset, shnbsd_collect_gregset): Use
1178 get_regcache_arch to get at the current architecture by regcache.
1179 * xstormy16-tdep.c (xstormy16_frame_prev_register): Use get_frame_arch
1180 to get at the current architecture by frame_info.
1181 * fbsd-nat.c (fbsd_make_corefile_notes): Use get_regcache_arch to get
1182 at the current architecture by regcache.
1183 * gnu-v3-abi.c (gnuv3_skip_trampoline): Use get_frame_arch to get at
1184 the current architecture by frame_info.
1185 (build_gdb_vtable_type): Replace current_gdbarch by gdbarch.
1186 * aix-thread.c (special_register_p): Add gdbarch as parameter.
1187 (fetch_regs_kernel_thread, store_regs_kernel_thread): Add gdbarch to
1188 caller of special_register_p.
1190 2007-11-07 Markus Deuling <deuling@de.ibm.com>
1192 * infcall.c (call_function_by_hand): Use get_frame_arch to get at the
1193 current architecture by frame_info.
1195 2007-11-07 Markus Deuling <deuling@de.ibm.com>
1197 * xtensa-tdep.h (SIZEOF_GREGSET, XTENSA_ELF_NGREG) Remove.
1199 2007-11-07 Markus Deuling <deuling@de.ibm.com>
1201 * s390-nat.c (supply_gregset, fill_gregset): Use get_regcache_arch to
1202 get at the current architecture by regcache.
1203 (SUBOFF): Add gdbarch to macro definition.
1205 2007-11-07 Markus Deuling <deuling@de.ibm.com>
1207 * gdbarch.sh (breakpoint_from_pc): Add gdbarch parameter.
1208 * gdbarch.{c,h}: Regenerate.
1210 * xtensa-tdep.c (xtensa_breakpoint_from_pc): Add gdbarch parameter.
1211 Replace current_gdbarch by gdbarch.
1212 * sh-tdep.c (sh_breakpoint_from_pc): Likewise.
1213 * sh64-tdep.c (sh64_breakpoint_from_pc): Likewise.
1214 * score-tdep.c (score_breakpoint_from_pc): Likewise.
1215 * mips-tdep.c (mips_breakpoint_from_pc): Likewise.
1216 * m32r-tdep.c (m32r_breakpoint_from_pc): Likewise.
1217 * iq2000-tdep.c (iq2000_breakpoint_from_pc): Likewise.
1218 * arm-tdep.c (arm_breakpoint_from_pc): Likewise.
1220 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Add gdbarch
1222 * vax-tdep.c (vax_breakpoint_from_pc): Likewise.
1223 * v850-tdep.c (v850_breakpoint_from_pc): Likewise.
1224 * spu-tdep.c (spu_breakpoint_from_pc): Likewise.
1225 * sparc-tdep.c (sparc_breakpoint_from_pc): Likewise.
1226 * s390-tdep.c (s390_breakpoint_from_pc): Likewise.
1227 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Likewise.
1228 * mt-tdep.c (mt_breakpoint_from_pc): Likewise.
1229 * mep-tdep.c (mep_breakpoint_from_pc): Likewise.
1230 * m88k-tdep.c (m88k_breakpoint_from_pc): Likewise.
1231 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Likewise.
1232 * m32c-tdep.c (m32c_breakpoint_from_pc): Likewise.
1233 * ia64-tdep.c (ia64_breakpoint_from_pc): Likewise.
1234 * i386-tdep.c (i386_breakpoint_from_pc): Likewise.
1235 * hppa-tdep.c (hppa_breakpoint_from_pc): Likewise.
1236 * h8300-tdep.c (h8300_breakpoint_from_pc): Likewise.
1237 * frv-tdep.c (frv_breakpoint_from_pc): Likewise.
1238 * cris-tdep.c (cris_breakpoint_from_pc): Likewise.
1239 * avr-tdep.c (avr_breakpoint_from_pc): Likewise.
1240 * alpha-tdep.c (alpha_breakpoint_from_pc): Likewise.
1241 * m68k-tdep.c (m68k_local_breakpoint_from_pc): Likewise.
1243 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Add gdbarch parameter.
1244 Replace current_gdbarch by gdbarch.
1245 (rs6000_software_single_step): Use get_frame_arch to get at the
1246 current architecture by frame_info. Add gdbarch to
1247 rs6000_breakpoint_from_pc call.
1249 2007-11-07 Markus Deuling <deuling@de.ibm.com>
1251 * frv-tdep.c (frv_register_name, frv_check_watch_resources): Replace
1252 macro CURRENT_VARIANT by its expression.
1253 (CURRENT_VARIANT): Remove.
1254 (frv_check_watch_resources): Add gdbarch parameter.
1256 2007-11-07 Markus Deuling <deuling@de.ibm.com>
1258 * MAINTAINERS (Write After Approval): Add self.
1260 2007-11-05 Ulrich Weigand <uweigand@de.ibm.com>
1262 * features/rs6000/power-core.xml: Use uint32 as register type.
1263 * features/rs6000/power64-core.xml: Use uint64/uint32 as register type.
1264 * features/rs6000/powerpc-32.c: Regenerate.
1265 * features/rs6000/powerpc-403.c: Regenerate.
1266 * features/rs6000/powerpc-403gc.c: Regenerate.
1267 * features/rs6000/powerpc-505.c: Regenerate.
1268 * features/rs6000/powerpc-602.c: Regenerate.
1269 * features/rs6000/powerpc-603.c: Regenerate.
1270 * features/rs6000/powerpc-604.c: Regenerate.
1271 * features/rs6000/powerpc-64.c: Regenerate.
1272 * features/rs6000/powerpc-7400.c: Regenerate.
1273 * features/rs6000/powerpc-750.c: Regenerate.
1274 * features/rs6000/powerpc-860.c: Regenerate.
1275 * features/rs6000/powerpc-e500.c: Regenerate.
1277 2007-11-05 Joel Brobecker <brobecker@adacore.com>
1279 * breakpoint.c (set_raw_breakpoint_without_location): Make static.
1281 2007-11-05 Joel Brobecker <brobecker@adacore.com>
1283 * breakpoint.h (create_solib_load_event_breakpoint)
1284 (create_solib_unload_event_breakpoint)
1285 (create_fork_event_catchpoint, create_vfork_event_catchpoint)
1286 (create_exec_event_catchpoint): Delete declaration.
1287 * breakpoint.c (create_solib_load_event_breakpoint)
1288 (solib_load_unload_1, create_solib_unload_event_breakpoint): Delete.
1289 (create_fork_event_catchpoint, create_vfork_event_catchpoint)
1290 (create_exec_event_catchpoint): Make static.
1292 2007-11-05 Joel Brobecker <brobecker@adacore.com>
1294 * breakpoint.h (set_breakpoint_sal): Remove declaration.
1295 * breakpoint.c (set_breakpoint_sal): Delete.
1297 2007-11-05 Joel Brobecker <brobecker@adacore.com>
1299 * buildsym.c (finish_block): Remove "#if 1"/"#endif" brackets.
1300 (make_blockvector): Likewise. Remove FIXME comment.
1302 2007-11-05 Luis Machado <luisgpm@br.ibm.com>
1304 * printcmd.c: (printf_command): Add support for new DFP
1305 modifiers %H, %D and %DD.
1306 * configure.ac: Add check for DECFLOAT printf support.
1307 * configure: Regenerated.
1309 2007-11-02 Ulrich Weigand <uweigand@de.ibm.com>
1311 * gdbtypes.h (struct cplus_struct_type): Remove runtime_ptr member.
1312 (TYPE_RUNTIME_PTR, TYPE_VTABLE, TYPE_HAS_VTABLE,
1313 TYPE_PRIMARY_BASE, TYPE_VIRTUAL_BASE_LIST): Remove macros.
1314 (HP_ACC_VFUNC_START, HP_ACC_VBASE_START, HP_ACC_TYPEINFO_OFFSET,
1315 HP_ACC_TOP_OFFSET_OFFSET): Likewise.
1316 (has_vtable, primary_base_class, virtual_base_list_length,
1317 virtual_base_list_length_skip_primaries, virtual_base_index,
1318 virtual_base_index_skip_primaries, class_index_in_primary_list,
1319 count_virtual_fns): Remove prototypes.
1320 * gdbtypes.c (has_vtable, primary_base_class, current_vbase_list,
1321 virtual_base_list_aux, virtual_base_list, virtual_base_list_length,
1322 virtual_base_list_length_skip_primaries, virtual_base_index,
1323 virtual_base_index_skip_primaries, class_index_in_primary_list,
1324 count_virtual_fns): Remove.
1326 * cp-valprint.c (cp_print_hpacc_virtual_table_entries): Remove.
1327 (hpacc_vtbl_ptr_name, hpacc_vtbl_ptr_type_name): Remove.
1328 (cp_print_value_fields): Remove support for HP aCC vtables.
1329 (cp_print_value): Likewise.
1330 * c-typeprint.c (c_type_print_base): Likewise.
1332 * value.h (find_rt_vbase_offset): Remove prototype.
1333 * valops.c (find_rt_vbase_offset): Remove.
1334 (search_struct_method): Remove support for HP aCC vtables.
1335 (find_method_list): Likewise.
1337 2007-11-02 Ulrich Weigand <uweigand@de.ibm.com>
1339 * language.h (struct language_defn): Remove la_builtin_type_vector
1340 and string_char_type members.
1341 * language.c (language_string_char_type): No longer consult
1342 la->string_char_type.
1343 (language_lookup_primitive_type_by_name): No longer consult
1344 current_language->la_builtin_type_vector.
1346 * language.c (unknown_language_defn, auto_language_defn,
1347 local_language_defn): Adapt initializer.
1348 * ada-lang.c (ada_language_defn): Likewise.
1349 * c-lang.c (c_language_defn, cplus_language_defn, asm_language_defn,
1350 minimal_language_defn): Likewise.
1351 * f-lang.c (f_language_defn): Likewise.
1352 * jv-lang.c (java_language_defn): Likewise.
1353 * m2-lang.c (m2_language_defn): Likewise.
1354 * objc-lang.c (objc_language_defn): Likewise.
1355 * p-lang.c (pascal_language_defn): Likewise.
1356 * scm-lang.c (scm_language_defn): Likewise.
1358 2007-11-02 Markus Deuling <deuling@de.ibm.com>
1360 * frame.c (frame_id_inner): Add gdbarch parameter. Replace
1361 current_gdbarch by gdbarch.
1362 (frame_find_by_id, get_prev_frame_1): Use get_frame_arch to get at the
1363 current architecture by frame_info.
1364 * frame.h (frame_id_inner): Add gdbarch parameter.
1365 * stack.c (return_command): Use get_frame_arch to get at the current
1366 architecture by frame_info. Update call of frame_id_inner.
1367 * infrun.c (handle_inferior_event): Likewise.
1368 * dummy-frame.c (dummy_frame_push): Use get_regcache_arch to get at the
1369 current architecture by regcache. Update call of frame_id_inner.
1371 2007-11-02 Markus Deuling <deuling@de.ibm.com>
1373 * gdbarch.sh (register_name): Add gdbarch parameter.
1374 * gdbarch.{c,h}: Regenerate.
1376 * target-descriptions.c (tdesc_register_name): Add gdbarch parameter.
1377 (tdesc_register_name): Replace current_gdbarch by gdbarch.
1378 * target-descriptions.h (tdesc_register_name): Add gdbarch parameter.
1380 * xstormy16-tdep.c (xstormy16_register_name): Add gdbarch parameter.
1381 * vax-tdep.c (vax_register_name): Add gdbarch parameter.
1382 * spu-tdep.c (spu_register_name): Add gdbarch parameter.
1383 * s390-tdep.c (s390_register_name): Add gdbarch parameter.
1384 * mt-tdep.c (mt_register_name): Add gdbarch parameter.
1385 (mt_registers_info): Replace current_gdbarch by gdbarch.
1386 (mt_register_reggroup_p): Add gdbarch to mt_register_name call.
1387 * mips-tdep.c (mips_register_name): Add gdbarch parameter. Replace
1388 current_gdbarch by gdbarch.
1389 (mips_register_name): Add gdbarch to tdesc_register_name call.
1390 * mep-tdep.c (mep_register_name): Add gdbarch parameter. Replace
1391 current_gdbarch by gdbarch.
1392 (mep_register_reggroup_p): Add gdbarch to mep_register_name call.
1393 * m32c-tdep.c (m32c_register_name): Add gdbarch parameter. Replace
1394 current_gdbarch by gdbarch.
1395 * m88k-tdep.c (m88k_register_name): Add gdbarch parameter.
1396 * m68k-tdep.c (m68k_register_name): Add gdbarch parameter.
1397 * m32r-tdep.c (m32r_register_name): Add gdbarch parameter.
1398 (m32r_frame_unwind_cache): Use get_frame_arch to get at the current
1399 architecture by frame_info.
1400 * iq2000-tdep.c (iq2000_register_name): Add gdbarch parameter.
1401 * ia64-tdep.c (ia64_register_name): Add gdbarch parameter.
1402 * hppa-tdep.c (hppa32_register_name, hppa64_register_name): Add gdbarch
1404 * h8300-tdep.c (h8300_register_name, h8300s_register_name)
1405 (h8300sx_register_name): Add gdbarch parameter.
1406 * cris-tdep.c (cris_register_name, crisv32_register_name): Add
1407 gdbarch parameter. Replace current_gdbarch by gdbarch.
1408 (cris_gdbarch_init): Replace current_gdbarch by gdbarch (comment).
1409 * avr-tdep.c (avr_register_name): Add gdbarch parameter.
1410 * arm-tdep.c (arm_register_name): Add gdbarch paramete
1411 * amd64-tdep.c (amd64_register_name): Add gdbarch parameter. Update
1413 * amd64-tdep.h (amd64_register_name): Add gdbarch parameter.
1414 * amd64-linux-tdep.c (amd64_linux_register_name): Add gdbarch parameter.
1415 * alpha-tdep.c (alpha_register_name): Add gdbarch parameter.
1416 (alpha_cannot_fetch_register, alpha_cannot_store_register): Update call
1417 of alpha_register_name.
1418 * frv-tdep.c (frv_register_name): Add gdbarch parameter.
1419 * i386-tdep.c (i386_register_name): Add gdbarch parameter. Replace
1420 current_gdbarch by gdbarch.
1421 (i386_register_type): Replace ?current_gdbarch by gdbarch.
1422 * i386-tdep.h (i386_register_name): Add gdbarch parameter.
1423 * i386-linux-tdep.c (i386_linux_register_name): Add gdbarch parameter.
1425 * m68hc11-tdep.c (m68hc11_register_name): Add gdbarch parameter.
1426 (m68hc11_register_reggroup_p): Add gdbarch to call of
1427 m68hc11_register_name.
1428 * mn10300-tdep.c (mn10300_generic_register_name, am33_register_name)
1429 (am33_2_register_name): Add gdbarch parameter.
1430 (mn10300_frame_unwind_cache): Use get_frame_arch to get at the current
1431 architecture by frame_info.
1432 (mn10300_dump_tdep): Replace current_gdbarch by gdbarch.
1433 * rs6000-tdep.c (rs6000_register_name): Add gdbarch parameter. Replace
1434 current_gdbarch by gdbarch.
1435 * score-tdep.c (score_register_name): Add gdbarch parameter.
1436 (score_return_value, score_push_dummy_call): Replace current_gdbarch
1438 * sh64-tdep.c (sh64_register_name): Add gdbarch parameter.
1439 (sh64_compact_reg_base_num, sh64_register_convert_to_virtual)
1440 (sh64_register_convert_to_raw, sh64_fv_reg_base_num)
1441 (sh64_dr_reg_base_num, sh64_fpp_reg_base_num): Add gdbarch parameter
1442 and update caller. Replace current_gdbarch by gdbarch.
1443 (sh64_extract_return_value, sh64_store_return_value): Use
1444 get_regcache_arch to get at the current architecture by regcache.
1445 * sh-tdep.c (sh_sh_register_name, sh_sh3_register_name)
1446 (sh_sh3e_register_name, sh_sh2e_register_name, sh_sh2a_register_name)
1447 (sh_sh2a_nofpu_register_name, sh_sh_dsp_register_name)
1448 (sh_sh3_dsp_register_name, sh_sh4_register_name)
1449 (sh_sh4_nofpu_register_name, sh_sh4al_dsp_register_name): Add gdbarch
1451 (fv_reg_base_num, dr_reg_base_num, sh_justify_value_in_reg)
1452 (sh_next_flt_argreg): Add gdbarch parameter and update caller. Replace
1453 current_gdbarch by gdbarch.
1454 (sh_extract_return_value_fpu, sh_store_return_value_fpu): Use
1455 get_regcache_arch to get at the current architecture by regcache.
1456 * sparc-tdep.c (sparc32_register_name): Add gdbarch parameter.
1457 * sparc64-tdep.c (sparc64_register_name): Add gdbarch parameter.
1458 * v850-tdep.c (v850_register_name, v850e_register_name): Add gdbarch
1460 (v850_unwind_sp, v850_unwind_pc): Replace current_gdbarch by gdbarch.
1461 * xtensa-tdep.c (xtensa_register_name): Add gdbarch parameter. Replace
1462 current_gdbarch by gdbarch.
1463 (xtensa_pseudo_register_read, xtensa_pseudo_register_write)
1464 (xtensa_frame_prev_register): Add gdbarch parameter to
1465 xtensa_register_name call.
1467 2007-10-31 Ulrich Weigand <uweigand@de.ibm.com>
1469 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Fall back to
1470 find_solib_trampoline_target if PC is not in .plt section.
1472 2007-10-31 Ulrich Weigand <uweigand@de.ibm.com>
1474 * elfread.c (elf_symtab_read): When constructing a solib trampoline
1475 minimal symbol from an undefined dynamic symbol, use proper section.
1477 2007-10-31 Markus Deuling <deuling@de.ibm.com>
1479 * arm-linux-nat.c (fetch_register, fetch_regs): Use get_regcache_arch
1480 to get at the current architecture by regcache.
1482 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1484 * libunwind-frame.c (libunwind_frame_sniffer)
1485 libunwind_frame_prev_register, libunwind_sigtramp_frame_sniffer)
1486 (libunwind_frame_cache): Use get_frame_arch to get at the current
1487 architecture by frame_info.
1488 (libunwind_get_reg_special): Replace current_gdbarch by gdbarch.
1490 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1492 * iq2000-tdep.c (iq2000_frame_prev_register): Use get_frame_arch to get
1493 at the current architecture by frame_info.
1495 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1497 * inf-child.c (inf_child_fetch_inferior_registers): Use
1498 get_regcache_arch to get at the current architecture by regcache.
1500 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1502 * inf-ptrace.c (inf_ptrace_fetch_registers)
1503 (inf_ptrace_fetch_register, inf_ptrace_store_register)
1504 (inf_ptrace_store_registers): Use get_regcache_arch to get at the
1505 current architecture by regcache.
1507 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1509 * hpux-thread.c (hpux_thread_fetch_registers)
1510 (hpux_thread_store_registers): Use get_regcache_arch to get at the
1511 current architecture by regcache.
1513 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1515 * hppa-tdep.c (hppa_frame_cache): Use get_frame_arch to get at the
1516 current architecture by frame_info.
1518 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1520 * go32-nat.c (fetch_register, go32_fetch_registers, store_register)
1521 (go32_store_registers): Use get_regcache_arch to get at the current
1522 architecture by regcache.
1524 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1526 * gdbtypes.c (gdbtypes_post_init): Replace current_gdbarch by gdbarch.
1528 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1530 * frv-linux-tdep.c (frv_linux_sigtramp_frame_cache): Use get_frame_arch
1531 to get at the current architecture by frame_info.
1533 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1535 * f-lang.c (build_fortran_types): Replace current_gdbarch by gdbarch.
1537 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1539 * core-regset.c (fetch_core_registers): Use get_regcache_arch to get at
1540 the current architecture by regcache.
1542 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1544 * corelow.c (get_core_registers): Use get_regcache_arch to get at the
1545 current architecture by regcache.
1547 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1549 * bsd-uthread.c (bsd_uthread_fetch_registers)
1550 (bsd_uthread_store_registers): Use get_regcache_arch to get at the
1551 current architecture by regcache.
1553 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1555 * avr-tdep.c (avr_frame_unwind_cache, avr_frame_prev_register): Use
1556 get_frame_arch to get at the current architecture by frame_info.
1558 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1560 * arm-tdep.c (arm_get_next_pc): Replace current_gdbarch by gdbarch.
1562 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1564 * armnbsd-nat.c (arm_supply_gregset, fetch_register, store_register)
1565 (store_regs): Use get_regcache_arch to get at the current architecture
1568 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1570 * arm-linux-tdep.c (arm_linux_supply_gregset): Use get_regcache_arch
1571 to get at the current architecture by regcache.
1573 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1575 * alphabsd-nat.c (alphabsd_fetch_inferior_registers)
1576 (alphabsd_store_inferior_registers): Use get_regcache_arch to get at
1577 the current architecture by regcache.
1579 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1581 * ada-lang.c (ada_language_arch_info): Replace current_gdbarch by
1584 2007-10-30 Daniel Jacobowitz <dan@codesourcery.com>
1586 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Check the selected
1587 soft float and vector ABIs. Support the generic vector ABI for
1589 (do_ppc_sysv_return_value): Likewise. Correct argument types and
1591 (ppc64_sysv_abi_push_dummy_call): Assert that floating point is
1593 * ppc-tdep.h (enum powerpc_vector_abi): New.
1594 (struct gdbarch_tdep): Add soft_float and vector_abi.
1595 * rs6000-tdep.c (setpowerpccmdlist, showpowerpccmdlist)
1596 (powerpc_soft_float_global, powerpc_vector_strings)
1597 (powerpc_vector_abi_global, powerpc_vector_abi_string): New.
1598 (rs6000_gdbarch_init): Check for soft-float and vector ABI markings.
1599 (set_powerpc_command, show_powerpc_command, powerpc_set_soft_float)
1600 (powerpc_set_vector_abi): New.
1601 (_initialize_rs6000_tdep): Register "set powerpc" and "show powerpc"
1603 * Makefile.in (elf_ppc_h): New.
1604 (rs6000-tdep.o): Update.
1606 2007-10-29 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
1608 * ppc-linux-tdep.c (ppc32_linux_reg_offsets): Corrected
1609 swapped offsets and VRSAVE offset.
1610 (ppc64_linux_reg_offsets): Corrected swapped offsets.
1611 (ppc32_linux_vrregset): Added.
1612 (ppc_linux_regset_from_core_section): Added support for
1613 .reg-ppc-vmx section.
1614 * ppc-tdep.h (ppc_altivec_support_p): Declare.
1615 (ppc_supply_vrregset): Declare.
1616 (ppc_collect_vrregset): Declare.
1617 * rs6000-tdep.c (ppc_altivec_support_p): Added.
1618 (ppc_supply_vrregset): Added.
1619 (ppc_collect_vrregset): Added.
1620 * corelow.c (get_core_registers): Added support for
1621 .reg-ppc-vmx section.
1623 2007-10-29 Joel Brobecker <brobecker@adacore.com>
1627 2007-10-26 Jim Blandy <jimb@codesourcery.com>
1629 * ax-gdb.h (expr_to_address_and_size): Delete declaration for
1632 * tracepoint.c (tracepoint_operation): Report the deletion event
1633 after we have unlinked the tracepoint from the list, and use the
1634 proper tracepoint number.
1636 * ax-gdb.c (expr_to_agent): Delete unused function.
1637 (expr_to_address_and_size): Delete #if 0'd function.
1638 * ax-gdb.h (expr_to_agent): Delete declaration.
1640 * ax-gdb.c (gen_cast): Remove redundant assignment to
1641 value->type. Doc fix.
1643 * ax-general.c (gen_traced_pop, gen_int_literal)
1644 (gen_usual_arithmetic): Check for typedefs.
1646 2007-10-26 Joel Brobecker <brobecker@adacore.com>
1648 * parse.c (prefixify_expression): Minor reformatting.
1650 2007-10-25 Daniel Jacobowitz <dan@codesourcery.com>
1652 * version.in: Use dot instead of dash.
1654 2007-10-25 Daniel Jacobowitz <dan@codesourcery.com>
1656 * linux-thread-db.c (check_for_thread_db): Only print if info_verbose.
1658 2007-10-25 Pedro Alves <pedro_alves@portugalmail.pt>
1660 * memory-map.c (parse_memory_map): Don't use an empty struct
1663 2007-10-25 Pedro Alves <pedro_alves@portugalmail.pt>
1665 * signals/signals.c (signals): Update pointer to enum
1666 target_signal declaration.
1668 2007-10-25 Wu Zhou <woodzltc@cn.ibm.com>
1669 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
1670 Jim Blandy <jimb@codesourcery.com>
1672 * dwarf2read.c (read_partial_die): check the value
1673 of DW_AT_calling_convention in Fortran programs.
1675 2007-10-25 Wu Zhou <woodzltc@cn.ibm.com>
1676 Thiago Jung Bauermann <bauerman@br.ibm.com>
1678 * c-exp.y (YYSTYPE): Add typed_val_decfloat for decimal
1679 floating point in YYSTYPE union.
1680 (DECFLOAT) Add token and expression element handling code.
1681 (parse_number): Parse DFP constants, which end with suffix 'df',
1682 'dd' or 'dl'. Return DECFLOAT.
1683 * eval.c (evaluate_subexp_standard): Call value_from_decfloat to
1685 * expression.h (enum exp_opcode): Add an opcode (OP_DECFLOAT)
1687 (union exp_element): Add decfloatconst to represent DFP
1688 elements, which is 16 bytes by default.
1689 * parse.c (write_exp_elt_decfloatcst): New function to write a
1690 decimal float const into the expression.
1691 (operator_length_standard): Set operator length for OP_DECFLOAT
1693 * parser-defs.h (write_exp_elt_decfloatcst): Prototype.
1694 * valarith.c (value_neg): Add code to handle the negation
1695 operation of DFP values.
1696 * value.c (value_from_decfloat): New function to get the value
1697 from a decimal floating point.
1698 * value.h (value_from_decfloat): Prototype.
1700 2007-10-25 Wu Zhou <woodzltc@cn.ibm.com>
1701 Thiago Jung Bauermann <bauerman@br.ibm.com>
1703 * c-lang.c (c_create_fundamental_type): Create fundamental
1705 * c-typeprint.c (c_type_print_varspec_prefix): Add
1706 TYPE_CODE_DECFLOAT to no prefix needed case.
1707 (c_type_print_varspec_suffix): Add TYPE_CODE_DECFLOAT to no
1709 * c-valprint.c (c_val_print): Call print_decimal_floating to
1711 * dwarf2read.c (read_base_type): Read DW_ATE_decimal_float
1712 attribute code and return TYPE_CODE_DECFLOAT.
1713 (dwarf_base_type): Set dwarf2_fundamental_type for DFP values.
1714 * gdbtypes.c (gdbtypes_post_init): Initialize builtin_decfloat,
1715 builtin_decdouble and builtin_declong.
1716 * gdbtypes.h (enum type_code): Add TYPE_CODE_DECFLOAT as a
1718 (FT_DECFLOAT, FT_DBL_PREC_DECFLOAT, FT_EXT_PREC_DECFLOAT): New
1719 types, for decimal floating point.
1720 (FT_NUM_MEMBERS): Increment, new types added.
1721 (struct builtin_type): Add builtin_decfloat, builtin_decdouble
1722 and builtin_declong.
1723 * valprint.c (print_decimal_floating): New function to print DFP
1725 * value.h (print_decimal_floating): Prototype.
1727 2007-10-25 Wu Zhou <woodzltc@cn.ibm.com>
1728 Thiago Jung Bauermann <bauerman@br.ibm.com>
1730 * Makefile.in (LIBDECNUMBER_DIR, LIBDECNUMBER, LIBDECNUMBER_SRC
1731 LIBDECNUMBER_CFLAGS): New macros for libdecnumber.
1732 (INTERNAL_CFLAGS_BASE): Add LIBDECNUMBER_CFLAGS in.
1733 (INSTALLED_LIBS): Add -ldecnumber in.
1734 (CLIBS): Add LIBDECNUMBER in.
1735 (decimal128_h, decimal64_h, decimal32_h): New macros for decimal
1737 (dfp_h): New macros for decimal floating point.
1738 (dfp.o): New target.
1739 (COMMON_OBS): Add dfp.o in.
1740 (c-exp.o): Add dfp_h as dependency.
1741 (valprint.o): Add dfp_h as dependency.
1742 (value.o): Add dfp_h as dependency.
1743 * dfp.h: New header file for decimal floating point support in
1745 * dfp.c: New source file for decimal floating point support in
1746 GDB. Implement decimal_from_string and decimal_to_string based
1747 on libdecnumber API.
1748 * configure.ac: Add AC_C_BIGENDIAN test.
1749 * config.in, configure: Regenerate.
1751 2007-10-25 David Ung <davidu@mips.com>
1752 Maciej W. Rozycki <macro@mips.com>
1755 * infcmd.c (registers_info): Check for a user register before
1756 calling target's gdbarch_print_registers_info(). If found to be
1757 so, extract the implicit value of user register and call
1758 print_scalar_formatted().
1759 * Makefile.in: (infcmd.o): Add $(user_regs_h).
1761 2007-10-25 Joel Brobecker <brobecker@adacore.com>
1763 * NEWS: Document status of hppa64-hpux support.
1765 2007-10-24 Ulrich Weigand <uweigand@de.ibm.com>
1767 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets): Call
1768 set_solib_ops to install SVR4 operations.
1769 (_initialize_svr4_solib): Do not set current_target_so_ops.
1771 * config/i386/i386gnu.mh (NATDEPFILES): Move solib.o, solib-svr4.o ...
1772 * config/i386/i386gnu.mt (TDEPFILES): ... to here.
1774 2007-10-24 Ulrich Weigand <uweigand@de.ibm.com>
1776 * solib-svr4.c (legacy_svr4_fetch_link_map_offsets_hook): Remove.
1777 (solib_svr4_init): Initialize fetch_link_map_offsets to NULL.
1778 * solib-svr4.h (legacy_svr4_fetch_link_map_offsets_hook): Remove.
1779 * solib-legacy.c: Remove file.
1781 * config/alpha/alpha-linux.mt (TDEPFILES): Remove solib-legacy.o.
1782 * config/arm/linux.mt (TDEPFILES): Likewise.
1783 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
1784 * config/ia64/linux.mt (TDEPFILES): Likewise.
1785 * config/m32r/linux.mt (TDEPFILES): Likewise.
1786 * config/powerpc/linux.mt (TDEPFILES): Likewise.
1787 * config/s390/s390.mt (TDEPFILES): Likewise.
1789 * alpha-linux-tdep.c (alpha_linux_init_abi): Call
1790 set_solib_svr4_fetch_link_map_offsets.
1791 * i386gnu-tdep.c (i386gnu_init_abi): Likewise.
1792 * ia64-linux-tdep.c (ia64_linux_init_abi): Likewise.
1794 * i386gnu-tdep.c: Include "solib-svr4.h".
1795 * Makefile.in: Update dependencies.
1797 2007-10-24 Ulrich Weigand <uweigand@de.ibm.com>
1799 * i386-nto-tdep.c: Include "solib.h".
1800 (i386nto_init_abi): Use set_solib_ops instead of overwriting
1801 current_target_so_ops members.
1802 * solist.h (TARGET_SO_RELOCATE_SECTION_ADDRESSES): Remove.
1803 (TARGET_SO_FIND_AND_OPEN_SOLIB): Remove.
1804 (TARGET_SO_IN_DYNSYM_RESOLVE_CODE): Remove.
1805 * Makefile.in: Update dependencies.
1807 2007-10-24 Ulrich Weigand <uweigand@de.ibm.com>
1809 * arm-wince-tdep.c: Include "solib.h" and "solib-target.h".
1810 (arm_wince_init_abi): Call set_solib_ops.
1811 * i386-cygwin-tdep.c: Include "solib.h" and "solib-target.h".
1812 (i386_cygwin_init_abi): Call set_solib_ops.
1813 * solib-target.c: Include "solib-target.h".
1814 (solib_target_so_ops): Make global.
1815 (_initialize_solib_target): Do not set current_target_so_ops.
1816 * solib-target.h: New file.
1817 * Makefile.in: Update dependencies.
1819 2007-10-24 Ulrich Weigand <uweigand@de.ibm.com>
1821 * mips-irix-tdep.c: Include "gdb_string.h", "solib.h", "solib-irix.h".
1822 (mips_irix_init_abi): Call set_solib_ops.
1823 * solib-irix.c: Include "solib.h" and "solib-irix.h".
1824 (irix_so_ops): Make global.
1825 (_initialize_irix_solib): Do not set current_target_so_ops.
1826 * solib-irix.h: New file.
1827 * Makefile.in: Update dependencies.
1829 2007-10-24 Ulrich Weigand <uweigand@de.ibm.com>
1831 * configure.tgt: Remove hppa*64*-*-hpux11* special case.
1832 * config/pa/hppa64.mt: Delete file.
1833 * config/pa/hppahpux.mt (MT_CFLAGS): Remove.
1834 (TDEPFILES): Move somread.o to ...
1835 * config/pa/hpux.mh (NATDEPFILES): ... here.
1837 * configure.ac: Add check for elf_hp.h header.
1838 Search libdl and libxpdl for dlgetmodinfo.
1839 * config.in, configure: Regenerate.
1840 * solib-pa64.c: Conditionalize compilation on #ifdef HAVE_ELF_HP_H
1841 instead of #ifndef PA_SOM_ONLY. Include "solib.h".
1842 (pa64_solib_select): Take gdbarch instead of tdep argument. Call
1843 set_solib_ops instead of modifying current_target_so_ops.
1844 * solib-pa64.h (pa64_solib_select): Update prototype.
1845 * solib-som.c: Remove include of "som.h". Include "solib.h".
1846 (som_solib_select): Take gdbarch instead of tdep argument. Call
1847 set_solib_ops instead of modifying current_target_so_ops.
1848 * solib-som.h (som_solib_select): Update prototype.
1849 * hppa-hpux-tdep.c (hppa_hpux_som_init_abi): Pass gdbarch instead
1850 of tdep to som_solib_select call.
1851 (hppa_hpux_elf_init_abi): Pass gdbarch instead of tdep to
1852 pa64_solib_select call.
1853 * Makefile.in: Update dependencies.
1855 2007-10-24 Ulrich Weigand <uweigand@de.ibm.com>
1857 * frv-tdep.c: Include "solib.h".
1858 (frv_gdbarch_init): Call set_solib_ops.
1859 * frv-tdep.h (struct target_so_ops): Add forward reference.
1860 (frv_so_ops): Add extern declaration.
1861 * solib-frv.c (frv_so_ops): Make global.
1862 (_initialize_frv_solib): Do not set current_target_so_ops.
1863 * Makefile.in: Update dependencies.
1865 2007-10-24 Ulrich Weigand <uweigand@de.ibm.com>
1867 * solib.c (solib_global_lookup): Use solib_ops instead of global
1868 current_target_so_ops.
1870 2007-10-24 Ulrich Weigand <uweigand@de.ibm.com>
1872 * config/frv/frv.mt (DEPRECATED_TM_FILE): Remove.
1873 * config/frv-tm-frv.h: Delete file.
1875 2007-10-24 Daniel Jacobowitz <dan@codesourcery.com>
1877 * NEWS: Mention gdbserver support for non-libthread_db operation.
1879 2007-10-24 Daniel Jacobowitz <dan@codesourcery.com>
1881 * amd64-tdep.c (amd64_convert_register_p): Delete.
1882 (amd64_init_abi): Use i387_convert_register_p.
1883 * alpha-tdep.c (alpha_convert_register_p): Return zero for
1885 (alpha_register_to_value, alpha_value_to_register): Do not handle
1887 * i386-tdep.c (i386_convert_register_p): Use i387_convert_register_p.
1888 * i387-tdep.c (i387_convert_register_p): New.
1889 (i387_register_to_value, i387_value_to_register): Update comments.
1890 * i387-tdep.h (i387_convert_register_p): Declare.
1891 * ia64-tdep.c (ia64_convert_register_p): Return zero for
1892 builtin_type_ia64_ext.
1893 (ia64_gdbarch_init): Do not initialize builtin_type_ia64_ext here.
1894 (_initialize_ia64_tdep): Initialize builtin_type_ia64_ext here.
1895 * m68k-tdep.c (m68k_convert_register_p): Return zero for
1896 builtin_type_m68881_ext.
1897 (m68k_register_to_value, m68k_value_to_register): Update comments.
1899 2007-10-24 Nathan Sidwell <nathan@codesourcery.com>
1901 * target-memory.c (claim_memory): Propagate baton for split memory
1904 2007-10-24 Pedro Alves <pedro_alves@portugalmail.pt>
1907 * sol-thread.c (sol_thread_fetch_registers): Work around gcc 3.4
1910 2007-10-24 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
1912 * symtab.c (find_line_symtab): scan through psymtabs
1913 when exact_match is zero.
1915 2007-10-23 Atsushi Nemoto <anemo@mba.ocn.ne.jp>
1917 * mips-tdep.c (LL_OPCODE, LLD_OPCODE, SC_OPCODE, SCD_OPCODE): Define.
1918 (deal_with_atomic_sequence): New.
1919 (mips_software_single_step): Use it.
1921 2007-10-23 Daniel Jacobowitz <dan@codesourcery.com>
1924 * configure.ac: Modify $LIBINTL before the BFD check.
1925 * configure: Regenerated.
1927 2007-10-23 Joel Brobecker <brobecker@adacore.com>
1929 * buildsym.c (free_pending_blocks): Remove commented-out code.
1930 (make_blockvector): Likewise. Re-use free_pending_blocks.
1931 (end_symtab): Remove commented-out code.
1933 2007-10-22 Daniel Jacobowitz <dan@codesourcery.com>
1935 * top.c (command_loop): Fix output for shrinkage.
1937 2007-10-22 Daniel Jacobowitz <dan@codesourcery.com>
1939 * cp-name-parser.y (exp1): Add & ( var ) as a reference expression.
1940 (exp): Remove and document function-like casts.
1942 2007-10-22 Daniel Jacobowitz <dan@codesourcery.com>
1944 * cp-support.c: Include "safe-ctype.h".
1945 (cp_already_canonical): New function.
1946 (cp_canonicalize_string): Use it. Return NULL for already canonical
1948 (mangled_name_to_comp): Update call to cp_demangled_name_to_comp.
1949 (cp_func_name, remove_params): Likewise.
1950 (cp_find_first_component_aux): Use ISSPACE.
1951 * cp-support.h (cp_demangled_name_to_comp): Correct comment. Remove
1953 * cp-name-parser.y (ALLOC_CHUNK): Define.
1954 (struct demangle_info): Add PREV and NEXT. Increase the size of
1956 (d_grab): Convert to a function.
1957 (allocate_info): Rewrite.
1958 (cp_demangled_name_to_comp): Remove MEMORY argument. Do not use
1959 strlen. Update call to allocate_info. Do not free it on failure.
1960 (main): Update calls to cp_demangled_name_to_comp.
1961 * Makefile.in (cp-support.o): Update.
1963 2007-10-22 Markus Deuling <deuling@de.ibm.com>
1965 * std-regs.c (value_of_builtin_frame_fp_reg)
1966 value_of_builtin_frame_pc_reg, value_of_builtin_frame_sp_reg)
1967 value_of_builtin_frame_ps_reg): Use get_frame_arch to get at the
1968 current architecture by frame_info.
1970 2007-10-22 Markus Deuling <deuling@de.ibm.com>
1972 * reggroups.c (default_register_reggroup_p): Replace current_gdbarch
1975 2007-10-22 Markus Deuling <deuling@de.ibm.com>
1977 * infcmd.c (default_print_registers_info, print_return_value)
1978 (print_vector_info, print_float_info): Replace current_gdbarch by
1980 (registers_info): Use get_frame_arch to get at the current
1981 architecture by frame_info.
1983 2007-10-22 Markus Deuling <deuling@de.ibm.com>
1985 * i387-tdep.c (i387_collect_fsave, i387_collect_fxsave): Use
1986 get_regcache_arch to get at the current architecture by regcache.
1988 2007-10-22 Markus Deuling <deuling@de.ibm.com>
1990 * target.c (debug_print_register): Use get_regcache_arch to get at the
1991 current architecture by regcache.
1993 2007-10-21 Daniel Jacobowitz <dan@codesourcery.com>
1995 * dwarf2read.c (read_file_scope): Add a comment.
1996 (dwarf2_add_field, dwarf2_add_member_fn, read_structure_type)
1997 (read_enumeration_type, process_enumeration_scope, read_array_type)
1998 (read_typedef, read_base_type, read_subrange_type)
1999 (read_unspecified_type): Use dwarf2_name.
2001 2007-10-21 Daniel Jacobowitz <dan@codesourcery.com>
2003 * coffread.c (coff_symfile_finish): Call dwarf2_free_objfile.
2004 * dwarf2read.c (dwarf2_free_objfile): New.
2005 * elfread.c (elf_symfile_finish): Call dwarf2_free_objfile.
2006 * symfile.h (dwarf2_free_objfile): Declare.
2008 2007-10-21 Joel Brobecker <brobecker@adacore.com>
2010 * hppa-hpux-nat.c (hppa_hpux_store_register): Add missing semi-colon.
2012 2007-10-21 Luis Machado <luisgpm@br.ibm.com>
2014 * rs6000-tdep.c (ppc_dwarf2_frame_init_reg): New function.
2015 * (rs6000_gdbarch_init): Install ppc_dwarf2_frame_init_reg as
2016 default dwarf2_frame_set_init_reg function.
2018 2007-10-21 Pedro Alves <pedro_alves@portugalmail.pt>
2020 * NEWS: Mention native MinGW configuration.
2022 2007-10-19 Ulrich Weigand <uweigand@de.ibm.com>
2024 * gdbarch.sh: Remove "macro" column of input table. Remove handling
2025 of "macro" column throughout the file. Remove (empty) "macro" entry
2026 of all gdbarch functions.
2028 2007-10-19 Ulrich Weigand <uweigand@de.ibm.com>
2030 * gdbarch.sh (sofun_address_maybe_missing): New gdbarch variable.
2031 * gdbarch.c, gdbarch.h: Regenerate.
2032 * dbxread.c (find_stab_function_addr): Define unconditionally.
2033 (read_dbx_symtab): Use gdbarch_sofun_address_maybe_missing
2034 instead of SOFUN_ADDRESS_MAYBE_MISSING.
2035 (end_psymtab): Likewise.
2036 (process_one_symbol): Likewise.
2037 * mdebugread.c (parse_partial_symbols): Likewise.
2039 * symtab.h (struct minimal_symbol): Always define "filename" member.
2040 * elfread.c (elf_symtab_read): Use msym->filename unconditionally.
2041 * minsyms.c (lookup_minimal_symbol): Likewise.
2042 * symmisc.c (dump_msymbols): Likewise.
2044 * config/i386/i386sol2.mt (DEPRECATED_TM_FILE): Remove.
2045 * config/i386/linux.mt (DEPRECATED_TM_FILE): Remove.
2046 * config/i386/tm-i386sol2.h: Remove file.
2047 * config/i386/tm-linux.h: Remove file.
2048 * i386-linux-tdep.c (i386_linux_init_abi): Add call to
2049 set_gdbarch_sofun_address_maybe_missing.
2050 * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
2052 * config/powerpc/linux.mt (DEPRECATED_TM_FILE): Remove.
2053 * config/powerpc/nbsd.mt (DEPRECATED_TM_FILE): Remove.
2054 * config/powerpc/obsd.mt (DEPRECATED_TM_FILE): Remove.
2055 * config/powerpc/ppc-eabi.mt (DEPRECATED_TM_FILE): Remove.
2056 * config/powerpc/ppc-sim.mt (DEPRECATED_TM_FILE): Remove.
2057 * config/powerpc/tm-ppc-eabi.h: Remove file.
2058 * rs6000-tdep.c (rs6000_gdbarch_init): Add call to
2059 set_gdbarch_sofun_address_maybe_missing.
2061 * config/sparc/sol2-64.mt (DEPRECATED_TM_FILE): Remove.
2062 * config/sparc/sol2.mt (DEPRECATED_TM_FILE): Remove.
2063 * config/sparc/tm-sol2.h: Remove file.
2064 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Add call to
2065 set_gdbarch_sofun_address_maybe_missing.
2066 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Likewise.
2068 2007-10-19 Ulrich Weigand <uweigand@de.ibm.com>
2070 * gdbarch.sh (static_transform_name): New gdbarch callback.
2071 * gdbarch.c, gdbarch.h: Regenerate.
2072 * dbxread.c (read_dbx_symtab): Use gdbarch_static_transform_name
2073 instead of STATIC_TRANSFORM_NAME.
2074 * mdebugread.c (parse_partial_symbols): Likewise.
2075 * stabsread.c (define_symbol): Likewise.
2076 * xcoffread.c (scan_xcoff_symtab): Likewise.
2078 * config/i368/tm-i386sol2.h (STATIC_TRANSFORM_NAME): Remove.
2079 (IS_STATIC_TRANSFORM_NAME): Remove.
2080 * i386-tdep.c (sunpro_static_transform_name): Remove, move to ...
2081 * i386-sol2-tdep.c (i386_sol2_static_transform_name): ... here.
2082 (i386_sol2_init_abi): Install it.
2084 * config/sparc/tm-sol2.h (STATIC_TRANSFORM_NAME): Remove.
2085 (IS_STATIC_TRANSFORM_NAME): Remove.
2086 * sparc-tdep.c (sparc_stabs_unglobalize_name): Remove, move to ...
2087 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): ... here.
2088 (sparc32_sol2_init_abi): Install it.
2089 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Likewise.
2090 * sparc-tdep.h (sparc_sol2_static_transform_name): Add prototype.
2092 2007-10-18 Daniel Jacobowitz <dan@codesourcery.com>
2094 * mips-tdep.c (mips_xfer_register): Take a gdbarch argument.
2095 (mips_n32n64_return_value, mips_o32_return_value)
2096 (mips_o64_return_value): Update calls to mips_xfer_register.
2098 2007-10-17 Daniel Jacobowitz <dan@codesourcery.com>
2100 * frame.c (frame_unwind_unsigned_register): Delete.
2101 (frame_sp_unwind): Use frame_unwind_register_unsigned instead.
2102 * frame.h (frame_unwind_unsigned_register): Delete prototype.
2104 * alpha-linux-tdep.c, alpha-mdebug-tdep.c, alpha-tdep.c,
2105 avr-tdep.c, cris-tdep.c, frv-tdep.c, m68hc11-tdep.c, mn10300-tdep.c,
2106 mt-tdep.c: Replace frame_unwind_unsigned_register with
2107 frame_unwind_register_unsigned.
2109 2007-10-16 Pedro Alves <pedro_alves@portugalmail.pt>
2111 * config/i386/mingw.mh, config/i386/mingw.mt: New files.
2112 * configure.tgt (i[34567]86-*-mingw32*): Set gdb_target = mingw.
2113 * win32-nat.c: Only include cygwin.h on Cygwin host. Don't
2115 (cygwin_load_start, cygwin_load_end, cygwin_exceptions): Disable
2116 if not building on Cygwin.
2117 (win32_make_so, handle_output_debug_string, handle_exception)
2118 (do_initial_win32_stuff): Wrap Cygwin specific code in __CYGWIN__.
2119 (win32_attach): Only fallback to Cygwin pids if building on
2121 (win32_pid_to_exec_file): Disable Cygwin specific code, if not
2123 (win32_create_inferior): Disable starting the inferior through a
2124 shell, environment var processing and tty handling if not building
2126 (cygwin_pid_to_str): Rename to ...
2127 (win32_pid_to_str): ... this.
2128 (init_win32_ops): Update use of win32_pid_to_str. Disable "shell"
2129 and "cygwin-exceptions" commands if not building on Cygwin.
2131 2007-10-16 Gaius Mulley <gaius@glam.ac.uk>
2133 * doc/gdb.texinfo: Add TSIZE definition, removed
2134 statement about unbounded arrays being unimplemented.
2135 * m2-valprint.c (m2_print_array_contents): New function.
2136 (m2_print_unbounded_array): New function.
2137 (m2_print_array_contents): New function.
2138 * m2-typeprint.c (m2_unbounded_array): New function.
2139 (m2_is_unbounded_array): New function.
2140 (m2_print_type): Test for unbounded array when walking
2142 * m2-lang.h: Added extern m2_is_unbounded_array.
2143 * m2-lang.c (evaluate_subexp_modula2): New function.
2144 (exp_descriptor_modula2): New structure.
2145 (m2_language_defn): Use exp_descriptor_modula2.
2146 * m2-exp.y: Added TSIZE and binary subscript.
2148 2007-10-16 Daniel Jacobowitz <dan@codesourcery.com>
2150 * mi/mi-main.c (captured_mi_execute_command): Clear mi_error_message
2153 2007-10-16 Kevin Buettner <kevinb@redhat.com>
2155 * m32r-tdep.c (decode_prologue): Sign extend offset for
2157 (m32r_frame_unwind_cache): Likewise.
2159 2007-10-15 Thiago Jung Bauermann <bauerman@br.ibm.com>
2161 * rs6000-tdep.c (skip_prologue): Restore comment with
2162 function description to its proper place.
2164 2007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
2166 * NEWS: Mention gdbserver PowerPC improvements.
2168 2007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
2170 * features/Makefile (WHICH): Add PowerPC register definitions.
2171 (rs6000/powerpc-32-expedite, rs6000/powerpc-e500-expedite)
2172 (rs6000/powerpc-64-expedite): New macros.
2173 ($(outdir)/%.dat): Handle subdirectories.
2174 * regformats/rs6000/powerpc-32.dat, regformats/rs6000/powerpc-64.dat,
2175 regformats/rs6000/powerpc-e500.dat: New generated files.
2177 2007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
2179 * ppc-linux-nat.c (ppc_linux_read_description): New.
2180 (_initialize_ppc_linux_nat): Set to_read_description.
2181 * ppc-tdep.h (tdesc_powerpc_e500): Declare.
2183 2007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
2185 * NEWS: Document target described register support for PowerPC.
2186 * ppc-tdep.h: Remove ppc_spr constants.
2187 (struct gdbarch_tdep): Remove regs, ppc_sr0_regnum, and
2188 ppc_builtin_type_vec128 members.
2189 (PPC_R0_REGNUM, PPC_F0_REGNUM, PPC_PC_REGNUM, PPC_MSR_REGNUM)
2190 (PPC_CR_REGNUM, PPC_LR_REGNUM, PPC_CTR_REGNUM, PPC_XER_REGNUM)
2191 (PPC_FPSCR_REGNUM, PPC_MQ_REGNUM, PPC_SPE_UPPER_GP0_REGNUM)
2192 (PPC_SPE_ACC_REGNUM, PPC_SPE_FSCR_REGNUM, PPC_VR0_REGNUM)
2193 (PPC_VSCR_REGNUM, PPC_VRSAVE_REGNUM, PPC_NUM_REGS): New constants.
2194 * rs6000-tdep.c: Include preparsed descriptions.
2195 (init_sim_regno_table): Do not iterate over pseudo registers.
2196 Look up segment registers by name. Use sim_spr_register_name
2198 (rs6000_register_sim_regno): Call init_sim_regno_table here.
2199 (rs6000_builtin_type_vec128): Delete.
2200 (rs6000_register_name): Only handle SPE pseudo registers and upper
2201 halves. Call tdesc_register_name for everything else.
2202 (rs6000_register_type): Delete. Replace with...
2203 (rs6000_pseudo_register_type): ...this new function. Only handle
2204 SPE pseudo registers.
2205 (rs6000_register_reggroup_p): Delete. Replace with...
2206 (rs6000_pseudo_register_reggroup_p): ...this new function. Only
2207 handle SPE pseudo registers.
2208 (rs6000_convert_register_p): Use ppc_fp0_regnum instead of
2210 (rs6000_register_to_value, rs6000_value_to_register): Remove check
2212 (e500_register_reggroup_p): Delete.
2213 (STR, R, R4, R8, R16, F, P8, R32, R64, R0, A4, S, S4, SN4, S64)
2214 (COMMON_UISA_REGS, PPC_UISA_SPRS, PPC_UISA_NOFP_SPRS)
2215 (PPC_SEGMENT_REGS, PPC_OEA_SPRS, PPC_ALTIVEC_REGS, PPC_SPE_GP_REGS)
2216 (PPC_SPE_UPPER_GP_REGS, PPC_EV_PSEUDO_REGS): Delete macros.
2217 (registers_powerpc, registers_403, registers_403GC, registers_505)
2218 (registers_860, registers_601, registers_602, registers_603)
2219 (registers_604, registers_750, registers_7400, registers_e500): Delete
2221 (struct variant): Delete nregs, npregs, num_tot_regs, and regs. Add
2223 (tot_num_registers, num_registers, num_pseudo_registers): Delete.
2224 (variants): Delete outdated comment. Use standard target descriptions
2225 instead of "struct reg" arrays.
2226 (init_variants): Delete.
2227 (rs6000_gdbarch_init): Do not guess word size from the BFD
2228 architecture if we have a target description. Select a variant
2229 before creating a new architecture. Use the variant's target
2230 description if the target did not define a register layout.
2231 Validate target-supplied registers. Reject mismatches. Use
2232 fixed register numbers and new constants instead of magic
2233 numbers. Call set_gdbarch_ps_regnum. Call tdesc_use_registers.
2234 (_initialize_rs6000_tdep): Initialize the preparsed target
2236 * target-descriptions.c (tdesc_predefined_types): Add int128 and
2238 (tdesc_find_register_early): New function.
2239 (tdesc_numbered_register): Use it.
2240 (tdesc_register_size): New function.
2241 (tdesc_use_registers): Take a target_desc argument. Do not use
2242 gdbarch_target_desc.
2243 * target-descriptions.h (tdesc_use_registers): Update prototype
2245 (tdesc_register_size): New prototype.
2246 * Makefile.in (powerpc_32_c, powerpc_403_c, powerpc_403gc_c)
2247 (powerpc_505_c, powerpc_601_c, powerpc_602_c, powerpc_603_c)
2248 (powerpc_604_c, powerpc_64_c, powerpc_7400_c, powerpc_750_c)
2249 (powerpc_860_c, powerpc_e500_c, rs6000_c): New macros.
2250 (rs6000-tdep.o): Update.
2251 * arm-tdep.c (arm_gdbarch_init): Update call to tdesc_use_registers.
2252 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
2253 * mips-tdep.c (mips_gdbarch_init): Likewise.
2255 2007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
2257 * features/rs6000/powerpc-32.c, features/rs6000/powerpc-403.c,
2258 features/rs6000/powerpc-403gc.c, features/rs6000/powerpc-505.c,
2259 features/rs6000/powerpc-601.c, features/rs6000/powerpc-602.c,
2260 features/rs6000/powerpc-603.c, features/rs6000/powerpc-604.c,
2261 features/rs6000/powerpc-64.c, features/rs6000/powerpc-7400.c,
2262 features/rs6000/powerpc-750.c, features/rs6000/powerpc-860.c,
2263 features/rs6000/powerpc-e500.c, features/rs6000/rs6000.c: New
2266 2007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
2268 * features/rs6000/power-altivec.xml, features/rs6000/power-core.xml,
2269 features/rs6000/power-fpu.xml, features/rs6000/power-oea.xml,
2270 features/rs6000/power-spe.xml, features/rs6000/power64-core.xml: New
2271 feature descriptions for standard PowerPC register sets.
2273 * features/rs6000/powerpc-32.xml, features/rs6000/powerpc-403.xml,
2274 features/rs6000/powerpc-403gc.xml, features/rs6000/powerpc-505.xml,
2275 features/rs6000/powerpc-601.xml, features/rs6000/powerpc-602.xml,
2276 features/rs6000/powerpc-603.xml, features/rs6000/powerpc-604.xml,
2277 features/rs6000/powerpc-64.xml, features/rs6000/powerpc-7400.xml,
2278 features/rs6000/powerpc-750.xml, features/rs6000/powerpc-860.xml,
2279 features/rs6000/powerpc-e500.xml, features/rs6000/rs6000.xml: New
2280 target descriptions for PowerPC processors.
2282 2007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
2284 * target-descriptions.c (tdesc_predefined_types): New.
2285 (tdesc_named_type): Use it.
2286 (tdesc_type_id, maint_print_c_tdesc_cmd): New functions.
2287 (_intialize_target_descriptions): Register "maint print c-tdesc".
2288 * features/Makefile (XMLTOC, CFILES, GDB): New macros.
2289 (cfiles, %.c): New rules.
2290 * features/arm-with-iwmmxt.c, features/mips-linux.c,
2291 features/mips64-linux.c: New generated files.
2293 * arm-linux-nat.c: Include preparsed description instead of
2295 (super_xfer_partial, arm_linux_xfer_partial): Remove.
2296 (arm_linux_read_description): New function.
2297 (_initialize_arm_linux_nat): Set to_read_description instead of
2298 to_xfer_partial. Initialize preparsed description.
2299 * config/arm/linux.mh (TDEP_XML): Delete.
2300 * mips-linux-nat.c: Include preparsed descriptions instead of
2302 (super_xfer_partial, mips_linux_xfer_partial): Remove.
2303 (mips_linux_read_description): New function.
2304 (_initialize_mips_linux_nat): Set to_read_description instead of
2305 to_xfer_partial. Initialize preparsed description.
2306 * config/mips/linux.mh (TDEP_XML): Delete.
2307 * Makefile.in (XMLFILES): Remove $(TDEP_XML).
2308 (features_headers, arm_with_iwmmxt_c, mips_linux_c)
2309 (mips64_linux_c): New macros.
2310 (arm-linux-nat.o, mips-linux-nat.o): Update.
2312 2007-10-15 Pierre Muller <muller@ics.u-strasbg.fr>
2314 * cp-abi.c (set_cp_abi_as_auto_default): ARI fix:
2315 Replace xasprintf by xstrprintf.
2316 symfile-mem.c (add_vsyscall_page): Ditto.
2318 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
2320 * ia64-linux-nat.c (ia64_register_addr): Add gdbarch parameter,
2321 replacing use of global current_gdbarch.
2322 (ia64_cannot_fetch_register, ia64_cannot_store_register): Likewise.
2323 (ia64_linux_fetch_register, ia64_linux_store_register): Update callers.
2325 * ia64-tdep.c (SIGCONTEXT_REGISTER_ADDRESS): Remove macro.
2326 (ia64_sigtramp_frame_init_saved_regs): Add next_frame parameter,
2327 replace uses of SIGCONTEXT_REGISTER_ADDRESS.
2328 (ia64_sigtramp_frame_cache): Update caller.
2330 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
2332 * gdbarch.sh (deprecated_use_struct_convention): Remove.
2333 (extract_return_value, store_return_value): Remove.
2334 (return_value): Remove default implementation.
2335 * gdbarch.c, gdbarch.h: Regenerate.
2337 * stack.c (return_command): Remove compatibility hack.
2338 * arch-utils.c (legacy_return_value): Remove.
2339 * arch-utils.h (legacy_return_value): Likewise.
2341 * arch-utils.c (always_use_struct_convention): Remove.
2342 * arch-utils.h (always_use_struct_convention): Likewise.
2343 * value.c (generic_use_struct_convention): Remove.
2344 * defs.h (generic_use_struct_convention): Likewise.
2346 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
2348 * avr-tdep.c (avr_return_value): New function.
2349 (avr_gdbarch_init): Call set_gdbarch_return_value instead of
2350 set_gdbarch_extract_return_value.
2352 * fvr-tdep.c (frv_return_value): New function.
2353 (frv_gdbarch_init): Call set_gdbarch_return_value instead of
2354 set_gdbarch_extract_return_value, set_gdbarch_store_return_value,
2355 and set_gdbarch_deprecated_use_struct_convention.
2357 * ia64-tdep.c (ia64_use_struct_convention): Make static.
2358 Add check for structure, union, or array types.
2359 (ia64_extract_return_value): Make static.
2360 (ia64_store_return_value): Make static. Support multi-word values.
2361 (ia64_return_value): New function.
2362 (ia64_gdbarch_init): Call set_gdbarch_return_value instead of
2363 set_gdbarch_extract_return_value, set_gdbarch_store_return_value,
2364 and set_gdbarch_deprecated_use_struct_convention.
2366 2007-10-12 Joel Brobecker <brobecker@adacore.com>
2368 * solib-target.c (solib_target_parse_libraries)
2369 [HAVEHAVE_LIBEXPAT not defined]: Fix thinko in return type.
2371 2007-10-12 Jim Blandy <jimb@codesourcery.com>
2373 * serial.h (struct serial_ops): Document read_prim to return zero
2375 * ser-base.c (do_ser_base_readchar): Return SERIAL_EOF when
2376 read_prim returns zero, not SERIAL_TIMEOUT.
2378 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
2380 * alpha-mdebug-tdep.c: Include "gdb_string.h".
2381 (find_proc_desc): Add fix-up code for setjmp procedure descriptor.
2382 * mdebugread.c (parse_procedure): Remove setjmp fix-up code.
2383 * Makefile.in (alpha-mdebug-tdep.o): Update dependencies.
2385 * config/alpha/alpha.mt (DEPRECATED_TM_FILE): Remove.
2386 * config/alpha/alpha-linux.mt (DEPRECATED_TM_FILE): Remove.
2387 * config/alpha/alpha-osf1.mt (DEPRECATED_TM_FILE): Remove.
2388 * config/alpha/fbsd.mt (DEPRECATED_TM_FILE): Remove.
2389 * config/alpha/tm-alpha.h: Remove file.
2391 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
2393 * breakpoint.c (breakpoint_sals_to_pc): Do not check for
2394 DEPRECATED_PC_REQUIRES_RUN_BEFORE_USE.
2396 * config/pa/tm-hppa.h: Delete file.
2397 * config/pa/hppa64.mt: Do not set DEPRECATED_TM_FILE.
2398 * config/pa/hppahpux.mt: Likewise.
2399 * config/pa/hppa.mt: Likewise.
2400 * config/pa/linux.mt: Likewise.
2401 * hppa-tdep.c (hppa_pc_requires_run_before_use): Delete.
2403 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
2405 * config/arm/nm-nbsdaout.h: Remove file.
2406 * config/nm-nbsdaout.h: Likewise.
2407 * config/nm-nbsd.h: Likewise.
2409 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
2411 * block.h (struct block): Remove "gcc_compile_flag" member.
2412 (BLOCK_GCC_COMPILED): Remove.
2413 * block.c (allocate_block): Do not clear BLOCK_GCC_COMPILED.
2414 * buildsym.c (finish_block): Do not set it.
2415 * symmisc.c (dump_symtab_1): Do not dump it.
2417 * value.h (using_struct_return): Remove "gcc_p" argument.
2418 * value.c (using_struct_return): Likewise.
2419 * eval.c (evaluate_subexp_standard): Adapt callers.
2420 * infcall.c (call_function_by_hand): Likewise.
2421 * stack.c (return_command): Likewise.
2422 * sparc-tdep.c (sparc32_push_dummy_code): Likewise.
2424 * gdbarch.sh (push_dummy_code): Remove "using_gcc" parameter.
2425 * gdbarch.c, gdbarch.h: Regenerate.
2426 * cris-tdep.c (cris_push_dummy_code): Adapt prototype.
2427 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Likewise.
2428 * sparc-tdep.c (sparc32_push_dummy_code): Likewise.
2429 * infcall.c (generic_push_dummy_code, push_dummy_code): Likewise.
2430 (push_dummy_code, call_function_by_hand): Adapt callers.
2432 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
2434 * infcmd.c (print_return_value): Remove STRUCT_RETURN argument.
2435 (finish_command_continuation, finish_command): Adapt callers.
2437 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
2439 * infcall.c (call_function_by_hand): Remove special handling
2440 for HP aCC compiled code.
2442 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
2444 * cris-tdep.c (cris_push_dummy_call): Support arguments passed by
2445 reference. Fix endianness bugs.
2446 (cris_reg_struct_has_address): Remove.
2447 (cris_gdbarch_init): Remove set_gdbarch_deprecated_reg_struct_has_addr
2448 and set_gdbarch_deprecated_use_struct_convention calls.
2450 * gdbarch.sh (deprecated_reg_struct_has_addr): Remove.
2451 * gdbarch.c, gdbarch.h: Regenerate.
2452 * infcall.c (call_function_by_hand): Remove handling of
2453 deprecated_reg_struct_has_addr.
2455 2007-10-11 Daniel Jacobowitz <dan@codesourcery.com>
2456 Kazu Hirata <kazu@codesourcery.com>
2458 * breakpoint.c (do_enable_breakpoint): Delay enabling until after
2459 checking watchpoint resources.
2461 2007-10-11 Kazu Hirata <kazu@codesourcery.com>
2463 * memattr.c (inaccessible_by_default): Change the initial
2466 2007-10-11 Daniel Jacobowitz <dan@codesourcery.com>
2469 * coffread.c (read_one_sym): Check for read errors.
2471 2007-10-11 Ulrich Weigand <uweigand@de.ibm.com>
2473 * linux-nat.c (lin_lwp_attach_lwp): Use "Linux kernel 2.6.19"
2474 instead of "Linux 2.6.19" in comment.
2475 (linux_xfer_partial): Use "GNU/Linux target" instead of
2476 "Linux target" in comment.
2477 * m68klinux-tdep.c (m68k_linux_inferior_created): Likewise.
2478 (m68k_linux_get_sigtramp_info): Likewise.
2480 2007-10-11 Daniel Jacobowitz <dan@codesourcery.com>
2482 * MAINTAINERS (language support): List Joel and Paul as
2485 2007-10-11 Daniel Jacobowitz <dan@codesourcery.com>
2487 * dbxread.c (process_one_symbol): Remove VARIABLES_INSIDE_BLOCK
2489 * config/arm/embed.mt, config/arm/linux.mt, config/arm/wince.mt: Do
2490 not set DEPRECATED_TM_FILE.
2491 * config/arm/tm-arm.h: Delete file.
2493 2007-10-11 Luis Machado <luisgpm@br.ibm.com>
2495 * MAINTAINERS (Write After Approval): Add self.
2497 2007-10-11 Daniel Jacobowitz <dan@codesourcery.com>
2499 * buildsym.c (record_line): Remove empty lines followed by
2500 end-of-sequence markers.
2502 2007-10-11 Kazu Hirata <kazu@codesourcery.com>
2504 * configure.tgt: Recognize fido-*-elf.
2506 2007-10-10 Joel Brobecker <brobecker@adacore.com>
2510 2007-10-10 Markus Deuling <deuling@de.ibm.com>
2512 * stack.c (print_frame_args, frame_info, return_command): Use
2513 get_regcache_arch or get_frame_arch to get at the current architecture
2514 by regcache or by frame, respectively.
2516 2007-10-10 Markus Deuling <deuling@de.ibm.com>
2518 * rs6000-nat.c (fetch_register, store_register)
2519 (rs6000_fetch_inferior_registers, rs6000_store_inferior_registers): Use
2520 get_regcache_arch to get at the current architecture by regcache.
2522 * rs6000-tdep.c (rs6000_push_dummy_call, rs6000_return_value)
2523 (rs6000_register_reggroup_p, e500_move_ev_registe, rs6000_unwind_pc)
2524 (rs6000_unwind_dummy_id, rs6000_frame_cache, rs6000_dump_tdep): Replace
2525 current_gdbarch by gdbarch.
2526 (rs6000_skip_trampoline_code, rs6000_register_to_value)
2527 (rs6000_value_to_register): Use get_frame_arch to get at the current
2528 architecture by frame_info.
2530 2007-10-10 Markus Deuling <deuling@de.ibm.com>
2532 * sparc-tdep.c (sparc_supply_rwindow, sparc_collect_rwindow): Use
2533 get_regcache_arch to get at the current architecture by regcache.
2535 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
2536 (sparc64_supply_fpregset, sparc64_collect_fpregset): Use
2537 get_regcache_arch to get at the current architecture by regcache.
2539 * sparc64nbsd-nat. (sparc64nbsd_supply_gregset)
2540 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
2541 (sparc64nbsd_collect_fpregset): Use get_regcache_arch to get at the
2542 current architecture by regcache.
2544 2007-10-10 Markus Deuling <deuling@de.ibm.com>
2546 * remote-mips.c (mips_wait, mips_fetch_registers)
2547 (mips_store_registers): Use get_regcache_arch to get at the
2548 current architecture by regcache.
2550 * mipsnbsd-tdep.c (mipsnbsd_supply_reg, mipsnbsd_fill_reg)
2551 (mipsnbsd_supply_fpreg, mipsnbsd_fill_fpreg): Use get_regcache_arch to
2552 get at the current architecture by regcache.
2553 (mipsnbsd_sigtramp_offset): Use get_frame_arch to get at the current
2554 architecture by frame_info.
2556 * mipsnbsd-nat.c (mipsnbsd_fetch_inferior_registers)
2557 (mipsnbsd_store_inferior_registers): Use get_regcache_arch to get at
2558 the current architecture by regcache.
2560 * mips-linux-tdep.c (mips_linux_get_longjmp_target)
2561 (mips64_linux_get_longjmp_target, mips_linux_o32_sigframe_init)
2562 (mips_linux_n32n64_sigframe_init): Use get_frame_arch to get at the
2563 current architecture by frame_info.
2564 (supply_32bit_reg, mips_supply_gregset, mips_fill_gregset)
2565 (mips_supply_fpregset, mips_fill_fpregset, supply_64bit_reg)
2566 (mips64_supply_gregset, mips64_fill_gregset, mips64_supply_fpregset)
2567 (mips64_fill_fpregset, mips_linux_write_pc): Use get_regcache_arch to
2568 get at the current architecture by regcache.
2570 * mips-linux-nat.c (mips_linux_register_addr)
2571 (mips64_linux_register_addr): Replace current_gdbarch by gdbarch.
2572 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset)
2573 (mips64_linux_regsets_fetch_registers)
2574 (mips64_linux_regsets_store_registers): Use get_regcache_arch to get at
2575 the current architecture by regcache.
2577 * mips64obsd-tdep.c (mips64obsd_sigframe_init): Use get_frame_arch to
2578 get at the current architecture by frame_info.
2580 2007-10-10 Markus Deuling <deuling@de.ibm.com>
2582 * mips-tdep.c (mips_xfer_register): Use get_regcache_arch to get at the
2583 current architecture by regcache.
2584 (mips2_fp_compat, mips32_next_pc, mips16_scan_prologue)
2585 (mips_insn16_frame_cache, mips32_scan_prologue, mips_insn32_frame_cache)
2586 (mips_stub_frame_cache, mips_read_fp_register_single)
2587 (mips_read_fp_register_double, mips_print_fp_register)
2588 (mips_print_register, print_gp_register_row): Use get_frame_arch to get
2589 at the current architecture by frame_info.
2590 (mips_register_reggroup_p, mips_pseudo_register_read, mips_unwind_sp)
2591 (mips_pseudo_register_write, mips_register_type, mips_unwind_pc)
2592 (mips_unwind_dummy_id, mips_eabi_push_dummy_call)
2593 (mips_n32n64_push_dummy_call, mips_n32n64_return_value)
2594 (mips_o32_push_dummy_call, mips_o32_return_value)
2595 (mips_o64_push_dummy_call, mips_o64_return_value)
2596 (mips_print_registers_info, mips_dump_tdep): Replace current_gdbarch by
2599 2007-10-10 Markus Deuling <deuling@de.ibm.com>
2601 * xtensa-tdep.c (xtensa_register_type, xtensa_pseudo_register_read)
2602 (xtensa_pseudo_register_write, xtensa_register_reggroup_p)
2603 (xtensa_unwind_pc, xtensa_unwind_dummy_id, xtensa_push_dummy_call)
2604 (xtensa_dump_tdep): Replace current_gdbarch by gdbarch.
2605 (xtensa_register_write_masked, xtensa_register_read_masked)
2606 (xtensa_supply_gregset, xtensa_store_return_value)
2607 (xtensa_extract_return_value): Use get_regcache_arch to get at the
2608 current architecture by regcache.
2609 (xtensa_frame_cache, call0_frame_get_reg_at_entry, call0_frame_cache)
2610 (xtensa_frame_prev_register): Use get_frame_arch to get at the current
2611 architecture by frame_info.
2613 2007-10-10 Daniel Jacobowitz <dan@codesourcery.com>
2615 * arm-tdep.c (struct arm_prologue_cache): Remove frameoffset.
2616 (thumb_analyze_prologue): Move pv_area_store_would_trash call
2617 out of loop. Do not set cache->frameoffset.
2618 (arm_scan_prologue): Use prologue-value mechanism. Do not set
2619 frameoffset. Simplify framesize.
2620 (arm_make_prologue_cache, arm_normal_frame_base): Do not use
2622 * arm-tdep.h (enum gdb_regnum): Add ARM_IP_REGNUM.
2624 2007-10-10 Daniel Jacobowitz <dan@codesourcery.com>
2626 * target.c (update_current_target): Call setup_target_debug.
2627 (push_target): Do not call it here.
2629 2007-10-09 Michael Snyder <msnyder@specifix.com>
2631 * MAINTAINERS: Update my email address.
2633 2007-10-09 Markus Deuling <deuling@de.ibm.com>
2635 * xtensa-tdep.c: Replace following current-gdbarch based macros by
2637 (xtensa_pseudo_register_read)
2638 (xtensa_pseudo_register_write): XTENSA_TARGET_FLAGS.
2639 (ARG_NOF, ARG_1ST, xtensa_extract_return_value)
2640 (xtensa_store_return_value, xtensa_push_dummy_call): CALL_ABI.
2641 (xtensa_pseudo_register_read)
2642 (xtensa_pseudo_register_write): ISA_USE_WINDOWED_REGISTERS.
2643 (xtensa_breakpoint_from_pc): ISA_USE_DENSITY_INSTRUCTIONS.
2644 (xtensa_register_type, xtensa_supply_gregset, xtensa_frame_cache)
2645 (xtensa_frame_prev_register): NUM_AREGS.
2646 (xtensa_pseudo_register_read, xtensa_pseudo_register_write,
2647 (xtensa_supply_gregset, xtensa_frame_cache, xtensa_frame_prev_register,
2648 (xtensa_extract_return_value, xtensa_store_return_value): WB_REGNUM.
2649 (xtensa_supply_gregset, xtensa_frame_cache)
2650 (xtensa_frame_prev_register): WS_REGNUM.
2651 (xtensa_supply_gregset): LBEG_REGNUM, LEND_REGNUM, LCOUNT_REGNUM,
2652 SAR_REGNUM, EXCCAUSE_REGNUM, EXCVADDR_REGNUM
2653 (xtensa_register_name, xtensa_register_type, xtensa_reg_to_regnum)
2654 (xtensa_pseudo_register_read, xtensa_pseudo_register_write)
2655 (xtensa_register_reggroup_p): REGMAP.
2656 (call0_track_op): LITBASE_REGNUM.
2657 (xtensa_register_type, xtensa_reg_to_regnum, call0_frame_cache):A0_BASE
2658 (xtensa_supply_gregset, call0_frame_get_reg_at_entry)
2659 (xtensa_frame_prev_register, AREG_NUMBER)
2660 (xtensa_register_type): AR_BASE.
2661 (xtensa_pseudo_register_read, xtensa_pseudo_register_write): FP_ALIAS.
2662 (AREG_NUMBER): AREGS_MASK, WB_MASK, A0_REGNUM.
2663 (ARG_1ST, xtensa_pseudo_register_read, xtensa_pseudo_register_write)
2664 (xtensa_frame_cache, xtensa_frame_prev_register)
2665 (xtensa_extract_return_value, xtensa_store_return_value)
2666 (xtensa_push_dummy_call, call0_frame_cache): A0_REGNUM.
2667 (xtensa_register_type, xtensa_pseudo_register_read, xtensa_frame_cache)
2668 (xtensa_pseudo_register_write, xtensa_unwind_dummy_id)
2669 (xtensa_frame_prev_register, xtensa_push_dummy_call)
2670 (call0_frame_cache): A1_REGNUM.
2671 (xtensa_extract_return_value, xtensa_store_return_value): A2_REGNUM.
2672 (xtensa_push_dummy_call): A4_REGNUM.
2673 (ARGS_FIRST_REG): A6_REGNUM.
2674 (xtensa_pseudo_register_read, xtensa_pseudo_register_write)
2675 (xtensa_frame_prev_register): A15_REGNUM.
2676 * xtensa-tdep.h: Delete current_gdbarch based macros after replacing
2677 them in the appropriate source file:
2678 XTENSA_TARGET_FLAGS, SPILL_LOCATION, SPILL_SIZE, CALL_ABI, NUM_AREGS,
2679 ISA_USE_WINDOWED_REGISTERS, ISA_USE_DENSITY_INSTRUCTIONS, WB_REGNUM,
2680 ISA_USE_EXCEPTIONS, ISA_USE_EXT_L32R, DEBUG_DATA_VADDR_TRAP_COUNT,
2681 DEBUG_INST_VADDR_TRAP_COUNT, ISA_MAX_INSN_SIZE, DEBUG_NUM_IBREAKS,
2682 DEBUG_NUM_DBREAKS, WS_REGNUM, LBEG_REGNUM, LEND_REGNUM, SAR_REGNUM,
2683 REGMAP, LITBASE_REGNUM, DEBUGCAUSE_REGNUM, EXCCAUSE_REGNUM, AR_BASE,
2684 EXCVADDR_REGNUM, NUM_IBREAKS, REGMAP_BYTES, NUM_CONTEXTS, FP_ALIAS,
2685 FP_LAYOUT, FP_LAYOUT_BYTES, GREGMAP, AREGS_MASK, WB_MASK, A0_REGNUM,
2686 A1_REGNUM, A2_REGNUM, A3_REGNUM, A4_REGNUM, A5_REGNUM, A6_REGNUM,
2687 A7_REGNUM, A8_REGNUM, A9_REGNUM, A10_REGNUM, A11_REGNUM, A12_REGNUM,
2688 A13_REGNUM, A14_REGNUM, A15_REGNUM.
2690 2007-10-09 Markus Deuling <deuling@de.ibm.com>
2692 * h8300-tdep.c (h8300_frame_cache): Use get_frame_arch to get at
2693 the current architecture by frame_info.
2694 (h8300_frame_prev_register
2695 (h8300_print_register): Replace current_gdbarch by gdbarch.
2696 (h8300_print_registers_info, h8300_register_type)
2697 (h8300_register_type): Likewise.
2699 2007-10-09 Markus Deuling <deuling@de.ibm.com>
2701 * i386-linux-nat.c (fetch_register): Use get_regcache_arch to get at
2702 the current architecture by regcache.
2703 (store_register, supply_gregset, fill_gregset, i386_linux_resume)
2704 (i386_linux_fetch_inferior_registers)
2705 (i386_linux_store_inferior_registers): Likewise.
2706 * i386gnu-nat.c (gnu_fetch_registers, gnu_store_registers): Likewise.
2707 * i386-nto-tdep.c (i386nto_supply_gregset): Likewise.
2708 * i386v4-nat.c (supply_fpregset, fill_fpregset): Likewise.
2709 * i386-tdep.c (i386_unwind_pc): Replace current_gdbarch by gdbarch.
2710 (i386_extract_return_value, i386_store_return_value): Likewise.
2711 * i386-tdep.c (i386_frame_prev_register): Use get_frame_arch to get at
2712 the current architecture by frame_info.
2713 (i386_sigtramp_frame_cache, i386_get_longjmp_target)
2714 (i386_register_to_value, i386_value_to_register): Likewise.
2716 2007-10-09 Markus Deuling <deuling@de.ibm.com>
2718 * monitor.c (monitor_supply_register): Use get_regcache_arch to get at
2719 the current architecture by regcache.
2720 (monitor_store_register, monitor_store_registers): Likewise.
2722 2007-10-09 Markus Deuling <deuling@de.ibm.com>
2724 * dbug-rom.c (dbug_supply_register): Use get_regcache_arch to get at
2725 the current architecture by regcache.
2727 2007-10-09 Markus Deuling <deuling@de.ibm.com>
2729 * arch-utils.c (legacy_return_value): Replace current_gdbarch by
2732 2007-10-09 Markus Deuling <deuling@de.ibm.com>
2734 * frame.c (frame_pc_unwind): Use get_frame_arch to get at the current
2735 architecture by frame.
2736 (frame_save_as_regcache, frame_register_unwind, get_prev_frame_1)
2737 (inside_main_func, frame_sp_unwind): Likewise.
2739 2007-10-09 Daniel Jacobowitz <dan@codesourcery.com>
2741 * solib-svr4.c (enable_break): Add the dynamic linker also if
2744 2007-10-09 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
2746 * MAINTAINERS (Write After Approval): Add self.
2748 2007-10-09 Pedro Alves <pedro_alves@portugalmail.pt>
2750 * stabsread.c (read_huge_number): Initialize local variable to 0.
2752 2007-10-09 Pierre Muller <muller@ics.u-strasbg.fr>
2754 * p-lang.h (pascal_main_name): Add declaration.
2755 * p-lang.c (GPC_P_INITIALIZE, GPC_MAIN_PROGRAM_NAME_1)
2756 (GPC_MAIN_PROGRAM_NAME_2): New constants.
2757 (pascal_main_name): New function.
2758 * symtab.c: Include p-lang.h.
2759 (find_main_name): Add call to pascal_main_name.
2760 * Makefile.in (symtab.o): Add dependency on p-lang.h.
2762 2007-10-09 Pedro Alves <pedro_alves@portugalmail.pt>
2764 * stabsread.c (read_huge_number): Fix handling of octal
2765 representation when the bit width is known.
2766 (read_range_type): Record unsigned integral types with their size,
2767 when the type size is known.
2769 2007-10-08 Thiago Jung Bauermann <bauerman@br.ibm.com>
2771 * MAINTAINERS (Write After Approval): Add self.
2773 2007-10-08 Pierre Muller <muller@ics.u-strasbg.fr>
2775 * breakpoint.c (print_one_breakpoint_location): ARI fix:
2776 Replace asprintf by xstrprintf.
2778 2007-10-08 Pierre Muller <muller@ics.u-strasbg.fr>
2780 * linux-fork.c: ARI fix: include "gdb_dirent.h" instead of <dirent.h>.
2781 Makefile.in (linux-fork.o): Add gdb_dirent.h dependency.
2783 2007-10-08 Pierre Muller <muller@ics.u-strasbg.fr>
2785 * linux-fork.c: Move "gdb_wait.h" include back to the position of
2786 <sys/wait.h> include before last commit.
2788 2007-10-08 Maciej W. Rozycki <macro@mips.com>
2790 * mips-tdep.c (mips32_next_pc): Fix a typo in BGTZL.
2792 2007-10-08 Markus Deuling <deuling@de.ibm.com>
2794 * aix-thread.c (supply_gprs64, supply_fprs, supply_sprs64)
2795 (supply_sprs32, fetch_regs_user_thread, fetch_regs_kernel_thread)
2796 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs64, fill_sprs32)
2797 (store_regs_user_thread, store_regs_kernel_thread): Use
2798 get_regcache_arch or get_frame_arch to get at the current architecture
2799 by regcache or by frame, respectively.
2801 2007-10-08 Markus Deuling <deuling@de.ibm.com>
2803 * sh64-tdep.c (sh64_push_dummy_call, sh64_register_type)
2804 (sh64_pseudo_register_read, sh64_pseudo_register_write)
2805 (sh64_do_fp_register, sh64_do_pseudo_register, sh64_do_register)
2806 (sh64_print_register, sh64_media_print_registers_info)
2807 (sh64_compact_print_registers_info, sh64_unwind_sp)
2808 (sh64_unwind_pc): Replace current_gdbarch by gdbarch.
2809 (sh64_show_media_regs, sh64_show_compact_regs, sh64_frame_cache)
2810 (sh64_frame_prev_register): Use FRAME to recognize current
2813 2007-10-08 Markus Deuling <deuling@de.ibm.com>
2815 * sh-tdep.c (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu)
2816 (sh_sh2a_register_type, sh_sh3e_register_type, sh_sh4_register_type)
2817 (sh_register_reggroup_p, sh_dwarf2_frame_init_reg): Replace
2818 current_gdbarch by gdbarch.
2819 (sh_generic_show_regs, sh3_show_reg, sh2e_show_regs, sh2a_show_regs)
2820 (sh2a_nofpu_show_regs, sh3e_show_regs, sh3_dsp_show_regs)
2821 (sh4_show_regs, sh4_nofpu_show_regs, sh_dsp_show_regs, sh_frame_cache)
2822 (sh_frame_prev_register, sh_unwind_sp, sh_unwind_pc): Use FRAME to
2823 recognize current architecture.
2825 2007-10-08 Markus Deuling <deuling@de.ibm.com>
2827 * remote.c (init_remote_state, fetch_register_using_p)
2828 (process_g_packet, remote_fetch_registers, remote_prepare_to_store)
2829 (store_register_using_P, store_registers_using_G)
2830 (remote_store_registers): Use get_regcache_arch or get_frame_arch to
2831 get at the current architecture by regcache or by frame, respectively.
2833 2007-10-08 Markus Deuling <deuling@de.ibm.com>
2835 * m68k-tdep.c (m68k_register_to_value, m68k_value_to_register)
2836 (m68k_svr4_extract_return_value, m68k_svr4_store_return_value)
2837 (m68k_frame_prev_register, m68k_get_longjmp_target): Use
2838 get_regcache_arch or get_frame_arch to get at the current architecture
2839 by regcache or by frame, respectively.
2840 * m68klinux-tdep.c (m68k_linux_sigtramp_frame_cache): Likewise.
2841 * m68klinux-nat.c (fetch_register, old_fetch_inferior_registers)
2842 (store_register, old_store_inferior_registers, supply_gregset)
2843 (supply_fpregset, fill_fpregset): Likewise.
2844 * m68k-tdep.c (m68k_register_type, m68k_unwind_pc, m68k_dump_tdep):
2845 Replace current_gdbarch by gdbarch.
2847 2007-10-08 Markus Deuling <deuling@de.ibm.com>
2849 * irix5-nat.c (supply_gregset, fill_gregset, supply_fpregset)
2850 (fill_fpregset, fetch_core_registers): Use get_regcache_arch or
2851 get_frame_arch to get at the current architecture by regcache or by
2852 frame, respectively.
2854 2007-10-08 Markus Deuling <deuling@de.ibm.com>
2856 * ia64-tdep.c (ia64_pseudo_register_read, ia64_pseudo_register_write):
2857 Replace current_gdbarch by gdbarch.
2858 * ia64-tdep.c (ia64_frame_prev_register
2859 (ia64_sigtramp_frame_prev_register)
2860 (ia64_libunwind_frame_prev_register): Use get_regcache_arch or
2861 get_frame_arch to get at the current architecture by regcache or by
2862 frame, respectively.
2863 * ia64-linux-nat.c (ia64_linux_fetch_register)
2864 (ia64_linux_fetch_registers, ia64_linux_store_register)
2865 (ia64_linux_store_registers): Likewise.
2867 2007-10-08 Markus Deuling <deuling@de.ibm.com>
2869 * hppa-tdep.c (hppa_stub_unwind_sniffer, hppa_dump_tdep): Replace
2870 current_gdbarch by gdbarch.
2871 * hppa-linux-nat.c (fetch_register, store_register)
2872 (hppa_linux_fetch_inferior_registers)
2873 (hppa_linux_store_inferior_registers): Use get_regcache_arch or
2874 get_frame_arch to get at the current architecture by regcache or by
2875 frame, respectively.
2876 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code
2877 (hppa_hpux_unwind_adjust_stub): Likewise.
2878 * hppa-hpux-nat.c (hppa_hpux_fetch_register, hppa_hpux_store_register)
2879 (hppa_hpux_fetch_inferior_registers)
2880 (hppa_hpux_store_inferior_registers): Likewise.
2882 2007-10-08 Markus Deuling <deuling@de.ibm.com>
2884 * cris-tdep.c (cris_sigcontext_addr, cris_sigtramp_frame_unwind_cache)
2885 (cris_scan_prologue, crisv32_scan_prologue, find_step_target)
2886 (cris_software_single_step, cris_supply_gregset): Use get_regcache_arch
2887 or get_frame_arch to get at the current architecture by regcache or by
2888 frame, respectively.
2889 * cris-tdep.c (crisv32_single_step_through_delay, cris_push_dummy_call)
2890 (cris_unwind_pc, cris_unwind_sp, cris_register_type, cris_dump_tdep)
2891 (crisv32_register_type, cris_dwarf2_frame_init_reg): Replace
2892 current_gdbarch by gdbarch.
2894 2007-10-08 Markus Deuling <deuling@de.ibm.com>
2896 * arm-tdep.c (arm_scan_prologue, arm_make_prologue_cache)
2897 (thumb_get_next_pc, arm_get_next_pc, arm_extract_return_value)
2898 (arm_store_return_value): Use get_regcache_arch or get_frame_arch to
2899 get at the current architecture by regcache or by·frame, respectively.
2900 (arm_push_dummy_call, arm_dump_tdep): Replace current_gdbarch by
2903 2007-10-08 Markus Deuling <deuling@de.ibm.com>
2905 * amd64-tdep.c (amd64_frame_prev_register, amd64_sigtramp_frame_cache):
2906 Use get_regcache_arch or get_frame_arch to get at the current
2907 architecture by regcache or by frame, respectively.
2908 * amd64-linux-tdep.c (amd64_linux_sigcontext_addr): Likewise.
2909 * amd64-nat.c (amd64_supply_native_gregset)
2910 (amd64_collect_native_gregset): Replace current_gdbarch by gdbarch.
2912 2007-10-08 Markus Deuling <deuling@de.ibm.com>
2914 * alpha-tdep.c (alpha_register_reggroup_p): Replace current_gdbarch by
2916 * alpha-linux-nat.c (alpha_linux_register_u_offset): Likewise.
2917 (alpha_sigtramp_frame_unwind_cache, alpha_sigtramp_frame_this_id)
2918 (alpha_sigtramp_frame_sniffer, alpha_next_pc): Use get_regcache_arch or
2919 get_frame_arch to get at the current architecture by regcache or by
2920 frame, respectively.
2921 * alpha-nat.c (fetch_osf_core_registers): Likewise.
2923 2007-10-08 Markus Deuling <deuling@de.ibm.com>
2925 * dwarf2-frame.c (read_reg, execute_cfa_program, dwarf2_frame_cache)
2926 (dwarf2_frame_default_init_reg, dwarf2_frame_prev_register): Replace
2927 current_gdbarch by gdbarch.
2928 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Likewise.
2930 2007-10-08 Markus Deuling <deuling@de.ibm.com>
2932 * regcache.c (init_regcache_descr, register_type, read_pc_pid)
2933 (write_pc_pid, regcache_dump): Replace current_gdbarch by gdbarch.
2934 * regcache.c (regcache_raw_write): Use get_regcache_arch or
2935 get_frame_arch to get at the current architecture by regcache or by
2936 frame, respectively.
2938 2007-10-08 Markus Deuling <deuling@de.ibm.com>
2940 * findvar.c (value_of_register, locate_var_value): Use
2941 get_regcache_arch or get_frame_arch to get at the current architecture
2942 by regcache or by frame, respectively.
2943 * findvar.c (default_value_from_register, value_from_register): Replace
2944 current_gdbarch by gdbarch.
2946 2007-10-08 Pierre Muller <muller@ics.u-strasbg.fr>
2948 * config/i386/nm-i386.h (CHILD_POST_STARTUP_INFERIOR): ARI fix: Remove.
2950 2007-10-08 Pierre Muller <muller@ics.u-strasbg.fr>
2952 * linux-fork.c: ARI fix: include "gdb_wait.h" instead of <sys/wait.h>.
2953 Makefile.in (linux-fork.o): Add gdb_wait.h dependency.
2955 2007-10-05 Daniel Jacobowitz <dan@codesourcery.com>
2957 * remote.c (get_offsets): Only call free_symfile_segment_data if
2960 2007-10-03 Pierre Muller <muller@ics.u-strasbg.fr>
2962 * objc-exp.y: ARI fix: remove 4 PARAMS.
2964 2007-10-03 Daniel Jacobowitz <dan@codesourcery.com>
2966 * NEWS: Use uniform spacing. Correct version number for GDB 6.7
2967 news. Mention XML support for M68K in GDB 6.7.
2969 2007-10-03 Daniel Jacobowitz <dan@codesourcery.com>
2971 * gdbtypes.c (create_range_type): Do not set TYPE_FIELD_TYPE for the
2973 (init_vector_type): Use builtin_type_int32.
2975 2007-10-02 Ulrich Weigand <uweigand@de.ibm.com>
2977 * s390-tdep.c (s390_regset_from_core_section): Allow excess section
2978 size to enable bi-arch generate-core-file support.
2980 2007-10-02 Markus Deuling <deuling@de.ibm.com>
2982 * spu-tdep.c (info_spu_signal_command): Fix output for SPU signal.
2984 2007-10-02 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
2986 * tui/tui-interp.c (tui_init): Initialize tui's SIGWINCH
2988 * tui/tui-win.c (tui_initialize_win): New function for
2989 initializing tui's SIGWINCH signal handler.
2990 * tui/tui-win.h (tui_initialize_win): Declare.
2992 2007-10-02 Ulrich Weigand <uweigand@de.ibm.com>
2994 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Cast
2995 pointer to uintptr_t before casting to CORE_ADDR.
2997 2007-10-02 Markus Deuling <deuling@de.ibm.com>
2999 * linux-nat.c (PTRACE_GETSIGINFO): Add define.
3001 2007-10-02 Mark Mitchell <mark@codesourcery.com>
3003 * mingw-hdep.c (gdb_select): Stop helper threads before returning.
3004 * ser-mingw.c (enum select_thread_state): New type.
3005 (struct ser_console_state): Add have_started and thread_state.
3006 (select_thread_wait): New function.
3007 (thread_fn_type): New type.
3008 (create_select_thread): New function.
3009 (destroy_select_thread): Likewise.
3010 (start_select_thread): Likewise.
3011 (stop_select_thread): Likewise.
3012 (console_select_thread): Use new functions.
3013 (pipe_select_thread): Likewise.
3014 (file_select_thread): Likewise.
3015 (ser_console_wait_handle): Likewise.
3016 (ser_console_done_wait_handle): Likewise.
3017 (ser_console_close): Likewise.
3018 (free_pipe_state): Likewise.
3019 (pipe_wait_handle): Likewise.
3020 (pipe_done_wait_handle): Likewise.
3021 (struct net_windows_state): Derive from ser_console_state.
3022 (net_windows_select_thread): Use new functions.
3023 (net_windows_wait_handle): Likewise.
3024 (net_windows_done_wait_handle): Likewise.
3025 (net_windows_close): Likewise.
3027 2007-10-02 Daniel Jacobowitz <dan@codesourcery.com>
3029 * inflow.c (terminal_ours_1): Remove useless line.
3031 2007-10-02 Daniel Jacobowitz <dan@codesourcery.com>
3033 * mips-tdep.c (mips_read_fp_register_double): Correct check for
3035 (mips_print_fp_register): Correct check for even FP registers.
3036 (mips_virtual_frame_pointer): New function.
3037 (mips_gdbarch_init): Call set_gdbarch_virtual_frame_pointer.
3039 2007-09-30 Mike Frysinger <vapier@gentoo.org>
3041 * value.h (lookup_only_internalvar): New prototype.
3042 (create_internalvar): Likewise.
3043 * value.c (lookup_only_internalvar): New function.
3044 (create_internalvar): Likewise.
3045 (lookup_internalvar): Use new lookup_only_internalvar and
3046 create_internalvar functions.
3047 * parse.c (write_dollar_variable): Look up $ symbols in internal
3048 table first rather than last.
3050 2007-09-30 Daniel Jacobowitz <dan@codesourcery.com>
3052 * linux-nat.c (linux_nat_new_thread): New variable.
3053 (linux_child_follow_fork): Set inferior_ptid to include LWP ID. Use
3054 linux_nat_switch_fork.
3055 (lwp_list): Make public.
3056 (add_lwp): Call linux_nat_new_thread.
3057 (lin_lwp_attach_lwp, linux_nat_attach): Call add_lwp after stopping
3059 (resume_callback): Clear lp->siginfo. Remove unused variable.
3060 (linux_nat_resume): Assert that the LWP list is already initialized.
3062 (save_siginfo): New.
3063 (stop_wait_callback, linux_nat_wait): Call it.
3064 (linux_nat_set_new_thread, linux_nat_get_siginfo): New.
3065 * linux-nat.h (struct lwp_info): Add siginfo.
3066 (lwp_list, linux_nat_set_new_thread, linux_nat_get_siginfo): Declare.
3069 * amd64-linux-nat.c (amd64_linux_dr): New.
3070 (amd64_linux_dr_get): Take a PTID argument. Correct typo.
3071 (amd64_linux_dr_set): Take a PTID argument.
3072 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use ALL_LWPS.
3073 (amd64_linux_dr_reset_addr): Use amd64_linux_dr_set_addr.
3074 (amd64_linux_dr_get_status): Pass inferior_ptid to amd64_linux_dr_get.
3075 (amd64_linux_new_thread): New.
3076 (_initialize_amd64_linux_nat): Call linux_nat_set_new_thread.
3077 * i386-linux-nat.c (i386_linux_dr): New.
3078 (i386_linux_dr_get, i386_linux_dr_set): Take a PTID argument.
3079 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use ALL_LWPS.
3080 (i386_linux_dr_reset_addr): Use i386_linux_dr_set_addr.
3081 (i386_linux_dr_get_status): Pass inferior_ptid to i386_linux_dr_get.
3082 (i386_linux_new_thread): New.
3083 (i386_linux_resume): Remove unnecessary PID check.
3084 (_initialize_i386_linux_nat): Call linux_nat_set_new_thread.
3085 * ia64-linux-nat.c (enable_watchpoints_in_psr): Take PTID argument.
3086 (fetch_debug_register, fetch_debug_register_pair): Delete.
3087 (debug_registers): New.
3088 (ia64_linux_insert_watchpoint, ia64_linux_remove_watchpoint): Use
3089 ALL_LWPS and debug_registers.
3090 (ia64_linux_new_thread): New.
3091 (ia64_linux_stopped_data_address): Use linux_nat_get_siginfo.
3092 (_initialize_ia64_linux_nat): Call linux_nat_set_new_thread.
3093 * ppc-linux-nat.c (last_stopped_data_address): Delete.
3094 (saved_dabr_value): New.
3095 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint): Use
3097 (ppc_linux_new_thread): New.
3098 (ppc_linux_stopped_data_address): Use linux_nat_get_siginfo.
3099 (ppc_linux_stopped_by_watchpoint): Call ppc_linux_stopped_data_address.
3100 (_initialize_ppc_linux_nat): Call linux_nat_set_new_thread.
3101 * s390-nat.c (s390_stopped_by_watchpoint): Clear the watchpoint status
3103 (s390_fix_watch_points): Take a PTID argument.
3104 (s390_insert_watchpoint, s390_remove_watchpoint): Use ALL_LWPS.
3105 (_initialize_s390_nat): Call linux_nat_set_new_thread.
3107 2007-09-30 Daniel Jacobowitz <dan@codesourcery.com>
3108 Jeff Johnston <jjohnstn@redhat.com>
3110 * breakpoint.c (watchpoints_triggered): New.
3111 (bpstat_stop_status): Remove STOPPED_BY_WATCHPOINT argument.
3112 Check watchpoint_triggered instead. Combine handling for software
3113 and hardware watchpoints. Do not use target_stopped_data_address
3114 here. Always check a watchpoint if its scope breakpoint triggers.
3115 Do not stop for thread or overlay events. Improve check for
3116 triggered watchpoints without a value change.
3117 (watch_command_1): Insert the scope breakpoint first. Link the
3118 scope breakpoint to the watchpoint.
3119 * breakpoint.h (enum watchpoint_triggered): New.
3120 (struct breakpoint): Add watchpoint_triggered.
3121 (bpstat_stop_status): Update prototype.
3122 (watchpoints_triggered): Declare.
3123 * infrun.c (enum infwait_status): Add infwait_step_watch_state.
3124 (stepped_after_stopped_by_watchpoint): Delete.
3125 (handle_inferior_event): Make stepped_after_stopped_by_watchpoint
3126 local. Handle infwait_step_watch_state. Update calls to
3127 bpstat_stop_status. Use watchpoints_triggered to check
3129 * remote.c (stepped_after_stopped_by_watchpoint): Remove extern.
3130 (remote_stopped_data_address): Do not check it.
3132 2007-09-29 Daniel Jacobowitz <dan@codesourcery.com>
3134 * configure.ac: Add $LIBINTL when testing libbfd.
3135 * configure: Regenerated.
3137 2007-09-28 Vladimir Prus <vladimir@codesourcery.com>
3139 * NEW: Mention pending breakpoint changes and
3140 support for breakpoints at multiple locations.
3142 2007-09-27 Daniel Jacobowitz <dan@codesourcery.com>
3144 * arm-linux-tdep.c (arm_linux_software_single_step): New.
3145 (arm_linux_init_abi): Use it.
3146 * arm-tdep.c (arm_get_next_pc): Make global. Handle all-ones
3147 condition correctly.
3148 * arm-tdep.h (arm_get_next_pc): Declare.
3149 * Makefile.in (arm-linux-tdep.o): Update.
3151 2007-09-26 Vladimir Prus <vladimir@codesourcery.com>
3153 * varobj.c (install_new_value): Don't
3154 call value_get_print_value when a value is
3155 lazy. Update the print_value member in a
3158 2007-09-26 Vladimir Prus <vladimir@codesourcery.com>
3160 * breakpoint.c (create_breakpoint): Set
3161 condition on each location, not on the first
3162 location of breakpoint.
3164 2007-09-26 Jim Blandy <jimb@codesourcery.com>
3166 * remote.c (getpkt_sane): Fix error message. No animals were
3167 harmed in the making of this debugger.
3169 2007-09-26 Pierre Muller <muller@ics.u-strasbg.fr>
3171 * p-typeprint.c: Fix 11 ARI reported problems.
3172 (pascal_print_type): Fix 4 operator at end of line.
3173 (pascal_type_print_method_args) : Replace 2 DEPRECATED_STREQN macros
3174 using strncmp function.
3175 (pascal_type_print_base): Fix 2 operator at end of line.
3176 (pascal_type_print_base) : Replace 3 DEPRECATED_STREQN macros
3177 using strncmp function.
3180 2007-09-26 Pierre Muller <muller@ics.u-strasbg.fr>
3182 * Fix PR pascal/2231
3183 dwarf2read.c (read_subroutine_type):
3184 All pascal functions are prototyped.
3186 2007-09-26 Pierre Muller <muller@ics.u-strasbg.fr>
3188 * Fix PR pascal/2283
3189 p-valprint.c (pascal_val_print): correct current language check.
3190 Also print array of char as strings.
3193 2007-09-26 David Ung <davidu@mips.com>
3194 Maciej W. Rozycki <macro@mips.com>
3196 * mips-tdep.c (mips_n32n64_return_value): Fix a comment.
3198 2007-09-25 Pierre Muller <muller@ics.u-strasbg.fr>
3200 * p-exp.y: Fix 12 ARI reported problems.
3201 (name_not_typename): Fix 2 operator at end of line issues.
3202 (yylex): Fix 3 operator at end of line issues.
3203 Replace 7 DEPRECATED_STREQ macros using strcmp function.
3205 2007-09-25 David Ung <davidu@mips.com>
3206 Maciej W. Rozycki <macro@mips.com>
3208 * mips-tdep.c (mips_n32n64_return_value): Per N32/N64 ABI
3209 rules return composite types in registers as appropriate.
3211 2007-09-24 Jim Blandy <jimb@codesourcery.com>
3213 * symfile.h (struct symfile_segment_data): Doc fixes.
3214 * symfile.c (symfile_map_offsets_to_segments): Doc fixes.
3215 Assert that we were passed some loaded segment addresses,
3216 and that sections' segment numbers are valid.
3217 Simplify offset calculation.
3218 * remote.c (get_offsets): Clarify selection of relocate-by-segment
3219 strategy, and set num_segments correctly. Delete redundant
3220 assignments to do_sections.
3222 2007-09-24 Daniel Jacobowitz <dan@codesourcery.com>
3224 * frame.c (get_prev_frame_1): Also check for PC in the same register.
3226 2007-09-24 Vladimir Prus <vladimir@codesourcery.com>
3228 * breakpoint.c (remove_sal): New.
3229 (expand_line_sal_maybe): New.
3230 (create_breakpoints): Call expand_line_sal_maybe.
3231 (clear_command): Add comment.
3232 (breakpoint_re_set_one): Call expand_line_sal_maybe.
3233 * linespec.c (decode_indirect): Set explicit_pc to 1.
3234 (decode_all_digits): Set explicit_line to 1.
3235 (append_expanded_sal): New.
3236 (expand_line_sal): New.
3237 * linespec.h (expand_line_sal): Declare.
3238 * symtab.c (init_sal): Initialize explicit_pc
3240 * symtab.h (struct symtab_and_line): New fields
3241 explicit_pc and explicit_line.
3243 2007-09-23 Daniel Jacobowitz <dan@codesourcery.com>
3245 * infcall.c (call_function_by_hand): Handle language-specific
3246 pass and return by reference.
3248 * cp-abi.c (cp_pass_by_reference): New.
3249 * cp-abi.h (cp_pass_by_reference): Declare.
3250 (struct cp_abi_ops): Add pass_by_reference.
3251 * gnu-v3-abi.c (gnuv3_pass_by_reference): New.
3252 (init_gnuv3_ops): Set pass_by_reference.
3254 * language.c (language_pass_by_reference): New.
3255 (default_pass_by_reference): New.
3256 (unknown_language_defn, auto_language_defn, local_language_defn): Add
3257 default_pass_by_reference.
3258 * langauge.h (struct language_defn): Add la_pass_by_reference.
3259 (language_pass_by_reference, default_pass_by_reference): Declare.
3260 * ada-lang.c (ada_language_defn): Add default_pass_by_reference.
3261 * c-lang.c (c_language_defn, asm_language_defn)
3262 (minimal_language_defn): Likewise.
3263 (cplus_language_defn): Add cp_pass_by_reference.
3264 * f-lang.c (f_language_defn): Add default_pass_by_reference.
3265 * jv-lang.c (java_language_defn): Likewise.
3266 * m2-lang.c (m2_language_defn): Likewise.
3267 * objc-lang.c (objc_language_defn): Likewise.
3268 * p-lang.c (pascal_language_defn): Likewise.
3269 * scm-lang.c (scm_language_defn): Likewise
3271 2007-09-23 Vladimir Prus <vladimir@codesourcery.com>
3273 Allow a code breakpoint to have several locations
3275 * breakpoint.h (enum enable_state): Remove the
3276 bp_shlib_disabled enumerator.
3277 (struct bp_location): New members shlib_disabled,
3278 global_next, enabled and function_name.
3279 Rename pending to condition_not_parsed.
3281 * breakpoint.c (ALL_BP_LOCATIONS): Iterate over global_next.
3282 (ALL_BP_LOCATIONS_SAFE): Likewise.
3283 (breakpoint_enabled): Don't check for pending.
3284 (condition_command): Free and update all locations of
3286 (insert_bp_location): Adjust.
3287 (software_breakpoint_inserted_here_p): Don't care
3288 if breakpoint is enabled, as soon as it's inserted.
3289 (print_it_typical): Print bpstat's location, not
3290 bpstat's breakpoint's location.
3291 (bpstat_stop_status): Iterate over all locations, not
3293 (print_breakpoint_location): New.
3294 (print_one_breakpoint): Renamed to
3295 (print_one_breakpoint_location): ...this. Take
3296 parameters to describe which location is being
3297 printed. Modify code to properly print header
3298 for several locations and individual locations.
3299 (print_one_breakpoint): Print all locations.
3300 (breakpoint_has_pc): New.
3301 (describe_other_breakpoints): Use the above.
3302 (check_duplicates): Renamed to...
3303 (check_duplicates_for): .. this.
3304 (check_duplicates): Use check_duplicates_for.
3305 (allocate_bp_location): Adjust.
3306 (set_raw_breakpoint_without_location): New,
3307 extracted from set_raw_breakpoint.
3308 (set_breakpoint_location_function): New.
3309 (set_raw_breakpoint): Use
3310 set_raw_breakpoint_without_location.
3311 (make_breakpoint_permanent): Mark all locations
3313 (disable_breakpoints_in_shlibs): Iterate over
3315 (disable_breakpoints_in_unloaded_shlib): Likewise.
3316 (re_enable_breakpoints_in_shlibs): Likewise.
3317 (mention): Say "pending" when breakpoint has
3318 zero locations. If breakpoint has more than one
3320 (add_location_to_breakpoint): New.
3321 (create_breakpoint): Accept symtabs_and_lines, not
3322 symtab_and_line. Pass extra sals to
3323 add_location_to_breakpoint.
3324 (create_breakpoints): Pass symtabs_and_lines to
3326 (break_command_1): Make pending breakpoints
3327 have zero locations.
3328 (do_captured_breakpoint): Remove wrong allocation.
3329 (clear_command): Iterate over all locations.
3330 (unlink_locations_from_global_list): Renamed
3331 from unlink_location_from_global_list. Remove
3333 (delete_breakpoint): Remove all locations.
3334 Iterate over all locations when deciding which
3335 other location to re-enable.
3336 (all_locations_are_pending): New.
3337 (update_breakpoint_locations): Renamed from
3338 update_breakpoint_location. Try to match old
3339 and new locations using names of containing
3341 (breakpoint_re_set_one): Adjust.
3342 (find_location_by_number): New.
3343 (disable_command): Allow disabling individual location.
3344 (enable_command): Allow enabling individual location.
3345 * breakpoint.c: Adjust all uses of breakpoint's
3346 enable state to for bp_shlib_disabled change.
3348 2007-09-22 Vladimir Prus <vladimir@codesourcery.com>
3350 * breakpoint.c (do_restore_lang_radix_cleanup): Remove.
3351 (resolve_pending_breakpoint): Remove.
3352 (re_enable_breakpoints_in_shlibs): Remove.
3353 (unlink_locations_from_global_list): New.
3354 (update_breakpoint_locations): New.
3355 (breakpoint_re_set_one): Don't bail out on pending breakpoints.
3356 Use parse_condition and update_breakpoint_location to
3357 reset breakpoint. Ignore 'symbol not found' error from
3359 (breakpoint_re_set): Don't emit newline before the
3360 reason why breakpoint is not reset.
3361 (do_enable_breakpoint): Don't specially process pending
3363 (free_bp_location): New.
3364 (break_command_1): For pending breakpoints, initialize
3365 all fields of a sal with zeroes.
3366 * breakpoint.h (re_enable_breakpoints_in_shlibs): Remove.
3367 * infcmd.c (post_create_inferior): Don't call
3368 re_enable_breakpoints_in_shlibs.
3369 * infrun.c (handle_inferior_event): Likewise.
3370 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
3371 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
3372 * win32-nat.c (get_win32_debug_event): Likewise.
3374 2007-09-22 Vladimir Prus <vladimir@codesourcery.com>
3376 * breakpoint.c (create_breakpoint): Split from
3377 create_breakpoints, implementing most of its logic.
3378 Take just a single sal, single address string and
3379 single condition. Do not take parsed condition at
3381 (create_breakpoints): Just call create_breakpoint
3383 (find_condition_and_thread): New.
3384 (break_command_1): Use find_condition_and_thread.
3385 Do not keep parsed conditions.
3386 (do_captured_breakpoint): Don't convert
3387 condition string to struct expression.
3389 2007-09-22 Vladimir Prus <vladimir@codesourcery.com>
3391 * breakpoint.h (struct breakpoint): Move the cond
3393 (struct bp_location): Here.
3394 * breakpoint.c (condition_command, bpstat_stop_status)
3395 (print_one_breakpoint, allocate_bp_location)
3396 (solib_load_unload_1, create_fork_vfork_event_catchpoint)
3397 (create_exec_event_catchpoint, create_breakpoints)
3398 (break_command_1, watch_command_1, handle_gnu_v3_exceptions)
3399 (create_ada_exception_breakpoint, set_breakpoint_sal)
3400 (delete_breakpoint, breakpoint_re_set_one): Adjust.
3401 * tui/tui-winsource.c (tui_update_breakpoint_info): Adjust.
3403 2007-09-22 Vladimir Prus <vladimir@codesourcery.com>
3405 Associate bp_stat with bp_location, not breakpoint.
3406 * breakpoint.h (breakpoint_at): Change type
3408 * breakpoint.c (bpstat_alloc): Take bp_location,
3410 (bpstat_find_breakpoint): Look at bpstat's location's
3411 owner, not at bpstat->breakpoint_at.
3412 (bpstat_find_step_resume_breakpoint): Likewise.
3413 (bpstat_num): Likewise.
3414 (print_it_typical): Likewise.
3415 (print_bp_stop_message): Likewise.
3416 (watchpoint_check): Likewise.
3417 (bpstat_what): Likewise.
3418 (bpstat_get_triggered_catchpoints): Likewise.
3419 (breakpoint_auto_delete): Likewise.
3420 (delete_breakpoint): Likewise.
3421 (bpstat_stop_status): Pass location, not breakpoint,
3422 to bpstat_alloc. Look at bpstat's location's
3423 owner, not at bpstat->breakpoint_at.
3425 2007-09-21 Jim Blandy <jimb@codesourcery.com>
3427 * macrotab.h (new_macro_table): Document that removing information
3428 from an obstack/bcache-managed macro table leaks memory.
3429 * macrotab.c (macro_free, macro_bcache_free): Instead of asserting
3430 that data is never freed in obstack/bcache-managed macro tables,
3431 just leak the storage.
3432 (macro_undef): If we're undefining a macro at exactly the same
3433 source location that we defined it, simply remove the definition
3436 2007-09-21 Joel Brobecker <brobecker@adacore.com>
3438 * symfile.h (struct sym_fns): Add new field sym_read_linetable.
3439 * coffread.c, dbxread.c, elfread.c, mipsread.c somread.c:
3440 Adjust the struct sym_fns object accordingly by setting
3441 the new field to NULL.
3442 * xcoffread.c (aix_process_linenos): Make static.
3443 (xcoff_sym_fns): Set new field to aix_process_linenos.
3444 * buildsym.c (end_symtab): Replace call to PROCESS_LINENUMBER_HOOK
3445 by call to new the new sym_fns sym_read_linetable function.
3446 * config/powerpc/aix.mt (DEPRECATED_TM_FILE): Delete.
3447 * config/rs6000/tm-rs6000.h: Delete.
3449 2007-09-21 David Ung <davidu@mips.com>
3450 Maciej W. Rozycki <macro@mips.com>
3452 * mips-tdep.c (mips_n32n64_push_dummy_call): Per N32/N64 ABI
3453 rules do not treat composite types specially.
3455 2007-09-20 Maciej W. Rozycki <macro@mips.com>
3457 * mips-tdep.c (mips32_in_function_epilogue_p): New function.
3458 (mips16_in_function_epilogue_p): Likewise.
3459 (mips_in_function_epilogue_p): Likewise.
3460 (mips_gdbarch_init): Register mips_in_function_epilogue_p().
3462 2007-09-19 Joel Brobecker <brobecker@adacore.com>
3464 * configure.ac: Add check for "etext".
3465 * configure, config.in: Regenerate.
3466 * maint.c (TEXTEND): Only define if either _etext or etext
3468 Disable the profiling functionality if TEXTEND is not defined.
3470 2007-09-19 Daniel Jacobowitz <dan@codesourcery.com>
3472 * mips-tdep.c (mips_stub_frame_cache): Correct the saved return
3473 address register. Correct the call to frame_id_build.
3474 (mips_stub_frame_sniffer): Use the stub unwinder when the PC
3477 2007-09-18 Joel Brobecker <brobecker@adacore.com>
3479 * ia64-tdep.c (refine_prologue_limit): Make sure we don't scan
3480 the linetable past the function end.
3482 2007-09-18 James E. Wilson <wilson@specifix.com>
3484 * MAINTAINERS: Update my email address.
3486 2007-09-18 Jerome Guitton <guitton@adacore.com>
3488 * inf-ttrace.c (inf_ttrace_private_thread_info): New structure type.
3489 (inf_ttrace_delete_dying_threads_callback): New function.
3490 (inf_ttrace_resume): After resuming the execution, iterate over
3491 the dying threads to delete them for the thread list.
3492 (inf_ttrace_wait): on TTEVT_LWP_EXIT and TTEVT_LWP_TERMINATE,
3493 mark the corresponding thread as dying instead of removing it
3494 from the thread list.
3495 (inf_ttrace_thread_alive): return 0 for dying threads.
3497 2007-09-17 Joel Brobecker <brobecker@adacore.com>
3499 * infrun.c (insert_step_resume_breakpoint_at_frame): Add assertion
3500 that return_frame is not null.
3502 2007-09-17 Joel Brobecker <brobecker@adacore.com>
3504 * solib-svr4.c: Add include of "auxv.h".
3505 (enable_break): Use the AT_BASE auxiliary entry if available.
3506 * Makefile.in (solib-svr4.o): Update dependencies.
3508 2007-09-17 Joel Brobecker <brobecker@adacore.com>
3510 * NEWS: Create a new section for the next release branch.
3511 Rename the section of the current branch, now that it has
3514 2007-09-17 Jerome Guitton <guitton@adacore.com>
3516 * dwarf2loc.c (dwarf_expr_frame_base): Guard against NULL.
3517 * Makefile.in (dwarf2loc.o): Depend on gdb_assert.h.
3519 2007-09-16 Vladimir Prus <vladimir@codesourcery.com>
3521 * mi/mi-cmds.c (mi_cmds): Register -list-features.
3522 * mi/mi-cmds.h (mi_cmd_list_features): New.
3523 * mi/mi-main.c (mi_cmd_list_features): New.
3525 2007-09-11 Joel Brobecker <brobecker@adacore.com>
3527 GDB 6.7 branch created (branch timestamp: 2007-09-07 14:00 UTC)
3528 * version.in: Bump version to 6.7.50-20070911-cvs.
3530 2007-09-10 Daniel Jacobowitz <dan@codesourcery.com>
3532 * thread.c (free_thread): Do not delete the step resume breakpoint
3535 2007-09-10 Daniel Jacobowitz <dan@codesourcery.com>
3537 * arch-utils.c (gdbarch_info_fill): Also try core_bfd.
3538 * corelow.c (core_read_description): New.
3539 (init_core_ops): Set to_read_description.
3540 * gdbarch.sh: Add gdbarch_core_read_description.
3541 * mips-linux-tdep.c (mips_linux_core_read_description): New.
3542 (mips_linux_init_abi): Call set_gdbarch_core_read_description.
3543 * mips-tdep.c (mips_tdesc_gp32, mips_tdesc_gp64): New.
3544 (mips_register_g_packet_guesses): Use them.
3545 (_initialize_mips_tdep): Initialize them.
3546 * mips-tdep.h (mips_tdesc_gp32, mips_tdesc_gp64): Declare.
3547 * gdbarch.h, gdbarch.c: Regenerated.
3549 2007-09-10 Ulrich Weigand <uweigand@de.ibm.com>
3551 * infrun.c (stepping_past_breakpoint): New global variable.
3552 (stepping_past_breakpoint_ptid): Likewise.
3553 (prepare_to_proceed): Add STEP parameter. Do not check for Ctrl-C.
3554 Only switch threads if we need to single-step over a breakpoint hit
3555 in the previously selected thread. If stepping, remember previous
3556 thread to switch back to in STEPPING_PAST_BREAKPOINT[_PTID]. Call
3557 switch_to_thread instead of copying its contents.
3558 (proceed): Pass STEP to prepare_to_proceed. Always set ONEPROC if
3559 prepare_to_proceed returns true.
3560 (init_wait_for_inferior): Reset STEPPING_PAST_BREAKPOINT.
3561 (context_switch): Call switch_to_thread.
3562 (handle_inferior_event): Switch back to previous thread if requested
3563 in STEPPING_PAST_BREAKPOINT[_PTID] by prepare_to_proceed.
3564 * gdbthread.h (switch_to_thread): Add prototype.
3565 * thread.c (switch_to_thread): Make global.
3567 2007-09-07 Pierre Muller <muller@ics.u-strasbg.fr>
3569 * p-valprint.c: Fix 7 ARI reported problems.
3570 (pascal_val_print): Fix one operator at end of line issue.
3571 Use paddress function to remove use of
3572 deprecated_print_address_numeric function (2 times).
3573 Use SYMBOL_LINKAGE_NAME instead of DEPRECATED_SYMBOL_NAME.
3574 (pascal_value_print): Fix 3 operator at end of line issues.
3576 2007-09-07 Daniel Jacobowitz <dan@codesourcery.com>
3579 * arm-tdep.c (arm_in_call_stub): Delete.
3580 (arm_skip_stub): Handle from_arm and from_thumb stubs.
3582 2007-09-06 Daniel Jacobowitz <dan@codesourcery.com>
3584 * ppc-sysv-tdep.c (do_ppc_sysv_return_value): Handle other integer
3587 2007-09-04 Daniel Jacobowitz <dan@codesourcery.com>
3588 Jim Blandy <jimb@codesourcery.com>
3590 * NEWS: Update description of string changes. Mention print/s.
3591 * c-valprint.c (textual_element_type): New.
3592 (c_val_print): Use it. Do not skip address printing for pointers
3593 with a string format.
3594 (c_value_print): Doc update.
3595 * dwarf2read.c (read_array_type): Use make_vector_type.
3596 * gdbtypes.c (make_vector_type): New.
3597 (init_vector_type): Use it.
3598 (gdbtypes_post_init): Initialize builtin_true_unsigned_char.
3599 (_initialize_gdbtypes): Mark int8_t and uint8_t as TYPE_FLAG_NOTTEXT.
3600 * gdbtypes.h (struct builtin_type): Add builtin_true_unsigned_char.
3601 (TYPE_FLAG_NOTTEXT, TYPE_NOTTEXT): New.
3602 (make_vector_type): New.
3603 * printcmd.c (print_formatted): Only handle 's' and 'i' for examine.
3604 Call the language print routine for string format.
3605 (print_scalar_formatted): Call val_print for string format. Handle
3606 unsigned original types for char format.
3607 (validate_format): Do not reject string format.
3608 * stabsread.c (read_type): Use make_vector_type.
3609 * xml-tdesc.c (tdesc_start_vector): Use init_vector_type.
3611 2007-09-04 Michael Snyder <msnyder@access-company.com>
3613 * expprint.c (print_subexp_standard): Check strchr for null.
3614 * Makefile.in (expprint.o): Depend on gdb_assert.h.
3616 * gnu-v2-abi.c (gnuv2_value_rtti_type): Guard against null.
3618 * stabsread.c (patch_block_status): Guard against null.
3619 * Makefile.in (stabsread.o): Depend on gdb_assert.h.
3621 2007-09-04 Daniel Jacobowitz <dan@codesourcery.com>
3623 * printcmd.c (printf_command): Handle ptr_arg. Correct typo
3624 in internal error message.
3626 2007-09-04 Pedro Alves <pedro_alves@portugalmail.pt>
3627 Daniel Jacobowitz <dan@codesourcery.com>
3629 * infcmd.c (post_create_inferior): Update comment.
3630 (run_command_1): Always call post_create_inferior with 0 as
3633 * i386-cygwin-tdep.h: New.
3634 * i386-cygwin-tdep.c: Include "i386-cygwin-tdep.h".
3635 (win32_xfer_shared_library): Make it extern.
3637 * win32-nat.c: Include gdb_obstack.h and xml-support.h and
3639 (win32_so_ops): Delete.
3640 (get_relocated_section_addrs): Delete.
3641 (solib_symbols_add): Delete.
3642 (register_loaded_dll): Delete.
3643 (win32_make_so): New.
3644 (handle_load_dll): Use win32_make_so.
3645 (win32_free_so): Free the passed in so.
3646 (win32_relocate_section_addresses): Delete.
3647 (win32_solib_create_inferior_hook): Delete.
3648 (handle_unload_dll): Don't add PE offset here. Free so with
3649 win32_free_so instead of free_so.
3650 (win32_special_symbol_handling): Delete.
3651 (get_win32_debug_event): Remove unneeded calls. Set state to
3652 TARGET_WAITKIND_LOADED on a dll unload.
3653 (do_initial_win32_stuff): Clear cygwin_load_start and
3655 (map_code_section_args): Delete.
3656 (dll_code_sections_add): Delete.
3657 (core_section_load_dll_symbols): Delete.
3658 (win32_xfer_shared_libraries): New.
3659 (win32_current_sos): Delete.
3660 (win32_xfer_partial): New.
3661 (open_symbol_file_object): Delete.
3662 (in_dynsym_resolve_code): Delete.
3663 (init_win32_ops): Set win32_xfer_partial as to_xfer_partial member
3664 of win32_ops. Remove win32_so_ops settings. Don't set
3665 current_target_so_ops here.
3667 * Makefile.in (i386_cygwin_tdep_h): New variable.
3668 (i386-cygwin-tdep.o): Update dependencies.
3669 (win32-nat.o): Update dependencies.
3671 2007-09-04 Pedro Alves <pedro_alves@portugalmail.pt>
3672 Daniel Jacobowitz <dan@codesourcery.com>
3674 * gdbarch.sh (core_xfer_shared_libraries): New.
3676 * corelow.c (core_xfer_partial): Handle TARGET_OBJECT_LIBRARIES.
3678 * gdb_obstack.h (obstack_grow_str, obstack_grow_str0): New.
3680 * xml-support.c (gdb_xml_parse): Debug output tweaks.
3681 (xml_escape_text): New.
3682 * xml-support.h (xml_escape_text): Declare.
3684 * config/i386/cygwin.mh (NATDEPFILES): Move corelow.o to ...
3685 * config/i386/cygwin.mt (TDEPFILES): ... here.
3687 * win32-nat.c: (fetch_elf_core_registers): Delete.
3688 (win32_elf_core_fn): Delete.
3689 (_initialize_core_win32): Delete.
3691 * i386-cygwin-tdep.c: Include "regset.h", "gdb_objstack.h",
3692 "xml-support.h" and "gdbcore.h".
3693 (i386_win32_gregset_reg_offset): New.
3694 (I386_WIN32_SIZEOF_GREGSET): New.
3695 (i386_win32_regset_from_core_section): New.
3696 (win32_xfer_shared_library): New.
3697 (struct cpms_data): New.
3698 (core_process_module_section): New.
3699 (win32_core_xfer_shared_libraries): New.
3700 (i386_cygwin_skip_trampoline_code): Register gregset_reg_offset,
3701 gregset_num_regs, sizeof_gregset members of tdep. Register
3702 regset_from_core_section and core_xfer_shared_libraries callbacks.
3704 * Makefile.in (i386-cygwin-tdep.o): Update dependencies.
3705 * gdbarch.h, gdbarch.c: Regenerate.
3707 2007-09-03 Daniel Jacobowitz <dan@codesourcery.com>
3709 * corelow.c (core_xfer_partial): Pass writebuf to
3710 deprecated_xfer_memory in TARGET_OBJECT_MEMORY write case.
3712 2007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
3714 * arm-tdep.h (arm_skip_stub): Declare.
3715 * arm-wince-tdep.c: Don't include "solib-svr4.h". Include
3717 (arm_pe_skip_trampoline_code): New function.
3718 (arm_wince_init_abi): Register arm_pe_skip_trampoline_code as
3719 gdbarch_skip_trampoline_code callback.
3720 * Makefile.in (arm-wince-tdep.o): Update dependencies.
3722 2007-09-03 Daniel Jacobowitz <dan@codesourcery.com>
3724 * MAINTAINERS: Move Fred Fish to Past Maintainers.
3726 2007-09-03 Daniel Jacobowitz <dan@codesourcery.com>
3728 * configure.ac: Add --with-expat.
3729 * configure: Regenerated.
3731 2007-09-03 Andreas Schwab <schwab@suse.de>
3733 * configure.ac: Accept --with-system-readline.
3734 (READLINE, READLINE_DEPS, READLINE_CFLAGS): Define and substitute.
3735 * configure: Regenerate.
3736 * Makefile.in (READLINE, READLINE_DEPS, READLINE_CFLAGS): Use
3738 (CDEPS): Use $(READLINE_DEPS) instead of $(READLINE).
3740 2007-09-03 Maxim Grigoriev <maxim2405@gmail.com>
3741 Daniel Jacobowitz <dan@codesourcery.com>
3743 * mi-main.c (mi_load_progress): Handle MI2 and MI3 interpreters.
3745 2007-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3747 * top.c (print_gdb_version): Fixed a string end-of-line compiler error.
3749 2007-09-02 Daniel Jacobowitz <dan@codesourcery.com>
3751 * top.c (print_gdb_version): Update for GPL version 3.
3753 2007-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3755 * NEWS: Mention the build-id .debug files verification.
3757 2007-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3759 * linux-nat.c (linux_nat_make_corefile_notes): Fixed a buffer overflow.
3761 2007-09-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3763 * Makefile.in (symfile.o): Update dependencies.
3764 * symfile.c (symbol_file_add_with_addrs_or_offsets): Initialize the
3765 DEBUGFILE variable. FIND_SEPARATE_DEBUG_FILE called only if !PSYMTABS.
3766 (struct build_id): New structure.
3767 (build_id_bfd_get, build_id_verify, build_id_to_debug_filename): New.
3768 (find_separate_debug_file): New variable BUILD_ID.
3769 Call BUILD_ID_BFD_GET with BUILD_ID_TO_DEBUG_FILENAME as the first try.
3771 2007-08-31 Vladimir Prus <vladimir@codesourcery.com>
3773 * varobj.c (struct varobj): Fix comment
3774 for the type member not to lie when it can be
3777 2007-08-31 Vladimir Prus <vladimir@codesourcery.com>
3779 Implement -var-info-path-expression.
3781 * mi/mi-cmds.h (mi_cmd_var_info_path_expression):
3783 * mi/mi-cmds.c (mi_cmds): Register var-info-path-expression.
3784 * mi/mi-cmd-var.c (mi_cmd_var_info_path_expression): New.
3785 * varobj.c (struct varobj): New field 'path_expr'.
3786 (c_path_expr_of_child, cplus_path_expr_of_child)
3787 (java_path_expr_of_child): New.
3788 (struct language_specific): New field path_expr_of_child.
3789 (varobj_create): Initialize the path_expr field.
3790 (varobj_get_path_expr): New.
3791 (new_variable): Initialize the path_expr field.
3792 (free_variable): Free the path_expr field.
3793 (adjust_value_for_children_access): New parameter
3795 (c_number_of_children): Adjust.
3796 (c_describe_child): New parameter CFULL_EXPRESSION.
3797 Compute full expression.
3798 (c_value_of_child, c_type_of_child): Adjust.
3799 (cplus_number_of_children): Adjust.
3800 (cplus_describe_child): New parameter CFULL_EXPRESSION.
3801 Compute full expression.
3802 (cplus_name_of_child, cplus_value_of_child)
3803 (cplus_type_of_child): Adjust.
3804 * varobj.h (varobj_get_path_expr): Declare.
3806 2007-08-31 Vladimir Prus <vladimir@codesourcery.com>
3808 * mi/mi-cmd-var.c (print_varobj): If a varobj
3809 type is NULL, don't try to print it.
3811 2007-08-30 Alan Modra <amodra@bigpond.net.au>
3813 * ppc-linux-nat.c (right_fill_reg): Delete.
3814 (supply_gregset): Use ppc_supply_gregset.
3815 (supply_fpregset): Use ppc_supply_fpregset.
3816 (fill_gregset): Use ppc_collect_gregset.
3817 (fill_fpregset): Use ppc_collect_fpregset.
3818 * ppc-linux-tdep.c (PPC_LINUX_PT_*): Don't define.
3819 (right_supply_register, ppc_linux_supply_gregset): Delete.
3820 (ppc32_linux_supply_gregset, ppc64_linux_supply_gregset): Delete.
3821 (ppc_linux_supply_fpregset): Delete.
3822 (ppc_linux_collect_gregset): New function.
3823 (ppc32_linux_reg_offsets, ppc64_linux_reg_offsets): New.
3824 (ppc32_linux_gregset, ppc64_linux_gregset): Update to use reg offsets,
3825 ppc_linux_supply_gregset, and ppc_collect_gregset.
3826 (ppc_linux_fpregset): Rename to ppc32_linux_fpregset and update.
3827 (ppc_linux_gregset, ppc_linux_fpregset): New functions.
3828 (ppc_linux_regset_from_core_section): Update.
3829 * ppc-tdep.h (ppc_linux_gregset, ppc_linux_fpregset): Declare.
3830 (ppc_linux_supply_gregset, ppc_linux_supply_fpregset): Delete.
3831 (struct ppc_reg_offsets): Add gpr_size, xr_size, fpscr_size fields.
3832 * ppcobsd-tdep.c (ppcobsd_supply_gregset): Delete FIXME and assert.
3833 (ppcobsd_collect_gregset): Likewise.
3834 (_initialize_ppcnbsd_tdep): Init gpr_size, xr_size, fpscr_size.
3835 * ppcnbsd-tdep.c (_initialize_ppcobsd_tdep): Likewise.
3836 * ppcobsd-nat.c (_initialize_ppcobsd_nat): Likewise.
3837 * rs6000-aix-tdep.c (rs6000_aix32_reg_offsets): Likewise.
3838 (rs6000_aix64_reg_offsets): Likewise.
3839 (rs6000_aix_supply_regset): Call ppc_supply_fpregset without testing
3840 ppc_floating_point_unit_p.
3841 (rs6000_aix_collect_regset): Similarly.
3842 * rs6000-tdep.c (ppc_supply_reg): Add regsize param. Adjust offset
3843 when regsize is larger than regcache register size.
3844 (ppc_collect_reg): Similarly zero pad when regsize is larger than
3845 regcache register size.
3846 (ppc_greg_offset): New function, split out from..
3847 (ppc_supply_gregset): ..here. Separate code handling all regs from
3848 single reg case. Correct xer offset.
3849 (ppc_fpreg_offset): New function, split out from..
3850 (ppc_supply_fpregset): ..here. Separate code handling all regs from
3852 (ppc_collect_gregset, ppc_collect_fpregset): Likewise.
3853 (ppc_supply_fpregset, ppc_collect_fpregset): Don't assert we have
3854 a fp unit, instead return if no fp.
3856 2007-08-29 Jim Blandy <jimb@codesourcery.com>
3858 * breakpoint.c (watch_command_1): Remove '#ifdef HPUXHPPA' block;
3859 this code has not been compiled for two years.
3861 2007-08-29 Michael Snyder <msnyder@access-company.com>
3863 * event-top.c (gdb_readline2): Return after EOF.
3865 2007-08-29 Joel Brobecker <brobecker@adacore.com>
3867 * symtab.c: Remove a function that has been commented out 3 years ago.
3869 2007-08-29 Randolph Chung <tausq@debian.org>
3871 * hppa-tdep.c (hppa32_cannot_fetch_register)
3872 (hppa64_cannot_fetch_register): New functions.
3873 (hppa_gdbarch_init): Set cannot_fetch_register appropriately.
3874 * hppa-tdep.h (hppa_regnum): Add HPPA_CR26_REGNUM.
3876 2007-08-28 Michael Snyder <msnyder@access-company.com>
3878 * mi/mi-cmd-var.c (mi_print_value_p): No longer necessary to
3879 check for null before calling check_typedef.
3881 * NEWS: Mention Coverity bug fixes.
3883 2007-08-27 Markus Deuling <deuling@de.ibm.com>
3885 * spu-tdep.c (spu_pointer_to_address): New function.
3886 (spu_integer_to_address): Likewise.
3887 (spu_gdbarch_init): Add spu_pointer_to_address and
3888 spu_integer_to_address to gdbarch.
3890 2007-08-26 Pedro Alves <pedro_alves@portugalmail.pt>
3892 * arm-wince-tdep.c (ARM_WINCE_JB_PC): Change to 10.
3894 2007-08-23 Joel Brobecker <brobecker@adacore.com>
3896 * Makefile.in (copying.c): Use the top-level COPYING3 as the file
3897 that contains the GDB license.
3898 * copying.awk: Adjust to the GPLv3 wording.
3899 * copying.c: Regenerate.
3901 2007-08-23 Joel Brobecker <brobecker@adacore.com>
3903 * copying.awk: Protoization, and i18n markup.
3905 2007-08-23 Joel Brobecker <brobecker@adacore.com>
3907 * config/djgpp/djconfig.sh: Switch license to GPLv3.
3908 * copyright.sh: Likewise.
3909 * gdb-events.sh: Likewise.
3910 * gdb_gcore.sh: Likewise.
3911 * gdb_mbuild.sh: Likewise.
3912 * gdbarch.sh: Likewise.
3913 * observer.sh: Likewise.
3914 * features/feature_to_c.sh: Likewise.
3915 * regformats/regdat.sh: Likewise.
3917 2007-08-23 Joel Brobecker <brobecker@adacore.com>
3919 Switch the license of all .c files to GPLv3.
3920 Switch the license of all .h files to GPLv3.
3921 Switch the license of all .cc files to GPLv3.
3923 2007-08-23 Joel Brobecker <brobecker@adacore.com>
3925 * configure.ac: Switch license to GPLv3.
3927 2007-08-22 Daniel Jacobowitz <dan@codesourcery.com>
3929 * mips-tdep.c (mips_gdbarch_init): Use Tag_GNU_MIPS_ABI_FP to
3930 determine the file's FPU type.
3932 2007-08-22 Daniel Jacobowitz <dan@codesourcery.com>
3934 * mips-tdep.c (mips_n32n64_fp_arg_chunk_p): New.
3935 (mips_n32n64_push_dummy_call): Always increment float_argreg along
3936 with argreg. Use mips_n32n64_fp_arg_chunk_p.
3938 2007-08-22 Daniel Jacobowitz <dan@codesourcery.com>
3940 * solib-svr4.c (scan_dyntag): Only read target memory when necessary.
3942 (elf_locate_base): Look for DT_MIPS_RLD_MAP first. Expand comments.
3943 (elf_lookup_lib_symbol): Fix formatting.
3945 2007-08-21 Michael Snyder <msnyder@access-company.com>
3947 * dbxread.c (read_dbx_symtab): Guard null deref.
3950 * valops.c (find_overload_match): Guard against NULL.
3952 2007-08-21 Daniel Jacobowitz <dan@codesourcery.com>
3954 * MAINTAINERS (Patch Champions): Remove self.
3956 2007-08-21 Chris Smith <chris.smith@st.com>
3958 * cli/cli-script.c (read_command_lines): Call dont_repeat for each
3961 2007-08-18 Michael Snyder <msnyder@access-company.com>
3963 * stabsread.c (dbx_lookup_type): Memory leak.
3965 * event-loop.c (delete_async_signal_handler): Move pointer null
3966 test to before pointer dereference.
3968 * ui-out.c (append_header_to_list): Possible cut and paste error.
3970 * MAINTAINERS: white space tweak.
3972 2007-08-17 Michael Snyder <msnyder@access-company.com>
3974 * stack.c (print_frame): Memory leak.
3976 * completer.c (filename_completer): Avoid memory leak.
3977 Remove unnecessary nested block.
3979 * c-exp.y (parse_number): Memory leak.
3981 * completer.c (location_completer): Must free 'fn_list', except
3982 in the one case where it is returned (as 'list').
3984 * varobj.c (value_of_root): Memory leak.
3986 * gdbtypes.h (virtual_base_list): Remove export decl.
3987 * gdbtypes.c (virtual_base_list): Make static. Not called outside.
3988 (virtual_base_index): Memory leak.
3989 (virtual_base_index_skip_primaries): Ditto.
3991 2007-08-17 Maxim Grigoriev <maxim2405@gmail.com>
3993 * xtensa-tdep.c (ARG_NOF, ARG_1ST, PS_WOE, PS_EXC, C0_MAXOPDS)
3994 (C0_NREGS, C0_CLESV, C0_SP, C0_FP, C0_RA, C0_ARGS, C0_NARGS)
3995 (C0_CONST, C0_INEXP, C0_NOSTK): New macros.
3996 (xtensa_read_register): New function.
3997 (xtensa_windowed_frame_cache, xtensa_call0_frame_cache, xtensa_c0reg)
3998 (xtensa_insn_kind): New types.
3999 (xtensa_frame_cache, xtensa_alloc_frame_cache, xtensa_frame_cache)
4000 (xtensa_frame_prev_register, xtensa_return_value, xtensa_skip_prologue)
4001 (xtensa_verify_config, xtensa_pseudo_register_read)
4002 (xtensa_pseudo_register_write, xtensa_extract_return_value)
4003 (xtensa_store_return_value)
4004 (xtensa_push_dummy_call): Extended to support Xtensa Call0 ABI.
4005 (windowing_enabled, extract_call_winsize, xtensa_unwind_dummy_id)
4006 (xtensa_frame_this_id, xtensa_frame_prev_register)
4007 (xtensa_register_type, xtensa_reg_to_regnum): Cosmetic changes.
4008 (call0_frame_cache, call0_frame_get_reg_at_entry)
4009 (call0_classify_opcode, call0_track_op)
4010 (call0_analyze_prologue, call0_frame_cache): New functions.
4012 2007-08-17 Vladimir Prus <vladimir@codesourcery.com>
4014 * breakpoint.c (bpstat_free): New.
4015 (bpstat_clear): Use bpstat_free.
4016 (delete_breakpoint): Document why we cannot
4017 remove bpstats from stop_bpstat.
4018 * breakpoint.h (bpstat_free): Declare.
4020 2007-08-16 Michael Snyder <msnyder@access-company.com>
4022 * event-loop.c (gdb_wait_for_event): Move statement into "if" block.
4024 2007-08-15 Paul Hilfinger <hilfinger@adacore.com>
4025 Joel Brobecker <brobecker@adacore.com>
4027 * ada-lang.c (resolve_subexp): Correct arity of binary operators.
4029 2007-08-15 Paul Hilfinger <hilfinger@adacore.com>
4030 Joel Brobecker <brobecker@adacore.com>
4032 * ada-lang.c (possible_user_operator_p): Alternative fix to last
4033 checkin guarding against NULL.
4035 2007-08-14 Michael Snyder <msnyder@access-company.com>
4037 * tui-command.c, tui-data.c, tui-disasm.c, tui-file.c, tui-io.c,
4038 tui-layout.c, tui-regs.c, tui-source.c, tui-win.c, tui-windata.c,
4039 tui-wingeneral.c, tui-winsource.c: Coding standard, && and ||
4040 go at beginning of new line.
4042 * tui-data.c, tui-data.h, tui-disasm.c, tui-disasm.h, tui-hooks.c,
4043 tui-io.c, tui-layout.c, tui-layout.h, tui-out.c, tui-regs.c,
4044 tui-source.c, tui-source.h, tui-stack.c, tui-win.c, tui-win.h,
4045 tui-windata.c, tui-windata.h, tui-wingeneral.c, tui-winsource.c,
4046 tui-winsource.h, tui.c, tui.h: Function declarations and
4047 definitions, wrap long lines.
4049 * tui-command.c, tui-data.c, tui-disasm.c, tui-layout.c,
4050 tui-regs.c, tui-win.c, tui-windata.c, tui-winsource.c, tui.c:
4051 Reformat block comments to GNU standard.
4053 * tui-command.c, tui-data.c, tui-data.h, tui-disasm.c, tui-file.c,
4054 tui-hooks.c, tui-interp.c, tui-io.c, tui-layout.c, tui-out.c,
4055 tui-regs.c, tui-regs.h, tui-source.c, tui-stack.c, tui-win.c,
4056 tui-windata.c, tui-wingeneral.c, tui-winsource.c, tui-winsource.h,
4057 tui.c, tui.h: Comment reformatting to coding standard (capitals,
4058 spaces after periods, etc).
4060 * tui-data.c, tui-data.h, tui-disasm.c, tui-hooks.c, tui-layout.c,
4061 tui-regs.c, tui-source.c, tui-stack.c, tui-win.c, tui-windata.c,
4062 tui-wingeneral.c, tui-wingeneral.h, tui-winsource.c, tui.c,
4063 tui-winsource.h: Whitespace changes, fix pointer declarations
4066 2007-08-14 Joel Brobecker <brobecker@adacore.com>
4067 Michael Snyder <msnyder@access-company.com>
4069 * ada-lang.c (field_alignment): Guard against NULL.
4071 2007-08-14 Joel Brobecker <brobecker@adacore.com>
4073 * MAINTAINERS (Global Maintainers): Add self.
4075 2007-08-14 Michael Snyder <msnyder@access-company.com>
4077 * mi/mi-interp.c (mi_cmd_interpreter_exec): Dead code, dead variable.
4079 * ada-lang.c (possible_user_operator_p): Guard against NULL.
4081 * varobj.c (cplus_describe_child): Guard against null.
4082 Use "NULL" instead of "0" to initialize pointers.
4084 2007-08-14 Daniel Jacobowitz <dan@codesourcery.com>
4086 * arm-tdep.c (arm_gdbarch_init): Allow unknown ABI and FPU settings
4087 to match any gdbarch with matching OSABI. Set default ABI and FPU
4088 after running the OSABI handler.
4090 2007-08-14 Daniel Jacobowitz <dan@codesourcery.com>
4092 * config/i386/linux.mh (NATDEPFILES): Move corelow.o from here...
4093 * config/i386/linux.mt (TDEPFILES): ...to here.
4095 2007-08-14 Vladimir Prus <vladimir@codesourcery.com>
4097 * breakpoint.c (disable_breakpoints_in_shlibs): Remove
4098 the 'silent' parameter and code to implement that.
4099 * breakpoint.h (disable_breakpoints_in_shlibs): Adjust
4101 * win32-nat.c: Adjust.
4104 2007-08-14 Vladimir Prus <vladimir@codesourcery.com>
4106 * breakpoint.c (update_breakpoints_after_exec): Don't
4107 set address to zero.
4109 2007-08-13 Michael Snyder <msnyder@access-company.com>
4111 * valops.c: Whitespace clean-up.
4113 * tui/tui-winsource.c (tui_alloc_source_buffer): Clean up allocation.
4115 * event-top.c (command_line_handler): Memory leak.
4117 * mi/mi-cmd-var.c (mi_cmd_var_set_format): Memory leak.
4118 No need to make copy.
4120 * source.c (find_source_lines): Require symtab 's'.
4122 2007-08-11 Michael Snyder <msnyder@access-company.com>
4124 * completer.c: Spelling fix in comments.
4126 2007-08-10 Michael Snyder <msnyder@access-company.com>
4128 * gdbtypes.c: Coding standard cleanup.
4129 * gdbtypes.c: Comment/whitespace cleanup.
4131 * stabsread.c (read_huge_number): Attempt to compute value before
4132 values that it depends on.
4134 * linespec.c (decode_dollar): Dead code, ptr can't be non-null.
4135 (decode_objc): Use "NULL" instead of 0.
4136 (find_method): Ditto.
4137 (decode_all_digits): Ditto.
4138 (decode_dollar): Ditto.
4140 * mi/mi-main.c (mi_cmd_data_evaluate_expression): Resource leak.
4142 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Memory leak.
4144 * solib-svr4.c (enable_break): Don't free tmp_pathname until
4147 * completer.c: Comment/whitespace cleanup.
4149 2007-08-10 Joel Brobecker <brobecker@adacore.com>
4151 * Makefile.in (i386nbsd-nat.o): Add missing dependency.
4153 2007-08-10 Maxim Grigoriev <maxim2405@gmail.com>
4155 * remote-fileio.c (remote_fileio_resize_fd_map): Initialize newly
4156 allocated file descriptors.
4158 2007-08-10 Joel Brobecker <brobecker@adacore.com>
4160 * Makefile.in: Minor cleanup throughout; add some missing variables,
4161 add some missing rules, remove some rules that are no longer needed,
4162 and fix the dependencies in several rules.
4164 2007-08-10 Ludovic Courtès <ludo@gnu.org>
4166 * Makefile.in (SFILES): Add scm-{exp,lang,valprint}.c.
4167 (scm_lang_h, scm_tags_h): New.
4168 (COMMON_OBS): Add scm-{exp,lang,valprint}.o.
4169 (scm-exp.o, scm-lang.o, scm-valprint.o): New targets.
4170 * defs.h (enum language): Add `language_scm'.
4172 * MAINTAINERS: Add Emacs local variables to use UTF-8 upon
4175 2007-08-09 Ludovic Courtès <ludo@gnu.org>
4177 * MAINTAINERS (Write After Approval): Add myself.
4179 2007-08-09 Michael Snyder <msnyder@access-company.com>
4181 * solib.c (solib_open): Memory leak -- openp returns xmalloc buffer.
4183 2007-08-09 Joel Brobecker <brobecker@adacore.com>
4185 * solib-som.c (som_relocate_section_addresses): Stop saving
4186 the $CODE$ section in the so_list structure.
4188 2007-08-08 Maxim Grigoriev <maxim2405@gmail.com>
4190 * xtensa-tdep.h (XTENSA_MAX_COPROCESSOR): New.
4191 (xtensa_register_group_t): Add entries for coprocessors.
4192 * xtensa-tdep.c (xtensa_init_reggroups): New register groups.
4193 (xtensa_add_reggroups): Likewise.
4194 (xtensa_register_reggroup_p): Likewise.
4195 (xtensa_coprocessor_register_group): New function.
4198 2007-08-08 Jan Kratochvil <jan.kratochvil@redhat.com>
4200 * serial.c (serial_open): Fix the OPEN parameter macro expansion.
4202 2007-08-08 Michael Snyder <msnyder@access-company.com>
4204 * target.c (target_read_string): Guard against null.
4206 * varobj.c (value_of_root): Move alloc after return to avoid leak.
4208 * tui/tui-layout.c (tui_set_layout): Dead code, dead variable.
4209 (tui_set_layout_for_display_command): Mem leak.
4211 * top.c (command_line_input): Memory leak.
4213 * solib-svr4.c (open_symbol_file_object): Memory leak.
4214 (svr4_current_sos): Ditto.
4215 (enable_break): Ditto.
4217 * cp-valprint.c (cp_print_hpacc_virtual_table_entries): Memory leak.
4219 * dwarf2read.c (add_partial_symbol): Memory leak.
4221 2007-08-06 Michael Snyder <msnyder@access-company.com>
4223 * ada-lang.c (desc_bounds): Comparison of function address to NULL.
4225 2007-08-05 Jim Blandy <jimb@codesourcery.com>
4227 * macroexp.c (init_buffer): Remove testing code that overrides the
4228 caller's length guess.
4229 (gather_arguments): Use a larger initial size, now that the vector
4230 growth code has been exercised.
4232 2007-08-05 Pedro Alves <pedro_alves@portugalmail.pt>
4234 * solib-target.c (solib_target_relocate_section_addresses): Add
4235 orig_delta to addr_high.
4237 2007-08-04 Michael Snyder <msnyder@access-company.com>
4239 * remote-fileio.c (remote_fileio_func_write): Memory leak.
4241 * breakpoint.c (print_one_breakpoint): Off by one error.
4243 * tracepoint.c (add_register): Off by one error.
4244 (stringify_collection_list): Free malloc buffer.
4246 2007-08-03 Michael Snyder <msnyder@access-company.com>
4248 * mi-cmd-var.c (mi_cmd_var_delete): Remove unused variable,
4249 stop memory leak, straighten out cleanups.
4251 * jv-lang.c (java_link_class_type): Guard against NULL.
4253 2007-08-02 Michael Snyder <msnyder@access-company.com>
4255 * gdbtypes.c (create_set_type): Test should only be done within
4256 the preceeding if block. Otherwise, variable is uninitialized.
4258 * gdbtypes.c (check_typedef): Guard NULL.
4260 2007-08-01 Michael Snyder <msnyder@access-company.com>
4262 * cli/cli-decode.c (lookup_cmd): Check for null earlier, to
4263 avoid dereference in lookup_cmd_1.
4265 * tui/tui-data.c (tui_alloc_content): Move assign out of if,
4266 clean up long lines.
4267 (tui_alloc_generic_win_info): Tidy by using XMALLOC macro.
4268 (tui_alloc_win_info): Ditto.
4269 (tui_add_content_elements): Ditto.
4270 * tui/tui-file.c (tui_file_magic): Ditto.
4272 2007-07-31 Michael Snyder <msnyder@access-company.com>
4274 * breakpoint.c (breakpoint_init_inferior): Add 'else' to 'if'.
4275 True and false paths are mutually exclusive.
4277 * event-top.c (command_line_handler): Add pedantic return.
4279 * f-valprint.c (info_common_command): Bail out to prevent null
4280 pointer deref. Break up a long line.
4282 * exec.c (xfer_memory): Remove redundant condition from 'if'.
4284 * symfile.c (reread_separate_symbols): Free xmalloced memory.
4286 * printcmd.c (build_address_symbolic): Remove dead code and dead
4289 2007-07-31 Daniel Jacobowitz <dan@codesourcery.com>
4291 * linespec.c (minsym_found): Advance to the next line if possible.
4293 2007-07-31 Pedro Alves <pedro_alves@portugalmail.pt>
4295 * arm-wince-tdep.c (arm_wince_init_abi): Remove svr4 related call.
4296 * config/arm/wince.mt (TDEPFILES): Remove solib-legacy.o and
4297 solib-svr4.o, and add solib-target.o
4299 2007-07-27 Michael Snyder <msnyder@access-company.com>
4301 * tui/tui-data.c (tui_alloc_generic_win_info): Wrong arg for sizeof.
4303 2007-07-26 Maciej W. Rozycki <macro@linux-mips.org>
4305 * MAINTAINERS (Write After Approval): Add myself.
4307 2007-07-26 Maciej W. Rozycki <macro@mips.com>
4309 * Makefile.in (MAKEHTMLFLAGS): Also search the current directory
4312 2007-07-25 Maciej W. Rozycki <macro@mips.com>
4314 * Makefile.in (MAKEHTMLFLAGS): Remove "-glossary".
4316 2007-07-24 Michael Snyder <msnyder@access-company.com>
4318 * solib-svr4.c (svr4_fetch_objfile_link_map): Null pointer check of
4319 'buffer' must cover both branches that call strcmp (Coverity).
4321 * stack.c (print_frame_args): Check return value of lookup_symbol.
4323 * ax-gdb.c (find_field): Guard against null ptr.
4325 2007-07-24 Ulrich Weigand <uweigand@de.ibm.com>
4327 * regformats/reg-spu.dat: Fix order of npc, id registers.
4329 2007-07-24 Ulrich Weigand <uweigand@de.ibm.com>
4331 * target.c (memory_xfer_partial): Accesses to unmapped overlay
4332 sections should always go to the executable file.
4334 2004-07-20 Chris Dearman <chris@mips.com>
4336 * mips-tdep.c (heuristic_proc_start): Add more MIPS16 function
4337 prologue instructions.
4339 2007-07-20 Maciej W. Rozycki <macro@mips.com>
4341 * mips-tdep.c (mips_next_pc): Use is_mips16_addr() instead of
4344 2007-07-20 Chris Dearman <chris@mips.com>
4345 Maciej W. Rozycki <macro@mips.com>
4347 * mips-tdep.c (fetch_mips_16): Fix typos and reformat the
4350 2007-07-17 Pedro Alves <pedro_alves@portugalmail.pt>
4351 Daniel Jacobowitz <dan@codesourcery.com>
4353 * config/i386/cygwin.mt (TDEPFILES): Add solib-target.o.
4354 * coff-pe-read.c (read_pe_exported_syms): Delete verbose
4356 * NEWS: Mention gdbserver DLL support.
4358 2007-07-17 Daniel Jacobowitz <dan@codesourcery.com>
4360 * dwarf2read.c (dwarf_decode_lines): Detect address size mismatches.
4362 2007-07-16 H.J. Lu <hongjiu.lu@intel.com>
4364 * i386-linux-nat.c (fetch_regs): Work around gcc 3.4 alias
4367 2007-07-13 Kevin Buettner <kevinb@redhat.com>
4369 * mep-tdep.c (mep_analyze_prologue): Update comment for BRA
4372 2007-07-12 Kevin Buettner <kevinb@redhat.com>
4374 * mep-tdep.c (IS_BRA, BRA_DISP): New macros.
4375 (mep_analyze_prologue): Add case for BRA instruction.
4377 2007-07-12 Ulrich Weigand <uweigand@de.ibm.com>
4379 * solib-svr4.c (LM_ADDR_CHECK): Relax prelink recognition heuristic.
4381 2007-07-10 Nick Roberts <nickrob@snap.net.nz>
4383 * breakpoint.c: Include "top.h".
4384 (breakpoint_1): Don't set convenience variable $_ if server prefix
4386 (_initialize_breakpoint): Describe this behaviour in command help.
4388 2007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
4390 * solib-target.c (library_list_start_segment): Cast address to
4393 2007-07-06 Mark Kettenis <kettenis@gnu.org>
4395 * bsd-uthread.c (bsd_uthread_wait): Don't try to fetch thread IDs
4396 for terminated processes.
4398 2007-07-05 Michael Snyder <msnyder@access-company.com>
4400 * event-top.c (cli_command_loop): Prompt string can (and should)
4401 be freed after call to readline (Coverity). Also move local var
4402 declarations into block where they are used.
4404 * tui/tui-interp.c (tui_command_loop): Prompt string can (and
4405 should) be freed after call to readline (Coverity). Also move
4406 local var declarations into block where they are used.
4408 2007-07-03 Andreas Schwab <schwab@suse.de>
4410 * linux-nat.c (linux_nat_info_proc_cmd): Fix parsing of columns in
4413 2007-07-03 Paul Gilliam <pgilliam@us.ibm.com>
4414 Thiago Bauermann <bauerman@br.ibm.com>
4415 Joseph S. Myers <joseph@codesourcery.com>
4416 Daniel Jacobowitz <dan@codesourcery.com>
4418 * remote.c (remote_check_symbols): Use
4419 gdbarch_convert_from_func_ptr_addr.
4420 * infcall.c (find_function_addr): Handle function descriptors
4421 without debugging information.
4422 * ppc-linux-tdep.c (ppc_linux_convert_from_func_ptr_addr): Renamed
4423 from ppc64_linux_convert_from_func_ptr_addr. Handle -msecure-plt.
4424 (ppc_linux_init_abi): Always set convert_from_func_ptr_addr.
4425 * solib-svr4.c (solib_break_names): Remove "._dl_debug_state".
4426 (bfd_lookup_symbol): Do not take a SECT_FLAGS argument. Always
4427 allow SEC_CODE and SEC_DATA.
4428 (enable_break): Update calls. Pass current_target to solib_add.
4429 Use gdbarch_convert_from_func_ptr_addr.
4431 2007-07-03 Ilko Iliev <iliev@ronetix.at>
4432 Daniel Jacobowitz <dan@codesourcery.com>
4434 * symfile.c (print_transfer_performance): Avoid integer overflow.
4437 2007-07-03 Markus Deuling <deuling@de.ibm.com>
4439 * cp-namespace.c (lookup_symbol_file): Add block to
4440 lookup_symbol_global call.
4441 * Makefile.in (solist_h): Add dependency on symtab header.
4442 (symtab.o): Add dependency on solist header.
4443 * solib.c (solib_global_lookup): New function.
4444 * solib-svr4.c (scan_dyntag): Likewise.
4445 (elf_locate_base): Call helper routine scan_dyntag.
4446 (elf_lookup_lib_symbol): New function.
4447 (_initialize_svr4_solib): Add elf_lookup_lib_symbol to svr4_so_ops.
4448 * solist.h (symtab.h): New include.
4449 (struct target_so_ops): New member lookup_lib_global_symbol.
4450 (solib_global_lookup): New prototype.
4451 * symtab.c: New include solist.h.
4452 (lookup_objfile_from_block): New function.
4453 (lookup_global_symbol_from_objfile): New function.
4454 (basic_lookup_symbol_nonlocal): Add block to lookup_symbol_global call.
4455 (lookup_symbol_global): Call library-specific lookup procedure.
4456 * symtab.h (lookup_global_symbol_from_objfile): New prototype.
4458 * NEWS: Document framework.
4460 2007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
4462 * target-descriptions.c (tdesc_create_reg): Do not set reg->type
4465 * cli/cli-script.c (build_command_line): Update NULL check.
4467 2007-07-02 Michael Snyder <msnyder@access-company.com>
4469 * p-exp.y (yylex): Memory leak, 'uptokstart' must be freed (Coverity).
4471 2007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
4473 * Makefile.in (XMLFILES): Add library-list.dtd.
4474 (ALLDEPFILES): Add solib-target.o.
4475 (solib-target.o): New rule.
4476 * remote.c (PACKET_qXfer_libraries): New constant.
4477 (remote_protocol_features): Add qXfer:libraries:read.
4478 (remote_wait): Recognize library stop replies.
4479 (remote_async_wait): Likewise. Fix typo.
4480 (remote_xfer_partial): Handle TARGET_OBJECT_LIBRARIES.
4481 (init_remote_async_ops): Fix typo.
4482 (_initialize_remote): Register "set remote library-info-packet".
4483 * solib-som.c (som_current_sos): Set addr_low and addr_high.
4484 * solib-target.c: New file.
4485 * solib.c (solib_map_sections): Use addr_low and addr_high instead
4487 (info_sharedlibrary_command): Likewise.
4488 (solib_add_library, solib_remove_library): New.
4489 * solist.h (struct so_list): Replace textsection with addr_low and
4491 * target.h (enum target_object): Add TARGET_OBJECT_LIBRARIES.
4492 * NEWS: Describe new qXfer:libraries:read and shared library
4494 * features/library-list.dtd: New.
4496 2007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
4498 * infrun.c (inferior_ignoring_startup_exec_events): Delete.
4499 (start_remote): Use STOP_QUIETLY_REMOTE.
4500 (handle_inferior_event): Do not condition TARGET_WAITKIND_LOADED
4501 support on a SOLIB_ADD definition. Update breakpoints_inserted.
4502 Update to match shared library event breakpoint support. Only
4503 resume if appropriate. Handle STOP_QUIETLY_REMOTE.
4504 (normal_stop): Handle TARGET_WAITKIND_LOADED.
4505 * fork-child.c (startup_inferior): Do not set
4506 inferior_ignoring_startup_exec_events
4507 * inferior.h (inferior_ignoring_startup_exec_events): Delete
4509 (enum stop_kind): Improve documentation. Add STOP_QUIETLY_REMOTE.
4511 2007-07-02 Markus Deuling <deuling@de.ibm.com>
4513 * breakpoint.c (insert_bp_location): Remove dead code
4514 (DISABLE_UNSETTABLE_BREAK).
4515 (disable_breakpoints_in_shlibs)
4516 (disable_breakpoints_in_unloaded_shlib): Likewise (comment).
4518 2007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
4520 * breakpoint.c (reattach_breakpoints): Do not use remove_breakpoint.
4521 Call insert_bp_location.
4523 2007-07-01 H.J. Lu <hongjiu.lu@intel.com>
4525 * core-regset.c (fetch_core_registers): Work around gcc 3.4
4528 2007-07-01 Daniel Jacobowitz <dan@codesourcery.com>
4530 * minsyms.c (lookup_minimal_symbol_by_pc_section): Search fewer
4533 2007-07-01 Daniel Jacobowitz <dan@codesourcery.com>
4535 * top.c (gdb_readline_wrapper_line): Call rl_callback_handler_remove.
4536 (struct gdb_readline_wrapper_cleanup): Remove prompt_orig.
4537 (gdb_readline_wrapper_cleanup): Do not reset the prompt.
4538 (gdb_readline_wrapper): Do not save the prompt. Pass our prompt
4539 to display_gdb_prompt.
4541 2007-07-01 Daniel Jacobowitz <dan@codesourcery.com>
4544 * target.c (memory_xfer_partial): Do not continue past targets with
4547 2007-06-30 Andreas Schwab <schwab@suse.de>
4549 * m68k-tdep.c (m68k_ps_type): New.
4550 (m68k_init_types): New.
4551 (m68k_register_type): Use m68k_ps_type for PS register.
4552 (_initialize_m68k_tdep): Call m68k_init_types.
4554 * m68k-tdep.c (m68k_gdbarch_init): Don't infer coldfire flavour
4555 from the generic m68k arch.
4557 2007-06-28 Michael Snyder <msnyder@access-company.com>
4559 * m2-typeprint.c (m2_print_type): Move pointer ref after null test
4562 * linux-thread-db.c (thread_db_get_thread_local_address): Add
4563 gdb_assert before using return value of find_thread_pid (Coverity).
4565 * source.c (unset_substitute_path_command): Plug leak (Coverity).
4567 * cli/cli-script.c (build_command_line): Add null pointer guard
4570 2007-06-27 Daniel Jacobowitz <dan@codesourcery.com>
4572 * linux-thread-db.c (thread_db_attach): Delete.
4573 (thread_db_detach): Typo fix. Call target_mourn_inferior
4574 instead of fixing up proc_handle.
4575 (have_threads_callback, have_threads): New functions.
4576 (thread_db_wait): Remove dead proc_handle.pid check. Only
4577 translate PTIDs if we have registered threads. Check for new
4578 threads if we have none.
4579 (thread_db_create_inferior, thread_db_post_startup_inferior): Delete.
4580 (find_new_threads_callback): Only enable event reporting if TID == 0.
4581 (same_ptid_callback): New.
4582 (thread_db_get_thread_local_address): Check for new threads.
4583 (init_thread_db_ops): Don't set to_attach, to_create_inferior,
4584 or to_post_startup_inferior.
4586 2007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
4588 * infrun.c (adjust_pc_after_break): Do not assume software single-step
4589 is always active if SOFTWARE_SINGLE_STEP_P is true.
4590 (resume): Use gdbarch_software_single_step[_p] instead of
4591 SOFTWARE_SINGLE_STEP[_P].
4592 (handle_inferior_event): Do not check for SOFTWARE_SINGLE_STEP_P.
4594 * gdbarch.sh (software_single_step): Remove target macro.
4595 * gdbarch.h, gdbarch.c: Regenerate.
4597 2007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
4599 * gdbarch.sh (gdbarch_swap_ftype, deprecated_register_gdbarch_swap,
4600 DEPRECATED_REGISTER_GDBARCH_SWAP): Remove.
4601 (struct gdbarch_swap, struct gdbarch_swap_registration,
4602 struct gdbarch_swap_registry, gdbarch_swap_registry,
4603 current_gdbarch_swap_init_hack, current_gdbarch_swap_out_hack,
4604 current_gdbarch_swap_in_hack): Remove.
4605 (find_arch_by_info): Do not call current_gdbarch_swap_init_hack.
4606 (gdbarch_find_by_info): Do not call current_gdbarch_swap_in_hack
4607 and current_gdbarch_swap_out_hack, update current_gdbarch directly.
4608 (deprecated_current_gdbarch_select_hack): Likewise.
4609 * gdbarch.h, gdbarch.c: Regenerate.
4611 2007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
4613 * infrun.c (clear_proceed_status): Clean up stop_registers.
4614 (normal_stop): Allocate regcache for stop_registers.
4615 (struct inferior_status): Remove stop_registers member.
4616 (save_inferior_status): Do not save stop_registers.
4617 (restore_inferior_status): Do not restore stop_registers.
4618 (discard_inferior_status): Do not discard stop_registers.
4619 (build_infrun): Remove.
4620 (_initialize_infrun): Do not swap stop_registers.
4622 2007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
4624 * remote.c (remote_address_masked): If remote_address_size is zero,
4625 default to target address size.
4626 (build_remote_gdbarch_data): Remove.
4627 (_initialize_remote): Do not swap remote_address_size.
4629 2007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
4631 * gdbtypes.h (builtin_type_true_char, builtin_type_void,
4632 builtin_type_char, builtin_type_short, builtin_type_int,
4633 builtin_type_long, builtin_type_signed_char,
4634 builtin_type_unsigned_char, builtin_type_unsigned_short,
4635 builtin_type_unsigned_int, builtin_type_unsigned_long,
4636 builtin_type_float, builtin_type_double, builtin_type_long_double,
4637 builtin_type_complex, builtin_type_double_complex, builtin_type_string,
4638 builtin_type_bool, builtin_type_long_long,
4639 builtin_type_unsigned_long_long, builtin_type_void_data_ptr,
4640 builtin_type_void_func_ptr, builtin_type_CORE_ADDR): Replace global
4641 variable declaration with compatibility macro.
4642 * gdbtypes.c (builtin_type_true_char, builtin_type_void,
4643 builtin_type_char, builtin_type_short, builtin_type_int,
4644 builtin_type_long, builtin_type_signed_char,
4645 builtin_type_unsigned_char, builtin_type_unsigned_short,
4646 builtin_type_unsigned_int, builtin_type_unsigned_long,
4647 builtin_type_float, builtin_type_double, builtin_type_long_double,
4648 builtin_type_complex, builtin_type_double_complex, builtin_type_string,
4649 builtin_type_bool, builtin_type_long_long,
4650 builtin_type_unsigned_long_long, builtin_type_void_data_ptr,
4651 builtin_type_void_func_ptr, builtin_type_CORE_ADDR): Remove.
4652 (build_gdbtypes): Remove.
4653 (_initialize_gdbtypes): Do not call build_gdbtypes, move installing
4654 opaque-type-resolution command here. Do not call
4655 deprecated_register_gdbarch_swap.
4657 2007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
4659 * gdbtypes.h (struct builtin_type): New members nodebug_text_symbol,
4660 nodebug_data_symbol, nodebug_unknown_symbol, and nodebug_tls_symbol.
4661 * gdbtypes.c (gdbtypes_post_init): Initialize nodebug_ default types.
4663 * parse.c (msym_text_symbol_type, msym_data_symbol_type): Remove.
4664 (msym_unknown_symbol_type, msym_tls_symbol_type): Remove.
4665 (write_exp_msymbol): Use builtin nodebug_ types instead of them.
4666 (build_parse): Remove.
4667 (_initialize_parse): Do not call build_parse. Do not register
4668 msym_ types for gdbarch-swapping.
4670 * dwarf2read.c (new_symbol): Use default nodebug_data_symbol type
4671 instead of creating private type.
4673 * xcoffread.c (func_symbol_type, var_symbol_type): Remove.
4674 (_initialize_xcoffread): Do not initialized them.
4675 (process_xcoff_symbol): Use builtin nodebug_ types instead of them.
4677 * mdebugread.c (nodebug_func_symbol_type): Remove.
4678 (nodebug_var_symbol_type): Remove.
4679 (_initialize_mdebugread): Do not initialize them.
4680 (parse_symbol): Use builtin nodebug_ type instead of them.
4681 (parse_procedure): Likewise.
4683 2007-06-21 Chris Dearman <chris@mips.com>
4685 * printcmd.c (do_one_display): If display/i, start with an initial
4686 line feed to avoid bad layout if there is a branch delay slot.
4688 2007-06-21 Nigel Stephens <nigel@mips.com>
4689 Maciej W. Rozycki <macro@mips.com>
4691 * disasm.c (gdb_print_insn): Return the number of branch delay
4692 slot instructions too.
4693 * disasm.h (gdb_print_insn): Update prototype.
4694 * printcmd.c (branch_delay_insns): New variable to record the
4695 number of delay slot instructions after disassembling a branch.
4696 (print_formatted): Record the number of branch delay slot
4698 (do_examine): When disassembling, if the last instruction
4699 disassembled has any branch delay slots, then bump the count so
4700 that they get disassembled too.
4701 * tui/tui-disasm.c (tui_disassemble): Update the call to
4703 * NEWS: Document the new behaviour.
4705 2007-06-21 Andreas Schwab <schwab@suse.de>
4707 * regcache.c (write_pc_pid): Restore missing else.
4709 2007-06-20 Ulrich Weigand <uweigand@de.ibm.com>
4711 * regcache.c (regcache_print): Use get_current_regcache ()
4712 instead of current_regcache.
4714 2007-06-20 H.J. Lu <hongjiu.lu@intel.com>
4717 * gcore.c (gcore_command): Use bfd_make_section_anyway_with_flags
4718 instead of bfd_make_section_anyway.
4719 (gcore_create_callback): Likewise. Also set SEC_NEVER_LOAD
4720 when clearing SEC_LOAD.
4722 2007-06-19 Joseph Myers <joseph@codesourcery.com>
4724 * arm-tdep.c (arm_push_dummy_call): Correct padding of partial
4725 registers for big-endian.
4727 2007-06-19 Markus Deuling <deuling@de.ibm.com>
4729 * gdbarch.sh (TARGET_PRINT_INSN): Replace by gdbarch_print_insn.
4730 * disasm.c (dump_insns, gdb_print_insn): Likewise.
4731 * gdbarch.c, gdbarch.h: Regenerate.
4733 2007-06-19 Markus Deuling <deuling@de.ibm.com>
4735 * gdbarch.sh (BELIEVE_PCC_PROMOTION): Replace by
4736 gdbarch_believe_pcc_promotion.
4737 * stabsread.c (define_symbol): Likewise.
4738 Remove unnecessary definition.
4739 * coffread.c (process_coff_symbol): Remove unnecessary code.
4740 * gdbarch.c, gdbarch.h: Regenerate.
4742 2007-06-19 Daniel Jacobowitz <dan@codesourcery.com>
4744 * configure.ac: Do not use ${objdir}.
4745 * configure: Regenerated.
4747 2007-06-18 Ulrich Weigand <uweigand@de.ibm.com>
4749 * gdbarch.sh (deprecated_register_size): Remove.
4750 * gdbarch.h, gdbarch.c: Regenerate.
4752 * arm-tdep.c (arm_push_dummy_call): Replace DEPRECATED_REGISTER_SIZE
4753 by INT_REGISTER_SIZE.
4754 (thumb_get_next_pc, arm_return_in_memory): Likewise.
4755 (arm_gdbarch_init): Do not call set_gdbarch_deprecated_register_size.
4756 * ia64-tdep.c (ia64_gdbarch_init): Do not call
4757 set_gdbarch_deprecated_register_size.
4759 2007-06-18 Markus Deuling <deuling@de.ibm.com>
4761 * gdbarch.sh (DEPRECATED_FP_REGNUM): Replace by
4762 gdbarch_deprecated_fp_regnum.
4763 * std-regs.c (value_of_builtin_frame_fp_reg): Likewise.
4764 * remote-mips.c (mips_wait, mips_fetch_registers): Likewise.
4765 * arch-utils.c (legacy_virtual_frame_pointer): Likewise.
4766 * arch-utils.h (gdbarch_virtual_frame_pointer_ftype): Likewise
4768 * gdbarch.c, gdbarch.h: Regenerate.
4770 2007-06-18 Markus Deuling <deuling@de.ibm.com>
4772 * gdbarch.sh (EXTRACT_RETURN_VALUE): Replace with
4773 gdbarch_extract_return_value.
4774 * value.c (generic_use_struct_convention): Likewise (comment).
4775 * ia64-tdep.c (ia64_use_struct_convention): Likewise (comment).
4776 * arch-utils.c (legacy_return_value): Likewise.
4777 * arch-utils.h (legacy_return_value): Likewise (comment).
4778 * gdbarch.sh (STORE_RETURN_VALUE): Replace by
4779 gdbarch_store_return_value.
4780 * stack.c (return_command): Likewise (comment).
4781 * arch-utils.h (legacy_return_value): Likewise (comment).
4782 * arch-utils.c (legacy_return_value): Likewise.
4783 * gdbarch.c, gdbarch.h: Regenerate.
4785 2007-06-18 Markus Deuling <deuling@de.ibm.com>
4787 * gdbarch.sh (DEPRECATED_USE_STRUCT_CONVENTION): Replace by
4788 gdbarch_deprecated_use_struct_convention.
4789 * arch-utils.c (legacy_return_value): Likewise.
4790 * gdbarch.c, gdbarch.h: Regenerate.
4792 2007-06-18 Markus Deuling <deuling@de.ibm.com>
4794 * gdbarch.sh (DEPRECATED_FUNCTION_START_OFFSET): Replace by
4795 gdbarch_deprecated_function_start_offset.
4796 * symtab.c (find_function_start_sal)skip_prologue_using_sal): Likewise.
4797 * linespec.c (minsym_found): Likewise.
4798 * infrun.c (handle_inferior_event): Likewise.
4799 * infcall.c (find_function_addr): Likewise.
4800 * cli/cli-cmds.c (disassemble_command): Likewise.
4801 * gdbarch.c, gdbarch.h: Regenerate.
4803 2007-06-18 Markus Deuling <deuling@de.ibm.com>
4805 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Replace by
4806 gdbarch_deprecated_reg_struct_has_addr.
4807 * infcall.c (call_function_by_hand): Likewise.
4808 (DEPRECATED_REG_STRUCT_HAS_ADDR_P): Replace by
4809 * gdbarch_deprecated_reg_struct_has_addr_p.
4810 * infcall.c (call_function_by_hand): Likewise.
4811 * gdbarch.c, gdbarch.h: Regenerate.
4813 2007-06-18 Markus Deuling <deuling@de.ibm.com>
4815 * gdbarch.sh (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
4816 * sh-tdep.c (sh_extract_struct_value_address): Remove.
4817 (sh_gdbarch_init): Remove
4818 set_gdbarch_deprecated_extract_struct_value_address.
4819 * sh64-tdep.c (sh64_extract_struct_value_address): Remove.
4820 (sh64_gdbarch_init): Remove
4821 set_gdbarch_deprecated_extract_struct_value_address.
4822 * ia64-tdep.c (ia64_extract_struct_value_address): Remove.
4823 (ia64_gdbarch_init): Remove
4824 set_gdbarch_deprecated_extract_struct_value_address.
4825 * frv-tdep.c (frv_extract_struct_value_address): Remove.
4826 (frv_gdbarch_init): Remove
4827 set_gdbarch_deprecated_extract_struct_value_address.
4828 * gdbarch.c, gdbarch.h: Regenerate.
4830 2007-06-18 Markus Deuling <deuling@de.ibm.com>
4832 * gdbarch.sh (SP_REGNUM): Replace by gdbarch_sp_regnum.
4833 * v850-tdep.c (v850_unwind_sp): Likewise.
4834 * std-regs.c (value_of_builtin_frame_sp_reg): Likewise.
4835 * stack.c (frame_info): Likewise.
4836 * stabsread.c (define_symbol): Likewise.
4837 * sh-tdep.c (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu)
4838 (sh_dwarf2_frame_init_reg, sh_frame_cache, sh_frame_prev_register)
4839 (sh_unwind_sp): Likewise.
4840 * sh64-tdep.c (sh64_push_dummy_call, sh64_frame_cache)
4841 (sh64_frame_prev_register, sh64_unwind_sp): Likewise.
4842 * rs6000-tdep.c (rs6000_push_dummy_call, rs6000_unwind_dummy_id)
4843 (rs6000_frame_cache): Likewise.
4844 * rs6000-nat.c (store_register): Likewise.
4845 * remote-mips.c (mips_wait): Likewise.
4846 * procfs.c (procfs_fetch_registers, procfs_store_registers): Likewise.
4847 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call)
4848 (ppc64_sysv_abi_push_dummy_call): Likewise.
4849 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_cache): Likewise.
4850 * ppcobsd-nat.c (ppcobsd_supply_pcb): Likewise.
4851 * ppcnbsd-tdep.c (ppcnbsd_sigtramp_cache_init): Likewise.
4852 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache): Likewise.
4853 * m32r-rom.c (m32r_supply_register): Likewise.
4854 * frame.c (frame_sp_unwind): Likewise.
4855 * mips-tdep.c (mips_insn16_frame_cache)
4856 (mips_insn32_frame_cache): Likewise (comment).
4857 * m68klinux-nat.c (supply_gregset): Likewise.
4858 * m68k-tdep.c (m68k_get_longjmp_target): Likewise.
4859 * ia64-tdep.c (ia64_frame_prev_register): Likewise.
4860 * i386-tdep.c (i386_get_longjmp_target): Likewise.
4861 * dwarf2-frame.c (dwarf2_frame_default_init_reg): Likewise.
4862 * cris-tdep.c (cris_regnums, cris_sigcontext_addr)
4863 (cris_sigtramp_frame_unwind_cache, cris_push_dummy_call)
4864 (cris_scan_prologue, crisv32_scan_prologue, cris_unwind_sp)
4865 (cris_register_type, crisv32_register_type)
4866 (cris_dwarf2_frame_init_reg): Likewise.
4867 * arch-utils.c (legacy_virtual_frame_pointer): Likewise.
4868 * amd64-tdep.c (amd64_frame_prev_register): Likewise.
4869 * amd64-linux-tdep.c (amd64_linux_sigcontext_addr): Likewise.
4870 * libunwind-frame.c (libunwind_frame_cache): Likewise.
4872 * gdbarch.sh (PC_REGNUM): Replace by gdbarch_pc_regnum.
4873 * regcache.c (read_pc_pid, generic_target_write_pc): Likewise.
4874 * xtensa-tdep.c (xtensa_register_type, xtensa_supply_gregset)
4875 (xtensa_unwind_pc, xtensa_frame_cache, xtensa_frame_prev_register)
4876 (xtensa_extract_return_value, xtensa_store_return_value): Likewise.
4877 * v850-tdep.c (v850_unwind_pc): Likewise.
4878 * stack.c (frame_info): Likewise.
4879 * sh-tdep.c (sh_generic_show_regs, sh3_show_regs, sh2e_show_regs)
4880 (sh2a_show_regs, sh2a_nofpu_show_regs, sh3e_show_regs)
4881 (sh3_dsp_show_regs, sh4_show_regs, sh4_nofpu_show_regs)
4882 (sh_dwarf2_frame_init_reg, sh_frame_prev_register, sh_unwind_pc)
4883 (sh_dsp_show_regs): Likewise.
4884 * shnbsd-tdep.c (shnbsd_supply_gregset)
4885 (shnbsd_collect_gregset): Likewise.
4886 * shnbsd-nat.c (GETREGS_SUPPLIES): Likewise.
4887 * sh64-tdep.c (sh64_compact_reg_base_num, sh64_show_media_regs)
4888 (sh64_frame_prev_register, sh64_unwind_pc): Likewise.
4889 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset)
4890 (6000_register_reggroup_p, rs6000_unwind_pc)
4891 (rs6000_frame_cache): Likewise.
4892 * rs6000-nat.c (regmap, rs6000_fetch_inferior_registers)
4893 (rs6000_store_inferior_registers): Likewise.
4894 * remote-mips.c (mips_wait, mips_load): Likewise.
4895 * procfs.c (procfs_fetch_registers, procfs_store_registers): Likewise.
4896 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_cache): Likewise.
4897 * ppcobsd-nat.c (ppcobsd_supply_pcb): Likewise.
4898 * ppcnbsd-tdep.c (ppcnbsd_sigtramp_cache_init): Likewise.
4899 * ppcnbsd-nat.c (getregs_supplies, ppcnbsd_supply_pcb): Likewise.
4900 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache): Likewise.
4901 * ppc-linux-nat.c (ppc_register_u_addr, fetch_ppc_registers)
4902 (store_ppc_registers, fill_gregset): Likewise.
4903 * mips-tdep.c (mips_stub_frame_cache, mips_gdbarch_init): Likewise.
4904 * mipsnbsd-tdep.c (mipsnbsd_supply_reg, mipsnbsd_fill_reg): Likewise.
4905 * mipsnbsd-nat.c (getregs_supplies): Likewise.
4906 * m68k-tdep.c (m68k_register_type, m68k_unwind_pc): Likewise.
4907 * m68klinux-nat.c (supply_gregset): Likewise.
4908 * irix5-nat.c (fill_gregset): Likewise.
4909 * i386-tdep.c (i386_unwind_pc): Likewise.
4910 * i386-linux-nat.c (i386_linux_resume): Likewise.
4911 * frame.c (get_prev_frame_1): Likewise.
4912 * dwarf2-frame.c (dwarf2_frame_default_init_reg): Likewise.
4913 * dbug-rom.c (dbug_supply_register): Likewise.
4914 * cris-tdep.c (cris_sigtramp_frame_unwind_cache, cris_scan_prologue)
4915 (crisv32_scan_prologue, cris_unwind_pc, cris_register_size)
4916 (cris_register_type, crisv32_register_type, crisv32_register_name)
4917 (cris_dwarf2_frame_init_reg, find_step_target)
4918 (cris_software_single_step, cris_supply_gregset)
4919 (cris_regnums): Likewise.
4920 * alpha-linux-nat.c (alpha_linux_register_u_offset): Likewise.
4921 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
4922 (fill_sprs64, fill_sprs32, store_regs_user_thread): Likewise.
4923 * std-regs.c (value_of_builtin_frame_pc_reg): Likewise.
4924 * mips-linux-tdep.c (mips_linux_write_pc): Likewise.
4926 * gdbarch.sh (PS_REGNUM): Replace by gdbarch_ps_regnum.
4927 * dbug-rom.c (dbug_supply_register): Likewise.
4928 * xtensa-tdep.c (xtensa_supply_gregset, xtensa_frame_cache)
4929 (xtensa_frame_prev_register, xtensa_push_dummy_call): Likewise.
4930 * win32-nat.c (win32_resume): Likewise.
4931 * std-regs.c (value_of_builtin_frame_ps_reg): Likewise.
4932 * m68k-tdep.c (m68k_register_type): Likewise.
4933 * m68klinux-nat.c (supply_gregset): Likewise.
4935 * gdbarch.sh (FP0_REGNUM): Replace by gdbarch_fp0_regnum.
4936 * sh-tdep.c (sh_extract_return_value_fpu, sh_store_return_value_fpu)
4937 (sh2e_show_regs, sh2a_show_regs, sh3e_show_regs, sh4_show_regs)
4938 (sh_sh2a_register_type, sh_sh3e_register_type, sh_sh4_register_type)
4939 (fv_reg_base_num, dr_reg_base_num): Likewise.
4940 * sh64-tdep.c (sh64_fv_reg_base_num, sh64_dr_reg_base_num)
4941 (sh64_fpp_reg_base_num, sh64_compact_reg_base_num, sh64_push_dummy_call)
4942 (sh64_extract_return_value, sh64_store_return_value)
4943 (sh64_show_media_regs, sh64_show_compact_regs, sh64_register_type)
4944 (sh64_do_fp_register, sh64_media_print_registers_info): Likewise.
4945 * procfs.c (procfs_fetch_registers, procfs_store_registers)
4946 (invalidate_cache): Likewise.
4947 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache): Likewise.
4948 * mipsnbsd-tdep.c (mipsnbsd_supply_fpreg)
4949 (mipsnbsd_fill_fpreg): Likewise.
4950 * mipsnbsd-nat.c (mipsnbsd_fetch_inferior_registers)
4951 (mipsnbsd_store_inferior_registers): Likewise.
4952 * mips-linux-tdep.c (mips_supply_fpregset, mips_fill_fpregset)
4953 (mips64_supply_fpregset, mips64_fill_fpregset): Likewise.
4954 * mips-linux-nat.c (mips64_linux_register_addr): Likewise.
4955 * m68k-tdep.c (m68k_register_type, m68k_convert_register_p): Likewise.
4956 * m68klinux-nat.c (getfpregs_supplies, supply_fpregset)
4957 (fill_fpregset): Likewise.
4958 * irix5-nat.c (supply_fpregset, fill_fpregset): Likewise.
4959 * i386-tdep.h (struct_return): Likewise (comment).
4960 * i386-nto-tdep.c (i386nto_register_area): Likewise.
4961 * go32-nat.c (fetch_register, go32_fetch_registers, store_register)
4962 (go32_store_registers): Likewise.
4963 * alpha-tdep.c (alpha_next_pc): Likewise.
4964 * alpha-linux-nat.c (alpha_linux_register_u_offset): Likewise.
4965 * alphabsd-nat.c (alphabsd_fetch_inferior_registers)
4966 (alphabsd_store_inferior_registers): Likewise.
4967 * core-regset.c (fetch_core_registers): Likewise.
4968 * i386v4-nat.c (supply_fpregset, fill_fpregset): Likewise.
4970 * gdbarch.c, gdbarch.h: Regenerate.
4972 2007-06-18 Daniel Jacobowitz <dan@codesourcery.com>
4974 * coffread.c (coff_sym_fns): Add default_symfile_segments.
4975 * dbxread.c (start_psymtab): Check HAVE_ELF.
4976 (aout_sym_fns): Likewise.
4977 * elfread.c (elf_symfile_segments): New.
4978 (elf_sym_fns): Add elf_symfile_segments.
4979 * mipsread.c (ecoff_sym_fns): Add default_symfile_segments.
4980 * remote.c (get_offsets): Use symfile_map_offsets_to_segments.
4981 Skip if there is no symfile_objfile. Handle TextSeg and DataSeg.
4982 * somread.c (som_sym_fns): Use default_symfile_segments.
4983 * symfile.c (find_sym_fns): Take a BFD and return the sym_fns.
4984 (init_objfile_sect_indices): Call symfile_find_segment_sections.
4985 (default_symfile_segments): New function.
4986 (syms_from_objfile): Update call to find_sym_fns.
4987 (symfile_get_segment_data, free_symfile_segment_data): New.
4988 (symfile_map_offsets_to_segments): New.
4989 (symfile_find_segment_sections): New.
4990 * symfile.h (struct symfile_segment_data): New.
4991 (struct sym_fns): Add sym_segments.
4992 (default_symfile_segments, symfile_get_segment_data)
4993 (free_symfile_segment_data): New prototypes.
4994 (symfile_map_offsets_to_segments): Likewise.
4995 * xcoffread.c (xcoff_sym_fns): Add default_symfile_segments.
4996 * Makefile.in (COMMON_OBS): Remove elfread.o.
4997 (elf_internal_h): New.
4998 (elfread.o): Update.
4999 * configure.ac: Add elfread.o to COMMON_OBS if bfd/elf.o was
5001 * config.in, configure: Regenerated.
5002 * NEWS: Mention qOffsets changes.
5004 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
5006 * gdbtypes.h (builtin_type_m2_char, builtin_type_m2_int,
5007 builtin_type_m2_card, builtin_type_m2_real, builtin_type_m2_bool):
5008 Replace global variable declaration with compatibility macro.
5009 (struct builtin_m2_type): New data type.
5010 (builtin_m2_type): Add prototype.
5011 * m2-lang.c (builtin_type_m2_char, builtin_type_m2_int,
5012 builtin_type_m2_card, builtin_type_m2_real, builtin_type_m2_bool):
5013 Remove global variables.
5014 (m2_language_arch_info): Use builtin_m2_type instead of variables.
5015 (build_m2_types): New function.
5016 (m2_type_data): New variable.
5017 (builtin_m2_type): New function.
5018 (_initialize_m2_language): Do not build data types. Register
5019 m2_type_data per-gdbarch data.
5021 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
5023 * gdbtypes.h (builtin_type_f_character, builtin_type_f_logical,
5024 builtin_type_f_logical_s1, builtin_type_f_logical_s2,
5025 builtin_type_f_integer, builtin_type_f_integer_s2, builtin_type_f_real,
5026 builtin_type_f_real_s8, builtin_type_f_real_s16,
5027 builtin_type_f_complex_s8, builtin_type_f_complex_s16,
5028 builtin_type_f_complex_s32, builtin_type_f_void): Replace global
5029 variable declaration with compatibility macro.
5030 (struct builtin_f_type): New data type.
5031 (builtin_f_type): Add prototype.
5032 * f-lang.c (builtin_type_f_character, builtin_type_f_logical,
5033 builtin_type_f_logical_s1, builtin_type_f_logical_s2,
5034 builtin_type_f_integer, builtin_type_f_integer_s2, builtin_type_f_real,
5035 builtin_type_f_real_s8, builtin_type_f_real_s16,
5036 builtin_type_f_complex_s8, builtin_type_f_complex_s16,
5037 builtin_type_f_complex_s32, builtin_type_f_void): Remove variables.
5038 (f_language_arch_info): Use builtin_f_type instead of variables.
5039 (build_fortran_types): Build builtin_f_type structure instead of
5040 setting global type variables.
5041 (f_type_data): New variable.
5042 (builtin_f_type): New function.
5043 (_initialize_f_language): Do not call build_fortran_types. Do not
5044 swap global type variables. Register f_type_data per-gdbarch data.
5046 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
5048 * f-lang.c (_initialize_f_language): Do not initialize or
5049 swap builtin_type_string.
5051 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
5053 * std-regs.c (builtin_type_frame_reg, build_builtin_type_frame_reg,
5054 value_of_builtin_frame_reg): Remove.
5055 (_initialize_frame_reg): Do not swap builtin_type_frame_reg. Remove
5056 inactive call to value_of_builtin_frame_reg.
5058 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
5060 * gdbarch.sh (bfd_vma_bit): Remove.
5061 * gdbarch.c, gdbarch.h: Regenerate.
5063 * gdbtypes.h (builtin_bfd_vma_type): Remove.
5064 * gdbtypes.h (builtin_bfd_vma_type): Remove.
5065 (build_gdbtypes): Do not initialize it.
5066 (_initialize_gdbtypes): Do not swap it.
5068 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
5070 * gdbtypes.c (builtin_type_v2_double, builtin_type_v4_float,
5071 builtin_type_v2_int64, builtin_type_v4_int32, builtin_type_v8_int16,
5072 builtin_type_v16_int8, builtin_type_v2_float, builtin_type_v2_int32,
5073 builtin_type_v4_int16, builtin_type_v8_int8, builtin_type_v4sf,
5074 builtin_type_v4si, builtin_type_v16qi, builtin_type_v8qi,
5075 builtin_type_v8hi, builtin_type_v4hi, builtin_type_v2si,
5076 builtin_type_vec64, builtin_type_vec128): Remove.
5077 (init_simd_type): Remove.
5078 (init_vector_type): Make global.
5079 (build_builtin_type_vec64, build_builtin_type_vec128): Remove.
5080 (build_gdbtypes): Do not build vector types.
5081 (_initialize_gdbtypes): Do not swap vector types.
5082 * gdbtypes.h (builtin_type_v2_double, builtin_type_v4_float,
5083 builtin_type_v2_int64, builtin_type_v4_int32, builtin_type_v8_int16,
5084 builtin_type_v16_int8, builtin_type_v2_float, builtin_type_v2_int32,
5085 builtin_type_v4_int16, builtin_type_v8_int8, builtin_type_v4sf,
5086 builtin_type_v4si, builtin_type_v16qi, builtin_type_v8qi,
5087 builtin_type_v8hi, builtin_type_v4hi, builtin_type_v2si,
5088 builtin_type_vec64, builtin_type_vec128): Remove declarations.
5089 (init_vector_type): Add prototype.
5091 * i386-tdep.h (struct gdbarch_tdep): Add i386_mmx_type and
5092 i386_sse_type members.
5093 (i386_mmx_type, i386_sse_type): Change from variables to functions.
5094 * i386-tdep.c (i386_mmx_type, i386_sse_type): Remove variables.
5095 (i386_init_types): Do not build vector types.
5096 (i386_mmx_type, i386_sse_type): New functions.
5097 (i386_register_type): Call them instead of using global variables.
5098 (i386_gdbarch_init): Use XCALLOC to allocate tdep structure.
5099 * amd64-tdep.c (amd64_register_type): Call i386_sse_type instead
5100 of using global variable.
5102 * rs6000-tdep.h (struct gdbarch_tdep): Add ppc_builtin_type_vec64
5103 and ppc_builtin_type_vec128 members.
5104 * rs6000-tdep.c (rs6000_builtin_type_vec64): New function.
5105 (rs6000_builtin_type_vec128): Likewise.
5106 (rs6000_register_type): Call them instead of using builtin_type_vec64
5107 and builtin_type_vec128.
5108 (rs6000_gdbarch_init): Use XCALLOC to allocate tdep structure.
5110 * spu-tdep.c (struct gdbarch_tdep): New data type.
5111 (spu_builtin_type_vec128): Remove variable.
5112 (spu_builtin_type_vec128): New function.
5113 (spu_register_type): Call it instead of using global variable.
5114 (spu_gdbarch_init): Allocate tdep structure.
5115 (spu_init_vector_type): Remove function.
5116 (_initialize_spu_tdep): Do not call it.
5118 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
5120 * amd64-tdep.c (struct amd64_register_info): Remove.
5121 (amd64_register_info): Remove.
5122 (amd64_register_names): New static variable.
5123 (AMD64_NUM_REGS): Use amd64_register_names instead of
5124 amd64_register_info.
5125 (amd64_register_name): Likewise.
5126 (amd64_register_type): Do not refer to amd64_register_info.
5128 * s390-tdep.c (struct s390_register_info): Remove.
5129 (s390_register_info): Remove.
5130 (s390_register_name): Do not refer to s390_register_info.
5131 (s390_register_type): Likewise.
5133 * sparc64-tdep.c (struct sparc64_register_info): Remove.
5134 (sparc64_register_info, sparc64_pseudo_register_info): Remove.
5135 (sparc64_register_names, sparc64_pseudo_register_names): New.
5136 (SPARC64_NUM_REGS, SPARC64_NUM_PSEUDO_REGS): Use
5137 sparc64_register_names and sparc64_pseudo_register_names instead of
5138 sparc64_register_info and sparc64_pseudo_register_info.
5139 (sparc64_register_name): Likewise.
5140 (sparc64_register_type): Do not refer to sparc64_register_info
5141 and sparc64_pseudo_register_info.
5143 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
5145 * c-lang.c (cplus_builtin_types): Remove.
5146 (enum cplus_primitive_types): New data type.
5147 (cplus_language_arch_info): New function.
5148 (cplus_language_defn): Set la_language_arch_info member. Do not set
5149 la_builtin_type_vector and string_char_type members.
5151 * f-lang.c (f_builtin_types): Remove.
5152 (enum f_primitive_types): New data type.
5153 (f_language_arch_info): New function.
5154 (f_language_de): Set la_language_arch_info member. Do not set
5155 la_builtin_type_vector and string_char_type members.
5157 * m2-lang.c (m2_builtin_types): Remove.
5158 (enum m2_primitive_types): New data type.
5159 (m2_language_arch_info): New function.
5160 (m2_language_defn): Set la_language_arch_info member. Do not set
5161 la_builtin_type_vector and string_char_type members.
5163 * objc-lang.c (objc_builtin_types): Remove.
5164 (objc_language): Set la_language_arch_info member. Do not set
5165 la_builtin_type_vector and string_char_type members.
5167 * p-lang.c (pascal_builtin_types): Remove.
5168 (enum pascal_primitive_types): New data type.
5169 (pascal_language_arch_info): New function.
5170 (pascal_language_defn): Set la_language_arch_info member. Do not set
5171 la_builtin_type_vector and string_char_type members.
5173 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
5175 * regcache.c (struct regcache): Add ptid_t member.
5176 (regcache_xmalloc): Initialize it.
5177 (regcache_cpy_no_passthrough): Do not refer to current_regcache.
5178 (regcache_dup): Likewise.
5179 (regcache_dup_no_passthrough): Likewise.
5180 (current_regcache): Make static.
5181 (registers_ptid): Remove variable.
5182 (get_thread_regcache): New function.
5183 (get_current_regcache): New function.
5184 (registers_changed): Implement by freeing current regcache.
5185 (regcache_raw_read): Do not refer to current_regcache. Set
5186 inferior_ptid to regcache->ptid while calling target routines.
5187 (regcache_raw_write): Likewise.
5188 (regcache_raw_supply): Do not refer to current_regcache.
5189 (read_pc_pid): Use thread regcache. Do not modify inferior_ptid.
5190 (write_pc_pid): Likewise.
5191 (build_regcache): Remove.
5192 (_initialize_regcache): Do not call DEPRECATED_REGISTER_GDBARCH_SWAP
5193 or deprecated_register_gdbarch_swap. Do not initialize
5195 * regcache.h (get_current_regcache): Add prototype.
5196 (get_thread_regcache): Likewise.
5197 (current_regcache): Remove declaration.
5199 * corelow.c (core_open): Replace current_regcache by
5200 get_current_regcache ().
5201 * frame.c (frame_pop): Likewise.
5202 (put_frame_register): Likewise.
5203 (get_current_frame, create_new_frame): Likewise.
5204 * mi/mi-main.c (mi_cmd_data_write_register_values): Likewise.
5205 * stack.c (return_command): Likewise.
5206 * infcall.c (call_function_by_hand): Likewise.
5207 * infrun.c (resume): Likewise.
5208 (save_inferior_status, restore_inferior_status): Likewise.
5209 * linux-fork.c (fork_load_infrun_state): Likewise.
5210 (fork_save_infrun_state): Likewise.
5211 * win32-nat.c (win32_resume): Likewise.
5212 * i386fbsd-nat.c (i386fbsd_resume): Likewise.
5213 * monitor.c (monitor_wait): Likewise.
5214 * remote.c (remote_wait): Likewise.
5215 * remote-mips.c (mips_wait): Likewise.
5217 * bsd-kvm.c (bsd_kvm_open): Likewise
5218 (bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd): Likewise.
5219 * fbsd-nat.c (fbsd_make_corefile_notes): Likewise.
5220 * i386-linux-nat.c (i386_linux_resume): Likewise.
5221 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Likewise.
5222 (ia64_linux_stopped_data_address): Likewise.
5224 * frv-tdep.c (frv_fdpic_loadmap_addresses): Likewise.
5225 * m32c-tdep.c (m32c_virtual_frame_pointer): Likewise.
5226 * mep-tdep.c (current_me_module, current_options): Likewise.
5227 * mips-tdep.c (deprecated_mips_set_processor_regs_hack): Likewise.
5229 * linux-nat.c (linux_nat_do_thread_registers): Use thread
5230 regcache instead of current_regcache. Call target_fetch_registers.
5231 (linux_nat_corefile_thread_callback): Update call site.
5232 (linux_nat_do_registers): Likewise.
5233 * procfs.c (procfs_do_thread_registers): Use thread regcache instead
5234 of current_regcache.
5235 (procfs_make_note_section): Likewise.
5236 * proc-service.c (ps_lgetregs, ps_lsetregs): Likewise.
5237 (ps_lgetfpregs, ps_lsetfpregs): Likewise.
5238 * sol-thread.c (ps_lgetregs, ps_lsetregs): Likewise.
5239 (ps_lgetfpregs, ps_lsetfpregs): Likewise.
5241 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
5243 * regcache.c (read_register, read_register_pid): Remove.
5244 (write_register, write_register_pid): Likewise.
5245 * regcache.h (read_register, read_register_pid): Remove prototype.
5246 (write_register, write_register_pid): Likewise.
5248 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
5250 * gdbarch.sh (read_pc): Add REGCACHE argument. Remove PTID argument.
5251 (write_pc): Likewise. Remove default implementation, add predicate.
5252 * gdbarch.c, gdbarch.h: Regenerate.
5253 * regcache.c (read_pc_pid): Use current regcache instead of calling
5255 (write_pc_pid): Check gdbarch_write_pc predicate, implement default
5257 (generic_target_write_pc): Remove.
5258 * inferior.h (generic_target_write_pc): Remove.
5259 * frv-tdep.c (frv_gdbarch_init): Do not install it.
5260 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
5261 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
5262 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
5263 * sh-tdep.c (sh_gdbarch_init): Likewise.
5264 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
5266 * avr-tdep.c (avr_read_pc): Add REGCACHE argument. Remove PTID
5267 argument. Use REGCACHE instead of calling read_register_pid.
5268 * hppa-hpux-tdep.c (hppa_hpux_read_pc): Likewise.
5269 * hppa-tdep.c (hppa_read_pc): Likewise.
5270 * hppa-tdep.h (hppa_read_pc): Likewise.
5271 * ia64-tdep.c (ia64_read_pc): Likewise.
5272 * m32r-tdep.c (m32r_read_pc): Likewise.
5273 * mep-tdep.c (mep_read_pc): Likewise.
5274 * mn10300-tdep.c (mn10300_read_pc): Likewise.
5275 * spu-tdep.c (spu_read_pc): Likewise.
5277 * arm-tdep.c (arm_write_pc): Add REGCACHE argument. Remove PTID
5278 argument. Use REGCACHE instead of calling write_register_pid.
5279 * avr-tdep.c (avr_write_pc): Likewise.
5280 * hppa-hpux-tdep.c (hppa_hpux_write_pc): Likewise.
5281 * hppa-tdep.c (hppa_write_pc): Likewise.
5282 * hppa-tdep.h (hppa_write_pc): Likewise.
5283 * i386-linux-tdep.c (i386_linux_write_pc): Likewise.
5284 * amd64-linux-tdep.c (amd64_linux_write_pc): Likewise.
5285 * ia64-linux-tdep.c (ia64_linux_write_pc): Likewise.
5286 * ia64-tdep.c (ia64_write_pc): Likewise.
5287 * ia64-tdep.h (ia64_write_pc): Likewise.
5288 * m32r-tdep.c (m32r_write_pc): Likewise.
5289 * m88k-tdep.c (m88k_write_pc): Likewise.
5290 * mep-tdep.c (mep_write_pc): Likewise.
5291 * mips-tdep.c (mips_write_pc): Likewise.
5292 * mips-linux-tdep.c (mips_linux_write_pc): Likewise.
5293 * mn10300-tdep.c (mn10300_write_pc): Likewise.
5294 * sparc-tdep.c (sparc_write_pc): Likewise.
5295 * spu-tdep.c (spu_write_pc): Likewise.
5297 * mips-tdep.c (read_signed_register): Remove.
5298 (read_signed_register_pid): Likewise.
5299 (mips_read_pc): Add REGCACHE argument. Remove PTID argument.
5300 Use REGCACHE instead of calling read_signed_register_pid.
5302 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
5304 * gdbarch.sh (push_dummy_code): Add REGCACHE argument.
5305 * gdbarch.c, gdbarch.h: Regenerate.
5306 * infcall.c (generic_push_dummy_code): Add REGCACHE argument.
5307 (push_dummy_code): Likewise. Pass it to callee.
5308 (call_function_by_hand): Pass current regcache to push_dummy_code.
5310 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Add REGCACHE
5311 argument. Use it instead of current_regcache.
5313 * cris-tdep.c (cris_push_dummy_code): Add REGCACHE argument.
5314 * sparc-tdep.c (sparc32_push_dummy_code): Likewise.
5316 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
5318 * gdbarch.sh (get_longjmp_target): Add FRAME argument.
5319 * gdbarch.c, gdbarch.h: Regenerate.
5320 * infrun.c (handle_inferior_event): Pass current frame to
5321 gdbarch_get_longjmp_target.
5323 * alpha-tdep.c (alpha_get_longjmp_target): Add FRAME argument.
5324 Read registers from FRAME instead of using read_register.
5325 Use get_frame_arch instead of current_gdbarch.
5326 * arm-tdep.c (arm_get_longjmp_target): Likewise.
5327 * i386-tdep.c (i386_get_longjmp_target): Likewise.
5328 * m68k-tdep.c (m68k_get_longjmp_target): Likewise.
5329 * mips-linux-tdep.c (mips_linux_get_longjmp_target): Likewise.
5330 (mips64_linux_get_longjmp_target): Likewise.
5331 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Likewise.
5333 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
5335 * gdbarch.sh (skip_trampoline_code): Add FRAME argument.
5336 * gdbarch.c, gdbarch.h: Regenerate.
5337 * arch-utils.c (generic_skip_trampoline_code): Add FRAME argument.
5338 * arch-utils.h (generic_skip_trampoline_code): Likewise.
5339 * infrun.c (handle_inferior_event): Pass current frame to
5340 gdbarch_skip_trampoline_code and skip_language_trampoline.
5342 * language.c (unk_lang_trampoline): Add FRAME argument.
5343 (skip_language_trampoline): Add FRAME argument. Pass it to
5344 skip_trampoline callback.
5345 * language.h: Add forward declaration of struct frame_info.
5346 (struct language_defn): Add FRAME argument to skip_trampoline.
5347 (skip_language_trampoline): Add FRAME argument.
5348 * cp-abi.c (cplus_skip_trampoline): Add FRAME argument. Pass it
5349 to skip_trampoline callback.
5350 * cp-abi.h: Add forward declaration of struct frame_info.
5351 (cplus_skip_trampoline): Add FRAME argument.
5352 (struct cp_abi_ops): Add FRAME argument to skip_trampoline callback.
5353 * gnu-v3-abi.c (gnuv3_skip_trampoline): Add FRAME argument. Pass it
5354 to gdbarch_skip_trampoline_code.
5355 * objc-lang.c (objc_skip_trampoline): Add FRAME argument. Pass it
5356 to gdbarch_skip_trampoline_code.
5358 * minsyms.c (find_solib_trampoline_target): Add FRAME argument.
5359 * symtab.h (find_solib_trampoline_target): Likewise.
5360 * obsd-tdep.c (obsd_skip_solib_resolver): Pass current frame to
5361 find_solib_trampoline_target.
5363 * arm-tdep.c (arm_skip_stub): Add FRAME argument. Read registers
5364 from FRAME instead of calling read_register.
5366 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code): Add FRAME
5367 argument. Read registers from FRAME instead of using read_register.
5368 * hppa-tdep.c (hppa_skip_trampoline_code): Likewise.
5369 * hppa-tdep.h (hppa_skip_trampoline_code): Add FRAME argument.
5371 * i386-cygwin-tdep.c (i386_cygwin_skip_trampoline_code): Add FRAME
5374 * m32c-tdep.c (m32c_skip_trampoline_code): Add FRAME argument.
5376 * mips-tdep.c (mips_skip_trampoline_code): Add FRAME argument. Read
5377 registers from FRAME instead of using read_signed_register.
5379 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Add FRAME
5381 (ppc64_standard_linkage_target): Likewise. Read registers from FRAME
5382 instead of using read_register.
5383 (ppc64_skip_trampoline_code): Add FRAME argument. Pass it to
5384 ppc64_standard_linkage_target.
5385 * rs6000-tdep.c (rs6000_skip_trampoline_code): Add FRAME argument.
5386 Pass it to find_solib_trampoline_target. Read registers from FRAME
5387 instead of using read_register.
5389 * xstormy16-tdep.c (xstormy16_skip_trampoline_code): Add FRAME
5392 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
5394 * gdbarch.sh (software_single_step): Replace REGCACHE argument by
5396 * gdbarch.c, gdbarch.h: Regenerate.
5397 * infrun.c (resume): Pass current frame to SOFTWARE_SINGLE_STEP.
5399 * alpha-tdep.c (alpha_next_pc): Add FRAME argument. Retrieve
5400 registers from FRAME instead of using read_register.
5401 (alpha_software_single_step): Replace REGCACHE by FRAME. Pass FRAME
5402 to alpha_next_pc. Use get_frame_pc instead of read_pc.
5403 * alpha-tdep.h (alpha_software_single_step): Replace REGCACHE
5406 * arm-tdep.c (shifted_reg_val): Add FRAME argument. Read registers
5407 from FRAME instead of using read_register.
5408 (thumb_get_next_pc): Likewise.
5409 (arm_get_next_pc): Likewise.
5410 (arm_software_single_step): Replace REGCACHE by FRAME. Pass FRAME
5411 to arm_get_next_pc. Use get_frame_pc instead of read_register.
5412 * arm-tdep.h (arm_software_single_step): Replace REGCACHE
5415 * cris-tdep.c (find_step_target): Add FRAME argument. Read registers
5416 from FRAME instead of using read_register.
5417 (cris_software_single_step): Replace REGCACHE by FRAME. Pass FRAME
5418 to find_step_target.
5420 * mips-tdep.c (mips32_next_pc): Add FRAME argument. Read registers
5421 from FRAME instead of using read_register / read_signed_register.
5422 (extended_mips16_next_pc): Likewise.
5423 (mips16_next_pc): Likewise.
5424 (mips_next_pc): Likewise.
5425 (mips_software_single_step): Replace REGCACHE by FRAME. Pass FRAME
5426 to mips_next_pc. Use get_frame_pc instead of read_pc.
5427 * mips-tdep.h (mips_software_single_step): Replace REGCACHE
5430 * rs6000-tdep.c (branch_dest): Add FRAME argument. Use it instead
5431 of current frame. Read registers from FRAME.
5432 (deal_with_atomic_sequence): Add FRAME argument. Pass it to
5433 branch_dest. Use get_frame_pc instead of read_pc.
5434 (rs6000_software_single_step): Likewise.
5435 (bl_to_blrl_insn_p): Do not call branch_dest.
5436 * rs6000-tdep.h (rs6000_software_single_step): Replace REGCACHE
5439 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Add FRAME argument.
5440 Read registers from FRAME instead of current regcache.
5441 * sparc-linux-tdep.c (sparc32_linux_step_trap): Likewise.
5442 * sparcnbsd-tdep.c (sparcnbsd_step_trap): Likewise.
5443 * sparc-tdep.c (sparc_address_from_register): Remove.
5444 (sparc_analyze_control_transfer): Pass FRAME argument instead of
5445 GDBARCH. Pass FRAME to step_trap callback.
5446 (sparc_step_trap): Add FRAME argument.
5447 (space_software_single_step): Replace REGCACHE by FRAME. Pass FRAME
5448 to sparc_analyze_control_transfer. Read registers from FRAME instead
5449 of calling sparc_address_from_register.
5450 * sparc-tdep.h (struct gdbarch_tdep): Add FRAME argument to
5452 (sparc_address_from_register): Remove prototype.
5453 (sparc_software_single_step): Replace REGCACHE argument by FRAME.
5454 (sparcnbsd_step_trap): Add FRAME argument.
5456 * spu-tdep.c (spu_software_single_step): Replace REGCACHE argument
5457 by FRAME. Read registers from FRAME instead of REGCACHE.
5459 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
5461 * arm-tdep.c (arm_print_float_info): Use register value from FRAME
5462 instead of calling read_register.
5464 * avr-tdep.c (avr_push_dummy_call): Write to REGCACHE instead of
5465 calling write_register.
5467 * hppa-tdep.c (hppa32_push_dummy_call): Write to REGCACHE instead of
5468 calling write_register.
5470 * ia64-tdep.c (find_func_descr): Add REGCACHE parameter. Use it
5471 instead of calling read_register.
5472 (ia64_push_dummy_call): Update call to find_func_descr. Use REGCACHE
5473 instead of calling read_register and write_register.
5475 * m32r-tdep.c (m32r_linux_supply_gregset): Use REGCACHE parameter
5476 instead of current_regcache.
5478 * mn10300-tdep.c (mn10300_push_dummy_call): Write to REGCACHE instead
5479 of calling write_register.
5480 * mn10300-linux-tdep.c (am33_supply_fpregset_method): Use REGCACHE
5481 parameter instead of current_regcache.
5483 * mips-tdep.c (mips2_fp_compat): Add FRAME parameter. Use it
5484 instead of calling read_register.
5485 (mips_read_fp_register_double, mips_print_fp_register): Update calls.
5486 (mips_eabi_push_dummy_call): Use REGCACHE instead of write_register.
5487 (mips_n32n64_push_dummy_call): Likewise.
5488 (mips_o32_push_dummy_call): Likewise.
5489 (mips_o64_push_dummy_call): Likewise.
5491 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Use REGCACHE
5492 parameter instead of current_regcache.
5494 * xtensa-tdep.c (xtensa_register_write_masked): Add REGCACHE parameter.
5495 Use it instead of read_register and write_register.
5496 (xtensa_register_read_masked): Likewise.
5497 (xtensa_pseudo_register_read): Update call.
5498 (xtensa_pseudo_register_write): Likewise.
5499 (xtensa_frame_cache): Use register values unwound from NEXT_FRAME
5500 instead of calling read_register.
5501 (xtensa_push_dummy_call): Update comment.
5503 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
5505 * mips-tdep.c (mips16_scan_prologue): Replace read_next_frame_reg
5506 by frame_unwind_register_signed calls.
5507 (mips32_scan_prologue): Likewise. Skip analysis of alloca stack
5508 frame allocations when called with NULL NEXT_FRAME parameter.
5509 (read_next_frame_reg): Remove.
5511 * sh-tdep.c (sh_analyze_prologue): Add FPSCR parameter. Use it
5512 instead of reading the FPSCR register.
5513 (sh_frame_cache): Pass unwound FPSCR register value to
5514 sh_analyze_prologue.
5515 (sh_skip_prologue): Pass dummy FPSCR value to sh_analyze_prologue.
5517 * v850-tdep.c (v850_analyze_prologue): Add CTBP parameter. Use it
5518 instead of reading the CTBP register.
5519 (v850_frame_cache): Pass unwound CTBP register value to
5520 v850_analyze_prologue.
5522 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
5524 * sh-tdep.h (sh_show_regs): Add FRAME parameter.
5525 * sh-tdep.c (sh_show_regs): Likewise.
5526 (sh_show_regs_command): Pass current frame to sh_show_regs routine.
5527 (sh_generic_show_regs): Add FRAME parameter. Use register
5528 values from that frame instead of calling read_register.
5529 (sh3_show_regs, sh2e_show_regs, sh2a_show_regs, sh2a_nofpu_show_regs,
5530 sh3e_show_regs, sh3_dsp_show_regs, sh4_show_regs, sh4_nofpu_show_regs,
5531 sh_dsp_show_regs): Likewise.
5532 * sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs,
5533 sh64_show_regs): Likewise.
5535 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
5537 * mips-tdep.c (deprecated_mips_set_processor_regs_hack): Read from
5538 current regcache instead of calling read_register.
5540 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
5542 * mep-tdep.c (current_me_module): Read from current regcache
5543 instead of calling read_register.
5544 (current_options): Likewise.
5546 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
5548 * cris-tdep.c (cris_stopped_data_address): Read register values
5549 from current frame instead of calling read_register.
5550 * frv-tdep.c (frv_stopped_data_address): Likewise.
5552 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
5554 * solib-sunos.c (sunos_solib_create_inferior_hook): Use write_pc
5555 instead of write_register (PC_REGNUM, ...).
5557 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
5559 * solib-sunos.c (sunos_solib_create_inferior_hook): Add comment
5560 explaining why the PC adjustment code is necessary.
5562 2007-06-15 Vladimir Prus <vladimir@codesourcery.com>
5564 * m68k-tdep.h (enum m68k_flavour): New.
5565 (struct gdbarch_tdep): New fields
5566 float_return, flavour and fpregs_present.
5567 * m68k-tdep.c (m68k_register_type): Use
5568 fpregs_present and conditionalize floating
5569 registers type on flavour.
5570 (m68k_register_names): New.
5571 (m68k_register_name): Use the above.
5572 (m68k_convert_register_p): Consult fpregs_present.
5573 (m68k_register_to_value, m68k_value_to_register):
5574 Use register_type to obtain the type of floating
5576 (m68k_svr4_extract_return_value): Check tdep->float_return.
5577 Use register_type to get the type of floating
5579 (m68k_svr4_store_return_value): Likewise.
5580 (m68k_dwarf_reg_to_regnum): Check tdep->fpregs_present.
5581 (m68k_analyze_register_saves): Likewise.
5582 (m68k_gdbarch_init): Extract infromation
5583 from XML description, if present. Guess coldfire by
5584 looking at the file, if present. Conditionalize
5585 setting of long double format. Set decr_pc_after_break
5586 to 2 on coldfire and fido. Enable XML-driven
5587 register description.
5588 * m68kbsd-tdep.c (m68kbsd_fpreg_offset): Use
5589 size of tdep->fpreg_type, as opposed to hardcoded value.
5590 * Makefile.in (m68k-tdep.o): Update dependencies.
5592 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
5594 * NEWS: Mention "info spu" commands and qXfer:spu:read and
5595 qXfer:spu:write remote packet types.
5597 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
5599 * xml-tdesc.c (tdesc_start_target): New.
5600 (target_attributes): New.
5601 (tdesc_elements): Use it.
5602 * features/gdb-target.dtd: Add #FIXED version attribute for
5605 2007-06-13 Arthur Huillet <arthur.huillet@free.fr>
5607 * mi/mi-cmd-var.c (mi_cmd_var_assign): Fix typo.
5609 2007-06-13 Claudio Fontana <claudio.fontana@gmail.com>
5611 * fork-child.c (fork_inferior): Update comment.
5613 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
5615 * features/Makefile: Generate regformats for mips-linux and
5617 * features/sort-regs.xsl: Correct typo.
5618 * regformats/reg-mips.dat, regformats/reg-mips64.dat: Delete.
5619 * regformats/mips-linux.dat, regformats/mips64-linux.dat: New generated
5622 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
5624 * config/mips/linux.mh (TDEP_XML): New.
5625 * features/mips-linux.xml, features/mips64-linux.xml: New files.
5626 * mips-linux-nat.c (mips_linux_register_addr): Handle
5627 MIPS_RESTART_REGNUM.
5628 (mips64_linux_register_addr): Likewise.
5629 (super_xfer_partial, mips_linux_xfer_partial): New.
5630 (_initialize_mips_linux_nat): Add them to the target_ops.
5631 * mips-linux-tdep.c (mips_supply_gregset): Handle MIPS_RESTART_REGNUM.
5632 (mips_fill_gregset, mips64_supply_gregset, mips64_fill_gregset)
5633 (mips_linux_o32_sigframe_init)
5634 (mips_linux_n32n64_sigframe_init): Likewise.
5635 (mips_linux_write_pc, mips_linux_restart_reg_p): New.
5636 (mips_linux_init_abi): Use mips_linux_write_pc. Check for the
5637 "org.gnu.gdb.mips.linux" feature.
5638 * mips-linux-tdep.h (MIPS_RESTART_REGNUM): New constant.
5639 (mips_linux_restart_reg_p): New prototype.
5640 * mips-tdep.c (mips_gdbarch_init): Pass tdesc_data to the OS/ABI
5641 initialization routine.
5642 * Makefile.in (mips-linux-tdep.o, mips-linux-nat.o): Update.
5644 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
5646 * Makefile.in (mips-tdep.o): Update.
5647 * mips-tdep.c (struct register_alias, mips_o32_aliases)
5648 (mips_n32_n64_aliases, mips_register_aliases): New.
5649 (mips_register_name): Call tdesc_register_name.
5650 (mips_tdesc_register_reggroup_p): New.
5651 (mips_pseudo_register_type, value_of_mips_user_reg): New.
5652 (mips_gdbarch_init): Add target-described register support.
5653 Register aliases for register names.
5654 * target-descriptions.c (tdesc_register_name): Make global.
5655 (tdesc_register_in_reggroup_p): New function, broken out from
5656 tdesc_register_reggroup_p.
5657 (tdesc_register_reggroup_p): Use it.
5658 * target-descriptions.h (tdesc_register_name)
5659 (tdesc_register_in_reggroup_p): New prototypes.
5660 * NEWS: Correct formatting. Mention MIPS register support.
5661 * features/mips-cp0.xml, features/mips-fpu.xml,
5662 features/mips64-cp0.xml, gdb/features/mips64-fpu.xml, mips-cpu.xml,
5663 features/mips64-cpu.xml: New files.
5665 2007-06-13 Markus Deuling <deuling@de.ibm.com>
5667 * gdbarch.sh (TARGET_ADDR_BIT): Replace by gdbarch_addr_bit.
5668 * valops.c (value_cast): Likewise.
5669 * utils.c (strlen_paddr, paddr, paddr_nz, paddress): Likewise.
5670 * ui-out.c (ui_out_field_core_addr): Likewise.
5671 * tracepoint.c (tracepoints_info): Likewise.
5672 * symtab.c (print_msymbol_info): Likewise.
5673 * solib-irix.c (irix_current_sos)
5674 (irix_open_symbol_file_object): Likewise.
5675 * remote.c (build_remote_gdbarch_data): Likewise.
5676 * prologue-value.c (make_pv_area): Likewise.
5677 * procfs.c (info_mappings_callback): Likewise.
5678 * printcmd.c (print_scalar_formatted)
5679 (deprecated_print_address_numeric): Likewise.
5680 * memattr.c (mem_info_command): Likewise.
5681 * linux-nat.c (linux_nat_info_proc_cmd): Likewise.
5682 * gdbtypes.c (build_flt, gdbtypes_post_init): Likewise.
5683 * exec.c (print_section_info): Likewise.
5684 * dwarf2read.c (read_subrange_type): Likewise.
5685 * dwarf2loc.c (find_location_expression): Likewise.
5686 * dwarf2expr.c (dwarf2_read_address, unsigned_address_type)
5687 (signed_address_type, execute_stack_op): Likewise.
5688 * breakpoint.c (print_one_breakpoint, breakpoint_1): Likewise.
5689 * gdbarch.c, gdbarch.h: Regenerate.
5691 2007-06-13 Markus Deuling <deuling@de.ibm.com>
5693 * gdbarch.sh (TARGET_ARCHITECTURE): Replace by gdbarch_bfd_arch_info.
5694 * arch-utils.c (show_architecture): Likewise.
5695 * remote-mips.c (mips_open): Likewise
5696 * nto-tdep.c (nto_find_and_open_solib)
5697 (nto_init_solib_absolute_prefix): Likewise.
5698 * nto-procfs (procfs_open): Likewise.
5699 * m68hc11-tdep.c (gdb_print_insn_m68hc11): Likewise.
5700 * gcore.c (default_gcore_mach, default_gcore_arch): Likewise.
5701 * gdbarch.c, gdbarch.h: Regenerate.
5703 2007-06-13 Markus Deuling <deuling@de.ibm.com>
5705 * gdbarch.sh (TARGET_BFD_VMA_BIT): Replace by gdbarch_bfd_vma_bit.
5706 * gdbtypes.c (build_flt): Likewise.
5707 * gdbarch.c, gdbarch.h: Regenerate.
5709 2007-06-13 Markus Deuling <deuling@de.ibm.com>
5711 * gdbarch.sh (BREAKPOINT_FROM_PC): Replace by
5712 gdbarch_breakpoint_from_pc.
5713 * s390-tdep.c (s390_gdbarch_init): Likewise (comment).
5714 * remote.c (remote_insert_breakpoint)
5715 (remote_insert_hw_breakpoint): Likewise.
5716 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Likewise.
5717 * mips-tdep.c (mips_breakpoint_from_pc): Likewise (comment).
5718 * breakpoint.h (bp_target_info): Likewise (comment).
5719 * breakpoint.c (read_memory_nobpt): Likewise.
5720 * mem-break.c (default_memory_insert_breakpoint): Likewise.
5721 (symtab.h, breakpoint.h): Remove include. Remove unnecessary comment.
5722 * gdbarch.c, gdbarch.h: Regenerate.
5724 2007-06-13 Markus Deuling <deuling@de.ibm.com>
5726 * gdbarch.sh (TARGET_PTR_BIT): Replace with gdbarch_ptr_bit.
5727 * solib-svr4.c (svr4_truncate_ptr): Likewise.
5728 * solib-pa64.c (read_dynamic_info): Likewise.
5729 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets): Likewise.
5730 * solib.c (info_sharedlibrary_command): Likewise.
5731 * s390-nat.c (SUBOFF): Likewise.
5732 * p-valprint.c (pascal_val_print): Likewise.
5733 * procfs.c (info_proc_mappings): Likewise.
5734 * printcmd.c (decode_format): Likewise.
5735 * nto-tdep.c (nto_truncate_ptr): Likewise.
5736 * mips-linux-tdep.c (mips_linux_get_longjmp_target)
5737 (mips64_linux_get_longjmp_target): Likewise.
5738 * m68k-tdep.c (m68k_get_longjmp_target): Likewise.
5739 * jv-valprint.c (java_value_print): Likewise.
5740 * jv-lang.c (get_java_object_header_size): Likewise.
5741 * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Likewise.
5742 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
5743 (hppa_hpux_unwind_adjust_stub): Likewise.
5744 * gnu-v3-abi.c (build_gdb_vtable_type): Likewise.
5745 * gdbtypes.c (make_pointer_type, make_reference_type)
5746 (smash_to_memberptr_type): Likewise.
5747 * gdbarch.c, gdbarch.h: Regenerate.
5749 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
5751 * mips-tdep.c (mips_print_register): Remove unused ALL argument.
5752 (print_gp_register_row): Stop before printing a register bigger
5753 than the ABI register size.
5754 (mips_print_registers_info): Update call to mips_print_register.
5756 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
5758 * expression.h (enum exp_opcode): Document a register name for
5760 * parse.c (write_dollar_variable): Write the register name for
5762 (operator_length_standard): Expect the register name following
5764 * ada-lang.c (resolve_subexp): Likewise.
5765 * ax-gdb.c (gen_expr): Likewise.
5766 * eval.c (evaluate_subexp_standard): Likewise.
5767 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
5769 * tracepoint.c (encode_actions): Likewise.
5771 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
5773 * utils.c (set_screen_size): Use INT_MAX for default columns.
5775 2007-06-13 Ulrich Weigand <uweigand@de.ibm.com>
5777 * remote.c (remote_protocol_features): Add qXfer:spu:read and
5778 qXfer:spu:write packet types.
5780 2007-06-12 Markus Deuling <deuling@de.ibm.com>
5782 * gdbarch.sh (DEPRECATED_STACK_ALIGN): Remove.
5783 * gdbarch.c, gdbarch.h: Regenerate.
5785 2007-06-12 Markus Deuling <deuling@de.ibm.com>
5787 * gdbarch.sh (STAB_REG_TO_REGNUM): Replace by
5788 gdbarch_stab_reg_to_regnum.
5789 * stabsread.c (define_symbol): Likewise.
5790 * gdbarch.sh (ECOFF_REG_TO_REGNUM): Replace by
5791 gdbarch_ecoff_reg_to_regnum.
5792 * mdebugread.c (parse_symbol): Likewise.
5793 * i386-tdep.c (i386_gdbarch_init): Likewise (comment).
5794 * gdbarch.sh (DWARF_REG_TO_REGNUM): Replace by
5795 gdbarch_dwarf_reg_to_regnum.
5796 * gdbarch.sh (SDB_REG_TO_REGNUM): Replace by gdbarch_sdb_reg_to_regnum.
5797 * coffread.c (process_coff_symbol): Likewise.
5798 * gdbarch.sh (DWARF2_REG_TO_REGNUM): Replace by
5799 gdbarch_dwarf2_reg_to_regnum.
5800 * dwarf2loc.c (dwarf_expr_read_reg,dwarf2_evaluate_loc_desc)
5801 (locexpr_describe_location): Likewise.
5802 * dwarf2-frame.c (read_reg,execute_cfa_program,dwarf2_frame_cache)
5803 (dwarf2_frame_prev_register,dwarf2_signal_frame_this_id): Likewise.
5804 * dwarf2loc.c (DWARF2_REG_TO_REGNUM): Remove macro.
5805 * dwarf2read.c (DWARF2_REG_TO_REGNUM): Remove macro.
5806 * gdbarch.c, gdbarch.h: Regenerate.
5808 2007-06-12 Markus Deuling <deuling@de.ibm.com>
5810 * gdbarch.sh (SMASH_TEXT_ADDRESS): Replace by
5811 gdbarch_smash_text_address.
5812 * somread.c (som_symtab_read): Likewise.
5813 * elfread.c (record_minimal_symbol): Likewise.
5814 * dbxread.c (process_one_symbol): Likewise.
5815 * coffread.c (coff_symtab_read): Likewise.
5816 * gdbarch.c, gdbarch.h: Regenerate.
5818 2007-06-12 Markus Deuling <deuling@de.ibm.com>
5820 * gdbarch.sh (REGISTER_TO_VALUE): Replace by gdbarch_register_to_value.
5821 * findvar.c (value_from_register): Likewise.
5822 * gdbarch.sh (VALUE_TO_REGISTER): Replace by gdbarch_value_to_register.
5823 * valops.c (value_assign): Likewise.
5824 * gdbarch.sh (CONVERT_REGISTER_P): Replace by
5825 gdbarch_convert_register_p.
5826 * findvar.c (value_from_register): Likewise.
5827 * valops.c (value_assign): Likewise.
5828 * gdbarch.c, gdbarch.h: Regenerate.
5830 2007-06-12 Markus Deuling <deuling@de.ibm.com>
5832 * gdbarch.sh (REGISTER_SIM_REGNO): Replace by
5833 gdbarch_register_sim_regno.
5834 * sim-regno.h (sim_regno): Likewise (comment).
5835 * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register): Likewise.
5836 * gdbarch.c, gdbarch.h: Regenerate.
5838 2007-06-12 Markus Deuling <deuling@de.ibm.com>
5840 * gdbarch.sh (TARGET_VIRTUAL_FRAME_POINTER): Replace by
5841 gdbarch_virtual_frame_pointer.
5842 * tracepoint.c (encode_actions): Likewise.
5843 * dwarf2loc.c (dwarf2_loc_desc_needs_frame): Likewise.
5844 * ax-gdb.c (gen_frame_args_address, gen_frame_locals_address): Likewise.
5845 * gdbarch.c, gdbarch.h: Regenerate.
5847 2007-06-12 Markus Deuling <deuling@de.ibm.com>
5849 * gdbarch.sh (TARGET_FLOAT_BIT): Replace by gdbarch_float_bit.
5850 * p-lang.c (pascal_create_fundamental_type): Likewise.
5851 * objc-lang.c (objc_create_fundamental_type): Likewise.
5852 * mdebugread.c (_initialize_mdebugread): Likewise.
5853 * m2-lang.c (m2_create_fundamental_type)
5854 (_initialize_m2_language): 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 * c-lang.c (c_create_fundamental_type): Likewise.
5859 * ada-lang.c (ada_create_fundamental_type)
5860 (ada_language_arch_info): Likewise.
5861 * gdbarch.sh (TARGET_FLOAT_FORMAT): Replace by gdbarch_float_format.
5862 * value.c (unpack_double): Likewise (comment).
5863 * gdbtypes.c (build_gdbtypes): Likewise.
5864 * doublest.c (floatformat_from_length): Likewise.
5865 * gdbarch.sh (TARGET_DOUBLE_BIT): Replace by gdbarch_double_bit.
5866 * valarith.c (value_binop): Likewise.
5867 * p-lang.c (pascal_create_fundamental_type): Likewise.
5868 * objc-lang.c (objc_create_fundamental_type): Likewise.
5869 * mdebugread.c (_initialize_mdebugread): Likewise.
5870 * m2-lang.c (m2_create_fundamental_type): Likewise.
5871 * gdbtypes.c (build_gdbtypes): Likewise.
5872 * f-lang.c (f_create_fundamental_type, build_fortran_types): Likewise.
5873 * doublest.c (floatformat_from_length): Likewise.
5874 * cris-tdep.c (cris_gdbarch_init): Likewise (comment).
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_DOUBLE_FORMAT): Replace by gdbarch_double_format.
5880 * value.c (unpack_double): Likewise (comment).
5881 * gdbtypes.c (build_gdbtypes): Likewise.
5882 * doublest.c (floatformat_from_length): Likewise.
5883 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Replace by
5884 gdbarch_long_double_bit.
5885 * p-lang.c (pascal_create_fundamental_type): Likewise.
5886 * objc-lang.c (objc_create_fundamental_type): Likewise.
5887 * m2-lang.c (m2_create_fundamental_type): Likewise.
5888 * gdbtypes.c (build_gdbtypes): Likewise.
5889 * f-lang.c (f_create_fundamental_type, build_fortran_types): Likewise.
5890 * doublest.c (floatformat_from_length): Likewise.
5891 * c-lang.c (c_create_fundamental_type): Likewise.
5892 * ada-lex.l (processReal): Likewise.
5893 * ada-lang.c (ada_create_fundamental_type)
5894 (ada_language_arch_info): Likewise.
5895 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Replace by
5896 gdbarch_long_double_format.
5897 * gdbtypes.c (build_gdbtypes): Likewise.
5898 * doublest.c (floatformat_from_length): Likewise.
5899 * gdbarch.c, gdbarch.h: Regenerate.
5901 2007-06-12 Markus Deuling <deuling@de.ibm.com>
5903 * gdbarch.sh (TARGET_SHORT_BIT): Replace by gdbarch_int_bit.
5904 * ada-lang.c (ada_create_fundamental_type)
5905 (ada_language_arch_info): Likewise.
5906 * c-lang.c (c_create_fundamental_type): Likewise.
5907 * f-lang.c (f_create_fundamental_type, build_fortran_types): Likewise.
5908 * gdbtypes.c (build_gdbtypes, gdbtypes_post_init): Likewise.
5909 * m2-lang.c (m2_create_fundamental_type): Likewise.
5910 * objc-lang.c (objc_create_fundamental_type): Likewise.
5911 * p-lang.c (pascal_create_fundamental_type): Likewise.
5912 * gdbarch.sh (TARGET_INT_BIT): Replace by gdbarch_int_bit.
5913 * c-exp.y (parse_number): Likewise.
5914 * objc-exp.y (parse_number): Likewise.
5915 * ada-lex.l (processInt): Likewise.
5916 * f-exp.y (parse_number): Likewise.
5917 * p-exp.y (parse_number): Likewise.
5918 * ada-lang.c (ada_create_fundamental_type, ada_language_arch_info)
5919 (gdbtypes_post_init, build_gdbtypes): Likewise.
5920 * p-lang.c (pascal_create_fundamental_type): Likewise.
5921 * parse.c (build_parse): Likewise.
5922 * xcoffread.c (_initialize_xcoffread): Likewise.
5923 * stabsread.c (define_symbol, read_one_struct_field, read_enum_type)
5924 (read_range_type): Likewise.
5925 * objc-lang.c (objc_create_fundamental_type): Likewise.
5926 * f-lang.c (build_fortran_types, f_create_fundamental_type): Likewise.
5927 * m2-lang.c (m2_create_fundamental_type, _initialize_m2_language)
5928 (m2_create_fundamental_type): Likewise.
5929 * c-lang.c (c_create_fundamental_type): Likewise.
5930 * coffread.c (coff_read_enum_type): Likewise.
5931 * mdebugread.c (parse_symbol, _initialize_mdebugread): Likewise.
5932 * dwarf2read.c (new_symbol): Likewise.
5933 * gdbarch.sh (TARGET_LONG_BIT): Replace by gdbarch_long_bit.
5934 * c-exp.y (parse_number): Likewise.
5935 * objc-exp.y (parse_number): Likewise.
5936 * ada-lex.l (processInt): Likewise.
5937 * f-exp.y (parse_number): Likewise.
5938 * p-exp.y (parse_number): Likewise.
5939 * valarith.c (value_binop): Likewise.
5940 * symfile.c (read_target_long_array, simple_overlay_update_1): Likewise.
5941 * ada-lang.c (ada_create_fundamental_type)
5942 (ada_language_arch_info): Likewise.
5943 * gdbtypes.c (build_gdbtypes, gdbtypes_post_init): Likewise.
5944 * symfile.c (TARGET_LONG_BYTES): Likewise.
5945 * p-lang.c (pascal_create_fundamental_type): Likewise.
5946 * objc-lang.c (objc_create_fundamental_type): Likewise.
5947 * m2-lang.c (m2_create_fundamental_type): Likewise.
5948 * f-lang.c (f_create_fundamental_type): Likewise.
5949 * c-lang.c (c_create_fundamental_type): Likewise.
5950 * coffread.c (decode_base_type): Likewise.
5951 * gdbarch.sh (TARGET_LONG_LONG_BIT): Replace by gdbarch_long_long_bit.
5952 * c-exp.y (parse_number): Likewise.
5953 * objc-exp.y (parse_number): Likewise.
5954 * p-exp.y (parse_number): Likewise.
5955 * ada-lang.c (ada_create_fundamental_type)
5956 (ada_language_arch_info): Likewise.
5957 * gdbtypes.c (gdbtypes_post_init, build_gdbtypes): Likewise.
5958 * stabsread.c (read_range_type): Likewise.
5959 * p-lang.c (pascal_create_fundamental_type): Likewise.
5960 * objc-lang.c (objc_create_fundamental_type): Likewise.
5961 * m2-lang.c (m2_create_fundamental_type): Likewise.
5962 * f-lang.c (f_create_fundamental_type): Likewise.
5963 * c-lang.c (c_create_fundamental_type): Likewise.
5964 * gdbarch.c, gdbarch.h: Regenerate.
5966 2007-06-12 Andreas Schwab <schwab@suse.de>
5968 * frame-unwind.h (frame_dealloc_cache_ftype): Define.
5969 (struct frame_unwind): Add dealloc_cache.
5970 * frame.c (reinit_frame_cache): Call dealloc_cache on all caches.
5972 * libunwind-frame.h (libunwind_frame_dealloc_cache): Declare.
5973 * libunwind-frame.c (libunwind_frame_dealloc_cache): Define.
5974 (libunwind_frame_unwind): Set dealloc_cache.
5975 * ia64-tdep.c (ia64_libunwind_frame_unwind): Set dealloc_cache.
5977 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
5978 Markus Deuling <deuling@de.ibm.com>
5980 * remote.c (remote_write_qxfer): New function.
5981 (remote_xfer_partial): Add handling for TARGET_OBJECT_SPU.
5982 (remote_read_qxfer): Do not cache empty objects.
5983 (_initialize_remote): Add PACKET_qXfer_spu_read and
5984 PACKET_qXfer_spu_write.
5986 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
5988 * target.h (enum target_object): Add TARGET_OBJECT_SPU.
5989 * spu-linux-nat.c (spu_xfer_partial): Handle TARGET_OBJECT_SPU.
5991 * spu-tdep.h (SPU_NUM_PSEUDO_REGS): Add 5 pseudo registers.
5992 (enum spu_regnum): Add SPU_FPSCR_REGNUM, SPU_SRR0_REGNUM,
5993 SPU_LSLR_REGNUM, SPU_DECR_REGNUM, SPU_DECR_STATUS_REGNUM.
5994 * spu-tdep.c (infospucmdlist): New variable.
5995 (spu_register_name): Handle additional pseudo registers.
5996 (spu_register_type): Likewise.
5997 (spu_pseudo_register_read): Likewise.
5998 (spu_pseudo_register_write): Likewise.
5999 (spu_pseudo_register_read_spu): New function.
6000 (spu_pseudo_register_write_spu): Likewise.
6001 (info_spu_event_command): New function.
6002 (info_spu_signal_command): Likewise.
6003 (info_spu_mailbox_list): Likewise.
6004 (info_spu_mailbox_command): Likewise.
6005 (spu_mfc_get_bitfield): Likewise.
6006 (info_spu_dma_cmdlist): Likewise.
6007 (info_spu_dma_command): Likewise.
6008 (info_spu_proxydma_command): Likewise.
6009 (info_spu_command): Likewise.
6010 (_initialize_spu_tdep): Install "info spu" commands.
6012 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
6014 * spu-linux-nat.c (spu_proc_xfer_spu): Do not return failure when
6015 accessing non-seekable spufs files.
6017 2007-06-09 Markus Deuling <deuling@de.ibm.com>
6019 * gdbarch.sh (SKIP_TRAMPOLINE_CODE): Replace by
6020 gdbarch_skip_trampoline_code.
6021 * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Likewise (comment).
6022 * objc-lang.c (objc_skip_trampoline)
6023 (objc_submethod_helper_data): Likewise.
6024 * m32c-lang.c (m32c_skip_trampoline_code): Likewise (comment).
6025 * infrun.c (handle_inferior_event): Likewise.
6026 * gnu-v3-abi.c (gnuv3_skip_trampoline): Likewise.
6027 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Replace by
6028 gdbarch_in_solib_return_trampoline.
6029 * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Likewise (comment).
6030 * infrun.c (handle_inferior_event): Likewise.
6031 * hppa-tdep.c (hppa_stub_unwind_sniffer): Likewise.
6032 * gdbarch.c, gdbarch.h: Regenerate.
6034 2007-06-09 Markus Deuling <deuling@de.ibm.com>
6036 * gdbarch.sh (SKIP_PROLOGUE): Replace by gdbarch_skip_prologue.
6037 * symtab.c (find_function_start_sal, in_prologue): Likewise.
6038 * linespec.c (minsym_found): Likewise.
6039 * infrun.c (step_into_function): Likewise.
6040 * gdbarch.c, gdbarch.h: Regenerate.
6042 2007-06-09 Markus Deuling <deuling@de.ibm.com>
6044 * gdbarch.sh (NAME_OF_MALLOC): Replace by gdbarch_name_of_malloc.
6045 * valops.c (value_allocate_space_in_inferior): Likewise.
6046 * gdbarch.c, gdbarch.h: Regenerate.
6048 2007-06-09 Markus Deuling <deuling@de.ibm.com>
6050 * gdbarch.sh (MEMORY_INSERT_BREAKPOINT): Replace by
6051 gdbarch_memory_insert_breakpoint.
6052 * mem-break.c (memory_insert_breakpoint): Likewise.
6053 * gdbarch.sh (MEMORY_REMOVE_BREAKPOINT): Replace by
6054 gdbarch_memory_remove_breakpoint.
6055 * mem-break.c (memory_remove_breakpoint): Likewise.
6056 * gdbarch.c, gdbarch.h: Regenerate.
6058 2007-06-09 Markus Deuling <deuling@de.ibm.com>
6060 * gdbarch.sh (FETCH_TLS_LOAD_MODULE_ADDRESS): Replace by
6061 gdbarch_fetch_tls_load_module_address.
6062 * gdbarch.sh (FETCH_TLS_LOAD_MODULE_ADDRESS_P): Replace by
6063 gdbarch_fetch_tls_load_module_address_p.
6064 * gdbarch.c, gdbarch.h: Regenerate.
6066 2007-06-09 Markus Deuling <deuling@de.ibm.com>
6068 * gdbarch.sh (DECR_PC_AFTER_BREAK): Replace by
6069 gdbarch_decr_pc_after_break.
6070 * tracepoint.c (trace_dump_command): Likewise.
6071 * solib-sunos.c (sunos_solib_create_inferior_hook): Likewise.
6072 * linux-thread-db.c (check_event): Likewise.
6073 * linux-nat.c (cancel_breakpoints_callback): Likewise.
6074 * infrun.c (adjust_pc_after_break, normal_stop): Likewise.
6075 * frame.h: Likewise (comment).
6076 * dummy-frame.c (deprecated_pc_in_call_dummy): Likewise.
6077 * aix-thread.c (aix_thread_wait): Likewise.
6078 * gdbarch.c, gdbarch.h: Regenerate.
6080 2007-06-09 Markus Deuling <deuling@de.ibm.com>
6082 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS): Replace by
6083 gdbarch_address_class_type_flags.
6084 * dwarf2read.c (read_tag_pointer_type): Likewise.
6085 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS_P): Replace by
6086 gdbarch_address_class_type_flags_p.
6087 * dwarf2read.c (read_tag_pointer_type): Likewise.
6088 * gdbarch.c, gdbarch.h: Regenerate.
6090 2007-06-09 Markus Deuling <deuling@de.ibm.com>
6092 * gdbarch.sh (ADDR_BITS_REMOVE): Replace by gdbarch_addr_bits_remove.
6093 * value.c (value_as_address): Likewise (comment).
6094 * remote-mips.c (common_breakpoint): Likewise.
6095 * regcache.c (read_pc_pid): Likewise.
6096 * printcmd.c (do_one_display): Likewise.
6097 * monitor.c (monitor_write_memory, monitor_read_memory)
6098 (monitor_insert_breakpoint): Likewise.
6099 * mips-tdep.c (heuristic_proc_start): Likewise.
6100 * infrun.c (insert_step_resume_breakpoint_at_frame)
6101 (insert_step_resume_breakpoint_at_caller): Likewise.
6102 * buildsym.c (record_line): Likewise.
6103 * arm-tdep.c (arm_scan_prologue, thumb_get_next_pc)
6104 (arm_get_next_pc): Likewise.
6105 * armnbsd-nat.c (arm_supply_gregset, fetch_register, store_register)
6106 (store_regs): Likewise.
6107 * arm-linux-tdep.c (arm_linux_supply_gregset): Likewise.
6108 * arm-linux-nat.c (fetch_register, fetch_regs): Likewise.
6109 * gdbarch.c, gdbarch.h: Regenerate.
6111 2007-06-09 Markus Deuling <deuling@de.ibm.com>
6113 * gdbarch.sh (REGISTER_NAME): Replace by gdbarch_register_name.
6114 * tracepoint.c (scope_info): Likewise.
6115 * target.c (debug_print_register): Likewise.
6116 * stack.c (frame_info): Likewise.
6117 * sh-tdep.c (sh_register_reggroup_p): Likewise.
6118 * sh64-tdep.c (sh64_do_fp_register, sh64_do_register)
6119 (sh64_media_print_registers_info)
6120 (sh64_compact_print_registers_info): Likewise.
6121 * rs6000-tdep.c (rs6000_register_reggroup_p): Likewise.
6122 * remote-sim.c (gdbsim_fetch_register): Likewise.
6123 * remote.c (packet_reg): Likewise (comment).
6124 * reggroups.c (default_register_reggroup_p): Likewise.
6125 * regcache.c (regcache_dump): Likewise.
6126 * printcmd.c (address_info): Likewise.
6127 * ppc-linux-nat.c (fetch_register, store_register): Likewise.
6128 * mt-dep.c (mt_registers_info): Likewise.
6129 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Likewise (comment).
6130 * mips-tdep.c (mips_register_reggroup_p, mips_read_fp_register_single)
6131 (mips_read_fp_register_double, mips_print_fp_register)
6132 (mips_print_register, print_gp_register_row, mips_print_registers_info)
6133 (mips_register_sim_regno): Likewise.
6134 * m68klinux-nat.c (regmap, fetch_register, store_register): Likewise.
6135 * inf-ptrace.c (inf_ptrace_fetch_register)
6136 (inf_ptrace_store_register): Likewise.
6137 * infcmd.c (default_print_registers_info): Likewise.
6138 * ia64-linux-nat.c (ia64_linux_fetch_register)
6139 (ia64_linux_store_register): Likewise.
6140 * i386-linux-nat.c (fetch_register, store_register): Likewise.
6141 * i386gnu-nat.c (gnu_fetch_registers, gnu_store_registers): Likewise.
6142 * hppa-linux-nat.c (fetch_register, store_register): Likewise.
6143 * hppa-hpux-nat.c (hppa_hpux_fetch_register)
6144 (hppa_hpux_store_register): Likewise.
6145 * findvar.c (locate_var_value): Likewise.
6146 * dwarf2loc.c (locexpr_describe_location): Likewise.
6147 * dwarf2-frame.c (execute_cfa_program): Likewise.
6148 * arm-tdep.c (arm_push_dummy_call): Likewise.
6149 * arch-utils.c (legacy_register_sim_regno): Likewise.
6150 * alpha-tdep.c (alpha_register_reggroup_p): Likewise.
6151 * alpha-nat.c (fetch_osf_core_registers): Likewise.
6152 * mi/mi-main.c (mi_cmd_data_list_register_names)
6153 (mi_cmd_data_list_changed_registers, mi_cmd_data_list_register_values)
6154 (mi_cmd_data_write_register_values): Likewise.
6155 * gdbarch.c, gdbarch.h: Regenerate.
6157 2007-06-07 Daniel Jacobowitz <dan@codesourcery.com>
6159 * target-memory.c (blocks_to_erase): Correct off-by-one error.
6161 2007-06-06 Vladimir Prus <vladimir@codesourcery.com>
6163 * remote.c (process_g_packet): Don't check size.
6164 * gdbarch.sh: Remove register_bytes_ok.
6165 * gdbarch.c: Regenerated.
6166 * gdbarch.h: Regenerated.
6167 * m68k-tdep.c (REGISTER_BYTES_NOFP): Remove.
6168 (m68k_register_bytes_ok): Remove.
6169 (m68k_gdbarch_init): Don't register m68k_register_bytes_ok.
6171 2007-06-06 Andreas Schwab <schwab@suse.de>
6173 * libunwind-frame.c (unw_destroy_addr_space_p): Define.
6174 (destroy_addr_space_name): Define.
6175 (libunwind_load): Get address of destroy_addr_space function.
6176 (libunwind_frame_cache): Destroy unw_addr_space_t object before
6177 returning unsuccessfully.
6178 (libunwind_frame_sniffer): Destroy unw_addr_space_t object before
6180 (libunwind_sigtramp_frame_sniffer): Likewise.
6181 (libunwind_get_reg_special): Likewise.
6183 2007-06-06 Markus Deuling <deuling@de.ibm.com>
6185 * gdbarch.sh (FETCH_POINTER_ARGUMENT): Replace by
6186 gdbarch_fetch_pointer_argument.
6187 * objc-lang.c (OBJC_FETCH_POINTER_ARGUMENT): Likewise.
6188 * gdbarch.c, gdbarch.h: Regenerate.
6190 2007-06-06 Markus Deuling <deuling@de.ibm.com>
6192 * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Replace by
6193 gdbarch_have_nonsteppable_watchpoint.
6194 * infrun.c (handle_inferior_event, adjust_pc_after_break): Likewise.
6195 * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Replace by
6196 gdbarch_cannot_step_breakpoint.
6197 * infrun.c (resume): Likewise.
6198 * gdbarch.c, gdbarch.h: Regenerate.
6200 2007-06-06 Markus Deuling <deuling@de.ibm.com>
6202 * gdbarch.sh (FRAME_ARGS_SKIP): Replace by gdbarch_frame_args_skip.
6203 * stack.c (print_frame_args): Likewise.
6204 * gdbarch.sh (FRAME_NUM_ARGS): Replace by gdbarch_frame_num_args.
6205 * stack.c (print_args_stub, frame_info): Likewise.
6206 * gdbarch.sh (FRAME_NUM_ARGS_P): Replace by gdbarch_frame_num_args_p.
6207 * stack.c (print_args_stub, frame_info): Likewise.
6208 * gdbarch.c, gdbarch.h: Regenerate.
6210 2007-06-06 Markus Deuling <deuling@de.ibm.com>
6212 * gdbarch.sh (COFF_MAKE_MSYMBOL_SPECIAL): Replace by
6213 gdbarch_coff_make_msymbol_special.
6214 * coffread.c (coff_symtab_read): Likewise.
6215 * gdbarch.sh (ELF_MAKE_MSYMBOL_SPECIAL): Replace by
6216 gdbarch_elf_make_msymbol_special.
6217 * elfread.c (elf_symtab_read): Likewise.
6218 * mips-tdep.c (mips_elf_make_msymbol_special): Likewise (comment).
6219 * sh64-tdep.c (MSYMBOL_IS_SPECIAL): Likewise (comment).
6220 * gdbarch.c, gdbarch.h: Regenerate.
6222 2007-06-06 Markus Deuling <deuling@de.ibm.com>
6224 * gdbarch.sh (FRAME_RED_ZONE_SIZE): Replace by
6225 gdbarch_frame_red_zone_size.
6226 * gdbarch.c, gdbarch.h: Regenerate.
6228 2007-06-06 Markus Deuling <deuling@de.ibm.com>
6230 * gdbarch.sh (INNER_THAN): Replace by gdbarch_inner_than.
6231 * infcall.c (call_function_by_hand): Likewise.
6232 * gcore.c (derive_stack_segment): Likewise.
6233 * frame.c (frame_id_inner): Likewise.
6234 * arch-utils.c (core_addr_lessthan): Likewise (comment).
6235 * ada-lang.c (ensure_lval): Likewise.
6236 * gdbarch.c, gdbarch.h: Regenerate.
6238 2007-06-06 Markus Deuling <deuling@de.ibm.com>
6240 * gdbarch.sh (ADDRESS_TO_POINTER): Replace by
6241 gdbarch_address_to_pointer.
6242 * findvar.c (store_typed_address): Likewise.
6243 * gdbtypes.c (make_pointer_type): Likewise (comment).
6244 * procfs.c (procfs_address_to_host_pointer): Likewise.
6245 * std-regs.c (value_of_builtin_frame_reg): Likewise.
6246 (value_of_builtin_frame_fp_reg): Likewise.
6247 (value_of_builtin_frame_pc_reg): Likewise.
6248 * utils.c (paddress): Likewise (comment).
6249 * gdbarch.sh (POINTER_TO_ADDRESS): Replace by
6250 gdbarch_pointer_to_address.
6251 * findvar.c (extract_typed_address): Likewise.
6252 * gdbtypes.c (make_pointer_type): Likewise (comment).
6253 * valops.c (value_cast): Likewise (comment).
6254 * gdbarch.c, gdbarch.h: Regenerate.
6256 2007-06-06 Markus Deuling <deuling@de.ibm.com>
6258 * gdbarch.sh (GET_LONGJMP_TARGET): Replace by gdbarch_get_longjmp_target.
6259 * infrun.c (handle_inferior_event): Likewise.
6260 * gdbarch.sh (GET_LONGJMP_TARGET_P): Replace by
6261 gdbarch_get_longjmp_target_p.
6262 * breakpoint.c (breakpoint_re_set): Likewise.
6263 * infrun.c (handle_inferior_event): Likewise.
6264 * gdbarch.c, gdbarch.h: Regenerate.
6266 2007-06-06 Ulrich Weigand <uweigand@de.ibm.com>
6268 * hppa-hpux-tdep.c (args_for_find_stub, HP_ACC_EH_notify_hook,
6269 HP_ACC_EH_set_hook_value, HP_ACC_EH_notify_callback, HP_ACC_EH_break,
6270 HP_ACC_EH_catch_throw, HP_ACC_EH_catch_catch, __eh_notification,
6271 hp_cxx_exception_support, hp_cxx_exception_support_initialized,
6272 eh_notify_hook_addr, eh_notify_callback_addr, eh_break_addr,
6273 eh_catch_throw_addr, break_callback_sal, setup_d_pid_in_inferior,
6274 find_stub_with_shl_get, cover_find_stub_with_shl_get,
6275 initialize_hp_cxx_exception_support, child_enable_exception_callback,
6276 current_ex_event, child_get_current_exception_event): Remove.
6277 (hppa_hpux_inferior_created): Remove.
6278 (hppa_hpux_init_abi): Do not install hppa_hpux_inferior_created.
6280 * breakpoint.h (deprecated_exception_catchpoints_are_fragile): Remove.
6281 (deprecated_exception_support_initialized): Remove.
6282 * breakpoint.c (deprecated_exception_catchpoints_are_fragile): Remove.
6283 (deprecated_exception_support_initialized): Remove.
6284 (breakpoint_init_inferior): Remove handling of non-zero
6285 deprecated_exception_catchpoints_are_fragile.
6287 * symtab.h (deprecated_hp_som_som_object_present): Remove.
6288 * symtab.c (deprecated_hp_som_som_object_present): Remove.
6289 * c-typeprint.c (c_type_print_base): Remove handling of non-zero
6290 deprecated_hp_som_som_object_present.
6291 * eval.c (evaluate_subexp_standard): Likewise.
6292 * valops.c (value_cast): Likewise.
6294 * parse.c (parse_nested_classes_for_hpacc, coloncolon): Remove.
6295 * parser-defs.h (parse_nested_classes_for_hpacc): Remove.
6296 * c-exp.y (yylex): Do not call parse_nested_classes_for_hpacc.
6298 2007-06-06 Ulrich Weigand <uweigand@de.ibm.com>
6300 * objfiles.h (ImportEntry, ExportEntry): Remove types.
6301 (struct objfile): Remove import_list, import_list_size,
6302 export_list, export_list_size members.
6303 (is_in_import_list): Remove prototype.
6304 * objfiles.c (is_in_import_list): Remove.
6305 * somread.c (init_import_symbols, init_export_symbols): Remove.
6306 (som_symfile_read): Do not call init_import_symbols. Do not
6307 set objfile->export_list and objfile->export_list_size.
6309 2007-06-05 Daniel Jacobowitz <dan@codesourcery.com>
6311 * dwarf2read.c (dwarf2_symbol_mark_computed): Fix formatting.
6312 Use the original objfile if necessary.
6314 2007-06-04 Daniel Jacobowitz <dan@codesourcery.com>
6316 * defs.h (ldirname): New prototype.
6317 * dwarf2read.c (read_file_scope): Use DW_AT_name if DW_AT_comp_dir is
6319 * utils.c (ldirname): New function.
6320 * xml-tdesc.c (file_read_description_xml): Use ldirname.
6322 2007-06-01 Ulrich Weigand <uweigand@de.ibm.com>
6324 * spu-tdep.c (spu_push_dummy_call): Store stack back chain.
6326 2007-06-01 Joel Brobecker <brobecker@adacore.com>
6328 * solib-svr4.c (svr4_solib_create_inferior_hook): Remove warning.
6330 2007-06-01 Ulrich Weigand <uweigand@de.ibm.com>
6332 * irix5-nat.c (JB_ELEMENT_SIZE, get_longjmp_target): Remove.
6334 2007-06-01 Ulrich Weigand <uweigand@de.ibm.com>
6336 * ppc-linux-tdep.c (INSTR_SC, INSTR_LI_R0_0x6666, INSTR_LI_R0_0x7777,
6337 INSTR_LI_R0_NR_sigreturn, INSTR_LI_R0_NR_rt_sigreturn): Remove.
6338 (PPC_LINUX_SIGNAL_FRAMESIZE, PPC_LINUX_REGS_PTR_OFFSET,
6339 PPC_LINUX_HANDLER_PTR_OFFSET): Remove.
6340 (ppc_linux_in_sigtramp, insn_is_sigreturn,
6341 ppc_linux_at_sigtramp_return_path): Remove.
6343 2007-05-31 Markus Deuling <deuling@de.ibm.com>
6345 * xtensa-tdep.c (XTENSA_IS_ENTRY, extract_call_winsize)
6346 (xtensa_register_write_masked, xtensa_register_read_masked)
6347 (xtensa_extract_return_value, xtensa_store_return_value
6348 (xtensa_push_dummy_call, xtensa_breakpoint_from_pc): Replace
6349 TARGET_BYTE_ORDER by gdbarch_byte_order.
6350 * sh-tdep.c (sh_breakpoint_from_pc, gdb_print_insn_sh)
6351 (sh_justify_value_in_reg, sh_next_flt_argreg, sh_push_dummy_call_fpu)
6352 (sh_extract_return_value_fpu, sh_store_return_value_fpu): Likewise.
6353 * sh64-tdep.c (sh64_breakpoint_from_pc, gdb_print_insn_sh64)
6354 (sh64_push_dummy_call, sh64_extract_return_value)
6355 (sh64_store_return_value, sh64_register_convert_to_virtual)
6356 (sh64_register_convert_to_raw, sh64_pseudo_register_read)
6357 (sh64_pseudo_register_write, sh64_do_fp_register)
6358 (sh64_frame_prev_register): Likewise.
6359 * score-tdep.c (score_print_insn, score_breakpoint_from_pc)
6360 (score_return_value, score_push_dummy_call, score_fetch_inst): Likewise.
6361 * rs6000-tdep.c (rs6000_breakpoint_from_pc, rs6000_push_dummy_call)
6362 (e500_move_ev_register,gdb_print_insn_powerpc): Likewise.
6363 * remote-m32r-sdi.c (m32r_resume, m32r_wait): Likewise.
6364 * ppc-linux-nat.c (store_register): Likewise.
6365 * nto-tdep.c (nto_find_and_open_solib)
6366 (nto_init_solib_absolute_prefix): Likewise.
6367 * mips-tdep.c (mips_pseudo_register_read, mips_pseudo_register_write)
6368 (mips_convert_register_p, mips_eabi_push_dummy_call)
6369 (mips_n32n64_push_dummy_call, mips_n32n64_return_value)
6370 (mips_o32_push_dummy_call, mips_o32_return_value)
6371 (mips_o64_push_dummy_call, mips_o64_return_value, mips_o64_return_value)
6372 (mips_read_fp_register_single, mips_read_fp_register_double)
6373 (mips_print_register, print_gp_register_row, gdb_print_insn_mips)
6374 (mips_breakpoint_from_pc): Likewise.
6375 * mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset): Likewise.
6376 * mips-linux-tdep.c (mips64_supply_fpregset, mips64_fill_fpregset)
6377 (mips_linux_o32_sigframe_init): Likewise.
6378 * m32r-tdep.c (m32r_memory_insert_breakpoint)
6379 (m32r_memory_remove_breakpoint, m32r_breakpoint_from_pc): Likewise.
6380 * libunwind-frame.c (libunwind_frame_cache, libunwind_frame_sniffer)
6381 (libunwind_sigtramp_frame_sniffer, libunwind_get_reg_special): Likewise.
6382 * iq2000-tdep.c (iq2000_breakpoint_from_pc): Likewise.
6383 * coffread.c (process_coff_symbol): Likewise.
6384 * arm-tdep.c (convert_from_extended, convert_to_extended)
6385 (gdb_print_insn_arm): Likewise.
6387 2007-05-31 Markus Deuling <deuling@de.ibm.com>
6389 * gdbarch.sh (NUM_REGS): Replace by gdbarch_num_regs.
6390 * i386-tdep.c (i386_dbx_reg_to_regnum)
6391 (i386_svr4_reg_to_regnum): Likewise.
6392 * inf-ptrace.c (inf_ptrace_fetch_registers)
6393 (inf_ptrace_store_registers): Likewise.
6394 * corelow.c (get_core_registers): Likewise.
6395 * i386-linux-nat.c (supply_gregset, fill_gregset)
6396 (i386_linux_fetch_inferior_registers)
6397 (i386_linux_store_inferior_registers): Likewise.
6398 * remote.c (init_remote_state,packet_reg_from_regnum)
6399 (packet_reg_from_pnum,process_g_packet,remote_fetch_registers)
6400 (remote_prepare_to_store,store_registers_using_G)
6401 (remote_store_registers,remote_arch_state): Likewise.
6402 * tracepoint.c (encode_actions): Likewise.
6403 * mi/mi-main.c (mi_cmd_data_list_register_names)
6404 (mi_cmd_data_list_changed_registers,mi_cmd_data_list_register_values)
6405 (mi_cmd_data_write_register_values): Likewise.
6406 * tui/tui-regs.c (tui_show_register_group)
6407 (tui_show_register_group): Likewise.
6408 * xtensa-tdep.h (FP_ALIAS): Likewise.
6409 * xtensa-tdep.c (xtensa_register_name,xtensa_register_type)
6410 (xtensa_reg_to_regnum,xtensa_pseudo_register_read)
6411 (xtensa_pseudo_register_write,xtensa_register_reggroup_p): Likewise.
6412 * win32-nat.c (do_win32_fetch_inferior_registers)
6413 (do_win32_store_inferior_registers,fetch_elf_core_registers
6414 * user-regs.h: Likewise (comment).
6415 * user-regs.c (user_reg, user_reg_map_name_to_regnum): Likewise.
6416 * trad-frame.c (trad_frame_alloc_saved_regs): Likewise.
6417 * target-descriptions.h: Likewise (comment).
6418 * target-descriptions.c (tdesc_use_registers): Likewise (comment).
6419 * target.c (debug_print_register): Likewise.
6420 * stack.c (frame_info): Likewise.
6421 * stabsread.c (define_symbol): Likewise.
6422 * sh64-tdep.c (sh64_do_pseudo_register,sh64_print_register)
6423 (sh64_media_print_registers_info)
6424 (sh64_compact_print_registers_info): Likewise.
6425 * rs6000-tdep.c (rs6000_register_sim_regno): Likewise.
6426 * rs6000-nat.c (fetch_register,store_register): Likewise.
6427 * remote-sim.c (one2one_register_sim_regno,gdbsim_fetch_register)
6428 (gdbsim_fetch_register,gdbsim_store_register): Likewise.
6429 * remote-mips.c (mips_fetch_registers,mips_store_registers): Likewise.
6430 * remote-m32r-sdi.c (m32r_fetch_registers)
6431 (m32r_store_registers): Likewise.
6432 * reggroups.c (default_register_reggroup_p): Likewise.
6433 * regcache.c (init_regcache_descr,register_size,regcache,regcache_save)
6434 (regcache_restore,regcache_dump): Likewise.
6435 * monitor.c (monitor_fetch_registers,monitor_store_registers): Likewise.
6436 * mips-tdep.c (mips_xfer_register,mips_register_name)
6437 (mips_register_reggroup_p,mips_pseudo_register_read)
6438 (mips_pseudo_register_write,mips_convert_register_p,mips_register_type)
6439 (mips_unwind_pc,mips_unwind_sp,mips_unwind_dummy_id,set_reg_offset)
6440 (mips16_scan_prologue,mips_insn16_frame_cache,reset_saved_regs)
6441 (mips32_scan_prologue,mips_insn32_frame_cache,read_next_frame_reg)
6442 (mips_n32n64_return_value,mips_o32_return_value,mips_o64_return_value)
6443 (print_gp_register_row,mips_print_registers_info)
6444 (mips_stab_reg_to_regnum,mips_dwarf_dwarf2_ecoff_reg_to_regnum)
6445 (mips_register_sim_regno): Likewise.
6446 * mips-linux-tdep.c (mips_linux_o32_sigframe_init)
6447 (mips_linux_n32n64_sigframe_init): Likewise.
6448 * mips-linux-nat.c (mips_linux_register_addr)
6449 (mips64_linux_register_addr): Likewise.
6450 * findvar.c (value_of_register): Likewise.
6451 * infcmd.c (default_print_registers_info,registers_info)
6452 (print_vector_info,print_float_info): Likewise.
6453 * mips64obsd-tdep.c (mips64obsd_sigframe_init): Likewise.
6454 * inf-child.c (inf_child_fetch_inferior_registers): Likewise.
6455 * m68k-tdep.c (m68k_dwarf_reg_to_regnum): Likewise.
6456 * m68hc11-tdep.c (m68hc11_frame_unwind_cache(: Likewise.
6457 * m32r-tdep.c (m32r_frame_unwind_cache): Likewise.
6458 * ia64-linux-nat.c (ia64_register_addr,ia64_cannot_fetch_register)
6459 (ia64_cannot_store_register,ia64_linux_fetch_registers)
6460 (ia64_linux_store_registers): Likewise.
6461 * hpux-thread.c (hpux_thread_fetch_registers)
6462 (hpux_thread_store_registers): Likewise.
6463 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM,E_PSEUDO_EXR_REGNUM)
6464 (h8300_init_frame_cache,h8300_frame_cache,h8300_frame_prev_register)
6465 (h8300_register_type): Likewise.
6466 * dwarf2-frame.c (dwarf2_frame_cache)
6467 (dwarf2_frame_state_alloc_regs): Likewise.
6468 * cris-tdep.c (cris_register_size,cris_cannot_fetch_register)
6469 (cris_cannot_store_register,crisv32_cannot_fetch_register)
6470 (crisv32_cannot_store_register,cris_register_name): Likewise.
6471 * avr-tdep.c (avr_frame_unwind_cache): Likewise.
6472 * arch-utils.c (legacy_register_sim_regno)
6473 (legacy_virtual_frame_pointer): Likewise.
6474 * arm-tdep.c (arm_make_prologue_cache,arm_register_sim_regno):Likewise.
6475 * arm-tdep.h: Likewise (comment).
6476 * frv-tdep.c (frv_register_sim_regno): Likewise.
6477 * m68klinux-nat.c (old_fetch_inferior_registers)
6478 (old_store_inferior_registers): Likewise.
6479 * m32c-tdep.c (m32c_virtual_frame_pointer): Likewise.
6480 * irix5-nat.c (fetch_core_registers): Likewise.
6481 * hppa-tdep.c (hppa_frame_cache): Likewise.
6482 * hppa-linux-nat.c (hppa_linux_register_addr)
6483 (hppa_linux_fetch_inferior_registers)
6484 (hppa_linux_store_inferior_registers): Likewise.
6485 * hppa-hpux-nat.c (hppa_hpux_fetch_inferior_registers)
6486 (hppa_hpux_store_inferior_registers): Likewise.
6487 * amd64-nat.c (amd64_native_gregset_reg_offset)
6488 (amd64_supply_native_gregset,amd64_collect_native_gregset): Likewise.
6489 * dbug-rom.c (dbug_regname): Likewise.
6490 * m68hc11-tdep.c (m68hc11_frame_unwind_cache)
6491 (HARD_PAGE_REGNUM (comment)): Likewise.
6492 * gdbarch.sh (NUM_PSEUDO_REGS): Replace by gdbarch_num_pseudo_regs.
6493 * i386-tdep.c (i386_dbx_reg_to_regnum)
6494 (i386_svr4_reg_to_regnum): Likewise.
6495 * mi/mi-main.c (mi_cmd_data_list_register_names)
6496 (mi_cmd_data_list_changed_registers,mi_cmd_data_list_register_values)
6497 (mi_cmd_data_write_register_values): Likewise.
6498 * gdbarch.c, gdbarch.h: Regenerate.
6499 * tui/tui-regs.c (tui_show_register_group): Likewise.
6500 * xtensa-tdep.h (FP_ALIAS): Likewise.
6501 * user-regs.h: Likewise (comment).
6502 * user-regs.c (user_reg, user_reg_map_name_to_regnum): Likewise.
6503 * trad-frame.c (trad_frame_alloc_saved_regs): Likewise.
6504 * target-descriptions.h: Likewise (comment).
6505 * target.c (debug_print_register): Likewise.
6506 * stack.c (frame_info): Likewise.
6507 * stabsread.c (define_symbol): Likewise.
6508 * sh64-tdep.c (sh64_print_register,sh64_media_print_registers_info)
6509 (sh64_compact_print_registers_info): Likewise.
6510 * rs6000-tdep.c (rs6000_register_sim_regno): Likewise.
6511 * regcache.c (init_regcache_descr,register_size,regcache,regcache_save
6512 (regcache_restore,regcache_dump): Likewise.
6513 * mips-tdep.c (print_gp_register_row,mips_print_registers_info)
6514 (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
6515 (mips_stab_reg_to_regnum): Likewise.
6516 * findvar.c (value_of_register): Likewise.
6517 * infcmd.c (default_print_registers_info,registers_info)
6518 (print_vector_info,print_float_info): Likewise.
6519 * m68k-tdep.c (m68k_dwarf_reg_to_regnum): Likewise.
6520 * h8300-tdep.c (h8300_register_type): Likewise.
6521 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
6522 * frame.h (SIZEOF_FRAME_SAVED_REGS): Likewise.
6523 * xtensa-tdep.c (xtensa_register_type,xtensa_reg_to_regnum)
6524 (xtensa_pseudo_register_read,xtensa_pseudo_register_write): Likewise.
6525 * parse.c: Remove comment.
6526 * gdbarch.c, gdbarch.h: Regenerate
6528 2007-05-31 Markus Deuling <deuling@de.ibm.com>
6530 * gdbarch.sh (CANNOT_FETCH_REGISTER): Replace by
6531 gdbarch_cannot_fetch_register.
6532 * alpha-nat.c (fetch_osf_core_registers): Likewise.
6533 * hppa-linux-nat.c (fetch_register): Likewise.
6534 * inf-ptrace.c (inf_ptrace_fetch_register): Likewise.
6535 * m68klinux-nat.c (fetch_register): Likewise.
6536 * mipsnbsd-tdep.c (mipsnbsd_supply_reg, mipsnbsd_supply_fpreg):
6538 * gdbarch.sh (CANNOT_STORE_REGISTER): Replace by
6539 gdbarch_cannot_store_register.
6540 * hppa-linux-nat.c (store_register): Likewise.
6541 * inf-ptrace.c (inf_ptrace_store_register): Likewise.
6542 * regcache.c (regcache_raw_write): Likewise.
6543 * m68klinux-nat.c (store_register): Likewise.
6544 * mipsnbsd-tdep.c (mipsnbsd_fill_reg, mipsnbsd_fill_fpreg): Likewise.
6545 * gdbarch.c, gdbarch.h: Regenerate.
6547 2007-05-31 Markus Deuling <deuling@de.ibm.com>
6549 * gdbarch.sh (TARGET_OSABI): Replace by gdbarch_osabi.
6550 * gdbarch.c, gdbarch.h: Regenerate.
6552 2007-05-31 Markus Deuling <deuling@de.ibm.com>
6554 * gdbarch.sh (TARGET_CHAR_SIGNED): Replace by gdbarch_char_signed.
6555 * gdbtypes.c (build_gdbtypes, gdbtypes_post_init): Likewise.
6556 * gdbarch.c, gdbarch.h: Regenerate.
6558 2007-05-31 Markus Deuling <deuling@de.ibm.com>
6560 * gdbarch.sh (TARGET_BYTE_ORDER): Replace by gdbarch_byte_order.
6561 * ax-gdb.c (gen_bitfield_ref): Likewise.
6562 * mi/mi-main.c (get_register): Likewise.
6563 * findvar.c (default_value_from_register, extract_signed_integer)
6564 (extract_unsigned_integer, extract_long_unsigned_integer)
6565 (store_signed_integer, store_unsigned_integer): Likewise.
6566 * regcache.c (regcache_dump): Likewise.
6567 * value.c (lookup_internalvar, value_of_internalvar)
6568 (set_internalvar): Likewise.
6570 * valprint.c (print_binary_chars, print_octal_chars)
6571 (print_decimal_chars, print_hex_chars, print_char_chars): Likewise.
6572 * infcmd.c (default_print_registers_info): Likewise.
6573 * arch-utils.c (selected_byte_order, show_endian): Likewise.
6574 * stabsread.c (define_symbol): Likewise.
6575 * doublest.c (floatformat_from_length, floatformat_from_type)
6576 (extract_typed_floating, store_typed_floating): Likewise.
6577 * gdbarch.c, gdbarch.h: Regenerate.
6579 2007-05-31 Markus Deuling <deuling@de.ibm.com>
6581 * gdbarch.sh (CALL_DUMMY_LOCATION): Replace by
6582 gdbarch_call_dummy_location.
6583 * infcall.c (call_function_by_hand): Likewise.
6584 * inferior.h: Change comment.
6585 * arch-utils.c: Change comment.
6586 * gdbarch.c, gdbarch.h: Regenerate.
6588 2007-05-28 Joel Brobecker <brobecker@adacore.com>
6590 * solib-aix5.c: Delete.
6591 * Makefile.in (solib-aix5.o): Delete rule.
6593 2007-05-23 Daniel Jacobowitz <dan@codesourcery.com>
6595 * breakpoint.h (enum bpstat_what_main_action): Remove
6596 BPSTAT_WHAT_THROUGH_SIGTRAMP.
6597 * infrun.c (process_event_stop_test): Do not check for it.
6599 2007-05-22 Chris Dearman <chris@mips.com>
6600 Maciej W. Rozycki <macro@mips.com>
6602 * ser-unix.c (show_serial_hwflow): New function.
6603 (hardwire_raw): Add hardware flow control support.
6604 (_initialize_ser_hardwire): Add "set/show remoteflow".
6605 * Makefile.in (ser-unix.o): Depend on $(gdbcmd_h).
6606 * NEWS: Document the new command.
6608 2007-05-21 Ulrich Weigand <uweigand@de.ibm.com>
6610 * config/i386/tm-linux.h (sys_quotactl): Do not define.
6611 * configure.ac (sys_quotactl, START_INFERIOR_TRAPS_EXPECTED): Do not
6612 define for i[[3456]]86-*-linux* native configurations.
6613 * config.in, configure: Regenerate.
6615 2007-05-19 Joel Brobecker <brobecker@adacore.com>
6617 * rs6000-nat.c (xcoff_relocate_symtab): Do nothing if debugging
6618 a core file. Add comment in the function description.
6620 2007-05-18 Caroline Tice <ctice@apple.com>
6622 * c-valprint.c (c_value_print): If the initialized field of the
6623 value struct is 0, print out "[uninitialized]" before the value.
6624 * dwarf2expr.c (execute_stack_op): Initialize ctx->initialized field;
6625 allow DW_OP_GNU_uninit as legal op following a DW_OP_reg op or a
6626 DW_OP_regx op; add case for DW_OP_GNU_uninit and update
6627 ctx->initialized appropriately. Verify no location op follows
6629 * dwarf2expr.h (struct dwarf_expr_context): New field, initialized.
6630 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Add call to
6631 set_value_initialized.
6632 * dwarf2read.c (dwarf_stack_op_name): Add case for DW_OP_GNU_uninit.
6633 (decode_locdesc): Add case for DW_OP_GNU_uninit.
6634 * value.c (struct value): New field, initialized.
6635 (allocate_value): Initialize new field.
6636 (set_value_initialized): New function.
6637 (value_initialized): New function.
6638 * value.h (value_initialized): New extern declaration.
6639 (set_value_initialized): Likewise.
6641 2007-05-18 Caroline Tice <ctice@apple.com>
6643 * MAINTAINERS (Write After Approval): Add self.
6645 2007-05-17 Joel Brobecker <brobecker@adacore.com>
6647 * gdbtypes.c (make_reference_type): Preserve the type chain
6648 and set the length of all the variants of the pointer type.
6650 2007-05-17 Joel Brobecker <brobecker@adacore.com>
6652 * gdbtypes.c (make_pointer_type): Preserve the pointer type chain
6653 and set the length of all the variants of the pointer type.
6655 2007-05-17 Maciej W. Rozycki <macro@mips.com>
6657 * mips-tdep.c (mips_n32n64_push_dummy_call): Fix and reformat a
6659 (mips_o64_push_dummy_call): Reformat a comment.
6661 2007-05-17 Qinwei <qinwei@sunnorth.com.cn>
6663 * score-tdep.c (score_frame_cache->fp, score_analyze_prologue)
6664 (score_prologue_frame_base_address): Return fp to keep gdb print
6665 local variables correctly when debugging information is stabs.
6667 (score_analyze_prologue): For software watchpoint, fetch all the
6668 instructions from range [startaddr, pc] once and identify them locally
6669 to reduce memory access.
6670 (score_malloc_and_get_memblock, score_free_memblock)
6671 (score_adjust_memblock_ptr): New functions.
6672 (score_fetch_inst): Fetch single instruction or mutiple instructions.
6674 (score_target_can_use_watch, score_stopped_by_watch)
6675 (score_target_insert_watchpoint, score_target_remove_watchpoint)
6676 (score_target_insert_hw_breakpoint, score_target_remove_hw_breakpoint):
6677 New functions for remote & local hw-watchpoint and hw-breakpoint.
6679 2007-05-16 Alfred M. Szmidt <ams@gnu.org>
6681 * reply_mig_hack.awk: Check for `auto const mach_msg_type_t'
6682 declarations as well.
6684 2007-05-16 Ulrich Weigand <uweigand@de.ibm.com>
6686 * config/arm/embed.mt (DEPRECATED_TM_FILE): Set to tm-arm.h.
6687 * config/arm/tm-embed.h: Delete file.
6689 * arm-tdep.h (arm_software_single_step): Declare.
6690 * arm-tdep.c (arm_software_single_step): Make global.
6691 (arm_gdbarch_init): Move set_gdbarch_software_single_step call
6693 * arm-linux-tdep.c (arm_linux_init_abi): ... here ...
6694 * armnbsd-tdep.c (arm_netbsd_init_abi_common): ... here ...
6695 * armobsd-tdep.c (armobsd_init_abi): ... here ...
6696 * arm-wince-tdep.c (arm_wince_init_abi): ... and here.
6698 * arm-tdep.c (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT): No longer
6699 allow defines to be overriden by TM file.
6700 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Likewise. Also,
6701 change default to {0xbe,0xbe}.
6702 * armobsd-tdep.c (arm_obsd_thumb_le_breakpoint,
6703 arm_obsd_thumb_be_breakpoint): New global variables.
6704 (armobsd_init_abi): Override tdep->thumb_breakpoint and
6705 tdep->thumb_breakpoint_size.
6706 * arm-wince-tdep.c (arm_wince_thumb_le_breakpoint): New variable.
6707 (arm_wince_init_abi): Override tdep->thumb_breakpoint and
6708 tdep->thumb_breakpoint_size.
6710 * arm-tdep.c (arm_gdbarch_init): Add set_gdbarch_skip_trampoline_code.
6712 2007-05-16 Daniel Jacobowitz <dan@codesourcery.com>
6714 * NEWS: Mention removed "set mips stack-arg-size" and "set mips
6717 * mips-tdep.c (MIPS32_REGSIZE, MIPS64_REGSIZE): New constants.
6718 (size_auto, size_32, size_64, size_enums, mips_abi_regsize_string)
6719 (mips_stack_argsize_string, mips_stack_argsize): Delete.
6720 (mips_abi_regsize): Simplify.
6721 (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call)
6722 (mips_n32n64_return_value, mips_o32_push_dummy_call)
6723 (mips_o32_return_value, mips_o64_push_dummy_call)
6724 (mips_o64_return_value): Propogate constant register sizes. Use the
6725 ABI register size instead of mips_stack_argsize.
6726 (mips_dump_tdep): Don't print mips_stack_argsize.
6727 (_initialize_mips_tdep): Remove saved-gpreg-size and stack-arg-size
6730 2007-05-16 Daniel Jacobowitz <dan@codesourcery.com>
6732 * config/mips/linux.mt (DEPRECATED_TM_FILE): Delete.
6733 * config/mips/tm-linux.h: Delete.
6734 * mips-linux-tdep.c (mips_svr4_so_ops): New.
6735 (mips_linux_in_dynsym_resolve_code): Make static. Use
6736 svr4_in_dynsym_resolve_code.
6737 (mips_linux_init_abi): Initialize mips_svr4_so_ops. Call
6739 * solib-svr4.c (svr4_in_dynsym_resolve_code, svr4_so_ops): Make
6741 * solib-svr4.h (svr4_so_ops, svr4_in_dynsym_resolve_code): Declare.
6742 * Makefile.in (mips-linux-tdep.o): Update.
6743 * solib.c (set_solib_ops): New.
6744 (current_target_so_ops): Update comment.
6745 * solib.h (set_solib_ops): New prototype.
6747 2007-05-16 Chris Dearman <chris@mips.com>
6749 * printcmd.c (do_examine): Fix typos in a comment.
6751 2007-05-16 Richard Sandiford <richard@codesourcery.com>
6753 * configure.ac: Allow sysroots to be relocated under $prefix as
6754 well as $exec_prefix.
6755 * configure: Regenerate.
6757 2007-05-14 Ulrich Weigand <uweigand@de.ibm.com>
6759 * hppa-hpux-tdep.c: Do not include <dl.h> or <machine/save_state.h>.
6760 (offsetof): Do not define.
6761 (find_stub_with_shl_get): Use numerical value 3 instead of
6762 symbolic value TYPE_PROCEDURE.
6764 2007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
6766 * gdb_proc_service.h (paddr_t): Delete typedef.
6767 * proc-service.c (ps_addr_to_core_addr, core_addr_to_ps_addr): New.
6768 (ps_xfer_memory): Take a psaddr_t. Use ps_addr_to_core_addr.
6769 (ps_pglobal_lookup): Take a psaddr_t *. Use core_addr_to_ps_addr.
6770 (ps_pdread, ps_pdwrite, ps_ptread, ps_ptwrite): Take a psaddr_t.
6771 * sol-thread.c (gdb_ps_addr_t): Use psaddr_t instead of paddr_t.
6772 * Makefile.in (proc-service.o): Update.
6774 2007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
6776 * Makefile.in (mips-tdep.o): Update.
6777 * mips-tdep.c (mips_gdbarch_init): Register the dwarf2 CFI
6780 2007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
6782 * dwarf2-frame.c (dwarf2_frame_prev_register): Use pack_long
6783 instead of store_typed_address.
6784 * value.c (pack_long): New.
6785 (value_from_longest): Use it.
6786 * value.h (pack_long): New prototype.
6788 2007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
6790 * dwarf2-frame.c (read_encoded_value): Correct typo. Use
6791 DW_EH_PE_signed if appropriate.
6793 2007-05-14 Paul Brook <paul@codesourcery.com>
6794 Daniel Jacobowitz <dan@codesourcery.com>
6796 * dwarf2read.c (dwarf2_debug_line_missing_file_complaint): New
6798 (dwarf_decode_lines): Check for line info without a file.
6800 2007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
6802 * linux-thread-db.c (thread_db_pid_to_str): Print thread IDs
6805 2007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
6807 * jv-exp.y (push_fieldnames): Use STRUCTOP_PTR instead of
6809 * jv-lang.c (evaluate_subexp_java): Handle STRUCTOP_PTR instead of
6811 * jv-typeprint.c (java_print_type): Do not crash on NULL varstring.
6813 2007-05-14 Ulrich Weigand <uweigand@de.ibm.com>
6815 * gdbarch.sh (read_sp): Remove.
6816 * gdbarch.c, gdbarch.h: Regenerate.
6817 * frame.c (frame_sp_unwind): Do not call TARGET_READ_SP.
6819 * avr-tdep.c (avr_read_sp): Remove.
6820 (avr_unwind_sp): New function.
6821 (avr_gdbarch_init): Install unwind_sp instead of read_sp callback.
6822 * mips-tdep.c (mips_read_sp): Remove.
6823 (mips_unwind_sp): New function.
6824 (mips_gdbarch_init): Install unwind_sp instead of read_sp callback.
6825 * score-tdep.c (score_read_unsigned_register): Remove.
6826 (score_read_sp): Remove.
6827 (score_unwind_sp): New function.
6828 (score_gdbarch_init): Install unwind_sp instead of read_sp callback.
6830 2007-05-14 Maxim Grigoriev <maxim2405@gmail.com>
6832 * buildsym.c (start_subfile): Handle absolute pathnames
6833 while comparing subfile names.
6835 2007-05-13 Ulrich Weigand <uweigand@de.ibm.com>
6837 * hppa-hpux-tdep.c: Include "regcache.h".
6838 * hppa-linux-tdep.c: Likewise.
6839 * hppa-tdep.c: Include "gdb_stdint.h".
6840 (find_unwind_entry): Cast host pointer to uintptr_t before passing
6842 * Makefile.in: Update dependencies.
6844 2007-05-13 Ulrich Weigand <uweigand@de.ibm.com>
6846 * blockframe.c: Remove obsolete comments.
6847 * alpha-nat.c (fetch_osf_core_registers): Update comment.
6848 * arm-tdep.h (enum gdb_regnum): Remove obsolete part of comment.
6849 * hppa-tdep.h (enum hppa_regnum): Likewise.
6850 * mips-tdep.h: Likewise.
6851 * m68hc11-tdep.c: Likewise.
6853 2007-05-13 Ulrich Weigand <uweigand@de.ibm.com>
6855 * inferior.h (read_sp): Remove prototype.
6856 * regcache.c (read_sp): Remove.
6857 * gcore.c (derive_stack_segment): Use get_frame_sp instead of read_sp.
6858 * infcall.c (call_function_by_hand): Likewise.
6859 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Use regcache instead
6861 * rs6000-tdep.c (rs6000_push_dummy_call): Likewise.
6863 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
6865 * i386-linux-nat.c (i386_linux_resume): Use regcache functions
6866 instead of read_register and read_register_pid.
6868 * ia64-linux-nat.c (enable_watchpoints_in_psr): Use REGCACHE
6869 argument instead of PTID. Use regcache functions instead of
6871 (ia64_linux_insert_watchpoint): Update call.
6872 (ia64_linux_stopped_data_address): Use regcache functions
6873 instead of read_register_pid and write_register_pid.
6875 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
6877 * libunwind-frame.h (struct regcache): Add forward declaration.
6878 (libunwind_get_reg_special): Add REGCACHE argument.
6879 * libunwind-frame.c (libunwind_get_reg_special): Add REGCACHE
6880 argument. Pass it to unw_init_remote_p.
6882 * ia64-tdep.c (ia64_pseudo_register_read): Pass regcache to
6883 libunwind_get_reg_special.
6884 (ia64_access_reg): Remove "write" case.
6885 (ia64_access_fpreg): Likewise. Read from next_frame passed
6886 as callback argument instead of from current_regcache.
6887 (ia64_access_rse_reg): Remove "write" case. Read from regcache
6888 passed as callback argument instead of from current_regcache.
6889 (ia64_access_rse_fpreg): New function.
6890 (ia64_unw_rse_acce): Use it instead of ia64_access_fpreg.
6892 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
6894 * NEWS: Mention SPU overlay support.
6896 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
6898 * spu-tdep.c (spu_frame_unwind_cache): Add comment.
6900 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
6902 * breakpoint.c (remove_breakpoint): Do not remove software
6903 breakpoints in unmapped overlay sections.
6905 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
6907 * spu-tdep.c: Include "observer.h".
6908 (spu_frame_unwind_cache): Unwind PC through overlay return stubs.
6909 (spu_overlay_data): New variable.
6910 (struct spu_overlay_table): New type.
6911 (spu_get_overlay_table, spu_overlay_update_osect, spu_overlay_update,
6912 spu_overlay_new_objfile): New functions.
6913 (spu_gdbarch_init): Install spu_overlay_update.
6914 (_initialize_spu_tdep): Register spu_overlay_new_objfile,
6915 allocate spu_overlay_data objfile data.
6917 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
6919 * gdbarch.sh (overlay_update): New gdbarch function.
6920 (struct obj_section): Add forward declaration.
6921 * gdbarch.c, gdbarch.h: Regenerate.
6923 * symfile.c (simple_overlay_update): Make global.
6924 (target_overlay_update): Remove variable.
6925 (overlay_is_mapped): Call gdbarch_overlay_update instead of
6926 target_overlay_update.
6927 (overlay_load_command): Likewise.
6928 * symfile.h (struct obj_section): Add forward declaration.
6929 (simple_overlay_update): Add prototype.
6931 * m32r-tdep.c (m32r_gdbarch_init): Install simple_overlay_update.
6933 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
6935 * observer.sh: Add "struct objfile" forward declaration.
6936 * target.h (deprecated_target_new_objfile_hook): Remove.
6937 * symfile.c (deprecated_target_new_objfile_hook): Remove.
6938 (clear_symtab_users): Call observer_notify_new_objfile.
6939 (symbol_file_add_with_addrs_or_offsets): Likewise.
6940 * rs6000-nat.c: Include "observer.h".
6941 (vmap_ldinfo): Call observer_notify_new_objfile.
6942 (xcoff_relocate_core): Likewise.
6943 * remote.c (remote_new_objfile_chain): Remove.
6944 (remote_new_objfile): Do not call remote_new_objfile_chain.
6945 (_initialize_remote): Use observer_attach_new_objfile.
6946 * tui/tui-hooks.c (tui_target_new_objfile_chain): Remove.
6947 (tui_new_objfile_hook): Do not call tui_target_new_objfile_chain.
6948 (_initialize_tui_hooks): Use observer_attach_new_objfile.
6949 * aix-thread.c: Include "observer.h".
6950 (target_new_objfile_chain): Remove.
6951 (new_objfile): Do not call target_new_objfile_chain.
6952 (_initialize_aix_thread): Use observer_attach_new_objfile.
6953 * hpux-thread.c: Include "observer.h"
6954 (target_new_objfile_chain): Remove.
6955 (hpux_thread_new_objfile): Make static. Do not call
6956 target_new_objfile_chain.
6957 (_initialize_hpux_thread): Use observer_attach_new_objfile.
6958 * linux-thread-db.c: Include "observer.h".
6959 (target_new_objfile_chain): Remove.
6960 (thread_db_new_objfile): Do not call target_new_objfile_chain.
6961 (_initialize_thread_db): Use observer_attach_new_objfile.
6962 * sol-thread.c: Include "observer.h".
6963 (target_new_objfile_chain): Remove.
6964 (sol_thread_new_objfile): Make static. Do not call
6965 target_new_objfile_chain.
6966 (_initialize_sol_thread): Use observer_attach_new_objfile.
6967 * Makefile.in (aix-thread.o, hpux-thread.o, linux-thread-db.o,
6968 rs6000-nat.o, sol-thread.o, tui-hooks.o): Add dependency on
6971 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
6973 * gdbarch.sh (remote_translate_xfer_address): Remove.
6974 * gdbarch.h, gdbarch.c: Regenerate.
6975 * arch-utils.c (generic_remote_translate_xfer_address): Remove.
6976 * arch-utils.h (generic_remote_translate_xfer_address): Remove.
6977 * remote.c (remote_write_bytes_aux, remote_read_bytes): Do not
6978 call gdbarch_remote_translate_xfer_address.
6979 * frv-tdep.c (frv_gdbarch_init): Do not call
6980 set_gdbarch_remote_translate_xfer_address.
6981 * ia64-tdep.c (ia64_remote_translate_xfer_address): Remove.
6982 (ia64_gdbarch_init): Do not install it.
6984 2007-05-11 Bob Wilson <bob.wilson@acm.org>
6986 * NEWS: Mention change in handling the -tui option.
6988 2007-05-11 Daniel Jacobowitz <dan@codesourcery.com>
6990 * linux-thread-db.c (enable_thread_event_reporting): Fix comment
6993 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
6995 * breakpoint.c (single_step_breakpoint_inserted_here_p): New function.
6996 (breakpoint_inserted_here_p): Call it.
6997 (software_breakpoint_inserted_here_p): Likewise.
6999 2007-05-10 Ulrich Weigand <uweigand@de.ibm.com>
7001 * inf-ptrace.c (inf_ptrace_register_u_offset): Adapt parameter list.
7002 (inf_ptrace_fetch_register): Add register_u_offset callback parameters
7003 GDBARCH and STORE_P. Handle callback (CORE_ADDR) -1 return value.
7004 (inf_ptrace_store_register): Likewise.
7005 (inf_ptrace_trad_target): Adapt register_u_offset parameter list.
7006 * inf-ptrace.h (inf_ptrace_trad_target): Likewise.
7008 * vax-nat.c (vax_register_u_offset): Adapt parameter list.
7010 * linux-nat.c (linux_trad_target): Adapt parameter list.
7011 * linux-nat.h (linux_trad_target): Likewise.
7013 * alpha-linux-nat.c (alpha_linux_register_u_offset): Adapt parameters.
7015 * mips-linux-nat.c (mips_linux_cannot_fetch_register): Remove.
7016 (mips_linux_cannot_store_register): Likewise.
7017 (mips_linux_register_addr): Add GDBARCH and STORE_P parameters.
7018 Return (CORE_ADDR) -1 for registers that cannot be fetched or
7019 stored via ptrace. Use GDBARCH instead of current_gdbarch.
7020 (mips64_linux_register_addr): Likewise.
7021 (mips_linux_register_u_offset): Adapt parameter list. Pass
7022 GDBARCH and STORE_P on to mips{64}_linux_register_addr.
7024 * config/mips/linux.mh (NAT_FILE): Set to config/nm-linux.h.
7025 * config/mips/nm-linux.h: Delete file.
7027 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
7029 * remote.c (remote_detach): Error out if remote can't detach.
7031 2007-05-10 Luis Machado <luisgpm@br.ibm.com>
7033 * rs6000-tdep.c: (deal_with_atomic_sequence) Stores branch
7034 instruction's opcode in the "opcode" variable and declares new
7035 variable "closing_insn".
7037 2007-05-10 Chris Dearman <chris@mips.com>
7038 Maciej W. Rozycki <macro@mips.com>
7040 * cli/cli-setshow.c (do_setshow_command): Remove trailing
7041 whitespace when setting a var_filename.
7043 2007-05-09 Bob Wilson <bob.wilson@acm.org>
7045 * main.c (captured_main): Recognize -tui option and print an error
7046 message when the TUI is not configured.
7048 2007-05-09 Andreas Schwab <schwab@suse.de>
7050 * mipsnbsd-tdep.c (mipsnbsd_ilp32_fetch_link_map_offsets): Don't
7051 set removed members.
7052 (mipsnbsd_lp64_fetch_link_map_offsets): Likewise.
7054 2007-05-08 Ulrich Weigand <uweigand@de.ibm.com>
7056 * gdbarch.sh (deprecated_store_struct_return): Remove.
7057 * gdbarch.c, gdbarch.h: Regenerate.
7058 * frv-tdep.c (frv_store_struct_return): Remove.
7059 (frv_gdbarch_init): Do not install it.
7061 2007-05-08 Ulrich Weigand <uweigand@de.ibm.com>
7063 * config/i386/nm-i386sol2.h (USE_PROC_FS): Do not define.
7064 * config/mips/nm-irix5.h (USE_PROC_FS): Do not define.
7065 * config/nm-linux.h (USE_PROC_FS): Do not undefine.
7067 2007-05-08 Ulrich Weigand <uweigand@de.ibm.com>
7069 * spu-linux-nat.c: Include "gdb_stdint.h".
7070 (fetch_ppc_register): Use uint64_t instead of unsigned long long.
7071 (fetch_ppc_memory_1, store_ppc_memory_1): Likewise.
7072 (fetch_ppc_memory, store_ppc_memory): Fix coding style.
7073 (spu_symbol_file_add_from_memory): Use strtoulst instead of sscanf.
7074 (spu_child_wait): Mark up string for translation.
7076 2007-05-08 Paul Gilliam <pgilliam@us.ibm.com>
7077 Luis Machado <luisgpm@br.ibm.com>
7079 * rs6000-tdep.c: (LWARX_MASK, LWARX_INSTRUCTION, LDARX_INSTRUCTION,
7080 STWCX_MASK, STWCX_INSTRUCTION, STDCX_INSTRUCTION, BC_MASK,
7081 BC_INSTRUCTION): Define.
7082 (deal_with_atomic_sequence): New function.
7083 (rs6000_software_single_step): Call deal_with_atomic_sequence.
7084 (rs6000_gdbarch_init): Install deal_with_atomic_sequence as
7085 gdbarch_software_single_step routine.
7087 2007-05-07 Ulrich Weigand <uweigand@de.ibm.com>
7089 * spu-linux-nat.c (fetch_ppc_register, fetch_ppc_memory_1,
7090 store_ppc_memory_1, fetch_ppc_memory, store_ppc_memory,
7091 parse_spufs_run, spu_bfd_iovec_pread, spu_bfd_open,
7092 spu_symbol_file_add_from_memory, spu_child_post_startup_inferior,
7093 spu_child_post_attach, spu_fetch_inferior_registers,
7094 spu_store_inferior_registers, spu_xfer_partial): Store PPE-side
7095 memory addresses as ULONGEST, not CORE_ADDR.
7097 2007-05-07 Ulrich Weigand <uweigand@de.ibm.com>
7099 * gdbarch.sh: Add skip_permanent_breakpoint callback.
7100 * gdbarch.h, gdbarch.c: Regenerate.
7102 * infrun.c (SKIP_PERMANENT_BREAKPOINT): Remove default definition.
7103 (resume): Call gdbarch_skip_permanent_breakpoint instead of
7104 SKIP_PERMANENT_BREAKPOINT. Inline default case.
7106 * hppa-hpux-tdep.c (hppa_skip_permanent_breakpoint): Make static.
7107 Add REGCACHE argument. Use it instead of read/write_register.
7108 (hppa_hpux_init_abi): Install hppa_skip_permanent_breakpoint.
7110 * config/pa/tm-hppah.h: Delete file.
7111 * config/pa/hppa64.mt (DEPRECATED_TM_FILE): Set to tm-hppa.h.
7112 * config/pa/hppahpux.mt (DEPRECATED_TM_FILE): Likewise.
7114 2007-05-07 Daniel Jacobowitz <dan@codesourcery.com>
7116 * Makefile.in (c-lang.o, gnu-v3-abi.o): Update.
7117 * NEWS: Mention improved C++ thunk support.
7118 * c-lang.c (cplus_language_defn): Mention cplus_skip_trampoline.
7119 * cp-abi.c (cplus_skip_trampoline): New.
7120 * cp-abi.h (cplus_skip_trampoline): New prototype.
7121 (struct cp_abi_ops): Add skip_trampoline member.
7122 * gnu-v3-abi.c (gnuv3_skip_trampoline): New.
7123 (init_gnuv3_ops): Set skip_trampoline.
7125 2007-05-06 Daniel Jacobowitz <dan@codesourcery.com>
7127 * rs6000-tdep.c (struct frame_extra_info): Delete.
7129 2007-05-06 Daniel Jacobowitz <dan@codesourcery.com>
7131 * linux-thread-db.c: Update some FIXME comments.
7132 (thread_db_xfer_partial): Delete.
7133 (init_thread_db_ops): Do not set to_xfer_partial.
7135 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7137 * inftarg.c, infptrace.c: Remove files.
7138 * Makefile.in (ALLDEPFILES): Remove inftarg.c and infptrace.c
7139 (inftarg.o, infptrace.o): Remove rules.
7140 * gdbcore.h (register_addr): Remove prototype.
7141 * inferior.h (kill_inferior, store_inferior_registers,
7142 fetch_inferior_registers, attach, detach, ptrace_wait, child_resume,
7143 call_ptrace, pre_fork_inferior): Remove prototypes.
7144 * target.h (child_xfer_memory, child_pid_to_exec_file,
7145 child_core_file_to_sym_file, child_post_attach,
7146 child_post_startup_inferior, child_acknowledge_created_inferior,
7147 child_insert_fork_catchpoint, child_remove_fork_catchpoint,
7148 child_insert_vfork_catchpoint, child_remove_vfork_catchpoint,
7149 child_insert_exec_catchpoint, child_remove_exec_catchpoint,
7150 child_follow_fork, child_reported_exec_events_per_exec_call,
7151 child_has_exited, child_thread_alive): Remove prototypes.
7153 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7155 * sparc-nat.h (sparc_fetch_inferior_registers): Add prototype.
7156 (sparc_store_inferior_registers): Likewise.
7157 * sparc-nat.c (fetch_inferior_registers): Rename to ...
7158 (sparc_fetch_inferior_registers): ... this.
7159 (store_inferior_registers): Rename to ...
7160 (sparc_store_inferior_registers): ... this.
7161 (sparc_target): Update callback names.
7162 * sparc-linux.nat.c (_initialize_sparc_linux_nat): Likewise.
7163 * sparc64-linux.nat.c (_initialize_sparc64_linux_nat): Likewise.
7165 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7167 * linux-nat.c (child_post_attach): Rename to ...
7168 (linux_child_post_attach): ... this. Make static.
7169 (child_follow_fork): Rename to ...
7170 (linux_child_follow_fork): ... this. Make static.
7171 (child_insert_fork_catchpoint): Rename to ...
7172 (linux_child_insert_fork_catchpoint): ... this. Make static.
7173 (child_insert_vfork_catchpoint): Rename to ...
7174 (linux_child_insert_vfork_catchpoint): ... this. Make static.
7175 (child_insert_exec_catchpoint): Rename to ...
7176 (linux_child_insert_exec_catchpoint): ... this. Make static.
7177 (child_pid_to_exec_file): Rename to ...
7178 (linux_child_pid_to_exec_file): ... this. Make static.
7180 (linux_handle_extended_wait): Update call.
7181 (linux_xfer_partial): Update callback routine names.
7183 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7185 * configure.host (alpha*-*-osf[12]*): Remove support.
7186 * NEWS: Mention removed configurations.
7188 * config/alpha/alpha-osf1.mh: Delete file.
7189 * config/alpha/alpha-osf2.mh: Delete file.
7190 * config/alpha/alpha-osf3.mh (NATDEPFILES): Remove inftarg.o
7192 * config/alpha/nm-osf.h: Delete file.
7193 * config/alpha/nm-osf2.h: Delete file.
7194 * config/alpha/nm-osf3.h: Do not include "nm-osf2.h".
7195 (START_INFERIOR_TRAPS_EXPECTED): Copy from nm-osf.h.
7196 (PROCFS_DONT_TRACE_FAULTS): Copy from nm-osf2.h.
7198 * alpha-nat.c (ALPHA_UNIQUE_PTRACE_ADDR): Do not define.
7199 (register_addr, kernel_u_size): Remove.
7200 Do not check for "defined(USE_PROC_FS) || defined(HAVE_GREGSET_T)".
7202 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7204 * regcache.c (regcache_invalidate): New function.
7205 (register_cached): Remove.
7206 (set_register_cached): Remove.
7207 (deprecated_registers_fetched): Remove.
7208 (registers_changed): Use regcache_invalidate instead
7209 of set_register_cached.
7210 (regcache_raw_read): Update comment.
7212 * regcache.h (regcache_invalidate): Add prototype.
7213 (register_cached): Remove.
7214 (set_register_cached): Remove.
7215 (deprecated_registers_fetched): Remove.
7217 * findvar.c (value_of_register): Do not call register_cached.
7218 * frame.c (frame_register): Likewise.
7219 * tui/tui-regs.c (tui_get_register): Likewise.
7221 * remote.c (fetch_register_using_p): Do not call set_register_cached.
7222 (process_g_packet): Likewise.
7223 (remote_fetch_registers): Likewise.
7224 * remote-sim.c (gdbsim_fetch_register): Likewise.
7225 * mt-tdep.c (mt_select_coprocessor): Replace set_register_cached call
7226 by regcache_invalidate.
7227 (mt_pseudo_register_write): Likewise.
7228 * sh-tdep.c (sh_pseudo_register_write): Likewise.
7230 * corelow.c (get_core_registers): Replace deprecated_registers_fetched
7231 call by loop over regcache_raw_supply (..., NULL).
7233 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7235 * target.h (struct target_ops): Add REGCACHE parameter to
7236 to_prepare_to_store.
7237 (target_prepare_to_store): Likewise.
7238 * target.c (debug_to_prepare_to_store): Add REGCACHE parameter.
7239 (update_current_target): Adapt prepare_to_store de_fault rule.
7241 * regcache.c (regcache_raw_write): Pass regcache to
7242 target_prepare_to_store.
7244 * inftarg.c (child_prepare_to_store): Add REGCACHE parameter.
7245 Do not call CHILD_PREPARE_TO_STORE.
7246 * gnu-nat.c (gnu_prepare_to_store): Likewise.
7247 * procfs.c (procfs_prepare_to_store): Likewise.
7249 * inf-child.c (inf_child_prepare_to_store): Add REGCACHE parameter.
7250 * go32-nat.c (go32_prepare_to_store): Likewise.
7251 * monitor.c (monitor_prepare_to_store): Likewise.
7252 * nto-procfs.c (procfs_prepare_to_store): Likewise.
7253 * remote-m32r-sdi.c (m32r_prepare_to_store): Likewise.
7254 * remote-mips.c (mips_prepare_to_store): Likewise.
7255 * remote-sim.c (gdbsim_prepare_to_store): Likewise.
7256 * win32-nat.c (win32_prepare_to_store): Likewise.
7258 * remote.c (remote_prepare_to_store): Add REGCACHE parameter.
7259 Use it instead of current_regcache.
7261 * hpux-thread.c (hpux_thread_prepare_to_store): Add REGCACHE
7262 parameter. Pass it on to next target.
7263 * sol-thread.c (sol_thread_prepare_to_store): Likewise.
7265 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7267 * target.h (struct regcache): Add forward declaration.
7268 (struct target_ops): Add REGCACHE parameter to to_fetch_registers
7269 and to_store_registers target operations.
7270 (target_fetch_registers, target_store_registers): Update.
7272 * regcache.c (regcache_raw_read): Replace register_cached by
7273 regcache_valid_p. Pass regcache to target_fetch_registers.
7274 (regcache_raw_write): Pass regcache to target_store_registers.
7276 * arm-linux-nat.c (store_fpregister, store_fpregs, store_register,
7277 store_regs, store_wmmx_regs): Replace register_cached by
7280 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd): Pass current_regcache
7281 to target_fetch_registers calls.
7282 * corelow.c (core_open): Likewise.
7283 * linux-nat.c (linux_nat_corefile_thread_callback): Likewise.
7284 * proc-service.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
7285 ps_lsetfpregs): Likewise.
7286 * sol-thread.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
7287 ps_lsetfpregs): Likewise.
7288 * win32-nat.c (win32_resume): Likewise.
7289 * ia64-tdep.c (ia64_store_return_value): Pass current_regcache
7290 to target_store_registers call.
7291 * rs6000-tdep.c (rs6000_push_dummy_call): Likewise.
7293 * inferior.h (store_inferior_registers): Update prototype.
7294 (fetch_inferior_registers): Likewise.
7295 * gnu-nat.c (gnu_store_registers, gnu_fetch_registers): Likewise.
7296 * mips-linux-nat.c (super_fetch_registers, super_store_registers):
7297 Update function pointer signatures.
7299 * aix-thread.c (aix_thread_fetch_registers): Add REGCACHE parameter,
7300 use it instead of current_regcache, update calls.
7301 (aix_thread_store_registers): Likewise.
7302 * alphabsd-nat.c (alphabsd_fetch_inferior_registers): Likewise.
7303 (alphabsd_store_inferior_registers): Likewise.
7304 * amd64bsd-nat.c (amd64bsd_fetch_inferior_registers): Likewise.
7305 (amd64bsd_store_inferior_registers): Likewise.
7306 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers): Likewise.
7307 (amd64_linux_store_inferior_registers): Likewise.
7308 * arm-linux-nat.c (fetch_fpregister, fetch_fpregs, store_fpregister,
7309 store_fpregs, fetch_register, fetch_regs, store_register, store_regs,
7310 fetch_wmmx_regs, store_wmmx_regs): Likewise.
7311 (arm_linux_fetch_inferior_registers): Likewise.
7312 (arm_linux_store_inferior_registers): Likewise.
7313 * armnbsd-nat.c (fetch_register, fetch_regs, fetch_fp_register,
7314 fetch_fp_regs, armnbsd_fetch_registers): Likewise.
7315 (store_register, store_regs, store_fp_register, store_fp_regs,
7316 armnbsd_store_registers): Likewise.
7317 * bsd-kvm.c (bsd_kvm_fetch_pcb, bsd_kvm_fetch_registers): Likewise.
7318 * bsd-uthread.c (bsd_uthread_fetch_registers): Likewise.
7319 (bsd_uthread_store_registers): Likewise.
7320 * corelow.c (get_core_registers): Likewise.
7321 * go32-nat.c (fetch_register, go32_fetch_registers, store_register,
7322 go32_store_registers): Likewise.
7323 * hppabsd-nat.c (hppabsd_fetch_registers): Likewise.
7324 (hppabsd_store_registers): Likewise.
7325 * hppa-hpux-nat.c (hppa_hpux_fetch_register): Likewise.
7326 (hppa_hpux_fetch_inferior_registers): Likewise.
7327 (hppa_hpux_store_register): Likewise.
7328 (hppa_hpux_store_inferior_registers): Likewise.
7329 * hppa-linux-nat.c (fetch_register, store_register): Likewise.
7330 (hppa_linux_fetch_inferior_registers): Likewise.
7331 (hppa_linux_store_inferior_registers): Likewise.
7332 * hpux-thread.c (hpux_thread_fetch_registers): Likewise.
7333 (hpux_thread_store_registers): Likewise.
7334 * i386bsd-nat.c (i386bsd_fetch_inferior_registers): Likewise.
7335 (i386bsd_store_inferior_registers): Likewise.
7336 * i386gnu-nat.c (fetch_fpregs, gnu_fetch_registers, store_fpregs,
7337 gnu_store_registers): Likewise.
7338 * i386-linux-nat.c (fetch_register, store_register, fetch_regs,
7339 store_regs, fetch_fpregs, store_fpregs, fetch_fpxregs, store_fpxregs):
7341 (i386_linux_fetch_inferior_registers): Likewise.
7342 (i386_linux_store_inferior_registers): Likewise.
7343 * ia64-linux-nat.c (ia64_linux_fetch_register): Likewise.
7344 (ia64_linux_fetch_registers): Likewise.
7345 (ia64_linux_store_register): Likewise.
7346 (ia64_linux_store_registers): Likewise.
7347 * inf-child.c (inf_child_fetch_inferior_registers): Likewise.
7348 (inf_child_store_inferior_registers): Likewise.
7349 * inf-ptrace.c (inf_ptrace_fetch_register): Likewise.
7350 (inf_ptrace_fetch_registers): Likewise.
7351 (inf_ptrace_store_register): Likewise.
7352 (inf_ptrace_store_registers): Likewise.
7353 * infptrace.c (fetch_register, store_register): Likewise.
7354 (fetch_inferior_registers, store_inferior_registers): Likewise.
7355 * m32r-linux-nat.c (fetch_regs, store_regs): Likewise.
7356 (m32r_linux_fetch_inferior_registers): Likewise.
7357 (m32r_linux_store_inferior_registers): Likewise.
7358 * m68kbsd-nat.c (m68kbsd_fetch_inferior_registers): Likewise.
7359 (m68kbsd_store_inferior_registers): Likewise.
7360 * m68klinux-nat.c (fetch_register, old_fetch_inferior_registers,
7361 store_register, old_store_inferior_registers, fetch_regs, store_regs,
7362 fetch_fpregs, store_fpregs): Likewise.
7363 (m68k_linux_fetch_inferior_registers): Likewise.
7364 (m68k_linux_store_inferior_registers): Likewise.
7365 * m88kbsd-nat.c (m88kbsd_fetch_inferior_registers): Likewise.
7366 (m88kbsd_store_inferior_registers): Likewise.
7367 * mips64obsd-nat.c (mips64obsd_fetch_inferior_registers): Likewise.
7368 (mips64obsd_store_inferior_registers): Likewise.
7369 * mips-linux-nat.c (mips64_linux_regsets_fetch_registers): Likewise.
7370 (mips64_linux_regsets_store_registers): Likewise.
7371 (mips64_linux_fetch_registers): Likewise.
7372 (mips64_linux_store_registers): Likewise.
7373 * mipsnbsd-nat.c (mipsnbsd_fetch_inferior_registers): Likewise.
7374 (mipsnbsd_store_inferior_registers): Likewise.
7375 * monitor.c (monitor_fetch_register, monitor_store_register): Likewise.
7376 (monitor_fetch_registers, monitor_store_registers): Likewise.
7377 * nto-procfs.c (procfs_fetch_registers): Likewise.
7378 (procfs_store_registers): Likewise.
7379 * ppc-linux-nat.c (fetch_altivec_register, fetch_spe_register,
7380 fetch_register, supply_vrregset, fetch_altivec_registers,
7381 fetch_ppc_registers, ppc_linux_fetch_inferior_registers): Likewise.
7382 (store_altivec_register, store_spe_register, store_register,
7383 fill_vrregset, store_altivec_registers, store_ppc_registers,
7384 ppc_linux_store_inferior_registers): Likewise.
7385 * ppcnbsd-nat.c (ppcnbsd_fetch_inferior_registers): Likewise.
7386 (ppcnbsd_store_inferior_registers): Likewise.
7387 * ppcobsd-nat.c (ppcobsd_fetch_registers): Likewise.
7388 (ppcobsd_store_registers): Likewise.
7389 * procfs.c (procfs_fetch_registers, procfs_store_registers): Likewise.
7390 * remote.c (fetch_register_using_p, process_g_packet,
7391 fetch_registers_using_g, remote_fetch_registers): Likewise.
7392 (store_register_using_P, store_registers_using_G,
7393 remote_store_registers): Likewise.
7394 * remote-m32r-sdi.c (m32r_fetch_registers, m32r_fetch_register,
7395 m32r_store_register, m32r_store_register): Likewise.
7396 * remote-mips.c (mips_fetch_registers, mips_store_registers): Likewise.
7397 * remote-sim.c (gdbsim_fetch_register): Likewise.
7398 (gdbsim_store_register): Likewise.
7399 * rs6000-nat.c (fetch_register, store_register): Likewise.
7400 (rs6000_fetch_inferior_registers): Likewise.
7401 (rs6000_store_inferior_registers): Likewise.
7402 * s390-nat.c (fetch_regs, store_regs): Likewise.
7403 (fetch_fpregs, store_fpregs): Likewise.
7404 (s390_linux_fetch_inferior_registers): Likewise.
7405 (s390_linux_store_inferior_registers): Likewise.
7406 * shnbsd-nat.c (shnbsd_fetch_inferior_registers): Likewise.
7407 (shnbsd_store_inferior_registers): Likewise.
7408 * sol-thread.c (sol_thread_fetch_registers): Likewise.
7409 (sol_thread_store_registers): Likewise.
7410 * sparc-nat.c (fetch_inferior_registers): Likewise.
7411 (store_inferior_registers): Likewise.
7412 * spu-linux-nat.c (spu_fetch_inferior_registers): Likewise.
7413 (spu_store_inferior_registers): Likewise.
7414 * target.c (debug_print_register): Likewise.
7415 (debug_to_fetch_registers, debug_to_store_registers): Likewise.
7416 * vaxbsd-nat.c (vaxbsd_fetch_inferior_registers): Likewise.
7417 (vaxbsd_store_inferior_registers): Likewise.
7418 * win32-nat.c (do_win32_fetch_inferior_registers): Likewise.
7419 (win32_fetch_inferior_registers): Likewise.
7420 (win32_store_inferior_registers): Likewise.
7422 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7424 * gdbcore.h (struct regcache): Add forward declaration.
7425 (struct core_fns): Add REGCACHE argument to core_read_registers
7427 * corelow.c (get_core_register_section): Add REGCACHE argument,
7428 use it instead of current_regcache, pass it to core_read_registers
7430 (get_core_registers): Add current_regcache as parameter to
7431 get_core_register_section calls.
7433 * alpha-nat.c (fetch_osf_core_registers): Add REGCACHE argument,
7434 use it instead of current_regcache.
7435 * armnbsd-nat.c (fetch_core_registers): Likewise.
7436 (fetch_elfcore_registers): Likewise.
7437 * core-regset.c (fetch_core_registers): Likewise.
7438 * cris-tdep.c (fetch_core_registers): Likewise.
7439 * irix5-nat.c (fetch_core_registers): Likewise.
7440 * m68klinux-nat.c (fetch_core_registers): Likewise.
7441 * mips-linux-tdep.c (fetch_core_registers): Likewise.
7442 * win32-nat.c (fetch_elf_core_registers): Likewise.
7444 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7446 * gregset.h (struct regcache): Add forward declaration.
7447 (supply_gregset): Add REGCACHE parameter, make GREGS const.
7448 (supply_fpregset): Add REGCACHE parameter, make FPREGS const.
7449 (supply_fpxregset): Add REGCACHE parameter, make FPXREGS const.
7450 (fill_gregset): Add REGCACHE parameter.
7451 (fill_fpregset): Likewise.
7452 (fill_fpxregset): Likewise.
7454 Update all definitions accordingly:
7455 * alphabsd-nat.c, alpha-linux-nat.c, alpha-nat.c, amd64-linux-nat.c,
7456 arm-linux-nat.c, hppa-linux-nat.c, i386gnu-nat.c, i386-linux-nat.c,
7457 i386-sol2-nat.c, i386v4-nat.c, ia64-linux-nat.c, irix5-nat.c,
7458 m32r-linux-nat.c, m68klinux-nat.c, mips-linux-nat.c, ppc-linux-nat.c,
7459 s390-nat.c, sparc64-linux-nat.c, sparc-linux-nat.c, sparc-sol2-nat.c
7460 (supply_gregset): Add REGCACHE parameter, use it instead of
7461 current_regcache. Make GREGSETP parameter const, adapt casts.
7462 (supply_fpregset): Add REGCACHE parameter, use it instead of
7463 current_regcache. Make FPREGSETP parameter const, adapt casts.
7464 (fill_gregset): Add REGCACHE parameter, use it instead of
7466 (fill_fpregset): Likewise.
7468 Update all callers to pass in current_regcache as the new argument:
7469 * core-regset.c: Include "regcache.h".
7470 (fetch_core_registers): Update supply_gregset,and supply_fpregset calls.
7471 * procfs.c: Include "regcache.h".
7472 (procfs_fetch_registers): Update supply_gregset, supply_fpregset calls.
7473 (procfs_store_registers): Update fill_gregset, fill_fpregset calls.
7474 (procfs_do_thread_registers): Likewise.
7475 (procfs_make_note_section): Likewise.
7476 * proc-service.c: Include "regcache.h".
7477 (ps_lgetregs): Update fill_gregset call.
7478 (ps_lsetregs): Update supply_gregset call.
7479 (ps_lgetfpregs): Update fill_fpregset call.
7480 (ps_lsetfpregs): Update supply_fpregset call.
7481 * sol-thread.c (sol_thread_fetch_registers): Update supply_gregset,
7482 supply_fpregset calls.
7483 (sol_thread_store_registers): Update fill_gregset, fill_fpregset calls.
7484 (ps_lgetregs): Update fill_gregset call.
7485 (ps_lsetregs): Update supply_gregset call.
7486 (ps_lgetfpregs): Update fill_fpregset call.
7487 (ps_lsetfpregs): Update supply_fpregset call.
7489 * linux-nat.c (linux_nat_do_thread_registers): Update fill_gregset,
7490 fill_fpregset, and fill_fpxregset calls.
7491 * i386-linux-nat.c (fetch_regs): Update supply_gregset call.
7492 (store_regs): Update fill_gregset call.
7493 (fetch_fpregs): Update supply_fpregset call.
7494 (store_fpregs): Update fill_fpregset call.
7495 (fetch_fpxregs): Update supply_fpxregset call.
7496 (store_fpxregs): Update fill_fpxregset call.
7497 * m32r-linux-nat.c (fetch_regs): Update supply_gregset call.
7498 (store_regs): Update fill_gregset call.
7499 * m68klinux-nat.c (fetch_regs): Update supply_gregset call.
7500 (store_regs): Update fill_gregset call.
7501 (fetch_fpregs): Update supply_fpregset call.
7502 (store_fpregs): Update fill_fpregset call.
7503 (fetch_core_registers): Update supply_gregset, supply_fpregset calls.
7504 * s390-nat.c (fetch_regs): Update supply_gregset call.
7505 (store_regs): Update fill_gregset call.
7506 (fetch_fpregs): Update supply_fpregset call.
7507 (store_fpregs): Update fill_fpregset call.
7509 * Makefile.in (core-regset.o, procfs.o, proc-service.o): Update
7512 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7514 * monitor.c (monitor_supply_register): Add REGCACHE parameter, use
7515 it instead of current_regcache.
7516 (parse_register_dump): Add REGCACHE parameter, pass it to
7517 supply_register callback.
7518 (monitor_dump_reg_block): Add REGCACHE parameter, pass it to
7519 parse_register_dump.
7520 (monitor_dump_regs): Add REGCACHE parameter, pass it to
7521 parse_register_dump and dumpregs callback.
7522 (monitor_wait): Pass current_regcache to parse_register_dump and
7524 (monitor_fetch_register): Pass current_regcache to
7525 monitor_supply_register.
7526 (monitor_fetch_registers): Pass current_regcache to
7528 * monitor.h (struct monitor_ops): Add REGCACHE parameter to
7529 supply_register and dumpregs callbacks.
7530 (monitor_supply_register, monitor_dump_reg_block): Update
7532 * dbug-rom.c (dbug_supply_register): Add REGCACHE parameter. Pass
7533 it to monitor_supply_register.
7534 * dink32-rom.c (dink32_supply_register): Likewise.
7535 * ppcbug-rom.c (ppcbug_supply_register): Likewise.
7536 * m32r-rom.c (m32r_supply_register): Likewise. Also, use REGCACHE
7537 instead of current_regcache.
7539 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7541 * i386-nto-tdep.c (i386nto_supply_gregset, i386nto_supply_fpregset):
7542 Add REGCACHE parameter. Use it instead of current_regcache.
7543 (i386nto_supply_regset): Add REGCACHE parameter, pass it to
7544 i386nto_supply_gregset and i386nto_supply_fpregset.
7545 (i386nto_regset_fill): Add REGCACHE parameter; use it instead
7546 of current_regcache.
7548 * nto-procfs.c (procfs_fetch_registers): Pass current_regcache to
7549 nto_supply_ helper functions.
7550 (procfs_store_registers): Pass current_regcache to nto_regset_fill.
7552 * nto-tdep.c (nto_dummy_supply_regset): Add REGCACHE parameter.
7554 * nto-tdep.h (struct nto_target_ops): Add REGCACHE parameter to
7555 supply_greget, supply_fpregset, supply_altregset, supply_regset,
7556 and regset_fill member function pointers.
7557 (nto_dummy_supply_regset): Adapt prototype.
7559 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7561 * shnbsd-tdep.c (shnbsd_supply_reg): Add REGCACHE parameter, use it
7562 instead of current_regcache. Make REGS const.
7563 (shnbsd_fill_reg): Add REGCACHE parameter; replace current_regcache.
7564 * shnbsd-tdep.h (shnbsd_supply_reg, shnbsd_fill_reg): Update
7566 * shnbsd-nat.c: Include "regcache.h".
7567 (shnbsd_fetch_inferior_registers): Pass current_regcache to
7569 (shnbsd_store_inferior_registers): Pass current_regcache to
7571 * Makefile.in (shbsd-nat.o): Update dependencies.
7573 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7575 * mips-linux-tdep.c (supply_32bit_reg): Add REGCACHE parameter. Use it
7576 instead of current_regcache.
7577 (mips_supply_gregset): Likewise. Pass REGCACHE to supply_32bit_reg.
7578 Make GREGSETP const, remove superfluous casts.
7579 (mips_fill_gregset): Add REGCACHE parameter; replace current_regcache.
7580 (mips_supply_fpregset): Likewise. Make FPREGSETP const, remove
7582 (mips_fill_fpregset): Add REGCACHE parameter; replace current_regcache.
7583 (supply_64bit_reg): Likewise
7584 (mips64_supply_gregset): Likewise. Pass REGCACHE to supply_64bit_reg.
7585 Make GREGSETP const, adapt casts accordingly.
7586 (mips64_fill_gregset): Add REGCACHE parameter; replace current_regcache.
7587 (mips64_supply_fpregset): Likewise. Make FPREGSET const, adapt
7589 (mips64_fill_fpregset): Add REGCACHE parameter; replace current_regcache.
7590 (fetch_core_registers): Pass current_regcache to mips{64}_(supply|fill)_
7592 * mips-linux-tdep.h (mips_supply_gregset, mips_fill_gregset,
7593 mips_supply_fpregset, mips_fill_fpregset, mips64_supply_gregset,
7594 mips64_fill_gregset, mips64_supply_fpregset, mips64_fill_fpregset):
7596 * mips-linux-nat.c: Include "regcache.h".
7597 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): Pass
7598 current_regcache to mips{64}_(supply|fill)_ helper routines.
7599 (mips64_linux_regsets_fetch_registers): Likewise.
7600 (mips64_linux_regsets_store_registers): Likewise.
7602 * mipsnbsd-tdep.c (mipsnbsd_supply_reg, mipsnbsd_supply_fpreg): Add
7603 REGCACHE argument; replace current_regcache. Make REGS const.
7604 (mipsnbds_fill_reg, mipsnbsd_fill_fpreg): Add REGCACHE argument;
7605 replace current_regcache.
7606 * mipsnbsd-tdep.h (ipsnbsd_supply_reg, mipsnbsd_supply_fpreg,
7607 mipsnbds_fill_reg, mipsnbsd_fill_fpreg): Adapt prototypes.
7608 * mipsnbsd-nat.c (mipsnbsd_fetch_inferior_registers,
7609 mipsnbsd_store_inferior_registers): Pass current_regcache to
7610 mipsnbsd_(supply|fill)_... helper routines.
7612 * Makefile.in (mips-linux-nat.o): Update dependencies.
7614 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7616 * i387-tdep.c (i387_fill_fsave, i387_fill_fxsave): Remove.
7617 * i387-tdep.h (i387_fill_fsave, i387_fill_fxsave): Remove prototypes.
7618 * i368-linux-nat.c (supply_fpregset, supply_fpxregset): Replace
7619 i387_fill_fsave and i387_fill_fxsave calls by inline copies.
7620 * i386-nto-tdep.c (i386nto_regset_fill): Likewise.
7621 * i386gnu-nat.c (store_fpregs): Likewise.
7622 * i386v4-nat.c (fill_fpregset): Likewise.
7623 * go32-nat.c (store_register, go32_store_registers): Likewise.
7625 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7627 * cris-tdep.c (supply_gregset): Rename to ...
7628 (cris_supply_gregset): ... this. Add REGCACHE parameter. Use it
7629 instead of current_regcache.
7630 (fetch_core_registers): Update call. Pass current_regcache.
7632 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7634 * arnmnbsd-nat.c (supply_gregset): Rename to ...
7635 (arm_supply_gregset): ... this. Add REGCACHE parameter.
7636 Use it instead of current_regcache.
7637 (supply_fparegset): Rename to ...
7638 (arm_supply_fparegset): ... this. Add REGCACHE parameter.
7639 Use it instead of current_regcache.
7640 (fetch_regs, fetch_fp_regs): Update calls. Pass current_regcache.
7641 (fetch_core_registers, fetch_elfcore_registers): Likewise.
7643 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7645 * alpha-tdep.c (alpha_supply_int_regs, alpha_fill_int_regs,
7646 alpha_supply_fp_regs, alpha_fill_fp_regs): Add REGCACHE parameter,
7647 use it instead of current_regcache.
7648 * alpha-tdep.h (struct regcache): Add forward declaration.
7649 (alpha_supply_int_regs, alpha_fill_int_regs, alpha_supply_fp_regs,
7650 alpha_fill_fp_regs): Update prototypes.
7652 * alpha-nat.c: (supply_gregset, fill_gregset, supply_fpregset,
7653 fill_fpregset): Pass current_regcache to alpha_supply/fill_ routines.
7654 * alpha-linux-nat.c: Include "regcache.h".
7655 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): Pass
7656 current_regcache to alpha_supply/fill_ routines.
7658 * alphabsd-tdep.c: Include "regcache.h".
7659 (alphabsd_supply_reg, alphabsd_supply_fpreg): Add REGCACHE paramter,
7660 pass it to alpha_supply_ routines. Make REGS const.
7661 (alphabsd_fill_reg, alphabsd_fill_fpreg): Add REGCACHE parameter,
7662 pass it to alpha_fill_ routines.
7663 * alphabsd-tdep.h (struct regcache): Add forward declaration.
7664 (alphabsd_supply_reg, alphabsd_fill_reg, alphabsd_supply_fpreg,
7665 alphabsd_fill_fpreg): Update prototypes.
7667 * alphanbsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
7668 fill_fpregset, alphabsd_fetch_inferior_registers,
7669 alphabsd_store_inferior_registers): Pass current_regcache to
7670 alphabsd_supply/fill_ routines.
7672 * Makefile.in (alpha-linux-nat.o, alphabsd-tdep.o): Update
7675 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7677 * aix-thread.c (supply_gprs64, supply_reg32, supply_fprs,
7678 supply_sprs64, supply_sprs32): Add REGCACHE parameter, use it
7679 instead of current_regcache.
7680 (fetch_regs_user_thread, fetch_regs_kernel_thread): Add
7681 REGCACHE parameter, pass it to supply_ routines.
7682 (aix_thread_fetch_registers): Pass current_regcache to
7683 fetch_regs_user_thread and fetch_regs_kernel_thread.
7685 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs64, fill_sprs32):
7686 Add REGCACHE parameter, use it instead of current_regcache.
7687 Call regcache_valid_p instead of register_cached.
7688 (store_regs_user_thread, store_regs_kernel_thread): Likewise.
7689 Also, pass REGCACHE to fill_ routines.
7690 (aix_thread_store_registers): Pass current_regcache to
7691 store_regs_user_thread and store_regs_kernel_thread.
7693 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7695 * m32r-linux-nat.c (supply_gregset): Do not modify contents
7696 pointed to by GREGSETP.
7698 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7700 * irix5-nat.c (fill_gregset): Use regcache_raw_collect instead
7701 of regcache_raw_read_signed.
7702 (fill_fpregset): Use regcache_raw_collect instead of
7705 2007-05-03 Kevin Buettner <kevinb@redhat.com>
7707 * mips-tdep.c (mips_eabi_push_dummy_call): When pushing floating
7708 point arguments, test explicitly for use of the EABI32 ABI
7709 instead of inferring this condition from tests on register
7712 2007-05-03 Kevin Buettner <kevinb@redhat.com>
7714 * breakpoint.c (set_raw_breakpoint): Adjust breakpoint's address
7715 prior to allocating its location.
7717 2007-05-02 Maciej W. Rozycki <macro@mips.com>
7719 * mips-tdep.c (mips_o32_push_dummy_call): Remove conditions
7720 based on mips_abi_regsize() whose result is known in advance.
7721 (mips_o64_push_dummy_call): Likewise.
7723 2007-04-29 Ulrich Weigand <uweigand@de.ibm.com>
7725 * m68klinux-nat.c: Remove #ifndef USE_PROC_FS check.
7726 * m68k-tdep.c: Remove code within #ifdef USE_PROC_FS.
7728 * mips-linux-nat.c: Include "gregset.h".
7729 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): Move
7730 from mips-linux-tdep.c. Change parameter type to gdb_gregset_t.
7731 * mips-linux-tdep.c (supply_gregset, fill_gregset, supply_fpregset,
7732 fill_fpregset): Move to mips-linux-nat.c.
7734 * Makefile.in (m68k-tdep.o, mips-linux-nat.o): Update dependencies.
7736 2007-04-28 Ulrich Weigand <uweigand@de.ibm.com>
7738 * regcache.c (deprecated_read_register_gen): Remove, inline ...
7739 (read_register): ... here.
7740 (deprecated_write_register_gen): Remove, inline ...
7741 (write_register): ... here.
7742 * regcache.h (deprecated_read_register_gen): Remove prototype.
7743 (deprecated_write_register_gen): Likewise.
7745 * remote-sim.c (gdbsim_store_register): Replace call to
7746 deprecated_read_register_gen with regcache_cooked_read.
7747 * target.c (debug_print_register): Replace calls to
7748 deprecated_read_register_gen and read_register with
7749 regcache_cooked_read.
7751 2007-04-28 Ulrich Weigand <uweigand@de.ibm.com>
7753 * hpux-thread.c (hpux_thread_store_registers): Use
7754 regcache_raw_collect, not regcache_raw_read.
7755 * irix5-nat.c (fetch_core_registers): Use regcache_raw_supply,
7756 not regcache_raw_write.
7758 2007-04-28 Ulrich Weigand <uweigand@de.ibm.com>
7760 * gdbarch.sh: Remove deprecated_register_byte.
7761 * gdbarch.c, gdbarch.h: Regenerate.
7762 * arch-utils.h (generic_register_size, generic_register_byte): Remove.
7763 * arch-utils.c (generic_register_size, generic_register_byte): Remove.
7765 * regcache.h (regcache_valid_p): Make REGCACHE parameter const.
7766 * regcache.c (regcache_valid_p): Allow to query cooked registers in
7767 read-only register caches. Make REGCACHE parameter const.
7768 (regcache_dump): Do not check DEPRECATED_REGISTER_BYTE.
7770 * mi/mi-main.c (old_regs): Remove.
7771 (mi_setup_architecture_data, _initialize_mi_main): Remove.
7772 (register_changed_p): Reimplement to compare two register caches.
7773 (mi_cmd_data_list_changed_registers): Update caller.
7774 * mi/mi-main.h (mi_setup_architecture_data): Remove.
7775 * mi/mi-interp.c (mi_interpreter_init): Do not call
7776 mi_setup_architecture_data.
7778 2007-04-28 Ulrich Weigand <uweigand@de.ibm.com>
7780 * alpha-nat.c (ALPHA_REGSET_BASE, ALPHA_REGSET_UNIQUE): Do not define,
7781 inline definition at the places the macros are used.
7782 * alpha-linux-nat.c (ALPHA_REGSET_BASE, ALPHA_REGSET_UNIQUE): Likewise.
7784 2007-04-28 Ulrich Weigand <uweigand@de.ibm.com>
7786 * rs6000-aix-tdep.c: Include "regcache.h", "regset.h", and
7788 (rs6000_aix32_reg_offsets, rs6000_aix64_reg_offsets): New variables.
7789 (rs6000_aix_supply_regset, rs6000_aix_collect_regset): New functions.
7790 (rs6000_aix32_regset, rs6000_aix64_regset): New variables.
7791 (rs6000_aix_regset_from_core_section): New function.
7792 (rs6000_aix_init_osabi): Register it.
7793 (_initialize_rs6000_aix_tdep): Register GDB_OSABI_AIX osabi and
7794 sniffer for bfd_arch_powerpc as well as bfd_arch_rs6000.
7795 * rs6000-nat.c (CoreRegs): Do not define type.
7796 (fetch_core_registers, rs6000_core_fns): Remove.
7797 (_initialize_core_rs6000): Do not register it. Rename to ...
7798 (_initialize_rs6000_nat): ... this.
7799 * Makefile.in (rs6000-aix-tdep.o): Update dependencies.
7801 2007-04-27 Kevin Buettner <kevinb@redhat.com>
7803 * dwarf2expr.c (unsigned_address_type): Add forward declaration.
7804 (dwarf2_read_address): Sign extend return address as required by
7805 target architecture.
7807 2007-04-27 Kevin Buettner <kevinb@redhat.com>
7809 * solib-frv.c (lm_base): Bail out if the main executable has
7812 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
7814 * alpha-linux-tdep.c (alpha_linux_supply_fpregset): Correct location
7815 of FPCR register in fpregset.
7817 2007-04-27 Maciej W. Rozycki <macro@mips.com>
7819 * Makefile.in (gdbtk-wrapper.o): Update dependencies.
7820 (gdbtk-varobj.o, gdbtk-cmds.o, gdbtk-stack.o): Likewise.
7822 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
7824 * config/rs6000/nm-rs6000.h (CHILD_SPECIAL_WAITSTATUS): Remove.
7825 * rs6000-nat.c (rs6000_wait): New function.
7826 (_initialize_core_rs6000): Install it as to_wait target method.
7827 * target.c (store_waitstatus): Don't check CHILD_SPECIAL_WAITSTATUS.
7829 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
7831 * config/rs6000/nm-rs6000.h (TARGET_CREATE_INFERIOR_HOOK): Remove.
7832 * fork-child.c (fork_inferior): Don't call TARGET_CREATE_INFERIOR_HOOK.
7833 * rs6000-nat.c (super_create_inferior): New variable.
7834 (rs6000_create_inferior): Make static. Adapt argument list. Call
7835 original version of create_inferior via super_create_inferior.
7836 (_initialize_core_rs6000): Install to_create_inferior target method.
7838 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
7840 * aix-thread.c (aix_thread_xfer_memory): Replace by ...
7841 (aix_thread_xfer_partial): ... this.
7842 (init_aix_thread_ops): Install to_xfer_partial instead
7843 of deprecated_xfer_memory target method.
7845 * config/powerpc/aix.mh (NATDEPFILES): Remove infptrace.o
7846 and inftarg.o, add inf-ptrace.o.
7847 * config/rs6000/nm-rs6000.h (FETCH_INFERIOR_REGISTERS,
7848 CHILD_XFER_MEMORY, KERNEL_U_SIZE, kernel_u_size): Remove.
7849 * rs6000-nat.c: Include "inf-ptrace.h" and "gdb_stdint.h".
7850 (fetch_inferior_registers): Rename to ...
7851 (rs6000_fetch_inferior_registers): ... this. Make static.
7852 (store_inferior_registers): Rename to ...
7853 (rs6000_store_inferior_registers): ... this. Make static.
7854 (read_word, child_xfer_memory): Remove.
7855 (rs6000_xfer_partial): New function.
7856 (kernel_u_size): Remove.
7857 (_initialize_core_rs6000): Add inf_ptrace-based target.
7858 * Makefile.in (rs6000-nat.o): Update dependencies.
7860 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
7862 * inf-ptrace.c: Include "gdb_stdint.h".
7863 (inf_ptrace_xfer_partial): Use "uintptr_t" instead of "long" as
7864 intermediate type when casting CORE_ADDR to PTRACE_TYPE_ARG3.
7865 (inf_ptrace_fetch_register): Add intermediate cast to "uintptr_t"
7866 before casting CORE_ADDR to PTRACE_TYPE_ARG3.
7867 (inf_ptrace_store_register): Likewise.
7868 * Makefile.in (inf-ptrace.o): Update dependencies.
7870 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
7872 * configure.host (rs6000-*-*): Merge with powerpc-*-aix* rules.
7873 * configure.tgt (rs6000-*-*): Likewise.
7874 * config/rs6000/aix4.mh: Delete file.
7875 * config/rs6000/aix4.mt: Delete file.
7876 * config/rs6000/rs6000.mh: Delete file.
7877 * config/rs6000/rs6000.mt: Delete file.
7879 * config/powerpc/nm-aix.h: Delete file.
7880 * config/powerpc/aix.mh (NAT_FILE): Set to config/rs6000/nm-rs6000.h.
7882 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
7884 * aix-thread.c (fill_sprs32): Change argument types to "uint32_t *".
7885 Remove obsolete part of comment.
7886 (store_regs_user_thread): Use uint32_t temporaries when calling
7888 (store_regs_kernel_thread): Likewise. Add assertion to verify
7889 correct size of struct ptsprs members.
7890 (aix_thread_xfer_memory): Fix type of myaddr.
7891 (aix_thread_extra_thread_info): Fix compiler warning.
7892 * rs6000-nat.c (rs6000_ptrace64): Change type of buf to "void *".
7893 (fetch_register, store_register): Adapt callers.
7895 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
7897 * vec.h (vec_free): Rename to vec_free_. Adapt users.
7899 2007-04-25 Ulrich Weigand <uweigand@de.ibm.com>
7901 * alpha-linux-tdep.c: Include "gdb_string.h", "regset.h",
7903 (alpha_linux_supply_gregset, alpha_linux_supply_fpregset): New.
7904 (alpha_linux_gregset, alpha_linux_fpregset): New variables.
7905 (alpha_linux_regset_from_core_section): New function.
7906 (alpha_linux_init_abi): Install it.
7907 * alpha-linux-nat.c: Do not include "gdbcore.h". Include
7908 "alpha-tdep.h", <sys/ptrace.h>, <alpha/ptrace.h>,
7909 <sys/procfs.h>, and "gregset.h".
7910 (ALPHA_REGSET_BASE, ALPHA_REGSET_UNIQUE, ALPHA_UNIQUE_PTRACE_ADDR):
7911 Move from config/alpha/nm-linux.h.
7912 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): Copy
7914 (alpha_linux_register_u_offset): Inline register_addr from alpha-nat.c.
7915 * alpha-nat.c: Remove #ifdef __linux__ section.
7916 (fetch_elf_core_registers, alpha_elf_core_fns): Remove.
7917 (_initialize_core_alpha): Do not register alpha_elf_core_fns.
7918 (ALPHA_UNIQUE_PTRACE_ADDR, ALPHA_REGSET_UNIQUE): Define unconditionally.
7919 (ALPHA_REGSET_BASE): Move from config/alpha/nm-osf.h.
7920 * config/alpha/alpha-linux.mh (NAT_FILE): Set to config/nm-linux.h.
7921 (NATDEPFILES): Remove alpha-nat.o.
7922 * config/alpha/nm-linux.h: Delete file.
7923 * config/alpha/nm-osf.h (ALPHA_REGSET_BASE): Move to alpha-nat.c.
7924 * Makefile.in (alpha-linux-nat.o): Update dependencies.
7925 (alpha-linux-tdep.o): Likewise.
7927 2007-04-25 Ulrich Weigand <uweigand@de.ibm.com>
7929 * mips-linux-nat.c: No longer include "gdbcore.h".
7930 (mips_linux_register_addr): Move from mips-linux-tdep.c.
7931 (mips64_linux_register_addr): Likewise.
7932 (mips_linux_register_u_offset): Call mips_linux_register_addr or
7933 mips64_linux_register_addr instead of register_addr.
7934 * mips-linux-tdep.c (mips_linux_register_addr,
7935 mips64_linux_register_addr): Move to mips-linux-nat.c.
7936 (register_addr): Remove.
7937 (register_addr_data, init_register_addr_data): Remove.
7938 (_initialize_mips_linux_tdep): Do not initialize register_addr_data.
7939 (set_mips_linux_register_addr): Remove.
7940 (mips_linux_init_abi): Do not call set_mips_linux_register_addr.
7941 * Makefile.in (mips-linux-nat.o): Update dependencies.
7943 2007-04-25 Ulrich Weigand <uweigand@de.ibm.com>
7945 * linux-nat.c (linux_register_u_offset): Remove.
7946 (linux_target_install_ops): New function.
7947 (linux_target): Use it.
7948 (linux_trad_target): New function.
7949 * linux-nat.h (linux_trad_target): Declare.
7951 * alpha-linux-nat.c: Include "gdbcore.h".
7952 (alpha_linux_register_u_offset): New function.
7953 (_initialize_alpha_linux_nat): Use linux_trad_target.
7955 * mips-linux-nat.c: Include "gdbcore.h".
7956 (mips_linux_register_u_offset): New function.
7957 (_initialize_mips_linux_nat): Use linux_trad_target.
7959 * config/arm/linux.mh (NAT_FILE): Set to config/nm-linux.h.
7960 * config/arm/nm-linux.h: Delete file.
7962 * config/i386/nm-linux64.h (FETCH_INFERIOR_REGISTERS): Remove.
7963 * config/i386/nm-linux.h (FETCH_INFERIOR_REGISTERS): Remove.
7965 * config/ia64/linux.mh (NAT_FILE): Set to config/nm-linux.h.
7966 * config/ia64/nm-linux.h: Delete file.
7968 * config/m32r/linux.mh (NAT_FILE): Set to config/nm-linux.h.
7969 * config/m32r/nm-linux.h: Delete file.
7971 * config/m68k/linux.mh (NAT_FILE): Set to config/nm-linux.h.
7972 * config/m68k/nm-linux.h: Delete file.
7974 * config/pa/linux.mh (NAT_FILE): Set to config/nm-linux.h.
7975 * config/pa/nm-linux.h: Delete file.
7977 * config/powerpc/linux.mh (NAT_FILE): Set to config/nm-linux.h.
7978 * config/powerpc/ppc64-linux.mh (NAT_FILE): Likewise.
7979 * config/powerpc/nm-linux.h: Delete file.
7981 * config/s390/s390.mh (NAT_FILE): Set to config/nm-linux.h.
7982 * config/s390/nm-linux.h: Delete file.
7984 * config/sparc/linux.mh (NAT_FILE): Set to config/nm-linux.h.
7985 * config/sparc/linux64.mh (NAT_FILE): Likewise.
7986 * config/sparc/nm-linux.h: Delete file.
7988 * Makefile.in (alpha-linux-nat.o): Update dependencies.
7989 (mips-linux-nat.o): Likewise.
7991 2007-04-25 Ulrich Weigand <uweigand@de.ibm.com>
7993 * core-aout.c: Delete file.
7994 * Makefile.in (ALLDEPFILES): Remove core-aout.c.
7995 (core-aout.o): Delete rule.
7996 * gdbcore.h (kernel_u_addr, KERNEL_U_ADDR): Remove.
7998 * config/alpha/nm-linux.h (U_REGS_OFFSET): Remove.
8000 * arm-linux-nat.c (arm_linux_kernel_u_size): Remove.
8001 * config/arm/nm-linux.h (U_REGS_OFFSET, KERNEL_U_SIZE,
8002 KERNEL_U_ADDR): Remove.
8004 * i386-linux-nat.c (register_u_addr, kernel_u_size): Remove.
8005 (cannot_fetch_register, cannot_store_register): Remove.
8006 (fetch_register): Inline cannot_fetch_register and register_addr.
8007 (store_register): Inline cannot_store_register and register_addr.
8008 * config/i386/linux.mh (NATDEPFILES): Remove core-aout.o.
8009 * config/i386/nm-linux.h (KERNEL_U_SIZE, KERNEL_U_ADDR,
8010 REGISTER_U_ADDR, CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER):
8013 * m68klinux-nat.c (m68k_linux_register_u_addr, kernel_u_size): Remove.
8014 (fetch_register): Inline register_addr.
8015 (store_register): Inline register_addr.
8016 * config/m68k/linux.mh (NATDEPFILES): Remove core-aout.o.
8017 * config/m68k/nm-linux.h (KERNEL_U_SIZE, KERNEL_U_ADDR,
8018 U_REGS_OFFSET, REGISTER_U_ADDR): Remove.
8020 * config/mips/nm-irix5.h (REGISTER_U_ADDR): Remove.
8021 * config/mips/nm-linux.h (KERNEL_U_SIZE, U_REGS_OFFSET,
8022 REGISTER_U_ADDR): Remove.
8024 * hppa-linux-nat.c (register_addr): Rename to ...
8025 (hppa_linux_register_addr): ... this. Make static.
8026 (fetch_register, store_register): Adapt callers.
8027 * config/pa/nm-linux.h (U_REGS_OFFSET): Remove.
8029 * ppc-linux-nat.c (kernel_u_size): Remove.
8030 * config/powerpc/nm-linux.h (KERNEL_U_SIZE, KERNEL_U_ADDR): Remove.
8032 * vax-nat.c (vax_kernel_u_addr, vax_register_u_addr): Make static.
8033 * config/vax/vax.mh (NATDEPFILES): Remove core-aout.o.
8035 * config/vax/nm-vax.h: Delete file.
8037 2007-04-20 Mark Shinwell <shinwell@codesourcery.com>
8039 * MAINTAINERS (Write After Approval): Add myself.
8041 2007-04-20 Mark Shinwell <shinwell@codesourcery.com>
8043 * Makefile.in: Adjust dependencies of m68klinux-tdep.c.
8044 * m68klinux-tdep.c (m68k_uclinux_sigcontext_reg_offset): New.
8045 (m68k_linux_sigcontext_reg_offset): Fix typo.
8046 (target_is_uclinux): New.
8047 (m68k_linux_inferior_created): New.
8048 (m68k_linux_get_sigtramp_info): Check for uClinux or
8049 normal Linux. Use m68k_uclinux_sigcontext_reg_offset for
8051 (_initialize_m68k_linux_tdep): Register
8052 m68k_linux_inferior_created.
8054 2007-04-19 Pedro Alves <pedro_alves@portugalmail.pt>
8056 * win32-nat.c (win32_detach): Remove delete_command call.
8057 Resume inferior with win32_resume instead of win32_continue.
8059 2007-04-19 Jerome Guitton <guitton@adacore.com>
8061 * ser-mingw.c (fd_is_file): New function.
8062 (file_select_thread): New function.
8063 (ser_console_wait_handle): Add special handling for files.
8065 2007-04-18 Denis Pilat <denis.pilat@st.com>
8067 * dwarf2read.c (read_subrange_type): Use DW_ATE_signed default type
8068 when missing from DW_TAG_subrange_type. Remove the handling of null
8069 return from die_type.
8071 2007-04-18 Maciej W. Rozycki <macro@mips.com>
8073 * mips-tdep.c (mips_eabi_push_dummy_call): Revert the last
8074 change to rearrange some brackets.
8075 (mips_n32n64_push_dummy_call): Likewise.
8076 (mips_o32_push_dummy_call): Likewise.
8077 (mips_o64_push_dummy_call): Likewise.
8079 2007-04-18 Denis Pilat <denis.pilat@st.com>
8081 * infcmd.c (post_create_inferior): Start with a call to
8082 target_terminal_ours.
8084 2007-04-17 Maciej W. Rozycki <macro@mips.com>
8086 * mips-tdep.c (mips_eabi_push_dummy_call): Rearrange some
8088 (mips_n32n64_push_dummy_call): Likewise. Reformat some
8090 (mips_o32_push_dummy_call): Likewise.
8091 (mips_o64_push_dummy_call): Likewise.
8093 2007-04-17 Maciej W. Rozycki <macro@mips.com>
8095 * mips-tdep.c (mips_n32n64_push_dummy_call): Fix a typo in a
8098 2007-04-17 Maciej W. Rozycki <macro@mips.com>
8100 * mips-tdep.c (mips_n32n64_push_dummy_call): Fix a typo in a
8102 (mips_o32_push_dummy_call): Likewise.
8104 2007-04-17 Andreas Schwab <schwab@suse.de>
8106 * symtab.c (skip_prologue_using_sal): Allow the end of the prologue
8107 sal to be bigger than the end of the function.
8109 2007-04-17 Maciej W. Rozycki <macro@mips.com>
8110 Nigel Stephens <nigel@mips.com>
8112 * mips-tdep.c (mips_o32_push_dummy_call): Take account of
8113 argument alignment requirements when calculating stack space
8114 required. When aligning an arg register to eight bytes
8115 boundary, align stack_offset too. Write floating-point
8116 arguments to the appropriate integer register if need go there.
8117 (mips_o64_push_dummy_call): Likewise.
8119 2007-04-14 Ulrich Weigand <uweigand@de.ibm.com>
8121 * gdbarch.sh (software_single_step): Remove "insert_breakpoints_p" and
8122 "sig" arguments, add "regcache" argument.
8123 * gdbarch.c, gdbarch.h: Regenerate.
8125 * infrun.c (resume): Update SOFTWARE_SINGLE_STEP call arguments.
8126 (handle_inferior_event): Call remove_single_step_breakpoints directly
8127 instead of calling SOFTWARE_SINGLE_STEP to remove breakpoints.
8129 * alpha-tdep.c (alpha_software_single_step): Update argument list.
8130 Remove handling of !insert_breakpoints_p case.
8131 * arm-tdep.c (arm_software_single_step): Likewise.
8132 * cris-tdep.c (cris_software_single_step): Likewise.
8133 * mips-tdep.c (mips_software_single_step): Likewise.
8134 * rs6000-tdep.c (rs6000_software_single_step): Likewise.
8135 * sparc-tdep.c (sparc_software_single_step): Likewise.
8136 * spu-tdep.c (spu_software_single_step): Likewise.
8138 * alpha-tdep.h (alpha_software_single_step): Update prototype.
8139 * mips-tdep.h (mips_software_single_step): Likewise.
8140 * rs6000-tdep.h (rs6000_software_single_step): Likewise.
8141 * sparc-tdep.h (sparc_software_single_step): Likewise.
8143 2007-04-14 Ulrich Weigand <uweigand@de.ibm.com>
8145 * alpha-tdep.c (alpha_software_single_step): Do not call write_pc
8146 when removing single-step breakpoints.
8148 2007-04-14 Vladimir Prus <vladimir@codesourcery.com>
8150 * varobj.h (varobj_set_frozen): New
8151 (varobj_get_frozen): New.
8152 (varobj_update): New parameter explicit.
8153 * varobj.c (struct varobj): New fields frozen
8155 (varobj_set_frozen, varobj_get_frozen): New.
8156 (install_new_value): Don't fetch values for
8157 frozen variable object, or children thereof. Allow
8158 a frozen variable object to have non-fetched value.
8159 (varobj_update): Allow updating child variables.
8160 Don't traverse frozen children.
8161 (new_variable): Initialize the frozen field.
8162 (c_value_of_variable): Return NULL for frozen
8163 variable without any value yet.
8164 * mi/mi-cmd-var.c (varobj_update_one): New parameter
8166 (mi_cmd_var_create): Output the 'frozen' field,
8167 as soon as testsuite is adjusted to expect that field.
8168 (mi_cmd_var_set_frozen): New.
8169 (mi_cmd_var_update): Pass the 'explicit' parameter to
8171 * mi/mi-cmds.c (mi_cmds): Register '-var-set-frozen'.
8172 * mi/mi-cmds.h (mi_cmd_var_set_frozen): Declare.
8174 2007-04-13 Paul Brook <paul@codesourcery.com>
8176 * target-descriptions.c (tdesc_named_type): Add ieee_single and
8178 * doc/gdb.texinfo: Document ieee_single and ieee_double target types.
8180 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
8182 * mips-mdebug-tdep.c, mips-mdebug-tdep.h, ocd.c, ocd.h, ppc-bdm.c,
8183 remote-e7000.c, remote-hms.c, remote-utils.c, remote-utils.h,
8184 scm-exp.c, scm-lang.c, scm-lang.h, scm-tags.h, scm-valprint.c,
8185 ser-e7kpc.c, sh3-rom.c, stop-gdb.c: Delete.
8186 * Makefile.in: Remove references to deleted files.
8187 * README: Do not mention deleted ROM monitor interfaces.
8188 * defs.h (enum language): Delete language_scm.
8189 * expprint.c (print_subexp_standard): Do not handle OP_EXPRSTRING.
8190 (dump_subexp_body_standard): Likewise.
8191 * parse.c (operator_length_standard): Likewise.
8192 * expression.h (enum exp_opcode): Delete OP_EXPRSTRING.
8193 * remote-mips.c: Do not include remote-utils.h.
8194 * remote-sim.c: Likewise. Use remote_debug instead of sr_get_debug
8196 * value.c: Do not include scm-lang.h.
8197 (unpack_long): Delete scm_unpack call.
8198 * config/h8300/h8300.mt, config/mips/embed.mt,
8199 config/powerpc/ppc-eabi.mt, config/powerpc/ppc-sim.mt,
8200 config/sh/embed.mt, config/sh/linux.mt: Remove references to
8202 * NEWS: Mention removed files.
8204 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
8206 * symfile.c (add_psymbol_with_dem_name_to_list): Remove.
8207 * symfile.h (add_psymbol_with_dem_name_to_list): Remove prototype.
8209 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
8211 * NEWS: Mention removal of HP aCC support.
8213 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
8215 * solib-svr4.c (IGNORE_FIRST_LINK_MAP_ENTRY): Do not ignore the
8216 first entry for static executables.
8217 (breakpoint_addr): Delete unused variable.
8218 (elf_locate_base): Search for _r_debug in static executables.
8219 (enable_break): Do not set breakpoint_addr. Scan solib_break_names
8222 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
8224 * breakpoint.c (update_breakpoints_after_exec, print_it_typical)
8225 (bpstat_what, print_one_breakpoint, allocate_bp_location)
8226 (mention): Remove bp_through_sigtramp support.
8227 * breakpoint.h (enum bptype): Remove bp_through_sigtramp.
8229 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
8231 * breakpoint.c (bpstat_what): Give step-resume higher priority than
8234 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
8236 * infrun.c: Doc fixes.
8237 (handle_inferior_event): Clarify debug message.
8238 (insert_step_resume_breakpoint_at_sal): Print a debug message.
8240 2007-04-12 Ulrich Weigand <uweigand@de.ibm.com>
8242 * configure.tgt (arm-*-nto*, sh-*-nto*): Remove.
8244 2007-04-12 Ulrich Weigand <uweigand@de.ibm.com>
8246 * config/m68k/tm-monitor.h: Delete file.
8247 * config/m68k/monitor.mt (DEPRECATED_TM_FILE): Remove.
8248 * m68k-tdep.c (m68k_gdbarch_init): set_gdbarch_decr_pc_after_break
8250 * m68kbsd-tdep.c (m68kbsd_init_abi): ... here and ...
8251 * m68klinux-tdep.c (m68k_linux_init_abi): ... here.
8253 2007-04-12 Luis Machado <luisgpm@br.ibm.com>
8255 * gdbarch.sh (software_single_step): Change the return type
8256 from void to int and reformatted some comments to <= 80
8258 * gdbarch.c, gdbarch.h: Regenerated.
8259 * alpha-tdep.c (alpha_software_single_step): Likewise.
8260 * alpha-tdep.h (alpha_software_single_step): Likewise.
8261 * arm-tdep.c (arm_software_single_step): Likewise.
8262 * cris-tdep.c (cris_software_single_step): Likewise.
8263 * mips-tdep.c (mips_software_single_step): Likewise.
8264 * mips-tdep.h (mips_software_single_step): Likewise.
8265 * rs6000-tdep.c (rs6000_software_single_step): Likewise.
8266 * rs6000-tdep.h (rs6000_software_single_step): Likewise.
8267 * sparc-tdep.c (sparc_software_single_step): Likewise.
8268 * sparc-tdep.h (sparc_software_single_step): Likewise.
8269 * spu-tdep.c (spu_software_single_step): Likewise.
8270 * infrun.c (resume): Check the return value from SOFTWARE_SINGLE_STEP
8271 and act accordingly.
8273 2007-04-11 Steve Ellcey <sje@cup.hp.com>
8275 * configure.ac (build_warnings): Add -Wno-char-subscripts.
8276 * configure: Regenerate.
8277 * doc/gdbint.texinfo (warning flags): Add -Wno-char-subscripts.
8279 2007-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
8281 * libunwind-frame.c (LIBUNWIND_SO): Use major version number for `.so'.
8283 2007-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
8285 * gdbtypes.h (TYPE_FLAG_STUB_SUPPORTED, TYPE_STUB_SUPPORTED): New
8287 (TYPE_IS_OPAQUE): Empty vs. opaque structures are now
8288 distinct on the TYPE_STUB_SUPPORTED debug targets.
8289 * dwarf2read.c (read_structure_type): Set TYPE_FLAG_STUB_SUPPORTED.
8291 2007-04-11 Joel Brobecker <brobecker@adacore.com>
8293 * sparc-tdep.c (X_RS2): New macro.
8294 (sparc_skip_stack_check): New function.
8295 (sparc_analyze_prologue): Adjust PC past stack probing
8296 sequence if necessary.
8298 2007-04-10 Andreas Schwab <schwab@suse.de>
8300 * rs6000-tdep.c (rs6000_dwarf2_reg_to_regnum): Decode 64 as CR
8303 2007-04-10 Daniel Jacobowitz <dan@codesourcery.com>
8305 * breakpoint.c (gdb_breakpoint_query): Really return an
8307 (gdb_breakpoint): Likewise.
8308 * thread.c (gdb_list_thread_ids): Likewise.
8309 (gdb_thread_select): Likewise.
8310 * mi/mi-main.c (mi_cmd_thread_select): Expect an enum gdb_rc.
8311 (mi_cmd_thread_list_ids): Remove bogus initialization.
8313 2007-04-10 Daniel Jacobowitz <dan@codesourcery.com>
8315 * Makefile.in (SFILES): Remove hpacc-abi.c.
8316 (COMMON_OBS): Remove hpacc-abi.o.
8317 (ALLDEPFILES): Remove hpread.c and $(HPREAD_SOURCE).
8318 (hpacc-abi.o, hpread.o): Delete rules.
8319 * somread.c: Delete extern declarations from hpread.c.
8320 (som_symfile_read): Do not call do_pxdb or hpread_build_psymtabs.
8321 (som_symfile_finish): Do not call hpread_symfile_finish.
8322 (som_symfile_init): Do not call hpread_symfile_init.
8323 * config/pa/hppa64.mt (TDEPFILES): Remove hpread.o.
8324 * config/pa/hppahpux.mt (TDEPFILES): Likewise.
8325 * hpacc-abi.c, hpread.c: Deleted.
8327 2007-04-10 Daniel Jacobowitz <dan@codesourcery.com>
8329 * solib-svr4.c (enable_break): Simplify return value.
8330 (svr4_solib_create_inferior_hook): Do not warn if enable_break fails.
8332 2007-04-10 Andreas Schwab <schwab@suse.de>
8334 * solib-svr4.h (struct link_map_offsets): Remove l_addr_size,
8335 l_ld_size, l_next_size, l_prev_size, l_name_size.
8337 * solib-svr4.c (LM_ADDR_FROM_LINK_MAP): Use extract_typed_address
8338 to extract addresses from link map.
8339 (LM_DYNAMIC_FROM_LINK_MAP): Likewise.
8340 (LM_NEXT): Likewise.
8341 (LM_NAME): Likewise.
8342 (IGNORE_FIRST_LINK_MAP_ENTRY): Likewise.
8343 (elf_locate_base): Likewise.
8344 (open_symbol_file_object): Likewise.
8345 (svr4_fetch_objfile_link_map): Likewise.
8346 (SOLIB_EXTRACT_ADDRESS): Remove unused macro.
8347 (HAS_LM_DYNAMIC_FROM_LINK_MAP): Test l_ld_offset instead of
8349 (svr4_ilp32_fetch_link_map_offsets): Don't set removed members.
8350 (svr4_lp64_fetch_link_map_offsets): Likewise.
8352 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets): Don't set
8353 removed members. Set l_ld_offset to -1 if not present.
8355 2007-04-08 Vladimir Prus <vladimir@codesourcery.com>
8357 Pass stderr of program run with "target remote |"
8359 * serial.c (serial_open): Set error_fd to -1.
8360 * serial.h (struct serial): New field error_fd.
8361 (struct serial_opts): New field avail.
8362 * ser-pipe.c (pipe_open): Create another pair
8363 of sockets. Pass stderr to gdb.
8364 * ser-mingw.c (pipe_windows_open): Pass
8365 PEX_STDERR_TO_PIPE to pex_run. Initialize
8368 (_initialize_ser_windows): Hook pipe_avail.
8369 * ser-base.c (generic_readchar): Check if there's
8370 anything in stderr channel and route that to gdb_stderr.
8372 2007-04-03 Pedro Alves <pedro_alves@portugalmail.pt>
8374 * dbxread.c (read_ofile_symtab): Move current_objfile
8375 clearing to after end_stabs.
8377 2007-04-01 Andreas Schwab <schwab@suse.de>
8379 * rs6000-tdep.c (rs6000_convert_from_func_ptr_addr): Use parameter
8380 gdbarch instead of current_gdbarch.
8382 2007-04-01 Vladimir Prus <vladimir@codesourcery.com>
8384 * varobj.c (varobj_create): Keep varobj value
8385 NULL when evaluating the type.
8387 2007-03-31 Pedro Alves <pedro_alves@portugalmail.pt>
8389 * NEWS: Mention new Windows CE support.
8391 2007-03-30 Pedro Alves <pedro_alves@portugalmail.pt>
8393 * configure.tgt: Move mips*-*-pe and sh*-*-pe to
8394 the obsoletion stanza.
8395 * NEWS: Mention deleted targets.
8397 * config/sh/tm-wince.h: Remove.
8398 * config/sh/wince.mt: Remove.
8399 * config/mips/tm-wince.h: Remove.
8400 * config/mips/wince.mt: Remove.
8403 * wince-stub.c: Remove.
8404 * wince-stub.h: Remove.
8405 * Makefile.in (wince.o): Remove rule.
8406 (wince-stub.o): Likewise.
8408 * mips-tdep.c (mips_next_pc): Make static.
8409 * mips-tdep.h (mips_next_pc): Remove declaration.
8410 * arm-tdep.c (arm_pc_is_thumb): Make static.
8411 (thumb_get_next_pc): Likewise.
8412 (arm_get_next_pc): Likewise.
8413 * arm-tdep.h (arm_pc_is_thumb_dummy): Remove declaration.
8414 (arm_pc_is_thumb): Likewise.
8415 (thumb_get_next_pc): Likewise.
8416 (arm_get_next_pc): Likewise.
8418 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
8420 * MAINTAINERS: Remove d10v entry.
8421 * Makefile.in (SFILES): Remove dwarfread.c.
8422 (COMMON_OBS): Remove dwarfread.o.
8423 (gdb_sim_d10v_h, abug-rom.o, cpu32bug-rom.o, d10v-tdep.o, dwarfread.o)
8424 (remote-est.o, rom68k-rom.o): Delete.
8425 * NEWS: Mention removal of d10v, target abug, target cpu32bug,
8426 target est, target rom68k, and DWARF 1.
8427 * configure.tgt: Mark d10v as removed.
8428 * dwarf2read.c: Doc update.
8429 * elfread.c (struct elfinfo): Remove dboffset, dbsize, lnoffset,
8431 (elf_locate_sections): Do not set them.
8432 (elf_symfile_read): Do not call dwarf_build_psymtabs.
8433 * symfile.h (dwarf_build_psymtabs): Delete prototype.
8434 * config/m68k/monitor.mt (TDEPFILES): Prune.
8435 * abug-rom.c, cpu32bug-rom.c, d10v-tdep.c, dwarfread.c,
8436 remote-est.c, rom68k-rom.c, config/d10v/d10v.mt: Delete.
8438 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
8440 * doublest.c (convert_floatformat_to_doublest): Use
8441 floatformat_classify.
8442 (floatformat_is_nan): Rename to...
8443 (floatformat_classify): ...this. Return more information.
8444 * doublest.h (enum float_kind): New.
8445 (floatformat_is_nan): Replace prototype...
8446 (floatformat_classify): ...with this one.
8447 * valprint.c (print_floating): Use floatformat_classify. Handle
8450 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
8452 * README: Mention ISO C library requirement.
8454 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
8456 * Makefile.in (SFILES): Remove nlmread.c.
8457 (COMMON_OBS): Remove nlmread.o.
8458 (nlmread.o): Delete rule.
8459 * README: Delete reference to remote-st.c.
8460 * acinclude.m4 (CY_AC_TCL_LYNX_POSIX): Delete.
8461 * defs.h (enum gdb_osabi): Delete GDB_OSABI_NETWARE and
8463 * i386-tdep.c (i386_nw_init_abi, i386_nlm_osabi_sniffer): Delete.
8464 (_initialize_i386_tdep): Do not reference them.
8465 * nlmread.c: Delete file.
8466 * osabi.c (gdb_osabi_names): Remove NetWare and LynxOS.
8467 * target.c: Doc update.
8468 * thread.c: Delete commented include.
8469 * config/alpha/tm-alpha.h: Doc update.
8471 2007-03-30 Chris Dearman <chris@mips.com>
8473 * utils.c (string_to_core_addr): Comment typo.
8475 2007-03-30 Chris Dearman <chris@mips.com>
8477 * mips-tdep.c: Comment typo.
8479 2007-03-29 Ulrich Weigand <uweigand@de.ibm.com>
8481 * config/alpha/nm-osf.h (PTRACE_XFER_TYPE): Remove.
8482 * config/mips/nm-linux.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Remove.
8483 * config/sparc/nm-linux.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Remove.
8484 * config/powerpc/nm-ppc64-linux.h: Remove file.
8485 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Set to nm-linux.h.
8486 * inferior.h (PTRACE_ARG3_TYPE): Do not define.
8487 (call_ptrace): Change type of third argument to PTRACE_TYPE_ARG3.
8488 * infptrace.c (call_ptrace): Likewise.
8489 * m68klinux-nat.c (PTRACE_XFER_TYPE): Do not define.
8490 (fetch_register): Replace PTRACE_ARG3_TYPE by PTRACE_TYPE_ARG3
8491 and PTRACE_XFER_TYPE by PTRACE_TYPE_RET.
8492 (store_register): Likewise.
8494 2007-03-29 Joel Brobecker <brobecker@adacore.com>
8496 * Makefile.in (varobj.o): Add missing dependency.
8498 2007-03-29 Michael Snyder <msnyder@access-company.com>
8500 * MAINTAINERS: Update my email address.
8502 2007-03-29 Joel Brobecker <brobecker@adacore.com>
8504 Add support for exception handling with multiple versions of
8506 * ada-lang.c: Update general comments on how Ada exception catchpoints
8508 (raise_sym_name, raise_unhandled_sym_name, raise_assert_sym_name)
8509 (__gnat_raise_nodefer_with_msg): Delete.
8510 (ada_unhandled_exception_name_addr_ftype): New type.
8511 (exception_support_info): New type.
8512 (ada_unhandled_exception_name_addr): Add forward declaration.
8513 (ada_unhandled_exception_name_addr_from_raise): Likewise.
8514 (default_exception_support_info): New constant.
8515 (exception_support_info_fallback): Likewise.
8516 (exception_info): New global variable.
8517 (ada_exception_support_info_sniffer): New function.
8518 (ada_executable_changed_observer): Likewise.
8519 (ada_unhandled_exception_name_addr_from_raise): Renamed from
8520 ada_unhandled_exception_name_addr.
8521 (ada_unhandled_exception_name_addr): Reimplement to match the
8522 latest Ada runtime implementation.
8523 (error_breakpoint_runtime_sym_not_found): Delete.
8524 (ada_exception_sym_name): Get the exception sym name from
8525 exception_info rather than hardcoding it.
8526 (ada_exception_sal): Add call to ada_exception_support_info_sniffer.
8527 Update error handling.
8528 * Makefile.in (ada-lang.o): Add dependency on observer.h.
8530 2007-03-29 Daniel Jacobowitz <dan@codesourcery.com>
8532 * Makefile.in (coff_solib_h, coff-solib.o, i386v-nat.o, lynx-nat.o)
8533 (remote-st.o, uw-thread.o): Delete.
8534 (HFILES_NO_SRCDIR, ALLDEPFILES): Update.
8535 * configure.host: Move hppa*-*-hiux*, i[34567]86-ncr-*,
8536 i[34567]86-*-dgux*, i[34567]86-*-lynxos*, i[34567]86-*-sco3.2v5*,
8537 i[34567]86-*-sco3.2v4*, i[34567]86-*-sco*, i[34567]86-*-sysv4.2*,
8538 i[34567]86-*-sysv4*, i[34567]86-*-sysv5*, i[34567]86-*-unixware2*,
8539 i[34567]86-*-unixware*, i[34567]86-*-sysv*, i[34567]86-*-isc*, and
8540 rs6000-*-lynxos* to an obsoletion stanza.
8541 * configure.tgt: Move hppa*-*-hiux*, i[34567]86-ncr-*,
8542 i[34567]86-*-lynxos*, m68*-cisco*-*, m68*-tandem-*, m68*-*-os68k*,
8543 and rs6000-*-lynxos* to an obsoletion stanza. Do not mention
8544 i[34567]86-*-netware*.
8545 * NEWS: Mention deleted targets.
8547 * coff-solib.c, coff-solib.h, i386v-nat.c, lynx-nat.c, remote-st.c,
8548 uw-thread.c, config/nm-lynx.h, config/i386/i386sco.mh,
8549 config/i386/i386sco4.mh, config/i386/i386sco5.mh, config/i386/i386v.mh,
8550 config/i386/i386v4.mh, config/i386/i386v42mp.mh,
8551 config/i386/ncr3000.mh, config/i386/ncr3000.mt,
8552 config/i386/nm-i386sco.h, config/i386/nm-i386sco4.h,
8553 config/i386/nm-i386sco5.h, config/i386/nm-i386v.h,
8554 config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h,
8555 config/m68k/cisco.mt, config/m68k/os68k.mt, config/m68k/st2000.mt,
8556 config/m68k/tm-cisco.h, config/m68k/tm-os68k.h,
8557 config/rs6000/rs6000lynx.mh, config/rs6000/rs6000lynx.mt,
8558 config/rs6000/tm-rs6000ly.h: Delete files.
8560 2007-03-29 Daniel Jacobowitz <dan@codesourcery.com>
8562 * defs.h (deprecated_registers_changed_hook): Delete declaration.
8563 * interps.c (clear_interpreter_hooks): Do not clear
8564 deprecated_registers_changed_hook.
8565 * regcache.c (registers_changed): Do not call it.
8566 * top.c (deprecated_registers_changed_hook): Do not define it.
8567 * mi/mi-interp.c (mi_command_loop): Do not clear it.
8568 * tui/tui-hooks.c (tui_install_hooks): Do not install it.
8569 (tui_remove_hooks): Do not remove it.
8570 (tui_selected_frame_level_changed_hook): Check for negative level.
8571 Use get_selected_frame.
8572 (tui_registers_changed_hook): Deleted.
8574 2007-03-29 Joel Brobecker <brobecker@adacore.com>
8576 * stabsread.c (add_undefined_type): Add extra parameter.
8577 Now handles nameless types separately.
8578 (struct nat): New type.
8579 (noname_undefs, noname_undefs_allocated, noname_undefs_length):
8580 New static variables.
8581 (read_type): Update calls to add_undefined_type.
8582 (add_undefined_type_noname): New function.
8583 (add_undefined_type_1): Renames from add_undefined_type.
8584 (cleanup_undefined_types_noname): New function.
8585 (cleanup_undefined_types_1): Renames cleanup_undefined_types.
8586 (cleanup_undefined_types): New handles nameless types separately.
8587 (_initialize_stabsread): Initialize our new static constants.
8589 2007-03-29 Denis Pilat <denis.pilat@st.com>
8591 * configure.ac: Test for signal.h.
8592 * configure, config.in: Regenerate.
8594 2007-03-29 Denis Pilat <denis.pilat@st.com>
8596 * stack.c (print_stack_frame): Always use LOC_AND_ADDRESS in MI output.
8597 * infrun.c (normal_stop): Remove MI specific frame printing treatment.
8599 2007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
8601 * arm-wince-tdep.c: New.
8602 * config/arm/wince.mt (DEPRECATED_TM_FILE): Use tm-arm.h.
8603 (MT_CFLAGS): Delete.
8605 (TDEPFILES): Add arm-wince-tdep.o, corelow.o, solib.o,
8606 solib-legacy.o, solib-svr4.o, and remove wince.o.
8607 * configure.tgt (arm*-*-mingw32ce*): Add.
8608 * signals/signals.c [HAVE_SIGNAL_H]: Check.
8609 (do_target_signal_to_host): Silence 'not used' warning.
8610 * config/arm/tm-wince.h: Remove.
8612 2007-03-28 Ulrich Weigand <uweigand@de.ibm.com>
8614 * arch-utils.c (legacy_pc_in_sigtramp): Remove.
8615 * arch-utils.h (legacy_pc_in_sigtramp): Remove.
8617 * config/ia64/linux.mt (DEPRECATED_TM_FILE): Remove.
8618 * config/ia64/tm-linux.h: Remove file.
8619 * ia64-tdep.h (struct gdbarch_tdep): Add pc_in_sigtramp callback.
8620 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Use it instead of
8621 legacy_pc_in_sigtramp.
8622 (ia64_gdbarch_init): Initialize tdep->pc_in_sigtramp.
8623 * ia64-linux-tdep.c (ia64_linux_pc_in_sigtramp): Make static.
8624 Remove func_name argument.
8625 (ia64_linux_init_abi): Install it as tdep->pc_in_sigtramp.
8627 * infrun.c (HAVE_STEPPABLE_WATCHPOINT): Do not redefine.
8628 * target.c (update_current_target): Add to_have_steppable_watchpoint.
8629 * target.h (struct target_ops): Add to_have_steppable_watchpoint.
8630 (HAVE_STEPPABLE_WATCHPOINT): Define.
8632 * config/ia64/linux.mh (NATDEPFILES): Remove core-aout.o.
8633 * config/ia64/nm-linux.h (KERNEL_U_ADDR, U_REGS_OFFSET,
8634 CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER,
8635 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_STEPPABLE_WATCHPOINT,
8636 STOPPED_BY_WATCHPOINT, target_stopped_data_address,
8637 target_insert_watchpoint, target_remove_watchpoint): Remove.
8638 (FETCH_INFERIOR_REGISTERS): Define.
8639 * ia64-linux-nat.c (ia64_register_addr): Make static.
8640 (ia64_cannot_fetch_register, ia64_cannot_store_register): Likewise.
8641 (ia64_linux_insert_watchpoint): Make static. Remove ptid_p argument.
8642 (ia64_linux_remove_watchpoint): Likewise. Add type argument.
8643 (ia64_linux_stopped_data_address): Make static. Add target_ops.
8644 (ia64_linux_stopped_by_watchpoint): Make static.
8645 (ia64_linux_can_use_hw_breakpoint): New function.
8646 (ia64_linux_fetch_register, ia64_linux_fetch_registers): Likewise.
8647 (ia64_linux_store_register, ia64_linux_store_registers): Likewise.
8648 (_initialize_ia64_linux_nat): Install register and watchpoint ops.
8650 2007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
8652 * linespec.c: Include language.h.
8653 (find_methods): Add language parameter. Call
8654 lookup_symbol_in_language. Pass language down.
8655 (add_matching_methods): Likewise. Call
8656 lookup_symbol_in_language.
8657 (add_constructors): Likewise.
8658 (find_method): Pass sym_class to collect_methods.
8659 (collect_methods): Add sym_class parameter. Pass language
8661 * symtab.c (lookup_symbol): Rename to ...
8662 (lookup_symbol_in_language): ... this. Add language
8663 parameter. Use passed language instead of current_language.
8664 (lookup_symbol): New as wrapper around
8665 lookup_symbol_in_language.
8666 (lookup_symbol_aux): Add language parameter. Use passed
8667 language instead of current_language.
8668 (search_symbols): Indent.
8669 * symtab.h (enum language): Forward declare.
8670 (lookup_symbol_in_language): Declare.
8671 (lookup_symbol): Update description.
8672 * ada-lang.h (lookup_symbol_in_language): Remove declaration.
8673 * ada-lang.c (restore_language): Remove.
8674 (lookup_symbol_in_language): Remove.
8676 2007-03-27 Pedro Alves <pedro_alves@portugalmail.pt>
8678 * breakpoint.c (bpstat_num): Add int *num parameter.
8679 * breakpoint.h (bpstat_num): Likewise.
8680 * infcmd.c (continue_command): Adjust to new bpstat_num
8682 (program_info): Likewise.
8684 2007-03-27 Ulrich Weigand <uweigand@de.ibm.com>
8686 * config/sh/tm-sh.h: Remove file.
8687 * config/sh/embed.mt (DEPRECATED_TM_FILE): Remove.
8688 * config/sh/linux.mt (DEPRECATED_TM_FILE): Remove.
8689 * config/sh/nbsd.mt (DEPRECATED_TM_FILE): Remove.
8690 * config/sh/tm-wince.h: Do not include "sh/tm-sh.h".
8692 2007-03-27 Ulrich Weigand <uweigand@de.ibm.com>
8694 * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT,
8695 DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Remove.
8696 * remote.c: Remove code under #ifdef DEPRECATED_REMOTE_BREAKPOINT,
8697 DEPRECATED_BIG_REMOTE_BREAKPOINT, DEPRECATED_LITTLE_REMOTE_BREAKPOINT.
8698 * sh-tdep.c (sh_breakpoint_from_pc): Return remote breakpoint
8699 sequence if target_shortname is "remote".
8701 2007-03-27 Anton Blanchard <anton@samba.org>
8703 * rs6000-tdep.c (rs6000_frame_cache): Use tdep->lr_frame_offset
8704 instead of wordsize when looking for the LR in a stack frame.
8706 2007-03-27 Andreas Schwab <schwab@suse.de>
8707 Daniel Jacobowitz <dan@codesourcery.com>
8709 * dwarf2-frame.c (dwarf2_frame_eh_frame_regnum): Rename to...
8710 (dwarf2_frame_adjust_regnum): ...this. Make static. Add eh_frame_p
8711 argument. Update all callers.
8712 (struct dwarf2_frame_ops): Replace eh_frame_regnum with adjust_regnum.
8713 (dwarf2_frame_set_eh_frame_regnum): Rename to...
8714 (dwarf2_frame_set_adjust_regnum): ...this. Update argument type.
8715 * dwarf2frame.h (dwarf2_frame_set_eh_frame_regnum): Rename to...
8716 (dwarf2_frame_set_adjust_regnum): ...this.
8717 (dwarf2_frame_eh_frame_regnum): Delete prototype.
8718 * rs6000-tdep.c: Include "dwarf2-frame.h".
8719 (rs6000_adjust_frame_regnum): Define.
8720 (rs6000_gdbarch_init): Enable use of DWARF CFI frame unwinder.
8721 Register rs6000_adjust_frame_regnum.
8723 * Makefile.in (rs6000-tdep.o): Update dependencies.
8725 2007-03-27 Brooks Moses <brooks.moses@codesourcery.com>
8727 * Makefile.in: Add support for a "pdf" target.
8729 2007-03-27 Daniel Jacobowitz <dan@codesourcery.com>
8731 * amd64-tdep.c (amd64_init_frame_cache): New function.
8732 (amd64_alloc_frame_cache, amd64_skip_prologue): Use it.
8734 2007-03-26 Nigel Stephens <nigel@mips.com>
8735 Maciej W. Rozycki <macro@mips.com>
8737 * ui-out.c (ui_out_field_core_addr): Truncate address to
8738 TARGET_ADDR_BIT size before printing.
8740 2007-03-22 Nigel Stephens <nigel@mips.com>
8741 Maciej W. Rozycki <macro@mips.com>
8743 * remote-mips.c (mips_xfer_memory): Update prototype.
8745 2007-03-22 Joel Brobecker <brobecker@adacore.com>
8747 * symfile.h: #include "symtab.h"
8749 2007-03-22 Denis Pilat <denis.pilat@st.com>
8751 * utils.c (pagination_on_command, pagination_off_command):
8752 Remove useless prototypes.
8754 2007-03-21 Pierre Muller <muller@ics.u-strasbg.fr>
8757 * p-valprint.c (pascal_object_print_value): Use type_name_no_tag
8758 instead of TYPE_NAME for object base class name.
8761 2007-03-19 Kevin Buettner <kevinb@redhat.com>
8763 * mep-tdep.c (mep_analyze_frame_prologue, mep_frame_this_id):
8764 Specify frame type in calls to frame_func_unwind().
8766 2007-03-13 Daniel Jacobowitz <dan@codesourcery.com>
8768 * rs6000-tdep.c (rs6000_skip_prologue): Use skip_prologue_using_sal.
8769 (rs6000_in_function_epilogue_p): Use extract_unsigned_integer.
8770 (refine_prologue_limit): Delete.
8771 (skip_prologue): Don't call it. Use extract_unsigned_integer.
8772 Assume lim_pc is set. Correct check for incomplete prologues.
8773 Do not skip clobbers of the frame pointer.
8774 * symtab.c (skip_prologue_using_sal): Fail if there is only one
8777 2007-03-13 Nathan Froyd <froydnj@codesourcery.com>
8779 * frame.c (frame_pop): Check to see whether there's a frame to
8780 which we can pop first.
8782 2007-03-13 Nathan Froyd <froydnj@codesourcery.com>
8784 * MAINTAINERS (Write After Approval): Add myself.
8786 2007-03-09 Markus Deuling <deuling@de.ibm.com>
8788 * infrun.c (breakpoints_failed): Remove unnecessary variable.
8789 (handle_inferior_event): Remove unnecessary braces.
8790 * breakpoint.c (bpstat_what): Remove wrong comment.
8792 2007-03-09 Ulrich Weigand <uweigand@de.ibm.com>
8794 * spu-tdep.c (spu_in_function_epilogue_p): New function.
8795 (spu_gdbarch_init): Install it.
8797 2007-03-08 Ulrich Weigand <uweigand@de.ibm.com>
8799 * spu-linux-nat.c (spu_xfer_partial): Return -1 for unsupported
8800 object types, not 0.
8802 2007-03-08 Ulrich Weigand <uweigand@de.ibm.com>
8804 * spu-tdep.c (spu_frame_align): New function.
8805 (spu_gdbarch_init): Install it. Set call dummy location to ON_STACK.
8807 2007-03-08 Ulrich Weigand <uweigand@de.ibm.com>
8809 * spu-tdep.c (spu_unwind_pc): Mask off interrupt enable bit.
8810 (spu_software_single_step): Likewise.
8811 (spu_read_pc, spu_write_pc): New functions.
8812 (spu_gdbarch_init): Install them.
8814 2007-03-08 Ulrich Weigand <uweigand@de.ibm.com>
8816 * cli/cli-dump.c (struct callback_data): load_offset needs to
8817 have signed long type.
8819 2007-03-07 Joel Brobecker <brobecker@adacore.com>
8821 * mips-tdep.c (mips_insn16_frame_cache, mips_insn32_frame_sniffer):
8822 Revert the previous change that had some unexpected side-effects
8824 (mips_insn16_frame_cache, mips_insn32_frame_cache): Use the proper
8825 function to get the address of the calling instruction.
8827 2007-03-07 Denis Pilat <denis.pilat@st.com>
8829 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Replace
8830 get_selected_frame by deprecated_safe_get_selected_frame.
8832 2007-03-02 Mark Kettenis <kettenis@gnu.org>
8834 * shnbsd-tdep.c: Include "regset.h", "gdb_assert.h" and
8835 "gdb_string.h". Don't include "nbsd-tdep.h".
8836 (SIZEOF_STRUCT_REG): Remove.
8837 (SHNBSD_SIZEOF_GREGS): New.
8838 (shnbsd_supply_gregset, shnbsd_collect_gregset)
8839 (shnbsd_regset_from_core_section): New functions.
8840 (fetch_core_registers, fetch_elfcore_registers): Remove functions.
8841 (shnbsd_supply_reg, shnbsd_fill_reg): Simply call
8842 shnbsd_supply_gregset, shnbsd_collect_gregset.
8843 (shnbsd_gregset): New variable.
8844 (shnbsd_init_abi): Set regset_from_core_section.
8845 (GDB_OSABI_NETBSD_CORE): New define.
8846 (shnbsd_core_osabi_sniffer): New function.
8847 (_initialize_shnbsd_tdep): Register shnbsd_core_osabi_sniffer.
8848 * Makefile.in (shnbsd-tdep.o): Update dependencies.
8849 * config/sh/nbsd.mt (TDEPFILES): Add corelow.o, remove
8851 * config/sh/obsd.mt (TDEPFILES): Remove nbsd-tdep.o.
8853 2007-02-28 Joel Brobecker <brobecker@adacore.com>
8855 * gdbtypes.c (replace_type): Fix typo that caused us to not update
8856 length of the types referenced by the new type CV ring.
8858 2007-02-28 Daniel Jacobowitz <dan@codesourcery.com>
8860 * frame.c (frame_pop, frame_observer_target_changed): Call
8862 (flush_cached_frames): Rename to reinit_frame_cache and delete
8864 * frame.h (flush_cached_frames): Delete prototype and update comment.
8866 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd): Call
8867 reinit_frame_cache instead of flush_cached_frames. Do not call
8868 select_frame after reinit_frame_cache.
8869 * corelow.c (core_open): Likewise.
8870 * gdbarch.sh (deprecated_current_gdbarch_select_hack): Likewise.
8871 * infrun.c (prepare_to_proceed, context_switch)
8872 (handle_inferior_event): Likewise.
8873 * linux-fork.c (fork_load_infrun_state): Likewise.
8874 * ocd.c (ocd_start_remote): Likewise.
8875 * remote-e7000.c (e7000_start_remote): Likewise.
8876 * remote-mips.c (device): Likewise.
8877 * thread.c (switch_to_thread): Likewise.
8878 * tracepoint.c (finish_tfind_command): Likewise.
8879 * gdbarch.c: Regenerated.
8881 2007-02-28 Jerome Guitton <guitton@adacore.com>
8882 Joel Brobecker <brobecker@adacore.com>
8884 * gdbtypes.c (check_typedef): Do not replace stub type if
8885 the resolved type is not defined in the same objfile.
8887 2007-02-28 Daniel Jacobowitz <dan@codesourcery.com>
8889 * top.c (gdb_readline_wrapper_cleanup): Remove invalid assertion.
8891 2007-02-28 Joel Brobecker <brobecker@adacore.com>
8893 * stabsread.c (define_symbol): Create an associated STRUCT_DOMAIN
8894 symbol for Ada units when the symbol is defined using 't' rather
8895 than 'Tt' as symbol descriptor.
8897 2007-02-28 Ulrich Weigand <uweigand@de.ibm.com>
8899 * config/mips/tm-nbsd.h: Delete file.
8900 * config/mips/nbsd.mt (DEPRECATED_TM_FILE): Remove.
8901 * config/sh/tm-nbsd.h: Delete file.
8902 * config/sh/nbsd.mt (DEPRECATED_TM_FILE): Set to tm-sh.h.
8904 2007-02-28 Joel Brobecker <brobecker@adacore.com>
8906 * mi/mi-cmd-var.c (varobj_update_one): Remove reference to
8907 unused WRONG_PARAM value since it was recently deleted.
8909 2007-02-28 Vladimir Prus <vladimir@codesourcery.com>
8911 * varobj.c (varobj_update): Free temporary vectors.
8913 2007-02-28 Ulrich Weigand <uweigand@de.ibm.com>
8915 * config/powerpc/linux.mt (DEPRECATED_TM_FILE): Set to tm-ppc-eabi.h.
8916 * config/powerpc/tm-linux.h: Delete file.
8917 * config/powerpc/tm-ppc-eabi.h: Do not include "rs6000/tm-rs6000.h".
8918 (PROCESS_LINENUMBER_HOOK): Do not undefine.
8919 (TEXT_SEGMENT_BASE): Do not redefine.
8920 * config/rs6000/nm-rs6000.h (CHILD_SPECIAL_WAITSTATUS): Move here
8921 from config/rs6000/tm-rs6000.h.
8922 (TARGET_CREATE_INFERIOR_HOOK, rs6000_create_inferior): Likewise.
8923 * config/rs6000/tm-rs6000.h (struct frame_info): Remove declaration.
8924 (TEXT_SEGMENT_BASE): Remove.
8925 (IN_SOLIB_RETURN_TRAMPOLINE): Remove.
8926 (rs6000_in_solib_return_trampoline): Remove.
8927 (SKIP_TRAMPOLINE_CODE): Remove.
8928 (rs6000_skip_trampoline_code): Remove.
8929 (CHILD_SPECIAL_WAITSTATUS): Move to config/rs6000/nm-rs6000.h.
8930 (TARGET_CREATE_INFERIOR_HOOK, rs6000_create_inferior): Likewise.
8931 (FP0_REGNUM): Remove.
8932 (rs6000_find_toc_address_hook): Move to rs6000-tdep.h.
8933 (rs6000_set_host_arch_hook): Remove.
8934 * Makefile.in (rs6000-nat.o): Add dependency on $(rs6000_tdep_h).
8935 (rs6000-aix-tdep.o): Add dependency on $(ppc_tdep_h).
8936 * ppc-tdep.h (struct gdbarch_tdep): Add field text_segment_base.
8937 * rs6000-aix-tdep.c: Include "ppc-tdep.h".
8938 (rs6000_aix_init_osabi): Set text_segment_base tdep field.
8939 * rs6000-nat.c: Include "rs6000-tdep.h".
8940 (exec_one_dummy_insn): Replace TEXT_SEGMENT_BASE by tdep field.
8941 (set_host_arch): Rename to ...
8942 (rs6000_create_inferior): ... this. Make public.
8943 (_initialize_core_rs6000): Do not set rs6000_set_host_arch_hook.
8944 * rs6000-tdep.c (rs6000_set_host_arch_hook): Remove.
8945 (rs6000_create_inferior): Remove.
8946 (branch_dest): Replace TEXT_SEGMENT_BASE by tdep field.
8947 (rs6000_gdbarch_init): Call set_gdbarch_fp0_regnum,
8948 set_gdbarch_in_solib_return_trampoline, and
8949 set_gdbarch_skip_trampoline_code.
8950 * rs6000-tdep.h (rs6000_find_toc_address_hook): Move here
8951 from config/rs6000/tm-rs6000.h.
8953 2007-02-27 Joel Brobecker <brobecker@adacore.com>
8955 * buildsym.c (record_producer): Do nothing if no producer is provided.
8957 2007-02-27 Nick Roberts <nickrob@snap.net.nz>
8959 * varobj.c (varobj_update): Remove unused local. Use gdb_assert
8960 to check changelist is non-NULL. Call error if the frontend tries
8961 to update a non-root variable.
8963 * varobj.h (enum varobj_update_error): Delete WRONG_PARAM value.
8965 2007-02-27 Daniel Jacobowitz <dan@codesourcery.com>
8967 * dwarf2-frame.c (dwarf2_frame_cache, dwarf2_frame_this_id)
8968 (dwarf2_frame_sniffer): Update.
8969 (dwarf2_signal_frame_this_id): New function.
8970 (dwarf2_signal_frame_unwind): Use it.
8971 (dwarf2_frame_base_sniffer): Use frame_unwind_address_in_block.
8972 * frame.c (frame_func_unwind): Add this_type argument.
8973 (get_frame_func): Update.
8974 (frame_unwind_address_in_block): Add this_type argument and check it.
8976 (get_frame_address_in_block): Update.
8977 * frame.h (enum frame_type): Move higher in the file.
8978 (frame_unwind_address_in_block, frame_func_unwind): Add enum frame_type
8981 * alpha-mdebug-tdep.c, alpha-tdep.c, amd64-tdep.c, amd64obsd-tdep.c,
8982 arm-tdep.c, avr-tdep.c, cris-tdep.c, frv-tdep.c, h8300-tdep.c,
8983 hppa-tdep.c, i386-tdep.c, i386obsd-tdep.c, ia64-tdep.c,
8984 libunwind-frame.c, m32c-tdep.c, m32r-linux-tdep.c, m32r-tdep.c,
8985 m68hc11-tdep.c, m68k-tdep.c, m88k-tdep.c, mips-mdebug-tdep.c,
8986 mips-tdep.c, mn10300-tdep.c, mt-tdep.c, rs6000-tdep.c, s390-tdep.c,
8987 score-tdep.c, sh-tdep.c, sh64-tdep.c, sparc-tdep.c,
8988 sparc64obsd-tdep.c, spu-tdep.c, v850-tdep.c, vax-tdep.c,
8989 xstormy16-tdep.c, xtensa-tdep.c: Update calls to
8990 frame_func_unwind and frame_unwind_address_in_block to specify
8991 the frame type. Use frame_unwind_address_in_block instead of
8992 frame_pc_unwind in sniffers.
8994 2007-02-27 Daniel Jacobowitz <dan@codesourcery.com>
8996 * frame.c (deprecated_selected_frame): Rename to...
8997 (selected_frame): ...this. Make static.
8998 (get_selected_frame, select_frame): Update.
8999 * frame.h (deprected_select_frame): Delete.
9000 (deprecated_safe_get_selected_frame): Update comments.
9002 * breakpoint.c, cli/cli-cmds.c, f-valprint.c, infcmd.c, inflow.c,
9003 infrun.c, stack.c, tui/tui-disasm.c, tui/tui-source.c,
9004 tui/tui-winsource.c, valops.c, varobj.c, findvar.c, macroscope.c,
9005 parse.c, regcache.h, sh64-tdep.c, tui/tui-hooks.c, tui/tui-win.c,
9006 tui/tui.c: Replace references to deprecated_selected_frame.
9008 2007-02-27 Fred Fish <fnf@specifix.com>
9010 * rs6000-tdep.c (skip_prologue): Recognize addi instructions that
9011 directly decrement the stack pointer, accumulate their operand into
9012 the stack offset, and mark the function as not being frameless.
9014 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
9016 * arch-utils.c (selected_byte_order): New.
9017 * arch-utils.h (selected_byte_order): New prototype.
9018 * remote-sim.c (gdbsim_open): Use selected_byte_order.
9020 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
9022 * symfile.c (place_section): Check SEC_ALLOC. Do not check VMA.
9023 (default_symfile_offsets): Check VMA here. Update section VMAs.
9025 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
9027 * remote.c (init_remote_state): Add special handling for placeholder
9030 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
9032 * Makefile.in (XMLFILES): Include $(TDEP_XML).
9033 (filenames_h): New variable.
9034 (clean): Clean up xml-builtin.c and stamp-xml.
9035 (arm-linux-nat.o): Update.
9036 * config/arm/linux.mh (TDEP_XML): Define.
9037 * arm-linux-nat.c (PTRACE_GETWMMXREGS, PTRACE_SETWMMXREGS): Define.
9038 (arm_linux_has_wmmx_registers): New.
9039 (GET_THREAD_ID): Fix typo.
9040 (IWMMXT_REGS_SIZE): Define.
9041 (fetch_wmmx_regs, store_wmmx_regs): New.
9042 (arm_linux_fetch_inferior_registers): Use fetch_wmmx_regs.
9043 (arm_linux_store_inferior_registers): Use store_wmmx_regs.
9044 (super_xfer_partial, arm_linux_xfer_partial): New.
9045 (_initialize_arm_linux_nat): Use them.
9046 * xml-support.c (fetch_xml_builtin): Move outside HAVE_LIBEXPAT.
9047 (xml_builtin_xfer_partial): New function.
9048 * xml-support.h (xml_builtin_xfer_partial): New prototype.
9049 * NEWS: Update mention of iWMMXt support.
9051 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
9053 * arm-tdep.c (arm_scan_prologue): Do not record FPA register saves
9054 if there are no FPA registers.
9055 (arm_dwarf_reg_to_regnum): New function.
9056 (arm_register_type, arm_register_name): Return minimal values for
9057 unsupported registers.
9058 (arm_register_sim_regno): Handle iWMMXt registers.
9059 (arm_gdbarch_init): Record missing FPA registers if indicated by
9060 a target description. Recognize iWMMXt registers. Only register
9061 "info float" for FPA. Use ARM_NUM_REGS. Register
9062 arm_dwarf_reg_to_regnum.
9063 * arm-tdep.h (enum gdb_regnum): Add ARM_NUM_REGS and iWMMXt
9065 (struct gdbarch_tdep): Add have_fpa_registers.
9066 * features/xscale-iwmmxt.xml: Update capitalization.
9067 * regformats/arm-with-iwmmxt.dat: Regenerated.
9069 2007-02-24 Kevin Buettner <kevinb@redhat.com>
9071 * NEWS (New targets): Add entry for the Toshiba Media Processor.
9073 2007-02-23 Kevin Buettner <kevinb@redhat.com>
9075 * MAINTAINERS (mep): New target.
9077 2007-02-23 Kevin Buettner <kevinb@redhat.com>
9079 From Jim Blandy, Dave Brolley, Kevin Buettner, Don Howard, and
9081 * Makefile.in (elf_mep_h, mep_desc_h, mep_opc_h): New variables.
9082 (mep-tdep.o): New rule.
9083 * configure.tgt (mep-*-*): New target.
9084 * mep-tdep.c: New file.
9085 * config/mep/mep.mt: New file.
9087 2007-02-22 Markus Deuling <deuling@de.ibm.com>
9089 * infrun.c (inferior_stop_reason, print_stop_reason): Remove
9090 BREAKPOINT_HIT and STOP_UNKNOWN.
9092 2007-02-22 Markus Deuling <deuling@de.ibm.com>
9094 * valops.c (value_ind): Fix unary * handling of TYPE_CODE_INT.
9096 2007-02-20 Joel Brobecker <brobecker@adacore.com>
9098 * gdb_expat.h (XMLCALL): Define if not already defined.
9100 2007-02-20 Andreas Schwab <schwab@suse.de>
9102 * Makefile.in (symfile.o): Update dependencies.
9104 2007-02-20 Daniel Jacobowitz <dan@codesourcery.com>
9106 * MAINTAINERS: Disable -Werror for cris simulator. Build
9107 sparc64-solaris2.10 instead of the broken sparc-elf.
9108 * solib-frv.c: Include "solib.h".
9109 * Makefile.in (solib-frv.o): Update.
9110 * mt-tdep.c (mt_gdbarch_init): Correct typo in floatformats patch.
9111 * xtensa-tdep.c (xtensa_regset_from_core_section): Cast size_t to int.
9112 (xtensa_frame_this_id, xtensa_frame_prev_register)
9113 (xtensa_push_dummy_call): Use %p.
9115 2007-02-16 Daniel Jacobowitz <dan@codesourcery.com>
9117 * avr-tdep.c, hppa-tdep.c, hppabsd-tdep.c, i386-tdep.c,
9118 ia64-tdep.c, m68k-tdep.c, mips-linux-tdep.c, ppcobsd-tdep.c,
9119 sparc-linux-tdep.c: Include "gdbtypes.h" instead of "floatformat.h".
9120 * Makefile.in (avr-tdep.o, hppabsd-tdep.o, hppa-tdep.o, i386-tdep.o)
9121 (ia64-tdep.o, m68k-tdep.o, mips-linux-tdep.o, ppcobsd-tdep.o)
9122 (sparc-linux-tdep.o): Update.
9124 2007-02-15 Maxim Grigoriev <maxim2405@gmail.com>
9126 * xtensa-tdep.h (xtensa_reg_mask_t): New.
9127 (xtensa_mask_t): Change mask field to be a separate array.
9128 * xtensa-tdep.c (extract_call_winsize, xtensa_pseudo_register_read)
9129 (xtensa_pseudo_register_write, xtensa_unwind_pc)
9130 (xtensa_unwind_dummy_id, xtensa_push_dummy_call)
9131 (xtensa_breakpoint_from_pc): Remove implicit type casting.
9132 * xtensa-config.c (mask0, mask1, mask2, mask3, mask4, mask5)
9133 (mask6, mask7, mask8, mask9, mask10, mask11, mask12, mask13)
9134 (mask14, mask15): Rename to
9135 (xtensa_mask0, xtensa_mask1, xtensa_mask2, xtensa_mask3)
9136 (xtensa_mask4, xtensa_mask5, xtensa_mask6, xtensa_mask7)
9137 (xtensa_mask8, xtensa_mask9, xtensa_mask10, xtensa_mask11)
9138 (xtensa_mask12, xtensa_mask13, xtensa_mask14, xtensa_mask15): this.
9139 (xtensa_submask0, xtensa_submask1, xtensa_submask2, xtensa_submask3)
9140 (xtensa_submask4, xtensa_submask5, xtensa_submask6, xtensa_submask7)
9141 (xtensa_submask8, xtensa_submask9, xtensa_submask10)
9142 (xtensa_submask11, xtensa_submask12, xtensa_submask13)
9143 (xtensa_submask14, xtensa_submask15): New.
9144 (rmap): Follow strict aliasing rules doing static initialization.
9146 2007-02-13 Daniel Jacobowitz <dan@codesourcery.com>
9148 * target-descriptions.c (tdesc_named_type): Move code_ptr and data_ptr
9149 handling from here...
9150 (tdesc_register_type): ...to here.
9151 * xml-tdesc.c (tdesc_start_reg): Allow code_ptr and data_ptr.
9152 * features/arm-core.xml: Use code_ptr and data_ptr.
9154 2007-02-13 Denis Pilat <denis.pilat@st.com>
9156 * varobj.h (enum varobj_update_error): New enum.
9157 * varobj.c (struct varobj_root): Add is_valid member.
9158 (varobj_get_type): Check for invalid varobj.
9159 (varobj_get_attributes): Likewise.
9160 (variable_editable):Likewise.
9161 (varobj_update): Likewise. Use varobj_update_error.
9162 (new_root_variable): Set root varobj as valid by default.
9163 (varobj_invalidate): New function.
9164 * symfile.c (clear_symtab_users): Use varobj_invalidate.
9165 * mi/mi-cmd-var.c (varobj_update_one): Change return type to void.
9166 Use varobj_update_error.
9168 2007-02-12 Pierre Muller <muller@ics.u-strasbg.fr>
9171 * dwarfread.c (set_cu_language): Recognize DW_LANG_Pascal83 as
9172 Pascal language marker.
9173 * dwarf2read.c (set_cu_language): Likewise.
9175 2007-02-12 Corinna Vinschen <vinschen@redhat.com>
9177 * win32-nat.c (win32_wait): Reset terminal pgrp to GDB.
9178 (do_initial_win32_stuff): Call terminal_init_inferior_with_pgrp
9179 instead of target_terminal_init since inferior_ptid isn't set yet.
9181 2007-02-10 Pedro Alves <pedro_alves@portugalmail.pt>
9183 * MAINTAINERS (Write After Approval): Add myself.
9185 2007-02-09 Fred Fish <fnf@specifix.com>
9187 Based on work by Apple Computer, Inc.
9188 * event-top.c (async_request_quit): Call quit() whenever either
9189 quit_flag is set or immediate_quit is set.
9191 2007-02-09 Gabriel Dos Reis <gdr@integrable-solutions.net>
9193 * ada-lang.c (remove_out_of_scope_renamings): Change third parameter's
9194 type to a pointer to const struct block.
9195 (ada_lookup_symbol_list): Don't cast away constness when calling
9196 remove_out_of_scope_renamings.
9198 2007-02-09 Gabriel Dos Reis <gdr@integrable-solutions.net>
9200 * linux-nat.c (linux_nat_find_memory_regions): Don't check the
9201 address of 'filename'; it is always non null.
9203 2007-02-09 Joel Brobecker <brobecker@adacore.com>
9205 * exec.c (add_to_section_table): Do not discard empty sections.
9207 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
9209 * features/Makefile, features/arm-with-iwmmxt.xml,
9210 features/gdbserver-regs.xsl, features/number-regs.xsl,
9211 features/sort-regs.xsl, features/xscale-iwmmxt.xml: New files.
9212 * regformats/arm-with-iwmmxt.dat: Generate.
9213 * NEWS: Mention iWMMXt.
9215 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
9217 * Makefile.in (arm-tdep.o, eval.o, target-descriptions.o)
9218 (xml-tdesc.o): Update.
9219 * xml-support.c: Add a comment.
9220 (gdb_xml_enums_boolean): New variable.
9221 (gdb_xml_parse_attr_enum): Use strcasecmp.
9222 * xml-support.h (gdb_xml_enums_boolean): Declare.
9223 * xml-tdesc.c (struct tdesc_parsing_data): Record current_feature,
9224 next_regnum, and current_union.
9225 (tdesc_start_feature, tdesc_start_reg, tdesc_start_union)
9226 (tdesc_end_union, tdesc_start_field, tdesc_start_vector)
9227 (field_attributes, union_children, reg_attributes, union_attributes)
9228 (vector_attributes, feature_attributes, feature_children): New.
9229 (target_children): Make static. Add <feature>.
9230 (tdesc_elements): Make static.
9231 * target-descriptions.c (struct tdesc_reg, tdesc_reg_p, type_p)
9232 (struct tdesc_feature, tdesc_feature_p): New types.
9233 (struct target_desc): Add features member.
9234 (struct tdesc_arch_data, tdesc_data): New.
9235 (target_find_description): Clarify error message. Warn about
9236 ignored register descriptions.
9237 (tdesc_has_registers, tdesc_find_feature, tdesc_feature_name)
9238 (tdesc_named_type, tdesc_data_init, tdesc_data_alloc)
9239 (tdesc_data_cleanup, tdesc_numbered_register)
9240 (tdesc_numbered_register_choices, tdesc_find_register)
9241 (tdesc_register_name, tdesc_register_type)
9242 (tdesc_remote_register_number, tdesc_register_reggroup_p)
9243 (set_tdesc_pseudo_register_name, set_tdesc_pseudo_register_type)
9244 (set_tdesc_pseudo_register_reggroup_p, tdesc_use_registers)
9245 (tdesc_free_reg, tdesc_create_reg, tdesc_free_feature)
9246 (tdesc_create_feature, tdesc_record_type): New.
9247 (free_target_description): Free features.
9248 (_initialize_target_descriptions): Initialize tdesc_data.
9249 * arch-utils.c (default_remote_register_number): New.
9250 * arch-utils.h (default_remote_register_number): New prototype.
9251 * target-descriptions.h (set_tdesc_pseudo_register_name)
9252 (set_tdesc_pseudo_register_type, set_tdesc_pseudo_register_reggroup_p)
9253 (tdesc_use_registers, tdesc_data_alloc, tdesc_data_cleanup)
9254 (tdesc_numbered_register, tdesc_numbered_register_choices)
9255 (tdesc_has_registers, tdesc_find_feature, tdesc_feature_name)
9256 (tdesc_named_type, tdesc_create_feature, tdesc_record_type)
9257 (tdesc_create_reg): Declare.
9258 * gdbarch.sh (remote_register_number): New entry.
9259 * gdbarch.c, gdbarch.h: Regenerate.
9260 * remote.c (init_remote_state): Use gdbarch_remote_register_number.
9261 * features/gdb-target.dtd: Add feature, reg, vector, union, and field.
9263 * arm-tdep.c (arm_register_aliases): New.
9264 (arm_register_name_strings): Rename to...
9265 (arm_register_names): ...this. Make const. Delete the old version.
9266 (current_option, arm_register_byte): Delete.
9267 (set_disassembly_style): Simplify. Do not adjust arm_register_names.
9268 (value_of_arm_user_reg): New.
9269 (arm_gdbarch_init): Verify any described registers. Call
9270 tdesc_use_registers. Don't use arm_register_byte. Create aliases
9271 for standard register names.
9272 (_initialize_arm_tdep): Do not adjust arm_register_names.
9273 * user-regs.c (struct user_reg): Add baton member.
9274 (append_user_reg, user_reg_add_builtin, user_regs_init)
9275 (user_reg_add, value_of_user_reg): Use a baton for user
9277 * std-regs.c: Update.
9278 * user-regs.h (user_reg_read_ftype, user_reg_add_builtin)
9279 (user_reg_add): Add baton argument.
9280 * NEWS: Mention target description register support.
9281 * features/arm-core.xml, features/arm-fpa.xml: New.
9282 * eval.c (evaluate_subexp_standard): Allow ptype $register
9283 when the program is not running.
9285 2007-02-09 Nick Roberts <nickrob@snap.net.nz>
9287 * mi/mi-cmd-var.c (mi_cmd_var_create): Add value field.
9289 2007-02-08 Thiago Jung Bauermann <bauerman@br.ibm.com>
9291 * rs6000-tdep.c (gdb_print_insn_powerpc): Set
9292 info->disassembler_options to "any".
9294 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
9296 * varobj.c (install_new_value): Only call value_get_print_value
9299 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
9301 Reported by timeless@gmail.com:
9302 * gdb/target.c (target_flash_erase): Do not return void value.
9303 (target_flash_done): Likewise.
9304 * gdb/cli/cli-cmds.c (source_command): Likewise.
9306 2007-02-08 Fred Fish <fnf@specifix.com>
9308 Based on work by Apple Computer, Inc.
9309 * event-top.c (handle_sigint): Set quit_flag.
9310 (async_request_quit): Don't set quit_flag. Avoid calling quit()
9311 if quit_flag has already been reset.
9313 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
9315 * ser-mingw.c (pipe_windows_close): Move variable initialization back
9318 2007-02-08 Fred Fish <fnf@specifix.com>
9320 * defs.h (request_quit): Remove declaration.
9321 * utils.c (request_quit): Remove definition.
9323 2007-02-08 Joel Brobecker <brobecker@gnat.com>
9324 Jan Kratochvil <jan.kratochvil@redhat.com>
9325 Daniel Jacobowitz <dan@codesourcery.com>
9327 * rs6000-tdep.c (bl_to_blrl_insn_p): New function.
9328 (skip_prologue): Allow bl->blrl used by PIC code.
9330 2007-02-08 Mark Kettenis <kettenis@gnu.org>
9331 Daniel Jacobowitz <dan@codesourcery.com>
9333 * cp-valprint.c (cp_print_value_fields, cp_print_value): Always
9334 initialize tmp_obstack.
9335 * p-valprint.c (pascal_object_print_value_fields)
9336 (pascal_object_print_value): Likewise.
9338 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
9340 * features/feature_to_c.sh: Use %s to avoid problems with nawk.
9342 2007-02-08 Mark Kettenis <kettenis@gnu.org>
9344 * sparcnbsd-tdep.c: Include "gdbtypes.h" instead of "floatformat.h".
9345 * Makefile.in (sparcnbsd-tdep.o): Update dependencies.
9347 2007-02-07 Daniel Jacobowitz <dan@codesourcery.com>
9349 * xml-tdesc.c (struct tdesc_xml_cache, tdesc_xml_cache_s)
9351 (tdesc_parse_xml): Cache expanded descriptions.
9353 2007-02-07 Daniel Jacobowitz <dan@codesourcery.com>
9355 * Makefile.in (XMLFILES): New.
9356 (COMMON_OBS): Add xml-builtin.o.
9357 (xml-builtin.c, stamp-xml): New rules.
9358 (xml-tdesc.o): Update.
9359 * features/feature_to_c.sh: New file.
9360 * xml-support.c (MAX_XINCLUDE_DEPTH): Define.
9361 (struct gdb_xml_parser): Add dtd_name and is_xinclude.
9362 (gdb_xml_start_element): Initialize scope after possibly reallocating
9363 scopes. Move cleanup later. Handle the XInclude description
9365 (gdb_xml_end_element): Only parse the body if there is a current element.
9366 Call XML_DefaultCurrent if there is no element.
9367 (gdb_xml_fetch_external_entity, gdb_xml_use_dtd): New.
9368 (struct xinclude_parsing_data, xinclude_start_include)
9369 (xinclude_end_include, xml_xinclude_default)
9370 (xml_xinclude_start_doctype, xml_xinclude_end_doctype)
9371 (xml_xinclude_xml_decl, xml_xinclude_cleanup, xinclude_attributes)
9372 (xinclude_elements, xml_process_xincludes, fetch_xml_builtin): New.
9373 * xml-support.h (xml_fetch_another, xml_process_xincludes)
9374 (fetch_xml_builtin, xml_builtin, gdb_xml_use_dtd): New declarations.
9375 * xml-tdesc.c (tdesc_parse_xml): Add fetcher_baton argument. Expand
9376 XInclude directives. Use the compiled in DTD.
9377 (fetch_xml_from_file): Add baton argument. Treat it as a containing
9378 directory name. Do not warn here.
9379 (file_read_description_xml): Update call. Warn here instead. Pass
9381 (fetch_available_features_from_target): New.
9382 (target_read_description_xml): Use it.
9383 * features/gdb-target.dtd: Add copyright notice. Use xinclude.dtd
9385 * features/xinclude.dtd: New file.
9387 2007-02-05 Daniel Jacobowitz <dan@codesourcery.com>
9389 * linux-thread-db.c (check_for_thread_db): Return early if we have
9390 no libthread_db support.
9392 2007-02-05 Daniel Jacobowitz <dan@codesourcery.com>
9394 * mi/mi-parse.h: Include <sys/time.h>.
9396 2007-02-05 Nick Roberts <nickrob@snap.net.nz>
9398 * mi/mi-cmd-stack.c (list_args_or_locals): Use common_val_print
9399 instead of print_variable_value to print values.
9401 2007-02-03 Nick Roberts <nickrob@snap.net.nz>
9403 * mi/mi-main.c: Numerous formatting changes.
9404 (mi_cmd_data_write_register_values): Replace clause inadvertantly
9405 removed in my previous change.
9407 2007-02-03 Eli Zaretskii <eliz@gnu.org>
9409 * mi/mi-main.c (mi_load_progress, timestamp, print_diff_now):
9410 Use 1000000L instead of 1000000.
9412 2007-02-03 Nick Roberts <nickrob@snap.net.nz>
9414 Based on work by Apple Computer, Inc.
9416 * configure.ac: Test for sys/resource.h and getrusage.
9417 * configure, config.in: Regenerate.
9419 * mi/mi-main.c: Include <sys/resource.h> if present.
9420 (rusage): Declare if HAVE_GETRUSAGE.
9421 (current_command_ts, do_timings): New static variables.
9422 (timestamp, print_diff_now, print_diff, timeval_diff):
9423 New static timing functions.
9424 (mi_cmd_enable_timings): New function for new MI command.
9425 (captured_mi_execute_command, mi_execute_async_cli_command):
9426 Call timing functions.
9428 * mi/mi-cmds.c (mi_cmds): Add entry for new MI command
9431 * mi/mi-cmds.h (mi_cmd_enable_timings): New extern.
9433 * mi/mi-parse.h: (mi_timestamp): New structure.
9434 (mi_parse): Add mi_timestamp* member.
9436 2007-02-02 Denis Pilat <denis.pilat@st.com>
9438 * thread.c (make_cleanup_restore_current_thread): New function.
9439 (info_threads_command): Use of make_cleanup_restore_current_thread
9440 to restore the current thread and the selected frame.
9441 (restore_selected_frame): New function.
9442 (struct current_thread_cleanup): Add frame_id field.
9443 (do_restore_current_thread_cleanup): Add restoring of the selected
9445 (make_cleanup_restore_current_thread): Likewise.
9446 (thread_apply_all_command): backup the selected frame while
9447 entering the function and restore it at exit.
9448 (thread_apply_command): Likewise.
9450 2007-02-02 Denis Pilat <denis.pilat@st.com>
9452 * MAINTAINERS (Write After Approval): Add myself to the list.
9454 2007-02-01 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
9456 * gdb/remote-m32r.sdi.c (m32r_fetch_register): Change PWD mask.
9457 (m32r_store_register): Ditto.
9459 2007-01-30 Vladimir Prus <vladimir@codesourcery.com>
9461 * ser-mingw.c (pipe_windows_open)
9462 (pipe_windows_read, pipe_windows_write): Declare
9463 variables at the top of the function.
9465 2007-01-29 Daniel Jacobowitz <dan@codesourcery.com>
9467 * doublest.c (floatformat_from_length): Use the right element from
9468 gdbarch floatformats.
9469 (floatformat_from_type, extract_typed_floating)
9470 (store_typed_floating): Likewise.
9471 * doublest.h: Remove declarations for undefined floatformat arrays.
9472 * gdbarch.sh (float_format, double_format, long_double_format): Change
9474 (pformat): Update for pairs.
9475 * gdbarch.c, gdbarch.h: Regenerated.
9476 * gdbtypes.c (floatformats_ieee_single, floatformats_ieee_double)
9477 (floatformats_ieee_double_littlebyte_bigword)
9478 (floatformats_i387_ext, floatformats_m68881_ext, floatformats_arm_ext)
9479 (floatformats_ia64_spill, floatformats_ia64_quad, floatformats_vax_f)
9480 (floatformats_vax_d): New variables.
9481 (builtin_type_ieee_single, builtin_type_ieee_double)
9482 (builtin_type_arm_ext, builtin_type_ia64_spill)
9483 (builtin_type_ia64_quad): Replace arrays with individual types.
9484 (builtin_type_ieee_single_big, builtin_type_ieee_single_little)
9485 (builtin_type_ieee_double_big, builtin_type_ieee_double_little)
9486 (builtin_type_ieee_double_littlebyte_bigword, builtin_type_i960_ext)
9487 (builtin_type_m88110_ext, builtin_type_m88110_harris_ext)
9488 (builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword)
9489 (builtin_type_ia64_spill_big, builtin_type_ia64_spill_little)
9490 (builtin_type_ia64_quad_big, builtin_type_ia64_quad_little): Delete
9491 unused and endian-specific types.
9492 (recursive_dump_type): Update for floatformat pairs.
9493 (build_flt): Move higher. Handle bit == -1. Take a floatformat pair.
9494 (build_gdbtypes): Use build_flt.
9495 (_initialize_gdbtypes): Update set of initialized types.
9496 * gdbtypes.h: Update declarations to match gdbtypes.c.
9497 (struct main_type): Store a pointer to two floatformats.
9498 * arch-utils.c (default_float_format, default_double_format): Delete.
9499 * arch-utils.h (default_float_format, default_double_format): Delete.
9501 * arm-tdep.c, avr-tdep.c, hppa-tdep.c, hppabsd-tdep.c, i386-tdep.c,
9502 ia64-tdep.c, iq2000-tdep.c, m68k-tdep.c, m88k-tdep.c,
9503 mips-linux-tdep.c, mips-tdep.c, mt-tdep.c, ppcobsd-tdep.c,
9504 sparc-linux-tdep.c, sparc-tdep.c, sparcnbsd-tdep.c, spu-tdep.c,
9505 vax-tdep.c, alpha-tdep.c, ppc-sysv-tdep.c: Update.
9507 2007-01-29 Joel Brobecker <brobecker@adacore.com>
9509 * target.c (maintenance_print_target_stack): New function.
9510 (initialize_targets): Add new "maintenance print target-stack"
9513 2007-01-28 Mark Kettenis <kettenis@gnu.org>
9515 * dwarf2read.c (new_symbol): Handle DW_AT_decl_file being zero.
9517 2007-01-27 Daniel Jacobowitz <dan@codesourcery.com>
9519 * dwarf2loc.h (struct dwarf2_locexpr_baton): Change size to a long.
9520 (struct dwarf2_loclist_baton): Likewise.
9522 2007-01-27 Eli Zaretskii <eliz@gnu.org>
9524 * cli/cli-script.c: Include breakpoint.h.
9525 (build_command_line): Require arguments only for if and while
9527 (get_command_line, execute_user_command, execute_control_command):
9528 Fix wording of warning messages.
9529 (print_command_lines): Print breakpoint commands.
9530 (execute_control_command): Call commands_from_control_command to
9531 handle the `commands' command inside a body of a flow-control
9533 (read_next_line): Recognize the `commands' command and build a
9534 command line structure for it.
9535 (recurse_read_control_structure, read_command_lines): Handle
9536 `commands' similarly to `if' and `while'.
9538 * breakpoint.c (get_number_trailer): Document the special meaning
9539 of NULL as the first argument PP.
9540 (commands_from_control_command): New function.
9542 * breakpoint.h (commands_from_control_command): Add prototype.
9544 * defs.h (commands_control): New enumerated value for enum
9545 command_control_type.
9547 2007-01-26 Joel Brobecker <brobecker@adacore.com>
9549 * ada-lang.c (ada_exception_breakpoint_ops): Fix typo in function name.
9550 (ada_exception_sal): Update accordingly.
9552 2007-01-26 Jan Kratochvil <jan.kratochvil@redhat.com>
9554 * c-valprint.c (c_val_print): Require strings to be of no-signed CHARs.
9555 * NEWS: Describe CHAR array vs. string identifcation rules.
9557 2007-01-25 Paul Brook <paul@codesourcery.com>
9559 * arm-tdep.c (arm_get_next_pc): Fix bitfield off-by-one error.
9561 2007-01-24 Jim Blandy <jimb@codesourcery.com>
9563 * dwarf2loc.c (dwarf2_evaluate_loc_desc): When the location
9564 expression is empty, bother to return the 'optimized out' value we
9565 construct. (Thanks to Carl Burch.)
9567 2007-01-24 Vladimir Prus <vladimir@codesourcery.com>
9569 * varobj.c (c_value_of_root, c_value_of_child)
9570 (cplus_describe_child): Don't call release_value.
9572 2007-01-24 Thiemo Seufer <ths@mips.com>
9574 * mips-linux-tdep.c (mips_linux_n64_rt_sigframe): Fix struct
9577 2007-01-24 Vladimir Prus <vladimir@codesourcery.com>
9579 Refactor getting children name, value and type access
9581 * varobj.c (get_type_deref): Remove.
9582 (adjust_value_for_child_access): New.
9583 (c_number_of_children): Use the above.
9584 (c_describe_child): Likewise.
9585 (enum accessibility): New.
9586 (match_accessibility): New function.
9587 (cplus_describe_child): New function.
9588 (cplus_name_of_child, cplus_value_of_child)
9589 (cplus_type_of_child): Reimplement in terms
9590 of cplus_describe_child.
9591 (cplus_number_of_children): Use
9592 adjust_value_for_child_access.
9594 2007-01-24 Vladimir Prus <vladimir@codesourcery.com>
9596 Fix computation of the 'editable' attribute and
9597 value changeability for for references.
9598 * varobj.c (get_value_type): New function.
9599 (c_variable_editable): Use get_value_type.
9600 (varobj_value_is_changeable): Likewise.
9602 2007-01-24 Joel Brobecker <brobecker@adacore.com>
9604 * source.c (find_and_open_source): Try rewriting the source
9605 path inside filename if dirname is NULL.
9607 2007-01-24 Joel Brobecker <brobecker@adacore.com>
9609 * dwarf2read.c (add_partial_symbol): Create an extra partial
9610 symbol in the VAR_DOMAIN for Ada structures, unions or enums.
9611 (new_symbol): Likewise for symbols.
9613 2007-01-24 Nick Roberts <nickrob@snap.net.nz>
9615 * mi/mi-main.c (mi_cmd_execute): Call free_all_values.
9617 2007-01-23 Vladimir Prus <vladimir@codesourcery.com>
9619 * value.c (value_primitive_field): Copy the full 'location'
9620 contents, instead of assuming that copying ADDRESS will
9621 bring over everything in the union. Remove obsolete comment.
9623 2007-01-23 Masaki Muranaka <monaka@monami-software.com>
9625 * m32c-tdep.c (make_regs, m32c_analyze_prologue)
9626 (m32c_skip_trampoline_code, m32c_m16c_address_to_pointer)
9627 (m32c_m16c_pointer_to_address): Separate code from declarations.
9629 2007-01-23 Nick Hudson <nick.hudson@dsl.pipex.com>
9631 * target.c (update_current_target): Correct typo.
9633 2007-01-22 Masaki Muranaka <monaka@monami-software.com>
9635 * xstormy16-tdep.c (xstormy16_skip_prologue): Separate code from a
9638 2007-01-11 Andrew Cagney <cagney@redhat.com>
9639 Daniel Jacobowitz <dan@codesourcery.com>
9640 Jan Kratochvil <jan.kratochvil@redhat.com>
9642 * dwarf2-frame.c (execute_cfa_program): New support of
9643 `DW_CFA_GNU_negative_offset_extended'.
9645 2007-01-21 Daniel Jacobowitz <dan@codesourcery.com>
9647 * NEWS: Mention flash support for "load" and new remote packets.
9649 2007-01-21 Markus Deuling <deuling@de.ibm.com>
9651 * breakpoint.c (delete_command): Skip redundant loop iterations.
9653 2007-01-21 Daniel Jacobowitz <dan@codesourcery.com>
9655 * gdbarch.sh (register_type): Update comment.
9656 * gdbarch.h: Regenerated.
9657 * arch-utils.c (generic_register_size): Call register_type.
9658 * ia64-tdep.c (ia64_extract_return_value): Likewise.
9659 * m32c-tdep.c (check_for_saved): Likewise.
9660 * mips-tdep.c (mips_print_register, print_gp_register_row)
9661 (mips_print_registers_info): Likewise.
9662 * sh-tdep.c (sh_pseudo_register_read, sh_pseudo_register_write):
9664 * sh64-tdep.c (sh64_pseudo_register_read, sh64_pseudo_register_write)
9665 (sh64_do_register, sh64_print_register)
9666 (sh64_media_print_registers_info): Likewise.
9667 * tui/tui-regs.c (tui_register_format): Likewise.
9669 2007-01-21 Daniel Jacobowitz <dan@codesourcery.com>
9671 * objfiles.h (ALL_PRIMARY_SYMTABS): Define.
9673 * ada-lang.c (symtab_for_sym, ada_lookup_symbol_list)
9674 (ada_lookup_symbol): Use ALL_PRIMARY_SYMTABS.
9675 * cp-support.c (make_symbol_overload_list_qualified): Likewise.
9676 * symtab.c (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
9677 (basic_lookup_transparent_type, find_pc_sect_symtab, search_symbols)
9678 (make_symbol_completion_list): Likewise.
9680 2007-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
9681 Daniel Jacobowitz <dan@codesourcery.com>
9683 * buildsym.c (end_symtab): Use preallocated symtab if available.
9684 Fill in SYMBOL_SYMTAB.
9685 * buildsym.h (struct subfile): Add symtab member.
9686 * dwarf2read.c (struct dwarf2_cu): Add line_header.
9687 (struct file_entry): Add symtab.
9688 (free_cu_line_header): New function.
9689 (read_file_scope): Use it. Save line_header in the cu. Process
9691 (add_file_name): Initialize new symtab member.
9692 (dwarf_decode_lines): Create symtabs for included files.
9693 (new_symbol): Set SYMBOL_SYMTAB.
9694 * symtab.c (lookup_symbol): Use SYMBOL_SYMTAB.
9695 (search_symbols): Likewise.
9696 * symtab.h (struct symbol): Add symtab member.
9697 (SYMBOL_SYMTAB): Define.
9699 2007-01-20 Daniel Jacobowitz <dan@codesourcery.com>
9701 * symfile.c (allocate_symtab): Remove INIT_EXTRA_SYMTAB_INFO.
9703 2007-01-20 Daniel Jacobowitz <dan@codesourcery.com>
9705 * arch-utils.c (show_endian): Correct reversed condition.
9707 2007-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
9709 * MAINTAINERS (Write After Approval): Add myself.
9711 2007-01-16 Daniel Jacobowitz <dan@codesourcery.com>
9712 Vladimir Prus <vladimir@codesourcery.com>
9714 Fix 'selected frame' varobjs.
9715 * varobj.c (struct varobj): Remove the error field.
9716 (varobj_set_value): Don't check var->error.
9717 (install_new_value): Don't set var->error.
9718 (varobj_update): Always pass the new value
9719 of the root via install_new_value.
9720 (create_child): Don't set error field.
9721 (new_variable): Likewise.
9722 (c_value_of_root): Always reevaluate the value
9723 of selected frame varobjs in the selected frame.
9724 Don't call reinit_frame_cache.
9726 2007-01-15 Joel Brobecker <brobecker@adacore.com>
9728 * source.c (_initialize_source): Improve the help text of
9729 the substitute-path commands.
9731 2007-01-14 Mark Kettenis <kettenis@gnu.org>
9733 * frv-tdep.c (frv_gdbarch_init, frv_register_name)
9734 (frv_breakpoint_from_pc, frv_gdbarch_adjust_breakpoint_address)
9735 (frv_skip_prologue): Remove prototypes.
9736 (frv_adjust_breakpoint_address): Renamed from
9737 frv_gdbarch_adjust_breakpoint_address.
9738 (frv_gdbarch_init): Adjust.
9740 2007-01-13 Mark Kettenis <kettenis@gnu.org>
9742 * gdbarch.sh (deprecated_extract_return_value)
9743 (deprecated_store_return_value): Remove.
9744 (extract_return_value, store_return_value): Remove default values.
9745 * gdbarch.c, gdbarch.h: Regenerate.
9746 * arch-utils.c, arch-utils.h (legacy_extract_return_value)
9747 (legacy_store_return_value): Remove.
9748 * regcache.c, regcache.h (deprecated_grub_regcache_for_registers):
9751 * mi/mi-main.c: Remove obsolete comment.
9753 * regcache.c, regcache.h (deprecated_register_bytes)
9754 (deprecated_read_register_bytes)
9755 (deprecated_write_register_bytes): Remove.
9757 * frame.c (get_frame_register_bytes, put_frame_register_bytes):
9758 Don't forget to move destination pointer.
9760 2007-01-01 Mark Kettenis <kettenis@gnu.org>
9762 * config/i386/nm-i386gnu.h (CHILD_PREPARE_TO_STORE): Remove.
9764 2007-01-11 Ulrich Weigand <uweigand@de.ibm.com>
9766 * spu-tdep.c (spu_analyze_prologue): Fix erroneous backtrace
9767 past entry function with recent newlib.
9769 2007-01-11 Vladimir Prus <vladimir@codesourcery.com>
9771 * gdb.texinfo (GDB/MI Variable Objects): Improve the
9772 introduction. Specify -var-update more exactly.
9774 2007-01-11 Daniel Jacobowitz <dan@codesourcery.com>
9776 * frame.c (get_prev_frame_1): Check PC_REGNUM before using it.
9778 2007-01-10 Jim Blandy <jimb@codesourcery.com>
9780 * MAINTAINERS (Global Maintainers): Ulrich Weigand has accepted
9781 the Global Maintainers' invitation to be a global maintainer.
9783 2007-01-10 Daniel Jacobowitz <dan@codesourcery.com>
9785 * infrun.c (singlestep_pc): New variable.
9786 (resume): Set singlestep_pc.
9787 (context_switch): Add a debugging message. Flush the frame cache.
9788 (handle_inferior_event): Add debugging messages. Handle thread
9789 hops when a software single step has completed. Let context_switch
9790 handle flushing the frame cache.
9792 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
9794 * NEWS: Mention target descriptions, "set tdesc filename",
9795 "unset tdesc filename", "show tdesc filename", and
9796 qXfer:features:read.
9797 * arch-utils.c (choose_architecture_for_target): New function.
9798 (gdbarch_info_fill): Call it.
9799 * target-descriptions.c (struct property): Make members non-const.
9800 (struct target_desc): Add arch member.
9801 (target_description_filename): New variable.
9802 (target_find_description): Try via XML first.
9803 (tdesc_architecture): New.
9804 (free_target_description, make_cleanup_free_target_description): New.
9805 (set_tdesc_property): Call xstrdup.
9806 (set_tdesc_architecture, tdesc_set_cmdlist, tdesc_show_cmdlist)
9807 (tdesc_unset_cmdlist, unset_tdesc_cmd, unset_tdesc_filename_cmd)
9808 (set_tdesc_cmd, show_tdesc_cmd, set_tdesc_filename_cmd)
9809 (show_tdesc_filename_cmd, _initialize_target_descriptions): New.
9810 * target-descriptions.h (tdesc_architecture)
9811 (make_cleanup_free_target_description, set_tdesc_architecture): New
9813 * Makefile.in (SFILES): Add xml-tdesc.c.
9814 (COMMON_OBS): Add xml-tdesc.o.
9815 (target-descriptions.o): Update.
9816 (xml-tdesc.o): New rule.
9817 * xml-tdesc.c, xml-tdesc.h: New files.
9818 * remote.c (PACKET_qXfer_features): New enum.
9819 (remote_protocol_features): Add qXfer:features:read.
9820 (remote_xfer_partial): Handle TARGET_OBJECT_AVAILABLE_FEATURES.
9821 (_initialize_remote): Register qXfer:features:read.
9822 * target.h (enum target_object): Add TARGET_OBJECT_AVAILABLE_FEATURES.
9823 * features/gdb-target.dtd: New file.
9825 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
9827 * copyright.sh: Clarify error.
9829 2007-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
9831 * symtab.c (matching_bfd_sections): Fix VMA matching for
9834 2007-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
9836 * minsyms.c (lookup_minimal_symbol_by_pc_section): Handle
9839 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
9841 Updated copyright notices for most files.
9843 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
9845 * copyright.sh (prunes): Add step-line.inp and step-line.c.
9847 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
9849 * configure.ac (DEBUGDIR_RELOCATABLE): Define for debugdir inside
9851 (TARGET_SYSTEM_ROOT_RELOCATABLE): Allow for exec_prefix being
9853 * configure, config.in: Regenerate.
9854 * defs.h (debug_file_directory): Declare.
9855 * main.c (captured_main): Canonicalize gdb_sysroot. Assume
9856 TARGET_SYSTEM_ROOT is defined. Initialize debug_file_directory and
9857 relocate it if DEBUGDIR_RELOCATABLE.
9858 * symfile.c (debug_file_directory): Make non-static.
9859 (find_separate_debug_file): Look for debug info for SYSROOT/PATH
9860 in DEBUGDIR/PATH if DEBUGDIR is inside SYSROOT.
9861 (_initialize_symfile): Don't initialize debug_file_directory here.
9863 2007-01-09 Jim Blandy <jimb@codesourcery.com>
9865 * score-tdep.c (score_push_dummy_call): Don't mix declarations and
9868 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
9870 * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Use
9871 frame_unwind_register to recurse.
9872 * alpha-tdep.c (alpha_sigtramp_frame_prev_register): Likewise.
9873 (alpha_heuristic_frame_prev_register): Likewise.
9874 * h8300-tdep.c (h8300_frame_prev_register): Likewise.
9875 * m32c-tdep.c (m32c_prev_register): Likewise.
9876 * frame.c (frame_register_unwind_location): Remove FIXME.
9878 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
9879 Eli Zaretskii <eliz@gnu.org>
9881 * copyright.sh: New file.
9883 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
9885 * configure.ac: Check for XML_StopParser.
9886 * xml-support.c (gdb_xml_body_text): Check for an error.
9887 (gdb_xml_start_element_wrapper): Conditionalize call to XML_StopParser.
9888 (gdb_xml_end_element_wrapper): Likewise.
9889 * config.in, configure: Regenerated.
9891 2007-01-08 Daniel Jacobowitz <dan@codesourcery.com>
9893 * varobj.c (install_new_value): Always update print_value.
9894 (value_get_print_value): Immediately return NULL for missing
9897 2007-01-08 Jim Blandy <jimb@codesourcery.com>
9899 * configure.ac: Tighten pattern for extracting value of
9900 DEPRECATED_TM_FILE from the target makefile fragment.
9901 * configure: Regenerated.
9903 2007-01-08 Daniel Jacobowitz <dan@codesourcery.com>
9905 * linux-nat.c (struct simple_pid_list): Add status.
9906 (add_to_pid_list): Record the PID's status.
9907 (linux_record_stopped_pid): Likewise. Make static.
9908 (pull_pid_from_list): Return the saved status.
9909 (linux_nat_handle_extended): Deleted.
9910 (linux_handle_extended_wait): Combine with linux_nat_handle_extended.
9911 Make static. Handle non-SIGSTOP for a new thread's first signal.
9912 (flush_callback): Handle unexpected pending signals.
9913 (linux_nat_wait): Update calls to changed functions.
9914 * linux-nat.h (linux_record_stopped_pid, linux_handle_extended_wait):
9915 Remove prototypes for newly static functions.
9917 2007-01-08 Ulrich Weigand <uweigand@de.ibm.com>
9919 * gdbarch.sh (value_from_register): New gdbarch function.
9920 * gdbarch.c, gdbarch.h: Regenerate.
9921 * findvar.c (default_value_from_register): New function.
9922 (value_from_register): Use gdbarch_value_from_register.
9923 * value.h (default_value_from_register): Declare.
9924 * spu-tdep.c (spu_convert_register_p, spu_register_to_value,
9925 spu_value_to_register): Remove.
9926 (spu_value_from_register): New function.
9927 (spu_gdbarch_init): Do not call set_gdbarch_convert_register_p,
9928 set_gdbarch_register_to_value, set_gdbarch_value_to_register.
9929 Call set_gdbarch_value_from_register.
9930 * s390-tdep.c (s390_convert_register_p, s390_register_to_value,
9931 s390_value_to_register): Remove.
9932 (s390_value_from_register): New function.
9933 (s390_gdbarch_init): Do not call set_gdbarch_convert_register_p,
9934 set_gdbarch_register_to_value, set_gdbarch_value_to_register.
9935 Call set_gdbarch_value_from_register.
9937 2007-01-08 Daniel Jacobowitz <dan@codesourcery.com>
9939 * NEWS: Add "set sysroot" and "show sysroot".
9940 * solib.c (solib_absolute_prefix): Delete. Replace
9941 all uses with gdb_sysroot.
9942 (_initialize_solib): Add "set sysroot" and "show sysroot".
9943 Make "solib-absolute-prefix" an alias to it.
9945 2007-01-08 Ulrich Weigand <uweigand@de.ibm.com>
9947 * frame.c (get_frame_register_bytes): New function.
9948 (put_frame_register_bytes): Likewise.
9949 * frame.h (get_frame_register_bytes): Declare.
9950 (put_frame_register_bytes): Likewise.
9951 * findvar.c (value_from_register): Always construct lval_register
9952 values. Use get_frame_register_bytes.
9953 * valops.c (value_assign): Use get_frame_register_bytes and
9954 put_frame_register_bytes.
9956 2007-01-08 Jim Blandy <jimb@codesourcery.com>
9958 * MAINTAINERS: Update Stan Shebs' email address.
9960 2007-01-07 Joel Brobecker <brobecker@adacore.com>
9962 * ada-lang.c (is_known_support_routine): Improve the implementation.
9964 2007-01-06 Joel Brobecker <brobecker@adacore.com>
9966 * ada-lang.c: Add include of source.h.
9967 (is_known_support_routine): Improve the check verifying that the file
9968 associated to this frame exists.
9969 * Makefile.in (ada-lang.o): Add dependency on source.h.
9971 2007-01-07 Jim Blandy <jimb@codesourcery.com>
9973 * ax-general.c (ax_const_l): Select proper opcode for the given
9976 2007-01-05 Vladimir Prus <vladimir@codesourcery.com>
9978 * varobj.c (c_value_of_root): Don't select frame if variable
9979 object is out of scope.
9981 2007-01-05 Nick Roberts <nickrob@snap.net.nz>
9983 * varobj.c (struct varobj): New member print_value.
9984 (install_new_value): Compare last printed value with current one
9985 instead of contents.
9986 (new_variable): Initialize var->print_value to NULL.
9987 (free_variable): Free var->print_value.
9988 (value_get_print_value): New function derived from
9989 c_value_of_variable.
9990 (c_value_of_variable): Use value_get_print_value.
9992 2007-01-05 Joel Brobecker <brobecker@adacore.com>
9994 * i386-tdep.c (i386_analyze_stack_align): Add comment.
9996 2007-01-05 Joel Brobecker <brobecker@adacore.com>
9998 * NEWS: Add entries for new catch commands.
10000 2007-01-05 Joel Brobecker <brobecker@adacore.com>
10002 * dwarf2read.c (partial_die_info): Add field has_byte_size.
10003 (add_partial_symbol): Correct identification of external references.
10004 (process_structure_scope): Likewise.
10005 (read_partial_die): Handle DW_AT_byte_size attribute.
10007 2007-01-05 Daniel Jacobowitz <dan@codesourcery.com>
10009 * xml-support.c (gdb_xml_end_element): Remove wrong backslashes.
10011 2007-01-05 Nick Roberts <nickrob@snap.net.nz>
10013 * varobj.c (get_type_deref): Fix variable objects for references to
10016 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
10018 * symtab.c (find_pc_sect_psymtab): Add comments. Handle psymtabs
10021 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
10023 * memory-map.c (struct_memory_map_parsing_data): Remove most
10024 members. Make property_name an array.
10025 (free_memory_map_parsing_data, memory_map_start_element)
10026 (memory_map_end_element, memory_map_character_data): Delete.
10027 (memory_map_start_memory, memory_map_end_memory)
10028 (memory_map_start_property, memory_map_end_property): New functions.
10029 (property_attributes, memory_children, memory_type_enum)
10030 (memory_attributes, memory_map_children, memory_map_elements): New.
10031 (parse_memory_map): Rewrite.
10032 * xml-support.c (debug_xml): New.
10033 (xml_get_required_attribute, xml_get_integer_attribute)
10034 (xml_get_enum_value, free_xml_parser, make_cleanup_free_xml_parser):
10036 (struct scope_level, struct gdb_xml_parser, gdb_xml_body_text)
10037 (gdb_xml_debug, gdb_xml_error, gdb_xml_values_cleanup)
10038 (gdb_xml_start_element, gdb_xml_start_element_wrapper)
10039 (gdb_xml_end_element, gdb_xml_end_element_wrapper, gdb_xml_cleanup)
10040 (gdb_xml_create_parser_and_cleanup, gdb_xml_parse)
10041 (gdb_xml_parse_ulongest, gdb_xml_parse_attr_ulongest)
10042 (gdb_xml_parse_attr_enum, show_debug_xml, _initialize_xml_support):
10044 * xml-support.h (struct gdb_xml_value, gdb_xml_attribute_handler)
10045 (enum gdb_xml_attribute_flag, struct gdb_xml_attribute)
10046 (enum gdb_xml_element_flag, struct gdb_xml_element)
10047 (gdb_xml_element_start_handler, gdb_xml_element_end_handler)
10048 (struct gdb_xml_enum): New.
10049 (gdb_xml_create_parser_and_cleanup, gdb_xml_parse, gdb_xml_debug)
10050 (gdb_xml_error, gdb_xml_parse_attr_ulongest)
10051 (gdb_xml_parse_attr_enum, gdb_xml_parse_ulongest): New prototypes.
10052 (xml_get_required_attribute, xml_get_integer_attribute)
10053 (xml_get_enum_value, make_cleanup_free_xml_parser): Delete prototypes.
10054 * Makefile.in (xml_support_h, xml-support.o): Update.
10056 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
10058 * Makefile.in (eval.o): Update dependencies.
10059 * eval.c: Include "ui-out.h" and "exceptions.h".
10060 (evaluate_subexp_standard): Use TRY_CATCH around value_of_variable.
10061 Use value_zero if an error occurs when avoiding side effects.
10062 * varobj.c (c_value_of_root): Initialize new_val.
10064 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
10066 * varobj.c (varobj_list_children): Stop if the number of children is
10068 (c_number_of_children):
10070 2007-01-04 Mark Kettenis <kettenis@gnu.org>
10072 * alpha-tdep.c (alpha_register_name): Use ARRAY_SIZE.
10073 (alpha_read_insn, alpha_skip_prologue, alpha_heuristic_proc_start)
10074 (alpha_heuristic_frame_unwind_cache, alpha_next_pc)
10075 (alpha_gdbarch_init): Use ALPHA_INSN_SIZE, ALPHA_REGISTER_SIZE and
10076 sizeof, instead of hardcoded constants.
10078 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
10080 * CONTRIBUTE: Use sourceware.org.
10082 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
10084 * buildsym.c (start_subfile): Handle producer.
10085 (record_producer): New function.
10086 * buildsym.h (struct subfile): Include producer.
10087 (record_producer): New prototype.
10088 * dwarf2-frame.c (struct dwarf2_cie): Add version and augmentation.
10089 (struct dwarf2_frame_state): Add armcc_cfa_offsets_sf and
10090 armcc_cfa_offsets_reversed.
10091 (execute_cfa_program): Handle armcc_cfa_offsets_sf.
10092 (dwarf2_frame_find_quirks): New function.
10093 (dwarf2_frame_cache): Call it. Handle armcc_cfa_offsets_reversed.
10094 (decode_frame_entry_1): Record the CIE version. Record the
10095 augmentation. Skip armcc augmentations.
10096 * dwarf2read.c (read_file_scope): Save the producer.
10097 * symtab.h (struct symtab): Rename unused version member to
10100 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
10102 * configure.ac (build_warnings): Use -Wall and
10103 -Wdeclaration-after-statement.
10104 * configure: Regenerated.
10106 2007-01-04 Vladimir Prus <vladimir@codesourcery.com>
10108 Simplify access to variours properties of child
10109 variable objects in C.
10110 * varobj.c (value_struct_element_index): New function.
10111 (c_describe_child): New function.
10112 (c_name_of_child, c_value_of_child)
10113 (c_type_of_child): Rewrite to use c_describe_child.
10115 2007-01-04 Vladimir Prus <vladimir@codesourcery.com>
10118 * varobj.c: Include "vec.h".
10119 (varobj_p): New typedef, declare vector of those.
10120 (struct varobj): Use vector for the 'children' member.
10121 (child_exists): Remove.
10122 (save_child_in_parent): Remove.
10123 (remove_child_from_parent): Remove.
10124 (struct varobj_child): Remove.
10125 (struct vstack): Remove.
10126 (vpush, vpop): Remove.
10127 (varobj_list_children): Adjust to work work vector.
10128 (varobj_update): Likewise. Use vectors for
10129 working stack and result.
10130 (delete_variable_1): Likewise.
10131 * Makefile.in (varobj.o): Update dependencies.
10133 2007-01-04 Vladimir Prus <vladimir@codesourcery.com>
10135 Port from Apple's version.
10137 * varobj.c (type_changeable): Rename to...
10138 (varobj_value_is_changeable_p): ...this. Adjust all callers.
10139 (is_root_p): New function. Use it everywhere.
10141 2007-01-04 Jim Blandy <jimb@codesourcery.com>
10143 * glibc-tdep.c (glibc_skip_solib_resolver): Look for '_dl_fixup',
10144 then plain 'fixup'.
10146 2007-01-04 Joel Brobecker <brobecker@adacore.com>
10148 * hpread.c (hpread_start_psymtab): Remove unnecessary extern.
10150 2007-01-04 Joel Brobecker <brobecker@adacore.com>
10152 * hpread.c (hpread_type_lookup): Fix compilation failure.
10154 2007-01-04 Qinwei <qinwei@sunnorth.com.cn>
10156 * NEWS: New port to S+core.
10157 * MAINTAINERS (Write After Approval, Responsible Maintainers):
10160 * Makefile.in: Add dependencies for S+core files.
10161 * configure.tgt (score*, score-*-*): Add S+core target.
10162 * config/score/embed.mt: New file.
10163 * score-tdep.c: New file.
10164 * score-tdep.h: New file.
10166 2007-01-04 Joel Brobecker <brobecker@adacore.com>
10168 * ada-lang.c (ada_evaluate_subexp) [OP_TYPE]: Return a value with
10169 the appropriate type rather than a bogus void type.
10171 2007-01-04 Joel Brobecker <brobecker@adacore.com>
10173 * ada-lang.h (ada_find_printable_frame): Remove.
10174 (ada_exception_catchpoint_p, ada_decode_exception_location)
10175 (ada_decode_assert_location): Add declaration.
10176 * ada-lang.c: Add include of annotate.h and valprint.h.
10177 (exception_catchpoint_kind): New enum.
10178 (function_name_from_pc, is_known_support_routine)
10179 (ada_find_printable_frame, ada_unhandled_exception_name_addr)
10180 (ada_exception_name_addr_1, ada_exception_name_addr)
10181 (print_it_exception, print_one_exception, print_mention_exception)
10182 (print_it_catch_exception, print_one_catch_exception)
10183 (print_mention_catch_exception, catch_exception_breakpoint_ops)
10184 (print_it_catch_exception_unhandled)
10185 (print_one_catch_exception_unhandled)
10186 (print_mention_catch_exception_unhandled, print_it_catch_assert)
10187 (print_one_catch_assert, print_mention_catch_assert)
10188 (ada_exception_catchpoint_p, error_breakpoint_runtime_sym_not_found)
10189 (ada_get_next_arg, catch_ada_exception_command_split)
10190 (ada_exception_sym_name, ada_exception_sym_name)
10191 (ada_exception_breakption_ops, ada_exception_catchpoint_cond_string)
10192 (ada_parse_catchpoint_condition, ada_exception_sal)
10193 (ada_decode_exception_location)
10194 (ada_decode_assert_location): New function.
10195 (catch_exception_unhandled_breakpoint_ops): New global variable.
10196 (catch_assert_breakpoint_ops): New global variable.
10197 * breakpoint.c: Add include of ada-lang.h.
10198 (print_one_breakpoint): Do not print the condition for Ada
10199 exception catchpoints.
10200 (create_ada_exception_breakpoint): New function.
10201 (catch_ada_exception_command, catch_assert_command): New function.
10202 (catch_command_1): Add support for the new "catch exception" and
10203 "catch assert" commands.
10204 (_initialize_breakpoint): Add help description for the new catch
10206 * Makefile.in (ada-lang.o): Add dependency on annotate.h and
10208 (breakpoint.o): Add dependency on ada-lang.h.
10210 2007-01-03 Pedro Alves <pedro_alves@portugalmail.pt>
10212 * coffread.c (cs_to_section): If bfd_section is found, always
10213 return its section index.
10214 (coff_symtab_read): Determine the minimal_symbol_type using the
10217 2007-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10218 Daniel Jacobowitz <dan@codesourcery.com>
10220 * Makefile.in (top.o): Update.
10221 * top.c (gdb_readline_wrapper_done, gdb_readline_wrapper_result)
10222 (saved_after_char_processing_hook, gdb_readline_wrapper_line)
10223 (struct gdb_readline_wrapper_cleanup, gdb_readline_wrapper_cleanup):
10225 (gdb_readline_wrapper): Rewrite to use asynchronous readline.
10227 2007-01-03 Mark Kettenis <kettenis@gnu.org>
10229 * arm-linux-tdep.c (arm_linux_extract_return_value): Remove.
10230 (arm_linux_init_abi): Don't set deprecated_extract_return_value.
10232 2007-01-03 Daniel Jacobowitz <dan@codesourcery.com>
10234 * ada-lang.c (find_struct_field): Initialize *byte_offset_p.
10235 * breakpoint.c (do_enable_breakpoint): Ignore both mem_cnt and i.
10236 * c-typeprint.c (c_type_print_varspec_suffix): Don't test length
10237 greater than or equal to zero.
10238 * m2-typeprint.c (m2_array): Likewise.
10239 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
10240 * gdbtypes.c (copy_type_recursive): Correct == typo.
10241 * i386-tdep.c (i386_skip_prologue): Remove stray semicolon.
10242 * linux-nat.c (linux_nat_info_proc_cmd): Don't compare a pointer
10244 * macroscope.c (sal_macro_scope): Don't name a local variable "main".
10245 (default_macro_scope): Remove unused variable.
10246 * prologue-value.h (pv_area_find_reg): Don't name an argument
10248 * remote-fileio.c (remote_fio_func_map): Add missing braces.
10249 * remote.c (sigint_remote_twice_token, sigint_remote_token): Change
10251 (cleanup_sigint_signal_handler): Remove casts.
10252 * valprint.c (val_print): Use a volatile local for the modified
10254 * varobj.c (languages): Remove extra array dimension.
10255 (varobj_create): Correct access to languages array.
10256 * mi/mi-cmd-break.c (mi_cmd_break_insert, mi_cmd_break_watch): Add
10258 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise.
10259 * mi/mi-cmd-env.c (mi_cmd_env_path, mi_cmd_env_dir): Likewise.
10260 * mi/mi-getopt.c (mi_valid_noargs): Likewise.
10261 * mi/mi-main.c (mi_cmd_data_read_memory): Likewise.
10262 (mi_cmd_data_write_memory): Likewise.
10263 * signals/signals.c (target_signal_to_string): Cast to int before
10265 * tui/tui-layout.c (init_and_make_win): Take and return a void *.
10266 Update all callers.
10268 2007-01-03 Daniel Jacobowitz <dan@codesourcery.com>
10270 * NEWS: Mention pointer to member improvements.
10271 * Makefile.in (gnu-v3-abi.o): Delete special rule.
10272 (eval.o, gnu-v3-abi.o, ia64-tdep.o): Update.
10273 * ada-valprint.c (ada_print_scalar): Update for new type codes.
10274 * c-typeprint.c (c_print_type): Update for new type codes.
10275 (c_type_print_varspec_prefix, c_type_print_varspec_suffix)
10276 (c_type_print_base): Likewise.
10277 (c_type_print_args): Rewrite.
10278 * c-valprint.c (c_val_print): Update for new type codes. Remove
10279 support for references to members. Treat methods like functions.
10280 * cp-abi.c (cplus_print_method_ptr, cplus_method_ptr_size)
10281 (cplus_make_method_ptr, cplus_method_ptr_to_value): New.
10282 * cp-abi.h (cplus_print_method_ptr, cplus_method_ptr_size)
10283 (cplus_make_method_ptr, cplus_method_ptr_to_value): New prototypes.
10284 (struct cp_abi_ops): Add corresponding members.
10285 * cp-valprint.c (cp_print_class_method): Delete.
10286 (cp_find_class_member): New function.
10287 (cp_print_class_member): Use it. Simplify support for bogus
10289 * dwarf2read.c (quirk_gcc_member_function_pointer): Use
10290 lookup_methodptr_type.
10291 (read_tag_ptr_to_member_type): Likewise, and lookup_memberptr_type.
10292 * eval.c (evaluate_subexp_standard): Implement EVAL_SKIP for
10293 OP_SCOPE. Update call to value_aggregate_elt. Rewrite member
10295 (evaluate_subexp_for_address): Handle OP_SCOPE explicitly. Handle
10296 references returned by user defined operators.
10297 * f-typeprint.c (f_print_type, f_type_print_varspec_prefix)
10298 (f_type_print_varspec_suffix): Remove support for member pointers.
10299 * gdbtypes.c (lookup_memberptr_type): Renamed from lookup_member_type
10301 (smash_to_memberptr_type): Likewise, from smash_to_member_type.
10302 (lookup_methodptr_type): New.
10303 (rank_one_type): Adjust for TYPE_CODE_MEMBERPTR.
10304 (recursive_dump_type): Update for new types.
10305 * gdbtypes.h (enum type_code): Replace TYPE_CODE_MEMBER with
10306 TYPE_CODE_MEMBERPTR and TYPE_CODE_METHODPTR.
10307 (lookup_memberptr_type, lookup_methodptr_type)
10308 (smash_to_memberptr_type): New prototypes.
10309 (smash_to_method_type): Formatting fix.
10310 (lookup_member_type, smash_to_member_type): Delete prototypes.
10311 * gnu-v3-abi.c (gnuv3_get_vtable, gnuv3_get_virtual_fn): New.
10312 Do not rely on debug information for the vptr or the method's
10313 enclosing type. Handle function descriptors for IA64.
10314 (gnuv3_virtual_fn_field): Rewrite using the new functions.
10315 (gnuv3_find_method_in, gnuv3_print_method_ptr)
10316 (gnuv3_method_ptr_size, gnuv3_make_method_ptr)
10317 (gnuv3_method_ptr_to_value): New.
10318 (init_gnuv3_ops): Set new members of gnu_v3_abi_ops.
10319 * hpread.c (hpread_type_lookup): Update for new types.
10320 * infcall.c (value_arg_coerce): Likewise.
10321 * m2-typeprint.c (m2_print_type): Remove explicit support
10322 for member pointers.
10323 * m2-valprint.c (m2_val_print): Likewise.
10324 * p-typeprint.c (pascal_type_print_varspec_prefix)
10325 (pascal_type_print_varspec_suffix, pascal_type_print_base): Likewise.
10326 * p-valprint.c (pascal_val_print): Likewise.
10327 (pascal_object_print_class_method, pascal_object_print_class_member):
10329 * p-lang.h (pascal_object_print_class_method)
10330 (pascal_object_print_class_member): Delete prototypes.
10331 * stabsread.c (read_type): Update for new types.
10332 * typeprint.c (print_type_scalar): Likewise.
10333 * valops.c (value_struct_elt_for_reference, value_namespace_elt)
10334 (value_maybe_namespace_elt, value_aggregate_elt): Add want_address
10335 argument. Construct a pointer to member if the address of a
10336 function or data member is requested.
10337 (value_cast_pointers): Don't modify the input value.
10338 (value_cast): Adjust pointer to member handling for new types.
10339 Allow null pointer to member constants. Don't modify the input
10341 (value_ind): Remove pointer to member check. Handle function
10342 descriptors for function pointers.
10343 (value_struct_elt, value_find_oload_method_list, check_field):
10344 Remove pointer to member checks.
10345 * value.c (unpack_long): Allow pointers to data members.
10346 (value_from_longest): Allow member pointers.
10347 * value.h (value_aggregate_elt): Add want_address.
10348 * varobj.c (c_variable_editable): Remove check for members.
10349 * gdbarch.sh: Add vtable_function_descriptors and vbit_in_delta.
10350 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Handle descriptors
10352 (ia64_gdbarch_init): Call set_gdbarch_vtable_function_descriptors.
10353 * c-lang.h (cp_print_class_method): Delete prototype.
10354 * arm-tdep.c (arm_gdbarch_init): Call set_gdbarch_vbit_in_delta.
10355 * mips-tdep.c (mips_gdbarch_init): Likewise.
10356 * gdbarch.c, gdbarch.h: Regenerated.
10358 2007-01-01 Mark Kettenis <kettenis@gnu.org>
10360 * rs6000-tdep.c (rs6000_use_struct_convention)
10361 (rs6000_extract_return_value, rs6000_store_return_value)
10362 (rs6000_extract_struct_value_address): Remove.
10363 (rs6000_return_value): New function.
10364 (rs6000_gdbarch_init): Don't set deprecated_extract_return_value,
10365 store_return_value, deprecated_extract_struct_value_address and
10366 deprecated_use_struct_convention. Use rs6000_return_value
10369 2007-01-02 Nick Roberts <nickrob@snap.net.nz>
10371 * mi/mi-cmds.c (mi_cmds): Remove entries for -display-delete,
10372 -display-disable, -display-enable, -display-insert and
10375 2007-01-01 Joel Brobecker <brobecker@adacore.com>
10377 * breakpoint.c (remove_breakpoint): Remove dead code.
10379 2007-01-01 Nick Roberts <nickrob@snap.net.nz>
10381 * varobj.c: Include block.h.
10382 (c_value_of_root): Check scope within nested statements.
10384 2007-01-01 Mark Kettenis <kettenis@gnu.org>
10386 * mi/mi-main.c (mi_cmd_data_write_register_values): Use
10387 regcache_cooked_write_signed instead of
10388 deprecated_write_register_bytes.
10390 2007-01-01 Joel Brobecker <brobecker@adacore.com>
10392 * config/djgpp/fnchange.lst: Add entry for ChangeLog-2006.
10394 2007-01-01 Joel Brobecker <brobecker@adacore.com>
10396 Followed the Start of New Year Procedure:
10397 * ChangeLog-2006: New file, containing all the entries for 2006.
10398 * ChangeLog: Removed all 2006 entries, and changed the reference
10399 to the previous ChangeLog to point to ChangeLog 2006.
10400 * top.c (print_gdb_version): Update copyright year.
10402 2007-01-01 Mark Kettenis <kettenis@gnu.org>
10404 * Makefile.in (remote-sds.o): Remove.
10405 * remote-sds.c: Delete.
10407 For older changes see ChangeLog-2006.
10413 version-control: never