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