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