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