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