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