1 2007-12-05 Jim Blandy <jimb@codesourcery.com>
3 * NEWS: Mention support for non-contiguous lexical blocks and
6 2007-12-06 Markus Deuling <deuling@de.ibm.com>
8 * gdbarch.sh (stab_reg_to_regnum, dwarf_reg_to_regnum)
9 ( dwarf2_reg_to_regnum, sdb_reg_to_regnum, ecoff_reg_to_regnum): Add
11 * gdbarch.{c,h}: Regenerate.
13 * xtensa-tdep.c (xtensa_reg_to_regnum): Add gdbarch as parameter.
14 Replace current_gdbarch by gdbarch.
15 * s390-tdep.c (s390_dwarf_reg_to_regnum): Likewise.
16 * rs6000-tdep.c (rs6000_stab_reg_to_regnum)
17 (rs6000_dwarf2_reg_to_regnum): Likewise.
18 * mips-tdep.c (mips_stab_reg_to_regnum)
19 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Likewise.
20 * mep-tdep.c (mep_debug_reg_to_regnum): Likewise.
21 * m32c-tdep.c (m32c_debug_info_reg_to_regnum): Likewise.
22 * i386-tdep.c (i386_dbx_reg_to_regnum)
23 (i386_svr4_reg_to_regnum): Likewise
24 * h8300-tdep.c (h8300s_dbg_reg_to_regnum)
25 (h8300_dbg_reg_to_regnum): Likewise.
26 * amd64-tdep.c (amd64_dwarf_reg_to_regnum): Likewise.
27 * arch-utils.c (no_op_reg_to_regnum): Likewise.
28 * arch-utils.h (no_op_reg_to_regnum): Likewise.
29 * arm-tdep.c (arm_dwarf_reg_to_regnum): Likewise.
30 * cris-tdep.c (cris_dwarf2_reg_to_regnum): Likewise.
31 * hppa-tdep.c (hppa64_dwarf_reg_to_regnum): Likewise.
32 * ia64-tdep.c (ia64_dwarf_reg_to_regnum): Likewise.
33 * m68k-tdep.c (m68k_dwarf_reg_to_regnum): Likewise.
35 2007-12-06 Vladimir Prus <vladimir@codesourcery.com>
37 Localize infrun use of remove_breakpoints.
38 * infrun.c (handle_inferior_event): Remove
39 calls to remove_breakpoints, except where needed to
40 communicate change of breakpoint locations to inferior.
41 (keep_going): If steppping over breakpoint, remove
44 2007-12-06 Vladimir Prus <vladimir@codesourcery.com>
46 Clarify infrun variable naming.
47 * infrun.c (trap_expected): Rename
48 to stepping_over_breakpoint. Document.
49 (stepping_past_breakpoint): Remove.
50 (stepping_past_breakpoint_ptdi): Renamed
51 to deferred_step_ptid.
52 (struct execution_control_state): Rename
53 the another_trap field to stepping_over_breakpoint.
54 (struct inferior_status): Rename the trap_expected
55 field to stepping_over_breakpoint.
56 (clear_proceed_status, proceed)
57 (init_execution_control_state, context_switch)
58 (handle_inferior_event, currently_stepping)
59 (keep_going, save_inferior_status)
60 (restore_inferior_status, prepare_to_proceed): Adjust.
61 * gdbthread.h (struct thread_info): Rename the
62 trap_expected field to stepping_over_breakpoint.
63 * thread.c (load_infrun_state, save_infrun_state):
66 2007-12-06 Pierre Muller <muller@ics.u-strasbg.fr>
68 * win32-nat.c: Allow compilation if CORE_ADDR is 8 byte long.
69 Add "gdb_stdint.h" dependency required for uintptr_t type use.
70 (handle_output_debug_string): Use uintptr_t typecast.
71 (handle_exception): Ditto.
72 (win32_xfer_memory): Ditto.
73 * Makefile.in (win32-nat.o): Add dependency to gdb_stdint header.
75 2007-12-04 Jim Blandy <jimb@codesourcery.com>
77 Support lexical blocks and function bodies that occupy
78 non-contiguous address ranges.
79 * addrmap.c, addrmap.h: New files.
80 * block.h (struct addrmap): New forward declaration.
81 (struct blockvector): New member, 'map'.
82 (BLOCKVECTOR_MAP): New accessor macro.
83 * block.c: #include "addrmap.h"
84 (blockvector_for_pc_sect): If the blockvector we've found has
85 an address map, use it instead of searching the blocks.
86 * buildsym.c: #include "addrmap.h"
87 (pending_addrmap_obstack, pending_addrmap_interesting): New static
89 (really_free_pendings): If we have a pending addrmap, free it too.
90 (record_block_range): New function.
91 (make_blockvector): If we have an interesting pending addrmap,
92 record it in the new blockvector.
93 (start_symtab, buildsym_init): Assert that there is no pending
94 addrmap now; we should have cleaned up any addrmaps we'd built
96 (end_symtab): If there is a pending addrmap left over that didn't
97 get included in the blockvector, free it.
98 * buildsym.h (struct addrmap): New forward declaration.
99 (record_block_range): New prototype.
100 * objfiles.c: #include "addrmap.h".
101 (objfile_relocate): Relocate the blockvector's address map, if
103 * dwarf2read.c (dwarf2_record_block_ranges): New function.
104 (read_func_scope, read_lexical_block_scope): Call it.
105 * Makefile.in (SFILES): Add addrmap.c.
106 (addrmap_h): New header dependency variable.
107 (COMMON_OBS): Add addrmap.o.
108 (addrmap.o): New rule.l
109 (block.o, objfiles.o, buildsym.o): Depend on $(addrmap_h).
111 * block.c (blockvector_for_pc, blockvector_for_pc_sect): Return a
112 pointer to the block, not its index in the blockvector.
113 (block_for_pc_sect): Use the returned block, instead of looking it
115 * block.h (blockvector_for_pc, blockvector_for_pc_sect): Update
117 * breakpoint.c (resolve_sal_pc): Use returned block, instead of
118 looking it up ourselves.
119 * stack.c (print_frame_label_vars): Disable function, which
120 depends on the block's index.
122 * buildsym.c (finish_block): Return the block we've built.
123 * buildsym.h (finish_block): Update prototype.
125 * defs.h (CORE_ADDR_MAX): New constant.
127 2007-12-04 Ulrich Weigand <uweigand@de.ibm.com>
129 * coffread.c (decode_type): Use builtin_type_int32 instead
130 of FT_INTEGER fundamental type for array range index type.
131 (decode_base_type): Use builtin types of current_gdbarch
132 instead of fundamental types.
134 * dwarf2read.c (struct dwarf2_cu): Remove ftypes member.
135 (read_file_scope): Do not initialize ftypes member.
136 (dwarf_base_type, dwarf2_fundamental_types): Remove functions.
137 (read_array_type): Use builtin_type_int32 instead of FT_INTEGER
138 fundamental type for array range index type.
139 (read_tag_string_type): Likewise for string range index type.
140 Also, do not overwrite FT_CHAR type with new string type.
141 (read_base_type): If DW_AT_name is missing, create unnamed type
142 with given properties instead of looking for a fundamental type.
143 Create new types as TYPE_TARGET_TYPE for DW_ATE_address and
144 DW_ATE_complex_float types.
145 (read_subrange_type): Create new type to represent missing
146 DW_AT_type instead of looking for a fundamental type.
147 (die_type): Use builtin type to represent "void" instead of
148 looking for a fundamental type.
150 * stabsread.c (define_symbol): Use builtin types to represent
151 'r' and 'i' floating-point and integer constants.
153 * gdbtypes.c (lookup_fundamental_type): Remove.
154 * gdbtypes.h (lookup_fundamental_type): Remove prototype.
155 (FT_VOID, FT_BOOLEAN, FT_CHAR, FT_SIGNED_CHAR, FT_UNSIGNED_CHAR,
156 FT_SHORT, FT_SIGNED_SHORT, FT_UNSIGNED_SHORT, FT_INTEGER,
157 FT_SIGNED_INTEGER, FT_UNSIGNED_INTEGER, FT_LONG, FT_SIGNED_LONG,
158 FT_UNSIGNED_LONG, FT_LONG_LONG, FT_SIGNED_LONG_LONG,
159 FT_UNSIGNED_LONG_LONG, FT_FLOAT, FT_DBL_PREC_FLOAT, FT_EXT_PREC_FLOAT,
160 FT_COMPLEX, FT_DBL_PREC_COMPLEX, FT_EXT_PREC_COMPLEX, FT_STRING,
161 FT_FIXED_DECIMAL, FT_FLOAT_DECIMAL, FT_BYTE, FT_UNSIGNED_BYTE,
162 FT_TEMPLATE_ARG, FT_DECFLOAT, FT_DBL_PREC_DECFLOAT,
163 FT_EXT_PREC_DECFLOAT, FT_NUM_MEMBERS): Remove macros.
164 * objfiles.c (struct objfile): Remove fundamental_types member.
165 * symfile.c (reread_symbols): Do not clear fundamental_types.
167 * language.h (struct language_defn): Remove la_fund_type member.
168 (create_fundamental_type): Remove.
169 * language.c (unk_lang_create_fundamental_type): Remove.
170 (unknown_language_defn, auto_language_defn,
171 local_language_defn): Adapt initializer.
172 * ada-lang.c (ada_create_fundamental_type): Remove.
173 (ada_language_defn): Adapt initializer.
174 * c-lang.h (c_create_fundamental_type): Remove prototype.
175 * c-lang.c (c_create_fundamental_type): Remove.
176 (c_language_defn, cplus_language_defn, asm_language_defn,
177 minimal_language_defn): Adapt initializer.
178 * f-lang.c (f_create_fundamental_type): Remove.
179 (f_language_defn): Adapt initializer.
180 * jv-lang.c (java_create_fundamental_type): Remove.
181 (java_language_defn): Adapt initializer.
182 * m2-lang.c (m2_create_fundamental_type): Remove.
183 (m2_language_defn): Adapt initializer.
184 * objc-lang.c (objc_create_fundamental_type): Remove.
185 (objc_language_defn): Adapt initializer.
186 * p-lang.h (pascal_create_fundamental_type): Remove prototype.
187 * p-lang.c (pascal_create_fundamental_type): Remove.
188 (pascal_language_defn): Adapt initializer.
189 * scm-lang.c (scm_language_defn): Adapt initializer.
191 2007-12-04 Maciej W. Rozycki <macro@mips.com>
193 * features/mips-cpu.xml: Specify "regnum" for "r0" explicitly.
194 * features/mips64-cpu.xml: Likewise.
195 * features/mips-fpu.xml: Specify "regnum" for "f0" explicitly.
196 * features/mips64-fpu.xml: Likewise.
197 * features/mips-linux.c: Regenerate.
198 * features/mips64-linux.c: Regenerate.
200 2007-12-04 Maciej W. Rozycki <macro@mips.com>
202 * target.h (target_find_new_threads): Fix definition.
204 2007-12-02 Pierre Muller <muller@ics.u-strasbg.fr>
206 * win32-nat.c (win32_resume): Set the trace bit
207 in the thread identified by inferior_ptid.
210 2007-12-02 Pierre Muller <muller@ics.u-strasbg.fr>
212 * win32-nat.c (open_process_used): New static variable.
213 (win32_init_thread_list): Remove call to CloseHandle for thread.
214 (win32_delete_thread): Ditto.
215 (fake_create_process): Set open_process_used if OpenProcess call is
217 (get_win32_debug_event): Do not close process handle.
218 (do_initial_win32_stuff): Set open_process_used to zero.
219 (win32_mourn_inferior): Call CloseHandle for current_process_handle if
220 open_process_used is set.
221 (win32_kill_inferior): Do not close process and main_thread handles.
223 2007-11-30 Daniel Jacobowitz <dan@codesourcery.com>
225 * remote.c (remote_cmdlist): New variable.
226 (PACKET_vFile_open, PACKET_vFile_pread, PACKET_vFile_pwrite)
227 (PACKET_vFile_close, PACKET_vFile_unlink): New constants.
228 (remote_buffer_add_string, remote_buffer_add_bytes)
229 (remote_buffer_add_int, remote_hostio_parse_result)
230 (remote_hostio_send_command, remote_hostio_open, remote_hostio_pwrite)
231 (remote_hostio_pread, remote_hostio_close, remote_hostio_unlink)
232 (remote_fileio_errno_to_host, remote_hostio_error, fclose_cleanup)
233 (remote_hostio_close_cleanup, remote_file_put, remote_file_get)
234 (remote_file_delete, remote_put_command, remote_get_command)
235 (remote_delete_command, remote_command): New functions.
236 (_initialize_remote): Register new packets and commands.
237 * Makefile.in (gdb_fileio_h): New variable.
239 (SUBDIR_MI_OBS): Add mi-cmd-target.o.
240 (SUBDIR_MI_SRCS): Add mi/mi-cmd-target.c.
241 (mi-cmd-target.o): New rule.
242 * mi/mi-cmd-target.c: New file.
243 * mi/mi-cmds.c (mi_cmds): Add target-file-delete, target-file-get,
245 * mi/mi-cmds.h (mi_cmd_target_file_get, mi_cmd_target_file_put)
246 (mi_cmd_target_file_delete): Declare.
247 * remote.h (remote_file_put, remote_file_get, remote_file_delete):
249 * NEWS: Describe new file transfer support.
251 2007-11-30 Vladimir Prus <vladimir@codesourcery.com>
253 * infrun.c (handle_inferior_event): Don't
254 ignore beakpoints if trap_expected is set.
256 2007-11-30 Vladimir Prus <vladimir@codesourcery.com>
258 Make insert_breakpoints return void.
259 * breakpoint.h (insert_breakpoints): Change
261 * breakpoint.c (insert_breakpoints): Change
262 return type to void. Rename local return_val
264 * infrun.c (keep_going): Instead of checking
265 return value from insert_breakpoints, catch exception.
267 2007-11-29 Vladimir Prus <vladimir@codesourcery.com>
269 Stop infrun from tracking breakpoint insertion status.
271 The checks of breakpoints_inserted before calling
272 remove_breakpoints are removed, as remove_breakpoint
273 won't touch uninserted breakpoints. In a number of places,
274 we're interested if a breakpoint is inserted at particular
275 PC, and we now use breakpoint_inserted_here_p. In a few
276 places, insert_breakpoints can be called unconditionally,
277 since it won't try to insert already inserted breakpoint.
279 * breakpoint.h (regular_breakpoint_inserted_here_p): New
281 * breakpoint.c (regular_breakpoint_inserted_here_p): New.
282 (breakpoint_inserted_here_p): Use
283 regular_breakpoint_inserted_here_p.
284 * infrun.c (breakpoints_inserted): Remove.
285 (resume): Don't check for breakpoints_inserted before
286 remove_hw_watchpoints. Use breakpoint_inserted_here_p.
287 (proceed, init_wait_for_inferior): Don't set breakpoints_inserted.
288 (handle_inferior_event): Don't use breakpoints_inserted.
289 Use breakpoints_meant_to_be_inserted and
290 breakpoints_inserted_here_p.
291 (insert_step_resume_breakpoint_at_sal, keep_going): Use
292 breakpoints_meant_to_be_inserted. Don't set breakpoints_inserted.
293 (normal_stop): Don't check for breakpoints_inserted. Don't
294 set breakpoints_inserted.
295 (keep_going): Don't check for breakpoints_inserted.
296 (insert_step_resume_breakpoint_at_sal): Don't insert
299 2007-11-28 Jim Blandy <jimb@codesourcery.com>
301 * breakpoint.c (watch_command_1): When the watchpoint isn't local
302 to any frame, initialize watchpoint_frame using null_frame_id, not
305 2007-11-28 Vladimir Prus <vladimir@codesourcery.com>
307 * infrun.c (resume): Set right thread even if
308 stepping over breakpoint using software single step.
310 2007-11-28 Nick Roberts <nickrob@snap.net.nz>
312 * mi/mi-cmd-var.c (print_varobj): Revert change from 2007-08-31.
313 (mi_print_value_p): Guard against type = NULL.
315 2007-11-27 Thiago Jung Bauermann <bauerman@br.ibm.com>
317 * dfp.c (decimal_from_string): Remove superfluous newline from
319 (decimal_to_string): Likewise.
320 * printcmd.c (printf_command): Change string buffer to use
321 MAX_DECIMAL_STRING constant.
322 * value.c (value_from_decfloat): Likewise.
324 2007-11-27 Ulrich Weigand <uweigand@de.ibm.com>
326 * Makefile.in (ALL_TARGET_OBS): Remove object files that require
327 64-bit CORE_ADDR and BFD support, move them to ...
328 (ALL_64_TARGET_OBS): ... this new variable.
329 * configure.ac: Check for --enable-64-bit-bfd option. Only add
330 64-bit targets with --enable-targets=all if BFD supports 64-bit.
331 * configure: Regenerate.
333 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Do not claim
334 all elf32-i386 executables, only cygwin core files.
336 2007-11-25 Jan Kratochvil <jan.kratochvil@redhat.com>
338 * dwarf2read.c (dwarf2_get_pc_bounds): Moved the `DW_AT_ranges' parsing
339 code with its variables OBJFILE, CU_HEADER and OBFD into ...
340 (dwarf2_ranges_read): ... a new function.
341 (read_partial_die): Implemented the parsing of `DW_AT_ranges'.
343 2007-11-24 Pedro Alves <pedro_alves@portugalmail.pt>
345 * win32-nat.c (DR6_CLEAR_VALUE): New define.
346 (thread_info_struct): Rename suspend_count to suspended, to be
348 (thread_rec): Only suspend the thread if it wasn't suspended by
349 gdb before. Warn if suspending failed.
350 (win32_add_thread): Set Dr6 to DR6_CLEAR_VALUE.
351 (win32_continue): Set Dr6 to DR6_CLEAR_VALUE. Update usage of the
352 `suspended' flag. Do ContinueDebugEvent after resuming the
353 suspended threads, not before. Set threads' contexts before
354 resuming them, not after.
355 (win32_resume): Set Dr6 to DR6_CLEAR_VALUE.
357 2007-11-23 Vladimir Prus <vladimir@codesourcery.com>
359 * breakpoint.c (insert_breakpoints)
360 (insert_bp_location): Remove stale comments.
362 2007-11-23 Maciej W. Rozycki <macro@mips.com>
364 * mips-linux-tdep.h: Fix some formatting.
366 2007-11-21 Markus Deuling <deuling@de.ibm.com>
368 * stack.c (print_args_stub): Use get_frame_arch to get at the current
369 architecture and replace current_gdbarch.
370 (frame_info): Likewise.
372 2007-11-21 Nick Roberts <nickrob@snap.net.nz>
374 * varobj.c (c_variable_editable, cplus_variable_editable)
375 (java_variable_editable, variable_editable): Delete.
376 (varobj_editable_p): Replace above functions with one language
377 independent function. Check for an lvalue.
378 (varobj_get_attributes, varobj_set_value): Use varobj_editable_p.
379 (struct language_specific): Delete variable_editable field.
381 * mi-cmd-var.c (mi_cmd_var_assign): Simplify.
383 * varobj.h: Add extern for varobj_editable_p.
385 2007-11-20 Vladimir Prus <vladimir@codesourcery.com>
387 Remove unused breakpoint fields.
388 * breakpoint.h (struct breakpoint): Remove
389 from_tty and flag fields.
390 * breakpoint.c (break_command_1): Don't set
391 from_tty and flag field set of breakpoint.
392 (create_ada_exception_breakpoint): Don't set
395 2007-11-20 David Ung <davidu@mips.com>
396 Maciej W. Rozycki <macro@mips.com>
398 * mips-tdep.c (mips16_scan_prologue): Handle the MIPS16e SAVE
401 2007-11-20 Vladimir Prus <vladimir@codesourcery.com>
403 * infrun.c (resume): Clarify logic that
404 decides if a single thread must be resumed. Add
407 2007-11-20 Vladimir Prus <vladimir@codesourcery.com>
409 * breakpoint.c (disable_breakpoints_in_unloaded_shlib):
412 2007-11-19 Markus Deuling <deuling@de.ibm.com>
414 * gdbarch.sh (register_sim_regno): Add gdbarch as parameter.
415 * gdbarch.{c,h}: Regenerate.
417 * arch-utils.h (legacy_register_sim_regno): Add gdbarch as parameter.
418 * score-tdep.c (score_register_sim_regno): Likewise.
419 * sim-regno.h (one2one_register_sim_regno): Likewise.
421 * arch-utils.c (legacy_register_sim_regno): Add gdbarch as parameter.
422 Replace current_gdbarch by gdbarch.
423 * sh-tdep.c (sh_sh2a_register_sim_regno)
424 (sh_dsp_register_sim_regno): Likewise.
425 * rs6000-tdep.c (rs6000_register_sim_regno): Likewise.
426 * mips-tdep.c (mips_register_sim_regno): Likewise.
427 * m32c-tdep.c (m32c_register_sim_regno): Likewise.
428 * frv-tdep.c (frv_register_sim_regno): Likewise.
429 * arm-tdep.c (arm_register_sim_regno): Likewise.
430 * remote-sim.c (one2one_register_sim_regno): Likewise.
432 2007-11-16 Ulrich Weigand <uweigand@de.ibm.com>
434 * configure.ac (--enable-targets): New configure option.
435 Collect gdb_target_obs of multiple targets into TARGET_OBS.
436 Call configure.tgt multiple times, using $targ as operand.
437 * configure.tgt: Operate on $targ instead of $target.
438 * configure: Regenerate.
439 * Makefile.in (ALL_TARGET_OBS): Define.
441 * NEWS: Mention --enable-targets option.
443 2007-11-16 Ulrich Weigand <uweigand@de.ibm.com>
445 * mips-tdep.c (show_mipsfpu_command): Do not crash if called when
446 current architecture is not MIPS.
448 2007-11-16 Ulrich Weigand <uweigand@de.ibm.com>
450 * cli/cli-setshow.c (do_setshow_command): Use dynamically sized buffer
451 to construct error message if no argument was supplied.
453 2007-11-16 Ulrich Weigand <uweigand@de.ibm.com>
455 * i386nbsd-tdep.c (i386nbsd_aout_supply_regset): Remove.
456 (i386nbsd_aout_regset_from_core_section): Likewise.
457 (i386nbsd_aout_init_abi): Likewise.
458 (_initialize_i386nbsd_tdep): Do not register i386nbsd_aout_init_abi.
460 * vaxnbsd-tdep.c (vaxnbsd_aout_init_abi): Remove.
461 (_initialize_vaxnbsd_tdep): Do not register vaxnbsd_aout_init_abi.
463 2007-11-16 Ulrich Weigand <uweigand@de.ibm.com>
465 * amd64fsdb-tdep.c (amd64fbsd_sigtramp_start_addr): Use ULL suffix.
466 (amd64fbsd_sigtramp_end_addr): Likewise.
468 * iq2000-tdep.c (iq2000_pointer_to_address): Fix argument type.
469 (iq2000_address_to_pointer): Likewise.
470 (iq2000_frame_prev_register): Likewise.
471 (iq2000_extract_return_value): Use regcache_cooked_read_unsigned
472 instead of regcache_cooked_read into CORE_ADDR variable.
473 (iq2000_return_value): Fix argument types.
475 * m32r-rom.c (m32r_load_section): Fix printf argument type.
476 (m32r_load): Likewise.
478 * m68kbsd-tdep.c: Include "gdbtypes.h".
479 * Makefile.in: Update dependencies.
481 * mn10300-tdep.c (mn10300_frame_unwind_cache): Fix aliasing violation.
483 * nto-tdep.c (LM_ADDR): Do not refer to no-longer-existing
484 lmo->l_addr_size element.
486 * remote-m32r-sdi.c (m32r_xfer_memory): Use paddr to print address.
487 (m32r_insert_breakpoint): Likewise.
488 (m32r_remove_breakpoint): Likewise.
489 (m32r_insert_watchpoint): Likewise.
490 (m32r_remove_watchpoint): Likewise.
491 (m32r_load): Fix printf argument type.
493 * xtensa-tdep.c (xtensa_regset_from_core_section): Fix printf
495 (xtensa_frame_this_id): Do not cast pointers to "int" for output.
496 (xtensa_frame_prev_register): Likewise.
497 (xtensa_push_dummy_call): Likewise.
499 2007-11-16 Ulrich Weigand <uweigand@de.ibm.com>
501 * config/alpha/alpha-linux.mt: Remove file.
502 * config/alpha/alpha.mt: Remove file.
503 * config/alpha/alpha-osf1.mt: Remove file.
504 * config/alpha/fbsd.mt: Remove file.
505 * config/alpha/nbsd.mt: Remove file.
506 * config/alpha/obsd.mt: Remove file.
507 * config/arm/embed.mt: Remove file.
508 * config/arm/linux.mt: Remove file.
509 * config/arm/nbsd.mt: Remove file.
510 * config/arm/obsd.mt: Remove file.
511 * config/arm/wince.mt: Remove file.
512 * config/avr/avr.mt: Remove file.
513 * config/cris/cris.mt: Remove file.
514 * config/frv/frv.mt: Remove file.
515 * config/h8300/h8300.mt: Remove file.
516 * config/i386/cygwin.mt: Remove file.
517 * config/i386/fbsd64.mt: Remove file.
518 * config/i386/fbsd.mt: Remove file.
519 * config/i386/i386gnu.mt: Remove file.
520 * config/i386/i386.mt: Remove file.
521 * config/i386/i386sol2.mt: Remove file.
522 * config/i386/linux64.mt: Remove file.
523 * config/i386/linux.mt: Remove file.
524 * config/i386/mingw.mt: Remove file.
525 * config/i386/nbsd64.mt: Remove file.
526 * config/i386/nbsd.mt: Remove file.
527 * config/i386/nto.mt: Remove file.
528 * config/i386/obsd64.mt: Remove file.
529 * config/i386/obsd.mt: Remove file.
530 * config/i386/sol2-64.mt: Remove file.
531 * config/ia64/ia64.mt: Remove file.
532 * config/ia64/linux.mt: Remove file.
533 * config/iq2000/iq2000.mt: Remove file.
534 * config/m32c/m32c.mt: Remove file.
535 * config/m32r/linux.mt: Remove file.
536 * config/m32r/m32r.mt: Remove file.
537 * config/m68hc11/m68hc11.mt: Remove file.
538 * config/m68k/linux.mt: Remove file.
539 * config/m68k/monitor.mt: Remove file.
540 * config/m68k/nbsd.mt: Remove file.
541 * config/m68k/obsd.mt: Remove file.
542 * config/m88k/obsd.mt: Remove file.
543 * config/mep/mep.mt: Remove file.
544 * config/mips/embed.mt: Remove file.
545 * config/mips/irix5.mt: Remove file.
546 * config/mips/irix6.mt: Remove file.
547 * config/mips/linux.mt: Remove file.
548 * config/mips/nbsd.mt: Remove file.
549 * config/mips/obsd64.mt: Remove file.
550 * config/mn10300/linux.mt: Remove file.
551 * config/mn10300/mn10300.mt: Remove file.
552 * config/mt/mt.mt: Remove file.
553 * config/pa/hppahpux.mt: Remove file.
554 * config/pa/hppa.mt: Remove file.
555 * config/pa/linux.mt: Remove file.
556 * config/pa/obsd.mt: Remove file.
557 * config/powerpc/aix.mt: Remove file.
558 * config/powerpc/linux.mt: Remove file.
559 * config/powerpc/nbsd.mt: Remove file.
560 * config/powerpc/obsd.mt: Remove file.
561 * config/powerpc/ppc-eabi.mt: Remove file.
562 * config/s390/s390.mt: Remove file.
563 * config/score/embed.mt: Remove file.
564 * config/sh/embed.mt: Remove file.
565 * config/sh/linux.mt: Remove file.
566 * config/sh/nbsd.mt: Remove file.
567 * config/sh/obsd.mt: Remove file.
568 * config/sh/sh64.mt: Remove file.
569 * config/sparc/embed.mt: Remove file.
570 * config/sparc/fbsd.mt: Remove file.
571 * config/sparc/linux64.mt: Remove file.
572 * config/sparc/linux.mt: Remove file.
573 * config/sparc/nbsd64.mt: Remove file.
574 * config/sparc/nbsd.mt: Remove file.
575 * config/sparc/obsd64.mt: Remove file.
576 * config/sparc/obsd.mt: Remove file.
577 * config/sparc/sol2-64.mt: Remove file.
578 * config/sparc/sol2.mt: Remove file.
579 * config/sparc/sparc64.mt: Remove file.
580 * config/sparc/sparc.mt: Remove file.
581 * config/spu/spu.mt: Remove file.
582 * config/v850/v850.mt: Remove file.
583 * config/vax/nbsd.mt: Remove file.
584 * config/vax/obsd.mt: Remove file.
585 * config/vax/vax.mt: Remove file.
586 * config/xstormy16/xstormy16.mt: Remove file.
587 * config/xtensa/xtensa.mt: Remove file.
589 * configure.tgt (gdb_target_cpu): Remove. Do not set anywhere.
590 (gdb_target): Likewise.
591 (gdb_target_obs): Document. Set for every target to contents
592 of TDEPFILES in former .mt makefile fragment.
594 * configure.ac (TARGET_OBS): Define.
595 (target_makefile_frag, gdb_target_cpu): Do not define.
596 * configure: Regenerate.
598 * Makefile.in (MT_FLAGS): Remove.
599 (GLOBAL_CFLAGS): Update.
600 (TARGET_OBS): Substitute from configure.
601 (DEPFILES): Remove TDEPFILES, add TARGET_OBS.
602 (@target_makefile_frag@): Remove.
604 2007-11-16 Ulrich Weigand <uweigand@de.ibm.com>
606 * config/arm/embed.mt (SIM_OBS, SIM): Remove.
607 * config/avr/avr.mt (SIM_OBS, SIM): Remove.
608 * config/frv/frv.mt (SIM_OBS, SIM): Remove.
609 * config/h8300/h8300.mt (SIM_OBS, SIM): Remove.
610 * config/iq2000/iq2000.mt (SIM_OBS, SIM): Remove.
611 * config/m32c/m32c.mt (SIM_OBS, SIM): Remove.
612 * config/m32r/linux.mt (SIM_OBS, SIM): Remove.
613 * config/m32r/m32r.mt (SIM_OBS, SIM): Remove.
614 * config/m68hc11/m68hc11.mt (SIM_OBS, SIM): Remove.
615 * config/mips/embed.mt (SIM_OBS, SIM): Remove.
616 * config/mips/linux.mt (SIM_OBS, SIM): Remove.
617 * config/mips/nbsd.mt (SIM_OBS, SIM): Remove.
618 * config/mn10300/mn10300.mt (SIM_OBS, SIM): Remove.
619 * config/powerpc/linux.mt (SIM_OBS, SIM): Remove.
620 * config/powerpc/nbsd.mt (SIM_OBS, SIM): Remove.
621 * config/powerpc/ppc-sim.mt: Remove file.
622 * config/sh/embed.mt (SIM_OBS, SIM): Remove.
623 * config/sh/linux.mt (SIM_OBS, SIM): Remove.
624 * config/sh/nbsd.mt (SIM_OBS, SIM): Remove.
625 * config/sh/sh64.mt (SIM_OBS, SIM): Remove.
626 * config/sparc/embed.mt (SIM_OBS, SIM): Remove.
627 * config/v850/v850.mt (SIM_OBS, SIM): Remove.
628 * config/xstormy16/xstormy16.mt (SIM_OBS, SIM): Remove.
630 * configure.tgt (gdb_sim): Document variable.
631 (arm*-*-* | thumb*-*-* | strongarm*-*-* | xscale-*-*): Set it.
634 (h8300-*-*): Likewise.
635 (iq2000-*-*): Likewise.
636 (m32c-*-*): Likewise.
637 (m32r*-*-linux*): Likewise.
638 (m32r*-*-*): Likewise.
639 (m68hc11*-*-*|m6811*-*-*): Likewise.
640 (mips*-*-*): Likewise.
641 (mips*-*-linux*): Likewise.
642 (mips*-*-netbsd* | mips*-*-knetbsd*-gnu): Likewise.
643 (mn10300-*-*): Likewise.
644 (powerpc-*-linux* | powerpc64-*-linux*): Likewise.
645 (powerpc-*-netbsd* | powerpc-*-knetbsd*-gnu): Likewise.
646 (powerpc*-*-*): Use ppc-eabi target. Conditionally set gdb_sim.
648 (sh-*-linux*): Likewise.
649 (sh*-*-netbsdelf* | sh*-*-knetbsd*-gnu): Likewise.
650 (sh64-*-elf*): Likewise.
651 (sparc-*-rtems*): Likewise.
652 (v850*-*-elf): Likewise.
653 (xstormy16-*-*): Likewise.
655 * configure.ac (IGNORE_SIM, IGNORE_SIM_OBS): Do not set.
656 (SIM, SIM_OBS): Set depending on ${ignore_sim} and ${gdb_sim}.
657 * configure: Regenerate.
658 * Makefile.in (SIM, SIM_OBS): Substitute from configure.
659 (@IGNORE_SIM@, @IGNORE_SIM_OBS@): Remove.
661 2007-11-16 Ulrich Weigand <uweigand@de.ibm.com>
663 * configure.tgt (gdb_osabi, build_gdbserver): Comment variables.
664 (arm*-*-*): Do not set obsolete build_rdi_share variable.
666 (*-*-freebsd* | *-*-kfreebsd*-gnu): Remove generic case, replace by ...
667 (alpha*-*-freebsd* | alpha*-*-kfreebsd*-gnu)
668 (i[34567]86-*-freebsd* | i[34567]86-*-kfreebsd*-gnu)
669 (sparc*-*-freebsd* | sparc*-*-kfreebsd*-gnu): ... specific cases.
670 (x86_64-*-freebsd* | x86_64-*-kfreebsd*-gnu): Re-sort.
672 (xscale-*-*): Merge into arm*-*-* case.
673 (fido-*-elf*): Merge into m68*-*-elf* case.
674 (m68*-*-aout*, m68*-*-coff*, m68*-*-elf*, m68*-*-rtems*,
675 m68*-*-uclinux*): Merge cases.
676 (powerpc-*-linux*, powerpc64-*-linux*): Merge cases.
677 (sh-*-coff*, sh-*-elf*): Merge into sh* case.
679 2007-11-16 Ulrich Weigand <uweigand@de.ibm.com>
681 * configure.tgt: Reformat main case statement.
683 2007-11-16 Ulrich Weigand <uweigand@de.ibm.com>
685 * configure.ac (hostfile, targetfile): Remove.
686 (GDB_XM_FILE, GDB_TM_FILE): Do not define.
687 (xm_h, tm_h): Likewise.
688 (DEPRECATED_TM_FILE, XM_FILE): Do not substitute into Makefile.
689 * configure, config.in: Regenerate.
691 * Makefile.in (xm_h, tm_h): Remove. Update dependencies.
692 (TAGS): Do not consider DEPRECATED_TM_FILE or XM_FILE.
693 (clean, local-maintainer-clean): Do not remove xm.h or tm.h.
694 * defs.h: Do not include "xm.h" or "tm.h".
696 * gdbarch.sh (verify_gdbarch): Do not dump GDB_XM_FILE or GDB_TM_FILE.
697 * gdbarch.c: Regenerate.
699 * config/score/embed.mt: Remove obsolete comment.
701 2007-11-16 Markus Deuling <deuling@de.ibm.com>
703 * gdbarch.sh (cannot_fetch_register, cannot_store_register): Add gdbarch
705 * gdbarch.{c,h}: Regenerate.
707 * alpha-tdep.c (alpha_cannot_fetch_register)
708 (alpha_cannot_store_register): Add gdbarch as parameter. Replace
709 current_gdbarch by gdbarch.
710 * cris-tdep.c (cris_cannot_fetch_register, cris_cannot_store_register)
711 (crisv32_cannot_fetch_register)
712 (crisv32_cannot_store_register): Likewise.
713 * arch-utils.c (cannot_register_not): Likewise.
714 * arch-utils.h (cannot_register_not): Likewise.
715 * hppa-tdep.c (hppa32_cannot_store_register)
716 (hppa32_cannot_store_register, hppa64_cannot_store_register)
717 (hppa64_cannot_fetch_register): Likewise.
718 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register)
719 (mipsnbsd_cannot_store_register): Likewise.
721 2007-11-16 Markus Deuling <deuling@de.ibm.com>
723 * m32r-rom.c (m32r_supply_register): Use get_regcache_arch to get at
724 the current architecture by regcache.
725 * ppcnbsd-nat.c (ppcnbsd_supply_pcb): Likewise.
726 * ppc-linux-nat.c (fetch_altivec_register, fetch_spe_register)
727 (fetch_register, supply_vrregset, fetch_ppc_registers)
728 (store_altivec_register, store_spe_register, store_register)
729 (fill_vrregset, store_ppc_registers): Likewise.
730 * ppcobsd-nat.c (ppcobsd_supply_pcb): Likewise.
731 * win32-nat.c (do_win32_fetch_inferior_registers)
732 (do_win32_store_inferior_registers): Likewise.
733 * procfs.c (procfs_fetch_registers, procfs_store_registers): Likewise.
734 * remote-m32r-sdi.c (m32r_fetch_registers)
735 (m32r_store_registers): Likewise.
736 * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register): Likewise.
738 * trad-frame.c (trad_frame_alloc_saved_regs): Replace current_gdbarch by
740 * user-regs.c (user_reg_map_name_to_regnum): Likewise.
741 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call)
742 (do_ppc_sysv_return_value, ppc64_sysv_abi_push_dummy_call)
743 (ppc64_sysv_abi_return_value): Likewise.
744 * m32c-tdep.c (m32c_register_reggroup_p): Likewise.
745 * m2-lang.c (build_m2_types): Likewise.
746 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache
747 * ppcnbsd-tdep.c (ppcnbsd_sigtramp_cache_init): Likewise.
748 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_cache): Likewise.
749 * rs6000-tdep.c (ppc_dwarf2_frame_init_reg): Likewise.
751 * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Use get_frame_arch to
752 get at the current architecture by frame_info.
753 * gcore.c (derive_stack_segment): Likewise.
755 * shnbsd-nat.c (GETREGS_SUPPLIES): Add gdbarch parameter.
756 (shnbsd_fetch_inferior_registers, shnbsd_store_inferior_registers): Add
757 gdbarch to GETREGS_SUPPLIES call.
759 2007-11-16 Ulrich Weigand <uweigand@de.ibm.com>
761 * elfread.c (ST_REGULAR, ST_DYNAMIC, ST_SYNTHETIC): New defines.
762 (elf_symtab_read): Rename DYNAMIC argument to TYPE. Do not access
763 ELF-private symbol data when processing synthetic symbols. Use
764 udata.p to get at size of ppc64 synthetic 'dot' symbols.
765 (elf_symfile_read): Pass TYPE argument to elf_symtab_read.
767 2007-11-15 Doug Evans <dje@google.com>
769 * buildsym.h (subfiles): Move ...
770 * buildsym.c (subfiles): ... to here and make static.
772 * symmisc.c (maintenance_info_symtabs): Print linetable info.
774 2007-11-15 Markus Deuling <deuling@de.ibm.com>
776 * mipsnbsd-tdep.h (SIZEOF_STRUCT_REG, SIZEOF_STRUCT_FPREG): Remove
778 2007-11-15 Markus Deuling <deuling@de.ibm.com>
780 * arm-tdep.c (arm_prologue_this_id): Replace LOWEST_PC by its
781 expression and use get_frame_arch to replace current_gdbarch by frame's
783 * arm-tdep.h (LOWEST_PC): Remove
785 2007-11-15 Vladimir Prus <vladimir@codesourcery.com>
787 Apply const qualifier to some users of bp_location.
788 * breakpoint.h (struct bpstats): Make
789 the breakpoint_at field point at const bp_location.
790 * breakpoint.c (bpstat_alloc): Accept const
792 (breakpoint_here_p, breakpoint_inserted_here_p)
793 (software_breakpoint_inserted_here_p)
794 (breakpoint_thread_match, bpstat_stop_status)
795 (read_memory_nobpt, bpstat_have_active_hw_watchpoints): Use
796 const bp_location for iteration.
797 (print_it_typical, print_bp_stop_message): Use
798 const bp_location variable.
800 2007-11-15 Vladimir Prus <vladimir@codesourcery.com>
802 Make mark_breakpoints_out static.
803 * breakpoint.h (mark_breakpoints_out): Remove
805 * breakpoint.c (mark_breakpoints_out): Make static.
807 2007-11-15 Vladimir Prus <vladimir@codesourcery.com>
809 Prevent clear_command from directly modifying breakpoint list.
810 * Makefile.in (breakpoint_h): Update dependency.
811 * breakpoint.c (clear_command): Do not remove
812 breakpoints from breakpoint_chain. Collect breakpoints
813 to delete in a vector.
814 * breakpoint.h (breakpoint_p): New typedef for pointer to
815 breakpoint. Register vector of breakpoint_p.
817 2007-11-15 Vladimir Prus <vladimir@codesourcery.com>
819 Remove 'run_cleanup'.
820 * defs.h (do_run_cleanups, make_run_cleanup): Remove
822 * infcmd.c (run_command_1): Call clear_solib instead
824 * jv-lang.c (java_rerun_cleanup): Remove, for lack of
826 * solib.c (solib_cleanup_queued, do_clear_solib): Remove.
827 (update_solib_lib): Don't setup run cleanup.
828 (no_shared_libraries): Call clear_solib, not do_clear_solib.
829 * utils.c (run_cleanup_chain, make_run_cleanup)
830 (do_run_cleanups): Remove.
832 2007-11-15 Vladimir Prus <vladimir@codesourcery.com>
834 Remove CLEAR_SOLIB use.
835 * corelow.c (core_close): Don't check for CLEAR_SOLIB.
836 * infcmd.c (attach_command): Likewise.
838 2007-11-14 Doug Evans <dje@google.com>
840 * buildsym.c (start_subfile,start_symtab): Doc fixes.
842 2007-11-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
844 * tui/tui-data.c (tui_prev_win): Guard against NULL.
846 2007-11-12 Markus Deuling <deuling@de.ibm.com>
848 * gdbarch.sh (gdbarch_alloc): Replace current_gdbarch by gdbarch. Remove
850 (verify_gdbarch, gdbarch_dump): Likewise.
851 (do_read): Update comment.
852 (addr_bit, bfd_arch_info, target_desc, long_long_bit, floatformat)
853 (ptr_bit, name_of_malloc): Replace current_gdbarch by gdbarch.
854 * gdbarch.{c,h}: Regenerate.
856 2007-11-12 Markus Deuling <deuling@de.ibm.com>
858 * xtensa-tdep.c (ARG_1ST): Replace ARGS_FIRST_REG by its expression.
859 (ARGS_FIRST_REG): Remove.
860 (areg_numer): New function.
861 (xtensa_pseudo_register_read, xtensa_frame_prev_register)
862 (xtensa_extract_return_value, xtensa_store_return_value)
863 (xtensa_frame_cache): Replace AREG_NUMBER by areg_number.
864 (AREG_NUMBER): Remove.
865 (XTENSA_IS_ENTRY, ARG_NOF, ARG_1ST): Add gdbarch as parameter.
866 (xtensa_frame_cache): Update use of XTENSA_IS_ENTRY.
867 (xtensa_push_dummy_call): Update use of ARG_NOF.
868 (extract_call_winsize): Add gdbarch as parameter. Replace
869 current_gdbarch by gdbarch.
870 (xtensa_extract_return_value, xtensa_store_return_value): Update call
871 of extract_call_winsize.
873 2007-11-10 Joel Brobecker <brobecker@adacore.com>
875 * NEWS: Add entry for new set/show print frame-args command.
877 2007-11-09 Kevin Buettner <kevinb@redhat.com>
879 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Add missing
880 register number to map. Adjust warning check and error/warning
881 return value code to match expectations of this function's callers.
883 2007-11-09 Joel Brobecker <brobecker@adacore.com>
885 * stack.c (print_this_frame_argument_p): Handle arguments passed
886 by reference properly.
888 2007-11-09 Joel Brobecker <brobecker@adacore.com>
890 * stack.c (print_frame_arguments_choices): New static global.
891 (print_frame_arguments): Likewise.
892 (print_this_frame_argument_p): New function.
893 (print_frame_args): Print the argument value only when appropriate.
894 (_initialize_task): Add new "set/show print frame-arguments" command.
896 2007-11-09 Luis Machado <luisgpm@br.ibm.com>
898 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Move
899 saved_dabr_value assignment to the correct position.
901 2007-11-09 Markus Deuling <deuling@de.ibm.com>
903 * arch-utils.c (generic_convert_register_p): Add gdbarch as parameter.
904 * arch-utils.h (generic_convert_register_p): Likewise.
906 2007-11-09 Markus Deuling <deuling@de.ibm.com>
908 * gdbarch.sh (convert_register_p): Add gdbarch as parameter.
909 * ia64-tdep.c (ia64_convert_register_p): Likewise.
910 * i387-tdep.c (i387_convert_register_p): Likewise.
911 * i387-tdep.h (i387_convert_register_p): Likewise.
912 * alpha-tdep.c (alpha_convert_register_p): Likewise.
913 * gdbarch.{c,h}: Regenerate.
915 * rs6000-tdep.c (rs6000_convert_register_p): Add gdbarch as parameter.
916 Replace current_gdbarch by gdbarch.
917 * mips-tdep.c (mips_convert_register_p): Likewise.
918 * m68k-tdep.c (m68k_convert_register_p): Likewise.
919 * i386-tdep.c (i386_convert_register_p): Likewise.
921 2007-11-08 Aleksandar Ristovski <aristovski@qnx.com>
923 * gdb_string.h: Include <strings.h>.
925 2007-11-08 Vladimir Prus <vladimir@codesourcery.com>
927 * breakpoint.c (break_command_1): Remove
928 pending_bp parameter.
929 (create_breakpoint): Likewise.
930 (create_breakpoints): Likewise. Adjust call to
932 (break_command_1): Likewise. Adjust call to
934 (do_captured_breakpoint): Adjust call to
936 (break_command, tbreak_command, hbreak_command)
937 (stopin_command, stopat_command): Adjust call
940 2007-11-07 Joseph Myers <joseph@codesourcery.com>
941 Daniel Jacobowitz <dan@codesourcery.com>
943 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Right-align
944 struct values smaller than one doubleword; left-align those
945 larger. Pass structs containing a single floating-point value in
948 2007-11-07 Joseph Myers <joseph@codesourcery.com>
949 Daniel Jacobowitz <dan@codesourcery.com>
951 * gdbtypes.c (floatformats_ibm_long_double): New.
952 * gdbtypes.h (floatformats_ibm_long_double): Declare.
953 * ia64-tdep.c (floatformat_ia64_ext): Update for addition of
955 * mips-tdep.c (n32n64_floatformat_always_valid,
956 floatformat_n32n64_long_double_big, floatformats_n32n64_long):
958 (mips_gdbarch_init): Use floatformats_ibm_long_double instead of
959 floatformats_n32n64_long.
960 * ppc-linux-tdep.c (ppc_linux_init_abi): Use 128-bit IBM long
962 * doublest.c (convert_floatformat_to_doublest,
963 convert_doublest_to_floatformat): Handle split floating-point
965 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Handle IBM long
967 (ppc64_sysv_abi_push_dummy_call): Likewise.
968 (do_ppc_sysv_return_value): Handle IBM long double return.
970 2007-11-07 Vladimir Prus <vladimir@codesourcery.com>
972 Fix crash when a variable object being deleted
973 has any of its children deleted previously.
975 * varobj.c (delete_variable_1): Don't recurse
976 into deleted children.
978 2007-11-07 Markus Deuling <deuling@de.ibm.com>
980 * gdbarch.sh (legacy_virtual_frame_pointer): Add gdbarch parameter.
981 * gdbarch.{c,h}: Regenerate.
982 * arch-utils.c (legacy_virtual_frame_pointer): Add gdbarch parameter.
983 Replace current_gdbarch by gdbarch.
984 * m32c-tdep.c (m32c_virtual_frame_pointer): Likewise.
985 * mips-tdep.c (mips_virtual_frame_pointer): Likewise.
986 * spu-tdep.c (spu_virtual_frame_pointer): Likewise.
988 2007-11-07 Markus Deuling <deuling@de.ibm.com>
990 * shnbsd-tdep.c (shnbsd_supply_gregset, shnbsd_collect_gregset): Use
991 get_regcache_arch to get at the current architecture by regcache.
992 * xstormy16-tdep.c (xstormy16_frame_prev_register): Use get_frame_arch
993 to get at the current architecture by frame_info.
994 * fbsd-nat.c (fbsd_make_corefile_notes): Use get_regcache_arch to get
995 at the current architecture by regcache.
996 * gnu-v3-abi.c (gnuv3_skip_trampoline): Use get_frame_arch to get at
997 the current architecture by frame_info.
998 (build_gdb_vtable_type): Replace current_gdbarch by gdbarch.
999 * aix-thread.c (special_register_p): Add gdbarch as parameter.
1000 (fetch_regs_kernel_thread, store_regs_kernel_thread): Add gdbarch to
1001 caller of special_register_p.
1003 2007-11-07 Markus Deuling <deuling@de.ibm.com>
1005 * infcall.c (call_function_by_hand): Use get_frame_arch to get at the
1006 current architecture by frame_info.
1008 2007-11-07 Markus Deuling <deuling@de.ibm.com>
1010 * xtensa-tdep.h (SIZEOF_GREGSET, XTENSA_ELF_NGREG) Remove.
1012 2007-11-07 Markus Deuling <deuling@de.ibm.com>
1014 * s390-nat.c (supply_gregset, fill_gregset): Use get_regcache_arch to
1015 get at the current architecture by regcache.
1016 (SUBOFF): Add gdbarch to macro definition.
1018 2007-11-07 Markus Deuling <deuling@de.ibm.com>
1020 * gdbarch.sh (breakpoint_from_pc): Add gdbarch parameter.
1021 * gdbarch.{c,h}: Regenerate.
1023 * xtensa-tdep.c (xtensa_breakpoint_from_pc): Add gdbarch parameter.
1024 Replace current_gdbarch by gdbarch.
1025 * sh-tdep.c (sh_breakpoint_from_pc): Likewise.
1026 * sh64-tdep.c (sh64_breakpoint_from_pc): Likewise.
1027 * score-tdep.c (score_breakpoint_from_pc): Likewise.
1028 * mips-tdep.c (mips_breakpoint_from_pc): Likewise.
1029 * m32r-tdep.c (m32r_breakpoint_from_pc): Likewise.
1030 * iq2000-tdep.c (iq2000_breakpoint_from_pc): Likewise.
1031 * arm-tdep.c (arm_breakpoint_from_pc): Likewise.
1033 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Add gdbarch
1035 * vax-tdep.c (vax_breakpoint_from_pc): Likewise.
1036 * v850-tdep.c (v850_breakpoint_from_pc): Likewise.
1037 * spu-tdep.c (spu_breakpoint_from_pc): Likewise.
1038 * sparc-tdep.c (sparc_breakpoint_from_pc): Likewise.
1039 * s390-tdep.c (s390_breakpoint_from_pc): Likewise.
1040 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Likewise.
1041 * mt-tdep.c (mt_breakpoint_from_pc): Likewise.
1042 * mep-tdep.c (mep_breakpoint_from_pc): Likewise.
1043 * m88k-tdep.c (m88k_breakpoint_from_pc): Likewise.
1044 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Likewise.
1045 * m32c-tdep.c (m32c_breakpoint_from_pc): Likewise.
1046 * ia64-tdep.c (ia64_breakpoint_from_pc): Likewise.
1047 * i386-tdep.c (i386_breakpoint_from_pc): Likewise.
1048 * hppa-tdep.c (hppa_breakpoint_from_pc): Likewise.
1049 * h8300-tdep.c (h8300_breakpoint_from_pc): Likewise.
1050 * frv-tdep.c (frv_breakpoint_from_pc): Likewise.
1051 * cris-tdep.c (cris_breakpoint_from_pc): Likewise.
1052 * avr-tdep.c (avr_breakpoint_from_pc): Likewise.
1053 * alpha-tdep.c (alpha_breakpoint_from_pc): Likewise.
1054 * m68k-tdep.c (m68k_local_breakpoint_from_pc): Likewise.
1056 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Add gdbarch parameter.
1057 Replace current_gdbarch by gdbarch.
1058 (rs6000_software_single_step): Use get_frame_arch to get at the
1059 current architecture by frame_info. Add gdbarch to
1060 rs6000_breakpoint_from_pc call.
1062 2007-11-07 Markus Deuling <deuling@de.ibm.com>
1064 * frv-tdep.c (frv_register_name, frv_check_watch_resources): Replace
1065 macro CURRENT_VARIANT by its expression.
1066 (CURRENT_VARIANT): Remove.
1067 (frv_check_watch_resources): Add gdbarch parameter.
1069 2007-11-07 Markus Deuling <deuling@de.ibm.com>
1071 * MAINTAINERS (Write After Approval): Add self.
1073 2007-11-05 Ulrich Weigand <uweigand@de.ibm.com>
1075 * features/rs6000/power-core.xml: Use uint32 as register type.
1076 * features/rs6000/power64-core.xml: Use uint64/uint32 as register type.
1077 * features/rs6000/powerpc-32.c: Regenerate.
1078 * features/rs6000/powerpc-403.c: Regenerate.
1079 * features/rs6000/powerpc-403gc.c: Regenerate.
1080 * features/rs6000/powerpc-505.c: Regenerate.
1081 * features/rs6000/powerpc-602.c: Regenerate.
1082 * features/rs6000/powerpc-603.c: Regenerate.
1083 * features/rs6000/powerpc-604.c: Regenerate.
1084 * features/rs6000/powerpc-64.c: Regenerate.
1085 * features/rs6000/powerpc-7400.c: Regenerate.
1086 * features/rs6000/powerpc-750.c: Regenerate.
1087 * features/rs6000/powerpc-860.c: Regenerate.
1088 * features/rs6000/powerpc-e500.c: Regenerate.
1090 2007-11-05 Joel Brobecker <brobecker@adacore.com>
1092 * breakpoint.c (set_raw_breakpoint_without_location): Make static.
1094 2007-11-05 Joel Brobecker <brobecker@adacore.com>
1096 * breakpoint.h (create_solib_load_event_breakpoint)
1097 (create_solib_unload_event_breakpoint)
1098 (create_fork_event_catchpoint, create_vfork_event_catchpoint)
1099 (create_exec_event_catchpoint): Delete declaration.
1100 * breakpoint.c (create_solib_load_event_breakpoint)
1101 (solib_load_unload_1, create_solib_unload_event_breakpoint): Delete.
1102 (create_fork_event_catchpoint, create_vfork_event_catchpoint)
1103 (create_exec_event_catchpoint): Make static.
1105 2007-11-05 Joel Brobecker <brobecker@adacore.com>
1107 * breakpoint.h (set_breakpoint_sal): Remove declaration.
1108 * breakpoint.c (set_breakpoint_sal): Delete.
1110 2007-11-05 Joel Brobecker <brobecker@adacore.com>
1112 * buildsym.c (finish_block): Remove "#if 1"/"#endif" brackets.
1113 (make_blockvector): Likewise. Remove FIXME comment.
1115 2007-11-05 Luis Machado <luisgpm@br.ibm.com>
1117 * printcmd.c: (printf_command): Add support for new DFP
1118 modifiers %H, %D and %DD.
1119 * configure.ac: Add check for DECFLOAT printf support.
1120 * configure: Regenerated.
1122 2007-11-02 Ulrich Weigand <uweigand@de.ibm.com>
1124 * gdbtypes.h (struct cplus_struct_type): Remove runtime_ptr member.
1125 (TYPE_RUNTIME_PTR, TYPE_VTABLE, TYPE_HAS_VTABLE,
1126 TYPE_PRIMARY_BASE, TYPE_VIRTUAL_BASE_LIST): Remove macros.
1127 (HP_ACC_VFUNC_START, HP_ACC_VBASE_START, HP_ACC_TYPEINFO_OFFSET,
1128 HP_ACC_TOP_OFFSET_OFFSET): Likewise.
1129 (has_vtable, primary_base_class, virtual_base_list_length,
1130 virtual_base_list_length_skip_primaries, virtual_base_index,
1131 virtual_base_index_skip_primaries, class_index_in_primary_list,
1132 count_virtual_fns): Remove prototypes.
1133 * gdbtypes.c (has_vtable, primary_base_class, current_vbase_list,
1134 virtual_base_list_aux, virtual_base_list, virtual_base_list_length,
1135 virtual_base_list_length_skip_primaries, virtual_base_index,
1136 virtual_base_index_skip_primaries, class_index_in_primary_list,
1137 count_virtual_fns): Remove.
1139 * cp-valprint.c (cp_print_hpacc_virtual_table_entries): Remove.
1140 (hpacc_vtbl_ptr_name, hpacc_vtbl_ptr_type_name): Remove.
1141 (cp_print_value_fields): Remove support for HP aCC vtables.
1142 (cp_print_value): Likewise.
1143 * c-typeprint.c (c_type_print_base): Likewise.
1145 * value.h (find_rt_vbase_offset): Remove prototype.
1146 * valops.c (find_rt_vbase_offset): Remove.
1147 (search_struct_method): Remove support for HP aCC vtables.
1148 (find_method_list): Likewise.
1150 2007-11-02 Ulrich Weigand <uweigand@de.ibm.com>
1152 * language.h (struct language_defn): Remove la_builtin_type_vector
1153 and string_char_type members.
1154 * language.c (language_string_char_type): No longer consult
1155 la->string_char_type.
1156 (language_lookup_primitive_type_by_name): No longer consult
1157 current_language->la_builtin_type_vector.
1159 * language.c (unknown_language_defn, auto_language_defn,
1160 local_language_defn): Adapt initializer.
1161 * ada-lang.c (ada_language_defn): Likewise.
1162 * c-lang.c (c_language_defn, cplus_language_defn, asm_language_defn,
1163 minimal_language_defn): Likewise.
1164 * f-lang.c (f_language_defn): Likewise.
1165 * jv-lang.c (java_language_defn): Likewise.
1166 * m2-lang.c (m2_language_defn): Likewise.
1167 * objc-lang.c (objc_language_defn): Likewise.
1168 * p-lang.c (pascal_language_defn): Likewise.
1169 * scm-lang.c (scm_language_defn): Likewise.
1171 2007-11-02 Markus Deuling <deuling@de.ibm.com>
1173 * frame.c (frame_id_inner): Add gdbarch parameter. Replace
1174 current_gdbarch by gdbarch.
1175 (frame_find_by_id, get_prev_frame_1): Use get_frame_arch to get at the
1176 current architecture by frame_info.
1177 * frame.h (frame_id_inner): Add gdbarch parameter.
1178 * stack.c (return_command): Use get_frame_arch to get at the current
1179 architecture by frame_info. Update call of frame_id_inner.
1180 * infrun.c (handle_inferior_event): Likewise.
1181 * dummy-frame.c (dummy_frame_push): Use get_regcache_arch to get at the
1182 current architecture by regcache. Update call of frame_id_inner.
1184 2007-11-02 Markus Deuling <deuling@de.ibm.com>
1186 * gdbarch.sh (register_name): Add gdbarch parameter.
1187 * gdbarch.{c,h}: Regenerate.
1189 * target-descriptions.c (tdesc_register_name): Add gdbarch parameter.
1190 (tdesc_register_name): Replace current_gdbarch by gdbarch.
1191 * target-descriptions.h (tdesc_register_name): Add gdbarch parameter.
1193 * xstormy16-tdep.c (xstormy16_register_name): Add gdbarch parameter.
1194 * vax-tdep.c (vax_register_name): Add gdbarch parameter.
1195 * spu-tdep.c (spu_register_name): Add gdbarch parameter.
1196 * s390-tdep.c (s390_register_name): Add gdbarch parameter.
1197 * mt-tdep.c (mt_register_name): Add gdbarch parameter.
1198 (mt_registers_info): Replace current_gdbarch by gdbarch.
1199 (mt_register_reggroup_p): Add gdbarch to mt_register_name call.
1200 * mips-tdep.c (mips_register_name): Add gdbarch parameter. Replace
1201 current_gdbarch by gdbarch.
1202 (mips_register_name): Add gdbarch to tdesc_register_name call.
1203 * mep-tdep.c (mep_register_name): Add gdbarch parameter. Replace
1204 current_gdbarch by gdbarch.
1205 (mep_register_reggroup_p): Add gdbarch to mep_register_name call.
1206 * m32c-tdep.c (m32c_register_name): Add gdbarch parameter. Replace
1207 current_gdbarch by gdbarch.
1208 * m88k-tdep.c (m88k_register_name): Add gdbarch parameter.
1209 * m68k-tdep.c (m68k_register_name): Add gdbarch parameter.
1210 * m32r-tdep.c (m32r_register_name): Add gdbarch parameter.
1211 (m32r_frame_unwind_cache): Use get_frame_arch to get at the current
1212 architecture by frame_info.
1213 * iq2000-tdep.c (iq2000_register_name): Add gdbarch parameter.
1214 * ia64-tdep.c (ia64_register_name): Add gdbarch parameter.
1215 * hppa-tdep.c (hppa32_register_name, hppa64_register_name): Add gdbarch
1217 * h8300-tdep.c (h8300_register_name, h8300s_register_name)
1218 (h8300sx_register_name): Add gdbarch parameter.
1219 * cris-tdep.c (cris_register_name, crisv32_register_name): Add
1220 gdbarch parameter. Replace current_gdbarch by gdbarch.
1221 (cris_gdbarch_init): Replace current_gdbarch by gdbarch (comment).
1222 * avr-tdep.c (avr_register_name): Add gdbarch parameter.
1223 * arm-tdep.c (arm_register_name): Add gdbarch paramete
1224 * amd64-tdep.c (amd64_register_name): Add gdbarch parameter. Update
1226 * amd64-tdep.h (amd64_register_name): Add gdbarch parameter.
1227 * amd64-linux-tdep.c (amd64_linux_register_name): Add gdbarch parameter.
1228 * alpha-tdep.c (alpha_register_name): Add gdbarch parameter.
1229 (alpha_cannot_fetch_register, alpha_cannot_store_register): Update call
1230 of alpha_register_name.
1231 * frv-tdep.c (frv_register_name): Add gdbarch parameter.
1232 * i386-tdep.c (i386_register_name): Add gdbarch parameter. Replace
1233 current_gdbarch by gdbarch.
1234 (i386_register_type): Replace ?current_gdbarch by gdbarch.
1235 * i386-tdep.h (i386_register_name): Add gdbarch parameter.
1236 * i386-linux-tdep.c (i386_linux_register_name): Add gdbarch parameter.
1238 * m68hc11-tdep.c (m68hc11_register_name): Add gdbarch parameter.
1239 (m68hc11_register_reggroup_p): Add gdbarch to call of
1240 m68hc11_register_name.
1241 * mn10300-tdep.c (mn10300_generic_register_name, am33_register_name)
1242 (am33_2_register_name): Add gdbarch parameter.
1243 (mn10300_frame_unwind_cache): Use get_frame_arch to get at the current
1244 architecture by frame_info.
1245 (mn10300_dump_tdep): Replace current_gdbarch by gdbarch.
1246 * rs6000-tdep.c (rs6000_register_name): Add gdbarch parameter. Replace
1247 current_gdbarch by gdbarch.
1248 * score-tdep.c (score_register_name): Add gdbarch parameter.
1249 (score_return_value, score_push_dummy_call): Replace current_gdbarch
1251 * sh64-tdep.c (sh64_register_name): Add gdbarch parameter.
1252 (sh64_compact_reg_base_num, sh64_register_convert_to_virtual)
1253 (sh64_register_convert_to_raw, sh64_fv_reg_base_num)
1254 (sh64_dr_reg_base_num, sh64_fpp_reg_base_num): Add gdbarch parameter
1255 and update caller. Replace current_gdbarch by gdbarch.
1256 (sh64_extract_return_value, sh64_store_return_value): Use
1257 get_regcache_arch to get at the current architecture by regcache.
1258 * sh-tdep.c (sh_sh_register_name, sh_sh3_register_name)
1259 (sh_sh3e_register_name, sh_sh2e_register_name, sh_sh2a_register_name)
1260 (sh_sh2a_nofpu_register_name, sh_sh_dsp_register_name)
1261 (sh_sh3_dsp_register_name, sh_sh4_register_name)
1262 (sh_sh4_nofpu_register_name, sh_sh4al_dsp_register_name): Add gdbarch
1264 (fv_reg_base_num, dr_reg_base_num, sh_justify_value_in_reg)
1265 (sh_next_flt_argreg): Add gdbarch parameter and update caller. Replace
1266 current_gdbarch by gdbarch.
1267 (sh_extract_return_value_fpu, sh_store_return_value_fpu): Use
1268 get_regcache_arch to get at the current architecture by regcache.
1269 * sparc-tdep.c (sparc32_register_name): Add gdbarch parameter.
1270 * sparc64-tdep.c (sparc64_register_name): Add gdbarch parameter.
1271 * v850-tdep.c (v850_register_name, v850e_register_name): Add gdbarch
1273 (v850_unwind_sp, v850_unwind_pc): Replace current_gdbarch by gdbarch.
1274 * xtensa-tdep.c (xtensa_register_name): Add gdbarch parameter. Replace
1275 current_gdbarch by gdbarch.
1276 (xtensa_pseudo_register_read, xtensa_pseudo_register_write)
1277 (xtensa_frame_prev_register): Add gdbarch parameter to
1278 xtensa_register_name call.
1280 2007-10-31 Ulrich Weigand <uweigand@de.ibm.com>
1282 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Fall back to
1283 find_solib_trampoline_target if PC is not in .plt section.
1285 2007-10-31 Ulrich Weigand <uweigand@de.ibm.com>
1287 * elfread.c (elf_symtab_read): When constructing a solib trampoline
1288 minimal symbol from an undefined dynamic symbol, use proper section.
1290 2007-10-31 Markus Deuling <deuling@de.ibm.com>
1292 * arm-linux-nat.c (fetch_register, fetch_regs): Use get_regcache_arch
1293 to get at the current architecture by regcache.
1295 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1297 * libunwind-frame.c (libunwind_frame_sniffer)
1298 libunwind_frame_prev_register, libunwind_sigtramp_frame_sniffer)
1299 (libunwind_frame_cache): Use get_frame_arch to get at the current
1300 architecture by frame_info.
1301 (libunwind_get_reg_special): Replace current_gdbarch by gdbarch.
1303 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1305 * iq2000-tdep.c (iq2000_frame_prev_register): Use get_frame_arch to get
1306 at the current architecture by frame_info.
1308 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1310 * inf-child.c (inf_child_fetch_inferior_registers): Use
1311 get_regcache_arch to get at the current architecture by regcache.
1313 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1315 * inf-ptrace.c (inf_ptrace_fetch_registers)
1316 (inf_ptrace_fetch_register, inf_ptrace_store_register)
1317 (inf_ptrace_store_registers): Use get_regcache_arch to get at the
1318 current architecture by regcache.
1320 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1322 * hpux-thread.c (hpux_thread_fetch_registers)
1323 (hpux_thread_store_registers): Use get_regcache_arch to get at the
1324 current architecture by regcache.
1326 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1328 * hppa-tdep.c (hppa_frame_cache): Use get_frame_arch to get at the
1329 current architecture by frame_info.
1331 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1333 * go32-nat.c (fetch_register, go32_fetch_registers, store_register)
1334 (go32_store_registers): Use get_regcache_arch to get at the current
1335 architecture by regcache.
1337 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1339 * gdbtypes.c (gdbtypes_post_init): Replace current_gdbarch by gdbarch.
1341 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1343 * frv-linux-tdep.c (frv_linux_sigtramp_frame_cache): Use get_frame_arch
1344 to get at the current architecture by frame_info.
1346 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1348 * f-lang.c (build_fortran_types): Replace current_gdbarch by gdbarch.
1350 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1352 * core-regset.c (fetch_core_registers): Use get_regcache_arch to get at
1353 the current architecture by regcache.
1355 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1357 * corelow.c (get_core_registers): Use get_regcache_arch to get at the
1358 current architecture by regcache.
1360 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1362 * bsd-uthread.c (bsd_uthread_fetch_registers)
1363 (bsd_uthread_store_registers): Use get_regcache_arch to get at the
1364 current architecture by regcache.
1366 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1368 * avr-tdep.c (avr_frame_unwind_cache, avr_frame_prev_register): Use
1369 get_frame_arch to get at the current architecture by frame_info.
1371 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1373 * arm-tdep.c (arm_get_next_pc): Replace current_gdbarch by gdbarch.
1375 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1377 * armnbsd-nat.c (arm_supply_gregset, fetch_register, store_register)
1378 (store_regs): Use get_regcache_arch to get at the current architecture
1381 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1383 * arm-linux-tdep.c (arm_linux_supply_gregset): Use get_regcache_arch
1384 to get at the current architecture by regcache.
1386 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1388 * alphabsd-nat.c (alphabsd_fetch_inferior_registers)
1389 (alphabsd_store_inferior_registers): Use get_regcache_arch to get at
1390 the current architecture by regcache.
1392 2007-10-30 Markus Deuling <deuling@de.ibm.com>
1394 * ada-lang.c (ada_language_arch_info): Replace current_gdbarch by
1397 2007-10-30 Daniel Jacobowitz <dan@codesourcery.com>
1399 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Check the selected
1400 soft float and vector ABIs. Support the generic vector ABI for
1402 (do_ppc_sysv_return_value): Likewise. Correct argument types and
1404 (ppc64_sysv_abi_push_dummy_call): Assert that floating point is
1406 * ppc-tdep.h (enum powerpc_vector_abi): New.
1407 (struct gdbarch_tdep): Add soft_float and vector_abi.
1408 * rs6000-tdep.c (setpowerpccmdlist, showpowerpccmdlist)
1409 (powerpc_soft_float_global, powerpc_vector_strings)
1410 (powerpc_vector_abi_global, powerpc_vector_abi_string): New.
1411 (rs6000_gdbarch_init): Check for soft-float and vector ABI markings.
1412 (set_powerpc_command, show_powerpc_command, powerpc_set_soft_float)
1413 (powerpc_set_vector_abi): New.
1414 (_initialize_rs6000_tdep): Register "set powerpc" and "show powerpc"
1416 * Makefile.in (elf_ppc_h): New.
1417 (rs6000-tdep.o): Update.
1419 2007-10-29 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
1421 * ppc-linux-tdep.c (ppc32_linux_reg_offsets): Corrected
1422 swapped offsets and VRSAVE offset.
1423 (ppc64_linux_reg_offsets): Corrected swapped offsets.
1424 (ppc32_linux_vrregset): Added.
1425 (ppc_linux_regset_from_core_section): Added support for
1426 .reg-ppc-vmx section.
1427 * ppc-tdep.h (ppc_altivec_support_p): Declare.
1428 (ppc_supply_vrregset): Declare.
1429 (ppc_collect_vrregset): Declare.
1430 * rs6000-tdep.c (ppc_altivec_support_p): Added.
1431 (ppc_supply_vrregset): Added.
1432 (ppc_collect_vrregset): Added.
1433 * corelow.c (get_core_registers): Added support for
1434 .reg-ppc-vmx section.
1436 2007-10-29 Joel Brobecker <brobecker@adacore.com>
1440 2007-10-26 Jim Blandy <jimb@codesourcery.com>
1442 * ax-gdb.h (expr_to_address_and_size): Delete declaration for
1445 * tracepoint.c (tracepoint_operation): Report the deletion event
1446 after we have unlinked the tracepoint from the list, and use the
1447 proper tracepoint number.
1449 * ax-gdb.c (expr_to_agent): Delete unused function.
1450 (expr_to_address_and_size): Delete #if 0'd function.
1451 * ax-gdb.h (expr_to_agent): Delete declaration.
1453 * ax-gdb.c (gen_cast): Remove redundant assignment to
1454 value->type. Doc fix.
1456 * ax-general.c (gen_traced_pop, gen_int_literal)
1457 (gen_usual_arithmetic): Check for typedefs.
1459 2007-10-26 Joel Brobecker <brobecker@adacore.com>
1461 * parse.c (prefixify_expression): Minor reformatting.
1463 2007-10-25 Daniel Jacobowitz <dan@codesourcery.com>
1465 * version.in: Use dot instead of dash.
1467 2007-10-25 Daniel Jacobowitz <dan@codesourcery.com>
1469 * linux-thread-db.c (check_for_thread_db): Only print if info_verbose.
1471 2007-10-25 Pedro Alves <pedro_alves@portugalmail.pt>
1473 * memory-map.c (parse_memory_map): Don't use an empty struct
1476 2007-10-25 Pedro Alves <pedro_alves@portugalmail.pt>
1478 * signals/signals.c (signals): Update pointer to enum
1479 target_signal declaration.
1481 2007-10-25 Wu Zhou <woodzltc@cn.ibm.com>
1482 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
1483 Jim Blandy <jimb@codesourcery.com>
1485 * dwarf2read.c (read_partial_die): check the value
1486 of DW_AT_calling_convention in Fortran programs.
1488 2007-10-25 Wu Zhou <woodzltc@cn.ibm.com>
1489 Thiago Jung Bauermann <bauerman@br.ibm.com>
1491 * c-exp.y (YYSTYPE): Add typed_val_decfloat for decimal
1492 floating point in YYSTYPE union.
1493 (DECFLOAT) Add token and expression element handling code.
1494 (parse_number): Parse DFP constants, which end with suffix 'df',
1495 'dd' or 'dl'. Return DECFLOAT.
1496 * eval.c (evaluate_subexp_standard): Call value_from_decfloat to
1498 * expression.h (enum exp_opcode): Add an opcode (OP_DECFLOAT)
1500 (union exp_element): Add decfloatconst to represent DFP
1501 elements, which is 16 bytes by default.
1502 * parse.c (write_exp_elt_decfloatcst): New function to write a
1503 decimal float const into the expression.
1504 (operator_length_standard): Set operator length for OP_DECFLOAT
1506 * parser-defs.h (write_exp_elt_decfloatcst): Prototype.
1507 * valarith.c (value_neg): Add code to handle the negation
1508 operation of DFP values.
1509 * value.c (value_from_decfloat): New function to get the value
1510 from a decimal floating point.
1511 * value.h (value_from_decfloat): Prototype.
1513 2007-10-25 Wu Zhou <woodzltc@cn.ibm.com>
1514 Thiago Jung Bauermann <bauerman@br.ibm.com>
1516 * c-lang.c (c_create_fundamental_type): Create fundamental
1518 * c-typeprint.c (c_type_print_varspec_prefix): Add
1519 TYPE_CODE_DECFLOAT to no prefix needed case.
1520 (c_type_print_varspec_suffix): Add TYPE_CODE_DECFLOAT to no
1522 * c-valprint.c (c_val_print): Call print_decimal_floating to
1524 * dwarf2read.c (read_base_type): Read DW_ATE_decimal_float
1525 attribute code and return TYPE_CODE_DECFLOAT.
1526 (dwarf_base_type): Set dwarf2_fundamental_type for DFP values.
1527 * gdbtypes.c (gdbtypes_post_init): Initialize builtin_decfloat,
1528 builtin_decdouble and builtin_declong.
1529 * gdbtypes.h (enum type_code): Add TYPE_CODE_DECFLOAT as a
1531 (FT_DECFLOAT, FT_DBL_PREC_DECFLOAT, FT_EXT_PREC_DECFLOAT): New
1532 types, for decimal floating point.
1533 (FT_NUM_MEMBERS): Increment, new types added.
1534 (struct builtin_type): Add builtin_decfloat, builtin_decdouble
1535 and builtin_declong.
1536 * valprint.c (print_decimal_floating): New function to print DFP
1538 * value.h (print_decimal_floating): Prototype.
1540 2007-10-25 Wu Zhou <woodzltc@cn.ibm.com>
1541 Thiago Jung Bauermann <bauerman@br.ibm.com>
1543 * Makefile.in (LIBDECNUMBER_DIR, LIBDECNUMBER, LIBDECNUMBER_SRC
1544 LIBDECNUMBER_CFLAGS): New macros for libdecnumber.
1545 (INTERNAL_CFLAGS_BASE): Add LIBDECNUMBER_CFLAGS in.
1546 (INSTALLED_LIBS): Add -ldecnumber in.
1547 (CLIBS): Add LIBDECNUMBER in.
1548 (decimal128_h, decimal64_h, decimal32_h): New macros for decimal
1550 (dfp_h): New macros for decimal floating point.
1551 (dfp.o): New target.
1552 (COMMON_OBS): Add dfp.o in.
1553 (c-exp.o): Add dfp_h as dependency.
1554 (valprint.o): Add dfp_h as dependency.
1555 (value.o): Add dfp_h as dependency.
1556 * dfp.h: New header file for decimal floating point support in
1558 * dfp.c: New source file for decimal floating point support in
1559 GDB. Implement decimal_from_string and decimal_to_string based
1560 on libdecnumber API.
1561 * configure.ac: Add AC_C_BIGENDIAN test.
1562 * config.in, configure: Regenerate.
1564 2007-10-25 David Ung <davidu@mips.com>
1565 Maciej W. Rozycki <macro@mips.com>
1568 * infcmd.c (registers_info): Check for a user register before
1569 calling target's gdbarch_print_registers_info(). If found to be
1570 so, extract the implicit value of user register and call
1571 print_scalar_formatted().
1572 * Makefile.in: (infcmd.o): Add $(user_regs_h).
1574 2007-10-25 Joel Brobecker <brobecker@adacore.com>
1576 * NEWS: Document status of hppa64-hpux support.
1578 2007-10-24 Ulrich Weigand <uweigand@de.ibm.com>
1580 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets): Call
1581 set_solib_ops to install SVR4 operations.
1582 (_initialize_svr4_solib): Do not set current_target_so_ops.
1584 * config/i386/i386gnu.mh (NATDEPFILES): Move solib.o, solib-svr4.o ...
1585 * config/i386/i386gnu.mt (TDEPFILES): ... to here.
1587 2007-10-24 Ulrich Weigand <uweigand@de.ibm.com>
1589 * solib-svr4.c (legacy_svr4_fetch_link_map_offsets_hook): Remove.
1590 (solib_svr4_init): Initialize fetch_link_map_offsets to NULL.
1591 * solib-svr4.h (legacy_svr4_fetch_link_map_offsets_hook): Remove.
1592 * solib-legacy.c: Remove file.
1594 * config/alpha/alpha-linux.mt (TDEPFILES): Remove solib-legacy.o.
1595 * config/arm/linux.mt (TDEPFILES): Likewise.
1596 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
1597 * config/ia64/linux.mt (TDEPFILES): Likewise.
1598 * config/m32r/linux.mt (TDEPFILES): Likewise.
1599 * config/powerpc/linux.mt (TDEPFILES): Likewise.
1600 * config/s390/s390.mt (TDEPFILES): Likewise.
1602 * alpha-linux-tdep.c (alpha_linux_init_abi): Call
1603 set_solib_svr4_fetch_link_map_offsets.
1604 * i386gnu-tdep.c (i386gnu_init_abi): Likewise.
1605 * ia64-linux-tdep.c (ia64_linux_init_abi): Likewise.
1607 * i386gnu-tdep.c: Include "solib-svr4.h".
1608 * Makefile.in: Update dependencies.
1610 2007-10-24 Ulrich Weigand <uweigand@de.ibm.com>
1612 * i386-nto-tdep.c: Include "solib.h".
1613 (i386nto_init_abi): Use set_solib_ops instead of overwriting
1614 current_target_so_ops members.
1615 * solist.h (TARGET_SO_RELOCATE_SECTION_ADDRESSES): Remove.
1616 (TARGET_SO_FIND_AND_OPEN_SOLIB): Remove.
1617 (TARGET_SO_IN_DYNSYM_RESOLVE_CODE): Remove.
1618 * Makefile.in: Update dependencies.
1620 2007-10-24 Ulrich Weigand <uweigand@de.ibm.com>
1622 * arm-wince-tdep.c: Include "solib.h" and "solib-target.h".
1623 (arm_wince_init_abi): Call set_solib_ops.
1624 * i386-cygwin-tdep.c: Include "solib.h" and "solib-target.h".
1625 (i386_cygwin_init_abi): Call set_solib_ops.
1626 * solib-target.c: Include "solib-target.h".
1627 (solib_target_so_ops): Make global.
1628 (_initialize_solib_target): Do not set current_target_so_ops.
1629 * solib-target.h: New file.
1630 * Makefile.in: Update dependencies.
1632 2007-10-24 Ulrich Weigand <uweigand@de.ibm.com>
1634 * mips-irix-tdep.c: Include "gdb_string.h", "solib.h", "solib-irix.h".
1635 (mips_irix_init_abi): Call set_solib_ops.
1636 * solib-irix.c: Include "solib.h" and "solib-irix.h".
1637 (irix_so_ops): Make global.
1638 (_initialize_irix_solib): Do not set current_target_so_ops.
1639 * solib-irix.h: New file.
1640 * Makefile.in: Update dependencies.
1642 2007-10-24 Ulrich Weigand <uweigand@de.ibm.com>
1644 * configure.tgt: Remove hppa*64*-*-hpux11* special case.
1645 * config/pa/hppa64.mt: Delete file.
1646 * config/pa/hppahpux.mt (MT_CFLAGS): Remove.
1647 (TDEPFILES): Move somread.o to ...
1648 * config/pa/hpux.mh (NATDEPFILES): ... here.
1650 * configure.ac: Add check for elf_hp.h header.
1651 Search libdl and libxpdl for dlgetmodinfo.
1652 * config.in, configure: Regenerate.
1653 * solib-pa64.c: Conditionalize compilation on #ifdef HAVE_ELF_HP_H
1654 instead of #ifndef PA_SOM_ONLY. Include "solib.h".
1655 (pa64_solib_select): Take gdbarch instead of tdep argument. Call
1656 set_solib_ops instead of modifying current_target_so_ops.
1657 * solib-pa64.h (pa64_solib_select): Update prototype.
1658 * solib-som.c: Remove include of "som.h". Include "solib.h".
1659 (som_solib_select): Take gdbarch instead of tdep argument. Call
1660 set_solib_ops instead of modifying current_target_so_ops.
1661 * solib-som.h (som_solib_select): Update prototype.
1662 * hppa-hpux-tdep.c (hppa_hpux_som_init_abi): Pass gdbarch instead
1663 of tdep to som_solib_select call.
1664 (hppa_hpux_elf_init_abi): Pass gdbarch instead of tdep to
1665 pa64_solib_select call.
1666 * Makefile.in: Update dependencies.
1668 2007-10-24 Ulrich Weigand <uweigand@de.ibm.com>
1670 * frv-tdep.c: Include "solib.h".
1671 (frv_gdbarch_init): Call set_solib_ops.
1672 * frv-tdep.h (struct target_so_ops): Add forward reference.
1673 (frv_so_ops): Add extern declaration.
1674 * solib-frv.c (frv_so_ops): Make global.
1675 (_initialize_frv_solib): Do not set current_target_so_ops.
1676 * Makefile.in: Update dependencies.
1678 2007-10-24 Ulrich Weigand <uweigand@de.ibm.com>
1680 * solib.c (solib_global_lookup): Use solib_ops instead of global
1681 current_target_so_ops.
1683 2007-10-24 Ulrich Weigand <uweigand@de.ibm.com>
1685 * config/frv/frv.mt (DEPRECATED_TM_FILE): Remove.
1686 * config/frv-tm-frv.h: Delete file.
1688 2007-10-24 Daniel Jacobowitz <dan@codesourcery.com>
1690 * NEWS: Mention gdbserver support for non-libthread_db operation.
1692 2007-10-24 Daniel Jacobowitz <dan@codesourcery.com>
1694 * amd64-tdep.c (amd64_convert_register_p): Delete.
1695 (amd64_init_abi): Use i387_convert_register_p.
1696 * alpha-tdep.c (alpha_convert_register_p): Return zero for
1698 (alpha_register_to_value, alpha_value_to_register): Do not handle
1700 * i386-tdep.c (i386_convert_register_p): Use i387_convert_register_p.
1701 * i387-tdep.c (i387_convert_register_p): New.
1702 (i387_register_to_value, i387_value_to_register): Update comments.
1703 * i387-tdep.h (i387_convert_register_p): Declare.
1704 * ia64-tdep.c (ia64_convert_register_p): Return zero for
1705 builtin_type_ia64_ext.
1706 (ia64_gdbarch_init): Do not initialize builtin_type_ia64_ext here.
1707 (_initialize_ia64_tdep): Initialize builtin_type_ia64_ext here.
1708 * m68k-tdep.c (m68k_convert_register_p): Return zero for
1709 builtin_type_m68881_ext.
1710 (m68k_register_to_value, m68k_value_to_register): Update comments.
1712 2007-10-24 Nathan Sidwell <nathan@codesourcery.com>
1714 * target-memory.c (claim_memory): Propagate baton for split memory
1717 2007-10-24 Pedro Alves <pedro_alves@portugalmail.pt>
1720 * sol-thread.c (sol_thread_fetch_registers): Work around gcc 3.4
1723 2007-10-24 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
1725 * symtab.c (find_line_symtab): scan through psymtabs
1726 when exact_match is zero.
1728 2007-10-23 Atsushi Nemoto <anemo@mba.ocn.ne.jp>
1730 * mips-tdep.c (LL_OPCODE, LLD_OPCODE, SC_OPCODE, SCD_OPCODE): Define.
1731 (deal_with_atomic_sequence): New.
1732 (mips_software_single_step): Use it.
1734 2007-10-23 Daniel Jacobowitz <dan@codesourcery.com>
1737 * configure.ac: Modify $LIBINTL before the BFD check.
1738 * configure: Regenerated.
1740 2007-10-23 Joel Brobecker <brobecker@adacore.com>
1742 * buildsym.c (free_pending_blocks): Remove commented-out code.
1743 (make_blockvector): Likewise. Re-use free_pending_blocks.
1744 (end_symtab): Remove commented-out code.
1746 2007-10-22 Daniel Jacobowitz <dan@codesourcery.com>
1748 * top.c (command_loop): Fix output for shrinkage.
1750 2007-10-22 Daniel Jacobowitz <dan@codesourcery.com>
1752 * cp-name-parser.y (exp1): Add & ( var ) as a reference expression.
1753 (exp): Remove and document function-like casts.
1755 2007-10-22 Daniel Jacobowitz <dan@codesourcery.com>
1757 * cp-support.c: Include "safe-ctype.h".
1758 (cp_already_canonical): New function.
1759 (cp_canonicalize_string): Use it. Return NULL for already canonical
1761 (mangled_name_to_comp): Update call to cp_demangled_name_to_comp.
1762 (cp_func_name, remove_params): Likewise.
1763 (cp_find_first_component_aux): Use ISSPACE.
1764 * cp-support.h (cp_demangled_name_to_comp): Correct comment. Remove
1766 * cp-name-parser.y (ALLOC_CHUNK): Define.
1767 (struct demangle_info): Add PREV and NEXT. Increase the size of
1769 (d_grab): Convert to a function.
1770 (allocate_info): Rewrite.
1771 (cp_demangled_name_to_comp): Remove MEMORY argument. Do not use
1772 strlen. Update call to allocate_info. Do not free it on failure.
1773 (main): Update calls to cp_demangled_name_to_comp.
1774 * Makefile.in (cp-support.o): Update.
1776 2007-10-22 Markus Deuling <deuling@de.ibm.com>
1778 * std-regs.c (value_of_builtin_frame_fp_reg)
1779 value_of_builtin_frame_pc_reg, value_of_builtin_frame_sp_reg)
1780 value_of_builtin_frame_ps_reg): Use get_frame_arch to get at the
1781 current architecture by frame_info.
1783 2007-10-22 Markus Deuling <deuling@de.ibm.com>
1785 * reggroups.c (default_register_reggroup_p): Replace current_gdbarch
1788 2007-10-22 Markus Deuling <deuling@de.ibm.com>
1790 * infcmd.c (default_print_registers_info, print_return_value)
1791 (print_vector_info, print_float_info): Replace current_gdbarch by
1793 (registers_info): Use get_frame_arch to get at the current
1794 architecture by frame_info.
1796 2007-10-22 Markus Deuling <deuling@de.ibm.com>
1798 * i387-tdep.c (i387_collect_fsave, i387_collect_fxsave): Use
1799 get_regcache_arch to get at the current architecture by regcache.
1801 2007-10-22 Markus Deuling <deuling@de.ibm.com>
1803 * target.c (debug_print_register): Use get_regcache_arch to get at the
1804 current architecture by regcache.
1806 2007-10-21 Daniel Jacobowitz <dan@codesourcery.com>
1808 * dwarf2read.c (read_file_scope): Add a comment.
1809 (dwarf2_add_field, dwarf2_add_member_fn, read_structure_type)
1810 (read_enumeration_type, process_enumeration_scope, read_array_type)
1811 (read_typedef, read_base_type, read_subrange_type)
1812 (read_unspecified_type): Use dwarf2_name.
1814 2007-10-21 Daniel Jacobowitz <dan@codesourcery.com>
1816 * coffread.c (coff_symfile_finish): Call dwarf2_free_objfile.
1817 * dwarf2read.c (dwarf2_free_objfile): New.
1818 * elfread.c (elf_symfile_finish): Call dwarf2_free_objfile.
1819 * symfile.h (dwarf2_free_objfile): Declare.
1821 2007-10-21 Joel Brobecker <brobecker@adacore.com>
1823 * hppa-hpux-nat.c (hppa_hpux_store_register): Add missing semi-colon.
1825 2007-10-21 Luis Machado <luisgpm@br.ibm.com>
1827 * rs6000-tdep.c (ppc_dwarf2_frame_init_reg): New function.
1828 * (rs6000_gdbarch_init): Install ppc_dwarf2_frame_init_reg as
1829 default dwarf2_frame_set_init_reg function.
1831 2007-10-21 Pedro Alves <pedro_alves@portugalmail.pt>
1833 * NEWS: Mention native MinGW configuration.
1835 2007-10-19 Ulrich Weigand <uweigand@de.ibm.com>
1837 * gdbarch.sh: Remove "macro" column of input table. Remove handling
1838 of "macro" column throughout the file. Remove (empty) "macro" entry
1839 of all gdbarch functions.
1841 2007-10-19 Ulrich Weigand <uweigand@de.ibm.com>
1843 * gdbarch.sh (sofun_address_maybe_missing): New gdbarch variable.
1844 * gdbarch.c, gdbarch.h: Regenerate.
1845 * dbxread.c (find_stab_function_addr): Define unconditionally.
1846 (read_dbx_symtab): Use gdbarch_sofun_address_maybe_missing
1847 instead of SOFUN_ADDRESS_MAYBE_MISSING.
1848 (end_psymtab): Likewise.
1849 (process_one_symbol): Likewise.
1850 * mdebugread.c (parse_partial_symbols): Likewise.
1852 * symtab.h (struct minimal_symbol): Always define "filename" member.
1853 * elfread.c (elf_symtab_read): Use msym->filename unconditionally.
1854 * minsyms.c (lookup_minimal_symbol): Likewise.
1855 * symmisc.c (dump_msymbols): Likewise.
1857 * config/i386/i386sol2.mt (DEPRECATED_TM_FILE): Remove.
1858 * config/i386/linux.mt (DEPRECATED_TM_FILE): Remove.
1859 * config/i386/tm-i386sol2.h: Remove file.
1860 * config/i386/tm-linux.h: Remove file.
1861 * i386-linux-tdep.c (i386_linux_init_abi): Add call to
1862 set_gdbarch_sofun_address_maybe_missing.
1863 * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
1865 * config/powerpc/linux.mt (DEPRECATED_TM_FILE): Remove.
1866 * config/powerpc/nbsd.mt (DEPRECATED_TM_FILE): Remove.
1867 * config/powerpc/obsd.mt (DEPRECATED_TM_FILE): Remove.
1868 * config/powerpc/ppc-eabi.mt (DEPRECATED_TM_FILE): Remove.
1869 * config/powerpc/ppc-sim.mt (DEPRECATED_TM_FILE): Remove.
1870 * config/powerpc/tm-ppc-eabi.h: Remove file.
1871 * rs6000-tdep.c (rs6000_gdbarch_init): Add call to
1872 set_gdbarch_sofun_address_maybe_missing.
1874 * config/sparc/sol2-64.mt (DEPRECATED_TM_FILE): Remove.
1875 * config/sparc/sol2.mt (DEPRECATED_TM_FILE): Remove.
1876 * config/sparc/tm-sol2.h: Remove file.
1877 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Add call to
1878 set_gdbarch_sofun_address_maybe_missing.
1879 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Likewise.
1881 2007-10-19 Ulrich Weigand <uweigand@de.ibm.com>
1883 * gdbarch.sh (static_transform_name): New gdbarch callback.
1884 * gdbarch.c, gdbarch.h: Regenerate.
1885 * dbxread.c (read_dbx_symtab): Use gdbarch_static_transform_name
1886 instead of STATIC_TRANSFORM_NAME.
1887 * mdebugread.c (parse_partial_symbols): Likewise.
1888 * stabsread.c (define_symbol): Likewise.
1889 * xcoffread.c (scan_xcoff_symtab): Likewise.
1891 * config/i368/tm-i386sol2.h (STATIC_TRANSFORM_NAME): Remove.
1892 (IS_STATIC_TRANSFORM_NAME): Remove.
1893 * i386-tdep.c (sunpro_static_transform_name): Remove, move to ...
1894 * i386-sol2-tdep.c (i386_sol2_static_transform_name): ... here.
1895 (i386_sol2_init_abi): Install it.
1897 * config/sparc/tm-sol2.h (STATIC_TRANSFORM_NAME): Remove.
1898 (IS_STATIC_TRANSFORM_NAME): Remove.
1899 * sparc-tdep.c (sparc_stabs_unglobalize_name): Remove, move to ...
1900 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): ... here.
1901 (sparc32_sol2_init_abi): Install it.
1902 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Likewise.
1903 * sparc-tdep.h (sparc_sol2_static_transform_name): Add prototype.
1905 2007-10-18 Daniel Jacobowitz <dan@codesourcery.com>
1907 * mips-tdep.c (mips_xfer_register): Take a gdbarch argument.
1908 (mips_n32n64_return_value, mips_o32_return_value)
1909 (mips_o64_return_value): Update calls to mips_xfer_register.
1911 2007-10-17 Daniel Jacobowitz <dan@codesourcery.com>
1913 * frame.c (frame_unwind_unsigned_register): Delete.
1914 (frame_sp_unwind): Use frame_unwind_register_unsigned instead.
1915 * frame.h (frame_unwind_unsigned_register): Delete prototype.
1917 * alpha-linux-tdep.c, alpha-mdebug-tdep.c, alpha-tdep.c,
1918 avr-tdep.c, cris-tdep.c, frv-tdep.c, m68hc11-tdep.c, mn10300-tdep.c,
1919 mt-tdep.c: Replace frame_unwind_unsigned_register with
1920 frame_unwind_register_unsigned.
1922 2007-10-16 Pedro Alves <pedro_alves@portugalmail.pt>
1924 * config/i386/mingw.mh, config/i386/mingw.mt: New files.
1925 * configure.tgt (i[34567]86-*-mingw32*): Set gdb_target = mingw.
1926 * win32-nat.c: Only include cygwin.h on Cygwin host. Don't
1928 (cygwin_load_start, cygwin_load_end, cygwin_exceptions): Disable
1929 if not building on Cygwin.
1930 (win32_make_so, handle_output_debug_string, handle_exception)
1931 (do_initial_win32_stuff): Wrap Cygwin specific code in __CYGWIN__.
1932 (win32_attach): Only fallback to Cygwin pids if building on
1934 (win32_pid_to_exec_file): Disable Cygwin specific code, if not
1936 (win32_create_inferior): Disable starting the inferior through a
1937 shell, environment var processing and tty handling if not building
1939 (cygwin_pid_to_str): Rename to ...
1940 (win32_pid_to_str): ... this.
1941 (init_win32_ops): Update use of win32_pid_to_str. Disable "shell"
1942 and "cygwin-exceptions" commands if not building on Cygwin.
1944 2007-10-16 Gaius Mulley <gaius@glam.ac.uk>
1946 * doc/gdb.texinfo: Add TSIZE definition, removed
1947 statement about unbounded arrays being unimplemented.
1948 * m2-valprint.c (m2_print_array_contents): New function.
1949 (m2_print_unbounded_array): New function.
1950 (m2_print_array_contents): New function.
1951 * m2-typeprint.c (m2_unbounded_array): New function.
1952 (m2_is_unbounded_array): New function.
1953 (m2_print_type): Test for unbounded array when walking
1955 * m2-lang.h: Added extern m2_is_unbounded_array.
1956 * m2-lang.c (evaluate_subexp_modula2): New function.
1957 (exp_descriptor_modula2): New structure.
1958 (m2_language_defn): Use exp_descriptor_modula2.
1959 * m2-exp.y: Added TSIZE and binary subscript.
1961 2007-10-16 Daniel Jacobowitz <dan@codesourcery.com>
1963 * mi/mi-main.c (captured_mi_execute_command): Clear mi_error_message
1966 2007-10-16 Kevin Buettner <kevinb@redhat.com>
1968 * m32r-tdep.c (decode_prologue): Sign extend offset for
1970 (m32r_frame_unwind_cache): Likewise.
1972 2007-10-15 Thiago Jung Bauermann <bauerman@br.ibm.com>
1974 * rs6000-tdep.c (skip_prologue): Restore comment with
1975 function description to its proper place.
1977 2007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
1979 * NEWS: Mention gdbserver PowerPC improvements.
1981 2007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
1983 * features/Makefile (WHICH): Add PowerPC register definitions.
1984 (rs6000/powerpc-32-expedite, rs6000/powerpc-e500-expedite)
1985 (rs6000/powerpc-64-expedite): New macros.
1986 ($(outdir)/%.dat): Handle subdirectories.
1987 * regformats/rs6000/powerpc-32.dat, regformats/rs6000/powerpc-64.dat,
1988 regformats/rs6000/powerpc-e500.dat: New generated files.
1990 2007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
1992 * ppc-linux-nat.c (ppc_linux_read_description): New.
1993 (_initialize_ppc_linux_nat): Set to_read_description.
1994 * ppc-tdep.h (tdesc_powerpc_e500): Declare.
1996 2007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
1998 * NEWS: Document target described register support for PowerPC.
1999 * ppc-tdep.h: Remove ppc_spr constants.
2000 (struct gdbarch_tdep): Remove regs, ppc_sr0_regnum, and
2001 ppc_builtin_type_vec128 members.
2002 (PPC_R0_REGNUM, PPC_F0_REGNUM, PPC_PC_REGNUM, PPC_MSR_REGNUM)
2003 (PPC_CR_REGNUM, PPC_LR_REGNUM, PPC_CTR_REGNUM, PPC_XER_REGNUM)
2004 (PPC_FPSCR_REGNUM, PPC_MQ_REGNUM, PPC_SPE_UPPER_GP0_REGNUM)
2005 (PPC_SPE_ACC_REGNUM, PPC_SPE_FSCR_REGNUM, PPC_VR0_REGNUM)
2006 (PPC_VSCR_REGNUM, PPC_VRSAVE_REGNUM, PPC_NUM_REGS): New constants.
2007 * rs6000-tdep.c: Include preparsed descriptions.
2008 (init_sim_regno_table): Do not iterate over pseudo registers.
2009 Look up segment registers by name. Use sim_spr_register_name
2011 (rs6000_register_sim_regno): Call init_sim_regno_table here.
2012 (rs6000_builtin_type_vec128): Delete.
2013 (rs6000_register_name): Only handle SPE pseudo registers and upper
2014 halves. Call tdesc_register_name for everything else.
2015 (rs6000_register_type): Delete. Replace with...
2016 (rs6000_pseudo_register_type): ...this new function. Only handle
2017 SPE pseudo registers.
2018 (rs6000_register_reggroup_p): Delete. Replace with...
2019 (rs6000_pseudo_register_reggroup_p): ...this new function. Only
2020 handle SPE pseudo registers.
2021 (rs6000_convert_register_p): Use ppc_fp0_regnum instead of
2023 (rs6000_register_to_value, rs6000_value_to_register): Remove check
2025 (e500_register_reggroup_p): Delete.
2026 (STR, R, R4, R8, R16, F, P8, R32, R64, R0, A4, S, S4, SN4, S64)
2027 (COMMON_UISA_REGS, PPC_UISA_SPRS, PPC_UISA_NOFP_SPRS)
2028 (PPC_SEGMENT_REGS, PPC_OEA_SPRS, PPC_ALTIVEC_REGS, PPC_SPE_GP_REGS)
2029 (PPC_SPE_UPPER_GP_REGS, PPC_EV_PSEUDO_REGS): Delete macros.
2030 (registers_powerpc, registers_403, registers_403GC, registers_505)
2031 (registers_860, registers_601, registers_602, registers_603)
2032 (registers_604, registers_750, registers_7400, registers_e500): Delete
2034 (struct variant): Delete nregs, npregs, num_tot_regs, and regs. Add
2036 (tot_num_registers, num_registers, num_pseudo_registers): Delete.
2037 (variants): Delete outdated comment. Use standard target descriptions
2038 instead of "struct reg" arrays.
2039 (init_variants): Delete.
2040 (rs6000_gdbarch_init): Do not guess word size from the BFD
2041 architecture if we have a target description. Select a variant
2042 before creating a new architecture. Use the variant's target
2043 description if the target did not define a register layout.
2044 Validate target-supplied registers. Reject mismatches. Use
2045 fixed register numbers and new constants instead of magic
2046 numbers. Call set_gdbarch_ps_regnum. Call tdesc_use_registers.
2047 (_initialize_rs6000_tdep): Initialize the preparsed target
2049 * target-descriptions.c (tdesc_predefined_types): Add int128 and
2051 (tdesc_find_register_early): New function.
2052 (tdesc_numbered_register): Use it.
2053 (tdesc_register_size): New function.
2054 (tdesc_use_registers): Take a target_desc argument. Do not use
2055 gdbarch_target_desc.
2056 * target-descriptions.h (tdesc_use_registers): Update prototype
2058 (tdesc_register_size): New prototype.
2059 * Makefile.in (powerpc_32_c, powerpc_403_c, powerpc_403gc_c)
2060 (powerpc_505_c, powerpc_601_c, powerpc_602_c, powerpc_603_c)
2061 (powerpc_604_c, powerpc_64_c, powerpc_7400_c, powerpc_750_c)
2062 (powerpc_860_c, powerpc_e500_c, rs6000_c): New macros.
2063 (rs6000-tdep.o): Update.
2064 * arm-tdep.c (arm_gdbarch_init): Update call to tdesc_use_registers.
2065 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
2066 * mips-tdep.c (mips_gdbarch_init): Likewise.
2068 2007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
2070 * features/rs6000/powerpc-32.c, features/rs6000/powerpc-403.c,
2071 features/rs6000/powerpc-403gc.c, features/rs6000/powerpc-505.c,
2072 features/rs6000/powerpc-601.c, features/rs6000/powerpc-602.c,
2073 features/rs6000/powerpc-603.c, features/rs6000/powerpc-604.c,
2074 features/rs6000/powerpc-64.c, features/rs6000/powerpc-7400.c,
2075 features/rs6000/powerpc-750.c, features/rs6000/powerpc-860.c,
2076 features/rs6000/powerpc-e500.c, features/rs6000/rs6000.c: New
2079 2007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
2081 * features/rs6000/power-altivec.xml, features/rs6000/power-core.xml,
2082 features/rs6000/power-fpu.xml, features/rs6000/power-oea.xml,
2083 features/rs6000/power-spe.xml, features/rs6000/power64-core.xml: New
2084 feature descriptions for standard PowerPC register sets.
2086 * features/rs6000/powerpc-32.xml, features/rs6000/powerpc-403.xml,
2087 features/rs6000/powerpc-403gc.xml, features/rs6000/powerpc-505.xml,
2088 features/rs6000/powerpc-601.xml, features/rs6000/powerpc-602.xml,
2089 features/rs6000/powerpc-603.xml, features/rs6000/powerpc-604.xml,
2090 features/rs6000/powerpc-64.xml, features/rs6000/powerpc-7400.xml,
2091 features/rs6000/powerpc-750.xml, features/rs6000/powerpc-860.xml,
2092 features/rs6000/powerpc-e500.xml, features/rs6000/rs6000.xml: New
2093 target descriptions for PowerPC processors.
2095 2007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
2097 * target-descriptions.c (tdesc_predefined_types): New.
2098 (tdesc_named_type): Use it.
2099 (tdesc_type_id, maint_print_c_tdesc_cmd): New functions.
2100 (_intialize_target_descriptions): Register "maint print c-tdesc".
2101 * features/Makefile (XMLTOC, CFILES, GDB): New macros.
2102 (cfiles, %.c): New rules.
2103 * features/arm-with-iwmmxt.c, features/mips-linux.c,
2104 features/mips64-linux.c: New generated files.
2106 * arm-linux-nat.c: Include preparsed description instead of
2108 (super_xfer_partial, arm_linux_xfer_partial): Remove.
2109 (arm_linux_read_description): New function.
2110 (_initialize_arm_linux_nat): Set to_read_description instead of
2111 to_xfer_partial. Initialize preparsed description.
2112 * config/arm/linux.mh (TDEP_XML): Delete.
2113 * mips-linux-nat.c: Include preparsed descriptions instead of
2115 (super_xfer_partial, mips_linux_xfer_partial): Remove.
2116 (mips_linux_read_description): New function.
2117 (_initialize_mips_linux_nat): Set to_read_description instead of
2118 to_xfer_partial. Initialize preparsed description.
2119 * config/mips/linux.mh (TDEP_XML): Delete.
2120 * Makefile.in (XMLFILES): Remove $(TDEP_XML).
2121 (features_headers, arm_with_iwmmxt_c, mips_linux_c)
2122 (mips64_linux_c): New macros.
2123 (arm-linux-nat.o, mips-linux-nat.o): Update.
2125 2007-10-15 Pierre Muller <muller@ics.u-strasbg.fr>
2127 * cp-abi.c (set_cp_abi_as_auto_default): ARI fix:
2128 Replace xasprintf by xstrprintf.
2129 symfile-mem.c (add_vsyscall_page): Ditto.
2131 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
2133 * ia64-linux-nat.c (ia64_register_addr): Add gdbarch parameter,
2134 replacing use of global current_gdbarch.
2135 (ia64_cannot_fetch_register, ia64_cannot_store_register): Likewise.
2136 (ia64_linux_fetch_register, ia64_linux_store_register): Update callers.
2138 * ia64-tdep.c (SIGCONTEXT_REGISTER_ADDRESS): Remove macro.
2139 (ia64_sigtramp_frame_init_saved_regs): Add next_frame parameter,
2140 replace uses of SIGCONTEXT_REGISTER_ADDRESS.
2141 (ia64_sigtramp_frame_cache): Update caller.
2143 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
2145 * gdbarch.sh (deprecated_use_struct_convention): Remove.
2146 (extract_return_value, store_return_value): Remove.
2147 (return_value): Remove default implementation.
2148 * gdbarch.c, gdbarch.h: Regenerate.
2150 * stack.c (return_command): Remove compatibility hack.
2151 * arch-utils.c (legacy_return_value): Remove.
2152 * arch-utils.h (legacy_return_value): Likewise.
2154 * arch-utils.c (always_use_struct_convention): Remove.
2155 * arch-utils.h (always_use_struct_convention): Likewise.
2156 * value.c (generic_use_struct_convention): Remove.
2157 * defs.h (generic_use_struct_convention): Likewise.
2159 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
2161 * avr-tdep.c (avr_return_value): New function.
2162 (avr_gdbarch_init): Call set_gdbarch_return_value instead of
2163 set_gdbarch_extract_return_value.
2165 * fvr-tdep.c (frv_return_value): New function.
2166 (frv_gdbarch_init): Call set_gdbarch_return_value instead of
2167 set_gdbarch_extract_return_value, set_gdbarch_store_return_value,
2168 and set_gdbarch_deprecated_use_struct_convention.
2170 * ia64-tdep.c (ia64_use_struct_convention): Make static.
2171 Add check for structure, union, or array types.
2172 (ia64_extract_return_value): Make static.
2173 (ia64_store_return_value): Make static. Support multi-word values.
2174 (ia64_return_value): New function.
2175 (ia64_gdbarch_init): Call set_gdbarch_return_value instead of
2176 set_gdbarch_extract_return_value, set_gdbarch_store_return_value,
2177 and set_gdbarch_deprecated_use_struct_convention.
2179 2007-10-12 Joel Brobecker <brobecker@adacore.com>
2181 * solib-target.c (solib_target_parse_libraries)
2182 [HAVEHAVE_LIBEXPAT not defined]: Fix thinko in return type.
2184 2007-10-12 Jim Blandy <jimb@codesourcery.com>
2186 * serial.h (struct serial_ops): Document read_prim to return zero
2188 * ser-base.c (do_ser_base_readchar): Return SERIAL_EOF when
2189 read_prim returns zero, not SERIAL_TIMEOUT.
2191 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
2193 * alpha-mdebug-tdep.c: Include "gdb_string.h".
2194 (find_proc_desc): Add fix-up code for setjmp procedure descriptor.
2195 * mdebugread.c (parse_procedure): Remove setjmp fix-up code.
2196 * Makefile.in (alpha-mdebug-tdep.o): Update dependencies.
2198 * config/alpha/alpha.mt (DEPRECATED_TM_FILE): Remove.
2199 * config/alpha/alpha-linux.mt (DEPRECATED_TM_FILE): Remove.
2200 * config/alpha/alpha-osf1.mt (DEPRECATED_TM_FILE): Remove.
2201 * config/alpha/fbsd.mt (DEPRECATED_TM_FILE): Remove.
2202 * config/alpha/tm-alpha.h: Remove file.
2204 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
2206 * breakpoint.c (breakpoint_sals_to_pc): Do not check for
2207 DEPRECATED_PC_REQUIRES_RUN_BEFORE_USE.
2209 * config/pa/tm-hppa.h: Delete file.
2210 * config/pa/hppa64.mt: Do not set DEPRECATED_TM_FILE.
2211 * config/pa/hppahpux.mt: Likewise.
2212 * config/pa/hppa.mt: Likewise.
2213 * config/pa/linux.mt: Likewise.
2214 * hppa-tdep.c (hppa_pc_requires_run_before_use): Delete.
2216 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
2218 * config/arm/nm-nbsdaout.h: Remove file.
2219 * config/nm-nbsdaout.h: Likewise.
2220 * config/nm-nbsd.h: Likewise.
2222 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
2224 * block.h (struct block): Remove "gcc_compile_flag" member.
2225 (BLOCK_GCC_COMPILED): Remove.
2226 * block.c (allocate_block): Do not clear BLOCK_GCC_COMPILED.
2227 * buildsym.c (finish_block): Do not set it.
2228 * symmisc.c (dump_symtab_1): Do not dump it.
2230 * value.h (using_struct_return): Remove "gcc_p" argument.
2231 * value.c (using_struct_return): Likewise.
2232 * eval.c (evaluate_subexp_standard): Adapt callers.
2233 * infcall.c (call_function_by_hand): Likewise.
2234 * stack.c (return_command): Likewise.
2235 * sparc-tdep.c (sparc32_push_dummy_code): Likewise.
2237 * gdbarch.sh (push_dummy_code): Remove "using_gcc" parameter.
2238 * gdbarch.c, gdbarch.h: Regenerate.
2239 * cris-tdep.c (cris_push_dummy_code): Adapt prototype.
2240 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Likewise.
2241 * sparc-tdep.c (sparc32_push_dummy_code): Likewise.
2242 * infcall.c (generic_push_dummy_code, push_dummy_code): Likewise.
2243 (push_dummy_code, call_function_by_hand): Adapt callers.
2245 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
2247 * infcmd.c (print_return_value): Remove STRUCT_RETURN argument.
2248 (finish_command_continuation, finish_command): Adapt callers.
2250 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
2252 * infcall.c (call_function_by_hand): Remove special handling
2253 for HP aCC compiled code.
2255 2007-10-12 Ulrich Weigand <uweigand@de.ibm.com>
2257 * cris-tdep.c (cris_push_dummy_call): Support arguments passed by
2258 reference. Fix endianness bugs.
2259 (cris_reg_struct_has_address): Remove.
2260 (cris_gdbarch_init): Remove set_gdbarch_deprecated_reg_struct_has_addr
2261 and set_gdbarch_deprecated_use_struct_convention calls.
2263 * gdbarch.sh (deprecated_reg_struct_has_addr): Remove.
2264 * gdbarch.c, gdbarch.h: Regenerate.
2265 * infcall.c (call_function_by_hand): Remove handling of
2266 deprecated_reg_struct_has_addr.
2268 2007-10-11 Daniel Jacobowitz <dan@codesourcery.com>
2269 Kazu Hirata <kazu@codesourcery.com>
2271 * breakpoint.c (do_enable_breakpoint): Delay enabling until after
2272 checking watchpoint resources.
2274 2007-10-11 Kazu Hirata <kazu@codesourcery.com>
2276 * memattr.c (inaccessible_by_default): Change the initial
2279 2007-10-11 Daniel Jacobowitz <dan@codesourcery.com>
2282 * coffread.c (read_one_sym): Check for read errors.
2284 2007-10-11 Ulrich Weigand <uweigand@de.ibm.com>
2286 * linux-nat.c (lin_lwp_attach_lwp): Use "Linux kernel 2.6.19"
2287 instead of "Linux 2.6.19" in comment.
2288 (linux_xfer_partial): Use "GNU/Linux target" instead of
2289 "Linux target" in comment.
2290 * m68klinux-tdep.c (m68k_linux_inferior_created): Likewise.
2291 (m68k_linux_get_sigtramp_info): Likewise.
2293 2007-10-11 Daniel Jacobowitz <dan@codesourcery.com>
2295 * MAINTAINERS (language support): List Joel and Paul as
2298 2007-10-11 Daniel Jacobowitz <dan@codesourcery.com>
2300 * dbxread.c (process_one_symbol): Remove VARIABLES_INSIDE_BLOCK
2302 * config/arm/embed.mt, config/arm/linux.mt, config/arm/wince.mt: Do
2303 not set DEPRECATED_TM_FILE.
2304 * config/arm/tm-arm.h: Delete file.
2306 2007-10-11 Luis Machado <luisgpm@br.ibm.com>
2308 * MAINTAINERS (Write After Approval): Add self.
2310 2007-10-11 Daniel Jacobowitz <dan@codesourcery.com>
2312 * buildsym.c (record_line): Remove empty lines followed by
2313 end-of-sequence markers.
2315 2007-10-11 Kazu Hirata <kazu@codesourcery.com>
2317 * configure.tgt: Recognize fido-*-elf.
2319 2007-10-10 Joel Brobecker <brobecker@adacore.com>
2323 2007-10-10 Markus Deuling <deuling@de.ibm.com>
2325 * stack.c (print_frame_args, frame_info, return_command): Use
2326 get_regcache_arch or get_frame_arch to get at the current architecture
2327 by regcache or by frame, respectively.
2329 2007-10-10 Markus Deuling <deuling@de.ibm.com>
2331 * rs6000-nat.c (fetch_register, store_register)
2332 (rs6000_fetch_inferior_registers, rs6000_store_inferior_registers): Use
2333 get_regcache_arch to get at the current architecture by regcache.
2335 * rs6000-tdep.c (rs6000_push_dummy_call, rs6000_return_value)
2336 (rs6000_register_reggroup_p, e500_move_ev_registe, rs6000_unwind_pc)
2337 (rs6000_unwind_dummy_id, rs6000_frame_cache, rs6000_dump_tdep): Replace
2338 current_gdbarch by gdbarch.
2339 (rs6000_skip_trampoline_code, rs6000_register_to_value)
2340 (rs6000_value_to_register): Use get_frame_arch to get at the current
2341 architecture by frame_info.
2343 2007-10-10 Markus Deuling <deuling@de.ibm.com>
2345 * sparc-tdep.c (sparc_supply_rwindow, sparc_collect_rwindow): Use
2346 get_regcache_arch to get at the current architecture by regcache.
2348 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
2349 (sparc64_supply_fpregset, sparc64_collect_fpregset): Use
2350 get_regcache_arch to get at the current architecture by regcache.
2352 * sparc64nbsd-nat. (sparc64nbsd_supply_gregset)
2353 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
2354 (sparc64nbsd_collect_fpregset): Use get_regcache_arch to get at the
2355 current architecture by regcache.
2357 2007-10-10 Markus Deuling <deuling@de.ibm.com>
2359 * remote-mips.c (mips_wait, mips_fetch_registers)
2360 (mips_store_registers): Use get_regcache_arch to get at the
2361 current architecture by regcache.
2363 * mipsnbsd-tdep.c (mipsnbsd_supply_reg, mipsnbsd_fill_reg)
2364 (mipsnbsd_supply_fpreg, mipsnbsd_fill_fpreg): Use get_regcache_arch to
2365 get at the current architecture by regcache.
2366 (mipsnbsd_sigtramp_offset): Use get_frame_arch to get at the current
2367 architecture by frame_info.
2369 * mipsnbsd-nat.c (mipsnbsd_fetch_inferior_registers)
2370 (mipsnbsd_store_inferior_registers): Use get_regcache_arch to get at
2371 the current architecture by regcache.
2373 * mips-linux-tdep.c (mips_linux_get_longjmp_target)
2374 (mips64_linux_get_longjmp_target, mips_linux_o32_sigframe_init)
2375 (mips_linux_n32n64_sigframe_init): Use get_frame_arch to get at the
2376 current architecture by frame_info.
2377 (supply_32bit_reg, mips_supply_gregset, mips_fill_gregset)
2378 (mips_supply_fpregset, mips_fill_fpregset, supply_64bit_reg)
2379 (mips64_supply_gregset, mips64_fill_gregset, mips64_supply_fpregset)
2380 (mips64_fill_fpregset, mips_linux_write_pc): Use get_regcache_arch to
2381 get at the current architecture by regcache.
2383 * mips-linux-nat.c (mips_linux_register_addr)
2384 (mips64_linux_register_addr): Replace current_gdbarch by gdbarch.
2385 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset)
2386 (mips64_linux_regsets_fetch_registers)
2387 (mips64_linux_regsets_store_registers): Use get_regcache_arch to get at
2388 the current architecture by regcache.
2390 * mips64obsd-tdep.c (mips64obsd_sigframe_init): Use get_frame_arch to
2391 get at the current architecture by frame_info.
2393 2007-10-10 Markus Deuling <deuling@de.ibm.com>
2395 * mips-tdep.c (mips_xfer_register): Use get_regcache_arch to get at the
2396 current architecture by regcache.
2397 (mips2_fp_compat, mips32_next_pc, mips16_scan_prologue)
2398 (mips_insn16_frame_cache, mips32_scan_prologue, mips_insn32_frame_cache)
2399 (mips_stub_frame_cache, mips_read_fp_register_single)
2400 (mips_read_fp_register_double, mips_print_fp_register)
2401 (mips_print_register, print_gp_register_row): Use get_frame_arch to get
2402 at the current architecture by frame_info.
2403 (mips_register_reggroup_p, mips_pseudo_register_read, mips_unwind_sp)
2404 (mips_pseudo_register_write, mips_register_type, mips_unwind_pc)
2405 (mips_unwind_dummy_id, mips_eabi_push_dummy_call)
2406 (mips_n32n64_push_dummy_call, mips_n32n64_return_value)
2407 (mips_o32_push_dummy_call, mips_o32_return_value)
2408 (mips_o64_push_dummy_call, mips_o64_return_value)
2409 (mips_print_registers_info, mips_dump_tdep): Replace current_gdbarch by
2412 2007-10-10 Markus Deuling <deuling@de.ibm.com>
2414 * xtensa-tdep.c (xtensa_register_type, xtensa_pseudo_register_read)
2415 (xtensa_pseudo_register_write, xtensa_register_reggroup_p)
2416 (xtensa_unwind_pc, xtensa_unwind_dummy_id, xtensa_push_dummy_call)
2417 (xtensa_dump_tdep): Replace current_gdbarch by gdbarch.
2418 (xtensa_register_write_masked, xtensa_register_read_masked)
2419 (xtensa_supply_gregset, xtensa_store_return_value)
2420 (xtensa_extract_return_value): Use get_regcache_arch to get at the
2421 current architecture by regcache.
2422 (xtensa_frame_cache, call0_frame_get_reg_at_entry, call0_frame_cache)
2423 (xtensa_frame_prev_register): Use get_frame_arch to get at the current
2424 architecture by frame_info.
2426 2007-10-10 Daniel Jacobowitz <dan@codesourcery.com>
2428 * arm-tdep.c (struct arm_prologue_cache): Remove frameoffset.
2429 (thumb_analyze_prologue): Move pv_area_store_would_trash call
2430 out of loop. Do not set cache->frameoffset.
2431 (arm_scan_prologue): Use prologue-value mechanism. Do not set
2432 frameoffset. Simplify framesize.
2433 (arm_make_prologue_cache, arm_normal_frame_base): Do not use
2435 * arm-tdep.h (enum gdb_regnum): Add ARM_IP_REGNUM.
2437 2007-10-10 Daniel Jacobowitz <dan@codesourcery.com>
2439 * target.c (update_current_target): Call setup_target_debug.
2440 (push_target): Do not call it here.
2442 2007-10-09 Michael Snyder <msnyder@specifix.com>
2444 * MAINTAINERS: Update my email address.
2446 2007-10-09 Markus Deuling <deuling@de.ibm.com>
2448 * xtensa-tdep.c: Replace following current-gdbarch based macros by
2450 (xtensa_pseudo_register_read)
2451 (xtensa_pseudo_register_write): XTENSA_TARGET_FLAGS.
2452 (ARG_NOF, ARG_1ST, xtensa_extract_return_value)
2453 (xtensa_store_return_value, xtensa_push_dummy_call): CALL_ABI.
2454 (xtensa_pseudo_register_read)
2455 (xtensa_pseudo_register_write): ISA_USE_WINDOWED_REGISTERS.
2456 (xtensa_breakpoint_from_pc): ISA_USE_DENSITY_INSTRUCTIONS.
2457 (xtensa_register_type, xtensa_supply_gregset, xtensa_frame_cache)
2458 (xtensa_frame_prev_register): NUM_AREGS.
2459 (xtensa_pseudo_register_read, xtensa_pseudo_register_write,
2460 (xtensa_supply_gregset, xtensa_frame_cache, xtensa_frame_prev_register,
2461 (xtensa_extract_return_value, xtensa_store_return_value): WB_REGNUM.
2462 (xtensa_supply_gregset, xtensa_frame_cache)
2463 (xtensa_frame_prev_register): WS_REGNUM.
2464 (xtensa_supply_gregset): LBEG_REGNUM, LEND_REGNUM, LCOUNT_REGNUM,
2465 SAR_REGNUM, EXCCAUSE_REGNUM, EXCVADDR_REGNUM
2466 (xtensa_register_name, xtensa_register_type, xtensa_reg_to_regnum)
2467 (xtensa_pseudo_register_read, xtensa_pseudo_register_write)
2468 (xtensa_register_reggroup_p): REGMAP.
2469 (call0_track_op): LITBASE_REGNUM.
2470 (xtensa_register_type, xtensa_reg_to_regnum, call0_frame_cache):A0_BASE
2471 (xtensa_supply_gregset, call0_frame_get_reg_at_entry)
2472 (xtensa_frame_prev_register, AREG_NUMBER)
2473 (xtensa_register_type): AR_BASE.
2474 (xtensa_pseudo_register_read, xtensa_pseudo_register_write): FP_ALIAS.
2475 (AREG_NUMBER): AREGS_MASK, WB_MASK, A0_REGNUM.
2476 (ARG_1ST, xtensa_pseudo_register_read, xtensa_pseudo_register_write)
2477 (xtensa_frame_cache, xtensa_frame_prev_register)
2478 (xtensa_extract_return_value, xtensa_store_return_value)
2479 (xtensa_push_dummy_call, call0_frame_cache): A0_REGNUM.
2480 (xtensa_register_type, xtensa_pseudo_register_read, xtensa_frame_cache)
2481 (xtensa_pseudo_register_write, xtensa_unwind_dummy_id)
2482 (xtensa_frame_prev_register, xtensa_push_dummy_call)
2483 (call0_frame_cache): A1_REGNUM.
2484 (xtensa_extract_return_value, xtensa_store_return_value): A2_REGNUM.
2485 (xtensa_push_dummy_call): A4_REGNUM.
2486 (ARGS_FIRST_REG): A6_REGNUM.
2487 (xtensa_pseudo_register_read, xtensa_pseudo_register_write)
2488 (xtensa_frame_prev_register): A15_REGNUM.
2489 * xtensa-tdep.h: Delete current_gdbarch based macros after replacing
2490 them in the appropriate source file:
2491 XTENSA_TARGET_FLAGS, SPILL_LOCATION, SPILL_SIZE, CALL_ABI, NUM_AREGS,
2492 ISA_USE_WINDOWED_REGISTERS, ISA_USE_DENSITY_INSTRUCTIONS, WB_REGNUM,
2493 ISA_USE_EXCEPTIONS, ISA_USE_EXT_L32R, DEBUG_DATA_VADDR_TRAP_COUNT,
2494 DEBUG_INST_VADDR_TRAP_COUNT, ISA_MAX_INSN_SIZE, DEBUG_NUM_IBREAKS,
2495 DEBUG_NUM_DBREAKS, WS_REGNUM, LBEG_REGNUM, LEND_REGNUM, SAR_REGNUM,
2496 REGMAP, LITBASE_REGNUM, DEBUGCAUSE_REGNUM, EXCCAUSE_REGNUM, AR_BASE,
2497 EXCVADDR_REGNUM, NUM_IBREAKS, REGMAP_BYTES, NUM_CONTEXTS, FP_ALIAS,
2498 FP_LAYOUT, FP_LAYOUT_BYTES, GREGMAP, AREGS_MASK, WB_MASK, A0_REGNUM,
2499 A1_REGNUM, A2_REGNUM, A3_REGNUM, A4_REGNUM, A5_REGNUM, A6_REGNUM,
2500 A7_REGNUM, A8_REGNUM, A9_REGNUM, A10_REGNUM, A11_REGNUM, A12_REGNUM,
2501 A13_REGNUM, A14_REGNUM, A15_REGNUM.
2503 2007-10-09 Markus Deuling <deuling@de.ibm.com>
2505 * h8300-tdep.c (h8300_frame_cache): Use get_frame_arch to get at
2506 the current architecture by frame_info.
2507 (h8300_frame_prev_register
2508 (h8300_print_register): Replace current_gdbarch by gdbarch.
2509 (h8300_print_registers_info, h8300_register_type)
2510 (h8300_register_type): Likewise.
2512 2007-10-09 Markus Deuling <deuling@de.ibm.com>
2514 * i386-linux-nat.c (fetch_register): Use get_regcache_arch to get at
2515 the current architecture by regcache.
2516 (store_register, supply_gregset, fill_gregset, i386_linux_resume)
2517 (i386_linux_fetch_inferior_registers)
2518 (i386_linux_store_inferior_registers): Likewise.
2519 * i386gnu-nat.c (gnu_fetch_registers, gnu_store_registers): Likewise.
2520 * i386-nto-tdep.c (i386nto_supply_gregset): Likewise.
2521 * i386v4-nat.c (supply_fpregset, fill_fpregset): Likewise.
2522 * i386-tdep.c (i386_unwind_pc): Replace current_gdbarch by gdbarch.
2523 (i386_extract_return_value, i386_store_return_value): Likewise.
2524 * i386-tdep.c (i386_frame_prev_register): Use get_frame_arch to get at
2525 the current architecture by frame_info.
2526 (i386_sigtramp_frame_cache, i386_get_longjmp_target)
2527 (i386_register_to_value, i386_value_to_register): Likewise.
2529 2007-10-09 Markus Deuling <deuling@de.ibm.com>
2531 * monitor.c (monitor_supply_register): Use get_regcache_arch to get at
2532 the current architecture by regcache.
2533 (monitor_store_register, monitor_store_registers): Likewise.
2535 2007-10-09 Markus Deuling <deuling@de.ibm.com>
2537 * dbug-rom.c (dbug_supply_register): Use get_regcache_arch to get at
2538 the current architecture by regcache.
2540 2007-10-09 Markus Deuling <deuling@de.ibm.com>
2542 * arch-utils.c (legacy_return_value): Replace current_gdbarch by
2545 2007-10-09 Markus Deuling <deuling@de.ibm.com>
2547 * frame.c (frame_pc_unwind): Use get_frame_arch to get at the current
2548 architecture by frame.
2549 (frame_save_as_regcache, frame_register_unwind, get_prev_frame_1)
2550 (inside_main_func, frame_sp_unwind): Likewise.
2552 2007-10-09 Daniel Jacobowitz <dan@codesourcery.com>
2554 * solib-svr4.c (enable_break): Add the dynamic linker also if
2557 2007-10-09 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
2559 * MAINTAINERS (Write After Approval): Add self.
2561 2007-10-09 Pedro Alves <pedro_alves@portugalmail.pt>
2563 * stabsread.c (read_huge_number): Initialize local variable to 0.
2565 2007-10-09 Pierre Muller <muller@ics.u-strasbg.fr>
2567 * p-lang.h (pascal_main_name): Add declaration.
2568 * p-lang.c (GPC_P_INITIALIZE, GPC_MAIN_PROGRAM_NAME_1)
2569 (GPC_MAIN_PROGRAM_NAME_2): New constants.
2570 (pascal_main_name): New function.
2571 * symtab.c: Include p-lang.h.
2572 (find_main_name): Add call to pascal_main_name.
2573 * Makefile.in (symtab.o): Add dependency on p-lang.h.
2575 2007-10-09 Pedro Alves <pedro_alves@portugalmail.pt>
2577 * stabsread.c (read_huge_number): Fix handling of octal
2578 representation when the bit width is known.
2579 (read_range_type): Record unsigned integral types with their size,
2580 when the type size is known.
2582 2007-10-08 Thiago Jung Bauermann <bauerman@br.ibm.com>
2584 * MAINTAINERS (Write After Approval): Add self.
2586 2007-10-08 Pierre Muller <muller@ics.u-strasbg.fr>
2588 * breakpoint.c (print_one_breakpoint_location): ARI fix:
2589 Replace asprintf by xstrprintf.
2591 2007-10-08 Pierre Muller <muller@ics.u-strasbg.fr>
2593 * linux-fork.c: ARI fix: include "gdb_dirent.h" instead of <dirent.h>.
2594 Makefile.in (linux-fork.o): Add gdb_dirent.h dependency.
2596 2007-10-08 Pierre Muller <muller@ics.u-strasbg.fr>
2598 * linux-fork.c: Move "gdb_wait.h" include back to the position of
2599 <sys/wait.h> include before last commit.
2601 2007-10-08 Maciej W. Rozycki <macro@mips.com>
2603 * mips-tdep.c (mips32_next_pc): Fix a typo in BGTZL.
2605 2007-10-08 Markus Deuling <deuling@de.ibm.com>
2607 * aix-thread.c (supply_gprs64, supply_fprs, supply_sprs64)
2608 (supply_sprs32, fetch_regs_user_thread, fetch_regs_kernel_thread)
2609 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs64, fill_sprs32)
2610 (store_regs_user_thread, store_regs_kernel_thread): Use
2611 get_regcache_arch or get_frame_arch to get at the current architecture
2612 by regcache or by frame, respectively.
2614 2007-10-08 Markus Deuling <deuling@de.ibm.com>
2616 * sh64-tdep.c (sh64_push_dummy_call, sh64_register_type)
2617 (sh64_pseudo_register_read, sh64_pseudo_register_write)
2618 (sh64_do_fp_register, sh64_do_pseudo_register, sh64_do_register)
2619 (sh64_print_register, sh64_media_print_registers_info)
2620 (sh64_compact_print_registers_info, sh64_unwind_sp)
2621 (sh64_unwind_pc): Replace current_gdbarch by gdbarch.
2622 (sh64_show_media_regs, sh64_show_compact_regs, sh64_frame_cache)
2623 (sh64_frame_prev_register): Use FRAME to recognize current
2626 2007-10-08 Markus Deuling <deuling@de.ibm.com>
2628 * sh-tdep.c (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu)
2629 (sh_sh2a_register_type, sh_sh3e_register_type, sh_sh4_register_type)
2630 (sh_register_reggroup_p, sh_dwarf2_frame_init_reg): Replace
2631 current_gdbarch by gdbarch.
2632 (sh_generic_show_regs, sh3_show_reg, sh2e_show_regs, sh2a_show_regs)
2633 (sh2a_nofpu_show_regs, sh3e_show_regs, sh3_dsp_show_regs)
2634 (sh4_show_regs, sh4_nofpu_show_regs, sh_dsp_show_regs, sh_frame_cache)
2635 (sh_frame_prev_register, sh_unwind_sp, sh_unwind_pc): Use FRAME to
2636 recognize current architecture.
2638 2007-10-08 Markus Deuling <deuling@de.ibm.com>
2640 * remote.c (init_remote_state, fetch_register_using_p)
2641 (process_g_packet, remote_fetch_registers, remote_prepare_to_store)
2642 (store_register_using_P, store_registers_using_G)
2643 (remote_store_registers): Use get_regcache_arch or get_frame_arch to
2644 get at the current architecture by regcache or by frame, respectively.
2646 2007-10-08 Markus Deuling <deuling@de.ibm.com>
2648 * m68k-tdep.c (m68k_register_to_value, m68k_value_to_register)
2649 (m68k_svr4_extract_return_value, m68k_svr4_store_return_value)
2650 (m68k_frame_prev_register, m68k_get_longjmp_target): Use
2651 get_regcache_arch or get_frame_arch to get at the current architecture
2652 by regcache or by frame, respectively.
2653 * m68klinux-tdep.c (m68k_linux_sigtramp_frame_cache): Likewise.
2654 * m68klinux-nat.c (fetch_register, old_fetch_inferior_registers)
2655 (store_register, old_store_inferior_registers, supply_gregset)
2656 (supply_fpregset, fill_fpregset): Likewise.
2657 * m68k-tdep.c (m68k_register_type, m68k_unwind_pc, m68k_dump_tdep):
2658 Replace current_gdbarch by gdbarch.
2660 2007-10-08 Markus Deuling <deuling@de.ibm.com>
2662 * irix5-nat.c (supply_gregset, fill_gregset, supply_fpregset)
2663 (fill_fpregset, fetch_core_registers): Use get_regcache_arch or
2664 get_frame_arch to get at the current architecture by regcache or by
2665 frame, respectively.
2667 2007-10-08 Markus Deuling <deuling@de.ibm.com>
2669 * ia64-tdep.c (ia64_pseudo_register_read, ia64_pseudo_register_write):
2670 Replace current_gdbarch by gdbarch.
2671 * ia64-tdep.c (ia64_frame_prev_register
2672 (ia64_sigtramp_frame_prev_register)
2673 (ia64_libunwind_frame_prev_register): Use get_regcache_arch or
2674 get_frame_arch to get at the current architecture by regcache or by
2675 frame, respectively.
2676 * ia64-linux-nat.c (ia64_linux_fetch_register)
2677 (ia64_linux_fetch_registers, ia64_linux_store_register)
2678 (ia64_linux_store_registers): Likewise.
2680 2007-10-08 Markus Deuling <deuling@de.ibm.com>
2682 * hppa-tdep.c (hppa_stub_unwind_sniffer, hppa_dump_tdep): Replace
2683 current_gdbarch by gdbarch.
2684 * hppa-linux-nat.c (fetch_register, store_register)
2685 (hppa_linux_fetch_inferior_registers)
2686 (hppa_linux_store_inferior_registers): Use get_regcache_arch or
2687 get_frame_arch to get at the current architecture by regcache or by
2688 frame, respectively.
2689 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code
2690 (hppa_hpux_unwind_adjust_stub): Likewise.
2691 * hppa-hpux-nat.c (hppa_hpux_fetch_register, hppa_hpux_store_register)
2692 (hppa_hpux_fetch_inferior_registers)
2693 (hppa_hpux_store_inferior_registers): Likewise.
2695 2007-10-08 Markus Deuling <deuling@de.ibm.com>
2697 * cris-tdep.c (cris_sigcontext_addr, cris_sigtramp_frame_unwind_cache)
2698 (cris_scan_prologue, crisv32_scan_prologue, find_step_target)
2699 (cris_software_single_step, cris_supply_gregset): Use get_regcache_arch
2700 or get_frame_arch to get at the current architecture by regcache or by
2701 frame, respectively.
2702 * cris-tdep.c (crisv32_single_step_through_delay, cris_push_dummy_call)
2703 (cris_unwind_pc, cris_unwind_sp, cris_register_type, cris_dump_tdep)
2704 (crisv32_register_type, cris_dwarf2_frame_init_reg): Replace
2705 current_gdbarch by gdbarch.
2707 2007-10-08 Markus Deuling <deuling@de.ibm.com>
2709 * arm-tdep.c (arm_scan_prologue, arm_make_prologue_cache)
2710 (thumb_get_next_pc, arm_get_next_pc, arm_extract_return_value)
2711 (arm_store_return_value): Use get_regcache_arch or get_frame_arch to
2712 get at the current architecture by regcache or by·frame, respectively.
2713 (arm_push_dummy_call, arm_dump_tdep): Replace current_gdbarch by
2716 2007-10-08 Markus Deuling <deuling@de.ibm.com>
2718 * amd64-tdep.c (amd64_frame_prev_register, amd64_sigtramp_frame_cache):
2719 Use get_regcache_arch or get_frame_arch to get at the current
2720 architecture by regcache or by frame, respectively.
2721 * amd64-linux-tdep.c (amd64_linux_sigcontext_addr): Likewise.
2722 * amd64-nat.c (amd64_supply_native_gregset)
2723 (amd64_collect_native_gregset): Replace current_gdbarch by gdbarch.
2725 2007-10-08 Markus Deuling <deuling@de.ibm.com>
2727 * alpha-tdep.c (alpha_register_reggroup_p): Replace current_gdbarch by
2729 * alpha-linux-nat.c (alpha_linux_register_u_offset): Likewise.
2730 (alpha_sigtramp_frame_unwind_cache, alpha_sigtramp_frame_this_id)
2731 (alpha_sigtramp_frame_sniffer, alpha_next_pc): Use get_regcache_arch or
2732 get_frame_arch to get at the current architecture by regcache or by
2733 frame, respectively.
2734 * alpha-nat.c (fetch_osf_core_registers): Likewise.
2736 2007-10-08 Markus Deuling <deuling@de.ibm.com>
2738 * dwarf2-frame.c (read_reg, execute_cfa_program, dwarf2_frame_cache)
2739 (dwarf2_frame_default_init_reg, dwarf2_frame_prev_register): Replace
2740 current_gdbarch by gdbarch.
2741 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Likewise.
2743 2007-10-08 Markus Deuling <deuling@de.ibm.com>
2745 * regcache.c (init_regcache_descr, register_type, read_pc_pid)
2746 (write_pc_pid, regcache_dump): Replace current_gdbarch by gdbarch.
2747 * regcache.c (regcache_raw_write): Use get_regcache_arch or
2748 get_frame_arch to get at the current architecture by regcache or by
2749 frame, respectively.
2751 2007-10-08 Markus Deuling <deuling@de.ibm.com>
2753 * findvar.c (value_of_register, locate_var_value): Use
2754 get_regcache_arch or get_frame_arch to get at the current architecture
2755 by regcache or by frame, respectively.
2756 * findvar.c (default_value_from_register, value_from_register): Replace
2757 current_gdbarch by gdbarch.
2759 2007-10-08 Pierre Muller <muller@ics.u-strasbg.fr>
2761 * config/i386/nm-i386.h (CHILD_POST_STARTUP_INFERIOR): ARI fix: Remove.
2763 2007-10-08 Pierre Muller <muller@ics.u-strasbg.fr>
2765 * linux-fork.c: ARI fix: include "gdb_wait.h" instead of <sys/wait.h>.
2766 Makefile.in (linux-fork.o): Add gdb_wait.h dependency.
2768 2007-10-05 Daniel Jacobowitz <dan@codesourcery.com>
2770 * remote.c (get_offsets): Only call free_symfile_segment_data if
2773 2007-10-03 Pierre Muller <muller@ics.u-strasbg.fr>
2775 * objc-exp.y: ARI fix: remove 4 PARAMS.
2777 2007-10-03 Daniel Jacobowitz <dan@codesourcery.com>
2779 * NEWS: Use uniform spacing. Correct version number for GDB 6.7
2780 news. Mention XML support for M68K in GDB 6.7.
2782 2007-10-03 Daniel Jacobowitz <dan@codesourcery.com>
2784 * gdbtypes.c (create_range_type): Do not set TYPE_FIELD_TYPE for the
2786 (init_vector_type): Use builtin_type_int32.
2788 2007-10-02 Ulrich Weigand <uweigand@de.ibm.com>
2790 * s390-tdep.c (s390_regset_from_core_section): Allow excess section
2791 size to enable bi-arch generate-core-file support.
2793 2007-10-02 Markus Deuling <deuling@de.ibm.com>
2795 * spu-tdep.c (info_spu_signal_command): Fix output for SPU signal.
2797 2007-10-02 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
2799 * tui/tui-interp.c (tui_init): Initialize tui's SIGWINCH
2801 * tui/tui-win.c (tui_initialize_win): New function for
2802 initializing tui's SIGWINCH signal handler.
2803 * tui/tui-win.h (tui_initialize_win): Declare.
2805 2007-10-02 Ulrich Weigand <uweigand@de.ibm.com>
2807 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Cast
2808 pointer to uintptr_t before casting to CORE_ADDR.
2810 2007-10-02 Markus Deuling <deuling@de.ibm.com>
2812 * linux-nat.c (PTRACE_GETSIGINFO): Add define.
2814 2007-10-02 Mark Mitchell <mark@codesourcery.com>
2816 * mingw-hdep.c (gdb_select): Stop helper threads before returning.
2817 * ser-mingw.c (enum select_thread_state): New type.
2818 (struct ser_console_state): Add have_started and thread_state.
2819 (select_thread_wait): New function.
2820 (thread_fn_type): New type.
2821 (create_select_thread): New function.
2822 (destroy_select_thread): Likewise.
2823 (start_select_thread): Likewise.
2824 (stop_select_thread): Likewise.
2825 (console_select_thread): Use new functions.
2826 (pipe_select_thread): Likewise.
2827 (file_select_thread): Likewise.
2828 (ser_console_wait_handle): Likewise.
2829 (ser_console_done_wait_handle): Likewise.
2830 (ser_console_close): Likewise.
2831 (free_pipe_state): Likewise.
2832 (pipe_wait_handle): Likewise.
2833 (pipe_done_wait_handle): Likewise.
2834 (struct net_windows_state): Derive from ser_console_state.
2835 (net_windows_select_thread): Use new functions.
2836 (net_windows_wait_handle): Likewise.
2837 (net_windows_done_wait_handle): Likewise.
2838 (net_windows_close): Likewise.
2840 2007-10-02 Daniel Jacobowitz <dan@codesourcery.com>
2842 * inflow.c (terminal_ours_1): Remove useless line.
2844 2007-10-02 Daniel Jacobowitz <dan@codesourcery.com>
2846 * mips-tdep.c (mips_read_fp_register_double): Correct check for
2848 (mips_print_fp_register): Correct check for even FP registers.
2849 (mips_virtual_frame_pointer): New function.
2850 (mips_gdbarch_init): Call set_gdbarch_virtual_frame_pointer.
2852 2007-09-30 Mike Frysinger <vapier@gentoo.org>
2854 * value.h (lookup_only_internalvar): New prototype.
2855 (create_internalvar): Likewise.
2856 * value.c (lookup_only_internalvar): New function.
2857 (create_internalvar): Likewise.
2858 (lookup_internalvar): Use new lookup_only_internalvar and
2859 create_internalvar functions.
2860 * parse.c (write_dollar_variable): Look up $ symbols in internal
2861 table first rather than last.
2863 2007-09-30 Daniel Jacobowitz <dan@codesourcery.com>
2865 * linux-nat.c (linux_nat_new_thread): New variable.
2866 (linux_child_follow_fork): Set inferior_ptid to include LWP ID. Use
2867 linux_nat_switch_fork.
2868 (lwp_list): Make public.
2869 (add_lwp): Call linux_nat_new_thread.
2870 (lin_lwp_attach_lwp, linux_nat_attach): Call add_lwp after stopping
2872 (resume_callback): Clear lp->siginfo. Remove unused variable.
2873 (linux_nat_resume): Assert that the LWP list is already initialized.
2875 (save_siginfo): New.
2876 (stop_wait_callback, linux_nat_wait): Call it.
2877 (linux_nat_set_new_thread, linux_nat_get_siginfo): New.
2878 * linux-nat.h (struct lwp_info): Add siginfo.
2879 (lwp_list, linux_nat_set_new_thread, linux_nat_get_siginfo): Declare.
2882 * amd64-linux-nat.c (amd64_linux_dr): New.
2883 (amd64_linux_dr_get): Take a PTID argument. Correct typo.
2884 (amd64_linux_dr_set): Take a PTID argument.
2885 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use ALL_LWPS.
2886 (amd64_linux_dr_reset_addr): Use amd64_linux_dr_set_addr.
2887 (amd64_linux_dr_get_status): Pass inferior_ptid to amd64_linux_dr_get.
2888 (amd64_linux_new_thread): New.
2889 (_initialize_amd64_linux_nat): Call linux_nat_set_new_thread.
2890 * i386-linux-nat.c (i386_linux_dr): New.
2891 (i386_linux_dr_get, i386_linux_dr_set): Take a PTID argument.
2892 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use ALL_LWPS.
2893 (i386_linux_dr_reset_addr): Use i386_linux_dr_set_addr.
2894 (i386_linux_dr_get_status): Pass inferior_ptid to i386_linux_dr_get.
2895 (i386_linux_new_thread): New.
2896 (i386_linux_resume): Remove unnecessary PID check.
2897 (_initialize_i386_linux_nat): Call linux_nat_set_new_thread.
2898 * ia64-linux-nat.c (enable_watchpoints_in_psr): Take PTID argument.
2899 (fetch_debug_register, fetch_debug_register_pair): Delete.
2900 (debug_registers): New.
2901 (ia64_linux_insert_watchpoint, ia64_linux_remove_watchpoint): Use
2902 ALL_LWPS and debug_registers.
2903 (ia64_linux_new_thread): New.
2904 (ia64_linux_stopped_data_address): Use linux_nat_get_siginfo.
2905 (_initialize_ia64_linux_nat): Call linux_nat_set_new_thread.
2906 * ppc-linux-nat.c (last_stopped_data_address): Delete.
2907 (saved_dabr_value): New.
2908 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint): Use
2910 (ppc_linux_new_thread): New.
2911 (ppc_linux_stopped_data_address): Use linux_nat_get_siginfo.
2912 (ppc_linux_stopped_by_watchpoint): Call ppc_linux_stopped_data_address.
2913 (_initialize_ppc_linux_nat): Call linux_nat_set_new_thread.
2914 * s390-nat.c (s390_stopped_by_watchpoint): Clear the watchpoint status
2916 (s390_fix_watch_points): Take a PTID argument.
2917 (s390_insert_watchpoint, s390_remove_watchpoint): Use ALL_LWPS.
2918 (_initialize_s390_nat): Call linux_nat_set_new_thread.
2920 2007-09-30 Daniel Jacobowitz <dan@codesourcery.com>
2921 Jeff Johnston <jjohnstn@redhat.com>
2923 * breakpoint.c (watchpoints_triggered): New.
2924 (bpstat_stop_status): Remove STOPPED_BY_WATCHPOINT argument.
2925 Check watchpoint_triggered instead. Combine handling for software
2926 and hardware watchpoints. Do not use target_stopped_data_address
2927 here. Always check a watchpoint if its scope breakpoint triggers.
2928 Do not stop for thread or overlay events. Improve check for
2929 triggered watchpoints without a value change.
2930 (watch_command_1): Insert the scope breakpoint first. Link the
2931 scope breakpoint to the watchpoint.
2932 * breakpoint.h (enum watchpoint_triggered): New.
2933 (struct breakpoint): Add watchpoint_triggered.
2934 (bpstat_stop_status): Update prototype.
2935 (watchpoints_triggered): Declare.
2936 * infrun.c (enum infwait_status): Add infwait_step_watch_state.
2937 (stepped_after_stopped_by_watchpoint): Delete.
2938 (handle_inferior_event): Make stepped_after_stopped_by_watchpoint
2939 local. Handle infwait_step_watch_state. Update calls to
2940 bpstat_stop_status. Use watchpoints_triggered to check
2942 * remote.c (stepped_after_stopped_by_watchpoint): Remove extern.
2943 (remote_stopped_data_address): Do not check it.
2945 2007-09-29 Daniel Jacobowitz <dan@codesourcery.com>
2947 * configure.ac: Add $LIBINTL when testing libbfd.
2948 * configure: Regenerated.
2950 2007-09-28 Vladimir Prus <vladimir@codesourcery.com>
2952 * NEW: Mention pending breakpoint changes and
2953 support for breakpoints at multiple locations.
2955 2007-09-27 Daniel Jacobowitz <dan@codesourcery.com>
2957 * arm-linux-tdep.c (arm_linux_software_single_step): New.
2958 (arm_linux_init_abi): Use it.
2959 * arm-tdep.c (arm_get_next_pc): Make global. Handle all-ones
2960 condition correctly.
2961 * arm-tdep.h (arm_get_next_pc): Declare.
2962 * Makefile.in (arm-linux-tdep.o): Update.
2964 2007-09-26 Vladimir Prus <vladimir@codesourcery.com>
2966 * varobj.c (install_new_value): Don't
2967 call value_get_print_value when a value is
2968 lazy. Update the print_value member in a
2971 2007-09-26 Vladimir Prus <vladimir@codesourcery.com>
2973 * breakpoint.c (create_breakpoint): Set
2974 condition on each location, not on the first
2975 location of breakpoint.
2977 2007-09-26 Jim Blandy <jimb@codesourcery.com>
2979 * remote.c (getpkt_sane): Fix error message. No animals were
2980 harmed in the making of this debugger.
2982 2007-09-26 Pierre Muller <muller@ics.u-strasbg.fr>
2984 * p-typeprint.c: Fix 11 ARI reported problems.
2985 (pascal_print_type): Fix 4 operator at end of line.
2986 (pascal_type_print_method_args) : Replace 2 DEPRECATED_STREQN macros
2987 using strncmp function.
2988 (pascal_type_print_base): Fix 2 operator at end of line.
2989 (pascal_type_print_base) : Replace 3 DEPRECATED_STREQN macros
2990 using strncmp function.
2993 2007-09-26 Pierre Muller <muller@ics.u-strasbg.fr>
2995 * Fix PR pascal/2231
2996 dwarf2read.c (read_subroutine_type):
2997 All pascal functions are prototyped.
2999 2007-09-26 Pierre Muller <muller@ics.u-strasbg.fr>
3001 * Fix PR pascal/2283
3002 p-valprint.c (pascal_val_print): correct current language check.
3003 Also print array of char as strings.
3006 2007-09-26 David Ung <davidu@mips.com>
3007 Maciej W. Rozycki <macro@mips.com>
3009 * mips-tdep.c (mips_n32n64_return_value): Fix a comment.
3011 2007-09-25 Pierre Muller <muller@ics.u-strasbg.fr>
3013 * p-exp.y: Fix 12 ARI reported problems.
3014 (name_not_typename): Fix 2 operator at end of line issues.
3015 (yylex): Fix 3 operator at end of line issues.
3016 Replace 7 DEPRECATED_STREQ macros using strcmp function.
3018 2007-09-25 David Ung <davidu@mips.com>
3019 Maciej W. Rozycki <macro@mips.com>
3021 * mips-tdep.c (mips_n32n64_return_value): Per N32/N64 ABI
3022 rules return composite types in registers as appropriate.
3024 2007-09-24 Jim Blandy <jimb@codesourcery.com>
3026 * symfile.h (struct symfile_segment_data): Doc fixes.
3027 * symfile.c (symfile_map_offsets_to_segments): Doc fixes.
3028 Assert that we were passed some loaded segment addresses,
3029 and that sections' segment numbers are valid.
3030 Simplify offset calculation.
3031 * remote.c (get_offsets): Clarify selection of relocate-by-segment
3032 strategy, and set num_segments correctly. Delete redundant
3033 assignments to do_sections.
3035 2007-09-24 Daniel Jacobowitz <dan@codesourcery.com>
3037 * frame.c (get_prev_frame_1): Also check for PC in the same register.
3039 2007-09-24 Vladimir Prus <vladimir@codesourcery.com>
3041 * breakpoint.c (remove_sal): New.
3042 (expand_line_sal_maybe): New.
3043 (create_breakpoints): Call expand_line_sal_maybe.
3044 (clear_command): Add comment.
3045 (breakpoint_re_set_one): Call expand_line_sal_maybe.
3046 * linespec.c (decode_indirect): Set explicit_pc to 1.
3047 (decode_all_digits): Set explicit_line to 1.
3048 (append_expanded_sal): New.
3049 (expand_line_sal): New.
3050 * linespec.h (expand_line_sal): Declare.
3051 * symtab.c (init_sal): Initialize explicit_pc
3053 * symtab.h (struct symtab_and_line): New fields
3054 explicit_pc and explicit_line.
3056 2007-09-23 Daniel Jacobowitz <dan@codesourcery.com>
3058 * infcall.c (call_function_by_hand): Handle language-specific
3059 pass and return by reference.
3061 * cp-abi.c (cp_pass_by_reference): New.
3062 * cp-abi.h (cp_pass_by_reference): Declare.
3063 (struct cp_abi_ops): Add pass_by_reference.
3064 * gnu-v3-abi.c (gnuv3_pass_by_reference): New.
3065 (init_gnuv3_ops): Set pass_by_reference.
3067 * language.c (language_pass_by_reference): New.
3068 (default_pass_by_reference): New.
3069 (unknown_language_defn, auto_language_defn, local_language_defn): Add
3070 default_pass_by_reference.
3071 * langauge.h (struct language_defn): Add la_pass_by_reference.
3072 (language_pass_by_reference, default_pass_by_reference): Declare.
3073 * ada-lang.c (ada_language_defn): Add default_pass_by_reference.
3074 * c-lang.c (c_language_defn, asm_language_defn)
3075 (minimal_language_defn): Likewise.
3076 (cplus_language_defn): Add cp_pass_by_reference.
3077 * f-lang.c (f_language_defn): Add default_pass_by_reference.
3078 * jv-lang.c (java_language_defn): Likewise.
3079 * m2-lang.c (m2_language_defn): Likewise.
3080 * objc-lang.c (objc_language_defn): Likewise.
3081 * p-lang.c (pascal_language_defn): Likewise.
3082 * scm-lang.c (scm_language_defn): Likewise
3084 2007-09-23 Vladimir Prus <vladimir@codesourcery.com>
3086 Allow a code breakpoint to have several locations
3088 * breakpoint.h (enum enable_state): Remove the
3089 bp_shlib_disabled enumerator.
3090 (struct bp_location): New members shlib_disabled,
3091 global_next, enabled and function_name.
3092 Rename pending to condition_not_parsed.
3094 * breakpoint.c (ALL_BP_LOCATIONS): Iterate over global_next.
3095 (ALL_BP_LOCATIONS_SAFE): Likewise.
3096 (breakpoint_enabled): Don't check for pending.
3097 (condition_command): Free and update all locations of
3099 (insert_bp_location): Adjust.
3100 (software_breakpoint_inserted_here_p): Don't care
3101 if breakpoint is enabled, as soon as it's inserted.
3102 (print_it_typical): Print bpstat's location, not
3103 bpstat's breakpoint's location.
3104 (bpstat_stop_status): Iterate over all locations, not
3106 (print_breakpoint_location): New.
3107 (print_one_breakpoint): Renamed to
3108 (print_one_breakpoint_location): ...this. Take
3109 parameters to describe which location is being
3110 printed. Modify code to properly print header
3111 for several locations and individual locations.
3112 (print_one_breakpoint): Print all locations.
3113 (breakpoint_has_pc): New.
3114 (describe_other_breakpoints): Use the above.
3115 (check_duplicates): Renamed to...
3116 (check_duplicates_for): .. this.
3117 (check_duplicates): Use check_duplicates_for.
3118 (allocate_bp_location): Adjust.
3119 (set_raw_breakpoint_without_location): New,
3120 extracted from set_raw_breakpoint.
3121 (set_breakpoint_location_function): New.
3122 (set_raw_breakpoint): Use
3123 set_raw_breakpoint_without_location.
3124 (make_breakpoint_permanent): Mark all locations
3126 (disable_breakpoints_in_shlibs): Iterate over
3128 (disable_breakpoints_in_unloaded_shlib): Likewise.
3129 (re_enable_breakpoints_in_shlibs): Likewise.
3130 (mention): Say "pending" when breakpoint has
3131 zero locations. If breakpoint has more than one
3133 (add_location_to_breakpoint): New.
3134 (create_breakpoint): Accept symtabs_and_lines, not
3135 symtab_and_line. Pass extra sals to
3136 add_location_to_breakpoint.
3137 (create_breakpoints): Pass symtabs_and_lines to
3139 (break_command_1): Make pending breakpoints
3140 have zero locations.
3141 (do_captured_breakpoint): Remove wrong allocation.
3142 (clear_command): Iterate over all locations.
3143 (unlink_locations_from_global_list): Renamed
3144 from unlink_location_from_global_list. Remove
3146 (delete_breakpoint): Remove all locations.
3147 Iterate over all locations when deciding which
3148 other location to re-enable.
3149 (all_locations_are_pending): New.
3150 (update_breakpoint_locations): Renamed from
3151 update_breakpoint_location. Try to match old
3152 and new locations using names of containing
3154 (breakpoint_re_set_one): Adjust.
3155 (find_location_by_number): New.
3156 (disable_command): Allow disabling individual location.
3157 (enable_command): Allow enabling individual location.
3158 * breakpoint.c: Adjust all uses of breakpoint's
3159 enable state to for bp_shlib_disabled change.
3161 2007-09-22 Vladimir Prus <vladimir@codesourcery.com>
3163 * breakpoint.c (do_restore_lang_radix_cleanup): Remove.
3164 (resolve_pending_breakpoint): Remove.
3165 (re_enable_breakpoints_in_shlibs): Remove.
3166 (unlink_locations_from_global_list): New.
3167 (update_breakpoint_locations): New.
3168 (breakpoint_re_set_one): Don't bail out on pending breakpoints.
3169 Use parse_condition and update_breakpoint_location to
3170 reset breakpoint. Ignore 'symbol not found' error from
3172 (breakpoint_re_set): Don't emit newline before the
3173 reason why breakpoint is not reset.
3174 (do_enable_breakpoint): Don't specially process pending
3176 (free_bp_location): New.
3177 (break_command_1): For pending breakpoints, initialize
3178 all fields of a sal with zeroes.
3179 * breakpoint.h (re_enable_breakpoints_in_shlibs): Remove.
3180 * infcmd.c (post_create_inferior): Don't call
3181 re_enable_breakpoints_in_shlibs.
3182 * infrun.c (handle_inferior_event): Likewise.
3183 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
3184 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
3185 * win32-nat.c (get_win32_debug_event): Likewise.
3187 2007-09-22 Vladimir Prus <vladimir@codesourcery.com>
3189 * breakpoint.c (create_breakpoint): Split from
3190 create_breakpoints, implementing most of its logic.
3191 Take just a single sal, single address string and
3192 single condition. Do not take parsed condition at
3194 (create_breakpoints): Just call create_breakpoint
3196 (find_condition_and_thread): New.
3197 (break_command_1): Use find_condition_and_thread.
3198 Do not keep parsed conditions.
3199 (do_captured_breakpoint): Don't convert
3200 condition string to struct expression.
3202 2007-09-22 Vladimir Prus <vladimir@codesourcery.com>
3204 * breakpoint.h (struct breakpoint): Move the cond
3206 (struct bp_location): Here.
3207 * breakpoint.c (condition_command, bpstat_stop_status)
3208 (print_one_breakpoint, allocate_bp_location)
3209 (solib_load_unload_1, create_fork_vfork_event_catchpoint)
3210 (create_exec_event_catchpoint, create_breakpoints)
3211 (break_command_1, watch_command_1, handle_gnu_v3_exceptions)
3212 (create_ada_exception_breakpoint, set_breakpoint_sal)
3213 (delete_breakpoint, breakpoint_re_set_one): Adjust.
3214 * tui/tui-winsource.c (tui_update_breakpoint_info): Adjust.
3216 2007-09-22 Vladimir Prus <vladimir@codesourcery.com>
3218 Associate bp_stat with bp_location, not breakpoint.
3219 * breakpoint.h (breakpoint_at): Change type
3221 * breakpoint.c (bpstat_alloc): Take bp_location,
3223 (bpstat_find_breakpoint): Look at bpstat's location's
3224 owner, not at bpstat->breakpoint_at.
3225 (bpstat_find_step_resume_breakpoint): Likewise.
3226 (bpstat_num): Likewise.
3227 (print_it_typical): Likewise.
3228 (print_bp_stop_message): Likewise.
3229 (watchpoint_check): Likewise.
3230 (bpstat_what): Likewise.
3231 (bpstat_get_triggered_catchpoints): Likewise.
3232 (breakpoint_auto_delete): Likewise.
3233 (delete_breakpoint): Likewise.
3234 (bpstat_stop_status): Pass location, not breakpoint,
3235 to bpstat_alloc. Look at bpstat's location's
3236 owner, not at bpstat->breakpoint_at.
3238 2007-09-21 Jim Blandy <jimb@codesourcery.com>
3240 * macrotab.h (new_macro_table): Document that removing information
3241 from an obstack/bcache-managed macro table leaks memory.
3242 * macrotab.c (macro_free, macro_bcache_free): Instead of asserting
3243 that data is never freed in obstack/bcache-managed macro tables,
3244 just leak the storage.
3245 (macro_undef): If we're undefining a macro at exactly the same
3246 source location that we defined it, simply remove the definition
3249 2007-09-21 Joel Brobecker <brobecker@adacore.com>
3251 * symfile.h (struct sym_fns): Add new field sym_read_linetable.
3252 * coffread.c, dbxread.c, elfread.c, mipsread.c somread.c:
3253 Adjust the struct sym_fns object accordingly by setting
3254 the new field to NULL.
3255 * xcoffread.c (aix_process_linenos): Make static.
3256 (xcoff_sym_fns): Set new field to aix_process_linenos.
3257 * buildsym.c (end_symtab): Replace call to PROCESS_LINENUMBER_HOOK
3258 by call to new the new sym_fns sym_read_linetable function.
3259 * config/powerpc/aix.mt (DEPRECATED_TM_FILE): Delete.
3260 * config/rs6000/tm-rs6000.h: Delete.
3262 2007-09-21 David Ung <davidu@mips.com>
3263 Maciej W. Rozycki <macro@mips.com>
3265 * mips-tdep.c (mips_n32n64_push_dummy_call): Per N32/N64 ABI
3266 rules do not treat composite types specially.
3268 2007-09-20 Maciej W. Rozycki <macro@mips.com>
3270 * mips-tdep.c (mips32_in_function_epilogue_p): New function.
3271 (mips16_in_function_epilogue_p): Likewise.
3272 (mips_in_function_epilogue_p): Likewise.
3273 (mips_gdbarch_init): Register mips_in_function_epilogue_p().
3275 2007-09-19 Joel Brobecker <brobecker@adacore.com>
3277 * configure.ac: Add check for "etext".
3278 * configure, config.in: Regenerate.
3279 * maint.c (TEXTEND): Only define if either _etext or etext
3281 Disable the profiling functionality if TEXTEND is not defined.
3283 2007-09-19 Daniel Jacobowitz <dan@codesourcery.com>
3285 * mips-tdep.c (mips_stub_frame_cache): Correct the saved return
3286 address register. Correct the call to frame_id_build.
3287 (mips_stub_frame_sniffer): Use the stub unwinder when the PC
3290 2007-09-18 Joel Brobecker <brobecker@adacore.com>
3292 * ia64-tdep.c (refine_prologue_limit): Make sure we don't scan
3293 the linetable past the function end.
3295 2007-09-18 James E. Wilson <wilson@specifix.com>
3297 * MAINTAINERS: Update my email address.
3299 2007-09-18 Jerome Guitton <guitton@adacore.com>
3301 * inf-ttrace.c (inf_ttrace_private_thread_info): New structure type.
3302 (inf_ttrace_delete_dying_threads_callback): New function.
3303 (inf_ttrace_resume): After resuming the execution, iterate over
3304 the dying threads to delete them for the thread list.
3305 (inf_ttrace_wait): on TTEVT_LWP_EXIT and TTEVT_LWP_TERMINATE,
3306 mark the corresponding thread as dying instead of removing it
3307 from the thread list.
3308 (inf_ttrace_thread_alive): return 0 for dying threads.
3310 2007-09-17 Joel Brobecker <brobecker@adacore.com>
3312 * infrun.c (insert_step_resume_breakpoint_at_frame): Add assertion
3313 that return_frame is not null.
3315 2007-09-17 Joel Brobecker <brobecker@adacore.com>
3317 * solib-svr4.c: Add include of "auxv.h".
3318 (enable_break): Use the AT_BASE auxiliary entry if available.
3319 * Makefile.in (solib-svr4.o): Update dependencies.
3321 2007-09-17 Joel Brobecker <brobecker@adacore.com>
3323 * NEWS: Create a new section for the next release branch.
3324 Rename the section of the current branch, now that it has
3327 2007-09-17 Jerome Guitton <guitton@adacore.com>
3329 * dwarf2loc.c (dwarf_expr_frame_base): Guard against NULL.
3330 * Makefile.in (dwarf2loc.o): Depend on gdb_assert.h.
3332 2007-09-16 Vladimir Prus <vladimir@codesourcery.com>
3334 * mi/mi-cmds.c (mi_cmds): Register -list-features.
3335 * mi/mi-cmds.h (mi_cmd_list_features): New.
3336 * mi/mi-main.c (mi_cmd_list_features): New.
3338 2007-09-11 Joel Brobecker <brobecker@adacore.com>
3340 GDB 6.7 branch created (branch timestamp: 2007-09-07 14:00 UTC)
3341 * version.in: Bump version to 6.7.50-20070911-cvs.
3343 2007-09-10 Daniel Jacobowitz <dan@codesourcery.com>
3345 * thread.c (free_thread): Do not delete the step resume breakpoint
3348 2007-09-10 Daniel Jacobowitz <dan@codesourcery.com>
3350 * arch-utils.c (gdbarch_info_fill): Also try core_bfd.
3351 * corelow.c (core_read_description): New.
3352 (init_core_ops): Set to_read_description.
3353 * gdbarch.sh: Add gdbarch_core_read_description.
3354 * mips-linux-tdep.c (mips_linux_core_read_description): New.
3355 (mips_linux_init_abi): Call set_gdbarch_core_read_description.
3356 * mips-tdep.c (mips_tdesc_gp32, mips_tdesc_gp64): New.
3357 (mips_register_g_packet_guesses): Use them.
3358 (_initialize_mips_tdep): Initialize them.
3359 * mips-tdep.h (mips_tdesc_gp32, mips_tdesc_gp64): Declare.
3360 * gdbarch.h, gdbarch.c: Regenerated.
3362 2007-09-10 Ulrich Weigand <uweigand@de.ibm.com>
3364 * infrun.c (stepping_past_breakpoint): New global variable.
3365 (stepping_past_breakpoint_ptid): Likewise.
3366 (prepare_to_proceed): Add STEP parameter. Do not check for Ctrl-C.
3367 Only switch threads if we need to single-step over a breakpoint hit
3368 in the previously selected thread. If stepping, remember previous
3369 thread to switch back to in STEPPING_PAST_BREAKPOINT[_PTID]. Call
3370 switch_to_thread instead of copying its contents.
3371 (proceed): Pass STEP to prepare_to_proceed. Always set ONEPROC if
3372 prepare_to_proceed returns true.
3373 (init_wait_for_inferior): Reset STEPPING_PAST_BREAKPOINT.
3374 (context_switch): Call switch_to_thread.
3375 (handle_inferior_event): Switch back to previous thread if requested
3376 in STEPPING_PAST_BREAKPOINT[_PTID] by prepare_to_proceed.
3377 * gdbthread.h (switch_to_thread): Add prototype.
3378 * thread.c (switch_to_thread): Make global.
3380 2007-09-07 Pierre Muller <muller@ics.u-strasbg.fr>
3382 * p-valprint.c: Fix 7 ARI reported problems.
3383 (pascal_val_print): Fix one operator at end of line issue.
3384 Use paddress function to remove use of
3385 deprecated_print_address_numeric function (2 times).
3386 Use SYMBOL_LINKAGE_NAME instead of DEPRECATED_SYMBOL_NAME.
3387 (pascal_value_print): Fix 3 operator at end of line issues.
3389 2007-09-07 Daniel Jacobowitz <dan@codesourcery.com>
3392 * arm-tdep.c (arm_in_call_stub): Delete.
3393 (arm_skip_stub): Handle from_arm and from_thumb stubs.
3395 2007-09-06 Daniel Jacobowitz <dan@codesourcery.com>
3397 * ppc-sysv-tdep.c (do_ppc_sysv_return_value): Handle other integer
3400 2007-09-04 Daniel Jacobowitz <dan@codesourcery.com>
3401 Jim Blandy <jimb@codesourcery.com>
3403 * NEWS: Update description of string changes. Mention print/s.
3404 * c-valprint.c (textual_element_type): New.
3405 (c_val_print): Use it. Do not skip address printing for pointers
3406 with a string format.
3407 (c_value_print): Doc update.
3408 * dwarf2read.c (read_array_type): Use make_vector_type.
3409 * gdbtypes.c (make_vector_type): New.
3410 (init_vector_type): Use it.
3411 (gdbtypes_post_init): Initialize builtin_true_unsigned_char.
3412 (_initialize_gdbtypes): Mark int8_t and uint8_t as TYPE_FLAG_NOTTEXT.
3413 * gdbtypes.h (struct builtin_type): Add builtin_true_unsigned_char.
3414 (TYPE_FLAG_NOTTEXT, TYPE_NOTTEXT): New.
3415 (make_vector_type): New.
3416 * printcmd.c (print_formatted): Only handle 's' and 'i' for examine.
3417 Call the language print routine for string format.
3418 (print_scalar_formatted): Call val_print for string format. Handle
3419 unsigned original types for char format.
3420 (validate_format): Do not reject string format.
3421 * stabsread.c (read_type): Use make_vector_type.
3422 * xml-tdesc.c (tdesc_start_vector): Use init_vector_type.
3424 2007-09-04 Michael Snyder <msnyder@access-company.com>
3426 * expprint.c (print_subexp_standard): Check strchr for null.
3427 * Makefile.in (expprint.o): Depend on gdb_assert.h.
3429 * gnu-v2-abi.c (gnuv2_value_rtti_type): Guard against null.
3431 * stabsread.c (patch_block_status): Guard against null.
3432 * Makefile.in (stabsread.o): Depend on gdb_assert.h.
3434 2007-09-04 Daniel Jacobowitz <dan@codesourcery.com>
3436 * printcmd.c (printf_command): Handle ptr_arg. Correct typo
3437 in internal error message.
3439 2007-09-04 Pedro Alves <pedro_alves@portugalmail.pt>
3440 Daniel Jacobowitz <dan@codesourcery.com>
3442 * infcmd.c (post_create_inferior): Update comment.
3443 (run_command_1): Always call post_create_inferior with 0 as
3446 * i386-cygwin-tdep.h: New.
3447 * i386-cygwin-tdep.c: Include "i386-cygwin-tdep.h".
3448 (win32_xfer_shared_library): Make it extern.
3450 * win32-nat.c: Include gdb_obstack.h and xml-support.h and
3452 (win32_so_ops): Delete.
3453 (get_relocated_section_addrs): Delete.
3454 (solib_symbols_add): Delete.
3455 (register_loaded_dll): Delete.
3456 (win32_make_so): New.
3457 (handle_load_dll): Use win32_make_so.
3458 (win32_free_so): Free the passed in so.
3459 (win32_relocate_section_addresses): Delete.
3460 (win32_solib_create_inferior_hook): Delete.
3461 (handle_unload_dll): Don't add PE offset here. Free so with
3462 win32_free_so instead of free_so.
3463 (win32_special_symbol_handling): Delete.
3464 (get_win32_debug_event): Remove unneeded calls. Set state to
3465 TARGET_WAITKIND_LOADED on a dll unload.
3466 (do_initial_win32_stuff): Clear cygwin_load_start and
3468 (map_code_section_args): Delete.
3469 (dll_code_sections_add): Delete.
3470 (core_section_load_dll_symbols): Delete.
3471 (win32_xfer_shared_libraries): New.
3472 (win32_current_sos): Delete.
3473 (win32_xfer_partial): New.
3474 (open_symbol_file_object): Delete.
3475 (in_dynsym_resolve_code): Delete.
3476 (init_win32_ops): Set win32_xfer_partial as to_xfer_partial member
3477 of win32_ops. Remove win32_so_ops settings. Don't set
3478 current_target_so_ops here.
3480 * Makefile.in (i386_cygwin_tdep_h): New variable.
3481 (i386-cygwin-tdep.o): Update dependencies.
3482 (win32-nat.o): Update dependencies.
3484 2007-09-04 Pedro Alves <pedro_alves@portugalmail.pt>
3485 Daniel Jacobowitz <dan@codesourcery.com>
3487 * gdbarch.sh (core_xfer_shared_libraries): New.
3489 * corelow.c (core_xfer_partial): Handle TARGET_OBJECT_LIBRARIES.
3491 * gdb_obstack.h (obstack_grow_str, obstack_grow_str0): New.
3493 * xml-support.c (gdb_xml_parse): Debug output tweaks.
3494 (xml_escape_text): New.
3495 * xml-support.h (xml_escape_text): Declare.
3497 * config/i386/cygwin.mh (NATDEPFILES): Move corelow.o to ...
3498 * config/i386/cygwin.mt (TDEPFILES): ... here.
3500 * win32-nat.c: (fetch_elf_core_registers): Delete.
3501 (win32_elf_core_fn): Delete.
3502 (_initialize_core_win32): Delete.
3504 * i386-cygwin-tdep.c: Include "regset.h", "gdb_objstack.h",
3505 "xml-support.h" and "gdbcore.h".
3506 (i386_win32_gregset_reg_offset): New.
3507 (I386_WIN32_SIZEOF_GREGSET): New.
3508 (i386_win32_regset_from_core_section): New.
3509 (win32_xfer_shared_library): New.
3510 (struct cpms_data): New.
3511 (core_process_module_section): New.
3512 (win32_core_xfer_shared_libraries): New.
3513 (i386_cygwin_skip_trampoline_code): Register gregset_reg_offset,
3514 gregset_num_regs, sizeof_gregset members of tdep. Register
3515 regset_from_core_section and core_xfer_shared_libraries callbacks.
3517 * Makefile.in (i386-cygwin-tdep.o): Update dependencies.
3518 * gdbarch.h, gdbarch.c: Regenerate.
3520 2007-09-03 Daniel Jacobowitz <dan@codesourcery.com>
3522 * corelow.c (core_xfer_partial): Pass writebuf to
3523 deprecated_xfer_memory in TARGET_OBJECT_MEMORY write case.
3525 2007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
3527 * arm-tdep.h (arm_skip_stub): Declare.
3528 * arm-wince-tdep.c: Don't include "solib-svr4.h". Include
3530 (arm_pe_skip_trampoline_code): New function.
3531 (arm_wince_init_abi): Register arm_pe_skip_trampoline_code as
3532 gdbarch_skip_trampoline_code callback.
3533 * Makefile.in (arm-wince-tdep.o): Update dependencies.
3535 2007-09-03 Daniel Jacobowitz <dan@codesourcery.com>
3537 * MAINTAINERS: Move Fred Fish to Past Maintainers.
3539 2007-09-03 Daniel Jacobowitz <dan@codesourcery.com>
3541 * configure.ac: Add --with-expat.
3542 * configure: Regenerated.
3544 2007-09-03 Andreas Schwab <schwab@suse.de>
3546 * configure.ac: Accept --with-system-readline.
3547 (READLINE, READLINE_DEPS, READLINE_CFLAGS): Define and substitute.
3548 * configure: Regenerate.
3549 * Makefile.in (READLINE, READLINE_DEPS, READLINE_CFLAGS): Use
3551 (CDEPS): Use $(READLINE_DEPS) instead of $(READLINE).
3553 2007-09-03 Maxim Grigoriev <maxim2405@gmail.com>
3554 Daniel Jacobowitz <dan@codesourcery.com>
3556 * mi-main.c (mi_load_progress): Handle MI2 and MI3 interpreters.
3558 2007-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3560 * top.c (print_gdb_version): Fixed a string end-of-line compiler error.
3562 2007-09-02 Daniel Jacobowitz <dan@codesourcery.com>
3564 * top.c (print_gdb_version): Update for GPL version 3.
3566 2007-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3568 * NEWS: Mention the build-id .debug files verification.
3570 2007-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3572 * linux-nat.c (linux_nat_make_corefile_notes): Fixed a buffer overflow.
3574 2007-09-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3576 * Makefile.in (symfile.o): Update dependencies.
3577 * symfile.c (symbol_file_add_with_addrs_or_offsets): Initialize the
3578 DEBUGFILE variable. FIND_SEPARATE_DEBUG_FILE called only if !PSYMTABS.
3579 (struct build_id): New structure.
3580 (build_id_bfd_get, build_id_verify, build_id_to_debug_filename): New.
3581 (find_separate_debug_file): New variable BUILD_ID.
3582 Call BUILD_ID_BFD_GET with BUILD_ID_TO_DEBUG_FILENAME as the first try.
3584 2007-08-31 Vladimir Prus <vladimir@codesourcery.com>
3586 * varobj.c (struct varobj): Fix comment
3587 for the type member not to lie when it can be
3590 2007-08-31 Vladimir Prus <vladimir@codesourcery.com>
3592 Implement -var-info-path-expression.
3594 * mi/mi-cmds.h (mi_cmd_var_info_path_expression):
3596 * mi/mi-cmds.c (mi_cmds): Register var-info-path-expression.
3597 * mi/mi-cmd-var.c (mi_cmd_var_info_path_expression): New.
3598 * varobj.c (struct varobj): New field 'path_expr'.
3599 (c_path_expr_of_child, cplus_path_expr_of_child)
3600 (java_path_expr_of_child): New.
3601 (struct language_specific): New field path_expr_of_child.
3602 (varobj_create): Initialize the path_expr field.
3603 (varobj_get_path_expr): New.
3604 (new_variable): Initialize the path_expr field.
3605 (free_variable): Free the path_expr field.
3606 (adjust_value_for_children_access): New parameter
3608 (c_number_of_children): Adjust.
3609 (c_describe_child): New parameter CFULL_EXPRESSION.
3610 Compute full expression.
3611 (c_value_of_child, c_type_of_child): Adjust.
3612 (cplus_number_of_children): Adjust.
3613 (cplus_describe_child): New parameter CFULL_EXPRESSION.
3614 Compute full expression.
3615 (cplus_name_of_child, cplus_value_of_child)
3616 (cplus_type_of_child): Adjust.
3617 * varobj.h (varobj_get_path_expr): Declare.
3619 2007-08-31 Vladimir Prus <vladimir@codesourcery.com>
3621 * mi/mi-cmd-var.c (print_varobj): If a varobj
3622 type is NULL, don't try to print it.
3624 2007-08-30 Alan Modra <amodra@bigpond.net.au>
3626 * ppc-linux-nat.c (right_fill_reg): Delete.
3627 (supply_gregset): Use ppc_supply_gregset.
3628 (supply_fpregset): Use ppc_supply_fpregset.
3629 (fill_gregset): Use ppc_collect_gregset.
3630 (fill_fpregset): Use ppc_collect_fpregset.
3631 * ppc-linux-tdep.c (PPC_LINUX_PT_*): Don't define.
3632 (right_supply_register, ppc_linux_supply_gregset): Delete.
3633 (ppc32_linux_supply_gregset, ppc64_linux_supply_gregset): Delete.
3634 (ppc_linux_supply_fpregset): Delete.
3635 (ppc_linux_collect_gregset): New function.
3636 (ppc32_linux_reg_offsets, ppc64_linux_reg_offsets): New.
3637 (ppc32_linux_gregset, ppc64_linux_gregset): Update to use reg offsets,
3638 ppc_linux_supply_gregset, and ppc_collect_gregset.
3639 (ppc_linux_fpregset): Rename to ppc32_linux_fpregset and update.
3640 (ppc_linux_gregset, ppc_linux_fpregset): New functions.
3641 (ppc_linux_regset_from_core_section): Update.
3642 * ppc-tdep.h (ppc_linux_gregset, ppc_linux_fpregset): Declare.
3643 (ppc_linux_supply_gregset, ppc_linux_supply_fpregset): Delete.
3644 (struct ppc_reg_offsets): Add gpr_size, xr_size, fpscr_size fields.
3645 * ppcobsd-tdep.c (ppcobsd_supply_gregset): Delete FIXME and assert.
3646 (ppcobsd_collect_gregset): Likewise.
3647 (_initialize_ppcnbsd_tdep): Init gpr_size, xr_size, fpscr_size.
3648 * ppcnbsd-tdep.c (_initialize_ppcobsd_tdep): Likewise.
3649 * ppcobsd-nat.c (_initialize_ppcobsd_nat): Likewise.
3650 * rs6000-aix-tdep.c (rs6000_aix32_reg_offsets): Likewise.
3651 (rs6000_aix64_reg_offsets): Likewise.
3652 (rs6000_aix_supply_regset): Call ppc_supply_fpregset without testing
3653 ppc_floating_point_unit_p.
3654 (rs6000_aix_collect_regset): Similarly.
3655 * rs6000-tdep.c (ppc_supply_reg): Add regsize param. Adjust offset
3656 when regsize is larger than regcache register size.
3657 (ppc_collect_reg): Similarly zero pad when regsize is larger than
3658 regcache register size.
3659 (ppc_greg_offset): New function, split out from..
3660 (ppc_supply_gregset): ..here. Separate code handling all regs from
3661 single reg case. Correct xer offset.
3662 (ppc_fpreg_offset): New function, split out from..
3663 (ppc_supply_fpregset): ..here. Separate code handling all regs from
3665 (ppc_collect_gregset, ppc_collect_fpregset): Likewise.
3666 (ppc_supply_fpregset, ppc_collect_fpregset): Don't assert we have
3667 a fp unit, instead return if no fp.
3669 2007-08-29 Jim Blandy <jimb@codesourcery.com>
3671 * breakpoint.c (watch_command_1): Remove '#ifdef HPUXHPPA' block;
3672 this code has not been compiled for two years.
3674 2007-08-29 Michael Snyder <msnyder@access-company.com>
3676 * event-top.c (gdb_readline2): Return after EOF.
3678 2007-08-29 Joel Brobecker <brobecker@adacore.com>
3680 * symtab.c: Remove a function that has been commented out 3 years ago.
3682 2007-08-29 Randolph Chung <tausq@debian.org>
3684 * hppa-tdep.c (hppa32_cannot_fetch_register)
3685 (hppa64_cannot_fetch_register): New functions.
3686 (hppa_gdbarch_init): Set cannot_fetch_register appropriately.
3687 * hppa-tdep.h (hppa_regnum): Add HPPA_CR26_REGNUM.
3689 2007-08-28 Michael Snyder <msnyder@access-company.com>
3691 * mi/mi-cmd-var.c (mi_print_value_p): No longer necessary to
3692 check for null before calling check_typedef.
3694 * NEWS: Mention Coverity bug fixes.
3696 2007-08-27 Markus Deuling <deuling@de.ibm.com>
3698 * spu-tdep.c (spu_pointer_to_address): New function.
3699 (spu_integer_to_address): Likewise.
3700 (spu_gdbarch_init): Add spu_pointer_to_address and
3701 spu_integer_to_address to gdbarch.
3703 2007-08-26 Pedro Alves <pedro_alves@portugalmail.pt>
3705 * arm-wince-tdep.c (ARM_WINCE_JB_PC): Change to 10.
3707 2007-08-23 Joel Brobecker <brobecker@adacore.com>
3709 * Makefile.in (copying.c): Use the top-level COPYING3 as the file
3710 that contains the GDB license.
3711 * copying.awk: Adjust to the GPLv3 wording.
3712 * copying.c: Regenerate.
3714 2007-08-23 Joel Brobecker <brobecker@adacore.com>
3716 * copying.awk: Protoization, and i18n markup.
3718 2007-08-23 Joel Brobecker <brobecker@adacore.com>
3720 * config/djgpp/djconfig.sh: Switch license to GPLv3.
3721 * copyright.sh: Likewise.
3722 * gdb-events.sh: Likewise.
3723 * gdb_gcore.sh: Likewise.
3724 * gdb_mbuild.sh: Likewise.
3725 * gdbarch.sh: Likewise.
3726 * observer.sh: Likewise.
3727 * features/feature_to_c.sh: Likewise.
3728 * regformats/regdat.sh: Likewise.
3730 2007-08-23 Joel Brobecker <brobecker@adacore.com>
3732 Switch the license of all .c files to GPLv3.
3733 Switch the license of all .h files to GPLv3.
3734 Switch the license of all .cc files to GPLv3.
3736 2007-08-23 Joel Brobecker <brobecker@adacore.com>
3738 * configure.ac: Switch license to GPLv3.
3740 2007-08-22 Daniel Jacobowitz <dan@codesourcery.com>
3742 * mips-tdep.c (mips_gdbarch_init): Use Tag_GNU_MIPS_ABI_FP to
3743 determine the file's FPU type.
3745 2007-08-22 Daniel Jacobowitz <dan@codesourcery.com>
3747 * mips-tdep.c (mips_n32n64_fp_arg_chunk_p): New.
3748 (mips_n32n64_push_dummy_call): Always increment float_argreg along
3749 with argreg. Use mips_n32n64_fp_arg_chunk_p.
3751 2007-08-22 Daniel Jacobowitz <dan@codesourcery.com>
3753 * solib-svr4.c (scan_dyntag): Only read target memory when necessary.
3755 (elf_locate_base): Look for DT_MIPS_RLD_MAP first. Expand comments.
3756 (elf_lookup_lib_symbol): Fix formatting.
3758 2007-08-21 Michael Snyder <msnyder@access-company.com>
3760 * dbxread.c (read_dbx_symtab): Guard null deref.
3763 * valops.c (find_overload_match): Guard against NULL.
3765 2007-08-21 Daniel Jacobowitz <dan@codesourcery.com>
3767 * MAINTAINERS (Patch Champions): Remove self.
3769 2007-08-21 Chris Smith <chris.smith@st.com>
3771 * cli/cli-script.c (read_command_lines): Call dont_repeat for each
3774 2007-08-18 Michael Snyder <msnyder@access-company.com>
3776 * stabsread.c (dbx_lookup_type): Memory leak.
3778 * event-loop.c (delete_async_signal_handler): Move pointer null
3779 test to before pointer dereference.
3781 * ui-out.c (append_header_to_list): Possible cut and paste error.
3783 * MAINTAINERS: white space tweak.
3785 2007-08-17 Michael Snyder <msnyder@access-company.com>
3787 * stack.c (print_frame): Memory leak.
3789 * completer.c (filename_completer): Avoid memory leak.
3790 Remove unnecessary nested block.
3792 * c-exp.y (parse_number): Memory leak.
3794 * completer.c (location_completer): Must free 'fn_list', except
3795 in the one case where it is returned (as 'list').
3797 * varobj.c (value_of_root): Memory leak.
3799 * gdbtypes.h (virtual_base_list): Remove export decl.
3800 * gdbtypes.c (virtual_base_list): Make static. Not called outside.
3801 (virtual_base_index): Memory leak.
3802 (virtual_base_index_skip_primaries): Ditto.
3804 2007-08-17 Maxim Grigoriev <maxim2405@gmail.com>
3806 * xtensa-tdep.c (ARG_NOF, ARG_1ST, PS_WOE, PS_EXC, C0_MAXOPDS)
3807 (C0_NREGS, C0_CLESV, C0_SP, C0_FP, C0_RA, C0_ARGS, C0_NARGS)
3808 (C0_CONST, C0_INEXP, C0_NOSTK): New macros.
3809 (xtensa_read_register): New function.
3810 (xtensa_windowed_frame_cache, xtensa_call0_frame_cache, xtensa_c0reg)
3811 (xtensa_insn_kind): New types.
3812 (xtensa_frame_cache, xtensa_alloc_frame_cache, xtensa_frame_cache)
3813 (xtensa_frame_prev_register, xtensa_return_value, xtensa_skip_prologue)
3814 (xtensa_verify_config, xtensa_pseudo_register_read)
3815 (xtensa_pseudo_register_write, xtensa_extract_return_value)
3816 (xtensa_store_return_value)
3817 (xtensa_push_dummy_call): Extended to support Xtensa Call0 ABI.
3818 (windowing_enabled, extract_call_winsize, xtensa_unwind_dummy_id)
3819 (xtensa_frame_this_id, xtensa_frame_prev_register)
3820 (xtensa_register_type, xtensa_reg_to_regnum): Cosmetic changes.
3821 (call0_frame_cache, call0_frame_get_reg_at_entry)
3822 (call0_classify_opcode, call0_track_op)
3823 (call0_analyze_prologue, call0_frame_cache): New functions.
3825 2007-08-17 Vladimir Prus <vladimir@codesourcery.com>
3827 * breakpoint.c (bpstat_free): New.
3828 (bpstat_clear): Use bpstat_free.
3829 (delete_breakpoint): Document why we cannot
3830 remove bpstats from stop_bpstat.
3831 * breakpoint.h (bpstat_free): Declare.
3833 2007-08-16 Michael Snyder <msnyder@access-company.com>
3835 * event-loop.c (gdb_wait_for_event): Move statement into "if" block.
3837 2007-08-15 Paul Hilfinger <hilfinger@adacore.com>
3838 Joel Brobecker <brobecker@adacore.com>
3840 * ada-lang.c (resolve_subexp): Correct arity of binary operators.
3842 2007-08-15 Paul Hilfinger <hilfinger@adacore.com>
3843 Joel Brobecker <brobecker@adacore.com>
3845 * ada-lang.c (possible_user_operator_p): Alternative fix to last
3846 checkin guarding against NULL.
3848 2007-08-14 Michael Snyder <msnyder@access-company.com>
3850 * tui-command.c, tui-data.c, tui-disasm.c, tui-file.c, tui-io.c,
3851 tui-layout.c, tui-regs.c, tui-source.c, tui-win.c, tui-windata.c,
3852 tui-wingeneral.c, tui-winsource.c: Coding standard, && and ||
3853 go at beginning of new line.
3855 * tui-data.c, tui-data.h, tui-disasm.c, tui-disasm.h, tui-hooks.c,
3856 tui-io.c, tui-layout.c, tui-layout.h, tui-out.c, tui-regs.c,
3857 tui-source.c, tui-source.h, tui-stack.c, tui-win.c, tui-win.h,
3858 tui-windata.c, tui-windata.h, tui-wingeneral.c, tui-winsource.c,
3859 tui-winsource.h, tui.c, tui.h: Function declarations and
3860 definitions, wrap long lines.
3862 * tui-command.c, tui-data.c, tui-disasm.c, tui-layout.c,
3863 tui-regs.c, tui-win.c, tui-windata.c, tui-winsource.c, tui.c:
3864 Reformat block comments to GNU standard.
3866 * tui-command.c, tui-data.c, tui-data.h, tui-disasm.c, tui-file.c,
3867 tui-hooks.c, tui-interp.c, tui-io.c, tui-layout.c, tui-out.c,
3868 tui-regs.c, tui-regs.h, tui-source.c, tui-stack.c, tui-win.c,
3869 tui-windata.c, tui-wingeneral.c, tui-winsource.c, tui-winsource.h,
3870 tui.c, tui.h: Comment reformatting to coding standard (capitals,
3871 spaces after periods, etc).
3873 * tui-data.c, tui-data.h, tui-disasm.c, tui-hooks.c, tui-layout.c,
3874 tui-regs.c, tui-source.c, tui-stack.c, tui-win.c, tui-windata.c,
3875 tui-wingeneral.c, tui-wingeneral.h, tui-winsource.c, tui.c,
3876 tui-winsource.h: Whitespace changes, fix pointer declarations
3879 2007-08-14 Joel Brobecker <brobecker@adacore.com>
3880 Michael Snyder <msnyder@access-company.com>
3882 * ada-lang.c (field_alignment): Guard against NULL.
3884 2007-08-14 Joel Brobecker <brobecker@adacore.com>
3886 * MAINTAINERS (Global Maintainers): Add self.
3888 2007-08-14 Michael Snyder <msnyder@access-company.com>
3890 * mi/mi-interp.c (mi_cmd_interpreter_exec): Dead code, dead variable.
3892 * ada-lang.c (possible_user_operator_p): Guard against NULL.
3894 * varobj.c (cplus_describe_child): Guard against null.
3895 Use "NULL" instead of "0" to initialize pointers.
3897 2007-08-14 Daniel Jacobowitz <dan@codesourcery.com>
3899 * arm-tdep.c (arm_gdbarch_init): Allow unknown ABI and FPU settings
3900 to match any gdbarch with matching OSABI. Set default ABI and FPU
3901 after running the OSABI handler.
3903 2007-08-14 Daniel Jacobowitz <dan@codesourcery.com>
3905 * config/i386/linux.mh (NATDEPFILES): Move corelow.o from here...
3906 * config/i386/linux.mt (TDEPFILES): ...to here.
3908 2007-08-14 Vladimir Prus <vladimir@codesourcery.com>
3910 * breakpoint.c (disable_breakpoints_in_shlibs): Remove
3911 the 'silent' parameter and code to implement that.
3912 * breakpoint.h (disable_breakpoints_in_shlibs): Adjust
3914 * win32-nat.c: Adjust.
3917 2007-08-14 Vladimir Prus <vladimir@codesourcery.com>
3919 * breakpoint.c (update_breakpoints_after_exec): Don't
3920 set address to zero.
3922 2007-08-13 Michael Snyder <msnyder@access-company.com>
3924 * valops.c: Whitespace clean-up.
3926 * tui/tui-winsource.c (tui_alloc_source_buffer): Clean up allocation.
3928 * event-top.c (command_line_handler): Memory leak.
3930 * mi/mi-cmd-var.c (mi_cmd_var_set_format): Memory leak.
3931 No need to make copy.
3933 * source.c (find_source_lines): Require symtab 's'.
3935 2007-08-11 Michael Snyder <msnyder@access-company.com>
3937 * completer.c: Spelling fix in comments.
3939 2007-08-10 Michael Snyder <msnyder@access-company.com>
3941 * gdbtypes.c: Coding standard cleanup.
3942 * gdbtypes.c: Comment/whitespace cleanup.
3944 * stabsread.c (read_huge_number): Attempt to compute value before
3945 values that it depends on.
3947 * linespec.c (decode_dollar): Dead code, ptr can't be non-null.
3948 (decode_objc): Use "NULL" instead of 0.
3949 (find_method): Ditto.
3950 (decode_all_digits): Ditto.
3951 (decode_dollar): Ditto.
3953 * mi/mi-main.c (mi_cmd_data_evaluate_expression): Resource leak.
3955 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Memory leak.
3957 * solib-svr4.c (enable_break): Don't free tmp_pathname until
3960 * completer.c: Comment/whitespace cleanup.
3962 2007-08-10 Joel Brobecker <brobecker@adacore.com>
3964 * Makefile.in (i386nbsd-nat.o): Add missing dependency.
3966 2007-08-10 Maxim Grigoriev <maxim2405@gmail.com>
3968 * remote-fileio.c (remote_fileio_resize_fd_map): Initialize newly
3969 allocated file descriptors.
3971 2007-08-10 Joel Brobecker <brobecker@adacore.com>
3973 * Makefile.in: Minor cleanup throughout; add some missing variables,
3974 add some missing rules, remove some rules that are no longer needed,
3975 and fix the dependencies in several rules.
3977 2007-08-10 Ludovic Courtès <ludo@gnu.org>
3979 * Makefile.in (SFILES): Add scm-{exp,lang,valprint}.c.
3980 (scm_lang_h, scm_tags_h): New.
3981 (COMMON_OBS): Add scm-{exp,lang,valprint}.o.
3982 (scm-exp.o, scm-lang.o, scm-valprint.o): New targets.
3983 * defs.h (enum language): Add `language_scm'.
3985 * MAINTAINERS: Add Emacs local variables to use UTF-8 upon
3988 2007-08-09 Ludovic Courtès <ludo@gnu.org>
3990 * MAINTAINERS (Write After Approval): Add myself.
3992 2007-08-09 Michael Snyder <msnyder@access-company.com>
3994 * solib.c (solib_open): Memory leak -- openp returns xmalloc buffer.
3996 2007-08-09 Joel Brobecker <brobecker@adacore.com>
3998 * solib-som.c (som_relocate_section_addresses): Stop saving
3999 the $CODE$ section in the so_list structure.
4001 2007-08-08 Maxim Grigoriev <maxim2405@gmail.com>
4003 * xtensa-tdep.h (XTENSA_MAX_COPROCESSOR): New.
4004 (xtensa_register_group_t): Add entries for coprocessors.
4005 * xtensa-tdep.c (xtensa_init_reggroups): New register groups.
4006 (xtensa_add_reggroups): Likewise.
4007 (xtensa_register_reggroup_p): Likewise.
4008 (xtensa_coprocessor_register_group): New function.
4011 2007-08-08 Jan Kratochvil <jan.kratochvil@redhat.com>
4013 * serial.c (serial_open): Fix the OPEN parameter macro expansion.
4015 2007-08-08 Michael Snyder <msnyder@access-company.com>
4017 * target.c (target_read_string): Guard against null.
4019 * varobj.c (value_of_root): Move alloc after return to avoid leak.
4021 * tui/tui-layout.c (tui_set_layout): Dead code, dead variable.
4022 (tui_set_layout_for_display_command): Mem leak.
4024 * top.c (command_line_input): Memory leak.
4026 * solib-svr4.c (open_symbol_file_object): Memory leak.
4027 (svr4_current_sos): Ditto.
4028 (enable_break): Ditto.
4030 * cp-valprint.c (cp_print_hpacc_virtual_table_entries): Memory leak.
4032 * dwarf2read.c (add_partial_symbol): Memory leak.
4034 2007-08-06 Michael Snyder <msnyder@access-company.com>
4036 * ada-lang.c (desc_bounds): Comparison of function address to NULL.
4038 2007-08-05 Jim Blandy <jimb@codesourcery.com>
4040 * macroexp.c (init_buffer): Remove testing code that overrides the
4041 caller's length guess.
4042 (gather_arguments): Use a larger initial size, now that the vector
4043 growth code has been exercised.
4045 2007-08-05 Pedro Alves <pedro_alves@portugalmail.pt>
4047 * solib-target.c (solib_target_relocate_section_addresses): Add
4048 orig_delta to addr_high.
4050 2007-08-04 Michael Snyder <msnyder@access-company.com>
4052 * remote-fileio.c (remote_fileio_func_write): Memory leak.
4054 * breakpoint.c (print_one_breakpoint): Off by one error.
4056 * tracepoint.c (add_register): Off by one error.
4057 (stringify_collection_list): Free malloc buffer.
4059 2007-08-03 Michael Snyder <msnyder@access-company.com>
4061 * mi-cmd-var.c (mi_cmd_var_delete): Remove unused variable,
4062 stop memory leak, straighten out cleanups.
4064 * jv-lang.c (java_link_class_type): Guard against NULL.
4066 2007-08-02 Michael Snyder <msnyder@access-company.com>
4068 * gdbtypes.c (create_set_type): Test should only be done within
4069 the preceeding if block. Otherwise, variable is uninitialized.
4071 * gdbtypes.c (check_typedef): Guard NULL.
4073 2007-08-01 Michael Snyder <msnyder@access-company.com>
4075 * cli/cli-decode.c (lookup_cmd): Check for null earlier, to
4076 avoid dereference in lookup_cmd_1.
4078 * tui/tui-data.c (tui_alloc_content): Move assign out of if,
4079 clean up long lines.
4080 (tui_alloc_generic_win_info): Tidy by using XMALLOC macro.
4081 (tui_alloc_win_info): Ditto.
4082 (tui_add_content_elements): Ditto.
4083 * tui/tui-file.c (tui_file_magic): Ditto.
4085 2007-07-31 Michael Snyder <msnyder@access-company.com>
4087 * breakpoint.c (breakpoint_init_inferior): Add 'else' to 'if'.
4088 True and false paths are mutually exclusive.
4090 * event-top.c (command_line_handler): Add pedantic return.
4092 * f-valprint.c (info_common_command): Bail out to prevent null
4093 pointer deref. Break up a long line.
4095 * exec.c (xfer_memory): Remove redundant condition from 'if'.
4097 * symfile.c (reread_separate_symbols): Free xmalloced memory.
4099 * printcmd.c (build_address_symbolic): Remove dead code and dead
4102 2007-07-31 Daniel Jacobowitz <dan@codesourcery.com>
4104 * linespec.c (minsym_found): Advance to the next line if possible.
4106 2007-07-31 Pedro Alves <pedro_alves@portugalmail.pt>
4108 * arm-wince-tdep.c (arm_wince_init_abi): Remove svr4 related call.
4109 * config/arm/wince.mt (TDEPFILES): Remove solib-legacy.o and
4110 solib-svr4.o, and add solib-target.o
4112 2007-07-27 Michael Snyder <msnyder@access-company.com>
4114 * tui/tui-data.c (tui_alloc_generic_win_info): Wrong arg for sizeof.
4116 2007-07-26 Maciej W. Rozycki <macro@linux-mips.org>
4118 * MAINTAINERS (Write After Approval): Add myself.
4120 2007-07-26 Maciej W. Rozycki <macro@mips.com>
4122 * Makefile.in (MAKEHTMLFLAGS): Also search the current directory
4125 2007-07-25 Maciej W. Rozycki <macro@mips.com>
4127 * Makefile.in (MAKEHTMLFLAGS): Remove "-glossary".
4129 2007-07-24 Michael Snyder <msnyder@access-company.com>
4131 * solib-svr4.c (svr4_fetch_objfile_link_map): Null pointer check of
4132 'buffer' must cover both branches that call strcmp (Coverity).
4134 * stack.c (print_frame_args): Check return value of lookup_symbol.
4136 * ax-gdb.c (find_field): Guard against null ptr.
4138 2007-07-24 Ulrich Weigand <uweigand@de.ibm.com>
4140 * regformats/reg-spu.dat: Fix order of npc, id registers.
4142 2007-07-24 Ulrich Weigand <uweigand@de.ibm.com>
4144 * target.c (memory_xfer_partial): Accesses to unmapped overlay
4145 sections should always go to the executable file.
4147 2004-07-20 Chris Dearman <chris@mips.com>
4149 * mips-tdep.c (heuristic_proc_start): Add more MIPS16 function
4150 prologue instructions.
4152 2007-07-20 Maciej W. Rozycki <macro@mips.com>
4154 * mips-tdep.c (mips_next_pc): Use is_mips16_addr() instead of
4157 2007-07-20 Chris Dearman <chris@mips.com>
4158 Maciej W. Rozycki <macro@mips.com>
4160 * mips-tdep.c (fetch_mips_16): Fix typos and reformat the
4163 2007-07-17 Pedro Alves <pedro_alves@portugalmail.pt>
4164 Daniel Jacobowitz <dan@codesourcery.com>
4166 * config/i386/cygwin.mt (TDEPFILES): Add solib-target.o.
4167 * coff-pe-read.c (read_pe_exported_syms): Delete verbose
4169 * NEWS: Mention gdbserver DLL support.
4171 2007-07-17 Daniel Jacobowitz <dan@codesourcery.com>
4173 * dwarf2read.c (dwarf_decode_lines): Detect address size mismatches.
4175 2007-07-16 H.J. Lu <hongjiu.lu@intel.com>
4177 * i386-linux-nat.c (fetch_regs): Work around gcc 3.4 alias
4180 2007-07-13 Kevin Buettner <kevinb@redhat.com>
4182 * mep-tdep.c (mep_analyze_prologue): Update comment for BRA
4185 2007-07-12 Kevin Buettner <kevinb@redhat.com>
4187 * mep-tdep.c (IS_BRA, BRA_DISP): New macros.
4188 (mep_analyze_prologue): Add case for BRA instruction.
4190 2007-07-12 Ulrich Weigand <uweigand@de.ibm.com>
4192 * solib-svr4.c (LM_ADDR_CHECK): Relax prelink recognition heuristic.
4194 2007-07-10 Nick Roberts <nickrob@snap.net.nz>
4196 * breakpoint.c: Include "top.h".
4197 (breakpoint_1): Don't set convenience variable $_ if server prefix
4199 (_initialize_breakpoint): Describe this behaviour in command help.
4201 2007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
4203 * solib-target.c (library_list_start_segment): Cast address to
4206 2007-07-06 Mark Kettenis <kettenis@gnu.org>
4208 * bsd-uthread.c (bsd_uthread_wait): Don't try to fetch thread IDs
4209 for terminated processes.
4211 2007-07-05 Michael Snyder <msnyder@access-company.com>
4213 * event-top.c (cli_command_loop): Prompt string can (and should)
4214 be freed after call to readline (Coverity). Also move local var
4215 declarations into block where they are used.
4217 * tui/tui-interp.c (tui_command_loop): Prompt string can (and
4218 should) be freed after call to readline (Coverity). Also move
4219 local var declarations into block where they are used.
4221 2007-07-03 Andreas Schwab <schwab@suse.de>
4223 * linux-nat.c (linux_nat_info_proc_cmd): Fix parsing of columns in
4226 2007-07-03 Paul Gilliam <pgilliam@us.ibm.com>
4227 Thiago Bauermann <bauerman@br.ibm.com>
4228 Joseph S. Myers <joseph@codesourcery.com>
4229 Daniel Jacobowitz <dan@codesourcery.com>
4231 * remote.c (remote_check_symbols): Use
4232 gdbarch_convert_from_func_ptr_addr.
4233 * infcall.c (find_function_addr): Handle function descriptors
4234 without debugging information.
4235 * ppc-linux-tdep.c (ppc_linux_convert_from_func_ptr_addr): Renamed
4236 from ppc64_linux_convert_from_func_ptr_addr. Handle -msecure-plt.
4237 (ppc_linux_init_abi): Always set convert_from_func_ptr_addr.
4238 * solib-svr4.c (solib_break_names): Remove "._dl_debug_state".
4239 (bfd_lookup_symbol): Do not take a SECT_FLAGS argument. Always
4240 allow SEC_CODE and SEC_DATA.
4241 (enable_break): Update calls. Pass current_target to solib_add.
4242 Use gdbarch_convert_from_func_ptr_addr.
4244 2007-07-03 Ilko Iliev <iliev@ronetix.at>
4245 Daniel Jacobowitz <dan@codesourcery.com>
4247 * symfile.c (print_transfer_performance): Avoid integer overflow.
4250 2007-07-03 Markus Deuling <deuling@de.ibm.com>
4252 * cp-namespace.c (lookup_symbol_file): Add block to
4253 lookup_symbol_global call.
4254 * Makefile.in (solist_h): Add dependency on symtab header.
4255 (symtab.o): Add dependency on solist header.
4256 * solib.c (solib_global_lookup): New function.
4257 * solib-svr4.c (scan_dyntag): Likewise.
4258 (elf_locate_base): Call helper routine scan_dyntag.
4259 (elf_lookup_lib_symbol): New function.
4260 (_initialize_svr4_solib): Add elf_lookup_lib_symbol to svr4_so_ops.
4261 * solist.h (symtab.h): New include.
4262 (struct target_so_ops): New member lookup_lib_global_symbol.
4263 (solib_global_lookup): New prototype.
4264 * symtab.c: New include solist.h.
4265 (lookup_objfile_from_block): New function.
4266 (lookup_global_symbol_from_objfile): New function.
4267 (basic_lookup_symbol_nonlocal): Add block to lookup_symbol_global call.
4268 (lookup_symbol_global): Call library-specific lookup procedure.
4269 * symtab.h (lookup_global_symbol_from_objfile): New prototype.
4271 * NEWS: Document framework.
4273 2007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
4275 * target-descriptions.c (tdesc_create_reg): Do not set reg->type
4278 * cli/cli-script.c (build_command_line): Update NULL check.
4280 2007-07-02 Michael Snyder <msnyder@access-company.com>
4282 * p-exp.y (yylex): Memory leak, 'uptokstart' must be freed (Coverity).
4284 2007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
4286 * Makefile.in (XMLFILES): Add library-list.dtd.
4287 (ALLDEPFILES): Add solib-target.o.
4288 (solib-target.o): New rule.
4289 * remote.c (PACKET_qXfer_libraries): New constant.
4290 (remote_protocol_features): Add qXfer:libraries:read.
4291 (remote_wait): Recognize library stop replies.
4292 (remote_async_wait): Likewise. Fix typo.
4293 (remote_xfer_partial): Handle TARGET_OBJECT_LIBRARIES.
4294 (init_remote_async_ops): Fix typo.
4295 (_initialize_remote): Register "set remote library-info-packet".
4296 * solib-som.c (som_current_sos): Set addr_low and addr_high.
4297 * solib-target.c: New file.
4298 * solib.c (solib_map_sections): Use addr_low and addr_high instead
4300 (info_sharedlibrary_command): Likewise.
4301 (solib_add_library, solib_remove_library): New.
4302 * solist.h (struct so_list): Replace textsection with addr_low and
4304 * target.h (enum target_object): Add TARGET_OBJECT_LIBRARIES.
4305 * NEWS: Describe new qXfer:libraries:read and shared library
4307 * features/library-list.dtd: New.
4309 2007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
4311 * infrun.c (inferior_ignoring_startup_exec_events): Delete.
4312 (start_remote): Use STOP_QUIETLY_REMOTE.
4313 (handle_inferior_event): Do not condition TARGET_WAITKIND_LOADED
4314 support on a SOLIB_ADD definition. Update breakpoints_inserted.
4315 Update to match shared library event breakpoint support. Only
4316 resume if appropriate. Handle STOP_QUIETLY_REMOTE.
4317 (normal_stop): Handle TARGET_WAITKIND_LOADED.
4318 * fork-child.c (startup_inferior): Do not set
4319 inferior_ignoring_startup_exec_events
4320 * inferior.h (inferior_ignoring_startup_exec_events): Delete
4322 (enum stop_kind): Improve documentation. Add STOP_QUIETLY_REMOTE.
4324 2007-07-02 Markus Deuling <deuling@de.ibm.com>
4326 * breakpoint.c (insert_bp_location): Remove dead code
4327 (DISABLE_UNSETTABLE_BREAK).
4328 (disable_breakpoints_in_shlibs)
4329 (disable_breakpoints_in_unloaded_shlib): Likewise (comment).
4331 2007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
4333 * breakpoint.c (reattach_breakpoints): Do not use remove_breakpoint.
4334 Call insert_bp_location.
4336 2007-07-01 H.J. Lu <hongjiu.lu@intel.com>
4338 * core-regset.c (fetch_core_registers): Work around gcc 3.4
4341 2007-07-01 Daniel Jacobowitz <dan@codesourcery.com>
4343 * minsyms.c (lookup_minimal_symbol_by_pc_section): Search fewer
4346 2007-07-01 Daniel Jacobowitz <dan@codesourcery.com>
4348 * top.c (gdb_readline_wrapper_line): Call rl_callback_handler_remove.
4349 (struct gdb_readline_wrapper_cleanup): Remove prompt_orig.
4350 (gdb_readline_wrapper_cleanup): Do not reset the prompt.
4351 (gdb_readline_wrapper): Do not save the prompt. Pass our prompt
4352 to display_gdb_prompt.
4354 2007-07-01 Daniel Jacobowitz <dan@codesourcery.com>
4357 * target.c (memory_xfer_partial): Do not continue past targets with
4360 2007-06-30 Andreas Schwab <schwab@suse.de>
4362 * m68k-tdep.c (m68k_ps_type): New.
4363 (m68k_init_types): New.
4364 (m68k_register_type): Use m68k_ps_type for PS register.
4365 (_initialize_m68k_tdep): Call m68k_init_types.
4367 * m68k-tdep.c (m68k_gdbarch_init): Don't infer coldfire flavour
4368 from the generic m68k arch.
4370 2007-06-28 Michael Snyder <msnyder@access-company.com>
4372 * m2-typeprint.c (m2_print_type): Move pointer ref after null test
4375 * linux-thread-db.c (thread_db_get_thread_local_address): Add
4376 gdb_assert before using return value of find_thread_pid (Coverity).
4378 * source.c (unset_substitute_path_command): Plug leak (Coverity).
4380 * cli/cli-script.c (build_command_line): Add null pointer guard
4383 2007-06-27 Daniel Jacobowitz <dan@codesourcery.com>
4385 * linux-thread-db.c (thread_db_attach): Delete.
4386 (thread_db_detach): Typo fix. Call target_mourn_inferior
4387 instead of fixing up proc_handle.
4388 (have_threads_callback, have_threads): New functions.
4389 (thread_db_wait): Remove dead proc_handle.pid check. Only
4390 translate PTIDs if we have registered threads. Check for new
4391 threads if we have none.
4392 (thread_db_create_inferior, thread_db_post_startup_inferior): Delete.
4393 (find_new_threads_callback): Only enable event reporting if TID == 0.
4394 (same_ptid_callback): New.
4395 (thread_db_get_thread_local_address): Check for new threads.
4396 (init_thread_db_ops): Don't set to_attach, to_create_inferior,
4397 or to_post_startup_inferior.
4399 2007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
4401 * infrun.c (adjust_pc_after_break): Do not assume software single-step
4402 is always active if SOFTWARE_SINGLE_STEP_P is true.
4403 (resume): Use gdbarch_software_single_step[_p] instead of
4404 SOFTWARE_SINGLE_STEP[_P].
4405 (handle_inferior_event): Do not check for SOFTWARE_SINGLE_STEP_P.
4407 * gdbarch.sh (software_single_step): Remove target macro.
4408 * gdbarch.h, gdbarch.c: Regenerate.
4410 2007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
4412 * gdbarch.sh (gdbarch_swap_ftype, deprecated_register_gdbarch_swap,
4413 DEPRECATED_REGISTER_GDBARCH_SWAP): Remove.
4414 (struct gdbarch_swap, struct gdbarch_swap_registration,
4415 struct gdbarch_swap_registry, gdbarch_swap_registry,
4416 current_gdbarch_swap_init_hack, current_gdbarch_swap_out_hack,
4417 current_gdbarch_swap_in_hack): Remove.
4418 (find_arch_by_info): Do not call current_gdbarch_swap_init_hack.
4419 (gdbarch_find_by_info): Do not call current_gdbarch_swap_in_hack
4420 and current_gdbarch_swap_out_hack, update current_gdbarch directly.
4421 (deprecated_current_gdbarch_select_hack): Likewise.
4422 * gdbarch.h, gdbarch.c: Regenerate.
4424 2007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
4426 * infrun.c (clear_proceed_status): Clean up stop_registers.
4427 (normal_stop): Allocate regcache for stop_registers.
4428 (struct inferior_status): Remove stop_registers member.
4429 (save_inferior_status): Do not save stop_registers.
4430 (restore_inferior_status): Do not restore stop_registers.
4431 (discard_inferior_status): Do not discard stop_registers.
4432 (build_infrun): Remove.
4433 (_initialize_infrun): Do not swap stop_registers.
4435 2007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
4437 * remote.c (remote_address_masked): If remote_address_size is zero,
4438 default to target address size.
4439 (build_remote_gdbarch_data): Remove.
4440 (_initialize_remote): Do not swap remote_address_size.
4442 2007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
4444 * gdbtypes.h (builtin_type_true_char, builtin_type_void,
4445 builtin_type_char, builtin_type_short, builtin_type_int,
4446 builtin_type_long, builtin_type_signed_char,
4447 builtin_type_unsigned_char, builtin_type_unsigned_short,
4448 builtin_type_unsigned_int, builtin_type_unsigned_long,
4449 builtin_type_float, builtin_type_double, builtin_type_long_double,
4450 builtin_type_complex, builtin_type_double_complex, builtin_type_string,
4451 builtin_type_bool, builtin_type_long_long,
4452 builtin_type_unsigned_long_long, builtin_type_void_data_ptr,
4453 builtin_type_void_func_ptr, builtin_type_CORE_ADDR): Replace global
4454 variable declaration with compatibility macro.
4455 * gdbtypes.c (builtin_type_true_char, builtin_type_void,
4456 builtin_type_char, builtin_type_short, builtin_type_int,
4457 builtin_type_long, builtin_type_signed_char,
4458 builtin_type_unsigned_char, builtin_type_unsigned_short,
4459 builtin_type_unsigned_int, builtin_type_unsigned_long,
4460 builtin_type_float, builtin_type_double, builtin_type_long_double,
4461 builtin_type_complex, builtin_type_double_complex, builtin_type_string,
4462 builtin_type_bool, builtin_type_long_long,
4463 builtin_type_unsigned_long_long, builtin_type_void_data_ptr,
4464 builtin_type_void_func_ptr, builtin_type_CORE_ADDR): Remove.
4465 (build_gdbtypes): Remove.
4466 (_initialize_gdbtypes): Do not call build_gdbtypes, move installing
4467 opaque-type-resolution command here. Do not call
4468 deprecated_register_gdbarch_swap.
4470 2007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
4472 * gdbtypes.h (struct builtin_type): New members nodebug_text_symbol,
4473 nodebug_data_symbol, nodebug_unknown_symbol, and nodebug_tls_symbol.
4474 * gdbtypes.c (gdbtypes_post_init): Initialize nodebug_ default types.
4476 * parse.c (msym_text_symbol_type, msym_data_symbol_type): Remove.
4477 (msym_unknown_symbol_type, msym_tls_symbol_type): Remove.
4478 (write_exp_msymbol): Use builtin nodebug_ types instead of them.
4479 (build_parse): Remove.
4480 (_initialize_parse): Do not call build_parse. Do not register
4481 msym_ types for gdbarch-swapping.
4483 * dwarf2read.c (new_symbol): Use default nodebug_data_symbol type
4484 instead of creating private type.
4486 * xcoffread.c (func_symbol_type, var_symbol_type): Remove.
4487 (_initialize_xcoffread): Do not initialized them.
4488 (process_xcoff_symbol): Use builtin nodebug_ types instead of them.
4490 * mdebugread.c (nodebug_func_symbol_type): Remove.
4491 (nodebug_var_symbol_type): Remove.
4492 (_initialize_mdebugread): Do not initialize them.
4493 (parse_symbol): Use builtin nodebug_ type instead of them.
4494 (parse_procedure): Likewise.
4496 2007-06-21 Chris Dearman <chris@mips.com>
4498 * printcmd.c (do_one_display): If display/i, start with an initial
4499 line feed to avoid bad layout if there is a branch delay slot.
4501 2007-06-21 Nigel Stephens <nigel@mips.com>
4502 Maciej W. Rozycki <macro@mips.com>
4504 * disasm.c (gdb_print_insn): Return the number of branch delay
4505 slot instructions too.
4506 * disasm.h (gdb_print_insn): Update prototype.
4507 * printcmd.c (branch_delay_insns): New variable to record the
4508 number of delay slot instructions after disassembling a branch.
4509 (print_formatted): Record the number of branch delay slot
4511 (do_examine): When disassembling, if the last instruction
4512 disassembled has any branch delay slots, then bump the count so
4513 that they get disassembled too.
4514 * tui/tui-disasm.c (tui_disassemble): Update the call to
4516 * NEWS: Document the new behaviour.
4518 2007-06-21 Andreas Schwab <schwab@suse.de>
4520 * regcache.c (write_pc_pid): Restore missing else.
4522 2007-06-20 Ulrich Weigand <uweigand@de.ibm.com>
4524 * regcache.c (regcache_print): Use get_current_regcache ()
4525 instead of current_regcache.
4527 2007-06-20 H.J. Lu <hongjiu.lu@intel.com>
4530 * gcore.c (gcore_command): Use bfd_make_section_anyway_with_flags
4531 instead of bfd_make_section_anyway.
4532 (gcore_create_callback): Likewise. Also set SEC_NEVER_LOAD
4533 when clearing SEC_LOAD.
4535 2007-06-19 Joseph Myers <joseph@codesourcery.com>
4537 * arm-tdep.c (arm_push_dummy_call): Correct padding of partial
4538 registers for big-endian.
4540 2007-06-19 Markus Deuling <deuling@de.ibm.com>
4542 * gdbarch.sh (TARGET_PRINT_INSN): Replace by gdbarch_print_insn.
4543 * disasm.c (dump_insns, gdb_print_insn): Likewise.
4544 * gdbarch.c, gdbarch.h: Regenerate.
4546 2007-06-19 Markus Deuling <deuling@de.ibm.com>
4548 * gdbarch.sh (BELIEVE_PCC_PROMOTION): Replace by
4549 gdbarch_believe_pcc_promotion.
4550 * stabsread.c (define_symbol): Likewise.
4551 Remove unnecessary definition.
4552 * coffread.c (process_coff_symbol): Remove unnecessary code.
4553 * gdbarch.c, gdbarch.h: Regenerate.
4555 2007-06-19 Daniel Jacobowitz <dan@codesourcery.com>
4557 * configure.ac: Do not use ${objdir}.
4558 * configure: Regenerated.
4560 2007-06-18 Ulrich Weigand <uweigand@de.ibm.com>
4562 * gdbarch.sh (deprecated_register_size): Remove.
4563 * gdbarch.h, gdbarch.c: Regenerate.
4565 * arm-tdep.c (arm_push_dummy_call): Replace DEPRECATED_REGISTER_SIZE
4566 by INT_REGISTER_SIZE.
4567 (thumb_get_next_pc, arm_return_in_memory): Likewise.
4568 (arm_gdbarch_init): Do not call set_gdbarch_deprecated_register_size.
4569 * ia64-tdep.c (ia64_gdbarch_init): Do not call
4570 set_gdbarch_deprecated_register_size.
4572 2007-06-18 Markus Deuling <deuling@de.ibm.com>
4574 * gdbarch.sh (DEPRECATED_FP_REGNUM): Replace by
4575 gdbarch_deprecated_fp_regnum.
4576 * std-regs.c (value_of_builtin_frame_fp_reg): Likewise.
4577 * remote-mips.c (mips_wait, mips_fetch_registers): Likewise.
4578 * arch-utils.c (legacy_virtual_frame_pointer): Likewise.
4579 * arch-utils.h (gdbarch_virtual_frame_pointer_ftype): Likewise
4581 * gdbarch.c, gdbarch.h: Regenerate.
4583 2007-06-18 Markus Deuling <deuling@de.ibm.com>
4585 * gdbarch.sh (EXTRACT_RETURN_VALUE): Replace with
4586 gdbarch_extract_return_value.
4587 * value.c (generic_use_struct_convention): Likewise (comment).
4588 * ia64-tdep.c (ia64_use_struct_convention): Likewise (comment).
4589 * arch-utils.c (legacy_return_value): Likewise.
4590 * arch-utils.h (legacy_return_value): Likewise (comment).
4591 * gdbarch.sh (STORE_RETURN_VALUE): Replace by
4592 gdbarch_store_return_value.
4593 * stack.c (return_command): Likewise (comment).
4594 * arch-utils.h (legacy_return_value): Likewise (comment).
4595 * arch-utils.c (legacy_return_value): Likewise.
4596 * gdbarch.c, gdbarch.h: Regenerate.
4598 2007-06-18 Markus Deuling <deuling@de.ibm.com>
4600 * gdbarch.sh (DEPRECATED_USE_STRUCT_CONVENTION): Replace by
4601 gdbarch_deprecated_use_struct_convention.
4602 * arch-utils.c (legacy_return_value): Likewise.
4603 * gdbarch.c, gdbarch.h: Regenerate.
4605 2007-06-18 Markus Deuling <deuling@de.ibm.com>
4607 * gdbarch.sh (DEPRECATED_FUNCTION_START_OFFSET): Replace by
4608 gdbarch_deprecated_function_start_offset.
4609 * symtab.c (find_function_start_sal)skip_prologue_using_sal): Likewise.
4610 * linespec.c (minsym_found): Likewise.
4611 * infrun.c (handle_inferior_event): Likewise.
4612 * infcall.c (find_function_addr): Likewise.
4613 * cli/cli-cmds.c (disassemble_command): Likewise.
4614 * gdbarch.c, gdbarch.h: Regenerate.
4616 2007-06-18 Markus Deuling <deuling@de.ibm.com>
4618 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Replace by
4619 gdbarch_deprecated_reg_struct_has_addr.
4620 * infcall.c (call_function_by_hand): Likewise.
4621 (DEPRECATED_REG_STRUCT_HAS_ADDR_P): Replace by
4622 * gdbarch_deprecated_reg_struct_has_addr_p.
4623 * infcall.c (call_function_by_hand): Likewise.
4624 * gdbarch.c, gdbarch.h: Regenerate.
4626 2007-06-18 Markus Deuling <deuling@de.ibm.com>
4628 * gdbarch.sh (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
4629 * sh-tdep.c (sh_extract_struct_value_address): Remove.
4630 (sh_gdbarch_init): Remove
4631 set_gdbarch_deprecated_extract_struct_value_address.
4632 * sh64-tdep.c (sh64_extract_struct_value_address): Remove.
4633 (sh64_gdbarch_init): Remove
4634 set_gdbarch_deprecated_extract_struct_value_address.
4635 * ia64-tdep.c (ia64_extract_struct_value_address): Remove.
4636 (ia64_gdbarch_init): Remove
4637 set_gdbarch_deprecated_extract_struct_value_address.
4638 * frv-tdep.c (frv_extract_struct_value_address): Remove.
4639 (frv_gdbarch_init): Remove
4640 set_gdbarch_deprecated_extract_struct_value_address.
4641 * gdbarch.c, gdbarch.h: Regenerate.
4643 2007-06-18 Markus Deuling <deuling@de.ibm.com>
4645 * gdbarch.sh (SP_REGNUM): Replace by gdbarch_sp_regnum.
4646 * v850-tdep.c (v850_unwind_sp): Likewise.
4647 * std-regs.c (value_of_builtin_frame_sp_reg): Likewise.
4648 * stack.c (frame_info): Likewise.
4649 * stabsread.c (define_symbol): Likewise.
4650 * sh-tdep.c (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu)
4651 (sh_dwarf2_frame_init_reg, sh_frame_cache, sh_frame_prev_register)
4652 (sh_unwind_sp): Likewise.
4653 * sh64-tdep.c (sh64_push_dummy_call, sh64_frame_cache)
4654 (sh64_frame_prev_register, sh64_unwind_sp): Likewise.
4655 * rs6000-tdep.c (rs6000_push_dummy_call, rs6000_unwind_dummy_id)
4656 (rs6000_frame_cache): Likewise.
4657 * rs6000-nat.c (store_register): Likewise.
4658 * remote-mips.c (mips_wait): Likewise.
4659 * procfs.c (procfs_fetch_registers, procfs_store_registers): Likewise.
4660 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call)
4661 (ppc64_sysv_abi_push_dummy_call): Likewise.
4662 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_cache): Likewise.
4663 * ppcobsd-nat.c (ppcobsd_supply_pcb): Likewise.
4664 * ppcnbsd-tdep.c (ppcnbsd_sigtramp_cache_init): Likewise.
4665 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache): Likewise.
4666 * m32r-rom.c (m32r_supply_register): Likewise.
4667 * frame.c (frame_sp_unwind): Likewise.
4668 * mips-tdep.c (mips_insn16_frame_cache)
4669 (mips_insn32_frame_cache): Likewise (comment).
4670 * m68klinux-nat.c (supply_gregset): Likewise.
4671 * m68k-tdep.c (m68k_get_longjmp_target): Likewise.
4672 * ia64-tdep.c (ia64_frame_prev_register): Likewise.
4673 * i386-tdep.c (i386_get_longjmp_target): Likewise.
4674 * dwarf2-frame.c (dwarf2_frame_default_init_reg): Likewise.
4675 * cris-tdep.c (cris_regnums, cris_sigcontext_addr)
4676 (cris_sigtramp_frame_unwind_cache, cris_push_dummy_call)
4677 (cris_scan_prologue, crisv32_scan_prologue, cris_unwind_sp)
4678 (cris_register_type, crisv32_register_type)
4679 (cris_dwarf2_frame_init_reg): Likewise.
4680 * arch-utils.c (legacy_virtual_frame_pointer): Likewise.
4681 * amd64-tdep.c (amd64_frame_prev_register): Likewise.
4682 * amd64-linux-tdep.c (amd64_linux_sigcontext_addr): Likewise.
4683 * libunwind-frame.c (libunwind_frame_cache): Likewise.
4685 * gdbarch.sh (PC_REGNUM): Replace by gdbarch_pc_regnum.
4686 * regcache.c (read_pc_pid, generic_target_write_pc): Likewise.
4687 * xtensa-tdep.c (xtensa_register_type, xtensa_supply_gregset)
4688 (xtensa_unwind_pc, xtensa_frame_cache, xtensa_frame_prev_register)
4689 (xtensa_extract_return_value, xtensa_store_return_value): Likewise.
4690 * v850-tdep.c (v850_unwind_pc): Likewise.
4691 * stack.c (frame_info): Likewise.
4692 * sh-tdep.c (sh_generic_show_regs, sh3_show_regs, sh2e_show_regs)
4693 (sh2a_show_regs, sh2a_nofpu_show_regs, sh3e_show_regs)
4694 (sh3_dsp_show_regs, sh4_show_regs, sh4_nofpu_show_regs)
4695 (sh_dwarf2_frame_init_reg, sh_frame_prev_register, sh_unwind_pc)
4696 (sh_dsp_show_regs): Likewise.
4697 * shnbsd-tdep.c (shnbsd_supply_gregset)
4698 (shnbsd_collect_gregset): Likewise.
4699 * shnbsd-nat.c (GETREGS_SUPPLIES): Likewise.
4700 * sh64-tdep.c (sh64_compact_reg_base_num, sh64_show_media_regs)
4701 (sh64_frame_prev_register, sh64_unwind_pc): Likewise.
4702 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset)
4703 (6000_register_reggroup_p, rs6000_unwind_pc)
4704 (rs6000_frame_cache): Likewise.
4705 * rs6000-nat.c (regmap, rs6000_fetch_inferior_registers)
4706 (rs6000_store_inferior_registers): Likewise.
4707 * remote-mips.c (mips_wait, mips_load): Likewise.
4708 * procfs.c (procfs_fetch_registers, procfs_store_registers): Likewise.
4709 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_cache): Likewise.
4710 * ppcobsd-nat.c (ppcobsd_supply_pcb): Likewise.
4711 * ppcnbsd-tdep.c (ppcnbsd_sigtramp_cache_init): Likewise.
4712 * ppcnbsd-nat.c (getregs_supplies, ppcnbsd_supply_pcb): Likewise.
4713 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache): Likewise.
4714 * ppc-linux-nat.c (ppc_register_u_addr, fetch_ppc_registers)
4715 (store_ppc_registers, fill_gregset): Likewise.
4716 * mips-tdep.c (mips_stub_frame_cache, mips_gdbarch_init): Likewise.
4717 * mipsnbsd-tdep.c (mipsnbsd_supply_reg, mipsnbsd_fill_reg): Likewise.
4718 * mipsnbsd-nat.c (getregs_supplies): Likewise.
4719 * m68k-tdep.c (m68k_register_type, m68k_unwind_pc): Likewise.
4720 * m68klinux-nat.c (supply_gregset): Likewise.
4721 * irix5-nat.c (fill_gregset): Likewise.
4722 * i386-tdep.c (i386_unwind_pc): Likewise.
4723 * i386-linux-nat.c (i386_linux_resume): Likewise.
4724 * frame.c (get_prev_frame_1): Likewise.
4725 * dwarf2-frame.c (dwarf2_frame_default_init_reg): Likewise.
4726 * dbug-rom.c (dbug_supply_register): Likewise.
4727 * cris-tdep.c (cris_sigtramp_frame_unwind_cache, cris_scan_prologue)
4728 (crisv32_scan_prologue, cris_unwind_pc, cris_register_size)
4729 (cris_register_type, crisv32_register_type, crisv32_register_name)
4730 (cris_dwarf2_frame_init_reg, find_step_target)
4731 (cris_software_single_step, cris_supply_gregset)
4732 (cris_regnums): Likewise.
4733 * alpha-linux-nat.c (alpha_linux_register_u_offset): Likewise.
4734 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
4735 (fill_sprs64, fill_sprs32, store_regs_user_thread): Likewise.
4736 * std-regs.c (value_of_builtin_frame_pc_reg): Likewise.
4737 * mips-linux-tdep.c (mips_linux_write_pc): Likewise.
4739 * gdbarch.sh (PS_REGNUM): Replace by gdbarch_ps_regnum.
4740 * dbug-rom.c (dbug_supply_register): Likewise.
4741 * xtensa-tdep.c (xtensa_supply_gregset, xtensa_frame_cache)
4742 (xtensa_frame_prev_register, xtensa_push_dummy_call): Likewise.
4743 * win32-nat.c (win32_resume): Likewise.
4744 * std-regs.c (value_of_builtin_frame_ps_reg): Likewise.
4745 * m68k-tdep.c (m68k_register_type): Likewise.
4746 * m68klinux-nat.c (supply_gregset): Likewise.
4748 * gdbarch.sh (FP0_REGNUM): Replace by gdbarch_fp0_regnum.
4749 * sh-tdep.c (sh_extract_return_value_fpu, sh_store_return_value_fpu)
4750 (sh2e_show_regs, sh2a_show_regs, sh3e_show_regs, sh4_show_regs)
4751 (sh_sh2a_register_type, sh_sh3e_register_type, sh_sh4_register_type)
4752 (fv_reg_base_num, dr_reg_base_num): Likewise.
4753 * sh64-tdep.c (sh64_fv_reg_base_num, sh64_dr_reg_base_num)
4754 (sh64_fpp_reg_base_num, sh64_compact_reg_base_num, sh64_push_dummy_call)
4755 (sh64_extract_return_value, sh64_store_return_value)
4756 (sh64_show_media_regs, sh64_show_compact_regs, sh64_register_type)
4757 (sh64_do_fp_register, sh64_media_print_registers_info): Likewise.
4758 * procfs.c (procfs_fetch_registers, procfs_store_registers)
4759 (invalidate_cache): Likewise.
4760 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache): Likewise.
4761 * mipsnbsd-tdep.c (mipsnbsd_supply_fpreg)
4762 (mipsnbsd_fill_fpreg): Likewise.
4763 * mipsnbsd-nat.c (mipsnbsd_fetch_inferior_registers)
4764 (mipsnbsd_store_inferior_registers): Likewise.
4765 * mips-linux-tdep.c (mips_supply_fpregset, mips_fill_fpregset)
4766 (mips64_supply_fpregset, mips64_fill_fpregset): Likewise.
4767 * mips-linux-nat.c (mips64_linux_register_addr): Likewise.
4768 * m68k-tdep.c (m68k_register_type, m68k_convert_register_p): Likewise.
4769 * m68klinux-nat.c (getfpregs_supplies, supply_fpregset)
4770 (fill_fpregset): Likewise.
4771 * irix5-nat.c (supply_fpregset, fill_fpregset): Likewise.
4772 * i386-tdep.h (struct_return): Likewise (comment).
4773 * i386-nto-tdep.c (i386nto_register_area): Likewise.
4774 * go32-nat.c (fetch_register, go32_fetch_registers, store_register)
4775 (go32_store_registers): Likewise.
4776 * alpha-tdep.c (alpha_next_pc): Likewise.
4777 * alpha-linux-nat.c (alpha_linux_register_u_offset): Likewise.
4778 * alphabsd-nat.c (alphabsd_fetch_inferior_registers)
4779 (alphabsd_store_inferior_registers): Likewise.
4780 * core-regset.c (fetch_core_registers): Likewise.
4781 * i386v4-nat.c (supply_fpregset, fill_fpregset): Likewise.
4783 * gdbarch.c, gdbarch.h: Regenerate.
4785 2007-06-18 Daniel Jacobowitz <dan@codesourcery.com>
4787 * coffread.c (coff_sym_fns): Add default_symfile_segments.
4788 * dbxread.c (start_psymtab): Check HAVE_ELF.
4789 (aout_sym_fns): Likewise.
4790 * elfread.c (elf_symfile_segments): New.
4791 (elf_sym_fns): Add elf_symfile_segments.
4792 * mipsread.c (ecoff_sym_fns): Add default_symfile_segments.
4793 * remote.c (get_offsets): Use symfile_map_offsets_to_segments.
4794 Skip if there is no symfile_objfile. Handle TextSeg and DataSeg.
4795 * somread.c (som_sym_fns): Use default_symfile_segments.
4796 * symfile.c (find_sym_fns): Take a BFD and return the sym_fns.
4797 (init_objfile_sect_indices): Call symfile_find_segment_sections.
4798 (default_symfile_segments): New function.
4799 (syms_from_objfile): Update call to find_sym_fns.
4800 (symfile_get_segment_data, free_symfile_segment_data): New.
4801 (symfile_map_offsets_to_segments): New.
4802 (symfile_find_segment_sections): New.
4803 * symfile.h (struct symfile_segment_data): New.
4804 (struct sym_fns): Add sym_segments.
4805 (default_symfile_segments, symfile_get_segment_data)
4806 (free_symfile_segment_data): New prototypes.
4807 (symfile_map_offsets_to_segments): Likewise.
4808 * xcoffread.c (xcoff_sym_fns): Add default_symfile_segments.
4809 * Makefile.in (COMMON_OBS): Remove elfread.o.
4810 (elf_internal_h): New.
4811 (elfread.o): Update.
4812 * configure.ac: Add elfread.o to COMMON_OBS if bfd/elf.o was
4814 * config.in, configure: Regenerated.
4815 * NEWS: Mention qOffsets changes.
4817 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
4819 * gdbtypes.h (builtin_type_m2_char, builtin_type_m2_int,
4820 builtin_type_m2_card, builtin_type_m2_real, builtin_type_m2_bool):
4821 Replace global variable declaration with compatibility macro.
4822 (struct builtin_m2_type): New data type.
4823 (builtin_m2_type): Add prototype.
4824 * m2-lang.c (builtin_type_m2_char, builtin_type_m2_int,
4825 builtin_type_m2_card, builtin_type_m2_real, builtin_type_m2_bool):
4826 Remove global variables.
4827 (m2_language_arch_info): Use builtin_m2_type instead of variables.
4828 (build_m2_types): New function.
4829 (m2_type_data): New variable.
4830 (builtin_m2_type): New function.
4831 (_initialize_m2_language): Do not build data types. Register
4832 m2_type_data per-gdbarch data.
4834 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
4836 * gdbtypes.h (builtin_type_f_character, builtin_type_f_logical,
4837 builtin_type_f_logical_s1, builtin_type_f_logical_s2,
4838 builtin_type_f_integer, builtin_type_f_integer_s2, builtin_type_f_real,
4839 builtin_type_f_real_s8, builtin_type_f_real_s16,
4840 builtin_type_f_complex_s8, builtin_type_f_complex_s16,
4841 builtin_type_f_complex_s32, builtin_type_f_void): Replace global
4842 variable declaration with compatibility macro.
4843 (struct builtin_f_type): New data type.
4844 (builtin_f_type): Add prototype.
4845 * f-lang.c (builtin_type_f_character, builtin_type_f_logical,
4846 builtin_type_f_logical_s1, builtin_type_f_logical_s2,
4847 builtin_type_f_integer, builtin_type_f_integer_s2, builtin_type_f_real,
4848 builtin_type_f_real_s8, builtin_type_f_real_s16,
4849 builtin_type_f_complex_s8, builtin_type_f_complex_s16,
4850 builtin_type_f_complex_s32, builtin_type_f_void): Remove variables.
4851 (f_language_arch_info): Use builtin_f_type instead of variables.
4852 (build_fortran_types): Build builtin_f_type structure instead of
4853 setting global type variables.
4854 (f_type_data): New variable.
4855 (builtin_f_type): New function.
4856 (_initialize_f_language): Do not call build_fortran_types. Do not
4857 swap global type variables. Register f_type_data per-gdbarch data.
4859 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
4861 * f-lang.c (_initialize_f_language): Do not initialize or
4862 swap builtin_type_string.
4864 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
4866 * std-regs.c (builtin_type_frame_reg, build_builtin_type_frame_reg,
4867 value_of_builtin_frame_reg): Remove.
4868 (_initialize_frame_reg): Do not swap builtin_type_frame_reg. Remove
4869 inactive call to value_of_builtin_frame_reg.
4871 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
4873 * gdbarch.sh (bfd_vma_bit): Remove.
4874 * gdbarch.c, gdbarch.h: Regenerate.
4876 * gdbtypes.h (builtin_bfd_vma_type): Remove.
4877 * gdbtypes.h (builtin_bfd_vma_type): Remove.
4878 (build_gdbtypes): Do not initialize it.
4879 (_initialize_gdbtypes): Do not swap it.
4881 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
4883 * gdbtypes.c (builtin_type_v2_double, builtin_type_v4_float,
4884 builtin_type_v2_int64, builtin_type_v4_int32, builtin_type_v8_int16,
4885 builtin_type_v16_int8, builtin_type_v2_float, builtin_type_v2_int32,
4886 builtin_type_v4_int16, builtin_type_v8_int8, builtin_type_v4sf,
4887 builtin_type_v4si, builtin_type_v16qi, builtin_type_v8qi,
4888 builtin_type_v8hi, builtin_type_v4hi, builtin_type_v2si,
4889 builtin_type_vec64, builtin_type_vec128): Remove.
4890 (init_simd_type): Remove.
4891 (init_vector_type): Make global.
4892 (build_builtin_type_vec64, build_builtin_type_vec128): Remove.
4893 (build_gdbtypes): Do not build vector types.
4894 (_initialize_gdbtypes): Do not swap vector types.
4895 * gdbtypes.h (builtin_type_v2_double, builtin_type_v4_float,
4896 builtin_type_v2_int64, builtin_type_v4_int32, builtin_type_v8_int16,
4897 builtin_type_v16_int8, builtin_type_v2_float, builtin_type_v2_int32,
4898 builtin_type_v4_int16, builtin_type_v8_int8, builtin_type_v4sf,
4899 builtin_type_v4si, builtin_type_v16qi, builtin_type_v8qi,
4900 builtin_type_v8hi, builtin_type_v4hi, builtin_type_v2si,
4901 builtin_type_vec64, builtin_type_vec128): Remove declarations.
4902 (init_vector_type): Add prototype.
4904 * i386-tdep.h (struct gdbarch_tdep): Add i386_mmx_type and
4905 i386_sse_type members.
4906 (i386_mmx_type, i386_sse_type): Change from variables to functions.
4907 * i386-tdep.c (i386_mmx_type, i386_sse_type): Remove variables.
4908 (i386_init_types): Do not build vector types.
4909 (i386_mmx_type, i386_sse_type): New functions.
4910 (i386_register_type): Call them instead of using global variables.
4911 (i386_gdbarch_init): Use XCALLOC to allocate tdep structure.
4912 * amd64-tdep.c (amd64_register_type): Call i386_sse_type instead
4913 of using global variable.
4915 * rs6000-tdep.h (struct gdbarch_tdep): Add ppc_builtin_type_vec64
4916 and ppc_builtin_type_vec128 members.
4917 * rs6000-tdep.c (rs6000_builtin_type_vec64): New function.
4918 (rs6000_builtin_type_vec128): Likewise.
4919 (rs6000_register_type): Call them instead of using builtin_type_vec64
4920 and builtin_type_vec128.
4921 (rs6000_gdbarch_init): Use XCALLOC to allocate tdep structure.
4923 * spu-tdep.c (struct gdbarch_tdep): New data type.
4924 (spu_builtin_type_vec128): Remove variable.
4925 (spu_builtin_type_vec128): New function.
4926 (spu_register_type): Call it instead of using global variable.
4927 (spu_gdbarch_init): Allocate tdep structure.
4928 (spu_init_vector_type): Remove function.
4929 (_initialize_spu_tdep): Do not call it.
4931 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
4933 * amd64-tdep.c (struct amd64_register_info): Remove.
4934 (amd64_register_info): Remove.
4935 (amd64_register_names): New static variable.
4936 (AMD64_NUM_REGS): Use amd64_register_names instead of
4937 amd64_register_info.
4938 (amd64_register_name): Likewise.
4939 (amd64_register_type): Do not refer to amd64_register_info.
4941 * s390-tdep.c (struct s390_register_info): Remove.
4942 (s390_register_info): Remove.
4943 (s390_register_name): Do not refer to s390_register_info.
4944 (s390_register_type): Likewise.
4946 * sparc64-tdep.c (struct sparc64_register_info): Remove.
4947 (sparc64_register_info, sparc64_pseudo_register_info): Remove.
4948 (sparc64_register_names, sparc64_pseudo_register_names): New.
4949 (SPARC64_NUM_REGS, SPARC64_NUM_PSEUDO_REGS): Use
4950 sparc64_register_names and sparc64_pseudo_register_names instead of
4951 sparc64_register_info and sparc64_pseudo_register_info.
4952 (sparc64_register_name): Likewise.
4953 (sparc64_register_type): Do not refer to sparc64_register_info
4954 and sparc64_pseudo_register_info.
4956 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
4958 * c-lang.c (cplus_builtin_types): Remove.
4959 (enum cplus_primitive_types): New data type.
4960 (cplus_language_arch_info): New function.
4961 (cplus_language_defn): Set la_language_arch_info member. Do not set
4962 la_builtin_type_vector and string_char_type members.
4964 * f-lang.c (f_builtin_types): Remove.
4965 (enum f_primitive_types): New data type.
4966 (f_language_arch_info): New function.
4967 (f_language_de): Set la_language_arch_info member. Do not set
4968 la_builtin_type_vector and string_char_type members.
4970 * m2-lang.c (m2_builtin_types): Remove.
4971 (enum m2_primitive_types): New data type.
4972 (m2_language_arch_info): New function.
4973 (m2_language_defn): Set la_language_arch_info member. Do not set
4974 la_builtin_type_vector and string_char_type members.
4976 * objc-lang.c (objc_builtin_types): Remove.
4977 (objc_language): Set la_language_arch_info member. Do not set
4978 la_builtin_type_vector and string_char_type members.
4980 * p-lang.c (pascal_builtin_types): Remove.
4981 (enum pascal_primitive_types): New data type.
4982 (pascal_language_arch_info): New function.
4983 (pascal_language_defn): Set la_language_arch_info member. Do not set
4984 la_builtin_type_vector and string_char_type members.
4986 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
4988 * regcache.c (struct regcache): Add ptid_t member.
4989 (regcache_xmalloc): Initialize it.
4990 (regcache_cpy_no_passthrough): Do not refer to current_regcache.
4991 (regcache_dup): Likewise.
4992 (regcache_dup_no_passthrough): Likewise.
4993 (current_regcache): Make static.
4994 (registers_ptid): Remove variable.
4995 (get_thread_regcache): New function.
4996 (get_current_regcache): New function.
4997 (registers_changed): Implement by freeing current regcache.
4998 (regcache_raw_read): Do not refer to current_regcache. Set
4999 inferior_ptid to regcache->ptid while calling target routines.
5000 (regcache_raw_write): Likewise.
5001 (regcache_raw_supply): Do not refer to current_regcache.
5002 (read_pc_pid): Use thread regcache. Do not modify inferior_ptid.
5003 (write_pc_pid): Likewise.
5004 (build_regcache): Remove.
5005 (_initialize_regcache): Do not call DEPRECATED_REGISTER_GDBARCH_SWAP
5006 or deprecated_register_gdbarch_swap. Do not initialize
5008 * regcache.h (get_current_regcache): Add prototype.
5009 (get_thread_regcache): Likewise.
5010 (current_regcache): Remove declaration.
5012 * corelow.c (core_open): Replace current_regcache by
5013 get_current_regcache ().
5014 * frame.c (frame_pop): Likewise.
5015 (put_frame_register): Likewise.
5016 (get_current_frame, create_new_frame): Likewise.
5017 * mi/mi-main.c (mi_cmd_data_write_register_values): Likewise.
5018 * stack.c (return_command): Likewise.
5019 * infcall.c (call_function_by_hand): Likewise.
5020 * infrun.c (resume): Likewise.
5021 (save_inferior_status, restore_inferior_status): Likewise.
5022 * linux-fork.c (fork_load_infrun_state): Likewise.
5023 (fork_save_infrun_state): Likewise.
5024 * win32-nat.c (win32_resume): Likewise.
5025 * i386fbsd-nat.c (i386fbsd_resume): Likewise.
5026 * monitor.c (monitor_wait): Likewise.
5027 * remote.c (remote_wait): Likewise.
5028 * remote-mips.c (mips_wait): Likewise.
5030 * bsd-kvm.c (bsd_kvm_open): Likewise
5031 (bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd): Likewise.
5032 * fbsd-nat.c (fbsd_make_corefile_notes): Likewise.
5033 * i386-linux-nat.c (i386_linux_resume): Likewise.
5034 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Likewise.
5035 (ia64_linux_stopped_data_address): Likewise.
5037 * frv-tdep.c (frv_fdpic_loadmap_addresses): Likewise.
5038 * m32c-tdep.c (m32c_virtual_frame_pointer): Likewise.
5039 * mep-tdep.c (current_me_module, current_options): Likewise.
5040 * mips-tdep.c (deprecated_mips_set_processor_regs_hack): Likewise.
5042 * linux-nat.c (linux_nat_do_thread_registers): Use thread
5043 regcache instead of current_regcache. Call target_fetch_registers.
5044 (linux_nat_corefile_thread_callback): Update call site.
5045 (linux_nat_do_registers): Likewise.
5046 * procfs.c (procfs_do_thread_registers): Use thread regcache instead
5047 of current_regcache.
5048 (procfs_make_note_section): Likewise.
5049 * proc-service.c (ps_lgetregs, ps_lsetregs): Likewise.
5050 (ps_lgetfpregs, ps_lsetfpregs): Likewise.
5051 * sol-thread.c (ps_lgetregs, ps_lsetregs): Likewise.
5052 (ps_lgetfpregs, ps_lsetfpregs): Likewise.
5054 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
5056 * regcache.c (read_register, read_register_pid): Remove.
5057 (write_register, write_register_pid): Likewise.
5058 * regcache.h (read_register, read_register_pid): Remove prototype.
5059 (write_register, write_register_pid): Likewise.
5061 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
5063 * gdbarch.sh (read_pc): Add REGCACHE argument. Remove PTID argument.
5064 (write_pc): Likewise. Remove default implementation, add predicate.
5065 * gdbarch.c, gdbarch.h: Regenerate.
5066 * regcache.c (read_pc_pid): Use current regcache instead of calling
5068 (write_pc_pid): Check gdbarch_write_pc predicate, implement default
5070 (generic_target_write_pc): Remove.
5071 * inferior.h (generic_target_write_pc): Remove.
5072 * frv-tdep.c (frv_gdbarch_init): Do not install it.
5073 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
5074 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
5075 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
5076 * sh-tdep.c (sh_gdbarch_init): Likewise.
5077 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
5079 * avr-tdep.c (avr_read_pc): Add REGCACHE argument. Remove PTID
5080 argument. Use REGCACHE instead of calling read_register_pid.
5081 * hppa-hpux-tdep.c (hppa_hpux_read_pc): Likewise.
5082 * hppa-tdep.c (hppa_read_pc): Likewise.
5083 * hppa-tdep.h (hppa_read_pc): Likewise.
5084 * ia64-tdep.c (ia64_read_pc): Likewise.
5085 * m32r-tdep.c (m32r_read_pc): Likewise.
5086 * mep-tdep.c (mep_read_pc): Likewise.
5087 * mn10300-tdep.c (mn10300_read_pc): Likewise.
5088 * spu-tdep.c (spu_read_pc): Likewise.
5090 * arm-tdep.c (arm_write_pc): Add REGCACHE argument. Remove PTID
5091 argument. Use REGCACHE instead of calling write_register_pid.
5092 * avr-tdep.c (avr_write_pc): Likewise.
5093 * hppa-hpux-tdep.c (hppa_hpux_write_pc): Likewise.
5094 * hppa-tdep.c (hppa_write_pc): Likewise.
5095 * hppa-tdep.h (hppa_write_pc): Likewise.
5096 * i386-linux-tdep.c (i386_linux_write_pc): Likewise.
5097 * amd64-linux-tdep.c (amd64_linux_write_pc): Likewise.
5098 * ia64-linux-tdep.c (ia64_linux_write_pc): Likewise.
5099 * ia64-tdep.c (ia64_write_pc): Likewise.
5100 * ia64-tdep.h (ia64_write_pc): Likewise.
5101 * m32r-tdep.c (m32r_write_pc): Likewise.
5102 * m88k-tdep.c (m88k_write_pc): Likewise.
5103 * mep-tdep.c (mep_write_pc): Likewise.
5104 * mips-tdep.c (mips_write_pc): Likewise.
5105 * mips-linux-tdep.c (mips_linux_write_pc): Likewise.
5106 * mn10300-tdep.c (mn10300_write_pc): Likewise.
5107 * sparc-tdep.c (sparc_write_pc): Likewise.
5108 * spu-tdep.c (spu_write_pc): Likewise.
5110 * mips-tdep.c (read_signed_register): Remove.
5111 (read_signed_register_pid): Likewise.
5112 (mips_read_pc): Add REGCACHE argument. Remove PTID argument.
5113 Use REGCACHE instead of calling read_signed_register_pid.
5115 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
5117 * gdbarch.sh (push_dummy_code): Add REGCACHE argument.
5118 * gdbarch.c, gdbarch.h: Regenerate.
5119 * infcall.c (generic_push_dummy_code): Add REGCACHE argument.
5120 (push_dummy_code): Likewise. Pass it to callee.
5121 (call_function_by_hand): Pass current regcache to push_dummy_code.
5123 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Add REGCACHE
5124 argument. Use it instead of current_regcache.
5126 * cris-tdep.c (cris_push_dummy_code): Add REGCACHE argument.
5127 * sparc-tdep.c (sparc32_push_dummy_code): Likewise.
5129 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
5131 * gdbarch.sh (get_longjmp_target): Add FRAME argument.
5132 * gdbarch.c, gdbarch.h: Regenerate.
5133 * infrun.c (handle_inferior_event): Pass current frame to
5134 gdbarch_get_longjmp_target.
5136 * alpha-tdep.c (alpha_get_longjmp_target): Add FRAME argument.
5137 Read registers from FRAME instead of using read_register.
5138 Use get_frame_arch instead of current_gdbarch.
5139 * arm-tdep.c (arm_get_longjmp_target): Likewise.
5140 * i386-tdep.c (i386_get_longjmp_target): Likewise.
5141 * m68k-tdep.c (m68k_get_longjmp_target): Likewise.
5142 * mips-linux-tdep.c (mips_linux_get_longjmp_target): Likewise.
5143 (mips64_linux_get_longjmp_target): Likewise.
5144 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Likewise.
5146 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
5148 * gdbarch.sh (skip_trampoline_code): Add FRAME argument.
5149 * gdbarch.c, gdbarch.h: Regenerate.
5150 * arch-utils.c (generic_skip_trampoline_code): Add FRAME argument.
5151 * arch-utils.h (generic_skip_trampoline_code): Likewise.
5152 * infrun.c (handle_inferior_event): Pass current frame to
5153 gdbarch_skip_trampoline_code and skip_language_trampoline.
5155 * language.c (unk_lang_trampoline): Add FRAME argument.
5156 (skip_language_trampoline): Add FRAME argument. Pass it to
5157 skip_trampoline callback.
5158 * language.h: Add forward declaration of struct frame_info.
5159 (struct language_defn): Add FRAME argument to skip_trampoline.
5160 (skip_language_trampoline): Add FRAME argument.
5161 * cp-abi.c (cplus_skip_trampoline): Add FRAME argument. Pass it
5162 to skip_trampoline callback.
5163 * cp-abi.h: Add forward declaration of struct frame_info.
5164 (cplus_skip_trampoline): Add FRAME argument.
5165 (struct cp_abi_ops): Add FRAME argument to skip_trampoline callback.
5166 * gnu-v3-abi.c (gnuv3_skip_trampoline): Add FRAME argument. Pass it
5167 to gdbarch_skip_trampoline_code.
5168 * objc-lang.c (objc_skip_trampoline): Add FRAME argument. Pass it
5169 to gdbarch_skip_trampoline_code.
5171 * minsyms.c (find_solib_trampoline_target): Add FRAME argument.
5172 * symtab.h (find_solib_trampoline_target): Likewise.
5173 * obsd-tdep.c (obsd_skip_solib_resolver): Pass current frame to
5174 find_solib_trampoline_target.
5176 * arm-tdep.c (arm_skip_stub): Add FRAME argument. Read registers
5177 from FRAME instead of calling read_register.
5179 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code): Add FRAME
5180 argument. Read registers from FRAME instead of using read_register.
5181 * hppa-tdep.c (hppa_skip_trampoline_code): Likewise.
5182 * hppa-tdep.h (hppa_skip_trampoline_code): Add FRAME argument.
5184 * i386-cygwin-tdep.c (i386_cygwin_skip_trampoline_code): Add FRAME
5187 * m32c-tdep.c (m32c_skip_trampoline_code): Add FRAME argument.
5189 * mips-tdep.c (mips_skip_trampoline_code): Add FRAME argument. Read
5190 registers from FRAME instead of using read_signed_register.
5192 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Add FRAME
5194 (ppc64_standard_linkage_target): Likewise. Read registers from FRAME
5195 instead of using read_register.
5196 (ppc64_skip_trampoline_code): Add FRAME argument. Pass it to
5197 ppc64_standard_linkage_target.
5198 * rs6000-tdep.c (rs6000_skip_trampoline_code): Add FRAME argument.
5199 Pass it to find_solib_trampoline_target. Read registers from FRAME
5200 instead of using read_register.
5202 * xstormy16-tdep.c (xstormy16_skip_trampoline_code): Add FRAME
5205 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
5207 * gdbarch.sh (software_single_step): Replace REGCACHE argument by
5209 * gdbarch.c, gdbarch.h: Regenerate.
5210 * infrun.c (resume): Pass current frame to SOFTWARE_SINGLE_STEP.
5212 * alpha-tdep.c (alpha_next_pc): Add FRAME argument. Retrieve
5213 registers from FRAME instead of using read_register.
5214 (alpha_software_single_step): Replace REGCACHE by FRAME. Pass FRAME
5215 to alpha_next_pc. Use get_frame_pc instead of read_pc.
5216 * alpha-tdep.h (alpha_software_single_step): Replace REGCACHE
5219 * arm-tdep.c (shifted_reg_val): Add FRAME argument. Read registers
5220 from FRAME instead of using read_register.
5221 (thumb_get_next_pc): Likewise.
5222 (arm_get_next_pc): Likewise.
5223 (arm_software_single_step): Replace REGCACHE by FRAME. Pass FRAME
5224 to arm_get_next_pc. Use get_frame_pc instead of read_register.
5225 * arm-tdep.h (arm_software_single_step): Replace REGCACHE
5228 * cris-tdep.c (find_step_target): Add FRAME argument. Read registers
5229 from FRAME instead of using read_register.
5230 (cris_software_single_step): Replace REGCACHE by FRAME. Pass FRAME
5231 to find_step_target.
5233 * mips-tdep.c (mips32_next_pc): Add FRAME argument. Read registers
5234 from FRAME instead of using read_register / read_signed_register.
5235 (extended_mips16_next_pc): Likewise.
5236 (mips16_next_pc): Likewise.
5237 (mips_next_pc): Likewise.
5238 (mips_software_single_step): Replace REGCACHE by FRAME. Pass FRAME
5239 to mips_next_pc. Use get_frame_pc instead of read_pc.
5240 * mips-tdep.h (mips_software_single_step): Replace REGCACHE
5243 * rs6000-tdep.c (branch_dest): Add FRAME argument. Use it instead
5244 of current frame. Read registers from FRAME.
5245 (deal_with_atomic_sequence): Add FRAME argument. Pass it to
5246 branch_dest. Use get_frame_pc instead of read_pc.
5247 (rs6000_software_single_step): Likewise.
5248 (bl_to_blrl_insn_p): Do not call branch_dest.
5249 * rs6000-tdep.h (rs6000_software_single_step): Replace REGCACHE
5252 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Add FRAME argument.
5253 Read registers from FRAME instead of current regcache.
5254 * sparc-linux-tdep.c (sparc32_linux_step_trap): Likewise.
5255 * sparcnbsd-tdep.c (sparcnbsd_step_trap): Likewise.
5256 * sparc-tdep.c (sparc_address_from_register): Remove.
5257 (sparc_analyze_control_transfer): Pass FRAME argument instead of
5258 GDBARCH. Pass FRAME to step_trap callback.
5259 (sparc_step_trap): Add FRAME argument.
5260 (space_software_single_step): Replace REGCACHE by FRAME. Pass FRAME
5261 to sparc_analyze_control_transfer. Read registers from FRAME instead
5262 of calling sparc_address_from_register.
5263 * sparc-tdep.h (struct gdbarch_tdep): Add FRAME argument to
5265 (sparc_address_from_register): Remove prototype.
5266 (sparc_software_single_step): Replace REGCACHE argument by FRAME.
5267 (sparcnbsd_step_trap): Add FRAME argument.
5269 * spu-tdep.c (spu_software_single_step): Replace REGCACHE argument
5270 by FRAME. Read registers from FRAME instead of REGCACHE.
5272 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
5274 * arm-tdep.c (arm_print_float_info): Use register value from FRAME
5275 instead of calling read_register.
5277 * avr-tdep.c (avr_push_dummy_call): Write to REGCACHE instead of
5278 calling write_register.
5280 * hppa-tdep.c (hppa32_push_dummy_call): Write to REGCACHE instead of
5281 calling write_register.
5283 * ia64-tdep.c (find_func_descr): Add REGCACHE parameter. Use it
5284 instead of calling read_register.
5285 (ia64_push_dummy_call): Update call to find_func_descr. Use REGCACHE
5286 instead of calling read_register and write_register.
5288 * m32r-tdep.c (m32r_linux_supply_gregset): Use REGCACHE parameter
5289 instead of current_regcache.
5291 * mn10300-tdep.c (mn10300_push_dummy_call): Write to REGCACHE instead
5292 of calling write_register.
5293 * mn10300-linux-tdep.c (am33_supply_fpregset_method): Use REGCACHE
5294 parameter instead of current_regcache.
5296 * mips-tdep.c (mips2_fp_compat): Add FRAME parameter. Use it
5297 instead of calling read_register.
5298 (mips_read_fp_register_double, mips_print_fp_register): Update calls.
5299 (mips_eabi_push_dummy_call): Use REGCACHE instead of write_register.
5300 (mips_n32n64_push_dummy_call): Likewise.
5301 (mips_o32_push_dummy_call): Likewise.
5302 (mips_o64_push_dummy_call): Likewise.
5304 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Use REGCACHE
5305 parameter instead of current_regcache.
5307 * xtensa-tdep.c (xtensa_register_write_masked): Add REGCACHE parameter.
5308 Use it instead of read_register and write_register.
5309 (xtensa_register_read_masked): Likewise.
5310 (xtensa_pseudo_register_read): Update call.
5311 (xtensa_pseudo_register_write): Likewise.
5312 (xtensa_frame_cache): Use register values unwound from NEXT_FRAME
5313 instead of calling read_register.
5314 (xtensa_push_dummy_call): Update comment.
5316 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
5318 * mips-tdep.c (mips16_scan_prologue): Replace read_next_frame_reg
5319 by frame_unwind_register_signed calls.
5320 (mips32_scan_prologue): Likewise. Skip analysis of alloca stack
5321 frame allocations when called with NULL NEXT_FRAME parameter.
5322 (read_next_frame_reg): Remove.
5324 * sh-tdep.c (sh_analyze_prologue): Add FPSCR parameter. Use it
5325 instead of reading the FPSCR register.
5326 (sh_frame_cache): Pass unwound FPSCR register value to
5327 sh_analyze_prologue.
5328 (sh_skip_prologue): Pass dummy FPSCR value to sh_analyze_prologue.
5330 * v850-tdep.c (v850_analyze_prologue): Add CTBP parameter. Use it
5331 instead of reading the CTBP register.
5332 (v850_frame_cache): Pass unwound CTBP register value to
5333 v850_analyze_prologue.
5335 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
5337 * sh-tdep.h (sh_show_regs): Add FRAME parameter.
5338 * sh-tdep.c (sh_show_regs): Likewise.
5339 (sh_show_regs_command): Pass current frame to sh_show_regs routine.
5340 (sh_generic_show_regs): Add FRAME parameter. Use register
5341 values from that frame instead of calling read_register.
5342 (sh3_show_regs, sh2e_show_regs, sh2a_show_regs, sh2a_nofpu_show_regs,
5343 sh3e_show_regs, sh3_dsp_show_regs, sh4_show_regs, sh4_nofpu_show_regs,
5344 sh_dsp_show_regs): Likewise.
5345 * sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs,
5346 sh64_show_regs): Likewise.
5348 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
5350 * mips-tdep.c (deprecated_mips_set_processor_regs_hack): Read from
5351 current regcache instead of calling read_register.
5353 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
5355 * mep-tdep.c (current_me_module): Read from current regcache
5356 instead of calling read_register.
5357 (current_options): Likewise.
5359 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
5361 * cris-tdep.c (cris_stopped_data_address): Read register values
5362 from current frame instead of calling read_register.
5363 * frv-tdep.c (frv_stopped_data_address): Likewise.
5365 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
5367 * solib-sunos.c (sunos_solib_create_inferior_hook): Use write_pc
5368 instead of write_register (PC_REGNUM, ...).
5370 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
5372 * solib-sunos.c (sunos_solib_create_inferior_hook): Add comment
5373 explaining why the PC adjustment code is necessary.
5375 2007-06-15 Vladimir Prus <vladimir@codesourcery.com>
5377 * m68k-tdep.h (enum m68k_flavour): New.
5378 (struct gdbarch_tdep): New fields
5379 float_return, flavour and fpregs_present.
5380 * m68k-tdep.c (m68k_register_type): Use
5381 fpregs_present and conditionalize floating
5382 registers type on flavour.
5383 (m68k_register_names): New.
5384 (m68k_register_name): Use the above.
5385 (m68k_convert_register_p): Consult fpregs_present.
5386 (m68k_register_to_value, m68k_value_to_register):
5387 Use register_type to obtain the type of floating
5389 (m68k_svr4_extract_return_value): Check tdep->float_return.
5390 Use register_type to get the type of floating
5392 (m68k_svr4_store_return_value): Likewise.
5393 (m68k_dwarf_reg_to_regnum): Check tdep->fpregs_present.
5394 (m68k_analyze_register_saves): Likewise.
5395 (m68k_gdbarch_init): Extract infromation
5396 from XML description, if present. Guess coldfire by
5397 looking at the file, if present. Conditionalize
5398 setting of long double format. Set decr_pc_after_break
5399 to 2 on coldfire and fido. Enable XML-driven
5400 register description.
5401 * m68kbsd-tdep.c (m68kbsd_fpreg_offset): Use
5402 size of tdep->fpreg_type, as opposed to hardcoded value.
5403 * Makefile.in (m68k-tdep.o): Update dependencies.
5405 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
5407 * NEWS: Mention "info spu" commands and qXfer:spu:read and
5408 qXfer:spu:write remote packet types.
5410 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
5412 * xml-tdesc.c (tdesc_start_target): New.
5413 (target_attributes): New.
5414 (tdesc_elements): Use it.
5415 * features/gdb-target.dtd: Add #FIXED version attribute for
5418 2007-06-13 Arthur Huillet <arthur.huillet@free.fr>
5420 * mi/mi-cmd-var.c (mi_cmd_var_assign): Fix typo.
5422 2007-06-13 Claudio Fontana <claudio.fontana@gmail.com>
5424 * fork-child.c (fork_inferior): Update comment.
5426 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
5428 * features/Makefile: Generate regformats for mips-linux and
5430 * features/sort-regs.xsl: Correct typo.
5431 * regformats/reg-mips.dat, regformats/reg-mips64.dat: Delete.
5432 * regformats/mips-linux.dat, regformats/mips64-linux.dat: New generated
5435 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
5437 * config/mips/linux.mh (TDEP_XML): New.
5438 * features/mips-linux.xml, features/mips64-linux.xml: New files.
5439 * mips-linux-nat.c (mips_linux_register_addr): Handle
5440 MIPS_RESTART_REGNUM.
5441 (mips64_linux_register_addr): Likewise.
5442 (super_xfer_partial, mips_linux_xfer_partial): New.
5443 (_initialize_mips_linux_nat): Add them to the target_ops.
5444 * mips-linux-tdep.c (mips_supply_gregset): Handle MIPS_RESTART_REGNUM.
5445 (mips_fill_gregset, mips64_supply_gregset, mips64_fill_gregset)
5446 (mips_linux_o32_sigframe_init)
5447 (mips_linux_n32n64_sigframe_init): Likewise.
5448 (mips_linux_write_pc, mips_linux_restart_reg_p): New.
5449 (mips_linux_init_abi): Use mips_linux_write_pc. Check for the
5450 "org.gnu.gdb.mips.linux" feature.
5451 * mips-linux-tdep.h (MIPS_RESTART_REGNUM): New constant.
5452 (mips_linux_restart_reg_p): New prototype.
5453 * mips-tdep.c (mips_gdbarch_init): Pass tdesc_data to the OS/ABI
5454 initialization routine.
5455 * Makefile.in (mips-linux-tdep.o, mips-linux-nat.o): Update.
5457 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
5459 * Makefile.in (mips-tdep.o): Update.
5460 * mips-tdep.c (struct register_alias, mips_o32_aliases)
5461 (mips_n32_n64_aliases, mips_register_aliases): New.
5462 (mips_register_name): Call tdesc_register_name.
5463 (mips_tdesc_register_reggroup_p): New.
5464 (mips_pseudo_register_type, value_of_mips_user_reg): New.
5465 (mips_gdbarch_init): Add target-described register support.
5466 Register aliases for register names.
5467 * target-descriptions.c (tdesc_register_name): Make global.
5468 (tdesc_register_in_reggroup_p): New function, broken out from
5469 tdesc_register_reggroup_p.
5470 (tdesc_register_reggroup_p): Use it.
5471 * target-descriptions.h (tdesc_register_name)
5472 (tdesc_register_in_reggroup_p): New prototypes.
5473 * NEWS: Correct formatting. Mention MIPS register support.
5474 * features/mips-cp0.xml, features/mips-fpu.xml,
5475 features/mips64-cp0.xml, gdb/features/mips64-fpu.xml, mips-cpu.xml,
5476 features/mips64-cpu.xml: New files.
5478 2007-06-13 Markus Deuling <deuling@de.ibm.com>
5480 * gdbarch.sh (TARGET_ADDR_BIT): Replace by gdbarch_addr_bit.
5481 * valops.c (value_cast): Likewise.
5482 * utils.c (strlen_paddr, paddr, paddr_nz, paddress): Likewise.
5483 * ui-out.c (ui_out_field_core_addr): Likewise.
5484 * tracepoint.c (tracepoints_info): Likewise.
5485 * symtab.c (print_msymbol_info): Likewise.
5486 * solib-irix.c (irix_current_sos)
5487 (irix_open_symbol_file_object): Likewise.
5488 * remote.c (build_remote_gdbarch_data): Likewise.
5489 * prologue-value.c (make_pv_area): Likewise.
5490 * procfs.c (info_mappings_callback): Likewise.
5491 * printcmd.c (print_scalar_formatted)
5492 (deprecated_print_address_numeric): Likewise.
5493 * memattr.c (mem_info_command): Likewise.
5494 * linux-nat.c (linux_nat_info_proc_cmd): Likewise.
5495 * gdbtypes.c (build_flt, gdbtypes_post_init): Likewise.
5496 * exec.c (print_section_info): Likewise.
5497 * dwarf2read.c (read_subrange_type): Likewise.
5498 * dwarf2loc.c (find_location_expression): Likewise.
5499 * dwarf2expr.c (dwarf2_read_address, unsigned_address_type)
5500 (signed_address_type, execute_stack_op): Likewise.
5501 * breakpoint.c (print_one_breakpoint, breakpoint_1): Likewise.
5502 * gdbarch.c, gdbarch.h: Regenerate.
5504 2007-06-13 Markus Deuling <deuling@de.ibm.com>
5506 * gdbarch.sh (TARGET_ARCHITECTURE): Replace by gdbarch_bfd_arch_info.
5507 * arch-utils.c (show_architecture): Likewise.
5508 * remote-mips.c (mips_open): Likewise
5509 * nto-tdep.c (nto_find_and_open_solib)
5510 (nto_init_solib_absolute_prefix): Likewise.
5511 * nto-procfs (procfs_open): Likewise.
5512 * m68hc11-tdep.c (gdb_print_insn_m68hc11): Likewise.
5513 * gcore.c (default_gcore_mach, default_gcore_arch): Likewise.
5514 * gdbarch.c, gdbarch.h: Regenerate.
5516 2007-06-13 Markus Deuling <deuling@de.ibm.com>
5518 * gdbarch.sh (TARGET_BFD_VMA_BIT): Replace by gdbarch_bfd_vma_bit.
5519 * gdbtypes.c (build_flt): Likewise.
5520 * gdbarch.c, gdbarch.h: Regenerate.
5522 2007-06-13 Markus Deuling <deuling@de.ibm.com>
5524 * gdbarch.sh (BREAKPOINT_FROM_PC): Replace by
5525 gdbarch_breakpoint_from_pc.
5526 * s390-tdep.c (s390_gdbarch_init): Likewise (comment).
5527 * remote.c (remote_insert_breakpoint)
5528 (remote_insert_hw_breakpoint): Likewise.
5529 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Likewise.
5530 * mips-tdep.c (mips_breakpoint_from_pc): Likewise (comment).
5531 * breakpoint.h (bp_target_info): Likewise (comment).
5532 * breakpoint.c (read_memory_nobpt): Likewise.
5533 * mem-break.c (default_memory_insert_breakpoint): Likewise.
5534 (symtab.h, breakpoint.h): Remove include. Remove unnecessary comment.
5535 * gdbarch.c, gdbarch.h: Regenerate.
5537 2007-06-13 Markus Deuling <deuling@de.ibm.com>
5539 * gdbarch.sh (TARGET_PTR_BIT): Replace with gdbarch_ptr_bit.
5540 * solib-svr4.c (svr4_truncate_ptr): Likewise.
5541 * solib-pa64.c (read_dynamic_info): Likewise.
5542 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets): Likewise.
5543 * solib.c (info_sharedlibrary_command): Likewise.
5544 * s390-nat.c (SUBOFF): Likewise.
5545 * p-valprint.c (pascal_val_print): Likewise.
5546 * procfs.c (info_proc_mappings): Likewise.
5547 * printcmd.c (decode_format): Likewise.
5548 * nto-tdep.c (nto_truncate_ptr): Likewise.
5549 * mips-linux-tdep.c (mips_linux_get_longjmp_target)
5550 (mips64_linux_get_longjmp_target): Likewise.
5551 * m68k-tdep.c (m68k_get_longjmp_target): Likewise.
5552 * jv-valprint.c (java_value_print): Likewise.
5553 * jv-lang.c (get_java_object_header_size): Likewise.
5554 * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Likewise.
5555 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
5556 (hppa_hpux_unwind_adjust_stub): Likewise.
5557 * gnu-v3-abi.c (build_gdb_vtable_type): Likewise.
5558 * gdbtypes.c (make_pointer_type, make_reference_type)
5559 (smash_to_memberptr_type): Likewise.
5560 * gdbarch.c, gdbarch.h: Regenerate.
5562 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
5564 * mips-tdep.c (mips_print_register): Remove unused ALL argument.
5565 (print_gp_register_row): Stop before printing a register bigger
5566 than the ABI register size.
5567 (mips_print_registers_info): Update call to mips_print_register.
5569 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
5571 * expression.h (enum exp_opcode): Document a register name for
5573 * parse.c (write_dollar_variable): Write the register name for
5575 (operator_length_standard): Expect the register name following
5577 * ada-lang.c (resolve_subexp): Likewise.
5578 * ax-gdb.c (gen_expr): Likewise.
5579 * eval.c (evaluate_subexp_standard): Likewise.
5580 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
5582 * tracepoint.c (encode_actions): Likewise.
5584 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
5586 * utils.c (set_screen_size): Use INT_MAX for default columns.
5588 2007-06-13 Ulrich Weigand <uweigand@de.ibm.com>
5590 * remote.c (remote_protocol_features): Add qXfer:spu:read and
5591 qXfer:spu:write packet types.
5593 2007-06-12 Markus Deuling <deuling@de.ibm.com>
5595 * gdbarch.sh (DEPRECATED_STACK_ALIGN): Remove.
5596 * gdbarch.c, gdbarch.h: Regenerate.
5598 2007-06-12 Markus Deuling <deuling@de.ibm.com>
5600 * gdbarch.sh (STAB_REG_TO_REGNUM): Replace by
5601 gdbarch_stab_reg_to_regnum.
5602 * stabsread.c (define_symbol): Likewise.
5603 * gdbarch.sh (ECOFF_REG_TO_REGNUM): Replace by
5604 gdbarch_ecoff_reg_to_regnum.
5605 * mdebugread.c (parse_symbol): Likewise.
5606 * i386-tdep.c (i386_gdbarch_init): Likewise (comment).
5607 * gdbarch.sh (DWARF_REG_TO_REGNUM): Replace by
5608 gdbarch_dwarf_reg_to_regnum.
5609 * gdbarch.sh (SDB_REG_TO_REGNUM): Replace by gdbarch_sdb_reg_to_regnum.
5610 * coffread.c (process_coff_symbol): Likewise.
5611 * gdbarch.sh (DWARF2_REG_TO_REGNUM): Replace by
5612 gdbarch_dwarf2_reg_to_regnum.
5613 * dwarf2loc.c (dwarf_expr_read_reg,dwarf2_evaluate_loc_desc)
5614 (locexpr_describe_location): Likewise.
5615 * dwarf2-frame.c (read_reg,execute_cfa_program,dwarf2_frame_cache)
5616 (dwarf2_frame_prev_register,dwarf2_signal_frame_this_id): Likewise.
5617 * dwarf2loc.c (DWARF2_REG_TO_REGNUM): Remove macro.
5618 * dwarf2read.c (DWARF2_REG_TO_REGNUM): Remove macro.
5619 * gdbarch.c, gdbarch.h: Regenerate.
5621 2007-06-12 Markus Deuling <deuling@de.ibm.com>
5623 * gdbarch.sh (SMASH_TEXT_ADDRESS): Replace by
5624 gdbarch_smash_text_address.
5625 * somread.c (som_symtab_read): Likewise.
5626 * elfread.c (record_minimal_symbol): Likewise.
5627 * dbxread.c (process_one_symbol): Likewise.
5628 * coffread.c (coff_symtab_read): Likewise.
5629 * gdbarch.c, gdbarch.h: Regenerate.
5631 2007-06-12 Markus Deuling <deuling@de.ibm.com>
5633 * gdbarch.sh (REGISTER_TO_VALUE): Replace by gdbarch_register_to_value.
5634 * findvar.c (value_from_register): Likewise.
5635 * gdbarch.sh (VALUE_TO_REGISTER): Replace by gdbarch_value_to_register.
5636 * valops.c (value_assign): Likewise.
5637 * gdbarch.sh (CONVERT_REGISTER_P): Replace by
5638 gdbarch_convert_register_p.
5639 * findvar.c (value_from_register): Likewise.
5640 * valops.c (value_assign): Likewise.
5641 * gdbarch.c, gdbarch.h: Regenerate.
5643 2007-06-12 Markus Deuling <deuling@de.ibm.com>
5645 * gdbarch.sh (REGISTER_SIM_REGNO): Replace by
5646 gdbarch_register_sim_regno.
5647 * sim-regno.h (sim_regno): Likewise (comment).
5648 * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register): Likewise.
5649 * gdbarch.c, gdbarch.h: Regenerate.
5651 2007-06-12 Markus Deuling <deuling@de.ibm.com>
5653 * gdbarch.sh (TARGET_VIRTUAL_FRAME_POINTER): Replace by
5654 gdbarch_virtual_frame_pointer.
5655 * tracepoint.c (encode_actions): Likewise.
5656 * dwarf2loc.c (dwarf2_loc_desc_needs_frame): Likewise.
5657 * ax-gdb.c (gen_frame_args_address, gen_frame_locals_address): Likewise.
5658 * gdbarch.c, gdbarch.h: Regenerate.
5660 2007-06-12 Markus Deuling <deuling@de.ibm.com>
5662 * gdbarch.sh (TARGET_FLOAT_BIT): Replace by gdbarch_float_bit.
5663 * p-lang.c (pascal_create_fundamental_type): Likewise.
5664 * objc-lang.c (objc_create_fundamental_type): Likewise.
5665 * mdebugread.c (_initialize_mdebugread): Likewise.
5666 * m2-lang.c (m2_create_fundamental_type)
5667 (_initialize_m2_language): Likewise.
5668 * gdbtypes.c (build_gdbtypes): Likewise.
5669 * f-lang.c (f_create_fundamental_type, build_fortran_types): Likewise.
5670 * doublest.c (floatformat_from_length): Likewise.
5671 * c-lang.c (c_create_fundamental_type): Likewise.
5672 * ada-lang.c (ada_create_fundamental_type)
5673 (ada_language_arch_info): Likewise.
5674 * gdbarch.sh (TARGET_FLOAT_FORMAT): Replace by gdbarch_float_format.
5675 * value.c (unpack_double): Likewise (comment).
5676 * gdbtypes.c (build_gdbtypes): Likewise.
5677 * doublest.c (floatformat_from_length): Likewise.
5678 * gdbarch.sh (TARGET_DOUBLE_BIT): Replace by gdbarch_double_bit.
5679 * valarith.c (value_binop): Likewise.
5680 * p-lang.c (pascal_create_fundamental_type): Likewise.
5681 * objc-lang.c (objc_create_fundamental_type): Likewise.
5682 * mdebugread.c (_initialize_mdebugread): Likewise.
5683 * m2-lang.c (m2_create_fundamental_type): Likewise.
5684 * gdbtypes.c (build_gdbtypes): Likewise.
5685 * f-lang.c (f_create_fundamental_type, build_fortran_types): Likewise.
5686 * doublest.c (floatformat_from_length): Likewise.
5687 * cris-tdep.c (cris_gdbarch_init): Likewise (comment).
5688 * c-lang.c (c_create_fundamental_type): Likewise.
5689 * ada-lex.l (processReal): Likewise.
5690 * ada-lang.c (ada_create_fundamental_type)
5691 (ada_language_arch_info): Likewise.
5692 * gdbarch.sh (TARGET_DOUBLE_FORMAT): Replace by gdbarch_double_format.
5693 * value.c (unpack_double): Likewise (comment).
5694 * gdbtypes.c (build_gdbtypes): Likewise.
5695 * doublest.c (floatformat_from_length): Likewise.
5696 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Replace by
5697 gdbarch_long_double_bit.
5698 * p-lang.c (pascal_create_fundamental_type): Likewise.
5699 * objc-lang.c (objc_create_fundamental_type): Likewise.
5700 * m2-lang.c (m2_create_fundamental_type): Likewise.
5701 * gdbtypes.c (build_gdbtypes): Likewise.
5702 * f-lang.c (f_create_fundamental_type, build_fortran_types): Likewise.
5703 * doublest.c (floatformat_from_length): Likewise.
5704 * c-lang.c (c_create_fundamental_type): Likewise.
5705 * ada-lex.l (processReal): Likewise.
5706 * ada-lang.c (ada_create_fundamental_type)
5707 (ada_language_arch_info): Likewise.
5708 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Replace by
5709 gdbarch_long_double_format.
5710 * gdbtypes.c (build_gdbtypes): Likewise.
5711 * doublest.c (floatformat_from_length): Likewise.
5712 * gdbarch.c, gdbarch.h: Regenerate.
5714 2007-06-12 Markus Deuling <deuling@de.ibm.com>
5716 * gdbarch.sh (TARGET_SHORT_BIT): Replace by gdbarch_int_bit.
5717 * ada-lang.c (ada_create_fundamental_type)
5718 (ada_language_arch_info): Likewise.
5719 * c-lang.c (c_create_fundamental_type): Likewise.
5720 * f-lang.c (f_create_fundamental_type, build_fortran_types): Likewise.
5721 * gdbtypes.c (build_gdbtypes, gdbtypes_post_init): Likewise.
5722 * m2-lang.c (m2_create_fundamental_type): Likewise.
5723 * objc-lang.c (objc_create_fundamental_type): Likewise.
5724 * p-lang.c (pascal_create_fundamental_type): Likewise.
5725 * gdbarch.sh (TARGET_INT_BIT): Replace by gdbarch_int_bit.
5726 * c-exp.y (parse_number): Likewise.
5727 * objc-exp.y (parse_number): Likewise.
5728 * ada-lex.l (processInt): Likewise.
5729 * f-exp.y (parse_number): Likewise.
5730 * p-exp.y (parse_number): Likewise.
5731 * ada-lang.c (ada_create_fundamental_type, ada_language_arch_info)
5732 (gdbtypes_post_init, build_gdbtypes): Likewise.
5733 * p-lang.c (pascal_create_fundamental_type): Likewise.
5734 * parse.c (build_parse): Likewise.
5735 * xcoffread.c (_initialize_xcoffread): Likewise.
5736 * stabsread.c (define_symbol, read_one_struct_field, read_enum_type)
5737 (read_range_type): Likewise.
5738 * objc-lang.c (objc_create_fundamental_type): Likewise.
5739 * f-lang.c (build_fortran_types, f_create_fundamental_type): Likewise.
5740 * m2-lang.c (m2_create_fundamental_type, _initialize_m2_language)
5741 (m2_create_fundamental_type): Likewise.
5742 * c-lang.c (c_create_fundamental_type): Likewise.
5743 * coffread.c (coff_read_enum_type): Likewise.
5744 * mdebugread.c (parse_symbol, _initialize_mdebugread): Likewise.
5745 * dwarf2read.c (new_symbol): Likewise.
5746 * gdbarch.sh (TARGET_LONG_BIT): Replace by gdbarch_long_bit.
5747 * c-exp.y (parse_number): Likewise.
5748 * objc-exp.y (parse_number): Likewise.
5749 * ada-lex.l (processInt): Likewise.
5750 * f-exp.y (parse_number): Likewise.
5751 * p-exp.y (parse_number): Likewise.
5752 * valarith.c (value_binop): Likewise.
5753 * symfile.c (read_target_long_array, simple_overlay_update_1): Likewise.
5754 * ada-lang.c (ada_create_fundamental_type)
5755 (ada_language_arch_info): Likewise.
5756 * gdbtypes.c (build_gdbtypes, gdbtypes_post_init): Likewise.
5757 * symfile.c (TARGET_LONG_BYTES): Likewise.
5758 * p-lang.c (pascal_create_fundamental_type): Likewise.
5759 * objc-lang.c (objc_create_fundamental_type): Likewise.
5760 * m2-lang.c (m2_create_fundamental_type): Likewise.
5761 * f-lang.c (f_create_fundamental_type): Likewise.
5762 * c-lang.c (c_create_fundamental_type): Likewise.
5763 * coffread.c (decode_base_type): Likewise.
5764 * gdbarch.sh (TARGET_LONG_LONG_BIT): Replace by gdbarch_long_long_bit.
5765 * c-exp.y (parse_number): Likewise.
5766 * objc-exp.y (parse_number): Likewise.
5767 * p-exp.y (parse_number): Likewise.
5768 * ada-lang.c (ada_create_fundamental_type)
5769 (ada_language_arch_info): Likewise.
5770 * gdbtypes.c (gdbtypes_post_init, build_gdbtypes): Likewise.
5771 * stabsread.c (read_range_type): Likewise.
5772 * p-lang.c (pascal_create_fundamental_type): Likewise.
5773 * objc-lang.c (objc_create_fundamental_type): Likewise.
5774 * m2-lang.c (m2_create_fundamental_type): Likewise.
5775 * f-lang.c (f_create_fundamental_type): Likewise.
5776 * c-lang.c (c_create_fundamental_type): Likewise.
5777 * gdbarch.c, gdbarch.h: Regenerate.
5779 2007-06-12 Andreas Schwab <schwab@suse.de>
5781 * frame-unwind.h (frame_dealloc_cache_ftype): Define.
5782 (struct frame_unwind): Add dealloc_cache.
5783 * frame.c (reinit_frame_cache): Call dealloc_cache on all caches.
5785 * libunwind-frame.h (libunwind_frame_dealloc_cache): Declare.
5786 * libunwind-frame.c (libunwind_frame_dealloc_cache): Define.
5787 (libunwind_frame_unwind): Set dealloc_cache.
5788 * ia64-tdep.c (ia64_libunwind_frame_unwind): Set dealloc_cache.
5790 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
5791 Markus Deuling <deuling@de.ibm.com>
5793 * remote.c (remote_write_qxfer): New function.
5794 (remote_xfer_partial): Add handling for TARGET_OBJECT_SPU.
5795 (remote_read_qxfer): Do not cache empty objects.
5796 (_initialize_remote): Add PACKET_qXfer_spu_read and
5797 PACKET_qXfer_spu_write.
5799 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
5801 * target.h (enum target_object): Add TARGET_OBJECT_SPU.
5802 * spu-linux-nat.c (spu_xfer_partial): Handle TARGET_OBJECT_SPU.
5804 * spu-tdep.h (SPU_NUM_PSEUDO_REGS): Add 5 pseudo registers.
5805 (enum spu_regnum): Add SPU_FPSCR_REGNUM, SPU_SRR0_REGNUM,
5806 SPU_LSLR_REGNUM, SPU_DECR_REGNUM, SPU_DECR_STATUS_REGNUM.
5807 * spu-tdep.c (infospucmdlist): New variable.
5808 (spu_register_name): Handle additional pseudo registers.
5809 (spu_register_type): Likewise.
5810 (spu_pseudo_register_read): Likewise.
5811 (spu_pseudo_register_write): Likewise.
5812 (spu_pseudo_register_read_spu): New function.
5813 (spu_pseudo_register_write_spu): Likewise.
5814 (info_spu_event_command): New function.
5815 (info_spu_signal_command): Likewise.
5816 (info_spu_mailbox_list): Likewise.
5817 (info_spu_mailbox_command): Likewise.
5818 (spu_mfc_get_bitfield): Likewise.
5819 (info_spu_dma_cmdlist): Likewise.
5820 (info_spu_dma_command): Likewise.
5821 (info_spu_proxydma_command): Likewise.
5822 (info_spu_command): Likewise.
5823 (_initialize_spu_tdep): Install "info spu" commands.
5825 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
5827 * spu-linux-nat.c (spu_proc_xfer_spu): Do not return failure when
5828 accessing non-seekable spufs files.
5830 2007-06-09 Markus Deuling <deuling@de.ibm.com>
5832 * gdbarch.sh (SKIP_TRAMPOLINE_CODE): Replace by
5833 gdbarch_skip_trampoline_code.
5834 * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Likewise (comment).
5835 * objc-lang.c (objc_skip_trampoline)
5836 (objc_submethod_helper_data): Likewise.
5837 * m32c-lang.c (m32c_skip_trampoline_code): Likewise (comment).
5838 * infrun.c (handle_inferior_event): Likewise.
5839 * gnu-v3-abi.c (gnuv3_skip_trampoline): Likewise.
5840 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Replace by
5841 gdbarch_in_solib_return_trampoline.
5842 * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Likewise (comment).
5843 * infrun.c (handle_inferior_event): Likewise.
5844 * hppa-tdep.c (hppa_stub_unwind_sniffer): Likewise.
5845 * gdbarch.c, gdbarch.h: Regenerate.
5847 2007-06-09 Markus Deuling <deuling@de.ibm.com>
5849 * gdbarch.sh (SKIP_PROLOGUE): Replace by gdbarch_skip_prologue.
5850 * symtab.c (find_function_start_sal, in_prologue): Likewise.
5851 * linespec.c (minsym_found): Likewise.
5852 * infrun.c (step_into_function): Likewise.
5853 * gdbarch.c, gdbarch.h: Regenerate.
5855 2007-06-09 Markus Deuling <deuling@de.ibm.com>
5857 * gdbarch.sh (NAME_OF_MALLOC): Replace by gdbarch_name_of_malloc.
5858 * valops.c (value_allocate_space_in_inferior): Likewise.
5859 * gdbarch.c, gdbarch.h: Regenerate.
5861 2007-06-09 Markus Deuling <deuling@de.ibm.com>
5863 * gdbarch.sh (MEMORY_INSERT_BREAKPOINT): Replace by
5864 gdbarch_memory_insert_breakpoint.
5865 * mem-break.c (memory_insert_breakpoint): Likewise.
5866 * gdbarch.sh (MEMORY_REMOVE_BREAKPOINT): Replace by
5867 gdbarch_memory_remove_breakpoint.
5868 * mem-break.c (memory_remove_breakpoint): Likewise.
5869 * gdbarch.c, gdbarch.h: Regenerate.
5871 2007-06-09 Markus Deuling <deuling@de.ibm.com>
5873 * gdbarch.sh (FETCH_TLS_LOAD_MODULE_ADDRESS): Replace by
5874 gdbarch_fetch_tls_load_module_address.
5875 * gdbarch.sh (FETCH_TLS_LOAD_MODULE_ADDRESS_P): Replace by
5876 gdbarch_fetch_tls_load_module_address_p.
5877 * gdbarch.c, gdbarch.h: Regenerate.
5879 2007-06-09 Markus Deuling <deuling@de.ibm.com>
5881 * gdbarch.sh (DECR_PC_AFTER_BREAK): Replace by
5882 gdbarch_decr_pc_after_break.
5883 * tracepoint.c (trace_dump_command): Likewise.
5884 * solib-sunos.c (sunos_solib_create_inferior_hook): Likewise.
5885 * linux-thread-db.c (check_event): Likewise.
5886 * linux-nat.c (cancel_breakpoints_callback): Likewise.
5887 * infrun.c (adjust_pc_after_break, normal_stop): Likewise.
5888 * frame.h: Likewise (comment).
5889 * dummy-frame.c (deprecated_pc_in_call_dummy): Likewise.
5890 * aix-thread.c (aix_thread_wait): Likewise.
5891 * gdbarch.c, gdbarch.h: Regenerate.
5893 2007-06-09 Markus Deuling <deuling@de.ibm.com>
5895 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS): Replace by
5896 gdbarch_address_class_type_flags.
5897 * dwarf2read.c (read_tag_pointer_type): Likewise.
5898 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS_P): Replace by
5899 gdbarch_address_class_type_flags_p.
5900 * dwarf2read.c (read_tag_pointer_type): Likewise.
5901 * gdbarch.c, gdbarch.h: Regenerate.
5903 2007-06-09 Markus Deuling <deuling@de.ibm.com>
5905 * gdbarch.sh (ADDR_BITS_REMOVE): Replace by gdbarch_addr_bits_remove.
5906 * value.c (value_as_address): Likewise (comment).
5907 * remote-mips.c (common_breakpoint): Likewise.
5908 * regcache.c (read_pc_pid): Likewise.
5909 * printcmd.c (do_one_display): Likewise.
5910 * monitor.c (monitor_write_memory, monitor_read_memory)
5911 (monitor_insert_breakpoint): Likewise.
5912 * mips-tdep.c (heuristic_proc_start): Likewise.
5913 * infrun.c (insert_step_resume_breakpoint_at_frame)
5914 (insert_step_resume_breakpoint_at_caller): Likewise.
5915 * buildsym.c (record_line): Likewise.
5916 * arm-tdep.c (arm_scan_prologue, thumb_get_next_pc)
5917 (arm_get_next_pc): Likewise.
5918 * armnbsd-nat.c (arm_supply_gregset, fetch_register, store_register)
5919 (store_regs): Likewise.
5920 * arm-linux-tdep.c (arm_linux_supply_gregset): Likewise.
5921 * arm-linux-nat.c (fetch_register, fetch_regs): Likewise.
5922 * gdbarch.c, gdbarch.h: Regenerate.
5924 2007-06-09 Markus Deuling <deuling@de.ibm.com>
5926 * gdbarch.sh (REGISTER_NAME): Replace by gdbarch_register_name.
5927 * tracepoint.c (scope_info): Likewise.
5928 * target.c (debug_print_register): Likewise.
5929 * stack.c (frame_info): Likewise.
5930 * sh-tdep.c (sh_register_reggroup_p): Likewise.
5931 * sh64-tdep.c (sh64_do_fp_register, sh64_do_register)
5932 (sh64_media_print_registers_info)
5933 (sh64_compact_print_registers_info): Likewise.
5934 * rs6000-tdep.c (rs6000_register_reggroup_p): Likewise.
5935 * remote-sim.c (gdbsim_fetch_register): Likewise.
5936 * remote.c (packet_reg): Likewise (comment).
5937 * reggroups.c (default_register_reggroup_p): Likewise.
5938 * regcache.c (regcache_dump): Likewise.
5939 * printcmd.c (address_info): Likewise.
5940 * ppc-linux-nat.c (fetch_register, store_register): Likewise.
5941 * mt-dep.c (mt_registers_info): Likewise.
5942 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Likewise (comment).
5943 * mips-tdep.c (mips_register_reggroup_p, mips_read_fp_register_single)
5944 (mips_read_fp_register_double, mips_print_fp_register)
5945 (mips_print_register, print_gp_register_row, mips_print_registers_info)
5946 (mips_register_sim_regno): Likewise.
5947 * m68klinux-nat.c (regmap, fetch_register, store_register): Likewise.
5948 * inf-ptrace.c (inf_ptrace_fetch_register)
5949 (inf_ptrace_store_register): Likewise.
5950 * infcmd.c (default_print_registers_info): Likewise.
5951 * ia64-linux-nat.c (ia64_linux_fetch_register)
5952 (ia64_linux_store_register): Likewise.
5953 * i386-linux-nat.c (fetch_register, store_register): Likewise.
5954 * i386gnu-nat.c (gnu_fetch_registers, gnu_store_registers): Likewise.
5955 * hppa-linux-nat.c (fetch_register, store_register): Likewise.
5956 * hppa-hpux-nat.c (hppa_hpux_fetch_register)
5957 (hppa_hpux_store_register): Likewise.
5958 * findvar.c (locate_var_value): Likewise.
5959 * dwarf2loc.c (locexpr_describe_location): Likewise.
5960 * dwarf2-frame.c (execute_cfa_program): Likewise.
5961 * arm-tdep.c (arm_push_dummy_call): Likewise.
5962 * arch-utils.c (legacy_register_sim_regno): Likewise.
5963 * alpha-tdep.c (alpha_register_reggroup_p): Likewise.
5964 * alpha-nat.c (fetch_osf_core_registers): Likewise.
5965 * mi/mi-main.c (mi_cmd_data_list_register_names)
5966 (mi_cmd_data_list_changed_registers, mi_cmd_data_list_register_values)
5967 (mi_cmd_data_write_register_values): Likewise.
5968 * gdbarch.c, gdbarch.h: Regenerate.
5970 2007-06-07 Daniel Jacobowitz <dan@codesourcery.com>
5972 * target-memory.c (blocks_to_erase): Correct off-by-one error.
5974 2007-06-06 Vladimir Prus <vladimir@codesourcery.com>
5976 * remote.c (process_g_packet): Don't check size.
5977 * gdbarch.sh: Remove register_bytes_ok.
5978 * gdbarch.c: Regenerated.
5979 * gdbarch.h: Regenerated.
5980 * m68k-tdep.c (REGISTER_BYTES_NOFP): Remove.
5981 (m68k_register_bytes_ok): Remove.
5982 (m68k_gdbarch_init): Don't register m68k_register_bytes_ok.
5984 2007-06-06 Andreas Schwab <schwab@suse.de>
5986 * libunwind-frame.c (unw_destroy_addr_space_p): Define.
5987 (destroy_addr_space_name): Define.
5988 (libunwind_load): Get address of destroy_addr_space function.
5989 (libunwind_frame_cache): Destroy unw_addr_space_t object before
5990 returning unsuccessfully.
5991 (libunwind_frame_sniffer): Destroy unw_addr_space_t object before
5993 (libunwind_sigtramp_frame_sniffer): Likewise.
5994 (libunwind_get_reg_special): Likewise.
5996 2007-06-06 Markus Deuling <deuling@de.ibm.com>
5998 * gdbarch.sh (FETCH_POINTER_ARGUMENT): Replace by
5999 gdbarch_fetch_pointer_argument.
6000 * objc-lang.c (OBJC_FETCH_POINTER_ARGUMENT): Likewise.
6001 * gdbarch.c, gdbarch.h: Regenerate.
6003 2007-06-06 Markus Deuling <deuling@de.ibm.com>
6005 * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Replace by
6006 gdbarch_have_nonsteppable_watchpoint.
6007 * infrun.c (handle_inferior_event, adjust_pc_after_break): Likewise.
6008 * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Replace by
6009 gdbarch_cannot_step_breakpoint.
6010 * infrun.c (resume): Likewise.
6011 * gdbarch.c, gdbarch.h: Regenerate.
6013 2007-06-06 Markus Deuling <deuling@de.ibm.com>
6015 * gdbarch.sh (FRAME_ARGS_SKIP): Replace by gdbarch_frame_args_skip.
6016 * stack.c (print_frame_args): Likewise.
6017 * gdbarch.sh (FRAME_NUM_ARGS): Replace by gdbarch_frame_num_args.
6018 * stack.c (print_args_stub, frame_info): Likewise.
6019 * gdbarch.sh (FRAME_NUM_ARGS_P): Replace by gdbarch_frame_num_args_p.
6020 * stack.c (print_args_stub, frame_info): Likewise.
6021 * gdbarch.c, gdbarch.h: Regenerate.
6023 2007-06-06 Markus Deuling <deuling@de.ibm.com>
6025 * gdbarch.sh (COFF_MAKE_MSYMBOL_SPECIAL): Replace by
6026 gdbarch_coff_make_msymbol_special.
6027 * coffread.c (coff_symtab_read): Likewise.
6028 * gdbarch.sh (ELF_MAKE_MSYMBOL_SPECIAL): Replace by
6029 gdbarch_elf_make_msymbol_special.
6030 * elfread.c (elf_symtab_read): Likewise.
6031 * mips-tdep.c (mips_elf_make_msymbol_special): Likewise (comment).
6032 * sh64-tdep.c (MSYMBOL_IS_SPECIAL): Likewise (comment).
6033 * gdbarch.c, gdbarch.h: Regenerate.
6035 2007-06-06 Markus Deuling <deuling@de.ibm.com>
6037 * gdbarch.sh (FRAME_RED_ZONE_SIZE): Replace by
6038 gdbarch_frame_red_zone_size.
6039 * gdbarch.c, gdbarch.h: Regenerate.
6041 2007-06-06 Markus Deuling <deuling@de.ibm.com>
6043 * gdbarch.sh (INNER_THAN): Replace by gdbarch_inner_than.
6044 * infcall.c (call_function_by_hand): Likewise.
6045 * gcore.c (derive_stack_segment): Likewise.
6046 * frame.c (frame_id_inner): Likewise.
6047 * arch-utils.c (core_addr_lessthan): Likewise (comment).
6048 * ada-lang.c (ensure_lval): Likewise.
6049 * gdbarch.c, gdbarch.h: Regenerate.
6051 2007-06-06 Markus Deuling <deuling@de.ibm.com>
6053 * gdbarch.sh (ADDRESS_TO_POINTER): Replace by
6054 gdbarch_address_to_pointer.
6055 * findvar.c (store_typed_address): Likewise.
6056 * gdbtypes.c (make_pointer_type): Likewise (comment).
6057 * procfs.c (procfs_address_to_host_pointer): Likewise.
6058 * std-regs.c (value_of_builtin_frame_reg): Likewise.
6059 (value_of_builtin_frame_fp_reg): Likewise.
6060 (value_of_builtin_frame_pc_reg): Likewise.
6061 * utils.c (paddress): Likewise (comment).
6062 * gdbarch.sh (POINTER_TO_ADDRESS): Replace by
6063 gdbarch_pointer_to_address.
6064 * findvar.c (extract_typed_address): Likewise.
6065 * gdbtypes.c (make_pointer_type): Likewise (comment).
6066 * valops.c (value_cast): Likewise (comment).
6067 * gdbarch.c, gdbarch.h: Regenerate.
6069 2007-06-06 Markus Deuling <deuling@de.ibm.com>
6071 * gdbarch.sh (GET_LONGJMP_TARGET): Replace by gdbarch_get_longjmp_target.
6072 * infrun.c (handle_inferior_event): Likewise.
6073 * gdbarch.sh (GET_LONGJMP_TARGET_P): Replace by
6074 gdbarch_get_longjmp_target_p.
6075 * breakpoint.c (breakpoint_re_set): Likewise.
6076 * infrun.c (handle_inferior_event): Likewise.
6077 * gdbarch.c, gdbarch.h: Regenerate.
6079 2007-06-06 Ulrich Weigand <uweigand@de.ibm.com>
6081 * hppa-hpux-tdep.c (args_for_find_stub, HP_ACC_EH_notify_hook,
6082 HP_ACC_EH_set_hook_value, HP_ACC_EH_notify_callback, HP_ACC_EH_break,
6083 HP_ACC_EH_catch_throw, HP_ACC_EH_catch_catch, __eh_notification,
6084 hp_cxx_exception_support, hp_cxx_exception_support_initialized,
6085 eh_notify_hook_addr, eh_notify_callback_addr, eh_break_addr,
6086 eh_catch_throw_addr, break_callback_sal, setup_d_pid_in_inferior,
6087 find_stub_with_shl_get, cover_find_stub_with_shl_get,
6088 initialize_hp_cxx_exception_support, child_enable_exception_callback,
6089 current_ex_event, child_get_current_exception_event): Remove.
6090 (hppa_hpux_inferior_created): Remove.
6091 (hppa_hpux_init_abi): Do not install hppa_hpux_inferior_created.
6093 * breakpoint.h (deprecated_exception_catchpoints_are_fragile): Remove.
6094 (deprecated_exception_support_initialized): Remove.
6095 * breakpoint.c (deprecated_exception_catchpoints_are_fragile): Remove.
6096 (deprecated_exception_support_initialized): Remove.
6097 (breakpoint_init_inferior): Remove handling of non-zero
6098 deprecated_exception_catchpoints_are_fragile.
6100 * symtab.h (deprecated_hp_som_som_object_present): Remove.
6101 * symtab.c (deprecated_hp_som_som_object_present): Remove.
6102 * c-typeprint.c (c_type_print_base): Remove handling of non-zero
6103 deprecated_hp_som_som_object_present.
6104 * eval.c (evaluate_subexp_standard): Likewise.
6105 * valops.c (value_cast): Likewise.
6107 * parse.c (parse_nested_classes_for_hpacc, coloncolon): Remove.
6108 * parser-defs.h (parse_nested_classes_for_hpacc): Remove.
6109 * c-exp.y (yylex): Do not call parse_nested_classes_for_hpacc.
6111 2007-06-06 Ulrich Weigand <uweigand@de.ibm.com>
6113 * objfiles.h (ImportEntry, ExportEntry): Remove types.
6114 (struct objfile): Remove import_list, import_list_size,
6115 export_list, export_list_size members.
6116 (is_in_import_list): Remove prototype.
6117 * objfiles.c (is_in_import_list): Remove.
6118 * somread.c (init_import_symbols, init_export_symbols): Remove.
6119 (som_symfile_read): Do not call init_import_symbols. Do not
6120 set objfile->export_list and objfile->export_list_size.
6122 2007-06-05 Daniel Jacobowitz <dan@codesourcery.com>
6124 * dwarf2read.c (dwarf2_symbol_mark_computed): Fix formatting.
6125 Use the original objfile if necessary.
6127 2007-06-04 Daniel Jacobowitz <dan@codesourcery.com>
6129 * defs.h (ldirname): New prototype.
6130 * dwarf2read.c (read_file_scope): Use DW_AT_name if DW_AT_comp_dir is
6132 * utils.c (ldirname): New function.
6133 * xml-tdesc.c (file_read_description_xml): Use ldirname.
6135 2007-06-01 Ulrich Weigand <uweigand@de.ibm.com>
6137 * spu-tdep.c (spu_push_dummy_call): Store stack back chain.
6139 2007-06-01 Joel Brobecker <brobecker@adacore.com>
6141 * solib-svr4.c (svr4_solib_create_inferior_hook): Remove warning.
6143 2007-06-01 Ulrich Weigand <uweigand@de.ibm.com>
6145 * irix5-nat.c (JB_ELEMENT_SIZE, get_longjmp_target): Remove.
6147 2007-06-01 Ulrich Weigand <uweigand@de.ibm.com>
6149 * ppc-linux-tdep.c (INSTR_SC, INSTR_LI_R0_0x6666, INSTR_LI_R0_0x7777,
6150 INSTR_LI_R0_NR_sigreturn, INSTR_LI_R0_NR_rt_sigreturn): Remove.
6151 (PPC_LINUX_SIGNAL_FRAMESIZE, PPC_LINUX_REGS_PTR_OFFSET,
6152 PPC_LINUX_HANDLER_PTR_OFFSET): Remove.
6153 (ppc_linux_in_sigtramp, insn_is_sigreturn,
6154 ppc_linux_at_sigtramp_return_path): Remove.
6156 2007-05-31 Markus Deuling <deuling@de.ibm.com>
6158 * xtensa-tdep.c (XTENSA_IS_ENTRY, extract_call_winsize)
6159 (xtensa_register_write_masked, xtensa_register_read_masked)
6160 (xtensa_extract_return_value, xtensa_store_return_value
6161 (xtensa_push_dummy_call, xtensa_breakpoint_from_pc): Replace
6162 TARGET_BYTE_ORDER by gdbarch_byte_order.
6163 * sh-tdep.c (sh_breakpoint_from_pc, gdb_print_insn_sh)
6164 (sh_justify_value_in_reg, sh_next_flt_argreg, sh_push_dummy_call_fpu)
6165 (sh_extract_return_value_fpu, sh_store_return_value_fpu): Likewise.
6166 * sh64-tdep.c (sh64_breakpoint_from_pc, gdb_print_insn_sh64)
6167 (sh64_push_dummy_call, sh64_extract_return_value)
6168 (sh64_store_return_value, sh64_register_convert_to_virtual)
6169 (sh64_register_convert_to_raw, sh64_pseudo_register_read)
6170 (sh64_pseudo_register_write, sh64_do_fp_register)
6171 (sh64_frame_prev_register): Likewise.
6172 * score-tdep.c (score_print_insn, score_breakpoint_from_pc)
6173 (score_return_value, score_push_dummy_call, score_fetch_inst): Likewise.
6174 * rs6000-tdep.c (rs6000_breakpoint_from_pc, rs6000_push_dummy_call)
6175 (e500_move_ev_register,gdb_print_insn_powerpc): Likewise.
6176 * remote-m32r-sdi.c (m32r_resume, m32r_wait): Likewise.
6177 * ppc-linux-nat.c (store_register): Likewise.
6178 * nto-tdep.c (nto_find_and_open_solib)
6179 (nto_init_solib_absolute_prefix): Likewise.
6180 * mips-tdep.c (mips_pseudo_register_read, mips_pseudo_register_write)
6181 (mips_convert_register_p, mips_eabi_push_dummy_call)
6182 (mips_n32n64_push_dummy_call, mips_n32n64_return_value)
6183 (mips_o32_push_dummy_call, mips_o32_return_value)
6184 (mips_o64_push_dummy_call, mips_o64_return_value, mips_o64_return_value)
6185 (mips_read_fp_register_single, mips_read_fp_register_double)
6186 (mips_print_register, print_gp_register_row, gdb_print_insn_mips)
6187 (mips_breakpoint_from_pc): Likewise.
6188 * mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset): Likewise.
6189 * mips-linux-tdep.c (mips64_supply_fpregset, mips64_fill_fpregset)
6190 (mips_linux_o32_sigframe_init): Likewise.
6191 * m32r-tdep.c (m32r_memory_insert_breakpoint)
6192 (m32r_memory_remove_breakpoint, m32r_breakpoint_from_pc): Likewise.
6193 * libunwind-frame.c (libunwind_frame_cache, libunwind_frame_sniffer)
6194 (libunwind_sigtramp_frame_sniffer, libunwind_get_reg_special): Likewise.
6195 * iq2000-tdep.c (iq2000_breakpoint_from_pc): Likewise.
6196 * coffread.c (process_coff_symbol): Likewise.
6197 * arm-tdep.c (convert_from_extended, convert_to_extended)
6198 (gdb_print_insn_arm): Likewise.
6200 2007-05-31 Markus Deuling <deuling@de.ibm.com>
6202 * gdbarch.sh (NUM_REGS): Replace by gdbarch_num_regs.
6203 * i386-tdep.c (i386_dbx_reg_to_regnum)
6204 (i386_svr4_reg_to_regnum): Likewise.
6205 * inf-ptrace.c (inf_ptrace_fetch_registers)
6206 (inf_ptrace_store_registers): Likewise.
6207 * corelow.c (get_core_registers): Likewise.
6208 * i386-linux-nat.c (supply_gregset, fill_gregset)
6209 (i386_linux_fetch_inferior_registers)
6210 (i386_linux_store_inferior_registers): Likewise.
6211 * remote.c (init_remote_state,packet_reg_from_regnum)
6212 (packet_reg_from_pnum,process_g_packet,remote_fetch_registers)
6213 (remote_prepare_to_store,store_registers_using_G)
6214 (remote_store_registers,remote_arch_state): Likewise.
6215 * tracepoint.c (encode_actions): Likewise.
6216 * mi/mi-main.c (mi_cmd_data_list_register_names)
6217 (mi_cmd_data_list_changed_registers,mi_cmd_data_list_register_values)
6218 (mi_cmd_data_write_register_values): Likewise.
6219 * tui/tui-regs.c (tui_show_register_group)
6220 (tui_show_register_group): Likewise.
6221 * xtensa-tdep.h (FP_ALIAS): Likewise.
6222 * xtensa-tdep.c (xtensa_register_name,xtensa_register_type)
6223 (xtensa_reg_to_regnum,xtensa_pseudo_register_read)
6224 (xtensa_pseudo_register_write,xtensa_register_reggroup_p): Likewise.
6225 * win32-nat.c (do_win32_fetch_inferior_registers)
6226 (do_win32_store_inferior_registers,fetch_elf_core_registers
6227 * user-regs.h: Likewise (comment).
6228 * user-regs.c (user_reg, user_reg_map_name_to_regnum): Likewise.
6229 * trad-frame.c (trad_frame_alloc_saved_regs): Likewise.
6230 * target-descriptions.h: Likewise (comment).
6231 * target-descriptions.c (tdesc_use_registers): Likewise (comment).
6232 * target.c (debug_print_register): Likewise.
6233 * stack.c (frame_info): Likewise.
6234 * stabsread.c (define_symbol): Likewise.
6235 * sh64-tdep.c (sh64_do_pseudo_register,sh64_print_register)
6236 (sh64_media_print_registers_info)
6237 (sh64_compact_print_registers_info): Likewise.
6238 * rs6000-tdep.c (rs6000_register_sim_regno): Likewise.
6239 * rs6000-nat.c (fetch_register,store_register): Likewise.
6240 * remote-sim.c (one2one_register_sim_regno,gdbsim_fetch_register)
6241 (gdbsim_fetch_register,gdbsim_store_register): Likewise.
6242 * remote-mips.c (mips_fetch_registers,mips_store_registers): Likewise.
6243 * remote-m32r-sdi.c (m32r_fetch_registers)
6244 (m32r_store_registers): Likewise.
6245 * reggroups.c (default_register_reggroup_p): Likewise.
6246 * regcache.c (init_regcache_descr,register_size,regcache,regcache_save)
6247 (regcache_restore,regcache_dump): Likewise.
6248 * monitor.c (monitor_fetch_registers,monitor_store_registers): Likewise.
6249 * mips-tdep.c (mips_xfer_register,mips_register_name)
6250 (mips_register_reggroup_p,mips_pseudo_register_read)
6251 (mips_pseudo_register_write,mips_convert_register_p,mips_register_type)
6252 (mips_unwind_pc,mips_unwind_sp,mips_unwind_dummy_id,set_reg_offset)
6253 (mips16_scan_prologue,mips_insn16_frame_cache,reset_saved_regs)
6254 (mips32_scan_prologue,mips_insn32_frame_cache,read_next_frame_reg)
6255 (mips_n32n64_return_value,mips_o32_return_value,mips_o64_return_value)
6256 (print_gp_register_row,mips_print_registers_info)
6257 (mips_stab_reg_to_regnum,mips_dwarf_dwarf2_ecoff_reg_to_regnum)
6258 (mips_register_sim_regno): Likewise.
6259 * mips-linux-tdep.c (mips_linux_o32_sigframe_init)
6260 (mips_linux_n32n64_sigframe_init): Likewise.
6261 * mips-linux-nat.c (mips_linux_register_addr)
6262 (mips64_linux_register_addr): Likewise.
6263 * findvar.c (value_of_register): Likewise.
6264 * infcmd.c (default_print_registers_info,registers_info)
6265 (print_vector_info,print_float_info): Likewise.
6266 * mips64obsd-tdep.c (mips64obsd_sigframe_init): Likewise.
6267 * inf-child.c (inf_child_fetch_inferior_registers): Likewise.
6268 * m68k-tdep.c (m68k_dwarf_reg_to_regnum): Likewise.
6269 * m68hc11-tdep.c (m68hc11_frame_unwind_cache(: Likewise.
6270 * m32r-tdep.c (m32r_frame_unwind_cache): Likewise.
6271 * ia64-linux-nat.c (ia64_register_addr,ia64_cannot_fetch_register)
6272 (ia64_cannot_store_register,ia64_linux_fetch_registers)
6273 (ia64_linux_store_registers): Likewise.
6274 * hpux-thread.c (hpux_thread_fetch_registers)
6275 (hpux_thread_store_registers): Likewise.
6276 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM,E_PSEUDO_EXR_REGNUM)
6277 (h8300_init_frame_cache,h8300_frame_cache,h8300_frame_prev_register)
6278 (h8300_register_type): Likewise.
6279 * dwarf2-frame.c (dwarf2_frame_cache)
6280 (dwarf2_frame_state_alloc_regs): Likewise.
6281 * cris-tdep.c (cris_register_size,cris_cannot_fetch_register)
6282 (cris_cannot_store_register,crisv32_cannot_fetch_register)
6283 (crisv32_cannot_store_register,cris_register_name): Likewise.
6284 * avr-tdep.c (avr_frame_unwind_cache): Likewise.
6285 * arch-utils.c (legacy_register_sim_regno)
6286 (legacy_virtual_frame_pointer): Likewise.
6287 * arm-tdep.c (arm_make_prologue_cache,arm_register_sim_regno):Likewise.
6288 * arm-tdep.h: Likewise (comment).
6289 * frv-tdep.c (frv_register_sim_regno): Likewise.
6290 * m68klinux-nat.c (old_fetch_inferior_registers)
6291 (old_store_inferior_registers): Likewise.
6292 * m32c-tdep.c (m32c_virtual_frame_pointer): Likewise.
6293 * irix5-nat.c (fetch_core_registers): Likewise.
6294 * hppa-tdep.c (hppa_frame_cache): Likewise.
6295 * hppa-linux-nat.c (hppa_linux_register_addr)
6296 (hppa_linux_fetch_inferior_registers)
6297 (hppa_linux_store_inferior_registers): Likewise.
6298 * hppa-hpux-nat.c (hppa_hpux_fetch_inferior_registers)
6299 (hppa_hpux_store_inferior_registers): Likewise.
6300 * amd64-nat.c (amd64_native_gregset_reg_offset)
6301 (amd64_supply_native_gregset,amd64_collect_native_gregset): Likewise.
6302 * dbug-rom.c (dbug_regname): Likewise.
6303 * m68hc11-tdep.c (m68hc11_frame_unwind_cache)
6304 (HARD_PAGE_REGNUM (comment)): Likewise.
6305 * gdbarch.sh (NUM_PSEUDO_REGS): Replace by gdbarch_num_pseudo_regs.
6306 * i386-tdep.c (i386_dbx_reg_to_regnum)
6307 (i386_svr4_reg_to_regnum): Likewise.
6308 * mi/mi-main.c (mi_cmd_data_list_register_names)
6309 (mi_cmd_data_list_changed_registers,mi_cmd_data_list_register_values)
6310 (mi_cmd_data_write_register_values): Likewise.
6311 * gdbarch.c, gdbarch.h: Regenerate.
6312 * tui/tui-regs.c (tui_show_register_group): Likewise.
6313 * xtensa-tdep.h (FP_ALIAS): Likewise.
6314 * user-regs.h: Likewise (comment).
6315 * user-regs.c (user_reg, user_reg_map_name_to_regnum): Likewise.
6316 * trad-frame.c (trad_frame_alloc_saved_regs): Likewise.
6317 * target-descriptions.h: Likewise (comment).
6318 * target.c (debug_print_register): Likewise.
6319 * stack.c (frame_info): Likewise.
6320 * stabsread.c (define_symbol): Likewise.
6321 * sh64-tdep.c (sh64_print_register,sh64_media_print_registers_info)
6322 (sh64_compact_print_registers_info): Likewise.
6323 * rs6000-tdep.c (rs6000_register_sim_regno): Likewise.
6324 * regcache.c (init_regcache_descr,register_size,regcache,regcache_save
6325 (regcache_restore,regcache_dump): Likewise.
6326 * mips-tdep.c (print_gp_register_row,mips_print_registers_info)
6327 (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
6328 (mips_stab_reg_to_regnum): Likewise.
6329 * findvar.c (value_of_register): Likewise.
6330 * infcmd.c (default_print_registers_info,registers_info)
6331 (print_vector_info,print_float_info): Likewise.
6332 * m68k-tdep.c (m68k_dwarf_reg_to_regnum): Likewise.
6333 * h8300-tdep.c (h8300_register_type): Likewise.
6334 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
6335 * frame.h (SIZEOF_FRAME_SAVED_REGS): Likewise.
6336 * xtensa-tdep.c (xtensa_register_type,xtensa_reg_to_regnum)
6337 (xtensa_pseudo_register_read,xtensa_pseudo_register_write): Likewise.
6338 * parse.c: Remove comment.
6339 * gdbarch.c, gdbarch.h: Regenerate
6341 2007-05-31 Markus Deuling <deuling@de.ibm.com>
6343 * gdbarch.sh (CANNOT_FETCH_REGISTER): Replace by
6344 gdbarch_cannot_fetch_register.
6345 * alpha-nat.c (fetch_osf_core_registers): Likewise.
6346 * hppa-linux-nat.c (fetch_register): Likewise.
6347 * inf-ptrace.c (inf_ptrace_fetch_register): Likewise.
6348 * m68klinux-nat.c (fetch_register): Likewise.
6349 * mipsnbsd-tdep.c (mipsnbsd_supply_reg, mipsnbsd_supply_fpreg):
6351 * gdbarch.sh (CANNOT_STORE_REGISTER): Replace by
6352 gdbarch_cannot_store_register.
6353 * hppa-linux-nat.c (store_register): Likewise.
6354 * inf-ptrace.c (inf_ptrace_store_register): Likewise.
6355 * regcache.c (regcache_raw_write): Likewise.
6356 * m68klinux-nat.c (store_register): Likewise.
6357 * mipsnbsd-tdep.c (mipsnbsd_fill_reg, mipsnbsd_fill_fpreg): Likewise.
6358 * gdbarch.c, gdbarch.h: Regenerate.
6360 2007-05-31 Markus Deuling <deuling@de.ibm.com>
6362 * gdbarch.sh (TARGET_OSABI): Replace by gdbarch_osabi.
6363 * gdbarch.c, gdbarch.h: Regenerate.
6365 2007-05-31 Markus Deuling <deuling@de.ibm.com>
6367 * gdbarch.sh (TARGET_CHAR_SIGNED): Replace by gdbarch_char_signed.
6368 * gdbtypes.c (build_gdbtypes, gdbtypes_post_init): Likewise.
6369 * gdbarch.c, gdbarch.h: Regenerate.
6371 2007-05-31 Markus Deuling <deuling@de.ibm.com>
6373 * gdbarch.sh (TARGET_BYTE_ORDER): Replace by gdbarch_byte_order.
6374 * ax-gdb.c (gen_bitfield_ref): Likewise.
6375 * mi/mi-main.c (get_register): Likewise.
6376 * findvar.c (default_value_from_register, extract_signed_integer)
6377 (extract_unsigned_integer, extract_long_unsigned_integer)
6378 (store_signed_integer, store_unsigned_integer): Likewise.
6379 * regcache.c (regcache_dump): Likewise.
6380 * value.c (lookup_internalvar, value_of_internalvar)
6381 (set_internalvar): Likewise.
6383 * valprint.c (print_binary_chars, print_octal_chars)
6384 (print_decimal_chars, print_hex_chars, print_char_chars): Likewise.
6385 * infcmd.c (default_print_registers_info): Likewise.
6386 * arch-utils.c (selected_byte_order, show_endian): Likewise.
6387 * stabsread.c (define_symbol): Likewise.
6388 * doublest.c (floatformat_from_length, floatformat_from_type)
6389 (extract_typed_floating, store_typed_floating): Likewise.
6390 * gdbarch.c, gdbarch.h: Regenerate.
6392 2007-05-31 Markus Deuling <deuling@de.ibm.com>
6394 * gdbarch.sh (CALL_DUMMY_LOCATION): Replace by
6395 gdbarch_call_dummy_location.
6396 * infcall.c (call_function_by_hand): Likewise.
6397 * inferior.h: Change comment.
6398 * arch-utils.c: Change comment.
6399 * gdbarch.c, gdbarch.h: Regenerate.
6401 2007-05-28 Joel Brobecker <brobecker@adacore.com>
6403 * solib-aix5.c: Delete.
6404 * Makefile.in (solib-aix5.o): Delete rule.
6406 2007-05-23 Daniel Jacobowitz <dan@codesourcery.com>
6408 * breakpoint.h (enum bpstat_what_main_action): Remove
6409 BPSTAT_WHAT_THROUGH_SIGTRAMP.
6410 * infrun.c (process_event_stop_test): Do not check for it.
6412 2007-05-22 Chris Dearman <chris@mips.com>
6413 Maciej W. Rozycki <macro@mips.com>
6415 * ser-unix.c (show_serial_hwflow): New function.
6416 (hardwire_raw): Add hardware flow control support.
6417 (_initialize_ser_hardwire): Add "set/show remoteflow".
6418 * Makefile.in (ser-unix.o): Depend on $(gdbcmd_h).
6419 * NEWS: Document the new command.
6421 2007-05-21 Ulrich Weigand <uweigand@de.ibm.com>
6423 * config/i386/tm-linux.h (sys_quotactl): Do not define.
6424 * configure.ac (sys_quotactl, START_INFERIOR_TRAPS_EXPECTED): Do not
6425 define for i[[3456]]86-*-linux* native configurations.
6426 * config.in, configure: Regenerate.
6428 2007-05-19 Joel Brobecker <brobecker@adacore.com>
6430 * rs6000-nat.c (xcoff_relocate_symtab): Do nothing if debugging
6431 a core file. Add comment in the function description.
6433 2007-05-18 Caroline Tice <ctice@apple.com>
6435 * c-valprint.c (c_value_print): If the initialized field of the
6436 value struct is 0, print out "[uninitialized]" before the value.
6437 * dwarf2expr.c (execute_stack_op): Initialize ctx->initialized field;
6438 allow DW_OP_GNU_uninit as legal op following a DW_OP_reg op or a
6439 DW_OP_regx op; add case for DW_OP_GNU_uninit and update
6440 ctx->initialized appropriately. Verify no location op follows
6442 * dwarf2expr.h (struct dwarf_expr_context): New field, initialized.
6443 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Add call to
6444 set_value_initialized.
6445 * dwarf2read.c (dwarf_stack_op_name): Add case for DW_OP_GNU_uninit.
6446 (decode_locdesc): Add case for DW_OP_GNU_uninit.
6447 * value.c (struct value): New field, initialized.
6448 (allocate_value): Initialize new field.
6449 (set_value_initialized): New function.
6450 (value_initialized): New function.
6451 * value.h (value_initialized): New extern declaration.
6452 (set_value_initialized): Likewise.
6454 2007-05-18 Caroline Tice <ctice@apple.com>
6456 * MAINTAINERS (Write After Approval): Add self.
6458 2007-05-17 Joel Brobecker <brobecker@adacore.com>
6460 * gdbtypes.c (make_reference_type): Preserve the type chain
6461 and set the length of all the variants of the pointer type.
6463 2007-05-17 Joel Brobecker <brobecker@adacore.com>
6465 * gdbtypes.c (make_pointer_type): Preserve the pointer type chain
6466 and set the length of all the variants of the pointer type.
6468 2007-05-17 Maciej W. Rozycki <macro@mips.com>
6470 * mips-tdep.c (mips_n32n64_push_dummy_call): Fix and reformat a
6472 (mips_o64_push_dummy_call): Reformat a comment.
6474 2007-05-17 Qinwei <qinwei@sunnorth.com.cn>
6476 * score-tdep.c (score_frame_cache->fp, score_analyze_prologue)
6477 (score_prologue_frame_base_address): Return fp to keep gdb print
6478 local variables correctly when debugging information is stabs.
6480 (score_analyze_prologue): For software watchpoint, fetch all the
6481 instructions from range [startaddr, pc] once and identify them locally
6482 to reduce memory access.
6483 (score_malloc_and_get_memblock, score_free_memblock)
6484 (score_adjust_memblock_ptr): New functions.
6485 (score_fetch_inst): Fetch single instruction or mutiple instructions.
6487 (score_target_can_use_watch, score_stopped_by_watch)
6488 (score_target_insert_watchpoint, score_target_remove_watchpoint)
6489 (score_target_insert_hw_breakpoint, score_target_remove_hw_breakpoint):
6490 New functions for remote & local hw-watchpoint and hw-breakpoint.
6492 2007-05-16 Alfred M. Szmidt <ams@gnu.org>
6494 * reply_mig_hack.awk: Check for `auto const mach_msg_type_t'
6495 declarations as well.
6497 2007-05-16 Ulrich Weigand <uweigand@de.ibm.com>
6499 * config/arm/embed.mt (DEPRECATED_TM_FILE): Set to tm-arm.h.
6500 * config/arm/tm-embed.h: Delete file.
6502 * arm-tdep.h (arm_software_single_step): Declare.
6503 * arm-tdep.c (arm_software_single_step): Make global.
6504 (arm_gdbarch_init): Move set_gdbarch_software_single_step call
6506 * arm-linux-tdep.c (arm_linux_init_abi): ... here ...
6507 * armnbsd-tdep.c (arm_netbsd_init_abi_common): ... here ...
6508 * armobsd-tdep.c (armobsd_init_abi): ... here ...
6509 * arm-wince-tdep.c (arm_wince_init_abi): ... and here.
6511 * arm-tdep.c (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT): No longer
6512 allow defines to be overriden by TM file.
6513 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Likewise. Also,
6514 change default to {0xbe,0xbe}.
6515 * armobsd-tdep.c (arm_obsd_thumb_le_breakpoint,
6516 arm_obsd_thumb_be_breakpoint): New global variables.
6517 (armobsd_init_abi): Override tdep->thumb_breakpoint and
6518 tdep->thumb_breakpoint_size.
6519 * arm-wince-tdep.c (arm_wince_thumb_le_breakpoint): New variable.
6520 (arm_wince_init_abi): Override tdep->thumb_breakpoint and
6521 tdep->thumb_breakpoint_size.
6523 * arm-tdep.c (arm_gdbarch_init): Add set_gdbarch_skip_trampoline_code.
6525 2007-05-16 Daniel Jacobowitz <dan@codesourcery.com>
6527 * NEWS: Mention removed "set mips stack-arg-size" and "set mips
6530 * mips-tdep.c (MIPS32_REGSIZE, MIPS64_REGSIZE): New constants.
6531 (size_auto, size_32, size_64, size_enums, mips_abi_regsize_string)
6532 (mips_stack_argsize_string, mips_stack_argsize): Delete.
6533 (mips_abi_regsize): Simplify.
6534 (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call)
6535 (mips_n32n64_return_value, mips_o32_push_dummy_call)
6536 (mips_o32_return_value, mips_o64_push_dummy_call)
6537 (mips_o64_return_value): Propogate constant register sizes. Use the
6538 ABI register size instead of mips_stack_argsize.
6539 (mips_dump_tdep): Don't print mips_stack_argsize.
6540 (_initialize_mips_tdep): Remove saved-gpreg-size and stack-arg-size
6543 2007-05-16 Daniel Jacobowitz <dan@codesourcery.com>
6545 * config/mips/linux.mt (DEPRECATED_TM_FILE): Delete.
6546 * config/mips/tm-linux.h: Delete.
6547 * mips-linux-tdep.c (mips_svr4_so_ops): New.
6548 (mips_linux_in_dynsym_resolve_code): Make static. Use
6549 svr4_in_dynsym_resolve_code.
6550 (mips_linux_init_abi): Initialize mips_svr4_so_ops. Call
6552 * solib-svr4.c (svr4_in_dynsym_resolve_code, svr4_so_ops): Make
6554 * solib-svr4.h (svr4_so_ops, svr4_in_dynsym_resolve_code): Declare.
6555 * Makefile.in (mips-linux-tdep.o): Update.
6556 * solib.c (set_solib_ops): New.
6557 (current_target_so_ops): Update comment.
6558 * solib.h (set_solib_ops): New prototype.
6560 2007-05-16 Chris Dearman <chris@mips.com>
6562 * printcmd.c (do_examine): Fix typos in a comment.
6564 2007-05-16 Richard Sandiford <richard@codesourcery.com>
6566 * configure.ac: Allow sysroots to be relocated under $prefix as
6567 well as $exec_prefix.
6568 * configure: Regenerate.
6570 2007-05-14 Ulrich Weigand <uweigand@de.ibm.com>
6572 * hppa-hpux-tdep.c: Do not include <dl.h> or <machine/save_state.h>.
6573 (offsetof): Do not define.
6574 (find_stub_with_shl_get): Use numerical value 3 instead of
6575 symbolic value TYPE_PROCEDURE.
6577 2007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
6579 * gdb_proc_service.h (paddr_t): Delete typedef.
6580 * proc-service.c (ps_addr_to_core_addr, core_addr_to_ps_addr): New.
6581 (ps_xfer_memory): Take a psaddr_t. Use ps_addr_to_core_addr.
6582 (ps_pglobal_lookup): Take a psaddr_t *. Use core_addr_to_ps_addr.
6583 (ps_pdread, ps_pdwrite, ps_ptread, ps_ptwrite): Take a psaddr_t.
6584 * sol-thread.c (gdb_ps_addr_t): Use psaddr_t instead of paddr_t.
6585 * Makefile.in (proc-service.o): Update.
6587 2007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
6589 * Makefile.in (mips-tdep.o): Update.
6590 * mips-tdep.c (mips_gdbarch_init): Register the dwarf2 CFI
6593 2007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
6595 * dwarf2-frame.c (dwarf2_frame_prev_register): Use pack_long
6596 instead of store_typed_address.
6597 * value.c (pack_long): New.
6598 (value_from_longest): Use it.
6599 * value.h (pack_long): New prototype.
6601 2007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
6603 * dwarf2-frame.c (read_encoded_value): Correct typo. Use
6604 DW_EH_PE_signed if appropriate.
6606 2007-05-14 Paul Brook <paul@codesourcery.com>
6607 Daniel Jacobowitz <dan@codesourcery.com>
6609 * dwarf2read.c (dwarf2_debug_line_missing_file_complaint): New
6611 (dwarf_decode_lines): Check for line info without a file.
6613 2007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
6615 * linux-thread-db.c (thread_db_pid_to_str): Print thread IDs
6618 2007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
6620 * jv-exp.y (push_fieldnames): Use STRUCTOP_PTR instead of
6622 * jv-lang.c (evaluate_subexp_java): Handle STRUCTOP_PTR instead of
6624 * jv-typeprint.c (java_print_type): Do not crash on NULL varstring.
6626 2007-05-14 Ulrich Weigand <uweigand@de.ibm.com>
6628 * gdbarch.sh (read_sp): Remove.
6629 * gdbarch.c, gdbarch.h: Regenerate.
6630 * frame.c (frame_sp_unwind): Do not call TARGET_READ_SP.
6632 * avr-tdep.c (avr_read_sp): Remove.
6633 (avr_unwind_sp): New function.
6634 (avr_gdbarch_init): Install unwind_sp instead of read_sp callback.
6635 * mips-tdep.c (mips_read_sp): Remove.
6636 (mips_unwind_sp): New function.
6637 (mips_gdbarch_init): Install unwind_sp instead of read_sp callback.
6638 * score-tdep.c (score_read_unsigned_register): Remove.
6639 (score_read_sp): Remove.
6640 (score_unwind_sp): New function.
6641 (score_gdbarch_init): Install unwind_sp instead of read_sp callback.
6643 2007-05-14 Maxim Grigoriev <maxim2405@gmail.com>
6645 * buildsym.c (start_subfile): Handle absolute pathnames
6646 while comparing subfile names.
6648 2007-05-13 Ulrich Weigand <uweigand@de.ibm.com>
6650 * hppa-hpux-tdep.c: Include "regcache.h".
6651 * hppa-linux-tdep.c: Likewise.
6652 * hppa-tdep.c: Include "gdb_stdint.h".
6653 (find_unwind_entry): Cast host pointer to uintptr_t before passing
6655 * Makefile.in: Update dependencies.
6657 2007-05-13 Ulrich Weigand <uweigand@de.ibm.com>
6659 * blockframe.c: Remove obsolete comments.
6660 * alpha-nat.c (fetch_osf_core_registers): Update comment.
6661 * arm-tdep.h (enum gdb_regnum): Remove obsolete part of comment.
6662 * hppa-tdep.h (enum hppa_regnum): Likewise.
6663 * mips-tdep.h: Likewise.
6664 * m68hc11-tdep.c: Likewise.
6666 2007-05-13 Ulrich Weigand <uweigand@de.ibm.com>
6668 * inferior.h (read_sp): Remove prototype.
6669 * regcache.c (read_sp): Remove.
6670 * gcore.c (derive_stack_segment): Use get_frame_sp instead of read_sp.
6671 * infcall.c (call_function_by_hand): Likewise.
6672 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Use regcache instead
6674 * rs6000-tdep.c (rs6000_push_dummy_call): Likewise.
6676 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
6678 * i386-linux-nat.c (i386_linux_resume): Use regcache functions
6679 instead of read_register and read_register_pid.
6681 * ia64-linux-nat.c (enable_watchpoints_in_psr): Use REGCACHE
6682 argument instead of PTID. Use regcache functions instead of
6684 (ia64_linux_insert_watchpoint): Update call.
6685 (ia64_linux_stopped_data_address): Use regcache functions
6686 instead of read_register_pid and write_register_pid.
6688 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
6690 * libunwind-frame.h (struct regcache): Add forward declaration.
6691 (libunwind_get_reg_special): Add REGCACHE argument.
6692 * libunwind-frame.c (libunwind_get_reg_special): Add REGCACHE
6693 argument. Pass it to unw_init_remote_p.
6695 * ia64-tdep.c (ia64_pseudo_register_read): Pass regcache to
6696 libunwind_get_reg_special.
6697 (ia64_access_reg): Remove "write" case.
6698 (ia64_access_fpreg): Likewise. Read from next_frame passed
6699 as callback argument instead of from current_regcache.
6700 (ia64_access_rse_reg): Remove "write" case. Read from regcache
6701 passed as callback argument instead of from current_regcache.
6702 (ia64_access_rse_fpreg): New function.
6703 (ia64_unw_rse_acce): Use it instead of ia64_access_fpreg.
6705 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
6707 * NEWS: Mention SPU overlay support.
6709 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
6711 * spu-tdep.c (spu_frame_unwind_cache): Add comment.
6713 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
6715 * breakpoint.c (remove_breakpoint): Do not remove software
6716 breakpoints in unmapped overlay sections.
6718 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
6720 * spu-tdep.c: Include "observer.h".
6721 (spu_frame_unwind_cache): Unwind PC through overlay return stubs.
6722 (spu_overlay_data): New variable.
6723 (struct spu_overlay_table): New type.
6724 (spu_get_overlay_table, spu_overlay_update_osect, spu_overlay_update,
6725 spu_overlay_new_objfile): New functions.
6726 (spu_gdbarch_init): Install spu_overlay_update.
6727 (_initialize_spu_tdep): Register spu_overlay_new_objfile,
6728 allocate spu_overlay_data objfile data.
6730 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
6732 * gdbarch.sh (overlay_update): New gdbarch function.
6733 (struct obj_section): Add forward declaration.
6734 * gdbarch.c, gdbarch.h: Regenerate.
6736 * symfile.c (simple_overlay_update): Make global.
6737 (target_overlay_update): Remove variable.
6738 (overlay_is_mapped): Call gdbarch_overlay_update instead of
6739 target_overlay_update.
6740 (overlay_load_command): Likewise.
6741 * symfile.h (struct obj_section): Add forward declaration.
6742 (simple_overlay_update): Add prototype.
6744 * m32r-tdep.c (m32r_gdbarch_init): Install simple_overlay_update.
6746 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
6748 * observer.sh: Add "struct objfile" forward declaration.
6749 * target.h (deprecated_target_new_objfile_hook): Remove.
6750 * symfile.c (deprecated_target_new_objfile_hook): Remove.
6751 (clear_symtab_users): Call observer_notify_new_objfile.
6752 (symbol_file_add_with_addrs_or_offsets): Likewise.
6753 * rs6000-nat.c: Include "observer.h".
6754 (vmap_ldinfo): Call observer_notify_new_objfile.
6755 (xcoff_relocate_core): Likewise.
6756 * remote.c (remote_new_objfile_chain): Remove.
6757 (remote_new_objfile): Do not call remote_new_objfile_chain.
6758 (_initialize_remote): Use observer_attach_new_objfile.
6759 * tui/tui-hooks.c (tui_target_new_objfile_chain): Remove.
6760 (tui_new_objfile_hook): Do not call tui_target_new_objfile_chain.
6761 (_initialize_tui_hooks): Use observer_attach_new_objfile.
6762 * aix-thread.c: Include "observer.h".
6763 (target_new_objfile_chain): Remove.
6764 (new_objfile): Do not call target_new_objfile_chain.
6765 (_initialize_aix_thread): Use observer_attach_new_objfile.
6766 * hpux-thread.c: Include "observer.h"
6767 (target_new_objfile_chain): Remove.
6768 (hpux_thread_new_objfile): Make static. Do not call
6769 target_new_objfile_chain.
6770 (_initialize_hpux_thread): Use observer_attach_new_objfile.
6771 * linux-thread-db.c: Include "observer.h".
6772 (target_new_objfile_chain): Remove.
6773 (thread_db_new_objfile): Do not call target_new_objfile_chain.
6774 (_initialize_thread_db): Use observer_attach_new_objfile.
6775 * sol-thread.c: Include "observer.h".
6776 (target_new_objfile_chain): Remove.
6777 (sol_thread_new_objfile): Make static. Do not call
6778 target_new_objfile_chain.
6779 (_initialize_sol_thread): Use observer_attach_new_objfile.
6780 * Makefile.in (aix-thread.o, hpux-thread.o, linux-thread-db.o,
6781 rs6000-nat.o, sol-thread.o, tui-hooks.o): Add dependency on
6784 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
6786 * gdbarch.sh (remote_translate_xfer_address): Remove.
6787 * gdbarch.h, gdbarch.c: Regenerate.
6788 * arch-utils.c (generic_remote_translate_xfer_address): Remove.
6789 * arch-utils.h (generic_remote_translate_xfer_address): Remove.
6790 * remote.c (remote_write_bytes_aux, remote_read_bytes): Do not
6791 call gdbarch_remote_translate_xfer_address.
6792 * frv-tdep.c (frv_gdbarch_init): Do not call
6793 set_gdbarch_remote_translate_xfer_address.
6794 * ia64-tdep.c (ia64_remote_translate_xfer_address): Remove.
6795 (ia64_gdbarch_init): Do not install it.
6797 2007-05-11 Bob Wilson <bob.wilson@acm.org>
6799 * NEWS: Mention change in handling the -tui option.
6801 2007-05-11 Daniel Jacobowitz <dan@codesourcery.com>
6803 * linux-thread-db.c (enable_thread_event_reporting): Fix comment
6806 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
6808 * breakpoint.c (single_step_breakpoint_inserted_here_p): New function.
6809 (breakpoint_inserted_here_p): Call it.
6810 (software_breakpoint_inserted_here_p): Likewise.
6812 2007-05-10 Ulrich Weigand <uweigand@de.ibm.com>
6814 * inf-ptrace.c (inf_ptrace_register_u_offset): Adapt parameter list.
6815 (inf_ptrace_fetch_register): Add register_u_offset callback parameters
6816 GDBARCH and STORE_P. Handle callback (CORE_ADDR) -1 return value.
6817 (inf_ptrace_store_register): Likewise.
6818 (inf_ptrace_trad_target): Adapt register_u_offset parameter list.
6819 * inf-ptrace.h (inf_ptrace_trad_target): Likewise.
6821 * vax-nat.c (vax_register_u_offset): Adapt parameter list.
6823 * linux-nat.c (linux_trad_target): Adapt parameter list.
6824 * linux-nat.h (linux_trad_target): Likewise.
6826 * alpha-linux-nat.c (alpha_linux_register_u_offset): Adapt parameters.
6828 * mips-linux-nat.c (mips_linux_cannot_fetch_register): Remove.
6829 (mips_linux_cannot_store_register): Likewise.
6830 (mips_linux_register_addr): Add GDBARCH and STORE_P parameters.
6831 Return (CORE_ADDR) -1 for registers that cannot be fetched or
6832 stored via ptrace. Use GDBARCH instead of current_gdbarch.
6833 (mips64_linux_register_addr): Likewise.
6834 (mips_linux_register_u_offset): Adapt parameter list. Pass
6835 GDBARCH and STORE_P on to mips{64}_linux_register_addr.
6837 * config/mips/linux.mh (NAT_FILE): Set to config/nm-linux.h.
6838 * config/mips/nm-linux.h: Delete file.
6840 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
6842 * remote.c (remote_detach): Error out if remote can't detach.
6844 2007-05-10 Luis Machado <luisgpm@br.ibm.com>
6846 * rs6000-tdep.c: (deal_with_atomic_sequence) Stores branch
6847 instruction's opcode in the "opcode" variable and declares new
6848 variable "closing_insn".
6850 2007-05-10 Chris Dearman <chris@mips.com>
6851 Maciej W. Rozycki <macro@mips.com>
6853 * cli/cli-setshow.c (do_setshow_command): Remove trailing
6854 whitespace when setting a var_filename.
6856 2007-05-09 Bob Wilson <bob.wilson@acm.org>
6858 * main.c (captured_main): Recognize -tui option and print an error
6859 message when the TUI is not configured.
6861 2007-05-09 Andreas Schwab <schwab@suse.de>
6863 * mipsnbsd-tdep.c (mipsnbsd_ilp32_fetch_link_map_offsets): Don't
6864 set removed members.
6865 (mipsnbsd_lp64_fetch_link_map_offsets): Likewise.
6867 2007-05-08 Ulrich Weigand <uweigand@de.ibm.com>
6869 * gdbarch.sh (deprecated_store_struct_return): Remove.
6870 * gdbarch.c, gdbarch.h: Regenerate.
6871 * frv-tdep.c (frv_store_struct_return): Remove.
6872 (frv_gdbarch_init): Do not install it.
6874 2007-05-08 Ulrich Weigand <uweigand@de.ibm.com>
6876 * config/i386/nm-i386sol2.h (USE_PROC_FS): Do not define.
6877 * config/mips/nm-irix5.h (USE_PROC_FS): Do not define.
6878 * config/nm-linux.h (USE_PROC_FS): Do not undefine.
6880 2007-05-08 Ulrich Weigand <uweigand@de.ibm.com>
6882 * spu-linux-nat.c: Include "gdb_stdint.h".
6883 (fetch_ppc_register): Use uint64_t instead of unsigned long long.
6884 (fetch_ppc_memory_1, store_ppc_memory_1): Likewise.
6885 (fetch_ppc_memory, store_ppc_memory): Fix coding style.
6886 (spu_symbol_file_add_from_memory): Use strtoulst instead of sscanf.
6887 (spu_child_wait): Mark up string for translation.
6889 2007-05-08 Paul Gilliam <pgilliam@us.ibm.com>
6890 Luis Machado <luisgpm@br.ibm.com>
6892 * rs6000-tdep.c: (LWARX_MASK, LWARX_INSTRUCTION, LDARX_INSTRUCTION,
6893 STWCX_MASK, STWCX_INSTRUCTION, STDCX_INSTRUCTION, BC_MASK,
6894 BC_INSTRUCTION): Define.
6895 (deal_with_atomic_sequence): New function.
6896 (rs6000_software_single_step): Call deal_with_atomic_sequence.
6897 (rs6000_gdbarch_init): Install deal_with_atomic_sequence as
6898 gdbarch_software_single_step routine.
6900 2007-05-07 Ulrich Weigand <uweigand@de.ibm.com>
6902 * spu-linux-nat.c (fetch_ppc_register, fetch_ppc_memory_1,
6903 store_ppc_memory_1, fetch_ppc_memory, store_ppc_memory,
6904 parse_spufs_run, spu_bfd_iovec_pread, spu_bfd_open,
6905 spu_symbol_file_add_from_memory, spu_child_post_startup_inferior,
6906 spu_child_post_attach, spu_fetch_inferior_registers,
6907 spu_store_inferior_registers, spu_xfer_partial): Store PPE-side
6908 memory addresses as ULONGEST, not CORE_ADDR.
6910 2007-05-07 Ulrich Weigand <uweigand@de.ibm.com>
6912 * gdbarch.sh: Add skip_permanent_breakpoint callback.
6913 * gdbarch.h, gdbarch.c: Regenerate.
6915 * infrun.c (SKIP_PERMANENT_BREAKPOINT): Remove default definition.
6916 (resume): Call gdbarch_skip_permanent_breakpoint instead of
6917 SKIP_PERMANENT_BREAKPOINT. Inline default case.
6919 * hppa-hpux-tdep.c (hppa_skip_permanent_breakpoint): Make static.
6920 Add REGCACHE argument. Use it instead of read/write_register.
6921 (hppa_hpux_init_abi): Install hppa_skip_permanent_breakpoint.
6923 * config/pa/tm-hppah.h: Delete file.
6924 * config/pa/hppa64.mt (DEPRECATED_TM_FILE): Set to tm-hppa.h.
6925 * config/pa/hppahpux.mt (DEPRECATED_TM_FILE): Likewise.
6927 2007-05-07 Daniel Jacobowitz <dan@codesourcery.com>
6929 * Makefile.in (c-lang.o, gnu-v3-abi.o): Update.
6930 * NEWS: Mention improved C++ thunk support.
6931 * c-lang.c (cplus_language_defn): Mention cplus_skip_trampoline.
6932 * cp-abi.c (cplus_skip_trampoline): New.
6933 * cp-abi.h (cplus_skip_trampoline): New prototype.
6934 (struct cp_abi_ops): Add skip_trampoline member.
6935 * gnu-v3-abi.c (gnuv3_skip_trampoline): New.
6936 (init_gnuv3_ops): Set skip_trampoline.
6938 2007-05-06 Daniel Jacobowitz <dan@codesourcery.com>
6940 * rs6000-tdep.c (struct frame_extra_info): Delete.
6942 2007-05-06 Daniel Jacobowitz <dan@codesourcery.com>
6944 * linux-thread-db.c: Update some FIXME comments.
6945 (thread_db_xfer_partial): Delete.
6946 (init_thread_db_ops): Do not set to_xfer_partial.
6948 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
6950 * inftarg.c, infptrace.c: Remove files.
6951 * Makefile.in (ALLDEPFILES): Remove inftarg.c and infptrace.c
6952 (inftarg.o, infptrace.o): Remove rules.
6953 * gdbcore.h (register_addr): Remove prototype.
6954 * inferior.h (kill_inferior, store_inferior_registers,
6955 fetch_inferior_registers, attach, detach, ptrace_wait, child_resume,
6956 call_ptrace, pre_fork_inferior): Remove prototypes.
6957 * target.h (child_xfer_memory, child_pid_to_exec_file,
6958 child_core_file_to_sym_file, child_post_attach,
6959 child_post_startup_inferior, child_acknowledge_created_inferior,
6960 child_insert_fork_catchpoint, child_remove_fork_catchpoint,
6961 child_insert_vfork_catchpoint, child_remove_vfork_catchpoint,
6962 child_insert_exec_catchpoint, child_remove_exec_catchpoint,
6963 child_follow_fork, child_reported_exec_events_per_exec_call,
6964 child_has_exited, child_thread_alive): Remove prototypes.
6966 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
6968 * sparc-nat.h (sparc_fetch_inferior_registers): Add prototype.
6969 (sparc_store_inferior_registers): Likewise.
6970 * sparc-nat.c (fetch_inferior_registers): Rename to ...
6971 (sparc_fetch_inferior_registers): ... this.
6972 (store_inferior_registers): Rename to ...
6973 (sparc_store_inferior_registers): ... this.
6974 (sparc_target): Update callback names.
6975 * sparc-linux.nat.c (_initialize_sparc_linux_nat): Likewise.
6976 * sparc64-linux.nat.c (_initialize_sparc64_linux_nat): Likewise.
6978 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
6980 * linux-nat.c (child_post_attach): Rename to ...
6981 (linux_child_post_attach): ... this. Make static.
6982 (child_follow_fork): Rename to ...
6983 (linux_child_follow_fork): ... this. Make static.
6984 (child_insert_fork_catchpoint): Rename to ...
6985 (linux_child_insert_fork_catchpoint): ... this. Make static.
6986 (child_insert_vfork_catchpoint): Rename to ...
6987 (linux_child_insert_vfork_catchpoint): ... this. Make static.
6988 (child_insert_exec_catchpoint): Rename to ...
6989 (linux_child_insert_exec_catchpoint): ... this. Make static.
6990 (child_pid_to_exec_file): Rename to ...
6991 (linux_child_pid_to_exec_file): ... this. Make static.
6993 (linux_handle_extended_wait): Update call.
6994 (linux_xfer_partial): Update callback routine names.
6996 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
6998 * configure.host (alpha*-*-osf[12]*): Remove support.
6999 * NEWS: Mention removed configurations.
7001 * config/alpha/alpha-osf1.mh: Delete file.
7002 * config/alpha/alpha-osf2.mh: Delete file.
7003 * config/alpha/alpha-osf3.mh (NATDEPFILES): Remove inftarg.o
7005 * config/alpha/nm-osf.h: Delete file.
7006 * config/alpha/nm-osf2.h: Delete file.
7007 * config/alpha/nm-osf3.h: Do not include "nm-osf2.h".
7008 (START_INFERIOR_TRAPS_EXPECTED): Copy from nm-osf.h.
7009 (PROCFS_DONT_TRACE_FAULTS): Copy from nm-osf2.h.
7011 * alpha-nat.c (ALPHA_UNIQUE_PTRACE_ADDR): Do not define.
7012 (register_addr, kernel_u_size): Remove.
7013 Do not check for "defined(USE_PROC_FS) || defined(HAVE_GREGSET_T)".
7015 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7017 * regcache.c (regcache_invalidate): New function.
7018 (register_cached): Remove.
7019 (set_register_cached): Remove.
7020 (deprecated_registers_fetched): Remove.
7021 (registers_changed): Use regcache_invalidate instead
7022 of set_register_cached.
7023 (regcache_raw_read): Update comment.
7025 * regcache.h (regcache_invalidate): Add prototype.
7026 (register_cached): Remove.
7027 (set_register_cached): Remove.
7028 (deprecated_registers_fetched): Remove.
7030 * findvar.c (value_of_register): Do not call register_cached.
7031 * frame.c (frame_register): Likewise.
7032 * tui/tui-regs.c (tui_get_register): Likewise.
7034 * remote.c (fetch_register_using_p): Do not call set_register_cached.
7035 (process_g_packet): Likewise.
7036 (remote_fetch_registers): Likewise.
7037 * remote-sim.c (gdbsim_fetch_register): Likewise.
7038 * mt-tdep.c (mt_select_coprocessor): Replace set_register_cached call
7039 by regcache_invalidate.
7040 (mt_pseudo_register_write): Likewise.
7041 * sh-tdep.c (sh_pseudo_register_write): Likewise.
7043 * corelow.c (get_core_registers): Replace deprecated_registers_fetched
7044 call by loop over regcache_raw_supply (..., NULL).
7046 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7048 * target.h (struct target_ops): Add REGCACHE parameter to
7049 to_prepare_to_store.
7050 (target_prepare_to_store): Likewise.
7051 * target.c (debug_to_prepare_to_store): Add REGCACHE parameter.
7052 (update_current_target): Adapt prepare_to_store de_fault rule.
7054 * regcache.c (regcache_raw_write): Pass regcache to
7055 target_prepare_to_store.
7057 * inftarg.c (child_prepare_to_store): Add REGCACHE parameter.
7058 Do not call CHILD_PREPARE_TO_STORE.
7059 * gnu-nat.c (gnu_prepare_to_store): Likewise.
7060 * procfs.c (procfs_prepare_to_store): Likewise.
7062 * inf-child.c (inf_child_prepare_to_store): Add REGCACHE parameter.
7063 * go32-nat.c (go32_prepare_to_store): Likewise.
7064 * monitor.c (monitor_prepare_to_store): Likewise.
7065 * nto-procfs.c (procfs_prepare_to_store): Likewise.
7066 * remote-m32r-sdi.c (m32r_prepare_to_store): Likewise.
7067 * remote-mips.c (mips_prepare_to_store): Likewise.
7068 * remote-sim.c (gdbsim_prepare_to_store): Likewise.
7069 * win32-nat.c (win32_prepare_to_store): Likewise.
7071 * remote.c (remote_prepare_to_store): Add REGCACHE parameter.
7072 Use it instead of current_regcache.
7074 * hpux-thread.c (hpux_thread_prepare_to_store): Add REGCACHE
7075 parameter. Pass it on to next target.
7076 * sol-thread.c (sol_thread_prepare_to_store): Likewise.
7078 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7080 * target.h (struct regcache): Add forward declaration.
7081 (struct target_ops): Add REGCACHE parameter to to_fetch_registers
7082 and to_store_registers target operations.
7083 (target_fetch_registers, target_store_registers): Update.
7085 * regcache.c (regcache_raw_read): Replace register_cached by
7086 regcache_valid_p. Pass regcache to target_fetch_registers.
7087 (regcache_raw_write): Pass regcache to target_store_registers.
7089 * arm-linux-nat.c (store_fpregister, store_fpregs, store_register,
7090 store_regs, store_wmmx_regs): Replace register_cached by
7093 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd): Pass current_regcache
7094 to target_fetch_registers calls.
7095 * corelow.c (core_open): Likewise.
7096 * linux-nat.c (linux_nat_corefile_thread_callback): Likewise.
7097 * proc-service.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
7098 ps_lsetfpregs): Likewise.
7099 * sol-thread.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
7100 ps_lsetfpregs): Likewise.
7101 * win32-nat.c (win32_resume): Likewise.
7102 * ia64-tdep.c (ia64_store_return_value): Pass current_regcache
7103 to target_store_registers call.
7104 * rs6000-tdep.c (rs6000_push_dummy_call): Likewise.
7106 * inferior.h (store_inferior_registers): Update prototype.
7107 (fetch_inferior_registers): Likewise.
7108 * gnu-nat.c (gnu_store_registers, gnu_fetch_registers): Likewise.
7109 * mips-linux-nat.c (super_fetch_registers, super_store_registers):
7110 Update function pointer signatures.
7112 * aix-thread.c (aix_thread_fetch_registers): Add REGCACHE parameter,
7113 use it instead of current_regcache, update calls.
7114 (aix_thread_store_registers): Likewise.
7115 * alphabsd-nat.c (alphabsd_fetch_inferior_registers): Likewise.
7116 (alphabsd_store_inferior_registers): Likewise.
7117 * amd64bsd-nat.c (amd64bsd_fetch_inferior_registers): Likewise.
7118 (amd64bsd_store_inferior_registers): Likewise.
7119 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers): Likewise.
7120 (amd64_linux_store_inferior_registers): Likewise.
7121 * arm-linux-nat.c (fetch_fpregister, fetch_fpregs, store_fpregister,
7122 store_fpregs, fetch_register, fetch_regs, store_register, store_regs,
7123 fetch_wmmx_regs, store_wmmx_regs): Likewise.
7124 (arm_linux_fetch_inferior_registers): Likewise.
7125 (arm_linux_store_inferior_registers): Likewise.
7126 * armnbsd-nat.c (fetch_register, fetch_regs, fetch_fp_register,
7127 fetch_fp_regs, armnbsd_fetch_registers): Likewise.
7128 (store_register, store_regs, store_fp_register, store_fp_regs,
7129 armnbsd_store_registers): Likewise.
7130 * bsd-kvm.c (bsd_kvm_fetch_pcb, bsd_kvm_fetch_registers): Likewise.
7131 * bsd-uthread.c (bsd_uthread_fetch_registers): Likewise.
7132 (bsd_uthread_store_registers): Likewise.
7133 * corelow.c (get_core_registers): Likewise.
7134 * go32-nat.c (fetch_register, go32_fetch_registers, store_register,
7135 go32_store_registers): Likewise.
7136 * hppabsd-nat.c (hppabsd_fetch_registers): Likewise.
7137 (hppabsd_store_registers): Likewise.
7138 * hppa-hpux-nat.c (hppa_hpux_fetch_register): Likewise.
7139 (hppa_hpux_fetch_inferior_registers): Likewise.
7140 (hppa_hpux_store_register): Likewise.
7141 (hppa_hpux_store_inferior_registers): Likewise.
7142 * hppa-linux-nat.c (fetch_register, store_register): Likewise.
7143 (hppa_linux_fetch_inferior_registers): Likewise.
7144 (hppa_linux_store_inferior_registers): Likewise.
7145 * hpux-thread.c (hpux_thread_fetch_registers): Likewise.
7146 (hpux_thread_store_registers): Likewise.
7147 * i386bsd-nat.c (i386bsd_fetch_inferior_registers): Likewise.
7148 (i386bsd_store_inferior_registers): Likewise.
7149 * i386gnu-nat.c (fetch_fpregs, gnu_fetch_registers, store_fpregs,
7150 gnu_store_registers): Likewise.
7151 * i386-linux-nat.c (fetch_register, store_register, fetch_regs,
7152 store_regs, fetch_fpregs, store_fpregs, fetch_fpxregs, store_fpxregs):
7154 (i386_linux_fetch_inferior_registers): Likewise.
7155 (i386_linux_store_inferior_registers): Likewise.
7156 * ia64-linux-nat.c (ia64_linux_fetch_register): Likewise.
7157 (ia64_linux_fetch_registers): Likewise.
7158 (ia64_linux_store_register): Likewise.
7159 (ia64_linux_store_registers): Likewise.
7160 * inf-child.c (inf_child_fetch_inferior_registers): Likewise.
7161 (inf_child_store_inferior_registers): Likewise.
7162 * inf-ptrace.c (inf_ptrace_fetch_register): Likewise.
7163 (inf_ptrace_fetch_registers): Likewise.
7164 (inf_ptrace_store_register): Likewise.
7165 (inf_ptrace_store_registers): Likewise.
7166 * infptrace.c (fetch_register, store_register): Likewise.
7167 (fetch_inferior_registers, store_inferior_registers): Likewise.
7168 * m32r-linux-nat.c (fetch_regs, store_regs): Likewise.
7169 (m32r_linux_fetch_inferior_registers): Likewise.
7170 (m32r_linux_store_inferior_registers): Likewise.
7171 * m68kbsd-nat.c (m68kbsd_fetch_inferior_registers): Likewise.
7172 (m68kbsd_store_inferior_registers): Likewise.
7173 * m68klinux-nat.c (fetch_register, old_fetch_inferior_registers,
7174 store_register, old_store_inferior_registers, fetch_regs, store_regs,
7175 fetch_fpregs, store_fpregs): Likewise.
7176 (m68k_linux_fetch_inferior_registers): Likewise.
7177 (m68k_linux_store_inferior_registers): Likewise.
7178 * m88kbsd-nat.c (m88kbsd_fetch_inferior_registers): Likewise.
7179 (m88kbsd_store_inferior_registers): Likewise.
7180 * mips64obsd-nat.c (mips64obsd_fetch_inferior_registers): Likewise.
7181 (mips64obsd_store_inferior_registers): Likewise.
7182 * mips-linux-nat.c (mips64_linux_regsets_fetch_registers): Likewise.
7183 (mips64_linux_regsets_store_registers): Likewise.
7184 (mips64_linux_fetch_registers): Likewise.
7185 (mips64_linux_store_registers): Likewise.
7186 * mipsnbsd-nat.c (mipsnbsd_fetch_inferior_registers): Likewise.
7187 (mipsnbsd_store_inferior_registers): Likewise.
7188 * monitor.c (monitor_fetch_register, monitor_store_register): Likewise.
7189 (monitor_fetch_registers, monitor_store_registers): Likewise.
7190 * nto-procfs.c (procfs_fetch_registers): Likewise.
7191 (procfs_store_registers): Likewise.
7192 * ppc-linux-nat.c (fetch_altivec_register, fetch_spe_register,
7193 fetch_register, supply_vrregset, fetch_altivec_registers,
7194 fetch_ppc_registers, ppc_linux_fetch_inferior_registers): Likewise.
7195 (store_altivec_register, store_spe_register, store_register,
7196 fill_vrregset, store_altivec_registers, store_ppc_registers,
7197 ppc_linux_store_inferior_registers): Likewise.
7198 * ppcnbsd-nat.c (ppcnbsd_fetch_inferior_registers): Likewise.
7199 (ppcnbsd_store_inferior_registers): Likewise.
7200 * ppcobsd-nat.c (ppcobsd_fetch_registers): Likewise.
7201 (ppcobsd_store_registers): Likewise.
7202 * procfs.c (procfs_fetch_registers, procfs_store_registers): Likewise.
7203 * remote.c (fetch_register_using_p, process_g_packet,
7204 fetch_registers_using_g, remote_fetch_registers): Likewise.
7205 (store_register_using_P, store_registers_using_G,
7206 remote_store_registers): Likewise.
7207 * remote-m32r-sdi.c (m32r_fetch_registers, m32r_fetch_register,
7208 m32r_store_register, m32r_store_register): Likewise.
7209 * remote-mips.c (mips_fetch_registers, mips_store_registers): Likewise.
7210 * remote-sim.c (gdbsim_fetch_register): Likewise.
7211 (gdbsim_store_register): Likewise.
7212 * rs6000-nat.c (fetch_register, store_register): Likewise.
7213 (rs6000_fetch_inferior_registers): Likewise.
7214 (rs6000_store_inferior_registers): Likewise.
7215 * s390-nat.c (fetch_regs, store_regs): Likewise.
7216 (fetch_fpregs, store_fpregs): Likewise.
7217 (s390_linux_fetch_inferior_registers): Likewise.
7218 (s390_linux_store_inferior_registers): Likewise.
7219 * shnbsd-nat.c (shnbsd_fetch_inferior_registers): Likewise.
7220 (shnbsd_store_inferior_registers): Likewise.
7221 * sol-thread.c (sol_thread_fetch_registers): Likewise.
7222 (sol_thread_store_registers): Likewise.
7223 * sparc-nat.c (fetch_inferior_registers): Likewise.
7224 (store_inferior_registers): Likewise.
7225 * spu-linux-nat.c (spu_fetch_inferior_registers): Likewise.
7226 (spu_store_inferior_registers): Likewise.
7227 * target.c (debug_print_register): Likewise.
7228 (debug_to_fetch_registers, debug_to_store_registers): Likewise.
7229 * vaxbsd-nat.c (vaxbsd_fetch_inferior_registers): Likewise.
7230 (vaxbsd_store_inferior_registers): Likewise.
7231 * win32-nat.c (do_win32_fetch_inferior_registers): Likewise.
7232 (win32_fetch_inferior_registers): Likewise.
7233 (win32_store_inferior_registers): Likewise.
7235 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7237 * gdbcore.h (struct regcache): Add forward declaration.
7238 (struct core_fns): Add REGCACHE argument to core_read_registers
7240 * corelow.c (get_core_register_section): Add REGCACHE argument,
7241 use it instead of current_regcache, pass it to core_read_registers
7243 (get_core_registers): Add current_regcache as parameter to
7244 get_core_register_section calls.
7246 * alpha-nat.c (fetch_osf_core_registers): Add REGCACHE argument,
7247 use it instead of current_regcache.
7248 * armnbsd-nat.c (fetch_core_registers): Likewise.
7249 (fetch_elfcore_registers): Likewise.
7250 * core-regset.c (fetch_core_registers): Likewise.
7251 * cris-tdep.c (fetch_core_registers): Likewise.
7252 * irix5-nat.c (fetch_core_registers): Likewise.
7253 * m68klinux-nat.c (fetch_core_registers): Likewise.
7254 * mips-linux-tdep.c (fetch_core_registers): Likewise.
7255 * win32-nat.c (fetch_elf_core_registers): Likewise.
7257 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7259 * gregset.h (struct regcache): Add forward declaration.
7260 (supply_gregset): Add REGCACHE parameter, make GREGS const.
7261 (supply_fpregset): Add REGCACHE parameter, make FPREGS const.
7262 (supply_fpxregset): Add REGCACHE parameter, make FPXREGS const.
7263 (fill_gregset): Add REGCACHE parameter.
7264 (fill_fpregset): Likewise.
7265 (fill_fpxregset): Likewise.
7267 Update all definitions accordingly:
7268 * alphabsd-nat.c, alpha-linux-nat.c, alpha-nat.c, amd64-linux-nat.c,
7269 arm-linux-nat.c, hppa-linux-nat.c, i386gnu-nat.c, i386-linux-nat.c,
7270 i386-sol2-nat.c, i386v4-nat.c, ia64-linux-nat.c, irix5-nat.c,
7271 m32r-linux-nat.c, m68klinux-nat.c, mips-linux-nat.c, ppc-linux-nat.c,
7272 s390-nat.c, sparc64-linux-nat.c, sparc-linux-nat.c, sparc-sol2-nat.c
7273 (supply_gregset): Add REGCACHE parameter, use it instead of
7274 current_regcache. Make GREGSETP parameter const, adapt casts.
7275 (supply_fpregset): Add REGCACHE parameter, use it instead of
7276 current_regcache. Make FPREGSETP parameter const, adapt casts.
7277 (fill_gregset): Add REGCACHE parameter, use it instead of
7279 (fill_fpregset): Likewise.
7281 Update all callers to pass in current_regcache as the new argument:
7282 * core-regset.c: Include "regcache.h".
7283 (fetch_core_registers): Update supply_gregset,and supply_fpregset calls.
7284 * procfs.c: Include "regcache.h".
7285 (procfs_fetch_registers): Update supply_gregset, supply_fpregset calls.
7286 (procfs_store_registers): Update fill_gregset, fill_fpregset calls.
7287 (procfs_do_thread_registers): Likewise.
7288 (procfs_make_note_section): Likewise.
7289 * proc-service.c: Include "regcache.h".
7290 (ps_lgetregs): Update fill_gregset call.
7291 (ps_lsetregs): Update supply_gregset call.
7292 (ps_lgetfpregs): Update fill_fpregset call.
7293 (ps_lsetfpregs): Update supply_fpregset call.
7294 * sol-thread.c (sol_thread_fetch_registers): Update supply_gregset,
7295 supply_fpregset calls.
7296 (sol_thread_store_registers): Update fill_gregset, fill_fpregset calls.
7297 (ps_lgetregs): Update fill_gregset call.
7298 (ps_lsetregs): Update supply_gregset call.
7299 (ps_lgetfpregs): Update fill_fpregset call.
7300 (ps_lsetfpregs): Update supply_fpregset call.
7302 * linux-nat.c (linux_nat_do_thread_registers): Update fill_gregset,
7303 fill_fpregset, and fill_fpxregset calls.
7304 * i386-linux-nat.c (fetch_regs): Update supply_gregset call.
7305 (store_regs): Update fill_gregset call.
7306 (fetch_fpregs): Update supply_fpregset call.
7307 (store_fpregs): Update fill_fpregset call.
7308 (fetch_fpxregs): Update supply_fpxregset call.
7309 (store_fpxregs): Update fill_fpxregset call.
7310 * m32r-linux-nat.c (fetch_regs): Update supply_gregset call.
7311 (store_regs): Update fill_gregset call.
7312 * m68klinux-nat.c (fetch_regs): Update supply_gregset call.
7313 (store_regs): Update fill_gregset call.
7314 (fetch_fpregs): Update supply_fpregset call.
7315 (store_fpregs): Update fill_fpregset call.
7316 (fetch_core_registers): Update supply_gregset, supply_fpregset calls.
7317 * s390-nat.c (fetch_regs): Update supply_gregset call.
7318 (store_regs): Update fill_gregset call.
7319 (fetch_fpregs): Update supply_fpregset call.
7320 (store_fpregs): Update fill_fpregset call.
7322 * Makefile.in (core-regset.o, procfs.o, proc-service.o): Update
7325 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7327 * monitor.c (monitor_supply_register): Add REGCACHE parameter, use
7328 it instead of current_regcache.
7329 (parse_register_dump): Add REGCACHE parameter, pass it to
7330 supply_register callback.
7331 (monitor_dump_reg_block): Add REGCACHE parameter, pass it to
7332 parse_register_dump.
7333 (monitor_dump_regs): Add REGCACHE parameter, pass it to
7334 parse_register_dump and dumpregs callback.
7335 (monitor_wait): Pass current_regcache to parse_register_dump and
7337 (monitor_fetch_register): Pass current_regcache to
7338 monitor_supply_register.
7339 (monitor_fetch_registers): Pass current_regcache to
7341 * monitor.h (struct monitor_ops): Add REGCACHE parameter to
7342 supply_register and dumpregs callbacks.
7343 (monitor_supply_register, monitor_dump_reg_block): Update
7345 * dbug-rom.c (dbug_supply_register): Add REGCACHE parameter. Pass
7346 it to monitor_supply_register.
7347 * dink32-rom.c (dink32_supply_register): Likewise.
7348 * ppcbug-rom.c (ppcbug_supply_register): Likewise.
7349 * m32r-rom.c (m32r_supply_register): Likewise. Also, use REGCACHE
7350 instead of current_regcache.
7352 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7354 * i386-nto-tdep.c (i386nto_supply_gregset, i386nto_supply_fpregset):
7355 Add REGCACHE parameter. Use it instead of current_regcache.
7356 (i386nto_supply_regset): Add REGCACHE parameter, pass it to
7357 i386nto_supply_gregset and i386nto_supply_fpregset.
7358 (i386nto_regset_fill): Add REGCACHE parameter; use it instead
7359 of current_regcache.
7361 * nto-procfs.c (procfs_fetch_registers): Pass current_regcache to
7362 nto_supply_ helper functions.
7363 (procfs_store_registers): Pass current_regcache to nto_regset_fill.
7365 * nto-tdep.c (nto_dummy_supply_regset): Add REGCACHE parameter.
7367 * nto-tdep.h (struct nto_target_ops): Add REGCACHE parameter to
7368 supply_greget, supply_fpregset, supply_altregset, supply_regset,
7369 and regset_fill member function pointers.
7370 (nto_dummy_supply_regset): Adapt prototype.
7372 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7374 * shnbsd-tdep.c (shnbsd_supply_reg): Add REGCACHE parameter, use it
7375 instead of current_regcache. Make REGS const.
7376 (shnbsd_fill_reg): Add REGCACHE parameter; replace current_regcache.
7377 * shnbsd-tdep.h (shnbsd_supply_reg, shnbsd_fill_reg): Update
7379 * shnbsd-nat.c: Include "regcache.h".
7380 (shnbsd_fetch_inferior_registers): Pass current_regcache to
7382 (shnbsd_store_inferior_registers): Pass current_regcache to
7384 * Makefile.in (shbsd-nat.o): Update dependencies.
7386 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7388 * mips-linux-tdep.c (supply_32bit_reg): Add REGCACHE parameter. Use it
7389 instead of current_regcache.
7390 (mips_supply_gregset): Likewise. Pass REGCACHE to supply_32bit_reg.
7391 Make GREGSETP const, remove superfluous casts.
7392 (mips_fill_gregset): Add REGCACHE parameter; replace current_regcache.
7393 (mips_supply_fpregset): Likewise. Make FPREGSETP const, remove
7395 (mips_fill_fpregset): Add REGCACHE parameter; replace current_regcache.
7396 (supply_64bit_reg): Likewise
7397 (mips64_supply_gregset): Likewise. Pass REGCACHE to supply_64bit_reg.
7398 Make GREGSETP const, adapt casts accordingly.
7399 (mips64_fill_gregset): Add REGCACHE parameter; replace current_regcache.
7400 (mips64_supply_fpregset): Likewise. Make FPREGSET const, adapt
7402 (mips64_fill_fpregset): Add REGCACHE parameter; replace current_regcache.
7403 (fetch_core_registers): Pass current_regcache to mips{64}_(supply|fill)_
7405 * mips-linux-tdep.h (mips_supply_gregset, mips_fill_gregset,
7406 mips_supply_fpregset, mips_fill_fpregset, mips64_supply_gregset,
7407 mips64_fill_gregset, mips64_supply_fpregset, mips64_fill_fpregset):
7409 * mips-linux-nat.c: Include "regcache.h".
7410 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): Pass
7411 current_regcache to mips{64}_(supply|fill)_ helper routines.
7412 (mips64_linux_regsets_fetch_registers): Likewise.
7413 (mips64_linux_regsets_store_registers): Likewise.
7415 * mipsnbsd-tdep.c (mipsnbsd_supply_reg, mipsnbsd_supply_fpreg): Add
7416 REGCACHE argument; replace current_regcache. Make REGS const.
7417 (mipsnbds_fill_reg, mipsnbsd_fill_fpreg): Add REGCACHE argument;
7418 replace current_regcache.
7419 * mipsnbsd-tdep.h (ipsnbsd_supply_reg, mipsnbsd_supply_fpreg,
7420 mipsnbds_fill_reg, mipsnbsd_fill_fpreg): Adapt prototypes.
7421 * mipsnbsd-nat.c (mipsnbsd_fetch_inferior_registers,
7422 mipsnbsd_store_inferior_registers): Pass current_regcache to
7423 mipsnbsd_(supply|fill)_... helper routines.
7425 * Makefile.in (mips-linux-nat.o): Update dependencies.
7427 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7429 * i387-tdep.c (i387_fill_fsave, i387_fill_fxsave): Remove.
7430 * i387-tdep.h (i387_fill_fsave, i387_fill_fxsave): Remove prototypes.
7431 * i368-linux-nat.c (supply_fpregset, supply_fpxregset): Replace
7432 i387_fill_fsave and i387_fill_fxsave calls by inline copies.
7433 * i386-nto-tdep.c (i386nto_regset_fill): Likewise.
7434 * i386gnu-nat.c (store_fpregs): Likewise.
7435 * i386v4-nat.c (fill_fpregset): Likewise.
7436 * go32-nat.c (store_register, go32_store_registers): Likewise.
7438 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7440 * cris-tdep.c (supply_gregset): Rename to ...
7441 (cris_supply_gregset): ... this. Add REGCACHE parameter. Use it
7442 instead of current_regcache.
7443 (fetch_core_registers): Update call. Pass current_regcache.
7445 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7447 * arnmnbsd-nat.c (supply_gregset): Rename to ...
7448 (arm_supply_gregset): ... this. Add REGCACHE parameter.
7449 Use it instead of current_regcache.
7450 (supply_fparegset): Rename to ...
7451 (arm_supply_fparegset): ... this. Add REGCACHE parameter.
7452 Use it instead of current_regcache.
7453 (fetch_regs, fetch_fp_regs): Update calls. Pass current_regcache.
7454 (fetch_core_registers, fetch_elfcore_registers): Likewise.
7456 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7458 * alpha-tdep.c (alpha_supply_int_regs, alpha_fill_int_regs,
7459 alpha_supply_fp_regs, alpha_fill_fp_regs): Add REGCACHE parameter,
7460 use it instead of current_regcache.
7461 * alpha-tdep.h (struct regcache): Add forward declaration.
7462 (alpha_supply_int_regs, alpha_fill_int_regs, alpha_supply_fp_regs,
7463 alpha_fill_fp_regs): Update prototypes.
7465 * alpha-nat.c: (supply_gregset, fill_gregset, supply_fpregset,
7466 fill_fpregset): Pass current_regcache to alpha_supply/fill_ routines.
7467 * alpha-linux-nat.c: Include "regcache.h".
7468 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): Pass
7469 current_regcache to alpha_supply/fill_ routines.
7471 * alphabsd-tdep.c: Include "regcache.h".
7472 (alphabsd_supply_reg, alphabsd_supply_fpreg): Add REGCACHE paramter,
7473 pass it to alpha_supply_ routines. Make REGS const.
7474 (alphabsd_fill_reg, alphabsd_fill_fpreg): Add REGCACHE parameter,
7475 pass it to alpha_fill_ routines.
7476 * alphabsd-tdep.h (struct regcache): Add forward declaration.
7477 (alphabsd_supply_reg, alphabsd_fill_reg, alphabsd_supply_fpreg,
7478 alphabsd_fill_fpreg): Update prototypes.
7480 * alphanbsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
7481 fill_fpregset, alphabsd_fetch_inferior_registers,
7482 alphabsd_store_inferior_registers): Pass current_regcache to
7483 alphabsd_supply/fill_ routines.
7485 * Makefile.in (alpha-linux-nat.o, alphabsd-tdep.o): Update
7488 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7490 * aix-thread.c (supply_gprs64, supply_reg32, supply_fprs,
7491 supply_sprs64, supply_sprs32): Add REGCACHE parameter, use it
7492 instead of current_regcache.
7493 (fetch_regs_user_thread, fetch_regs_kernel_thread): Add
7494 REGCACHE parameter, pass it to supply_ routines.
7495 (aix_thread_fetch_registers): Pass current_regcache to
7496 fetch_regs_user_thread and fetch_regs_kernel_thread.
7498 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs64, fill_sprs32):
7499 Add REGCACHE parameter, use it instead of current_regcache.
7500 Call regcache_valid_p instead of register_cached.
7501 (store_regs_user_thread, store_regs_kernel_thread): Likewise.
7502 Also, pass REGCACHE to fill_ routines.
7503 (aix_thread_store_registers): Pass current_regcache to
7504 store_regs_user_thread and store_regs_kernel_thread.
7506 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7508 * m32r-linux-nat.c (supply_gregset): Do not modify contents
7509 pointed to by GREGSETP.
7511 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7513 * irix5-nat.c (fill_gregset): Use regcache_raw_collect instead
7514 of regcache_raw_read_signed.
7515 (fill_fpregset): Use regcache_raw_collect instead of
7518 2007-05-03 Kevin Buettner <kevinb@redhat.com>
7520 * mips-tdep.c (mips_eabi_push_dummy_call): When pushing floating
7521 point arguments, test explicitly for use of the EABI32 ABI
7522 instead of inferring this condition from tests on register
7525 2007-05-03 Kevin Buettner <kevinb@redhat.com>
7527 * breakpoint.c (set_raw_breakpoint): Adjust breakpoint's address
7528 prior to allocating its location.
7530 2007-05-02 Maciej W. Rozycki <macro@mips.com>
7532 * mips-tdep.c (mips_o32_push_dummy_call): Remove conditions
7533 based on mips_abi_regsize() whose result is known in advance.
7534 (mips_o64_push_dummy_call): Likewise.
7536 2007-04-29 Ulrich Weigand <uweigand@de.ibm.com>
7538 * m68klinux-nat.c: Remove #ifndef USE_PROC_FS check.
7539 * m68k-tdep.c: Remove code within #ifdef USE_PROC_FS.
7541 * mips-linux-nat.c: Include "gregset.h".
7542 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): Move
7543 from mips-linux-tdep.c. Change parameter type to gdb_gregset_t.
7544 * mips-linux-tdep.c (supply_gregset, fill_gregset, supply_fpregset,
7545 fill_fpregset): Move to mips-linux-nat.c.
7547 * Makefile.in (m68k-tdep.o, mips-linux-nat.o): Update dependencies.
7549 2007-04-28 Ulrich Weigand <uweigand@de.ibm.com>
7551 * regcache.c (deprecated_read_register_gen): Remove, inline ...
7552 (read_register): ... here.
7553 (deprecated_write_register_gen): Remove, inline ...
7554 (write_register): ... here.
7555 * regcache.h (deprecated_read_register_gen): Remove prototype.
7556 (deprecated_write_register_gen): Likewise.
7558 * remote-sim.c (gdbsim_store_register): Replace call to
7559 deprecated_read_register_gen with regcache_cooked_read.
7560 * target.c (debug_print_register): Replace calls to
7561 deprecated_read_register_gen and read_register with
7562 regcache_cooked_read.
7564 2007-04-28 Ulrich Weigand <uweigand@de.ibm.com>
7566 * hpux-thread.c (hpux_thread_store_registers): Use
7567 regcache_raw_collect, not regcache_raw_read.
7568 * irix5-nat.c (fetch_core_registers): Use regcache_raw_supply,
7569 not regcache_raw_write.
7571 2007-04-28 Ulrich Weigand <uweigand@de.ibm.com>
7573 * gdbarch.sh: Remove deprecated_register_byte.
7574 * gdbarch.c, gdbarch.h: Regenerate.
7575 * arch-utils.h (generic_register_size, generic_register_byte): Remove.
7576 * arch-utils.c (generic_register_size, generic_register_byte): Remove.
7578 * regcache.h (regcache_valid_p): Make REGCACHE parameter const.
7579 * regcache.c (regcache_valid_p): Allow to query cooked registers in
7580 read-only register caches. Make REGCACHE parameter const.
7581 (regcache_dump): Do not check DEPRECATED_REGISTER_BYTE.
7583 * mi/mi-main.c (old_regs): Remove.
7584 (mi_setup_architecture_data, _initialize_mi_main): Remove.
7585 (register_changed_p): Reimplement to compare two register caches.
7586 (mi_cmd_data_list_changed_registers): Update caller.
7587 * mi/mi-main.h (mi_setup_architecture_data): Remove.
7588 * mi/mi-interp.c (mi_interpreter_init): Do not call
7589 mi_setup_architecture_data.
7591 2007-04-28 Ulrich Weigand <uweigand@de.ibm.com>
7593 * alpha-nat.c (ALPHA_REGSET_BASE, ALPHA_REGSET_UNIQUE): Do not define,
7594 inline definition at the places the macros are used.
7595 * alpha-linux-nat.c (ALPHA_REGSET_BASE, ALPHA_REGSET_UNIQUE): Likewise.
7597 2007-04-28 Ulrich Weigand <uweigand@de.ibm.com>
7599 * rs6000-aix-tdep.c: Include "regcache.h", "regset.h", and
7601 (rs6000_aix32_reg_offsets, rs6000_aix64_reg_offsets): New variables.
7602 (rs6000_aix_supply_regset, rs6000_aix_collect_regset): New functions.
7603 (rs6000_aix32_regset, rs6000_aix64_regset): New variables.
7604 (rs6000_aix_regset_from_core_section): New function.
7605 (rs6000_aix_init_osabi): Register it.
7606 (_initialize_rs6000_aix_tdep): Register GDB_OSABI_AIX osabi and
7607 sniffer for bfd_arch_powerpc as well as bfd_arch_rs6000.
7608 * rs6000-nat.c (CoreRegs): Do not define type.
7609 (fetch_core_registers, rs6000_core_fns): Remove.
7610 (_initialize_core_rs6000): Do not register it. Rename to ...
7611 (_initialize_rs6000_nat): ... this.
7612 * Makefile.in (rs6000-aix-tdep.o): Update dependencies.
7614 2007-04-27 Kevin Buettner <kevinb@redhat.com>
7616 * dwarf2expr.c (unsigned_address_type): Add forward declaration.
7617 (dwarf2_read_address): Sign extend return address as required by
7618 target architecture.
7620 2007-04-27 Kevin Buettner <kevinb@redhat.com>
7622 * solib-frv.c (lm_base): Bail out if the main executable has
7625 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
7627 * alpha-linux-tdep.c (alpha_linux_supply_fpregset): Correct location
7628 of FPCR register in fpregset.
7630 2007-04-27 Maciej W. Rozycki <macro@mips.com>
7632 * Makefile.in (gdbtk-wrapper.o): Update dependencies.
7633 (gdbtk-varobj.o, gdbtk-cmds.o, gdbtk-stack.o): Likewise.
7635 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
7637 * config/rs6000/nm-rs6000.h (CHILD_SPECIAL_WAITSTATUS): Remove.
7638 * rs6000-nat.c (rs6000_wait): New function.
7639 (_initialize_core_rs6000): Install it as to_wait target method.
7640 * target.c (store_waitstatus): Don't check CHILD_SPECIAL_WAITSTATUS.
7642 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
7644 * config/rs6000/nm-rs6000.h (TARGET_CREATE_INFERIOR_HOOK): Remove.
7645 * fork-child.c (fork_inferior): Don't call TARGET_CREATE_INFERIOR_HOOK.
7646 * rs6000-nat.c (super_create_inferior): New variable.
7647 (rs6000_create_inferior): Make static. Adapt argument list. Call
7648 original version of create_inferior via super_create_inferior.
7649 (_initialize_core_rs6000): Install to_create_inferior target method.
7651 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
7653 * aix-thread.c (aix_thread_xfer_memory): Replace by ...
7654 (aix_thread_xfer_partial): ... this.
7655 (init_aix_thread_ops): Install to_xfer_partial instead
7656 of deprecated_xfer_memory target method.
7658 * config/powerpc/aix.mh (NATDEPFILES): Remove infptrace.o
7659 and inftarg.o, add inf-ptrace.o.
7660 * config/rs6000/nm-rs6000.h (FETCH_INFERIOR_REGISTERS,
7661 CHILD_XFER_MEMORY, KERNEL_U_SIZE, kernel_u_size): Remove.
7662 * rs6000-nat.c: Include "inf-ptrace.h" and "gdb_stdint.h".
7663 (fetch_inferior_registers): Rename to ...
7664 (rs6000_fetch_inferior_registers): ... this. Make static.
7665 (store_inferior_registers): Rename to ...
7666 (rs6000_store_inferior_registers): ... this. Make static.
7667 (read_word, child_xfer_memory): Remove.
7668 (rs6000_xfer_partial): New function.
7669 (kernel_u_size): Remove.
7670 (_initialize_core_rs6000): Add inf_ptrace-based target.
7671 * Makefile.in (rs6000-nat.o): Update dependencies.
7673 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
7675 * inf-ptrace.c: Include "gdb_stdint.h".
7676 (inf_ptrace_xfer_partial): Use "uintptr_t" instead of "long" as
7677 intermediate type when casting CORE_ADDR to PTRACE_TYPE_ARG3.
7678 (inf_ptrace_fetch_register): Add intermediate cast to "uintptr_t"
7679 before casting CORE_ADDR to PTRACE_TYPE_ARG3.
7680 (inf_ptrace_store_register): Likewise.
7681 * Makefile.in (inf-ptrace.o): Update dependencies.
7683 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
7685 * configure.host (rs6000-*-*): Merge with powerpc-*-aix* rules.
7686 * configure.tgt (rs6000-*-*): Likewise.
7687 * config/rs6000/aix4.mh: Delete file.
7688 * config/rs6000/aix4.mt: Delete file.
7689 * config/rs6000/rs6000.mh: Delete file.
7690 * config/rs6000/rs6000.mt: Delete file.
7692 * config/powerpc/nm-aix.h: Delete file.
7693 * config/powerpc/aix.mh (NAT_FILE): Set to config/rs6000/nm-rs6000.h.
7695 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
7697 * aix-thread.c (fill_sprs32): Change argument types to "uint32_t *".
7698 Remove obsolete part of comment.
7699 (store_regs_user_thread): Use uint32_t temporaries when calling
7701 (store_regs_kernel_thread): Likewise. Add assertion to verify
7702 correct size of struct ptsprs members.
7703 (aix_thread_xfer_memory): Fix type of myaddr.
7704 (aix_thread_extra_thread_info): Fix compiler warning.
7705 * rs6000-nat.c (rs6000_ptrace64): Change type of buf to "void *".
7706 (fetch_register, store_register): Adapt callers.
7708 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
7710 * vec.h (vec_free): Rename to vec_free_. Adapt users.
7712 2007-04-25 Ulrich Weigand <uweigand@de.ibm.com>
7714 * alpha-linux-tdep.c: Include "gdb_string.h", "regset.h",
7716 (alpha_linux_supply_gregset, alpha_linux_supply_fpregset): New.
7717 (alpha_linux_gregset, alpha_linux_fpregset): New variables.
7718 (alpha_linux_regset_from_core_section): New function.
7719 (alpha_linux_init_abi): Install it.
7720 * alpha-linux-nat.c: Do not include "gdbcore.h". Include
7721 "alpha-tdep.h", <sys/ptrace.h>, <alpha/ptrace.h>,
7722 <sys/procfs.h>, and "gregset.h".
7723 (ALPHA_REGSET_BASE, ALPHA_REGSET_UNIQUE, ALPHA_UNIQUE_PTRACE_ADDR):
7724 Move from config/alpha/nm-linux.h.
7725 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): Copy
7727 (alpha_linux_register_u_offset): Inline register_addr from alpha-nat.c.
7728 * alpha-nat.c: Remove #ifdef __linux__ section.
7729 (fetch_elf_core_registers, alpha_elf_core_fns): Remove.
7730 (_initialize_core_alpha): Do not register alpha_elf_core_fns.
7731 (ALPHA_UNIQUE_PTRACE_ADDR, ALPHA_REGSET_UNIQUE): Define unconditionally.
7732 (ALPHA_REGSET_BASE): Move from config/alpha/nm-osf.h.
7733 * config/alpha/alpha-linux.mh (NAT_FILE): Set to config/nm-linux.h.
7734 (NATDEPFILES): Remove alpha-nat.o.
7735 * config/alpha/nm-linux.h: Delete file.
7736 * config/alpha/nm-osf.h (ALPHA_REGSET_BASE): Move to alpha-nat.c.
7737 * Makefile.in (alpha-linux-nat.o): Update dependencies.
7738 (alpha-linux-tdep.o): Likewise.
7740 2007-04-25 Ulrich Weigand <uweigand@de.ibm.com>
7742 * mips-linux-nat.c: No longer include "gdbcore.h".
7743 (mips_linux_register_addr): Move from mips-linux-tdep.c.
7744 (mips64_linux_register_addr): Likewise.
7745 (mips_linux_register_u_offset): Call mips_linux_register_addr or
7746 mips64_linux_register_addr instead of register_addr.
7747 * mips-linux-tdep.c (mips_linux_register_addr,
7748 mips64_linux_register_addr): Move to mips-linux-nat.c.
7749 (register_addr): Remove.
7750 (register_addr_data, init_register_addr_data): Remove.
7751 (_initialize_mips_linux_tdep): Do not initialize register_addr_data.
7752 (set_mips_linux_register_addr): Remove.
7753 (mips_linux_init_abi): Do not call set_mips_linux_register_addr.
7754 * Makefile.in (mips-linux-nat.o): Update dependencies.
7756 2007-04-25 Ulrich Weigand <uweigand@de.ibm.com>
7758 * linux-nat.c (linux_register_u_offset): Remove.
7759 (linux_target_install_ops): New function.
7760 (linux_target): Use it.
7761 (linux_trad_target): New function.
7762 * linux-nat.h (linux_trad_target): Declare.
7764 * alpha-linux-nat.c: Include "gdbcore.h".
7765 (alpha_linux_register_u_offset): New function.
7766 (_initialize_alpha_linux_nat): Use linux_trad_target.
7768 * mips-linux-nat.c: Include "gdbcore.h".
7769 (mips_linux_register_u_offset): New function.
7770 (_initialize_mips_linux_nat): Use linux_trad_target.
7772 * config/arm/linux.mh (NAT_FILE): Set to config/nm-linux.h.
7773 * config/arm/nm-linux.h: Delete file.
7775 * config/i386/nm-linux64.h (FETCH_INFERIOR_REGISTERS): Remove.
7776 * config/i386/nm-linux.h (FETCH_INFERIOR_REGISTERS): Remove.
7778 * config/ia64/linux.mh (NAT_FILE): Set to config/nm-linux.h.
7779 * config/ia64/nm-linux.h: Delete file.
7781 * config/m32r/linux.mh (NAT_FILE): Set to config/nm-linux.h.
7782 * config/m32r/nm-linux.h: Delete file.
7784 * config/m68k/linux.mh (NAT_FILE): Set to config/nm-linux.h.
7785 * config/m68k/nm-linux.h: Delete file.
7787 * config/pa/linux.mh (NAT_FILE): Set to config/nm-linux.h.
7788 * config/pa/nm-linux.h: Delete file.
7790 * config/powerpc/linux.mh (NAT_FILE): Set to config/nm-linux.h.
7791 * config/powerpc/ppc64-linux.mh (NAT_FILE): Likewise.
7792 * config/powerpc/nm-linux.h: Delete file.
7794 * config/s390/s390.mh (NAT_FILE): Set to config/nm-linux.h.
7795 * config/s390/nm-linux.h: Delete file.
7797 * config/sparc/linux.mh (NAT_FILE): Set to config/nm-linux.h.
7798 * config/sparc/linux64.mh (NAT_FILE): Likewise.
7799 * config/sparc/nm-linux.h: Delete file.
7801 * Makefile.in (alpha-linux-nat.o): Update dependencies.
7802 (mips-linux-nat.o): Likewise.
7804 2007-04-25 Ulrich Weigand <uweigand@de.ibm.com>
7806 * core-aout.c: Delete file.
7807 * Makefile.in (ALLDEPFILES): Remove core-aout.c.
7808 (core-aout.o): Delete rule.
7809 * gdbcore.h (kernel_u_addr, KERNEL_U_ADDR): Remove.
7811 * config/alpha/nm-linux.h (U_REGS_OFFSET): Remove.
7813 * arm-linux-nat.c (arm_linux_kernel_u_size): Remove.
7814 * config/arm/nm-linux.h (U_REGS_OFFSET, KERNEL_U_SIZE,
7815 KERNEL_U_ADDR): Remove.
7817 * i386-linux-nat.c (register_u_addr, kernel_u_size): Remove.
7818 (cannot_fetch_register, cannot_store_register): Remove.
7819 (fetch_register): Inline cannot_fetch_register and register_addr.
7820 (store_register): Inline cannot_store_register and register_addr.
7821 * config/i386/linux.mh (NATDEPFILES): Remove core-aout.o.
7822 * config/i386/nm-linux.h (KERNEL_U_SIZE, KERNEL_U_ADDR,
7823 REGISTER_U_ADDR, CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER):
7826 * m68klinux-nat.c (m68k_linux_register_u_addr, kernel_u_size): Remove.
7827 (fetch_register): Inline register_addr.
7828 (store_register): Inline register_addr.
7829 * config/m68k/linux.mh (NATDEPFILES): Remove core-aout.o.
7830 * config/m68k/nm-linux.h (KERNEL_U_SIZE, KERNEL_U_ADDR,
7831 U_REGS_OFFSET, REGISTER_U_ADDR): Remove.
7833 * config/mips/nm-irix5.h (REGISTER_U_ADDR): Remove.
7834 * config/mips/nm-linux.h (KERNEL_U_SIZE, U_REGS_OFFSET,
7835 REGISTER_U_ADDR): Remove.
7837 * hppa-linux-nat.c (register_addr): Rename to ...
7838 (hppa_linux_register_addr): ... this. Make static.
7839 (fetch_register, store_register): Adapt callers.
7840 * config/pa/nm-linux.h (U_REGS_OFFSET): Remove.
7842 * ppc-linux-nat.c (kernel_u_size): Remove.
7843 * config/powerpc/nm-linux.h (KERNEL_U_SIZE, KERNEL_U_ADDR): Remove.
7845 * vax-nat.c (vax_kernel_u_addr, vax_register_u_addr): Make static.
7846 * config/vax/vax.mh (NATDEPFILES): Remove core-aout.o.
7848 * config/vax/nm-vax.h: Delete file.
7850 2007-04-20 Mark Shinwell <shinwell@codesourcery.com>
7852 * MAINTAINERS (Write After Approval): Add myself.
7854 2007-04-20 Mark Shinwell <shinwell@codesourcery.com>
7856 * Makefile.in: Adjust dependencies of m68klinux-tdep.c.
7857 * m68klinux-tdep.c (m68k_uclinux_sigcontext_reg_offset): New.
7858 (m68k_linux_sigcontext_reg_offset): Fix typo.
7859 (target_is_uclinux): New.
7860 (m68k_linux_inferior_created): New.
7861 (m68k_linux_get_sigtramp_info): Check for uClinux or
7862 normal Linux. Use m68k_uclinux_sigcontext_reg_offset for
7864 (_initialize_m68k_linux_tdep): Register
7865 m68k_linux_inferior_created.
7867 2007-04-19 Pedro Alves <pedro_alves@portugalmail.pt>
7869 * win32-nat.c (win32_detach): Remove delete_command call.
7870 Resume inferior with win32_resume instead of win32_continue.
7872 2007-04-19 Jerome Guitton <guitton@adacore.com>
7874 * ser-mingw.c (fd_is_file): New function.
7875 (file_select_thread): New function.
7876 (ser_console_wait_handle): Add special handling for files.
7878 2007-04-18 Denis Pilat <denis.pilat@st.com>
7880 * dwarf2read.c (read_subrange_type): Use DW_ATE_signed default type
7881 when missing from DW_TAG_subrange_type. Remove the handling of null
7882 return from die_type.
7884 2007-04-18 Maciej W. Rozycki <macro@mips.com>
7886 * mips-tdep.c (mips_eabi_push_dummy_call): Revert the last
7887 change to rearrange some brackets.
7888 (mips_n32n64_push_dummy_call): Likewise.
7889 (mips_o32_push_dummy_call): Likewise.
7890 (mips_o64_push_dummy_call): Likewise.
7892 2007-04-18 Denis Pilat <denis.pilat@st.com>
7894 * infcmd.c (post_create_inferior): Start with a call to
7895 target_terminal_ours.
7897 2007-04-17 Maciej W. Rozycki <macro@mips.com>
7899 * mips-tdep.c (mips_eabi_push_dummy_call): Rearrange some
7901 (mips_n32n64_push_dummy_call): Likewise. Reformat some
7903 (mips_o32_push_dummy_call): Likewise.
7904 (mips_o64_push_dummy_call): Likewise.
7906 2007-04-17 Maciej W. Rozycki <macro@mips.com>
7908 * mips-tdep.c (mips_n32n64_push_dummy_call): Fix a typo in a
7911 2007-04-17 Maciej W. Rozycki <macro@mips.com>
7913 * mips-tdep.c (mips_n32n64_push_dummy_call): Fix a typo in a
7915 (mips_o32_push_dummy_call): Likewise.
7917 2007-04-17 Andreas Schwab <schwab@suse.de>
7919 * symtab.c (skip_prologue_using_sal): Allow the end of the prologue
7920 sal to be bigger than the end of the function.
7922 2007-04-17 Maciej W. Rozycki <macro@mips.com>
7923 Nigel Stephens <nigel@mips.com>
7925 * mips-tdep.c (mips_o32_push_dummy_call): Take account of
7926 argument alignment requirements when calculating stack space
7927 required. When aligning an arg register to eight bytes
7928 boundary, align stack_offset too. Write floating-point
7929 arguments to the appropriate integer register if need go there.
7930 (mips_o64_push_dummy_call): Likewise.
7932 2007-04-14 Ulrich Weigand <uweigand@de.ibm.com>
7934 * gdbarch.sh (software_single_step): Remove "insert_breakpoints_p" and
7935 "sig" arguments, add "regcache" argument.
7936 * gdbarch.c, gdbarch.h: Regenerate.
7938 * infrun.c (resume): Update SOFTWARE_SINGLE_STEP call arguments.
7939 (handle_inferior_event): Call remove_single_step_breakpoints directly
7940 instead of calling SOFTWARE_SINGLE_STEP to remove breakpoints.
7942 * alpha-tdep.c (alpha_software_single_step): Update argument list.
7943 Remove handling of !insert_breakpoints_p case.
7944 * arm-tdep.c (arm_software_single_step): Likewise.
7945 * cris-tdep.c (cris_software_single_step): Likewise.
7946 * mips-tdep.c (mips_software_single_step): Likewise.
7947 * rs6000-tdep.c (rs6000_software_single_step): Likewise.
7948 * sparc-tdep.c (sparc_software_single_step): Likewise.
7949 * spu-tdep.c (spu_software_single_step): Likewise.
7951 * alpha-tdep.h (alpha_software_single_step): Update prototype.
7952 * mips-tdep.h (mips_software_single_step): Likewise.
7953 * rs6000-tdep.h (rs6000_software_single_step): Likewise.
7954 * sparc-tdep.h (sparc_software_single_step): Likewise.
7956 2007-04-14 Ulrich Weigand <uweigand@de.ibm.com>
7958 * alpha-tdep.c (alpha_software_single_step): Do not call write_pc
7959 when removing single-step breakpoints.
7961 2007-04-14 Vladimir Prus <vladimir@codesourcery.com>
7963 * varobj.h (varobj_set_frozen): New
7964 (varobj_get_frozen): New.
7965 (varobj_update): New parameter explicit.
7966 * varobj.c (struct varobj): New fields frozen
7968 (varobj_set_frozen, varobj_get_frozen): New.
7969 (install_new_value): Don't fetch values for
7970 frozen variable object, or children thereof. Allow
7971 a frozen variable object to have non-fetched value.
7972 (varobj_update): Allow updating child variables.
7973 Don't traverse frozen children.
7974 (new_variable): Initialize the frozen field.
7975 (c_value_of_variable): Return NULL for frozen
7976 variable without any value yet.
7977 * mi/mi-cmd-var.c (varobj_update_one): New parameter
7979 (mi_cmd_var_create): Output the 'frozen' field,
7980 as soon as testsuite is adjusted to expect that field.
7981 (mi_cmd_var_set_frozen): New.
7982 (mi_cmd_var_update): Pass the 'explicit' parameter to
7984 * mi/mi-cmds.c (mi_cmds): Register '-var-set-frozen'.
7985 * mi/mi-cmds.h (mi_cmd_var_set_frozen): Declare.
7987 2007-04-13 Paul Brook <paul@codesourcery.com>
7989 * target-descriptions.c (tdesc_named_type): Add ieee_single and
7991 * doc/gdb.texinfo: Document ieee_single and ieee_double target types.
7993 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
7995 * mips-mdebug-tdep.c, mips-mdebug-tdep.h, ocd.c, ocd.h, ppc-bdm.c,
7996 remote-e7000.c, remote-hms.c, remote-utils.c, remote-utils.h,
7997 scm-exp.c, scm-lang.c, scm-lang.h, scm-tags.h, scm-valprint.c,
7998 ser-e7kpc.c, sh3-rom.c, stop-gdb.c: Delete.
7999 * Makefile.in: Remove references to deleted files.
8000 * README: Do not mention deleted ROM monitor interfaces.
8001 * defs.h (enum language): Delete language_scm.
8002 * expprint.c (print_subexp_standard): Do not handle OP_EXPRSTRING.
8003 (dump_subexp_body_standard): Likewise.
8004 * parse.c (operator_length_standard): Likewise.
8005 * expression.h (enum exp_opcode): Delete OP_EXPRSTRING.
8006 * remote-mips.c: Do not include remote-utils.h.
8007 * remote-sim.c: Likewise. Use remote_debug instead of sr_get_debug
8009 * value.c: Do not include scm-lang.h.
8010 (unpack_long): Delete scm_unpack call.
8011 * config/h8300/h8300.mt, config/mips/embed.mt,
8012 config/powerpc/ppc-eabi.mt, config/powerpc/ppc-sim.mt,
8013 config/sh/embed.mt, config/sh/linux.mt: Remove references to
8015 * NEWS: Mention removed files.
8017 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
8019 * symfile.c (add_psymbol_with_dem_name_to_list): Remove.
8020 * symfile.h (add_psymbol_with_dem_name_to_list): Remove prototype.
8022 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
8024 * NEWS: Mention removal of HP aCC support.
8026 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
8028 * solib-svr4.c (IGNORE_FIRST_LINK_MAP_ENTRY): Do not ignore the
8029 first entry for static executables.
8030 (breakpoint_addr): Delete unused variable.
8031 (elf_locate_base): Search for _r_debug in static executables.
8032 (enable_break): Do not set breakpoint_addr. Scan solib_break_names
8035 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
8037 * breakpoint.c (update_breakpoints_after_exec, print_it_typical)
8038 (bpstat_what, print_one_breakpoint, allocate_bp_location)
8039 (mention): Remove bp_through_sigtramp support.
8040 * breakpoint.h (enum bptype): Remove bp_through_sigtramp.
8042 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
8044 * breakpoint.c (bpstat_what): Give step-resume higher priority than
8047 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
8049 * infrun.c: Doc fixes.
8050 (handle_inferior_event): Clarify debug message.
8051 (insert_step_resume_breakpoint_at_sal): Print a debug message.
8053 2007-04-12 Ulrich Weigand <uweigand@de.ibm.com>
8055 * configure.tgt (arm-*-nto*, sh-*-nto*): Remove.
8057 2007-04-12 Ulrich Weigand <uweigand@de.ibm.com>
8059 * config/m68k/tm-monitor.h: Delete file.
8060 * config/m68k/monitor.mt (DEPRECATED_TM_FILE): Remove.
8061 * m68k-tdep.c (m68k_gdbarch_init): set_gdbarch_decr_pc_after_break
8063 * m68kbsd-tdep.c (m68kbsd_init_abi): ... here and ...
8064 * m68klinux-tdep.c (m68k_linux_init_abi): ... here.
8066 2007-04-12 Luis Machado <luisgpm@br.ibm.com>
8068 * gdbarch.sh (software_single_step): Change the return type
8069 from void to int and reformatted some comments to <= 80
8071 * gdbarch.c, gdbarch.h: Regenerated.
8072 * alpha-tdep.c (alpha_software_single_step): Likewise.
8073 * alpha-tdep.h (alpha_software_single_step): Likewise.
8074 * arm-tdep.c (arm_software_single_step): Likewise.
8075 * cris-tdep.c (cris_software_single_step): Likewise.
8076 * mips-tdep.c (mips_software_single_step): Likewise.
8077 * mips-tdep.h (mips_software_single_step): Likewise.
8078 * rs6000-tdep.c (rs6000_software_single_step): Likewise.
8079 * rs6000-tdep.h (rs6000_software_single_step): Likewise.
8080 * sparc-tdep.c (sparc_software_single_step): Likewise.
8081 * sparc-tdep.h (sparc_software_single_step): Likewise.
8082 * spu-tdep.c (spu_software_single_step): Likewise.
8083 * infrun.c (resume): Check the return value from SOFTWARE_SINGLE_STEP
8084 and act accordingly.
8086 2007-04-11 Steve Ellcey <sje@cup.hp.com>
8088 * configure.ac (build_warnings): Add -Wno-char-subscripts.
8089 * configure: Regenerate.
8090 * doc/gdbint.texinfo (warning flags): Add -Wno-char-subscripts.
8092 2007-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
8094 * libunwind-frame.c (LIBUNWIND_SO): Use major version number for `.so'.
8096 2007-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
8098 * gdbtypes.h (TYPE_FLAG_STUB_SUPPORTED, TYPE_STUB_SUPPORTED): New
8100 (TYPE_IS_OPAQUE): Empty vs. opaque structures are now
8101 distinct on the TYPE_STUB_SUPPORTED debug targets.
8102 * dwarf2read.c (read_structure_type): Set TYPE_FLAG_STUB_SUPPORTED.
8104 2007-04-11 Joel Brobecker <brobecker@adacore.com>
8106 * sparc-tdep.c (X_RS2): New macro.
8107 (sparc_skip_stack_check): New function.
8108 (sparc_analyze_prologue): Adjust PC past stack probing
8109 sequence if necessary.
8111 2007-04-10 Andreas Schwab <schwab@suse.de>
8113 * rs6000-tdep.c (rs6000_dwarf2_reg_to_regnum): Decode 64 as CR
8116 2007-04-10 Daniel Jacobowitz <dan@codesourcery.com>
8118 * breakpoint.c (gdb_breakpoint_query): Really return an
8120 (gdb_breakpoint): Likewise.
8121 * thread.c (gdb_list_thread_ids): Likewise.
8122 (gdb_thread_select): Likewise.
8123 * mi/mi-main.c (mi_cmd_thread_select): Expect an enum gdb_rc.
8124 (mi_cmd_thread_list_ids): Remove bogus initialization.
8126 2007-04-10 Daniel Jacobowitz <dan@codesourcery.com>
8128 * Makefile.in (SFILES): Remove hpacc-abi.c.
8129 (COMMON_OBS): Remove hpacc-abi.o.
8130 (ALLDEPFILES): Remove hpread.c and $(HPREAD_SOURCE).
8131 (hpacc-abi.o, hpread.o): Delete rules.
8132 * somread.c: Delete extern declarations from hpread.c.
8133 (som_symfile_read): Do not call do_pxdb or hpread_build_psymtabs.
8134 (som_symfile_finish): Do not call hpread_symfile_finish.
8135 (som_symfile_init): Do not call hpread_symfile_init.
8136 * config/pa/hppa64.mt (TDEPFILES): Remove hpread.o.
8137 * config/pa/hppahpux.mt (TDEPFILES): Likewise.
8138 * hpacc-abi.c, hpread.c: Deleted.
8140 2007-04-10 Daniel Jacobowitz <dan@codesourcery.com>
8142 * solib-svr4.c (enable_break): Simplify return value.
8143 (svr4_solib_create_inferior_hook): Do not warn if enable_break fails.
8145 2007-04-10 Andreas Schwab <schwab@suse.de>
8147 * solib-svr4.h (struct link_map_offsets): Remove l_addr_size,
8148 l_ld_size, l_next_size, l_prev_size, l_name_size.
8150 * solib-svr4.c (LM_ADDR_FROM_LINK_MAP): Use extract_typed_address
8151 to extract addresses from link map.
8152 (LM_DYNAMIC_FROM_LINK_MAP): Likewise.
8153 (LM_NEXT): Likewise.
8154 (LM_NAME): Likewise.
8155 (IGNORE_FIRST_LINK_MAP_ENTRY): Likewise.
8156 (elf_locate_base): Likewise.
8157 (open_symbol_file_object): Likewise.
8158 (svr4_fetch_objfile_link_map): Likewise.
8159 (SOLIB_EXTRACT_ADDRESS): Remove unused macro.
8160 (HAS_LM_DYNAMIC_FROM_LINK_MAP): Test l_ld_offset instead of
8162 (svr4_ilp32_fetch_link_map_offsets): Don't set removed members.
8163 (svr4_lp64_fetch_link_map_offsets): Likewise.
8165 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets): Don't set
8166 removed members. Set l_ld_offset to -1 if not present.
8168 2007-04-08 Vladimir Prus <vladimir@codesourcery.com>
8170 Pass stderr of program run with "target remote |"
8172 * serial.c (serial_open): Set error_fd to -1.
8173 * serial.h (struct serial): New field error_fd.
8174 (struct serial_opts): New field avail.
8175 * ser-pipe.c (pipe_open): Create another pair
8176 of sockets. Pass stderr to gdb.
8177 * ser-mingw.c (pipe_windows_open): Pass
8178 PEX_STDERR_TO_PIPE to pex_run. Initialize
8181 (_initialize_ser_windows): Hook pipe_avail.
8182 * ser-base.c (generic_readchar): Check if there's
8183 anything in stderr channel and route that to gdb_stderr.
8185 2007-04-03 Pedro Alves <pedro_alves@portugalmail.pt>
8187 * dbxread.c (read_ofile_symtab): Move current_objfile
8188 clearing to after end_stabs.
8190 2007-04-01 Andreas Schwab <schwab@suse.de>
8192 * rs6000-tdep.c (rs6000_convert_from_func_ptr_addr): Use parameter
8193 gdbarch instead of current_gdbarch.
8195 2007-04-01 Vladimir Prus <vladimir@codesourcery.com>
8197 * varobj.c (varobj_create): Keep varobj value
8198 NULL when evaluating the type.
8200 2007-03-31 Pedro Alves <pedro_alves@portugalmail.pt>
8202 * NEWS: Mention new Windows CE support.
8204 2007-03-30 Pedro Alves <pedro_alves@portugalmail.pt>
8206 * configure.tgt: Move mips*-*-pe and sh*-*-pe to
8207 the obsoletion stanza.
8208 * NEWS: Mention deleted targets.
8210 * config/sh/tm-wince.h: Remove.
8211 * config/sh/wince.mt: Remove.
8212 * config/mips/tm-wince.h: Remove.
8213 * config/mips/wince.mt: Remove.
8216 * wince-stub.c: Remove.
8217 * wince-stub.h: Remove.
8218 * Makefile.in (wince.o): Remove rule.
8219 (wince-stub.o): Likewise.
8221 * mips-tdep.c (mips_next_pc): Make static.
8222 * mips-tdep.h (mips_next_pc): Remove declaration.
8223 * arm-tdep.c (arm_pc_is_thumb): Make static.
8224 (thumb_get_next_pc): Likewise.
8225 (arm_get_next_pc): Likewise.
8226 * arm-tdep.h (arm_pc_is_thumb_dummy): Remove declaration.
8227 (arm_pc_is_thumb): Likewise.
8228 (thumb_get_next_pc): Likewise.
8229 (arm_get_next_pc): Likewise.
8231 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
8233 * MAINTAINERS: Remove d10v entry.
8234 * Makefile.in (SFILES): Remove dwarfread.c.
8235 (COMMON_OBS): Remove dwarfread.o.
8236 (gdb_sim_d10v_h, abug-rom.o, cpu32bug-rom.o, d10v-tdep.o, dwarfread.o)
8237 (remote-est.o, rom68k-rom.o): Delete.
8238 * NEWS: Mention removal of d10v, target abug, target cpu32bug,
8239 target est, target rom68k, and DWARF 1.
8240 * configure.tgt: Mark d10v as removed.
8241 * dwarf2read.c: Doc update.
8242 * elfread.c (struct elfinfo): Remove dboffset, dbsize, lnoffset,
8244 (elf_locate_sections): Do not set them.
8245 (elf_symfile_read): Do not call dwarf_build_psymtabs.
8246 * symfile.h (dwarf_build_psymtabs): Delete prototype.
8247 * config/m68k/monitor.mt (TDEPFILES): Prune.
8248 * abug-rom.c, cpu32bug-rom.c, d10v-tdep.c, dwarfread.c,
8249 remote-est.c, rom68k-rom.c, config/d10v/d10v.mt: Delete.
8251 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
8253 * doublest.c (convert_floatformat_to_doublest): Use
8254 floatformat_classify.
8255 (floatformat_is_nan): Rename to...
8256 (floatformat_classify): ...this. Return more information.
8257 * doublest.h (enum float_kind): New.
8258 (floatformat_is_nan): Replace prototype...
8259 (floatformat_classify): ...with this one.
8260 * valprint.c (print_floating): Use floatformat_classify. Handle
8263 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
8265 * README: Mention ISO C library requirement.
8267 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
8269 * Makefile.in (SFILES): Remove nlmread.c.
8270 (COMMON_OBS): Remove nlmread.o.
8271 (nlmread.o): Delete rule.
8272 * README: Delete reference to remote-st.c.
8273 * acinclude.m4 (CY_AC_TCL_LYNX_POSIX): Delete.
8274 * defs.h (enum gdb_osabi): Delete GDB_OSABI_NETWARE and
8276 * i386-tdep.c (i386_nw_init_abi, i386_nlm_osabi_sniffer): Delete.
8277 (_initialize_i386_tdep): Do not reference them.
8278 * nlmread.c: Delete file.
8279 * osabi.c (gdb_osabi_names): Remove NetWare and LynxOS.
8280 * target.c: Doc update.
8281 * thread.c: Delete commented include.
8282 * config/alpha/tm-alpha.h: Doc update.
8284 2007-03-30 Chris Dearman <chris@mips.com>
8286 * utils.c (string_to_core_addr): Comment typo.
8288 2007-03-30 Chris Dearman <chris@mips.com>
8290 * mips-tdep.c: Comment typo.
8292 2007-03-29 Ulrich Weigand <uweigand@de.ibm.com>
8294 * config/alpha/nm-osf.h (PTRACE_XFER_TYPE): Remove.
8295 * config/mips/nm-linux.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Remove.
8296 * config/sparc/nm-linux.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Remove.
8297 * config/powerpc/nm-ppc64-linux.h: Remove file.
8298 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Set to nm-linux.h.
8299 * inferior.h (PTRACE_ARG3_TYPE): Do not define.
8300 (call_ptrace): Change type of third argument to PTRACE_TYPE_ARG3.
8301 * infptrace.c (call_ptrace): Likewise.
8302 * m68klinux-nat.c (PTRACE_XFER_TYPE): Do not define.
8303 (fetch_register): Replace PTRACE_ARG3_TYPE by PTRACE_TYPE_ARG3
8304 and PTRACE_XFER_TYPE by PTRACE_TYPE_RET.
8305 (store_register): Likewise.
8307 2007-03-29 Joel Brobecker <brobecker@adacore.com>
8309 * Makefile.in (varobj.o): Add missing dependency.
8311 2007-03-29 Michael Snyder <msnyder@access-company.com>
8313 * MAINTAINERS: Update my email address.
8315 2007-03-29 Joel Brobecker <brobecker@adacore.com>
8317 Add support for exception handling with multiple versions of
8319 * ada-lang.c: Update general comments on how Ada exception catchpoints
8321 (raise_sym_name, raise_unhandled_sym_name, raise_assert_sym_name)
8322 (__gnat_raise_nodefer_with_msg): Delete.
8323 (ada_unhandled_exception_name_addr_ftype): New type.
8324 (exception_support_info): New type.
8325 (ada_unhandled_exception_name_addr): Add forward declaration.
8326 (ada_unhandled_exception_name_addr_from_raise): Likewise.
8327 (default_exception_support_info): New constant.
8328 (exception_support_info_fallback): Likewise.
8329 (exception_info): New global variable.
8330 (ada_exception_support_info_sniffer): New function.
8331 (ada_executable_changed_observer): Likewise.
8332 (ada_unhandled_exception_name_addr_from_raise): Renamed from
8333 ada_unhandled_exception_name_addr.
8334 (ada_unhandled_exception_name_addr): Reimplement to match the
8335 latest Ada runtime implementation.
8336 (error_breakpoint_runtime_sym_not_found): Delete.
8337 (ada_exception_sym_name): Get the exception sym name from
8338 exception_info rather than hardcoding it.
8339 (ada_exception_sal): Add call to ada_exception_support_info_sniffer.
8340 Update error handling.
8341 * Makefile.in (ada-lang.o): Add dependency on observer.h.
8343 2007-03-29 Daniel Jacobowitz <dan@codesourcery.com>
8345 * Makefile.in (coff_solib_h, coff-solib.o, i386v-nat.o, lynx-nat.o)
8346 (remote-st.o, uw-thread.o): Delete.
8347 (HFILES_NO_SRCDIR, ALLDEPFILES): Update.
8348 * configure.host: Move hppa*-*-hiux*, i[34567]86-ncr-*,
8349 i[34567]86-*-dgux*, i[34567]86-*-lynxos*, i[34567]86-*-sco3.2v5*,
8350 i[34567]86-*-sco3.2v4*, i[34567]86-*-sco*, i[34567]86-*-sysv4.2*,
8351 i[34567]86-*-sysv4*, i[34567]86-*-sysv5*, i[34567]86-*-unixware2*,
8352 i[34567]86-*-unixware*, i[34567]86-*-sysv*, i[34567]86-*-isc*, and
8353 rs6000-*-lynxos* to an obsoletion stanza.
8354 * configure.tgt: Move hppa*-*-hiux*, i[34567]86-ncr-*,
8355 i[34567]86-*-lynxos*, m68*-cisco*-*, m68*-tandem-*, m68*-*-os68k*,
8356 and rs6000-*-lynxos* to an obsoletion stanza. Do not mention
8357 i[34567]86-*-netware*.
8358 * NEWS: Mention deleted targets.
8360 * coff-solib.c, coff-solib.h, i386v-nat.c, lynx-nat.c, remote-st.c,
8361 uw-thread.c, config/nm-lynx.h, config/i386/i386sco.mh,
8362 config/i386/i386sco4.mh, config/i386/i386sco5.mh, config/i386/i386v.mh,
8363 config/i386/i386v4.mh, config/i386/i386v42mp.mh,
8364 config/i386/ncr3000.mh, config/i386/ncr3000.mt,
8365 config/i386/nm-i386sco.h, config/i386/nm-i386sco4.h,
8366 config/i386/nm-i386sco5.h, config/i386/nm-i386v.h,
8367 config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h,
8368 config/m68k/cisco.mt, config/m68k/os68k.mt, config/m68k/st2000.mt,
8369 config/m68k/tm-cisco.h, config/m68k/tm-os68k.h,
8370 config/rs6000/rs6000lynx.mh, config/rs6000/rs6000lynx.mt,
8371 config/rs6000/tm-rs6000ly.h: Delete files.
8373 2007-03-29 Daniel Jacobowitz <dan@codesourcery.com>
8375 * defs.h (deprecated_registers_changed_hook): Delete declaration.
8376 * interps.c (clear_interpreter_hooks): Do not clear
8377 deprecated_registers_changed_hook.
8378 * regcache.c (registers_changed): Do not call it.
8379 * top.c (deprecated_registers_changed_hook): Do not define it.
8380 * mi/mi-interp.c (mi_command_loop): Do not clear it.
8381 * tui/tui-hooks.c (tui_install_hooks): Do not install it.
8382 (tui_remove_hooks): Do not remove it.
8383 (tui_selected_frame_level_changed_hook): Check for negative level.
8384 Use get_selected_frame.
8385 (tui_registers_changed_hook): Deleted.
8387 2007-03-29 Joel Brobecker <brobecker@adacore.com>
8389 * stabsread.c (add_undefined_type): Add extra parameter.
8390 Now handles nameless types separately.
8391 (struct nat): New type.
8392 (noname_undefs, noname_undefs_allocated, noname_undefs_length):
8393 New static variables.
8394 (read_type): Update calls to add_undefined_type.
8395 (add_undefined_type_noname): New function.
8396 (add_undefined_type_1): Renames from add_undefined_type.
8397 (cleanup_undefined_types_noname): New function.
8398 (cleanup_undefined_types_1): Renames cleanup_undefined_types.
8399 (cleanup_undefined_types): New handles nameless types separately.
8400 (_initialize_stabsread): Initialize our new static constants.
8402 2007-03-29 Denis Pilat <denis.pilat@st.com>
8404 * configure.ac: Test for signal.h.
8405 * configure, config.in: Regenerate.
8407 2007-03-29 Denis Pilat <denis.pilat@st.com>
8409 * stack.c (print_stack_frame): Always use LOC_AND_ADDRESS in MI output.
8410 * infrun.c (normal_stop): Remove MI specific frame printing treatment.
8412 2007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
8414 * arm-wince-tdep.c: New.
8415 * config/arm/wince.mt (DEPRECATED_TM_FILE): Use tm-arm.h.
8416 (MT_CFLAGS): Delete.
8418 (TDEPFILES): Add arm-wince-tdep.o, corelow.o, solib.o,
8419 solib-legacy.o, solib-svr4.o, and remove wince.o.
8420 * configure.tgt (arm*-*-mingw32ce*): Add.
8421 * signals/signals.c [HAVE_SIGNAL_H]: Check.
8422 (do_target_signal_to_host): Silence 'not used' warning.
8423 * config/arm/tm-wince.h: Remove.
8425 2007-03-28 Ulrich Weigand <uweigand@de.ibm.com>
8427 * arch-utils.c (legacy_pc_in_sigtramp): Remove.
8428 * arch-utils.h (legacy_pc_in_sigtramp): Remove.
8430 * config/ia64/linux.mt (DEPRECATED_TM_FILE): Remove.
8431 * config/ia64/tm-linux.h: Remove file.
8432 * ia64-tdep.h (struct gdbarch_tdep): Add pc_in_sigtramp callback.
8433 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Use it instead of
8434 legacy_pc_in_sigtramp.
8435 (ia64_gdbarch_init): Initialize tdep->pc_in_sigtramp.
8436 * ia64-linux-tdep.c (ia64_linux_pc_in_sigtramp): Make static.
8437 Remove func_name argument.
8438 (ia64_linux_init_abi): Install it as tdep->pc_in_sigtramp.
8440 * infrun.c (HAVE_STEPPABLE_WATCHPOINT): Do not redefine.
8441 * target.c (update_current_target): Add to_have_steppable_watchpoint.
8442 * target.h (struct target_ops): Add to_have_steppable_watchpoint.
8443 (HAVE_STEPPABLE_WATCHPOINT): Define.
8445 * config/ia64/linux.mh (NATDEPFILES): Remove core-aout.o.
8446 * config/ia64/nm-linux.h (KERNEL_U_ADDR, U_REGS_OFFSET,
8447 CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER,
8448 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_STEPPABLE_WATCHPOINT,
8449 STOPPED_BY_WATCHPOINT, target_stopped_data_address,
8450 target_insert_watchpoint, target_remove_watchpoint): Remove.
8451 (FETCH_INFERIOR_REGISTERS): Define.
8452 * ia64-linux-nat.c (ia64_register_addr): Make static.
8453 (ia64_cannot_fetch_register, ia64_cannot_store_register): Likewise.
8454 (ia64_linux_insert_watchpoint): Make static. Remove ptid_p argument.
8455 (ia64_linux_remove_watchpoint): Likewise. Add type argument.
8456 (ia64_linux_stopped_data_address): Make static. Add target_ops.
8457 (ia64_linux_stopped_by_watchpoint): Make static.
8458 (ia64_linux_can_use_hw_breakpoint): New function.
8459 (ia64_linux_fetch_register, ia64_linux_fetch_registers): Likewise.
8460 (ia64_linux_store_register, ia64_linux_store_registers): Likewise.
8461 (_initialize_ia64_linux_nat): Install register and watchpoint ops.
8463 2007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
8465 * linespec.c: Include language.h.
8466 (find_methods): Add language parameter. Call
8467 lookup_symbol_in_language. Pass language down.
8468 (add_matching_methods): Likewise. Call
8469 lookup_symbol_in_language.
8470 (add_constructors): Likewise.
8471 (find_method): Pass sym_class to collect_methods.
8472 (collect_methods): Add sym_class parameter. Pass language
8474 * symtab.c (lookup_symbol): Rename to ...
8475 (lookup_symbol_in_language): ... this. Add language
8476 parameter. Use passed language instead of current_language.
8477 (lookup_symbol): New as wrapper around
8478 lookup_symbol_in_language.
8479 (lookup_symbol_aux): Add language parameter. Use passed
8480 language instead of current_language.
8481 (search_symbols): Indent.
8482 * symtab.h (enum language): Forward declare.
8483 (lookup_symbol_in_language): Declare.
8484 (lookup_symbol): Update description.
8485 * ada-lang.h (lookup_symbol_in_language): Remove declaration.
8486 * ada-lang.c (restore_language): Remove.
8487 (lookup_symbol_in_language): Remove.
8489 2007-03-27 Pedro Alves <pedro_alves@portugalmail.pt>
8491 * breakpoint.c (bpstat_num): Add int *num parameter.
8492 * breakpoint.h (bpstat_num): Likewise.
8493 * infcmd.c (continue_command): Adjust to new bpstat_num
8495 (program_info): Likewise.
8497 2007-03-27 Ulrich Weigand <uweigand@de.ibm.com>
8499 * config/sh/tm-sh.h: Remove file.
8500 * config/sh/embed.mt (DEPRECATED_TM_FILE): Remove.
8501 * config/sh/linux.mt (DEPRECATED_TM_FILE): Remove.
8502 * config/sh/nbsd.mt (DEPRECATED_TM_FILE): Remove.
8503 * config/sh/tm-wince.h: Do not include "sh/tm-sh.h".
8505 2007-03-27 Ulrich Weigand <uweigand@de.ibm.com>
8507 * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT,
8508 DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Remove.
8509 * remote.c: Remove code under #ifdef DEPRECATED_REMOTE_BREAKPOINT,
8510 DEPRECATED_BIG_REMOTE_BREAKPOINT, DEPRECATED_LITTLE_REMOTE_BREAKPOINT.
8511 * sh-tdep.c (sh_breakpoint_from_pc): Return remote breakpoint
8512 sequence if target_shortname is "remote".
8514 2007-03-27 Anton Blanchard <anton@samba.org>
8516 * rs6000-tdep.c (rs6000_frame_cache): Use tdep->lr_frame_offset
8517 instead of wordsize when looking for the LR in a stack frame.
8519 2007-03-27 Andreas Schwab <schwab@suse.de>
8520 Daniel Jacobowitz <dan@codesourcery.com>
8522 * dwarf2-frame.c (dwarf2_frame_eh_frame_regnum): Rename to...
8523 (dwarf2_frame_adjust_regnum): ...this. Make static. Add eh_frame_p
8524 argument. Update all callers.
8525 (struct dwarf2_frame_ops): Replace eh_frame_regnum with adjust_regnum.
8526 (dwarf2_frame_set_eh_frame_regnum): Rename to...
8527 (dwarf2_frame_set_adjust_regnum): ...this. Update argument type.
8528 * dwarf2frame.h (dwarf2_frame_set_eh_frame_regnum): Rename to...
8529 (dwarf2_frame_set_adjust_regnum): ...this.
8530 (dwarf2_frame_eh_frame_regnum): Delete prototype.
8531 * rs6000-tdep.c: Include "dwarf2-frame.h".
8532 (rs6000_adjust_frame_regnum): Define.
8533 (rs6000_gdbarch_init): Enable use of DWARF CFI frame unwinder.
8534 Register rs6000_adjust_frame_regnum.
8536 * Makefile.in (rs6000-tdep.o): Update dependencies.
8538 2007-03-27 Brooks Moses <brooks.moses@codesourcery.com>
8540 * Makefile.in: Add support for a "pdf" target.
8542 2007-03-27 Daniel Jacobowitz <dan@codesourcery.com>
8544 * amd64-tdep.c (amd64_init_frame_cache): New function.
8545 (amd64_alloc_frame_cache, amd64_skip_prologue): Use it.
8547 2007-03-26 Nigel Stephens <nigel@mips.com>
8548 Maciej W. Rozycki <macro@mips.com>
8550 * ui-out.c (ui_out_field_core_addr): Truncate address to
8551 TARGET_ADDR_BIT size before printing.
8553 2007-03-22 Nigel Stephens <nigel@mips.com>
8554 Maciej W. Rozycki <macro@mips.com>
8556 * remote-mips.c (mips_xfer_memory): Update prototype.
8558 2007-03-22 Joel Brobecker <brobecker@adacore.com>
8560 * symfile.h: #include "symtab.h"
8562 2007-03-22 Denis Pilat <denis.pilat@st.com>
8564 * utils.c (pagination_on_command, pagination_off_command):
8565 Remove useless prototypes.
8567 2007-03-21 Pierre Muller <muller@ics.u-strasbg.fr>
8570 * p-valprint.c (pascal_object_print_value): Use type_name_no_tag
8571 instead of TYPE_NAME for object base class name.
8574 2007-03-19 Kevin Buettner <kevinb@redhat.com>
8576 * mep-tdep.c (mep_analyze_frame_prologue, mep_frame_this_id):
8577 Specify frame type in calls to frame_func_unwind().
8579 2007-03-13 Daniel Jacobowitz <dan@codesourcery.com>
8581 * rs6000-tdep.c (rs6000_skip_prologue): Use skip_prologue_using_sal.
8582 (rs6000_in_function_epilogue_p): Use extract_unsigned_integer.
8583 (refine_prologue_limit): Delete.
8584 (skip_prologue): Don't call it. Use extract_unsigned_integer.
8585 Assume lim_pc is set. Correct check for incomplete prologues.
8586 Do not skip clobbers of the frame pointer.
8587 * symtab.c (skip_prologue_using_sal): Fail if there is only one
8590 2007-03-13 Nathan Froyd <froydnj@codesourcery.com>
8592 * frame.c (frame_pop): Check to see whether there's a frame to
8593 which we can pop first.
8595 2007-03-13 Nathan Froyd <froydnj@codesourcery.com>
8597 * MAINTAINERS (Write After Approval): Add myself.
8599 2007-03-09 Markus Deuling <deuling@de.ibm.com>
8601 * infrun.c (breakpoints_failed): Remove unnecessary variable.
8602 (handle_inferior_event): Remove unnecessary braces.
8603 * breakpoint.c (bpstat_what): Remove wrong comment.
8605 2007-03-09 Ulrich Weigand <uweigand@de.ibm.com>
8607 * spu-tdep.c (spu_in_function_epilogue_p): New function.
8608 (spu_gdbarch_init): Install it.
8610 2007-03-08 Ulrich Weigand <uweigand@de.ibm.com>
8612 * spu-linux-nat.c (spu_xfer_partial): Return -1 for unsupported
8613 object types, not 0.
8615 2007-03-08 Ulrich Weigand <uweigand@de.ibm.com>
8617 * spu-tdep.c (spu_frame_align): New function.
8618 (spu_gdbarch_init): Install it. Set call dummy location to ON_STACK.
8620 2007-03-08 Ulrich Weigand <uweigand@de.ibm.com>
8622 * spu-tdep.c (spu_unwind_pc): Mask off interrupt enable bit.
8623 (spu_software_single_step): Likewise.
8624 (spu_read_pc, spu_write_pc): New functions.
8625 (spu_gdbarch_init): Install them.
8627 2007-03-08 Ulrich Weigand <uweigand@de.ibm.com>
8629 * cli/cli-dump.c (struct callback_data): load_offset needs to
8630 have signed long type.
8632 2007-03-07 Joel Brobecker <brobecker@adacore.com>
8634 * mips-tdep.c (mips_insn16_frame_cache, mips_insn32_frame_sniffer):
8635 Revert the previous change that had some unexpected side-effects
8637 (mips_insn16_frame_cache, mips_insn32_frame_cache): Use the proper
8638 function to get the address of the calling instruction.
8640 2007-03-07 Denis Pilat <denis.pilat@st.com>
8642 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Replace
8643 get_selected_frame by deprecated_safe_get_selected_frame.
8645 2007-03-02 Mark Kettenis <kettenis@gnu.org>
8647 * shnbsd-tdep.c: Include "regset.h", "gdb_assert.h" and
8648 "gdb_string.h". Don't include "nbsd-tdep.h".
8649 (SIZEOF_STRUCT_REG): Remove.
8650 (SHNBSD_SIZEOF_GREGS): New.
8651 (shnbsd_supply_gregset, shnbsd_collect_gregset)
8652 (shnbsd_regset_from_core_section): New functions.
8653 (fetch_core_registers, fetch_elfcore_registers): Remove functions.
8654 (shnbsd_supply_reg, shnbsd_fill_reg): Simply call
8655 shnbsd_supply_gregset, shnbsd_collect_gregset.
8656 (shnbsd_gregset): New variable.
8657 (shnbsd_init_abi): Set regset_from_core_section.
8658 (GDB_OSABI_NETBSD_CORE): New define.
8659 (shnbsd_core_osabi_sniffer): New function.
8660 (_initialize_shnbsd_tdep): Register shnbsd_core_osabi_sniffer.
8661 * Makefile.in (shnbsd-tdep.o): Update dependencies.
8662 * config/sh/nbsd.mt (TDEPFILES): Add corelow.o, remove
8664 * config/sh/obsd.mt (TDEPFILES): Remove nbsd-tdep.o.
8666 2007-02-28 Joel Brobecker <brobecker@adacore.com>
8668 * gdbtypes.c (replace_type): Fix typo that caused us to not update
8669 length of the types referenced by the new type CV ring.
8671 2007-02-28 Daniel Jacobowitz <dan@codesourcery.com>
8673 * frame.c (frame_pop, frame_observer_target_changed): Call
8675 (flush_cached_frames): Rename to reinit_frame_cache and delete
8677 * frame.h (flush_cached_frames): Delete prototype and update comment.
8679 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd): Call
8680 reinit_frame_cache instead of flush_cached_frames. Do not call
8681 select_frame after reinit_frame_cache.
8682 * corelow.c (core_open): Likewise.
8683 * gdbarch.sh (deprecated_current_gdbarch_select_hack): Likewise.
8684 * infrun.c (prepare_to_proceed, context_switch)
8685 (handle_inferior_event): Likewise.
8686 * linux-fork.c (fork_load_infrun_state): Likewise.
8687 * ocd.c (ocd_start_remote): Likewise.
8688 * remote-e7000.c (e7000_start_remote): Likewise.
8689 * remote-mips.c (device): Likewise.
8690 * thread.c (switch_to_thread): Likewise.
8691 * tracepoint.c (finish_tfind_command): Likewise.
8692 * gdbarch.c: Regenerated.
8694 2007-02-28 Jerome Guitton <guitton@adacore.com>
8695 Joel Brobecker <brobecker@adacore.com>
8697 * gdbtypes.c (check_typedef): Do not replace stub type if
8698 the resolved type is not defined in the same objfile.
8700 2007-02-28 Daniel Jacobowitz <dan@codesourcery.com>
8702 * top.c (gdb_readline_wrapper_cleanup): Remove invalid assertion.
8704 2007-02-28 Joel Brobecker <brobecker@adacore.com>
8706 * stabsread.c (define_symbol): Create an associated STRUCT_DOMAIN
8707 symbol for Ada units when the symbol is defined using 't' rather
8708 than 'Tt' as symbol descriptor.
8710 2007-02-28 Ulrich Weigand <uweigand@de.ibm.com>
8712 * config/mips/tm-nbsd.h: Delete file.
8713 * config/mips/nbsd.mt (DEPRECATED_TM_FILE): Remove.
8714 * config/sh/tm-nbsd.h: Delete file.
8715 * config/sh/nbsd.mt (DEPRECATED_TM_FILE): Set to tm-sh.h.
8717 2007-02-28 Joel Brobecker <brobecker@adacore.com>
8719 * mi/mi-cmd-var.c (varobj_update_one): Remove reference to
8720 unused WRONG_PARAM value since it was recently deleted.
8722 2007-02-28 Vladimir Prus <vladimir@codesourcery.com>
8724 * varobj.c (varobj_update): Free temporary vectors.
8726 2007-02-28 Ulrich Weigand <uweigand@de.ibm.com>
8728 * config/powerpc/linux.mt (DEPRECATED_TM_FILE): Set to tm-ppc-eabi.h.
8729 * config/powerpc/tm-linux.h: Delete file.
8730 * config/powerpc/tm-ppc-eabi.h: Do not include "rs6000/tm-rs6000.h".
8731 (PROCESS_LINENUMBER_HOOK): Do not undefine.
8732 (TEXT_SEGMENT_BASE): Do not redefine.
8733 * config/rs6000/nm-rs6000.h (CHILD_SPECIAL_WAITSTATUS): Move here
8734 from config/rs6000/tm-rs6000.h.
8735 (TARGET_CREATE_INFERIOR_HOOK, rs6000_create_inferior): Likewise.
8736 * config/rs6000/tm-rs6000.h (struct frame_info): Remove declaration.
8737 (TEXT_SEGMENT_BASE): Remove.
8738 (IN_SOLIB_RETURN_TRAMPOLINE): Remove.
8739 (rs6000_in_solib_return_trampoline): Remove.
8740 (SKIP_TRAMPOLINE_CODE): Remove.
8741 (rs6000_skip_trampoline_code): Remove.
8742 (CHILD_SPECIAL_WAITSTATUS): Move to config/rs6000/nm-rs6000.h.
8743 (TARGET_CREATE_INFERIOR_HOOK, rs6000_create_inferior): Likewise.
8744 (FP0_REGNUM): Remove.
8745 (rs6000_find_toc_address_hook): Move to rs6000-tdep.h.
8746 (rs6000_set_host_arch_hook): Remove.
8747 * Makefile.in (rs6000-nat.o): Add dependency on $(rs6000_tdep_h).
8748 (rs6000-aix-tdep.o): Add dependency on $(ppc_tdep_h).
8749 * ppc-tdep.h (struct gdbarch_tdep): Add field text_segment_base.
8750 * rs6000-aix-tdep.c: Include "ppc-tdep.h".
8751 (rs6000_aix_init_osabi): Set text_segment_base tdep field.
8752 * rs6000-nat.c: Include "rs6000-tdep.h".
8753 (exec_one_dummy_insn): Replace TEXT_SEGMENT_BASE by tdep field.
8754 (set_host_arch): Rename to ...
8755 (rs6000_create_inferior): ... this. Make public.
8756 (_initialize_core_rs6000): Do not set rs6000_set_host_arch_hook.
8757 * rs6000-tdep.c (rs6000_set_host_arch_hook): Remove.
8758 (rs6000_create_inferior): Remove.
8759 (branch_dest): Replace TEXT_SEGMENT_BASE by tdep field.
8760 (rs6000_gdbarch_init): Call set_gdbarch_fp0_regnum,
8761 set_gdbarch_in_solib_return_trampoline, and
8762 set_gdbarch_skip_trampoline_code.
8763 * rs6000-tdep.h (rs6000_find_toc_address_hook): Move here
8764 from config/rs6000/tm-rs6000.h.
8766 2007-02-27 Joel Brobecker <brobecker@adacore.com>
8768 * buildsym.c (record_producer): Do nothing if no producer is provided.
8770 2007-02-27 Nick Roberts <nickrob@snap.net.nz>
8772 * varobj.c (varobj_update): Remove unused local. Use gdb_assert
8773 to check changelist is non-NULL. Call error if the frontend tries
8774 to update a non-root variable.
8776 * varobj.h (enum varobj_update_error): Delete WRONG_PARAM value.
8778 2007-02-27 Daniel Jacobowitz <dan@codesourcery.com>
8780 * dwarf2-frame.c (dwarf2_frame_cache, dwarf2_frame_this_id)
8781 (dwarf2_frame_sniffer): Update.
8782 (dwarf2_signal_frame_this_id): New function.
8783 (dwarf2_signal_frame_unwind): Use it.
8784 (dwarf2_frame_base_sniffer): Use frame_unwind_address_in_block.
8785 * frame.c (frame_func_unwind): Add this_type argument.
8786 (get_frame_func): Update.
8787 (frame_unwind_address_in_block): Add this_type argument and check it.
8789 (get_frame_address_in_block): Update.
8790 * frame.h (enum frame_type): Move higher in the file.
8791 (frame_unwind_address_in_block, frame_func_unwind): Add enum frame_type
8794 * alpha-mdebug-tdep.c, alpha-tdep.c, amd64-tdep.c, amd64obsd-tdep.c,
8795 arm-tdep.c, avr-tdep.c, cris-tdep.c, frv-tdep.c, h8300-tdep.c,
8796 hppa-tdep.c, i386-tdep.c, i386obsd-tdep.c, ia64-tdep.c,
8797 libunwind-frame.c, m32c-tdep.c, m32r-linux-tdep.c, m32r-tdep.c,
8798 m68hc11-tdep.c, m68k-tdep.c, m88k-tdep.c, mips-mdebug-tdep.c,
8799 mips-tdep.c, mn10300-tdep.c, mt-tdep.c, rs6000-tdep.c, s390-tdep.c,
8800 score-tdep.c, sh-tdep.c, sh64-tdep.c, sparc-tdep.c,
8801 sparc64obsd-tdep.c, spu-tdep.c, v850-tdep.c, vax-tdep.c,
8802 xstormy16-tdep.c, xtensa-tdep.c: Update calls to
8803 frame_func_unwind and frame_unwind_address_in_block to specify
8804 the frame type. Use frame_unwind_address_in_block instead of
8805 frame_pc_unwind in sniffers.
8807 2007-02-27 Daniel Jacobowitz <dan@codesourcery.com>
8809 * frame.c (deprecated_selected_frame): Rename to...
8810 (selected_frame): ...this. Make static.
8811 (get_selected_frame, select_frame): Update.
8812 * frame.h (deprected_select_frame): Delete.
8813 (deprecated_safe_get_selected_frame): Update comments.
8815 * breakpoint.c, cli/cli-cmds.c, f-valprint.c, infcmd.c, inflow.c,
8816 infrun.c, stack.c, tui/tui-disasm.c, tui/tui-source.c,
8817 tui/tui-winsource.c, valops.c, varobj.c, findvar.c, macroscope.c,
8818 parse.c, regcache.h, sh64-tdep.c, tui/tui-hooks.c, tui/tui-win.c,
8819 tui/tui.c: Replace references to deprecated_selected_frame.
8821 2007-02-27 Fred Fish <fnf@specifix.com>
8823 * rs6000-tdep.c (skip_prologue): Recognize addi instructions that
8824 directly decrement the stack pointer, accumulate their operand into
8825 the stack offset, and mark the function as not being frameless.
8827 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
8829 * arch-utils.c (selected_byte_order): New.
8830 * arch-utils.h (selected_byte_order): New prototype.
8831 * remote-sim.c (gdbsim_open): Use selected_byte_order.
8833 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
8835 * symfile.c (place_section): Check SEC_ALLOC. Do not check VMA.
8836 (default_symfile_offsets): Check VMA here. Update section VMAs.
8838 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
8840 * remote.c (init_remote_state): Add special handling for placeholder
8843 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
8845 * Makefile.in (XMLFILES): Include $(TDEP_XML).
8846 (filenames_h): New variable.
8847 (clean): Clean up xml-builtin.c and stamp-xml.
8848 (arm-linux-nat.o): Update.
8849 * config/arm/linux.mh (TDEP_XML): Define.
8850 * arm-linux-nat.c (PTRACE_GETWMMXREGS, PTRACE_SETWMMXREGS): Define.
8851 (arm_linux_has_wmmx_registers): New.
8852 (GET_THREAD_ID): Fix typo.
8853 (IWMMXT_REGS_SIZE): Define.
8854 (fetch_wmmx_regs, store_wmmx_regs): New.
8855 (arm_linux_fetch_inferior_registers): Use fetch_wmmx_regs.
8856 (arm_linux_store_inferior_registers): Use store_wmmx_regs.
8857 (super_xfer_partial, arm_linux_xfer_partial): New.
8858 (_initialize_arm_linux_nat): Use them.
8859 * xml-support.c (fetch_xml_builtin): Move outside HAVE_LIBEXPAT.
8860 (xml_builtin_xfer_partial): New function.
8861 * xml-support.h (xml_builtin_xfer_partial): New prototype.
8862 * NEWS: Update mention of iWMMXt support.
8864 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
8866 * arm-tdep.c (arm_scan_prologue): Do not record FPA register saves
8867 if there are no FPA registers.
8868 (arm_dwarf_reg_to_regnum): New function.
8869 (arm_register_type, arm_register_name): Return minimal values for
8870 unsupported registers.
8871 (arm_register_sim_regno): Handle iWMMXt registers.
8872 (arm_gdbarch_init): Record missing FPA registers if indicated by
8873 a target description. Recognize iWMMXt registers. Only register
8874 "info float" for FPA. Use ARM_NUM_REGS. Register
8875 arm_dwarf_reg_to_regnum.
8876 * arm-tdep.h (enum gdb_regnum): Add ARM_NUM_REGS and iWMMXt
8878 (struct gdbarch_tdep): Add have_fpa_registers.
8879 * features/xscale-iwmmxt.xml: Update capitalization.
8880 * regformats/arm-with-iwmmxt.dat: Regenerated.
8882 2007-02-24 Kevin Buettner <kevinb@redhat.com>
8884 * NEWS (New targets): Add entry for the Toshiba Media Processor.
8886 2007-02-23 Kevin Buettner <kevinb@redhat.com>
8888 * MAINTAINERS (mep): New target.
8890 2007-02-23 Kevin Buettner <kevinb@redhat.com>
8892 From Jim Blandy, Dave Brolley, Kevin Buettner, Don Howard, and
8894 * Makefile.in (elf_mep_h, mep_desc_h, mep_opc_h): New variables.
8895 (mep-tdep.o): New rule.
8896 * configure.tgt (mep-*-*): New target.
8897 * mep-tdep.c: New file.
8898 * config/mep/mep.mt: New file.
8900 2007-02-22 Markus Deuling <deuling@de.ibm.com>
8902 * infrun.c (inferior_stop_reason, print_stop_reason): Remove
8903 BREAKPOINT_HIT and STOP_UNKNOWN.
8905 2007-02-22 Markus Deuling <deuling@de.ibm.com>
8907 * valops.c (value_ind): Fix unary * handling of TYPE_CODE_INT.
8909 2007-02-20 Joel Brobecker <brobecker@adacore.com>
8911 * gdb_expat.h (XMLCALL): Define if not already defined.
8913 2007-02-20 Andreas Schwab <schwab@suse.de>
8915 * Makefile.in (symfile.o): Update dependencies.
8917 2007-02-20 Daniel Jacobowitz <dan@codesourcery.com>
8919 * MAINTAINERS: Disable -Werror for cris simulator. Build
8920 sparc64-solaris2.10 instead of the broken sparc-elf.
8921 * solib-frv.c: Include "solib.h".
8922 * Makefile.in (solib-frv.o): Update.
8923 * mt-tdep.c (mt_gdbarch_init): Correct typo in floatformats patch.
8924 * xtensa-tdep.c (xtensa_regset_from_core_section): Cast size_t to int.
8925 (xtensa_frame_this_id, xtensa_frame_prev_register)
8926 (xtensa_push_dummy_call): Use %p.
8928 2007-02-16 Daniel Jacobowitz <dan@codesourcery.com>
8930 * avr-tdep.c, hppa-tdep.c, hppabsd-tdep.c, i386-tdep.c,
8931 ia64-tdep.c, m68k-tdep.c, mips-linux-tdep.c, ppcobsd-tdep.c,
8932 sparc-linux-tdep.c: Include "gdbtypes.h" instead of "floatformat.h".
8933 * Makefile.in (avr-tdep.o, hppabsd-tdep.o, hppa-tdep.o, i386-tdep.o)
8934 (ia64-tdep.o, m68k-tdep.o, mips-linux-tdep.o, ppcobsd-tdep.o)
8935 (sparc-linux-tdep.o): Update.
8937 2007-02-15 Maxim Grigoriev <maxim2405@gmail.com>
8939 * xtensa-tdep.h (xtensa_reg_mask_t): New.
8940 (xtensa_mask_t): Change mask field to be a separate array.
8941 * xtensa-tdep.c (extract_call_winsize, xtensa_pseudo_register_read)
8942 (xtensa_pseudo_register_write, xtensa_unwind_pc)
8943 (xtensa_unwind_dummy_id, xtensa_push_dummy_call)
8944 (xtensa_breakpoint_from_pc): Remove implicit type casting.
8945 * xtensa-config.c (mask0, mask1, mask2, mask3, mask4, mask5)
8946 (mask6, mask7, mask8, mask9, mask10, mask11, mask12, mask13)
8947 (mask14, mask15): Rename to
8948 (xtensa_mask0, xtensa_mask1, xtensa_mask2, xtensa_mask3)
8949 (xtensa_mask4, xtensa_mask5, xtensa_mask6, xtensa_mask7)
8950 (xtensa_mask8, xtensa_mask9, xtensa_mask10, xtensa_mask11)
8951 (xtensa_mask12, xtensa_mask13, xtensa_mask14, xtensa_mask15): this.
8952 (xtensa_submask0, xtensa_submask1, xtensa_submask2, xtensa_submask3)
8953 (xtensa_submask4, xtensa_submask5, xtensa_submask6, xtensa_submask7)
8954 (xtensa_submask8, xtensa_submask9, xtensa_submask10)
8955 (xtensa_submask11, xtensa_submask12, xtensa_submask13)
8956 (xtensa_submask14, xtensa_submask15): New.
8957 (rmap): Follow strict aliasing rules doing static initialization.
8959 2007-02-13 Daniel Jacobowitz <dan@codesourcery.com>
8961 * target-descriptions.c (tdesc_named_type): Move code_ptr and data_ptr
8962 handling from here...
8963 (tdesc_register_type): ...to here.
8964 * xml-tdesc.c (tdesc_start_reg): Allow code_ptr and data_ptr.
8965 * features/arm-core.xml: Use code_ptr and data_ptr.
8967 2007-02-13 Denis Pilat <denis.pilat@st.com>
8969 * varobj.h (enum varobj_update_error): New enum.
8970 * varobj.c (struct varobj_root): Add is_valid member.
8971 (varobj_get_type): Check for invalid varobj.
8972 (varobj_get_attributes): Likewise.
8973 (variable_editable):Likewise.
8974 (varobj_update): Likewise. Use varobj_update_error.
8975 (new_root_variable): Set root varobj as valid by default.
8976 (varobj_invalidate): New function.
8977 * symfile.c (clear_symtab_users): Use varobj_invalidate.
8978 * mi/mi-cmd-var.c (varobj_update_one): Change return type to void.
8979 Use varobj_update_error.
8981 2007-02-12 Pierre Muller <muller@ics.u-strasbg.fr>
8984 * dwarfread.c (set_cu_language): Recognize DW_LANG_Pascal83 as
8985 Pascal language marker.
8986 * dwarf2read.c (set_cu_language): Likewise.
8988 2007-02-12 Corinna Vinschen <vinschen@redhat.com>
8990 * win32-nat.c (win32_wait): Reset terminal pgrp to GDB.
8991 (do_initial_win32_stuff): Call terminal_init_inferior_with_pgrp
8992 instead of target_terminal_init since inferior_ptid isn't set yet.
8994 2007-02-10 Pedro Alves <pedro_alves@portugalmail.pt>
8996 * MAINTAINERS (Write After Approval): Add myself.
8998 2007-02-09 Fred Fish <fnf@specifix.com>
9000 Based on work by Apple Computer, Inc.
9001 * event-top.c (async_request_quit): Call quit() whenever either
9002 quit_flag is set or immediate_quit is set.
9004 2007-02-09 Gabriel Dos Reis <gdr@integrable-solutions.net>
9006 * ada-lang.c (remove_out_of_scope_renamings): Change third parameter's
9007 type to a pointer to const struct block.
9008 (ada_lookup_symbol_list): Don't cast away constness when calling
9009 remove_out_of_scope_renamings.
9011 2007-02-09 Gabriel Dos Reis <gdr@integrable-solutions.net>
9013 * linux-nat.c (linux_nat_find_memory_regions): Don't check the
9014 address of 'filename'; it is always non null.
9016 2007-02-09 Joel Brobecker <brobecker@adacore.com>
9018 * exec.c (add_to_section_table): Do not discard empty sections.
9020 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
9022 * features/Makefile, features/arm-with-iwmmxt.xml,
9023 features/gdbserver-regs.xsl, features/number-regs.xsl,
9024 features/sort-regs.xsl, features/xscale-iwmmxt.xml: New files.
9025 * regformats/arm-with-iwmmxt.dat: Generate.
9026 * NEWS: Mention iWMMXt.
9028 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
9030 * Makefile.in (arm-tdep.o, eval.o, target-descriptions.o)
9031 (xml-tdesc.o): Update.
9032 * xml-support.c: Add a comment.
9033 (gdb_xml_enums_boolean): New variable.
9034 (gdb_xml_parse_attr_enum): Use strcasecmp.
9035 * xml-support.h (gdb_xml_enums_boolean): Declare.
9036 * xml-tdesc.c (struct tdesc_parsing_data): Record current_feature,
9037 next_regnum, and current_union.
9038 (tdesc_start_feature, tdesc_start_reg, tdesc_start_union)
9039 (tdesc_end_union, tdesc_start_field, tdesc_start_vector)
9040 (field_attributes, union_children, reg_attributes, union_attributes)
9041 (vector_attributes, feature_attributes, feature_children): New.
9042 (target_children): Make static. Add <feature>.
9043 (tdesc_elements): Make static.
9044 * target-descriptions.c (struct tdesc_reg, tdesc_reg_p, type_p)
9045 (struct tdesc_feature, tdesc_feature_p): New types.
9046 (struct target_desc): Add features member.
9047 (struct tdesc_arch_data, tdesc_data): New.
9048 (target_find_description): Clarify error message. Warn about
9049 ignored register descriptions.
9050 (tdesc_has_registers, tdesc_find_feature, tdesc_feature_name)
9051 (tdesc_named_type, tdesc_data_init, tdesc_data_alloc)
9052 (tdesc_data_cleanup, tdesc_numbered_register)
9053 (tdesc_numbered_register_choices, tdesc_find_register)
9054 (tdesc_register_name, tdesc_register_type)
9055 (tdesc_remote_register_number, tdesc_register_reggroup_p)
9056 (set_tdesc_pseudo_register_name, set_tdesc_pseudo_register_type)
9057 (set_tdesc_pseudo_register_reggroup_p, tdesc_use_registers)
9058 (tdesc_free_reg, tdesc_create_reg, tdesc_free_feature)
9059 (tdesc_create_feature, tdesc_record_type): New.
9060 (free_target_description): Free features.
9061 (_initialize_target_descriptions): Initialize tdesc_data.
9062 * arch-utils.c (default_remote_register_number): New.
9063 * arch-utils.h (default_remote_register_number): New prototype.
9064 * target-descriptions.h (set_tdesc_pseudo_register_name)
9065 (set_tdesc_pseudo_register_type, set_tdesc_pseudo_register_reggroup_p)
9066 (tdesc_use_registers, tdesc_data_alloc, tdesc_data_cleanup)
9067 (tdesc_numbered_register, tdesc_numbered_register_choices)
9068 (tdesc_has_registers, tdesc_find_feature, tdesc_feature_name)
9069 (tdesc_named_type, tdesc_create_feature, tdesc_record_type)
9070 (tdesc_create_reg): Declare.
9071 * gdbarch.sh (remote_register_number): New entry.
9072 * gdbarch.c, gdbarch.h: Regenerate.
9073 * remote.c (init_remote_state): Use gdbarch_remote_register_number.
9074 * features/gdb-target.dtd: Add feature, reg, vector, union, and field.
9076 * arm-tdep.c (arm_register_aliases): New.
9077 (arm_register_name_strings): Rename to...
9078 (arm_register_names): ...this. Make const. Delete the old version.
9079 (current_option, arm_register_byte): Delete.
9080 (set_disassembly_style): Simplify. Do not adjust arm_register_names.
9081 (value_of_arm_user_reg): New.
9082 (arm_gdbarch_init): Verify any described registers. Call
9083 tdesc_use_registers. Don't use arm_register_byte. Create aliases
9084 for standard register names.
9085 (_initialize_arm_tdep): Do not adjust arm_register_names.
9086 * user-regs.c (struct user_reg): Add baton member.
9087 (append_user_reg, user_reg_add_builtin, user_regs_init)
9088 (user_reg_add, value_of_user_reg): Use a baton for user
9090 * std-regs.c: Update.
9091 * user-regs.h (user_reg_read_ftype, user_reg_add_builtin)
9092 (user_reg_add): Add baton argument.
9093 * NEWS: Mention target description register support.
9094 * features/arm-core.xml, features/arm-fpa.xml: New.
9095 * eval.c (evaluate_subexp_standard): Allow ptype $register
9096 when the program is not running.
9098 2007-02-09 Nick Roberts <nickrob@snap.net.nz>
9100 * mi/mi-cmd-var.c (mi_cmd_var_create): Add value field.
9102 2007-02-08 Thiago Jung Bauermann <bauerman@br.ibm.com>
9104 * rs6000-tdep.c (gdb_print_insn_powerpc): Set
9105 info->disassembler_options to "any".
9107 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
9109 * varobj.c (install_new_value): Only call value_get_print_value
9112 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
9114 Reported by timeless@gmail.com:
9115 * gdb/target.c (target_flash_erase): Do not return void value.
9116 (target_flash_done): Likewise.
9117 * gdb/cli/cli-cmds.c (source_command): Likewise.
9119 2007-02-08 Fred Fish <fnf@specifix.com>
9121 Based on work by Apple Computer, Inc.
9122 * event-top.c (handle_sigint): Set quit_flag.
9123 (async_request_quit): Don't set quit_flag. Avoid calling quit()
9124 if quit_flag has already been reset.
9126 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
9128 * ser-mingw.c (pipe_windows_close): Move variable initialization back
9131 2007-02-08 Fred Fish <fnf@specifix.com>
9133 * defs.h (request_quit): Remove declaration.
9134 * utils.c (request_quit): Remove definition.
9136 2007-02-08 Joel Brobecker <brobecker@gnat.com>
9137 Jan Kratochvil <jan.kratochvil@redhat.com>
9138 Daniel Jacobowitz <dan@codesourcery.com>
9140 * rs6000-tdep.c (bl_to_blrl_insn_p): New function.
9141 (skip_prologue): Allow bl->blrl used by PIC code.
9143 2007-02-08 Mark Kettenis <kettenis@gnu.org>
9144 Daniel Jacobowitz <dan@codesourcery.com>
9146 * cp-valprint.c (cp_print_value_fields, cp_print_value): Always
9147 initialize tmp_obstack.
9148 * p-valprint.c (pascal_object_print_value_fields)
9149 (pascal_object_print_value): Likewise.
9151 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
9153 * features/feature_to_c.sh: Use %s to avoid problems with nawk.
9155 2007-02-08 Mark Kettenis <kettenis@gnu.org>
9157 * sparcnbsd-tdep.c: Include "gdbtypes.h" instead of "floatformat.h".
9158 * Makefile.in (sparcnbsd-tdep.o): Update dependencies.
9160 2007-02-07 Daniel Jacobowitz <dan@codesourcery.com>
9162 * xml-tdesc.c (struct tdesc_xml_cache, tdesc_xml_cache_s)
9164 (tdesc_parse_xml): Cache expanded descriptions.
9166 2007-02-07 Daniel Jacobowitz <dan@codesourcery.com>
9168 * Makefile.in (XMLFILES): New.
9169 (COMMON_OBS): Add xml-builtin.o.
9170 (xml-builtin.c, stamp-xml): New rules.
9171 (xml-tdesc.o): Update.
9172 * features/feature_to_c.sh: New file.
9173 * xml-support.c (MAX_XINCLUDE_DEPTH): Define.
9174 (struct gdb_xml_parser): Add dtd_name and is_xinclude.
9175 (gdb_xml_start_element): Initialize scope after possibly reallocating
9176 scopes. Move cleanup later. Handle the XInclude description
9178 (gdb_xml_end_element): Only parse the body if there is a current element.
9179 Call XML_DefaultCurrent if there is no element.
9180 (gdb_xml_fetch_external_entity, gdb_xml_use_dtd): New.
9181 (struct xinclude_parsing_data, xinclude_start_include)
9182 (xinclude_end_include, xml_xinclude_default)
9183 (xml_xinclude_start_doctype, xml_xinclude_end_doctype)
9184 (xml_xinclude_xml_decl, xml_xinclude_cleanup, xinclude_attributes)
9185 (xinclude_elements, xml_process_xincludes, fetch_xml_builtin): New.
9186 * xml-support.h (xml_fetch_another, xml_process_xincludes)
9187 (fetch_xml_builtin, xml_builtin, gdb_xml_use_dtd): New declarations.
9188 * xml-tdesc.c (tdesc_parse_xml): Add fetcher_baton argument. Expand
9189 XInclude directives. Use the compiled in DTD.
9190 (fetch_xml_from_file): Add baton argument. Treat it as a containing
9191 directory name. Do not warn here.
9192 (file_read_description_xml): Update call. Warn here instead. Pass
9194 (fetch_available_features_from_target): New.
9195 (target_read_description_xml): Use it.
9196 * features/gdb-target.dtd: Add copyright notice. Use xinclude.dtd
9198 * features/xinclude.dtd: New file.
9200 2007-02-05 Daniel Jacobowitz <dan@codesourcery.com>
9202 * linux-thread-db.c (check_for_thread_db): Return early if we have
9203 no libthread_db support.
9205 2007-02-05 Daniel Jacobowitz <dan@codesourcery.com>
9207 * mi/mi-parse.h: Include <sys/time.h>.
9209 2007-02-05 Nick Roberts <nickrob@snap.net.nz>
9211 * mi/mi-cmd-stack.c (list_args_or_locals): Use common_val_print
9212 instead of print_variable_value to print values.
9214 2007-02-03 Nick Roberts <nickrob@snap.net.nz>
9216 * mi/mi-main.c: Numerous formatting changes.
9217 (mi_cmd_data_write_register_values): Replace clause inadvertantly
9218 removed in my previous change.
9220 2007-02-03 Eli Zaretskii <eliz@gnu.org>
9222 * mi/mi-main.c (mi_load_progress, timestamp, print_diff_now):
9223 Use 1000000L instead of 1000000.
9225 2007-02-03 Nick Roberts <nickrob@snap.net.nz>
9227 Based on work by Apple Computer, Inc.
9229 * configure.ac: Test for sys/resource.h and getrusage.
9230 * configure, config.in: Regenerate.
9232 * mi/mi-main.c: Include <sys/resource.h> if present.
9233 (rusage): Declare if HAVE_GETRUSAGE.
9234 (current_command_ts, do_timings): New static variables.
9235 (timestamp, print_diff_now, print_diff, timeval_diff):
9236 New static timing functions.
9237 (mi_cmd_enable_timings): New function for new MI command.
9238 (captured_mi_execute_command, mi_execute_async_cli_command):
9239 Call timing functions.
9241 * mi/mi-cmds.c (mi_cmds): Add entry for new MI command
9244 * mi/mi-cmds.h (mi_cmd_enable_timings): New extern.
9246 * mi/mi-parse.h: (mi_timestamp): New structure.
9247 (mi_parse): Add mi_timestamp* member.
9249 2007-02-02 Denis Pilat <denis.pilat@st.com>
9251 * thread.c (make_cleanup_restore_current_thread): New function.
9252 (info_threads_command): Use of make_cleanup_restore_current_thread
9253 to restore the current thread and the selected frame.
9254 (restore_selected_frame): New function.
9255 (struct current_thread_cleanup): Add frame_id field.
9256 (do_restore_current_thread_cleanup): Add restoring of the selected
9258 (make_cleanup_restore_current_thread): Likewise.
9259 (thread_apply_all_command): backup the selected frame while
9260 entering the function and restore it at exit.
9261 (thread_apply_command): Likewise.
9263 2007-02-02 Denis Pilat <denis.pilat@st.com>
9265 * MAINTAINERS (Write After Approval): Add myself to the list.
9267 2007-02-01 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
9269 * gdb/remote-m32r.sdi.c (m32r_fetch_register): Change PWD mask.
9270 (m32r_store_register): Ditto.
9272 2007-01-30 Vladimir Prus <vladimir@codesourcery.com>
9274 * ser-mingw.c (pipe_windows_open)
9275 (pipe_windows_read, pipe_windows_write): Declare
9276 variables at the top of the function.
9278 2007-01-29 Daniel Jacobowitz <dan@codesourcery.com>
9280 * doublest.c (floatformat_from_length): Use the right element from
9281 gdbarch floatformats.
9282 (floatformat_from_type, extract_typed_floating)
9283 (store_typed_floating): Likewise.
9284 * doublest.h: Remove declarations for undefined floatformat arrays.
9285 * gdbarch.sh (float_format, double_format, long_double_format): Change
9287 (pformat): Update for pairs.
9288 * gdbarch.c, gdbarch.h: Regenerated.
9289 * gdbtypes.c (floatformats_ieee_single, floatformats_ieee_double)
9290 (floatformats_ieee_double_littlebyte_bigword)
9291 (floatformats_i387_ext, floatformats_m68881_ext, floatformats_arm_ext)
9292 (floatformats_ia64_spill, floatformats_ia64_quad, floatformats_vax_f)
9293 (floatformats_vax_d): New variables.
9294 (builtin_type_ieee_single, builtin_type_ieee_double)
9295 (builtin_type_arm_ext, builtin_type_ia64_spill)
9296 (builtin_type_ia64_quad): Replace arrays with individual types.
9297 (builtin_type_ieee_single_big, builtin_type_ieee_single_little)
9298 (builtin_type_ieee_double_big, builtin_type_ieee_double_little)
9299 (builtin_type_ieee_double_littlebyte_bigword, builtin_type_i960_ext)
9300 (builtin_type_m88110_ext, builtin_type_m88110_harris_ext)
9301 (builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword)
9302 (builtin_type_ia64_spill_big, builtin_type_ia64_spill_little)
9303 (builtin_type_ia64_quad_big, builtin_type_ia64_quad_little): Delete
9304 unused and endian-specific types.
9305 (recursive_dump_type): Update for floatformat pairs.
9306 (build_flt): Move higher. Handle bit == -1. Take a floatformat pair.
9307 (build_gdbtypes): Use build_flt.
9308 (_initialize_gdbtypes): Update set of initialized types.
9309 * gdbtypes.h: Update declarations to match gdbtypes.c.
9310 (struct main_type): Store a pointer to two floatformats.
9311 * arch-utils.c (default_float_format, default_double_format): Delete.
9312 * arch-utils.h (default_float_format, default_double_format): Delete.
9314 * arm-tdep.c, avr-tdep.c, hppa-tdep.c, hppabsd-tdep.c, i386-tdep.c,
9315 ia64-tdep.c, iq2000-tdep.c, m68k-tdep.c, m88k-tdep.c,
9316 mips-linux-tdep.c, mips-tdep.c, mt-tdep.c, ppcobsd-tdep.c,
9317 sparc-linux-tdep.c, sparc-tdep.c, sparcnbsd-tdep.c, spu-tdep.c,
9318 vax-tdep.c, alpha-tdep.c, ppc-sysv-tdep.c: Update.
9320 2007-01-29 Joel Brobecker <brobecker@adacore.com>
9322 * target.c (maintenance_print_target_stack): New function.
9323 (initialize_targets): Add new "maintenance print target-stack"
9326 2007-01-28 Mark Kettenis <kettenis@gnu.org>
9328 * dwarf2read.c (new_symbol): Handle DW_AT_decl_file being zero.
9330 2007-01-27 Daniel Jacobowitz <dan@codesourcery.com>
9332 * dwarf2loc.h (struct dwarf2_locexpr_baton): Change size to a long.
9333 (struct dwarf2_loclist_baton): Likewise.
9335 2007-01-27 Eli Zaretskii <eliz@gnu.org>
9337 * cli/cli-script.c: Include breakpoint.h.
9338 (build_command_line): Require arguments only for if and while
9340 (get_command_line, execute_user_command, execute_control_command):
9341 Fix wording of warning messages.
9342 (print_command_lines): Print breakpoint commands.
9343 (execute_control_command): Call commands_from_control_command to
9344 handle the `commands' command inside a body of a flow-control
9346 (read_next_line): Recognize the `commands' command and build a
9347 command line structure for it.
9348 (recurse_read_control_structure, read_command_lines): Handle
9349 `commands' similarly to `if' and `while'.
9351 * breakpoint.c (get_number_trailer): Document the special meaning
9352 of NULL as the first argument PP.
9353 (commands_from_control_command): New function.
9355 * breakpoint.h (commands_from_control_command): Add prototype.
9357 * defs.h (commands_control): New enumerated value for enum
9358 command_control_type.
9360 2007-01-26 Joel Brobecker <brobecker@adacore.com>
9362 * ada-lang.c (ada_exception_breakpoint_ops): Fix typo in function name.
9363 (ada_exception_sal): Update accordingly.
9365 2007-01-26 Jan Kratochvil <jan.kratochvil@redhat.com>
9367 * c-valprint.c (c_val_print): Require strings to be of no-signed CHARs.
9368 * NEWS: Describe CHAR array vs. string identifcation rules.
9370 2007-01-25 Paul Brook <paul@codesourcery.com>
9372 * arm-tdep.c (arm_get_next_pc): Fix bitfield off-by-one error.
9374 2007-01-24 Jim Blandy <jimb@codesourcery.com>
9376 * dwarf2loc.c (dwarf2_evaluate_loc_desc): When the location
9377 expression is empty, bother to return the 'optimized out' value we
9378 construct. (Thanks to Carl Burch.)
9380 2007-01-24 Vladimir Prus <vladimir@codesourcery.com>
9382 * varobj.c (c_value_of_root, c_value_of_child)
9383 (cplus_describe_child): Don't call release_value.
9385 2007-01-24 Thiemo Seufer <ths@mips.com>
9387 * mips-linux-tdep.c (mips_linux_n64_rt_sigframe): Fix struct
9390 2007-01-24 Vladimir Prus <vladimir@codesourcery.com>
9392 Refactor getting children name, value and type access
9394 * varobj.c (get_type_deref): Remove.
9395 (adjust_value_for_child_access): New.
9396 (c_number_of_children): Use the above.
9397 (c_describe_child): Likewise.
9398 (enum accessibility): New.
9399 (match_accessibility): New function.
9400 (cplus_describe_child): New function.
9401 (cplus_name_of_child, cplus_value_of_child)
9402 (cplus_type_of_child): Reimplement in terms
9403 of cplus_describe_child.
9404 (cplus_number_of_children): Use
9405 adjust_value_for_child_access.
9407 2007-01-24 Vladimir Prus <vladimir@codesourcery.com>
9409 Fix computation of the 'editable' attribute and
9410 value changeability for for references.
9411 * varobj.c (get_value_type): New function.
9412 (c_variable_editable): Use get_value_type.
9413 (varobj_value_is_changeable): Likewise.
9415 2007-01-24 Joel Brobecker <brobecker@adacore.com>
9417 * source.c (find_and_open_source): Try rewriting the source
9418 path inside filename if dirname is NULL.
9420 2007-01-24 Joel Brobecker <brobecker@adacore.com>
9422 * dwarf2read.c (add_partial_symbol): Create an extra partial
9423 symbol in the VAR_DOMAIN for Ada structures, unions or enums.
9424 (new_symbol): Likewise for symbols.
9426 2007-01-24 Nick Roberts <nickrob@snap.net.nz>
9428 * mi/mi-main.c (mi_cmd_execute): Call free_all_values.
9430 2007-01-23 Vladimir Prus <vladimir@codesourcery.com>
9432 * value.c (value_primitive_field): Copy the full 'location'
9433 contents, instead of assuming that copying ADDRESS will
9434 bring over everything in the union. Remove obsolete comment.
9436 2007-01-23 Masaki Muranaka <monaka@monami-software.com>
9438 * m32c-tdep.c (make_regs, m32c_analyze_prologue)
9439 (m32c_skip_trampoline_code, m32c_m16c_address_to_pointer)
9440 (m32c_m16c_pointer_to_address): Separate code from declarations.
9442 2007-01-23 Nick Hudson <nick.hudson@dsl.pipex.com>
9444 * target.c (update_current_target): Correct typo.
9446 2007-01-22 Masaki Muranaka <monaka@monami-software.com>
9448 * xstormy16-tdep.c (xstormy16_skip_prologue): Separate code from a
9451 2007-01-11 Andrew Cagney <cagney@redhat.com>
9452 Daniel Jacobowitz <dan@codesourcery.com>
9453 Jan Kratochvil <jan.kratochvil@redhat.com>
9455 * dwarf2-frame.c (execute_cfa_program): New support of
9456 `DW_CFA_GNU_negative_offset_extended'.
9458 2007-01-21 Daniel Jacobowitz <dan@codesourcery.com>
9460 * NEWS: Mention flash support for "load" and new remote packets.
9462 2007-01-21 Markus Deuling <deuling@de.ibm.com>
9464 * breakpoint.c (delete_command): Skip redundant loop iterations.
9466 2007-01-21 Daniel Jacobowitz <dan@codesourcery.com>
9468 * gdbarch.sh (register_type): Update comment.
9469 * gdbarch.h: Regenerated.
9470 * arch-utils.c (generic_register_size): Call register_type.
9471 * ia64-tdep.c (ia64_extract_return_value): Likewise.
9472 * m32c-tdep.c (check_for_saved): Likewise.
9473 * mips-tdep.c (mips_print_register, print_gp_register_row)
9474 (mips_print_registers_info): Likewise.
9475 * sh-tdep.c (sh_pseudo_register_read, sh_pseudo_register_write):
9477 * sh64-tdep.c (sh64_pseudo_register_read, sh64_pseudo_register_write)
9478 (sh64_do_register, sh64_print_register)
9479 (sh64_media_print_registers_info): Likewise.
9480 * tui/tui-regs.c (tui_register_format): Likewise.
9482 2007-01-21 Daniel Jacobowitz <dan@codesourcery.com>
9484 * objfiles.h (ALL_PRIMARY_SYMTABS): Define.
9486 * ada-lang.c (symtab_for_sym, ada_lookup_symbol_list)
9487 (ada_lookup_symbol): Use ALL_PRIMARY_SYMTABS.
9488 * cp-support.c (make_symbol_overload_list_qualified): Likewise.
9489 * symtab.c (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
9490 (basic_lookup_transparent_type, find_pc_sect_symtab, search_symbols)
9491 (make_symbol_completion_list): Likewise.
9493 2007-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
9494 Daniel Jacobowitz <dan@codesourcery.com>
9496 * buildsym.c (end_symtab): Use preallocated symtab if available.
9497 Fill in SYMBOL_SYMTAB.
9498 * buildsym.h (struct subfile): Add symtab member.
9499 * dwarf2read.c (struct dwarf2_cu): Add line_header.
9500 (struct file_entry): Add symtab.
9501 (free_cu_line_header): New function.
9502 (read_file_scope): Use it. Save line_header in the cu. Process
9504 (add_file_name): Initialize new symtab member.
9505 (dwarf_decode_lines): Create symtabs for included files.
9506 (new_symbol): Set SYMBOL_SYMTAB.
9507 * symtab.c (lookup_symbol): Use SYMBOL_SYMTAB.
9508 (search_symbols): Likewise.
9509 * symtab.h (struct symbol): Add symtab member.
9510 (SYMBOL_SYMTAB): Define.
9512 2007-01-20 Daniel Jacobowitz <dan@codesourcery.com>
9514 * symfile.c (allocate_symtab): Remove INIT_EXTRA_SYMTAB_INFO.
9516 2007-01-20 Daniel Jacobowitz <dan@codesourcery.com>
9518 * arch-utils.c (show_endian): Correct reversed condition.
9520 2007-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
9522 * MAINTAINERS (Write After Approval): Add myself.
9524 2007-01-16 Daniel Jacobowitz <dan@codesourcery.com>
9525 Vladimir Prus <vladimir@codesourcery.com>
9527 Fix 'selected frame' varobjs.
9528 * varobj.c (struct varobj): Remove the error field.
9529 (varobj_set_value): Don't check var->error.
9530 (install_new_value): Don't set var->error.
9531 (varobj_update): Always pass the new value
9532 of the root via install_new_value.
9533 (create_child): Don't set error field.
9534 (new_variable): Likewise.
9535 (c_value_of_root): Always reevaluate the value
9536 of selected frame varobjs in the selected frame.
9537 Don't call reinit_frame_cache.
9539 2007-01-15 Joel Brobecker <brobecker@adacore.com>
9541 * source.c (_initialize_source): Improve the help text of
9542 the substitute-path commands.
9544 2007-01-14 Mark Kettenis <kettenis@gnu.org>
9546 * frv-tdep.c (frv_gdbarch_init, frv_register_name)
9547 (frv_breakpoint_from_pc, frv_gdbarch_adjust_breakpoint_address)
9548 (frv_skip_prologue): Remove prototypes.
9549 (frv_adjust_breakpoint_address): Renamed from
9550 frv_gdbarch_adjust_breakpoint_address.
9551 (frv_gdbarch_init): Adjust.
9553 2007-01-13 Mark Kettenis <kettenis@gnu.org>
9555 * gdbarch.sh (deprecated_extract_return_value)
9556 (deprecated_store_return_value): Remove.
9557 (extract_return_value, store_return_value): Remove default values.
9558 * gdbarch.c, gdbarch.h: Regenerate.
9559 * arch-utils.c, arch-utils.h (legacy_extract_return_value)
9560 (legacy_store_return_value): Remove.
9561 * regcache.c, regcache.h (deprecated_grub_regcache_for_registers):
9564 * mi/mi-main.c: Remove obsolete comment.
9566 * regcache.c, regcache.h (deprecated_register_bytes)
9567 (deprecated_read_register_bytes)
9568 (deprecated_write_register_bytes): Remove.
9570 * frame.c (get_frame_register_bytes, put_frame_register_bytes):
9571 Don't forget to move destination pointer.
9573 2007-01-01 Mark Kettenis <kettenis@gnu.org>
9575 * config/i386/nm-i386gnu.h (CHILD_PREPARE_TO_STORE): Remove.
9577 2007-01-11 Ulrich Weigand <uweigand@de.ibm.com>
9579 * spu-tdep.c (spu_analyze_prologue): Fix erroneous backtrace
9580 past entry function with recent newlib.
9582 2007-01-11 Vladimir Prus <vladimir@codesourcery.com>
9584 * gdb.texinfo (GDB/MI Variable Objects): Improve the
9585 introduction. Specify -var-update more exactly.
9587 2007-01-11 Daniel Jacobowitz <dan@codesourcery.com>
9589 * frame.c (get_prev_frame_1): Check PC_REGNUM before using it.
9591 2007-01-10 Jim Blandy <jimb@codesourcery.com>
9593 * MAINTAINERS (Global Maintainers): Ulrich Weigand has accepted
9594 the Global Maintainers' invitation to be a global maintainer.
9596 2007-01-10 Daniel Jacobowitz <dan@codesourcery.com>
9598 * infrun.c (singlestep_pc): New variable.
9599 (resume): Set singlestep_pc.
9600 (context_switch): Add a debugging message. Flush the frame cache.
9601 (handle_inferior_event): Add debugging messages. Handle thread
9602 hops when a software single step has completed. Let context_switch
9603 handle flushing the frame cache.
9605 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
9607 * NEWS: Mention target descriptions, "set tdesc filename",
9608 "unset tdesc filename", "show tdesc filename", and
9609 qXfer:features:read.
9610 * arch-utils.c (choose_architecture_for_target): New function.
9611 (gdbarch_info_fill): Call it.
9612 * target-descriptions.c (struct property): Make members non-const.
9613 (struct target_desc): Add arch member.
9614 (target_description_filename): New variable.
9615 (target_find_description): Try via XML first.
9616 (tdesc_architecture): New.
9617 (free_target_description, make_cleanup_free_target_description): New.
9618 (set_tdesc_property): Call xstrdup.
9619 (set_tdesc_architecture, tdesc_set_cmdlist, tdesc_show_cmdlist)
9620 (tdesc_unset_cmdlist, unset_tdesc_cmd, unset_tdesc_filename_cmd)
9621 (set_tdesc_cmd, show_tdesc_cmd, set_tdesc_filename_cmd)
9622 (show_tdesc_filename_cmd, _initialize_target_descriptions): New.
9623 * target-descriptions.h (tdesc_architecture)
9624 (make_cleanup_free_target_description, set_tdesc_architecture): New
9626 * Makefile.in (SFILES): Add xml-tdesc.c.
9627 (COMMON_OBS): Add xml-tdesc.o.
9628 (target-descriptions.o): Update.
9629 (xml-tdesc.o): New rule.
9630 * xml-tdesc.c, xml-tdesc.h: New files.
9631 * remote.c (PACKET_qXfer_features): New enum.
9632 (remote_protocol_features): Add qXfer:features:read.
9633 (remote_xfer_partial): Handle TARGET_OBJECT_AVAILABLE_FEATURES.
9634 (_initialize_remote): Register qXfer:features:read.
9635 * target.h (enum target_object): Add TARGET_OBJECT_AVAILABLE_FEATURES.
9636 * features/gdb-target.dtd: New file.
9638 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
9640 * copyright.sh: Clarify error.
9642 2007-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
9644 * symtab.c (matching_bfd_sections): Fix VMA matching for
9647 2007-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
9649 * minsyms.c (lookup_minimal_symbol_by_pc_section): Handle
9652 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
9654 Updated copyright notices for most files.
9656 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
9658 * copyright.sh (prunes): Add step-line.inp and step-line.c.
9660 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
9662 * configure.ac (DEBUGDIR_RELOCATABLE): Define for debugdir inside
9664 (TARGET_SYSTEM_ROOT_RELOCATABLE): Allow for exec_prefix being
9666 * configure, config.in: Regenerate.
9667 * defs.h (debug_file_directory): Declare.
9668 * main.c (captured_main): Canonicalize gdb_sysroot. Assume
9669 TARGET_SYSTEM_ROOT is defined. Initialize debug_file_directory and
9670 relocate it if DEBUGDIR_RELOCATABLE.
9671 * symfile.c (debug_file_directory): Make non-static.
9672 (find_separate_debug_file): Look for debug info for SYSROOT/PATH
9673 in DEBUGDIR/PATH if DEBUGDIR is inside SYSROOT.
9674 (_initialize_symfile): Don't initialize debug_file_directory here.
9676 2007-01-09 Jim Blandy <jimb@codesourcery.com>
9678 * score-tdep.c (score_push_dummy_call): Don't mix declarations and
9681 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
9683 * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Use
9684 frame_unwind_register to recurse.
9685 * alpha-tdep.c (alpha_sigtramp_frame_prev_register): Likewise.
9686 (alpha_heuristic_frame_prev_register): Likewise.
9687 * h8300-tdep.c (h8300_frame_prev_register): Likewise.
9688 * m32c-tdep.c (m32c_prev_register): Likewise.
9689 * frame.c (frame_register_unwind_location): Remove FIXME.
9691 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
9692 Eli Zaretskii <eliz@gnu.org>
9694 * copyright.sh: New file.
9696 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
9698 * configure.ac: Check for XML_StopParser.
9699 * xml-support.c (gdb_xml_body_text): Check for an error.
9700 (gdb_xml_start_element_wrapper): Conditionalize call to XML_StopParser.
9701 (gdb_xml_end_element_wrapper): Likewise.
9702 * config.in, configure: Regenerated.
9704 2007-01-08 Daniel Jacobowitz <dan@codesourcery.com>
9706 * varobj.c (install_new_value): Always update print_value.
9707 (value_get_print_value): Immediately return NULL for missing
9710 2007-01-08 Jim Blandy <jimb@codesourcery.com>
9712 * configure.ac: Tighten pattern for extracting value of
9713 DEPRECATED_TM_FILE from the target makefile fragment.
9714 * configure: Regenerated.
9716 2007-01-08 Daniel Jacobowitz <dan@codesourcery.com>
9718 * linux-nat.c (struct simple_pid_list): Add status.
9719 (add_to_pid_list): Record the PID's status.
9720 (linux_record_stopped_pid): Likewise. Make static.
9721 (pull_pid_from_list): Return the saved status.
9722 (linux_nat_handle_extended): Deleted.
9723 (linux_handle_extended_wait): Combine with linux_nat_handle_extended.
9724 Make static. Handle non-SIGSTOP for a new thread's first signal.
9725 (flush_callback): Handle unexpected pending signals.
9726 (linux_nat_wait): Update calls to changed functions.
9727 * linux-nat.h (linux_record_stopped_pid, linux_handle_extended_wait):
9728 Remove prototypes for newly static functions.
9730 2007-01-08 Ulrich Weigand <uweigand@de.ibm.com>
9732 * gdbarch.sh (value_from_register): New gdbarch function.
9733 * gdbarch.c, gdbarch.h: Regenerate.
9734 * findvar.c (default_value_from_register): New function.
9735 (value_from_register): Use gdbarch_value_from_register.
9736 * value.h (default_value_from_register): Declare.
9737 * spu-tdep.c (spu_convert_register_p, spu_register_to_value,
9738 spu_value_to_register): Remove.
9739 (spu_value_from_register): New function.
9740 (spu_gdbarch_init): Do not call set_gdbarch_convert_register_p,
9741 set_gdbarch_register_to_value, set_gdbarch_value_to_register.
9742 Call set_gdbarch_value_from_register.
9743 * s390-tdep.c (s390_convert_register_p, s390_register_to_value,
9744 s390_value_to_register): Remove.
9745 (s390_value_from_register): New function.
9746 (s390_gdbarch_init): Do not call set_gdbarch_convert_register_p,
9747 set_gdbarch_register_to_value, set_gdbarch_value_to_register.
9748 Call set_gdbarch_value_from_register.
9750 2007-01-08 Daniel Jacobowitz <dan@codesourcery.com>
9752 * NEWS: Add "set sysroot" and "show sysroot".
9753 * solib.c (solib_absolute_prefix): Delete. Replace
9754 all uses with gdb_sysroot.
9755 (_initialize_solib): Add "set sysroot" and "show sysroot".
9756 Make "solib-absolute-prefix" an alias to it.
9758 2007-01-08 Ulrich Weigand <uweigand@de.ibm.com>
9760 * frame.c (get_frame_register_bytes): New function.
9761 (put_frame_register_bytes): Likewise.
9762 * frame.h (get_frame_register_bytes): Declare.
9763 (put_frame_register_bytes): Likewise.
9764 * findvar.c (value_from_register): Always construct lval_register
9765 values. Use get_frame_register_bytes.
9766 * valops.c (value_assign): Use get_frame_register_bytes and
9767 put_frame_register_bytes.
9769 2007-01-08 Jim Blandy <jimb@codesourcery.com>
9771 * MAINTAINERS: Update Stan Shebs' email address.
9773 2007-01-07 Joel Brobecker <brobecker@adacore.com>
9775 * ada-lang.c (is_known_support_routine): Improve the implementation.
9777 2007-01-06 Joel Brobecker <brobecker@adacore.com>
9779 * ada-lang.c: Add include of source.h.
9780 (is_known_support_routine): Improve the check verifying that the file
9781 associated to this frame exists.
9782 * Makefile.in (ada-lang.o): Add dependency on source.h.
9784 2007-01-07 Jim Blandy <jimb@codesourcery.com>
9786 * ax-general.c (ax_const_l): Select proper opcode for the given
9789 2007-01-05 Vladimir Prus <vladimir@codesourcery.com>
9791 * varobj.c (c_value_of_root): Don't select frame if variable
9792 object is out of scope.
9794 2007-01-05 Nick Roberts <nickrob@snap.net.nz>
9796 * varobj.c (struct varobj): New member print_value.
9797 (install_new_value): Compare last printed value with current one
9798 instead of contents.
9799 (new_variable): Initialize var->print_value to NULL.
9800 (free_variable): Free var->print_value.
9801 (value_get_print_value): New function derived from
9802 c_value_of_variable.
9803 (c_value_of_variable): Use value_get_print_value.
9805 2007-01-05 Joel Brobecker <brobecker@adacore.com>
9807 * i386-tdep.c (i386_analyze_stack_align): Add comment.
9809 2007-01-05 Joel Brobecker <brobecker@adacore.com>
9811 * NEWS: Add entries for new catch commands.
9813 2007-01-05 Joel Brobecker <brobecker@adacore.com>
9815 * dwarf2read.c (partial_die_info): Add field has_byte_size.
9816 (add_partial_symbol): Correct identification of external references.
9817 (process_structure_scope): Likewise.
9818 (read_partial_die): Handle DW_AT_byte_size attribute.
9820 2007-01-05 Daniel Jacobowitz <dan@codesourcery.com>
9822 * xml-support.c (gdb_xml_end_element): Remove wrong backslashes.
9824 2007-01-05 Nick Roberts <nickrob@snap.net.nz>
9826 * varobj.c (get_type_deref): Fix variable objects for references to
9829 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
9831 * symtab.c (find_pc_sect_psymtab): Add comments. Handle psymtabs
9834 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
9836 * memory-map.c (struct_memory_map_parsing_data): Remove most
9837 members. Make property_name an array.
9838 (free_memory_map_parsing_data, memory_map_start_element)
9839 (memory_map_end_element, memory_map_character_data): Delete.
9840 (memory_map_start_memory, memory_map_end_memory)
9841 (memory_map_start_property, memory_map_end_property): New functions.
9842 (property_attributes, memory_children, memory_type_enum)
9843 (memory_attributes, memory_map_children, memory_map_elements): New.
9844 (parse_memory_map): Rewrite.
9845 * xml-support.c (debug_xml): New.
9846 (xml_get_required_attribute, xml_get_integer_attribute)
9847 (xml_get_enum_value, free_xml_parser, make_cleanup_free_xml_parser):
9849 (struct scope_level, struct gdb_xml_parser, gdb_xml_body_text)
9850 (gdb_xml_debug, gdb_xml_error, gdb_xml_values_cleanup)
9851 (gdb_xml_start_element, gdb_xml_start_element_wrapper)
9852 (gdb_xml_end_element, gdb_xml_end_element_wrapper, gdb_xml_cleanup)
9853 (gdb_xml_create_parser_and_cleanup, gdb_xml_parse)
9854 (gdb_xml_parse_ulongest, gdb_xml_parse_attr_ulongest)
9855 (gdb_xml_parse_attr_enum, show_debug_xml, _initialize_xml_support):
9857 * xml-support.h (struct gdb_xml_value, gdb_xml_attribute_handler)
9858 (enum gdb_xml_attribute_flag, struct gdb_xml_attribute)
9859 (enum gdb_xml_element_flag, struct gdb_xml_element)
9860 (gdb_xml_element_start_handler, gdb_xml_element_end_handler)
9861 (struct gdb_xml_enum): New.
9862 (gdb_xml_create_parser_and_cleanup, gdb_xml_parse, gdb_xml_debug)
9863 (gdb_xml_error, gdb_xml_parse_attr_ulongest)
9864 (gdb_xml_parse_attr_enum, gdb_xml_parse_ulongest): New prototypes.
9865 (xml_get_required_attribute, xml_get_integer_attribute)
9866 (xml_get_enum_value, make_cleanup_free_xml_parser): Delete prototypes.
9867 * Makefile.in (xml_support_h, xml-support.o): Update.
9869 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
9871 * Makefile.in (eval.o): Update dependencies.
9872 * eval.c: Include "ui-out.h" and "exceptions.h".
9873 (evaluate_subexp_standard): Use TRY_CATCH around value_of_variable.
9874 Use value_zero if an error occurs when avoiding side effects.
9875 * varobj.c (c_value_of_root): Initialize new_val.
9877 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
9879 * varobj.c (varobj_list_children): Stop if the number of children is
9881 (c_number_of_children):
9883 2007-01-04 Mark Kettenis <kettenis@gnu.org>
9885 * alpha-tdep.c (alpha_register_name): Use ARRAY_SIZE.
9886 (alpha_read_insn, alpha_skip_prologue, alpha_heuristic_proc_start)
9887 (alpha_heuristic_frame_unwind_cache, alpha_next_pc)
9888 (alpha_gdbarch_init): Use ALPHA_INSN_SIZE, ALPHA_REGISTER_SIZE and
9889 sizeof, instead of hardcoded constants.
9891 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
9893 * CONTRIBUTE: Use sourceware.org.
9895 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
9897 * buildsym.c (start_subfile): Handle producer.
9898 (record_producer): New function.
9899 * buildsym.h (struct subfile): Include producer.
9900 (record_producer): New prototype.
9901 * dwarf2-frame.c (struct dwarf2_cie): Add version and augmentation.
9902 (struct dwarf2_frame_state): Add armcc_cfa_offsets_sf and
9903 armcc_cfa_offsets_reversed.
9904 (execute_cfa_program): Handle armcc_cfa_offsets_sf.
9905 (dwarf2_frame_find_quirks): New function.
9906 (dwarf2_frame_cache): Call it. Handle armcc_cfa_offsets_reversed.
9907 (decode_frame_entry_1): Record the CIE version. Record the
9908 augmentation. Skip armcc augmentations.
9909 * dwarf2read.c (read_file_scope): Save the producer.
9910 * symtab.h (struct symtab): Rename unused version member to
9913 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
9915 * configure.ac (build_warnings): Use -Wall and
9916 -Wdeclaration-after-statement.
9917 * configure: Regenerated.
9919 2007-01-04 Vladimir Prus <vladimir@codesourcery.com>
9921 Simplify access to variours properties of child
9922 variable objects in C.
9923 * varobj.c (value_struct_element_index): New function.
9924 (c_describe_child): New function.
9925 (c_name_of_child, c_value_of_child)
9926 (c_type_of_child): Rewrite to use c_describe_child.
9928 2007-01-04 Vladimir Prus <vladimir@codesourcery.com>
9931 * varobj.c: Include "vec.h".
9932 (varobj_p): New typedef, declare vector of those.
9933 (struct varobj): Use vector for the 'children' member.
9934 (child_exists): Remove.
9935 (save_child_in_parent): Remove.
9936 (remove_child_from_parent): Remove.
9937 (struct varobj_child): Remove.
9938 (struct vstack): Remove.
9939 (vpush, vpop): Remove.
9940 (varobj_list_children): Adjust to work work vector.
9941 (varobj_update): Likewise. Use vectors for
9942 working stack and result.
9943 (delete_variable_1): Likewise.
9944 * Makefile.in (varobj.o): Update dependencies.
9946 2007-01-04 Vladimir Prus <vladimir@codesourcery.com>
9948 Port from Apple's version.
9950 * varobj.c (type_changeable): Rename to...
9951 (varobj_value_is_changeable_p): ...this. Adjust all callers.
9952 (is_root_p): New function. Use it everywhere.
9954 2007-01-04 Jim Blandy <jimb@codesourcery.com>
9956 * glibc-tdep.c (glibc_skip_solib_resolver): Look for '_dl_fixup',
9959 2007-01-04 Joel Brobecker <brobecker@adacore.com>
9961 * hpread.c (hpread_start_psymtab): Remove unnecessary extern.
9963 2007-01-04 Joel Brobecker <brobecker@adacore.com>
9965 * hpread.c (hpread_type_lookup): Fix compilation failure.
9967 2007-01-04 Qinwei <qinwei@sunnorth.com.cn>
9969 * NEWS: New port to S+core.
9970 * MAINTAINERS (Write After Approval, Responsible Maintainers):
9973 * Makefile.in: Add dependencies for S+core files.
9974 * configure.tgt (score*, score-*-*): Add S+core target.
9975 * config/score/embed.mt: New file.
9976 * score-tdep.c: New file.
9977 * score-tdep.h: New file.
9979 2007-01-04 Joel Brobecker <brobecker@adacore.com>
9981 * ada-lang.c (ada_evaluate_subexp) [OP_TYPE]: Return a value with
9982 the appropriate type rather than a bogus void type.
9984 2007-01-04 Joel Brobecker <brobecker@adacore.com>
9986 * ada-lang.h (ada_find_printable_frame): Remove.
9987 (ada_exception_catchpoint_p, ada_decode_exception_location)
9988 (ada_decode_assert_location): Add declaration.
9989 * ada-lang.c: Add include of annotate.h and valprint.h.
9990 (exception_catchpoint_kind): New enum.
9991 (function_name_from_pc, is_known_support_routine)
9992 (ada_find_printable_frame, ada_unhandled_exception_name_addr)
9993 (ada_exception_name_addr_1, ada_exception_name_addr)
9994 (print_it_exception, print_one_exception, print_mention_exception)
9995 (print_it_catch_exception, print_one_catch_exception)
9996 (print_mention_catch_exception, catch_exception_breakpoint_ops)
9997 (print_it_catch_exception_unhandled)
9998 (print_one_catch_exception_unhandled)
9999 (print_mention_catch_exception_unhandled, print_it_catch_assert)
10000 (print_one_catch_assert, print_mention_catch_assert)
10001 (ada_exception_catchpoint_p, error_breakpoint_runtime_sym_not_found)
10002 (ada_get_next_arg, catch_ada_exception_command_split)
10003 (ada_exception_sym_name, ada_exception_sym_name)
10004 (ada_exception_breakption_ops, ada_exception_catchpoint_cond_string)
10005 (ada_parse_catchpoint_condition, ada_exception_sal)
10006 (ada_decode_exception_location)
10007 (ada_decode_assert_location): New function.
10008 (catch_exception_unhandled_breakpoint_ops): New global variable.
10009 (catch_assert_breakpoint_ops): New global variable.
10010 * breakpoint.c: Add include of ada-lang.h.
10011 (print_one_breakpoint): Do not print the condition for Ada
10012 exception catchpoints.
10013 (create_ada_exception_breakpoint): New function.
10014 (catch_ada_exception_command, catch_assert_command): New function.
10015 (catch_command_1): Add support for the new "catch exception" and
10016 "catch assert" commands.
10017 (_initialize_breakpoint): Add help description for the new catch
10019 * Makefile.in (ada-lang.o): Add dependency on annotate.h and
10021 (breakpoint.o): Add dependency on ada-lang.h.
10023 2007-01-03 Pedro Alves <pedro_alves@portugalmail.pt>
10025 * coffread.c (cs_to_section): If bfd_section is found, always
10026 return its section index.
10027 (coff_symtab_read): Determine the minimal_symbol_type using the
10030 2007-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10031 Daniel Jacobowitz <dan@codesourcery.com>
10033 * Makefile.in (top.o): Update.
10034 * top.c (gdb_readline_wrapper_done, gdb_readline_wrapper_result)
10035 (saved_after_char_processing_hook, gdb_readline_wrapper_line)
10036 (struct gdb_readline_wrapper_cleanup, gdb_readline_wrapper_cleanup):
10038 (gdb_readline_wrapper): Rewrite to use asynchronous readline.
10040 2007-01-03 Mark Kettenis <kettenis@gnu.org>
10042 * arm-linux-tdep.c (arm_linux_extract_return_value): Remove.
10043 (arm_linux_init_abi): Don't set deprecated_extract_return_value.
10045 2007-01-03 Daniel Jacobowitz <dan@codesourcery.com>
10047 * ada-lang.c (find_struct_field): Initialize *byte_offset_p.
10048 * breakpoint.c (do_enable_breakpoint): Ignore both mem_cnt and i.
10049 * c-typeprint.c (c_type_print_varspec_suffix): Don't test length
10050 greater than or equal to zero.
10051 * m2-typeprint.c (m2_array): Likewise.
10052 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
10053 * gdbtypes.c (copy_type_recursive): Correct == typo.
10054 * i386-tdep.c (i386_skip_prologue): Remove stray semicolon.
10055 * linux-nat.c (linux_nat_info_proc_cmd): Don't compare a pointer
10057 * macroscope.c (sal_macro_scope): Don't name a local variable "main".
10058 (default_macro_scope): Remove unused variable.
10059 * prologue-value.h (pv_area_find_reg): Don't name an argument
10061 * remote-fileio.c (remote_fio_func_map): Add missing braces.
10062 * remote.c (sigint_remote_twice_token, sigint_remote_token): Change
10064 (cleanup_sigint_signal_handler): Remove casts.
10065 * valprint.c (val_print): Use a volatile local for the modified
10067 * varobj.c (languages): Remove extra array dimension.
10068 (varobj_create): Correct access to languages array.
10069 * mi/mi-cmd-break.c (mi_cmd_break_insert, mi_cmd_break_watch): Add
10071 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise.
10072 * mi/mi-cmd-env.c (mi_cmd_env_path, mi_cmd_env_dir): Likewise.
10073 * mi/mi-getopt.c (mi_valid_noargs): Likewise.
10074 * mi/mi-main.c (mi_cmd_data_read_memory): Likewise.
10075 (mi_cmd_data_write_memory): Likewise.
10076 * signals/signals.c (target_signal_to_string): Cast to int before
10078 * tui/tui-layout.c (init_and_make_win): Take and return a void *.
10079 Update all callers.
10081 2007-01-03 Daniel Jacobowitz <dan@codesourcery.com>
10083 * NEWS: Mention pointer to member improvements.
10084 * Makefile.in (gnu-v3-abi.o): Delete special rule.
10085 (eval.o, gnu-v3-abi.o, ia64-tdep.o): Update.
10086 * ada-valprint.c (ada_print_scalar): Update for new type codes.
10087 * c-typeprint.c (c_print_type): Update for new type codes.
10088 (c_type_print_varspec_prefix, c_type_print_varspec_suffix)
10089 (c_type_print_base): Likewise.
10090 (c_type_print_args): Rewrite.
10091 * c-valprint.c (c_val_print): Update for new type codes. Remove
10092 support for references to members. Treat methods like functions.
10093 * cp-abi.c (cplus_print_method_ptr, cplus_method_ptr_size)
10094 (cplus_make_method_ptr, cplus_method_ptr_to_value): New.
10095 * cp-abi.h (cplus_print_method_ptr, cplus_method_ptr_size)
10096 (cplus_make_method_ptr, cplus_method_ptr_to_value): New prototypes.
10097 (struct cp_abi_ops): Add corresponding members.
10098 * cp-valprint.c (cp_print_class_method): Delete.
10099 (cp_find_class_member): New function.
10100 (cp_print_class_member): Use it. Simplify support for bogus
10102 * dwarf2read.c (quirk_gcc_member_function_pointer): Use
10103 lookup_methodptr_type.
10104 (read_tag_ptr_to_member_type): Likewise, and lookup_memberptr_type.
10105 * eval.c (evaluate_subexp_standard): Implement EVAL_SKIP for
10106 OP_SCOPE. Update call to value_aggregate_elt. Rewrite member
10108 (evaluate_subexp_for_address): Handle OP_SCOPE explicitly. Handle
10109 references returned by user defined operators.
10110 * f-typeprint.c (f_print_type, f_type_print_varspec_prefix)
10111 (f_type_print_varspec_suffix): Remove support for member pointers.
10112 * gdbtypes.c (lookup_memberptr_type): Renamed from lookup_member_type
10114 (smash_to_memberptr_type): Likewise, from smash_to_member_type.
10115 (lookup_methodptr_type): New.
10116 (rank_one_type): Adjust for TYPE_CODE_MEMBERPTR.
10117 (recursive_dump_type): Update for new types.
10118 * gdbtypes.h (enum type_code): Replace TYPE_CODE_MEMBER with
10119 TYPE_CODE_MEMBERPTR and TYPE_CODE_METHODPTR.
10120 (lookup_memberptr_type, lookup_methodptr_type)
10121 (smash_to_memberptr_type): New prototypes.
10122 (smash_to_method_type): Formatting fix.
10123 (lookup_member_type, smash_to_member_type): Delete prototypes.
10124 * gnu-v3-abi.c (gnuv3_get_vtable, gnuv3_get_virtual_fn): New.
10125 Do not rely on debug information for the vptr or the method's
10126 enclosing type. Handle function descriptors for IA64.
10127 (gnuv3_virtual_fn_field): Rewrite using the new functions.
10128 (gnuv3_find_method_in, gnuv3_print_method_ptr)
10129 (gnuv3_method_ptr_size, gnuv3_make_method_ptr)
10130 (gnuv3_method_ptr_to_value): New.
10131 (init_gnuv3_ops): Set new members of gnu_v3_abi_ops.
10132 * hpread.c (hpread_type_lookup): Update for new types.
10133 * infcall.c (value_arg_coerce): Likewise.
10134 * m2-typeprint.c (m2_print_type): Remove explicit support
10135 for member pointers.
10136 * m2-valprint.c (m2_val_print): Likewise.
10137 * p-typeprint.c (pascal_type_print_varspec_prefix)
10138 (pascal_type_print_varspec_suffix, pascal_type_print_base): Likewise.
10139 * p-valprint.c (pascal_val_print): Likewise.
10140 (pascal_object_print_class_method, pascal_object_print_class_member):
10142 * p-lang.h (pascal_object_print_class_method)
10143 (pascal_object_print_class_member): Delete prototypes.
10144 * stabsread.c (read_type): Update for new types.
10145 * typeprint.c (print_type_scalar): Likewise.
10146 * valops.c (value_struct_elt_for_reference, value_namespace_elt)
10147 (value_maybe_namespace_elt, value_aggregate_elt): Add want_address
10148 argument. Construct a pointer to member if the address of a
10149 function or data member is requested.
10150 (value_cast_pointers): Don't modify the input value.
10151 (value_cast): Adjust pointer to member handling for new types.
10152 Allow null pointer to member constants. Don't modify the input
10154 (value_ind): Remove pointer to member check. Handle function
10155 descriptors for function pointers.
10156 (value_struct_elt, value_find_oload_method_list, check_field):
10157 Remove pointer to member checks.
10158 * value.c (unpack_long): Allow pointers to data members.
10159 (value_from_longest): Allow member pointers.
10160 * value.h (value_aggregate_elt): Add want_address.
10161 * varobj.c (c_variable_editable): Remove check for members.
10162 * gdbarch.sh: Add vtable_function_descriptors and vbit_in_delta.
10163 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Handle descriptors
10165 (ia64_gdbarch_init): Call set_gdbarch_vtable_function_descriptors.
10166 * c-lang.h (cp_print_class_method): Delete prototype.
10167 * arm-tdep.c (arm_gdbarch_init): Call set_gdbarch_vbit_in_delta.
10168 * mips-tdep.c (mips_gdbarch_init): Likewise.
10169 * gdbarch.c, gdbarch.h: Regenerated.
10171 2007-01-01 Mark Kettenis <kettenis@gnu.org>
10173 * rs6000-tdep.c (rs6000_use_struct_convention)
10174 (rs6000_extract_return_value, rs6000_store_return_value)
10175 (rs6000_extract_struct_value_address): Remove.
10176 (rs6000_return_value): New function.
10177 (rs6000_gdbarch_init): Don't set deprecated_extract_return_value,
10178 store_return_value, deprecated_extract_struct_value_address and
10179 deprecated_use_struct_convention. Use rs6000_return_value
10182 2007-01-02 Nick Roberts <nickrob@snap.net.nz>
10184 * mi/mi-cmds.c (mi_cmds): Remove entries for -display-delete,
10185 -display-disable, -display-enable, -display-insert and
10188 2007-01-01 Joel Brobecker <brobecker@adacore.com>
10190 * breakpoint.c (remove_breakpoint): Remove dead code.
10192 2007-01-01 Nick Roberts <nickrob@snap.net.nz>
10194 * varobj.c: Include block.h.
10195 (c_value_of_root): Check scope within nested statements.
10197 2007-01-01 Mark Kettenis <kettenis@gnu.org>
10199 * mi/mi-main.c (mi_cmd_data_write_register_values): Use
10200 regcache_cooked_write_signed instead of
10201 deprecated_write_register_bytes.
10203 2007-01-01 Joel Brobecker <brobecker@adacore.com>
10205 * config/djgpp/fnchange.lst: Add entry for ChangeLog-2006.
10207 2007-01-01 Joel Brobecker <brobecker@adacore.com>
10209 Followed the Start of New Year Procedure:
10210 * ChangeLog-2006: New file, containing all the entries for 2006.
10211 * ChangeLog: Removed all 2006 entries, and changed the reference
10212 to the previous ChangeLog to point to ChangeLog 2006.
10213 * top.c (print_gdb_version): Update copyright year.
10215 2007-01-01 Mark Kettenis <kettenis@gnu.org>
10217 * Makefile.in (remote-sds.o): Remove.
10218 * remote-sds.c: Delete.
10220 For older changes see ChangeLog-2006.
10226 version-control: never