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