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