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