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