1 2007-12-18 Daniel Jacobowitz <dan@codesourcery.com>
3 * minsyms.c (lookup_minimal_symbol): Also check the separate
5 (lookup_minimal_symbol_text): Likewise.
6 (lookup_minimal_symbol_solib_trampoline): Likewise.
7 * symtab.c (lookup_global_symbol_from_objfile): Likewise.
9 2007-12-18 Vladimir Prus <vladimir@codesourcery.com>
11 * mi/mi-main.c (mi_cmd_list_features): Announce
12 the 'pending-breakpoints' feature.
14 2007-12-17 Jim Blandy <jimb@codesourcery.com>
16 * dwarf2read.c (dwarf2_add_field): Correctly scale all byte
17 offsets obtained from DW_AT_data_member_location before recording
18 them in FIELD_BITPOS (*fp).
20 * dwarf2read.c (attr_form_is_section_offset): Doc fixes.
22 2007-12-17 Nigel Stephens <nigel@mips.com>
23 Maciej W. Rozycki <macro@mips.com>
25 * utils.c (string_to_core_addr): If the executable format
26 indicates that addresses should be sign-extended and there are
27 only 8 hex digits in the address, then do so.
28 * Makefile.in (utils.o): Depend on $(gdbcore_h).
30 2007-12-17 Chris Dearman <chris@mips.com>
32 * symfile.c (init_filename_language_table): Recognise .sx as
35 2007-12-17 Joel Brobecker <brobecker@adacore.com>
37 * language.h (enum exp_opcode): Comment out this declaration,
38 undoing the previous change.
40 2007-12-17 Luis Machado <luisgpm@br.ibm.com>
42 * breakpoint.c: (watch_command_1): Parse additional optional
43 "thread" parameter to the watchpoint command and set the
44 "thread" member of the breakpoint struct.
46 2007-12-17 Luis Machado <luisgpm@br.ibm.com>
48 * breakpoint.c (bpstat_stop_status): Check an additional
49 condition before evaluating an expression value.
51 2007-12-17 Joel Brobecker <brobecker@adacore.com>
53 * language.h (enum exp_opcode): Add forward declaration.
54 (language_string_char_type, language_lookup_primitive_type_by_name):
55 Move declaration past declaration of language_defn.
57 2007-12-16 Daniel Jacobowitz <dan@codesourcery.com>
58 Joseph Myers <joseph@codesourcery.com>
60 * configure.ac: Check for *-*-solaris2.1[[0-9]]* instead of
61 *-*-solaris2.1[[0-9]].
62 * configure: Regenerate.
63 * procfs.c (proc_set_current_signal): If redelivering a signal,
64 reuse the current siginfo if possible.
66 2007-12-16 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
68 * f-typeprint.c (print_equivalent_f77_float_type): Remove function.
69 (f_type_print_base): Output the type names directly for real and
72 2007-12-16 Vladimir Prus <vladimir@codesourcery.com>
74 * breakpoint.c (bpstat_have_active_hw_watchpoints):
76 (bpstat_stop_status): Remove unused variable
78 * breakpoint.h (bpstat_have_active_hw_watchpoints):
81 2007-12-16 Vladimir Prus <vladimir@codesourcery.com>
83 * target.h (target_pid_or_tid_to_str): Remove.
84 * infrun.c (handle_inferior_event):
85 Use target_pid_to_str instead of
86 target_pid_or_tid_to_str.
87 (normal_stop): Likewise.
89 2007-12-16 Jan Kratochvil <jan.kratochvil@redhat.com>
91 * dwarf2read.c (dwarf_attr_name): Rename `DW_AT_stride_size' to its
92 DWARF3 equivalent `DW_AT_bit_stride'.
93 Rename `DW_AT_stride' to its DWARF3 equivalent `DW_AT_byte_stride'.
95 2007-12-16 Joel Brobecker <brobecker@adacore.com>
97 * mi/mi-main.c: Remove code that was commented out in 1999.
99 2007-12-16 Joel Brobecker <brobecker@adacore.com>
101 * expression.h (parse_expression_in_context): Delete prototype.
102 * parse.c (parse_expression_in_context): Delete.
104 2007-12-14 Vladimir Prus <vladimir@codesourcery.com>
106 Add support for pending breakpoints in MI.
107 * gdb.h (gdb_breakpoint): Add parameter pending.
108 * breakpoint.c (gdb_breakpoint): Add parameter pending.
109 * mi/mi-cmd-break.c (mi_break_insert): Change
110 comment to refer to manual. Add support for
111 the -f flag, for pending breakpoint.
113 2007-12-14 Vladimir Prus <vladimir@codesourcery.com>
115 * breakpoint.c (break_command_really): New, copied
116 from break_command_1. New parameters COND_STRING, THREAD
117 PARSE_CONDITITION_AND_THREAD and PENDING_BREAK_SUPPORT.
118 The previous FLAG parameter split into TEMPFLAG and
120 When PARSE_CONDITION_AND_THREAD is not set, duplicate
121 the passed condition string.
122 (struct captured_breakpoint_args): Remove
123 (do_captured_breakpoint): Remove.
124 (break_command_1): Relay to break_command_really.
125 (gdb_breakpoint): Relay to break_command_really.
127 2007-12-13 Michael Snyder <msnyder@specifix.com>
129 * mips-linux-tdep.c (mips64_fill_gregset): Remove unused variable.
131 2007-12-13 Jim Blandy <jimb@codesourcery.com>
133 * dwarf2read.c (attr_form_is_constant): New function.
134 (dwarf2_add_field): Use it and attr_form_is_section_offset to
135 recognize DW_AT_data_member_location attributes. Use
136 dwarf2_get_attr_constant_value when the attribute is a constant.
138 * dwarf2read.c (attr_form_is_section_offset): New function.
139 (dwarf_add_member_fn, read_common_block, read_partial_die)
140 (dwarf2_symbol_mark_computed): Use it, instead of writing it out.
142 2007-12-12 Jim Blandy <jimb@codesourcery.com>
144 Remove unused support for target-based exception catching.
145 * target.h (struct target_ops): Delete
146 to_enable_exception_callback and to_get_current_exception_event
148 (target_enable_exception_callback)
149 (target_get_current_exception_event): Delete macros.
150 * target.c (update_current_target): Remove code to inherit and
151 default those members.
152 (debug_to_enable_exception_callback)
153 (debug_to_get_current_exception_event): Delete functions.
154 (setup_target_debug): Don't install those methods.
155 * inf-child.c (inf_child_enable_exception_callback)
156 (inf_child_get_current_exception_event): Delete dummy functions.
157 (inf_child_target): Don't install them in the target vector.
158 * breakpoint.h (enum bptype): Delete bp_catch_catch,
160 * breakpoint.c (cover_target_enable_exception_callback)
161 (ep_is_exception_catchpoint, create_exception_catchpoint): Delete
163 (insert_bp_location, update_breakpoints_after_exec)
164 (remove_breakpoint, ep_is_catchpoint, print_it_typical)
165 (bpstat_stop_status, bpstat_what)
166 (bpstat_get_triggered_catchpoints, print_one_breakpoint_location)
167 (user_settable_breakpoint, allocate_bp_location)
168 (disable_watchpoints_before_interactive_call_start)
169 (enable_watchpoints_after_interactive_call_stop, mention)
170 (delete_breakpoint, breakpoint_re_set_one, disable_command)
171 (enable_command): Remove exception catchpoint cases.
172 (catch_exception_command_1): Don't try target-based exception
174 * stack.c (catch_info): Call print_frame_label_vars
177 2007-12-12 Nigel Stephens <nigel@mips.com>
178 Maciej W. Rozycki <macro@mips.com>
180 * remote-mips.c (mips_load): Use regcache_set_valid_p() instead
181 of setting deprecated_register_valid array directly.
183 2007-12-07 Maciej W. Rozycki <macro@mips.com>
185 * mips-tdep.c (extended_offset): Fix a comment.
187 2007-12-07 Maciej W. Rozycki <macro@mips.com>
189 * target.c (update_current_target): Inherit to_log_command.
190 * target.h (struct target_ops). Add to_log_command.
191 (target_log_command): New macro.
192 * top.c (execute_command): Call target_log_command() rather than
193 serial_log_command().
194 * monitor.c (init_base_monitor_ops): Initialize to_log_command.
195 * remote-m32r-sdi.c (init_m32r_ops): Likewise.
196 * remote-mips.c (_initialize_remote_mips): Likewise.
197 * remote.c (init_remote_ops): Likewise.
199 2007-12-06 Daniel Jacobowitz <dan@codesourcery.com>
201 * infrun.c (init_wait_for_inferior): Reset target_last_wait_ptid.
202 (handle_inferior_event): Clear stop_stack_dummy earlier.
204 2007-12-06 Jim Blandy <jimb@codesourcery.com>
206 * addrmap.c (addrmap_splay_tree_remove): New function.
207 (addrmap_mutable_set_empty): Use it.
209 * addrmap.c, addrmap.h: Update to GPLv3.
211 * addrmap.c (struct addrmap): Make the referenced function table
213 (addrmap_fixed_funcs, addrmap_mutable_funcs): Declare const.
214 Don't use designated initializers.
216 * addrmap.c (addrmap_fixed_create_fixed, addrmap_mutable_find)
217 (addrmap_mutable_relocate): Use internal_error, not abort.
219 * NEWS: Mention support for non-contiguous lexical blocks and
222 2007-12-06 Markus Deuling <deuling@de.ibm.com>
224 * gdbarch.sh (stab_reg_to_regnum, dwarf_reg_to_regnum)
225 ( dwarf2_reg_to_regnum, sdb_reg_to_regnum, ecoff_reg_to_regnum): Add
226 gdbarch as parameter.
227 * gdbarch.{c,h}: Regenerate.
229 * xtensa-tdep.c (xtensa_reg_to_regnum): Add gdbarch as parameter.
230 Replace current_gdbarch by gdbarch.
231 * s390-tdep.c (s390_dwarf_reg_to_regnum): Likewise.
232 * rs6000-tdep.c (rs6000_stab_reg_to_regnum)
233 (rs6000_dwarf2_reg_to_regnum): Likewise.
234 * mips-tdep.c (mips_stab_reg_to_regnum)
235 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Likewise.
236 * mep-tdep.c (mep_debug_reg_to_regnum): Likewise.
237 * m32c-tdep.c (m32c_debug_info_reg_to_regnum): Likewise.
238 * i386-tdep.c (i386_dbx_reg_to_regnum)
239 (i386_svr4_reg_to_regnum): Likewise
240 * h8300-tdep.c (h8300s_dbg_reg_to_regnum)
241 (h8300_dbg_reg_to_regnum): Likewise.
242 * amd64-tdep.c (amd64_dwarf_reg_to_regnum): Likewise.
243 * arch-utils.c (no_op_reg_to_regnum): Likewise.
244 * arch-utils.h (no_op_reg_to_regnum): Likewise.
245 * arm-tdep.c (arm_dwarf_reg_to_regnum): Likewise.
246 * cris-tdep.c (cris_dwarf2_reg_to_regnum): Likewise.
247 * hppa-tdep.c (hppa64_dwarf_reg_to_regnum): Likewise.
248 * ia64-tdep.c (ia64_dwarf_reg_to_regnum): Likewise.
249 * m68k-tdep.c (m68k_dwarf_reg_to_regnum): Likewise.
251 2007-12-06 Vladimir Prus <vladimir@codesourcery.com>
253 Localize infrun use of remove_breakpoints.
254 * infrun.c (handle_inferior_event): Remove
255 calls to remove_breakpoints, except where needed to
256 communicate change of breakpoint locations to inferior.
257 (keep_going): If steppping over breakpoint, remove
260 2007-12-06 Vladimir Prus <vladimir@codesourcery.com>
262 Clarify infrun variable naming.
263 * infrun.c (trap_expected): Rename
264 to stepping_over_breakpoint. Document.
265 (stepping_past_breakpoint): Remove.
266 (stepping_past_breakpoint_ptdi): Renamed
267 to deferred_step_ptid.
268 (struct execution_control_state): Rename
269 the another_trap field to stepping_over_breakpoint.
270 (struct inferior_status): Rename the trap_expected
271 field to stepping_over_breakpoint.
272 (clear_proceed_status, proceed)
273 (init_execution_control_state, context_switch)
274 (handle_inferior_event, currently_stepping)
275 (keep_going, save_inferior_status)
276 (restore_inferior_status, prepare_to_proceed): Adjust.
277 * gdbthread.h (struct thread_info): Rename the
278 trap_expected field to stepping_over_breakpoint.
279 * thread.c (load_infrun_state, save_infrun_state):
282 2007-12-06 Pierre Muller <muller@ics.u-strasbg.fr>
284 * win32-nat.c: Allow compilation if CORE_ADDR is 8 byte long.
285 Add "gdb_stdint.h" dependency required for uintptr_t type use.
286 (handle_output_debug_string): Use uintptr_t typecast.
287 (handle_exception): Ditto.
288 (win32_xfer_memory): Ditto.
289 * Makefile.in (win32-nat.o): Add dependency to gdb_stdint header.
291 2007-12-04 Jim Blandy <jimb@codesourcery.com>
293 Support lexical blocks and function bodies that occupy
294 non-contiguous address ranges.
295 * addrmap.c, addrmap.h: New files.
296 * block.h (struct addrmap): New forward declaration.
297 (struct blockvector): New member, 'map'.
298 (BLOCKVECTOR_MAP): New accessor macro.
299 * block.c: #include "addrmap.h"
300 (blockvector_for_pc_sect): If the blockvector we've found has
301 an address map, use it instead of searching the blocks.
302 * buildsym.c: #include "addrmap.h"
303 (pending_addrmap_obstack, pending_addrmap_interesting): New static
305 (really_free_pendings): If we have a pending addrmap, free it too.
306 (record_block_range): New function.
307 (make_blockvector): If we have an interesting pending addrmap,
308 record it in the new blockvector.
309 (start_symtab, buildsym_init): Assert that there is no pending
310 addrmap now; we should have cleaned up any addrmaps we'd built
312 (end_symtab): If there is a pending addrmap left over that didn't
313 get included in the blockvector, free it.
314 * buildsym.h (struct addrmap): New forward declaration.
315 (record_block_range): New prototype.
316 * objfiles.c: #include "addrmap.h".
317 (objfile_relocate): Relocate the blockvector's address map, if
319 * dwarf2read.c (dwarf2_record_block_ranges): New function.
320 (read_func_scope, read_lexical_block_scope): Call it.
321 * Makefile.in (SFILES): Add addrmap.c.
322 (addrmap_h): New header dependency variable.
323 (COMMON_OBS): Add addrmap.o.
324 (addrmap.o): New rule.l
325 (block.o, objfiles.o, buildsym.o): Depend on $(addrmap_h).
327 * block.c (blockvector_for_pc, blockvector_for_pc_sect): Return a
328 pointer to the block, not its index in the blockvector.
329 (block_for_pc_sect): Use the returned block, instead of looking it
331 * block.h (blockvector_for_pc, blockvector_for_pc_sect): Update
333 * breakpoint.c (resolve_sal_pc): Use returned block, instead of
334 looking it up ourselves.
335 * stack.c (print_frame_label_vars): Disable function, which
336 depends on the block's index.
338 * buildsym.c (finish_block): Return the block we've built.
339 * buildsym.h (finish_block): Update prototype.
341 * defs.h (CORE_ADDR_MAX): New constant.
343 2007-12-04 Ulrich Weigand <uweigand@de.ibm.com>
345 * coffread.c (decode_type): Use builtin_type_int32 instead
346 of FT_INTEGER fundamental type for array range index type.
347 (decode_base_type): Use builtin types of current_gdbarch
348 instead of fundamental types.
350 * dwarf2read.c (struct dwarf2_cu): Remove ftypes member.
351 (read_file_scope): Do not initialize ftypes member.
352 (dwarf_base_type, dwarf2_fundamental_types): Remove functions.
353 (read_array_type): Use builtin_type_int32 instead of FT_INTEGER
354 fundamental type for array range index type.
355 (read_tag_string_type): Likewise for string range index type.
356 Also, do not overwrite FT_CHAR type with new string type.
357 (read_base_type): If DW_AT_name is missing, create unnamed type
358 with given properties instead of looking for a fundamental type.
359 Create new types as TYPE_TARGET_TYPE for DW_ATE_address and
360 DW_ATE_complex_float types.
361 (read_subrange_type): Create new type to represent missing
362 DW_AT_type instead of looking for a fundamental type.
363 (die_type): Use builtin type to represent "void" instead of
364 looking for a fundamental type.
366 * stabsread.c (define_symbol): Use builtin types to represent
367 'r' and 'i' floating-point and integer constants.
369 * gdbtypes.c (lookup_fundamental_type): Remove.
370 * gdbtypes.h (lookup_fundamental_type): Remove prototype.
371 (FT_VOID, FT_BOOLEAN, FT_CHAR, FT_SIGNED_CHAR, FT_UNSIGNED_CHAR,
372 FT_SHORT, FT_SIGNED_SHORT, FT_UNSIGNED_SHORT, FT_INTEGER,
373 FT_SIGNED_INTEGER, FT_UNSIGNED_INTEGER, FT_LONG, FT_SIGNED_LONG,
374 FT_UNSIGNED_LONG, FT_LONG_LONG, FT_SIGNED_LONG_LONG,
375 FT_UNSIGNED_LONG_LONG, FT_FLOAT, FT_DBL_PREC_FLOAT, FT_EXT_PREC_FLOAT,
376 FT_COMPLEX, FT_DBL_PREC_COMPLEX, FT_EXT_PREC_COMPLEX, FT_STRING,
377 FT_FIXED_DECIMAL, FT_FLOAT_DECIMAL, FT_BYTE, FT_UNSIGNED_BYTE,
378 FT_TEMPLATE_ARG, FT_DECFLOAT, FT_DBL_PREC_DECFLOAT,
379 FT_EXT_PREC_DECFLOAT, FT_NUM_MEMBERS): Remove macros.
380 * objfiles.c (struct objfile): Remove fundamental_types member.
381 * symfile.c (reread_symbols): Do not clear fundamental_types.
383 * language.h (struct language_defn): Remove la_fund_type member.
384 (create_fundamental_type): Remove.
385 * language.c (unk_lang_create_fundamental_type): Remove.
386 (unknown_language_defn, auto_language_defn,
387 local_language_defn): Adapt initializer.
388 * ada-lang.c (ada_create_fundamental_type): Remove.
389 (ada_language_defn): Adapt initializer.
390 * c-lang.h (c_create_fundamental_type): Remove prototype.
391 * c-lang.c (c_create_fundamental_type): Remove.
392 (c_language_defn, cplus_language_defn, asm_language_defn,
393 minimal_language_defn): Adapt initializer.
394 * f-lang.c (f_create_fundamental_type): Remove.
395 (f_language_defn): Adapt initializer.
396 * jv-lang.c (java_create_fundamental_type): Remove.
397 (java_language_defn): Adapt initializer.
398 * m2-lang.c (m2_create_fundamental_type): Remove.
399 (m2_language_defn): Adapt initializer.
400 * objc-lang.c (objc_create_fundamental_type): Remove.
401 (objc_language_defn): Adapt initializer.
402 * p-lang.h (pascal_create_fundamental_type): Remove prototype.
403 * p-lang.c (pascal_create_fundamental_type): Remove.
404 (pascal_language_defn): Adapt initializer.
405 * scm-lang.c (scm_language_defn): Adapt initializer.
407 2007-12-04 Maciej W. Rozycki <macro@mips.com>
409 * features/mips-cpu.xml: Specify "regnum" for "r0" explicitly.
410 * features/mips64-cpu.xml: Likewise.
411 * features/mips-fpu.xml: Specify "regnum" for "f0" explicitly.
412 * features/mips64-fpu.xml: Likewise.
413 * features/mips-linux.c: Regenerate.
414 * features/mips64-linux.c: Regenerate.
416 2007-12-04 Maciej W. Rozycki <macro@mips.com>
418 * target.h (target_find_new_threads): Fix definition.
420 2007-12-02 Pierre Muller <muller@ics.u-strasbg.fr>
422 * win32-nat.c (win32_resume): Set the trace bit
423 in the thread identified by inferior_ptid.
426 2007-12-02 Pierre Muller <muller@ics.u-strasbg.fr>
428 * win32-nat.c (open_process_used): New static variable.
429 (win32_init_thread_list): Remove call to CloseHandle for thread.
430 (win32_delete_thread): Ditto.
431 (fake_create_process): Set open_process_used if OpenProcess call is
433 (get_win32_debug_event): Do not close process handle.
434 (do_initial_win32_stuff): Set open_process_used to zero.
435 (win32_mourn_inferior): Call CloseHandle for current_process_handle if
436 open_process_used is set.
437 (win32_kill_inferior): Do not close process and main_thread handles.
439 2007-11-30 Daniel Jacobowitz <dan@codesourcery.com>
441 * remote.c (remote_cmdlist): New variable.
442 (PACKET_vFile_open, PACKET_vFile_pread, PACKET_vFile_pwrite)
443 (PACKET_vFile_close, PACKET_vFile_unlink): New constants.
444 (remote_buffer_add_string, remote_buffer_add_bytes)
445 (remote_buffer_add_int, remote_hostio_parse_result)
446 (remote_hostio_send_command, remote_hostio_open, remote_hostio_pwrite)
447 (remote_hostio_pread, remote_hostio_close, remote_hostio_unlink)
448 (remote_fileio_errno_to_host, remote_hostio_error, fclose_cleanup)
449 (remote_hostio_close_cleanup, remote_file_put, remote_file_get)
450 (remote_file_delete, remote_put_command, remote_get_command)
451 (remote_delete_command, remote_command): New functions.
452 (_initialize_remote): Register new packets and commands.
453 * Makefile.in (gdb_fileio_h): New variable.
455 (SUBDIR_MI_OBS): Add mi-cmd-target.o.
456 (SUBDIR_MI_SRCS): Add mi/mi-cmd-target.c.
457 (mi-cmd-target.o): New rule.
458 * mi/mi-cmd-target.c: New file.
459 * mi/mi-cmds.c (mi_cmds): Add target-file-delete, target-file-get,
461 * mi/mi-cmds.h (mi_cmd_target_file_get, mi_cmd_target_file_put)
462 (mi_cmd_target_file_delete): Declare.
463 * remote.h (remote_file_put, remote_file_get, remote_file_delete):
465 * NEWS: Describe new file transfer support.
467 2007-11-30 Vladimir Prus <vladimir@codesourcery.com>
469 * infrun.c (handle_inferior_event): Don't
470 ignore beakpoints if trap_expected is set.
472 2007-11-30 Vladimir Prus <vladimir@codesourcery.com>
474 Make insert_breakpoints return void.
475 * breakpoint.h (insert_breakpoints): Change
477 * breakpoint.c (insert_breakpoints): Change
478 return type to void. Rename local return_val
480 * infrun.c (keep_going): Instead of checking
481 return value from insert_breakpoints, catch exception.
483 2007-11-29 Vladimir Prus <vladimir@codesourcery.com>
485 Stop infrun from tracking breakpoint insertion status.
487 The checks of breakpoints_inserted before calling
488 remove_breakpoints are removed, as remove_breakpoint
489 won't touch uninserted breakpoints. In a number of places,
490 we're interested if a breakpoint is inserted at particular
491 PC, and we now use breakpoint_inserted_here_p. In a few
492 places, insert_breakpoints can be called unconditionally,
493 since it won't try to insert already inserted breakpoint.
495 * breakpoint.h (regular_breakpoint_inserted_here_p): New
497 * breakpoint.c (regular_breakpoint_inserted_here_p): New.
498 (breakpoint_inserted_here_p): Use
499 regular_breakpoint_inserted_here_p.
500 * infrun.c (breakpoints_inserted): Remove.
501 (resume): Don't check for breakpoints_inserted before
502 remove_hw_watchpoints. Use breakpoint_inserted_here_p.
503 (proceed, init_wait_for_inferior): Don't set breakpoints_inserted.
504 (handle_inferior_event): Don't use breakpoints_inserted.
505 Use breakpoints_meant_to_be_inserted and
506 breakpoints_inserted_here_p.
507 (insert_step_resume_breakpoint_at_sal, keep_going): Use
508 breakpoints_meant_to_be_inserted. Don't set breakpoints_inserted.
509 (normal_stop): Don't check for breakpoints_inserted. Don't
510 set breakpoints_inserted.
511 (keep_going): Don't check for breakpoints_inserted.
512 (insert_step_resume_breakpoint_at_sal): Don't insert
515 2007-11-28 Jim Blandy <jimb@codesourcery.com>
517 * breakpoint.c (watch_command_1): When the watchpoint isn't local
518 to any frame, initialize watchpoint_frame using null_frame_id, not
521 2007-11-28 Vladimir Prus <vladimir@codesourcery.com>
523 * infrun.c (resume): Set right thread even if
524 stepping over breakpoint using software single step.
526 2007-11-28 Nick Roberts <nickrob@snap.net.nz>
528 * mi/mi-cmd-var.c (print_varobj): Revert change from 2007-08-31.
529 (mi_print_value_p): Guard against type = NULL.
531 2007-11-27 Thiago Jung Bauermann <bauerman@br.ibm.com>
533 * dfp.c (decimal_from_string): Remove superfluous newline from
535 (decimal_to_string): Likewise.
536 * printcmd.c (printf_command): Change string buffer to use
537 MAX_DECIMAL_STRING constant.
538 * value.c (value_from_decfloat): Likewise.
540 2007-11-27 Ulrich Weigand <uweigand@de.ibm.com>
542 * Makefile.in (ALL_TARGET_OBS): Remove object files that require
543 64-bit CORE_ADDR and BFD support, move them to ...
544 (ALL_64_TARGET_OBS): ... this new variable.
545 * configure.ac: Check for --enable-64-bit-bfd option. Only add
546 64-bit targets with --enable-targets=all if BFD supports 64-bit.
547 * configure: Regenerate.
549 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Do not claim
550 all elf32-i386 executables, only cygwin core files.
552 2007-11-25 Jan Kratochvil <jan.kratochvil@redhat.com>
554 * dwarf2read.c (dwarf2_get_pc_bounds): Moved the `DW_AT_ranges' parsing
555 code with its variables OBJFILE, CU_HEADER and OBFD into ...
556 (dwarf2_ranges_read): ... a new function.
557 (read_partial_die): Implemented the parsing of `DW_AT_ranges'.
559 2007-11-24 Pedro Alves <pedro_alves@portugalmail.pt>
561 * win32-nat.c (DR6_CLEAR_VALUE): New define.
562 (thread_info_struct): Rename suspend_count to suspended, to be
564 (thread_rec): Only suspend the thread if it wasn't suspended by
565 gdb before. Warn if suspending failed.
566 (win32_add_thread): Set Dr6 to DR6_CLEAR_VALUE.
567 (win32_continue): Set Dr6 to DR6_CLEAR_VALUE. Update usage of the
568 `suspended' flag. Do ContinueDebugEvent after resuming the
569 suspended threads, not before. Set threads' contexts before
570 resuming them, not after.
571 (win32_resume): Set Dr6 to DR6_CLEAR_VALUE.
573 2007-11-23 Vladimir Prus <vladimir@codesourcery.com>
575 * breakpoint.c (insert_breakpoints)
576 (insert_bp_location): Remove stale comments.
578 2007-11-23 Maciej W. Rozycki <macro@mips.com>
580 * mips-linux-tdep.h: Fix some formatting.
582 2007-11-21 Markus Deuling <deuling@de.ibm.com>
584 * stack.c (print_args_stub): Use get_frame_arch to get at the current
585 architecture and replace current_gdbarch.
586 (frame_info): Likewise.
588 2007-11-21 Nick Roberts <nickrob@snap.net.nz>
590 * varobj.c (c_variable_editable, cplus_variable_editable)
591 (java_variable_editable, variable_editable): Delete.
592 (varobj_editable_p): Replace above functions with one language
593 independent function. Check for an lvalue.
594 (varobj_get_attributes, varobj_set_value): Use varobj_editable_p.
595 (struct language_specific): Delete variable_editable field.
597 * mi-cmd-var.c (mi_cmd_var_assign): Simplify.
599 * varobj.h: Add extern for varobj_editable_p.
601 2007-11-20 Vladimir Prus <vladimir@codesourcery.com>
603 Remove unused breakpoint fields.
604 * breakpoint.h (struct breakpoint): Remove
605 from_tty and flag fields.
606 * breakpoint.c (break_command_1): Don't set
607 from_tty and flag field set of breakpoint.
608 (create_ada_exception_breakpoint): Don't set
611 2007-11-20 David Ung <davidu@mips.com>
612 Maciej W. Rozycki <macro@mips.com>
614 * mips-tdep.c (mips16_scan_prologue): Handle the MIPS16e SAVE
617 2007-11-20 Vladimir Prus <vladimir@codesourcery.com>
619 * infrun.c (resume): Clarify logic that
620 decides if a single thread must be resumed. Add
623 2007-11-20 Vladimir Prus <vladimir@codesourcery.com>
625 * breakpoint.c (disable_breakpoints_in_unloaded_shlib):
628 2007-11-19 Markus Deuling <deuling@de.ibm.com>
630 * gdbarch.sh (register_sim_regno): Add gdbarch as parameter.
631 * gdbarch.{c,h}: Regenerate.
633 * arch-utils.h (legacy_register_sim_regno): Add gdbarch as parameter.
634 * score-tdep.c (score_register_sim_regno): Likewise.
635 * sim-regno.h (one2one_register_sim_regno): Likewise.
637 * arch-utils.c (legacy_register_sim_regno): Add gdbarch as parameter.
638 Replace current_gdbarch by gdbarch.
639 * sh-tdep.c (sh_sh2a_register_sim_regno)
640 (sh_dsp_register_sim_regno): Likewise.
641 * rs6000-tdep.c (rs6000_register_sim_regno): Likewise.
642 * mips-tdep.c (mips_register_sim_regno): Likewise.
643 * m32c-tdep.c (m32c_register_sim_regno): Likewise.
644 * frv-tdep.c (frv_register_sim_regno): Likewise.
645 * arm-tdep.c (arm_register_sim_regno): Likewise.
646 * remote-sim.c (one2one_register_sim_regno): Likewise.
648 2007-11-16 Ulrich Weigand <uweigand@de.ibm.com>
650 * configure.ac (--enable-targets): New configure option.
651 Collect gdb_target_obs of multiple targets into TARGET_OBS.
652 Call configure.tgt multiple times, using $targ as operand.
653 * configure.tgt: Operate on $targ instead of $target.
654 * configure: Regenerate.
655 * Makefile.in (ALL_TARGET_OBS): Define.
657 * NEWS: Mention --enable-targets option.
659 2007-11-16 Ulrich Weigand <uweigand@de.ibm.com>
661 * mips-tdep.c (show_mipsfpu_command): Do not crash if called when
662 current architecture is not MIPS.
664 2007-11-16 Ulrich Weigand <uweigand@de.ibm.com>
666 * cli/cli-setshow.c (do_setshow_command): Use dynamically sized buffer
667 to construct error message if no argument was supplied.
669 2007-11-16 Ulrich Weigand <uweigand@de.ibm.com>
671 * i386nbsd-tdep.c (i386nbsd_aout_supply_regset): Remove.
672 (i386nbsd_aout_regset_from_core_section): Likewise.
673 (i386nbsd_aout_init_abi): Likewise.
674 (_initialize_i386nbsd_tdep): Do not register i386nbsd_aout_init_abi.
676 * vaxnbsd-tdep.c (vaxnbsd_aout_init_abi): Remove.
677 (_initialize_vaxnbsd_tdep): Do not register vaxnbsd_aout_init_abi.
679 2007-11-16 Ulrich Weigand <uweigand@de.ibm.com>
681 * amd64fsdb-tdep.c (amd64fbsd_sigtramp_start_addr): Use ULL suffix.
682 (amd64fbsd_sigtramp_end_addr): Likewise.
684 * iq2000-tdep.c (iq2000_pointer_to_address): Fix argument type.
685 (iq2000_address_to_pointer): Likewise.
686 (iq2000_frame_prev_register): Likewise.
687 (iq2000_extract_return_value): Use regcache_cooked_read_unsigned
688 instead of regcache_cooked_read into CORE_ADDR variable.
689 (iq2000_return_value): Fix argument types.
691 * m32r-rom.c (m32r_load_section): Fix printf argument type.
692 (m32r_load): Likewise.
694 * m68kbsd-tdep.c: Include "gdbtypes.h".
695 * Makefile.in: Update dependencies.
697 * mn10300-tdep.c (mn10300_frame_unwind_cache): Fix aliasing violation.
699 * nto-tdep.c (LM_ADDR): Do not refer to no-longer-existing
700 lmo->l_addr_size element.
702 * remote-m32r-sdi.c (m32r_xfer_memory): Use paddr to print address.
703 (m32r_insert_breakpoint): Likewise.
704 (m32r_remove_breakpoint): Likewise.
705 (m32r_insert_watchpoint): Likewise.
706 (m32r_remove_watchpoint): Likewise.
707 (m32r_load): Fix printf argument type.
709 * xtensa-tdep.c (xtensa_regset_from_core_section): Fix printf
711 (xtensa_frame_this_id): Do not cast pointers to "int" for output.
712 (xtensa_frame_prev_register): Likewise.
713 (xtensa_push_dummy_call): Likewise.
715 2007-11-16 Ulrich Weigand <uweigand@de.ibm.com>
717 * config/alpha/alpha-linux.mt: Remove file.
718 * config/alpha/alpha.mt: Remove file.
719 * config/alpha/alpha-osf1.mt: Remove file.
720 * config/alpha/fbsd.mt: Remove file.
721 * config/alpha/nbsd.mt: Remove file.
722 * config/alpha/obsd.mt: Remove file.
723 * config/arm/embed.mt: Remove file.
724 * config/arm/linux.mt: Remove file.
725 * config/arm/nbsd.mt: Remove file.
726 * config/arm/obsd.mt: Remove file.
727 * config/arm/wince.mt: Remove file.
728 * config/avr/avr.mt: Remove file.
729 * config/cris/cris.mt: Remove file.
730 * config/frv/frv.mt: Remove file.
731 * config/h8300/h8300.mt: Remove file.
732 * config/i386/cygwin.mt: Remove file.
733 * config/i386/fbsd64.mt: Remove file.
734 * config/i386/fbsd.mt: Remove file.
735 * config/i386/i386gnu.mt: Remove file.
736 * config/i386/i386.mt: Remove file.
737 * config/i386/i386sol2.mt: Remove file.
738 * config/i386/linux64.mt: Remove file.
739 * config/i386/linux.mt: Remove file.
740 * config/i386/mingw.mt: Remove file.
741 * config/i386/nbsd64.mt: Remove file.
742 * config/i386/nbsd.mt: Remove file.
743 * config/i386/nto.mt: Remove file.
744 * config/i386/obsd64.mt: Remove file.
745 * config/i386/obsd.mt: Remove file.
746 * config/i386/sol2-64.mt: Remove file.
747 * config/ia64/ia64.mt: Remove file.
748 * config/ia64/linux.mt: Remove file.
749 * config/iq2000/iq2000.mt: Remove file.
750 * config/m32c/m32c.mt: Remove file.
751 * config/m32r/linux.mt: Remove file.
752 * config/m32r/m32r.mt: Remove file.
753 * config/m68hc11/m68hc11.mt: Remove file.
754 * config/m68k/linux.mt: Remove file.
755 * config/m68k/monitor.mt: Remove file.
756 * config/m68k/nbsd.mt: Remove file.
757 * config/m68k/obsd.mt: Remove file.
758 * config/m88k/obsd.mt: Remove file.
759 * config/mep/mep.mt: Remove file.
760 * config/mips/embed.mt: Remove file.
761 * config/mips/irix5.mt: Remove file.
762 * config/mips/irix6.mt: Remove file.
763 * config/mips/linux.mt: Remove file.
764 * config/mips/nbsd.mt: Remove file.
765 * config/mips/obsd64.mt: Remove file.
766 * config/mn10300/linux.mt: Remove file.
767 * config/mn10300/mn10300.mt: Remove file.
768 * config/mt/mt.mt: Remove file.
769 * config/pa/hppahpux.mt: Remove file.
770 * config/pa/hppa.mt: Remove file.
771 * config/pa/linux.mt: Remove file.
772 * config/pa/obsd.mt: Remove file.
773 * config/powerpc/aix.mt: Remove file.
774 * config/powerpc/linux.mt: Remove file.
775 * config/powerpc/nbsd.mt: Remove file.
776 * config/powerpc/obsd.mt: Remove file.
777 * config/powerpc/ppc-eabi.mt: Remove file.
778 * config/s390/s390.mt: Remove file.
779 * config/score/embed.mt: Remove file.
780 * config/sh/embed.mt: Remove file.
781 * config/sh/linux.mt: Remove file.
782 * config/sh/nbsd.mt: Remove file.
783 * config/sh/obsd.mt: Remove file.
784 * config/sh/sh64.mt: Remove file.
785 * config/sparc/embed.mt: Remove file.
786 * config/sparc/fbsd.mt: Remove file.
787 * config/sparc/linux64.mt: Remove file.
788 * config/sparc/linux.mt: Remove file.
789 * config/sparc/nbsd64.mt: Remove file.
790 * config/sparc/nbsd.mt: Remove file.
791 * config/sparc/obsd64.mt: Remove file.
792 * config/sparc/obsd.mt: Remove file.
793 * config/sparc/sol2-64.mt: Remove file.
794 * config/sparc/sol2.mt: Remove file.
795 * config/sparc/sparc64.mt: Remove file.
796 * config/sparc/sparc.mt: Remove file.
797 * config/spu/spu.mt: Remove file.
798 * config/v850/v850.mt: Remove file.
799 * config/vax/nbsd.mt: Remove file.
800 * config/vax/obsd.mt: Remove file.
801 * config/vax/vax.mt: Remove file.
802 * config/xstormy16/xstormy16.mt: Remove file.
803 * config/xtensa/xtensa.mt: Remove file.
805 * configure.tgt (gdb_target_cpu): Remove. Do not set anywhere.
806 (gdb_target): Likewise.
807 (gdb_target_obs): Document. Set for every target to contents
808 of TDEPFILES in former .mt makefile fragment.
810 * configure.ac (TARGET_OBS): Define.
811 (target_makefile_frag, gdb_target_cpu): Do not define.
812 * configure: Regenerate.
814 * Makefile.in (MT_FLAGS): Remove.
815 (GLOBAL_CFLAGS): Update.
816 (TARGET_OBS): Substitute from configure.
817 (DEPFILES): Remove TDEPFILES, add TARGET_OBS.
818 (@target_makefile_frag@): Remove.
820 2007-11-16 Ulrich Weigand <uweigand@de.ibm.com>
822 * config/arm/embed.mt (SIM_OBS, SIM): Remove.
823 * config/avr/avr.mt (SIM_OBS, SIM): Remove.
824 * config/frv/frv.mt (SIM_OBS, SIM): Remove.
825 * config/h8300/h8300.mt (SIM_OBS, SIM): Remove.
826 * config/iq2000/iq2000.mt (SIM_OBS, SIM): Remove.
827 * config/m32c/m32c.mt (SIM_OBS, SIM): Remove.
828 * config/m32r/linux.mt (SIM_OBS, SIM): Remove.
829 * config/m32r/m32r.mt (SIM_OBS, SIM): Remove.
830 * config/m68hc11/m68hc11.mt (SIM_OBS, SIM): Remove.
831 * config/mips/embed.mt (SIM_OBS, SIM): Remove.
832 * config/mips/linux.mt (SIM_OBS, SIM): Remove.
833 * config/mips/nbsd.mt (SIM_OBS, SIM): Remove.
834 * config/mn10300/mn10300.mt (SIM_OBS, SIM): Remove.
835 * config/powerpc/linux.mt (SIM_OBS, SIM): Remove.
836 * config/powerpc/nbsd.mt (SIM_OBS, SIM): Remove.
837 * config/powerpc/ppc-sim.mt: Remove file.
838 * config/sh/embed.mt (SIM_OBS, SIM): Remove.
839 * config/sh/linux.mt (SIM_OBS, SIM): Remove.
840 * config/sh/nbsd.mt (SIM_OBS, SIM): Remove.
841 * config/sh/sh64.mt (SIM_OBS, SIM): Remove.
842 * config/sparc/embed.mt (SIM_OBS, SIM): Remove.
843 * config/v850/v850.mt (SIM_OBS, SIM): Remove.
844 * config/xstormy16/xstormy16.mt (SIM_OBS, SIM): Remove.
846 * configure.tgt (gdb_sim): Document variable.
847 (arm*-*-* | thumb*-*-* | strongarm*-*-* | xscale-*-*): Set it.
850 (h8300-*-*): Likewise.
851 (iq2000-*-*): Likewise.
852 (m32c-*-*): Likewise.
853 (m32r*-*-linux*): Likewise.
854 (m32r*-*-*): Likewise.
855 (m68hc11*-*-*|m6811*-*-*): Likewise.
856 (mips*-*-*): Likewise.
857 (mips*-*-linux*): Likewise.
858 (mips*-*-netbsd* | mips*-*-knetbsd*-gnu): Likewise.
859 (mn10300-*-*): Likewise.
860 (powerpc-*-linux* | powerpc64-*-linux*): Likewise.
861 (powerpc-*-netbsd* | powerpc-*-knetbsd*-gnu): Likewise.
862 (powerpc*-*-*): Use ppc-eabi target. Conditionally set gdb_sim.
864 (sh-*-linux*): Likewise.
865 (sh*-*-netbsdelf* | sh*-*-knetbsd*-gnu): Likewise.
866 (sh64-*-elf*): Likewise.
867 (sparc-*-rtems*): Likewise.
868 (v850*-*-elf): Likewise.
869 (xstormy16-*-*): Likewise.
871 * configure.ac (IGNORE_SIM, IGNORE_SIM_OBS): Do not set.
872 (SIM, SIM_OBS): Set depending on ${ignore_sim} and ${gdb_sim}.
873 * configure: Regenerate.
874 * Makefile.in (SIM, SIM_OBS): Substitute from configure.
875 (@IGNORE_SIM@, @IGNORE_SIM_OBS@): Remove.
877 2007-11-16 Ulrich Weigand <uweigand@de.ibm.com>
879 * configure.tgt (gdb_osabi, build_gdbserver): Comment variables.
880 (arm*-*-*): Do not set obsolete build_rdi_share variable.
882 (*-*-freebsd* | *-*-kfreebsd*-gnu): Remove generic case, replace by ...
883 (alpha*-*-freebsd* | alpha*-*-kfreebsd*-gnu)
884 (i[34567]86-*-freebsd* | i[34567]86-*-kfreebsd*-gnu)
885 (sparc*-*-freebsd* | sparc*-*-kfreebsd*-gnu): ... specific cases.
886 (x86_64-*-freebsd* | x86_64-*-kfreebsd*-gnu): Re-sort.
888 (xscale-*-*): Merge into arm*-*-* case.
889 (fido-*-elf*): Merge into m68*-*-elf* case.
890 (m68*-*-aout*, m68*-*-coff*, m68*-*-elf*, m68*-*-rtems*,
891 m68*-*-uclinux*): Merge cases.
892 (powerpc-*-linux*, powerpc64-*-linux*): Merge cases.
893 (sh-*-coff*, sh-*-elf*): Merge into sh* case.
895 2007-11-16 Ulrich Weigand <uweigand@de.ibm.com>
897 * configure.tgt: Reformat main case statement.
899 2007-11-16 Ulrich Weigand <uweigand@de.ibm.com>
901 * configure.ac (hostfile, targetfile): Remove.
902 (GDB_XM_FILE, GDB_TM_FILE): Do not define.
903 (xm_h, tm_h): Likewise.
904 (DEPRECATED_TM_FILE, XM_FILE): Do not substitute into Makefile.
905 * configure, config.in: Regenerate.
907 * Makefile.in (xm_h, tm_h): Remove. Update dependencies.
908 (TAGS): Do not consider DEPRECATED_TM_FILE or XM_FILE.
909 (clean, local-maintainer-clean): Do not remove xm.h or tm.h.
910 * defs.h: Do not include "xm.h" or "tm.h".
912 * gdbarch.sh (verify_gdbarch): Do not dump GDB_XM_FILE or GDB_TM_FILE.
913 * gdbarch.c: Regenerate.
915 * config/score/embed.mt: Remove obsolete comment.
917 2007-11-16 Markus Deuling <deuling@de.ibm.com>
919 * gdbarch.sh (cannot_fetch_register, cannot_store_register): Add gdbarch
921 * gdbarch.{c,h}: Regenerate.
923 * alpha-tdep.c (alpha_cannot_fetch_register)
924 (alpha_cannot_store_register): Add gdbarch as parameter. Replace
925 current_gdbarch by gdbarch.
926 * cris-tdep.c (cris_cannot_fetch_register, cris_cannot_store_register)
927 (crisv32_cannot_fetch_register)
928 (crisv32_cannot_store_register): Likewise.
929 * arch-utils.c (cannot_register_not): Likewise.
930 * arch-utils.h (cannot_register_not): Likewise.
931 * hppa-tdep.c (hppa32_cannot_store_register)
932 (hppa32_cannot_store_register, hppa64_cannot_store_register)
933 (hppa64_cannot_fetch_register): Likewise.
934 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register)
935 (mipsnbsd_cannot_store_register): Likewise.
937 2007-11-16 Markus Deuling <deuling@de.ibm.com>
939 * m32r-rom.c (m32r_supply_register): Use get_regcache_arch to get at
940 the current architecture by regcache.
941 * ppcnbsd-nat.c (ppcnbsd_supply_pcb): Likewise.
942 * ppc-linux-nat.c (fetch_altivec_register, fetch_spe_register)
943 (fetch_register, supply_vrregset, fetch_ppc_registers)
944 (store_altivec_register, store_spe_register, store_register)
945 (fill_vrregset, store_ppc_registers): Likewise.
946 * ppcobsd-nat.c (ppcobsd_supply_pcb): Likewise.
947 * win32-nat.c (do_win32_fetch_inferior_registers)
948 (do_win32_store_inferior_registers): Likewise.
949 * procfs.c (procfs_fetch_registers, procfs_store_registers): Likewise.
950 * remote-m32r-sdi.c (m32r_fetch_registers)
951 (m32r_store_registers): Likewise.
952 * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register): Likewise.
954 * trad-frame.c (trad_frame_alloc_saved_regs): Replace current_gdbarch by
956 * user-regs.c (user_reg_map_name_to_regnum): Likewise.
957 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call)
958 (do_ppc_sysv_return_value, ppc64_sysv_abi_push_dummy_call)
959 (ppc64_sysv_abi_return_value): Likewise.
960 * m32c-tdep.c (m32c_register_reggroup_p): Likewise.
961 * m2-lang.c (build_m2_types): Likewise.
962 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache
963 * ppcnbsd-tdep.c (ppcnbsd_sigtramp_cache_init): Likewise.
964 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_cache): Likewise.
965 * rs6000-tdep.c (ppc_dwarf2_frame_init_reg): Likewise.
967 * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Use get_frame_arch to
968 get at the current architecture by frame_info.
969 * gcore.c (derive_stack_segment): Likewise.
971 * shnbsd-nat.c (GETREGS_SUPPLIES): Add gdbarch parameter.
972 (shnbsd_fetch_inferior_registers, shnbsd_store_inferior_registers): Add
973 gdbarch to GETREGS_SUPPLIES call.
975 2007-11-16 Ulrich Weigand <uweigand@de.ibm.com>
977 * elfread.c (ST_REGULAR, ST_DYNAMIC, ST_SYNTHETIC): New defines.
978 (elf_symtab_read): Rename DYNAMIC argument to TYPE. Do not access
979 ELF-private symbol data when processing synthetic symbols. Use
980 udata.p to get at size of ppc64 synthetic 'dot' symbols.
981 (elf_symfile_read): Pass TYPE argument to elf_symtab_read.
983 2007-11-15 Doug Evans <dje@google.com>
985 * buildsym.h (subfiles): Move ...
986 * buildsym.c (subfiles): ... to here and make static.
988 * symmisc.c (maintenance_info_symtabs): Print linetable info.
990 2007-11-15 Markus Deuling <deuling@de.ibm.com>
992 * mipsnbsd-tdep.h (SIZEOF_STRUCT_REG, SIZEOF_STRUCT_FPREG): Remove
994 2007-11-15 Markus Deuling <deuling@de.ibm.com>
996 * arm-tdep.c (arm_prologue_this_id): Replace LOWEST_PC by its
997 expression and use get_frame_arch to replace current_gdbarch by frame's
999 * arm-tdep.h (LOWEST_PC): Remove
1001 2007-11-15 Vladimir Prus <vladimir@codesourcery.com>
1003 Apply const qualifier to some users of bp_location.
1004 * breakpoint.h (struct bpstats): Make
1005 the breakpoint_at field point at const bp_location.
1006 * breakpoint.c (bpstat_alloc): Accept const
1008 (breakpoint_here_p, breakpoint_inserted_here_p)
1009 (software_breakpoint_inserted_here_p)
1010 (breakpoint_thread_match, bpstat_stop_status)
1011 (read_memory_nobpt, bpstat_have_active_hw_watchpoints): Use
1012 const bp_location for iteration.
1013 (print_it_typical, print_bp_stop_message): Use
1014 const bp_location variable.
1016 2007-11-15 Vladimir Prus <vladimir@codesourcery.com>
1018 Make mark_breakpoints_out static.
1019 * breakpoint.h (mark_breakpoints_out): Remove
1021 * breakpoint.c (mark_breakpoints_out): Make static.
1023 2007-11-15 Vladimir Prus <vladimir@codesourcery.com>
1025 Prevent clear_command from directly modifying breakpoint list.
1026 * Makefile.in (breakpoint_h): Update dependency.
1027 * breakpoint.c (clear_command): Do not remove
1028 breakpoints from breakpoint_chain. Collect breakpoints
1029 to delete in a vector.
1030 * breakpoint.h (breakpoint_p): New typedef for pointer to
1031 breakpoint. Register vector of breakpoint_p.
1033 2007-11-15 Vladimir Prus <vladimir@codesourcery.com>
1035 Remove 'run_cleanup'.
1036 * defs.h (do_run_cleanups, make_run_cleanup): Remove
1038 * infcmd.c (run_command_1): Call clear_solib instead
1040 * jv-lang.c (java_rerun_cleanup): Remove, for lack of
1042 * solib.c (solib_cleanup_queued, do_clear_solib): Remove.
1043 (update_solib_lib): Don't setup run cleanup.
1044 (no_shared_libraries): Call clear_solib, not do_clear_solib.
1045 * utils.c (run_cleanup_chain, make_run_cleanup)
1046 (do_run_cleanups): Remove.
1048 2007-11-15 Vladimir Prus <vladimir@codesourcery.com>
1050 Remove CLEAR_SOLIB use.
1051 * corelow.c (core_close): Don't check for CLEAR_SOLIB.
1052 * infcmd.c (attach_command): Likewise.
1054 2007-11-14 Doug Evans <dje@google.com>
1056 * buildsym.c (start_subfile,start_symtab): Doc fixes.
1058 2007-11-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
1060 * tui/tui-data.c (tui_prev_win): Guard against NULL.
1062 2007-11-12 Markus Deuling <deuling@de.ibm.com>
1064 * gdbarch.sh (gdbarch_alloc): Replace current_gdbarch by gdbarch. Remove
1066 (verify_gdbarch, gdbarch_dump): Likewise.
1067 (do_read): Update comment.
1068 (addr_bit, bfd_arch_info, target_desc, long_long_bit, floatformat)
1069 (ptr_bit, name_of_malloc): Replace current_gdbarch by gdbarch.
1070 * gdbarch.{c,h}: Regenerate.
1072 2007-11-12 Markus Deuling <deuling@de.ibm.com>
1074 * xtensa-tdep.c (ARG_1ST): Replace ARGS_FIRST_REG by its expression.
1075 (ARGS_FIRST_REG): Remove.
1076 (areg_numer): New function.
1077 (xtensa_pseudo_register_read, xtensa_frame_prev_register)
1078 (xtensa_extract_return_value, xtensa_store_return_value)
1079 (xtensa_frame_cache): Replace AREG_NUMBER by areg_number.
1080 (AREG_NUMBER): Remove.
1081 (XTENSA_IS_ENTRY, ARG_NOF, ARG_1ST): Add gdbarch as parameter.
1082 (xtensa_frame_cache): Update use of XTENSA_IS_ENTRY.
1083 (xtensa_push_dummy_call): Update use of ARG_NOF.
1084 (extract_call_winsize): Add gdbarch as parameter. Replace
1085 current_gdbarch by gdbarch.
1086 (xtensa_extract_return_value, xtensa_store_return_value): Update call
1087 of extract_call_winsize.
1089 2007-11-10 Joel Brobecker <brobecker@adacore.com>
1091 * NEWS: Add entry for new set/show print frame-args command.
1093 2007-11-09 Kevin Buettner <kevinb@redhat.com>
1095 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Add missing
1096 register number to map. Adjust warning check and error/warning
1097 return value code to match expectations of this function's callers.
1099 2007-11-09 Joel Brobecker <brobecker@adacore.com>
1101 * stack.c (print_this_frame_argument_p): Handle arguments passed
1102 by reference properly.
1104 2007-11-09 Joel Brobecker <brobecker@adacore.com>
1106 * stack.c (print_frame_arguments_choices): New static global.
1107 (print_frame_arguments): Likewise.
1108 (print_this_frame_argument_p): New function.
1109 (print_frame_args): Print the argument value only when appropriate.
1110 (_initialize_task): Add new "set/show print frame-arguments" command.
1112 2007-11-09 Luis Machado <luisgpm@br.ibm.com>
1114 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Move
1115 saved_dabr_value assignment to the correct position.
1117 2007-11-09 Markus Deuling <deuling@de.ibm.com>
1119 * arch-utils.c (generic_convert_register_p): Add gdbarch as parameter.
1120 * arch-utils.h (generic_convert_register_p): Likewise.
1122 2007-11-09 Markus Deuling <deuling@de.ibm.com>
1124 * gdbarch.sh (convert_register_p): Add gdbarch as parameter.
1125 * ia64-tdep.c (ia64_convert_register_p): Likewise.
1126 * i387-tdep.c (i387_convert_register_p): Likewise.
1127 * i387-tdep.h (i387_convert_register_p): Likewise.
1128 * alpha-tdep.c (alpha_convert_register_p): Likewise.
1129 * gdbarch.{c,h}: Regenerate.
1131 * rs6000-tdep.c (rs6000_convert_register_p): Add gdbarch as parameter.
1132 Replace current_gdbarch by gdbarch.
1133 * mips-tdep.c (mips_convert_register_p): Likewise.
1134 * m68k-tdep.c (m68k_convert_register_p): Likewise.
1135 * i386-tdep.c (i386_convert_register_p): Likewise.
1137 2007-11-08 Aleksandar Ristovski <aristovski@qnx.com>
1139 * gdb_string.h: Include <strings.h>.
1141 2007-11-08 Vladimir Prus <vladimir@codesourcery.com>
1143 * breakpoint.c (break_command_1): Remove
1144 pending_bp parameter.
1145 (create_breakpoint): Likewise.
1146 (create_breakpoints): Likewise. Adjust call to
1148 (break_command_1): Likewise. Adjust call to
1150 (do_captured_breakpoint): Adjust call to
1152 (break_command, tbreak_command, hbreak_command)
1153 (stopin_command, stopat_command): Adjust call
1156 2007-11-07 Joseph Myers <joseph@codesourcery.com>
1157 Daniel Jacobowitz <dan@codesourcery.com>
1159 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Right-align
1160 struct values smaller than one doubleword; left-align those
1161 larger. Pass structs containing a single floating-point value in
1164 2007-11-07 Joseph Myers <joseph@codesourcery.com>
1165 Daniel Jacobowitz <dan@codesourcery.com>
1167 * gdbtypes.c (floatformats_ibm_long_double): New.
1168 * gdbtypes.h (floatformats_ibm_long_double): Declare.
1169 * ia64-tdep.c (floatformat_ia64_ext): Update for addition of
1171 * mips-tdep.c (n32n64_floatformat_always_valid,
1172 floatformat_n32n64_long_double_big, floatformats_n32n64_long):
1174 (mips_gdbarch_init): Use floatformats_ibm_long_double instead of
1175 floatformats_n32n64_long.
1176 * ppc-linux-tdep.c (ppc_linux_init_abi): Use 128-bit IBM long
1178 * doublest.c (convert_floatformat_to_doublest,
1179 convert_doublest_to_floatformat): Handle split floating-point
1181 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Handle IBM long
1183 (ppc64_sysv_abi_push_dummy_call): Likewise.
1184 (do_ppc_sysv_return_value): Handle IBM long double return.
1186 2007-11-07 Vladimir Prus <vladimir@codesourcery.com>
1188 Fix crash when a variable object being deleted
1189 has any of its children deleted previously.
1191 * varobj.c (delete_variable_1): Don't recurse
1192 into deleted children.
1194 2007-11-07 Markus Deuling <deuling@de.ibm.com>
1196 * gdbarch.sh (legacy_virtual_frame_pointer): Add gdbarch parameter.
1197 * gdbarch.{c,h}: Regenerate.
1198 * arch-utils.c (legacy_virtual_frame_pointer): Add gdbarch parameter.
1199 Replace current_gdbarch by gdbarch.
1200 * m32c-tdep.c (m32c_virtual_frame_pointer): Likewise.
1201 * mips-tdep.c (mips_virtual_frame_pointer): Likewise.
1202 * spu-tdep.c (spu_virtual_frame_pointer): Likewise.
1204 2007-11-07 Markus Deuling <deuling@de.ibm.com>
1206 * shnbsd-tdep.c (shnbsd_supply_gregset, shnbsd_collect_gregset): Use
1207 get_regcache_arch to get at the current architecture by regcache.
1208 * xstormy16-tdep.c (xstormy16_frame_prev_register): Use get_frame_arch
1209 to get at the current architecture by frame_info.
1210 * fbsd-nat.c (fbsd_make_corefile_notes): Use get_regcache_arch to get
1211 at the current architecture by regcache.
1212 * gnu-v3-abi.c (gnuv3_skip_trampoline): Use get_frame_arch to get at
1213 the current architecture by frame_info.
1214 (build_gdb_vtable_type): Replace current_gdbarch by gdbarch.
1215 * aix-thread.c (special_register_p): Add gdbarch as parameter.
1216 (fetch_regs_kernel_thread, store_regs_kernel_thread): Add gdbarch to
1217 caller of special_register_p.
1219 2007-11-07 Markus Deuling <deuling@de.ibm.com>
1221 * infcall.c (call_function_by_hand): Use get_frame_arch to get at the
1222 current architecture by frame_info.
1224 2007-11-07 Markus Deuling <deuling@de.ibm.com>
1226 * xtensa-tdep.h (SIZEOF_GREGSET, XTENSA_ELF_NGREG) Remove.
1228 2007-11-07 Markus Deuling <deuling@de.ibm.com>
1230 * s390-nat.c (supply_gregset, fill_gregset): Use get_regcache_arch to
1231 get at the current architecture by regcache.
1232 (SUBOFF): Add gdbarch to macro definition.
1234 2007-11-07 Markus Deuling <deuling@de.ibm.com>
1236 * gdbarch.sh (breakpoint_from_pc): Add gdbarch parameter.
1237 * gdbarch.{c,h}: Regenerate.
1239 * xtensa-tdep.c (xtensa_breakpoint_from_pc): Add gdbarch parameter.
1240 Replace current_gdbarch by gdbarch.
1241 * sh-tdep.c (sh_breakpoint_from_pc): Likewise.
1242 * sh64-tdep.c (sh64_breakpoint_from_pc): Likewise.
1243 * score-tdep.c (score_breakpoint_from_pc): Likewise.
1244 * mips-tdep.c (mips_breakpoint_from_pc): Likewise.
1245 * m32r-tdep.c (m32r_breakpoint_from_pc): Likewise.
1246 * iq2000-tdep.c (iq2000_breakpoint_from_pc): Likewise.
1247 * arm-tdep.c (arm_breakpoint_from_pc): Likewise.
1249 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Add gdbarch
1251 * vax-tdep.c (vax_breakpoint_from_pc): Likewise.
1252 * v850-tdep.c (v850_breakpoint_from_pc): Likewise.
1253 * spu-tdep.c (spu_breakpoint_from_pc): Likewise.
1254 * sparc-tdep.c (sparc_breakpoint_from_pc): Likewise.
1255 * s390-tdep.c (s390_breakpoint_from_pc): Likewise.
1256 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Likewise.
1257 * mt-tdep.c (mt_breakpoint_from_pc): Likewise.
1258 * mep-tdep.c (mep_breakpoint_from_pc): Likewise.
1259 * m88k-tdep.c (m88k_breakpoint_from_pc): Likewise.
1260 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Likewise.
1261 * m32c-tdep.c (m32c_breakpoint_from_pc): Likewise.
1262 * ia64-tdep.c (ia64_breakpoint_from_pc): Likewise.
1263 * i386-tdep.c (i386_breakpoint_from_pc): Likewise.
1264 * hppa-tdep.c (hppa_breakpoint_from_pc): Likewise.
1265 * h8300-tdep.c (h8300_breakpoint_from_pc): Likewise.
1266 * frv-tdep.c (frv_breakpoint_from_pc): Likewise.
1267 * cris-tdep.c (cris_breakpoint_from_pc): Likewise.
1268 * avr-tdep.c (avr_breakpoint_from_pc): Likewise.
1269 * alpha-tdep.c (alpha_breakpoint_from_pc): Likewise.
1270 * m68k-tdep.c (m68k_local_breakpoint_from_pc): Likewise.
1272 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Add gdbarch parameter.
1273 Replace current_gdbarch by gdbarch.
1274 (rs6000_software_single_step): Use get_frame_arch to get at the
1275 current architecture by frame_info. Add gdbarch to
1276 rs6000_breakpoint_from_pc call.
1278 2007-11-07 Markus Deuling <deuling@de.ibm.com>
1280 * frv-tdep.c (frv_register_name, frv_check_watch_resources): Replace
1281 macro CURRENT_VARIANT by its expression.
1282 (CURRENT_VARIANT): Remove.
1283 (frv_check_watch_resources): Add gdbarch parameter.
1285 2007-11-07 Markus Deuling <deuling@de.ibm.com>
1287 * MAINTAINERS (Write After Approval): Add self.
1289 2007-11-05 Ulrich Weigand <uweigand@de.ibm.com>
1291 * features/rs6000/power-core.xml: Use uint32 as register type.
1292 * features/rs6000/power64-core.xml: Use uint64/uint32 as register type.
1293 * features/rs6000/powerpc-32.c: Regenerate.
1294 * features/rs6000/powerpc-403.c: Regenerate.
1295 * features/rs6000/powerpc-403gc.c: Regenerate.
1296 * features/rs6000/powerpc-505.c: Regenerate.
1297 * features/rs6000/powerpc-602.c: Regenerate.
1298 * features/rs6000/powerpc-603.c: Regenerate.
1299 * features/rs6000/powerpc-604.c: Regenerate.
1300 * features/rs6000/powerpc-64.c: Regenerate.
1301 * features/rs6000/powerpc-7400.c: Regenerate.
1302 * features/rs6000/powerpc-750.c: Regenerate.
1303 * features/rs6000/powerpc-860.c: Regenerate.
1304 * features/rs6000/powerpc-e500.c: Regenerate.
1306 2007-11-05 Joel Brobecker <brobecker@adacore.com>
1308 * breakpoint.c (set_raw_breakpoint_without_location): Make static.
1310 2007-11-05 Joel Brobecker <brobecker@adacore.com>
1312 * breakpoint.h (create_solib_load_event_breakpoint)
1313 (create_solib_unload_event_breakpoint)
1314 (create_fork_event_catchpoint, create_vfork_event_catchpoint)
1315 (create_exec_event_catchpoint): Delete declaration.
1316 * breakpoint.c (create_solib_load_event_breakpoint)
1317 (solib_load_unload_1, create_solib_unload_event_breakpoint): Delete.
1318 (create_fork_event_catchpoint, create_vfork_event_catchpoint)
1319 (create_exec_event_catchpoint): Make static.
1321 2007-11-05 Joel Brobecker <brobecker@adacore.com>
1323 * breakpoint.h (set_breakpoint_sal): Remove declaration.
1324 * breakpoint.c (set_breakpoint_sal): Delete.
1326 2007-11-05 Joel Brobecker <brobecker@adacore.com>
1328 * buildsym.c (finish_block): Remove "#if 1"/"#endif" brackets.
1329 (make_blockvector): Likewise. Remove FIXME comment.
1331 2007-11-05 Luis Machado <luisgpm@br.ibm.com>
1333 * printcmd.c: (printf_command): Add support for new DFP
1334 modifiers %H, %D and %DD.
1335 * configure.ac: Add check for DECFLOAT printf support.
1336 * configure: Regenerated.
1338 2007-11-02 Ulrich Weigand <uweigand@de.ibm.com>
1340 * gdbtypes.h (struct cplus_struct_type): Remove runtime_ptr member.
1341 (TYPE_RUNTIME_PTR, TYPE_VTABLE, TYPE_HAS_VTABLE,
1342 TYPE_PRIMARY_BASE, TYPE_VIRTUAL_BASE_LIST): Remove macros.
1343 (HP_ACC_VFUNC_START, HP_ACC_VBASE_START, HP_ACC_TYPEINFO_OFFSET,
1344 HP_ACC_TOP_OFFSET_OFFSET): Likewise.
1345 (has_vtable, primary_base_class, virtual_base_list_length,
1346 virtual_base_list_length_skip_primaries, virtual_base_index,
1347 virtual_base_index_skip_primaries, class_index_in_primary_list,
1348 count_virtual_fns): Remove prototypes.
1349 * gdbtypes.c (has_vtable, primary_base_class, current_vbase_list,
1350 virtual_base_list_aux, virtual_base_list, virtual_base_list_length,
1351 virtual_base_list_length_skip_primaries, virtual_base_index,
1352 virtual_base_index_skip_primaries, class_index_in_primary_list,
1353 count_virtual_fns): Remove.
1355 * cp-valprint.c (cp_print_hpacc_virtual_table_entries): Remove.
1356 (hpacc_vtbl_ptr_name, hpacc_vtbl_ptr_type_name): Remove.
1357 (cp_print_value_fields): Remove support for HP aCC vtables.
1358 (cp_print_value): Likewise.
1359 * c-typeprint.c (c_type_print_base): Likewise.
1361 * value.h (find_rt_vbase_offset): Remove prototype.
1362 * valops.c (find_rt_vbase_offset): Remove.
1363 (search_struct_method): Remove support for HP aCC vtables.
1364 (find_method_list): Likewise.
1366 2007-11-02 Ulrich Weigand <uweigand@de.ibm.com>
1368 * language.h (struct language_defn): Remove la_builtin_type_vector
1369 and string_char_type members.
1370 * language.c (language_string_char_type): No longer consult
1371 la->string_char_type.
1372 (language_lookup_primitive_type_by_name): No longer consult
1373 current_language->la_builtin_type_vector.
1375 * language.c (unknown_language_defn, auto_language_defn,
1376 local_language_defn): Adapt initializer.
1377 * ada-lang.c (ada_language_defn): Likewise.
1378 * c-lang.c (c_language_defn, cplus_language_defn, asm_language_defn,
1379 minimal_language_defn): Likewise.
1380 * f-lang.c (f_language_defn): Likewise.
1381 * jv-lang.c (java_language_defn): Likewise.
1382 * m2-lang.c (m2_language_defn): Likewise.
1383 * objc-lang.c (objc_language_defn): Likewise.
1384 * p-lang.c (pascal_language_defn): Likewise.
1385 * scm-lang.c (scm_language_defn): Likewise.
1387 2007-11-02 Markus Deuling <deuling@de.ibm.com>
1389 * frame.c (frame_id_inner): Add gdbarch parameter. Replace
1390 current_gdbarch by gdbarch.
1391 (frame_find_by_id, get_prev_frame_1): Use get_frame_arch to get at the
1392 current architecture by frame_info.
1393 * frame.h (frame_id_inner): Add gdbarch parameter.
1394 * stack.c (return_command): Use get_frame_arch to get at the current
1395 architecture by frame_info. Update call of frame_id_inner.
1396 * infrun.c (handle_inferior_event): Likewise.
1397 * dummy-frame.c (dummy_frame_push): Use get_regcache_arch to get at the
1398 current architecture by regcache. Update call of frame_id_inner.
1400 2007-11-02 Markus Deuling <deuling@de.ibm.com>
1402 * gdbarch.sh (register_name): Add gdbarch parameter.
1403 * gdbarch.{c,h}: Regenerate.
1405 * target-descriptions.c (tdesc_register_name): Add gdbarch parameter.
1406 (tdesc_register_name): Replace current_gdbarch by gdbarch.
1407 * target-descriptions.h (tdesc_register_name): Add gdbarch parameter.
1409 * xstormy16-tdep.c (xstormy16_register_name): Add gdbarch parameter.
1410 * vax-tdep.c (vax_register_name): Add gdbarch parameter.
1411 * spu-tdep.c (spu_register_name): Add gdbarch parameter.
1412 * s390-tdep.c (s390_register_name): Add gdbarch parameter.
1413 * mt-tdep.c (mt_register_name): Add gdbarch parameter.
1414 (mt_registers_info): Replace current_gdbarch by gdbarch.
1415 (mt_register_reggroup_p): Add gdbarch to mt_register_name call.
1416 * mips-tdep.c (mips_register_name): Add gdbarch parameter. Replace
1417 current_gdbarch by gdbarch.
1418 (mips_register_name): Add gdbarch to tdesc_register_name call.
1419 * mep-tdep.c (mep_register_name): Add gdbarch parameter. Replace
1420 current_gdbarch by gdbarch.
1421 (mep_register_reggroup_p): Add gdbarch to mep_register_name call.
1422 * m32c-tdep.c (m32c_register_name): Add gdbarch parameter. Replace
1423 current_gdbarch by gdbarch.
1424 * m88k-tdep.c (m88k_register_name): Add gdbarch parameter.
1425 * m68k-tdep.c (m68k_register_name): Add gdbarch parameter.
1426 * m32r-tdep.c (m32r_register_name): Add gdbarch parameter.
1427 (m32r_frame_unwind_cache): Use get_frame_arch to get at the current
1428 architecture by frame_info.
1429 * iq2000-tdep.c (iq2000_register_name): Add gdbarch parameter.
1430 * ia64-tdep.c (ia64_register_name): Add gdbarch parameter.
1431 * hppa-tdep.c (hppa32_register_name, hppa64_register_name): Add gdbarch
1433 * h8300-tdep.c (h8300_register_name, h8300s_register_name)
1434 (h8300sx_register_name): Add gdbarch parameter.
1435 * cris-tdep.c (cris_register_name, crisv32_register_name): Add
1436 gdbarch parameter. Replace current_gdbarch by gdbarch.
1437 (cris_gdbarch_init): Replace current_gdbarch by gdbarch (comment).
1438 * avr-tdep.c (avr_register_name): Add gdbarch parameter.
1439 * arm-tdep.c (arm_register_name): Add gdbarch paramete
1440 * amd64-tdep.c (amd64_register_name): Add gdbarch parameter. Update
1442 * amd64-tdep.h (amd64_register_name): Add gdbarch parameter.
1443 * amd64-linux-tdep.c (amd64_linux_register_name): Add gdbarch parameter.
1444 * alpha-tdep.c (alpha_register_name): Add gdbarch parameter.
1445 (alpha_cannot_fetch_register, alpha_cannot_store_register): Update call
1446 of alpha_register_name.
1447 * frv-tdep.c (frv_register_name): Add gdbarch parameter.
1448 * i386-tdep.c (i386_register_name): Add gdbarch parameter. Replace
1449 current_gdbarch by gdbarch.
1450 (i386_register_type): Replace ?current_gdbarch by gdbarch.
1451 * i386-tdep.h (i386_register_name): Add gdbarch parameter.
1452 * i386-linux-tdep.c (i386_linux_register_name): Add gdbarch parameter.
1454 * m68hc11-tdep.c (m68hc11_register_name): Add gdbarch parameter.
1455 (m68hc11_register_reggroup_p): Add gdbarch to call of
1456 m68hc11_register_name.
1457 * mn10300-tdep.c (mn10300_generic_register_name, am33_register_name)
1458 (am33_2_register_name): Add gdbarch parameter.
1459 (mn10300_frame_unwind_cache): Use get_frame_arch to get at the current
1460 architecture by frame_info.
1461 (mn10300_dump_tdep): Replace current_gdbarch by gdbarch.
1462 * rs6000-tdep.c (rs6000_register_name): Add gdbarch parameter. Replace
1463 current_gdbarch by gdbarch.
1464 * score-tdep.c (score_register_name): Add gdbarch parameter.
1465 (score_return_value, score_push_dummy_call): Replace current_gdbarch
1467 * sh64-tdep.c (sh64_register_name): Add gdbarch parameter.
1468 (sh64_compact_reg_base_num, sh64_register_convert_to_virtual)
1469 (sh64_register_convert_to_raw, sh64_fv_reg_base_num)
1470 (sh64_dr_reg_base_num, sh64_fpp_reg_base_num): Add gdbarch parameter
1471 and update caller. Replace current_gdbarch by gdbarch.
1472 (sh64_extract_return_value, sh64_store_return_value): Use
1473 get_regcache_arch to get at the current architecture by regcache.
1474 * sh-tdep.c (sh_sh_register_name, sh_sh3_register_name)
1475 (sh_sh3e_register_name, sh_sh2e_register_name, sh_sh2a_register_name)
1476 (sh_sh2a_nofpu_register_name, sh_sh_dsp_register_name)
1477 (sh_sh3_dsp_register_name, sh_sh4_register_name)
1478 (sh_sh4_nofpu_register_name, sh_sh4al_dsp_register_name): Add gdbarch
1480 (fv_reg_base_num, dr_reg_base_num, sh_justify_value_in_reg)
1481 (sh_next_flt_argreg): Add gdbarch parameter and update caller. Replace
1482 current_gdbarch by gdbarch.
1483 (sh_extract_return_value_fpu, sh_store_return_value_fpu): Use
1484 get_regcache_arch to get at the current architecture by regcache.
1485 * sparc-tdep.c (sparc32_register_name): Add gdbarch parameter.
1486 * sparc64-tdep.c (sparc64_register_name): Add gdbarch parameter.
1487 * v850-tdep.c (v850_register_name, v850e_register_name): Add gdbarch
1489 (v850_unwind_sp, v850_unwind_pc): Replace current_gdbarch by gdbarch.
1490 * xtensa-tdep.c (xtensa_register_name): Add gdbarch parameter. Replace
1491 current_gdbarch by gdbarch.
1492 (xtensa_pseudo_register_read, xtensa_pseudo_register_write)
1493 (xtensa_frame_prev_register): Add gdbarch parameter to
1494 xtensa_register_name call.
1496 2007-10-31 Ulrich Weigand <uweigand@de.ibm.com>
1498 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Fall back to
1499 find_solib_trampoline_target if PC is not in .plt section.
1501 2007-10-31 Ulrich Weigand <uweigand@de.ibm.com>
1503 * elfread.c (elf_symtab_read): When constructing a solib trampoline
1504 minimal symbol from an undefined dynamic symbol, use proper section.
1506 2007-10-31 Markus Deuling <deuling@de.ibm.com>
1508 * arm-linux-nat.c (fetch_register, fetch_regs): Use get_regcache_arch
1509 to get at the current architecture by regcache.
1511 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1513 * libunwind-frame.c (libunwind_frame_sniffer)
1514 libunwind_frame_prev_register, libunwind_sigtramp_frame_sniffer)
1515 (libunwind_frame_cache): Use get_frame_arch to get at the current
1516 architecture by frame_info.
1517 (libunwind_get_reg_special): Replace current_gdbarch by gdbarch.
1519 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1521 * iq2000-tdep.c (iq2000_frame_prev_register): Use get_frame_arch to get
1522 at the current architecture by frame_info.
1524 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1526 * inf-child.c (inf_child_fetch_inferior_registers): Use
1527 get_regcache_arch to get at the current architecture by regcache.
1529 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1531 * inf-ptrace.c (inf_ptrace_fetch_registers)
1532 (inf_ptrace_fetch_register, inf_ptrace_store_register)
1533 (inf_ptrace_store_registers): Use get_regcache_arch to get at the
1534 current architecture by regcache.
1536 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1538 * hpux-thread.c (hpux_thread_fetch_registers)
1539 (hpux_thread_store_registers): Use get_regcache_arch to get at the
1540 current architecture by regcache.
1542 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1544 * hppa-tdep.c (hppa_frame_cache): Use get_frame_arch to get at the
1545 current architecture by frame_info.
1547 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1549 * go32-nat.c (fetch_register, go32_fetch_registers, store_register)
1550 (go32_store_registers): Use get_regcache_arch to get at the current
1551 architecture by regcache.
1553 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1555 * gdbtypes.c (gdbtypes_post_init): Replace current_gdbarch by gdbarch.
1557 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1559 * frv-linux-tdep.c (frv_linux_sigtramp_frame_cache): Use get_frame_arch
1560 to get at the current architecture by frame_info.
1562 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1564 * f-lang.c (build_fortran_types): Replace current_gdbarch by gdbarch.
1566 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1568 * core-regset.c (fetch_core_registers): Use get_regcache_arch to get at
1569 the current architecture by regcache.
1571 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1573 * corelow.c (get_core_registers): Use get_regcache_arch to get at the
1574 current architecture by regcache.
1576 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1578 * bsd-uthread.c (bsd_uthread_fetch_registers)
1579 (bsd_uthread_store_registers): Use get_regcache_arch to get at the
1580 current architecture by regcache.
1582 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1584 * avr-tdep.c (avr_frame_unwind_cache, avr_frame_prev_register): Use
1585 get_frame_arch to get at the current architecture by frame_info.
1587 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1589 * arm-tdep.c (arm_get_next_pc): Replace current_gdbarch by gdbarch.
1591 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1593 * armnbsd-nat.c (arm_supply_gregset, fetch_register, store_register)
1594 (store_regs): Use get_regcache_arch to get at the current architecture
1597 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1599 * arm-linux-tdep.c (arm_linux_supply_gregset): Use get_regcache_arch
1600 to get at the current architecture by regcache.
1602 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1604 * alphabsd-nat.c (alphabsd_fetch_inferior_registers)
1605 (alphabsd_store_inferior_registers): Use get_regcache_arch to get at
1606 the current architecture by regcache.
1608 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1610 * ada-lang.c (ada_language_arch_info): Replace current_gdbarch by
1613 2007-10-30 Daniel Jacobowitz <dan@codesourcery.com>
1615 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Check the selected
1616 soft float and vector ABIs. Support the generic vector ABI for
1618 (do_ppc_sysv_return_value): Likewise. Correct argument types and
1620 (ppc64_sysv_abi_push_dummy_call): Assert that floating point is
1622 * ppc-tdep.h (enum powerpc_vector_abi): New.
1623 (struct gdbarch_tdep): Add soft_float and vector_abi.
1624 * rs6000-tdep.c (setpowerpccmdlist, showpowerpccmdlist)
1625 (powerpc_soft_float_global, powerpc_vector_strings)
1626 (powerpc_vector_abi_global, powerpc_vector_abi_string): New.
1627 (rs6000_gdbarch_init): Check for soft-float and vector ABI markings.
1628 (set_powerpc_command, show_powerpc_command, powerpc_set_soft_float)
1629 (powerpc_set_vector_abi): New.
1630 (_initialize_rs6000_tdep): Register "set powerpc" and "show powerpc"
1632 * Makefile.in (elf_ppc_h): New.
1633 (rs6000-tdep.o): Update.
1635 2007-10-29 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
1637 * ppc-linux-tdep.c (ppc32_linux_reg_offsets): Corrected
1638 swapped offsets and VRSAVE offset.
1639 (ppc64_linux_reg_offsets): Corrected swapped offsets.
1640 (ppc32_linux_vrregset): Added.
1641 (ppc_linux_regset_from_core_section): Added support for
1642 .reg-ppc-vmx section.
1643 * ppc-tdep.h (ppc_altivec_support_p): Declare.
1644 (ppc_supply_vrregset): Declare.
1645 (ppc_collect_vrregset): Declare.
1646 * rs6000-tdep.c (ppc_altivec_support_p): Added.
1647 (ppc_supply_vrregset): Added.
1648 (ppc_collect_vrregset): Added.
1649 * corelow.c (get_core_registers): Added support for
1650 .reg-ppc-vmx section.
1652 2007-10-29 Joel Brobecker <brobecker@adacore.com>
1656 2007-10-26 Jim Blandy <jimb@codesourcery.com>
1658 * ax-gdb.h (expr_to_address_and_size): Delete declaration for
1661 * tracepoint.c (tracepoint_operation): Report the deletion event
1662 after we have unlinked the tracepoint from the list, and use the
1663 proper tracepoint number.
1665 * ax-gdb.c (expr_to_agent): Delete unused function.
1666 (expr_to_address_and_size): Delete #if 0'd function.
1667 * ax-gdb.h (expr_to_agent): Delete declaration.
1669 * ax-gdb.c (gen_cast): Remove redundant assignment to
1670 value->type. Doc fix.
1672 * ax-general.c (gen_traced_pop, gen_int_literal)
1673 (gen_usual_arithmetic): Check for typedefs.
1675 2007-10-26 Joel Brobecker <brobecker@adacore.com>
1677 * parse.c (prefixify_expression): Minor reformatting.
1679 2007-10-25 Daniel Jacobowitz <dan@codesourcery.com>
1681 * version.in: Use dot instead of dash.
1683 2007-10-25 Daniel Jacobowitz <dan@codesourcery.com>
1685 * linux-thread-db.c (check_for_thread_db): Only print if info_verbose.
1687 2007-10-25 Pedro Alves <pedro_alves@portugalmail.pt>
1689 * memory-map.c (parse_memory_map): Don't use an empty struct
1692 2007-10-25 Pedro Alves <pedro_alves@portugalmail.pt>
1694 * signals/signals.c (signals): Update pointer to enum
1695 target_signal declaration.
1697 2007-10-25 Wu Zhou <woodzltc@cn.ibm.com>
1698 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
1699 Jim Blandy <jimb@codesourcery.com>
1701 * dwarf2read.c (read_partial_die): check the value
1702 of DW_AT_calling_convention in Fortran programs.
1704 2007-10-25 Wu Zhou <woodzltc@cn.ibm.com>
1705 Thiago Jung Bauermann <bauerman@br.ibm.com>
1707 * c-exp.y (YYSTYPE): Add typed_val_decfloat for decimal
1708 floating point in YYSTYPE union.
1709 (DECFLOAT) Add token and expression element handling code.
1710 (parse_number): Parse DFP constants, which end with suffix 'df',
1711 'dd' or 'dl'. Return DECFLOAT.
1712 * eval.c (evaluate_subexp_standard): Call value_from_decfloat to
1714 * expression.h (enum exp_opcode): Add an opcode (OP_DECFLOAT)
1716 (union exp_element): Add decfloatconst to represent DFP
1717 elements, which is 16 bytes by default.
1718 * parse.c (write_exp_elt_decfloatcst): New function to write a
1719 decimal float const into the expression.
1720 (operator_length_standard): Set operator length for OP_DECFLOAT
1722 * parser-defs.h (write_exp_elt_decfloatcst): Prototype.
1723 * valarith.c (value_neg): Add code to handle the negation
1724 operation of DFP values.
1725 * value.c (value_from_decfloat): New function to get the value
1726 from a decimal floating point.
1727 * value.h (value_from_decfloat): Prototype.
1729 2007-10-25 Wu Zhou <woodzltc@cn.ibm.com>
1730 Thiago Jung Bauermann <bauerman@br.ibm.com>
1732 * c-lang.c (c_create_fundamental_type): Create fundamental
1734 * c-typeprint.c (c_type_print_varspec_prefix): Add
1735 TYPE_CODE_DECFLOAT to no prefix needed case.
1736 (c_type_print_varspec_suffix): Add TYPE_CODE_DECFLOAT to no
1738 * c-valprint.c (c_val_print): Call print_decimal_floating to
1740 * dwarf2read.c (read_base_type): Read DW_ATE_decimal_float
1741 attribute code and return TYPE_CODE_DECFLOAT.
1742 (dwarf_base_type): Set dwarf2_fundamental_type for DFP values.
1743 * gdbtypes.c (gdbtypes_post_init): Initialize builtin_decfloat,
1744 builtin_decdouble and builtin_declong.
1745 * gdbtypes.h (enum type_code): Add TYPE_CODE_DECFLOAT as a
1747 (FT_DECFLOAT, FT_DBL_PREC_DECFLOAT, FT_EXT_PREC_DECFLOAT): New
1748 types, for decimal floating point.
1749 (FT_NUM_MEMBERS): Increment, new types added.
1750 (struct builtin_type): Add builtin_decfloat, builtin_decdouble
1751 and builtin_declong.
1752 * valprint.c (print_decimal_floating): New function to print DFP
1754 * value.h (print_decimal_floating): Prototype.
1756 2007-10-25 Wu Zhou <woodzltc@cn.ibm.com>
1757 Thiago Jung Bauermann <bauerman@br.ibm.com>
1759 * Makefile.in (LIBDECNUMBER_DIR, LIBDECNUMBER, LIBDECNUMBER_SRC
1760 LIBDECNUMBER_CFLAGS): New macros for libdecnumber.
1761 (INTERNAL_CFLAGS_BASE): Add LIBDECNUMBER_CFLAGS in.
1762 (INSTALLED_LIBS): Add -ldecnumber in.
1763 (CLIBS): Add LIBDECNUMBER in.
1764 (decimal128_h, decimal64_h, decimal32_h): New macros for decimal
1766 (dfp_h): New macros for decimal floating point.
1767 (dfp.o): New target.
1768 (COMMON_OBS): Add dfp.o in.
1769 (c-exp.o): Add dfp_h as dependency.
1770 (valprint.o): Add dfp_h as dependency.
1771 (value.o): Add dfp_h as dependency.
1772 * dfp.h: New header file for decimal floating point support in
1774 * dfp.c: New source file for decimal floating point support in
1775 GDB. Implement decimal_from_string and decimal_to_string based
1776 on libdecnumber API.
1777 * configure.ac: Add AC_C_BIGENDIAN test.
1778 * config.in, configure: Regenerate.
1780 2007-10-25 David Ung <davidu@mips.com>
1781 Maciej W. Rozycki <macro@mips.com>
1784 * infcmd.c (registers_info): Check for a user register before
1785 calling target's gdbarch_print_registers_info(). If found to be
1786 so, extract the implicit value of user register and call
1787 print_scalar_formatted().
1788 * Makefile.in: (infcmd.o): Add $(user_regs_h).
1790 2007-10-25 Joel Brobecker <brobecker@adacore.com>
1792 * NEWS: Document status of hppa64-hpux support.
1794 2007-10-24 Ulrich Weigand <uweigand@de.ibm.com>
1796 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets): Call
1797 set_solib_ops to install SVR4 operations.
1798 (_initialize_svr4_solib): Do not set current_target_so_ops.
1800 * config/i386/i386gnu.mh (NATDEPFILES): Move solib.o, solib-svr4.o ...
1801 * config/i386/i386gnu.mt (TDEPFILES): ... to here.
1803 2007-10-24 Ulrich Weigand <uweigand@de.ibm.com>
1805 * solib-svr4.c (legacy_svr4_fetch_link_map_offsets_hook): Remove.
1806 (solib_svr4_init): Initialize fetch_link_map_offsets to NULL.
1807 * solib-svr4.h (legacy_svr4_fetch_link_map_offsets_hook): Remove.
1808 * solib-legacy.c: Remove file.
1810 * config/alpha/alpha-linux.mt (TDEPFILES): Remove solib-legacy.o.
1811 * config/arm/linux.mt (TDEPFILES): Likewise.
1812 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
1813 * config/ia64/linux.mt (TDEPFILES): Likewise.
1814 * config/m32r/linux.mt (TDEPFILES): Likewise.
1815 * config/powerpc/linux.mt (TDEPFILES): Likewise.
1816 * config/s390/s390.mt (TDEPFILES): Likewise.
1818 * alpha-linux-tdep.c (alpha_linux_init_abi): Call
1819 set_solib_svr4_fetch_link_map_offsets.
1820 * i386gnu-tdep.c (i386gnu_init_abi): Likewise.
1821 * ia64-linux-tdep.c (ia64_linux_init_abi): Likewise.
1823 * i386gnu-tdep.c: Include "solib-svr4.h".
1824 * Makefile.in: Update dependencies.
1826 2007-10-24 Ulrich Weigand <uweigand@de.ibm.com>
1828 * i386-nto-tdep.c: Include "solib.h".
1829 (i386nto_init_abi): Use set_solib_ops instead of overwriting
1830 current_target_so_ops members.
1831 * solist.h (TARGET_SO_RELOCATE_SECTION_ADDRESSES): Remove.
1832 (TARGET_SO_FIND_AND_OPEN_SOLIB): Remove.
1833 (TARGET_SO_IN_DYNSYM_RESOLVE_CODE): Remove.
1834 * Makefile.in: Update dependencies.
1836 2007-10-24 Ulrich Weigand <uweigand@de.ibm.com>
1838 * arm-wince-tdep.c: Include "solib.h" and "solib-target.h".
1839 (arm_wince_init_abi): Call set_solib_ops.
1840 * i386-cygwin-tdep.c: Include "solib.h" and "solib-target.h".
1841 (i386_cygwin_init_abi): Call set_solib_ops.
1842 * solib-target.c: Include "solib-target.h".
1843 (solib_target_so_ops): Make global.
1844 (_initialize_solib_target): Do not set current_target_so_ops.
1845 * solib-target.h: New file.
1846 * Makefile.in: Update dependencies.
1848 2007-10-24 Ulrich Weigand <uweigand@de.ibm.com>
1850 * mips-irix-tdep.c: Include "gdb_string.h", "solib.h", "solib-irix.h".
1851 (mips_irix_init_abi): Call set_solib_ops.
1852 * solib-irix.c: Include "solib.h" and "solib-irix.h".
1853 (irix_so_ops): Make global.
1854 (_initialize_irix_solib): Do not set current_target_so_ops.
1855 * solib-irix.h: New file.
1856 * Makefile.in: Update dependencies.
1858 2007-10-24 Ulrich Weigand <uweigand@de.ibm.com>
1860 * configure.tgt: Remove hppa*64*-*-hpux11* special case.
1861 * config/pa/hppa64.mt: Delete file.
1862 * config/pa/hppahpux.mt (MT_CFLAGS): Remove.
1863 (TDEPFILES): Move somread.o to ...
1864 * config/pa/hpux.mh (NATDEPFILES): ... here.
1866 * configure.ac: Add check for elf_hp.h header.
1867 Search libdl and libxpdl for dlgetmodinfo.
1868 * config.in, configure: Regenerate.
1869 * solib-pa64.c: Conditionalize compilation on #ifdef HAVE_ELF_HP_H
1870 instead of #ifndef PA_SOM_ONLY. Include "solib.h".
1871 (pa64_solib_select): Take gdbarch instead of tdep argument. Call
1872 set_solib_ops instead of modifying current_target_so_ops.
1873 * solib-pa64.h (pa64_solib_select): Update prototype.
1874 * solib-som.c: Remove include of "som.h". Include "solib.h".
1875 (som_solib_select): Take gdbarch instead of tdep argument. Call
1876 set_solib_ops instead of modifying current_target_so_ops.
1877 * solib-som.h (som_solib_select): Update prototype.
1878 * hppa-hpux-tdep.c (hppa_hpux_som_init_abi): Pass gdbarch instead
1879 of tdep to som_solib_select call.
1880 (hppa_hpux_elf_init_abi): Pass gdbarch instead of tdep to
1881 pa64_solib_select call.
1882 * Makefile.in: Update dependencies.
1884 2007-10-24 Ulrich Weigand <uweigand@de.ibm.com>
1886 * frv-tdep.c: Include "solib.h".
1887 (frv_gdbarch_init): Call set_solib_ops.
1888 * frv-tdep.h (struct target_so_ops): Add forward reference.
1889 (frv_so_ops): Add extern declaration.
1890 * solib-frv.c (frv_so_ops): Make global.
1891 (_initialize_frv_solib): Do not set current_target_so_ops.
1892 * Makefile.in: Update dependencies.
1894 2007-10-24 Ulrich Weigand <uweigand@de.ibm.com>
1896 * solib.c (solib_global_lookup): Use solib_ops instead of global
1897 current_target_so_ops.
1899 2007-10-24 Ulrich Weigand <uweigand@de.ibm.com>
1901 * config/frv/frv.mt (DEPRECATED_TM_FILE): Remove.
1902 * config/frv-tm-frv.h: Delete file.
1904 2007-10-24 Daniel Jacobowitz <dan@codesourcery.com>
1906 * NEWS: Mention gdbserver support for non-libthread_db operation.
1908 2007-10-24 Daniel Jacobowitz <dan@codesourcery.com>
1910 * amd64-tdep.c (amd64_convert_register_p): Delete.
1911 (amd64_init_abi): Use i387_convert_register_p.
1912 * alpha-tdep.c (alpha_convert_register_p): Return zero for
1914 (alpha_register_to_value, alpha_value_to_register): Do not handle
1916 * i386-tdep.c (i386_convert_register_p): Use i387_convert_register_p.
1917 * i387-tdep.c (i387_convert_register_p): New.
1918 (i387_register_to_value, i387_value_to_register): Update comments.
1919 * i387-tdep.h (i387_convert_register_p): Declare.
1920 * ia64-tdep.c (ia64_convert_register_p): Return zero for
1921 builtin_type_ia64_ext.
1922 (ia64_gdbarch_init): Do not initialize builtin_type_ia64_ext here.
1923 (_initialize_ia64_tdep): Initialize builtin_type_ia64_ext here.
1924 * m68k-tdep.c (m68k_convert_register_p): Return zero for
1925 builtin_type_m68881_ext.
1926 (m68k_register_to_value, m68k_value_to_register): Update comments.
1928 2007-10-24 Nathan Sidwell <nathan@codesourcery.com>
1930 * target-memory.c (claim_memory): Propagate baton for split memory
1933 2007-10-24 Pedro Alves <pedro_alves@portugalmail.pt>
1936 * sol-thread.c (sol_thread_fetch_registers): Work around gcc 3.4
1939 2007-10-24 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
1941 * symtab.c (find_line_symtab): scan through psymtabs
1942 when exact_match is zero.
1944 2007-10-23 Atsushi Nemoto <anemo@mba.ocn.ne.jp>
1946 * mips-tdep.c (LL_OPCODE, LLD_OPCODE, SC_OPCODE, SCD_OPCODE): Define.
1947 (deal_with_atomic_sequence): New.
1948 (mips_software_single_step): Use it.
1950 2007-10-23 Daniel Jacobowitz <dan@codesourcery.com>
1953 * configure.ac: Modify $LIBINTL before the BFD check.
1954 * configure: Regenerated.
1956 2007-10-23 Joel Brobecker <brobecker@adacore.com>
1958 * buildsym.c (free_pending_blocks): Remove commented-out code.
1959 (make_blockvector): Likewise. Re-use free_pending_blocks.
1960 (end_symtab): Remove commented-out code.
1962 2007-10-22 Daniel Jacobowitz <dan@codesourcery.com>
1964 * top.c (command_loop): Fix output for shrinkage.
1966 2007-10-22 Daniel Jacobowitz <dan@codesourcery.com>
1968 * cp-name-parser.y (exp1): Add & ( var ) as a reference expression.
1969 (exp): Remove and document function-like casts.
1971 2007-10-22 Daniel Jacobowitz <dan@codesourcery.com>
1973 * cp-support.c: Include "safe-ctype.h".
1974 (cp_already_canonical): New function.
1975 (cp_canonicalize_string): Use it. Return NULL for already canonical
1977 (mangled_name_to_comp): Update call to cp_demangled_name_to_comp.
1978 (cp_func_name, remove_params): Likewise.
1979 (cp_find_first_component_aux): Use ISSPACE.
1980 * cp-support.h (cp_demangled_name_to_comp): Correct comment. Remove
1982 * cp-name-parser.y (ALLOC_CHUNK): Define.
1983 (struct demangle_info): Add PREV and NEXT. Increase the size of
1985 (d_grab): Convert to a function.
1986 (allocate_info): Rewrite.
1987 (cp_demangled_name_to_comp): Remove MEMORY argument. Do not use
1988 strlen. Update call to allocate_info. Do not free it on failure.
1989 (main): Update calls to cp_demangled_name_to_comp.
1990 * Makefile.in (cp-support.o): Update.
1992 2007-10-22 Markus Deuling <deuling@de.ibm.com>
1994 * std-regs.c (value_of_builtin_frame_fp_reg)
1995 value_of_builtin_frame_pc_reg, value_of_builtin_frame_sp_reg)
1996 value_of_builtin_frame_ps_reg): Use get_frame_arch to get at the
1997 current architecture by frame_info.
1999 2007-10-22 Markus Deuling <deuling@de.ibm.com>
2001 * reggroups.c (default_register_reggroup_p): Replace current_gdbarch
2004 2007-10-22 Markus Deuling <deuling@de.ibm.com>
2006 * infcmd.c (default_print_registers_info, print_return_value)
2007 (print_vector_info, print_float_info): Replace current_gdbarch by
2009 (registers_info): Use get_frame_arch to get at the current
2010 architecture by frame_info.
2012 2007-10-22 Markus Deuling <deuling@de.ibm.com>
2014 * i387-tdep.c (i387_collect_fsave, i387_collect_fxsave): Use
2015 get_regcache_arch to get at the current architecture by regcache.
2017 2007-10-22 Markus Deuling <deuling@de.ibm.com>
2019 * target.c (debug_print_register): Use get_regcache_arch to get at the
2020 current architecture by regcache.
2022 2007-10-21 Daniel Jacobowitz <dan@codesourcery.com>
2024 * dwarf2read.c (read_file_scope): Add a comment.
2025 (dwarf2_add_field, dwarf2_add_member_fn, read_structure_type)
2026 (read_enumeration_type, process_enumeration_scope, read_array_type)
2027 (read_typedef, read_base_type, read_subrange_type)
2028 (read_unspecified_type): Use dwarf2_name.
2030 2007-10-21 Daniel Jacobowitz <dan@codesourcery.com>
2032 * coffread.c (coff_symfile_finish): Call dwarf2_free_objfile.
2033 * dwarf2read.c (dwarf2_free_objfile): New.
2034 * elfread.c (elf_symfile_finish): Call dwarf2_free_objfile.
2035 * symfile.h (dwarf2_free_objfile): Declare.
2037 2007-10-21 Joel Brobecker <brobecker@adacore.com>
2039 * hppa-hpux-nat.c (hppa_hpux_store_register): Add missing semi-colon.
2041 2007-10-21 Luis Machado <luisgpm@br.ibm.com>
2043 * rs6000-tdep.c (ppc_dwarf2_frame_init_reg): New function.
2044 * (rs6000_gdbarch_init): Install ppc_dwarf2_frame_init_reg as
2045 default dwarf2_frame_set_init_reg function.
2047 2007-10-21 Pedro Alves <pedro_alves@portugalmail.pt>
2049 * NEWS: Mention native MinGW configuration.
2051 2007-10-19 Ulrich Weigand <uweigand@de.ibm.com>
2053 * gdbarch.sh: Remove "macro" column of input table. Remove handling
2054 of "macro" column throughout the file. Remove (empty) "macro" entry
2055 of all gdbarch functions.
2057 2007-10-19 Ulrich Weigand <uweigand@de.ibm.com>
2059 * gdbarch.sh (sofun_address_maybe_missing): New gdbarch variable.
2060 * gdbarch.c, gdbarch.h: Regenerate.
2061 * dbxread.c (find_stab_function_addr): Define unconditionally.
2062 (read_dbx_symtab): Use gdbarch_sofun_address_maybe_missing
2063 instead of SOFUN_ADDRESS_MAYBE_MISSING.
2064 (end_psymtab): Likewise.
2065 (process_one_symbol): Likewise.
2066 * mdebugread.c (parse_partial_symbols): Likewise.
2068 * symtab.h (struct minimal_symbol): Always define "filename" member.
2069 * elfread.c (elf_symtab_read): Use msym->filename unconditionally.
2070 * minsyms.c (lookup_minimal_symbol): Likewise.
2071 * symmisc.c (dump_msymbols): Likewise.
2073 * config/i386/i386sol2.mt (DEPRECATED_TM_FILE): Remove.
2074 * config/i386/linux.mt (DEPRECATED_TM_FILE): Remove.
2075 * config/i386/tm-i386sol2.h: Remove file.
2076 * config/i386/tm-linux.h: Remove file.
2077 * i386-linux-tdep.c (i386_linux_init_abi): Add call to
2078 set_gdbarch_sofun_address_maybe_missing.
2079 * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
2081 * config/powerpc/linux.mt (DEPRECATED_TM_FILE): Remove.
2082 * config/powerpc/nbsd.mt (DEPRECATED_TM_FILE): Remove.
2083 * config/powerpc/obsd.mt (DEPRECATED_TM_FILE): Remove.
2084 * config/powerpc/ppc-eabi.mt (DEPRECATED_TM_FILE): Remove.
2085 * config/powerpc/ppc-sim.mt (DEPRECATED_TM_FILE): Remove.
2086 * config/powerpc/tm-ppc-eabi.h: Remove file.
2087 * rs6000-tdep.c (rs6000_gdbarch_init): Add call to
2088 set_gdbarch_sofun_address_maybe_missing.
2090 * config/sparc/sol2-64.mt (DEPRECATED_TM_FILE): Remove.
2091 * config/sparc/sol2.mt (DEPRECATED_TM_FILE): Remove.
2092 * config/sparc/tm-sol2.h: Remove file.
2093 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Add call to
2094 set_gdbarch_sofun_address_maybe_missing.
2095 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Likewise.
2097 2007-10-19 Ulrich Weigand <uweigand@de.ibm.com>
2099 * gdbarch.sh (static_transform_name): New gdbarch callback.
2100 * gdbarch.c, gdbarch.h: Regenerate.
2101 * dbxread.c (read_dbx_symtab): Use gdbarch_static_transform_name
2102 instead of STATIC_TRANSFORM_NAME.
2103 * mdebugread.c (parse_partial_symbols): Likewise.
2104 * stabsread.c (define_symbol): Likewise.
2105 * xcoffread.c (scan_xcoff_symtab): Likewise.
2107 * config/i368/tm-i386sol2.h (STATIC_TRANSFORM_NAME): Remove.
2108 (IS_STATIC_TRANSFORM_NAME): Remove.
2109 * i386-tdep.c (sunpro_static_transform_name): Remove, move to ...
2110 * i386-sol2-tdep.c (i386_sol2_static_transform_name): ... here.
2111 (i386_sol2_init_abi): Install it.
2113 * config/sparc/tm-sol2.h (STATIC_TRANSFORM_NAME): Remove.
2114 (IS_STATIC_TRANSFORM_NAME): Remove.
2115 * sparc-tdep.c (sparc_stabs_unglobalize_name): Remove, move to ...
2116 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): ... here.
2117 (sparc32_sol2_init_abi): Install it.
2118 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Likewise.
2119 * sparc-tdep.h (sparc_sol2_static_transform_name): Add prototype.
2121 2007-10-18 Daniel Jacobowitz <dan@codesourcery.com>
2123 * mips-tdep.c (mips_xfer_register): Take a gdbarch argument.
2124 (mips_n32n64_return_value, mips_o32_return_value)
2125 (mips_o64_return_value): Update calls to mips_xfer_register.
2127 2007-10-17 Daniel Jacobowitz <dan@codesourcery.com>
2129 * frame.c (frame_unwind_unsigned_register): Delete.
2130 (frame_sp_unwind): Use frame_unwind_register_unsigned instead.
2131 * frame.h (frame_unwind_unsigned_register): Delete prototype.
2133 * alpha-linux-tdep.c, alpha-mdebug-tdep.c, alpha-tdep.c,
2134 avr-tdep.c, cris-tdep.c, frv-tdep.c, m68hc11-tdep.c, mn10300-tdep.c,
2135 mt-tdep.c: Replace frame_unwind_unsigned_register with
2136 frame_unwind_register_unsigned.
2138 2007-10-16 Pedro Alves <pedro_alves@portugalmail.pt>
2140 * config/i386/mingw.mh, config/i386/mingw.mt: New files.
2141 * configure.tgt (i[34567]86-*-mingw32*): Set gdb_target = mingw.
2142 * win32-nat.c: Only include cygwin.h on Cygwin host. Don't
2144 (cygwin_load_start, cygwin_load_end, cygwin_exceptions): Disable
2145 if not building on Cygwin.
2146 (win32_make_so, handle_output_debug_string, handle_exception)
2147 (do_initial_win32_stuff): Wrap Cygwin specific code in __CYGWIN__.
2148 (win32_attach): Only fallback to Cygwin pids if building on
2150 (win32_pid_to_exec_file): Disable Cygwin specific code, if not
2152 (win32_create_inferior): Disable starting the inferior through a
2153 shell, environment var processing and tty handling if not building
2155 (cygwin_pid_to_str): Rename to ...
2156 (win32_pid_to_str): ... this.
2157 (init_win32_ops): Update use of win32_pid_to_str. Disable "shell"
2158 and "cygwin-exceptions" commands if not building on Cygwin.
2160 2007-10-16 Gaius Mulley <gaius@glam.ac.uk>
2162 * doc/gdb.texinfo: Add TSIZE definition, removed
2163 statement about unbounded arrays being unimplemented.
2164 * m2-valprint.c (m2_print_array_contents): New function.
2165 (m2_print_unbounded_array): New function.
2166 (m2_print_array_contents): New function.
2167 * m2-typeprint.c (m2_unbounded_array): New function.
2168 (m2_is_unbounded_array): New function.
2169 (m2_print_type): Test for unbounded array when walking
2171 * m2-lang.h: Added extern m2_is_unbounded_array.
2172 * m2-lang.c (evaluate_subexp_modula2): New function.
2173 (exp_descriptor_modula2): New structure.
2174 (m2_language_defn): Use exp_descriptor_modula2.
2175 * m2-exp.y: Added TSIZE and binary subscript.
2177 2007-10-16 Daniel Jacobowitz <dan@codesourcery.com>
2179 * mi/mi-main.c (captured_mi_execute_command): Clear mi_error_message
2182 2007-10-16 Kevin Buettner <kevinb@redhat.com>
2184 * m32r-tdep.c (decode_prologue): Sign extend offset for
2186 (m32r_frame_unwind_cache): Likewise.
2188 2007-10-15 Thiago Jung Bauermann <bauerman@br.ibm.com>
2190 * rs6000-tdep.c (skip_prologue): Restore comment with
2191 function description to its proper place.
2193 2007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
2195 * NEWS: Mention gdbserver PowerPC improvements.
2197 2007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
2199 * features/Makefile (WHICH): Add PowerPC register definitions.
2200 (rs6000/powerpc-32-expedite, rs6000/powerpc-e500-expedite)
2201 (rs6000/powerpc-64-expedite): New macros.
2202 ($(outdir)/%.dat): Handle subdirectories.
2203 * regformats/rs6000/powerpc-32.dat, regformats/rs6000/powerpc-64.dat,
2204 regformats/rs6000/powerpc-e500.dat: New generated files.
2206 2007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
2208 * ppc-linux-nat.c (ppc_linux_read_description): New.
2209 (_initialize_ppc_linux_nat): Set to_read_description.
2210 * ppc-tdep.h (tdesc_powerpc_e500): Declare.
2212 2007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
2214 * NEWS: Document target described register support for PowerPC.
2215 * ppc-tdep.h: Remove ppc_spr constants.
2216 (struct gdbarch_tdep): Remove regs, ppc_sr0_regnum, and
2217 ppc_builtin_type_vec128 members.
2218 (PPC_R0_REGNUM, PPC_F0_REGNUM, PPC_PC_REGNUM, PPC_MSR_REGNUM)
2219 (PPC_CR_REGNUM, PPC_LR_REGNUM, PPC_CTR_REGNUM, PPC_XER_REGNUM)
2220 (PPC_FPSCR_REGNUM, PPC_MQ_REGNUM, PPC_SPE_UPPER_GP0_REGNUM)
2221 (PPC_SPE_ACC_REGNUM, PPC_SPE_FSCR_REGNUM, PPC_VR0_REGNUM)
2222 (PPC_VSCR_REGNUM, PPC_VRSAVE_REGNUM, PPC_NUM_REGS): New constants.
2223 * rs6000-tdep.c: Include preparsed descriptions.
2224 (init_sim_regno_table): Do not iterate over pseudo registers.
2225 Look up segment registers by name. Use sim_spr_register_name
2227 (rs6000_register_sim_regno): Call init_sim_regno_table here.
2228 (rs6000_builtin_type_vec128): Delete.
2229 (rs6000_register_name): Only handle SPE pseudo registers and upper
2230 halves. Call tdesc_register_name for everything else.
2231 (rs6000_register_type): Delete. Replace with...
2232 (rs6000_pseudo_register_type): ...this new function. Only handle
2233 SPE pseudo registers.
2234 (rs6000_register_reggroup_p): Delete. Replace with...
2235 (rs6000_pseudo_register_reggroup_p): ...this new function. Only
2236 handle SPE pseudo registers.
2237 (rs6000_convert_register_p): Use ppc_fp0_regnum instead of
2239 (rs6000_register_to_value, rs6000_value_to_register): Remove check
2241 (e500_register_reggroup_p): Delete.
2242 (STR, R, R4, R8, R16, F, P8, R32, R64, R0, A4, S, S4, SN4, S64)
2243 (COMMON_UISA_REGS, PPC_UISA_SPRS, PPC_UISA_NOFP_SPRS)
2244 (PPC_SEGMENT_REGS, PPC_OEA_SPRS, PPC_ALTIVEC_REGS, PPC_SPE_GP_REGS)
2245 (PPC_SPE_UPPER_GP_REGS, PPC_EV_PSEUDO_REGS): Delete macros.
2246 (registers_powerpc, registers_403, registers_403GC, registers_505)
2247 (registers_860, registers_601, registers_602, registers_603)
2248 (registers_604, registers_750, registers_7400, registers_e500): Delete
2250 (struct variant): Delete nregs, npregs, num_tot_regs, and regs. Add
2252 (tot_num_registers, num_registers, num_pseudo_registers): Delete.
2253 (variants): Delete outdated comment. Use standard target descriptions
2254 instead of "struct reg" arrays.
2255 (init_variants): Delete.
2256 (rs6000_gdbarch_init): Do not guess word size from the BFD
2257 architecture if we have a target description. Select a variant
2258 before creating a new architecture. Use the variant's target
2259 description if the target did not define a register layout.
2260 Validate target-supplied registers. Reject mismatches. Use
2261 fixed register numbers and new constants instead of magic
2262 numbers. Call set_gdbarch_ps_regnum. Call tdesc_use_registers.
2263 (_initialize_rs6000_tdep): Initialize the preparsed target
2265 * target-descriptions.c (tdesc_predefined_types): Add int128 and
2267 (tdesc_find_register_early): New function.
2268 (tdesc_numbered_register): Use it.
2269 (tdesc_register_size): New function.
2270 (tdesc_use_registers): Take a target_desc argument. Do not use
2271 gdbarch_target_desc.
2272 * target-descriptions.h (tdesc_use_registers): Update prototype
2274 (tdesc_register_size): New prototype.
2275 * Makefile.in (powerpc_32_c, powerpc_403_c, powerpc_403gc_c)
2276 (powerpc_505_c, powerpc_601_c, powerpc_602_c, powerpc_603_c)
2277 (powerpc_604_c, powerpc_64_c, powerpc_7400_c, powerpc_750_c)
2278 (powerpc_860_c, powerpc_e500_c, rs6000_c): New macros.
2279 (rs6000-tdep.o): Update.
2280 * arm-tdep.c (arm_gdbarch_init): Update call to tdesc_use_registers.
2281 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
2282 * mips-tdep.c (mips_gdbarch_init): Likewise.
2284 2007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
2286 * features/rs6000/powerpc-32.c, features/rs6000/powerpc-403.c,
2287 features/rs6000/powerpc-403gc.c, features/rs6000/powerpc-505.c,
2288 features/rs6000/powerpc-601.c, features/rs6000/powerpc-602.c,
2289 features/rs6000/powerpc-603.c, features/rs6000/powerpc-604.c,
2290 features/rs6000/powerpc-64.c, features/rs6000/powerpc-7400.c,
2291 features/rs6000/powerpc-750.c, features/rs6000/powerpc-860.c,
2292 features/rs6000/powerpc-e500.c, features/rs6000/rs6000.c: New
2295 2007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
2297 * features/rs6000/power-altivec.xml, features/rs6000/power-core.xml,
2298 features/rs6000/power-fpu.xml, features/rs6000/power-oea.xml,
2299 features/rs6000/power-spe.xml, features/rs6000/power64-core.xml: New
2300 feature descriptions for standard PowerPC register sets.
2302 * features/rs6000/powerpc-32.xml, features/rs6000/powerpc-403.xml,
2303 features/rs6000/powerpc-403gc.xml, features/rs6000/powerpc-505.xml,
2304 features/rs6000/powerpc-601.xml, features/rs6000/powerpc-602.xml,
2305 features/rs6000/powerpc-603.xml, features/rs6000/powerpc-604.xml,
2306 features/rs6000/powerpc-64.xml, features/rs6000/powerpc-7400.xml,
2307 features/rs6000/powerpc-750.xml, features/rs6000/powerpc-860.xml,
2308 features/rs6000/powerpc-e500.xml, features/rs6000/rs6000.xml: New
2309 target descriptions for PowerPC processors.
2311 2007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
2313 * target-descriptions.c (tdesc_predefined_types): New.
2314 (tdesc_named_type): Use it.
2315 (tdesc_type_id, maint_print_c_tdesc_cmd): New functions.
2316 (_intialize_target_descriptions): Register "maint print c-tdesc".
2317 * features/Makefile (XMLTOC, CFILES, GDB): New macros.
2318 (cfiles, %.c): New rules.
2319 * features/arm-with-iwmmxt.c, features/mips-linux.c,
2320 features/mips64-linux.c: New generated files.
2322 * arm-linux-nat.c: Include preparsed description instead of
2324 (super_xfer_partial, arm_linux_xfer_partial): Remove.
2325 (arm_linux_read_description): New function.
2326 (_initialize_arm_linux_nat): Set to_read_description instead of
2327 to_xfer_partial. Initialize preparsed description.
2328 * config/arm/linux.mh (TDEP_XML): Delete.
2329 * mips-linux-nat.c: Include preparsed descriptions instead of
2331 (super_xfer_partial, mips_linux_xfer_partial): Remove.
2332 (mips_linux_read_description): New function.
2333 (_initialize_mips_linux_nat): Set to_read_description instead of
2334 to_xfer_partial. Initialize preparsed description.
2335 * config/mips/linux.mh (TDEP_XML): Delete.
2336 * Makefile.in (XMLFILES): Remove $(TDEP_XML).
2337 (features_headers, arm_with_iwmmxt_c, mips_linux_c)
2338 (mips64_linux_c): New macros.
2339 (arm-linux-nat.o, mips-linux-nat.o): Update.
2341 2007-10-15 Pierre Muller <muller@ics.u-strasbg.fr>
2343 * cp-abi.c (set_cp_abi_as_auto_default): ARI fix:
2344 Replace xasprintf by xstrprintf.
2345 symfile-mem.c (add_vsyscall_page): Ditto.
2347 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
2349 * ia64-linux-nat.c (ia64_register_addr): Add gdbarch parameter,
2350 replacing use of global current_gdbarch.
2351 (ia64_cannot_fetch_register, ia64_cannot_store_register): Likewise.
2352 (ia64_linux_fetch_register, ia64_linux_store_register): Update callers.
2354 * ia64-tdep.c (SIGCONTEXT_REGISTER_ADDRESS): Remove macro.
2355 (ia64_sigtramp_frame_init_saved_regs): Add next_frame parameter,
2356 replace uses of SIGCONTEXT_REGISTER_ADDRESS.
2357 (ia64_sigtramp_frame_cache): Update caller.
2359 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
2361 * gdbarch.sh (deprecated_use_struct_convention): Remove.
2362 (extract_return_value, store_return_value): Remove.
2363 (return_value): Remove default implementation.
2364 * gdbarch.c, gdbarch.h: Regenerate.
2366 * stack.c (return_command): Remove compatibility hack.
2367 * arch-utils.c (legacy_return_value): Remove.
2368 * arch-utils.h (legacy_return_value): Likewise.
2370 * arch-utils.c (always_use_struct_convention): Remove.
2371 * arch-utils.h (always_use_struct_convention): Likewise.
2372 * value.c (generic_use_struct_convention): Remove.
2373 * defs.h (generic_use_struct_convention): Likewise.
2375 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
2377 * avr-tdep.c (avr_return_value): New function.
2378 (avr_gdbarch_init): Call set_gdbarch_return_value instead of
2379 set_gdbarch_extract_return_value.
2381 * fvr-tdep.c (frv_return_value): New function.
2382 (frv_gdbarch_init): Call set_gdbarch_return_value instead of
2383 set_gdbarch_extract_return_value, set_gdbarch_store_return_value,
2384 and set_gdbarch_deprecated_use_struct_convention.
2386 * ia64-tdep.c (ia64_use_struct_convention): Make static.
2387 Add check for structure, union, or array types.
2388 (ia64_extract_return_value): Make static.
2389 (ia64_store_return_value): Make static. Support multi-word values.
2390 (ia64_return_value): New function.
2391 (ia64_gdbarch_init): Call set_gdbarch_return_value instead of
2392 set_gdbarch_extract_return_value, set_gdbarch_store_return_value,
2393 and set_gdbarch_deprecated_use_struct_convention.
2395 2007-10-12 Joel Brobecker <brobecker@adacore.com>
2397 * solib-target.c (solib_target_parse_libraries)
2398 [HAVEHAVE_LIBEXPAT not defined]: Fix thinko in return type.
2400 2007-10-12 Jim Blandy <jimb@codesourcery.com>
2402 * serial.h (struct serial_ops): Document read_prim to return zero
2404 * ser-base.c (do_ser_base_readchar): Return SERIAL_EOF when
2405 read_prim returns zero, not SERIAL_TIMEOUT.
2407 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
2409 * alpha-mdebug-tdep.c: Include "gdb_string.h".
2410 (find_proc_desc): Add fix-up code for setjmp procedure descriptor.
2411 * mdebugread.c (parse_procedure): Remove setjmp fix-up code.
2412 * Makefile.in (alpha-mdebug-tdep.o): Update dependencies.
2414 * config/alpha/alpha.mt (DEPRECATED_TM_FILE): Remove.
2415 * config/alpha/alpha-linux.mt (DEPRECATED_TM_FILE): Remove.
2416 * config/alpha/alpha-osf1.mt (DEPRECATED_TM_FILE): Remove.
2417 * config/alpha/fbsd.mt (DEPRECATED_TM_FILE): Remove.
2418 * config/alpha/tm-alpha.h: Remove file.
2420 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
2422 * breakpoint.c (breakpoint_sals_to_pc): Do not check for
2423 DEPRECATED_PC_REQUIRES_RUN_BEFORE_USE.
2425 * config/pa/tm-hppa.h: Delete file.
2426 * config/pa/hppa64.mt: Do not set DEPRECATED_TM_FILE.
2427 * config/pa/hppahpux.mt: Likewise.
2428 * config/pa/hppa.mt: Likewise.
2429 * config/pa/linux.mt: Likewise.
2430 * hppa-tdep.c (hppa_pc_requires_run_before_use): Delete.
2432 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
2434 * config/arm/nm-nbsdaout.h: Remove file.
2435 * config/nm-nbsdaout.h: Likewise.
2436 * config/nm-nbsd.h: Likewise.
2438 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
2440 * block.h (struct block): Remove "gcc_compile_flag" member.
2441 (BLOCK_GCC_COMPILED): Remove.
2442 * block.c (allocate_block): Do not clear BLOCK_GCC_COMPILED.
2443 * buildsym.c (finish_block): Do not set it.
2444 * symmisc.c (dump_symtab_1): Do not dump it.
2446 * value.h (using_struct_return): Remove "gcc_p" argument.
2447 * value.c (using_struct_return): Likewise.
2448 * eval.c (evaluate_subexp_standard): Adapt callers.
2449 * infcall.c (call_function_by_hand): Likewise.
2450 * stack.c (return_command): Likewise.
2451 * sparc-tdep.c (sparc32_push_dummy_code): Likewise.
2453 * gdbarch.sh (push_dummy_code): Remove "using_gcc" parameter.
2454 * gdbarch.c, gdbarch.h: Regenerate.
2455 * cris-tdep.c (cris_push_dummy_code): Adapt prototype.
2456 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Likewise.
2457 * sparc-tdep.c (sparc32_push_dummy_code): Likewise.
2458 * infcall.c (generic_push_dummy_code, push_dummy_code): Likewise.
2459 (push_dummy_code, call_function_by_hand): Adapt callers.
2461 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
2463 * infcmd.c (print_return_value): Remove STRUCT_RETURN argument.
2464 (finish_command_continuation, finish_command): Adapt callers.
2466 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
2468 * infcall.c (call_function_by_hand): Remove special handling
2469 for HP aCC compiled code.
2471 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
2473 * cris-tdep.c (cris_push_dummy_call): Support arguments passed by
2474 reference. Fix endianness bugs.
2475 (cris_reg_struct_has_address): Remove.
2476 (cris_gdbarch_init): Remove set_gdbarch_deprecated_reg_struct_has_addr
2477 and set_gdbarch_deprecated_use_struct_convention calls.
2479 * gdbarch.sh (deprecated_reg_struct_has_addr): Remove.
2480 * gdbarch.c, gdbarch.h: Regenerate.
2481 * infcall.c (call_function_by_hand): Remove handling of
2482 deprecated_reg_struct_has_addr.
2484 2007-10-11 Daniel Jacobowitz <dan@codesourcery.com>
2485 Kazu Hirata <kazu@codesourcery.com>
2487 * breakpoint.c (do_enable_breakpoint): Delay enabling until after
2488 checking watchpoint resources.
2490 2007-10-11 Kazu Hirata <kazu@codesourcery.com>
2492 * memattr.c (inaccessible_by_default): Change the initial
2495 2007-10-11 Daniel Jacobowitz <dan@codesourcery.com>
2498 * coffread.c (read_one_sym): Check for read errors.
2500 2007-10-11 Ulrich Weigand <uweigand@de.ibm.com>
2502 * linux-nat.c (lin_lwp_attach_lwp): Use "Linux kernel 2.6.19"
2503 instead of "Linux 2.6.19" in comment.
2504 (linux_xfer_partial): Use "GNU/Linux target" instead of
2505 "Linux target" in comment.
2506 * m68klinux-tdep.c (m68k_linux_inferior_created): Likewise.
2507 (m68k_linux_get_sigtramp_info): Likewise.
2509 2007-10-11 Daniel Jacobowitz <dan@codesourcery.com>
2511 * MAINTAINERS (language support): List Joel and Paul as
2514 2007-10-11 Daniel Jacobowitz <dan@codesourcery.com>
2516 * dbxread.c (process_one_symbol): Remove VARIABLES_INSIDE_BLOCK
2518 * config/arm/embed.mt, config/arm/linux.mt, config/arm/wince.mt: Do
2519 not set DEPRECATED_TM_FILE.
2520 * config/arm/tm-arm.h: Delete file.
2522 2007-10-11 Luis Machado <luisgpm@br.ibm.com>
2524 * MAINTAINERS (Write After Approval): Add self.
2526 2007-10-11 Daniel Jacobowitz <dan@codesourcery.com>
2528 * buildsym.c (record_line): Remove empty lines followed by
2529 end-of-sequence markers.
2531 2007-10-11 Kazu Hirata <kazu@codesourcery.com>
2533 * configure.tgt: Recognize fido-*-elf.
2535 2007-10-10 Joel Brobecker <brobecker@adacore.com>
2539 2007-10-10 Markus Deuling <deuling@de.ibm.com>
2541 * stack.c (print_frame_args, frame_info, return_command): Use
2542 get_regcache_arch or get_frame_arch to get at the current architecture
2543 by regcache or by frame, respectively.
2545 2007-10-10 Markus Deuling <deuling@de.ibm.com>
2547 * rs6000-nat.c (fetch_register, store_register)
2548 (rs6000_fetch_inferior_registers, rs6000_store_inferior_registers): Use
2549 get_regcache_arch to get at the current architecture by regcache.
2551 * rs6000-tdep.c (rs6000_push_dummy_call, rs6000_return_value)
2552 (rs6000_register_reggroup_p, e500_move_ev_registe, rs6000_unwind_pc)
2553 (rs6000_unwind_dummy_id, rs6000_frame_cache, rs6000_dump_tdep): Replace
2554 current_gdbarch by gdbarch.
2555 (rs6000_skip_trampoline_code, rs6000_register_to_value)
2556 (rs6000_value_to_register): Use get_frame_arch to get at the current
2557 architecture by frame_info.
2559 2007-10-10 Markus Deuling <deuling@de.ibm.com>
2561 * sparc-tdep.c (sparc_supply_rwindow, sparc_collect_rwindow): Use
2562 get_regcache_arch to get at the current architecture by regcache.
2564 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
2565 (sparc64_supply_fpregset, sparc64_collect_fpregset): Use
2566 get_regcache_arch to get at the current architecture by regcache.
2568 * sparc64nbsd-nat. (sparc64nbsd_supply_gregset)
2569 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
2570 (sparc64nbsd_collect_fpregset): Use get_regcache_arch to get at the
2571 current architecture by regcache.
2573 2007-10-10 Markus Deuling <deuling@de.ibm.com>
2575 * remote-mips.c (mips_wait, mips_fetch_registers)
2576 (mips_store_registers): Use get_regcache_arch to get at the
2577 current architecture by regcache.
2579 * mipsnbsd-tdep.c (mipsnbsd_supply_reg, mipsnbsd_fill_reg)
2580 (mipsnbsd_supply_fpreg, mipsnbsd_fill_fpreg): Use get_regcache_arch to
2581 get at the current architecture by regcache.
2582 (mipsnbsd_sigtramp_offset): Use get_frame_arch to get at the current
2583 architecture by frame_info.
2585 * mipsnbsd-nat.c (mipsnbsd_fetch_inferior_registers)
2586 (mipsnbsd_store_inferior_registers): Use get_regcache_arch to get at
2587 the current architecture by regcache.
2589 * mips-linux-tdep.c (mips_linux_get_longjmp_target)
2590 (mips64_linux_get_longjmp_target, mips_linux_o32_sigframe_init)
2591 (mips_linux_n32n64_sigframe_init): Use get_frame_arch to get at the
2592 current architecture by frame_info.
2593 (supply_32bit_reg, mips_supply_gregset, mips_fill_gregset)
2594 (mips_supply_fpregset, mips_fill_fpregset, supply_64bit_reg)
2595 (mips64_supply_gregset, mips64_fill_gregset, mips64_supply_fpregset)
2596 (mips64_fill_fpregset, mips_linux_write_pc): Use get_regcache_arch to
2597 get at the current architecture by regcache.
2599 * mips-linux-nat.c (mips_linux_register_addr)
2600 (mips64_linux_register_addr): Replace current_gdbarch by gdbarch.
2601 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset)
2602 (mips64_linux_regsets_fetch_registers)
2603 (mips64_linux_regsets_store_registers): Use get_regcache_arch to get at
2604 the current architecture by regcache.
2606 * mips64obsd-tdep.c (mips64obsd_sigframe_init): Use get_frame_arch to
2607 get at the current architecture by frame_info.
2609 2007-10-10 Markus Deuling <deuling@de.ibm.com>
2611 * mips-tdep.c (mips_xfer_register): Use get_regcache_arch to get at the
2612 current architecture by regcache.
2613 (mips2_fp_compat, mips32_next_pc, mips16_scan_prologue)
2614 (mips_insn16_frame_cache, mips32_scan_prologue, mips_insn32_frame_cache)
2615 (mips_stub_frame_cache, mips_read_fp_register_single)
2616 (mips_read_fp_register_double, mips_print_fp_register)
2617 (mips_print_register, print_gp_register_row): Use get_frame_arch to get
2618 at the current architecture by frame_info.
2619 (mips_register_reggroup_p, mips_pseudo_register_read, mips_unwind_sp)
2620 (mips_pseudo_register_write, mips_register_type, mips_unwind_pc)
2621 (mips_unwind_dummy_id, mips_eabi_push_dummy_call)
2622 (mips_n32n64_push_dummy_call, mips_n32n64_return_value)
2623 (mips_o32_push_dummy_call, mips_o32_return_value)
2624 (mips_o64_push_dummy_call, mips_o64_return_value)
2625 (mips_print_registers_info, mips_dump_tdep): Replace current_gdbarch by
2628 2007-10-10 Markus Deuling <deuling@de.ibm.com>
2630 * xtensa-tdep.c (xtensa_register_type, xtensa_pseudo_register_read)
2631 (xtensa_pseudo_register_write, xtensa_register_reggroup_p)
2632 (xtensa_unwind_pc, xtensa_unwind_dummy_id, xtensa_push_dummy_call)
2633 (xtensa_dump_tdep): Replace current_gdbarch by gdbarch.
2634 (xtensa_register_write_masked, xtensa_register_read_masked)
2635 (xtensa_supply_gregset, xtensa_store_return_value)
2636 (xtensa_extract_return_value): Use get_regcache_arch to get at the
2637 current architecture by regcache.
2638 (xtensa_frame_cache, call0_frame_get_reg_at_entry, call0_frame_cache)
2639 (xtensa_frame_prev_register): Use get_frame_arch to get at the current
2640 architecture by frame_info.
2642 2007-10-10 Daniel Jacobowitz <dan@codesourcery.com>
2644 * arm-tdep.c (struct arm_prologue_cache): Remove frameoffset.
2645 (thumb_analyze_prologue): Move pv_area_store_would_trash call
2646 out of loop. Do not set cache->frameoffset.
2647 (arm_scan_prologue): Use prologue-value mechanism. Do not set
2648 frameoffset. Simplify framesize.
2649 (arm_make_prologue_cache, arm_normal_frame_base): Do not use
2651 * arm-tdep.h (enum gdb_regnum): Add ARM_IP_REGNUM.
2653 2007-10-10 Daniel Jacobowitz <dan@codesourcery.com>
2655 * target.c (update_current_target): Call setup_target_debug.
2656 (push_target): Do not call it here.
2658 2007-10-09 Michael Snyder <msnyder@specifix.com>
2660 * MAINTAINERS: Update my email address.
2662 2007-10-09 Markus Deuling <deuling@de.ibm.com>
2664 * xtensa-tdep.c: Replace following current-gdbarch based macros by
2666 (xtensa_pseudo_register_read)
2667 (xtensa_pseudo_register_write): XTENSA_TARGET_FLAGS.
2668 (ARG_NOF, ARG_1ST, xtensa_extract_return_value)
2669 (xtensa_store_return_value, xtensa_push_dummy_call): CALL_ABI.
2670 (xtensa_pseudo_register_read)
2671 (xtensa_pseudo_register_write): ISA_USE_WINDOWED_REGISTERS.
2672 (xtensa_breakpoint_from_pc): ISA_USE_DENSITY_INSTRUCTIONS.
2673 (xtensa_register_type, xtensa_supply_gregset, xtensa_frame_cache)
2674 (xtensa_frame_prev_register): NUM_AREGS.
2675 (xtensa_pseudo_register_read, xtensa_pseudo_register_write,
2676 (xtensa_supply_gregset, xtensa_frame_cache, xtensa_frame_prev_register,
2677 (xtensa_extract_return_value, xtensa_store_return_value): WB_REGNUM.
2678 (xtensa_supply_gregset, xtensa_frame_cache)
2679 (xtensa_frame_prev_register): WS_REGNUM.
2680 (xtensa_supply_gregset): LBEG_REGNUM, LEND_REGNUM, LCOUNT_REGNUM,
2681 SAR_REGNUM, EXCCAUSE_REGNUM, EXCVADDR_REGNUM
2682 (xtensa_register_name, xtensa_register_type, xtensa_reg_to_regnum)
2683 (xtensa_pseudo_register_read, xtensa_pseudo_register_write)
2684 (xtensa_register_reggroup_p): REGMAP.
2685 (call0_track_op): LITBASE_REGNUM.
2686 (xtensa_register_type, xtensa_reg_to_regnum, call0_frame_cache):A0_BASE
2687 (xtensa_supply_gregset, call0_frame_get_reg_at_entry)
2688 (xtensa_frame_prev_register, AREG_NUMBER)
2689 (xtensa_register_type): AR_BASE.
2690 (xtensa_pseudo_register_read, xtensa_pseudo_register_write): FP_ALIAS.
2691 (AREG_NUMBER): AREGS_MASK, WB_MASK, A0_REGNUM.
2692 (ARG_1ST, xtensa_pseudo_register_read, xtensa_pseudo_register_write)
2693 (xtensa_frame_cache, xtensa_frame_prev_register)
2694 (xtensa_extract_return_value, xtensa_store_return_value)
2695 (xtensa_push_dummy_call, call0_frame_cache): A0_REGNUM.
2696 (xtensa_register_type, xtensa_pseudo_register_read, xtensa_frame_cache)
2697 (xtensa_pseudo_register_write, xtensa_unwind_dummy_id)
2698 (xtensa_frame_prev_register, xtensa_push_dummy_call)
2699 (call0_frame_cache): A1_REGNUM.
2700 (xtensa_extract_return_value, xtensa_store_return_value): A2_REGNUM.
2701 (xtensa_push_dummy_call): A4_REGNUM.
2702 (ARGS_FIRST_REG): A6_REGNUM.
2703 (xtensa_pseudo_register_read, xtensa_pseudo_register_write)
2704 (xtensa_frame_prev_register): A15_REGNUM.
2705 * xtensa-tdep.h: Delete current_gdbarch based macros after replacing
2706 them in the appropriate source file:
2707 XTENSA_TARGET_FLAGS, SPILL_LOCATION, SPILL_SIZE, CALL_ABI, NUM_AREGS,
2708 ISA_USE_WINDOWED_REGISTERS, ISA_USE_DENSITY_INSTRUCTIONS, WB_REGNUM,
2709 ISA_USE_EXCEPTIONS, ISA_USE_EXT_L32R, DEBUG_DATA_VADDR_TRAP_COUNT,
2710 DEBUG_INST_VADDR_TRAP_COUNT, ISA_MAX_INSN_SIZE, DEBUG_NUM_IBREAKS,
2711 DEBUG_NUM_DBREAKS, WS_REGNUM, LBEG_REGNUM, LEND_REGNUM, SAR_REGNUM,
2712 REGMAP, LITBASE_REGNUM, DEBUGCAUSE_REGNUM, EXCCAUSE_REGNUM, AR_BASE,
2713 EXCVADDR_REGNUM, NUM_IBREAKS, REGMAP_BYTES, NUM_CONTEXTS, FP_ALIAS,
2714 FP_LAYOUT, FP_LAYOUT_BYTES, GREGMAP, AREGS_MASK, WB_MASK, A0_REGNUM,
2715 A1_REGNUM, A2_REGNUM, A3_REGNUM, A4_REGNUM, A5_REGNUM, A6_REGNUM,
2716 A7_REGNUM, A8_REGNUM, A9_REGNUM, A10_REGNUM, A11_REGNUM, A12_REGNUM,
2717 A13_REGNUM, A14_REGNUM, A15_REGNUM.
2719 2007-10-09 Markus Deuling <deuling@de.ibm.com>
2721 * h8300-tdep.c (h8300_frame_cache): Use get_frame_arch to get at
2722 the current architecture by frame_info.
2723 (h8300_frame_prev_register
2724 (h8300_print_register): Replace current_gdbarch by gdbarch.
2725 (h8300_print_registers_info, h8300_register_type)
2726 (h8300_register_type): Likewise.
2728 2007-10-09 Markus Deuling <deuling@de.ibm.com>
2730 * i386-linux-nat.c (fetch_register): Use get_regcache_arch to get at
2731 the current architecture by regcache.
2732 (store_register, supply_gregset, fill_gregset, i386_linux_resume)
2733 (i386_linux_fetch_inferior_registers)
2734 (i386_linux_store_inferior_registers): Likewise.
2735 * i386gnu-nat.c (gnu_fetch_registers, gnu_store_registers): Likewise.
2736 * i386-nto-tdep.c (i386nto_supply_gregset): Likewise.
2737 * i386v4-nat.c (supply_fpregset, fill_fpregset): Likewise.
2738 * i386-tdep.c (i386_unwind_pc): Replace current_gdbarch by gdbarch.
2739 (i386_extract_return_value, i386_store_return_value): Likewise.
2740 * i386-tdep.c (i386_frame_prev_register): Use get_frame_arch to get at
2741 the current architecture by frame_info.
2742 (i386_sigtramp_frame_cache, i386_get_longjmp_target)
2743 (i386_register_to_value, i386_value_to_register): Likewise.
2745 2007-10-09 Markus Deuling <deuling@de.ibm.com>
2747 * monitor.c (monitor_supply_register): Use get_regcache_arch to get at
2748 the current architecture by regcache.
2749 (monitor_store_register, monitor_store_registers): Likewise.
2751 2007-10-09 Markus Deuling <deuling@de.ibm.com>
2753 * dbug-rom.c (dbug_supply_register): Use get_regcache_arch to get at
2754 the current architecture by regcache.
2756 2007-10-09 Markus Deuling <deuling@de.ibm.com>
2758 * arch-utils.c (legacy_return_value): Replace current_gdbarch by
2761 2007-10-09 Markus Deuling <deuling@de.ibm.com>
2763 * frame.c (frame_pc_unwind): Use get_frame_arch to get at the current
2764 architecture by frame.
2765 (frame_save_as_regcache, frame_register_unwind, get_prev_frame_1)
2766 (inside_main_func, frame_sp_unwind): Likewise.
2768 2007-10-09 Daniel Jacobowitz <dan@codesourcery.com>
2770 * solib-svr4.c (enable_break): Add the dynamic linker also if
2773 2007-10-09 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
2775 * MAINTAINERS (Write After Approval): Add self.
2777 2007-10-09 Pedro Alves <pedro_alves@portugalmail.pt>
2779 * stabsread.c (read_huge_number): Initialize local variable to 0.
2781 2007-10-09 Pierre Muller <muller@ics.u-strasbg.fr>
2783 * p-lang.h (pascal_main_name): Add declaration.
2784 * p-lang.c (GPC_P_INITIALIZE, GPC_MAIN_PROGRAM_NAME_1)
2785 (GPC_MAIN_PROGRAM_NAME_2): New constants.
2786 (pascal_main_name): New function.
2787 * symtab.c: Include p-lang.h.
2788 (find_main_name): Add call to pascal_main_name.
2789 * Makefile.in (symtab.o): Add dependency on p-lang.h.
2791 2007-10-09 Pedro Alves <pedro_alves@portugalmail.pt>
2793 * stabsread.c (read_huge_number): Fix handling of octal
2794 representation when the bit width is known.
2795 (read_range_type): Record unsigned integral types with their size,
2796 when the type size is known.
2798 2007-10-08 Thiago Jung Bauermann <bauerman@br.ibm.com>
2800 * MAINTAINERS (Write After Approval): Add self.
2802 2007-10-08 Pierre Muller <muller@ics.u-strasbg.fr>
2804 * breakpoint.c (print_one_breakpoint_location): ARI fix:
2805 Replace asprintf by xstrprintf.
2807 2007-10-08 Pierre Muller <muller@ics.u-strasbg.fr>
2809 * linux-fork.c: ARI fix: include "gdb_dirent.h" instead of <dirent.h>.
2810 Makefile.in (linux-fork.o): Add gdb_dirent.h dependency.
2812 2007-10-08 Pierre Muller <muller@ics.u-strasbg.fr>
2814 * linux-fork.c: Move "gdb_wait.h" include back to the position of
2815 <sys/wait.h> include before last commit.
2817 2007-10-08 Maciej W. Rozycki <macro@mips.com>
2819 * mips-tdep.c (mips32_next_pc): Fix a typo in BGTZL.
2821 2007-10-08 Markus Deuling <deuling@de.ibm.com>
2823 * aix-thread.c (supply_gprs64, supply_fprs, supply_sprs64)
2824 (supply_sprs32, fetch_regs_user_thread, fetch_regs_kernel_thread)
2825 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs64, fill_sprs32)
2826 (store_regs_user_thread, store_regs_kernel_thread): Use
2827 get_regcache_arch or get_frame_arch to get at the current architecture
2828 by regcache or by frame, respectively.
2830 2007-10-08 Markus Deuling <deuling@de.ibm.com>
2832 * sh64-tdep.c (sh64_push_dummy_call, sh64_register_type)
2833 (sh64_pseudo_register_read, sh64_pseudo_register_write)
2834 (sh64_do_fp_register, sh64_do_pseudo_register, sh64_do_register)
2835 (sh64_print_register, sh64_media_print_registers_info)
2836 (sh64_compact_print_registers_info, sh64_unwind_sp)
2837 (sh64_unwind_pc): Replace current_gdbarch by gdbarch.
2838 (sh64_show_media_regs, sh64_show_compact_regs, sh64_frame_cache)
2839 (sh64_frame_prev_register): Use FRAME to recognize current
2842 2007-10-08 Markus Deuling <deuling@de.ibm.com>
2844 * sh-tdep.c (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu)
2845 (sh_sh2a_register_type, sh_sh3e_register_type, sh_sh4_register_type)
2846 (sh_register_reggroup_p, sh_dwarf2_frame_init_reg): Replace
2847 current_gdbarch by gdbarch.
2848 (sh_generic_show_regs, sh3_show_reg, sh2e_show_regs, sh2a_show_regs)
2849 (sh2a_nofpu_show_regs, sh3e_show_regs, sh3_dsp_show_regs)
2850 (sh4_show_regs, sh4_nofpu_show_regs, sh_dsp_show_regs, sh_frame_cache)
2851 (sh_frame_prev_register, sh_unwind_sp, sh_unwind_pc): Use FRAME to
2852 recognize current architecture.
2854 2007-10-08 Markus Deuling <deuling@de.ibm.com>
2856 * remote.c (init_remote_state, fetch_register_using_p)
2857 (process_g_packet, remote_fetch_registers, remote_prepare_to_store)
2858 (store_register_using_P, store_registers_using_G)
2859 (remote_store_registers): Use get_regcache_arch or get_frame_arch to
2860 get at the current architecture by regcache or by frame, respectively.
2862 2007-10-08 Markus Deuling <deuling@de.ibm.com>
2864 * m68k-tdep.c (m68k_register_to_value, m68k_value_to_register)
2865 (m68k_svr4_extract_return_value, m68k_svr4_store_return_value)
2866 (m68k_frame_prev_register, m68k_get_longjmp_target): Use
2867 get_regcache_arch or get_frame_arch to get at the current architecture
2868 by regcache or by frame, respectively.
2869 * m68klinux-tdep.c (m68k_linux_sigtramp_frame_cache): Likewise.
2870 * m68klinux-nat.c (fetch_register, old_fetch_inferior_registers)
2871 (store_register, old_store_inferior_registers, supply_gregset)
2872 (supply_fpregset, fill_fpregset): Likewise.
2873 * m68k-tdep.c (m68k_register_type, m68k_unwind_pc, m68k_dump_tdep):
2874 Replace current_gdbarch by gdbarch.
2876 2007-10-08 Markus Deuling <deuling@de.ibm.com>
2878 * irix5-nat.c (supply_gregset, fill_gregset, supply_fpregset)
2879 (fill_fpregset, fetch_core_registers): Use get_regcache_arch or
2880 get_frame_arch to get at the current architecture by regcache or by
2881 frame, respectively.
2883 2007-10-08 Markus Deuling <deuling@de.ibm.com>
2885 * ia64-tdep.c (ia64_pseudo_register_read, ia64_pseudo_register_write):
2886 Replace current_gdbarch by gdbarch.
2887 * ia64-tdep.c (ia64_frame_prev_register
2888 (ia64_sigtramp_frame_prev_register)
2889 (ia64_libunwind_frame_prev_register): Use get_regcache_arch or
2890 get_frame_arch to get at the current architecture by regcache or by
2891 frame, respectively.
2892 * ia64-linux-nat.c (ia64_linux_fetch_register)
2893 (ia64_linux_fetch_registers, ia64_linux_store_register)
2894 (ia64_linux_store_registers): Likewise.
2896 2007-10-08 Markus Deuling <deuling@de.ibm.com>
2898 * hppa-tdep.c (hppa_stub_unwind_sniffer, hppa_dump_tdep): Replace
2899 current_gdbarch by gdbarch.
2900 * hppa-linux-nat.c (fetch_register, store_register)
2901 (hppa_linux_fetch_inferior_registers)
2902 (hppa_linux_store_inferior_registers): Use get_regcache_arch or
2903 get_frame_arch to get at the current architecture by regcache or by
2904 frame, respectively.
2905 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code
2906 (hppa_hpux_unwind_adjust_stub): Likewise.
2907 * hppa-hpux-nat.c (hppa_hpux_fetch_register, hppa_hpux_store_register)
2908 (hppa_hpux_fetch_inferior_registers)
2909 (hppa_hpux_store_inferior_registers): Likewise.
2911 2007-10-08 Markus Deuling <deuling@de.ibm.com>
2913 * cris-tdep.c (cris_sigcontext_addr, cris_sigtramp_frame_unwind_cache)
2914 (cris_scan_prologue, crisv32_scan_prologue, find_step_target)
2915 (cris_software_single_step, cris_supply_gregset): Use get_regcache_arch
2916 or get_frame_arch to get at the current architecture by regcache or by
2917 frame, respectively.
2918 * cris-tdep.c (crisv32_single_step_through_delay, cris_push_dummy_call)
2919 (cris_unwind_pc, cris_unwind_sp, cris_register_type, cris_dump_tdep)
2920 (crisv32_register_type, cris_dwarf2_frame_init_reg): Replace
2921 current_gdbarch by gdbarch.
2923 2007-10-08 Markus Deuling <deuling@de.ibm.com>
2925 * arm-tdep.c (arm_scan_prologue, arm_make_prologue_cache)
2926 (thumb_get_next_pc, arm_get_next_pc, arm_extract_return_value)
2927 (arm_store_return_value): Use get_regcache_arch or get_frame_arch to
2928 get at the current architecture by regcache or by·frame, respectively.
2929 (arm_push_dummy_call, arm_dump_tdep): Replace current_gdbarch by
2932 2007-10-08 Markus Deuling <deuling@de.ibm.com>
2934 * amd64-tdep.c (amd64_frame_prev_register, amd64_sigtramp_frame_cache):
2935 Use get_regcache_arch or get_frame_arch to get at the current
2936 architecture by regcache or by frame, respectively.
2937 * amd64-linux-tdep.c (amd64_linux_sigcontext_addr): Likewise.
2938 * amd64-nat.c (amd64_supply_native_gregset)
2939 (amd64_collect_native_gregset): Replace current_gdbarch by gdbarch.
2941 2007-10-08 Markus Deuling <deuling@de.ibm.com>
2943 * alpha-tdep.c (alpha_register_reggroup_p): Replace current_gdbarch by
2945 * alpha-linux-nat.c (alpha_linux_register_u_offset): Likewise.
2946 (alpha_sigtramp_frame_unwind_cache, alpha_sigtramp_frame_this_id)
2947 (alpha_sigtramp_frame_sniffer, alpha_next_pc): Use get_regcache_arch or
2948 get_frame_arch to get at the current architecture by regcache or by
2949 frame, respectively.
2950 * alpha-nat.c (fetch_osf_core_registers): Likewise.
2952 2007-10-08 Markus Deuling <deuling@de.ibm.com>
2954 * dwarf2-frame.c (read_reg, execute_cfa_program, dwarf2_frame_cache)
2955 (dwarf2_frame_default_init_reg, dwarf2_frame_prev_register): Replace
2956 current_gdbarch by gdbarch.
2957 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Likewise.
2959 2007-10-08 Markus Deuling <deuling@de.ibm.com>
2961 * regcache.c (init_regcache_descr, register_type, read_pc_pid)
2962 (write_pc_pid, regcache_dump): Replace current_gdbarch by gdbarch.
2963 * regcache.c (regcache_raw_write): Use get_regcache_arch or
2964 get_frame_arch to get at the current architecture by regcache or by
2965 frame, respectively.
2967 2007-10-08 Markus Deuling <deuling@de.ibm.com>
2969 * findvar.c (value_of_register, locate_var_value): Use
2970 get_regcache_arch or get_frame_arch to get at the current architecture
2971 by regcache or by frame, respectively.
2972 * findvar.c (default_value_from_register, value_from_register): Replace
2973 current_gdbarch by gdbarch.
2975 2007-10-08 Pierre Muller <muller@ics.u-strasbg.fr>
2977 * config/i386/nm-i386.h (CHILD_POST_STARTUP_INFERIOR): ARI fix: Remove.
2979 2007-10-08 Pierre Muller <muller@ics.u-strasbg.fr>
2981 * linux-fork.c: ARI fix: include "gdb_wait.h" instead of <sys/wait.h>.
2982 Makefile.in (linux-fork.o): Add gdb_wait.h dependency.
2984 2007-10-05 Daniel Jacobowitz <dan@codesourcery.com>
2986 * remote.c (get_offsets): Only call free_symfile_segment_data if
2989 2007-10-03 Pierre Muller <muller@ics.u-strasbg.fr>
2991 * objc-exp.y: ARI fix: remove 4 PARAMS.
2993 2007-10-03 Daniel Jacobowitz <dan@codesourcery.com>
2995 * NEWS: Use uniform spacing. Correct version number for GDB 6.7
2996 news. Mention XML support for M68K in GDB 6.7.
2998 2007-10-03 Daniel Jacobowitz <dan@codesourcery.com>
3000 * gdbtypes.c (create_range_type): Do not set TYPE_FIELD_TYPE for the
3002 (init_vector_type): Use builtin_type_int32.
3004 2007-10-02 Ulrich Weigand <uweigand@de.ibm.com>
3006 * s390-tdep.c (s390_regset_from_core_section): Allow excess section
3007 size to enable bi-arch generate-core-file support.
3009 2007-10-02 Markus Deuling <deuling@de.ibm.com>
3011 * spu-tdep.c (info_spu_signal_command): Fix output for SPU signal.
3013 2007-10-02 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
3015 * tui/tui-interp.c (tui_init): Initialize tui's SIGWINCH
3017 * tui/tui-win.c (tui_initialize_win): New function for
3018 initializing tui's SIGWINCH signal handler.
3019 * tui/tui-win.h (tui_initialize_win): Declare.
3021 2007-10-02 Ulrich Weigand <uweigand@de.ibm.com>
3023 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Cast
3024 pointer to uintptr_t before casting to CORE_ADDR.
3026 2007-10-02 Markus Deuling <deuling@de.ibm.com>
3028 * linux-nat.c (PTRACE_GETSIGINFO): Add define.
3030 2007-10-02 Mark Mitchell <mark@codesourcery.com>
3032 * mingw-hdep.c (gdb_select): Stop helper threads before returning.
3033 * ser-mingw.c (enum select_thread_state): New type.
3034 (struct ser_console_state): Add have_started and thread_state.
3035 (select_thread_wait): New function.
3036 (thread_fn_type): New type.
3037 (create_select_thread): New function.
3038 (destroy_select_thread): Likewise.
3039 (start_select_thread): Likewise.
3040 (stop_select_thread): Likewise.
3041 (console_select_thread): Use new functions.
3042 (pipe_select_thread): Likewise.
3043 (file_select_thread): Likewise.
3044 (ser_console_wait_handle): Likewise.
3045 (ser_console_done_wait_handle): Likewise.
3046 (ser_console_close): Likewise.
3047 (free_pipe_state): Likewise.
3048 (pipe_wait_handle): Likewise.
3049 (pipe_done_wait_handle): Likewise.
3050 (struct net_windows_state): Derive from ser_console_state.
3051 (net_windows_select_thread): Use new functions.
3052 (net_windows_wait_handle): Likewise.
3053 (net_windows_done_wait_handle): Likewise.
3054 (net_windows_close): Likewise.
3056 2007-10-02 Daniel Jacobowitz <dan@codesourcery.com>
3058 * inflow.c (terminal_ours_1): Remove useless line.
3060 2007-10-02 Daniel Jacobowitz <dan@codesourcery.com>
3062 * mips-tdep.c (mips_read_fp_register_double): Correct check for
3064 (mips_print_fp_register): Correct check for even FP registers.
3065 (mips_virtual_frame_pointer): New function.
3066 (mips_gdbarch_init): Call set_gdbarch_virtual_frame_pointer.
3068 2007-09-30 Mike Frysinger <vapier@gentoo.org>
3070 * value.h (lookup_only_internalvar): New prototype.
3071 (create_internalvar): Likewise.
3072 * value.c (lookup_only_internalvar): New function.
3073 (create_internalvar): Likewise.
3074 (lookup_internalvar): Use new lookup_only_internalvar and
3075 create_internalvar functions.
3076 * parse.c (write_dollar_variable): Look up $ symbols in internal
3077 table first rather than last.
3079 2007-09-30 Daniel Jacobowitz <dan@codesourcery.com>
3081 * linux-nat.c (linux_nat_new_thread): New variable.
3082 (linux_child_follow_fork): Set inferior_ptid to include LWP ID. Use
3083 linux_nat_switch_fork.
3084 (lwp_list): Make public.
3085 (add_lwp): Call linux_nat_new_thread.
3086 (lin_lwp_attach_lwp, linux_nat_attach): Call add_lwp after stopping
3088 (resume_callback): Clear lp->siginfo. Remove unused variable.
3089 (linux_nat_resume): Assert that the LWP list is already initialized.
3091 (save_siginfo): New.
3092 (stop_wait_callback, linux_nat_wait): Call it.
3093 (linux_nat_set_new_thread, linux_nat_get_siginfo): New.
3094 * linux-nat.h (struct lwp_info): Add siginfo.
3095 (lwp_list, linux_nat_set_new_thread, linux_nat_get_siginfo): Declare.
3098 * amd64-linux-nat.c (amd64_linux_dr): New.
3099 (amd64_linux_dr_get): Take a PTID argument. Correct typo.
3100 (amd64_linux_dr_set): Take a PTID argument.
3101 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use ALL_LWPS.
3102 (amd64_linux_dr_reset_addr): Use amd64_linux_dr_set_addr.
3103 (amd64_linux_dr_get_status): Pass inferior_ptid to amd64_linux_dr_get.
3104 (amd64_linux_new_thread): New.
3105 (_initialize_amd64_linux_nat): Call linux_nat_set_new_thread.
3106 * i386-linux-nat.c (i386_linux_dr): New.
3107 (i386_linux_dr_get, i386_linux_dr_set): Take a PTID argument.
3108 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use ALL_LWPS.
3109 (i386_linux_dr_reset_addr): Use i386_linux_dr_set_addr.
3110 (i386_linux_dr_get_status): Pass inferior_ptid to i386_linux_dr_get.
3111 (i386_linux_new_thread): New.
3112 (i386_linux_resume): Remove unnecessary PID check.
3113 (_initialize_i386_linux_nat): Call linux_nat_set_new_thread.
3114 * ia64-linux-nat.c (enable_watchpoints_in_psr): Take PTID argument.
3115 (fetch_debug_register, fetch_debug_register_pair): Delete.
3116 (debug_registers): New.
3117 (ia64_linux_insert_watchpoint, ia64_linux_remove_watchpoint): Use
3118 ALL_LWPS and debug_registers.
3119 (ia64_linux_new_thread): New.
3120 (ia64_linux_stopped_data_address): Use linux_nat_get_siginfo.
3121 (_initialize_ia64_linux_nat): Call linux_nat_set_new_thread.
3122 * ppc-linux-nat.c (last_stopped_data_address): Delete.
3123 (saved_dabr_value): New.
3124 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint): Use
3126 (ppc_linux_new_thread): New.
3127 (ppc_linux_stopped_data_address): Use linux_nat_get_siginfo.
3128 (ppc_linux_stopped_by_watchpoint): Call ppc_linux_stopped_data_address.
3129 (_initialize_ppc_linux_nat): Call linux_nat_set_new_thread.
3130 * s390-nat.c (s390_stopped_by_watchpoint): Clear the watchpoint status
3132 (s390_fix_watch_points): Take a PTID argument.
3133 (s390_insert_watchpoint, s390_remove_watchpoint): Use ALL_LWPS.
3134 (_initialize_s390_nat): Call linux_nat_set_new_thread.
3136 2007-09-30 Daniel Jacobowitz <dan@codesourcery.com>
3137 Jeff Johnston <jjohnstn@redhat.com>
3139 * breakpoint.c (watchpoints_triggered): New.
3140 (bpstat_stop_status): Remove STOPPED_BY_WATCHPOINT argument.
3141 Check watchpoint_triggered instead. Combine handling for software
3142 and hardware watchpoints. Do not use target_stopped_data_address
3143 here. Always check a watchpoint if its scope breakpoint triggers.
3144 Do not stop for thread or overlay events. Improve check for
3145 triggered watchpoints without a value change.
3146 (watch_command_1): Insert the scope breakpoint first. Link the
3147 scope breakpoint to the watchpoint.
3148 * breakpoint.h (enum watchpoint_triggered): New.
3149 (struct breakpoint): Add watchpoint_triggered.
3150 (bpstat_stop_status): Update prototype.
3151 (watchpoints_triggered): Declare.
3152 * infrun.c (enum infwait_status): Add infwait_step_watch_state.
3153 (stepped_after_stopped_by_watchpoint): Delete.
3154 (handle_inferior_event): Make stepped_after_stopped_by_watchpoint
3155 local. Handle infwait_step_watch_state. Update calls to
3156 bpstat_stop_status. Use watchpoints_triggered to check
3158 * remote.c (stepped_after_stopped_by_watchpoint): Remove extern.
3159 (remote_stopped_data_address): Do not check it.
3161 2007-09-29 Daniel Jacobowitz <dan@codesourcery.com>
3163 * configure.ac: Add $LIBINTL when testing libbfd.
3164 * configure: Regenerated.
3166 2007-09-28 Vladimir Prus <vladimir@codesourcery.com>
3168 * NEW: Mention pending breakpoint changes and
3169 support for breakpoints at multiple locations.
3171 2007-09-27 Daniel Jacobowitz <dan@codesourcery.com>
3173 * arm-linux-tdep.c (arm_linux_software_single_step): New.
3174 (arm_linux_init_abi): Use it.
3175 * arm-tdep.c (arm_get_next_pc): Make global. Handle all-ones
3176 condition correctly.
3177 * arm-tdep.h (arm_get_next_pc): Declare.
3178 * Makefile.in (arm-linux-tdep.o): Update.
3180 2007-09-26 Vladimir Prus <vladimir@codesourcery.com>
3182 * varobj.c (install_new_value): Don't
3183 call value_get_print_value when a value is
3184 lazy. Update the print_value member in a
3187 2007-09-26 Vladimir Prus <vladimir@codesourcery.com>
3189 * breakpoint.c (create_breakpoint): Set
3190 condition on each location, not on the first
3191 location of breakpoint.
3193 2007-09-26 Jim Blandy <jimb@codesourcery.com>
3195 * remote.c (getpkt_sane): Fix error message. No animals were
3196 harmed in the making of this debugger.
3198 2007-09-26 Pierre Muller <muller@ics.u-strasbg.fr>
3200 * p-typeprint.c: Fix 11 ARI reported problems.
3201 (pascal_print_type): Fix 4 operator at end of line.
3202 (pascal_type_print_method_args) : Replace 2 DEPRECATED_STREQN macros
3203 using strncmp function.
3204 (pascal_type_print_base): Fix 2 operator at end of line.
3205 (pascal_type_print_base) : Replace 3 DEPRECATED_STREQN macros
3206 using strncmp function.
3209 2007-09-26 Pierre Muller <muller@ics.u-strasbg.fr>
3211 * Fix PR pascal/2231
3212 dwarf2read.c (read_subroutine_type):
3213 All pascal functions are prototyped.
3215 2007-09-26 Pierre Muller <muller@ics.u-strasbg.fr>
3217 * Fix PR pascal/2283
3218 p-valprint.c (pascal_val_print): correct current language check.
3219 Also print array of char as strings.
3222 2007-09-26 David Ung <davidu@mips.com>
3223 Maciej W. Rozycki <macro@mips.com>
3225 * mips-tdep.c (mips_n32n64_return_value): Fix a comment.
3227 2007-09-25 Pierre Muller <muller@ics.u-strasbg.fr>
3229 * p-exp.y: Fix 12 ARI reported problems.
3230 (name_not_typename): Fix 2 operator at end of line issues.
3231 (yylex): Fix 3 operator at end of line issues.
3232 Replace 7 DEPRECATED_STREQ macros using strcmp function.
3234 2007-09-25 David Ung <davidu@mips.com>
3235 Maciej W. Rozycki <macro@mips.com>
3237 * mips-tdep.c (mips_n32n64_return_value): Per N32/N64 ABI
3238 rules return composite types in registers as appropriate.
3240 2007-09-24 Jim Blandy <jimb@codesourcery.com>
3242 * symfile.h (struct symfile_segment_data): Doc fixes.
3243 * symfile.c (symfile_map_offsets_to_segments): Doc fixes.
3244 Assert that we were passed some loaded segment addresses,
3245 and that sections' segment numbers are valid.
3246 Simplify offset calculation.
3247 * remote.c (get_offsets): Clarify selection of relocate-by-segment
3248 strategy, and set num_segments correctly. Delete redundant
3249 assignments to do_sections.
3251 2007-09-24 Daniel Jacobowitz <dan@codesourcery.com>
3253 * frame.c (get_prev_frame_1): Also check for PC in the same register.
3255 2007-09-24 Vladimir Prus <vladimir@codesourcery.com>
3257 * breakpoint.c (remove_sal): New.
3258 (expand_line_sal_maybe): New.
3259 (create_breakpoints): Call expand_line_sal_maybe.
3260 (clear_command): Add comment.
3261 (breakpoint_re_set_one): Call expand_line_sal_maybe.
3262 * linespec.c (decode_indirect): Set explicit_pc to 1.
3263 (decode_all_digits): Set explicit_line to 1.
3264 (append_expanded_sal): New.
3265 (expand_line_sal): New.
3266 * linespec.h (expand_line_sal): Declare.
3267 * symtab.c (init_sal): Initialize explicit_pc
3269 * symtab.h (struct symtab_and_line): New fields
3270 explicit_pc and explicit_line.
3272 2007-09-23 Daniel Jacobowitz <dan@codesourcery.com>
3274 * infcall.c (call_function_by_hand): Handle language-specific
3275 pass and return by reference.
3277 * cp-abi.c (cp_pass_by_reference): New.
3278 * cp-abi.h (cp_pass_by_reference): Declare.
3279 (struct cp_abi_ops): Add pass_by_reference.
3280 * gnu-v3-abi.c (gnuv3_pass_by_reference): New.
3281 (init_gnuv3_ops): Set pass_by_reference.
3283 * language.c (language_pass_by_reference): New.
3284 (default_pass_by_reference): New.
3285 (unknown_language_defn, auto_language_defn, local_language_defn): Add
3286 default_pass_by_reference.
3287 * langauge.h (struct language_defn): Add la_pass_by_reference.
3288 (language_pass_by_reference, default_pass_by_reference): Declare.
3289 * ada-lang.c (ada_language_defn): Add default_pass_by_reference.
3290 * c-lang.c (c_language_defn, asm_language_defn)
3291 (minimal_language_defn): Likewise.
3292 (cplus_language_defn): Add cp_pass_by_reference.
3293 * f-lang.c (f_language_defn): Add default_pass_by_reference.
3294 * jv-lang.c (java_language_defn): Likewise.
3295 * m2-lang.c (m2_language_defn): Likewise.
3296 * objc-lang.c (objc_language_defn): Likewise.
3297 * p-lang.c (pascal_language_defn): Likewise.
3298 * scm-lang.c (scm_language_defn): Likewise
3300 2007-09-23 Vladimir Prus <vladimir@codesourcery.com>
3302 Allow a code breakpoint to have several locations
3304 * breakpoint.h (enum enable_state): Remove the
3305 bp_shlib_disabled enumerator.
3306 (struct bp_location): New members shlib_disabled,
3307 global_next, enabled and function_name.
3308 Rename pending to condition_not_parsed.
3310 * breakpoint.c (ALL_BP_LOCATIONS): Iterate over global_next.
3311 (ALL_BP_LOCATIONS_SAFE): Likewise.
3312 (breakpoint_enabled): Don't check for pending.
3313 (condition_command): Free and update all locations of
3315 (insert_bp_location): Adjust.
3316 (software_breakpoint_inserted_here_p): Don't care
3317 if breakpoint is enabled, as soon as it's inserted.
3318 (print_it_typical): Print bpstat's location, not
3319 bpstat's breakpoint's location.
3320 (bpstat_stop_status): Iterate over all locations, not
3322 (print_breakpoint_location): New.
3323 (print_one_breakpoint): Renamed to
3324 (print_one_breakpoint_location): ...this. Take
3325 parameters to describe which location is being
3326 printed. Modify code to properly print header
3327 for several locations and individual locations.
3328 (print_one_breakpoint): Print all locations.
3329 (breakpoint_has_pc): New.
3330 (describe_other_breakpoints): Use the above.
3331 (check_duplicates): Renamed to...
3332 (check_duplicates_for): .. this.
3333 (check_duplicates): Use check_duplicates_for.
3334 (allocate_bp_location): Adjust.
3335 (set_raw_breakpoint_without_location): New,
3336 extracted from set_raw_breakpoint.
3337 (set_breakpoint_location_function): New.
3338 (set_raw_breakpoint): Use
3339 set_raw_breakpoint_without_location.
3340 (make_breakpoint_permanent): Mark all locations
3342 (disable_breakpoints_in_shlibs): Iterate over
3344 (disable_breakpoints_in_unloaded_shlib): Likewise.
3345 (re_enable_breakpoints_in_shlibs): Likewise.
3346 (mention): Say "pending" when breakpoint has
3347 zero locations. If breakpoint has more than one
3349 (add_location_to_breakpoint): New.
3350 (create_breakpoint): Accept symtabs_and_lines, not
3351 symtab_and_line. Pass extra sals to
3352 add_location_to_breakpoint.
3353 (create_breakpoints): Pass symtabs_and_lines to
3355 (break_command_1): Make pending breakpoints
3356 have zero locations.
3357 (do_captured_breakpoint): Remove wrong allocation.
3358 (clear_command): Iterate over all locations.
3359 (unlink_locations_from_global_list): Renamed
3360 from unlink_location_from_global_list. Remove
3362 (delete_breakpoint): Remove all locations.
3363 Iterate over all locations when deciding which
3364 other location to re-enable.
3365 (all_locations_are_pending): New.
3366 (update_breakpoint_locations): Renamed from
3367 update_breakpoint_location. Try to match old
3368 and new locations using names of containing
3370 (breakpoint_re_set_one): Adjust.
3371 (find_location_by_number): New.
3372 (disable_command): Allow disabling individual location.
3373 (enable_command): Allow enabling individual location.
3374 * breakpoint.c: Adjust all uses of breakpoint's
3375 enable state to for bp_shlib_disabled change.
3377 2007-09-22 Vladimir Prus <vladimir@codesourcery.com>
3379 * breakpoint.c (do_restore_lang_radix_cleanup): Remove.
3380 (resolve_pending_breakpoint): Remove.
3381 (re_enable_breakpoints_in_shlibs): Remove.
3382 (unlink_locations_from_global_list): New.
3383 (update_breakpoint_locations): New.
3384 (breakpoint_re_set_one): Don't bail out on pending breakpoints.
3385 Use parse_condition and update_breakpoint_location to
3386 reset breakpoint. Ignore 'symbol not found' error from
3388 (breakpoint_re_set): Don't emit newline before the
3389 reason why breakpoint is not reset.
3390 (do_enable_breakpoint): Don't specially process pending
3392 (free_bp_location): New.
3393 (break_command_1): For pending breakpoints, initialize
3394 all fields of a sal with zeroes.
3395 * breakpoint.h (re_enable_breakpoints_in_shlibs): Remove.
3396 * infcmd.c (post_create_inferior): Don't call
3397 re_enable_breakpoints_in_shlibs.
3398 * infrun.c (handle_inferior_event): Likewise.
3399 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
3400 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
3401 * win32-nat.c (get_win32_debug_event): Likewise.
3403 2007-09-22 Vladimir Prus <vladimir@codesourcery.com>
3405 * breakpoint.c (create_breakpoint): Split from
3406 create_breakpoints, implementing most of its logic.
3407 Take just a single sal, single address string and
3408 single condition. Do not take parsed condition at
3410 (create_breakpoints): Just call create_breakpoint
3412 (find_condition_and_thread): New.
3413 (break_command_1): Use find_condition_and_thread.
3414 Do not keep parsed conditions.
3415 (do_captured_breakpoint): Don't convert
3416 condition string to struct expression.
3418 2007-09-22 Vladimir Prus <vladimir@codesourcery.com>
3420 * breakpoint.h (struct breakpoint): Move the cond
3422 (struct bp_location): Here.
3423 * breakpoint.c (condition_command, bpstat_stop_status)
3424 (print_one_breakpoint, allocate_bp_location)
3425 (solib_load_unload_1, create_fork_vfork_event_catchpoint)
3426 (create_exec_event_catchpoint, create_breakpoints)
3427 (break_command_1, watch_command_1, handle_gnu_v3_exceptions)
3428 (create_ada_exception_breakpoint, set_breakpoint_sal)
3429 (delete_breakpoint, breakpoint_re_set_one): Adjust.
3430 * tui/tui-winsource.c (tui_update_breakpoint_info): Adjust.
3432 2007-09-22 Vladimir Prus <vladimir@codesourcery.com>
3434 Associate bp_stat with bp_location, not breakpoint.
3435 * breakpoint.h (breakpoint_at): Change type
3437 * breakpoint.c (bpstat_alloc): Take bp_location,
3439 (bpstat_find_breakpoint): Look at bpstat's location's
3440 owner, not at bpstat->breakpoint_at.
3441 (bpstat_find_step_resume_breakpoint): Likewise.
3442 (bpstat_num): Likewise.
3443 (print_it_typical): Likewise.
3444 (print_bp_stop_message): Likewise.
3445 (watchpoint_check): Likewise.
3446 (bpstat_what): Likewise.
3447 (bpstat_get_triggered_catchpoints): Likewise.
3448 (breakpoint_auto_delete): Likewise.
3449 (delete_breakpoint): Likewise.
3450 (bpstat_stop_status): Pass location, not breakpoint,
3451 to bpstat_alloc. Look at bpstat's location's
3452 owner, not at bpstat->breakpoint_at.
3454 2007-09-21 Jim Blandy <jimb@codesourcery.com>
3456 * macrotab.h (new_macro_table): Document that removing information
3457 from an obstack/bcache-managed macro table leaks memory.
3458 * macrotab.c (macro_free, macro_bcache_free): Instead of asserting
3459 that data is never freed in obstack/bcache-managed macro tables,
3460 just leak the storage.
3461 (macro_undef): If we're undefining a macro at exactly the same
3462 source location that we defined it, simply remove the definition
3465 2007-09-21 Joel Brobecker <brobecker@adacore.com>
3467 * symfile.h (struct sym_fns): Add new field sym_read_linetable.
3468 * coffread.c, dbxread.c, elfread.c, mipsread.c somread.c:
3469 Adjust the struct sym_fns object accordingly by setting
3470 the new field to NULL.
3471 * xcoffread.c (aix_process_linenos): Make static.
3472 (xcoff_sym_fns): Set new field to aix_process_linenos.
3473 * buildsym.c (end_symtab): Replace call to PROCESS_LINENUMBER_HOOK
3474 by call to new the new sym_fns sym_read_linetable function.
3475 * config/powerpc/aix.mt (DEPRECATED_TM_FILE): Delete.
3476 * config/rs6000/tm-rs6000.h: Delete.
3478 2007-09-21 David Ung <davidu@mips.com>
3479 Maciej W. Rozycki <macro@mips.com>
3481 * mips-tdep.c (mips_n32n64_push_dummy_call): Per N32/N64 ABI
3482 rules do not treat composite types specially.
3484 2007-09-20 Maciej W. Rozycki <macro@mips.com>
3486 * mips-tdep.c (mips32_in_function_epilogue_p): New function.
3487 (mips16_in_function_epilogue_p): Likewise.
3488 (mips_in_function_epilogue_p): Likewise.
3489 (mips_gdbarch_init): Register mips_in_function_epilogue_p().
3491 2007-09-19 Joel Brobecker <brobecker@adacore.com>
3493 * configure.ac: Add check for "etext".
3494 * configure, config.in: Regenerate.
3495 * maint.c (TEXTEND): Only define if either _etext or etext
3497 Disable the profiling functionality if TEXTEND is not defined.
3499 2007-09-19 Daniel Jacobowitz <dan@codesourcery.com>
3501 * mips-tdep.c (mips_stub_frame_cache): Correct the saved return
3502 address register. Correct the call to frame_id_build.
3503 (mips_stub_frame_sniffer): Use the stub unwinder when the PC
3506 2007-09-18 Joel Brobecker <brobecker@adacore.com>
3508 * ia64-tdep.c (refine_prologue_limit): Make sure we don't scan
3509 the linetable past the function end.
3511 2007-09-18 James E. Wilson <wilson@specifix.com>
3513 * MAINTAINERS: Update my email address.
3515 2007-09-18 Jerome Guitton <guitton@adacore.com>
3517 * inf-ttrace.c (inf_ttrace_private_thread_info): New structure type.
3518 (inf_ttrace_delete_dying_threads_callback): New function.
3519 (inf_ttrace_resume): After resuming the execution, iterate over
3520 the dying threads to delete them for the thread list.
3521 (inf_ttrace_wait): on TTEVT_LWP_EXIT and TTEVT_LWP_TERMINATE,
3522 mark the corresponding thread as dying instead of removing it
3523 from the thread list.
3524 (inf_ttrace_thread_alive): return 0 for dying threads.
3526 2007-09-17 Joel Brobecker <brobecker@adacore.com>
3528 * infrun.c (insert_step_resume_breakpoint_at_frame): Add assertion
3529 that return_frame is not null.
3531 2007-09-17 Joel Brobecker <brobecker@adacore.com>
3533 * solib-svr4.c: Add include of "auxv.h".
3534 (enable_break): Use the AT_BASE auxiliary entry if available.
3535 * Makefile.in (solib-svr4.o): Update dependencies.
3537 2007-09-17 Joel Brobecker <brobecker@adacore.com>
3539 * NEWS: Create a new section for the next release branch.
3540 Rename the section of the current branch, now that it has
3543 2007-09-17 Jerome Guitton <guitton@adacore.com>
3545 * dwarf2loc.c (dwarf_expr_frame_base): Guard against NULL.
3546 * Makefile.in (dwarf2loc.o): Depend on gdb_assert.h.
3548 2007-09-16 Vladimir Prus <vladimir@codesourcery.com>
3550 * mi/mi-cmds.c (mi_cmds): Register -list-features.
3551 * mi/mi-cmds.h (mi_cmd_list_features): New.
3552 * mi/mi-main.c (mi_cmd_list_features): New.
3554 2007-09-11 Joel Brobecker <brobecker@adacore.com>
3556 GDB 6.7 branch created (branch timestamp: 2007-09-07 14:00 UTC)
3557 * version.in: Bump version to 6.7.50-20070911-cvs.
3559 2007-09-10 Daniel Jacobowitz <dan@codesourcery.com>
3561 * thread.c (free_thread): Do not delete the step resume breakpoint
3564 2007-09-10 Daniel Jacobowitz <dan@codesourcery.com>
3566 * arch-utils.c (gdbarch_info_fill): Also try core_bfd.
3567 * corelow.c (core_read_description): New.
3568 (init_core_ops): Set to_read_description.
3569 * gdbarch.sh: Add gdbarch_core_read_description.
3570 * mips-linux-tdep.c (mips_linux_core_read_description): New.
3571 (mips_linux_init_abi): Call set_gdbarch_core_read_description.
3572 * mips-tdep.c (mips_tdesc_gp32, mips_tdesc_gp64): New.
3573 (mips_register_g_packet_guesses): Use them.
3574 (_initialize_mips_tdep): Initialize them.
3575 * mips-tdep.h (mips_tdesc_gp32, mips_tdesc_gp64): Declare.
3576 * gdbarch.h, gdbarch.c: Regenerated.
3578 2007-09-10 Ulrich Weigand <uweigand@de.ibm.com>
3580 * infrun.c (stepping_past_breakpoint): New global variable.
3581 (stepping_past_breakpoint_ptid): Likewise.
3582 (prepare_to_proceed): Add STEP parameter. Do not check for Ctrl-C.
3583 Only switch threads if we need to single-step over a breakpoint hit
3584 in the previously selected thread. If stepping, remember previous
3585 thread to switch back to in STEPPING_PAST_BREAKPOINT[_PTID]. Call
3586 switch_to_thread instead of copying its contents.
3587 (proceed): Pass STEP to prepare_to_proceed. Always set ONEPROC if
3588 prepare_to_proceed returns true.
3589 (init_wait_for_inferior): Reset STEPPING_PAST_BREAKPOINT.
3590 (context_switch): Call switch_to_thread.
3591 (handle_inferior_event): Switch back to previous thread if requested
3592 in STEPPING_PAST_BREAKPOINT[_PTID] by prepare_to_proceed.
3593 * gdbthread.h (switch_to_thread): Add prototype.
3594 * thread.c (switch_to_thread): Make global.
3596 2007-09-07 Pierre Muller <muller@ics.u-strasbg.fr>
3598 * p-valprint.c: Fix 7 ARI reported problems.
3599 (pascal_val_print): Fix one operator at end of line issue.
3600 Use paddress function to remove use of
3601 deprecated_print_address_numeric function (2 times).
3602 Use SYMBOL_LINKAGE_NAME instead of DEPRECATED_SYMBOL_NAME.
3603 (pascal_value_print): Fix 3 operator at end of line issues.
3605 2007-09-07 Daniel Jacobowitz <dan@codesourcery.com>
3608 * arm-tdep.c (arm_in_call_stub): Delete.
3609 (arm_skip_stub): Handle from_arm and from_thumb stubs.
3611 2007-09-06 Daniel Jacobowitz <dan@codesourcery.com>
3613 * ppc-sysv-tdep.c (do_ppc_sysv_return_value): Handle other integer
3616 2007-09-04 Daniel Jacobowitz <dan@codesourcery.com>
3617 Jim Blandy <jimb@codesourcery.com>
3619 * NEWS: Update description of string changes. Mention print/s.
3620 * c-valprint.c (textual_element_type): New.
3621 (c_val_print): Use it. Do not skip address printing for pointers
3622 with a string format.
3623 (c_value_print): Doc update.
3624 * dwarf2read.c (read_array_type): Use make_vector_type.
3625 * gdbtypes.c (make_vector_type): New.
3626 (init_vector_type): Use it.
3627 (gdbtypes_post_init): Initialize builtin_true_unsigned_char.
3628 (_initialize_gdbtypes): Mark int8_t and uint8_t as TYPE_FLAG_NOTTEXT.
3629 * gdbtypes.h (struct builtin_type): Add builtin_true_unsigned_char.
3630 (TYPE_FLAG_NOTTEXT, TYPE_NOTTEXT): New.
3631 (make_vector_type): New.
3632 * printcmd.c (print_formatted): Only handle 's' and 'i' for examine.
3633 Call the language print routine for string format.
3634 (print_scalar_formatted): Call val_print for string format. Handle
3635 unsigned original types for char format.
3636 (validate_format): Do not reject string format.
3637 * stabsread.c (read_type): Use make_vector_type.
3638 * xml-tdesc.c (tdesc_start_vector): Use init_vector_type.
3640 2007-09-04 Michael Snyder <msnyder@access-company.com>
3642 * expprint.c (print_subexp_standard): Check strchr for null.
3643 * Makefile.in (expprint.o): Depend on gdb_assert.h.
3645 * gnu-v2-abi.c (gnuv2_value_rtti_type): Guard against null.
3647 * stabsread.c (patch_block_status): Guard against null.
3648 * Makefile.in (stabsread.o): Depend on gdb_assert.h.
3650 2007-09-04 Daniel Jacobowitz <dan@codesourcery.com>
3652 * printcmd.c (printf_command): Handle ptr_arg. Correct typo
3653 in internal error message.
3655 2007-09-04 Pedro Alves <pedro_alves@portugalmail.pt>
3656 Daniel Jacobowitz <dan@codesourcery.com>
3658 * infcmd.c (post_create_inferior): Update comment.
3659 (run_command_1): Always call post_create_inferior with 0 as
3662 * i386-cygwin-tdep.h: New.
3663 * i386-cygwin-tdep.c: Include "i386-cygwin-tdep.h".
3664 (win32_xfer_shared_library): Make it extern.
3666 * win32-nat.c: Include gdb_obstack.h and xml-support.h and
3668 (win32_so_ops): Delete.
3669 (get_relocated_section_addrs): Delete.
3670 (solib_symbols_add): Delete.
3671 (register_loaded_dll): Delete.
3672 (win32_make_so): New.
3673 (handle_load_dll): Use win32_make_so.
3674 (win32_free_so): Free the passed in so.
3675 (win32_relocate_section_addresses): Delete.
3676 (win32_solib_create_inferior_hook): Delete.
3677 (handle_unload_dll): Don't add PE offset here. Free so with
3678 win32_free_so instead of free_so.
3679 (win32_special_symbol_handling): Delete.
3680 (get_win32_debug_event): Remove unneeded calls. Set state to
3681 TARGET_WAITKIND_LOADED on a dll unload.
3682 (do_initial_win32_stuff): Clear cygwin_load_start and
3684 (map_code_section_args): Delete.
3685 (dll_code_sections_add): Delete.
3686 (core_section_load_dll_symbols): Delete.
3687 (win32_xfer_shared_libraries): New.
3688 (win32_current_sos): Delete.
3689 (win32_xfer_partial): New.
3690 (open_symbol_file_object): Delete.
3691 (in_dynsym_resolve_code): Delete.
3692 (init_win32_ops): Set win32_xfer_partial as to_xfer_partial member
3693 of win32_ops. Remove win32_so_ops settings. Don't set
3694 current_target_so_ops here.
3696 * Makefile.in (i386_cygwin_tdep_h): New variable.
3697 (i386-cygwin-tdep.o): Update dependencies.
3698 (win32-nat.o): Update dependencies.
3700 2007-09-04 Pedro Alves <pedro_alves@portugalmail.pt>
3701 Daniel Jacobowitz <dan@codesourcery.com>
3703 * gdbarch.sh (core_xfer_shared_libraries): New.
3705 * corelow.c (core_xfer_partial): Handle TARGET_OBJECT_LIBRARIES.
3707 * gdb_obstack.h (obstack_grow_str, obstack_grow_str0): New.
3709 * xml-support.c (gdb_xml_parse): Debug output tweaks.
3710 (xml_escape_text): New.
3711 * xml-support.h (xml_escape_text): Declare.
3713 * config/i386/cygwin.mh (NATDEPFILES): Move corelow.o to ...
3714 * config/i386/cygwin.mt (TDEPFILES): ... here.
3716 * win32-nat.c: (fetch_elf_core_registers): Delete.
3717 (win32_elf_core_fn): Delete.
3718 (_initialize_core_win32): Delete.
3720 * i386-cygwin-tdep.c: Include "regset.h", "gdb_objstack.h",
3721 "xml-support.h" and "gdbcore.h".
3722 (i386_win32_gregset_reg_offset): New.
3723 (I386_WIN32_SIZEOF_GREGSET): New.
3724 (i386_win32_regset_from_core_section): New.
3725 (win32_xfer_shared_library): New.
3726 (struct cpms_data): New.
3727 (core_process_module_section): New.
3728 (win32_core_xfer_shared_libraries): New.
3729 (i386_cygwin_skip_trampoline_code): Register gregset_reg_offset,
3730 gregset_num_regs, sizeof_gregset members of tdep. Register
3731 regset_from_core_section and core_xfer_shared_libraries callbacks.
3733 * Makefile.in (i386-cygwin-tdep.o): Update dependencies.
3734 * gdbarch.h, gdbarch.c: Regenerate.
3736 2007-09-03 Daniel Jacobowitz <dan@codesourcery.com>
3738 * corelow.c (core_xfer_partial): Pass writebuf to
3739 deprecated_xfer_memory in TARGET_OBJECT_MEMORY write case.
3741 2007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
3743 * arm-tdep.h (arm_skip_stub): Declare.
3744 * arm-wince-tdep.c: Don't include "solib-svr4.h". Include
3746 (arm_pe_skip_trampoline_code): New function.
3747 (arm_wince_init_abi): Register arm_pe_skip_trampoline_code as
3748 gdbarch_skip_trampoline_code callback.
3749 * Makefile.in (arm-wince-tdep.o): Update dependencies.
3751 2007-09-03 Daniel Jacobowitz <dan@codesourcery.com>
3753 * MAINTAINERS: Move Fred Fish to Past Maintainers.
3755 2007-09-03 Daniel Jacobowitz <dan@codesourcery.com>
3757 * configure.ac: Add --with-expat.
3758 * configure: Regenerated.
3760 2007-09-03 Andreas Schwab <schwab@suse.de>
3762 * configure.ac: Accept --with-system-readline.
3763 (READLINE, READLINE_DEPS, READLINE_CFLAGS): Define and substitute.
3764 * configure: Regenerate.
3765 * Makefile.in (READLINE, READLINE_DEPS, READLINE_CFLAGS): Use
3767 (CDEPS): Use $(READLINE_DEPS) instead of $(READLINE).
3769 2007-09-03 Maxim Grigoriev <maxim2405@gmail.com>
3770 Daniel Jacobowitz <dan@codesourcery.com>
3772 * mi-main.c (mi_load_progress): Handle MI2 and MI3 interpreters.
3774 2007-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3776 * top.c (print_gdb_version): Fixed a string end-of-line compiler error.
3778 2007-09-02 Daniel Jacobowitz <dan@codesourcery.com>
3780 * top.c (print_gdb_version): Update for GPL version 3.
3782 2007-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3784 * NEWS: Mention the build-id .debug files verification.
3786 2007-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3788 * linux-nat.c (linux_nat_make_corefile_notes): Fixed a buffer overflow.
3790 2007-09-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3792 * Makefile.in (symfile.o): Update dependencies.
3793 * symfile.c (symbol_file_add_with_addrs_or_offsets): Initialize the
3794 DEBUGFILE variable. FIND_SEPARATE_DEBUG_FILE called only if !PSYMTABS.
3795 (struct build_id): New structure.
3796 (build_id_bfd_get, build_id_verify, build_id_to_debug_filename): New.
3797 (find_separate_debug_file): New variable BUILD_ID.
3798 Call BUILD_ID_BFD_GET with BUILD_ID_TO_DEBUG_FILENAME as the first try.
3800 2007-08-31 Vladimir Prus <vladimir@codesourcery.com>
3802 * varobj.c (struct varobj): Fix comment
3803 for the type member not to lie when it can be
3806 2007-08-31 Vladimir Prus <vladimir@codesourcery.com>
3808 Implement -var-info-path-expression.
3810 * mi/mi-cmds.h (mi_cmd_var_info_path_expression):
3812 * mi/mi-cmds.c (mi_cmds): Register var-info-path-expression.
3813 * mi/mi-cmd-var.c (mi_cmd_var_info_path_expression): New.
3814 * varobj.c (struct varobj): New field 'path_expr'.
3815 (c_path_expr_of_child, cplus_path_expr_of_child)
3816 (java_path_expr_of_child): New.
3817 (struct language_specific): New field path_expr_of_child.
3818 (varobj_create): Initialize the path_expr field.
3819 (varobj_get_path_expr): New.
3820 (new_variable): Initialize the path_expr field.
3821 (free_variable): Free the path_expr field.
3822 (adjust_value_for_children_access): New parameter
3824 (c_number_of_children): Adjust.
3825 (c_describe_child): New parameter CFULL_EXPRESSION.
3826 Compute full expression.
3827 (c_value_of_child, c_type_of_child): Adjust.
3828 (cplus_number_of_children): Adjust.
3829 (cplus_describe_child): New parameter CFULL_EXPRESSION.
3830 Compute full expression.
3831 (cplus_name_of_child, cplus_value_of_child)
3832 (cplus_type_of_child): Adjust.
3833 * varobj.h (varobj_get_path_expr): Declare.
3835 2007-08-31 Vladimir Prus <vladimir@codesourcery.com>
3837 * mi/mi-cmd-var.c (print_varobj): If a varobj
3838 type is NULL, don't try to print it.
3840 2007-08-30 Alan Modra <amodra@bigpond.net.au>
3842 * ppc-linux-nat.c (right_fill_reg): Delete.
3843 (supply_gregset): Use ppc_supply_gregset.
3844 (supply_fpregset): Use ppc_supply_fpregset.
3845 (fill_gregset): Use ppc_collect_gregset.
3846 (fill_fpregset): Use ppc_collect_fpregset.
3847 * ppc-linux-tdep.c (PPC_LINUX_PT_*): Don't define.
3848 (right_supply_register, ppc_linux_supply_gregset): Delete.
3849 (ppc32_linux_supply_gregset, ppc64_linux_supply_gregset): Delete.
3850 (ppc_linux_supply_fpregset): Delete.
3851 (ppc_linux_collect_gregset): New function.
3852 (ppc32_linux_reg_offsets, ppc64_linux_reg_offsets): New.
3853 (ppc32_linux_gregset, ppc64_linux_gregset): Update to use reg offsets,
3854 ppc_linux_supply_gregset, and ppc_collect_gregset.
3855 (ppc_linux_fpregset): Rename to ppc32_linux_fpregset and update.
3856 (ppc_linux_gregset, ppc_linux_fpregset): New functions.
3857 (ppc_linux_regset_from_core_section): Update.
3858 * ppc-tdep.h (ppc_linux_gregset, ppc_linux_fpregset): Declare.
3859 (ppc_linux_supply_gregset, ppc_linux_supply_fpregset): Delete.
3860 (struct ppc_reg_offsets): Add gpr_size, xr_size, fpscr_size fields.
3861 * ppcobsd-tdep.c (ppcobsd_supply_gregset): Delete FIXME and assert.
3862 (ppcobsd_collect_gregset): Likewise.
3863 (_initialize_ppcnbsd_tdep): Init gpr_size, xr_size, fpscr_size.
3864 * ppcnbsd-tdep.c (_initialize_ppcobsd_tdep): Likewise.
3865 * ppcobsd-nat.c (_initialize_ppcobsd_nat): Likewise.
3866 * rs6000-aix-tdep.c (rs6000_aix32_reg_offsets): Likewise.
3867 (rs6000_aix64_reg_offsets): Likewise.
3868 (rs6000_aix_supply_regset): Call ppc_supply_fpregset without testing
3869 ppc_floating_point_unit_p.
3870 (rs6000_aix_collect_regset): Similarly.
3871 * rs6000-tdep.c (ppc_supply_reg): Add regsize param. Adjust offset
3872 when regsize is larger than regcache register size.
3873 (ppc_collect_reg): Similarly zero pad when regsize is larger than
3874 regcache register size.
3875 (ppc_greg_offset): New function, split out from..
3876 (ppc_supply_gregset): ..here. Separate code handling all regs from
3877 single reg case. Correct xer offset.
3878 (ppc_fpreg_offset): New function, split out from..
3879 (ppc_supply_fpregset): ..here. Separate code handling all regs from
3881 (ppc_collect_gregset, ppc_collect_fpregset): Likewise.
3882 (ppc_supply_fpregset, ppc_collect_fpregset): Don't assert we have
3883 a fp unit, instead return if no fp.
3885 2007-08-29 Jim Blandy <jimb@codesourcery.com>
3887 * breakpoint.c (watch_command_1): Remove '#ifdef HPUXHPPA' block;
3888 this code has not been compiled for two years.
3890 2007-08-29 Michael Snyder <msnyder@access-company.com>
3892 * event-top.c (gdb_readline2): Return after EOF.
3894 2007-08-29 Joel Brobecker <brobecker@adacore.com>
3896 * symtab.c: Remove a function that has been commented out 3 years ago.
3898 2007-08-29 Randolph Chung <tausq@debian.org>
3900 * hppa-tdep.c (hppa32_cannot_fetch_register)
3901 (hppa64_cannot_fetch_register): New functions.
3902 (hppa_gdbarch_init): Set cannot_fetch_register appropriately.
3903 * hppa-tdep.h (hppa_regnum): Add HPPA_CR26_REGNUM.
3905 2007-08-28 Michael Snyder <msnyder@access-company.com>
3907 * mi/mi-cmd-var.c (mi_print_value_p): No longer necessary to
3908 check for null before calling check_typedef.
3910 * NEWS: Mention Coverity bug fixes.
3912 2007-08-27 Markus Deuling <deuling@de.ibm.com>
3914 * spu-tdep.c (spu_pointer_to_address): New function.
3915 (spu_integer_to_address): Likewise.
3916 (spu_gdbarch_init): Add spu_pointer_to_address and
3917 spu_integer_to_address to gdbarch.
3919 2007-08-26 Pedro Alves <pedro_alves@portugalmail.pt>
3921 * arm-wince-tdep.c (ARM_WINCE_JB_PC): Change to 10.
3923 2007-08-23 Joel Brobecker <brobecker@adacore.com>
3925 * Makefile.in (copying.c): Use the top-level COPYING3 as the file
3926 that contains the GDB license.
3927 * copying.awk: Adjust to the GPLv3 wording.
3928 * copying.c: Regenerate.
3930 2007-08-23 Joel Brobecker <brobecker@adacore.com>
3932 * copying.awk: Protoization, and i18n markup.
3934 2007-08-23 Joel Brobecker <brobecker@adacore.com>
3936 * config/djgpp/djconfig.sh: Switch license to GPLv3.
3937 * copyright.sh: Likewise.
3938 * gdb-events.sh: Likewise.
3939 * gdb_gcore.sh: Likewise.
3940 * gdb_mbuild.sh: Likewise.
3941 * gdbarch.sh: Likewise.
3942 * observer.sh: Likewise.
3943 * features/feature_to_c.sh: Likewise.
3944 * regformats/regdat.sh: Likewise.
3946 2007-08-23 Joel Brobecker <brobecker@adacore.com>
3948 Switch the license of all .c files to GPLv3.
3949 Switch the license of all .h files to GPLv3.
3950 Switch the license of all .cc files to GPLv3.
3952 2007-08-23 Joel Brobecker <brobecker@adacore.com>
3954 * configure.ac: Switch license to GPLv3.
3956 2007-08-22 Daniel Jacobowitz <dan@codesourcery.com>
3958 * mips-tdep.c (mips_gdbarch_init): Use Tag_GNU_MIPS_ABI_FP to
3959 determine the file's FPU type.
3961 2007-08-22 Daniel Jacobowitz <dan@codesourcery.com>
3963 * mips-tdep.c (mips_n32n64_fp_arg_chunk_p): New.
3964 (mips_n32n64_push_dummy_call): Always increment float_argreg along
3965 with argreg. Use mips_n32n64_fp_arg_chunk_p.
3967 2007-08-22 Daniel Jacobowitz <dan@codesourcery.com>
3969 * solib-svr4.c (scan_dyntag): Only read target memory when necessary.
3971 (elf_locate_base): Look for DT_MIPS_RLD_MAP first. Expand comments.
3972 (elf_lookup_lib_symbol): Fix formatting.
3974 2007-08-21 Michael Snyder <msnyder@access-company.com>
3976 * dbxread.c (read_dbx_symtab): Guard null deref.
3979 * valops.c (find_overload_match): Guard against NULL.
3981 2007-08-21 Daniel Jacobowitz <dan@codesourcery.com>
3983 * MAINTAINERS (Patch Champions): Remove self.
3985 2007-08-21 Chris Smith <chris.smith@st.com>
3987 * cli/cli-script.c (read_command_lines): Call dont_repeat for each
3990 2007-08-18 Michael Snyder <msnyder@access-company.com>
3992 * stabsread.c (dbx_lookup_type): Memory leak.
3994 * event-loop.c (delete_async_signal_handler): Move pointer null
3995 test to before pointer dereference.
3997 * ui-out.c (append_header_to_list): Possible cut and paste error.
3999 * MAINTAINERS: white space tweak.
4001 2007-08-17 Michael Snyder <msnyder@access-company.com>
4003 * stack.c (print_frame): Memory leak.
4005 * completer.c (filename_completer): Avoid memory leak.
4006 Remove unnecessary nested block.
4008 * c-exp.y (parse_number): Memory leak.
4010 * completer.c (location_completer): Must free 'fn_list', except
4011 in the one case where it is returned (as 'list').
4013 * varobj.c (value_of_root): Memory leak.
4015 * gdbtypes.h (virtual_base_list): Remove export decl.
4016 * gdbtypes.c (virtual_base_list): Make static. Not called outside.
4017 (virtual_base_index): Memory leak.
4018 (virtual_base_index_skip_primaries): Ditto.
4020 2007-08-17 Maxim Grigoriev <maxim2405@gmail.com>
4022 * xtensa-tdep.c (ARG_NOF, ARG_1ST, PS_WOE, PS_EXC, C0_MAXOPDS)
4023 (C0_NREGS, C0_CLESV, C0_SP, C0_FP, C0_RA, C0_ARGS, C0_NARGS)
4024 (C0_CONST, C0_INEXP, C0_NOSTK): New macros.
4025 (xtensa_read_register): New function.
4026 (xtensa_windowed_frame_cache, xtensa_call0_frame_cache, xtensa_c0reg)
4027 (xtensa_insn_kind): New types.
4028 (xtensa_frame_cache, xtensa_alloc_frame_cache, xtensa_frame_cache)
4029 (xtensa_frame_prev_register, xtensa_return_value, xtensa_skip_prologue)
4030 (xtensa_verify_config, xtensa_pseudo_register_read)
4031 (xtensa_pseudo_register_write, xtensa_extract_return_value)
4032 (xtensa_store_return_value)
4033 (xtensa_push_dummy_call): Extended to support Xtensa Call0 ABI.
4034 (windowing_enabled, extract_call_winsize, xtensa_unwind_dummy_id)
4035 (xtensa_frame_this_id, xtensa_frame_prev_register)
4036 (xtensa_register_type, xtensa_reg_to_regnum): Cosmetic changes.
4037 (call0_frame_cache, call0_frame_get_reg_at_entry)
4038 (call0_classify_opcode, call0_track_op)
4039 (call0_analyze_prologue, call0_frame_cache): New functions.
4041 2007-08-17 Vladimir Prus <vladimir@codesourcery.com>
4043 * breakpoint.c (bpstat_free): New.
4044 (bpstat_clear): Use bpstat_free.
4045 (delete_breakpoint): Document why we cannot
4046 remove bpstats from stop_bpstat.
4047 * breakpoint.h (bpstat_free): Declare.
4049 2007-08-16 Michael Snyder <msnyder@access-company.com>
4051 * event-loop.c (gdb_wait_for_event): Move statement into "if" block.
4053 2007-08-15 Paul Hilfinger <hilfinger@adacore.com>
4054 Joel Brobecker <brobecker@adacore.com>
4056 * ada-lang.c (resolve_subexp): Correct arity of binary operators.
4058 2007-08-15 Paul Hilfinger <hilfinger@adacore.com>
4059 Joel Brobecker <brobecker@adacore.com>
4061 * ada-lang.c (possible_user_operator_p): Alternative fix to last
4062 checkin guarding against NULL.
4064 2007-08-14 Michael Snyder <msnyder@access-company.com>
4066 * tui-command.c, tui-data.c, tui-disasm.c, tui-file.c, tui-io.c,
4067 tui-layout.c, tui-regs.c, tui-source.c, tui-win.c, tui-windata.c,
4068 tui-wingeneral.c, tui-winsource.c: Coding standard, && and ||
4069 go at beginning of new line.
4071 * tui-data.c, tui-data.h, tui-disasm.c, tui-disasm.h, tui-hooks.c,
4072 tui-io.c, tui-layout.c, tui-layout.h, tui-out.c, tui-regs.c,
4073 tui-source.c, tui-source.h, tui-stack.c, tui-win.c, tui-win.h,
4074 tui-windata.c, tui-windata.h, tui-wingeneral.c, tui-winsource.c,
4075 tui-winsource.h, tui.c, tui.h: Function declarations and
4076 definitions, wrap long lines.
4078 * tui-command.c, tui-data.c, tui-disasm.c, tui-layout.c,
4079 tui-regs.c, tui-win.c, tui-windata.c, tui-winsource.c, tui.c:
4080 Reformat block comments to GNU standard.
4082 * tui-command.c, tui-data.c, tui-data.h, tui-disasm.c, tui-file.c,
4083 tui-hooks.c, tui-interp.c, tui-io.c, tui-layout.c, tui-out.c,
4084 tui-regs.c, tui-regs.h, tui-source.c, tui-stack.c, tui-win.c,
4085 tui-windata.c, tui-wingeneral.c, tui-winsource.c, tui-winsource.h,
4086 tui.c, tui.h: Comment reformatting to coding standard (capitals,
4087 spaces after periods, etc).
4089 * tui-data.c, tui-data.h, tui-disasm.c, tui-hooks.c, tui-layout.c,
4090 tui-regs.c, tui-source.c, tui-stack.c, tui-win.c, tui-windata.c,
4091 tui-wingeneral.c, tui-wingeneral.h, tui-winsource.c, tui.c,
4092 tui-winsource.h: Whitespace changes, fix pointer declarations
4095 2007-08-14 Joel Brobecker <brobecker@adacore.com>
4096 Michael Snyder <msnyder@access-company.com>
4098 * ada-lang.c (field_alignment): Guard against NULL.
4100 2007-08-14 Joel Brobecker <brobecker@adacore.com>
4102 * MAINTAINERS (Global Maintainers): Add self.
4104 2007-08-14 Michael Snyder <msnyder@access-company.com>
4106 * mi/mi-interp.c (mi_cmd_interpreter_exec): Dead code, dead variable.
4108 * ada-lang.c (possible_user_operator_p): Guard against NULL.
4110 * varobj.c (cplus_describe_child): Guard against null.
4111 Use "NULL" instead of "0" to initialize pointers.
4113 2007-08-14 Daniel Jacobowitz <dan@codesourcery.com>
4115 * arm-tdep.c (arm_gdbarch_init): Allow unknown ABI and FPU settings
4116 to match any gdbarch with matching OSABI. Set default ABI and FPU
4117 after running the OSABI handler.
4119 2007-08-14 Daniel Jacobowitz <dan@codesourcery.com>
4121 * config/i386/linux.mh (NATDEPFILES): Move corelow.o from here...
4122 * config/i386/linux.mt (TDEPFILES): ...to here.
4124 2007-08-14 Vladimir Prus <vladimir@codesourcery.com>
4126 * breakpoint.c (disable_breakpoints_in_shlibs): Remove
4127 the 'silent' parameter and code to implement that.
4128 * breakpoint.h (disable_breakpoints_in_shlibs): Adjust
4130 * win32-nat.c: Adjust.
4133 2007-08-14 Vladimir Prus <vladimir@codesourcery.com>
4135 * breakpoint.c (update_breakpoints_after_exec): Don't
4136 set address to zero.
4138 2007-08-13 Michael Snyder <msnyder@access-company.com>
4140 * valops.c: Whitespace clean-up.
4142 * tui/tui-winsource.c (tui_alloc_source_buffer): Clean up allocation.
4144 * event-top.c (command_line_handler): Memory leak.
4146 * mi/mi-cmd-var.c (mi_cmd_var_set_format): Memory leak.
4147 No need to make copy.
4149 * source.c (find_source_lines): Require symtab 's'.
4151 2007-08-11 Michael Snyder <msnyder@access-company.com>
4153 * completer.c: Spelling fix in comments.
4155 2007-08-10 Michael Snyder <msnyder@access-company.com>
4157 * gdbtypes.c: Coding standard cleanup.
4158 * gdbtypes.c: Comment/whitespace cleanup.
4160 * stabsread.c (read_huge_number): Attempt to compute value before
4161 values that it depends on.
4163 * linespec.c (decode_dollar): Dead code, ptr can't be non-null.
4164 (decode_objc): Use "NULL" instead of 0.
4165 (find_method): Ditto.
4166 (decode_all_digits): Ditto.
4167 (decode_dollar): Ditto.
4169 * mi/mi-main.c (mi_cmd_data_evaluate_expression): Resource leak.
4171 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Memory leak.
4173 * solib-svr4.c (enable_break): Don't free tmp_pathname until
4176 * completer.c: Comment/whitespace cleanup.
4178 2007-08-10 Joel Brobecker <brobecker@adacore.com>
4180 * Makefile.in (i386nbsd-nat.o): Add missing dependency.
4182 2007-08-10 Maxim Grigoriev <maxim2405@gmail.com>
4184 * remote-fileio.c (remote_fileio_resize_fd_map): Initialize newly
4185 allocated file descriptors.
4187 2007-08-10 Joel Brobecker <brobecker@adacore.com>
4189 * Makefile.in: Minor cleanup throughout; add some missing variables,
4190 add some missing rules, remove some rules that are no longer needed,
4191 and fix the dependencies in several rules.
4193 2007-08-10 Ludovic Courtès <ludo@gnu.org>
4195 * Makefile.in (SFILES): Add scm-{exp,lang,valprint}.c.
4196 (scm_lang_h, scm_tags_h): New.
4197 (COMMON_OBS): Add scm-{exp,lang,valprint}.o.
4198 (scm-exp.o, scm-lang.o, scm-valprint.o): New targets.
4199 * defs.h (enum language): Add `language_scm'.
4201 * MAINTAINERS: Add Emacs local variables to use UTF-8 upon
4204 2007-08-09 Ludovic Courtès <ludo@gnu.org>
4206 * MAINTAINERS (Write After Approval): Add myself.
4208 2007-08-09 Michael Snyder <msnyder@access-company.com>
4210 * solib.c (solib_open): Memory leak -- openp returns xmalloc buffer.
4212 2007-08-09 Joel Brobecker <brobecker@adacore.com>
4214 * solib-som.c (som_relocate_section_addresses): Stop saving
4215 the $CODE$ section in the so_list structure.
4217 2007-08-08 Maxim Grigoriev <maxim2405@gmail.com>
4219 * xtensa-tdep.h (XTENSA_MAX_COPROCESSOR): New.
4220 (xtensa_register_group_t): Add entries for coprocessors.
4221 * xtensa-tdep.c (xtensa_init_reggroups): New register groups.
4222 (xtensa_add_reggroups): Likewise.
4223 (xtensa_register_reggroup_p): Likewise.
4224 (xtensa_coprocessor_register_group): New function.
4227 2007-08-08 Jan Kratochvil <jan.kratochvil@redhat.com>
4229 * serial.c (serial_open): Fix the OPEN parameter macro expansion.
4231 2007-08-08 Michael Snyder <msnyder@access-company.com>
4233 * target.c (target_read_string): Guard against null.
4235 * varobj.c (value_of_root): Move alloc after return to avoid leak.
4237 * tui/tui-layout.c (tui_set_layout): Dead code, dead variable.
4238 (tui_set_layout_for_display_command): Mem leak.
4240 * top.c (command_line_input): Memory leak.
4242 * solib-svr4.c (open_symbol_file_object): Memory leak.
4243 (svr4_current_sos): Ditto.
4244 (enable_break): Ditto.
4246 * cp-valprint.c (cp_print_hpacc_virtual_table_entries): Memory leak.
4248 * dwarf2read.c (add_partial_symbol): Memory leak.
4250 2007-08-06 Michael Snyder <msnyder@access-company.com>
4252 * ada-lang.c (desc_bounds): Comparison of function address to NULL.
4254 2007-08-05 Jim Blandy <jimb@codesourcery.com>
4256 * macroexp.c (init_buffer): Remove testing code that overrides the
4257 caller's length guess.
4258 (gather_arguments): Use a larger initial size, now that the vector
4259 growth code has been exercised.
4261 2007-08-05 Pedro Alves <pedro_alves@portugalmail.pt>
4263 * solib-target.c (solib_target_relocate_section_addresses): Add
4264 orig_delta to addr_high.
4266 2007-08-04 Michael Snyder <msnyder@access-company.com>
4268 * remote-fileio.c (remote_fileio_func_write): Memory leak.
4270 * breakpoint.c (print_one_breakpoint): Off by one error.
4272 * tracepoint.c (add_register): Off by one error.
4273 (stringify_collection_list): Free malloc buffer.
4275 2007-08-03 Michael Snyder <msnyder@access-company.com>
4277 * mi-cmd-var.c (mi_cmd_var_delete): Remove unused variable,
4278 stop memory leak, straighten out cleanups.
4280 * jv-lang.c (java_link_class_type): Guard against NULL.
4282 2007-08-02 Michael Snyder <msnyder@access-company.com>
4284 * gdbtypes.c (create_set_type): Test should only be done within
4285 the preceeding if block. Otherwise, variable is uninitialized.
4287 * gdbtypes.c (check_typedef): Guard NULL.
4289 2007-08-01 Michael Snyder <msnyder@access-company.com>
4291 * cli/cli-decode.c (lookup_cmd): Check for null earlier, to
4292 avoid dereference in lookup_cmd_1.
4294 * tui/tui-data.c (tui_alloc_content): Move assign out of if,
4295 clean up long lines.
4296 (tui_alloc_generic_win_info): Tidy by using XMALLOC macro.
4297 (tui_alloc_win_info): Ditto.
4298 (tui_add_content_elements): Ditto.
4299 * tui/tui-file.c (tui_file_magic): Ditto.
4301 2007-07-31 Michael Snyder <msnyder@access-company.com>
4303 * breakpoint.c (breakpoint_init_inferior): Add 'else' to 'if'.
4304 True and false paths are mutually exclusive.
4306 * event-top.c (command_line_handler): Add pedantic return.
4308 * f-valprint.c (info_common_command): Bail out to prevent null
4309 pointer deref. Break up a long line.
4311 * exec.c (xfer_memory): Remove redundant condition from 'if'.
4313 * symfile.c (reread_separate_symbols): Free xmalloced memory.
4315 * printcmd.c (build_address_symbolic): Remove dead code and dead
4318 2007-07-31 Daniel Jacobowitz <dan@codesourcery.com>
4320 * linespec.c (minsym_found): Advance to the next line if possible.
4322 2007-07-31 Pedro Alves <pedro_alves@portugalmail.pt>
4324 * arm-wince-tdep.c (arm_wince_init_abi): Remove svr4 related call.
4325 * config/arm/wince.mt (TDEPFILES): Remove solib-legacy.o and
4326 solib-svr4.o, and add solib-target.o
4328 2007-07-27 Michael Snyder <msnyder@access-company.com>
4330 * tui/tui-data.c (tui_alloc_generic_win_info): Wrong arg for sizeof.
4332 2007-07-26 Maciej W. Rozycki <macro@linux-mips.org>
4334 * MAINTAINERS (Write After Approval): Add myself.
4336 2007-07-26 Maciej W. Rozycki <macro@mips.com>
4338 * Makefile.in (MAKEHTMLFLAGS): Also search the current directory
4341 2007-07-25 Maciej W. Rozycki <macro@mips.com>
4343 * Makefile.in (MAKEHTMLFLAGS): Remove "-glossary".
4345 2007-07-24 Michael Snyder <msnyder@access-company.com>
4347 * solib-svr4.c (svr4_fetch_objfile_link_map): Null pointer check of
4348 'buffer' must cover both branches that call strcmp (Coverity).
4350 * stack.c (print_frame_args): Check return value of lookup_symbol.
4352 * ax-gdb.c (find_field): Guard against null ptr.
4354 2007-07-24 Ulrich Weigand <uweigand@de.ibm.com>
4356 * regformats/reg-spu.dat: Fix order of npc, id registers.
4358 2007-07-24 Ulrich Weigand <uweigand@de.ibm.com>
4360 * target.c (memory_xfer_partial): Accesses to unmapped overlay
4361 sections should always go to the executable file.
4363 2004-07-20 Chris Dearman <chris@mips.com>
4365 * mips-tdep.c (heuristic_proc_start): Add more MIPS16 function
4366 prologue instructions.
4368 2007-07-20 Maciej W. Rozycki <macro@mips.com>
4370 * mips-tdep.c (mips_next_pc): Use is_mips16_addr() instead of
4373 2007-07-20 Chris Dearman <chris@mips.com>
4374 Maciej W. Rozycki <macro@mips.com>
4376 * mips-tdep.c (fetch_mips_16): Fix typos and reformat the
4379 2007-07-17 Pedro Alves <pedro_alves@portugalmail.pt>
4380 Daniel Jacobowitz <dan@codesourcery.com>
4382 * config/i386/cygwin.mt (TDEPFILES): Add solib-target.o.
4383 * coff-pe-read.c (read_pe_exported_syms): Delete verbose
4385 * NEWS: Mention gdbserver DLL support.
4387 2007-07-17 Daniel Jacobowitz <dan@codesourcery.com>
4389 * dwarf2read.c (dwarf_decode_lines): Detect address size mismatches.
4391 2007-07-16 H.J. Lu <hongjiu.lu@intel.com>
4393 * i386-linux-nat.c (fetch_regs): Work around gcc 3.4 alias
4396 2007-07-13 Kevin Buettner <kevinb@redhat.com>
4398 * mep-tdep.c (mep_analyze_prologue): Update comment for BRA
4401 2007-07-12 Kevin Buettner <kevinb@redhat.com>
4403 * mep-tdep.c (IS_BRA, BRA_DISP): New macros.
4404 (mep_analyze_prologue): Add case for BRA instruction.
4406 2007-07-12 Ulrich Weigand <uweigand@de.ibm.com>
4408 * solib-svr4.c (LM_ADDR_CHECK): Relax prelink recognition heuristic.
4410 2007-07-10 Nick Roberts <nickrob@snap.net.nz>
4412 * breakpoint.c: Include "top.h".
4413 (breakpoint_1): Don't set convenience variable $_ if server prefix
4415 (_initialize_breakpoint): Describe this behaviour in command help.
4417 2007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
4419 * solib-target.c (library_list_start_segment): Cast address to
4422 2007-07-06 Mark Kettenis <kettenis@gnu.org>
4424 * bsd-uthread.c (bsd_uthread_wait): Don't try to fetch thread IDs
4425 for terminated processes.
4427 2007-07-05 Michael Snyder <msnyder@access-company.com>
4429 * event-top.c (cli_command_loop): Prompt string can (and should)
4430 be freed after call to readline (Coverity). Also move local var
4431 declarations into block where they are used.
4433 * tui/tui-interp.c (tui_command_loop): Prompt string can (and
4434 should) be freed after call to readline (Coverity). Also move
4435 local var declarations into block where they are used.
4437 2007-07-03 Andreas Schwab <schwab@suse.de>
4439 * linux-nat.c (linux_nat_info_proc_cmd): Fix parsing of columns in
4442 2007-07-03 Paul Gilliam <pgilliam@us.ibm.com>
4443 Thiago Bauermann <bauerman@br.ibm.com>
4444 Joseph S. Myers <joseph@codesourcery.com>
4445 Daniel Jacobowitz <dan@codesourcery.com>
4447 * remote.c (remote_check_symbols): Use
4448 gdbarch_convert_from_func_ptr_addr.
4449 * infcall.c (find_function_addr): Handle function descriptors
4450 without debugging information.
4451 * ppc-linux-tdep.c (ppc_linux_convert_from_func_ptr_addr): Renamed
4452 from ppc64_linux_convert_from_func_ptr_addr. Handle -msecure-plt.
4453 (ppc_linux_init_abi): Always set convert_from_func_ptr_addr.
4454 * solib-svr4.c (solib_break_names): Remove "._dl_debug_state".
4455 (bfd_lookup_symbol): Do not take a SECT_FLAGS argument. Always
4456 allow SEC_CODE and SEC_DATA.
4457 (enable_break): Update calls. Pass current_target to solib_add.
4458 Use gdbarch_convert_from_func_ptr_addr.
4460 2007-07-03 Ilko Iliev <iliev@ronetix.at>
4461 Daniel Jacobowitz <dan@codesourcery.com>
4463 * symfile.c (print_transfer_performance): Avoid integer overflow.
4466 2007-07-03 Markus Deuling <deuling@de.ibm.com>
4468 * cp-namespace.c (lookup_symbol_file): Add block to
4469 lookup_symbol_global call.
4470 * Makefile.in (solist_h): Add dependency on symtab header.
4471 (symtab.o): Add dependency on solist header.
4472 * solib.c (solib_global_lookup): New function.
4473 * solib-svr4.c (scan_dyntag): Likewise.
4474 (elf_locate_base): Call helper routine scan_dyntag.
4475 (elf_lookup_lib_symbol): New function.
4476 (_initialize_svr4_solib): Add elf_lookup_lib_symbol to svr4_so_ops.
4477 * solist.h (symtab.h): New include.
4478 (struct target_so_ops): New member lookup_lib_global_symbol.
4479 (solib_global_lookup): New prototype.
4480 * symtab.c: New include solist.h.
4481 (lookup_objfile_from_block): New function.
4482 (lookup_global_symbol_from_objfile): New function.
4483 (basic_lookup_symbol_nonlocal): Add block to lookup_symbol_global call.
4484 (lookup_symbol_global): Call library-specific lookup procedure.
4485 * symtab.h (lookup_global_symbol_from_objfile): New prototype.
4487 * NEWS: Document framework.
4489 2007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
4491 * target-descriptions.c (tdesc_create_reg): Do not set reg->type
4494 * cli/cli-script.c (build_command_line): Update NULL check.
4496 2007-07-02 Michael Snyder <msnyder@access-company.com>
4498 * p-exp.y (yylex): Memory leak, 'uptokstart' must be freed (Coverity).
4500 2007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
4502 * Makefile.in (XMLFILES): Add library-list.dtd.
4503 (ALLDEPFILES): Add solib-target.o.
4504 (solib-target.o): New rule.
4505 * remote.c (PACKET_qXfer_libraries): New constant.
4506 (remote_protocol_features): Add qXfer:libraries:read.
4507 (remote_wait): Recognize library stop replies.
4508 (remote_async_wait): Likewise. Fix typo.
4509 (remote_xfer_partial): Handle TARGET_OBJECT_LIBRARIES.
4510 (init_remote_async_ops): Fix typo.
4511 (_initialize_remote): Register "set remote library-info-packet".
4512 * solib-som.c (som_current_sos): Set addr_low and addr_high.
4513 * solib-target.c: New file.
4514 * solib.c (solib_map_sections): Use addr_low and addr_high instead
4516 (info_sharedlibrary_command): Likewise.
4517 (solib_add_library, solib_remove_library): New.
4518 * solist.h (struct so_list): Replace textsection with addr_low and
4520 * target.h (enum target_object): Add TARGET_OBJECT_LIBRARIES.
4521 * NEWS: Describe new qXfer:libraries:read and shared library
4523 * features/library-list.dtd: New.
4525 2007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
4527 * infrun.c (inferior_ignoring_startup_exec_events): Delete.
4528 (start_remote): Use STOP_QUIETLY_REMOTE.
4529 (handle_inferior_event): Do not condition TARGET_WAITKIND_LOADED
4530 support on a SOLIB_ADD definition. Update breakpoints_inserted.
4531 Update to match shared library event breakpoint support. Only
4532 resume if appropriate. Handle STOP_QUIETLY_REMOTE.
4533 (normal_stop): Handle TARGET_WAITKIND_LOADED.
4534 * fork-child.c (startup_inferior): Do not set
4535 inferior_ignoring_startup_exec_events
4536 * inferior.h (inferior_ignoring_startup_exec_events): Delete
4538 (enum stop_kind): Improve documentation. Add STOP_QUIETLY_REMOTE.
4540 2007-07-02 Markus Deuling <deuling@de.ibm.com>
4542 * breakpoint.c (insert_bp_location): Remove dead code
4543 (DISABLE_UNSETTABLE_BREAK).
4544 (disable_breakpoints_in_shlibs)
4545 (disable_breakpoints_in_unloaded_shlib): Likewise (comment).
4547 2007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
4549 * breakpoint.c (reattach_breakpoints): Do not use remove_breakpoint.
4550 Call insert_bp_location.
4552 2007-07-01 H.J. Lu <hongjiu.lu@intel.com>
4554 * core-regset.c (fetch_core_registers): Work around gcc 3.4
4557 2007-07-01 Daniel Jacobowitz <dan@codesourcery.com>
4559 * minsyms.c (lookup_minimal_symbol_by_pc_section): Search fewer
4562 2007-07-01 Daniel Jacobowitz <dan@codesourcery.com>
4564 * top.c (gdb_readline_wrapper_line): Call rl_callback_handler_remove.
4565 (struct gdb_readline_wrapper_cleanup): Remove prompt_orig.
4566 (gdb_readline_wrapper_cleanup): Do not reset the prompt.
4567 (gdb_readline_wrapper): Do not save the prompt. Pass our prompt
4568 to display_gdb_prompt.
4570 2007-07-01 Daniel Jacobowitz <dan@codesourcery.com>
4573 * target.c (memory_xfer_partial): Do not continue past targets with
4576 2007-06-30 Andreas Schwab <schwab@suse.de>
4578 * m68k-tdep.c (m68k_ps_type): New.
4579 (m68k_init_types): New.
4580 (m68k_register_type): Use m68k_ps_type for PS register.
4581 (_initialize_m68k_tdep): Call m68k_init_types.
4583 * m68k-tdep.c (m68k_gdbarch_init): Don't infer coldfire flavour
4584 from the generic m68k arch.
4586 2007-06-28 Michael Snyder <msnyder@access-company.com>
4588 * m2-typeprint.c (m2_print_type): Move pointer ref after null test
4591 * linux-thread-db.c (thread_db_get_thread_local_address): Add
4592 gdb_assert before using return value of find_thread_pid (Coverity).
4594 * source.c (unset_substitute_path_command): Plug leak (Coverity).
4596 * cli/cli-script.c (build_command_line): Add null pointer guard
4599 2007-06-27 Daniel Jacobowitz <dan@codesourcery.com>
4601 * linux-thread-db.c (thread_db_attach): Delete.
4602 (thread_db_detach): Typo fix. Call target_mourn_inferior
4603 instead of fixing up proc_handle.
4604 (have_threads_callback, have_threads): New functions.
4605 (thread_db_wait): Remove dead proc_handle.pid check. Only
4606 translate PTIDs if we have registered threads. Check for new
4607 threads if we have none.
4608 (thread_db_create_inferior, thread_db_post_startup_inferior): Delete.
4609 (find_new_threads_callback): Only enable event reporting if TID == 0.
4610 (same_ptid_callback): New.
4611 (thread_db_get_thread_local_address): Check for new threads.
4612 (init_thread_db_ops): Don't set to_attach, to_create_inferior,
4613 or to_post_startup_inferior.
4615 2007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
4617 * infrun.c (adjust_pc_after_break): Do not assume software single-step
4618 is always active if SOFTWARE_SINGLE_STEP_P is true.
4619 (resume): Use gdbarch_software_single_step[_p] instead of
4620 SOFTWARE_SINGLE_STEP[_P].
4621 (handle_inferior_event): Do not check for SOFTWARE_SINGLE_STEP_P.
4623 * gdbarch.sh (software_single_step): Remove target macro.
4624 * gdbarch.h, gdbarch.c: Regenerate.
4626 2007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
4628 * gdbarch.sh (gdbarch_swap_ftype, deprecated_register_gdbarch_swap,
4629 DEPRECATED_REGISTER_GDBARCH_SWAP): Remove.
4630 (struct gdbarch_swap, struct gdbarch_swap_registration,
4631 struct gdbarch_swap_registry, gdbarch_swap_registry,
4632 current_gdbarch_swap_init_hack, current_gdbarch_swap_out_hack,
4633 current_gdbarch_swap_in_hack): Remove.
4634 (find_arch_by_info): Do not call current_gdbarch_swap_init_hack.
4635 (gdbarch_find_by_info): Do not call current_gdbarch_swap_in_hack
4636 and current_gdbarch_swap_out_hack, update current_gdbarch directly.
4637 (deprecated_current_gdbarch_select_hack): Likewise.
4638 * gdbarch.h, gdbarch.c: Regenerate.
4640 2007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
4642 * infrun.c (clear_proceed_status): Clean up stop_registers.
4643 (normal_stop): Allocate regcache for stop_registers.
4644 (struct inferior_status): Remove stop_registers member.
4645 (save_inferior_status): Do not save stop_registers.
4646 (restore_inferior_status): Do not restore stop_registers.
4647 (discard_inferior_status): Do not discard stop_registers.
4648 (build_infrun): Remove.
4649 (_initialize_infrun): Do not swap stop_registers.
4651 2007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
4653 * remote.c (remote_address_masked): If remote_address_size is zero,
4654 default to target address size.
4655 (build_remote_gdbarch_data): Remove.
4656 (_initialize_remote): Do not swap remote_address_size.
4658 2007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
4660 * gdbtypes.h (builtin_type_true_char, builtin_type_void,
4661 builtin_type_char, builtin_type_short, builtin_type_int,
4662 builtin_type_long, builtin_type_signed_char,
4663 builtin_type_unsigned_char, builtin_type_unsigned_short,
4664 builtin_type_unsigned_int, builtin_type_unsigned_long,
4665 builtin_type_float, builtin_type_double, builtin_type_long_double,
4666 builtin_type_complex, builtin_type_double_complex, builtin_type_string,
4667 builtin_type_bool, builtin_type_long_long,
4668 builtin_type_unsigned_long_long, builtin_type_void_data_ptr,
4669 builtin_type_void_func_ptr, builtin_type_CORE_ADDR): Replace global
4670 variable declaration with compatibility macro.
4671 * gdbtypes.c (builtin_type_true_char, builtin_type_void,
4672 builtin_type_char, builtin_type_short, builtin_type_int,
4673 builtin_type_long, builtin_type_signed_char,
4674 builtin_type_unsigned_char, builtin_type_unsigned_short,
4675 builtin_type_unsigned_int, builtin_type_unsigned_long,
4676 builtin_type_float, builtin_type_double, builtin_type_long_double,
4677 builtin_type_complex, builtin_type_double_complex, builtin_type_string,
4678 builtin_type_bool, builtin_type_long_long,
4679 builtin_type_unsigned_long_long, builtin_type_void_data_ptr,
4680 builtin_type_void_func_ptr, builtin_type_CORE_ADDR): Remove.
4681 (build_gdbtypes): Remove.
4682 (_initialize_gdbtypes): Do not call build_gdbtypes, move installing
4683 opaque-type-resolution command here. Do not call
4684 deprecated_register_gdbarch_swap.
4686 2007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
4688 * gdbtypes.h (struct builtin_type): New members nodebug_text_symbol,
4689 nodebug_data_symbol, nodebug_unknown_symbol, and nodebug_tls_symbol.
4690 * gdbtypes.c (gdbtypes_post_init): Initialize nodebug_ default types.
4692 * parse.c (msym_text_symbol_type, msym_data_symbol_type): Remove.
4693 (msym_unknown_symbol_type, msym_tls_symbol_type): Remove.
4694 (write_exp_msymbol): Use builtin nodebug_ types instead of them.
4695 (build_parse): Remove.
4696 (_initialize_parse): Do not call build_parse. Do not register
4697 msym_ types for gdbarch-swapping.
4699 * dwarf2read.c (new_symbol): Use default nodebug_data_symbol type
4700 instead of creating private type.
4702 * xcoffread.c (func_symbol_type, var_symbol_type): Remove.
4703 (_initialize_xcoffread): Do not initialized them.
4704 (process_xcoff_symbol): Use builtin nodebug_ types instead of them.
4706 * mdebugread.c (nodebug_func_symbol_type): Remove.
4707 (nodebug_var_symbol_type): Remove.
4708 (_initialize_mdebugread): Do not initialize them.
4709 (parse_symbol): Use builtin nodebug_ type instead of them.
4710 (parse_procedure): Likewise.
4712 2007-06-21 Chris Dearman <chris@mips.com>
4714 * printcmd.c (do_one_display): If display/i, start with an initial
4715 line feed to avoid bad layout if there is a branch delay slot.
4717 2007-06-21 Nigel Stephens <nigel@mips.com>
4718 Maciej W. Rozycki <macro@mips.com>
4720 * disasm.c (gdb_print_insn): Return the number of branch delay
4721 slot instructions too.
4722 * disasm.h (gdb_print_insn): Update prototype.
4723 * printcmd.c (branch_delay_insns): New variable to record the
4724 number of delay slot instructions after disassembling a branch.
4725 (print_formatted): Record the number of branch delay slot
4727 (do_examine): When disassembling, if the last instruction
4728 disassembled has any branch delay slots, then bump the count so
4729 that they get disassembled too.
4730 * tui/tui-disasm.c (tui_disassemble): Update the call to
4732 * NEWS: Document the new behaviour.
4734 2007-06-21 Andreas Schwab <schwab@suse.de>
4736 * regcache.c (write_pc_pid): Restore missing else.
4738 2007-06-20 Ulrich Weigand <uweigand@de.ibm.com>
4740 * regcache.c (regcache_print): Use get_current_regcache ()
4741 instead of current_regcache.
4743 2007-06-20 H.J. Lu <hongjiu.lu@intel.com>
4746 * gcore.c (gcore_command): Use bfd_make_section_anyway_with_flags
4747 instead of bfd_make_section_anyway.
4748 (gcore_create_callback): Likewise. Also set SEC_NEVER_LOAD
4749 when clearing SEC_LOAD.
4751 2007-06-19 Joseph Myers <joseph@codesourcery.com>
4753 * arm-tdep.c (arm_push_dummy_call): Correct padding of partial
4754 registers for big-endian.
4756 2007-06-19 Markus Deuling <deuling@de.ibm.com>
4758 * gdbarch.sh (TARGET_PRINT_INSN): Replace by gdbarch_print_insn.
4759 * disasm.c (dump_insns, gdb_print_insn): Likewise.
4760 * gdbarch.c, gdbarch.h: Regenerate.
4762 2007-06-19 Markus Deuling <deuling@de.ibm.com>
4764 * gdbarch.sh (BELIEVE_PCC_PROMOTION): Replace by
4765 gdbarch_believe_pcc_promotion.
4766 * stabsread.c (define_symbol): Likewise.
4767 Remove unnecessary definition.
4768 * coffread.c (process_coff_symbol): Remove unnecessary code.
4769 * gdbarch.c, gdbarch.h: Regenerate.
4771 2007-06-19 Daniel Jacobowitz <dan@codesourcery.com>
4773 * configure.ac: Do not use ${objdir}.
4774 * configure: Regenerated.
4776 2007-06-18 Ulrich Weigand <uweigand@de.ibm.com>
4778 * gdbarch.sh (deprecated_register_size): Remove.
4779 * gdbarch.h, gdbarch.c: Regenerate.
4781 * arm-tdep.c (arm_push_dummy_call): Replace DEPRECATED_REGISTER_SIZE
4782 by INT_REGISTER_SIZE.
4783 (thumb_get_next_pc, arm_return_in_memory): Likewise.
4784 (arm_gdbarch_init): Do not call set_gdbarch_deprecated_register_size.
4785 * ia64-tdep.c (ia64_gdbarch_init): Do not call
4786 set_gdbarch_deprecated_register_size.
4788 2007-06-18 Markus Deuling <deuling@de.ibm.com>
4790 * gdbarch.sh (DEPRECATED_FP_REGNUM): Replace by
4791 gdbarch_deprecated_fp_regnum.
4792 * std-regs.c (value_of_builtin_frame_fp_reg): Likewise.
4793 * remote-mips.c (mips_wait, mips_fetch_registers): Likewise.
4794 * arch-utils.c (legacy_virtual_frame_pointer): Likewise.
4795 * arch-utils.h (gdbarch_virtual_frame_pointer_ftype): Likewise
4797 * gdbarch.c, gdbarch.h: Regenerate.
4799 2007-06-18 Markus Deuling <deuling@de.ibm.com>
4801 * gdbarch.sh (EXTRACT_RETURN_VALUE): Replace with
4802 gdbarch_extract_return_value.
4803 * value.c (generic_use_struct_convention): Likewise (comment).
4804 * ia64-tdep.c (ia64_use_struct_convention): Likewise (comment).
4805 * arch-utils.c (legacy_return_value): Likewise.
4806 * arch-utils.h (legacy_return_value): Likewise (comment).
4807 * gdbarch.sh (STORE_RETURN_VALUE): Replace by
4808 gdbarch_store_return_value.
4809 * stack.c (return_command): Likewise (comment).
4810 * arch-utils.h (legacy_return_value): Likewise (comment).
4811 * arch-utils.c (legacy_return_value): Likewise.
4812 * gdbarch.c, gdbarch.h: Regenerate.
4814 2007-06-18 Markus Deuling <deuling@de.ibm.com>
4816 * gdbarch.sh (DEPRECATED_USE_STRUCT_CONVENTION): Replace by
4817 gdbarch_deprecated_use_struct_convention.
4818 * arch-utils.c (legacy_return_value): Likewise.
4819 * gdbarch.c, gdbarch.h: Regenerate.
4821 2007-06-18 Markus Deuling <deuling@de.ibm.com>
4823 * gdbarch.sh (DEPRECATED_FUNCTION_START_OFFSET): Replace by
4824 gdbarch_deprecated_function_start_offset.
4825 * symtab.c (find_function_start_sal)skip_prologue_using_sal): Likewise.
4826 * linespec.c (minsym_found): Likewise.
4827 * infrun.c (handle_inferior_event): Likewise.
4828 * infcall.c (find_function_addr): Likewise.
4829 * cli/cli-cmds.c (disassemble_command): Likewise.
4830 * gdbarch.c, gdbarch.h: Regenerate.
4832 2007-06-18 Markus Deuling <deuling@de.ibm.com>
4834 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Replace by
4835 gdbarch_deprecated_reg_struct_has_addr.
4836 * infcall.c (call_function_by_hand): Likewise.
4837 (DEPRECATED_REG_STRUCT_HAS_ADDR_P): Replace by
4838 * gdbarch_deprecated_reg_struct_has_addr_p.
4839 * infcall.c (call_function_by_hand): Likewise.
4840 * gdbarch.c, gdbarch.h: Regenerate.
4842 2007-06-18 Markus Deuling <deuling@de.ibm.com>
4844 * gdbarch.sh (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
4845 * sh-tdep.c (sh_extract_struct_value_address): Remove.
4846 (sh_gdbarch_init): Remove
4847 set_gdbarch_deprecated_extract_struct_value_address.
4848 * sh64-tdep.c (sh64_extract_struct_value_address): Remove.
4849 (sh64_gdbarch_init): Remove
4850 set_gdbarch_deprecated_extract_struct_value_address.
4851 * ia64-tdep.c (ia64_extract_struct_value_address): Remove.
4852 (ia64_gdbarch_init): Remove
4853 set_gdbarch_deprecated_extract_struct_value_address.
4854 * frv-tdep.c (frv_extract_struct_value_address): Remove.
4855 (frv_gdbarch_init): Remove
4856 set_gdbarch_deprecated_extract_struct_value_address.
4857 * gdbarch.c, gdbarch.h: Regenerate.
4859 2007-06-18 Markus Deuling <deuling@de.ibm.com>
4861 * gdbarch.sh (SP_REGNUM): Replace by gdbarch_sp_regnum.
4862 * v850-tdep.c (v850_unwind_sp): Likewise.
4863 * std-regs.c (value_of_builtin_frame_sp_reg): Likewise.
4864 * stack.c (frame_info): Likewise.
4865 * stabsread.c (define_symbol): Likewise.
4866 * sh-tdep.c (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu)
4867 (sh_dwarf2_frame_init_reg, sh_frame_cache, sh_frame_prev_register)
4868 (sh_unwind_sp): Likewise.
4869 * sh64-tdep.c (sh64_push_dummy_call, sh64_frame_cache)
4870 (sh64_frame_prev_register, sh64_unwind_sp): Likewise.
4871 * rs6000-tdep.c (rs6000_push_dummy_call, rs6000_unwind_dummy_id)
4872 (rs6000_frame_cache): Likewise.
4873 * rs6000-nat.c (store_register): Likewise.
4874 * remote-mips.c (mips_wait): Likewise.
4875 * procfs.c (procfs_fetch_registers, procfs_store_registers): Likewise.
4876 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call)
4877 (ppc64_sysv_abi_push_dummy_call): Likewise.
4878 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_cache): Likewise.
4879 * ppcobsd-nat.c (ppcobsd_supply_pcb): Likewise.
4880 * ppcnbsd-tdep.c (ppcnbsd_sigtramp_cache_init): Likewise.
4881 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache): Likewise.
4882 * m32r-rom.c (m32r_supply_register): Likewise.
4883 * frame.c (frame_sp_unwind): Likewise.
4884 * mips-tdep.c (mips_insn16_frame_cache)
4885 (mips_insn32_frame_cache): Likewise (comment).
4886 * m68klinux-nat.c (supply_gregset): Likewise.
4887 * m68k-tdep.c (m68k_get_longjmp_target): Likewise.
4888 * ia64-tdep.c (ia64_frame_prev_register): Likewise.
4889 * i386-tdep.c (i386_get_longjmp_target): Likewise.
4890 * dwarf2-frame.c (dwarf2_frame_default_init_reg): Likewise.
4891 * cris-tdep.c (cris_regnums, cris_sigcontext_addr)
4892 (cris_sigtramp_frame_unwind_cache, cris_push_dummy_call)
4893 (cris_scan_prologue, crisv32_scan_prologue, cris_unwind_sp)
4894 (cris_register_type, crisv32_register_type)
4895 (cris_dwarf2_frame_init_reg): Likewise.
4896 * arch-utils.c (legacy_virtual_frame_pointer): Likewise.
4897 * amd64-tdep.c (amd64_frame_prev_register): Likewise.
4898 * amd64-linux-tdep.c (amd64_linux_sigcontext_addr): Likewise.
4899 * libunwind-frame.c (libunwind_frame_cache): Likewise.
4901 * gdbarch.sh (PC_REGNUM): Replace by gdbarch_pc_regnum.
4902 * regcache.c (read_pc_pid, generic_target_write_pc): Likewise.
4903 * xtensa-tdep.c (xtensa_register_type, xtensa_supply_gregset)
4904 (xtensa_unwind_pc, xtensa_frame_cache, xtensa_frame_prev_register)
4905 (xtensa_extract_return_value, xtensa_store_return_value): Likewise.
4906 * v850-tdep.c (v850_unwind_pc): Likewise.
4907 * stack.c (frame_info): Likewise.
4908 * sh-tdep.c (sh_generic_show_regs, sh3_show_regs, sh2e_show_regs)
4909 (sh2a_show_regs, sh2a_nofpu_show_regs, sh3e_show_regs)
4910 (sh3_dsp_show_regs, sh4_show_regs, sh4_nofpu_show_regs)
4911 (sh_dwarf2_frame_init_reg, sh_frame_prev_register, sh_unwind_pc)
4912 (sh_dsp_show_regs): Likewise.
4913 * shnbsd-tdep.c (shnbsd_supply_gregset)
4914 (shnbsd_collect_gregset): Likewise.
4915 * shnbsd-nat.c (GETREGS_SUPPLIES): Likewise.
4916 * sh64-tdep.c (sh64_compact_reg_base_num, sh64_show_media_regs)
4917 (sh64_frame_prev_register, sh64_unwind_pc): Likewise.
4918 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset)
4919 (6000_register_reggroup_p, rs6000_unwind_pc)
4920 (rs6000_frame_cache): Likewise.
4921 * rs6000-nat.c (regmap, rs6000_fetch_inferior_registers)
4922 (rs6000_store_inferior_registers): Likewise.
4923 * remote-mips.c (mips_wait, mips_load): Likewise.
4924 * procfs.c (procfs_fetch_registers, procfs_store_registers): Likewise.
4925 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_cache): Likewise.
4926 * ppcobsd-nat.c (ppcobsd_supply_pcb): Likewise.
4927 * ppcnbsd-tdep.c (ppcnbsd_sigtramp_cache_init): Likewise.
4928 * ppcnbsd-nat.c (getregs_supplies, ppcnbsd_supply_pcb): Likewise.
4929 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache): Likewise.
4930 * ppc-linux-nat.c (ppc_register_u_addr, fetch_ppc_registers)
4931 (store_ppc_registers, fill_gregset): Likewise.
4932 * mips-tdep.c (mips_stub_frame_cache, mips_gdbarch_init): Likewise.
4933 * mipsnbsd-tdep.c (mipsnbsd_supply_reg, mipsnbsd_fill_reg): Likewise.
4934 * mipsnbsd-nat.c (getregs_supplies): Likewise.
4935 * m68k-tdep.c (m68k_register_type, m68k_unwind_pc): Likewise.
4936 * m68klinux-nat.c (supply_gregset): Likewise.
4937 * irix5-nat.c (fill_gregset): Likewise.
4938 * i386-tdep.c (i386_unwind_pc): Likewise.
4939 * i386-linux-nat.c (i386_linux_resume): Likewise.
4940 * frame.c (get_prev_frame_1): Likewise.
4941 * dwarf2-frame.c (dwarf2_frame_default_init_reg): Likewise.
4942 * dbug-rom.c (dbug_supply_register): Likewise.
4943 * cris-tdep.c (cris_sigtramp_frame_unwind_cache, cris_scan_prologue)
4944 (crisv32_scan_prologue, cris_unwind_pc, cris_register_size)
4945 (cris_register_type, crisv32_register_type, crisv32_register_name)
4946 (cris_dwarf2_frame_init_reg, find_step_target)
4947 (cris_software_single_step, cris_supply_gregset)
4948 (cris_regnums): Likewise.
4949 * alpha-linux-nat.c (alpha_linux_register_u_offset): Likewise.
4950 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
4951 (fill_sprs64, fill_sprs32, store_regs_user_thread): Likewise.
4952 * std-regs.c (value_of_builtin_frame_pc_reg): Likewise.
4953 * mips-linux-tdep.c (mips_linux_write_pc): Likewise.
4955 * gdbarch.sh (PS_REGNUM): Replace by gdbarch_ps_regnum.
4956 * dbug-rom.c (dbug_supply_register): Likewise.
4957 * xtensa-tdep.c (xtensa_supply_gregset, xtensa_frame_cache)
4958 (xtensa_frame_prev_register, xtensa_push_dummy_call): Likewise.
4959 * win32-nat.c (win32_resume): Likewise.
4960 * std-regs.c (value_of_builtin_frame_ps_reg): Likewise.
4961 * m68k-tdep.c (m68k_register_type): Likewise.
4962 * m68klinux-nat.c (supply_gregset): Likewise.
4964 * gdbarch.sh (FP0_REGNUM): Replace by gdbarch_fp0_regnum.
4965 * sh-tdep.c (sh_extract_return_value_fpu, sh_store_return_value_fpu)
4966 (sh2e_show_regs, sh2a_show_regs, sh3e_show_regs, sh4_show_regs)
4967 (sh_sh2a_register_type, sh_sh3e_register_type, sh_sh4_register_type)
4968 (fv_reg_base_num, dr_reg_base_num): Likewise.
4969 * sh64-tdep.c (sh64_fv_reg_base_num, sh64_dr_reg_base_num)
4970 (sh64_fpp_reg_base_num, sh64_compact_reg_base_num, sh64_push_dummy_call)
4971 (sh64_extract_return_value, sh64_store_return_value)
4972 (sh64_show_media_regs, sh64_show_compact_regs, sh64_register_type)
4973 (sh64_do_fp_register, sh64_media_print_registers_info): Likewise.
4974 * procfs.c (procfs_fetch_registers, procfs_store_registers)
4975 (invalidate_cache): Likewise.
4976 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache): Likewise.
4977 * mipsnbsd-tdep.c (mipsnbsd_supply_fpreg)
4978 (mipsnbsd_fill_fpreg): Likewise.
4979 * mipsnbsd-nat.c (mipsnbsd_fetch_inferior_registers)
4980 (mipsnbsd_store_inferior_registers): Likewise.
4981 * mips-linux-tdep.c (mips_supply_fpregset, mips_fill_fpregset)
4982 (mips64_supply_fpregset, mips64_fill_fpregset): Likewise.
4983 * mips-linux-nat.c (mips64_linux_register_addr): Likewise.
4984 * m68k-tdep.c (m68k_register_type, m68k_convert_register_p): Likewise.
4985 * m68klinux-nat.c (getfpregs_supplies, supply_fpregset)
4986 (fill_fpregset): Likewise.
4987 * irix5-nat.c (supply_fpregset, fill_fpregset): Likewise.
4988 * i386-tdep.h (struct_return): Likewise (comment).
4989 * i386-nto-tdep.c (i386nto_register_area): Likewise.
4990 * go32-nat.c (fetch_register, go32_fetch_registers, store_register)
4991 (go32_store_registers): Likewise.
4992 * alpha-tdep.c (alpha_next_pc): Likewise.
4993 * alpha-linux-nat.c (alpha_linux_register_u_offset): Likewise.
4994 * alphabsd-nat.c (alphabsd_fetch_inferior_registers)
4995 (alphabsd_store_inferior_registers): Likewise.
4996 * core-regset.c (fetch_core_registers): Likewise.
4997 * i386v4-nat.c (supply_fpregset, fill_fpregset): Likewise.
4999 * gdbarch.c, gdbarch.h: Regenerate.
5001 2007-06-18 Daniel Jacobowitz <dan@codesourcery.com>
5003 * coffread.c (coff_sym_fns): Add default_symfile_segments.
5004 * dbxread.c (start_psymtab): Check HAVE_ELF.
5005 (aout_sym_fns): Likewise.
5006 * elfread.c (elf_symfile_segments): New.
5007 (elf_sym_fns): Add elf_symfile_segments.
5008 * mipsread.c (ecoff_sym_fns): Add default_symfile_segments.
5009 * remote.c (get_offsets): Use symfile_map_offsets_to_segments.
5010 Skip if there is no symfile_objfile. Handle TextSeg and DataSeg.
5011 * somread.c (som_sym_fns): Use default_symfile_segments.
5012 * symfile.c (find_sym_fns): Take a BFD and return the sym_fns.
5013 (init_objfile_sect_indices): Call symfile_find_segment_sections.
5014 (default_symfile_segments): New function.
5015 (syms_from_objfile): Update call to find_sym_fns.
5016 (symfile_get_segment_data, free_symfile_segment_data): New.
5017 (symfile_map_offsets_to_segments): New.
5018 (symfile_find_segment_sections): New.
5019 * symfile.h (struct symfile_segment_data): New.
5020 (struct sym_fns): Add sym_segments.
5021 (default_symfile_segments, symfile_get_segment_data)
5022 (free_symfile_segment_data): New prototypes.
5023 (symfile_map_offsets_to_segments): Likewise.
5024 * xcoffread.c (xcoff_sym_fns): Add default_symfile_segments.
5025 * Makefile.in (COMMON_OBS): Remove elfread.o.
5026 (elf_internal_h): New.
5027 (elfread.o): Update.
5028 * configure.ac: Add elfread.o to COMMON_OBS if bfd/elf.o was
5030 * config.in, configure: Regenerated.
5031 * NEWS: Mention qOffsets changes.
5033 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
5035 * gdbtypes.h (builtin_type_m2_char, builtin_type_m2_int,
5036 builtin_type_m2_card, builtin_type_m2_real, builtin_type_m2_bool):
5037 Replace global variable declaration with compatibility macro.
5038 (struct builtin_m2_type): New data type.
5039 (builtin_m2_type): Add prototype.
5040 * m2-lang.c (builtin_type_m2_char, builtin_type_m2_int,
5041 builtin_type_m2_card, builtin_type_m2_real, builtin_type_m2_bool):
5042 Remove global variables.
5043 (m2_language_arch_info): Use builtin_m2_type instead of variables.
5044 (build_m2_types): New function.
5045 (m2_type_data): New variable.
5046 (builtin_m2_type): New function.
5047 (_initialize_m2_language): Do not build data types. Register
5048 m2_type_data per-gdbarch data.
5050 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
5052 * gdbtypes.h (builtin_type_f_character, builtin_type_f_logical,
5053 builtin_type_f_logical_s1, builtin_type_f_logical_s2,
5054 builtin_type_f_integer, builtin_type_f_integer_s2, builtin_type_f_real,
5055 builtin_type_f_real_s8, builtin_type_f_real_s16,
5056 builtin_type_f_complex_s8, builtin_type_f_complex_s16,
5057 builtin_type_f_complex_s32, builtin_type_f_void): Replace global
5058 variable declaration with compatibility macro.
5059 (struct builtin_f_type): New data type.
5060 (builtin_f_type): Add prototype.
5061 * f-lang.c (builtin_type_f_character, builtin_type_f_logical,
5062 builtin_type_f_logical_s1, builtin_type_f_logical_s2,
5063 builtin_type_f_integer, builtin_type_f_integer_s2, builtin_type_f_real,
5064 builtin_type_f_real_s8, builtin_type_f_real_s16,
5065 builtin_type_f_complex_s8, builtin_type_f_complex_s16,
5066 builtin_type_f_complex_s32, builtin_type_f_void): Remove variables.
5067 (f_language_arch_info): Use builtin_f_type instead of variables.
5068 (build_fortran_types): Build builtin_f_type structure instead of
5069 setting global type variables.
5070 (f_type_data): New variable.
5071 (builtin_f_type): New function.
5072 (_initialize_f_language): Do not call build_fortran_types. Do not
5073 swap global type variables. Register f_type_data per-gdbarch data.
5075 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
5077 * f-lang.c (_initialize_f_language): Do not initialize or
5078 swap builtin_type_string.
5080 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
5082 * std-regs.c (builtin_type_frame_reg, build_builtin_type_frame_reg,
5083 value_of_builtin_frame_reg): Remove.
5084 (_initialize_frame_reg): Do not swap builtin_type_frame_reg. Remove
5085 inactive call to value_of_builtin_frame_reg.
5087 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
5089 * gdbarch.sh (bfd_vma_bit): Remove.
5090 * gdbarch.c, gdbarch.h: Regenerate.
5092 * gdbtypes.h (builtin_bfd_vma_type): Remove.
5093 * gdbtypes.h (builtin_bfd_vma_type): Remove.
5094 (build_gdbtypes): Do not initialize it.
5095 (_initialize_gdbtypes): Do not swap it.
5097 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
5099 * gdbtypes.c (builtin_type_v2_double, builtin_type_v4_float,
5100 builtin_type_v2_int64, builtin_type_v4_int32, builtin_type_v8_int16,
5101 builtin_type_v16_int8, builtin_type_v2_float, builtin_type_v2_int32,
5102 builtin_type_v4_int16, builtin_type_v8_int8, builtin_type_v4sf,
5103 builtin_type_v4si, builtin_type_v16qi, builtin_type_v8qi,
5104 builtin_type_v8hi, builtin_type_v4hi, builtin_type_v2si,
5105 builtin_type_vec64, builtin_type_vec128): Remove.
5106 (init_simd_type): Remove.
5107 (init_vector_type): Make global.
5108 (build_builtin_type_vec64, build_builtin_type_vec128): Remove.
5109 (build_gdbtypes): Do not build vector types.
5110 (_initialize_gdbtypes): Do not swap vector types.
5111 * gdbtypes.h (builtin_type_v2_double, builtin_type_v4_float,
5112 builtin_type_v2_int64, builtin_type_v4_int32, builtin_type_v8_int16,
5113 builtin_type_v16_int8, builtin_type_v2_float, builtin_type_v2_int32,
5114 builtin_type_v4_int16, builtin_type_v8_int8, builtin_type_v4sf,
5115 builtin_type_v4si, builtin_type_v16qi, builtin_type_v8qi,
5116 builtin_type_v8hi, builtin_type_v4hi, builtin_type_v2si,
5117 builtin_type_vec64, builtin_type_vec128): Remove declarations.
5118 (init_vector_type): Add prototype.
5120 * i386-tdep.h (struct gdbarch_tdep): Add i386_mmx_type and
5121 i386_sse_type members.
5122 (i386_mmx_type, i386_sse_type): Change from variables to functions.
5123 * i386-tdep.c (i386_mmx_type, i386_sse_type): Remove variables.
5124 (i386_init_types): Do not build vector types.
5125 (i386_mmx_type, i386_sse_type): New functions.
5126 (i386_register_type): Call them instead of using global variables.
5127 (i386_gdbarch_init): Use XCALLOC to allocate tdep structure.
5128 * amd64-tdep.c (amd64_register_type): Call i386_sse_type instead
5129 of using global variable.
5131 * rs6000-tdep.h (struct gdbarch_tdep): Add ppc_builtin_type_vec64
5132 and ppc_builtin_type_vec128 members.
5133 * rs6000-tdep.c (rs6000_builtin_type_vec64): New function.
5134 (rs6000_builtin_type_vec128): Likewise.
5135 (rs6000_register_type): Call them instead of using builtin_type_vec64
5136 and builtin_type_vec128.
5137 (rs6000_gdbarch_init): Use XCALLOC to allocate tdep structure.
5139 * spu-tdep.c (struct gdbarch_tdep): New data type.
5140 (spu_builtin_type_vec128): Remove variable.
5141 (spu_builtin_type_vec128): New function.
5142 (spu_register_type): Call it instead of using global variable.
5143 (spu_gdbarch_init): Allocate tdep structure.
5144 (spu_init_vector_type): Remove function.
5145 (_initialize_spu_tdep): Do not call it.
5147 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
5149 * amd64-tdep.c (struct amd64_register_info): Remove.
5150 (amd64_register_info): Remove.
5151 (amd64_register_names): New static variable.
5152 (AMD64_NUM_REGS): Use amd64_register_names instead of
5153 amd64_register_info.
5154 (amd64_register_name): Likewise.
5155 (amd64_register_type): Do not refer to amd64_register_info.
5157 * s390-tdep.c (struct s390_register_info): Remove.
5158 (s390_register_info): Remove.
5159 (s390_register_name): Do not refer to s390_register_info.
5160 (s390_register_type): Likewise.
5162 * sparc64-tdep.c (struct sparc64_register_info): Remove.
5163 (sparc64_register_info, sparc64_pseudo_register_info): Remove.
5164 (sparc64_register_names, sparc64_pseudo_register_names): New.
5165 (SPARC64_NUM_REGS, SPARC64_NUM_PSEUDO_REGS): Use
5166 sparc64_register_names and sparc64_pseudo_register_names instead of
5167 sparc64_register_info and sparc64_pseudo_register_info.
5168 (sparc64_register_name): Likewise.
5169 (sparc64_register_type): Do not refer to sparc64_register_info
5170 and sparc64_pseudo_register_info.
5172 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
5174 * c-lang.c (cplus_builtin_types): Remove.
5175 (enum cplus_primitive_types): New data type.
5176 (cplus_language_arch_info): New function.
5177 (cplus_language_defn): Set la_language_arch_info member. Do not set
5178 la_builtin_type_vector and string_char_type members.
5180 * f-lang.c (f_builtin_types): Remove.
5181 (enum f_primitive_types): New data type.
5182 (f_language_arch_info): New function.
5183 (f_language_de): Set la_language_arch_info member. Do not set
5184 la_builtin_type_vector and string_char_type members.
5186 * m2-lang.c (m2_builtin_types): Remove.
5187 (enum m2_primitive_types): New data type.
5188 (m2_language_arch_info): New function.
5189 (m2_language_defn): Set la_language_arch_info member. Do not set
5190 la_builtin_type_vector and string_char_type members.
5192 * objc-lang.c (objc_builtin_types): Remove.
5193 (objc_language): Set la_language_arch_info member. Do not set
5194 la_builtin_type_vector and string_char_type members.
5196 * p-lang.c (pascal_builtin_types): Remove.
5197 (enum pascal_primitive_types): New data type.
5198 (pascal_language_arch_info): New function.
5199 (pascal_language_defn): Set la_language_arch_info member. Do not set
5200 la_builtin_type_vector and string_char_type members.
5202 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
5204 * regcache.c (struct regcache): Add ptid_t member.
5205 (regcache_xmalloc): Initialize it.
5206 (regcache_cpy_no_passthrough): Do not refer to current_regcache.
5207 (regcache_dup): Likewise.
5208 (regcache_dup_no_passthrough): Likewise.
5209 (current_regcache): Make static.
5210 (registers_ptid): Remove variable.
5211 (get_thread_regcache): New function.
5212 (get_current_regcache): New function.
5213 (registers_changed): Implement by freeing current regcache.
5214 (regcache_raw_read): Do not refer to current_regcache. Set
5215 inferior_ptid to regcache->ptid while calling target routines.
5216 (regcache_raw_write): Likewise.
5217 (regcache_raw_supply): Do not refer to current_regcache.
5218 (read_pc_pid): Use thread regcache. Do not modify inferior_ptid.
5219 (write_pc_pid): Likewise.
5220 (build_regcache): Remove.
5221 (_initialize_regcache): Do not call DEPRECATED_REGISTER_GDBARCH_SWAP
5222 or deprecated_register_gdbarch_swap. Do not initialize
5224 * regcache.h (get_current_regcache): Add prototype.
5225 (get_thread_regcache): Likewise.
5226 (current_regcache): Remove declaration.
5228 * corelow.c (core_open): Replace current_regcache by
5229 get_current_regcache ().
5230 * frame.c (frame_pop): Likewise.
5231 (put_frame_register): Likewise.
5232 (get_current_frame, create_new_frame): Likewise.
5233 * mi/mi-main.c (mi_cmd_data_write_register_values): Likewise.
5234 * stack.c (return_command): Likewise.
5235 * infcall.c (call_function_by_hand): Likewise.
5236 * infrun.c (resume): Likewise.
5237 (save_inferior_status, restore_inferior_status): Likewise.
5238 * linux-fork.c (fork_load_infrun_state): Likewise.
5239 (fork_save_infrun_state): Likewise.
5240 * win32-nat.c (win32_resume): Likewise.
5241 * i386fbsd-nat.c (i386fbsd_resume): Likewise.
5242 * monitor.c (monitor_wait): Likewise.
5243 * remote.c (remote_wait): Likewise.
5244 * remote-mips.c (mips_wait): Likewise.
5246 * bsd-kvm.c (bsd_kvm_open): Likewise
5247 (bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd): Likewise.
5248 * fbsd-nat.c (fbsd_make_corefile_notes): Likewise.
5249 * i386-linux-nat.c (i386_linux_resume): Likewise.
5250 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Likewise.
5251 (ia64_linux_stopped_data_address): Likewise.
5253 * frv-tdep.c (frv_fdpic_loadmap_addresses): Likewise.
5254 * m32c-tdep.c (m32c_virtual_frame_pointer): Likewise.
5255 * mep-tdep.c (current_me_module, current_options): Likewise.
5256 * mips-tdep.c (deprecated_mips_set_processor_regs_hack): Likewise.
5258 * linux-nat.c (linux_nat_do_thread_registers): Use thread
5259 regcache instead of current_regcache. Call target_fetch_registers.
5260 (linux_nat_corefile_thread_callback): Update call site.
5261 (linux_nat_do_registers): Likewise.
5262 * procfs.c (procfs_do_thread_registers): Use thread regcache instead
5263 of current_regcache.
5264 (procfs_make_note_section): Likewise.
5265 * proc-service.c (ps_lgetregs, ps_lsetregs): Likewise.
5266 (ps_lgetfpregs, ps_lsetfpregs): Likewise.
5267 * sol-thread.c (ps_lgetregs, ps_lsetregs): Likewise.
5268 (ps_lgetfpregs, ps_lsetfpregs): Likewise.
5270 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
5272 * regcache.c (read_register, read_register_pid): Remove.
5273 (write_register, write_register_pid): Likewise.
5274 * regcache.h (read_register, read_register_pid): Remove prototype.
5275 (write_register, write_register_pid): Likewise.
5277 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
5279 * gdbarch.sh (read_pc): Add REGCACHE argument. Remove PTID argument.
5280 (write_pc): Likewise. Remove default implementation, add predicate.
5281 * gdbarch.c, gdbarch.h: Regenerate.
5282 * regcache.c (read_pc_pid): Use current regcache instead of calling
5284 (write_pc_pid): Check gdbarch_write_pc predicate, implement default
5286 (generic_target_write_pc): Remove.
5287 * inferior.h (generic_target_write_pc): Remove.
5288 * frv-tdep.c (frv_gdbarch_init): Do not install it.
5289 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
5290 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
5291 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
5292 * sh-tdep.c (sh_gdbarch_init): Likewise.
5293 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
5295 * avr-tdep.c (avr_read_pc): Add REGCACHE argument. Remove PTID
5296 argument. Use REGCACHE instead of calling read_register_pid.
5297 * hppa-hpux-tdep.c (hppa_hpux_read_pc): Likewise.
5298 * hppa-tdep.c (hppa_read_pc): Likewise.
5299 * hppa-tdep.h (hppa_read_pc): Likewise.
5300 * ia64-tdep.c (ia64_read_pc): Likewise.
5301 * m32r-tdep.c (m32r_read_pc): Likewise.
5302 * mep-tdep.c (mep_read_pc): Likewise.
5303 * mn10300-tdep.c (mn10300_read_pc): Likewise.
5304 * spu-tdep.c (spu_read_pc): Likewise.
5306 * arm-tdep.c (arm_write_pc): Add REGCACHE argument. Remove PTID
5307 argument. Use REGCACHE instead of calling write_register_pid.
5308 * avr-tdep.c (avr_write_pc): Likewise.
5309 * hppa-hpux-tdep.c (hppa_hpux_write_pc): Likewise.
5310 * hppa-tdep.c (hppa_write_pc): Likewise.
5311 * hppa-tdep.h (hppa_write_pc): Likewise.
5312 * i386-linux-tdep.c (i386_linux_write_pc): Likewise.
5313 * amd64-linux-tdep.c (amd64_linux_write_pc): Likewise.
5314 * ia64-linux-tdep.c (ia64_linux_write_pc): Likewise.
5315 * ia64-tdep.c (ia64_write_pc): Likewise.
5316 * ia64-tdep.h (ia64_write_pc): Likewise.
5317 * m32r-tdep.c (m32r_write_pc): Likewise.
5318 * m88k-tdep.c (m88k_write_pc): Likewise.
5319 * mep-tdep.c (mep_write_pc): Likewise.
5320 * mips-tdep.c (mips_write_pc): Likewise.
5321 * mips-linux-tdep.c (mips_linux_write_pc): Likewise.
5322 * mn10300-tdep.c (mn10300_write_pc): Likewise.
5323 * sparc-tdep.c (sparc_write_pc): Likewise.
5324 * spu-tdep.c (spu_write_pc): Likewise.
5326 * mips-tdep.c (read_signed_register): Remove.
5327 (read_signed_register_pid): Likewise.
5328 (mips_read_pc): Add REGCACHE argument. Remove PTID argument.
5329 Use REGCACHE instead of calling read_signed_register_pid.
5331 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
5333 * gdbarch.sh (push_dummy_code): Add REGCACHE argument.
5334 * gdbarch.c, gdbarch.h: Regenerate.
5335 * infcall.c (generic_push_dummy_code): Add REGCACHE argument.
5336 (push_dummy_code): Likewise. Pass it to callee.
5337 (call_function_by_hand): Pass current regcache to push_dummy_code.
5339 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Add REGCACHE
5340 argument. Use it instead of current_regcache.
5342 * cris-tdep.c (cris_push_dummy_code): Add REGCACHE argument.
5343 * sparc-tdep.c (sparc32_push_dummy_code): Likewise.
5345 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
5347 * gdbarch.sh (get_longjmp_target): Add FRAME argument.
5348 * gdbarch.c, gdbarch.h: Regenerate.
5349 * infrun.c (handle_inferior_event): Pass current frame to
5350 gdbarch_get_longjmp_target.
5352 * alpha-tdep.c (alpha_get_longjmp_target): Add FRAME argument.
5353 Read registers from FRAME instead of using read_register.
5354 Use get_frame_arch instead of current_gdbarch.
5355 * arm-tdep.c (arm_get_longjmp_target): Likewise.
5356 * i386-tdep.c (i386_get_longjmp_target): Likewise.
5357 * m68k-tdep.c (m68k_get_longjmp_target): Likewise.
5358 * mips-linux-tdep.c (mips_linux_get_longjmp_target): Likewise.
5359 (mips64_linux_get_longjmp_target): Likewise.
5360 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Likewise.
5362 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
5364 * gdbarch.sh (skip_trampoline_code): Add FRAME argument.
5365 * gdbarch.c, gdbarch.h: Regenerate.
5366 * arch-utils.c (generic_skip_trampoline_code): Add FRAME argument.
5367 * arch-utils.h (generic_skip_trampoline_code): Likewise.
5368 * infrun.c (handle_inferior_event): Pass current frame to
5369 gdbarch_skip_trampoline_code and skip_language_trampoline.
5371 * language.c (unk_lang_trampoline): Add FRAME argument.
5372 (skip_language_trampoline): Add FRAME argument. Pass it to
5373 skip_trampoline callback.
5374 * language.h: Add forward declaration of struct frame_info.
5375 (struct language_defn): Add FRAME argument to skip_trampoline.
5376 (skip_language_trampoline): Add FRAME argument.
5377 * cp-abi.c (cplus_skip_trampoline): Add FRAME argument. Pass it
5378 to skip_trampoline callback.
5379 * cp-abi.h: Add forward declaration of struct frame_info.
5380 (cplus_skip_trampoline): Add FRAME argument.
5381 (struct cp_abi_ops): Add FRAME argument to skip_trampoline callback.
5382 * gnu-v3-abi.c (gnuv3_skip_trampoline): Add FRAME argument. Pass it
5383 to gdbarch_skip_trampoline_code.
5384 * objc-lang.c (objc_skip_trampoline): Add FRAME argument. Pass it
5385 to gdbarch_skip_trampoline_code.
5387 * minsyms.c (find_solib_trampoline_target): Add FRAME argument.
5388 * symtab.h (find_solib_trampoline_target): Likewise.
5389 * obsd-tdep.c (obsd_skip_solib_resolver): Pass current frame to
5390 find_solib_trampoline_target.
5392 * arm-tdep.c (arm_skip_stub): Add FRAME argument. Read registers
5393 from FRAME instead of calling read_register.
5395 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code): Add FRAME
5396 argument. Read registers from FRAME instead of using read_register.
5397 * hppa-tdep.c (hppa_skip_trampoline_code): Likewise.
5398 * hppa-tdep.h (hppa_skip_trampoline_code): Add FRAME argument.
5400 * i386-cygwin-tdep.c (i386_cygwin_skip_trampoline_code): Add FRAME
5403 * m32c-tdep.c (m32c_skip_trampoline_code): Add FRAME argument.
5405 * mips-tdep.c (mips_skip_trampoline_code): Add FRAME argument. Read
5406 registers from FRAME instead of using read_signed_register.
5408 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Add FRAME
5410 (ppc64_standard_linkage_target): Likewise. Read registers from FRAME
5411 instead of using read_register.
5412 (ppc64_skip_trampoline_code): Add FRAME argument. Pass it to
5413 ppc64_standard_linkage_target.
5414 * rs6000-tdep.c (rs6000_skip_trampoline_code): Add FRAME argument.
5415 Pass it to find_solib_trampoline_target. Read registers from FRAME
5416 instead of using read_register.
5418 * xstormy16-tdep.c (xstormy16_skip_trampoline_code): Add FRAME
5421 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
5423 * gdbarch.sh (software_single_step): Replace REGCACHE argument by
5425 * gdbarch.c, gdbarch.h: Regenerate.
5426 * infrun.c (resume): Pass current frame to SOFTWARE_SINGLE_STEP.
5428 * alpha-tdep.c (alpha_next_pc): Add FRAME argument. Retrieve
5429 registers from FRAME instead of using read_register.
5430 (alpha_software_single_step): Replace REGCACHE by FRAME. Pass FRAME
5431 to alpha_next_pc. Use get_frame_pc instead of read_pc.
5432 * alpha-tdep.h (alpha_software_single_step): Replace REGCACHE
5435 * arm-tdep.c (shifted_reg_val): Add FRAME argument. Read registers
5436 from FRAME instead of using read_register.
5437 (thumb_get_next_pc): Likewise.
5438 (arm_get_next_pc): Likewise.
5439 (arm_software_single_step): Replace REGCACHE by FRAME. Pass FRAME
5440 to arm_get_next_pc. Use get_frame_pc instead of read_register.
5441 * arm-tdep.h (arm_software_single_step): Replace REGCACHE
5444 * cris-tdep.c (find_step_target): Add FRAME argument. Read registers
5445 from FRAME instead of using read_register.
5446 (cris_software_single_step): Replace REGCACHE by FRAME. Pass FRAME
5447 to find_step_target.
5449 * mips-tdep.c (mips32_next_pc): Add FRAME argument. Read registers
5450 from FRAME instead of using read_register / read_signed_register.
5451 (extended_mips16_next_pc): Likewise.
5452 (mips16_next_pc): Likewise.
5453 (mips_next_pc): Likewise.
5454 (mips_software_single_step): Replace REGCACHE by FRAME. Pass FRAME
5455 to mips_next_pc. Use get_frame_pc instead of read_pc.
5456 * mips-tdep.h (mips_software_single_step): Replace REGCACHE
5459 * rs6000-tdep.c (branch_dest): Add FRAME argument. Use it instead
5460 of current frame. Read registers from FRAME.
5461 (deal_with_atomic_sequence): Add FRAME argument. Pass it to
5462 branch_dest. Use get_frame_pc instead of read_pc.
5463 (rs6000_software_single_step): Likewise.
5464 (bl_to_blrl_insn_p): Do not call branch_dest.
5465 * rs6000-tdep.h (rs6000_software_single_step): Replace REGCACHE
5468 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Add FRAME argument.
5469 Read registers from FRAME instead of current regcache.
5470 * sparc-linux-tdep.c (sparc32_linux_step_trap): Likewise.
5471 * sparcnbsd-tdep.c (sparcnbsd_step_trap): Likewise.
5472 * sparc-tdep.c (sparc_address_from_register): Remove.
5473 (sparc_analyze_control_transfer): Pass FRAME argument instead of
5474 GDBARCH. Pass FRAME to step_trap callback.
5475 (sparc_step_trap): Add FRAME argument.
5476 (space_software_single_step): Replace REGCACHE by FRAME. Pass FRAME
5477 to sparc_analyze_control_transfer. Read registers from FRAME instead
5478 of calling sparc_address_from_register.
5479 * sparc-tdep.h (struct gdbarch_tdep): Add FRAME argument to
5481 (sparc_address_from_register): Remove prototype.
5482 (sparc_software_single_step): Replace REGCACHE argument by FRAME.
5483 (sparcnbsd_step_trap): Add FRAME argument.
5485 * spu-tdep.c (spu_software_single_step): Replace REGCACHE argument
5486 by FRAME. Read registers from FRAME instead of REGCACHE.
5488 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
5490 * arm-tdep.c (arm_print_float_info): Use register value from FRAME
5491 instead of calling read_register.
5493 * avr-tdep.c (avr_push_dummy_call): Write to REGCACHE instead of
5494 calling write_register.
5496 * hppa-tdep.c (hppa32_push_dummy_call): Write to REGCACHE instead of
5497 calling write_register.
5499 * ia64-tdep.c (find_func_descr): Add REGCACHE parameter. Use it
5500 instead of calling read_register.
5501 (ia64_push_dummy_call): Update call to find_func_descr. Use REGCACHE
5502 instead of calling read_register and write_register.
5504 * m32r-tdep.c (m32r_linux_supply_gregset): Use REGCACHE parameter
5505 instead of current_regcache.
5507 * mn10300-tdep.c (mn10300_push_dummy_call): Write to REGCACHE instead
5508 of calling write_register.
5509 * mn10300-linux-tdep.c (am33_supply_fpregset_method): Use REGCACHE
5510 parameter instead of current_regcache.
5512 * mips-tdep.c (mips2_fp_compat): Add FRAME parameter. Use it
5513 instead of calling read_register.
5514 (mips_read_fp_register_double, mips_print_fp_register): Update calls.
5515 (mips_eabi_push_dummy_call): Use REGCACHE instead of write_register.
5516 (mips_n32n64_push_dummy_call): Likewise.
5517 (mips_o32_push_dummy_call): Likewise.
5518 (mips_o64_push_dummy_call): Likewise.
5520 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Use REGCACHE
5521 parameter instead of current_regcache.
5523 * xtensa-tdep.c (xtensa_register_write_masked): Add REGCACHE parameter.
5524 Use it instead of read_register and write_register.
5525 (xtensa_register_read_masked): Likewise.
5526 (xtensa_pseudo_register_read): Update call.
5527 (xtensa_pseudo_register_write): Likewise.
5528 (xtensa_frame_cache): Use register values unwound from NEXT_FRAME
5529 instead of calling read_register.
5530 (xtensa_push_dummy_call): Update comment.
5532 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
5534 * mips-tdep.c (mips16_scan_prologue): Replace read_next_frame_reg
5535 by frame_unwind_register_signed calls.
5536 (mips32_scan_prologue): Likewise. Skip analysis of alloca stack
5537 frame allocations when called with NULL NEXT_FRAME parameter.
5538 (read_next_frame_reg): Remove.
5540 * sh-tdep.c (sh_analyze_prologue): Add FPSCR parameter. Use it
5541 instead of reading the FPSCR register.
5542 (sh_frame_cache): Pass unwound FPSCR register value to
5543 sh_analyze_prologue.
5544 (sh_skip_prologue): Pass dummy FPSCR value to sh_analyze_prologue.
5546 * v850-tdep.c (v850_analyze_prologue): Add CTBP parameter. Use it
5547 instead of reading the CTBP register.
5548 (v850_frame_cache): Pass unwound CTBP register value to
5549 v850_analyze_prologue.
5551 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
5553 * sh-tdep.h (sh_show_regs): Add FRAME parameter.
5554 * sh-tdep.c (sh_show_regs): Likewise.
5555 (sh_show_regs_command): Pass current frame to sh_show_regs routine.
5556 (sh_generic_show_regs): Add FRAME parameter. Use register
5557 values from that frame instead of calling read_register.
5558 (sh3_show_regs, sh2e_show_regs, sh2a_show_regs, sh2a_nofpu_show_regs,
5559 sh3e_show_regs, sh3_dsp_show_regs, sh4_show_regs, sh4_nofpu_show_regs,
5560 sh_dsp_show_regs): Likewise.
5561 * sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs,
5562 sh64_show_regs): Likewise.
5564 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
5566 * mips-tdep.c (deprecated_mips_set_processor_regs_hack): Read from
5567 current regcache instead of calling read_register.
5569 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
5571 * mep-tdep.c (current_me_module): Read from current regcache
5572 instead of calling read_register.
5573 (current_options): Likewise.
5575 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
5577 * cris-tdep.c (cris_stopped_data_address): Read register values
5578 from current frame instead of calling read_register.
5579 * frv-tdep.c (frv_stopped_data_address): Likewise.
5581 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
5583 * solib-sunos.c (sunos_solib_create_inferior_hook): Use write_pc
5584 instead of write_register (PC_REGNUM, ...).
5586 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
5588 * solib-sunos.c (sunos_solib_create_inferior_hook): Add comment
5589 explaining why the PC adjustment code is necessary.
5591 2007-06-15 Vladimir Prus <vladimir@codesourcery.com>
5593 * m68k-tdep.h (enum m68k_flavour): New.
5594 (struct gdbarch_tdep): New fields
5595 float_return, flavour and fpregs_present.
5596 * m68k-tdep.c (m68k_register_type): Use
5597 fpregs_present and conditionalize floating
5598 registers type on flavour.
5599 (m68k_register_names): New.
5600 (m68k_register_name): Use the above.
5601 (m68k_convert_register_p): Consult fpregs_present.
5602 (m68k_register_to_value, m68k_value_to_register):
5603 Use register_type to obtain the type of floating
5605 (m68k_svr4_extract_return_value): Check tdep->float_return.
5606 Use register_type to get the type of floating
5608 (m68k_svr4_store_return_value): Likewise.
5609 (m68k_dwarf_reg_to_regnum): Check tdep->fpregs_present.
5610 (m68k_analyze_register_saves): Likewise.
5611 (m68k_gdbarch_init): Extract infromation
5612 from XML description, if present. Guess coldfire by
5613 looking at the file, if present. Conditionalize
5614 setting of long double format. Set decr_pc_after_break
5615 to 2 on coldfire and fido. Enable XML-driven
5616 register description.
5617 * m68kbsd-tdep.c (m68kbsd_fpreg_offset): Use
5618 size of tdep->fpreg_type, as opposed to hardcoded value.
5619 * Makefile.in (m68k-tdep.o): Update dependencies.
5621 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
5623 * NEWS: Mention "info spu" commands and qXfer:spu:read and
5624 qXfer:spu:write remote packet types.
5626 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
5628 * xml-tdesc.c (tdesc_start_target): New.
5629 (target_attributes): New.
5630 (tdesc_elements): Use it.
5631 * features/gdb-target.dtd: Add #FIXED version attribute for
5634 2007-06-13 Arthur Huillet <arthur.huillet@free.fr>
5636 * mi/mi-cmd-var.c (mi_cmd_var_assign): Fix typo.
5638 2007-06-13 Claudio Fontana <claudio.fontana@gmail.com>
5640 * fork-child.c (fork_inferior): Update comment.
5642 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
5644 * features/Makefile: Generate regformats for mips-linux and
5646 * features/sort-regs.xsl: Correct typo.
5647 * regformats/reg-mips.dat, regformats/reg-mips64.dat: Delete.
5648 * regformats/mips-linux.dat, regformats/mips64-linux.dat: New generated
5651 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
5653 * config/mips/linux.mh (TDEP_XML): New.
5654 * features/mips-linux.xml, features/mips64-linux.xml: New files.
5655 * mips-linux-nat.c (mips_linux_register_addr): Handle
5656 MIPS_RESTART_REGNUM.
5657 (mips64_linux_register_addr): Likewise.
5658 (super_xfer_partial, mips_linux_xfer_partial): New.
5659 (_initialize_mips_linux_nat): Add them to the target_ops.
5660 * mips-linux-tdep.c (mips_supply_gregset): Handle MIPS_RESTART_REGNUM.
5661 (mips_fill_gregset, mips64_supply_gregset, mips64_fill_gregset)
5662 (mips_linux_o32_sigframe_init)
5663 (mips_linux_n32n64_sigframe_init): Likewise.
5664 (mips_linux_write_pc, mips_linux_restart_reg_p): New.
5665 (mips_linux_init_abi): Use mips_linux_write_pc. Check for the
5666 "org.gnu.gdb.mips.linux" feature.
5667 * mips-linux-tdep.h (MIPS_RESTART_REGNUM): New constant.
5668 (mips_linux_restart_reg_p): New prototype.
5669 * mips-tdep.c (mips_gdbarch_init): Pass tdesc_data to the OS/ABI
5670 initialization routine.
5671 * Makefile.in (mips-linux-tdep.o, mips-linux-nat.o): Update.
5673 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
5675 * Makefile.in (mips-tdep.o): Update.
5676 * mips-tdep.c (struct register_alias, mips_o32_aliases)
5677 (mips_n32_n64_aliases, mips_register_aliases): New.
5678 (mips_register_name): Call tdesc_register_name.
5679 (mips_tdesc_register_reggroup_p): New.
5680 (mips_pseudo_register_type, value_of_mips_user_reg): New.
5681 (mips_gdbarch_init): Add target-described register support.
5682 Register aliases for register names.
5683 * target-descriptions.c (tdesc_register_name): Make global.
5684 (tdesc_register_in_reggroup_p): New function, broken out from
5685 tdesc_register_reggroup_p.
5686 (tdesc_register_reggroup_p): Use it.
5687 * target-descriptions.h (tdesc_register_name)
5688 (tdesc_register_in_reggroup_p): New prototypes.
5689 * NEWS: Correct formatting. Mention MIPS register support.
5690 * features/mips-cp0.xml, features/mips-fpu.xml,
5691 features/mips64-cp0.xml, gdb/features/mips64-fpu.xml, mips-cpu.xml,
5692 features/mips64-cpu.xml: New files.
5694 2007-06-13 Markus Deuling <deuling@de.ibm.com>
5696 * gdbarch.sh (TARGET_ADDR_BIT): Replace by gdbarch_addr_bit.
5697 * valops.c (value_cast): Likewise.
5698 * utils.c (strlen_paddr, paddr, paddr_nz, paddress): Likewise.
5699 * ui-out.c (ui_out_field_core_addr): Likewise.
5700 * tracepoint.c (tracepoints_info): Likewise.
5701 * symtab.c (print_msymbol_info): Likewise.
5702 * solib-irix.c (irix_current_sos)
5703 (irix_open_symbol_file_object): Likewise.
5704 * remote.c (build_remote_gdbarch_data): Likewise.
5705 * prologue-value.c (make_pv_area): Likewise.
5706 * procfs.c (info_mappings_callback): Likewise.
5707 * printcmd.c (print_scalar_formatted)
5708 (deprecated_print_address_numeric): Likewise.
5709 * memattr.c (mem_info_command): Likewise.
5710 * linux-nat.c (linux_nat_info_proc_cmd): Likewise.
5711 * gdbtypes.c (build_flt, gdbtypes_post_init): Likewise.
5712 * exec.c (print_section_info): Likewise.
5713 * dwarf2read.c (read_subrange_type): Likewise.
5714 * dwarf2loc.c (find_location_expression): Likewise.
5715 * dwarf2expr.c (dwarf2_read_address, unsigned_address_type)
5716 (signed_address_type, execute_stack_op): Likewise.
5717 * breakpoint.c (print_one_breakpoint, breakpoint_1): Likewise.
5718 * gdbarch.c, gdbarch.h: Regenerate.
5720 2007-06-13 Markus Deuling <deuling@de.ibm.com>
5722 * gdbarch.sh (TARGET_ARCHITECTURE): Replace by gdbarch_bfd_arch_info.
5723 * arch-utils.c (show_architecture): Likewise.
5724 * remote-mips.c (mips_open): Likewise
5725 * nto-tdep.c (nto_find_and_open_solib)
5726 (nto_init_solib_absolute_prefix): Likewise.
5727 * nto-procfs (procfs_open): Likewise.
5728 * m68hc11-tdep.c (gdb_print_insn_m68hc11): Likewise.
5729 * gcore.c (default_gcore_mach, default_gcore_arch): Likewise.
5730 * gdbarch.c, gdbarch.h: Regenerate.
5732 2007-06-13 Markus Deuling <deuling@de.ibm.com>
5734 * gdbarch.sh (TARGET_BFD_VMA_BIT): Replace by gdbarch_bfd_vma_bit.
5735 * gdbtypes.c (build_flt): Likewise.
5736 * gdbarch.c, gdbarch.h: Regenerate.
5738 2007-06-13 Markus Deuling <deuling@de.ibm.com>
5740 * gdbarch.sh (BREAKPOINT_FROM_PC): Replace by
5741 gdbarch_breakpoint_from_pc.
5742 * s390-tdep.c (s390_gdbarch_init): Likewise (comment).
5743 * remote.c (remote_insert_breakpoint)
5744 (remote_insert_hw_breakpoint): Likewise.
5745 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Likewise.
5746 * mips-tdep.c (mips_breakpoint_from_pc): Likewise (comment).
5747 * breakpoint.h (bp_target_info): Likewise (comment).
5748 * breakpoint.c (read_memory_nobpt): Likewise.
5749 * mem-break.c (default_memory_insert_breakpoint): Likewise.
5750 (symtab.h, breakpoint.h): Remove include. Remove unnecessary comment.
5751 * gdbarch.c, gdbarch.h: Regenerate.
5753 2007-06-13 Markus Deuling <deuling@de.ibm.com>
5755 * gdbarch.sh (TARGET_PTR_BIT): Replace with gdbarch_ptr_bit.
5756 * solib-svr4.c (svr4_truncate_ptr): Likewise.
5757 * solib-pa64.c (read_dynamic_info): Likewise.
5758 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets): Likewise.
5759 * solib.c (info_sharedlibrary_command): Likewise.
5760 * s390-nat.c (SUBOFF): Likewise.
5761 * p-valprint.c (pascal_val_print): Likewise.
5762 * procfs.c (info_proc_mappings): Likewise.
5763 * printcmd.c (decode_format): Likewise.
5764 * nto-tdep.c (nto_truncate_ptr): Likewise.
5765 * mips-linux-tdep.c (mips_linux_get_longjmp_target)
5766 (mips64_linux_get_longjmp_target): Likewise.
5767 * m68k-tdep.c (m68k_get_longjmp_target): Likewise.
5768 * jv-valprint.c (java_value_print): Likewise.
5769 * jv-lang.c (get_java_object_header_size): Likewise.
5770 * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Likewise.
5771 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
5772 (hppa_hpux_unwind_adjust_stub): Likewise.
5773 * gnu-v3-abi.c (build_gdb_vtable_type): Likewise.
5774 * gdbtypes.c (make_pointer_type, make_reference_type)
5775 (smash_to_memberptr_type): Likewise.
5776 * gdbarch.c, gdbarch.h: Regenerate.
5778 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
5780 * mips-tdep.c (mips_print_register): Remove unused ALL argument.
5781 (print_gp_register_row): Stop before printing a register bigger
5782 than the ABI register size.
5783 (mips_print_registers_info): Update call to mips_print_register.
5785 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
5787 * expression.h (enum exp_opcode): Document a register name for
5789 * parse.c (write_dollar_variable): Write the register name for
5791 (operator_length_standard): Expect the register name following
5793 * ada-lang.c (resolve_subexp): Likewise.
5794 * ax-gdb.c (gen_expr): Likewise.
5795 * eval.c (evaluate_subexp_standard): Likewise.
5796 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
5798 * tracepoint.c (encode_actions): Likewise.
5800 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
5802 * utils.c (set_screen_size): Use INT_MAX for default columns.
5804 2007-06-13 Ulrich Weigand <uweigand@de.ibm.com>
5806 * remote.c (remote_protocol_features): Add qXfer:spu:read and
5807 qXfer:spu:write packet types.
5809 2007-06-12 Markus Deuling <deuling@de.ibm.com>
5811 * gdbarch.sh (DEPRECATED_STACK_ALIGN): Remove.
5812 * gdbarch.c, gdbarch.h: Regenerate.
5814 2007-06-12 Markus Deuling <deuling@de.ibm.com>
5816 * gdbarch.sh (STAB_REG_TO_REGNUM): Replace by
5817 gdbarch_stab_reg_to_regnum.
5818 * stabsread.c (define_symbol): Likewise.
5819 * gdbarch.sh (ECOFF_REG_TO_REGNUM): Replace by
5820 gdbarch_ecoff_reg_to_regnum.
5821 * mdebugread.c (parse_symbol): Likewise.
5822 * i386-tdep.c (i386_gdbarch_init): Likewise (comment).
5823 * gdbarch.sh (DWARF_REG_TO_REGNUM): Replace by
5824 gdbarch_dwarf_reg_to_regnum.
5825 * gdbarch.sh (SDB_REG_TO_REGNUM): Replace by gdbarch_sdb_reg_to_regnum.
5826 * coffread.c (process_coff_symbol): Likewise.
5827 * gdbarch.sh (DWARF2_REG_TO_REGNUM): Replace by
5828 gdbarch_dwarf2_reg_to_regnum.
5829 * dwarf2loc.c (dwarf_expr_read_reg,dwarf2_evaluate_loc_desc)
5830 (locexpr_describe_location): Likewise.
5831 * dwarf2-frame.c (read_reg,execute_cfa_program,dwarf2_frame_cache)
5832 (dwarf2_frame_prev_register,dwarf2_signal_frame_this_id): Likewise.
5833 * dwarf2loc.c (DWARF2_REG_TO_REGNUM): Remove macro.
5834 * dwarf2read.c (DWARF2_REG_TO_REGNUM): Remove macro.
5835 * gdbarch.c, gdbarch.h: Regenerate.
5837 2007-06-12 Markus Deuling <deuling@de.ibm.com>
5839 * gdbarch.sh (SMASH_TEXT_ADDRESS): Replace by
5840 gdbarch_smash_text_address.
5841 * somread.c (som_symtab_read): Likewise.
5842 * elfread.c (record_minimal_symbol): Likewise.
5843 * dbxread.c (process_one_symbol): Likewise.
5844 * coffread.c (coff_symtab_read): Likewise.
5845 * gdbarch.c, gdbarch.h: Regenerate.
5847 2007-06-12 Markus Deuling <deuling@de.ibm.com>
5849 * gdbarch.sh (REGISTER_TO_VALUE): Replace by gdbarch_register_to_value.
5850 * findvar.c (value_from_register): Likewise.
5851 * gdbarch.sh (VALUE_TO_REGISTER): Replace by gdbarch_value_to_register.
5852 * valops.c (value_assign): Likewise.
5853 * gdbarch.sh (CONVERT_REGISTER_P): Replace by
5854 gdbarch_convert_register_p.
5855 * findvar.c (value_from_register): Likewise.
5856 * valops.c (value_assign): Likewise.
5857 * gdbarch.c, gdbarch.h: Regenerate.
5859 2007-06-12 Markus Deuling <deuling@de.ibm.com>
5861 * gdbarch.sh (REGISTER_SIM_REGNO): Replace by
5862 gdbarch_register_sim_regno.
5863 * sim-regno.h (sim_regno): Likewise (comment).
5864 * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register): Likewise.
5865 * gdbarch.c, gdbarch.h: Regenerate.
5867 2007-06-12 Markus Deuling <deuling@de.ibm.com>
5869 * gdbarch.sh (TARGET_VIRTUAL_FRAME_POINTER): Replace by
5870 gdbarch_virtual_frame_pointer.
5871 * tracepoint.c (encode_actions): Likewise.
5872 * dwarf2loc.c (dwarf2_loc_desc_needs_frame): Likewise.
5873 * ax-gdb.c (gen_frame_args_address, gen_frame_locals_address): Likewise.
5874 * gdbarch.c, gdbarch.h: Regenerate.
5876 2007-06-12 Markus Deuling <deuling@de.ibm.com>
5878 * gdbarch.sh (TARGET_FLOAT_BIT): Replace by gdbarch_float_bit.
5879 * p-lang.c (pascal_create_fundamental_type): Likewise.
5880 * objc-lang.c (objc_create_fundamental_type): Likewise.
5881 * mdebugread.c (_initialize_mdebugread): Likewise.
5882 * m2-lang.c (m2_create_fundamental_type)
5883 (_initialize_m2_language): Likewise.
5884 * gdbtypes.c (build_gdbtypes): Likewise.
5885 * f-lang.c (f_create_fundamental_type, build_fortran_types): Likewise.
5886 * doublest.c (floatformat_from_length): Likewise.
5887 * c-lang.c (c_create_fundamental_type): Likewise.
5888 * ada-lang.c (ada_create_fundamental_type)
5889 (ada_language_arch_info): Likewise.
5890 * gdbarch.sh (TARGET_FLOAT_FORMAT): Replace by gdbarch_float_format.
5891 * value.c (unpack_double): Likewise (comment).
5892 * gdbtypes.c (build_gdbtypes): Likewise.
5893 * doublest.c (floatformat_from_length): Likewise.
5894 * gdbarch.sh (TARGET_DOUBLE_BIT): Replace by gdbarch_double_bit.
5895 * valarith.c (value_binop): Likewise.
5896 * p-lang.c (pascal_create_fundamental_type): Likewise.
5897 * objc-lang.c (objc_create_fundamental_type): Likewise.
5898 * mdebugread.c (_initialize_mdebugread): Likewise.
5899 * m2-lang.c (m2_create_fundamental_type): Likewise.
5900 * gdbtypes.c (build_gdbtypes): Likewise.
5901 * f-lang.c (f_create_fundamental_type, build_fortran_types): Likewise.
5902 * doublest.c (floatformat_from_length): Likewise.
5903 * cris-tdep.c (cris_gdbarch_init): Likewise (comment).
5904 * c-lang.c (c_create_fundamental_type): Likewise.
5905 * ada-lex.l (processReal): Likewise.
5906 * ada-lang.c (ada_create_fundamental_type)
5907 (ada_language_arch_info): Likewise.
5908 * gdbarch.sh (TARGET_DOUBLE_FORMAT): Replace by gdbarch_double_format.
5909 * value.c (unpack_double): Likewise (comment).
5910 * gdbtypes.c (build_gdbtypes): Likewise.
5911 * doublest.c (floatformat_from_length): Likewise.
5912 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Replace by
5913 gdbarch_long_double_bit.
5914 * p-lang.c (pascal_create_fundamental_type): Likewise.
5915 * objc-lang.c (objc_create_fundamental_type): Likewise.
5916 * m2-lang.c (m2_create_fundamental_type): Likewise.
5917 * gdbtypes.c (build_gdbtypes): Likewise.
5918 * f-lang.c (f_create_fundamental_type, build_fortran_types): Likewise.
5919 * doublest.c (floatformat_from_length): Likewise.
5920 * c-lang.c (c_create_fundamental_type): Likewise.
5921 * ada-lex.l (processReal): Likewise.
5922 * ada-lang.c (ada_create_fundamental_type)
5923 (ada_language_arch_info): Likewise.
5924 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Replace by
5925 gdbarch_long_double_format.
5926 * gdbtypes.c (build_gdbtypes): Likewise.
5927 * doublest.c (floatformat_from_length): Likewise.
5928 * gdbarch.c, gdbarch.h: Regenerate.
5930 2007-06-12 Markus Deuling <deuling@de.ibm.com>
5932 * gdbarch.sh (TARGET_SHORT_BIT): Replace by gdbarch_int_bit.
5933 * ada-lang.c (ada_create_fundamental_type)
5934 (ada_language_arch_info): Likewise.
5935 * c-lang.c (c_create_fundamental_type): Likewise.
5936 * f-lang.c (f_create_fundamental_type, build_fortran_types): Likewise.
5937 * gdbtypes.c (build_gdbtypes, gdbtypes_post_init): Likewise.
5938 * m2-lang.c (m2_create_fundamental_type): Likewise.
5939 * objc-lang.c (objc_create_fundamental_type): Likewise.
5940 * p-lang.c (pascal_create_fundamental_type): Likewise.
5941 * gdbarch.sh (TARGET_INT_BIT): Replace by gdbarch_int_bit.
5942 * c-exp.y (parse_number): Likewise.
5943 * objc-exp.y (parse_number): Likewise.
5944 * ada-lex.l (processInt): Likewise.
5945 * f-exp.y (parse_number): Likewise.
5946 * p-exp.y (parse_number): Likewise.
5947 * ada-lang.c (ada_create_fundamental_type, ada_language_arch_info)
5948 (gdbtypes_post_init, build_gdbtypes): Likewise.
5949 * p-lang.c (pascal_create_fundamental_type): Likewise.
5950 * parse.c (build_parse): Likewise.
5951 * xcoffread.c (_initialize_xcoffread): Likewise.
5952 * stabsread.c (define_symbol, read_one_struct_field, read_enum_type)
5953 (read_range_type): Likewise.
5954 * objc-lang.c (objc_create_fundamental_type): Likewise.
5955 * f-lang.c (build_fortran_types, f_create_fundamental_type): Likewise.
5956 * m2-lang.c (m2_create_fundamental_type, _initialize_m2_language)
5957 (m2_create_fundamental_type): Likewise.
5958 * c-lang.c (c_create_fundamental_type): Likewise.
5959 * coffread.c (coff_read_enum_type): Likewise.
5960 * mdebugread.c (parse_symbol, _initialize_mdebugread): Likewise.
5961 * dwarf2read.c (new_symbol): Likewise.
5962 * gdbarch.sh (TARGET_LONG_BIT): Replace by gdbarch_long_bit.
5963 * c-exp.y (parse_number): Likewise.
5964 * objc-exp.y (parse_number): Likewise.
5965 * ada-lex.l (processInt): Likewise.
5966 * f-exp.y (parse_number): Likewise.
5967 * p-exp.y (parse_number): Likewise.
5968 * valarith.c (value_binop): Likewise.
5969 * symfile.c (read_target_long_array, simple_overlay_update_1): Likewise.
5970 * ada-lang.c (ada_create_fundamental_type)
5971 (ada_language_arch_info): Likewise.
5972 * gdbtypes.c (build_gdbtypes, gdbtypes_post_init): Likewise.
5973 * symfile.c (TARGET_LONG_BYTES): Likewise.
5974 * p-lang.c (pascal_create_fundamental_type): Likewise.
5975 * objc-lang.c (objc_create_fundamental_type): Likewise.
5976 * m2-lang.c (m2_create_fundamental_type): Likewise.
5977 * f-lang.c (f_create_fundamental_type): Likewise.
5978 * c-lang.c (c_create_fundamental_type): Likewise.
5979 * coffread.c (decode_base_type): Likewise.
5980 * gdbarch.sh (TARGET_LONG_LONG_BIT): Replace by gdbarch_long_long_bit.
5981 * c-exp.y (parse_number): Likewise.
5982 * objc-exp.y (parse_number): Likewise.
5983 * p-exp.y (parse_number): Likewise.
5984 * ada-lang.c (ada_create_fundamental_type)
5985 (ada_language_arch_info): Likewise.
5986 * gdbtypes.c (gdbtypes_post_init, build_gdbtypes): Likewise.
5987 * stabsread.c (read_range_type): Likewise.
5988 * p-lang.c (pascal_create_fundamental_type): Likewise.
5989 * objc-lang.c (objc_create_fundamental_type): Likewise.
5990 * m2-lang.c (m2_create_fundamental_type): Likewise.
5991 * f-lang.c (f_create_fundamental_type): Likewise.
5992 * c-lang.c (c_create_fundamental_type): Likewise.
5993 * gdbarch.c, gdbarch.h: Regenerate.
5995 2007-06-12 Andreas Schwab <schwab@suse.de>
5997 * frame-unwind.h (frame_dealloc_cache_ftype): Define.
5998 (struct frame_unwind): Add dealloc_cache.
5999 * frame.c (reinit_frame_cache): Call dealloc_cache on all caches.
6001 * libunwind-frame.h (libunwind_frame_dealloc_cache): Declare.
6002 * libunwind-frame.c (libunwind_frame_dealloc_cache): Define.
6003 (libunwind_frame_unwind): Set dealloc_cache.
6004 * ia64-tdep.c (ia64_libunwind_frame_unwind): Set dealloc_cache.
6006 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
6007 Markus Deuling <deuling@de.ibm.com>
6009 * remote.c (remote_write_qxfer): New function.
6010 (remote_xfer_partial): Add handling for TARGET_OBJECT_SPU.
6011 (remote_read_qxfer): Do not cache empty objects.
6012 (_initialize_remote): Add PACKET_qXfer_spu_read and
6013 PACKET_qXfer_spu_write.
6015 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
6017 * target.h (enum target_object): Add TARGET_OBJECT_SPU.
6018 * spu-linux-nat.c (spu_xfer_partial): Handle TARGET_OBJECT_SPU.
6020 * spu-tdep.h (SPU_NUM_PSEUDO_REGS): Add 5 pseudo registers.
6021 (enum spu_regnum): Add SPU_FPSCR_REGNUM, SPU_SRR0_REGNUM,
6022 SPU_LSLR_REGNUM, SPU_DECR_REGNUM, SPU_DECR_STATUS_REGNUM.
6023 * spu-tdep.c (infospucmdlist): New variable.
6024 (spu_register_name): Handle additional pseudo registers.
6025 (spu_register_type): Likewise.
6026 (spu_pseudo_register_read): Likewise.
6027 (spu_pseudo_register_write): Likewise.
6028 (spu_pseudo_register_read_spu): New function.
6029 (spu_pseudo_register_write_spu): Likewise.
6030 (info_spu_event_command): New function.
6031 (info_spu_signal_command): Likewise.
6032 (info_spu_mailbox_list): Likewise.
6033 (info_spu_mailbox_command): Likewise.
6034 (spu_mfc_get_bitfield): Likewise.
6035 (info_spu_dma_cmdlist): Likewise.
6036 (info_spu_dma_command): Likewise.
6037 (info_spu_proxydma_command): Likewise.
6038 (info_spu_command): Likewise.
6039 (_initialize_spu_tdep): Install "info spu" commands.
6041 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
6043 * spu-linux-nat.c (spu_proc_xfer_spu): Do not return failure when
6044 accessing non-seekable spufs files.
6046 2007-06-09 Markus Deuling <deuling@de.ibm.com>
6048 * gdbarch.sh (SKIP_TRAMPOLINE_CODE): Replace by
6049 gdbarch_skip_trampoline_code.
6050 * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Likewise (comment).
6051 * objc-lang.c (objc_skip_trampoline)
6052 (objc_submethod_helper_data): Likewise.
6053 * m32c-lang.c (m32c_skip_trampoline_code): Likewise (comment).
6054 * infrun.c (handle_inferior_event): Likewise.
6055 * gnu-v3-abi.c (gnuv3_skip_trampoline): Likewise.
6056 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Replace by
6057 gdbarch_in_solib_return_trampoline.
6058 * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Likewise (comment).
6059 * infrun.c (handle_inferior_event): Likewise.
6060 * hppa-tdep.c (hppa_stub_unwind_sniffer): Likewise.
6061 * gdbarch.c, gdbarch.h: Regenerate.
6063 2007-06-09 Markus Deuling <deuling@de.ibm.com>
6065 * gdbarch.sh (SKIP_PROLOGUE): Replace by gdbarch_skip_prologue.
6066 * symtab.c (find_function_start_sal, in_prologue): Likewise.
6067 * linespec.c (minsym_found): Likewise.
6068 * infrun.c (step_into_function): Likewise.
6069 * gdbarch.c, gdbarch.h: Regenerate.
6071 2007-06-09 Markus Deuling <deuling@de.ibm.com>
6073 * gdbarch.sh (NAME_OF_MALLOC): Replace by gdbarch_name_of_malloc.
6074 * valops.c (value_allocate_space_in_inferior): Likewise.
6075 * gdbarch.c, gdbarch.h: Regenerate.
6077 2007-06-09 Markus Deuling <deuling@de.ibm.com>
6079 * gdbarch.sh (MEMORY_INSERT_BREAKPOINT): Replace by
6080 gdbarch_memory_insert_breakpoint.
6081 * mem-break.c (memory_insert_breakpoint): Likewise.
6082 * gdbarch.sh (MEMORY_REMOVE_BREAKPOINT): Replace by
6083 gdbarch_memory_remove_breakpoint.
6084 * mem-break.c (memory_remove_breakpoint): Likewise.
6085 * gdbarch.c, gdbarch.h: Regenerate.
6087 2007-06-09 Markus Deuling <deuling@de.ibm.com>
6089 * gdbarch.sh (FETCH_TLS_LOAD_MODULE_ADDRESS): Replace by
6090 gdbarch_fetch_tls_load_module_address.
6091 * gdbarch.sh (FETCH_TLS_LOAD_MODULE_ADDRESS_P): Replace by
6092 gdbarch_fetch_tls_load_module_address_p.
6093 * gdbarch.c, gdbarch.h: Regenerate.
6095 2007-06-09 Markus Deuling <deuling@de.ibm.com>
6097 * gdbarch.sh (DECR_PC_AFTER_BREAK): Replace by
6098 gdbarch_decr_pc_after_break.
6099 * tracepoint.c (trace_dump_command): Likewise.
6100 * solib-sunos.c (sunos_solib_create_inferior_hook): Likewise.
6101 * linux-thread-db.c (check_event): Likewise.
6102 * linux-nat.c (cancel_breakpoints_callback): Likewise.
6103 * infrun.c (adjust_pc_after_break, normal_stop): Likewise.
6104 * frame.h: Likewise (comment).
6105 * dummy-frame.c (deprecated_pc_in_call_dummy): Likewise.
6106 * aix-thread.c (aix_thread_wait): Likewise.
6107 * gdbarch.c, gdbarch.h: Regenerate.
6109 2007-06-09 Markus Deuling <deuling@de.ibm.com>
6111 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS): Replace by
6112 gdbarch_address_class_type_flags.
6113 * dwarf2read.c (read_tag_pointer_type): Likewise.
6114 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS_P): Replace by
6115 gdbarch_address_class_type_flags_p.
6116 * dwarf2read.c (read_tag_pointer_type): Likewise.
6117 * gdbarch.c, gdbarch.h: Regenerate.
6119 2007-06-09 Markus Deuling <deuling@de.ibm.com>
6121 * gdbarch.sh (ADDR_BITS_REMOVE): Replace by gdbarch_addr_bits_remove.
6122 * value.c (value_as_address): Likewise (comment).
6123 * remote-mips.c (common_breakpoint): Likewise.
6124 * regcache.c (read_pc_pid): Likewise.
6125 * printcmd.c (do_one_display): Likewise.
6126 * monitor.c (monitor_write_memory, monitor_read_memory)
6127 (monitor_insert_breakpoint): Likewise.
6128 * mips-tdep.c (heuristic_proc_start): Likewise.
6129 * infrun.c (insert_step_resume_breakpoint_at_frame)
6130 (insert_step_resume_breakpoint_at_caller): Likewise.
6131 * buildsym.c (record_line): Likewise.
6132 * arm-tdep.c (arm_scan_prologue, thumb_get_next_pc)
6133 (arm_get_next_pc): Likewise.
6134 * armnbsd-nat.c (arm_supply_gregset, fetch_register, store_register)
6135 (store_regs): Likewise.
6136 * arm-linux-tdep.c (arm_linux_supply_gregset): Likewise.
6137 * arm-linux-nat.c (fetch_register, fetch_regs): Likewise.
6138 * gdbarch.c, gdbarch.h: Regenerate.
6140 2007-06-09 Markus Deuling <deuling@de.ibm.com>
6142 * gdbarch.sh (REGISTER_NAME): Replace by gdbarch_register_name.
6143 * tracepoint.c (scope_info): Likewise.
6144 * target.c (debug_print_register): Likewise.
6145 * stack.c (frame_info): Likewise.
6146 * sh-tdep.c (sh_register_reggroup_p): Likewise.
6147 * sh64-tdep.c (sh64_do_fp_register, sh64_do_register)
6148 (sh64_media_print_registers_info)
6149 (sh64_compact_print_registers_info): Likewise.
6150 * rs6000-tdep.c (rs6000_register_reggroup_p): Likewise.
6151 * remote-sim.c (gdbsim_fetch_register): Likewise.
6152 * remote.c (packet_reg): Likewise (comment).
6153 * reggroups.c (default_register_reggroup_p): Likewise.
6154 * regcache.c (regcache_dump): Likewise.
6155 * printcmd.c (address_info): Likewise.
6156 * ppc-linux-nat.c (fetch_register, store_register): Likewise.
6157 * mt-dep.c (mt_registers_info): Likewise.
6158 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Likewise (comment).
6159 * mips-tdep.c (mips_register_reggroup_p, mips_read_fp_register_single)
6160 (mips_read_fp_register_double, mips_print_fp_register)
6161 (mips_print_register, print_gp_register_row, mips_print_registers_info)
6162 (mips_register_sim_regno): Likewise.
6163 * m68klinux-nat.c (regmap, fetch_register, store_register): Likewise.
6164 * inf-ptrace.c (inf_ptrace_fetch_register)
6165 (inf_ptrace_store_register): Likewise.
6166 * infcmd.c (default_print_registers_info): Likewise.
6167 * ia64-linux-nat.c (ia64_linux_fetch_register)
6168 (ia64_linux_store_register): Likewise.
6169 * i386-linux-nat.c (fetch_register, store_register): Likewise.
6170 * i386gnu-nat.c (gnu_fetch_registers, gnu_store_registers): Likewise.
6171 * hppa-linux-nat.c (fetch_register, store_register): Likewise.
6172 * hppa-hpux-nat.c (hppa_hpux_fetch_register)
6173 (hppa_hpux_store_register): Likewise.
6174 * findvar.c (locate_var_value): Likewise.
6175 * dwarf2loc.c (locexpr_describe_location): Likewise.
6176 * dwarf2-frame.c (execute_cfa_program): Likewise.
6177 * arm-tdep.c (arm_push_dummy_call): Likewise.
6178 * arch-utils.c (legacy_register_sim_regno): Likewise.
6179 * alpha-tdep.c (alpha_register_reggroup_p): Likewise.
6180 * alpha-nat.c (fetch_osf_core_registers): Likewise.
6181 * mi/mi-main.c (mi_cmd_data_list_register_names)
6182 (mi_cmd_data_list_changed_registers, mi_cmd_data_list_register_values)
6183 (mi_cmd_data_write_register_values): Likewise.
6184 * gdbarch.c, gdbarch.h: Regenerate.
6186 2007-06-07 Daniel Jacobowitz <dan@codesourcery.com>
6188 * target-memory.c (blocks_to_erase): Correct off-by-one error.
6190 2007-06-06 Vladimir Prus <vladimir@codesourcery.com>
6192 * remote.c (process_g_packet): Don't check size.
6193 * gdbarch.sh: Remove register_bytes_ok.
6194 * gdbarch.c: Regenerated.
6195 * gdbarch.h: Regenerated.
6196 * m68k-tdep.c (REGISTER_BYTES_NOFP): Remove.
6197 (m68k_register_bytes_ok): Remove.
6198 (m68k_gdbarch_init): Don't register m68k_register_bytes_ok.
6200 2007-06-06 Andreas Schwab <schwab@suse.de>
6202 * libunwind-frame.c (unw_destroy_addr_space_p): Define.
6203 (destroy_addr_space_name): Define.
6204 (libunwind_load): Get address of destroy_addr_space function.
6205 (libunwind_frame_cache): Destroy unw_addr_space_t object before
6206 returning unsuccessfully.
6207 (libunwind_frame_sniffer): Destroy unw_addr_space_t object before
6209 (libunwind_sigtramp_frame_sniffer): Likewise.
6210 (libunwind_get_reg_special): Likewise.
6212 2007-06-06 Markus Deuling <deuling@de.ibm.com>
6214 * gdbarch.sh (FETCH_POINTER_ARGUMENT): Replace by
6215 gdbarch_fetch_pointer_argument.
6216 * objc-lang.c (OBJC_FETCH_POINTER_ARGUMENT): Likewise.
6217 * gdbarch.c, gdbarch.h: Regenerate.
6219 2007-06-06 Markus Deuling <deuling@de.ibm.com>
6221 * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Replace by
6222 gdbarch_have_nonsteppable_watchpoint.
6223 * infrun.c (handle_inferior_event, adjust_pc_after_break): Likewise.
6224 * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Replace by
6225 gdbarch_cannot_step_breakpoint.
6226 * infrun.c (resume): Likewise.
6227 * gdbarch.c, gdbarch.h: Regenerate.
6229 2007-06-06 Markus Deuling <deuling@de.ibm.com>
6231 * gdbarch.sh (FRAME_ARGS_SKIP): Replace by gdbarch_frame_args_skip.
6232 * stack.c (print_frame_args): Likewise.
6233 * gdbarch.sh (FRAME_NUM_ARGS): Replace by gdbarch_frame_num_args.
6234 * stack.c (print_args_stub, frame_info): Likewise.
6235 * gdbarch.sh (FRAME_NUM_ARGS_P): Replace by gdbarch_frame_num_args_p.
6236 * stack.c (print_args_stub, frame_info): Likewise.
6237 * gdbarch.c, gdbarch.h: Regenerate.
6239 2007-06-06 Markus Deuling <deuling@de.ibm.com>
6241 * gdbarch.sh (COFF_MAKE_MSYMBOL_SPECIAL): Replace by
6242 gdbarch_coff_make_msymbol_special.
6243 * coffread.c (coff_symtab_read): Likewise.
6244 * gdbarch.sh (ELF_MAKE_MSYMBOL_SPECIAL): Replace by
6245 gdbarch_elf_make_msymbol_special.
6246 * elfread.c (elf_symtab_read): Likewise.
6247 * mips-tdep.c (mips_elf_make_msymbol_special): Likewise (comment).
6248 * sh64-tdep.c (MSYMBOL_IS_SPECIAL): Likewise (comment).
6249 * gdbarch.c, gdbarch.h: Regenerate.
6251 2007-06-06 Markus Deuling <deuling@de.ibm.com>
6253 * gdbarch.sh (FRAME_RED_ZONE_SIZE): Replace by
6254 gdbarch_frame_red_zone_size.
6255 * gdbarch.c, gdbarch.h: Regenerate.
6257 2007-06-06 Markus Deuling <deuling@de.ibm.com>
6259 * gdbarch.sh (INNER_THAN): Replace by gdbarch_inner_than.
6260 * infcall.c (call_function_by_hand): Likewise.
6261 * gcore.c (derive_stack_segment): Likewise.
6262 * frame.c (frame_id_inner): Likewise.
6263 * arch-utils.c (core_addr_lessthan): Likewise (comment).
6264 * ada-lang.c (ensure_lval): Likewise.
6265 * gdbarch.c, gdbarch.h: Regenerate.
6267 2007-06-06 Markus Deuling <deuling@de.ibm.com>
6269 * gdbarch.sh (ADDRESS_TO_POINTER): Replace by
6270 gdbarch_address_to_pointer.
6271 * findvar.c (store_typed_address): Likewise.
6272 * gdbtypes.c (make_pointer_type): Likewise (comment).
6273 * procfs.c (procfs_address_to_host_pointer): Likewise.
6274 * std-regs.c (value_of_builtin_frame_reg): Likewise.
6275 (value_of_builtin_frame_fp_reg): Likewise.
6276 (value_of_builtin_frame_pc_reg): Likewise.
6277 * utils.c (paddress): Likewise (comment).
6278 * gdbarch.sh (POINTER_TO_ADDRESS): Replace by
6279 gdbarch_pointer_to_address.
6280 * findvar.c (extract_typed_address): Likewise.
6281 * gdbtypes.c (make_pointer_type): Likewise (comment).
6282 * valops.c (value_cast): Likewise (comment).
6283 * gdbarch.c, gdbarch.h: Regenerate.
6285 2007-06-06 Markus Deuling <deuling@de.ibm.com>
6287 * gdbarch.sh (GET_LONGJMP_TARGET): Replace by gdbarch_get_longjmp_target.
6288 * infrun.c (handle_inferior_event): Likewise.
6289 * gdbarch.sh (GET_LONGJMP_TARGET_P): Replace by
6290 gdbarch_get_longjmp_target_p.
6291 * breakpoint.c (breakpoint_re_set): Likewise.
6292 * infrun.c (handle_inferior_event): Likewise.
6293 * gdbarch.c, gdbarch.h: Regenerate.
6295 2007-06-06 Ulrich Weigand <uweigand@de.ibm.com>
6297 * hppa-hpux-tdep.c (args_for_find_stub, HP_ACC_EH_notify_hook,
6298 HP_ACC_EH_set_hook_value, HP_ACC_EH_notify_callback, HP_ACC_EH_break,
6299 HP_ACC_EH_catch_throw, HP_ACC_EH_catch_catch, __eh_notification,
6300 hp_cxx_exception_support, hp_cxx_exception_support_initialized,
6301 eh_notify_hook_addr, eh_notify_callback_addr, eh_break_addr,
6302 eh_catch_throw_addr, break_callback_sal, setup_d_pid_in_inferior,
6303 find_stub_with_shl_get, cover_find_stub_with_shl_get,
6304 initialize_hp_cxx_exception_support, child_enable_exception_callback,
6305 current_ex_event, child_get_current_exception_event): Remove.
6306 (hppa_hpux_inferior_created): Remove.
6307 (hppa_hpux_init_abi): Do not install hppa_hpux_inferior_created.
6309 * breakpoint.h (deprecated_exception_catchpoints_are_fragile): Remove.
6310 (deprecated_exception_support_initialized): Remove.
6311 * breakpoint.c (deprecated_exception_catchpoints_are_fragile): Remove.
6312 (deprecated_exception_support_initialized): Remove.
6313 (breakpoint_init_inferior): Remove handling of non-zero
6314 deprecated_exception_catchpoints_are_fragile.
6316 * symtab.h (deprecated_hp_som_som_object_present): Remove.
6317 * symtab.c (deprecated_hp_som_som_object_present): Remove.
6318 * c-typeprint.c (c_type_print_base): Remove handling of non-zero
6319 deprecated_hp_som_som_object_present.
6320 * eval.c (evaluate_subexp_standard): Likewise.
6321 * valops.c (value_cast): Likewise.
6323 * parse.c (parse_nested_classes_for_hpacc, coloncolon): Remove.
6324 * parser-defs.h (parse_nested_classes_for_hpacc): Remove.
6325 * c-exp.y (yylex): Do not call parse_nested_classes_for_hpacc.
6327 2007-06-06 Ulrich Weigand <uweigand@de.ibm.com>
6329 * objfiles.h (ImportEntry, ExportEntry): Remove types.
6330 (struct objfile): Remove import_list, import_list_size,
6331 export_list, export_list_size members.
6332 (is_in_import_list): Remove prototype.
6333 * objfiles.c (is_in_import_list): Remove.
6334 * somread.c (init_import_symbols, init_export_symbols): Remove.
6335 (som_symfile_read): Do not call init_import_symbols. Do not
6336 set objfile->export_list and objfile->export_list_size.
6338 2007-06-05 Daniel Jacobowitz <dan@codesourcery.com>
6340 * dwarf2read.c (dwarf2_symbol_mark_computed): Fix formatting.
6341 Use the original objfile if necessary.
6343 2007-06-04 Daniel Jacobowitz <dan@codesourcery.com>
6345 * defs.h (ldirname): New prototype.
6346 * dwarf2read.c (read_file_scope): Use DW_AT_name if DW_AT_comp_dir is
6348 * utils.c (ldirname): New function.
6349 * xml-tdesc.c (file_read_description_xml): Use ldirname.
6351 2007-06-01 Ulrich Weigand <uweigand@de.ibm.com>
6353 * spu-tdep.c (spu_push_dummy_call): Store stack back chain.
6355 2007-06-01 Joel Brobecker <brobecker@adacore.com>
6357 * solib-svr4.c (svr4_solib_create_inferior_hook): Remove warning.
6359 2007-06-01 Ulrich Weigand <uweigand@de.ibm.com>
6361 * irix5-nat.c (JB_ELEMENT_SIZE, get_longjmp_target): Remove.
6363 2007-06-01 Ulrich Weigand <uweigand@de.ibm.com>
6365 * ppc-linux-tdep.c (INSTR_SC, INSTR_LI_R0_0x6666, INSTR_LI_R0_0x7777,
6366 INSTR_LI_R0_NR_sigreturn, INSTR_LI_R0_NR_rt_sigreturn): Remove.
6367 (PPC_LINUX_SIGNAL_FRAMESIZE, PPC_LINUX_REGS_PTR_OFFSET,
6368 PPC_LINUX_HANDLER_PTR_OFFSET): Remove.
6369 (ppc_linux_in_sigtramp, insn_is_sigreturn,
6370 ppc_linux_at_sigtramp_return_path): Remove.
6372 2007-05-31 Markus Deuling <deuling@de.ibm.com>
6374 * xtensa-tdep.c (XTENSA_IS_ENTRY, extract_call_winsize)
6375 (xtensa_register_write_masked, xtensa_register_read_masked)
6376 (xtensa_extract_return_value, xtensa_store_return_value
6377 (xtensa_push_dummy_call, xtensa_breakpoint_from_pc): Replace
6378 TARGET_BYTE_ORDER by gdbarch_byte_order.
6379 * sh-tdep.c (sh_breakpoint_from_pc, gdb_print_insn_sh)
6380 (sh_justify_value_in_reg, sh_next_flt_argreg, sh_push_dummy_call_fpu)
6381 (sh_extract_return_value_fpu, sh_store_return_value_fpu): Likewise.
6382 * sh64-tdep.c (sh64_breakpoint_from_pc, gdb_print_insn_sh64)
6383 (sh64_push_dummy_call, sh64_extract_return_value)
6384 (sh64_store_return_value, sh64_register_convert_to_virtual)
6385 (sh64_register_convert_to_raw, sh64_pseudo_register_read)
6386 (sh64_pseudo_register_write, sh64_do_fp_register)
6387 (sh64_frame_prev_register): Likewise.
6388 * score-tdep.c (score_print_insn, score_breakpoint_from_pc)
6389 (score_return_value, score_push_dummy_call, score_fetch_inst): Likewise.
6390 * rs6000-tdep.c (rs6000_breakpoint_from_pc, rs6000_push_dummy_call)
6391 (e500_move_ev_register,gdb_print_insn_powerpc): Likewise.
6392 * remote-m32r-sdi.c (m32r_resume, m32r_wait): Likewise.
6393 * ppc-linux-nat.c (store_register): Likewise.
6394 * nto-tdep.c (nto_find_and_open_solib)
6395 (nto_init_solib_absolute_prefix): Likewise.
6396 * mips-tdep.c (mips_pseudo_register_read, mips_pseudo_register_write)
6397 (mips_convert_register_p, mips_eabi_push_dummy_call)
6398 (mips_n32n64_push_dummy_call, mips_n32n64_return_value)
6399 (mips_o32_push_dummy_call, mips_o32_return_value)
6400 (mips_o64_push_dummy_call, mips_o64_return_value, mips_o64_return_value)
6401 (mips_read_fp_register_single, mips_read_fp_register_double)
6402 (mips_print_register, print_gp_register_row, gdb_print_insn_mips)
6403 (mips_breakpoint_from_pc): Likewise.
6404 * mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset): Likewise.
6405 * mips-linux-tdep.c (mips64_supply_fpregset, mips64_fill_fpregset)
6406 (mips_linux_o32_sigframe_init): Likewise.
6407 * m32r-tdep.c (m32r_memory_insert_breakpoint)
6408 (m32r_memory_remove_breakpoint, m32r_breakpoint_from_pc): Likewise.
6409 * libunwind-frame.c (libunwind_frame_cache, libunwind_frame_sniffer)
6410 (libunwind_sigtramp_frame_sniffer, libunwind_get_reg_special): Likewise.
6411 * iq2000-tdep.c (iq2000_breakpoint_from_pc): Likewise.
6412 * coffread.c (process_coff_symbol): Likewise.
6413 * arm-tdep.c (convert_from_extended, convert_to_extended)
6414 (gdb_print_insn_arm): Likewise.
6416 2007-05-31 Markus Deuling <deuling@de.ibm.com>
6418 * gdbarch.sh (NUM_REGS): Replace by gdbarch_num_regs.
6419 * i386-tdep.c (i386_dbx_reg_to_regnum)
6420 (i386_svr4_reg_to_regnum): Likewise.
6421 * inf-ptrace.c (inf_ptrace_fetch_registers)
6422 (inf_ptrace_store_registers): Likewise.
6423 * corelow.c (get_core_registers): Likewise.
6424 * i386-linux-nat.c (supply_gregset, fill_gregset)
6425 (i386_linux_fetch_inferior_registers)
6426 (i386_linux_store_inferior_registers): Likewise.
6427 * remote.c (init_remote_state,packet_reg_from_regnum)
6428 (packet_reg_from_pnum,process_g_packet,remote_fetch_registers)
6429 (remote_prepare_to_store,store_registers_using_G)
6430 (remote_store_registers,remote_arch_state): Likewise.
6431 * tracepoint.c (encode_actions): Likewise.
6432 * mi/mi-main.c (mi_cmd_data_list_register_names)
6433 (mi_cmd_data_list_changed_registers,mi_cmd_data_list_register_values)
6434 (mi_cmd_data_write_register_values): Likewise.
6435 * tui/tui-regs.c (tui_show_register_group)
6436 (tui_show_register_group): Likewise.
6437 * xtensa-tdep.h (FP_ALIAS): Likewise.
6438 * xtensa-tdep.c (xtensa_register_name,xtensa_register_type)
6439 (xtensa_reg_to_regnum,xtensa_pseudo_register_read)
6440 (xtensa_pseudo_register_write,xtensa_register_reggroup_p): Likewise.
6441 * win32-nat.c (do_win32_fetch_inferior_registers)
6442 (do_win32_store_inferior_registers,fetch_elf_core_registers
6443 * user-regs.h: Likewise (comment).
6444 * user-regs.c (user_reg, user_reg_map_name_to_regnum): Likewise.
6445 * trad-frame.c (trad_frame_alloc_saved_regs): Likewise.
6446 * target-descriptions.h: Likewise (comment).
6447 * target-descriptions.c (tdesc_use_registers): Likewise (comment).
6448 * target.c (debug_print_register): Likewise.
6449 * stack.c (frame_info): Likewise.
6450 * stabsread.c (define_symbol): Likewise.
6451 * sh64-tdep.c (sh64_do_pseudo_register,sh64_print_register)
6452 (sh64_media_print_registers_info)
6453 (sh64_compact_print_registers_info): Likewise.
6454 * rs6000-tdep.c (rs6000_register_sim_regno): Likewise.
6455 * rs6000-nat.c (fetch_register,store_register): Likewise.
6456 * remote-sim.c (one2one_register_sim_regno,gdbsim_fetch_register)
6457 (gdbsim_fetch_register,gdbsim_store_register): Likewise.
6458 * remote-mips.c (mips_fetch_registers,mips_store_registers): Likewise.
6459 * remote-m32r-sdi.c (m32r_fetch_registers)
6460 (m32r_store_registers): Likewise.
6461 * reggroups.c (default_register_reggroup_p): Likewise.
6462 * regcache.c (init_regcache_descr,register_size,regcache,regcache_save)
6463 (regcache_restore,regcache_dump): Likewise.
6464 * monitor.c (monitor_fetch_registers,monitor_store_registers): Likewise.
6465 * mips-tdep.c (mips_xfer_register,mips_register_name)
6466 (mips_register_reggroup_p,mips_pseudo_register_read)
6467 (mips_pseudo_register_write,mips_convert_register_p,mips_register_type)
6468 (mips_unwind_pc,mips_unwind_sp,mips_unwind_dummy_id,set_reg_offset)
6469 (mips16_scan_prologue,mips_insn16_frame_cache,reset_saved_regs)
6470 (mips32_scan_prologue,mips_insn32_frame_cache,read_next_frame_reg)
6471 (mips_n32n64_return_value,mips_o32_return_value,mips_o64_return_value)
6472 (print_gp_register_row,mips_print_registers_info)
6473 (mips_stab_reg_to_regnum,mips_dwarf_dwarf2_ecoff_reg_to_regnum)
6474 (mips_register_sim_regno): Likewise.
6475 * mips-linux-tdep.c (mips_linux_o32_sigframe_init)
6476 (mips_linux_n32n64_sigframe_init): Likewise.
6477 * mips-linux-nat.c (mips_linux_register_addr)
6478 (mips64_linux_register_addr): Likewise.
6479 * findvar.c (value_of_register): Likewise.
6480 * infcmd.c (default_print_registers_info,registers_info)
6481 (print_vector_info,print_float_info): Likewise.
6482 * mips64obsd-tdep.c (mips64obsd_sigframe_init): Likewise.
6483 * inf-child.c (inf_child_fetch_inferior_registers): Likewise.
6484 * m68k-tdep.c (m68k_dwarf_reg_to_regnum): Likewise.
6485 * m68hc11-tdep.c (m68hc11_frame_unwind_cache(: Likewise.
6486 * m32r-tdep.c (m32r_frame_unwind_cache): Likewise.
6487 * ia64-linux-nat.c (ia64_register_addr,ia64_cannot_fetch_register)
6488 (ia64_cannot_store_register,ia64_linux_fetch_registers)
6489 (ia64_linux_store_registers): Likewise.
6490 * hpux-thread.c (hpux_thread_fetch_registers)
6491 (hpux_thread_store_registers): Likewise.
6492 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM,E_PSEUDO_EXR_REGNUM)
6493 (h8300_init_frame_cache,h8300_frame_cache,h8300_frame_prev_register)
6494 (h8300_register_type): Likewise.
6495 * dwarf2-frame.c (dwarf2_frame_cache)
6496 (dwarf2_frame_state_alloc_regs): Likewise.
6497 * cris-tdep.c (cris_register_size,cris_cannot_fetch_register)
6498 (cris_cannot_store_register,crisv32_cannot_fetch_register)
6499 (crisv32_cannot_store_register,cris_register_name): Likewise.
6500 * avr-tdep.c (avr_frame_unwind_cache): Likewise.
6501 * arch-utils.c (legacy_register_sim_regno)
6502 (legacy_virtual_frame_pointer): Likewise.
6503 * arm-tdep.c (arm_make_prologue_cache,arm_register_sim_regno):Likewise.
6504 * arm-tdep.h: Likewise (comment).
6505 * frv-tdep.c (frv_register_sim_regno): Likewise.
6506 * m68klinux-nat.c (old_fetch_inferior_registers)
6507 (old_store_inferior_registers): Likewise.
6508 * m32c-tdep.c (m32c_virtual_frame_pointer): Likewise.
6509 * irix5-nat.c (fetch_core_registers): Likewise.
6510 * hppa-tdep.c (hppa_frame_cache): Likewise.
6511 * hppa-linux-nat.c (hppa_linux_register_addr)
6512 (hppa_linux_fetch_inferior_registers)
6513 (hppa_linux_store_inferior_registers): Likewise.
6514 * hppa-hpux-nat.c (hppa_hpux_fetch_inferior_registers)
6515 (hppa_hpux_store_inferior_registers): Likewise.
6516 * amd64-nat.c (amd64_native_gregset_reg_offset)
6517 (amd64_supply_native_gregset,amd64_collect_native_gregset): Likewise.
6518 * dbug-rom.c (dbug_regname): Likewise.
6519 * m68hc11-tdep.c (m68hc11_frame_unwind_cache)
6520 (HARD_PAGE_REGNUM (comment)): Likewise.
6521 * gdbarch.sh (NUM_PSEUDO_REGS): Replace by gdbarch_num_pseudo_regs.
6522 * i386-tdep.c (i386_dbx_reg_to_regnum)
6523 (i386_svr4_reg_to_regnum): Likewise.
6524 * mi/mi-main.c (mi_cmd_data_list_register_names)
6525 (mi_cmd_data_list_changed_registers,mi_cmd_data_list_register_values)
6526 (mi_cmd_data_write_register_values): Likewise.
6527 * gdbarch.c, gdbarch.h: Regenerate.
6528 * tui/tui-regs.c (tui_show_register_group): Likewise.
6529 * xtensa-tdep.h (FP_ALIAS): Likewise.
6530 * user-regs.h: Likewise (comment).
6531 * user-regs.c (user_reg, user_reg_map_name_to_regnum): Likewise.
6532 * trad-frame.c (trad_frame_alloc_saved_regs): Likewise.
6533 * target-descriptions.h: Likewise (comment).
6534 * target.c (debug_print_register): Likewise.
6535 * stack.c (frame_info): Likewise.
6536 * stabsread.c (define_symbol): Likewise.
6537 * sh64-tdep.c (sh64_print_register,sh64_media_print_registers_info)
6538 (sh64_compact_print_registers_info): Likewise.
6539 * rs6000-tdep.c (rs6000_register_sim_regno): Likewise.
6540 * regcache.c (init_regcache_descr,register_size,regcache,regcache_save
6541 (regcache_restore,regcache_dump): Likewise.
6542 * mips-tdep.c (print_gp_register_row,mips_print_registers_info)
6543 (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
6544 (mips_stab_reg_to_regnum): Likewise.
6545 * findvar.c (value_of_register): Likewise.
6546 * infcmd.c (default_print_registers_info,registers_info)
6547 (print_vector_info,print_float_info): Likewise.
6548 * m68k-tdep.c (m68k_dwarf_reg_to_regnum): Likewise.
6549 * h8300-tdep.c (h8300_register_type): Likewise.
6550 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
6551 * frame.h (SIZEOF_FRAME_SAVED_REGS): Likewise.
6552 * xtensa-tdep.c (xtensa_register_type,xtensa_reg_to_regnum)
6553 (xtensa_pseudo_register_read,xtensa_pseudo_register_write): Likewise.
6554 * parse.c: Remove comment.
6555 * gdbarch.c, gdbarch.h: Regenerate
6557 2007-05-31 Markus Deuling <deuling@de.ibm.com>
6559 * gdbarch.sh (CANNOT_FETCH_REGISTER): Replace by
6560 gdbarch_cannot_fetch_register.
6561 * alpha-nat.c (fetch_osf_core_registers): Likewise.
6562 * hppa-linux-nat.c (fetch_register): Likewise.
6563 * inf-ptrace.c (inf_ptrace_fetch_register): Likewise.
6564 * m68klinux-nat.c (fetch_register): Likewise.
6565 * mipsnbsd-tdep.c (mipsnbsd_supply_reg, mipsnbsd_supply_fpreg):
6567 * gdbarch.sh (CANNOT_STORE_REGISTER): Replace by
6568 gdbarch_cannot_store_register.
6569 * hppa-linux-nat.c (store_register): Likewise.
6570 * inf-ptrace.c (inf_ptrace_store_register): Likewise.
6571 * regcache.c (regcache_raw_write): Likewise.
6572 * m68klinux-nat.c (store_register): Likewise.
6573 * mipsnbsd-tdep.c (mipsnbsd_fill_reg, mipsnbsd_fill_fpreg): Likewise.
6574 * gdbarch.c, gdbarch.h: Regenerate.
6576 2007-05-31 Markus Deuling <deuling@de.ibm.com>
6578 * gdbarch.sh (TARGET_OSABI): Replace by gdbarch_osabi.
6579 * gdbarch.c, gdbarch.h: Regenerate.
6581 2007-05-31 Markus Deuling <deuling@de.ibm.com>
6583 * gdbarch.sh (TARGET_CHAR_SIGNED): Replace by gdbarch_char_signed.
6584 * gdbtypes.c (build_gdbtypes, gdbtypes_post_init): Likewise.
6585 * gdbarch.c, gdbarch.h: Regenerate.
6587 2007-05-31 Markus Deuling <deuling@de.ibm.com>
6589 * gdbarch.sh (TARGET_BYTE_ORDER): Replace by gdbarch_byte_order.
6590 * ax-gdb.c (gen_bitfield_ref): Likewise.
6591 * mi/mi-main.c (get_register): Likewise.
6592 * findvar.c (default_value_from_register, extract_signed_integer)
6593 (extract_unsigned_integer, extract_long_unsigned_integer)
6594 (store_signed_integer, store_unsigned_integer): Likewise.
6595 * regcache.c (regcache_dump): Likewise.
6596 * value.c (lookup_internalvar, value_of_internalvar)
6597 (set_internalvar): Likewise.
6599 * valprint.c (print_binary_chars, print_octal_chars)
6600 (print_decimal_chars, print_hex_chars, print_char_chars): Likewise.
6601 * infcmd.c (default_print_registers_info): Likewise.
6602 * arch-utils.c (selected_byte_order, show_endian): Likewise.
6603 * stabsread.c (define_symbol): Likewise.
6604 * doublest.c (floatformat_from_length, floatformat_from_type)
6605 (extract_typed_floating, store_typed_floating): Likewise.
6606 * gdbarch.c, gdbarch.h: Regenerate.
6608 2007-05-31 Markus Deuling <deuling@de.ibm.com>
6610 * gdbarch.sh (CALL_DUMMY_LOCATION): Replace by
6611 gdbarch_call_dummy_location.
6612 * infcall.c (call_function_by_hand): Likewise.
6613 * inferior.h: Change comment.
6614 * arch-utils.c: Change comment.
6615 * gdbarch.c, gdbarch.h: Regenerate.
6617 2007-05-28 Joel Brobecker <brobecker@adacore.com>
6619 * solib-aix5.c: Delete.
6620 * Makefile.in (solib-aix5.o): Delete rule.
6622 2007-05-23 Daniel Jacobowitz <dan@codesourcery.com>
6624 * breakpoint.h (enum bpstat_what_main_action): Remove
6625 BPSTAT_WHAT_THROUGH_SIGTRAMP.
6626 * infrun.c (process_event_stop_test): Do not check for it.
6628 2007-05-22 Chris Dearman <chris@mips.com>
6629 Maciej W. Rozycki <macro@mips.com>
6631 * ser-unix.c (show_serial_hwflow): New function.
6632 (hardwire_raw): Add hardware flow control support.
6633 (_initialize_ser_hardwire): Add "set/show remoteflow".
6634 * Makefile.in (ser-unix.o): Depend on $(gdbcmd_h).
6635 * NEWS: Document the new command.
6637 2007-05-21 Ulrich Weigand <uweigand@de.ibm.com>
6639 * config/i386/tm-linux.h (sys_quotactl): Do not define.
6640 * configure.ac (sys_quotactl, START_INFERIOR_TRAPS_EXPECTED): Do not
6641 define for i[[3456]]86-*-linux* native configurations.
6642 * config.in, configure: Regenerate.
6644 2007-05-19 Joel Brobecker <brobecker@adacore.com>
6646 * rs6000-nat.c (xcoff_relocate_symtab): Do nothing if debugging
6647 a core file. Add comment in the function description.
6649 2007-05-18 Caroline Tice <ctice@apple.com>
6651 * c-valprint.c (c_value_print): If the initialized field of the
6652 value struct is 0, print out "[uninitialized]" before the value.
6653 * dwarf2expr.c (execute_stack_op): Initialize ctx->initialized field;
6654 allow DW_OP_GNU_uninit as legal op following a DW_OP_reg op or a
6655 DW_OP_regx op; add case for DW_OP_GNU_uninit and update
6656 ctx->initialized appropriately. Verify no location op follows
6658 * dwarf2expr.h (struct dwarf_expr_context): New field, initialized.
6659 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Add call to
6660 set_value_initialized.
6661 * dwarf2read.c (dwarf_stack_op_name): Add case for DW_OP_GNU_uninit.
6662 (decode_locdesc): Add case for DW_OP_GNU_uninit.
6663 * value.c (struct value): New field, initialized.
6664 (allocate_value): Initialize new field.
6665 (set_value_initialized): New function.
6666 (value_initialized): New function.
6667 * value.h (value_initialized): New extern declaration.
6668 (set_value_initialized): Likewise.
6670 2007-05-18 Caroline Tice <ctice@apple.com>
6672 * MAINTAINERS (Write After Approval): Add self.
6674 2007-05-17 Joel Brobecker <brobecker@adacore.com>
6676 * gdbtypes.c (make_reference_type): Preserve the type chain
6677 and set the length of all the variants of the pointer type.
6679 2007-05-17 Joel Brobecker <brobecker@adacore.com>
6681 * gdbtypes.c (make_pointer_type): Preserve the pointer type chain
6682 and set the length of all the variants of the pointer type.
6684 2007-05-17 Maciej W. Rozycki <macro@mips.com>
6686 * mips-tdep.c (mips_n32n64_push_dummy_call): Fix and reformat a
6688 (mips_o64_push_dummy_call): Reformat a comment.
6690 2007-05-17 Qinwei <qinwei@sunnorth.com.cn>
6692 * score-tdep.c (score_frame_cache->fp, score_analyze_prologue)
6693 (score_prologue_frame_base_address): Return fp to keep gdb print
6694 local variables correctly when debugging information is stabs.
6696 (score_analyze_prologue): For software watchpoint, fetch all the
6697 instructions from range [startaddr, pc] once and identify them locally
6698 to reduce memory access.
6699 (score_malloc_and_get_memblock, score_free_memblock)
6700 (score_adjust_memblock_ptr): New functions.
6701 (score_fetch_inst): Fetch single instruction or mutiple instructions.
6703 (score_target_can_use_watch, score_stopped_by_watch)
6704 (score_target_insert_watchpoint, score_target_remove_watchpoint)
6705 (score_target_insert_hw_breakpoint, score_target_remove_hw_breakpoint):
6706 New functions for remote & local hw-watchpoint and hw-breakpoint.
6708 2007-05-16 Alfred M. Szmidt <ams@gnu.org>
6710 * reply_mig_hack.awk: Check for `auto const mach_msg_type_t'
6711 declarations as well.
6713 2007-05-16 Ulrich Weigand <uweigand@de.ibm.com>
6715 * config/arm/embed.mt (DEPRECATED_TM_FILE): Set to tm-arm.h.
6716 * config/arm/tm-embed.h: Delete file.
6718 * arm-tdep.h (arm_software_single_step): Declare.
6719 * arm-tdep.c (arm_software_single_step): Make global.
6720 (arm_gdbarch_init): Move set_gdbarch_software_single_step call
6722 * arm-linux-tdep.c (arm_linux_init_abi): ... here ...
6723 * armnbsd-tdep.c (arm_netbsd_init_abi_common): ... here ...
6724 * armobsd-tdep.c (armobsd_init_abi): ... here ...
6725 * arm-wince-tdep.c (arm_wince_init_abi): ... and here.
6727 * arm-tdep.c (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT): No longer
6728 allow defines to be overriden by TM file.
6729 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Likewise. Also,
6730 change default to {0xbe,0xbe}.
6731 * armobsd-tdep.c (arm_obsd_thumb_le_breakpoint,
6732 arm_obsd_thumb_be_breakpoint): New global variables.
6733 (armobsd_init_abi): Override tdep->thumb_breakpoint and
6734 tdep->thumb_breakpoint_size.
6735 * arm-wince-tdep.c (arm_wince_thumb_le_breakpoint): New variable.
6736 (arm_wince_init_abi): Override tdep->thumb_breakpoint and
6737 tdep->thumb_breakpoint_size.
6739 * arm-tdep.c (arm_gdbarch_init): Add set_gdbarch_skip_trampoline_code.
6741 2007-05-16 Daniel Jacobowitz <dan@codesourcery.com>
6743 * NEWS: Mention removed "set mips stack-arg-size" and "set mips
6746 * mips-tdep.c (MIPS32_REGSIZE, MIPS64_REGSIZE): New constants.
6747 (size_auto, size_32, size_64, size_enums, mips_abi_regsize_string)
6748 (mips_stack_argsize_string, mips_stack_argsize): Delete.
6749 (mips_abi_regsize): Simplify.
6750 (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call)
6751 (mips_n32n64_return_value, mips_o32_push_dummy_call)
6752 (mips_o32_return_value, mips_o64_push_dummy_call)
6753 (mips_o64_return_value): Propogate constant register sizes. Use the
6754 ABI register size instead of mips_stack_argsize.
6755 (mips_dump_tdep): Don't print mips_stack_argsize.
6756 (_initialize_mips_tdep): Remove saved-gpreg-size and stack-arg-size
6759 2007-05-16 Daniel Jacobowitz <dan@codesourcery.com>
6761 * config/mips/linux.mt (DEPRECATED_TM_FILE): Delete.
6762 * config/mips/tm-linux.h: Delete.
6763 * mips-linux-tdep.c (mips_svr4_so_ops): New.
6764 (mips_linux_in_dynsym_resolve_code): Make static. Use
6765 svr4_in_dynsym_resolve_code.
6766 (mips_linux_init_abi): Initialize mips_svr4_so_ops. Call
6768 * solib-svr4.c (svr4_in_dynsym_resolve_code, svr4_so_ops): Make
6770 * solib-svr4.h (svr4_so_ops, svr4_in_dynsym_resolve_code): Declare.
6771 * Makefile.in (mips-linux-tdep.o): Update.
6772 * solib.c (set_solib_ops): New.
6773 (current_target_so_ops): Update comment.
6774 * solib.h (set_solib_ops): New prototype.
6776 2007-05-16 Chris Dearman <chris@mips.com>
6778 * printcmd.c (do_examine): Fix typos in a comment.
6780 2007-05-16 Richard Sandiford <richard@codesourcery.com>
6782 * configure.ac: Allow sysroots to be relocated under $prefix as
6783 well as $exec_prefix.
6784 * configure: Regenerate.
6786 2007-05-14 Ulrich Weigand <uweigand@de.ibm.com>
6788 * hppa-hpux-tdep.c: Do not include <dl.h> or <machine/save_state.h>.
6789 (offsetof): Do not define.
6790 (find_stub_with_shl_get): Use numerical value 3 instead of
6791 symbolic value TYPE_PROCEDURE.
6793 2007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
6795 * gdb_proc_service.h (paddr_t): Delete typedef.
6796 * proc-service.c (ps_addr_to_core_addr, core_addr_to_ps_addr): New.
6797 (ps_xfer_memory): Take a psaddr_t. Use ps_addr_to_core_addr.
6798 (ps_pglobal_lookup): Take a psaddr_t *. Use core_addr_to_ps_addr.
6799 (ps_pdread, ps_pdwrite, ps_ptread, ps_ptwrite): Take a psaddr_t.
6800 * sol-thread.c (gdb_ps_addr_t): Use psaddr_t instead of paddr_t.
6801 * Makefile.in (proc-service.o): Update.
6803 2007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
6805 * Makefile.in (mips-tdep.o): Update.
6806 * mips-tdep.c (mips_gdbarch_init): Register the dwarf2 CFI
6809 2007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
6811 * dwarf2-frame.c (dwarf2_frame_prev_register): Use pack_long
6812 instead of store_typed_address.
6813 * value.c (pack_long): New.
6814 (value_from_longest): Use it.
6815 * value.h (pack_long): New prototype.
6817 2007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
6819 * dwarf2-frame.c (read_encoded_value): Correct typo. Use
6820 DW_EH_PE_signed if appropriate.
6822 2007-05-14 Paul Brook <paul@codesourcery.com>
6823 Daniel Jacobowitz <dan@codesourcery.com>
6825 * dwarf2read.c (dwarf2_debug_line_missing_file_complaint): New
6827 (dwarf_decode_lines): Check for line info without a file.
6829 2007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
6831 * linux-thread-db.c (thread_db_pid_to_str): Print thread IDs
6834 2007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
6836 * jv-exp.y (push_fieldnames): Use STRUCTOP_PTR instead of
6838 * jv-lang.c (evaluate_subexp_java): Handle STRUCTOP_PTR instead of
6840 * jv-typeprint.c (java_print_type): Do not crash on NULL varstring.
6842 2007-05-14 Ulrich Weigand <uweigand@de.ibm.com>
6844 * gdbarch.sh (read_sp): Remove.
6845 * gdbarch.c, gdbarch.h: Regenerate.
6846 * frame.c (frame_sp_unwind): Do not call TARGET_READ_SP.
6848 * avr-tdep.c (avr_read_sp): Remove.
6849 (avr_unwind_sp): New function.
6850 (avr_gdbarch_init): Install unwind_sp instead of read_sp callback.
6851 * mips-tdep.c (mips_read_sp): Remove.
6852 (mips_unwind_sp): New function.
6853 (mips_gdbarch_init): Install unwind_sp instead of read_sp callback.
6854 * score-tdep.c (score_read_unsigned_register): Remove.
6855 (score_read_sp): Remove.
6856 (score_unwind_sp): New function.
6857 (score_gdbarch_init): Install unwind_sp instead of read_sp callback.
6859 2007-05-14 Maxim Grigoriev <maxim2405@gmail.com>
6861 * buildsym.c (start_subfile): Handle absolute pathnames
6862 while comparing subfile names.
6864 2007-05-13 Ulrich Weigand <uweigand@de.ibm.com>
6866 * hppa-hpux-tdep.c: Include "regcache.h".
6867 * hppa-linux-tdep.c: Likewise.
6868 * hppa-tdep.c: Include "gdb_stdint.h".
6869 (find_unwind_entry): Cast host pointer to uintptr_t before passing
6871 * Makefile.in: Update dependencies.
6873 2007-05-13 Ulrich Weigand <uweigand@de.ibm.com>
6875 * blockframe.c: Remove obsolete comments.
6876 * alpha-nat.c (fetch_osf_core_registers): Update comment.
6877 * arm-tdep.h (enum gdb_regnum): Remove obsolete part of comment.
6878 * hppa-tdep.h (enum hppa_regnum): Likewise.
6879 * mips-tdep.h: Likewise.
6880 * m68hc11-tdep.c: Likewise.
6882 2007-05-13 Ulrich Weigand <uweigand@de.ibm.com>
6884 * inferior.h (read_sp): Remove prototype.
6885 * regcache.c (read_sp): Remove.
6886 * gcore.c (derive_stack_segment): Use get_frame_sp instead of read_sp.
6887 * infcall.c (call_function_by_hand): Likewise.
6888 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Use regcache instead
6890 * rs6000-tdep.c (rs6000_push_dummy_call): Likewise.
6892 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
6894 * i386-linux-nat.c (i386_linux_resume): Use regcache functions
6895 instead of read_register and read_register_pid.
6897 * ia64-linux-nat.c (enable_watchpoints_in_psr): Use REGCACHE
6898 argument instead of PTID. Use regcache functions instead of
6900 (ia64_linux_insert_watchpoint): Update call.
6901 (ia64_linux_stopped_data_address): Use regcache functions
6902 instead of read_register_pid and write_register_pid.
6904 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
6906 * libunwind-frame.h (struct regcache): Add forward declaration.
6907 (libunwind_get_reg_special): Add REGCACHE argument.
6908 * libunwind-frame.c (libunwind_get_reg_special): Add REGCACHE
6909 argument. Pass it to unw_init_remote_p.
6911 * ia64-tdep.c (ia64_pseudo_register_read): Pass regcache to
6912 libunwind_get_reg_special.
6913 (ia64_access_reg): Remove "write" case.
6914 (ia64_access_fpreg): Likewise. Read from next_frame passed
6915 as callback argument instead of from current_regcache.
6916 (ia64_access_rse_reg): Remove "write" case. Read from regcache
6917 passed as callback argument instead of from current_regcache.
6918 (ia64_access_rse_fpreg): New function.
6919 (ia64_unw_rse_acce): Use it instead of ia64_access_fpreg.
6921 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
6923 * NEWS: Mention SPU overlay support.
6925 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
6927 * spu-tdep.c (spu_frame_unwind_cache): Add comment.
6929 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
6931 * breakpoint.c (remove_breakpoint): Do not remove software
6932 breakpoints in unmapped overlay sections.
6934 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
6936 * spu-tdep.c: Include "observer.h".
6937 (spu_frame_unwind_cache): Unwind PC through overlay return stubs.
6938 (spu_overlay_data): New variable.
6939 (struct spu_overlay_table): New type.
6940 (spu_get_overlay_table, spu_overlay_update_osect, spu_overlay_update,
6941 spu_overlay_new_objfile): New functions.
6942 (spu_gdbarch_init): Install spu_overlay_update.
6943 (_initialize_spu_tdep): Register spu_overlay_new_objfile,
6944 allocate spu_overlay_data objfile data.
6946 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
6948 * gdbarch.sh (overlay_update): New gdbarch function.
6949 (struct obj_section): Add forward declaration.
6950 * gdbarch.c, gdbarch.h: Regenerate.
6952 * symfile.c (simple_overlay_update): Make global.
6953 (target_overlay_update): Remove variable.
6954 (overlay_is_mapped): Call gdbarch_overlay_update instead of
6955 target_overlay_update.
6956 (overlay_load_command): Likewise.
6957 * symfile.h (struct obj_section): Add forward declaration.
6958 (simple_overlay_update): Add prototype.
6960 * m32r-tdep.c (m32r_gdbarch_init): Install simple_overlay_update.
6962 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
6964 * observer.sh: Add "struct objfile" forward declaration.
6965 * target.h (deprecated_target_new_objfile_hook): Remove.
6966 * symfile.c (deprecated_target_new_objfile_hook): Remove.
6967 (clear_symtab_users): Call observer_notify_new_objfile.
6968 (symbol_file_add_with_addrs_or_offsets): Likewise.
6969 * rs6000-nat.c: Include "observer.h".
6970 (vmap_ldinfo): Call observer_notify_new_objfile.
6971 (xcoff_relocate_core): Likewise.
6972 * remote.c (remote_new_objfile_chain): Remove.
6973 (remote_new_objfile): Do not call remote_new_objfile_chain.
6974 (_initialize_remote): Use observer_attach_new_objfile.
6975 * tui/tui-hooks.c (tui_target_new_objfile_chain): Remove.
6976 (tui_new_objfile_hook): Do not call tui_target_new_objfile_chain.
6977 (_initialize_tui_hooks): Use observer_attach_new_objfile.
6978 * aix-thread.c: Include "observer.h".
6979 (target_new_objfile_chain): Remove.
6980 (new_objfile): Do not call target_new_objfile_chain.
6981 (_initialize_aix_thread): Use observer_attach_new_objfile.
6982 * hpux-thread.c: Include "observer.h"
6983 (target_new_objfile_chain): Remove.
6984 (hpux_thread_new_objfile): Make static. Do not call
6985 target_new_objfile_chain.
6986 (_initialize_hpux_thread): Use observer_attach_new_objfile.
6987 * linux-thread-db.c: Include "observer.h".
6988 (target_new_objfile_chain): Remove.
6989 (thread_db_new_objfile): Do not call target_new_objfile_chain.
6990 (_initialize_thread_db): Use observer_attach_new_objfile.
6991 * sol-thread.c: Include "observer.h".
6992 (target_new_objfile_chain): Remove.
6993 (sol_thread_new_objfile): Make static. Do not call
6994 target_new_objfile_chain.
6995 (_initialize_sol_thread): Use observer_attach_new_objfile.
6996 * Makefile.in (aix-thread.o, hpux-thread.o, linux-thread-db.o,
6997 rs6000-nat.o, sol-thread.o, tui-hooks.o): Add dependency on
7000 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
7002 * gdbarch.sh (remote_translate_xfer_address): Remove.
7003 * gdbarch.h, gdbarch.c: Regenerate.
7004 * arch-utils.c (generic_remote_translate_xfer_address): Remove.
7005 * arch-utils.h (generic_remote_translate_xfer_address): Remove.
7006 * remote.c (remote_write_bytes_aux, remote_read_bytes): Do not
7007 call gdbarch_remote_translate_xfer_address.
7008 * frv-tdep.c (frv_gdbarch_init): Do not call
7009 set_gdbarch_remote_translate_xfer_address.
7010 * ia64-tdep.c (ia64_remote_translate_xfer_address): Remove.
7011 (ia64_gdbarch_init): Do not install it.
7013 2007-05-11 Bob Wilson <bob.wilson@acm.org>
7015 * NEWS: Mention change in handling the -tui option.
7017 2007-05-11 Daniel Jacobowitz <dan@codesourcery.com>
7019 * linux-thread-db.c (enable_thread_event_reporting): Fix comment
7022 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
7024 * breakpoint.c (single_step_breakpoint_inserted_here_p): New function.
7025 (breakpoint_inserted_here_p): Call it.
7026 (software_breakpoint_inserted_here_p): Likewise.
7028 2007-05-10 Ulrich Weigand <uweigand@de.ibm.com>
7030 * inf-ptrace.c (inf_ptrace_register_u_offset): Adapt parameter list.
7031 (inf_ptrace_fetch_register): Add register_u_offset callback parameters
7032 GDBARCH and STORE_P. Handle callback (CORE_ADDR) -1 return value.
7033 (inf_ptrace_store_register): Likewise.
7034 (inf_ptrace_trad_target): Adapt register_u_offset parameter list.
7035 * inf-ptrace.h (inf_ptrace_trad_target): Likewise.
7037 * vax-nat.c (vax_register_u_offset): Adapt parameter list.
7039 * linux-nat.c (linux_trad_target): Adapt parameter list.
7040 * linux-nat.h (linux_trad_target): Likewise.
7042 * alpha-linux-nat.c (alpha_linux_register_u_offset): Adapt parameters.
7044 * mips-linux-nat.c (mips_linux_cannot_fetch_register): Remove.
7045 (mips_linux_cannot_store_register): Likewise.
7046 (mips_linux_register_addr): Add GDBARCH and STORE_P parameters.
7047 Return (CORE_ADDR) -1 for registers that cannot be fetched or
7048 stored via ptrace. Use GDBARCH instead of current_gdbarch.
7049 (mips64_linux_register_addr): Likewise.
7050 (mips_linux_register_u_offset): Adapt parameter list. Pass
7051 GDBARCH and STORE_P on to mips{64}_linux_register_addr.
7053 * config/mips/linux.mh (NAT_FILE): Set to config/nm-linux.h.
7054 * config/mips/nm-linux.h: Delete file.
7056 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
7058 * remote.c (remote_detach): Error out if remote can't detach.
7060 2007-05-10 Luis Machado <luisgpm@br.ibm.com>
7062 * rs6000-tdep.c: (deal_with_atomic_sequence) Stores branch
7063 instruction's opcode in the "opcode" variable and declares new
7064 variable "closing_insn".
7066 2007-05-10 Chris Dearman <chris@mips.com>
7067 Maciej W. Rozycki <macro@mips.com>
7069 * cli/cli-setshow.c (do_setshow_command): Remove trailing
7070 whitespace when setting a var_filename.
7072 2007-05-09 Bob Wilson <bob.wilson@acm.org>
7074 * main.c (captured_main): Recognize -tui option and print an error
7075 message when the TUI is not configured.
7077 2007-05-09 Andreas Schwab <schwab@suse.de>
7079 * mipsnbsd-tdep.c (mipsnbsd_ilp32_fetch_link_map_offsets): Don't
7080 set removed members.
7081 (mipsnbsd_lp64_fetch_link_map_offsets): Likewise.
7083 2007-05-08 Ulrich Weigand <uweigand@de.ibm.com>
7085 * gdbarch.sh (deprecated_store_struct_return): Remove.
7086 * gdbarch.c, gdbarch.h: Regenerate.
7087 * frv-tdep.c (frv_store_struct_return): Remove.
7088 (frv_gdbarch_init): Do not install it.
7090 2007-05-08 Ulrich Weigand <uweigand@de.ibm.com>
7092 * config/i386/nm-i386sol2.h (USE_PROC_FS): Do not define.
7093 * config/mips/nm-irix5.h (USE_PROC_FS): Do not define.
7094 * config/nm-linux.h (USE_PROC_FS): Do not undefine.
7096 2007-05-08 Ulrich Weigand <uweigand@de.ibm.com>
7098 * spu-linux-nat.c: Include "gdb_stdint.h".
7099 (fetch_ppc_register): Use uint64_t instead of unsigned long long.
7100 (fetch_ppc_memory_1, store_ppc_memory_1): Likewise.
7101 (fetch_ppc_memory, store_ppc_memory): Fix coding style.
7102 (spu_symbol_file_add_from_memory): Use strtoulst instead of sscanf.
7103 (spu_child_wait): Mark up string for translation.
7105 2007-05-08 Paul Gilliam <pgilliam@us.ibm.com>
7106 Luis Machado <luisgpm@br.ibm.com>
7108 * rs6000-tdep.c: (LWARX_MASK, LWARX_INSTRUCTION, LDARX_INSTRUCTION,
7109 STWCX_MASK, STWCX_INSTRUCTION, STDCX_INSTRUCTION, BC_MASK,
7110 BC_INSTRUCTION): Define.
7111 (deal_with_atomic_sequence): New function.
7112 (rs6000_software_single_step): Call deal_with_atomic_sequence.
7113 (rs6000_gdbarch_init): Install deal_with_atomic_sequence as
7114 gdbarch_software_single_step routine.
7116 2007-05-07 Ulrich Weigand <uweigand@de.ibm.com>
7118 * spu-linux-nat.c (fetch_ppc_register, fetch_ppc_memory_1,
7119 store_ppc_memory_1, fetch_ppc_memory, store_ppc_memory,
7120 parse_spufs_run, spu_bfd_iovec_pread, spu_bfd_open,
7121 spu_symbol_file_add_from_memory, spu_child_post_startup_inferior,
7122 spu_child_post_attach, spu_fetch_inferior_registers,
7123 spu_store_inferior_registers, spu_xfer_partial): Store PPE-side
7124 memory addresses as ULONGEST, not CORE_ADDR.
7126 2007-05-07 Ulrich Weigand <uweigand@de.ibm.com>
7128 * gdbarch.sh: Add skip_permanent_breakpoint callback.
7129 * gdbarch.h, gdbarch.c: Regenerate.
7131 * infrun.c (SKIP_PERMANENT_BREAKPOINT): Remove default definition.
7132 (resume): Call gdbarch_skip_permanent_breakpoint instead of
7133 SKIP_PERMANENT_BREAKPOINT. Inline default case.
7135 * hppa-hpux-tdep.c (hppa_skip_permanent_breakpoint): Make static.
7136 Add REGCACHE argument. Use it instead of read/write_register.
7137 (hppa_hpux_init_abi): Install hppa_skip_permanent_breakpoint.
7139 * config/pa/tm-hppah.h: Delete file.
7140 * config/pa/hppa64.mt (DEPRECATED_TM_FILE): Set to tm-hppa.h.
7141 * config/pa/hppahpux.mt (DEPRECATED_TM_FILE): Likewise.
7143 2007-05-07 Daniel Jacobowitz <dan@codesourcery.com>
7145 * Makefile.in (c-lang.o, gnu-v3-abi.o): Update.
7146 * NEWS: Mention improved C++ thunk support.
7147 * c-lang.c (cplus_language_defn): Mention cplus_skip_trampoline.
7148 * cp-abi.c (cplus_skip_trampoline): New.
7149 * cp-abi.h (cplus_skip_trampoline): New prototype.
7150 (struct cp_abi_ops): Add skip_trampoline member.
7151 * gnu-v3-abi.c (gnuv3_skip_trampoline): New.
7152 (init_gnuv3_ops): Set skip_trampoline.
7154 2007-05-06 Daniel Jacobowitz <dan@codesourcery.com>
7156 * rs6000-tdep.c (struct frame_extra_info): Delete.
7158 2007-05-06 Daniel Jacobowitz <dan@codesourcery.com>
7160 * linux-thread-db.c: Update some FIXME comments.
7161 (thread_db_xfer_partial): Delete.
7162 (init_thread_db_ops): Do not set to_xfer_partial.
7164 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7166 * inftarg.c, infptrace.c: Remove files.
7167 * Makefile.in (ALLDEPFILES): Remove inftarg.c and infptrace.c
7168 (inftarg.o, infptrace.o): Remove rules.
7169 * gdbcore.h (register_addr): Remove prototype.
7170 * inferior.h (kill_inferior, store_inferior_registers,
7171 fetch_inferior_registers, attach, detach, ptrace_wait, child_resume,
7172 call_ptrace, pre_fork_inferior): Remove prototypes.
7173 * target.h (child_xfer_memory, child_pid_to_exec_file,
7174 child_core_file_to_sym_file, child_post_attach,
7175 child_post_startup_inferior, child_acknowledge_created_inferior,
7176 child_insert_fork_catchpoint, child_remove_fork_catchpoint,
7177 child_insert_vfork_catchpoint, child_remove_vfork_catchpoint,
7178 child_insert_exec_catchpoint, child_remove_exec_catchpoint,
7179 child_follow_fork, child_reported_exec_events_per_exec_call,
7180 child_has_exited, child_thread_alive): Remove prototypes.
7182 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7184 * sparc-nat.h (sparc_fetch_inferior_registers): Add prototype.
7185 (sparc_store_inferior_registers): Likewise.
7186 * sparc-nat.c (fetch_inferior_registers): Rename to ...
7187 (sparc_fetch_inferior_registers): ... this.
7188 (store_inferior_registers): Rename to ...
7189 (sparc_store_inferior_registers): ... this.
7190 (sparc_target): Update callback names.
7191 * sparc-linux.nat.c (_initialize_sparc_linux_nat): Likewise.
7192 * sparc64-linux.nat.c (_initialize_sparc64_linux_nat): Likewise.
7194 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7196 * linux-nat.c (child_post_attach): Rename to ...
7197 (linux_child_post_attach): ... this. Make static.
7198 (child_follow_fork): Rename to ...
7199 (linux_child_follow_fork): ... this. Make static.
7200 (child_insert_fork_catchpoint): Rename to ...
7201 (linux_child_insert_fork_catchpoint): ... this. Make static.
7202 (child_insert_vfork_catchpoint): Rename to ...
7203 (linux_child_insert_vfork_catchpoint): ... this. Make static.
7204 (child_insert_exec_catchpoint): Rename to ...
7205 (linux_child_insert_exec_catchpoint): ... this. Make static.
7206 (child_pid_to_exec_file): Rename to ...
7207 (linux_child_pid_to_exec_file): ... this. Make static.
7209 (linux_handle_extended_wait): Update call.
7210 (linux_xfer_partial): Update callback routine names.
7212 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7214 * configure.host (alpha*-*-osf[12]*): Remove support.
7215 * NEWS: Mention removed configurations.
7217 * config/alpha/alpha-osf1.mh: Delete file.
7218 * config/alpha/alpha-osf2.mh: Delete file.
7219 * config/alpha/alpha-osf3.mh (NATDEPFILES): Remove inftarg.o
7221 * config/alpha/nm-osf.h: Delete file.
7222 * config/alpha/nm-osf2.h: Delete file.
7223 * config/alpha/nm-osf3.h: Do not include "nm-osf2.h".
7224 (START_INFERIOR_TRAPS_EXPECTED): Copy from nm-osf.h.
7225 (PROCFS_DONT_TRACE_FAULTS): Copy from nm-osf2.h.
7227 * alpha-nat.c (ALPHA_UNIQUE_PTRACE_ADDR): Do not define.
7228 (register_addr, kernel_u_size): Remove.
7229 Do not check for "defined(USE_PROC_FS) || defined(HAVE_GREGSET_T)".
7231 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7233 * regcache.c (regcache_invalidate): New function.
7234 (register_cached): Remove.
7235 (set_register_cached): Remove.
7236 (deprecated_registers_fetched): Remove.
7237 (registers_changed): Use regcache_invalidate instead
7238 of set_register_cached.
7239 (regcache_raw_read): Update comment.
7241 * regcache.h (regcache_invalidate): Add prototype.
7242 (register_cached): Remove.
7243 (set_register_cached): Remove.
7244 (deprecated_registers_fetched): Remove.
7246 * findvar.c (value_of_register): Do not call register_cached.
7247 * frame.c (frame_register): Likewise.
7248 * tui/tui-regs.c (tui_get_register): Likewise.
7250 * remote.c (fetch_register_using_p): Do not call set_register_cached.
7251 (process_g_packet): Likewise.
7252 (remote_fetch_registers): Likewise.
7253 * remote-sim.c (gdbsim_fetch_register): Likewise.
7254 * mt-tdep.c (mt_select_coprocessor): Replace set_register_cached call
7255 by regcache_invalidate.
7256 (mt_pseudo_register_write): Likewise.
7257 * sh-tdep.c (sh_pseudo_register_write): Likewise.
7259 * corelow.c (get_core_registers): Replace deprecated_registers_fetched
7260 call by loop over regcache_raw_supply (..., NULL).
7262 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7264 * target.h (struct target_ops): Add REGCACHE parameter to
7265 to_prepare_to_store.
7266 (target_prepare_to_store): Likewise.
7267 * target.c (debug_to_prepare_to_store): Add REGCACHE parameter.
7268 (update_current_target): Adapt prepare_to_store de_fault rule.
7270 * regcache.c (regcache_raw_write): Pass regcache to
7271 target_prepare_to_store.
7273 * inftarg.c (child_prepare_to_store): Add REGCACHE parameter.
7274 Do not call CHILD_PREPARE_TO_STORE.
7275 * gnu-nat.c (gnu_prepare_to_store): Likewise.
7276 * procfs.c (procfs_prepare_to_store): Likewise.
7278 * inf-child.c (inf_child_prepare_to_store): Add REGCACHE parameter.
7279 * go32-nat.c (go32_prepare_to_store): Likewise.
7280 * monitor.c (monitor_prepare_to_store): Likewise.
7281 * nto-procfs.c (procfs_prepare_to_store): Likewise.
7282 * remote-m32r-sdi.c (m32r_prepare_to_store): Likewise.
7283 * remote-mips.c (mips_prepare_to_store): Likewise.
7284 * remote-sim.c (gdbsim_prepare_to_store): Likewise.
7285 * win32-nat.c (win32_prepare_to_store): Likewise.
7287 * remote.c (remote_prepare_to_store): Add REGCACHE parameter.
7288 Use it instead of current_regcache.
7290 * hpux-thread.c (hpux_thread_prepare_to_store): Add REGCACHE
7291 parameter. Pass it on to next target.
7292 * sol-thread.c (sol_thread_prepare_to_store): Likewise.
7294 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7296 * target.h (struct regcache): Add forward declaration.
7297 (struct target_ops): Add REGCACHE parameter to to_fetch_registers
7298 and to_store_registers target operations.
7299 (target_fetch_registers, target_store_registers): Update.
7301 * regcache.c (regcache_raw_read): Replace register_cached by
7302 regcache_valid_p. Pass regcache to target_fetch_registers.
7303 (regcache_raw_write): Pass regcache to target_store_registers.
7305 * arm-linux-nat.c (store_fpregister, store_fpregs, store_register,
7306 store_regs, store_wmmx_regs): Replace register_cached by
7309 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd): Pass current_regcache
7310 to target_fetch_registers calls.
7311 * corelow.c (core_open): Likewise.
7312 * linux-nat.c (linux_nat_corefile_thread_callback): Likewise.
7313 * proc-service.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
7314 ps_lsetfpregs): Likewise.
7315 * sol-thread.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
7316 ps_lsetfpregs): Likewise.
7317 * win32-nat.c (win32_resume): Likewise.
7318 * ia64-tdep.c (ia64_store_return_value): Pass current_regcache
7319 to target_store_registers call.
7320 * rs6000-tdep.c (rs6000_push_dummy_call): Likewise.
7322 * inferior.h (store_inferior_registers): Update prototype.
7323 (fetch_inferior_registers): Likewise.
7324 * gnu-nat.c (gnu_store_registers, gnu_fetch_registers): Likewise.
7325 * mips-linux-nat.c (super_fetch_registers, super_store_registers):
7326 Update function pointer signatures.
7328 * aix-thread.c (aix_thread_fetch_registers): Add REGCACHE parameter,
7329 use it instead of current_regcache, update calls.
7330 (aix_thread_store_registers): Likewise.
7331 * alphabsd-nat.c (alphabsd_fetch_inferior_registers): Likewise.
7332 (alphabsd_store_inferior_registers): Likewise.
7333 * amd64bsd-nat.c (amd64bsd_fetch_inferior_registers): Likewise.
7334 (amd64bsd_store_inferior_registers): Likewise.
7335 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers): Likewise.
7336 (amd64_linux_store_inferior_registers): Likewise.
7337 * arm-linux-nat.c (fetch_fpregister, fetch_fpregs, store_fpregister,
7338 store_fpregs, fetch_register, fetch_regs, store_register, store_regs,
7339 fetch_wmmx_regs, store_wmmx_regs): Likewise.
7340 (arm_linux_fetch_inferior_registers): Likewise.
7341 (arm_linux_store_inferior_registers): Likewise.
7342 * armnbsd-nat.c (fetch_register, fetch_regs, fetch_fp_register,
7343 fetch_fp_regs, armnbsd_fetch_registers): Likewise.
7344 (store_register, store_regs, store_fp_register, store_fp_regs,
7345 armnbsd_store_registers): Likewise.
7346 * bsd-kvm.c (bsd_kvm_fetch_pcb, bsd_kvm_fetch_registers): Likewise.
7347 * bsd-uthread.c (bsd_uthread_fetch_registers): Likewise.
7348 (bsd_uthread_store_registers): Likewise.
7349 * corelow.c (get_core_registers): Likewise.
7350 * go32-nat.c (fetch_register, go32_fetch_registers, store_register,
7351 go32_store_registers): Likewise.
7352 * hppabsd-nat.c (hppabsd_fetch_registers): Likewise.
7353 (hppabsd_store_registers): Likewise.
7354 * hppa-hpux-nat.c (hppa_hpux_fetch_register): Likewise.
7355 (hppa_hpux_fetch_inferior_registers): Likewise.
7356 (hppa_hpux_store_register): Likewise.
7357 (hppa_hpux_store_inferior_registers): Likewise.
7358 * hppa-linux-nat.c (fetch_register, store_register): Likewise.
7359 (hppa_linux_fetch_inferior_registers): Likewise.
7360 (hppa_linux_store_inferior_registers): Likewise.
7361 * hpux-thread.c (hpux_thread_fetch_registers): Likewise.
7362 (hpux_thread_store_registers): Likewise.
7363 * i386bsd-nat.c (i386bsd_fetch_inferior_registers): Likewise.
7364 (i386bsd_store_inferior_registers): Likewise.
7365 * i386gnu-nat.c (fetch_fpregs, gnu_fetch_registers, store_fpregs,
7366 gnu_store_registers): Likewise.
7367 * i386-linux-nat.c (fetch_register, store_register, fetch_regs,
7368 store_regs, fetch_fpregs, store_fpregs, fetch_fpxregs, store_fpxregs):
7370 (i386_linux_fetch_inferior_registers): Likewise.
7371 (i386_linux_store_inferior_registers): Likewise.
7372 * ia64-linux-nat.c (ia64_linux_fetch_register): Likewise.
7373 (ia64_linux_fetch_registers): Likewise.
7374 (ia64_linux_store_register): Likewise.
7375 (ia64_linux_store_registers): Likewise.
7376 * inf-child.c (inf_child_fetch_inferior_registers): Likewise.
7377 (inf_child_store_inferior_registers): Likewise.
7378 * inf-ptrace.c (inf_ptrace_fetch_register): Likewise.
7379 (inf_ptrace_fetch_registers): Likewise.
7380 (inf_ptrace_store_register): Likewise.
7381 (inf_ptrace_store_registers): Likewise.
7382 * infptrace.c (fetch_register, store_register): Likewise.
7383 (fetch_inferior_registers, store_inferior_registers): Likewise.
7384 * m32r-linux-nat.c (fetch_regs, store_regs): Likewise.
7385 (m32r_linux_fetch_inferior_registers): Likewise.
7386 (m32r_linux_store_inferior_registers): Likewise.
7387 * m68kbsd-nat.c (m68kbsd_fetch_inferior_registers): Likewise.
7388 (m68kbsd_store_inferior_registers): Likewise.
7389 * m68klinux-nat.c (fetch_register, old_fetch_inferior_registers,
7390 store_register, old_store_inferior_registers, fetch_regs, store_regs,
7391 fetch_fpregs, store_fpregs): Likewise.
7392 (m68k_linux_fetch_inferior_registers): Likewise.
7393 (m68k_linux_store_inferior_registers): Likewise.
7394 * m88kbsd-nat.c (m88kbsd_fetch_inferior_registers): Likewise.
7395 (m88kbsd_store_inferior_registers): Likewise.
7396 * mips64obsd-nat.c (mips64obsd_fetch_inferior_registers): Likewise.
7397 (mips64obsd_store_inferior_registers): Likewise.
7398 * mips-linux-nat.c (mips64_linux_regsets_fetch_registers): Likewise.
7399 (mips64_linux_regsets_store_registers): Likewise.
7400 (mips64_linux_fetch_registers): Likewise.
7401 (mips64_linux_store_registers): Likewise.
7402 * mipsnbsd-nat.c (mipsnbsd_fetch_inferior_registers): Likewise.
7403 (mipsnbsd_store_inferior_registers): Likewise.
7404 * monitor.c (monitor_fetch_register, monitor_store_register): Likewise.
7405 (monitor_fetch_registers, monitor_store_registers): Likewise.
7406 * nto-procfs.c (procfs_fetch_registers): Likewise.
7407 (procfs_store_registers): Likewise.
7408 * ppc-linux-nat.c (fetch_altivec_register, fetch_spe_register,
7409 fetch_register, supply_vrregset, fetch_altivec_registers,
7410 fetch_ppc_registers, ppc_linux_fetch_inferior_registers): Likewise.
7411 (store_altivec_register, store_spe_register, store_register,
7412 fill_vrregset, store_altivec_registers, store_ppc_registers,
7413 ppc_linux_store_inferior_registers): Likewise.
7414 * ppcnbsd-nat.c (ppcnbsd_fetch_inferior_registers): Likewise.
7415 (ppcnbsd_store_inferior_registers): Likewise.
7416 * ppcobsd-nat.c (ppcobsd_fetch_registers): Likewise.
7417 (ppcobsd_store_registers): Likewise.
7418 * procfs.c (procfs_fetch_registers, procfs_store_registers): Likewise.
7419 * remote.c (fetch_register_using_p, process_g_packet,
7420 fetch_registers_using_g, remote_fetch_registers): Likewise.
7421 (store_register_using_P, store_registers_using_G,
7422 remote_store_registers): Likewise.
7423 * remote-m32r-sdi.c (m32r_fetch_registers, m32r_fetch_register,
7424 m32r_store_register, m32r_store_register): Likewise.
7425 * remote-mips.c (mips_fetch_registers, mips_store_registers): Likewise.
7426 * remote-sim.c (gdbsim_fetch_register): Likewise.
7427 (gdbsim_store_register): Likewise.
7428 * rs6000-nat.c (fetch_register, store_register): Likewise.
7429 (rs6000_fetch_inferior_registers): Likewise.
7430 (rs6000_store_inferior_registers): Likewise.
7431 * s390-nat.c (fetch_regs, store_regs): Likewise.
7432 (fetch_fpregs, store_fpregs): Likewise.
7433 (s390_linux_fetch_inferior_registers): Likewise.
7434 (s390_linux_store_inferior_registers): Likewise.
7435 * shnbsd-nat.c (shnbsd_fetch_inferior_registers): Likewise.
7436 (shnbsd_store_inferior_registers): Likewise.
7437 * sol-thread.c (sol_thread_fetch_registers): Likewise.
7438 (sol_thread_store_registers): Likewise.
7439 * sparc-nat.c (fetch_inferior_registers): Likewise.
7440 (store_inferior_registers): Likewise.
7441 * spu-linux-nat.c (spu_fetch_inferior_registers): Likewise.
7442 (spu_store_inferior_registers): Likewise.
7443 * target.c (debug_print_register): Likewise.
7444 (debug_to_fetch_registers, debug_to_store_registers): Likewise.
7445 * vaxbsd-nat.c (vaxbsd_fetch_inferior_registers): Likewise.
7446 (vaxbsd_store_inferior_registers): Likewise.
7447 * win32-nat.c (do_win32_fetch_inferior_registers): Likewise.
7448 (win32_fetch_inferior_registers): Likewise.
7449 (win32_store_inferior_registers): Likewise.
7451 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7453 * gdbcore.h (struct regcache): Add forward declaration.
7454 (struct core_fns): Add REGCACHE argument to core_read_registers
7456 * corelow.c (get_core_register_section): Add REGCACHE argument,
7457 use it instead of current_regcache, pass it to core_read_registers
7459 (get_core_registers): Add current_regcache as parameter to
7460 get_core_register_section calls.
7462 * alpha-nat.c (fetch_osf_core_registers): Add REGCACHE argument,
7463 use it instead of current_regcache.
7464 * armnbsd-nat.c (fetch_core_registers): Likewise.
7465 (fetch_elfcore_registers): Likewise.
7466 * core-regset.c (fetch_core_registers): Likewise.
7467 * cris-tdep.c (fetch_core_registers): Likewise.
7468 * irix5-nat.c (fetch_core_registers): Likewise.
7469 * m68klinux-nat.c (fetch_core_registers): Likewise.
7470 * mips-linux-tdep.c (fetch_core_registers): Likewise.
7471 * win32-nat.c (fetch_elf_core_registers): Likewise.
7473 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7475 * gregset.h (struct regcache): Add forward declaration.
7476 (supply_gregset): Add REGCACHE parameter, make GREGS const.
7477 (supply_fpregset): Add REGCACHE parameter, make FPREGS const.
7478 (supply_fpxregset): Add REGCACHE parameter, make FPXREGS const.
7479 (fill_gregset): Add REGCACHE parameter.
7480 (fill_fpregset): Likewise.
7481 (fill_fpxregset): Likewise.
7483 Update all definitions accordingly:
7484 * alphabsd-nat.c, alpha-linux-nat.c, alpha-nat.c, amd64-linux-nat.c,
7485 arm-linux-nat.c, hppa-linux-nat.c, i386gnu-nat.c, i386-linux-nat.c,
7486 i386-sol2-nat.c, i386v4-nat.c, ia64-linux-nat.c, irix5-nat.c,
7487 m32r-linux-nat.c, m68klinux-nat.c, mips-linux-nat.c, ppc-linux-nat.c,
7488 s390-nat.c, sparc64-linux-nat.c, sparc-linux-nat.c, sparc-sol2-nat.c
7489 (supply_gregset): Add REGCACHE parameter, use it instead of
7490 current_regcache. Make GREGSETP parameter const, adapt casts.
7491 (supply_fpregset): Add REGCACHE parameter, use it instead of
7492 current_regcache. Make FPREGSETP parameter const, adapt casts.
7493 (fill_gregset): Add REGCACHE parameter, use it instead of
7495 (fill_fpregset): Likewise.
7497 Update all callers to pass in current_regcache as the new argument:
7498 * core-regset.c: Include "regcache.h".
7499 (fetch_core_registers): Update supply_gregset,and supply_fpregset calls.
7500 * procfs.c: Include "regcache.h".
7501 (procfs_fetch_registers): Update supply_gregset, supply_fpregset calls.
7502 (procfs_store_registers): Update fill_gregset, fill_fpregset calls.
7503 (procfs_do_thread_registers): Likewise.
7504 (procfs_make_note_section): Likewise.
7505 * proc-service.c: Include "regcache.h".
7506 (ps_lgetregs): Update fill_gregset call.
7507 (ps_lsetregs): Update supply_gregset call.
7508 (ps_lgetfpregs): Update fill_fpregset call.
7509 (ps_lsetfpregs): Update supply_fpregset call.
7510 * sol-thread.c (sol_thread_fetch_registers): Update supply_gregset,
7511 supply_fpregset calls.
7512 (sol_thread_store_registers): Update fill_gregset, fill_fpregset calls.
7513 (ps_lgetregs): Update fill_gregset call.
7514 (ps_lsetregs): Update supply_gregset call.
7515 (ps_lgetfpregs): Update fill_fpregset call.
7516 (ps_lsetfpregs): Update supply_fpregset call.
7518 * linux-nat.c (linux_nat_do_thread_registers): Update fill_gregset,
7519 fill_fpregset, and fill_fpxregset calls.
7520 * i386-linux-nat.c (fetch_regs): Update supply_gregset call.
7521 (store_regs): Update fill_gregset call.
7522 (fetch_fpregs): Update supply_fpregset call.
7523 (store_fpregs): Update fill_fpregset call.
7524 (fetch_fpxregs): Update supply_fpxregset call.
7525 (store_fpxregs): Update fill_fpxregset call.
7526 * m32r-linux-nat.c (fetch_regs): Update supply_gregset call.
7527 (store_regs): Update fill_gregset call.
7528 * m68klinux-nat.c (fetch_regs): Update supply_gregset call.
7529 (store_regs): Update fill_gregset call.
7530 (fetch_fpregs): Update supply_fpregset call.
7531 (store_fpregs): Update fill_fpregset call.
7532 (fetch_core_registers): Update supply_gregset, supply_fpregset calls.
7533 * s390-nat.c (fetch_regs): Update supply_gregset call.
7534 (store_regs): Update fill_gregset call.
7535 (fetch_fpregs): Update supply_fpregset call.
7536 (store_fpregs): Update fill_fpregset call.
7538 * Makefile.in (core-regset.o, procfs.o, proc-service.o): Update
7541 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7543 * monitor.c (monitor_supply_register): Add REGCACHE parameter, use
7544 it instead of current_regcache.
7545 (parse_register_dump): Add REGCACHE parameter, pass it to
7546 supply_register callback.
7547 (monitor_dump_reg_block): Add REGCACHE parameter, pass it to
7548 parse_register_dump.
7549 (monitor_dump_regs): Add REGCACHE parameter, pass it to
7550 parse_register_dump and dumpregs callback.
7551 (monitor_wait): Pass current_regcache to parse_register_dump and
7553 (monitor_fetch_register): Pass current_regcache to
7554 monitor_supply_register.
7555 (monitor_fetch_registers): Pass current_regcache to
7557 * monitor.h (struct monitor_ops): Add REGCACHE parameter to
7558 supply_register and dumpregs callbacks.
7559 (monitor_supply_register, monitor_dump_reg_block): Update
7561 * dbug-rom.c (dbug_supply_register): Add REGCACHE parameter. Pass
7562 it to monitor_supply_register.
7563 * dink32-rom.c (dink32_supply_register): Likewise.
7564 * ppcbug-rom.c (ppcbug_supply_register): Likewise.
7565 * m32r-rom.c (m32r_supply_register): Likewise. Also, use REGCACHE
7566 instead of current_regcache.
7568 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7570 * i386-nto-tdep.c (i386nto_supply_gregset, i386nto_supply_fpregset):
7571 Add REGCACHE parameter. Use it instead of current_regcache.
7572 (i386nto_supply_regset): Add REGCACHE parameter, pass it to
7573 i386nto_supply_gregset and i386nto_supply_fpregset.
7574 (i386nto_regset_fill): Add REGCACHE parameter; use it instead
7575 of current_regcache.
7577 * nto-procfs.c (procfs_fetch_registers): Pass current_regcache to
7578 nto_supply_ helper functions.
7579 (procfs_store_registers): Pass current_regcache to nto_regset_fill.
7581 * nto-tdep.c (nto_dummy_supply_regset): Add REGCACHE parameter.
7583 * nto-tdep.h (struct nto_target_ops): Add REGCACHE parameter to
7584 supply_greget, supply_fpregset, supply_altregset, supply_regset,
7585 and regset_fill member function pointers.
7586 (nto_dummy_supply_regset): Adapt prototype.
7588 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7590 * shnbsd-tdep.c (shnbsd_supply_reg): Add REGCACHE parameter, use it
7591 instead of current_regcache. Make REGS const.
7592 (shnbsd_fill_reg): Add REGCACHE parameter; replace current_regcache.
7593 * shnbsd-tdep.h (shnbsd_supply_reg, shnbsd_fill_reg): Update
7595 * shnbsd-nat.c: Include "regcache.h".
7596 (shnbsd_fetch_inferior_registers): Pass current_regcache to
7598 (shnbsd_store_inferior_registers): Pass current_regcache to
7600 * Makefile.in (shbsd-nat.o): Update dependencies.
7602 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7604 * mips-linux-tdep.c (supply_32bit_reg): Add REGCACHE parameter. Use it
7605 instead of current_regcache.
7606 (mips_supply_gregset): Likewise. Pass REGCACHE to supply_32bit_reg.
7607 Make GREGSETP const, remove superfluous casts.
7608 (mips_fill_gregset): Add REGCACHE parameter; replace current_regcache.
7609 (mips_supply_fpregset): Likewise. Make FPREGSETP const, remove
7611 (mips_fill_fpregset): Add REGCACHE parameter; replace current_regcache.
7612 (supply_64bit_reg): Likewise
7613 (mips64_supply_gregset): Likewise. Pass REGCACHE to supply_64bit_reg.
7614 Make GREGSETP const, adapt casts accordingly.
7615 (mips64_fill_gregset): Add REGCACHE parameter; replace current_regcache.
7616 (mips64_supply_fpregset): Likewise. Make FPREGSET const, adapt
7618 (mips64_fill_fpregset): Add REGCACHE parameter; replace current_regcache.
7619 (fetch_core_registers): Pass current_regcache to mips{64}_(supply|fill)_
7621 * mips-linux-tdep.h (mips_supply_gregset, mips_fill_gregset,
7622 mips_supply_fpregset, mips_fill_fpregset, mips64_supply_gregset,
7623 mips64_fill_gregset, mips64_supply_fpregset, mips64_fill_fpregset):
7625 * mips-linux-nat.c: Include "regcache.h".
7626 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): Pass
7627 current_regcache to mips{64}_(supply|fill)_ helper routines.
7628 (mips64_linux_regsets_fetch_registers): Likewise.
7629 (mips64_linux_regsets_store_registers): Likewise.
7631 * mipsnbsd-tdep.c (mipsnbsd_supply_reg, mipsnbsd_supply_fpreg): Add
7632 REGCACHE argument; replace current_regcache. Make REGS const.
7633 (mipsnbds_fill_reg, mipsnbsd_fill_fpreg): Add REGCACHE argument;
7634 replace current_regcache.
7635 * mipsnbsd-tdep.h (ipsnbsd_supply_reg, mipsnbsd_supply_fpreg,
7636 mipsnbds_fill_reg, mipsnbsd_fill_fpreg): Adapt prototypes.
7637 * mipsnbsd-nat.c (mipsnbsd_fetch_inferior_registers,
7638 mipsnbsd_store_inferior_registers): Pass current_regcache to
7639 mipsnbsd_(supply|fill)_... helper routines.
7641 * Makefile.in (mips-linux-nat.o): Update dependencies.
7643 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7645 * i387-tdep.c (i387_fill_fsave, i387_fill_fxsave): Remove.
7646 * i387-tdep.h (i387_fill_fsave, i387_fill_fxsave): Remove prototypes.
7647 * i368-linux-nat.c (supply_fpregset, supply_fpxregset): Replace
7648 i387_fill_fsave and i387_fill_fxsave calls by inline copies.
7649 * i386-nto-tdep.c (i386nto_regset_fill): Likewise.
7650 * i386gnu-nat.c (store_fpregs): Likewise.
7651 * i386v4-nat.c (fill_fpregset): Likewise.
7652 * go32-nat.c (store_register, go32_store_registers): Likewise.
7654 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7656 * cris-tdep.c (supply_gregset): Rename to ...
7657 (cris_supply_gregset): ... this. Add REGCACHE parameter. Use it
7658 instead of current_regcache.
7659 (fetch_core_registers): Update call. Pass current_regcache.
7661 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7663 * arnmnbsd-nat.c (supply_gregset): Rename to ...
7664 (arm_supply_gregset): ... this. Add REGCACHE parameter.
7665 Use it instead of current_regcache.
7666 (supply_fparegset): Rename to ...
7667 (arm_supply_fparegset): ... this. Add REGCACHE parameter.
7668 Use it instead of current_regcache.
7669 (fetch_regs, fetch_fp_regs): Update calls. Pass current_regcache.
7670 (fetch_core_registers, fetch_elfcore_registers): Likewise.
7672 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7674 * alpha-tdep.c (alpha_supply_int_regs, alpha_fill_int_regs,
7675 alpha_supply_fp_regs, alpha_fill_fp_regs): Add REGCACHE parameter,
7676 use it instead of current_regcache.
7677 * alpha-tdep.h (struct regcache): Add forward declaration.
7678 (alpha_supply_int_regs, alpha_fill_int_regs, alpha_supply_fp_regs,
7679 alpha_fill_fp_regs): Update prototypes.
7681 * alpha-nat.c: (supply_gregset, fill_gregset, supply_fpregset,
7682 fill_fpregset): Pass current_regcache to alpha_supply/fill_ routines.
7683 * alpha-linux-nat.c: Include "regcache.h".
7684 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): Pass
7685 current_regcache to alpha_supply/fill_ routines.
7687 * alphabsd-tdep.c: Include "regcache.h".
7688 (alphabsd_supply_reg, alphabsd_supply_fpreg): Add REGCACHE paramter,
7689 pass it to alpha_supply_ routines. Make REGS const.
7690 (alphabsd_fill_reg, alphabsd_fill_fpreg): Add REGCACHE parameter,
7691 pass it to alpha_fill_ routines.
7692 * alphabsd-tdep.h (struct regcache): Add forward declaration.
7693 (alphabsd_supply_reg, alphabsd_fill_reg, alphabsd_supply_fpreg,
7694 alphabsd_fill_fpreg): Update prototypes.
7696 * alphanbsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
7697 fill_fpregset, alphabsd_fetch_inferior_registers,
7698 alphabsd_store_inferior_registers): Pass current_regcache to
7699 alphabsd_supply/fill_ routines.
7701 * Makefile.in (alpha-linux-nat.o, alphabsd-tdep.o): Update
7704 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7706 * aix-thread.c (supply_gprs64, supply_reg32, supply_fprs,
7707 supply_sprs64, supply_sprs32): Add REGCACHE parameter, use it
7708 instead of current_regcache.
7709 (fetch_regs_user_thread, fetch_regs_kernel_thread): Add
7710 REGCACHE parameter, pass it to supply_ routines.
7711 (aix_thread_fetch_registers): Pass current_regcache to
7712 fetch_regs_user_thread and fetch_regs_kernel_thread.
7714 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs64, fill_sprs32):
7715 Add REGCACHE parameter, use it instead of current_regcache.
7716 Call regcache_valid_p instead of register_cached.
7717 (store_regs_user_thread, store_regs_kernel_thread): Likewise.
7718 Also, pass REGCACHE to fill_ routines.
7719 (aix_thread_store_registers): Pass current_regcache to
7720 store_regs_user_thread and store_regs_kernel_thread.
7722 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7724 * m32r-linux-nat.c (supply_gregset): Do not modify contents
7725 pointed to by GREGSETP.
7727 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7729 * irix5-nat.c (fill_gregset): Use regcache_raw_collect instead
7730 of regcache_raw_read_signed.
7731 (fill_fpregset): Use regcache_raw_collect instead of
7734 2007-05-03 Kevin Buettner <kevinb@redhat.com>
7736 * mips-tdep.c (mips_eabi_push_dummy_call): When pushing floating
7737 point arguments, test explicitly for use of the EABI32 ABI
7738 instead of inferring this condition from tests on register
7741 2007-05-03 Kevin Buettner <kevinb@redhat.com>
7743 * breakpoint.c (set_raw_breakpoint): Adjust breakpoint's address
7744 prior to allocating its location.
7746 2007-05-02 Maciej W. Rozycki <macro@mips.com>
7748 * mips-tdep.c (mips_o32_push_dummy_call): Remove conditions
7749 based on mips_abi_regsize() whose result is known in advance.
7750 (mips_o64_push_dummy_call): Likewise.
7752 2007-04-29 Ulrich Weigand <uweigand@de.ibm.com>
7754 * m68klinux-nat.c: Remove #ifndef USE_PROC_FS check.
7755 * m68k-tdep.c: Remove code within #ifdef USE_PROC_FS.
7757 * mips-linux-nat.c: Include "gregset.h".
7758 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): Move
7759 from mips-linux-tdep.c. Change parameter type to gdb_gregset_t.
7760 * mips-linux-tdep.c (supply_gregset, fill_gregset, supply_fpregset,
7761 fill_fpregset): Move to mips-linux-nat.c.
7763 * Makefile.in (m68k-tdep.o, mips-linux-nat.o): Update dependencies.
7765 2007-04-28 Ulrich Weigand <uweigand@de.ibm.com>
7767 * regcache.c (deprecated_read_register_gen): Remove, inline ...
7768 (read_register): ... here.
7769 (deprecated_write_register_gen): Remove, inline ...
7770 (write_register): ... here.
7771 * regcache.h (deprecated_read_register_gen): Remove prototype.
7772 (deprecated_write_register_gen): Likewise.
7774 * remote-sim.c (gdbsim_store_register): Replace call to
7775 deprecated_read_register_gen with regcache_cooked_read.
7776 * target.c (debug_print_register): Replace calls to
7777 deprecated_read_register_gen and read_register with
7778 regcache_cooked_read.
7780 2007-04-28 Ulrich Weigand <uweigand@de.ibm.com>
7782 * hpux-thread.c (hpux_thread_store_registers): Use
7783 regcache_raw_collect, not regcache_raw_read.
7784 * irix5-nat.c (fetch_core_registers): Use regcache_raw_supply,
7785 not regcache_raw_write.
7787 2007-04-28 Ulrich Weigand <uweigand@de.ibm.com>
7789 * gdbarch.sh: Remove deprecated_register_byte.
7790 * gdbarch.c, gdbarch.h: Regenerate.
7791 * arch-utils.h (generic_register_size, generic_register_byte): Remove.
7792 * arch-utils.c (generic_register_size, generic_register_byte): Remove.
7794 * regcache.h (regcache_valid_p): Make REGCACHE parameter const.
7795 * regcache.c (regcache_valid_p): Allow to query cooked registers in
7796 read-only register caches. Make REGCACHE parameter const.
7797 (regcache_dump): Do not check DEPRECATED_REGISTER_BYTE.
7799 * mi/mi-main.c (old_regs): Remove.
7800 (mi_setup_architecture_data, _initialize_mi_main): Remove.
7801 (register_changed_p): Reimplement to compare two register caches.
7802 (mi_cmd_data_list_changed_registers): Update caller.
7803 * mi/mi-main.h (mi_setup_architecture_data): Remove.
7804 * mi/mi-interp.c (mi_interpreter_init): Do not call
7805 mi_setup_architecture_data.
7807 2007-04-28 Ulrich Weigand <uweigand@de.ibm.com>
7809 * alpha-nat.c (ALPHA_REGSET_BASE, ALPHA_REGSET_UNIQUE): Do not define,
7810 inline definition at the places the macros are used.
7811 * alpha-linux-nat.c (ALPHA_REGSET_BASE, ALPHA_REGSET_UNIQUE): Likewise.
7813 2007-04-28 Ulrich Weigand <uweigand@de.ibm.com>
7815 * rs6000-aix-tdep.c: Include "regcache.h", "regset.h", and
7817 (rs6000_aix32_reg_offsets, rs6000_aix64_reg_offsets): New variables.
7818 (rs6000_aix_supply_regset, rs6000_aix_collect_regset): New functions.
7819 (rs6000_aix32_regset, rs6000_aix64_regset): New variables.
7820 (rs6000_aix_regset_from_core_section): New function.
7821 (rs6000_aix_init_osabi): Register it.
7822 (_initialize_rs6000_aix_tdep): Register GDB_OSABI_AIX osabi and
7823 sniffer for bfd_arch_powerpc as well as bfd_arch_rs6000.
7824 * rs6000-nat.c (CoreRegs): Do not define type.
7825 (fetch_core_registers, rs6000_core_fns): Remove.
7826 (_initialize_core_rs6000): Do not register it. Rename to ...
7827 (_initialize_rs6000_nat): ... this.
7828 * Makefile.in (rs6000-aix-tdep.o): Update dependencies.
7830 2007-04-27 Kevin Buettner <kevinb@redhat.com>
7832 * dwarf2expr.c (unsigned_address_type): Add forward declaration.
7833 (dwarf2_read_address): Sign extend return address as required by
7834 target architecture.
7836 2007-04-27 Kevin Buettner <kevinb@redhat.com>
7838 * solib-frv.c (lm_base): Bail out if the main executable has
7841 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
7843 * alpha-linux-tdep.c (alpha_linux_supply_fpregset): Correct location
7844 of FPCR register in fpregset.
7846 2007-04-27 Maciej W. Rozycki <macro@mips.com>
7848 * Makefile.in (gdbtk-wrapper.o): Update dependencies.
7849 (gdbtk-varobj.o, gdbtk-cmds.o, gdbtk-stack.o): Likewise.
7851 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
7853 * config/rs6000/nm-rs6000.h (CHILD_SPECIAL_WAITSTATUS): Remove.
7854 * rs6000-nat.c (rs6000_wait): New function.
7855 (_initialize_core_rs6000): Install it as to_wait target method.
7856 * target.c (store_waitstatus): Don't check CHILD_SPECIAL_WAITSTATUS.
7858 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
7860 * config/rs6000/nm-rs6000.h (TARGET_CREATE_INFERIOR_HOOK): Remove.
7861 * fork-child.c (fork_inferior): Don't call TARGET_CREATE_INFERIOR_HOOK.
7862 * rs6000-nat.c (super_create_inferior): New variable.
7863 (rs6000_create_inferior): Make static. Adapt argument list. Call
7864 original version of create_inferior via super_create_inferior.
7865 (_initialize_core_rs6000): Install to_create_inferior target method.
7867 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
7869 * aix-thread.c (aix_thread_xfer_memory): Replace by ...
7870 (aix_thread_xfer_partial): ... this.
7871 (init_aix_thread_ops): Install to_xfer_partial instead
7872 of deprecated_xfer_memory target method.
7874 * config/powerpc/aix.mh (NATDEPFILES): Remove infptrace.o
7875 and inftarg.o, add inf-ptrace.o.
7876 * config/rs6000/nm-rs6000.h (FETCH_INFERIOR_REGISTERS,
7877 CHILD_XFER_MEMORY, KERNEL_U_SIZE, kernel_u_size): Remove.
7878 * rs6000-nat.c: Include "inf-ptrace.h" and "gdb_stdint.h".
7879 (fetch_inferior_registers): Rename to ...
7880 (rs6000_fetch_inferior_registers): ... this. Make static.
7881 (store_inferior_registers): Rename to ...
7882 (rs6000_store_inferior_registers): ... this. Make static.
7883 (read_word, child_xfer_memory): Remove.
7884 (rs6000_xfer_partial): New function.
7885 (kernel_u_size): Remove.
7886 (_initialize_core_rs6000): Add inf_ptrace-based target.
7887 * Makefile.in (rs6000-nat.o): Update dependencies.
7889 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
7891 * inf-ptrace.c: Include "gdb_stdint.h".
7892 (inf_ptrace_xfer_partial): Use "uintptr_t" instead of "long" as
7893 intermediate type when casting CORE_ADDR to PTRACE_TYPE_ARG3.
7894 (inf_ptrace_fetch_register): Add intermediate cast to "uintptr_t"
7895 before casting CORE_ADDR to PTRACE_TYPE_ARG3.
7896 (inf_ptrace_store_register): Likewise.
7897 * Makefile.in (inf-ptrace.o): Update dependencies.
7899 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
7901 * configure.host (rs6000-*-*): Merge with powerpc-*-aix* rules.
7902 * configure.tgt (rs6000-*-*): Likewise.
7903 * config/rs6000/aix4.mh: Delete file.
7904 * config/rs6000/aix4.mt: Delete file.
7905 * config/rs6000/rs6000.mh: Delete file.
7906 * config/rs6000/rs6000.mt: Delete file.
7908 * config/powerpc/nm-aix.h: Delete file.
7909 * config/powerpc/aix.mh (NAT_FILE): Set to config/rs6000/nm-rs6000.h.
7911 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
7913 * aix-thread.c (fill_sprs32): Change argument types to "uint32_t *".
7914 Remove obsolete part of comment.
7915 (store_regs_user_thread): Use uint32_t temporaries when calling
7917 (store_regs_kernel_thread): Likewise. Add assertion to verify
7918 correct size of struct ptsprs members.
7919 (aix_thread_xfer_memory): Fix type of myaddr.
7920 (aix_thread_extra_thread_info): Fix compiler warning.
7921 * rs6000-nat.c (rs6000_ptrace64): Change type of buf to "void *".
7922 (fetch_register, store_register): Adapt callers.
7924 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
7926 * vec.h (vec_free): Rename to vec_free_. Adapt users.
7928 2007-04-25 Ulrich Weigand <uweigand@de.ibm.com>
7930 * alpha-linux-tdep.c: Include "gdb_string.h", "regset.h",
7932 (alpha_linux_supply_gregset, alpha_linux_supply_fpregset): New.
7933 (alpha_linux_gregset, alpha_linux_fpregset): New variables.
7934 (alpha_linux_regset_from_core_section): New function.
7935 (alpha_linux_init_abi): Install it.
7936 * alpha-linux-nat.c: Do not include "gdbcore.h". Include
7937 "alpha-tdep.h", <sys/ptrace.h>, <alpha/ptrace.h>,
7938 <sys/procfs.h>, and "gregset.h".
7939 (ALPHA_REGSET_BASE, ALPHA_REGSET_UNIQUE, ALPHA_UNIQUE_PTRACE_ADDR):
7940 Move from config/alpha/nm-linux.h.
7941 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): Copy
7943 (alpha_linux_register_u_offset): Inline register_addr from alpha-nat.c.
7944 * alpha-nat.c: Remove #ifdef __linux__ section.
7945 (fetch_elf_core_registers, alpha_elf_core_fns): Remove.
7946 (_initialize_core_alpha): Do not register alpha_elf_core_fns.
7947 (ALPHA_UNIQUE_PTRACE_ADDR, ALPHA_REGSET_UNIQUE): Define unconditionally.
7948 (ALPHA_REGSET_BASE): Move from config/alpha/nm-osf.h.
7949 * config/alpha/alpha-linux.mh (NAT_FILE): Set to config/nm-linux.h.
7950 (NATDEPFILES): Remove alpha-nat.o.
7951 * config/alpha/nm-linux.h: Delete file.
7952 * config/alpha/nm-osf.h (ALPHA_REGSET_BASE): Move to alpha-nat.c.
7953 * Makefile.in (alpha-linux-nat.o): Update dependencies.
7954 (alpha-linux-tdep.o): Likewise.
7956 2007-04-25 Ulrich Weigand <uweigand@de.ibm.com>
7958 * mips-linux-nat.c: No longer include "gdbcore.h".
7959 (mips_linux_register_addr): Move from mips-linux-tdep.c.
7960 (mips64_linux_register_addr): Likewise.
7961 (mips_linux_register_u_offset): Call mips_linux_register_addr or
7962 mips64_linux_register_addr instead of register_addr.
7963 * mips-linux-tdep.c (mips_linux_register_addr,
7964 mips64_linux_register_addr): Move to mips-linux-nat.c.
7965 (register_addr): Remove.
7966 (register_addr_data, init_register_addr_data): Remove.
7967 (_initialize_mips_linux_tdep): Do not initialize register_addr_data.
7968 (set_mips_linux_register_addr): Remove.
7969 (mips_linux_init_abi): Do not call set_mips_linux_register_addr.
7970 * Makefile.in (mips-linux-nat.o): Update dependencies.
7972 2007-04-25 Ulrich Weigand <uweigand@de.ibm.com>
7974 * linux-nat.c (linux_register_u_offset): Remove.
7975 (linux_target_install_ops): New function.
7976 (linux_target): Use it.
7977 (linux_trad_target): New function.
7978 * linux-nat.h (linux_trad_target): Declare.
7980 * alpha-linux-nat.c: Include "gdbcore.h".
7981 (alpha_linux_register_u_offset): New function.
7982 (_initialize_alpha_linux_nat): Use linux_trad_target.
7984 * mips-linux-nat.c: Include "gdbcore.h".
7985 (mips_linux_register_u_offset): New function.
7986 (_initialize_mips_linux_nat): Use linux_trad_target.
7988 * config/arm/linux.mh (NAT_FILE): Set to config/nm-linux.h.
7989 * config/arm/nm-linux.h: Delete file.
7991 * config/i386/nm-linux64.h (FETCH_INFERIOR_REGISTERS): Remove.
7992 * config/i386/nm-linux.h (FETCH_INFERIOR_REGISTERS): Remove.
7994 * config/ia64/linux.mh (NAT_FILE): Set to config/nm-linux.h.
7995 * config/ia64/nm-linux.h: Delete file.
7997 * config/m32r/linux.mh (NAT_FILE): Set to config/nm-linux.h.
7998 * config/m32r/nm-linux.h: Delete file.
8000 * config/m68k/linux.mh (NAT_FILE): Set to config/nm-linux.h.
8001 * config/m68k/nm-linux.h: Delete file.
8003 * config/pa/linux.mh (NAT_FILE): Set to config/nm-linux.h.
8004 * config/pa/nm-linux.h: Delete file.
8006 * config/powerpc/linux.mh (NAT_FILE): Set to config/nm-linux.h.
8007 * config/powerpc/ppc64-linux.mh (NAT_FILE): Likewise.
8008 * config/powerpc/nm-linux.h: Delete file.
8010 * config/s390/s390.mh (NAT_FILE): Set to config/nm-linux.h.
8011 * config/s390/nm-linux.h: Delete file.
8013 * config/sparc/linux.mh (NAT_FILE): Set to config/nm-linux.h.
8014 * config/sparc/linux64.mh (NAT_FILE): Likewise.
8015 * config/sparc/nm-linux.h: Delete file.
8017 * Makefile.in (alpha-linux-nat.o): Update dependencies.
8018 (mips-linux-nat.o): Likewise.
8020 2007-04-25 Ulrich Weigand <uweigand@de.ibm.com>
8022 * core-aout.c: Delete file.
8023 * Makefile.in (ALLDEPFILES): Remove core-aout.c.
8024 (core-aout.o): Delete rule.
8025 * gdbcore.h (kernel_u_addr, KERNEL_U_ADDR): Remove.
8027 * config/alpha/nm-linux.h (U_REGS_OFFSET): Remove.
8029 * arm-linux-nat.c (arm_linux_kernel_u_size): Remove.
8030 * config/arm/nm-linux.h (U_REGS_OFFSET, KERNEL_U_SIZE,
8031 KERNEL_U_ADDR): Remove.
8033 * i386-linux-nat.c (register_u_addr, kernel_u_size): Remove.
8034 (cannot_fetch_register, cannot_store_register): Remove.
8035 (fetch_register): Inline cannot_fetch_register and register_addr.
8036 (store_register): Inline cannot_store_register and register_addr.
8037 * config/i386/linux.mh (NATDEPFILES): Remove core-aout.o.
8038 * config/i386/nm-linux.h (KERNEL_U_SIZE, KERNEL_U_ADDR,
8039 REGISTER_U_ADDR, CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER):
8042 * m68klinux-nat.c (m68k_linux_register_u_addr, kernel_u_size): Remove.
8043 (fetch_register): Inline register_addr.
8044 (store_register): Inline register_addr.
8045 * config/m68k/linux.mh (NATDEPFILES): Remove core-aout.o.
8046 * config/m68k/nm-linux.h (KERNEL_U_SIZE, KERNEL_U_ADDR,
8047 U_REGS_OFFSET, REGISTER_U_ADDR): Remove.
8049 * config/mips/nm-irix5.h (REGISTER_U_ADDR): Remove.
8050 * config/mips/nm-linux.h (KERNEL_U_SIZE, U_REGS_OFFSET,
8051 REGISTER_U_ADDR): Remove.
8053 * hppa-linux-nat.c (register_addr): Rename to ...
8054 (hppa_linux_register_addr): ... this. Make static.
8055 (fetch_register, store_register): Adapt callers.
8056 * config/pa/nm-linux.h (U_REGS_OFFSET): Remove.
8058 * ppc-linux-nat.c (kernel_u_size): Remove.
8059 * config/powerpc/nm-linux.h (KERNEL_U_SIZE, KERNEL_U_ADDR): Remove.
8061 * vax-nat.c (vax_kernel_u_addr, vax_register_u_addr): Make static.
8062 * config/vax/vax.mh (NATDEPFILES): Remove core-aout.o.
8064 * config/vax/nm-vax.h: Delete file.
8066 2007-04-20 Mark Shinwell <shinwell@codesourcery.com>
8068 * MAINTAINERS (Write After Approval): Add myself.
8070 2007-04-20 Mark Shinwell <shinwell@codesourcery.com>
8072 * Makefile.in: Adjust dependencies of m68klinux-tdep.c.
8073 * m68klinux-tdep.c (m68k_uclinux_sigcontext_reg_offset): New.
8074 (m68k_linux_sigcontext_reg_offset): Fix typo.
8075 (target_is_uclinux): New.
8076 (m68k_linux_inferior_created): New.
8077 (m68k_linux_get_sigtramp_info): Check for uClinux or
8078 normal Linux. Use m68k_uclinux_sigcontext_reg_offset for
8080 (_initialize_m68k_linux_tdep): Register
8081 m68k_linux_inferior_created.
8083 2007-04-19 Pedro Alves <pedro_alves@portugalmail.pt>
8085 * win32-nat.c (win32_detach): Remove delete_command call.
8086 Resume inferior with win32_resume instead of win32_continue.
8088 2007-04-19 Jerome Guitton <guitton@adacore.com>
8090 * ser-mingw.c (fd_is_file): New function.
8091 (file_select_thread): New function.
8092 (ser_console_wait_handle): Add special handling for files.
8094 2007-04-18 Denis Pilat <denis.pilat@st.com>
8096 * dwarf2read.c (read_subrange_type): Use DW_ATE_signed default type
8097 when missing from DW_TAG_subrange_type. Remove the handling of null
8098 return from die_type.
8100 2007-04-18 Maciej W. Rozycki <macro@mips.com>
8102 * mips-tdep.c (mips_eabi_push_dummy_call): Revert the last
8103 change to rearrange some brackets.
8104 (mips_n32n64_push_dummy_call): Likewise.
8105 (mips_o32_push_dummy_call): Likewise.
8106 (mips_o64_push_dummy_call): Likewise.
8108 2007-04-18 Denis Pilat <denis.pilat@st.com>
8110 * infcmd.c (post_create_inferior): Start with a call to
8111 target_terminal_ours.
8113 2007-04-17 Maciej W. Rozycki <macro@mips.com>
8115 * mips-tdep.c (mips_eabi_push_dummy_call): Rearrange some
8117 (mips_n32n64_push_dummy_call): Likewise. Reformat some
8119 (mips_o32_push_dummy_call): Likewise.
8120 (mips_o64_push_dummy_call): Likewise.
8122 2007-04-17 Maciej W. Rozycki <macro@mips.com>
8124 * mips-tdep.c (mips_n32n64_push_dummy_call): Fix a typo in a
8127 2007-04-17 Maciej W. Rozycki <macro@mips.com>
8129 * mips-tdep.c (mips_n32n64_push_dummy_call): Fix a typo in a
8131 (mips_o32_push_dummy_call): Likewise.
8133 2007-04-17 Andreas Schwab <schwab@suse.de>
8135 * symtab.c (skip_prologue_using_sal): Allow the end of the prologue
8136 sal to be bigger than the end of the function.
8138 2007-04-17 Maciej W. Rozycki <macro@mips.com>
8139 Nigel Stephens <nigel@mips.com>
8141 * mips-tdep.c (mips_o32_push_dummy_call): Take account of
8142 argument alignment requirements when calculating stack space
8143 required. When aligning an arg register to eight bytes
8144 boundary, align stack_offset too. Write floating-point
8145 arguments to the appropriate integer register if need go there.
8146 (mips_o64_push_dummy_call): Likewise.
8148 2007-04-14 Ulrich Weigand <uweigand@de.ibm.com>
8150 * gdbarch.sh (software_single_step): Remove "insert_breakpoints_p" and
8151 "sig" arguments, add "regcache" argument.
8152 * gdbarch.c, gdbarch.h: Regenerate.
8154 * infrun.c (resume): Update SOFTWARE_SINGLE_STEP call arguments.
8155 (handle_inferior_event): Call remove_single_step_breakpoints directly
8156 instead of calling SOFTWARE_SINGLE_STEP to remove breakpoints.
8158 * alpha-tdep.c (alpha_software_single_step): Update argument list.
8159 Remove handling of !insert_breakpoints_p case.
8160 * arm-tdep.c (arm_software_single_step): Likewise.
8161 * cris-tdep.c (cris_software_single_step): Likewise.
8162 * mips-tdep.c (mips_software_single_step): Likewise.
8163 * rs6000-tdep.c (rs6000_software_single_step): Likewise.
8164 * sparc-tdep.c (sparc_software_single_step): Likewise.
8165 * spu-tdep.c (spu_software_single_step): Likewise.
8167 * alpha-tdep.h (alpha_software_single_step): Update prototype.
8168 * mips-tdep.h (mips_software_single_step): Likewise.
8169 * rs6000-tdep.h (rs6000_software_single_step): Likewise.
8170 * sparc-tdep.h (sparc_software_single_step): Likewise.
8172 2007-04-14 Ulrich Weigand <uweigand@de.ibm.com>
8174 * alpha-tdep.c (alpha_software_single_step): Do not call write_pc
8175 when removing single-step breakpoints.
8177 2007-04-14 Vladimir Prus <vladimir@codesourcery.com>
8179 * varobj.h (varobj_set_frozen): New
8180 (varobj_get_frozen): New.
8181 (varobj_update): New parameter explicit.
8182 * varobj.c (struct varobj): New fields frozen
8184 (varobj_set_frozen, varobj_get_frozen): New.
8185 (install_new_value): Don't fetch values for
8186 frozen variable object, or children thereof. Allow
8187 a frozen variable object to have non-fetched value.
8188 (varobj_update): Allow updating child variables.
8189 Don't traverse frozen children.
8190 (new_variable): Initialize the frozen field.
8191 (c_value_of_variable): Return NULL for frozen
8192 variable without any value yet.
8193 * mi/mi-cmd-var.c (varobj_update_one): New parameter
8195 (mi_cmd_var_create): Output the 'frozen' field,
8196 as soon as testsuite is adjusted to expect that field.
8197 (mi_cmd_var_set_frozen): New.
8198 (mi_cmd_var_update): Pass the 'explicit' parameter to
8200 * mi/mi-cmds.c (mi_cmds): Register '-var-set-frozen'.
8201 * mi/mi-cmds.h (mi_cmd_var_set_frozen): Declare.
8203 2007-04-13 Paul Brook <paul@codesourcery.com>
8205 * target-descriptions.c (tdesc_named_type): Add ieee_single and
8207 * doc/gdb.texinfo: Document ieee_single and ieee_double target types.
8209 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
8211 * mips-mdebug-tdep.c, mips-mdebug-tdep.h, ocd.c, ocd.h, ppc-bdm.c,
8212 remote-e7000.c, remote-hms.c, remote-utils.c, remote-utils.h,
8213 scm-exp.c, scm-lang.c, scm-lang.h, scm-tags.h, scm-valprint.c,
8214 ser-e7kpc.c, sh3-rom.c, stop-gdb.c: Delete.
8215 * Makefile.in: Remove references to deleted files.
8216 * README: Do not mention deleted ROM monitor interfaces.
8217 * defs.h (enum language): Delete language_scm.
8218 * expprint.c (print_subexp_standard): Do not handle OP_EXPRSTRING.
8219 (dump_subexp_body_standard): Likewise.
8220 * parse.c (operator_length_standard): Likewise.
8221 * expression.h (enum exp_opcode): Delete OP_EXPRSTRING.
8222 * remote-mips.c: Do not include remote-utils.h.
8223 * remote-sim.c: Likewise. Use remote_debug instead of sr_get_debug
8225 * value.c: Do not include scm-lang.h.
8226 (unpack_long): Delete scm_unpack call.
8227 * config/h8300/h8300.mt, config/mips/embed.mt,
8228 config/powerpc/ppc-eabi.mt, config/powerpc/ppc-sim.mt,
8229 config/sh/embed.mt, config/sh/linux.mt: Remove references to
8231 * NEWS: Mention removed files.
8233 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
8235 * symfile.c (add_psymbol_with_dem_name_to_list): Remove.
8236 * symfile.h (add_psymbol_with_dem_name_to_list): Remove prototype.
8238 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
8240 * NEWS: Mention removal of HP aCC support.
8242 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
8244 * solib-svr4.c (IGNORE_FIRST_LINK_MAP_ENTRY): Do not ignore the
8245 first entry for static executables.
8246 (breakpoint_addr): Delete unused variable.
8247 (elf_locate_base): Search for _r_debug in static executables.
8248 (enable_break): Do not set breakpoint_addr. Scan solib_break_names
8251 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
8253 * breakpoint.c (update_breakpoints_after_exec, print_it_typical)
8254 (bpstat_what, print_one_breakpoint, allocate_bp_location)
8255 (mention): Remove bp_through_sigtramp support.
8256 * breakpoint.h (enum bptype): Remove bp_through_sigtramp.
8258 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
8260 * breakpoint.c (bpstat_what): Give step-resume higher priority than
8263 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
8265 * infrun.c: Doc fixes.
8266 (handle_inferior_event): Clarify debug message.
8267 (insert_step_resume_breakpoint_at_sal): Print a debug message.
8269 2007-04-12 Ulrich Weigand <uweigand@de.ibm.com>
8271 * configure.tgt (arm-*-nto*, sh-*-nto*): Remove.
8273 2007-04-12 Ulrich Weigand <uweigand@de.ibm.com>
8275 * config/m68k/tm-monitor.h: Delete file.
8276 * config/m68k/monitor.mt (DEPRECATED_TM_FILE): Remove.
8277 * m68k-tdep.c (m68k_gdbarch_init): set_gdbarch_decr_pc_after_break
8279 * m68kbsd-tdep.c (m68kbsd_init_abi): ... here and ...
8280 * m68klinux-tdep.c (m68k_linux_init_abi): ... here.
8282 2007-04-12 Luis Machado <luisgpm@br.ibm.com>
8284 * gdbarch.sh (software_single_step): Change the return type
8285 from void to int and reformatted some comments to <= 80
8287 * gdbarch.c, gdbarch.h: Regenerated.
8288 * alpha-tdep.c (alpha_software_single_step): Likewise.
8289 * alpha-tdep.h (alpha_software_single_step): Likewise.
8290 * arm-tdep.c (arm_software_single_step): Likewise.
8291 * cris-tdep.c (cris_software_single_step): Likewise.
8292 * mips-tdep.c (mips_software_single_step): Likewise.
8293 * mips-tdep.h (mips_software_single_step): Likewise.
8294 * rs6000-tdep.c (rs6000_software_single_step): Likewise.
8295 * rs6000-tdep.h (rs6000_software_single_step): Likewise.
8296 * sparc-tdep.c (sparc_software_single_step): Likewise.
8297 * sparc-tdep.h (sparc_software_single_step): Likewise.
8298 * spu-tdep.c (spu_software_single_step): Likewise.
8299 * infrun.c (resume): Check the return value from SOFTWARE_SINGLE_STEP
8300 and act accordingly.
8302 2007-04-11 Steve Ellcey <sje@cup.hp.com>
8304 * configure.ac (build_warnings): Add -Wno-char-subscripts.
8305 * configure: Regenerate.
8306 * doc/gdbint.texinfo (warning flags): Add -Wno-char-subscripts.
8308 2007-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
8310 * libunwind-frame.c (LIBUNWIND_SO): Use major version number for `.so'.
8312 2007-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
8314 * gdbtypes.h (TYPE_FLAG_STUB_SUPPORTED, TYPE_STUB_SUPPORTED): New
8316 (TYPE_IS_OPAQUE): Empty vs. opaque structures are now
8317 distinct on the TYPE_STUB_SUPPORTED debug targets.
8318 * dwarf2read.c (read_structure_type): Set TYPE_FLAG_STUB_SUPPORTED.
8320 2007-04-11 Joel Brobecker <brobecker@adacore.com>
8322 * sparc-tdep.c (X_RS2): New macro.
8323 (sparc_skip_stack_check): New function.
8324 (sparc_analyze_prologue): Adjust PC past stack probing
8325 sequence if necessary.
8327 2007-04-10 Andreas Schwab <schwab@suse.de>
8329 * rs6000-tdep.c (rs6000_dwarf2_reg_to_regnum): Decode 64 as CR
8332 2007-04-10 Daniel Jacobowitz <dan@codesourcery.com>
8334 * breakpoint.c (gdb_breakpoint_query): Really return an
8336 (gdb_breakpoint): Likewise.
8337 * thread.c (gdb_list_thread_ids): Likewise.
8338 (gdb_thread_select): Likewise.
8339 * mi/mi-main.c (mi_cmd_thread_select): Expect an enum gdb_rc.
8340 (mi_cmd_thread_list_ids): Remove bogus initialization.
8342 2007-04-10 Daniel Jacobowitz <dan@codesourcery.com>
8344 * Makefile.in (SFILES): Remove hpacc-abi.c.
8345 (COMMON_OBS): Remove hpacc-abi.o.
8346 (ALLDEPFILES): Remove hpread.c and $(HPREAD_SOURCE).
8347 (hpacc-abi.o, hpread.o): Delete rules.
8348 * somread.c: Delete extern declarations from hpread.c.
8349 (som_symfile_read): Do not call do_pxdb or hpread_build_psymtabs.
8350 (som_symfile_finish): Do not call hpread_symfile_finish.
8351 (som_symfile_init): Do not call hpread_symfile_init.
8352 * config/pa/hppa64.mt (TDEPFILES): Remove hpread.o.
8353 * config/pa/hppahpux.mt (TDEPFILES): Likewise.
8354 * hpacc-abi.c, hpread.c: Deleted.
8356 2007-04-10 Daniel Jacobowitz <dan@codesourcery.com>
8358 * solib-svr4.c (enable_break): Simplify return value.
8359 (svr4_solib_create_inferior_hook): Do not warn if enable_break fails.
8361 2007-04-10 Andreas Schwab <schwab@suse.de>
8363 * solib-svr4.h (struct link_map_offsets): Remove l_addr_size,
8364 l_ld_size, l_next_size, l_prev_size, l_name_size.
8366 * solib-svr4.c (LM_ADDR_FROM_LINK_MAP): Use extract_typed_address
8367 to extract addresses from link map.
8368 (LM_DYNAMIC_FROM_LINK_MAP): Likewise.
8369 (LM_NEXT): Likewise.
8370 (LM_NAME): Likewise.
8371 (IGNORE_FIRST_LINK_MAP_ENTRY): Likewise.
8372 (elf_locate_base): Likewise.
8373 (open_symbol_file_object): Likewise.
8374 (svr4_fetch_objfile_link_map): Likewise.
8375 (SOLIB_EXTRACT_ADDRESS): Remove unused macro.
8376 (HAS_LM_DYNAMIC_FROM_LINK_MAP): Test l_ld_offset instead of
8378 (svr4_ilp32_fetch_link_map_offsets): Don't set removed members.
8379 (svr4_lp64_fetch_link_map_offsets): Likewise.
8381 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets): Don't set
8382 removed members. Set l_ld_offset to -1 if not present.
8384 2007-04-08 Vladimir Prus <vladimir@codesourcery.com>
8386 Pass stderr of program run with "target remote |"
8388 * serial.c (serial_open): Set error_fd to -1.
8389 * serial.h (struct serial): New field error_fd.
8390 (struct serial_opts): New field avail.
8391 * ser-pipe.c (pipe_open): Create another pair
8392 of sockets. Pass stderr to gdb.
8393 * ser-mingw.c (pipe_windows_open): Pass
8394 PEX_STDERR_TO_PIPE to pex_run. Initialize
8397 (_initialize_ser_windows): Hook pipe_avail.
8398 * ser-base.c (generic_readchar): Check if there's
8399 anything in stderr channel and route that to gdb_stderr.
8401 2007-04-03 Pedro Alves <pedro_alves@portugalmail.pt>
8403 * dbxread.c (read_ofile_symtab): Move current_objfile
8404 clearing to after end_stabs.
8406 2007-04-01 Andreas Schwab <schwab@suse.de>
8408 * rs6000-tdep.c (rs6000_convert_from_func_ptr_addr): Use parameter
8409 gdbarch instead of current_gdbarch.
8411 2007-04-01 Vladimir Prus <vladimir@codesourcery.com>
8413 * varobj.c (varobj_create): Keep varobj value
8414 NULL when evaluating the type.
8416 2007-03-31 Pedro Alves <pedro_alves@portugalmail.pt>
8418 * NEWS: Mention new Windows CE support.
8420 2007-03-30 Pedro Alves <pedro_alves@portugalmail.pt>
8422 * configure.tgt: Move mips*-*-pe and sh*-*-pe to
8423 the obsoletion stanza.
8424 * NEWS: Mention deleted targets.
8426 * config/sh/tm-wince.h: Remove.
8427 * config/sh/wince.mt: Remove.
8428 * config/mips/tm-wince.h: Remove.
8429 * config/mips/wince.mt: Remove.
8432 * wince-stub.c: Remove.
8433 * wince-stub.h: Remove.
8434 * Makefile.in (wince.o): Remove rule.
8435 (wince-stub.o): Likewise.
8437 * mips-tdep.c (mips_next_pc): Make static.
8438 * mips-tdep.h (mips_next_pc): Remove declaration.
8439 * arm-tdep.c (arm_pc_is_thumb): Make static.
8440 (thumb_get_next_pc): Likewise.
8441 (arm_get_next_pc): Likewise.
8442 * arm-tdep.h (arm_pc_is_thumb_dummy): Remove declaration.
8443 (arm_pc_is_thumb): Likewise.
8444 (thumb_get_next_pc): Likewise.
8445 (arm_get_next_pc): Likewise.
8447 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
8449 * MAINTAINERS: Remove d10v entry.
8450 * Makefile.in (SFILES): Remove dwarfread.c.
8451 (COMMON_OBS): Remove dwarfread.o.
8452 (gdb_sim_d10v_h, abug-rom.o, cpu32bug-rom.o, d10v-tdep.o, dwarfread.o)
8453 (remote-est.o, rom68k-rom.o): Delete.
8454 * NEWS: Mention removal of d10v, target abug, target cpu32bug,
8455 target est, target rom68k, and DWARF 1.
8456 * configure.tgt: Mark d10v as removed.
8457 * dwarf2read.c: Doc update.
8458 * elfread.c (struct elfinfo): Remove dboffset, dbsize, lnoffset,
8460 (elf_locate_sections): Do not set them.
8461 (elf_symfile_read): Do not call dwarf_build_psymtabs.
8462 * symfile.h (dwarf_build_psymtabs): Delete prototype.
8463 * config/m68k/monitor.mt (TDEPFILES): Prune.
8464 * abug-rom.c, cpu32bug-rom.c, d10v-tdep.c, dwarfread.c,
8465 remote-est.c, rom68k-rom.c, config/d10v/d10v.mt: Delete.
8467 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
8469 * doublest.c (convert_floatformat_to_doublest): Use
8470 floatformat_classify.
8471 (floatformat_is_nan): Rename to...
8472 (floatformat_classify): ...this. Return more information.
8473 * doublest.h (enum float_kind): New.
8474 (floatformat_is_nan): Replace prototype...
8475 (floatformat_classify): ...with this one.
8476 * valprint.c (print_floating): Use floatformat_classify. Handle
8479 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
8481 * README: Mention ISO C library requirement.
8483 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
8485 * Makefile.in (SFILES): Remove nlmread.c.
8486 (COMMON_OBS): Remove nlmread.o.
8487 (nlmread.o): Delete rule.
8488 * README: Delete reference to remote-st.c.
8489 * acinclude.m4 (CY_AC_TCL_LYNX_POSIX): Delete.
8490 * defs.h (enum gdb_osabi): Delete GDB_OSABI_NETWARE and
8492 * i386-tdep.c (i386_nw_init_abi, i386_nlm_osabi_sniffer): Delete.
8493 (_initialize_i386_tdep): Do not reference them.
8494 * nlmread.c: Delete file.
8495 * osabi.c (gdb_osabi_names): Remove NetWare and LynxOS.
8496 * target.c: Doc update.
8497 * thread.c: Delete commented include.
8498 * config/alpha/tm-alpha.h: Doc update.
8500 2007-03-30 Chris Dearman <chris@mips.com>
8502 * utils.c (string_to_core_addr): Comment typo.
8504 2007-03-30 Chris Dearman <chris@mips.com>
8506 * mips-tdep.c: Comment typo.
8508 2007-03-29 Ulrich Weigand <uweigand@de.ibm.com>
8510 * config/alpha/nm-osf.h (PTRACE_XFER_TYPE): Remove.
8511 * config/mips/nm-linux.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Remove.
8512 * config/sparc/nm-linux.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Remove.
8513 * config/powerpc/nm-ppc64-linux.h: Remove file.
8514 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Set to nm-linux.h.
8515 * inferior.h (PTRACE_ARG3_TYPE): Do not define.
8516 (call_ptrace): Change type of third argument to PTRACE_TYPE_ARG3.
8517 * infptrace.c (call_ptrace): Likewise.
8518 * m68klinux-nat.c (PTRACE_XFER_TYPE): Do not define.
8519 (fetch_register): Replace PTRACE_ARG3_TYPE by PTRACE_TYPE_ARG3
8520 and PTRACE_XFER_TYPE by PTRACE_TYPE_RET.
8521 (store_register): Likewise.
8523 2007-03-29 Joel Brobecker <brobecker@adacore.com>
8525 * Makefile.in (varobj.o): Add missing dependency.
8527 2007-03-29 Michael Snyder <msnyder@access-company.com>
8529 * MAINTAINERS: Update my email address.
8531 2007-03-29 Joel Brobecker <brobecker@adacore.com>
8533 Add support for exception handling with multiple versions of
8535 * ada-lang.c: Update general comments on how Ada exception catchpoints
8537 (raise_sym_name, raise_unhandled_sym_name, raise_assert_sym_name)
8538 (__gnat_raise_nodefer_with_msg): Delete.
8539 (ada_unhandled_exception_name_addr_ftype): New type.
8540 (exception_support_info): New type.
8541 (ada_unhandled_exception_name_addr): Add forward declaration.
8542 (ada_unhandled_exception_name_addr_from_raise): Likewise.
8543 (default_exception_support_info): New constant.
8544 (exception_support_info_fallback): Likewise.
8545 (exception_info): New global variable.
8546 (ada_exception_support_info_sniffer): New function.
8547 (ada_executable_changed_observer): Likewise.
8548 (ada_unhandled_exception_name_addr_from_raise): Renamed from
8549 ada_unhandled_exception_name_addr.
8550 (ada_unhandled_exception_name_addr): Reimplement to match the
8551 latest Ada runtime implementation.
8552 (error_breakpoint_runtime_sym_not_found): Delete.
8553 (ada_exception_sym_name): Get the exception sym name from
8554 exception_info rather than hardcoding it.
8555 (ada_exception_sal): Add call to ada_exception_support_info_sniffer.
8556 Update error handling.
8557 * Makefile.in (ada-lang.o): Add dependency on observer.h.
8559 2007-03-29 Daniel Jacobowitz <dan@codesourcery.com>
8561 * Makefile.in (coff_solib_h, coff-solib.o, i386v-nat.o, lynx-nat.o)
8562 (remote-st.o, uw-thread.o): Delete.
8563 (HFILES_NO_SRCDIR, ALLDEPFILES): Update.
8564 * configure.host: Move hppa*-*-hiux*, i[34567]86-ncr-*,
8565 i[34567]86-*-dgux*, i[34567]86-*-lynxos*, i[34567]86-*-sco3.2v5*,
8566 i[34567]86-*-sco3.2v4*, i[34567]86-*-sco*, i[34567]86-*-sysv4.2*,
8567 i[34567]86-*-sysv4*, i[34567]86-*-sysv5*, i[34567]86-*-unixware2*,
8568 i[34567]86-*-unixware*, i[34567]86-*-sysv*, i[34567]86-*-isc*, and
8569 rs6000-*-lynxos* to an obsoletion stanza.
8570 * configure.tgt: Move hppa*-*-hiux*, i[34567]86-ncr-*,
8571 i[34567]86-*-lynxos*, m68*-cisco*-*, m68*-tandem-*, m68*-*-os68k*,
8572 and rs6000-*-lynxos* to an obsoletion stanza. Do not mention
8573 i[34567]86-*-netware*.
8574 * NEWS: Mention deleted targets.
8576 * coff-solib.c, coff-solib.h, i386v-nat.c, lynx-nat.c, remote-st.c,
8577 uw-thread.c, config/nm-lynx.h, config/i386/i386sco.mh,
8578 config/i386/i386sco4.mh, config/i386/i386sco5.mh, config/i386/i386v.mh,
8579 config/i386/i386v4.mh, config/i386/i386v42mp.mh,
8580 config/i386/ncr3000.mh, config/i386/ncr3000.mt,
8581 config/i386/nm-i386sco.h, config/i386/nm-i386sco4.h,
8582 config/i386/nm-i386sco5.h, config/i386/nm-i386v.h,
8583 config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h,
8584 config/m68k/cisco.mt, config/m68k/os68k.mt, config/m68k/st2000.mt,
8585 config/m68k/tm-cisco.h, config/m68k/tm-os68k.h,
8586 config/rs6000/rs6000lynx.mh, config/rs6000/rs6000lynx.mt,
8587 config/rs6000/tm-rs6000ly.h: Delete files.
8589 2007-03-29 Daniel Jacobowitz <dan@codesourcery.com>
8591 * defs.h (deprecated_registers_changed_hook): Delete declaration.
8592 * interps.c (clear_interpreter_hooks): Do not clear
8593 deprecated_registers_changed_hook.
8594 * regcache.c (registers_changed): Do not call it.
8595 * top.c (deprecated_registers_changed_hook): Do not define it.
8596 * mi/mi-interp.c (mi_command_loop): Do not clear it.
8597 * tui/tui-hooks.c (tui_install_hooks): Do not install it.
8598 (tui_remove_hooks): Do not remove it.
8599 (tui_selected_frame_level_changed_hook): Check for negative level.
8600 Use get_selected_frame.
8601 (tui_registers_changed_hook): Deleted.
8603 2007-03-29 Joel Brobecker <brobecker@adacore.com>
8605 * stabsread.c (add_undefined_type): Add extra parameter.
8606 Now handles nameless types separately.
8607 (struct nat): New type.
8608 (noname_undefs, noname_undefs_allocated, noname_undefs_length):
8609 New static variables.
8610 (read_type): Update calls to add_undefined_type.
8611 (add_undefined_type_noname): New function.
8612 (add_undefined_type_1): Renames from add_undefined_type.
8613 (cleanup_undefined_types_noname): New function.
8614 (cleanup_undefined_types_1): Renames cleanup_undefined_types.
8615 (cleanup_undefined_types): New handles nameless types separately.
8616 (_initialize_stabsread): Initialize our new static constants.
8618 2007-03-29 Denis Pilat <denis.pilat@st.com>
8620 * configure.ac: Test for signal.h.
8621 * configure, config.in: Regenerate.
8623 2007-03-29 Denis Pilat <denis.pilat@st.com>
8625 * stack.c (print_stack_frame): Always use LOC_AND_ADDRESS in MI output.
8626 * infrun.c (normal_stop): Remove MI specific frame printing treatment.
8628 2007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
8630 * arm-wince-tdep.c: New.
8631 * config/arm/wince.mt (DEPRECATED_TM_FILE): Use tm-arm.h.
8632 (MT_CFLAGS): Delete.
8634 (TDEPFILES): Add arm-wince-tdep.o, corelow.o, solib.o,
8635 solib-legacy.o, solib-svr4.o, and remove wince.o.
8636 * configure.tgt (arm*-*-mingw32ce*): Add.
8637 * signals/signals.c [HAVE_SIGNAL_H]: Check.
8638 (do_target_signal_to_host): Silence 'not used' warning.
8639 * config/arm/tm-wince.h: Remove.
8641 2007-03-28 Ulrich Weigand <uweigand@de.ibm.com>
8643 * arch-utils.c (legacy_pc_in_sigtramp): Remove.
8644 * arch-utils.h (legacy_pc_in_sigtramp): Remove.
8646 * config/ia64/linux.mt (DEPRECATED_TM_FILE): Remove.
8647 * config/ia64/tm-linux.h: Remove file.
8648 * ia64-tdep.h (struct gdbarch_tdep): Add pc_in_sigtramp callback.
8649 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Use it instead of
8650 legacy_pc_in_sigtramp.
8651 (ia64_gdbarch_init): Initialize tdep->pc_in_sigtramp.
8652 * ia64-linux-tdep.c (ia64_linux_pc_in_sigtramp): Make static.
8653 Remove func_name argument.
8654 (ia64_linux_init_abi): Install it as tdep->pc_in_sigtramp.
8656 * infrun.c (HAVE_STEPPABLE_WATCHPOINT): Do not redefine.
8657 * target.c (update_current_target): Add to_have_steppable_watchpoint.
8658 * target.h (struct target_ops): Add to_have_steppable_watchpoint.
8659 (HAVE_STEPPABLE_WATCHPOINT): Define.
8661 * config/ia64/linux.mh (NATDEPFILES): Remove core-aout.o.
8662 * config/ia64/nm-linux.h (KERNEL_U_ADDR, U_REGS_OFFSET,
8663 CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER,
8664 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_STEPPABLE_WATCHPOINT,
8665 STOPPED_BY_WATCHPOINT, target_stopped_data_address,
8666 target_insert_watchpoint, target_remove_watchpoint): Remove.
8667 (FETCH_INFERIOR_REGISTERS): Define.
8668 * ia64-linux-nat.c (ia64_register_addr): Make static.
8669 (ia64_cannot_fetch_register, ia64_cannot_store_register): Likewise.
8670 (ia64_linux_insert_watchpoint): Make static. Remove ptid_p argument.
8671 (ia64_linux_remove_watchpoint): Likewise. Add type argument.
8672 (ia64_linux_stopped_data_address): Make static. Add target_ops.
8673 (ia64_linux_stopped_by_watchpoint): Make static.
8674 (ia64_linux_can_use_hw_breakpoint): New function.
8675 (ia64_linux_fetch_register, ia64_linux_fetch_registers): Likewise.
8676 (ia64_linux_store_register, ia64_linux_store_registers): Likewise.
8677 (_initialize_ia64_linux_nat): Install register and watchpoint ops.
8679 2007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
8681 * linespec.c: Include language.h.
8682 (find_methods): Add language parameter. Call
8683 lookup_symbol_in_language. Pass language down.
8684 (add_matching_methods): Likewise. Call
8685 lookup_symbol_in_language.
8686 (add_constructors): Likewise.
8687 (find_method): Pass sym_class to collect_methods.
8688 (collect_methods): Add sym_class parameter. Pass language
8690 * symtab.c (lookup_symbol): Rename to ...
8691 (lookup_symbol_in_language): ... this. Add language
8692 parameter. Use passed language instead of current_language.
8693 (lookup_symbol): New as wrapper around
8694 lookup_symbol_in_language.
8695 (lookup_symbol_aux): Add language parameter. Use passed
8696 language instead of current_language.
8697 (search_symbols): Indent.
8698 * symtab.h (enum language): Forward declare.
8699 (lookup_symbol_in_language): Declare.
8700 (lookup_symbol): Update description.
8701 * ada-lang.h (lookup_symbol_in_language): Remove declaration.
8702 * ada-lang.c (restore_language): Remove.
8703 (lookup_symbol_in_language): Remove.
8705 2007-03-27 Pedro Alves <pedro_alves@portugalmail.pt>
8707 * breakpoint.c (bpstat_num): Add int *num parameter.
8708 * breakpoint.h (bpstat_num): Likewise.
8709 * infcmd.c (continue_command): Adjust to new bpstat_num
8711 (program_info): Likewise.
8713 2007-03-27 Ulrich Weigand <uweigand@de.ibm.com>
8715 * config/sh/tm-sh.h: Remove file.
8716 * config/sh/embed.mt (DEPRECATED_TM_FILE): Remove.
8717 * config/sh/linux.mt (DEPRECATED_TM_FILE): Remove.
8718 * config/sh/nbsd.mt (DEPRECATED_TM_FILE): Remove.
8719 * config/sh/tm-wince.h: Do not include "sh/tm-sh.h".
8721 2007-03-27 Ulrich Weigand <uweigand@de.ibm.com>
8723 * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT,
8724 DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Remove.
8725 * remote.c: Remove code under #ifdef DEPRECATED_REMOTE_BREAKPOINT,
8726 DEPRECATED_BIG_REMOTE_BREAKPOINT, DEPRECATED_LITTLE_REMOTE_BREAKPOINT.
8727 * sh-tdep.c (sh_breakpoint_from_pc): Return remote breakpoint
8728 sequence if target_shortname is "remote".
8730 2007-03-27 Anton Blanchard <anton@samba.org>
8732 * rs6000-tdep.c (rs6000_frame_cache): Use tdep->lr_frame_offset
8733 instead of wordsize when looking for the LR in a stack frame.
8735 2007-03-27 Andreas Schwab <schwab@suse.de>
8736 Daniel Jacobowitz <dan@codesourcery.com>
8738 * dwarf2-frame.c (dwarf2_frame_eh_frame_regnum): Rename to...
8739 (dwarf2_frame_adjust_regnum): ...this. Make static. Add eh_frame_p
8740 argument. Update all callers.
8741 (struct dwarf2_frame_ops): Replace eh_frame_regnum with adjust_regnum.
8742 (dwarf2_frame_set_eh_frame_regnum): Rename to...
8743 (dwarf2_frame_set_adjust_regnum): ...this. Update argument type.
8744 * dwarf2frame.h (dwarf2_frame_set_eh_frame_regnum): Rename to...
8745 (dwarf2_frame_set_adjust_regnum): ...this.
8746 (dwarf2_frame_eh_frame_regnum): Delete prototype.
8747 * rs6000-tdep.c: Include "dwarf2-frame.h".
8748 (rs6000_adjust_frame_regnum): Define.
8749 (rs6000_gdbarch_init): Enable use of DWARF CFI frame unwinder.
8750 Register rs6000_adjust_frame_regnum.
8752 * Makefile.in (rs6000-tdep.o): Update dependencies.
8754 2007-03-27 Brooks Moses <brooks.moses@codesourcery.com>
8756 * Makefile.in: Add support for a "pdf" target.
8758 2007-03-27 Daniel Jacobowitz <dan@codesourcery.com>
8760 * amd64-tdep.c (amd64_init_frame_cache): New function.
8761 (amd64_alloc_frame_cache, amd64_skip_prologue): Use it.
8763 2007-03-26 Nigel Stephens <nigel@mips.com>
8764 Maciej W. Rozycki <macro@mips.com>
8766 * ui-out.c (ui_out_field_core_addr): Truncate address to
8767 TARGET_ADDR_BIT size before printing.
8769 2007-03-22 Nigel Stephens <nigel@mips.com>
8770 Maciej W. Rozycki <macro@mips.com>
8772 * remote-mips.c (mips_xfer_memory): Update prototype.
8774 2007-03-22 Joel Brobecker <brobecker@adacore.com>
8776 * symfile.h: #include "symtab.h"
8778 2007-03-22 Denis Pilat <denis.pilat@st.com>
8780 * utils.c (pagination_on_command, pagination_off_command):
8781 Remove useless prototypes.
8783 2007-03-21 Pierre Muller <muller@ics.u-strasbg.fr>
8786 * p-valprint.c (pascal_object_print_value): Use type_name_no_tag
8787 instead of TYPE_NAME for object base class name.
8790 2007-03-19 Kevin Buettner <kevinb@redhat.com>
8792 * mep-tdep.c (mep_analyze_frame_prologue, mep_frame_this_id):
8793 Specify frame type in calls to frame_func_unwind().
8795 2007-03-13 Daniel Jacobowitz <dan@codesourcery.com>
8797 * rs6000-tdep.c (rs6000_skip_prologue): Use skip_prologue_using_sal.
8798 (rs6000_in_function_epilogue_p): Use extract_unsigned_integer.
8799 (refine_prologue_limit): Delete.
8800 (skip_prologue): Don't call it. Use extract_unsigned_integer.
8801 Assume lim_pc is set. Correct check for incomplete prologues.
8802 Do not skip clobbers of the frame pointer.
8803 * symtab.c (skip_prologue_using_sal): Fail if there is only one
8806 2007-03-13 Nathan Froyd <froydnj@codesourcery.com>
8808 * frame.c (frame_pop): Check to see whether there's a frame to
8809 which we can pop first.
8811 2007-03-13 Nathan Froyd <froydnj@codesourcery.com>
8813 * MAINTAINERS (Write After Approval): Add myself.
8815 2007-03-09 Markus Deuling <deuling@de.ibm.com>
8817 * infrun.c (breakpoints_failed): Remove unnecessary variable.
8818 (handle_inferior_event): Remove unnecessary braces.
8819 * breakpoint.c (bpstat_what): Remove wrong comment.
8821 2007-03-09 Ulrich Weigand <uweigand@de.ibm.com>
8823 * spu-tdep.c (spu_in_function_epilogue_p): New function.
8824 (spu_gdbarch_init): Install it.
8826 2007-03-08 Ulrich Weigand <uweigand@de.ibm.com>
8828 * spu-linux-nat.c (spu_xfer_partial): Return -1 for unsupported
8829 object types, not 0.
8831 2007-03-08 Ulrich Weigand <uweigand@de.ibm.com>
8833 * spu-tdep.c (spu_frame_align): New function.
8834 (spu_gdbarch_init): Install it. Set call dummy location to ON_STACK.
8836 2007-03-08 Ulrich Weigand <uweigand@de.ibm.com>
8838 * spu-tdep.c (spu_unwind_pc): Mask off interrupt enable bit.
8839 (spu_software_single_step): Likewise.
8840 (spu_read_pc, spu_write_pc): New functions.
8841 (spu_gdbarch_init): Install them.
8843 2007-03-08 Ulrich Weigand <uweigand@de.ibm.com>
8845 * cli/cli-dump.c (struct callback_data): load_offset needs to
8846 have signed long type.
8848 2007-03-07 Joel Brobecker <brobecker@adacore.com>
8850 * mips-tdep.c (mips_insn16_frame_cache, mips_insn32_frame_sniffer):
8851 Revert the previous change that had some unexpected side-effects
8853 (mips_insn16_frame_cache, mips_insn32_frame_cache): Use the proper
8854 function to get the address of the calling instruction.
8856 2007-03-07 Denis Pilat <denis.pilat@st.com>
8858 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Replace
8859 get_selected_frame by deprecated_safe_get_selected_frame.
8861 2007-03-02 Mark Kettenis <kettenis@gnu.org>
8863 * shnbsd-tdep.c: Include "regset.h", "gdb_assert.h" and
8864 "gdb_string.h". Don't include "nbsd-tdep.h".
8865 (SIZEOF_STRUCT_REG): Remove.
8866 (SHNBSD_SIZEOF_GREGS): New.
8867 (shnbsd_supply_gregset, shnbsd_collect_gregset)
8868 (shnbsd_regset_from_core_section): New functions.
8869 (fetch_core_registers, fetch_elfcore_registers): Remove functions.
8870 (shnbsd_supply_reg, shnbsd_fill_reg): Simply call
8871 shnbsd_supply_gregset, shnbsd_collect_gregset.
8872 (shnbsd_gregset): New variable.
8873 (shnbsd_init_abi): Set regset_from_core_section.
8874 (GDB_OSABI_NETBSD_CORE): New define.
8875 (shnbsd_core_osabi_sniffer): New function.
8876 (_initialize_shnbsd_tdep): Register shnbsd_core_osabi_sniffer.
8877 * Makefile.in (shnbsd-tdep.o): Update dependencies.
8878 * config/sh/nbsd.mt (TDEPFILES): Add corelow.o, remove
8880 * config/sh/obsd.mt (TDEPFILES): Remove nbsd-tdep.o.
8882 2007-02-28 Joel Brobecker <brobecker@adacore.com>
8884 * gdbtypes.c (replace_type): Fix typo that caused us to not update
8885 length of the types referenced by the new type CV ring.
8887 2007-02-28 Daniel Jacobowitz <dan@codesourcery.com>
8889 * frame.c (frame_pop, frame_observer_target_changed): Call
8891 (flush_cached_frames): Rename to reinit_frame_cache and delete
8893 * frame.h (flush_cached_frames): Delete prototype and update comment.
8895 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd): Call
8896 reinit_frame_cache instead of flush_cached_frames. Do not call
8897 select_frame after reinit_frame_cache.
8898 * corelow.c (core_open): Likewise.
8899 * gdbarch.sh (deprecated_current_gdbarch_select_hack): Likewise.
8900 * infrun.c (prepare_to_proceed, context_switch)
8901 (handle_inferior_event): Likewise.
8902 * linux-fork.c (fork_load_infrun_state): Likewise.
8903 * ocd.c (ocd_start_remote): Likewise.
8904 * remote-e7000.c (e7000_start_remote): Likewise.
8905 * remote-mips.c (device): Likewise.
8906 * thread.c (switch_to_thread): Likewise.
8907 * tracepoint.c (finish_tfind_command): Likewise.
8908 * gdbarch.c: Regenerated.
8910 2007-02-28 Jerome Guitton <guitton@adacore.com>
8911 Joel Brobecker <brobecker@adacore.com>
8913 * gdbtypes.c (check_typedef): Do not replace stub type if
8914 the resolved type is not defined in the same objfile.
8916 2007-02-28 Daniel Jacobowitz <dan@codesourcery.com>
8918 * top.c (gdb_readline_wrapper_cleanup): Remove invalid assertion.
8920 2007-02-28 Joel Brobecker <brobecker@adacore.com>
8922 * stabsread.c (define_symbol): Create an associated STRUCT_DOMAIN
8923 symbol for Ada units when the symbol is defined using 't' rather
8924 than 'Tt' as symbol descriptor.
8926 2007-02-28 Ulrich Weigand <uweigand@de.ibm.com>
8928 * config/mips/tm-nbsd.h: Delete file.
8929 * config/mips/nbsd.mt (DEPRECATED_TM_FILE): Remove.
8930 * config/sh/tm-nbsd.h: Delete file.
8931 * config/sh/nbsd.mt (DEPRECATED_TM_FILE): Set to tm-sh.h.
8933 2007-02-28 Joel Brobecker <brobecker@adacore.com>
8935 * mi/mi-cmd-var.c (varobj_update_one): Remove reference to
8936 unused WRONG_PARAM value since it was recently deleted.
8938 2007-02-28 Vladimir Prus <vladimir@codesourcery.com>
8940 * varobj.c (varobj_update): Free temporary vectors.
8942 2007-02-28 Ulrich Weigand <uweigand@de.ibm.com>
8944 * config/powerpc/linux.mt (DEPRECATED_TM_FILE): Set to tm-ppc-eabi.h.
8945 * config/powerpc/tm-linux.h: Delete file.
8946 * config/powerpc/tm-ppc-eabi.h: Do not include "rs6000/tm-rs6000.h".
8947 (PROCESS_LINENUMBER_HOOK): Do not undefine.
8948 (TEXT_SEGMENT_BASE): Do not redefine.
8949 * config/rs6000/nm-rs6000.h (CHILD_SPECIAL_WAITSTATUS): Move here
8950 from config/rs6000/tm-rs6000.h.
8951 (TARGET_CREATE_INFERIOR_HOOK, rs6000_create_inferior): Likewise.
8952 * config/rs6000/tm-rs6000.h (struct frame_info): Remove declaration.
8953 (TEXT_SEGMENT_BASE): Remove.
8954 (IN_SOLIB_RETURN_TRAMPOLINE): Remove.
8955 (rs6000_in_solib_return_trampoline): Remove.
8956 (SKIP_TRAMPOLINE_CODE): Remove.
8957 (rs6000_skip_trampoline_code): Remove.
8958 (CHILD_SPECIAL_WAITSTATUS): Move to config/rs6000/nm-rs6000.h.
8959 (TARGET_CREATE_INFERIOR_HOOK, rs6000_create_inferior): Likewise.
8960 (FP0_REGNUM): Remove.
8961 (rs6000_find_toc_address_hook): Move to rs6000-tdep.h.
8962 (rs6000_set_host_arch_hook): Remove.
8963 * Makefile.in (rs6000-nat.o): Add dependency on $(rs6000_tdep_h).
8964 (rs6000-aix-tdep.o): Add dependency on $(ppc_tdep_h).
8965 * ppc-tdep.h (struct gdbarch_tdep): Add field text_segment_base.
8966 * rs6000-aix-tdep.c: Include "ppc-tdep.h".
8967 (rs6000_aix_init_osabi): Set text_segment_base tdep field.
8968 * rs6000-nat.c: Include "rs6000-tdep.h".
8969 (exec_one_dummy_insn): Replace TEXT_SEGMENT_BASE by tdep field.
8970 (set_host_arch): Rename to ...
8971 (rs6000_create_inferior): ... this. Make public.
8972 (_initialize_core_rs6000): Do not set rs6000_set_host_arch_hook.
8973 * rs6000-tdep.c (rs6000_set_host_arch_hook): Remove.
8974 (rs6000_create_inferior): Remove.
8975 (branch_dest): Replace TEXT_SEGMENT_BASE by tdep field.
8976 (rs6000_gdbarch_init): Call set_gdbarch_fp0_regnum,
8977 set_gdbarch_in_solib_return_trampoline, and
8978 set_gdbarch_skip_trampoline_code.
8979 * rs6000-tdep.h (rs6000_find_toc_address_hook): Move here
8980 from config/rs6000/tm-rs6000.h.
8982 2007-02-27 Joel Brobecker <brobecker@adacore.com>
8984 * buildsym.c (record_producer): Do nothing if no producer is provided.
8986 2007-02-27 Nick Roberts <nickrob@snap.net.nz>
8988 * varobj.c (varobj_update): Remove unused local. Use gdb_assert
8989 to check changelist is non-NULL. Call error if the frontend tries
8990 to update a non-root variable.
8992 * varobj.h (enum varobj_update_error): Delete WRONG_PARAM value.
8994 2007-02-27 Daniel Jacobowitz <dan@codesourcery.com>
8996 * dwarf2-frame.c (dwarf2_frame_cache, dwarf2_frame_this_id)
8997 (dwarf2_frame_sniffer): Update.
8998 (dwarf2_signal_frame_this_id): New function.
8999 (dwarf2_signal_frame_unwind): Use it.
9000 (dwarf2_frame_base_sniffer): Use frame_unwind_address_in_block.
9001 * frame.c (frame_func_unwind): Add this_type argument.
9002 (get_frame_func): Update.
9003 (frame_unwind_address_in_block): Add this_type argument and check it.
9005 (get_frame_address_in_block): Update.
9006 * frame.h (enum frame_type): Move higher in the file.
9007 (frame_unwind_address_in_block, frame_func_unwind): Add enum frame_type
9010 * alpha-mdebug-tdep.c, alpha-tdep.c, amd64-tdep.c, amd64obsd-tdep.c,
9011 arm-tdep.c, avr-tdep.c, cris-tdep.c, frv-tdep.c, h8300-tdep.c,
9012 hppa-tdep.c, i386-tdep.c, i386obsd-tdep.c, ia64-tdep.c,
9013 libunwind-frame.c, m32c-tdep.c, m32r-linux-tdep.c, m32r-tdep.c,
9014 m68hc11-tdep.c, m68k-tdep.c, m88k-tdep.c, mips-mdebug-tdep.c,
9015 mips-tdep.c, mn10300-tdep.c, mt-tdep.c, rs6000-tdep.c, s390-tdep.c,
9016 score-tdep.c, sh-tdep.c, sh64-tdep.c, sparc-tdep.c,
9017 sparc64obsd-tdep.c, spu-tdep.c, v850-tdep.c, vax-tdep.c,
9018 xstormy16-tdep.c, xtensa-tdep.c: Update calls to
9019 frame_func_unwind and frame_unwind_address_in_block to specify
9020 the frame type. Use frame_unwind_address_in_block instead of
9021 frame_pc_unwind in sniffers.
9023 2007-02-27 Daniel Jacobowitz <dan@codesourcery.com>
9025 * frame.c (deprecated_selected_frame): Rename to...
9026 (selected_frame): ...this. Make static.
9027 (get_selected_frame, select_frame): Update.
9028 * frame.h (deprected_select_frame): Delete.
9029 (deprecated_safe_get_selected_frame): Update comments.
9031 * breakpoint.c, cli/cli-cmds.c, f-valprint.c, infcmd.c, inflow.c,
9032 infrun.c, stack.c, tui/tui-disasm.c, tui/tui-source.c,
9033 tui/tui-winsource.c, valops.c, varobj.c, findvar.c, macroscope.c,
9034 parse.c, regcache.h, sh64-tdep.c, tui/tui-hooks.c, tui/tui-win.c,
9035 tui/tui.c: Replace references to deprecated_selected_frame.
9037 2007-02-27 Fred Fish <fnf@specifix.com>
9039 * rs6000-tdep.c (skip_prologue): Recognize addi instructions that
9040 directly decrement the stack pointer, accumulate their operand into
9041 the stack offset, and mark the function as not being frameless.
9043 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
9045 * arch-utils.c (selected_byte_order): New.
9046 * arch-utils.h (selected_byte_order): New prototype.
9047 * remote-sim.c (gdbsim_open): Use selected_byte_order.
9049 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
9051 * symfile.c (place_section): Check SEC_ALLOC. Do not check VMA.
9052 (default_symfile_offsets): Check VMA here. Update section VMAs.
9054 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
9056 * remote.c (init_remote_state): Add special handling for placeholder
9059 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
9061 * Makefile.in (XMLFILES): Include $(TDEP_XML).
9062 (filenames_h): New variable.
9063 (clean): Clean up xml-builtin.c and stamp-xml.
9064 (arm-linux-nat.o): Update.
9065 * config/arm/linux.mh (TDEP_XML): Define.
9066 * arm-linux-nat.c (PTRACE_GETWMMXREGS, PTRACE_SETWMMXREGS): Define.
9067 (arm_linux_has_wmmx_registers): New.
9068 (GET_THREAD_ID): Fix typo.
9069 (IWMMXT_REGS_SIZE): Define.
9070 (fetch_wmmx_regs, store_wmmx_regs): New.
9071 (arm_linux_fetch_inferior_registers): Use fetch_wmmx_regs.
9072 (arm_linux_store_inferior_registers): Use store_wmmx_regs.
9073 (super_xfer_partial, arm_linux_xfer_partial): New.
9074 (_initialize_arm_linux_nat): Use them.
9075 * xml-support.c (fetch_xml_builtin): Move outside HAVE_LIBEXPAT.
9076 (xml_builtin_xfer_partial): New function.
9077 * xml-support.h (xml_builtin_xfer_partial): New prototype.
9078 * NEWS: Update mention of iWMMXt support.
9080 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
9082 * arm-tdep.c (arm_scan_prologue): Do not record FPA register saves
9083 if there are no FPA registers.
9084 (arm_dwarf_reg_to_regnum): New function.
9085 (arm_register_type, arm_register_name): Return minimal values for
9086 unsupported registers.
9087 (arm_register_sim_regno): Handle iWMMXt registers.
9088 (arm_gdbarch_init): Record missing FPA registers if indicated by
9089 a target description. Recognize iWMMXt registers. Only register
9090 "info float" for FPA. Use ARM_NUM_REGS. Register
9091 arm_dwarf_reg_to_regnum.
9092 * arm-tdep.h (enum gdb_regnum): Add ARM_NUM_REGS and iWMMXt
9094 (struct gdbarch_tdep): Add have_fpa_registers.
9095 * features/xscale-iwmmxt.xml: Update capitalization.
9096 * regformats/arm-with-iwmmxt.dat: Regenerated.
9098 2007-02-24 Kevin Buettner <kevinb@redhat.com>
9100 * NEWS (New targets): Add entry for the Toshiba Media Processor.
9102 2007-02-23 Kevin Buettner <kevinb@redhat.com>
9104 * MAINTAINERS (mep): New target.
9106 2007-02-23 Kevin Buettner <kevinb@redhat.com>
9108 From Jim Blandy, Dave Brolley, Kevin Buettner, Don Howard, and
9110 * Makefile.in (elf_mep_h, mep_desc_h, mep_opc_h): New variables.
9111 (mep-tdep.o): New rule.
9112 * configure.tgt (mep-*-*): New target.
9113 * mep-tdep.c: New file.
9114 * config/mep/mep.mt: New file.
9116 2007-02-22 Markus Deuling <deuling@de.ibm.com>
9118 * infrun.c (inferior_stop_reason, print_stop_reason): Remove
9119 BREAKPOINT_HIT and STOP_UNKNOWN.
9121 2007-02-22 Markus Deuling <deuling@de.ibm.com>
9123 * valops.c (value_ind): Fix unary * handling of TYPE_CODE_INT.
9125 2007-02-20 Joel Brobecker <brobecker@adacore.com>
9127 * gdb_expat.h (XMLCALL): Define if not already defined.
9129 2007-02-20 Andreas Schwab <schwab@suse.de>
9131 * Makefile.in (symfile.o): Update dependencies.
9133 2007-02-20 Daniel Jacobowitz <dan@codesourcery.com>
9135 * MAINTAINERS: Disable -Werror for cris simulator. Build
9136 sparc64-solaris2.10 instead of the broken sparc-elf.
9137 * solib-frv.c: Include "solib.h".
9138 * Makefile.in (solib-frv.o): Update.
9139 * mt-tdep.c (mt_gdbarch_init): Correct typo in floatformats patch.
9140 * xtensa-tdep.c (xtensa_regset_from_core_section): Cast size_t to int.
9141 (xtensa_frame_this_id, xtensa_frame_prev_register)
9142 (xtensa_push_dummy_call): Use %p.
9144 2007-02-16 Daniel Jacobowitz <dan@codesourcery.com>
9146 * avr-tdep.c, hppa-tdep.c, hppabsd-tdep.c, i386-tdep.c,
9147 ia64-tdep.c, m68k-tdep.c, mips-linux-tdep.c, ppcobsd-tdep.c,
9148 sparc-linux-tdep.c: Include "gdbtypes.h" instead of "floatformat.h".
9149 * Makefile.in (avr-tdep.o, hppabsd-tdep.o, hppa-tdep.o, i386-tdep.o)
9150 (ia64-tdep.o, m68k-tdep.o, mips-linux-tdep.o, ppcobsd-tdep.o)
9151 (sparc-linux-tdep.o): Update.
9153 2007-02-15 Maxim Grigoriev <maxim2405@gmail.com>
9155 * xtensa-tdep.h (xtensa_reg_mask_t): New.
9156 (xtensa_mask_t): Change mask field to be a separate array.
9157 * xtensa-tdep.c (extract_call_winsize, xtensa_pseudo_register_read)
9158 (xtensa_pseudo_register_write, xtensa_unwind_pc)
9159 (xtensa_unwind_dummy_id, xtensa_push_dummy_call)
9160 (xtensa_breakpoint_from_pc): Remove implicit type casting.
9161 * xtensa-config.c (mask0, mask1, mask2, mask3, mask4, mask5)
9162 (mask6, mask7, mask8, mask9, mask10, mask11, mask12, mask13)
9163 (mask14, mask15): Rename to
9164 (xtensa_mask0, xtensa_mask1, xtensa_mask2, xtensa_mask3)
9165 (xtensa_mask4, xtensa_mask5, xtensa_mask6, xtensa_mask7)
9166 (xtensa_mask8, xtensa_mask9, xtensa_mask10, xtensa_mask11)
9167 (xtensa_mask12, xtensa_mask13, xtensa_mask14, xtensa_mask15): this.
9168 (xtensa_submask0, xtensa_submask1, xtensa_submask2, xtensa_submask3)
9169 (xtensa_submask4, xtensa_submask5, xtensa_submask6, xtensa_submask7)
9170 (xtensa_submask8, xtensa_submask9, xtensa_submask10)
9171 (xtensa_submask11, xtensa_submask12, xtensa_submask13)
9172 (xtensa_submask14, xtensa_submask15): New.
9173 (rmap): Follow strict aliasing rules doing static initialization.
9175 2007-02-13 Daniel Jacobowitz <dan@codesourcery.com>
9177 * target-descriptions.c (tdesc_named_type): Move code_ptr and data_ptr
9178 handling from here...
9179 (tdesc_register_type): ...to here.
9180 * xml-tdesc.c (tdesc_start_reg): Allow code_ptr and data_ptr.
9181 * features/arm-core.xml: Use code_ptr and data_ptr.
9183 2007-02-13 Denis Pilat <denis.pilat@st.com>
9185 * varobj.h (enum varobj_update_error): New enum.
9186 * varobj.c (struct varobj_root): Add is_valid member.
9187 (varobj_get_type): Check for invalid varobj.
9188 (varobj_get_attributes): Likewise.
9189 (variable_editable):Likewise.
9190 (varobj_update): Likewise. Use varobj_update_error.
9191 (new_root_variable): Set root varobj as valid by default.
9192 (varobj_invalidate): New function.
9193 * symfile.c (clear_symtab_users): Use varobj_invalidate.
9194 * mi/mi-cmd-var.c (varobj_update_one): Change return type to void.
9195 Use varobj_update_error.
9197 2007-02-12 Pierre Muller <muller@ics.u-strasbg.fr>
9200 * dwarfread.c (set_cu_language): Recognize DW_LANG_Pascal83 as
9201 Pascal language marker.
9202 * dwarf2read.c (set_cu_language): Likewise.
9204 2007-02-12 Corinna Vinschen <vinschen@redhat.com>
9206 * win32-nat.c (win32_wait): Reset terminal pgrp to GDB.
9207 (do_initial_win32_stuff): Call terminal_init_inferior_with_pgrp
9208 instead of target_terminal_init since inferior_ptid isn't set yet.
9210 2007-02-10 Pedro Alves <pedro_alves@portugalmail.pt>
9212 * MAINTAINERS (Write After Approval): Add myself.
9214 2007-02-09 Fred Fish <fnf@specifix.com>
9216 Based on work by Apple Computer, Inc.
9217 * event-top.c (async_request_quit): Call quit() whenever either
9218 quit_flag is set or immediate_quit is set.
9220 2007-02-09 Gabriel Dos Reis <gdr@integrable-solutions.net>
9222 * ada-lang.c (remove_out_of_scope_renamings): Change third parameter's
9223 type to a pointer to const struct block.
9224 (ada_lookup_symbol_list): Don't cast away constness when calling
9225 remove_out_of_scope_renamings.
9227 2007-02-09 Gabriel Dos Reis <gdr@integrable-solutions.net>
9229 * linux-nat.c (linux_nat_find_memory_regions): Don't check the
9230 address of 'filename'; it is always non null.
9232 2007-02-09 Joel Brobecker <brobecker@adacore.com>
9234 * exec.c (add_to_section_table): Do not discard empty sections.
9236 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
9238 * features/Makefile, features/arm-with-iwmmxt.xml,
9239 features/gdbserver-regs.xsl, features/number-regs.xsl,
9240 features/sort-regs.xsl, features/xscale-iwmmxt.xml: New files.
9241 * regformats/arm-with-iwmmxt.dat: Generate.
9242 * NEWS: Mention iWMMXt.
9244 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
9246 * Makefile.in (arm-tdep.o, eval.o, target-descriptions.o)
9247 (xml-tdesc.o): Update.
9248 * xml-support.c: Add a comment.
9249 (gdb_xml_enums_boolean): New variable.
9250 (gdb_xml_parse_attr_enum): Use strcasecmp.
9251 * xml-support.h (gdb_xml_enums_boolean): Declare.
9252 * xml-tdesc.c (struct tdesc_parsing_data): Record current_feature,
9253 next_regnum, and current_union.
9254 (tdesc_start_feature, tdesc_start_reg, tdesc_start_union)
9255 (tdesc_end_union, tdesc_start_field, tdesc_start_vector)
9256 (field_attributes, union_children, reg_attributes, union_attributes)
9257 (vector_attributes, feature_attributes, feature_children): New.
9258 (target_children): Make static. Add <feature>.
9259 (tdesc_elements): Make static.
9260 * target-descriptions.c (struct tdesc_reg, tdesc_reg_p, type_p)
9261 (struct tdesc_feature, tdesc_feature_p): New types.
9262 (struct target_desc): Add features member.
9263 (struct tdesc_arch_data, tdesc_data): New.
9264 (target_find_description): Clarify error message. Warn about
9265 ignored register descriptions.
9266 (tdesc_has_registers, tdesc_find_feature, tdesc_feature_name)
9267 (tdesc_named_type, tdesc_data_init, tdesc_data_alloc)
9268 (tdesc_data_cleanup, tdesc_numbered_register)
9269 (tdesc_numbered_register_choices, tdesc_find_register)
9270 (tdesc_register_name, tdesc_register_type)
9271 (tdesc_remote_register_number, tdesc_register_reggroup_p)
9272 (set_tdesc_pseudo_register_name, set_tdesc_pseudo_register_type)
9273 (set_tdesc_pseudo_register_reggroup_p, tdesc_use_registers)
9274 (tdesc_free_reg, tdesc_create_reg, tdesc_free_feature)
9275 (tdesc_create_feature, tdesc_record_type): New.
9276 (free_target_description): Free features.
9277 (_initialize_target_descriptions): Initialize tdesc_data.
9278 * arch-utils.c (default_remote_register_number): New.
9279 * arch-utils.h (default_remote_register_number): New prototype.
9280 * target-descriptions.h (set_tdesc_pseudo_register_name)
9281 (set_tdesc_pseudo_register_type, set_tdesc_pseudo_register_reggroup_p)
9282 (tdesc_use_registers, tdesc_data_alloc, tdesc_data_cleanup)
9283 (tdesc_numbered_register, tdesc_numbered_register_choices)
9284 (tdesc_has_registers, tdesc_find_feature, tdesc_feature_name)
9285 (tdesc_named_type, tdesc_create_feature, tdesc_record_type)
9286 (tdesc_create_reg): Declare.
9287 * gdbarch.sh (remote_register_number): New entry.
9288 * gdbarch.c, gdbarch.h: Regenerate.
9289 * remote.c (init_remote_state): Use gdbarch_remote_register_number.
9290 * features/gdb-target.dtd: Add feature, reg, vector, union, and field.
9292 * arm-tdep.c (arm_register_aliases): New.
9293 (arm_register_name_strings): Rename to...
9294 (arm_register_names): ...this. Make const. Delete the old version.
9295 (current_option, arm_register_byte): Delete.
9296 (set_disassembly_style): Simplify. Do not adjust arm_register_names.
9297 (value_of_arm_user_reg): New.
9298 (arm_gdbarch_init): Verify any described registers. Call
9299 tdesc_use_registers. Don't use arm_register_byte. Create aliases
9300 for standard register names.
9301 (_initialize_arm_tdep): Do not adjust arm_register_names.
9302 * user-regs.c (struct user_reg): Add baton member.
9303 (append_user_reg, user_reg_add_builtin, user_regs_init)
9304 (user_reg_add, value_of_user_reg): Use a baton for user
9306 * std-regs.c: Update.
9307 * user-regs.h (user_reg_read_ftype, user_reg_add_builtin)
9308 (user_reg_add): Add baton argument.
9309 * NEWS: Mention target description register support.
9310 * features/arm-core.xml, features/arm-fpa.xml: New.
9311 * eval.c (evaluate_subexp_standard): Allow ptype $register
9312 when the program is not running.
9314 2007-02-09 Nick Roberts <nickrob@snap.net.nz>
9316 * mi/mi-cmd-var.c (mi_cmd_var_create): Add value field.
9318 2007-02-08 Thiago Jung Bauermann <bauerman@br.ibm.com>
9320 * rs6000-tdep.c (gdb_print_insn_powerpc): Set
9321 info->disassembler_options to "any".
9323 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
9325 * varobj.c (install_new_value): Only call value_get_print_value
9328 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
9330 Reported by timeless@gmail.com:
9331 * gdb/target.c (target_flash_erase): Do not return void value.
9332 (target_flash_done): Likewise.
9333 * gdb/cli/cli-cmds.c (source_command): Likewise.
9335 2007-02-08 Fred Fish <fnf@specifix.com>
9337 Based on work by Apple Computer, Inc.
9338 * event-top.c (handle_sigint): Set quit_flag.
9339 (async_request_quit): Don't set quit_flag. Avoid calling quit()
9340 if quit_flag has already been reset.
9342 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
9344 * ser-mingw.c (pipe_windows_close): Move variable initialization back
9347 2007-02-08 Fred Fish <fnf@specifix.com>
9349 * defs.h (request_quit): Remove declaration.
9350 * utils.c (request_quit): Remove definition.
9352 2007-02-08 Joel Brobecker <brobecker@gnat.com>
9353 Jan Kratochvil <jan.kratochvil@redhat.com>
9354 Daniel Jacobowitz <dan@codesourcery.com>
9356 * rs6000-tdep.c (bl_to_blrl_insn_p): New function.
9357 (skip_prologue): Allow bl->blrl used by PIC code.
9359 2007-02-08 Mark Kettenis <kettenis@gnu.org>
9360 Daniel Jacobowitz <dan@codesourcery.com>
9362 * cp-valprint.c (cp_print_value_fields, cp_print_value): Always
9363 initialize tmp_obstack.
9364 * p-valprint.c (pascal_object_print_value_fields)
9365 (pascal_object_print_value): Likewise.
9367 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
9369 * features/feature_to_c.sh: Use %s to avoid problems with nawk.
9371 2007-02-08 Mark Kettenis <kettenis@gnu.org>
9373 * sparcnbsd-tdep.c: Include "gdbtypes.h" instead of "floatformat.h".
9374 * Makefile.in (sparcnbsd-tdep.o): Update dependencies.
9376 2007-02-07 Daniel Jacobowitz <dan@codesourcery.com>
9378 * xml-tdesc.c (struct tdesc_xml_cache, tdesc_xml_cache_s)
9380 (tdesc_parse_xml): Cache expanded descriptions.
9382 2007-02-07 Daniel Jacobowitz <dan@codesourcery.com>
9384 * Makefile.in (XMLFILES): New.
9385 (COMMON_OBS): Add xml-builtin.o.
9386 (xml-builtin.c, stamp-xml): New rules.
9387 (xml-tdesc.o): Update.
9388 * features/feature_to_c.sh: New file.
9389 * xml-support.c (MAX_XINCLUDE_DEPTH): Define.
9390 (struct gdb_xml_parser): Add dtd_name and is_xinclude.
9391 (gdb_xml_start_element): Initialize scope after possibly reallocating
9392 scopes. Move cleanup later. Handle the XInclude description
9394 (gdb_xml_end_element): Only parse the body if there is a current element.
9395 Call XML_DefaultCurrent if there is no element.
9396 (gdb_xml_fetch_external_entity, gdb_xml_use_dtd): New.
9397 (struct xinclude_parsing_data, xinclude_start_include)
9398 (xinclude_end_include, xml_xinclude_default)
9399 (xml_xinclude_start_doctype, xml_xinclude_end_doctype)
9400 (xml_xinclude_xml_decl, xml_xinclude_cleanup, xinclude_attributes)
9401 (xinclude_elements, xml_process_xincludes, fetch_xml_builtin): New.
9402 * xml-support.h (xml_fetch_another, xml_process_xincludes)
9403 (fetch_xml_builtin, xml_builtin, gdb_xml_use_dtd): New declarations.
9404 * xml-tdesc.c (tdesc_parse_xml): Add fetcher_baton argument. Expand
9405 XInclude directives. Use the compiled in DTD.
9406 (fetch_xml_from_file): Add baton argument. Treat it as a containing
9407 directory name. Do not warn here.
9408 (file_read_description_xml): Update call. Warn here instead. Pass
9410 (fetch_available_features_from_target): New.
9411 (target_read_description_xml): Use it.
9412 * features/gdb-target.dtd: Add copyright notice. Use xinclude.dtd
9414 * features/xinclude.dtd: New file.
9416 2007-02-05 Daniel Jacobowitz <dan@codesourcery.com>
9418 * linux-thread-db.c (check_for_thread_db): Return early if we have
9419 no libthread_db support.
9421 2007-02-05 Daniel Jacobowitz <dan@codesourcery.com>
9423 * mi/mi-parse.h: Include <sys/time.h>.
9425 2007-02-05 Nick Roberts <nickrob@snap.net.nz>
9427 * mi/mi-cmd-stack.c (list_args_or_locals): Use common_val_print
9428 instead of print_variable_value to print values.
9430 2007-02-03 Nick Roberts <nickrob@snap.net.nz>
9432 * mi/mi-main.c: Numerous formatting changes.
9433 (mi_cmd_data_write_register_values): Replace clause inadvertantly
9434 removed in my previous change.
9436 2007-02-03 Eli Zaretskii <eliz@gnu.org>
9438 * mi/mi-main.c (mi_load_progress, timestamp, print_diff_now):
9439 Use 1000000L instead of 1000000.
9441 2007-02-03 Nick Roberts <nickrob@snap.net.nz>
9443 Based on work by Apple Computer, Inc.
9445 * configure.ac: Test for sys/resource.h and getrusage.
9446 * configure, config.in: Regenerate.
9448 * mi/mi-main.c: Include <sys/resource.h> if present.
9449 (rusage): Declare if HAVE_GETRUSAGE.
9450 (current_command_ts, do_timings): New static variables.
9451 (timestamp, print_diff_now, print_diff, timeval_diff):
9452 New static timing functions.
9453 (mi_cmd_enable_timings): New function for new MI command.
9454 (captured_mi_execute_command, mi_execute_async_cli_command):
9455 Call timing functions.
9457 * mi/mi-cmds.c (mi_cmds): Add entry for new MI command
9460 * mi/mi-cmds.h (mi_cmd_enable_timings): New extern.
9462 * mi/mi-parse.h: (mi_timestamp): New structure.
9463 (mi_parse): Add mi_timestamp* member.
9465 2007-02-02 Denis Pilat <denis.pilat@st.com>
9467 * thread.c (make_cleanup_restore_current_thread): New function.
9468 (info_threads_command): Use of make_cleanup_restore_current_thread
9469 to restore the current thread and the selected frame.
9470 (restore_selected_frame): New function.
9471 (struct current_thread_cleanup): Add frame_id field.
9472 (do_restore_current_thread_cleanup): Add restoring of the selected
9474 (make_cleanup_restore_current_thread): Likewise.
9475 (thread_apply_all_command): backup the selected frame while
9476 entering the function and restore it at exit.
9477 (thread_apply_command): Likewise.
9479 2007-02-02 Denis Pilat <denis.pilat@st.com>
9481 * MAINTAINERS (Write After Approval): Add myself to the list.
9483 2007-02-01 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
9485 * gdb/remote-m32r.sdi.c (m32r_fetch_register): Change PWD mask.
9486 (m32r_store_register): Ditto.
9488 2007-01-30 Vladimir Prus <vladimir@codesourcery.com>
9490 * ser-mingw.c (pipe_windows_open)
9491 (pipe_windows_read, pipe_windows_write): Declare
9492 variables at the top of the function.
9494 2007-01-29 Daniel Jacobowitz <dan@codesourcery.com>
9496 * doublest.c (floatformat_from_length): Use the right element from
9497 gdbarch floatformats.
9498 (floatformat_from_type, extract_typed_floating)
9499 (store_typed_floating): Likewise.
9500 * doublest.h: Remove declarations for undefined floatformat arrays.
9501 * gdbarch.sh (float_format, double_format, long_double_format): Change
9503 (pformat): Update for pairs.
9504 * gdbarch.c, gdbarch.h: Regenerated.
9505 * gdbtypes.c (floatformats_ieee_single, floatformats_ieee_double)
9506 (floatformats_ieee_double_littlebyte_bigword)
9507 (floatformats_i387_ext, floatformats_m68881_ext, floatformats_arm_ext)
9508 (floatformats_ia64_spill, floatformats_ia64_quad, floatformats_vax_f)
9509 (floatformats_vax_d): New variables.
9510 (builtin_type_ieee_single, builtin_type_ieee_double)
9511 (builtin_type_arm_ext, builtin_type_ia64_spill)
9512 (builtin_type_ia64_quad): Replace arrays with individual types.
9513 (builtin_type_ieee_single_big, builtin_type_ieee_single_little)
9514 (builtin_type_ieee_double_big, builtin_type_ieee_double_little)
9515 (builtin_type_ieee_double_littlebyte_bigword, builtin_type_i960_ext)
9516 (builtin_type_m88110_ext, builtin_type_m88110_harris_ext)
9517 (builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword)
9518 (builtin_type_ia64_spill_big, builtin_type_ia64_spill_little)
9519 (builtin_type_ia64_quad_big, builtin_type_ia64_quad_little): Delete
9520 unused and endian-specific types.
9521 (recursive_dump_type): Update for floatformat pairs.
9522 (build_flt): Move higher. Handle bit == -1. Take a floatformat pair.
9523 (build_gdbtypes): Use build_flt.
9524 (_initialize_gdbtypes): Update set of initialized types.
9525 * gdbtypes.h: Update declarations to match gdbtypes.c.
9526 (struct main_type): Store a pointer to two floatformats.
9527 * arch-utils.c (default_float_format, default_double_format): Delete.
9528 * arch-utils.h (default_float_format, default_double_format): Delete.
9530 * arm-tdep.c, avr-tdep.c, hppa-tdep.c, hppabsd-tdep.c, i386-tdep.c,
9531 ia64-tdep.c, iq2000-tdep.c, m68k-tdep.c, m88k-tdep.c,
9532 mips-linux-tdep.c, mips-tdep.c, mt-tdep.c, ppcobsd-tdep.c,
9533 sparc-linux-tdep.c, sparc-tdep.c, sparcnbsd-tdep.c, spu-tdep.c,
9534 vax-tdep.c, alpha-tdep.c, ppc-sysv-tdep.c: Update.
9536 2007-01-29 Joel Brobecker <brobecker@adacore.com>
9538 * target.c (maintenance_print_target_stack): New function.
9539 (initialize_targets): Add new "maintenance print target-stack"
9542 2007-01-28 Mark Kettenis <kettenis@gnu.org>
9544 * dwarf2read.c (new_symbol): Handle DW_AT_decl_file being zero.
9546 2007-01-27 Daniel Jacobowitz <dan@codesourcery.com>
9548 * dwarf2loc.h (struct dwarf2_locexpr_baton): Change size to a long.
9549 (struct dwarf2_loclist_baton): Likewise.
9551 2007-01-27 Eli Zaretskii <eliz@gnu.org>
9553 * cli/cli-script.c: Include breakpoint.h.
9554 (build_command_line): Require arguments only for if and while
9556 (get_command_line, execute_user_command, execute_control_command):
9557 Fix wording of warning messages.
9558 (print_command_lines): Print breakpoint commands.
9559 (execute_control_command): Call commands_from_control_command to
9560 handle the `commands' command inside a body of a flow-control
9562 (read_next_line): Recognize the `commands' command and build a
9563 command line structure for it.
9564 (recurse_read_control_structure, read_command_lines): Handle
9565 `commands' similarly to `if' and `while'.
9567 * breakpoint.c (get_number_trailer): Document the special meaning
9568 of NULL as the first argument PP.
9569 (commands_from_control_command): New function.
9571 * breakpoint.h (commands_from_control_command): Add prototype.
9573 * defs.h (commands_control): New enumerated value for enum
9574 command_control_type.
9576 2007-01-26 Joel Brobecker <brobecker@adacore.com>
9578 * ada-lang.c (ada_exception_breakpoint_ops): Fix typo in function name.
9579 (ada_exception_sal): Update accordingly.
9581 2007-01-26 Jan Kratochvil <jan.kratochvil@redhat.com>
9583 * c-valprint.c (c_val_print): Require strings to be of no-signed CHARs.
9584 * NEWS: Describe CHAR array vs. string identifcation rules.
9586 2007-01-25 Paul Brook <paul@codesourcery.com>
9588 * arm-tdep.c (arm_get_next_pc): Fix bitfield off-by-one error.
9590 2007-01-24 Jim Blandy <jimb@codesourcery.com>
9592 * dwarf2loc.c (dwarf2_evaluate_loc_desc): When the location
9593 expression is empty, bother to return the 'optimized out' value we
9594 construct. (Thanks to Carl Burch.)
9596 2007-01-24 Vladimir Prus <vladimir@codesourcery.com>
9598 * varobj.c (c_value_of_root, c_value_of_child)
9599 (cplus_describe_child): Don't call release_value.
9601 2007-01-24 Thiemo Seufer <ths@mips.com>
9603 * mips-linux-tdep.c (mips_linux_n64_rt_sigframe): Fix struct
9606 2007-01-24 Vladimir Prus <vladimir@codesourcery.com>
9608 Refactor getting children name, value and type access
9610 * varobj.c (get_type_deref): Remove.
9611 (adjust_value_for_child_access): New.
9612 (c_number_of_children): Use the above.
9613 (c_describe_child): Likewise.
9614 (enum accessibility): New.
9615 (match_accessibility): New function.
9616 (cplus_describe_child): New function.
9617 (cplus_name_of_child, cplus_value_of_child)
9618 (cplus_type_of_child): Reimplement in terms
9619 of cplus_describe_child.
9620 (cplus_number_of_children): Use
9621 adjust_value_for_child_access.
9623 2007-01-24 Vladimir Prus <vladimir@codesourcery.com>
9625 Fix computation of the 'editable' attribute and
9626 value changeability for for references.
9627 * varobj.c (get_value_type): New function.
9628 (c_variable_editable): Use get_value_type.
9629 (varobj_value_is_changeable): Likewise.
9631 2007-01-24 Joel Brobecker <brobecker@adacore.com>
9633 * source.c (find_and_open_source): Try rewriting the source
9634 path inside filename if dirname is NULL.
9636 2007-01-24 Joel Brobecker <brobecker@adacore.com>
9638 * dwarf2read.c (add_partial_symbol): Create an extra partial
9639 symbol in the VAR_DOMAIN for Ada structures, unions or enums.
9640 (new_symbol): Likewise for symbols.
9642 2007-01-24 Nick Roberts <nickrob@snap.net.nz>
9644 * mi/mi-main.c (mi_cmd_execute): Call free_all_values.
9646 2007-01-23 Vladimir Prus <vladimir@codesourcery.com>
9648 * value.c (value_primitive_field): Copy the full 'location'
9649 contents, instead of assuming that copying ADDRESS will
9650 bring over everything in the union. Remove obsolete comment.
9652 2007-01-23 Masaki Muranaka <monaka@monami-software.com>
9654 * m32c-tdep.c (make_regs, m32c_analyze_prologue)
9655 (m32c_skip_trampoline_code, m32c_m16c_address_to_pointer)
9656 (m32c_m16c_pointer_to_address): Separate code from declarations.
9658 2007-01-23 Nick Hudson <nick.hudson@dsl.pipex.com>
9660 * target.c (update_current_target): Correct typo.
9662 2007-01-22 Masaki Muranaka <monaka@monami-software.com>
9664 * xstormy16-tdep.c (xstormy16_skip_prologue): Separate code from a
9667 2007-01-11 Andrew Cagney <cagney@redhat.com>
9668 Daniel Jacobowitz <dan@codesourcery.com>
9669 Jan Kratochvil <jan.kratochvil@redhat.com>
9671 * dwarf2-frame.c (execute_cfa_program): New support of
9672 `DW_CFA_GNU_negative_offset_extended'.
9674 2007-01-21 Daniel Jacobowitz <dan@codesourcery.com>
9676 * NEWS: Mention flash support for "load" and new remote packets.
9678 2007-01-21 Markus Deuling <deuling@de.ibm.com>
9680 * breakpoint.c (delete_command): Skip redundant loop iterations.
9682 2007-01-21 Daniel Jacobowitz <dan@codesourcery.com>
9684 * gdbarch.sh (register_type): Update comment.
9685 * gdbarch.h: Regenerated.
9686 * arch-utils.c (generic_register_size): Call register_type.
9687 * ia64-tdep.c (ia64_extract_return_value): Likewise.
9688 * m32c-tdep.c (check_for_saved): Likewise.
9689 * mips-tdep.c (mips_print_register, print_gp_register_row)
9690 (mips_print_registers_info): Likewise.
9691 * sh-tdep.c (sh_pseudo_register_read, sh_pseudo_register_write):
9693 * sh64-tdep.c (sh64_pseudo_register_read, sh64_pseudo_register_write)
9694 (sh64_do_register, sh64_print_register)
9695 (sh64_media_print_registers_info): Likewise.
9696 * tui/tui-regs.c (tui_register_format): Likewise.
9698 2007-01-21 Daniel Jacobowitz <dan@codesourcery.com>
9700 * objfiles.h (ALL_PRIMARY_SYMTABS): Define.
9702 * ada-lang.c (symtab_for_sym, ada_lookup_symbol_list)
9703 (ada_lookup_symbol): Use ALL_PRIMARY_SYMTABS.
9704 * cp-support.c (make_symbol_overload_list_qualified): Likewise.
9705 * symtab.c (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
9706 (basic_lookup_transparent_type, find_pc_sect_symtab, search_symbols)
9707 (make_symbol_completion_list): Likewise.
9709 2007-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
9710 Daniel Jacobowitz <dan@codesourcery.com>
9712 * buildsym.c (end_symtab): Use preallocated symtab if available.
9713 Fill in SYMBOL_SYMTAB.
9714 * buildsym.h (struct subfile): Add symtab member.
9715 * dwarf2read.c (struct dwarf2_cu): Add line_header.
9716 (struct file_entry): Add symtab.
9717 (free_cu_line_header): New function.
9718 (read_file_scope): Use it. Save line_header in the cu. Process
9720 (add_file_name): Initialize new symtab member.
9721 (dwarf_decode_lines): Create symtabs for included files.
9722 (new_symbol): Set SYMBOL_SYMTAB.
9723 * symtab.c (lookup_symbol): Use SYMBOL_SYMTAB.
9724 (search_symbols): Likewise.
9725 * symtab.h (struct symbol): Add symtab member.
9726 (SYMBOL_SYMTAB): Define.
9728 2007-01-20 Daniel Jacobowitz <dan@codesourcery.com>
9730 * symfile.c (allocate_symtab): Remove INIT_EXTRA_SYMTAB_INFO.
9732 2007-01-20 Daniel Jacobowitz <dan@codesourcery.com>
9734 * arch-utils.c (show_endian): Correct reversed condition.
9736 2007-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
9738 * MAINTAINERS (Write After Approval): Add myself.
9740 2007-01-16 Daniel Jacobowitz <dan@codesourcery.com>
9741 Vladimir Prus <vladimir@codesourcery.com>
9743 Fix 'selected frame' varobjs.
9744 * varobj.c (struct varobj): Remove the error field.
9745 (varobj_set_value): Don't check var->error.
9746 (install_new_value): Don't set var->error.
9747 (varobj_update): Always pass the new value
9748 of the root via install_new_value.
9749 (create_child): Don't set error field.
9750 (new_variable): Likewise.
9751 (c_value_of_root): Always reevaluate the value
9752 of selected frame varobjs in the selected frame.
9753 Don't call reinit_frame_cache.
9755 2007-01-15 Joel Brobecker <brobecker@adacore.com>
9757 * source.c (_initialize_source): Improve the help text of
9758 the substitute-path commands.
9760 2007-01-14 Mark Kettenis <kettenis@gnu.org>
9762 * frv-tdep.c (frv_gdbarch_init, frv_register_name)
9763 (frv_breakpoint_from_pc, frv_gdbarch_adjust_breakpoint_address)
9764 (frv_skip_prologue): Remove prototypes.
9765 (frv_adjust_breakpoint_address): Renamed from
9766 frv_gdbarch_adjust_breakpoint_address.
9767 (frv_gdbarch_init): Adjust.
9769 2007-01-13 Mark Kettenis <kettenis@gnu.org>
9771 * gdbarch.sh (deprecated_extract_return_value)
9772 (deprecated_store_return_value): Remove.
9773 (extract_return_value, store_return_value): Remove default values.
9774 * gdbarch.c, gdbarch.h: Regenerate.
9775 * arch-utils.c, arch-utils.h (legacy_extract_return_value)
9776 (legacy_store_return_value): Remove.
9777 * regcache.c, regcache.h (deprecated_grub_regcache_for_registers):
9780 * mi/mi-main.c: Remove obsolete comment.
9782 * regcache.c, regcache.h (deprecated_register_bytes)
9783 (deprecated_read_register_bytes)
9784 (deprecated_write_register_bytes): Remove.
9786 * frame.c (get_frame_register_bytes, put_frame_register_bytes):
9787 Don't forget to move destination pointer.
9789 2007-01-01 Mark Kettenis <kettenis@gnu.org>
9791 * config/i386/nm-i386gnu.h (CHILD_PREPARE_TO_STORE): Remove.
9793 2007-01-11 Ulrich Weigand <uweigand@de.ibm.com>
9795 * spu-tdep.c (spu_analyze_prologue): Fix erroneous backtrace
9796 past entry function with recent newlib.
9798 2007-01-11 Vladimir Prus <vladimir@codesourcery.com>
9800 * gdb.texinfo (GDB/MI Variable Objects): Improve the
9801 introduction. Specify -var-update more exactly.
9803 2007-01-11 Daniel Jacobowitz <dan@codesourcery.com>
9805 * frame.c (get_prev_frame_1): Check PC_REGNUM before using it.
9807 2007-01-10 Jim Blandy <jimb@codesourcery.com>
9809 * MAINTAINERS (Global Maintainers): Ulrich Weigand has accepted
9810 the Global Maintainers' invitation to be a global maintainer.
9812 2007-01-10 Daniel Jacobowitz <dan@codesourcery.com>
9814 * infrun.c (singlestep_pc): New variable.
9815 (resume): Set singlestep_pc.
9816 (context_switch): Add a debugging message. Flush the frame cache.
9817 (handle_inferior_event): Add debugging messages. Handle thread
9818 hops when a software single step has completed. Let context_switch
9819 handle flushing the frame cache.
9821 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
9823 * NEWS: Mention target descriptions, "set tdesc filename",
9824 "unset tdesc filename", "show tdesc filename", and
9825 qXfer:features:read.
9826 * arch-utils.c (choose_architecture_for_target): New function.
9827 (gdbarch_info_fill): Call it.
9828 * target-descriptions.c (struct property): Make members non-const.
9829 (struct target_desc): Add arch member.
9830 (target_description_filename): New variable.
9831 (target_find_description): Try via XML first.
9832 (tdesc_architecture): New.
9833 (free_target_description, make_cleanup_free_target_description): New.
9834 (set_tdesc_property): Call xstrdup.
9835 (set_tdesc_architecture, tdesc_set_cmdlist, tdesc_show_cmdlist)
9836 (tdesc_unset_cmdlist, unset_tdesc_cmd, unset_tdesc_filename_cmd)
9837 (set_tdesc_cmd, show_tdesc_cmd, set_tdesc_filename_cmd)
9838 (show_tdesc_filename_cmd, _initialize_target_descriptions): New.
9839 * target-descriptions.h (tdesc_architecture)
9840 (make_cleanup_free_target_description, set_tdesc_architecture): New
9842 * Makefile.in (SFILES): Add xml-tdesc.c.
9843 (COMMON_OBS): Add xml-tdesc.o.
9844 (target-descriptions.o): Update.
9845 (xml-tdesc.o): New rule.
9846 * xml-tdesc.c, xml-tdesc.h: New files.
9847 * remote.c (PACKET_qXfer_features): New enum.
9848 (remote_protocol_features): Add qXfer:features:read.
9849 (remote_xfer_partial): Handle TARGET_OBJECT_AVAILABLE_FEATURES.
9850 (_initialize_remote): Register qXfer:features:read.
9851 * target.h (enum target_object): Add TARGET_OBJECT_AVAILABLE_FEATURES.
9852 * features/gdb-target.dtd: New file.
9854 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
9856 * copyright.sh: Clarify error.
9858 2007-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
9860 * symtab.c (matching_bfd_sections): Fix VMA matching for
9863 2007-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
9865 * minsyms.c (lookup_minimal_symbol_by_pc_section): Handle
9868 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
9870 Updated copyright notices for most files.
9872 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
9874 * copyright.sh (prunes): Add step-line.inp and step-line.c.
9876 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
9878 * configure.ac (DEBUGDIR_RELOCATABLE): Define for debugdir inside
9880 (TARGET_SYSTEM_ROOT_RELOCATABLE): Allow for exec_prefix being
9882 * configure, config.in: Regenerate.
9883 * defs.h (debug_file_directory): Declare.
9884 * main.c (captured_main): Canonicalize gdb_sysroot. Assume
9885 TARGET_SYSTEM_ROOT is defined. Initialize debug_file_directory and
9886 relocate it if DEBUGDIR_RELOCATABLE.
9887 * symfile.c (debug_file_directory): Make non-static.
9888 (find_separate_debug_file): Look for debug info for SYSROOT/PATH
9889 in DEBUGDIR/PATH if DEBUGDIR is inside SYSROOT.
9890 (_initialize_symfile): Don't initialize debug_file_directory here.
9892 2007-01-09 Jim Blandy <jimb@codesourcery.com>
9894 * score-tdep.c (score_push_dummy_call): Don't mix declarations and
9897 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
9899 * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Use
9900 frame_unwind_register to recurse.
9901 * alpha-tdep.c (alpha_sigtramp_frame_prev_register): Likewise.
9902 (alpha_heuristic_frame_prev_register): Likewise.
9903 * h8300-tdep.c (h8300_frame_prev_register): Likewise.
9904 * m32c-tdep.c (m32c_prev_register): Likewise.
9905 * frame.c (frame_register_unwind_location): Remove FIXME.
9907 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
9908 Eli Zaretskii <eliz@gnu.org>
9910 * copyright.sh: New file.
9912 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
9914 * configure.ac: Check for XML_StopParser.
9915 * xml-support.c (gdb_xml_body_text): Check for an error.
9916 (gdb_xml_start_element_wrapper): Conditionalize call to XML_StopParser.
9917 (gdb_xml_end_element_wrapper): Likewise.
9918 * config.in, configure: Regenerated.
9920 2007-01-08 Daniel Jacobowitz <dan@codesourcery.com>
9922 * varobj.c (install_new_value): Always update print_value.
9923 (value_get_print_value): Immediately return NULL for missing
9926 2007-01-08 Jim Blandy <jimb@codesourcery.com>
9928 * configure.ac: Tighten pattern for extracting value of
9929 DEPRECATED_TM_FILE from the target makefile fragment.
9930 * configure: Regenerated.
9932 2007-01-08 Daniel Jacobowitz <dan@codesourcery.com>
9934 * linux-nat.c (struct simple_pid_list): Add status.
9935 (add_to_pid_list): Record the PID's status.
9936 (linux_record_stopped_pid): Likewise. Make static.
9937 (pull_pid_from_list): Return the saved status.
9938 (linux_nat_handle_extended): Deleted.
9939 (linux_handle_extended_wait): Combine with linux_nat_handle_extended.
9940 Make static. Handle non-SIGSTOP for a new thread's first signal.
9941 (flush_callback): Handle unexpected pending signals.
9942 (linux_nat_wait): Update calls to changed functions.
9943 * linux-nat.h (linux_record_stopped_pid, linux_handle_extended_wait):
9944 Remove prototypes for newly static functions.
9946 2007-01-08 Ulrich Weigand <uweigand@de.ibm.com>
9948 * gdbarch.sh (value_from_register): New gdbarch function.
9949 * gdbarch.c, gdbarch.h: Regenerate.
9950 * findvar.c (default_value_from_register): New function.
9951 (value_from_register): Use gdbarch_value_from_register.
9952 * value.h (default_value_from_register): Declare.
9953 * spu-tdep.c (spu_convert_register_p, spu_register_to_value,
9954 spu_value_to_register): Remove.
9955 (spu_value_from_register): New function.
9956 (spu_gdbarch_init): Do not call set_gdbarch_convert_register_p,
9957 set_gdbarch_register_to_value, set_gdbarch_value_to_register.
9958 Call set_gdbarch_value_from_register.
9959 * s390-tdep.c (s390_convert_register_p, s390_register_to_value,
9960 s390_value_to_register): Remove.
9961 (s390_value_from_register): New function.
9962 (s390_gdbarch_init): Do not call set_gdbarch_convert_register_p,
9963 set_gdbarch_register_to_value, set_gdbarch_value_to_register.
9964 Call set_gdbarch_value_from_register.
9966 2007-01-08 Daniel Jacobowitz <dan@codesourcery.com>
9968 * NEWS: Add "set sysroot" and "show sysroot".
9969 * solib.c (solib_absolute_prefix): Delete. Replace
9970 all uses with gdb_sysroot.
9971 (_initialize_solib): Add "set sysroot" and "show sysroot".
9972 Make "solib-absolute-prefix" an alias to it.
9974 2007-01-08 Ulrich Weigand <uweigand@de.ibm.com>
9976 * frame.c (get_frame_register_bytes): New function.
9977 (put_frame_register_bytes): Likewise.
9978 * frame.h (get_frame_register_bytes): Declare.
9979 (put_frame_register_bytes): Likewise.
9980 * findvar.c (value_from_register): Always construct lval_register
9981 values. Use get_frame_register_bytes.
9982 * valops.c (value_assign): Use get_frame_register_bytes and
9983 put_frame_register_bytes.
9985 2007-01-08 Jim Blandy <jimb@codesourcery.com>
9987 * MAINTAINERS: Update Stan Shebs' email address.
9989 2007-01-07 Joel Brobecker <brobecker@adacore.com>
9991 * ada-lang.c (is_known_support_routine): Improve the implementation.
9993 2007-01-06 Joel Brobecker <brobecker@adacore.com>
9995 * ada-lang.c: Add include of source.h.
9996 (is_known_support_routine): Improve the check verifying that the file
9997 associated to this frame exists.
9998 * Makefile.in (ada-lang.o): Add dependency on source.h.
10000 2007-01-07 Jim Blandy <jimb@codesourcery.com>
10002 * ax-general.c (ax_const_l): Select proper opcode for the given
10005 2007-01-05 Vladimir Prus <vladimir@codesourcery.com>
10007 * varobj.c (c_value_of_root): Don't select frame if variable
10008 object is out of scope.
10010 2007-01-05 Nick Roberts <nickrob@snap.net.nz>
10012 * varobj.c (struct varobj): New member print_value.
10013 (install_new_value): Compare last printed value with current one
10014 instead of contents.
10015 (new_variable): Initialize var->print_value to NULL.
10016 (free_variable): Free var->print_value.
10017 (value_get_print_value): New function derived from
10018 c_value_of_variable.
10019 (c_value_of_variable): Use value_get_print_value.
10021 2007-01-05 Joel Brobecker <brobecker@adacore.com>
10023 * i386-tdep.c (i386_analyze_stack_align): Add comment.
10025 2007-01-05 Joel Brobecker <brobecker@adacore.com>
10027 * NEWS: Add entries for new catch commands.
10029 2007-01-05 Joel Brobecker <brobecker@adacore.com>
10031 * dwarf2read.c (partial_die_info): Add field has_byte_size.
10032 (add_partial_symbol): Correct identification of external references.
10033 (process_structure_scope): Likewise.
10034 (read_partial_die): Handle DW_AT_byte_size attribute.
10036 2007-01-05 Daniel Jacobowitz <dan@codesourcery.com>
10038 * xml-support.c (gdb_xml_end_element): Remove wrong backslashes.
10040 2007-01-05 Nick Roberts <nickrob@snap.net.nz>
10042 * varobj.c (get_type_deref): Fix variable objects for references to
10045 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
10047 * symtab.c (find_pc_sect_psymtab): Add comments. Handle psymtabs
10050 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
10052 * memory-map.c (struct_memory_map_parsing_data): Remove most
10053 members. Make property_name an array.
10054 (free_memory_map_parsing_data, memory_map_start_element)
10055 (memory_map_end_element, memory_map_character_data): Delete.
10056 (memory_map_start_memory, memory_map_end_memory)
10057 (memory_map_start_property, memory_map_end_property): New functions.
10058 (property_attributes, memory_children, memory_type_enum)
10059 (memory_attributes, memory_map_children, memory_map_elements): New.
10060 (parse_memory_map): Rewrite.
10061 * xml-support.c (debug_xml): New.
10062 (xml_get_required_attribute, xml_get_integer_attribute)
10063 (xml_get_enum_value, free_xml_parser, make_cleanup_free_xml_parser):
10065 (struct scope_level, struct gdb_xml_parser, gdb_xml_body_text)
10066 (gdb_xml_debug, gdb_xml_error, gdb_xml_values_cleanup)
10067 (gdb_xml_start_element, gdb_xml_start_element_wrapper)
10068 (gdb_xml_end_element, gdb_xml_end_element_wrapper, gdb_xml_cleanup)
10069 (gdb_xml_create_parser_and_cleanup, gdb_xml_parse)
10070 (gdb_xml_parse_ulongest, gdb_xml_parse_attr_ulongest)
10071 (gdb_xml_parse_attr_enum, show_debug_xml, _initialize_xml_support):
10073 * xml-support.h (struct gdb_xml_value, gdb_xml_attribute_handler)
10074 (enum gdb_xml_attribute_flag, struct gdb_xml_attribute)
10075 (enum gdb_xml_element_flag, struct gdb_xml_element)
10076 (gdb_xml_element_start_handler, gdb_xml_element_end_handler)
10077 (struct gdb_xml_enum): New.
10078 (gdb_xml_create_parser_and_cleanup, gdb_xml_parse, gdb_xml_debug)
10079 (gdb_xml_error, gdb_xml_parse_attr_ulongest)
10080 (gdb_xml_parse_attr_enum, gdb_xml_parse_ulongest): New prototypes.
10081 (xml_get_required_attribute, xml_get_integer_attribute)
10082 (xml_get_enum_value, make_cleanup_free_xml_parser): Delete prototypes.
10083 * Makefile.in (xml_support_h, xml-support.o): Update.
10085 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
10087 * Makefile.in (eval.o): Update dependencies.
10088 * eval.c: Include "ui-out.h" and "exceptions.h".
10089 (evaluate_subexp_standard): Use TRY_CATCH around value_of_variable.
10090 Use value_zero if an error occurs when avoiding side effects.
10091 * varobj.c (c_value_of_root): Initialize new_val.
10093 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
10095 * varobj.c (varobj_list_children): Stop if the number of children is
10097 (c_number_of_children):
10099 2007-01-04 Mark Kettenis <kettenis@gnu.org>
10101 * alpha-tdep.c (alpha_register_name): Use ARRAY_SIZE.
10102 (alpha_read_insn, alpha_skip_prologue, alpha_heuristic_proc_start)
10103 (alpha_heuristic_frame_unwind_cache, alpha_next_pc)
10104 (alpha_gdbarch_init): Use ALPHA_INSN_SIZE, ALPHA_REGISTER_SIZE and
10105 sizeof, instead of hardcoded constants.
10107 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
10109 * CONTRIBUTE: Use sourceware.org.
10111 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
10113 * buildsym.c (start_subfile): Handle producer.
10114 (record_producer): New function.
10115 * buildsym.h (struct subfile): Include producer.
10116 (record_producer): New prototype.
10117 * dwarf2-frame.c (struct dwarf2_cie): Add version and augmentation.
10118 (struct dwarf2_frame_state): Add armcc_cfa_offsets_sf and
10119 armcc_cfa_offsets_reversed.
10120 (execute_cfa_program): Handle armcc_cfa_offsets_sf.
10121 (dwarf2_frame_find_quirks): New function.
10122 (dwarf2_frame_cache): Call it. Handle armcc_cfa_offsets_reversed.
10123 (decode_frame_entry_1): Record the CIE version. Record the
10124 augmentation. Skip armcc augmentations.
10125 * dwarf2read.c (read_file_scope): Save the producer.
10126 * symtab.h (struct symtab): Rename unused version member to
10129 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
10131 * configure.ac (build_warnings): Use -Wall and
10132 -Wdeclaration-after-statement.
10133 * configure: Regenerated.
10135 2007-01-04 Vladimir Prus <vladimir@codesourcery.com>
10137 Simplify access to variours properties of child
10138 variable objects in C.
10139 * varobj.c (value_struct_element_index): New function.
10140 (c_describe_child): New function.
10141 (c_name_of_child, c_value_of_child)
10142 (c_type_of_child): Rewrite to use c_describe_child.
10144 2007-01-04 Vladimir Prus <vladimir@codesourcery.com>
10147 * varobj.c: Include "vec.h".
10148 (varobj_p): New typedef, declare vector of those.
10149 (struct varobj): Use vector for the 'children' member.
10150 (child_exists): Remove.
10151 (save_child_in_parent): Remove.
10152 (remove_child_from_parent): Remove.
10153 (struct varobj_child): Remove.
10154 (struct vstack): Remove.
10155 (vpush, vpop): Remove.
10156 (varobj_list_children): Adjust to work work vector.
10157 (varobj_update): Likewise. Use vectors for
10158 working stack and result.
10159 (delete_variable_1): Likewise.
10160 * Makefile.in (varobj.o): Update dependencies.
10162 2007-01-04 Vladimir Prus <vladimir@codesourcery.com>
10164 Port from Apple's version.
10166 * varobj.c (type_changeable): Rename to...
10167 (varobj_value_is_changeable_p): ...this. Adjust all callers.
10168 (is_root_p): New function. Use it everywhere.
10170 2007-01-04 Jim Blandy <jimb@codesourcery.com>
10172 * glibc-tdep.c (glibc_skip_solib_resolver): Look for '_dl_fixup',
10173 then plain 'fixup'.
10175 2007-01-04 Joel Brobecker <brobecker@adacore.com>
10177 * hpread.c (hpread_start_psymtab): Remove unnecessary extern.
10179 2007-01-04 Joel Brobecker <brobecker@adacore.com>
10181 * hpread.c (hpread_type_lookup): Fix compilation failure.
10183 2007-01-04 Qinwei <qinwei@sunnorth.com.cn>
10185 * NEWS: New port to S+core.
10186 * MAINTAINERS (Write After Approval, Responsible Maintainers):
10189 * Makefile.in: Add dependencies for S+core files.
10190 * configure.tgt (score*, score-*-*): Add S+core target.
10191 * config/score/embed.mt: New file.
10192 * score-tdep.c: New file.
10193 * score-tdep.h: New file.
10195 2007-01-04 Joel Brobecker <brobecker@adacore.com>
10197 * ada-lang.c (ada_evaluate_subexp) [OP_TYPE]: Return a value with
10198 the appropriate type rather than a bogus void type.
10200 2007-01-04 Joel Brobecker <brobecker@adacore.com>
10202 * ada-lang.h (ada_find_printable_frame): Remove.
10203 (ada_exception_catchpoint_p, ada_decode_exception_location)
10204 (ada_decode_assert_location): Add declaration.
10205 * ada-lang.c: Add include of annotate.h and valprint.h.
10206 (exception_catchpoint_kind): New enum.
10207 (function_name_from_pc, is_known_support_routine)
10208 (ada_find_printable_frame, ada_unhandled_exception_name_addr)
10209 (ada_exception_name_addr_1, ada_exception_name_addr)
10210 (print_it_exception, print_one_exception, print_mention_exception)
10211 (print_it_catch_exception, print_one_catch_exception)
10212 (print_mention_catch_exception, catch_exception_breakpoint_ops)
10213 (print_it_catch_exception_unhandled)
10214 (print_one_catch_exception_unhandled)
10215 (print_mention_catch_exception_unhandled, print_it_catch_assert)
10216 (print_one_catch_assert, print_mention_catch_assert)
10217 (ada_exception_catchpoint_p, error_breakpoint_runtime_sym_not_found)
10218 (ada_get_next_arg, catch_ada_exception_command_split)
10219 (ada_exception_sym_name, ada_exception_sym_name)
10220 (ada_exception_breakption_ops, ada_exception_catchpoint_cond_string)
10221 (ada_parse_catchpoint_condition, ada_exception_sal)
10222 (ada_decode_exception_location)
10223 (ada_decode_assert_location): New function.
10224 (catch_exception_unhandled_breakpoint_ops): New global variable.
10225 (catch_assert_breakpoint_ops): New global variable.
10226 * breakpoint.c: Add include of ada-lang.h.
10227 (print_one_breakpoint): Do not print the condition for Ada
10228 exception catchpoints.
10229 (create_ada_exception_breakpoint): New function.
10230 (catch_ada_exception_command, catch_assert_command): New function.
10231 (catch_command_1): Add support for the new "catch exception" and
10232 "catch assert" commands.
10233 (_initialize_breakpoint): Add help description for the new catch
10235 * Makefile.in (ada-lang.o): Add dependency on annotate.h and
10237 (breakpoint.o): Add dependency on ada-lang.h.
10239 2007-01-03 Pedro Alves <pedro_alves@portugalmail.pt>
10241 * coffread.c (cs_to_section): If bfd_section is found, always
10242 return its section index.
10243 (coff_symtab_read): Determine the minimal_symbol_type using the
10246 2007-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10247 Daniel Jacobowitz <dan@codesourcery.com>
10249 * Makefile.in (top.o): Update.
10250 * top.c (gdb_readline_wrapper_done, gdb_readline_wrapper_result)
10251 (saved_after_char_processing_hook, gdb_readline_wrapper_line)
10252 (struct gdb_readline_wrapper_cleanup, gdb_readline_wrapper_cleanup):
10254 (gdb_readline_wrapper): Rewrite to use asynchronous readline.
10256 2007-01-03 Mark Kettenis <kettenis@gnu.org>
10258 * arm-linux-tdep.c (arm_linux_extract_return_value): Remove.
10259 (arm_linux_init_abi): Don't set deprecated_extract_return_value.
10261 2007-01-03 Daniel Jacobowitz <dan@codesourcery.com>
10263 * ada-lang.c (find_struct_field): Initialize *byte_offset_p.
10264 * breakpoint.c (do_enable_breakpoint): Ignore both mem_cnt and i.
10265 * c-typeprint.c (c_type_print_varspec_suffix): Don't test length
10266 greater than or equal to zero.
10267 * m2-typeprint.c (m2_array): Likewise.
10268 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
10269 * gdbtypes.c (copy_type_recursive): Correct == typo.
10270 * i386-tdep.c (i386_skip_prologue): Remove stray semicolon.
10271 * linux-nat.c (linux_nat_info_proc_cmd): Don't compare a pointer
10273 * macroscope.c (sal_macro_scope): Don't name a local variable "main".
10274 (default_macro_scope): Remove unused variable.
10275 * prologue-value.h (pv_area_find_reg): Don't name an argument
10277 * remote-fileio.c (remote_fio_func_map): Add missing braces.
10278 * remote.c (sigint_remote_twice_token, sigint_remote_token): Change
10280 (cleanup_sigint_signal_handler): Remove casts.
10281 * valprint.c (val_print): Use a volatile local for the modified
10283 * varobj.c (languages): Remove extra array dimension.
10284 (varobj_create): Correct access to languages array.
10285 * mi/mi-cmd-break.c (mi_cmd_break_insert, mi_cmd_break_watch): Add
10287 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise.
10288 * mi/mi-cmd-env.c (mi_cmd_env_path, mi_cmd_env_dir): Likewise.
10289 * mi/mi-getopt.c (mi_valid_noargs): Likewise.
10290 * mi/mi-main.c (mi_cmd_data_read_memory): Likewise.
10291 (mi_cmd_data_write_memory): Likewise.
10292 * signals/signals.c (target_signal_to_string): Cast to int before
10294 * tui/tui-layout.c (init_and_make_win): Take and return a void *.
10295 Update all callers.
10297 2007-01-03 Daniel Jacobowitz <dan@codesourcery.com>
10299 * NEWS: Mention pointer to member improvements.
10300 * Makefile.in (gnu-v3-abi.o): Delete special rule.
10301 (eval.o, gnu-v3-abi.o, ia64-tdep.o): Update.
10302 * ada-valprint.c (ada_print_scalar): Update for new type codes.
10303 * c-typeprint.c (c_print_type): Update for new type codes.
10304 (c_type_print_varspec_prefix, c_type_print_varspec_suffix)
10305 (c_type_print_base): Likewise.
10306 (c_type_print_args): Rewrite.
10307 * c-valprint.c (c_val_print): Update for new type codes. Remove
10308 support for references to members. Treat methods like functions.
10309 * cp-abi.c (cplus_print_method_ptr, cplus_method_ptr_size)
10310 (cplus_make_method_ptr, cplus_method_ptr_to_value): New.
10311 * cp-abi.h (cplus_print_method_ptr, cplus_method_ptr_size)
10312 (cplus_make_method_ptr, cplus_method_ptr_to_value): New prototypes.
10313 (struct cp_abi_ops): Add corresponding members.
10314 * cp-valprint.c (cp_print_class_method): Delete.
10315 (cp_find_class_member): New function.
10316 (cp_print_class_member): Use it. Simplify support for bogus
10318 * dwarf2read.c (quirk_gcc_member_function_pointer): Use
10319 lookup_methodptr_type.
10320 (read_tag_ptr_to_member_type): Likewise, and lookup_memberptr_type.
10321 * eval.c (evaluate_subexp_standard): Implement EVAL_SKIP for
10322 OP_SCOPE. Update call to value_aggregate_elt. Rewrite member
10324 (evaluate_subexp_for_address): Handle OP_SCOPE explicitly. Handle
10325 references returned by user defined operators.
10326 * f-typeprint.c (f_print_type, f_type_print_varspec_prefix)
10327 (f_type_print_varspec_suffix): Remove support for member pointers.
10328 * gdbtypes.c (lookup_memberptr_type): Renamed from lookup_member_type
10330 (smash_to_memberptr_type): Likewise, from smash_to_member_type.
10331 (lookup_methodptr_type): New.
10332 (rank_one_type): Adjust for TYPE_CODE_MEMBERPTR.
10333 (recursive_dump_type): Update for new types.
10334 * gdbtypes.h (enum type_code): Replace TYPE_CODE_MEMBER with
10335 TYPE_CODE_MEMBERPTR and TYPE_CODE_METHODPTR.
10336 (lookup_memberptr_type, lookup_methodptr_type)
10337 (smash_to_memberptr_type): New prototypes.
10338 (smash_to_method_type): Formatting fix.
10339 (lookup_member_type, smash_to_member_type): Delete prototypes.
10340 * gnu-v3-abi.c (gnuv3_get_vtable, gnuv3_get_virtual_fn): New.
10341 Do not rely on debug information for the vptr or the method's
10342 enclosing type. Handle function descriptors for IA64.
10343 (gnuv3_virtual_fn_field): Rewrite using the new functions.
10344 (gnuv3_find_method_in, gnuv3_print_method_ptr)
10345 (gnuv3_method_ptr_size, gnuv3_make_method_ptr)
10346 (gnuv3_method_ptr_to_value): New.
10347 (init_gnuv3_ops): Set new members of gnu_v3_abi_ops.
10348 * hpread.c (hpread_type_lookup): Update for new types.
10349 * infcall.c (value_arg_coerce): Likewise.
10350 * m2-typeprint.c (m2_print_type): Remove explicit support
10351 for member pointers.
10352 * m2-valprint.c (m2_val_print): Likewise.
10353 * p-typeprint.c (pascal_type_print_varspec_prefix)
10354 (pascal_type_print_varspec_suffix, pascal_type_print_base): Likewise.
10355 * p-valprint.c (pascal_val_print): Likewise.
10356 (pascal_object_print_class_method, pascal_object_print_class_member):
10358 * p-lang.h (pascal_object_print_class_method)
10359 (pascal_object_print_class_member): Delete prototypes.
10360 * stabsread.c (read_type): Update for new types.
10361 * typeprint.c (print_type_scalar): Likewise.
10362 * valops.c (value_struct_elt_for_reference, value_namespace_elt)
10363 (value_maybe_namespace_elt, value_aggregate_elt): Add want_address
10364 argument. Construct a pointer to member if the address of a
10365 function or data member is requested.
10366 (value_cast_pointers): Don't modify the input value.
10367 (value_cast): Adjust pointer to member handling for new types.
10368 Allow null pointer to member constants. Don't modify the input
10370 (value_ind): Remove pointer to member check. Handle function
10371 descriptors for function pointers.
10372 (value_struct_elt, value_find_oload_method_list, check_field):
10373 Remove pointer to member checks.
10374 * value.c (unpack_long): Allow pointers to data members.
10375 (value_from_longest): Allow member pointers.
10376 * value.h (value_aggregate_elt): Add want_address.
10377 * varobj.c (c_variable_editable): Remove check for members.
10378 * gdbarch.sh: Add vtable_function_descriptors and vbit_in_delta.
10379 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Handle descriptors
10381 (ia64_gdbarch_init): Call set_gdbarch_vtable_function_descriptors.
10382 * c-lang.h (cp_print_class_method): Delete prototype.
10383 * arm-tdep.c (arm_gdbarch_init): Call set_gdbarch_vbit_in_delta.
10384 * mips-tdep.c (mips_gdbarch_init): Likewise.
10385 * gdbarch.c, gdbarch.h: Regenerated.
10387 2007-01-01 Mark Kettenis <kettenis@gnu.org>
10389 * rs6000-tdep.c (rs6000_use_struct_convention)
10390 (rs6000_extract_return_value, rs6000_store_return_value)
10391 (rs6000_extract_struct_value_address): Remove.
10392 (rs6000_return_value): New function.
10393 (rs6000_gdbarch_init): Don't set deprecated_extract_return_value,
10394 store_return_value, deprecated_extract_struct_value_address and
10395 deprecated_use_struct_convention. Use rs6000_return_value
10398 2007-01-02 Nick Roberts <nickrob@snap.net.nz>
10400 * mi/mi-cmds.c (mi_cmds): Remove entries for -display-delete,
10401 -display-disable, -display-enable, -display-insert and
10404 2007-01-01 Joel Brobecker <brobecker@adacore.com>
10406 * breakpoint.c (remove_breakpoint): Remove dead code.
10408 2007-01-01 Nick Roberts <nickrob@snap.net.nz>
10410 * varobj.c: Include block.h.
10411 (c_value_of_root): Check scope within nested statements.
10413 2007-01-01 Mark Kettenis <kettenis@gnu.org>
10415 * mi/mi-main.c (mi_cmd_data_write_register_values): Use
10416 regcache_cooked_write_signed instead of
10417 deprecated_write_register_bytes.
10419 2007-01-01 Joel Brobecker <brobecker@adacore.com>
10421 * config/djgpp/fnchange.lst: Add entry for ChangeLog-2006.
10423 2007-01-01 Joel Brobecker <brobecker@adacore.com>
10425 Followed the Start of New Year Procedure:
10426 * ChangeLog-2006: New file, containing all the entries for 2006.
10427 * ChangeLog: Removed all 2006 entries, and changed the reference
10428 to the previous ChangeLog to point to ChangeLog 2006.
10429 * top.c (print_gdb_version): Update copyright year.
10431 2007-01-01 Mark Kettenis <kettenis@gnu.org>
10433 * Makefile.in (remote-sds.o): Remove.
10434 * remote-sds.c: Delete.
10436 For older changes see ChangeLog-2006.
10442 version-control: never