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