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