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