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