2007-07-03 Paul Gilliam <pgilliam@us.ibm.com>
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2007-07-03 Paul Gilliam <pgilliam@us.ibm.com>
2 Thiago Bauermann <bauerman@br.ibm.com>
3 Joseph S. Myers <joseph@codesourcery.com>
4 Daniel Jacobowitz <dan@codesourcery.com>
5
6 * remote.c (remote_check_symbols): Use
7 gdbarch_convert_from_func_ptr_addr.
8 * infcall.c (find_function_addr): Handle function descriptors
9 without debugging information.
10 * ppc-linux-tdep.c (ppc_linux_convert_from_func_ptr_addr): Renamed
11 from ppc64_linux_convert_from_func_ptr_addr. Handle -msecure-plt.
12 (ppc_linux_init_abi): Always set convert_from_func_ptr_addr.
13 * solib-svr4.c (solib_break_names): Remove "._dl_debug_state".
14 (bfd_lookup_symbol): Do not take a SECT_FLAGS argument. Always
15 allow SEC_CODE and SEC_DATA.
16 (enable_break): Update calls. Pass current_target to solib_add.
17 Use gdbarch_convert_from_func_ptr_addr.
18
19 2007-07-03 Ilko Iliev <iliev@ronetix.at>
20 Daniel Jacobowitz <dan@codesourcery.com>
21
22 * symfile.c (print_transfer_performance): Avoid integer overflow.
23 Use larger units.
24
25 2007-07-03 Markus Deuling <deuling@de.ibm.com>
26
27 * cp-namespace.c (lookup_symbol_file): Add block to
28 lookup_symbol_global call.
29 * Makefile.in (solist_h): Add dependency on symtab header.
30 (symtab.o): Add dependency on solist header.
31 * solib.c (solib_global_lookup): New function.
32 * solib-svr4.c (scan_dyntag): Likewise.
33 (elf_locate_base): Call helper routine scan_dyntag.
34 (elf_lookup_lib_symbol): New function.
35 (_initialize_svr4_solib): Add elf_lookup_lib_symbol to svr4_so_ops.
36 * solist.h (symtab.h): New include.
37 (struct target_so_ops): New member lookup_lib_global_symbol.
38 (solib_global_lookup): New prototype.
39 * symtab.c: New include solist.h.
40 (lookup_objfile_from_block): New function.
41 (lookup_global_symbol_from_objfile): New function.
42 (basic_lookup_symbol_nonlocal): Add block to lookup_symbol_global call.
43 (lookup_symbol_global): Call library-specific lookup procedure.
44 * symtab.h (lookup_global_symbol_from_objfile): New prototype.
45
46 * NEWS: Document framework.
47
48 2007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
49
50 * target-descriptions.c (tdesc_create_reg): Do not set reg->type
51 to NULL.
52
53 * cli/cli-script.c (build_command_line): Update NULL check.
54
55 2007-07-02 Michael Snyder <msnyder@access-company.com>
56
57 * p-exp.y (yylex): Memory leak, 'uptokstart' must be freed (Coverity).
58
59 2007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
60
61 * Makefile.in (XMLFILES): Add library-list.dtd.
62 (ALLDEPFILES): Add solib-target.o.
63 (solib-target.o): New rule.
64 * remote.c (PACKET_qXfer_libraries): New constant.
65 (remote_protocol_features): Add qXfer:libraries:read.
66 (remote_wait): Recognize library stop replies.
67 (remote_async_wait): Likewise. Fix typo.
68 (remote_xfer_partial): Handle TARGET_OBJECT_LIBRARIES.
69 (init_remote_async_ops): Fix typo.
70 (_initialize_remote): Register "set remote library-info-packet".
71 * solib-som.c (som_current_sos): Set addr_low and addr_high.
72 * solib-target.c: New file.
73 * solib.c (solib_map_sections): Use addr_low and addr_high instead
74 of textsection.
75 (info_sharedlibrary_command): Likewise.
76 (solib_add_library, solib_remove_library): New.
77 * solist.h (struct so_list): Replace textsection with addr_low and
78 addr_high.
79 * target.h (enum target_object): Add TARGET_OBJECT_LIBRARIES.
80 * NEWS: Describe new qXfer:libraries:read and shared library
81 event support.
82 * features/library-list.dtd: New.
83
84 2007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
85
86 * infrun.c (inferior_ignoring_startup_exec_events): Delete.
87 (start_remote): Use STOP_QUIETLY_REMOTE.
88 (handle_inferior_event): Do not condition TARGET_WAITKIND_LOADED
89 support on a SOLIB_ADD definition. Update breakpoints_inserted.
90 Update to match shared library event breakpoint support. Only
91 resume if appropriate. Handle STOP_QUIETLY_REMOTE.
92 (normal_stop): Handle TARGET_WAITKIND_LOADED.
93 * fork-child.c (startup_inferior): Do not set
94 inferior_ignoring_startup_exec_events
95 * inferior.h (inferior_ignoring_startup_exec_events): Delete
96 declaration.
97 (enum stop_kind): Improve documentation. Add STOP_QUIETLY_REMOTE.
98
99 2007-07-02 Markus Deuling <deuling@de.ibm.com>
100
101 * breakpoint.c (insert_bp_location): Remove dead code
102 (DISABLE_UNSETTABLE_BREAK).
103 (disable_breakpoints_in_shlibs)
104 (disable_breakpoints_in_unloaded_shlib): Likewise (comment).
105
106 2007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
107
108 * breakpoint.c (reattach_breakpoints): Do not use remove_breakpoint.
109 Call insert_bp_location.
110
111 2007-07-01 H.J. Lu <hongjiu.lu@intel.com>
112
113 * core-regset.c (fetch_core_registers): Work around gcc 3.4
114 alias warning bug.
115
116 2007-07-01 Daniel Jacobowitz <dan@codesourcery.com>
117
118 * minsyms.c (lookup_minimal_symbol_by_pc_section): Search fewer
119 objfiles.
120
121 2007-07-01 Daniel Jacobowitz <dan@codesourcery.com>
122
123 * top.c (gdb_readline_wrapper_line): Call rl_callback_handler_remove.
124 (struct gdb_readline_wrapper_cleanup): Remove prompt_orig.
125 (gdb_readline_wrapper_cleanup): Do not reset the prompt.
126 (gdb_readline_wrapper): Do not save the prompt. Pass our prompt
127 to display_gdb_prompt.
128
129 2007-07-01 Daniel Jacobowitz <dan@codesourcery.com>
130
131 PR symtab/2161
132 * target.c (memory_xfer_partial): Do not continue past targets with
133 all memory.
134
135 2007-06-30 Andreas Schwab <schwab@suse.de>
136
137 * m68k-tdep.c (m68k_ps_type): New.
138 (m68k_init_types): New.
139 (m68k_register_type): Use m68k_ps_type for PS register.
140 (_initialize_m68k_tdep): Call m68k_init_types.
141
142 * m68k-tdep.c (m68k_gdbarch_init): Don't infer coldfire flavour
143 from the generic m68k arch.
144
145 2007-06-28 Michael Snyder <msnyder@access-company.com>
146
147 * m2-typeprint.c (m2_print_type): Move pointer ref after null test
148 (Coverity).
149
150 * linux-thread-db.c (thread_db_get_thread_local_address): Add
151 gdb_assert before using return value of find_thread_pid (Coverity).
152
153 * source.c (unset_substitute_path_command): Plug leak (Coverity).
154
155 * cli/cli-script.c (build_command_line): Add null pointer guard
156 (Coverity).
157
158 2007-06-27 Daniel Jacobowitz <dan@codesourcery.com>
159
160 * linux-thread-db.c (thread_db_attach): Delete.
161 (thread_db_detach): Typo fix. Call target_mourn_inferior
162 instead of fixing up proc_handle.
163 (have_threads_callback, have_threads): New functions.
164 (thread_db_wait): Remove dead proc_handle.pid check. Only
165 translate PTIDs if we have registered threads. Check for new
166 threads if we have none.
167 (thread_db_create_inferior, thread_db_post_startup_inferior): Delete.
168 (find_new_threads_callback): Only enable event reporting if TID == 0.
169 (same_ptid_callback): New.
170 (thread_db_get_thread_local_address): Check for new threads.
171 (init_thread_db_ops): Don't set to_attach, to_create_inferior,
172 or to_post_startup_inferior.
173
174 2007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
175
176 * infrun.c (adjust_pc_after_break): Do not assume software single-step
177 is always active if SOFTWARE_SINGLE_STEP_P is true.
178 (resume): Use gdbarch_software_single_step[_p] instead of
179 SOFTWARE_SINGLE_STEP[_P].
180 (handle_inferior_event): Do not check for SOFTWARE_SINGLE_STEP_P.
181
182 * gdbarch.sh (software_single_step): Remove target macro.
183 * gdbarch.h, gdbarch.c: Regenerate.
184
185 2007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
186
187 * gdbarch.sh (gdbarch_swap_ftype, deprecated_register_gdbarch_swap,
188 DEPRECATED_REGISTER_GDBARCH_SWAP): Remove.
189 (struct gdbarch_swap, struct gdbarch_swap_registration,
190 struct gdbarch_swap_registry, gdbarch_swap_registry,
191 current_gdbarch_swap_init_hack, current_gdbarch_swap_out_hack,
192 current_gdbarch_swap_in_hack): Remove.
193 (find_arch_by_info): Do not call current_gdbarch_swap_init_hack.
194 (gdbarch_find_by_info): Do not call current_gdbarch_swap_in_hack
195 and current_gdbarch_swap_out_hack, update current_gdbarch directly.
196 (deprecated_current_gdbarch_select_hack): Likewise.
197 * gdbarch.h, gdbarch.c: Regenerate.
198
199 2007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
200
201 * infrun.c (clear_proceed_status): Clean up stop_registers.
202 (normal_stop): Allocate regcache for stop_registers.
203 (struct inferior_status): Remove stop_registers member.
204 (save_inferior_status): Do not save stop_registers.
205 (restore_inferior_status): Do not restore stop_registers.
206 (discard_inferior_status): Do not discard stop_registers.
207 (build_infrun): Remove.
208 (_initialize_infrun): Do not swap stop_registers.
209
210 2007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
211
212 * remote.c (remote_address_masked): If remote_address_size is zero,
213 default to target address size.
214 (build_remote_gdbarch_data): Remove.
215 (_initialize_remote): Do not swap remote_address_size.
216
217 2007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
218
219 * gdbtypes.h (builtin_type_true_char, builtin_type_void,
220 builtin_type_char, builtin_type_short, builtin_type_int,
221 builtin_type_long, builtin_type_signed_char,
222 builtin_type_unsigned_char, builtin_type_unsigned_short,
223 builtin_type_unsigned_int, builtin_type_unsigned_long,
224 builtin_type_float, builtin_type_double, builtin_type_long_double,
225 builtin_type_complex, builtin_type_double_complex, builtin_type_string,
226 builtin_type_bool, builtin_type_long_long,
227 builtin_type_unsigned_long_long, builtin_type_void_data_ptr,
228 builtin_type_void_func_ptr, builtin_type_CORE_ADDR): Replace global
229 variable declaration with compatibility macro.
230 * gdbtypes.c (builtin_type_true_char, builtin_type_void,
231 builtin_type_char, builtin_type_short, builtin_type_int,
232 builtin_type_long, builtin_type_signed_char,
233 builtin_type_unsigned_char, builtin_type_unsigned_short,
234 builtin_type_unsigned_int, builtin_type_unsigned_long,
235 builtin_type_float, builtin_type_double, builtin_type_long_double,
236 builtin_type_complex, builtin_type_double_complex, builtin_type_string,
237 builtin_type_bool, builtin_type_long_long,
238 builtin_type_unsigned_long_long, builtin_type_void_data_ptr,
239 builtin_type_void_func_ptr, builtin_type_CORE_ADDR): Remove.
240 (build_gdbtypes): Remove.
241 (_initialize_gdbtypes): Do not call build_gdbtypes, move installing
242 opaque-type-resolution command here. Do not call
243 deprecated_register_gdbarch_swap.
244
245 2007-06-22 Ulrich Weigand <uweigand@de.ibm.com>
246
247 * gdbtypes.h (struct builtin_type): New members nodebug_text_symbol,
248 nodebug_data_symbol, nodebug_unknown_symbol, and nodebug_tls_symbol.
249 * gdbtypes.c (gdbtypes_post_init): Initialize nodebug_ default types.
250
251 * parse.c (msym_text_symbol_type, msym_data_symbol_type): Remove.
252 (msym_unknown_symbol_type, msym_tls_symbol_type): Remove.
253 (write_exp_msymbol): Use builtin nodebug_ types instead of them.
254 (build_parse): Remove.
255 (_initialize_parse): Do not call build_parse. Do not register
256 msym_ types for gdbarch-swapping.
257
258 * dwarf2read.c (new_symbol): Use default nodebug_data_symbol type
259 instead of creating private type.
260
261 * xcoffread.c (func_symbol_type, var_symbol_type): Remove.
262 (_initialize_xcoffread): Do not initialized them.
263 (process_xcoff_symbol): Use builtin nodebug_ types instead of them.
264
265 * mdebugread.c (nodebug_func_symbol_type): Remove.
266 (nodebug_var_symbol_type): Remove.
267 (_initialize_mdebugread): Do not initialize them.
268 (parse_symbol): Use builtin nodebug_ type instead of them.
269 (parse_procedure): Likewise.
270
271 2007-06-21 Chris Dearman <chris@mips.com>
272
273 * printcmd.c (do_one_display): If display/i, start with an initial
274 line feed to avoid bad layout if there is a branch delay slot.
275
276 2007-06-21 Nigel Stephens <nigel@mips.com>
277 Maciej W. Rozycki <macro@mips.com>
278
279 * disasm.c (gdb_print_insn): Return the number of branch delay
280 slot instructions too.
281 * disasm.h (gdb_print_insn): Update prototype.
282 * printcmd.c (branch_delay_insns): New variable to record the
283 number of delay slot instructions after disassembling a branch.
284 (print_formatted): Record the number of branch delay slot
285 instructions.
286 (do_examine): When disassembling, if the last instruction
287 disassembled has any branch delay slots, then bump the count so
288 that they get disassembled too.
289 * tui/tui-disasm.c (tui_disassemble): Update the call to
290 gdb_print_insn().
291 * NEWS: Document the new behaviour.
292
293 2007-06-21 Andreas Schwab <schwab@suse.de>
294
295 * regcache.c (write_pc_pid): Restore missing else.
296
297 2007-06-20 Ulrich Weigand <uweigand@de.ibm.com>
298
299 * regcache.c (regcache_print): Use get_current_regcache ()
300 instead of current_regcache.
301
302 2007-06-20 H.J. Lu <hongjiu.lu@intel.com>
303
304 PR 4606
305 * gcore.c (gcore_command): Use bfd_make_section_anyway_with_flags
306 instead of bfd_make_section_anyway.
307 (gcore_create_callback): Likewise. Also set SEC_NEVER_LOAD
308 when clearing SEC_LOAD.
309
310 2007-06-19 Joseph Myers <joseph@codesourcery.com>
311
312 * arm-tdep.c (arm_push_dummy_call): Correct padding of partial
313 registers for big-endian.
314
315 2007-06-19 Markus Deuling <deuling@de.ibm.com>
316
317 * gdbarch.sh (TARGET_PRINT_INSN): Replace by gdbarch_print_insn.
318 * disasm.c (dump_insns, gdb_print_insn): Likewise.
319 * gdbarch.c, gdbarch.h: Regenerate.
320
321 2007-06-19 Markus Deuling <deuling@de.ibm.com>
322
323 * gdbarch.sh (BELIEVE_PCC_PROMOTION): Replace by
324 gdbarch_believe_pcc_promotion.
325 * stabsread.c (define_symbol): Likewise.
326 Remove unnecessary definition.
327 * coffread.c (process_coff_symbol): Remove unnecessary code.
328 * gdbarch.c, gdbarch.h: Regenerate.
329
330 2007-06-19 Daniel Jacobowitz <dan@codesourcery.com>
331
332 * configure.ac: Do not use ${objdir}.
333 * configure: Regenerated.
334
335 2007-06-18 Ulrich Weigand <uweigand@de.ibm.com>
336
337 * gdbarch.sh (deprecated_register_size): Remove.
338 * gdbarch.h, gdbarch.c: Regenerate.
339
340 * arm-tdep.c (arm_push_dummy_call): Replace DEPRECATED_REGISTER_SIZE
341 by INT_REGISTER_SIZE.
342 (thumb_get_next_pc, arm_return_in_memory): Likewise.
343 (arm_gdbarch_init): Do not call set_gdbarch_deprecated_register_size.
344 * ia64-tdep.c (ia64_gdbarch_init): Do not call
345 set_gdbarch_deprecated_register_size.
346
347 2007-06-18 Markus Deuling <deuling@de.ibm.com>
348
349 * gdbarch.sh (DEPRECATED_FP_REGNUM): Replace by
350 gdbarch_deprecated_fp_regnum.
351 * std-regs.c (value_of_builtin_frame_fp_reg): Likewise.
352 * remote-mips.c (mips_wait, mips_fetch_registers): Likewise.
353 * arch-utils.c (legacy_virtual_frame_pointer): Likewise.
354 * arch-utils.h (gdbarch_virtual_frame_pointer_ftype): Likewise
355 (comment).
356 * gdbarch.c, gdbarch.h: Regenerate.
357
358 2007-06-18 Markus Deuling <deuling@de.ibm.com>
359
360 * gdbarch.sh (EXTRACT_RETURN_VALUE): Replace with
361 gdbarch_extract_return_value.
362 * value.c (generic_use_struct_convention): Likewise (comment).
363 * ia64-tdep.c (ia64_use_struct_convention): Likewise (comment).
364 * arch-utils.c (legacy_return_value): Likewise.
365 * arch-utils.h (legacy_return_value): Likewise (comment).
366 * gdbarch.sh (STORE_RETURN_VALUE): Replace by
367 gdbarch_store_return_value.
368 * stack.c (return_command): Likewise (comment).
369 * arch-utils.h (legacy_return_value): Likewise (comment).
370 * arch-utils.c (legacy_return_value): Likewise.
371 * gdbarch.c, gdbarch.h: Regenerate.
372
373 2007-06-18 Markus Deuling <deuling@de.ibm.com>
374
375 * gdbarch.sh (DEPRECATED_USE_STRUCT_CONVENTION): Replace by
376 gdbarch_deprecated_use_struct_convention.
377 * arch-utils.c (legacy_return_value): Likewise.
378 * gdbarch.c, gdbarch.h: Regenerate.
379
380 2007-06-18 Markus Deuling <deuling@de.ibm.com>
381
382 * gdbarch.sh (DEPRECATED_FUNCTION_START_OFFSET): Replace by
383 gdbarch_deprecated_function_start_offset.
384 * symtab.c (find_function_start_sal)skip_prologue_using_sal): Likewise.
385 * linespec.c (minsym_found): Likewise.
386 * infrun.c (handle_inferior_event): Likewise.
387 * infcall.c (find_function_addr): Likewise.
388 * cli/cli-cmds.c (disassemble_command): Likewise.
389 * gdbarch.c, gdbarch.h: Regenerate.
390
391 2007-06-18 Markus Deuling <deuling@de.ibm.com>
392
393 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Replace by
394 gdbarch_deprecated_reg_struct_has_addr.
395 * infcall.c (call_function_by_hand): Likewise.
396 (DEPRECATED_REG_STRUCT_HAS_ADDR_P): Replace by
397 * gdbarch_deprecated_reg_struct_has_addr_p.
398 * infcall.c (call_function_by_hand): Likewise.
399 * gdbarch.c, gdbarch.h: Regenerate.
400
401 2007-06-18 Markus Deuling <deuling@de.ibm.com>
402
403 * gdbarch.sh (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
404 * sh-tdep.c (sh_extract_struct_value_address): Remove.
405 (sh_gdbarch_init): Remove
406 set_gdbarch_deprecated_extract_struct_value_address.
407 * sh64-tdep.c (sh64_extract_struct_value_address): Remove.
408 (sh64_gdbarch_init): Remove
409 set_gdbarch_deprecated_extract_struct_value_address.
410 * ia64-tdep.c (ia64_extract_struct_value_address): Remove.
411 (ia64_gdbarch_init): Remove
412 set_gdbarch_deprecated_extract_struct_value_address.
413 * frv-tdep.c (frv_extract_struct_value_address): Remove.
414 (frv_gdbarch_init): Remove
415 set_gdbarch_deprecated_extract_struct_value_address.
416 * gdbarch.c, gdbarch.h: Regenerate.
417
418 2007-06-18 Markus Deuling <deuling@de.ibm.com>
419
420 * gdbarch.sh (SP_REGNUM): Replace by gdbarch_sp_regnum.
421 * v850-tdep.c (v850_unwind_sp): Likewise.
422 * std-regs.c (value_of_builtin_frame_sp_reg): Likewise.
423 * stack.c (frame_info): Likewise.
424 * stabsread.c (define_symbol): Likewise.
425 * sh-tdep.c (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu)
426 (sh_dwarf2_frame_init_reg, sh_frame_cache, sh_frame_prev_register)
427 (sh_unwind_sp): Likewise.
428 * sh64-tdep.c (sh64_push_dummy_call, sh64_frame_cache)
429 (sh64_frame_prev_register, sh64_unwind_sp): Likewise.
430 * rs6000-tdep.c (rs6000_push_dummy_call, rs6000_unwind_dummy_id)
431 (rs6000_frame_cache): Likewise.
432 * rs6000-nat.c (store_register): Likewise.
433 * remote-mips.c (mips_wait): Likewise.
434 * procfs.c (procfs_fetch_registers, procfs_store_registers): Likewise.
435 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call)
436 (ppc64_sysv_abi_push_dummy_call): Likewise.
437 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_cache): Likewise.
438 * ppcobsd-nat.c (ppcobsd_supply_pcb): Likewise.
439 * ppcnbsd-tdep.c (ppcnbsd_sigtramp_cache_init): Likewise.
440 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache): Likewise.
441 * m32r-rom.c (m32r_supply_register): Likewise.
442 * frame.c (frame_sp_unwind): Likewise.
443 * mips-tdep.c (mips_insn16_frame_cache)
444 (mips_insn32_frame_cache): Likewise (comment).
445 * m68klinux-nat.c (supply_gregset): Likewise.
446 * m68k-tdep.c (m68k_get_longjmp_target): Likewise.
447 * ia64-tdep.c (ia64_frame_prev_register): Likewise.
448 * i386-tdep.c (i386_get_longjmp_target): Likewise.
449 * dwarf2-frame.c (dwarf2_frame_default_init_reg): Likewise.
450 * cris-tdep.c (cris_regnums, cris_sigcontext_addr)
451 (cris_sigtramp_frame_unwind_cache, cris_push_dummy_call)
452 (cris_scan_prologue, crisv32_scan_prologue, cris_unwind_sp)
453 (cris_register_type, crisv32_register_type)
454 (cris_dwarf2_frame_init_reg): Likewise.
455 * arch-utils.c (legacy_virtual_frame_pointer): Likewise.
456 * amd64-tdep.c (amd64_frame_prev_register): Likewise.
457 * amd64-linux-tdep.c (amd64_linux_sigcontext_addr): Likewise.
458 * libunwind-frame.c (libunwind_frame_cache): Likewise.
459
460 * gdbarch.sh (PC_REGNUM): Replace by gdbarch_pc_regnum.
461 * regcache.c (read_pc_pid, generic_target_write_pc): Likewise.
462 * xtensa-tdep.c (xtensa_register_type, xtensa_supply_gregset)
463 (xtensa_unwind_pc, xtensa_frame_cache, xtensa_frame_prev_register)
464 (xtensa_extract_return_value, xtensa_store_return_value): Likewise.
465 * v850-tdep.c (v850_unwind_pc): Likewise.
466 * stack.c (frame_info): Likewise.
467 * sh-tdep.c (sh_generic_show_regs, sh3_show_regs, sh2e_show_regs)
468 (sh2a_show_regs, sh2a_nofpu_show_regs, sh3e_show_regs)
469 (sh3_dsp_show_regs, sh4_show_regs, sh4_nofpu_show_regs)
470 (sh_dwarf2_frame_init_reg, sh_frame_prev_register, sh_unwind_pc)
471 (sh_dsp_show_regs): Likewise.
472 * shnbsd-tdep.c (shnbsd_supply_gregset)
473 (shnbsd_collect_gregset): Likewise.
474 * shnbsd-nat.c (GETREGS_SUPPLIES): Likewise.
475 * sh64-tdep.c (sh64_compact_reg_base_num, sh64_show_media_regs)
476 (sh64_frame_prev_register, sh64_unwind_pc): Likewise.
477 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset)
478 (6000_register_reggroup_p, rs6000_unwind_pc)
479 (rs6000_frame_cache): Likewise.
480 * rs6000-nat.c (regmap, rs6000_fetch_inferior_registers)
481 (rs6000_store_inferior_registers): Likewise.
482 * remote-mips.c (mips_wait, mips_load): Likewise.
483 * procfs.c (procfs_fetch_registers, procfs_store_registers): Likewise.
484 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_cache): Likewise.
485 * ppcobsd-nat.c (ppcobsd_supply_pcb): Likewise.
486 * ppcnbsd-tdep.c (ppcnbsd_sigtramp_cache_init): Likewise.
487 * ppcnbsd-nat.c (getregs_supplies, ppcnbsd_supply_pcb): Likewise.
488 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache): Likewise.
489 * ppc-linux-nat.c (ppc_register_u_addr, fetch_ppc_registers)
490 (store_ppc_registers, fill_gregset): Likewise.
491 * mips-tdep.c (mips_stub_frame_cache, mips_gdbarch_init): Likewise.
492 * mipsnbsd-tdep.c (mipsnbsd_supply_reg, mipsnbsd_fill_reg): Likewise.
493 * mipsnbsd-nat.c (getregs_supplies): Likewise.
494 * m68k-tdep.c (m68k_register_type, m68k_unwind_pc): Likewise.
495 * m68klinux-nat.c (supply_gregset): Likewise.
496 * irix5-nat.c (fill_gregset): Likewise.
497 * i386-tdep.c (i386_unwind_pc): Likewise.
498 * i386-linux-nat.c (i386_linux_resume): Likewise.
499 * frame.c (get_prev_frame_1): Likewise.
500 * dwarf2-frame.c (dwarf2_frame_default_init_reg): Likewise.
501 * dbug-rom.c (dbug_supply_register): Likewise.
502 * cris-tdep.c (cris_sigtramp_frame_unwind_cache, cris_scan_prologue)
503 (crisv32_scan_prologue, cris_unwind_pc, cris_register_size)
504 (cris_register_type, crisv32_register_type, crisv32_register_name)
505 (cris_dwarf2_frame_init_reg, find_step_target)
506 (cris_software_single_step, cris_supply_gregset)
507 (cris_regnums): Likewise.
508 * alpha-linux-nat.c (alpha_linux_register_u_offset): Likewise.
509 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
510 (fill_sprs64, fill_sprs32, store_regs_user_thread): Likewise.
511 * std-regs.c (value_of_builtin_frame_pc_reg): Likewise.
512 * mips-linux-tdep.c (mips_linux_write_pc): Likewise.
513
514 * gdbarch.sh (PS_REGNUM): Replace by gdbarch_ps_regnum.
515 * dbug-rom.c (dbug_supply_register): Likewise.
516 * xtensa-tdep.c (xtensa_supply_gregset, xtensa_frame_cache)
517 (xtensa_frame_prev_register, xtensa_push_dummy_call): Likewise.
518 * win32-nat.c (win32_resume): Likewise.
519 * std-regs.c (value_of_builtin_frame_ps_reg): Likewise.
520 * m68k-tdep.c (m68k_register_type): Likewise.
521 * m68klinux-nat.c (supply_gregset): Likewise.
522
523 * gdbarch.sh (FP0_REGNUM): Replace by gdbarch_fp0_regnum.
524 * sh-tdep.c (sh_extract_return_value_fpu, sh_store_return_value_fpu)
525 (sh2e_show_regs, sh2a_show_regs, sh3e_show_regs, sh4_show_regs)
526 (sh_sh2a_register_type, sh_sh3e_register_type, sh_sh4_register_type)
527 (fv_reg_base_num, dr_reg_base_num): Likewise.
528 * sh64-tdep.c (sh64_fv_reg_base_num, sh64_dr_reg_base_num)
529 (sh64_fpp_reg_base_num, sh64_compact_reg_base_num, sh64_push_dummy_call)
530 (sh64_extract_return_value, sh64_store_return_value)
531 (sh64_show_media_regs, sh64_show_compact_regs, sh64_register_type)
532 (sh64_do_fp_register, sh64_media_print_registers_info): Likewise.
533 * procfs.c (procfs_fetch_registers, procfs_store_registers)
534 (invalidate_cache): Likewise.
535 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache): Likewise.
536 * mipsnbsd-tdep.c (mipsnbsd_supply_fpreg)
537 (mipsnbsd_fill_fpreg): Likewise.
538 * mipsnbsd-nat.c (mipsnbsd_fetch_inferior_registers)
539 (mipsnbsd_store_inferior_registers): Likewise.
540 * mips-linux-tdep.c (mips_supply_fpregset, mips_fill_fpregset)
541 (mips64_supply_fpregset, mips64_fill_fpregset): Likewise.
542 * mips-linux-nat.c (mips64_linux_register_addr): Likewise.
543 * m68k-tdep.c (m68k_register_type, m68k_convert_register_p): Likewise.
544 * m68klinux-nat.c (getfpregs_supplies, supply_fpregset)
545 (fill_fpregset): Likewise.
546 * irix5-nat.c (supply_fpregset, fill_fpregset): Likewise.
547 * i386-tdep.h (struct_return): Likewise (comment).
548 * i386-nto-tdep.c (i386nto_register_area): Likewise.
549 * go32-nat.c (fetch_register, go32_fetch_registers, store_register)
550 (go32_store_registers): Likewise.
551 * alpha-tdep.c (alpha_next_pc): Likewise.
552 * alpha-linux-nat.c (alpha_linux_register_u_offset): Likewise.
553 * alphabsd-nat.c (alphabsd_fetch_inferior_registers)
554 (alphabsd_store_inferior_registers): Likewise.
555 * core-regset.c (fetch_core_registers): Likewise.
556 * i386v4-nat.c (supply_fpregset, fill_fpregset): Likewise.
557
558 * gdbarch.c, gdbarch.h: Regenerate.
559
560 2007-06-18 Daniel Jacobowitz <dan@codesourcery.com>
561
562 * coffread.c (coff_sym_fns): Add default_symfile_segments.
563 * dbxread.c (start_psymtab): Check HAVE_ELF.
564 (aout_sym_fns): Likewise.
565 * elfread.c (elf_symfile_segments): New.
566 (elf_sym_fns): Add elf_symfile_segments.
567 * mipsread.c (ecoff_sym_fns): Add default_symfile_segments.
568 * remote.c (get_offsets): Use symfile_map_offsets_to_segments.
569 Skip if there is no symfile_objfile. Handle TextSeg and DataSeg.
570 * somread.c (som_sym_fns): Use default_symfile_segments.
571 * symfile.c (find_sym_fns): Take a BFD and return the sym_fns.
572 (init_objfile_sect_indices): Call symfile_find_segment_sections.
573 (default_symfile_segments): New function.
574 (syms_from_objfile): Update call to find_sym_fns.
575 (symfile_get_segment_data, free_symfile_segment_data): New.
576 (symfile_map_offsets_to_segments): New.
577 (symfile_find_segment_sections): New.
578 * symfile.h (struct symfile_segment_data): New.
579 (struct sym_fns): Add sym_segments.
580 (default_symfile_segments, symfile_get_segment_data)
581 (free_symfile_segment_data): New prototypes.
582 (symfile_map_offsets_to_segments): Likewise.
583 * xcoffread.c (xcoff_sym_fns): Add default_symfile_segments.
584 * Makefile.in (COMMON_OBS): Remove elfread.o.
585 (elf_internal_h): New.
586 (elfread.o): Update.
587 * configure.ac: Add elfread.o to COMMON_OBS if bfd/elf.o was
588 compiled.
589 * config.in, configure: Regenerated.
590 * NEWS: Mention qOffsets changes.
591
592 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
593
594 * gdbtypes.h (builtin_type_m2_char, builtin_type_m2_int,
595 builtin_type_m2_card, builtin_type_m2_real, builtin_type_m2_bool):
596 Replace global variable declaration with compatibility macro.
597 (struct builtin_m2_type): New data type.
598 (builtin_m2_type): Add prototype.
599 * m2-lang.c (builtin_type_m2_char, builtin_type_m2_int,
600 builtin_type_m2_card, builtin_type_m2_real, builtin_type_m2_bool):
601 Remove global variables.
602 (m2_language_arch_info): Use builtin_m2_type instead of variables.
603 (build_m2_types): New function.
604 (m2_type_data): New variable.
605 (builtin_m2_type): New function.
606 (_initialize_m2_language): Do not build data types. Register
607 m2_type_data per-gdbarch data.
608
609 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
610
611 * gdbtypes.h (builtin_type_f_character, builtin_type_f_logical,
612 builtin_type_f_logical_s1, builtin_type_f_logical_s2,
613 builtin_type_f_integer, builtin_type_f_integer_s2, builtin_type_f_real,
614 builtin_type_f_real_s8, builtin_type_f_real_s16,
615 builtin_type_f_complex_s8, builtin_type_f_complex_s16,
616 builtin_type_f_complex_s32, builtin_type_f_void): Replace global
617 variable declaration with compatibility macro.
618 (struct builtin_f_type): New data type.
619 (builtin_f_type): Add prototype.
620 * f-lang.c (builtin_type_f_character, builtin_type_f_logical,
621 builtin_type_f_logical_s1, builtin_type_f_logical_s2,
622 builtin_type_f_integer, builtin_type_f_integer_s2, builtin_type_f_real,
623 builtin_type_f_real_s8, builtin_type_f_real_s16,
624 builtin_type_f_complex_s8, builtin_type_f_complex_s16,
625 builtin_type_f_complex_s32, builtin_type_f_void): Remove variables.
626 (f_language_arch_info): Use builtin_f_type instead of variables.
627 (build_fortran_types): Build builtin_f_type structure instead of
628 setting global type variables.
629 (f_type_data): New variable.
630 (builtin_f_type): New function.
631 (_initialize_f_language): Do not call build_fortran_types. Do not
632 swap global type variables. Register f_type_data per-gdbarch data.
633
634 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
635
636 * f-lang.c (_initialize_f_language): Do not initialize or
637 swap builtin_type_string.
638
639 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
640
641 * std-regs.c (builtin_type_frame_reg, build_builtin_type_frame_reg,
642 value_of_builtin_frame_reg): Remove.
643 (_initialize_frame_reg): Do not swap builtin_type_frame_reg. Remove
644 inactive call to value_of_builtin_frame_reg.
645
646 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
647
648 * gdbarch.sh (bfd_vma_bit): Remove.
649 * gdbarch.c, gdbarch.h: Regenerate.
650
651 * gdbtypes.h (builtin_bfd_vma_type): Remove.
652 * gdbtypes.h (builtin_bfd_vma_type): Remove.
653 (build_gdbtypes): Do not initialize it.
654 (_initialize_gdbtypes): Do not swap it.
655
656 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
657
658 * gdbtypes.c (builtin_type_v2_double, builtin_type_v4_float,
659 builtin_type_v2_int64, builtin_type_v4_int32, builtin_type_v8_int16,
660 builtin_type_v16_int8, builtin_type_v2_float, builtin_type_v2_int32,
661 builtin_type_v4_int16, builtin_type_v8_int8, builtin_type_v4sf,
662 builtin_type_v4si, builtin_type_v16qi, builtin_type_v8qi,
663 builtin_type_v8hi, builtin_type_v4hi, builtin_type_v2si,
664 builtin_type_vec64, builtin_type_vec128): Remove.
665 (init_simd_type): Remove.
666 (init_vector_type): Make global.
667 (build_builtin_type_vec64, build_builtin_type_vec128): Remove.
668 (build_gdbtypes): Do not build vector types.
669 (_initialize_gdbtypes): Do not swap vector types.
670 * gdbtypes.h (builtin_type_v2_double, builtin_type_v4_float,
671 builtin_type_v2_int64, builtin_type_v4_int32, builtin_type_v8_int16,
672 builtin_type_v16_int8, builtin_type_v2_float, builtin_type_v2_int32,
673 builtin_type_v4_int16, builtin_type_v8_int8, builtin_type_v4sf,
674 builtin_type_v4si, builtin_type_v16qi, builtin_type_v8qi,
675 builtin_type_v8hi, builtin_type_v4hi, builtin_type_v2si,
676 builtin_type_vec64, builtin_type_vec128): Remove declarations.
677 (init_vector_type): Add prototype.
678
679 * i386-tdep.h (struct gdbarch_tdep): Add i386_mmx_type and
680 i386_sse_type members.
681 (i386_mmx_type, i386_sse_type): Change from variables to functions.
682 * i386-tdep.c (i386_mmx_type, i386_sse_type): Remove variables.
683 (i386_init_types): Do not build vector types.
684 (i386_mmx_type, i386_sse_type): New functions.
685 (i386_register_type): Call them instead of using global variables.
686 (i386_gdbarch_init): Use XCALLOC to allocate tdep structure.
687 * amd64-tdep.c (amd64_register_type): Call i386_sse_type instead
688 of using global variable.
689
690 * rs6000-tdep.h (struct gdbarch_tdep): Add ppc_builtin_type_vec64
691 and ppc_builtin_type_vec128 members.
692 * rs6000-tdep.c (rs6000_builtin_type_vec64): New function.
693 (rs6000_builtin_type_vec128): Likewise.
694 (rs6000_register_type): Call them instead of using builtin_type_vec64
695 and builtin_type_vec128.
696 (rs6000_gdbarch_init): Use XCALLOC to allocate tdep structure.
697
698 * spu-tdep.c (struct gdbarch_tdep): New data type.
699 (spu_builtin_type_vec128): Remove variable.
700 (spu_builtin_type_vec128): New function.
701 (spu_register_type): Call it instead of using global variable.
702 (spu_gdbarch_init): Allocate tdep structure.
703 (spu_init_vector_type): Remove function.
704 (_initialize_spu_tdep): Do not call it.
705
706 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
707
708 * amd64-tdep.c (struct amd64_register_info): Remove.
709 (amd64_register_info): Remove.
710 (amd64_register_names): New static variable.
711 (AMD64_NUM_REGS): Use amd64_register_names instead of
712 amd64_register_info.
713 (amd64_register_name): Likewise.
714 (amd64_register_type): Do not refer to amd64_register_info.
715
716 * s390-tdep.c (struct s390_register_info): Remove.
717 (s390_register_info): Remove.
718 (s390_register_name): Do not refer to s390_register_info.
719 (s390_register_type): Likewise.
720
721 * sparc64-tdep.c (struct sparc64_register_info): Remove.
722 (sparc64_register_info, sparc64_pseudo_register_info): Remove.
723 (sparc64_register_names, sparc64_pseudo_register_names): New.
724 (SPARC64_NUM_REGS, SPARC64_NUM_PSEUDO_REGS): Use
725 sparc64_register_names and sparc64_pseudo_register_names instead of
726 sparc64_register_info and sparc64_pseudo_register_info.
727 (sparc64_register_name): Likewise.
728 (sparc64_register_type): Do not refer to sparc64_register_info
729 and sparc64_pseudo_register_info.
730
731 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
732
733 * c-lang.c (cplus_builtin_types): Remove.
734 (enum cplus_primitive_types): New data type.
735 (cplus_language_arch_info): New function.
736 (cplus_language_defn): Set la_language_arch_info member. Do not set
737 la_builtin_type_vector and string_char_type members.
738
739 * f-lang.c (f_builtin_types): Remove.
740 (enum f_primitive_types): New data type.
741 (f_language_arch_info): New function.
742 (f_language_de): Set la_language_arch_info member. Do not set
743 la_builtin_type_vector and string_char_type members.
744
745 * m2-lang.c (m2_builtin_types): Remove.
746 (enum m2_primitive_types): New data type.
747 (m2_language_arch_info): New function.
748 (m2_language_defn): Set la_language_arch_info member. Do not set
749 la_builtin_type_vector and string_char_type members.
750
751 * objc-lang.c (objc_builtin_types): Remove.
752 (objc_language): Set la_language_arch_info member. Do not set
753 la_builtin_type_vector and string_char_type members.
754
755 * p-lang.c (pascal_builtin_types): Remove.
756 (enum pascal_primitive_types): New data type.
757 (pascal_language_arch_info): New function.
758 (pascal_language_defn): Set la_language_arch_info member. Do not set
759 la_builtin_type_vector and string_char_type members.
760
761 2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
762
763 * regcache.c (struct regcache): Add ptid_t member.
764 (regcache_xmalloc): Initialize it.
765 (regcache_cpy_no_passthrough): Do not refer to current_regcache.
766 (regcache_dup): Likewise.
767 (regcache_dup_no_passthrough): Likewise.
768 (current_regcache): Make static.
769 (registers_ptid): Remove variable.
770 (get_thread_regcache): New function.
771 (get_current_regcache): New function.
772 (registers_changed): Implement by freeing current regcache.
773 (regcache_raw_read): Do not refer to current_regcache. Set
774 inferior_ptid to regcache->ptid while calling target routines.
775 (regcache_raw_write): Likewise.
776 (regcache_raw_supply): Do not refer to current_regcache.
777 (read_pc_pid): Use thread regcache. Do not modify inferior_ptid.
778 (write_pc_pid): Likewise.
779 (build_regcache): Remove.
780 (_initialize_regcache): Do not call DEPRECATED_REGISTER_GDBARCH_SWAP
781 or deprecated_register_gdbarch_swap. Do not initialize
782 registers_ptid.
783 * regcache.h (get_current_regcache): Add prototype.
784 (get_thread_regcache): Likewise.
785 (current_regcache): Remove declaration.
786
787 * corelow.c (core_open): Replace current_regcache by
788 get_current_regcache ().
789 * frame.c (frame_pop): Likewise.
790 (put_frame_register): Likewise.
791 (get_current_frame, create_new_frame): Likewise.
792 * mi/mi-main.c (mi_cmd_data_write_register_values): Likewise.
793 * stack.c (return_command): Likewise.
794 * infcall.c (call_function_by_hand): Likewise.
795 * infrun.c (resume): Likewise.
796 (save_inferior_status, restore_inferior_status): Likewise.
797 * linux-fork.c (fork_load_infrun_state): Likewise.
798 (fork_save_infrun_state): Likewise.
799 * win32-nat.c (win32_resume): Likewise.
800 * i386fbsd-nat.c (i386fbsd_resume): Likewise.
801 * monitor.c (monitor_wait): Likewise.
802 * remote.c (remote_wait): Likewise.
803 * remote-mips.c (mips_wait): Likewise.
804
805 * bsd-kvm.c (bsd_kvm_open): Likewise
806 (bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd): Likewise.
807 * fbsd-nat.c (fbsd_make_corefile_notes): Likewise.
808 * i386-linux-nat.c (i386_linux_resume): Likewise.
809 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Likewise.
810 (ia64_linux_stopped_data_address): Likewise.
811
812 * frv-tdep.c (frv_fdpic_loadmap_addresses): Likewise.
813 * m32c-tdep.c (m32c_virtual_frame_pointer): Likewise.
814 * mep-tdep.c (current_me_module, current_options): Likewise.
815 * mips-tdep.c (deprecated_mips_set_processor_regs_hack): Likewise.
816
817 * linux-nat.c (linux_nat_do_thread_registers): Use thread
818 regcache instead of current_regcache. Call target_fetch_registers.
819 (linux_nat_corefile_thread_callback): Update call site.
820 (linux_nat_do_registers): Likewise.
821 * procfs.c (procfs_do_thread_registers): Use thread regcache instead
822 of current_regcache.
823 (procfs_make_note_section): Likewise.
824 * proc-service.c (ps_lgetregs, ps_lsetregs): Likewise.
825 (ps_lgetfpregs, ps_lsetfpregs): Likewise.
826 * sol-thread.c (ps_lgetregs, ps_lsetregs): Likewise.
827 (ps_lgetfpregs, ps_lsetfpregs): Likewise.
828
829 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
830
831 * regcache.c (read_register, read_register_pid): Remove.
832 (write_register, write_register_pid): Likewise.
833 * regcache.h (read_register, read_register_pid): Remove prototype.
834 (write_register, write_register_pid): Likewise.
835
836 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
837
838 * gdbarch.sh (read_pc): Add REGCACHE argument. Remove PTID argument.
839 (write_pc): Likewise. Remove default implementation, add predicate.
840 * gdbarch.c, gdbarch.h: Regenerate.
841 * regcache.c (read_pc_pid): Use current regcache instead of calling
842 read_register_pid.
843 (write_pc_pid): Check gdbarch_write_pc predicate, implement default
844 case inline.
845 (generic_target_write_pc): Remove.
846 * inferior.h (generic_target_write_pc): Remove.
847 * frv-tdep.c (frv_gdbarch_init): Do not install it.
848 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
849 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
850 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
851 * sh-tdep.c (sh_gdbarch_init): Likewise.
852 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
853
854 * avr-tdep.c (avr_read_pc): Add REGCACHE argument. Remove PTID
855 argument. Use REGCACHE instead of calling read_register_pid.
856 * hppa-hpux-tdep.c (hppa_hpux_read_pc): Likewise.
857 * hppa-tdep.c (hppa_read_pc): Likewise.
858 * hppa-tdep.h (hppa_read_pc): Likewise.
859 * ia64-tdep.c (ia64_read_pc): Likewise.
860 * m32r-tdep.c (m32r_read_pc): Likewise.
861 * mep-tdep.c (mep_read_pc): Likewise.
862 * mn10300-tdep.c (mn10300_read_pc): Likewise.
863 * spu-tdep.c (spu_read_pc): Likewise.
864
865 * arm-tdep.c (arm_write_pc): Add REGCACHE argument. Remove PTID
866 argument. Use REGCACHE instead of calling write_register_pid.
867 * avr-tdep.c (avr_write_pc): Likewise.
868 * hppa-hpux-tdep.c (hppa_hpux_write_pc): Likewise.
869 * hppa-tdep.c (hppa_write_pc): Likewise.
870 * hppa-tdep.h (hppa_write_pc): Likewise.
871 * i386-linux-tdep.c (i386_linux_write_pc): Likewise.
872 * amd64-linux-tdep.c (amd64_linux_write_pc): Likewise.
873 * ia64-linux-tdep.c (ia64_linux_write_pc): Likewise.
874 * ia64-tdep.c (ia64_write_pc): Likewise.
875 * ia64-tdep.h (ia64_write_pc): Likewise.
876 * m32r-tdep.c (m32r_write_pc): Likewise.
877 * m88k-tdep.c (m88k_write_pc): Likewise.
878 * mep-tdep.c (mep_write_pc): Likewise.
879 * mips-tdep.c (mips_write_pc): Likewise.
880 * mips-linux-tdep.c (mips_linux_write_pc): Likewise.
881 * mn10300-tdep.c (mn10300_write_pc): Likewise.
882 * sparc-tdep.c (sparc_write_pc): Likewise.
883 * spu-tdep.c (spu_write_pc): Likewise.
884
885 * mips-tdep.c (read_signed_register): Remove.
886 (read_signed_register_pid): Likewise.
887 (mips_read_pc): Add REGCACHE argument. Remove PTID argument.
888 Use REGCACHE instead of calling read_signed_register_pid.
889
890 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
891
892 * gdbarch.sh (push_dummy_code): Add REGCACHE argument.
893 * gdbarch.c, gdbarch.h: Regenerate.
894 * infcall.c (generic_push_dummy_code): Add REGCACHE argument.
895 (push_dummy_code): Likewise. Pass it to callee.
896 (call_function_by_hand): Pass current regcache to push_dummy_code.
897
898 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Add REGCACHE
899 argument. Use it instead of current_regcache.
900
901 * cris-tdep.c (cris_push_dummy_code): Add REGCACHE argument.
902 * sparc-tdep.c (sparc32_push_dummy_code): Likewise.
903
904 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
905
906 * gdbarch.sh (get_longjmp_target): Add FRAME argument.
907 * gdbarch.c, gdbarch.h: Regenerate.
908 * infrun.c (handle_inferior_event): Pass current frame to
909 gdbarch_get_longjmp_target.
910
911 * alpha-tdep.c (alpha_get_longjmp_target): Add FRAME argument.
912 Read registers from FRAME instead of using read_register.
913 Use get_frame_arch instead of current_gdbarch.
914 * arm-tdep.c (arm_get_longjmp_target): Likewise.
915 * i386-tdep.c (i386_get_longjmp_target): Likewise.
916 * m68k-tdep.c (m68k_get_longjmp_target): Likewise.
917 * mips-linux-tdep.c (mips_linux_get_longjmp_target): Likewise.
918 (mips64_linux_get_longjmp_target): Likewise.
919 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Likewise.
920
921 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
922
923 * gdbarch.sh (skip_trampoline_code): Add FRAME argument.
924 * gdbarch.c, gdbarch.h: Regenerate.
925 * arch-utils.c (generic_skip_trampoline_code): Add FRAME argument.
926 * arch-utils.h (generic_skip_trampoline_code): Likewise.
927 * infrun.c (handle_inferior_event): Pass current frame to
928 gdbarch_skip_trampoline_code and skip_language_trampoline.
929
930 * language.c (unk_lang_trampoline): Add FRAME argument.
931 (skip_language_trampoline): Add FRAME argument. Pass it to
932 skip_trampoline callback.
933 * language.h: Add forward declaration of struct frame_info.
934 (struct language_defn): Add FRAME argument to skip_trampoline.
935 (skip_language_trampoline): Add FRAME argument.
936 * cp-abi.c (cplus_skip_trampoline): Add FRAME argument. Pass it
937 to skip_trampoline callback.
938 * cp-abi.h: Add forward declaration of struct frame_info.
939 (cplus_skip_trampoline): Add FRAME argument.
940 (struct cp_abi_ops): Add FRAME argument to skip_trampoline callback.
941 * gnu-v3-abi.c (gnuv3_skip_trampoline): Add FRAME argument. Pass it
942 to gdbarch_skip_trampoline_code.
943 * objc-lang.c (objc_skip_trampoline): Add FRAME argument. Pass it
944 to gdbarch_skip_trampoline_code.
945
946 * minsyms.c (find_solib_trampoline_target): Add FRAME argument.
947 * symtab.h (find_solib_trampoline_target): Likewise.
948 * obsd-tdep.c (obsd_skip_solib_resolver): Pass current frame to
949 find_solib_trampoline_target.
950
951 * arm-tdep.c (arm_skip_stub): Add FRAME argument. Read registers
952 from FRAME instead of calling read_register.
953
954 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code): Add FRAME
955 argument. Read registers from FRAME instead of using read_register.
956 * hppa-tdep.c (hppa_skip_trampoline_code): Likewise.
957 * hppa-tdep.h (hppa_skip_trampoline_code): Add FRAME argument.
958
959 * i386-cygwin-tdep.c (i386_cygwin_skip_trampoline_code): Add FRAME
960 argument.
961
962 * m32c-tdep.c (m32c_skip_trampoline_code): Add FRAME argument.
963
964 * mips-tdep.c (mips_skip_trampoline_code): Add FRAME argument. Read
965 registers from FRAME instead of using read_signed_register.
966
967 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Add FRAME
968 argument.
969 (ppc64_standard_linkage_target): Likewise. Read registers from FRAME
970 instead of using read_register.
971 (ppc64_skip_trampoline_code): Add FRAME argument. Pass it to
972 ppc64_standard_linkage_target.
973 * rs6000-tdep.c (rs6000_skip_trampoline_code): Add FRAME argument.
974 Pass it to find_solib_trampoline_target. Read registers from FRAME
975 instead of using read_register.
976
977 * xstormy16-tdep.c (xstormy16_skip_trampoline_code): Add FRAME
978 argument.
979
980 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
981
982 * gdbarch.sh (software_single_step): Replace REGCACHE argument by
983 FRAME argument.
984 * gdbarch.c, gdbarch.h: Regenerate.
985 * infrun.c (resume): Pass current frame to SOFTWARE_SINGLE_STEP.
986
987 * alpha-tdep.c (alpha_next_pc): Add FRAME argument. Retrieve
988 registers from FRAME instead of using read_register.
989 (alpha_software_single_step): Replace REGCACHE by FRAME. Pass FRAME
990 to alpha_next_pc. Use get_frame_pc instead of read_pc.
991 * alpha-tdep.h (alpha_software_single_step): Replace REGCACHE
992 argument by FRAME.
993
994 * arm-tdep.c (shifted_reg_val): Add FRAME argument. Read registers
995 from FRAME instead of using read_register.
996 (thumb_get_next_pc): Likewise.
997 (arm_get_next_pc): Likewise.
998 (arm_software_single_step): Replace REGCACHE by FRAME. Pass FRAME
999 to arm_get_next_pc. Use get_frame_pc instead of read_register.
1000 * arm-tdep.h (arm_software_single_step): Replace REGCACHE
1001 argument by FRAME.
1002
1003 * cris-tdep.c (find_step_target): Add FRAME argument. Read registers
1004 from FRAME instead of using read_register.
1005 (cris_software_single_step): Replace REGCACHE by FRAME. Pass FRAME
1006 to find_step_target.
1007
1008 * mips-tdep.c (mips32_next_pc): Add FRAME argument. Read registers
1009 from FRAME instead of using read_register / read_signed_register.
1010 (extended_mips16_next_pc): Likewise.
1011 (mips16_next_pc): Likewise.
1012 (mips_next_pc): Likewise.
1013 (mips_software_single_step): Replace REGCACHE by FRAME. Pass FRAME
1014 to mips_next_pc. Use get_frame_pc instead of read_pc.
1015 * mips-tdep.h (mips_software_single_step): Replace REGCACHE
1016 argument by FRAME.
1017
1018 * rs6000-tdep.c (branch_dest): Add FRAME argument. Use it instead
1019 of current frame. Read registers from FRAME.
1020 (deal_with_atomic_sequence): Add FRAME argument. Pass it to
1021 branch_dest. Use get_frame_pc instead of read_pc.
1022 (rs6000_software_single_step): Likewise.
1023 (bl_to_blrl_insn_p): Do not call branch_dest.
1024 * rs6000-tdep.h (rs6000_software_single_step): Replace REGCACHE
1025 argument by FRAME.
1026
1027 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Add FRAME argument.
1028 Read registers from FRAME instead of current regcache.
1029 * sparc-linux-tdep.c (sparc32_linux_step_trap): Likewise.
1030 * sparcnbsd-tdep.c (sparcnbsd_step_trap): Likewise.
1031 * sparc-tdep.c (sparc_address_from_register): Remove.
1032 (sparc_analyze_control_transfer): Pass FRAME argument instead of
1033 GDBARCH. Pass FRAME to step_trap callback.
1034 (sparc_step_trap): Add FRAME argument.
1035 (space_software_single_step): Replace REGCACHE by FRAME. Pass FRAME
1036 to sparc_analyze_control_transfer. Read registers from FRAME instead
1037 of calling sparc_address_from_register.
1038 * sparc-tdep.h (struct gdbarch_tdep): Add FRAME argument to
1039 step_trap callback.
1040 (sparc_address_from_register): Remove prototype.
1041 (sparc_software_single_step): Replace REGCACHE argument by FRAME.
1042 (sparcnbsd_step_trap): Add FRAME argument.
1043
1044 * spu-tdep.c (spu_software_single_step): Replace REGCACHE argument
1045 by FRAME. Read registers from FRAME instead of REGCACHE.
1046
1047 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
1048
1049 * arm-tdep.c (arm_print_float_info): Use register value from FRAME
1050 instead of calling read_register.
1051
1052 * avr-tdep.c (avr_push_dummy_call): Write to REGCACHE instead of
1053 calling write_register.
1054
1055 * hppa-tdep.c (hppa32_push_dummy_call): Write to REGCACHE instead of
1056 calling write_register.
1057
1058 * ia64-tdep.c (find_func_descr): Add REGCACHE parameter. Use it
1059 instead of calling read_register.
1060 (ia64_push_dummy_call): Update call to find_func_descr. Use REGCACHE
1061 instead of calling read_register and write_register.
1062
1063 * m32r-tdep.c (m32r_linux_supply_gregset): Use REGCACHE parameter
1064 instead of current_regcache.
1065
1066 * mn10300-tdep.c (mn10300_push_dummy_call): Write to REGCACHE instead
1067 of calling write_register.
1068 * mn10300-linux-tdep.c (am33_supply_fpregset_method): Use REGCACHE
1069 parameter instead of current_regcache.
1070
1071 * mips-tdep.c (mips2_fp_compat): Add FRAME parameter. Use it
1072 instead of calling read_register.
1073 (mips_read_fp_register_double, mips_print_fp_register): Update calls.
1074 (mips_eabi_push_dummy_call): Use REGCACHE instead of write_register.
1075 (mips_n32n64_push_dummy_call): Likewise.
1076 (mips_o32_push_dummy_call): Likewise.
1077 (mips_o64_push_dummy_call): Likewise.
1078
1079 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Use REGCACHE
1080 parameter instead of current_regcache.
1081
1082 * xtensa-tdep.c (xtensa_register_write_masked): Add REGCACHE parameter.
1083 Use it instead of read_register and write_register.
1084 (xtensa_register_read_masked): Likewise.
1085 (xtensa_pseudo_register_read): Update call.
1086 (xtensa_pseudo_register_write): Likewise.
1087 (xtensa_frame_cache): Use register values unwound from NEXT_FRAME
1088 instead of calling read_register.
1089 (xtensa_push_dummy_call): Update comment.
1090
1091 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
1092
1093 * mips-tdep.c (mips16_scan_prologue): Replace read_next_frame_reg
1094 by frame_unwind_register_signed calls.
1095 (mips32_scan_prologue): Likewise. Skip analysis of alloca stack
1096 frame allocations when called with NULL NEXT_FRAME parameter.
1097 (read_next_frame_reg): Remove.
1098
1099 * sh-tdep.c (sh_analyze_prologue): Add FPSCR parameter. Use it
1100 instead of reading the FPSCR register.
1101 (sh_frame_cache): Pass unwound FPSCR register value to
1102 sh_analyze_prologue.
1103 (sh_skip_prologue): Pass dummy FPSCR value to sh_analyze_prologue.
1104
1105 * v850-tdep.c (v850_analyze_prologue): Add CTBP parameter. Use it
1106 instead of reading the CTBP register.
1107 (v850_frame_cache): Pass unwound CTBP register value to
1108 v850_analyze_prologue.
1109
1110 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
1111
1112 * sh-tdep.h (sh_show_regs): Add FRAME parameter.
1113 * sh-tdep.c (sh_show_regs): Likewise.
1114 (sh_show_regs_command): Pass current frame to sh_show_regs routine.
1115 (sh_generic_show_regs): Add FRAME parameter. Use register
1116 values from that frame instead of calling read_register.
1117 (sh3_show_regs, sh2e_show_regs, sh2a_show_regs, sh2a_nofpu_show_regs,
1118 sh3e_show_regs, sh3_dsp_show_regs, sh4_show_regs, sh4_nofpu_show_regs,
1119 sh_dsp_show_regs): Likewise.
1120 * sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs,
1121 sh64_show_regs): Likewise.
1122
1123 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
1124
1125 * mips-tdep.c (deprecated_mips_set_processor_regs_hack): Read from
1126 current regcache instead of calling read_register.
1127
1128 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
1129
1130 * mep-tdep.c (current_me_module): Read from current regcache
1131 instead of calling read_register.
1132 (current_options): Likewise.
1133
1134 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
1135
1136 * cris-tdep.c (cris_stopped_data_address): Read register values
1137 from current frame instead of calling read_register.
1138 * frv-tdep.c (frv_stopped_data_address): Likewise.
1139
1140 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
1141
1142 * solib-sunos.c (sunos_solib_create_inferior_hook): Use write_pc
1143 instead of write_register (PC_REGNUM, ...).
1144
1145 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
1146
1147 * solib-sunos.c (sunos_solib_create_inferior_hook): Add comment
1148 explaining why the PC adjustment code is necessary.
1149
1150 2007-06-15 Vladimir Prus <vladimir@codesourcery.com>
1151
1152 * m68k-tdep.h (enum m68k_flavour): New.
1153 (struct gdbarch_tdep): New fields
1154 float_return, flavour and fpregs_present.
1155 * m68k-tdep.c (m68k_register_type): Use
1156 fpregs_present and conditionalize floating
1157 registers type on flavour.
1158 (m68k_register_names): New.
1159 (m68k_register_name): Use the above.
1160 (m68k_convert_register_p): Consult fpregs_present.
1161 (m68k_register_to_value, m68k_value_to_register):
1162 Use register_type to obtain the type of floating
1163 point registers.
1164 (m68k_svr4_extract_return_value): Check tdep->float_return.
1165 Use register_type to get the type of floating
1166 point regiters.
1167 (m68k_svr4_store_return_value): Likewise.
1168 (m68k_dwarf_reg_to_regnum): Check tdep->fpregs_present.
1169 (m68k_analyze_register_saves): Likewise.
1170 (m68k_gdbarch_init): Extract infromation
1171 from XML description, if present. Guess coldfire by
1172 looking at the file, if present. Conditionalize
1173 setting of long double format. Set decr_pc_after_break
1174 to 2 on coldfire and fido. Enable XML-driven
1175 register description.
1176 * m68kbsd-tdep.c (m68kbsd_fpreg_offset): Use
1177 size of tdep->fpreg_type, as opposed to hardcoded value.
1178 * Makefile.in (m68k-tdep.o): Update dependencies.
1179
1180 2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
1181
1182 * NEWS: Mention "info spu" commands and qXfer:spu:read and
1183 qXfer:spu:write remote packet types.
1184
1185 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
1186
1187 * xml-tdesc.c (tdesc_start_target): New.
1188 (target_attributes): New.
1189 (tdesc_elements): Use it.
1190 * features/gdb-target.dtd: Add #FIXED version attribute for
1191 <target>.
1192
1193 2007-06-13 Arthur Huillet <arthur.huillet@free.fr>
1194
1195 * mi/mi-cmd-var.c (mi_cmd_var_assign): Fix typo.
1196
1197 2007-06-13 Claudio Fontana <claudio.fontana@gmail.com>
1198
1199 * fork-child.c (fork_inferior): Update comment.
1200
1201 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
1202
1203 * features/Makefile: Generate regformats for mips-linux and
1204 mips64-linux.
1205 * features/sort-regs.xsl: Correct typo.
1206 * regformats/reg-mips.dat, regformats/reg-mips64.dat: Delete.
1207 * regformats/mips-linux.dat, regformats/mips64-linux.dat: New generated
1208 files.
1209
1210 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
1211
1212 * config/mips/linux.mh (TDEP_XML): New.
1213 * features/mips-linux.xml, features/mips64-linux.xml: New files.
1214 * mips-linux-nat.c (mips_linux_register_addr): Handle
1215 MIPS_RESTART_REGNUM.
1216 (mips64_linux_register_addr): Likewise.
1217 (super_xfer_partial, mips_linux_xfer_partial): New.
1218 (_initialize_mips_linux_nat): Add them to the target_ops.
1219 * mips-linux-tdep.c (mips_supply_gregset): Handle MIPS_RESTART_REGNUM.
1220 (mips_fill_gregset, mips64_supply_gregset, mips64_fill_gregset)
1221 (mips_linux_o32_sigframe_init)
1222 (mips_linux_n32n64_sigframe_init): Likewise.
1223 (mips_linux_write_pc, mips_linux_restart_reg_p): New.
1224 (mips_linux_init_abi): Use mips_linux_write_pc. Check for the
1225 "org.gnu.gdb.mips.linux" feature.
1226 * mips-linux-tdep.h (MIPS_RESTART_REGNUM): New constant.
1227 (mips_linux_restart_reg_p): New prototype.
1228 * mips-tdep.c (mips_gdbarch_init): Pass tdesc_data to the OS/ABI
1229 initialization routine.
1230 * Makefile.in (mips-linux-tdep.o, mips-linux-nat.o): Update.
1231
1232 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
1233
1234 * Makefile.in (mips-tdep.o): Update.
1235 * mips-tdep.c (struct register_alias, mips_o32_aliases)
1236 (mips_n32_n64_aliases, mips_register_aliases): New.
1237 (mips_register_name): Call tdesc_register_name.
1238 (mips_tdesc_register_reggroup_p): New.
1239 (mips_pseudo_register_type, value_of_mips_user_reg): New.
1240 (mips_gdbarch_init): Add target-described register support.
1241 Register aliases for register names.
1242 * target-descriptions.c (tdesc_register_name): Make global.
1243 (tdesc_register_in_reggroup_p): New function, broken out from
1244 tdesc_register_reggroup_p.
1245 (tdesc_register_reggroup_p): Use it.
1246 * target-descriptions.h (tdesc_register_name)
1247 (tdesc_register_in_reggroup_p): New prototypes.
1248 * NEWS: Correct formatting. Mention MIPS register support.
1249 * features/mips-cp0.xml, features/mips-fpu.xml,
1250 features/mips64-cp0.xml, gdb/features/mips64-fpu.xml, mips-cpu.xml,
1251 features/mips64-cpu.xml: New files.
1252
1253 2007-06-13 Markus Deuling <deuling@de.ibm.com>
1254
1255 * gdbarch.sh (TARGET_ADDR_BIT): Replace by gdbarch_addr_bit.
1256 * valops.c (value_cast): Likewise.
1257 * utils.c (strlen_paddr, paddr, paddr_nz, paddress): Likewise.
1258 * ui-out.c (ui_out_field_core_addr): Likewise.
1259 * tracepoint.c (tracepoints_info): Likewise.
1260 * symtab.c (print_msymbol_info): Likewise.
1261 * solib-irix.c (irix_current_sos)
1262 (irix_open_symbol_file_object): Likewise.
1263 * remote.c (build_remote_gdbarch_data): Likewise.
1264 * prologue-value.c (make_pv_area): Likewise.
1265 * procfs.c (info_mappings_callback): Likewise.
1266 * printcmd.c (print_scalar_formatted)
1267 (deprecated_print_address_numeric): Likewise.
1268 * memattr.c (mem_info_command): Likewise.
1269 * linux-nat.c (linux_nat_info_proc_cmd): Likewise.
1270 * gdbtypes.c (build_flt, gdbtypes_post_init): Likewise.
1271 * exec.c (print_section_info): Likewise.
1272 * dwarf2read.c (read_subrange_type): Likewise.
1273 * dwarf2loc.c (find_location_expression): Likewise.
1274 * dwarf2expr.c (dwarf2_read_address, unsigned_address_type)
1275 (signed_address_type, execute_stack_op): Likewise.
1276 * breakpoint.c (print_one_breakpoint, breakpoint_1): Likewise.
1277 * gdbarch.c, gdbarch.h: Regenerate.
1278
1279 2007-06-13 Markus Deuling <deuling@de.ibm.com>
1280
1281 * gdbarch.sh (TARGET_ARCHITECTURE): Replace by gdbarch_bfd_arch_info.
1282 * arch-utils.c (show_architecture): Likewise.
1283 * remote-mips.c (mips_open): Likewise
1284 * nto-tdep.c (nto_find_and_open_solib)
1285 (nto_init_solib_absolute_prefix): Likewise.
1286 * nto-procfs (procfs_open): Likewise.
1287 * m68hc11-tdep.c (gdb_print_insn_m68hc11): Likewise.
1288 * gcore.c (default_gcore_mach, default_gcore_arch): Likewise.
1289 * gdbarch.c, gdbarch.h: Regenerate.
1290
1291 2007-06-13 Markus Deuling <deuling@de.ibm.com>
1292
1293 * gdbarch.sh (TARGET_BFD_VMA_BIT): Replace by gdbarch_bfd_vma_bit.
1294 * gdbtypes.c (build_flt): Likewise.
1295 * gdbarch.c, gdbarch.h: Regenerate.
1296
1297 2007-06-13 Markus Deuling <deuling@de.ibm.com>
1298
1299 * gdbarch.sh (BREAKPOINT_FROM_PC): Replace by
1300 gdbarch_breakpoint_from_pc.
1301 * s390-tdep.c (s390_gdbarch_init): Likewise (comment).
1302 * remote.c (remote_insert_breakpoint)
1303 (remote_insert_hw_breakpoint): Likewise.
1304 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Likewise.
1305 * mips-tdep.c (mips_breakpoint_from_pc): Likewise (comment).
1306 * breakpoint.h (bp_target_info): Likewise (comment).
1307 * breakpoint.c (read_memory_nobpt): Likewise.
1308 * mem-break.c (default_memory_insert_breakpoint): Likewise.
1309 (symtab.h, breakpoint.h): Remove include. Remove unnecessary comment.
1310 * gdbarch.c, gdbarch.h: Regenerate.
1311
1312 2007-06-13 Markus Deuling <deuling@de.ibm.com>
1313
1314 * gdbarch.sh (TARGET_PTR_BIT): Replace with gdbarch_ptr_bit.
1315 * solib-svr4.c (svr4_truncate_ptr): Likewise.
1316 * solib-pa64.c (read_dynamic_info): Likewise.
1317 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets): Likewise.
1318 * solib.c (info_sharedlibrary_command): Likewise.
1319 * s390-nat.c (SUBOFF): Likewise.
1320 * p-valprint.c (pascal_val_print): Likewise.
1321 * procfs.c (info_proc_mappings): Likewise.
1322 * printcmd.c (decode_format): Likewise.
1323 * nto-tdep.c (nto_truncate_ptr): Likewise.
1324 * mips-linux-tdep.c (mips_linux_get_longjmp_target)
1325 (mips64_linux_get_longjmp_target): Likewise.
1326 * m68k-tdep.c (m68k_get_longjmp_target): Likewise.
1327 * jv-valprint.c (java_value_print): Likewise.
1328 * jv-lang.c (get_java_object_header_size): Likewise.
1329 * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Likewise.
1330 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
1331 (hppa_hpux_unwind_adjust_stub): Likewise.
1332 * gnu-v3-abi.c (build_gdb_vtable_type): Likewise.
1333 * gdbtypes.c (make_pointer_type, make_reference_type)
1334 (smash_to_memberptr_type): Likewise.
1335 * gdbarch.c, gdbarch.h: Regenerate.
1336
1337 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
1338
1339 * mips-tdep.c (mips_print_register): Remove unused ALL argument.
1340 (print_gp_register_row): Stop before printing a register bigger
1341 than the ABI register size.
1342 (mips_print_registers_info): Update call to mips_print_register.
1343
1344 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
1345
1346 * expression.h (enum exp_opcode): Document a register name for
1347 OP_REGISTER.
1348 * parse.c (write_dollar_variable): Write the register name for
1349 OP_REGISTER.
1350 (operator_length_standard): Expect the register name following
1351 OP_REGISTER.
1352 * ada-lang.c (resolve_subexp): Likewise.
1353 * ax-gdb.c (gen_expr): Likewise.
1354 * eval.c (evaluate_subexp_standard): Likewise.
1355 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
1356 Likewise.
1357 * tracepoint.c (encode_actions): Likewise.
1358
1359 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
1360
1361 * utils.c (set_screen_size): Use INT_MAX for default columns.
1362
1363 2007-06-13 Ulrich Weigand <uweigand@de.ibm.com>
1364
1365 * remote.c (remote_protocol_features): Add qXfer:spu:read and
1366 qXfer:spu:write packet types.
1367
1368 2007-06-12 Markus Deuling <deuling@de.ibm.com>
1369
1370 * gdbarch.sh (DEPRECATED_STACK_ALIGN): Remove.
1371 * gdbarch.c, gdbarch.h: Regenerate.
1372
1373 2007-06-12 Markus Deuling <deuling@de.ibm.com>
1374
1375 * gdbarch.sh (STAB_REG_TO_REGNUM): Replace by
1376 gdbarch_stab_reg_to_regnum.
1377 * stabsread.c (define_symbol): Likewise.
1378 * gdbarch.sh (ECOFF_REG_TO_REGNUM): Replace by
1379 gdbarch_ecoff_reg_to_regnum.
1380 * mdebugread.c (parse_symbol): Likewise.
1381 * i386-tdep.c (i386_gdbarch_init): Likewise (comment).
1382 * gdbarch.sh (DWARF_REG_TO_REGNUM): Replace by
1383 gdbarch_dwarf_reg_to_regnum.
1384 * gdbarch.sh (SDB_REG_TO_REGNUM): Replace by gdbarch_sdb_reg_to_regnum.
1385 * coffread.c (process_coff_symbol): Likewise.
1386 * gdbarch.sh (DWARF2_REG_TO_REGNUM): Replace by
1387 gdbarch_dwarf2_reg_to_regnum.
1388 * dwarf2loc.c (dwarf_expr_read_reg,dwarf2_evaluate_loc_desc)
1389 (locexpr_describe_location): Likewise.
1390 * dwarf2-frame.c (read_reg,execute_cfa_program,dwarf2_frame_cache)
1391 (dwarf2_frame_prev_register,dwarf2_signal_frame_this_id): Likewise.
1392 * dwarf2loc.c (DWARF2_REG_TO_REGNUM): Remove macro.
1393 * dwarf2read.c (DWARF2_REG_TO_REGNUM): Remove macro.
1394 * gdbarch.c, gdbarch.h: Regenerate.
1395
1396 2007-06-12 Markus Deuling <deuling@de.ibm.com>
1397
1398 * gdbarch.sh (SMASH_TEXT_ADDRESS): Replace by
1399 gdbarch_smash_text_address.
1400 * somread.c (som_symtab_read): Likewise.
1401 * elfread.c (record_minimal_symbol): Likewise.
1402 * dbxread.c (process_one_symbol): Likewise.
1403 * coffread.c (coff_symtab_read): Likewise.
1404 * gdbarch.c, gdbarch.h: Regenerate.
1405
1406 2007-06-12 Markus Deuling <deuling@de.ibm.com>
1407
1408 * gdbarch.sh (REGISTER_TO_VALUE): Replace by gdbarch_register_to_value.
1409 * findvar.c (value_from_register): Likewise.
1410 * gdbarch.sh (VALUE_TO_REGISTER): Replace by gdbarch_value_to_register.
1411 * valops.c (value_assign): Likewise.
1412 * gdbarch.sh (CONVERT_REGISTER_P): Replace by
1413 gdbarch_convert_register_p.
1414 * findvar.c (value_from_register): Likewise.
1415 * valops.c (value_assign): Likewise.
1416 * gdbarch.c, gdbarch.h: Regenerate.
1417
1418 2007-06-12 Markus Deuling <deuling@de.ibm.com>
1419
1420 * gdbarch.sh (REGISTER_SIM_REGNO): Replace by
1421 gdbarch_register_sim_regno.
1422 * sim-regno.h (sim_regno): Likewise (comment).
1423 * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register): Likewise.
1424 * gdbarch.c, gdbarch.h: Regenerate.
1425
1426 2007-06-12 Markus Deuling <deuling@de.ibm.com>
1427
1428 * gdbarch.sh (TARGET_VIRTUAL_FRAME_POINTER): Replace by
1429 gdbarch_virtual_frame_pointer.
1430 * tracepoint.c (encode_actions): Likewise.
1431 * dwarf2loc.c (dwarf2_loc_desc_needs_frame): Likewise.
1432 * ax-gdb.c (gen_frame_args_address, gen_frame_locals_address): Likewise.
1433 * gdbarch.c, gdbarch.h: Regenerate.
1434
1435 2007-06-12 Markus Deuling <deuling@de.ibm.com>
1436
1437 * gdbarch.sh (TARGET_FLOAT_BIT): Replace by gdbarch_float_bit.
1438 * p-lang.c (pascal_create_fundamental_type): Likewise.
1439 * objc-lang.c (objc_create_fundamental_type): Likewise.
1440 * mdebugread.c (_initialize_mdebugread): Likewise.
1441 * m2-lang.c (m2_create_fundamental_type)
1442 (_initialize_m2_language): Likewise.
1443 * gdbtypes.c (build_gdbtypes): Likewise.
1444 * f-lang.c (f_create_fundamental_type, build_fortran_types): Likewise.
1445 * doublest.c (floatformat_from_length): Likewise.
1446 * c-lang.c (c_create_fundamental_type): Likewise.
1447 * ada-lang.c (ada_create_fundamental_type)
1448 (ada_language_arch_info): Likewise.
1449 * gdbarch.sh (TARGET_FLOAT_FORMAT): Replace by gdbarch_float_format.
1450 * value.c (unpack_double): Likewise (comment).
1451 * gdbtypes.c (build_gdbtypes): Likewise.
1452 * doublest.c (floatformat_from_length): Likewise.
1453 * gdbarch.sh (TARGET_DOUBLE_BIT): Replace by gdbarch_double_bit.
1454 * valarith.c (value_binop): Likewise.
1455 * p-lang.c (pascal_create_fundamental_type): Likewise.
1456 * objc-lang.c (objc_create_fundamental_type): Likewise.
1457 * mdebugread.c (_initialize_mdebugread): Likewise.
1458 * m2-lang.c (m2_create_fundamental_type): Likewise.
1459 * gdbtypes.c (build_gdbtypes): Likewise.
1460 * f-lang.c (f_create_fundamental_type, build_fortran_types): Likewise.
1461 * doublest.c (floatformat_from_length): Likewise.
1462 * cris-tdep.c (cris_gdbarch_init): Likewise (comment).
1463 * c-lang.c (c_create_fundamental_type): Likewise.
1464 * ada-lex.l (processReal): Likewise.
1465 * ada-lang.c (ada_create_fundamental_type)
1466 (ada_language_arch_info): Likewise.
1467 * gdbarch.sh (TARGET_DOUBLE_FORMAT): Replace by gdbarch_double_format.
1468 * value.c (unpack_double): Likewise (comment).
1469 * gdbtypes.c (build_gdbtypes): Likewise.
1470 * doublest.c (floatformat_from_length): Likewise.
1471 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Replace by
1472 gdbarch_long_double_bit.
1473 * p-lang.c (pascal_create_fundamental_type): Likewise.
1474 * objc-lang.c (objc_create_fundamental_type): Likewise.
1475 * m2-lang.c (m2_create_fundamental_type): Likewise.
1476 * gdbtypes.c (build_gdbtypes): Likewise.
1477 * f-lang.c (f_create_fundamental_type, build_fortran_types): Likewise.
1478 * doublest.c (floatformat_from_length): Likewise.
1479 * c-lang.c (c_create_fundamental_type): Likewise.
1480 * ada-lex.l (processReal): Likewise.
1481 * ada-lang.c (ada_create_fundamental_type)
1482 (ada_language_arch_info): Likewise.
1483 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Replace by
1484 gdbarch_long_double_format.
1485 * gdbtypes.c (build_gdbtypes): Likewise.
1486 * doublest.c (floatformat_from_length): Likewise.
1487 * gdbarch.c, gdbarch.h: Regenerate.
1488
1489 2007-06-12 Markus Deuling <deuling@de.ibm.com>
1490
1491 * gdbarch.sh (TARGET_SHORT_BIT): Replace by gdbarch_int_bit.
1492 * ada-lang.c (ada_create_fundamental_type)
1493 (ada_language_arch_info): Likewise.
1494 * c-lang.c (c_create_fundamental_type): Likewise.
1495 * f-lang.c (f_create_fundamental_type, build_fortran_types): Likewise.
1496 * gdbtypes.c (build_gdbtypes, gdbtypes_post_init): Likewise.
1497 * m2-lang.c (m2_create_fundamental_type): Likewise.
1498 * objc-lang.c (objc_create_fundamental_type): Likewise.
1499 * p-lang.c (pascal_create_fundamental_type): Likewise.
1500 * gdbarch.sh (TARGET_INT_BIT): Replace by gdbarch_int_bit.
1501 * c-exp.y (parse_number): Likewise.
1502 * objc-exp.y (parse_number): Likewise.
1503 * ada-lex.l (processInt): Likewise.
1504 * f-exp.y (parse_number): Likewise.
1505 * p-exp.y (parse_number): Likewise.
1506 * ada-lang.c (ada_create_fundamental_type, ada_language_arch_info)
1507 (gdbtypes_post_init, build_gdbtypes): Likewise.
1508 * p-lang.c (pascal_create_fundamental_type): Likewise.
1509 * parse.c (build_parse): Likewise.
1510 * xcoffread.c (_initialize_xcoffread): Likewise.
1511 * stabsread.c (define_symbol, read_one_struct_field, read_enum_type)
1512 (read_range_type): Likewise.
1513 * objc-lang.c (objc_create_fundamental_type): Likewise.
1514 * f-lang.c (build_fortran_types, f_create_fundamental_type): Likewise.
1515 * m2-lang.c (m2_create_fundamental_type, _initialize_m2_language)
1516 (m2_create_fundamental_type): Likewise.
1517 * c-lang.c (c_create_fundamental_type): Likewise.
1518 * coffread.c (coff_read_enum_type): Likewise.
1519 * mdebugread.c (parse_symbol, _initialize_mdebugread): Likewise.
1520 * dwarf2read.c (new_symbol): Likewise.
1521 * gdbarch.sh (TARGET_LONG_BIT): Replace by gdbarch_long_bit.
1522 * c-exp.y (parse_number): Likewise.
1523 * objc-exp.y (parse_number): Likewise.
1524 * ada-lex.l (processInt): Likewise.
1525 * f-exp.y (parse_number): Likewise.
1526 * p-exp.y (parse_number): Likewise.
1527 * valarith.c (value_binop): Likewise.
1528 * symfile.c (read_target_long_array, simple_overlay_update_1): Likewise.
1529 * ada-lang.c (ada_create_fundamental_type)
1530 (ada_language_arch_info): Likewise.
1531 * gdbtypes.c (build_gdbtypes, gdbtypes_post_init): Likewise.
1532 * symfile.c (TARGET_LONG_BYTES): Likewise.
1533 * p-lang.c (pascal_create_fundamental_type): Likewise.
1534 * objc-lang.c (objc_create_fundamental_type): Likewise.
1535 * m2-lang.c (m2_create_fundamental_type): Likewise.
1536 * f-lang.c (f_create_fundamental_type): Likewise.
1537 * c-lang.c (c_create_fundamental_type): Likewise.
1538 * coffread.c (decode_base_type): Likewise.
1539 * gdbarch.sh (TARGET_LONG_LONG_BIT): Replace by gdbarch_long_long_bit.
1540 * c-exp.y (parse_number): Likewise.
1541 * objc-exp.y (parse_number): Likewise.
1542 * p-exp.y (parse_number): Likewise.
1543 * ada-lang.c (ada_create_fundamental_type)
1544 (ada_language_arch_info): Likewise.
1545 * gdbtypes.c (gdbtypes_post_init, build_gdbtypes): Likewise.
1546 * stabsread.c (read_range_type): Likewise.
1547 * p-lang.c (pascal_create_fundamental_type): Likewise.
1548 * objc-lang.c (objc_create_fundamental_type): Likewise.
1549 * m2-lang.c (m2_create_fundamental_type): Likewise.
1550 * f-lang.c (f_create_fundamental_type): Likewise.
1551 * c-lang.c (c_create_fundamental_type): Likewise.
1552 * gdbarch.c, gdbarch.h: Regenerate.
1553
1554 2007-06-12 Andreas Schwab <schwab@suse.de>
1555
1556 * frame-unwind.h (frame_dealloc_cache_ftype): Define.
1557 (struct frame_unwind): Add dealloc_cache.
1558 * frame.c (reinit_frame_cache): Call dealloc_cache on all caches.
1559
1560 * libunwind-frame.h (libunwind_frame_dealloc_cache): Declare.
1561 * libunwind-frame.c (libunwind_frame_dealloc_cache): Define.
1562 (libunwind_frame_unwind): Set dealloc_cache.
1563 * ia64-tdep.c (ia64_libunwind_frame_unwind): Set dealloc_cache.
1564
1565 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
1566 Markus Deuling <deuling@de.ibm.com>
1567
1568 * remote.c (remote_write_qxfer): New function.
1569 (remote_xfer_partial): Add handling for TARGET_OBJECT_SPU.
1570 (remote_read_qxfer): Do not cache empty objects.
1571 (_initialize_remote): Add PACKET_qXfer_spu_read and
1572 PACKET_qXfer_spu_write.
1573
1574 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
1575
1576 * target.h (enum target_object): Add TARGET_OBJECT_SPU.
1577 * spu-linux-nat.c (spu_xfer_partial): Handle TARGET_OBJECT_SPU.
1578
1579 * spu-tdep.h (SPU_NUM_PSEUDO_REGS): Add 5 pseudo registers.
1580 (enum spu_regnum): Add SPU_FPSCR_REGNUM, SPU_SRR0_REGNUM,
1581 SPU_LSLR_REGNUM, SPU_DECR_REGNUM, SPU_DECR_STATUS_REGNUM.
1582 * spu-tdep.c (infospucmdlist): New variable.
1583 (spu_register_name): Handle additional pseudo registers.
1584 (spu_register_type): Likewise.
1585 (spu_pseudo_register_read): Likewise.
1586 (spu_pseudo_register_write): Likewise.
1587 (spu_pseudo_register_read_spu): New function.
1588 (spu_pseudo_register_write_spu): Likewise.
1589 (info_spu_event_command): New function.
1590 (info_spu_signal_command): Likewise.
1591 (info_spu_mailbox_list): Likewise.
1592 (info_spu_mailbox_command): Likewise.
1593 (spu_mfc_get_bitfield): Likewise.
1594 (info_spu_dma_cmdlist): Likewise.
1595 (info_spu_dma_command): Likewise.
1596 (info_spu_proxydma_command): Likewise.
1597 (info_spu_command): Likewise.
1598 (_initialize_spu_tdep): Install "info spu" commands.
1599
1600 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
1601
1602 * spu-linux-nat.c (spu_proc_xfer_spu): Do not return failure when
1603 accessing non-seekable spufs files.
1604
1605 2007-06-09 Markus Deuling <deuling@de.ibm.com>
1606
1607 * gdbarch.sh (SKIP_TRAMPOLINE_CODE): Replace by
1608 gdbarch_skip_trampoline_code.
1609 * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Likewise (comment).
1610 * objc-lang.c (objc_skip_trampoline)
1611 (objc_submethod_helper_data): Likewise.
1612 * m32c-lang.c (m32c_skip_trampoline_code): Likewise (comment).
1613 * infrun.c (handle_inferior_event): Likewise.
1614 * gnu-v3-abi.c (gnuv3_skip_trampoline): Likewise.
1615 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Replace by
1616 gdbarch_in_solib_return_trampoline.
1617 * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Likewise (comment).
1618 * infrun.c (handle_inferior_event): Likewise.
1619 * hppa-tdep.c (hppa_stub_unwind_sniffer): Likewise.
1620 * gdbarch.c, gdbarch.h: Regenerate.
1621
1622 2007-06-09 Markus Deuling <deuling@de.ibm.com>
1623
1624 * gdbarch.sh (SKIP_PROLOGUE): Replace by gdbarch_skip_prologue.
1625 * symtab.c (find_function_start_sal, in_prologue): Likewise.
1626 * linespec.c (minsym_found): Likewise.
1627 * infrun.c (step_into_function): Likewise.
1628 * gdbarch.c, gdbarch.h: Regenerate.
1629
1630 2007-06-09 Markus Deuling <deuling@de.ibm.com>
1631
1632 * gdbarch.sh (NAME_OF_MALLOC): Replace by gdbarch_name_of_malloc.
1633 * valops.c (value_allocate_space_in_inferior): Likewise.
1634 * gdbarch.c, gdbarch.h: Regenerate.
1635
1636 2007-06-09 Markus Deuling <deuling@de.ibm.com>
1637
1638 * gdbarch.sh (MEMORY_INSERT_BREAKPOINT): Replace by
1639 gdbarch_memory_insert_breakpoint.
1640 * mem-break.c (memory_insert_breakpoint): Likewise.
1641 * gdbarch.sh (MEMORY_REMOVE_BREAKPOINT): Replace by
1642 gdbarch_memory_remove_breakpoint.
1643 * mem-break.c (memory_remove_breakpoint): Likewise.
1644 * gdbarch.c, gdbarch.h: Regenerate.
1645
1646 2007-06-09 Markus Deuling <deuling@de.ibm.com>
1647
1648 * gdbarch.sh (FETCH_TLS_LOAD_MODULE_ADDRESS): Replace by
1649 gdbarch_fetch_tls_load_module_address.
1650 * gdbarch.sh (FETCH_TLS_LOAD_MODULE_ADDRESS_P): Replace by
1651 gdbarch_fetch_tls_load_module_address_p.
1652 * gdbarch.c, gdbarch.h: Regenerate.
1653
1654 2007-06-09 Markus Deuling <deuling@de.ibm.com>
1655
1656 * gdbarch.sh (DECR_PC_AFTER_BREAK): Replace by
1657 gdbarch_decr_pc_after_break.
1658 * tracepoint.c (trace_dump_command): Likewise.
1659 * solib-sunos.c (sunos_solib_create_inferior_hook): Likewise.
1660 * linux-thread-db.c (check_event): Likewise.
1661 * linux-nat.c (cancel_breakpoints_callback): Likewise.
1662 * infrun.c (adjust_pc_after_break, normal_stop): Likewise.
1663 * frame.h: Likewise (comment).
1664 * dummy-frame.c (deprecated_pc_in_call_dummy): Likewise.
1665 * aix-thread.c (aix_thread_wait): Likewise.
1666 * gdbarch.c, gdbarch.h: Regenerate.
1667
1668 2007-06-09 Markus Deuling <deuling@de.ibm.com>
1669
1670 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS): Replace by
1671 gdbarch_address_class_type_flags.
1672 * dwarf2read.c (read_tag_pointer_type): Likewise.
1673 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS_P): Replace by
1674 gdbarch_address_class_type_flags_p.
1675 * dwarf2read.c (read_tag_pointer_type): Likewise.
1676 * gdbarch.c, gdbarch.h: Regenerate.
1677
1678 2007-06-09 Markus Deuling <deuling@de.ibm.com>
1679
1680 * gdbarch.sh (ADDR_BITS_REMOVE): Replace by gdbarch_addr_bits_remove.
1681 * value.c (value_as_address): Likewise (comment).
1682 * remote-mips.c (common_breakpoint): Likewise.
1683 * regcache.c (read_pc_pid): Likewise.
1684 * printcmd.c (do_one_display): Likewise.
1685 * monitor.c (monitor_write_memory, monitor_read_memory)
1686 (monitor_insert_breakpoint): Likewise.
1687 * mips-tdep.c (heuristic_proc_start): Likewise.
1688 * infrun.c (insert_step_resume_breakpoint_at_frame)
1689 (insert_step_resume_breakpoint_at_caller): Likewise.
1690 * buildsym.c (record_line): Likewise.
1691 * arm-tdep.c (arm_scan_prologue, thumb_get_next_pc)
1692 (arm_get_next_pc): Likewise.
1693 * armnbsd-nat.c (arm_supply_gregset, fetch_register, store_register)
1694 (store_regs): Likewise.
1695 * arm-linux-tdep.c (arm_linux_supply_gregset): Likewise.
1696 * arm-linux-nat.c (fetch_register, fetch_regs): Likewise.
1697 * gdbarch.c, gdbarch.h: Regenerate.
1698
1699 2007-06-09 Markus Deuling <deuling@de.ibm.com>
1700
1701 * gdbarch.sh (REGISTER_NAME): Replace by gdbarch_register_name.
1702 * tracepoint.c (scope_info): Likewise.
1703 * target.c (debug_print_register): Likewise.
1704 * stack.c (frame_info): Likewise.
1705 * sh-tdep.c (sh_register_reggroup_p): Likewise.
1706 * sh64-tdep.c (sh64_do_fp_register, sh64_do_register)
1707 (sh64_media_print_registers_info)
1708 (sh64_compact_print_registers_info): Likewise.
1709 * rs6000-tdep.c (rs6000_register_reggroup_p): Likewise.
1710 * remote-sim.c (gdbsim_fetch_register): Likewise.
1711 * remote.c (packet_reg): Likewise (comment).
1712 * reggroups.c (default_register_reggroup_p): Likewise.
1713 * regcache.c (regcache_dump): Likewise.
1714 * printcmd.c (address_info): Likewise.
1715 * ppc-linux-nat.c (fetch_register, store_register): Likewise.
1716 * mt-dep.c (mt_registers_info): Likewise.
1717 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Likewise (comment).
1718 * mips-tdep.c (mips_register_reggroup_p, mips_read_fp_register_single)
1719 (mips_read_fp_register_double, mips_print_fp_register)
1720 (mips_print_register, print_gp_register_row, mips_print_registers_info)
1721 (mips_register_sim_regno): Likewise.
1722 * m68klinux-nat.c (regmap, fetch_register, store_register): Likewise.
1723 * inf-ptrace.c (inf_ptrace_fetch_register)
1724 (inf_ptrace_store_register): Likewise.
1725 * infcmd.c (default_print_registers_info): Likewise.
1726 * ia64-linux-nat.c (ia64_linux_fetch_register)
1727 (ia64_linux_store_register): Likewise.
1728 * i386-linux-nat.c (fetch_register, store_register): Likewise.
1729 * i386gnu-nat.c (gnu_fetch_registers, gnu_store_registers): Likewise.
1730 * hppa-linux-nat.c (fetch_register, store_register): Likewise.
1731 * hppa-hpux-nat.c (hppa_hpux_fetch_register)
1732 (hppa_hpux_store_register): Likewise.
1733 * findvar.c (locate_var_value): Likewise.
1734 * dwarf2loc.c (locexpr_describe_location): Likewise.
1735 * dwarf2-frame.c (execute_cfa_program): Likewise.
1736 * arm-tdep.c (arm_push_dummy_call): Likewise.
1737 * arch-utils.c (legacy_register_sim_regno): Likewise.
1738 * alpha-tdep.c (alpha_register_reggroup_p): Likewise.
1739 * alpha-nat.c (fetch_osf_core_registers): Likewise.
1740 * mi/mi-main.c (mi_cmd_data_list_register_names)
1741 (mi_cmd_data_list_changed_registers, mi_cmd_data_list_register_values)
1742 (mi_cmd_data_write_register_values): Likewise.
1743 * gdbarch.c, gdbarch.h: Regenerate.
1744
1745 2007-06-07 Daniel Jacobowitz <dan@codesourcery.com>
1746
1747 * target-memory.c (blocks_to_erase): Correct off-by-one error.
1748
1749 2007-06-06 Vladimir Prus <vladimir@codesourcery.com>
1750
1751 * remote.c (process_g_packet): Don't check size.
1752 * gdbarch.sh: Remove register_bytes_ok.
1753 * gdbarch.c: Regenerated.
1754 * gdbarch.h: Regenerated.
1755 * m68k-tdep.c (REGISTER_BYTES_NOFP): Remove.
1756 (m68k_register_bytes_ok): Remove.
1757 (m68k_gdbarch_init): Don't register m68k_register_bytes_ok.
1758
1759 2007-06-06 Andreas Schwab <schwab@suse.de>
1760
1761 * libunwind-frame.c (unw_destroy_addr_space_p): Define.
1762 (destroy_addr_space_name): Define.
1763 (libunwind_load): Get address of destroy_addr_space function.
1764 (libunwind_frame_cache): Destroy unw_addr_space_t object before
1765 returning unsuccessfully.
1766 (libunwind_frame_sniffer): Destroy unw_addr_space_t object before
1767 returning.
1768 (libunwind_sigtramp_frame_sniffer): Likewise.
1769 (libunwind_get_reg_special): Likewise.
1770
1771 2007-06-06 Markus Deuling <deuling@de.ibm.com>
1772
1773 * gdbarch.sh (FETCH_POINTER_ARGUMENT): Replace by
1774 gdbarch_fetch_pointer_argument.
1775 * objc-lang.c (OBJC_FETCH_POINTER_ARGUMENT): Likewise.
1776 * gdbarch.c, gdbarch.h: Regenerate.
1777
1778 2007-06-06 Markus Deuling <deuling@de.ibm.com>
1779
1780 * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Replace by
1781 gdbarch_have_nonsteppable_watchpoint.
1782 * infrun.c (handle_inferior_event, adjust_pc_after_break): Likewise.
1783 * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Replace by
1784 gdbarch_cannot_step_breakpoint.
1785 * infrun.c (resume): Likewise.
1786 * gdbarch.c, gdbarch.h: Regenerate.
1787
1788 2007-06-06 Markus Deuling <deuling@de.ibm.com>
1789
1790 * gdbarch.sh (FRAME_ARGS_SKIP): Replace by gdbarch_frame_args_skip.
1791 * stack.c (print_frame_args): Likewise.
1792 * gdbarch.sh (FRAME_NUM_ARGS): Replace by gdbarch_frame_num_args.
1793 * stack.c (print_args_stub, frame_info): Likewise.
1794 * gdbarch.sh (FRAME_NUM_ARGS_P): Replace by gdbarch_frame_num_args_p.
1795 * stack.c (print_args_stub, frame_info): Likewise.
1796 * gdbarch.c, gdbarch.h: Regenerate.
1797
1798 2007-06-06 Markus Deuling <deuling@de.ibm.com>
1799
1800 * gdbarch.sh (COFF_MAKE_MSYMBOL_SPECIAL): Replace by
1801 gdbarch_coff_make_msymbol_special.
1802 * coffread.c (coff_symtab_read): Likewise.
1803 * gdbarch.sh (ELF_MAKE_MSYMBOL_SPECIAL): Replace by
1804 gdbarch_elf_make_msymbol_special.
1805 * elfread.c (elf_symtab_read): Likewise.
1806 * mips-tdep.c (mips_elf_make_msymbol_special): Likewise (comment).
1807 * sh64-tdep.c (MSYMBOL_IS_SPECIAL): Likewise (comment).
1808 * gdbarch.c, gdbarch.h: Regenerate.
1809
1810 2007-06-06 Markus Deuling <deuling@de.ibm.com>
1811
1812 * gdbarch.sh (FRAME_RED_ZONE_SIZE): Replace by
1813 gdbarch_frame_red_zone_size.
1814 * gdbarch.c, gdbarch.h: Regenerate.
1815
1816 2007-06-06 Markus Deuling <deuling@de.ibm.com>
1817
1818 * gdbarch.sh (INNER_THAN): Replace by gdbarch_inner_than.
1819 * infcall.c (call_function_by_hand): Likewise.
1820 * gcore.c (derive_stack_segment): Likewise.
1821 * frame.c (frame_id_inner): Likewise.
1822 * arch-utils.c (core_addr_lessthan): Likewise (comment).
1823 * ada-lang.c (ensure_lval): Likewise.
1824 * gdbarch.c, gdbarch.h: Regenerate.
1825
1826 2007-06-06 Markus Deuling <deuling@de.ibm.com>
1827
1828 * gdbarch.sh (ADDRESS_TO_POINTER): Replace by
1829 gdbarch_address_to_pointer.
1830 * findvar.c (store_typed_address): Likewise.
1831 * gdbtypes.c (make_pointer_type): Likewise (comment).
1832 * procfs.c (procfs_address_to_host_pointer): Likewise.
1833 * std-regs.c (value_of_builtin_frame_reg): Likewise.
1834 (value_of_builtin_frame_fp_reg): Likewise.
1835 (value_of_builtin_frame_pc_reg): Likewise.
1836 * utils.c (paddress): Likewise (comment).
1837 * gdbarch.sh (POINTER_TO_ADDRESS): Replace by
1838 gdbarch_pointer_to_address.
1839 * findvar.c (extract_typed_address): Likewise.
1840 * gdbtypes.c (make_pointer_type): Likewise (comment).
1841 * valops.c (value_cast): Likewise (comment).
1842 * gdbarch.c, gdbarch.h: Regenerate.
1843
1844 2007-06-06 Markus Deuling <deuling@de.ibm.com>
1845
1846 * gdbarch.sh (GET_LONGJMP_TARGET): Replace by gdbarch_get_longjmp_target.
1847 * infrun.c (handle_inferior_event): Likewise.
1848 * gdbarch.sh (GET_LONGJMP_TARGET_P): Replace by
1849 gdbarch_get_longjmp_target_p.
1850 * breakpoint.c (breakpoint_re_set): Likewise.
1851 * infrun.c (handle_inferior_event): Likewise.
1852 * gdbarch.c, gdbarch.h: Regenerate.
1853
1854 2007-06-06 Ulrich Weigand <uweigand@de.ibm.com>
1855
1856 * hppa-hpux-tdep.c (args_for_find_stub, HP_ACC_EH_notify_hook,
1857 HP_ACC_EH_set_hook_value, HP_ACC_EH_notify_callback, HP_ACC_EH_break,
1858 HP_ACC_EH_catch_throw, HP_ACC_EH_catch_catch, __eh_notification,
1859 hp_cxx_exception_support, hp_cxx_exception_support_initialized,
1860 eh_notify_hook_addr, eh_notify_callback_addr, eh_break_addr,
1861 eh_catch_throw_addr, break_callback_sal, setup_d_pid_in_inferior,
1862 find_stub_with_shl_get, cover_find_stub_with_shl_get,
1863 initialize_hp_cxx_exception_support, child_enable_exception_callback,
1864 current_ex_event, child_get_current_exception_event): Remove.
1865 (hppa_hpux_inferior_created): Remove.
1866 (hppa_hpux_init_abi): Do not install hppa_hpux_inferior_created.
1867
1868 * breakpoint.h (deprecated_exception_catchpoints_are_fragile): Remove.
1869 (deprecated_exception_support_initialized): Remove.
1870 * breakpoint.c (deprecated_exception_catchpoints_are_fragile): Remove.
1871 (deprecated_exception_support_initialized): Remove.
1872 (breakpoint_init_inferior): Remove handling of non-zero
1873 deprecated_exception_catchpoints_are_fragile.
1874
1875 * symtab.h (deprecated_hp_som_som_object_present): Remove.
1876 * symtab.c (deprecated_hp_som_som_object_present): Remove.
1877 * c-typeprint.c (c_type_print_base): Remove handling of non-zero
1878 deprecated_hp_som_som_object_present.
1879 * eval.c (evaluate_subexp_standard): Likewise.
1880 * valops.c (value_cast): Likewise.
1881
1882 * parse.c (parse_nested_classes_for_hpacc, coloncolon): Remove.
1883 * parser-defs.h (parse_nested_classes_for_hpacc): Remove.
1884 * c-exp.y (yylex): Do not call parse_nested_classes_for_hpacc.
1885
1886 2007-06-06 Ulrich Weigand <uweigand@de.ibm.com>
1887
1888 * objfiles.h (ImportEntry, ExportEntry): Remove types.
1889 (struct objfile): Remove import_list, import_list_size,
1890 export_list, export_list_size members.
1891 (is_in_import_list): Remove prototype.
1892 * objfiles.c (is_in_import_list): Remove.
1893 * somread.c (init_import_symbols, init_export_symbols): Remove.
1894 (som_symfile_read): Do not call init_import_symbols. Do not
1895 set objfile->export_list and objfile->export_list_size.
1896
1897 2007-06-05 Daniel Jacobowitz <dan@codesourcery.com>
1898
1899 * dwarf2read.c (dwarf2_symbol_mark_computed): Fix formatting.
1900 Use the original objfile if necessary.
1901
1902 2007-06-04 Daniel Jacobowitz <dan@codesourcery.com>
1903
1904 * defs.h (ldirname): New prototype.
1905 * dwarf2read.c (read_file_scope): Use DW_AT_name if DW_AT_comp_dir is
1906 missing.
1907 * utils.c (ldirname): New function.
1908 * xml-tdesc.c (file_read_description_xml): Use ldirname.
1909
1910 2007-06-01 Ulrich Weigand <uweigand@de.ibm.com>
1911
1912 * spu-tdep.c (spu_push_dummy_call): Store stack back chain.
1913
1914 2007-06-01 Joel Brobecker <brobecker@adacore.com>
1915
1916 * solib-svr4.c (svr4_solib_create_inferior_hook): Remove warning.
1917
1918 2007-06-01 Ulrich Weigand <uweigand@de.ibm.com>
1919
1920 * irix5-nat.c (JB_ELEMENT_SIZE, get_longjmp_target): Remove.
1921
1922 2007-06-01 Ulrich Weigand <uweigand@de.ibm.com>
1923
1924 * ppc-linux-tdep.c (INSTR_SC, INSTR_LI_R0_0x6666, INSTR_LI_R0_0x7777,
1925 INSTR_LI_R0_NR_sigreturn, INSTR_LI_R0_NR_rt_sigreturn): Remove.
1926 (PPC_LINUX_SIGNAL_FRAMESIZE, PPC_LINUX_REGS_PTR_OFFSET,
1927 PPC_LINUX_HANDLER_PTR_OFFSET): Remove.
1928 (ppc_linux_in_sigtramp, insn_is_sigreturn,
1929 ppc_linux_at_sigtramp_return_path): Remove.
1930
1931 2007-05-31 Markus Deuling <deuling@de.ibm.com>
1932
1933 * xtensa-tdep.c (XTENSA_IS_ENTRY, extract_call_winsize)
1934 (xtensa_register_write_masked, xtensa_register_read_masked)
1935 (xtensa_extract_return_value, xtensa_store_return_value
1936 (xtensa_push_dummy_call, xtensa_breakpoint_from_pc): Replace
1937 TARGET_BYTE_ORDER by gdbarch_byte_order.
1938 * sh-tdep.c (sh_breakpoint_from_pc, gdb_print_insn_sh)
1939 (sh_justify_value_in_reg, sh_next_flt_argreg, sh_push_dummy_call_fpu)
1940 (sh_extract_return_value_fpu, sh_store_return_value_fpu): Likewise.
1941 * sh64-tdep.c (sh64_breakpoint_from_pc, gdb_print_insn_sh64)
1942 (sh64_push_dummy_call, sh64_extract_return_value)
1943 (sh64_store_return_value, sh64_register_convert_to_virtual)
1944 (sh64_register_convert_to_raw, sh64_pseudo_register_read)
1945 (sh64_pseudo_register_write, sh64_do_fp_register)
1946 (sh64_frame_prev_register): Likewise.
1947 * score-tdep.c (score_print_insn, score_breakpoint_from_pc)
1948 (score_return_value, score_push_dummy_call, score_fetch_inst): Likewise.
1949 * rs6000-tdep.c (rs6000_breakpoint_from_pc, rs6000_push_dummy_call)
1950 (e500_move_ev_register,gdb_print_insn_powerpc): Likewise.
1951 * remote-m32r-sdi.c (m32r_resume, m32r_wait): Likewise.
1952 * ppc-linux-nat.c (store_register): Likewise.
1953 * nto-tdep.c (nto_find_and_open_solib)
1954 (nto_init_solib_absolute_prefix): Likewise.
1955 * mips-tdep.c (mips_pseudo_register_read, mips_pseudo_register_write)
1956 (mips_convert_register_p, mips_eabi_push_dummy_call)
1957 (mips_n32n64_push_dummy_call, mips_n32n64_return_value)
1958 (mips_o32_push_dummy_call, mips_o32_return_value)
1959 (mips_o64_push_dummy_call, mips_o64_return_value, mips_o64_return_value)
1960 (mips_read_fp_register_single, mips_read_fp_register_double)
1961 (mips_print_register, print_gp_register_row, gdb_print_insn_mips)
1962 (mips_breakpoint_from_pc): Likewise.
1963 * mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset): Likewise.
1964 * mips-linux-tdep.c (mips64_supply_fpregset, mips64_fill_fpregset)
1965 (mips_linux_o32_sigframe_init): Likewise.
1966 * m32r-tdep.c (m32r_memory_insert_breakpoint)
1967 (m32r_memory_remove_breakpoint, m32r_breakpoint_from_pc): Likewise.
1968 * libunwind-frame.c (libunwind_frame_cache, libunwind_frame_sniffer)
1969 (libunwind_sigtramp_frame_sniffer, libunwind_get_reg_special): Likewise.
1970 * iq2000-tdep.c (iq2000_breakpoint_from_pc): Likewise.
1971 * coffread.c (process_coff_symbol): Likewise.
1972 * arm-tdep.c (convert_from_extended, convert_to_extended)
1973 (gdb_print_insn_arm): Likewise.
1974
1975 2007-05-31 Markus Deuling <deuling@de.ibm.com>
1976
1977 * gdbarch.sh (NUM_REGS): Replace by gdbarch_num_regs.
1978 * i386-tdep.c (i386_dbx_reg_to_regnum)
1979 (i386_svr4_reg_to_regnum): Likewise.
1980 * inf-ptrace.c (inf_ptrace_fetch_registers)
1981 (inf_ptrace_store_registers): Likewise.
1982 * corelow.c (get_core_registers): Likewise.
1983 * i386-linux-nat.c (supply_gregset, fill_gregset)
1984 (i386_linux_fetch_inferior_registers)
1985 (i386_linux_store_inferior_registers): Likewise.
1986 * remote.c (init_remote_state,packet_reg_from_regnum)
1987 (packet_reg_from_pnum,process_g_packet,remote_fetch_registers)
1988 (remote_prepare_to_store,store_registers_using_G)
1989 (remote_store_registers,remote_arch_state): Likewise.
1990 * tracepoint.c (encode_actions): Likewise.
1991 * mi/mi-main.c (mi_cmd_data_list_register_names)
1992 (mi_cmd_data_list_changed_registers,mi_cmd_data_list_register_values)
1993 (mi_cmd_data_write_register_values): Likewise.
1994 * tui/tui-regs.c (tui_show_register_group)
1995 (tui_show_register_group): Likewise.
1996 * xtensa-tdep.h (FP_ALIAS): Likewise.
1997 * xtensa-tdep.c (xtensa_register_name,xtensa_register_type)
1998 (xtensa_reg_to_regnum,xtensa_pseudo_register_read)
1999 (xtensa_pseudo_register_write,xtensa_register_reggroup_p): Likewise.
2000 * win32-nat.c (do_win32_fetch_inferior_registers)
2001 (do_win32_store_inferior_registers,fetch_elf_core_registers
2002 * user-regs.h: Likewise (comment).
2003 * user-regs.c (user_reg, user_reg_map_name_to_regnum): Likewise.
2004 * trad-frame.c (trad_frame_alloc_saved_regs): Likewise.
2005 * target-descriptions.h: Likewise (comment).
2006 * target-descriptions.c (tdesc_use_registers): Likewise (comment).
2007 * target.c (debug_print_register): Likewise.
2008 * stack.c (frame_info): Likewise.
2009 * stabsread.c (define_symbol): Likewise.
2010 * sh64-tdep.c (sh64_do_pseudo_register,sh64_print_register)
2011 (sh64_media_print_registers_info)
2012 (sh64_compact_print_registers_info): Likewise.
2013 * rs6000-tdep.c (rs6000_register_sim_regno): Likewise.
2014 * rs6000-nat.c (fetch_register,store_register): Likewise.
2015 * remote-sim.c (one2one_register_sim_regno,gdbsim_fetch_register)
2016 (gdbsim_fetch_register,gdbsim_store_register): Likewise.
2017 * remote-mips.c (mips_fetch_registers,mips_store_registers): Likewise.
2018 * remote-m32r-sdi.c (m32r_fetch_registers)
2019 (m32r_store_registers): Likewise.
2020 * reggroups.c (default_register_reggroup_p): Likewise.
2021 * regcache.c (init_regcache_descr,register_size,regcache,regcache_save)
2022 (regcache_restore,regcache_dump): Likewise.
2023 * monitor.c (monitor_fetch_registers,monitor_store_registers): Likewise.
2024 * mips-tdep.c (mips_xfer_register,mips_register_name)
2025 (mips_register_reggroup_p,mips_pseudo_register_read)
2026 (mips_pseudo_register_write,mips_convert_register_p,mips_register_type)
2027 (mips_unwind_pc,mips_unwind_sp,mips_unwind_dummy_id,set_reg_offset)
2028 (mips16_scan_prologue,mips_insn16_frame_cache,reset_saved_regs)
2029 (mips32_scan_prologue,mips_insn32_frame_cache,read_next_frame_reg)
2030 (mips_n32n64_return_value,mips_o32_return_value,mips_o64_return_value)
2031 (print_gp_register_row,mips_print_registers_info)
2032 (mips_stab_reg_to_regnum,mips_dwarf_dwarf2_ecoff_reg_to_regnum)
2033 (mips_register_sim_regno): Likewise.
2034 * mips-linux-tdep.c (mips_linux_o32_sigframe_init)
2035 (mips_linux_n32n64_sigframe_init): Likewise.
2036 * mips-linux-nat.c (mips_linux_register_addr)
2037 (mips64_linux_register_addr): Likewise.
2038 * findvar.c (value_of_register): Likewise.
2039 * infcmd.c (default_print_registers_info,registers_info)
2040 (print_vector_info,print_float_info): Likewise.
2041 * mips64obsd-tdep.c (mips64obsd_sigframe_init): Likewise.
2042 * inf-child.c (inf_child_fetch_inferior_registers): Likewise.
2043 * m68k-tdep.c (m68k_dwarf_reg_to_regnum): Likewise.
2044 * m68hc11-tdep.c (m68hc11_frame_unwind_cache(: Likewise.
2045 * m32r-tdep.c (m32r_frame_unwind_cache): Likewise.
2046 * ia64-linux-nat.c (ia64_register_addr,ia64_cannot_fetch_register)
2047 (ia64_cannot_store_register,ia64_linux_fetch_registers)
2048 (ia64_linux_store_registers): Likewise.
2049 * hpux-thread.c (hpux_thread_fetch_registers)
2050 (hpux_thread_store_registers): Likewise.
2051 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM,E_PSEUDO_EXR_REGNUM)
2052 (h8300_init_frame_cache,h8300_frame_cache,h8300_frame_prev_register)
2053 (h8300_register_type): Likewise.
2054 * dwarf2-frame.c (dwarf2_frame_cache)
2055 (dwarf2_frame_state_alloc_regs): Likewise.
2056 * cris-tdep.c (cris_register_size,cris_cannot_fetch_register)
2057 (cris_cannot_store_register,crisv32_cannot_fetch_register)
2058 (crisv32_cannot_store_register,cris_register_name): Likewise.
2059 * avr-tdep.c (avr_frame_unwind_cache): Likewise.
2060 * arch-utils.c (legacy_register_sim_regno)
2061 (legacy_virtual_frame_pointer): Likewise.
2062 * arm-tdep.c (arm_make_prologue_cache,arm_register_sim_regno):Likewise.
2063 * arm-tdep.h: Likewise (comment).
2064 * frv-tdep.c (frv_register_sim_regno): Likewise.
2065 * m68klinux-nat.c (old_fetch_inferior_registers)
2066 (old_store_inferior_registers): Likewise.
2067 * m32c-tdep.c (m32c_virtual_frame_pointer): Likewise.
2068 * irix5-nat.c (fetch_core_registers): Likewise.
2069 * hppa-tdep.c (hppa_frame_cache): Likewise.
2070 * hppa-linux-nat.c (hppa_linux_register_addr)
2071 (hppa_linux_fetch_inferior_registers)
2072 (hppa_linux_store_inferior_registers): Likewise.
2073 * hppa-hpux-nat.c (hppa_hpux_fetch_inferior_registers)
2074 (hppa_hpux_store_inferior_registers): Likewise.
2075 * amd64-nat.c (amd64_native_gregset_reg_offset)
2076 (amd64_supply_native_gregset,amd64_collect_native_gregset): Likewise.
2077 * dbug-rom.c (dbug_regname): Likewise.
2078 * m68hc11-tdep.c (m68hc11_frame_unwind_cache)
2079 (HARD_PAGE_REGNUM (comment)): Likewise.
2080 * gdbarch.sh (NUM_PSEUDO_REGS): Replace by gdbarch_num_pseudo_regs.
2081 * i386-tdep.c (i386_dbx_reg_to_regnum)
2082 (i386_svr4_reg_to_regnum): Likewise.
2083 * mi/mi-main.c (mi_cmd_data_list_register_names)
2084 (mi_cmd_data_list_changed_registers,mi_cmd_data_list_register_values)
2085 (mi_cmd_data_write_register_values): Likewise.
2086 * gdbarch.c, gdbarch.h: Regenerate.
2087 * tui/tui-regs.c (tui_show_register_group): Likewise.
2088 * xtensa-tdep.h (FP_ALIAS): Likewise.
2089 * user-regs.h: Likewise (comment).
2090 * user-regs.c (user_reg, user_reg_map_name_to_regnum): Likewise.
2091 * trad-frame.c (trad_frame_alloc_saved_regs): Likewise.
2092 * target-descriptions.h: Likewise (comment).
2093 * target.c (debug_print_register): Likewise.
2094 * stack.c (frame_info): Likewise.
2095 * stabsread.c (define_symbol): Likewise.
2096 * sh64-tdep.c (sh64_print_register,sh64_media_print_registers_info)
2097 (sh64_compact_print_registers_info): Likewise.
2098 * rs6000-tdep.c (rs6000_register_sim_regno): Likewise.
2099 * regcache.c (init_regcache_descr,register_size,regcache,regcache_save
2100 (regcache_restore,regcache_dump): Likewise.
2101 * mips-tdep.c (print_gp_register_row,mips_print_registers_info)
2102 (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
2103 (mips_stab_reg_to_regnum): Likewise.
2104 * findvar.c (value_of_register): Likewise.
2105 * infcmd.c (default_print_registers_info,registers_info)
2106 (print_vector_info,print_float_info): Likewise.
2107 * m68k-tdep.c (m68k_dwarf_reg_to_regnum): Likewise.
2108 * h8300-tdep.c (h8300_register_type): Likewise.
2109 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
2110 * frame.h (SIZEOF_FRAME_SAVED_REGS): Likewise.
2111 * xtensa-tdep.c (xtensa_register_type,xtensa_reg_to_regnum)
2112 (xtensa_pseudo_register_read,xtensa_pseudo_register_write): Likewise.
2113 * parse.c: Remove comment.
2114 * gdbarch.c, gdbarch.h: Regenerate
2115
2116 2007-05-31 Markus Deuling <deuling@de.ibm.com>
2117
2118 * gdbarch.sh (CANNOT_FETCH_REGISTER): Replace by
2119 gdbarch_cannot_fetch_register.
2120 * alpha-nat.c (fetch_osf_core_registers): Likewise.
2121 * hppa-linux-nat.c (fetch_register): Likewise.
2122 * inf-ptrace.c (inf_ptrace_fetch_register): Likewise.
2123 * m68klinux-nat.c (fetch_register): Likewise.
2124 * mipsnbsd-tdep.c (mipsnbsd_supply_reg, mipsnbsd_supply_fpreg):
2125 Likewise.
2126 * gdbarch.sh (CANNOT_STORE_REGISTER): Replace by
2127 gdbarch_cannot_store_register.
2128 * hppa-linux-nat.c (store_register): Likewise.
2129 * inf-ptrace.c (inf_ptrace_store_register): Likewise.
2130 * regcache.c (regcache_raw_write): Likewise.
2131 * m68klinux-nat.c (store_register): Likewise.
2132 * mipsnbsd-tdep.c (mipsnbsd_fill_reg, mipsnbsd_fill_fpreg): Likewise.
2133 * gdbarch.c, gdbarch.h: Regenerate.
2134
2135 2007-05-31 Markus Deuling <deuling@de.ibm.com>
2136
2137 * gdbarch.sh (TARGET_OSABI): Replace by gdbarch_osabi.
2138 * gdbarch.c, gdbarch.h: Regenerate.
2139
2140 2007-05-31 Markus Deuling <deuling@de.ibm.com>
2141
2142 * gdbarch.sh (TARGET_CHAR_SIGNED): Replace by gdbarch_char_signed.
2143 * gdbtypes.c (build_gdbtypes, gdbtypes_post_init): Likewise.
2144 * gdbarch.c, gdbarch.h: Regenerate.
2145
2146 2007-05-31 Markus Deuling <deuling@de.ibm.com>
2147
2148 * gdbarch.sh (TARGET_BYTE_ORDER): Replace by gdbarch_byte_order.
2149 * ax-gdb.c (gen_bitfield_ref): Likewise.
2150 * mi/mi-main.c (get_register): Likewise.
2151 * findvar.c (default_value_from_register, extract_signed_integer)
2152 (extract_unsigned_integer, extract_long_unsigned_integer)
2153 (store_signed_integer, store_unsigned_integer): Likewise.
2154 * regcache.c (regcache_dump): Likewise.
2155 * value.c (lookup_internalvar, value_of_internalvar)
2156 (set_internalvar): Likewise.
2157 * defs.h: Likewise.
2158 * valprint.c (print_binary_chars, print_octal_chars)
2159 (print_decimal_chars, print_hex_chars, print_char_chars): Likewise.
2160 * infcmd.c (default_print_registers_info): Likewise.
2161 * arch-utils.c (selected_byte_order, show_endian): Likewise.
2162 * stabsread.c (define_symbol): Likewise.
2163 * doublest.c (floatformat_from_length, floatformat_from_type)
2164 (extract_typed_floating, store_typed_floating): Likewise.
2165 * gdbarch.c, gdbarch.h: Regenerate.
2166
2167 2007-05-31 Markus Deuling <deuling@de.ibm.com>
2168
2169 * gdbarch.sh (CALL_DUMMY_LOCATION): Replace by
2170 gdbarch_call_dummy_location.
2171 * infcall.c (call_function_by_hand): Likewise.
2172 * inferior.h: Change comment.
2173 * arch-utils.c: Change comment.
2174 * gdbarch.c, gdbarch.h: Regenerate.
2175
2176 2007-05-28 Joel Brobecker <brobecker@adacore.com>
2177
2178 * solib-aix5.c: Delete.
2179 * Makefile.in (solib-aix5.o): Delete rule.
2180
2181 2007-05-23 Daniel Jacobowitz <dan@codesourcery.com>
2182
2183 * breakpoint.h (enum bpstat_what_main_action): Remove
2184 BPSTAT_WHAT_THROUGH_SIGTRAMP.
2185 * infrun.c (process_event_stop_test): Do not check for it.
2186
2187 2007-05-22 Chris Dearman <chris@mips.com>
2188 Maciej W. Rozycki <macro@mips.com>
2189
2190 * ser-unix.c (show_serial_hwflow): New function.
2191 (hardwire_raw): Add hardware flow control support.
2192 (_initialize_ser_hardwire): Add "set/show remoteflow".
2193 * Makefile.in (ser-unix.o): Depend on $(gdbcmd_h).
2194 * NEWS: Document the new command.
2195
2196 2007-05-21 Ulrich Weigand <uweigand@de.ibm.com>
2197
2198 * config/i386/tm-linux.h (sys_quotactl): Do not define.
2199 * configure.ac (sys_quotactl, START_INFERIOR_TRAPS_EXPECTED): Do not
2200 define for i[[3456]]86-*-linux* native configurations.
2201 * config.in, configure: Regenerate.
2202
2203 2007-05-19 Joel Brobecker <brobecker@adacore.com>
2204
2205 * rs6000-nat.c (xcoff_relocate_symtab): Do nothing if debugging
2206 a core file. Add comment in the function description.
2207
2208 2007-05-18 Caroline Tice <ctice@apple.com>
2209
2210 * c-valprint.c (c_value_print): If the initialized field of the
2211 value struct is 0, print out "[uninitialized]" before the value.
2212 * dwarf2expr.c (execute_stack_op): Initialize ctx->initialized field;
2213 allow DW_OP_GNU_uninit as legal op following a DW_OP_reg op or a
2214 DW_OP_regx op; add case for DW_OP_GNU_uninit and update
2215 ctx->initialized appropriately. Verify no location op follows
2216 DW_OP_GNU_uninit.
2217 * dwarf2expr.h (struct dwarf_expr_context): New field, initialized.
2218 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Add call to
2219 set_value_initialized.
2220 * dwarf2read.c (dwarf_stack_op_name): Add case for DW_OP_GNU_uninit.
2221 (decode_locdesc): Add case for DW_OP_GNU_uninit.
2222 * value.c (struct value): New field, initialized.
2223 (allocate_value): Initialize new field.
2224 (set_value_initialized): New function.
2225 (value_initialized): New function.
2226 * value.h (value_initialized): New extern declaration.
2227 (set_value_initialized): Likewise.
2228
2229 2007-05-18 Caroline Tice <ctice@apple.com>
2230
2231 * MAINTAINERS (Write After Approval): Add self.
2232
2233 2007-05-17 Joel Brobecker <brobecker@adacore.com>
2234
2235 * gdbtypes.c (make_reference_type): Preserve the type chain
2236 and set the length of all the variants of the pointer type.
2237
2238 2007-05-17 Joel Brobecker <brobecker@adacore.com>
2239
2240 * gdbtypes.c (make_pointer_type): Preserve the pointer type chain
2241 and set the length of all the variants of the pointer type.
2242
2243 2007-05-17 Maciej W. Rozycki <macro@mips.com>
2244
2245 * mips-tdep.c (mips_n32n64_push_dummy_call): Fix and reformat a
2246 comment.
2247 (mips_o64_push_dummy_call): Reformat a comment.
2248
2249 2007-05-17 Qinwei <qinwei@sunnorth.com.cn>
2250
2251 * score-tdep.c (score_frame_cache->fp, score_analyze_prologue)
2252 (score_prologue_frame_base_address): Return fp to keep gdb print
2253 local variables correctly when debugging information is stabs.
2254
2255 (score_analyze_prologue): For software watchpoint, fetch all the
2256 instructions from range [startaddr, pc] once and identify them locally
2257 to reduce memory access.
2258 (score_malloc_and_get_memblock, score_free_memblock)
2259 (score_adjust_memblock_ptr): New functions.
2260 (score_fetch_inst): Fetch single instruction or mutiple instructions.
2261
2262 (score_target_can_use_watch, score_stopped_by_watch)
2263 (score_target_insert_watchpoint, score_target_remove_watchpoint)
2264 (score_target_insert_hw_breakpoint, score_target_remove_hw_breakpoint):
2265 New functions for remote & local hw-watchpoint and hw-breakpoint.
2266
2267 2007-05-16 Alfred M. Szmidt <ams@gnu.org>
2268
2269 * reply_mig_hack.awk: Check for `auto const mach_msg_type_t'
2270 declarations as well.
2271
2272 2007-05-16 Ulrich Weigand <uweigand@de.ibm.com>
2273
2274 * config/arm/embed.mt (DEPRECATED_TM_FILE): Set to tm-arm.h.
2275 * config/arm/tm-embed.h: Delete file.
2276
2277 * arm-tdep.h (arm_software_single_step): Declare.
2278 * arm-tdep.c (arm_software_single_step): Make global.
2279 (arm_gdbarch_init): Move set_gdbarch_software_single_step call
2280 from here to ...
2281 * arm-linux-tdep.c (arm_linux_init_abi): ... here ...
2282 * armnbsd-tdep.c (arm_netbsd_init_abi_common): ... here ...
2283 * armobsd-tdep.c (armobsd_init_abi): ... here ...
2284 * arm-wince-tdep.c (arm_wince_init_abi): ... and here.
2285
2286 * arm-tdep.c (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT): No longer
2287 allow defines to be overriden by TM file.
2288 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Likewise. Also,
2289 change default to {0xbe,0xbe}.
2290 * armobsd-tdep.c (arm_obsd_thumb_le_breakpoint,
2291 arm_obsd_thumb_be_breakpoint): New global variables.
2292 (armobsd_init_abi): Override tdep->thumb_breakpoint and
2293 tdep->thumb_breakpoint_size.
2294 * arm-wince-tdep.c (arm_wince_thumb_le_breakpoint): New variable.
2295 (arm_wince_init_abi): Override tdep->thumb_breakpoint and
2296 tdep->thumb_breakpoint_size.
2297
2298 * arm-tdep.c (arm_gdbarch_init): Add set_gdbarch_skip_trampoline_code.
2299
2300 2007-05-16 Daniel Jacobowitz <dan@codesourcery.com>
2301
2302 * NEWS: Mention removed "set mips stack-arg-size" and "set mips
2303 saved-gpreg-size".
2304
2305 * mips-tdep.c (MIPS32_REGSIZE, MIPS64_REGSIZE): New constants.
2306 (size_auto, size_32, size_64, size_enums, mips_abi_regsize_string)
2307 (mips_stack_argsize_string, mips_stack_argsize): Delete.
2308 (mips_abi_regsize): Simplify.
2309 (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call)
2310 (mips_n32n64_return_value, mips_o32_push_dummy_call)
2311 (mips_o32_return_value, mips_o64_push_dummy_call)
2312 (mips_o64_return_value): Propogate constant register sizes. Use the
2313 ABI register size instead of mips_stack_argsize.
2314 (mips_dump_tdep): Don't print mips_stack_argsize.
2315 (_initialize_mips_tdep): Remove saved-gpreg-size and stack-arg-size
2316 settings.
2317
2318 2007-05-16 Daniel Jacobowitz <dan@codesourcery.com>
2319
2320 * config/mips/linux.mt (DEPRECATED_TM_FILE): Delete.
2321 * config/mips/tm-linux.h: Delete.
2322 * mips-linux-tdep.c (mips_svr4_so_ops): New.
2323 (mips_linux_in_dynsym_resolve_code): Make static. Use
2324 svr4_in_dynsym_resolve_code.
2325 (mips_linux_init_abi): Initialize mips_svr4_so_ops. Call
2326 set_solib_ops.
2327 * solib-svr4.c (svr4_in_dynsym_resolve_code, svr4_so_ops): Make
2328 global.
2329 * solib-svr4.h (svr4_so_ops, svr4_in_dynsym_resolve_code): Declare.
2330 * Makefile.in (mips-linux-tdep.o): Update.
2331 * solib.c (set_solib_ops): New.
2332 (current_target_so_ops): Update comment.
2333 * solib.h (set_solib_ops): New prototype.
2334
2335 2007-05-16 Chris Dearman <chris@mips.com>
2336
2337 * printcmd.c (do_examine): Fix typos in a comment.
2338
2339 2007-05-16 Richard Sandiford <richard@codesourcery.com>
2340
2341 * configure.ac: Allow sysroots to be relocated under $prefix as
2342 well as $exec_prefix.
2343 * configure: Regenerate.
2344
2345 2007-05-14 Ulrich Weigand <uweigand@de.ibm.com>
2346
2347 * hppa-hpux-tdep.c: Do not include <dl.h> or <machine/save_state.h>.
2348 (offsetof): Do not define.
2349 (find_stub_with_shl_get): Use numerical value 3 instead of
2350 symbolic value TYPE_PROCEDURE.
2351
2352 2007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
2353
2354 * gdb_proc_service.h (paddr_t): Delete typedef.
2355 * proc-service.c (ps_addr_to_core_addr, core_addr_to_ps_addr): New.
2356 (ps_xfer_memory): Take a psaddr_t. Use ps_addr_to_core_addr.
2357 (ps_pglobal_lookup): Take a psaddr_t *. Use core_addr_to_ps_addr.
2358 (ps_pdread, ps_pdwrite, ps_ptread, ps_ptwrite): Take a psaddr_t.
2359 * sol-thread.c (gdb_ps_addr_t): Use psaddr_t instead of paddr_t.
2360 * Makefile.in (proc-service.o): Update.
2361
2362 2007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
2363
2364 * Makefile.in (mips-tdep.o): Update.
2365 * mips-tdep.c (mips_gdbarch_init): Register the dwarf2 CFI
2366 unwinder.
2367
2368 2007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
2369
2370 * dwarf2-frame.c (dwarf2_frame_prev_register): Use pack_long
2371 instead of store_typed_address.
2372 * value.c (pack_long): New.
2373 (value_from_longest): Use it.
2374 * value.h (pack_long): New prototype.
2375
2376 2007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
2377
2378 * dwarf2-frame.c (read_encoded_value): Correct typo. Use
2379 DW_EH_PE_signed if appropriate.
2380
2381 2007-05-14 Paul Brook <paul@codesourcery.com>
2382 Daniel Jacobowitz <dan@codesourcery.com>
2383
2384 * dwarf2read.c (dwarf2_debug_line_missing_file_complaint): New
2385 function.
2386 (dwarf_decode_lines): Check for line info without a file.
2387
2388 2007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
2389
2390 * linux-thread-db.c (thread_db_pid_to_str): Print thread IDs
2391 as hexadecimal.
2392
2393 2007-05-14 Daniel Jacobowitz <dan@codesourcery.com>
2394
2395 * jv-exp.y (push_fieldnames): Use STRUCTOP_PTR instead of
2396 STRUCTOP_STRUCT.
2397 * jv-lang.c (evaluate_subexp_java): Handle STRUCTOP_PTR instead of
2398 STRUCTOP_STRUCT.
2399 * jv-typeprint.c (java_print_type): Do not crash on NULL varstring.
2400
2401 2007-05-14 Ulrich Weigand <uweigand@de.ibm.com>
2402
2403 * gdbarch.sh (read_sp): Remove.
2404 * gdbarch.c, gdbarch.h: Regenerate.
2405 * frame.c (frame_sp_unwind): Do not call TARGET_READ_SP.
2406
2407 * avr-tdep.c (avr_read_sp): Remove.
2408 (avr_unwind_sp): New function.
2409 (avr_gdbarch_init): Install unwind_sp instead of read_sp callback.
2410 * mips-tdep.c (mips_read_sp): Remove.
2411 (mips_unwind_sp): New function.
2412 (mips_gdbarch_init): Install unwind_sp instead of read_sp callback.
2413 * score-tdep.c (score_read_unsigned_register): Remove.
2414 (score_read_sp): Remove.
2415 (score_unwind_sp): New function.
2416 (score_gdbarch_init): Install unwind_sp instead of read_sp callback.
2417
2418 2007-05-14 Maxim Grigoriev <maxim2405@gmail.com>
2419
2420 * buildsym.c (start_subfile): Handle absolute pathnames
2421 while comparing subfile names.
2422
2423 2007-05-13 Ulrich Weigand <uweigand@de.ibm.com>
2424
2425 * hppa-hpux-tdep.c: Include "regcache.h".
2426 * hppa-linux-tdep.c: Likewise.
2427 * hppa-tdep.c: Include "gdb_stdint.h".
2428 (find_unwind_entry): Cast host pointer to uintptr_t before passing
2429 it to paddr_nz.
2430 * Makefile.in: Update dependencies.
2431
2432 2007-05-13 Ulrich Weigand <uweigand@de.ibm.com>
2433
2434 * blockframe.c: Remove obsolete comments.
2435 * alpha-nat.c (fetch_osf_core_registers): Update comment.
2436 * arm-tdep.h (enum gdb_regnum): Remove obsolete part of comment.
2437 * hppa-tdep.h (enum hppa_regnum): Likewise.
2438 * mips-tdep.h: Likewise.
2439 * m68hc11-tdep.c: Likewise.
2440
2441 2007-05-13 Ulrich Weigand <uweigand@de.ibm.com>
2442
2443 * inferior.h (read_sp): Remove prototype.
2444 * regcache.c (read_sp): Remove.
2445 * gcore.c (derive_stack_segment): Use get_frame_sp instead of read_sp.
2446 * infcall.c (call_function_by_hand): Likewise.
2447 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Use regcache instead
2448 of calling read_sp.
2449 * rs6000-tdep.c (rs6000_push_dummy_call): Likewise.
2450
2451 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
2452
2453 * i386-linux-nat.c (i386_linux_resume): Use regcache functions
2454 instead of read_register and read_register_pid.
2455
2456 * ia64-linux-nat.c (enable_watchpoints_in_psr): Use REGCACHE
2457 argument instead of PTID. Use regcache functions instead of
2458 read_register_pid.
2459 (ia64_linux_insert_watchpoint): Update call.
2460 (ia64_linux_stopped_data_address): Use regcache functions
2461 instead of read_register_pid and write_register_pid.
2462
2463 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
2464
2465 * libunwind-frame.h (struct regcache): Add forward declaration.
2466 (libunwind_get_reg_special): Add REGCACHE argument.
2467 * libunwind-frame.c (libunwind_get_reg_special): Add REGCACHE
2468 argument. Pass it to unw_init_remote_p.
2469
2470 * ia64-tdep.c (ia64_pseudo_register_read): Pass regcache to
2471 libunwind_get_reg_special.
2472 (ia64_access_reg): Remove "write" case.
2473 (ia64_access_fpreg): Likewise. Read from next_frame passed
2474 as callback argument instead of from current_regcache.
2475 (ia64_access_rse_reg): Remove "write" case. Read from regcache
2476 passed as callback argument instead of from current_regcache.
2477 (ia64_access_rse_fpreg): New function.
2478 (ia64_unw_rse_acce): Use it instead of ia64_access_fpreg.
2479
2480 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
2481
2482 * NEWS: Mention SPU overlay support.
2483
2484 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
2485
2486 * spu-tdep.c (spu_frame_unwind_cache): Add comment.
2487
2488 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
2489
2490 * breakpoint.c (remove_breakpoint): Do not remove software
2491 breakpoints in unmapped overlay sections.
2492
2493 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
2494
2495 * spu-tdep.c: Include "observer.h".
2496 (spu_frame_unwind_cache): Unwind PC through overlay return stubs.
2497 (spu_overlay_data): New variable.
2498 (struct spu_overlay_table): New type.
2499 (spu_get_overlay_table, spu_overlay_update_osect, spu_overlay_update,
2500 spu_overlay_new_objfile): New functions.
2501 (spu_gdbarch_init): Install spu_overlay_update.
2502 (_initialize_spu_tdep): Register spu_overlay_new_objfile,
2503 allocate spu_overlay_data objfile data.
2504
2505 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
2506
2507 * gdbarch.sh (overlay_update): New gdbarch function.
2508 (struct obj_section): Add forward declaration.
2509 * gdbarch.c, gdbarch.h: Regenerate.
2510
2511 * symfile.c (simple_overlay_update): Make global.
2512 (target_overlay_update): Remove variable.
2513 (overlay_is_mapped): Call gdbarch_overlay_update instead of
2514 target_overlay_update.
2515 (overlay_load_command): Likewise.
2516 * symfile.h (struct obj_section): Add forward declaration.
2517 (simple_overlay_update): Add prototype.
2518
2519 * m32r-tdep.c (m32r_gdbarch_init): Install simple_overlay_update.
2520
2521 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
2522
2523 * observer.sh: Add "struct objfile" forward declaration.
2524 * target.h (deprecated_target_new_objfile_hook): Remove.
2525 * symfile.c (deprecated_target_new_objfile_hook): Remove.
2526 (clear_symtab_users): Call observer_notify_new_objfile.
2527 (symbol_file_add_with_addrs_or_offsets): Likewise.
2528 * rs6000-nat.c: Include "observer.h".
2529 (vmap_ldinfo): Call observer_notify_new_objfile.
2530 (xcoff_relocate_core): Likewise.
2531 * remote.c (remote_new_objfile_chain): Remove.
2532 (remote_new_objfile): Do not call remote_new_objfile_chain.
2533 (_initialize_remote): Use observer_attach_new_objfile.
2534 * tui/tui-hooks.c (tui_target_new_objfile_chain): Remove.
2535 (tui_new_objfile_hook): Do not call tui_target_new_objfile_chain.
2536 (_initialize_tui_hooks): Use observer_attach_new_objfile.
2537 * aix-thread.c: Include "observer.h".
2538 (target_new_objfile_chain): Remove.
2539 (new_objfile): Do not call target_new_objfile_chain.
2540 (_initialize_aix_thread): Use observer_attach_new_objfile.
2541 * hpux-thread.c: Include "observer.h"
2542 (target_new_objfile_chain): Remove.
2543 (hpux_thread_new_objfile): Make static. Do not call
2544 target_new_objfile_chain.
2545 (_initialize_hpux_thread): Use observer_attach_new_objfile.
2546 * linux-thread-db.c: Include "observer.h".
2547 (target_new_objfile_chain): Remove.
2548 (thread_db_new_objfile): Do not call target_new_objfile_chain.
2549 (_initialize_thread_db): Use observer_attach_new_objfile.
2550 * sol-thread.c: Include "observer.h".
2551 (target_new_objfile_chain): Remove.
2552 (sol_thread_new_objfile): Make static. Do not call
2553 target_new_objfile_chain.
2554 (_initialize_sol_thread): Use observer_attach_new_objfile.
2555 * Makefile.in (aix-thread.o, hpux-thread.o, linux-thread-db.o,
2556 rs6000-nat.o, sol-thread.o, tui-hooks.o): Add dependency on
2557 $(observer_h).
2558
2559 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
2560
2561 * gdbarch.sh (remote_translate_xfer_address): Remove.
2562 * gdbarch.h, gdbarch.c: Regenerate.
2563 * arch-utils.c (generic_remote_translate_xfer_address): Remove.
2564 * arch-utils.h (generic_remote_translate_xfer_address): Remove.
2565 * remote.c (remote_write_bytes_aux, remote_read_bytes): Do not
2566 call gdbarch_remote_translate_xfer_address.
2567 * frv-tdep.c (frv_gdbarch_init): Do not call
2568 set_gdbarch_remote_translate_xfer_address.
2569 * ia64-tdep.c (ia64_remote_translate_xfer_address): Remove.
2570 (ia64_gdbarch_init): Do not install it.
2571
2572 2007-05-11 Bob Wilson <bob.wilson@acm.org>
2573
2574 * NEWS: Mention change in handling the -tui option.
2575
2576 2007-05-11 Daniel Jacobowitz <dan@codesourcery.com>
2577
2578 * linux-thread-db.c (enable_thread_event_reporting): Fix comment
2579 typo.
2580
2581 2007-05-11 Ulrich Weigand <uweigand@de.ibm.com>
2582
2583 * breakpoint.c (single_step_breakpoint_inserted_here_p): New function.
2584 (breakpoint_inserted_here_p): Call it.
2585 (software_breakpoint_inserted_here_p): Likewise.
2586
2587 2007-05-10 Ulrich Weigand <uweigand@de.ibm.com>
2588
2589 * inf-ptrace.c (inf_ptrace_register_u_offset): Adapt parameter list.
2590 (inf_ptrace_fetch_register): Add register_u_offset callback parameters
2591 GDBARCH and STORE_P. Handle callback (CORE_ADDR) -1 return value.
2592 (inf_ptrace_store_register): Likewise.
2593 (inf_ptrace_trad_target): Adapt register_u_offset parameter list.
2594 * inf-ptrace.h (inf_ptrace_trad_target): Likewise.
2595
2596 * vax-nat.c (vax_register_u_offset): Adapt parameter list.
2597
2598 * linux-nat.c (linux_trad_target): Adapt parameter list.
2599 * linux-nat.h (linux_trad_target): Likewise.
2600
2601 * alpha-linux-nat.c (alpha_linux_register_u_offset): Adapt parameters.
2602
2603 * mips-linux-nat.c (mips_linux_cannot_fetch_register): Remove.
2604 (mips_linux_cannot_store_register): Likewise.
2605 (mips_linux_register_addr): Add GDBARCH and STORE_P parameters.
2606 Return (CORE_ADDR) -1 for registers that cannot be fetched or
2607 stored via ptrace. Use GDBARCH instead of current_gdbarch.
2608 (mips64_linux_register_addr): Likewise.
2609 (mips_linux_register_u_offset): Adapt parameter list. Pass
2610 GDBARCH and STORE_P on to mips{64}_linux_register_addr.
2611
2612 * config/mips/linux.mh (NAT_FILE): Set to config/nm-linux.h.
2613 * config/mips/nm-linux.h: Delete file.
2614
2615 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
2616
2617 * remote.c (remote_detach): Error out if remote can't detach.
2618
2619 2007-05-10 Luis Machado <luisgpm@br.ibm.com>
2620
2621 * rs6000-tdep.c: (deal_with_atomic_sequence) Stores branch
2622 instruction's opcode in the "opcode" variable and declares new
2623 variable "closing_insn".
2624
2625 2007-05-10 Chris Dearman <chris@mips.com>
2626 Maciej W. Rozycki <macro@mips.com>
2627
2628 * cli/cli-setshow.c (do_setshow_command): Remove trailing
2629 whitespace when setting a var_filename.
2630
2631 2007-05-09 Bob Wilson <bob.wilson@acm.org>
2632
2633 * main.c (captured_main): Recognize -tui option and print an error
2634 message when the TUI is not configured.
2635
2636 2007-05-09 Andreas Schwab <schwab@suse.de>
2637
2638 * mipsnbsd-tdep.c (mipsnbsd_ilp32_fetch_link_map_offsets): Don't
2639 set removed members.
2640 (mipsnbsd_lp64_fetch_link_map_offsets): Likewise.
2641
2642 2007-05-08 Ulrich Weigand <uweigand@de.ibm.com>
2643
2644 * gdbarch.sh (deprecated_store_struct_return): Remove.
2645 * gdbarch.c, gdbarch.h: Regenerate.
2646 * frv-tdep.c (frv_store_struct_return): Remove.
2647 (frv_gdbarch_init): Do not install it.
2648
2649 2007-05-08 Ulrich Weigand <uweigand@de.ibm.com>
2650
2651 * config/i386/nm-i386sol2.h (USE_PROC_FS): Do not define.
2652 * config/mips/nm-irix5.h (USE_PROC_FS): Do not define.
2653 * config/nm-linux.h (USE_PROC_FS): Do not undefine.
2654
2655 2007-05-08 Ulrich Weigand <uweigand@de.ibm.com>
2656
2657 * spu-linux-nat.c: Include "gdb_stdint.h".
2658 (fetch_ppc_register): Use uint64_t instead of unsigned long long.
2659 (fetch_ppc_memory_1, store_ppc_memory_1): Likewise.
2660 (fetch_ppc_memory, store_ppc_memory): Fix coding style.
2661 (spu_symbol_file_add_from_memory): Use strtoulst instead of sscanf.
2662 (spu_child_wait): Mark up string for translation.
2663
2664 2007-05-08 Paul Gilliam <pgilliam@us.ibm.com>
2665 Luis Machado <luisgpm@br.ibm.com>
2666
2667 * rs6000-tdep.c: (LWARX_MASK, LWARX_INSTRUCTION, LDARX_INSTRUCTION,
2668 STWCX_MASK, STWCX_INSTRUCTION, STDCX_INSTRUCTION, BC_MASK,
2669 BC_INSTRUCTION): Define.
2670 (deal_with_atomic_sequence): New function.
2671 (rs6000_software_single_step): Call deal_with_atomic_sequence.
2672 (rs6000_gdbarch_init): Install deal_with_atomic_sequence as
2673 gdbarch_software_single_step routine.
2674
2675 2007-05-07 Ulrich Weigand <uweigand@de.ibm.com>
2676
2677 * spu-linux-nat.c (fetch_ppc_register, fetch_ppc_memory_1,
2678 store_ppc_memory_1, fetch_ppc_memory, store_ppc_memory,
2679 parse_spufs_run, spu_bfd_iovec_pread, spu_bfd_open,
2680 spu_symbol_file_add_from_memory, spu_child_post_startup_inferior,
2681 spu_child_post_attach, spu_fetch_inferior_registers,
2682 spu_store_inferior_registers, spu_xfer_partial): Store PPE-side
2683 memory addresses as ULONGEST, not CORE_ADDR.
2684
2685 2007-05-07 Ulrich Weigand <uweigand@de.ibm.com>
2686
2687 * gdbarch.sh: Add skip_permanent_breakpoint callback.
2688 * gdbarch.h, gdbarch.c: Regenerate.
2689
2690 * infrun.c (SKIP_PERMANENT_BREAKPOINT): Remove default definition.
2691 (resume): Call gdbarch_skip_permanent_breakpoint instead of
2692 SKIP_PERMANENT_BREAKPOINT. Inline default case.
2693
2694 * hppa-hpux-tdep.c (hppa_skip_permanent_breakpoint): Make static.
2695 Add REGCACHE argument. Use it instead of read/write_register.
2696 (hppa_hpux_init_abi): Install hppa_skip_permanent_breakpoint.
2697
2698 * config/pa/tm-hppah.h: Delete file.
2699 * config/pa/hppa64.mt (DEPRECATED_TM_FILE): Set to tm-hppa.h.
2700 * config/pa/hppahpux.mt (DEPRECATED_TM_FILE): Likewise.
2701
2702 2007-05-07 Daniel Jacobowitz <dan@codesourcery.com>
2703
2704 * Makefile.in (c-lang.o, gnu-v3-abi.o): Update.
2705 * NEWS: Mention improved C++ thunk support.
2706 * c-lang.c (cplus_language_defn): Mention cplus_skip_trampoline.
2707 * cp-abi.c (cplus_skip_trampoline): New.
2708 * cp-abi.h (cplus_skip_trampoline): New prototype.
2709 (struct cp_abi_ops): Add skip_trampoline member.
2710 * gnu-v3-abi.c (gnuv3_skip_trampoline): New.
2711 (init_gnuv3_ops): Set skip_trampoline.
2712
2713 2007-05-06 Daniel Jacobowitz <dan@codesourcery.com>
2714
2715 * rs6000-tdep.c (struct frame_extra_info): Delete.
2716
2717 2007-05-06 Daniel Jacobowitz <dan@codesourcery.com>
2718
2719 * linux-thread-db.c: Update some FIXME comments.
2720 (thread_db_xfer_partial): Delete.
2721 (init_thread_db_ops): Do not set to_xfer_partial.
2722
2723 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
2724
2725 * inftarg.c, infptrace.c: Remove files.
2726 * Makefile.in (ALLDEPFILES): Remove inftarg.c and infptrace.c
2727 (inftarg.o, infptrace.o): Remove rules.
2728 * gdbcore.h (register_addr): Remove prototype.
2729 * inferior.h (kill_inferior, store_inferior_registers,
2730 fetch_inferior_registers, attach, detach, ptrace_wait, child_resume,
2731 call_ptrace, pre_fork_inferior): Remove prototypes.
2732 * target.h (child_xfer_memory, child_pid_to_exec_file,
2733 child_core_file_to_sym_file, child_post_attach,
2734 child_post_startup_inferior, child_acknowledge_created_inferior,
2735 child_insert_fork_catchpoint, child_remove_fork_catchpoint,
2736 child_insert_vfork_catchpoint, child_remove_vfork_catchpoint,
2737 child_insert_exec_catchpoint, child_remove_exec_catchpoint,
2738 child_follow_fork, child_reported_exec_events_per_exec_call,
2739 child_has_exited, child_thread_alive): Remove prototypes.
2740
2741 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
2742
2743 * sparc-nat.h (sparc_fetch_inferior_registers): Add prototype.
2744 (sparc_store_inferior_registers): Likewise.
2745 * sparc-nat.c (fetch_inferior_registers): Rename to ...
2746 (sparc_fetch_inferior_registers): ... this.
2747 (store_inferior_registers): Rename to ...
2748 (sparc_store_inferior_registers): ... this.
2749 (sparc_target): Update callback names.
2750 * sparc-linux.nat.c (_initialize_sparc_linux_nat): Likewise.
2751 * sparc64-linux.nat.c (_initialize_sparc64_linux_nat): Likewise.
2752
2753 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
2754
2755 * linux-nat.c (child_post_attach): Rename to ...
2756 (linux_child_post_attach): ... this. Make static.
2757 (child_follow_fork): Rename to ...
2758 (linux_child_follow_fork): ... this. Make static.
2759 (child_insert_fork_catchpoint): Rename to ...
2760 (linux_child_insert_fork_catchpoint): ... this. Make static.
2761 (child_insert_vfork_catchpoint): Rename to ...
2762 (linux_child_insert_vfork_catchpoint): ... this. Make static.
2763 (child_insert_exec_catchpoint): Rename to ...
2764 (linux_child_insert_exec_catchpoint): ... this. Make static.
2765 (child_pid_to_exec_file): Rename to ...
2766 (linux_child_pid_to_exec_file): ... this. Make static.
2767 Add prototype.
2768 (linux_handle_extended_wait): Update call.
2769 (linux_xfer_partial): Update callback routine names.
2770
2771 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
2772
2773 * configure.host (alpha*-*-osf[12]*): Remove support.
2774 * NEWS: Mention removed configurations.
2775
2776 * config/alpha/alpha-osf1.mh: Delete file.
2777 * config/alpha/alpha-osf2.mh: Delete file.
2778 * config/alpha/alpha-osf3.mh (NATDEPFILES): Remove inftarg.o
2779 and infptrace.o.
2780 * config/alpha/nm-osf.h: Delete file.
2781 * config/alpha/nm-osf2.h: Delete file.
2782 * config/alpha/nm-osf3.h: Do not include "nm-osf2.h".
2783 (START_INFERIOR_TRAPS_EXPECTED): Copy from nm-osf.h.
2784 (PROCFS_DONT_TRACE_FAULTS): Copy from nm-osf2.h.
2785
2786 * alpha-nat.c (ALPHA_UNIQUE_PTRACE_ADDR): Do not define.
2787 (register_addr, kernel_u_size): Remove.
2788 Do not check for "defined(USE_PROC_FS) || defined(HAVE_GREGSET_T)".
2789
2790 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
2791
2792 * regcache.c (regcache_invalidate): New function.
2793 (register_cached): Remove.
2794 (set_register_cached): Remove.
2795 (deprecated_registers_fetched): Remove.
2796 (registers_changed): Use regcache_invalidate instead
2797 of set_register_cached.
2798 (regcache_raw_read): Update comment.
2799
2800 * regcache.h (regcache_invalidate): Add prototype.
2801 (register_cached): Remove.
2802 (set_register_cached): Remove.
2803 (deprecated_registers_fetched): Remove.
2804
2805 * findvar.c (value_of_register): Do not call register_cached.
2806 * frame.c (frame_register): Likewise.
2807 * tui/tui-regs.c (tui_get_register): Likewise.
2808
2809 * remote.c (fetch_register_using_p): Do not call set_register_cached.
2810 (process_g_packet): Likewise.
2811 (remote_fetch_registers): Likewise.
2812 * remote-sim.c (gdbsim_fetch_register): Likewise.
2813 * mt-tdep.c (mt_select_coprocessor): Replace set_register_cached call
2814 by regcache_invalidate.
2815 (mt_pseudo_register_write): Likewise.
2816 * sh-tdep.c (sh_pseudo_register_write): Likewise.
2817
2818 * corelow.c (get_core_registers): Replace deprecated_registers_fetched
2819 call by loop over regcache_raw_supply (..., NULL).
2820
2821 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
2822
2823 * target.h (struct target_ops): Add REGCACHE parameter to
2824 to_prepare_to_store.
2825 (target_prepare_to_store): Likewise.
2826 * target.c (debug_to_prepare_to_store): Add REGCACHE parameter.
2827 (update_current_target): Adapt prepare_to_store de_fault rule.
2828
2829 * regcache.c (regcache_raw_write): Pass regcache to
2830 target_prepare_to_store.
2831
2832 * inftarg.c (child_prepare_to_store): Add REGCACHE parameter.
2833 Do not call CHILD_PREPARE_TO_STORE.
2834 * gnu-nat.c (gnu_prepare_to_store): Likewise.
2835 * procfs.c (procfs_prepare_to_store): Likewise.
2836
2837 * inf-child.c (inf_child_prepare_to_store): Add REGCACHE parameter.
2838 * go32-nat.c (go32_prepare_to_store): Likewise.
2839 * monitor.c (monitor_prepare_to_store): Likewise.
2840 * nto-procfs.c (procfs_prepare_to_store): Likewise.
2841 * remote-m32r-sdi.c (m32r_prepare_to_store): Likewise.
2842 * remote-mips.c (mips_prepare_to_store): Likewise.
2843 * remote-sim.c (gdbsim_prepare_to_store): Likewise.
2844 * win32-nat.c (win32_prepare_to_store): Likewise.
2845
2846 * remote.c (remote_prepare_to_store): Add REGCACHE parameter.
2847 Use it instead of current_regcache.
2848
2849 * hpux-thread.c (hpux_thread_prepare_to_store): Add REGCACHE
2850 parameter. Pass it on to next target.
2851 * sol-thread.c (sol_thread_prepare_to_store): Likewise.
2852
2853 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
2854
2855 * target.h (struct regcache): Add forward declaration.
2856 (struct target_ops): Add REGCACHE parameter to to_fetch_registers
2857 and to_store_registers target operations.
2858 (target_fetch_registers, target_store_registers): Update.
2859
2860 * regcache.c (regcache_raw_read): Replace register_cached by
2861 regcache_valid_p. Pass regcache to target_fetch_registers.
2862 (regcache_raw_write): Pass regcache to target_store_registers.
2863
2864 * arm-linux-nat.c (store_fpregister, store_fpregs, store_register,
2865 store_regs, store_wmmx_regs): Replace register_cached by
2866 regcache_valid_p.
2867
2868 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd): Pass current_regcache
2869 to target_fetch_registers calls.
2870 * corelow.c (core_open): Likewise.
2871 * linux-nat.c (linux_nat_corefile_thread_callback): Likewise.
2872 * proc-service.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
2873 ps_lsetfpregs): Likewise.
2874 * sol-thread.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
2875 ps_lsetfpregs): Likewise.
2876 * win32-nat.c (win32_resume): Likewise.
2877 * ia64-tdep.c (ia64_store_return_value): Pass current_regcache
2878 to target_store_registers call.
2879 * rs6000-tdep.c (rs6000_push_dummy_call): Likewise.
2880
2881 * inferior.h (store_inferior_registers): Update prototype.
2882 (fetch_inferior_registers): Likewise.
2883 * gnu-nat.c (gnu_store_registers, gnu_fetch_registers): Likewise.
2884 * mips-linux-nat.c (super_fetch_registers, super_store_registers):
2885 Update function pointer signatures.
2886
2887 * aix-thread.c (aix_thread_fetch_registers): Add REGCACHE parameter,
2888 use it instead of current_regcache, update calls.
2889 (aix_thread_store_registers): Likewise.
2890 * alphabsd-nat.c (alphabsd_fetch_inferior_registers): Likewise.
2891 (alphabsd_store_inferior_registers): Likewise.
2892 * amd64bsd-nat.c (amd64bsd_fetch_inferior_registers): Likewise.
2893 (amd64bsd_store_inferior_registers): Likewise.
2894 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers): Likewise.
2895 (amd64_linux_store_inferior_registers): Likewise.
2896 * arm-linux-nat.c (fetch_fpregister, fetch_fpregs, store_fpregister,
2897 store_fpregs, fetch_register, fetch_regs, store_register, store_regs,
2898 fetch_wmmx_regs, store_wmmx_regs): Likewise.
2899 (arm_linux_fetch_inferior_registers): Likewise.
2900 (arm_linux_store_inferior_registers): Likewise.
2901 * armnbsd-nat.c (fetch_register, fetch_regs, fetch_fp_register,
2902 fetch_fp_regs, armnbsd_fetch_registers): Likewise.
2903 (store_register, store_regs, store_fp_register, store_fp_regs,
2904 armnbsd_store_registers): Likewise.
2905 * bsd-kvm.c (bsd_kvm_fetch_pcb, bsd_kvm_fetch_registers): Likewise.
2906 * bsd-uthread.c (bsd_uthread_fetch_registers): Likewise.
2907 (bsd_uthread_store_registers): Likewise.
2908 * corelow.c (get_core_registers): Likewise.
2909 * go32-nat.c (fetch_register, go32_fetch_registers, store_register,
2910 go32_store_registers): Likewise.
2911 * hppabsd-nat.c (hppabsd_fetch_registers): Likewise.
2912 (hppabsd_store_registers): Likewise.
2913 * hppa-hpux-nat.c (hppa_hpux_fetch_register): Likewise.
2914 (hppa_hpux_fetch_inferior_registers): Likewise.
2915 (hppa_hpux_store_register): Likewise.
2916 (hppa_hpux_store_inferior_registers): Likewise.
2917 * hppa-linux-nat.c (fetch_register, store_register): Likewise.
2918 (hppa_linux_fetch_inferior_registers): Likewise.
2919 (hppa_linux_store_inferior_registers): Likewise.
2920 * hpux-thread.c (hpux_thread_fetch_registers): Likewise.
2921 (hpux_thread_store_registers): Likewise.
2922 * i386bsd-nat.c (i386bsd_fetch_inferior_registers): Likewise.
2923 (i386bsd_store_inferior_registers): Likewise.
2924 * i386gnu-nat.c (fetch_fpregs, gnu_fetch_registers, store_fpregs,
2925 gnu_store_registers): Likewise.
2926 * i386-linux-nat.c (fetch_register, store_register, fetch_regs,
2927 store_regs, fetch_fpregs, store_fpregs, fetch_fpxregs, store_fpxregs):
2928 Likewise.
2929 (i386_linux_fetch_inferior_registers): Likewise.
2930 (i386_linux_store_inferior_registers): Likewise.
2931 * ia64-linux-nat.c (ia64_linux_fetch_register): Likewise.
2932 (ia64_linux_fetch_registers): Likewise.
2933 (ia64_linux_store_register): Likewise.
2934 (ia64_linux_store_registers): Likewise.
2935 * inf-child.c (inf_child_fetch_inferior_registers): Likewise.
2936 (inf_child_store_inferior_registers): Likewise.
2937 * inf-ptrace.c (inf_ptrace_fetch_register): Likewise.
2938 (inf_ptrace_fetch_registers): Likewise.
2939 (inf_ptrace_store_register): Likewise.
2940 (inf_ptrace_store_registers): Likewise.
2941 * infptrace.c (fetch_register, store_register): Likewise.
2942 (fetch_inferior_registers, store_inferior_registers): Likewise.
2943 * m32r-linux-nat.c (fetch_regs, store_regs): Likewise.
2944 (m32r_linux_fetch_inferior_registers): Likewise.
2945 (m32r_linux_store_inferior_registers): Likewise.
2946 * m68kbsd-nat.c (m68kbsd_fetch_inferior_registers): Likewise.
2947 (m68kbsd_store_inferior_registers): Likewise.
2948 * m68klinux-nat.c (fetch_register, old_fetch_inferior_registers,
2949 store_register, old_store_inferior_registers, fetch_regs, store_regs,
2950 fetch_fpregs, store_fpregs): Likewise.
2951 (m68k_linux_fetch_inferior_registers): Likewise.
2952 (m68k_linux_store_inferior_registers): Likewise.
2953 * m88kbsd-nat.c (m88kbsd_fetch_inferior_registers): Likewise.
2954 (m88kbsd_store_inferior_registers): Likewise.
2955 * mips64obsd-nat.c (mips64obsd_fetch_inferior_registers): Likewise.
2956 (mips64obsd_store_inferior_registers): Likewise.
2957 * mips-linux-nat.c (mips64_linux_regsets_fetch_registers): Likewise.
2958 (mips64_linux_regsets_store_registers): Likewise.
2959 (mips64_linux_fetch_registers): Likewise.
2960 (mips64_linux_store_registers): Likewise.
2961 * mipsnbsd-nat.c (mipsnbsd_fetch_inferior_registers): Likewise.
2962 (mipsnbsd_store_inferior_registers): Likewise.
2963 * monitor.c (monitor_fetch_register, monitor_store_register): Likewise.
2964 (monitor_fetch_registers, monitor_store_registers): Likewise.
2965 * nto-procfs.c (procfs_fetch_registers): Likewise.
2966 (procfs_store_registers): Likewise.
2967 * ppc-linux-nat.c (fetch_altivec_register, fetch_spe_register,
2968 fetch_register, supply_vrregset, fetch_altivec_registers,
2969 fetch_ppc_registers, ppc_linux_fetch_inferior_registers): Likewise.
2970 (store_altivec_register, store_spe_register, store_register,
2971 fill_vrregset, store_altivec_registers, store_ppc_registers,
2972 ppc_linux_store_inferior_registers): Likewise.
2973 * ppcnbsd-nat.c (ppcnbsd_fetch_inferior_registers): Likewise.
2974 (ppcnbsd_store_inferior_registers): Likewise.
2975 * ppcobsd-nat.c (ppcobsd_fetch_registers): Likewise.
2976 (ppcobsd_store_registers): Likewise.
2977 * procfs.c (procfs_fetch_registers, procfs_store_registers): Likewise.
2978 * remote.c (fetch_register_using_p, process_g_packet,
2979 fetch_registers_using_g, remote_fetch_registers): Likewise.
2980 (store_register_using_P, store_registers_using_G,
2981 remote_store_registers): Likewise.
2982 * remote-m32r-sdi.c (m32r_fetch_registers, m32r_fetch_register,
2983 m32r_store_register, m32r_store_register): Likewise.
2984 * remote-mips.c (mips_fetch_registers, mips_store_registers): Likewise.
2985 * remote-sim.c (gdbsim_fetch_register): Likewise.
2986 (gdbsim_store_register): Likewise.
2987 * rs6000-nat.c (fetch_register, store_register): Likewise.
2988 (rs6000_fetch_inferior_registers): Likewise.
2989 (rs6000_store_inferior_registers): Likewise.
2990 * s390-nat.c (fetch_regs, store_regs): Likewise.
2991 (fetch_fpregs, store_fpregs): Likewise.
2992 (s390_linux_fetch_inferior_registers): Likewise.
2993 (s390_linux_store_inferior_registers): Likewise.
2994 * shnbsd-nat.c (shnbsd_fetch_inferior_registers): Likewise.
2995 (shnbsd_store_inferior_registers): Likewise.
2996 * sol-thread.c (sol_thread_fetch_registers): Likewise.
2997 (sol_thread_store_registers): Likewise.
2998 * sparc-nat.c (fetch_inferior_registers): Likewise.
2999 (store_inferior_registers): Likewise.
3000 * spu-linux-nat.c (spu_fetch_inferior_registers): Likewise.
3001 (spu_store_inferior_registers): Likewise.
3002 * target.c (debug_print_register): Likewise.
3003 (debug_to_fetch_registers, debug_to_store_registers): Likewise.
3004 * vaxbsd-nat.c (vaxbsd_fetch_inferior_registers): Likewise.
3005 (vaxbsd_store_inferior_registers): Likewise.
3006 * win32-nat.c (do_win32_fetch_inferior_registers): Likewise.
3007 (win32_fetch_inferior_registers): Likewise.
3008 (win32_store_inferior_registers): Likewise.
3009
3010 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
3011
3012 * gdbcore.h (struct regcache): Add forward declaration.
3013 (struct core_fns): Add REGCACHE argument to core_read_registers
3014 callback.
3015 * corelow.c (get_core_register_section): Add REGCACHE argument,
3016 use it instead of current_regcache, pass it to core_read_registers
3017 callback.
3018 (get_core_registers): Add current_regcache as parameter to
3019 get_core_register_section calls.
3020
3021 * alpha-nat.c (fetch_osf_core_registers): Add REGCACHE argument,
3022 use it instead of current_regcache.
3023 * armnbsd-nat.c (fetch_core_registers): Likewise.
3024 (fetch_elfcore_registers): Likewise.
3025 * core-regset.c (fetch_core_registers): Likewise.
3026 * cris-tdep.c (fetch_core_registers): Likewise.
3027 * irix5-nat.c (fetch_core_registers): Likewise.
3028 * m68klinux-nat.c (fetch_core_registers): Likewise.
3029 * mips-linux-tdep.c (fetch_core_registers): Likewise.
3030 * win32-nat.c (fetch_elf_core_registers): Likewise.
3031
3032 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
3033
3034 * gregset.h (struct regcache): Add forward declaration.
3035 (supply_gregset): Add REGCACHE parameter, make GREGS const.
3036 (supply_fpregset): Add REGCACHE parameter, make FPREGS const.
3037 (supply_fpxregset): Add REGCACHE parameter, make FPXREGS const.
3038 (fill_gregset): Add REGCACHE parameter.
3039 (fill_fpregset): Likewise.
3040 (fill_fpxregset): Likewise.
3041
3042 Update all definitions accordingly:
3043 * alphabsd-nat.c, alpha-linux-nat.c, alpha-nat.c, amd64-linux-nat.c,
3044 arm-linux-nat.c, hppa-linux-nat.c, i386gnu-nat.c, i386-linux-nat.c,
3045 i386-sol2-nat.c, i386v4-nat.c, ia64-linux-nat.c, irix5-nat.c,
3046 m32r-linux-nat.c, m68klinux-nat.c, mips-linux-nat.c, ppc-linux-nat.c,
3047 s390-nat.c, sparc64-linux-nat.c, sparc-linux-nat.c, sparc-sol2-nat.c
3048 (supply_gregset): Add REGCACHE parameter, use it instead of
3049 current_regcache. Make GREGSETP parameter const, adapt casts.
3050 (supply_fpregset): Add REGCACHE parameter, use it instead of
3051 current_regcache. Make FPREGSETP parameter const, adapt casts.
3052 (fill_gregset): Add REGCACHE parameter, use it instead of
3053 current_regcache.
3054 (fill_fpregset): Likewise.
3055
3056 Update all callers to pass in current_regcache as the new argument:
3057 * core-regset.c: Include "regcache.h".
3058 (fetch_core_registers): Update supply_gregset,and supply_fpregset calls.
3059 * procfs.c: Include "regcache.h".
3060 (procfs_fetch_registers): Update supply_gregset, supply_fpregset calls.
3061 (procfs_store_registers): Update fill_gregset, fill_fpregset calls.
3062 (procfs_do_thread_registers): Likewise.
3063 (procfs_make_note_section): Likewise.
3064 * proc-service.c: Include "regcache.h".
3065 (ps_lgetregs): Update fill_gregset call.
3066 (ps_lsetregs): Update supply_gregset call.
3067 (ps_lgetfpregs): Update fill_fpregset call.
3068 (ps_lsetfpregs): Update supply_fpregset call.
3069 * sol-thread.c (sol_thread_fetch_registers): Update supply_gregset,
3070 supply_fpregset calls.
3071 (sol_thread_store_registers): Update fill_gregset, fill_fpregset calls.
3072 (ps_lgetregs): Update fill_gregset call.
3073 (ps_lsetregs): Update supply_gregset call.
3074 (ps_lgetfpregs): Update fill_fpregset call.
3075 (ps_lsetfpregs): Update supply_fpregset call.
3076
3077 * linux-nat.c (linux_nat_do_thread_registers): Update fill_gregset,
3078 fill_fpregset, and fill_fpxregset calls.
3079 * i386-linux-nat.c (fetch_regs): Update supply_gregset call.
3080 (store_regs): Update fill_gregset call.
3081 (fetch_fpregs): Update supply_fpregset call.
3082 (store_fpregs): Update fill_fpregset call.
3083 (fetch_fpxregs): Update supply_fpxregset call.
3084 (store_fpxregs): Update fill_fpxregset call.
3085 * m32r-linux-nat.c (fetch_regs): Update supply_gregset call.
3086 (store_regs): Update fill_gregset call.
3087 * m68klinux-nat.c (fetch_regs): Update supply_gregset call.
3088 (store_regs): Update fill_gregset call.
3089 (fetch_fpregs): Update supply_fpregset call.
3090 (store_fpregs): Update fill_fpregset call.
3091 (fetch_core_registers): Update supply_gregset, supply_fpregset calls.
3092 * s390-nat.c (fetch_regs): Update supply_gregset call.
3093 (store_regs): Update fill_gregset call.
3094 (fetch_fpregs): Update supply_fpregset call.
3095 (store_fpregs): Update fill_fpregset call.
3096
3097 * Makefile.in (core-regset.o, procfs.o, proc-service.o): Update
3098 dependencies.
3099
3100 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
3101
3102 * monitor.c (monitor_supply_register): Add REGCACHE parameter, use
3103 it instead of current_regcache.
3104 (parse_register_dump): Add REGCACHE parameter, pass it to
3105 supply_register callback.
3106 (monitor_dump_reg_block): Add REGCACHE parameter, pass it to
3107 parse_register_dump.
3108 (monitor_dump_regs): Add REGCACHE parameter, pass it to
3109 parse_register_dump and dumpregs callback.
3110 (monitor_wait): Pass current_regcache to parse_register_dump and
3111 monitor_dump_regs.
3112 (monitor_fetch_register): Pass current_regcache to
3113 monitor_supply_register.
3114 (monitor_fetch_registers): Pass current_regcache to
3115 monitor_dump_regs.
3116 * monitor.h (struct monitor_ops): Add REGCACHE parameter to
3117 supply_register and dumpregs callbacks.
3118 (monitor_supply_register, monitor_dump_reg_block): Update
3119 prototypes.
3120 * dbug-rom.c (dbug_supply_register): Add REGCACHE parameter. Pass
3121 it to monitor_supply_register.
3122 * dink32-rom.c (dink32_supply_register): Likewise.
3123 * ppcbug-rom.c (ppcbug_supply_register): Likewise.
3124 * m32r-rom.c (m32r_supply_register): Likewise. Also, use REGCACHE
3125 instead of current_regcache.
3126
3127 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
3128
3129 * i386-nto-tdep.c (i386nto_supply_gregset, i386nto_supply_fpregset):
3130 Add REGCACHE parameter. Use it instead of current_regcache.
3131 (i386nto_supply_regset): Add REGCACHE parameter, pass it to
3132 i386nto_supply_gregset and i386nto_supply_fpregset.
3133 (i386nto_regset_fill): Add REGCACHE parameter; use it instead
3134 of current_regcache.
3135
3136 * nto-procfs.c (procfs_fetch_registers): Pass current_regcache to
3137 nto_supply_ helper functions.
3138 (procfs_store_registers): Pass current_regcache to nto_regset_fill.
3139
3140 * nto-tdep.c (nto_dummy_supply_regset): Add REGCACHE parameter.
3141
3142 * nto-tdep.h (struct nto_target_ops): Add REGCACHE parameter to
3143 supply_greget, supply_fpregset, supply_altregset, supply_regset,
3144 and regset_fill member function pointers.
3145 (nto_dummy_supply_regset): Adapt prototype.
3146
3147 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
3148
3149 * shnbsd-tdep.c (shnbsd_supply_reg): Add REGCACHE parameter, use it
3150 instead of current_regcache. Make REGS const.
3151 (shnbsd_fill_reg): Add REGCACHE parameter; replace current_regcache.
3152 * shnbsd-tdep.h (shnbsd_supply_reg, shnbsd_fill_reg): Update
3153 prototypes.
3154 * shnbsd-nat.c: Include "regcache.h".
3155 (shnbsd_fetch_inferior_registers): Pass current_regcache to
3156 shnbsd_supply_reg.
3157 (shnbsd_store_inferior_registers): Pass current_regcache to
3158 shnbsd_fill_reg.
3159 * Makefile.in (shbsd-nat.o): Update dependencies.
3160
3161 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
3162
3163 * mips-linux-tdep.c (supply_32bit_reg): Add REGCACHE parameter. Use it
3164 instead of current_regcache.
3165 (mips_supply_gregset): Likewise. Pass REGCACHE to supply_32bit_reg.
3166 Make GREGSETP const, remove superfluous casts.
3167 (mips_fill_gregset): Add REGCACHE parameter; replace current_regcache.
3168 (mips_supply_fpregset): Likewise. Make FPREGSETP const, remove
3169 superfluous casts.
3170 (mips_fill_fpregset): Add REGCACHE parameter; replace current_regcache.
3171 (supply_64bit_reg): Likewise
3172 (mips64_supply_gregset): Likewise. Pass REGCACHE to supply_64bit_reg.
3173 Make GREGSETP const, adapt casts accordingly.
3174 (mips64_fill_gregset): Add REGCACHE parameter; replace current_regcache.
3175 (mips64_supply_fpregset): Likewise. Make FPREGSET const, adapt
3176 casts accordingly.
3177 (mips64_fill_fpregset): Add REGCACHE parameter; replace current_regcache.
3178 (fetch_core_registers): Pass current_regcache to mips{64}_(supply|fill)_
3179 helper routines.
3180 * mips-linux-tdep.h (mips_supply_gregset, mips_fill_gregset,
3181 mips_supply_fpregset, mips_fill_fpregset, mips64_supply_gregset,
3182 mips64_fill_gregset, mips64_supply_fpregset, mips64_fill_fpregset):
3183 Adapt prototypes.
3184 * mips-linux-nat.c: Include "regcache.h".
3185 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): Pass
3186 current_regcache to mips{64}_(supply|fill)_ helper routines.
3187 (mips64_linux_regsets_fetch_registers): Likewise.
3188 (mips64_linux_regsets_store_registers): Likewise.
3189
3190 * mipsnbsd-tdep.c (mipsnbsd_supply_reg, mipsnbsd_supply_fpreg): Add
3191 REGCACHE argument; replace current_regcache. Make REGS const.
3192 (mipsnbds_fill_reg, mipsnbsd_fill_fpreg): Add REGCACHE argument;
3193 replace current_regcache.
3194 * mipsnbsd-tdep.h (ipsnbsd_supply_reg, mipsnbsd_supply_fpreg,
3195 mipsnbds_fill_reg, mipsnbsd_fill_fpreg): Adapt prototypes.
3196 * mipsnbsd-nat.c (mipsnbsd_fetch_inferior_registers,
3197 mipsnbsd_store_inferior_registers): Pass current_regcache to
3198 mipsnbsd_(supply|fill)_... helper routines.
3199
3200 * Makefile.in (mips-linux-nat.o): Update dependencies.
3201
3202 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
3203
3204 * i387-tdep.c (i387_fill_fsave, i387_fill_fxsave): Remove.
3205 * i387-tdep.h (i387_fill_fsave, i387_fill_fxsave): Remove prototypes.
3206 * i368-linux-nat.c (supply_fpregset, supply_fpxregset): Replace
3207 i387_fill_fsave and i387_fill_fxsave calls by inline copies.
3208 * i386-nto-tdep.c (i386nto_regset_fill): Likewise.
3209 * i386gnu-nat.c (store_fpregs): Likewise.
3210 * i386v4-nat.c (fill_fpregset): Likewise.
3211 * go32-nat.c (store_register, go32_store_registers): Likewise.
3212
3213 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
3214
3215 * cris-tdep.c (supply_gregset): Rename to ...
3216 (cris_supply_gregset): ... this. Add REGCACHE parameter. Use it
3217 instead of current_regcache.
3218 (fetch_core_registers): Update call. Pass current_regcache.
3219
3220 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
3221
3222 * arnmnbsd-nat.c (supply_gregset): Rename to ...
3223 (arm_supply_gregset): ... this. Add REGCACHE parameter.
3224 Use it instead of current_regcache.
3225 (supply_fparegset): Rename to ...
3226 (arm_supply_fparegset): ... this. Add REGCACHE parameter.
3227 Use it instead of current_regcache.
3228 (fetch_regs, fetch_fp_regs): Update calls. Pass current_regcache.
3229 (fetch_core_registers, fetch_elfcore_registers): Likewise.
3230
3231 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
3232
3233 * alpha-tdep.c (alpha_supply_int_regs, alpha_fill_int_regs,
3234 alpha_supply_fp_regs, alpha_fill_fp_regs): Add REGCACHE parameter,
3235 use it instead of current_regcache.
3236 * alpha-tdep.h (struct regcache): Add forward declaration.
3237 (alpha_supply_int_regs, alpha_fill_int_regs, alpha_supply_fp_regs,
3238 alpha_fill_fp_regs): Update prototypes.
3239
3240 * alpha-nat.c: (supply_gregset, fill_gregset, supply_fpregset,
3241 fill_fpregset): Pass current_regcache to alpha_supply/fill_ routines.
3242 * alpha-linux-nat.c: Include "regcache.h".
3243 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): Pass
3244 current_regcache to alpha_supply/fill_ routines.
3245
3246 * alphabsd-tdep.c: Include "regcache.h".
3247 (alphabsd_supply_reg, alphabsd_supply_fpreg): Add REGCACHE paramter,
3248 pass it to alpha_supply_ routines. Make REGS const.
3249 (alphabsd_fill_reg, alphabsd_fill_fpreg): Add REGCACHE parameter,
3250 pass it to alpha_fill_ routines.
3251 * alphabsd-tdep.h (struct regcache): Add forward declaration.
3252 (alphabsd_supply_reg, alphabsd_fill_reg, alphabsd_supply_fpreg,
3253 alphabsd_fill_fpreg): Update prototypes.
3254
3255 * alphanbsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
3256 fill_fpregset, alphabsd_fetch_inferior_registers,
3257 alphabsd_store_inferior_registers): Pass current_regcache to
3258 alphabsd_supply/fill_ routines.
3259
3260 * Makefile.in (alpha-linux-nat.o, alphabsd-tdep.o): Update
3261 dependencies.
3262
3263 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
3264
3265 * aix-thread.c (supply_gprs64, supply_reg32, supply_fprs,
3266 supply_sprs64, supply_sprs32): Add REGCACHE parameter, use it
3267 instead of current_regcache.
3268 (fetch_regs_user_thread, fetch_regs_kernel_thread): Add
3269 REGCACHE parameter, pass it to supply_ routines.
3270 (aix_thread_fetch_registers): Pass current_regcache to
3271 fetch_regs_user_thread and fetch_regs_kernel_thread.
3272
3273 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs64, fill_sprs32):
3274 Add REGCACHE parameter, use it instead of current_regcache.
3275 Call regcache_valid_p instead of register_cached.
3276 (store_regs_user_thread, store_regs_kernel_thread): Likewise.
3277 Also, pass REGCACHE to fill_ routines.
3278 (aix_thread_store_registers): Pass current_regcache to
3279 store_regs_user_thread and store_regs_kernel_thread.
3280
3281 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
3282
3283 * m32r-linux-nat.c (supply_gregset): Do not modify contents
3284 pointed to by GREGSETP.
3285
3286 2007-05-06 Ulrich Weigand <uweigand@de.ibm.com>
3287
3288 * irix5-nat.c (fill_gregset): Use regcache_raw_collect instead
3289 of regcache_raw_read_signed.
3290 (fill_fpregset): Use regcache_raw_collect instead of
3291 regcache_raw_read.
3292
3293 2007-05-03 Kevin Buettner <kevinb@redhat.com>
3294
3295 * mips-tdep.c (mips_eabi_push_dummy_call): When pushing floating
3296 point arguments, test explicitly for use of the EABI32 ABI
3297 instead of inferring this condition from tests on register
3298 sizes.
3299
3300 2007-05-03 Kevin Buettner <kevinb@redhat.com>
3301
3302 * breakpoint.c (set_raw_breakpoint): Adjust breakpoint's address
3303 prior to allocating its location.
3304
3305 2007-05-02 Maciej W. Rozycki <macro@mips.com>
3306
3307 * mips-tdep.c (mips_o32_push_dummy_call): Remove conditions
3308 based on mips_abi_regsize() whose result is known in advance.
3309 (mips_o64_push_dummy_call): Likewise.
3310
3311 2007-04-29 Ulrich Weigand <uweigand@de.ibm.com>
3312
3313 * m68klinux-nat.c: Remove #ifndef USE_PROC_FS check.
3314 * m68k-tdep.c: Remove code within #ifdef USE_PROC_FS.
3315
3316 * mips-linux-nat.c: Include "gregset.h".
3317 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): Move
3318 from mips-linux-tdep.c. Change parameter type to gdb_gregset_t.
3319 * mips-linux-tdep.c (supply_gregset, fill_gregset, supply_fpregset,
3320 fill_fpregset): Move to mips-linux-nat.c.
3321
3322 * Makefile.in (m68k-tdep.o, mips-linux-nat.o): Update dependencies.
3323
3324 2007-04-28 Ulrich Weigand <uweigand@de.ibm.com>
3325
3326 * regcache.c (deprecated_read_register_gen): Remove, inline ...
3327 (read_register): ... here.
3328 (deprecated_write_register_gen): Remove, inline ...
3329 (write_register): ... here.
3330 * regcache.h (deprecated_read_register_gen): Remove prototype.
3331 (deprecated_write_register_gen): Likewise.
3332
3333 * remote-sim.c (gdbsim_store_register): Replace call to
3334 deprecated_read_register_gen with regcache_cooked_read.
3335 * target.c (debug_print_register): Replace calls to
3336 deprecated_read_register_gen and read_register with
3337 regcache_cooked_read.
3338
3339 2007-04-28 Ulrich Weigand <uweigand@de.ibm.com>
3340
3341 * hpux-thread.c (hpux_thread_store_registers): Use
3342 regcache_raw_collect, not regcache_raw_read.
3343 * irix5-nat.c (fetch_core_registers): Use regcache_raw_supply,
3344 not regcache_raw_write.
3345
3346 2007-04-28 Ulrich Weigand <uweigand@de.ibm.com>
3347
3348 * gdbarch.sh: Remove deprecated_register_byte.
3349 * gdbarch.c, gdbarch.h: Regenerate.
3350 * arch-utils.h (generic_register_size, generic_register_byte): Remove.
3351 * arch-utils.c (generic_register_size, generic_register_byte): Remove.
3352
3353 * regcache.h (regcache_valid_p): Make REGCACHE parameter const.
3354 * regcache.c (regcache_valid_p): Allow to query cooked registers in
3355 read-only register caches. Make REGCACHE parameter const.
3356 (regcache_dump): Do not check DEPRECATED_REGISTER_BYTE.
3357
3358 * mi/mi-main.c (old_regs): Remove.
3359 (mi_setup_architecture_data, _initialize_mi_main): Remove.
3360 (register_changed_p): Reimplement to compare two register caches.
3361 (mi_cmd_data_list_changed_registers): Update caller.
3362 * mi/mi-main.h (mi_setup_architecture_data): Remove.
3363 * mi/mi-interp.c (mi_interpreter_init): Do not call
3364 mi_setup_architecture_data.
3365
3366 2007-04-28 Ulrich Weigand <uweigand@de.ibm.com>
3367
3368 * alpha-nat.c (ALPHA_REGSET_BASE, ALPHA_REGSET_UNIQUE): Do not define,
3369 inline definition at the places the macros are used.
3370 * alpha-linux-nat.c (ALPHA_REGSET_BASE, ALPHA_REGSET_UNIQUE): Likewise.
3371
3372 2007-04-28 Ulrich Weigand <uweigand@de.ibm.com>
3373
3374 * rs6000-aix-tdep.c: Include "regcache.h", "regset.h", and
3375 "gdb_string.h".
3376 (rs6000_aix32_reg_offsets, rs6000_aix64_reg_offsets): New variables.
3377 (rs6000_aix_supply_regset, rs6000_aix_collect_regset): New functions.
3378 (rs6000_aix32_regset, rs6000_aix64_regset): New variables.
3379 (rs6000_aix_regset_from_core_section): New function.
3380 (rs6000_aix_init_osabi): Register it.
3381 (_initialize_rs6000_aix_tdep): Register GDB_OSABI_AIX osabi and
3382 sniffer for bfd_arch_powerpc as well as bfd_arch_rs6000.
3383 * rs6000-nat.c (CoreRegs): Do not define type.
3384 (fetch_core_registers, rs6000_core_fns): Remove.
3385 (_initialize_core_rs6000): Do not register it. Rename to ...
3386 (_initialize_rs6000_nat): ... this.
3387 * Makefile.in (rs6000-aix-tdep.o): Update dependencies.
3388
3389 2007-04-27 Kevin Buettner <kevinb@redhat.com>
3390
3391 * dwarf2expr.c (unsigned_address_type): Add forward declaration.
3392 (dwarf2_read_address): Sign extend return address as required by
3393 target architecture.
3394
3395 2007-04-27 Kevin Buettner <kevinb@redhat.com>
3396
3397 * solib-frv.c (lm_base): Bail out if the main executable has
3398 not been relocated.
3399
3400 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
3401
3402 * alpha-linux-tdep.c (alpha_linux_supply_fpregset): Correct location
3403 of FPCR register in fpregset.
3404
3405 2007-04-27 Maciej W. Rozycki <macro@mips.com>
3406
3407 * Makefile.in (gdbtk-wrapper.o): Update dependencies.
3408 (gdbtk-varobj.o, gdbtk-cmds.o, gdbtk-stack.o): Likewise.
3409
3410 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
3411
3412 * config/rs6000/nm-rs6000.h (CHILD_SPECIAL_WAITSTATUS): Remove.
3413 * rs6000-nat.c (rs6000_wait): New function.
3414 (_initialize_core_rs6000): Install it as to_wait target method.
3415 * target.c (store_waitstatus): Don't check CHILD_SPECIAL_WAITSTATUS.
3416
3417 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
3418
3419 * config/rs6000/nm-rs6000.h (TARGET_CREATE_INFERIOR_HOOK): Remove.
3420 * fork-child.c (fork_inferior): Don't call TARGET_CREATE_INFERIOR_HOOK.
3421 * rs6000-nat.c (super_create_inferior): New variable.
3422 (rs6000_create_inferior): Make static. Adapt argument list. Call
3423 original version of create_inferior via super_create_inferior.
3424 (_initialize_core_rs6000): Install to_create_inferior target method.
3425
3426 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
3427
3428 * aix-thread.c (aix_thread_xfer_memory): Replace by ...
3429 (aix_thread_xfer_partial): ... this.
3430 (init_aix_thread_ops): Install to_xfer_partial instead
3431 of deprecated_xfer_memory target method.
3432
3433 * config/powerpc/aix.mh (NATDEPFILES): Remove infptrace.o
3434 and inftarg.o, add inf-ptrace.o.
3435 * config/rs6000/nm-rs6000.h (FETCH_INFERIOR_REGISTERS,
3436 CHILD_XFER_MEMORY, KERNEL_U_SIZE, kernel_u_size): Remove.
3437 * rs6000-nat.c: Include "inf-ptrace.h" and "gdb_stdint.h".
3438 (fetch_inferior_registers): Rename to ...
3439 (rs6000_fetch_inferior_registers): ... this. Make static.
3440 (store_inferior_registers): Rename to ...
3441 (rs6000_store_inferior_registers): ... this. Make static.
3442 (read_word, child_xfer_memory): Remove.
3443 (rs6000_xfer_partial): New function.
3444 (kernel_u_size): Remove.
3445 (_initialize_core_rs6000): Add inf_ptrace-based target.
3446 * Makefile.in (rs6000-nat.o): Update dependencies.
3447
3448 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
3449
3450 * inf-ptrace.c: Include "gdb_stdint.h".
3451 (inf_ptrace_xfer_partial): Use "uintptr_t" instead of "long" as
3452 intermediate type when casting CORE_ADDR to PTRACE_TYPE_ARG3.
3453 (inf_ptrace_fetch_register): Add intermediate cast to "uintptr_t"
3454 before casting CORE_ADDR to PTRACE_TYPE_ARG3.
3455 (inf_ptrace_store_register): Likewise.
3456 * Makefile.in (inf-ptrace.o): Update dependencies.
3457
3458 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
3459
3460 * configure.host (rs6000-*-*): Merge with powerpc-*-aix* rules.
3461 * configure.tgt (rs6000-*-*): Likewise.
3462 * config/rs6000/aix4.mh: Delete file.
3463 * config/rs6000/aix4.mt: Delete file.
3464 * config/rs6000/rs6000.mh: Delete file.
3465 * config/rs6000/rs6000.mt: Delete file.
3466
3467 * config/powerpc/nm-aix.h: Delete file.
3468 * config/powerpc/aix.mh (NAT_FILE): Set to config/rs6000/nm-rs6000.h.
3469
3470 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
3471
3472 * aix-thread.c (fill_sprs32): Change argument types to "uint32_t *".
3473 Remove obsolete part of comment.
3474 (store_regs_user_thread): Use uint32_t temporaries when calling
3475 fill_sprs32.
3476 (store_regs_kernel_thread): Likewise. Add assertion to verify
3477 correct size of struct ptsprs members.
3478 (aix_thread_xfer_memory): Fix type of myaddr.
3479 (aix_thread_extra_thread_info): Fix compiler warning.
3480 * rs6000-nat.c (rs6000_ptrace64): Change type of buf to "void *".
3481 (fetch_register, store_register): Adapt callers.
3482
3483 2007-04-27 Ulrich Weigand <uweigand@de.ibm.com>
3484
3485 * vec.h (vec_free): Rename to vec_free_. Adapt users.
3486
3487 2007-04-25 Ulrich Weigand <uweigand@de.ibm.com>
3488
3489 * alpha-linux-tdep.c: Include "gdb_string.h", "regset.h",
3490 and "regcache.h".
3491 (alpha_linux_supply_gregset, alpha_linux_supply_fpregset): New.
3492 (alpha_linux_gregset, alpha_linux_fpregset): New variables.
3493 (alpha_linux_regset_from_core_section): New function.
3494 (alpha_linux_init_abi): Install it.
3495 * alpha-linux-nat.c: Do not include "gdbcore.h". Include
3496 "alpha-tdep.h", <sys/ptrace.h>, <alpha/ptrace.h>,
3497 <sys/procfs.h>, and "gregset.h".
3498 (ALPHA_REGSET_BASE, ALPHA_REGSET_UNIQUE, ALPHA_UNIQUE_PTRACE_ADDR):
3499 Move from config/alpha/nm-linux.h.
3500 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): Copy
3501 from alpha-nat.c.
3502 (alpha_linux_register_u_offset): Inline register_addr from alpha-nat.c.
3503 * alpha-nat.c: Remove #ifdef __linux__ section.
3504 (fetch_elf_core_registers, alpha_elf_core_fns): Remove.
3505 (_initialize_core_alpha): Do not register alpha_elf_core_fns.
3506 (ALPHA_UNIQUE_PTRACE_ADDR, ALPHA_REGSET_UNIQUE): Define unconditionally.
3507 (ALPHA_REGSET_BASE): Move from config/alpha/nm-osf.h.
3508 * config/alpha/alpha-linux.mh (NAT_FILE): Set to config/nm-linux.h.
3509 (NATDEPFILES): Remove alpha-nat.o.
3510 * config/alpha/nm-linux.h: Delete file.
3511 * config/alpha/nm-osf.h (ALPHA_REGSET_BASE): Move to alpha-nat.c.
3512 * Makefile.in (alpha-linux-nat.o): Update dependencies.
3513 (alpha-linux-tdep.o): Likewise.
3514
3515 2007-04-25 Ulrich Weigand <uweigand@de.ibm.com>
3516
3517 * mips-linux-nat.c: No longer include "gdbcore.h".
3518 (mips_linux_register_addr): Move from mips-linux-tdep.c.
3519 (mips64_linux_register_addr): Likewise.
3520 (mips_linux_register_u_offset): Call mips_linux_register_addr or
3521 mips64_linux_register_addr instead of register_addr.
3522 * mips-linux-tdep.c (mips_linux_register_addr,
3523 mips64_linux_register_addr): Move to mips-linux-nat.c.
3524 (register_addr): Remove.
3525 (register_addr_data, init_register_addr_data): Remove.
3526 (_initialize_mips_linux_tdep): Do not initialize register_addr_data.
3527 (set_mips_linux_register_addr): Remove.
3528 (mips_linux_init_abi): Do not call set_mips_linux_register_addr.
3529 * Makefile.in (mips-linux-nat.o): Update dependencies.
3530
3531 2007-04-25 Ulrich Weigand <uweigand@de.ibm.com>
3532
3533 * linux-nat.c (linux_register_u_offset): Remove.
3534 (linux_target_install_ops): New function.
3535 (linux_target): Use it.
3536 (linux_trad_target): New function.
3537 * linux-nat.h (linux_trad_target): Declare.
3538
3539 * alpha-linux-nat.c: Include "gdbcore.h".
3540 (alpha_linux_register_u_offset): New function.
3541 (_initialize_alpha_linux_nat): Use linux_trad_target.
3542
3543 * mips-linux-nat.c: Include "gdbcore.h".
3544 (mips_linux_register_u_offset): New function.
3545 (_initialize_mips_linux_nat): Use linux_trad_target.
3546
3547 * config/arm/linux.mh (NAT_FILE): Set to config/nm-linux.h.
3548 * config/arm/nm-linux.h: Delete file.
3549
3550 * config/i386/nm-linux64.h (FETCH_INFERIOR_REGISTERS): Remove.
3551 * config/i386/nm-linux.h (FETCH_INFERIOR_REGISTERS): Remove.
3552
3553 * config/ia64/linux.mh (NAT_FILE): Set to config/nm-linux.h.
3554 * config/ia64/nm-linux.h: Delete file.
3555
3556 * config/m32r/linux.mh (NAT_FILE): Set to config/nm-linux.h.
3557 * config/m32r/nm-linux.h: Delete file.
3558
3559 * config/m68k/linux.mh (NAT_FILE): Set to config/nm-linux.h.
3560 * config/m68k/nm-linux.h: Delete file.
3561
3562 * config/pa/linux.mh (NAT_FILE): Set to config/nm-linux.h.
3563 * config/pa/nm-linux.h: Delete file.
3564
3565 * config/powerpc/linux.mh (NAT_FILE): Set to config/nm-linux.h.
3566 * config/powerpc/ppc64-linux.mh (NAT_FILE): Likewise.
3567 * config/powerpc/nm-linux.h: Delete file.
3568
3569 * config/s390/s390.mh (NAT_FILE): Set to config/nm-linux.h.
3570 * config/s390/nm-linux.h: Delete file.
3571
3572 * config/sparc/linux.mh (NAT_FILE): Set to config/nm-linux.h.
3573 * config/sparc/linux64.mh (NAT_FILE): Likewise.
3574 * config/sparc/nm-linux.h: Delete file.
3575
3576 * Makefile.in (alpha-linux-nat.o): Update dependencies.
3577 (mips-linux-nat.o): Likewise.
3578
3579 2007-04-25 Ulrich Weigand <uweigand@de.ibm.com>
3580
3581 * core-aout.c: Delete file.
3582 * Makefile.in (ALLDEPFILES): Remove core-aout.c.
3583 (core-aout.o): Delete rule.
3584 * gdbcore.h (kernel_u_addr, KERNEL_U_ADDR): Remove.
3585
3586 * config/alpha/nm-linux.h (U_REGS_OFFSET): Remove.
3587
3588 * arm-linux-nat.c (arm_linux_kernel_u_size): Remove.
3589 * config/arm/nm-linux.h (U_REGS_OFFSET, KERNEL_U_SIZE,
3590 KERNEL_U_ADDR): Remove.
3591
3592 * i386-linux-nat.c (register_u_addr, kernel_u_size): Remove.
3593 (cannot_fetch_register, cannot_store_register): Remove.
3594 (fetch_register): Inline cannot_fetch_register and register_addr.
3595 (store_register): Inline cannot_store_register and register_addr.
3596 * config/i386/linux.mh (NATDEPFILES): Remove core-aout.o.
3597 * config/i386/nm-linux.h (KERNEL_U_SIZE, KERNEL_U_ADDR,
3598 REGISTER_U_ADDR, CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER):
3599 Remove.
3600
3601 * m68klinux-nat.c (m68k_linux_register_u_addr, kernel_u_size): Remove.
3602 (fetch_register): Inline register_addr.
3603 (store_register): Inline register_addr.
3604 * config/m68k/linux.mh (NATDEPFILES): Remove core-aout.o.
3605 * config/m68k/nm-linux.h (KERNEL_U_SIZE, KERNEL_U_ADDR,
3606 U_REGS_OFFSET, REGISTER_U_ADDR): Remove.
3607
3608 * config/mips/nm-irix5.h (REGISTER_U_ADDR): Remove.
3609 * config/mips/nm-linux.h (KERNEL_U_SIZE, U_REGS_OFFSET,
3610 REGISTER_U_ADDR): Remove.
3611
3612 * hppa-linux-nat.c (register_addr): Rename to ...
3613 (hppa_linux_register_addr): ... this. Make static.
3614 (fetch_register, store_register): Adapt callers.
3615 * config/pa/nm-linux.h (U_REGS_OFFSET): Remove.
3616
3617 * ppc-linux-nat.c (kernel_u_size): Remove.
3618 * config/powerpc/nm-linux.h (KERNEL_U_SIZE, KERNEL_U_ADDR): Remove.
3619
3620 * vax-nat.c (vax_kernel_u_addr, vax_register_u_addr): Make static.
3621 * config/vax/vax.mh (NATDEPFILES): Remove core-aout.o.
3622 (NAT_FILE): Remove.
3623 * config/vax/nm-vax.h: Delete file.
3624
3625 2007-04-20 Mark Shinwell <shinwell@codesourcery.com>
3626
3627 * MAINTAINERS (Write After Approval): Add myself.
3628
3629 2007-04-20 Mark Shinwell <shinwell@codesourcery.com>
3630
3631 * Makefile.in: Adjust dependencies of m68klinux-tdep.c.
3632 * m68klinux-tdep.c (m68k_uclinux_sigcontext_reg_offset): New.
3633 (m68k_linux_sigcontext_reg_offset): Fix typo.
3634 (target_is_uclinux): New.
3635 (m68k_linux_inferior_created): New.
3636 (m68k_linux_get_sigtramp_info): Check for uClinux or
3637 normal Linux. Use m68k_uclinux_sigcontext_reg_offset for
3638 uClinux.
3639 (_initialize_m68k_linux_tdep): Register
3640 m68k_linux_inferior_created.
3641
3642 2007-04-19 Pedro Alves <pedro_alves@portugalmail.pt>
3643
3644 * win32-nat.c (win32_detach): Remove delete_command call.
3645 Resume inferior with win32_resume instead of win32_continue.
3646
3647 2007-04-19 Jerome Guitton <guitton@adacore.com>
3648
3649 * ser-mingw.c (fd_is_file): New function.
3650 (file_select_thread): New function.
3651 (ser_console_wait_handle): Add special handling for files.
3652
3653 2007-04-18 Denis Pilat <denis.pilat@st.com>
3654
3655 * dwarf2read.c (read_subrange_type): Use DW_ATE_signed default type
3656 when missing from DW_TAG_subrange_type. Remove the handling of null
3657 return from die_type.
3658
3659 2007-04-18 Maciej W. Rozycki <macro@mips.com>
3660
3661 * mips-tdep.c (mips_eabi_push_dummy_call): Revert the last
3662 change to rearrange some brackets.
3663 (mips_n32n64_push_dummy_call): Likewise.
3664 (mips_o32_push_dummy_call): Likewise.
3665 (mips_o64_push_dummy_call): Likewise.
3666
3667 2007-04-18 Denis Pilat <denis.pilat@st.com>
3668
3669 * infcmd.c (post_create_inferior): Start with a call to
3670 target_terminal_ours.
3671
3672 2007-04-17 Maciej W. Rozycki <macro@mips.com>
3673
3674 * mips-tdep.c (mips_eabi_push_dummy_call): Rearrange some
3675 brackets.
3676 (mips_n32n64_push_dummy_call): Likewise. Reformat some
3677 expressions.
3678 (mips_o32_push_dummy_call): Likewise.
3679 (mips_o64_push_dummy_call): Likewise.
3680
3681 2007-04-17 Maciej W. Rozycki <macro@mips.com>
3682
3683 * mips-tdep.c (mips_n32n64_push_dummy_call): Fix a typo in a
3684 comment.
3685
3686 2007-04-17 Maciej W. Rozycki <macro@mips.com>
3687
3688 * mips-tdep.c (mips_n32n64_push_dummy_call): Fix a typo in a
3689 comment.
3690 (mips_o32_push_dummy_call): Likewise.
3691
3692 2007-04-17 Andreas Schwab <schwab@suse.de>
3693
3694 * symtab.c (skip_prologue_using_sal): Allow the end of the prologue
3695 sal to be bigger than the end of the function.
3696
3697 2007-04-17 Maciej W. Rozycki <macro@mips.com>
3698 Nigel Stephens <nigel@mips.com>
3699
3700 * mips-tdep.c (mips_o32_push_dummy_call): Take account of
3701 argument alignment requirements when calculating stack space
3702 required. When aligning an arg register to eight bytes
3703 boundary, align stack_offset too. Write floating-point
3704 arguments to the appropriate integer register if need go there.
3705 (mips_o64_push_dummy_call): Likewise.
3706
3707 2007-04-14 Ulrich Weigand <uweigand@de.ibm.com>
3708
3709 * gdbarch.sh (software_single_step): Remove "insert_breakpoints_p" and
3710 "sig" arguments, add "regcache" argument.
3711 * gdbarch.c, gdbarch.h: Regenerate.
3712
3713 * infrun.c (resume): Update SOFTWARE_SINGLE_STEP call arguments.
3714 (handle_inferior_event): Call remove_single_step_breakpoints directly
3715 instead of calling SOFTWARE_SINGLE_STEP to remove breakpoints.
3716
3717 * alpha-tdep.c (alpha_software_single_step): Update argument list.
3718 Remove handling of !insert_breakpoints_p case.
3719 * arm-tdep.c (arm_software_single_step): Likewise.
3720 * cris-tdep.c (cris_software_single_step): Likewise.
3721 * mips-tdep.c (mips_software_single_step): Likewise.
3722 * rs6000-tdep.c (rs6000_software_single_step): Likewise.
3723 * sparc-tdep.c (sparc_software_single_step): Likewise.
3724 * spu-tdep.c (spu_software_single_step): Likewise.
3725
3726 * alpha-tdep.h (alpha_software_single_step): Update prototype.
3727 * mips-tdep.h (mips_software_single_step): Likewise.
3728 * rs6000-tdep.h (rs6000_software_single_step): Likewise.
3729 * sparc-tdep.h (sparc_software_single_step): Likewise.
3730
3731 2007-04-14 Ulrich Weigand <uweigand@de.ibm.com>
3732
3733 * alpha-tdep.c (alpha_software_single_step): Do not call write_pc
3734 when removing single-step breakpoints.
3735
3736 2007-04-14 Vladimir Prus <vladimir@codesourcery.com>
3737
3738 * varobj.h (varobj_set_frozen): New
3739 (varobj_get_frozen): New.
3740 (varobj_update): New parameter explicit.
3741 * varobj.c (struct varobj): New fields frozen
3742 and not_fetched.
3743 (varobj_set_frozen, varobj_get_frozen): New.
3744 (install_new_value): Don't fetch values for
3745 frozen variable object, or children thereof. Allow
3746 a frozen variable object to have non-fetched value.
3747 (varobj_update): Allow updating child variables.
3748 Don't traverse frozen children.
3749 (new_variable): Initialize the frozen field.
3750 (c_value_of_variable): Return NULL for frozen
3751 variable without any value yet.
3752 * mi/mi-cmd-var.c (varobj_update_one): New parameter
3753 'explicit'.
3754 (mi_cmd_var_create): Output the 'frozen' field,
3755 as soon as testsuite is adjusted to expect that field.
3756 (mi_cmd_var_set_frozen): New.
3757 (mi_cmd_var_update): Pass the 'explicit' parameter to
3758 varobj_update_one.
3759 * mi/mi-cmds.c (mi_cmds): Register '-var-set-frozen'.
3760 * mi/mi-cmds.h (mi_cmd_var_set_frozen): Declare.
3761
3762 2007-04-13 Paul Brook <paul@codesourcery.com>
3763
3764 * target-descriptions.c (tdesc_named_type): Add ieee_single and
3765 ieee_double.
3766 * doc/gdb.texinfo: Document ieee_single and ieee_double target types.
3767
3768 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
3769
3770 * mips-mdebug-tdep.c, mips-mdebug-tdep.h, ocd.c, ocd.h, ppc-bdm.c,
3771 remote-e7000.c, remote-hms.c, remote-utils.c, remote-utils.h,
3772 scm-exp.c, scm-lang.c, scm-lang.h, scm-tags.h, scm-valprint.c,
3773 ser-e7kpc.c, sh3-rom.c, stop-gdb.c: Delete.
3774 * Makefile.in: Remove references to deleted files.
3775 * README: Do not mention deleted ROM monitor interfaces.
3776 * defs.h (enum language): Delete language_scm.
3777 * expprint.c (print_subexp_standard): Do not handle OP_EXPRSTRING.
3778 (dump_subexp_body_standard): Likewise.
3779 * parse.c (operator_length_standard): Likewise.
3780 * expression.h (enum exp_opcode): Delete OP_EXPRSTRING.
3781 * remote-mips.c: Do not include remote-utils.h.
3782 * remote-sim.c: Likewise. Use remote_debug instead of sr_get_debug
3783 throughout.
3784 * value.c: Do not include scm-lang.h.
3785 (unpack_long): Delete scm_unpack call.
3786 * config/h8300/h8300.mt, config/mips/embed.mt,
3787 config/powerpc/ppc-eabi.mt, config/powerpc/ppc-sim.mt,
3788 config/sh/embed.mt, config/sh/linux.mt: Remove references to
3789 deleted files.
3790 * NEWS: Mention removed files.
3791
3792 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
3793
3794 * symfile.c (add_psymbol_with_dem_name_to_list): Remove.
3795 * symfile.h (add_psymbol_with_dem_name_to_list): Remove prototype.
3796
3797 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
3798
3799 * NEWS: Mention removal of HP aCC support.
3800
3801 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
3802
3803 * solib-svr4.c (IGNORE_FIRST_LINK_MAP_ENTRY): Do not ignore the
3804 first entry for static executables.
3805 (breakpoint_addr): Delete unused variable.
3806 (elf_locate_base): Search for _r_debug in static executables.
3807 (enable_break): Do not set breakpoint_addr. Scan solib_break_names
3808 also.
3809
3810 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
3811
3812 * breakpoint.c (update_breakpoints_after_exec, print_it_typical)
3813 (bpstat_what, print_one_breakpoint, allocate_bp_location)
3814 (mention): Remove bp_through_sigtramp support.
3815 * breakpoint.h (enum bptype): Remove bp_through_sigtramp.
3816
3817 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
3818
3819 * breakpoint.c (bpstat_what): Give step-resume higher priority than
3820 shlib events.
3821
3822 2007-04-13 Daniel Jacobowitz <dan@codesourcery.com>
3823
3824 * infrun.c: Doc fixes.
3825 (handle_inferior_event): Clarify debug message.
3826 (insert_step_resume_breakpoint_at_sal): Print a debug message.
3827
3828 2007-04-12 Ulrich Weigand <uweigand@de.ibm.com>
3829
3830 * configure.tgt (arm-*-nto*, sh-*-nto*): Remove.
3831
3832 2007-04-12 Ulrich Weigand <uweigand@de.ibm.com>
3833
3834 * config/m68k/tm-monitor.h: Delete file.
3835 * config/m68k/monitor.mt (DEPRECATED_TM_FILE): Remove.
3836 * m68k-tdep.c (m68k_gdbarch_init): set_gdbarch_decr_pc_after_break
3837 call moved to ...
3838 * m68kbsd-tdep.c (m68kbsd_init_abi): ... here and ...
3839 * m68klinux-tdep.c (m68k_linux_init_abi): ... here.
3840
3841 2007-04-12 Luis Machado <luisgpm@br.ibm.com>
3842
3843 * gdbarch.sh (software_single_step): Change the return type
3844 from void to int and reformatted some comments to <= 80
3845 columns.
3846 * gdbarch.c, gdbarch.h: Regenerated.
3847 * alpha-tdep.c (alpha_software_single_step): Likewise.
3848 * alpha-tdep.h (alpha_software_single_step): Likewise.
3849 * arm-tdep.c (arm_software_single_step): Likewise.
3850 * cris-tdep.c (cris_software_single_step): Likewise.
3851 * mips-tdep.c (mips_software_single_step): Likewise.
3852 * mips-tdep.h (mips_software_single_step): Likewise.
3853 * rs6000-tdep.c (rs6000_software_single_step): Likewise.
3854 * rs6000-tdep.h (rs6000_software_single_step): Likewise.
3855 * sparc-tdep.c (sparc_software_single_step): Likewise.
3856 * sparc-tdep.h (sparc_software_single_step): Likewise.
3857 * spu-tdep.c (spu_software_single_step): Likewise.
3858 * infrun.c (resume): Check the return value from SOFTWARE_SINGLE_STEP
3859 and act accordingly.
3860
3861 2007-04-11 Steve Ellcey <sje@cup.hp.com>
3862
3863 * configure.ac (build_warnings): Add -Wno-char-subscripts.
3864 * configure: Regenerate.
3865 * doc/gdbint.texinfo (warning flags): Add -Wno-char-subscripts.
3866
3867 2007-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
3868
3869 * libunwind-frame.c (LIBUNWIND_SO): Use major version number for `.so'.
3870
3871 2007-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
3872
3873 * gdbtypes.h (TYPE_FLAG_STUB_SUPPORTED, TYPE_STUB_SUPPORTED): New
3874 macros.
3875 (TYPE_IS_OPAQUE): Empty vs. opaque structures are now
3876 distinct on the TYPE_STUB_SUPPORTED debug targets.
3877 * dwarf2read.c (read_structure_type): Set TYPE_FLAG_STUB_SUPPORTED.
3878
3879 2007-04-11 Joel Brobecker <brobecker@adacore.com>
3880
3881 * sparc-tdep.c (X_RS2): New macro.
3882 (sparc_skip_stack_check): New function.
3883 (sparc_analyze_prologue): Adjust PC past stack probing
3884 sequence if necessary.
3885
3886 2007-04-10 Andreas Schwab <schwab@suse.de>
3887
3888 * rs6000-tdep.c (rs6000_dwarf2_reg_to_regnum): Decode 64 as CR
3889 register.
3890
3891 2007-04-10 Daniel Jacobowitz <dan@codesourcery.com>
3892
3893 * breakpoint.c (gdb_breakpoint_query): Really return an
3894 enum gdb_rc.
3895 (gdb_breakpoint): Likewise.
3896 * thread.c (gdb_list_thread_ids): Likewise.
3897 (gdb_thread_select): Likewise.
3898 * mi/mi-main.c (mi_cmd_thread_select): Expect an enum gdb_rc.
3899 (mi_cmd_thread_list_ids): Remove bogus initialization.
3900
3901 2007-04-10 Daniel Jacobowitz <dan@codesourcery.com>
3902
3903 * Makefile.in (SFILES): Remove hpacc-abi.c.
3904 (COMMON_OBS): Remove hpacc-abi.o.
3905 (ALLDEPFILES): Remove hpread.c and $(HPREAD_SOURCE).
3906 (hpacc-abi.o, hpread.o): Delete rules.
3907 * somread.c: Delete extern declarations from hpread.c.
3908 (som_symfile_read): Do not call do_pxdb or hpread_build_psymtabs.
3909 (som_symfile_finish): Do not call hpread_symfile_finish.
3910 (som_symfile_init): Do not call hpread_symfile_init.
3911 * config/pa/hppa64.mt (TDEPFILES): Remove hpread.o.
3912 * config/pa/hppahpux.mt (TDEPFILES): Likewise.
3913 * hpacc-abi.c, hpread.c: Deleted.
3914
3915 2007-04-10 Daniel Jacobowitz <dan@codesourcery.com>
3916
3917 * solib-svr4.c (enable_break): Simplify return value.
3918 (svr4_solib_create_inferior_hook): Do not warn if enable_break fails.
3919
3920 2007-04-10 Andreas Schwab <schwab@suse.de>
3921
3922 * solib-svr4.h (struct link_map_offsets): Remove l_addr_size,
3923 l_ld_size, l_next_size, l_prev_size, l_name_size.
3924
3925 * solib-svr4.c (LM_ADDR_FROM_LINK_MAP): Use extract_typed_address
3926 to extract addresses from link map.
3927 (LM_DYNAMIC_FROM_LINK_MAP): Likewise.
3928 (LM_NEXT): Likewise.
3929 (LM_NAME): Likewise.
3930 (IGNORE_FIRST_LINK_MAP_ENTRY): Likewise.
3931 (elf_locate_base): Likewise.
3932 (open_symbol_file_object): Likewise.
3933 (svr4_fetch_objfile_link_map): Likewise.
3934 (SOLIB_EXTRACT_ADDRESS): Remove unused macro.
3935 (HAS_LM_DYNAMIC_FROM_LINK_MAP): Test l_ld_offset instead of
3936 l_ld_size.
3937 (svr4_ilp32_fetch_link_map_offsets): Don't set removed members.
3938 (svr4_lp64_fetch_link_map_offsets): Likewise.
3939
3940 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets): Don't set
3941 removed members. Set l_ld_offset to -1 if not present.
3942
3943 2007-04-08 Vladimir Prus <vladimir@codesourcery.com>
3944
3945 Pass stderr of program run with "target remote |"
3946 via gdb_stderr.
3947 * serial.c (serial_open): Set error_fd to -1.
3948 * serial.h (struct serial): New field error_fd.
3949 (struct serial_opts): New field avail.
3950 * ser-pipe.c (pipe_open): Create another pair
3951 of sockets. Pass stderr to gdb.
3952 * ser-mingw.c (pipe_windows_open): Pass
3953 PEX_STDERR_TO_PIPE to pex_run. Initialize
3954 sd->error_fd.
3955 (pipe_avail): New.
3956 (_initialize_ser_windows): Hook pipe_avail.
3957 * ser-base.c (generic_readchar): Check if there's
3958 anything in stderr channel and route that to gdb_stderr.
3959
3960 2007-04-03 Pedro Alves <pedro_alves@portugalmail.pt>
3961
3962 * dbxread.c (read_ofile_symtab): Move current_objfile
3963 clearing to after end_stabs.
3964
3965 2007-04-01 Andreas Schwab <schwab@suse.de>
3966
3967 * rs6000-tdep.c (rs6000_convert_from_func_ptr_addr): Use parameter
3968 gdbarch instead of current_gdbarch.
3969
3970 2007-04-01 Vladimir Prus <vladimir@codesourcery.com>
3971
3972 * varobj.c (varobj_create): Keep varobj value
3973 NULL when evaluating the type.
3974
3975 2007-03-31 Pedro Alves <pedro_alves@portugalmail.pt>
3976
3977 * NEWS: Mention new Windows CE support.
3978
3979 2007-03-30 Pedro Alves <pedro_alves@portugalmail.pt>
3980
3981 * configure.tgt: Move mips*-*-pe and sh*-*-pe to
3982 the obsoletion stanza.
3983 * NEWS: Mention deleted targets.
3984
3985 * config/sh/tm-wince.h: Remove.
3986 * config/sh/wince.mt: Remove.
3987 * config/mips/tm-wince.h: Remove.
3988 * config/mips/wince.mt: Remove.
3989
3990 * wince.c: Remove.
3991 * wince-stub.c: Remove.
3992 * wince-stub.h: Remove.
3993 * Makefile.in (wince.o): Remove rule.
3994 (wince-stub.o): Likewise.
3995
3996 * mips-tdep.c (mips_next_pc): Make static.
3997 * mips-tdep.h (mips_next_pc): Remove declaration.
3998 * arm-tdep.c (arm_pc_is_thumb): Make static.
3999 (thumb_get_next_pc): Likewise.
4000 (arm_get_next_pc): Likewise.
4001 * arm-tdep.h (arm_pc_is_thumb_dummy): Remove declaration.
4002 (arm_pc_is_thumb): Likewise.
4003 (thumb_get_next_pc): Likewise.
4004 (arm_get_next_pc): Likewise.
4005
4006 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
4007
4008 * MAINTAINERS: Remove d10v entry.
4009 * Makefile.in (SFILES): Remove dwarfread.c.
4010 (COMMON_OBS): Remove dwarfread.o.
4011 (gdb_sim_d10v_h, abug-rom.o, cpu32bug-rom.o, d10v-tdep.o, dwarfread.o)
4012 (remote-est.o, rom68k-rom.o): Delete.
4013 * NEWS: Mention removal of d10v, target abug, target cpu32bug,
4014 target est, target rom68k, and DWARF 1.
4015 * configure.tgt: Mark d10v as removed.
4016 * dwarf2read.c: Doc update.
4017 * elfread.c (struct elfinfo): Remove dboffset, dbsize, lnoffset,
4018 and lnsize.
4019 (elf_locate_sections): Do not set them.
4020 (elf_symfile_read): Do not call dwarf_build_psymtabs.
4021 * symfile.h (dwarf_build_psymtabs): Delete prototype.
4022 * config/m68k/monitor.mt (TDEPFILES): Prune.
4023 * abug-rom.c, cpu32bug-rom.c, d10v-tdep.c, dwarfread.c,
4024 remote-est.c, rom68k-rom.c, config/d10v/d10v.mt: Delete.
4025
4026 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
4027
4028 * doublest.c (convert_floatformat_to_doublest): Use
4029 floatformat_classify.
4030 (floatformat_is_nan): Rename to...
4031 (floatformat_classify): ...this. Return more information.
4032 * doublest.h (enum float_kind): New.
4033 (floatformat_is_nan): Replace prototype...
4034 (floatformat_classify): ...with this one.
4035 * valprint.c (print_floating): Use floatformat_classify. Handle
4036 infinity.
4037
4038 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
4039
4040 * README: Mention ISO C library requirement.
4041
4042 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
4043
4044 * Makefile.in (SFILES): Remove nlmread.c.
4045 (COMMON_OBS): Remove nlmread.o.
4046 (nlmread.o): Delete rule.
4047 * README: Delete reference to remote-st.c.
4048 * acinclude.m4 (CY_AC_TCL_LYNX_POSIX): Delete.
4049 * defs.h (enum gdb_osabi): Delete GDB_OSABI_NETWARE and
4050 GDB_OSABI_LYNXOS.
4051 * i386-tdep.c (i386_nw_init_abi, i386_nlm_osabi_sniffer): Delete.
4052 (_initialize_i386_tdep): Do not reference them.
4053 * nlmread.c: Delete file.
4054 * osabi.c (gdb_osabi_names): Remove NetWare and LynxOS.
4055 * target.c: Doc update.
4056 * thread.c: Delete commented include.
4057 * config/alpha/tm-alpha.h: Doc update.
4058
4059 2007-03-30 Chris Dearman <chris@mips.com>
4060
4061 * utils.c (string_to_core_addr): Comment typo.
4062
4063 2007-03-30 Chris Dearman <chris@mips.com>
4064
4065 * mips-tdep.c: Comment typo.
4066
4067 2007-03-29 Ulrich Weigand <uweigand@de.ibm.com>
4068
4069 * config/alpha/nm-osf.h (PTRACE_XFER_TYPE): Remove.
4070 * config/mips/nm-linux.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Remove.
4071 * config/sparc/nm-linux.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Remove.
4072 * config/powerpc/nm-ppc64-linux.h: Remove file.
4073 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Set to nm-linux.h.
4074 * inferior.h (PTRACE_ARG3_TYPE): Do not define.
4075 (call_ptrace): Change type of third argument to PTRACE_TYPE_ARG3.
4076 * infptrace.c (call_ptrace): Likewise.
4077 * m68klinux-nat.c (PTRACE_XFER_TYPE): Do not define.
4078 (fetch_register): Replace PTRACE_ARG3_TYPE by PTRACE_TYPE_ARG3
4079 and PTRACE_XFER_TYPE by PTRACE_TYPE_RET.
4080 (store_register): Likewise.
4081
4082 2007-03-29 Joel Brobecker <brobecker@adacore.com>
4083
4084 * Makefile.in (varobj.o): Add missing dependency.
4085
4086 2007-03-29 Michael Snyder <msnyder@access-company.com>
4087
4088 * MAINTAINERS: Update my email address.
4089
4090 2007-03-29 Joel Brobecker <brobecker@adacore.com>
4091
4092 Add support for exception handling with multiple versions of
4093 the Ada runtime:
4094 * ada-lang.c: Update general comments on how Ada exception catchpoints
4095 are implemented.
4096 (raise_sym_name, raise_unhandled_sym_name, raise_assert_sym_name)
4097 (__gnat_raise_nodefer_with_msg): Delete.
4098 (ada_unhandled_exception_name_addr_ftype): New type.
4099 (exception_support_info): New type.
4100 (ada_unhandled_exception_name_addr): Add forward declaration.
4101 (ada_unhandled_exception_name_addr_from_raise): Likewise.
4102 (default_exception_support_info): New constant.
4103 (exception_support_info_fallback): Likewise.
4104 (exception_info): New global variable.
4105 (ada_exception_support_info_sniffer): New function.
4106 (ada_executable_changed_observer): Likewise.
4107 (ada_unhandled_exception_name_addr_from_raise): Renamed from
4108 ada_unhandled_exception_name_addr.
4109 (ada_unhandled_exception_name_addr): Reimplement to match the
4110 latest Ada runtime implementation.
4111 (error_breakpoint_runtime_sym_not_found): Delete.
4112 (ada_exception_sym_name): Get the exception sym name from
4113 exception_info rather than hardcoding it.
4114 (ada_exception_sal): Add call to ada_exception_support_info_sniffer.
4115 Update error handling.
4116 * Makefile.in (ada-lang.o): Add dependency on observer.h.
4117
4118 2007-03-29 Daniel Jacobowitz <dan@codesourcery.com>
4119
4120 * Makefile.in (coff_solib_h, coff-solib.o, i386v-nat.o, lynx-nat.o)
4121 (remote-st.o, uw-thread.o): Delete.
4122 (HFILES_NO_SRCDIR, ALLDEPFILES): Update.
4123 * configure.host: Move hppa*-*-hiux*, i[34567]86-ncr-*,
4124 i[34567]86-*-dgux*, i[34567]86-*-lynxos*, i[34567]86-*-sco3.2v5*,
4125 i[34567]86-*-sco3.2v4*, i[34567]86-*-sco*, i[34567]86-*-sysv4.2*,
4126 i[34567]86-*-sysv4*, i[34567]86-*-sysv5*, i[34567]86-*-unixware2*,
4127 i[34567]86-*-unixware*, i[34567]86-*-sysv*, i[34567]86-*-isc*, and
4128 rs6000-*-lynxos* to an obsoletion stanza.
4129 * configure.tgt: Move hppa*-*-hiux*, i[34567]86-ncr-*,
4130 i[34567]86-*-lynxos*, m68*-cisco*-*, m68*-tandem-*, m68*-*-os68k*,
4131 and rs6000-*-lynxos* to an obsoletion stanza. Do not mention
4132 i[34567]86-*-netware*.
4133 * NEWS: Mention deleted targets.
4134
4135 * coff-solib.c, coff-solib.h, i386v-nat.c, lynx-nat.c, remote-st.c,
4136 uw-thread.c, config/nm-lynx.h, config/i386/i386sco.mh,
4137 config/i386/i386sco4.mh, config/i386/i386sco5.mh, config/i386/i386v.mh,
4138 config/i386/i386v4.mh, config/i386/i386v42mp.mh,
4139 config/i386/ncr3000.mh, config/i386/ncr3000.mt,
4140 config/i386/nm-i386sco.h, config/i386/nm-i386sco4.h,
4141 config/i386/nm-i386sco5.h, config/i386/nm-i386v.h,
4142 config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h,
4143 config/m68k/cisco.mt, config/m68k/os68k.mt, config/m68k/st2000.mt,
4144 config/m68k/tm-cisco.h, config/m68k/tm-os68k.h,
4145 config/rs6000/rs6000lynx.mh, config/rs6000/rs6000lynx.mt,
4146 config/rs6000/tm-rs6000ly.h: Delete files.
4147
4148 2007-03-29 Daniel Jacobowitz <dan@codesourcery.com>
4149
4150 * defs.h (deprecated_registers_changed_hook): Delete declaration.
4151 * interps.c (clear_interpreter_hooks): Do not clear
4152 deprecated_registers_changed_hook.
4153 * regcache.c (registers_changed): Do not call it.
4154 * top.c (deprecated_registers_changed_hook): Do not define it.
4155 * mi/mi-interp.c (mi_command_loop): Do not clear it.
4156 * tui/tui-hooks.c (tui_install_hooks): Do not install it.
4157 (tui_remove_hooks): Do not remove it.
4158 (tui_selected_frame_level_changed_hook): Check for negative level.
4159 Use get_selected_frame.
4160 (tui_registers_changed_hook): Deleted.
4161
4162 2007-03-29 Joel Brobecker <brobecker@adacore.com>
4163
4164 * stabsread.c (add_undefined_type): Add extra parameter.
4165 Now handles nameless types separately.
4166 (struct nat): New type.
4167 (noname_undefs, noname_undefs_allocated, noname_undefs_length):
4168 New static variables.
4169 (read_type): Update calls to add_undefined_type.
4170 (add_undefined_type_noname): New function.
4171 (add_undefined_type_1): Renames from add_undefined_type.
4172 (cleanup_undefined_types_noname): New function.
4173 (cleanup_undefined_types_1): Renames cleanup_undefined_types.
4174 (cleanup_undefined_types): New handles nameless types separately.
4175 (_initialize_stabsread): Initialize our new static constants.
4176
4177 2007-03-29 Denis Pilat <denis.pilat@st.com>
4178
4179 * configure.ac: Test for signal.h.
4180 * configure, config.in: Regenerate.
4181
4182 2007-03-29 Denis Pilat <denis.pilat@st.com>
4183
4184 * stack.c (print_stack_frame): Always use LOC_AND_ADDRESS in MI output.
4185 * infrun.c (normal_stop): Remove MI specific frame printing treatment.
4186
4187 2007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
4188
4189 * arm-wince-tdep.c: New.
4190 * config/arm/wince.mt (DEPRECATED_TM_FILE): Use tm-arm.h.
4191 (MT_CFLAGS): Delete.
4192 (TM_CLIBS): Delete.
4193 (TDEPFILES): Add arm-wince-tdep.o, corelow.o, solib.o,
4194 solib-legacy.o, solib-svr4.o, and remove wince.o.
4195 * configure.tgt (arm*-*-mingw32ce*): Add.
4196 * signals/signals.c [HAVE_SIGNAL_H]: Check.
4197 (do_target_signal_to_host): Silence 'not used' warning.
4198 * config/arm/tm-wince.h: Remove.
4199
4200 2007-03-28 Ulrich Weigand <uweigand@de.ibm.com>
4201
4202 * arch-utils.c (legacy_pc_in_sigtramp): Remove.
4203 * arch-utils.h (legacy_pc_in_sigtramp): Remove.
4204
4205 * config/ia64/linux.mt (DEPRECATED_TM_FILE): Remove.
4206 * config/ia64/tm-linux.h: Remove file.
4207 * ia64-tdep.h (struct gdbarch_tdep): Add pc_in_sigtramp callback.
4208 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Use it instead of
4209 legacy_pc_in_sigtramp.
4210 (ia64_gdbarch_init): Initialize tdep->pc_in_sigtramp.
4211 * ia64-linux-tdep.c (ia64_linux_pc_in_sigtramp): Make static.
4212 Remove func_name argument.
4213 (ia64_linux_init_abi): Install it as tdep->pc_in_sigtramp.
4214
4215 * infrun.c (HAVE_STEPPABLE_WATCHPOINT): Do not redefine.
4216 * target.c (update_current_target): Add to_have_steppable_watchpoint.
4217 * target.h (struct target_ops): Add to_have_steppable_watchpoint.
4218 (HAVE_STEPPABLE_WATCHPOINT): Define.
4219
4220 * config/ia64/linux.mh (NATDEPFILES): Remove core-aout.o.
4221 * config/ia64/nm-linux.h (KERNEL_U_ADDR, U_REGS_OFFSET,
4222 CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER,
4223 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_STEPPABLE_WATCHPOINT,
4224 STOPPED_BY_WATCHPOINT, target_stopped_data_address,
4225 target_insert_watchpoint, target_remove_watchpoint): Remove.
4226 (FETCH_INFERIOR_REGISTERS): Define.
4227 * ia64-linux-nat.c (ia64_register_addr): Make static.
4228 (ia64_cannot_fetch_register, ia64_cannot_store_register): Likewise.
4229 (ia64_linux_insert_watchpoint): Make static. Remove ptid_p argument.
4230 (ia64_linux_remove_watchpoint): Likewise. Add type argument.
4231 (ia64_linux_stopped_data_address): Make static. Add target_ops.
4232 (ia64_linux_stopped_by_watchpoint): Make static.
4233 (ia64_linux_can_use_hw_breakpoint): New function.
4234 (ia64_linux_fetch_register, ia64_linux_fetch_registers): Likewise.
4235 (ia64_linux_store_register, ia64_linux_store_registers): Likewise.
4236 (_initialize_ia64_linux_nat): Install register and watchpoint ops.
4237
4238 2007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
4239
4240 * linespec.c: Include language.h.
4241 (find_methods): Add language parameter. Call
4242 lookup_symbol_in_language. Pass language down.
4243 (add_matching_methods): Likewise. Call
4244 lookup_symbol_in_language.
4245 (add_constructors): Likewise.
4246 (find_method): Pass sym_class to collect_methods.
4247 (collect_methods): Add sym_class parameter. Pass language
4248 down.
4249 * symtab.c (lookup_symbol): Rename to ...
4250 (lookup_symbol_in_language): ... this. Add language
4251 parameter. Use passed language instead of current_language.
4252 (lookup_symbol): New as wrapper around
4253 lookup_symbol_in_language.
4254 (lookup_symbol_aux): Add language parameter. Use passed
4255 language instead of current_language.
4256 (search_symbols): Indent.
4257 * symtab.h (enum language): Forward declare.
4258 (lookup_symbol_in_language): Declare.
4259 (lookup_symbol): Update description.
4260 * ada-lang.h (lookup_symbol_in_language): Remove declaration.
4261 * ada-lang.c (restore_language): Remove.
4262 (lookup_symbol_in_language): Remove.
4263
4264 2007-03-27 Pedro Alves <pedro_alves@portugalmail.pt>
4265
4266 * breakpoint.c (bpstat_num): Add int *num parameter.
4267 * breakpoint.h (bpstat_num): Likewise.
4268 * infcmd.c (continue_command): Adjust to new bpstat_num
4269 interface.
4270 (program_info): Likewise.
4271
4272 2007-03-27 Ulrich Weigand <uweigand@de.ibm.com>
4273
4274 * config/sh/tm-sh.h: Remove file.
4275 * config/sh/embed.mt (DEPRECATED_TM_FILE): Remove.
4276 * config/sh/linux.mt (DEPRECATED_TM_FILE): Remove.
4277 * config/sh/nbsd.mt (DEPRECATED_TM_FILE): Remove.
4278 * config/sh/tm-wince.h: Do not include "sh/tm-sh.h".
4279
4280 2007-03-27 Ulrich Weigand <uweigand@de.ibm.com>
4281
4282 * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT,
4283 DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Remove.
4284 * remote.c: Remove code under #ifdef DEPRECATED_REMOTE_BREAKPOINT,
4285 DEPRECATED_BIG_REMOTE_BREAKPOINT, DEPRECATED_LITTLE_REMOTE_BREAKPOINT.
4286 * sh-tdep.c (sh_breakpoint_from_pc): Return remote breakpoint
4287 sequence if target_shortname is "remote".
4288
4289 2007-03-27 Anton Blanchard <anton@samba.org>
4290
4291 * rs6000-tdep.c (rs6000_frame_cache): Use tdep->lr_frame_offset
4292 instead of wordsize when looking for the LR in a stack frame.
4293
4294 2007-03-27 Andreas Schwab <schwab@suse.de>
4295 Daniel Jacobowitz <dan@codesourcery.com>
4296
4297 * dwarf2-frame.c (dwarf2_frame_eh_frame_regnum): Rename to...
4298 (dwarf2_frame_adjust_regnum): ...this. Make static. Add eh_frame_p
4299 argument. Update all callers.
4300 (struct dwarf2_frame_ops): Replace eh_frame_regnum with adjust_regnum.
4301 (dwarf2_frame_set_eh_frame_regnum): Rename to...
4302 (dwarf2_frame_set_adjust_regnum): ...this. Update argument type.
4303 * dwarf2frame.h (dwarf2_frame_set_eh_frame_regnum): Rename to...
4304 (dwarf2_frame_set_adjust_regnum): ...this.
4305 (dwarf2_frame_eh_frame_regnum): Delete prototype.
4306 * rs6000-tdep.c: Include "dwarf2-frame.h".
4307 (rs6000_adjust_frame_regnum): Define.
4308 (rs6000_gdbarch_init): Enable use of DWARF CFI frame unwinder.
4309 Register rs6000_adjust_frame_regnum.
4310
4311 * Makefile.in (rs6000-tdep.o): Update dependencies.
4312
4313 2007-03-27 Brooks Moses <brooks.moses@codesourcery.com>
4314
4315 * Makefile.in: Add support for a "pdf" target.
4316
4317 2007-03-27 Daniel Jacobowitz <dan@codesourcery.com>
4318
4319 * amd64-tdep.c (amd64_init_frame_cache): New function.
4320 (amd64_alloc_frame_cache, amd64_skip_prologue): Use it.
4321
4322 2007-03-26 Nigel Stephens <nigel@mips.com>
4323 Maciej W. Rozycki <macro@mips.com>
4324
4325 * ui-out.c (ui_out_field_core_addr): Truncate address to
4326 TARGET_ADDR_BIT size before printing.
4327
4328 2007-03-22 Nigel Stephens <nigel@mips.com>
4329 Maciej W. Rozycki <macro@mips.com>
4330
4331 * remote-mips.c (mips_xfer_memory): Update prototype.
4332
4333 2007-03-22 Joel Brobecker <brobecker@adacore.com>
4334
4335 * symfile.h: #include "symtab.h"
4336
4337 2007-03-22 Denis Pilat <denis.pilat@st.com>
4338
4339 * utils.c (pagination_on_command, pagination_off_command):
4340 Remove useless prototypes.
4341
4342 2007-03-21 Pierre Muller <muller@ics.u-strasbg.fr>
4343
4344 Fix PR pascal/2232.
4345 * p-valprint.c (pascal_object_print_value): Use type_name_no_tag
4346 instead of TYPE_NAME for object base class name.
4347
4348
4349 2007-03-19 Kevin Buettner <kevinb@redhat.com>
4350
4351 * mep-tdep.c (mep_analyze_frame_prologue, mep_frame_this_id):
4352 Specify frame type in calls to frame_func_unwind().
4353
4354 2007-03-13 Daniel Jacobowitz <dan@codesourcery.com>
4355
4356 * rs6000-tdep.c (rs6000_skip_prologue): Use skip_prologue_using_sal.
4357 (rs6000_in_function_epilogue_p): Use extract_unsigned_integer.
4358 (refine_prologue_limit): Delete.
4359 (skip_prologue): Don't call it. Use extract_unsigned_integer.
4360 Assume lim_pc is set. Correct check for incomplete prologues.
4361 Do not skip clobbers of the frame pointer.
4362 * symtab.c (skip_prologue_using_sal): Fail if there is only one
4363 sal.
4364
4365 2007-03-13 Nathan Froyd <froydnj@codesourcery.com>
4366
4367 * frame.c (frame_pop): Check to see whether there's a frame to
4368 which we can pop first.
4369
4370 2007-03-13 Nathan Froyd <froydnj@codesourcery.com>
4371
4372 * MAINTAINERS (Write After Approval): Add myself.
4373
4374 2007-03-09 Markus Deuling <deuling@de.ibm.com>
4375
4376 * infrun.c (breakpoints_failed): Remove unnecessary variable.
4377 (handle_inferior_event): Remove unnecessary braces.
4378 * breakpoint.c (bpstat_what): Remove wrong comment.
4379
4380 2007-03-09 Ulrich Weigand <uweigand@de.ibm.com>
4381
4382 * spu-tdep.c (spu_in_function_epilogue_p): New function.
4383 (spu_gdbarch_init): Install it.
4384
4385 2007-03-08 Ulrich Weigand <uweigand@de.ibm.com>
4386
4387 * spu-linux-nat.c (spu_xfer_partial): Return -1 for unsupported
4388 object types, not 0.
4389
4390 2007-03-08 Ulrich Weigand <uweigand@de.ibm.com>
4391
4392 * spu-tdep.c (spu_frame_align): New function.
4393 (spu_gdbarch_init): Install it. Set call dummy location to ON_STACK.
4394
4395 2007-03-08 Ulrich Weigand <uweigand@de.ibm.com>
4396
4397 * spu-tdep.c (spu_unwind_pc): Mask off interrupt enable bit.
4398 (spu_software_single_step): Likewise.
4399 (spu_read_pc, spu_write_pc): New functions.
4400 (spu_gdbarch_init): Install them.
4401
4402 2007-03-08 Ulrich Weigand <uweigand@de.ibm.com>
4403
4404 * cli/cli-dump.c (struct callback_data): load_offset needs to
4405 have signed long type.
4406
4407 2007-03-07 Joel Brobecker <brobecker@adacore.com>
4408
4409 * mips-tdep.c (mips_insn16_frame_cache, mips_insn32_frame_sniffer):
4410 Revert the previous change that had some unexpected side-effects
4411 on mips32.
4412 (mips_insn16_frame_cache, mips_insn32_frame_cache): Use the proper
4413 function to get the address of the calling instruction.
4414
4415 2007-03-07 Denis Pilat <denis.pilat@st.com>
4416
4417 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Replace
4418 get_selected_frame by deprecated_safe_get_selected_frame.
4419
4420 2007-03-02 Mark Kettenis <kettenis@gnu.org>
4421
4422 * shnbsd-tdep.c: Include "regset.h", "gdb_assert.h" and
4423 "gdb_string.h". Don't include "nbsd-tdep.h".
4424 (SIZEOF_STRUCT_REG): Remove.
4425 (SHNBSD_SIZEOF_GREGS): New.
4426 (shnbsd_supply_gregset, shnbsd_collect_gregset)
4427 (shnbsd_regset_from_core_section): New functions.
4428 (fetch_core_registers, fetch_elfcore_registers): Remove functions.
4429 (shnbsd_supply_reg, shnbsd_fill_reg): Simply call
4430 shnbsd_supply_gregset, shnbsd_collect_gregset.
4431 (shnbsd_gregset): New variable.
4432 (shnbsd_init_abi): Set regset_from_core_section.
4433 (GDB_OSABI_NETBSD_CORE): New define.
4434 (shnbsd_core_osabi_sniffer): New function.
4435 (_initialize_shnbsd_tdep): Register shnbsd_core_osabi_sniffer.
4436 * Makefile.in (shnbsd-tdep.o): Update dependencies.
4437 * config/sh/nbsd.mt (TDEPFILES): Add corelow.o, remove
4438 nbsd-tdep.o.
4439 * config/sh/obsd.mt (TDEPFILES): Remove nbsd-tdep.o.
4440
4441 2007-02-28 Joel Brobecker <brobecker@adacore.com>
4442
4443 * gdbtypes.c (replace_type): Fix typo that caused us to not update
4444 length of the types referenced by the new type CV ring.
4445
4446 2007-02-28 Daniel Jacobowitz <dan@codesourcery.com>
4447
4448 * frame.c (frame_pop, frame_observer_target_changed): Call
4449 reinit_frame_cache.
4450 (flush_cached_frames): Rename to reinit_frame_cache and delete
4451 old implementation.
4452 * frame.h (flush_cached_frames): Delete prototype and update comment.
4453
4454 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd): Call
4455 reinit_frame_cache instead of flush_cached_frames. Do not call
4456 select_frame after reinit_frame_cache.
4457 * corelow.c (core_open): Likewise.
4458 * gdbarch.sh (deprecated_current_gdbarch_select_hack): Likewise.
4459 * infrun.c (prepare_to_proceed, context_switch)
4460 (handle_inferior_event): Likewise.
4461 * linux-fork.c (fork_load_infrun_state): Likewise.
4462 * ocd.c (ocd_start_remote): Likewise.
4463 * remote-e7000.c (e7000_start_remote): Likewise.
4464 * remote-mips.c (device): Likewise.
4465 * thread.c (switch_to_thread): Likewise.
4466 * tracepoint.c (finish_tfind_command): Likewise.
4467 * gdbarch.c: Regenerated.
4468
4469 2007-02-28 Jerome Guitton <guitton@adacore.com>
4470 Joel Brobecker <brobecker@adacore.com>
4471
4472 * gdbtypes.c (check_typedef): Do not replace stub type if
4473 the resolved type is not defined in the same objfile.
4474
4475 2007-02-28 Daniel Jacobowitz <dan@codesourcery.com>
4476
4477 * top.c (gdb_readline_wrapper_cleanup): Remove invalid assertion.
4478
4479 2007-02-28 Joel Brobecker <brobecker@adacore.com>
4480
4481 * stabsread.c (define_symbol): Create an associated STRUCT_DOMAIN
4482 symbol for Ada units when the symbol is defined using 't' rather
4483 than 'Tt' as symbol descriptor.
4484
4485 2007-02-28 Ulrich Weigand <uweigand@de.ibm.com>
4486
4487 * config/mips/tm-nbsd.h: Delete file.
4488 * config/mips/nbsd.mt (DEPRECATED_TM_FILE): Remove.
4489 * config/sh/tm-nbsd.h: Delete file.
4490 * config/sh/nbsd.mt (DEPRECATED_TM_FILE): Set to tm-sh.h.
4491
4492 2007-02-28 Joel Brobecker <brobecker@adacore.com>
4493
4494 * mi/mi-cmd-var.c (varobj_update_one): Remove reference to
4495 unused WRONG_PARAM value since it was recently deleted.
4496
4497 2007-02-28 Vladimir Prus <vladimir@codesourcery.com>
4498
4499 * varobj.c (varobj_update): Free temporary vectors.
4500
4501 2007-02-28 Ulrich Weigand <uweigand@de.ibm.com>
4502
4503 * config/powerpc/linux.mt (DEPRECATED_TM_FILE): Set to tm-ppc-eabi.h.
4504 * config/powerpc/tm-linux.h: Delete file.
4505 * config/powerpc/tm-ppc-eabi.h: Do not include "rs6000/tm-rs6000.h".
4506 (PROCESS_LINENUMBER_HOOK): Do not undefine.
4507 (TEXT_SEGMENT_BASE): Do not redefine.
4508 * config/rs6000/nm-rs6000.h (CHILD_SPECIAL_WAITSTATUS): Move here
4509 from config/rs6000/tm-rs6000.h.
4510 (TARGET_CREATE_INFERIOR_HOOK, rs6000_create_inferior): Likewise.
4511 * config/rs6000/tm-rs6000.h (struct frame_info): Remove declaration.
4512 (TEXT_SEGMENT_BASE): Remove.
4513 (IN_SOLIB_RETURN_TRAMPOLINE): Remove.
4514 (rs6000_in_solib_return_trampoline): Remove.
4515 (SKIP_TRAMPOLINE_CODE): Remove.
4516 (rs6000_skip_trampoline_code): Remove.
4517 (CHILD_SPECIAL_WAITSTATUS): Move to config/rs6000/nm-rs6000.h.
4518 (TARGET_CREATE_INFERIOR_HOOK, rs6000_create_inferior): Likewise.
4519 (FP0_REGNUM): Remove.
4520 (rs6000_find_toc_address_hook): Move to rs6000-tdep.h.
4521 (rs6000_set_host_arch_hook): Remove.
4522 * Makefile.in (rs6000-nat.o): Add dependency on $(rs6000_tdep_h).
4523 (rs6000-aix-tdep.o): Add dependency on $(ppc_tdep_h).
4524 * ppc-tdep.h (struct gdbarch_tdep): Add field text_segment_base.
4525 * rs6000-aix-tdep.c: Include "ppc-tdep.h".
4526 (rs6000_aix_init_osabi): Set text_segment_base tdep field.
4527 * rs6000-nat.c: Include "rs6000-tdep.h".
4528 (exec_one_dummy_insn): Replace TEXT_SEGMENT_BASE by tdep field.
4529 (set_host_arch): Rename to ...
4530 (rs6000_create_inferior): ... this. Make public.
4531 (_initialize_core_rs6000): Do not set rs6000_set_host_arch_hook.
4532 * rs6000-tdep.c (rs6000_set_host_arch_hook): Remove.
4533 (rs6000_create_inferior): Remove.
4534 (branch_dest): Replace TEXT_SEGMENT_BASE by tdep field.
4535 (rs6000_gdbarch_init): Call set_gdbarch_fp0_regnum,
4536 set_gdbarch_in_solib_return_trampoline, and
4537 set_gdbarch_skip_trampoline_code.
4538 * rs6000-tdep.h (rs6000_find_toc_address_hook): Move here
4539 from config/rs6000/tm-rs6000.h.
4540
4541 2007-02-27 Joel Brobecker <brobecker@adacore.com>
4542
4543 * buildsym.c (record_producer): Do nothing if no producer is provided.
4544
4545 2007-02-27 Nick Roberts <nickrob@snap.net.nz>
4546
4547 * varobj.c (varobj_update): Remove unused local. Use gdb_assert
4548 to check changelist is non-NULL. Call error if the frontend tries
4549 to update a non-root variable.
4550
4551 * varobj.h (enum varobj_update_error): Delete WRONG_PARAM value.
4552
4553 2007-02-27 Daniel Jacobowitz <dan@codesourcery.com>
4554
4555 * dwarf2-frame.c (dwarf2_frame_cache, dwarf2_frame_this_id)
4556 (dwarf2_frame_sniffer): Update.
4557 (dwarf2_signal_frame_this_id): New function.
4558 (dwarf2_signal_frame_unwind): Use it.
4559 (dwarf2_frame_base_sniffer): Use frame_unwind_address_in_block.
4560 * frame.c (frame_func_unwind): Add this_type argument.
4561 (get_frame_func): Update.
4562 (frame_unwind_address_in_block): Add this_type argument and check it.
4563 Fix a typo.
4564 (get_frame_address_in_block): Update.
4565 * frame.h (enum frame_type): Move higher in the file.
4566 (frame_unwind_address_in_block, frame_func_unwind): Add enum frame_type
4567 argument.
4568
4569 * alpha-mdebug-tdep.c, alpha-tdep.c, amd64-tdep.c, amd64obsd-tdep.c,
4570 arm-tdep.c, avr-tdep.c, cris-tdep.c, frv-tdep.c, h8300-tdep.c,
4571 hppa-tdep.c, i386-tdep.c, i386obsd-tdep.c, ia64-tdep.c,
4572 libunwind-frame.c, m32c-tdep.c, m32r-linux-tdep.c, m32r-tdep.c,
4573 m68hc11-tdep.c, m68k-tdep.c, m88k-tdep.c, mips-mdebug-tdep.c,
4574 mips-tdep.c, mn10300-tdep.c, mt-tdep.c, rs6000-tdep.c, s390-tdep.c,
4575 score-tdep.c, sh-tdep.c, sh64-tdep.c, sparc-tdep.c,
4576 sparc64obsd-tdep.c, spu-tdep.c, v850-tdep.c, vax-tdep.c,
4577 xstormy16-tdep.c, xtensa-tdep.c: Update calls to
4578 frame_func_unwind and frame_unwind_address_in_block to specify
4579 the frame type. Use frame_unwind_address_in_block instead of
4580 frame_pc_unwind in sniffers.
4581
4582 2007-02-27 Daniel Jacobowitz <dan@codesourcery.com>
4583
4584 * frame.c (deprecated_selected_frame): Rename to...
4585 (selected_frame): ...this. Make static.
4586 (get_selected_frame, select_frame): Update.
4587 * frame.h (deprected_select_frame): Delete.
4588 (deprecated_safe_get_selected_frame): Update comments.
4589
4590 * breakpoint.c, cli/cli-cmds.c, f-valprint.c, infcmd.c, inflow.c,
4591 infrun.c, stack.c, tui/tui-disasm.c, tui/tui-source.c,
4592 tui/tui-winsource.c, valops.c, varobj.c, findvar.c, macroscope.c,
4593 parse.c, regcache.h, sh64-tdep.c, tui/tui-hooks.c, tui/tui-win.c,
4594 tui/tui.c: Replace references to deprecated_selected_frame.
4595
4596 2007-02-27 Fred Fish <fnf@specifix.com>
4597
4598 * rs6000-tdep.c (skip_prologue): Recognize addi instructions that
4599 directly decrement the stack pointer, accumulate their operand into
4600 the stack offset, and mark the function as not being frameless.
4601
4602 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
4603
4604 * arch-utils.c (selected_byte_order): New.
4605 * arch-utils.h (selected_byte_order): New prototype.
4606 * remote-sim.c (gdbsim_open): Use selected_byte_order.
4607
4608 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
4609
4610 * symfile.c (place_section): Check SEC_ALLOC. Do not check VMA.
4611 (default_symfile_offsets): Check VMA here. Update section VMAs.
4612
4613 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
4614
4615 * remote.c (init_remote_state): Add special handling for placeholder
4616 registers.
4617
4618 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
4619
4620 * Makefile.in (XMLFILES): Include $(TDEP_XML).
4621 (filenames_h): New variable.
4622 (clean): Clean up xml-builtin.c and stamp-xml.
4623 (arm-linux-nat.o): Update.
4624 * config/arm/linux.mh (TDEP_XML): Define.
4625 * arm-linux-nat.c (PTRACE_GETWMMXREGS, PTRACE_SETWMMXREGS): Define.
4626 (arm_linux_has_wmmx_registers): New.
4627 (GET_THREAD_ID): Fix typo.
4628 (IWMMXT_REGS_SIZE): Define.
4629 (fetch_wmmx_regs, store_wmmx_regs): New.
4630 (arm_linux_fetch_inferior_registers): Use fetch_wmmx_regs.
4631 (arm_linux_store_inferior_registers): Use store_wmmx_regs.
4632 (super_xfer_partial, arm_linux_xfer_partial): New.
4633 (_initialize_arm_linux_nat): Use them.
4634 * xml-support.c (fetch_xml_builtin): Move outside HAVE_LIBEXPAT.
4635 (xml_builtin_xfer_partial): New function.
4636 * xml-support.h (xml_builtin_xfer_partial): New prototype.
4637 * NEWS: Update mention of iWMMXt support.
4638
4639 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
4640
4641 * arm-tdep.c (arm_scan_prologue): Do not record FPA register saves
4642 if there are no FPA registers.
4643 (arm_dwarf_reg_to_regnum): New function.
4644 (arm_register_type, arm_register_name): Return minimal values for
4645 unsupported registers.
4646 (arm_register_sim_regno): Handle iWMMXt registers.
4647 (arm_gdbarch_init): Record missing FPA registers if indicated by
4648 a target description. Recognize iWMMXt registers. Only register
4649 "info float" for FPA. Use ARM_NUM_REGS. Register
4650 arm_dwarf_reg_to_regnum.
4651 * arm-tdep.h (enum gdb_regnum): Add ARM_NUM_REGS and iWMMXt
4652 constants.
4653 (struct gdbarch_tdep): Add have_fpa_registers.
4654 * features/xscale-iwmmxt.xml: Update capitalization.
4655 * regformats/arm-with-iwmmxt.dat: Regenerated.
4656
4657 2007-02-24 Kevin Buettner <kevinb@redhat.com>
4658
4659 * NEWS (New targets): Add entry for the Toshiba Media Processor.
4660
4661 2007-02-23 Kevin Buettner <kevinb@redhat.com>
4662
4663 * MAINTAINERS (mep): New target.
4664
4665 2007-02-23 Kevin Buettner <kevinb@redhat.com>
4666
4667 From Jim Blandy, Dave Brolley, Kevin Buettner, Don Howard, and
4668 Richard Sandiford:
4669 * Makefile.in (elf_mep_h, mep_desc_h, mep_opc_h): New variables.
4670 (mep-tdep.o): New rule.
4671 * configure.tgt (mep-*-*): New target.
4672 * mep-tdep.c: New file.
4673 * config/mep/mep.mt: New file.
4674
4675 2007-02-22 Markus Deuling <deuling@de.ibm.com>
4676
4677 * infrun.c (inferior_stop_reason, print_stop_reason): Remove
4678 BREAKPOINT_HIT and STOP_UNKNOWN.
4679
4680 2007-02-22 Markus Deuling <deuling@de.ibm.com>
4681
4682 * valops.c (value_ind): Fix unary * handling of TYPE_CODE_INT.
4683
4684 2007-02-20 Joel Brobecker <brobecker@adacore.com>
4685
4686 * gdb_expat.h (XMLCALL): Define if not already defined.
4687
4688 2007-02-20 Andreas Schwab <schwab@suse.de>
4689
4690 * Makefile.in (symfile.o): Update dependencies.
4691
4692 2007-02-20 Daniel Jacobowitz <dan@codesourcery.com>
4693
4694 * MAINTAINERS: Disable -Werror for cris simulator. Build
4695 sparc64-solaris2.10 instead of the broken sparc-elf.
4696 * solib-frv.c: Include "solib.h".
4697 * Makefile.in (solib-frv.o): Update.
4698 * mt-tdep.c (mt_gdbarch_init): Correct typo in floatformats patch.
4699 * xtensa-tdep.c (xtensa_regset_from_core_section): Cast size_t to int.
4700 (xtensa_frame_this_id, xtensa_frame_prev_register)
4701 (xtensa_push_dummy_call): Use %p.
4702
4703 2007-02-16 Daniel Jacobowitz <dan@codesourcery.com>
4704
4705 * avr-tdep.c, hppa-tdep.c, hppabsd-tdep.c, i386-tdep.c,
4706 ia64-tdep.c, m68k-tdep.c, mips-linux-tdep.c, ppcobsd-tdep.c,
4707 sparc-linux-tdep.c: Include "gdbtypes.h" instead of "floatformat.h".
4708 * Makefile.in (avr-tdep.o, hppabsd-tdep.o, hppa-tdep.o, i386-tdep.o)
4709 (ia64-tdep.o, m68k-tdep.o, mips-linux-tdep.o, ppcobsd-tdep.o)
4710 (sparc-linux-tdep.o): Update.
4711
4712 2007-02-15 Maxim Grigoriev <maxim2405@gmail.com>
4713
4714 * xtensa-tdep.h (xtensa_reg_mask_t): New.
4715 (xtensa_mask_t): Change mask field to be a separate array.
4716 * xtensa-tdep.c (extract_call_winsize, xtensa_pseudo_register_read)
4717 (xtensa_pseudo_register_write, xtensa_unwind_pc)
4718 (xtensa_unwind_dummy_id, xtensa_push_dummy_call)
4719 (xtensa_breakpoint_from_pc): Remove implicit type casting.
4720 * xtensa-config.c (mask0, mask1, mask2, mask3, mask4, mask5)
4721 (mask6, mask7, mask8, mask9, mask10, mask11, mask12, mask13)
4722 (mask14, mask15): Rename to
4723 (xtensa_mask0, xtensa_mask1, xtensa_mask2, xtensa_mask3)
4724 (xtensa_mask4, xtensa_mask5, xtensa_mask6, xtensa_mask7)
4725 (xtensa_mask8, xtensa_mask9, xtensa_mask10, xtensa_mask11)
4726 (xtensa_mask12, xtensa_mask13, xtensa_mask14, xtensa_mask15): this.
4727 (xtensa_submask0, xtensa_submask1, xtensa_submask2, xtensa_submask3)
4728 (xtensa_submask4, xtensa_submask5, xtensa_submask6, xtensa_submask7)
4729 (xtensa_submask8, xtensa_submask9, xtensa_submask10)
4730 (xtensa_submask11, xtensa_submask12, xtensa_submask13)
4731 (xtensa_submask14, xtensa_submask15): New.
4732 (rmap): Follow strict aliasing rules doing static initialization.
4733
4734 2007-02-13 Daniel Jacobowitz <dan@codesourcery.com>
4735
4736 * target-descriptions.c (tdesc_named_type): Move code_ptr and data_ptr
4737 handling from here...
4738 (tdesc_register_type): ...to here.
4739 * xml-tdesc.c (tdesc_start_reg): Allow code_ptr and data_ptr.
4740 * features/arm-core.xml: Use code_ptr and data_ptr.
4741
4742 2007-02-13 Denis Pilat <denis.pilat@st.com>
4743
4744 * varobj.h (enum varobj_update_error): New enum.
4745 * varobj.c (struct varobj_root): Add is_valid member.
4746 (varobj_get_type): Check for invalid varobj.
4747 (varobj_get_attributes): Likewise.
4748 (variable_editable):Likewise.
4749 (varobj_update): Likewise. Use varobj_update_error.
4750 (new_root_variable): Set root varobj as valid by default.
4751 (varobj_invalidate): New function.
4752 * symfile.c (clear_symtab_users): Use varobj_invalidate.
4753 * mi/mi-cmd-var.c (varobj_update_one): Change return type to void.
4754 Use varobj_update_error.
4755
4756 2007-02-12 Pierre Muller <muller@ics.u-strasbg.fr>
4757
4758 Fix PR pascal/2223.
4759 * dwarfread.c (set_cu_language): Recognize DW_LANG_Pascal83 as
4760 Pascal language marker.
4761 * dwarf2read.c (set_cu_language): Likewise.
4762
4763 2007-02-12 Corinna Vinschen <vinschen@redhat.com>
4764
4765 * win32-nat.c (win32_wait): Reset terminal pgrp to GDB.
4766 (do_initial_win32_stuff): Call terminal_init_inferior_with_pgrp
4767 instead of target_terminal_init since inferior_ptid isn't set yet.
4768
4769 2007-02-10 Pedro Alves <pedro_alves@portugalmail.pt>
4770
4771 * MAINTAINERS (Write After Approval): Add myself.
4772
4773 2007-02-09 Fred Fish <fnf@specifix.com>
4774
4775 Based on work by Apple Computer, Inc.
4776 * event-top.c (async_request_quit): Call quit() whenever either
4777 quit_flag is set or immediate_quit is set.
4778
4779 2007-02-09 Gabriel Dos Reis <gdr@integrable-solutions.net>
4780
4781 * ada-lang.c (remove_out_of_scope_renamings): Change third parameter's
4782 type to a pointer to const struct block.
4783 (ada_lookup_symbol_list): Don't cast away constness when calling
4784 remove_out_of_scope_renamings.
4785
4786 2007-02-09 Gabriel Dos Reis <gdr@integrable-solutions.net>
4787
4788 * linux-nat.c (linux_nat_find_memory_regions): Don't check the
4789 address of 'filename'; it is always non null.
4790
4791 2007-02-09 Joel Brobecker <brobecker@adacore.com>
4792
4793 * exec.c (add_to_section_table): Do not discard empty sections.
4794
4795 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
4796
4797 * features/Makefile, features/arm-with-iwmmxt.xml,
4798 features/gdbserver-regs.xsl, features/number-regs.xsl,
4799 features/sort-regs.xsl, features/xscale-iwmmxt.xml: New files.
4800 * regformats/arm-with-iwmmxt.dat: Generate.
4801 * NEWS: Mention iWMMXt.
4802
4803 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
4804
4805 * Makefile.in (arm-tdep.o, eval.o, target-descriptions.o)
4806 (xml-tdesc.o): Update.
4807 * xml-support.c: Add a comment.
4808 (gdb_xml_enums_boolean): New variable.
4809 (gdb_xml_parse_attr_enum): Use strcasecmp.
4810 * xml-support.h (gdb_xml_enums_boolean): Declare.
4811 * xml-tdesc.c (struct tdesc_parsing_data): Record current_feature,
4812 next_regnum, and current_union.
4813 (tdesc_start_feature, tdesc_start_reg, tdesc_start_union)
4814 (tdesc_end_union, tdesc_start_field, tdesc_start_vector)
4815 (field_attributes, union_children, reg_attributes, union_attributes)
4816 (vector_attributes, feature_attributes, feature_children): New.
4817 (target_children): Make static. Add <feature>.
4818 (tdesc_elements): Make static.
4819 * target-descriptions.c (struct tdesc_reg, tdesc_reg_p, type_p)
4820 (struct tdesc_feature, tdesc_feature_p): New types.
4821 (struct target_desc): Add features member.
4822 (struct tdesc_arch_data, tdesc_data): New.
4823 (target_find_description): Clarify error message. Warn about
4824 ignored register descriptions.
4825 (tdesc_has_registers, tdesc_find_feature, tdesc_feature_name)
4826 (tdesc_named_type, tdesc_data_init, tdesc_data_alloc)
4827 (tdesc_data_cleanup, tdesc_numbered_register)
4828 (tdesc_numbered_register_choices, tdesc_find_register)
4829 (tdesc_register_name, tdesc_register_type)
4830 (tdesc_remote_register_number, tdesc_register_reggroup_p)
4831 (set_tdesc_pseudo_register_name, set_tdesc_pseudo_register_type)
4832 (set_tdesc_pseudo_register_reggroup_p, tdesc_use_registers)
4833 (tdesc_free_reg, tdesc_create_reg, tdesc_free_feature)
4834 (tdesc_create_feature, tdesc_record_type): New.
4835 (free_target_description): Free features.
4836 (_initialize_target_descriptions): Initialize tdesc_data.
4837 * arch-utils.c (default_remote_register_number): New.
4838 * arch-utils.h (default_remote_register_number): New prototype.
4839 * target-descriptions.h (set_tdesc_pseudo_register_name)
4840 (set_tdesc_pseudo_register_type, set_tdesc_pseudo_register_reggroup_p)
4841 (tdesc_use_registers, tdesc_data_alloc, tdesc_data_cleanup)
4842 (tdesc_numbered_register, tdesc_numbered_register_choices)
4843 (tdesc_has_registers, tdesc_find_feature, tdesc_feature_name)
4844 (tdesc_named_type, tdesc_create_feature, tdesc_record_type)
4845 (tdesc_create_reg): Declare.
4846 * gdbarch.sh (remote_register_number): New entry.
4847 * gdbarch.c, gdbarch.h: Regenerate.
4848 * remote.c (init_remote_state): Use gdbarch_remote_register_number.
4849 * features/gdb-target.dtd: Add feature, reg, vector, union, and field.
4850
4851 * arm-tdep.c (arm_register_aliases): New.
4852 (arm_register_name_strings): Rename to...
4853 (arm_register_names): ...this. Make const. Delete the old version.
4854 (current_option, arm_register_byte): Delete.
4855 (set_disassembly_style): Simplify. Do not adjust arm_register_names.
4856 (value_of_arm_user_reg): New.
4857 (arm_gdbarch_init): Verify any described registers. Call
4858 tdesc_use_registers. Don't use arm_register_byte. Create aliases
4859 for standard register names.
4860 (_initialize_arm_tdep): Do not adjust arm_register_names.
4861 * user-regs.c (struct user_reg): Add baton member.
4862 (append_user_reg, user_reg_add_builtin, user_regs_init)
4863 (user_reg_add, value_of_user_reg): Use a baton for user
4864 register functions.
4865 * std-regs.c: Update.
4866 * user-regs.h (user_reg_read_ftype, user_reg_add_builtin)
4867 (user_reg_add): Add baton argument.
4868 * NEWS: Mention target description register support.
4869 * features/arm-core.xml, features/arm-fpa.xml: New.
4870 * eval.c (evaluate_subexp_standard): Allow ptype $register
4871 when the program is not running.
4872
4873 2007-02-09 Nick Roberts <nickrob@snap.net.nz>
4874
4875 * mi/mi-cmd-var.c (mi_cmd_var_create): Add value field.
4876
4877 2007-02-08 Thiago Jung Bauermann <bauerman@br.ibm.com>
4878
4879 * rs6000-tdep.c (gdb_print_insn_powerpc): Set
4880 info->disassembler_options to "any".
4881
4882 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
4883
4884 * varobj.c (install_new_value): Only call value_get_print_value
4885 if changeable.
4886
4887 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
4888
4889 Reported by timeless@gmail.com:
4890 * gdb/target.c (target_flash_erase): Do not return void value.
4891 (target_flash_done): Likewise.
4892 * gdb/cli/cli-cmds.c (source_command): Likewise.
4893
4894 2007-02-08 Fred Fish <fnf@specifix.com>
4895
4896 Based on work by Apple Computer, Inc.
4897 * event-top.c (handle_sigint): Set quit_flag.
4898 (async_request_quit): Don't set quit_flag. Avoid calling quit()
4899 if quit_flag has already been reset.
4900
4901 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
4902
4903 * ser-mingw.c (pipe_windows_close): Move variable initialization back
4904 up.
4905
4906 2007-02-08 Fred Fish <fnf@specifix.com>
4907
4908 * defs.h (request_quit): Remove declaration.
4909 * utils.c (request_quit): Remove definition.
4910
4911 2007-02-08 Joel Brobecker <brobecker@gnat.com>
4912 Jan Kratochvil <jan.kratochvil@redhat.com>
4913 Daniel Jacobowitz <dan@codesourcery.com>
4914
4915 * rs6000-tdep.c (bl_to_blrl_insn_p): New function.
4916 (skip_prologue): Allow bl->blrl used by PIC code.
4917
4918 2007-02-08 Mark Kettenis <kettenis@gnu.org>
4919 Daniel Jacobowitz <dan@codesourcery.com>
4920
4921 * cp-valprint.c (cp_print_value_fields, cp_print_value): Always
4922 initialize tmp_obstack.
4923 * p-valprint.c (pascal_object_print_value_fields)
4924 (pascal_object_print_value): Likewise.
4925
4926 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
4927
4928 * features/feature_to_c.sh: Use %s to avoid problems with nawk.
4929
4930 2007-02-08 Mark Kettenis <kettenis@gnu.org>
4931
4932 * sparcnbsd-tdep.c: Include "gdbtypes.h" instead of "floatformat.h".
4933 * Makefile.in (sparcnbsd-tdep.o): Update dependencies.
4934
4935 2007-02-07 Daniel Jacobowitz <dan@codesourcery.com>
4936
4937 * xml-tdesc.c (struct tdesc_xml_cache, tdesc_xml_cache_s)
4938 (xml_cache): New.
4939 (tdesc_parse_xml): Cache expanded descriptions.
4940
4941 2007-02-07 Daniel Jacobowitz <dan@codesourcery.com>
4942
4943 * Makefile.in (XMLFILES): New.
4944 (COMMON_OBS): Add xml-builtin.o.
4945 (xml-builtin.c, stamp-xml): New rules.
4946 (xml-tdesc.o): Update.
4947 * features/feature_to_c.sh: New file.
4948 * xml-support.c (MAX_XINCLUDE_DEPTH): Define.
4949 (struct gdb_xml_parser): Add dtd_name and is_xinclude.
4950 (gdb_xml_start_element): Initialize scope after possibly reallocating
4951 scopes. Move cleanup later. Handle the XInclude description
4952 specially.
4953 (gdb_xml_end_element): Only parse the body if there is a current element.
4954 Call XML_DefaultCurrent if there is no element.
4955 (gdb_xml_fetch_external_entity, gdb_xml_use_dtd): New.
4956 (struct xinclude_parsing_data, xinclude_start_include)
4957 (xinclude_end_include, xml_xinclude_default)
4958 (xml_xinclude_start_doctype, xml_xinclude_end_doctype)
4959 (xml_xinclude_xml_decl, xml_xinclude_cleanup, xinclude_attributes)
4960 (xinclude_elements, xml_process_xincludes, fetch_xml_builtin): New.
4961 * xml-support.h (xml_fetch_another, xml_process_xincludes)
4962 (fetch_xml_builtin, xml_builtin, gdb_xml_use_dtd): New declarations.
4963 * xml-tdesc.c (tdesc_parse_xml): Add fetcher_baton argument. Expand
4964 XInclude directives. Use the compiled in DTD.
4965 (fetch_xml_from_file): Add baton argument. Treat it as a containing
4966 directory name. Do not warn here.
4967 (file_read_description_xml): Update call. Warn here instead. Pass
4968 a dirname as baton.
4969 (fetch_available_features_from_target): New.
4970 (target_read_description_xml): Use it.
4971 * features/gdb-target.dtd: Add copyright notice. Use xinclude.dtd
4972 to handle XInclude.
4973 * features/xinclude.dtd: New file.
4974
4975 2007-02-05 Daniel Jacobowitz <dan@codesourcery.com>
4976
4977 * linux-thread-db.c (check_for_thread_db): Return early if we have
4978 no libthread_db support.
4979
4980 2007-02-05 Daniel Jacobowitz <dan@codesourcery.com>
4981
4982 * mi/mi-parse.h: Include <sys/time.h>.
4983
4984 2007-02-05 Nick Roberts <nickrob@snap.net.nz>
4985
4986 * mi/mi-cmd-stack.c (list_args_or_locals): Use common_val_print
4987 instead of print_variable_value to print values.
4988
4989 2007-02-03 Nick Roberts <nickrob@snap.net.nz>
4990
4991 * mi/mi-main.c: Numerous formatting changes.
4992 (mi_cmd_data_write_register_values): Replace clause inadvertantly
4993 removed in my previous change.
4994
4995 2007-02-03 Eli Zaretskii <eliz@gnu.org>
4996
4997 * mi/mi-main.c (mi_load_progress, timestamp, print_diff_now):
4998 Use 1000000L instead of 1000000.
4999
5000 2007-02-03 Nick Roberts <nickrob@snap.net.nz>
5001
5002 Based on work by Apple Computer, Inc.
5003
5004 * configure.ac: Test for sys/resource.h and getrusage.
5005 * configure, config.in: Regenerate.
5006
5007 * mi/mi-main.c: Include <sys/resource.h> if present.
5008 (rusage): Declare if HAVE_GETRUSAGE.
5009 (current_command_ts, do_timings): New static variables.
5010 (timestamp, print_diff_now, print_diff, timeval_diff):
5011 New static timing functions.
5012 (mi_cmd_enable_timings): New function for new MI command.
5013 (captured_mi_execute_command, mi_execute_async_cli_command):
5014 Call timing functions.
5015
5016 * mi/mi-cmds.c (mi_cmds): Add entry for new MI command
5017 -enable-timings.
5018
5019 * mi/mi-cmds.h (mi_cmd_enable_timings): New extern.
5020
5021 * mi/mi-parse.h: (mi_timestamp): New structure.
5022 (mi_parse): Add mi_timestamp* member.
5023
5024 2007-02-02 Denis Pilat <denis.pilat@st.com>
5025
5026 * thread.c (make_cleanup_restore_current_thread): New function.
5027 (info_threads_command): Use of make_cleanup_restore_current_thread
5028 to restore the current thread and the selected frame.
5029 (restore_selected_frame): New function.
5030 (struct current_thread_cleanup): Add frame_id field.
5031 (do_restore_current_thread_cleanup): Add restoring of the selected
5032 frame.
5033 (make_cleanup_restore_current_thread): Likewise.
5034 (thread_apply_all_command): backup the selected frame while
5035 entering the function and restore it at exit.
5036 (thread_apply_command): Likewise.
5037
5038 2007-02-02 Denis Pilat <denis.pilat@st.com>
5039
5040 * MAINTAINERS (Write After Approval): Add myself to the list.
5041
5042 2007-02-01 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
5043
5044 * gdb/remote-m32r.sdi.c (m32r_fetch_register): Change PWD mask.
5045 (m32r_store_register): Ditto.
5046
5047 2007-01-30 Vladimir Prus <vladimir@codesourcery.com>
5048
5049 * ser-mingw.c (pipe_windows_open)
5050 (pipe_windows_read, pipe_windows_write): Declare
5051 variables at the top of the function.
5052
5053 2007-01-29 Daniel Jacobowitz <dan@codesourcery.com>
5054
5055 * doublest.c (floatformat_from_length): Use the right element from
5056 gdbarch floatformats.
5057 (floatformat_from_type, extract_typed_floating)
5058 (store_typed_floating): Likewise.
5059 * doublest.h: Remove declarations for undefined floatformat arrays.
5060 * gdbarch.sh (float_format, double_format, long_double_format): Change
5061 to pairs.
5062 (pformat): Update for pairs.
5063 * gdbarch.c, gdbarch.h: Regenerated.
5064 * gdbtypes.c (floatformats_ieee_single, floatformats_ieee_double)
5065 (floatformats_ieee_double_littlebyte_bigword)
5066 (floatformats_i387_ext, floatformats_m68881_ext, floatformats_arm_ext)
5067 (floatformats_ia64_spill, floatformats_ia64_quad, floatformats_vax_f)
5068 (floatformats_vax_d): New variables.
5069 (builtin_type_ieee_single, builtin_type_ieee_double)
5070 (builtin_type_arm_ext, builtin_type_ia64_spill)
5071 (builtin_type_ia64_quad): Replace arrays with individual types.
5072 (builtin_type_ieee_single_big, builtin_type_ieee_single_little)
5073 (builtin_type_ieee_double_big, builtin_type_ieee_double_little)
5074 (builtin_type_ieee_double_littlebyte_bigword, builtin_type_i960_ext)
5075 (builtin_type_m88110_ext, builtin_type_m88110_harris_ext)
5076 (builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword)
5077 (builtin_type_ia64_spill_big, builtin_type_ia64_spill_little)
5078 (builtin_type_ia64_quad_big, builtin_type_ia64_quad_little): Delete
5079 unused and endian-specific types.
5080 (recursive_dump_type): Update for floatformat pairs.
5081 (build_flt): Move higher. Handle bit == -1. Take a floatformat pair.
5082 (build_gdbtypes): Use build_flt.
5083 (_initialize_gdbtypes): Update set of initialized types.
5084 * gdbtypes.h: Update declarations to match gdbtypes.c.
5085 (struct main_type): Store a pointer to two floatformats.
5086 * arch-utils.c (default_float_format, default_double_format): Delete.
5087 * arch-utils.h (default_float_format, default_double_format): Delete.
5088
5089 * arm-tdep.c, avr-tdep.c, hppa-tdep.c, hppabsd-tdep.c, i386-tdep.c,
5090 ia64-tdep.c, iq2000-tdep.c, m68k-tdep.c, m88k-tdep.c,
5091 mips-linux-tdep.c, mips-tdep.c, mt-tdep.c, ppcobsd-tdep.c,
5092 sparc-linux-tdep.c, sparc-tdep.c, sparcnbsd-tdep.c, spu-tdep.c,
5093 vax-tdep.c, alpha-tdep.c, ppc-sysv-tdep.c: Update.
5094
5095 2007-01-29 Joel Brobecker <brobecker@adacore.com>
5096
5097 * target.c (maintenance_print_target_stack): New function.
5098 (initialize_targets): Add new "maintenance print target-stack"
5099 command.
5100
5101 2007-01-28 Mark Kettenis <kettenis@gnu.org>
5102
5103 * dwarf2read.c (new_symbol): Handle DW_AT_decl_file being zero.
5104
5105 2007-01-27 Daniel Jacobowitz <dan@codesourcery.com>
5106
5107 * dwarf2loc.h (struct dwarf2_locexpr_baton): Change size to a long.
5108 (struct dwarf2_loclist_baton): Likewise.
5109
5110 2007-01-27 Eli Zaretskii <eliz@gnu.org>
5111
5112 * cli/cli-script.c: Include breakpoint.h.
5113 (build_command_line): Require arguments only for if and while
5114 commands.
5115 (get_command_line, execute_user_command, execute_control_command):
5116 Fix wording of warning messages.
5117 (print_command_lines): Print breakpoint commands.
5118 (execute_control_command): Call commands_from_control_command to
5119 handle the `commands' command inside a body of a flow-control
5120 command.
5121 (read_next_line): Recognize the `commands' command and build a
5122 command line structure for it.
5123 (recurse_read_control_structure, read_command_lines): Handle
5124 `commands' similarly to `if' and `while'.
5125
5126 * breakpoint.c (get_number_trailer): Document the special meaning
5127 of NULL as the first argument PP.
5128 (commands_from_control_command): New function.
5129
5130 * breakpoint.h (commands_from_control_command): Add prototype.
5131
5132 * defs.h (commands_control): New enumerated value for enum
5133 command_control_type.
5134
5135 2007-01-26 Joel Brobecker <brobecker@adacore.com>
5136
5137 * ada-lang.c (ada_exception_breakpoint_ops): Fix typo in function name.
5138 (ada_exception_sal): Update accordingly.
5139
5140 2007-01-26 Jan Kratochvil <jan.kratochvil@redhat.com>
5141
5142 * c-valprint.c (c_val_print): Require strings to be of no-signed CHARs.
5143 * NEWS: Describe CHAR array vs. string identifcation rules.
5144
5145 2007-01-25 Paul Brook <paul@codesourcery.com>
5146
5147 * arm-tdep.c (arm_get_next_pc): Fix bitfield off-by-one error.
5148
5149 2007-01-24 Jim Blandy <jimb@codesourcery.com>
5150
5151 * dwarf2loc.c (dwarf2_evaluate_loc_desc): When the location
5152 expression is empty, bother to return the 'optimized out' value we
5153 construct. (Thanks to Carl Burch.)
5154
5155 2007-01-24 Vladimir Prus <vladimir@codesourcery.com>
5156
5157 * varobj.c (c_value_of_root, c_value_of_child)
5158 (cplus_describe_child): Don't call release_value.
5159
5160 2007-01-24 Thiemo Seufer <ths@mips.com>
5161
5162 * mips-linux-tdep.c (mips_linux_n64_rt_sigframe): Fix struct
5163 initialization.
5164
5165 2007-01-24 Vladimir Prus <vladimir@codesourcery.com>
5166
5167 Refactor getting children name, value and type access
5168 for varobjs in C++.
5169 * varobj.c (get_type_deref): Remove.
5170 (adjust_value_for_child_access): New.
5171 (c_number_of_children): Use the above.
5172 (c_describe_child): Likewise.
5173 (enum accessibility): New.
5174 (match_accessibility): New function.
5175 (cplus_describe_child): New function.
5176 (cplus_name_of_child, cplus_value_of_child)
5177 (cplus_type_of_child): Reimplement in terms
5178 of cplus_describe_child.
5179 (cplus_number_of_children): Use
5180 adjust_value_for_child_access.
5181
5182 2007-01-24 Vladimir Prus <vladimir@codesourcery.com>
5183
5184 Fix computation of the 'editable' attribute and
5185 value changeability for for references.
5186 * varobj.c (get_value_type): New function.
5187 (c_variable_editable): Use get_value_type.
5188 (varobj_value_is_changeable): Likewise.
5189
5190 2007-01-24 Joel Brobecker <brobecker@adacore.com>
5191
5192 * source.c (find_and_open_source): Try rewriting the source
5193 path inside filename if dirname is NULL.
5194
5195 2007-01-24 Joel Brobecker <brobecker@adacore.com>
5196
5197 * dwarf2read.c (add_partial_symbol): Create an extra partial
5198 symbol in the VAR_DOMAIN for Ada structures, unions or enums.
5199 (new_symbol): Likewise for symbols.
5200
5201 2007-01-24 Nick Roberts <nickrob@snap.net.nz>
5202
5203 * mi/mi-main.c (mi_cmd_execute): Call free_all_values.
5204
5205 2007-01-23 Vladimir Prus <vladimir@codesourcery.com>
5206
5207 * value.c (value_primitive_field): Copy the full 'location'
5208 contents, instead of assuming that copying ADDRESS will
5209 bring over everything in the union. Remove obsolete comment.
5210
5211 2007-01-23 Masaki Muranaka <monaka@monami-software.com>
5212
5213 * m32c-tdep.c (make_regs, m32c_analyze_prologue)
5214 (m32c_skip_trampoline_code, m32c_m16c_address_to_pointer)
5215 (m32c_m16c_pointer_to_address): Separate code from declarations.
5216
5217 2007-01-23 Nick Hudson <nick.hudson@dsl.pipex.com>
5218
5219 * target.c (update_current_target): Correct typo.
5220
5221 2007-01-22 Masaki Muranaka <monaka@monami-software.com>
5222
5223 * xstormy16-tdep.c (xstormy16_skip_prologue): Separate code from a
5224 declaration.
5225
5226 2007-01-11 Andrew Cagney <cagney@redhat.com>
5227 Daniel Jacobowitz <dan@codesourcery.com>
5228 Jan Kratochvil <jan.kratochvil@redhat.com>
5229
5230 * dwarf2-frame.c (execute_cfa_program): New support of
5231 `DW_CFA_GNU_negative_offset_extended'.
5232
5233 2007-01-21 Daniel Jacobowitz <dan@codesourcery.com>
5234
5235 * NEWS: Mention flash support for "load" and new remote packets.
5236
5237 2007-01-21 Markus Deuling <deuling@de.ibm.com>
5238
5239 * breakpoint.c (delete_command): Skip redundant loop iterations.
5240
5241 2007-01-21 Daniel Jacobowitz <dan@codesourcery.com>
5242
5243 * gdbarch.sh (register_type): Update comment.
5244 * gdbarch.h: Regenerated.
5245 * arch-utils.c (generic_register_size): Call register_type.
5246 * ia64-tdep.c (ia64_extract_return_value): Likewise.
5247 * m32c-tdep.c (check_for_saved): Likewise.
5248 * mips-tdep.c (mips_print_register, print_gp_register_row)
5249 (mips_print_registers_info): Likewise.
5250 * sh-tdep.c (sh_pseudo_register_read, sh_pseudo_register_write):
5251 Likewise.
5252 * sh64-tdep.c (sh64_pseudo_register_read, sh64_pseudo_register_write)
5253 (sh64_do_register, sh64_print_register)
5254 (sh64_media_print_registers_info): Likewise.
5255 * tui/tui-regs.c (tui_register_format): Likewise.
5256
5257 2007-01-21 Daniel Jacobowitz <dan@codesourcery.com>
5258
5259 * objfiles.h (ALL_PRIMARY_SYMTABS): Define.
5260
5261 * ada-lang.c (symtab_for_sym, ada_lookup_symbol_list)
5262 (ada_lookup_symbol): Use ALL_PRIMARY_SYMTABS.
5263 * cp-support.c (make_symbol_overload_list_qualified): Likewise.
5264 * symtab.c (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
5265 (basic_lookup_transparent_type, find_pc_sect_symtab, search_symbols)
5266 (make_symbol_completion_list): Likewise.
5267
5268 2007-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
5269 Daniel Jacobowitz <dan@codesourcery.com>
5270
5271 * buildsym.c (end_symtab): Use preallocated symtab if available.
5272 Fill in SYMBOL_SYMTAB.
5273 * buildsym.h (struct subfile): Add symtab member.
5274 * dwarf2read.c (struct dwarf2_cu): Add line_header.
5275 (struct file_entry): Add symtab.
5276 (free_cu_line_header): New function.
5277 (read_file_scope): Use it. Save line_header in the cu. Process
5278 lines before DIEs.
5279 (add_file_name): Initialize new symtab member.
5280 (dwarf_decode_lines): Create symtabs for included files.
5281 (new_symbol): Set SYMBOL_SYMTAB.
5282 * symtab.c (lookup_symbol): Use SYMBOL_SYMTAB.
5283 (search_symbols): Likewise.
5284 * symtab.h (struct symbol): Add symtab member.
5285 (SYMBOL_SYMTAB): Define.
5286
5287 2007-01-20 Daniel Jacobowitz <dan@codesourcery.com>
5288
5289 * symfile.c (allocate_symtab): Remove INIT_EXTRA_SYMTAB_INFO.
5290
5291 2007-01-20 Daniel Jacobowitz <dan@codesourcery.com>
5292
5293 * arch-utils.c (show_endian): Correct reversed condition.
5294
5295 2007-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
5296
5297 * MAINTAINERS (Write After Approval): Add myself.
5298
5299 2007-01-16 Daniel Jacobowitz <dan@codesourcery.com>
5300 Vladimir Prus <vladimir@codesourcery.com>
5301
5302 Fix 'selected frame' varobjs.
5303 * varobj.c (struct varobj): Remove the error field.
5304 (varobj_set_value): Don't check var->error.
5305 (install_new_value): Don't set var->error.
5306 (varobj_update): Always pass the new value
5307 of the root via install_new_value.
5308 (create_child): Don't set error field.
5309 (new_variable): Likewise.
5310 (c_value_of_root): Always reevaluate the value
5311 of selected frame varobjs in the selected frame.
5312 Don't call reinit_frame_cache.
5313
5314 2007-01-15 Joel Brobecker <brobecker@adacore.com>
5315
5316 * source.c (_initialize_source): Improve the help text of
5317 the substitute-path commands.
5318
5319 2007-01-14 Mark Kettenis <kettenis@gnu.org>
5320
5321 * frv-tdep.c (frv_gdbarch_init, frv_register_name)
5322 (frv_breakpoint_from_pc, frv_gdbarch_adjust_breakpoint_address)
5323 (frv_skip_prologue): Remove prototypes.
5324 (frv_adjust_breakpoint_address): Renamed from
5325 frv_gdbarch_adjust_breakpoint_address.
5326 (frv_gdbarch_init): Adjust.
5327
5328 2007-01-13 Mark Kettenis <kettenis@gnu.org>
5329
5330 * gdbarch.sh (deprecated_extract_return_value)
5331 (deprecated_store_return_value): Remove.
5332 (extract_return_value, store_return_value): Remove default values.
5333 * gdbarch.c, gdbarch.h: Regenerate.
5334 * arch-utils.c, arch-utils.h (legacy_extract_return_value)
5335 (legacy_store_return_value): Remove.
5336 * regcache.c, regcache.h (deprecated_grub_regcache_for_registers):
5337 Remove.
5338
5339 * mi/mi-main.c: Remove obsolete comment.
5340
5341 * regcache.c, regcache.h (deprecated_register_bytes)
5342 (deprecated_read_register_bytes)
5343 (deprecated_write_register_bytes): Remove.
5344
5345 * frame.c (get_frame_register_bytes, put_frame_register_bytes):
5346 Don't forget to move destination pointer.
5347
5348 2007-01-01 Mark Kettenis <kettenis@gnu.org>
5349
5350 * config/i386/nm-i386gnu.h (CHILD_PREPARE_TO_STORE): Remove.
5351
5352 2007-01-11 Ulrich Weigand <uweigand@de.ibm.com>
5353
5354 * spu-tdep.c (spu_analyze_prologue): Fix erroneous backtrace
5355 past entry function with recent newlib.
5356
5357 2007-01-11 Vladimir Prus <vladimir@codesourcery.com>
5358
5359 * gdb.texinfo (GDB/MI Variable Objects): Improve the
5360 introduction. Specify -var-update more exactly.
5361
5362 2007-01-11 Daniel Jacobowitz <dan@codesourcery.com>
5363
5364 * frame.c (get_prev_frame_1): Check PC_REGNUM before using it.
5365
5366 2007-01-10 Jim Blandy <jimb@codesourcery.com>
5367
5368 * MAINTAINERS (Global Maintainers): Ulrich Weigand has accepted
5369 the Global Maintainers' invitation to be a global maintainer.
5370
5371 2007-01-10 Daniel Jacobowitz <dan@codesourcery.com>
5372
5373 * infrun.c (singlestep_pc): New variable.
5374 (resume): Set singlestep_pc.
5375 (context_switch): Add a debugging message. Flush the frame cache.
5376 (handle_inferior_event): Add debugging messages. Handle thread
5377 hops when a software single step has completed. Let context_switch
5378 handle flushing the frame cache.
5379
5380 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
5381
5382 * NEWS: Mention target descriptions, "set tdesc filename",
5383 "unset tdesc filename", "show tdesc filename", and
5384 qXfer:features:read.
5385 * arch-utils.c (choose_architecture_for_target): New function.
5386 (gdbarch_info_fill): Call it.
5387 * target-descriptions.c (struct property): Make members non-const.
5388 (struct target_desc): Add arch member.
5389 (target_description_filename): New variable.
5390 (target_find_description): Try via XML first.
5391 (tdesc_architecture): New.
5392 (free_target_description, make_cleanup_free_target_description): New.
5393 (set_tdesc_property): Call xstrdup.
5394 (set_tdesc_architecture, tdesc_set_cmdlist, tdesc_show_cmdlist)
5395 (tdesc_unset_cmdlist, unset_tdesc_cmd, unset_tdesc_filename_cmd)
5396 (set_tdesc_cmd, show_tdesc_cmd, set_tdesc_filename_cmd)
5397 (show_tdesc_filename_cmd, _initialize_target_descriptions): New.
5398 * target-descriptions.h (tdesc_architecture)
5399 (make_cleanup_free_target_description, set_tdesc_architecture): New
5400 prototypes.
5401 * Makefile.in (SFILES): Add xml-tdesc.c.
5402 (COMMON_OBS): Add xml-tdesc.o.
5403 (target-descriptions.o): Update.
5404 (xml-tdesc.o): New rule.
5405 * xml-tdesc.c, xml-tdesc.h: New files.
5406 * remote.c (PACKET_qXfer_features): New enum.
5407 (remote_protocol_features): Add qXfer:features:read.
5408 (remote_xfer_partial): Handle TARGET_OBJECT_AVAILABLE_FEATURES.
5409 (_initialize_remote): Register qXfer:features:read.
5410 * target.h (enum target_object): Add TARGET_OBJECT_AVAILABLE_FEATURES.
5411 * features/gdb-target.dtd: New file.
5412
5413 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
5414
5415 * copyright.sh: Clarify error.
5416
5417 2007-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
5418
5419 * symtab.c (matching_bfd_sections): Fix VMA matching for
5420 prelinked objects.
5421
5422 2007-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
5423
5424 * minsyms.c (lookup_minimal_symbol_by_pc_section): Handle
5425 nested symbols.
5426
5427 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
5428
5429 Updated copyright notices for most files.
5430
5431 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
5432
5433 * copyright.sh (prunes): Add step-line.inp and step-line.c.
5434
5435 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
5436
5437 * configure.ac (DEBUGDIR_RELOCATABLE): Define for debugdir inside
5438 exec_prefix.
5439 (TARGET_SYSTEM_ROOT_RELOCATABLE): Allow for exec_prefix being
5440 '${prefix}'.
5441 * configure, config.in: Regenerate.
5442 * defs.h (debug_file_directory): Declare.
5443 * main.c (captured_main): Canonicalize gdb_sysroot. Assume
5444 TARGET_SYSTEM_ROOT is defined. Initialize debug_file_directory and
5445 relocate it if DEBUGDIR_RELOCATABLE.
5446 * symfile.c (debug_file_directory): Make non-static.
5447 (find_separate_debug_file): Look for debug info for SYSROOT/PATH
5448 in DEBUGDIR/PATH if DEBUGDIR is inside SYSROOT.
5449 (_initialize_symfile): Don't initialize debug_file_directory here.
5450
5451 2007-01-09 Jim Blandy <jimb@codesourcery.com>
5452
5453 * score-tdep.c (score_push_dummy_call): Don't mix declarations and
5454 statements.
5455
5456 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
5457
5458 * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Use
5459 frame_unwind_register to recurse.
5460 * alpha-tdep.c (alpha_sigtramp_frame_prev_register): Likewise.
5461 (alpha_heuristic_frame_prev_register): Likewise.
5462 * h8300-tdep.c (h8300_frame_prev_register): Likewise.
5463 * m32c-tdep.c (m32c_prev_register): Likewise.
5464 * frame.c (frame_register_unwind_location): Remove FIXME.
5465
5466 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
5467 Eli Zaretskii <eliz@gnu.org>
5468
5469 * copyright.sh: New file.
5470
5471 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
5472
5473 * configure.ac: Check for XML_StopParser.
5474 * xml-support.c (gdb_xml_body_text): Check for an error.
5475 (gdb_xml_start_element_wrapper): Conditionalize call to XML_StopParser.
5476 (gdb_xml_end_element_wrapper): Likewise.
5477 * config.in, configure: Regenerated.
5478
5479 2007-01-08 Daniel Jacobowitz <dan@codesourcery.com>
5480
5481 * varobj.c (install_new_value): Always update print_value.
5482 (value_get_print_value): Immediately return NULL for missing
5483 values.
5484
5485 2007-01-08 Jim Blandy <jimb@codesourcery.com>
5486
5487 * configure.ac: Tighten pattern for extracting value of
5488 DEPRECATED_TM_FILE from the target makefile fragment.
5489 * configure: Regenerated.
5490
5491 2007-01-08 Daniel Jacobowitz <dan@codesourcery.com>
5492
5493 * linux-nat.c (struct simple_pid_list): Add status.
5494 (add_to_pid_list): Record the PID's status.
5495 (linux_record_stopped_pid): Likewise. Make static.
5496 (pull_pid_from_list): Return the saved status.
5497 (linux_nat_handle_extended): Deleted.
5498 (linux_handle_extended_wait): Combine with linux_nat_handle_extended.
5499 Make static. Handle non-SIGSTOP for a new thread's first signal.
5500 (flush_callback): Handle unexpected pending signals.
5501 (linux_nat_wait): Update calls to changed functions.
5502 * linux-nat.h (linux_record_stopped_pid, linux_handle_extended_wait):
5503 Remove prototypes for newly static functions.
5504
5505 2007-01-08 Ulrich Weigand <uweigand@de.ibm.com>
5506
5507 * gdbarch.sh (value_from_register): New gdbarch function.
5508 * gdbarch.c, gdbarch.h: Regenerate.
5509 * findvar.c (default_value_from_register): New function.
5510 (value_from_register): Use gdbarch_value_from_register.
5511 * value.h (default_value_from_register): Declare.
5512 * spu-tdep.c (spu_convert_register_p, spu_register_to_value,
5513 spu_value_to_register): Remove.
5514 (spu_value_from_register): New function.
5515 (spu_gdbarch_init): Do not call set_gdbarch_convert_register_p,
5516 set_gdbarch_register_to_value, set_gdbarch_value_to_register.
5517 Call set_gdbarch_value_from_register.
5518 * s390-tdep.c (s390_convert_register_p, s390_register_to_value,
5519 s390_value_to_register): Remove.
5520 (s390_value_from_register): New function.
5521 (s390_gdbarch_init): Do not call set_gdbarch_convert_register_p,
5522 set_gdbarch_register_to_value, set_gdbarch_value_to_register.
5523 Call set_gdbarch_value_from_register.
5524
5525 2007-01-08 Daniel Jacobowitz <dan@codesourcery.com>
5526
5527 * NEWS: Add "set sysroot" and "show sysroot".
5528 * solib.c (solib_absolute_prefix): Delete. Replace
5529 all uses with gdb_sysroot.
5530 (_initialize_solib): Add "set sysroot" and "show sysroot".
5531 Make "solib-absolute-prefix" an alias to it.
5532
5533 2007-01-08 Ulrich Weigand <uweigand@de.ibm.com>
5534
5535 * frame.c (get_frame_register_bytes): New function.
5536 (put_frame_register_bytes): Likewise.
5537 * frame.h (get_frame_register_bytes): Declare.
5538 (put_frame_register_bytes): Likewise.
5539 * findvar.c (value_from_register): Always construct lval_register
5540 values. Use get_frame_register_bytes.
5541 * valops.c (value_assign): Use get_frame_register_bytes and
5542 put_frame_register_bytes.
5543
5544 2007-01-08 Jim Blandy <jimb@codesourcery.com>
5545
5546 * MAINTAINERS: Update Stan Shebs' email address.
5547
5548 2007-01-07 Joel Brobecker <brobecker@adacore.com>
5549
5550 * ada-lang.c (is_known_support_routine): Improve the implementation.
5551
5552 2007-01-06 Joel Brobecker <brobecker@adacore.com>
5553
5554 * ada-lang.c: Add include of source.h.
5555 (is_known_support_routine): Improve the check verifying that the file
5556 associated to this frame exists.
5557 * Makefile.in (ada-lang.o): Add dependency on source.h.
5558
5559 2007-01-07 Jim Blandy <jimb@codesourcery.com>
5560
5561 * ax-general.c (ax_const_l): Select proper opcode for the given
5562 value.
5563
5564 2007-01-05 Vladimir Prus <vladimir@codesourcery.com>
5565
5566 * varobj.c (c_value_of_root): Don't select frame if variable
5567 object is out of scope.
5568
5569 2007-01-05 Nick Roberts <nickrob@snap.net.nz>
5570
5571 * varobj.c (struct varobj): New member print_value.
5572 (install_new_value): Compare last printed value with current one
5573 instead of contents.
5574 (new_variable): Initialize var->print_value to NULL.
5575 (free_variable): Free var->print_value.
5576 (value_get_print_value): New function derived from
5577 c_value_of_variable.
5578 (c_value_of_variable): Use value_get_print_value.
5579
5580 2007-01-05 Joel Brobecker <brobecker@adacore.com>
5581
5582 * i386-tdep.c (i386_analyze_stack_align): Add comment.
5583
5584 2007-01-05 Joel Brobecker <brobecker@adacore.com>
5585
5586 * NEWS: Add entries for new catch commands.
5587
5588 2007-01-05 Joel Brobecker <brobecker@adacore.com>
5589
5590 * dwarf2read.c (partial_die_info): Add field has_byte_size.
5591 (add_partial_symbol): Correct identification of external references.
5592 (process_structure_scope): Likewise.
5593 (read_partial_die): Handle DW_AT_byte_size attribute.
5594
5595 2007-01-05 Daniel Jacobowitz <dan@codesourcery.com>
5596
5597 * xml-support.c (gdb_xml_end_element): Remove wrong backslashes.
5598
5599 2007-01-05 Nick Roberts <nickrob@snap.net.nz>
5600
5601 * varobj.c (get_type_deref): Fix variable objects for references to
5602 pointers.
5603
5604 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
5605
5606 * symtab.c (find_pc_sect_psymtab): Add comments. Handle psymtabs
5607 with no symbols.
5608
5609 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
5610
5611 * memory-map.c (struct_memory_map_parsing_data): Remove most
5612 members. Make property_name an array.
5613 (free_memory_map_parsing_data, memory_map_start_element)
5614 (memory_map_end_element, memory_map_character_data): Delete.
5615 (memory_map_start_memory, memory_map_end_memory)
5616 (memory_map_start_property, memory_map_end_property): New functions.
5617 (property_attributes, memory_children, memory_type_enum)
5618 (memory_attributes, memory_map_children, memory_map_elements): New.
5619 (parse_memory_map): Rewrite.
5620 * xml-support.c (debug_xml): New.
5621 (xml_get_required_attribute, xml_get_integer_attribute)
5622 (xml_get_enum_value, free_xml_parser, make_cleanup_free_xml_parser):
5623 Delete.
5624 (struct scope_level, struct gdb_xml_parser, gdb_xml_body_text)
5625 (gdb_xml_debug, gdb_xml_error, gdb_xml_values_cleanup)
5626 (gdb_xml_start_element, gdb_xml_start_element_wrapper)
5627 (gdb_xml_end_element, gdb_xml_end_element_wrapper, gdb_xml_cleanup)
5628 (gdb_xml_create_parser_and_cleanup, gdb_xml_parse)
5629 (gdb_xml_parse_ulongest, gdb_xml_parse_attr_ulongest)
5630 (gdb_xml_parse_attr_enum, show_debug_xml, _initialize_xml_support):
5631 New.
5632 * xml-support.h (struct gdb_xml_value, gdb_xml_attribute_handler)
5633 (enum gdb_xml_attribute_flag, struct gdb_xml_attribute)
5634 (enum gdb_xml_element_flag, struct gdb_xml_element)
5635 (gdb_xml_element_start_handler, gdb_xml_element_end_handler)
5636 (struct gdb_xml_enum): New.
5637 (gdb_xml_create_parser_and_cleanup, gdb_xml_parse, gdb_xml_debug)
5638 (gdb_xml_error, gdb_xml_parse_attr_ulongest)
5639 (gdb_xml_parse_attr_enum, gdb_xml_parse_ulongest): New prototypes.
5640 (xml_get_required_attribute, xml_get_integer_attribute)
5641 (xml_get_enum_value, make_cleanup_free_xml_parser): Delete prototypes.
5642 * Makefile.in (xml_support_h, xml-support.o): Update.
5643
5644 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
5645
5646 * Makefile.in (eval.o): Update dependencies.
5647 * eval.c: Include "ui-out.h" and "exceptions.h".
5648 (evaluate_subexp_standard): Use TRY_CATCH around value_of_variable.
5649 Use value_zero if an error occurs when avoiding side effects.
5650 * varobj.c (c_value_of_root): Initialize new_val.
5651
5652 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
5653
5654 * varobj.c (varobj_list_children): Stop if the number of children is
5655 unknown.
5656 (c_number_of_children):
5657
5658 2007-01-04 Mark Kettenis <kettenis@gnu.org>
5659
5660 * alpha-tdep.c (alpha_register_name): Use ARRAY_SIZE.
5661 (alpha_read_insn, alpha_skip_prologue, alpha_heuristic_proc_start)
5662 (alpha_heuristic_frame_unwind_cache, alpha_next_pc)
5663 (alpha_gdbarch_init): Use ALPHA_INSN_SIZE, ALPHA_REGISTER_SIZE and
5664 sizeof, instead of hardcoded constants.
5665
5666 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
5667
5668 * CONTRIBUTE: Use sourceware.org.
5669
5670 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
5671
5672 * buildsym.c (start_subfile): Handle producer.
5673 (record_producer): New function.
5674 * buildsym.h (struct subfile): Include producer.
5675 (record_producer): New prototype.
5676 * dwarf2-frame.c (struct dwarf2_cie): Add version and augmentation.
5677 (struct dwarf2_frame_state): Add armcc_cfa_offsets_sf and
5678 armcc_cfa_offsets_reversed.
5679 (execute_cfa_program): Handle armcc_cfa_offsets_sf.
5680 (dwarf2_frame_find_quirks): New function.
5681 (dwarf2_frame_cache): Call it. Handle armcc_cfa_offsets_reversed.
5682 (decode_frame_entry_1): Record the CIE version. Record the
5683 augmentation. Skip armcc augmentations.
5684 * dwarf2read.c (read_file_scope): Save the producer.
5685 * symtab.h (struct symtab): Rename unused version member to
5686 producer.
5687
5688 2007-01-04 Daniel Jacobowitz <dan@codesourcery.com>
5689
5690 * configure.ac (build_warnings): Use -Wall and
5691 -Wdeclaration-after-statement.
5692 * configure: Regenerated.
5693
5694 2007-01-04 Vladimir Prus <vladimir@codesourcery.com>
5695
5696 Simplify access to variours properties of child
5697 variable objects in C.
5698 * varobj.c (value_struct_element_index): New function.
5699 (c_describe_child): New function.
5700 (c_name_of_child, c_value_of_child)
5701 (c_type_of_child): Rewrite to use c_describe_child.
5702
5703 2007-01-04 Vladimir Prus <vladimir@codesourcery.com>
5704
5705 gdb/
5706 * varobj.c: Include "vec.h".
5707 (varobj_p): New typedef, declare vector of those.
5708 (struct varobj): Use vector for the 'children' member.
5709 (child_exists): Remove.
5710 (save_child_in_parent): Remove.
5711 (remove_child_from_parent): Remove.
5712 (struct varobj_child): Remove.
5713 (struct vstack): Remove.
5714 (vpush, vpop): Remove.
5715 (varobj_list_children): Adjust to work work vector.
5716 (varobj_update): Likewise. Use vectors for
5717 working stack and result.
5718 (delete_variable_1): Likewise.
5719 * Makefile.in (varobj.o): Update dependencies.
5720
5721 2007-01-04 Vladimir Prus <vladimir@codesourcery.com>
5722
5723 Port from Apple's version.
5724 gdb/
5725 * varobj.c (type_changeable): Rename to...
5726 (varobj_value_is_changeable_p): ...this. Adjust all callers.
5727 (is_root_p): New function. Use it everywhere.
5728
5729 2007-01-04 Jim Blandy <jimb@codesourcery.com>
5730
5731 * glibc-tdep.c (glibc_skip_solib_resolver): Look for '_dl_fixup',
5732 then plain 'fixup'.
5733
5734 2007-01-04 Joel Brobecker <brobecker@adacore.com>
5735
5736 * hpread.c (hpread_start_psymtab): Remove unnecessary extern.
5737
5738 2007-01-04 Joel Brobecker <brobecker@adacore.com>
5739
5740 * hpread.c (hpread_type_lookup): Fix compilation failure.
5741
5742 2007-01-04 Qinwei <qinwei@sunnorth.com.cn>
5743
5744 * NEWS: New port to S+core.
5745 * MAINTAINERS (Write After Approval, Responsible Maintainers):
5746 Add myself.
5747
5748 * Makefile.in: Add dependencies for S+core files.
5749 * configure.tgt (score*, score-*-*): Add S+core target.
5750 * config/score/embed.mt: New file.
5751 * score-tdep.c: New file.
5752 * score-tdep.h: New file.
5753
5754 2007-01-04 Joel Brobecker <brobecker@adacore.com>
5755
5756 * ada-lang.c (ada_evaluate_subexp) [OP_TYPE]: Return a value with
5757 the appropriate type rather than a bogus void type.
5758
5759 2007-01-04 Joel Brobecker <brobecker@adacore.com>
5760
5761 * ada-lang.h (ada_find_printable_frame): Remove.
5762 (ada_exception_catchpoint_p, ada_decode_exception_location)
5763 (ada_decode_assert_location): Add declaration.
5764 * ada-lang.c: Add include of annotate.h and valprint.h.
5765 (exception_catchpoint_kind): New enum.
5766 (function_name_from_pc, is_known_support_routine)
5767 (ada_find_printable_frame, ada_unhandled_exception_name_addr)
5768 (ada_exception_name_addr_1, ada_exception_name_addr)
5769 (print_it_exception, print_one_exception, print_mention_exception)
5770 (print_it_catch_exception, print_one_catch_exception)
5771 (print_mention_catch_exception, catch_exception_breakpoint_ops)
5772 (print_it_catch_exception_unhandled)
5773 (print_one_catch_exception_unhandled)
5774 (print_mention_catch_exception_unhandled, print_it_catch_assert)
5775 (print_one_catch_assert, print_mention_catch_assert)
5776 (ada_exception_catchpoint_p, error_breakpoint_runtime_sym_not_found)
5777 (ada_get_next_arg, catch_ada_exception_command_split)
5778 (ada_exception_sym_name, ada_exception_sym_name)
5779 (ada_exception_breakption_ops, ada_exception_catchpoint_cond_string)
5780 (ada_parse_catchpoint_condition, ada_exception_sal)
5781 (ada_decode_exception_location)
5782 (ada_decode_assert_location): New function.
5783 (catch_exception_unhandled_breakpoint_ops): New global variable.
5784 (catch_assert_breakpoint_ops): New global variable.
5785 * breakpoint.c: Add include of ada-lang.h.
5786 (print_one_breakpoint): Do not print the condition for Ada
5787 exception catchpoints.
5788 (create_ada_exception_breakpoint): New function.
5789 (catch_ada_exception_command, catch_assert_command): New function.
5790 (catch_command_1): Add support for the new "catch exception" and
5791 "catch assert" commands.
5792 (_initialize_breakpoint): Add help description for the new catch
5793 commands.
5794 * Makefile.in (ada-lang.o): Add dependency on annotate.h and
5795 valprint.h.
5796 (breakpoint.o): Add dependency on ada-lang.h.
5797
5798 2007-01-03 Pedro Alves <pedro_alves@portugalmail.pt>
5799
5800 * coffread.c (cs_to_section): If bfd_section is found, always
5801 return its section index.
5802 (coff_symtab_read): Determine the minimal_symbol_type using the
5803 bfd_section flags.
5804
5805 2007-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
5806 Daniel Jacobowitz <dan@codesourcery.com>
5807
5808 * Makefile.in (top.o): Update.
5809 * top.c (gdb_readline_wrapper_done, gdb_readline_wrapper_result)
5810 (saved_after_char_processing_hook, gdb_readline_wrapper_line)
5811 (struct gdb_readline_wrapper_cleanup, gdb_readline_wrapper_cleanup):
5812 New.
5813 (gdb_readline_wrapper): Rewrite to use asynchronous readline.
5814
5815 2007-01-03 Mark Kettenis <kettenis@gnu.org>
5816
5817 * arm-linux-tdep.c (arm_linux_extract_return_value): Remove.
5818 (arm_linux_init_abi): Don't set deprecated_extract_return_value.
5819
5820 2007-01-03 Daniel Jacobowitz <dan@codesourcery.com>
5821
5822 * ada-lang.c (find_struct_field): Initialize *byte_offset_p.
5823 * breakpoint.c (do_enable_breakpoint): Ignore both mem_cnt and i.
5824 * c-typeprint.c (c_type_print_varspec_suffix): Don't test length
5825 greater than or equal to zero.
5826 * m2-typeprint.c (m2_array): Likewise.
5827 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
5828 * gdbtypes.c (copy_type_recursive): Correct == typo.
5829 * i386-tdep.c (i386_skip_prologue): Remove stray semicolon.
5830 * linux-nat.c (linux_nat_info_proc_cmd): Don't compare a pointer
5831 greater than zero.
5832 * macroscope.c (sal_macro_scope): Don't name a local variable "main".
5833 (default_macro_scope): Remove unused variable.
5834 * prologue-value.h (pv_area_find_reg): Don't name an argument
5835 "register".
5836 * remote-fileio.c (remote_fio_func_map): Add missing braces.
5837 * remote.c (sigint_remote_twice_token, sigint_remote_token): Change
5838 type.
5839 (cleanup_sigint_signal_handler): Remove casts.
5840 * valprint.c (val_print): Use a volatile local for the modified
5841 argument.
5842 * varobj.c (languages): Remove extra array dimension.
5843 (varobj_create): Correct access to languages array.
5844 * mi/mi-cmd-break.c (mi_cmd_break_insert, mi_cmd_break_watch): Add
5845 missing braces.
5846 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise.
5847 * mi/mi-cmd-env.c (mi_cmd_env_path, mi_cmd_env_dir): Likewise.
5848 * mi/mi-getopt.c (mi_valid_noargs): Likewise.
5849 * mi/mi-main.c (mi_cmd_data_read_memory): Likewise.
5850 (mi_cmd_data_write_memory): Likewise.
5851 * signals/signals.c (target_signal_to_string): Cast to int before
5852 comparing.
5853 * tui/tui-layout.c (init_and_make_win): Take and return a void *.
5854 Update all callers.
5855
5856 2007-01-03 Daniel Jacobowitz <dan@codesourcery.com>
5857
5858 * NEWS: Mention pointer to member improvements.
5859 * Makefile.in (gnu-v3-abi.o): Delete special rule.
5860 (eval.o, gnu-v3-abi.o, ia64-tdep.o): Update.
5861 * ada-valprint.c (ada_print_scalar): Update for new type codes.
5862 * c-typeprint.c (c_print_type): Update for new type codes.
5863 (c_type_print_varspec_prefix, c_type_print_varspec_suffix)
5864 (c_type_print_base): Likewise.
5865 (c_type_print_args): Rewrite.
5866 * c-valprint.c (c_val_print): Update for new type codes. Remove
5867 support for references to members. Treat methods like functions.
5868 * cp-abi.c (cplus_print_method_ptr, cplus_method_ptr_size)
5869 (cplus_make_method_ptr, cplus_method_ptr_to_value): New.
5870 * cp-abi.h (cplus_print_method_ptr, cplus_method_ptr_size)
5871 (cplus_make_method_ptr, cplus_method_ptr_to_value): New prototypes.
5872 (struct cp_abi_ops): Add corresponding members.
5873 * cp-valprint.c (cp_print_class_method): Delete.
5874 (cp_find_class_member): New function.
5875 (cp_print_class_member): Use it. Simplify support for bogus
5876 member pointers.
5877 * dwarf2read.c (quirk_gcc_member_function_pointer): Use
5878 lookup_methodptr_type.
5879 (read_tag_ptr_to_member_type): Likewise, and lookup_memberptr_type.
5880 * eval.c (evaluate_subexp_standard): Implement EVAL_SKIP for
5881 OP_SCOPE. Update call to value_aggregate_elt. Rewrite member
5882 pointer support.
5883 (evaluate_subexp_for_address): Handle OP_SCOPE explicitly. Handle
5884 references returned by user defined operators.
5885 * f-typeprint.c (f_print_type, f_type_print_varspec_prefix)
5886 (f_type_print_varspec_suffix): Remove support for member pointers.
5887 * gdbtypes.c (lookup_memberptr_type): Renamed from lookup_member_type
5888 and adjusted.
5889 (smash_to_memberptr_type): Likewise, from smash_to_member_type.
5890 (lookup_methodptr_type): New.
5891 (rank_one_type): Adjust for TYPE_CODE_MEMBERPTR.
5892 (recursive_dump_type): Update for new types.
5893 * gdbtypes.h (enum type_code): Replace TYPE_CODE_MEMBER with
5894 TYPE_CODE_MEMBERPTR and TYPE_CODE_METHODPTR.
5895 (lookup_memberptr_type, lookup_methodptr_type)
5896 (smash_to_memberptr_type): New prototypes.
5897 (smash_to_method_type): Formatting fix.
5898 (lookup_member_type, smash_to_member_type): Delete prototypes.
5899 * gnu-v3-abi.c (gnuv3_get_vtable, gnuv3_get_virtual_fn): New.
5900 Do not rely on debug information for the vptr or the method's
5901 enclosing type. Handle function descriptors for IA64.
5902 (gnuv3_virtual_fn_field): Rewrite using the new functions.
5903 (gnuv3_find_method_in, gnuv3_print_method_ptr)
5904 (gnuv3_method_ptr_size, gnuv3_make_method_ptr)
5905 (gnuv3_method_ptr_to_value): New.
5906 (init_gnuv3_ops): Set new members of gnu_v3_abi_ops.
5907 * hpread.c (hpread_type_lookup): Update for new types.
5908 * infcall.c (value_arg_coerce): Likewise.
5909 * m2-typeprint.c (m2_print_type): Remove explicit support
5910 for member pointers.
5911 * m2-valprint.c (m2_val_print): Likewise.
5912 * p-typeprint.c (pascal_type_print_varspec_prefix)
5913 (pascal_type_print_varspec_suffix, pascal_type_print_base): Likewise.
5914 * p-valprint.c (pascal_val_print): Likewise.
5915 (pascal_object_print_class_method, pascal_object_print_class_member):
5916 Delete.
5917 * p-lang.h (pascal_object_print_class_method)
5918 (pascal_object_print_class_member): Delete prototypes.
5919 * stabsread.c (read_type): Update for new types.
5920 * typeprint.c (print_type_scalar): Likewise.
5921 * valops.c (value_struct_elt_for_reference, value_namespace_elt)
5922 (value_maybe_namespace_elt, value_aggregate_elt): Add want_address
5923 argument. Construct a pointer to member if the address of a
5924 function or data member is requested.
5925 (value_cast_pointers): Don't modify the input value.
5926 (value_cast): Adjust pointer to member handling for new types.
5927 Allow null pointer to member constants. Don't modify the input
5928 value.
5929 (value_ind): Remove pointer to member check. Handle function
5930 descriptors for function pointers.
5931 (value_struct_elt, value_find_oload_method_list, check_field):
5932 Remove pointer to member checks.
5933 * value.c (unpack_long): Allow pointers to data members.
5934 (value_from_longest): Allow member pointers.
5935 * value.h (value_aggregate_elt): Add want_address.
5936 * varobj.c (c_variable_editable): Remove check for members.
5937 * gdbarch.sh: Add vtable_function_descriptors and vbit_in_delta.
5938 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Handle descriptors
5939 in virtual tables.
5940 (ia64_gdbarch_init): Call set_gdbarch_vtable_function_descriptors.
5941 * c-lang.h (cp_print_class_method): Delete prototype.
5942 * arm-tdep.c (arm_gdbarch_init): Call set_gdbarch_vbit_in_delta.
5943 * mips-tdep.c (mips_gdbarch_init): Likewise.
5944 * gdbarch.c, gdbarch.h: Regenerated.
5945
5946 2007-01-01 Mark Kettenis <kettenis@gnu.org>
5947
5948 * rs6000-tdep.c (rs6000_use_struct_convention)
5949 (rs6000_extract_return_value, rs6000_store_return_value)
5950 (rs6000_extract_struct_value_address): Remove.
5951 (rs6000_return_value): New function.
5952 (rs6000_gdbarch_init): Don't set deprecated_extract_return_value,
5953 store_return_value, deprecated_extract_struct_value_address and
5954 deprecated_use_struct_convention. Use rs6000_return_value
5955 instead.
5956
5957 2007-01-02 Nick Roberts <nickrob@snap.net.nz>
5958
5959 * mi/mi-cmds.c (mi_cmds): Remove entries for -display-delete,
5960 -display-disable, -display-enable, -display-insert and
5961 -display-list.
5962
5963 2007-01-01 Joel Brobecker <brobecker@adacore.com>
5964
5965 * breakpoint.c (remove_breakpoint): Remove dead code.
5966
5967 2007-01-01 Nick Roberts <nickrob@snap.net.nz>
5968
5969 * varobj.c: Include block.h.
5970 (c_value_of_root): Check scope within nested statements.
5971
5972 2007-01-01 Mark Kettenis <kettenis@gnu.org>
5973
5974 * mi/mi-main.c (mi_cmd_data_write_register_values): Use
5975 regcache_cooked_write_signed instead of
5976 deprecated_write_register_bytes.
5977
5978 2007-01-01 Joel Brobecker <brobecker@adacore.com>
5979
5980 * config/djgpp/fnchange.lst: Add entry for ChangeLog-2006.
5981
5982 2007-01-01 Joel Brobecker <brobecker@adacore.com>
5983
5984 Followed the Start of New Year Procedure:
5985 * ChangeLog-2006: New file, containing all the entries for 2006.
5986 * ChangeLog: Removed all 2006 entries, and changed the reference
5987 to the previous ChangeLog to point to ChangeLog 2006.
5988 * top.c (print_gdb_version): Update copyright year.
5989
5990 2007-01-01 Mark Kettenis <kettenis@gnu.org>
5991
5992 * Makefile.in (remote-sds.o): Remove.
5993 * remote-sds.c: Delete.
5994
5995 For older changes see ChangeLog-2006.
5996 \f
5997 Local Variables:
5998 mode: change-log
5999 left-margin: 8
6000 fill-column: 74
6001 version-control: never
6002 End:
This page took 0.242557 seconds and 4 git commands to generate.