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