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