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