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