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