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