1 2007-12-16 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
3 * f-typeprint.c (print_equivalent_f77_float_type): Remove function.
4 (f_type_print_base): Output the type names directly for real and
7 2007-12-16 Vladimir Prus <vladimir@codesourcery.com>
9 * breakpoint.c (bpstat_have_active_hw_watchpoints):
11 (bpstat_stop_status): Remove unused variable
13 * breakpoint.h (bpstat_have_active_hw_watchpoints):
16 2007-12-16 Vladimir Prus <vladimir@codesourcery.com>
18 * target.h (target_pid_or_tid_to_str): Remove.
19 * infrun.c (handle_inferior_event):
20 Use target_pid_to_str instead of
21 target_pid_or_tid_to_str.
22 (normal_stop): Likewise.
24 2007-12-16 Jan Kratochvil <jan.kratochvil@redhat.com>
26 * dwarf2read.c (dwarf_attr_name): Rename `DW_AT_stride_size' to its
27 DWARF3 equivalent `DW_AT_bit_stride'.
28 Rename `DW_AT_stride' to its DWARF3 equivalent `DW_AT_byte_stride'.
30 2007-12-16 Joel Brobecker <brobecker@adacore.com>
32 * mi/mi-main.c: Remove code that was commented out in 1999.
34 2007-12-16 Joel Brobecker <brobecker@adacore.com>
36 * expression.h (parse_expression_in_context): Delete prototype.
37 * parse.c (parse_expression_in_context): Delete.
39 2007-12-14 Vladimir Prus <vladimir@codesourcery.com>
41 Add support for pending breakpoints in MI.
42 * gdb.h (gdb_breakpoint): Add parameter pending.
43 * breakpoint.c (gdb_breakpoint): Add parameter pending.
44 * mi/mi-cmd-break.c (mi_break_insert): Change
45 comment to refer to manual. Add support for
46 the -f flag, for pending breakpoint.
48 2007-12-14 Vladimir Prus <vladimir@codesourcery.com>
50 * breakpoint.c (break_command_really): New, copied
51 from break_command_1. New parameters COND_STRING, THREAD
52 PARSE_CONDITITION_AND_THREAD and PENDING_BREAK_SUPPORT.
53 The previous FLAG parameter split into TEMPFLAG and
55 When PARSE_CONDITION_AND_THREAD is not set, duplicate
56 the passed condition string.
57 (struct captured_breakpoint_args): Remove
58 (do_captured_breakpoint): Remove.
59 (break_command_1): Relay to break_command_really.
60 (gdb_breakpoint): Relay to break_command_really.
62 2007-12-13 Michael Snyder <msnyder@specifix.com>
64 * mips-linux-tdep.c (mips64_fill_gregset): Remove unused variable.
66 2007-12-13 Jim Blandy <jimb@codesourcery.com>
68 * dwarf2read.c (attr_form_is_constant): New function.
69 (dwarf2_add_field): Use it and attr_form_is_section_offset to
70 recognize DW_AT_data_member_location attributes. Use
71 dwarf2_get_attr_constant_value when the attribute is a constant.
73 * dwarf2read.c (attr_form_is_section_offset): New function.
74 (dwarf_add_member_fn, read_common_block, read_partial_die)
75 (dwarf2_symbol_mark_computed): Use it, instead of writing it out.
77 2007-12-12 Jim Blandy <jimb@codesourcery.com>
79 Remove unused support for target-based exception catching.
80 * target.h (struct target_ops): Delete
81 to_enable_exception_callback and to_get_current_exception_event
83 (target_enable_exception_callback)
84 (target_get_current_exception_event): Delete macros.
85 * target.c (update_current_target): Remove code to inherit and
86 default those members.
87 (debug_to_enable_exception_callback)
88 (debug_to_get_current_exception_event): Delete functions.
89 (setup_target_debug): Don't install those methods.
90 * inf-child.c (inf_child_enable_exception_callback)
91 (inf_child_get_current_exception_event): Delete dummy functions.
92 (inf_child_target): Don't install them in the target vector.
93 * breakpoint.h (enum bptype): Delete bp_catch_catch,
95 * breakpoint.c (cover_target_enable_exception_callback)
96 (ep_is_exception_catchpoint, create_exception_catchpoint): Delete
98 (insert_bp_location, update_breakpoints_after_exec)
99 (remove_breakpoint, ep_is_catchpoint, print_it_typical)
100 (bpstat_stop_status, bpstat_what)
101 (bpstat_get_triggered_catchpoints, print_one_breakpoint_location)
102 (user_settable_breakpoint, allocate_bp_location)
103 (disable_watchpoints_before_interactive_call_start)
104 (enable_watchpoints_after_interactive_call_stop, mention)
105 (delete_breakpoint, breakpoint_re_set_one, disable_command)
106 (enable_command): Remove exception catchpoint cases.
107 (catch_exception_command_1): Don't try target-based exception
109 * stack.c (catch_info): Call print_frame_label_vars
112 2007-12-12 Nigel Stephens <nigel@mips.com>
113 Maciej W. Rozycki <macro@mips.com>
115 * remote-mips.c (mips_load): Use regcache_set_valid_p() instead
116 of setting deprecated_register_valid array directly.
118 2007-12-07 Maciej W. Rozycki <macro@mips.com>
120 * mips-tdep.c (extended_offset): Fix a comment.
122 2007-12-07 Maciej W. Rozycki <macro@mips.com>
124 * target.c (update_current_target): Inherit to_log_command.
125 * target.h (struct target_ops). Add to_log_command.
126 (target_log_command): New macro.
127 * top.c (execute_command): Call target_log_command() rather than
128 serial_log_command().
129 * monitor.c (init_base_monitor_ops): Initialize to_log_command.
130 * remote-m32r-sdi.c (init_m32r_ops): Likewise.
131 * remote-mips.c (_initialize_remote_mips): Likewise.
132 * remote.c (init_remote_ops): Likewise.
134 2007-12-06 Daniel Jacobowitz <dan@codesourcery.com>
136 * infrun.c (init_wait_for_inferior): Reset target_last_wait_ptid.
137 (handle_inferior_event): Clear stop_stack_dummy earlier.
139 2007-12-06 Jim Blandy <jimb@codesourcery.com>
141 * addrmap.c (addrmap_splay_tree_remove): New function.
142 (addrmap_mutable_set_empty): Use it.
144 * addrmap.c, addrmap.h: Update to GPLv3.
146 * addrmap.c (struct addrmap): Make the referenced function table
148 (addrmap_fixed_funcs, addrmap_mutable_funcs): Declare const.
149 Don't use designated initializers.
151 * addrmap.c (addrmap_fixed_create_fixed, addrmap_mutable_find)
152 (addrmap_mutable_relocate): Use internal_error, not abort.
154 * NEWS: Mention support for non-contiguous lexical blocks and
157 2007-12-06 Markus Deuling <deuling@de.ibm.com>
159 * gdbarch.sh (stab_reg_to_regnum, dwarf_reg_to_regnum)
160 ( dwarf2_reg_to_regnum, sdb_reg_to_regnum, ecoff_reg_to_regnum): Add
161 gdbarch as parameter.
162 * gdbarch.{c,h}: Regenerate.
164 * xtensa-tdep.c (xtensa_reg_to_regnum): Add gdbarch as parameter.
165 Replace current_gdbarch by gdbarch.
166 * s390-tdep.c (s390_dwarf_reg_to_regnum): Likewise.
167 * rs6000-tdep.c (rs6000_stab_reg_to_regnum)
168 (rs6000_dwarf2_reg_to_regnum): Likewise.
169 * mips-tdep.c (mips_stab_reg_to_regnum)
170 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Likewise.
171 * mep-tdep.c (mep_debug_reg_to_regnum): Likewise.
172 * m32c-tdep.c (m32c_debug_info_reg_to_regnum): Likewise.
173 * i386-tdep.c (i386_dbx_reg_to_regnum)
174 (i386_svr4_reg_to_regnum): Likewise
175 * h8300-tdep.c (h8300s_dbg_reg_to_regnum)
176 (h8300_dbg_reg_to_regnum): Likewise.
177 * amd64-tdep.c (amd64_dwarf_reg_to_regnum): Likewise.
178 * arch-utils.c (no_op_reg_to_regnum): Likewise.
179 * arch-utils.h (no_op_reg_to_regnum): Likewise.
180 * arm-tdep.c (arm_dwarf_reg_to_regnum): Likewise.
181 * cris-tdep.c (cris_dwarf2_reg_to_regnum): Likewise.
182 * hppa-tdep.c (hppa64_dwarf_reg_to_regnum): Likewise.
183 * ia64-tdep.c (ia64_dwarf_reg_to_regnum): Likewise.
184 * m68k-tdep.c (m68k_dwarf_reg_to_regnum): Likewise.
186 2007-12-06 Vladimir Prus <vladimir@codesourcery.com>
188 Localize infrun use of remove_breakpoints.
189 * infrun.c (handle_inferior_event): Remove
190 calls to remove_breakpoints, except where needed to
191 communicate change of breakpoint locations to inferior.
192 (keep_going): If steppping over breakpoint, remove
195 2007-12-06 Vladimir Prus <vladimir@codesourcery.com>
197 Clarify infrun variable naming.
198 * infrun.c (trap_expected): Rename
199 to stepping_over_breakpoint. Document.
200 (stepping_past_breakpoint): Remove.
201 (stepping_past_breakpoint_ptdi): Renamed
202 to deferred_step_ptid.
203 (struct execution_control_state): Rename
204 the another_trap field to stepping_over_breakpoint.
205 (struct inferior_status): Rename the trap_expected
206 field to stepping_over_breakpoint.
207 (clear_proceed_status, proceed)
208 (init_execution_control_state, context_switch)
209 (handle_inferior_event, currently_stepping)
210 (keep_going, save_inferior_status)
211 (restore_inferior_status, prepare_to_proceed): Adjust.
212 * gdbthread.h (struct thread_info): Rename the
213 trap_expected field to stepping_over_breakpoint.
214 * thread.c (load_infrun_state, save_infrun_state):
217 2007-12-06 Pierre Muller <muller@ics.u-strasbg.fr>
219 * win32-nat.c: Allow compilation if CORE_ADDR is 8 byte long.
220 Add "gdb_stdint.h" dependency required for uintptr_t type use.
221 (handle_output_debug_string): Use uintptr_t typecast.
222 (handle_exception): Ditto.
223 (win32_xfer_memory): Ditto.
224 * Makefile.in (win32-nat.o): Add dependency to gdb_stdint header.
226 2007-12-04 Jim Blandy <jimb@codesourcery.com>
228 Support lexical blocks and function bodies that occupy
229 non-contiguous address ranges.
230 * addrmap.c, addrmap.h: New files.
231 * block.h (struct addrmap): New forward declaration.
232 (struct blockvector): New member, 'map'.
233 (BLOCKVECTOR_MAP): New accessor macro.
234 * block.c: #include "addrmap.h"
235 (blockvector_for_pc_sect): If the blockvector we've found has
236 an address map, use it instead of searching the blocks.
237 * buildsym.c: #include "addrmap.h"
238 (pending_addrmap_obstack, pending_addrmap_interesting): New static
240 (really_free_pendings): If we have a pending addrmap, free it too.
241 (record_block_range): New function.
242 (make_blockvector): If we have an interesting pending addrmap,
243 record it in the new blockvector.
244 (start_symtab, buildsym_init): Assert that there is no pending
245 addrmap now; we should have cleaned up any addrmaps we'd built
247 (end_symtab): If there is a pending addrmap left over that didn't
248 get included in the blockvector, free it.
249 * buildsym.h (struct addrmap): New forward declaration.
250 (record_block_range): New prototype.
251 * objfiles.c: #include "addrmap.h".
252 (objfile_relocate): Relocate the blockvector's address map, if
254 * dwarf2read.c (dwarf2_record_block_ranges): New function.
255 (read_func_scope, read_lexical_block_scope): Call it.
256 * Makefile.in (SFILES): Add addrmap.c.
257 (addrmap_h): New header dependency variable.
258 (COMMON_OBS): Add addrmap.o.
259 (addrmap.o): New rule.l
260 (block.o, objfiles.o, buildsym.o): Depend on $(addrmap_h).
262 * block.c (blockvector_for_pc, blockvector_for_pc_sect): Return a
263 pointer to the block, not its index in the blockvector.
264 (block_for_pc_sect): Use the returned block, instead of looking it
266 * block.h (blockvector_for_pc, blockvector_for_pc_sect): Update
268 * breakpoint.c (resolve_sal_pc): Use returned block, instead of
269 looking it up ourselves.
270 * stack.c (print_frame_label_vars): Disable function, which
271 depends on the block's index.
273 * buildsym.c (finish_block): Return the block we've built.
274 * buildsym.h (finish_block): Update prototype.
276 * defs.h (CORE_ADDR_MAX): New constant.
278 2007-12-04 Ulrich Weigand <uweigand@de.ibm.com>
280 * coffread.c (decode_type): Use builtin_type_int32 instead
281 of FT_INTEGER fundamental type for array range index type.
282 (decode_base_type): Use builtin types of current_gdbarch
283 instead of fundamental types.
285 * dwarf2read.c (struct dwarf2_cu): Remove ftypes member.
286 (read_file_scope): Do not initialize ftypes member.
287 (dwarf_base_type, dwarf2_fundamental_types): Remove functions.
288 (read_array_type): Use builtin_type_int32 instead of FT_INTEGER
289 fundamental type for array range index type.
290 (read_tag_string_type): Likewise for string range index type.
291 Also, do not overwrite FT_CHAR type with new string type.
292 (read_base_type): If DW_AT_name is missing, create unnamed type
293 with given properties instead of looking for a fundamental type.
294 Create new types as TYPE_TARGET_TYPE for DW_ATE_address and
295 DW_ATE_complex_float types.
296 (read_subrange_type): Create new type to represent missing
297 DW_AT_type instead of looking for a fundamental type.
298 (die_type): Use builtin type to represent "void" instead of
299 looking for a fundamental type.
301 * stabsread.c (define_symbol): Use builtin types to represent
302 'r' and 'i' floating-point and integer constants.
304 * gdbtypes.c (lookup_fundamental_type): Remove.
305 * gdbtypes.h (lookup_fundamental_type): Remove prototype.
306 (FT_VOID, FT_BOOLEAN, FT_CHAR, FT_SIGNED_CHAR, FT_UNSIGNED_CHAR,
307 FT_SHORT, FT_SIGNED_SHORT, FT_UNSIGNED_SHORT, FT_INTEGER,
308 FT_SIGNED_INTEGER, FT_UNSIGNED_INTEGER, FT_LONG, FT_SIGNED_LONG,
309 FT_UNSIGNED_LONG, FT_LONG_LONG, FT_SIGNED_LONG_LONG,
310 FT_UNSIGNED_LONG_LONG, FT_FLOAT, FT_DBL_PREC_FLOAT, FT_EXT_PREC_FLOAT,
311 FT_COMPLEX, FT_DBL_PREC_COMPLEX, FT_EXT_PREC_COMPLEX, FT_STRING,
312 FT_FIXED_DECIMAL, FT_FLOAT_DECIMAL, FT_BYTE, FT_UNSIGNED_BYTE,
313 FT_TEMPLATE_ARG, FT_DECFLOAT, FT_DBL_PREC_DECFLOAT,
314 FT_EXT_PREC_DECFLOAT, FT_NUM_MEMBERS): Remove macros.
315 * objfiles.c (struct objfile): Remove fundamental_types member.
316 * symfile.c (reread_symbols): Do not clear fundamental_types.
318 * language.h (struct language_defn): Remove la_fund_type member.
319 (create_fundamental_type): Remove.
320 * language.c (unk_lang_create_fundamental_type): Remove.
321 (unknown_language_defn, auto_language_defn,
322 local_language_defn): Adapt initializer.
323 * ada-lang.c (ada_create_fundamental_type): Remove.
324 (ada_language_defn): Adapt initializer.
325 * c-lang.h (c_create_fundamental_type): Remove prototype.
326 * c-lang.c (c_create_fundamental_type): Remove.
327 (c_language_defn, cplus_language_defn, asm_language_defn,
328 minimal_language_defn): Adapt initializer.
329 * f-lang.c (f_create_fundamental_type): Remove.
330 (f_language_defn): Adapt initializer.
331 * jv-lang.c (java_create_fundamental_type): Remove.
332 (java_language_defn): Adapt initializer.
333 * m2-lang.c (m2_create_fundamental_type): Remove.
334 (m2_language_defn): Adapt initializer.
335 * objc-lang.c (objc_create_fundamental_type): Remove.
336 (objc_language_defn): Adapt initializer.
337 * p-lang.h (pascal_create_fundamental_type): Remove prototype.
338 * p-lang.c (pascal_create_fundamental_type): Remove.
339 (pascal_language_defn): Adapt initializer.
340 * scm-lang.c (scm_language_defn): Adapt initializer.
342 2007-12-04 Maciej W. Rozycki <macro@mips.com>
344 * features/mips-cpu.xml: Specify "regnum" for "r0" explicitly.
345 * features/mips64-cpu.xml: Likewise.
346 * features/mips-fpu.xml: Specify "regnum" for "f0" explicitly.
347 * features/mips64-fpu.xml: Likewise.
348 * features/mips-linux.c: Regenerate.
349 * features/mips64-linux.c: Regenerate.
351 2007-12-04 Maciej W. Rozycki <macro@mips.com>
353 * target.h (target_find_new_threads): Fix definition.
355 2007-12-02 Pierre Muller <muller@ics.u-strasbg.fr>
357 * win32-nat.c (win32_resume): Set the trace bit
358 in the thread identified by inferior_ptid.
361 2007-12-02 Pierre Muller <muller@ics.u-strasbg.fr>
363 * win32-nat.c (open_process_used): New static variable.
364 (win32_init_thread_list): Remove call to CloseHandle for thread.
365 (win32_delete_thread): Ditto.
366 (fake_create_process): Set open_process_used if OpenProcess call is
368 (get_win32_debug_event): Do not close process handle.
369 (do_initial_win32_stuff): Set open_process_used to zero.
370 (win32_mourn_inferior): Call CloseHandle for current_process_handle if
371 open_process_used is set.
372 (win32_kill_inferior): Do not close process and main_thread handles.
374 2007-11-30 Daniel Jacobowitz <dan@codesourcery.com>
376 * remote.c (remote_cmdlist): New variable.
377 (PACKET_vFile_open, PACKET_vFile_pread, PACKET_vFile_pwrite)
378 (PACKET_vFile_close, PACKET_vFile_unlink): New constants.
379 (remote_buffer_add_string, remote_buffer_add_bytes)
380 (remote_buffer_add_int, remote_hostio_parse_result)
381 (remote_hostio_send_command, remote_hostio_open, remote_hostio_pwrite)
382 (remote_hostio_pread, remote_hostio_close, remote_hostio_unlink)
383 (remote_fileio_errno_to_host, remote_hostio_error, fclose_cleanup)
384 (remote_hostio_close_cleanup, remote_file_put, remote_file_get)
385 (remote_file_delete, remote_put_command, remote_get_command)
386 (remote_delete_command, remote_command): New functions.
387 (_initialize_remote): Register new packets and commands.
388 * Makefile.in (gdb_fileio_h): New variable.
390 (SUBDIR_MI_OBS): Add mi-cmd-target.o.
391 (SUBDIR_MI_SRCS): Add mi/mi-cmd-target.c.
392 (mi-cmd-target.o): New rule.
393 * mi/mi-cmd-target.c: New file.
394 * mi/mi-cmds.c (mi_cmds): Add target-file-delete, target-file-get,
396 * mi/mi-cmds.h (mi_cmd_target_file_get, mi_cmd_target_file_put)
397 (mi_cmd_target_file_delete): Declare.
398 * remote.h (remote_file_put, remote_file_get, remote_file_delete):
400 * NEWS: Describe new file transfer support.
402 2007-11-30 Vladimir Prus <vladimir@codesourcery.com>
404 * infrun.c (handle_inferior_event): Don't
405 ignore beakpoints if trap_expected is set.
407 2007-11-30 Vladimir Prus <vladimir@codesourcery.com>
409 Make insert_breakpoints return void.
410 * breakpoint.h (insert_breakpoints): Change
412 * breakpoint.c (insert_breakpoints): Change
413 return type to void. Rename local return_val
415 * infrun.c (keep_going): Instead of checking
416 return value from insert_breakpoints, catch exception.
418 2007-11-29 Vladimir Prus <vladimir@codesourcery.com>
420 Stop infrun from tracking breakpoint insertion status.
422 The checks of breakpoints_inserted before calling
423 remove_breakpoints are removed, as remove_breakpoint
424 won't touch uninserted breakpoints. In a number of places,
425 we're interested if a breakpoint is inserted at particular
426 PC, and we now use breakpoint_inserted_here_p. In a few
427 places, insert_breakpoints can be called unconditionally,
428 since it won't try to insert already inserted breakpoint.
430 * breakpoint.h (regular_breakpoint_inserted_here_p): New
432 * breakpoint.c (regular_breakpoint_inserted_here_p): New.
433 (breakpoint_inserted_here_p): Use
434 regular_breakpoint_inserted_here_p.
435 * infrun.c (breakpoints_inserted): Remove.
436 (resume): Don't check for breakpoints_inserted before
437 remove_hw_watchpoints. Use breakpoint_inserted_here_p.
438 (proceed, init_wait_for_inferior): Don't set breakpoints_inserted.
439 (handle_inferior_event): Don't use breakpoints_inserted.
440 Use breakpoints_meant_to_be_inserted and
441 breakpoints_inserted_here_p.
442 (insert_step_resume_breakpoint_at_sal, keep_going): Use
443 breakpoints_meant_to_be_inserted. Don't set breakpoints_inserted.
444 (normal_stop): Don't check for breakpoints_inserted. Don't
445 set breakpoints_inserted.
446 (keep_going): Don't check for breakpoints_inserted.
447 (insert_step_resume_breakpoint_at_sal): Don't insert
450 2007-11-28 Jim Blandy <jimb@codesourcery.com>
452 * breakpoint.c (watch_command_1): When the watchpoint isn't local
453 to any frame, initialize watchpoint_frame using null_frame_id, not
456 2007-11-28 Vladimir Prus <vladimir@codesourcery.com>
458 * infrun.c (resume): Set right thread even if
459 stepping over breakpoint using software single step.
461 2007-11-28 Nick Roberts <nickrob@snap.net.nz>
463 * mi/mi-cmd-var.c (print_varobj): Revert change from 2007-08-31.
464 (mi_print_value_p): Guard against type = NULL.
466 2007-11-27 Thiago Jung Bauermann <bauerman@br.ibm.com>
468 * dfp.c (decimal_from_string): Remove superfluous newline from
470 (decimal_to_string): Likewise.
471 * printcmd.c (printf_command): Change string buffer to use
472 MAX_DECIMAL_STRING constant.
473 * value.c (value_from_decfloat): Likewise.
475 2007-11-27 Ulrich Weigand <uweigand@de.ibm.com>
477 * Makefile.in (ALL_TARGET_OBS): Remove object files that require
478 64-bit CORE_ADDR and BFD support, move them to ...
479 (ALL_64_TARGET_OBS): ... this new variable.
480 * configure.ac: Check for --enable-64-bit-bfd option. Only add
481 64-bit targets with --enable-targets=all if BFD supports 64-bit.
482 * configure: Regenerate.
484 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Do not claim
485 all elf32-i386 executables, only cygwin core files.
487 2007-11-25 Jan Kratochvil <jan.kratochvil@redhat.com>
489 * dwarf2read.c (dwarf2_get_pc_bounds): Moved the `DW_AT_ranges' parsing
490 code with its variables OBJFILE, CU_HEADER and OBFD into ...
491 (dwarf2_ranges_read): ... a new function.
492 (read_partial_die): Implemented the parsing of `DW_AT_ranges'.
494 2007-11-24 Pedro Alves <pedro_alves@portugalmail.pt>
496 * win32-nat.c (DR6_CLEAR_VALUE): New define.
497 (thread_info_struct): Rename suspend_count to suspended, to be
499 (thread_rec): Only suspend the thread if it wasn't suspended by
500 gdb before. Warn if suspending failed.
501 (win32_add_thread): Set Dr6 to DR6_CLEAR_VALUE.
502 (win32_continue): Set Dr6 to DR6_CLEAR_VALUE. Update usage of the
503 `suspended' flag. Do ContinueDebugEvent after resuming the
504 suspended threads, not before. Set threads' contexts before
505 resuming them, not after.
506 (win32_resume): Set Dr6 to DR6_CLEAR_VALUE.
508 2007-11-23 Vladimir Prus <vladimir@codesourcery.com>
510 * breakpoint.c (insert_breakpoints)
511 (insert_bp_location): Remove stale comments.
513 2007-11-23 Maciej W. Rozycki <macro@mips.com>
515 * mips-linux-tdep.h: Fix some formatting.
517 2007-11-21 Markus Deuling <deuling@de.ibm.com>
519 * stack.c (print_args_stub): Use get_frame_arch to get at the current
520 architecture and replace current_gdbarch.
521 (frame_info): Likewise.
523 2007-11-21 Nick Roberts <nickrob@snap.net.nz>
525 * varobj.c (c_variable_editable, cplus_variable_editable)
526 (java_variable_editable, variable_editable): Delete.
527 (varobj_editable_p): Replace above functions with one language
528 independent function. Check for an lvalue.
529 (varobj_get_attributes, varobj_set_value): Use varobj_editable_p.
530 (struct language_specific): Delete variable_editable field.
532 * mi-cmd-var.c (mi_cmd_var_assign): Simplify.
534 * varobj.h: Add extern for varobj_editable_p.
536 2007-11-20 Vladimir Prus <vladimir@codesourcery.com>
538 Remove unused breakpoint fields.
539 * breakpoint.h (struct breakpoint): Remove
540 from_tty and flag fields.
541 * breakpoint.c (break_command_1): Don't set
542 from_tty and flag field set of breakpoint.
543 (create_ada_exception_breakpoint): Don't set
546 2007-11-20 David Ung <davidu@mips.com>
547 Maciej W. Rozycki <macro@mips.com>
549 * mips-tdep.c (mips16_scan_prologue): Handle the MIPS16e SAVE
552 2007-11-20 Vladimir Prus <vladimir@codesourcery.com>
554 * infrun.c (resume): Clarify logic that
555 decides if a single thread must be resumed. Add
558 2007-11-20 Vladimir Prus <vladimir@codesourcery.com>
560 * breakpoint.c (disable_breakpoints_in_unloaded_shlib):
563 2007-11-19 Markus Deuling <deuling@de.ibm.com>
565 * gdbarch.sh (register_sim_regno): Add gdbarch as parameter.
566 * gdbarch.{c,h}: Regenerate.
568 * arch-utils.h (legacy_register_sim_regno): Add gdbarch as parameter.
569 * score-tdep.c (score_register_sim_regno): Likewise.
570 * sim-regno.h (one2one_register_sim_regno): Likewise.
572 * arch-utils.c (legacy_register_sim_regno): Add gdbarch as parameter.
573 Replace current_gdbarch by gdbarch.
574 * sh-tdep.c (sh_sh2a_register_sim_regno)
575 (sh_dsp_register_sim_regno): Likewise.
576 * rs6000-tdep.c (rs6000_register_sim_regno): Likewise.
577 * mips-tdep.c (mips_register_sim_regno): Likewise.
578 * m32c-tdep.c (m32c_register_sim_regno): Likewise.
579 * frv-tdep.c (frv_register_sim_regno): Likewise.
580 * arm-tdep.c (arm_register_sim_regno): Likewise.
581 * remote-sim.c (one2one_register_sim_regno): Likewise.
583 2007-11-16 Ulrich Weigand <uweigand@de.ibm.com>
585 * configure.ac (--enable-targets): New configure option.
586 Collect gdb_target_obs of multiple targets into TARGET_OBS.
587 Call configure.tgt multiple times, using $targ as operand.
588 * configure.tgt: Operate on $targ instead of $target.
589 * configure: Regenerate.
590 * Makefile.in (ALL_TARGET_OBS): Define.
592 * NEWS: Mention --enable-targets option.
594 2007-11-16 Ulrich Weigand <uweigand@de.ibm.com>
596 * mips-tdep.c (show_mipsfpu_command): Do not crash if called when
597 current architecture is not MIPS.
599 2007-11-16 Ulrich Weigand <uweigand@de.ibm.com>
601 * cli/cli-setshow.c (do_setshow_command): Use dynamically sized buffer
602 to construct error message if no argument was supplied.
604 2007-11-16 Ulrich Weigand <uweigand@de.ibm.com>
606 * i386nbsd-tdep.c (i386nbsd_aout_supply_regset): Remove.
607 (i386nbsd_aout_regset_from_core_section): Likewise.
608 (i386nbsd_aout_init_abi): Likewise.
609 (_initialize_i386nbsd_tdep): Do not register i386nbsd_aout_init_abi.
611 * vaxnbsd-tdep.c (vaxnbsd_aout_init_abi): Remove.
612 (_initialize_vaxnbsd_tdep): Do not register vaxnbsd_aout_init_abi.
614 2007-11-16 Ulrich Weigand <uweigand@de.ibm.com>
616 * amd64fsdb-tdep.c (amd64fbsd_sigtramp_start_addr): Use ULL suffix.
617 (amd64fbsd_sigtramp_end_addr): Likewise.
619 * iq2000-tdep.c (iq2000_pointer_to_address): Fix argument type.
620 (iq2000_address_to_pointer): Likewise.
621 (iq2000_frame_prev_register): Likewise.
622 (iq2000_extract_return_value): Use regcache_cooked_read_unsigned
623 instead of regcache_cooked_read into CORE_ADDR variable.
624 (iq2000_return_value): Fix argument types.
626 * m32r-rom.c (m32r_load_section): Fix printf argument type.
627 (m32r_load): Likewise.
629 * m68kbsd-tdep.c: Include "gdbtypes.h".
630 * Makefile.in: Update dependencies.
632 * mn10300-tdep.c (mn10300_frame_unwind_cache): Fix aliasing violation.
634 * nto-tdep.c (LM_ADDR): Do not refer to no-longer-existing
635 lmo->l_addr_size element.
637 * remote-m32r-sdi.c (m32r_xfer_memory): Use paddr to print address.
638 (m32r_insert_breakpoint): Likewise.
639 (m32r_remove_breakpoint): Likewise.
640 (m32r_insert_watchpoint): Likewise.
641 (m32r_remove_watchpoint): Likewise.
642 (m32r_load): Fix printf argument type.
644 * xtensa-tdep.c (xtensa_regset_from_core_section): Fix printf
646 (xtensa_frame_this_id): Do not cast pointers to "int" for output.
647 (xtensa_frame_prev_register): Likewise.
648 (xtensa_push_dummy_call): Likewise.
650 2007-11-16 Ulrich Weigand <uweigand@de.ibm.com>
652 * config/alpha/alpha-linux.mt: Remove file.
653 * config/alpha/alpha.mt: Remove file.
654 * config/alpha/alpha-osf1.mt: Remove file.
655 * config/alpha/fbsd.mt: Remove file.
656 * config/alpha/nbsd.mt: Remove file.
657 * config/alpha/obsd.mt: Remove file.
658 * config/arm/embed.mt: Remove file.
659 * config/arm/linux.mt: Remove file.
660 * config/arm/nbsd.mt: Remove file.
661 * config/arm/obsd.mt: Remove file.
662 * config/arm/wince.mt: Remove file.
663 * config/avr/avr.mt: Remove file.
664 * config/cris/cris.mt: Remove file.
665 * config/frv/frv.mt: Remove file.
666 * config/h8300/h8300.mt: Remove file.
667 * config/i386/cygwin.mt: Remove file.
668 * config/i386/fbsd64.mt: Remove file.
669 * config/i386/fbsd.mt: Remove file.
670 * config/i386/i386gnu.mt: Remove file.
671 * config/i386/i386.mt: Remove file.
672 * config/i386/i386sol2.mt: Remove file.
673 * config/i386/linux64.mt: Remove file.
674 * config/i386/linux.mt: Remove file.
675 * config/i386/mingw.mt: Remove file.
676 * config/i386/nbsd64.mt: Remove file.
677 * config/i386/nbsd.mt: Remove file.
678 * config/i386/nto.mt: Remove file.
679 * config/i386/obsd64.mt: Remove file.
680 * config/i386/obsd.mt: Remove file.
681 * config/i386/sol2-64.mt: Remove file.
682 * config/ia64/ia64.mt: Remove file.
683 * config/ia64/linux.mt: Remove file.
684 * config/iq2000/iq2000.mt: Remove file.
685 * config/m32c/m32c.mt: Remove file.
686 * config/m32r/linux.mt: Remove file.
687 * config/m32r/m32r.mt: Remove file.
688 * config/m68hc11/m68hc11.mt: Remove file.
689 * config/m68k/linux.mt: Remove file.
690 * config/m68k/monitor.mt: Remove file.
691 * config/m68k/nbsd.mt: Remove file.
692 * config/m68k/obsd.mt: Remove file.
693 * config/m88k/obsd.mt: Remove file.
694 * config/mep/mep.mt: Remove file.
695 * config/mips/embed.mt: Remove file.
696 * config/mips/irix5.mt: Remove file.
697 * config/mips/irix6.mt: Remove file.
698 * config/mips/linux.mt: Remove file.
699 * config/mips/nbsd.mt: Remove file.
700 * config/mips/obsd64.mt: Remove file.
701 * config/mn10300/linux.mt: Remove file.
702 * config/mn10300/mn10300.mt: Remove file.
703 * config/mt/mt.mt: Remove file.
704 * config/pa/hppahpux.mt: Remove file.
705 * config/pa/hppa.mt: Remove file.
706 * config/pa/linux.mt: Remove file.
707 * config/pa/obsd.mt: Remove file.
708 * config/powerpc/aix.mt: Remove file.
709 * config/powerpc/linux.mt: Remove file.
710 * config/powerpc/nbsd.mt: Remove file.
711 * config/powerpc/obsd.mt: Remove file.
712 * config/powerpc/ppc-eabi.mt: Remove file.
713 * config/s390/s390.mt: Remove file.
714 * config/score/embed.mt: Remove file.
715 * config/sh/embed.mt: Remove file.
716 * config/sh/linux.mt: Remove file.
717 * config/sh/nbsd.mt: Remove file.
718 * config/sh/obsd.mt: Remove file.
719 * config/sh/sh64.mt: Remove file.
720 * config/sparc/embed.mt: Remove file.
721 * config/sparc/fbsd.mt: Remove file.
722 * config/sparc/linux64.mt: Remove file.
723 * config/sparc/linux.mt: Remove file.
724 * config/sparc/nbsd64.mt: Remove file.
725 * config/sparc/nbsd.mt: Remove file.
726 * config/sparc/obsd64.mt: Remove file.
727 * config/sparc/obsd.mt: Remove file.
728 * config/sparc/sol2-64.mt: Remove file.
729 * config/sparc/sol2.mt: Remove file.
730 * config/sparc/sparc64.mt: Remove file.
731 * config/sparc/sparc.mt: Remove file.
732 * config/spu/spu.mt: Remove file.
733 * config/v850/v850.mt: Remove file.
734 * config/vax/nbsd.mt: Remove file.
735 * config/vax/obsd.mt: Remove file.
736 * config/vax/vax.mt: Remove file.
737 * config/xstormy16/xstormy16.mt: Remove file.
738 * config/xtensa/xtensa.mt: Remove file.
740 * configure.tgt (gdb_target_cpu): Remove. Do not set anywhere.
741 (gdb_target): Likewise.
742 (gdb_target_obs): Document. Set for every target to contents
743 of TDEPFILES in former .mt makefile fragment.
745 * configure.ac (TARGET_OBS): Define.
746 (target_makefile_frag, gdb_target_cpu): Do not define.
747 * configure: Regenerate.
749 * Makefile.in (MT_FLAGS): Remove.
750 (GLOBAL_CFLAGS): Update.
751 (TARGET_OBS): Substitute from configure.
752 (DEPFILES): Remove TDEPFILES, add TARGET_OBS.
753 (@target_makefile_frag@): Remove.
755 2007-11-16 Ulrich Weigand <uweigand@de.ibm.com>
757 * config/arm/embed.mt (SIM_OBS, SIM): Remove.
758 * config/avr/avr.mt (SIM_OBS, SIM): Remove.
759 * config/frv/frv.mt (SIM_OBS, SIM): Remove.
760 * config/h8300/h8300.mt (SIM_OBS, SIM): Remove.
761 * config/iq2000/iq2000.mt (SIM_OBS, SIM): Remove.
762 * config/m32c/m32c.mt (SIM_OBS, SIM): Remove.
763 * config/m32r/linux.mt (SIM_OBS, SIM): Remove.
764 * config/m32r/m32r.mt (SIM_OBS, SIM): Remove.
765 * config/m68hc11/m68hc11.mt (SIM_OBS, SIM): Remove.
766 * config/mips/embed.mt (SIM_OBS, SIM): Remove.
767 * config/mips/linux.mt (SIM_OBS, SIM): Remove.
768 * config/mips/nbsd.mt (SIM_OBS, SIM): Remove.
769 * config/mn10300/mn10300.mt (SIM_OBS, SIM): Remove.
770 * config/powerpc/linux.mt (SIM_OBS, SIM): Remove.
771 * config/powerpc/nbsd.mt (SIM_OBS, SIM): Remove.
772 * config/powerpc/ppc-sim.mt: Remove file.
773 * config/sh/embed.mt (SIM_OBS, SIM): Remove.
774 * config/sh/linux.mt (SIM_OBS, SIM): Remove.
775 * config/sh/nbsd.mt (SIM_OBS, SIM): Remove.
776 * config/sh/sh64.mt (SIM_OBS, SIM): Remove.
777 * config/sparc/embed.mt (SIM_OBS, SIM): Remove.
778 * config/v850/v850.mt (SIM_OBS, SIM): Remove.
779 * config/xstormy16/xstormy16.mt (SIM_OBS, SIM): Remove.
781 * configure.tgt (gdb_sim): Document variable.
782 (arm*-*-* | thumb*-*-* | strongarm*-*-* | xscale-*-*): Set it.
785 (h8300-*-*): Likewise.
786 (iq2000-*-*): Likewise.
787 (m32c-*-*): Likewise.
788 (m32r*-*-linux*): Likewise.
789 (m32r*-*-*): Likewise.
790 (m68hc11*-*-*|m6811*-*-*): Likewise.
791 (mips*-*-*): Likewise.
792 (mips*-*-linux*): Likewise.
793 (mips*-*-netbsd* | mips*-*-knetbsd*-gnu): Likewise.
794 (mn10300-*-*): Likewise.
795 (powerpc-*-linux* | powerpc64-*-linux*): Likewise.
796 (powerpc-*-netbsd* | powerpc-*-knetbsd*-gnu): Likewise.
797 (powerpc*-*-*): Use ppc-eabi target. Conditionally set gdb_sim.
799 (sh-*-linux*): Likewise.
800 (sh*-*-netbsdelf* | sh*-*-knetbsd*-gnu): Likewise.
801 (sh64-*-elf*): Likewise.
802 (sparc-*-rtems*): Likewise.
803 (v850*-*-elf): Likewise.
804 (xstormy16-*-*): Likewise.
806 * configure.ac (IGNORE_SIM, IGNORE_SIM_OBS): Do not set.
807 (SIM, SIM_OBS): Set depending on ${ignore_sim} and ${gdb_sim}.
808 * configure: Regenerate.
809 * Makefile.in (SIM, SIM_OBS): Substitute from configure.
810 (@IGNORE_SIM@, @IGNORE_SIM_OBS@): Remove.
812 2007-11-16 Ulrich Weigand <uweigand@de.ibm.com>
814 * configure.tgt (gdb_osabi, build_gdbserver): Comment variables.
815 (arm*-*-*): Do not set obsolete build_rdi_share variable.
817 (*-*-freebsd* | *-*-kfreebsd*-gnu): Remove generic case, replace by ...
818 (alpha*-*-freebsd* | alpha*-*-kfreebsd*-gnu)
819 (i[34567]86-*-freebsd* | i[34567]86-*-kfreebsd*-gnu)
820 (sparc*-*-freebsd* | sparc*-*-kfreebsd*-gnu): ... specific cases.
821 (x86_64-*-freebsd* | x86_64-*-kfreebsd*-gnu): Re-sort.
823 (xscale-*-*): Merge into arm*-*-* case.
824 (fido-*-elf*): Merge into m68*-*-elf* case.
825 (m68*-*-aout*, m68*-*-coff*, m68*-*-elf*, m68*-*-rtems*,
826 m68*-*-uclinux*): Merge cases.
827 (powerpc-*-linux*, powerpc64-*-linux*): Merge cases.
828 (sh-*-coff*, sh-*-elf*): Merge into sh* case.
830 2007-11-16 Ulrich Weigand <uweigand@de.ibm.com>
832 * configure.tgt: Reformat main case statement.
834 2007-11-16 Ulrich Weigand <uweigand@de.ibm.com>
836 * configure.ac (hostfile, targetfile): Remove.
837 (GDB_XM_FILE, GDB_TM_FILE): Do not define.
838 (xm_h, tm_h): Likewise.
839 (DEPRECATED_TM_FILE, XM_FILE): Do not substitute into Makefile.
840 * configure, config.in: Regenerate.
842 * Makefile.in (xm_h, tm_h): Remove. Update dependencies.
843 (TAGS): Do not consider DEPRECATED_TM_FILE or XM_FILE.
844 (clean, local-maintainer-clean): Do not remove xm.h or tm.h.
845 * defs.h: Do not include "xm.h" or "tm.h".
847 * gdbarch.sh (verify_gdbarch): Do not dump GDB_XM_FILE or GDB_TM_FILE.
848 * gdbarch.c: Regenerate.
850 * config/score/embed.mt: Remove obsolete comment.
852 2007-11-16 Markus Deuling <deuling@de.ibm.com>
854 * gdbarch.sh (cannot_fetch_register, cannot_store_register): Add gdbarch
856 * gdbarch.{c,h}: Regenerate.
858 * alpha-tdep.c (alpha_cannot_fetch_register)
859 (alpha_cannot_store_register): Add gdbarch as parameter. Replace
860 current_gdbarch by gdbarch.
861 * cris-tdep.c (cris_cannot_fetch_register, cris_cannot_store_register)
862 (crisv32_cannot_fetch_register)
863 (crisv32_cannot_store_register): Likewise.
864 * arch-utils.c (cannot_register_not): Likewise.
865 * arch-utils.h (cannot_register_not): Likewise.
866 * hppa-tdep.c (hppa32_cannot_store_register)
867 (hppa32_cannot_store_register, hppa64_cannot_store_register)
868 (hppa64_cannot_fetch_register): Likewise.
869 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register)
870 (mipsnbsd_cannot_store_register): Likewise.
872 2007-11-16 Markus Deuling <deuling@de.ibm.com>
874 * m32r-rom.c (m32r_supply_register): Use get_regcache_arch to get at
875 the current architecture by regcache.
876 * ppcnbsd-nat.c (ppcnbsd_supply_pcb): Likewise.
877 * ppc-linux-nat.c (fetch_altivec_register, fetch_spe_register)
878 (fetch_register, supply_vrregset, fetch_ppc_registers)
879 (store_altivec_register, store_spe_register, store_register)
880 (fill_vrregset, store_ppc_registers): Likewise.
881 * ppcobsd-nat.c (ppcobsd_supply_pcb): Likewise.
882 * win32-nat.c (do_win32_fetch_inferior_registers)
883 (do_win32_store_inferior_registers): Likewise.
884 * procfs.c (procfs_fetch_registers, procfs_store_registers): Likewise.
885 * remote-m32r-sdi.c (m32r_fetch_registers)
886 (m32r_store_registers): Likewise.
887 * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register): Likewise.
889 * trad-frame.c (trad_frame_alloc_saved_regs): Replace current_gdbarch by
891 * user-regs.c (user_reg_map_name_to_regnum): Likewise.
892 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call)
893 (do_ppc_sysv_return_value, ppc64_sysv_abi_push_dummy_call)
894 (ppc64_sysv_abi_return_value): Likewise.
895 * m32c-tdep.c (m32c_register_reggroup_p): Likewise.
896 * m2-lang.c (build_m2_types): Likewise.
897 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache
898 * ppcnbsd-tdep.c (ppcnbsd_sigtramp_cache_init): Likewise.
899 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_cache): Likewise.
900 * rs6000-tdep.c (ppc_dwarf2_frame_init_reg): Likewise.
902 * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Use get_frame_arch to
903 get at the current architecture by frame_info.
904 * gcore.c (derive_stack_segment): Likewise.
906 * shnbsd-nat.c (GETREGS_SUPPLIES): Add gdbarch parameter.
907 (shnbsd_fetch_inferior_registers, shnbsd_store_inferior_registers): Add
908 gdbarch to GETREGS_SUPPLIES call.
910 2007-11-16 Ulrich Weigand <uweigand@de.ibm.com>
912 * elfread.c (ST_REGULAR, ST_DYNAMIC, ST_SYNTHETIC): New defines.
913 (elf_symtab_read): Rename DYNAMIC argument to TYPE. Do not access
914 ELF-private symbol data when processing synthetic symbols. Use
915 udata.p to get at size of ppc64 synthetic 'dot' symbols.
916 (elf_symfile_read): Pass TYPE argument to elf_symtab_read.
918 2007-11-15 Doug Evans <dje@google.com>
920 * buildsym.h (subfiles): Move ...
921 * buildsym.c (subfiles): ... to here and make static.
923 * symmisc.c (maintenance_info_symtabs): Print linetable info.
925 2007-11-15 Markus Deuling <deuling@de.ibm.com>
927 * mipsnbsd-tdep.h (SIZEOF_STRUCT_REG, SIZEOF_STRUCT_FPREG): Remove
929 2007-11-15 Markus Deuling <deuling@de.ibm.com>
931 * arm-tdep.c (arm_prologue_this_id): Replace LOWEST_PC by its
932 expression and use get_frame_arch to replace current_gdbarch by frame's
934 * arm-tdep.h (LOWEST_PC): Remove
936 2007-11-15 Vladimir Prus <vladimir@codesourcery.com>
938 Apply const qualifier to some users of bp_location.
939 * breakpoint.h (struct bpstats): Make
940 the breakpoint_at field point at const bp_location.
941 * breakpoint.c (bpstat_alloc): Accept const
943 (breakpoint_here_p, breakpoint_inserted_here_p)
944 (software_breakpoint_inserted_here_p)
945 (breakpoint_thread_match, bpstat_stop_status)
946 (read_memory_nobpt, bpstat_have_active_hw_watchpoints): Use
947 const bp_location for iteration.
948 (print_it_typical, print_bp_stop_message): Use
949 const bp_location variable.
951 2007-11-15 Vladimir Prus <vladimir@codesourcery.com>
953 Make mark_breakpoints_out static.
954 * breakpoint.h (mark_breakpoints_out): Remove
956 * breakpoint.c (mark_breakpoints_out): Make static.
958 2007-11-15 Vladimir Prus <vladimir@codesourcery.com>
960 Prevent clear_command from directly modifying breakpoint list.
961 * Makefile.in (breakpoint_h): Update dependency.
962 * breakpoint.c (clear_command): Do not remove
963 breakpoints from breakpoint_chain. Collect breakpoints
964 to delete in a vector.
965 * breakpoint.h (breakpoint_p): New typedef for pointer to
966 breakpoint. Register vector of breakpoint_p.
968 2007-11-15 Vladimir Prus <vladimir@codesourcery.com>
970 Remove 'run_cleanup'.
971 * defs.h (do_run_cleanups, make_run_cleanup): Remove
973 * infcmd.c (run_command_1): Call clear_solib instead
975 * jv-lang.c (java_rerun_cleanup): Remove, for lack of
977 * solib.c (solib_cleanup_queued, do_clear_solib): Remove.
978 (update_solib_lib): Don't setup run cleanup.
979 (no_shared_libraries): Call clear_solib, not do_clear_solib.
980 * utils.c (run_cleanup_chain, make_run_cleanup)
981 (do_run_cleanups): Remove.
983 2007-11-15 Vladimir Prus <vladimir@codesourcery.com>
985 Remove CLEAR_SOLIB use.
986 * corelow.c (core_close): Don't check for CLEAR_SOLIB.
987 * infcmd.c (attach_command): Likewise.
989 2007-11-14 Doug Evans <dje@google.com>
991 * buildsym.c (start_subfile,start_symtab): Doc fixes.
993 2007-11-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
995 * tui/tui-data.c (tui_prev_win): Guard against NULL.
997 2007-11-12 Markus Deuling <deuling@de.ibm.com>
999 * gdbarch.sh (gdbarch_alloc): Replace current_gdbarch by gdbarch. Remove
1001 (verify_gdbarch, gdbarch_dump): Likewise.
1002 (do_read): Update comment.
1003 (addr_bit, bfd_arch_info, target_desc, long_long_bit, floatformat)
1004 (ptr_bit, name_of_malloc): Replace current_gdbarch by gdbarch.
1005 * gdbarch.{c,h}: Regenerate.
1007 2007-11-12 Markus Deuling <deuling@de.ibm.com>
1009 * xtensa-tdep.c (ARG_1ST): Replace ARGS_FIRST_REG by its expression.
1010 (ARGS_FIRST_REG): Remove.
1011 (areg_numer): New function.
1012 (xtensa_pseudo_register_read, xtensa_frame_prev_register)
1013 (xtensa_extract_return_value, xtensa_store_return_value)
1014 (xtensa_frame_cache): Replace AREG_NUMBER by areg_number.
1015 (AREG_NUMBER): Remove.
1016 (XTENSA_IS_ENTRY, ARG_NOF, ARG_1ST): Add gdbarch as parameter.
1017 (xtensa_frame_cache): Update use of XTENSA_IS_ENTRY.
1018 (xtensa_push_dummy_call): Update use of ARG_NOF.
1019 (extract_call_winsize): Add gdbarch as parameter. Replace
1020 current_gdbarch by gdbarch.
1021 (xtensa_extract_return_value, xtensa_store_return_value): Update call
1022 of extract_call_winsize.
1024 2007-11-10 Joel Brobecker <brobecker@adacore.com>
1026 * NEWS: Add entry for new set/show print frame-args command.
1028 2007-11-09 Kevin Buettner <kevinb@redhat.com>
1030 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Add missing
1031 register number to map. Adjust warning check and error/warning
1032 return value code to match expectations of this function's callers.
1034 2007-11-09 Joel Brobecker <brobecker@adacore.com>
1036 * stack.c (print_this_frame_argument_p): Handle arguments passed
1037 by reference properly.
1039 2007-11-09 Joel Brobecker <brobecker@adacore.com>
1041 * stack.c (print_frame_arguments_choices): New static global.
1042 (print_frame_arguments): Likewise.
1043 (print_this_frame_argument_p): New function.
1044 (print_frame_args): Print the argument value only when appropriate.
1045 (_initialize_task): Add new "set/show print frame-arguments" command.
1047 2007-11-09 Luis Machado <luisgpm@br.ibm.com>
1049 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Move
1050 saved_dabr_value assignment to the correct position.
1052 2007-11-09 Markus Deuling <deuling@de.ibm.com>
1054 * arch-utils.c (generic_convert_register_p): Add gdbarch as parameter.
1055 * arch-utils.h (generic_convert_register_p): Likewise.
1057 2007-11-09 Markus Deuling <deuling@de.ibm.com>
1059 * gdbarch.sh (convert_register_p): Add gdbarch as parameter.
1060 * ia64-tdep.c (ia64_convert_register_p): Likewise.
1061 * i387-tdep.c (i387_convert_register_p): Likewise.
1062 * i387-tdep.h (i387_convert_register_p): Likewise.
1063 * alpha-tdep.c (alpha_convert_register_p): Likewise.
1064 * gdbarch.{c,h}: Regenerate.
1066 * rs6000-tdep.c (rs6000_convert_register_p): Add gdbarch as parameter.
1067 Replace current_gdbarch by gdbarch.
1068 * mips-tdep.c (mips_convert_register_p): Likewise.
1069 * m68k-tdep.c (m68k_convert_register_p): Likewise.
1070 * i386-tdep.c (i386_convert_register_p): Likewise.
1072 2007-11-08 Aleksandar Ristovski <aristovski@qnx.com>
1074 * gdb_string.h: Include <strings.h>.
1076 2007-11-08 Vladimir Prus <vladimir@codesourcery.com>
1078 * breakpoint.c (break_command_1): Remove
1079 pending_bp parameter.
1080 (create_breakpoint): Likewise.
1081 (create_breakpoints): Likewise. Adjust call to
1083 (break_command_1): Likewise. Adjust call to
1085 (do_captured_breakpoint): Adjust call to
1087 (break_command, tbreak_command, hbreak_command)
1088 (stopin_command, stopat_command): Adjust call
1091 2007-11-07 Joseph Myers <joseph@codesourcery.com>
1092 Daniel Jacobowitz <dan@codesourcery.com>
1094 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Right-align
1095 struct values smaller than one doubleword; left-align those
1096 larger. Pass structs containing a single floating-point value in
1099 2007-11-07 Joseph Myers <joseph@codesourcery.com>
1100 Daniel Jacobowitz <dan@codesourcery.com>
1102 * gdbtypes.c (floatformats_ibm_long_double): New.
1103 * gdbtypes.h (floatformats_ibm_long_double): Declare.
1104 * ia64-tdep.c (floatformat_ia64_ext): Update for addition of
1106 * mips-tdep.c (n32n64_floatformat_always_valid,
1107 floatformat_n32n64_long_double_big, floatformats_n32n64_long):
1109 (mips_gdbarch_init): Use floatformats_ibm_long_double instead of
1110 floatformats_n32n64_long.
1111 * ppc-linux-tdep.c (ppc_linux_init_abi): Use 128-bit IBM long
1113 * doublest.c (convert_floatformat_to_doublest,
1114 convert_doublest_to_floatformat): Handle split floating-point
1116 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Handle IBM long
1118 (ppc64_sysv_abi_push_dummy_call): Likewise.
1119 (do_ppc_sysv_return_value): Handle IBM long double return.
1121 2007-11-07 Vladimir Prus <vladimir@codesourcery.com>
1123 Fix crash when a variable object being deleted
1124 has any of its children deleted previously.
1126 * varobj.c (delete_variable_1): Don't recurse
1127 into deleted children.
1129 2007-11-07 Markus Deuling <deuling@de.ibm.com>
1131 * gdbarch.sh (legacy_virtual_frame_pointer): Add gdbarch parameter.
1132 * gdbarch.{c,h}: Regenerate.
1133 * arch-utils.c (legacy_virtual_frame_pointer): Add gdbarch parameter.
1134 Replace current_gdbarch by gdbarch.
1135 * m32c-tdep.c (m32c_virtual_frame_pointer): Likewise.
1136 * mips-tdep.c (mips_virtual_frame_pointer): Likewise.
1137 * spu-tdep.c (spu_virtual_frame_pointer): Likewise.
1139 2007-11-07 Markus Deuling <deuling@de.ibm.com>
1141 * shnbsd-tdep.c (shnbsd_supply_gregset, shnbsd_collect_gregset): Use
1142 get_regcache_arch to get at the current architecture by regcache.
1143 * xstormy16-tdep.c (xstormy16_frame_prev_register): Use get_frame_arch
1144 to get at the current architecture by frame_info.
1145 * fbsd-nat.c (fbsd_make_corefile_notes): Use get_regcache_arch to get
1146 at the current architecture by regcache.
1147 * gnu-v3-abi.c (gnuv3_skip_trampoline): Use get_frame_arch to get at
1148 the current architecture by frame_info.
1149 (build_gdb_vtable_type): Replace current_gdbarch by gdbarch.
1150 * aix-thread.c (special_register_p): Add gdbarch as parameter.
1151 (fetch_regs_kernel_thread, store_regs_kernel_thread): Add gdbarch to
1152 caller of special_register_p.
1154 2007-11-07 Markus Deuling <deuling@de.ibm.com>
1156 * infcall.c (call_function_by_hand): Use get_frame_arch to get at the
1157 current architecture by frame_info.
1159 2007-11-07 Markus Deuling <deuling@de.ibm.com>
1161 * xtensa-tdep.h (SIZEOF_GREGSET, XTENSA_ELF_NGREG) Remove.
1163 2007-11-07 Markus Deuling <deuling@de.ibm.com>
1165 * s390-nat.c (supply_gregset, fill_gregset): Use get_regcache_arch to
1166 get at the current architecture by regcache.
1167 (SUBOFF): Add gdbarch to macro definition.
1169 2007-11-07 Markus Deuling <deuling@de.ibm.com>
1171 * gdbarch.sh (breakpoint_from_pc): Add gdbarch parameter.
1172 * gdbarch.{c,h}: Regenerate.
1174 * xtensa-tdep.c (xtensa_breakpoint_from_pc): Add gdbarch parameter.
1175 Replace current_gdbarch by gdbarch.
1176 * sh-tdep.c (sh_breakpoint_from_pc): Likewise.
1177 * sh64-tdep.c (sh64_breakpoint_from_pc): Likewise.
1178 * score-tdep.c (score_breakpoint_from_pc): Likewise.
1179 * mips-tdep.c (mips_breakpoint_from_pc): Likewise.
1180 * m32r-tdep.c (m32r_breakpoint_from_pc): Likewise.
1181 * iq2000-tdep.c (iq2000_breakpoint_from_pc): Likewise.
1182 * arm-tdep.c (arm_breakpoint_from_pc): Likewise.
1184 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Add gdbarch
1186 * vax-tdep.c (vax_breakpoint_from_pc): Likewise.
1187 * v850-tdep.c (v850_breakpoint_from_pc): Likewise.
1188 * spu-tdep.c (spu_breakpoint_from_pc): Likewise.
1189 * sparc-tdep.c (sparc_breakpoint_from_pc): Likewise.
1190 * s390-tdep.c (s390_breakpoint_from_pc): Likewise.
1191 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Likewise.
1192 * mt-tdep.c (mt_breakpoint_from_pc): Likewise.
1193 * mep-tdep.c (mep_breakpoint_from_pc): Likewise.
1194 * m88k-tdep.c (m88k_breakpoint_from_pc): Likewise.
1195 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Likewise.
1196 * m32c-tdep.c (m32c_breakpoint_from_pc): Likewise.
1197 * ia64-tdep.c (ia64_breakpoint_from_pc): Likewise.
1198 * i386-tdep.c (i386_breakpoint_from_pc): Likewise.
1199 * hppa-tdep.c (hppa_breakpoint_from_pc): Likewise.
1200 * h8300-tdep.c (h8300_breakpoint_from_pc): Likewise.
1201 * frv-tdep.c (frv_breakpoint_from_pc): Likewise.
1202 * cris-tdep.c (cris_breakpoint_from_pc): Likewise.
1203 * avr-tdep.c (avr_breakpoint_from_pc): Likewise.
1204 * alpha-tdep.c (alpha_breakpoint_from_pc): Likewise.
1205 * m68k-tdep.c (m68k_local_breakpoint_from_pc): Likewise.
1207 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Add gdbarch parameter.
1208 Replace current_gdbarch by gdbarch.
1209 (rs6000_software_single_step): Use get_frame_arch to get at the
1210 current architecture by frame_info. Add gdbarch to
1211 rs6000_breakpoint_from_pc call.
1213 2007-11-07 Markus Deuling <deuling@de.ibm.com>
1215 * frv-tdep.c (frv_register_name, frv_check_watch_resources): Replace
1216 macro CURRENT_VARIANT by its expression.
1217 (CURRENT_VARIANT): Remove.
1218 (frv_check_watch_resources): Add gdbarch parameter.
1220 2007-11-07 Markus Deuling <deuling@de.ibm.com>
1222 * MAINTAINERS (Write After Approval): Add self.
1224 2007-11-05 Ulrich Weigand <uweigand@de.ibm.com>
1226 * features/rs6000/power-core.xml: Use uint32 as register type.
1227 * features/rs6000/power64-core.xml: Use uint64/uint32 as register type.
1228 * features/rs6000/powerpc-32.c: Regenerate.
1229 * features/rs6000/powerpc-403.c: Regenerate.
1230 * features/rs6000/powerpc-403gc.c: Regenerate.
1231 * features/rs6000/powerpc-505.c: Regenerate.
1232 * features/rs6000/powerpc-602.c: Regenerate.
1233 * features/rs6000/powerpc-603.c: Regenerate.
1234 * features/rs6000/powerpc-604.c: Regenerate.
1235 * features/rs6000/powerpc-64.c: Regenerate.
1236 * features/rs6000/powerpc-7400.c: Regenerate.
1237 * features/rs6000/powerpc-750.c: Regenerate.
1238 * features/rs6000/powerpc-860.c: Regenerate.
1239 * features/rs6000/powerpc-e500.c: Regenerate.
1241 2007-11-05 Joel Brobecker <brobecker@adacore.com>
1243 * breakpoint.c (set_raw_breakpoint_without_location): Make static.
1245 2007-11-05 Joel Brobecker <brobecker@adacore.com>
1247 * breakpoint.h (create_solib_load_event_breakpoint)
1248 (create_solib_unload_event_breakpoint)
1249 (create_fork_event_catchpoint, create_vfork_event_catchpoint)
1250 (create_exec_event_catchpoint): Delete declaration.
1251 * breakpoint.c (create_solib_load_event_breakpoint)
1252 (solib_load_unload_1, create_solib_unload_event_breakpoint): Delete.
1253 (create_fork_event_catchpoint, create_vfork_event_catchpoint)
1254 (create_exec_event_catchpoint): Make static.
1256 2007-11-05 Joel Brobecker <brobecker@adacore.com>
1258 * breakpoint.h (set_breakpoint_sal): Remove declaration.
1259 * breakpoint.c (set_breakpoint_sal): Delete.
1261 2007-11-05 Joel Brobecker <brobecker@adacore.com>
1263 * buildsym.c (finish_block): Remove "#if 1"/"#endif" brackets.
1264 (make_blockvector): Likewise. Remove FIXME comment.
1266 2007-11-05 Luis Machado <luisgpm@br.ibm.com>
1268 * printcmd.c: (printf_command): Add support for new DFP
1269 modifiers %H, %D and %DD.
1270 * configure.ac: Add check for DECFLOAT printf support.
1271 * configure: Regenerated.
1273 2007-11-02 Ulrich Weigand <uweigand@de.ibm.com>
1275 * gdbtypes.h (struct cplus_struct_type): Remove runtime_ptr member.
1276 (TYPE_RUNTIME_PTR, TYPE_VTABLE, TYPE_HAS_VTABLE,
1277 TYPE_PRIMARY_BASE, TYPE_VIRTUAL_BASE_LIST): Remove macros.
1278 (HP_ACC_VFUNC_START, HP_ACC_VBASE_START, HP_ACC_TYPEINFO_OFFSET,
1279 HP_ACC_TOP_OFFSET_OFFSET): Likewise.
1280 (has_vtable, primary_base_class, virtual_base_list_length,
1281 virtual_base_list_length_skip_primaries, virtual_base_index,
1282 virtual_base_index_skip_primaries, class_index_in_primary_list,
1283 count_virtual_fns): Remove prototypes.
1284 * gdbtypes.c (has_vtable, primary_base_class, current_vbase_list,
1285 virtual_base_list_aux, virtual_base_list, virtual_base_list_length,
1286 virtual_base_list_length_skip_primaries, virtual_base_index,
1287 virtual_base_index_skip_primaries, class_index_in_primary_list,
1288 count_virtual_fns): Remove.
1290 * cp-valprint.c (cp_print_hpacc_virtual_table_entries): Remove.
1291 (hpacc_vtbl_ptr_name, hpacc_vtbl_ptr_type_name): Remove.
1292 (cp_print_value_fields): Remove support for HP aCC vtables.
1293 (cp_print_value): Likewise.
1294 * c-typeprint.c (c_type_print_base): Likewise.
1296 * value.h (find_rt_vbase_offset): Remove prototype.
1297 * valops.c (find_rt_vbase_offset): Remove.
1298 (search_struct_method): Remove support for HP aCC vtables.
1299 (find_method_list): Likewise.
1301 2007-11-02 Ulrich Weigand <uweigand@de.ibm.com>
1303 * language.h (struct language_defn): Remove la_builtin_type_vector
1304 and string_char_type members.
1305 * language.c (language_string_char_type): No longer consult
1306 la->string_char_type.
1307 (language_lookup_primitive_type_by_name): No longer consult
1308 current_language->la_builtin_type_vector.
1310 * language.c (unknown_language_defn, auto_language_defn,
1311 local_language_defn): Adapt initializer.
1312 * ada-lang.c (ada_language_defn): Likewise.
1313 * c-lang.c (c_language_defn, cplus_language_defn, asm_language_defn,
1314 minimal_language_defn): Likewise.
1315 * f-lang.c (f_language_defn): Likewise.
1316 * jv-lang.c (java_language_defn): Likewise.
1317 * m2-lang.c (m2_language_defn): Likewise.
1318 * objc-lang.c (objc_language_defn): Likewise.
1319 * p-lang.c (pascal_language_defn): Likewise.
1320 * scm-lang.c (scm_language_defn): Likewise.
1322 2007-11-02 Markus Deuling <deuling@de.ibm.com>
1324 * frame.c (frame_id_inner): Add gdbarch parameter. Replace
1325 current_gdbarch by gdbarch.
1326 (frame_find_by_id, get_prev_frame_1): Use get_frame_arch to get at the
1327 current architecture by frame_info.
1328 * frame.h (frame_id_inner): Add gdbarch parameter.
1329 * stack.c (return_command): Use get_frame_arch to get at the current
1330 architecture by frame_info. Update call of frame_id_inner.
1331 * infrun.c (handle_inferior_event): Likewise.
1332 * dummy-frame.c (dummy_frame_push): Use get_regcache_arch to get at the
1333 current architecture by regcache. Update call of frame_id_inner.
1335 2007-11-02 Markus Deuling <deuling@de.ibm.com>
1337 * gdbarch.sh (register_name): Add gdbarch parameter.
1338 * gdbarch.{c,h}: Regenerate.
1340 * target-descriptions.c (tdesc_register_name): Add gdbarch parameter.
1341 (tdesc_register_name): Replace current_gdbarch by gdbarch.
1342 * target-descriptions.h (tdesc_register_name): Add gdbarch parameter.
1344 * xstormy16-tdep.c (xstormy16_register_name): Add gdbarch parameter.
1345 * vax-tdep.c (vax_register_name): Add gdbarch parameter.
1346 * spu-tdep.c (spu_register_name): Add gdbarch parameter.
1347 * s390-tdep.c (s390_register_name): Add gdbarch parameter.
1348 * mt-tdep.c (mt_register_name): Add gdbarch parameter.
1349 (mt_registers_info): Replace current_gdbarch by gdbarch.
1350 (mt_register_reggroup_p): Add gdbarch to mt_register_name call.
1351 * mips-tdep.c (mips_register_name): Add gdbarch parameter. Replace
1352 current_gdbarch by gdbarch.
1353 (mips_register_name): Add gdbarch to tdesc_register_name call.
1354 * mep-tdep.c (mep_register_name): Add gdbarch parameter. Replace
1355 current_gdbarch by gdbarch.
1356 (mep_register_reggroup_p): Add gdbarch to mep_register_name call.
1357 * m32c-tdep.c (m32c_register_name): Add gdbarch parameter. Replace
1358 current_gdbarch by gdbarch.
1359 * m88k-tdep.c (m88k_register_name): Add gdbarch parameter.
1360 * m68k-tdep.c (m68k_register_name): Add gdbarch parameter.
1361 * m32r-tdep.c (m32r_register_name): Add gdbarch parameter.
1362 (m32r_frame_unwind_cache): Use get_frame_arch to get at the current
1363 architecture by frame_info.
1364 * iq2000-tdep.c (iq2000_register_name): Add gdbarch parameter.
1365 * ia64-tdep.c (ia64_register_name): Add gdbarch parameter.
1366 * hppa-tdep.c (hppa32_register_name, hppa64_register_name): Add gdbarch
1368 * h8300-tdep.c (h8300_register_name, h8300s_register_name)
1369 (h8300sx_register_name): Add gdbarch parameter.
1370 * cris-tdep.c (cris_register_name, crisv32_register_name): Add
1371 gdbarch parameter. Replace current_gdbarch by gdbarch.
1372 (cris_gdbarch_init): Replace current_gdbarch by gdbarch (comment).
1373 * avr-tdep.c (avr_register_name): Add gdbarch parameter.
1374 * arm-tdep.c (arm_register_name): Add gdbarch paramete
1375 * amd64-tdep.c (amd64_register_name): Add gdbarch parameter. Update
1377 * amd64-tdep.h (amd64_register_name): Add gdbarch parameter.
1378 * amd64-linux-tdep.c (amd64_linux_register_name): Add gdbarch parameter.
1379 * alpha-tdep.c (alpha_register_name): Add gdbarch parameter.
1380 (alpha_cannot_fetch_register, alpha_cannot_store_register): Update call
1381 of alpha_register_name.
1382 * frv-tdep.c (frv_register_name): Add gdbarch parameter.
1383 * i386-tdep.c (i386_register_name): Add gdbarch parameter. Replace
1384 current_gdbarch by gdbarch.
1385 (i386_register_type): Replace ?current_gdbarch by gdbarch.
1386 * i386-tdep.h (i386_register_name): Add gdbarch parameter.
1387 * i386-linux-tdep.c (i386_linux_register_name): Add gdbarch parameter.
1389 * m68hc11-tdep.c (m68hc11_register_name): Add gdbarch parameter.
1390 (m68hc11_register_reggroup_p): Add gdbarch to call of
1391 m68hc11_register_name.
1392 * mn10300-tdep.c (mn10300_generic_register_name, am33_register_name)
1393 (am33_2_register_name): Add gdbarch parameter.
1394 (mn10300_frame_unwind_cache): Use get_frame_arch to get at the current
1395 architecture by frame_info.
1396 (mn10300_dump_tdep): Replace current_gdbarch by gdbarch.
1397 * rs6000-tdep.c (rs6000_register_name): Add gdbarch parameter. Replace
1398 current_gdbarch by gdbarch.
1399 * score-tdep.c (score_register_name): Add gdbarch parameter.
1400 (score_return_value, score_push_dummy_call): Replace current_gdbarch
1402 * sh64-tdep.c (sh64_register_name): Add gdbarch parameter.
1403 (sh64_compact_reg_base_num, sh64_register_convert_to_virtual)
1404 (sh64_register_convert_to_raw, sh64_fv_reg_base_num)
1405 (sh64_dr_reg_base_num, sh64_fpp_reg_base_num): Add gdbarch parameter
1406 and update caller. Replace current_gdbarch by gdbarch.
1407 (sh64_extract_return_value, sh64_store_return_value): Use
1408 get_regcache_arch to get at the current architecture by regcache.
1409 * sh-tdep.c (sh_sh_register_name, sh_sh3_register_name)
1410 (sh_sh3e_register_name, sh_sh2e_register_name, sh_sh2a_register_name)
1411 (sh_sh2a_nofpu_register_name, sh_sh_dsp_register_name)
1412 (sh_sh3_dsp_register_name, sh_sh4_register_name)
1413 (sh_sh4_nofpu_register_name, sh_sh4al_dsp_register_name): Add gdbarch
1415 (fv_reg_base_num, dr_reg_base_num, sh_justify_value_in_reg)
1416 (sh_next_flt_argreg): Add gdbarch parameter and update caller. Replace
1417 current_gdbarch by gdbarch.
1418 (sh_extract_return_value_fpu, sh_store_return_value_fpu): Use
1419 get_regcache_arch to get at the current architecture by regcache.
1420 * sparc-tdep.c (sparc32_register_name): Add gdbarch parameter.
1421 * sparc64-tdep.c (sparc64_register_name): Add gdbarch parameter.
1422 * v850-tdep.c (v850_register_name, v850e_register_name): Add gdbarch
1424 (v850_unwind_sp, v850_unwind_pc): Replace current_gdbarch by gdbarch.
1425 * xtensa-tdep.c (xtensa_register_name): Add gdbarch parameter. Replace
1426 current_gdbarch by gdbarch.
1427 (xtensa_pseudo_register_read, xtensa_pseudo_register_write)
1428 (xtensa_frame_prev_register): Add gdbarch parameter to
1429 xtensa_register_name call.
1431 2007-10-31 Ulrich Weigand <uweigand@de.ibm.com>
1433 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Fall back to
1434 find_solib_trampoline_target if PC is not in .plt section.
1436 2007-10-31 Ulrich Weigand <uweigand@de.ibm.com>
1438 * elfread.c (elf_symtab_read): When constructing a solib trampoline
1439 minimal symbol from an undefined dynamic symbol, use proper section.
1441 2007-10-31 Markus Deuling <deuling@de.ibm.com>
1443 * arm-linux-nat.c (fetch_register, fetch_regs): Use get_regcache_arch
1444 to get at the current architecture by regcache.
1446 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1448 * libunwind-frame.c (libunwind_frame_sniffer)
1449 libunwind_frame_prev_register, libunwind_sigtramp_frame_sniffer)
1450 (libunwind_frame_cache): Use get_frame_arch to get at the current
1451 architecture by frame_info.
1452 (libunwind_get_reg_special): Replace current_gdbarch by gdbarch.
1454 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1456 * iq2000-tdep.c (iq2000_frame_prev_register): Use get_frame_arch to get
1457 at the current architecture by frame_info.
1459 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1461 * inf-child.c (inf_child_fetch_inferior_registers): Use
1462 get_regcache_arch to get at the current architecture by regcache.
1464 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1466 * inf-ptrace.c (inf_ptrace_fetch_registers)
1467 (inf_ptrace_fetch_register, inf_ptrace_store_register)
1468 (inf_ptrace_store_registers): Use get_regcache_arch to get at the
1469 current architecture by regcache.
1471 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1473 * hpux-thread.c (hpux_thread_fetch_registers)
1474 (hpux_thread_store_registers): Use get_regcache_arch to get at the
1475 current architecture by regcache.
1477 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1479 * hppa-tdep.c (hppa_frame_cache): Use get_frame_arch to get at the
1480 current architecture by frame_info.
1482 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1484 * go32-nat.c (fetch_register, go32_fetch_registers, store_register)
1485 (go32_store_registers): Use get_regcache_arch to get at the current
1486 architecture by regcache.
1488 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1490 * gdbtypes.c (gdbtypes_post_init): Replace current_gdbarch by gdbarch.
1492 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1494 * frv-linux-tdep.c (frv_linux_sigtramp_frame_cache): Use get_frame_arch
1495 to get at the current architecture by frame_info.
1497 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1499 * f-lang.c (build_fortran_types): Replace current_gdbarch by gdbarch.
1501 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1503 * core-regset.c (fetch_core_registers): Use get_regcache_arch to get at
1504 the current architecture by regcache.
1506 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1508 * corelow.c (get_core_registers): Use get_regcache_arch to get at the
1509 current architecture by regcache.
1511 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1513 * bsd-uthread.c (bsd_uthread_fetch_registers)
1514 (bsd_uthread_store_registers): Use get_regcache_arch to get at the
1515 current architecture by regcache.
1517 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1519 * avr-tdep.c (avr_frame_unwind_cache, avr_frame_prev_register): Use
1520 get_frame_arch to get at the current architecture by frame_info.
1522 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1524 * arm-tdep.c (arm_get_next_pc): Replace current_gdbarch by gdbarch.
1526 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1528 * armnbsd-nat.c (arm_supply_gregset, fetch_register, store_register)
1529 (store_regs): Use get_regcache_arch to get at the current architecture
1532 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1534 * arm-linux-tdep.c (arm_linux_supply_gregset): Use get_regcache_arch
1535 to get at the current architecture by regcache.
1537 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1539 * alphabsd-nat.c (alphabsd_fetch_inferior_registers)
1540 (alphabsd_store_inferior_registers): Use get_regcache_arch to get at
1541 the current architecture by regcache.
1543 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1545 * ada-lang.c (ada_language_arch_info): Replace current_gdbarch by
1548 2007-10-30 Daniel Jacobowitz <dan@codesourcery.com>
1550 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Check the selected
1551 soft float and vector ABIs. Support the generic vector ABI for
1553 (do_ppc_sysv_return_value): Likewise. Correct argument types and
1555 (ppc64_sysv_abi_push_dummy_call): Assert that floating point is
1557 * ppc-tdep.h (enum powerpc_vector_abi): New.
1558 (struct gdbarch_tdep): Add soft_float and vector_abi.
1559 * rs6000-tdep.c (setpowerpccmdlist, showpowerpccmdlist)
1560 (powerpc_soft_float_global, powerpc_vector_strings)
1561 (powerpc_vector_abi_global, powerpc_vector_abi_string): New.
1562 (rs6000_gdbarch_init): Check for soft-float and vector ABI markings.
1563 (set_powerpc_command, show_powerpc_command, powerpc_set_soft_float)
1564 (powerpc_set_vector_abi): New.
1565 (_initialize_rs6000_tdep): Register "set powerpc" and "show powerpc"
1567 * Makefile.in (elf_ppc_h): New.
1568 (rs6000-tdep.o): Update.
1570 2007-10-29 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
1572 * ppc-linux-tdep.c (ppc32_linux_reg_offsets): Corrected
1573 swapped offsets and VRSAVE offset.
1574 (ppc64_linux_reg_offsets): Corrected swapped offsets.
1575 (ppc32_linux_vrregset): Added.
1576 (ppc_linux_regset_from_core_section): Added support for
1577 .reg-ppc-vmx section.
1578 * ppc-tdep.h (ppc_altivec_support_p): Declare.
1579 (ppc_supply_vrregset): Declare.
1580 (ppc_collect_vrregset): Declare.
1581 * rs6000-tdep.c (ppc_altivec_support_p): Added.
1582 (ppc_supply_vrregset): Added.
1583 (ppc_collect_vrregset): Added.
1584 * corelow.c (get_core_registers): Added support for
1585 .reg-ppc-vmx section.
1587 2007-10-29 Joel Brobecker <brobecker@adacore.com>
1591 2007-10-26 Jim Blandy <jimb@codesourcery.com>
1593 * ax-gdb.h (expr_to_address_and_size): Delete declaration for
1596 * tracepoint.c (tracepoint_operation): Report the deletion event
1597 after we have unlinked the tracepoint from the list, and use the
1598 proper tracepoint number.
1600 * ax-gdb.c (expr_to_agent): Delete unused function.
1601 (expr_to_address_and_size): Delete #if 0'd function.
1602 * ax-gdb.h (expr_to_agent): Delete declaration.
1604 * ax-gdb.c (gen_cast): Remove redundant assignment to
1605 value->type. Doc fix.
1607 * ax-general.c (gen_traced_pop, gen_int_literal)
1608 (gen_usual_arithmetic): Check for typedefs.
1610 2007-10-26 Joel Brobecker <brobecker@adacore.com>
1612 * parse.c (prefixify_expression): Minor reformatting.
1614 2007-10-25 Daniel Jacobowitz <dan@codesourcery.com>
1616 * version.in: Use dot instead of dash.
1618 2007-10-25 Daniel Jacobowitz <dan@codesourcery.com>
1620 * linux-thread-db.c (check_for_thread_db): Only print if info_verbose.
1622 2007-10-25 Pedro Alves <pedro_alves@portugalmail.pt>
1624 * memory-map.c (parse_memory_map): Don't use an empty struct
1627 2007-10-25 Pedro Alves <pedro_alves@portugalmail.pt>
1629 * signals/signals.c (signals): Update pointer to enum
1630 target_signal declaration.
1632 2007-10-25 Wu Zhou <woodzltc@cn.ibm.com>
1633 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
1634 Jim Blandy <jimb@codesourcery.com>
1636 * dwarf2read.c (read_partial_die): check the value
1637 of DW_AT_calling_convention in Fortran programs.
1639 2007-10-25 Wu Zhou <woodzltc@cn.ibm.com>
1640 Thiago Jung Bauermann <bauerman@br.ibm.com>
1642 * c-exp.y (YYSTYPE): Add typed_val_decfloat for decimal
1643 floating point in YYSTYPE union.
1644 (DECFLOAT) Add token and expression element handling code.
1645 (parse_number): Parse DFP constants, which end with suffix 'df',
1646 'dd' or 'dl'. Return DECFLOAT.
1647 * eval.c (evaluate_subexp_standard): Call value_from_decfloat to
1649 * expression.h (enum exp_opcode): Add an opcode (OP_DECFLOAT)
1651 (union exp_element): Add decfloatconst to represent DFP
1652 elements, which is 16 bytes by default.
1653 * parse.c (write_exp_elt_decfloatcst): New function to write a
1654 decimal float const into the expression.
1655 (operator_length_standard): Set operator length for OP_DECFLOAT
1657 * parser-defs.h (write_exp_elt_decfloatcst): Prototype.
1658 * valarith.c (value_neg): Add code to handle the negation
1659 operation of DFP values.
1660 * value.c (value_from_decfloat): New function to get the value
1661 from a decimal floating point.
1662 * value.h (value_from_decfloat): Prototype.
1664 2007-10-25 Wu Zhou <woodzltc@cn.ibm.com>
1665 Thiago Jung Bauermann <bauerman@br.ibm.com>
1667 * c-lang.c (c_create_fundamental_type): Create fundamental
1669 * c-typeprint.c (c_type_print_varspec_prefix): Add
1670 TYPE_CODE_DECFLOAT to no prefix needed case.
1671 (c_type_print_varspec_suffix): Add TYPE_CODE_DECFLOAT to no
1673 * c-valprint.c (c_val_print): Call print_decimal_floating to
1675 * dwarf2read.c (read_base_type): Read DW_ATE_decimal_float
1676 attribute code and return TYPE_CODE_DECFLOAT.
1677 (dwarf_base_type): Set dwarf2_fundamental_type for DFP values.
1678 * gdbtypes.c (gdbtypes_post_init): Initialize builtin_decfloat,
1679 builtin_decdouble and builtin_declong.
1680 * gdbtypes.h (enum type_code): Add TYPE_CODE_DECFLOAT as a
1682 (FT_DECFLOAT, FT_DBL_PREC_DECFLOAT, FT_EXT_PREC_DECFLOAT): New
1683 types, for decimal floating point.
1684 (FT_NUM_MEMBERS): Increment, new types added.
1685 (struct builtin_type): Add builtin_decfloat, builtin_decdouble
1686 and builtin_declong.
1687 * valprint.c (print_decimal_floating): New function to print DFP
1689 * value.h (print_decimal_floating): Prototype.
1691 2007-10-25 Wu Zhou <woodzltc@cn.ibm.com>
1692 Thiago Jung Bauermann <bauerman@br.ibm.com>
1694 * Makefile.in (LIBDECNUMBER_DIR, LIBDECNUMBER, LIBDECNUMBER_SRC
1695 LIBDECNUMBER_CFLAGS): New macros for libdecnumber.
1696 (INTERNAL_CFLAGS_BASE): Add LIBDECNUMBER_CFLAGS in.
1697 (INSTALLED_LIBS): Add -ldecnumber in.
1698 (CLIBS): Add LIBDECNUMBER in.
1699 (decimal128_h, decimal64_h, decimal32_h): New macros for decimal
1701 (dfp_h): New macros for decimal floating point.
1702 (dfp.o): New target.
1703 (COMMON_OBS): Add dfp.o in.
1704 (c-exp.o): Add dfp_h as dependency.
1705 (valprint.o): Add dfp_h as dependency.
1706 (value.o): Add dfp_h as dependency.
1707 * dfp.h: New header file for decimal floating point support in
1709 * dfp.c: New source file for decimal floating point support in
1710 GDB. Implement decimal_from_string and decimal_to_string based
1711 on libdecnumber API.
1712 * configure.ac: Add AC_C_BIGENDIAN test.
1713 * config.in, configure: Regenerate.
1715 2007-10-25 David Ung <davidu@mips.com>
1716 Maciej W. Rozycki <macro@mips.com>
1719 * infcmd.c (registers_info): Check for a user register before
1720 calling target's gdbarch_print_registers_info(). If found to be
1721 so, extract the implicit value of user register and call
1722 print_scalar_formatted().
1723 * Makefile.in: (infcmd.o): Add $(user_regs_h).
1725 2007-10-25 Joel Brobecker <brobecker@adacore.com>
1727 * NEWS: Document status of hppa64-hpux support.
1729 2007-10-24 Ulrich Weigand <uweigand@de.ibm.com>
1731 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets): Call
1732 set_solib_ops to install SVR4 operations.
1733 (_initialize_svr4_solib): Do not set current_target_so_ops.
1735 * config/i386/i386gnu.mh (NATDEPFILES): Move solib.o, solib-svr4.o ...
1736 * config/i386/i386gnu.mt (TDEPFILES): ... to here.
1738 2007-10-24 Ulrich Weigand <uweigand@de.ibm.com>
1740 * solib-svr4.c (legacy_svr4_fetch_link_map_offsets_hook): Remove.
1741 (solib_svr4_init): Initialize fetch_link_map_offsets to NULL.
1742 * solib-svr4.h (legacy_svr4_fetch_link_map_offsets_hook): Remove.
1743 * solib-legacy.c: Remove file.
1745 * config/alpha/alpha-linux.mt (TDEPFILES): Remove solib-legacy.o.
1746 * config/arm/linux.mt (TDEPFILES): Likewise.
1747 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
1748 * config/ia64/linux.mt (TDEPFILES): Likewise.
1749 * config/m32r/linux.mt (TDEPFILES): Likewise.
1750 * config/powerpc/linux.mt (TDEPFILES): Likewise.
1751 * config/s390/s390.mt (TDEPFILES): Likewise.
1753 * alpha-linux-tdep.c (alpha_linux_init_abi): Call
1754 set_solib_svr4_fetch_link_map_offsets.
1755 * i386gnu-tdep.c (i386gnu_init_abi): Likewise.
1756 * ia64-linux-tdep.c (ia64_linux_init_abi): Likewise.
1758 * i386gnu-tdep.c: Include "solib-svr4.h".
1759 * Makefile.in: Update dependencies.
1761 2007-10-24 Ulrich Weigand <uweigand@de.ibm.com>
1763 * i386-nto-tdep.c: Include "solib.h".
1764 (i386nto_init_abi): Use set_solib_ops instead of overwriting
1765 current_target_so_ops members.
1766 * solist.h (TARGET_SO_RELOCATE_SECTION_ADDRESSES): Remove.
1767 (TARGET_SO_FIND_AND_OPEN_SOLIB): Remove.
1768 (TARGET_SO_IN_DYNSYM_RESOLVE_CODE): Remove.
1769 * Makefile.in: Update dependencies.
1771 2007-10-24 Ulrich Weigand <uweigand@de.ibm.com>
1773 * arm-wince-tdep.c: Include "solib.h" and "solib-target.h".
1774 (arm_wince_init_abi): Call set_solib_ops.
1775 * i386-cygwin-tdep.c: Include "solib.h" and "solib-target.h".
1776 (i386_cygwin_init_abi): Call set_solib_ops.
1777 * solib-target.c: Include "solib-target.h".
1778 (solib_target_so_ops): Make global.
1779 (_initialize_solib_target): Do not set current_target_so_ops.
1780 * solib-target.h: New file.
1781 * Makefile.in: Update dependencies.
1783 2007-10-24 Ulrich Weigand <uweigand@de.ibm.com>
1785 * mips-irix-tdep.c: Include "gdb_string.h", "solib.h", "solib-irix.h".
1786 (mips_irix_init_abi): Call set_solib_ops.
1787 * solib-irix.c: Include "solib.h" and "solib-irix.h".
1788 (irix_so_ops): Make global.
1789 (_initialize_irix_solib): Do not set current_target_so_ops.
1790 * solib-irix.h: New file.
1791 * Makefile.in: Update dependencies.
1793 2007-10-24 Ulrich Weigand <uweigand@de.ibm.com>
1795 * configure.tgt: Remove hppa*64*-*-hpux11* special case.
1796 * config/pa/hppa64.mt: Delete file.
1797 * config/pa/hppahpux.mt (MT_CFLAGS): Remove.
1798 (TDEPFILES): Move somread.o to ...
1799 * config/pa/hpux.mh (NATDEPFILES): ... here.
1801 * configure.ac: Add check for elf_hp.h header.
1802 Search libdl and libxpdl for dlgetmodinfo.
1803 * config.in, configure: Regenerate.
1804 * solib-pa64.c: Conditionalize compilation on #ifdef HAVE_ELF_HP_H
1805 instead of #ifndef PA_SOM_ONLY. Include "solib.h".
1806 (pa64_solib_select): Take gdbarch instead of tdep argument. Call
1807 set_solib_ops instead of modifying current_target_so_ops.
1808 * solib-pa64.h (pa64_solib_select): Update prototype.
1809 * solib-som.c: Remove include of "som.h". Include "solib.h".
1810 (som_solib_select): Take gdbarch instead of tdep argument. Call
1811 set_solib_ops instead of modifying current_target_so_ops.
1812 * solib-som.h (som_solib_select): Update prototype.
1813 * hppa-hpux-tdep.c (hppa_hpux_som_init_abi): Pass gdbarch instead
1814 of tdep to som_solib_select call.
1815 (hppa_hpux_elf_init_abi): Pass gdbarch instead of tdep to
1816 pa64_solib_select call.
1817 * Makefile.in: Update dependencies.
1819 2007-10-24 Ulrich Weigand <uweigand@de.ibm.com>
1821 * frv-tdep.c: Include "solib.h".
1822 (frv_gdbarch_init): Call set_solib_ops.
1823 * frv-tdep.h (struct target_so_ops): Add forward reference.
1824 (frv_so_ops): Add extern declaration.
1825 * solib-frv.c (frv_so_ops): Make global.
1826 (_initialize_frv_solib): Do not set current_target_so_ops.
1827 * Makefile.in: Update dependencies.
1829 2007-10-24 Ulrich Weigand <uweigand@de.ibm.com>
1831 * solib.c (solib_global_lookup): Use solib_ops instead of global
1832 current_target_so_ops.
1834 2007-10-24 Ulrich Weigand <uweigand@de.ibm.com>
1836 * config/frv/frv.mt (DEPRECATED_TM_FILE): Remove.
1837 * config/frv-tm-frv.h: Delete file.
1839 2007-10-24 Daniel Jacobowitz <dan@codesourcery.com>
1841 * NEWS: Mention gdbserver support for non-libthread_db operation.
1843 2007-10-24 Daniel Jacobowitz <dan@codesourcery.com>
1845 * amd64-tdep.c (amd64_convert_register_p): Delete.
1846 (amd64_init_abi): Use i387_convert_register_p.
1847 * alpha-tdep.c (alpha_convert_register_p): Return zero for
1849 (alpha_register_to_value, alpha_value_to_register): Do not handle
1851 * i386-tdep.c (i386_convert_register_p): Use i387_convert_register_p.
1852 * i387-tdep.c (i387_convert_register_p): New.
1853 (i387_register_to_value, i387_value_to_register): Update comments.
1854 * i387-tdep.h (i387_convert_register_p): Declare.
1855 * ia64-tdep.c (ia64_convert_register_p): Return zero for
1856 builtin_type_ia64_ext.
1857 (ia64_gdbarch_init): Do not initialize builtin_type_ia64_ext here.
1858 (_initialize_ia64_tdep): Initialize builtin_type_ia64_ext here.
1859 * m68k-tdep.c (m68k_convert_register_p): Return zero for
1860 builtin_type_m68881_ext.
1861 (m68k_register_to_value, m68k_value_to_register): Update comments.
1863 2007-10-24 Nathan Sidwell <nathan@codesourcery.com>
1865 * target-memory.c (claim_memory): Propagate baton for split memory
1868 2007-10-24 Pedro Alves <pedro_alves@portugalmail.pt>
1871 * sol-thread.c (sol_thread_fetch_registers): Work around gcc 3.4
1874 2007-10-24 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
1876 * symtab.c (find_line_symtab): scan through psymtabs
1877 when exact_match is zero.
1879 2007-10-23 Atsushi Nemoto <anemo@mba.ocn.ne.jp>
1881 * mips-tdep.c (LL_OPCODE, LLD_OPCODE, SC_OPCODE, SCD_OPCODE): Define.
1882 (deal_with_atomic_sequence): New.
1883 (mips_software_single_step): Use it.
1885 2007-10-23 Daniel Jacobowitz <dan@codesourcery.com>
1888 * configure.ac: Modify $LIBINTL before the BFD check.
1889 * configure: Regenerated.
1891 2007-10-23 Joel Brobecker <brobecker@adacore.com>
1893 * buildsym.c (free_pending_blocks): Remove commented-out code.
1894 (make_blockvector): Likewise. Re-use free_pending_blocks.
1895 (end_symtab): Remove commented-out code.
1897 2007-10-22 Daniel Jacobowitz <dan@codesourcery.com>
1899 * top.c (command_loop): Fix output for shrinkage.
1901 2007-10-22 Daniel Jacobowitz <dan@codesourcery.com>
1903 * cp-name-parser.y (exp1): Add & ( var ) as a reference expression.
1904 (exp): Remove and document function-like casts.
1906 2007-10-22 Daniel Jacobowitz <dan@codesourcery.com>
1908 * cp-support.c: Include "safe-ctype.h".
1909 (cp_already_canonical): New function.
1910 (cp_canonicalize_string): Use it. Return NULL for already canonical
1912 (mangled_name_to_comp): Update call to cp_demangled_name_to_comp.
1913 (cp_func_name, remove_params): Likewise.
1914 (cp_find_first_component_aux): Use ISSPACE.
1915 * cp-support.h (cp_demangled_name_to_comp): Correct comment. Remove
1917 * cp-name-parser.y (ALLOC_CHUNK): Define.
1918 (struct demangle_info): Add PREV and NEXT. Increase the size of
1920 (d_grab): Convert to a function.
1921 (allocate_info): Rewrite.
1922 (cp_demangled_name_to_comp): Remove MEMORY argument. Do not use
1923 strlen. Update call to allocate_info. Do not free it on failure.
1924 (main): Update calls to cp_demangled_name_to_comp.
1925 * Makefile.in (cp-support.o): Update.
1927 2007-10-22 Markus Deuling <deuling@de.ibm.com>
1929 * std-regs.c (value_of_builtin_frame_fp_reg)
1930 value_of_builtin_frame_pc_reg, value_of_builtin_frame_sp_reg)
1931 value_of_builtin_frame_ps_reg): Use get_frame_arch to get at the
1932 current architecture by frame_info.
1934 2007-10-22 Markus Deuling <deuling@de.ibm.com>
1936 * reggroups.c (default_register_reggroup_p): Replace current_gdbarch
1939 2007-10-22 Markus Deuling <deuling@de.ibm.com>
1941 * infcmd.c (default_print_registers_info, print_return_value)
1942 (print_vector_info, print_float_info): Replace current_gdbarch by
1944 (registers_info): Use get_frame_arch to get at the current
1945 architecture by frame_info.
1947 2007-10-22 Markus Deuling <deuling@de.ibm.com>
1949 * i387-tdep.c (i387_collect_fsave, i387_collect_fxsave): Use
1950 get_regcache_arch to get at the current architecture by regcache.
1952 2007-10-22 Markus Deuling <deuling@de.ibm.com>
1954 * target.c (debug_print_register): Use get_regcache_arch to get at the
1955 current architecture by regcache.
1957 2007-10-21 Daniel Jacobowitz <dan@codesourcery.com>
1959 * dwarf2read.c (read_file_scope): Add a comment.
1960 (dwarf2_add_field, dwarf2_add_member_fn, read_structure_type)
1961 (read_enumeration_type, process_enumeration_scope, read_array_type)
1962 (read_typedef, read_base_type, read_subrange_type)
1963 (read_unspecified_type): Use dwarf2_name.
1965 2007-10-21 Daniel Jacobowitz <dan@codesourcery.com>
1967 * coffread.c (coff_symfile_finish): Call dwarf2_free_objfile.
1968 * dwarf2read.c (dwarf2_free_objfile): New.
1969 * elfread.c (elf_symfile_finish): Call dwarf2_free_objfile.
1970 * symfile.h (dwarf2_free_objfile): Declare.
1972 2007-10-21 Joel Brobecker <brobecker@adacore.com>
1974 * hppa-hpux-nat.c (hppa_hpux_store_register): Add missing semi-colon.
1976 2007-10-21 Luis Machado <luisgpm@br.ibm.com>
1978 * rs6000-tdep.c (ppc_dwarf2_frame_init_reg): New function.
1979 * (rs6000_gdbarch_init): Install ppc_dwarf2_frame_init_reg as
1980 default dwarf2_frame_set_init_reg function.
1982 2007-10-21 Pedro Alves <pedro_alves@portugalmail.pt>
1984 * NEWS: Mention native MinGW configuration.
1986 2007-10-19 Ulrich Weigand <uweigand@de.ibm.com>
1988 * gdbarch.sh: Remove "macro" column of input table. Remove handling
1989 of "macro" column throughout the file. Remove (empty) "macro" entry
1990 of all gdbarch functions.
1992 2007-10-19 Ulrich Weigand <uweigand@de.ibm.com>
1994 * gdbarch.sh (sofun_address_maybe_missing): New gdbarch variable.
1995 * gdbarch.c, gdbarch.h: Regenerate.
1996 * dbxread.c (find_stab_function_addr): Define unconditionally.
1997 (read_dbx_symtab): Use gdbarch_sofun_address_maybe_missing
1998 instead of SOFUN_ADDRESS_MAYBE_MISSING.
1999 (end_psymtab): Likewise.
2000 (process_one_symbol): Likewise.
2001 * mdebugread.c (parse_partial_symbols): Likewise.
2003 * symtab.h (struct minimal_symbol): Always define "filename" member.
2004 * elfread.c (elf_symtab_read): Use msym->filename unconditionally.
2005 * minsyms.c (lookup_minimal_symbol): Likewise.
2006 * symmisc.c (dump_msymbols): Likewise.
2008 * config/i386/i386sol2.mt (DEPRECATED_TM_FILE): Remove.
2009 * config/i386/linux.mt (DEPRECATED_TM_FILE): Remove.
2010 * config/i386/tm-i386sol2.h: Remove file.
2011 * config/i386/tm-linux.h: Remove file.
2012 * i386-linux-tdep.c (i386_linux_init_abi): Add call to
2013 set_gdbarch_sofun_address_maybe_missing.
2014 * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
2016 * config/powerpc/linux.mt (DEPRECATED_TM_FILE): Remove.
2017 * config/powerpc/nbsd.mt (DEPRECATED_TM_FILE): Remove.
2018 * config/powerpc/obsd.mt (DEPRECATED_TM_FILE): Remove.
2019 * config/powerpc/ppc-eabi.mt (DEPRECATED_TM_FILE): Remove.
2020 * config/powerpc/ppc-sim.mt (DEPRECATED_TM_FILE): Remove.
2021 * config/powerpc/tm-ppc-eabi.h: Remove file.
2022 * rs6000-tdep.c (rs6000_gdbarch_init): Add call to
2023 set_gdbarch_sofun_address_maybe_missing.
2025 * config/sparc/sol2-64.mt (DEPRECATED_TM_FILE): Remove.
2026 * config/sparc/sol2.mt (DEPRECATED_TM_FILE): Remove.
2027 * config/sparc/tm-sol2.h: Remove file.
2028 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Add call to
2029 set_gdbarch_sofun_address_maybe_missing.
2030 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Likewise.
2032 2007-10-19 Ulrich Weigand <uweigand@de.ibm.com>
2034 * gdbarch.sh (static_transform_name): New gdbarch callback.
2035 * gdbarch.c, gdbarch.h: Regenerate.
2036 * dbxread.c (read_dbx_symtab): Use gdbarch_static_transform_name
2037 instead of STATIC_TRANSFORM_NAME.
2038 * mdebugread.c (parse_partial_symbols): Likewise.
2039 * stabsread.c (define_symbol): Likewise.
2040 * xcoffread.c (scan_xcoff_symtab): Likewise.
2042 * config/i368/tm-i386sol2.h (STATIC_TRANSFORM_NAME): Remove.
2043 (IS_STATIC_TRANSFORM_NAME): Remove.
2044 * i386-tdep.c (sunpro_static_transform_name): Remove, move to ...
2045 * i386-sol2-tdep.c (i386_sol2_static_transform_name): ... here.
2046 (i386_sol2_init_abi): Install it.
2048 * config/sparc/tm-sol2.h (STATIC_TRANSFORM_NAME): Remove.
2049 (IS_STATIC_TRANSFORM_NAME): Remove.
2050 * sparc-tdep.c (sparc_stabs_unglobalize_name): Remove, move to ...
2051 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): ... here.
2052 (sparc32_sol2_init_abi): Install it.
2053 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Likewise.
2054 * sparc-tdep.h (sparc_sol2_static_transform_name): Add prototype.
2056 2007-10-18 Daniel Jacobowitz <dan@codesourcery.com>
2058 * mips-tdep.c (mips_xfer_register): Take a gdbarch argument.
2059 (mips_n32n64_return_value, mips_o32_return_value)
2060 (mips_o64_return_value): Update calls to mips_xfer_register.
2062 2007-10-17 Daniel Jacobowitz <dan@codesourcery.com>
2064 * frame.c (frame_unwind_unsigned_register): Delete.
2065 (frame_sp_unwind): Use frame_unwind_register_unsigned instead.
2066 * frame.h (frame_unwind_unsigned_register): Delete prototype.
2068 * alpha-linux-tdep.c, alpha-mdebug-tdep.c, alpha-tdep.c,
2069 avr-tdep.c, cris-tdep.c, frv-tdep.c, m68hc11-tdep.c, mn10300-tdep.c,
2070 mt-tdep.c: Replace frame_unwind_unsigned_register with
2071 frame_unwind_register_unsigned.
2073 2007-10-16 Pedro Alves <pedro_alves@portugalmail.pt>
2075 * config/i386/mingw.mh, config/i386/mingw.mt: New files.
2076 * configure.tgt (i[34567]86-*-mingw32*): Set gdb_target = mingw.
2077 * win32-nat.c: Only include cygwin.h on Cygwin host. Don't
2079 (cygwin_load_start, cygwin_load_end, cygwin_exceptions): Disable
2080 if not building on Cygwin.
2081 (win32_make_so, handle_output_debug_string, handle_exception)
2082 (do_initial_win32_stuff): Wrap Cygwin specific code in __CYGWIN__.
2083 (win32_attach): Only fallback to Cygwin pids if building on
2085 (win32_pid_to_exec_file): Disable Cygwin specific code, if not
2087 (win32_create_inferior): Disable starting the inferior through a
2088 shell, environment var processing and tty handling if not building
2090 (cygwin_pid_to_str): Rename to ...
2091 (win32_pid_to_str): ... this.
2092 (init_win32_ops): Update use of win32_pid_to_str. Disable "shell"
2093 and "cygwin-exceptions" commands if not building on Cygwin.
2095 2007-10-16 Gaius Mulley <gaius@glam.ac.uk>
2097 * doc/gdb.texinfo: Add TSIZE definition, removed
2098 statement about unbounded arrays being unimplemented.
2099 * m2-valprint.c (m2_print_array_contents): New function.
2100 (m2_print_unbounded_array): New function.
2101 (m2_print_array_contents): New function.
2102 * m2-typeprint.c (m2_unbounded_array): New function.
2103 (m2_is_unbounded_array): New function.
2104 (m2_print_type): Test for unbounded array when walking
2106 * m2-lang.h: Added extern m2_is_unbounded_array.
2107 * m2-lang.c (evaluate_subexp_modula2): New function.
2108 (exp_descriptor_modula2): New structure.
2109 (m2_language_defn): Use exp_descriptor_modula2.
2110 * m2-exp.y: Added TSIZE and binary subscript.
2112 2007-10-16 Daniel Jacobowitz <dan@codesourcery.com>
2114 * mi/mi-main.c (captured_mi_execute_command): Clear mi_error_message
2117 2007-10-16 Kevin Buettner <kevinb@redhat.com>
2119 * m32r-tdep.c (decode_prologue): Sign extend offset for
2121 (m32r_frame_unwind_cache): Likewise.
2123 2007-10-15 Thiago Jung Bauermann <bauerman@br.ibm.com>
2125 * rs6000-tdep.c (skip_prologue): Restore comment with
2126 function description to its proper place.
2128 2007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
2130 * NEWS: Mention gdbserver PowerPC improvements.
2132 2007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
2134 * features/Makefile (WHICH): Add PowerPC register definitions.
2135 (rs6000/powerpc-32-expedite, rs6000/powerpc-e500-expedite)
2136 (rs6000/powerpc-64-expedite): New macros.
2137 ($(outdir)/%.dat): Handle subdirectories.
2138 * regformats/rs6000/powerpc-32.dat, regformats/rs6000/powerpc-64.dat,
2139 regformats/rs6000/powerpc-e500.dat: New generated files.
2141 2007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
2143 * ppc-linux-nat.c (ppc_linux_read_description): New.
2144 (_initialize_ppc_linux_nat): Set to_read_description.
2145 * ppc-tdep.h (tdesc_powerpc_e500): Declare.
2147 2007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
2149 * NEWS: Document target described register support for PowerPC.
2150 * ppc-tdep.h: Remove ppc_spr constants.
2151 (struct gdbarch_tdep): Remove regs, ppc_sr0_regnum, and
2152 ppc_builtin_type_vec128 members.
2153 (PPC_R0_REGNUM, PPC_F0_REGNUM, PPC_PC_REGNUM, PPC_MSR_REGNUM)
2154 (PPC_CR_REGNUM, PPC_LR_REGNUM, PPC_CTR_REGNUM, PPC_XER_REGNUM)
2155 (PPC_FPSCR_REGNUM, PPC_MQ_REGNUM, PPC_SPE_UPPER_GP0_REGNUM)
2156 (PPC_SPE_ACC_REGNUM, PPC_SPE_FSCR_REGNUM, PPC_VR0_REGNUM)
2157 (PPC_VSCR_REGNUM, PPC_VRSAVE_REGNUM, PPC_NUM_REGS): New constants.
2158 * rs6000-tdep.c: Include preparsed descriptions.
2159 (init_sim_regno_table): Do not iterate over pseudo registers.
2160 Look up segment registers by name. Use sim_spr_register_name
2162 (rs6000_register_sim_regno): Call init_sim_regno_table here.
2163 (rs6000_builtin_type_vec128): Delete.
2164 (rs6000_register_name): Only handle SPE pseudo registers and upper
2165 halves. Call tdesc_register_name for everything else.
2166 (rs6000_register_type): Delete. Replace with...
2167 (rs6000_pseudo_register_type): ...this new function. Only handle
2168 SPE pseudo registers.
2169 (rs6000_register_reggroup_p): Delete. Replace with...
2170 (rs6000_pseudo_register_reggroup_p): ...this new function. Only
2171 handle SPE pseudo registers.
2172 (rs6000_convert_register_p): Use ppc_fp0_regnum instead of
2174 (rs6000_register_to_value, rs6000_value_to_register): Remove check
2176 (e500_register_reggroup_p): Delete.
2177 (STR, R, R4, R8, R16, F, P8, R32, R64, R0, A4, S, S4, SN4, S64)
2178 (COMMON_UISA_REGS, PPC_UISA_SPRS, PPC_UISA_NOFP_SPRS)
2179 (PPC_SEGMENT_REGS, PPC_OEA_SPRS, PPC_ALTIVEC_REGS, PPC_SPE_GP_REGS)
2180 (PPC_SPE_UPPER_GP_REGS, PPC_EV_PSEUDO_REGS): Delete macros.
2181 (registers_powerpc, registers_403, registers_403GC, registers_505)
2182 (registers_860, registers_601, registers_602, registers_603)
2183 (registers_604, registers_750, registers_7400, registers_e500): Delete
2185 (struct variant): Delete nregs, npregs, num_tot_regs, and regs. Add
2187 (tot_num_registers, num_registers, num_pseudo_registers): Delete.
2188 (variants): Delete outdated comment. Use standard target descriptions
2189 instead of "struct reg" arrays.
2190 (init_variants): Delete.
2191 (rs6000_gdbarch_init): Do not guess word size from the BFD
2192 architecture if we have a target description. Select a variant
2193 before creating a new architecture. Use the variant's target
2194 description if the target did not define a register layout.
2195 Validate target-supplied registers. Reject mismatches. Use
2196 fixed register numbers and new constants instead of magic
2197 numbers. Call set_gdbarch_ps_regnum. Call tdesc_use_registers.
2198 (_initialize_rs6000_tdep): Initialize the preparsed target
2200 * target-descriptions.c (tdesc_predefined_types): Add int128 and
2202 (tdesc_find_register_early): New function.
2203 (tdesc_numbered_register): Use it.
2204 (tdesc_register_size): New function.
2205 (tdesc_use_registers): Take a target_desc argument. Do not use
2206 gdbarch_target_desc.
2207 * target-descriptions.h (tdesc_use_registers): Update prototype
2209 (tdesc_register_size): New prototype.
2210 * Makefile.in (powerpc_32_c, powerpc_403_c, powerpc_403gc_c)
2211 (powerpc_505_c, powerpc_601_c, powerpc_602_c, powerpc_603_c)
2212 (powerpc_604_c, powerpc_64_c, powerpc_7400_c, powerpc_750_c)
2213 (powerpc_860_c, powerpc_e500_c, rs6000_c): New macros.
2214 (rs6000-tdep.o): Update.
2215 * arm-tdep.c (arm_gdbarch_init): Update call to tdesc_use_registers.
2216 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
2217 * mips-tdep.c (mips_gdbarch_init): Likewise.
2219 2007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
2221 * features/rs6000/powerpc-32.c, features/rs6000/powerpc-403.c,
2222 features/rs6000/powerpc-403gc.c, features/rs6000/powerpc-505.c,
2223 features/rs6000/powerpc-601.c, features/rs6000/powerpc-602.c,
2224 features/rs6000/powerpc-603.c, features/rs6000/powerpc-604.c,
2225 features/rs6000/powerpc-64.c, features/rs6000/powerpc-7400.c,
2226 features/rs6000/powerpc-750.c, features/rs6000/powerpc-860.c,
2227 features/rs6000/powerpc-e500.c, features/rs6000/rs6000.c: New
2230 2007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
2232 * features/rs6000/power-altivec.xml, features/rs6000/power-core.xml,
2233 features/rs6000/power-fpu.xml, features/rs6000/power-oea.xml,
2234 features/rs6000/power-spe.xml, features/rs6000/power64-core.xml: New
2235 feature descriptions for standard PowerPC register sets.
2237 * features/rs6000/powerpc-32.xml, features/rs6000/powerpc-403.xml,
2238 features/rs6000/powerpc-403gc.xml, features/rs6000/powerpc-505.xml,
2239 features/rs6000/powerpc-601.xml, features/rs6000/powerpc-602.xml,
2240 features/rs6000/powerpc-603.xml, features/rs6000/powerpc-604.xml,
2241 features/rs6000/powerpc-64.xml, features/rs6000/powerpc-7400.xml,
2242 features/rs6000/powerpc-750.xml, features/rs6000/powerpc-860.xml,
2243 features/rs6000/powerpc-e500.xml, features/rs6000/rs6000.xml: New
2244 target descriptions for PowerPC processors.
2246 2007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
2248 * target-descriptions.c (tdesc_predefined_types): New.
2249 (tdesc_named_type): Use it.
2250 (tdesc_type_id, maint_print_c_tdesc_cmd): New functions.
2251 (_intialize_target_descriptions): Register "maint print c-tdesc".
2252 * features/Makefile (XMLTOC, CFILES, GDB): New macros.
2253 (cfiles, %.c): New rules.
2254 * features/arm-with-iwmmxt.c, features/mips-linux.c,
2255 features/mips64-linux.c: New generated files.
2257 * arm-linux-nat.c: Include preparsed description instead of
2259 (super_xfer_partial, arm_linux_xfer_partial): Remove.
2260 (arm_linux_read_description): New function.
2261 (_initialize_arm_linux_nat): Set to_read_description instead of
2262 to_xfer_partial. Initialize preparsed description.
2263 * config/arm/linux.mh (TDEP_XML): Delete.
2264 * mips-linux-nat.c: Include preparsed descriptions instead of
2266 (super_xfer_partial, mips_linux_xfer_partial): Remove.
2267 (mips_linux_read_description): New function.
2268 (_initialize_mips_linux_nat): Set to_read_description instead of
2269 to_xfer_partial. Initialize preparsed description.
2270 * config/mips/linux.mh (TDEP_XML): Delete.
2271 * Makefile.in (XMLFILES): Remove $(TDEP_XML).
2272 (features_headers, arm_with_iwmmxt_c, mips_linux_c)
2273 (mips64_linux_c): New macros.
2274 (arm-linux-nat.o, mips-linux-nat.o): Update.
2276 2007-10-15 Pierre Muller <muller@ics.u-strasbg.fr>
2278 * cp-abi.c (set_cp_abi_as_auto_default): ARI fix:
2279 Replace xasprintf by xstrprintf.
2280 symfile-mem.c (add_vsyscall_page): Ditto.
2282 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
2284 * ia64-linux-nat.c (ia64_register_addr): Add gdbarch parameter,
2285 replacing use of global current_gdbarch.
2286 (ia64_cannot_fetch_register, ia64_cannot_store_register): Likewise.
2287 (ia64_linux_fetch_register, ia64_linux_store_register): Update callers.
2289 * ia64-tdep.c (SIGCONTEXT_REGISTER_ADDRESS): Remove macro.
2290 (ia64_sigtramp_frame_init_saved_regs): Add next_frame parameter,
2291 replace uses of SIGCONTEXT_REGISTER_ADDRESS.
2292 (ia64_sigtramp_frame_cache): Update caller.
2294 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
2296 * gdbarch.sh (deprecated_use_struct_convention): Remove.
2297 (extract_return_value, store_return_value): Remove.
2298 (return_value): Remove default implementation.
2299 * gdbarch.c, gdbarch.h: Regenerate.
2301 * stack.c (return_command): Remove compatibility hack.
2302 * arch-utils.c (legacy_return_value): Remove.
2303 * arch-utils.h (legacy_return_value): Likewise.
2305 * arch-utils.c (always_use_struct_convention): Remove.
2306 * arch-utils.h (always_use_struct_convention): Likewise.
2307 * value.c (generic_use_struct_convention): Remove.
2308 * defs.h (generic_use_struct_convention): Likewise.
2310 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
2312 * avr-tdep.c (avr_return_value): New function.
2313 (avr_gdbarch_init): Call set_gdbarch_return_value instead of
2314 set_gdbarch_extract_return_value.
2316 * fvr-tdep.c (frv_return_value): New function.
2317 (frv_gdbarch_init): Call set_gdbarch_return_value instead of
2318 set_gdbarch_extract_return_value, set_gdbarch_store_return_value,
2319 and set_gdbarch_deprecated_use_struct_convention.
2321 * ia64-tdep.c (ia64_use_struct_convention): Make static.
2322 Add check for structure, union, or array types.
2323 (ia64_extract_return_value): Make static.
2324 (ia64_store_return_value): Make static. Support multi-word values.
2325 (ia64_return_value): New function.
2326 (ia64_gdbarch_init): Call set_gdbarch_return_value instead of
2327 set_gdbarch_extract_return_value, set_gdbarch_store_return_value,
2328 and set_gdbarch_deprecated_use_struct_convention.
2330 2007-10-12 Joel Brobecker <brobecker@adacore.com>
2332 * solib-target.c (solib_target_parse_libraries)
2333 [HAVEHAVE_LIBEXPAT not defined]: Fix thinko in return type.
2335 2007-10-12 Jim Blandy <jimb@codesourcery.com>
2337 * serial.h (struct serial_ops): Document read_prim to return zero
2339 * ser-base.c (do_ser_base_readchar): Return SERIAL_EOF when
2340 read_prim returns zero, not SERIAL_TIMEOUT.
2342 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
2344 * alpha-mdebug-tdep.c: Include "gdb_string.h".
2345 (find_proc_desc): Add fix-up code for setjmp procedure descriptor.
2346 * mdebugread.c (parse_procedure): Remove setjmp fix-up code.
2347 * Makefile.in (alpha-mdebug-tdep.o): Update dependencies.
2349 * config/alpha/alpha.mt (DEPRECATED_TM_FILE): Remove.
2350 * config/alpha/alpha-linux.mt (DEPRECATED_TM_FILE): Remove.
2351 * config/alpha/alpha-osf1.mt (DEPRECATED_TM_FILE): Remove.
2352 * config/alpha/fbsd.mt (DEPRECATED_TM_FILE): Remove.
2353 * config/alpha/tm-alpha.h: Remove file.
2355 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
2357 * breakpoint.c (breakpoint_sals_to_pc): Do not check for
2358 DEPRECATED_PC_REQUIRES_RUN_BEFORE_USE.
2360 * config/pa/tm-hppa.h: Delete file.
2361 * config/pa/hppa64.mt: Do not set DEPRECATED_TM_FILE.
2362 * config/pa/hppahpux.mt: Likewise.
2363 * config/pa/hppa.mt: Likewise.
2364 * config/pa/linux.mt: Likewise.
2365 * hppa-tdep.c (hppa_pc_requires_run_before_use): Delete.
2367 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
2369 * config/arm/nm-nbsdaout.h: Remove file.
2370 * config/nm-nbsdaout.h: Likewise.
2371 * config/nm-nbsd.h: Likewise.
2373 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
2375 * block.h (struct block): Remove "gcc_compile_flag" member.
2376 (BLOCK_GCC_COMPILED): Remove.
2377 * block.c (allocate_block): Do not clear BLOCK_GCC_COMPILED.
2378 * buildsym.c (finish_block): Do not set it.
2379 * symmisc.c (dump_symtab_1): Do not dump it.
2381 * value.h (using_struct_return): Remove "gcc_p" argument.
2382 * value.c (using_struct_return): Likewise.
2383 * eval.c (evaluate_subexp_standard): Adapt callers.
2384 * infcall.c (call_function_by_hand): Likewise.
2385 * stack.c (return_command): Likewise.
2386 * sparc-tdep.c (sparc32_push_dummy_code): Likewise.
2388 * gdbarch.sh (push_dummy_code): Remove "using_gcc" parameter.
2389 * gdbarch.c, gdbarch.h: Regenerate.
2390 * cris-tdep.c (cris_push_dummy_code): Adapt prototype.
2391 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Likewise.
2392 * sparc-tdep.c (sparc32_push_dummy_code): Likewise.
2393 * infcall.c (generic_push_dummy_code, push_dummy_code): Likewise.
2394 (push_dummy_code, call_function_by_hand): Adapt callers.
2396 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
2398 * infcmd.c (print_return_value): Remove STRUCT_RETURN argument.
2399 (finish_command_continuation, finish_command): Adapt callers.
2401 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
2403 * infcall.c (call_function_by_hand): Remove special handling
2404 for HP aCC compiled code.
2406 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
2408 * cris-tdep.c (cris_push_dummy_call): Support arguments passed by
2409 reference. Fix endianness bugs.
2410 (cris_reg_struct_has_address): Remove.
2411 (cris_gdbarch_init): Remove set_gdbarch_deprecated_reg_struct_has_addr
2412 and set_gdbarch_deprecated_use_struct_convention calls.
2414 * gdbarch.sh (deprecated_reg_struct_has_addr): Remove.
2415 * gdbarch.c, gdbarch.h: Regenerate.
2416 * infcall.c (call_function_by_hand): Remove handling of
2417 deprecated_reg_struct_has_addr.
2419 2007-10-11 Daniel Jacobowitz <dan@codesourcery.com>
2420 Kazu Hirata <kazu@codesourcery.com>
2422 * breakpoint.c (do_enable_breakpoint): Delay enabling until after
2423 checking watchpoint resources.
2425 2007-10-11 Kazu Hirata <kazu@codesourcery.com>
2427 * memattr.c (inaccessible_by_default): Change the initial
2430 2007-10-11 Daniel Jacobowitz <dan@codesourcery.com>
2433 * coffread.c (read_one_sym): Check for read errors.
2435 2007-10-11 Ulrich Weigand <uweigand@de.ibm.com>
2437 * linux-nat.c (lin_lwp_attach_lwp): Use "Linux kernel 2.6.19"
2438 instead of "Linux 2.6.19" in comment.
2439 (linux_xfer_partial): Use "GNU/Linux target" instead of
2440 "Linux target" in comment.
2441 * m68klinux-tdep.c (m68k_linux_inferior_created): Likewise.
2442 (m68k_linux_get_sigtramp_info): Likewise.
2444 2007-10-11 Daniel Jacobowitz <dan@codesourcery.com>
2446 * MAINTAINERS (language support): List Joel and Paul as
2449 2007-10-11 Daniel Jacobowitz <dan@codesourcery.com>
2451 * dbxread.c (process_one_symbol): Remove VARIABLES_INSIDE_BLOCK
2453 * config/arm/embed.mt, config/arm/linux.mt, config/arm/wince.mt: Do
2454 not set DEPRECATED_TM_FILE.
2455 * config/arm/tm-arm.h: Delete file.
2457 2007-10-11 Luis Machado <luisgpm@br.ibm.com>
2459 * MAINTAINERS (Write After Approval): Add self.
2461 2007-10-11 Daniel Jacobowitz <dan@codesourcery.com>
2463 * buildsym.c (record_line): Remove empty lines followed by
2464 end-of-sequence markers.
2466 2007-10-11 Kazu Hirata <kazu@codesourcery.com>
2468 * configure.tgt: Recognize fido-*-elf.
2470 2007-10-10 Joel Brobecker <brobecker@adacore.com>
2474 2007-10-10 Markus Deuling <deuling@de.ibm.com>
2476 * stack.c (print_frame_args, frame_info, return_command): Use
2477 get_regcache_arch or get_frame_arch to get at the current architecture
2478 by regcache or by frame, respectively.
2480 2007-10-10 Markus Deuling <deuling@de.ibm.com>
2482 * rs6000-nat.c (fetch_register, store_register)
2483 (rs6000_fetch_inferior_registers, rs6000_store_inferior_registers): Use
2484 get_regcache_arch to get at the current architecture by regcache.
2486 * rs6000-tdep.c (rs6000_push_dummy_call, rs6000_return_value)
2487 (rs6000_register_reggroup_p, e500_move_ev_registe, rs6000_unwind_pc)
2488 (rs6000_unwind_dummy_id, rs6000_frame_cache, rs6000_dump_tdep): Replace
2489 current_gdbarch by gdbarch.
2490 (rs6000_skip_trampoline_code, rs6000_register_to_value)
2491 (rs6000_value_to_register): Use get_frame_arch to get at the current
2492 architecture by frame_info.
2494 2007-10-10 Markus Deuling <deuling@de.ibm.com>
2496 * sparc-tdep.c (sparc_supply_rwindow, sparc_collect_rwindow): Use
2497 get_regcache_arch to get at the current architecture by regcache.
2499 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
2500 (sparc64_supply_fpregset, sparc64_collect_fpregset): Use
2501 get_regcache_arch to get at the current architecture by regcache.
2503 * sparc64nbsd-nat. (sparc64nbsd_supply_gregset)
2504 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
2505 (sparc64nbsd_collect_fpregset): Use get_regcache_arch to get at the
2506 current architecture by regcache.
2508 2007-10-10 Markus Deuling <deuling@de.ibm.com>
2510 * remote-mips.c (mips_wait, mips_fetch_registers)
2511 (mips_store_registers): Use get_regcache_arch to get at the
2512 current architecture by regcache.
2514 * mipsnbsd-tdep.c (mipsnbsd_supply_reg, mipsnbsd_fill_reg)
2515 (mipsnbsd_supply_fpreg, mipsnbsd_fill_fpreg): Use get_regcache_arch to
2516 get at the current architecture by regcache.
2517 (mipsnbsd_sigtramp_offset): Use get_frame_arch to get at the current
2518 architecture by frame_info.
2520 * mipsnbsd-nat.c (mipsnbsd_fetch_inferior_registers)
2521 (mipsnbsd_store_inferior_registers): Use get_regcache_arch to get at
2522 the current architecture by regcache.
2524 * mips-linux-tdep.c (mips_linux_get_longjmp_target)
2525 (mips64_linux_get_longjmp_target, mips_linux_o32_sigframe_init)
2526 (mips_linux_n32n64_sigframe_init): Use get_frame_arch to get at the
2527 current architecture by frame_info.
2528 (supply_32bit_reg, mips_supply_gregset, mips_fill_gregset)
2529 (mips_supply_fpregset, mips_fill_fpregset, supply_64bit_reg)
2530 (mips64_supply_gregset, mips64_fill_gregset, mips64_supply_fpregset)
2531 (mips64_fill_fpregset, mips_linux_write_pc): Use get_regcache_arch to
2532 get at the current architecture by regcache.
2534 * mips-linux-nat.c (mips_linux_register_addr)
2535 (mips64_linux_register_addr): Replace current_gdbarch by gdbarch.
2536 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset)
2537 (mips64_linux_regsets_fetch_registers)
2538 (mips64_linux_regsets_store_registers): Use get_regcache_arch to get at
2539 the current architecture by regcache.
2541 * mips64obsd-tdep.c (mips64obsd_sigframe_init): Use get_frame_arch to
2542 get at the current architecture by frame_info.
2544 2007-10-10 Markus Deuling <deuling@de.ibm.com>
2546 * mips-tdep.c (mips_xfer_register): Use get_regcache_arch to get at the
2547 current architecture by regcache.
2548 (mips2_fp_compat, mips32_next_pc, mips16_scan_prologue)
2549 (mips_insn16_frame_cache, mips32_scan_prologue, mips_insn32_frame_cache)
2550 (mips_stub_frame_cache, mips_read_fp_register_single)
2551 (mips_read_fp_register_double, mips_print_fp_register)
2552 (mips_print_register, print_gp_register_row): Use get_frame_arch to get
2553 at the current architecture by frame_info.
2554 (mips_register_reggroup_p, mips_pseudo_register_read, mips_unwind_sp)
2555 (mips_pseudo_register_write, mips_register_type, mips_unwind_pc)
2556 (mips_unwind_dummy_id, mips_eabi_push_dummy_call)
2557 (mips_n32n64_push_dummy_call, mips_n32n64_return_value)
2558 (mips_o32_push_dummy_call, mips_o32_return_value)
2559 (mips_o64_push_dummy_call, mips_o64_return_value)
2560 (mips_print_registers_info, mips_dump_tdep): Replace current_gdbarch by
2563 2007-10-10 Markus Deuling <deuling@de.ibm.com>
2565 * xtensa-tdep.c (xtensa_register_type, xtensa_pseudo_register_read)
2566 (xtensa_pseudo_register_write, xtensa_register_reggroup_p)
2567 (xtensa_unwind_pc, xtensa_unwind_dummy_id, xtensa_push_dummy_call)
2568 (xtensa_dump_tdep): Replace current_gdbarch by gdbarch.
2569 (xtensa_register_write_masked, xtensa_register_read_masked)
2570 (xtensa_supply_gregset, xtensa_store_return_value)
2571 (xtensa_extract_return_value): Use get_regcache_arch to get at the
2572 current architecture by regcache.
2573 (xtensa_frame_cache, call0_frame_get_reg_at_entry, call0_frame_cache)
2574 (xtensa_frame_prev_register): Use get_frame_arch to get at the current
2575 architecture by frame_info.
2577 2007-10-10 Daniel Jacobowitz <dan@codesourcery.com>
2579 * arm-tdep.c (struct arm_prologue_cache): Remove frameoffset.
2580 (thumb_analyze_prologue): Move pv_area_store_would_trash call
2581 out of loop. Do not set cache->frameoffset.
2582 (arm_scan_prologue): Use prologue-value mechanism. Do not set
2583 frameoffset. Simplify framesize.
2584 (arm_make_prologue_cache, arm_normal_frame_base): Do not use
2586 * arm-tdep.h (enum gdb_regnum): Add ARM_IP_REGNUM.
2588 2007-10-10 Daniel Jacobowitz <dan@codesourcery.com>
2590 * target.c (update_current_target): Call setup_target_debug.
2591 (push_target): Do not call it here.
2593 2007-10-09 Michael Snyder <msnyder@specifix.com>
2595 * MAINTAINERS: Update my email address.
2597 2007-10-09 Markus Deuling <deuling@de.ibm.com>
2599 * xtensa-tdep.c: Replace following current-gdbarch based macros by
2601 (xtensa_pseudo_register_read)
2602 (xtensa_pseudo_register_write): XTENSA_TARGET_FLAGS.
2603 (ARG_NOF, ARG_1ST, xtensa_extract_return_value)
2604 (xtensa_store_return_value, xtensa_push_dummy_call): CALL_ABI.
2605 (xtensa_pseudo_register_read)
2606 (xtensa_pseudo_register_write): ISA_USE_WINDOWED_REGISTERS.
2607 (xtensa_breakpoint_from_pc): ISA_USE_DENSITY_INSTRUCTIONS.
2608 (xtensa_register_type, xtensa_supply_gregset, xtensa_frame_cache)
2609 (xtensa_frame_prev_register): NUM_AREGS.
2610 (xtensa_pseudo_register_read, xtensa_pseudo_register_write,
2611 (xtensa_supply_gregset, xtensa_frame_cache, xtensa_frame_prev_register,
2612 (xtensa_extract_return_value, xtensa_store_return_value): WB_REGNUM.
2613 (xtensa_supply_gregset, xtensa_frame_cache)
2614 (xtensa_frame_prev_register): WS_REGNUM.
2615 (xtensa_supply_gregset): LBEG_REGNUM, LEND_REGNUM, LCOUNT_REGNUM,
2616 SAR_REGNUM, EXCCAUSE_REGNUM, EXCVADDR_REGNUM
2617 (xtensa_register_name, xtensa_register_type, xtensa_reg_to_regnum)
2618 (xtensa_pseudo_register_read, xtensa_pseudo_register_write)
2619 (xtensa_register_reggroup_p): REGMAP.
2620 (call0_track_op): LITBASE_REGNUM.
2621 (xtensa_register_type, xtensa_reg_to_regnum, call0_frame_cache):A0_BASE
2622 (xtensa_supply_gregset, call0_frame_get_reg_at_entry)
2623 (xtensa_frame_prev_register, AREG_NUMBER)
2624 (xtensa_register_type): AR_BASE.
2625 (xtensa_pseudo_register_read, xtensa_pseudo_register_write): FP_ALIAS.
2626 (AREG_NUMBER): AREGS_MASK, WB_MASK, A0_REGNUM.
2627 (ARG_1ST, xtensa_pseudo_register_read, xtensa_pseudo_register_write)
2628 (xtensa_frame_cache, xtensa_frame_prev_register)
2629 (xtensa_extract_return_value, xtensa_store_return_value)
2630 (xtensa_push_dummy_call, call0_frame_cache): A0_REGNUM.
2631 (xtensa_register_type, xtensa_pseudo_register_read, xtensa_frame_cache)
2632 (xtensa_pseudo_register_write, xtensa_unwind_dummy_id)
2633 (xtensa_frame_prev_register, xtensa_push_dummy_call)
2634 (call0_frame_cache): A1_REGNUM.
2635 (xtensa_extract_return_value, xtensa_store_return_value): A2_REGNUM.
2636 (xtensa_push_dummy_call): A4_REGNUM.
2637 (ARGS_FIRST_REG): A6_REGNUM.
2638 (xtensa_pseudo_register_read, xtensa_pseudo_register_write)
2639 (xtensa_frame_prev_register): A15_REGNUM.
2640 * xtensa-tdep.h: Delete current_gdbarch based macros after replacing
2641 them in the appropriate source file:
2642 XTENSA_TARGET_FLAGS, SPILL_LOCATION, SPILL_SIZE, CALL_ABI, NUM_AREGS,
2643 ISA_USE_WINDOWED_REGISTERS, ISA_USE_DENSITY_INSTRUCTIONS, WB_REGNUM,
2644 ISA_USE_EXCEPTIONS, ISA_USE_EXT_L32R, DEBUG_DATA_VADDR_TRAP_COUNT,
2645 DEBUG_INST_VADDR_TRAP_COUNT, ISA_MAX_INSN_SIZE, DEBUG_NUM_IBREAKS,
2646 DEBUG_NUM_DBREAKS, WS_REGNUM, LBEG_REGNUM, LEND_REGNUM, SAR_REGNUM,
2647 REGMAP, LITBASE_REGNUM, DEBUGCAUSE_REGNUM, EXCCAUSE_REGNUM, AR_BASE,
2648 EXCVADDR_REGNUM, NUM_IBREAKS, REGMAP_BYTES, NUM_CONTEXTS, FP_ALIAS,
2649 FP_LAYOUT, FP_LAYOUT_BYTES, GREGMAP, AREGS_MASK, WB_MASK, A0_REGNUM,
2650 A1_REGNUM, A2_REGNUM, A3_REGNUM, A4_REGNUM, A5_REGNUM, A6_REGNUM,
2651 A7_REGNUM, A8_REGNUM, A9_REGNUM, A10_REGNUM, A11_REGNUM, A12_REGNUM,
2652 A13_REGNUM, A14_REGNUM, A15_REGNUM.
2654 2007-10-09 Markus Deuling <deuling@de.ibm.com>
2656 * h8300-tdep.c (h8300_frame_cache): Use get_frame_arch to get at
2657 the current architecture by frame_info.
2658 (h8300_frame_prev_register
2659 (h8300_print_register): Replace current_gdbarch by gdbarch.
2660 (h8300_print_registers_info, h8300_register_type)
2661 (h8300_register_type): Likewise.
2663 2007-10-09 Markus Deuling <deuling@de.ibm.com>
2665 * i386-linux-nat.c (fetch_register): Use get_regcache_arch to get at
2666 the current architecture by regcache.
2667 (store_register, supply_gregset, fill_gregset, i386_linux_resume)
2668 (i386_linux_fetch_inferior_registers)
2669 (i386_linux_store_inferior_registers): Likewise.
2670 * i386gnu-nat.c (gnu_fetch_registers, gnu_store_registers): Likewise.
2671 * i386-nto-tdep.c (i386nto_supply_gregset): Likewise.
2672 * i386v4-nat.c (supply_fpregset, fill_fpregset): Likewise.
2673 * i386-tdep.c (i386_unwind_pc): Replace current_gdbarch by gdbarch.
2674 (i386_extract_return_value, i386_store_return_value): Likewise.
2675 * i386-tdep.c (i386_frame_prev_register): Use get_frame_arch to get at
2676 the current architecture by frame_info.
2677 (i386_sigtramp_frame_cache, i386_get_longjmp_target)
2678 (i386_register_to_value, i386_value_to_register): Likewise.
2680 2007-10-09 Markus Deuling <deuling@de.ibm.com>
2682 * monitor.c (monitor_supply_register): Use get_regcache_arch to get at
2683 the current architecture by regcache.
2684 (monitor_store_register, monitor_store_registers): Likewise.
2686 2007-10-09 Markus Deuling <deuling@de.ibm.com>
2688 * dbug-rom.c (dbug_supply_register): Use get_regcache_arch to get at
2689 the current architecture by regcache.
2691 2007-10-09 Markus Deuling <deuling@de.ibm.com>
2693 * arch-utils.c (legacy_return_value): Replace current_gdbarch by
2696 2007-10-09 Markus Deuling <deuling@de.ibm.com>
2698 * frame.c (frame_pc_unwind): Use get_frame_arch to get at the current
2699 architecture by frame.
2700 (frame_save_as_regcache, frame_register_unwind, get_prev_frame_1)
2701 (inside_main_func, frame_sp_unwind): Likewise.
2703 2007-10-09 Daniel Jacobowitz <dan@codesourcery.com>
2705 * solib-svr4.c (enable_break): Add the dynamic linker also if
2708 2007-10-09 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
2710 * MAINTAINERS (Write After Approval): Add self.
2712 2007-10-09 Pedro Alves <pedro_alves@portugalmail.pt>
2714 * stabsread.c (read_huge_number): Initialize local variable to 0.
2716 2007-10-09 Pierre Muller <muller@ics.u-strasbg.fr>
2718 * p-lang.h (pascal_main_name): Add declaration.
2719 * p-lang.c (GPC_P_INITIALIZE, GPC_MAIN_PROGRAM_NAME_1)
2720 (GPC_MAIN_PROGRAM_NAME_2): New constants.
2721 (pascal_main_name): New function.
2722 * symtab.c: Include p-lang.h.
2723 (find_main_name): Add call to pascal_main_name.
2724 * Makefile.in (symtab.o): Add dependency on p-lang.h.
2726 2007-10-09 Pedro Alves <pedro_alves@portugalmail.pt>
2728 * stabsread.c (read_huge_number): Fix handling of octal
2729 representation when the bit width is known.
2730 (read_range_type): Record unsigned integral types with their size,
2731 when the type size is known.
2733 2007-10-08 Thiago Jung Bauermann <bauerman@br.ibm.com>
2735 * MAINTAINERS (Write After Approval): Add self.
2737 2007-10-08 Pierre Muller <muller@ics.u-strasbg.fr>
2739 * breakpoint.c (print_one_breakpoint_location): ARI fix:
2740 Replace asprintf by xstrprintf.
2742 2007-10-08 Pierre Muller <muller@ics.u-strasbg.fr>
2744 * linux-fork.c: ARI fix: include "gdb_dirent.h" instead of <dirent.h>.
2745 Makefile.in (linux-fork.o): Add gdb_dirent.h dependency.
2747 2007-10-08 Pierre Muller <muller@ics.u-strasbg.fr>
2749 * linux-fork.c: Move "gdb_wait.h" include back to the position of
2750 <sys/wait.h> include before last commit.
2752 2007-10-08 Maciej W. Rozycki <macro@mips.com>
2754 * mips-tdep.c (mips32_next_pc): Fix a typo in BGTZL.
2756 2007-10-08 Markus Deuling <deuling@de.ibm.com>
2758 * aix-thread.c (supply_gprs64, supply_fprs, supply_sprs64)
2759 (supply_sprs32, fetch_regs_user_thread, fetch_regs_kernel_thread)
2760 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs64, fill_sprs32)
2761 (store_regs_user_thread, store_regs_kernel_thread): Use
2762 get_regcache_arch or get_frame_arch to get at the current architecture
2763 by regcache or by frame, respectively.
2765 2007-10-08 Markus Deuling <deuling@de.ibm.com>
2767 * sh64-tdep.c (sh64_push_dummy_call, sh64_register_type)
2768 (sh64_pseudo_register_read, sh64_pseudo_register_write)
2769 (sh64_do_fp_register, sh64_do_pseudo_register, sh64_do_register)
2770 (sh64_print_register, sh64_media_print_registers_info)
2771 (sh64_compact_print_registers_info, sh64_unwind_sp)
2772 (sh64_unwind_pc): Replace current_gdbarch by gdbarch.
2773 (sh64_show_media_regs, sh64_show_compact_regs, sh64_frame_cache)
2774 (sh64_frame_prev_register): Use FRAME to recognize current
2777 2007-10-08 Markus Deuling <deuling@de.ibm.com>
2779 * sh-tdep.c (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu)
2780 (sh_sh2a_register_type, sh_sh3e_register_type, sh_sh4_register_type)
2781 (sh_register_reggroup_p, sh_dwarf2_frame_init_reg): Replace
2782 current_gdbarch by gdbarch.
2783 (sh_generic_show_regs, sh3_show_reg, sh2e_show_regs, sh2a_show_regs)
2784 (sh2a_nofpu_show_regs, sh3e_show_regs, sh3_dsp_show_regs)
2785 (sh4_show_regs, sh4_nofpu_show_regs, sh_dsp_show_regs, sh_frame_cache)
2786 (sh_frame_prev_register, sh_unwind_sp, sh_unwind_pc): Use FRAME to
2787 recognize current architecture.
2789 2007-10-08 Markus Deuling <deuling@de.ibm.com>
2791 * remote.c (init_remote_state, fetch_register_using_p)
2792 (process_g_packet, remote_fetch_registers, remote_prepare_to_store)
2793 (store_register_using_P, store_registers_using_G)
2794 (remote_store_registers): Use get_regcache_arch or get_frame_arch to
2795 get at the current architecture by regcache or by frame, respectively.
2797 2007-10-08 Markus Deuling <deuling@de.ibm.com>
2799 * m68k-tdep.c (m68k_register_to_value, m68k_value_to_register)
2800 (m68k_svr4_extract_return_value, m68k_svr4_store_return_value)
2801 (m68k_frame_prev_register, m68k_get_longjmp_target): Use
2802 get_regcache_arch or get_frame_arch to get at the current architecture
2803 by regcache or by frame, respectively.
2804 * m68klinux-tdep.c (m68k_linux_sigtramp_frame_cache): Likewise.
2805 * m68klinux-nat.c (fetch_register, old_fetch_inferior_registers)
2806 (store_register, old_store_inferior_registers, supply_gregset)
2807 (supply_fpregset, fill_fpregset): Likewise.
2808 * m68k-tdep.c (m68k_register_type, m68k_unwind_pc, m68k_dump_tdep):
2809 Replace current_gdbarch by gdbarch.
2811 2007-10-08 Markus Deuling <deuling@de.ibm.com>
2813 * irix5-nat.c (supply_gregset, fill_gregset, supply_fpregset)
2814 (fill_fpregset, fetch_core_registers): Use get_regcache_arch or
2815 get_frame_arch to get at the current architecture by regcache or by
2816 frame, respectively.
2818 2007-10-08 Markus Deuling <deuling@de.ibm.com>
2820 * ia64-tdep.c (ia64_pseudo_register_read, ia64_pseudo_register_write):
2821 Replace current_gdbarch by gdbarch.
2822 * ia64-tdep.c (ia64_frame_prev_register
2823 (ia64_sigtramp_frame_prev_register)
2824 (ia64_libunwind_frame_prev_register): Use get_regcache_arch or
2825 get_frame_arch to get at the current architecture by regcache or by
2826 frame, respectively.
2827 * ia64-linux-nat.c (ia64_linux_fetch_register)
2828 (ia64_linux_fetch_registers, ia64_linux_store_register)
2829 (ia64_linux_store_registers): Likewise.
2831 2007-10-08 Markus Deuling <deuling@de.ibm.com>
2833 * hppa-tdep.c (hppa_stub_unwind_sniffer, hppa_dump_tdep): Replace
2834 current_gdbarch by gdbarch.
2835 * hppa-linux-nat.c (fetch_register, store_register)
2836 (hppa_linux_fetch_inferior_registers)
2837 (hppa_linux_store_inferior_registers): Use get_regcache_arch or
2838 get_frame_arch to get at the current architecture by regcache or by
2839 frame, respectively.
2840 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code
2841 (hppa_hpux_unwind_adjust_stub): Likewise.
2842 * hppa-hpux-nat.c (hppa_hpux_fetch_register, hppa_hpux_store_register)
2843 (hppa_hpux_fetch_inferior_registers)
2844 (hppa_hpux_store_inferior_registers): Likewise.
2846 2007-10-08 Markus Deuling <deuling@de.ibm.com>
2848 * cris-tdep.c (cris_sigcontext_addr, cris_sigtramp_frame_unwind_cache)
2849 (cris_scan_prologue, crisv32_scan_prologue, find_step_target)
2850 (cris_software_single_step, cris_supply_gregset): Use get_regcache_arch
2851 or get_frame_arch to get at the current architecture by regcache or by
2852 frame, respectively.
2853 * cris-tdep.c (crisv32_single_step_through_delay, cris_push_dummy_call)
2854 (cris_unwind_pc, cris_unwind_sp, cris_register_type, cris_dump_tdep)
2855 (crisv32_register_type, cris_dwarf2_frame_init_reg): Replace
2856 current_gdbarch by gdbarch.
2858 2007-10-08 Markus Deuling <deuling@de.ibm.com>
2860 * arm-tdep.c (arm_scan_prologue, arm_make_prologue_cache)
2861 (thumb_get_next_pc, arm_get_next_pc, arm_extract_return_value)
2862 (arm_store_return_value): Use get_regcache_arch or get_frame_arch to
2863 get at the current architecture by regcache or by·frame, respectively.
2864 (arm_push_dummy_call, arm_dump_tdep): Replace current_gdbarch by
2867 2007-10-08 Markus Deuling <deuling@de.ibm.com>
2869 * amd64-tdep.c (amd64_frame_prev_register, amd64_sigtramp_frame_cache):
2870 Use get_regcache_arch or get_frame_arch to get at the current
2871 architecture by regcache or by frame, respectively.
2872 * amd64-linux-tdep.c (amd64_linux_sigcontext_addr): Likewise.
2873 * amd64-nat.c (amd64_supply_native_gregset)
2874 (amd64_collect_native_gregset): Replace current_gdbarch by gdbarch.
2876 2007-10-08 Markus Deuling <deuling@de.ibm.com>
2878 * alpha-tdep.c (alpha_register_reggroup_p): Replace current_gdbarch by
2880 * alpha-linux-nat.c (alpha_linux_register_u_offset): Likewise.
2881 (alpha_sigtramp_frame_unwind_cache, alpha_sigtramp_frame_this_id)
2882 (alpha_sigtramp_frame_sniffer, alpha_next_pc): Use get_regcache_arch or
2883 get_frame_arch to get at the current architecture by regcache or by
2884 frame, respectively.
2885 * alpha-nat.c (fetch_osf_core_registers): Likewise.
2887 2007-10-08 Markus Deuling <deuling@de.ibm.com>
2889 * dwarf2-frame.c (read_reg, execute_cfa_program, dwarf2_frame_cache)
2890 (dwarf2_frame_default_init_reg, dwarf2_frame_prev_register): Replace
2891 current_gdbarch by gdbarch.
2892 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Likewise.
2894 2007-10-08 Markus Deuling <deuling@de.ibm.com>
2896 * regcache.c (init_regcache_descr, register_type, read_pc_pid)
2897 (write_pc_pid, regcache_dump): Replace current_gdbarch by gdbarch.
2898 * regcache.c (regcache_raw_write): Use get_regcache_arch or
2899 get_frame_arch to get at the current architecture by regcache or by
2900 frame, respectively.
2902 2007-10-08 Markus Deuling <deuling@de.ibm.com>
2904 * findvar.c (value_of_register, locate_var_value): Use
2905 get_regcache_arch or get_frame_arch to get at the current architecture
2906 by regcache or by frame, respectively.
2907 * findvar.c (default_value_from_register, value_from_register): Replace
2908 current_gdbarch by gdbarch.
2910 2007-10-08 Pierre Muller <muller@ics.u-strasbg.fr>
2912 * config/i386/nm-i386.h (CHILD_POST_STARTUP_INFERIOR): ARI fix: Remove.
2914 2007-10-08 Pierre Muller <muller@ics.u-strasbg.fr>
2916 * linux-fork.c: ARI fix: include "gdb_wait.h" instead of <sys/wait.h>.
2917 Makefile.in (linux-fork.o): Add gdb_wait.h dependency.
2919 2007-10-05 Daniel Jacobowitz <dan@codesourcery.com>
2921 * remote.c (get_offsets): Only call free_symfile_segment_data if
2924 2007-10-03 Pierre Muller <muller@ics.u-strasbg.fr>
2926 * objc-exp.y: ARI fix: remove 4 PARAMS.
2928 2007-10-03 Daniel Jacobowitz <dan@codesourcery.com>
2930 * NEWS: Use uniform spacing. Correct version number for GDB 6.7
2931 news. Mention XML support for M68K in GDB 6.7.
2933 2007-10-03 Daniel Jacobowitz <dan@codesourcery.com>
2935 * gdbtypes.c (create_range_type): Do not set TYPE_FIELD_TYPE for the
2937 (init_vector_type): Use builtin_type_int32.
2939 2007-10-02 Ulrich Weigand <uweigand@de.ibm.com>
2941 * s390-tdep.c (s390_regset_from_core_section): Allow excess section
2942 size to enable bi-arch generate-core-file support.
2944 2007-10-02 Markus Deuling <deuling@de.ibm.com>
2946 * spu-tdep.c (info_spu_signal_command): Fix output for SPU signal.
2948 2007-10-02 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
2950 * tui/tui-interp.c (tui_init): Initialize tui's SIGWINCH
2952 * tui/tui-win.c (tui_initialize_win): New function for
2953 initializing tui's SIGWINCH signal handler.
2954 * tui/tui-win.h (tui_initialize_win): Declare.
2956 2007-10-02 Ulrich Weigand <uweigand@de.ibm.com>
2958 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Cast
2959 pointer to uintptr_t before casting to CORE_ADDR.
2961 2007-10-02 Markus Deuling <deuling@de.ibm.com>
2963 * linux-nat.c (PTRACE_GETSIGINFO): Add define.
2965 2007-10-02 Mark Mitchell <mark@codesourcery.com>
2967 * mingw-hdep.c (gdb_select): Stop helper threads before returning.
2968 * ser-mingw.c (enum select_thread_state): New type.
2969 (struct ser_console_state): Add have_started and thread_state.
2970 (select_thread_wait): New function.
2971 (thread_fn_type): New type.
2972 (create_select_thread): New function.
2973 (destroy_select_thread): Likewise.
2974 (start_select_thread): Likewise.
2975 (stop_select_thread): Likewise.
2976 (console_select_thread): Use new functions.
2977 (pipe_select_thread): Likewise.
2978 (file_select_thread): Likewise.
2979 (ser_console_wait_handle): Likewise.
2980 (ser_console_done_wait_handle): Likewise.
2981 (ser_console_close): Likewise.
2982 (free_pipe_state): Likewise.
2983 (pipe_wait_handle): Likewise.
2984 (pipe_done_wait_handle): Likewise.
2985 (struct net_windows_state): Derive from ser_console_state.
2986 (net_windows_select_thread): Use new functions.
2987 (net_windows_wait_handle): Likewise.
2988 (net_windows_done_wait_handle): Likewise.
2989 (net_windows_close): Likewise.
2991 2007-10-02 Daniel Jacobowitz <dan@codesourcery.com>
2993 * inflow.c (terminal_ours_1): Remove useless line.
2995 2007-10-02 Daniel Jacobowitz <dan@codesourcery.com>
2997 * mips-tdep.c (mips_read_fp_register_double): Correct check for
2999 (mips_print_fp_register): Correct check for even FP registers.
3000 (mips_virtual_frame_pointer): New function.
3001 (mips_gdbarch_init): Call set_gdbarch_virtual_frame_pointer.
3003 2007-09-30 Mike Frysinger <vapier@gentoo.org>
3005 * value.h (lookup_only_internalvar): New prototype.
3006 (create_internalvar): Likewise.
3007 * value.c (lookup_only_internalvar): New function.
3008 (create_internalvar): Likewise.
3009 (lookup_internalvar): Use new lookup_only_internalvar and
3010 create_internalvar functions.
3011 * parse.c (write_dollar_variable): Look up $ symbols in internal
3012 table first rather than last.
3014 2007-09-30 Daniel Jacobowitz <dan@codesourcery.com>
3016 * linux-nat.c (linux_nat_new_thread): New variable.
3017 (linux_child_follow_fork): Set inferior_ptid to include LWP ID. Use
3018 linux_nat_switch_fork.
3019 (lwp_list): Make public.
3020 (add_lwp): Call linux_nat_new_thread.
3021 (lin_lwp_attach_lwp, linux_nat_attach): Call add_lwp after stopping
3023 (resume_callback): Clear lp->siginfo. Remove unused variable.
3024 (linux_nat_resume): Assert that the LWP list is already initialized.
3026 (save_siginfo): New.
3027 (stop_wait_callback, linux_nat_wait): Call it.
3028 (linux_nat_set_new_thread, linux_nat_get_siginfo): New.
3029 * linux-nat.h (struct lwp_info): Add siginfo.
3030 (lwp_list, linux_nat_set_new_thread, linux_nat_get_siginfo): Declare.
3033 * amd64-linux-nat.c (amd64_linux_dr): New.
3034 (amd64_linux_dr_get): Take a PTID argument. Correct typo.
3035 (amd64_linux_dr_set): Take a PTID argument.
3036 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use ALL_LWPS.
3037 (amd64_linux_dr_reset_addr): Use amd64_linux_dr_set_addr.
3038 (amd64_linux_dr_get_status): Pass inferior_ptid to amd64_linux_dr_get.
3039 (amd64_linux_new_thread): New.
3040 (_initialize_amd64_linux_nat): Call linux_nat_set_new_thread.
3041 * i386-linux-nat.c (i386_linux_dr): New.
3042 (i386_linux_dr_get, i386_linux_dr_set): Take a PTID argument.
3043 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use ALL_LWPS.
3044 (i386_linux_dr_reset_addr): Use i386_linux_dr_set_addr.
3045 (i386_linux_dr_get_status): Pass inferior_ptid to i386_linux_dr_get.
3046 (i386_linux_new_thread): New.
3047 (i386_linux_resume): Remove unnecessary PID check.
3048 (_initialize_i386_linux_nat): Call linux_nat_set_new_thread.
3049 * ia64-linux-nat.c (enable_watchpoints_in_psr): Take PTID argument.
3050 (fetch_debug_register, fetch_debug_register_pair): Delete.
3051 (debug_registers): New.
3052 (ia64_linux_insert_watchpoint, ia64_linux_remove_watchpoint): Use
3053 ALL_LWPS and debug_registers.
3054 (ia64_linux_new_thread): New.
3055 (ia64_linux_stopped_data_address): Use linux_nat_get_siginfo.
3056 (_initialize_ia64_linux_nat): Call linux_nat_set_new_thread.
3057 * ppc-linux-nat.c (last_stopped_data_address): Delete.
3058 (saved_dabr_value): New.
3059 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint): Use
3061 (ppc_linux_new_thread): New.
3062 (ppc_linux_stopped_data_address): Use linux_nat_get_siginfo.
3063 (ppc_linux_stopped_by_watchpoint): Call ppc_linux_stopped_data_address.
3064 (_initialize_ppc_linux_nat): Call linux_nat_set_new_thread.
3065 * s390-nat.c (s390_stopped_by_watchpoint): Clear the watchpoint status
3067 (s390_fix_watch_points): Take a PTID argument.
3068 (s390_insert_watchpoint, s390_remove_watchpoint): Use ALL_LWPS.
3069 (_initialize_s390_nat): Call linux_nat_set_new_thread.
3071 2007-09-30 Daniel Jacobowitz <dan@codesourcery.com>
3072 Jeff Johnston <jjohnstn@redhat.com>
3074 * breakpoint.c (watchpoints_triggered): New.
3075 (bpstat_stop_status): Remove STOPPED_BY_WATCHPOINT argument.
3076 Check watchpoint_triggered instead. Combine handling for software
3077 and hardware watchpoints. Do not use target_stopped_data_address
3078 here. Always check a watchpoint if its scope breakpoint triggers.
3079 Do not stop for thread or overlay events. Improve check for
3080 triggered watchpoints without a value change.
3081 (watch_command_1): Insert the scope breakpoint first. Link the
3082 scope breakpoint to the watchpoint.
3083 * breakpoint.h (enum watchpoint_triggered): New.
3084 (struct breakpoint): Add watchpoint_triggered.
3085 (bpstat_stop_status): Update prototype.
3086 (watchpoints_triggered): Declare.
3087 * infrun.c (enum infwait_status): Add infwait_step_watch_state.
3088 (stepped_after_stopped_by_watchpoint): Delete.
3089 (handle_inferior_event): Make stepped_after_stopped_by_watchpoint
3090 local. Handle infwait_step_watch_state. Update calls to
3091 bpstat_stop_status. Use watchpoints_triggered to check
3093 * remote.c (stepped_after_stopped_by_watchpoint): Remove extern.
3094 (remote_stopped_data_address): Do not check it.
3096 2007-09-29 Daniel Jacobowitz <dan@codesourcery.com>
3098 * configure.ac: Add $LIBINTL when testing libbfd.
3099 * configure: Regenerated.
3101 2007-09-28 Vladimir Prus <vladimir@codesourcery.com>
3103 * NEW: Mention pending breakpoint changes and
3104 support for breakpoints at multiple locations.
3106 2007-09-27 Daniel Jacobowitz <dan@codesourcery.com>
3108 * arm-linux-tdep.c (arm_linux_software_single_step): New.
3109 (arm_linux_init_abi): Use it.
3110 * arm-tdep.c (arm_get_next_pc): Make global. Handle all-ones
3111 condition correctly.
3112 * arm-tdep.h (arm_get_next_pc): Declare.
3113 * Makefile.in (arm-linux-tdep.o): Update.
3115 2007-09-26 Vladimir Prus <vladimir@codesourcery.com>
3117 * varobj.c (install_new_value): Don't
3118 call value_get_print_value when a value is
3119 lazy. Update the print_value member in a
3122 2007-09-26 Vladimir Prus <vladimir@codesourcery.com>
3124 * breakpoint.c (create_breakpoint): Set
3125 condition on each location, not on the first
3126 location of breakpoint.
3128 2007-09-26 Jim Blandy <jimb@codesourcery.com>
3130 * remote.c (getpkt_sane): Fix error message. No animals were
3131 harmed in the making of this debugger.
3133 2007-09-26 Pierre Muller <muller@ics.u-strasbg.fr>
3135 * p-typeprint.c: Fix 11 ARI reported problems.
3136 (pascal_print_type): Fix 4 operator at end of line.
3137 (pascal_type_print_method_args) : Replace 2 DEPRECATED_STREQN macros
3138 using strncmp function.
3139 (pascal_type_print_base): Fix 2 operator at end of line.
3140 (pascal_type_print_base) : Replace 3 DEPRECATED_STREQN macros
3141 using strncmp function.
3144 2007-09-26 Pierre Muller <muller@ics.u-strasbg.fr>
3146 * Fix PR pascal/2231
3147 dwarf2read.c (read_subroutine_type):
3148 All pascal functions are prototyped.
3150 2007-09-26 Pierre Muller <muller@ics.u-strasbg.fr>
3152 * Fix PR pascal/2283
3153 p-valprint.c (pascal_val_print): correct current language check.
3154 Also print array of char as strings.
3157 2007-09-26 David Ung <davidu@mips.com>
3158 Maciej W. Rozycki <macro@mips.com>
3160 * mips-tdep.c (mips_n32n64_return_value): Fix a comment.
3162 2007-09-25 Pierre Muller <muller@ics.u-strasbg.fr>
3164 * p-exp.y: Fix 12 ARI reported problems.
3165 (name_not_typename): Fix 2 operator at end of line issues.
3166 (yylex): Fix 3 operator at end of line issues.
3167 Replace 7 DEPRECATED_STREQ macros using strcmp function.
3169 2007-09-25 David Ung <davidu@mips.com>
3170 Maciej W. Rozycki <macro@mips.com>
3172 * mips-tdep.c (mips_n32n64_return_value): Per N32/N64 ABI
3173 rules return composite types in registers as appropriate.
3175 2007-09-24 Jim Blandy <jimb@codesourcery.com>
3177 * symfile.h (struct symfile_segment_data): Doc fixes.
3178 * symfile.c (symfile_map_offsets_to_segments): Doc fixes.
3179 Assert that we were passed some loaded segment addresses,
3180 and that sections' segment numbers are valid.
3181 Simplify offset calculation.
3182 * remote.c (get_offsets): Clarify selection of relocate-by-segment
3183 strategy, and set num_segments correctly. Delete redundant
3184 assignments to do_sections.
3186 2007-09-24 Daniel Jacobowitz <dan@codesourcery.com>
3188 * frame.c (get_prev_frame_1): Also check for PC in the same register.
3190 2007-09-24 Vladimir Prus <vladimir@codesourcery.com>
3192 * breakpoint.c (remove_sal): New.
3193 (expand_line_sal_maybe): New.
3194 (create_breakpoints): Call expand_line_sal_maybe.
3195 (clear_command): Add comment.
3196 (breakpoint_re_set_one): Call expand_line_sal_maybe.
3197 * linespec.c (decode_indirect): Set explicit_pc to 1.
3198 (decode_all_digits): Set explicit_line to 1.
3199 (append_expanded_sal): New.
3200 (expand_line_sal): New.
3201 * linespec.h (expand_line_sal): Declare.
3202 * symtab.c (init_sal): Initialize explicit_pc
3204 * symtab.h (struct symtab_and_line): New fields
3205 explicit_pc and explicit_line.
3207 2007-09-23 Daniel Jacobowitz <dan@codesourcery.com>
3209 * infcall.c (call_function_by_hand): Handle language-specific
3210 pass and return by reference.
3212 * cp-abi.c (cp_pass_by_reference): New.
3213 * cp-abi.h (cp_pass_by_reference): Declare.
3214 (struct cp_abi_ops): Add pass_by_reference.
3215 * gnu-v3-abi.c (gnuv3_pass_by_reference): New.
3216 (init_gnuv3_ops): Set pass_by_reference.
3218 * language.c (language_pass_by_reference): New.
3219 (default_pass_by_reference): New.
3220 (unknown_language_defn, auto_language_defn, local_language_defn): Add
3221 default_pass_by_reference.
3222 * langauge.h (struct language_defn): Add la_pass_by_reference.
3223 (language_pass_by_reference, default_pass_by_reference): Declare.
3224 * ada-lang.c (ada_language_defn): Add default_pass_by_reference.
3225 * c-lang.c (c_language_defn, asm_language_defn)
3226 (minimal_language_defn): Likewise.
3227 (cplus_language_defn): Add cp_pass_by_reference.
3228 * f-lang.c (f_language_defn): Add default_pass_by_reference.
3229 * jv-lang.c (java_language_defn): Likewise.
3230 * m2-lang.c (m2_language_defn): Likewise.
3231 * objc-lang.c (objc_language_defn): Likewise.
3232 * p-lang.c (pascal_language_defn): Likewise.
3233 * scm-lang.c (scm_language_defn): Likewise
3235 2007-09-23 Vladimir Prus <vladimir@codesourcery.com>
3237 Allow a code breakpoint to have several locations
3239 * breakpoint.h (enum enable_state): Remove the
3240 bp_shlib_disabled enumerator.
3241 (struct bp_location): New members shlib_disabled,
3242 global_next, enabled and function_name.
3243 Rename pending to condition_not_parsed.
3245 * breakpoint.c (ALL_BP_LOCATIONS): Iterate over global_next.
3246 (ALL_BP_LOCATIONS_SAFE): Likewise.
3247 (breakpoint_enabled): Don't check for pending.
3248 (condition_command): Free and update all locations of
3250 (insert_bp_location): Adjust.
3251 (software_breakpoint_inserted_here_p): Don't care
3252 if breakpoint is enabled, as soon as it's inserted.
3253 (print_it_typical): Print bpstat's location, not
3254 bpstat's breakpoint's location.
3255 (bpstat_stop_status): Iterate over all locations, not
3257 (print_breakpoint_location): New.
3258 (print_one_breakpoint): Renamed to
3259 (print_one_breakpoint_location): ...this. Take
3260 parameters to describe which location is being
3261 printed. Modify code to properly print header
3262 for several locations and individual locations.
3263 (print_one_breakpoint): Print all locations.
3264 (breakpoint_has_pc): New.
3265 (describe_other_breakpoints): Use the above.
3266 (check_duplicates): Renamed to...
3267 (check_duplicates_for): .. this.
3268 (check_duplicates): Use check_duplicates_for.
3269 (allocate_bp_location): Adjust.
3270 (set_raw_breakpoint_without_location): New,
3271 extracted from set_raw_breakpoint.
3272 (set_breakpoint_location_function): New.
3273 (set_raw_breakpoint): Use
3274 set_raw_breakpoint_without_location.
3275 (make_breakpoint_permanent): Mark all locations
3277 (disable_breakpoints_in_shlibs): Iterate over
3279 (disable_breakpoints_in_unloaded_shlib): Likewise.
3280 (re_enable_breakpoints_in_shlibs): Likewise.
3281 (mention): Say "pending" when breakpoint has
3282 zero locations. If breakpoint has more than one
3284 (add_location_to_breakpoint): New.
3285 (create_breakpoint): Accept symtabs_and_lines, not
3286 symtab_and_line. Pass extra sals to
3287 add_location_to_breakpoint.
3288 (create_breakpoints): Pass symtabs_and_lines to
3290 (break_command_1): Make pending breakpoints
3291 have zero locations.
3292 (do_captured_breakpoint): Remove wrong allocation.
3293 (clear_command): Iterate over all locations.
3294 (unlink_locations_from_global_list): Renamed
3295 from unlink_location_from_global_list. Remove
3297 (delete_breakpoint): Remove all locations.
3298 Iterate over all locations when deciding which
3299 other location to re-enable.
3300 (all_locations_are_pending): New.
3301 (update_breakpoint_locations): Renamed from
3302 update_breakpoint_location. Try to match old
3303 and new locations using names of containing
3305 (breakpoint_re_set_one): Adjust.
3306 (find_location_by_number): New.
3307 (disable_command): Allow disabling individual location.
3308 (enable_command): Allow enabling individual location.
3309 * breakpoint.c: Adjust all uses of breakpoint's
3310 enable state to for bp_shlib_disabled change.
3312 2007-09-22 Vladimir Prus <vladimir@codesourcery.com>
3314 * breakpoint.c (do_restore_lang_radix_cleanup): Remove.
3315 (resolve_pending_breakpoint): Remove.
3316 (re_enable_breakpoints_in_shlibs): Remove.
3317 (unlink_locations_from_global_list): New.
3318 (update_breakpoint_locations): New.
3319 (breakpoint_re_set_one): Don't bail out on pending breakpoints.
3320 Use parse_condition and update_breakpoint_location to
3321 reset breakpoint. Ignore 'symbol not found' error from
3323 (breakpoint_re_set): Don't emit newline before the
3324 reason why breakpoint is not reset.
3325 (do_enable_breakpoint): Don't specially process pending
3327 (free_bp_location): New.
3328 (break_command_1): For pending breakpoints, initialize
3329 all fields of a sal with zeroes.
3330 * breakpoint.h (re_enable_breakpoints_in_shlibs): Remove.
3331 * infcmd.c (post_create_inferior): Don't call
3332 re_enable_breakpoints_in_shlibs.
3333 * infrun.c (handle_inferior_event): Likewise.
3334 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
3335 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
3336 * win32-nat.c (get_win32_debug_event): Likewise.
3338 2007-09-22 Vladimir Prus <vladimir@codesourcery.com>
3340 * breakpoint.c (create_breakpoint): Split from
3341 create_breakpoints, implementing most of its logic.
3342 Take just a single sal, single address string and
3343 single condition. Do not take parsed condition at
3345 (create_breakpoints): Just call create_breakpoint
3347 (find_condition_and_thread): New.
3348 (break_command_1): Use find_condition_and_thread.
3349 Do not keep parsed conditions.
3350 (do_captured_breakpoint): Don't convert
3351 condition string to struct expression.
3353 2007-09-22 Vladimir Prus <vladimir@codesourcery.com>
3355 * breakpoint.h (struct breakpoint): Move the cond
3357 (struct bp_location): Here.
3358 * breakpoint.c (condition_command, bpstat_stop_status)
3359 (print_one_breakpoint, allocate_bp_location)
3360 (solib_load_unload_1, create_fork_vfork_event_catchpoint)
3361 (create_exec_event_catchpoint, create_breakpoints)
3362 (break_command_1, watch_command_1, handle_gnu_v3_exceptions)
3363 (create_ada_exception_breakpoint, set_breakpoint_sal)
3364 (delete_breakpoint, breakpoint_re_set_one): Adjust.
3365 * tui/tui-winsource.c (tui_update_breakpoint_info): Adjust.
3367 2007-09-22 Vladimir Prus <vladimir@codesourcery.com>
3369 Associate bp_stat with bp_location, not breakpoint.
3370 * breakpoint.h (breakpoint_at): Change type
3372 * breakpoint.c (bpstat_alloc): Take bp_location,
3374 (bpstat_find_breakpoint): Look at bpstat's location's
3375 owner, not at bpstat->breakpoint_at.
3376 (bpstat_find_step_resume_breakpoint): Likewise.
3377 (bpstat_num): Likewise.
3378 (print_it_typical): Likewise.
3379 (print_bp_stop_message): Likewise.
3380 (watchpoint_check): Likewise.
3381 (bpstat_what): Likewise.
3382 (bpstat_get_triggered_catchpoints): Likewise.
3383 (breakpoint_auto_delete): Likewise.
3384 (delete_breakpoint): Likewise.
3385 (bpstat_stop_status): Pass location, not breakpoint,
3386 to bpstat_alloc. Look at bpstat's location's
3387 owner, not at bpstat->breakpoint_at.
3389 2007-09-21 Jim Blandy <jimb@codesourcery.com>
3391 * macrotab.h (new_macro_table): Document that removing information
3392 from an obstack/bcache-managed macro table leaks memory.
3393 * macrotab.c (macro_free, macro_bcache_free): Instead of asserting
3394 that data is never freed in obstack/bcache-managed macro tables,
3395 just leak the storage.
3396 (macro_undef): If we're undefining a macro at exactly the same
3397 source location that we defined it, simply remove the definition
3400 2007-09-21 Joel Brobecker <brobecker@adacore.com>
3402 * symfile.h (struct sym_fns): Add new field sym_read_linetable.
3403 * coffread.c, dbxread.c, elfread.c, mipsread.c somread.c:
3404 Adjust the struct sym_fns object accordingly by setting
3405 the new field to NULL.
3406 * xcoffread.c (aix_process_linenos): Make static.
3407 (xcoff_sym_fns): Set new field to aix_process_linenos.
3408 * buildsym.c (end_symtab): Replace call to PROCESS_LINENUMBER_HOOK
3409 by call to new the new sym_fns sym_read_linetable function.
3410 * config/powerpc/aix.mt (DEPRECATED_TM_FILE): Delete.
3411 * config/rs6000/tm-rs6000.h: Delete.
3413 2007-09-21 David Ung <davidu@mips.com>
3414 Maciej W. Rozycki <macro@mips.com>
3416 * mips-tdep.c (mips_n32n64_push_dummy_call): Per N32/N64 ABI
3417 rules do not treat composite types specially.
3419 2007-09-20 Maciej W. Rozycki <macro@mips.com>
3421 * mips-tdep.c (mips32_in_function_epilogue_p): New function.
3422 (mips16_in_function_epilogue_p): Likewise.
3423 (mips_in_function_epilogue_p): Likewise.
3424 (mips_gdbarch_init): Register mips_in_function_epilogue_p().
3426 2007-09-19 Joel Brobecker <brobecker@adacore.com>
3428 * configure.ac: Add check for "etext".
3429 * configure, config.in: Regenerate.
3430 * maint.c (TEXTEND): Only define if either _etext or etext
3432 Disable the profiling functionality if TEXTEND is not defined.
3434 2007-09-19 Daniel Jacobowitz <dan@codesourcery.com>
3436 * mips-tdep.c (mips_stub_frame_cache): Correct the saved return
3437 address register. Correct the call to frame_id_build.
3438 (mips_stub_frame_sniffer): Use the stub unwinder when the PC
3441 2007-09-18 Joel Brobecker <brobecker@adacore.com>
3443 * ia64-tdep.c (refine_prologue_limit): Make sure we don't scan
3444 the linetable past the function end.
3446 2007-09-18 James E. Wilson <wilson@specifix.com>
3448 * MAINTAINERS: Update my email address.
3450 2007-09-18 Jerome Guitton <guitton@adacore.com>
3452 * inf-ttrace.c (inf_ttrace_private_thread_info): New structure type.
3453 (inf_ttrace_delete_dying_threads_callback): New function.
3454 (inf_ttrace_resume): After resuming the execution, iterate over
3455 the dying threads to delete them for the thread list.
3456 (inf_ttrace_wait): on TTEVT_LWP_EXIT and TTEVT_LWP_TERMINATE,
3457 mark the corresponding thread as dying instead of removing it
3458 from the thread list.
3459 (inf_ttrace_thread_alive): return 0 for dying threads.
3461 2007-09-17 Joel Brobecker <brobecker@adacore.com>
3463 * infrun.c (insert_step_resume_breakpoint_at_frame): Add assertion
3464 that return_frame is not null.
3466 2007-09-17 Joel Brobecker <brobecker@adacore.com>
3468 * solib-svr4.c: Add include of "auxv.h".
3469 (enable_break): Use the AT_BASE auxiliary entry if available.
3470 * Makefile.in (solib-svr4.o): Update dependencies.
3472 2007-09-17 Joel Brobecker <brobecker@adacore.com>
3474 * NEWS: Create a new section for the next release branch.
3475 Rename the section of the current branch, now that it has
3478 2007-09-17 Jerome Guitton <guitton@adacore.com>
3480 * dwarf2loc.c (dwarf_expr_frame_base): Guard against NULL.
3481 * Makefile.in (dwarf2loc.o): Depend on gdb_assert.h.
3483 2007-09-16 Vladimir Prus <vladimir@codesourcery.com>
3485 * mi/mi-cmds.c (mi_cmds): Register -list-features.
3486 * mi/mi-cmds.h (mi_cmd_list_features): New.
3487 * mi/mi-main.c (mi_cmd_list_features): New.
3489 2007-09-11 Joel Brobecker <brobecker@adacore.com>
3491 GDB 6.7 branch created (branch timestamp: 2007-09-07 14:00 UTC)
3492 * version.in: Bump version to 6.7.50-20070911-cvs.
3494 2007-09-10 Daniel Jacobowitz <dan@codesourcery.com>
3496 * thread.c (free_thread): Do not delete the step resume breakpoint
3499 2007-09-10 Daniel Jacobowitz <dan@codesourcery.com>
3501 * arch-utils.c (gdbarch_info_fill): Also try core_bfd.
3502 * corelow.c (core_read_description): New.
3503 (init_core_ops): Set to_read_description.
3504 * gdbarch.sh: Add gdbarch_core_read_description.
3505 * mips-linux-tdep.c (mips_linux_core_read_description): New.
3506 (mips_linux_init_abi): Call set_gdbarch_core_read_description.
3507 * mips-tdep.c (mips_tdesc_gp32, mips_tdesc_gp64): New.
3508 (mips_register_g_packet_guesses): Use them.
3509 (_initialize_mips_tdep): Initialize them.
3510 * mips-tdep.h (mips_tdesc_gp32, mips_tdesc_gp64): Declare.
3511 * gdbarch.h, gdbarch.c: Regenerated.
3513 2007-09-10 Ulrich Weigand <uweigand@de.ibm.com>
3515 * infrun.c (stepping_past_breakpoint): New global variable.
3516 (stepping_past_breakpoint_ptid): Likewise.
3517 (prepare_to_proceed): Add STEP parameter. Do not check for Ctrl-C.
3518 Only switch threads if we need to single-step over a breakpoint hit
3519 in the previously selected thread. If stepping, remember previous
3520 thread to switch back to in STEPPING_PAST_BREAKPOINT[_PTID]. Call
3521 switch_to_thread instead of copying its contents.
3522 (proceed): Pass STEP to prepare_to_proceed. Always set ONEPROC if
3523 prepare_to_proceed returns true.
3524 (init_wait_for_inferior): Reset STEPPING_PAST_BREAKPOINT.
3525 (context_switch): Call switch_to_thread.
3526 (handle_inferior_event): Switch back to previous thread if requested
3527 in STEPPING_PAST_BREAKPOINT[_PTID] by prepare_to_proceed.
3528 * gdbthread.h (switch_to_thread): Add prototype.
3529 * thread.c (switch_to_thread): Make global.
3531 2007-09-07 Pierre Muller <muller@ics.u-strasbg.fr>
3533 * p-valprint.c: Fix 7 ARI reported problems.
3534 (pascal_val_print): Fix one operator at end of line issue.
3535 Use paddress function to remove use of
3536 deprecated_print_address_numeric function (2 times).
3537 Use SYMBOL_LINKAGE_NAME instead of DEPRECATED_SYMBOL_NAME.
3538 (pascal_value_print): Fix 3 operator at end of line issues.
3540 2007-09-07 Daniel Jacobowitz <dan@codesourcery.com>
3543 * arm-tdep.c (arm_in_call_stub): Delete.
3544 (arm_skip_stub): Handle from_arm and from_thumb stubs.
3546 2007-09-06 Daniel Jacobowitz <dan@codesourcery.com>
3548 * ppc-sysv-tdep.c (do_ppc_sysv_return_value): Handle other integer
3551 2007-09-04 Daniel Jacobowitz <dan@codesourcery.com>
3552 Jim Blandy <jimb@codesourcery.com>
3554 * NEWS: Update description of string changes. Mention print/s.
3555 * c-valprint.c (textual_element_type): New.
3556 (c_val_print): Use it. Do not skip address printing for pointers
3557 with a string format.
3558 (c_value_print): Doc update.
3559 * dwarf2read.c (read_array_type): Use make_vector_type.
3560 * gdbtypes.c (make_vector_type): New.
3561 (init_vector_type): Use it.
3562 (gdbtypes_post_init): Initialize builtin_true_unsigned_char.
3563 (_initialize_gdbtypes): Mark int8_t and uint8_t as TYPE_FLAG_NOTTEXT.
3564 * gdbtypes.h (struct builtin_type): Add builtin_true_unsigned_char.
3565 (TYPE_FLAG_NOTTEXT, TYPE_NOTTEXT): New.
3566 (make_vector_type): New.
3567 * printcmd.c (print_formatted): Only handle 's' and 'i' for examine.
3568 Call the language print routine for string format.
3569 (print_scalar_formatted): Call val_print for string format. Handle
3570 unsigned original types for char format.
3571 (validate_format): Do not reject string format.
3572 * stabsread.c (read_type): Use make_vector_type.
3573 * xml-tdesc.c (tdesc_start_vector): Use init_vector_type.
3575 2007-09-04 Michael Snyder <msnyder@access-company.com>
3577 * expprint.c (print_subexp_standard): Check strchr for null.
3578 * Makefile.in (expprint.o): Depend on gdb_assert.h.
3580 * gnu-v2-abi.c (gnuv2_value_rtti_type): Guard against null.
3582 * stabsread.c (patch_block_status): Guard against null.
3583 * Makefile.in (stabsread.o): Depend on gdb_assert.h.
3585 2007-09-04 Daniel Jacobowitz <dan@codesourcery.com>
3587 * printcmd.c (printf_command): Handle ptr_arg. Correct typo
3588 in internal error message.
3590 2007-09-04 Pedro Alves <pedro_alves@portugalmail.pt>
3591 Daniel Jacobowitz <dan@codesourcery.com>
3593 * infcmd.c (post_create_inferior): Update comment.
3594 (run_command_1): Always call post_create_inferior with 0 as
3597 * i386-cygwin-tdep.h: New.
3598 * i386-cygwin-tdep.c: Include "i386-cygwin-tdep.h".
3599 (win32_xfer_shared_library): Make it extern.
3601 * win32-nat.c: Include gdb_obstack.h and xml-support.h and
3603 (win32_so_ops): Delete.
3604 (get_relocated_section_addrs): Delete.
3605 (solib_symbols_add): Delete.
3606 (register_loaded_dll): Delete.
3607 (win32_make_so): New.
3608 (handle_load_dll): Use win32_make_so.
3609 (win32_free_so): Free the passed in so.
3610 (win32_relocate_section_addresses): Delete.
3611 (win32_solib_create_inferior_hook): Delete.
3612 (handle_unload_dll): Don't add PE offset here. Free so with
3613 win32_free_so instead of free_so.
3614 (win32_special_symbol_handling): Delete.
3615 (get_win32_debug_event): Remove unneeded calls. Set state to
3616 TARGET_WAITKIND_LOADED on a dll unload.
3617 (do_initial_win32_stuff): Clear cygwin_load_start and
3619 (map_code_section_args): Delete.
3620 (dll_code_sections_add): Delete.
3621 (core_section_load_dll_symbols): Delete.
3622 (win32_xfer_shared_libraries): New.
3623 (win32_current_sos): Delete.
3624 (win32_xfer_partial): New.
3625 (open_symbol_file_object): Delete.
3626 (in_dynsym_resolve_code): Delete.
3627 (init_win32_ops): Set win32_xfer_partial as to_xfer_partial member
3628 of win32_ops. Remove win32_so_ops settings. Don't set
3629 current_target_so_ops here.
3631 * Makefile.in (i386_cygwin_tdep_h): New variable.
3632 (i386-cygwin-tdep.o): Update dependencies.
3633 (win32-nat.o): Update dependencies.
3635 2007-09-04 Pedro Alves <pedro_alves@portugalmail.pt>
3636 Daniel Jacobowitz <dan@codesourcery.com>
3638 * gdbarch.sh (core_xfer_shared_libraries): New.
3640 * corelow.c (core_xfer_partial): Handle TARGET_OBJECT_LIBRARIES.
3642 * gdb_obstack.h (obstack_grow_str, obstack_grow_str0): New.
3644 * xml-support.c (gdb_xml_parse): Debug output tweaks.
3645 (xml_escape_text): New.
3646 * xml-support.h (xml_escape_text): Declare.
3648 * config/i386/cygwin.mh (NATDEPFILES): Move corelow.o to ...
3649 * config/i386/cygwin.mt (TDEPFILES): ... here.
3651 * win32-nat.c: (fetch_elf_core_registers): Delete.
3652 (win32_elf_core_fn): Delete.
3653 (_initialize_core_win32): Delete.
3655 * i386-cygwin-tdep.c: Include "regset.h", "gdb_objstack.h",
3656 "xml-support.h" and "gdbcore.h".
3657 (i386_win32_gregset_reg_offset): New.
3658 (I386_WIN32_SIZEOF_GREGSET): New.
3659 (i386_win32_regset_from_core_section): New.
3660 (win32_xfer_shared_library): New.
3661 (struct cpms_data): New.
3662 (core_process_module_section): New.
3663 (win32_core_xfer_shared_libraries): New.
3664 (i386_cygwin_skip_trampoline_code): Register gregset_reg_offset,
3665 gregset_num_regs, sizeof_gregset members of tdep. Register
3666 regset_from_core_section and core_xfer_shared_libraries callbacks.
3668 * Makefile.in (i386-cygwin-tdep.o): Update dependencies.
3669 * gdbarch.h, gdbarch.c: Regenerate.
3671 2007-09-03 Daniel Jacobowitz <dan@codesourcery.com>
3673 * corelow.c (core_xfer_partial): Pass writebuf to
3674 deprecated_xfer_memory in TARGET_OBJECT_MEMORY write case.
3676 2007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
3678 * arm-tdep.h (arm_skip_stub): Declare.
3679 * arm-wince-tdep.c: Don't include "solib-svr4.h". Include
3681 (arm_pe_skip_trampoline_code): New function.
3682 (arm_wince_init_abi): Register arm_pe_skip_trampoline_code as
3683 gdbarch_skip_trampoline_code callback.
3684 * Makefile.in (arm-wince-tdep.o): Update dependencies.
3686 2007-09-03 Daniel Jacobowitz <dan@codesourcery.com>
3688 * MAINTAINERS: Move Fred Fish to Past Maintainers.
3690 2007-09-03 Daniel Jacobowitz <dan@codesourcery.com>
3692 * configure.ac: Add --with-expat.
3693 * configure: Regenerated.
3695 2007-09-03 Andreas Schwab <schwab@suse.de>
3697 * configure.ac: Accept --with-system-readline.
3698 (READLINE, READLINE_DEPS, READLINE_CFLAGS): Define and substitute.
3699 * configure: Regenerate.
3700 * Makefile.in (READLINE, READLINE_DEPS, READLINE_CFLAGS): Use
3702 (CDEPS): Use $(READLINE_DEPS) instead of $(READLINE).
3704 2007-09-03 Maxim Grigoriev <maxim2405@gmail.com>
3705 Daniel Jacobowitz <dan@codesourcery.com>
3707 * mi-main.c (mi_load_progress): Handle MI2 and MI3 interpreters.
3709 2007-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3711 * top.c (print_gdb_version): Fixed a string end-of-line compiler error.
3713 2007-09-02 Daniel Jacobowitz <dan@codesourcery.com>
3715 * top.c (print_gdb_version): Update for GPL version 3.
3717 2007-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3719 * NEWS: Mention the build-id .debug files verification.
3721 2007-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3723 * linux-nat.c (linux_nat_make_corefile_notes): Fixed a buffer overflow.
3725 2007-09-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3727 * Makefile.in (symfile.o): Update dependencies.
3728 * symfile.c (symbol_file_add_with_addrs_or_offsets): Initialize the
3729 DEBUGFILE variable. FIND_SEPARATE_DEBUG_FILE called only if !PSYMTABS.
3730 (struct build_id): New structure.
3731 (build_id_bfd_get, build_id_verify, build_id_to_debug_filename): New.
3732 (find_separate_debug_file): New variable BUILD_ID.
3733 Call BUILD_ID_BFD_GET with BUILD_ID_TO_DEBUG_FILENAME as the first try.
3735 2007-08-31 Vladimir Prus <vladimir@codesourcery.com>
3737 * varobj.c (struct varobj): Fix comment
3738 for the type member not to lie when it can be
3741 2007-08-31 Vladimir Prus <vladimir@codesourcery.com>
3743 Implement -var-info-path-expression.
3745 * mi/mi-cmds.h (mi_cmd_var_info_path_expression):
3747 * mi/mi-cmds.c (mi_cmds): Register var-info-path-expression.
3748 * mi/mi-cmd-var.c (mi_cmd_var_info_path_expression): New.
3749 * varobj.c (struct varobj): New field 'path_expr'.
3750 (c_path_expr_of_child, cplus_path_expr_of_child)
3751 (java_path_expr_of_child): New.
3752 (struct language_specific): New field path_expr_of_child.
3753 (varobj_create): Initialize the path_expr field.
3754 (varobj_get_path_expr): New.
3755 (new_variable): Initialize the path_expr field.
3756 (free_variable): Free the path_expr field.
3757 (adjust_value_for_children_access): New parameter
3759 (c_number_of_children): Adjust.
3760 (c_describe_child): New parameter CFULL_EXPRESSION.
3761 Compute full expression.
3762 (c_value_of_child, c_type_of_child): Adjust.
3763 (cplus_number_of_children): Adjust.
3764 (cplus_describe_child): New parameter CFULL_EXPRESSION.
3765 Compute full expression.
3766 (cplus_name_of_child, cplus_value_of_child)
3767 (cplus_type_of_child): Adjust.
3768 * varobj.h (varobj_get_path_expr): Declare.
3770 2007-08-31 Vladimir Prus <vladimir@codesourcery.com>
3772 * mi/mi-cmd-var.c (print_varobj): If a varobj
3773 type is NULL, don't try to print it.
3775 2007-08-30 Alan Modra <amodra@bigpond.net.au>
3777 * ppc-linux-nat.c (right_fill_reg): Delete.
3778 (supply_gregset): Use ppc_supply_gregset.
3779 (supply_fpregset): Use ppc_supply_fpregset.
3780 (fill_gregset): Use ppc_collect_gregset.
3781 (fill_fpregset): Use ppc_collect_fpregset.
3782 * ppc-linux-tdep.c (PPC_LINUX_PT_*): Don't define.
3783 (right_supply_register, ppc_linux_supply_gregset): Delete.
3784 (ppc32_linux_supply_gregset, ppc64_linux_supply_gregset): Delete.
3785 (ppc_linux_supply_fpregset): Delete.
3786 (ppc_linux_collect_gregset): New function.
3787 (ppc32_linux_reg_offsets, ppc64_linux_reg_offsets): New.
3788 (ppc32_linux_gregset, ppc64_linux_gregset): Update to use reg offsets,
3789 ppc_linux_supply_gregset, and ppc_collect_gregset.
3790 (ppc_linux_fpregset): Rename to ppc32_linux_fpregset and update.
3791 (ppc_linux_gregset, ppc_linux_fpregset): New functions.
3792 (ppc_linux_regset_from_core_section): Update.
3793 * ppc-tdep.h (ppc_linux_gregset, ppc_linux_fpregset): Declare.
3794 (ppc_linux_supply_gregset, ppc_linux_supply_fpregset): Delete.
3795 (struct ppc_reg_offsets): Add gpr_size, xr_size, fpscr_size fields.
3796 * ppcobsd-tdep.c (ppcobsd_supply_gregset): Delete FIXME and assert.
3797 (ppcobsd_collect_gregset): Likewise.
3798 (_initialize_ppcnbsd_tdep): Init gpr_size, xr_size, fpscr_size.
3799 * ppcnbsd-tdep.c (_initialize_ppcobsd_tdep): Likewise.
3800 * ppcobsd-nat.c (_initialize_ppcobsd_nat): Likewise.
3801 * rs6000-aix-tdep.c (rs6000_aix32_reg_offsets): Likewise.
3802 (rs6000_aix64_reg_offsets): Likewise.
3803 (rs6000_aix_supply_regset): Call ppc_supply_fpregset without testing
3804 ppc_floating_point_unit_p.
3805 (rs6000_aix_collect_regset): Similarly.
3806 * rs6000-tdep.c (ppc_supply_reg): Add regsize param. Adjust offset
3807 when regsize is larger than regcache register size.
3808 (ppc_collect_reg): Similarly zero pad when regsize is larger than
3809 regcache register size.
3810 (ppc_greg_offset): New function, split out from..
3811 (ppc_supply_gregset): ..here. Separate code handling all regs from
3812 single reg case. Correct xer offset.
3813 (ppc_fpreg_offset): New function, split out from..
3814 (ppc_supply_fpregset): ..here. Separate code handling all regs from
3816 (ppc_collect_gregset, ppc_collect_fpregset): Likewise.
3817 (ppc_supply_fpregset, ppc_collect_fpregset): Don't assert we have
3818 a fp unit, instead return if no fp.
3820 2007-08-29 Jim Blandy <jimb@codesourcery.com>
3822 * breakpoint.c (watch_command_1): Remove '#ifdef HPUXHPPA' block;
3823 this code has not been compiled for two years.
3825 2007-08-29 Michael Snyder <msnyder@access-company.com>
3827 * event-top.c (gdb_readline2): Return after EOF.
3829 2007-08-29 Joel Brobecker <brobecker@adacore.com>
3831 * symtab.c: Remove a function that has been commented out 3 years ago.
3833 2007-08-29 Randolph Chung <tausq@debian.org>
3835 * hppa-tdep.c (hppa32_cannot_fetch_register)
3836 (hppa64_cannot_fetch_register): New functions.
3837 (hppa_gdbarch_init): Set cannot_fetch_register appropriately.
3838 * hppa-tdep.h (hppa_regnum): Add HPPA_CR26_REGNUM.
3840 2007-08-28 Michael Snyder <msnyder@access-company.com>
3842 * mi/mi-cmd-var.c (mi_print_value_p): No longer necessary to
3843 check for null before calling check_typedef.
3845 * NEWS: Mention Coverity bug fixes.
3847 2007-08-27 Markus Deuling <deuling@de.ibm.com>
3849 * spu-tdep.c (spu_pointer_to_address): New function.
3850 (spu_integer_to_address): Likewise.
3851 (spu_gdbarch_init): Add spu_pointer_to_address and
3852 spu_integer_to_address to gdbarch.
3854 2007-08-26 Pedro Alves <pedro_alves@portugalmail.pt>
3856 * arm-wince-tdep.c (ARM_WINCE_JB_PC): Change to 10.
3858 2007-08-23 Joel Brobecker <brobecker@adacore.com>
3860 * Makefile.in (copying.c): Use the top-level COPYING3 as the file
3861 that contains the GDB license.
3862 * copying.awk: Adjust to the GPLv3 wording.
3863 * copying.c: Regenerate.
3865 2007-08-23 Joel Brobecker <brobecker@adacore.com>
3867 * copying.awk: Protoization, and i18n markup.
3869 2007-08-23 Joel Brobecker <brobecker@adacore.com>
3871 * config/djgpp/djconfig.sh: Switch license to GPLv3.
3872 * copyright.sh: Likewise.
3873 * gdb-events.sh: Likewise.
3874 * gdb_gcore.sh: Likewise.
3875 * gdb_mbuild.sh: Likewise.
3876 * gdbarch.sh: Likewise.
3877 * observer.sh: Likewise.
3878 * features/feature_to_c.sh: Likewise.
3879 * regformats/regdat.sh: Likewise.
3881 2007-08-23 Joel Brobecker <brobecker@adacore.com>
3883 Switch the license of all .c files to GPLv3.
3884 Switch the license of all .h files to GPLv3.
3885 Switch the license of all .cc files to GPLv3.
3887 2007-08-23 Joel Brobecker <brobecker@adacore.com>
3889 * configure.ac: Switch license to GPLv3.
3891 2007-08-22 Daniel Jacobowitz <dan@codesourcery.com>
3893 * mips-tdep.c (mips_gdbarch_init): Use Tag_GNU_MIPS_ABI_FP to
3894 determine the file's FPU type.
3896 2007-08-22 Daniel Jacobowitz <dan@codesourcery.com>
3898 * mips-tdep.c (mips_n32n64_fp_arg_chunk_p): New.
3899 (mips_n32n64_push_dummy_call): Always increment float_argreg along
3900 with argreg. Use mips_n32n64_fp_arg_chunk_p.
3902 2007-08-22 Daniel Jacobowitz <dan@codesourcery.com>
3904 * solib-svr4.c (scan_dyntag): Only read target memory when necessary.
3906 (elf_locate_base): Look for DT_MIPS_RLD_MAP first. Expand comments.
3907 (elf_lookup_lib_symbol): Fix formatting.
3909 2007-08-21 Michael Snyder <msnyder@access-company.com>
3911 * dbxread.c (read_dbx_symtab): Guard null deref.
3914 * valops.c (find_overload_match): Guard against NULL.
3916 2007-08-21 Daniel Jacobowitz <dan@codesourcery.com>
3918 * MAINTAINERS (Patch Champions): Remove self.
3920 2007-08-21 Chris Smith <chris.smith@st.com>
3922 * cli/cli-script.c (read_command_lines): Call dont_repeat for each
3925 2007-08-18 Michael Snyder <msnyder@access-company.com>
3927 * stabsread.c (dbx_lookup_type): Memory leak.
3929 * event-loop.c (delete_async_signal_handler): Move pointer null
3930 test to before pointer dereference.
3932 * ui-out.c (append_header_to_list): Possible cut and paste error.
3934 * MAINTAINERS: white space tweak.
3936 2007-08-17 Michael Snyder <msnyder@access-company.com>
3938 * stack.c (print_frame): Memory leak.
3940 * completer.c (filename_completer): Avoid memory leak.
3941 Remove unnecessary nested block.
3943 * c-exp.y (parse_number): Memory leak.
3945 * completer.c (location_completer): Must free 'fn_list', except
3946 in the one case where it is returned (as 'list').
3948 * varobj.c (value_of_root): Memory leak.
3950 * gdbtypes.h (virtual_base_list): Remove export decl.
3951 * gdbtypes.c (virtual_base_list): Make static. Not called outside.
3952 (virtual_base_index): Memory leak.
3953 (virtual_base_index_skip_primaries): Ditto.
3955 2007-08-17 Maxim Grigoriev <maxim2405@gmail.com>
3957 * xtensa-tdep.c (ARG_NOF, ARG_1ST, PS_WOE, PS_EXC, C0_MAXOPDS)
3958 (C0_NREGS, C0_CLESV, C0_SP, C0_FP, C0_RA, C0_ARGS, C0_NARGS)
3959 (C0_CONST, C0_INEXP, C0_NOSTK): New macros.
3960 (xtensa_read_register): New function.
3961 (xtensa_windowed_frame_cache, xtensa_call0_frame_cache, xtensa_c0reg)
3962 (xtensa_insn_kind): New types.
3963 (xtensa_frame_cache, xtensa_alloc_frame_cache, xtensa_frame_cache)
3964 (xtensa_frame_prev_register, xtensa_return_value, xtensa_skip_prologue)
3965 (xtensa_verify_config, xtensa_pseudo_register_read)
3966 (xtensa_pseudo_register_write, xtensa_extract_return_value)
3967 (xtensa_store_return_value)
3968 (xtensa_push_dummy_call): Extended to support Xtensa Call0 ABI.
3969 (windowing_enabled, extract_call_winsize, xtensa_unwind_dummy_id)
3970 (xtensa_frame_this_id, xtensa_frame_prev_register)
3971 (xtensa_register_type, xtensa_reg_to_regnum): Cosmetic changes.
3972 (call0_frame_cache, call0_frame_get_reg_at_entry)
3973 (call0_classify_opcode, call0_track_op)
3974 (call0_analyze_prologue, call0_frame_cache): New functions.
3976 2007-08-17 Vladimir Prus <vladimir@codesourcery.com>
3978 * breakpoint.c (bpstat_free): New.
3979 (bpstat_clear): Use bpstat_free.
3980 (delete_breakpoint): Document why we cannot
3981 remove bpstats from stop_bpstat.
3982 * breakpoint.h (bpstat_free): Declare.
3984 2007-08-16 Michael Snyder <msnyder@access-company.com>
3986 * event-loop.c (gdb_wait_for_event): Move statement into "if" block.
3988 2007-08-15 Paul Hilfinger <hilfinger@adacore.com>
3989 Joel Brobecker <brobecker@adacore.com>
3991 * ada-lang.c (resolve_subexp): Correct arity of binary operators.
3993 2007-08-15 Paul Hilfinger <hilfinger@adacore.com>
3994 Joel Brobecker <brobecker@adacore.com>
3996 * ada-lang.c (possible_user_operator_p): Alternative fix to last
3997 checkin guarding against NULL.
3999 2007-08-14 Michael Snyder <msnyder@access-company.com>
4001 * tui-command.c, tui-data.c, tui-disasm.c, tui-file.c, tui-io.c,
4002 tui-layout.c, tui-regs.c, tui-source.c, tui-win.c, tui-windata.c,
4003 tui-wingeneral.c, tui-winsource.c: Coding standard, && and ||
4004 go at beginning of new line.
4006 * tui-data.c, tui-data.h, tui-disasm.c, tui-disasm.h, tui-hooks.c,
4007 tui-io.c, tui-layout.c, tui-layout.h, tui-out.c, tui-regs.c,
4008 tui-source.c, tui-source.h, tui-stack.c, tui-win.c, tui-win.h,
4009 tui-windata.c, tui-windata.h, tui-wingeneral.c, tui-winsource.c,
4010 tui-winsource.h, tui.c, tui.h: Function declarations and
4011 definitions, wrap long lines.
4013 * tui-command.c, tui-data.c, tui-disasm.c, tui-layout.c,
4014 tui-regs.c, tui-win.c, tui-windata.c, tui-winsource.c, tui.c:
4015 Reformat block comments to GNU standard.
4017 * tui-command.c, tui-data.c, tui-data.h, tui-disasm.c, tui-file.c,
4018 tui-hooks.c, tui-interp.c, tui-io.c, tui-layout.c, tui-out.c,
4019 tui-regs.c, tui-regs.h, tui-source.c, tui-stack.c, tui-win.c,
4020 tui-windata.c, tui-wingeneral.c, tui-winsource.c, tui-winsource.h,
4021 tui.c, tui.h: Comment reformatting to coding standard (capitals,
4022 spaces after periods, etc).
4024 * tui-data.c, tui-data.h, tui-disasm.c, tui-hooks.c, tui-layout.c,
4025 tui-regs.c, tui-source.c, tui-stack.c, tui-win.c, tui-windata.c,
4026 tui-wingeneral.c, tui-wingeneral.h, tui-winsource.c, tui.c,
4027 tui-winsource.h: Whitespace changes, fix pointer declarations
4030 2007-08-14 Joel Brobecker <brobecker@adacore.com>
4031 Michael Snyder <msnyder@access-company.com>
4033 * ada-lang.c (field_alignment): Guard against NULL.
4035 2007-08-14 Joel Brobecker <brobecker@adacore.com>
4037 * MAINTAINERS (Global Maintainers): Add self.
4039 2007-08-14 Michael Snyder <msnyder@access-company.com>
4041 * mi/mi-interp.c (mi_cmd_interpreter_exec): Dead code, dead variable.
4043 * ada-lang.c (possible_user_operator_p): Guard against NULL.
4045 * varobj.c (cplus_describe_child): Guard against null.
4046 Use "NULL" instead of "0" to initialize pointers.
4048 2007-08-14 Daniel Jacobowitz <dan@codesourcery.com>
4050 * arm-tdep.c (arm_gdbarch_init): Allow unknown ABI and FPU settings
4051 to match any gdbarch with matching OSABI. Set default ABI and FPU
4052 after running the OSABI handler.
4054 2007-08-14 Daniel Jacobowitz <dan@codesourcery.com>
4056 * config/i386/linux.mh (NATDEPFILES): Move corelow.o from here...
4057 * config/i386/linux.mt (TDEPFILES): ...to here.
4059 2007-08-14 Vladimir Prus <vladimir@codesourcery.com>
4061 * breakpoint.c (disable_breakpoints_in_shlibs): Remove
4062 the 'silent' parameter and code to implement that.
4063 * breakpoint.h (disable_breakpoints_in_shlibs): Adjust
4065 * win32-nat.c: Adjust.
4068 2007-08-14 Vladimir Prus <vladimir@codesourcery.com>
4070 * breakpoint.c (update_breakpoints_after_exec): Don't
4071 set address to zero.
4073 2007-08-13 Michael Snyder <msnyder@access-company.com>
4075 * valops.c: Whitespace clean-up.
4077 * tui/tui-winsource.c (tui_alloc_source_buffer): Clean up allocation.
4079 * event-top.c (command_line_handler): Memory leak.
4081 * mi/mi-cmd-var.c (mi_cmd_var_set_format): Memory leak.
4082 No need to make copy.
4084 * source.c (find_source_lines): Require symtab 's'.
4086 2007-08-11 Michael Snyder <msnyder@access-company.com>
4088 * completer.c: Spelling fix in comments.
4090 2007-08-10 Michael Snyder <msnyder@access-company.com>
4092 * gdbtypes.c: Coding standard cleanup.
4093 * gdbtypes.c: Comment/whitespace cleanup.
4095 * stabsread.c (read_huge_number): Attempt to compute value before
4096 values that it depends on.
4098 * linespec.c (decode_dollar): Dead code, ptr can't be non-null.
4099 (decode_objc): Use "NULL" instead of 0.
4100 (find_method): Ditto.
4101 (decode_all_digits): Ditto.
4102 (decode_dollar): Ditto.
4104 * mi/mi-main.c (mi_cmd_data_evaluate_expression): Resource leak.
4106 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Memory leak.
4108 * solib-svr4.c (enable_break): Don't free tmp_pathname until
4111 * completer.c: Comment/whitespace cleanup.
4113 2007-08-10 Joel Brobecker <brobecker@adacore.com>
4115 * Makefile.in (i386nbsd-nat.o): Add missing dependency.
4117 2007-08-10 Maxim Grigoriev <maxim2405@gmail.com>
4119 * remote-fileio.c (remote_fileio_resize_fd_map): Initialize newly
4120 allocated file descriptors.
4122 2007-08-10 Joel Brobecker <brobecker@adacore.com>
4124 * Makefile.in: Minor cleanup throughout; add some missing variables,
4125 add some missing rules, remove some rules that are no longer needed,
4126 and fix the dependencies in several rules.
4128 2007-08-10 Ludovic Courtès <ludo@gnu.org>
4130 * Makefile.in (SFILES): Add scm-{exp,lang,valprint}.c.
4131 (scm_lang_h, scm_tags_h): New.
4132 (COMMON_OBS): Add scm-{exp,lang,valprint}.o.
4133 (scm-exp.o, scm-lang.o, scm-valprint.o): New targets.
4134 * defs.h (enum language): Add `language_scm'.
4136 * MAINTAINERS: Add Emacs local variables to use UTF-8 upon
4139 2007-08-09 Ludovic Courtès <ludo@gnu.org>
4141 * MAINTAINERS (Write After Approval): Add myself.
4143 2007-08-09 Michael Snyder <msnyder@access-company.com>
4145 * solib.c (solib_open): Memory leak -- openp returns xmalloc buffer.
4147 2007-08-09 Joel Brobecker <brobecker@adacore.com>
4149 * solib-som.c (som_relocate_section_addresses): Stop saving
4150 the $CODE$ section in the so_list structure.
4152 2007-08-08 Maxim Grigoriev <maxim2405@gmail.com>
4154 * xtensa-tdep.h (XTENSA_MAX_COPROCESSOR): New.
4155 (xtensa_register_group_t): Add entries for coprocessors.
4156 * xtensa-tdep.c (xtensa_init_reggroups): New register groups.
4157 (xtensa_add_reggroups): Likewise.
4158 (xtensa_register_reggroup_p): Likewise.
4159 (xtensa_coprocessor_register_group): New function.
4162 2007-08-08 Jan Kratochvil <jan.kratochvil@redhat.com>
4164 * serial.c (serial_open): Fix the OPEN parameter macro expansion.
4166 2007-08-08 Michael Snyder <msnyder@access-company.com>
4168 * target.c (target_read_string): Guard against null.
4170 * varobj.c (value_of_root): Move alloc after return to avoid leak.
4172 * tui/tui-layout.c (tui_set_layout): Dead code, dead variable.
4173 (tui_set_layout_for_display_command): Mem leak.
4175 * top.c (command_line_input): Memory leak.
4177 * solib-svr4.c (open_symbol_file_object): Memory leak.
4178 (svr4_current_sos): Ditto.
4179 (enable_break): Ditto.
4181 * cp-valprint.c (cp_print_hpacc_virtual_table_entries): Memory leak.
4183 * dwarf2read.c (add_partial_symbol): Memory leak.
4185 2007-08-06 Michael Snyder <msnyder@access-company.com>
4187 * ada-lang.c (desc_bounds): Comparison of function address to NULL.
4189 2007-08-05 Jim Blandy <jimb@codesourcery.com>
4191 * macroexp.c (init_buffer): Remove testing code that overrides the
4192 caller's length guess.
4193 (gather_arguments): Use a larger initial size, now that the vector
4194 growth code has been exercised.
4196 2007-08-05 Pedro Alves <pedro_alves@portugalmail.pt>
4198 * solib-target.c (solib_target_relocate_section_addresses): Add
4199 orig_delta to addr_high.
4201 2007-08-04 Michael Snyder <msnyder@access-company.com>
4203 * remote-fileio.c (remote_fileio_func_write): Memory leak.
4205 * breakpoint.c (print_one_breakpoint): Off by one error.
4207 * tracepoint.c (add_register): Off by one error.
4208 (stringify_collection_list): Free malloc buffer.
4210 2007-08-03 Michael Snyder <msnyder@access-company.com>
4212 * mi-cmd-var.c (mi_cmd_var_delete): Remove unused variable,
4213 stop memory leak, straighten out cleanups.
4215 * jv-lang.c (java_link_class_type): Guard against NULL.
4217 2007-08-02 Michael Snyder <msnyder@access-company.com>
4219 * gdbtypes.c (create_set_type): Test should only be done within
4220 the preceeding if block. Otherwise, variable is uninitialized.
4222 * gdbtypes.c (check_typedef): Guard NULL.
4224 2007-08-01 Michael Snyder <msnyder@access-company.com>
4226 * cli/cli-decode.c (lookup_cmd): Check for null earlier, to
4227 avoid dereference in lookup_cmd_1.
4229 * tui/tui-data.c (tui_alloc_content): Move assign out of if,
4230 clean up long lines.
4231 (tui_alloc_generic_win_info): Tidy by using XMALLOC macro.
4232 (tui_alloc_win_info): Ditto.
4233 (tui_add_content_elements): Ditto.
4234 * tui/tui-file.c (tui_file_magic): Ditto.
4236 2007-07-31 Michael Snyder <msnyder@access-company.com>
4238 * breakpoint.c (breakpoint_init_inferior): Add 'else' to 'if'.
4239 True and false paths are mutually exclusive.
4241 * event-top.c (command_line_handler): Add pedantic return.
4243 * f-valprint.c (info_common_command): Bail out to prevent null
4244 pointer deref. Break up a long line.
4246 * exec.c (xfer_memory): Remove redundant condition from 'if'.
4248 * symfile.c (reread_separate_symbols): Free xmalloced memory.
4250 * printcmd.c (build_address_symbolic): Remove dead code and dead
4253 2007-07-31 Daniel Jacobowitz <dan@codesourcery.com>
4255 * linespec.c (minsym_found): Advance to the next line if possible.
4257 2007-07-31 Pedro Alves <pedro_alves@portugalmail.pt>
4259 * arm-wince-tdep.c (arm_wince_init_abi): Remove svr4 related call.
4260 * config/arm/wince.mt (TDEPFILES): Remove solib-legacy.o and
4261 solib-svr4.o, and add solib-target.o
4263 2007-07-27 Michael Snyder <msnyder@access-company.com>
4265 * tui/tui-data.c (tui_alloc_generic_win_info): Wrong arg for sizeof.
4267 2007-07-26 Maciej W. Rozycki <macro@linux-mips.org>
4269 * MAINTAINERS (Write After Approval): Add myself.
4271 2007-07-26 Maciej W. Rozycki <macro@mips.com>
4273 * Makefile.in (MAKEHTMLFLAGS): Also search the current directory
4276 2007-07-25 Maciej W. Rozycki <macro@mips.com>
4278 * Makefile.in (MAKEHTMLFLAGS): Remove "-glossary".
4280 2007-07-24 Michael Snyder <msnyder@access-company.com>
4282 * solib-svr4.c (svr4_fetch_objfile_link_map): Null pointer check of
4283 'buffer' must cover both branches that call strcmp (Coverity).
4285 * stack.c (print_frame_args): Check return value of lookup_symbol.
4287 * ax-gdb.c (find_field): Guard against null ptr.
4289 2007-07-24 Ulrich Weigand <uweigand@de.ibm.com>
4291 * regformats/reg-spu.dat: Fix order of npc, id registers.
4293 2007-07-24 Ulrich Weigand <uweigand@de.ibm.com>
4295 * target.c (memory_xfer_partial): Accesses to unmapped overlay
4296 sections should always go to the executable file.
4298 2004-07-20 Chris Dearman <chris@mips.com>
4300 * mips-tdep.c (heuristic_proc_start): Add more MIPS16 function
4301 prologue instructions.
4303 2007-07-20 Maciej W. Rozycki <macro@mips.com>
4305 * mips-tdep.c (mips_next_pc): Use is_mips16_addr() instead of
4308 2007-07-20 Chris Dearman <chris@mips.com>
4309 Maciej W. Rozycki <macro@mips.com>
4311 * mips-tdep.c (fetch_mips_16): Fix typos and reformat the
4314 2007-07-17 Pedro Alves <pedro_alves@portugalmail.pt>
4315 Daniel Jacobowitz <dan@codesourcery.com>
4317 * config/i386/cygwin.mt (TDEPFILES): Add solib-target.o.
4318 * coff-pe-read.c (read_pe_exported_syms): Delete verbose
4320 * NEWS: Mention gdbserver DLL support.
4322 2007-07-17 Daniel Jacobowitz <dan@codesourcery.com>
4324 * dwarf2read.c (dwarf_decode_lines): Detect address size mismatches.
4326 2007-07-16 H.J. Lu <hongjiu.lu@intel.com>
4328 * i386-linux-nat.c (fetch_regs): Work around gcc 3.4 alias
4331 2007-07-13 Kevin Buettner <kevinb@redhat.com>
4333 * mep-tdep.c (mep_analyze_prologue): Update comment for BRA
4336 2007-07-12 Kevin Buettner <kevinb@redhat.com>
4338 * mep-tdep.c (IS_BRA, BRA_DISP): New macros.
4339 (mep_analyze_prologue): Add case for BRA instruction.
4341 2007-07-12 Ulrich Weigand <uweigand@de.ibm.com>
4343 * solib-svr4.c (LM_ADDR_CHECK): Relax prelink recognition heuristic.
4345 2007-07-10 Nick Roberts <nickrob@snap.net.nz>
4347 * breakpoint.c: Include "top.h".
4348 (breakpoint_1): Don't set convenience variable $_ if server prefix
4350 (_initialize_breakpoint): Describe this behaviour in command help.
4352 2007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
4354 * solib-target.c (library_list_start_segment): Cast address to
4357 2007-07-06 Mark Kettenis <kettenis@gnu.org>
4359 * bsd-uthread.c (bsd_uthread_wait): Don't try to fetch thread IDs
4360 for terminated processes.
4362 2007-07-05 Michael Snyder <msnyder@access-company.com>
4364 * event-top.c (cli_command_loop): Prompt string can (and should)
4365 be freed after call to readline (Coverity). Also move local var
4366 declarations into block where they are used.
4368 * tui/tui-interp.c (tui_command_loop): Prompt string can (and
4369 should) be freed after call to readline (Coverity). Also move
4370 local var declarations into block where they are used.
4372 2007-07-03 Andreas Schwab <schwab@suse.de>
4374 * linux-nat.c (linux_nat_info_proc_cmd): Fix parsing of columns in
4377 2007-07-03 Paul Gilliam <pgilliam@us.ibm.com>
4378 Thiago Bauermann <bauerman@br.ibm.com>
4379 Joseph S. Myers <joseph@codesourcery.com>
4380 Daniel Jacobowitz <dan@codesourcery.com>
4382 * remote.c (remote_check_symbols): Use
4383 gdbarch_convert_from_func_ptr_addr.
4384 * infcall.c (find_function_addr): Handle function descriptors
4385 without debugging information.
4386 * ppc-linux-tdep.c (ppc_linux_convert_from_func_ptr_addr): Renamed
4387 from ppc64_linux_convert_from_func_ptr_addr. Handle -msecure-plt.
4388 (ppc_linux_init_abi): Always set convert_from_func_ptr_addr.
4389 * solib-svr4.c (solib_break_names): Remove "._dl_debug_state".
4390 (bfd_lookup_symbol): Do not take a SECT_FLAGS argument. Always
4391 allow SEC_CODE and SEC_DATA.
4392 (enable_break): Update calls. Pass current_target to solib_add.
4393 Use gdbarch_convert_from_func_ptr_addr.
4395 2007-07-03 Ilko Iliev <iliev@ronetix.at>
4396 Daniel Jacobowitz <dan@codesourcery.com>
4398 * symfile.c (print_transfer_performance): Avoid integer overflow.
4401 2007-07-03 Markus Deuling <deuling@de.ibm.com>
4403 * cp-namespace.c (lookup_symbol_file): Add block to
4404 lookup_symbol_global call.
4405 * Makefile.in (solist_h): Add dependency on symtab header.
4406 (symtab.o): Add dependency on solist header.
4407 * solib.c (solib_global_lookup): New function.
4408 * solib-svr4.c (scan_dyntag): Likewise.
4409 (elf_locate_base): Call helper routine scan_dyntag.
4410 (elf_lookup_lib_symbol): New function.
4411 (_initialize_svr4_solib): Add elf_lookup_lib_symbol to svr4_so_ops.
4412 * solist.h (symtab.h): New include.
4413 (struct target_so_ops): New member lookup_lib_global_symbol.
4414 (solib_global_lookup): New prototype.
4415 * symtab.c: New include solist.h.
4416 (lookup_objfile_from_block): New function.
4417 (lookup_global_symbol_from_objfile): New function.
4418 (basic_lookup_symbol_nonlocal): Add block to lookup_symbol_global call.
4419 (lookup_symbol_global): Call library-specific lookup procedure.
4420 * symtab.h (lookup_global_symbol_from_objfile): New prototype.
4422 * NEWS: Document framework.
4424 2007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
4426 * target-descriptions.c (tdesc_create_reg): Do not set reg->type
4429 * cli/cli-script.c (build_command_line): Update NULL check.
4431 2007-07-02 Michael Snyder <msnyder@access-company.com>
4433 * p-exp.y (yylex): Memory leak, 'uptokstart' must be freed (Coverity).
4435 2007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
4437 * Makefile.in (XMLFILES): Add library-list.dtd.
4438 (ALLDEPFILES): Add solib-target.o.
4439 (solib-target.o): New rule.
4440 * remote.c (PACKET_qXfer_libraries): New constant.
4441 (remote_protocol_features): Add qXfer:libraries:read.
4442 (remote_wait): Recognize library stop replies.
4443 (remote_async_wait): Likewise. Fix typo.
4444 (remote_xfer_partial): Handle TARGET_OBJECT_LIBRARIES.
4445 (init_remote_async_ops): Fix typo.
4446 (_initialize_remote): Register "set remote library-info-packet".
4447 * solib-som.c (som_current_sos): Set addr_low and addr_high.
4448 * solib-target.c: New file.
4449 * solib.c (solib_map_sections): Use addr_low and addr_high instead
4451 (info_sharedlibrary_command): Likewise.
4452 (solib_add_library, solib_remove_library): New.
4453 * solist.h (struct so_list): Replace textsection with addr_low and
4455 * target.h (enum target_object): Add TARGET_OBJECT_LIBRARIES.
4456 * NEWS: Describe new qXfer:libraries:read and shared library
4458 * features/library-list.dtd: New.
4460 2007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
4462 * infrun.c (inferior_ignoring_startup_exec_events): Delete.
4463 (start_remote): Use STOP_QUIETLY_REMOTE.
4464 (handle_inferior_event): Do not condition TARGET_WAITKIND_LOADED
4465 support on a SOLIB_ADD definition. Update breakpoints_inserted.
4466 Update to match shared library event breakpoint support. Only
4467 resume if appropriate. Handle STOP_QUIETLY_REMOTE.
4468 (normal_stop): Handle TARGET_WAITKIND_LOADED.
4469 * fork-child.c (startup_inferior): Do not set
4470 inferior_ignoring_startup_exec_events
4471 * inferior.h (inferior_ignoring_startup_exec_events): Delete
4473 (enum stop_kind): Improve documentation. Add STOP_QUIETLY_REMOTE.
4475 2007-07-02 Markus Deuling <deuling@de.ibm.com>
4477 * breakpoint.c (insert_bp_location): Remove dead code
4478 (DISABLE_UNSETTABLE_BREAK).
4479 (disable_breakpoints_in_shlibs)
4480 (disable_breakpoints_in_unloaded_shlib): Likewise (comment).
4482 2007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
4484 * breakpoint.c (reattach_breakpoints): Do not use remove_breakpoint.
4485 Call insert_bp_location.
4487 2007-07-01 H.J. Lu <hongjiu.lu@intel.com>
4489 * core-regset.c (fetch_core_registers): Work around gcc 3.4
4492 2007-07-01 Daniel Jacobowitz <dan@codesourcery.com>
4494 * minsyms.c (lookup_minimal_symbol_by_pc_section): Search fewer
4497 2007-07-01 Daniel Jacobowitz <dan@codesourcery.com>
4499 * top.c (gdb_readline_wrapper_line): Call rl_callback_handler_remove.
4500 (struct gdb_readline_wrapper_cleanup): Remove prompt_orig.
4501 (gdb_readline_wrapper_cleanup): Do not reset the prompt.
4502 (gdb_readline_wrapper): Do not save the prompt. Pass our prompt
4503 to display_gdb_prompt.
4505 2007-07-01 Daniel Jacobowitz <dan@codesourcery.com>
4508 * target.c (memory_xfer_partial): Do not continue past targets with
4511 2007-06-30 Andreas Schwab <schwab@suse.de>
4513 * m68k-tdep.c (m68k_ps_type): New.
4514 (m68k_init_types): New.
4515 (m68k_register_type): Use m68k_ps_type for PS register.
4516 (_initialize_m68k_tdep): Call m68k_init_types.
4518 * m68k-tdep.c (m68k_gdbarch_init): Don't infer coldfire flavour
4519 from the generic m68k arch.
4521 2007-06-28 Michael Snyder <msnyder@access-company.com>
4523 * m2-typeprint.c (m2_print_type): Move pointer ref after null test
4526 * linux-thread-db.c (thread_db_get_thread_local_address): Add
4527 gdb_assert before using return value of find_thread_pid (Coverity).
4529 * source.c (unset_substitute_path_command): Plug leak (Coverity).
4531 * cli/cli-script.c (build_command_line): Add null pointer guard
4534 2007-06-27 Daniel Jacobowitz <dan@codesourcery.com>
4536 * linux-thread-db.c (thread_db_attach): Delete.
4537 (thread_db_detach): Typo fix. Call target_mourn_inferior
4538 instead of fixing up proc_handle.
4539 (have_threads_callback, have_threads): New functions.
4540 (thread_db_wait): Remove dead proc_handle.pid check. Only
4541 translate PTIDs if we have registered threads. Check for new
4542 threads if we have none.
4543 (thread_db_create_inferior, thread_db_post_startup_inferior): Delete.
4544 (find_new_threads_callback): Only enable event reporting if TID == 0.
4545 (same_ptid_callback): New.
4546 (thread_db_get_thread_local_address): Check for new threads.
4547 (init_thread_db_ops): Don't set to_attach, to_create_inferior,
4548 or to_post_startup_inferior.
4550 2007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
4552 * infrun.c (adjust_pc_after_break): Do not assume software single-step
4553 is always active if SOFTWARE_SINGLE_STEP_P is true.
4554 (resume): Use gdbarch_software_single_step[_p] instead of
4555 SOFTWARE_SINGLE_STEP[_P].
4556 (handle_inferior_event): Do not check for SOFTWARE_SINGLE_STEP_P.
4558 * gdbarch.sh (software_single_step): Remove target macro.
4559 * gdbarch.h, gdbarch.c: Regenerate.
4561 2007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
4563 * gdbarch.sh (gdbarch_swap_ftype, deprecated_register_gdbarch_swap,
4564 DEPRECATED_REGISTER_GDBARCH_SWAP): Remove.
4565 (struct gdbarch_swap, struct gdbarch_swap_registration,
4566 struct gdbarch_swap_registry, gdbarch_swap_registry,
4567 current_gdbarch_swap_init_hack, current_gdbarch_swap_out_hack,
4568 current_gdbarch_swap_in_hack): Remove.
4569 (find_arch_by_info): Do not call current_gdbarch_swap_init_hack.
4570 (gdbarch_find_by_info): Do not call current_gdbarch_swap_in_hack
4571 and current_gdbarch_swap_out_hack, update current_gdbarch directly.
4572 (deprecated_current_gdbarch_select_hack): Likewise.
4573 * gdbarch.h, gdbarch.c: Regenerate.
4575 2007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
4577 * infrun.c (clear_proceed_status): Clean up stop_registers.
4578 (normal_stop): Allocate regcache for stop_registers.
4579 (struct inferior_status): Remove stop_registers member.
4580 (save_inferior_status): Do not save stop_registers.
4581 (restore_inferior_status): Do not restore stop_registers.
4582 (discard_inferior_status): Do not discard stop_registers.
4583 (build_infrun): Remove.
4584 (_initialize_infrun): Do not swap stop_registers.
4586 2007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
4588 * remote.c (remote_address_masked): If remote_address_size is zero,
4589 default to target address size.
4590 (build_remote_gdbarch_data): Remove.
4591 (_initialize_remote): Do not swap remote_address_size.
4593 2007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
4595 * gdbtypes.h (builtin_type_true_char, builtin_type_void,
4596 builtin_type_char, builtin_type_short, builtin_type_int,
4597 builtin_type_long, builtin_type_signed_char,
4598 builtin_type_unsigned_char, builtin_type_unsigned_short,
4599 builtin_type_unsigned_int, builtin_type_unsigned_long,
4600 builtin_type_float, builtin_type_double, builtin_type_long_double,
4601 builtin_type_complex, builtin_type_double_complex, builtin_type_string,
4602 builtin_type_bool, builtin_type_long_long,
4603 builtin_type_unsigned_long_long, builtin_type_void_data_ptr,
4604 builtin_type_void_func_ptr, builtin_type_CORE_ADDR): Replace global
4605 variable declaration with compatibility macro.
4606 * gdbtypes.c (builtin_type_true_char, builtin_type_void,
4607 builtin_type_char, builtin_type_short, builtin_type_int,
4608 builtin_type_long, builtin_type_signed_char,
4609 builtin_type_unsigned_char, builtin_type_unsigned_short,
4610 builtin_type_unsigned_int, builtin_type_unsigned_long,
4611 builtin_type_float, builtin_type_double, builtin_type_long_double,
4612 builtin_type_complex, builtin_type_double_complex, builtin_type_string,
4613 builtin_type_bool, builtin_type_long_long,
4614 builtin_type_unsigned_long_long, builtin_type_void_data_ptr,
4615 builtin_type_void_func_ptr, builtin_type_CORE_ADDR): Remove.
4616 (build_gdbtypes): Remove.
4617 (_initialize_gdbtypes): Do not call build_gdbtypes, move installing
4618 opaque-type-resolution command here. Do not call
4619 deprecated_register_gdbarch_swap.
4621 2007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
4623 * gdbtypes.h (struct builtin_type): New members nodebug_text_symbol,
4624 nodebug_data_symbol, nodebug_unknown_symbol, and nodebug_tls_symbol.
4625 * gdbtypes.c (gdbtypes_post_init): Initialize nodebug_ default types.
4627 * parse.c (msym_text_symbol_type, msym_data_symbol_type): Remove.
4628 (msym_unknown_symbol_type, msym_tls_symbol_type): Remove.
4629 (write_exp_msymbol): Use builtin nodebug_ types instead of them.
4630 (build_parse): Remove.
4631 (_initialize_parse): Do not call build_parse. Do not register
4632 msym_ types for gdbarch-swapping.
4634 * dwarf2read.c (new_symbol): Use default nodebug_data_symbol type
4635 instead of creating private type.
4637 * xcoffread.c (func_symbol_type, var_symbol_type): Remove.
4638 (_initialize_xcoffread): Do not initialized them.
4639 (process_xcoff_symbol): Use builtin nodebug_ types instead of them.
4641 * mdebugread.c (nodebug_func_symbol_type): Remove.
4642 (nodebug_var_symbol_type): Remove.
4643 (_initialize_mdebugread): Do not initialize them.
4644 (parse_symbol): Use builtin nodebug_ type instead of them.
4645 (parse_procedure): Likewise.
4647 2007-06-21 Chris Dearman <chris@mips.com>
4649 * printcmd.c (do_one_display): If display/i, start with an initial
4650 line feed to avoid bad layout if there is a branch delay slot.
4652 2007-06-21 Nigel Stephens <nigel@mips.com>
4653 Maciej W. Rozycki <macro@mips.com>
4655 * disasm.c (gdb_print_insn): Return the number of branch delay
4656 slot instructions too.
4657 * disasm.h (gdb_print_insn): Update prototype.
4658 * printcmd.c (branch_delay_insns): New variable to record the
4659 number of delay slot instructions after disassembling a branch.
4660 (print_formatted): Record the number of branch delay slot
4662 (do_examine): When disassembling, if the last instruction
4663 disassembled has any branch delay slots, then bump the count so
4664 that they get disassembled too.
4665 * tui/tui-disasm.c (tui_disassemble): Update the call to
4667 * NEWS: Document the new behaviour.
4669 2007-06-21 Andreas Schwab <schwab@suse.de>
4671 * regcache.c (write_pc_pid): Restore missing else.
4673 2007-06-20 Ulrich Weigand <uweigand@de.ibm.com>
4675 * regcache.c (regcache_print): Use get_current_regcache ()
4676 instead of current_regcache.
4678 2007-06-20 H.J. Lu <hongjiu.lu@intel.com>
4681 * gcore.c (gcore_command): Use bfd_make_section_anyway_with_flags
4682 instead of bfd_make_section_anyway.
4683 (gcore_create_callback): Likewise. Also set SEC_NEVER_LOAD
4684 when clearing SEC_LOAD.
4686 2007-06-19 Joseph Myers <joseph@codesourcery.com>
4688 * arm-tdep.c (arm_push_dummy_call): Correct padding of partial
4689 registers for big-endian.
4691 2007-06-19 Markus Deuling <deuling@de.ibm.com>
4693 * gdbarch.sh (TARGET_PRINT_INSN): Replace by gdbarch_print_insn.
4694 * disasm.c (dump_insns, gdb_print_insn): Likewise.
4695 * gdbarch.c, gdbarch.h: Regenerate.
4697 2007-06-19 Markus Deuling <deuling@de.ibm.com>
4699 * gdbarch.sh (BELIEVE_PCC_PROMOTION): Replace by
4700 gdbarch_believe_pcc_promotion.
4701 * stabsread.c (define_symbol): Likewise.
4702 Remove unnecessary definition.
4703 * coffread.c (process_coff_symbol): Remove unnecessary code.
4704 * gdbarch.c, gdbarch.h: Regenerate.
4706 2007-06-19 Daniel Jacobowitz <dan@codesourcery.com>
4708 * configure.ac: Do not use ${objdir}.
4709 * configure: Regenerated.
4711 2007-06-18 Ulrich Weigand <uweigand@de.ibm.com>
4713 * gdbarch.sh (deprecated_register_size): Remove.
4714 * gdbarch.h, gdbarch.c: Regenerate.
4716 * arm-tdep.c (arm_push_dummy_call): Replace DEPRECATED_REGISTER_SIZE
4717 by INT_REGISTER_SIZE.
4718 (thumb_get_next_pc, arm_return_in_memory): Likewise.
4719 (arm_gdbarch_init): Do not call set_gdbarch_deprecated_register_size.
4720 * ia64-tdep.c (ia64_gdbarch_init): Do not call
4721 set_gdbarch_deprecated_register_size.
4723 2007-06-18 Markus Deuling <deuling@de.ibm.com>
4725 * gdbarch.sh (DEPRECATED_FP_REGNUM): Replace by
4726 gdbarch_deprecated_fp_regnum.
4727 * std-regs.c (value_of_builtin_frame_fp_reg): Likewise.
4728 * remote-mips.c (mips_wait, mips_fetch_registers): Likewise.
4729 * arch-utils.c (legacy_virtual_frame_pointer): Likewise.
4730 * arch-utils.h (gdbarch_virtual_frame_pointer_ftype): Likewise
4732 * gdbarch.c, gdbarch.h: Regenerate.
4734 2007-06-18 Markus Deuling <deuling@de.ibm.com>
4736 * gdbarch.sh (EXTRACT_RETURN_VALUE): Replace with
4737 gdbarch_extract_return_value.
4738 * value.c (generic_use_struct_convention): Likewise (comment).
4739 * ia64-tdep.c (ia64_use_struct_convention): Likewise (comment).
4740 * arch-utils.c (legacy_return_value): Likewise.
4741 * arch-utils.h (legacy_return_value): Likewise (comment).
4742 * gdbarch.sh (STORE_RETURN_VALUE): Replace by
4743 gdbarch_store_return_value.
4744 * stack.c (return_command): Likewise (comment).
4745 * arch-utils.h (legacy_return_value): Likewise (comment).
4746 * arch-utils.c (legacy_return_value): Likewise.
4747 * gdbarch.c, gdbarch.h: Regenerate.
4749 2007-06-18 Markus Deuling <deuling@de.ibm.com>
4751 * gdbarch.sh (DEPRECATED_USE_STRUCT_CONVENTION): Replace by
4752 gdbarch_deprecated_use_struct_convention.
4753 * arch-utils.c (legacy_return_value): Likewise.
4754 * gdbarch.c, gdbarch.h: Regenerate.
4756 2007-06-18 Markus Deuling <deuling@de.ibm.com>
4758 * gdbarch.sh (DEPRECATED_FUNCTION_START_OFFSET): Replace by
4759 gdbarch_deprecated_function_start_offset.
4760 * symtab.c (find_function_start_sal)skip_prologue_using_sal): Likewise.
4761 * linespec.c (minsym_found): Likewise.
4762 * infrun.c (handle_inferior_event): Likewise.
4763 * infcall.c (find_function_addr): Likewise.
4764 * cli/cli-cmds.c (disassemble_command): Likewise.
4765 * gdbarch.c, gdbarch.h: Regenerate.
4767 2007-06-18 Markus Deuling <deuling@de.ibm.com>
4769 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Replace by
4770 gdbarch_deprecated_reg_struct_has_addr.
4771 * infcall.c (call_function_by_hand): Likewise.
4772 (DEPRECATED_REG_STRUCT_HAS_ADDR_P): Replace by
4773 * gdbarch_deprecated_reg_struct_has_addr_p.
4774 * infcall.c (call_function_by_hand): Likewise.
4775 * gdbarch.c, gdbarch.h: Regenerate.
4777 2007-06-18 Markus Deuling <deuling@de.ibm.com>
4779 * gdbarch.sh (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
4780 * sh-tdep.c (sh_extract_struct_value_address): Remove.
4781 (sh_gdbarch_init): Remove
4782 set_gdbarch_deprecated_extract_struct_value_address.
4783 * sh64-tdep.c (sh64_extract_struct_value_address): Remove.
4784 (sh64_gdbarch_init): Remove
4785 set_gdbarch_deprecated_extract_struct_value_address.
4786 * ia64-tdep.c (ia64_extract_struct_value_address): Remove.
4787 (ia64_gdbarch_init): Remove
4788 set_gdbarch_deprecated_extract_struct_value_address.
4789 * frv-tdep.c (frv_extract_struct_value_address): Remove.
4790 (frv_gdbarch_init): Remove
4791 set_gdbarch_deprecated_extract_struct_value_address.
4792 * gdbarch.c, gdbarch.h: Regenerate.
4794 2007-06-18 Markus Deuling <deuling@de.ibm.com>
4796 * gdbarch.sh (SP_REGNUM): Replace by gdbarch_sp_regnum.
4797 * v850-tdep.c (v850_unwind_sp): Likewise.
4798 * std-regs.c (value_of_builtin_frame_sp_reg): Likewise.
4799 * stack.c (frame_info): Likewise.
4800 * stabsread.c (define_symbol): Likewise.
4801 * sh-tdep.c (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu)
4802 (sh_dwarf2_frame_init_reg, sh_frame_cache, sh_frame_prev_register)
4803 (sh_unwind_sp): Likewise.
4804 * sh64-tdep.c (sh64_push_dummy_call, sh64_frame_cache)
4805 (sh64_frame_prev_register, sh64_unwind_sp): Likewise.
4806 * rs6000-tdep.c (rs6000_push_dummy_call, rs6000_unwind_dummy_id)
4807 (rs6000_frame_cache): Likewise.
4808 * rs6000-nat.c (store_register): Likewise.
4809 * remote-mips.c (mips_wait): Likewise.
4810 * procfs.c (procfs_fetch_registers, procfs_store_registers): Likewise.
4811 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call)
4812 (ppc64_sysv_abi_push_dummy_call): Likewise.
4813 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_cache): Likewise.
4814 * ppcobsd-nat.c (ppcobsd_supply_pcb): Likewise.
4815 * ppcnbsd-tdep.c (ppcnbsd_sigtramp_cache_init): Likewise.
4816 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache): Likewise.
4817 * m32r-rom.c (m32r_supply_register): Likewise.
4818 * frame.c (frame_sp_unwind): Likewise.
4819 * mips-tdep.c (mips_insn16_frame_cache)
4820 (mips_insn32_frame_cache): Likewise (comment).
4821 * m68klinux-nat.c (supply_gregset): Likewise.
4822 * m68k-tdep.c (m68k_get_longjmp_target): Likewise.
4823 * ia64-tdep.c (ia64_frame_prev_register): Likewise.
4824 * i386-tdep.c (i386_get_longjmp_target): Likewise.
4825 * dwarf2-frame.c (dwarf2_frame_default_init_reg): Likewise.
4826 * cris-tdep.c (cris_regnums, cris_sigcontext_addr)
4827 (cris_sigtramp_frame_unwind_cache, cris_push_dummy_call)
4828 (cris_scan_prologue, crisv32_scan_prologue, cris_unwind_sp)
4829 (cris_register_type, crisv32_register_type)
4830 (cris_dwarf2_frame_init_reg): Likewise.
4831 * arch-utils.c (legacy_virtual_frame_pointer): Likewise.
4832 * amd64-tdep.c (amd64_frame_prev_register): Likewise.
4833 * amd64-linux-tdep.c (amd64_linux_sigcontext_addr): Likewise.
4834 * libunwind-frame.c (libunwind_frame_cache): Likewise.
4836 * gdbarch.sh (PC_REGNUM): Replace by gdbarch_pc_regnum.
4837 * regcache.c (read_pc_pid, generic_target_write_pc): Likewise.
4838 * xtensa-tdep.c (xtensa_register_type, xtensa_supply_gregset)
4839 (xtensa_unwind_pc, xtensa_frame_cache, xtensa_frame_prev_register)
4840 (xtensa_extract_return_value, xtensa_store_return_value): Likewise.
4841 * v850-tdep.c (v850_unwind_pc): Likewise.
4842 * stack.c (frame_info): Likewise.
4843 * sh-tdep.c (sh_generic_show_regs, sh3_show_regs, sh2e_show_regs)
4844 (sh2a_show_regs, sh2a_nofpu_show_regs, sh3e_show_regs)
4845 (sh3_dsp_show_regs, sh4_show_regs, sh4_nofpu_show_regs)
4846 (sh_dwarf2_frame_init_reg, sh_frame_prev_register, sh_unwind_pc)
4847 (sh_dsp_show_regs): Likewise.
4848 * shnbsd-tdep.c (shnbsd_supply_gregset)
4849 (shnbsd_collect_gregset): Likewise.
4850 * shnbsd-nat.c (GETREGS_SUPPLIES): Likewise.
4851 * sh64-tdep.c (sh64_compact_reg_base_num, sh64_show_media_regs)
4852 (sh64_frame_prev_register, sh64_unwind_pc): Likewise.
4853 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset)
4854 (6000_register_reggroup_p, rs6000_unwind_pc)
4855 (rs6000_frame_cache): Likewise.
4856 * rs6000-nat.c (regmap, rs6000_fetch_inferior_registers)
4857 (rs6000_store_inferior_registers): Likewise.
4858 * remote-mips.c (mips_wait, mips_load): Likewise.
4859 * procfs.c (procfs_fetch_registers, procfs_store_registers): Likewise.
4860 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_cache): Likewise.
4861 * ppcobsd-nat.c (ppcobsd_supply_pcb): Likewise.
4862 * ppcnbsd-tdep.c (ppcnbsd_sigtramp_cache_init): Likewise.
4863 * ppcnbsd-nat.c (getregs_supplies, ppcnbsd_supply_pcb): Likewise.
4864 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache): Likewise.
4865 * ppc-linux-nat.c (ppc_register_u_addr, fetch_ppc_registers)
4866 (store_ppc_registers, fill_gregset): Likewise.
4867 * mips-tdep.c (mips_stub_frame_cache, mips_gdbarch_init): Likewise.
4868 * mipsnbsd-tdep.c (mipsnbsd_supply_reg, mipsnbsd_fill_reg): Likewise.
4869 * mipsnbsd-nat.c (getregs_supplies): Likewise.
4870 * m68k-tdep.c (m68k_register_type, m68k_unwind_pc): Likewise.
4871 * m68klinux-nat.c (supply_gregset): Likewise.
4872 * irix5-nat.c (fill_gregset): Likewise.
4873 * i386-tdep.c (i386_unwind_pc): Likewise.
4874 * i386-linux-nat.c (i386_linux_resume): Likewise.
4875 * frame.c (get_prev_frame_1): Likewise.
4876 * dwarf2-frame.c (dwarf2_frame_default_init_reg): Likewise.
4877 * dbug-rom.c (dbug_supply_register): Likewise.
4878 * cris-tdep.c (cris_sigtramp_frame_unwind_cache, cris_scan_prologue)
4879 (crisv32_scan_prologue, cris_unwind_pc, cris_register_size)
4880 (cris_register_type, crisv32_register_type, crisv32_register_name)
4881 (cris_dwarf2_frame_init_reg, find_step_target)
4882 (cris_software_single_step, cris_supply_gregset)
4883 (cris_regnums): Likewise.
4884 * alpha-linux-nat.c (alpha_linux_register_u_offset): Likewise.
4885 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
4886 (fill_sprs64, fill_sprs32, store_regs_user_thread): Likewise.
4887 * std-regs.c (value_of_builtin_frame_pc_reg): Likewise.
4888 * mips-linux-tdep.c (mips_linux_write_pc): Likewise.
4890 * gdbarch.sh (PS_REGNUM): Replace by gdbarch_ps_regnum.
4891 * dbug-rom.c (dbug_supply_register): Likewise.
4892 * xtensa-tdep.c (xtensa_supply_gregset, xtensa_frame_cache)
4893 (xtensa_frame_prev_register, xtensa_push_dummy_call): Likewise.
4894 * win32-nat.c (win32_resume): Likewise.
4895 * std-regs.c (value_of_builtin_frame_ps_reg): Likewise.
4896 * m68k-tdep.c (m68k_register_type): Likewise.
4897 * m68klinux-nat.c (supply_gregset): Likewise.
4899 * gdbarch.sh (FP0_REGNUM): Replace by gdbarch_fp0_regnum.
4900 * sh-tdep.c (sh_extract_return_value_fpu, sh_store_return_value_fpu)
4901 (sh2e_show_regs, sh2a_show_regs, sh3e_show_regs, sh4_show_regs)
4902 (sh_sh2a_register_type, sh_sh3e_register_type, sh_sh4_register_type)
4903 (fv_reg_base_num, dr_reg_base_num): Likewise.
4904 * sh64-tdep.c (sh64_fv_reg_base_num, sh64_dr_reg_base_num)
4905 (sh64_fpp_reg_base_num, sh64_compact_reg_base_num, sh64_push_dummy_call)
4906 (sh64_extract_return_value, sh64_store_return_value)
4907 (sh64_show_media_regs, sh64_show_compact_regs, sh64_register_type)
4908 (sh64_do_fp_register, sh64_media_print_registers_info): Likewise.
4909 * procfs.c (procfs_fetch_registers, procfs_store_registers)
4910 (invalidate_cache): Likewise.
4911 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache): Likewise.
4912 * mipsnbsd-tdep.c (mipsnbsd_supply_fpreg)
4913 (mipsnbsd_fill_fpreg): Likewise.
4914 * mipsnbsd-nat.c (mipsnbsd_fetch_inferior_registers)
4915 (mipsnbsd_store_inferior_registers): Likewise.
4916 * mips-linux-tdep.c (mips_supply_fpregset, mips_fill_fpregset)
4917 (mips64_supply_fpregset, mips64_fill_fpregset): Likewise.
4918 * mips-linux-nat.c (mips64_linux_register_addr): Likewise.
4919 * m68k-tdep.c (m68k_register_type, m68k_convert_register_p): Likewise.
4920 * m68klinux-nat.c (getfpregs_supplies, supply_fpregset)
4921 (fill_fpregset): Likewise.
4922 * irix5-nat.c (supply_fpregset, fill_fpregset): Likewise.
4923 * i386-tdep.h (struct_return): Likewise (comment).
4924 * i386-nto-tdep.c (i386nto_register_area): Likewise.
4925 * go32-nat.c (fetch_register, go32_fetch_registers, store_register)
4926 (go32_store_registers): Likewise.
4927 * alpha-tdep.c (alpha_next_pc): Likewise.
4928 * alpha-linux-nat.c (alpha_linux_register_u_offset): Likewise.
4929 * alphabsd-nat.c (alphabsd_fetch_inferior_registers)
4930 (alphabsd_store_inferior_registers): Likewise.
4931 * core-regset.c (fetch_core_registers): Likewise.
4932 * i386v4-nat.c (supply_fpregset, fill_fpregset): Likewise.
4934 * gdbarch.c, gdbarch.h: Regenerate.
4936 2007-06-18 Daniel Jacobowitz <dan@codesourcery.com>
4938 * coffread.c (coff_sym_fns): Add default_symfile_segments.
4939 * dbxread.c (start_psymtab): Check HAVE_ELF.
4940 (aout_sym_fns): Likewise.
4941 * elfread.c (elf_symfile_segments): New.
4942 (elf_sym_fns): Add elf_symfile_segments.
4943 * mipsread.c (ecoff_sym_fns): Add default_symfile_segments.
4944 * remote.c (get_offsets): Use symfile_map_offsets_to_segments.
4945 Skip if there is no symfile_objfile. Handle TextSeg and DataSeg.
4946 * somread.c (som_sym_fns): Use default_symfile_segments.
4947 * symfile.c (find_sym_fns): Take a BFD and return the sym_fns.
4948 (init_objfile_sect_indices): Call symfile_find_segment_sections.
4949 (default_symfile_segments): New function.
4950 (syms_from_objfile): Update call to find_sym_fns.
4951 (symfile_get_segment_data, free_symfile_segment_data): New.
4952 (symfile_map_offsets_to_segments): New.
4953 (symfile_find_segment_sections): New.
4954 * symfile.h (struct symfile_segment_data): New.
4955 (struct sym_fns): Add sym_segments.
4956 (default_symfile_segments, symfile_get_segment_data)
4957 (free_symfile_segment_data): New prototypes.
4958 (symfile_map_offsets_to_segments): Likewise.
4959 * xcoffread.c (xcoff_sym_fns): Add default_symfile_segments.
4960 * Makefile.in (COMMON_OBS): Remove elfread.o.
4961 (elf_internal_h): New.
4962 (elfread.o): Update.
4963 * configure.ac: Add elfread.o to COMMON_OBS if bfd/elf.o was
4965 * config.in, configure: Regenerated.
4966 * NEWS: Mention qOffsets changes.
4968 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
4970 * gdbtypes.h (builtin_type_m2_char, builtin_type_m2_int,
4971 builtin_type_m2_card, builtin_type_m2_real, builtin_type_m2_bool):
4972 Replace global variable declaration with compatibility macro.
4973 (struct builtin_m2_type): New data type.
4974 (builtin_m2_type): Add prototype.
4975 * m2-lang.c (builtin_type_m2_char, builtin_type_m2_int,
4976 builtin_type_m2_card, builtin_type_m2_real, builtin_type_m2_bool):
4977 Remove global variables.
4978 (m2_language_arch_info): Use builtin_m2_type instead of variables.
4979 (build_m2_types): New function.
4980 (m2_type_data): New variable.
4981 (builtin_m2_type): New function.
4982 (_initialize_m2_language): Do not build data types. Register
4983 m2_type_data per-gdbarch data.
4985 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
4987 * gdbtypes.h (builtin_type_f_character, builtin_type_f_logical,
4988 builtin_type_f_logical_s1, builtin_type_f_logical_s2,
4989 builtin_type_f_integer, builtin_type_f_integer_s2, builtin_type_f_real,
4990 builtin_type_f_real_s8, builtin_type_f_real_s16,
4991 builtin_type_f_complex_s8, builtin_type_f_complex_s16,
4992 builtin_type_f_complex_s32, builtin_type_f_void): Replace global
4993 variable declaration with compatibility macro.
4994 (struct builtin_f_type): New data type.
4995 (builtin_f_type): Add prototype.
4996 * f-lang.c (builtin_type_f_character, builtin_type_f_logical,
4997 builtin_type_f_logical_s1, builtin_type_f_logical_s2,
4998 builtin_type_f_integer, builtin_type_f_integer_s2, builtin_type_f_real,
4999 builtin_type_f_real_s8, builtin_type_f_real_s16,
5000 builtin_type_f_complex_s8, builtin_type_f_complex_s16,
5001 builtin_type_f_complex_s32, builtin_type_f_void): Remove variables.
5002 (f_language_arch_info): Use builtin_f_type instead of variables.
5003 (build_fortran_types): Build builtin_f_type structure instead of
5004 setting global type variables.
5005 (f_type_data): New variable.
5006 (builtin_f_type): New function.
5007 (_initialize_f_language): Do not call build_fortran_types. Do not
5008 swap global type variables. Register f_type_data per-gdbarch data.
5010 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
5012 * f-lang.c (_initialize_f_language): Do not initialize or
5013 swap builtin_type_string.
5015 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
5017 * std-regs.c (builtin_type_frame_reg, build_builtin_type_frame_reg,
5018 value_of_builtin_frame_reg): Remove.
5019 (_initialize_frame_reg): Do not swap builtin_type_frame_reg. Remove
5020 inactive call to value_of_builtin_frame_reg.
5022 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
5024 * gdbarch.sh (bfd_vma_bit): Remove.
5025 * gdbarch.c, gdbarch.h: Regenerate.
5027 * gdbtypes.h (builtin_bfd_vma_type): Remove.
5028 * gdbtypes.h (builtin_bfd_vma_type): Remove.
5029 (build_gdbtypes): Do not initialize it.
5030 (_initialize_gdbtypes): Do not swap it.
5032 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
5034 * gdbtypes.c (builtin_type_v2_double, builtin_type_v4_float,
5035 builtin_type_v2_int64, builtin_type_v4_int32, builtin_type_v8_int16,
5036 builtin_type_v16_int8, builtin_type_v2_float, builtin_type_v2_int32,
5037 builtin_type_v4_int16, builtin_type_v8_int8, builtin_type_v4sf,
5038 builtin_type_v4si, builtin_type_v16qi, builtin_type_v8qi,
5039 builtin_type_v8hi, builtin_type_v4hi, builtin_type_v2si,
5040 builtin_type_vec64, builtin_type_vec128): Remove.
5041 (init_simd_type): Remove.
5042 (init_vector_type): Make global.
5043 (build_builtin_type_vec64, build_builtin_type_vec128): Remove.
5044 (build_gdbtypes): Do not build vector types.
5045 (_initialize_gdbtypes): Do not swap vector types.
5046 * gdbtypes.h (builtin_type_v2_double, builtin_type_v4_float,
5047 builtin_type_v2_int64, builtin_type_v4_int32, builtin_type_v8_int16,
5048 builtin_type_v16_int8, builtin_type_v2_float, builtin_type_v2_int32,
5049 builtin_type_v4_int16, builtin_type_v8_int8, builtin_type_v4sf,
5050 builtin_type_v4si, builtin_type_v16qi, builtin_type_v8qi,
5051 builtin_type_v8hi, builtin_type_v4hi, builtin_type_v2si,
5052 builtin_type_vec64, builtin_type_vec128): Remove declarations.
5053 (init_vector_type): Add prototype.
5055 * i386-tdep.h (struct gdbarch_tdep): Add i386_mmx_type and
5056 i386_sse_type members.
5057 (i386_mmx_type, i386_sse_type): Change from variables to functions.
5058 * i386-tdep.c (i386_mmx_type, i386_sse_type): Remove variables.
5059 (i386_init_types): Do not build vector types.
5060 (i386_mmx_type, i386_sse_type): New functions.
5061 (i386_register_type): Call them instead of using global variables.
5062 (i386_gdbarch_init): Use XCALLOC to allocate tdep structure.
5063 * amd64-tdep.c (amd64_register_type): Call i386_sse_type instead
5064 of using global variable.
5066 * rs6000-tdep.h (struct gdbarch_tdep): Add ppc_builtin_type_vec64
5067 and ppc_builtin_type_vec128 members.
5068 * rs6000-tdep.c (rs6000_builtin_type_vec64): New function.
5069 (rs6000_builtin_type_vec128): Likewise.
5070 (rs6000_register_type): Call them instead of using builtin_type_vec64
5071 and builtin_type_vec128.
5072 (rs6000_gdbarch_init): Use XCALLOC to allocate tdep structure.
5074 * spu-tdep.c (struct gdbarch_tdep): New data type.
5075 (spu_builtin_type_vec128): Remove variable.
5076 (spu_builtin_type_vec128): New function.
5077 (spu_register_type): Call it instead of using global variable.
5078 (spu_gdbarch_init): Allocate tdep structure.
5079 (spu_init_vector_type): Remove function.
5080 (_initialize_spu_tdep): Do not call it.
5082 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
5084 * amd64-tdep.c (struct amd64_register_info): Remove.
5085 (amd64_register_info): Remove.
5086 (amd64_register_names): New static variable.
5087 (AMD64_NUM_REGS): Use amd64_register_names instead of
5088 amd64_register_info.
5089 (amd64_register_name): Likewise.
5090 (amd64_register_type): Do not refer to amd64_register_info.
5092 * s390-tdep.c (struct s390_register_info): Remove.
5093 (s390_register_info): Remove.
5094 (s390_register_name): Do not refer to s390_register_info.
5095 (s390_register_type): Likewise.
5097 * sparc64-tdep.c (struct sparc64_register_info): Remove.
5098 (sparc64_register_info, sparc64_pseudo_register_info): Remove.
5099 (sparc64_register_names, sparc64_pseudo_register_names): New.
5100 (SPARC64_NUM_REGS, SPARC64_NUM_PSEUDO_REGS): Use
5101 sparc64_register_names and sparc64_pseudo_register_names instead of
5102 sparc64_register_info and sparc64_pseudo_register_info.
5103 (sparc64_register_name): Likewise.
5104 (sparc64_register_type): Do not refer to sparc64_register_info
5105 and sparc64_pseudo_register_info.
5107 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
5109 * c-lang.c (cplus_builtin_types): Remove.
5110 (enum cplus_primitive_types): New data type.
5111 (cplus_language_arch_info): New function.
5112 (cplus_language_defn): Set la_language_arch_info member. Do not set
5113 la_builtin_type_vector and string_char_type members.
5115 * f-lang.c (f_builtin_types): Remove.
5116 (enum f_primitive_types): New data type.
5117 (f_language_arch_info): New function.
5118 (f_language_de): Set la_language_arch_info member. Do not set
5119 la_builtin_type_vector and string_char_type members.
5121 * m2-lang.c (m2_builtin_types): Remove.
5122 (enum m2_primitive_types): New data type.
5123 (m2_language_arch_info): New function.
5124 (m2_language_defn): Set la_language_arch_info member. Do not set
5125 la_builtin_type_vector and string_char_type members.
5127 * objc-lang.c (objc_builtin_types): Remove.
5128 (objc_language): Set la_language_arch_info member. Do not set
5129 la_builtin_type_vector and string_char_type members.
5131 * p-lang.c (pascal_builtin_types): Remove.
5132 (enum pascal_primitive_types): New data type.
5133 (pascal_language_arch_info): New function.
5134 (pascal_language_defn): Set la_language_arch_info member. Do not set
5135 la_builtin_type_vector and string_char_type members.
5137 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
5139 * regcache.c (struct regcache): Add ptid_t member.
5140 (regcache_xmalloc): Initialize it.
5141 (regcache_cpy_no_passthrough): Do not refer to current_regcache.
5142 (regcache_dup): Likewise.
5143 (regcache_dup_no_passthrough): Likewise.
5144 (current_regcache): Make static.
5145 (registers_ptid): Remove variable.
5146 (get_thread_regcache): New function.
5147 (get_current_regcache): New function.
5148 (registers_changed): Implement by freeing current regcache.
5149 (regcache_raw_read): Do not refer to current_regcache. Set
5150 inferior_ptid to regcache->ptid while calling target routines.
5151 (regcache_raw_write): Likewise.
5152 (regcache_raw_supply): Do not refer to current_regcache.
5153 (read_pc_pid): Use thread regcache. Do not modify inferior_ptid.
5154 (write_pc_pid): Likewise.
5155 (build_regcache): Remove.
5156 (_initialize_regcache): Do not call DEPRECATED_REGISTER_GDBARCH_SWAP
5157 or deprecated_register_gdbarch_swap. Do not initialize
5159 * regcache.h (get_current_regcache): Add prototype.
5160 (get_thread_regcache): Likewise.
5161 (current_regcache): Remove declaration.
5163 * corelow.c (core_open): Replace current_regcache by
5164 get_current_regcache ().
5165 * frame.c (frame_pop): Likewise.
5166 (put_frame_register): Likewise.
5167 (get_current_frame, create_new_frame): Likewise.
5168 * mi/mi-main.c (mi_cmd_data_write_register_values): Likewise.
5169 * stack.c (return_command): Likewise.
5170 * infcall.c (call_function_by_hand): Likewise.
5171 * infrun.c (resume): Likewise.
5172 (save_inferior_status, restore_inferior_status): Likewise.
5173 * linux-fork.c (fork_load_infrun_state): Likewise.
5174 (fork_save_infrun_state): Likewise.
5175 * win32-nat.c (win32_resume): Likewise.
5176 * i386fbsd-nat.c (i386fbsd_resume): Likewise.
5177 * monitor.c (monitor_wait): Likewise.
5178 * remote.c (remote_wait): Likewise.
5179 * remote-mips.c (mips_wait): Likewise.
5181 * bsd-kvm.c (bsd_kvm_open): Likewise
5182 (bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd): Likewise.
5183 * fbsd-nat.c (fbsd_make_corefile_notes): Likewise.
5184 * i386-linux-nat.c (i386_linux_resume): Likewise.
5185 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Likewise.
5186 (ia64_linux_stopped_data_address): Likewise.
5188 * frv-tdep.c (frv_fdpic_loadmap_addresses): Likewise.
5189 * m32c-tdep.c (m32c_virtual_frame_pointer): Likewise.
5190 * mep-tdep.c (current_me_module, current_options): Likewise.
5191 * mips-tdep.c (deprecated_mips_set_processor_regs_hack): Likewise.
5193 * linux-nat.c (linux_nat_do_thread_registers): Use thread
5194 regcache instead of current_regcache. Call target_fetch_registers.
5195 (linux_nat_corefile_thread_callback): Update call site.
5196 (linux_nat_do_registers): Likewise.
5197 * procfs.c (procfs_do_thread_registers): Use thread regcache instead
5198 of current_regcache.
5199 (procfs_make_note_section): Likewise.
5200 * proc-service.c (ps_lgetregs, ps_lsetregs): Likewise.
5201 (ps_lgetfpregs, ps_lsetfpregs): Likewise.
5202 * sol-thread.c (ps_lgetregs, ps_lsetregs): Likewise.
5203 (ps_lgetfpregs, ps_lsetfpregs): Likewise.
5205 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
5207 * regcache.c (read_register, read_register_pid): Remove.
5208 (write_register, write_register_pid): Likewise.
5209 * regcache.h (read_register, read_register_pid): Remove prototype.
5210 (write_register, write_register_pid): Likewise.
5212 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
5214 * gdbarch.sh (read_pc): Add REGCACHE argument. Remove PTID argument.
5215 (write_pc): Likewise. Remove default implementation, add predicate.
5216 * gdbarch.c, gdbarch.h: Regenerate.
5217 * regcache.c (read_pc_pid): Use current regcache instead of calling
5219 (write_pc_pid): Check gdbarch_write_pc predicate, implement default
5221 (generic_target_write_pc): Remove.
5222 * inferior.h (generic_target_write_pc): Remove.
5223 * frv-tdep.c (frv_gdbarch_init): Do not install it.
5224 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
5225 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
5226 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
5227 * sh-tdep.c (sh_gdbarch_init): Likewise.
5228 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
5230 * avr-tdep.c (avr_read_pc): Add REGCACHE argument. Remove PTID
5231 argument. Use REGCACHE instead of calling read_register_pid.
5232 * hppa-hpux-tdep.c (hppa_hpux_read_pc): Likewise.
5233 * hppa-tdep.c (hppa_read_pc): Likewise.
5234 * hppa-tdep.h (hppa_read_pc): Likewise.
5235 * ia64-tdep.c (ia64_read_pc): Likewise.
5236 * m32r-tdep.c (m32r_read_pc): Likewise.
5237 * mep-tdep.c (mep_read_pc): Likewise.
5238 * mn10300-tdep.c (mn10300_read_pc): Likewise.
5239 * spu-tdep.c (spu_read_pc): Likewise.
5241 * arm-tdep.c (arm_write_pc): Add REGCACHE argument. Remove PTID
5242 argument. Use REGCACHE instead of calling write_register_pid.
5243 * avr-tdep.c (avr_write_pc): Likewise.
5244 * hppa-hpux-tdep.c (hppa_hpux_write_pc): Likewise.
5245 * hppa-tdep.c (hppa_write_pc): Likewise.
5246 * hppa-tdep.h (hppa_write_pc): Likewise.
5247 * i386-linux-tdep.c (i386_linux_write_pc): Likewise.
5248 * amd64-linux-tdep.c (amd64_linux_write_pc): Likewise.
5249 * ia64-linux-tdep.c (ia64_linux_write_pc): Likewise.
5250 * ia64-tdep.c (ia64_write_pc): Likewise.
5251 * ia64-tdep.h (ia64_write_pc): Likewise.
5252 * m32r-tdep.c (m32r_write_pc): Likewise.
5253 * m88k-tdep.c (m88k_write_pc): Likewise.
5254 * mep-tdep.c (mep_write_pc): Likewise.
5255 * mips-tdep.c (mips_write_pc): Likewise.
5256 * mips-linux-tdep.c (mips_linux_write_pc): Likewise.
5257 * mn10300-tdep.c (mn10300_write_pc): Likewise.
5258 * sparc-tdep.c (sparc_write_pc): Likewise.
5259 * spu-tdep.c (spu_write_pc): Likewise.
5261 * mips-tdep.c (read_signed_register): Remove.
5262 (read_signed_register_pid): Likewise.
5263 (mips_read_pc): Add REGCACHE argument. Remove PTID argument.
5264 Use REGCACHE instead of calling read_signed_register_pid.
5266 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
5268 * gdbarch.sh (push_dummy_code): Add REGCACHE argument.
5269 * gdbarch.c, gdbarch.h: Regenerate.
5270 * infcall.c (generic_push_dummy_code): Add REGCACHE argument.
5271 (push_dummy_code): Likewise. Pass it to callee.
5272 (call_function_by_hand): Pass current regcache to push_dummy_code.
5274 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Add REGCACHE
5275 argument. Use it instead of current_regcache.
5277 * cris-tdep.c (cris_push_dummy_code): Add REGCACHE argument.
5278 * sparc-tdep.c (sparc32_push_dummy_code): Likewise.
5280 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
5282 * gdbarch.sh (get_longjmp_target): Add FRAME argument.
5283 * gdbarch.c, gdbarch.h: Regenerate.
5284 * infrun.c (handle_inferior_event): Pass current frame to
5285 gdbarch_get_longjmp_target.
5287 * alpha-tdep.c (alpha_get_longjmp_target): Add FRAME argument.
5288 Read registers from FRAME instead of using read_register.
5289 Use get_frame_arch instead of current_gdbarch.
5290 * arm-tdep.c (arm_get_longjmp_target): Likewise.
5291 * i386-tdep.c (i386_get_longjmp_target): Likewise.
5292 * m68k-tdep.c (m68k_get_longjmp_target): Likewise.
5293 * mips-linux-tdep.c (mips_linux_get_longjmp_target): Likewise.
5294 (mips64_linux_get_longjmp_target): Likewise.
5295 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Likewise.
5297 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
5299 * gdbarch.sh (skip_trampoline_code): Add FRAME argument.
5300 * gdbarch.c, gdbarch.h: Regenerate.
5301 * arch-utils.c (generic_skip_trampoline_code): Add FRAME argument.
5302 * arch-utils.h (generic_skip_trampoline_code): Likewise.
5303 * infrun.c (handle_inferior_event): Pass current frame to
5304 gdbarch_skip_trampoline_code and skip_language_trampoline.
5306 * language.c (unk_lang_trampoline): Add FRAME argument.
5307 (skip_language_trampoline): Add FRAME argument. Pass it to
5308 skip_trampoline callback.
5309 * language.h: Add forward declaration of struct frame_info.
5310 (struct language_defn): Add FRAME argument to skip_trampoline.
5311 (skip_language_trampoline): Add FRAME argument.
5312 * cp-abi.c (cplus_skip_trampoline): Add FRAME argument. Pass it
5313 to skip_trampoline callback.
5314 * cp-abi.h: Add forward declaration of struct frame_info.
5315 (cplus_skip_trampoline): Add FRAME argument.
5316 (struct cp_abi_ops): Add FRAME argument to skip_trampoline callback.
5317 * gnu-v3-abi.c (gnuv3_skip_trampoline): Add FRAME argument. Pass it
5318 to gdbarch_skip_trampoline_code.
5319 * objc-lang.c (objc_skip_trampoline): Add FRAME argument. Pass it
5320 to gdbarch_skip_trampoline_code.
5322 * minsyms.c (find_solib_trampoline_target): Add FRAME argument.
5323 * symtab.h (find_solib_trampoline_target): Likewise.
5324 * obsd-tdep.c (obsd_skip_solib_resolver): Pass current frame to
5325 find_solib_trampoline_target.
5327 * arm-tdep.c (arm_skip_stub): Add FRAME argument. Read registers
5328 from FRAME instead of calling read_register.
5330 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code): Add FRAME
5331 argument. Read registers from FRAME instead of using read_register.
5332 * hppa-tdep.c (hppa_skip_trampoline_code): Likewise.
5333 * hppa-tdep.h (hppa_skip_trampoline_code): Add FRAME argument.
5335 * i386-cygwin-tdep.c (i386_cygwin_skip_trampoline_code): Add FRAME
5338 * m32c-tdep.c (m32c_skip_trampoline_code): Add FRAME argument.
5340 * mips-tdep.c (mips_skip_trampoline_code): Add FRAME argument. Read
5341 registers from FRAME instead of using read_signed_register.
5343 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Add FRAME
5345 (ppc64_standard_linkage_target): Likewise. Read registers from FRAME
5346 instead of using read_register.
5347 (ppc64_skip_trampoline_code): Add FRAME argument. Pass it to
5348 ppc64_standard_linkage_target.
5349 * rs6000-tdep.c (rs6000_skip_trampoline_code): Add FRAME argument.
5350 Pass it to find_solib_trampoline_target. Read registers from FRAME
5351 instead of using read_register.
5353 * xstormy16-tdep.c (xstormy16_skip_trampoline_code): Add FRAME
5356 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
5358 * gdbarch.sh (software_single_step): Replace REGCACHE argument by
5360 * gdbarch.c, gdbarch.h: Regenerate.
5361 * infrun.c (resume): Pass current frame to SOFTWARE_SINGLE_STEP.
5363 * alpha-tdep.c (alpha_next_pc): Add FRAME argument. Retrieve
5364 registers from FRAME instead of using read_register.
5365 (alpha_software_single_step): Replace REGCACHE by FRAME. Pass FRAME
5366 to alpha_next_pc. Use get_frame_pc instead of read_pc.
5367 * alpha-tdep.h (alpha_software_single_step): Replace REGCACHE
5370 * arm-tdep.c (shifted_reg_val): Add FRAME argument. Read registers
5371 from FRAME instead of using read_register.
5372 (thumb_get_next_pc): Likewise.
5373 (arm_get_next_pc): Likewise.
5374 (arm_software_single_step): Replace REGCACHE by FRAME. Pass FRAME
5375 to arm_get_next_pc. Use get_frame_pc instead of read_register.
5376 * arm-tdep.h (arm_software_single_step): Replace REGCACHE
5379 * cris-tdep.c (find_step_target): Add FRAME argument. Read registers
5380 from FRAME instead of using read_register.
5381 (cris_software_single_step): Replace REGCACHE by FRAME. Pass FRAME
5382 to find_step_target.
5384 * mips-tdep.c (mips32_next_pc): Add FRAME argument. Read registers
5385 from FRAME instead of using read_register / read_signed_register.
5386 (extended_mips16_next_pc): Likewise.
5387 (mips16_next_pc): Likewise.
5388 (mips_next_pc): Likewise.
5389 (mips_software_single_step): Replace REGCACHE by FRAME. Pass FRAME
5390 to mips_next_pc. Use get_frame_pc instead of read_pc.
5391 * mips-tdep.h (mips_software_single_step): Replace REGCACHE
5394 * rs6000-tdep.c (branch_dest): Add FRAME argument. Use it instead
5395 of current frame. Read registers from FRAME.
5396 (deal_with_atomic_sequence): Add FRAME argument. Pass it to
5397 branch_dest. Use get_frame_pc instead of read_pc.
5398 (rs6000_software_single_step): Likewise.
5399 (bl_to_blrl_insn_p): Do not call branch_dest.
5400 * rs6000-tdep.h (rs6000_software_single_step): Replace REGCACHE
5403 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Add FRAME argument.
5404 Read registers from FRAME instead of current regcache.
5405 * sparc-linux-tdep.c (sparc32_linux_step_trap): Likewise.
5406 * sparcnbsd-tdep.c (sparcnbsd_step_trap): Likewise.
5407 * sparc-tdep.c (sparc_address_from_register): Remove.
5408 (sparc_analyze_control_transfer): Pass FRAME argument instead of
5409 GDBARCH. Pass FRAME to step_trap callback.
5410 (sparc_step_trap): Add FRAME argument.
5411 (space_software_single_step): Replace REGCACHE by FRAME. Pass FRAME
5412 to sparc_analyze_control_transfer. Read registers from FRAME instead
5413 of calling sparc_address_from_register.
5414 * sparc-tdep.h (struct gdbarch_tdep): Add FRAME argument to
5416 (sparc_address_from_register): Remove prototype.
5417 (sparc_software_single_step): Replace REGCACHE argument by FRAME.
5418 (sparcnbsd_step_trap): Add FRAME argument.
5420 * spu-tdep.c (spu_software_single_step): Replace REGCACHE argument
5421 by FRAME. Read registers from FRAME instead of REGCACHE.
5423 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
5425 * arm-tdep.c (arm_print_float_info): Use register value from FRAME
5426 instead of calling read_register.
5428 * avr-tdep.c (avr_push_dummy_call): Write to REGCACHE instead of
5429 calling write_register.
5431 * hppa-tdep.c (hppa32_push_dummy_call): Write to REGCACHE instead of
5432 calling write_register.
5434 * ia64-tdep.c (find_func_descr): Add REGCACHE parameter. Use it
5435 instead of calling read_register.
5436 (ia64_push_dummy_call): Update call to find_func_descr. Use REGCACHE
5437 instead of calling read_register and write_register.
5439 * m32r-tdep.c (m32r_linux_supply_gregset): Use REGCACHE parameter
5440 instead of current_regcache.
5442 * mn10300-tdep.c (mn10300_push_dummy_call): Write to REGCACHE instead
5443 of calling write_register.
5444 * mn10300-linux-tdep.c (am33_supply_fpregset_method): Use REGCACHE
5445 parameter instead of current_regcache.
5447 * mips-tdep.c (mips2_fp_compat): Add FRAME parameter. Use it
5448 instead of calling read_register.
5449 (mips_read_fp_register_double, mips_print_fp_register): Update calls.
5450 (mips_eabi_push_dummy_call): Use REGCACHE instead of write_register.
5451 (mips_n32n64_push_dummy_call): Likewise.
5452 (mips_o32_push_dummy_call): Likewise.
5453 (mips_o64_push_dummy_call): Likewise.
5455 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Use REGCACHE
5456 parameter instead of current_regcache.
5458 * xtensa-tdep.c (xtensa_register_write_masked): Add REGCACHE parameter.
5459 Use it instead of read_register and write_register.
5460 (xtensa_register_read_masked): Likewise.
5461 (xtensa_pseudo_register_read): Update call.
5462 (xtensa_pseudo_register_write): Likewise.
5463 (xtensa_frame_cache): Use register values unwound from NEXT_FRAME
5464 instead of calling read_register.
5465 (xtensa_push_dummy_call): Update comment.
5467 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
5469 * mips-tdep.c (mips16_scan_prologue): Replace read_next_frame_reg
5470 by frame_unwind_register_signed calls.
5471 (mips32_scan_prologue): Likewise. Skip analysis of alloca stack
5472 frame allocations when called with NULL NEXT_FRAME parameter.
5473 (read_next_frame_reg): Remove.
5475 * sh-tdep.c (sh_analyze_prologue): Add FPSCR parameter. Use it
5476 instead of reading the FPSCR register.
5477 (sh_frame_cache): Pass unwound FPSCR register value to
5478 sh_analyze_prologue.
5479 (sh_skip_prologue): Pass dummy FPSCR value to sh_analyze_prologue.
5481 * v850-tdep.c (v850_analyze_prologue): Add CTBP parameter. Use it
5482 instead of reading the CTBP register.
5483 (v850_frame_cache): Pass unwound CTBP register value to
5484 v850_analyze_prologue.
5486 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
5488 * sh-tdep.h (sh_show_regs): Add FRAME parameter.
5489 * sh-tdep.c (sh_show_regs): Likewise.
5490 (sh_show_regs_command): Pass current frame to sh_show_regs routine.
5491 (sh_generic_show_regs): Add FRAME parameter. Use register
5492 values from that frame instead of calling read_register.
5493 (sh3_show_regs, sh2e_show_regs, sh2a_show_regs, sh2a_nofpu_show_regs,
5494 sh3e_show_regs, sh3_dsp_show_regs, sh4_show_regs, sh4_nofpu_show_regs,
5495 sh_dsp_show_regs): Likewise.
5496 * sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs,
5497 sh64_show_regs): Likewise.
5499 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
5501 * mips-tdep.c (deprecated_mips_set_processor_regs_hack): Read from
5502 current regcache instead of calling read_register.
5504 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
5506 * mep-tdep.c (current_me_module): Read from current regcache
5507 instead of calling read_register.
5508 (current_options): Likewise.
5510 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
5512 * cris-tdep.c (cris_stopped_data_address): Read register values
5513 from current frame instead of calling read_register.
5514 * frv-tdep.c (frv_stopped_data_address): Likewise.
5516 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
5518 * solib-sunos.c (sunos_solib_create_inferior_hook): Use write_pc
5519 instead of write_register (PC_REGNUM, ...).
5521 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
5523 * solib-sunos.c (sunos_solib_create_inferior_hook): Add comment
5524 explaining why the PC adjustment code is necessary.
5526 2007-06-15 Vladimir Prus <vladimir@codesourcery.com>
5528 * m68k-tdep.h (enum m68k_flavour): New.
5529 (struct gdbarch_tdep): New fields
5530 float_return, flavour and fpregs_present.
5531 * m68k-tdep.c (m68k_register_type): Use
5532 fpregs_present and conditionalize floating
5533 registers type on flavour.
5534 (m68k_register_names): New.
5535 (m68k_register_name): Use the above.
5536 (m68k_convert_register_p): Consult fpregs_present.
5537 (m68k_register_to_value, m68k_value_to_register):
5538 Use register_type to obtain the type of floating
5540 (m68k_svr4_extract_return_value): Check tdep->float_return.
5541 Use register_type to get the type of floating
5543 (m68k_svr4_store_return_value): Likewise.
5544 (m68k_dwarf_reg_to_regnum): Check tdep->fpregs_present.
5545 (m68k_analyze_register_saves): Likewise.
5546 (m68k_gdbarch_init): Extract infromation
5547 from XML description, if present. Guess coldfire by
5548 looking at the file, if present. Conditionalize
5549 setting of long double format. Set decr_pc_after_break
5550 to 2 on coldfire and fido. Enable XML-driven
5551 register description.
5552 * m68kbsd-tdep.c (m68kbsd_fpreg_offset): Use
5553 size of tdep->fpreg_type, as opposed to hardcoded value.
5554 * Makefile.in (m68k-tdep.o): Update dependencies.
5556 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
5558 * NEWS: Mention "info spu" commands and qXfer:spu:read and
5559 qXfer:spu:write remote packet types.
5561 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
5563 * xml-tdesc.c (tdesc_start_target): New.
5564 (target_attributes): New.
5565 (tdesc_elements): Use it.
5566 * features/gdb-target.dtd: Add #FIXED version attribute for
5569 2007-06-13 Arthur Huillet <arthur.huillet@free.fr>
5571 * mi/mi-cmd-var.c (mi_cmd_var_assign): Fix typo.
5573 2007-06-13 Claudio Fontana <claudio.fontana@gmail.com>
5575 * fork-child.c (fork_inferior): Update comment.
5577 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
5579 * features/Makefile: Generate regformats for mips-linux and
5581 * features/sort-regs.xsl: Correct typo.
5582 * regformats/reg-mips.dat, regformats/reg-mips64.dat: Delete.
5583 * regformats/mips-linux.dat, regformats/mips64-linux.dat: New generated
5586 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
5588 * config/mips/linux.mh (TDEP_XML): New.
5589 * features/mips-linux.xml, features/mips64-linux.xml: New files.
5590 * mips-linux-nat.c (mips_linux_register_addr): Handle
5591 MIPS_RESTART_REGNUM.
5592 (mips64_linux_register_addr): Likewise.
5593 (super_xfer_partial, mips_linux_xfer_partial): New.
5594 (_initialize_mips_linux_nat): Add them to the target_ops.
5595 * mips-linux-tdep.c (mips_supply_gregset): Handle MIPS_RESTART_REGNUM.
5596 (mips_fill_gregset, mips64_supply_gregset, mips64_fill_gregset)
5597 (mips_linux_o32_sigframe_init)
5598 (mips_linux_n32n64_sigframe_init): Likewise.
5599 (mips_linux_write_pc, mips_linux_restart_reg_p): New.
5600 (mips_linux_init_abi): Use mips_linux_write_pc. Check for the
5601 "org.gnu.gdb.mips.linux" feature.
5602 * mips-linux-tdep.h (MIPS_RESTART_REGNUM): New constant.
5603 (mips_linux_restart_reg_p): New prototype.
5604 * mips-tdep.c (mips_gdbarch_init): Pass tdesc_data to the OS/ABI
5605 initialization routine.
5606 * Makefile.in (mips-linux-tdep.o, mips-linux-nat.o): Update.
5608 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
5610 * Makefile.in (mips-tdep.o): Update.
5611 * mips-tdep.c (struct register_alias, mips_o32_aliases)
5612 (mips_n32_n64_aliases, mips_register_aliases): New.
5613 (mips_register_name): Call tdesc_register_name.
5614 (mips_tdesc_register_reggroup_p): New.
5615 (mips_pseudo_register_type, value_of_mips_user_reg): New.
5616 (mips_gdbarch_init): Add target-described register support.
5617 Register aliases for register names.
5618 * target-descriptions.c (tdesc_register_name): Make global.
5619 (tdesc_register_in_reggroup_p): New function, broken out from
5620 tdesc_register_reggroup_p.
5621 (tdesc_register_reggroup_p): Use it.
5622 * target-descriptions.h (tdesc_register_name)
5623 (tdesc_register_in_reggroup_p): New prototypes.
5624 * NEWS: Correct formatting. Mention MIPS register support.
5625 * features/mips-cp0.xml, features/mips-fpu.xml,
5626 features/mips64-cp0.xml, gdb/features/mips64-fpu.xml, mips-cpu.xml,
5627 features/mips64-cpu.xml: New files.
5629 2007-06-13 Markus Deuling <deuling@de.ibm.com>
5631 * gdbarch.sh (TARGET_ADDR_BIT): Replace by gdbarch_addr_bit.
5632 * valops.c (value_cast): Likewise.
5633 * utils.c (strlen_paddr, paddr, paddr_nz, paddress): Likewise.
5634 * ui-out.c (ui_out_field_core_addr): Likewise.
5635 * tracepoint.c (tracepoints_info): Likewise.
5636 * symtab.c (print_msymbol_info): Likewise.
5637 * solib-irix.c (irix_current_sos)
5638 (irix_open_symbol_file_object): Likewise.
5639 * remote.c (build_remote_gdbarch_data): Likewise.
5640 * prologue-value.c (make_pv_area): Likewise.
5641 * procfs.c (info_mappings_callback): Likewise.
5642 * printcmd.c (print_scalar_formatted)
5643 (deprecated_print_address_numeric): Likewise.
5644 * memattr.c (mem_info_command): Likewise.
5645 * linux-nat.c (linux_nat_info_proc_cmd): Likewise.
5646 * gdbtypes.c (build_flt, gdbtypes_post_init): Likewise.
5647 * exec.c (print_section_info): Likewise.
5648 * dwarf2read.c (read_subrange_type): Likewise.
5649 * dwarf2loc.c (find_location_expression): Likewise.
5650 * dwarf2expr.c (dwarf2_read_address, unsigned_address_type)
5651 (signed_address_type, execute_stack_op): Likewise.
5652 * breakpoint.c (print_one_breakpoint, breakpoint_1): Likewise.
5653 * gdbarch.c, gdbarch.h: Regenerate.
5655 2007-06-13 Markus Deuling <deuling@de.ibm.com>
5657 * gdbarch.sh (TARGET_ARCHITECTURE): Replace by gdbarch_bfd_arch_info.
5658 * arch-utils.c (show_architecture): Likewise.
5659 * remote-mips.c (mips_open): Likewise
5660 * nto-tdep.c (nto_find_and_open_solib)
5661 (nto_init_solib_absolute_prefix): Likewise.
5662 * nto-procfs (procfs_open): Likewise.
5663 * m68hc11-tdep.c (gdb_print_insn_m68hc11): Likewise.
5664 * gcore.c (default_gcore_mach, default_gcore_arch): Likewise.
5665 * gdbarch.c, gdbarch.h: Regenerate.
5667 2007-06-13 Markus Deuling <deuling@de.ibm.com>
5669 * gdbarch.sh (TARGET_BFD_VMA_BIT): Replace by gdbarch_bfd_vma_bit.
5670 * gdbtypes.c (build_flt): Likewise.
5671 * gdbarch.c, gdbarch.h: Regenerate.
5673 2007-06-13 Markus Deuling <deuling@de.ibm.com>
5675 * gdbarch.sh (BREAKPOINT_FROM_PC): Replace by
5676 gdbarch_breakpoint_from_pc.
5677 * s390-tdep.c (s390_gdbarch_init): Likewise (comment).
5678 * remote.c (remote_insert_breakpoint)
5679 (remote_insert_hw_breakpoint): Likewise.
5680 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Likewise.
5681 * mips-tdep.c (mips_breakpoint_from_pc): Likewise (comment).
5682 * breakpoint.h (bp_target_info): Likewise (comment).
5683 * breakpoint.c (read_memory_nobpt): Likewise.
5684 * mem-break.c (default_memory_insert_breakpoint): Likewise.
5685 (symtab.h, breakpoint.h): Remove include. Remove unnecessary comment.
5686 * gdbarch.c, gdbarch.h: Regenerate.
5688 2007-06-13 Markus Deuling <deuling@de.ibm.com>
5690 * gdbarch.sh (TARGET_PTR_BIT): Replace with gdbarch_ptr_bit.
5691 * solib-svr4.c (svr4_truncate_ptr): Likewise.
5692 * solib-pa64.c (read_dynamic_info): Likewise.
5693 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets): Likewise.
5694 * solib.c (info_sharedlibrary_command): Likewise.
5695 * s390-nat.c (SUBOFF): Likewise.
5696 * p-valprint.c (pascal_val_print): Likewise.
5697 * procfs.c (info_proc_mappings): Likewise.
5698 * printcmd.c (decode_format): Likewise.
5699 * nto-tdep.c (nto_truncate_ptr): Likewise.
5700 * mips-linux-tdep.c (mips_linux_get_longjmp_target)
5701 (mips64_linux_get_longjmp_target): Likewise.
5702 * m68k-tdep.c (m68k_get_longjmp_target): Likewise.
5703 * jv-valprint.c (java_value_print): Likewise.
5704 * jv-lang.c (get_java_object_header_size): Likewise.
5705 * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Likewise.
5706 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
5707 (hppa_hpux_unwind_adjust_stub): Likewise.
5708 * gnu-v3-abi.c (build_gdb_vtable_type): Likewise.
5709 * gdbtypes.c (make_pointer_type, make_reference_type)
5710 (smash_to_memberptr_type): Likewise.
5711 * gdbarch.c, gdbarch.h: Regenerate.
5713 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
5715 * mips-tdep.c (mips_print_register): Remove unused ALL argument.
5716 (print_gp_register_row): Stop before printing a register bigger
5717 than the ABI register size.
5718 (mips_print_registers_info): Update call to mips_print_register.
5720 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
5722 * expression.h (enum exp_opcode): Document a register name for
5724 * parse.c (write_dollar_variable): Write the register name for
5726 (operator_length_standard): Expect the register name following
5728 * ada-lang.c (resolve_subexp): Likewise.
5729 * ax-gdb.c (gen_expr): Likewise.
5730 * eval.c (evaluate_subexp_standard): Likewise.
5731 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
5733 * tracepoint.c (encode_actions): Likewise.
5735 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
5737 * utils.c (set_screen_size): Use INT_MAX for default columns.
5739 2007-06-13 Ulrich Weigand <uweigand@de.ibm.com>
5741 * remote.c (remote_protocol_features): Add qXfer:spu:read and
5742 qXfer:spu:write packet types.
5744 2007-06-12 Markus Deuling <deuling@de.ibm.com>
5746 * gdbarch.sh (DEPRECATED_STACK_ALIGN): Remove.
5747 * gdbarch.c, gdbarch.h: Regenerate.
5749 2007-06-12 Markus Deuling <deuling@de.ibm.com>
5751 * gdbarch.sh (STAB_REG_TO_REGNUM): Replace by
5752 gdbarch_stab_reg_to_regnum.
5753 * stabsread.c (define_symbol): Likewise.
5754 * gdbarch.sh (ECOFF_REG_TO_REGNUM): Replace by
5755 gdbarch_ecoff_reg_to_regnum.
5756 * mdebugread.c (parse_symbol): Likewise.
5757 * i386-tdep.c (i386_gdbarch_init): Likewise (comment).
5758 * gdbarch.sh (DWARF_REG_TO_REGNUM): Replace by
5759 gdbarch_dwarf_reg_to_regnum.
5760 * gdbarch.sh (SDB_REG_TO_REGNUM): Replace by gdbarch_sdb_reg_to_regnum.
5761 * coffread.c (process_coff_symbol): Likewise.
5762 * gdbarch.sh (DWARF2_REG_TO_REGNUM): Replace by
5763 gdbarch_dwarf2_reg_to_regnum.
5764 * dwarf2loc.c (dwarf_expr_read_reg,dwarf2_evaluate_loc_desc)
5765 (locexpr_describe_location): Likewise.
5766 * dwarf2-frame.c (read_reg,execute_cfa_program,dwarf2_frame_cache)
5767 (dwarf2_frame_prev_register,dwarf2_signal_frame_this_id): Likewise.
5768 * dwarf2loc.c (DWARF2_REG_TO_REGNUM): Remove macro.
5769 * dwarf2read.c (DWARF2_REG_TO_REGNUM): Remove macro.
5770 * gdbarch.c, gdbarch.h: Regenerate.
5772 2007-06-12 Markus Deuling <deuling@de.ibm.com>
5774 * gdbarch.sh (SMASH_TEXT_ADDRESS): Replace by
5775 gdbarch_smash_text_address.
5776 * somread.c (som_symtab_read): Likewise.
5777 * elfread.c (record_minimal_symbol): Likewise.
5778 * dbxread.c (process_one_symbol): Likewise.
5779 * coffread.c (coff_symtab_read): Likewise.
5780 * gdbarch.c, gdbarch.h: Regenerate.
5782 2007-06-12 Markus Deuling <deuling@de.ibm.com>
5784 * gdbarch.sh (REGISTER_TO_VALUE): Replace by gdbarch_register_to_value.
5785 * findvar.c (value_from_register): Likewise.
5786 * gdbarch.sh (VALUE_TO_REGISTER): Replace by gdbarch_value_to_register.
5787 * valops.c (value_assign): Likewise.
5788 * gdbarch.sh (CONVERT_REGISTER_P): Replace by
5789 gdbarch_convert_register_p.
5790 * findvar.c (value_from_register): Likewise.
5791 * valops.c (value_assign): Likewise.
5792 * gdbarch.c, gdbarch.h: Regenerate.
5794 2007-06-12 Markus Deuling <deuling@de.ibm.com>
5796 * gdbarch.sh (REGISTER_SIM_REGNO): Replace by
5797 gdbarch_register_sim_regno.
5798 * sim-regno.h (sim_regno): Likewise (comment).
5799 * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register): Likewise.
5800 * gdbarch.c, gdbarch.h: Regenerate.
5802 2007-06-12 Markus Deuling <deuling@de.ibm.com>
5804 * gdbarch.sh (TARGET_VIRTUAL_FRAME_POINTER): Replace by
5805 gdbarch_virtual_frame_pointer.
5806 * tracepoint.c (encode_actions): Likewise.
5807 * dwarf2loc.c (dwarf2_loc_desc_needs_frame): Likewise.
5808 * ax-gdb.c (gen_frame_args_address, gen_frame_locals_address): Likewise.
5809 * gdbarch.c, gdbarch.h: Regenerate.
5811 2007-06-12 Markus Deuling <deuling@de.ibm.com>
5813 * gdbarch.sh (TARGET_FLOAT_BIT): Replace by gdbarch_float_bit.
5814 * p-lang.c (pascal_create_fundamental_type): Likewise.
5815 * objc-lang.c (objc_create_fundamental_type): Likewise.
5816 * mdebugread.c (_initialize_mdebugread): Likewise.
5817 * m2-lang.c (m2_create_fundamental_type)
5818 (_initialize_m2_language): Likewise.
5819 * gdbtypes.c (build_gdbtypes): Likewise.
5820 * f-lang.c (f_create_fundamental_type, build_fortran_types): Likewise.
5821 * doublest.c (floatformat_from_length): Likewise.
5822 * c-lang.c (c_create_fundamental_type): Likewise.
5823 * ada-lang.c (ada_create_fundamental_type)
5824 (ada_language_arch_info): Likewise.
5825 * gdbarch.sh (TARGET_FLOAT_FORMAT): Replace by gdbarch_float_format.
5826 * value.c (unpack_double): Likewise (comment).
5827 * gdbtypes.c (build_gdbtypes): Likewise.
5828 * doublest.c (floatformat_from_length): Likewise.
5829 * gdbarch.sh (TARGET_DOUBLE_BIT): Replace by gdbarch_double_bit.
5830 * valarith.c (value_binop): Likewise.
5831 * p-lang.c (pascal_create_fundamental_type): Likewise.
5832 * objc-lang.c (objc_create_fundamental_type): Likewise.
5833 * mdebugread.c (_initialize_mdebugread): Likewise.
5834 * m2-lang.c (m2_create_fundamental_type): Likewise.
5835 * gdbtypes.c (build_gdbtypes): Likewise.
5836 * f-lang.c (f_create_fundamental_type, build_fortran_types): Likewise.
5837 * doublest.c (floatformat_from_length): Likewise.
5838 * cris-tdep.c (cris_gdbarch_init): Likewise (comment).
5839 * c-lang.c (c_create_fundamental_type): Likewise.
5840 * ada-lex.l (processReal): Likewise.
5841 * ada-lang.c (ada_create_fundamental_type)
5842 (ada_language_arch_info): Likewise.
5843 * gdbarch.sh (TARGET_DOUBLE_FORMAT): Replace by gdbarch_double_format.
5844 * value.c (unpack_double): Likewise (comment).
5845 * gdbtypes.c (build_gdbtypes): Likewise.
5846 * doublest.c (floatformat_from_length): Likewise.
5847 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Replace by
5848 gdbarch_long_double_bit.
5849 * p-lang.c (pascal_create_fundamental_type): Likewise.
5850 * objc-lang.c (objc_create_fundamental_type): Likewise.
5851 * m2-lang.c (m2_create_fundamental_type): Likewise.
5852 * gdbtypes.c (build_gdbtypes): Likewise.
5853 * f-lang.c (f_create_fundamental_type, build_fortran_types): Likewise.
5854 * doublest.c (floatformat_from_length): Likewise.
5855 * c-lang.c (c_create_fundamental_type): Likewise.
5856 * ada-lex.l (processReal): Likewise.
5857 * ada-lang.c (ada_create_fundamental_type)
5858 (ada_language_arch_info): Likewise.
5859 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Replace by
5860 gdbarch_long_double_format.
5861 * gdbtypes.c (build_gdbtypes): Likewise.
5862 * doublest.c (floatformat_from_length): Likewise.
5863 * gdbarch.c, gdbarch.h: Regenerate.
5865 2007-06-12 Markus Deuling <deuling@de.ibm.com>
5867 * gdbarch.sh (TARGET_SHORT_BIT): Replace by gdbarch_int_bit.
5868 * ada-lang.c (ada_create_fundamental_type)
5869 (ada_language_arch_info): Likewise.
5870 * c-lang.c (c_create_fundamental_type): Likewise.
5871 * f-lang.c (f_create_fundamental_type, build_fortran_types): Likewise.
5872 * gdbtypes.c (build_gdbtypes, gdbtypes_post_init): Likewise.
5873 * m2-lang.c (m2_create_fundamental_type): Likewise.
5874 * objc-lang.c (objc_create_fundamental_type): Likewise.
5875 * p-lang.c (pascal_create_fundamental_type): Likewise.
5876 * gdbarch.sh (TARGET_INT_BIT): Replace by gdbarch_int_bit.
5877 * c-exp.y (parse_number): Likewise.
5878 * objc-exp.y (parse_number): Likewise.
5879 * ada-lex.l (processInt): Likewise.
5880 * f-exp.y (parse_number): Likewise.
5881 * p-exp.y (parse_number): Likewise.
5882 * ada-lang.c (ada_create_fundamental_type, ada_language_arch_info)
5883 (gdbtypes_post_init, build_gdbtypes): Likewise.
5884 * p-lang.c (pascal_create_fundamental_type): Likewise.
5885 * parse.c (build_parse): Likewise.
5886 * xcoffread.c (_initialize_xcoffread): Likewise.
5887 * stabsread.c (define_symbol, read_one_struct_field, read_enum_type)
5888 (read_range_type): Likewise.
5889 * objc-lang.c (objc_create_fundamental_type): Likewise.
5890 * f-lang.c (build_fortran_types, f_create_fundamental_type): Likewise.
5891 * m2-lang.c (m2_create_fundamental_type, _initialize_m2_language)
5892 (m2_create_fundamental_type): Likewise.
5893 * c-lang.c (c_create_fundamental_type): Likewise.
5894 * coffread.c (coff_read_enum_type): Likewise.
5895 * mdebugread.c (parse_symbol, _initialize_mdebugread): Likewise.
5896 * dwarf2read.c (new_symbol): Likewise.
5897 * gdbarch.sh (TARGET_LONG_BIT): Replace by gdbarch_long_bit.
5898 * c-exp.y (parse_number): Likewise.
5899 * objc-exp.y (parse_number): Likewise.
5900 * ada-lex.l (processInt): Likewise.
5901 * f-exp.y (parse_number): Likewise.
5902 * p-exp.y (parse_number): Likewise.
5903 * valarith.c (value_binop): Likewise.
5904 * symfile.c (read_target_long_array, simple_overlay_update_1): Likewise.
5905 * ada-lang.c (ada_create_fundamental_type)
5906 (ada_language_arch_info): Likewise.
5907 * gdbtypes.c (build_gdbtypes, gdbtypes_post_init): Likewise.
5908 * symfile.c (TARGET_LONG_BYTES): Likewise.
5909 * p-lang.c (pascal_create_fundamental_type): Likewise.
5910 * objc-lang.c (objc_create_fundamental_type): Likewise.
5911 * m2-lang.c (m2_create_fundamental_type): Likewise.
5912 * f-lang.c (f_create_fundamental_type): Likewise.
5913 * c-lang.c (c_create_fundamental_type): Likewise.
5914 * coffread.c (decode_base_type): Likewise.
5915 * gdbarch.sh (TARGET_LONG_LONG_BIT): Replace by gdbarch_long_long_bit.
5916 * c-exp.y (parse_number): Likewise.
5917 * objc-exp.y (parse_number): Likewise.
5918 * p-exp.y (parse_number): Likewise.
5919 * ada-lang.c (ada_create_fundamental_type)
5920 (ada_language_arch_info): Likewise.
5921 * gdbtypes.c (gdbtypes_post_init, build_gdbtypes): Likewise.
5922 * stabsread.c (read_range_type): Likewise.
5923 * p-lang.c (pascal_create_fundamental_type): Likewise.
5924 * objc-lang.c (objc_create_fundamental_type): Likewise.
5925 * m2-lang.c (m2_create_fundamental_type): Likewise.
5926 * f-lang.c (f_create_fundamental_type): Likewise.
5927 * c-lang.c (c_create_fundamental_type): Likewise.
5928 * gdbarch.c, gdbarch.h: Regenerate.
5930 2007-06-12 Andreas Schwab <schwab@suse.de>
5932 * frame-unwind.h (frame_dealloc_cache_ftype): Define.
5933 (struct frame_unwind): Add dealloc_cache.
5934 * frame.c (reinit_frame_cache): Call dealloc_cache on all caches.
5936 * libunwind-frame.h (libunwind_frame_dealloc_cache): Declare.
5937 * libunwind-frame.c (libunwind_frame_dealloc_cache): Define.
5938 (libunwind_frame_unwind): Set dealloc_cache.
5939 * ia64-tdep.c (ia64_libunwind_frame_unwind): Set dealloc_cache.
5941 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
5942 Markus Deuling <deuling@de.ibm.com>
5944 * remote.c (remote_write_qxfer): New function.
5945 (remote_xfer_partial): Add handling for TARGET_OBJECT_SPU.
5946 (remote_read_qxfer): Do not cache empty objects.
5947 (_initialize_remote): Add PACKET_qXfer_spu_read and
5948 PACKET_qXfer_spu_write.
5950 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
5952 * target.h (enum target_object): Add TARGET_OBJECT_SPU.
5953 * spu-linux-nat.c (spu_xfer_partial): Handle TARGET_OBJECT_SPU.
5955 * spu-tdep.h (SPU_NUM_PSEUDO_REGS): Add 5 pseudo registers.
5956 (enum spu_regnum): Add SPU_FPSCR_REGNUM, SPU_SRR0_REGNUM,
5957 SPU_LSLR_REGNUM, SPU_DECR_REGNUM, SPU_DECR_STATUS_REGNUM.
5958 * spu-tdep.c (infospucmdlist): New variable.
5959 (spu_register_name): Handle additional pseudo registers.
5960 (spu_register_type): Likewise.
5961 (spu_pseudo_register_read): Likewise.
5962 (spu_pseudo_register_write): Likewise.
5963 (spu_pseudo_register_read_spu): New function.
5964 (spu_pseudo_register_write_spu): Likewise.
5965 (info_spu_event_command): New function.
5966 (info_spu_signal_command): Likewise.
5967 (info_spu_mailbox_list): Likewise.
5968 (info_spu_mailbox_command): Likewise.
5969 (spu_mfc_get_bitfield): Likewise.
5970 (info_spu_dma_cmdlist): Likewise.
5971 (info_spu_dma_command): Likewise.
5972 (info_spu_proxydma_command): Likewise.
5973 (info_spu_command): Likewise.
5974 (_initialize_spu_tdep): Install "info spu" commands.
5976 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
5978 * spu-linux-nat.c (spu_proc_xfer_spu): Do not return failure when
5979 accessing non-seekable spufs files.
5981 2007-06-09 Markus Deuling <deuling@de.ibm.com>
5983 * gdbarch.sh (SKIP_TRAMPOLINE_CODE): Replace by
5984 gdbarch_skip_trampoline_code.
5985 * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Likewise (comment).
5986 * objc-lang.c (objc_skip_trampoline)
5987 (objc_submethod_helper_data): Likewise.
5988 * m32c-lang.c (m32c_skip_trampoline_code): Likewise (comment).
5989 * infrun.c (handle_inferior_event): Likewise.
5990 * gnu-v3-abi.c (gnuv3_skip_trampoline): Likewise.
5991 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Replace by
5992 gdbarch_in_solib_return_trampoline.
5993 * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Likewise (comment).
5994 * infrun.c (handle_inferior_event): Likewise.
5995 * hppa-tdep.c (hppa_stub_unwind_sniffer): Likewise.
5996 * gdbarch.c, gdbarch.h: Regenerate.
5998 2007-06-09 Markus Deuling <deuling@de.ibm.com>
6000 * gdbarch.sh (SKIP_PROLOGUE): Replace by gdbarch_skip_prologue.
6001 * symtab.c (find_function_start_sal, in_prologue): Likewise.
6002 * linespec.c (minsym_found): Likewise.
6003 * infrun.c (step_into_function): Likewise.
6004 * gdbarch.c, gdbarch.h: Regenerate.
6006 2007-06-09 Markus Deuling <deuling@de.ibm.com>
6008 * gdbarch.sh (NAME_OF_MALLOC): Replace by gdbarch_name_of_malloc.
6009 * valops.c (value_allocate_space_in_inferior): Likewise.
6010 * gdbarch.c, gdbarch.h: Regenerate.
6012 2007-06-09 Markus Deuling <deuling@de.ibm.com>
6014 * gdbarch.sh (MEMORY_INSERT_BREAKPOINT): Replace by
6015 gdbarch_memory_insert_breakpoint.
6016 * mem-break.c (memory_insert_breakpoint): Likewise.
6017 * gdbarch.sh (MEMORY_REMOVE_BREAKPOINT): Replace by
6018 gdbarch_memory_remove_breakpoint.
6019 * mem-break.c (memory_remove_breakpoint): Likewise.
6020 * gdbarch.c, gdbarch.h: Regenerate.
6022 2007-06-09 Markus Deuling <deuling@de.ibm.com>
6024 * gdbarch.sh (FETCH_TLS_LOAD_MODULE_ADDRESS): Replace by
6025 gdbarch_fetch_tls_load_module_address.
6026 * gdbarch.sh (FETCH_TLS_LOAD_MODULE_ADDRESS_P): Replace by
6027 gdbarch_fetch_tls_load_module_address_p.
6028 * gdbarch.c, gdbarch.h: Regenerate.
6030 2007-06-09 Markus Deuling <deuling@de.ibm.com>
6032 * gdbarch.sh (DECR_PC_AFTER_BREAK): Replace by
6033 gdbarch_decr_pc_after_break.
6034 * tracepoint.c (trace_dump_command): Likewise.
6035 * solib-sunos.c (sunos_solib_create_inferior_hook): Likewise.
6036 * linux-thread-db.c (check_event): Likewise.
6037 * linux-nat.c (cancel_breakpoints_callback): Likewise.
6038 * infrun.c (adjust_pc_after_break, normal_stop): Likewise.
6039 * frame.h: Likewise (comment).
6040 * dummy-frame.c (deprecated_pc_in_call_dummy): Likewise.
6041 * aix-thread.c (aix_thread_wait): Likewise.
6042 * gdbarch.c, gdbarch.h: Regenerate.
6044 2007-06-09 Markus Deuling <deuling@de.ibm.com>
6046 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS): Replace by
6047 gdbarch_address_class_type_flags.
6048 * dwarf2read.c (read_tag_pointer_type): Likewise.
6049 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS_P): Replace by
6050 gdbarch_address_class_type_flags_p.
6051 * dwarf2read.c (read_tag_pointer_type): Likewise.
6052 * gdbarch.c, gdbarch.h: Regenerate.
6054 2007-06-09 Markus Deuling <deuling@de.ibm.com>
6056 * gdbarch.sh (ADDR_BITS_REMOVE): Replace by gdbarch_addr_bits_remove.
6057 * value.c (value_as_address): Likewise (comment).
6058 * remote-mips.c (common_breakpoint): Likewise.
6059 * regcache.c (read_pc_pid): Likewise.
6060 * printcmd.c (do_one_display): Likewise.
6061 * monitor.c (monitor_write_memory, monitor_read_memory)
6062 (monitor_insert_breakpoint): Likewise.
6063 * mips-tdep.c (heuristic_proc_start): Likewise.
6064 * infrun.c (insert_step_resume_breakpoint_at_frame)
6065 (insert_step_resume_breakpoint_at_caller): Likewise.
6066 * buildsym.c (record_line): Likewise.
6067 * arm-tdep.c (arm_scan_prologue, thumb_get_next_pc)
6068 (arm_get_next_pc): Likewise.
6069 * armnbsd-nat.c (arm_supply_gregset, fetch_register, store_register)
6070 (store_regs): Likewise.
6071 * arm-linux-tdep.c (arm_linux_supply_gregset): Likewise.
6072 * arm-linux-nat.c (fetch_register, fetch_regs): Likewise.
6073 * gdbarch.c, gdbarch.h: Regenerate.
6075 2007-06-09 Markus Deuling <deuling@de.ibm.com>
6077 * gdbarch.sh (REGISTER_NAME): Replace by gdbarch_register_name.
6078 * tracepoint.c (scope_info): Likewise.
6079 * target.c (debug_print_register): Likewise.
6080 * stack.c (frame_info): Likewise.
6081 * sh-tdep.c (sh_register_reggroup_p): Likewise.
6082 * sh64-tdep.c (sh64_do_fp_register, sh64_do_register)
6083 (sh64_media_print_registers_info)
6084 (sh64_compact_print_registers_info): Likewise.
6085 * rs6000-tdep.c (rs6000_register_reggroup_p): Likewise.
6086 * remote-sim.c (gdbsim_fetch_register): Likewise.
6087 * remote.c (packet_reg): Likewise (comment).
6088 * reggroups.c (default_register_reggroup_p): Likewise.
6089 * regcache.c (regcache_dump): Likewise.
6090 * printcmd.c (address_info): Likewise.
6091 * ppc-linux-nat.c (fetch_register, store_register): Likewise.
6092 * mt-dep.c (mt_registers_info): Likewise.
6093 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Likewise (comment).
6094 * mips-tdep.c (mips_register_reggroup_p, mips_read_fp_register_single)
6095 (mips_read_fp_register_double, mips_print_fp_register)
6096 (mips_print_register, print_gp_register_row, mips_print_registers_info)
6097 (mips_register_sim_regno): Likewise.
6098 * m68klinux-nat.c (regmap, fetch_register, store_register): Likewise.
6099 * inf-ptrace.c (inf_ptrace_fetch_register)
6100 (inf_ptrace_store_register): Likewise.
6101 * infcmd.c (default_print_registers_info): Likewise.
6102 * ia64-linux-nat.c (ia64_linux_fetch_register)
6103 (ia64_linux_store_register): Likewise.
6104 * i386-linux-nat.c (fetch_register, store_register): Likewise.
6105 * i386gnu-nat.c (gnu_fetch_registers, gnu_store_registers): Likewise.
6106 * hppa-linux-nat.c (fetch_register, store_register): Likewise.
6107 * hppa-hpux-nat.c (hppa_hpux_fetch_register)
6108 (hppa_hpux_store_register): Likewise.
6109 * findvar.c (locate_var_value): Likewise.
6110 * dwarf2loc.c (locexpr_describe_location): Likewise.
6111 * dwarf2-frame.c (execute_cfa_program): Likewise.
6112 * arm-tdep.c (arm_push_dummy_call): Likewise.
6113 * arch-utils.c (legacy_register_sim_regno): Likewise.
6114 * alpha-tdep.c (alpha_register_reggroup_p): Likewise.
6115 * alpha-nat.c (fetch_osf_core_registers): Likewise.
6116 * mi/mi-main.c (mi_cmd_data_list_register_names)
6117 (mi_cmd_data_list_changed_registers, mi_cmd_data_list_register_values)
6118 (mi_cmd_data_write_register_values): Likewise.
6119 * gdbarch.c, gdbarch.h: Regenerate.
6121 2007-06-07 Daniel Jacobowitz <dan@codesourcery.com>
6123 * target-memory.c (blocks_to_erase): Correct off-by-one error.
6125 2007-06-06 Vladimir Prus <vladimir@codesourcery.com>
6127 * remote.c (process_g_packet): Don't check size.
6128 * gdbarch.sh: Remove register_bytes_ok.
6129 * gdbarch.c: Regenerated.
6130 * gdbarch.h: Regenerated.
6131 * m68k-tdep.c (REGISTER_BYTES_NOFP): Remove.
6132 (m68k_register_bytes_ok): Remove.
6133 (m68k_gdbarch_init): Don't register m68k_register_bytes_ok.
6135 2007-06-06 Andreas Schwab <schwab@suse.de>
6137 * libunwind-frame.c (unw_destroy_addr_space_p): Define.
6138 (destroy_addr_space_name): Define.
6139 (libunwind_load): Get address of destroy_addr_space function.
6140 (libunwind_frame_cache): Destroy unw_addr_space_t object before
6141 returning unsuccessfully.
6142 (libunwind_frame_sniffer): Destroy unw_addr_space_t object before
6144 (libunwind_sigtramp_frame_sniffer): Likewise.
6145 (libunwind_get_reg_special): Likewise.
6147 2007-06-06 Markus Deuling <deuling@de.ibm.com>
6149 * gdbarch.sh (FETCH_POINTER_ARGUMENT): Replace by
6150 gdbarch_fetch_pointer_argument.
6151 * objc-lang.c (OBJC_FETCH_POINTER_ARGUMENT): Likewise.
6152 * gdbarch.c, gdbarch.h: Regenerate.
6154 2007-06-06 Markus Deuling <deuling@de.ibm.com>
6156 * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Replace by
6157 gdbarch_have_nonsteppable_watchpoint.
6158 * infrun.c (handle_inferior_event, adjust_pc_after_break): Likewise.
6159 * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Replace by
6160 gdbarch_cannot_step_breakpoint.
6161 * infrun.c (resume): Likewise.
6162 * gdbarch.c, gdbarch.h: Regenerate.
6164 2007-06-06 Markus Deuling <deuling@de.ibm.com>
6166 * gdbarch.sh (FRAME_ARGS_SKIP): Replace by gdbarch_frame_args_skip.
6167 * stack.c (print_frame_args): Likewise.
6168 * gdbarch.sh (FRAME_NUM_ARGS): Replace by gdbarch_frame_num_args.
6169 * stack.c (print_args_stub, frame_info): Likewise.
6170 * gdbarch.sh (FRAME_NUM_ARGS_P): Replace by gdbarch_frame_num_args_p.
6171 * stack.c (print_args_stub, frame_info): Likewise.
6172 * gdbarch.c, gdbarch.h: Regenerate.
6174 2007-06-06 Markus Deuling <deuling@de.ibm.com>
6176 * gdbarch.sh (COFF_MAKE_MSYMBOL_SPECIAL): Replace by
6177 gdbarch_coff_make_msymbol_special.
6178 * coffread.c (coff_symtab_read): Likewise.
6179 * gdbarch.sh (ELF_MAKE_MSYMBOL_SPECIAL): Replace by
6180 gdbarch_elf_make_msymbol_special.
6181 * elfread.c (elf_symtab_read): Likewise.
6182 * mips-tdep.c (mips_elf_make_msymbol_special): Likewise (comment).
6183 * sh64-tdep.c (MSYMBOL_IS_SPECIAL): Likewise (comment).
6184 * gdbarch.c, gdbarch.h: Regenerate.
6186 2007-06-06 Markus Deuling <deuling@de.ibm.com>
6188 * gdbarch.sh (FRAME_RED_ZONE_SIZE): Replace by
6189 gdbarch_frame_red_zone_size.
6190 * gdbarch.c, gdbarch.h: Regenerate.
6192 2007-06-06 Markus Deuling <deuling@de.ibm.com>
6194 * gdbarch.sh (INNER_THAN): Replace by gdbarch_inner_than.
6195 * infcall.c (call_function_by_hand): Likewise.
6196 * gcore.c (derive_stack_segment): Likewise.
6197 * frame.c (frame_id_inner): Likewise.
6198 * arch-utils.c (core_addr_lessthan): Likewise (comment).
6199 * ada-lang.c (ensure_lval): Likewise.
6200 * gdbarch.c, gdbarch.h: Regenerate.
6202 2007-06-06 Markus Deuling <deuling@de.ibm.com>
6204 * gdbarch.sh (ADDRESS_TO_POINTER): Replace by
6205 gdbarch_address_to_pointer.
6206 * findvar.c (store_typed_address): Likewise.
6207 * gdbtypes.c (make_pointer_type): Likewise (comment).
6208 * procfs.c (procfs_address_to_host_pointer): Likewise.
6209 * std-regs.c (value_of_builtin_frame_reg): Likewise.
6210 (value_of_builtin_frame_fp_reg): Likewise.
6211 (value_of_builtin_frame_pc_reg): Likewise.
6212 * utils.c (paddress): Likewise (comment).
6213 * gdbarch.sh (POINTER_TO_ADDRESS): Replace by
6214 gdbarch_pointer_to_address.
6215 * findvar.c (extract_typed_address): Likewise.
6216 * gdbtypes.c (make_pointer_type): Likewise (comment).
6217 * valops.c (value_cast): Likewise (comment).
6218 * gdbarch.c, gdbarch.h: Regenerate.
6220 2007-06-06 Markus Deuling <deuling@de.ibm.com>
6222 * gdbarch.sh (GET_LONGJMP_TARGET): Replace by gdbarch_get_longjmp_target.
6223 * infrun.c (handle_inferior_event): Likewise.
6224 * gdbarch.sh (GET_LONGJMP_TARGET_P): Replace by
6225 gdbarch_get_longjmp_target_p.
6226 * breakpoint.c (breakpoint_re_set): Likewise.
6227 * infrun.c (handle_inferior_event): Likewise.
6228 * gdbarch.c, gdbarch.h: Regenerate.
6230 2007-06-06 Ulrich Weigand <uweigand@de.ibm.com>
6232 * hppa-hpux-tdep.c (args_for_find_stub, HP_ACC_EH_notify_hook,
6233 HP_ACC_EH_set_hook_value, HP_ACC_EH_notify_callback, HP_ACC_EH_break,
6234 HP_ACC_EH_catch_throw, HP_ACC_EH_catch_catch, __eh_notification,
6235 hp_cxx_exception_support, hp_cxx_exception_support_initialized,
6236 eh_notify_hook_addr, eh_notify_callback_addr, eh_break_addr,
6237 eh_catch_throw_addr, break_callback_sal, setup_d_pid_in_inferior,
6238 find_stub_with_shl_get, cover_find_stub_with_shl_get,
6239 initialize_hp_cxx_exception_support, child_enable_exception_callback,
6240 current_ex_event, child_get_current_exception_event): Remove.
6241 (hppa_hpux_inferior_created): Remove.
6242 (hppa_hpux_init_abi): Do not install hppa_hpux_inferior_created.
6244 * breakpoint.h (deprecated_exception_catchpoints_are_fragile): Remove.
6245 (deprecated_exception_support_initialized): Remove.
6246 * breakpoint.c (deprecated_exception_catchpoints_are_fragile): Remove.
6247 (deprecated_exception_support_initialized): Remove.
6248 (breakpoint_init_inferior): Remove handling of non-zero
6249 deprecated_exception_catchpoints_are_fragile.
6251 * symtab.h (deprecated_hp_som_som_object_present): Remove.
6252 * symtab.c (deprecated_hp_som_som_object_present): Remove.
6253 * c-typeprint.c (c_type_print_base): Remove handling of non-zero
6254 deprecated_hp_som_som_object_present.
6255 * eval.c (evaluate_subexp_standard): Likewise.
6256 * valops.c (value_cast): Likewise.
6258 * parse.c (parse_nested_classes_for_hpacc, coloncolon): Remove.
6259 * parser-defs.h (parse_nested_classes_for_hpacc): Remove.
6260 * c-exp.y (yylex): Do not call parse_nested_classes_for_hpacc.
6262 2007-06-06 Ulrich Weigand <uweigand@de.ibm.com>
6264 * objfiles.h (ImportEntry, ExportEntry): Remove types.
6265 (struct objfile): Remove import_list, import_list_size,
6266 export_list, export_list_size members.
6267 (is_in_import_list): Remove prototype.
6268 * objfiles.c (is_in_import_list): Remove.
6269 * somread.c (init_import_symbols, init_export_symbols): Remove.
6270 (som_symfile_read): Do not call init_import_symbols. Do not
6271 set objfile->export_list and objfile->export_list_size.
6273 2007-06-05 Daniel Jacobowitz <dan@codesourcery.com>
6275 * dwarf2read.c (dwarf2_symbol_mark_computed): Fix formatting.
6276 Use the original objfile if necessary.
6278 2007-06-04 Daniel Jacobowitz <dan@codesourcery.com>
6280 * defs.h (ldirname): New prototype.
6281 * dwarf2read.c (read_file_scope): Use DW_AT_name if DW_AT_comp_dir is
6283 * utils.c (ldirname): New function.
6284 * xml-tdesc.c (file_read_description_xml): Use ldirname.
6286 2007-06-01 Ulrich Weigand <uweigand@de.ibm.com>
6288 * spu-tdep.c (spu_push_dummy_call): Store stack back chain.
6290 2007-06-01 Joel Brobecker <brobecker@adacore.com>
6292 * solib-svr4.c (svr4_solib_create_inferior_hook): Remove warning.
6294 2007-06-01 Ulrich Weigand <uweigand@de.ibm.com>
6296 * irix5-nat.c (JB_ELEMENT_SIZE, get_longjmp_target): Remove.
6298 2007-06-01 Ulrich Weigand <uweigand@de.ibm.com>
6300 * ppc-linux-tdep.c (INSTR_SC, INSTR_LI_R0_0x6666, INSTR_LI_R0_0x7777,
6301 INSTR_LI_R0_NR_sigreturn, INSTR_LI_R0_NR_rt_sigreturn): Remove.
6302 (PPC_LINUX_SIGNAL_FRAMESIZE, PPC_LINUX_REGS_PTR_OFFSET,
6303 PPC_LINUX_HANDLER_PTR_OFFSET): Remove.
6304 (ppc_linux_in_sigtramp, insn_is_sigreturn,
6305 ppc_linux_at_sigtramp_return_path): Remove.
6307 2007-05-31 Markus Deuling <deuling@de.ibm.com>
6309 * xtensa-tdep.c (XTENSA_IS_ENTRY, extract_call_winsize)
6310 (xtensa_register_write_masked, xtensa_register_read_masked)
6311 (xtensa_extract_return_value, xtensa_store_return_value
6312 (xtensa_push_dummy_call, xtensa_breakpoint_from_pc): Replace
6313 TARGET_BYTE_ORDER by gdbarch_byte_order.
6314 * sh-tdep.c (sh_breakpoint_from_pc, gdb_print_insn_sh)
6315 (sh_justify_value_in_reg, sh_next_flt_argreg, sh_push_dummy_call_fpu)
6316 (sh_extract_return_value_fpu, sh_store_return_value_fpu): Likewise.
6317 * sh64-tdep.c (sh64_breakpoint_from_pc, gdb_print_insn_sh64)
6318 (sh64_push_dummy_call, sh64_extract_return_value)
6319 (sh64_store_return_value, sh64_register_convert_to_virtual)
6320 (sh64_register_convert_to_raw, sh64_pseudo_register_read)
6321 (sh64_pseudo_register_write, sh64_do_fp_register)
6322 (sh64_frame_prev_register): Likewise.
6323 * score-tdep.c (score_print_insn, score_breakpoint_from_pc)
6324 (score_return_value, score_push_dummy_call, score_fetch_inst): Likewise.
6325 * rs6000-tdep.c (rs6000_breakpoint_from_pc, rs6000_push_dummy_call)
6326 (e500_move_ev_register,gdb_print_insn_powerpc): Likewise.
6327 * remote-m32r-sdi.c (m32r_resume, m32r_wait): Likewise.
6328 * ppc-linux-nat.c (store_register): Likewise.
6329 * nto-tdep.c (nto_find_and_open_solib)
6330 (nto_init_solib_absolute_prefix): Likewise.
6331 * mips-tdep.c (mips_pseudo_register_read, mips_pseudo_register_write)
6332 (mips_convert_register_p, mips_eabi_push_dummy_call)
6333 (mips_n32n64_push_dummy_call, mips_n32n64_return_value)
6334 (mips_o32_push_dummy_call, mips_o32_return_value)
6335 (mips_o64_push_dummy_call, mips_o64_return_value, mips_o64_return_value)
6336 (mips_read_fp_register_single, mips_read_fp_register_double)
6337 (mips_print_register, print_gp_register_row, gdb_print_insn_mips)
6338 (mips_breakpoint_from_pc): Likewise.
6339 * mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset): Likewise.
6340 * mips-linux-tdep.c (mips64_supply_fpregset, mips64_fill_fpregset)
6341 (mips_linux_o32_sigframe_init): Likewise.
6342 * m32r-tdep.c (m32r_memory_insert_breakpoint)
6343 (m32r_memory_remove_breakpoint, m32r_breakpoint_from_pc): Likewise.
6344 * libunwind-frame.c (libunwind_frame_cache, libunwind_frame_sniffer)
6345 (libunwind_sigtramp_frame_sniffer, libunwind_get_reg_special): Likewise.
6346 * iq2000-tdep.c (iq2000_breakpoint_from_pc): Likewise.
6347 * coffread.c (process_coff_symbol): Likewise.
6348 * arm-tdep.c (convert_from_extended, convert_to_extended)
6349 (gdb_print_insn_arm): Likewise.
6351 2007-05-31 Markus Deuling <deuling@de.ibm.com>
6353 * gdbarch.sh (NUM_REGS): Replace by gdbarch_num_regs.
6354 * i386-tdep.c (i386_dbx_reg_to_regnum)
6355 (i386_svr4_reg_to_regnum): Likewise.
6356 * inf-ptrace.c (inf_ptrace_fetch_registers)
6357 (inf_ptrace_store_registers): Likewise.
6358 * corelow.c (get_core_registers): Likewise.
6359 * i386-linux-nat.c (supply_gregset, fill_gregset)
6360 (i386_linux_fetch_inferior_registers)
6361 (i386_linux_store_inferior_registers): Likewise.
6362 * remote.c (init_remote_state,packet_reg_from_regnum)
6363 (packet_reg_from_pnum,process_g_packet,remote_fetch_registers)
6364 (remote_prepare_to_store,store_registers_using_G)
6365 (remote_store_registers,remote_arch_state): Likewise.
6366 * tracepoint.c (encode_actions): Likewise.
6367 * mi/mi-main.c (mi_cmd_data_list_register_names)
6368 (mi_cmd_data_list_changed_registers,mi_cmd_data_list_register_values)
6369 (mi_cmd_data_write_register_values): Likewise.
6370 * tui/tui-regs.c (tui_show_register_group)
6371 (tui_show_register_group): Likewise.
6372 * xtensa-tdep.h (FP_ALIAS): Likewise.
6373 * xtensa-tdep.c (xtensa_register_name,xtensa_register_type)
6374 (xtensa_reg_to_regnum,xtensa_pseudo_register_read)
6375 (xtensa_pseudo_register_write,xtensa_register_reggroup_p): Likewise.
6376 * win32-nat.c (do_win32_fetch_inferior_registers)
6377 (do_win32_store_inferior_registers,fetch_elf_core_registers
6378 * user-regs.h: Likewise (comment).
6379 * user-regs.c (user_reg, user_reg_map_name_to_regnum): Likewise.
6380 * trad-frame.c (trad_frame_alloc_saved_regs): Likewise.
6381 * target-descriptions.h: Likewise (comment).
6382 * target-descriptions.c (tdesc_use_registers): Likewise (comment).
6383 * target.c (debug_print_register): Likewise.
6384 * stack.c (frame_info): Likewise.
6385 * stabsread.c (define_symbol): Likewise.
6386 * sh64-tdep.c (sh64_do_pseudo_register,sh64_print_register)
6387 (sh64_media_print_registers_info)
6388 (sh64_compact_print_registers_info): Likewise.
6389 * rs6000-tdep.c (rs6000_register_sim_regno): Likewise.
6390 * rs6000-nat.c (fetch_register,store_register): Likewise.
6391 * remote-sim.c (one2one_register_sim_regno,gdbsim_fetch_register)
6392 (gdbsim_fetch_register,gdbsim_store_register): Likewise.
6393 * remote-mips.c (mips_fetch_registers,mips_store_registers): Likewise.
6394 * remote-m32r-sdi.c (m32r_fetch_registers)
6395 (m32r_store_registers): Likewise.
6396 * reggroups.c (default_register_reggroup_p): Likewise.
6397 * regcache.c (init_regcache_descr,register_size,regcache,regcache_save)
6398 (regcache_restore,regcache_dump): Likewise.
6399 * monitor.c (monitor_fetch_registers,monitor_store_registers): Likewise.
6400 * mips-tdep.c (mips_xfer_register,mips_register_name)
6401 (mips_register_reggroup_p,mips_pseudo_register_read)
6402 (mips_pseudo_register_write,mips_convert_register_p,mips_register_type)
6403 (mips_unwind_pc,mips_unwind_sp,mips_unwind_dummy_id,set_reg_offset)
6404 (mips16_scan_prologue,mips_insn16_frame_cache,reset_saved_regs)
6405 (mips32_scan_prologue,mips_insn32_frame_cache,read_next_frame_reg)
6406 (mips_n32n64_return_value,mips_o32_return_value,mips_o64_return_value)
6407 (print_gp_register_row,mips_print_registers_info)
6408 (mips_stab_reg_to_regnum,mips_dwarf_dwarf2_ecoff_reg_to_regnum)
6409 (mips_register_sim_regno): Likewise.
6410 * mips-linux-tdep.c (mips_linux_o32_sigframe_init)
6411 (mips_linux_n32n64_sigframe_init): Likewise.
6412 * mips-linux-nat.c (mips_linux_register_addr)
6413 (mips64_linux_register_addr): Likewise.
6414 * findvar.c (value_of_register): Likewise.
6415 * infcmd.c (default_print_registers_info,registers_info)
6416 (print_vector_info,print_float_info): Likewise.
6417 * mips64obsd-tdep.c (mips64obsd_sigframe_init): Likewise.
6418 * inf-child.c (inf_child_fetch_inferior_registers): Likewise.
6419 * m68k-tdep.c (m68k_dwarf_reg_to_regnum): Likewise.
6420 * m68hc11-tdep.c (m68hc11_frame_unwind_cache(: Likewise.
6421 * m32r-tdep.c (m32r_frame_unwind_cache): Likewise.
6422 * ia64-linux-nat.c (ia64_register_addr,ia64_cannot_fetch_register)
6423 (ia64_cannot_store_register,ia64_linux_fetch_registers)
6424 (ia64_linux_store_registers): Likewise.
6425 * hpux-thread.c (hpux_thread_fetch_registers)
6426 (hpux_thread_store_registers): Likewise.
6427 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM,E_PSEUDO_EXR_REGNUM)
6428 (h8300_init_frame_cache,h8300_frame_cache,h8300_frame_prev_register)
6429 (h8300_register_type): Likewise.
6430 * dwarf2-frame.c (dwarf2_frame_cache)
6431 (dwarf2_frame_state_alloc_regs): Likewise.
6432 * cris-tdep.c (cris_register_size,cris_cannot_fetch_register)
6433 (cris_cannot_store_register,crisv32_cannot_fetch_register)
6434 (crisv32_cannot_store_register,cris_register_name): Likewise.
6435 * avr-tdep.c (avr_frame_unwind_cache): Likewise.
6436 * arch-utils.c (legacy_register_sim_regno)
6437 (legacy_virtual_frame_pointer): Likewise.
6438 * arm-tdep.c (arm_make_prologue_cache,arm_register_sim_regno):Likewise.
6439 * arm-tdep.h: Likewise (comment).
6440 * frv-tdep.c (frv_register_sim_regno): Likewise.
6441 * m68klinux-nat.c (old_fetch_inferior_registers)
6442 (old_store_inferior_registers): Likewise.
6443 * m32c-tdep.c (m32c_virtual_frame_pointer): Likewise.
6444 * irix5-nat.c (fetch_core_registers): Likewise.
6445 * hppa-tdep.c (hppa_frame_cache): Likewise.
6446 * hppa-linux-nat.c (hppa_linux_register_addr)
6447 (hppa_linux_fetch_inferior_registers)
6448 (hppa_linux_store_inferior_registers): Likewise.
6449 * hppa-hpux-nat.c (hppa_hpux_fetch_inferior_registers)
6450 (hppa_hpux_store_inferior_registers): Likewise.
6451 * amd64-nat.c (amd64_native_gregset_reg_offset)
6452 (amd64_supply_native_gregset,amd64_collect_native_gregset): Likewise.
6453 * dbug-rom.c (dbug_regname): Likewise.
6454 * m68hc11-tdep.c (m68hc11_frame_unwind_cache)
6455 (HARD_PAGE_REGNUM (comment)): Likewise.
6456 * gdbarch.sh (NUM_PSEUDO_REGS): Replace by gdbarch_num_pseudo_regs.
6457 * i386-tdep.c (i386_dbx_reg_to_regnum)
6458 (i386_svr4_reg_to_regnum): Likewise.
6459 * mi/mi-main.c (mi_cmd_data_list_register_names)
6460 (mi_cmd_data_list_changed_registers,mi_cmd_data_list_register_values)
6461 (mi_cmd_data_write_register_values): Likewise.
6462 * gdbarch.c, gdbarch.h: Regenerate.
6463 * tui/tui-regs.c (tui_show_register_group): Likewise.
6464 * xtensa-tdep.h (FP_ALIAS): Likewise.
6465 * user-regs.h: Likewise (comment).
6466 * user-regs.c (user_reg, user_reg_map_name_to_regnum): Likewise.
6467 * trad-frame.c (trad_frame_alloc_saved_regs): Likewise.
6468 * target-descriptions.h: Likewise (comment).
6469 * target.c (debug_print_register): Likewise.
6470 * stack.c (frame_info): Likewise.
6471 * stabsread.c (define_symbol): Likewise.
6472 * sh64-tdep.c (sh64_print_register,sh64_media_print_registers_info)
6473 (sh64_compact_print_registers_info): Likewise.
6474 * rs6000-tdep.c (rs6000_register_sim_regno): Likewise.
6475 * regcache.c (init_regcache_descr,register_size,regcache,regcache_save
6476 (regcache_restore,regcache_dump): Likewise.
6477 * mips-tdep.c (print_gp_register_row,mips_print_registers_info)
6478 (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
6479 (mips_stab_reg_to_regnum): Likewise.
6480 * findvar.c (value_of_register): Likewise.
6481 * infcmd.c (default_print_registers_info,registers_info)
6482 (print_vector_info,print_float_info): Likewise.
6483 * m68k-tdep.c (m68k_dwarf_reg_to_regnum): Likewise.
6484 * h8300-tdep.c (h8300_register_type): Likewise.
6485 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
6486 * frame.h (SIZEOF_FRAME_SAVED_REGS): Likewise.
6487 * xtensa-tdep.c (xtensa_register_type,xtensa_reg_to_regnum)
6488 (xtensa_pseudo_register_read,xtensa_pseudo_register_write): Likewise.
6489 * parse.c: Remove comment.
6490 * gdbarch.c, gdbarch.h: Regenerate
6492 2007-05-31 Markus Deuling <deuling@de.ibm.com>
6494 * gdbarch.sh (CANNOT_FETCH_REGISTER): Replace by
6495 gdbarch_cannot_fetch_register.
6496 * alpha-nat.c (fetch_osf_core_registers): Likewise.
6497 * hppa-linux-nat.c (fetch_register): Likewise.
6498 * inf-ptrace.c (inf_ptrace_fetch_register): Likewise.
6499 * m68klinux-nat.c (fetch_register): Likewise.
6500 * mipsnbsd-tdep.c (mipsnbsd_supply_reg, mipsnbsd_supply_fpreg):
6502 * gdbarch.sh (CANNOT_STORE_REGISTER): Replace by
6503 gdbarch_cannot_store_register.
6504 * hppa-linux-nat.c (store_register): Likewise.
6505 * inf-ptrace.c (inf_ptrace_store_register): Likewise.
6506 * regcache.c (regcache_raw_write): Likewise.
6507 * m68klinux-nat.c (store_register): Likewise.
6508 * mipsnbsd-tdep.c (mipsnbsd_fill_reg, mipsnbsd_fill_fpreg): Likewise.
6509 * gdbarch.c, gdbarch.h: Regenerate.
6511 2007-05-31 Markus Deuling <deuling@de.ibm.com>
6513 * gdbarch.sh (TARGET_OSABI): Replace by gdbarch_osabi.
6514 * gdbarch.c, gdbarch.h: Regenerate.
6516 2007-05-31 Markus Deuling <deuling@de.ibm.com>
6518 * gdbarch.sh (TARGET_CHAR_SIGNED): Replace by gdbarch_char_signed.
6519 * gdbtypes.c (build_gdbtypes, gdbtypes_post_init): Likewise.
6520 * gdbarch.c, gdbarch.h: Regenerate.
6522 2007-05-31 Markus Deuling <deuling@de.ibm.com>
6524 * gdbarch.sh (TARGET_BYTE_ORDER): Replace by gdbarch_byte_order.
6525 * ax-gdb.c (gen_bitfield_ref): Likewise.
6526 * mi/mi-main.c (get_register): Likewise.
6527 * findvar.c (default_value_from_register, extract_signed_integer)
6528 (extract_unsigned_integer, extract_long_unsigned_integer)
6529 (store_signed_integer, store_unsigned_integer): Likewise.
6530 * regcache.c (regcache_dump): Likewise.
6531 * value.c (lookup_internalvar, value_of_internalvar)
6532 (set_internalvar): Likewise.
6534 * valprint.c (print_binary_chars, print_octal_chars)
6535 (print_decimal_chars, print_hex_chars, print_char_chars): Likewise.
6536 * infcmd.c (default_print_registers_info): Likewise.
6537 * arch-utils.c (selected_byte_order, show_endian): Likewise.
6538 * stabsread.c (define_symbol): Likewise.
6539 * doublest.c (floatformat_from_length, floatformat_from_type)
6540 (extract_typed_floating, store_typed_floating): Likewise.
6541 * gdbarch.c, gdbarch.h: Regenerate.
6543 2007-05-31 Markus Deuling <deuling@de.ibm.com>
6545 * gdbarch.sh (CALL_DUMMY_LOCATION): Replace by
6546 gdbarch_call_dummy_location.
6547 * infcall.c (call_function_by_hand): Likewise.
6548 * inferior.h: Change comment.
6549 * arch-utils.c: Change comment.
6550 * gdbarch.c, gdbarch.h: Regenerate.
6552 2007-05-28 Joel Brobecker <brobecker@adacore.com>
6554 * solib-aix5.c: Delete.
6555 * Makefile.in (solib-aix5.o): Delete rule.
6557 2007-05-23 Daniel Jacobowitz <dan@codesourcery.com>
6559 * breakpoint.h (enum bpstat_what_main_action): Remove
6560 BPSTAT_WHAT_THROUGH_SIGTRAMP.
6561 * infrun.c (process_event_stop_test): Do not check for it.
6563 2007-05-22 Chris Dearman <chris@mips.com>
6564 Maciej W. Rozycki <macro@mips.com>
6566 * ser-unix.c (show_serial_hwflow): New function.
6567 (hardwire_raw): Add hardware flow control support.
6568 (_initialize_ser_hardwire): Add "set/show remoteflow".
6569 * Makefile.in (ser-unix.o): Depend on $(gdbcmd_h).
6570 * NEWS: Document the new command.
6572 2007-05-21 Ulrich Weigand <uweigand@de.ibm.com>
6574 * config/i386/tm-linux.h (sys_quotactl): Do not define.
6575 * configure.ac (sys_quotactl, START_INFERIOR_TRAPS_EXPECTED): Do not
6576 define for i[[3456]]86-*-linux* native configurations.
6577 * config.in, configure: Regenerate.
6579 2007-05-19 Joel Brobecker <brobecker@adacore.com>
6581 * rs6000-nat.c (xcoff_relocate_symtab): Do nothing if debugging
6582 a core file. Add comment in the function description.
6584 2007-05-18 Caroline Tice <ctice@apple.com>
6586 * c-valprint.c (c_value_print): If the initialized field of the
6587 value struct is 0, print out "[uninitialized]" before the value.
6588 * dwarf2expr.c (execute_stack_op): Initialize ctx->initialized field;
6589 allow DW_OP_GNU_uninit as legal op following a DW_OP_reg op or a
6590 DW_OP_regx op; add case for DW_OP_GNU_uninit and update
6591 ctx->initialized appropriately. Verify no location op follows
6593 * dwarf2expr.h (struct dwarf_expr_context): New field, initialized.
6594 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Add call to
6595 set_value_initialized.
6596 * dwarf2read.c (dwarf_stack_op_name): Add case for DW_OP_GNU_uninit.
6597 (decode_locdesc): Add case for DW_OP_GNU_uninit.
6598 * value.c (struct value): New field, initialized.
6599 (allocate_value): Initialize new field.
6600 (set_value_initialized): New function.
6601 (value_initialized): New function.
6602 * value.h (value_initialized): New extern declaration.
6603 (set_value_initialized): Likewise.
6605 2007-05-18 Caroline Tice <ctice@apple.com>
6607 * MAINTAINERS (Write After Approval): Add self.
6609 2007-05-17 Joel Brobecker <brobecker@adacore.com>
6611 * gdbtypes.c (make_reference_type): Preserve the type chain
6612 and set the length of all the variants of the pointer type.
6614 2007-05-17 Joel Brobecker <brobecker@adacore.com>
6616 * gdbtypes.c (make_pointer_type): Preserve the pointer type chain
6617 and set the length of all the variants of the pointer type.
6619 2007-05-17 Maciej W. Rozycki <macro@mips.com>
6621 * mips-tdep.c (mips_n32n64_push_dummy_call): Fix and reformat a
6623 (mips_o64_push_dummy_call): Reformat a comment.
6625 2007-05-17 Qinwei <qinwei@sunnorth.com.cn>
6627 * score-tdep.c (score_frame_cache->fp, score_analyze_prologue)
6628 (score_prologue_frame_base_address): Return fp to keep gdb print
6629 local variables correctly when debugging information is stabs.
6631 (score_analyze_prologue): For software watchpoint, fetch all the
6632 instructions from range [startaddr, pc] once and identify them locally
6633 to reduce memory access.
6634 (score_malloc_and_get_memblock, score_free_memblock)
6635 (score_adjust_memblock_ptr): New functions.
6636 (score_fetch_inst): Fetch single instruction or mutiple instructions.
6638 (score_target_can_use_watch, score_stopped_by_watch)
6639 (score_target_insert_watchpoint, score_target_remove_watchpoint)
6640 (score_target_insert_hw_breakpoint, score_target_remove_hw_breakpoint):
6641 New functions for remote & local hw-watchpoint and hw-breakpoint.
6643 2007-05-16 Alfred M. Szmidt <ams@gnu.org>
6645 * reply_mig_hack.awk: Check for `auto const mach_msg_type_t'
6646 declarations as well.
6648 2007-05-16 Ulrich Weigand <uweigand@de.ibm.com>
6650 * config/arm/embed.mt (DEPRECATED_TM_FILE): Set to tm-arm.h.
6651 * config/arm/tm-embed.h: Delete file.
6653 * arm-tdep.h (arm_software_single_step): Declare.
6654 * arm-tdep.c (arm_software_single_step): Make global.
6655 (arm_gdbarch_init): Move set_gdbarch_software_single_step call
6657 * arm-linux-tdep.c (arm_linux_init_abi): ... here ...
6658 * armnbsd-tdep.c (arm_netbsd_init_abi_common): ... here ...
6659 * armobsd-tdep.c (armobsd_init_abi): ... here ...
6660 * arm-wince-tdep.c (arm_wince_init_abi): ... and here.
6662 * arm-tdep.c (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT): No longer
6663 allow defines to be overriden by TM file.
6664 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Likewise. Also,
6665 change default to {0xbe,0xbe}.
6666 * armobsd-tdep.c (arm_obsd_thumb_le_breakpoint,
6667 arm_obsd_thumb_be_breakpoint): New global variables.
6668 (armobsd_init_abi): Override tdep->thumb_breakpoint and
6669 tdep->thumb_breakpoint_size.
6670 * arm-wince-tdep.c (arm_wince_thumb_le_breakpoint): New variable.
6671 (arm_wince_init_abi): Override tdep->thumb_breakpoint and
6672 tdep->thumb_breakpoint_size.
6674 * arm-tdep.c (arm_gdbarch_init): Add set_gdbarch_skip_trampoline_code.
6676 2007-05-16 Daniel Jacobowitz <dan@codesourcery.com>
6678 * NEWS: Mention removed "set mips stack-arg-size" and "set mips
6681 * mips-tdep.c (MIPS32_REGSIZE, MIPS64_REGSIZE): New constants.
6682 (size_auto, size_32, size_64, size_enums, mips_abi_regsize_string)
6683 (mips_stack_argsize_string, mips_stack_argsize): Delete.
6684 (mips_abi_regsize): Simplify.
6685 (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call)
6686 (mips_n32n64_return_value, mips_o32_push_dummy_call)
6687 (mips_o32_return_value, mips_o64_push_dummy_call)
6688 (mips_o64_return_value): Propogate constant register sizes. Use the
6689 ABI register size instead of mips_stack_argsize.
6690 (mips_dump_tdep): Don't print mips_stack_argsize.
6691 (_initialize_mips_tdep): Remove saved-gpreg-size and stack-arg-size
6694 2007-05-16 Daniel Jacobowitz <dan@codesourcery.com>
6696 * config/mips/linux.mt (DEPRECATED_TM_FILE): Delete.
6697 * config/mips/tm-linux.h: Delete.
6698 * mips-linux-tdep.c (mips_svr4_so_ops): New.
6699 (mips_linux_in_dynsym_resolve_code): Make static. Use
6700 svr4_in_dynsym_resolve_code.
6701 (mips_linux_init_abi): Initialize mips_svr4_so_ops. Call
6703 * solib-svr4.c (svr4_in_dynsym_resolve_code, svr4_so_ops): Make
6705 * solib-svr4.h (svr4_so_ops, svr4_in_dynsym_resolve_code): Declare.
6706 * Makefile.in (mips-linux-tdep.o): Update.
6707 * solib.c (set_solib_ops): New.
6708 (current_target_so_ops): Update comment.
6709 * solib.h (set_solib_ops): New prototype.
6711 2007-05-16 Chris Dearman <chris@mips.com>
6713 * printcmd.c (do_examine): Fix typos in a comment.
6715 2007-05-16 Richard Sandiford <richard@codesourcery.com>
6717 * configure.ac: Allow sysroots to be relocated under $prefix as
6718 well as $exec_prefix.
6719 * configure: Regenerate.
6721 2007-05-14 Ulrich Weigand <uweigand@de.ibm.com>
6723 * hppa-hpux-tdep.c: Do not include <dl.h> or <machine/save_state.h>.
6724 (offsetof): Do not define.
6725 (find_stub_with_shl_get): Use numerical value 3 instead of
6726 symbolic value TYPE_PROCEDURE.
6728 2007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
6730 * gdb_proc_service.h (paddr_t): Delete typedef.
6731 * proc-service.c (ps_addr_to_core_addr, core_addr_to_ps_addr): New.
6732 (ps_xfer_memory): Take a psaddr_t. Use ps_addr_to_core_addr.
6733 (ps_pglobal_lookup): Take a psaddr_t *. Use core_addr_to_ps_addr.
6734 (ps_pdread, ps_pdwrite, ps_ptread, ps_ptwrite): Take a psaddr_t.
6735 * sol-thread.c (gdb_ps_addr_t): Use psaddr_t instead of paddr_t.
6736 * Makefile.in (proc-service.o): Update.
6738 2007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
6740 * Makefile.in (mips-tdep.o): Update.
6741 * mips-tdep.c (mips_gdbarch_init): Register the dwarf2 CFI
6744 2007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
6746 * dwarf2-frame.c (dwarf2_frame_prev_register): Use pack_long
6747 instead of store_typed_address.
6748 * value.c (pack_long): New.
6749 (value_from_longest): Use it.
6750 * value.h (pack_long): New prototype.
6752 2007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
6754 * dwarf2-frame.c (read_encoded_value): Correct typo. Use
6755 DW_EH_PE_signed if appropriate.
6757 2007-05-14 Paul Brook <paul@codesourcery.com>
6758 Daniel Jacobowitz <dan@codesourcery.com>
6760 * dwarf2read.c (dwarf2_debug_line_missing_file_complaint): New
6762 (dwarf_decode_lines): Check for line info without a file.
6764 2007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
6766 * linux-thread-db.c (thread_db_pid_to_str): Print thread IDs
6769 2007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
6771 * jv-exp.y (push_fieldnames): Use STRUCTOP_PTR instead of
6773 * jv-lang.c (evaluate_subexp_java): Handle STRUCTOP_PTR instead of
6775 * jv-typeprint.c (java_print_type): Do not crash on NULL varstring.
6777 2007-05-14 Ulrich Weigand <uweigand@de.ibm.com>
6779 * gdbarch.sh (read_sp): Remove.
6780 * gdbarch.c, gdbarch.h: Regenerate.
6781 * frame.c (frame_sp_unwind): Do not call TARGET_READ_SP.
6783 * avr-tdep.c (avr_read_sp): Remove.
6784 (avr_unwind_sp): New function.
6785 (avr_gdbarch_init): Install unwind_sp instead of read_sp callback.
6786 * mips-tdep.c (mips_read_sp): Remove.
6787 (mips_unwind_sp): New function.
6788 (mips_gdbarch_init): Install unwind_sp instead of read_sp callback.
6789 * score-tdep.c (score_read_unsigned_register): Remove.
6790 (score_read_sp): Remove.
6791 (score_unwind_sp): New function.
6792 (score_gdbarch_init): Install unwind_sp instead of read_sp callback.
6794 2007-05-14 Maxim Grigoriev <maxim2405@gmail.com>
6796 * buildsym.c (start_subfile): Handle absolute pathnames
6797 while comparing subfile names.
6799 2007-05-13 Ulrich Weigand <uweigand@de.ibm.com>
6801 * hppa-hpux-tdep.c: Include "regcache.h".
6802 * hppa-linux-tdep.c: Likewise.
6803 * hppa-tdep.c: Include "gdb_stdint.h".
6804 (find_unwind_entry): Cast host pointer to uintptr_t before passing
6806 * Makefile.in: Update dependencies.
6808 2007-05-13 Ulrich Weigand <uweigand@de.ibm.com>
6810 * blockframe.c: Remove obsolete comments.
6811 * alpha-nat.c (fetch_osf_core_registers): Update comment.
6812 * arm-tdep.h (enum gdb_regnum): Remove obsolete part of comment.
6813 * hppa-tdep.h (enum hppa_regnum): Likewise.
6814 * mips-tdep.h: Likewise.
6815 * m68hc11-tdep.c: Likewise.
6817 2007-05-13 Ulrich Weigand <uweigand@de.ibm.com>
6819 * inferior.h (read_sp): Remove prototype.
6820 * regcache.c (read_sp): Remove.
6821 * gcore.c (derive_stack_segment): Use get_frame_sp instead of read_sp.
6822 * infcall.c (call_function_by_hand): Likewise.
6823 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Use regcache instead
6825 * rs6000-tdep.c (rs6000_push_dummy_call): Likewise.
6827 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
6829 * i386-linux-nat.c (i386_linux_resume): Use regcache functions
6830 instead of read_register and read_register_pid.
6832 * ia64-linux-nat.c (enable_watchpoints_in_psr): Use REGCACHE
6833 argument instead of PTID. Use regcache functions instead of
6835 (ia64_linux_insert_watchpoint): Update call.
6836 (ia64_linux_stopped_data_address): Use regcache functions
6837 instead of read_register_pid and write_register_pid.
6839 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
6841 * libunwind-frame.h (struct regcache): Add forward declaration.
6842 (libunwind_get_reg_special): Add REGCACHE argument.
6843 * libunwind-frame.c (libunwind_get_reg_special): Add REGCACHE
6844 argument. Pass it to unw_init_remote_p.
6846 * ia64-tdep.c (ia64_pseudo_register_read): Pass regcache to
6847 libunwind_get_reg_special.
6848 (ia64_access_reg): Remove "write" case.
6849 (ia64_access_fpreg): Likewise. Read from next_frame passed
6850 as callback argument instead of from current_regcache.
6851 (ia64_access_rse_reg): Remove "write" case. Read from regcache
6852 passed as callback argument instead of from current_regcache.
6853 (ia64_access_rse_fpreg): New function.
6854 (ia64_unw_rse_acce): Use it instead of ia64_access_fpreg.
6856 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
6858 * NEWS: Mention SPU overlay support.
6860 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
6862 * spu-tdep.c (spu_frame_unwind_cache): Add comment.
6864 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
6866 * breakpoint.c (remove_breakpoint): Do not remove software
6867 breakpoints in unmapped overlay sections.
6869 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
6871 * spu-tdep.c: Include "observer.h".
6872 (spu_frame_unwind_cache): Unwind PC through overlay return stubs.
6873 (spu_overlay_data): New variable.
6874 (struct spu_overlay_table): New type.
6875 (spu_get_overlay_table, spu_overlay_update_osect, spu_overlay_update,
6876 spu_overlay_new_objfile): New functions.
6877 (spu_gdbarch_init): Install spu_overlay_update.
6878 (_initialize_spu_tdep): Register spu_overlay_new_objfile,
6879 allocate spu_overlay_data objfile data.
6881 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
6883 * gdbarch.sh (overlay_update): New gdbarch function.
6884 (struct obj_section): Add forward declaration.
6885 * gdbarch.c, gdbarch.h: Regenerate.
6887 * symfile.c (simple_overlay_update): Make global.
6888 (target_overlay_update): Remove variable.
6889 (overlay_is_mapped): Call gdbarch_overlay_update instead of
6890 target_overlay_update.
6891 (overlay_load_command): Likewise.
6892 * symfile.h (struct obj_section): Add forward declaration.
6893 (simple_overlay_update): Add prototype.
6895 * m32r-tdep.c (m32r_gdbarch_init): Install simple_overlay_update.
6897 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
6899 * observer.sh: Add "struct objfile" forward declaration.
6900 * target.h (deprecated_target_new_objfile_hook): Remove.
6901 * symfile.c (deprecated_target_new_objfile_hook): Remove.
6902 (clear_symtab_users): Call observer_notify_new_objfile.
6903 (symbol_file_add_with_addrs_or_offsets): Likewise.
6904 * rs6000-nat.c: Include "observer.h".
6905 (vmap_ldinfo): Call observer_notify_new_objfile.
6906 (xcoff_relocate_core): Likewise.
6907 * remote.c (remote_new_objfile_chain): Remove.
6908 (remote_new_objfile): Do not call remote_new_objfile_chain.
6909 (_initialize_remote): Use observer_attach_new_objfile.
6910 * tui/tui-hooks.c (tui_target_new_objfile_chain): Remove.
6911 (tui_new_objfile_hook): Do not call tui_target_new_objfile_chain.
6912 (_initialize_tui_hooks): Use observer_attach_new_objfile.
6913 * aix-thread.c: Include "observer.h".
6914 (target_new_objfile_chain): Remove.
6915 (new_objfile): Do not call target_new_objfile_chain.
6916 (_initialize_aix_thread): Use observer_attach_new_objfile.
6917 * hpux-thread.c: Include "observer.h"
6918 (target_new_objfile_chain): Remove.
6919 (hpux_thread_new_objfile): Make static. Do not call
6920 target_new_objfile_chain.
6921 (_initialize_hpux_thread): Use observer_attach_new_objfile.
6922 * linux-thread-db.c: Include "observer.h".
6923 (target_new_objfile_chain): Remove.
6924 (thread_db_new_objfile): Do not call target_new_objfile_chain.
6925 (_initialize_thread_db): Use observer_attach_new_objfile.
6926 * sol-thread.c: Include "observer.h".
6927 (target_new_objfile_chain): Remove.
6928 (sol_thread_new_objfile): Make static. Do not call
6929 target_new_objfile_chain.
6930 (_initialize_sol_thread): Use observer_attach_new_objfile.
6931 * Makefile.in (aix-thread.o, hpux-thread.o, linux-thread-db.o,
6932 rs6000-nat.o, sol-thread.o, tui-hooks.o): Add dependency on
6935 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
6937 * gdbarch.sh (remote_translate_xfer_address): Remove.
6938 * gdbarch.h, gdbarch.c: Regenerate.
6939 * arch-utils.c (generic_remote_translate_xfer_address): Remove.
6940 * arch-utils.h (generic_remote_translate_xfer_address): Remove.
6941 * remote.c (remote_write_bytes_aux, remote_read_bytes): Do not
6942 call gdbarch_remote_translate_xfer_address.
6943 * frv-tdep.c (frv_gdbarch_init): Do not call
6944 set_gdbarch_remote_translate_xfer_address.
6945 * ia64-tdep.c (ia64_remote_translate_xfer_address): Remove.
6946 (ia64_gdbarch_init): Do not install it.
6948 2007-05-11 Bob Wilson <bob.wilson@acm.org>
6950 * NEWS: Mention change in handling the -tui option.
6952 2007-05-11 Daniel Jacobowitz <dan@codesourcery.com>
6954 * linux-thread-db.c (enable_thread_event_reporting): Fix comment
6957 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
6959 * breakpoint.c (single_step_breakpoint_inserted_here_p): New function.
6960 (breakpoint_inserted_here_p): Call it.
6961 (software_breakpoint_inserted_here_p): Likewise.
6963 2007-05-10 Ulrich Weigand <uweigand@de.ibm.com>
6965 * inf-ptrace.c (inf_ptrace_register_u_offset): Adapt parameter list.
6966 (inf_ptrace_fetch_register): Add register_u_offset callback parameters
6967 GDBARCH and STORE_P. Handle callback (CORE_ADDR) -1 return value.
6968 (inf_ptrace_store_register): Likewise.
6969 (inf_ptrace_trad_target): Adapt register_u_offset parameter list.
6970 * inf-ptrace.h (inf_ptrace_trad_target): Likewise.
6972 * vax-nat.c (vax_register_u_offset): Adapt parameter list.
6974 * linux-nat.c (linux_trad_target): Adapt parameter list.
6975 * linux-nat.h (linux_trad_target): Likewise.
6977 * alpha-linux-nat.c (alpha_linux_register_u_offset): Adapt parameters.
6979 * mips-linux-nat.c (mips_linux_cannot_fetch_register): Remove.
6980 (mips_linux_cannot_store_register): Likewise.
6981 (mips_linux_register_addr): Add GDBARCH and STORE_P parameters.
6982 Return (CORE_ADDR) -1 for registers that cannot be fetched or
6983 stored via ptrace. Use GDBARCH instead of current_gdbarch.
6984 (mips64_linux_register_addr): Likewise.
6985 (mips_linux_register_u_offset): Adapt parameter list. Pass
6986 GDBARCH and STORE_P on to mips{64}_linux_register_addr.
6988 * config/mips/linux.mh (NAT_FILE): Set to config/nm-linux.h.
6989 * config/mips/nm-linux.h: Delete file.
6991 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
6993 * remote.c (remote_detach): Error out if remote can't detach.
6995 2007-05-10 Luis Machado <luisgpm@br.ibm.com>
6997 * rs6000-tdep.c: (deal_with_atomic_sequence) Stores branch
6998 instruction's opcode in the "opcode" variable and declares new
6999 variable "closing_insn".
7001 2007-05-10 Chris Dearman <chris@mips.com>
7002 Maciej W. Rozycki <macro@mips.com>
7004 * cli/cli-setshow.c (do_setshow_command): Remove trailing
7005 whitespace when setting a var_filename.
7007 2007-05-09 Bob Wilson <bob.wilson@acm.org>
7009 * main.c (captured_main): Recognize -tui option and print an error
7010 message when the TUI is not configured.
7012 2007-05-09 Andreas Schwab <schwab@suse.de>
7014 * mipsnbsd-tdep.c (mipsnbsd_ilp32_fetch_link_map_offsets): Don't
7015 set removed members.
7016 (mipsnbsd_lp64_fetch_link_map_offsets): Likewise.
7018 2007-05-08 Ulrich Weigand <uweigand@de.ibm.com>
7020 * gdbarch.sh (deprecated_store_struct_return): Remove.
7021 * gdbarch.c, gdbarch.h: Regenerate.
7022 * frv-tdep.c (frv_store_struct_return): Remove.
7023 (frv_gdbarch_init): Do not install it.
7025 2007-05-08 Ulrich Weigand <uweigand@de.ibm.com>
7027 * config/i386/nm-i386sol2.h (USE_PROC_FS): Do not define.
7028 * config/mips/nm-irix5.h (USE_PROC_FS): Do not define.
7029 * config/nm-linux.h (USE_PROC_FS): Do not undefine.
7031 2007-05-08 Ulrich Weigand <uweigand@de.ibm.com>
7033 * spu-linux-nat.c: Include "gdb_stdint.h".
7034 (fetch_ppc_register): Use uint64_t instead of unsigned long long.
7035 (fetch_ppc_memory_1, store_ppc_memory_1): Likewise.
7036 (fetch_ppc_memory, store_ppc_memory): Fix coding style.
7037 (spu_symbol_file_add_from_memory): Use strtoulst instead of sscanf.
7038 (spu_child_wait): Mark up string for translation.
7040 2007-05-08 Paul Gilliam <pgilliam@us.ibm.com>
7041 Luis Machado <luisgpm@br.ibm.com>
7043 * rs6000-tdep.c: (LWARX_MASK, LWARX_INSTRUCTION, LDARX_INSTRUCTION,
7044 STWCX_MASK, STWCX_INSTRUCTION, STDCX_INSTRUCTION, BC_MASK,
7045 BC_INSTRUCTION): Define.
7046 (deal_with_atomic_sequence): New function.
7047 (rs6000_software_single_step): Call deal_with_atomic_sequence.
7048 (rs6000_gdbarch_init): Install deal_with_atomic_sequence as
7049 gdbarch_software_single_step routine.
7051 2007-05-07 Ulrich Weigand <uweigand@de.ibm.com>
7053 * spu-linux-nat.c (fetch_ppc_register, fetch_ppc_memory_1,
7054 store_ppc_memory_1, fetch_ppc_memory, store_ppc_memory,
7055 parse_spufs_run, spu_bfd_iovec_pread, spu_bfd_open,
7056 spu_symbol_file_add_from_memory, spu_child_post_startup_inferior,
7057 spu_child_post_attach, spu_fetch_inferior_registers,
7058 spu_store_inferior_registers, spu_xfer_partial): Store PPE-side
7059 memory addresses as ULONGEST, not CORE_ADDR.
7061 2007-05-07 Ulrich Weigand <uweigand@de.ibm.com>
7063 * gdbarch.sh: Add skip_permanent_breakpoint callback.
7064 * gdbarch.h, gdbarch.c: Regenerate.
7066 * infrun.c (SKIP_PERMANENT_BREAKPOINT): Remove default definition.
7067 (resume): Call gdbarch_skip_permanent_breakpoint instead of
7068 SKIP_PERMANENT_BREAKPOINT. Inline default case.
7070 * hppa-hpux-tdep.c (hppa_skip_permanent_breakpoint): Make static.
7071 Add REGCACHE argument. Use it instead of read/write_register.
7072 (hppa_hpux_init_abi): Install hppa_skip_permanent_breakpoint.
7074 * config/pa/tm-hppah.h: Delete file.
7075 * config/pa/hppa64.mt (DEPRECATED_TM_FILE): Set to tm-hppa.h.
7076 * config/pa/hppahpux.mt (DEPRECATED_TM_FILE): Likewise.
7078 2007-05-07 Daniel Jacobowitz <dan@codesourcery.com>
7080 * Makefile.in (c-lang.o, gnu-v3-abi.o): Update.
7081 * NEWS: Mention improved C++ thunk support.
7082 * c-lang.c (cplus_language_defn): Mention cplus_skip_trampoline.
7083 * cp-abi.c (cplus_skip_trampoline): New.
7084 * cp-abi.h (cplus_skip_trampoline): New prototype.
7085 (struct cp_abi_ops): Add skip_trampoline member.
7086 * gnu-v3-abi.c (gnuv3_skip_trampoline): New.
7087 (init_gnuv3_ops): Set skip_trampoline.
7089 2007-05-06 Daniel Jacobowitz <dan@codesourcery.com>
7091 * rs6000-tdep.c (struct frame_extra_info): Delete.
7093 2007-05-06 Daniel Jacobowitz <dan@codesourcery.com>
7095 * linux-thread-db.c: Update some FIXME comments.
7096 (thread_db_xfer_partial): Delete.
7097 (init_thread_db_ops): Do not set to_xfer_partial.
7099 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7101 * inftarg.c, infptrace.c: Remove files.
7102 * Makefile.in (ALLDEPFILES): Remove inftarg.c and infptrace.c
7103 (inftarg.o, infptrace.o): Remove rules.
7104 * gdbcore.h (register_addr): Remove prototype.
7105 * inferior.h (kill_inferior, store_inferior_registers,
7106 fetch_inferior_registers, attach, detach, ptrace_wait, child_resume,
7107 call_ptrace, pre_fork_inferior): Remove prototypes.
7108 * target.h (child_xfer_memory, child_pid_to_exec_file,
7109 child_core_file_to_sym_file, child_post_attach,
7110 child_post_startup_inferior, child_acknowledge_created_inferior,
7111 child_insert_fork_catchpoint, child_remove_fork_catchpoint,
7112 child_insert_vfork_catchpoint, child_remove_vfork_catchpoint,
7113 child_insert_exec_catchpoint, child_remove_exec_catchpoint,
7114 child_follow_fork, child_reported_exec_events_per_exec_call,
7115 child_has_exited, child_thread_alive): Remove prototypes.
7117 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7119 * sparc-nat.h (sparc_fetch_inferior_registers): Add prototype.
7120 (sparc_store_inferior_registers): Likewise.
7121 * sparc-nat.c (fetch_inferior_registers): Rename to ...
7122 (sparc_fetch_inferior_registers): ... this.
7123 (store_inferior_registers): Rename to ...
7124 (sparc_store_inferior_registers): ... this.
7125 (sparc_target): Update callback names.
7126 * sparc-linux.nat.c (_initialize_sparc_linux_nat): Likewise.
7127 * sparc64-linux.nat.c (_initialize_sparc64_linux_nat): Likewise.
7129 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7131 * linux-nat.c (child_post_attach): Rename to ...
7132 (linux_child_post_attach): ... this. Make static.
7133 (child_follow_fork): Rename to ...
7134 (linux_child_follow_fork): ... this. Make static.
7135 (child_insert_fork_catchpoint): Rename to ...
7136 (linux_child_insert_fork_catchpoint): ... this. Make static.
7137 (child_insert_vfork_catchpoint): Rename to ...
7138 (linux_child_insert_vfork_catchpoint): ... this. Make static.
7139 (child_insert_exec_catchpoint): Rename to ...
7140 (linux_child_insert_exec_catchpoint): ... this. Make static.
7141 (child_pid_to_exec_file): Rename to ...
7142 (linux_child_pid_to_exec_file): ... this. Make static.
7144 (linux_handle_extended_wait): Update call.
7145 (linux_xfer_partial): Update callback routine names.
7147 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7149 * configure.host (alpha*-*-osf[12]*): Remove support.
7150 * NEWS: Mention removed configurations.
7152 * config/alpha/alpha-osf1.mh: Delete file.
7153 * config/alpha/alpha-osf2.mh: Delete file.
7154 * config/alpha/alpha-osf3.mh (NATDEPFILES): Remove inftarg.o
7156 * config/alpha/nm-osf.h: Delete file.
7157 * config/alpha/nm-osf2.h: Delete file.
7158 * config/alpha/nm-osf3.h: Do not include "nm-osf2.h".
7159 (START_INFERIOR_TRAPS_EXPECTED): Copy from nm-osf.h.
7160 (PROCFS_DONT_TRACE_FAULTS): Copy from nm-osf2.h.
7162 * alpha-nat.c (ALPHA_UNIQUE_PTRACE_ADDR): Do not define.
7163 (register_addr, kernel_u_size): Remove.
7164 Do not check for "defined(USE_PROC_FS) || defined(HAVE_GREGSET_T)".
7166 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7168 * regcache.c (regcache_invalidate): New function.
7169 (register_cached): Remove.
7170 (set_register_cached): Remove.
7171 (deprecated_registers_fetched): Remove.
7172 (registers_changed): Use regcache_invalidate instead
7173 of set_register_cached.
7174 (regcache_raw_read): Update comment.
7176 * regcache.h (regcache_invalidate): Add prototype.
7177 (register_cached): Remove.
7178 (set_register_cached): Remove.
7179 (deprecated_registers_fetched): Remove.
7181 * findvar.c (value_of_register): Do not call register_cached.
7182 * frame.c (frame_register): Likewise.
7183 * tui/tui-regs.c (tui_get_register): Likewise.
7185 * remote.c (fetch_register_using_p): Do not call set_register_cached.
7186 (process_g_packet): Likewise.
7187 (remote_fetch_registers): Likewise.
7188 * remote-sim.c (gdbsim_fetch_register): Likewise.
7189 * mt-tdep.c (mt_select_coprocessor): Replace set_register_cached call
7190 by regcache_invalidate.
7191 (mt_pseudo_register_write): Likewise.
7192 * sh-tdep.c (sh_pseudo_register_write): Likewise.
7194 * corelow.c (get_core_registers): Replace deprecated_registers_fetched
7195 call by loop over regcache_raw_supply (..., NULL).
7197 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7199 * target.h (struct target_ops): Add REGCACHE parameter to
7200 to_prepare_to_store.
7201 (target_prepare_to_store): Likewise.
7202 * target.c (debug_to_prepare_to_store): Add REGCACHE parameter.
7203 (update_current_target): Adapt prepare_to_store de_fault rule.
7205 * regcache.c (regcache_raw_write): Pass regcache to
7206 target_prepare_to_store.
7208 * inftarg.c (child_prepare_to_store): Add REGCACHE parameter.
7209 Do not call CHILD_PREPARE_TO_STORE.
7210 * gnu-nat.c (gnu_prepare_to_store): Likewise.
7211 * procfs.c (procfs_prepare_to_store): Likewise.
7213 * inf-child.c (inf_child_prepare_to_store): Add REGCACHE parameter.
7214 * go32-nat.c (go32_prepare_to_store): Likewise.
7215 * monitor.c (monitor_prepare_to_store): Likewise.
7216 * nto-procfs.c (procfs_prepare_to_store): Likewise.
7217 * remote-m32r-sdi.c (m32r_prepare_to_store): Likewise.
7218 * remote-mips.c (mips_prepare_to_store): Likewise.
7219 * remote-sim.c (gdbsim_prepare_to_store): Likewise.
7220 * win32-nat.c (win32_prepare_to_store): Likewise.
7222 * remote.c (remote_prepare_to_store): Add REGCACHE parameter.
7223 Use it instead of current_regcache.
7225 * hpux-thread.c (hpux_thread_prepare_to_store): Add REGCACHE
7226 parameter. Pass it on to next target.
7227 * sol-thread.c (sol_thread_prepare_to_store): Likewise.
7229 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7231 * target.h (struct regcache): Add forward declaration.
7232 (struct target_ops): Add REGCACHE parameter to to_fetch_registers
7233 and to_store_registers target operations.
7234 (target_fetch_registers, target_store_registers): Update.
7236 * regcache.c (regcache_raw_read): Replace register_cached by
7237 regcache_valid_p. Pass regcache to target_fetch_registers.
7238 (regcache_raw_write): Pass regcache to target_store_registers.
7240 * arm-linux-nat.c (store_fpregister, store_fpregs, store_register,
7241 store_regs, store_wmmx_regs): Replace register_cached by
7244 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd): Pass current_regcache
7245 to target_fetch_registers calls.
7246 * corelow.c (core_open): Likewise.
7247 * linux-nat.c (linux_nat_corefile_thread_callback): Likewise.
7248 * proc-service.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
7249 ps_lsetfpregs): Likewise.
7250 * sol-thread.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
7251 ps_lsetfpregs): Likewise.
7252 * win32-nat.c (win32_resume): Likewise.
7253 * ia64-tdep.c (ia64_store_return_value): Pass current_regcache
7254 to target_store_registers call.
7255 * rs6000-tdep.c (rs6000_push_dummy_call): Likewise.
7257 * inferior.h (store_inferior_registers): Update prototype.
7258 (fetch_inferior_registers): Likewise.
7259 * gnu-nat.c (gnu_store_registers, gnu_fetch_registers): Likewise.
7260 * mips-linux-nat.c (super_fetch_registers, super_store_registers):
7261 Update function pointer signatures.
7263 * aix-thread.c (aix_thread_fetch_registers): Add REGCACHE parameter,
7264 use it instead of current_regcache, update calls.
7265 (aix_thread_store_registers): Likewise.
7266 * alphabsd-nat.c (alphabsd_fetch_inferior_registers): Likewise.
7267 (alphabsd_store_inferior_registers): Likewise.
7268 * amd64bsd-nat.c (amd64bsd_fetch_inferior_registers): Likewise.
7269 (amd64bsd_store_inferior_registers): Likewise.
7270 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers): Likewise.
7271 (amd64_linux_store_inferior_registers): Likewise.
7272 * arm-linux-nat.c (fetch_fpregister, fetch_fpregs, store_fpregister,
7273 store_fpregs, fetch_register, fetch_regs, store_register, store_regs,
7274 fetch_wmmx_regs, store_wmmx_regs): Likewise.
7275 (arm_linux_fetch_inferior_registers): Likewise.
7276 (arm_linux_store_inferior_registers): Likewise.
7277 * armnbsd-nat.c (fetch_register, fetch_regs, fetch_fp_register,
7278 fetch_fp_regs, armnbsd_fetch_registers): Likewise.
7279 (store_register, store_regs, store_fp_register, store_fp_regs,
7280 armnbsd_store_registers): Likewise.
7281 * bsd-kvm.c (bsd_kvm_fetch_pcb, bsd_kvm_fetch_registers): Likewise.
7282 * bsd-uthread.c (bsd_uthread_fetch_registers): Likewise.
7283 (bsd_uthread_store_registers): Likewise.
7284 * corelow.c (get_core_registers): Likewise.
7285 * go32-nat.c (fetch_register, go32_fetch_registers, store_register,
7286 go32_store_registers): Likewise.
7287 * hppabsd-nat.c (hppabsd_fetch_registers): Likewise.
7288 (hppabsd_store_registers): Likewise.
7289 * hppa-hpux-nat.c (hppa_hpux_fetch_register): Likewise.
7290 (hppa_hpux_fetch_inferior_registers): Likewise.
7291 (hppa_hpux_store_register): Likewise.
7292 (hppa_hpux_store_inferior_registers): Likewise.
7293 * hppa-linux-nat.c (fetch_register, store_register): Likewise.
7294 (hppa_linux_fetch_inferior_registers): Likewise.
7295 (hppa_linux_store_inferior_registers): Likewise.
7296 * hpux-thread.c (hpux_thread_fetch_registers): Likewise.
7297 (hpux_thread_store_registers): Likewise.
7298 * i386bsd-nat.c (i386bsd_fetch_inferior_registers): Likewise.
7299 (i386bsd_store_inferior_registers): Likewise.
7300 * i386gnu-nat.c (fetch_fpregs, gnu_fetch_registers, store_fpregs,
7301 gnu_store_registers): Likewise.
7302 * i386-linux-nat.c (fetch_register, store_register, fetch_regs,
7303 store_regs, fetch_fpregs, store_fpregs, fetch_fpxregs, store_fpxregs):
7305 (i386_linux_fetch_inferior_registers): Likewise.
7306 (i386_linux_store_inferior_registers): Likewise.
7307 * ia64-linux-nat.c (ia64_linux_fetch_register): Likewise.
7308 (ia64_linux_fetch_registers): Likewise.
7309 (ia64_linux_store_register): Likewise.
7310 (ia64_linux_store_registers): Likewise.
7311 * inf-child.c (inf_child_fetch_inferior_registers): Likewise.
7312 (inf_child_store_inferior_registers): Likewise.
7313 * inf-ptrace.c (inf_ptrace_fetch_register): Likewise.
7314 (inf_ptrace_fetch_registers): Likewise.
7315 (inf_ptrace_store_register): Likewise.
7316 (inf_ptrace_store_registers): Likewise.
7317 * infptrace.c (fetch_register, store_register): Likewise.
7318 (fetch_inferior_registers, store_inferior_registers): Likewise.
7319 * m32r-linux-nat.c (fetch_regs, store_regs): Likewise.
7320 (m32r_linux_fetch_inferior_registers): Likewise.
7321 (m32r_linux_store_inferior_registers): Likewise.
7322 * m68kbsd-nat.c (m68kbsd_fetch_inferior_registers): Likewise.
7323 (m68kbsd_store_inferior_registers): Likewise.
7324 * m68klinux-nat.c (fetch_register, old_fetch_inferior_registers,
7325 store_register, old_store_inferior_registers, fetch_regs, store_regs,
7326 fetch_fpregs, store_fpregs): Likewise.
7327 (m68k_linux_fetch_inferior_registers): Likewise.
7328 (m68k_linux_store_inferior_registers): Likewise.
7329 * m88kbsd-nat.c (m88kbsd_fetch_inferior_registers): Likewise.
7330 (m88kbsd_store_inferior_registers): Likewise.
7331 * mips64obsd-nat.c (mips64obsd_fetch_inferior_registers): Likewise.
7332 (mips64obsd_store_inferior_registers): Likewise.
7333 * mips-linux-nat.c (mips64_linux_regsets_fetch_registers): Likewise.
7334 (mips64_linux_regsets_store_registers): Likewise.
7335 (mips64_linux_fetch_registers): Likewise.
7336 (mips64_linux_store_registers): Likewise.
7337 * mipsnbsd-nat.c (mipsnbsd_fetch_inferior_registers): Likewise.
7338 (mipsnbsd_store_inferior_registers): Likewise.
7339 * monitor.c (monitor_fetch_register, monitor_store_register): Likewise.
7340 (monitor_fetch_registers, monitor_store_registers): Likewise.
7341 * nto-procfs.c (procfs_fetch_registers): Likewise.
7342 (procfs_store_registers): Likewise.
7343 * ppc-linux-nat.c (fetch_altivec_register, fetch_spe_register,
7344 fetch_register, supply_vrregset, fetch_altivec_registers,
7345 fetch_ppc_registers, ppc_linux_fetch_inferior_registers): Likewise.
7346 (store_altivec_register, store_spe_register, store_register,
7347 fill_vrregset, store_altivec_registers, store_ppc_registers,
7348 ppc_linux_store_inferior_registers): Likewise.
7349 * ppcnbsd-nat.c (ppcnbsd_fetch_inferior_registers): Likewise.
7350 (ppcnbsd_store_inferior_registers): Likewise.
7351 * ppcobsd-nat.c (ppcobsd_fetch_registers): Likewise.
7352 (ppcobsd_store_registers): Likewise.
7353 * procfs.c (procfs_fetch_registers, procfs_store_registers): Likewise.
7354 * remote.c (fetch_register_using_p, process_g_packet,
7355 fetch_registers_using_g, remote_fetch_registers): Likewise.
7356 (store_register_using_P, store_registers_using_G,
7357 remote_store_registers): Likewise.
7358 * remote-m32r-sdi.c (m32r_fetch_registers, m32r_fetch_register,
7359 m32r_store_register, m32r_store_register): Likewise.
7360 * remote-mips.c (mips_fetch_registers, mips_store_registers): Likewise.
7361 * remote-sim.c (gdbsim_fetch_register): Likewise.
7362 (gdbsim_store_register): Likewise.
7363 * rs6000-nat.c (fetch_register, store_register): Likewise.
7364 (rs6000_fetch_inferior_registers): Likewise.
7365 (rs6000_store_inferior_registers): Likewise.
7366 * s390-nat.c (fetch_regs, store_regs): Likewise.
7367 (fetch_fpregs, store_fpregs): Likewise.
7368 (s390_linux_fetch_inferior_registers): Likewise.
7369 (s390_linux_store_inferior_registers): Likewise.
7370 * shnbsd-nat.c (shnbsd_fetch_inferior_registers): Likewise.
7371 (shnbsd_store_inferior_registers): Likewise.
7372 * sol-thread.c (sol_thread_fetch_registers): Likewise.
7373 (sol_thread_store_registers): Likewise.
7374 * sparc-nat.c (fetch_inferior_registers): Likewise.
7375 (store_inferior_registers): Likewise.
7376 * spu-linux-nat.c (spu_fetch_inferior_registers): Likewise.
7377 (spu_store_inferior_registers): Likewise.
7378 * target.c (debug_print_register): Likewise.
7379 (debug_to_fetch_registers, debug_to_store_registers): Likewise.
7380 * vaxbsd-nat.c (vaxbsd_fetch_inferior_registers): Likewise.
7381 (vaxbsd_store_inferior_registers): Likewise.
7382 * win32-nat.c (do_win32_fetch_inferior_registers): Likewise.
7383 (win32_fetch_inferior_registers): Likewise.
7384 (win32_store_inferior_registers): Likewise.
7386 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7388 * gdbcore.h (struct regcache): Add forward declaration.
7389 (struct core_fns): Add REGCACHE argument to core_read_registers
7391 * corelow.c (get_core_register_section): Add REGCACHE argument,
7392 use it instead of current_regcache, pass it to core_read_registers
7394 (get_core_registers): Add current_regcache as parameter to
7395 get_core_register_section calls.
7397 * alpha-nat.c (fetch_osf_core_registers): Add REGCACHE argument,
7398 use it instead of current_regcache.
7399 * armnbsd-nat.c (fetch_core_registers): Likewise.
7400 (fetch_elfcore_registers): Likewise.
7401 * core-regset.c (fetch_core_registers): Likewise.
7402 * cris-tdep.c (fetch_core_registers): Likewise.
7403 * irix5-nat.c (fetch_core_registers): Likewise.
7404 * m68klinux-nat.c (fetch_core_registers): Likewise.
7405 * mips-linux-tdep.c (fetch_core_registers): Likewise.
7406 * win32-nat.c (fetch_elf_core_registers): Likewise.
7408 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7410 * gregset.h (struct regcache): Add forward declaration.
7411 (supply_gregset): Add REGCACHE parameter, make GREGS const.
7412 (supply_fpregset): Add REGCACHE parameter, make FPREGS const.
7413 (supply_fpxregset): Add REGCACHE parameter, make FPXREGS const.
7414 (fill_gregset): Add REGCACHE parameter.
7415 (fill_fpregset): Likewise.
7416 (fill_fpxregset): Likewise.
7418 Update all definitions accordingly:
7419 * alphabsd-nat.c, alpha-linux-nat.c, alpha-nat.c, amd64-linux-nat.c,
7420 arm-linux-nat.c, hppa-linux-nat.c, i386gnu-nat.c, i386-linux-nat.c,
7421 i386-sol2-nat.c, i386v4-nat.c, ia64-linux-nat.c, irix5-nat.c,
7422 m32r-linux-nat.c, m68klinux-nat.c, mips-linux-nat.c, ppc-linux-nat.c,
7423 s390-nat.c, sparc64-linux-nat.c, sparc-linux-nat.c, sparc-sol2-nat.c
7424 (supply_gregset): Add REGCACHE parameter, use it instead of
7425 current_regcache. Make GREGSETP parameter const, adapt casts.
7426 (supply_fpregset): Add REGCACHE parameter, use it instead of
7427 current_regcache. Make FPREGSETP parameter const, adapt casts.
7428 (fill_gregset): Add REGCACHE parameter, use it instead of
7430 (fill_fpregset): Likewise.
7432 Update all callers to pass in current_regcache as the new argument:
7433 * core-regset.c: Include "regcache.h".
7434 (fetch_core_registers): Update supply_gregset,and supply_fpregset calls.
7435 * procfs.c: Include "regcache.h".
7436 (procfs_fetch_registers): Update supply_gregset, supply_fpregset calls.
7437 (procfs_store_registers): Update fill_gregset, fill_fpregset calls.
7438 (procfs_do_thread_registers): Likewise.
7439 (procfs_make_note_section): Likewise.
7440 * proc-service.c: Include "regcache.h".
7441 (ps_lgetregs): Update fill_gregset call.
7442 (ps_lsetregs): Update supply_gregset call.
7443 (ps_lgetfpregs): Update fill_fpregset call.
7444 (ps_lsetfpregs): Update supply_fpregset call.
7445 * sol-thread.c (sol_thread_fetch_registers): Update supply_gregset,
7446 supply_fpregset calls.
7447 (sol_thread_store_registers): Update fill_gregset, fill_fpregset calls.
7448 (ps_lgetregs): Update fill_gregset call.
7449 (ps_lsetregs): Update supply_gregset call.
7450 (ps_lgetfpregs): Update fill_fpregset call.
7451 (ps_lsetfpregs): Update supply_fpregset call.
7453 * linux-nat.c (linux_nat_do_thread_registers): Update fill_gregset,
7454 fill_fpregset, and fill_fpxregset calls.
7455 * i386-linux-nat.c (fetch_regs): Update supply_gregset call.
7456 (store_regs): Update fill_gregset call.
7457 (fetch_fpregs): Update supply_fpregset call.
7458 (store_fpregs): Update fill_fpregset call.
7459 (fetch_fpxregs): Update supply_fpxregset call.
7460 (store_fpxregs): Update fill_fpxregset call.
7461 * m32r-linux-nat.c (fetch_regs): Update supply_gregset call.
7462 (store_regs): Update fill_gregset call.
7463 * m68klinux-nat.c (fetch_regs): Update supply_gregset call.
7464 (store_regs): Update fill_gregset call.
7465 (fetch_fpregs): Update supply_fpregset call.
7466 (store_fpregs): Update fill_fpregset call.
7467 (fetch_core_registers): Update supply_gregset, supply_fpregset calls.
7468 * s390-nat.c (fetch_regs): Update supply_gregset call.
7469 (store_regs): Update fill_gregset call.
7470 (fetch_fpregs): Update supply_fpregset call.
7471 (store_fpregs): Update fill_fpregset call.
7473 * Makefile.in (core-regset.o, procfs.o, proc-service.o): Update
7476 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7478 * monitor.c (monitor_supply_register): Add REGCACHE parameter, use
7479 it instead of current_regcache.
7480 (parse_register_dump): Add REGCACHE parameter, pass it to
7481 supply_register callback.
7482 (monitor_dump_reg_block): Add REGCACHE parameter, pass it to
7483 parse_register_dump.
7484 (monitor_dump_regs): Add REGCACHE parameter, pass it to
7485 parse_register_dump and dumpregs callback.
7486 (monitor_wait): Pass current_regcache to parse_register_dump and
7488 (monitor_fetch_register): Pass current_regcache to
7489 monitor_supply_register.
7490 (monitor_fetch_registers): Pass current_regcache to
7492 * monitor.h (struct monitor_ops): Add REGCACHE parameter to
7493 supply_register and dumpregs callbacks.
7494 (monitor_supply_register, monitor_dump_reg_block): Update
7496 * dbug-rom.c (dbug_supply_register): Add REGCACHE parameter. Pass
7497 it to monitor_supply_register.
7498 * dink32-rom.c (dink32_supply_register): Likewise.
7499 * ppcbug-rom.c (ppcbug_supply_register): Likewise.
7500 * m32r-rom.c (m32r_supply_register): Likewise. Also, use REGCACHE
7501 instead of current_regcache.
7503 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7505 * i386-nto-tdep.c (i386nto_supply_gregset, i386nto_supply_fpregset):
7506 Add REGCACHE parameter. Use it instead of current_regcache.
7507 (i386nto_supply_regset): Add REGCACHE parameter, pass it to
7508 i386nto_supply_gregset and i386nto_supply_fpregset.
7509 (i386nto_regset_fill): Add REGCACHE parameter; use it instead
7510 of current_regcache.
7512 * nto-procfs.c (procfs_fetch_registers): Pass current_regcache to
7513 nto_supply_ helper functions.
7514 (procfs_store_registers): Pass current_regcache to nto_regset_fill.
7516 * nto-tdep.c (nto_dummy_supply_regset): Add REGCACHE parameter.
7518 * nto-tdep.h (struct nto_target_ops): Add REGCACHE parameter to
7519 supply_greget, supply_fpregset, supply_altregset, supply_regset,
7520 and regset_fill member function pointers.
7521 (nto_dummy_supply_regset): Adapt prototype.
7523 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7525 * shnbsd-tdep.c (shnbsd_supply_reg): Add REGCACHE parameter, use it
7526 instead of current_regcache. Make REGS const.
7527 (shnbsd_fill_reg): Add REGCACHE parameter; replace current_regcache.
7528 * shnbsd-tdep.h (shnbsd_supply_reg, shnbsd_fill_reg): Update
7530 * shnbsd-nat.c: Include "regcache.h".
7531 (shnbsd_fetch_inferior_registers): Pass current_regcache to
7533 (shnbsd_store_inferior_registers): Pass current_regcache to
7535 * Makefile.in (shbsd-nat.o): Update dependencies.
7537 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7539 * mips-linux-tdep.c (supply_32bit_reg): Add REGCACHE parameter. Use it
7540 instead of current_regcache.
7541 (mips_supply_gregset): Likewise. Pass REGCACHE to supply_32bit_reg.
7542 Make GREGSETP const, remove superfluous casts.
7543 (mips_fill_gregset): Add REGCACHE parameter; replace current_regcache.
7544 (mips_supply_fpregset): Likewise. Make FPREGSETP const, remove
7546 (mips_fill_fpregset): Add REGCACHE parameter; replace current_regcache.
7547 (supply_64bit_reg): Likewise
7548 (mips64_supply_gregset): Likewise. Pass REGCACHE to supply_64bit_reg.
7549 Make GREGSETP const, adapt casts accordingly.
7550 (mips64_fill_gregset): Add REGCACHE parameter; replace current_regcache.
7551 (mips64_supply_fpregset): Likewise. Make FPREGSET const, adapt
7553 (mips64_fill_fpregset): Add REGCACHE parameter; replace current_regcache.
7554 (fetch_core_registers): Pass current_regcache to mips{64}_(supply|fill)_
7556 * mips-linux-tdep.h (mips_supply_gregset, mips_fill_gregset,
7557 mips_supply_fpregset, mips_fill_fpregset, mips64_supply_gregset,
7558 mips64_fill_gregset, mips64_supply_fpregset, mips64_fill_fpregset):
7560 * mips-linux-nat.c: Include "regcache.h".
7561 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): Pass
7562 current_regcache to mips{64}_(supply|fill)_ helper routines.
7563 (mips64_linux_regsets_fetch_registers): Likewise.
7564 (mips64_linux_regsets_store_registers): Likewise.
7566 * mipsnbsd-tdep.c (mipsnbsd_supply_reg, mipsnbsd_supply_fpreg): Add
7567 REGCACHE argument; replace current_regcache. Make REGS const.
7568 (mipsnbds_fill_reg, mipsnbsd_fill_fpreg): Add REGCACHE argument;
7569 replace current_regcache.
7570 * mipsnbsd-tdep.h (ipsnbsd_supply_reg, mipsnbsd_supply_fpreg,
7571 mipsnbds_fill_reg, mipsnbsd_fill_fpreg): Adapt prototypes.
7572 * mipsnbsd-nat.c (mipsnbsd_fetch_inferior_registers,
7573 mipsnbsd_store_inferior_registers): Pass current_regcache to
7574 mipsnbsd_(supply|fill)_... helper routines.
7576 * Makefile.in (mips-linux-nat.o): Update dependencies.
7578 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7580 * i387-tdep.c (i387_fill_fsave, i387_fill_fxsave): Remove.
7581 * i387-tdep.h (i387_fill_fsave, i387_fill_fxsave): Remove prototypes.
7582 * i368-linux-nat.c (supply_fpregset, supply_fpxregset): Replace
7583 i387_fill_fsave and i387_fill_fxsave calls by inline copies.
7584 * i386-nto-tdep.c (i386nto_regset_fill): Likewise.
7585 * i386gnu-nat.c (store_fpregs): Likewise.
7586 * i386v4-nat.c (fill_fpregset): Likewise.
7587 * go32-nat.c (store_register, go32_store_registers): Likewise.
7589 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7591 * cris-tdep.c (supply_gregset): Rename to ...
7592 (cris_supply_gregset): ... this. Add REGCACHE parameter. Use it
7593 instead of current_regcache.
7594 (fetch_core_registers): Update call. Pass current_regcache.
7596 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7598 * arnmnbsd-nat.c (supply_gregset): Rename to ...
7599 (arm_supply_gregset): ... this. Add REGCACHE parameter.
7600 Use it instead of current_regcache.
7601 (supply_fparegset): Rename to ...
7602 (arm_supply_fparegset): ... this. Add REGCACHE parameter.
7603 Use it instead of current_regcache.
7604 (fetch_regs, fetch_fp_regs): Update calls. Pass current_regcache.
7605 (fetch_core_registers, fetch_elfcore_registers): Likewise.
7607 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7609 * alpha-tdep.c (alpha_supply_int_regs, alpha_fill_int_regs,
7610 alpha_supply_fp_regs, alpha_fill_fp_regs): Add REGCACHE parameter,
7611 use it instead of current_regcache.
7612 * alpha-tdep.h (struct regcache): Add forward declaration.
7613 (alpha_supply_int_regs, alpha_fill_int_regs, alpha_supply_fp_regs,
7614 alpha_fill_fp_regs): Update prototypes.
7616 * alpha-nat.c: (supply_gregset, fill_gregset, supply_fpregset,
7617 fill_fpregset): Pass current_regcache to alpha_supply/fill_ routines.
7618 * alpha-linux-nat.c: Include "regcache.h".
7619 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): Pass
7620 current_regcache to alpha_supply/fill_ routines.
7622 * alphabsd-tdep.c: Include "regcache.h".
7623 (alphabsd_supply_reg, alphabsd_supply_fpreg): Add REGCACHE paramter,
7624 pass it to alpha_supply_ routines. Make REGS const.
7625 (alphabsd_fill_reg, alphabsd_fill_fpreg): Add REGCACHE parameter,
7626 pass it to alpha_fill_ routines.
7627 * alphabsd-tdep.h (struct regcache): Add forward declaration.
7628 (alphabsd_supply_reg, alphabsd_fill_reg, alphabsd_supply_fpreg,
7629 alphabsd_fill_fpreg): Update prototypes.
7631 * alphanbsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
7632 fill_fpregset, alphabsd_fetch_inferior_registers,
7633 alphabsd_store_inferior_registers): Pass current_regcache to
7634 alphabsd_supply/fill_ routines.
7636 * Makefile.in (alpha-linux-nat.o, alphabsd-tdep.o): Update
7639 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7641 * aix-thread.c (supply_gprs64, supply_reg32, supply_fprs,
7642 supply_sprs64, supply_sprs32): Add REGCACHE parameter, use it
7643 instead of current_regcache.
7644 (fetch_regs_user_thread, fetch_regs_kernel_thread): Add
7645 REGCACHE parameter, pass it to supply_ routines.
7646 (aix_thread_fetch_registers): Pass current_regcache to
7647 fetch_regs_user_thread and fetch_regs_kernel_thread.
7649 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs64, fill_sprs32):
7650 Add REGCACHE parameter, use it instead of current_regcache.
7651 Call regcache_valid_p instead of register_cached.
7652 (store_regs_user_thread, store_regs_kernel_thread): Likewise.
7653 Also, pass REGCACHE to fill_ routines.
7654 (aix_thread_store_registers): Pass current_regcache to
7655 store_regs_user_thread and store_regs_kernel_thread.
7657 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7659 * m32r-linux-nat.c (supply_gregset): Do not modify contents
7660 pointed to by GREGSETP.
7662 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7664 * irix5-nat.c (fill_gregset): Use regcache_raw_collect instead
7665 of regcache_raw_read_signed.
7666 (fill_fpregset): Use regcache_raw_collect instead of
7669 2007-05-03 Kevin Buettner <kevinb@redhat.com>
7671 * mips-tdep.c (mips_eabi_push_dummy_call): When pushing floating
7672 point arguments, test explicitly for use of the EABI32 ABI
7673 instead of inferring this condition from tests on register
7676 2007-05-03 Kevin Buettner <kevinb@redhat.com>
7678 * breakpoint.c (set_raw_breakpoint): Adjust breakpoint's address
7679 prior to allocating its location.
7681 2007-05-02 Maciej W. Rozycki <macro@mips.com>
7683 * mips-tdep.c (mips_o32_push_dummy_call): Remove conditions
7684 based on mips_abi_regsize() whose result is known in advance.
7685 (mips_o64_push_dummy_call): Likewise.
7687 2007-04-29 Ulrich Weigand <uweigand@de.ibm.com>
7689 * m68klinux-nat.c: Remove #ifndef USE_PROC_FS check.
7690 * m68k-tdep.c: Remove code within #ifdef USE_PROC_FS.
7692 * mips-linux-nat.c: Include "gregset.h".
7693 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): Move
7694 from mips-linux-tdep.c. Change parameter type to gdb_gregset_t.
7695 * mips-linux-tdep.c (supply_gregset, fill_gregset, supply_fpregset,
7696 fill_fpregset): Move to mips-linux-nat.c.
7698 * Makefile.in (m68k-tdep.o, mips-linux-nat.o): Update dependencies.
7700 2007-04-28 Ulrich Weigand <uweigand@de.ibm.com>
7702 * regcache.c (deprecated_read_register_gen): Remove, inline ...
7703 (read_register): ... here.
7704 (deprecated_write_register_gen): Remove, inline ...
7705 (write_register): ... here.
7706 * regcache.h (deprecated_read_register_gen): Remove prototype.
7707 (deprecated_write_register_gen): Likewise.
7709 * remote-sim.c (gdbsim_store_register): Replace call to
7710 deprecated_read_register_gen with regcache_cooked_read.
7711 * target.c (debug_print_register): Replace calls to
7712 deprecated_read_register_gen and read_register with
7713 regcache_cooked_read.
7715 2007-04-28 Ulrich Weigand <uweigand@de.ibm.com>
7717 * hpux-thread.c (hpux_thread_store_registers): Use
7718 regcache_raw_collect, not regcache_raw_read.
7719 * irix5-nat.c (fetch_core_registers): Use regcache_raw_supply,
7720 not regcache_raw_write.
7722 2007-04-28 Ulrich Weigand <uweigand@de.ibm.com>
7724 * gdbarch.sh: Remove deprecated_register_byte.
7725 * gdbarch.c, gdbarch.h: Regenerate.
7726 * arch-utils.h (generic_register_size, generic_register_byte): Remove.
7727 * arch-utils.c (generic_register_size, generic_register_byte): Remove.
7729 * regcache.h (regcache_valid_p): Make REGCACHE parameter const.
7730 * regcache.c (regcache_valid_p): Allow to query cooked registers in
7731 read-only register caches. Make REGCACHE parameter const.
7732 (regcache_dump): Do not check DEPRECATED_REGISTER_BYTE.
7734 * mi/mi-main.c (old_regs): Remove.
7735 (mi_setup_architecture_data, _initialize_mi_main): Remove.
7736 (register_changed_p): Reimplement to compare two register caches.
7737 (mi_cmd_data_list_changed_registers): Update caller.
7738 * mi/mi-main.h (mi_setup_architecture_data): Remove.
7739 * mi/mi-interp.c (mi_interpreter_init): Do not call
7740 mi_setup_architecture_data.
7742 2007-04-28 Ulrich Weigand <uweigand@de.ibm.com>
7744 * alpha-nat.c (ALPHA_REGSET_BASE, ALPHA_REGSET_UNIQUE): Do not define,
7745 inline definition at the places the macros are used.
7746 * alpha-linux-nat.c (ALPHA_REGSET_BASE, ALPHA_REGSET_UNIQUE): Likewise.
7748 2007-04-28 Ulrich Weigand <uweigand@de.ibm.com>
7750 * rs6000-aix-tdep.c: Include "regcache.h", "regset.h", and
7752 (rs6000_aix32_reg_offsets, rs6000_aix64_reg_offsets): New variables.
7753 (rs6000_aix_supply_regset, rs6000_aix_collect_regset): New functions.
7754 (rs6000_aix32_regset, rs6000_aix64_regset): New variables.
7755 (rs6000_aix_regset_from_core_section): New function.
7756 (rs6000_aix_init_osabi): Register it.
7757 (_initialize_rs6000_aix_tdep): Register GDB_OSABI_AIX osabi and
7758 sniffer for bfd_arch_powerpc as well as bfd_arch_rs6000.
7759 * rs6000-nat.c (CoreRegs): Do not define type.
7760 (fetch_core_registers, rs6000_core_fns): Remove.
7761 (_initialize_core_rs6000): Do not register it. Rename to ...
7762 (_initialize_rs6000_nat): ... this.
7763 * Makefile.in (rs6000-aix-tdep.o): Update dependencies.
7765 2007-04-27 Kevin Buettner <kevinb@redhat.com>
7767 * dwarf2expr.c (unsigned_address_type): Add forward declaration.
7768 (dwarf2_read_address): Sign extend return address as required by
7769 target architecture.
7771 2007-04-27 Kevin Buettner <kevinb@redhat.com>
7773 * solib-frv.c (lm_base): Bail out if the main executable has
7776 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
7778 * alpha-linux-tdep.c (alpha_linux_supply_fpregset): Correct location
7779 of FPCR register in fpregset.
7781 2007-04-27 Maciej W. Rozycki <macro@mips.com>
7783 * Makefile.in (gdbtk-wrapper.o): Update dependencies.
7784 (gdbtk-varobj.o, gdbtk-cmds.o, gdbtk-stack.o): Likewise.
7786 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
7788 * config/rs6000/nm-rs6000.h (CHILD_SPECIAL_WAITSTATUS): Remove.
7789 * rs6000-nat.c (rs6000_wait): New function.
7790 (_initialize_core_rs6000): Install it as to_wait target method.
7791 * target.c (store_waitstatus): Don't check CHILD_SPECIAL_WAITSTATUS.
7793 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
7795 * config/rs6000/nm-rs6000.h (TARGET_CREATE_INFERIOR_HOOK): Remove.
7796 * fork-child.c (fork_inferior): Don't call TARGET_CREATE_INFERIOR_HOOK.
7797 * rs6000-nat.c (super_create_inferior): New variable.
7798 (rs6000_create_inferior): Make static. Adapt argument list. Call
7799 original version of create_inferior via super_create_inferior.
7800 (_initialize_core_rs6000): Install to_create_inferior target method.
7802 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
7804 * aix-thread.c (aix_thread_xfer_memory): Replace by ...
7805 (aix_thread_xfer_partial): ... this.
7806 (init_aix_thread_ops): Install to_xfer_partial instead
7807 of deprecated_xfer_memory target method.
7809 * config/powerpc/aix.mh (NATDEPFILES): Remove infptrace.o
7810 and inftarg.o, add inf-ptrace.o.
7811 * config/rs6000/nm-rs6000.h (FETCH_INFERIOR_REGISTERS,
7812 CHILD_XFER_MEMORY, KERNEL_U_SIZE, kernel_u_size): Remove.
7813 * rs6000-nat.c: Include "inf-ptrace.h" and "gdb_stdint.h".
7814 (fetch_inferior_registers): Rename to ...
7815 (rs6000_fetch_inferior_registers): ... this. Make static.
7816 (store_inferior_registers): Rename to ...
7817 (rs6000_store_inferior_registers): ... this. Make static.
7818 (read_word, child_xfer_memory): Remove.
7819 (rs6000_xfer_partial): New function.
7820 (kernel_u_size): Remove.
7821 (_initialize_core_rs6000): Add inf_ptrace-based target.
7822 * Makefile.in (rs6000-nat.o): Update dependencies.
7824 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
7826 * inf-ptrace.c: Include "gdb_stdint.h".
7827 (inf_ptrace_xfer_partial): Use "uintptr_t" instead of "long" as
7828 intermediate type when casting CORE_ADDR to PTRACE_TYPE_ARG3.
7829 (inf_ptrace_fetch_register): Add intermediate cast to "uintptr_t"
7830 before casting CORE_ADDR to PTRACE_TYPE_ARG3.
7831 (inf_ptrace_store_register): Likewise.
7832 * Makefile.in (inf-ptrace.o): Update dependencies.
7834 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
7836 * configure.host (rs6000-*-*): Merge with powerpc-*-aix* rules.
7837 * configure.tgt (rs6000-*-*): Likewise.
7838 * config/rs6000/aix4.mh: Delete file.
7839 * config/rs6000/aix4.mt: Delete file.
7840 * config/rs6000/rs6000.mh: Delete file.
7841 * config/rs6000/rs6000.mt: Delete file.
7843 * config/powerpc/nm-aix.h: Delete file.
7844 * config/powerpc/aix.mh (NAT_FILE): Set to config/rs6000/nm-rs6000.h.
7846 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
7848 * aix-thread.c (fill_sprs32): Change argument types to "uint32_t *".
7849 Remove obsolete part of comment.
7850 (store_regs_user_thread): Use uint32_t temporaries when calling
7852 (store_regs_kernel_thread): Likewise. Add assertion to verify
7853 correct size of struct ptsprs members.
7854 (aix_thread_xfer_memory): Fix type of myaddr.
7855 (aix_thread_extra_thread_info): Fix compiler warning.
7856 * rs6000-nat.c (rs6000_ptrace64): Change type of buf to "void *".
7857 (fetch_register, store_register): Adapt callers.
7859 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
7861 * vec.h (vec_free): Rename to vec_free_. Adapt users.
7863 2007-04-25 Ulrich Weigand <uweigand@de.ibm.com>
7865 * alpha-linux-tdep.c: Include "gdb_string.h", "regset.h",
7867 (alpha_linux_supply_gregset, alpha_linux_supply_fpregset): New.
7868 (alpha_linux_gregset, alpha_linux_fpregset): New variables.
7869 (alpha_linux_regset_from_core_section): New function.
7870 (alpha_linux_init_abi): Install it.
7871 * alpha-linux-nat.c: Do not include "gdbcore.h". Include
7872 "alpha-tdep.h", <sys/ptrace.h>, <alpha/ptrace.h>,
7873 <sys/procfs.h>, and "gregset.h".
7874 (ALPHA_REGSET_BASE, ALPHA_REGSET_UNIQUE, ALPHA_UNIQUE_PTRACE_ADDR):
7875 Move from config/alpha/nm-linux.h.
7876 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): Copy
7878 (alpha_linux_register_u_offset): Inline register_addr from alpha-nat.c.
7879 * alpha-nat.c: Remove #ifdef __linux__ section.
7880 (fetch_elf_core_registers, alpha_elf_core_fns): Remove.
7881 (_initialize_core_alpha): Do not register alpha_elf_core_fns.
7882 (ALPHA_UNIQUE_PTRACE_ADDR, ALPHA_REGSET_UNIQUE): Define unconditionally.
7883 (ALPHA_REGSET_BASE): Move from config/alpha/nm-osf.h.
7884 * config/alpha/alpha-linux.mh (NAT_FILE): Set to config/nm-linux.h.
7885 (NATDEPFILES): Remove alpha-nat.o.
7886 * config/alpha/nm-linux.h: Delete file.
7887 * config/alpha/nm-osf.h (ALPHA_REGSET_BASE): Move to alpha-nat.c.
7888 * Makefile.in (alpha-linux-nat.o): Update dependencies.
7889 (alpha-linux-tdep.o): Likewise.
7891 2007-04-25 Ulrich Weigand <uweigand@de.ibm.com>
7893 * mips-linux-nat.c: No longer include "gdbcore.h".
7894 (mips_linux_register_addr): Move from mips-linux-tdep.c.
7895 (mips64_linux_register_addr): Likewise.
7896 (mips_linux_register_u_offset): Call mips_linux_register_addr or
7897 mips64_linux_register_addr instead of register_addr.
7898 * mips-linux-tdep.c (mips_linux_register_addr,
7899 mips64_linux_register_addr): Move to mips-linux-nat.c.
7900 (register_addr): Remove.
7901 (register_addr_data, init_register_addr_data): Remove.
7902 (_initialize_mips_linux_tdep): Do not initialize register_addr_data.
7903 (set_mips_linux_register_addr): Remove.
7904 (mips_linux_init_abi): Do not call set_mips_linux_register_addr.
7905 * Makefile.in (mips-linux-nat.o): Update dependencies.
7907 2007-04-25 Ulrich Weigand <uweigand@de.ibm.com>
7909 * linux-nat.c (linux_register_u_offset): Remove.
7910 (linux_target_install_ops): New function.
7911 (linux_target): Use it.
7912 (linux_trad_target): New function.
7913 * linux-nat.h (linux_trad_target): Declare.
7915 * alpha-linux-nat.c: Include "gdbcore.h".
7916 (alpha_linux_register_u_offset): New function.
7917 (_initialize_alpha_linux_nat): Use linux_trad_target.
7919 * mips-linux-nat.c: Include "gdbcore.h".
7920 (mips_linux_register_u_offset): New function.
7921 (_initialize_mips_linux_nat): Use linux_trad_target.
7923 * config/arm/linux.mh (NAT_FILE): Set to config/nm-linux.h.
7924 * config/arm/nm-linux.h: Delete file.
7926 * config/i386/nm-linux64.h (FETCH_INFERIOR_REGISTERS): Remove.
7927 * config/i386/nm-linux.h (FETCH_INFERIOR_REGISTERS): Remove.
7929 * config/ia64/linux.mh (NAT_FILE): Set to config/nm-linux.h.
7930 * config/ia64/nm-linux.h: Delete file.
7932 * config/m32r/linux.mh (NAT_FILE): Set to config/nm-linux.h.
7933 * config/m32r/nm-linux.h: Delete file.
7935 * config/m68k/linux.mh (NAT_FILE): Set to config/nm-linux.h.
7936 * config/m68k/nm-linux.h: Delete file.
7938 * config/pa/linux.mh (NAT_FILE): Set to config/nm-linux.h.
7939 * config/pa/nm-linux.h: Delete file.
7941 * config/powerpc/linux.mh (NAT_FILE): Set to config/nm-linux.h.
7942 * config/powerpc/ppc64-linux.mh (NAT_FILE): Likewise.
7943 * config/powerpc/nm-linux.h: Delete file.
7945 * config/s390/s390.mh (NAT_FILE): Set to config/nm-linux.h.
7946 * config/s390/nm-linux.h: Delete file.
7948 * config/sparc/linux.mh (NAT_FILE): Set to config/nm-linux.h.
7949 * config/sparc/linux64.mh (NAT_FILE): Likewise.
7950 * config/sparc/nm-linux.h: Delete file.
7952 * Makefile.in (alpha-linux-nat.o): Update dependencies.
7953 (mips-linux-nat.o): Likewise.
7955 2007-04-25 Ulrich Weigand <uweigand@de.ibm.com>
7957 * core-aout.c: Delete file.
7958 * Makefile.in (ALLDEPFILES): Remove core-aout.c.
7959 (core-aout.o): Delete rule.
7960 * gdbcore.h (kernel_u_addr, KERNEL_U_ADDR): Remove.
7962 * config/alpha/nm-linux.h (U_REGS_OFFSET): Remove.
7964 * arm-linux-nat.c (arm_linux_kernel_u_size): Remove.
7965 * config/arm/nm-linux.h (U_REGS_OFFSET, KERNEL_U_SIZE,
7966 KERNEL_U_ADDR): Remove.
7968 * i386-linux-nat.c (register_u_addr, kernel_u_size): Remove.
7969 (cannot_fetch_register, cannot_store_register): Remove.
7970 (fetch_register): Inline cannot_fetch_register and register_addr.
7971 (store_register): Inline cannot_store_register and register_addr.
7972 * config/i386/linux.mh (NATDEPFILES): Remove core-aout.o.
7973 * config/i386/nm-linux.h (KERNEL_U_SIZE, KERNEL_U_ADDR,
7974 REGISTER_U_ADDR, CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER):
7977 * m68klinux-nat.c (m68k_linux_register_u_addr, kernel_u_size): Remove.
7978 (fetch_register): Inline register_addr.
7979 (store_register): Inline register_addr.
7980 * config/m68k/linux.mh (NATDEPFILES): Remove core-aout.o.
7981 * config/m68k/nm-linux.h (KERNEL_U_SIZE, KERNEL_U_ADDR,
7982 U_REGS_OFFSET, REGISTER_U_ADDR): Remove.
7984 * config/mips/nm-irix5.h (REGISTER_U_ADDR): Remove.
7985 * config/mips/nm-linux.h (KERNEL_U_SIZE, U_REGS_OFFSET,
7986 REGISTER_U_ADDR): Remove.
7988 * hppa-linux-nat.c (register_addr): Rename to ...
7989 (hppa_linux_register_addr): ... this. Make static.
7990 (fetch_register, store_register): Adapt callers.
7991 * config/pa/nm-linux.h (U_REGS_OFFSET): Remove.
7993 * ppc-linux-nat.c (kernel_u_size): Remove.
7994 * config/powerpc/nm-linux.h (KERNEL_U_SIZE, KERNEL_U_ADDR): Remove.
7996 * vax-nat.c (vax_kernel_u_addr, vax_register_u_addr): Make static.
7997 * config/vax/vax.mh (NATDEPFILES): Remove core-aout.o.
7999 * config/vax/nm-vax.h: Delete file.
8001 2007-04-20 Mark Shinwell <shinwell@codesourcery.com>
8003 * MAINTAINERS (Write After Approval): Add myself.
8005 2007-04-20 Mark Shinwell <shinwell@codesourcery.com>
8007 * Makefile.in: Adjust dependencies of m68klinux-tdep.c.
8008 * m68klinux-tdep.c (m68k_uclinux_sigcontext_reg_offset): New.
8009 (m68k_linux_sigcontext_reg_offset): Fix typo.
8010 (target_is_uclinux): New.
8011 (m68k_linux_inferior_created): New.
8012 (m68k_linux_get_sigtramp_info): Check for uClinux or
8013 normal Linux. Use m68k_uclinux_sigcontext_reg_offset for
8015 (_initialize_m68k_linux_tdep): Register
8016 m68k_linux_inferior_created.
8018 2007-04-19 Pedro Alves <pedro_alves@portugalmail.pt>
8020 * win32-nat.c (win32_detach): Remove delete_command call.
8021 Resume inferior with win32_resume instead of win32_continue.
8023 2007-04-19 Jerome Guitton <guitton@adacore.com>
8025 * ser-mingw.c (fd_is_file): New function.
8026 (file_select_thread): New function.
8027 (ser_console_wait_handle): Add special handling for files.
8029 2007-04-18 Denis Pilat <denis.pilat@st.com>
8031 * dwarf2read.c (read_subrange_type): Use DW_ATE_signed default type
8032 when missing from DW_TAG_subrange_type. Remove the handling of null
8033 return from die_type.
8035 2007-04-18 Maciej W. Rozycki <macro@mips.com>
8037 * mips-tdep.c (mips_eabi_push_dummy_call): Revert the last
8038 change to rearrange some brackets.
8039 (mips_n32n64_push_dummy_call): Likewise.
8040 (mips_o32_push_dummy_call): Likewise.
8041 (mips_o64_push_dummy_call): Likewise.
8043 2007-04-18 Denis Pilat <denis.pilat@st.com>
8045 * infcmd.c (post_create_inferior): Start with a call to
8046 target_terminal_ours.
8048 2007-04-17 Maciej W. Rozycki <macro@mips.com>
8050 * mips-tdep.c (mips_eabi_push_dummy_call): Rearrange some
8052 (mips_n32n64_push_dummy_call): Likewise. Reformat some
8054 (mips_o32_push_dummy_call): Likewise.
8055 (mips_o64_push_dummy_call): Likewise.
8057 2007-04-17 Maciej W. Rozycki <macro@mips.com>
8059 * mips-tdep.c (mips_n32n64_push_dummy_call): Fix a typo in a
8062 2007-04-17 Maciej W. Rozycki <macro@mips.com>
8064 * mips-tdep.c (mips_n32n64_push_dummy_call): Fix a typo in a
8066 (mips_o32_push_dummy_call): Likewise.
8068 2007-04-17 Andreas Schwab <schwab@suse.de>
8070 * symtab.c (skip_prologue_using_sal): Allow the end of the prologue
8071 sal to be bigger than the end of the function.
8073 2007-04-17 Maciej W. Rozycki <macro@mips.com>
8074 Nigel Stephens <nigel@mips.com>
8076 * mips-tdep.c (mips_o32_push_dummy_call): Take account of
8077 argument alignment requirements when calculating stack space
8078 required. When aligning an arg register to eight bytes
8079 boundary, align stack_offset too. Write floating-point
8080 arguments to the appropriate integer register if need go there.
8081 (mips_o64_push_dummy_call): Likewise.
8083 2007-04-14 Ulrich Weigand <uweigand@de.ibm.com>
8085 * gdbarch.sh (software_single_step): Remove "insert_breakpoints_p" and
8086 "sig" arguments, add "regcache" argument.
8087 * gdbarch.c, gdbarch.h: Regenerate.
8089 * infrun.c (resume): Update SOFTWARE_SINGLE_STEP call arguments.
8090 (handle_inferior_event): Call remove_single_step_breakpoints directly
8091 instead of calling SOFTWARE_SINGLE_STEP to remove breakpoints.
8093 * alpha-tdep.c (alpha_software_single_step): Update argument list.
8094 Remove handling of !insert_breakpoints_p case.
8095 * arm-tdep.c (arm_software_single_step): Likewise.
8096 * cris-tdep.c (cris_software_single_step): Likewise.
8097 * mips-tdep.c (mips_software_single_step): Likewise.
8098 * rs6000-tdep.c (rs6000_software_single_step): Likewise.
8099 * sparc-tdep.c (sparc_software_single_step): Likewise.
8100 * spu-tdep.c (spu_software_single_step): Likewise.
8102 * alpha-tdep.h (alpha_software_single_step): Update prototype.
8103 * mips-tdep.h (mips_software_single_step): Likewise.
8104 * rs6000-tdep.h (rs6000_software_single_step): Likewise.
8105 * sparc-tdep.h (sparc_software_single_step): Likewise.
8107 2007-04-14 Ulrich Weigand <uweigand@de.ibm.com>
8109 * alpha-tdep.c (alpha_software_single_step): Do not call write_pc
8110 when removing single-step breakpoints.
8112 2007-04-14 Vladimir Prus <vladimir@codesourcery.com>
8114 * varobj.h (varobj_set_frozen): New
8115 (varobj_get_frozen): New.
8116 (varobj_update): New parameter explicit.
8117 * varobj.c (struct varobj): New fields frozen
8119 (varobj_set_frozen, varobj_get_frozen): New.
8120 (install_new_value): Don't fetch values for
8121 frozen variable object, or children thereof. Allow
8122 a frozen variable object to have non-fetched value.
8123 (varobj_update): Allow updating child variables.
8124 Don't traverse frozen children.
8125 (new_variable): Initialize the frozen field.
8126 (c_value_of_variable): Return NULL for frozen
8127 variable without any value yet.
8128 * mi/mi-cmd-var.c (varobj_update_one): New parameter
8130 (mi_cmd_var_create): Output the 'frozen' field,
8131 as soon as testsuite is adjusted to expect that field.
8132 (mi_cmd_var_set_frozen): New.
8133 (mi_cmd_var_update): Pass the 'explicit' parameter to
8135 * mi/mi-cmds.c (mi_cmds): Register '-var-set-frozen'.
8136 * mi/mi-cmds.h (mi_cmd_var_set_frozen): Declare.
8138 2007-04-13 Paul Brook <paul@codesourcery.com>
8140 * target-descriptions.c (tdesc_named_type): Add ieee_single and
8142 * doc/gdb.texinfo: Document ieee_single and ieee_double target types.
8144 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
8146 * mips-mdebug-tdep.c, mips-mdebug-tdep.h, ocd.c, ocd.h, ppc-bdm.c,
8147 remote-e7000.c, remote-hms.c, remote-utils.c, remote-utils.h,
8148 scm-exp.c, scm-lang.c, scm-lang.h, scm-tags.h, scm-valprint.c,
8149 ser-e7kpc.c, sh3-rom.c, stop-gdb.c: Delete.
8150 * Makefile.in: Remove references to deleted files.
8151 * README: Do not mention deleted ROM monitor interfaces.
8152 * defs.h (enum language): Delete language_scm.
8153 * expprint.c (print_subexp_standard): Do not handle OP_EXPRSTRING.
8154 (dump_subexp_body_standard): Likewise.
8155 * parse.c (operator_length_standard): Likewise.
8156 * expression.h (enum exp_opcode): Delete OP_EXPRSTRING.
8157 * remote-mips.c: Do not include remote-utils.h.
8158 * remote-sim.c: Likewise. Use remote_debug instead of sr_get_debug
8160 * value.c: Do not include scm-lang.h.
8161 (unpack_long): Delete scm_unpack call.
8162 * config/h8300/h8300.mt, config/mips/embed.mt,
8163 config/powerpc/ppc-eabi.mt, config/powerpc/ppc-sim.mt,
8164 config/sh/embed.mt, config/sh/linux.mt: Remove references to
8166 * NEWS: Mention removed files.
8168 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
8170 * symfile.c (add_psymbol_with_dem_name_to_list): Remove.
8171 * symfile.h (add_psymbol_with_dem_name_to_list): Remove prototype.
8173 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
8175 * NEWS: Mention removal of HP aCC support.
8177 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
8179 * solib-svr4.c (IGNORE_FIRST_LINK_MAP_ENTRY): Do not ignore the
8180 first entry for static executables.
8181 (breakpoint_addr): Delete unused variable.
8182 (elf_locate_base): Search for _r_debug in static executables.
8183 (enable_break): Do not set breakpoint_addr. Scan solib_break_names
8186 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
8188 * breakpoint.c (update_breakpoints_after_exec, print_it_typical)
8189 (bpstat_what, print_one_breakpoint, allocate_bp_location)
8190 (mention): Remove bp_through_sigtramp support.
8191 * breakpoint.h (enum bptype): Remove bp_through_sigtramp.
8193 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
8195 * breakpoint.c (bpstat_what): Give step-resume higher priority than
8198 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
8200 * infrun.c: Doc fixes.
8201 (handle_inferior_event): Clarify debug message.
8202 (insert_step_resume_breakpoint_at_sal): Print a debug message.
8204 2007-04-12 Ulrich Weigand <uweigand@de.ibm.com>
8206 * configure.tgt (arm-*-nto*, sh-*-nto*): Remove.
8208 2007-04-12 Ulrich Weigand <uweigand@de.ibm.com>
8210 * config/m68k/tm-monitor.h: Delete file.
8211 * config/m68k/monitor.mt (DEPRECATED_TM_FILE): Remove.
8212 * m68k-tdep.c (m68k_gdbarch_init): set_gdbarch_decr_pc_after_break
8214 * m68kbsd-tdep.c (m68kbsd_init_abi): ... here and ...
8215 * m68klinux-tdep.c (m68k_linux_init_abi): ... here.
8217 2007-04-12 Luis Machado <luisgpm@br.ibm.com>
8219 * gdbarch.sh (software_single_step): Change the return type
8220 from void to int and reformatted some comments to <= 80
8222 * gdbarch.c, gdbarch.h: Regenerated.
8223 * alpha-tdep.c (alpha_software_single_step): Likewise.
8224 * alpha-tdep.h (alpha_software_single_step): Likewise.
8225 * arm-tdep.c (arm_software_single_step): Likewise.
8226 * cris-tdep.c (cris_software_single_step): Likewise.
8227 * mips-tdep.c (mips_software_single_step): Likewise.
8228 * mips-tdep.h (mips_software_single_step): Likewise.
8229 * rs6000-tdep.c (rs6000_software_single_step): Likewise.
8230 * rs6000-tdep.h (rs6000_software_single_step): Likewise.
8231 * sparc-tdep.c (sparc_software_single_step): Likewise.
8232 * sparc-tdep.h (sparc_software_single_step): Likewise.
8233 * spu-tdep.c (spu_software_single_step): Likewise.
8234 * infrun.c (resume): Check the return value from SOFTWARE_SINGLE_STEP
8235 and act accordingly.
8237 2007-04-11 Steve Ellcey <sje@cup.hp.com>
8239 * configure.ac (build_warnings): Add -Wno-char-subscripts.
8240 * configure: Regenerate.
8241 * doc/gdbint.texinfo (warning flags): Add -Wno-char-subscripts.
8243 2007-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
8245 * libunwind-frame.c (LIBUNWIND_SO): Use major version number for `.so'.
8247 2007-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
8249 * gdbtypes.h (TYPE_FLAG_STUB_SUPPORTED, TYPE_STUB_SUPPORTED): New
8251 (TYPE_IS_OPAQUE): Empty vs. opaque structures are now
8252 distinct on the TYPE_STUB_SUPPORTED debug targets.
8253 * dwarf2read.c (read_structure_type): Set TYPE_FLAG_STUB_SUPPORTED.
8255 2007-04-11 Joel Brobecker <brobecker@adacore.com>
8257 * sparc-tdep.c (X_RS2): New macro.
8258 (sparc_skip_stack_check): New function.
8259 (sparc_analyze_prologue): Adjust PC past stack probing
8260 sequence if necessary.
8262 2007-04-10 Andreas Schwab <schwab@suse.de>
8264 * rs6000-tdep.c (rs6000_dwarf2_reg_to_regnum): Decode 64 as CR
8267 2007-04-10 Daniel Jacobowitz <dan@codesourcery.com>
8269 * breakpoint.c (gdb_breakpoint_query): Really return an
8271 (gdb_breakpoint): Likewise.
8272 * thread.c (gdb_list_thread_ids): Likewise.
8273 (gdb_thread_select): Likewise.
8274 * mi/mi-main.c (mi_cmd_thread_select): Expect an enum gdb_rc.
8275 (mi_cmd_thread_list_ids): Remove bogus initialization.
8277 2007-04-10 Daniel Jacobowitz <dan@codesourcery.com>
8279 * Makefile.in (SFILES): Remove hpacc-abi.c.
8280 (COMMON_OBS): Remove hpacc-abi.o.
8281 (ALLDEPFILES): Remove hpread.c and $(HPREAD_SOURCE).
8282 (hpacc-abi.o, hpread.o): Delete rules.
8283 * somread.c: Delete extern declarations from hpread.c.
8284 (som_symfile_read): Do not call do_pxdb or hpread_build_psymtabs.
8285 (som_symfile_finish): Do not call hpread_symfile_finish.
8286 (som_symfile_init): Do not call hpread_symfile_init.
8287 * config/pa/hppa64.mt (TDEPFILES): Remove hpread.o.
8288 * config/pa/hppahpux.mt (TDEPFILES): Likewise.
8289 * hpacc-abi.c, hpread.c: Deleted.
8291 2007-04-10 Daniel Jacobowitz <dan@codesourcery.com>
8293 * solib-svr4.c (enable_break): Simplify return value.
8294 (svr4_solib_create_inferior_hook): Do not warn if enable_break fails.
8296 2007-04-10 Andreas Schwab <schwab@suse.de>
8298 * solib-svr4.h (struct link_map_offsets): Remove l_addr_size,
8299 l_ld_size, l_next_size, l_prev_size, l_name_size.
8301 * solib-svr4.c (LM_ADDR_FROM_LINK_MAP): Use extract_typed_address
8302 to extract addresses from link map.
8303 (LM_DYNAMIC_FROM_LINK_MAP): Likewise.
8304 (LM_NEXT): Likewise.
8305 (LM_NAME): Likewise.
8306 (IGNORE_FIRST_LINK_MAP_ENTRY): Likewise.
8307 (elf_locate_base): Likewise.
8308 (open_symbol_file_object): Likewise.
8309 (svr4_fetch_objfile_link_map): Likewise.
8310 (SOLIB_EXTRACT_ADDRESS): Remove unused macro.
8311 (HAS_LM_DYNAMIC_FROM_LINK_MAP): Test l_ld_offset instead of
8313 (svr4_ilp32_fetch_link_map_offsets): Don't set removed members.
8314 (svr4_lp64_fetch_link_map_offsets): Likewise.
8316 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets): Don't set
8317 removed members. Set l_ld_offset to -1 if not present.
8319 2007-04-08 Vladimir Prus <vladimir@codesourcery.com>
8321 Pass stderr of program run with "target remote |"
8323 * serial.c (serial_open): Set error_fd to -1.
8324 * serial.h (struct serial): New field error_fd.
8325 (struct serial_opts): New field avail.
8326 * ser-pipe.c (pipe_open): Create another pair
8327 of sockets. Pass stderr to gdb.
8328 * ser-mingw.c (pipe_windows_open): Pass
8329 PEX_STDERR_TO_PIPE to pex_run. Initialize
8332 (_initialize_ser_windows): Hook pipe_avail.
8333 * ser-base.c (generic_readchar): Check if there's
8334 anything in stderr channel and route that to gdb_stderr.
8336 2007-04-03 Pedro Alves <pedro_alves@portugalmail.pt>
8338 * dbxread.c (read_ofile_symtab): Move current_objfile
8339 clearing to after end_stabs.
8341 2007-04-01 Andreas Schwab <schwab@suse.de>
8343 * rs6000-tdep.c (rs6000_convert_from_func_ptr_addr): Use parameter
8344 gdbarch instead of current_gdbarch.
8346 2007-04-01 Vladimir Prus <vladimir@codesourcery.com>
8348 * varobj.c (varobj_create): Keep varobj value
8349 NULL when evaluating the type.
8351 2007-03-31 Pedro Alves <pedro_alves@portugalmail.pt>
8353 * NEWS: Mention new Windows CE support.
8355 2007-03-30 Pedro Alves <pedro_alves@portugalmail.pt>
8357 * configure.tgt: Move mips*-*-pe and sh*-*-pe to
8358 the obsoletion stanza.
8359 * NEWS: Mention deleted targets.
8361 * config/sh/tm-wince.h: Remove.
8362 * config/sh/wince.mt: Remove.
8363 * config/mips/tm-wince.h: Remove.
8364 * config/mips/wince.mt: Remove.
8367 * wince-stub.c: Remove.
8368 * wince-stub.h: Remove.
8369 * Makefile.in (wince.o): Remove rule.
8370 (wince-stub.o): Likewise.
8372 * mips-tdep.c (mips_next_pc): Make static.
8373 * mips-tdep.h (mips_next_pc): Remove declaration.
8374 * arm-tdep.c (arm_pc_is_thumb): Make static.
8375 (thumb_get_next_pc): Likewise.
8376 (arm_get_next_pc): Likewise.
8377 * arm-tdep.h (arm_pc_is_thumb_dummy): Remove declaration.
8378 (arm_pc_is_thumb): Likewise.
8379 (thumb_get_next_pc): Likewise.
8380 (arm_get_next_pc): Likewise.
8382 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
8384 * MAINTAINERS: Remove d10v entry.
8385 * Makefile.in (SFILES): Remove dwarfread.c.
8386 (COMMON_OBS): Remove dwarfread.o.
8387 (gdb_sim_d10v_h, abug-rom.o, cpu32bug-rom.o, d10v-tdep.o, dwarfread.o)
8388 (remote-est.o, rom68k-rom.o): Delete.
8389 * NEWS: Mention removal of d10v, target abug, target cpu32bug,
8390 target est, target rom68k, and DWARF 1.
8391 * configure.tgt: Mark d10v as removed.
8392 * dwarf2read.c: Doc update.
8393 * elfread.c (struct elfinfo): Remove dboffset, dbsize, lnoffset,
8395 (elf_locate_sections): Do not set them.
8396 (elf_symfile_read): Do not call dwarf_build_psymtabs.
8397 * symfile.h (dwarf_build_psymtabs): Delete prototype.
8398 * config/m68k/monitor.mt (TDEPFILES): Prune.
8399 * abug-rom.c, cpu32bug-rom.c, d10v-tdep.c, dwarfread.c,
8400 remote-est.c, rom68k-rom.c, config/d10v/d10v.mt: Delete.
8402 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
8404 * doublest.c (convert_floatformat_to_doublest): Use
8405 floatformat_classify.
8406 (floatformat_is_nan): Rename to...
8407 (floatformat_classify): ...this. Return more information.
8408 * doublest.h (enum float_kind): New.
8409 (floatformat_is_nan): Replace prototype...
8410 (floatformat_classify): ...with this one.
8411 * valprint.c (print_floating): Use floatformat_classify. Handle
8414 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
8416 * README: Mention ISO C library requirement.
8418 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
8420 * Makefile.in (SFILES): Remove nlmread.c.
8421 (COMMON_OBS): Remove nlmread.o.
8422 (nlmread.o): Delete rule.
8423 * README: Delete reference to remote-st.c.
8424 * acinclude.m4 (CY_AC_TCL_LYNX_POSIX): Delete.
8425 * defs.h (enum gdb_osabi): Delete GDB_OSABI_NETWARE and
8427 * i386-tdep.c (i386_nw_init_abi, i386_nlm_osabi_sniffer): Delete.
8428 (_initialize_i386_tdep): Do not reference them.
8429 * nlmread.c: Delete file.
8430 * osabi.c (gdb_osabi_names): Remove NetWare and LynxOS.
8431 * target.c: Doc update.
8432 * thread.c: Delete commented include.
8433 * config/alpha/tm-alpha.h: Doc update.
8435 2007-03-30 Chris Dearman <chris@mips.com>
8437 * utils.c (string_to_core_addr): Comment typo.
8439 2007-03-30 Chris Dearman <chris@mips.com>
8441 * mips-tdep.c: Comment typo.
8443 2007-03-29 Ulrich Weigand <uweigand@de.ibm.com>
8445 * config/alpha/nm-osf.h (PTRACE_XFER_TYPE): Remove.
8446 * config/mips/nm-linux.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Remove.
8447 * config/sparc/nm-linux.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Remove.
8448 * config/powerpc/nm-ppc64-linux.h: Remove file.
8449 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Set to nm-linux.h.
8450 * inferior.h (PTRACE_ARG3_TYPE): Do not define.
8451 (call_ptrace): Change type of third argument to PTRACE_TYPE_ARG3.
8452 * infptrace.c (call_ptrace): Likewise.
8453 * m68klinux-nat.c (PTRACE_XFER_TYPE): Do not define.
8454 (fetch_register): Replace PTRACE_ARG3_TYPE by PTRACE_TYPE_ARG3
8455 and PTRACE_XFER_TYPE by PTRACE_TYPE_RET.
8456 (store_register): Likewise.
8458 2007-03-29 Joel Brobecker <brobecker@adacore.com>
8460 * Makefile.in (varobj.o): Add missing dependency.
8462 2007-03-29 Michael Snyder <msnyder@access-company.com>
8464 * MAINTAINERS: Update my email address.
8466 2007-03-29 Joel Brobecker <brobecker@adacore.com>
8468 Add support for exception handling with multiple versions of
8470 * ada-lang.c: Update general comments on how Ada exception catchpoints
8472 (raise_sym_name, raise_unhandled_sym_name, raise_assert_sym_name)
8473 (__gnat_raise_nodefer_with_msg): Delete.
8474 (ada_unhandled_exception_name_addr_ftype): New type.
8475 (exception_support_info): New type.
8476 (ada_unhandled_exception_name_addr): Add forward declaration.
8477 (ada_unhandled_exception_name_addr_from_raise): Likewise.
8478 (default_exception_support_info): New constant.
8479 (exception_support_info_fallback): Likewise.
8480 (exception_info): New global variable.
8481 (ada_exception_support_info_sniffer): New function.
8482 (ada_executable_changed_observer): Likewise.
8483 (ada_unhandled_exception_name_addr_from_raise): Renamed from
8484 ada_unhandled_exception_name_addr.
8485 (ada_unhandled_exception_name_addr): Reimplement to match the
8486 latest Ada runtime implementation.
8487 (error_breakpoint_runtime_sym_not_found): Delete.
8488 (ada_exception_sym_name): Get the exception sym name from
8489 exception_info rather than hardcoding it.
8490 (ada_exception_sal): Add call to ada_exception_support_info_sniffer.
8491 Update error handling.
8492 * Makefile.in (ada-lang.o): Add dependency on observer.h.
8494 2007-03-29 Daniel Jacobowitz <dan@codesourcery.com>
8496 * Makefile.in (coff_solib_h, coff-solib.o, i386v-nat.o, lynx-nat.o)
8497 (remote-st.o, uw-thread.o): Delete.
8498 (HFILES_NO_SRCDIR, ALLDEPFILES): Update.
8499 * configure.host: Move hppa*-*-hiux*, i[34567]86-ncr-*,
8500 i[34567]86-*-dgux*, i[34567]86-*-lynxos*, i[34567]86-*-sco3.2v5*,
8501 i[34567]86-*-sco3.2v4*, i[34567]86-*-sco*, i[34567]86-*-sysv4.2*,
8502 i[34567]86-*-sysv4*, i[34567]86-*-sysv5*, i[34567]86-*-unixware2*,
8503 i[34567]86-*-unixware*, i[34567]86-*-sysv*, i[34567]86-*-isc*, and
8504 rs6000-*-lynxos* to an obsoletion stanza.
8505 * configure.tgt: Move hppa*-*-hiux*, i[34567]86-ncr-*,
8506 i[34567]86-*-lynxos*, m68*-cisco*-*, m68*-tandem-*, m68*-*-os68k*,
8507 and rs6000-*-lynxos* to an obsoletion stanza. Do not mention
8508 i[34567]86-*-netware*.
8509 * NEWS: Mention deleted targets.
8511 * coff-solib.c, coff-solib.h, i386v-nat.c, lynx-nat.c, remote-st.c,
8512 uw-thread.c, config/nm-lynx.h, config/i386/i386sco.mh,
8513 config/i386/i386sco4.mh, config/i386/i386sco5.mh, config/i386/i386v.mh,
8514 config/i386/i386v4.mh, config/i386/i386v42mp.mh,
8515 config/i386/ncr3000.mh, config/i386/ncr3000.mt,
8516 config/i386/nm-i386sco.h, config/i386/nm-i386sco4.h,
8517 config/i386/nm-i386sco5.h, config/i386/nm-i386v.h,
8518 config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h,
8519 config/m68k/cisco.mt, config/m68k/os68k.mt, config/m68k/st2000.mt,
8520 config/m68k/tm-cisco.h, config/m68k/tm-os68k.h,
8521 config/rs6000/rs6000lynx.mh, config/rs6000/rs6000lynx.mt,
8522 config/rs6000/tm-rs6000ly.h: Delete files.
8524 2007-03-29 Daniel Jacobowitz <dan@codesourcery.com>
8526 * defs.h (deprecated_registers_changed_hook): Delete declaration.
8527 * interps.c (clear_interpreter_hooks): Do not clear
8528 deprecated_registers_changed_hook.
8529 * regcache.c (registers_changed): Do not call it.
8530 * top.c (deprecated_registers_changed_hook): Do not define it.
8531 * mi/mi-interp.c (mi_command_loop): Do not clear it.
8532 * tui/tui-hooks.c (tui_install_hooks): Do not install it.
8533 (tui_remove_hooks): Do not remove it.
8534 (tui_selected_frame_level_changed_hook): Check for negative level.
8535 Use get_selected_frame.
8536 (tui_registers_changed_hook): Deleted.
8538 2007-03-29 Joel Brobecker <brobecker@adacore.com>
8540 * stabsread.c (add_undefined_type): Add extra parameter.
8541 Now handles nameless types separately.
8542 (struct nat): New type.
8543 (noname_undefs, noname_undefs_allocated, noname_undefs_length):
8544 New static variables.
8545 (read_type): Update calls to add_undefined_type.
8546 (add_undefined_type_noname): New function.
8547 (add_undefined_type_1): Renames from add_undefined_type.
8548 (cleanup_undefined_types_noname): New function.
8549 (cleanup_undefined_types_1): Renames cleanup_undefined_types.
8550 (cleanup_undefined_types): New handles nameless types separately.
8551 (_initialize_stabsread): Initialize our new static constants.
8553 2007-03-29 Denis Pilat <denis.pilat@st.com>
8555 * configure.ac: Test for signal.h.
8556 * configure, config.in: Regenerate.
8558 2007-03-29 Denis Pilat <denis.pilat@st.com>
8560 * stack.c (print_stack_frame): Always use LOC_AND_ADDRESS in MI output.
8561 * infrun.c (normal_stop): Remove MI specific frame printing treatment.
8563 2007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
8565 * arm-wince-tdep.c: New.
8566 * config/arm/wince.mt (DEPRECATED_TM_FILE): Use tm-arm.h.
8567 (MT_CFLAGS): Delete.
8569 (TDEPFILES): Add arm-wince-tdep.o, corelow.o, solib.o,
8570 solib-legacy.o, solib-svr4.o, and remove wince.o.
8571 * configure.tgt (arm*-*-mingw32ce*): Add.
8572 * signals/signals.c [HAVE_SIGNAL_H]: Check.
8573 (do_target_signal_to_host): Silence 'not used' warning.
8574 * config/arm/tm-wince.h: Remove.
8576 2007-03-28 Ulrich Weigand <uweigand@de.ibm.com>
8578 * arch-utils.c (legacy_pc_in_sigtramp): Remove.
8579 * arch-utils.h (legacy_pc_in_sigtramp): Remove.
8581 * config/ia64/linux.mt (DEPRECATED_TM_FILE): Remove.
8582 * config/ia64/tm-linux.h: Remove file.
8583 * ia64-tdep.h (struct gdbarch_tdep): Add pc_in_sigtramp callback.
8584 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Use it instead of
8585 legacy_pc_in_sigtramp.
8586 (ia64_gdbarch_init): Initialize tdep->pc_in_sigtramp.
8587 * ia64-linux-tdep.c (ia64_linux_pc_in_sigtramp): Make static.
8588 Remove func_name argument.
8589 (ia64_linux_init_abi): Install it as tdep->pc_in_sigtramp.
8591 * infrun.c (HAVE_STEPPABLE_WATCHPOINT): Do not redefine.
8592 * target.c (update_current_target): Add to_have_steppable_watchpoint.
8593 * target.h (struct target_ops): Add to_have_steppable_watchpoint.
8594 (HAVE_STEPPABLE_WATCHPOINT): Define.
8596 * config/ia64/linux.mh (NATDEPFILES): Remove core-aout.o.
8597 * config/ia64/nm-linux.h (KERNEL_U_ADDR, U_REGS_OFFSET,
8598 CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER,
8599 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_STEPPABLE_WATCHPOINT,
8600 STOPPED_BY_WATCHPOINT, target_stopped_data_address,
8601 target_insert_watchpoint, target_remove_watchpoint): Remove.
8602 (FETCH_INFERIOR_REGISTERS): Define.
8603 * ia64-linux-nat.c (ia64_register_addr): Make static.
8604 (ia64_cannot_fetch_register, ia64_cannot_store_register): Likewise.
8605 (ia64_linux_insert_watchpoint): Make static. Remove ptid_p argument.
8606 (ia64_linux_remove_watchpoint): Likewise. Add type argument.
8607 (ia64_linux_stopped_data_address): Make static. Add target_ops.
8608 (ia64_linux_stopped_by_watchpoint): Make static.
8609 (ia64_linux_can_use_hw_breakpoint): New function.
8610 (ia64_linux_fetch_register, ia64_linux_fetch_registers): Likewise.
8611 (ia64_linux_store_register, ia64_linux_store_registers): Likewise.
8612 (_initialize_ia64_linux_nat): Install register and watchpoint ops.
8614 2007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
8616 * linespec.c: Include language.h.
8617 (find_methods): Add language parameter. Call
8618 lookup_symbol_in_language. Pass language down.
8619 (add_matching_methods): Likewise. Call
8620 lookup_symbol_in_language.
8621 (add_constructors): Likewise.
8622 (find_method): Pass sym_class to collect_methods.
8623 (collect_methods): Add sym_class parameter. Pass language
8625 * symtab.c (lookup_symbol): Rename to ...
8626 (lookup_symbol_in_language): ... this. Add language
8627 parameter. Use passed language instead of current_language.
8628 (lookup_symbol): New as wrapper around
8629 lookup_symbol_in_language.
8630 (lookup_symbol_aux): Add language parameter. Use passed
8631 language instead of current_language.
8632 (search_symbols): Indent.
8633 * symtab.h (enum language): Forward declare.
8634 (lookup_symbol_in_language): Declare.
8635 (lookup_symbol): Update description.
8636 * ada-lang.h (lookup_symbol_in_language): Remove declaration.
8637 * ada-lang.c (restore_language): Remove.
8638 (lookup_symbol_in_language): Remove.
8640 2007-03-27 Pedro Alves <pedro_alves@portugalmail.pt>
8642 * breakpoint.c (bpstat_num): Add int *num parameter.
8643 * breakpoint.h (bpstat_num): Likewise.
8644 * infcmd.c (continue_command): Adjust to new bpstat_num
8646 (program_info): Likewise.
8648 2007-03-27 Ulrich Weigand <uweigand@de.ibm.com>
8650 * config/sh/tm-sh.h: Remove file.
8651 * config/sh/embed.mt (DEPRECATED_TM_FILE): Remove.
8652 * config/sh/linux.mt (DEPRECATED_TM_FILE): Remove.
8653 * config/sh/nbsd.mt (DEPRECATED_TM_FILE): Remove.
8654 * config/sh/tm-wince.h: Do not include "sh/tm-sh.h".
8656 2007-03-27 Ulrich Weigand <uweigand@de.ibm.com>
8658 * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT,
8659 DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Remove.
8660 * remote.c: Remove code under #ifdef DEPRECATED_REMOTE_BREAKPOINT,
8661 DEPRECATED_BIG_REMOTE_BREAKPOINT, DEPRECATED_LITTLE_REMOTE_BREAKPOINT.
8662 * sh-tdep.c (sh_breakpoint_from_pc): Return remote breakpoint
8663 sequence if target_shortname is "remote".
8665 2007-03-27 Anton Blanchard <anton@samba.org>
8667 * rs6000-tdep.c (rs6000_frame_cache): Use tdep->lr_frame_offset
8668 instead of wordsize when looking for the LR in a stack frame.
8670 2007-03-27 Andreas Schwab <schwab@suse.de>
8671 Daniel Jacobowitz <dan@codesourcery.com>
8673 * dwarf2-frame.c (dwarf2_frame_eh_frame_regnum): Rename to...
8674 (dwarf2_frame_adjust_regnum): ...this. Make static. Add eh_frame_p
8675 argument. Update all callers.
8676 (struct dwarf2_frame_ops): Replace eh_frame_regnum with adjust_regnum.
8677 (dwarf2_frame_set_eh_frame_regnum): Rename to...
8678 (dwarf2_frame_set_adjust_regnum): ...this. Update argument type.
8679 * dwarf2frame.h (dwarf2_frame_set_eh_frame_regnum): Rename to...
8680 (dwarf2_frame_set_adjust_regnum): ...this.
8681 (dwarf2_frame_eh_frame_regnum): Delete prototype.
8682 * rs6000-tdep.c: Include "dwarf2-frame.h".
8683 (rs6000_adjust_frame_regnum): Define.
8684 (rs6000_gdbarch_init): Enable use of DWARF CFI frame unwinder.
8685 Register rs6000_adjust_frame_regnum.
8687 * Makefile.in (rs6000-tdep.o): Update dependencies.
8689 2007-03-27 Brooks Moses <brooks.moses@codesourcery.com>
8691 * Makefile.in: Add support for a "pdf" target.
8693 2007-03-27 Daniel Jacobowitz <dan@codesourcery.com>
8695 * amd64-tdep.c (amd64_init_frame_cache): New function.
8696 (amd64_alloc_frame_cache, amd64_skip_prologue): Use it.
8698 2007-03-26 Nigel Stephens <nigel@mips.com>
8699 Maciej W. Rozycki <macro@mips.com>
8701 * ui-out.c (ui_out_field_core_addr): Truncate address to
8702 TARGET_ADDR_BIT size before printing.
8704 2007-03-22 Nigel Stephens <nigel@mips.com>
8705 Maciej W. Rozycki <macro@mips.com>
8707 * remote-mips.c (mips_xfer_memory): Update prototype.
8709 2007-03-22 Joel Brobecker <brobecker@adacore.com>
8711 * symfile.h: #include "symtab.h"
8713 2007-03-22 Denis Pilat <denis.pilat@st.com>
8715 * utils.c (pagination_on_command, pagination_off_command):
8716 Remove useless prototypes.
8718 2007-03-21 Pierre Muller <muller@ics.u-strasbg.fr>
8721 * p-valprint.c (pascal_object_print_value): Use type_name_no_tag
8722 instead of TYPE_NAME for object base class name.
8725 2007-03-19 Kevin Buettner <kevinb@redhat.com>
8727 * mep-tdep.c (mep_analyze_frame_prologue, mep_frame_this_id):
8728 Specify frame type in calls to frame_func_unwind().
8730 2007-03-13 Daniel Jacobowitz <dan@codesourcery.com>
8732 * rs6000-tdep.c (rs6000_skip_prologue): Use skip_prologue_using_sal.
8733 (rs6000_in_function_epilogue_p): Use extract_unsigned_integer.
8734 (refine_prologue_limit): Delete.
8735 (skip_prologue): Don't call it. Use extract_unsigned_integer.
8736 Assume lim_pc is set. Correct check for incomplete prologues.
8737 Do not skip clobbers of the frame pointer.
8738 * symtab.c (skip_prologue_using_sal): Fail if there is only one
8741 2007-03-13 Nathan Froyd <froydnj@codesourcery.com>
8743 * frame.c (frame_pop): Check to see whether there's a frame to
8744 which we can pop first.
8746 2007-03-13 Nathan Froyd <froydnj@codesourcery.com>
8748 * MAINTAINERS (Write After Approval): Add myself.
8750 2007-03-09 Markus Deuling <deuling@de.ibm.com>
8752 * infrun.c (breakpoints_failed): Remove unnecessary variable.
8753 (handle_inferior_event): Remove unnecessary braces.
8754 * breakpoint.c (bpstat_what): Remove wrong comment.
8756 2007-03-09 Ulrich Weigand <uweigand@de.ibm.com>
8758 * spu-tdep.c (spu_in_function_epilogue_p): New function.
8759 (spu_gdbarch_init): Install it.
8761 2007-03-08 Ulrich Weigand <uweigand@de.ibm.com>
8763 * spu-linux-nat.c (spu_xfer_partial): Return -1 for unsupported
8764 object types, not 0.
8766 2007-03-08 Ulrich Weigand <uweigand@de.ibm.com>
8768 * spu-tdep.c (spu_frame_align): New function.
8769 (spu_gdbarch_init): Install it. Set call dummy location to ON_STACK.
8771 2007-03-08 Ulrich Weigand <uweigand@de.ibm.com>
8773 * spu-tdep.c (spu_unwind_pc): Mask off interrupt enable bit.
8774 (spu_software_single_step): Likewise.
8775 (spu_read_pc, spu_write_pc): New functions.
8776 (spu_gdbarch_init): Install them.
8778 2007-03-08 Ulrich Weigand <uweigand@de.ibm.com>
8780 * cli/cli-dump.c (struct callback_data): load_offset needs to
8781 have signed long type.
8783 2007-03-07 Joel Brobecker <brobecker@adacore.com>
8785 * mips-tdep.c (mips_insn16_frame_cache, mips_insn32_frame_sniffer):
8786 Revert the previous change that had some unexpected side-effects
8788 (mips_insn16_frame_cache, mips_insn32_frame_cache): Use the proper
8789 function to get the address of the calling instruction.
8791 2007-03-07 Denis Pilat <denis.pilat@st.com>
8793 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Replace
8794 get_selected_frame by deprecated_safe_get_selected_frame.
8796 2007-03-02 Mark Kettenis <kettenis@gnu.org>
8798 * shnbsd-tdep.c: Include "regset.h", "gdb_assert.h" and
8799 "gdb_string.h". Don't include "nbsd-tdep.h".
8800 (SIZEOF_STRUCT_REG): Remove.
8801 (SHNBSD_SIZEOF_GREGS): New.
8802 (shnbsd_supply_gregset, shnbsd_collect_gregset)
8803 (shnbsd_regset_from_core_section): New functions.
8804 (fetch_core_registers, fetch_elfcore_registers): Remove functions.
8805 (shnbsd_supply_reg, shnbsd_fill_reg): Simply call
8806 shnbsd_supply_gregset, shnbsd_collect_gregset.
8807 (shnbsd_gregset): New variable.
8808 (shnbsd_init_abi): Set regset_from_core_section.
8809 (GDB_OSABI_NETBSD_CORE): New define.
8810 (shnbsd_core_osabi_sniffer): New function.
8811 (_initialize_shnbsd_tdep): Register shnbsd_core_osabi_sniffer.
8812 * Makefile.in (shnbsd-tdep.o): Update dependencies.
8813 * config/sh/nbsd.mt (TDEPFILES): Add corelow.o, remove
8815 * config/sh/obsd.mt (TDEPFILES): Remove nbsd-tdep.o.
8817 2007-02-28 Joel Brobecker <brobecker@adacore.com>
8819 * gdbtypes.c (replace_type): Fix typo that caused us to not update
8820 length of the types referenced by the new type CV ring.
8822 2007-02-28 Daniel Jacobowitz <dan@codesourcery.com>
8824 * frame.c (frame_pop, frame_observer_target_changed): Call
8826 (flush_cached_frames): Rename to reinit_frame_cache and delete
8828 * frame.h (flush_cached_frames): Delete prototype and update comment.
8830 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd): Call
8831 reinit_frame_cache instead of flush_cached_frames. Do not call
8832 select_frame after reinit_frame_cache.
8833 * corelow.c (core_open): Likewise.
8834 * gdbarch.sh (deprecated_current_gdbarch_select_hack): Likewise.
8835 * infrun.c (prepare_to_proceed, context_switch)
8836 (handle_inferior_event): Likewise.
8837 * linux-fork.c (fork_load_infrun_state): Likewise.
8838 * ocd.c (ocd_start_remote): Likewise.
8839 * remote-e7000.c (e7000_start_remote): Likewise.
8840 * remote-mips.c (device): Likewise.
8841 * thread.c (switch_to_thread): Likewise.
8842 * tracepoint.c (finish_tfind_command): Likewise.
8843 * gdbarch.c: Regenerated.
8845 2007-02-28 Jerome Guitton <guitton@adacore.com>
8846 Joel Brobecker <brobecker@adacore.com>
8848 * gdbtypes.c (check_typedef): Do not replace stub type if
8849 the resolved type is not defined in the same objfile.
8851 2007-02-28 Daniel Jacobowitz <dan@codesourcery.com>
8853 * top.c (gdb_readline_wrapper_cleanup): Remove invalid assertion.
8855 2007-02-28 Joel Brobecker <brobecker@adacore.com>
8857 * stabsread.c (define_symbol): Create an associated STRUCT_DOMAIN
8858 symbol for Ada units when the symbol is defined using 't' rather
8859 than 'Tt' as symbol descriptor.
8861 2007-02-28 Ulrich Weigand <uweigand@de.ibm.com>
8863 * config/mips/tm-nbsd.h: Delete file.
8864 * config/mips/nbsd.mt (DEPRECATED_TM_FILE): Remove.
8865 * config/sh/tm-nbsd.h: Delete file.
8866 * config/sh/nbsd.mt (DEPRECATED_TM_FILE): Set to tm-sh.h.
8868 2007-02-28 Joel Brobecker <brobecker@adacore.com>
8870 * mi/mi-cmd-var.c (varobj_update_one): Remove reference to
8871 unused WRONG_PARAM value since it was recently deleted.
8873 2007-02-28 Vladimir Prus <vladimir@codesourcery.com>
8875 * varobj.c (varobj_update): Free temporary vectors.
8877 2007-02-28 Ulrich Weigand <uweigand@de.ibm.com>
8879 * config/powerpc/linux.mt (DEPRECATED_TM_FILE): Set to tm-ppc-eabi.h.
8880 * config/powerpc/tm-linux.h: Delete file.
8881 * config/powerpc/tm-ppc-eabi.h: Do not include "rs6000/tm-rs6000.h".
8882 (PROCESS_LINENUMBER_HOOK): Do not undefine.
8883 (TEXT_SEGMENT_BASE): Do not redefine.
8884 * config/rs6000/nm-rs6000.h (CHILD_SPECIAL_WAITSTATUS): Move here
8885 from config/rs6000/tm-rs6000.h.
8886 (TARGET_CREATE_INFERIOR_HOOK, rs6000_create_inferior): Likewise.
8887 * config/rs6000/tm-rs6000.h (struct frame_info): Remove declaration.
8888 (TEXT_SEGMENT_BASE): Remove.
8889 (IN_SOLIB_RETURN_TRAMPOLINE): Remove.
8890 (rs6000_in_solib_return_trampoline): Remove.
8891 (SKIP_TRAMPOLINE_CODE): Remove.
8892 (rs6000_skip_trampoline_code): Remove.
8893 (CHILD_SPECIAL_WAITSTATUS): Move to config/rs6000/nm-rs6000.h.
8894 (TARGET_CREATE_INFERIOR_HOOK, rs6000_create_inferior): Likewise.
8895 (FP0_REGNUM): Remove.
8896 (rs6000_find_toc_address_hook): Move to rs6000-tdep.h.
8897 (rs6000_set_host_arch_hook): Remove.
8898 * Makefile.in (rs6000-nat.o): Add dependency on $(rs6000_tdep_h).
8899 (rs6000-aix-tdep.o): Add dependency on $(ppc_tdep_h).
8900 * ppc-tdep.h (struct gdbarch_tdep): Add field text_segment_base.
8901 * rs6000-aix-tdep.c: Include "ppc-tdep.h".
8902 (rs6000_aix_init_osabi): Set text_segment_base tdep field.
8903 * rs6000-nat.c: Include "rs6000-tdep.h".
8904 (exec_one_dummy_insn): Replace TEXT_SEGMENT_BASE by tdep field.
8905 (set_host_arch): Rename to ...
8906 (rs6000_create_inferior): ... this. Make public.
8907 (_initialize_core_rs6000): Do not set rs6000_set_host_arch_hook.
8908 * rs6000-tdep.c (rs6000_set_host_arch_hook): Remove.
8909 (rs6000_create_inferior): Remove.
8910 (branch_dest): Replace TEXT_SEGMENT_BASE by tdep field.
8911 (rs6000_gdbarch_init): Call set_gdbarch_fp0_regnum,
8912 set_gdbarch_in_solib_return_trampoline, and
8913 set_gdbarch_skip_trampoline_code.
8914 * rs6000-tdep.h (rs6000_find_toc_address_hook): Move here
8915 from config/rs6000/tm-rs6000.h.
8917 2007-02-27 Joel Brobecker <brobecker@adacore.com>
8919 * buildsym.c (record_producer): Do nothing if no producer is provided.
8921 2007-02-27 Nick Roberts <nickrob@snap.net.nz>
8923 * varobj.c (varobj_update): Remove unused local. Use gdb_assert
8924 to check changelist is non-NULL. Call error if the frontend tries
8925 to update a non-root variable.
8927 * varobj.h (enum varobj_update_error): Delete WRONG_PARAM value.
8929 2007-02-27 Daniel Jacobowitz <dan@codesourcery.com>
8931 * dwarf2-frame.c (dwarf2_frame_cache, dwarf2_frame_this_id)
8932 (dwarf2_frame_sniffer): Update.
8933 (dwarf2_signal_frame_this_id): New function.
8934 (dwarf2_signal_frame_unwind): Use it.
8935 (dwarf2_frame_base_sniffer): Use frame_unwind_address_in_block.
8936 * frame.c (frame_func_unwind): Add this_type argument.
8937 (get_frame_func): Update.
8938 (frame_unwind_address_in_block): Add this_type argument and check it.
8940 (get_frame_address_in_block): Update.
8941 * frame.h (enum frame_type): Move higher in the file.
8942 (frame_unwind_address_in_block, frame_func_unwind): Add enum frame_type
8945 * alpha-mdebug-tdep.c, alpha-tdep.c, amd64-tdep.c, amd64obsd-tdep.c,
8946 arm-tdep.c, avr-tdep.c, cris-tdep.c, frv-tdep.c, h8300-tdep.c,
8947 hppa-tdep.c, i386-tdep.c, i386obsd-tdep.c, ia64-tdep.c,
8948 libunwind-frame.c, m32c-tdep.c, m32r-linux-tdep.c, m32r-tdep.c,
8949 m68hc11-tdep.c, m68k-tdep.c, m88k-tdep.c, mips-mdebug-tdep.c,
8950 mips-tdep.c, mn10300-tdep.c, mt-tdep.c, rs6000-tdep.c, s390-tdep.c,
8951 score-tdep.c, sh-tdep.c, sh64-tdep.c, sparc-tdep.c,
8952 sparc64obsd-tdep.c, spu-tdep.c, v850-tdep.c, vax-tdep.c,
8953 xstormy16-tdep.c, xtensa-tdep.c: Update calls to
8954 frame_func_unwind and frame_unwind_address_in_block to specify
8955 the frame type. Use frame_unwind_address_in_block instead of
8956 frame_pc_unwind in sniffers.
8958 2007-02-27 Daniel Jacobowitz <dan@codesourcery.com>
8960 * frame.c (deprecated_selected_frame): Rename to...
8961 (selected_frame): ...this. Make static.
8962 (get_selected_frame, select_frame): Update.
8963 * frame.h (deprected_select_frame): Delete.
8964 (deprecated_safe_get_selected_frame): Update comments.
8966 * breakpoint.c, cli/cli-cmds.c, f-valprint.c, infcmd.c, inflow.c,
8967 infrun.c, stack.c, tui/tui-disasm.c, tui/tui-source.c,
8968 tui/tui-winsource.c, valops.c, varobj.c, findvar.c, macroscope.c,
8969 parse.c, regcache.h, sh64-tdep.c, tui/tui-hooks.c, tui/tui-win.c,
8970 tui/tui.c: Replace references to deprecated_selected_frame.
8972 2007-02-27 Fred Fish <fnf@specifix.com>
8974 * rs6000-tdep.c (skip_prologue): Recognize addi instructions that
8975 directly decrement the stack pointer, accumulate their operand into
8976 the stack offset, and mark the function as not being frameless.
8978 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
8980 * arch-utils.c (selected_byte_order): New.
8981 * arch-utils.h (selected_byte_order): New prototype.
8982 * remote-sim.c (gdbsim_open): Use selected_byte_order.
8984 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
8986 * symfile.c (place_section): Check SEC_ALLOC. Do not check VMA.
8987 (default_symfile_offsets): Check VMA here. Update section VMAs.
8989 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
8991 * remote.c (init_remote_state): Add special handling for placeholder
8994 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
8996 * Makefile.in (XMLFILES): Include $(TDEP_XML).
8997 (filenames_h): New variable.
8998 (clean): Clean up xml-builtin.c and stamp-xml.
8999 (arm-linux-nat.o): Update.
9000 * config/arm/linux.mh (TDEP_XML): Define.
9001 * arm-linux-nat.c (PTRACE_GETWMMXREGS, PTRACE_SETWMMXREGS): Define.
9002 (arm_linux_has_wmmx_registers): New.
9003 (GET_THREAD_ID): Fix typo.
9004 (IWMMXT_REGS_SIZE): Define.
9005 (fetch_wmmx_regs, store_wmmx_regs): New.
9006 (arm_linux_fetch_inferior_registers): Use fetch_wmmx_regs.
9007 (arm_linux_store_inferior_registers): Use store_wmmx_regs.
9008 (super_xfer_partial, arm_linux_xfer_partial): New.
9009 (_initialize_arm_linux_nat): Use them.
9010 * xml-support.c (fetch_xml_builtin): Move outside HAVE_LIBEXPAT.
9011 (xml_builtin_xfer_partial): New function.
9012 * xml-support.h (xml_builtin_xfer_partial): New prototype.
9013 * NEWS: Update mention of iWMMXt support.
9015 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
9017 * arm-tdep.c (arm_scan_prologue): Do not record FPA register saves
9018 if there are no FPA registers.
9019 (arm_dwarf_reg_to_regnum): New function.
9020 (arm_register_type, arm_register_name): Return minimal values for
9021 unsupported registers.
9022 (arm_register_sim_regno): Handle iWMMXt registers.
9023 (arm_gdbarch_init): Record missing FPA registers if indicated by
9024 a target description. Recognize iWMMXt registers. Only register
9025 "info float" for FPA. Use ARM_NUM_REGS. Register
9026 arm_dwarf_reg_to_regnum.
9027 * arm-tdep.h (enum gdb_regnum): Add ARM_NUM_REGS and iWMMXt
9029 (struct gdbarch_tdep): Add have_fpa_registers.
9030 * features/xscale-iwmmxt.xml: Update capitalization.
9031 * regformats/arm-with-iwmmxt.dat: Regenerated.
9033 2007-02-24 Kevin Buettner <kevinb@redhat.com>
9035 * NEWS (New targets): Add entry for the Toshiba Media Processor.
9037 2007-02-23 Kevin Buettner <kevinb@redhat.com>
9039 * MAINTAINERS (mep): New target.
9041 2007-02-23 Kevin Buettner <kevinb@redhat.com>
9043 From Jim Blandy, Dave Brolley, Kevin Buettner, Don Howard, and
9045 * Makefile.in (elf_mep_h, mep_desc_h, mep_opc_h): New variables.
9046 (mep-tdep.o): New rule.
9047 * configure.tgt (mep-*-*): New target.
9048 * mep-tdep.c: New file.
9049 * config/mep/mep.mt: New file.
9051 2007-02-22 Markus Deuling <deuling@de.ibm.com>
9053 * infrun.c (inferior_stop_reason, print_stop_reason): Remove
9054 BREAKPOINT_HIT and STOP_UNKNOWN.
9056 2007-02-22 Markus Deuling <deuling@de.ibm.com>
9058 * valops.c (value_ind): Fix unary * handling of TYPE_CODE_INT.
9060 2007-02-20 Joel Brobecker <brobecker@adacore.com>
9062 * gdb_expat.h (XMLCALL): Define if not already defined.
9064 2007-02-20 Andreas Schwab <schwab@suse.de>
9066 * Makefile.in (symfile.o): Update dependencies.
9068 2007-02-20 Daniel Jacobowitz <dan@codesourcery.com>
9070 * MAINTAINERS: Disable -Werror for cris simulator. Build
9071 sparc64-solaris2.10 instead of the broken sparc-elf.
9072 * solib-frv.c: Include "solib.h".
9073 * Makefile.in (solib-frv.o): Update.
9074 * mt-tdep.c (mt_gdbarch_init): Correct typo in floatformats patch.
9075 * xtensa-tdep.c (xtensa_regset_from_core_section): Cast size_t to int.
9076 (xtensa_frame_this_id, xtensa_frame_prev_register)
9077 (xtensa_push_dummy_call): Use %p.
9079 2007-02-16 Daniel Jacobowitz <dan@codesourcery.com>
9081 * avr-tdep.c, hppa-tdep.c, hppabsd-tdep.c, i386-tdep.c,
9082 ia64-tdep.c, m68k-tdep.c, mips-linux-tdep.c, ppcobsd-tdep.c,
9083 sparc-linux-tdep.c: Include "gdbtypes.h" instead of "floatformat.h".
9084 * Makefile.in (avr-tdep.o, hppabsd-tdep.o, hppa-tdep.o, i386-tdep.o)
9085 (ia64-tdep.o, m68k-tdep.o, mips-linux-tdep.o, ppcobsd-tdep.o)
9086 (sparc-linux-tdep.o): Update.
9088 2007-02-15 Maxim Grigoriev <maxim2405@gmail.com>
9090 * xtensa-tdep.h (xtensa_reg_mask_t): New.
9091 (xtensa_mask_t): Change mask field to be a separate array.
9092 * xtensa-tdep.c (extract_call_winsize, xtensa_pseudo_register_read)
9093 (xtensa_pseudo_register_write, xtensa_unwind_pc)
9094 (xtensa_unwind_dummy_id, xtensa_push_dummy_call)
9095 (xtensa_breakpoint_from_pc): Remove implicit type casting.
9096 * xtensa-config.c (mask0, mask1, mask2, mask3, mask4, mask5)
9097 (mask6, mask7, mask8, mask9, mask10, mask11, mask12, mask13)
9098 (mask14, mask15): Rename to
9099 (xtensa_mask0, xtensa_mask1, xtensa_mask2, xtensa_mask3)
9100 (xtensa_mask4, xtensa_mask5, xtensa_mask6, xtensa_mask7)
9101 (xtensa_mask8, xtensa_mask9, xtensa_mask10, xtensa_mask11)
9102 (xtensa_mask12, xtensa_mask13, xtensa_mask14, xtensa_mask15): this.
9103 (xtensa_submask0, xtensa_submask1, xtensa_submask2, xtensa_submask3)
9104 (xtensa_submask4, xtensa_submask5, xtensa_submask6, xtensa_submask7)
9105 (xtensa_submask8, xtensa_submask9, xtensa_submask10)
9106 (xtensa_submask11, xtensa_submask12, xtensa_submask13)
9107 (xtensa_submask14, xtensa_submask15): New.
9108 (rmap): Follow strict aliasing rules doing static initialization.
9110 2007-02-13 Daniel Jacobowitz <dan@codesourcery.com>
9112 * target-descriptions.c (tdesc_named_type): Move code_ptr and data_ptr
9113 handling from here...
9114 (tdesc_register_type): ...to here.
9115 * xml-tdesc.c (tdesc_start_reg): Allow code_ptr and data_ptr.
9116 * features/arm-core.xml: Use code_ptr and data_ptr.
9118 2007-02-13 Denis Pilat <denis.pilat@st.com>
9120 * varobj.h (enum varobj_update_error): New enum.
9121 * varobj.c (struct varobj_root): Add is_valid member.
9122 (varobj_get_type): Check for invalid varobj.
9123 (varobj_get_attributes): Likewise.
9124 (variable_editable):Likewise.
9125 (varobj_update): Likewise. Use varobj_update_error.
9126 (new_root_variable): Set root varobj as valid by default.
9127 (varobj_invalidate): New function.
9128 * symfile.c (clear_symtab_users): Use varobj_invalidate.
9129 * mi/mi-cmd-var.c (varobj_update_one): Change return type to void.
9130 Use varobj_update_error.
9132 2007-02-12 Pierre Muller <muller@ics.u-strasbg.fr>
9135 * dwarfread.c (set_cu_language): Recognize DW_LANG_Pascal83 as
9136 Pascal language marker.
9137 * dwarf2read.c (set_cu_language): Likewise.
9139 2007-02-12 Corinna Vinschen <vinschen@redhat.com>
9141 * win32-nat.c (win32_wait): Reset terminal pgrp to GDB.
9142 (do_initial_win32_stuff): Call terminal_init_inferior_with_pgrp
9143 instead of target_terminal_init since inferior_ptid isn't set yet.
9145 2007-02-10 Pedro Alves <pedro_alves@portugalmail.pt>
9147 * MAINTAINERS (Write After Approval): Add myself.
9149 2007-02-09 Fred Fish <fnf@specifix.com>
9151 Based on work by Apple Computer, Inc.
9152 * event-top.c (async_request_quit): Call quit() whenever either
9153 quit_flag is set or immediate_quit is set.
9155 2007-02-09 Gabriel Dos Reis <gdr@integrable-solutions.net>
9157 * ada-lang.c (remove_out_of_scope_renamings): Change third parameter's
9158 type to a pointer to const struct block.
9159 (ada_lookup_symbol_list): Don't cast away constness when calling
9160 remove_out_of_scope_renamings.
9162 2007-02-09 Gabriel Dos Reis <gdr@integrable-solutions.net>
9164 * linux-nat.c (linux_nat_find_memory_regions): Don't check the
9165 address of 'filename'; it is always non null.
9167 2007-02-09 Joel Brobecker <brobecker@adacore.com>
9169 * exec.c (add_to_section_table): Do not discard empty sections.
9171 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
9173 * features/Makefile, features/arm-with-iwmmxt.xml,
9174 features/gdbserver-regs.xsl, features/number-regs.xsl,
9175 features/sort-regs.xsl, features/xscale-iwmmxt.xml: New files.
9176 * regformats/arm-with-iwmmxt.dat: Generate.
9177 * NEWS: Mention iWMMXt.
9179 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
9181 * Makefile.in (arm-tdep.o, eval.o, target-descriptions.o)
9182 (xml-tdesc.o): Update.
9183 * xml-support.c: Add a comment.
9184 (gdb_xml_enums_boolean): New variable.
9185 (gdb_xml_parse_attr_enum): Use strcasecmp.
9186 * xml-support.h (gdb_xml_enums_boolean): Declare.
9187 * xml-tdesc.c (struct tdesc_parsing_data): Record current_feature,
9188 next_regnum, and current_union.
9189 (tdesc_start_feature, tdesc_start_reg, tdesc_start_union)
9190 (tdesc_end_union, tdesc_start_field, tdesc_start_vector)
9191 (field_attributes, union_children, reg_attributes, union_attributes)
9192 (vector_attributes, feature_attributes, feature_children): New.
9193 (target_children): Make static. Add <feature>.
9194 (tdesc_elements): Make static.
9195 * target-descriptions.c (struct tdesc_reg, tdesc_reg_p, type_p)
9196 (struct tdesc_feature, tdesc_feature_p): New types.
9197 (struct target_desc): Add features member.
9198 (struct tdesc_arch_data, tdesc_data): New.
9199 (target_find_description): Clarify error message. Warn about
9200 ignored register descriptions.
9201 (tdesc_has_registers, tdesc_find_feature, tdesc_feature_name)
9202 (tdesc_named_type, tdesc_data_init, tdesc_data_alloc)
9203 (tdesc_data_cleanup, tdesc_numbered_register)
9204 (tdesc_numbered_register_choices, tdesc_find_register)
9205 (tdesc_register_name, tdesc_register_type)
9206 (tdesc_remote_register_number, tdesc_register_reggroup_p)
9207 (set_tdesc_pseudo_register_name, set_tdesc_pseudo_register_type)
9208 (set_tdesc_pseudo_register_reggroup_p, tdesc_use_registers)
9209 (tdesc_free_reg, tdesc_create_reg, tdesc_free_feature)
9210 (tdesc_create_feature, tdesc_record_type): New.
9211 (free_target_description): Free features.
9212 (_initialize_target_descriptions): Initialize tdesc_data.
9213 * arch-utils.c (default_remote_register_number): New.
9214 * arch-utils.h (default_remote_register_number): New prototype.
9215 * target-descriptions.h (set_tdesc_pseudo_register_name)
9216 (set_tdesc_pseudo_register_type, set_tdesc_pseudo_register_reggroup_p)
9217 (tdesc_use_registers, tdesc_data_alloc, tdesc_data_cleanup)
9218 (tdesc_numbered_register, tdesc_numbered_register_choices)
9219 (tdesc_has_registers, tdesc_find_feature, tdesc_feature_name)
9220 (tdesc_named_type, tdesc_create_feature, tdesc_record_type)
9221 (tdesc_create_reg): Declare.
9222 * gdbarch.sh (remote_register_number): New entry.
9223 * gdbarch.c, gdbarch.h: Regenerate.
9224 * remote.c (init_remote_state): Use gdbarch_remote_register_number.
9225 * features/gdb-target.dtd: Add feature, reg, vector, union, and field.
9227 * arm-tdep.c (arm_register_aliases): New.
9228 (arm_register_name_strings): Rename to...
9229 (arm_register_names): ...this. Make const. Delete the old version.
9230 (current_option, arm_register_byte): Delete.
9231 (set_disassembly_style): Simplify. Do not adjust arm_register_names.
9232 (value_of_arm_user_reg): New.
9233 (arm_gdbarch_init): Verify any described registers. Call
9234 tdesc_use_registers. Don't use arm_register_byte. Create aliases
9235 for standard register names.
9236 (_initialize_arm_tdep): Do not adjust arm_register_names.
9237 * user-regs.c (struct user_reg): Add baton member.
9238 (append_user_reg, user_reg_add_builtin, user_regs_init)
9239 (user_reg_add, value_of_user_reg): Use a baton for user
9241 * std-regs.c: Update.
9242 * user-regs.h (user_reg_read_ftype, user_reg_add_builtin)
9243 (user_reg_add): Add baton argument.
9244 * NEWS: Mention target description register support.
9245 * features/arm-core.xml, features/arm-fpa.xml: New.
9246 * eval.c (evaluate_subexp_standard): Allow ptype $register
9247 when the program is not running.
9249 2007-02-09 Nick Roberts <nickrob@snap.net.nz>
9251 * mi/mi-cmd-var.c (mi_cmd_var_create): Add value field.
9253 2007-02-08 Thiago Jung Bauermann <bauerman@br.ibm.com>
9255 * rs6000-tdep.c (gdb_print_insn_powerpc): Set
9256 info->disassembler_options to "any".
9258 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
9260 * varobj.c (install_new_value): Only call value_get_print_value
9263 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
9265 Reported by timeless@gmail.com:
9266 * gdb/target.c (target_flash_erase): Do not return void value.
9267 (target_flash_done): Likewise.
9268 * gdb/cli/cli-cmds.c (source_command): Likewise.
9270 2007-02-08 Fred Fish <fnf@specifix.com>
9272 Based on work by Apple Computer, Inc.
9273 * event-top.c (handle_sigint): Set quit_flag.
9274 (async_request_quit): Don't set quit_flag. Avoid calling quit()
9275 if quit_flag has already been reset.
9277 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
9279 * ser-mingw.c (pipe_windows_close): Move variable initialization back
9282 2007-02-08 Fred Fish <fnf@specifix.com>
9284 * defs.h (request_quit): Remove declaration.
9285 * utils.c (request_quit): Remove definition.
9287 2007-02-08 Joel Brobecker <brobecker@gnat.com>
9288 Jan Kratochvil <jan.kratochvil@redhat.com>
9289 Daniel Jacobowitz <dan@codesourcery.com>
9291 * rs6000-tdep.c (bl_to_blrl_insn_p): New function.
9292 (skip_prologue): Allow bl->blrl used by PIC code.
9294 2007-02-08 Mark Kettenis <kettenis@gnu.org>
9295 Daniel Jacobowitz <dan@codesourcery.com>
9297 * cp-valprint.c (cp_print_value_fields, cp_print_value): Always
9298 initialize tmp_obstack.
9299 * p-valprint.c (pascal_object_print_value_fields)
9300 (pascal_object_print_value): Likewise.
9302 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
9304 * features/feature_to_c.sh: Use %s to avoid problems with nawk.
9306 2007-02-08 Mark Kettenis <kettenis@gnu.org>
9308 * sparcnbsd-tdep.c: Include "gdbtypes.h" instead of "floatformat.h".
9309 * Makefile.in (sparcnbsd-tdep.o): Update dependencies.
9311 2007-02-07 Daniel Jacobowitz <dan@codesourcery.com>
9313 * xml-tdesc.c (struct tdesc_xml_cache, tdesc_xml_cache_s)
9315 (tdesc_parse_xml): Cache expanded descriptions.
9317 2007-02-07 Daniel Jacobowitz <dan@codesourcery.com>
9319 * Makefile.in (XMLFILES): New.
9320 (COMMON_OBS): Add xml-builtin.o.
9321 (xml-builtin.c, stamp-xml): New rules.
9322 (xml-tdesc.o): Update.
9323 * features/feature_to_c.sh: New file.
9324 * xml-support.c (MAX_XINCLUDE_DEPTH): Define.
9325 (struct gdb_xml_parser): Add dtd_name and is_xinclude.
9326 (gdb_xml_start_element): Initialize scope after possibly reallocating
9327 scopes. Move cleanup later. Handle the XInclude description
9329 (gdb_xml_end_element): Only parse the body if there is a current element.
9330 Call XML_DefaultCurrent if there is no element.
9331 (gdb_xml_fetch_external_entity, gdb_xml_use_dtd): New.
9332 (struct xinclude_parsing_data, xinclude_start_include)
9333 (xinclude_end_include, xml_xinclude_default)
9334 (xml_xinclude_start_doctype, xml_xinclude_end_doctype)
9335 (xml_xinclude_xml_decl, xml_xinclude_cleanup, xinclude_attributes)
9336 (xinclude_elements, xml_process_xincludes, fetch_xml_builtin): New.
9337 * xml-support.h (xml_fetch_another, xml_process_xincludes)
9338 (fetch_xml_builtin, xml_builtin, gdb_xml_use_dtd): New declarations.
9339 * xml-tdesc.c (tdesc_parse_xml): Add fetcher_baton argument. Expand
9340 XInclude directives. Use the compiled in DTD.
9341 (fetch_xml_from_file): Add baton argument. Treat it as a containing
9342 directory name. Do not warn here.
9343 (file_read_description_xml): Update call. Warn here instead. Pass
9345 (fetch_available_features_from_target): New.
9346 (target_read_description_xml): Use it.
9347 * features/gdb-target.dtd: Add copyright notice. Use xinclude.dtd
9349 * features/xinclude.dtd: New file.
9351 2007-02-05 Daniel Jacobowitz <dan@codesourcery.com>
9353 * linux-thread-db.c (check_for_thread_db): Return early if we have
9354 no libthread_db support.
9356 2007-02-05 Daniel Jacobowitz <dan@codesourcery.com>
9358 * mi/mi-parse.h: Include <sys/time.h>.
9360 2007-02-05 Nick Roberts <nickrob@snap.net.nz>
9362 * mi/mi-cmd-stack.c (list_args_or_locals): Use common_val_print
9363 instead of print_variable_value to print values.
9365 2007-02-03 Nick Roberts <nickrob@snap.net.nz>
9367 * mi/mi-main.c: Numerous formatting changes.
9368 (mi_cmd_data_write_register_values): Replace clause inadvertantly
9369 removed in my previous change.
9371 2007-02-03 Eli Zaretskii <eliz@gnu.org>
9373 * mi/mi-main.c (mi_load_progress, timestamp, print_diff_now):
9374 Use 1000000L instead of 1000000.
9376 2007-02-03 Nick Roberts <nickrob@snap.net.nz>
9378 Based on work by Apple Computer, Inc.
9380 * configure.ac: Test for sys/resource.h and getrusage.
9381 * configure, config.in: Regenerate.
9383 * mi/mi-main.c: Include <sys/resource.h> if present.
9384 (rusage): Declare if HAVE_GETRUSAGE.
9385 (current_command_ts, do_timings): New static variables.
9386 (timestamp, print_diff_now, print_diff, timeval_diff):
9387 New static timing functions.
9388 (mi_cmd_enable_timings): New function for new MI command.
9389 (captured_mi_execute_command, mi_execute_async_cli_command):
9390 Call timing functions.
9392 * mi/mi-cmds.c (mi_cmds): Add entry for new MI command
9395 * mi/mi-cmds.h (mi_cmd_enable_timings): New extern.
9397 * mi/mi-parse.h: (mi_timestamp): New structure.
9398 (mi_parse): Add mi_timestamp* member.
9400 2007-02-02 Denis Pilat <denis.pilat@st.com>
9402 * thread.c (make_cleanup_restore_current_thread): New function.
9403 (info_threads_command): Use of make_cleanup_restore_current_thread
9404 to restore the current thread and the selected frame.
9405 (restore_selected_frame): New function.
9406 (struct current_thread_cleanup): Add frame_id field.
9407 (do_restore_current_thread_cleanup): Add restoring of the selected
9409 (make_cleanup_restore_current_thread): Likewise.
9410 (thread_apply_all_command): backup the selected frame while
9411 entering the function and restore it at exit.
9412 (thread_apply_command): Likewise.
9414 2007-02-02 Denis Pilat <denis.pilat@st.com>
9416 * MAINTAINERS (Write After Approval): Add myself to the list.
9418 2007-02-01 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
9420 * gdb/remote-m32r.sdi.c (m32r_fetch_register): Change PWD mask.
9421 (m32r_store_register): Ditto.
9423 2007-01-30 Vladimir Prus <vladimir@codesourcery.com>
9425 * ser-mingw.c (pipe_windows_open)
9426 (pipe_windows_read, pipe_windows_write): Declare
9427 variables at the top of the function.
9429 2007-01-29 Daniel Jacobowitz <dan@codesourcery.com>
9431 * doublest.c (floatformat_from_length): Use the right element from
9432 gdbarch floatformats.
9433 (floatformat_from_type, extract_typed_floating)
9434 (store_typed_floating): Likewise.
9435 * doublest.h: Remove declarations for undefined floatformat arrays.
9436 * gdbarch.sh (float_format, double_format, long_double_format): Change
9438 (pformat): Update for pairs.
9439 * gdbarch.c, gdbarch.h: Regenerated.
9440 * gdbtypes.c (floatformats_ieee_single, floatformats_ieee_double)
9441 (floatformats_ieee_double_littlebyte_bigword)
9442 (floatformats_i387_ext, floatformats_m68881_ext, floatformats_arm_ext)
9443 (floatformats_ia64_spill, floatformats_ia64_quad, floatformats_vax_f)
9444 (floatformats_vax_d): New variables.
9445 (builtin_type_ieee_single, builtin_type_ieee_double)
9446 (builtin_type_arm_ext, builtin_type_ia64_spill)
9447 (builtin_type_ia64_quad): Replace arrays with individual types.
9448 (builtin_type_ieee_single_big, builtin_type_ieee_single_little)
9449 (builtin_type_ieee_double_big, builtin_type_ieee_double_little)
9450 (builtin_type_ieee_double_littlebyte_bigword, builtin_type_i960_ext)
9451 (builtin_type_m88110_ext, builtin_type_m88110_harris_ext)
9452 (builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword)
9453 (builtin_type_ia64_spill_big, builtin_type_ia64_spill_little)
9454 (builtin_type_ia64_quad_big, builtin_type_ia64_quad_little): Delete
9455 unused and endian-specific types.
9456 (recursive_dump_type): Update for floatformat pairs.
9457 (build_flt): Move higher. Handle bit == -1. Take a floatformat pair.
9458 (build_gdbtypes): Use build_flt.
9459 (_initialize_gdbtypes): Update set of initialized types.
9460 * gdbtypes.h: Update declarations to match gdbtypes.c.
9461 (struct main_type): Store a pointer to two floatformats.
9462 * arch-utils.c (default_float_format, default_double_format): Delete.
9463 * arch-utils.h (default_float_format, default_double_format): Delete.
9465 * arm-tdep.c, avr-tdep.c, hppa-tdep.c, hppabsd-tdep.c, i386-tdep.c,
9466 ia64-tdep.c, iq2000-tdep.c, m68k-tdep.c, m88k-tdep.c,
9467 mips-linux-tdep.c, mips-tdep.c, mt-tdep.c, ppcobsd-tdep.c,
9468 sparc-linux-tdep.c, sparc-tdep.c, sparcnbsd-tdep.c, spu-tdep.c,
9469 vax-tdep.c, alpha-tdep.c, ppc-sysv-tdep.c: Update.
9471 2007-01-29 Joel Brobecker <brobecker@adacore.com>
9473 * target.c (maintenance_print_target_stack): New function.
9474 (initialize_targets): Add new "maintenance print target-stack"
9477 2007-01-28 Mark Kettenis <kettenis@gnu.org>
9479 * dwarf2read.c (new_symbol): Handle DW_AT_decl_file being zero.
9481 2007-01-27 Daniel Jacobowitz <dan@codesourcery.com>
9483 * dwarf2loc.h (struct dwarf2_locexpr_baton): Change size to a long.
9484 (struct dwarf2_loclist_baton): Likewise.
9486 2007-01-27 Eli Zaretskii <eliz@gnu.org>
9488 * cli/cli-script.c: Include breakpoint.h.
9489 (build_command_line): Require arguments only for if and while
9491 (get_command_line, execute_user_command, execute_control_command):
9492 Fix wording of warning messages.
9493 (print_command_lines): Print breakpoint commands.
9494 (execute_control_command): Call commands_from_control_command to
9495 handle the `commands' command inside a body of a flow-control
9497 (read_next_line): Recognize the `commands' command and build a
9498 command line structure for it.
9499 (recurse_read_control_structure, read_command_lines): Handle
9500 `commands' similarly to `if' and `while'.
9502 * breakpoint.c (get_number_trailer): Document the special meaning
9503 of NULL as the first argument PP.
9504 (commands_from_control_command): New function.
9506 * breakpoint.h (commands_from_control_command): Add prototype.
9508 * defs.h (commands_control): New enumerated value for enum
9509 command_control_type.
9511 2007-01-26 Joel Brobecker <brobecker@adacore.com>
9513 * ada-lang.c (ada_exception_breakpoint_ops): Fix typo in function name.
9514 (ada_exception_sal): Update accordingly.
9516 2007-01-26 Jan Kratochvil <jan.kratochvil@redhat.com>
9518 * c-valprint.c (c_val_print): Require strings to be of no-signed CHARs.
9519 * NEWS: Describe CHAR array vs. string identifcation rules.
9521 2007-01-25 Paul Brook <paul@codesourcery.com>
9523 * arm-tdep.c (arm_get_next_pc): Fix bitfield off-by-one error.
9525 2007-01-24 Jim Blandy <jimb@codesourcery.com>
9527 * dwarf2loc.c (dwarf2_evaluate_loc_desc): When the location
9528 expression is empty, bother to return the 'optimized out' value we
9529 construct. (Thanks to Carl Burch.)
9531 2007-01-24 Vladimir Prus <vladimir@codesourcery.com>
9533 * varobj.c (c_value_of_root, c_value_of_child)
9534 (cplus_describe_child): Don't call release_value.
9536 2007-01-24 Thiemo Seufer <ths@mips.com>
9538 * mips-linux-tdep.c (mips_linux_n64_rt_sigframe): Fix struct
9541 2007-01-24 Vladimir Prus <vladimir@codesourcery.com>
9543 Refactor getting children name, value and type access
9545 * varobj.c (get_type_deref): Remove.
9546 (adjust_value_for_child_access): New.
9547 (c_number_of_children): Use the above.
9548 (c_describe_child): Likewise.
9549 (enum accessibility): New.
9550 (match_accessibility): New function.
9551 (cplus_describe_child): New function.
9552 (cplus_name_of_child, cplus_value_of_child)
9553 (cplus_type_of_child): Reimplement in terms
9554 of cplus_describe_child.
9555 (cplus_number_of_children): Use
9556 adjust_value_for_child_access.
9558 2007-01-24 Vladimir Prus <vladimir@codesourcery.com>
9560 Fix computation of the 'editable' attribute and
9561 value changeability for for references.
9562 * varobj.c (get_value_type): New function.
9563 (c_variable_editable): Use get_value_type.
9564 (varobj_value_is_changeable): Likewise.
9566 2007-01-24 Joel Brobecker <brobecker@adacore.com>
9568 * source.c (find_and_open_source): Try rewriting the source
9569 path inside filename if dirname is NULL.
9571 2007-01-24 Joel Brobecker <brobecker@adacore.com>
9573 * dwarf2read.c (add_partial_symbol): Create an extra partial
9574 symbol in the VAR_DOMAIN for Ada structures, unions or enums.
9575 (new_symbol): Likewise for symbols.
9577 2007-01-24 Nick Roberts <nickrob@snap.net.nz>
9579 * mi/mi-main.c (mi_cmd_execute): Call free_all_values.
9581 2007-01-23 Vladimir Prus <vladimir@codesourcery.com>
9583 * value.c (value_primitive_field): Copy the full 'location'
9584 contents, instead of assuming that copying ADDRESS will
9585 bring over everything in the union. Remove obsolete comment.
9587 2007-01-23 Masaki Muranaka <monaka@monami-software.com>
9589 * m32c-tdep.c (make_regs, m32c_analyze_prologue)
9590 (m32c_skip_trampoline_code, m32c_m16c_address_to_pointer)
9591 (m32c_m16c_pointer_to_address): Separate code from declarations.
9593 2007-01-23 Nick Hudson <nick.hudson@dsl.pipex.com>
9595 * target.c (update_current_target): Correct typo.
9597 2007-01-22 Masaki Muranaka <monaka@monami-software.com>
9599 * xstormy16-tdep.c (xstormy16_skip_prologue): Separate code from a
9602 2007-01-11 Andrew Cagney <cagney@redhat.com>
9603 Daniel Jacobowitz <dan@codesourcery.com>
9604 Jan Kratochvil <jan.kratochvil@redhat.com>
9606 * dwarf2-frame.c (execute_cfa_program): New support of
9607 `DW_CFA_GNU_negative_offset_extended'.
9609 2007-01-21 Daniel Jacobowitz <dan@codesourcery.com>
9611 * NEWS: Mention flash support for "load" and new remote packets.
9613 2007-01-21 Markus Deuling <deuling@de.ibm.com>
9615 * breakpoint.c (delete_command): Skip redundant loop iterations.
9617 2007-01-21 Daniel Jacobowitz <dan@codesourcery.com>
9619 * gdbarch.sh (register_type): Update comment.
9620 * gdbarch.h: Regenerated.
9621 * arch-utils.c (generic_register_size): Call register_type.
9622 * ia64-tdep.c (ia64_extract_return_value): Likewise.
9623 * m32c-tdep.c (check_for_saved): Likewise.
9624 * mips-tdep.c (mips_print_register, print_gp_register_row)
9625 (mips_print_registers_info): Likewise.
9626 * sh-tdep.c (sh_pseudo_register_read, sh_pseudo_register_write):
9628 * sh64-tdep.c (sh64_pseudo_register_read, sh64_pseudo_register_write)
9629 (sh64_do_register, sh64_print_register)
9630 (sh64_media_print_registers_info): Likewise.
9631 * tui/tui-regs.c (tui_register_format): Likewise.
9633 2007-01-21 Daniel Jacobowitz <dan@codesourcery.com>
9635 * objfiles.h (ALL_PRIMARY_SYMTABS): Define.
9637 * ada-lang.c (symtab_for_sym, ada_lookup_symbol_list)
9638 (ada_lookup_symbol): Use ALL_PRIMARY_SYMTABS.
9639 * cp-support.c (make_symbol_overload_list_qualified): Likewise.
9640 * symtab.c (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
9641 (basic_lookup_transparent_type, find_pc_sect_symtab, search_symbols)
9642 (make_symbol_completion_list): Likewise.
9644 2007-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
9645 Daniel Jacobowitz <dan@codesourcery.com>
9647 * buildsym.c (end_symtab): Use preallocated symtab if available.
9648 Fill in SYMBOL_SYMTAB.
9649 * buildsym.h (struct subfile): Add symtab member.
9650 * dwarf2read.c (struct dwarf2_cu): Add line_header.
9651 (struct file_entry): Add symtab.
9652 (free_cu_line_header): New function.
9653 (read_file_scope): Use it. Save line_header in the cu. Process
9655 (add_file_name): Initialize new symtab member.
9656 (dwarf_decode_lines): Create symtabs for included files.
9657 (new_symbol): Set SYMBOL_SYMTAB.
9658 * symtab.c (lookup_symbol): Use SYMBOL_SYMTAB.
9659 (search_symbols): Likewise.
9660 * symtab.h (struct symbol): Add symtab member.
9661 (SYMBOL_SYMTAB): Define.
9663 2007-01-20 Daniel Jacobowitz <dan@codesourcery.com>
9665 * symfile.c (allocate_symtab): Remove INIT_EXTRA_SYMTAB_INFO.
9667 2007-01-20 Daniel Jacobowitz <dan@codesourcery.com>
9669 * arch-utils.c (show_endian): Correct reversed condition.
9671 2007-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
9673 * MAINTAINERS (Write After Approval): Add myself.
9675 2007-01-16 Daniel Jacobowitz <dan@codesourcery.com>
9676 Vladimir Prus <vladimir@codesourcery.com>
9678 Fix 'selected frame' varobjs.
9679 * varobj.c (struct varobj): Remove the error field.
9680 (varobj_set_value): Don't check var->error.
9681 (install_new_value): Don't set var->error.
9682 (varobj_update): Always pass the new value
9683 of the root via install_new_value.
9684 (create_child): Don't set error field.
9685 (new_variable): Likewise.
9686 (c_value_of_root): Always reevaluate the value
9687 of selected frame varobjs in the selected frame.
9688 Don't call reinit_frame_cache.
9690 2007-01-15 Joel Brobecker <brobecker@adacore.com>
9692 * source.c (_initialize_source): Improve the help text of
9693 the substitute-path commands.
9695 2007-01-14 Mark Kettenis <kettenis@gnu.org>
9697 * frv-tdep.c (frv_gdbarch_init, frv_register_name)
9698 (frv_breakpoint_from_pc, frv_gdbarch_adjust_breakpoint_address)
9699 (frv_skip_prologue): Remove prototypes.
9700 (frv_adjust_breakpoint_address): Renamed from
9701 frv_gdbarch_adjust_breakpoint_address.
9702 (frv_gdbarch_init): Adjust.
9704 2007-01-13 Mark Kettenis <kettenis@gnu.org>
9706 * gdbarch.sh (deprecated_extract_return_value)
9707 (deprecated_store_return_value): Remove.
9708 (extract_return_value, store_return_value): Remove default values.
9709 * gdbarch.c, gdbarch.h: Regenerate.
9710 * arch-utils.c, arch-utils.h (legacy_extract_return_value)
9711 (legacy_store_return_value): Remove.
9712 * regcache.c, regcache.h (deprecated_grub_regcache_for_registers):
9715 * mi/mi-main.c: Remove obsolete comment.
9717 * regcache.c, regcache.h (deprecated_register_bytes)
9718 (deprecated_read_register_bytes)
9719 (deprecated_write_register_bytes): Remove.
9721 * frame.c (get_frame_register_bytes, put_frame_register_bytes):
9722 Don't forget to move destination pointer.
9724 2007-01-01 Mark Kettenis <kettenis@gnu.org>
9726 * config/i386/nm-i386gnu.h (CHILD_PREPARE_TO_STORE): Remove.
9728 2007-01-11 Ulrich Weigand <uweigand@de.ibm.com>
9730 * spu-tdep.c (spu_analyze_prologue): Fix erroneous backtrace
9731 past entry function with recent newlib.
9733 2007-01-11 Vladimir Prus <vladimir@codesourcery.com>
9735 * gdb.texinfo (GDB/MI Variable Objects): Improve the
9736 introduction. Specify -var-update more exactly.
9738 2007-01-11 Daniel Jacobowitz <dan@codesourcery.com>
9740 * frame.c (get_prev_frame_1): Check PC_REGNUM before using it.
9742 2007-01-10 Jim Blandy <jimb@codesourcery.com>
9744 * MAINTAINERS (Global Maintainers): Ulrich Weigand has accepted
9745 the Global Maintainers' invitation to be a global maintainer.
9747 2007-01-10 Daniel Jacobowitz <dan@codesourcery.com>
9749 * infrun.c (singlestep_pc): New variable.
9750 (resume): Set singlestep_pc.
9751 (context_switch): Add a debugging message. Flush the frame cache.
9752 (handle_inferior_event): Add debugging messages. Handle thread
9753 hops when a software single step has completed. Let context_switch
9754 handle flushing the frame cache.
9756 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
9758 * NEWS: Mention target descriptions, "set tdesc filename",
9759 "unset tdesc filename", "show tdesc filename", and
9760 qXfer:features:read.
9761 * arch-utils.c (choose_architecture_for_target): New function.
9762 (gdbarch_info_fill): Call it.
9763 * target-descriptions.c (struct property): Make members non-const.
9764 (struct target_desc): Add arch member.
9765 (target_description_filename): New variable.
9766 (target_find_description): Try via XML first.
9767 (tdesc_architecture): New.
9768 (free_target_description, make_cleanup_free_target_description): New.
9769 (set_tdesc_property): Call xstrdup.
9770 (set_tdesc_architecture, tdesc_set_cmdlist, tdesc_show_cmdlist)
9771 (tdesc_unset_cmdlist, unset_tdesc_cmd, unset_tdesc_filename_cmd)
9772 (set_tdesc_cmd, show_tdesc_cmd, set_tdesc_filename_cmd)
9773 (show_tdesc_filename_cmd, _initialize_target_descriptions): New.
9774 * target-descriptions.h (tdesc_architecture)
9775 (make_cleanup_free_target_description, set_tdesc_architecture): New
9777 * Makefile.in (SFILES): Add xml-tdesc.c.
9778 (COMMON_OBS): Add xml-tdesc.o.
9779 (target-descriptions.o): Update.
9780 (xml-tdesc.o): New rule.
9781 * xml-tdesc.c, xml-tdesc.h: New files.
9782 * remote.c (PACKET_qXfer_features): New enum.
9783 (remote_protocol_features): Add qXfer:features:read.
9784 (remote_xfer_partial): Handle TARGET_OBJECT_AVAILABLE_FEATURES.
9785 (_initialize_remote): Register qXfer:features:read.
9786 * target.h (enum target_object): Add TARGET_OBJECT_AVAILABLE_FEATURES.
9787 * features/gdb-target.dtd: New file.
9789 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
9791 * copyright.sh: Clarify error.
9793 2007-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
9795 * symtab.c (matching_bfd_sections): Fix VMA matching for
9798 2007-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
9800 * minsyms.c (lookup_minimal_symbol_by_pc_section): Handle
9803 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
9805 Updated copyright notices for most files.
9807 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
9809 * copyright.sh (prunes): Add step-line.inp and step-line.c.
9811 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
9813 * configure.ac (DEBUGDIR_RELOCATABLE): Define for debugdir inside
9815 (TARGET_SYSTEM_ROOT_RELOCATABLE): Allow for exec_prefix being
9817 * configure, config.in: Regenerate.
9818 * defs.h (debug_file_directory): Declare.
9819 * main.c (captured_main): Canonicalize gdb_sysroot. Assume
9820 TARGET_SYSTEM_ROOT is defined. Initialize debug_file_directory and
9821 relocate it if DEBUGDIR_RELOCATABLE.
9822 * symfile.c (debug_file_directory): Make non-static.
9823 (find_separate_debug_file): Look for debug info for SYSROOT/PATH
9824 in DEBUGDIR/PATH if DEBUGDIR is inside SYSROOT.
9825 (_initialize_symfile): Don't initialize debug_file_directory here.
9827 2007-01-09 Jim Blandy <jimb@codesourcery.com>
9829 * score-tdep.c (score_push_dummy_call): Don't mix declarations and
9832 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
9834 * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Use
9835 frame_unwind_register to recurse.
9836 * alpha-tdep.c (alpha_sigtramp_frame_prev_register): Likewise.
9837 (alpha_heuristic_frame_prev_register): Likewise.
9838 * h8300-tdep.c (h8300_frame_prev_register): Likewise.
9839 * m32c-tdep.c (m32c_prev_register): Likewise.
9840 * frame.c (frame_register_unwind_location): Remove FIXME.
9842 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
9843 Eli Zaretskii <eliz@gnu.org>
9845 * copyright.sh: New file.
9847 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
9849 * configure.ac: Check for XML_StopParser.
9850 * xml-support.c (gdb_xml_body_text): Check for an error.
9851 (gdb_xml_start_element_wrapper): Conditionalize call to XML_StopParser.
9852 (gdb_xml_end_element_wrapper): Likewise.
9853 * config.in, configure: Regenerated.
9855 2007-01-08 Daniel Jacobowitz <dan@codesourcery.com>
9857 * varobj.c (install_new_value): Always update print_value.
9858 (value_get_print_value): Immediately return NULL for missing
9861 2007-01-08 Jim Blandy <jimb@codesourcery.com>
9863 * configure.ac: Tighten pattern for extracting value of
9864 DEPRECATED_TM_FILE from the target makefile fragment.
9865 * configure: Regenerated.
9867 2007-01-08 Daniel Jacobowitz <dan@codesourcery.com>
9869 * linux-nat.c (struct simple_pid_list): Add status.
9870 (add_to_pid_list): Record the PID's status.
9871 (linux_record_stopped_pid): Likewise. Make static.
9872 (pull_pid_from_list): Return the saved status.
9873 (linux_nat_handle_extended): Deleted.
9874 (linux_handle_extended_wait): Combine with linux_nat_handle_extended.
9875 Make static. Handle non-SIGSTOP for a new thread's first signal.
9876 (flush_callback): Handle unexpected pending signals.
9877 (linux_nat_wait): Update calls to changed functions.
9878 * linux-nat.h (linux_record_stopped_pid, linux_handle_extended_wait):
9879 Remove prototypes for newly static functions.
9881 2007-01-08 Ulrich Weigand <uweigand@de.ibm.com>
9883 * gdbarch.sh (value_from_register): New gdbarch function.
9884 * gdbarch.c, gdbarch.h: Regenerate.
9885 * findvar.c (default_value_from_register): New function.
9886 (value_from_register): Use gdbarch_value_from_register.
9887 * value.h (default_value_from_register): Declare.
9888 * spu-tdep.c (spu_convert_register_p, spu_register_to_value,
9889 spu_value_to_register): Remove.
9890 (spu_value_from_register): New function.
9891 (spu_gdbarch_init): Do not call set_gdbarch_convert_register_p,
9892 set_gdbarch_register_to_value, set_gdbarch_value_to_register.
9893 Call set_gdbarch_value_from_register.
9894 * s390-tdep.c (s390_convert_register_p, s390_register_to_value,
9895 s390_value_to_register): Remove.
9896 (s390_value_from_register): New function.
9897 (s390_gdbarch_init): Do not call set_gdbarch_convert_register_p,
9898 set_gdbarch_register_to_value, set_gdbarch_value_to_register.
9899 Call set_gdbarch_value_from_register.
9901 2007-01-08 Daniel Jacobowitz <dan@codesourcery.com>
9903 * NEWS: Add "set sysroot" and "show sysroot".
9904 * solib.c (solib_absolute_prefix): Delete. Replace
9905 all uses with gdb_sysroot.
9906 (_initialize_solib): Add "set sysroot" and "show sysroot".
9907 Make "solib-absolute-prefix" an alias to it.
9909 2007-01-08 Ulrich Weigand <uweigand@de.ibm.com>
9911 * frame.c (get_frame_register_bytes): New function.
9912 (put_frame_register_bytes): Likewise.
9913 * frame.h (get_frame_register_bytes): Declare.
9914 (put_frame_register_bytes): Likewise.
9915 * findvar.c (value_from_register): Always construct lval_register
9916 values. Use get_frame_register_bytes.
9917 * valops.c (value_assign): Use get_frame_register_bytes and
9918 put_frame_register_bytes.
9920 2007-01-08 Jim Blandy <jimb@codesourcery.com>
9922 * MAINTAINERS: Update Stan Shebs' email address.
9924 2007-01-07 Joel Brobecker <brobecker@adacore.com>
9926 * ada-lang.c (is_known_support_routine): Improve the implementation.
9928 2007-01-06 Joel Brobecker <brobecker@adacore.com>
9930 * ada-lang.c: Add include of source.h.
9931 (is_known_support_routine): Improve the check verifying that the file
9932 associated to this frame exists.
9933 * Makefile.in (ada-lang.o): Add dependency on source.h.
9935 2007-01-07 Jim Blandy <jimb@codesourcery.com>
9937 * ax-general.c (ax_const_l): Select proper opcode for the given
9940 2007-01-05 Vladimir Prus <vladimir@codesourcery.com>
9942 * varobj.c (c_value_of_root): Don't select frame if variable
9943 object is out of scope.
9945 2007-01-05 Nick Roberts <nickrob@snap.net.nz>
9947 * varobj.c (struct varobj): New member print_value.
9948 (install_new_value): Compare last printed value with current one
9949 instead of contents.
9950 (new_variable): Initialize var->print_value to NULL.
9951 (free_variable): Free var->print_value.
9952 (value_get_print_value): New function derived from
9953 c_value_of_variable.
9954 (c_value_of_variable): Use value_get_print_value.
9956 2007-01-05 Joel Brobecker <brobecker@adacore.com>
9958 * i386-tdep.c (i386_analyze_stack_align): Add comment.
9960 2007-01-05 Joel Brobecker <brobecker@adacore.com>
9962 * NEWS: Add entries for new catch commands.
9964 2007-01-05 Joel Brobecker <brobecker@adacore.com>
9966 * dwarf2read.c (partial_die_info): Add field has_byte_size.
9967 (add_partial_symbol): Correct identification of external references.
9968 (process_structure_scope): Likewise.
9969 (read_partial_die): Handle DW_AT_byte_size attribute.
9971 2007-01-05 Daniel Jacobowitz <dan@codesourcery.com>
9973 * xml-support.c (gdb_xml_end_element): Remove wrong backslashes.
9975 2007-01-05 Nick Roberts <nickrob@snap.net.nz>
9977 * varobj.c (get_type_deref): Fix variable objects for references to
9980 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
9982 * symtab.c (find_pc_sect_psymtab): Add comments. Handle psymtabs
9985 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
9987 * memory-map.c (struct_memory_map_parsing_data): Remove most
9988 members. Make property_name an array.
9989 (free_memory_map_parsing_data, memory_map_start_element)
9990 (memory_map_end_element, memory_map_character_data): Delete.
9991 (memory_map_start_memory, memory_map_end_memory)
9992 (memory_map_start_property, memory_map_end_property): New functions.
9993 (property_attributes, memory_children, memory_type_enum)
9994 (memory_attributes, memory_map_children, memory_map_elements): New.
9995 (parse_memory_map): Rewrite.
9996 * xml-support.c (debug_xml): New.
9997 (xml_get_required_attribute, xml_get_integer_attribute)
9998 (xml_get_enum_value, free_xml_parser, make_cleanup_free_xml_parser):
10000 (struct scope_level, struct gdb_xml_parser, gdb_xml_body_text)
10001 (gdb_xml_debug, gdb_xml_error, gdb_xml_values_cleanup)
10002 (gdb_xml_start_element, gdb_xml_start_element_wrapper)
10003 (gdb_xml_end_element, gdb_xml_end_element_wrapper, gdb_xml_cleanup)
10004 (gdb_xml_create_parser_and_cleanup, gdb_xml_parse)
10005 (gdb_xml_parse_ulongest, gdb_xml_parse_attr_ulongest)
10006 (gdb_xml_parse_attr_enum, show_debug_xml, _initialize_xml_support):
10008 * xml-support.h (struct gdb_xml_value, gdb_xml_attribute_handler)
10009 (enum gdb_xml_attribute_flag, struct gdb_xml_attribute)
10010 (enum gdb_xml_element_flag, struct gdb_xml_element)
10011 (gdb_xml_element_start_handler, gdb_xml_element_end_handler)
10012 (struct gdb_xml_enum): New.
10013 (gdb_xml_create_parser_and_cleanup, gdb_xml_parse, gdb_xml_debug)
10014 (gdb_xml_error, gdb_xml_parse_attr_ulongest)
10015 (gdb_xml_parse_attr_enum, gdb_xml_parse_ulongest): New prototypes.
10016 (xml_get_required_attribute, xml_get_integer_attribute)
10017 (xml_get_enum_value, make_cleanup_free_xml_parser): Delete prototypes.
10018 * Makefile.in (xml_support_h, xml-support.o): Update.
10020 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
10022 * Makefile.in (eval.o): Update dependencies.
10023 * eval.c: Include "ui-out.h" and "exceptions.h".
10024 (evaluate_subexp_standard): Use TRY_CATCH around value_of_variable.
10025 Use value_zero if an error occurs when avoiding side effects.
10026 * varobj.c (c_value_of_root): Initialize new_val.
10028 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
10030 * varobj.c (varobj_list_children): Stop if the number of children is
10032 (c_number_of_children):
10034 2007-01-04 Mark Kettenis <kettenis@gnu.org>
10036 * alpha-tdep.c (alpha_register_name): Use ARRAY_SIZE.
10037 (alpha_read_insn, alpha_skip_prologue, alpha_heuristic_proc_start)
10038 (alpha_heuristic_frame_unwind_cache, alpha_next_pc)
10039 (alpha_gdbarch_init): Use ALPHA_INSN_SIZE, ALPHA_REGISTER_SIZE and
10040 sizeof, instead of hardcoded constants.
10042 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
10044 * CONTRIBUTE: Use sourceware.org.
10046 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
10048 * buildsym.c (start_subfile): Handle producer.
10049 (record_producer): New function.
10050 * buildsym.h (struct subfile): Include producer.
10051 (record_producer): New prototype.
10052 * dwarf2-frame.c (struct dwarf2_cie): Add version and augmentation.
10053 (struct dwarf2_frame_state): Add armcc_cfa_offsets_sf and
10054 armcc_cfa_offsets_reversed.
10055 (execute_cfa_program): Handle armcc_cfa_offsets_sf.
10056 (dwarf2_frame_find_quirks): New function.
10057 (dwarf2_frame_cache): Call it. Handle armcc_cfa_offsets_reversed.
10058 (decode_frame_entry_1): Record the CIE version. Record the
10059 augmentation. Skip armcc augmentations.
10060 * dwarf2read.c (read_file_scope): Save the producer.
10061 * symtab.h (struct symtab): Rename unused version member to
10064 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
10066 * configure.ac (build_warnings): Use -Wall and
10067 -Wdeclaration-after-statement.
10068 * configure: Regenerated.
10070 2007-01-04 Vladimir Prus <vladimir@codesourcery.com>
10072 Simplify access to variours properties of child
10073 variable objects in C.
10074 * varobj.c (value_struct_element_index): New function.
10075 (c_describe_child): New function.
10076 (c_name_of_child, c_value_of_child)
10077 (c_type_of_child): Rewrite to use c_describe_child.
10079 2007-01-04 Vladimir Prus <vladimir@codesourcery.com>
10082 * varobj.c: Include "vec.h".
10083 (varobj_p): New typedef, declare vector of those.
10084 (struct varobj): Use vector for the 'children' member.
10085 (child_exists): Remove.
10086 (save_child_in_parent): Remove.
10087 (remove_child_from_parent): Remove.
10088 (struct varobj_child): Remove.
10089 (struct vstack): Remove.
10090 (vpush, vpop): Remove.
10091 (varobj_list_children): Adjust to work work vector.
10092 (varobj_update): Likewise. Use vectors for
10093 working stack and result.
10094 (delete_variable_1): Likewise.
10095 * Makefile.in (varobj.o): Update dependencies.
10097 2007-01-04 Vladimir Prus <vladimir@codesourcery.com>
10099 Port from Apple's version.
10101 * varobj.c (type_changeable): Rename to...
10102 (varobj_value_is_changeable_p): ...this. Adjust all callers.
10103 (is_root_p): New function. Use it everywhere.
10105 2007-01-04 Jim Blandy <jimb@codesourcery.com>
10107 * glibc-tdep.c (glibc_skip_solib_resolver): Look for '_dl_fixup',
10108 then plain 'fixup'.
10110 2007-01-04 Joel Brobecker <brobecker@adacore.com>
10112 * hpread.c (hpread_start_psymtab): Remove unnecessary extern.
10114 2007-01-04 Joel Brobecker <brobecker@adacore.com>
10116 * hpread.c (hpread_type_lookup): Fix compilation failure.
10118 2007-01-04 Qinwei <qinwei@sunnorth.com.cn>
10120 * NEWS: New port to S+core.
10121 * MAINTAINERS (Write After Approval, Responsible Maintainers):
10124 * Makefile.in: Add dependencies for S+core files.
10125 * configure.tgt (score*, score-*-*): Add S+core target.
10126 * config/score/embed.mt: New file.
10127 * score-tdep.c: New file.
10128 * score-tdep.h: New file.
10130 2007-01-04 Joel Brobecker <brobecker@adacore.com>
10132 * ada-lang.c (ada_evaluate_subexp) [OP_TYPE]: Return a value with
10133 the appropriate type rather than a bogus void type.
10135 2007-01-04 Joel Brobecker <brobecker@adacore.com>
10137 * ada-lang.h (ada_find_printable_frame): Remove.
10138 (ada_exception_catchpoint_p, ada_decode_exception_location)
10139 (ada_decode_assert_location): Add declaration.
10140 * ada-lang.c: Add include of annotate.h and valprint.h.
10141 (exception_catchpoint_kind): New enum.
10142 (function_name_from_pc, is_known_support_routine)
10143 (ada_find_printable_frame, ada_unhandled_exception_name_addr)
10144 (ada_exception_name_addr_1, ada_exception_name_addr)
10145 (print_it_exception, print_one_exception, print_mention_exception)
10146 (print_it_catch_exception, print_one_catch_exception)
10147 (print_mention_catch_exception, catch_exception_breakpoint_ops)
10148 (print_it_catch_exception_unhandled)
10149 (print_one_catch_exception_unhandled)
10150 (print_mention_catch_exception_unhandled, print_it_catch_assert)
10151 (print_one_catch_assert, print_mention_catch_assert)
10152 (ada_exception_catchpoint_p, error_breakpoint_runtime_sym_not_found)
10153 (ada_get_next_arg, catch_ada_exception_command_split)
10154 (ada_exception_sym_name, ada_exception_sym_name)
10155 (ada_exception_breakption_ops, ada_exception_catchpoint_cond_string)
10156 (ada_parse_catchpoint_condition, ada_exception_sal)
10157 (ada_decode_exception_location)
10158 (ada_decode_assert_location): New function.
10159 (catch_exception_unhandled_breakpoint_ops): New global variable.
10160 (catch_assert_breakpoint_ops): New global variable.
10161 * breakpoint.c: Add include of ada-lang.h.
10162 (print_one_breakpoint): Do not print the condition for Ada
10163 exception catchpoints.
10164 (create_ada_exception_breakpoint): New function.
10165 (catch_ada_exception_command, catch_assert_command): New function.
10166 (catch_command_1): Add support for the new "catch exception" and
10167 "catch assert" commands.
10168 (_initialize_breakpoint): Add help description for the new catch
10170 * Makefile.in (ada-lang.o): Add dependency on annotate.h and
10172 (breakpoint.o): Add dependency on ada-lang.h.
10174 2007-01-03 Pedro Alves <pedro_alves@portugalmail.pt>
10176 * coffread.c (cs_to_section): If bfd_section is found, always
10177 return its section index.
10178 (coff_symtab_read): Determine the minimal_symbol_type using the
10181 2007-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10182 Daniel Jacobowitz <dan@codesourcery.com>
10184 * Makefile.in (top.o): Update.
10185 * top.c (gdb_readline_wrapper_done, gdb_readline_wrapper_result)
10186 (saved_after_char_processing_hook, gdb_readline_wrapper_line)
10187 (struct gdb_readline_wrapper_cleanup, gdb_readline_wrapper_cleanup):
10189 (gdb_readline_wrapper): Rewrite to use asynchronous readline.
10191 2007-01-03 Mark Kettenis <kettenis@gnu.org>
10193 * arm-linux-tdep.c (arm_linux_extract_return_value): Remove.
10194 (arm_linux_init_abi): Don't set deprecated_extract_return_value.
10196 2007-01-03 Daniel Jacobowitz <dan@codesourcery.com>
10198 * ada-lang.c (find_struct_field): Initialize *byte_offset_p.
10199 * breakpoint.c (do_enable_breakpoint): Ignore both mem_cnt and i.
10200 * c-typeprint.c (c_type_print_varspec_suffix): Don't test length
10201 greater than or equal to zero.
10202 * m2-typeprint.c (m2_array): Likewise.
10203 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
10204 * gdbtypes.c (copy_type_recursive): Correct == typo.
10205 * i386-tdep.c (i386_skip_prologue): Remove stray semicolon.
10206 * linux-nat.c (linux_nat_info_proc_cmd): Don't compare a pointer
10208 * macroscope.c (sal_macro_scope): Don't name a local variable "main".
10209 (default_macro_scope): Remove unused variable.
10210 * prologue-value.h (pv_area_find_reg): Don't name an argument
10212 * remote-fileio.c (remote_fio_func_map): Add missing braces.
10213 * remote.c (sigint_remote_twice_token, sigint_remote_token): Change
10215 (cleanup_sigint_signal_handler): Remove casts.
10216 * valprint.c (val_print): Use a volatile local for the modified
10218 * varobj.c (languages): Remove extra array dimension.
10219 (varobj_create): Correct access to languages array.
10220 * mi/mi-cmd-break.c (mi_cmd_break_insert, mi_cmd_break_watch): Add
10222 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise.
10223 * mi/mi-cmd-env.c (mi_cmd_env_path, mi_cmd_env_dir): Likewise.
10224 * mi/mi-getopt.c (mi_valid_noargs): Likewise.
10225 * mi/mi-main.c (mi_cmd_data_read_memory): Likewise.
10226 (mi_cmd_data_write_memory): Likewise.
10227 * signals/signals.c (target_signal_to_string): Cast to int before
10229 * tui/tui-layout.c (init_and_make_win): Take and return a void *.
10230 Update all callers.
10232 2007-01-03 Daniel Jacobowitz <dan@codesourcery.com>
10234 * NEWS: Mention pointer to member improvements.
10235 * Makefile.in (gnu-v3-abi.o): Delete special rule.
10236 (eval.o, gnu-v3-abi.o, ia64-tdep.o): Update.
10237 * ada-valprint.c (ada_print_scalar): Update for new type codes.
10238 * c-typeprint.c (c_print_type): Update for new type codes.
10239 (c_type_print_varspec_prefix, c_type_print_varspec_suffix)
10240 (c_type_print_base): Likewise.
10241 (c_type_print_args): Rewrite.
10242 * c-valprint.c (c_val_print): Update for new type codes. Remove
10243 support for references to members. Treat methods like functions.
10244 * cp-abi.c (cplus_print_method_ptr, cplus_method_ptr_size)
10245 (cplus_make_method_ptr, cplus_method_ptr_to_value): New.
10246 * cp-abi.h (cplus_print_method_ptr, cplus_method_ptr_size)
10247 (cplus_make_method_ptr, cplus_method_ptr_to_value): New prototypes.
10248 (struct cp_abi_ops): Add corresponding members.
10249 * cp-valprint.c (cp_print_class_method): Delete.
10250 (cp_find_class_member): New function.
10251 (cp_print_class_member): Use it. Simplify support for bogus
10253 * dwarf2read.c (quirk_gcc_member_function_pointer): Use
10254 lookup_methodptr_type.
10255 (read_tag_ptr_to_member_type): Likewise, and lookup_memberptr_type.
10256 * eval.c (evaluate_subexp_standard): Implement EVAL_SKIP for
10257 OP_SCOPE. Update call to value_aggregate_elt. Rewrite member
10259 (evaluate_subexp_for_address): Handle OP_SCOPE explicitly. Handle
10260 references returned by user defined operators.
10261 * f-typeprint.c (f_print_type, f_type_print_varspec_prefix)
10262 (f_type_print_varspec_suffix): Remove support for member pointers.
10263 * gdbtypes.c (lookup_memberptr_type): Renamed from lookup_member_type
10265 (smash_to_memberptr_type): Likewise, from smash_to_member_type.
10266 (lookup_methodptr_type): New.
10267 (rank_one_type): Adjust for TYPE_CODE_MEMBERPTR.
10268 (recursive_dump_type): Update for new types.
10269 * gdbtypes.h (enum type_code): Replace TYPE_CODE_MEMBER with
10270 TYPE_CODE_MEMBERPTR and TYPE_CODE_METHODPTR.
10271 (lookup_memberptr_type, lookup_methodptr_type)
10272 (smash_to_memberptr_type): New prototypes.
10273 (smash_to_method_type): Formatting fix.
10274 (lookup_member_type, smash_to_member_type): Delete prototypes.
10275 * gnu-v3-abi.c (gnuv3_get_vtable, gnuv3_get_virtual_fn): New.
10276 Do not rely on debug information for the vptr or the method's
10277 enclosing type. Handle function descriptors for IA64.
10278 (gnuv3_virtual_fn_field): Rewrite using the new functions.
10279 (gnuv3_find_method_in, gnuv3_print_method_ptr)
10280 (gnuv3_method_ptr_size, gnuv3_make_method_ptr)
10281 (gnuv3_method_ptr_to_value): New.
10282 (init_gnuv3_ops): Set new members of gnu_v3_abi_ops.
10283 * hpread.c (hpread_type_lookup): Update for new types.
10284 * infcall.c (value_arg_coerce): Likewise.
10285 * m2-typeprint.c (m2_print_type): Remove explicit support
10286 for member pointers.
10287 * m2-valprint.c (m2_val_print): Likewise.
10288 * p-typeprint.c (pascal_type_print_varspec_prefix)
10289 (pascal_type_print_varspec_suffix, pascal_type_print_base): Likewise.
10290 * p-valprint.c (pascal_val_print): Likewise.
10291 (pascal_object_print_class_method, pascal_object_print_class_member):
10293 * p-lang.h (pascal_object_print_class_method)
10294 (pascal_object_print_class_member): Delete prototypes.
10295 * stabsread.c (read_type): Update for new types.
10296 * typeprint.c (print_type_scalar): Likewise.
10297 * valops.c (value_struct_elt_for_reference, value_namespace_elt)
10298 (value_maybe_namespace_elt, value_aggregate_elt): Add want_address
10299 argument. Construct a pointer to member if the address of a
10300 function or data member is requested.
10301 (value_cast_pointers): Don't modify the input value.
10302 (value_cast): Adjust pointer to member handling for new types.
10303 Allow null pointer to member constants. Don't modify the input
10305 (value_ind): Remove pointer to member check. Handle function
10306 descriptors for function pointers.
10307 (value_struct_elt, value_find_oload_method_list, check_field):
10308 Remove pointer to member checks.
10309 * value.c (unpack_long): Allow pointers to data members.
10310 (value_from_longest): Allow member pointers.
10311 * value.h (value_aggregate_elt): Add want_address.
10312 * varobj.c (c_variable_editable): Remove check for members.
10313 * gdbarch.sh: Add vtable_function_descriptors and vbit_in_delta.
10314 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Handle descriptors
10316 (ia64_gdbarch_init): Call set_gdbarch_vtable_function_descriptors.
10317 * c-lang.h (cp_print_class_method): Delete prototype.
10318 * arm-tdep.c (arm_gdbarch_init): Call set_gdbarch_vbit_in_delta.
10319 * mips-tdep.c (mips_gdbarch_init): Likewise.
10320 * gdbarch.c, gdbarch.h: Regenerated.
10322 2007-01-01 Mark Kettenis <kettenis@gnu.org>
10324 * rs6000-tdep.c (rs6000_use_struct_convention)
10325 (rs6000_extract_return_value, rs6000_store_return_value)
10326 (rs6000_extract_struct_value_address): Remove.
10327 (rs6000_return_value): New function.
10328 (rs6000_gdbarch_init): Don't set deprecated_extract_return_value,
10329 store_return_value, deprecated_extract_struct_value_address and
10330 deprecated_use_struct_convention. Use rs6000_return_value
10333 2007-01-02 Nick Roberts <nickrob@snap.net.nz>
10335 * mi/mi-cmds.c (mi_cmds): Remove entries for -display-delete,
10336 -display-disable, -display-enable, -display-insert and
10339 2007-01-01 Joel Brobecker <brobecker@adacore.com>
10341 * breakpoint.c (remove_breakpoint): Remove dead code.
10343 2007-01-01 Nick Roberts <nickrob@snap.net.nz>
10345 * varobj.c: Include block.h.
10346 (c_value_of_root): Check scope within nested statements.
10348 2007-01-01 Mark Kettenis <kettenis@gnu.org>
10350 * mi/mi-main.c (mi_cmd_data_write_register_values): Use
10351 regcache_cooked_write_signed instead of
10352 deprecated_write_register_bytes.
10354 2007-01-01 Joel Brobecker <brobecker@adacore.com>
10356 * config/djgpp/fnchange.lst: Add entry for ChangeLog-2006.
10358 2007-01-01 Joel Brobecker <brobecker@adacore.com>
10360 Followed the Start of New Year Procedure:
10361 * ChangeLog-2006: New file, containing all the entries for 2006.
10362 * ChangeLog: Removed all 2006 entries, and changed the reference
10363 to the previous ChangeLog to point to ChangeLog 2006.
10364 * top.c (print_gdb_version): Update copyright year.
10366 2007-01-01 Mark Kettenis <kettenis@gnu.org>
10368 * Makefile.in (remote-sds.o): Remove.
10369 * remote-sds.c: Delete.
10371 For older changes see ChangeLog-2006.
10377 version-control: never