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