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