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