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