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