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