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