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