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