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