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