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