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