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